From 978193e55fa9a686d6e254c0625ef9fe3b12398c Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Wed, 28 Jan 2026 20:09:59 -0800 Subject: [PATCH 1/6] Set target for tests with implied target from module --- ...de20,moduleresolution=nodenext).trace.json | 8 ---- ...next,moduleresolution=nodenext).trace.json | 48 ------------------- ...odule=commonjs,moduleresolution=node16).js | 2 +- ...ule=commonjs,moduleresolution=nodenext).js | 2 +- ...cksTypesVersions(module=node20).trace.json | 8 ---- ...sTypesVersions(module=nodenext).trace.json | 48 ------------------- ...rationEmitErrors(module=node20).errors.txt | 10 +--- ...tionEmitErrors(module=nodenext).errors.txt | 10 +--- ...ationEmitErrors1(module=node20).errors.txt | 10 +--- ...ionEmitErrors1(module=nodenext).errors.txt | 10 +--- ...esPackageImports(module=node20).trace.json | 8 ---- ...PackageImports(module=nodenext).trace.json | 48 ------------------- ...nExportsTrailers(module=node20).trace.json | 8 ---- ...xportsTrailers(module=nodenext).trace.json | 48 ------------------- ...enceWithMissingExports(module=commonjs).js | 2 +- .../compiler/moduleNodeDefaultImports.ts | 1 + .../compiler/moduleResolutionWithModule.ts | 1 + ...leSlashTypesReferenceWithMissingExports.ts | 1 + .../moduleResolutionWithoutExtension1.ts | 1 + .../moduleResolutionWithoutExtension2.ts | 1 + .../moduleResolutionWithoutExtension3.ts | 1 + .../moduleResolutionWithoutExtension4.ts | 1 + .../moduleResolutionWithoutExtension5.ts | 1 + .../moduleResolutionWithoutExtension6.ts | 1 + .../moduleResolutionWithoutExtension7.ts | 1 + .../moduleResolutionWithoutExtension8.ts | 1 + .../cjsErrors.ts | 1 + .../nodeModulesTsFiles.ts | 1 + .../nonTSExtensions.ts | 1 + .../packageJsonImportsErrors.ts | 1 + .../typeOnly/typeOnlyESMImportFromCJS.ts | 1 + .../importAttributes/importAttributes6.ts | 1 + tests/cases/conformance/jsdoc/importTag17.ts | 1 + .../bundler/bundlerDirectoryModule.ts | 1 + .../nodeModulesAtTypesPriority.ts | 1 + .../allowJs/nodeAllowJsPackageSelfName.ts | 1 + .../node/allowJs/nodeModulesAllowJs1.ts | 1 + .../allowJs/nodeModulesAllowJsCjsFromJs.ts | 1 + ...ModulesAllowJsConditionalPackageExports.ts | 1 + .../nodeModulesAllowJsDynamicImport.ts | 1 + .../nodeModulesAllowJsExportAssignment.ts | 1 + ...sAllowJsExportlessJsModuleDetectionAuto.ts | 1 + ...deModulesAllowJsGeneratedNameCollisions.ts | 1 + .../nodeModulesAllowJsImportAssignment.ts | 1 + ...eModulesAllowJsImportHelpersCollisions1.ts | 1 + ...eModulesAllowJsImportHelpersCollisions2.ts | 1 + .../allowJs/nodeModulesAllowJsImportMeta.ts | 1 + .../nodeModulesAllowJsPackageExports.ts | 1 + .../nodeModulesAllowJsPackageImports.ts | 1 + ...nodeModulesAllowJsPackagePatternExports.ts | 1 + ...ulesAllowJsPackagePatternExportsExclude.ts | 1 + ...lesAllowJsPackagePatternExportsTrailers.ts | 1 + ...nodeModulesAllowJsSynchronousCallErrors.ts | 1 + .../nodeModulesAllowJsTopLevelAwait.ts | 1 + .../conformance/node/esmModuleExports1.ts | 1 + .../conformance/node/esmModuleExports2.ts | 1 + .../conformance/node/esmModuleExports3.ts | 1 + tests/cases/conformance/node/nodeModules1.ts | 1 + .../conformance/node/nodeModulesCJSEmit1.ts | 1 + ...ulesCJSResolvingToESM1_emptyPackageJson.ts | 1 + ...odulesCJSResolvingToESM2_cjsPackageJson.ts | 1 + ...lesCJSResolvingToESM3_modulePackageJson.ts | 1 + ...ModulesCJSResolvingToESM4_noPackageJson.ts | 1 + ...odeModulesCjsFormatFileAlwaysHasDefault.ts | 1 + .../nodeModulesConditionalPackageExports.ts | 1 + ...tionEmitDynamicImportWithPackageExports.ts | 1 + ...odulesDeclarationEmitWithPackageExports.ts | 1 + .../node/nodeModulesDynamicImport.ts | 1 + .../node/nodeModulesExportAssignments.ts | 1 + ...ModulesExportsBlocksSpecifierResolution.ts | 1 + .../nodeModulesExportsBlocksTypesVersions.ts | 1 + .../node/nodeModulesExportsDoubleAsterisk.ts | 1 + .../node/nodeModulesExportsSourceTs.ts | 1 + ...lesExportsSpecifierGenerationConditions.ts | 1 + ...ulesExportsSpecifierGenerationDirectory.ts | 1 + ...odulesExportsSpecifierGenerationPattern.ts | 1 + .../node/nodeModulesForbidenSyntax.ts | 1 + .../nodeModulesGeneratedNameCollisions.ts | 1 + .../node/nodeModulesImportAssertions.ts | 1 + .../node/nodeModulesImportAssignments.ts | 1 + .../node/nodeModulesImportAttributes.ts | 1 + ...lesImportAttributesModeDeclarationEmit1.ts | 1 + ...lesImportAttributesModeDeclarationEmit2.ts | 1 + ...portAttributesModeDeclarationEmitErrors.ts | 1 + ...ImportAttributesTypeModeDeclarationEmit.ts | 1 + ...AttributesTypeModeDeclarationEmitErrors.ts | 1 + .../nodeModulesImportHelpersCollisions.ts | 1 + .../nodeModulesImportHelpersCollisions2.ts | 1 + .../conformance/node/nodeModulesImportMeta.ts | 1 + .../nodeModulesImportModeDeclarationEmit1.ts | 1 + .../nodeModulesImportModeDeclarationEmit2.ts | 1 + ...ModulesImportModeDeclarationEmitErrors1.ts | 1 + .../nodeModulesImportResolutionIntoExport.ts | 1 + .../nodeModulesImportResolutionNoCycle.ts | 1 + ...deModulesImportTypeModeDeclarationEmit1.ts | 1 + ...lesImportTypeModeDeclarationEmitErrors1.ts | 1 + .../cases/conformance/node/nodeModulesJson.ts | 1 + .../node/nodeModulesNoDirectoryModule.ts | 1 + .../node/nodeModulesPackageExports.ts | 1 + .../node/nodeModulesPackageImports.ts | 1 + ...ModulesPackageImportsRootWildcardNode16.ts | 1 + .../node/nodeModulesPackagePatternExports.ts | 1 + ...nodeModulesPackagePatternExportsExclude.ts | 1 + ...odeModulesPackagePatternExportsTrailers.ts | 1 + .../node/nodeModulesResolveJsonModule.ts | 1 + .../node/nodeModulesSynchronousCallErrors.ts | 1 + .../node/nodeModulesTopLevelAwait.ts | 1 + ...ripleSlashReferenceModeDeclarationEmit1.ts | 1 + ...ripleSlashReferenceModeDeclarationEmit2.ts | 1 + ...ripleSlashReferenceModeDeclarationEmit3.ts | 1 + ...ripleSlashReferenceModeDeclarationEmit4.ts | 1 + ...ripleSlashReferenceModeDeclarationEmit5.ts | 1 + ...ripleSlashReferenceModeDeclarationEmit6.ts | 1 + ...ripleSlashReferenceModeDeclarationEmit7.ts | 1 + ...odulesTripleSlashReferenceModeOverride1.ts | 1 + ...odulesTripleSlashReferenceModeOverride2.ts | 1 + ...odulesTripleSlashReferenceModeOverride3.ts | 1 + ...odulesTripleSlashReferenceModeOverride4.ts | 1 + ...odulesTripleSlashReferenceModeOverride5.ts | 1 + ...ipleSlashReferenceModeOverrideModeError.ts | 1 + .../nodeModulesTypesVersionPackageExports.ts | 1 + .../conformance/node/nodePackageSelfName.ts | 1 + .../node/nodePackageSelfNameScoped.ts | 1 + .../declarationFileForTsJsImport.ts | 1 + 124 files changed, 120 insertions(+), 259 deletions(-) diff --git a/tests/baselines/reference/bundlerDirectoryModule(module=node20,moduleresolution=nodenext).trace.json b/tests/baselines/reference/bundlerDirectoryModule(module=node20,moduleresolution=nodenext).trace.json index 33c07284c47aa..c43192c63c7b8 100644 --- a/tests/baselines/reference/bundlerDirectoryModule(module=node20,moduleresolution=nodenext).trace.json +++ b/tests/baselines/reference/bundlerDirectoryModule(module=node20,moduleresolution=nodenext).trace.json @@ -147,13 +147,5 @@ "File '/.ts/package.json' does not exist according to earlier cached lookups.", "File '/package.json' does not exist according to earlier cached lookups.", "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/bundlerDirectoryModule(module=nodenext,moduleresolution=nodenext).trace.json b/tests/baselines/reference/bundlerDirectoryModule(module=nodenext,moduleresolution=nodenext).trace.json index 461c1a41b3285..c43192c63c7b8 100644 --- a/tests/baselines/reference/bundlerDirectoryModule(module=nodenext,moduleresolution=nodenext).trace.json +++ b/tests/baselines/reference/bundlerDirectoryModule(module=nodenext,moduleresolution=nodenext).trace.json @@ -147,53 +147,5 @@ "File '/.ts/package.json' does not exist according to earlier cached lookups.", "File '/package.json' does not exist according to earlier cached lookups.", "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/moduleResolutionWithModule(module=commonjs,moduleresolution=node16).js b/tests/baselines/reference/moduleResolutionWithModule(module=commonjs,moduleresolution=node16).js index 26acc87112bcc..2d0c7b4607ea5 100644 --- a/tests/baselines/reference/moduleResolutionWithModule(module=commonjs,moduleresolution=node16).js +++ b/tests/baselines/reference/moduleResolutionWithModule(module=commonjs,moduleresolution=node16).js @@ -48,5 +48,5 @@ var __importStar = (this && this.__importStar) || (function () { }; })(); Object.defineProperty(exports, "__esModule", { value: true }); -var p = __importStar(require("pkg")); +const p = __importStar(require("pkg")); p.thing(); diff --git a/tests/baselines/reference/moduleResolutionWithModule(module=commonjs,moduleresolution=nodenext).js b/tests/baselines/reference/moduleResolutionWithModule(module=commonjs,moduleresolution=nodenext).js index 26acc87112bcc..2d0c7b4607ea5 100644 --- a/tests/baselines/reference/moduleResolutionWithModule(module=commonjs,moduleresolution=nodenext).js +++ b/tests/baselines/reference/moduleResolutionWithModule(module=commonjs,moduleresolution=nodenext).js @@ -48,5 +48,5 @@ var __importStar = (this && this.__importStar) || (function () { }; })(); Object.defineProperty(exports, "__esModule", { value: true }); -var p = __importStar(require("pkg")); +const p = __importStar(require("pkg")); p.thing(); diff --git a/tests/baselines/reference/nodeModulesExportsBlocksTypesVersions(module=node20).trace.json b/tests/baselines/reference/nodeModulesExportsBlocksTypesVersions(module=node20).trace.json index 20f2962f02601..51f9c6d9301f7 100644 --- a/tests/baselines/reference/nodeModulesExportsBlocksTypesVersions(module=node20).trace.json +++ b/tests/baselines/reference/nodeModulesExportsBlocksTypesVersions(module=node20).trace.json @@ -332,13 +332,5 @@ "File '/.ts/package.json' does not exist according to earlier cached lookups.", "File '/package.json' does not exist according to earlier cached lookups.", "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/nodeModulesExportsBlocksTypesVersions(module=nodenext).trace.json b/tests/baselines/reference/nodeModulesExportsBlocksTypesVersions(module=nodenext).trace.json index 2f98f83cf68ad..a77dd86daf1b0 100644 --- a/tests/baselines/reference/nodeModulesExportsBlocksTypesVersions(module=nodenext).trace.json +++ b/tests/baselines/reference/nodeModulesExportsBlocksTypesVersions(module=nodenext).trace.json @@ -332,53 +332,5 @@ "File '/.ts/package.json' does not exist according to earlier cached lookups.", "File '/package.json' does not exist according to earlier cached lookups.", "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/nodeModulesImportAttributesTypeModeDeclarationEmitErrors(module=node20).errors.txt b/tests/baselines/reference/nodeModulesImportAttributesTypeModeDeclarationEmitErrors(module=node20).errors.txt index 1075b870f1ada..2d2f2c5b8ffbb 100644 --- a/tests/baselines/reference/nodeModulesImportAttributesTypeModeDeclarationEmitErrors(module=node20).errors.txt +++ b/tests/baselines/reference/nodeModulesImportAttributesTypeModeDeclarationEmitErrors(module=node20).errors.txt @@ -39,10 +39,7 @@ /other3.ts(3,55): error TS1005: ';' expected. /other3.ts(3,56): error TS1128: Declaration or statement expected. /other3.ts(3,57): error TS2304: Cannot find name 'RequireInterface'. -/other3.ts(4,21): error TS2322: Type '{ "resolution-mode": string; }[]' is not assignable to type 'ImportCallOptions'. - Types of property 'with' are incompatible. - Type '(index: number, value: { "resolution-mode": string; }) => { "resolution-mode": string; }[]' is not assignable to type 'ImportAttributes'. - Index signature for type 'string' is missing in type '(index: number, value: { "resolution-mode": string; }) => { "resolution-mode": string; }[]'. +/other3.ts(4,21): error TS2559: Type '{ "resolution-mode": string; }[]' has no properties in common with type 'ImportCallOptions'. /other3.ts(4,56): error TS2339: Property 'ImportInterface' does not exist on type 'Promise<{ default: typeof import("/node_modules/pkg/import"); }>'. /other3.ts(6,34): error TS1340: Module 'pkg' does not refer to a type, but is used as a type here. Did you mean 'typeof import('pkg')'? /other3.ts(6,48): error TS1005: '{' expected. @@ -211,10 +208,7 @@ !!! error TS2304: Cannot find name 'RequireInterface'. & import("pkg", [ {"resolution-mode": "import"} ]).ImportInterface; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS2322: Type '{ "resolution-mode": string; }[]' is not assignable to type 'ImportCallOptions'. -!!! error TS2322: Types of property 'with' are incompatible. -!!! error TS2322: Type '(index: number, value: { "resolution-mode": string; }) => { "resolution-mode": string; }[]' is not assignable to type 'ImportAttributes'. -!!! error TS2322: Index signature for type 'string' is missing in type '(index: number, value: { "resolution-mode": string; }) => { "resolution-mode": string; }[]'. +!!! error TS2559: Type '{ "resolution-mode": string; }[]' has no properties in common with type 'ImportCallOptions'. ~~~~~~~~~~~~~~~ !!! error TS2339: Property 'ImportInterface' does not exist on type 'Promise<{ default: typeof import("/node_modules/pkg/import"); }>'. diff --git a/tests/baselines/reference/nodeModulesImportAttributesTypeModeDeclarationEmitErrors(module=nodenext).errors.txt b/tests/baselines/reference/nodeModulesImportAttributesTypeModeDeclarationEmitErrors(module=nodenext).errors.txt index 1075b870f1ada..2d2f2c5b8ffbb 100644 --- a/tests/baselines/reference/nodeModulesImportAttributesTypeModeDeclarationEmitErrors(module=nodenext).errors.txt +++ b/tests/baselines/reference/nodeModulesImportAttributesTypeModeDeclarationEmitErrors(module=nodenext).errors.txt @@ -39,10 +39,7 @@ /other3.ts(3,55): error TS1005: ';' expected. /other3.ts(3,56): error TS1128: Declaration or statement expected. /other3.ts(3,57): error TS2304: Cannot find name 'RequireInterface'. -/other3.ts(4,21): error TS2322: Type '{ "resolution-mode": string; }[]' is not assignable to type 'ImportCallOptions'. - Types of property 'with' are incompatible. - Type '(index: number, value: { "resolution-mode": string; }) => { "resolution-mode": string; }[]' is not assignable to type 'ImportAttributes'. - Index signature for type 'string' is missing in type '(index: number, value: { "resolution-mode": string; }) => { "resolution-mode": string; }[]'. +/other3.ts(4,21): error TS2559: Type '{ "resolution-mode": string; }[]' has no properties in common with type 'ImportCallOptions'. /other3.ts(4,56): error TS2339: Property 'ImportInterface' does not exist on type 'Promise<{ default: typeof import("/node_modules/pkg/import"); }>'. /other3.ts(6,34): error TS1340: Module 'pkg' does not refer to a type, but is used as a type here. Did you mean 'typeof import('pkg')'? /other3.ts(6,48): error TS1005: '{' expected. @@ -211,10 +208,7 @@ !!! error TS2304: Cannot find name 'RequireInterface'. & import("pkg", [ {"resolution-mode": "import"} ]).ImportInterface; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS2322: Type '{ "resolution-mode": string; }[]' is not assignable to type 'ImportCallOptions'. -!!! error TS2322: Types of property 'with' are incompatible. -!!! error TS2322: Type '(index: number, value: { "resolution-mode": string; }) => { "resolution-mode": string; }[]' is not assignable to type 'ImportAttributes'. -!!! error TS2322: Index signature for type 'string' is missing in type '(index: number, value: { "resolution-mode": string; }) => { "resolution-mode": string; }[]'. +!!! error TS2559: Type '{ "resolution-mode": string; }[]' has no properties in common with type 'ImportCallOptions'. ~~~~~~~~~~~~~~~ !!! error TS2339: Property 'ImportInterface' does not exist on type 'Promise<{ default: typeof import("/node_modules/pkg/import"); }>'. diff --git a/tests/baselines/reference/nodeModulesImportTypeModeDeclarationEmitErrors1(module=node20).errors.txt b/tests/baselines/reference/nodeModulesImportTypeModeDeclarationEmitErrors1(module=node20).errors.txt index 632a556e1395f..5172f49a5c8cd 100644 --- a/tests/baselines/reference/nodeModulesImportTypeModeDeclarationEmitErrors1(module=node20).errors.txt +++ b/tests/baselines/reference/nodeModulesImportTypeModeDeclarationEmitErrors1(module=node20).errors.txt @@ -39,10 +39,7 @@ /other3.ts(3,55): error TS1005: ';' expected. /other3.ts(3,56): error TS1128: Declaration or statement expected. /other3.ts(3,57): error TS2304: Cannot find name 'RequireInterface'. -/other3.ts(4,21): error TS2322: Type '{ "resolution-mode": string; }[]' is not assignable to type 'ImportCallOptions'. - Types of property 'with' are incompatible. - Type '(index: number, value: { "resolution-mode": string; }) => { "resolution-mode": string; }[]' is not assignable to type 'ImportAttributes'. - Index signature for type 'string' is missing in type '(index: number, value: { "resolution-mode": string; }) => { "resolution-mode": string; }[]'. +/other3.ts(4,21): error TS2559: Type '{ "resolution-mode": string; }[]' has no properties in common with type 'ImportCallOptions'. /other3.ts(4,56): error TS2339: Property 'ImportInterface' does not exist on type 'Promise<{ default: typeof import("/node_modules/pkg/import"); }>'. /other3.ts(6,34): error TS1340: Module 'pkg' does not refer to a type, but is used as a type here. Did you mean 'typeof import('pkg')'? /other3.ts(6,48): error TS1005: '{' expected. @@ -206,10 +203,7 @@ !!! error TS2304: Cannot find name 'RequireInterface'. & import("pkg", [ {"resolution-mode": "import"} ]).ImportInterface; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS2322: Type '{ "resolution-mode": string; }[]' is not assignable to type 'ImportCallOptions'. -!!! error TS2322: Types of property 'with' are incompatible. -!!! error TS2322: Type '(index: number, value: { "resolution-mode": string; }) => { "resolution-mode": string; }[]' is not assignable to type 'ImportAttributes'. -!!! error TS2322: Index signature for type 'string' is missing in type '(index: number, value: { "resolution-mode": string; }) => { "resolution-mode": string; }[]'. +!!! error TS2559: Type '{ "resolution-mode": string; }[]' has no properties in common with type 'ImportCallOptions'. ~~~~~~~~~~~~~~~ !!! error TS2339: Property 'ImportInterface' does not exist on type 'Promise<{ default: typeof import("/node_modules/pkg/import"); }>'. diff --git a/tests/baselines/reference/nodeModulesImportTypeModeDeclarationEmitErrors1(module=nodenext).errors.txt b/tests/baselines/reference/nodeModulesImportTypeModeDeclarationEmitErrors1(module=nodenext).errors.txt index 632a556e1395f..5172f49a5c8cd 100644 --- a/tests/baselines/reference/nodeModulesImportTypeModeDeclarationEmitErrors1(module=nodenext).errors.txt +++ b/tests/baselines/reference/nodeModulesImportTypeModeDeclarationEmitErrors1(module=nodenext).errors.txt @@ -39,10 +39,7 @@ /other3.ts(3,55): error TS1005: ';' expected. /other3.ts(3,56): error TS1128: Declaration or statement expected. /other3.ts(3,57): error TS2304: Cannot find name 'RequireInterface'. -/other3.ts(4,21): error TS2322: Type '{ "resolution-mode": string; }[]' is not assignable to type 'ImportCallOptions'. - Types of property 'with' are incompatible. - Type '(index: number, value: { "resolution-mode": string; }) => { "resolution-mode": string; }[]' is not assignable to type 'ImportAttributes'. - Index signature for type 'string' is missing in type '(index: number, value: { "resolution-mode": string; }) => { "resolution-mode": string; }[]'. +/other3.ts(4,21): error TS2559: Type '{ "resolution-mode": string; }[]' has no properties in common with type 'ImportCallOptions'. /other3.ts(4,56): error TS2339: Property 'ImportInterface' does not exist on type 'Promise<{ default: typeof import("/node_modules/pkg/import"); }>'. /other3.ts(6,34): error TS1340: Module 'pkg' does not refer to a type, but is used as a type here. Did you mean 'typeof import('pkg')'? /other3.ts(6,48): error TS1005: '{' expected. @@ -206,10 +203,7 @@ !!! error TS2304: Cannot find name 'RequireInterface'. & import("pkg", [ {"resolution-mode": "import"} ]).ImportInterface; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS2322: Type '{ "resolution-mode": string; }[]' is not assignable to type 'ImportCallOptions'. -!!! error TS2322: Types of property 'with' are incompatible. -!!! error TS2322: Type '(index: number, value: { "resolution-mode": string; }) => { "resolution-mode": string; }[]' is not assignable to type 'ImportAttributes'. -!!! error TS2322: Index signature for type 'string' is missing in type '(index: number, value: { "resolution-mode": string; }) => { "resolution-mode": string; }[]'. +!!! error TS2559: Type '{ "resolution-mode": string; }[]' has no properties in common with type 'ImportCallOptions'. ~~~~~~~~~~~~~~~ !!! error TS2339: Property 'ImportInterface' does not exist on type 'Promise<{ default: typeof import("/node_modules/pkg/import"); }>'. diff --git a/tests/baselines/reference/nodeModulesPackageImports(module=node20).trace.json b/tests/baselines/reference/nodeModulesPackageImports(module=node20).trace.json index b81c3ff60c265..aac4e2c9b8e74 100644 --- a/tests/baselines/reference/nodeModulesPackageImports(module=node20).trace.json +++ b/tests/baselines/reference/nodeModulesPackageImports(module=node20).trace.json @@ -182,13 +182,5 @@ "File '/.ts/package.json' does not exist according to earlier cached lookups.", "File '/package.json' does not exist according to earlier cached lookups.", "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/nodeModulesPackageImports(module=nodenext).trace.json b/tests/baselines/reference/nodeModulesPackageImports(module=nodenext).trace.json index 7fca31951e91f..ffd7104464cc2 100644 --- a/tests/baselines/reference/nodeModulesPackageImports(module=nodenext).trace.json +++ b/tests/baselines/reference/nodeModulesPackageImports(module=nodenext).trace.json @@ -182,53 +182,5 @@ "File '/.ts/package.json' does not exist according to earlier cached lookups.", "File '/package.json' does not exist according to earlier cached lookups.", "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/nodeModulesPackagePatternExportsTrailers(module=node20).trace.json b/tests/baselines/reference/nodeModulesPackagePatternExportsTrailers(module=node20).trace.json index bf93fbcf2b27d..0b6873b56310d 100644 --- a/tests/baselines/reference/nodeModulesPackagePatternExportsTrailers(module=node20).trace.json +++ b/tests/baselines/reference/nodeModulesPackagePatternExportsTrailers(module=node20).trace.json @@ -281,13 +281,5 @@ "File '/.ts/package.json' does not exist according to earlier cached lookups.", "File '/package.json' does not exist according to earlier cached lookups.", "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/nodeModulesPackagePatternExportsTrailers(module=nodenext).trace.json b/tests/baselines/reference/nodeModulesPackagePatternExportsTrailers(module=nodenext).trace.json index 6fc69895d9aec..d4b423c698808 100644 --- a/tests/baselines/reference/nodeModulesPackagePatternExportsTrailers(module=nodenext).trace.json +++ b/tests/baselines/reference/nodeModulesPackagePatternExportsTrailers(module=nodenext).trace.json @@ -281,53 +281,5 @@ "File '/.ts/package.json' does not exist according to earlier cached lookups.", "File '/package.json' does not exist according to earlier cached lookups.", "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/.ts/package.json' does not exist according to earlier cached lookups.", "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/tripleSlashTypesReferenceWithMissingExports(module=commonjs).js b/tests/baselines/reference/tripleSlashTypesReferenceWithMissingExports(module=commonjs).js index 9843fbbf1ee00..89dd2c7541a29 100644 --- a/tests/baselines/reference/tripleSlashTypesReferenceWithMissingExports(module=commonjs).js +++ b/tests/baselines/reference/tripleSlashTypesReferenceWithMissingExports(module=commonjs).js @@ -15,4 +15,4 @@ const a: GlobalThing = { a: 0 }; //// [usage.js] /// -var a = { a: 0 }; +const a = { a: 0 }; diff --git a/tests/cases/compiler/moduleNodeDefaultImports.ts b/tests/cases/compiler/moduleNodeDefaultImports.ts index d56d3f4b496a4..447bfddc6c238 100644 --- a/tests/cases/compiler/moduleNodeDefaultImports.ts +++ b/tests/cases/compiler/moduleNodeDefaultImports.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @module: node16,node18,node20,nodenext // @filename: mod.cts declare function fun(): void; diff --git a/tests/cases/compiler/moduleResolutionWithModule.ts b/tests/cases/compiler/moduleResolutionWithModule.ts index d7034553c5abf..03ee7ed053a4e 100644 --- a/tests/cases/compiler/moduleResolutionWithModule.ts +++ b/tests/cases/compiler/moduleResolutionWithModule.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @moduleResolution: node16,nodenext // @module: commonjs,node16,node18,node20,nodenext // @filename: node_modules/pkg/package.json diff --git a/tests/cases/compiler/tripleSlashTypesReferenceWithMissingExports.ts b/tests/cases/compiler/tripleSlashTypesReferenceWithMissingExports.ts index f53915fad3560..47666d6f6998d 100644 --- a/tests/cases/compiler/tripleSlashTypesReferenceWithMissingExports.ts +++ b/tests/cases/compiler/tripleSlashTypesReferenceWithMissingExports.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @module: commonjs,node16,node18,node20,nodenext // @filename: node_modules/pkg/index.d.ts interface GlobalThing { a: number } diff --git a/tests/cases/conformance/externalModules/moduleResolutionWithoutExtension1.ts b/tests/cases/conformance/externalModules/moduleResolutionWithoutExtension1.ts index 0b740390a8af6..8884b8a1cee97 100644 --- a/tests/cases/conformance/externalModules/moduleResolutionWithoutExtension1.ts +++ b/tests/cases/conformance/externalModules/moduleResolutionWithoutExtension1.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @moduleResolution: node16 // @module: node16 diff --git a/tests/cases/conformance/externalModules/moduleResolutionWithoutExtension2.ts b/tests/cases/conformance/externalModules/moduleResolutionWithoutExtension2.ts index a7adfbcac5768..7416e8df9cd0c 100644 --- a/tests/cases/conformance/externalModules/moduleResolutionWithoutExtension2.ts +++ b/tests/cases/conformance/externalModules/moduleResolutionWithoutExtension2.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @moduleResolution: node16 // @module: node16 diff --git a/tests/cases/conformance/externalModules/moduleResolutionWithoutExtension3.ts b/tests/cases/conformance/externalModules/moduleResolutionWithoutExtension3.ts index c5a3c7449348a..94905f078e0f0 100644 --- a/tests/cases/conformance/externalModules/moduleResolutionWithoutExtension3.ts +++ b/tests/cases/conformance/externalModules/moduleResolutionWithoutExtension3.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @moduleResolution: nodenext // @module: node18,node20,nodenext // @jsx: preserve diff --git a/tests/cases/conformance/externalModules/moduleResolutionWithoutExtension4.ts b/tests/cases/conformance/externalModules/moduleResolutionWithoutExtension4.ts index 090fa1c8d086a..354d32135c301 100644 --- a/tests/cases/conformance/externalModules/moduleResolutionWithoutExtension4.ts +++ b/tests/cases/conformance/externalModules/moduleResolutionWithoutExtension4.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @moduleResolution: nodenext // @module: node18,node20,nodenext // @jsx: react diff --git a/tests/cases/conformance/externalModules/moduleResolutionWithoutExtension5.ts b/tests/cases/conformance/externalModules/moduleResolutionWithoutExtension5.ts index 08011b2be6355..9fa719bceb712 100644 --- a/tests/cases/conformance/externalModules/moduleResolutionWithoutExtension5.ts +++ b/tests/cases/conformance/externalModules/moduleResolutionWithoutExtension5.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @moduleResolution: node16 // @module: node16 diff --git a/tests/cases/conformance/externalModules/moduleResolutionWithoutExtension6.ts b/tests/cases/conformance/externalModules/moduleResolutionWithoutExtension6.ts index c846e6fd26085..81fd5f1b71354 100644 --- a/tests/cases/conformance/externalModules/moduleResolutionWithoutExtension6.ts +++ b/tests/cases/conformance/externalModules/moduleResolutionWithoutExtension6.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @moduleResolution: node16 // @module: node16 diff --git a/tests/cases/conformance/externalModules/moduleResolutionWithoutExtension7.ts b/tests/cases/conformance/externalModules/moduleResolutionWithoutExtension7.ts index f5e27470a0278..9f06573b4adb1 100644 --- a/tests/cases/conformance/externalModules/moduleResolutionWithoutExtension7.ts +++ b/tests/cases/conformance/externalModules/moduleResolutionWithoutExtension7.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @moduleResolution: node16 // @module: node16 diff --git a/tests/cases/conformance/externalModules/moduleResolutionWithoutExtension8.ts b/tests/cases/conformance/externalModules/moduleResolutionWithoutExtension8.ts index d862ba69de121..1860b0f9a2ff7 100644 --- a/tests/cases/conformance/externalModules/moduleResolutionWithoutExtension8.ts +++ b/tests/cases/conformance/externalModules/moduleResolutionWithoutExtension8.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @moduleResolution: node16 // @module: node16 diff --git a/tests/cases/conformance/externalModules/rewriteRelativeImportExtensions/cjsErrors.ts b/tests/cases/conformance/externalModules/rewriteRelativeImportExtensions/cjsErrors.ts index f08fe6cae62ba..16f9dcac0edc9 100644 --- a/tests/cases/conformance/externalModules/rewriteRelativeImportExtensions/cjsErrors.ts +++ b/tests/cases/conformance/externalModules/rewriteRelativeImportExtensions/cjsErrors.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @module: node18,node20,nodenext // @rewriteRelativeImportExtensions: true // @noTypesAndSymbols: true diff --git a/tests/cases/conformance/externalModules/rewriteRelativeImportExtensions/nodeModulesTsFiles.ts b/tests/cases/conformance/externalModules/rewriteRelativeImportExtensions/nodeModulesTsFiles.ts index 5eeae28ba59ee..eccb796d54844 100644 --- a/tests/cases/conformance/externalModules/rewriteRelativeImportExtensions/nodeModulesTsFiles.ts +++ b/tests/cases/conformance/externalModules/rewriteRelativeImportExtensions/nodeModulesTsFiles.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @module: node18,node20,nodenext // @rewriteRelativeImportExtensions: true // @noTypesAndSymbols: true diff --git a/tests/cases/conformance/externalModules/rewriteRelativeImportExtensions/nonTSExtensions.ts b/tests/cases/conformance/externalModules/rewriteRelativeImportExtensions/nonTSExtensions.ts index 93cf82841b8d8..ccc498a658b76 100644 --- a/tests/cases/conformance/externalModules/rewriteRelativeImportExtensions/nonTSExtensions.ts +++ b/tests/cases/conformance/externalModules/rewriteRelativeImportExtensions/nonTSExtensions.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @module: node18,node20,nodenext // @rewriteRelativeImportExtensions: true // @allowArbitraryExtensions: true diff --git a/tests/cases/conformance/externalModules/rewriteRelativeImportExtensions/packageJsonImportsErrors.ts b/tests/cases/conformance/externalModules/rewriteRelativeImportExtensions/packageJsonImportsErrors.ts index 587b4875d34aa..9c4f00050ab98 100644 --- a/tests/cases/conformance/externalModules/rewriteRelativeImportExtensions/packageJsonImportsErrors.ts +++ b/tests/cases/conformance/externalModules/rewriteRelativeImportExtensions/packageJsonImportsErrors.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @module: node18,node20,nodenext // @rewriteRelativeImportExtensions: true // @noTypesAndSymbols: true diff --git a/tests/cases/conformance/externalModules/typeOnly/typeOnlyESMImportFromCJS.ts b/tests/cases/conformance/externalModules/typeOnly/typeOnlyESMImportFromCJS.ts index 1415bfd3776a4..1419dad6f5b2a 100644 --- a/tests/cases/conformance/externalModules/typeOnly/typeOnlyESMImportFromCJS.ts +++ b/tests/cases/conformance/externalModules/typeOnly/typeOnlyESMImportFromCJS.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @module: node18,node20,nodenext // @Filename: module.mts diff --git a/tests/cases/conformance/importAttributes/importAttributes6.ts b/tests/cases/conformance/importAttributes/importAttributes6.ts index c8f12ae2978c2..8910878ef7d00 100644 --- a/tests/cases/conformance/importAttributes/importAttributes6.ts +++ b/tests/cases/conformance/importAttributes/importAttributes6.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @module: node18,node20,nodenext // @filename: mod.mts import * as thing1 from "./mod.mjs" with { field: 0 }; diff --git a/tests/cases/conformance/jsdoc/importTag17.ts b/tests/cases/conformance/jsdoc/importTag17.ts index dd695504090e7..5408f93f2e535 100644 --- a/tests/cases/conformance/jsdoc/importTag17.ts +++ b/tests/cases/conformance/jsdoc/importTag17.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @module: node16 // @checkJs: true // @allowJs: true diff --git a/tests/cases/conformance/moduleResolution/bundler/bundlerDirectoryModule.ts b/tests/cases/conformance/moduleResolution/bundler/bundlerDirectoryModule.ts index f6c500c9ce908..d833e5ed5d78c 100644 --- a/tests/cases/conformance/moduleResolution/bundler/bundlerDirectoryModule.ts +++ b/tests/cases/conformance/moduleResolution/bundler/bundlerDirectoryModule.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @module: node18,node20,nodenext // @moduleResolution: nodenext,bundler // @noImplicitAny: true diff --git a/tests/cases/conformance/moduleResolution/nodeModulesAtTypesPriority.ts b/tests/cases/conformance/moduleResolution/nodeModulesAtTypesPriority.ts index 22aa519480943..edaa0027f6119 100644 --- a/tests/cases/conformance/moduleResolution/nodeModulesAtTypesPriority.ts +++ b/tests/cases/conformance/moduleResolution/nodeModulesAtTypesPriority.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @module: node16 // @strict: true // @noEmit: true diff --git a/tests/cases/conformance/node/allowJs/nodeAllowJsPackageSelfName.ts b/tests/cases/conformance/node/allowJs/nodeAllowJsPackageSelfName.ts index f0fda5dea822f..c85f711b9772f 100644 --- a/tests/cases/conformance/node/allowJs/nodeAllowJsPackageSelfName.ts +++ b/tests/cases/conformance/node/allowJs/nodeAllowJsPackageSelfName.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @module: node16,node18,node20,nodenext // @declaration: true // @allowJs: true diff --git a/tests/cases/conformance/node/allowJs/nodeModulesAllowJs1.ts b/tests/cases/conformance/node/allowJs/nodeModulesAllowJs1.ts index 06988a9102295..bb3e50fc43d34 100644 --- a/tests/cases/conformance/node/allowJs/nodeModulesAllowJs1.ts +++ b/tests/cases/conformance/node/allowJs/nodeModulesAllowJs1.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @module: node16,node18,node20,nodenext // @declaration: true // @allowJs: true diff --git a/tests/cases/conformance/node/allowJs/nodeModulesAllowJsCjsFromJs.ts b/tests/cases/conformance/node/allowJs/nodeModulesAllowJsCjsFromJs.ts index 01e4612e33fbe..82670c312d5d9 100644 --- a/tests/cases/conformance/node/allowJs/nodeModulesAllowJsCjsFromJs.ts +++ b/tests/cases/conformance/node/allowJs/nodeModulesAllowJsCjsFromJs.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @module: node16,node18,node20,nodenext // @allowJs: true // @noEmit: true diff --git a/tests/cases/conformance/node/allowJs/nodeModulesAllowJsConditionalPackageExports.ts b/tests/cases/conformance/node/allowJs/nodeModulesAllowJsConditionalPackageExports.ts index bc57fb936698c..9e4b9bd16bf88 100644 --- a/tests/cases/conformance/node/allowJs/nodeModulesAllowJsConditionalPackageExports.ts +++ b/tests/cases/conformance/node/allowJs/nodeModulesAllowJsConditionalPackageExports.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @module: node16,node18,node20,nodenext // @declaration: true // @allowJs: true diff --git a/tests/cases/conformance/node/allowJs/nodeModulesAllowJsDynamicImport.ts b/tests/cases/conformance/node/allowJs/nodeModulesAllowJsDynamicImport.ts index bc3c18cf136c1..69b97f3b471a3 100644 --- a/tests/cases/conformance/node/allowJs/nodeModulesAllowJsDynamicImport.ts +++ b/tests/cases/conformance/node/allowJs/nodeModulesAllowJsDynamicImport.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @module: node16,node18,node20,nodenext // @declaration: true // @allowJs: true diff --git a/tests/cases/conformance/node/allowJs/nodeModulesAllowJsExportAssignment.ts b/tests/cases/conformance/node/allowJs/nodeModulesAllowJsExportAssignment.ts index 73d40a2847a10..eef307e18f9ce 100644 --- a/tests/cases/conformance/node/allowJs/nodeModulesAllowJsExportAssignment.ts +++ b/tests/cases/conformance/node/allowJs/nodeModulesAllowJsExportAssignment.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @module: node16,node18,node20,nodenext // @declaration: true // @allowJs: true diff --git a/tests/cases/conformance/node/allowJs/nodeModulesAllowJsExportlessJsModuleDetectionAuto.ts b/tests/cases/conformance/node/allowJs/nodeModulesAllowJsExportlessJsModuleDetectionAuto.ts index 079034ff4f271..81f73234d3c94 100644 --- a/tests/cases/conformance/node/allowJs/nodeModulesAllowJsExportlessJsModuleDetectionAuto.ts +++ b/tests/cases/conformance/node/allowJs/nodeModulesAllowJsExportlessJsModuleDetectionAuto.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @module: node16,node18,node20,nodenext // @allowJs: true // @outDir: ./out diff --git a/tests/cases/conformance/node/allowJs/nodeModulesAllowJsGeneratedNameCollisions.ts b/tests/cases/conformance/node/allowJs/nodeModulesAllowJsGeneratedNameCollisions.ts index a8e4a8edd6b96..6d8577151fdaf 100644 --- a/tests/cases/conformance/node/allowJs/nodeModulesAllowJsGeneratedNameCollisions.ts +++ b/tests/cases/conformance/node/allowJs/nodeModulesAllowJsGeneratedNameCollisions.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @module: node16,node18,node20,nodenext // @declaration: true // @allowJs: true diff --git a/tests/cases/conformance/node/allowJs/nodeModulesAllowJsImportAssignment.ts b/tests/cases/conformance/node/allowJs/nodeModulesAllowJsImportAssignment.ts index 9cc719adac682..eee1b000e613f 100644 --- a/tests/cases/conformance/node/allowJs/nodeModulesAllowJsImportAssignment.ts +++ b/tests/cases/conformance/node/allowJs/nodeModulesAllowJsImportAssignment.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @strict: false // @module: node16,node18,node20,nodenext // @declaration: true diff --git a/tests/cases/conformance/node/allowJs/nodeModulesAllowJsImportHelpersCollisions1.ts b/tests/cases/conformance/node/allowJs/nodeModulesAllowJsImportHelpersCollisions1.ts index 8aade6f18e3ce..19e08fff0ad6a 100644 --- a/tests/cases/conformance/node/allowJs/nodeModulesAllowJsImportHelpersCollisions1.ts +++ b/tests/cases/conformance/node/allowJs/nodeModulesAllowJsImportHelpersCollisions1.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @module: node16,node18,node20,nodenext // @declaration: true // @importHelpers: true diff --git a/tests/cases/conformance/node/allowJs/nodeModulesAllowJsImportHelpersCollisions2.ts b/tests/cases/conformance/node/allowJs/nodeModulesAllowJsImportHelpersCollisions2.ts index 54ac2973fb494..f291bfe47e2bf 100644 --- a/tests/cases/conformance/node/allowJs/nodeModulesAllowJsImportHelpersCollisions2.ts +++ b/tests/cases/conformance/node/allowJs/nodeModulesAllowJsImportHelpersCollisions2.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @module: node16,node18,node20,nodenext // @declaration: true // @importHelpers: true diff --git a/tests/cases/conformance/node/allowJs/nodeModulesAllowJsImportMeta.ts b/tests/cases/conformance/node/allowJs/nodeModulesAllowJsImportMeta.ts index ca8f3b1504772..1d75464c004d7 100644 --- a/tests/cases/conformance/node/allowJs/nodeModulesAllowJsImportMeta.ts +++ b/tests/cases/conformance/node/allowJs/nodeModulesAllowJsImportMeta.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @module: node16,node18,node20,nodenext // @declaration: true // @allowJs: true diff --git a/tests/cases/conformance/node/allowJs/nodeModulesAllowJsPackageExports.ts b/tests/cases/conformance/node/allowJs/nodeModulesAllowJsPackageExports.ts index 424d615600331..7b78c223769fe 100644 --- a/tests/cases/conformance/node/allowJs/nodeModulesAllowJsPackageExports.ts +++ b/tests/cases/conformance/node/allowJs/nodeModulesAllowJsPackageExports.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @module: node16,node18,node20,nodenext // @declaration: true // @allowJs: true diff --git a/tests/cases/conformance/node/allowJs/nodeModulesAllowJsPackageImports.ts b/tests/cases/conformance/node/allowJs/nodeModulesAllowJsPackageImports.ts index 50f14b3baf49f..8a9b257aa39f6 100644 --- a/tests/cases/conformance/node/allowJs/nodeModulesAllowJsPackageImports.ts +++ b/tests/cases/conformance/node/allowJs/nodeModulesAllowJsPackageImports.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @module: node16,node18,node20,nodenext // @declaration: true // @allowJs: true diff --git a/tests/cases/conformance/node/allowJs/nodeModulesAllowJsPackagePatternExports.ts b/tests/cases/conformance/node/allowJs/nodeModulesAllowJsPackagePatternExports.ts index 8e7ecd9249c85..231a41e15b6ef 100644 --- a/tests/cases/conformance/node/allowJs/nodeModulesAllowJsPackagePatternExports.ts +++ b/tests/cases/conformance/node/allowJs/nodeModulesAllowJsPackagePatternExports.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @module: node16,node18,node20,nodenext // @declaration: true // @allowJs: true diff --git a/tests/cases/conformance/node/allowJs/nodeModulesAllowJsPackagePatternExportsExclude.ts b/tests/cases/conformance/node/allowJs/nodeModulesAllowJsPackagePatternExportsExclude.ts index 5b43ade349f78..bda99e2525ce5 100644 --- a/tests/cases/conformance/node/allowJs/nodeModulesAllowJsPackagePatternExportsExclude.ts +++ b/tests/cases/conformance/node/allowJs/nodeModulesAllowJsPackagePatternExportsExclude.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @module: node16,node18,node20,nodenext // @declaration: true // @allowJs: true diff --git a/tests/cases/conformance/node/allowJs/nodeModulesAllowJsPackagePatternExportsTrailers.ts b/tests/cases/conformance/node/allowJs/nodeModulesAllowJsPackagePatternExportsTrailers.ts index d02e30cb46a6e..541d62137407c 100644 --- a/tests/cases/conformance/node/allowJs/nodeModulesAllowJsPackagePatternExportsTrailers.ts +++ b/tests/cases/conformance/node/allowJs/nodeModulesAllowJsPackagePatternExportsTrailers.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @module: node16,node18,node20,nodenext // @declaration: true // @allowJs: true diff --git a/tests/cases/conformance/node/allowJs/nodeModulesAllowJsSynchronousCallErrors.ts b/tests/cases/conformance/node/allowJs/nodeModulesAllowJsSynchronousCallErrors.ts index be95fd720be7c..6c44270869017 100644 --- a/tests/cases/conformance/node/allowJs/nodeModulesAllowJsSynchronousCallErrors.ts +++ b/tests/cases/conformance/node/allowJs/nodeModulesAllowJsSynchronousCallErrors.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @module: node16,node18,node20,nodenext // @declaration: true // @allowJs: true diff --git a/tests/cases/conformance/node/allowJs/nodeModulesAllowJsTopLevelAwait.ts b/tests/cases/conformance/node/allowJs/nodeModulesAllowJsTopLevelAwait.ts index 9bef9ae71b79c..2b2dad4b6687a 100644 --- a/tests/cases/conformance/node/allowJs/nodeModulesAllowJsTopLevelAwait.ts +++ b/tests/cases/conformance/node/allowJs/nodeModulesAllowJsTopLevelAwait.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @strict: false // @module: node16,node18,node20,nodenext // @declaration: true diff --git a/tests/cases/conformance/node/esmModuleExports1.ts b/tests/cases/conformance/node/esmModuleExports1.ts index e67da41069d0c..39059bb8a0176 100644 --- a/tests/cases/conformance/node/esmModuleExports1.ts +++ b/tests/cases/conformance/node/esmModuleExports1.ts @@ -1,3 +1,4 @@ +// @target: es2023 // @module: node20 // @checkJs: true // @noEmit: true diff --git a/tests/cases/conformance/node/esmModuleExports2.ts b/tests/cases/conformance/node/esmModuleExports2.ts index c565d4b6a3b61..6cca562aaf7a2 100644 --- a/tests/cases/conformance/node/esmModuleExports2.ts +++ b/tests/cases/conformance/node/esmModuleExports2.ts @@ -1,3 +1,4 @@ +// @target: es2023 // @module: node20 // @checkJs: true // @noEmit: true diff --git a/tests/cases/conformance/node/esmModuleExports3.ts b/tests/cases/conformance/node/esmModuleExports3.ts index 97fdeb3edeeeb..547991e36ee9c 100644 --- a/tests/cases/conformance/node/esmModuleExports3.ts +++ b/tests/cases/conformance/node/esmModuleExports3.ts @@ -1,3 +1,4 @@ +// @target: es2023 // @module: node20 // @checkJs: true // @noEmit: true diff --git a/tests/cases/conformance/node/nodeModules1.ts b/tests/cases/conformance/node/nodeModules1.ts index 9380c004d7757..95912e939bb36 100644 --- a/tests/cases/conformance/node/nodeModules1.ts +++ b/tests/cases/conformance/node/nodeModules1.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @module: node16,node18,node20,nodenext // @declaration: true // @filename: subfolder/index.ts diff --git a/tests/cases/conformance/node/nodeModulesCJSEmit1.ts b/tests/cases/conformance/node/nodeModulesCJSEmit1.ts index 27387acec29ac..1de8fccea2bac 100644 --- a/tests/cases/conformance/node/nodeModulesCJSEmit1.ts +++ b/tests/cases/conformance/node/nodeModulesCJSEmit1.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @module: node18,node20,nodenext // @checkJs: true // @outDir: dist diff --git a/tests/cases/conformance/node/nodeModulesCJSResolvingToESM1_emptyPackageJson.ts b/tests/cases/conformance/node/nodeModulesCJSResolvingToESM1_emptyPackageJson.ts index df229c6582160..c6a9aa3b11e29 100644 --- a/tests/cases/conformance/node/nodeModulesCJSResolvingToESM1_emptyPackageJson.ts +++ b/tests/cases/conformance/node/nodeModulesCJSResolvingToESM1_emptyPackageJson.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @noEmit: true // @noTypesAndSymbols: true // @module: node16 diff --git a/tests/cases/conformance/node/nodeModulesCJSResolvingToESM2_cjsPackageJson.ts b/tests/cases/conformance/node/nodeModulesCJSResolvingToESM2_cjsPackageJson.ts index 74c609c5f9d91..377330f18cae5 100644 --- a/tests/cases/conformance/node/nodeModulesCJSResolvingToESM2_cjsPackageJson.ts +++ b/tests/cases/conformance/node/nodeModulesCJSResolvingToESM2_cjsPackageJson.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @noEmit: true // @noTypesAndSymbols: true // @module: node16 diff --git a/tests/cases/conformance/node/nodeModulesCJSResolvingToESM3_modulePackageJson.ts b/tests/cases/conformance/node/nodeModulesCJSResolvingToESM3_modulePackageJson.ts index 1a11ae8121449..a2e40a035dc67 100644 --- a/tests/cases/conformance/node/nodeModulesCJSResolvingToESM3_modulePackageJson.ts +++ b/tests/cases/conformance/node/nodeModulesCJSResolvingToESM3_modulePackageJson.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @noEmit: true // @noTypesAndSymbols: true // @module: node16 diff --git a/tests/cases/conformance/node/nodeModulesCJSResolvingToESM4_noPackageJson.ts b/tests/cases/conformance/node/nodeModulesCJSResolvingToESM4_noPackageJson.ts index b8fdae850eb64..31cb35e9333a4 100644 --- a/tests/cases/conformance/node/nodeModulesCJSResolvingToESM4_noPackageJson.ts +++ b/tests/cases/conformance/node/nodeModulesCJSResolvingToESM4_noPackageJson.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @noEmit: true // @noTypesAndSymbols: true // @module: node16 diff --git a/tests/cases/conformance/node/nodeModulesCjsFormatFileAlwaysHasDefault.ts b/tests/cases/conformance/node/nodeModulesCjsFormatFileAlwaysHasDefault.ts index 03f651a1d8d6f..f990d7ecddd71 100644 --- a/tests/cases/conformance/node/nodeModulesCjsFormatFileAlwaysHasDefault.ts +++ b/tests/cases/conformance/node/nodeModulesCjsFormatFileAlwaysHasDefault.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @module: node16,node18,node20,nodenext // @declaration: true // @filename: subfolder/index.ts diff --git a/tests/cases/conformance/node/nodeModulesConditionalPackageExports.ts b/tests/cases/conformance/node/nodeModulesConditionalPackageExports.ts index a202fb2b7207f..cdadbcf25f421 100644 --- a/tests/cases/conformance/node/nodeModulesConditionalPackageExports.ts +++ b/tests/cases/conformance/node/nodeModulesConditionalPackageExports.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @module: node16,node18,node20,nodenext // @declaration: true // @outDir: out diff --git a/tests/cases/conformance/node/nodeModulesDeclarationEmitDynamicImportWithPackageExports.ts b/tests/cases/conformance/node/nodeModulesDeclarationEmitDynamicImportWithPackageExports.ts index 3b2182f068b4a..1f0ab491cf96f 100644 --- a/tests/cases/conformance/node/nodeModulesDeclarationEmitDynamicImportWithPackageExports.ts +++ b/tests/cases/conformance/node/nodeModulesDeclarationEmitDynamicImportWithPackageExports.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @module: node18,node20,nodenext // @declaration: true // @filename: index.ts diff --git a/tests/cases/conformance/node/nodeModulesDeclarationEmitWithPackageExports.ts b/tests/cases/conformance/node/nodeModulesDeclarationEmitWithPackageExports.ts index 99ab17d9fb0f8..34f543fe489c9 100644 --- a/tests/cases/conformance/node/nodeModulesDeclarationEmitWithPackageExports.ts +++ b/tests/cases/conformance/node/nodeModulesDeclarationEmitWithPackageExports.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @module: node16,node18,node20,nodenext // @declaration: true // @outDir: out diff --git a/tests/cases/conformance/node/nodeModulesDynamicImport.ts b/tests/cases/conformance/node/nodeModulesDynamicImport.ts index a412844562d5e..8da5c599457d1 100644 --- a/tests/cases/conformance/node/nodeModulesDynamicImport.ts +++ b/tests/cases/conformance/node/nodeModulesDynamicImport.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @module: node16,node18,node20,nodenext // @declaration: true // @filename: subfolder/index.ts diff --git a/tests/cases/conformance/node/nodeModulesExportAssignments.ts b/tests/cases/conformance/node/nodeModulesExportAssignments.ts index 7768291ebb2a1..08f410ed84b83 100644 --- a/tests/cases/conformance/node/nodeModulesExportAssignments.ts +++ b/tests/cases/conformance/node/nodeModulesExportAssignments.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @module: node16,node18,node20,nodenext // @declaration: true // @filename: subfolder/index.ts diff --git a/tests/cases/conformance/node/nodeModulesExportsBlocksSpecifierResolution.ts b/tests/cases/conformance/node/nodeModulesExportsBlocksSpecifierResolution.ts index 174590e5c638c..ba01712ce5bcf 100644 --- a/tests/cases/conformance/node/nodeModulesExportsBlocksSpecifierResolution.ts +++ b/tests/cases/conformance/node/nodeModulesExportsBlocksSpecifierResolution.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @module: node16,node18,node20,nodenext // @declaration: true // @filename: index.ts diff --git a/tests/cases/conformance/node/nodeModulesExportsBlocksTypesVersions.ts b/tests/cases/conformance/node/nodeModulesExportsBlocksTypesVersions.ts index c55ebc4c8e416..4c190d82b5df2 100644 --- a/tests/cases/conformance/node/nodeModulesExportsBlocksTypesVersions.ts +++ b/tests/cases/conformance/node/nodeModulesExportsBlocksTypesVersions.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @module: node16,node18,node20,nodenext // @traceResolution: true // @noImplicitAny: true diff --git a/tests/cases/conformance/node/nodeModulesExportsDoubleAsterisk.ts b/tests/cases/conformance/node/nodeModulesExportsDoubleAsterisk.ts index 9048bc1af2b7d..3791828d13948 100644 --- a/tests/cases/conformance/node/nodeModulesExportsDoubleAsterisk.ts +++ b/tests/cases/conformance/node/nodeModulesExportsDoubleAsterisk.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @module: node18,node20,nodenext // @noTypesAndSymbols: true // @noEmit: true diff --git a/tests/cases/conformance/node/nodeModulesExportsSourceTs.ts b/tests/cases/conformance/node/nodeModulesExportsSourceTs.ts index eb7cafd27ede1..9780b4974c39d 100644 --- a/tests/cases/conformance/node/nodeModulesExportsSourceTs.ts +++ b/tests/cases/conformance/node/nodeModulesExportsSourceTs.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @module: node16,node18,node20,nodenext // @declaration: true // @filename: index.ts diff --git a/tests/cases/conformance/node/nodeModulesExportsSpecifierGenerationConditions.ts b/tests/cases/conformance/node/nodeModulesExportsSpecifierGenerationConditions.ts index fd8ab6f1eae68..f9f8d8312582d 100644 --- a/tests/cases/conformance/node/nodeModulesExportsSpecifierGenerationConditions.ts +++ b/tests/cases/conformance/node/nodeModulesExportsSpecifierGenerationConditions.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @module: node16,node18,node20,nodenext // @declaration: true // @filename: index.ts diff --git a/tests/cases/conformance/node/nodeModulesExportsSpecifierGenerationDirectory.ts b/tests/cases/conformance/node/nodeModulesExportsSpecifierGenerationDirectory.ts index eda320d95016f..e760b55203f28 100644 --- a/tests/cases/conformance/node/nodeModulesExportsSpecifierGenerationDirectory.ts +++ b/tests/cases/conformance/node/nodeModulesExportsSpecifierGenerationDirectory.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @module: node16,node18,node20,nodenext // @declaration: true // @filename: index.ts diff --git a/tests/cases/conformance/node/nodeModulesExportsSpecifierGenerationPattern.ts b/tests/cases/conformance/node/nodeModulesExportsSpecifierGenerationPattern.ts index 42cec3956bb97..24cc19ebc2a0f 100644 --- a/tests/cases/conformance/node/nodeModulesExportsSpecifierGenerationPattern.ts +++ b/tests/cases/conformance/node/nodeModulesExportsSpecifierGenerationPattern.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @module: node16,node18,node20,nodenext // @declaration: true // @filename: index.ts diff --git a/tests/cases/conformance/node/nodeModulesForbidenSyntax.ts b/tests/cases/conformance/node/nodeModulesForbidenSyntax.ts index a4031f5c159a4..79ad0dea05679 100644 --- a/tests/cases/conformance/node/nodeModulesForbidenSyntax.ts +++ b/tests/cases/conformance/node/nodeModulesForbidenSyntax.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @module: node16,node18,node20,nodenext // @declaration: true // @filename: subfolder/index.ts diff --git a/tests/cases/conformance/node/nodeModulesGeneratedNameCollisions.ts b/tests/cases/conformance/node/nodeModulesGeneratedNameCollisions.ts index 8b350f873baf7..bcf19abcff01b 100644 --- a/tests/cases/conformance/node/nodeModulesGeneratedNameCollisions.ts +++ b/tests/cases/conformance/node/nodeModulesGeneratedNameCollisions.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @module: node16,node18,node20,nodenext // @declaration: true // @filename: subfolder/index.ts diff --git a/tests/cases/conformance/node/nodeModulesImportAssertions.ts b/tests/cases/conformance/node/nodeModulesImportAssertions.ts index 9aca139d1ee5b..f7e50e461f338 100644 --- a/tests/cases/conformance/node/nodeModulesImportAssertions.ts +++ b/tests/cases/conformance/node/nodeModulesImportAssertions.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @module: node16,node18,node20,nodenext // @resolveJsonModule: true // @filename: index.ts diff --git a/tests/cases/conformance/node/nodeModulesImportAssignments.ts b/tests/cases/conformance/node/nodeModulesImportAssignments.ts index 88bd450c5f5b0..c5cf837cb2dcf 100644 --- a/tests/cases/conformance/node/nodeModulesImportAssignments.ts +++ b/tests/cases/conformance/node/nodeModulesImportAssignments.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @strict: false // @module: node16,node18,node20,nodenext // @declaration: true diff --git a/tests/cases/conformance/node/nodeModulesImportAttributes.ts b/tests/cases/conformance/node/nodeModulesImportAttributes.ts index d20555809f3ac..b173e8d7d2430 100644 --- a/tests/cases/conformance/node/nodeModulesImportAttributes.ts +++ b/tests/cases/conformance/node/nodeModulesImportAttributes.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @module: node16,node18,node20,nodenext // @resolveJsonModule: true // @filename: index.ts diff --git a/tests/cases/conformance/node/nodeModulesImportAttributesModeDeclarationEmit1.ts b/tests/cases/conformance/node/nodeModulesImportAttributesModeDeclarationEmit1.ts index dce0925f96492..425ec617014d5 100644 --- a/tests/cases/conformance/node/nodeModulesImportAttributesModeDeclarationEmit1.ts +++ b/tests/cases/conformance/node/nodeModulesImportAttributesModeDeclarationEmit1.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @noImplicitReferences: true // @module: node16,node18,node20,nodenext // @declaration: true diff --git a/tests/cases/conformance/node/nodeModulesImportAttributesModeDeclarationEmit2.ts b/tests/cases/conformance/node/nodeModulesImportAttributesModeDeclarationEmit2.ts index 079c0ab42ce20..dff5292d77b95 100644 --- a/tests/cases/conformance/node/nodeModulesImportAttributesModeDeclarationEmit2.ts +++ b/tests/cases/conformance/node/nodeModulesImportAttributesModeDeclarationEmit2.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @noImplicitReferences: true // @module: node16,node18,node20,nodenext // @declaration: true diff --git a/tests/cases/conformance/node/nodeModulesImportAttributesModeDeclarationEmitErrors.ts b/tests/cases/conformance/node/nodeModulesImportAttributesModeDeclarationEmitErrors.ts index af87fa86251e7..beccfce3d2449 100644 --- a/tests/cases/conformance/node/nodeModulesImportAttributesModeDeclarationEmitErrors.ts +++ b/tests/cases/conformance/node/nodeModulesImportAttributesModeDeclarationEmitErrors.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @noImplicitReferences: true // @module: node16,node18,node20,nodenext // @declaration: true diff --git a/tests/cases/conformance/node/nodeModulesImportAttributesTypeModeDeclarationEmit.ts b/tests/cases/conformance/node/nodeModulesImportAttributesTypeModeDeclarationEmit.ts index 8450a5ddc7218..420d39e0d4f0e 100644 --- a/tests/cases/conformance/node/nodeModulesImportAttributesTypeModeDeclarationEmit.ts +++ b/tests/cases/conformance/node/nodeModulesImportAttributesTypeModeDeclarationEmit.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @noImplicitReferences: true // @module: node16,node18,node20,nodenext // @declaration: true diff --git a/tests/cases/conformance/node/nodeModulesImportAttributesTypeModeDeclarationEmitErrors.ts b/tests/cases/conformance/node/nodeModulesImportAttributesTypeModeDeclarationEmitErrors.ts index 6b4e070a98fae..cd2b461a22a8a 100644 --- a/tests/cases/conformance/node/nodeModulesImportAttributesTypeModeDeclarationEmitErrors.ts +++ b/tests/cases/conformance/node/nodeModulesImportAttributesTypeModeDeclarationEmitErrors.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @strict: false // @module: node16,node18,node20,nodenext // @declaration: true diff --git a/tests/cases/conformance/node/nodeModulesImportHelpersCollisions.ts b/tests/cases/conformance/node/nodeModulesImportHelpersCollisions.ts index 101ebb726dea9..5662fecd63e05 100644 --- a/tests/cases/conformance/node/nodeModulesImportHelpersCollisions.ts +++ b/tests/cases/conformance/node/nodeModulesImportHelpersCollisions.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @module: node16,node18,node20,nodenext // @declaration: true // @importHelpers: true diff --git a/tests/cases/conformance/node/nodeModulesImportHelpersCollisions2.ts b/tests/cases/conformance/node/nodeModulesImportHelpersCollisions2.ts index 6697558908257..c6ffd3b2887a2 100644 --- a/tests/cases/conformance/node/nodeModulesImportHelpersCollisions2.ts +++ b/tests/cases/conformance/node/nodeModulesImportHelpersCollisions2.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @module: node16,node18,node20,nodenext // @declaration: true // @importHelpers: true diff --git a/tests/cases/conformance/node/nodeModulesImportMeta.ts b/tests/cases/conformance/node/nodeModulesImportMeta.ts index 52da74d0f6751..20d9c4232a666 100644 --- a/tests/cases/conformance/node/nodeModulesImportMeta.ts +++ b/tests/cases/conformance/node/nodeModulesImportMeta.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @module: node16,node18,node20,nodenext // @declaration: true // @filename: subfolder/index.ts diff --git a/tests/cases/conformance/node/nodeModulesImportModeDeclarationEmit1.ts b/tests/cases/conformance/node/nodeModulesImportModeDeclarationEmit1.ts index fde8a01a0569b..acf3482e79bf6 100644 --- a/tests/cases/conformance/node/nodeModulesImportModeDeclarationEmit1.ts +++ b/tests/cases/conformance/node/nodeModulesImportModeDeclarationEmit1.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @noImplicitReferences: true // @module: node16,node18,node20,nodenext // @declaration: true diff --git a/tests/cases/conformance/node/nodeModulesImportModeDeclarationEmit2.ts b/tests/cases/conformance/node/nodeModulesImportModeDeclarationEmit2.ts index ee809511921c9..0d1050da7d551 100644 --- a/tests/cases/conformance/node/nodeModulesImportModeDeclarationEmit2.ts +++ b/tests/cases/conformance/node/nodeModulesImportModeDeclarationEmit2.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @noImplicitReferences: true // @module: node16,node18,node20,nodenext // @declaration: true diff --git a/tests/cases/conformance/node/nodeModulesImportModeDeclarationEmitErrors1.ts b/tests/cases/conformance/node/nodeModulesImportModeDeclarationEmitErrors1.ts index 399c72d203203..a5f02035768ea 100644 --- a/tests/cases/conformance/node/nodeModulesImportModeDeclarationEmitErrors1.ts +++ b/tests/cases/conformance/node/nodeModulesImportModeDeclarationEmitErrors1.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @noImplicitReferences: true // @module: node16,node18,node20,nodenext // @declaration: true diff --git a/tests/cases/conformance/node/nodeModulesImportResolutionIntoExport.ts b/tests/cases/conformance/node/nodeModulesImportResolutionIntoExport.ts index 674ffc79366e6..42f0e61ae1e8a 100644 --- a/tests/cases/conformance/node/nodeModulesImportResolutionIntoExport.ts +++ b/tests/cases/conformance/node/nodeModulesImportResolutionIntoExport.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @module: node16,node18,node20,nodenext // @declaration: true // @filename: index.ts diff --git a/tests/cases/conformance/node/nodeModulesImportResolutionNoCycle.ts b/tests/cases/conformance/node/nodeModulesImportResolutionNoCycle.ts index f127d37349642..7ab27a44168c9 100644 --- a/tests/cases/conformance/node/nodeModulesImportResolutionNoCycle.ts +++ b/tests/cases/conformance/node/nodeModulesImportResolutionNoCycle.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @module: node16,node18,node20,nodenext // @declaration: true // @filename: index.ts diff --git a/tests/cases/conformance/node/nodeModulesImportTypeModeDeclarationEmit1.ts b/tests/cases/conformance/node/nodeModulesImportTypeModeDeclarationEmit1.ts index 40e47a0f51bbd..208a1141dfa44 100644 --- a/tests/cases/conformance/node/nodeModulesImportTypeModeDeclarationEmit1.ts +++ b/tests/cases/conformance/node/nodeModulesImportTypeModeDeclarationEmit1.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @noImplicitReferences: true // @module: node16,node18,node20,nodenext // @declaration: true diff --git a/tests/cases/conformance/node/nodeModulesImportTypeModeDeclarationEmitErrors1.ts b/tests/cases/conformance/node/nodeModulesImportTypeModeDeclarationEmitErrors1.ts index bc412a1729510..ca502b389790f 100644 --- a/tests/cases/conformance/node/nodeModulesImportTypeModeDeclarationEmitErrors1.ts +++ b/tests/cases/conformance/node/nodeModulesImportTypeModeDeclarationEmitErrors1.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @strict: false // @module: node16,node18,node20,nodenext // @declaration: true diff --git a/tests/cases/conformance/node/nodeModulesJson.ts b/tests/cases/conformance/node/nodeModulesJson.ts index 2ed2469142268..2580cc55674e6 100644 --- a/tests/cases/conformance/node/nodeModulesJson.ts +++ b/tests/cases/conformance/node/nodeModulesJson.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @module: node16,node18,node20,nodenext // @resolveJsonModule: true // @noEmit: true diff --git a/tests/cases/conformance/node/nodeModulesNoDirectoryModule.ts b/tests/cases/conformance/node/nodeModulesNoDirectoryModule.ts index 5b5d38a99466c..8fb1b3fc875c6 100644 --- a/tests/cases/conformance/node/nodeModulesNoDirectoryModule.ts +++ b/tests/cases/conformance/node/nodeModulesNoDirectoryModule.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @noUncheckedSideEffectImports: true // @strict: true // @module: node16 diff --git a/tests/cases/conformance/node/nodeModulesPackageExports.ts b/tests/cases/conformance/node/nodeModulesPackageExports.ts index 4ec9614911ab9..5ccbbb13de079 100644 --- a/tests/cases/conformance/node/nodeModulesPackageExports.ts +++ b/tests/cases/conformance/node/nodeModulesPackageExports.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @module: node16,node18,node20,nodenext // @declaration: true // @outDir: out diff --git a/tests/cases/conformance/node/nodeModulesPackageImports.ts b/tests/cases/conformance/node/nodeModulesPackageImports.ts index d307d23f096ad..3a6b0365499a0 100644 --- a/tests/cases/conformance/node/nodeModulesPackageImports.ts +++ b/tests/cases/conformance/node/nodeModulesPackageImports.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @module: node16,node18,node20,nodenext // @declaration: true // @filename: index.ts diff --git a/tests/cases/conformance/node/nodeModulesPackageImportsRootWildcardNode16.ts b/tests/cases/conformance/node/nodeModulesPackageImportsRootWildcardNode16.ts index edd2b10c5abff..55e59a637b3b7 100644 --- a/tests/cases/conformance/node/nodeModulesPackageImportsRootWildcardNode16.ts +++ b/tests/cases/conformance/node/nodeModulesPackageImportsRootWildcardNode16.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @module: node16 // @declaration: true // @traceResolution: true diff --git a/tests/cases/conformance/node/nodeModulesPackagePatternExports.ts b/tests/cases/conformance/node/nodeModulesPackagePatternExports.ts index 3df678927c945..e4b1d61509e8a 100644 --- a/tests/cases/conformance/node/nodeModulesPackagePatternExports.ts +++ b/tests/cases/conformance/node/nodeModulesPackagePatternExports.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @module: node16,node18,node20,nodenext // @declaration: true // @outDir: out diff --git a/tests/cases/conformance/node/nodeModulesPackagePatternExportsExclude.ts b/tests/cases/conformance/node/nodeModulesPackagePatternExportsExclude.ts index 33058b62ac758..91cde50bc9d5f 100644 --- a/tests/cases/conformance/node/nodeModulesPackagePatternExportsExclude.ts +++ b/tests/cases/conformance/node/nodeModulesPackagePatternExportsExclude.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @module: node16,node18,node20,nodenext // @declaration: true // @outDir: out diff --git a/tests/cases/conformance/node/nodeModulesPackagePatternExportsTrailers.ts b/tests/cases/conformance/node/nodeModulesPackagePatternExportsTrailers.ts index 2d098108b188f..10ed7c44ed856 100644 --- a/tests/cases/conformance/node/nodeModulesPackagePatternExportsTrailers.ts +++ b/tests/cases/conformance/node/nodeModulesPackagePatternExportsTrailers.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @module: node16,node18,node20,nodenext // @declaration: true // @outDir: out diff --git a/tests/cases/conformance/node/nodeModulesResolveJsonModule.ts b/tests/cases/conformance/node/nodeModulesResolveJsonModule.ts index ebf4943bfd97a..9f648d082d72e 100644 --- a/tests/cases/conformance/node/nodeModulesResolveJsonModule.ts +++ b/tests/cases/conformance/node/nodeModulesResolveJsonModule.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @module: node16,node18,node20,nodenext // @resolveJsonModule: true // @outDir: ./out diff --git a/tests/cases/conformance/node/nodeModulesSynchronousCallErrors.ts b/tests/cases/conformance/node/nodeModulesSynchronousCallErrors.ts index a9a6366da2177..0908766a2c8dd 100644 --- a/tests/cases/conformance/node/nodeModulesSynchronousCallErrors.ts +++ b/tests/cases/conformance/node/nodeModulesSynchronousCallErrors.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @module: node16,node18,node20,nodenext // @declaration: true // @filename: subfolder/index.ts diff --git a/tests/cases/conformance/node/nodeModulesTopLevelAwait.ts b/tests/cases/conformance/node/nodeModulesTopLevelAwait.ts index e4ea126385260..f0f73f5b7592c 100644 --- a/tests/cases/conformance/node/nodeModulesTopLevelAwait.ts +++ b/tests/cases/conformance/node/nodeModulesTopLevelAwait.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @strict: false // @module: node16,node18,node20,nodenext // @declaration: true diff --git a/tests/cases/conformance/node/nodeModulesTripleSlashReferenceModeDeclarationEmit1.ts b/tests/cases/conformance/node/nodeModulesTripleSlashReferenceModeDeclarationEmit1.ts index f2006002aa8a3..05b9714be5ba2 100644 --- a/tests/cases/conformance/node/nodeModulesTripleSlashReferenceModeDeclarationEmit1.ts +++ b/tests/cases/conformance/node/nodeModulesTripleSlashReferenceModeDeclarationEmit1.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @noImplicitReferences: true // @module: node16,node18,node20,nodenext // @declaration: true diff --git a/tests/cases/conformance/node/nodeModulesTripleSlashReferenceModeDeclarationEmit2.ts b/tests/cases/conformance/node/nodeModulesTripleSlashReferenceModeDeclarationEmit2.ts index 4f121400e2d35..d7002694ac42a 100644 --- a/tests/cases/conformance/node/nodeModulesTripleSlashReferenceModeDeclarationEmit2.ts +++ b/tests/cases/conformance/node/nodeModulesTripleSlashReferenceModeDeclarationEmit2.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @noImplicitReferences: true // @module: node16,node18,node20,nodenext // @declaration: true diff --git a/tests/cases/conformance/node/nodeModulesTripleSlashReferenceModeDeclarationEmit3.ts b/tests/cases/conformance/node/nodeModulesTripleSlashReferenceModeDeclarationEmit3.ts index 24590a8e6f0c0..b537c4dc0444a 100644 --- a/tests/cases/conformance/node/nodeModulesTripleSlashReferenceModeDeclarationEmit3.ts +++ b/tests/cases/conformance/node/nodeModulesTripleSlashReferenceModeDeclarationEmit3.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @noImplicitReferences: true // @module: node16,node18,node20,nodenext // @declaration: true diff --git a/tests/cases/conformance/node/nodeModulesTripleSlashReferenceModeDeclarationEmit4.ts b/tests/cases/conformance/node/nodeModulesTripleSlashReferenceModeDeclarationEmit4.ts index 3edf6054900b7..c6a373e36f7de 100644 --- a/tests/cases/conformance/node/nodeModulesTripleSlashReferenceModeDeclarationEmit4.ts +++ b/tests/cases/conformance/node/nodeModulesTripleSlashReferenceModeDeclarationEmit4.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @noImplicitReferences: true // @module: node16,node18,node20,nodenext // @declaration: true diff --git a/tests/cases/conformance/node/nodeModulesTripleSlashReferenceModeDeclarationEmit5.ts b/tests/cases/conformance/node/nodeModulesTripleSlashReferenceModeDeclarationEmit5.ts index 717665bf51288..dae56c6d914d2 100644 --- a/tests/cases/conformance/node/nodeModulesTripleSlashReferenceModeDeclarationEmit5.ts +++ b/tests/cases/conformance/node/nodeModulesTripleSlashReferenceModeDeclarationEmit5.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @noImplicitReferences: true // @module: node16,node18,node20,nodenext // @declaration: true diff --git a/tests/cases/conformance/node/nodeModulesTripleSlashReferenceModeDeclarationEmit6.ts b/tests/cases/conformance/node/nodeModulesTripleSlashReferenceModeDeclarationEmit6.ts index 0db5f88943134..dcee810ddf10a 100644 --- a/tests/cases/conformance/node/nodeModulesTripleSlashReferenceModeDeclarationEmit6.ts +++ b/tests/cases/conformance/node/nodeModulesTripleSlashReferenceModeDeclarationEmit6.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @noImplicitReferences: true // @module: node16,node18,node20,nodenext // @declaration: true diff --git a/tests/cases/conformance/node/nodeModulesTripleSlashReferenceModeDeclarationEmit7.ts b/tests/cases/conformance/node/nodeModulesTripleSlashReferenceModeDeclarationEmit7.ts index 2db3fd9241a8e..94a1a466626c3 100644 --- a/tests/cases/conformance/node/nodeModulesTripleSlashReferenceModeDeclarationEmit7.ts +++ b/tests/cases/conformance/node/nodeModulesTripleSlashReferenceModeDeclarationEmit7.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @noImplicitReferences: true // @module: node16,node18,node20,nodenext // @declaration: true diff --git a/tests/cases/conformance/node/nodeModulesTripleSlashReferenceModeOverride1.ts b/tests/cases/conformance/node/nodeModulesTripleSlashReferenceModeOverride1.ts index 05f0b599c56e7..7b819b42c2b85 100644 --- a/tests/cases/conformance/node/nodeModulesTripleSlashReferenceModeOverride1.ts +++ b/tests/cases/conformance/node/nodeModulesTripleSlashReferenceModeOverride1.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @noImplicitReferences: true // @module: node16,node18,node20,nodenext // @outDir: out diff --git a/tests/cases/conformance/node/nodeModulesTripleSlashReferenceModeOverride2.ts b/tests/cases/conformance/node/nodeModulesTripleSlashReferenceModeOverride2.ts index 137b91399dedb..74f6529773ee1 100644 --- a/tests/cases/conformance/node/nodeModulesTripleSlashReferenceModeOverride2.ts +++ b/tests/cases/conformance/node/nodeModulesTripleSlashReferenceModeOverride2.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @noImplicitReferences: true // @module: node16,node18,node20,nodenext // @outDir: out diff --git a/tests/cases/conformance/node/nodeModulesTripleSlashReferenceModeOverride3.ts b/tests/cases/conformance/node/nodeModulesTripleSlashReferenceModeOverride3.ts index 0c05f1d7eae1f..6aaa479b00291 100644 --- a/tests/cases/conformance/node/nodeModulesTripleSlashReferenceModeOverride3.ts +++ b/tests/cases/conformance/node/nodeModulesTripleSlashReferenceModeOverride3.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @noImplicitReferences: true // @module: node16,node18,node20,nodenext // @outDir: out diff --git a/tests/cases/conformance/node/nodeModulesTripleSlashReferenceModeOverride4.ts b/tests/cases/conformance/node/nodeModulesTripleSlashReferenceModeOverride4.ts index 0df6662f84785..7a1ef90409c4c 100644 --- a/tests/cases/conformance/node/nodeModulesTripleSlashReferenceModeOverride4.ts +++ b/tests/cases/conformance/node/nodeModulesTripleSlashReferenceModeOverride4.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @noImplicitReferences: true // @module: node16,node18,node20,nodenext // @outDir: out diff --git a/tests/cases/conformance/node/nodeModulesTripleSlashReferenceModeOverride5.ts b/tests/cases/conformance/node/nodeModulesTripleSlashReferenceModeOverride5.ts index d29de3ac413bd..70af89a3f3a27 100644 --- a/tests/cases/conformance/node/nodeModulesTripleSlashReferenceModeOverride5.ts +++ b/tests/cases/conformance/node/nodeModulesTripleSlashReferenceModeOverride5.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @noImplicitReferences: true // @module: node16,node18,node20,nodenext // @outDir: out diff --git a/tests/cases/conformance/node/nodeModulesTripleSlashReferenceModeOverrideModeError.ts b/tests/cases/conformance/node/nodeModulesTripleSlashReferenceModeOverrideModeError.ts index 0a461a082ce6f..f723bf7707a2f 100644 --- a/tests/cases/conformance/node/nodeModulesTripleSlashReferenceModeOverrideModeError.ts +++ b/tests/cases/conformance/node/nodeModulesTripleSlashReferenceModeOverrideModeError.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @noImplicitReferences: true // @module: node16,node18,node20,nodenext // @outDir: out diff --git a/tests/cases/conformance/node/nodeModulesTypesVersionPackageExports.ts b/tests/cases/conformance/node/nodeModulesTypesVersionPackageExports.ts index 99172359be92d..ea5483ad2075c 100644 --- a/tests/cases/conformance/node/nodeModulesTypesVersionPackageExports.ts +++ b/tests/cases/conformance/node/nodeModulesTypesVersionPackageExports.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @module: node16,node18,node20,nodenext // @declaration: true // @outDir: out diff --git a/tests/cases/conformance/node/nodePackageSelfName.ts b/tests/cases/conformance/node/nodePackageSelfName.ts index 2d70c85f393b2..a7ce7e8509514 100644 --- a/tests/cases/conformance/node/nodePackageSelfName.ts +++ b/tests/cases/conformance/node/nodePackageSelfName.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @module: node16,node18,node20,nodenext // @declaration: true // @filename: index.ts diff --git a/tests/cases/conformance/node/nodePackageSelfNameScoped.ts b/tests/cases/conformance/node/nodePackageSelfNameScoped.ts index 08e0cef7696b1..abde22be831cb 100644 --- a/tests/cases/conformance/node/nodePackageSelfNameScoped.ts +++ b/tests/cases/conformance/node/nodePackageSelfNameScoped.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @module: node16,node18,node20,nodenext // @declaration: true // @filename: index.ts diff --git a/tests/cases/conformance/nonjsExtensions/declarationFileForTsJsImport.ts b/tests/cases/conformance/nonjsExtensions/declarationFileForTsJsImport.ts index 44ef8a6746012..479676aa9913d 100644 --- a/tests/cases/conformance/nonjsExtensions/declarationFileForTsJsImport.ts +++ b/tests/cases/conformance/nonjsExtensions/declarationFileForTsJsImport.ts @@ -1,3 +1,4 @@ +// @target: es2022 // @allowArbitraryExtensions: true // @module: node18,node20,nodenext // @filename: package.json From a82be55a6230c047642f4edcc87f3f16436b6a8f Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Wed, 28 Jan 2026 20:21:20 -0800 Subject: [PATCH 2/6] Make all es5 tests also test es2015 --- .../ES3For-ofTypeCheck1(target=es2015).js | 7 + ...S3For-ofTypeCheck1(target=es2015).symbols} | 0 ... ES3For-ofTypeCheck1(target=es2015).types} | 0 ....js => ES3For-ofTypeCheck1(target=es5).js} | 0 .../ES3For-ofTypeCheck1(target=es5).symbols | 6 + .../ES3For-ofTypeCheck1(target=es5).types | 9 + .../ES3For-ofTypeCheck2(target=es2015).js | 7 + ...S3For-ofTypeCheck2(target=es2015).symbols} | 0 ... ES3For-ofTypeCheck2(target=es2015).types} | 0 ....js => ES3For-ofTypeCheck2(target=es5).js} | 0 .../ES3For-ofTypeCheck2(target=es5).symbols | 6 + .../ES3For-ofTypeCheck2(target=es5).types | 11 + .../ES3For-ofTypeCheck4(target=es2015).js | 9 + ...S3For-ofTypeCheck4(target=es2015).symbols} | 0 ... ES3For-ofTypeCheck4(target=es2015).types} | 0 ....js => ES3For-ofTypeCheck4(target=es5).js} | 0 .../ES3For-ofTypeCheck4(target=es5).symbols | 10 + .../ES3For-ofTypeCheck4(target=es5).types | 13 + .../ES3For-ofTypeCheck6(target=es2015).js | 9 + ...S3For-ofTypeCheck6(target=es2015).symbols} | 0 ... ES3For-ofTypeCheck6(target=es2015).types} | 0 ....js => ES3For-ofTypeCheck6(target=es5).js} | 0 .../ES3For-ofTypeCheck6(target=es5).symbols | 10 + .../ES3For-ofTypeCheck6(target=es5).types | 13 + .../ES5For-ofTypeCheck1(target=es2015).js | 7 + ...S5For-ofTypeCheck1(target=es2015).symbols} | 0 ... ES5For-ofTypeCheck1(target=es2015).types} | 0 ....js => ES5For-ofTypeCheck1(target=es5).js} | 0 .../ES5For-ofTypeCheck1(target=es5).symbols | 6 + .../ES5For-ofTypeCheck1(target=es5).types | 9 + .../ES5For-ofTypeCheck10(target=es2015).js | 32 + ...5For-ofTypeCheck10(target=es2015).symbols} | 0 .../ES5For-ofTypeCheck10(target=es2015).types | 54 + ...5For-ofTypeCheck10(target=es5).errors.txt} | 0 ...js => ES5For-ofTypeCheck10(target=es5).js} | 0 .../ES5For-ofTypeCheck10(target=es5).symbols | 34 + ...=> ES5For-ofTypeCheck10(target=es5).types} | 0 ...r-ofTypeCheck11(target=es2015).errors.txt} | 0 .../ES5For-ofTypeCheck11(target=es2015).js | 10 + ...5For-ofTypeCheck11(target=es2015).symbols} | 0 ...ES5For-ofTypeCheck11(target=es2015).types} | 0 ...S5For-ofTypeCheck11(target=es5).errors.txt | 11 + ...js => ES5For-ofTypeCheck11(target=es5).js} | 0 .../ES5For-ofTypeCheck11(target=es5).symbols | 13 + .../ES5For-ofTypeCheck11(target=es5).types | 17 + ...or-ofTypeCheck12(target=es2015).errors.txt | 7 + .../ES5For-ofTypeCheck12(target=es2015).js | 7 + ...5For-ofTypeCheck12(target=es2015).symbols} | 0 ...ES5For-ofTypeCheck12(target=es2015).types} | 0 ...5For-ofTypeCheck12(target=es5).errors.txt} | 0 ...js => ES5For-ofTypeCheck12(target=es5).js} | 0 .../ES5For-ofTypeCheck12(target=es5).symbols | 6 + .../ES5For-ofTypeCheck12(target=es5).types | 9 + .../ES5For-ofTypeCheck13(target=es2015).js | 13 + ...5For-ofTypeCheck13(target=es2015).symbols} | 0 .../ES5For-ofTypeCheck13(target=es2015).types | 41 + ...5For-ofTypeCheck13(target=es5).errors.txt} | 0 ...js => ES5For-ofTypeCheck13(target=es5).js} | 0 .../ES5For-ofTypeCheck13(target=es5).symbols | 22 + ...=> ES5For-ofTypeCheck13(target=es5).types} | 0 .../ES5For-ofTypeCheck14(target=es2015).js | 8 + ...5For-ofTypeCheck14(target=es2015).symbols} | 0 .../ES5For-ofTypeCheck14(target=es2015).types | 13 + ...5For-ofTypeCheck14(target=es5).errors.txt} | 0 ...js => ES5For-ofTypeCheck14(target=es5).js} | 0 .../ES5For-ofTypeCheck14(target=es5).symbols | 11 + ...=> ES5For-ofTypeCheck14(target=es5).types} | 0 .../ES5For-ofTypeCheck2(target=es2015).js | 7 + ...S5For-ofTypeCheck2(target=es2015).symbols} | 0 ... ES5For-ofTypeCheck2(target=es2015).types} | 0 ....js => ES5For-ofTypeCheck2(target=es5).js} | 0 .../ES5For-ofTypeCheck2(target=es5).symbols | 6 + .../ES5For-ofTypeCheck2(target=es5).types | 11 + .../ES5For-ofTypeCheck3(target=es2015).js | 9 + ...S5For-ofTypeCheck3(target=es2015).symbols} | 0 ... ES5For-ofTypeCheck3(target=es2015).types} | 0 ....js => ES5For-ofTypeCheck3(target=es5).js} | 0 .../ES5For-ofTypeCheck3(target=es5).symbols | 10 + .../ES5For-ofTypeCheck3(target=es5).types | 19 + .../ES5For-ofTypeCheck4(target=es2015).js | 9 + ...S5For-ofTypeCheck4(target=es2015).symbols} | 0 ... ES5For-ofTypeCheck4(target=es2015).types} | 0 ....js => ES5For-ofTypeCheck4(target=es5).js} | 0 .../ES5For-ofTypeCheck4(target=es5).symbols | 10 + .../ES5For-ofTypeCheck4(target=es5).types | 13 + .../ES5For-ofTypeCheck5(target=es2015).js | 9 + ...S5For-ofTypeCheck5(target=es2015).symbols} | 0 ... ES5For-ofTypeCheck5(target=es2015).types} | 0 ....js => ES5For-ofTypeCheck5(target=es5).js} | 0 .../ES5For-ofTypeCheck5(target=es5).symbols | 10 + .../ES5For-ofTypeCheck5(target=es5).types | 13 + .../ES5For-ofTypeCheck6(target=es2015).js | 9 + ...S5For-ofTypeCheck6(target=es2015).symbols} | 0 ... ES5For-ofTypeCheck6(target=es2015).types} | 0 ....js => ES5For-ofTypeCheck6(target=es5).js} | 0 .../ES5For-ofTypeCheck6(target=es5).symbols | 10 + .../ES5For-ofTypeCheck6(target=es5).types | 13 + ...For-ofTypeCheck7(target=es2015).errors.txt | 8 + .../ES5For-ofTypeCheck7(target=es2015).js | 8 + ...S5For-ofTypeCheck7(target=es2015).symbols} | 0 .../ES5For-ofTypeCheck7(target=es2015).types | 13 + ...S5For-ofTypeCheck7(target=es5).errors.txt} | 0 ....js => ES5For-ofTypeCheck7(target=es5).js} | 0 .../ES5For-ofTypeCheck7(target=es5).symbols | 10 + ... => ES5For-ofTypeCheck7(target=es5).types} | 0 ...or-ofTypeCheck8(target=es2015).errors.txt} | 0 .../ES5For-ofTypeCheck8(target=es2015).js | 10 + ...S5For-ofTypeCheck8(target=es2015).symbols} | 0 ... ES5For-ofTypeCheck8(target=es2015).types} | 0 ...ES5For-ofTypeCheck8(target=es5).errors.txt | 11 + ....js => ES5For-ofTypeCheck8(target=es5).js} | 0 .../ES5For-ofTypeCheck8(target=es5).symbols | 13 + .../ES5For-ofTypeCheck8(target=es5).types | 17 + ...For-ofTypeCheck9(target=es2015).errors.txt | 8 + .../ES5For-ofTypeCheck9(target=es2015).js | 8 + ...S5For-ofTypeCheck9(target=es2015).symbols} | 0 .../ES5For-ofTypeCheck9(target=es2015).types | 13 + ...S5For-ofTypeCheck9(target=es5).errors.txt} | 0 ....js => ES5For-ofTypeCheck9(target=es5).js} | 0 .../ES5For-ofTypeCheck9(target=es5).symbols | 10 + ... => ES5For-ofTypeCheck9(target=es5).types} | 0 .../ES5SymbolProperty1(target=es2015).js | 20 + ...ES5SymbolProperty1(target=es2015).symbols} | 0 ...> ES5SymbolProperty1(target=es2015).types} | 0 ...1.js => ES5SymbolProperty1(target=es5).js} | 0 .../ES5SymbolProperty1(target=es5).symbols | 29 + .../ES5SymbolProperty1(target=es5).types | 43 + .../ES5SymbolProperty2(target=es2015).js | 25 + ...ES5SymbolProperty2(target=es2015).symbols} | 0 ...> ES5SymbolProperty2(target=es2015).types} | 0 ...2.js => ES5SymbolProperty2(target=es5).js} | 0 .../ES5SymbolProperty2(target=es5).symbols | 29 + .../ES5SymbolProperty2(target=es5).types | 58 + ...SymbolProperty3(target=es2015).errors.txt} | 0 .../ES5SymbolProperty3(target=es2015).js | 17 + ...ES5SymbolProperty3(target=es2015).symbols} | 0 ...> ES5SymbolProperty3(target=es2015).types} | 0 .../ES5SymbolProperty3(target=es5).errors.txt | 14 + ...3.js => ES5SymbolProperty3(target=es5).js} | 0 .../ES5SymbolProperty3(target=es5).symbols | 22 + .../ES5SymbolProperty3(target=es5).types | 38 + ...SymbolProperty4(target=es2015).errors.txt} | 0 .../ES5SymbolProperty4(target=es2015).js | 17 + ...ES5SymbolProperty4(target=es2015).symbols} | 0 ...> ES5SymbolProperty4(target=es2015).types} | 0 .../ES5SymbolProperty4(target=es5).errors.txt | 14 + ...4.js => ES5SymbolProperty4(target=es5).js} | 0 .../ES5SymbolProperty4(target=es5).symbols | 23 + .../ES5SymbolProperty4(target=es5).types | 40 + ...SymbolProperty5(target=es2015).errors.txt} | 0 .../ES5SymbolProperty5(target=es2015).js | 16 + ...ES5SymbolProperty5(target=es2015).symbols} | 0 ...> ES5SymbolProperty5(target=es2015).types} | 0 .../ES5SymbolProperty5(target=es5).errors.txt | 17 + ...5.js => ES5SymbolProperty5(target=es5).js} | 0 .../ES5SymbolProperty5(target=es5).symbols | 23 + .../ES5SymbolProperty5(target=es5).types | 44 + .../ES5SymbolProperty6(target=es2015).js | 14 + ...ES5SymbolProperty6(target=es2015).symbols} | 0 ...> ES5SymbolProperty6(target=es2015).types} | 0 ...6.js => ES5SymbolProperty6(target=es5).js} | 0 .../ES5SymbolProperty6(target=es5).symbols | 19 + .../ES5SymbolProperty6(target=es5).types | 34 + ...SymbolProperty7(target=es2015).errors.txt} | 0 .../ES5SymbolProperty7(target=es2015).js | 17 + ...ES5SymbolProperty7(target=es2015).symbols} | 0 ...> ES5SymbolProperty7(target=es2015).types} | 0 .../ES5SymbolProperty7(target=es5).errors.txt | 14 + ...7.js => ES5SymbolProperty7(target=es5).js} | 0 .../ES5SymbolProperty7(target=es5).symbols | 23 + .../ES5SymbolProperty7(target=es5).types | 40 + ...e1.js => ES5SymbolType1(target=es2015).js} | 0 ... => ES5SymbolType1(target=es2015).symbols} | 0 ...es => ES5SymbolType1(target=es2015).types} | 0 .../reference/ES5SymbolType1(target=es5).js | 9 + .../ES5SymbolType1(target=es5).symbols | 11 + .../ES5SymbolType1(target=es5).types | 17 + .../reference/ES5for-of32(target=es2015).js | 23 + ...ols => ES5for-of32(target=es2015).symbols} | 0 ...types => ES5for-of32(target=es2015).types} | 0 ...for-of32.js => ES5for-of32(target=es5).js} | 0 .../reference/ES5for-of32(target=es5).symbols | 24 + .../reference/ES5for-of32(target=es5).types | 58 + .../abstractPropertyBasics(target=es2015).js | 38 + ...ractPropertyBasics(target=es2015).symbols} | 0 ...stractPropertyBasics(target=es2015).types} | 0 ... => abstractPropertyBasics(target=es5).js} | 0 ...abstractPropertyBasics(target=es5).symbols | 61 + .../abstractPropertyBasics(target=es5).types | 84 + ...ropertyNegative(target=es2015).errors.txt} | 0 ...abstractPropertyNegative(target=es2015).js | 83 + ...ctPropertyNegative(target=es2015).symbols} | 0 ...ractPropertyNegative(target=es2015).types} | 0 ...actPropertyNegative(target=es5).errors.txt | 85 + ...> abstractPropertyNegative(target=es5).js} | 0 ...stractPropertyNegative(target=es5).symbols | 109 + ...abstractPropertyNegative(target=es5).types | 162 + ...bilityModifiers(target=es2015).errors.txt} | 0 .../accessibilityModifiers(target=es2015).js | 79 + ...ssibilityModifiers(target=es2015).symbols} | 0 ...cessibilityModifiers(target=es2015).types} | 0 ...essibilityModifiers(target=es5).errors.txt | 95 + ... => accessibilityModifiers(target=es5).js} | 0 ...accessibilityModifiers(target=es5).symbols | 109 + .../accessibilityModifiers(target=es5).types | 161 + ...lCallDiagnostic(target=es2015).errors.txt} | 0 ...AccidentalCallDiagnostic(target=es2015).js | 20 + ...ntalCallDiagnostic(target=es2015).symbols} | 0 ...dentalCallDiagnostic(target=es2015).types} | 0 ...entalCallDiagnostic(target=es5).errors.txt | 16 + ...orAccidentalCallDiagnostic(target=es5).js} | 0 ...cidentalCallDiagnostic(target=es5).symbols | 21 + ...AccidentalCallDiagnostic(target=es5).types | 31 + ...essorInAmbientContextES5(target=es2015).js | 75 + ...nAmbientContextES5(target=es2015).symbols} | 0 ...orInAmbientContextES5(target=es2015).types | 63 + ...nAmbientContextES5(target=es5).errors.txt} | 0 ...ccessorInAmbientContextES5(target=es5).js} | 0 ...sorInAmbientContextES5(target=es5).symbols | 51 + ...ssorInAmbientContextES5(target=es5).types} | 0 ...ibilityModifier(target=es2015).errors.txt} | 0 ...terAccessibilityModifier(target=es2015).js | 13 + ...essibilityModifier(target=es2015).symbols} | 0 ...ccessibilityModifier(target=es2015).types} | 0 ...cessibilityModifier(target=es5).errors.txt | 13 + ...meterAccessibilityModifier(target=es5).js} | 0 ...rAccessibilityModifier(target=es5).symbols | 14 + ...terAccessibilityModifier(target=es5).types | 19 + .../accessorWithES5(target=es2015).js | 38 + ...=> accessorWithES5(target=es2015).symbols} | 0 ...s => accessorWithES5(target=es2015).types} | 0 ...hES5.js => accessorWithES5(target=es5).js} | 0 .../accessorWithES5(target=es5).symbols | 36 + .../accessorWithES5(target=es5).types | 50 + ...WithInitializer(target=es2015).errors.txt} | 0 .../accessorWithInitializer(target=es2015).js | 13 + ...sorWithInitializer(target=es2015).symbols} | 0 ...essorWithInitializer(target=es2015).types} | 0 ...ssorWithInitializer(target=es5).errors.txt | 13 + ...=> accessorWithInitializer(target=es5).js} | 0 ...ccessorWithInitializer(target=es5).symbols | 14 + .../accessorWithInitializer(target=es5).types | 23 + ...cessorWithLineTerminator(target=es2015).js | 16 + ...WithLineTerminator(target=es2015).symbols} | 0 ...orWithLineTerminator(target=es2015).types} | 0 ...accessorWithLineTerminator(target=es5).js} | 0 ...ssorWithLineTerminator(target=es5).symbols | 15 + ...cessorWithLineTerminator(target=es5).types | 21 + ...edAccessibilityModifiers(target=es2015).js | 64 + ...ssibilityModifiers(target=es2015).symbols} | 0 ...cessibilityModifiers(target=es2015).types} | 0 ...chedAccessibilityModifiers(target=es5).js} | 0 ...AccessibilityModifiers(target=es5).symbols | 58 + ...edAccessibilityModifiers(target=es5).types | 82 + ...orWithRestParam(target=es2015).errors.txt} | 0 .../accessorWithRestParam(target=es2015).js | 13 + ...essorWithRestParam(target=es2015).symbols} | 0 ...ccessorWithRestParam(target=es2015).types} | 0 ...cessorWithRestParam(target=es5).errors.txt | 13 + ...s => accessorWithRestParam(target=es5).js} | 0 .../accessorWithRestParam(target=es5).symbols | 14 + .../accessorWithRestParam(target=es5).types | 19 + ...sorWithoutBody1(target=es2015).errors.txt} | 0 ...=> accessorWithoutBody1(target=es2015).js} | 0 ...cessorWithoutBody1(target=es2015).symbols} | 0 ...accessorWithoutBody1(target=es2015).types} | 0 ...ccessorWithoutBody1(target=es5).errors.txt | 7 + .../accessorWithoutBody1(target=es5).js | 7 + .../accessorWithoutBody1(target=es5).symbols | 7 + .../accessorWithoutBody1(target=es5).types | 11 + ...sorWithoutBody2(target=es2015).errors.txt} | 0 ...=> accessorWithoutBody2(target=es2015).js} | 0 ...cessorWithoutBody2(target=es2015).symbols} | 0 ...accessorWithoutBody2(target=es2015).types} | 0 ...ccessorWithoutBody2(target=es5).errors.txt | 7 + .../accessorWithoutBody2(target=es5).js | 7 + .../accessorWithoutBody2(target=es5).symbols | 8 + .../accessorWithoutBody2(target=es5).types | 13 + ...nAmbientContext(target=es2015).errors.txt} | 0 ...cessorsInAmbientContext(target=es2015).js} | 0 ...rsInAmbientContext(target=es2015).symbols} | 0 ...sorsInAmbientContext(target=es2015).types} | 0 ...orsInAmbientContext(target=es5).errors.txt | 44 + .../accessorsInAmbientContext(target=es5).js | 22 + ...essorsInAmbientContext(target=es5).symbols | 42 + ...ccessorsInAmbientContext(target=es5).types | 65 + ...errideProperty7(target=es2015).errors.txt} | 0 ...cessorsOverrideProperty7(target=es2015).js | 17 + ...sOverrideProperty7(target=es2015).symbols} | 0 ...orsOverrideProperty7(target=es2015).types} | 0 ...rsOverrideProperty7(target=es5).errors.txt | 16 + ...accessorsOverrideProperty7(target=es5).js} | 0 ...ssorsOverrideProperty7(target=es5).symbols | 17 + ...cessorsOverrideProperty7(target=es5).types | 26 + ...sUsageInAccessorsOfClass(target=es2015).js | 56 + ...InAccessorsOfClass(target=es2015).symbols} | 0 ...geInAccessorsOfClass(target=es2015).types} | 0 ...iasUsageInAccessorsOfClass(target=es5).js} | 0 ...sageInAccessorsOfClass(target=es5).symbols | 63 + ...sUsageInAccessorsOfClass(target=es5).types | 85 + .../alwaysStrictModule6(target=es2015).js | 9 + ...lwaysStrictModule6(target=es2015).symbols} | 0 ... alwaysStrictModule6(target=es2015).types} | 0 ....js => alwaysStrictModule6(target=es5).js} | 0 .../alwaysStrictModule6(target=es5).symbols | 7 + .../alwaysStrictModule6(target=es5).types | 10 + ....js => ambientAccessors(target=es2015).js} | 0 ...> ambientAccessors(target=es2015).symbols} | 0 ... => ambientAccessors(target=es2015).types} | 0 .../reference/ambientAccessors(target=es5).js | 32 + .../ambientAccessors(target=es5).symbols | 35 + .../ambientAccessors(target=es5).types | 48 + ... ambientGetters(target=es2015).errors.txt} | 0 ...rs.js => ambientGetters(target=es2015).js} | 0 ... => ambientGetters(target=es2015).symbols} | 0 ...es => ambientGetters(target=es2015).types} | 0 .../ambientGetters(target=es5).errors.txt | 13 + .../reference/ambientGetters(target=es5).js | 12 + .../ambientGetters(target=es5).symbols | 16 + .../ambientGetters(target=es5).types | 22 + ...entsObjectIterator01_ES5(target=es2015).js | 19 + ...jectIterator01_ES5(target=es2015).symbols} | 0 ...sObjectIterator01_ES5(target=es2015).types | 43 + ...jectIterator01_ES5(target=es5).errors.txt} | 0 ...umentsObjectIterator01_ES5(target=es5).js} | 0 ...tsObjectIterator01_ES5(target=es5).symbols | 26 + ...ntsObjectIterator01_ES5(target=es5).types} | 0 ...entsObjectIterator02_ES5(target=es2015).js | 24 + ...jectIterator02_ES5(target=es2015).symbols} | 0 ...sObjectIterator02_ES5(target=es2015).types | 61 + ...jectIterator02_ES5(target=es5).errors.txt} | 0 ...umentsObjectIterator02_ES5(target=es5).js} | 0 ...tsObjectIterator02_ES5(target=es5).symbols | 35 + ...ntsObjectIterator02_ES5(target=es5).types} | 0 ...entsObjectIterator03_ES5(target=es2015).js | 16 + ...jectIterator03_ES5(target=es2015).symbols} | 0 ...sObjectIterator03_ES5(target=es2015).types | 32 + ...jectIterator03_ES5(target=es5).errors.txt} | 0 ...umentsObjectIterator03_ES5(target=es5).js} | 0 ...tsObjectIterator03_ES5(target=es5).symbols | 22 + ...ntsObjectIterator03_ES5(target=es5).types} | 0 ...preadImportHelpers(target=es5).errors.txt} | 0 .../arrayToLocaleStringES5(target=es2015).js | 106 + ...yToLocaleStringES5(target=es2015).symbols} | 0 ...rayToLocaleStringES5(target=es2015).types} | 0 ... => arrayToLocaleStringES5(target=es5).js} | 0 ...arrayToLocaleStringES5(target=es5).symbols | 270 + .../arrayToLocaleStringES5(target=es5).types | 735 + ...arameterNameAsync_es2017(target=es2015).js | 7 + ...erNameAsync_es2017(target=es2015).symbols} | 0 ...eterNameAsync_es2017(target=es2015).types} | 0 ...hParameterNameAsync_es2017(target=es5).js} | 0 ...ameterNameAsync_es2017(target=es5).symbols | 8 + ...arameterNameAsync_es2017(target=es5).types | 11 + ...thParameterNameAsync_es5(target=es2015).js | 7 + ...meterNameAsync_es5(target=es2015).symbols} | 0 ...rameterNameAsync_es5(target=es2015).types} | 0 ...WithParameterNameAsync_es5(target=es5).js} | 0 ...ParameterNameAsync_es5(target=es5).symbols | 8 + ...thParameterNameAsync_es5(target=es5).types | 11 + ...thParameterNameAsync_es6(target=es2015).js | 7 + ...meterNameAsync_es6(target=es2015).symbols} | 0 ...rameterNameAsync_es6(target=es2015).types} | 0 ...WithParameterNameAsync_es6(target=es5).js} | 0 ...ParameterNameAsync_es6(target=es5).symbols | 8 + ...thParameterNameAsync_es6(target=es5).types | 11 + ...erToArrayBuffer(target=es2015).errors.txt} | 0 ...rrayBufferToArrayBuffer(target=es2015).js} | 0 ...ufferToArrayBuffer(target=es2015).symbols} | 0 ...yBufferToArrayBuffer(target=es2015).types} | 0 ...BufferToArrayBuffer(target=es5).errors.txt | 11 + ...redArrayBufferToArrayBuffer(target=es5).js | 7 + ...rayBufferToArrayBuffer(target=es5).symbols | 8 + ...ArrayBufferToArrayBuffer(target=es5).types | 13 + ...asyncAliasReturnType_es5(target=es2015).js | 13 + ...liasReturnType_es5(target=es2015).symbols} | 0 ...cAliasReturnType_es5(target=es2015).types} | 0 ...liasReturnType_es5(target=es5).errors.txt} | 0 ...> asyncAliasReturnType_es5(target=es5).js} | 0 ...yncAliasReturnType_es5(target=es5).symbols | 13 + ...asyncAliasReturnType_es5(target=es5).types | 11 + ...wFunction10_es5(target=es2015).errors.txt} | 0 ...asyncArrowFunction10_es5(target=es2015).js | 14 + ...rrowFunction10_es5(target=es2015).symbols} | 0 ...cArrowFunction10_es5(target=es2015).types} | 0 ...ArrowFunction10_es5(target=es5).errors.txt | 11 + ...> asyncArrowFunction10_es5(target=es5).js} | 0 ...yncArrowFunction10_es5(target=es5).symbols | 13 + ...asyncArrowFunction10_es5(target=es5).types | 15 + ...asyncArrowFunction11_es5(target=es2015).js | 30 + ...rrowFunction11_es5(target=es2015).symbols} | 0 ...cArrowFunction11_es5(target=es2015).types} | 0 ...> asyncArrowFunction11_es5(target=es5).js} | 0 ...yncArrowFunction11_es5(target=es5).symbols | 24 + ...asyncArrowFunction11_es5(target=es5).types | 44 + .../asyncArrowFunction1_es5(target=es2015).js | 9 + ...ArrowFunction1_es5(target=es2015).symbols} | 0 ...ncArrowFunction1_es5(target=es2015).types} | 0 ...=> asyncArrowFunction1_es5(target=es5).js} | 0 ...syncArrowFunction1_es5(target=es5).symbols | 8 + .../asyncArrowFunction1_es5(target=es5).types | 10 + .../asyncArrowFunction2_es5(target=es2015).js | 9 + ...ArrowFunction2_es5(target=es2015).symbols} | 0 ...ncArrowFunction2_es5(target=es2015).types} | 0 ...=> asyncArrowFunction2_es5(target=es5).js} | 0 ...syncArrowFunction2_es5(target=es5).symbols | 7 + .../asyncArrowFunction2_es5(target=es5).types | 10 + ...owFunction3_es5(target=es2015).errors.txt} | 0 .../asyncArrowFunction3_es5(target=es2015).js | 9 + ...ArrowFunction3_es5(target=es2015).symbols} | 0 ...ncArrowFunction3_es5(target=es2015).types} | 0 ...cArrowFunction3_es5(target=es5).errors.txt | 8 + ...=> asyncArrowFunction3_es5(target=es5).js} | 0 ...syncArrowFunction3_es5(target=es5).symbols | 8 + .../asyncArrowFunction3_es5(target=es5).types | 11 + .../asyncArrowFunction4_es5(target=es2015).js | 9 + ...ArrowFunction4_es5(target=es2015).symbols} | 0 ...ncArrowFunction4_es5(target=es2015).types} | 0 ...=> asyncArrowFunction4_es5(target=es5).js} | 0 ...syncArrowFunction4_es5(target=es5).symbols | 6 + .../asyncArrowFunction4_es5(target=es5).types | 9 + ...owFunction5_es5(target=es2015).errors.txt} | 0 .../asyncArrowFunction5_es5(target=es2015).js | 9 + ...ArrowFunction5_es5(target=es2015).symbols} | 0 ...ncArrowFunction5_es5(target=es2015).types} | 0 ...cArrowFunction5_es5(target=es5).errors.txt | 8 + ...=> asyncArrowFunction5_es5(target=es5).js} | 0 ...syncArrowFunction5_es5(target=es5).symbols | 8 + .../asyncArrowFunction5_es5(target=es5).types | 11 + ...owFunction6_es5(target=es2015).errors.txt} | 0 .../asyncArrowFunction6_es5(target=es2015).js | 9 + ...ArrowFunction6_es5(target=es2015).symbols} | 0 ...ncArrowFunction6_es5(target=es2015).types} | 0 ...cArrowFunction6_es5(target=es5).errors.txt | 11 + ...=> asyncArrowFunction6_es5(target=es5).js} | 0 ...syncArrowFunction6_es5(target=es5).symbols | 8 + .../asyncArrowFunction6_es5(target=es5).types | 15 + ...owFunction7_es5(target=es2015).errors.txt} | 0 .../asyncArrowFunction7_es5(target=es2015).js | 15 + ...ArrowFunction7_es5(target=es2015).symbols} | 0 ...ncArrowFunction7_es5(target=es2015).types} | 0 ...cArrowFunction7_es5(target=es5).errors.txt | 14 + ...=> asyncArrowFunction7_es5(target=es5).js} | 0 ...syncArrowFunction7_es5(target=es5).symbols | 14 + .../asyncArrowFunction7_es5(target=es5).types | 23 + ...owFunction8_es5(target=es2015).errors.txt} | 0 .../asyncArrowFunction8_es5(target=es2015).js | 11 + ...ArrowFunction8_es5(target=es2015).symbols} | 0 ...ncArrowFunction8_es5(target=es2015).types} | 0 ...cArrowFunction8_es5(target=es5).errors.txt | 9 + ...=> asyncArrowFunction8_es5(target=es5).js} | 0 ...syncArrowFunction8_es5(target=es5).symbols | 12 + .../asyncArrowFunction8_es5(target=es5).types | 23 + ...owFunction9_es5(target=es2015).errors.txt} | 0 .../asyncArrowFunction9_es5(target=es2015).js | 11 + ...ArrowFunction9_es5(target=es2015).symbols} | 0 ...ncArrowFunction9_es5(target=es2015).types} | 0 ...cArrowFunction9_es5(target=es5).errors.txt | 24 + ...=> asyncArrowFunction9_es5(target=es5).js} | 0 ...syncArrowFunction9_es5(target=es5).symbols | 9 + .../asyncArrowFunction9_es5(target=es5).types | 27 + ...ionCapturesArguments_es5(target=es2015).js | 21 + ...turesArguments_es5(target=es2015).symbols} | 0 ...CapturesArguments_es5(target=es2015).types | 35 + ...turesArguments_es5(target=es5).errors.txt} | 0 ...ctionCapturesArguments_es5(target=es5).js} | 0 ...nCapturesArguments_es5(target=es5).symbols | 22 + ...onCapturesArguments_es5(target=es5).types} | 0 ...FunctionCapturesThis_es5(target=es2015).js | 16 + ...onCapturesThis_es5(target=es2015).symbols} | 0 ...tionCapturesThis_es5(target=es2015).types} | 0 ...owFunctionCapturesThis_es5(target=es5).js} | 0 ...nctionCapturesThis_es5(target=es5).symbols | 15 + ...FunctionCapturesThis_es5(target=es5).types | 23 + .../asyncArrowInClassES5(target=es2015).js | 19 + ...yncArrowInClassES5(target=es2015).symbols} | 0 ...asyncArrowInClassES5(target=es2015).types} | 0 ...js => asyncArrowInClassES5(target=es5).js} | 0 .../asyncArrowInClassES5(target=es5).symbols | 14 + .../asyncArrowInClassES5(target=es5).types | 19 + ...atedModules_es5(target=es2015).errors.txt} | 0 ...AwaitIsolatedModules_es5(target=es2015).js | 117 + ...solatedModules_es5(target=es2015).symbols} | 0 ...tIsolatedModules_es5(target=es2015).types} | 0 ...IsolatedModules_es5(target=es5).errors.txt | 45 + ...ncAwaitIsolatedModules_es5(target=es5).js} | 0 ...aitIsolatedModules_es5(target=es5).symbols | 113 + ...AwaitIsolatedModules_es5(target=es5).types | 152 + ...ncAwaitNestedClasses_es5(target=es2015).js | 38 + ...tNestedClasses_es5(target=es2015).symbols} | 0 ...aitNestedClasses_es5(target=es2015).types} | 0 ...syncAwaitNestedClasses_es5(target=es5).js} | 0 ...AwaitNestedClasses_es5(target=es5).symbols | 45 + ...ncAwaitNestedClasses_es5(target=es5).types | 80 + ...ithCapturedBlockScopeVar(target=es2015).js | 79 + ...turedBlockScopeVar(target=es2015).symbols} | 0 ...apturedBlockScopeVar(target=es2015).types} | 0 ...tWithCapturedBlockScopeVar(target=es5).js} | 0 ...hCapturedBlockScopeVar(target=es5).symbols | 90 + ...ithCapturedBlockScopeVar(target=es5).types | 203 + .../asyncAwait_es5(target=es2015).js | 131 + ... => asyncAwait_es5(target=es2015).symbols} | 0 ...es => asyncAwait_es5(target=es2015).types} | 0 ...t_es5.js => asyncAwait_es5(target=es5).js} | 0 .../asyncAwait_es5(target=es5).symbols | 129 + .../asyncAwait_es5(target=es5).types | 178 + ... asyncClass_es5(target=es2015).errors.txt} | 0 .../asyncClass_es5(target=es2015).js | 9 + ... => asyncClass_es5(target=es2015).symbols} | 0 ...es => asyncClass_es5(target=es2015).types} | 0 .../asyncClass_es5(target=es5).errors.txt | 8 + ...s_es5.js => asyncClass_es5(target=es5).js} | 0 .../asyncClass_es5(target=es5).symbols | 6 + .../asyncClass_es5(target=es5).types | 7 + ...Constructor_es5(target=es2015).errors.txt} | 0 .../asyncConstructor_es5(target=es2015).js | 13 + ...yncConstructor_es5(target=es2015).symbols} | 0 ...asyncConstructor_es5(target=es2015).types} | 0 ...syncConstructor_es5(target=es5).errors.txt | 10 + ...js => asyncConstructor_es5(target=es5).js} | 0 .../asyncConstructor_es5(target=es5).symbols | 9 + .../asyncConstructor_es5(target=es5).types | 10 + ...syncDeclare_es5(target=es2015).errors.txt} | 0 ....js => asyncDeclare_es5(target=es2015).js} | 0 ...> asyncDeclare_es5(target=es2015).symbols} | 0 ... => asyncDeclare_es5(target=es2015).types} | 0 .../asyncDeclare_es5(target=es5).errors.txt | 7 + .../reference/asyncDeclare_es5(target=es5).js | 6 + .../asyncDeclare_es5(target=es5).symbols | 7 + .../asyncDeclare_es5(target=es5).types | 7 + ...> asyncEnum_es5(target=es2015).errors.txt} | 0 ...es5.js => asyncEnum_es5(target=es2015).js} | 0 ...s => asyncEnum_es5(target=es2015).symbols} | 0 ...pes => asyncEnum_es5(target=es2015).types} | 0 .../asyncEnum_es5(target=es5).errors.txt | 9 + .../reference/asyncEnum_es5(target=es5).js | 12 + .../asyncEnum_es5(target=es5).symbols | 9 + .../reference/asyncEnum_es5(target=es5).types | 11 + ...claration10_es5(target=es2015).errors.txt} | 0 ...unctionDeclaration10_es5(target=es2015).js | 11 + ...nDeclaration10_es5(target=es2015).symbols} | 0 ...ionDeclaration10_es5(target=es2015).types} | 0 ...onDeclaration10_es5(target=es5).errors.txt | 11 + ...cFunctionDeclaration10_es5(target=es5).js} | 0 ...ctionDeclaration10_es5(target=es5).symbols | 9 + ...unctionDeclaration10_es5(target=es5).types | 15 + ...unctionDeclaration11_es5(target=es2015).js | 11 + ...nDeclaration11_es5(target=es2015).symbols} | 0 ...ionDeclaration11_es5(target=es2015).types} | 0 ...cFunctionDeclaration11_es5(target=es5).js} | 0 ...ctionDeclaration11_es5(target=es5).symbols | 7 + ...unctionDeclaration11_es5(target=es5).types | 7 + ...claration12_es5(target=es2015).errors.txt} | 0 ...unctionDeclaration12_es5(target=es2015).js | 9 + ...nDeclaration12_es5(target=es2015).symbols} | 0 ...ionDeclaration12_es5(target=es2015).types} | 0 ...onDeclaration12_es5(target=es5).errors.txt | 7 + ...cFunctionDeclaration12_es5(target=es5).js} | 0 ...ctionDeclaration12_es5(target=es5).symbols | 8 + ...unctionDeclaration12_es5(target=es5).types | 11 + ...claration13_es5(target=es2015).errors.txt} | 0 ...unctionDeclaration13_es5(target=es2015).js | 16 + ...nDeclaration13_es5(target=es2015).symbols} | 0 ...ionDeclaration13_es5(target=es2015).types} | 0 ...onDeclaration13_es5(target=es5).errors.txt | 11 + ...cFunctionDeclaration13_es5(target=es5).js} | 0 ...ctionDeclaration13_es5(target=es5).symbols | 13 + ...unctionDeclaration13_es5(target=es5).types | 13 + ...unctionDeclaration14_es5(target=es2015).js | 13 + ...nDeclaration14_es5(target=es2015).symbols} | 0 ...ionDeclaration14_es5(target=es2015).types} | 0 ...cFunctionDeclaration14_es5(target=es5).js} | 0 ...ctionDeclaration14_es5(target=es5).symbols | 9 + ...unctionDeclaration14_es5(target=es5).types | 9 + ...eclaration15_es5(target=es2015).errors.txt | 54 + ...unctionDeclaration15_es5(target=es2015).js | 86 + ...nDeclaration15_es5(target=es2015).symbols} | 0 ...ionDeclaration15_es5(target=es2015).types} | 0 ...nDeclaration15_es5(target=es5).errors.txt} | 0 ...cFunctionDeclaration15_es5(target=es5).js} | 0 ...ctionDeclaration15_es5(target=es5).symbols | 85 + ...unctionDeclaration15_es5(target=es5).types | 131 + ...eclaration16_es5(target=es2015).errors.txt | 66 + ...nDeclaration16_es5(target=es2015).symbols} | 0 ...ionDeclaration16_es5(target=es2015).types} | 0 ...nDeclaration16_es5(target=es5).errors.txt} | 0 ...ctionDeclaration16_es5(target=es5).symbols | 77 + ...unctionDeclaration16_es5(target=es5).types | 104 + ...FunctionDeclaration1_es5(target=es2015).js | 11 + ...onDeclaration1_es5(target=es2015).symbols} | 0 ...tionDeclaration1_es5(target=es2015).types} | 0 ...ncFunctionDeclaration1_es5(target=es5).js} | 0 ...nctionDeclaration1_es5(target=es5).symbols | 7 + ...FunctionDeclaration1_es5(target=es5).types | 7 + ...unctionDeclaration2_es5(target=es2015).js} | 0 ...onDeclaration2_es5(target=es2015).symbols} | 0 ...tionDeclaration2_es5(target=es2015).types} | 0 ...yncFunctionDeclaration2_es5(target=es5).js | 9 + ...nctionDeclaration2_es5(target=es5).symbols | 7 + ...FunctionDeclaration2_es5(target=es5).types | 8 + ...eclaration3_es5(target=es2015).errors.txt} | 0 ...FunctionDeclaration3_es5(target=es2015).js | 9 + ...onDeclaration3_es5(target=es2015).symbols} | 0 ...tionDeclaration3_es5(target=es2015).types} | 0 ...ionDeclaration3_es5(target=es5).errors.txt | 8 + ...ncFunctionDeclaration3_es5(target=es5).js} | 0 ...nctionDeclaration3_es5(target=es5).symbols | 8 + ...FunctionDeclaration3_es5(target=es5).types | 11 + ...unctionDeclaration4_es5(target=es2015).js} | 0 ...onDeclaration4_es5(target=es2015).symbols} | 0 ...tionDeclaration4_es5(target=es2015).types} | 0 ...yncFunctionDeclaration4_es5(target=es5).js | 9 + ...nctionDeclaration4_es5(target=es5).symbols | 6 + ...FunctionDeclaration4_es5(target=es5).types | 7 + ...eclaration5_es5(target=es2015).errors.txt} | 0 ...FunctionDeclaration5_es5(target=es2015).js | 11 + ...onDeclaration5_es5(target=es2015).symbols} | 0 ...tionDeclaration5_es5(target=es2015).types} | 0 ...ionDeclaration5_es5(target=es5).errors.txt | 8 + ...ncFunctionDeclaration5_es5(target=es5).js} | 0 ...nctionDeclaration5_es5(target=es5).symbols | 8 + ...FunctionDeclaration5_es5(target=es5).types | 9 + ...eclaration6_es5(target=es2015).errors.txt} | 0 ...FunctionDeclaration6_es5(target=es2015).js | 11 + ...onDeclaration6_es5(target=es2015).symbols} | 0 ...tionDeclaration6_es5(target=es2015).types} | 0 ...ionDeclaration6_es5(target=es5).errors.txt | 11 + ...ncFunctionDeclaration6_es5(target=es5).js} | 0 ...nctionDeclaration6_es5(target=es5).symbols | 8 + ...FunctionDeclaration6_es5(target=es5).types | 13 + ...eclaration7_es5(target=es2015).errors.txt} | 0 ...FunctionDeclaration7_es5(target=es2015).js | 19 + ...onDeclaration7_es5(target=es2015).symbols} | 0 ...tionDeclaration7_es5(target=es2015).types} | 0 ...ionDeclaration7_es5(target=es5).errors.txt | 14 + ...ncFunctionDeclaration7_es5(target=es5).js} | 0 ...nctionDeclaration7_es5(target=es5).symbols | 14 + ...FunctionDeclaration7_es5(target=es5).types | 19 + ...eclaration8_es5(target=es2015).errors.txt} | 0 ...FunctionDeclaration8_es5(target=es2015).js | 7 + ...onDeclaration8_es5(target=es2015).symbols} | 0 ...tionDeclaration8_es5(target=es2015).types} | 0 ...ionDeclaration8_es5(target=es5).errors.txt | 10 + ...ncFunctionDeclaration8_es5(target=es5).js} | 0 ...nctionDeclaration8_es5(target=es5).symbols | 7 + ...FunctionDeclaration8_es5(target=es5).types | 15 + ...eclaration9_es5(target=es2015).errors.txt} | 0 ...FunctionDeclaration9_es5(target=es2015).js | 13 + ...onDeclaration9_es5(target=es2015).symbols} | 0 ...tionDeclaration9_es5(target=es2015).types} | 0 ...ionDeclaration9_es5(target=es5).errors.txt | 9 + ...ncFunctionDeclaration9_es5(target=es5).js} | 0 ...nctionDeclaration9_es5(target=es5).symbols | 12 + ...FunctionDeclaration9_es5(target=es5).types | 21 + ...ionCapturesArguments_es5(target=es2015).js | 25 + ...turesArguments_es5(target=es2015).symbols} | 0 ...CapturesArguments_es5(target=es2015).types | 35 + ...turesArguments_es5(target=es5).errors.txt} | 0 ...ationCapturesArguments_es5(target=es5).js} | 0 ...nCapturesArguments_es5(target=es5).symbols | 24 + ...onCapturesArguments_es5(target=es5).types} | 0 ...ctionTempVariableScoping(target=es2015).js | 33 + ...empVariableScoping(target=es2015).symbols} | 0 ...nTempVariableScoping(target=es2015).types} | 0 ...unctionTempVariableScoping(target=es5).js} | 0 ...ionTempVariableScoping(target=es5).symbols | 12 + ...ctionTempVariableScoping(target=es5).types | 19 + ...asyncGetter_es5(target=es2015).errors.txt} | 0 .../asyncGetter_es5(target=es2015).js | 13 + ...=> asyncGetter_es5(target=es2015).symbols} | 0 ...s => asyncGetter_es5(target=es2015).types} | 0 .../asyncGetter_es5(target=es5).errors.txt | 13 + ..._es5.js => asyncGetter_es5(target=es5).js} | 0 .../asyncGetter_es5(target=es5).symbols | 10 + .../asyncGetter_es5(target=es5).types | 12 + ...ortedPromise_es5(target=es2015).errors.txt | 13 + ...asyncImportedPromise_es5(target=es2015).js | 35 + ...mportedPromise_es5(target=es2015).symbols} | 0 ...cImportedPromise_es5(target=es2015).types} | 0 ...> asyncImportedPromise_es5(target=es5).js} | 0 ...yncImportedPromise_es5(target=es5).symbols | 22 + ...asyncImportedPromise_es5(target=es5).types | 22 + ...ncInterface_es5(target=es2015).errors.txt} | 0 ...s => asyncInterface_es5(target=es2015).js} | 0 ...asyncInterface_es5(target=es2015).symbols} | 0 ...> asyncInterface_es5(target=es2015).types} | 0 .../asyncInterface_es5(target=es5).errors.txt | 8 + .../asyncInterface_es5(target=es5).js | 7 + .../asyncInterface_es5(target=es5).symbols | 6 + .../asyncInterface_es5(target=es5).types | 6 + ...asyncMethodWithSuper_es5(target=es2015).js | 117 + ...ethodWithSuper_es5(target=es2015).symbols} | 0 ...cMethodWithSuper_es5(target=es2015).types} | 0 ...> asyncMethodWithSuper_es5(target=es5).js} | 0 ...yncMethodWithSuper_es5(target=es5).symbols | 114 + ...asyncMethodWithSuper_es5(target=es5).types | 209 + ...asyncModule_es5(target=es2015).errors.txt} | 0 ...5.js => asyncModule_es5(target=es2015).js} | 0 ...=> asyncModule_es5(target=es2015).symbols} | 0 ...s => asyncModule_es5(target=es2015).types} | 0 .../asyncModule_es5(target=es5).errors.txt | 8 + .../reference/asyncModule_es5(target=es5).js | 7 + .../asyncModule_es5(target=es5).symbols | 6 + .../asyncModule_es5(target=es5).types | 6 + .../asyncMultiFile_es5(target=es2015).js | 22 + ...asyncMultiFile_es5(target=es2015).symbols} | 0 ...> asyncMultiFile_es5(target=es2015).types} | 0 ...5.js => asyncMultiFile_es5(target=es5).js} | 0 .../asyncMultiFile_es5(target=es5).symbols | 10 + .../asyncMultiFile_es5(target=es5).types | 12 + ...edReturnType_es5(target=es2015).errors.txt | 13 + ...cQualifiedReturnType_es5(target=es2015).js | 22 + ...fiedReturnType_es5(target=es2015).symbols} | 0 ...lifiedReturnType_es5(target=es2015).types} | 0 ...yncQualifiedReturnType_es5(target=es5).js} | 0 ...ualifiedReturnType_es5(target=es5).symbols | 19 + ...cQualifiedReturnType_es5(target=es5).types | 21 + ...asyncSetter_es5(target=es2015).errors.txt} | 0 .../asyncSetter_es5(target=es2015).js | 13 + ...=> asyncSetter_es5(target=es2015).symbols} | 0 ...s => asyncSetter_es5(target=es2015).types} | 0 .../asyncSetter_es5(target=es5).errors.txt | 10 + ..._es5.js => asyncSetter_es5(target=es5).js} | 0 .../asyncSetter_es5(target=es5).symbols | 11 + .../asyncSetter_es5(target=es5).types | 14 + ...hesizedArrowFunction_es5(target=es2015).js | 10 + ...dArrowFunction_es5(target=es2015).symbols} | 0 ...zedArrowFunction_es5(target=es2015).types} | 0 ...nthesizedArrowFunction_es5(target=es5).js} | 0 ...sizedArrowFunction_es5(target=es5).symbols | 20 + ...hesizedArrowFunction_es5(target=es5).types | 36 + .../asyncUseStrict_es5(target=es2015).js | 17 + ...asyncUseStrict_es5(target=es2015).symbols} | 0 ...> asyncUseStrict_es5(target=es2015).types} | 0 ...5.js => asyncUseStrict_es5(target=es5).js} | 0 .../asyncUseStrict_es5(target=es5).symbols | 20 + .../asyncUseStrict_es5(target=es5).types | 31 + ...aitBinaryExpression1_es5(target=es2015).js | 21 + ...aryExpression1_es5(target=es2015).symbols} | 0 ...inaryExpression1_es5(target=es2015).types} | 0 ...awaitBinaryExpression1_es5(target=es5).js} | 0 ...tBinaryExpression1_es5(target=es5).symbols | 31 + ...aitBinaryExpression1_es5(target=es5).types | 47 + ...aitBinaryExpression2_es5(target=es2015).js | 21 + ...aryExpression2_es5(target=es2015).symbols} | 0 ...inaryExpression2_es5(target=es2015).types} | 0 ...awaitBinaryExpression2_es5(target=es5).js} | 0 ...tBinaryExpression2_es5(target=es5).symbols | 31 + ...aitBinaryExpression2_es5(target=es5).types | 47 + ...aitBinaryExpression3_es5(target=es2015).js | 21 + ...aryExpression3_es5(target=es2015).symbols} | 0 ...inaryExpression3_es5(target=es2015).types} | 0 ...awaitBinaryExpression3_es5(target=es5).js} | 0 ...tBinaryExpression3_es5(target=es5).symbols | 31 + ...aitBinaryExpression3_es5(target=es5).types | 47 + ...aitBinaryExpression4_es5(target=es2015).js | 21 + ...aryExpression4_es5(target=es2015).symbols} | 0 ...inaryExpression4_es5(target=es2015).types} | 0 ...awaitBinaryExpression4_es5(target=es5).js} | 0 ...tBinaryExpression4_es5(target=es5).symbols | 31 + ...aitBinaryExpression4_es5(target=es5).types | 49 + ...aitBinaryExpression5_es5(target=es2015).js | 23 + ...aryExpression5_es5(target=es2015).symbols} | 0 ...inaryExpression5_es5(target=es2015).types} | 0 ...awaitBinaryExpression5_es5(target=es5).js} | 0 ...tBinaryExpression5_es5(target=es5).symbols | 36 + ...aitBinaryExpression5_es5(target=es5).types | 55 + ...awaitCallExpression1_es5(target=es2015).js | 25 + ...allExpression1_es5(target=es2015).symbols} | 0 ...tCallExpression1_es5(target=es2015).types} | 0 ...> awaitCallExpression1_es5(target=es5).js} | 0 ...aitCallExpression1_es5(target=es5).symbols | 61 + ...awaitCallExpression1_es5(target=es5).types | 93 + ...awaitCallExpression2_es5(target=es2015).js | 25 + ...allExpression2_es5(target=es2015).symbols} | 0 ...tCallExpression2_es5(target=es2015).types} | 0 ...> awaitCallExpression2_es5(target=es5).js} | 0 ...aitCallExpression2_es5(target=es5).symbols | 61 + ...awaitCallExpression2_es5(target=es5).types | 95 + ...awaitCallExpression3_es5(target=es2015).js | 25 + ...allExpression3_es5(target=es2015).symbols} | 0 ...tCallExpression3_es5(target=es2015).types} | 0 ...> awaitCallExpression3_es5(target=es5).js} | 0 ...aitCallExpression3_es5(target=es5).symbols | 61 + ...awaitCallExpression3_es5(target=es5).types | 95 + ...awaitCallExpression4_es5(target=es2015).js | 25 + ...allExpression4_es5(target=es2015).symbols} | 0 ...tCallExpression4_es5(target=es2015).types} | 0 ...> awaitCallExpression4_es5(target=es5).js} | 0 ...aitCallExpression4_es5(target=es5).symbols | 61 + ...awaitCallExpression4_es5(target=es5).types | 97 + ...awaitCallExpression5_es5(target=es2015).js | 25 + ...allExpression5_es5(target=es2015).symbols} | 0 ...tCallExpression5_es5(target=es2015).types} | 0 ...> awaitCallExpression5_es5(target=es5).js} | 0 ...aitCallExpression5_es5(target=es5).symbols | 63 + ...awaitCallExpression5_es5(target=es5).types | 97 + ...awaitCallExpression6_es5(target=es2015).js | 25 + ...allExpression6_es5(target=es2015).symbols} | 0 ...tCallExpression6_es5(target=es2015).types} | 0 ...> awaitCallExpression6_es5(target=es5).js} | 0 ...aitCallExpression6_es5(target=es5).symbols | 63 + ...awaitCallExpression6_es5(target=es5).types | 99 + ...awaitCallExpression7_es5(target=es2015).js | 25 + ...allExpression7_es5(target=es2015).symbols} | 0 ...tCallExpression7_es5(target=es2015).types} | 0 ...> awaitCallExpression7_es5(target=es5).js} | 0 ...aitCallExpression7_es5(target=es5).symbols | 63 + ...awaitCallExpression7_es5(target=es5).types | 99 + ...awaitCallExpression8_es5(target=es2015).js | 25 + ...allExpression8_es5(target=es2015).symbols} | 0 ...tCallExpression8_es5(target=es2015).types} | 0 ...> awaitCallExpression8_es5(target=es5).js} | 0 ...aitCallExpression8_es5(target=es5).symbols | 63 + ...awaitCallExpression8_es5(target=es5).types | 101 + ...awaitClassExpression_es5(target=es2015).js | 18 + ...lassExpression_es5(target=es2015).symbols} | 0 ...tClassExpression_es5(target=es2015).types} | 0 ...> awaitClassExpression_es5(target=es5).js} | 0 ...aitClassExpression_es5(target=es5).symbols | 20 + ...awaitClassExpression_es5(target=es5).types | 28 + .../awaitUnion_es5(target=es2015).js | 26 + ... => awaitUnion_es5(target=es2015).symbols} | 0 ...es => awaitUnion_es5(target=es2015).types} | 0 ...n_es5.js => awaitUnion_es5(target=es5).js} | 0 .../awaitUnion_es5(target=es5).symbols | 46 + .../awaitUnion_es5(target=es5).types | 67 + ...tAmbientMinimal(target=es2015).errors.txt} | 0 .../bigintAmbientMinimal(target=es2015).js | 18 + ...gintAmbientMinimal(target=es2015).symbols} | 0 ...bigintAmbientMinimal(target=es2015).types} | 0 ...igintAmbientMinimal(target=es5).errors.txt | 17 + ...js => bigintAmbientMinimal(target=es5).js} | 0 .../bigintAmbientMinimal(target=es5).symbols | 22 + .../bigintAmbientMinimal(target=es5).types | 35 + ...igintWithoutLib(target=es2015).errors.txt} | 0 .../bigintWithoutLib(target=es2015).js | 113 + ...> bigintWithoutLib(target=es2015).symbols} | 0 ... => bigintWithoutLib(target=es2015).types} | 0 .../bigintWithoutLib(target=es5).errors.txt | 213 + ...Lib.js => bigintWithoutLib(target=es5).js} | 0 .../bigintWithoutLib(target=es5).symbols | 195 + .../bigintWithoutLib(target=es5).types | 692 + .../binaryIntegerLiteral(target=es2015).js | 83 + ...naryIntegerLiteral(target=es2015).symbols} | 0 ...binaryIntegerLiteral(target=es2015).types} | 0 ...js => binaryIntegerLiteral(target=es5).js} | 0 .../binaryIntegerLiteral(target=es5).symbols | 125 + .../binaryIntegerLiteral(target=es5).types | 239 + ...ingsInDownlevelGenerator(target=es2015).js | 17 + ...DownlevelGenerator(target=es2015).symbols} | 0 ...InDownlevelGenerator(target=es2015).types} | 0 ...ndingsInDownlevelGenerator(target=es5).js} | 0 ...gsInDownlevelGenerator(target=es5).symbols | 16 + ...ingsInDownlevelGenerator(target=es5).types | 35 + ...lesUseBeforeDef(target=es2015).errors.txt} | 0 ...numVariablesUseBeforeDef(target=es2015).js | 36 + ...iablesUseBeforeDef(target=es2015).symbols} | 0 ...ariablesUseBeforeDef(target=es2015).types} | 0 ...riablesUseBeforeDef(target=es5).errors.txt | 25 + ...dEnumVariablesUseBeforeDef(target=es5).js} | 0 ...mVariablesUseBeforeDef(target=es5).symbols | 47 + ...numVariablesUseBeforeDef(target=es5).types | 70 + ...isolatedModules(target=es2015).errors.txt} | 0 ...eforeDef_isolatedModules(target=es2015).js | 44 + ...ef_isolatedModules(target=es2015).symbols} | 0 ...eDef_isolatedModules(target=es2015).types} | 0 ...Def_isolatedModules(target=es5).errors.txt | 33 + ...eBeforeDef_isolatedModules(target=es5).js} | 0 ...oreDef_isolatedModules(target=es5).symbols | 47 + ...eforeDef_isolatedModules(target=es5).types | 70 + ...oreDef_preserve(target=es2015).errors.txt} | 0 ...lesUseBeforeDef_preserve(target=es2015).js | 44 + ...BeforeDef_preserve(target=es2015).symbols} | 0 ...seBeforeDef_preserve(target=es2015).types} | 0 ...eBeforeDef_preserve(target=es5).errors.txt | 25 + ...ablesUseBeforeDef_preserve(target=es5).js} | 0 ...sUseBeforeDef_preserve(target=es5).symbols | 47 + ...lesUseBeforeDef_preserve(target=es5).types | 70 + ...timModuleSyntax(target=es2015).errors.txt} | 0 ...Def_verbatimModuleSyntax(target=es2015).js | 44 + ...rbatimModuleSyntax(target=es2015).symbols} | 0 ...verbatimModuleSyntax(target=es2015).types} | 0 ...erbatimModuleSyntax(target=es5).errors.txt | 33 + ...reDef_verbatimModuleSyntax(target=es5).js} | 0 ...f_verbatimModuleSyntax(target=es5).symbols | 47 + ...Def_verbatimModuleSyntax(target=es5).types | 70 + ...dFunctionDeclarationES5(target=es2015).js} | 0 ...tionDeclarationES5(target=es2015).symbols} | 0 ...nctionDeclarationES5(target=es2015).types} | 0 ...copedFunctionDeclarationES5(target=es5).js | 15 + ...FunctionDeclarationES5(target=es5).symbols | 13 + ...edFunctionDeclarationES5(target=es5).types | 23 + ...ionInStrictClass(target=es2015).errors.txt | 15 + ...DeclarationInStrictClass(target=es2015).js | 23 + ...ationInStrictClass(target=es2015).symbols} | 0 ...arationInStrictClass(target=es2015).types} | 0 ...ationInStrictClass(target=es5).errors.txt} | 0 ...onDeclarationInStrictClass(target=es5).js} | 0 ...clarationInStrictClass(target=es5).symbols | 19 + ...DeclarationInStrictClass(target=es5).types | 32 + ...arationStrictES5(target=es2015).errors.txt | 12 + ...ionDeclarationStrictES5(target=es2015).js} | 0 ...clarationStrictES5(target=es2015).symbols} | 0 ...DeclarationStrictES5(target=es2015).types} | 0 ...clarationStrictES5(target=es5).errors.txt} | 0 ...unctionDeclarationStrictES5(target=es5).js | 17 + ...onDeclarationStrictES5(target=es5).symbols | 12 + ...tionDeclarationStrictES5(target=es5).types | 27 + ...ceDifferentFile(target=es2015).errors.txt} | 0 ...edNamespaceDifferentFile(target=es2015).js | 31 + ...spaceDifferentFile(target=es2015).symbols} | 0 ...mespaceDifferentFile(target=es2015).types} | 0 ...espaceDifferentFile(target=es5).errors.txt | 24 + ...opedNamespaceDifferentFile(target=es5).js} | 0 ...NamespaceDifferentFile(target=es5).symbols | 45 + ...edNamespaceDifferentFile(target=es5).types | 68 + ...nDeclarationES5(target=es2015).errors.txt} | 0 ...eFunctionDeclarationES5(target=es2015).js} | 0 ...tionDeclarationES5(target=es2015).symbols} | 0 ...nctionDeclarationES5(target=es2015).types} | 0 ...ctionDeclarationES5(target=es5).errors.txt | 38 + ...eNameFunctionDeclarationES5(target=es5).js | 37 + ...FunctionDeclarationES5(target=es5).symbols | 41 + ...meFunctionDeclarationES5(target=es5).types | 82 + ...arationStrictES5(target=es2015).errors.txt | 34 + ...ionDeclarationStrictES5(target=es2015).js} | 0 ...clarationStrictES5(target=es2015).symbols} | 0 ...DeclarationStrictES5(target=es2015).types} | 0 ...clarationStrictES5(target=es5).errors.txt} | 0 ...unctionDeclarationStrictES5(target=es5).js | 39 + ...onDeclarationStrictES5(target=es5).symbols | 42 + ...tionDeclarationStrictES5(target=es5).types | 86 + ...lesUseBeforeDef(target=es2015).errors.txt} | 0 ...pedVariablesUseBeforeDef(target=es2015).js | 336 + ...iablesUseBeforeDef(target=es2015).symbols} | 0 ...ariablesUseBeforeDef(target=es2015).types} | 0 ...riablesUseBeforeDef(target=es5).errors.txt | 202 + ...copedVariablesUseBeforeDef(target=es5).js} | 0 ...dVariablesUseBeforeDef(target=es5).symbols | 334 + ...pedVariablesUseBeforeDef(target=es5).types | 550 + ...etConstInLoop14(target=es2015).errors.txt} | 0 ...capturedLetConstInLoop14(target=es2015).js | 31 + ...redLetConstInLoop14(target=es5).errors.txt | 21 + ...> capturedLetConstInLoop14(target=es5).js} | 0 ...InInitializers2(target=es2015).errors.txt} | 0 ...arametersInInitializers2(target=es2015).js | 48 + ...ersInInitializers2(target=es2015).symbols} | 0 ...etersInInitializers2(target=es2015).types} | 0 ...tersInInitializers2(target=es5).errors.txt | 29 + ...dParametersInInitializers2(target=es5).js} | 0 ...ametersInInitializers2(target=es5).symbols | 47 + ...arametersInInitializers2(target=es5).types | 79 + ...ropertyAssignmentNoCheck(target=es2015).js | 18 + ...yAssignmentNoCheck(target=es2015).symbols} | 0 ...rtyAssignmentNoCheck(target=es2015).types} | 0 ...dPropertyAssignmentNoCheck(target=es5).js} | 0 ...pertyAssignmentNoCheck(target=es5).symbols | 29 + ...ropertyAssignmentNoCheck(target=es5).types | 68 + .../capturedVarInLoop(target=es2015).js | 15 + ... capturedVarInLoop(target=es2015).symbols} | 0 ...=> capturedVarInLoop(target=es2015).types} | 0 ...op.js => capturedVarInLoop(target=es5).js} | 0 .../capturedVarInLoop(target=es5).symbols | 24 + .../capturedVarInLoop(target=es5).types | 52 + ...arObjectLiteralAccessors(target=es2015).js | 30 + ...ctLiteralAccessors(target=es2015).symbols} | 0 ...jectLiteralAccessors(target=es2015).types} | 0 ...ularObjectLiteralAccessors(target=es5).js} | 0 ...ObjectLiteralAccessors(target=es5).symbols | 35 + ...arObjectLiteralAccessors(target=es5).types | 56 + ...bstractAccessor(target=es2015).errors.txt} | 0 .../classAbstractAccessor(target=es2015).js | 16 + ...ssAbstractAccessor(target=es2015).symbols} | 0 ...lassAbstractAccessor(target=es2015).types} | 0 ...assAbstractAccessor(target=es5).errors.txt | 16 + ...s => classAbstractAccessor(target=es5).js} | 0 .../classAbstractAccessor(target=es5).symbols | 21 + .../classAbstractAccessor(target=es5).types | 30 + ...ionWithStaticProperties2(target=es2015).js | 22 + ...hStaticProperties2(target=es2015).symbols} | 0 ...ithStaticProperties2(target=es2015).types} | 0 ...ssionWithStaticProperties2(target=es5).js} | 0 ...nWithStaticProperties2(target=es5).symbols | 28 + ...ionWithStaticProperties2(target=es5).types | 51 + ...ionWithStaticProperties3(target=es2015).js | 24 + ...hStaticProperties3(target=es2015).symbols} | 0 ...ithStaticProperties3(target=es2015).types} | 0 ...ssionWithStaticProperties3(target=es5).js} | 0 ...nWithStaticProperties3(target=es5).symbols | 43 + ...ionWithStaticProperties3(target=es5).types | 96 + .../classExtendsAcrossFiles(target=es2015).js | 49 + ...ExtendsAcrossFiles(target=es2015).symbols} | 0 ...ssExtendsAcrossFiles(target=es2015).types} | 0 ...=> classExtendsAcrossFiles(target=es5).js} | 0 ...lassExtendsAcrossFiles(target=es5).symbols | 48 + .../classExtendsAcrossFiles(target=es5).types | 78 + .../classInConvertedLoopES5(target=es2015).js | 24 + ...InConvertedLoopES5(target=es2015).symbols} | 0 ...ssInConvertedLoopES5(target=es2015).types} | 0 ...=> classInConvertedLoopES5(target=es5).js} | 0 ...lassInConvertedLoopES5(target=es5).symbols | 27 + .../classInConvertedLoopES5(target=es5).types | 58 + ...cPropertyAccess(target=es2015).errors.txt} | 0 ...lassStaticPropertyAccess(target=es2015).js | 33 + ...aticPropertyAccess(target=es2015).symbols} | 0 ...StaticPropertyAccess(target=es2015).types} | 0 ...taticPropertyAccess(target=es5).errors.txt | 33 + ... classStaticPropertyAccess(target=es5).js} | 0 ...ssStaticPropertyAccess(target=es5).symbols | 40 + ...lassStaticPropertyAccess(target=es5).types | 78 + ...sStaticPropertyTypeGuard(target=es2015).js | 26 + ...cPropertyTypeGuard(target=es2015).symbols} | 0 ...ticPropertyTypeGuard(target=es2015).types} | 0 ...assStaticPropertyTypeGuard(target=es5).js} | 0 ...taticPropertyTypeGuard(target=es5).symbols | 30 + ...sStaticPropertyTypeGuard(target=es5).types | 46 + ...alizedVariables(target=es2015).errors.txt} | 0 ...foreInitializedVariables(target=es2015).js | 87 + ...itializedVariables(target=es2015).symbols} | 0 ...InitializedVariables(target=es2015).types} | 0 ...nitializedVariables(target=es5).errors.txt | 74 + ...BeforeInitializedVariables(target=es5).js} | 0 ...reInitializedVariables(target=es5).symbols | 122 + ...foreInitializedVariables(target=es5).types | 234 + ...ersEquivalentToInterface(target=es2015).js | 40 + ...ivalentToInterface(target=es2015).symbols} | 0 ...quivalentToInterface(target=es2015).types} | 0 ...mbersEquivalentToInterface(target=es5).js} | 0 ...sEquivalentToInterface(target=es5).symbols | 75 + ...ersEquivalentToInterface(target=es5).types | 96 + ...rsEquivalentToInterface2(target=es2015).js | 42 + ...valentToInterface2(target=es2015).symbols} | 0 ...uivalentToInterface2(target=es2015).types} | 0 ...bersEquivalentToInterface2(target=es5).js} | 0 ...EquivalentToInterface2(target=es5).symbols | 78 + ...rsEquivalentToInterface2(target=es5).types | 100 + .../reference/classdecl(target=es2015).js | 215 + ...mbols => classdecl(target=es2015).symbols} | 0 ...l.types => classdecl(target=es2015).types} | 0 ...{classdecl.js => classdecl(target=es5).js} | 0 .../reference/classdecl(target=es5).symbols | 200 + .../reference/classdecl(target=es5).types | 276 + ...LocalFunctionInAccessors(target=es2015).js | 83 + ...unctionInAccessors(target=es2015).symbols} | 0 ...lFunctionInAccessors(target=es2015).types} | 0 ...ndLocalFunctionInAccessors(target=es5).js} | 0 ...calFunctionInAccessors(target=es5).symbols | 76 + ...LocalFunctionInAccessors(target=es5).types | 109 + ...erAndLocalVarInAccessors(target=es2015).js | 69 + ...ocalVarInAccessors(target=es2015).symbols} | 0 ...dLocalVarInAccessors(target=es2015).types} | 0 ...uperAndLocalVarInAccessors(target=es5).js} | 0 ...AndLocalVarInAccessors(target=es5).symbols | 72 + ...erAndLocalVarInAccessors(target=es5).types | 119 + ...llisionSuperAndParameter(target=es2015).js | 112 + ...nSuperAndParameter(target=es2015).symbols} | 0 ...ionSuperAndParameter(target=es2015).types} | 0 ...collisionSuperAndParameter(target=es5).js} | 0 ...isionSuperAndParameter(target=es5).symbols | 152 + ...llisionSuperAndParameter(target=es5).types | 233 + ...onAndLocalVarInAccessors(target=es2015).js | 86 + ...ocalVarInAccessors(target=es2015).symbols} | 0 ...dLocalVarInAccessors(target=es2015).types} | 0 ...sionAndLocalVarInAccessors(target=es5).js} | 0 ...AndLocalVarInAccessors(target=es5).symbols | 96 + ...onAndLocalVarInAccessors(target=es5).types | 160 + .../reference/commentsClass(target=es2015).js | 189 + ...s => commentsClass(target=es2015).symbols} | 0 ...pes => commentsClass(target=es2015).types} | 0 ...sClass.js => commentsClass(target=es5).js} | 0 .../commentsClass(target=es5).symbols | 136 + .../reference/commentsClass(target=es5).types | 190 + .../commentsClassMembers(target=es2015).js | 523 + ...mmentsClassMembers(target=es2015).symbols} | 0 ...commentsClassMembers(target=es2015).types} | 0 ...js => commentsClassMembers(target=es5).js} | 0 .../commentsClassMembers(target=es5).symbols | 707 + .../commentsClassMembers(target=es5).types | 1242 + .../commentsCommentParsing(target=es2015).js | 368 + ...entsCommentParsing(target=es2015).symbols} | 0 ...mmentsCommentParsing(target=es2015).types} | 0 ... => commentsCommentParsing(target=es5).js} | 0 ...commentsCommentParsing(target=es5).symbols | 236 + .../commentsCommentParsing(target=es5).types | 347 + ...ottedModuleName(target=es2015).errors.txt} | 0 ...commentsDottedModuleName(target=es2015).js | 35 + ...tsDottedModuleName(target=es2015).symbols} | 0 ...entsDottedModuleName(target=es2015).types} | 0 ...ntsDottedModuleName(target=es5).errors.txt | 11 + ...> commentsDottedModuleName(target=es5).js} | 0 ...mmentsDottedModuleName(target=es5).symbols | 13 + ...commentsDottedModuleName(target=es5).types | 16 + ...ums.js => commentsEnums(target=es2015).js} | 0 ...s => commentsEnums(target=es2015).symbols} | 0 ...pes => commentsEnums(target=es2015).types} | 0 .../reference/commentsEnums(target=es5).js | 37 + .../commentsEnums(target=es5).symbols | 29 + .../reference/commentsEnums(target=es5).types | 42 + ...ExternalModules(target=es2015).errors.txt} | 0 .../commentsExternalModules(target=es2015).js | 167 + ...ntsExternalModules(target=es2015).symbols} | 0 ...mentsExternalModules(target=es2015).types} | 0 ...entsExternalModules(target=es5).errors.txt | 63 + ...=> commentsExternalModules(target=es5).js} | 0 ...ommentsExternalModules(target=es5).symbols | 144 + .../commentsExternalModules(target=es5).types | 233 + ...xternalModules2(target=es2015).errors.txt} | 0 ...commentsExternalModules2(target=es2015).js | 171 + ...tsExternalModules2(target=es2015).symbols} | 0 ...entsExternalModules2(target=es2015).types} | 0 ...ntsExternalModules2(target=es5).errors.txt | 63 + ...> commentsExternalModules2(target=es5).js} | 0 ...mmentsExternalModules2(target=es5).symbols | 144 + ...commentsExternalModules2(target=es5).types | 233 + ...commentsExternalModules3(target=es2015).js | 169 + ...tsExternalModules3(target=es2015).symbols} | 0 ...entsExternalModules3(target=es2015).types} | 0 ...> commentsExternalModules3(target=es5).js} | 0 ...mmentsExternalModules3(target=es5).symbols | 144 + ...commentsExternalModules3(target=es5).types | 233 + .../commentsFormatting(target=es2015).js | 262 + ...commentsFormatting(target=es2015).symbols} | 0 ...> commentsFormatting(target=es2015).types} | 0 ...g.js => commentsFormatting(target=es5).js} | 0 .../commentsFormatting(target=es5).symbols | 94 + .../commentsFormatting(target=es5).types | 99 + .../commentsFunction(target=es2015).js | 122 + ...> commentsFunction(target=es2015).symbols} | 0 ... => commentsFunction(target=es2015).types} | 0 ...ion.js => commentsFunction(target=es5).js} | 0 .../commentsFunction(target=es5).symbols | 110 + .../commentsFunction(target=es5).types | 197 + .../commentsInheritance(target=es2015).js | 347 + ...ommentsInheritance(target=es2015).symbols} | 0 ... commentsInheritance(target=es2015).types} | 0 ....js => commentsInheritance(target=es5).js} | 0 .../commentsInheritance(target=es5).symbols | 312 + .../commentsInheritance(target=es5).types | 426 + .../commentsInterface(target=es2015).js | 162 + ... commentsInterface(target=es2015).symbols} | 0 ...=> commentsInterface(target=es2015).types} | 0 ...ce.js => commentsInterface(target=es5).js} | 0 .../commentsInterface(target=es5).symbols | 232 + .../commentsInterface(target=es5).types | 398 + .../commentsModules(target=es2015).js | 313 + ...=> commentsModules(target=es2015).symbols} | 0 ...s => commentsModules(target=es2015).types} | 0 ...ules.js => commentsModules(target=es5).js} | 0 .../commentsModules(target=es5).symbols | 218 + .../commentsModules(target=es5).types | 332 + ...ModuleMultiFile(target=es2015).errors.txt} | 0 ...entsMultiModuleMultiFile(target=es2015).js | 108 + ...ltiModuleMultiFile(target=es2015).symbols} | 0 ...MultiModuleMultiFile(target=es2015).types} | 0 ...ultiModuleMultiFile(target=es5).errors.txt | 38 + ...mmentsMultiModuleMultiFile(target=es5).js} | 0 ...tsMultiModuleMultiFile(target=es5).symbols | 60 + ...entsMultiModuleMultiFile(target=es5).types | 84 + ...ntsMultiModuleSingleFile(target=es2015).js | 71 + ...tiModuleSingleFile(target=es2015).symbols} | 0 ...ultiModuleSingleFile(target=es2015).types} | 0 ...mentsMultiModuleSingleFile(target=es5).js} | 0 ...sMultiModuleSingleFile(target=es5).symbols | 42 + ...ntsMultiModuleSingleFile(target=es5).types | 58 + ...commentsOnObjectLiteral3(target=es2015).js | 40 + ...tsOnObjectLiteral3(target=es2015).symbols} | 0 ...entsOnObjectLiteral3(target=es2015).types} | 0 ...> commentsOnObjectLiteral3(target=es5).js} | 0 ...mmentsOnObjectLiteral3(target=es5).symbols | 36 + ...commentsOnObjectLiteral3(target=es5).types | 58 + ...ommentsOnObjectLiteral4(target=es2015).js} | 0 ...tsOnObjectLiteral4(target=es2015).symbols} | 0 ...entsOnObjectLiteral4(target=es2015).types} | 0 .../commentsOnObjectLiteral4(target=es5).js | 22 + ...mmentsOnObjectLiteral4(target=es5).symbols | 16 + ...commentsOnObjectLiteral4(target=es5).types | 22 + ...commentsOnObjectLiteral5(target=es2015).js | 18 + ...tsOnObjectLiteral5(target=es2015).symbols} | 0 ...entsOnObjectLiteral5(target=es2015).types} | 0 ...> commentsOnObjectLiteral5(target=es5).js} | 0 ...mmentsOnObjectLiteral5(target=es5).symbols | 18 + ...commentsOnObjectLiteral5(target=es5).types | 30 + ...mentsOnRequireStatement(target=es2015).js} | 0 ...OnRequireStatement(target=es2015).symbols} | 0 ...tsOnRequireStatement(target=es2015).types} | 0 .../commentsOnRequireStatement(target=es5).js | 41 + ...entsOnRequireStatement(target=es5).symbols | 22 + ...mmentsOnRequireStatement(target=es5).types | 30 + .../commentsOverloads(target=es2015).js | 376 + ... commentsOverloads(target=es2015).symbols} | 0 ...=> commentsOverloads(target=es2015).types} | 0 ...ds.js => commentsOverloads(target=es5).js} | 0 .../commentsOverloads(target=es5).symbols | 419 + .../commentsOverloads(target=es5).types | 631 + .../commentsVarDecl(target=es2015).js | 104 + ...=> commentsVarDecl(target=es2015).symbols} | 0 ...s => commentsVarDecl(target=es2015).types} | 0 ...Decl.js => commentsVarDecl(target=es5).js} | 0 .../commentsVarDecl(target=es5).symbols | 72 + .../commentsVarDecl(target=es5).types | 119 + ...ommentsdoNotEmitComments(target=es2015).js | 171 + ...sdoNotEmitComments(target=es2015).symbols} | 0 ...ntsdoNotEmitComments(target=es2015).types} | 0 ... commentsdoNotEmitComments(target=es5).js} | 0 ...mentsdoNotEmitComments(target=es5).symbols | 162 + ...ommentsdoNotEmitComments(target=es5).types | 223 + .../commentsemitComments(target=es2015).js | 194 + ...mmentsemitComments(target=es2015).symbols} | 0 ...commentsemitComments(target=es2015).types} | 0 ...js => commentsemitComments(target=es5).js} | 0 .../commentsemitComments(target=es5).symbols | 147 + .../commentsemitComments(target=es5).types | 201 + ...eclarationError(target=es2015).errors.txt} | 0 ...ortTypeDeclarationError(target=es2015).js} | 0 ...peDeclarationError(target=es2015).symbols} | 0 ...TypeDeclarationError(target=es2015).types} | 0 ...ypeDeclarationError(target=es5).errors.txt | 31 + ...sExportTypeDeclarationError(target=es5).js | 33 + ...rtTypeDeclarationError(target=es5).symbols | 38 + ...portTypeDeclarationError(target=es5).types | 49 + .../commonjsSafeImport(target=es2015).js | 27 + ...commonjsSafeImport(target=es2015).symbols} | 0 ...> commonjsSafeImport(target=es2015).types} | 0 ...t.js => commonjsSafeImport(target=es5).js} | 0 .../commonjsSafeImport(target=es5).symbols | 13 + .../commonjsSafeImport(target=es5).types | 18 + ...ssRelationships(target=es2015).errors.txt} | 0 ...omplexClassRelationships(target=es2015).js | 92 + ...ClassRelationships(target=es2015).symbols} | 0 ...exClassRelationships(target=es2015).types} | 0 ...xClassRelationships(target=es5).errors.txt | 54 + ... complexClassRelationships(target=es5).js} | 0 ...plexClassRelationships(target=es5).symbols | 119 + ...omplexClassRelationships(target=es5).types | 153 + ...plicatedPrivacy(target=es2015).errors.txt} | 0 .../complicatedPrivacy(target=es2015).js | 183 + ...complicatedPrivacy(target=es2015).symbols} | 0 ...> complicatedPrivacy(target=es2015).types} | 0 .../complicatedPrivacy(target=es5).errors.txt | 116 + ...y.js => complicatedPrivacy(target=es5).js} | 0 .../complicatedPrivacy(target=es5).symbols | 199 + .../complicatedPrivacy(target=es5).types | 234 + ...putedPropertyNames10_ES5(target=es2015).js | 37 + ...ropertyNames10_ES5(target=es2015).symbols} | 0 ...dPropertyNames10_ES5(target=es2015).types} | 0 ...omputedPropertyNames10_ES5(target=es5).js} | 0 ...tedPropertyNames10_ES5(target=es5).symbols | 60 + ...putedPropertyNames10_ES5(target=es5).types | 97 + ...putedPropertyNames11_ES5(target=es2015).js | 37 + ...ropertyNames11_ES5(target=es2015).symbols} | 0 ...dPropertyNames11_ES5(target=es2015).types} | 0 ...omputedPropertyNames11_ES5(target=es5).js} | 0 ...tedPropertyNames11_ES5(target=es5).symbols | 65 + ...putedPropertyNames11_ES5(target=es5).types | 109 + ...ertyNames12_ES5(target=es2015).errors.txt} | 0 ...putedPropertyNames12_ES5(target=es2015).js | 34 + ...ropertyNames12_ES5(target=es2015).symbols} | 0 ...dPropertyNames12_ES5(target=es2015).types} | 0 ...PropertyNames12_ES5(target=es5).errors.txt | 40 + ...omputedPropertyNames12_ES5(target=es5).js} | 0 ...tedPropertyNames12_ES5(target=es5).symbols | 62 + ...putedPropertyNames12_ES5(target=es5).types | 109 + ...putedPropertyNames13_ES5(target=es2015).js | 37 + ...ropertyNames13_ES5(target=es2015).symbols} | 0 ...dPropertyNames13_ES5(target=es2015).types} | 0 ...omputedPropertyNames13_ES5(target=es5).js} | 0 ...tedPropertyNames13_ES5(target=es5).symbols | 60 + ...putedPropertyNames13_ES5(target=es5).types | 95 + ...ertyNames14_ES5(target=es2015).errors.txt} | 0 ...putedPropertyNames14_ES5(target=es2015).js | 23 + ...ropertyNames14_ES5(target=es2015).symbols} | 0 ...dPropertyNames14_ES5(target=es2015).types} | 0 ...PropertyNames14_ES5(target=es5).errors.txt | 30 + ...omputedPropertyNames14_ES5(target=es5).js} | 0 ...tedPropertyNames14_ES5(target=es5).symbols | 29 + ...putedPropertyNames14_ES5(target=es5).types | 45 + ...ertyNames15_ES5(target=es2015).errors.txt} | 0 ...putedPropertyNames15_ES5(target=es2015).js | 21 + ...ropertyNames15_ES5(target=es2015).symbols} | 0 ...dPropertyNames15_ES5(target=es2015).types} | 0 ...PropertyNames15_ES5(target=es5).errors.txt | 17 + ...omputedPropertyNames15_ES5(target=es5).js} | 0 ...tedPropertyNames15_ES5(target=es5).symbols | 27 + ...putedPropertyNames15_ES5(target=es5).types | 37 + ...putedPropertyNames16_ES5(target=es2015).js | 37 + ...ropertyNames16_ES5(target=es2015).symbols} | 0 ...dPropertyNames16_ES5(target=es2015).types} | 0 ...omputedPropertyNames16_ES5(target=es5).js} | 0 ...tedPropertyNames16_ES5(target=es5).symbols | 65 + ...putedPropertyNames16_ES5(target=es5).types | 107 + ...ertyNames17_ES5(target=es2015).errors.txt} | 0 ...putedPropertyNames17_ES5(target=es2015).js | 23 + ...ropertyNames17_ES5(target=es2015).symbols} | 0 ...dPropertyNames17_ES5(target=es2015).types} | 0 ...PropertyNames17_ES5(target=es5).errors.txt | 30 + ...omputedPropertyNames17_ES5(target=es5).js} | 0 ...tedPropertyNames17_ES5(target=es5).symbols | 32 + ...putedPropertyNames17_ES5(target=es5).types | 57 + ...putedPropertyNames18_ES5(target=es2015).js | 15 + ...ropertyNames18_ES5(target=es2015).symbols} | 0 ...dPropertyNames18_ES5(target=es2015).types} | 0 ...omputedPropertyNames18_ES5(target=es5).js} | 0 ...tedPropertyNames18_ES5(target=es5).symbols | 13 + ...putedPropertyNames18_ES5(target=es5).types | 25 + ...ertyNames19_ES5(target=es2015).errors.txt} | 0 ...putedPropertyNames19_ES5(target=es2015).js | 16 + ...ropertyNames19_ES5(target=es2015).symbols} | 0 ...dPropertyNames19_ES5(target=es2015).types} | 0 ...PropertyNames19_ES5(target=es5).errors.txt | 11 + ...omputedPropertyNames19_ES5(target=es5).js} | 0 ...tedPropertyNames19_ES5(target=es5).symbols | 13 + ...putedPropertyNames19_ES5(target=es5).types | 26 + ...mputedPropertyNames1_ES5(target=es2015).js | 13 + ...PropertyNames1_ES5(target=es2015).symbols} | 0 ...edPropertyNames1_ES5(target=es2015).types} | 0 ...computedPropertyNames1_ES5(target=es5).js} | 0 ...utedPropertyNames1_ES5(target=es5).symbols | 13 + ...mputedPropertyNames1_ES5(target=es5).types | 33 + ...putedPropertyNames20_ES5(target=es2015).js | 11 + ...ropertyNames20_ES5(target=es2015).symbols} | 0 ...dPropertyNames20_ES5(target=es2015).types} | 0 ...omputedPropertyNames20_ES5(target=es5).js} | 0 ...tedPropertyNames20_ES5(target=es5).symbols | 10 + ...putedPropertyNames20_ES5(target=es5).types | 20 + ...ertyNames21_ES5(target=es2015).errors.txt} | 0 ...putedPropertyNames21_ES5(target=es2015).js | 17 + ...ropertyNames21_ES5(target=es2015).symbols} | 0 ...dPropertyNames21_ES5(target=es2015).types} | 0 ...PropertyNames21_ES5(target=es5).errors.txt | 12 + ...omputedPropertyNames21_ES5(target=es5).js} | 0 ...tedPropertyNames21_ES5(target=es5).symbols | 17 + ...putedPropertyNames21_ES5(target=es5).types | 27 + ...putedPropertyNames22_ES5(target=es2015).js | 21 + ...ropertyNames22_ES5(target=es2015).symbols} | 0 ...dPropertyNames22_ES5(target=es2015).types} | 0 ...omputedPropertyNames22_ES5(target=es5).js} | 0 ...tedPropertyNames22_ES5(target=es5).symbols | 22 + ...putedPropertyNames22_ES5(target=es5).types | 35 + ...ertyNames23_ES5(target=es2015).errors.txt} | 0 ...putedPropertyNames23_ES5(target=es2015).js | 19 + ...ropertyNames23_ES5(target=es2015).symbols} | 0 ...dPropertyNames23_ES5(target=es2015).types} | 0 ...PropertyNames23_ES5(target=es5).errors.txt | 14 + ...omputedPropertyNames23_ES5(target=es5).js} | 0 ...tedPropertyNames23_ES5(target=es5).symbols | 24 + ...putedPropertyNames23_ES5(target=es5).types | 41 + ...ertyNames24_ES5(target=es2015).errors.txt} | 0 ...putedPropertyNames24_ES5(target=es2015).js | 21 + ...ropertyNames24_ES5(target=es2015).symbols} | 0 ...dPropertyNames24_ES5(target=es2015).types} | 0 ...PropertyNames24_ES5(target=es5).errors.txt | 14 + ...omputedPropertyNames24_ES5(target=es5).js} | 0 ...tedPropertyNames24_ES5(target=es5).symbols | 19 + ...putedPropertyNames24_ES5(target=es5).types | 34 + ...putedPropertyNames25_ES5(target=es2015).js | 31 + ...ropertyNames25_ES5(target=es2015).symbols} | 0 ...dPropertyNames25_ES5(target=es2015).types} | 0 ...omputedPropertyNames25_ES5(target=es5).js} | 0 ...tedPropertyNames25_ES5(target=es5).symbols | 32 + ...putedPropertyNames25_ES5(target=es5).types | 50 + ...ertyNames26_ES5(target=es2015).errors.txt} | 0 ...putedPropertyNames26_ES5(target=es2015).js | 23 + ...ropertyNames26_ES5(target=es2015).symbols} | 0 ...dPropertyNames26_ES5(target=es2015).types} | 0 ...PropertyNames26_ES5(target=es5).errors.txt | 16 + ...omputedPropertyNames26_ES5(target=es5).js} | 0 ...tedPropertyNames26_ES5(target=es5).symbols | 26 + ...putedPropertyNames26_ES5(target=es5).types | 48 + ...ertyNames27_ES5(target=es2015).errors.txt} | 0 ...putedPropertyNames27_ES5(target=es2015).js | 15 + ...ropertyNames27_ES5(target=es2015).symbols} | 0 ...dPropertyNames27_ES5(target=es2015).types} | 0 ...PropertyNames27_ES5(target=es5).errors.txt | 11 + ...omputedPropertyNames27_ES5(target=es5).js} | 0 ...tedPropertyNames27_ES5(target=es5).symbols | 13 + ...putedPropertyNames27_ES5(target=es5).types | 27 + ...putedPropertyNames28_ES5(target=es2015).js | 25 + ...ropertyNames28_ES5(target=es2015).symbols} | 0 ...dPropertyNames28_ES5(target=es2015).types} | 0 ...omputedPropertyNames28_ES5(target=es5).js} | 0 ...tedPropertyNames28_ES5(target=es5).symbols | 24 + ...putedPropertyNames28_ES5(target=es5).types | 43 + ...putedPropertyNames29_ES5(target=es2015).js | 25 + ...ropertyNames29_ES5(target=es2015).symbols} | 0 ...dPropertyNames29_ES5(target=es2015).types} | 0 ...omputedPropertyNames29_ES5(target=es5).js} | 0 ...tedPropertyNames29_ES5(target=es5).symbols | 24 + ...putedPropertyNames29_ES5(target=es5).types | 40 + ...pertyNames2_ES5(target=es2015).errors.txt} | 0 ...mputedPropertyNames2_ES5(target=es2015).js | 25 + ...PropertyNames2_ES5(target=es2015).symbols} | 0 ...edPropertyNames2_ES5(target=es2015).types} | 0 ...dPropertyNames2_ES5(target=es5).errors.txt | 19 + ...computedPropertyNames2_ES5(target=es5).js} | 0 ...utedPropertyNames2_ES5(target=es5).symbols | 38 + ...mputedPropertyNames2_ES5(target=es5).types | 59 + ...ertyNames30_ES5(target=es2015).errors.txt} | 0 ...putedPropertyNames30_ES5(target=es2015).js | 35 + ...ropertyNames30_ES5(target=es2015).symbols} | 0 ...dPropertyNames30_ES5(target=es2015).types} | 0 ...PropertyNames30_ES5(target=es5).errors.txt | 21 + ...omputedPropertyNames30_ES5(target=es5).js} | 0 ...tedPropertyNames30_ES5(target=es5).symbols | 28 + ...putedPropertyNames30_ES5(target=es5).types | 51 + ...putedPropertyNames31_ES5(target=es2015).js | 35 + ...ropertyNames31_ES5(target=es2015).symbols} | 0 ...dPropertyNames31_ES5(target=es2015).types} | 0 ...omputedPropertyNames31_ES5(target=es5).js} | 0 ...tedPropertyNames31_ES5(target=es5).symbols | 34 + ...putedPropertyNames31_ES5(target=es5).types | 55 + ...ertyNames32_ES5(target=es2015).errors.txt} | 0 ...putedPropertyNames32_ES5(target=es2015).js | 19 + ...ropertyNames32_ES5(target=es2015).symbols} | 0 ...dPropertyNames32_ES5(target=es2015).types} | 0 ...PropertyNames32_ES5(target=es5).errors.txt | 13 + ...omputedPropertyNames32_ES5(target=es5).js} | 0 ...tedPropertyNames32_ES5(target=es5).symbols | 21 + ...putedPropertyNames32_ES5(target=es5).types | 29 + ...putedPropertyNames33_ES5(target=es2015).js | 23 + ...ropertyNames33_ES5(target=es2015).symbols} | 0 ...dPropertyNames33_ES5(target=es2015).types} | 0 ...omputedPropertyNames33_ES5(target=es5).js} | 0 ...tedPropertyNames33_ES5(target=es5).symbols | 26 + ...putedPropertyNames33_ES5(target=es5).types | 37 + ...ertyNames34_ES5(target=es2015).errors.txt} | 0 ...putedPropertyNames34_ES5(target=es2015).js | 23 + ...ropertyNames34_ES5(target=es2015).symbols} | 0 ...dPropertyNames34_ES5(target=es2015).types} | 0 ...PropertyNames34_ES5(target=es5).errors.txt | 15 + ...omputedPropertyNames34_ES5(target=es5).js} | 0 ...tedPropertyNames34_ES5(target=es5).symbols | 26 + ...putedPropertyNames34_ES5(target=es5).types | 37 + ...ertyNames35_ES5(target=es2015).errors.txt} | 0 ...utedPropertyNames35_ES5(target=es2015).js} | 0 ...ropertyNames35_ES5(target=es2015).symbols} | 0 ...dPropertyNames35_ES5(target=es2015).types} | 0 ...PropertyNames35_ES5(target=es5).errors.txt | 14 + ...computedPropertyNames35_ES5(target=es5).js | 11 + ...tedPropertyNames35_ES5(target=es5).symbols | 19 + ...putedPropertyNames35_ES5(target=es5).types | 22 + ...ertyNames36_ES5(target=es2015).errors.txt} | 0 ...putedPropertyNames36_ES5(target=es2015).js | 24 + ...ropertyNames36_ES5(target=es2015).symbols} | 0 ...dPropertyNames36_ES5(target=es2015).types} | 0 ...PropertyNames36_ES5(target=es5).errors.txt | 16 + ...omputedPropertyNames36_ES5(target=es5).js} | 0 ...tedPropertyNames36_ES5(target=es5).symbols | 31 + ...putedPropertyNames36_ES5(target=es5).types | 44 + ...putedPropertyNames37_ES5(target=es2015).js | 24 + ...ropertyNames37_ES5(target=es2015).symbols} | 0 ...dPropertyNames37_ES5(target=es2015).types} | 0 ...omputedPropertyNames37_ES5(target=es5).js} | 0 ...tedPropertyNames37_ES5(target=es5).symbols | 31 + ...putedPropertyNames37_ES5(target=es5).types | 41 + ...ertyNames38_ES5(target=es2015).errors.txt} | 0 ...putedPropertyNames38_ES5(target=es2015).js | 24 + ...ropertyNames38_ES5(target=es2015).symbols} | 0 ...dPropertyNames38_ES5(target=es2015).types} | 0 ...PropertyNames38_ES5(target=es5).errors.txt | 16 + ...omputedPropertyNames38_ES5(target=es5).js} | 0 ...tedPropertyNames38_ES5(target=es5).symbols | 29 + ...putedPropertyNames38_ES5(target=es5).types | 52 + ...ertyNames39_ES5(target=es2015).errors.txt} | 0 ...putedPropertyNames39_ES5(target=es2015).js | 24 + ...ropertyNames39_ES5(target=es2015).symbols} | 0 ...dPropertyNames39_ES5(target=es2015).types} | 0 ...PropertyNames39_ES5(target=es5).errors.txt | 16 + ...omputedPropertyNames39_ES5(target=es5).js} | 0 ...tedPropertyNames39_ES5(target=es5).symbols | 29 + ...putedPropertyNames39_ES5(target=es5).types | 52 + ...pertyNames3_ES5(target=es2015).errors.txt} | 0 ...mputedPropertyNames3_ES5(target=es2015).js | 23 + ...PropertyNames3_ES5(target=es2015).symbols} | 0 ...edPropertyNames3_ES5(target=es2015).types} | 0 ...dPropertyNames3_ES5(target=es5).errors.txt | 36 + ...computedPropertyNames3_ES5(target=es5).js} | 0 ...utedPropertyNames3_ES5(target=es5).symbols | 32 + ...mputedPropertyNames3_ES5(target=es5).types | 69 + ...ertyNames40_ES5(target=es2015).errors.txt} | 0 ...putedPropertyNames40_ES5(target=es2015).js | 24 + ...ropertyNames40_ES5(target=es2015).symbols} | 0 ...dPropertyNames40_ES5(target=es2015).types} | 0 ...PropertyNames40_ES5(target=es5).errors.txt | 22 + ...omputedPropertyNames40_ES5(target=es5).js} | 0 ...tedPropertyNames40_ES5(target=es5).symbols | 30 + ...putedPropertyNames40_ES5(target=es5).types | 46 + ...putedPropertyNames41_ES5(target=es2015).js | 22 + ...ropertyNames41_ES5(target=es2015).symbols} | 0 ...dPropertyNames41_ES5(target=es2015).types} | 0 ...omputedPropertyNames41_ES5(target=es5).js} | 0 ...tedPropertyNames41_ES5(target=es5).symbols | 25 + ...putedPropertyNames41_ES5(target=es5).types | 33 + ...ertyNames42_ES5(target=es2015).errors.txt} | 0 ...putedPropertyNames42_ES5(target=es2015).js | 20 + ...ropertyNames42_ES5(target=es2015).symbols} | 0 ...dPropertyNames42_ES5(target=es2015).types} | 0 ...PropertyNames42_ES5(target=es5).errors.txt | 15 + ...omputedPropertyNames42_ES5(target=es5).js} | 0 ...tedPropertyNames42_ES5(target=es5).symbols | 25 + ...putedPropertyNames42_ES5(target=es5).types | 32 + ...ertyNames43_ES5(target=es2015).errors.txt} | 0 ...putedPropertyNames43_ES5(target=es2015).js | 28 + ...ropertyNames43_ES5(target=es2015).symbols} | 0 ...dPropertyNames43_ES5(target=es2015).types} | 0 ...PropertyNames43_ES5(target=es5).errors.txt | 18 + ...omputedPropertyNames43_ES5(target=es5).js} | 0 ...tedPropertyNames43_ES5(target=es5).symbols | 36 + ...putedPropertyNames43_ES5(target=es5).types | 51 + ...ertyNames44_ES5(target=es2015).errors.txt} | 0 ...putedPropertyNames44_ES5(target=es2015).js | 26 + ...ropertyNames44_ES5(target=es2015).symbols} | 0 ...dPropertyNames44_ES5(target=es2015).types} | 0 ...PropertyNames44_ES5(target=es5).errors.txt | 20 + ...omputedPropertyNames44_ES5(target=es5).js} | 0 ...tedPropertyNames44_ES5(target=es5).symbols | 35 + ...putedPropertyNames44_ES5(target=es5).types | 50 + ...ertyNames45_ES5(target=es2015).errors.txt} | 0 ...putedPropertyNames45_ES5(target=es2015).js | 27 + ...ropertyNames45_ES5(target=es2015).symbols} | 0 ...dPropertyNames45_ES5(target=es2015).types} | 0 ...PropertyNames45_ES5(target=es5).errors.txt | 22 + ...omputedPropertyNames45_ES5(target=es5).js} | 0 ...tedPropertyNames45_ES5(target=es5).symbols | 36 + ...putedPropertyNames45_ES5(target=es5).types | 51 + ...ertyNames46_ES5(target=es2015).errors.txt} | 0 ...putedPropertyNames46_ES5(target=es2015).js | 11 + ...ropertyNames46_ES5(target=es2015).symbols} | 0 ...dPropertyNames46_ES5(target=es2015).types} | 0 ...PropertyNames46_ES5(target=es5).errors.txt | 9 + ...omputedPropertyNames46_ES5(target=es5).js} | 0 ...tedPropertyNames46_ES5(target=es5).symbols | 10 + ...putedPropertyNames46_ES5(target=es5).types | 22 + ...putedPropertyNames47_ES5(target=es2015).js | 21 + ...ropertyNames47_ES5(target=es2015).symbols} | 0 ...dPropertyNames47_ES5(target=es2015).types} | 0 ...omputedPropertyNames47_ES5(target=es5).js} | 0 ...tedPropertyNames47_ES5(target=es5).symbols | 24 + ...putedPropertyNames47_ES5(target=es5).types | 42 + ...ertyNames48_ES5(target=es2015).errors.txt} | 0 ...putedPropertyNames48_ES5(target=es2015).js | 36 + ...ropertyNames48_ES5(target=es2015).symbols} | 0 ...dPropertyNames48_ES5(target=es2015).types} | 0 ...PropertyNames48_ES5(target=es5).errors.txt | 23 + ...omputedPropertyNames48_ES5(target=es5).js} | 0 ...tedPropertyNames48_ES5(target=es5).symbols | 45 + ...putedPropertyNames48_ES5(target=es5).types | 82 + ...mputedPropertyNames4_ES5(target=es2015).js | 37 + ...PropertyNames4_ES5(target=es2015).symbols} | 0 ...edPropertyNames4_ES5(target=es2015).types} | 0 ...computedPropertyNames4_ES5(target=es5).js} | 0 ...utedPropertyNames4_ES5(target=es5).symbols | 62 + ...mputedPropertyNames4_ES5(target=es5).types | 119 + ...pertyNames5_ES5(target=es2015).errors.txt} | 0 ...mputedPropertyNames5_ES5(target=es2015).js | 22 + ...PropertyNames5_ES5(target=es2015).symbols} | 0 ...edPropertyNames5_ES5(target=es2015).types} | 0 ...dPropertyNames5_ES5(target=es5).errors.txt | 30 + ...computedPropertyNames5_ES5(target=es5).js} | 0 ...utedPropertyNames5_ES5(target=es5).symbols | 30 + ...mputedPropertyNames5_ES5(target=es5).types | 57 + ...pertyNames6_ES5(target=es2015).errors.txt} | 0 ...mputedPropertyNames6_ES5(target=es2015).js | 18 + ...PropertyNames6_ES5(target=es2015).symbols} | 0 ...edPropertyNames6_ES5(target=es2015).types} | 0 ...dPropertyNames6_ES5(target=es5).errors.txt | 17 + ...computedPropertyNames6_ES5(target=es5).js} | 0 ...utedPropertyNames6_ES5(target=es5).symbols | 27 + ...mputedPropertyNames6_ES5(target=es5).types | 45 + ...mputedPropertyNames7_ES5(target=es2015).js | 18 + ...PropertyNames7_ES5(target=es2015).symbols} | 0 ...edPropertyNames7_ES5(target=es2015).types} | 0 ...computedPropertyNames7_ES5(target=es5).js} | 0 ...utedPropertyNames7_ES5(target=es5).symbols | 18 + ...mputedPropertyNames7_ES5(target=es5).types | 29 + ...pertyNames8_ES5(target=es2015).errors.txt} | 0 ...mputedPropertyNames8_ES5(target=es2015).js | 21 + ...PropertyNames8_ES5(target=es2015).symbols} | 0 ...edPropertyNames8_ES5(target=es2015).types} | 0 ...dPropertyNames8_ES5(target=es5).errors.txt | 14 + ...computedPropertyNames8_ES5(target=es5).js} | 0 ...utedPropertyNames8_ES5(target=es5).symbols | 29 + ...mputedPropertyNames8_ES5(target=es5).types | 39 + ...pertyNames9_ES5(target=es2015).errors.txt} | 0 ...mputedPropertyNames9_ES5(target=es2015).js | 21 + ...PropertyNames9_ES5(target=es2015).symbols} | 0 ...edPropertyNames9_ES5(target=es2015).types} | 0 ...dPropertyNames9_ES5(target=es5).errors.txt | 16 + ...computedPropertyNames9_ES5(target=es5).js} | 0 ...utedPropertyNames9_ES5(target=es5).symbols | 37 + ...mputedPropertyNames9_ES5(target=es5).types | 69 + ...xtualType10_ES5(target=es2015).errors.txt} | 0 ...amesContextualType10_ES5(target=es2015).js | 17 + ...ntextualType10_ES5(target=es2015).symbols} | 0 ...ContextualType10_ES5(target=es2015).types} | 0 ...ontextualType10_ES5(target=es5).errors.txt | 20 + ...yNamesContextualType10_ES5(target=es5).js} | 0 ...esContextualType10_ES5(target=es5).symbols | 20 + ...amesContextualType10_ES5(target=es5).types | 35 + ...NamesContextualType1_ES5(target=es2015).js | 18 + ...ontextualType1_ES5(target=es2015).symbols} | 0 ...sContextualType1_ES5(target=es2015).types} | 0 ...tyNamesContextualType1_ES5(target=es5).js} | 0 ...mesContextualType1_ES5(target=es5).symbols | 33 + ...NamesContextualType1_ES5(target=es5).types | 60 + ...NamesContextualType2_ES5(target=es2015).js | 18 + ...ontextualType2_ES5(target=es2015).symbols} | 0 ...sContextualType2_ES5(target=es2015).types} | 0 ...tyNamesContextualType2_ES5(target=es5).js} | 0 ...mesContextualType2_ES5(target=es5).symbols | 33 + ...NamesContextualType2_ES5(target=es5).types | 56 + ...NamesContextualType3_ES5(target=es2015).js | 17 + ...ontextualType3_ES5(target=es2015).symbols} | 0 ...sContextualType3_ES5(target=es2015).types} | 0 ...tyNamesContextualType3_ES5(target=es5).js} | 0 ...mesContextualType3_ES5(target=es5).symbols | 29 + ...NamesContextualType3_ES5(target=es5).types | 51 + ...NamesContextualType4_ES5(target=es2015).js | 18 + ...ontextualType4_ES5(target=es2015).symbols} | 0 ...sContextualType4_ES5(target=es2015).types} | 0 ...tyNamesContextualType4_ES5(target=es5).js} | 0 ...mesContextualType4_ES5(target=es5).symbols | 23 + ...NamesContextualType4_ES5(target=es5).types | 43 + ...NamesContextualType5_ES5(target=es2015).js | 18 + ...ontextualType5_ES5(target=es2015).symbols} | 0 ...sContextualType5_ES5(target=es2015).types} | 0 ...tyNamesContextualType5_ES5(target=es5).js} | 0 ...mesContextualType5_ES5(target=es5).symbols | 23 + ...NamesContextualType5_ES5(target=es5).types | 39 + ...NamesContextualType6_ES5(target=es2015).js | 25 + ...ontextualType6_ES5(target=es2015).symbols} | 0 ...sContextualType6_ES5(target=es2015).types} | 0 ...tyNamesContextualType6_ES5(target=es5).js} | 0 ...mesContextualType6_ES5(target=es5).symbols | 39 + ...NamesContextualType6_ES5(target=es5).types | 72 + ...NamesContextualType7_ES5(target=es2015).js | 31 + ...ontextualType7_ES5(target=es2015).symbols} | 0 ...sContextualType7_ES5(target=es2015).types} | 0 ...tyNamesContextualType7_ES5(target=es5).js} | 0 ...mesContextualType7_ES5(target=es5).symbols | 57 + ...NamesContextualType7_ES5(target=es5).types | 90 + ...extualType8_ES5(target=es2015).errors.txt} | 0 ...NamesContextualType8_ES5(target=es2015).js | 18 + ...ontextualType8_ES5(target=es2015).symbols} | 0 ...sContextualType8_ES5(target=es2015).types} | 0 ...ContextualType8_ES5(target=es5).errors.txt | 21 + ...tyNamesContextualType8_ES5(target=es5).js} | 0 ...mesContextualType8_ES5(target=es5).symbols | 23 + ...NamesContextualType8_ES5(target=es5).types | 43 + ...extualType9_ES5(target=es2015).errors.txt} | 0 ...NamesContextualType9_ES5(target=es2015).js | 18 + ...ontextualType9_ES5(target=es2015).symbols} | 0 ...sContextualType9_ES5(target=es2015).types} | 0 ...ContextualType9_ES5(target=es5).errors.txt | 21 + ...tyNamesContextualType9_ES5(target=es5).js} | 0 ...mesContextualType9_ES5(target=es5).symbols | 23 + ...NamesContextualType9_ES5(target=es5).types | 39 + ...amesDeclarationEmit1_ES5(target=es2015).js | 20 + ...clarationEmit1_ES5(target=es2015).symbols} | 0 ...DeclarationEmit1_ES5(target=es2015).types} | 0 ...yNamesDeclarationEmit1_ES5(target=es5).js} | 0 ...esDeclarationEmit1_ES5(target=es5).symbols | 16 + ...amesDeclarationEmit1_ES5(target=es5).types | 39 + ...amesDeclarationEmit2_ES5(target=es2015).js | 20 + ...clarationEmit2_ES5(target=es2015).symbols} | 0 ...DeclarationEmit2_ES5(target=es2015).types} | 0 ...yNamesDeclarationEmit2_ES5(target=es5).js} | 0 ...esDeclarationEmit2_ES5(target=es5).symbols | 16 + ...amesDeclarationEmit2_ES5(target=es5).types | 39 + ...rationEmit3_ES5(target=es2015).errors.txt} | 0 ...mesDeclarationEmit3_ES5(target=es2015).js} | 0 ...clarationEmit3_ES5(target=es2015).symbols} | 0 ...DeclarationEmit3_ES5(target=es2015).types} | 0 ...eclarationEmit3_ES5(target=es5).errors.txt | 9 + ...tyNamesDeclarationEmit3_ES5(target=es5).js | 13 + ...esDeclarationEmit3_ES5(target=es5).symbols | 9 + ...amesDeclarationEmit3_ES5(target=es5).types | 14 + ...rationEmit4_ES5(target=es2015).errors.txt} | 0 ...mesDeclarationEmit4_ES5(target=es2015).js} | 0 ...clarationEmit4_ES5(target=es2015).symbols} | 0 ...DeclarationEmit4_ES5(target=es2015).types} | 0 ...eclarationEmit4_ES5(target=es5).errors.txt | 9 + ...tyNamesDeclarationEmit4_ES5(target=es5).js | 13 + ...esDeclarationEmit4_ES5(target=es5).symbols | 9 + ...amesDeclarationEmit4_ES5(target=es5).types | 17 + ...amesDeclarationEmit5_ES5(target=es2015).js | 23 + ...clarationEmit5_ES5(target=es2015).symbols} | 0 ...DeclarationEmit5_ES5(target=es2015).types} | 0 ...yNamesDeclarationEmit5_ES5(target=es5).js} | 0 ...esDeclarationEmit5_ES5(target=es5).symbols | 19 + ...amesDeclarationEmit5_ES5(target=es5).types | 53 + ...rationEmit6_ES5(target=es2015).errors.txt} | 0 ...amesDeclarationEmit6_ES5(target=es2015).js | 26 + ...clarationEmit6_ES5(target=es2015).symbols} | 0 ...DeclarationEmit6_ES5(target=es2015).types} | 0 ...eclarationEmit6_ES5(target=es5).errors.txt | 13 + ...yNamesDeclarationEmit6_ES5(target=es5).js} | 0 ...esDeclarationEmit6_ES5(target=es5).symbols | 19 + ...amesDeclarationEmit6_ES5(target=es5).types | 50 + ...ertyNamesOnOverloads_ES5(target=es2015).js | 17 + ...mesOnOverloads_ES5(target=es2015).symbols} | 0 ...NamesOnOverloads_ES5(target=es2015).types} | 0 ...opertyNamesOnOverloads_ES5(target=es5).js} | 0 ...tyNamesOnOverloads_ES5(target=es5).symbols | 26 + ...ertyNamesOnOverloads_ES5(target=es5).types | 41 + ...pertyNamesSourceMap1_ES5(target=es2015).js | 22 + ...yNamesSourceMap1_ES5(target=es2015).js.map | 3 + ...ourceMap1_ES5(target=es2015).sourcemap.txt | 110 + ...amesSourceMap1_ES5(target=es2015).symbols} | 0 ...yNamesSourceMap1_ES5(target=es2015).types} | 0 ...ropertyNamesSourceMap1_ES5(target=es5).js} | 0 ...rtyNamesSourceMap1_ES5(target=es5).js.map} | 0 ...sSourceMap1_ES5(target=es5).sourcemap.txt} | 0 ...rtyNamesSourceMap1_ES5(target=es5).symbols | 19 + ...pertyNamesSourceMap1_ES5(target=es5).types | 26 + ...pertyNamesSourceMap2_ES5(target=es2015).js | 22 + ...yNamesSourceMap2_ES5(target=es2015).js.map | 3 + ...ourceMap2_ES5(target=es2015).sourcemap.txt | 116 + ...amesSourceMap2_ES5(target=es2015).symbols} | 0 ...yNamesSourceMap2_ES5(target=es2015).types} | 0 ...ropertyNamesSourceMap2_ES5(target=es5).js} | 0 ...rtyNamesSourceMap2_ES5(target=es5).js.map} | 0 ...sSourceMap2_ES5(target=es5).sourcemap.txt} | 0 ...rtyNamesSourceMap2_ES5(target=es5).symbols | 19 + ...pertyNamesSourceMap2_ES5(target=es5).types | 28 + ...InES5ShouldBeTransformed(target=es2015).js | 7 + ...houldBeTransformed(target=es2015).symbols} | 0 ...5ShouldBeTransformed(target=es2015).types} | 0 ...esInES5ShouldBeTransformed(target=es5).js} | 0 ...ES5ShouldBeTransformed(target=es5).symbols | 9 + ...InES5ShouldBeTransformed(target=es5).types | 14 + .../constDeclarations-es5(target=es2015).js | 12 + ...stDeclarations-es5(target=es2015).symbols} | 0 ...onstDeclarations-es5(target=es2015).types} | 0 ...s => constDeclarations-es5(target=es5).js} | 0 .../constDeclarations-es5(target=es5).symbols | 14 + .../constDeclarations-es5(target=es5).types | 26 + ...WithSuperAndPrologue.es5(target=es2015).js | 36 + ...perAndPrologue.es5(target=es2015).symbols} | 0 ...SuperAndPrologue.es5(target=es2015).types} | 0 ...orWithSuperAndPrologue.es5(target=es5).js} | 0 ...thSuperAndPrologue.es5(target=es5).symbols | 33 + ...WithSuperAndPrologue.es5(target=es5).types | 58 + ...echeckingDoesntBlowStack(target=es2015).js | 43 + ...ingDoesntBlowStack(target=es2015).symbols} | 0 ...ckingDoesntBlowStack(target=es2015).types} | 0 ...ypecheckingDoesntBlowStack(target=es5).js} | 0 ...heckingDoesntBlowStack(target=es5).symbols | 62 + ...echeckingDoesntBlowStack(target=es5).types | 122 + ...uredBlockScopedBindings1(target=es2015).js | 28 + ...ockScopedBindings1(target=es2015).symbols} | 0 ...BlockScopedBindings1(target=es2015).types} | 0 ...pturedBlockScopedBindings1(target=es5).js} | 0 ...edBlockScopedBindings1(target=es5).symbols | 23 + ...uredBlockScopedBindings1(target=es5).types | 44 + ...ctionFromObjectProperty1(target=es2015).js | 482 + ...romObjectProperty1(target=es2015).symbols} | 0 ...nFromObjectProperty1(target=es2015).types} | 0 ...unctionFromObjectProperty1(target=es5).js} | 0 ...ionFromObjectProperty1(target=es5).symbols | 400 + ...ctionFromObjectProperty1(target=es5).types | 1026 + ...ctionFromObjectProperty2(target=es2015).js | 481 + ...romObjectProperty2(target=es2015).symbols} | 0 ...nFromObjectProperty2(target=es2015).types} | 0 ...unctionFromObjectProperty2(target=es5).js} | 0 ...ionFromObjectProperty2(target=es5).symbols | 398 + ...ctionFromObjectProperty2(target=es5).types | 637 + .../declFileAccessors(target=es2015).js | 250 + ... declFileAccessors(target=es2015).symbols} | 0 ...=> declFileAccessors(target=es2015).types} | 0 ...rs.js => declFileAccessors(target=es5).js} | 0 .../declFileAccessors(target=es5).symbols | 161 + .../declFileAccessors(target=es5).types | 233 + ... declFileCallSignatures(target=es2015).js} | 0 ...FileCallSignatures(target=es2015).symbols} | 0 ...clFileCallSignatures(target=es2015).types} | 0 .../declFileCallSignatures(target=es5).js | 122 + ...declFileCallSignatures(target=es5).symbols | 118 + .../declFileCallSignatures(target=es5).types | 101 + ...declFileClassExtendsNull(target=es2015).js | 14 + ...leClassExtendsNull(target=es2015).symbols} | 0 ...FileClassExtendsNull(target=es2015).types} | 0 ...> declFileClassExtendsNull(target=es5).js} | 0 ...clFileClassExtendsNull(target=es5).symbols | 6 + ...declFileClassExtendsNull(target=es5).types | 7 + ...FileConstructSignatures(target=es2015).js} | 0 ...onstructSignatures(target=es2015).symbols} | 0 ...eConstructSignatures(target=es2015).types} | 0 ...declFileConstructSignatures(target=es5).js | 122 + ...ileConstructSignatures(target=es5).symbols | 122 + ...lFileConstructSignatures(target=es5).types | 101 + .../declFileConstructors(target=es2015).js | 265 + ...clFileConstructors(target=es2015).symbols} | 0 ...declFileConstructors(target=es2015).types} | 0 ...js => declFileConstructors(target=es5).js} | 0 .../declFileConstructors(target=es5).symbols | 173 + .../declFileConstructors(target=es5).types | 237 + .../declFileFunctions(target=es2015).js | 178 + ... declFileFunctions(target=es2015).symbols} | 0 ...=> declFileFunctions(target=es2015).types} | 0 ...ns.js => declFileFunctions(target=es5).js} | 0 .../declFileFunctions(target=es5).symbols | 183 + .../declFileFunctions(target=es5).types | 265 + ...declFileIndexSignatures(target=es2015).js} | 0 ...ileIndexSignatures(target=es2015).symbols} | 0 ...lFileIndexSignatures(target=es2015).types} | 0 .../declFileIndexSignatures(target=es5).js | 70 + ...eclFileIndexSignatures(target=es5).symbols | 67 + .../declFileIndexSignatures(target=es5).types | 57 + .../declFileMethods(target=es2015).js | 411 + ...=> declFileMethods(target=es2015).symbols} | 0 ...s => declFileMethods(target=es2015).types} | 0 ...hods.js => declFileMethods(target=es5).js} | 0 .../declFileMethods(target=es5).symbols | 432 + .../declFileMethods(target=es5).types | 644 + ...ectLiteralWithAccessors(target=es2015).js} | 0 ...teralWithAccessors(target=es2015).symbols} | 0 ...LiteralWithAccessors(target=es2015).types} | 0 ...eObjectLiteralWithAccessors(target=es5).js | 38 + ...ctLiteralWithAccessors(target=es5).symbols | 37 + ...jectLiteralWithAccessors(target=es5).types | 74 + ...ctLiteralWithOnlyGetter(target=es2015).js} | 0 ...eralWithOnlyGetter(target=es2015).symbols} | 0 ...iteralWithOnlyGetter(target=es2015).types} | 0 ...ObjectLiteralWithOnlyGetter(target=es5).js | 31 + ...tLiteralWithOnlyGetter(target=es5).symbols | 24 + ...ectLiteralWithOnlyGetter(target=es5).types | 41 + ...ctLiteralWithOnlySetter(target=es2015).js} | 0 ...eralWithOnlySetter(target=es2015).symbols} | 0 ...iteralWithOnlySetter(target=es2015).types} | 0 ...ObjectLiteralWithOnlySetter(target=es5).js | 33 + ...tLiteralWithOnlySetter(target=es5).symbols | 27 + ...ectLiteralWithOnlySetter(target=es5).types | 58 + .../declFilePrivateStatic(target=es2015).js | 41 + ...lFilePrivateStatic(target=es2015).symbols} | 0 ...eclFilePrivateStatic(target=es2015).types} | 0 ...s => declFilePrivateStatic(target=es5).js} | 0 .../declFilePrivateStatic(target=es5).symbols | 32 + .../declFilePrivateStatic(target=es5).types | 47 + ...eTypeAnnotationArrayType(target=es2015).js | 126 + ...nnotationArrayType(target=es2015).symbols} | 0 ...eAnnotationArrayType(target=es2015).types} | 0 ...ileTypeAnnotationArrayType(target=es5).js} | 0 ...ypeAnnotationArrayType(target=es5).symbols | 106 + ...eTypeAnnotationArrayType(target=es5).types | 174 + ...peAnnotationBuiltInType(target=es2015).js} | 0 ...otationBuiltInType(target=es2015).symbols} | 0 ...nnotationBuiltInType(target=es2015).types} | 0 ...leTypeAnnotationBuiltInType(target=es5).js | 92 + ...eAnnotationBuiltInType(target=es5).symbols | 64 + ...ypeAnnotationBuiltInType(target=es5).types | 88 + ...tationParenType(target=es2015).errors.txt} | 0 ...eTypeAnnotationParenType(target=es2015).js | 30 + ...nnotationParenType(target=es2015).symbols} | 0 ...eAnnotationParenType(target=es2015).types} | 0 ...AnnotationParenType(target=es5).errors.txt | 18 + ...ileTypeAnnotationParenType(target=es5).js} | 0 ...ypeAnnotationParenType(target=es5).symbols | 28 + ...eTypeAnnotationParenType(target=es5).types | 68 + ...AnnotationStringLiteral(target=es2015).js} | 0 ...ationStringLiteral(target=es2015).symbols} | 0 ...otationStringLiteral(target=es2015).types} | 0 ...TypeAnnotationStringLiteral(target=es5).js | 27 + ...nnotationStringLiteral(target=es5).symbols | 31 + ...eAnnotationStringLiteral(target=es5).types | 48 + ...eTypeAnnotationTupleType(target=es2015).js | 57 + ...nnotationTupleType(target=es2015).symbols} | 0 ...eAnnotationTupleType(target=es2015).types} | 0 ...ileTypeAnnotationTupleType(target=es5).js} | 0 ...ypeAnnotationTupleType(target=es5).symbols | 53 + ...eTypeAnnotationTupleType(target=es5).types | 84 + ...eTypeAnnotationTypeAlias(target=es2015).js | 82 + ...nnotationTypeAlias(target=es2015).symbols} | 0 ...eAnnotationTypeAlias(target=es2015).types} | 0 ...ileTypeAnnotationTypeAlias(target=es5).js} | 0 ...ypeAnnotationTypeAlias(target=es5).symbols | 64 + ...eTypeAnnotationTypeAlias(target=es5).types | 72 + ...ypeAnnotationTypeLiteral(target=es2015).js | 84 + ...otationTypeLiteral(target=es2015).symbols} | 0 ...nnotationTypeLiteral(target=es2015).types} | 0 ...eTypeAnnotationTypeLiteral(target=es5).js} | 0 ...eAnnotationTypeLiteral(target=es5).symbols | 86 + ...ypeAnnotationTypeLiteral(target=es5).types | 98 + ...eTypeAnnotationTypeQuery(target=es2015).js | 109 + ...nnotationTypeQuery(target=es2015).symbols} | 0 ...eAnnotationTypeQuery(target=es2015).types} | 0 ...ileTypeAnnotationTypeQuery(target=es5).js} | 0 ...ypeAnnotationTypeQuery(target=es5).symbols | 93 + ...eTypeAnnotationTypeQuery(target=es5).types | 128 + ...eAnnotationTypeReference(target=es2015).js | 109 + ...ationTypeReference(target=es2015).symbols} | 0 ...otationTypeReference(target=es2015).types} | 0 ...ypeAnnotationTypeReference(target=es5).js} | 0 ...nnotationTypeReference(target=es5).symbols | 91 + ...eAnnotationTypeReference(target=es5).types | 132 + ...eTypeAnnotationUnionType(target=es2015).js | 81 + ...nnotationUnionType(target=es2015).symbols} | 0 ...eAnnotationUnionType(target=es2015).types} | 0 ...ileTypeAnnotationUnionType(target=es5).js} | 0 ...ypeAnnotationUnionType(target=es5).symbols | 72 + ...eTypeAnnotationUnionType(target=es5).types | 138 + ...VisibilityErrorAccessors(target=es2015).js | 227 + ...lityErrorAccessors(target=es2015).symbols} | 0 ...bilityErrorAccessors(target=es2015).types} | 0 ...onVisibilityErrorAccessors(target=es5).js} | 0 ...sibilityErrorAccessors(target=es5).symbols | 183 + ...VisibilityErrorAccessors(target=es5).types | 231 + ...ErrorParameterOfFunction(target=es2015).js | 114 + ...arameterOfFunction(target=es2015).symbols} | 0 ...rParameterOfFunction(target=es2015).types} | 0 ...tyErrorParameterOfFunction(target=es5).js} | 0 ...rorParameterOfFunction(target=es5).symbols | 96 + ...ErrorParameterOfFunction(target=es5).types | 143 + ...rrorReturnTypeOfFunction(target=es2015).js | 138 + ...turnTypeOfFunction(target=es2015).symbols} | 0 ...ReturnTypeOfFunction(target=es2015).types} | 0 ...yErrorReturnTypeOfFunction(target=es5).js} | 0 ...orReturnTypeOfFunction(target=es5).symbols | 108 + ...rrorReturnTypeOfFunction(target=es5).types | 143 + ...VisibilityErrorTypeAlias(target=es2015).js | 113 + ...lityErrorTypeAlias(target=es2015).symbols} | 0 ...bilityErrorTypeAlias(target=es2015).types} | 0 ...onVisibilityErrorTypeAlias(target=es5).js} | 0 ...sibilityErrorTypeAlias(target=es5).symbols | 92 + ...VisibilityErrorTypeAlias(target=es5).types | 104 + ...sibilityErrorTypeLiteral(target=es2015).js | 96 + ...tyErrorTypeLiteral(target=es2015).symbols} | 0 ...lityErrorTypeLiteral(target=es2015).types} | 0 ...VisibilityErrorTypeLiteral(target=es5).js} | 0 ...bilityErrorTypeLiteral(target=es5).symbols | 95 + ...sibilityErrorTypeLiteral(target=es5).types | 127 + ...ErrorVariableDeclaration(target=es2015).js | 81 + ...ariableDeclaration(target=es2015).symbols} | 0 ...rVariableDeclaration(target=es2015).types} | 0 ...tyErrorVariableDeclaration(target=es5).js} | 0 ...rorVariableDeclaration(target=es5).symbols | 78 + ...ErrorVariableDeclaration(target=es5).types | 113 + ...tClassMemberNameConflict(target=es2015).js | 93 + ...MemberNameConflict(target=es2015).symbols} | 0 ...ssMemberNameConflict(target=es2015).types} | 0 ...mitClassMemberNameConflict(target=es5).js} | 0 ...lassMemberNameConflict(target=es5).symbols | 71 + ...tClassMemberNameConflict(target=es5).types | 99 + ...ClassMemberNameConflict2(target=es2015).js | 59 + ...emberNameConflict2(target=es2015).symbols} | 0 ...sMemberNameConflict2(target=es2015).types} | 0 ...itClassMemberNameConflict2(target=es5).js} | 0 ...assMemberNameConflict2(target=es5).symbols | 38 + ...ClassMemberNameConflict2(target=es5).types | 52 + ...tClassPrivateConstructor(target=es2015).js | 70 + ...PrivateConstructor(target=es2015).symbols} | 0 ...ssPrivateConstructor(target=es2015).types} | 0 ...mitClassPrivateConstructor(target=es5).js} | 0 ...lassPrivateConstructor(target=es5).symbols | 40 + ...tClassPrivateConstructor(target=es5).types | 45 + ...ClassPrivateConstructor2(target=es2015).js | 42 + ...rivateConstructor2(target=es2015).symbols} | 0 ...sPrivateConstructor2(target=es2015).types} | 0 ...itClassPrivateConstructor2(target=es5).js} | 0 ...assPrivateConstructor2(target=es5).symbols | 23 + ...ClassPrivateConstructor2(target=es5).types | 24 + ...tionEmitDetachedComment1(target=es2015).js | 75 + ...itDetachedComment1(target=es2015).symbols} | 0 ...EmitDetachedComment1(target=es2015).types} | 0 ...rationEmitDetachedComment1(target=es5).js} | 0 ...onEmitDetachedComment1(target=es5).symbols | 35 + ...tionEmitDetachedComment1(target=es5).types | 38 + ...tionEmitDetachedComment2(target=es2015).js | 55 + ...itDetachedComment2(target=es2015).symbols} | 0 ...EmitDetachedComment2(target=es2015).types} | 0 ...rationEmitDetachedComment2(target=es5).js} | 0 ...onEmitDetachedComment2(target=es5).symbols | 35 + ...tionEmitDetachedComment2(target=es5).types | 38 + ...tionEmitExportAssignment(target=es2015).js | 32 + ...itExportAssignment(target=es2015).symbols} | 0 ...EmitExportAssignment(target=es2015).types} | 0 ...rationEmitExportAssignment(target=es5).js} | 0 ...onEmitExportAssignment(target=es5).symbols | 19 + ...tionEmitExportAssignment(target=es5).types | 22 + ...ionEmitExportDeclaration(target=es2015).js | 39 + ...tExportDeclaration(target=es2015).symbols} | 0 ...mitExportDeclaration(target=es2015).types} | 0 ...ationEmitExportDeclaration(target=es5).js} | 0 ...nEmitExportDeclaration(target=es5).symbols | 28 + ...ionEmitExportDeclaration(target=es5).types | 36 + ...itModuleWithScopeMarker(target=es2015).js} | 0 ...uleWithScopeMarker(target=es2015).symbols} | 0 ...oduleWithScopeMarker(target=es2015).types} | 0 ...onEmitModuleWithScopeMarker(target=es5).js | 27 + ...tModuleWithScopeMarker(target=es5).symbols | 24 + ...mitModuleWithScopeMarker(target=es5).types | 32 + ...BasedOnBundling(target=es2015).errors.txt} | 0 ...sPathKindBasedOnBundling(target=es2015).js | 45 + ...indBasedOnBundling(target=es2015).symbols} | 0 ...hKindBasedOnBundling(target=es2015).types} | 0 ...KindBasedOnBundling(target=es5).errors.txt | 24 + ...ersPathKindBasedOnBundling(target=es5).js} | 0 ...athKindBasedOnBundling(target=es5).symbols | 31 + ...sPathKindBasedOnBundling(target=es5).types | 43 + ...asedOnBundling2(target=es2015).errors.txt} | 0 ...athKindBasedOnBundling2(target=es2015).js} | 0 ...ndBasedOnBundling2(target=es2015).symbols} | 0 ...KindBasedOnBundling2(target=es2015).types} | 0 ...indBasedOnBundling2(target=es5).errors.txt | 28 + ...ersPathKindBasedOnBundling2(target=es5).js | 55 + ...thKindBasedOnBundling2(target=es5).symbols | 31 + ...PathKindBasedOnBundling2(target=es5).types | 43 + ...tionEmitProtectedMembers(target=es2015).js | 122 + ...itProtectedMembers(target=es2015).symbols} | 0 ...EmitProtectedMembers(target=es2015).types} | 0 ...rationEmitProtectedMembers(target=es5).js} | 0 ...onEmitProtectedMembers(target=es5).symbols | 115 + ...tionEmitProtectedMembers(target=es5).types | 181 + ...larationEmitSymlinkPaths(target=es2015).js | 42 + ...onEmitSymlinkPaths(target=es2015).symbols} | 0 ...tionEmitSymlinkPaths(target=es2015).types} | 0 ...eclarationEmitSymlinkPaths(target=es5).js} | 0 ...rationEmitSymlinkPaths(target=es5).symbols | 38 + ...larationEmitSymlinkPaths(target=es5).types | 48 + ...itUnknownImport(target=es2015).errors.txt} | 0 ...rationEmitUnknownImport(target=es2015).js} | 0 ...nEmitUnknownImport(target=es2015).symbols} | 0 ...ionEmitUnknownImport(target=es2015).types} | 0 ...onEmitUnknownImport(target=es5).errors.txt | 14 + ...eclarationEmitUnknownImport(target=es5).js | 17 + ...ationEmitUnknownImport(target=es5).symbols | 9 + ...arationEmitUnknownImport(target=es5).types | 13 + ...tUnknownImport2(target=es2015).errors.txt} | 0 ...ationEmitUnknownImport2(target=es2015).js} | 0 ...EmitUnknownImport2(target=es2015).symbols} | 0 ...onEmitUnknownImport2(target=es2015).types} | 0 ...nEmitUnknownImport2(target=es5).errors.txt | 20 + ...clarationEmitUnknownImport2(target=es5).js | 17 + ...tionEmitUnknownImport2(target=es5).symbols | 9 + ...rationEmitUnknownImport2(target=es5).types | 15 + ...aryTypeReferenceNotAdded(target=es2015).js | 46 + ...eReferenceNotAdded(target=es2015).symbols} | 0 ...ypeReferenceNotAdded(target=es2015).types} | 0 ...esaryTypeReferenceNotAdded(target=es5).js} | 0 ...yTypeReferenceNotAdded(target=es5).symbols | 42 + ...aryTypeReferenceNotAdded(target=es5).types | 59 + ...ithDefaultAsComputedName(target=es2015).js | 40 + ...aultAsComputedName(target=es2015).symbols} | 0 ...efaultAsComputedName(target=es2015).types} | 0 ...tWithDefaultAsComputedName(target=es5).js} | 0 ...hDefaultAsComputedName(target=es5).symbols | 47 + ...ithDefaultAsComputedName(target=es5).types | 61 + ...thDefaultAsComputedName2(target=es2015).js | 40 + ...ultAsComputedName2(target=es2015).symbols} | 0 ...faultAsComputedName2(target=es2015).types} | 0 ...WithDefaultAsComputedName2(target=es5).js} | 0 ...DefaultAsComputedName2(target=es5).symbols | 49 + ...thDefaultAsComputedName2(target=es5).types | 65 + ...coratedBlockScopedClass1(target=es2015).js | 36 + ...dBlockScopedClass1(target=es2015).symbols} | 0 ...tedBlockScopedClass1(target=es2015).types} | 0 ...decoratedBlockScopedClass1(target=es5).js} | 0 ...ratedBlockScopedClass1(target=es5).symbols | 30 + ...coratedBlockScopedClass1(target=es5).types | 47 + ...coratedBlockScopedClass2(target=es2015).js | 42 + ...dBlockScopedClass2(target=es2015).symbols} | 0 ...tedBlockScopedClass2(target=es2015).types} | 0 ...decoratedBlockScopedClass2(target=es5).js} | 0 ...ratedBlockScopedClass2(target=es5).symbols | 34 + ...coratedBlockScopedClass2(target=es5).types | 51 + ...coratedBlockScopedClass3(target=es2015).js | 59 + ...dBlockScopedClass3(target=es2015).symbols} | 0 ...tedBlockScopedClass3(target=es2015).types} | 0 ...decoratedBlockScopedClass3(target=es5).js} | 0 ...ratedBlockScopedClass3(target=es5).symbols | 53 + ...coratedBlockScopedClass3(target=es5).types | 82 + ...sFunctionBodies(target=es2015).errors.txt} | 0 ...atorChecksFunctionBodies(target=es2015).js | 39 + ...ecksFunctionBodies(target=es2015).symbols} | 0 ...ChecksFunctionBodies(target=es2015).types} | 0 ...hecksFunctionBodies(target=es5).errors.txt | 20 + ...oratorChecksFunctionBodies(target=es5).js} | 0 ...orChecksFunctionBodies(target=es5).symbols | 33 + ...atorChecksFunctionBodies(target=es5).types | 52 + ...eModulesInFunctionBodies(target=es2015).js | 51 + ...esInFunctionBodies(target=es2015).symbols} | 0 ...ulesInFunctionBodies(target=es2015).types} | 0 ...ateModulesInFunctionBodies(target=es5).js} | 0 ...odulesInFunctionBodies(target=es5).symbols | 36 + ...eModulesInFunctionBodies(target=es5).types | 56 + .../decoratorMetadata(target=es2015).js | 59 + ... decoratorMetadata(target=es2015).symbols} | 0 ...=> decoratorMetadata(target=es2015).types} | 0 ...ta.js => decoratorMetadata(target=es5).js} | 0 .../decoratorMetadata(target=es5).symbols | 32 + .../decoratorMetadata(target=es5).types | 37 + ...rMetadata-jsdoc(target=es2015).errors.txt} | 0 .../decoratorMetadata-jsdoc(target=es2015).js | 38 + ...atorMetadata-jsdoc(target=es2015).symbols} | 0 ...oratorMetadata-jsdoc(target=es2015).types} | 0 ...ratorMetadata-jsdoc(target=es5).errors.txt | 22 + ...=> decoratorMetadata-jsdoc(target=es5).js} | 0 ...ecoratorMetadata-jsdoc(target=es5).symbols | 27 + .../decoratorMetadata-jsdoc(target=es5).types | 41 + ...NoReturnTypeAnnotation01(target=es2015).js | 30 + ...rnTypeAnnotation01(target=es2015).symbols} | 0 ...turnTypeAnnotation01(target=es2015).types} | 0 ...thNoReturnTypeAnnotation01(target=es5).js} | 0 ...ReturnTypeAnnotation01(target=es5).symbols | 24 + ...NoReturnTypeAnnotation01(target=es5).types | 28 + ...orMetadataOnInferredType(target=es2015).js | 39 + ...dataOnInferredType(target=es2015).symbols} | 0 ...tadataOnInferredType(target=es2015).types} | 0 ...atorMetadataOnInferredType(target=es5).js} | 0 ...MetadataOnInferredType(target=es5).symbols | 39 + ...orMetadataOnInferredType(target=es5).types | 58 + ...arameterWithImportedType(target=es2015).js | 86 + ...erWithImportedType(target=es2015).symbols} | 0 ...eterWithImportedType(target=es2015).types} | 0 ...tParameterWithImportedType(target=es5).js} | 0 ...ameterWithImportedType(target=es5).symbols | 78 + ...arameterWithImportedType(target=es5).types | 104 + ...adataWithConstructorType(target=es2015).js | 39 + ...ithConstructorType(target=es2015).symbols} | 0 ...aWithConstructorType(target=es2015).types} | 0 ...etadataWithConstructorType(target=es5).js} | 0 ...ataWithConstructorType(target=es5).symbols | 40 + ...adataWithConstructorType(target=es5).types | 58 + ...DeclarationNameCollision(target=es2015).js | 53 + ...ationNameCollision(target=es2015).symbols} | 0 ...arationNameCollision(target=es2015).types} | 0 ...rtDeclarationNameCollision(target=es5).js} | 0 ...clarationNameCollision(target=es5).symbols | 53 + ...DeclarationNameCollision(target=es5).types | 73 + ...eclarationNameCollision2(target=es2015).js | 53 + ...tionNameCollision2(target=es2015).symbols} | 0 ...rationNameCollision2(target=es2015).types} | 0 ...tDeclarationNameCollision2(target=es5).js} | 0 ...larationNameCollision2(target=es5).symbols | 54 + ...eclarationNameCollision2(target=es5).types | 75 + ...eclarationNameCollision3(target=es2015).js | 53 + ...tionNameCollision3(target=es2015).symbols} | 0 ...rationNameCollision3(target=es2015).types} | 0 ...tDeclarationNameCollision3(target=es5).js} | 0 ...larationNameCollision3(target=es5).symbols | 55 + ...eclarationNameCollision3(target=es5).types | 77 + ...nNameCollision4(target=es2015).errors.txt} | 0 ...eclarationNameCollision4(target=es2015).js | 54 + ...tionNameCollision4(target=es2015).symbols} | 0 ...rationNameCollision4(target=es2015).types} | 0 ...ationNameCollision4(target=es5).errors.txt | 27 + ...tDeclarationNameCollision4(target=es5).js} | 0 ...larationNameCollision4(target=es5).symbols | 53 + ...eclarationNameCollision4(target=es5).types | 79 + ...eclarationNameCollision5(target=es2015).js | 52 + ...tionNameCollision5(target=es2015).symbols} | 0 ...rationNameCollision5(target=es2015).types} | 0 ...tDeclarationNameCollision5(target=es5).js} | 0 ...larationNameCollision5(target=es5).symbols | 53 + ...eclarationNameCollision5(target=es5).types | 73 + ...eclarationNameCollision6(target=es2015).js | 52 + ...tionNameCollision6(target=es2015).symbols} | 0 ...rationNameCollision6(target=es2015).types} | 0 ...tDeclarationNameCollision6(target=es5).js} | 0 ...larationNameCollision6(target=es5).symbols | 53 + ...eclarationNameCollision6(target=es5).types | 73 + ...nNameCollision7(target=es2015).errors.txt} | 0 ...eclarationNameCollision7(target=es2015).js | 53 + ...tionNameCollision7(target=es2015).symbols} | 0 ...rationNameCollision7(target=es2015).types} | 0 ...ationNameCollision7(target=es5).errors.txt | 30 + ...tDeclarationNameCollision7(target=es5).js} | 0 ...larationNameCollision7(target=es5).symbols | 53 + ...eclarationNameCollision7(target=es5).types | 79 + ...eclarationNameCollision8(target=es2015).js | 53 + ...tionNameCollision8(target=es2015).symbols} | 0 ...rationNameCollision8(target=es2015).types} | 0 ...tDeclarationNameCollision8(target=es5).js} | 0 ...larationNameCollision8(target=es5).symbols | 55 + ...eclarationNameCollision8(target=es5).types | 77 + ...tadataWithTypeOnlyImport(target=es2015).js | 56 + ...WithTypeOnlyImport(target=es2015).symbols} | 0 ...taWithTypeOnlyImport(target=es2015).types} | 0 ...MetadataWithTypeOnlyImport(target=es5).js} | 0 ...dataWithTypeOnlyImport(target=es5).symbols | 32 + ...tadataWithTypeOnlyImport(target=es5).types | 37 + .../decoratorOnClass1(target=es2015).js | 21 + ... decoratorOnClass1(target=es2015).symbols} | 0 ...=> decoratorOnClass1(target=es2015).types} | 0 ...s1.js => decoratorOnClass1(target=es5).js} | 0 .../decoratorOnClass1(target=es5).symbols | 16 + .../decoratorOnClass1(target=es5).types | 17 + .../decoratorOnClass2(target=es2015).js | 25 + ... decoratorOnClass2(target=es2015).symbols} | 0 ...=> decoratorOnClass2(target=es2015).types} | 0 ...s2.js => decoratorOnClass2(target=es5).js} | 0 .../decoratorOnClass2(target=es5).symbols | 16 + .../decoratorOnClass2(target=es5).types | 17 + .../decoratorOnClass3(target=es2015).js | 26 + ... decoratorOnClass3(target=es2015).symbols} | 0 ...=> decoratorOnClass3(target=es2015).types} | 0 ...s3.js => decoratorOnClass3(target=es5).js} | 0 .../decoratorOnClass3(target=es5).symbols | 17 + .../decoratorOnClass3(target=es5).types | 18 + .../decoratorOnClass4(target=es2015).js | 21 + ... decoratorOnClass4(target=es2015).symbols} | 0 ...=> decoratorOnClass4(target=es2015).types} | 0 ...s4.js => decoratorOnClass4(target=es5).js} | 0 .../decoratorOnClass4(target=es5).symbols | 16 + .../decoratorOnClass4(target=es5).types | 19 + .../decoratorOnClass5(target=es2015).js | 21 + ... decoratorOnClass5(target=es2015).symbols} | 0 ...=> decoratorOnClass5(target=es2015).types} | 0 ...s5.js => decoratorOnClass5(target=es5).js} | 0 .../decoratorOnClass5(target=es5).symbols | 16 + .../decoratorOnClass5(target=es5).types | 19 + ...coratorOnClass8(target=es2015).errors.txt} | 0 .../decoratorOnClass8(target=es2015).js | 21 + ... decoratorOnClass8(target=es2015).symbols} | 0 ...=> decoratorOnClass8(target=es2015).types} | 0 .../decoratorOnClass8(target=es5).errors.txt | 14 + ...s8.js => decoratorOnClass8(target=es5).js} | 0 .../decoratorOnClass8(target=es5).symbols | 15 + .../decoratorOnClass8(target=es5).types | 21 + .../decoratorOnClass9(target=es2015).js | 38 + ... decoratorOnClass9(target=es2015).symbols} | 0 ...=> decoratorOnClass9(target=es2015).types} | 0 ...s9.js => decoratorOnClass9(target=es5).js} | 0 .../decoratorOnClass9(target=es5).symbols | 35 + .../decoratorOnClass9(target=es5).types | 49 + ...ecoratorOnClassAccessor1(target=es2015).js | 22 + ...orOnClassAccessor1(target=es2015).symbols} | 0 ...atorOnClassAccessor1(target=es2015).types} | 0 ... decoratorOnClassAccessor1(target=es5).js} | 0 ...oratorOnClassAccessor1(target=es5).symbols | 21 + ...ecoratorOnClassAccessor1(target=es5).types | 24 + ...ecoratorOnClassAccessor2(target=es2015).js | 22 + ...orOnClassAccessor2(target=es2015).symbols} | 0 ...atorOnClassAccessor2(target=es2015).types} | 0 ... decoratorOnClassAccessor2(target=es5).js} | 0 ...oratorOnClassAccessor2(target=es5).symbols | 21 + ...ecoratorOnClassAccessor2(target=es5).types | 24 + ...nClassAccessor3(target=es2015).errors.txt} | 0 ...ecoratorOnClassAccessor3(target=es2015).js | 22 + ...orOnClassAccessor3(target=es2015).symbols} | 0 ...atorOnClassAccessor3(target=es2015).types} | 0 ...torOnClassAccessor3(target=es5).errors.txt | 11 + ... decoratorOnClassAccessor3(target=es5).js} | 0 ...oratorOnClassAccessor3(target=es5).symbols | 22 + ...ecoratorOnClassAccessor3(target=es5).types | 27 + ...ecoratorOnClassAccessor4(target=es2015).js | 22 + ...orOnClassAccessor4(target=es2015).symbols} | 0 ...atorOnClassAccessor4(target=es2015).types} | 0 ... decoratorOnClassAccessor4(target=es5).js} | 0 ...oratorOnClassAccessor4(target=es5).symbols | 22 + ...ecoratorOnClassAccessor4(target=es5).types | 24 + ...ecoratorOnClassAccessor5(target=es2015).js | 22 + ...orOnClassAccessor5(target=es2015).symbols} | 0 ...atorOnClassAccessor5(target=es2015).types} | 0 ... decoratorOnClassAccessor5(target=es5).js} | 0 ...oratorOnClassAccessor5(target=es5).symbols | 22 + ...ecoratorOnClassAccessor5(target=es5).types | 24 + ...nClassAccessor6(target=es2015).errors.txt} | 0 ...ecoratorOnClassAccessor6(target=es2015).js | 22 + ...orOnClassAccessor6(target=es2015).symbols} | 0 ...atorOnClassAccessor6(target=es2015).types} | 0 ...torOnClassAccessor6(target=es5).errors.txt | 11 + ... decoratorOnClassAccessor6(target=es5).js} | 0 ...oratorOnClassAccessor6(target=es5).symbols | 23 + ...ecoratorOnClassAccessor6(target=es5).types | 27 + ...nClassAccessor7(target=es2015).errors.txt} | 0 ...ecoratorOnClassAccessor7(target=es2015).js | 85 + ...orOnClassAccessor7(target=es2015).symbols} | 0 ...atorOnClassAccessor7(target=es2015).types} | 0 ...torOnClassAccessor7(target=es5).errors.txt | 41 + ... decoratorOnClassAccessor7(target=es5).js} | 0 ...oratorOnClassAccessor7(target=es5).symbols | 98 + ...ecoratorOnClassAccessor7(target=es5).types | 140 + ...ecoratorOnClassAccessor8(target=es2015).js | 95 + ...orOnClassAccessor8(target=es2015).symbols} | 0 ...atorOnClassAccessor8(target=es2015).types} | 0 ... decoratorOnClassAccessor8(target=es5).js} | 0 ...oratorOnClassAccessor8(target=es5).symbols | 78 + ...ecoratorOnClassAccessor8(target=es5).types | 113 + ...assConstructor1(target=es2015).errors.txt} | 0 ...ratorOnClassConstructor1(target=es2015).js | 13 + ...nClassConstructor1(target=es2015).symbols} | 0 ...rOnClassConstructor1(target=es2015).types} | 0 ...OnClassConstructor1(target=es5).errors.txt | 11 + ...coratorOnClassConstructor1(target=es5).js} | 0 ...torOnClassConstructor1(target=es5).symbols | 20 + ...ratorOnClassConstructor1(target=es5).types | 21 + ...assConstructor2(target=es2015).errors.txt} | 0 ...ratorOnClassConstructor2(target=es2015).js | 48 + ...nClassConstructor2(target=es2015).symbols} | 0 ...rOnClassConstructor2(target=es2015).types} | 0 ...OnClassConstructor2(target=es5).errors.txt | 20 + ...coratorOnClassConstructor2(target=es5).js} | 0 ...torOnClassConstructor2(target=es5).symbols | 32 + ...ratorOnClassConstructor2(target=es5).types | 45 + ...ratorOnClassConstructor3(target=es2015).js | 51 + ...nClassConstructor3(target=es2015).symbols} | 0 ...rOnClassConstructor3(target=es2015).types} | 0 ...coratorOnClassConstructor3(target=es5).js} | 0 ...torOnClassConstructor3(target=es5).symbols | 33 + ...ratorOnClassConstructor3(target=es5).types | 45 + ...ratorOnClassConstructor4(target=es2015).js | 45 + ...nClassConstructor4(target=es2015).symbols} | 0 ...rOnClassConstructor4(target=es2015).types} | 0 ...coratorOnClassConstructor4(target=es5).js} | 0 ...torOnClassConstructor4(target=es5).symbols | 30 + ...ratorOnClassConstructor4(target=es5).types | 35 + ...assConstructorParameter1(target=es2015).js | 25 + ...structorParameter1(target=es2015).symbols} | 0 ...onstructorParameter1(target=es2015).types} | 0 ...ClassConstructorParameter1(target=es5).js} | 0 ...sConstructorParameter1(target=es5).symbols | 17 + ...assConstructorParameter1(target=es5).types | 23 + ...uctorParameter4(target=es2015).errors.txt} | 0 ...assConstructorParameter4(target=es2015).js | 25 + ...structorParameter4(target=es2015).symbols} | 0 ...onstructorParameter4(target=es2015).types} | 0 ...nstructorParameter4(target=es5).errors.txt | 11 + ...ClassConstructorParameter4(target=es5).js} | 0 ...sConstructorParameter4(target=es5).symbols | 18 + ...assConstructorParameter4(target=es5).types | 25 + .../decoratorOnClassMethod1(target=es2015).js | 22 + ...atorOnClassMethod1(target=es2015).symbols} | 0 ...oratorOnClassMethod1(target=es2015).types} | 0 ...=> decoratorOnClassMethod1(target=es5).js} | 0 ...ecoratorOnClassMethod1(target=es5).symbols | 21 + .../decoratorOnClassMethod1(target=es5).types | 22 + ...OnClassMethod10(target=es2015).errors.txt} | 0 ...decoratorOnClassMethod10(target=es2015).js | 22 + ...torOnClassMethod10(target=es2015).symbols} | 0 ...ratorOnClassMethod10(target=es2015).types} | 0 ...atorOnClassMethod10(target=es5).errors.txt | 15 + ...> decoratorOnClassMethod10(target=es5).js} | 0 ...coratorOnClassMethod10(target=es5).symbols | 16 + ...decoratorOnClassMethod10(target=es5).types | 21 + ...OnClassMethod11(target=es2015).errors.txt} | 0 ...decoratorOnClassMethod11(target=es2015).js | 29 + ...torOnClassMethod11(target=es2015).symbols} | 0 ...ratorOnClassMethod11(target=es2015).types} | 0 ...atorOnClassMethod11(target=es5).errors.txt | 14 + ...> decoratorOnClassMethod11(target=es5).js} | 0 ...coratorOnClassMethod11(target=es5).symbols | 20 + ...decoratorOnClassMethod11(target=es5).types | 34 + ...OnClassMethod12(target=es2015).errors.txt} | 0 ...decoratorOnClassMethod12(target=es2015).js | 32 + ...torOnClassMethod12(target=es2015).symbols} | 0 ...ratorOnClassMethod12(target=es2015).types} | 0 ...atorOnClassMethod12(target=es5).errors.txt | 15 + ...> decoratorOnClassMethod12(target=es5).js} | 0 ...coratorOnClassMethod12(target=es5).symbols | 24 + ...decoratorOnClassMethod12(target=es5).types | 40 + .../decoratorOnClassMethod2(target=es2015).js | 22 + ...atorOnClassMethod2(target=es2015).symbols} | 0 ...oratorOnClassMethod2(target=es2015).types} | 0 ...=> decoratorOnClassMethod2(target=es5).js} | 0 ...ecoratorOnClassMethod2(target=es5).symbols | 21 + .../decoratorOnClassMethod2(target=es5).types | 22 + ...rOnClassMethod3(target=es2015).errors.txt} | 0 .../decoratorOnClassMethod3(target=es2015).js | 22 + ...atorOnClassMethod3(target=es2015).symbols} | 0 ...oratorOnClassMethod3(target=es2015).types} | 0 ...ratorOnClassMethod3(target=es5).errors.txt | 11 + ...=> decoratorOnClassMethod3(target=es5).js} | 0 ...ecoratorOnClassMethod3(target=es5).symbols | 22 + .../decoratorOnClassMethod3(target=es5).types | 25 + ...rOnClassMethod8(target=es2015).errors.txt} | 0 .../decoratorOnClassMethod8(target=es2015).js | 22 + ...atorOnClassMethod8(target=es2015).symbols} | 0 ...oratorOnClassMethod8(target=es2015).types} | 0 ...ratorOnClassMethod8(target=es5).errors.txt | 16 + ...=> decoratorOnClassMethod8(target=es5).js} | 0 ...ecoratorOnClassMethod8(target=es5).symbols | 17 + .../decoratorOnClassMethod8(target=es5).types | 19 + ...MethodOverload1(target=es2015).errors.txt} | 0 ...orOnClassMethodOverload1(target=es2015).js | 15 + ...assMethodOverload1(target=es2015).symbols} | 0 ...ClassMethodOverload1(target=es2015).types} | 0 ...lassMethodOverload1(target=es5).errors.txt | 13 + ...atorOnClassMethodOverload1(target=es5).js} | 0 ...OnClassMethodOverload1(target=es5).symbols | 26 + ...orOnClassMethodOverload1(target=es5).types | 29 + ...orOnClassMethodOverload2(target=es2015).js | 24 + ...assMethodOverload2(target=es2015).symbols} | 0 ...ClassMethodOverload2(target=es2015).types} | 0 ...atorOnClassMethodOverload2(target=es5).js} | 0 ...OnClassMethodOverload2(target=es5).symbols | 26 + ...orOnClassMethodOverload2(target=es5).types | 28 + ...rOnClassMethodParameter1(target=es2015).js | 25 + ...ssMethodParameter1(target=es2015).symbols} | 0 ...lassMethodParameter1(target=es2015).types} | 0 ...torOnClassMethodParameter1(target=es5).js} | 0 ...nClassMethodParameter1(target=es5).symbols | 18 + ...rOnClassMethodParameter1(target=es5).types | 25 + ...rOnClassMethodParameter2(target=es2015).js | 25 + ...ssMethodParameter2(target=es2015).symbols} | 0 ...lassMethodParameter2(target=es2015).types} | 0 ...torOnClassMethodParameter2(target=es5).js} | 0 ...nClassMethodParameter2(target=es5).symbols | 20 + ...rOnClassMethodParameter2(target=es5).types | 27 + ...odThisParameter(target=es2015).errors.txt} | 0 ...ClassMethodThisParameter(target=es2015).js | 32 + ...ethodThisParameter(target=es2015).symbols} | 0 ...sMethodThisParameter(target=es2015).types} | 0 ...MethodThisParameter(target=es5).errors.txt | 21 + ...OnClassMethodThisParameter(target=es5).js} | 0 ...assMethodThisParameter(target=es5).symbols | 32 + ...ClassMethodThisParameter(target=es5).types | 42 + ...ecoratorOnClassProperty1(target=es2015).js | 21 + ...orOnClassProperty1(target=es2015).symbols} | 0 ...atorOnClassProperty1(target=es2015).types} | 0 ... decoratorOnClassProperty1(target=es5).js} | 0 ...oratorOnClassProperty1(target=es5).symbols | 15 + ...ecoratorOnClassProperty1(target=es5).types | 19 + ...coratorOnClassProperty10(target=es2015).js | 21 + ...rOnClassProperty10(target=es2015).symbols} | 0 ...torOnClassProperty10(target=es2015).types} | 0 ...decoratorOnClassProperty10(target=es5).js} | 0 ...ratorOnClassProperty10(target=es5).symbols | 16 + ...coratorOnClassProperty10(target=es5).types | 21 + ...ClassProperty11(target=es2015).errors.txt} | 0 ...coratorOnClassProperty11(target=es2015).js | 21 + ...rOnClassProperty11(target=es2015).symbols} | 0 ...torOnClassProperty11(target=es2015).types} | 0 ...orOnClassProperty11(target=es5).errors.txt | 11 + ...decoratorOnClassProperty11(target=es5).js} | 0 ...ratorOnClassProperty11(target=es5).symbols | 16 + ...coratorOnClassProperty11(target=es5).types | 21 + ...coratorOnClassProperty12(target=es2015).js | 27 + ...rOnClassProperty12(target=es2015).symbols} | 0 ...torOnClassProperty12(target=es2015).types} | 0 ...decoratorOnClassProperty12(target=es5).js} | 0 ...ratorOnClassProperty12(target=es5).symbols | 19 + ...coratorOnClassProperty12(target=es5).types | 25 + ...ecoratorOnClassProperty2(target=es2015).js | 21 + ...orOnClassProperty2(target=es2015).symbols} | 0 ...atorOnClassProperty2(target=es2015).types} | 0 ... decoratorOnClassProperty2(target=es5).js} | 0 ...oratorOnClassProperty2(target=es5).symbols | 15 + ...ecoratorOnClassProperty2(target=es5).types | 19 + ...nClassProperty3(target=es2015).errors.txt} | 0 ...ecoratorOnClassProperty3(target=es2015).js | 21 + ...orOnClassProperty3(target=es2015).symbols} | 0 ...atorOnClassProperty3(target=es2015).types} | 0 ...torOnClassProperty3(target=es5).errors.txt | 11 + ... decoratorOnClassProperty3(target=es5).js} | 0 ...oratorOnClassProperty3(target=es5).symbols | 16 + ...ecoratorOnClassProperty3(target=es5).types | 23 + ...nClassProperty6(target=es2015).errors.txt} | 0 ...ecoratorOnClassProperty6(target=es2015).js | 21 + ...orOnClassProperty6(target=es2015).symbols} | 0 ...atorOnClassProperty6(target=es2015).types} | 0 ...torOnClassProperty6(target=es5).errors.txt | 13 + ... decoratorOnClassProperty6(target=es5).js} | 0 ...oratorOnClassProperty6(target=es5).symbols | 15 + ...ecoratorOnClassProperty6(target=es5).types | 19 + ...nClassProperty7(target=es2015).errors.txt} | 0 ...ecoratorOnClassProperty7(target=es2015).js | 21 + ...orOnClassProperty7(target=es2015).symbols} | 0 ...atorOnClassProperty7(target=es2015).types} | 0 ...torOnClassProperty7(target=es5).errors.txt | 14 + ... decoratorOnClassProperty7(target=es5).js} | 0 ...oratorOnClassProperty7(target=es5).symbols | 17 + ...ecoratorOnClassProperty7(target=es5).types | 23 + ...gativeLiteralTypeNoCrash(target=es2015).js | 29 + ...LiteralTypeNoCrash(target=es2015).symbols} | 0 ...veLiteralTypeNoCrash(target=es2015).types} | 0 ...NegativeLiteralTypeNoCrash(target=es5).js} | 0 ...tiveLiteralTypeNoCrash(target=es5).symbols | 17 + ...gativeLiteralTypeNoCrash(target=es5).types | 29 + ...ultExportWithOverloads01(target=es2015).js | 14 + ...ortWithOverloads01(target=es2015).symbols} | 0 ...xportWithOverloads01(target=es2015).types} | 0 ...faultExportWithOverloads01(target=es5).js} | 0 ...tExportWithOverloads01(target=es5).symbols | 14 + ...ultExportWithOverloads01(target=es5).types | 19 + ...tsCannotMerge01(target=es2015).errors.txt} | 0 ...aultExportsCannotMerge01(target=es2015).js | 54 + ...portsCannotMerge01(target=es2015).symbols} | 0 ...ExportsCannotMerge01(target=es2015).types} | 0 ...xportsCannotMerge01(target=es5).errors.txt | 39 + ...efaultExportsCannotMerge01(target=es5).js} | 0 ...ltExportsCannotMerge01(target=es5).symbols | 55 + ...aultExportsCannotMerge01(target=es5).types | 79 + ...tsCannotMerge02(target=es2015).errors.txt} | 0 ...aultExportsCannotMerge02(target=es2015).js | 44 + ...portsCannotMerge02(target=es2015).symbols} | 0 ...ExportsCannotMerge02(target=es2015).types} | 0 ...xportsCannotMerge02(target=es5).errors.txt | 34 + ...efaultExportsCannotMerge02(target=es5).js} | 0 ...ltExportsCannotMerge02(target=es5).symbols | 50 + ...aultExportsCannotMerge02(target=es5).types | 70 + ...tsCannotMerge03(target=es2015).errors.txt} | 0 ...aultExportsCannotMerge03(target=es2015).js | 44 + ...portsCannotMerge03(target=es2015).symbols} | 0 ...ExportsCannotMerge03(target=es2015).types} | 0 ...xportsCannotMerge03(target=es5).errors.txt | 34 + ...efaultExportsCannotMerge03(target=es5).js} | 0 ...ltExportsCannotMerge03(target=es5).symbols | 50 + ...aultExportsCannotMerge03(target=es5).types | 70 + ...tsCannotMerge04(target=es2015).errors.txt} | 0 ...ultExportsCannotMerge04(target=es2015).js} | 0 ...portsCannotMerge04(target=es2015).symbols} | 0 ...ExportsCannotMerge04(target=es2015).types} | 0 ...xportsCannotMerge04(target=es5).errors.txt | 27 + ...defaultExportsCannotMerge04(target=es5).js | 24 + ...ltExportsCannotMerge04(target=es5).symbols | 21 + ...aultExportsCannotMerge04(target=es5).types | 22 + ...torWithExplicitReturns01(target=es2015).js | 67 + ...ithExplicitReturns01(target=es2015).js.map | 3 + ...icitReturns01(target=es2015).sourcemap.txt | 439 + ...hExplicitReturns01(target=es2015).symbols} | 0 ...ithExplicitReturns01(target=es2015).types} | 0 ...uctorWithExplicitReturns01(target=es5).js} | 0 ...rWithExplicitReturns01(target=es5).js.map} | 0 ...plicitReturns01(target=es5).sourcemap.txt} | 0 ...rWithExplicitReturns01(target=es5).symbols | 67 + ...torWithExplicitReturns01(target=es5).types | 121 + ...verridesProtectedMembers(target=es2015).js | 60 + ...esProtectedMembers(target=es2015).symbols} | 0 ...idesProtectedMembers(target=es2015).types} | 0 ...sOverridesProtectedMembers(target=es5).js} | 0 ...rridesProtectedMembers(target=es5).symbols | 123 + ...verridesProtectedMembers(target=es5).types | 191 + ...erridesProtectedMembers2(target=es2015).js | 107 + ...sProtectedMembers2(target=es2015).symbols} | 0 ...desProtectedMembers2(target=es2015).types} | 0 ...OverridesProtectedMembers2(target=es5).js} | 0 ...ridesProtectedMembers2(target=es5).symbols | 230 + ...erridesProtectedMembers2(target=es5).types | 373 + ...otectedMembers3(target=es2015).errors.txt} | 0 ...erridesProtectedMembers3(target=es2015).js | 124 + ...sProtectedMembers3(target=es2015).symbols} | 0 ...desProtectedMembers3(target=es2015).types} | 0 ...esProtectedMembers3(target=es5).errors.txt | 123 + ...OverridesProtectedMembers3(target=es5).js} | 0 ...ridesProtectedMembers3(target=es5).symbols | 223 + ...erridesProtectedMembers3(target=es5).types | 363 + ...sSuperProperties(target=es2015).errors.txt | 542 + ...ivedClassSuperProperties(target=es2015).js | 788 + ...assSuperProperties(target=es2015).symbols} | 0 ...ClassSuperProperties(target=es2015).types} | 0 ...assSuperProperties(target=es5).errors.txt} | 0 ...erivedClassSuperProperties(target=es5).js} | 0 ...edClassSuperProperties(target=es5).symbols | 851 + ...ivedClassSuperProperties(target=es5).types | 1490 + ...atementPosition(target=es2015).errors.txt} | 0 ...ssSuperStatementPosition(target=es2015).js | 185 + ...rStatementPosition(target=es2015).symbols} | 0 ...perStatementPosition(target=es2015).types} | 0 ...erStatementPosition(target=es5).errors.txt | 120 + ...lassSuperStatementPosition(target=es5).js} | 0 ...SuperStatementPosition(target=es5).symbols | 223 + ...ssSuperStatementPosition(target=es5).types | 384 + ...otectedInstance(target=es2015).errors.txt} | 0 ...adowingProtectedInstance(target=es2015).js | 41 + ...gProtectedInstance(target=es2015).symbols} | 0 ...ingProtectedInstance(target=es2015).types} | 0 ...ngProtectedInstance(target=es5).errors.txt | 29 + ...ShadowingProtectedInstance(target=es5).js} | 0 ...owingProtectedInstance(target=es5).symbols | 45 + ...adowingProtectedInstance(target=es5).types | 66 + ...ProtectedStatic(target=es2015).errors.txt} | 0 ...ShadowingProtectedStatic(target=es2015).js | 40 + ...ingProtectedStatic(target=es2015).symbols} | 0 ...owingProtectedStatic(target=es2015).types} | 0 ...wingProtectedStatic(target=es5).errors.txt | 28 + ...icShadowingProtectedStatic(target=es5).js} | 0 ...adowingProtectedStatic(target=es5).symbols | 44 + ...ShadowingProtectedStatic(target=es5).types | 65 + ...rnAndAssignment4(target=es2015).errors.txt | 12 + ...ingPatternAndAssignment4(target=es2015).js | 14 + ...ternAndAssignment4(target=es2015).symbols} | 0 ...atternAndAssignment4(target=es2015).types} | 0 ...ternAndAssignment4(target=es5).errors.txt} | 0 ...ndingPatternAndAssignment4(target=es5).js} | 0 ...gPatternAndAssignment4(target=es5).symbols | 13 + ...ingPatternAndAssignment4(target=es5).types | 16 + ...ion3ES5iterable(target=es2015).errors.txt} | 0 ...rDeclaration3ES5iterable(target=es2015).js | 81 + ...ration3ES5iterable(target=es2015).symbols} | 0 ...laration3ES5iterable(target=es2015).types} | 0 ...aration3ES5iterable(target=es5).errors.txt | 61 + ...terDeclaration3ES5iterable(target=es5).js} | 0 ...eclaration3ES5iterable(target=es5).symbols | 146 + ...rDeclaration3ES5iterable(target=es5).types | 313 + ...ParameterDeclaration7ES5(target=es2015).js | 22 + ...terDeclaration7ES5(target=es2015).symbols} | 0 ...ameterDeclaration7ES5(target=es2015).types | 43 + ...ngParameterDeclaration7ES5(target=es5).js} | 0 ...rameterDeclaration7ES5(target=es5).symbols | 34 + ...arameterDeclaration7ES5(target=es5).types} | 0 ...rDeclaration7ES5iterable(target=es2015).js | 22 + ...ration7ES5iterable(target=es2015).symbols} | 0 ...claration7ES5iterable(target=es2015).types | 43 + ...terDeclaration7ES5iterable(target=es5).js} | 0 ...eclaration7ES5iterable(target=es5).symbols | 34 + ...Declaration7ES5iterable(target=es5).types} | 0 ...ngReassignsRightHandSide(target=es2015).js | 19 + ...signsRightHandSide(target=es2015).symbols} | 0 ...assignsRightHandSide(target=es2015).types} | 0 ...ringReassignsRightHandSide(target=es5).js} | 0 ...ReassignsRightHandSide(target=es5).symbols | 23 + ...ngReassignsRightHandSide(target=es5).types | 37 + ...AssertionsES5_1(target=es2015).errors.txt} | 0 ...uringTypeAssertionsES5_1(target=es2015).js | 7 + ...ypeAssertionsES5_1(target=es2015).symbols} | 0 ...gTypeAssertionsES5_1(target=es2015).types} | 0 ...TypeAssertionsES5_1(target=es5).errors.txt | 7 + ...cturingTypeAssertionsES5_1(target=es5).js} | 0 ...ingTypeAssertionsES5_1(target=es5).symbols | 6 + ...uringTypeAssertionsES5_1(target=es5).types | 13 + ...AssertionsES5_2(target=es2015).errors.txt} | 0 ...uringTypeAssertionsES5_2(target=es2015).js | 7 + ...ypeAssertionsES5_2(target=es2015).symbols} | 0 ...gTypeAssertionsES5_2(target=es2015).types} | 0 ...TypeAssertionsES5_2(target=es5).errors.txt | 7 + ...cturingTypeAssertionsES5_2(target=es5).js} | 0 ...ingTypeAssertionsES5_2(target=es5).symbols | 6 + ...uringTypeAssertionsES5_2(target=es5).types | 15 + ...AssertionsES5_3(target=es2015).errors.txt} | 0 ...uringTypeAssertionsES5_3(target=es2015).js | 7 + ...ypeAssertionsES5_3(target=es2015).symbols} | 0 ...gTypeAssertionsES5_3(target=es2015).types} | 0 ...TypeAssertionsES5_3(target=es5).errors.txt | 7 + ...cturingTypeAssertionsES5_3(target=es5).js} | 0 ...ingTypeAssertionsES5_3(target=es5).symbols | 6 + ...uringTypeAssertionsES5_3(target=es5).types | 15 + ...AssertionsES5_4(target=es2015).errors.txt} | 0 ...uringTypeAssertionsES5_4(target=es2015).js | 7 + ...ypeAssertionsES5_4(target=es2015).symbols} | 0 ...gTypeAssertionsES5_4(target=es2015).types} | 0 ...TypeAssertionsES5_4(target=es5).errors.txt | 7 + ...cturingTypeAssertionsES5_4(target=es5).js} | 0 ...ingTypeAssertionsES5_4(target=es5).symbols | 6 + ...uringTypeAssertionsES5_4(target=es5).types | 15 + ...uringTypeAssertionsES5_5(target=es2015).js | 7 + ...ypeAssertionsES5_5(target=es2015).symbols} | 0 ...gTypeAssertionsES5_5(target=es2015).types} | 0 ...cturingTypeAssertionsES5_5(target=es5).js} | 0 ...ingTypeAssertionsES5_5(target=es5).symbols | 6 + ...uringTypeAssertionsES5_5(target=es5).types | 10 + ...AssertionsES5_6(target=es2015).errors.txt} | 0 ...uringTypeAssertionsES5_6(target=es2015).js | 7 + ...ypeAssertionsES5_6(target=es2015).symbols} | 0 ...gTypeAssertionsES5_6(target=es2015).types} | 0 ...TypeAssertionsES5_6(target=es5).errors.txt | 7 + ...cturingTypeAssertionsES5_6(target=es5).js} | 0 ...ingTypeAssertionsES5_6(target=es5).symbols | 6 + ...uringTypeAssertionsES5_6(target=es5).types | 13 + ...AssertionsES5_7(target=es2015).errors.txt} | 0 ...uringTypeAssertionsES5_7(target=es2015).js | 7 + ...ypeAssertionsES5_7(target=es2015).symbols} | 0 ...gTypeAssertionsES5_7(target=es2015).types} | 0 ...TypeAssertionsES5_7(target=es5).errors.txt | 7 + ...cturingTypeAssertionsES5_7(target=es5).js} | 0 ...ingTypeAssertionsES5_7(target=es5).symbols | 6 + ...uringTypeAssertionsES5_7(target=es5).types | 15 + ...divergentAccessorsTypes3(target=es2015).js | 76 + ...entAccessorsTypes3(target=es2015).symbols} | 0 ...rgentAccessorsTypes3(target=es2015).types} | 0 ...> divergentAccessorsTypes3(target=es5).js} | 0 ...vergentAccessorsTypes3(target=es5).symbols | 118 + ...divergentAccessorsTypes3(target=es5).types | 225 + ...AccessorsTypes4(target=es2015).errors.txt} | 0 ...divergentAccessorsTypes4(target=es2015).js | 55 + ...entAccessorsTypes4(target=es2015).symbols} | 0 ...rgentAccessorsTypes4(target=es2015).types} | 0 ...gentAccessorsTypes4(target=es5).errors.txt | 36 + ...> divergentAccessorsTypes4(target=es5).js} | 0 ...vergentAccessorsTypes4(target=es5).symbols | 75 + ...divergentAccessorsTypes4(target=es5).types | 126 + ...AccessorsTypes5(target=es2015).errors.txt} | 0 ...divergentAccessorsTypes5(target=es2015).js | 66 + ...entAccessorsTypes5(target=es2015).symbols} | 0 ...rgentAccessorsTypes5(target=es2015).types} | 0 ...gentAccessorsTypes5(target=es5).errors.txt | 46 + ...> divergentAccessorsTypes5(target=es5).js} | 0 ...vergentAccessorsTypes5(target=es5).symbols | 85 + ...divergentAccessorsTypes5(target=es5).types | 140 + ...oTypeParameters(target=es2015).errors.txt} | 0 ...nabilityToTypeParameters(target=es2015).js | 32 + ...tyToTypeParameters(target=es2015).symbols} | 0 ...lityToTypeParameters(target=es2015).types} | 0 ...ityToTypeParameters(target=es5).errors.txt | 20 + ...ignabilityToTypeParameters(target=es5).js} | 0 ...bilityToTypeParameters(target=es5).symbols | 38 + ...nabilityToTypeParameters(target=es5).types | 42 + ...levelLetConst12(target=es2015).errors.txt} | 0 .../downlevelLetConst12(target=es2015).js | 23 + ...ownlevelLetConst12(target=es2015).symbols} | 0 ... downlevelLetConst12(target=es2015).types} | 0 ...downlevelLetConst12(target=es5).errors.txt | 19 + ....js => downlevelLetConst12(target=es5).js} | 0 .../downlevelLetConst12(target=es5).symbols | 27 + .../downlevelLetConst12(target=es5).types | 54 + ... => downlevelLetConst13(target=es2015).js} | 0 ...ownlevelLetConst13(target=es2015).symbols} | 0 ... downlevelLetConst13(target=es2015).types} | 0 .../downlevelLetConst13(target=es5).js | 42 + .../downlevelLetConst13(target=es5).symbols | 53 + .../downlevelLetConst13(target=es5).types | 117 + .../downlevelLetConst14(target=es2015).js | 109 + ...ownlevelLetConst14(target=es2015).symbols} | 0 ... downlevelLetConst14(target=es2015).types} | 0 ....js => downlevelLetConst14(target=es5).js} | 0 .../downlevelLetConst14(target=es5).symbols | 153 + .../downlevelLetConst14(target=es5).types | 284 + .../downlevelLetConst15(target=es2015).js | 109 + ...ownlevelLetConst15(target=es2015).symbols} | 0 ... downlevelLetConst15(target=es2015).types} | 0 ....js => downlevelLetConst15(target=es5).js} | 0 .../downlevelLetConst15(target=es5).symbols | 157 + .../downlevelLetConst15(target=es5).types | 296 + ...nlevelLetConst16(target=es2015).errors.txt | 248 + .../downlevelLetConst16(target=es2015).js | 435 + ...ownlevelLetConst16(target=es2015).symbols} | 0 ... downlevelLetConst16(target=es2015).types} | 0 ...ownlevelLetConst16(target=es5).errors.txt} | 0 ....js => downlevelLetConst16(target=es5).js} | 0 .../downlevelLetConst16(target=es5).symbols | 579 + .../downlevelLetConst16(target=es5).types | 1128 + .../downlevelLetConst17(target=es2015).js | 124 + ...ownlevelLetConst17(target=es2015).symbols} | 0 ... downlevelLetConst17(target=es2015).types} | 0 ....js => downlevelLetConst17(target=es5).js} | 0 .../downlevelLetConst17(target=es5).symbols | 136 + .../downlevelLetConst17(target=es5).types | 220 + .../downlevelLetConst18(target=es2015).js | 59 + ...ownlevelLetConst18(target=es2015).symbols} | 0 .../downlevelLetConst18(target=es2015).types | 93 + ...ownlevelLetConst18(target=es5).errors.txt} | 0 ....js => downlevelLetConst18(target=es5).js} | 0 .../downlevelLetConst18(target=es5).symbols | 60 + ... => downlevelLetConst18(target=es5).types} | 0 ...terDeclaration1(target=es2015).errors.txt} | 0 ...tInParameterDeclaration1(target=es2015).js | 21 + ...ameterDeclaration1(target=es2015).symbols} | 0 ...arameterDeclaration1(target=es2015).types} | 0 ...rameterDeclaration1(target=es5).errors.txt | 74 + ...entInParameterDeclaration1(target=es5).js} | 0 ...nParameterDeclaration1(target=es5).symbols | 54 + ...tInParameterDeclaration1(target=es5).types | 93 + ...terDeclaration2(target=es2015).errors.txt} | 0 ...tInParameterDeclaration2(target=es2015).js | 23 + ...ameterDeclaration2(target=es2015).symbols} | 0 ...arameterDeclaration2(target=es2015).types} | 0 ...rameterDeclaration2(target=es5).errors.txt | 75 + ...entInParameterDeclaration2(target=es5).js} | 0 ...nParameterDeclaration2(target=es5).symbols | 55 + ...tInParameterDeclaration2(target=es5).types | 97 + ...LiteralProperty(target=es2015).errors.txt} | 0 ...teObjectLiteralProperty(target=es2015).js} | 0 ...ectLiteralProperty(target=es2015).symbols} | 0 ...bjectLiteralProperty(target=es2015).types} | 0 ...jectLiteralProperty(target=es5).errors.txt | 45 + ...licateObjectLiteralProperty(target=es5).js | 38 + ...eObjectLiteralProperty(target=es5).symbols | 45 + ...ateObjectLiteralProperty(target=es5).types | 80 + ...hNestedThis_es5(target=es2015).errors.txt} | 0 ...ImportWithNestedThis_es5(target=es2015).js | 73 + ...WithNestedThis_es5(target=es2015).symbols} | 0 ...rtWithNestedThis_es5(target=es2015).types} | 0 ...tWithNestedThis_es5(target=es5).errors.txt | 16 + ...icImportWithNestedThis_es5(target=es5).js} | 0 ...portWithNestedThis_es5(target=es5).symbols | 29 + ...ImportWithNestedThis_es5(target=es5).types | 48 + ...essionInArrowFunctionES5(target=es2015).js | 9 + ...InArrowFunctionES5(target=es2015).symbols} | 0 ...onInArrowFunctionES5(target=es2015).types} | 0 ...pressionInArrowFunctionES5(target=es5).js} | 0 ...sionInArrowFunctionES5(target=es5).symbols | 18 + ...essionInArrowFunctionES5(target=es5).types | 52 + .../emitArrowFunction(target=es2015).js | 19 + ... emitArrowFunction(target=es2015).symbols} | 0 ...=> emitArrowFunction(target=es2015).types} | 0 ...on.js => emitArrowFunction(target=es5).js} | 0 .../emitArrowFunction(target=es5).symbols | 33 + .../emitArrowFunction(target=es5).types | 71 + .../emitArrowFunctionAsIs(target=es2015).js | 12 + ...tArrowFunctionAsIs(target=es2015).symbols} | 0 ...mitArrowFunctionAsIs(target=es2015).types} | 0 ...s => emitArrowFunctionAsIs(target=es5).js} | 0 .../emitArrowFunctionAsIs(target=es5).symbols | 16 + .../emitArrowFunctionAsIs(target=es5).types | 25 + ...onThisCapturing(target=es2015).errors.txt} | 0 ...rowFunctionThisCapturing(target=es2015).js | 30 + ...ctionThisCapturing(target=es2015).symbols} | 0 ...unctionThisCapturing(target=es2015).types} | 0 ...nctionThisCapturing(target=es5).errors.txt | 20 + ...ArrowFunctionThisCapturing(target=es5).js} | 0 ...wFunctionThisCapturing(target=es5).symbols | 33 + ...rowFunctionThisCapturing(target=es5).types | 76 + ...UsingArguments01(target=es2015).errors.txt | 40 + ...tionWhenUsingArguments01(target=es2015).js | 61 + ...henUsingArguments01(target=es2015).symbols | 62 + ...nWhenUsingArguments01(target=es2015).types | 125 + ...enUsingArguments01(target=es5).errors.txt} | 0 ...nctionWhenUsingArguments01(target=es5).js} | 0 ...nWhenUsingArguments01(target=es5).symbols} | 0 ...ionWhenUsingArguments01(target=es5).types} | 0 ...UsingArguments02(target=es2015).errors.txt | 7 + ...tionWhenUsingArguments02(target=es2015).js | 7 + ...henUsingArguments02(target=es2015).symbols | 6 + ...nWhenUsingArguments02(target=es2015).types | 11 + ...enUsingArguments02(target=es5).errors.txt} | 0 ...nctionWhenUsingArguments02(target=es5).js} | 0 ...nWhenUsingArguments02(target=es5).symbols} | 0 ...ionWhenUsingArguments02(target=es5).types} | 0 ...tionWhenUsingArguments03(target=es2015).js | 9 + ...henUsingArguments03(target=es2015).symbols | 10 + ...nWhenUsingArguments03(target=es2015).types | 13 + ...enUsingArguments03(target=es5).errors.txt} | 0 ...nctionWhenUsingArguments03(target=es5).js} | 0 ...nWhenUsingArguments03(target=es5).symbols} | 0 ...ionWhenUsingArguments03(target=es5).types} | 0 ...tionWhenUsingArguments04(target=es2015).js | 13 + ...henUsingArguments04(target=es2015).symbols | 13 + ...nWhenUsingArguments04(target=es2015).types | 17 + ...enUsingArguments04(target=es5).errors.txt} | 0 ...nctionWhenUsingArguments04(target=es5).js} | 0 ...nWhenUsingArguments04(target=es5).symbols} | 0 ...ionWhenUsingArguments04(target=es5).types} | 0 ...tionWhenUsingArguments05(target=es2015).js | 11 + ...henUsingArguments05(target=es2015).symbols | 11 + ...nWhenUsingArguments05(target=es2015).types | 15 + ...enUsingArguments05(target=es5).errors.txt} | 0 ...nctionWhenUsingArguments05(target=es5).js} | 0 ...nWhenUsingArguments05(target=es5).symbols} | 0 ...ionWhenUsingArguments05(target=es5).types} | 0 ...tionWhenUsingArguments06(target=es2015).js | 11 + ...henUsingArguments06(target=es2015).symbols | 11 + ...nWhenUsingArguments06(target=es2015).types | 17 + ...enUsingArguments06(target=es5).errors.txt} | 0 ...nctionWhenUsingArguments06(target=es5).js} | 0 ...nWhenUsingArguments06(target=es5).symbols} | 0 ...ionWhenUsingArguments06(target=es5).types} | 0 ...tionWhenUsingArguments07(target=es2015).js | 11 + ...henUsingArguments07(target=es2015).symbols | 12 + ...nWhenUsingArguments07(target=es2015).types | 18 + ...enUsingArguments07(target=es5).errors.txt} | 0 ...nctionWhenUsingArguments07(target=es5).js} | 0 ...nWhenUsingArguments07(target=es5).symbols} | 0 ...ionWhenUsingArguments07(target=es5).types} | 0 ...tionWhenUsingArguments08(target=es2015).js | 11 + ...enUsingArguments08(target=es2015).symbols} | 0 ...WhenUsingArguments08(target=es2015).types} | 0 ...nctionWhenUsingArguments08(target=es5).js} | 0 ...onWhenUsingArguments08(target=es5).symbols | 12 + ...tionWhenUsingArguments08(target=es5).types | 18 + ...tionWhenUsingArguments09(target=es2015).js | 11 + ...enUsingArguments09(target=es2015).symbols} | 0 ...nWhenUsingArguments09(target=es2015).types | 18 + ...enUsingArguments09(target=es5).errors.txt} | 0 ...nctionWhenUsingArguments09(target=es5).js} | 0 ...onWhenUsingArguments09(target=es5).symbols | 11 + ...ionWhenUsingArguments09(target=es5).types} | 0 ...tionWhenUsingArguments10(target=es2015).js | 13 + ...enUsingArguments10(target=es2015).symbols} | 0 ...WhenUsingArguments10(target=es2015).types} | 0 ...enUsingArguments10(target=es5).errors.txt} | 0 ...nctionWhenUsingArguments10(target=es5).js} | 0 ...onWhenUsingArguments10(target=es5).symbols | 13 + ...tionWhenUsingArguments10(target=es5).types | 23 + ...tionWhenUsingArguments11(target=es2015).js | 13 + ...henUsingArguments11(target=es2015).symbols | 14 + ...nWhenUsingArguments11(target=es2015).types | 23 + ...enUsingArguments11(target=es5).errors.txt} | 0 ...nctionWhenUsingArguments11(target=es5).js} | 0 ...nWhenUsingArguments11(target=es5).symbols} | 0 ...ionWhenUsingArguments11(target=es5).types} | 0 ...UsingArguments12(target=es2015).errors.txt | 11 + ...tionWhenUsingArguments12(target=es2015).js | 15 + ...henUsingArguments12(target=es2015).symbols | 15 + ...nWhenUsingArguments12(target=es2015).types | 22 + ...enUsingArguments12(target=es5).errors.txt} | 0 ...nctionWhenUsingArguments12(target=es5).js} | 0 ...nWhenUsingArguments12(target=es5).symbols} | 0 ...ionWhenUsingArguments12(target=es5).types} | 0 ...tionWhenUsingArguments13(target=es2015).js | 13 + ...enUsingArguments13(target=es2015).symbols} | 0 ...WhenUsingArguments13(target=es2015).types} | 0 ...nctionWhenUsingArguments13(target=es5).js} | 0 ...onWhenUsingArguments13(target=es5).symbols | 14 + ...tionWhenUsingArguments13(target=es5).types | 24 + ...tionWhenUsingArguments14(target=es2015).js | 17 + ...henUsingArguments14(target=es2015).symbols | 18 + ...nWhenUsingArguments14(target=es2015).types | 30 + ...enUsingArguments14(target=es5).errors.txt} | 0 ...nctionWhenUsingArguments14(target=es5).js} | 0 ...nWhenUsingArguments14(target=es5).symbols} | 0 ...ionWhenUsingArguments14(target=es5).types} | 0 ...tionWhenUsingArguments15(target=es2015).js | 19 + ...henUsingArguments15(target=es2015).symbols | 21 + ...nWhenUsingArguments15(target=es2015).types | 36 + ...enUsingArguments15(target=es5).errors.txt} | 0 ...nctionWhenUsingArguments15(target=es5).js} | 0 ...nWhenUsingArguments15(target=es5).symbols} | 0 ...ionWhenUsingArguments15(target=es5).types} | 0 ...tionWhenUsingArguments16(target=es2015).js | 19 + ...henUsingArguments16(target=es2015).symbols | 20 + ...nWhenUsingArguments16(target=es2015).types | 39 + ...enUsingArguments16(target=es5).errors.txt} | 0 ...nctionWhenUsingArguments16(target=es5).js} | 0 ...nWhenUsingArguments16(target=es5).symbols} | 0 ...ionWhenUsingArguments16(target=es5).types} | 0 ...tionWhenUsingArguments17(target=es2015).js | 19 + ...henUsingArguments17(target=es2015).symbols | 21 + ...nWhenUsingArguments17(target=es2015).types | 43 + ...enUsingArguments17(target=es5).errors.txt} | 0 ...nctionWhenUsingArguments17(target=es5).js} | 0 ...nWhenUsingArguments17(target=es5).symbols} | 0 ...ionWhenUsingArguments17(target=es5).types} | 0 ...tionWhenUsingArguments18(target=es2015).js | 17 + ...enUsingArguments18(target=es2015).symbols} | 0 ...WhenUsingArguments18(target=es2015).types} | 0 ...enUsingArguments18(target=es5).errors.txt} | 0 ...nctionWhenUsingArguments18(target=es5).js} | 0 ...onWhenUsingArguments18(target=es5).symbols | 20 + ...tionWhenUsingArguments18(target=es5).types | 34 + ...tionWhenUsingArguments19(target=es2015).js | 30 + ...enUsingArguments19(target=es2015).symbols} | 0 ...nWhenUsingArguments19(target=es2015).types | 49 + ...enUsingArguments19(target=es5).errors.txt} | 0 ...nctionWhenUsingArguments19(target=es5).js} | 0 ...onWhenUsingArguments19(target=es5).symbols | 32 + ...ionWhenUsingArguments19(target=es5).types} | 0 .../emitArrowFunctionsAsIs(target=es2015).js | 12 + ...ArrowFunctionsAsIs(target=es2015).symbols} | 0 ...itArrowFunctionsAsIs(target=es2015).types} | 0 ... => emitArrowFunctionsAsIs(target=es5).js} | 0 ...emitArrowFunctionsAsIs(target=es5).symbols | 16 + .../emitArrowFunctionsAsIs(target=es5).types | 25 + ...ogueDirectives1(target=es2015).errors.txt} | 0 ...eWithPrologueDirectives1(target=es2015).js | 22 + ...rologueDirectives1(target=es2015).symbols} | 0 ...hPrologueDirectives1(target=es2015).types} | 0 ...PrologueDirectives1(target=es5).errors.txt | 12 + ...dleWithPrologueDirectives1(target=es5).js} | 0 ...ithPrologueDirectives1(target=es5).symbols | 13 + ...eWithPrologueDirectives1(target=es5).types | 16 + ...dleWithShebang1(target=es2015).errors.txt} | 0 .../emitBundleWithShebang1(target=es2015).js | 13 + ...BundleWithShebang1(target=es2015).symbols} | 0 ...itBundleWithShebang1(target=es2015).types} | 0 ...tBundleWithShebang1(target=es5).errors.txt | 10 + ... => emitBundleWithShebang1(target=es5).js} | 0 ...emitBundleWithShebang1(target=es5).symbols | 11 + .../emitBundleWithShebang1(target=es5).types | 14 + ...dleWithShebang2(target=es2015).errors.txt} | 0 .../emitBundleWithShebang2(target=es2015).js | 22 + ...BundleWithShebang2(target=es2015).symbols} | 0 ...itBundleWithShebang2(target=es2015).types} | 0 ...tBundleWithShebang2(target=es5).errors.txt | 15 + ... => emitBundleWithShebang2(target=es5).js} | 0 ...emitBundleWithShebang2(target=es5).symbols | 20 + .../emitBundleWithShebang2(target=es5).types | 26 + ...ogueDirectives1(target=es2015).errors.txt} | 0 ...ngAndPrologueDirectives1(target=es2015).js | 15 + ...rologueDirectives1(target=es2015).symbols} | 0 ...dPrologueDirectives1(target=es2015).types} | 0 ...PrologueDirectives1(target=es5).errors.txt | 11 + ...bangAndPrologueDirectives1(target=es5).js} | 0 ...AndPrologueDirectives1(target=es5).symbols | 12 + ...ngAndPrologueDirectives1(target=es5).types | 18 + ...ogueDirectives2(target=es2015).errors.txt} | 0 ...ngAndPrologueDirectives2(target=es2015).js | 27 + ...rologueDirectives2(target=es2015).symbols} | 0 ...dPrologueDirectives2(target=es2015).types} | 0 ...PrologueDirectives2(target=es5).errors.txt | 18 + ...bangAndPrologueDirectives2(target=es5).js} | 0 ...AndPrologueDirectives2(target=es5).symbols | 23 + ...ngAndPrologueDirectives2(target=es5).types | 38 + ...nmentWithIndexingOnLHS1(target=es2015).js} | 0 ...WithIndexingOnLHS1(target=es2015).symbols} | 0 ...ntWithIndexingOnLHS1(target=es2015).types} | 0 ...ssignmentWithIndexingOnLHS1(target=es5).js | 33 + ...mentWithIndexingOnLHS1(target=es5).symbols | 52 + ...gnmentWithIndexingOnLHS1(target=es5).types | 175 + ...nmentWithIndexingOnLHS2(target=es2015).js} | 0 ...WithIndexingOnLHS2(target=es2015).symbols} | 0 ...ntWithIndexingOnLHS2(target=es2015).types} | 0 ...ssignmentWithIndexingOnLHS2(target=es5).js | 28 + ...mentWithIndexingOnLHS2(target=es5).symbols | 54 + ...gnmentWithIndexingOnLHS2(target=es5).types | 171 + ...nmentWithIndexingOnLHS3(target=es2015).js} | 0 ...WithIndexingOnLHS3(target=es2015).symbols} | 0 ...ntWithIndexingOnLHS3(target=es2015).types} | 0 ...ssignmentWithIndexingOnLHS3(target=es5).js | 30 + ...mentWithIndexingOnLHS3(target=es5).symbols | 41 + ...gnmentWithIndexingOnLHS3(target=es5).types | 102 + ...gnmentWithIndexingOnLHS4(target=es2015).js | 30 + ...WithIndexingOnLHS4(target=es2015).symbols} | 0 ...ntWithIndexingOnLHS4(target=es2015).types} | 0 ...signmentWithIndexingOnLHS4(target=es5).js} | 0 ...mentWithIndexingOnLHS4(target=es5).symbols | 61 + ...gnmentWithIndexingOnLHS4(target=es5).types | 160 + ...PropertyAccessingOnLHS1(target=es2015).js} | 0 ...rtyAccessingOnLHS1(target=es2015).symbols} | 0 ...pertyAccessingOnLHS1(target=es2015).types} | 0 ...WithPropertyAccessingOnLHS1(target=es5).js | 28 + ...ropertyAccessingOnLHS1(target=es5).symbols | 60 + ...hPropertyAccessingOnLHS1(target=es5).types | 159 + ...ExponentiationOperator1(target=es2015).js} | 0 ...entiationOperator1(target=es2015).symbols} | 0 ...onentiationOperator1(target=es2015).types} | 0 ...oundExponentiationOperator1(target=es5).js | 44 + ...xponentiationOperator1(target=es5).symbols | 84 + ...dExponentiationOperator1(target=es5).types | 303 + ...ExponentiationOperator2(target=es2015).js} | 0 ...entiationOperator2(target=es2015).symbols} | 0 ...onentiationOperator2(target=es2015).types} | 0 ...oundExponentiationOperator2(target=es5).js | 48 + ...xponentiationOperator2(target=es5).symbols | 77 + ...dExponentiationOperator2(target=es5).types | 331 + ...DecoratorMetadata_object(target=es2015).js | 38 + ...torMetadata_object(target=es2015).symbols} | 0 ...ratorMetadata_object(target=es2015).types} | 0 ...itDecoratorMetadata_object(target=es5).js} | 0 ...coratorMetadata_object(target=es5).symbols | 28 + ...DecoratorMetadata_object(target=es5).types | 34 + ...coratorMetadata_restArgs(target=es2015).js | 59 + ...rMetadata_restArgs(target=es2015).symbols} | 0 ...torMetadata_restArgs(target=es2015).types} | 0 ...DecoratorMetadata_restArgs(target=es5).js} | 0 ...ratorMetadata_restArgs(target=es5).symbols | 46 + ...coratorMetadata_restArgs(target=es5).types | 59 + ...efaultParametersFunction(target=es2015).js | 13 + ...ParametersFunction(target=es2015).symbols} | 0 ...ltParametersFunction(target=es2015).types} | 0 ...tDefaultParametersFunction(target=es5).js} | 0 ...aultParametersFunction(target=es5).symbols | 23 + ...efaultParametersFunction(target=es5).types | 43 + ...metersFunctionExpression(target=es2015).js | 21 + ...FunctionExpression(target=es2015).symbols} | 0 ...rsFunctionExpression(target=es2015).types} | 0 ...rametersFunctionExpression(target=es5).js} | 0 ...tersFunctionExpression(target=es5).symbols | 40 + ...metersFunctionExpression(target=es5).types | 103 + ...rametersFunctionProperty(target=es2015).js | 18 + ...rsFunctionProperty(target=es2015).symbols} | 0 ...tersFunctionProperty(target=es2015).types} | 0 ...ParametersFunctionProperty(target=es5).js} | 0 ...metersFunctionProperty(target=es5).symbols | 29 + ...rametersFunctionProperty(target=es5).types | 54 + ...tDefaultParametersMethod(target=es2015).js | 35 + ...ltParametersMethod(target=es2015).symbols} | 0 ...aultParametersMethod(target=es2015).types} | 0 ...mitDefaultParametersMethod(target=es5).js} | 0 ...efaultParametersMethod(target=es5).symbols | 48 + ...tDefaultParametersMethod(target=es5).types | 84 + ...ExponentiationOperator1(target=es2015).js} | 0 ...entiationOperator1(target=es2015).symbols} | 0 ...onentiationOperator1(target=es2015).types} | 0 ...emitExponentiationOperator1(target=es5).js | 63 + ...xponentiationOperator1(target=es5).symbols | 35 + ...tExponentiationOperator1(target=es5).types | 359 + ...ExponentiationOperator2(target=es2015).js} | 0 ...entiationOperator2(target=es2015).symbols} | 0 ...onentiationOperator2(target=es2015).types} | 0 ...emitExponentiationOperator2(target=es5).js | 105 + ...xponentiationOperator2(target=es5).symbols | 153 + ...tExponentiationOperator2(target=es5).types | 595 + ...ExponentiationOperator3(target=es2015).js} | 0 ...entiationOperator3(target=es2015).symbols} | 0 ...onentiationOperator3(target=es2015).types} | 0 ...emitExponentiationOperator3(target=es5).js | 79 + ...xponentiationOperator3(target=es5).symbols | 108 + ...tExponentiationOperator3(target=es5).types | 557 + ...iationOperator4(target=es2015).errors.txt} | 0 ...ExponentiationOperator4(target=es2015).js} | 0 ...entiationOperator4(target=es2015).symbols} | 0 ...onentiationOperator4(target=es2015).types} | 0 ...nentiationOperator4(target=es5).errors.txt | 70 + ...emitExponentiationOperator4(target=es5).js | 72 + ...xponentiationOperator4(target=es5).symbols | 86 + ...tExponentiationOperator4(target=es5).types | 460 + ...peratorInTempalteString4(target=es2015).js | 54 + ...rInTempalteString4(target=es2015).symbols} | 0 ...torInTempalteString4(target=es2015).types} | 0 ...nOperatorInTempalteString4(target=es5).js} | 0 ...ratorInTempalteString4(target=es5).symbols | 115 + ...peratorInTempalteString4(target=es5).types | 421 + ...peratorInTemplateString1(target=es2015).js | 54 + ...rInTemplateString1(target=es2015).symbols} | 0 ...torInTemplateString1(target=es2015).types} | 0 ...nOperatorInTemplateString1(target=es5).js} | 0 ...ratorInTemplateString1(target=es5).symbols | 144 + ...peratorInTemplateString1(target=es5).types | 433 + ...peratorInTemplateString2(target=es2015).js | 54 + ...rInTemplateString2(target=es2015).symbols} | 0 ...torInTemplateString2(target=es2015).types} | 0 ...nOperatorInTemplateString2(target=es5).js} | 0 ...ratorInTemplateString2(target=es5).symbols | 144 + ...peratorInTemplateString2(target=es5).types | 433 + ...peratorInTemplateString3(target=es2015).js | 55 + ...rInTemplateString3(target=es2015).symbols} | 0 ...torInTemplateString3(target=es2015).types} | 0 ...nOperatorInTemplateString3(target=es5).js} | 0 ...ratorInTemplateString3(target=es5).symbols | 144 + ...peratorInTemplateString3(target=es5).types | 433 + ...itRestParametersFunction(target=es2015).js | 9 + ...ParametersFunction(target=es2015).symbols} | 0 ...stParametersFunction(target=es2015).types} | 0 ...emitRestParametersFunction(target=es5).js} | 0 ...RestParametersFunction(target=es5).symbols | 13 + ...itRestParametersFunction(target=es5).types | 19 + ...metersFunctionExpression(target=es2015).js | 14 + ...FunctionExpression(target=es2015).symbols} | 0 ...rsFunctionExpression(target=es2015).types} | 0 ...rametersFunctionExpression(target=es5).js} | 0 ...tersFunctionExpression(target=es5).symbols | 20 + ...metersFunctionExpression(target=es5).types | 41 + ...rametersFunctionProperty(target=es2015).js | 16 + ...rsFunctionProperty(target=es2015).symbols} | 0 ...tersFunctionProperty(target=es2015).types} | 0 ...ParametersFunctionProperty(target=es5).js} | 0 ...metersFunctionProperty(target=es5).symbols | 18 + ...rametersFunctionProperty(target=es5).types | 26 + ...emitRestParametersMethod(target=es2015).js | 28 + ...stParametersMethod(target=es2015).symbols} | 0 ...RestParametersMethod(target=es2015).types} | 0 ...> emitRestParametersMethod(target=es5).js} | 0 ...itRestParametersMethod(target=es5).symbols | 35 + ...emitRestParametersMethod(target=es5).types | 50 + ...hisInObjectLiteralGetter(target=es2015).js | 16 + ...bjectLiteralGetter(target=es2015).symbols} | 0 ...nObjectLiteralGetter(target=es2015).types} | 0 ...tThisInObjectLiteralGetter(target=es5).js} | 0 ...sInObjectLiteralGetter(target=es5).symbols | 15 + ...hisInObjectLiteralGetter(target=es5).types | 27 + ...erators.classMethods.es5(target=es2015).js | 282 + ...s.classMethods.es5(target=es2015).symbols} | 0 ...ors.classMethods.es5(target=es2015).types} | 0 ...enerators.classMethods.es5(target=es5).js} | 0 ...ators.classMethods.es5(target=es5).symbols | 112 + ...erators.classMethods.es5(target=es5).types | 172 + ...functionDeclarations.es5(target=es2015).js | 187 + ...onDeclarations.es5(target=es2015).symbols} | 0 ...tionDeclarations.es5(target=es2015).types} | 0 ...s.functionDeclarations.es5(target=es5).js} | 0 ...nctionDeclarations.es5(target=es5).symbols | 48 + ...functionDeclarations.es5(target=es5).types | 83 + ....functionExpressions.es5(target=es2015).js | 187 + ...ionExpressions.es5(target=es2015).symbols} | 0 ...ctionExpressions.es5(target=es2015).types} | 0 ...rs.functionExpressions.es5(target=es5).js} | 0 ...unctionExpressions.es5(target=es5).symbols | 48 + ....functionExpressions.es5(target=es5).types | 97 + ...objectLiteralMethods.es5(target=es2015).js | 215 + ...LiteralMethods.es5(target=es2015).symbols} | 0 ...ctLiteralMethods.es5(target=es2015).types} | 0 ...s.objectLiteralMethods.es5(target=es5).js} | 0 ...jectLiteralMethods.es5(target=es5).symbols | 76 + ...objectLiteralMethods.es5(target=es5).types | 132 + ...AssignmentPatterns01_ES5(target=es2015).js | 19 + ...mentPatterns01_ES5(target=es2015).symbols} | 0 ...gnmentPatterns01_ES5(target=es2015).types} | 0 ...tyAssignmentPatterns01_ES5(target=es5).js} | 0 ...signmentPatterns01_ES5(target=es5).symbols | 13 + ...AssignmentPatterns01_ES5(target=es5).types | 30 + ...ntPatterns01_ES5iterable(target=es2015).js | 16 + ...erns01_ES5iterable(target=es2015).symbols} | 0 ...tterns01_ES5iterable(target=es2015).types} | 0 ...mentPatterns01_ES5iterable(target=es5).js} | 0 ...Patterns01_ES5iterable(target=es5).symbols | 12 + ...ntPatterns01_ES5iterable(target=es5).types | 20 + ...AssignmentPatterns02_ES5(target=es2015).js | 19 + ...mentPatterns02_ES5(target=es2015).symbols} | 0 ...gnmentPatterns02_ES5(target=es2015).types} | 0 ...tyAssignmentPatterns02_ES5(target=es5).js} | 0 ...signmentPatterns02_ES5(target=es5).symbols | 26 + ...AssignmentPatterns02_ES5(target=es5).types | 40 + ...ntPatterns02_ES5iterable(target=es2015).js | 19 + ...erns02_ES5iterable(target=es2015).symbols} | 0 ...tterns02_ES5iterable(target=es2015).types} | 0 ...mentPatterns02_ES5iterable(target=es5).js} | 0 ...Patterns02_ES5iterable(target=es5).symbols | 26 + ...ntPatterns02_ES5iterable(target=es5).types | 40 + ...AssignmentPatterns03_ES5(target=es2015).js | 16 + ...mentPatterns03_ES5(target=es2015).symbols} | 0 ...gnmentPatterns03_ES5(target=es2015).types} | 0 ...tyAssignmentPatterns03_ES5(target=es5).js} | 0 ...signmentPatterns03_ES5(target=es5).symbols | 12 + ...AssignmentPatterns03_ES5(target=es5).types | 26 + ...ntPatterns03_ES5iterable(target=es2015).js | 16 + ...erns03_ES5iterable(target=es2015).symbols} | 0 ...tterns03_ES5iterable(target=es2015).types} | 0 ...mentPatterns03_ES5iterable(target=es5).js} | 0 ...Patterns03_ES5iterable(target=es5).symbols | 12 + ...ntPatterns03_ES5iterable(target=es5).types | 26 + ...AssignmentPatterns04_ES5(target=es2015).js | 19 + ...mentPatterns04_ES5(target=es2015).symbols} | 0 ...gnmentPatterns04_ES5(target=es2015).types} | 0 ...tyAssignmentPatterns04_ES5(target=es5).js} | 0 ...signmentPatterns04_ES5(target=es5).symbols | 26 + ...AssignmentPatterns04_ES5(target=es5).types | 40 + ...ntPatterns04_ES5iterable(target=es2015).js | 19 + ...erns04_ES5iterable(target=es2015).symbols} | 0 ...tterns04_ES5iterable(target=es2015).types} | 0 ...mentPatterns04_ES5iterable(target=es5).js} | 0 ...Patterns04_ES5iterable(target=es5).symbols | 26 + ...ntPatterns04_ES5iterable(target=es5).types | 40 + ...> emptyFile-declaration(target=es2015).js} | 0 ...tyFile-declaration(target=es2015).symbols} | 0 ...mptyFile-declaration(target=es2015).types} | 0 .../emptyFile-declaration(target=es5).js | 9 + .../emptyFile-declaration(target=es5).symbols | 4 + .../emptyFile-declaration(target=es5).types | 4 + ...s => emptyFile-souremap(target=es2015).js} | 0 ... emptyFile-souremap(target=es2015).js.map} | 0 ...ile-souremap(target=es2015).sourcemap.txt} | 0 ...emptyFile-souremap(target=es2015).symbols} | 0 ...> emptyFile-souremap(target=es2015).types} | 0 .../emptyFile-souremap(target=es5).js | 7 + .../emptyFile-souremap(target=es5).js.map | 3 + ...ptyFile-souremap(target=es5).sourcemap.txt | 7 + .../emptyFile-souremap(target=es5).symbols | 4 + .../emptyFile-souremap(target=es5).types | 4 + ...ionBindingPatterns01_ES5(target=es2015).js | 88 + ...dingPatterns01_ES5(target=es2015).symbols} | 0 ...indingPatterns01_ES5(target=es2015).types} | 0 ...ationBindingPatterns01_ES5(target=es5).js} | 0 ...nBindingPatterns01_ES5(target=es5).symbols | 93 + ...ionBindingPatterns01_ES5(target=es5).types | 147 + ...ngPatterns01_ES5iterable(target=es2015).js | 88 + ...erns01_ES5iterable(target=es2015).symbols} | 0 ...tterns01_ES5iterable(target=es2015).types} | 0 ...dingPatterns01_ES5iterable(target=es5).js} | 0 ...Patterns01_ES5iterable(target=es5).symbols | 93 + ...ngPatterns01_ES5iterable(target=es5).types | 147 + ...gPatterns02_ES5(target=es2015).errors.txt} | 0 ...ionBindingPatterns02_ES5(target=es2015).js | 25 + ...dingPatterns02_ES5(target=es2015).symbols} | 0 ...indingPatterns02_ES5(target=es2015).types} | 0 ...ndingPatterns02_ES5(target=es5).errors.txt | 30 + ...ationBindingPatterns02_ES5(target=es5).js} | 0 ...nBindingPatterns02_ES5(target=es5).symbols | 13 + ...ionBindingPatterns02_ES5(target=es5).types | 19 + ...s02_ES5iterable(target=es2015).errors.txt} | 0 ...ngPatterns02_ES5iterable(target=es2015).js | 25 + ...erns02_ES5iterable(target=es2015).symbols} | 0 ...tterns02_ES5iterable(target=es2015).types} | 0 ...terns02_ES5iterable(target=es5).errors.txt | 30 + ...dingPatterns02_ES5iterable(target=es5).js} | 0 ...Patterns02_ES5iterable(target=es5).symbols | 13 + ...ngPatterns02_ES5iterable(target=es5).types | 19 + ...nImportedSymbol(target=es2015).errors.txt} | 0 ... errorsOnImportedSymbol(target=es2015).js} | 0 ...rsOnImportedSymbol(target=es2015).symbols} | 0 ...rorsOnImportedSymbol(target=es2015).types} | 0 ...orsOnImportedSymbol(target=es5).errors.txt | 21 + .../errorsOnImportedSymbol(target=es5).js | 24 + ...errorsOnImportedSymbol(target=es5).symbols | 23 + .../errorsOnImportedSymbol(target=es5).types | 41 + ....txt => es5-amd(target=es2015).errors.txt} | 0 .../reference/es5-amd(target=es2015).js | 24 + ...symbols => es5-amd(target=es2015).symbols} | 0 ...amd.types => es5-amd(target=es2015).types} | 0 .../reference/es5-amd(target=es5).errors.txt | 17 + .../{es5-amd.js => es5-amd(target=es5).js} | 0 .../reference/es5-amd(target=es5).symbols | 17 + .../reference/es5-amd(target=es5).types | 21 + .../es5-asyncFunction(target=es2015).js | 31 + ... es5-asyncFunction(target=es2015).symbols} | 0 ...=> es5-asyncFunction(target=es2015).types} | 0 ...on.js => es5-asyncFunction(target=es5).js} | 0 .../es5-asyncFunction(target=es5).symbols | 16 + .../es5-asyncFunction(target=es5).types | 19 + ...yncFunctionArrayLiterals(target=es2015).js | 78 + ...ctionArrayLiterals(target=es2015).symbols} | 0 ...unctionArrayLiterals(target=es2015).types} | 0 ...asyncFunctionArrayLiterals(target=es5).js} | 0 ...cFunctionArrayLiterals(target=es5).symbols | 82 + ...yncFunctionArrayLiterals(target=es5).types | 137 + ...unctionBinaryExpressions(target=es2015).js | 278 + ...nBinaryExpressions(target=es2015).symbols} | 0 ...ionBinaryExpressions(target=es2015).types} | 0 ...cFunctionBinaryExpressions(target=es5).js} | 0 ...ctionBinaryExpressions(target=es5).symbols | 269 + ...unctionBinaryExpressions(target=es5).types | 452 + ...cFunctionCallExpressions(target=es2015).js | 196 + ...ionCallExpressions(target=es2015).symbols} | 0 ...ctionCallExpressions(target=es2015).types} | 0 ...yncFunctionCallExpressions(target=es5).js} | 0 ...unctionCallExpressions(target=es5).symbols | 206 + ...cFunctionCallExpressions(target=es5).types | 309 + ...syncFunctionConditionals(target=es2015).js | 33 + ...nctionConditionals(target=es2015).symbols} | 0 ...FunctionConditionals(target=es2015).types} | 0 ...-asyncFunctionConditionals(target=es5).js} | 0 ...ncFunctionConditionals(target=es5).symbols | 40 + ...syncFunctionConditionals(target=es5).types | 53 + ...syncFunctionDoStatements(target=es2015).js | 227 + ...nctionDoStatements(target=es2015).symbols} | 0 ...FunctionDoStatements(target=es2015).types} | 0 ...-asyncFunctionDoStatements(target=es5).js} | 0 ...ncFunctionDoStatements(target=es5).symbols | 154 + ...syncFunctionDoStatements(target=es5).types | 227 + ...yncFunctionElementAccess(target=es2015).js | 34 + ...ctionElementAccess(target=es2015).symbols} | 0 ...unctionElementAccess(target=es2015).types} | 0 ...asyncFunctionElementAccess(target=es5).js} | 0 ...cFunctionElementAccess(target=es5).symbols | 38 + ...yncFunctionElementAccess(target=es5).types | 51 + ...cFunctionForInStatements(target=es2015).js | 105 + ...ionForInStatements(target=es2015).symbols} | 0 ...ctionForInStatements(target=es2015).types} | 0 ...yncFunctionForInStatements(target=es5).js} | 0 ...unctionForInStatements(target=es5).symbols | 91 + ...cFunctionForInStatements(target=es5).types | 123 + ...cFunctionForOfStatements(target=es2015).js | 215 + ...ionForOfStatements(target=es2015).symbols} | 0 ...ctionForOfStatements(target=es2015).types} | 0 ...yncFunctionForOfStatements(target=es5).js} | 0 ...unctionForOfStatements(target=es5).symbols | 187 + ...cFunctionForOfStatements(target=es5).types | 259 + ...yncFunctionForStatements(target=es2015).js | 83 + ...ctionForStatements(target=es2015).symbols} | 0 ...unctionForStatements(target=es2015).types} | 0 ...asyncFunctionForStatements(target=es5).js} | 0 ...cFunctionForStatements(target=es5).symbols | 81 + ...yncFunctionForStatements(target=es5).types | 92 + ...s5-asyncFunctionHoisting(target=es2015).js | 92 + ...ncFunctionHoisting(target=es2015).symbols} | 0 ...syncFunctionHoisting(target=es2015).types} | 0 ... es5-asyncFunctionHoisting(target=es5).js} | 0 ...-asyncFunctionHoisting(target=es5).symbols | 89 + ...s5-asyncFunctionHoisting(target=es5).types | 129 + ...syncFunctionIfStatements(target=es2015).js | 48 + ...nctionIfStatements(target=es2015).symbols} | 0 ...FunctionIfStatements(target=es2015).types} | 0 ...-asyncFunctionIfStatements(target=es5).js} | 0 ...ncFunctionIfStatements(target=es5).symbols | 37 + ...syncFunctionIfStatements(target=es5).types | 43 + ...unctionLongObjectLiteral(target=es2015).js | 65 + ...nLongObjectLiteral(target=es2015).symbols} | 0 ...ionLongObjectLiteral(target=es2015).types} | 0 ...cFunctionLongObjectLiteral(target=es5).js} | 0 ...ctionLongObjectLiteral(target=es5).symbols | 109 + ...unctionLongObjectLiteral(target=es5).types | 271 + ...asyncFunctionNestedLoops(target=es2015).js | 31 + ...unctionNestedLoops(target=es2015).symbols} | 0 ...cFunctionNestedLoops(target=es2015).types} | 0 ...5-asyncFunctionNestedLoops(target=es5).js} | 0 ...yncFunctionNestedLoops(target=es5).symbols | 32 + ...asyncFunctionNestedLoops(target=es5).types | 38 + ...ncFunctionNewExpressions(target=es2015).js | 195 + ...tionNewExpressions(target=es2015).symbols} | 0 ...nctionNewExpressions(target=es2015).types} | 0 ...syncFunctionNewExpressions(target=es5).js} | 0 ...FunctionNewExpressions(target=es5).symbols | 205 + ...ncFunctionNewExpressions(target=es5).types | 308 + ...ncFunctionObjectLiterals(target=es2015).js | 111 + ...tionObjectLiterals(target=es2015).symbols} | 0 ...nctionObjectLiterals(target=es2015).types} | 0 ...syncFunctionObjectLiterals(target=es5).js} | 0 ...FunctionObjectLiterals(target=es5).symbols | 134 + ...ncFunctionObjectLiterals(target=es5).types | 176 + ...ncFunctionPropertyAccess(target=es2015).js | 33 + ...tionPropertyAccess(target=es2015).symbols} | 0 ...nctionPropertyAccess(target=es2015).types} | 0 ...syncFunctionPropertyAccess(target=es5).js} | 0 ...FunctionPropertyAccess(target=es5).symbols | 35 + ...ncFunctionPropertyAccess(target=es5).types | 53 + ...FunctionReturnStatements(target=es2015).js | 68 + ...onReturnStatements(target=es2015).symbols} | 0 ...tionReturnStatements(target=es2015).types} | 0 ...ncFunctionReturnStatements(target=es5).js} | 0 ...nctionReturnStatements(target=es5).symbols | 58 + ...FunctionReturnStatements(target=es5).types | 61 + ...FunctionSwitchStatements(target=es2015).js | 187 + ...onSwitchStatements(target=es2015).symbols} | 0 ...tionSwitchStatements(target=es2015).types} | 0 ...ncFunctionSwitchStatements(target=es5).js} | 0 ...nctionSwitchStatements(target=es5).symbols | 158 + ...FunctionSwitchStatements(target=es5).types | 175 + ...yncFunctionTryStatements(target=es2015).js | 260 + ...ctionTryStatements(target=es2015).symbols} | 0 ...unctionTryStatements(target=es2015).types} | 0 ...asyncFunctionTryStatements(target=es5).js} | 0 ...cFunctionTryStatements(target=es5).symbols | 234 + ...yncFunctionTryStatements(target=es5).types | 253 + ...cFunctionWhileStatements(target=es2015).js | 227 + ...ionWhileStatements(target=es2015).symbols} | 0 ...ctionWhileStatements(target=es2015).types} | 0 ...yncFunctionWhileStatements(target=es5).js} | 0 ...unctionWhileStatements(target=es5).symbols | 154 + ...cFunctionWhileStatements(target=es5).types | 227 + ...nWithStatements(target=es2015).errors.txt} | 0 ...ncFunctionWithStatements(target=es2015).js | 70 + ...tionWithStatements(target=es2015).symbols} | 0 ...nctionWithStatements(target=es2015).types} | 0 ...ctionWithStatements(target=es5).errors.txt | 58 + ...syncFunctionWithStatements(target=es5).js} | 0 ...FunctionWithStatements(target=es5).symbols | 56 + ...ncFunctionWithStatements(target=es5).types | 99 + .../reference/es5-commonjs(target=es2015).js | 28 + ...ls => es5-commonjs(target=es2015).symbols} | 0 ...ypes => es5-commonjs(target=es2015).types} | 0 ...ommonjs.js => es5-commonjs(target=es5).js} | 0 .../es5-commonjs(target=es5).symbols | 18 + .../reference/es5-commonjs(target=es5).types | 22 + ...js2.js => es5-commonjs2(target=es2015).js} | 0 ...s => es5-commonjs2(target=es2015).symbols} | 0 ...pes => es5-commonjs2(target=es2015).types} | 0 .../reference/es5-commonjs2(target=es5).js | 10 + .../es5-commonjs2(target=es5).symbols | 6 + .../reference/es5-commonjs2(target=es5).types | 6 + ...> es5-commonjs3(target=es2015).errors.txt} | 0 ...js3.js => es5-commonjs3(target=es2015).js} | 0 ...s => es5-commonjs3(target=es2015).symbols} | 0 ...pes => es5-commonjs3(target=es2015).types} | 0 .../es5-commonjs3(target=es5).errors.txt | 9 + .../reference/es5-commonjs3(target=es5).js | 13 + .../es5-commonjs3(target=es5).symbols | 7 + .../reference/es5-commonjs3(target=es5).types | 10 + ...> es5-commonjs4(target=es2015).errors.txt} | 0 .../reference/es5-commonjs4(target=es2015).js | 31 + ...s => es5-commonjs4(target=es2015).symbols} | 0 ...pes => es5-commonjs4(target=es2015).types} | 0 .../es5-commonjs4(target=es5).errors.txt | 20 + ...monjs4.js => es5-commonjs4(target=es5).js} | 0 .../es5-commonjs4(target=es5).symbols | 20 + .../reference/es5-commonjs4(target=es5).types | 27 + ...js5.js => es5-commonjs5(target=es2015).js} | 0 ...s => es5-commonjs5(target=es2015).symbols} | 0 ...pes => es5-commonjs5(target=es2015).types} | 0 .../reference/es5-commonjs5(target=es5).js | 15 + .../es5-commonjs5(target=es5).symbols | 8 + .../reference/es5-commonjs5(target=es5).types | 9 + ...js6.js => es5-commonjs6(target=es2015).js} | 0 ...s => es5-commonjs6(target=es2015).symbols} | 0 ...pes => es5-commonjs6(target=es2015).types} | 0 .../reference/es5-commonjs6(target=es5).js | 12 + .../es5-commonjs6(target=es5).symbols | 7 + .../reference/es5-commonjs6(target=es5).types | 10 + ...s => es5-commonjs7(target=es2015).symbols} | 0 ...pes => es5-commonjs7(target=es2015).types} | 0 .../es5-commonjs7(target=es5).symbols | 9 + .../reference/es5-commonjs7(target=es5).types | 10 + ...s => es5-commonjs8(target=es2015).symbols} | 0 ...pes => es5-commonjs8(target=es2015).types} | 0 .../es5-commonjs8(target=es5).symbols | 7 + .../reference/es5-commonjs8(target=es5).types | 10 + ...declaration-amd(target=es2015).errors.txt} | 0 .../es5-declaration-amd(target=es2015).js | 31 + ...s5-declaration-amd(target=es2015).symbols} | 0 ... es5-declaration-amd(target=es2015).types} | 0 ...es5-declaration-amd(target=es5).errors.txt | 17 + ....js => es5-declaration-amd(target=es5).js} | 0 .../es5-declaration-amd(target=es5).symbols | 17 + .../es5-declaration-amd(target=es5).types | 21 + ...ortHelpersAsyncFunctions(target=es2015).js | 42 + ...persAsyncFunctions(target=es2015).symbols} | 0 ...elpersAsyncFunctions(target=es2015).types} | 0 ...mportHelpersAsyncFunctions(target=es5).js} | 0 ...tHelpersAsyncFunctions(target=es5).symbols | 60 + ...ortHelpersAsyncFunctions(target=es5).types | 70 + ...lLiteralInEnums(target=es2015).errors.txt} | 0 ...tyleOctalLiteralInEnums(target=es2015).js} | 0 ...ctalLiteralInEnums(target=es2015).symbols} | 0 ...eOctalLiteralInEnums(target=es2015).types} | 0 ...OctalLiteralInEnums(target=es5).errors.txt | 13 + ...oldStyleOctalLiteralInEnums(target=es5).js | 14 + ...yleOctalLiteralInEnums(target=es5).symbols | 12 + ...StyleOctalLiteralInEnums(target=es5).types | 21 + ...s5-souremap-amd(target=es2015).errors.txt} | 0 .../es5-souremap-amd(target=es2015).js | 25 + .../es5-souremap-amd(target=es2015).js.map | 3 + ...-souremap-amd(target=es2015).sourcemap.txt | 86 + ...> es5-souremap-amd(target=es2015).symbols} | 0 ... => es5-souremap-amd(target=es2015).types} | 0 .../es5-souremap-amd(target=es5).errors.txt | 17 + ...amd.js => es5-souremap-amd(target=es5).js} | 0 ...ap => es5-souremap-amd(target=es5).js.map} | 0 ...s5-souremap-amd(target=es5).sourcemap.txt} | 0 .../es5-souremap-amd(target=es5).symbols | 17 + .../es5-souremap-amd(target=es5).types | 21 + ...t => es5-system(target=es2015).errors.txt} | 0 .../reference/es5-system(target=es2015).js | 36 + ...bols => es5-system(target=es2015).symbols} | 0 ....types => es5-system(target=es2015).types} | 0 .../es5-system(target=es5).errors.txt | 18 + ...s5-system.js => es5-system(target=es5).js} | 0 .../reference/es5-system(target=es5).symbols | 18 + .../reference/es5-system(target=es5).types | 22 + ... => es5-system2(target=es2015).errors.txt} | 0 ...stem2.js => es5-system2(target=es2015).js} | 0 ...ols => es5-system2(target=es2015).symbols} | 0 ...types => es5-system2(target=es2015).types} | 0 .../es5-system2(target=es5).errors.txt | 6 + .../reference/es5-system2(target=es5).js | 17 + .../reference/es5-system2(target=es5).symbols | 6 + .../reference/es5-system2(target=es5).types | 9 + ....txt => es5-umd(target=es2015).errors.txt} | 0 .../reference/es5-umd(target=es2015).js | 25 + ...symbols => es5-umd(target=es2015).symbols} | 0 ...umd.types => es5-umd(target=es2015).types} | 0 .../reference/es5-umd(target=es5).errors.txt | 18 + .../{es5-umd.js => es5-umd(target=es5).js} | 0 .../reference/es5-umd(target=es5).symbols | 18 + .../reference/es5-umd(target=es5).types | 22 + ...txt => es5-umd2(target=es2015).errors.txt} | 0 .../reference/es5-umd2(target=es2015).js | 39 + ...ymbols => es5-umd2(target=es2015).symbols} | 0 ...d2.types => es5-umd2(target=es2015).types} | 0 .../reference/es5-umd2(target=es5).errors.txt | 18 + .../{es5-umd2.js => es5-umd2(target=es5).js} | 0 .../reference/es5-umd2(target=es5).symbols | 18 + .../reference/es5-umd2(target=es5).types | 22 + ...txt => es5-umd3(target=es2015).errors.txt} | 0 .../reference/es5-umd3(target=es2015).js | 38 + ...ymbols => es5-umd3(target=es2015).symbols} | 0 ...d3.types => es5-umd3(target=es2015).types} | 0 .../reference/es5-umd3(target=es5).errors.txt | 18 + .../{es5-umd3.js => es5-umd3(target=es5).js} | 0 .../reference/es5-umd3(target=es5).symbols | 18 + .../reference/es5-umd3(target=es5).types | 22 + ...txt => es5-umd4(target=es2015).errors.txt} | 0 .../reference/es5-umd4(target=es2015).js | 39 + ...ymbols => es5-umd4(target=es2015).symbols} | 0 ...d4.types => es5-umd4(target=es2015).types} | 0 .../reference/es5-umd4(target=es5).errors.txt | 20 + .../{es5-umd4.js => es5-umd4(target=es5).js} | 0 .../reference/es5-umd4(target=es5).symbols | 21 + .../reference/es5-umd4(target=es5).types | 26 + ...ldFunctionObjectLiterals(target=es2015).js | 120 + ...tionObjectLiterals(target=es2015).symbols} | 0 ...nctionObjectLiterals(target=es2015).types} | 0 ...ieldFunctionObjectLiterals(target=es5).js} | 0 ...FunctionObjectLiterals(target=es5).symbols | 137 + ...ldFunctionObjectLiterals(target=es5).types | 251 + ...tDefaultClassDeclaration(target=es2015).js | 21 + ...ltClassDeclaration(target=es2015).symbols} | 0 ...aultClassDeclaration(target=es2015).types} | 0 ...ortDefaultClassDeclaration(target=es5).js} | 0 ...efaultClassDeclaration(target=es5).symbols | 10 + ...tDefaultClassDeclaration(target=es5).types | 12 + ...DefaultClassDeclaration2(target=es2015).js | 21 + ...tClassDeclaration2(target=es2015).symbols} | 0 ...ultClassDeclaration2(target=es2015).types} | 0 ...rtDefaultClassDeclaration2(target=es5).js} | 0 ...faultClassDeclaration2(target=es5).symbols | 8 + ...DefaultClassDeclaration2(target=es5).types | 9 + ...assDeclaration3(target=es2015).errors.txt} | 0 ...DefaultClassDeclaration3(target=es2015).js | 35 + ...tClassDeclaration3(target=es2015).symbols} | 0 ...ultClassDeclaration3(target=es2015).types} | 0 ...ltClassDeclaration3(target=es5).errors.txt | 20 + ...rtDefaultClassDeclaration3(target=es5).js} | 0 ...faultClassDeclaration3(target=es5).symbols | 31 + ...DefaultClassDeclaration3(target=es5).types | 44 + ...efaultClassDeclaration4(target=es2015).js} | 0 ...tClassDeclaration4(target=es2015).symbols} | 0 ...ultClassDeclaration4(target=es2015).types} | 0 ...ortDefaultClassDeclaration4(target=es5).js | 29 + ...faultClassDeclaration4(target=es5).symbols | 28 + ...DefaultClassDeclaration4(target=es5).types | 32 + ...ExportDefaultExpression(target=es2015).js} | 0 ...tDefaultExpression(target=es2015).symbols} | 0 ...ortDefaultExpression(target=es2015).types} | 0 .../es5ExportDefaultExpression(target=es5).js | 15 + ...xportDefaultExpression(target=es5).symbols | 6 + ...5ExportDefaultExpression(target=es5).types | 13 + ...aultFunctionDeclaration(target=es2015).js} | 0 ...unctionDeclaration(target=es2015).symbols} | 0 ...tFunctionDeclaration(target=es2015).types} | 0 ...tDefaultFunctionDeclaration(target=es5).js | 15 + ...ultFunctionDeclaration(target=es5).symbols | 6 + ...faultFunctionDeclaration(target=es5).types | 7 + ...ultFunctionDeclaration2(target=es2015).js} | 0 ...nctionDeclaration2(target=es2015).symbols} | 0 ...FunctionDeclaration2(target=es2015).types} | 0 ...DefaultFunctionDeclaration2(target=es5).js | 15 + ...ltFunctionDeclaration2(target=es5).symbols | 6 + ...aultFunctionDeclaration2(target=es5).types | 6 + ...ultFunctionDeclaration3(target=es2015).js} | 0 ...nctionDeclaration3(target=es2015).symbols} | 0 ...FunctionDeclaration3(target=es2015).types} | 0 ...DefaultFunctionDeclaration3(target=es5).js | 24 + ...ltFunctionDeclaration3(target=es5).symbols | 21 + ...aultFunctionDeclaration3(target=es5).types | 34 + ...ultFunctionDeclaration4(target=es2015).js} | 0 ...nctionDeclaration4(target=es2015).symbols} | 0 ...FunctionDeclaration4(target=es2015).types} | 0 ...DefaultFunctionDeclaration4(target=es5).js | 20 + ...ltFunctionDeclaration4(target=es5).symbols | 18 + ...aultFunctionDeclaration4(target=es5).types | 25 + ...ExportDefaultIdentifier(target=es2015).js} | 0 ...tDefaultIdentifier(target=es2015).symbols} | 0 ...ortDefaultIdentifier(target=es2015).types} | 0 .../es5ExportDefaultIdentifier(target=es5).js | 19 + ...xportDefaultIdentifier(target=es5).symbols | 9 + ...5ExportDefaultIdentifier(target=es5).types | 11 + ...es5ExportEquals(target=es2015).errors.txt} | 0 ...s.js => es5ExportEquals(target=es2015).js} | 0 ...=> es5ExportEquals(target=es2015).symbols} | 0 ...s => es5ExportEquals(target=es2015).types} | 0 .../es5ExportEquals(target=es5).errors.txt | 10 + .../reference/es5ExportEquals(target=es5).js | 17 + .../es5ExportEquals(target=es5).symbols | 9 + .../es5ExportEquals(target=es5).types | 11 + .../es5ExportEqualsDts(target=es2015).js | 36 + ...es5ExportEqualsDts(target=es2015).symbols} | 0 ...> es5ExportEqualsDts(target=es2015).types} | 0 ...s.js => es5ExportEqualsDts(target=es5).js} | 0 .../es5ExportEqualsDts(target=es5).symbols | 29 + .../es5ExportEqualsDts(target=es5).types | 31 + ...nalNamedImports(target=es2015).errors.txt} | 0 ...duleInternalNamedImports(target=es2015).js | 66 + ...ternalNamedImports(target=es2015).symbols} | 0 ...InternalNamedImports(target=es2015).types} | 0 ...nternalNamedImports(target=es5).errors.txt | 74 + ...ModuleInternalNamedImports(target=es5).js} | 0 ...leInternalNamedImports(target=es5).symbols | 89 + ...duleInternalNamedImports(target=es5).types | 117 + ...ithModuleGenAmd(target=es2015).errors.txt} | 0 ...s5ModuleWithModuleGenAmd(target=es2015).js | 29 + ...leWithModuleGenAmd(target=es2015).symbols} | 0 ...duleWithModuleGenAmd(target=es2015).types} | 0 ...uleWithModuleGenAmd(target=es5).errors.txt | 16 + ... es5ModuleWithModuleGenAmd(target=es5).js} | 0 ...ModuleWithModuleGenAmd(target=es5).symbols | 16 + ...s5ModuleWithModuleGenAmd(target=es5).types | 20 + ...uleWithModuleGenCommonjs(target=es2015).js | 27 + ...hModuleGenCommonjs(target=es2015).symbols} | 0 ...ithModuleGenCommonjs(target=es2015).types} | 0 ...oduleWithModuleGenCommonjs(target=es5).js} | 0 ...eWithModuleGenCommonjs(target=es5).symbols | 16 + ...uleWithModuleGenCommonjs(target=es5).types | 20 + ...leWithoutModuleGenTarget(target=es2015).js | 23 + ...outModuleGenTarget(target=es2015).symbols} | 0 ...thoutModuleGenTarget(target=es2015).types} | 0 ...duleWithoutModuleGenTarget(target=es5).js} | 0 ...WithoutModuleGenTarget(target=es5).symbols | 16 + ...leWithoutModuleGenTarget(target=es5).types | 20 + ...erDestructuringNotElided(target=es2015).js | 17 + ...ructuringNotElided(target=es2015).symbols} | 0 ...structuringNotElided(target=es2015).types} | 0 ...eterDestructuringNotElided(target=es5).js} | 0 ...DestructuringNotElided(target=es5).symbols | 19 + ...erDestructuringNotElided(target=es5).types | 29 + .../es5andes6module(target=es2015).js | 25 + ...=> es5andes6module(target=es2015).symbols} | 0 ...s => es5andes6module(target=es2015).types} | 0 ...dule.js => es5andes6module(target=es5).js} | 0 .../es5andes6module(target=es5).symbols | 18 + .../es5andes6module(target=es5).types | 22 + .../es6ExportAllInEs5(target=es2015).js | 62 + ... es6ExportAllInEs5(target=es2015).symbols} | 0 ...=> es6ExportAllInEs5(target=es2015).types} | 0 ...s5.js => es6ExportAllInEs5(target=es5).js} | 0 .../es6ExportAllInEs5(target=es5).symbols | 25 + .../es6ExportAllInEs5(target=es5).types | 31 + .../es6ExportClauseInEs5(target=es2015).js | 51 + ...6ExportClauseInEs5(target=es2015).symbols} | 0 ...es6ExportClauseInEs5(target=es2015).types} | 0 ...js => es6ExportClauseInEs5(target=es5).js} | 0 .../es6ExportClauseInEs5(target=es5).symbols | 39 + .../es6ExportClauseInEs5(target=es5).types | 53 + ...auseWithAssignmentInEs5(target=es2015).js} | 0 ...ithAssignmentInEs5(target=es2015).symbols} | 0 ...eWithAssignmentInEs5(target=es2015).types} | 0 ...rtClauseWithAssignmentInEs5(target=es5).js | 39 + ...useWithAssignmentInEs5(target=es5).symbols | 41 + ...lauseWithAssignmentInEs5(target=es5).types | 83 + ...houtModuleSpecifierInEs5(target=es2015).js | 64 + ...duleSpecifierInEs5(target=es2015).symbols} | 0 ...ModuleSpecifierInEs5(target=es2015).types} | 0 ...ithoutModuleSpecifierInEs5(target=es5).js} | 0 ...utModuleSpecifierInEs5(target=es5).symbols | 41 + ...houtModuleSpecifierInEs5(target=es5).types | 55 + ...faultBindingAmd(target=es2015).errors.txt} | 0 ...ImportDefaultBindingAmd(target=es2015).js} | 0 ...tDefaultBindingAmd(target=es2015).symbols} | 0 ...ortDefaultBindingAmd(target=es2015).types} | 0 ...rtDefaultBindingAmd(target=es5).errors.txt | 13 + .../es6ImportDefaultBindingAmd(target=es5).js | 36 + ...mportDefaultBindingAmd(target=es5).symbols | 20 + ...6ImportDefaultBindingAmd(target=es5).types | 28 + ...6ImportDefaultBindingDts(target=es2015).js | 36 + ...tDefaultBindingDts(target=es2015).symbols} | 0 ...ortDefaultBindingDts(target=es2015).types} | 0 ...es6ImportDefaultBindingDts(target=es5).js} | 0 ...mportDefaultBindingDts(target=es5).symbols | 20 + ...6ImportDefaultBindingDts(target=es5).types | 28 + ...medImport1InEs5(target=es2015).errors.txt} | 0 ...wedWithNamedImport1InEs5(target=es2015).js | 51 + ...hNamedImport1InEs5(target=es2015).symbols} | 0 ...ithNamedImport1InEs5(target=es2015).types} | 0 ...thNamedImport1InEs5(target=es5).errors.txt | 38 + ...lowedWithNamedImport1InEs5(target=es5).js} | 0 ...dWithNamedImport1InEs5(target=es5).symbols | 58 + ...wedWithNamedImport1InEs5(target=es5).types | 92 + ...port1WithExport(target=es2015).errors.txt} | 0 ...thNamedImport1WithExport(target=es2015).js | 57 + ...dImport1WithExport(target=es2015).symbols} | 0 ...medImport1WithExport(target=es2015).types} | 0 ...edImport1WithExport(target=es5).errors.txt | 74 + ...WithNamedImport1WithExport(target=es5).js} | 0 ...NamedImport1WithExport(target=es5).symbols | 58 + ...thNamedImport1WithExport(target=es5).types | 92 + ...NamedImportDts1(target=es2015).errors.txt} | 0 ...lowedWithNamedImportDts1(target=es2015).js | 59 + ...ithNamedImportDts1(target=es2015).symbols} | 0 ...dWithNamedImportDts1(target=es2015).types} | 0 ...WithNamedImportDts1(target=es5).errors.txt | 37 + ...ollowedWithNamedImportDts1(target=es5).js} | 0 ...wedWithNamedImportDts1(target=es5).symbols | 58 + ...lowedWithNamedImportDts1(target=es5).types | 102 + ...amedImportInEs5(target=es2015).errors.txt} | 0 ...owedWithNamedImportInEs5(target=es2015).js | 51 + ...thNamedImportInEs5(target=es2015).symbols} | 0 ...WithNamedImportInEs5(target=es2015).types} | 0 ...ithNamedImportInEs5(target=es5).errors.txt | 39 + ...llowedWithNamedImportInEs5(target=es5).js} | 0 ...edWithNamedImportInEs5(target=es5).symbols | 66 + ...owedWithNamedImportInEs5(target=es5).types | 100 + ...mportWithExport(target=es2015).errors.txt} | 0 ...ithNamedImportWithExport(target=es2015).js | 61 + ...edImportWithExport(target=es2015).symbols} | 0 ...amedImportWithExport(target=es2015).types} | 0 ...medImportWithExport(target=es5).errors.txt | 58 + ...dWithNamedImportWithExport(target=es5).js} | 0 ...hNamedImportWithExport(target=es5).symbols | 68 + ...ithNamedImportWithExport(target=es5).types | 104 + ...thNamespaceBinding1InEs5(target=es2015).js | 30 + ...spaceBinding1InEs5(target=es2015).symbols} | 0 ...mespaceBinding1InEs5(target=es2015).types} | 0 ...WithNamespaceBinding1InEs5(target=es5).js} | 0 ...NamespaceBinding1InEs5(target=es5).symbols | 18 + ...thNamespaceBinding1InEs5(target=es5).types | 26 + ...ding1WithExport(target=es2015).errors.txt} | 0 ...spaceBinding1WithExport(target=es2015).js} | 0 ...Binding1WithExport(target=es2015).symbols} | 0 ...ceBinding1WithExport(target=es2015).types} | 0 ...eBinding1WithExport(target=es5).errors.txt | 14 + ...NamespaceBinding1WithExport(target=es5).js | 35 + ...paceBinding1WithExport(target=es5).symbols | 18 + ...espaceBinding1WithExport(target=es5).types | 26 + ...paceBindingDts1(target=es2015).errors.txt} | 0 ...WithNamespaceBindingDts1(target=es2015).js | 38 + ...mespaceBindingDts1(target=es2015).symbols} | 0 ...NamespaceBindingDts1(target=es2015).types} | 0 ...amespaceBindingDts1(target=es5).errors.txt | 11 + ...edWithNamespaceBindingDts1(target=es5).js} | 0 ...thNamespaceBindingDts1(target=es5).symbols | 18 + ...WithNamespaceBindingDts1(target=es5).types | 26 + ...aceBindingInEs5(target=es2015).errors.txt} | 0 ...ithNamespaceBindingInEs5(target=es2015).js | 58 + ...espaceBindingInEs5(target=es2015).symbols} | 0 ...amespaceBindingInEs5(target=es2015).types} | 0 ...mespaceBindingInEs5(target=es5).errors.txt | 11 + ...dWithNamespaceBindingInEs5(target=es5).js} | 0 ...hNamespaceBindingInEs5(target=es5).symbols | 17 + ...ithNamespaceBindingInEs5(target=es5).types | 26 + ...portDefaultBindingInEs5(target=es2015).js} | 0 ...efaultBindingInEs5(target=es2015).symbols} | 0 ...tDefaultBindingInEs5(target=es2015).types} | 0 ...s6ImportDefaultBindingInEs5(target=es5).js | 23 + ...ortDefaultBindingInEs5(target=es5).symbols | 13 + ...mportDefaultBindingInEs5(target=es5).types | 18 + ...dingMergeErrors(target=es2015).errors.txt} | 0 ...efaultBindingMergeErrors(target=es2015).js | 31 + ...BindingMergeErrors(target=es2015).symbols} | 0 ...ltBindingMergeErrors(target=es2015).types} | 0 ...tBindingMergeErrors(target=es5).errors.txt | 25 + ...tDefaultBindingMergeErrors(target=es5).js} | 0 ...aultBindingMergeErrors(target=es5).symbols | 32 + ...efaultBindingMergeErrors(target=es5).types | 44 + ...ndingWithExport(target=es2015).errors.txt} | 0 ...DefaultBindingWithExport(target=es2015).js | 32 + ...tBindingWithExport(target=es2015).symbols} | 0 ...ultBindingWithExport(target=es2015).types} | 0 ...ltBindingWithExport(target=es5).errors.txt | 16 + ...rtDefaultBindingWithExport(target=es5).js} | 0 ...faultBindingWithExport(target=es5).symbols | 20 + ...DefaultBindingWithExport(target=es5).types | 28 + ...portNameSpaceImportInEs5(target=es2015).js | 60 + ...meSpaceImportInEs5(target=es2015).symbols} | 0 ...NameSpaceImportInEs5(target=es2015).types} | 0 ...ImportNameSpaceImportInEs5(target=es5).js} | 0 ...rtNameSpaceImportInEs5(target=es5).symbols | 19 + ...portNameSpaceImportInEs5(target=es5).types | 28 + ...portMergeErrors(target=es2015).errors.txt} | 0 ...eSpaceImportMergeErrors(target=es2015).js} | 0 ...eImportMergeErrors(target=es2015).symbols} | 0 ...aceImportMergeErrors(target=es2015).types} | 0 ...ceImportMergeErrors(target=es5).errors.txt | 24 + ...tNameSpaceImportMergeErrors(target=es5).js | 25 + ...SpaceImportMergeErrors(target=es5).symbols | 25 + ...meSpaceImportMergeErrors(target=es5).types | 34 + ...aceImportNoNamedExports(target=es2015).js} | 0 ...portNoNamedExports(target=es2015).symbols} | 0 ...ImportNoNamedExports(target=es2015).types} | 0 ...meSpaceImportNoNamedExports(target=es5).js | 16 + ...ceImportNoNamedExports(target=es5).symbols | 13 + ...paceImportNoNamedExports(target=es5).types | 18 + ...s6ImportNamedImportInEs5(target=es2015).js | 91 + ...rtNamedImportInEs5(target=es2015).symbols} | 0 ...portNamedImportInEs5(target=es2015).types} | 0 ... es6ImportNamedImportInEs5(target=es5).js} | 0 ...ImportNamedImportInEs5(target=es5).symbols | 124 + ...s6ImportNamedImportInEs5(target=es5).types | 191 + ...tNoNamedExports(target=es2015).errors.txt} | 0 ...medImportNoNamedExports(target=es2015).js} | 0 ...portNoNamedExports(target=es2015).symbols} | 0 ...ImportNoNamedExports(target=es2015).types} | 0 ...mportNoNamedExports(target=es5).errors.txt | 15 + ...rtNamedImportNoNamedExports(target=es5).js | 17 + ...edImportNoNamedExports(target=es5).symbols | 16 + ...amedImportNoNamedExports(target=es5).types | 24 + ...FromClauseInEs5(target=es2015).errors.txt} | 0 ...tWithoutFromClauseInEs5(target=es2015).js} | 0 ...outFromClauseInEs5(target=es2015).symbols} | 0 ...thoutFromClauseInEs5(target=es2015).types} | 0 ...houtFromClauseInEs5(target=es5).errors.txt | 10 + ...mportWithoutFromClauseInEs5(target=es5).js | 23 + ...WithoutFromClauseInEs5(target=es5).symbols | 9 + ...rtWithoutFromClauseInEs5(target=es5).types | 12 + ...xportClassNameWithObject(target=es2015).js | 9 + ...lassNameWithObject(target=es2015).symbols} | 0 ...tClassNameWithObject(target=es2015).types} | 0 ...dExportClassNameWithObject(target=es5).js} | 0 ...ortClassNameWithObject(target=es5).symbols | 6 + ...xportClassNameWithObject(target=es5).types | 7 + ...6modulekindWithES5Target(target=es2015).js | 53 + ...ekindWithES5Target(target=es2015).symbols} | 0 ...ulekindWithES5Target(target=es2015).types} | 0 ...es6modulekindWithES5Target(target=es5).js} | 0 ...odulekindWithES5Target(target=es5).symbols | 48 + ...6modulekindWithES5Target(target=es5).types | 73 + ...WithES5Target10(target=es2015).errors.txt} | 0 ...dulekindWithES5Target10(target=es2015).js} | 0 ...indWithES5Target10(target=es2015).symbols} | 0 ...ekindWithES5Target10(target=es2015).types} | 0 ...kindWithES5Target10(target=es5).errors.txt | 18 + ...s6modulekindWithES5Target10(target=es5).js | 12 + ...ulekindWithES5Target10(target=es5).symbols | 13 + ...odulekindWithES5Target10(target=es5).types | 14 + ...odulekindWithES5Target11(target=es2015).js | 32 + ...indWithES5Target11(target=es2015).symbols} | 0 ...ekindWithES5Target11(target=es2015).types} | 0 ...6modulekindWithES5Target11(target=es5).js} | 0 ...ulekindWithES5Target11(target=es5).symbols | 28 + ...odulekindWithES5Target11(target=es5).types | 43 + ...odulekindWithES5Target12(target=es2015).js | 68 + ...indWithES5Target12(target=es2015).symbols} | 0 ...ekindWithES5Target12(target=es2015).types} | 0 ...6modulekindWithES5Target12(target=es5).js} | 0 ...ulekindWithES5Target12(target=es5).symbols | 63 + ...odulekindWithES5Target12(target=es5).types | 92 + ...modulekindWithES5Target2(target=es2015).js | 19 + ...kindWithES5Target2(target=es2015).symbols} | 0 ...lekindWithES5Target2(target=es2015).types} | 0 ...s6modulekindWithES5Target2(target=es5).js} | 0 ...dulekindWithES5Target2(target=es5).symbols | 16 + ...modulekindWithES5Target2(target=es5).types | 24 + ...modulekindWithES5Target3(target=es2015).js | 29 + ...kindWithES5Target3(target=es2015).symbols} | 0 ...lekindWithES5Target3(target=es2015).types} | 0 ...s6modulekindWithES5Target3(target=es5).js} | 0 ...dulekindWithES5Target3(target=es5).symbols | 22 + ...modulekindWithES5Target3(target=es5).types | 33 + ...modulekindWithES5Target4(target=es2015).js | 10 + ...kindWithES5Target4(target=es2015).symbols} | 0 ...lekindWithES5Target4(target=es2015).types} | 0 ...s6modulekindWithES5Target4(target=es5).js} | 0 ...dulekindWithES5Target4(target=es5).symbols | 9 + ...modulekindWithES5Target4(target=es5).types | 11 + ...odulekindWithES5Target5(target=es2015).js} | 0 ...kindWithES5Target5(target=es2015).symbols} | 0 ...lekindWithES5Target5(target=es2015).types} | 0 ...es6modulekindWithES5Target5(target=es5).js | 20 + ...dulekindWithES5Target5(target=es5).symbols | 16 + ...modulekindWithES5Target5(target=es5).types | 20 + ...modulekindWithES5Target6(target=es2015).js | 20 + ...kindWithES5Target6(target=es2015).symbols} | 0 ...lekindWithES5Target6(target=es2015).types} | 0 ...s6modulekindWithES5Target6(target=es5).js} | 0 ...dulekindWithES5Target6(target=es5).symbols | 18 + ...modulekindWithES5Target6(target=es5).types | 28 + ...odulekindWithES5Target7(target=es2015).js} | 0 ...kindWithES5Target7(target=es2015).symbols} | 0 ...lekindWithES5Target7(target=es2015).types} | 0 ...es6modulekindWithES5Target7(target=es5).js | 17 + ...dulekindWithES5Target7(target=es5).symbols | 17 + ...modulekindWithES5Target7(target=es5).types | 18 + ...modulekindWithES5Target8(target=es2015).js | 9 + ...kindWithES5Target8(target=es2015).symbols} | 0 ...lekindWithES5Target8(target=es2015).types} | 0 ...s6modulekindWithES5Target8(target=es5).js} | 0 ...dulekindWithES5Target8(target=es5).symbols | 9 + ...modulekindWithES5Target8(target=es5).types | 15 + ...dWithES5Target9(target=es2015).errors.txt} | 0 ...odulekindWithES5Target9(target=es2015).js} | 0 ...kindWithES5Target9(target=es2015).symbols} | 0 ...lekindWithES5Target9(target=es2015).types} | 0 ...ekindWithES5Target9(target=es5).errors.txt | 36 + ...es6modulekindWithES5Target9(target=es5).js | 32 + ...dulekindWithES5Target9(target=es5).symbols | 29 + ...modulekindWithES5Target9(target=es5).types | 37 + ...n-classThisReference.es5(target=es2015).js | 40 + ...ion-classThisReference.es5(target=es5).js} | 0 ...uleInteropWithExportStar(target=es2015).js | 20 + ...eropWithExportStar(target=es2015).symbols} | 0 ...nteropWithExportStar(target=es2015).types} | 0 ...oduleInteropWithExportStar(target=es5).js} | 0 ...eInteropWithExportStar(target=es5).symbols | 21 + ...uleInteropWithExportStar(target=es5).types | 27 + ...tmodulekindWithES5Target(target=es2015).js | 53 + ...ekindWithES5Target(target=es2015).symbols} | 0 ...ulekindWithES5Target(target=es2015).types} | 0 ...extmodulekindWithES5Target(target=es5).js} | 0 ...odulekindWithES5Target(target=es5).symbols | 48 + ...tmodulekindWithES5Target(target=es5).types | 73 + ...WithES5Target10(target=es2015).errors.txt} | 0 ...dulekindWithES5Target10(target=es2015).js} | 0 ...indWithES5Target10(target=es2015).symbols} | 0 ...ekindWithES5Target10(target=es2015).types} | 0 ...kindWithES5Target10(target=es5).errors.txt | 18 + ...xtmodulekindWithES5Target10(target=es5).js | 12 + ...ulekindWithES5Target10(target=es5).symbols | 13 + ...odulekindWithES5Target10(target=es5).types | 14 + ...odulekindWithES5Target11(target=es2015).js | 32 + ...indWithES5Target11(target=es2015).symbols} | 0 ...ekindWithES5Target11(target=es2015).types} | 0 ...tmodulekindWithES5Target11(target=es5).js} | 0 ...ulekindWithES5Target11(target=es5).symbols | 28 + ...odulekindWithES5Target11(target=es5).types | 43 + ...odulekindWithES5Target12(target=es2015).js | 68 + ...indWithES5Target12(target=es2015).symbols} | 0 ...ekindWithES5Target12(target=es2015).types} | 0 ...tmodulekindWithES5Target12(target=es5).js} | 0 ...ulekindWithES5Target12(target=es5).symbols | 63 + ...odulekindWithES5Target12(target=es5).types | 92 + ...modulekindWithES5Target2(target=es2015).js | 19 + ...kindWithES5Target2(target=es2015).symbols} | 0 ...lekindWithES5Target2(target=es2015).types} | 0 ...xtmodulekindWithES5Target2(target=es5).js} | 0 ...dulekindWithES5Target2(target=es5).symbols | 16 + ...modulekindWithES5Target2(target=es5).types | 24 + ...modulekindWithES5Target3(target=es2015).js | 29 + ...kindWithES5Target3(target=es2015).symbols} | 0 ...lekindWithES5Target3(target=es2015).types} | 0 ...xtmodulekindWithES5Target3(target=es5).js} | 0 ...dulekindWithES5Target3(target=es5).symbols | 22 + ...modulekindWithES5Target3(target=es5).types | 33 + ...modulekindWithES5Target4(target=es2015).js | 10 + ...kindWithES5Target4(target=es2015).symbols} | 0 ...lekindWithES5Target4(target=es2015).types} | 0 ...xtmodulekindWithES5Target4(target=es5).js} | 0 ...dulekindWithES5Target4(target=es5).symbols | 9 + ...modulekindWithES5Target4(target=es5).types | 11 + ...odulekindWithES5Target5(target=es2015).js} | 0 ...kindWithES5Target5(target=es2015).symbols} | 0 ...lekindWithES5Target5(target=es2015).types} | 0 ...extmodulekindWithES5Target5(target=es5).js | 20 + ...dulekindWithES5Target5(target=es5).symbols | 16 + ...modulekindWithES5Target5(target=es5).types | 20 + ...modulekindWithES5Target6(target=es2015).js | 20 + ...kindWithES5Target6(target=es2015).symbols} | 0 ...lekindWithES5Target6(target=es2015).types} | 0 ...xtmodulekindWithES5Target6(target=es5).js} | 0 ...dulekindWithES5Target6(target=es5).symbols | 18 + ...modulekindWithES5Target6(target=es5).types | 28 + ...odulekindWithES5Target7(target=es2015).js} | 0 ...kindWithES5Target7(target=es2015).symbols} | 0 ...lekindWithES5Target7(target=es2015).types} | 0 ...extmodulekindWithES5Target7(target=es5).js | 17 + ...dulekindWithES5Target7(target=es5).symbols | 17 + ...modulekindWithES5Target7(target=es5).types | 18 + ...modulekindWithES5Target8(target=es2015).js | 9 + ...kindWithES5Target8(target=es2015).symbols} | 0 ...lekindWithES5Target8(target=es2015).types} | 0 ...xtmodulekindWithES5Target8(target=es5).js} | 0 ...dulekindWithES5Target8(target=es5).symbols | 9 + ...modulekindWithES5Target8(target=es5).types | 15 + ...dWithES5Target9(target=es2015).errors.txt} | 0 ...odulekindWithES5Target9(target=es2015).js} | 0 ...kindWithES5Target9(target=es2015).symbols} | 0 ...lekindWithES5Target9(target=es2015).types} | 0 ...ekindWithES5Target9(target=es5).errors.txt | 36 + ...extmodulekindWithES5Target9(target=es5).js | 32 + ...dulekindWithES5Target9(target=es5).symbols | 29 + ...modulekindWithES5Target9(target=es5).types | 37 + ...xportClassNameWithObject(target=es2015).js | 9 + ...lassNameWithObject(target=es2015).symbols} | 0 ...tClassNameWithObject(target=es2015).types} | 0 ...dExportClassNameWithObject(target=es5).js} | 0 ...ortClassNameWithObject(target=es5).symbols | 6 + ...xportClassNameWithObject(target=es5).types | 7 + ...ithSyntaxError1(target=es2015).errors.txt} | 0 ...teStringWithSyntaxError1(target=es2015).js | 54 + ...ngWithSyntaxError1(target=es2015).symbols} | 0 ...ringWithSyntaxError1(target=es2015).types} | 0 ...ingWithSyntaxError1(target=es5).errors.txt | 164 + ...lateStringWithSyntaxError1(target=es5).js} | 0 ...StringWithSyntaxError1(target=es5).symbols | 140 + ...teStringWithSyntaxError1(target=es5).types | 503 + ...ithSyntaxError2(target=es2015).errors.txt} | 0 ...teStringWithSyntaxError2(target=es2015).js | 55 + ...ngWithSyntaxError2(target=es2015).symbols} | 0 ...ringWithSyntaxError2(target=es2015).types} | 0 ...ingWithSyntaxError2(target=es5).errors.txt | 165 + ...lateStringWithSyntaxError2(target=es5).js} | 0 ...StringWithSyntaxError2(target=es5).symbols | 140 + ...teStringWithSyntaxError2(target=es5).types | 503 + ...ithSyntaxError3(target=es2015).errors.txt} | 0 ...teStringWithSyntaxError3(target=es2015).js | 54 + ...ngWithSyntaxError3(target=es2015).symbols} | 0 ...ringWithSyntaxError3(target=es2015).types} | 0 ...ingWithSyntaxError3(target=es5).errors.txt | 164 + ...lateStringWithSyntaxError3(target=es5).js} | 0 ...StringWithSyntaxError3(target=es5).symbols | 140 + ...teStringWithSyntaxError3(target=es5).types | 503 + ...torSyntaxError1(target=es2015).errors.txt} | 0 ...ionOperatorSyntaxError1(target=es2015).js} | 0 ...eratorSyntaxError1(target=es2015).symbols} | 0 ...OperatorSyntaxError1(target=es2015).types} | 0 ...peratorSyntaxError1(target=es5).errors.txt | 134 + ...tiationOperatorSyntaxError1(target=es5).js | 76 + ...onOperatorSyntaxError1(target=es5).symbols | 88 + ...tionOperatorSyntaxError1(target=es5).types | 432 + ...torSyntaxError2(target=es2015).errors.txt} | 0 ...ionOperatorSyntaxError2(target=es2015).js} | 0 ...eratorSyntaxError2(target=es2015).symbols} | 0 ...OperatorSyntaxError2(target=es2015).types} | 0 ...peratorSyntaxError2(target=es5).errors.txt | 373 + ...tiationOperatorSyntaxError2(target=es5).js | 127 + ...onOperatorSyntaxError2(target=es5).symbols | 151 + ...tionOperatorSyntaxError2(target=es5).types | 723 + ...teStringInvalid(target=es2015).errors.txt} | 0 ...ithTemplateStringInvalid(target=es2015).js | 35 + ...plateStringInvalid(target=es2015).symbols} | 0 ...emplateStringInvalid(target=es2015).types} | 0 ...mplateStringInvalid(target=es5).errors.txt | 56 + ...rWithTemplateStringInvalid(target=es5).js} | 0 ...hTemplateStringInvalid(target=es5).symbols | 44 + ...ithTemplateStringInvalid(target=es5).types | 147 + ...bientClassNameWithObject(target=es2015).js | 8 + ...lassNameWithObject(target=es2015).symbols} | 0 ...tClassNameWithObject(target=es2015).types} | 0 ...AmbientClassNameWithObject(target=es5).js} | 0 ...entClassNameWithObject(target=es5).symbols | 6 + ...bientClassNameWithObject(target=es5).types | 7 + .../exportAndImport-es5(target=es2015).js | 30 + ...xportAndImport-es5(target=es2015).symbols} | 0 ... exportAndImport-es5(target=es2015).types} | 0 ....js => exportAndImport-es5(target=es5).js} | 0 .../exportAndImport-es5(target=es5).symbols | 18 + .../exportAndImport-es5(target=es5).types | 24 + ...dImport-es5-amd(target=es2015).errors.txt} | 0 ...exportAndImport-es5-amd(target=es2015).js} | 0 ...tAndImport-es5-amd(target=es2015).symbols} | 0 ...ortAndImport-es5-amd(target=es2015).types} | 0 ...rtAndImport-es5-amd(target=es5).errors.txt | 14 + .../exportAndImport-es5-amd(target=es5).js | 34 + ...xportAndImport-es5-amd(target=es5).symbols | 18 + .../exportAndImport-es5-amd(target=es5).types | 24 + ...meWithObjectAMD(target=es2015).errors.txt} | 0 ...rtClassNameWithObjectAMD(target=es2015).js | 15 + ...sNameWithObjectAMD(target=es2015).symbols} | 0 ...assNameWithObjectAMD(target=es2015).types} | 0 ...ssNameWithObjectAMD(target=es5).errors.txt | 10 + ...portClassNameWithObjectAMD(target=es5).js} | 0 ...ClassNameWithObjectAMD(target=es5).symbols | 6 + ...rtClassNameWithObjectAMD(target=es5).types | 7 + ...hObjectCommonJS(target=es2015).errors.txt} | 0 ...ssNameWithObjectCommonJS(target=es2015).js | 13 + ...WithObjectCommonJS(target=es2015).symbols} | 0 ...meWithObjectCommonJS(target=es2015).types} | 0 ...eWithObjectCommonJS(target=es5).errors.txt | 8 + ...lassNameWithObjectCommonJS(target=es5).js} | 0 ...NameWithObjectCommonJS(target=es5).symbols | 6 + ...ssNameWithObjectCommonJS(target=es5).types | 7 + ...ithObjectSystem(target=es2015).errors.txt} | 0 ...lassNameWithObjectSystem(target=es2015).js | 20 + ...meWithObjectSystem(target=es2015).symbols} | 0 ...NameWithObjectSystem(target=es2015).types} | 0 ...ameWithObjectSystem(target=es5).errors.txt | 10 + ...tClassNameWithObjectSystem(target=es5).js} | 0 ...ssNameWithObjectSystem(target=es5).symbols | 6 + ...lassNameWithObjectSystem(target=es5).types | 7 + ...meWithObjectUMD(target=es2015).errors.txt} | 0 ...rtClassNameWithObjectUMD(target=es2015).js | 23 + ...sNameWithObjectUMD(target=es2015).symbols} | 0 ...assNameWithObjectUMD(target=es2015).types} | 0 ...ssNameWithObjectUMD(target=es5).errors.txt | 10 + ...portClassNameWithObjectUMD(target=es5).js} | 0 ...ClassNameWithObjectUMD(target=es5).symbols | 6 + ...rtClassNameWithObjectUMD(target=es5).types | 7 + ...nInternalModule(target=es2015).errors.txt} | 0 ...larationInInternalModule(target=es2015).js | 54 + ...onInInternalModule(target=es2015).symbols} | 0 ...tionInInternalModule(target=es2015).types} | 0 ...ionInInternalModule(target=es5).errors.txt | 23 + ...eclarationInInternalModule(target=es5).js} | 0 ...rationInInternalModule(target=es5).symbols | 32 + ...larationInInternalModule(target=es5).types | 42 + ...faultClassNameWithObject(target=es2015).js | 9 + ...lassNameWithObject(target=es2015).symbols} | 0 ...tClassNameWithObject(target=es2015).types} | 0 ...lassNameWithObject(target=es5).errors.txt} | 0 ...DefaultClassNameWithObject(target=es5).js} | 0 ...ultClassNameWithObject(target=es5).symbols | 6 + ...faultClassNameWithObject(target=es5).types | 7 + ...faultInJsFile01(target=es2015).errors.txt} | 0 ...tDefaultInJsFile01(target=es2015).symbols} | 0 ...ortDefaultInJsFile01(target=es2015).types} | 0 ...rtDefaultInJsFile01(target=es5).errors.txt | 8 + ...xportDefaultInJsFile01(target=es5).symbols | 5 + .../exportDefaultInJsFile01(target=es5).types | 5 + ...xportDefaultParenthesize(target=es2015).js | 70 + ...efaultParenthesize(target=es2015).symbols} | 0 ...tDefaultParenthesize(target=es2015).types} | 0 ... exportDefaultParenthesize(target=es5).js} | 0 ...ortDefaultParenthesize(target=es5).symbols | 87 + ...xportDefaultParenthesize(target=es5).types | 307 + ...nstEnumForValue(target=es2015).errors.txt} | 0 ...stituteConstEnumForValue(target=es2015).js | 129 + ...eConstEnumForValue(target=es2015).symbols} | 0 ...uteConstEnumForValue(target=es2015).types} | 0 ...teConstEnumForValue(target=es5).errors.txt | 63 + ...ubstituteConstEnumForValue(target=es5).js} | 0 ...ituteConstEnumForValue(target=es5).symbols | 132 + ...stituteConstEnumForValue(target=es5).types | 184 + ...t => exportStar(target=es2015).errors.txt} | 0 .../reference/exportStar(target=es2015).js | 114 + ...bols => exportStar(target=es2015).symbols} | 0 ....types => exportStar(target=es2015).types} | 0 .../exportStar(target=es5).errors.txt | 39 + ...xportStar.js => exportStar(target=es5).js} | 0 .../reference/exportStar(target=es5).symbols | 58 + .../reference/exportStar(target=es5).types | 87 + ... exportStar-amd(target=es2015).errors.txt} | 0 ...md.js => exportStar-amd(target=es2015).js} | 0 ... => exportStar-amd(target=es2015).symbols} | 0 ...es => exportStar-amd(target=es2015).types} | 0 .../exportStar-amd(target=es5).errors.txt | 41 + .../reference/exportStar-amd(target=es5).js | 124 + .../exportStar-amd(target=es5).symbols | 58 + .../exportStar-amd(target=es5).types | 87 + ...FromEmptyModule(target=es2015).errors.txt} | 0 ...xportStarFromEmptyModule(target=es2015).js | 111 + ...tarFromEmptyModule(target=es2015).symbols} | 0 ...tStarFromEmptyModule(target=es2015).types} | 0 ...StarFromEmptyModule(target=es5).errors.txt | 29 + ... exportStarFromEmptyModule(target=es5).js} | 0 ...ortStarFromEmptyModule(target=es5).symbols | 46 + ...xportStarFromEmptyModule(target=es5).types | 64 + ...AndImports1-amd(target=es2015).errors.txt} | 0 .../exportsAndImports1-amd(target=es2015).js | 83 + ...rtsAndImports1-amd(target=es2015).symbols} | 0 ...portsAndImports1-amd(target=es2015).types} | 0 ...ortsAndImports1-amd(target=es5).errors.txt | 36 + ... => exportsAndImports1-amd(target=es5).js} | 0 ...exportsAndImports1-amd(target=es5).symbols | 102 + .../exportsAndImports1-amd(target=es5).types | 157 + ...AndImports2-amd(target=es2015).errors.txt} | 0 ... exportsAndImports2-amd(target=es2015).js} | 0 ...rtsAndImports2-amd(target=es2015).symbols} | 0 ...portsAndImports2-amd(target=es2015).types} | 0 ...ortsAndImports2-amd(target=es5).errors.txt | 15 + .../exportsAndImports2-amd(target=es5).js | 38 + ...exportsAndImports2-amd(target=es5).symbols | 27 + .../exportsAndImports2-amd(target=es5).types | 43 + ...AndImports3-amd(target=es2015).errors.txt} | 0 .../exportsAndImports3-amd(target=es2015).js | 85 + ...rtsAndImports3-amd(target=es2015).symbols} | 0 ...portsAndImports3-amd(target=es2015).types} | 0 ...ortsAndImports3-amd(target=es5).errors.txt | 36 + ... => exportsAndImports3-amd(target=es5).js} | 0 ...exportsAndImports3-amd(target=es5).symbols | 132 + .../exportsAndImports3-amd(target=es5).types | 217 + .../exportsAndImports4(target=es2015).js | 106 + ...exportsAndImports4(target=es2015).symbols} | 0 ...> exportsAndImports4(target=es2015).types} | 0 ...4.js => exportsAndImports4(target=es5).js} | 0 .../exportsAndImports4(target=es5).symbols | 69 + .../exportsAndImports4(target=es5).types | 101 + ...AndImports4-amd(target=es2015).errors.txt} | 0 .../exportsAndImports4-amd(target=es2015).js | 110 + ...rtsAndImports4-amd(target=es2015).symbols} | 0 ...portsAndImports4-amd(target=es2015).types} | 0 ...ortsAndImports4-amd(target=es5).errors.txt | 41 + ... => exportsAndImports4-amd(target=es5).js} | 0 ...exportsAndImports4-amd(target=es5).symbols | 69 + .../exportsAndImports4-amd(target=es5).types | 101 + ...lKeywordNames01(target=es2015).errors.txt} | 0 ...ContextualKeywordNames01(target=es2015).js | 40 + ...tualKeywordNames01(target=es2015).symbols} | 0 ...extualKeywordNames01(target=es2015).types} | 0 ...xtualKeywordNames01(target=es5).errors.txt | 22 + ...thContextualKeywordNames01(target=es5).js} | 0 ...ntextualKeywordNames01(target=es5).symbols | 31 + ...ContextualKeywordNames01(target=es5).types | 45 + ...ContextualKeywordNames02(target=es2015).js | 70 + ...tualKeywordNames02(target=es2015).symbols} | 0 ...extualKeywordNames02(target=es2015).types} | 0 ...thContextualKeywordNames02(target=es5).js} | 0 ...ntextualKeywordNames02(target=es5).symbols | 36 + ...ContextualKeywordNames02(target=es5).types | 54 + ...ithUnderscores1(target=es2015).errors.txt} | 0 ...dImportsWithUnderscores1(target=es2015).js | 32 + ...tsWithUnderscores1(target=es2015).symbols} | 0 ...ortsWithUnderscores1(target=es2015).types} | 0 ...rtsWithUnderscores1(target=es5).errors.txt | 17 + ...AndImportsWithUnderscores1(target=es5).js} | 0 ...mportsWithUnderscores1(target=es5).symbols | 29 + ...dImportsWithUnderscores1(target=es5).types | 49 + ...dImportsWithUnderscores2(target=es2015).js | 30 + ...tsWithUnderscores2(target=es2015).symbols} | 0 ...ortsWithUnderscores2(target=es2015).types} | 0 ...AndImportsWithUnderscores2(target=es5).js} | 0 ...mportsWithUnderscores2(target=es5).symbols | 25 + ...dImportsWithUnderscores2(target=es5).types | 39 + ...dImportsWithUnderscores3(target=es2015).js | 32 + ...tsWithUnderscores3(target=es2015).symbols} | 0 ...ortsWithUnderscores3(target=es2015).types} | 0 ...AndImportsWithUnderscores3(target=es5).js} | 0 ...mportsWithUnderscores3(target=es5).symbols | 29 + ...dImportsWithUnderscores3(target=es5).types | 47 + ...dImportsWithUnderscores4(target=es2015).js | 76 + ...tsWithUnderscores4(target=es2015).symbols} | 0 ...ortsWithUnderscores4(target=es2015).types} | 0 ...AndImportsWithUnderscores4(target=es5).js} | 0 ...mportsWithUnderscores4(target=es5).symbols | 76 + ...dImportsWithUnderscores4(target=es5).types | 156 + ...terationBindingDownlevel(target=es2015).js | 95 + ...rIterationBindingDownlevel(target=es5).js} | 0 ...edCommonTypes01(target=es2015).errors.txt} | 0 ...rdDeclaredCommonTypes01(target=es2015).js} | 0 ...laredCommonTypes01(target=es2015).symbols} | 0 ...eclaredCommonTypes01(target=es2015).types} | 0 ...claredCommonTypes01(target=es5).errors.txt | 40 + ...orwardDeclaredCommonTypes01(target=es5).js | 30 + ...dDeclaredCommonTypes01(target=es5).symbols | 37 + ...ardDeclaredCommonTypes01(target=es5).types | 58 + ...sAndExpressions(target=es2015).errors.txt} | 0 ...StatementsAndExpressions(target=es2015).js | 283 + ...entsAndExpressions(target=es2015).symbols} | 0 ...ementsAndExpressions(target=es2015).types} | 0 ...mentsAndExpressions(target=es5).errors.txt | 186 + ...rnStatementsAndExpressions(target=es5).js} | 0 ...atementsAndExpressions(target=es5).symbols | 234 + ...StatementsAndExpressions(target=es5).types | 293 + ...ratorTransformFinalLabel(target=es2015).js | 23 + ...ransformFinalLabel(target=es2015).symbols} | 0 ...rTransformFinalLabel(target=es2015).types} | 0 ...neratorTransformFinalLabel(target=es5).js} | 0 ...torTransformFinalLabel(target=es5).symbols | 17 + ...ratorTransformFinalLabel(target=es5).types | 31 + ...ontextualTyping(target=es2015).errors.txt} | 0 ...AccessorContextualTyping(target=es2015).js | 51 + ...orContextualTyping(target=es2015).symbols} | 0 ...ssorContextualTyping(target=es2015).types} | 0 ...sorContextualTyping(target=es5).errors.txt | 31 + ...etAccessorContextualTyping(target=es5).js} | 0 ...cessorContextualTyping(target=es5).symbols | 50 + ...AccessorContextualTyping(target=es5).types | 71 + .../getSetEnumerable(target=es2015).js | 51 + ...> getSetEnumerable(target=es2015).symbols} | 0 ... => getSetEnumerable(target=es2015).types} | 0 ...ble.js => getSetEnumerable(target=es5).js} | 0 .../getSetEnumerable(target=es5).symbols | 58 + .../getSetEnumerable(target=es5).types | 90 + ...lFlowStrictNull(target=es2015).errors.txt} | 0 ...terControlFlowStrictNull(target=es2015).js | 61 + ...trolFlowStrictNull(target=es2015).symbols} | 0 ...ontrolFlowStrictNull(target=es2015).types} | 0 ...ntrolFlowStrictNull(target=es5).errors.txt | 42 + ...etterControlFlowStrictNull(target=es5).js} | 0 ...rControlFlowStrictNull(target=es5).symbols | 59 + ...terControlFlowStrictNull(target=es5).types | 100 + ...rcularInference(target=es2015).errors.txt} | 0 ...AnyFromCircularInference(target=es2015).js | 88 + ...mCircularInference(target=es2015).symbols} | 0 ...romCircularInference(target=es2015).types} | 0 ...omCircularInference(target=es5).errors.txt | 78 + ...itAnyFromCircularInference(target=es5).js} | 0 ...yFromCircularInference(target=es5).symbols | 96 + ...AnyFromCircularInference(target=es5).types | 146 + ...sionAsyncES5AMD(target=es2015).errors.txt} | 0 ...allExpressionAsyncES5AMD(target=es2015).js | 113 + ...ressionAsyncES5AMD(target=es2015).symbols} | 0 ...xpressionAsyncES5AMD(target=es2015).types} | 0 ...pressionAsyncES5AMD(target=es5).errors.txt | 33 + ...tCallExpressionAsyncES5AMD(target=es5).js} | 0 ...lExpressionAsyncES5AMD(target=es5).symbols | 59 + ...allExpressionAsyncES5AMD(target=es5).types | 108 + ...allExpressionAsyncES5CJS(target=es2015).js | 111 + ...ressionAsyncES5CJS(target=es2015).symbols} | 0 ...xpressionAsyncES5CJS(target=es2015).types} | 0 ...tCallExpressionAsyncES5CJS(target=es5).js} | 0 ...lExpressionAsyncES5CJS(target=es5).symbols | 59 + ...allExpressionAsyncES5CJS(target=es5).types | 108 + ...nAsyncES5System(target=es2015).errors.txt} | 0 ...ExpressionAsyncES5System(target=es2015).js | 84 + ...sionAsyncES5System(target=es2015).symbols} | 0 ...essionAsyncES5System(target=es2015).types} | 0 ...ssionAsyncES5System(target=es5).errors.txt | 33 + ...llExpressionAsyncES5System(target=es5).js} | 0 ...pressionAsyncES5System(target=es5).symbols | 59 + ...ExpressionAsyncES5System(target=es5).types | 108 + ...sionAsyncES5UMD(target=es2015).errors.txt} | 0 ...allExpressionAsyncES5UMD(target=es2015).js | 122 + ...ressionAsyncES5UMD(target=es2015).symbols} | 0 ...xpressionAsyncES5UMD(target=es2015).types} | 0 ...pressionAsyncES5UMD(target=es5).errors.txt | 33 + ...tCallExpressionAsyncES5UMD(target=es5).js} | 0 ...lExpressionAsyncES5UMD(target=es5).symbols | 59 + ...allExpressionAsyncES5UMD(target=es5).types | 108 + ...xpressionES5AMD(target=es2015).errors.txt} | 0 ...portCallExpressionES5AMD(target=es2015).js | 96 + ...llExpressionES5AMD(target=es2015).symbols} | 0 ...CallExpressionES5AMD(target=es2015).types} | 0 ...allExpressionES5AMD(target=es5).errors.txt | 31 + ...importCallExpressionES5AMD(target=es5).js} | 0 ...rtCallExpressionES5AMD(target=es5).symbols | 62 + ...portCallExpressionES5AMD(target=es5).types | 106 + ...portCallExpressionES5CJS(target=es2015).js | 92 + ...llExpressionES5CJS(target=es2015).symbols} | 0 ...CallExpressionES5CJS(target=es2015).types} | 0 ...importCallExpressionES5CJS(target=es5).js} | 0 ...rtCallExpressionES5CJS(target=es5).symbols | 62 + ...portCallExpressionES5CJS(target=es5).types | 106 + ...essionES5System(target=es2015).errors.txt} | 0 ...tCallExpressionES5System(target=es2015).js | 73 + ...xpressionES5System(target=es2015).symbols} | 0 ...lExpressionES5System(target=es2015).types} | 0 ...ExpressionES5System(target=es5).errors.txt | 31 + ...ortCallExpressionES5System(target=es5).js} | 0 ...allExpressionES5System(target=es5).symbols | 62 + ...tCallExpressionES5System(target=es5).types | 106 + ...xpressionES5UMD(target=es2015).errors.txt} | 0 ...portCallExpressionES5UMD(target=es2015).js | 113 + ...llExpressionES5UMD(target=es2015).symbols} | 0 ...CallExpressionES5UMD(target=es2015).types} | 0 ...allExpressionES5UMD(target=es5).errors.txt | 31 + ...importCallExpressionES5UMD(target=es5).js} | 0 ...rtCallExpressionES5UMD(target=es5).symbols | 62 + ...portCallExpressionES5UMD(target=es5).types | 106 + ...ssionNestedAMD2(target=es2015).errors.txt} | 0 ...CallExpressionNestedAMD2(target=es2015).js | 67 + ...pressionNestedAMD2(target=es2015).symbols} | 0 ...ExpressionNestedAMD2(target=es2015).types} | 0 ...xpressionNestedAMD2(target=es5).errors.txt | 11 + ...rtCallExpressionNestedAMD2(target=es5).js} | 0 ...llExpressionNestedAMD2(target=es5).symbols | 15 + ...CallExpressionNestedAMD2(target=es5).types | 29 + ...CallExpressionNestedCJS2(target=es2015).js | 62 + ...pressionNestedCJS2(target=es2015).symbols} | 0 ...ExpressionNestedCJS2(target=es2015).types} | 0 ...rtCallExpressionNestedCJS2(target=es5).js} | 0 ...llExpressionNestedCJS2(target=es5).symbols | 15 + ...CallExpressionNestedCJS2(target=es5).types | 28 + ...onNestedES20152(target=es2015).errors.txt} | 0 ...lExpressionNestedES20152(target=es2015).js | 27 + ...ssionNestedES20152(target=es2015).symbols} | 0 ...ressionNestedES20152(target=es2015).types} | 0 ...essionNestedES20152(target=es5).errors.txt | 15 + ...allExpressionNestedES20152(target=es5).js} | 0 ...xpressionNestedES20152(target=es5).symbols | 15 + ...lExpressionNestedES20152(target=es5).types | 29 + ...lExpressionNestedES20202(target=es2015).js | 28 + ...ssionNestedES20202(target=es2015).symbols} | 0 ...ressionNestedES20202(target=es2015).types} | 0 ...allExpressionNestedES20202(target=es5).js} | 0 ...xpressionNestedES20202(target=es5).symbols | 16 + ...lExpressionNestedES20202(target=es5).types | 29 + ...onNestedSystem2(target=es2015).errors.txt} | 0 ...lExpressionNestedSystem2(target=es2015).js | 44 + ...ssionNestedSystem2(target=es2015).symbols} | 0 ...ressionNestedSystem2(target=es2015).types} | 0 ...essionNestedSystem2(target=es5).errors.txt | 11 + ...allExpressionNestedSystem2(target=es5).js} | 0 ...xpressionNestedSystem2(target=es5).symbols | 15 + ...lExpressionNestedSystem2(target=es5).types | 29 + ...ssionNestedUMD2(target=es2015).errors.txt} | 0 ...CallExpressionNestedUMD2(target=es2015).js | 85 + ...pressionNestedUMD2(target=es2015).symbols} | 0 ...ExpressionNestedUMD2(target=es2015).types} | 0 ...xpressionNestedUMD2(target=es5).errors.txt | 11 + ...rtCallExpressionNestedUMD2(target=es5).js} | 0 ...llExpressionNestedUMD2(target=es5).symbols | 15 + ...CallExpressionNestedUMD2(target=es5).types | 29 + .../reference/importHelpers(target=es2015).js | 110 + ...s => importHelpers(target=es2015).symbols} | 0 ...pes => importHelpers(target=es2015).types} | 0 ...elpers.js => importHelpers(target=es5).js} | 0 .../importHelpers(target=es5).symbols | 127 + .../reference/importHelpers(target=es5).types | 162 + ...mportHelpersAmd(target=es2015).errors.txt} | 0 .../importHelpersAmd(target=es2015).js | 40 + ...> importHelpersAmd(target=es2015).symbols} | 0 ... => importHelpersAmd(target=es2015).types} | 0 .../importHelpersAmd(target=es5).errors.txt | 22 + ...Amd.js => importHelpersAmd(target=es5).js} | 0 .../importHelpersAmd(target=es5).symbols | 74 + .../importHelpersAmd(target=es5).types | 100 + ...elpersDeclarations(target=es2015).symbols} | 0 ...tHelpersDeclarations(target=es2015).types} | 0 ...ortHelpersDeclarations(target=es5).symbols | 10 + ...mportHelpersDeclarations(target=es5).types | 13 + ...tHelpersInAmbientContext(target=es2015).js | 60 + ...rsInAmbientContext(target=es2015).symbols} | 0 ...persInAmbientContext(target=es2015).types} | 0 ...ortHelpersInAmbientContext(target=es5).js} | 0 ...elpersInAmbientContext(target=es5).symbols | 148 + ...tHelpersInAmbientContext(target=es5).types | 170 + ...HelpersInIsolatedModules(target=es2015).js | 89 + ...sInIsolatedModules(target=es2015).symbols} | 0 ...ersInIsolatedModules(target=es2015).types} | 0 ...rtHelpersInIsolatedModules(target=es5).js} | 0 ...lpersInIsolatedModules(target=es5).symbols | 93 + ...HelpersInIsolatedModules(target=es5).types | 112 + .../importHelpersInTsx(target=es2015).js | 28 + ...importHelpersInTsx(target=es2015).symbols} | 0 ...> importHelpersInTsx(target=es2015).types} | 0 ...x.js => importHelpersInTsx(target=es5).js} | 0 .../importHelpersInTsx(target=es5).symbols | 67 + .../importHelpersInTsx(target=es5).types | 80 + ...EmitHelpersExportDefault(target=es2015).js | 36 + ...NoEmitHelpersExportDefault(target=es5).js} | 0 ...HelpersNoHelpers(target=es2015).errors.txt | 54 + .../importHelpersNoHelpers(target=es2015).js | 101 + ...rtHelpersNoHelpers(target=es2015).symbols} | 0 ...portHelpersNoHelpers(target=es2015).types} | 0 ...rtHelpersNoHelpers(target=es5).errors.txt} | 0 ... => importHelpersNoHelpers(target=es5).js} | 0 ...importHelpersNoHelpers(target=es5).symbols | 71 + .../importHelpersNoHelpers(target=es5).types | 104 + ...rAsyncGenerators(target=es2015).errors.txt | 26 + ...elpersForAsyncGenerators(target=es2015).js | 25 + ...ForAsyncGenerators(target=es2015).symbols} | 0 ...rsForAsyncGenerators(target=es2015).types} | 0 ...ForAsyncGenerators(target=es5).errors.txt} | 0 ...oHelpersForAsyncGenerators(target=es5).js} | 0 ...persForAsyncGenerators(target=es5).symbols | 15 + ...elpersForAsyncGenerators(target=es5).types | 32 + ...tHelpersNoModule(target=es2015).errors.txt | 31 + .../importHelpersNoModule(target=es2015).js | 81 + ...ortHelpersNoModule(target=es2015).symbols} | 0 ...mportHelpersNoModule(target=es2015).types} | 0 ...ortHelpersNoModule(target=es5).errors.txt} | 0 ...s => importHelpersNoModule(target=es5).js} | 0 .../importHelpersNoModule(target=es5).symbols | 50 + .../importHelpersNoModule(target=es5).types | 68 + ...tHelpersOutFile(target=es2015).errors.txt} | 0 .../importHelpersOutFile(target=es2015).js | 47 + ...portHelpersOutFile(target=es2015).symbols} | 0 ...importHelpersOutFile(target=es2015).types} | 0 ...mportHelpersOutFile(target=es5).errors.txt | 25 + ...js => importHelpersOutFile(target=es5).js} | 0 .../importHelpersOutFile(target=es5).symbols | 65 + .../importHelpersOutFile(target=es5).types | 86 + ...rtHelpersSystem(target=es2015).errors.txt} | 0 .../importHelpersSystem(target=es2015).js | 62 + ...mportHelpersSystem(target=es2015).symbols} | 0 ... importHelpersSystem(target=es2015).types} | 0 ...importHelpersSystem(target=es5).errors.txt | 20 + ....js => importHelpersSystem(target=es5).js} | 0 .../importHelpersSystem(target=es5).symbols | 58 + .../importHelpersSystem(target=es5).types | 76 + ...verridingMethod(target=es2015).errors.txt} | 0 ...AccessorOverridingMethod(target=es2015).js | 31 + ...orOverridingMethod(target=es2015).symbols} | 0 ...ssorOverridingMethod(target=es2015).types} | 0 ...sorOverridingMethod(target=es5).errors.txt | 20 + ...erAccessorOverridingMethod(target=es5).js} | 0 ...cessorOverridingMethod(target=es5).symbols | 28 + ...AccessorOverridingMethod(target=es5).types | 41 + ...PropertiesWithRenamedLet(target=es2015).js | 34 + ...tiesWithRenamedLet(target=es2015).symbols} | 0 ...ertiesWithRenamedLet(target=es2015).types} | 0 ...zePropertiesWithRenamedLet(target=es5).js} | 0 ...opertiesWithRenamedLet(target=es5).symbols | 47 + ...PropertiesWithRenamedLet(target=es5).types | 94 + ...p.js => inlineSourceMap(target=es2015).js} | 0 ...ineSourceMap(target=es2015).sourcemap.txt} | 0 ...=> inlineSourceMap(target=es2015).symbols} | 0 ...s => inlineSourceMap(target=es2015).types} | 0 .../reference/inlineSourceMap(target=es5).js | 10 + .../inlineSourceMap(target=es5).sourcemap.txt | 60 + .../inlineSourceMap(target=es5).symbols | 12 + .../inlineSourceMap(target=es5).types | 21 + ...nlineSourceMap2(target=es2015).errors.txt} | 0 ....js => inlineSourceMap2(target=es2015).js} | 0 ...neSourceMap2(target=es2015).sourcemap.txt} | 0 ...> inlineSourceMap2(target=es2015).symbols} | 0 ... => inlineSourceMap2(target=es2015).types} | 0 .../inlineSourceMap2(target=es5).errors.txt | 14 + .../reference/inlineSourceMap2(target=es5).js | 14 + ...inlineSourceMap2(target=es5).sourcemap.txt | 70 + .../inlineSourceMap2(target=es5).symbols | 14 + .../inlineSourceMap2(target=es5).types | 23 + ...> inlineSources(target=es2015).errors.txt} | 0 ...ces.js => inlineSources(target=es2015).js} | 0 ...ap => inlineSources(target=es2015).js.map} | 0 ...nlineSources(target=es2015).sourcemap.txt} | 0 ...s => inlineSources(target=es2015).symbols} | 0 ...pes => inlineSources(target=es2015).types} | 0 ...t => inlineSources(target=es5).errors.txt} | 0 .../reference/inlineSources(target=es5).js | 17 + .../inlineSources(target=es5).js.map | 3 + .../inlineSources(target=es5).sourcemap.txt | 113 + .../inlineSources(target=es5).symbols | 22 + .../reference/inlineSources(target=es5).types | 40 + .../inlineSources2(target=es2015).errors.txt | 12 + ...s2.js => inlineSources2(target=es2015).js} | 0 ...lineSources2(target=es2015).sourcemap.txt} | 0 ... => inlineSources2(target=es2015).symbols} | 0 ...es => inlineSources2(target=es2015).types} | 0 .../inlineSources2(target=es5).errors.txt | 12 + .../reference/inlineSources2(target=es5).js | 17 + .../inlineSources2(target=es5).sourcemap.txt | 113 + .../inlineSources2(target=es5).symbols | 22 + .../inlineSources2(target=es5).types | 40 + ...tES5UseGrouping(target=es2015).errors.txt} | 0 ...mberFormatES5UseGrouping(target=es2015).js | 16 + ...rmatES5UseGrouping(target=es2015).symbols} | 0 ...FormatES5UseGrouping(target=es2015).types} | 0 ...ormatES5UseGrouping(target=es5).errors.txt | 15 + ...NumberFormatES5UseGrouping(target=es5).js} | 0 ...erFormatES5UseGrouping(target=es5).symbols | 29 + ...mberFormatES5UseGrouping(target=es5).types | 77 + ...idNewTarget.es5(target=es2015).errors.txt} | 0 .../invalidNewTarget.es5(target=es2015).js | 52 + ...validNewTarget.es5(target=es2015).symbols} | 0 ...invalidNewTarget.es5(target=es2015).types} | 0 ...nvalidNewTarget.es5(target=es5).errors.txt | 78 + ...js => invalidNewTarget.es5(target=es5).js} | 0 .../invalidNewTarget.es5(target=es5).symbols | 69 + .../invalidNewTarget.es5(target=es5).types | 177 + ...larationVisibleNodeKinds(target=es2015).js | 181 + ...onVisibleNodeKinds(target=es2015).symbols} | 0 ...tionVisibleNodeKinds(target=es2015).types} | 0 ...eclarationVisibleNodeKinds(target=es5).js} | 0 ...rationVisibleNodeKinds(target=es5).symbols | 169 + ...larationVisibleNodeKinds(target=es5).types | 178 + ...rtExportElision(target=es2015).errors.txt} | 0 ...dulesImportExportElision(target=es2015).js | 63 + ...mportExportElision(target=es2015).symbols} | 0 ...sImportExportElision(target=es2015).types} | 0 ...ImportExportElision(target=es5).errors.txt | 27 + ...ModulesImportExportElision(target=es5).js} | 0 ...lesImportExportElision(target=es5).symbols | 34 + ...dulesImportExportElision(target=es5).types | 54 + ...esPlainFile-AMD(target=es2015).errors.txt} | 0 ...tedModulesPlainFile-AMD(target=es2015).js} | 0 ...dulesPlainFile-AMD(target=es2015).symbols} | 0 ...ModulesPlainFile-AMD(target=es2015).types} | 0 ...odulesPlainFile-AMD(target=es5).errors.txt | 8 + ...solatedModulesPlainFile-AMD(target=es5).js | 9 + ...edModulesPlainFile-AMD(target=es5).symbols | 10 + ...atedModulesPlainFile-AMD(target=es5).types | 17 + ...dulesPlainFile-CommonJS(target=es2015).js} | 0 ...PlainFile-CommonJS(target=es2015).symbols} | 0 ...esPlainFile-CommonJS(target=es2015).types} | 0 ...edModulesPlainFile-CommonJS(target=es5).js | 9 + ...ulesPlainFile-CommonJS(target=es5).symbols | 10 + ...odulesPlainFile-CommonJS(target=es5).types | 17 + ...lainFile-System(target=es2015).errors.txt} | 0 ...ModulesPlainFile-System(target=es2015).js} | 0 ...esPlainFile-System(target=es2015).symbols} | 0 ...ulesPlainFile-System(target=es2015).types} | 0 ...lesPlainFile-System(target=es5).errors.txt | 8 + ...atedModulesPlainFile-System(target=es5).js | 9 + ...odulesPlainFile-System(target=es5).symbols | 10 + ...dModulesPlainFile-System(target=es5).types | 17 + ...esPlainFile-UMD(target=es2015).errors.txt} | 0 ...tedModulesPlainFile-UMD(target=es2015).js} | 0 ...dulesPlainFile-UMD(target=es2015).symbols} | 0 ...ModulesPlainFile-UMD(target=es2015).types} | 0 ...odulesPlainFile-UMD(target=es5).errors.txt | 8 + ...solatedModulesPlainFile-UMD(target=es5).js | 9 + ...edModulesPlainFile-UMD(target=es5).symbols | 10 + ...atedModulesPlainFile-UMD(target=es5).types | 17 + ...nsClassExtendsVisibility(target=es2015).js | 47 + ...sExtendsVisibility(target=es2015).symbols} | 0 ...assExtendsVisibility(target=es2015).types} | 0 ...ionsClassExtendsVisibility(target=es5).js} | 0 ...ClassExtendsVisibility(target=es5).symbols | 46 + ...nsClassExtendsVisibility(target=es5).types | 82 + ...ntsGenericsSerialization(target=es2015).js | 63 + ...ericsSerialization(target=es2015).symbols} | 0 ...enericsSerialization(target=es2015).types} | 0 ...mentsGenericsSerialization(target=es5).js} | 0 ...sGenericsSerialization(target=es5).symbols | 38 + ...ntsGenericsSerialization(target=es5).types | 43 + ...ionsClassLeadingOptional(target=es2015).js | 21 + ...assLeadingOptional(target=es2015).symbols} | 0 ...ClassLeadingOptional(target=es2015).types} | 0 ...ationsClassLeadingOptional(target=es5).js} | 0 ...nsClassLeadingOptional(target=es5).symbols | 16 + ...ionsClassLeadingOptional(target=es5).types | 24 + ...ssLikeHeuristic(target=es2015).errors.txt} | 0 ...ationsClassLikeHeuristic(target=es2015).js | 20 + ...ClassLikeHeuristic(target=es2015).symbols} | 0 ...nsClassLikeHeuristic(target=es2015).types} | 0 ...sClassLikeHeuristic(target=es5).errors.txt | 10 + ...arationsClassLikeHeuristic(target=es5).js} | 0 ...ionsClassLikeHeuristic(target=es5).symbols | 15 + ...ationsClassLikeHeuristic(target=es5).types | 32 + ...sDeclarationsClassStatic(target=es2015).js | 69 + ...rationsClassStatic(target=es2015).symbols} | 0 ...larationsClassStatic(target=es2015).types} | 0 ... jsDeclarationsClassStatic(target=es5).js} | 0 ...eclarationsClassStatic(target=es5).symbols | 51 + ...sDeclarationsClassStatic(target=es5).types | 86 + ...StaticMethodAugmentation(target=es2015).js | 25 + ...MethodAugmentation(target=es2015).symbols} | 0 ...icMethodAugmentation(target=es2015).types} | 0 ...ssStaticMethodAugmentation(target=es5).js} | 0 ...aticMethodAugmentation(target=es5).symbols | 17 + ...StaticMethodAugmentation(target=es5).types | 28 + .../jsDeclarationsClasses(target=es2015).js | 486 + ...eclarationsClasses(target=es2015).symbols} | 0 ...sDeclarationsClasses(target=es2015).types} | 0 ...s => jsDeclarationsClasses(target=es5).js} | 0 .../jsDeclarationsClasses(target=es5).symbols | 309 + .../jsDeclarationsClasses(target=es5).types | 431 + ...tionsClassesErr(target=es2015).errors.txt} | 0 ...jsDeclarationsClassesErr(target=es2015).js | 183 + ...arationsClassesErr(target=es2015).symbols} | 0 ...clarationsClassesErr(target=es2015).types} | 0 ...larationsClassesErr(target=es5).errors.txt | 136 + ...> jsDeclarationsClassesErr(target=es5).js} | 0 ...DeclarationsClassesErr(target=es5).symbols | 155 + ...jsDeclarationsClassesErr(target=es5).types | 209 + ...eclarationsComputedNames(target=es2015).js | 82 + ...tionsComputedNames(target=es2015).symbols} | 0 ...rationsComputedNames(target=es2015).types} | 0 ...sDeclarationsComputedNames(target=es5).js} | 0 ...larationsComputedNames(target=es5).symbols | 70 + ...eclarationsComputedNames(target=es5).types | 126 + ...sCrossfileMerge(target=es2015).errors.txt} | 0 ...clarationsCrossfileMerge(target=es2015).js | 33 + ...ionsCrossfileMerge(target=es2015).symbols} | 0 ...ationsCrossfileMerge(target=es2015).types} | 0 ...tionsCrossfileMerge(target=es5).errors.txt | 17 + ...DeclarationsCrossfileMerge(target=es5).js} | 0 ...arationsCrossfileMerge(target=es5).symbols | 30 + ...clarationsCrossfileMerge(target=es5).types | 54 + .../jsDeclarationsDefault(target=es2015).js | 109 + ...eclarationsDefault(target=es2015).symbols} | 0 ...sDeclarationsDefault(target=es2015).types} | 0 ...s => jsDeclarationsDefault(target=es5).js} | 0 .../jsDeclarationsDefault(target=es5).symbols | 68 + .../jsDeclarationsDefault(target=es5).types | 90 + ...ionsDefaultsErr(target=es2015).errors.txt} | 0 ...sDeclarationsDefaultsErr(target=es2015).js | 72 + ...rationsDefaultsErr(target=es2015).symbols} | 0 ...larationsDefaultsErr(target=es2015).types} | 0 ...arationsDefaultsErr(target=es5).errors.txt | 34 + ... jsDeclarationsDefaultsErr(target=es5).js} | 0 ...eclarationsDefaultsErr(target=es5).symbols | 42 + ...sDeclarationsDefaultsErr(target=es5).types | 56 + ...tionsDocCommentsOnConsts(target=es2015).js | 44 + ...ocCommentsOnConsts(target=es2015).symbols} | 0 ...sDocCommentsOnConsts(target=es2015).types} | 0 ...rationsDocCommentsOnConsts(target=es5).js} | 0 ...onsDocCommentsOnConsts(target=es5).symbols | 29 + ...tionsDocCommentsOnConsts(target=es5).types | 47 + .../jsDeclarationsEnumTag(target=es2015).js | 128 + ...eclarationsEnumTag(target=es2015).symbols} | 0 ...sDeclarationsEnumTag(target=es2015).types} | 0 ...s => jsDeclarationsEnumTag(target=es5).js} | 0 .../jsDeclarationsEnumTag(target=es5).symbols | 106 + .../jsDeclarationsEnumTag(target=es5).types | 178 + ...clarationsEnums(target=es2015).errors.txt} | 0 .../jsDeclarationsEnums(target=es2015).js | 167 + ...sDeclarationsEnums(target=es2015).symbols} | 0 ... jsDeclarationsEnums(target=es2015).types} | 0 ...jsDeclarationsEnums(target=es5).errors.txt | 101 + ....js => jsDeclarationsEnums(target=es5).js} | 0 .../jsDeclarationsEnums(target=es5).symbols | 136 + .../jsDeclarationsEnums(target=es5).types | 243 + ...tAssignedClassExpression(target=es2015).js | 32 + ...nedClassExpression(target=es2015).symbols} | 0 ...ignedClassExpression(target=es2015).types} | 0 ...ortAssignedClassExpression(target=es5).js} | 0 ...ssignedClassExpression(target=es5).symbols | 22 + ...tAssignedClassExpression(target=es5).types | 40 + ...ClassExpressionAnonymous(target=es2015).js | 32 + ...xpressionAnonymous(target=es2015).symbols} | 0 ...sExpressionAnonymous(target=es2015).types} | 0 ...edClassExpressionAnonymous(target=es5).js} | 0 ...assExpressionAnonymous(target=es5).symbols | 21 + ...ClassExpressionAnonymous(target=es5).types | 38 + ...pressionAnonymousWithSub(target=es2015).js | 49 + ...onAnonymousWithSub(target=es2015).symbols} | 0 ...sionAnonymousWithSub(target=es2015).types} | 0 ...ExpressionAnonymousWithSub(target=es5).js} | 0 ...essionAnonymousWithSub(target=es5).symbols | 39 + ...pressionAnonymousWithSub(target=es5).types | 76 + ...ClassExpressionShadowing(target=es2015).js | 50 + ...xpressionShadowing(target=es2015).symbols} | 0 ...sExpressionShadowing(target=es2015).types} | 0 ...edClassExpressionShadowing(target=es5).js} | 0 ...assExpressionShadowing(target=es5).symbols | 38 + ...ClassExpressionShadowing(target=es5).types | 70 + ...rtAssignedClassInstance1(target=es2015).js | 18 + ...gnedClassInstance1(target=es2015).symbols} | 0 ...signedClassInstance1(target=es2015).types} | 0 ...portAssignedClassInstance1(target=es5).js} | 0 ...AssignedClassInstance1(target=es5).symbols | 12 + ...rtAssignedClassInstance1(target=es5).types | 21 + ...rtAssignedClassInstance2(target=es2015).js | 27 + ...gnedClassInstance2(target=es2015).symbols} | 0 ...signedClassInstance2(target=es2015).types} | 0 ...portAssignedClassInstance2(target=es5).js} | 0 ...AssignedClassInstance2(target=es5).symbols | 19 + ...rtAssignedClassInstance2(target=es5).types | 34 + ...rtAssignedClassInstance3(target=es2015).js | 26 + ...gnedClassInstance3(target=es2015).symbols} | 0 ...signedClassInstance3(target=es2015).types} | 0 ...portAssignedClassInstance3(target=es5).js} | 0 ...AssignedClassInstance3(target=es5).symbols | 26 + ...rtAssignedClassInstance3(target=es5).types | 50 + ...gnedConstructorFunction(target=es2015).js} | 0 ...onstructorFunction(target=es2015).symbols} | 0 ...dConstructorFunction(target=es2015).types} | 0 ...AssignedConstructorFunction(target=es5).js | 28 + ...nedConstructorFunction(target=es5).symbols | 30 + ...ignedConstructorFunction(target=es5).types | 59 + ...FunctionWithSub(target=es2015).errors.txt} | 0 ...structorFunctionWithSub(target=es2015).js} | 0 ...torFunctionWithSub(target=es2015).symbols} | 0 ...uctorFunctionWithSub(target=es2015).types} | 0 ...ctorFunctionWithSub(target=es5).errors.txt | 20 + ...dConstructorFunctionWithSub(target=es5).js | 26 + ...tructorFunctionWithSub(target=es5).symbols | 42 + ...nstructorFunctionWithSub(target=es5).types | 92 + ...ExportAssignedVisibility(target=es2015).js | 46 + ...AssignedVisibility(target=es2015).symbols} | 0 ...rtAssignedVisibility(target=es2015).types} | 0 ...nsExportAssignedVisibility(target=es5).js} | 0 ...portAssignedVisibility(target=es5).symbols | 40 + ...ExportAssignedVisibility(target=es5).types | 72 + ...tExpressionPlusSecondary(target=es2015).js | 42 + ...ssionPlusSecondary(target=es2015).symbols} | 0 ...ressionPlusSecondary(target=es2015).types} | 0 ...entExpressionPlusSecondary(target=es5).js} | 0 ...xpressionPlusSecondary(target=es5).symbols | 39 + ...tExpressionPlusSecondary(target=es5).types | 75 + ...ssignmentWithKeywordName(target=es2015).js | 30 + ...entWithKeywordName(target=es2015).symbols} | 0 ...nmentWithKeywordName(target=es2015).types} | 0 ...tAssignmentWithKeywordName(target=es5).js} | 0 ...ignmentWithKeywordName(target=es5).symbols | 25 + ...ssignmentWithKeywordName(target=es5).types | 47 + ...sDeclarationsExportForms(target=es2015).js | 143 + ...rationsExportForms(target=es2015).symbols} | 0 ...larationsExportForms(target=es2015).types} | 0 ... jsDeclarationsExportForms(target=es5).js} | 0 ...eclarationsExportForms(target=es5).symbols | 113 + ...sDeclarationsExportForms(target=es5).types | 170 + ...nsExportFormsErr(target=es2015).errors.txt | 40 + ...clarationsExportFormsErr(target=es2015).js | 51 + ...ionsExportFormsErr(target=es2015).symbols} | 0 ...ationsExportFormsErr(target=es2015).types} | 0 ...ionsExportFormsErr(target=es5).errors.txt} | 0 ...DeclarationsExportFormsErr(target=es5).js} | 0 ...arationsExportFormsErr(target=es5).symbols | 31 + ...clarationsExportFormsErr(target=es5).types | 45 + ...sExportSpecifierNonlocal(target=es2015).js | 25 + ...tSpecifierNonlocal(target=es2015).symbols} | 0 ...ortSpecifierNonlocal(target=es2015).types} | 0 ...onsExportSpecifierNonlocal(target=es5).js} | 0 ...xportSpecifierNonlocal(target=es5).symbols | 15 + ...sExportSpecifierNonlocal(target=es5).types | 20 + ...ionsExportSubAssignments(target=es2015).js | 33 + ...portSubAssignments(target=es2015).symbols} | 0 ...ExportSubAssignments(target=es2015).types} | 0 ...ationsExportSubAssignments(target=es5).js} | 0 ...nsExportSubAssignments(target=es5).symbols | 30 + ...ionsExportSubAssignments(target=es5).types | 54 + ...assesCjsExportAssignment(target=es2015).js | 271 + ...jsExportAssignment(target=es2015).symbols} | 0 ...sCjsExportAssignment(target=es2015).types} | 0 ...ClassesCjsExportAssignment(target=es5).js} | 0 ...sesCjsExportAssignment(target=es5).symbols | 121 + ...assesCjsExportAssignment(target=es5).types | 196 + ...eclarationsFunctionJSDoc(target=es2015).js | 104 + ...tionsFunctionJSDoc(target=es2015).symbols} | 0 ...rationsFunctionJSDoc(target=es2015).types} | 0 ...sDeclarationsFunctionJSDoc(target=es5).js} | 0 ...larationsFunctionJSDoc(target=es5).symbols | 52 + ...eclarationsFunctionJSDoc(target=es5).types | 67 + ...ionsFunctionKeywordProp(target=es2015).js} | 0 ...unctionKeywordProp(target=es2015).symbols} | 0 ...sFunctionKeywordProp(target=es2015).types} | 0 ...arationsFunctionKeywordProp(target=es5).js | 43 + ...onsFunctionKeywordProp(target=es5).symbols | 37 + ...tionsFunctionKeywordProp(target=es5).types | 75 + ...onKeywordPropExhaustive(target=es2015).js} | 0 ...wordPropExhaustive(target=es2015).symbols} | 0 ...eywordPropExhaustive(target=es2015).types} | 0 ...nctionKeywordPropExhaustive(target=es5).js | 297 + ...nKeywordPropExhaustive(target=es5).symbols | 398 + ...ionKeywordPropExhaustive(target=es5).types | 945 + ...tionsFunctionLikeClasses(target=es2015).js | 69 + ...unctionLikeClasses(target=es2015).symbols} | 0 ...sFunctionLikeClasses(target=es2015).types} | 0 ...rationsFunctionLikeClasses(target=es5).js} | 0 ...onsFunctionLikeClasses(target=es5).symbols | 57 + ...tionsFunctionLikeClasses(target=es5).types | 107 + ...ionsFunctionLikeClasses2(target=es2015).js | 195 + ...nctionLikeClasses2(target=es2015).symbols} | 0 ...FunctionLikeClasses2(target=es2015).types} | 0 ...ationsFunctionLikeClasses2(target=es5).js} | 0 ...nsFunctionLikeClasses2(target=es5).symbols | 202 + ...ionsFunctionLikeClasses2(target=es5).types | 408 + ...FunctionPrototypeStatic(target=es2015).js} | 0 ...ionPrototypeStatic(target=es2015).symbols} | 0 ...ctionPrototypeStatic(target=es2015).types} | 0 ...ionsFunctionPrototypeStatic(target=es5).js | 46 + ...unctionPrototypeStatic(target=es5).symbols | 34 + ...sFunctionPrototypeStatic(target=es5).types | 64 + ...tionsInterfaces(target=es2015).errors.txt} | 0 ...jsDeclarationsInterfaces(target=es2015).js | 236 + ...arationsInterfaces(target=es2015).symbols} | 0 ...clarationsInterfaces(target=es2015).types} | 0 ...larationsInterfaces(target=es5).errors.txt | 212 + ...> jsDeclarationsInterfaces(target=es5).js} | 0 ...DeclarationsInterfaces(target=es5).symbols | 282 + ...jsDeclarationsInterfaces(target=es5).types | 246 + .../jsDeclarationsJson(target=es2015).js | 48 + ...jsDeclarationsJson(target=es2015).symbols} | 0 ...> jsDeclarationsJson(target=es2015).types} | 0 ...n.js => jsDeclarationsJson(target=es5).js} | 0 .../jsDeclarationsJson(target=es5).symbols | 35 + .../jsDeclarationsJson(target=es5).types | 88 + ...arationsMissingGenerics(target=es2015).js} | 0 ...onsMissingGenerics(target=es2015).symbols} | 0 ...tionsMissingGenerics(target=es2015).types} | 0 ...DeclarationsMissingGenerics(target=es5).js | 32 + ...rationsMissingGenerics(target=es5).symbols | 17 + ...larationsMissingGenerics(target=es5).types | 21 + ...nsMissingTypeParameters(target=es2015).js} | 0 ...singTypeParameters(target=es2015).symbols} | 0 ...issingTypeParameters(target=es2015).types} | 0 ...ationsMissingTypeParameters(target=es5).js | 61 + ...sMissingTypeParameters(target=es5).symbols | 30 + ...onsMissingTypeParameters(target=es5).types | 36 + ...nsModuleReferenceHasEmit(target=es2015).js | 43 + ...leReferenceHasEmit(target=es2015).symbols} | 0 ...duleReferenceHasEmit(target=es2015).types} | 0 ...ionsModuleReferenceHasEmit(target=es5).js} | 0 ...ModuleReferenceHasEmit(target=es5).symbols | 20 + ...nsModuleReferenceHasEmit(target=es5).types | 22 + ...sMultipleExportFromMerge(target=es2015).js | 50 + ...pleExportFromMerge(target=es2015).symbols} | 0 ...tipleExportFromMerge(target=es2015).types} | 0 ...onsMultipleExportFromMerge(target=es5).js} | 0 ...ultipleExportFromMerge(target=es5).symbols | 46 + ...sMultipleExportFromMerge(target=es5).types | 70 + ...sDeclarationsPackageJson(target=es2015).js | 107 + ...rationsPackageJson(target=es2015).symbols} | 0 ...larationsPackageJson(target=es2015).types} | 0 ... jsDeclarationsPackageJson(target=es5).js} | 0 ...eclarationsPackageJson(target=es5).symbols | 88 + ...sDeclarationsPackageJson(target=es5).types | 169 + ...larationsReactComponents(target=es2015).js | 218 + ...onsReactComponents(target=es2015).symbols} | 0 ...tionsReactComponents(target=es2015).types} | 0 ...eclarationsReactComponents(target=es5).js} | 0 ...rationsReactComponents(target=es5).symbols | 201 + ...larationsReactComponents(target=es5).types | 347 + ...larationsReexportAliases(target=es2015).js | 29 + ...onsReexportAliases(target=es2015).symbols} | 0 ...tionsReexportAliases(target=es2015).types} | 0 ...eclarationsReexportAliases(target=es5).js} | 0 ...rationsReexportAliases(target=es5).symbols | 19 + ...larationsReexportAliases(target=es5).types | 28 + ...rtAliasesEsModuleInterop(target=es2015).js | 32 + ...sesEsModuleInterop(target=es2015).symbols} | 0 ...iasesEsModuleInterop(target=es2015).types} | 0 ...portAliasesEsModuleInterop(target=es5).js} | 0 ...AliasesEsModuleInterop(target=es5).symbols | 25 + ...rtAliasesEsModuleInterop(target=es5).types | 40 + ...ationsReexportedCjsAlias(target=es2015).js | 64 + ...ReexportedCjsAlias(target=es2015).symbols} | 0 ...nsReexportedCjsAlias(target=es2015).types} | 0 ...arationsReexportedCjsAlias(target=es5).js} | 0 ...ionsReexportedCjsAlias(target=es5).symbols | 55 + ...ationsReexportedCjsAlias(target=es5).types | 89 + ...hThisTypeInJSDocFunction(target=es2015).js | 27 + ...ypeInJSDocFunction(target=es2015).symbols} | 0 ...sTypeInJSDocFunction(target=es2015).types} | 0 ...ithThisTypeInJSDocFunction(target=es5).js} | 0 ...hisTypeInJSDocFunction(target=es5).symbols | 14 + ...hThisTypeInJSDocFunction(target=es5).types | 17 + ...clarationsTypeReferences(target=es2015).js | 31 + ...ionsTypeReferences(target=es2015).symbols} | 0 ...ationsTypeReferences(target=es2015).types} | 0 ...DeclarationsTypeReferences(target=es5).js} | 0 ...arationsTypeReferences(target=es5).symbols | 33 + ...clarationsTypeReferences(target=es5).types | 53 + ...larationsTypeReferences2(target=es2015).js | 38 + ...onsTypeReferences2(target=es2015).symbols} | 0 ...tionsTypeReferences2(target=es2015).types} | 0 ...eclarationsTypeReferences2(target=es5).js} | 0 ...rationsTypeReferences2(target=es5).symbols | 37 + ...larationsTypeReferences2(target=es5).types | 66 + ...larationsTypeReferences3(target=es2015).js | 33 + ...onsTypeReferences3(target=es2015).symbols} | 0 ...tionsTypeReferences3(target=es2015).types} | 0 ...eclarationsTypeReferences3(target=es5).js} | 0 ...rationsTypeReferences3(target=es5).symbols | 40 + ...larationsTypeReferences3(target=es5).types | 72 + ...TypeReferences4(target=es2015).errors.txt} | 0 ...larationsTypeReferences4(target=es2015).js | 44 + ...onsTypeReferences4(target=es2015).symbols} | 0 ...tionsTypeReferences4(target=es2015).types} | 0 ...ionsTypeReferences4(target=es5).errors.txt | 23 + ...eclarationsTypeReferences4(target=es5).js} | 0 ...rationsTypeReferences4(target=es5).symbols | 39 + ...larationsTypeReferences4(target=es5).types | 58 + ...nArrayWrongType(target=es2015).errors.txt} | 0 ...sxChildrenArrayWrongType(target=es2015).js | 26 + ...drenArrayWrongType(target=es2015).symbols} | 0 ...ildrenArrayWrongType(target=es2015).types} | 0 ...ldrenArrayWrongType(target=es5).errors.txt | 29 + ... jsxChildrenArrayWrongType(target=es5).js} | 0 ...ChildrenArrayWrongType(target=es5).symbols | 35 + ...sxChildrenArrayWrongType(target=es5).types | 55 + ...fiedNameWithEs5(target=es2015).errors.txt} | 0 ...toryQualifiedNameWithEs5(target=es2015).js | 26 + ...alifiedNameWithEs5(target=es2015).symbols} | 0 ...QualifiedNameWithEs5(target=es2015).types} | 0 ...ualifiedNameWithEs5(target=es5).errors.txt | 16 + ...actoryQualifiedNameWithEs5(target=es5).js} | 0 ...ryQualifiedNameWithEs5(target=es5).symbols | 22 + ...toryQualifiedNameWithEs5(target=es5).types | 40 + ...stInLoopNoCrash1(target=es2015).errors.txt | 15 + ...rationListInLoopNoCrash1(target=es2015).js | 17 + ...ListInLoopNoCrash1(target=es5).errors.txt} | 0 ...larationListInLoopNoCrash1(target=es5).js} | 0 ...stInLoopNoCrash2(target=es2015).errors.txt | 12 + ...rationListInLoopNoCrash2(target=es2015).js | 17 + ...larationListInLoopNoCrash2(target=es5).js} | 0 ...stInLoopNoCrash3(target=es2015).errors.txt | 79 + ...rationListInLoopNoCrash3(target=es2015).js | 65 + ...ListInLoopNoCrash3(target=es5).errors.txt} | 0 ...larationListInLoopNoCrash3(target=es5).js} | 0 ...stInLoopNoCrash4(target=es2015).errors.txt | 75 + ...rationListInLoopNoCrash4(target=es2015).js | 57 + ...ListInLoopNoCrash4(target=es5).errors.txt} | 0 ...larationListInLoopNoCrash4(target=es5).js} | 0 ...stInCaseClauses(target=es2015).errors.txt} | 0 .../letConstInCaseClauses(target=es2015).js | 62 + ...ConstInCaseClauses(target=es2015).symbols} | 0 ...etConstInCaseClauses(target=es2015).types} | 0 ...tConstInCaseClauses(target=es5).errors.txt | 38 + ...s => letConstInCaseClauses(target=es5).js} | 0 .../letConstInCaseClauses(target=es5).symbols | 65 + .../letConstInCaseClauses(target=es5).types | 123 + ...stMatchingParameterNames(target=es2015).js | 30 + ...hingParameterNames(target=es2015).symbols} | 0 ...tchingParameterNames(target=es2015).types} | 0 ...onstMatchingParameterNames(target=es5).js} | 0 ...MatchingParameterNames(target=es5).symbols | 37 + ...stMatchingParameterNames(target=es5).types | 60 + .../letDeclarations-es5(target=es2015).js | 25 + ...etDeclarations-es5(target=es2015).symbols} | 0 ... letDeclarations-es5(target=es2015).types} | 0 ....js => letDeclarations-es5(target=es5).js} | 0 .../letDeclarations-es5(target=es5).symbols | 34 + .../letDeclarations-es5(target=es5).types | 62 + .../letDeclarations-es5-1(target=es2015).js | 17 + ...Declarations-es5-1(target=es2015).symbols} | 0 ...etDeclarations-es5-1(target=es2015).types} | 0 ...s => letDeclarations-es5-1(target=es5).js} | 0 .../letDeclarations-es5-1(target=es5).symbols | 26 + .../letDeclarations-es5-1(target=es5).types | 40 + ...eclarations_ES5(target=es2015).errors.txt} | 0 ...tInConstDeclarations_ES5(target=es2015).js | 16 + ...stDeclarations_ES5(target=es2015).symbols} | 0 ...onstDeclarations_ES5(target=es2015).types} | 0 ...nstDeclarations_ES5(target=es5).errors.txt | 15 + ...letInConstDeclarations_ES5(target=es5).js} | 0 ...nConstDeclarations_ES5(target=es5).symbols | 13 + ...tInConstDeclarations_ES5(target=es5).types | 25 + ...rOfAndForIn_ES5(target=es2015).errors.txt} | 0 ...tDeclOfForOfAndForIn_ES5(target=es2015).js | 36 + ...fForOfAndForIn_ES5(target=es2015).symbols} | 0 ...lOfForOfAndForIn_ES5(target=es2015).types} | 0 ...OfForOfAndForIn_ES5(target=es5).errors.txt | 47 + ...nstDeclOfForOfAndForIn_ES5(target=es5).js} | 0 ...eclOfForOfAndForIn_ES5(target=es5).symbols | 31 + ...tDeclOfForOfAndForIn_ES5(target=es5).types | 103 + ...eclarations_ES5(target=es2015).errors.txt} | 0 ...letInLetDeclarations_ES5(target=es2015).js | 16 + ...etDeclarations_ES5(target=es2015).symbols} | 0 ...nLetDeclarations_ES5(target=es2015).types} | 0 ...LetDeclarations_ES5(target=es5).errors.txt | 15 + ...> letInLetDeclarations_ES5(target=es5).js} | 0 ...tInLetDeclarations_ES5(target=es5).symbols | 13 + ...letInLetDeclarations_ES5(target=es5).types | 25 + ...letInVarDeclOfForIn_ES5(target=es2015).js} | 0 ...VarDeclOfForIn_ES5(target=es2015).symbols} | 0 ...InVarDeclOfForIn_ES5(target=es2015).types} | 0 .../letInVarDeclOfForIn_ES5(target=es5).js | 17 + ...etInVarDeclOfForIn_ES5(target=es5).symbols | 12 + .../letInVarDeclOfForIn_ES5(target=es5).types | 30 + .../letInVarDeclOfForOf_ES5(target=es2015).js | 17 + ...VarDeclOfForOf_ES5(target=es2015).symbols} | 0 ...InVarDeclOfForOf_ES5(target=es2015).types} | 0 ...=> letInVarDeclOfForOf_ES5(target=es5).js} | 0 ...etInVarDeclOfForOf_ES5(target=es5).symbols | 12 + .../letInVarDeclOfForOf_ES5(target=es5).types | 30 + ...txt => literals(target=es2015).errors.txt} | 0 ...literals.js => literals(target=es2015).js} | 0 ...ymbols => literals(target=es2015).symbols} | 0 ...ls.types => literals(target=es2015).types} | 0 .../reference/literals(target=es5).errors.txt | 59 + .../reference/literals(target=es5).js | 75 + .../reference/literals(target=es5).symbols | 88 + .../reference/literals(target=es5).types | 163 + .../reference/localTypes1(target=es2015).js | 275 + ...ols => localTypes1(target=es2015).symbols} | 0 ...types => localTypes1(target=es2015).types} | 0 ...alTypes1.js => localTypes1(target=es5).js} | 0 .../reference/localTypes1(target=es5).symbols | 358 + .../reference/localTypes1(target=es5).types | 540 + .../manyConstExports(target=es2015).js | 10006 ++++++ ...> manyConstExports(target=es2015).symbols} | 0 ... => manyConstExports(target=es2015).types} | 0 ...rts.js => manyConstExports(target=es5).js} | 0 .../manyConstExports(target=es5).symbols | 15003 ++++++++ .../manyConstExports(target=es5).types | 30003 ++++++++++++++++ ...ssFromAlias(strict=false,target=es2015).js | 80 + ...Alias(strict=false,target=es2015).symbols} | 0 ...omAlias(strict=false,target=es2015).types} | 0 ...lassFromAlias(strict=false,target=es5).js} | 0 ...romAlias(strict=false,target=es5).symbols} | 0 ...ssFromAlias(strict=false,target=es5).types | 65 + ...ias(strict=true,target=es2015).errors.txt} | 0 ...assFromAlias(strict=true,target=es2015).js | 79 + ...omAlias(strict=true,target=es2015).symbols | 49 + ...romAlias(strict=true,target=es2015).types} | 0 ...omAlias(strict=true,target=es5).errors.txt | 33 + ...ClassFromAlias(strict=true,target=es5).js} | 0 ...sFromAlias(strict=true,target=es5).symbols | 49 + ...assFromAlias(strict=true,target=es5).types | 67 + ...etadataOfClassFromAlias2(target=es2015).js | 46 + ...aOfClassFromAlias2(target=es2015).symbols} | 0 ...ataOfClassFromAlias2(target=es2015).types} | 0 ... metadataOfClassFromAlias2(target=es5).js} | 0 ...adataOfClassFromAlias2(target=es5).symbols | 29 + ...etadataOfClassFromAlias2(target=es5).types | 38 + ...etadataOfClassFromModule(target=es2015).js | 40 + ...aOfClassFromModule(target=es2015).symbols} | 0 ...ataOfClassFromModule(target=es2015).types} | 0 ... metadataOfClassFromModule(target=es5).js} | 0 ...adataOfClassFromModule(target=es5).symbols | 24 + ...etadataOfClassFromModule(target=es5).types | 30 + .../metadataOfEventAlias(target=es2015).js | 32 + ...tadataOfEventAlias(target=es2015).symbols} | 0 ...metadataOfEventAlias(target=es2015).types} | 0 ...js => metadataOfEventAlias(target=es5).js} | 0 .../metadataOfEventAlias(target=es5).symbols | 24 + .../metadataOfEventAlias(target=es5).types | 29 + ...n(strictnullchecks=false,target=es2015).js | 56 + ...ctnullchecks=false,target=es2015).symbols} | 0 ...rictnullchecks=false,target=es2015).types} | 0 ...ion(strictnullchecks=false,target=es5).js} | 0 ...trictnullchecks=false,target=es5).symbols} | 0 ...n(strictnullchecks=false,target=es5).types | 49 + ...nullchecks=true,target=es2015).errors.txt} | 0 ...on(strictnullchecks=true,target=es2015).js | 56 + ...rictnullchecks=true,target=es2015).symbols | 40 + ...trictnullchecks=true,target=es2015).types} | 0 ...rictnullchecks=true,target=es5).errors.txt | 24 + ...nion(strictnullchecks=true,target=es5).js} | 0 ...(strictnullchecks=true,target=es5).symbols | 40 + ...on(strictnullchecks=true,target=es5).types | 50 + ...dContainingLocalFunction(target=es2015).js | 103 + ...iningLocalFunction(target=es2015).symbols} | 0 ...tainingLocalFunction(target=es2015).types} | 0 ...hodContainingLocalFunction(target=es5).js} | 0 ...ontainingLocalFunction(target=es5).symbols | 124 + ...dContainingLocalFunction(target=es5).types | 177 + ...ngDecoratorType(target=es2015).errors.txt} | 0 .../missingDecoratorType(target=es2015).js | 36 + ...ssingDecoratorType(target=es2015).symbols} | 0 ...missingDecoratorType(target=es2015).types} | 0 ...issingDecoratorType(target=es5).errors.txt | 23 + ...js => missingDecoratorType(target=es5).js} | 0 .../missingDecoratorType(target=es5).symbols | 46 + .../missingDecoratorType(target=es5).types | 38 + .../modifierParenCast(target=es2015).js | 22 + ... modifierParenCast(target=es2015).symbols} | 0 ...=> modifierParenCast(target=es2015).types} | 0 ...st.js => modifierParenCast(target=es5).js} | 0 .../modifierParenCast(target=es5).symbols | 35 + .../modifierParenCast(target=es5).types | 59 + ...OnlyES6ArrayLib(target=es2015).errors.txt} | 0 ...rrayWithOnlyES6ArrayLib(target=es2015).js} | 0 ...ithOnlyES6ArrayLib(target=es2015).symbols} | 0 ...yWithOnlyES6ArrayLib(target=es2015).types} | 0 ...WithOnlyES6ArrayLib(target=es5).errors.txt | 21 + ...ES6ArrayWithOnlyES6ArrayLib(target=es5).js | 17 + ...rayWithOnlyES6ArrayLib(target=es5).symbols | 17 + ...ArrayWithOnlyES6ArrayLib(target=es5).types | 39 + ...ingES5LibAndES6ArrayLib(target=es2015).js} | 0 ...5LibAndES6ArrayLib(target=es2015).symbols} | 0 ...ES5LibAndES6ArrayLib(target=es2015).types} | 0 ...y_UsingES5LibAndES6ArrayLib(target=es5).js | 16 + ...ngES5LibAndES6ArrayLib(target=es5).symbols | 20 + ...singES5LibAndES6ArrayLib(target=es5).types | 39 + ...entationGlobal8(target=es2015).errors.txt} | 0 ...duleAugmentationGlobal8(target=es2015).js} | 0 ...ugmentationGlobal8(target=es2015).symbols} | 0 ...eAugmentationGlobal8(target=es2015).types} | 0 ...AugmentationGlobal8(target=es5).errors.txt | 13 + .../moduleAugmentationGlobal8(target=es5).js | 13 + ...uleAugmentationGlobal8(target=es5).symbols | 17 + ...oduleAugmentationGlobal8(target=es5).types | 15 + ...tationGlobal8_1(target=es2015).errors.txt} | 0 ...leAugmentationGlobal8_1(target=es2015).js} | 0 ...mentationGlobal8_1(target=es2015).symbols} | 0 ...ugmentationGlobal8_1(target=es2015).types} | 0 ...gmentationGlobal8_1(target=es5).errors.txt | 16 + ...moduleAugmentationGlobal8_1(target=es5).js | 13 + ...eAugmentationGlobal8_1(target=es5).symbols | 17 + ...uleAugmentationGlobal8_1(target=es5).types | 15 + ...sBundledOutput1(target=es2015).errors.txt} | 0 ...mentationsBundledOutput1(target=es2015).js | 141 + ...ionsBundledOutput1(target=es2015).symbols} | 0 ...ationsBundledOutput1(target=es2015).types} | 0 ...tionsBundledOutput1(target=es5).errors.txt | 59 + ...ugmentationsBundledOutput1(target=es5).js} | 0 ...ntationsBundledOutput1(target=es5).symbols | 138 + ...mentationsBundledOutput1(target=es5).types | 252 + .../reference/moduledecl(target=es2015).js | 488 + ...bols => moduledecl(target=es2015).symbols} | 0 ....types => moduledecl(target=es2015).types} | 0 ...oduledecl.js => moduledecl(target=es5).js} | 0 .../reference/moduledecl(target=es5).symbols | 539 + .../reference/moduledecl(target=es5).types | 701 + ...efaultExports01(target=es2015).errors.txt} | 0 ...multipleDefaultExports01(target=es2015).js | 38 + ...leDefaultExports01(target=es2015).symbols} | 0 ...ipleDefaultExports01(target=es2015).types} | 0 ...pleDefaultExports01(target=es5).errors.txt | 45 + ...> multipleDefaultExports01(target=es5).js} | 0 ...ltipleDefaultExports01(target=es5).symbols | 26 + ...multipleDefaultExports01(target=es5).types | 36 + ...efaultExports02(target=es2015).errors.txt} | 0 ...multipleDefaultExports02(target=es2015).js | 33 + ...leDefaultExports02(target=es2015).symbols} | 0 ...ipleDefaultExports02(target=es2015).types} | 0 ...pleDefaultExports02(target=es5).errors.txt | 27 + ...> multipleDefaultExports02(target=es5).js} | 0 ...ltipleDefaultExports02(target=es5).symbols | 20 + ...multipleDefaultExports02(target=es5).types | 26 + ...efaultExports03(target=es2015).errors.txt} | 0 ...multipleDefaultExports03(target=es2015).js | 18 + ...leDefaultExports03(target=es2015).symbols} | 0 ...ipleDefaultExports03(target=es2015).types} | 0 ...pleDefaultExports03(target=es5).errors.txt | 16 + ...> multipleDefaultExports03(target=es5).js} | 0 ...ltipleDefaultExports03(target=es5).symbols | 10 + ...multipleDefaultExports03(target=es5).types | 12 + ...efaultExports04(target=es2015).errors.txt} | 0 ...ultipleDefaultExports04(target=es2015).js} | 0 ...leDefaultExports04(target=es2015).symbols} | 0 ...ipleDefaultExports04(target=es2015).types} | 0 ...pleDefaultExports04(target=es5).errors.txt | 20 + .../multipleDefaultExports04(target=es5).js | 18 + ...ltipleDefaultExports04(target=es5).symbols | 10 + ...multipleDefaultExports04(target=es5).types | 12 + ...efaultExports05(target=es2015).errors.txt} | 0 ...multipleDefaultExports05(target=es2015).js | 22 + ...leDefaultExports05(target=es2015).symbols} | 0 ...ipleDefaultExports05(target=es2015).types} | 0 ...pleDefaultExports05(target=es5).errors.txt | 21 + ...> multipleDefaultExports05(target=es5).js} | 0 ...ltipleDefaultExports05(target=es5).symbols | 12 + ...multipleDefaultExports05(target=es5).types | 15 + ...WithOnlyInnerLetCaptured(target=es2015).js | 13 + ...lyInnerLetCaptured(target=es2015).symbols} | 0 ...OnlyInnerLetCaptured(target=es2015).types} | 0 ...opWithOnlyInnerLetCaptured(target=es5).js} | 0 ...thOnlyInnerLetCaptured(target=es5).symbols | 17 + ...WithOnlyInnerLetCaptured(target=es5).types | 26 + .../reference/nestedLoops(target=es2015).js | 36 + ...ols => nestedLoops(target=es2015).symbols} | 0 ...types => nestedLoops(target=es2015).types} | 0 ...tedLoops.js => nestedLoops(target=es5).js} | 0 .../reference/nestedLoops(target=es5).symbols | 48 + .../reference/nestedLoops(target=es5).types | 83 + .../nestedSuperCallEmit(target=es2015).js | 54 + ....js => nestedSuperCallEmit(target=es5).js} | 0 ...ironmentForConvertedLoop(target=es2015).js | 28 + ...ntForConvertedLoop(target=es2015).symbols} | 0 ...mentForConvertedLoop(target=es2015).types} | 0 ...nvironmentForConvertedLoop(target=es5).js} | 0 ...onmentForConvertedLoop(target=es5).symbols | 32 + ...ironmentForConvertedLoop(target=es5).types | 66 + .../reference/newTarget.es5(target=es2015).js | 63 + ...s => newTarget.es5(target=es2015).symbols} | 0 ...pes => newTarget.es5(target=es2015).types} | 0 ...et.es5.js => newTarget.es5(target=es5).js} | 0 .../newTarget.es5(target=es5).symbols | 87 + .../reference/newTarget.es5(target=es5).types | 147 + .../newWithSpreadES5(target=es2015).js | 165 + ...> newWithSpreadES5(target=es2015).symbols} | 0 ... => newWithSpreadES5(target=es2015).types} | 0 ...ES5.js => newWithSpreadES5(target=es5).js} | 0 .../newWithSpreadES5(target=es5).symbols | 276 + .../newWithSpreadES5(target=es5).types | 803 + .../noEmitHelpers2(target=es2015).js | 21 + ... => noEmitHelpers2(target=es2015).symbols} | 0 ...es => noEmitHelpers2(target=es2015).types} | 0 ...pers2.js => noEmitHelpers2(target=es5).js} | 0 .../noEmitHelpers2(target=es5).symbols | 18 + .../noEmitHelpers2(target=es5).types | 21 + ...singGetAccessor(target=es2015).errors.txt} | 0 ...citAnyMissingGetAccessor(target=es2015).js | 23 + ...MissingGetAccessor(target=es2015).symbols} | 0 ...nyMissingGetAccessor(target=es2015).types} | 0 ...yMissingGetAccessor(target=es5).errors.txt | 26 + ...licitAnyMissingGetAccessor(target=es5).js} | 0 ...tAnyMissingGetAccessor(target=es5).symbols | 29 + ...citAnyMissingGetAccessor(target=es5).types | 43 + ...singSetAccessor(target=es2015).errors.txt} | 0 ...citAnyMissingSetAccessor(target=es2015).js | 22 + ...MissingSetAccessor(target=es2015).symbols} | 0 ...nyMissingSetAccessor(target=es2015).types} | 0 ...yMissingSetAccessor(target=es5).errors.txt | 16 + ...licitAnyMissingSetAccessor(target=es5).js} | 0 ...tAnyMissingSetAccessor(target=es5).symbols | 20 + ...citAnyMissingSetAccessor(target=es5).types | 27 + ...3(module=node16,target=es2015).errors.txt} | 0 ...ollisions3(module=node16,target=es2015).js | 52 + ...ons3(module=node16,target=es2015).symbols} | 0 ...sions3(module=node16,target=es2015).types} | 0 ...ons3(module=node16,target=es5).errors.txt} | 0 ...sCollisions3(module=node16,target=es5).js} | 0 ...isions3(module=node16,target=es5).symbols} | 0 ...llisions3(module=node16,target=es5).types} | 0 ...3(module=node18,target=es2015).errors.txt} | 0 ...ollisions3(module=node18,target=es2015).js | 52 + ...ons3(module=node18,target=es2015).symbols} | 0 ...sions3(module=node18,target=es2015).types} | 0 ...ons3(module=node18,target=es5).errors.txt} | 0 ...sCollisions3(module=node18,target=es5).js} | 0 ...isions3(module=node18,target=es5).symbols} | 0 ...llisions3(module=node18,target=es5).types} | 0 ...s3(module=node20,target=es2015).errors.txt | 31 + ...ollisions3(module=node20,target=es2015).js | 52 + ...ions3(module=node20,target=es2015).symbols | 38 + ...isions3(module=node20,target=es2015).types | 50 + ...ions3(module=node20,target=es5).errors.txt | 31 + ...sCollisions3(module=node20,target=es5).js} | 0 ...lisions3(module=node20,target=es5).symbols | 38 + ...ollisions3(module=node20,target=es5).types | 50 + ...(module=nodenext,target=es2015).errors.txt | 31 + ...lisions3(module=nodenext,target=es2015).js | 52 + ...ns3(module=nodenext,target=es2015).symbols | 38 + ...ions3(module=nodenext,target=es2015).types | 50 + ...ns3(module=nodenext,target=es5).errors.txt | 31 + ...ollisions3(module=nodenext,target=es5).js} | 0 ...sions3(module=nodenext,target=es5).symbols | 38 + ...lisions3(module=nodenext,target=es5).types | 50 + ...3(module=node16,target=es2015).errors.txt} | 0 ...ollisions3(module=node16,target=es2015).js | 42 + ...ons3(module=node16,target=es2015).symbols} | 0 ...sions3(module=node16,target=es2015).types} | 0 ...ons3(module=node16,target=es5).errors.txt} | 0 ...sCollisions3(module=node16,target=es5).js} | 0 ...isions3(module=node16,target=es5).symbols} | 0 ...llisions3(module=node16,target=es5).types} | 0 ...3(module=node18,target=es2015).errors.txt} | 0 ...ollisions3(module=node18,target=es2015).js | 42 + ...ons3(module=node18,target=es2015).symbols} | 0 ...sions3(module=node18,target=es2015).types} | 0 ...ons3(module=node18,target=es5).errors.txt} | 0 ...sCollisions3(module=node18,target=es5).js} | 0 ...isions3(module=node18,target=es5).symbols} | 0 ...llisions3(module=node18,target=es5).types} | 0 ...s3(module=node20,target=es2015).errors.txt | 27 + ...ollisions3(module=node20,target=es2015).js | 42 + ...ions3(module=node20,target=es2015).symbols | 22 + ...isions3(module=node20,target=es2015).types | 26 + ...ions3(module=node20,target=es5).errors.txt | 27 + ...sCollisions3(module=node20,target=es5).js} | 0 ...lisions3(module=node20,target=es5).symbols | 22 + ...ollisions3(module=node20,target=es5).types | 26 + ...(module=nodenext,target=es2015).errors.txt | 27 + ...lisions3(module=nodenext,target=es2015).js | 42 + ...ns3(module=nodenext,target=es2015).symbols | 22 + ...ions3(module=nodenext,target=es2015).types | 26 + ...ns3(module=nodenext,target=es5).errors.txt | 27 + ...ollisions3(module=nodenext,target=es5).js} | 0 ...sions3(module=nodenext,target=es5).symbols | 22 + ...lisions3(module=nodenext,target=es5).types | 26 + ...ctLiteralErrors(target=es2015).errors.txt} | 0 .../objectLiteralErrors(target=es2015).js | 105 + ...bjectLiteralErrors(target=es2015).symbols} | 0 ... objectLiteralErrors(target=es2015).types} | 0 ...objectLiteralErrors(target=es5).errors.txt | 283 + ....js => objectLiteralErrors(target=es5).js} | 0 .../objectLiteralErrors(target=es5).symbols | 221 + .../objectLiteralErrors(target=es5).types | 586 + ...teralShorthandProperties(target=es2015).js | 40 + ...horthandProperties(target=es2015).symbols} | 0 ...lShorthandProperties(target=es2015).types} | 0 ...LiteralShorthandProperties(target=es5).js} | 0 ...ralShorthandProperties(target=es5).symbols | 48 + ...teralShorthandProperties(target=es5).types | 60 + .../objectRestParameterES5(target=es2015).js | 64 + ...ctRestParameterES5(target=es2015).symbols} | 0 ...jectRestParameterES5(target=es2015).types} | 0 ... => objectRestParameterES5(target=es5).js} | 0 ...objectRestParameterES5(target=es5).symbols | 85 + .../objectRestParameterES5(target=es5).types | 176 + .../reference/objectSpread(target=es2015).js | 247 + ...ls => objectSpread(target=es2015).symbols} | 0 ...ypes => objectSpread(target=es2015).types} | 0 ...tSpread.js => objectSpread(target=es5).js} | 0 .../objectSpread(target=es5).symbols | 567 + .../reference/objectSpread(target=es5).types | 1197 + ...tSpreadNegative(target=es2015).errors.txt} | 0 .../objectSpreadNegative(target=es2015).js | 140 + ...jectSpreadNegative(target=es2015).symbols} | 0 ...objectSpreadNegative(target=es2015).types} | 0 ...bjectSpreadNegative(target=es5).errors.txt | 161 + ...js => objectSpreadNegative(target=es5).js} | 0 .../objectSpreadNegative(target=es5).symbols | 250 + .../objectSpreadNegative(target=es5).types | 554 + ...NumericProperty(target=es2015).errors.txt} | 0 ...ringNamedNumericProperty(target=es2015).js | 218 + ...medNumericProperty(target=es2015).symbols} | 0 ...NamedNumericProperty(target=es2015).types} | 0 ...amedNumericProperty(target=es5).errors.txt | 153 + ...StringNamedNumericProperty(target=es5).js} | 0 ...ngNamedNumericProperty(target=es5).symbols | 471 + ...ringNamedNumericProperty(target=es5).types | 899 + .../octalIntegerLiteral(target=es2015).js | 81 + ...ctalIntegerLiteral(target=es2015).symbols} | 0 ... octalIntegerLiteral(target=es2015).types} | 0 ....js => octalIntegerLiteral(target=es5).js} | 0 .../octalIntegerLiteral(target=es5).symbols | 124 + .../octalIntegerLiteral(target=es5).types | 238 + .../optionalChainingInArrow(target=es2015).js | 14 + ...=> optionalChainingInArrow(target=es5).js} | 0 .../optionalChainingInLoop(target=es2015).js | 22 + ... => optionalChainingInLoop(target=es5).js} | 0 .../reference/out-flag(target=es2015).js | 40 + .../reference/out-flag(target=es2015).js.map | 3 + .../out-flag(target=es2015).sourcemap.txt | 131 + ...ymbols => out-flag(target=es2015).symbols} | 0 ...ag.types => out-flag(target=es2015).types} | 0 .../{out-flag.js => out-flag(target=es5).js} | 0 ...lag.js.map => out-flag(target=es5).js.map} | 0 ...txt => out-flag(target=es5).sourcemap.txt} | 0 .../reference/out-flag(target=es5).symbols | 24 + .../reference/out-flag(target=es5).types | 30 + ...xt => out-flag2(target=es2015).errors.txt} | 0 .../reference/out-flag2(target=es2015).js | 21 + .../reference/out-flag2(target=es2015).js.map | 3 + .../out-flag2(target=es2015).sourcemap.txt | 49 + ...mbols => out-flag2(target=es2015).symbols} | 0 ...2.types => out-flag2(target=es2015).types} | 0 ...s.txt => out-flag2(target=es5).errors.txt} | 0 ...{out-flag2.js => out-flag2(target=es5).js} | 0 ...g2.js.map => out-flag2(target=es5).js.map} | 0 ...xt => out-flag2(target=es5).sourcemap.txt} | 0 .../reference/out-flag2(target=es5).symbols | 10 + .../reference/out-flag2(target=es5).types | 12 + .../out-flag3(target=es2015).errors.txt | 12 + .../reference/out-flag3(target=es2015).js | 21 + .../reference/out-flag3(target=es2015).js.map | 3 + .../out-flag3(target=es2015).sourcemap.txt | 49 + ...mbols => out-flag3(target=es2015).symbols} | 0 ...3.types => out-flag3(target=es2015).types} | 0 .../out-flag3(target=es5).errors.txt | 12 + ...{out-flag3.js => out-flag3(target=es5).js} | 0 ...g3.js.map => out-flag3(target=es5).js.map} | 0 ...xt => out-flag3(target=es5).sourcemap.txt} | 0 .../reference/out-flag3(target=es5).symbols | 10 + .../reference/out-flag3(target=es5).types | 12 + ...ModuleConcatAmd(target=es2015).errors.txt} | 0 .../outModuleConcatAmd(target=es2015).js | 38 + .../outModuleConcatAmd(target=es2015).js.map | 3 + ...duleConcatAmd(target=es2015).sourcemap.txt | 82 + ...outModuleConcatAmd(target=es2015).symbols} | 0 ...> outModuleConcatAmd(target=es2015).types} | 0 .../outModuleConcatAmd(target=es5).errors.txt | 12 + ...d.js => outModuleConcatAmd(target=es5).js} | 0 ... => outModuleConcatAmd(target=es5).js.map} | 0 ...ModuleConcatAmd(target=es5).sourcemap.txt} | 0 .../outModuleConcatAmd(target=es5).symbols | 14 + .../outModuleConcatAmd(target=es5).types | 18 + ...eConcatCommonjs(target=es2015).errors.txt} | 0 ...duleConcatCommonjs(target=es2015).symbols} | 0 ...ModuleConcatCommonjs(target=es2015).types} | 0 ...oduleConcatCommonjs(target=es5).errors.txt | 13 + ...utModuleConcatCommonjs(target=es5).symbols | 14 + .../outModuleConcatCommonjs(target=es5).types | 18 + ...DeclarationOnly(target=es2015).errors.txt} | 0 ...CommonjsDeclarationOnly(target=es2015).js} | 0 ...njsDeclarationOnly(target=es2015).symbols} | 0 ...monjsDeclarationOnly(target=es2015).types} | 0 ...onjsDeclarationOnly(target=es5).errors.txt | 11 + ...ncatCommonjsDeclarationOnly(target=es5).js | 22 + ...ommonjsDeclarationOnly(target=es5).symbols | 14 + ...tCommonjsDeclarationOnly(target=es5).types | 18 + ...uleConcatSystem(target=es2015).errors.txt} | 0 .../outModuleConcatSystem(target=es2015).js | 52 + ...utModuleConcatSystem(target=es2015).js.map | 3 + ...eConcatSystem(target=es2015).sourcemap.txt | 109 + ...ModuleConcatSystem(target=es2015).symbols} | 0 ...utModuleConcatSystem(target=es2015).types} | 0 ...tModuleConcatSystem(target=es5).errors.txt | 12 + ...s => outModuleConcatSystem(target=es5).js} | 0 ... outModuleConcatSystem(target=es5).js.map} | 0 ...uleConcatSystem(target=es5).sourcemap.txt} | 0 .../outModuleConcatSystem(target=es5).symbols | 14 + .../outModuleConcatSystem(target=es5).types | 18 + ...ModuleConcatUmd(target=es2015).errors.txt} | 0 ...outModuleConcatUmd(target=es2015).symbols} | 0 ...> outModuleConcatUmd(target=es2015).types} | 0 .../outModuleConcatUmd(target=es5).errors.txt | 14 + .../outModuleConcatUmd(target=es5).symbols | 14 + .../outModuleConcatUmd(target=es5).types | 18 + ...ifiedModuleKind(target=es2015).errors.txt} | 0 ...atUnspecifiedModuleKind(target=es2015).js} | 0 ...pecifiedModuleKind(target=es2015).symbols} | 0 ...nspecifiedModuleKind(target=es2015).types} | 0 ...specifiedModuleKind(target=es5).errors.txt | 12 + ...ConcatUnspecifiedModuleKind(target=es5).js | 10 + ...tUnspecifiedModuleKind(target=es5).symbols | 10 + ...catUnspecifiedModuleKind(target=es5).types | 14 + ...DeclarationOnly(target=es2015).errors.txt} | 0 ...indDeclarationOnly(target=es2015).symbols} | 0 ...eKindDeclarationOnly(target=es2015).types} | 0 ...KindDeclarationOnly(target=es5).errors.txt | 12 + ...uleKindDeclarationOnly(target=es5).symbols | 10 + ...oduleKindDeclarationOnly(target=es5).types | 14 + ...TripleSlashRefs(target=es2015).errors.txt} | 0 ...outModuleTripleSlashRefs(target=es2015).js | 69 + ...oduleTripleSlashRefs(target=es2015).js.map | 3 + ...ipleSlashRefs(target=es2015).sourcemap.txt | 127 + ...uleTripleSlashRefs(target=es2015).symbols} | 0 ...oduleTripleSlashRefs(target=es2015).types} | 0 ...duleTripleSlashRefs(target=es5).errors.txt | 34 + ...> outModuleTripleSlashRefs(target=es5).js} | 0 ...tModuleTripleSlashRefs(target=es5).js.map} | 0 ...TripleSlashRefs(target=es5).sourcemap.txt} | 0 ...tModuleTripleSlashRefs(target=es5).symbols | 51 + ...outModuleTripleSlashRefs(target=es5).types | 61 + ...arserAccessors1(target=es2015).errors.txt} | 0 .../parserAccessors1(target=es2015).js | 11 + ...> parserAccessors1(target=es2015).symbols} | 0 ... => parserAccessors1(target=es2015).types} | 0 .../parserAccessors1(target=es5).errors.txt | 9 + ...rs1.js => parserAccessors1(target=es5).js} | 0 .../parserAccessors1(target=es5).symbols | 9 + .../parserAccessors1(target=es5).types | 11 + ...rserAccessors10(target=es2015).errors.txt} | 0 ...js => parserAccessors10(target=es2015).js} | 0 ... parserAccessors10(target=es2015).symbols} | 0 ...=> parserAccessors10(target=es2015).types} | 0 .../parserAccessors10(target=es5).errors.txt | 12 + .../parserAccessors10(target=es5).js | 11 + .../parserAccessors10(target=es5).symbols | 10 + .../parserAccessors10(target=es5).types | 14 + .../parserAccessors2(target=es2015).js | 11 + ...> parserAccessors2(target=es2015).symbols} | 0 ... => parserAccessors2(target=es2015).types} | 0 ...rs2.js => parserAccessors2(target=es5).js} | 0 .../parserAccessors2(target=es5).symbols | 10 + .../parserAccessors2(target=es5).types | 11 + ...arserAccessors3(target=es2015).errors.txt} | 0 ....js => parserAccessors3(target=es2015).js} | 0 ...> parserAccessors3(target=es2015).symbols} | 0 ... => parserAccessors3(target=es2015).types} | 0 .../parserAccessors3(target=es5).errors.txt | 7 + .../reference/parserAccessors3(target=es5).js | 7 + .../parserAccessors3(target=es5).symbols | 7 + .../parserAccessors3(target=es5).types | 11 + ....js => parserAccessors4(target=es2015).js} | 0 ...> parserAccessors4(target=es2015).symbols} | 0 ... => parserAccessors4(target=es2015).types} | 0 .../reference/parserAccessors4(target=es5).js | 7 + .../parserAccessors4(target=es5).symbols | 8 + .../parserAccessors4(target=es5).types | 11 + ...arserAccessors5(target=es2015).errors.txt} | 0 ....js => parserAccessors5(target=es2015).js} | 0 ...> parserAccessors5(target=es2015).symbols} | 0 ... => parserAccessors5(target=es2015).types} | 0 .../parserAccessors5(target=es5).errors.txt | 9 + .../reference/parserAccessors5(target=es5).js | 8 + .../parserAccessors5(target=es5).symbols | 9 + .../parserAccessors5(target=es5).types | 13 + ...arserAccessors6(target=es2015).errors.txt} | 0 ....js => parserAccessors6(target=es2015).js} | 0 ...> parserAccessors6(target=es2015).symbols} | 0 ... => parserAccessors6(target=es2015).types} | 0 .../parserAccessors6(target=es5).errors.txt | 9 + .../reference/parserAccessors6(target=es5).js | 8 + .../parserAccessors6(target=es5).symbols | 10 + .../parserAccessors6(target=es5).types | 13 + ...arserAccessors7(target=es2015).errors.txt} | 0 ....js => parserAccessors7(target=es2015).js} | 0 ...> parserAccessors7(target=es2015).symbols} | 0 ... => parserAccessors7(target=es2015).types} | 0 .../parserAccessors7(target=es5).errors.txt | 10 + .../reference/parserAccessors7(target=es5).js | 7 + .../parserAccessors7(target=es5).symbols | 8 + .../parserAccessors7(target=es5).types | 13 + ...arserAccessors8(target=es2015).errors.txt} | 0 ....js => parserAccessors8(target=es2015).js} | 0 ...> parserAccessors8(target=es2015).symbols} | 0 ... => parserAccessors8(target=es2015).types} | 0 .../parserAccessors8(target=es5).errors.txt | 7 + .../reference/parserAccessors8(target=es5).js | 7 + .../parserAccessors8(target=es5).symbols | 7 + .../parserAccessors8(target=es5).types | 11 + ...arserAccessors9(target=es2015).errors.txt} | 0 ....js => parserAccessors9(target=es2015).js} | 0 ...> parserAccessors9(target=es2015).symbols} | 0 ... => parserAccessors9(target=es2015).types} | 0 .../parserAccessors9(target=es5).errors.txt | 7 + .../reference/parserAccessors9(target=es5).js | 7 + .../parserAccessors9(target=es5).symbols | 9 + .../parserAccessors9(target=es5).types | 15 + ...edPropertyName1(target=es2015).errors.txt} | 0 ...S5ComputedPropertyName1(target=es2015).js} | 0 ...putedPropertyName1(target=es2015).symbols} | 0 ...omputedPropertyName1(target=es2015).types} | 0 ...mputedPropertyName1(target=es5).errors.txt | 9 + ...serES5ComputedPropertyName1(target=es5).js | 8 + ...5ComputedPropertyName1(target=es5).symbols | 9 + ...ES5ComputedPropertyName1(target=es5).types | 13 + ...dPropertyName10(target=es2015).errors.txt} | 0 ...S5ComputedPropertyName10(target=es2015).js | 15 + ...utedPropertyName10(target=es2015).symbols} | 0 ...mputedPropertyName10(target=es2015).types} | 0 ...putedPropertyName10(target=es5).errors.txt | 9 + ...rES5ComputedPropertyName10(target=es5).js} | 0 ...ComputedPropertyName10(target=es5).symbols | 9 + ...S5ComputedPropertyName10(target=es5).types | 15 + ...dPropertyName11(target=es2015).errors.txt} | 0 ...S5ComputedPropertyName11(target=es2015).js | 10 + ...utedPropertyName11(target=es2015).symbols} | 0 ...mputedPropertyName11(target=es2015).types} | 0 ...putedPropertyName11(target=es5).errors.txt | 9 + ...rES5ComputedPropertyName11(target=es5).js} | 0 ...ComputedPropertyName11(target=es5).symbols | 9 + ...S5ComputedPropertyName11(target=es5).types | 13 + ...edPropertyName2(target=es2015).errors.txt} | 0 ...ES5ComputedPropertyName2(target=es2015).js | 7 + ...putedPropertyName2(target=es2015).symbols} | 0 ...omputedPropertyName2(target=es2015).types} | 0 ...mputedPropertyName2(target=es5).errors.txt | 7 + ...erES5ComputedPropertyName2(target=es5).js} | 0 ...5ComputedPropertyName2(target=es5).symbols | 7 + ...ES5ComputedPropertyName2(target=es5).types | 15 + ...edPropertyName3(target=es2015).errors.txt} | 0 ...ES5ComputedPropertyName3(target=es2015).js | 7 + ...putedPropertyName3(target=es2015).symbols} | 0 ...omputedPropertyName3(target=es2015).types} | 0 ...mputedPropertyName3(target=es5).errors.txt | 7 + ...erES5ComputedPropertyName3(target=es5).js} | 0 ...5ComputedPropertyName3(target=es5).symbols | 7 + ...ES5ComputedPropertyName3(target=es5).types | 13 + ...edPropertyName4(target=es2015).errors.txt} | 0 ...ES5ComputedPropertyName4(target=es2015).js | 7 + ...putedPropertyName4(target=es2015).symbols} | 0 ...omputedPropertyName4(target=es2015).types} | 0 ...mputedPropertyName4(target=es5).errors.txt | 10 + ...erES5ComputedPropertyName4(target=es5).js} | 0 ...5ComputedPropertyName4(target=es5).symbols | 7 + ...ES5ComputedPropertyName4(target=es5).types | 13 + ...edPropertyName5(target=es2015).errors.txt} | 0 ...S5ComputedPropertyName5(target=es2015).js} | 0 ...putedPropertyName5(target=es2015).symbols} | 0 ...omputedPropertyName5(target=es2015).types} | 0 ...mputedPropertyName5(target=es5).errors.txt | 9 + ...serES5ComputedPropertyName5(target=es5).js | 8 + ...5ComputedPropertyName5(target=es5).symbols | 9 + ...ES5ComputedPropertyName5(target=es5).types | 10 + ...edPropertyName6(target=es2015).errors.txt} | 0 ...S5ComputedPropertyName6(target=es2015).js} | 0 ...putedPropertyName6(target=es2015).symbols} | 0 ...omputedPropertyName6(target=es2015).types} | 0 ...mputedPropertyName6(target=es5).errors.txt | 9 + ...serES5ComputedPropertyName6(target=es5).js | 12 + ...5ComputedPropertyName6(target=es5).symbols | 9 + ...ES5ComputedPropertyName6(target=es5).types | 15 + ...edPropertyName7(target=es2015).errors.txt} | 0 ...ES5ComputedPropertyName7(target=es2015).js | 10 + ...putedPropertyName7(target=es2015).symbols} | 0 ...omputedPropertyName7(target=es2015).types} | 0 ...mputedPropertyName7(target=es5).errors.txt | 9 + ...erES5ComputedPropertyName7(target=es5).js} | 0 ...5ComputedPropertyName7(target=es5).symbols | 9 + ...ES5ComputedPropertyName7(target=es5).types | 13 + ...edPropertyName8(target=es2015).errors.txt} | 0 ...S5ComputedPropertyName8(target=es2015).js} | 0 ...putedPropertyName8(target=es2015).symbols} | 0 ...omputedPropertyName8(target=es2015).types} | 0 ...mputedPropertyName8(target=es5).errors.txt | 7 + ...serES5ComputedPropertyName8(target=es5).js | 7 + ...5ComputedPropertyName8(target=es5).symbols | 7 + ...ES5ComputedPropertyName8(target=es5).types | 11 + ...edPropertyName9(target=es2015).errors.txt} | 0 ...ES5ComputedPropertyName9(target=es2015).js | 10 + ...putedPropertyName9(target=es2015).symbols} | 0 ...omputedPropertyName9(target=es2015).types} | 0 ...mputedPropertyName9(target=es5).errors.txt | 12 + ...erES5ComputedPropertyName9(target=es5).js} | 0 ...5ComputedPropertyName9(target=es5).symbols | 10 + ...ES5ComputedPropertyName9(target=es5).types | 13 + ...rOfStatement1.d(target=es2015).errors.txt} | 0 ...5ForOfStatement1.d(target=es2015).symbols} | 0 ...ES5ForOfStatement1.d(target=es2015).types} | 0 ...S5ForOfStatement1.d(target=es5).errors.txt | 11 + ...erES5ForOfStatement1.d(target=es5).symbols | 6 + ...rserES5ForOfStatement1.d(target=es5).types | 9 + ...orOfStatement10(target=es2015).errors.txt} | 0 ...arserES5ForOfStatement10(target=es2015).js | 9 + ...S5ForOfStatement10(target=es2015).symbols} | 0 ...rES5ForOfStatement10(target=es2015).types} | 0 ...ES5ForOfStatement10(target=es5).errors.txt | 8 + ... parserES5ForOfStatement10(target=es5).js} | 0 ...serES5ForOfStatement10(target=es5).symbols | 6 + ...arserES5ForOfStatement10(target=es5).types | 9 + ...orOfStatement11(target=es2015).errors.txt} | 0 ...arserES5ForOfStatement11(target=es2015).js | 9 + ...S5ForOfStatement11(target=es2015).symbols} | 0 ...rES5ForOfStatement11(target=es2015).types} | 0 ...ES5ForOfStatement11(target=es5).errors.txt | 8 + ... parserES5ForOfStatement11(target=es5).js} | 0 ...serES5ForOfStatement11(target=es5).symbols | 7 + ...arserES5ForOfStatement11(target=es5).types | 11 + ...orOfStatement12(target=es2015).errors.txt} | 0 ...arserES5ForOfStatement12(target=es2015).js | 9 + ...S5ForOfStatement12(target=es2015).symbols} | 0 ...rES5ForOfStatement12(target=es2015).types} | 0 ...ES5ForOfStatement12(target=es5).errors.txt | 8 + ... parserES5ForOfStatement12(target=es5).js} | 0 ...serES5ForOfStatement12(target=es5).symbols | 7 + ...arserES5ForOfStatement12(target=es5).types | 11 + ...orOfStatement13(target=es2015).errors.txt} | 0 ...arserES5ForOfStatement13(target=es2015).js | 9 + ...S5ForOfStatement13(target=es2015).symbols} | 0 ...rES5ForOfStatement13(target=es2015).types} | 0 ...ES5ForOfStatement13(target=es5).errors.txt | 8 + ... parserES5ForOfStatement13(target=es5).js} | 0 ...serES5ForOfStatement13(target=es5).symbols | 7 + ...arserES5ForOfStatement13(target=es5).types | 11 + ...orOfStatement14(target=es2015).errors.txt} | 0 ...arserES5ForOfStatement14(target=es2015).js | 9 + ...S5ForOfStatement14(target=es2015).symbols} | 0 ...rES5ForOfStatement14(target=es2015).types} | 0 ...ES5ForOfStatement14(target=es5).errors.txt | 8 + ... parserES5ForOfStatement14(target=es5).js} | 0 ...serES5ForOfStatement14(target=es5).symbols | 7 + ...arserES5ForOfStatement14(target=es5).types | 11 + ...orOfStatement15(target=es2015).errors.txt} | 0 ...arserES5ForOfStatement15(target=es2015).js | 9 + ...S5ForOfStatement15(target=es2015).symbols} | 0 ...rES5ForOfStatement15(target=es2015).types} | 0 ...ES5ForOfStatement15(target=es5).errors.txt | 8 + ... parserES5ForOfStatement15(target=es5).js} | 0 ...serES5ForOfStatement15(target=es5).symbols | 7 + ...arserES5ForOfStatement15(target=es5).types | 11 + ...orOfStatement16(target=es2015).errors.txt} | 0 ...arserES5ForOfStatement16(target=es2015).js | 9 + ...S5ForOfStatement16(target=es2015).symbols} | 0 ...rES5ForOfStatement16(target=es2015).types} | 0 ...ES5ForOfStatement16(target=es5).errors.txt | 8 + ... parserES5ForOfStatement16(target=es5).js} | 0 ...serES5ForOfStatement16(target=es5).symbols | 7 + ...arserES5ForOfStatement16(target=es5).types | 11 + ...rserES5ForOfStatement17(target=es2015).js} | 0 ...S5ForOfStatement17(target=es2015).symbols} | 0 ...rES5ForOfStatement17(target=es2015).types} | 0 .../parserES5ForOfStatement17(target=es5).js | 7 + ...serES5ForOfStatement17(target=es5).symbols | 6 + ...arserES5ForOfStatement17(target=es5).types | 6 + ...arserES5ForOfStatement18(target=es2015).js | 7 + ...S5ForOfStatement18(target=es2015).symbols} | 0 ...rES5ForOfStatement18(target=es2015).types} | 0 ... parserES5ForOfStatement18(target=es5).js} | 0 ...serES5ForOfStatement18(target=es5).symbols | 7 + ...arserES5ForOfStatement18(target=es5).types | 7 + ...rserES5ForOfStatement19(target=es2015).js} | 0 ...S5ForOfStatement19(target=es2015).symbols} | 0 ...rES5ForOfStatement19(target=es2015).types} | 0 .../parserES5ForOfStatement19(target=es5).js | 7 + ...serES5ForOfStatement19(target=es5).symbols | 7 + ...arserES5ForOfStatement19(target=es5).types | 7 + ...ForOfStatement2(target=es2015).errors.txt} | 0 ...parserES5ForOfStatement2(target=es2015).js | 9 + ...ES5ForOfStatement2(target=es2015).symbols} | 0 ...erES5ForOfStatement2(target=es2015).types} | 0 ...rES5ForOfStatement2(target=es5).errors.txt | 8 + ...> parserES5ForOfStatement2(target=es5).js} | 0 ...rserES5ForOfStatement2(target=es5).symbols | 6 + ...parserES5ForOfStatement2(target=es5).types | 7 + ...orOfStatement20(target=es2015).errors.txt} | 0 ...rserES5ForOfStatement20(target=es2015).js} | 0 ...S5ForOfStatement20(target=es2015).symbols} | 0 ...rES5ForOfStatement20(target=es2015).types} | 0 ...ES5ForOfStatement20(target=es5).errors.txt | 7 + .../parserES5ForOfStatement20(target=es5).js | 7 + ...serES5ForOfStatement20(target=es5).symbols | 7 + ...arserES5ForOfStatement20(target=es5).types | 11 + ...orOfStatement21(target=es2015).errors.txt} | 0 ...arserES5ForOfStatement21(target=es2015).js | 7 + ...S5ForOfStatement21(target=es2015).symbols} | 0 ...rES5ForOfStatement21(target=es2015).types} | 0 ...ES5ForOfStatement21(target=es5).errors.txt | 7 + ... parserES5ForOfStatement21(target=es5).js} | 0 ...serES5ForOfStatement21(target=es5).symbols | 5 + ...arserES5ForOfStatement21(target=es5).types | 7 + ...ForOfStatement3(target=es2015).errors.txt} | 0 ...parserES5ForOfStatement3(target=es2015).js | 9 + ...ES5ForOfStatement3(target=es2015).symbols} | 0 ...erES5ForOfStatement3(target=es2015).types} | 0 ...rES5ForOfStatement3(target=es5).errors.txt | 11 + ...> parserES5ForOfStatement3(target=es5).js} | 0 ...rserES5ForOfStatement3(target=es5).symbols | 7 + ...parserES5ForOfStatement3(target=es5).types | 11 + ...ForOfStatement4(target=es2015).errors.txt} | 0 ...parserES5ForOfStatement4(target=es2015).js | 9 + ...ES5ForOfStatement4(target=es2015).symbols} | 0 ...erES5ForOfStatement4(target=es2015).types} | 0 ...rES5ForOfStatement4(target=es5).errors.txt | 11 + ...> parserES5ForOfStatement4(target=es5).js} | 0 ...rserES5ForOfStatement4(target=es5).symbols | 6 + ...parserES5ForOfStatement4(target=es5).types | 11 + ...ForOfStatement5(target=es2015).errors.txt} | 0 ...parserES5ForOfStatement5(target=es2015).js | 9 + ...ES5ForOfStatement5(target=es2015).symbols} | 0 ...erES5ForOfStatement5(target=es2015).types} | 0 ...rES5ForOfStatement5(target=es5).errors.txt | 11 + ...> parserES5ForOfStatement5(target=es5).js} | 0 ...rserES5ForOfStatement5(target=es5).symbols | 6 + ...parserES5ForOfStatement5(target=es5).types | 9 + ...ForOfStatement6(target=es2015).errors.txt} | 0 ...parserES5ForOfStatement6(target=es2015).js | 9 + ...ES5ForOfStatement6(target=es2015).symbols} | 0 ...erES5ForOfStatement6(target=es2015).types} | 0 ...rES5ForOfStatement6(target=es5).errors.txt | 11 + ...> parserES5ForOfStatement6(target=es5).js} | 0 ...rserES5ForOfStatement6(target=es5).symbols | 7 + ...parserES5ForOfStatement6(target=es5).types | 15 + ...ForOfStatement7(target=es2015).errors.txt} | 0 ...parserES5ForOfStatement7(target=es2015).js | 9 + ...ES5ForOfStatement7(target=es2015).symbols} | 0 ...erES5ForOfStatement7(target=es2015).types} | 0 ...rES5ForOfStatement7(target=es5).errors.txt | 11 + ...> parserES5ForOfStatement7(target=es5).js} | 0 ...rserES5ForOfStatement7(target=es5).symbols | 7 + ...parserES5ForOfStatement7(target=es5).types | 15 + ...ForOfStatement8(target=es2015).errors.txt} | 0 ...parserES5ForOfStatement8(target=es2015).js | 9 + ...ES5ForOfStatement8(target=es2015).symbols} | 0 ...erES5ForOfStatement8(target=es2015).types} | 0 ...rES5ForOfStatement8(target=es5).errors.txt | 8 + ...> parserES5ForOfStatement8(target=es5).js} | 0 ...rserES5ForOfStatement8(target=es5).symbols | 6 + ...parserES5ForOfStatement8(target=es5).types | 9 + ...ForOfStatement9(target=es2015).errors.txt} | 0 ...parserES5ForOfStatement9(target=es2015).js | 9 + ...ES5ForOfStatement9(target=es2015).symbols} | 0 ...erES5ForOfStatement9(target=es2015).types} | 0 ...rES5ForOfStatement9(target=es5).errors.txt | 8 + ...> parserES5ForOfStatement9(target=es5).js} | 0 ...rserES5ForOfStatement9(target=es5).symbols | 6 + ...parserES5ForOfStatement9(target=es5).types | 9 + ...parserES5SymbolIndexer1(target=es2015).js} | 0 ...rES5SymbolIndexer1(target=es2015).symbols} | 0 ...serES5SymbolIndexer1(target=es2015).types} | 0 .../parserES5SymbolIndexer1(target=es5).js | 8 + ...arserES5SymbolIndexer1(target=es5).symbols | 9 + .../parserES5SymbolIndexer1(target=es5).types | 8 + .../parserES5SymbolIndexer2(target=es2015).js | 10 + ...rES5SymbolIndexer2(target=es2015).symbols} | 0 ...serES5SymbolIndexer2(target=es2015).types} | 0 ...=> parserES5SymbolIndexer2(target=es5).js} | 0 ...arserES5SymbolIndexer2(target=es5).symbols | 9 + .../parserES5SymbolIndexer2(target=es5).types | 11 + ...parserES5SymbolIndexer3(target=es2015).js} | 0 ...rES5SymbolIndexer3(target=es2015).symbols} | 0 ...serES5SymbolIndexer3(target=es2015).types} | 0 .../parserES5SymbolIndexer3(target=es5).js | 9 + ...arserES5SymbolIndexer3(target=es5).symbols | 9 + .../parserES5SymbolIndexer3(target=es5).types | 11 + ...arserES5SymbolProperty1(target=es2015).js} | 0 ...ES5SymbolProperty1(target=es2015).symbols} | 0 ...erES5SymbolProperty1(target=es2015).types} | 0 .../parserES5SymbolProperty1(target=es5).js | 8 + ...rserES5SymbolProperty1(target=es5).symbols | 12 + ...parserES5SymbolProperty1(target=es5).types | 14 + ...arserES5SymbolProperty2(target=es2015).js} | 0 ...ES5SymbolProperty2(target=es2015).symbols} | 0 ...erES5SymbolProperty2(target=es2015).types} | 0 .../parserES5SymbolProperty2(target=es5).js | 8 + ...rserES5SymbolProperty2(target=es5).symbols | 12 + ...parserES5SymbolProperty2(target=es5).types | 14 + ...arserES5SymbolProperty3(target=es2015).js} | 0 ...ES5SymbolProperty3(target=es2015).symbols} | 0 ...erES5SymbolProperty3(target=es2015).types} | 0 .../parserES5SymbolProperty3(target=es5).js | 8 + ...rserES5SymbolProperty3(target=es5).symbols | 12 + ...parserES5SymbolProperty3(target=es5).types | 17 + ...SymbolProperty4(target=es2015).errors.txt} | 0 ...arserES5SymbolProperty4(target=es2015).js} | 0 ...ES5SymbolProperty4(target=es2015).symbols} | 0 ...erES5SymbolProperty4(target=es2015).types} | 0 ...rES5SymbolProperty4(target=es5).errors.txt | 9 + .../parserES5SymbolProperty4(target=es5).js | 8 + ...rserES5SymbolProperty4(target=es5).symbols | 10 + ...parserES5SymbolProperty4(target=es5).types | 17 + ...SymbolProperty5(target=es2015).errors.txt} | 0 ...parserES5SymbolProperty5(target=es2015).js | 11 + ...ES5SymbolProperty5(target=es2015).symbols} | 0 ...erES5SymbolProperty5(target=es2015).types} | 0 ...rES5SymbolProperty5(target=es5).errors.txt | 9 + ...> parserES5SymbolProperty5(target=es5).js} | 0 ...rserES5SymbolProperty5(target=es5).symbols | 10 + ...parserES5SymbolProperty5(target=es5).types | 17 + ...parserES5SymbolProperty6(target=es2015).js | 15 + ...ES5SymbolProperty6(target=es2015).symbols} | 0 ...erES5SymbolProperty6(target=es2015).types} | 0 ...> parserES5SymbolProperty6(target=es5).js} | 0 ...rserES5SymbolProperty6(target=es5).symbols | 12 + ...parserES5SymbolProperty6(target=es5).types | 19 + ...parserES5SymbolProperty7(target=es2015).js | 11 + ...ES5SymbolProperty7(target=es2015).symbols} | 0 ...erES5SymbolProperty7(target=es2015).types} | 0 ...> parserES5SymbolProperty7(target=es5).js} | 0 ...rserES5SymbolProperty7(target=es5).symbols | 12 + ...parserES5SymbolProperty7(target=es5).types | 17 + ...arserES5SymbolProperty8(target=es2015).js} | 0 ...ES5SymbolProperty8(target=es2015).symbols} | 0 ...erES5SymbolProperty8(target=es2015).types} | 0 .../parserES5SymbolProperty8(target=es5).js | 9 + ...rserES5SymbolProperty8(target=es5).symbols | 12 + ...parserES5SymbolProperty8(target=es5).types | 17 + ...arserES5SymbolProperty9(target=es2015).js} | 0 ...ES5SymbolProperty9(target=es2015).symbols} | 0 ...erES5SymbolProperty9(target=es2015).types} | 0 .../parserES5SymbolProperty9(target=es5).js | 9 + ...rserES5SymbolProperty9(target=es5).symbols | 12 + ...parserES5SymbolProperty9(target=es5).types | 17 + ...TypeParameters1(target=es2015).errors.txt} | 0 ...essorWithTypeParameters1(target=es2015).js | 11 + ...ithTypeParameters1(target=es2015).symbols} | 0 ...rWithTypeParameters1(target=es2015).types} | 0 ...WithTypeParameters1(target=es5).errors.txt | 12 + ...ccessorWithTypeParameters1(target=es5).js} | 0 ...sorWithTypeParameters1(target=es5).symbols | 10 + ...essorWithTypeParameters1(target=es5).types | 11 + ...MemberAccessor1(target=es2015).errors.txt} | 0 .../parserMemberAccessor1(target=es2015).js | 13 + ...serMemberAccessor1(target=es2015).symbols} | 0 ...arserMemberAccessor1(target=es2015).types} | 0 ...rserMemberAccessor1(target=es5).errors.txt | 10 + ...s => parserMemberAccessor1(target=es5).js} | 0 .../parserMemberAccessor1(target=es5).symbols | 13 + .../parserMemberAccessor1(target=es5).types | 17 + ...sorDeclaration1(target=es2015).errors.txt} | 0 ...mberAccessorDeclaration1(target=es2015).js | 11 + ...cessorDeclaration1(target=es2015).symbols} | 0 ...AccessorDeclaration1(target=es2015).types} | 0 ...ccessorDeclaration1(target=es5).errors.txt | 9 + ...MemberAccessorDeclaration1(target=es5).js} | 0 ...erAccessorDeclaration1(target=es5).symbols | 9 + ...mberAccessorDeclaration1(target=es5).types | 11 + ...orDeclaration10(target=es2015).errors.txt} | 0 ...berAccessorDeclaration10(target=es2015).js | 11 + ...essorDeclaration10(target=es2015).symbols} | 0 ...ccessorDeclaration10(target=es2015).types} | 0 ...cessorDeclaration10(target=es5).errors.txt | 12 + ...emberAccessorDeclaration10(target=es5).js} | 0 ...rAccessorDeclaration10(target=es5).symbols | 9 + ...berAccessorDeclaration10(target=es5).types | 11 + ...orDeclaration11(target=es2015).errors.txt} | 0 ...berAccessorDeclaration11(target=es2015).js | 11 + ...essorDeclaration11(target=es2015).symbols} | 0 ...ccessorDeclaration11(target=es2015).types} | 0 ...cessorDeclaration11(target=es5).errors.txt | 12 + ...emberAccessorDeclaration11(target=es5).js} | 0 ...rAccessorDeclaration11(target=es5).symbols | 9 + ...berAccessorDeclaration11(target=es5).types | 11 + ...orDeclaration12(target=es2015).errors.txt} | 0 ...berAccessorDeclaration12(target=es2015).js | 11 + ...essorDeclaration12(target=es2015).symbols} | 0 ...ccessorDeclaration12(target=es2015).types} | 0 ...cessorDeclaration12(target=es5).errors.txt | 12 + ...emberAccessorDeclaration12(target=es5).js} | 0 ...rAccessorDeclaration12(target=es5).symbols | 10 + ...berAccessorDeclaration12(target=es5).types | 13 + ...orDeclaration13(target=es2015).errors.txt} | 0 ...berAccessorDeclaration13(target=es2015).js | 11 + ...essorDeclaration13(target=es2015).symbols} | 0 ...ccessorDeclaration13(target=es2015).types} | 0 ...cessorDeclaration13(target=es5).errors.txt | 9 + ...emberAccessorDeclaration13(target=es5).js} | 0 ...rAccessorDeclaration13(target=es5).symbols | 9 + ...berAccessorDeclaration13(target=es5).types | 11 + ...orDeclaration14(target=es2015).errors.txt} | 0 ...berAccessorDeclaration14(target=es2015).js | 11 + ...essorDeclaration14(target=es2015).symbols} | 0 ...ccessorDeclaration14(target=es2015).types} | 0 ...cessorDeclaration14(target=es5).errors.txt | 9 + ...emberAccessorDeclaration14(target=es5).js} | 0 ...rAccessorDeclaration14(target=es5).symbols | 11 + ...berAccessorDeclaration14(target=es5).types | 15 + ...orDeclaration15(target=es2015).errors.txt} | 0 ...berAccessorDeclaration15(target=es2015).js | 11 + ...essorDeclaration15(target=es2015).symbols} | 0 ...ccessorDeclaration15(target=es2015).types} | 0 ...cessorDeclaration15(target=es5).errors.txt | 9 + ...emberAccessorDeclaration15(target=es5).js} | 0 ...rAccessorDeclaration15(target=es5).symbols | 10 + ...berAccessorDeclaration15(target=es5).types | 13 + ...orDeclaration16(target=es2015).errors.txt} | 0 ...berAccessorDeclaration16(target=es2015).js | 11 + ...essorDeclaration16(target=es2015).symbols} | 0 ...ccessorDeclaration16(target=es2015).types} | 0 ...cessorDeclaration16(target=es5).errors.txt | 9 + ...emberAccessorDeclaration16(target=es5).js} | 0 ...rAccessorDeclaration16(target=es5).symbols | 10 + ...berAccessorDeclaration16(target=es5).types | 15 + ...orDeclaration17(target=es2015).errors.txt} | 0 ...berAccessorDeclaration17(target=es2015).js | 11 + ...essorDeclaration17(target=es2015).symbols} | 0 ...ccessorDeclaration17(target=es2015).types} | 0 ...cessorDeclaration17(target=es5).errors.txt | 9 + ...emberAccessorDeclaration17(target=es5).js} | 0 ...rAccessorDeclaration17(target=es5).symbols | 10 + ...berAccessorDeclaration17(target=es5).types | 13 + ...orDeclaration18(target=es2015).errors.txt} | 0 ...berAccessorDeclaration18(target=es2015).js | 11 + ...essorDeclaration18(target=es2015).symbols} | 0 ...ccessorDeclaration18(target=es2015).types} | 0 ...cessorDeclaration18(target=es5).errors.txt | 9 + ...emberAccessorDeclaration18(target=es5).js} | 0 ...rAccessorDeclaration18(target=es5).symbols | 10 + ...berAccessorDeclaration18(target=es5).types | 13 + ...sorDeclaration2(target=es2015).errors.txt} | 0 ...mberAccessorDeclaration2(target=es2015).js | 11 + ...cessorDeclaration2(target=es2015).symbols} | 0 ...AccessorDeclaration2(target=es2015).types} | 0 ...ccessorDeclaration2(target=es5).errors.txt | 9 + ...MemberAccessorDeclaration2(target=es5).js} | 0 ...erAccessorDeclaration2(target=es5).symbols | 9 + ...mberAccessorDeclaration2(target=es5).types | 11 + ...sorDeclaration3(target=es2015).errors.txt} | 0 ...mberAccessorDeclaration3(target=es2015).js | 11 + ...cessorDeclaration3(target=es2015).symbols} | 0 ...AccessorDeclaration3(target=es2015).types} | 0 ...ccessorDeclaration3(target=es5).errors.txt | 9 + ...MemberAccessorDeclaration3(target=es5).js} | 0 ...erAccessorDeclaration3(target=es5).symbols | 9 + ...mberAccessorDeclaration3(target=es5).types | 11 + ...mberAccessorDeclaration4(target=es2015).js | 11 + ...cessorDeclaration4(target=es2015).symbols} | 0 ...AccessorDeclaration4(target=es2015).types} | 0 ...MemberAccessorDeclaration4(target=es5).js} | 0 ...erAccessorDeclaration4(target=es5).symbols | 10 + ...mberAccessorDeclaration4(target=es5).types | 11 + ...mberAccessorDeclaration5(target=es2015).js | 11 + ...cessorDeclaration5(target=es2015).symbols} | 0 ...AccessorDeclaration5(target=es2015).types} | 0 ...MemberAccessorDeclaration5(target=es5).js} | 0 ...erAccessorDeclaration5(target=es5).symbols | 10 + ...mberAccessorDeclaration5(target=es5).types | 11 + ...mberAccessorDeclaration6(target=es2015).js | 11 + ...cessorDeclaration6(target=es2015).symbols} | 0 ...AccessorDeclaration6(target=es2015).types} | 0 ...MemberAccessorDeclaration6(target=es5).js} | 0 ...erAccessorDeclaration6(target=es5).symbols | 10 + ...mberAccessorDeclaration6(target=es5).types | 11 + ...sorDeclaration7(target=es2015).errors.txt} | 0 ...mberAccessorDeclaration7(target=es2015).js | 11 + ...cessorDeclaration7(target=es2015).symbols} | 0 ...AccessorDeclaration7(target=es2015).types} | 0 ...ccessorDeclaration7(target=es5).errors.txt | 12 + ...MemberAccessorDeclaration7(target=es5).js} | 0 ...erAccessorDeclaration7(target=es5).symbols | 9 + ...mberAccessorDeclaration7(target=es5).types | 11 + ...sorDeclaration8(target=es2015).errors.txt} | 0 ...mberAccessorDeclaration8(target=es2015).js | 11 + ...cessorDeclaration8(target=es2015).symbols} | 0 ...AccessorDeclaration8(target=es2015).types} | 0 ...ccessorDeclaration8(target=es5).errors.txt | 12 + ...MemberAccessorDeclaration8(target=es5).js} | 0 ...erAccessorDeclaration8(target=es5).symbols | 10 + ...mberAccessorDeclaration8(target=es5).types | 13 + ...sorDeclaration9(target=es2015).errors.txt} | 0 ...mberAccessorDeclaration9(target=es2015).js | 11 + ...cessorDeclaration9(target=es2015).symbols} | 0 ...AccessorDeclaration9(target=es2015).types} | 0 ...ccessorDeclaration9(target=es5).errors.txt | 12 + ...MemberAccessorDeclaration9(target=es5).js} | 0 ...erAccessorDeclaration9(target=es5).symbols | 9 + ...mberAccessorDeclaration9(target=es5).types | 11 + ...TypeAnnotation1(target=es2015).errors.txt} | 0 ...essorWithTypeAnnotation1(target=es2015).js | 13 + ...ithTypeAnnotation1(target=es2015).symbols} | 0 ...rWithTypeAnnotation1(target=es2015).types} | 0 ...WithTypeAnnotation1(target=es5).errors.txt | 10 + ...ccessorWithTypeAnnotation1(target=es5).js} | 0 ...sorWithTypeAnnotation1(target=es5).symbols | 11 + ...essorWithTypeAnnotation1(target=es5).types | 14 + ...TypeParameters1(target=es2015).errors.txt} | 0 ...essorWithTypeParameters1(target=es2015).js | 11 + ...ithTypeParameters1(target=es2015).symbols} | 0 ...rWithTypeParameters1(target=es2015).types} | 0 ...WithTypeParameters1(target=es5).errors.txt | 9 + ...ccessorWithTypeParameters1(target=es5).js} | 0 ...sorWithTypeParameters1(target=es5).symbols | 11 + ...essorWithTypeParameters1(target=es5).types | 13 + ...serStrictMode12(target=es2015).errors.txt} | 0 ...s => parserStrictMode12(target=es2015).js} | 0 ...parserStrictMode12(target=es2015).symbols} | 0 ...> parserStrictMode12(target=es2015).types} | 0 .../parserStrictMode12(target=es5).errors.txt | 8 + .../parserStrictMode12(target=es5).js | 9 + .../parserStrictMode12(target=es5).symbols | 9 + .../parserStrictMode12(target=es5).types | 17 + ...portedVariables(target=es2015).errors.txt} | 0 ...torsOnExportedVariables(target=es2015).js} | 0 ...nExportedVariables(target=es2015).symbols} | 0 ...sOnExportedVariables(target=es2015).types} | 0 ...OnExportedVariables(target=es5).errors.txt | 37 + ...peratorsOnExportedVariables(target=es5).js | 60 + ...orsOnExportedVariables(target=es5).symbols | 43 + ...atorsOnExportedVariables(target=es5).types | 70 + .../privacyAccessorDeclFile(target=es2015).js | 2355 ++ ...cyAccessorDeclFile(target=es2015).symbols} | 0 ...vacyAccessorDeclFile(target=es2015).types} | 0 ...=> privacyAccessorDeclFile(target=es5).js} | 0 ...rivacyAccessorDeclFile(target=es5).symbols | 2218 ++ .../privacyAccessorDeclFile(target=es5).types | 2895 ++ ...nnotNameAccessorDeclFile(target=es2015).js | 395 + ...meAccessorDeclFile(target=es2015).symbols} | 0 ...NameAccessorDeclFile(target=es2015).types} | 0 ...CannotNameAccessorDeclFile(target=es5).js} | 0 ...otNameAccessorDeclFile(target=es5).symbols | 322 + ...nnotNameAccessorDeclFile(target=es5).types | 524 + ...> privacyGetter(target=es2015).errors.txt} | 0 .../reference/privacyGetter(target=es2015).js | 379 + ...s => privacyGetter(target=es2015).symbols} | 0 ...pes => privacyGetter(target=es2015).types} | 0 .../privacyGetter(target=es5).errors.txt | 212 + ...Getter.js => privacyGetter(target=es5).js} | 0 .../privacyGetter(target=es5).symbols | 388 + .../reference/privacyGetter(target=es5).types | 519 + .../privacyGloGetter(target=es2015).js | 162 + ...> privacyGloGetter(target=es2015).symbols} | 0 ... => privacyGloGetter(target=es2015).types} | 0 ...ter.js => privacyGloGetter(target=es5).js} | 0 .../privacyGloGetter(target=es5).symbols | 166 + .../privacyGloGetter(target=es5).types | 222 + ...essibleWithinNestedClass(target=es2015).js | 72 + ...eWithinNestedClass(target=es2015).symbols} | 0 ...bleWithinNestedClass(target=es2015).types} | 0 ...ccessibleWithinNestedClass(target=es5).js} | 0 ...sibleWithinNestedClass(target=es5).symbols | 156 + ...essibleWithinNestedClass(target=es5).types | 256 + .../privateNameES5Ban(target=es2015).js | 27 + ... privateNameES5Ban(target=es2015).symbols} | 0 ...=> privateNameES5Ban(target=es2015).types} | 0 ... privateNameES5Ban(target=es5).errors.txt} | 0 ...an.js => privateNameES5Ban(target=es5).js} | 0 .../privateNameES5Ban(target=es5).symbols | 35 + .../privateNameES5Ban(target=es5).types | 54 + ...eDefinitionTest(target=es2015).errors.txt} | 0 .../promiseDefinitionTest(target=es2015).js | 24 + ...miseDefinitionTest(target=es2015).symbols} | 0 ...romiseDefinitionTest(target=es2015).types} | 0 ...omiseDefinitionTest(target=es5).errors.txt | 14 + ...s => promiseDefinitionTest(target=es5).js} | 0 .../promiseDefinitionTest(target=es5).symbols | 14 + .../promiseDefinitionTest(target=es5).types | 19 + .../reference/properties(target=es2015).js | 32 + .../properties(target=es2015).js.map | 3 + .../properties(target=es2015).sourcemap.txt | 108 + ...bols => properties(target=es2015).symbols} | 0 ....types => properties(target=es2015).types} | 0 ...roperties.js => properties(target=es5).js} | 0 ...s.js.map => properties(target=es5).js.map} | 0 ...t => properties(target=es5).sourcemap.txt} | 0 .../reference/properties(target=es5).symbols | 19 + .../reference/properties(target=es5).types | 25 + ...ridesAccessors4(target=es2015).errors.txt} | 0 ...pertyOverridesAccessors4(target=es2015).js | 24 + ...verridesAccessors4(target=es2015).symbols} | 0 ...yOverridesAccessors4(target=es2015).types} | 0 ...OverridesAccessors4(target=es5).errors.txt | 14 + ...ropertyOverridesAccessors4(target=es5).js} | 0 ...rtyOverridesAccessors4(target=es5).symbols | 21 + ...pertyOverridesAccessors4(target=es5).types | 30 + ...rtyAccessibleWithinClass(target=es2015).js | 58 + ...essibleWithinClass(target=es2015).symbols} | 0 ...ccessibleWithinClass(target=es2015).types} | 0 ...pertyAccessibleWithinClass(target=es5).js} | 0 ...yAccessibleWithinClass(target=es5).symbols | 128 + ...rtyAccessibleWithinClass(target=es5).types | 224 + ...essibleWithinNestedClass(target=es2015).js | 72 + ...eWithinNestedClass(target=es2015).symbols} | 0 ...bleWithinNestedClass(target=es2015).types} | 0 ...ccessibleWithinNestedClass(target=es5).js} | 0 ...sibleWithinNestedClass(target=es5).symbols | 156 + ...essibleWithinNestedClass(target=es5).types | 256 + ...nNestedSubclass(target=es2015).errors.txt} | 0 ...ibleWithinNestedSubclass(target=es2015).js | 71 + ...thinNestedSubclass(target=es2015).symbols} | 0 ...WithinNestedSubclass(target=es2015).types} | 0 ...ithinNestedSubclass(target=es5).errors.txt | 43 + ...ssibleWithinNestedSubclass(target=es5).js} | 0 ...leWithinNestedSubclass(target=es5).symbols | 143 + ...ibleWithinNestedSubclass(target=es5).types | 238 + ...AccessibleWithinSubclass(target=es2015).js | 37 + ...ibleWithinSubclass(target=es2015).symbols} | 0 ...ssibleWithinSubclass(target=es2015).types} | 0 ...tyAccessibleWithinSubclass(target=es5).js} | 0 ...cessibleWithinSubclass(target=es5).symbols | 76 + ...AccessibleWithinSubclass(target=es5).types | 129 + ...omThisParameter(target=es2015).errors.txt} | 0 ...dSetterFromThisParameter(target=es2015).js | 71 + ...rFromThisParameter(target=es2015).symbols} | 0 ...terFromThisParameter(target=es2015).types} | 0 ...erFromThisParameter(target=es5).errors.txt | 45 + ...tedSetterFromThisParameter(target=es5).js} | 0 ...etterFromThisParameter(target=es5).symbols | 121 + ...dSetterFromThisParameter(target=es5).types | 229 + .../reExportDefaultExport(target=es2015).js | 32 + ...xportDefaultExport(target=es2015).symbols} | 0 ...eExportDefaultExport(target=es2015).types} | 0 ...s => reExportDefaultExport(target=es5).js} | 0 .../reExportDefaultExport(target=es5).symbols | 23 + .../reExportDefaultExport(target=es5).types | 33 + ...eadonlyInDeclarationFile(target=es2015).js | 136 + ...yInDeclarationFile(target=es2015).symbols} | 0 ...nlyInDeclarationFile(target=es2015).types} | 0 ... readonlyInDeclarationFile(target=es5).js} | 0 ...donlyInDeclarationFile(target=es5).symbols | 143 + ...eadonlyInDeclarationFile(target=es5).types | 215 + ...pertyParameters(target=es2015).errors.txt} | 0 ...yInNonPropertyParameters(target=es2015).js | 21 + ...PropertyParameters(target=es2015).symbols} | 0 ...onPropertyParameters(target=es2015).types} | 0 ...nPropertyParameters(target=es5).errors.txt | 20 + ...nlyInNonPropertyParameters(target=es5).js} | 0 ...nNonPropertyParameters(target=es5).symbols | 22 + ...yInNonPropertyParameters(target=es5).types | 37 + ...readonlyMembers(target=es2015).errors.txt} | 0 .../readonlyMembers(target=es2015).js | 135 + ...=> readonlyMembers(target=es2015).symbols} | 0 ...s => readonlyMembers(target=es2015).types} | 0 .../readonlyMembers(target=es5).errors.txt | 121 + ...bers.js => readonlyMembers(target=es5).js} | 0 .../readonlyMembers(target=es5).symbols | 231 + .../readonlyMembers(target=es5).types | 501 + .../recursiveProperties(target=es2015).js | 18 + ...ecursiveProperties(target=es2015).symbols} | 0 ... recursiveProperties(target=es2015).types} | 0 ....js => recursiveProperties(target=es5).js} | 0 .../recursiveProperties(target=es5).symbols | 24 + .../recursiveProperties(target=es5).types | 36 + ...ntWithNumberPropertyName(target=es2015).js | 19 + ...NumberPropertyName(target=es2015).symbols} | 0 ...thNumberPropertyName(target=es2015).types} | 0 ...mentWithNumberPropertyName(target=es5).js} | 0 ...WithNumberPropertyName(target=es5).symbols | 7 + ...ntWithNumberPropertyName(target=es5).types | 17 + ...eterInDownlevelGenerator(target=es2015).js | 14 + ...DownlevelGenerator(target=es2015).symbols} | 0 ...InDownlevelGenerator(target=es2015).types} | 0 ...ameterInDownlevelGenerator(target=es5).js} | 0 ...erInDownlevelGenerator(target=es5).symbols | 12 + ...eterInDownlevelGenerator(target=es5).types | 16 + ... scannerNumericLiteral1(target=es2015).js} | 0 ...nerNumericLiteral1(target=es2015).symbols} | 0 ...annerNumericLiteral1(target=es2015).types} | 0 .../scannerNumericLiteral1(target=es5).js | 7 + ...scannerNumericLiteral1(target=es5).symbols | 5 + .../scannerNumericLiteral1(target=es5).types | 7 + ...NumericLiteral2(target=es2015).errors.txt} | 0 ... scannerNumericLiteral2(target=es2015).js} | 0 ...nerNumericLiteral2(target=es2015).symbols} | 0 ...annerNumericLiteral2(target=es2015).types} | 0 ...nnerNumericLiteral2(target=es5).errors.txt | 7 + .../scannerNumericLiteral2(target=es5).js | 7 + ...scannerNumericLiteral2(target=es5).symbols | 5 + .../scannerNumericLiteral2(target=es5).types | 7 + ...NumericLiteral3(target=es2015).errors.txt} | 0 ... scannerNumericLiteral3(target=es2015).js} | 0 ...nerNumericLiteral3(target=es2015).symbols} | 0 ...annerNumericLiteral3(target=es2015).types} | 0 ...nnerNumericLiteral3(target=es5).errors.txt | 10 + .../scannerNumericLiteral3(target=es5).js | 8 + ...scannerNumericLiteral3(target=es5).symbols | 5 + .../scannerNumericLiteral3(target=es5).types | 9 + ...NumericLiteral4(target=es2015).errors.txt} | 0 ... scannerNumericLiteral4(target=es2015).js} | 0 ...nerNumericLiteral4(target=es2015).symbols} | 0 ...annerNumericLiteral4(target=es2015).types} | 0 ...nnerNumericLiteral4(target=es5).errors.txt | 7 + .../scannerNumericLiteral4(target=es5).js | 7 + ...scannerNumericLiteral4(target=es5).symbols | 5 + .../scannerNumericLiteral4(target=es5).types | 7 + ... scannerNumericLiteral5(target=es2015).js} | 0 ...nerNumericLiteral5(target=es2015).symbols} | 0 ...annerNumericLiteral5(target=es2015).types} | 0 .../scannerNumericLiteral5(target=es5).js | 7 + ...scannerNumericLiteral5(target=es5).symbols | 5 + .../scannerNumericLiteral5(target=es5).types | 7 + ...NumericLiteral6(target=es2015).errors.txt} | 0 ... scannerNumericLiteral6(target=es2015).js} | 0 ...nerNumericLiteral6(target=es2015).symbols} | 0 ...annerNumericLiteral6(target=es2015).types} | 0 ...nnerNumericLiteral6(target=es5).errors.txt | 7 + .../scannerNumericLiteral6(target=es5).js | 7 + ...scannerNumericLiteral6(target=es5).symbols | 5 + .../scannerNumericLiteral6(target=es5).types | 7 + ... scannerNumericLiteral7(target=es2015).js} | 0 ...nerNumericLiteral7(target=es2015).symbols} | 0 ...annerNumericLiteral7(target=es2015).types} | 0 .../scannerNumericLiteral7(target=es5).js | 7 + ...scannerNumericLiteral7(target=es5).symbols | 5 + .../scannerNumericLiteral7(target=es5).types | 7 + ...NumericLiteral8(target=es2015).errors.txt} | 0 ... scannerNumericLiteral8(target=es2015).js} | 0 ...nerNumericLiteral8(target=es2015).symbols} | 0 ...annerNumericLiteral8(target=es2015).types} | 0 ...nnerNumericLiteral8(target=es5).errors.txt | 7 + .../scannerNumericLiteral8(target=es5).js | 7 + ...scannerNumericLiteral8(target=es5).symbols | 5 + .../scannerNumericLiteral8(target=es5).types | 9 + ...NumericLiteral9(target=es2015).errors.txt} | 0 ... scannerNumericLiteral9(target=es2015).js} | 0 ...nerNumericLiteral9(target=es2015).symbols} | 0 ...annerNumericLiteral9(target=es2015).types} | 0 ...nnerNumericLiteral9(target=es5).errors.txt | 7 + .../scannerNumericLiteral9(target=es5).js | 7 + ...scannerNumericLiteral9(target=es5).symbols | 5 + .../scannerNumericLiteral9(target=es5).types | 7 + ...tionsWithNoEmit(target=es2015).errors.txt} | 0 ...arationsWithNoEmit(target=es2015).symbols} | 0 ...clarationsWithNoEmit(target=es2015).types} | 0 ...larationsWithNoEmit(target=es5).errors.txt | 56 + ...DeclarationsWithNoEmit(target=es5).symbols | 91 + ...erDeclarationsWithNoEmit(target=es5).types | 133 + ...roperty-es5-es6(target=es2015).errors.txt} | 0 ...orthand-property-es5-es6(target=es2015).js | 16 + ...d-property-es5-es6(target=es2015).symbols} | 0 ...and-property-es5-es6(target=es2015).types} | 0 ...nd-property-es5-es6(target=es5).errors.txt | 10 + ...shorthand-property-es5-es6(target=es5).js} | 0 ...thand-property-es5-es6(target=es5).symbols | 14 + ...orthand-property-es5-es6(target=es5).types | 23 + ...ity02_targetES5_CommonJS(target=es2015).js | 24 + ...targetES5_CommonJS(target=es2015).symbols} | 0 ...2_targetES5_CommonJS(target=es2015).types} | 0 ...ntity02_targetES5_CommonJS(target=es5).js} | 0 ...y02_targetES5_CommonJS(target=es5).symbols | 14 + ...ity02_targetES5_CommonJS(target=es5).types | 22 + ...InDestructuring(target=es2015).errors.txt} | 0 ...signmentsInDestructuring(target=es2015).js | 213 + ...ntsInDestructuring(target=es2015).symbols} | 0 ...mentsInDestructuring(target=es2015).types} | 0 ...entsInDestructuring(target=es5).errors.txt | 147 + ...AssignmentsInDestructuring(target=es5).js} | 0 ...gnmentsInDestructuring(target=es5).symbols | 241 + ...signmentsInDestructuring(target=es5).types | 702 + ...s => sourceMap-Comment1(target=es2015).js} | 0 ... sourceMap-Comment1(target=es2015).js.map} | 0 ...Map-Comment1(target=es2015).sourcemap.txt} | 0 ...sourceMap-Comment1(target=es2015).symbols} | 0 ...> sourceMap-Comment1(target=es2015).types} | 0 .../sourceMap-Comment1(target=es5).js | 8 + .../sourceMap-Comment1(target=es5).js.map | 3 + ...urceMap-Comment1(target=es5).sourcemap.txt | 20 + .../sourceMap-Comment1(target=es5).symbols | 5 + .../sourceMap-Comment1(target=es5).types | 5 + .../sourceMap-Comments(target=es2015).js | 49 + .../sourceMap-Comments(target=es2015).js.map | 3 + ...eMap-Comments(target=es2015).sourcemap.txt | 404 + ...sourceMap-Comments(target=es2015).symbols} | 0 ...> sourceMap-Comments(target=es2015).types} | 0 ...s.js => sourceMap-Comments(target=es5).js} | 0 ... => sourceMap-Comments(target=es5).js.map} | 0 ...rceMap-Comments(target=es5).sourcemap.txt} | 0 .../sourceMap-Comments(target=es5).symbols | 34 + .../sourceMap-Comments(target=es5).types | 51 + ... => sourceMap-Comments2(target=es2015).js} | 0 ...sourceMap-Comments2(target=es2015).js.map} | 0 ...ap-Comments2(target=es2015).sourcemap.txt} | 0 ...ourceMap-Comments2(target=es2015).symbols} | 0 ... sourceMap-Comments2(target=es2015).types} | 0 .../sourceMap-Comments2(target=es5).js | 41 + .../sourceMap-Comments2(target=es5).js.map | 3 + ...rceMap-Comments2(target=es5).sourcemap.txt | 211 + .../sourceMap-Comments2(target=es5).symbols | 38 + .../sourceMap-Comments2(target=es5).types | 50 + ...=> sourceMap-EmptyFile1(target=es2015).js} | 0 ...ourceMap-EmptyFile1(target=es2015).js.map} | 0 ...p-EmptyFile1(target=es2015).sourcemap.txt} | 0 ...urceMap-EmptyFile1(target=es2015).symbols} | 0 ...sourceMap-EmptyFile1(target=es2015).types} | 0 .../sourceMap-EmptyFile1(target=es5).js | 7 + .../sourceMap-EmptyFile1(target=es5).js.map | 3 + ...ceMap-EmptyFile1(target=es5).sourcemap.txt | 7 + .../sourceMap-EmptyFile1(target=es5).symbols | 4 + .../sourceMap-EmptyFile1(target=es5).types | 4 + ...ingVariableDeclaration1(target=es2015).js} | 0 ...ariableDeclaration1(target=es2015).js.map} | 0 ...Declaration1(target=es2015).sourcemap.txt} | 0 ...riableDeclaration1(target=es2015).symbols} | 0 ...VariableDeclaration1(target=es2015).types} | 0 ...ecedingVariableDeclaration1(target=es5).js | 9 + ...ingVariableDeclaration1(target=es5).js.map | 3 + ...ableDeclaration1(target=es5).sourcemap.txt | 33 + ...ngVariableDeclaration1(target=es5).symbols | 9 + ...dingVariableDeclaration1(target=es5).types | 10 + ...=> sourceMap-LineBreaks(target=es2015).js} | 12 +- ...ourceMap-LineBreaks(target=es2015).js.map} | 2 +- ...p-LineBreaks(target=es2015).sourcemap.txt} | 12 +- ...urceMap-LineBreaks(target=es2015).symbols} | 0 ...sourceMap-LineBreaks(target=es2015).types} | 4 +- .../sourceMap-LineBreaks(target=es5).js | 38 + .../sourceMap-LineBreaks(target=es5).js.map | 3 + ...ceMap-LineBreaks(target=es5).sourcemap.txt | 323 + .../sourceMap-LineBreaks(target=es5).symbols | 49 + .../sourceMap-LineBreaks(target=es5).types | 91 + ...s => sourceMap-NewLine1(target=es2015).js} | 0 ... sourceMap-NewLine1(target=es2015).js.map} | 0 ...Map-NewLine1(target=es2015).sourcemap.txt} | 0 ...sourceMap-NewLine1(target=es2015).symbols} | 0 ...> sourceMap-NewLine1(target=es2015).types} | 0 .../sourceMap-NewLine1(target=es5).js | 7 + .../sourceMap-NewLine1(target=es5).js.map | 3 + ...urceMap-NewLine1(target=es5).sourcemap.txt | 7 + .../sourceMap-NewLine1(target=es5).symbols | 4 + .../sourceMap-NewLine1(target=es5).types | 4 + ...=> sourceMap-SemiColon1(target=es2015).js} | 0 ...ourceMap-SemiColon1(target=es2015).js.map} | 0 ...p-SemiColon1(target=es2015).sourcemap.txt} | 0 ...urceMap-SemiColon1(target=es2015).symbols} | 0 ...sourceMap-SemiColon1(target=es2015).types} | 0 .../sourceMap-SemiColon1(target=es5).js | 9 + .../sourceMap-SemiColon1(target=es5).js.map | 3 + ...ceMap-SemiColon1(target=es5).sourcemap.txt | 20 + .../sourceMap-SemiColon1(target=es5).symbols | 6 + .../sourceMap-SemiColon1(target=es5).types | 6 + ... sourceMap-SingleSpace1(target=es2015).js} | 0 ...rceMap-SingleSpace1(target=es2015).js.map} | 0 ...SingleSpace1(target=es2015).sourcemap.txt} | 0 ...ceMap-SingleSpace1(target=es2015).symbols} | 0 ...urceMap-SingleSpace1(target=es2015).types} | 0 .../sourceMap-SingleSpace1(target=es5).js | 7 + .../sourceMap-SingleSpace1(target=es5).js.map | 3 + ...Map-SingleSpace1(target=es5).sourcemap.txt | 7 + ...sourceMap-SingleSpace1(target=es5).symbols | 4 + .../sourceMap-SingleSpace1(target=es5).types | 4 + ...tringLiteralWithNewLine(target=es2015).js} | 0 ...gLiteralWithNewLine(target=es2015).js.map} | 0 ...lWithNewLine(target=es2015).sourcemap.txt} | 0 ...LiteralWithNewLine(target=es2015).symbols} | 0 ...ngLiteralWithNewLine(target=es2015).types} | 0 ...ap-StringLiteralWithNewLine(target=es5).js | 26 + ...tringLiteralWithNewLine(target=es5).js.map | 3 + ...teralWithNewLine(target=es5).sourcemap.txt | 154 + ...ringLiteralWithNewLine(target=es5).symbols | 33 + ...StringLiteralWithNewLine(target=es5).types | 41 + ...sourceMapValidationClass(target=es2015).js | 42 + ...ceMapValidationClass(target=es2015).js.map | 3 + ...lidationClass(target=es2015).sourcemap.txt | 293 + ...MapValidationClass(target=es2015).symbols} | 0 ...ceMapValidationClass(target=es2015).types} | 0 ...> sourceMapValidationClass(target=es5).js} | 0 ...urceMapValidationClass(target=es5).js.map} | 0 ...ValidationClass(target=es5).sourcemap.txt} | 0 ...urceMapValidationClass(target=es5).symbols | 51 + ...sourceMapValidationClass(target=es5).types | 86 + ...eMapValidationDecorators(target=es2015).js | 117 + ...ValidationDecorators(target=es2015).js.map | 3 + ...ionDecorators(target=es2015).sourcemap.txt | 801 + ...lidationDecorators(target=es2015).symbols} | 0 ...ValidationDecorators(target=es2015).types} | 0 ...rceMapValidationDecorators(target=es5).js} | 0 ...apValidationDecorators(target=es5).js.map} | 0 ...ationDecorators(target=es5).sourcemap.txt} | 0 ...apValidationDecorators(target=es5).symbols | 160 + ...eMapValidationDecorators(target=es5).types | 265 + ...usedefineforclassfields=false).errors.txt} | 0 ...t=es2015,usedefineforclassfields=false).js | 621 + ...15,usedefineforclassfields=false).symbols} | 0 ...2015,usedefineforclassfields=false).types} | 0 ...,usedefineforclassfields=true).errors.txt} | 0 ...et=es2015,usedefineforclassfields=true).js | 861 + ...015,usedefineforclassfields=true).symbols} | 0 ...s2015,usedefineforclassfields=true).types} | 0 ...,usedefineforclassfields=false).errors.txt | 573 + ...get=es5,usedefineforclassfields=false).js} | 0 ...es5,usedefineforclassfields=false).symbols | 864 + ...t=es5,usedefineforclassfields=false).types | 1293 + ...5,usedefineforclassfields=true).errors.txt | 429 + ...rget=es5,usedefineforclassfields=true).js} | 0 ...=es5,usedefineforclassfields=true).symbols | 864 + ...et=es5,usedefineforclassfields=true).types | 1293 + ...jectLiterals_ES5(target=es2015).errors.txt | 77 + ...uperInObjectLiterals_ES5(target=es2015).js | 121 + ...ObjectLiterals_ES5(target=es2015).symbols} | 0 ...InObjectLiterals_ES5(target=es2015).types} | 0 ...ObjectLiterals_ES5(target=es5).errors.txt} | 0 ... superInObjectLiterals_ES5(target=es5).js} | 0 ...erInObjectLiterals_ES5(target=es5).symbols | 111 + ...uperInObjectLiterals_ES5(target=es5).types | 267 + ...opertiesOfNestedType_ES5(target=es2015).js | 32 + ...esOfNestedType_ES5(target=es2015).symbols} | 0 ...tiesOfNestedType_ES5(target=es2015).types} | 0 ...PropertiesOfNestedType_ES5(target=es5).js} | 0 ...ertiesOfNestedType_ES5(target=es5).symbols | 32 + ...opertiesOfNestedType_ES5(target=es5).types | 53 + ...perPropertyAccessNoError(target=es2015).js | 131 + ...pertyAccessNoError(target=es2015).symbols} | 0 ...ropertyAccessNoError(target=es2015).types} | 0 ...superPropertyAccessNoError(target=es5).js} | 0 ...rPropertyAccessNoError(target=es5).symbols | 163 + ...perPropertyAccessNoError(target=es5).types | 255 + .../superPropertyAccess_ES5(target=es2015).js | 55 + ...PropertyAccess_ES5(target=es2015).symbols} | 0 ...erPropertyAccess_ES5(target=es2015).types} | 0 ...PropertyAccess_ES5(target=es5).errors.txt} | 0 ...=> superPropertyAccess_ES5(target=es5).js} | 0 ...uperPropertyAccess_ES5(target=es5).symbols | 81 + .../superPropertyAccess_ES5(target=es5).types | 139 + ...uperSymbolIndexedAccess5(target=es2015).js | 29 + ...mbolIndexedAccess5(target=es2015).symbols} | 0 ...SymbolIndexedAccess5(target=es2015).types} | 0 ... superSymbolIndexedAccess5(target=es5).js} | 0 ...erSymbolIndexedAccess5(target=es5).symbols | 30 + ...uperSymbolIndexedAccess5(target=es5).types | 42 + ...uperSymbolIndexedAccess6(target=es2015).js | 29 + ...mbolIndexedAccess6(target=es2015).symbols} | 0 ...SymbolIndexedAccess6(target=es2015).types} | 0 ... superSymbolIndexedAccess6(target=es5).js} | 0 ...erSymbolIndexedAccess6(target=es5).symbols | 30 + ...uperSymbolIndexedAccess6(target=es5).types | 42 + ...xportAssignment(target=es2015).errors.txt} | 0 ... systemExportAssignment(target=es2015).js} | 0 ...emExportAssignment(target=es2015).symbols} | 0 ...stemExportAssignment(target=es2015).types} | 0 ...temExportAssignment(target=es5).errors.txt | 11 + .../systemExportAssignment(target=es5).js | 20 + ...systemExportAssignment(target=es5).symbols | 13 + .../systemExportAssignment(target=es5).types | 16 + ...portAssignment2(target=es2015).errors.txt} | 0 ...systemExportAssignment2(target=es2015).js} | 0 ...mExportAssignment2(target=es2015).symbols} | 0 ...temExportAssignment2(target=es2015).types} | 0 ...emExportAssignment2(target=es5).errors.txt | 14 + .../systemExportAssignment2(target=es5).js | 32 + ...ystemExportAssignment2(target=es5).symbols | 13 + .../systemExportAssignment2(target=es5).types | 18 + ...portAssignment3(target=es2015).errors.txt} | 0 ...systemExportAssignment3(target=es2015).js} | 0 ...mExportAssignment3(target=es2015).symbols} | 0 ...temExportAssignment3(target=es2015).types} | 0 ...emExportAssignment3(target=es5).errors.txt | 13 + .../systemExportAssignment3(target=es5).js | 22 + ...ystemExportAssignment3(target=es5).symbols | 17 + .../systemExportAssignment3(target=es5).types | 21 + ...temModule10_ES5(target=es2015).errors.txt} | 0 ...s => systemModule10_ES5(target=es2015).js} | 0 ...systemModule10_ES5(target=es2015).symbols} | 0 ...> systemModule10_ES5(target=es2015).types} | 0 .../systemModule10_ES5(target=es5).errors.txt | 19 + .../systemModule10_ES5(target=es5).js | 36 + .../systemModule10_ES5(target=es5).symbols | 31 + .../systemModule10_ES5(target=es5).types | 43 + ...ringsWithCurriedFunction(target=es2015).js | 22 + ...ithCurriedFunction(target=es2015).symbols} | 0 ...sWithCurriedFunction(target=es2015).types} | 0 ...StringsWithCurriedFunction(target=es5).js} | 0 ...ngsWithCurriedFunction(target=es5).symbols | 33 + ...ringsWithCurriedFunction(target=es5).types | 130 + ...ateWithoutDeclaredHelper(target=es2015).js | 21 + ...houtDeclaredHelper(target=es2015).symbols} | 0 ...ithoutDeclaredHelper(target=es2015).types} | 0 ...houtDeclaredHelper(target=es5).errors.txt} | 0 ...plateWithoutDeclaredHelper(target=es5).js} | 0 ...eWithoutDeclaredHelper(target=es5).symbols | 21 + ...ateWithoutDeclaredHelper(target=es5).types | 28 + ...mplatesInModuleAndGlobal(target=es2015).js | 46 + ...sInModuleAndGlobal(target=es2015).symbols} | 0 ...tesInModuleAndGlobal(target=es2015).types} | 0 ...TemplatesInModuleAndGlobal(target=es5).js} | 0 ...latesInModuleAndGlobal(target=es5).symbols | 52 + ...mplatesInModuleAndGlobal(target=es5).types | 83 + ...rMetadataImportNotElided(target=es2015).js | 42 + ...ataImportNotElided(target=es2015).symbols} | 0 ...adataImportNotElided(target=es2015).types} | 0 ...torMetadataImportNotElided(target=es5).js} | 0 ...etadataImportNotElided(target=es5).symbols | 40 + ...rMetadataImportNotElided(target=es5).types | 58 + ...efinedInES5Mode(target=es2015).errors.txt} | 0 ...rrayTypeDefinedInES5Mode(target=es2015).js | 20 + ...peDefinedInES5Mode(target=es2015).symbols} | 0 ...TypeDefinedInES5Mode(target=es2015).types} | 0 ...ypeDefinedInES5Mode(target=es5).errors.txt | 17 + ...sArrayTypeDefinedInES5Mode(target=es5).js} | 0 ...ayTypeDefinedInES5Mode(target=es5).symbols | 21 + ...rrayTypeDefinedInES5Mode(target=es5).types | 43 + ...tDefinedES5Mode(target=es2015).errors.txt} | 0 ...rayTypeNotDefinedES5Mode(target=es2015).js | 15 + ...eNotDefinedES5Mode(target=es2015).symbols} | 0 ...ypeNotDefinedES5Mode(target=es2015).types} | 0 ...peNotDefinedES5Mode(target=es5).errors.txt | 14 + ...ArrayTypeNotDefinedES5Mode(target=es5).js} | 0 ...yTypeNotDefinedES5Mode(target=es5).symbols | 17 + ...rayTypeNotDefinedES5Mode(target=es5).types | 38 + ...AndSuperInStaticMembers3(target=es2015).js | 101 + ...isAndSuperInStaticMembers3(target=es5).js} | 0 ...AndSuperInStaticMembers4(target=es2015).js | 46 + ...isAndSuperInStaticMembers4(target=es5).js} | 0 ...TypeInAccessors(target=es2015).errors.txt} | 0 .../thisTypeInAccessors(target=es2015).js | 74 + ...hisTypeInAccessors(target=es2015).symbols} | 0 ... thisTypeInAccessors(target=es2015).types} | 0 ...thisTypeInAccessors(target=es5).errors.txt | 63 + ....js => thisTypeInAccessors(target=es5).js} | 0 .../thisTypeInAccessors(target=es5).symbols | 142 + .../thisTypeInAccessors(target=es5).types | 239 + ...cessorsNegative(target=es2015).errors.txt} | 0 ...sTypeInAccessorsNegative(target=es2015).js | 31 + ...nAccessorsNegative(target=es2015).symbols} | 0 ...eInAccessorsNegative(target=es2015).types} | 0 ...InAccessorsNegative(target=es5).errors.txt | 26 + ...hisTypeInAccessorsNegative(target=es5).js} | 0 ...ypeInAccessorsNegative(target=es5).symbols | 55 + ...sTypeInAccessorsNegative(target=es5).types | 82 + ...hisTypeInObjectLiterals2(target=es2015).js | 494 + ...eInObjectLiterals2(target=es2015).symbols} | 0 ...ypeInObjectLiterals2(target=es2015).types} | 0 ... thisTypeInObjectLiterals2(target=es5).js} | 0 ...sTypeInObjectLiterals2(target=es5).symbols | 783 + ...hisTypeInObjectLiterals2(target=es5).types | 1235 + ...js => trailingCommasES5(target=es2015).js} | 0 ... trailingCommasES5(target=es2015).symbols} | 0 ...=> trailingCommasES5(target=es2015).types} | 0 .../trailingCommasES5(target=es5).js | 26 + .../trailingCommasES5(target=es5).symbols | 38 + .../trailingCommasES5(target=es5).types | 101 + ...ersAndArguments(target=es2015).errors.txt} | 0 ...onParametersAndArguments(target=es2015).js | 49 + ...metersAndArguments(target=es2015).symbols} | 0 ...rametersAndArguments(target=es2015).types} | 0 ...ametersAndArguments(target=es5).errors.txt | 37 + ...tionParametersAndArguments(target=es5).js} | 0 ...ParametersAndArguments(target=es5).symbols | 63 + ...onParametersAndArguments(target=es5).types | 111 + ...ScopedLoopVarInitializer(target=es2015).js | 16 + ...LoopVarInitializer(target=es2015).symbols} | 0 ...edLoopVarInitializer(target=es2015).types} | 0 ...ckScopedLoopVarInitializer(target=es5).js} | 0 ...opedLoopVarInitializer(target=es5).symbols | 13 + ...ScopedLoopVarInitializer(target=es5).types | 18 + ...mNestedGeneratorsWithTry(target=es2015).js | 52 + ...dGeneratorsWithTry(target=es2015).symbols} | 0 ...stedGeneratorsWithTry(target=es2015).types | 70 + ...dGeneratorsWithTry(target=es5).errors.txt} | 0 ...ormNestedGeneratorsWithTry(target=es5).js} | 0 ...estedGeneratorsWithTry(target=es5).symbols | 52 + ...NestedGeneratorsWithTry(target=es5).types} | 0 ...ConditionalSubexpression(target=es2015).js | 11 + ...ionalSubexpression(target=es2015).symbols} | 0 ...itionalSubexpression(target=es2015).types} | 0 ...esConditionalSubexpression(target=es5).js} | 0 ...nditionalSubexpression(target=es5).symbols | 18 + ...ConditionalSubexpression(target=es5).types | 51 + ...StructuralCheck(target=es2015).errors.txt} | 0 ...ductionNoStructuralCheck(target=es2015).js | 23 + ...nNoStructuralCheck(target=es2015).symbols} | 0 ...ionNoStructuralCheck(target=es2015).types} | 0 ...onNoStructuralCheck(target=es5).errors.txt | 19 + ...ReductionNoStructuralCheck(target=es5).js} | 0 ...ctionNoStructuralCheck(target=es5).symbols | 33 + ...ductionNoStructuralCheck(target=es5).types | 40 + ...uctionNoStructuralCheck2(target=es2015).js | 23 + ...NoStructuralCheck2(target=es2015).symbols} | 0 ...onNoStructuralCheck2(target=es2015).types} | 0 ...eductionNoStructuralCheck2(target=es5).js} | 0 ...tionNoStructuralCheck2(target=es5).symbols | 34 + ...uctionNoStructuralCheck2(target=es5).types | 42 + ...sxPreserveEmit1(target=es2015).errors.txt} | 0 ....js => tsxPreserveEmit1(target=es2015).js} | 0 ...> tsxPreserveEmit1(target=es2015).symbols} | 0 ... => tsxPreserveEmit1(target=es2015).types} | 0 .../tsxPreserveEmit1(target=es5).errors.txt | 35 + .../reference/tsxPreserveEmit1(target=es5).js | 48 + .../tsxPreserveEmit1(target=es5).symbols | 62 + .../tsxPreserveEmit1(target=es5).types | 85 + ...sxPreserveEmit2(target=es2015).errors.txt} | 0 ....js => tsxPreserveEmit2(target=es2015).js} | 0 ...> tsxPreserveEmit2(target=es2015).symbols} | 0 ... => tsxPreserveEmit2(target=es2015).types} | 0 .../tsxPreserveEmit2(target=es5).errors.txt | 8 + .../reference/tsxPreserveEmit2(target=es5).js | 10 + .../tsxPreserveEmit2(target=es5).symbols | 10 + .../tsxPreserveEmit2(target=es5).types | 15 + ...orsWithSameName(target=es2015).errors.txt} | 0 ...twoAccessorsWithSameName(target=es2015).js | 68 + ...essorsWithSameName(target=es2015).symbols} | 0 ...ccessorsWithSameName(target=es2015).types} | 0 ...cessorsWithSameName(target=es5).errors.txt | 58 + ...> twoAccessorsWithSameName(target=es5).js} | 0 ...oAccessorsWithSameName(target=es5).symbols | 67 + ...twoAccessorsWithSameName(target=es5).types | 104 + ...DeclarationEmit(target=es2015).errors.txt} | 0 ...ypeAliasDeclarationEmit(target=es2015).js} | 0 ...iasDeclarationEmit(target=es2015).symbols} | 0 ...AliasDeclarationEmit(target=es2015).types} | 0 ...liasDeclarationEmit(target=es5).errors.txt | 9 + .../typeAliasDeclarationEmit(target=es5).js | 15 + ...peAliasDeclarationEmit(target=es5).symbols | 14 + ...typeAliasDeclarationEmit(target=es5).types | 11 + ...eclarationEmit2(target=es2015).errors.txt} | 0 ...peAliasDeclarationEmit2(target=es2015).js} | 0 ...asDeclarationEmit2(target=es2015).symbols} | 0 ...liasDeclarationEmit2(target=es2015).types} | 0 ...iasDeclarationEmit2(target=es5).errors.txt | 6 + .../typeAliasDeclarationEmit2(target=es5).js | 16 + ...eAliasDeclarationEmit2(target=es5).symbols | 9 + ...ypeAliasDeclarationEmit2(target=es5).types | 9 + ...signmentOutOfOrder(target=es2015).symbols} | 0 ...AssignmentOutOfOrder(target=es2015).types} | 0 ...tyAssignmentOutOfOrder(target=es5).symbols | 39 + ...ertyAssignmentOutOfOrder(target=es5).types | 77 + ...fFormThisMember(target=es2015).errors.txt} | 0 ...ypeGuardOfFormThisMember(target=es2015).js | 167 + ...rdOfFormThisMember(target=es2015).symbols} | 0 ...uardOfFormThisMember(target=es2015).types} | 0 ...ardOfFormThisMember(target=es5).errors.txt | 130 + ... typeGuardOfFormThisMember(target=es5).js} | 0 ...eGuardOfFormThisMember(target=es5).symbols | 226 + ...ypeGuardOfFormThisMember(target=es5).types | 330 + ...hisMemberErrors(target=es2015).errors.txt} | 0 ...rdOfFormThisMemberErrors(target=es2015).js | 94 + ...rmThisMemberErrors(target=es2015).symbols} | 0 ...FormThisMemberErrors(target=es2015).types} | 0 ...ormThisMemberErrors(target=es5).errors.txt | 47 + ...uardOfFormThisMemberErrors(target=es5).js} | 0 ...OfFormThisMemberErrors(target=es5).symbols | 98 + ...rdOfFormThisMemberErrors(target=es5).types | 151 + ...peGuardsInClassAccessors(target=es2015).js | 191 + ...dsInClassAccessors(target=es2015).symbols} | 0 ...ardsInClassAccessors(target=es2015).types} | 0 ...typeGuardsInClassAccessors(target=es5).js} | 0 ...GuardsInClassAccessors(target=es5).symbols | 253 + ...peGuardsInClassAccessors(target=es5).types | 581 + .../typeGuardsInProperties(target=es2015).js | 50 + ...GuardsInProperties(target=es2015).symbols} | 0 ...peGuardsInProperties(target=es2015).types} | 0 ... => typeGuardsInProperties(target=es5).js} | 0 ...typeGuardsInProperties(target=es5).symbols | 97 + .../typeGuardsInProperties(target=es5).types | 209 + .../typeGuardsObjectMethods(target=es2015).js | 94 + ...uardsObjectMethods(target=es2015).symbols} | 0 ...eGuardsObjectMethods(target=es2015).types} | 0 ...=> typeGuardsObjectMethods(target=es5).js} | 0 ...ypeGuardsObjectMethods(target=es5).symbols | 135 + .../typeGuardsObjectMethods(target=es5).types | 311 + .../typedArrays-es5(target=es2015).js | 57 + ...=> typedArrays-es5(target=es2015).symbols} | 0 .../typedArrays-es5(target=es2015).types | 183 + ...=> typedArrays-es5(target=es5).errors.txt} | 0 ...-es5.js => typedArrays-es5(target=es5).js} | 0 .../typedArrays-es5(target=es5).symbols | 75 + ...ypes => typedArrays-es5(target=es5).types} | 0 ...edGetterInClass(target=es2015).errors.txt} | 0 .../unusedGetterInClass(target=es2015).js | 21 + ...nusedGetterInClass(target=es2015).symbols} | 0 ... unusedGetterInClass(target=es2015).types} | 0 ...unusedGetterInClass(target=es5).errors.txt | 15 + ....js => unusedGetterInClass(target=es5).js} | 0 .../unusedGetterInClass(target=es5).symbols | 22 + .../unusedGetterInClass(target=es5).types | 30 + ...edParameterUsedInTypeOf(target=es2015).js} | 0 ...ameterUsedInTypeOf(target=es2015).symbols} | 0 ...arameterUsedInTypeOf(target=es2015).types} | 0 ...unusedParameterUsedInTypeOf(target=es5).js | 11 + ...dParameterUsedInTypeOf(target=es5).symbols | 12 + ...sedParameterUsedInTypeOf(target=es5).types | 17 + ...dPrivateMembers(target=es2015).errors.txt} | 0 .../unusedPrivateMembers(target=es2015).js | 124 + ...usedPrivateMembers(target=es2015).symbols} | 0 ...unusedPrivateMembers(target=es2015).types} | 0 ...nusedPrivateMembers(target=es5).errors.txt | 69 + ...js => unusedPrivateMembers(target=es5).js} | 0 .../unusedPrivateMembers(target=es5).symbols | 146 + .../unusedPrivateMembers(target=es5).types | 222 + ...edSetterInClass(target=es2015).errors.txt} | 0 .../unusedSetterInClass(target=es2015).js | 17 + ...nusedSetterInClass(target=es2015).symbols} | 0 ... unusedSetterInClass(target=es2015).types} | 0 ...unusedSetterInClass(target=es5).errors.txt | 16 + ....js => unusedSetterInClass(target=es5).js} | 0 .../unusedSetterInClass(target=es5).symbols | 20 + .../unusedSetterInClass(target=es5).types | 30 + ...aluesAndEntries1(target=es2015).errors.txt | 36 + ...eObjectValuesAndEntries1(target=es2015).js | 60 + ...tValuesAndEntries1(target=es2015).symbols} | 0 ...jectValuesAndEntries1(target=es2015).types | 277 + ...useObjectValuesAndEntries1(target=es5).js} | 0 ...bjectValuesAndEntries1(target=es5).symbols | 131 + ...ObjectValuesAndEntries1(target=es5).types} | 0 ...luesAndEntries2(target=es2015).errors.txt} | 0 ...eObjectValuesAndEntries2(target=es2015).js | 17 + ...tValuesAndEntries2(target=es2015).symbols} | 0 ...ectValuesAndEntries2(target=es2015).types} | 0 ...ctValuesAndEntries2(target=es5).errors.txt | 16 + ...useObjectValuesAndEntries2(target=es5).js} | 0 ...bjectValuesAndEntries2(target=es5).symbols | 23 + ...eObjectValuesAndEntries2(target=es5).types | 52 + .../usePromiseFinally(target=es2015).js | 10 + ... usePromiseFinally(target=es2015).symbols} | 0 ...=> usePromiseFinally(target=es2015).types} | 0 ...ly.js => usePromiseFinally(target=es5).js} | 0 .../usePromiseFinally(target=es5).symbols | 13 + .../usePromiseFinally(target=es5).types | 27 + ...> useSharedArrayBuffer1(target=es2015).js} | 0 ...SharedArrayBuffer1(target=es2015).symbols} | 0 ...seSharedArrayBuffer1(target=es2015).types} | 0 .../useSharedArrayBuffer1(target=es5).js | 11 + .../useSharedArrayBuffer1(target=es5).symbols | 19 + .../useSharedArrayBuffer1(target=es5).types | 39 + ...redArrayBuffer2(target=es2015).errors.txt} | 0 ...> useSharedArrayBuffer2(target=es2015).js} | 0 ...SharedArrayBuffer2(target=es2015).symbols} | 0 ...seSharedArrayBuffer2(target=es2015).types} | 0 ...eSharedArrayBuffer2(target=es5).errors.txt | 9 + .../useSharedArrayBuffer2(target=es5).js | 11 + .../useSharedArrayBuffer2(target=es5).symbols | 14 + .../useSharedArrayBuffer2(target=es5).types | 39 + ...> useSharedArrayBuffer5(target=es2015).js} | 0 ...SharedArrayBuffer5(target=es2015).symbols} | 0 ...seSharedArrayBuffer5(target=es2015).types} | 0 .../useSharedArrayBuffer5(target=es5).js | 11 + .../useSharedArrayBuffer5(target=es5).symbols | 21 + .../useSharedArrayBuffer5(target=es5).types | 41 + ...redArrayBuffer6(target=es2015).errors.txt} | 0 ...> useSharedArrayBuffer6(target=es2015).js} | 0 ...SharedArrayBuffer6(target=es2015).symbols} | 0 ...seSharedArrayBuffer6(target=es2015).types} | 0 ...eSharedArrayBuffer6(target=es5).errors.txt | 11 + .../useSharedArrayBuffer6(target=es5).js | 13 + .../useSharedArrayBuffer6(target=es5).symbols | 16 + .../useSharedArrayBuffer6(target=es5).types | 31 + ...rictLikePrologueString01(target=es2015).js | 13 + ...kePrologueString01(target=es2015).symbols} | 0 ...LikePrologueString01(target=es2015).types} | 0 ...StrictLikePrologueString01(target=es5).js} | 0 ...ctLikePrologueString01(target=es5).symbols | 8 + ...rictLikePrologueString01(target=es5).types | 15 + .../usingDeclarations.11(target=es2015).js | 177 + ...js => usingDeclarations.11(target=es5).js} | 0 ...orInInDownlevelGenerator(target=es2015).js | 21 + ...DownlevelGenerator(target=es2015).symbols} | 0 ...InDownlevelGenerator(target=es2015).types} | 0 ...nForInInDownlevelGenerator(target=es5).js} | 0 ...InInDownlevelGenerator(target=es5).symbols | 23 + ...orInInDownlevelGenerator(target=es5).types | 41 + .../cases/compiler/abstractPropertyBasics.ts | 2 +- .../compiler/abstractPropertyNegative.ts | 2 +- .../accessorAccidentalCallDiagnostic.ts | 2 +- .../compiler/accessorInAmbientContextES5.ts | 2 +- .../accessorParameterAccessibilityModifier.ts | 2 +- .../cases/compiler/accessorWithInitializer.ts | 2 +- .../compiler/accessorWithLineTerminator.ts | 2 +- tests/cases/compiler/accessorWithRestParam.ts | 2 +- tests/cases/compiler/accessorWithoutBody1.ts | 2 +- tests/cases/compiler/accessorWithoutBody2.ts | 2 +- .../compiler/accessorsInAmbientContext.ts | 2 +- .../compiler/aliasUsageInAccessorsOfClass.ts | 2 +- tests/cases/compiler/alwaysStrictModule6.ts | 2 +- tests/cases/compiler/ambientGetters.ts | 2 +- .../compiler/argumentsObjectIterator01_ES5.ts | 2 +- .../compiler/argumentsObjectIterator02_ES5.ts | 2 +- .../compiler/argumentsObjectIterator03_ES5.ts | 2 +- .../cases/compiler/arrayToLocaleStringES5.ts | 2 +- tests/cases/compiler/asyncArrowInClassES5.ts | 2 +- .../asyncAwaitWithCapturedBlockScopeVar.ts | 2 +- .../asyncFunctionTempVariableScoping.ts | 2 +- tests/cases/compiler/bigintAmbientMinimal.ts | 2 +- tests/cases/compiler/bigintWithoutLib.ts | 2 +- ...blockScopedBindingsInDownlevelGenerator.ts | 2 +- .../blockScopedEnumVariablesUseBeforeDef.ts | 2 +- ...umVariablesUseBeforeDef_isolatedModules.ts | 2 +- ...copedEnumVariablesUseBeforeDef_preserve.ts | 2 +- ...iablesUseBeforeDef_verbatimModuleSyntax.ts | 2 +- .../blockScopedFunctionDeclarationES5.ts | 2 +- ...kScopedFunctionDeclarationInStrictClass.ts | 2 +- ...blockScopedFunctionDeclarationStrictES5.ts | 2 +- .../blockScopedNamespaceDifferentFile.ts | 2 +- ...ockScopedSameNameFunctionDeclarationES5.ts | 2 +- ...pedSameNameFunctionDeclarationStrictES5.ts | 2 +- .../blockScopedVariablesUseBeforeDef.ts | 2 +- .../compiler/capturedLetConstInLoop14.ts | 2 +- .../capturedParametersInInitializers2.ts | 2 +- ...turedShorthandPropertyAssignmentNoCheck.ts | 2 +- tests/cases/compiler/capturedVarInLoop.ts | 2 +- .../circularObjectLiteralAccessors.ts | 2 +- .../classExpressionWithStaticProperties2.ts | 2 +- .../classExpressionWithStaticProperties3.ts | 2 +- .../cases/compiler/classExtendsAcrossFiles.ts | 2 +- .../cases/compiler/classInConvertedLoopES5.ts | 2 +- .../compiler/classStaticPropertyAccess.ts | 2 +- .../compiler/classStaticPropertyTypeGuard.ts | 2 +- .../classUsedBeforeInitializedVariables.ts | 2 +- tests/cases/compiler/classdecl.ts | 2 +- ...llisionSuperAndLocalFunctionInAccessors.ts | 2 +- .../collisionSuperAndLocalVarInAccessors.ts | 2 +- .../compiler/collisionSuperAndParameter.ts | 2 +- ...ionThisExpressionAndLocalVarInAccessors.ts | 2 +- tests/cases/compiler/commentsClass.ts | 2 +- tests/cases/compiler/commentsClassMembers.ts | 2 +- .../cases/compiler/commentsCommentParsing.ts | 2 +- .../compiler/commentsDottedModuleName.ts | 2 +- tests/cases/compiler/commentsEnums.ts | 2 +- .../cases/compiler/commentsExternalModules.ts | 2 +- .../compiler/commentsExternalModules2.ts | 2 +- .../compiler/commentsExternalModules3.ts | 2 +- tests/cases/compiler/commentsFormatting.ts | 2 +- tests/cases/compiler/commentsFunction.ts | 2 +- tests/cases/compiler/commentsInheritance.ts | 2 +- tests/cases/compiler/commentsInterface.ts | 2 +- tests/cases/compiler/commentsModules.ts | 2 +- .../compiler/commentsMultiModuleMultiFile.ts | 2 +- .../compiler/commentsMultiModuleSingleFile.ts | 2 +- .../compiler/commentsOnObjectLiteral3.ts | 2 +- .../compiler/commentsOnObjectLiteral4.ts | 2 +- .../compiler/commentsOnObjectLiteral5.ts | 2 +- .../compiler/commentsOnRequireStatement.ts | 2 +- tests/cases/compiler/commentsOverloads.ts | 2 +- tests/cases/compiler/commentsVarDecl.ts | 2 +- .../compiler/commentsdoNotEmitComments.ts | 2 +- tests/cases/compiler/commentsemitComments.ts | 2 +- .../commonJsExportTypeDeclarationError.ts | 2 +- tests/cases/compiler/commonjsSafeImport.ts | 2 +- .../compiler/complexClassRelationships.ts | 2 +- tests/cases/compiler/complicatedPrivacy.ts | 2 +- ...puterPropertiesInES5ShouldBeTransformed.ts | 2 +- tests/cases/compiler/constDeclarations-es5.ts | 2 +- .../constructorWithSuperAndPrologue.es5.ts | 2 +- ...alExpressionTypecheckingDoesntBlowStack.ts | 2 +- ...InLoopsWithCapturedBlockScopedBindings1.ts | 2 +- ...ExpressionToFunctionFromObjectProperty1.ts | 2 +- ...ExpressionToFunctionFromObjectProperty2.ts | 2 +- tests/cases/compiler/declFileAccessors.ts | 2 +- .../cases/compiler/declFileCallSignatures.ts | 2 +- .../compiler/declFileClassExtendsNull.ts | 2 +- .../compiler/declFileConstructSignatures.ts | 2 +- tests/cases/compiler/declFileConstructors.ts | 2 +- tests/cases/compiler/declFileFunctions.ts | 2 +- .../cases/compiler/declFileIndexSignatures.ts | 2 +- tests/cases/compiler/declFileMethods.ts | 2 +- .../declFileObjectLiteralWithAccessors.ts | 2 +- .../declFileObjectLiteralWithOnlyGetter.ts | 2 +- .../declFileObjectLiteralWithOnlySetter.ts | 2 +- tests/cases/compiler/declFilePrivateStatic.ts | 2 +- .../declFileTypeAnnotationArrayType.ts | 2 +- .../declFileTypeAnnotationBuiltInType.ts | 2 +- .../declFileTypeAnnotationParenType.ts | 2 +- .../declFileTypeAnnotationStringLiteral.ts | 2 +- .../declFileTypeAnnotationTupleType.ts | 2 +- .../declFileTypeAnnotationTypeAlias.ts | 2 +- .../declFileTypeAnnotationTypeLiteral.ts | 2 +- .../declFileTypeAnnotationTypeQuery.ts | 2 +- .../declFileTypeAnnotationTypeReference.ts | 2 +- .../declFileTypeAnnotationUnionType.ts | 2 +- ...eTypeAnnotationVisibilityErrorAccessors.ts | 2 +- ...ationVisibilityErrorParameterOfFunction.ts | 2 +- ...tionVisibilityErrorReturnTypeOfFunction.ts | 2 +- ...eTypeAnnotationVisibilityErrorTypeAlias.ts | 2 +- ...ypeAnnotationVisibilityErrorTypeLiteral.ts | 2 +- ...ationVisibilityErrorVariableDeclaration.ts | 2 +- .../declarationEmitClassMemberNameConflict.ts | 2 +- ...declarationEmitClassMemberNameConflict2.ts | 2 +- .../declarationEmitClassPrivateConstructor.ts | 2 +- ...declarationEmitClassPrivateConstructor2.ts | 2 +- .../declarationEmitDetachedComment1.ts | 2 +- .../declarationEmitDetachedComment2.ts | 2 +- .../declarationEmitExportAssignment.ts | 2 +- .../declarationEmitExportDeclaration.ts | 2 +- .../declarationEmitModuleWithScopeMarker.ts | 2 +- ...ationEmitPrefersPathKindBasedOnBundling.ts | 2 +- ...tionEmitPrefersPathKindBasedOnBundling2.ts | 2 +- .../declarationEmitProtectedMembers.ts | 2 +- .../compiler/declarationEmitSymlinkPaths.ts | 2 +- .../compiler/declarationEmitUnknownImport.ts | 2 +- .../compiler/declarationEmitUnknownImport2.ts | 2 +- ...ionEmitUnnessesaryTypeReferenceNotAdded.ts | 2 +- ...eclarationEmitWithDefaultAsComputedName.ts | 2 +- ...clarationEmitWithDefaultAsComputedName2.ts | 2 +- ...taForMethodWithNoReturnTypeAnnotation01.ts | 2 +- .../decoratorMetadataOnInferredType.ts | 10 +- ...orMetadataRestParameterWithImportedType.ts | 2 +- .../decoratorMetadataWithConstructorType.ts | 10 +- ...adataWithImportDeclarationNameCollision.ts | 12 +- ...dataWithImportDeclarationNameCollision2.ts | 12 +- ...dataWithImportDeclarationNameCollision3.ts | 10 +- ...dataWithImportDeclarationNameCollision4.ts | 10 +- ...dataWithImportDeclarationNameCollision5.ts | 10 +- ...dataWithImportDeclarationNameCollision6.ts | 10 +- ...dataWithImportDeclarationNameCollision7.ts | 10 +- ...dataWithImportDeclarationNameCollision8.ts | 10 +- ...decoratorWithNegativeLiteralTypeNoCrash.ts | 2 +- ...edClassConstructorWithExplicitReturns01.ts | 2 +- .../compiler/divergentAccessorsTypes3.ts | 2 +- .../compiler/divergentAccessorsTypes4.ts | 2 +- .../compiler/divergentAccessorsTypes5.ts | 2 +- ...tElaborateAssignabilityToTypeParameters.ts | 2 +- tests/cases/compiler/downlevelLetConst12.ts | 2 +- tests/cases/compiler/downlevelLetConst13.ts | 2 +- tests/cases/compiler/downlevelLetConst14.ts | 2 +- tests/cases/compiler/downlevelLetConst15.ts | 2 +- tests/cases/compiler/downlevelLetConst16.ts | 2 +- tests/cases/compiler/downlevelLetConst17.ts | 2 +- tests/cases/compiler/downlevelLetConst18.ts | 2 +- ...erBindingElementInParameterDeclaration1.ts | 2 +- ...erBindingElementInParameterDeclaration2.ts | 2 +- .../duplicateObjectLiteralProperty.ts | 2 +- .../dynamicImportWithNestedThis_es5.ts | 2 +- ...jectLiteralExpressionInArrowFunctionES5.ts | 2 +- .../emitBundleWithPrologueDirectives1.ts | 2 +- .../cases/compiler/emitBundleWithShebang1.ts | 2 +- .../cases/compiler/emitBundleWithShebang2.ts | 2 +- ...BundleWithShebangAndPrologueDirectives1.ts | 2 +- ...BundleWithShebangAndPrologueDirectives2.ts | 2 +- .../compiler/emitDecoratorMetadata_object.ts | 2 +- .../emitDecoratorMetadata_restArgs.ts | 2 +- .../compiler/emitThisInObjectLiteralGetter.ts | 2 +- tests/cases/compiler/emptyFile-declaration.ts | 2 +- tests/cases/compiler/emptyFile-souremap.ts | 2 +- .../cases/compiler/errorsOnImportedSymbol.ts | 2 +- tests/cases/compiler/es5-amd.ts | 2 +- tests/cases/compiler/es5-asyncFunction.ts | 2 +- .../es5-asyncFunctionArrayLiterals.ts | 2 +- .../es5-asyncFunctionBinaryExpressions.ts | 2 +- .../es5-asyncFunctionCallExpressions.ts | 2 +- .../compiler/es5-asyncFunctionConditionals.ts | 2 +- .../compiler/es5-asyncFunctionDoStatements.ts | 2 +- .../es5-asyncFunctionElementAccess.ts | 2 +- .../es5-asyncFunctionForInStatements.ts | 2 +- .../es5-asyncFunctionForOfStatements.ts | 2 +- .../es5-asyncFunctionForStatements.ts | 2 +- .../compiler/es5-asyncFunctionHoisting.ts | 2 +- .../compiler/es5-asyncFunctionIfStatements.ts | 2 +- .../es5-asyncFunctionLongObjectLiteral.ts | 2 +- .../compiler/es5-asyncFunctionNestedLoops.ts | 2 +- .../es5-asyncFunctionNewExpressions.ts | 2 +- .../es5-asyncFunctionObjectLiterals.ts | 2 +- .../es5-asyncFunctionPropertyAccess.ts | 2 +- .../es5-asyncFunctionReturnStatements.ts | 2 +- .../es5-asyncFunctionSwitchStatements.ts | 2 +- .../es5-asyncFunctionTryStatements.ts | 2 +- .../es5-asyncFunctionWhileStatements.ts | 2 +- .../es5-asyncFunctionWithStatements.ts | 2 +- tests/cases/compiler/es5-commonjs.ts | 2 +- tests/cases/compiler/es5-commonjs2.ts | 2 +- tests/cases/compiler/es5-commonjs3.ts | 2 +- tests/cases/compiler/es5-commonjs4.ts | 2 +- tests/cases/compiler/es5-commonjs5.ts | 2 +- tests/cases/compiler/es5-commonjs6.ts | 2 +- tests/cases/compiler/es5-commonjs7.ts | 2 +- tests/cases/compiler/es5-commonjs8.ts | 2 +- tests/cases/compiler/es5-declaration-amd.ts | 2 +- .../es5-importHelpersAsyncFunctions.ts | 2 +- .../es5-oldStyleOctalLiteralInEnums.ts | 2 +- tests/cases/compiler/es5-souremap-amd.ts | 2 +- tests/cases/compiler/es5-system.ts | 2 +- tests/cases/compiler/es5-system2.ts | 2 +- tests/cases/compiler/es5-umd.ts | 2 +- tests/cases/compiler/es5-umd2.ts | 2 +- tests/cases/compiler/es5-umd3.ts | 2 +- tests/cases/compiler/es5-umd4.ts | 2 +- .../es5-yieldFunctionObjectLiterals.ts | 2 +- .../es5ExportDefaultClassDeclaration.ts | 2 +- .../es5ExportDefaultClassDeclaration2.ts | 2 +- .../es5ExportDefaultClassDeclaration3.ts | 2 +- .../es5ExportDefaultClassDeclaration4.ts | 2 +- .../compiler/es5ExportDefaultExpression.ts | 2 +- .../es5ExportDefaultFunctionDeclaration.ts | 2 +- .../es5ExportDefaultFunctionDeclaration2.ts | 2 +- .../es5ExportDefaultFunctionDeclaration3.ts | 2 +- .../es5ExportDefaultFunctionDeclaration4.ts | 2 +- .../compiler/es5ExportDefaultIdentifier.ts | 2 +- tests/cases/compiler/es5ExportEquals.ts | 2 +- tests/cases/compiler/es5ExportEqualsDts.ts | 2 +- .../compiler/es5ModuleInternalNamedImports.ts | 2 +- .../compiler/es5ModuleWithModuleGenAmd.ts | 2 +- .../es5ModuleWithModuleGenCommonjs.ts | 2 +- .../es5ModuleWithoutModuleGenTarget.ts | 2 +- ...s5SetterparameterDestructuringNotElided.ts | 2 +- tests/cases/compiler/es5andes6module.ts | 2 +- tests/cases/compiler/es6ExportAllInEs5.ts | 2 +- tests/cases/compiler/es6ExportClauseInEs5.ts | 2 +- .../es6ExportClauseWithAssignmentInEs5.ts | 2 +- ...ExportClauseWithoutModuleSpecifierInEs5.ts | 2 +- .../compiler/es6ImportDefaultBindingAmd.ts | 2 +- .../compiler/es6ImportDefaultBindingDts.ts | 2 +- ...ultBindingFollowedWithNamedImport1InEs5.ts | 2 +- ...ndingFollowedWithNamedImport1WithExport.ts | 2 +- ...faultBindingFollowedWithNamedImportDts1.ts | 2 +- ...aultBindingFollowedWithNamedImportInEs5.ts | 2 +- ...indingFollowedWithNamedImportWithExport.ts | 2 +- ...ndingFollowedWithNamespaceBinding1InEs5.ts | 2 +- ...FollowedWithNamespaceBinding1WithExport.ts | 2 +- ...BindingFollowedWithNamespaceBindingDts1.ts | 2 +- ...indingFollowedWithNamespaceBindingInEs5.ts | 2 +- .../compiler/es6ImportDefaultBindingInEs5.ts | 2 +- .../es6ImportDefaultBindingMergeErrors.ts | 2 +- .../es6ImportDefaultBindingWithExport.ts | 2 +- .../compiler/es6ImportNameSpaceImportInEs5.ts | 2 +- .../es6ImportNameSpaceImportMergeErrors.ts | 2 +- .../es6ImportNameSpaceImportNoNamedExports.ts | 2 +- .../compiler/es6ImportNamedImportInEs5.ts | 2 +- .../es6ImportNamedImportNoNamedExports.ts | 2 +- .../es6ImportWithoutFromClauseInEs5.ts | 2 +- .../compiler/esModuleInteropWithExportStar.ts | 2 +- .../exportDeclarationInInternalModule.ts | 2 +- .../compiler/exportDefaultParenthesize.ts | 2 +- ...ortImportCanSubstituteConstEnumForValue.ts | 2 +- .../compiler/exportStarFromEmptyModule.ts | 2 +- .../compiler/forwardDeclaredCommonTypes01.ts | 2 +- ...nsMissingReturnStatementsAndExpressions.ts | 2 +- .../compiler/generatorTransformFinalLabel.ts | 2 +- tests/cases/compiler/getSetEnumerable.ts | 2 +- .../compiler/getterControlFlowStrictNull.ts | 2 +- .../implicitAnyFromCircularInference.ts | 2 +- tests/cases/compiler/importHelpers.ts | 2 +- tests/cases/compiler/importHelpersAmd.ts | 2 +- .../compiler/importHelpersDeclarations.ts | 2 +- .../compiler/importHelpersInAmbientContext.ts | 2 +- .../importHelpersInIsolatedModules.ts | 2 +- tests/cases/compiler/importHelpersInTsx.tsx | 2 +- ...importHelpersNoEmitHelpersExportDefault.ts | 2 +- .../cases/compiler/importHelpersNoHelpers.ts | 2 +- ...mportHelpersNoHelpersForAsyncGenerators.ts | 2 +- tests/cases/compiler/importHelpersNoModule.ts | 2 +- tests/cases/compiler/importHelpersOutFile.ts | 2 +- tests/cases/compiler/importHelpersSystem.ts | 2 +- ...heritanceMemberAccessorOverridingMethod.ts | 2 +- .../initializePropertiesWithRenamedLet.ts | 2 +- tests/cases/compiler/inlineSourceMap.ts | 2 +- tests/cases/compiler/inlineSourceMap2.ts | 2 +- tests/cases/compiler/inlineSources.ts | 2 +- tests/cases/compiler/inlineSources2.ts | 2 +- .../compiler/isDeclarationVisibleNodeKinds.ts | 2 +- .../isolatedModulesImportExportElision.ts | 2 +- .../compiler/isolatedModulesPlainFile-AMD.ts | 2 +- .../isolatedModulesPlainFile-CommonJS.ts | 2 +- .../isolatedModulesPlainFile-System.ts | 2 +- .../compiler/isolatedModulesPlainFile-UMD.ts | 2 +- .../compiler/jsxChildrenArrayWrongType.tsx | 2 +- .../jsxFactoryQualifiedNameWithEs5.ts | 2 +- tests/cases/compiler/letConstInCaseClauses.ts | 2 +- .../letConstMatchingParameterNames.ts | 2 +- tests/cases/compiler/letDeclarations-es5-1.ts | 2 +- tests/cases/compiler/letDeclarations-es5.ts | 2 +- .../compiler/letInConstDeclarations_ES5.ts | 2 +- .../letInLetConstDeclOfForOfAndForIn_ES5.ts | 2 +- .../compiler/letInLetDeclarations_ES5.ts | 2 +- .../cases/compiler/letInVarDeclOfForIn_ES5.ts | 2 +- .../cases/compiler/letInVarDeclOfForOf_ES5.ts | 2 +- tests/cases/compiler/manyConstExports.ts | 2 +- .../compiler/metadataOfClassFromAlias.ts | 2 +- .../compiler/metadataOfClassFromAlias2.ts | 2 +- .../compiler/metadataOfClassFromModule.ts | 2 +- tests/cases/compiler/metadataOfEventAlias.ts | 2 +- .../metadataReferencedWithinFilteredUnion.ts | 2 +- .../compiler/methodContainingLocalFunction.ts | 2 +- tests/cases/compiler/modifierParenCast.ts | 2 +- ...rorFromUsingES6ArrayWithOnlyES6ArrayLib.ts | 2 +- ...larizeLibrary_UsingES5LibAndES6ArrayLib.ts | 2 +- .../compiler/moduleAugmentationGlobal8.ts | 2 +- .../compiler/moduleAugmentationGlobal8_1.ts | 2 +- .../moduleAugmentationsBundledOutput1.ts | 2 +- tests/cases/compiler/moduledecl.ts | 2 +- .../nestedLoopWithOnlyInnerLetCaptured.ts | 2 +- tests/cases/compiler/nestedLoops.ts | 2 +- tests/cases/compiler/nestedSuperCallEmit.ts | 2 +- .../newLexicalEnvironmentForConvertedLoop.ts | 2 +- tests/cases/compiler/noEmitHelpers2.ts | 2 +- .../noImplicitAnyMissingGetAccessor.ts | 2 +- .../noImplicitAnyMissingSetAccessor.ts | 2 +- tests/cases/compiler/out-flag.ts | 2 +- tests/cases/compiler/out-flag2.ts | 2 +- tests/cases/compiler/out-flag3.ts | 2 +- tests/cases/compiler/outModuleConcatAmd.ts | 2 +- .../cases/compiler/outModuleConcatCommonjs.ts | 2 +- .../outModuleConcatCommonjsDeclarationOnly.ts | 2 +- tests/cases/compiler/outModuleConcatSystem.ts | 2 +- tests/cases/compiler/outModuleConcatUmd.ts | 2 +- .../outModuleConcatUnspecifiedModuleKind.ts | 2 +- ...catUnspecifiedModuleKindDeclarationOnly.ts | 2 +- .../compiler/outModuleTripleSlashRefs.ts | 2 +- ...prefixUnaryOperatorsOnExportedVariables.ts | 2 +- .../cases/compiler/privacyAccessorDeclFile.ts | 2 +- .../privacyCannotNameAccessorDeclFile.ts | 2 +- tests/cases/compiler/privacyGetter.ts | 2 +- tests/cases/compiler/privacyGloGetter.ts | 2 +- tests/cases/compiler/promiseDefinitionTest.ts | 2 +- tests/cases/compiler/properties.ts | 2 +- ...cGetterProtectedSetterFromThisParameter.ts | 2 +- .../compiler/readonlyInDeclarationFile.ts | 2 +- .../readonlyInNonPropertyParameters.ts | 2 +- tests/cases/compiler/readonlyMembers.ts | 2 +- tests/cases/compiler/recursiveProperties.ts | 2 +- .../restElementWithNumberPropertyName.ts | 2 +- ...dReservedCompilerDeclarationsWithNoEmit.ts | 2 +- .../compiler/shorthand-property-es5-es6.ts | 2 +- ...ndOfExportedEntity02_targetES5_CommonJS.ts | 2 +- ...thandPropertyAssignmentsInDestructuring.ts | 2 +- tests/cases/compiler/sourceMap-Comment1.ts | 2 +- tests/cases/compiler/sourceMap-Comments.ts | 2 +- tests/cases/compiler/sourceMap-Comments2.ts | 2 +- tests/cases/compiler/sourceMap-EmptyFile1.ts | 2 +- ...-InterfacePrecedingVariableDeclaration1.ts | 2 +- tests/cases/compiler/sourceMap-LineBreaks.ts | 15 +- tests/cases/compiler/sourceMap-NewLine1.ts | 2 +- tests/cases/compiler/sourceMap-SemiColon1.ts | 2 +- .../cases/compiler/sourceMap-SingleSpace1.ts | 2 +- .../sourceMap-StringLiteralWithNewLine.ts | 2 +- .../compiler/sourceMapValidationClass.ts | 2 +- .../compiler/sourceMapValidationDecorators.ts | 2 +- .../compiler/superInObjectLiterals_ES5.ts | 2 +- ...essInComputedPropertiesOfNestedType_ES5.ts | 2 +- .../cases/compiler/superPropertyAccess_ES5.ts | 2 +- .../cases/compiler/systemExportAssignment.ts | 2 +- .../cases/compiler/systemExportAssignment2.ts | 2 +- .../cases/compiler/systemExportAssignment3.ts | 2 +- tests/cases/compiler/systemModule10_ES5.ts | 2 +- ...aggedTemplateStringsWithCurriedFunction.ts | 2 +- .../taggedTemplateWithoutDeclaredHelper.ts | 2 +- .../taggedTemplatesInModuleAndGlobal.ts | 2 +- ...rgetEs6DecoratorMetadataImportNotElided.ts | 2 +- ...emplateStringsArrayTypeDefinedInES5Mode.ts | 2 +- ...mplateStringsArrayTypeNotDefinedES5Mode.ts | 2 +- tests/cases/compiler/trailingCommasES5.ts | 2 +- ...ormArrowInBlockScopedLoopVarInitializer.ts | 2 +- .../transformNestedGeneratorsWithTry.ts | 2 +- ...rmParenthesizesConditionalSubexpression.ts | 2 +- ...rivialSubtypeReductionNoStructuralCheck.ts | 2 +- ...ivialSubtypeReductionNoStructuralCheck2.ts | 2 +- .../compiler/typeAliasDeclarationEmit.ts | 2 +- .../compiler/typeAliasDeclarationEmit2.ts | 2 +- tests/cases/compiler/typedArrays-es5.ts | 2 +- tests/cases/compiler/unusedGetterInClass.ts | 2 +- .../compiler/unusedParameterUsedInTypeOf.ts | 2 +- tests/cases/compiler/unusedPrivateMembers.ts | 2 +- tests/cases/compiler/unusedSetterInClass.ts | 2 +- .../compiler/useStrictLikePrologueString01.ts | 2 +- .../yieldInForInInDownlevelGenerator.ts | 2 +- .../conformance/Symbols/ES5SymbolProperty1.ts | 2 +- .../conformance/Symbols/ES5SymbolProperty2.ts | 2 +- .../conformance/Symbols/ES5SymbolProperty3.ts | 2 +- .../conformance/Symbols/ES5SymbolProperty4.ts | 2 +- .../conformance/Symbols/ES5SymbolProperty5.ts | 2 +- .../conformance/Symbols/ES5SymbolProperty6.ts | 2 +- .../conformance/Symbols/ES5SymbolProperty7.ts | 2 +- .../conformance/Symbols/ES5SymbolType1.ts | 2 +- ...owFunctionWithParameterNameAsync_es2017.ts | 2 +- .../async/es5/asyncAliasReturnType_es5.ts | 2 +- ...arrowFunctionWithParameterNameAsync_es5.ts | 2 +- .../asyncArrowFunction10_es5.ts | 2 +- .../asyncArrowFunction11_es5.ts | 2 +- .../asyncArrowFunction1_es5.ts | 2 +- .../asyncArrowFunction2_es5.ts | 2 +- .../asyncArrowFunction3_es5.ts | 2 +- .../asyncArrowFunction4_es5.ts | 2 +- .../asyncArrowFunction5_es5.ts | 2 +- .../asyncArrowFunction6_es5.ts | 2 +- .../asyncArrowFunction7_es5.ts | 2 +- .../asyncArrowFunction8_es5.ts | 2 +- .../asyncArrowFunction9_es5.ts | 2 +- ...asyncArrowFunctionCapturesArguments_es5.ts | 2 +- .../asyncArrowFunctionCapturesThis_es5.ts | 2 +- .../asyncUnParenthesizedArrowFunction_es5.ts | 2 +- .../es5/asyncAwaitIsolatedModules_es5.ts | 2 +- .../async/es5/asyncAwaitNestedClasses_es5.ts | 2 +- .../conformance/async/es5/asyncAwait_es5.ts | 2 +- .../conformance/async/es5/asyncClass_es5.ts | 2 +- .../async/es5/asyncConstructor_es5.ts | 2 +- .../conformance/async/es5/asyncDeclare_es5.ts | 2 +- .../conformance/async/es5/asyncEnum_es5.ts | 2 +- .../conformance/async/es5/asyncGetter_es5.ts | 2 +- .../async/es5/asyncImportedPromise_es5.ts | 2 +- .../async/es5/asyncInterface_es5.ts | 2 +- .../async/es5/asyncMethodWithSuper_es5.ts | 2 +- .../conformance/async/es5/asyncModule_es5.ts | 2 +- .../async/es5/asyncMultiFile_es5.ts | 2 +- .../async/es5/asyncQualifiedReturnType_es5.ts | 2 +- .../conformance/async/es5/asyncSetter_es5.ts | 2 +- .../async/es5/asyncUseStrict_es5.ts | 2 +- .../awaitBinaryExpression1_es5.ts | 2 +- .../awaitBinaryExpression2_es5.ts | 2 +- .../awaitBinaryExpression3_es5.ts | 2 +- .../awaitBinaryExpression4_es5.ts | 2 +- .../awaitBinaryExpression5_es5.ts | 2 +- .../awaitCallExpression1_es5.ts | 2 +- .../awaitCallExpression2_es5.ts | 2 +- .../awaitCallExpression3_es5.ts | 2 +- .../awaitCallExpression4_es5.ts | 2 +- .../awaitCallExpression5_es5.ts | 2 +- .../awaitCallExpression6_es5.ts | 2 +- .../awaitCallExpression7_es5.ts | 2 +- .../awaitCallExpression8_es5.ts | 2 +- .../async/es5/awaitClassExpression_es5.ts | 2 +- .../conformance/async/es5/awaitUnion_es5.ts | 2 +- .../asyncFunctionDeclaration10_es5.ts | 2 +- .../asyncFunctionDeclaration11_es5.ts | 2 +- .../asyncFunctionDeclaration12_es5.ts | 2 +- .../asyncFunctionDeclaration13_es5.ts | 2 +- .../asyncFunctionDeclaration14_es5.ts | 2 +- .../asyncFunctionDeclaration15_es5.ts | 2 +- .../asyncFunctionDeclaration16_es5.ts | 2 +- .../asyncFunctionDeclaration1_es5.ts | 2 +- .../asyncFunctionDeclaration2_es5.ts | 2 +- .../asyncFunctionDeclaration3_es5.ts | 2 +- .../asyncFunctionDeclaration4_es5.ts | 2 +- .../asyncFunctionDeclaration5_es5.ts | 2 +- .../asyncFunctionDeclaration6_es5.ts | 2 +- .../asyncFunctionDeclaration7_es5.ts | 2 +- .../asyncFunctionDeclaration8_es5.ts | 2 +- .../asyncFunctionDeclaration9_es5.ts | 2 +- ...unctionDeclarationCapturesArguments_es5.ts | 2 +- ...arrowFunctionWithParameterNameAsync_es6.ts | 2 +- .../classAbstractAccessor.ts | 2 +- .../superCalls/derivedClassSuperProperties.ts | 2 +- .../derivedClassSuperStatementPosition.ts | 2 +- ...lassPropertyAccessibleWithinNestedClass.ts | 2 +- ...ectedClassPropertyAccessibleWithinClass.ts | 2 +- ...lassPropertyAccessibleWithinNestedClass.ts | 2 +- ...sPropertyAccessibleWithinNestedSubclass.ts | 2 +- ...edClassPropertyAccessibleWithinSubclass.ts | 2 +- .../derivedClassOverridesProtectedMembers.ts | 2 +- .../derivedClassOverridesProtectedMembers2.ts | 2 +- .../derivedClassOverridesProtectedMembers3.ts | 2 +- ...ivateInstanceShadowingProtectedInstance.ts | 2 +- ...thPrivateStaticShadowingProtectedStatic.ts | 2 +- .../thisAndSuperInStaticMembers3.ts | 2 +- .../thisAndSuperInStaticMembers4.ts | 2 +- .../members/privateNames/privateNameES5Ban.ts | 2 +- .../accessibilityModifiers.ts | 2 +- .../accessorsOverrideProperty7.ts | 2 +- .../accessorWithES5.ts | 2 +- ...sorWithMismatchedAccessibilityModifiers.ts | 2 +- .../ambientAccessors.ts | 2 +- .../propertyOverridesAccessors4.ts | 2 +- .../staticPropertyNameConflicts.ts | 2 +- .../twoAccessorsWithSameName.ts | 2 +- .../accessor/decoratorOnClassAccessor1.ts | 2 +- .../accessor/decoratorOnClassAccessor2.ts | 2 +- .../accessor/decoratorOnClassAccessor3.ts | 2 +- .../accessor/decoratorOnClassAccessor4.ts | 2 +- .../accessor/decoratorOnClassAccessor5.ts | 2 +- .../accessor/decoratorOnClassAccessor6.ts | 2 +- .../accessor/decoratorOnClassAccessor7.ts | 2 +- .../accessor/decoratorOnClassAccessor8.ts | 2 +- .../decoratorOnClassConstructor1.ts | 2 +- .../decoratorOnClassConstructor2.ts | 2 +- .../decoratorOnClassConstructor3.ts | 2 +- .../decoratorOnClassConstructor4.ts | 2 +- .../decoratorOnClassConstructorParameter1.ts | 2 +- .../decoratorOnClassConstructorParameter4.ts | 2 +- .../class/decoratedBlockScopedClass1.ts | 2 +- .../class/decoratedBlockScopedClass2.ts | 2 +- .../class/decoratedBlockScopedClass3.ts | 2 +- .../class/decoratorChecksFunctionBodies.ts | 2 +- ...ratorInstantiateModulesInFunctionBodies.ts | 2 +- .../decorators/class/decoratorOnClass1.ts | 2 +- .../decorators/class/decoratorOnClass2.ts | 2 +- .../decorators/class/decoratorOnClass3.ts | 2 +- .../decorators/class/decoratorOnClass4.ts | 2 +- .../decorators/class/decoratorOnClass5.ts | 2 +- .../decorators/class/decoratorOnClass8.ts | 2 +- .../decorators/class/decoratorOnClass9.ts | 2 +- .../class/method/decoratorOnClassMethod1.ts | 2 +- .../class/method/decoratorOnClassMethod10.ts | 2 +- .../class/method/decoratorOnClassMethod11.ts | 2 +- .../class/method/decoratorOnClassMethod12.ts | 2 +- .../class/method/decoratorOnClassMethod2.ts | 2 +- .../class/method/decoratorOnClassMethod3.ts | 2 +- .../class/method/decoratorOnClassMethod8.ts | 2 +- .../method/decoratorOnClassMethodOverload1.ts | 2 +- .../method/decoratorOnClassMethodOverload2.ts | 2 +- .../decoratorOnClassMethodParameter1.ts | 2 +- .../decoratorOnClassMethodParameter2.ts | 2 +- .../decoratorOnClassMethodThisParameter.ts | 2 +- .../property/decoratorOnClassProperty1.ts | 2 +- .../property/decoratorOnClassProperty10.ts | 2 +- .../property/decoratorOnClassProperty11.ts | 2 +- .../property/decoratorOnClassProperty12.ts | 2 +- .../property/decoratorOnClassProperty2.ts | 2 +- .../property/decoratorOnClassProperty3.ts | 2 +- .../property/decoratorOnClassProperty6.ts | 2 +- .../property/decoratorOnClassProperty7.ts | 2 +- .../decorators/decoratorMetadata-jsdoc.ts | 2 +- .../decorators/decoratorMetadata.ts | 2 +- .../decoratorMetadataWithTypeOnlyImport.ts | 2 +- .../decorators/missingDecoratorType.ts | 2 +- .../importCallExpressionAsyncES5AMD.ts | 2 +- .../importCallExpressionAsyncES5CJS.ts | 2 +- .../importCallExpressionAsyncES5System.ts | 2 +- .../importCallExpressionAsyncES5UMD.ts | 2 +- .../importCallExpressionES5AMD.ts | 2 +- .../importCallExpressionES5CJS.ts | 2 +- .../importCallExpressionES5System.ts | 2 +- .../importCallExpressionES5UMD.ts | 2 +- .../importCallExpressionNestedAMD2.ts | 2 +- .../importCallExpressionNestedCJS2.ts | 2 +- .../importCallExpressionNestedES20152.ts | 2 +- .../importCallExpressionNestedES20202.ts | 2 +- .../importCallExpressionNestedSystem2.ts | 2 +- .../importCallExpressionNestedUMD2.ts | 2 +- ...mitter.asyncGenerators.classMethods.es5.ts | 2 +- ...syncGenerators.functionDeclarations.es5.ts | 2 +- ...asyncGenerators.functionExpressions.es5.ts | 2 +- ...syncGenerators.objectLiteralMethods.es5.ts | 2 +- .../assignSharedArrayBufferToArrayBuffer.ts | 2 +- .../es2017/useObjectValuesAndEntries1.ts | 2 +- .../es2017/useObjectValuesAndEntries2.ts | 2 +- .../es2017/useSharedArrayBuffer1.ts | 2 +- .../es2017/useSharedArrayBuffer2.ts | 2 +- .../es2017/useSharedArrayBuffer5.ts | 2 +- .../es2017/useSharedArrayBuffer6.ts | 2 +- .../conformance/es2018/usePromiseFinally.ts | 2 +- .../es2023/intlNumberFormatES5UseGrouping.ts | 2 +- .../es6/arrowFunction/emitArrowFunction.ts | 2 +- .../arrowFunction/emitArrowFunctionAsIs.ts | 2 +- .../emitArrowFunctionThisCapturing.ts | 2 +- .../emitArrowFunctionWhenUsingArguments01.ts | 2 +- .../emitArrowFunctionWhenUsingArguments02.ts | 2 +- .../emitArrowFunctionWhenUsingArguments03.ts | 2 +- .../emitArrowFunctionWhenUsingArguments04.ts | 2 +- .../emitArrowFunctionWhenUsingArguments05.ts | 2 +- .../emitArrowFunctionWhenUsingArguments06.ts | 2 +- .../emitArrowFunctionWhenUsingArguments07.ts | 2 +- .../emitArrowFunctionWhenUsingArguments08.ts | 2 +- .../emitArrowFunctionWhenUsingArguments09.ts | 2 +- .../emitArrowFunctionWhenUsingArguments10.ts | 2 +- .../emitArrowFunctionWhenUsingArguments11.ts | 2 +- .../emitArrowFunctionWhenUsingArguments12.ts | 2 +- .../emitArrowFunctionWhenUsingArguments13.ts | 2 +- .../emitArrowFunctionWhenUsingArguments14.ts | 2 +- .../emitArrowFunctionWhenUsingArguments15.ts | 2 +- .../emitArrowFunctionWhenUsingArguments16.ts | 2 +- .../emitArrowFunctionWhenUsingArguments17.ts | 2 +- .../emitArrowFunctionWhenUsingArguments18.ts | 2 +- .../emitArrowFunctionWhenUsingArguments19.ts | 2 +- .../arrowFunction/emitArrowFunctionsAsIs.ts | 2 +- .../binaryIntegerLiteral.ts | 2 +- .../octalIntegerLiteral.ts | 2 +- .../computedPropertyNames10_ES5.ts | 2 +- .../computedPropertyNames11_ES5.ts | 2 +- .../computedPropertyNames12_ES5.ts | 2 +- .../computedPropertyNames13_ES5.ts | 2 +- .../computedPropertyNames14_ES5.ts | 2 +- .../computedPropertyNames15_ES5.ts | 2 +- .../computedPropertyNames16_ES5.ts | 2 +- .../computedPropertyNames17_ES5.ts | 2 +- .../computedPropertyNames18_ES5.ts | 2 +- .../computedPropertyNames19_ES5.ts | 2 +- .../computedPropertyNames1_ES5.ts | 2 +- .../computedPropertyNames20_ES5.ts | 2 +- .../computedPropertyNames21_ES5.ts | 2 +- .../computedPropertyNames22_ES5.ts | 2 +- .../computedPropertyNames23_ES5.ts | 2 +- .../computedPropertyNames24_ES5.ts | 2 +- .../computedPropertyNames25_ES5.ts | 2 +- .../computedPropertyNames26_ES5.ts | 2 +- .../computedPropertyNames27_ES5.ts | 2 +- .../computedPropertyNames28_ES5.ts | 2 +- .../computedPropertyNames29_ES5.ts | 2 +- .../computedPropertyNames2_ES5.ts | 2 +- .../computedPropertyNames30_ES5.ts | 2 +- .../computedPropertyNames31_ES5.ts | 2 +- .../computedPropertyNames32_ES5.ts | 2 +- .../computedPropertyNames33_ES5.ts | 2 +- .../computedPropertyNames34_ES5.ts | 2 +- .../computedPropertyNames35_ES5.ts | 2 +- .../computedPropertyNames36_ES5.ts | 2 +- .../computedPropertyNames37_ES5.ts | 2 +- .../computedPropertyNames38_ES5.ts | 2 +- .../computedPropertyNames39_ES5.ts | 2 +- .../computedPropertyNames3_ES5.ts | 2 +- .../computedPropertyNames40_ES5.ts | 2 +- .../computedPropertyNames41_ES5.ts | 2 +- .../computedPropertyNames42_ES5.ts | 2 +- .../computedPropertyNames43_ES5.ts | 2 +- .../computedPropertyNames44_ES5.ts | 2 +- .../computedPropertyNames45_ES5.ts | 2 +- .../computedPropertyNames46_ES5.ts | 2 +- .../computedPropertyNames47_ES5.ts | 2 +- .../computedPropertyNames48_ES5.ts | 2 +- .../computedPropertyNames4_ES5.ts | 2 +- .../computedPropertyNames5_ES5.ts | 2 +- .../computedPropertyNames6_ES5.ts | 2 +- .../computedPropertyNames7_ES5.ts | 2 +- .../computedPropertyNames8_ES5.ts | 2 +- .../computedPropertyNames9_ES5.ts | 2 +- ...mputedPropertyNamesContextualType10_ES5.ts | 2 +- ...omputedPropertyNamesContextualType1_ES5.ts | 2 +- ...omputedPropertyNamesContextualType2_ES5.ts | 2 +- ...omputedPropertyNamesContextualType3_ES5.ts | 2 +- ...omputedPropertyNamesContextualType4_ES5.ts | 2 +- ...omputedPropertyNamesContextualType5_ES5.ts | 2 +- ...omputedPropertyNamesContextualType6_ES5.ts | 2 +- ...omputedPropertyNamesContextualType7_ES5.ts | 2 +- ...omputedPropertyNamesContextualType8_ES5.ts | 2 +- ...omputedPropertyNamesContextualType9_ES5.ts | 2 +- ...mputedPropertyNamesDeclarationEmit1_ES5.ts | 2 +- ...mputedPropertyNamesDeclarationEmit2_ES5.ts | 2 +- ...mputedPropertyNamesDeclarationEmit3_ES5.ts | 2 +- ...mputedPropertyNamesDeclarationEmit4_ES5.ts | 2 +- ...mputedPropertyNamesDeclarationEmit5_ES5.ts | 2 +- ...mputedPropertyNamesDeclarationEmit6_ES5.ts | 2 +- .../computedPropertyNamesOnOverloads_ES5.ts | 2 +- .../computedPropertyNamesSourceMap1_ES5.ts | 2 +- .../computedPropertyNamesSourceMap2_ES5.ts | 2 +- .../emitDefaultParametersFunction.ts | 2 +- ...emitDefaultParametersFunctionExpression.ts | 2 +- .../emitDefaultParametersFunctionProperty.ts | 2 +- .../emitDefaultParametersMethod.ts | 2 +- ...turingArrayBindingPatternAndAssignment4.ts | 2 +- ...cturingParameterDeclaration3ES5iterable.ts | 2 +- .../destructuringParameterDeclaration7ES5.ts | 2 +- ...cturingParameterDeclaration7ES5iterable.ts | 2 +- .../destructuringReassignsRightHandSide.ts | 2 +- .../destructuringTypeAssertionsES5_1.ts | 2 +- .../destructuringTypeAssertionsES5_2.ts | 2 +- .../destructuringTypeAssertionsES5_3.ts | 2 +- .../destructuringTypeAssertionsES5_4.ts | 2 +- .../destructuringTypeAssertionsES5_5.ts | 2 +- .../destructuringTypeAssertionsES5_6.ts | 2 +- .../destructuringTypeAssertionsES5_7.ts | 2 +- .../emptyAssignmentPatterns01_ES5.ts | 2 +- .../emptyAssignmentPatterns01_ES5iterable.ts | 2 +- .../emptyAssignmentPatterns02_ES5.ts | 2 +- .../emptyAssignmentPatterns02_ES5iterable.ts | 2 +- .../emptyAssignmentPatterns03_ES5.ts | 2 +- .../emptyAssignmentPatterns03_ES5iterable.ts | 2 +- .../emptyAssignmentPatterns04_ES5.ts | 2 +- .../emptyAssignmentPatterns04_ES5iterable.ts | 2 +- ...ariableDeclarationBindingPatterns01_ES5.ts | 2 +- ...eclarationBindingPatterns01_ES5iterable.ts | 2 +- ...ariableDeclarationBindingPatterns02_ES5.ts | 2 +- ...eclarationBindingPatterns02_ES5iterable.ts | 2 +- .../modules/defaultExportWithOverloads01.ts | 2 +- .../modules/defaultExportsCannotMerge01.ts | 2 +- .../modules/defaultExportsCannotMerge02.ts | 2 +- .../modules/defaultExportsCannotMerge03.ts | 2 +- .../modules/defaultExportsCannotMerge04.ts | 2 +- .../es6/modules/exportAndImport-es5-amd.ts | 2 +- .../es6/modules/exportAndImport-es5.ts | 2 +- .../conformance/es6/modules/exportStar-amd.ts | 2 +- .../conformance/es6/modules/exportStar.ts | 2 +- .../es6/modules/exportsAndImports1-amd.ts | 2 +- .../es6/modules/exportsAndImports2-amd.ts | 2 +- .../es6/modules/exportsAndImports3-amd.ts | 2 +- .../es6/modules/exportsAndImports4-amd.ts | 2 +- .../es6/modules/exportsAndImports4.ts | 2 +- ...sAndImportsWithContextualKeywordNames01.ts | 2 +- ...sAndImportsWithContextualKeywordNames02.ts | 2 +- .../exportsAndImportsWithUnderscores1.ts | 2 +- .../exportsAndImportsWithUnderscores2.ts | 2 +- .../exportsAndImportsWithUnderscores3.ts | 2 +- .../exportsAndImportsWithUnderscores4.ts | 2 +- .../es6/modules/multipleDefaultExports01.ts | 2 +- .../es6/modules/multipleDefaultExports02.ts | 2 +- .../es6/modules/multipleDefaultExports03.ts | 2 +- .../es6/modules/multipleDefaultExports04.ts | 2 +- .../es6/modules/multipleDefaultExports05.ts | 2 +- .../es6/modules/reExportDefaultExport.ts | 2 +- .../es6/newTarget/invalidNewTarget.es5.ts | 2 +- .../es6/newTarget/newTarget.es5.ts | 2 +- .../emitRestParametersFunction.ts | 2 +- .../emitRestParametersFunctionExpression.ts | 2 +- .../emitRestParametersFunctionProperty.ts | 2 +- .../emitRestParametersMethod.ts | 2 +- .../objectLiteralShorthandProperties.ts | 2 +- .../es6/spread/arraySpreadImportHelpers.ts | 2 +- ...onentiationAssignmentWithIndexingOnLHS1.ts | 2 +- ...onentiationAssignmentWithIndexingOnLHS2.ts | 2 +- ...onentiationAssignmentWithIndexingOnLHS3.ts | 2 +- ...onentiationAssignmentWithIndexingOnLHS4.ts | 2 +- ...onAssignmentWithPropertyAccessingOnLHS1.ts | 2 +- .../emitCompoundExponentiationOperator1.ts | 2 +- .../emitCompoundExponentiationOperator2.ts | 2 +- .../emitExponentiationOperator1.ts | 2 +- .../emitExponentiationOperator2.ts | 2 +- .../emitExponentiationOperator3.ts | 2 +- .../emitExponentiationOperator4.ts | 2 +- ...ExponentiationOperatorInTempalteString4.ts | 2 +- ...ExponentiationOperatorInTemplateString1.ts | 2 +- ...ExponentiationOperatorInTemplateString2.ts | 2 +- ...ExponentiationOperatorInTemplateString3.ts | 2 +- ...peratorInTemplateStringWithSyntaxError1.ts | 2 +- ...peratorInTemplateStringWithSyntaxError2.ts | 2 +- ...peratorInTemplateStringWithSyntaxError3.ts | 2 +- .../exponentiationOperatorSyntaxError1.ts | 2 +- .../exponentiationOperatorSyntaxError2.ts | 2 +- ...iationOperatorWithTemplateStringInvalid.ts | 2 +- ...gCommasInFunctionParametersAndArguments.ts | 2 +- ...classDeclaration-classThisReference.es5.ts | 2 +- .../getSetAccessorContextualTyping.ts | 2 +- .../functionCalls/newWithSpreadES5.ts | 2 +- .../expressions/literals/literals.ts | 2 +- .../objectLiterals/objectLiteralErrors.ts | 2 +- .../optionalChainingInArrow.ts | 2 +- .../optionalChainingInLoop.ts | 2 +- .../superPropertyAccessNoError.ts | 2 +- .../superSymbolIndexedAccess5.ts | 2 +- .../superSymbolIndexedAccess6.ts | 2 +- .../typeGuards/typeGuardOfFormThisMember.ts | 2 +- .../typeGuardOfFormThisMemberErrors.ts | 2 +- .../typeGuards/typeGuardsInClassAccessors.ts | 2 +- .../typeGuards/typeGuardsInProperties.ts | 2 +- .../typeGuards/typeGuardsObjectMethods.ts | 2 +- .../es6modulekindExportClassNameWithObject.ts | 2 +- .../es6/es6modulekindWithES5Target.ts | 2 +- .../es6/es6modulekindWithES5Target10.ts | 2 +- .../es6/es6modulekindWithES5Target11.ts | 2 +- .../es6/es6modulekindWithES5Target12.ts | 2 +- .../es6/es6modulekindWithES5Target2.ts | 2 +- .../es6/es6modulekindWithES5Target3.ts | 2 +- .../es6/es6modulekindWithES5Target4.ts | 2 +- .../es6/es6modulekindWithES5Target5.ts | 2 +- .../es6/es6modulekindWithES5Target6.ts | 2 +- .../es6/es6modulekindWithES5Target7.ts | 2 +- .../es6/es6modulekindWithES5Target8.ts | 2 +- .../es6/es6modulekindWithES5Target9.ts | 2 +- .../esnext/esnextmodulekindWithES5Target.ts | 2 +- .../esnext/esnextmodulekindWithES5Target10.ts | 2 +- .../esnext/esnextmodulekindWithES5Target11.ts | 2 +- .../esnext/esnextmodulekindWithES5Target12.ts | 2 +- .../esnext/esnextmodulekindWithES5Target2.ts | 2 +- .../esnext/esnextmodulekindWithES5Target3.ts | 2 +- .../esnext/esnextmodulekindWithES5Target4.ts | 2 +- .../esnext/esnextmodulekindWithES5Target5.ts | 2 +- .../esnext/esnextmodulekindWithES5Target6.ts | 2 +- .../esnext/esnextmodulekindWithES5Target7.ts | 2 +- .../esnext/esnextmodulekindWithES5Target8.ts | 2 +- .../esnext/esnextmodulekindWithES5Target9.ts | 2 +- ...nextmodulekindExportClassNameWithObject.ts | 2 +- .../exportAmbientClassNameWithObject.ts | 2 +- .../exportClassNameWithObjectAMD.ts | 2 +- .../exportClassNameWithObjectCommonJS.ts | 2 +- .../exportClassNameWithObjectSystem.ts | 2 +- .../exportClassNameWithObjectUMD.ts | 2 +- .../exportDefaultClassNameWithObject.ts | 2 +- .../restParameterInDownlevelGenerator.ts | 2 +- .../jsDeclarationsClassExtendsVisibility.ts | 2 +- ...onsClassImplementsGenericsSerialization.ts | 2 +- .../jsDeclarationsClassLeadingOptional.ts | 2 +- .../jsDeclarationsClassLikeHeuristic.ts | 2 +- .../declarations/jsDeclarationsClassStatic.ts | 2 +- ...clarationsClassStaticMethodAugmentation.ts | 2 +- .../declarations/jsDeclarationsClasses.ts | 2 +- .../declarations/jsDeclarationsClassesErr.ts | 2 +- .../jsDeclarationsComputedNames.ts | 2 +- .../jsDeclarationsCrossfileMerge.ts | 2 +- .../declarations/jsDeclarationsDefault.ts | 2 +- .../declarations/jsDeclarationsDefaultsErr.ts | 2 +- .../jsDeclarationsDocCommentsOnConsts.ts | 2 +- .../declarations/jsDeclarationsEnumTag.ts | 2 +- .../jsdoc/declarations/jsDeclarationsEnums.ts | 2 +- ...clarationsExportAssignedClassExpression.ts | 2 +- ...sExportAssignedClassExpressionAnonymous.ts | 2 +- ...AssignedClassExpressionAnonymousWithSub.ts | 2 +- ...sExportAssignedClassExpressionShadowing.ts | 2 +- ...eclarationsExportAssignedClassInstance1.ts | 2 +- ...eclarationsExportAssignedClassInstance2.ts | 2 +- ...eclarationsExportAssignedClassInstance3.ts | 2 +- ...ationsExportAssignedConstructorFunction.ts | 2 +- ...xportAssignedConstructorFunctionWithSub.ts | 2 +- .../jsDeclarationsExportAssignedVisibility.ts | 2 +- ...ExportAssignmentExpressionPlusSecondary.ts | 2 +- ...arationsExportAssignmentWithKeywordName.ts | 2 +- .../declarations/jsDeclarationsExportForms.ts | 2 +- .../jsDeclarationsExportFormsErr.ts | 2 +- .../jsDeclarationsExportSpecifierNonlocal.ts | 2 +- .../jsDeclarationsExportSubAssignments.ts | 2 +- ...tionsFunctionClassesCjsExportAssignment.ts | 2 +- .../jsDeclarationsFunctionJSDoc.ts | 2 +- .../jsDeclarationsFunctionKeywordProp.ts | 2 +- ...clarationsFunctionKeywordPropExhaustive.ts | 2 +- .../jsDeclarationsFunctionLikeClasses.ts | 2 +- .../jsDeclarationsFunctionLikeClasses2.ts | 2 +- .../jsDeclarationsFunctionPrototypeStatic.ts | 2 +- .../declarations/jsDeclarationsInterfaces.ts | 2 +- .../jsdoc/declarations/jsDeclarationsJson.ts | 2 +- .../jsDeclarationsMissingGenerics.ts | 2 +- .../jsDeclarationsMissingTypeParameters.ts | 2 +- .../jsDeclarationsModuleReferenceHasEmit.ts | 2 +- .../jsDeclarationsMultipleExportFromMerge.ts | 2 +- .../declarations/jsDeclarationsPackageJson.ts | 2 +- .../jsDeclarationsReactComponents.ts | 2 +- .../jsDeclarationsReexportAliases.ts | 2 +- ...larationsReexportAliasesEsModuleInterop.ts | 2 +- .../jsDeclarationsReexportedCjsAlias.ts | 2 +- ...ionsRestArgsWithThisTypeInJSDocFunction.ts | 2 +- .../jsDeclarationsTypeReferences.ts | 2 +- .../jsDeclarationsTypeReferences2.ts | 2 +- .../jsDeclarationsTypeReferences3.ts | 2 +- .../jsDeclarationsTypeReferences4.ts | 2 +- .../conformance/jsx/tsxPreserveEmit1.tsx | 2 +- .../conformance/jsx/tsxPreserveEmit2.tsx | 2 +- ...eModulesAllowJsImportHelpersCollisions3.ts | 2 +- .../nodeModulesImportHelpersCollisions3.ts | 2 +- .../ecmascript5/Accessors/parserAccessors1.ts | 2 +- .../Accessors/parserAccessors10.ts | 2 +- .../ecmascript5/Accessors/parserAccessors2.ts | 2 +- .../ecmascript5/Accessors/parserAccessors3.ts | 2 +- .../ecmascript5/Accessors/parserAccessors4.ts | 2 +- .../ecmascript5/Accessors/parserAccessors5.ts | 2 +- .../ecmascript5/Accessors/parserAccessors6.ts | 2 +- .../ecmascript5/Accessors/parserAccessors7.ts | 2 +- .../ecmascript5/Accessors/parserAccessors8.ts | 2 +- .../ecmascript5/Accessors/parserAccessors9.ts | 2 +- .../parserGetAccessorWithTypeParameters1.ts | 2 +- .../parserSetAccessorWithTypeAnnotation1.ts | 2 +- .../parserSetAccessorWithTypeParameters1.ts | 2 +- .../parserES5ComputedPropertyName1.ts | 2 +- .../parserES5ComputedPropertyName10.ts | 2 +- .../parserES5ComputedPropertyName11.ts | 2 +- .../parserES5ComputedPropertyName2.ts | 2 +- .../parserES5ComputedPropertyName3.ts | 2 +- .../parserES5ComputedPropertyName4.ts | 2 +- .../parserES5ComputedPropertyName5.ts | 2 +- .../parserES5ComputedPropertyName6.ts | 2 +- .../parserES5ComputedPropertyName7.ts | 2 +- .../parserES5ComputedPropertyName8.ts | 2 +- .../parserES5ComputedPropertyName9.ts | 2 +- .../parserMemberAccessor1.ts | 2 +- .../parserMemberAccessorDeclaration1.ts | 2 +- .../parserMemberAccessorDeclaration10.ts | 2 +- .../parserMemberAccessorDeclaration11.ts | 2 +- .../parserMemberAccessorDeclaration12.ts | 2 +- .../parserMemberAccessorDeclaration13.ts | 2 +- .../parserMemberAccessorDeclaration14.ts | 2 +- .../parserMemberAccessorDeclaration15.ts | 2 +- .../parserMemberAccessorDeclaration16.ts | 2 +- .../parserMemberAccessorDeclaration17.ts | 2 +- .../parserMemberAccessorDeclaration18.ts | 2 +- .../parserMemberAccessorDeclaration2.ts | 2 +- .../parserMemberAccessorDeclaration3.ts | 2 +- .../parserMemberAccessorDeclaration4.ts | 2 +- .../parserMemberAccessorDeclaration5.ts | 2 +- .../parserMemberAccessorDeclaration6.ts | 2 +- .../parserMemberAccessorDeclaration7.ts | 2 +- .../parserMemberAccessorDeclaration8.ts | 2 +- .../parserMemberAccessorDeclaration9.ts | 2 +- .../Statements/parserES5ForOfStatement1.d.ts | 2 +- .../Statements/parserES5ForOfStatement10.ts | 2 +- .../Statements/parserES5ForOfStatement11.ts | 2 +- .../Statements/parserES5ForOfStatement12.ts | 2 +- .../Statements/parserES5ForOfStatement13.ts | 2 +- .../Statements/parserES5ForOfStatement14.ts | 2 +- .../Statements/parserES5ForOfStatement15.ts | 2 +- .../Statements/parserES5ForOfStatement16.ts | 2 +- .../Statements/parserES5ForOfStatement17.ts | 2 +- .../Statements/parserES5ForOfStatement18.ts | 2 +- .../Statements/parserES5ForOfStatement19.ts | 2 +- .../Statements/parserES5ForOfStatement2.ts | 2 +- .../Statements/parserES5ForOfStatement20.ts | 2 +- .../Statements/parserES5ForOfStatement21.ts | 2 +- .../Statements/parserES5ForOfStatement3.ts | 2 +- .../Statements/parserES5ForOfStatement4.ts | 2 +- .../Statements/parserES5ForOfStatement5.ts | 2 +- .../Statements/parserES5ForOfStatement6.ts | 2 +- .../Statements/parserES5ForOfStatement7.ts | 2 +- .../Statements/parserES5ForOfStatement8.ts | 2 +- .../Statements/parserES5ForOfStatement9.ts | 2 +- .../StrictMode/parserStrictMode12.ts | 2 +- .../Symbols/parserES5SymbolIndexer1.ts | 2 +- .../Symbols/parserES5SymbolIndexer2.ts | 2 +- .../Symbols/parserES5SymbolIndexer3.ts | 2 +- .../Symbols/parserES5SymbolProperty1.ts | 2 +- .../Symbols/parserES5SymbolProperty2.ts | 2 +- .../Symbols/parserES5SymbolProperty3.ts | 2 +- .../Symbols/parserES5SymbolProperty4.ts | 2 +- .../Symbols/parserES5SymbolProperty5.ts | 2 +- .../Symbols/parserES5SymbolProperty6.ts | 2 +- .../Symbols/parserES5SymbolProperty7.ts | 2 +- .../Symbols/parserES5SymbolProperty8.ts | 2 +- .../Symbols/parserES5SymbolProperty9.ts | 2 +- .../salsa/exportDefaultInJsFile01.ts | 2 +- .../typeFromPropertyAssignmentOutOfOrder.ts | 2 +- .../ecmascript5/scannerNumericLiteral1.ts | 2 +- .../ecmascript5/scannerNumericLiteral2.ts | 2 +- .../ecmascript5/scannerNumericLiteral3.ts | 2 +- .../ecmascript5/scannerNumericLiteral4.ts | 2 +- .../ecmascript5/scannerNumericLiteral5.ts | 2 +- .../ecmascript5/scannerNumericLiteral6.ts | 2 +- .../ecmascript5/scannerNumericLiteral7.ts | 2 +- .../ecmascript5/scannerNumericLiteral8.ts | 2 +- .../ecmascript5/scannerNumericLiteral9.ts | 2 +- .../usingDeclarations/usingDeclarations.11.ts | 2 +- .../forAwaitPerIterationBindingDownlevel.ts | 2 +- .../for-ofStatements/ES3For-ofTypeCheck1.ts | 2 +- .../for-ofStatements/ES3For-ofTypeCheck2.ts | 2 +- .../for-ofStatements/ES3For-ofTypeCheck4.ts | 2 +- .../for-ofStatements/ES3For-ofTypeCheck6.ts | 2 +- .../for-ofStatements/ES5For-ofTypeCheck1.ts | 2 +- .../for-ofStatements/ES5For-ofTypeCheck10.ts | 2 +- .../for-ofStatements/ES5For-ofTypeCheck11.ts | 2 +- .../for-ofStatements/ES5For-ofTypeCheck12.ts | 2 +- .../for-ofStatements/ES5For-ofTypeCheck13.ts | 2 +- .../for-ofStatements/ES5For-ofTypeCheck14.ts | 2 +- .../for-ofStatements/ES5For-ofTypeCheck2.ts | 2 +- .../for-ofStatements/ES5For-ofTypeCheck3.ts | 2 +- .../for-ofStatements/ES5For-ofTypeCheck4.ts | 2 +- .../for-ofStatements/ES5For-ofTypeCheck5.ts | 2 +- .../for-ofStatements/ES5For-ofTypeCheck6.ts | 2 +- .../for-ofStatements/ES5For-ofTypeCheck7.ts | 2 +- .../for-ofStatements/ES5For-ofTypeCheck8.ts | 2 +- .../for-ofStatements/ES5For-ofTypeCheck9.ts | 2 +- .../for-ofStatements/ES5for-of32.ts | 2 +- ...dStatementDeclarationListInLoopNoCrash1.ts | 2 +- ...dStatementDeclarationListInLoopNoCrash2.ts | 2 +- ...dStatementDeclarationListInLoopNoCrash3.ts | 2 +- ...dStatementDeclarationListInLoopNoCrash4.ts | 2 +- .../types/localTypes/localTypes1.ts | 2 +- ...bjectTypeWithStringNamedNumericProperty.ts | 2 +- ...hOnlyPublicMembersEquivalentToInterface.ts | 2 +- ...OnlyPublicMembersEquivalentToInterface2.ts | 2 +- .../types/rest/objectRestParameterES5.ts | 2 +- .../conformance/types/spread/objectSpread.ts | 2 +- .../types/spread/objectSpreadNegative.ts | 2 +- .../types/thisType/thisTypeInAccessors.ts | 2 +- .../thisType/thisTypeInAccessorsNegative.ts | 2 +- .../thisType/thisTypeInObjectLiterals2.ts | 2 +- 7754 files changed, 269488 insertions(+), 1030 deletions(-) create mode 100644 tests/baselines/reference/ES3For-ofTypeCheck1(target=es2015).js rename tests/baselines/reference/{ES3For-ofTypeCheck1.symbols => ES3For-ofTypeCheck1(target=es2015).symbols} (100%) rename tests/baselines/reference/{ES3For-ofTypeCheck1.types => ES3For-ofTypeCheck1(target=es2015).types} (100%) rename tests/baselines/reference/{ES3For-ofTypeCheck1.js => ES3For-ofTypeCheck1(target=es5).js} (100%) create mode 100644 tests/baselines/reference/ES3For-ofTypeCheck1(target=es5).symbols create mode 100644 tests/baselines/reference/ES3For-ofTypeCheck1(target=es5).types create mode 100644 tests/baselines/reference/ES3For-ofTypeCheck2(target=es2015).js rename tests/baselines/reference/{ES3For-ofTypeCheck2.symbols => ES3For-ofTypeCheck2(target=es2015).symbols} (100%) rename tests/baselines/reference/{ES3For-ofTypeCheck2.types => ES3For-ofTypeCheck2(target=es2015).types} (100%) rename tests/baselines/reference/{ES3For-ofTypeCheck2.js => ES3For-ofTypeCheck2(target=es5).js} (100%) create mode 100644 tests/baselines/reference/ES3For-ofTypeCheck2(target=es5).symbols create mode 100644 tests/baselines/reference/ES3For-ofTypeCheck2(target=es5).types create mode 100644 tests/baselines/reference/ES3For-ofTypeCheck4(target=es2015).js rename tests/baselines/reference/{ES3For-ofTypeCheck4.symbols => ES3For-ofTypeCheck4(target=es2015).symbols} (100%) rename tests/baselines/reference/{ES3For-ofTypeCheck4.types => ES3For-ofTypeCheck4(target=es2015).types} (100%) rename tests/baselines/reference/{ES3For-ofTypeCheck4.js => ES3For-ofTypeCheck4(target=es5).js} (100%) create mode 100644 tests/baselines/reference/ES3For-ofTypeCheck4(target=es5).symbols create mode 100644 tests/baselines/reference/ES3For-ofTypeCheck4(target=es5).types create mode 100644 tests/baselines/reference/ES3For-ofTypeCheck6(target=es2015).js rename tests/baselines/reference/{ES3For-ofTypeCheck6.symbols => ES3For-ofTypeCheck6(target=es2015).symbols} (100%) rename tests/baselines/reference/{ES3For-ofTypeCheck6.types => ES3For-ofTypeCheck6(target=es2015).types} (100%) rename tests/baselines/reference/{ES3For-ofTypeCheck6.js => ES3For-ofTypeCheck6(target=es5).js} (100%) create mode 100644 tests/baselines/reference/ES3For-ofTypeCheck6(target=es5).symbols create mode 100644 tests/baselines/reference/ES3For-ofTypeCheck6(target=es5).types create mode 100644 tests/baselines/reference/ES5For-ofTypeCheck1(target=es2015).js rename tests/baselines/reference/{ES5For-ofTypeCheck1.symbols => ES5For-ofTypeCheck1(target=es2015).symbols} (100%) rename tests/baselines/reference/{ES5For-ofTypeCheck1.types => ES5For-ofTypeCheck1(target=es2015).types} (100%) rename tests/baselines/reference/{ES5For-ofTypeCheck1.js => ES5For-ofTypeCheck1(target=es5).js} (100%) create mode 100644 tests/baselines/reference/ES5For-ofTypeCheck1(target=es5).symbols create mode 100644 tests/baselines/reference/ES5For-ofTypeCheck1(target=es5).types create mode 100644 tests/baselines/reference/ES5For-ofTypeCheck10(target=es2015).js rename tests/baselines/reference/{ES5For-ofTypeCheck10.symbols => ES5For-ofTypeCheck10(target=es2015).symbols} (100%) create mode 100644 tests/baselines/reference/ES5For-ofTypeCheck10(target=es2015).types rename tests/baselines/reference/{ES5For-ofTypeCheck10.errors.txt => ES5For-ofTypeCheck10(target=es5).errors.txt} (100%) rename tests/baselines/reference/{ES5For-ofTypeCheck10.js => ES5For-ofTypeCheck10(target=es5).js} (100%) create mode 100644 tests/baselines/reference/ES5For-ofTypeCheck10(target=es5).symbols rename tests/baselines/reference/{ES5For-ofTypeCheck10.types => ES5For-ofTypeCheck10(target=es5).types} (100%) rename tests/baselines/reference/{ES5For-ofTypeCheck11.errors.txt => ES5For-ofTypeCheck11(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/ES5For-ofTypeCheck11(target=es2015).js rename tests/baselines/reference/{ES5For-ofTypeCheck11.symbols => ES5For-ofTypeCheck11(target=es2015).symbols} (100%) rename tests/baselines/reference/{ES5For-ofTypeCheck11.types => ES5For-ofTypeCheck11(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/ES5For-ofTypeCheck11(target=es5).errors.txt rename tests/baselines/reference/{ES5For-ofTypeCheck11.js => ES5For-ofTypeCheck11(target=es5).js} (100%) create mode 100644 tests/baselines/reference/ES5For-ofTypeCheck11(target=es5).symbols create mode 100644 tests/baselines/reference/ES5For-ofTypeCheck11(target=es5).types create mode 100644 tests/baselines/reference/ES5For-ofTypeCheck12(target=es2015).errors.txt create mode 100644 tests/baselines/reference/ES5For-ofTypeCheck12(target=es2015).js rename tests/baselines/reference/{ES5For-ofTypeCheck12.symbols => ES5For-ofTypeCheck12(target=es2015).symbols} (100%) rename tests/baselines/reference/{ES5For-ofTypeCheck12.types => ES5For-ofTypeCheck12(target=es2015).types} (100%) rename tests/baselines/reference/{ES5For-ofTypeCheck12.errors.txt => ES5For-ofTypeCheck12(target=es5).errors.txt} (100%) rename tests/baselines/reference/{ES5For-ofTypeCheck12.js => ES5For-ofTypeCheck12(target=es5).js} (100%) create mode 100644 tests/baselines/reference/ES5For-ofTypeCheck12(target=es5).symbols create mode 100644 tests/baselines/reference/ES5For-ofTypeCheck12(target=es5).types create mode 100644 tests/baselines/reference/ES5For-ofTypeCheck13(target=es2015).js rename tests/baselines/reference/{ES5For-ofTypeCheck13.symbols => ES5For-ofTypeCheck13(target=es2015).symbols} (100%) create mode 100644 tests/baselines/reference/ES5For-ofTypeCheck13(target=es2015).types rename tests/baselines/reference/{ES5For-ofTypeCheck13.errors.txt => ES5For-ofTypeCheck13(target=es5).errors.txt} (100%) rename tests/baselines/reference/{ES5For-ofTypeCheck13.js => ES5For-ofTypeCheck13(target=es5).js} (100%) create mode 100644 tests/baselines/reference/ES5For-ofTypeCheck13(target=es5).symbols rename tests/baselines/reference/{ES5For-ofTypeCheck13.types => ES5For-ofTypeCheck13(target=es5).types} (100%) create mode 100644 tests/baselines/reference/ES5For-ofTypeCheck14(target=es2015).js rename tests/baselines/reference/{ES5For-ofTypeCheck14.symbols => ES5For-ofTypeCheck14(target=es2015).symbols} (100%) create mode 100644 tests/baselines/reference/ES5For-ofTypeCheck14(target=es2015).types rename tests/baselines/reference/{ES5For-ofTypeCheck14.errors.txt => ES5For-ofTypeCheck14(target=es5).errors.txt} (100%) rename tests/baselines/reference/{ES5For-ofTypeCheck14.js => ES5For-ofTypeCheck14(target=es5).js} (100%) create mode 100644 tests/baselines/reference/ES5For-ofTypeCheck14(target=es5).symbols rename tests/baselines/reference/{ES5For-ofTypeCheck14.types => ES5For-ofTypeCheck14(target=es5).types} (100%) create mode 100644 tests/baselines/reference/ES5For-ofTypeCheck2(target=es2015).js rename tests/baselines/reference/{ES5For-ofTypeCheck2.symbols => ES5For-ofTypeCheck2(target=es2015).symbols} (100%) rename tests/baselines/reference/{ES5For-ofTypeCheck2.types => ES5For-ofTypeCheck2(target=es2015).types} (100%) rename tests/baselines/reference/{ES5For-ofTypeCheck2.js => ES5For-ofTypeCheck2(target=es5).js} (100%) create mode 100644 tests/baselines/reference/ES5For-ofTypeCheck2(target=es5).symbols create mode 100644 tests/baselines/reference/ES5For-ofTypeCheck2(target=es5).types create mode 100644 tests/baselines/reference/ES5For-ofTypeCheck3(target=es2015).js rename tests/baselines/reference/{ES5For-ofTypeCheck3.symbols => ES5For-ofTypeCheck3(target=es2015).symbols} (100%) rename tests/baselines/reference/{ES5For-ofTypeCheck3.types => ES5For-ofTypeCheck3(target=es2015).types} (100%) rename tests/baselines/reference/{ES5For-ofTypeCheck3.js => ES5For-ofTypeCheck3(target=es5).js} (100%) create mode 100644 tests/baselines/reference/ES5For-ofTypeCheck3(target=es5).symbols create mode 100644 tests/baselines/reference/ES5For-ofTypeCheck3(target=es5).types create mode 100644 tests/baselines/reference/ES5For-ofTypeCheck4(target=es2015).js rename tests/baselines/reference/{ES5For-ofTypeCheck4.symbols => ES5For-ofTypeCheck4(target=es2015).symbols} (100%) rename tests/baselines/reference/{ES5For-ofTypeCheck4.types => ES5For-ofTypeCheck4(target=es2015).types} (100%) rename tests/baselines/reference/{ES5For-ofTypeCheck4.js => ES5For-ofTypeCheck4(target=es5).js} (100%) create mode 100644 tests/baselines/reference/ES5For-ofTypeCheck4(target=es5).symbols create mode 100644 tests/baselines/reference/ES5For-ofTypeCheck4(target=es5).types create mode 100644 tests/baselines/reference/ES5For-ofTypeCheck5(target=es2015).js rename tests/baselines/reference/{ES5For-ofTypeCheck5.symbols => ES5For-ofTypeCheck5(target=es2015).symbols} (100%) rename tests/baselines/reference/{ES5For-ofTypeCheck5.types => ES5For-ofTypeCheck5(target=es2015).types} (100%) rename tests/baselines/reference/{ES5For-ofTypeCheck5.js => ES5For-ofTypeCheck5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/ES5For-ofTypeCheck5(target=es5).symbols create mode 100644 tests/baselines/reference/ES5For-ofTypeCheck5(target=es5).types create mode 100644 tests/baselines/reference/ES5For-ofTypeCheck6(target=es2015).js rename tests/baselines/reference/{ES5For-ofTypeCheck6.symbols => ES5For-ofTypeCheck6(target=es2015).symbols} (100%) rename tests/baselines/reference/{ES5For-ofTypeCheck6.types => ES5For-ofTypeCheck6(target=es2015).types} (100%) rename tests/baselines/reference/{ES5For-ofTypeCheck6.js => ES5For-ofTypeCheck6(target=es5).js} (100%) create mode 100644 tests/baselines/reference/ES5For-ofTypeCheck6(target=es5).symbols create mode 100644 tests/baselines/reference/ES5For-ofTypeCheck6(target=es5).types create mode 100644 tests/baselines/reference/ES5For-ofTypeCheck7(target=es2015).errors.txt create mode 100644 tests/baselines/reference/ES5For-ofTypeCheck7(target=es2015).js rename tests/baselines/reference/{ES5For-ofTypeCheck7.symbols => ES5For-ofTypeCheck7(target=es2015).symbols} (100%) create mode 100644 tests/baselines/reference/ES5For-ofTypeCheck7(target=es2015).types rename tests/baselines/reference/{ES5For-ofTypeCheck7.errors.txt => ES5For-ofTypeCheck7(target=es5).errors.txt} (100%) rename tests/baselines/reference/{ES5For-ofTypeCheck7.js => ES5For-ofTypeCheck7(target=es5).js} (100%) create mode 100644 tests/baselines/reference/ES5For-ofTypeCheck7(target=es5).symbols rename tests/baselines/reference/{ES5For-ofTypeCheck7.types => ES5For-ofTypeCheck7(target=es5).types} (100%) rename tests/baselines/reference/{ES5For-ofTypeCheck8.errors.txt => ES5For-ofTypeCheck8(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/ES5For-ofTypeCheck8(target=es2015).js rename tests/baselines/reference/{ES5For-ofTypeCheck8.symbols => ES5For-ofTypeCheck8(target=es2015).symbols} (100%) rename tests/baselines/reference/{ES5For-ofTypeCheck8.types => ES5For-ofTypeCheck8(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/ES5For-ofTypeCheck8(target=es5).errors.txt rename tests/baselines/reference/{ES5For-ofTypeCheck8.js => ES5For-ofTypeCheck8(target=es5).js} (100%) create mode 100644 tests/baselines/reference/ES5For-ofTypeCheck8(target=es5).symbols create mode 100644 tests/baselines/reference/ES5For-ofTypeCheck8(target=es5).types create mode 100644 tests/baselines/reference/ES5For-ofTypeCheck9(target=es2015).errors.txt create mode 100644 tests/baselines/reference/ES5For-ofTypeCheck9(target=es2015).js rename tests/baselines/reference/{ES5For-ofTypeCheck9.symbols => ES5For-ofTypeCheck9(target=es2015).symbols} (100%) create mode 100644 tests/baselines/reference/ES5For-ofTypeCheck9(target=es2015).types rename tests/baselines/reference/{ES5For-ofTypeCheck9.errors.txt => ES5For-ofTypeCheck9(target=es5).errors.txt} (100%) rename tests/baselines/reference/{ES5For-ofTypeCheck9.js => ES5For-ofTypeCheck9(target=es5).js} (100%) create mode 100644 tests/baselines/reference/ES5For-ofTypeCheck9(target=es5).symbols rename tests/baselines/reference/{ES5For-ofTypeCheck9.types => ES5For-ofTypeCheck9(target=es5).types} (100%) create mode 100644 tests/baselines/reference/ES5SymbolProperty1(target=es2015).js rename tests/baselines/reference/{ES5SymbolProperty1.symbols => ES5SymbolProperty1(target=es2015).symbols} (100%) rename tests/baselines/reference/{ES5SymbolProperty1.types => ES5SymbolProperty1(target=es2015).types} (100%) rename tests/baselines/reference/{ES5SymbolProperty1.js => ES5SymbolProperty1(target=es5).js} (100%) create mode 100644 tests/baselines/reference/ES5SymbolProperty1(target=es5).symbols create mode 100644 tests/baselines/reference/ES5SymbolProperty1(target=es5).types create mode 100644 tests/baselines/reference/ES5SymbolProperty2(target=es2015).js rename tests/baselines/reference/{ES5SymbolProperty2.symbols => ES5SymbolProperty2(target=es2015).symbols} (100%) rename tests/baselines/reference/{ES5SymbolProperty2.types => ES5SymbolProperty2(target=es2015).types} (100%) rename tests/baselines/reference/{ES5SymbolProperty2.js => ES5SymbolProperty2(target=es5).js} (100%) create mode 100644 tests/baselines/reference/ES5SymbolProperty2(target=es5).symbols create mode 100644 tests/baselines/reference/ES5SymbolProperty2(target=es5).types rename tests/baselines/reference/{ES5SymbolProperty3.errors.txt => ES5SymbolProperty3(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/ES5SymbolProperty3(target=es2015).js rename tests/baselines/reference/{ES5SymbolProperty3.symbols => ES5SymbolProperty3(target=es2015).symbols} (100%) rename tests/baselines/reference/{ES5SymbolProperty3.types => ES5SymbolProperty3(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/ES5SymbolProperty3(target=es5).errors.txt rename tests/baselines/reference/{ES5SymbolProperty3.js => ES5SymbolProperty3(target=es5).js} (100%) create mode 100644 tests/baselines/reference/ES5SymbolProperty3(target=es5).symbols create mode 100644 tests/baselines/reference/ES5SymbolProperty3(target=es5).types rename tests/baselines/reference/{ES5SymbolProperty4.errors.txt => ES5SymbolProperty4(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/ES5SymbolProperty4(target=es2015).js rename tests/baselines/reference/{ES5SymbolProperty4.symbols => ES5SymbolProperty4(target=es2015).symbols} (100%) rename tests/baselines/reference/{ES5SymbolProperty4.types => ES5SymbolProperty4(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/ES5SymbolProperty4(target=es5).errors.txt rename tests/baselines/reference/{ES5SymbolProperty4.js => ES5SymbolProperty4(target=es5).js} (100%) create mode 100644 tests/baselines/reference/ES5SymbolProperty4(target=es5).symbols create mode 100644 tests/baselines/reference/ES5SymbolProperty4(target=es5).types rename tests/baselines/reference/{ES5SymbolProperty5.errors.txt => ES5SymbolProperty5(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/ES5SymbolProperty5(target=es2015).js rename tests/baselines/reference/{ES5SymbolProperty5.symbols => ES5SymbolProperty5(target=es2015).symbols} (100%) rename tests/baselines/reference/{ES5SymbolProperty5.types => ES5SymbolProperty5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/ES5SymbolProperty5(target=es5).errors.txt rename tests/baselines/reference/{ES5SymbolProperty5.js => ES5SymbolProperty5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/ES5SymbolProperty5(target=es5).symbols create mode 100644 tests/baselines/reference/ES5SymbolProperty5(target=es5).types create mode 100644 tests/baselines/reference/ES5SymbolProperty6(target=es2015).js rename tests/baselines/reference/{ES5SymbolProperty6.symbols => ES5SymbolProperty6(target=es2015).symbols} (100%) rename tests/baselines/reference/{ES5SymbolProperty6.types => ES5SymbolProperty6(target=es2015).types} (100%) rename tests/baselines/reference/{ES5SymbolProperty6.js => ES5SymbolProperty6(target=es5).js} (100%) create mode 100644 tests/baselines/reference/ES5SymbolProperty6(target=es5).symbols create mode 100644 tests/baselines/reference/ES5SymbolProperty6(target=es5).types rename tests/baselines/reference/{ES5SymbolProperty7.errors.txt => ES5SymbolProperty7(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/ES5SymbolProperty7(target=es2015).js rename tests/baselines/reference/{ES5SymbolProperty7.symbols => ES5SymbolProperty7(target=es2015).symbols} (100%) rename tests/baselines/reference/{ES5SymbolProperty7.types => ES5SymbolProperty7(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/ES5SymbolProperty7(target=es5).errors.txt rename tests/baselines/reference/{ES5SymbolProperty7.js => ES5SymbolProperty7(target=es5).js} (100%) create mode 100644 tests/baselines/reference/ES5SymbolProperty7(target=es5).symbols create mode 100644 tests/baselines/reference/ES5SymbolProperty7(target=es5).types rename tests/baselines/reference/{ES5SymbolType1.js => ES5SymbolType1(target=es2015).js} (100%) rename tests/baselines/reference/{ES5SymbolType1.symbols => ES5SymbolType1(target=es2015).symbols} (100%) rename tests/baselines/reference/{ES5SymbolType1.types => ES5SymbolType1(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/ES5SymbolType1(target=es5).js create mode 100644 tests/baselines/reference/ES5SymbolType1(target=es5).symbols create mode 100644 tests/baselines/reference/ES5SymbolType1(target=es5).types create mode 100644 tests/baselines/reference/ES5for-of32(target=es2015).js rename tests/baselines/reference/{ES5for-of32.symbols => ES5for-of32(target=es2015).symbols} (100%) rename tests/baselines/reference/{ES5for-of32.types => ES5for-of32(target=es2015).types} (100%) rename tests/baselines/reference/{ES5for-of32.js => ES5for-of32(target=es5).js} (100%) create mode 100644 tests/baselines/reference/ES5for-of32(target=es5).symbols create mode 100644 tests/baselines/reference/ES5for-of32(target=es5).types create mode 100644 tests/baselines/reference/abstractPropertyBasics(target=es2015).js rename tests/baselines/reference/{abstractPropertyBasics.symbols => abstractPropertyBasics(target=es2015).symbols} (100%) rename tests/baselines/reference/{abstractPropertyBasics.types => abstractPropertyBasics(target=es2015).types} (100%) rename tests/baselines/reference/{abstractPropertyBasics.js => abstractPropertyBasics(target=es5).js} (100%) create mode 100644 tests/baselines/reference/abstractPropertyBasics(target=es5).symbols create mode 100644 tests/baselines/reference/abstractPropertyBasics(target=es5).types rename tests/baselines/reference/{abstractPropertyNegative.errors.txt => abstractPropertyNegative(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/abstractPropertyNegative(target=es2015).js rename tests/baselines/reference/{abstractPropertyNegative.symbols => abstractPropertyNegative(target=es2015).symbols} (100%) rename tests/baselines/reference/{abstractPropertyNegative.types => abstractPropertyNegative(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/abstractPropertyNegative(target=es5).errors.txt rename tests/baselines/reference/{abstractPropertyNegative.js => abstractPropertyNegative(target=es5).js} (100%) create mode 100644 tests/baselines/reference/abstractPropertyNegative(target=es5).symbols create mode 100644 tests/baselines/reference/abstractPropertyNegative(target=es5).types rename tests/baselines/reference/{accessibilityModifiers.errors.txt => accessibilityModifiers(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/accessibilityModifiers(target=es2015).js rename tests/baselines/reference/{accessibilityModifiers.symbols => accessibilityModifiers(target=es2015).symbols} (100%) rename tests/baselines/reference/{accessibilityModifiers.types => accessibilityModifiers(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/accessibilityModifiers(target=es5).errors.txt rename tests/baselines/reference/{accessibilityModifiers.js => accessibilityModifiers(target=es5).js} (100%) create mode 100644 tests/baselines/reference/accessibilityModifiers(target=es5).symbols create mode 100644 tests/baselines/reference/accessibilityModifiers(target=es5).types rename tests/baselines/reference/{accessorAccidentalCallDiagnostic.errors.txt => accessorAccidentalCallDiagnostic(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/accessorAccidentalCallDiagnostic(target=es2015).js rename tests/baselines/reference/{accessorAccidentalCallDiagnostic.symbols => accessorAccidentalCallDiagnostic(target=es2015).symbols} (100%) rename tests/baselines/reference/{accessorAccidentalCallDiagnostic.types => accessorAccidentalCallDiagnostic(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/accessorAccidentalCallDiagnostic(target=es5).errors.txt rename tests/baselines/reference/{accessorAccidentalCallDiagnostic.js => accessorAccidentalCallDiagnostic(target=es5).js} (100%) create mode 100644 tests/baselines/reference/accessorAccidentalCallDiagnostic(target=es5).symbols create mode 100644 tests/baselines/reference/accessorAccidentalCallDiagnostic(target=es5).types create mode 100644 tests/baselines/reference/accessorInAmbientContextES5(target=es2015).js rename tests/baselines/reference/{accessorInAmbientContextES5.symbols => accessorInAmbientContextES5(target=es2015).symbols} (100%) create mode 100644 tests/baselines/reference/accessorInAmbientContextES5(target=es2015).types rename tests/baselines/reference/{accessorInAmbientContextES5.errors.txt => accessorInAmbientContextES5(target=es5).errors.txt} (100%) rename tests/baselines/reference/{accessorInAmbientContextES5.js => accessorInAmbientContextES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/accessorInAmbientContextES5(target=es5).symbols rename tests/baselines/reference/{accessorInAmbientContextES5.types => accessorInAmbientContextES5(target=es5).types} (100%) rename tests/baselines/reference/{accessorParameterAccessibilityModifier.errors.txt => accessorParameterAccessibilityModifier(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/accessorParameterAccessibilityModifier(target=es2015).js rename tests/baselines/reference/{accessorParameterAccessibilityModifier.symbols => accessorParameterAccessibilityModifier(target=es2015).symbols} (100%) rename tests/baselines/reference/{accessorParameterAccessibilityModifier.types => accessorParameterAccessibilityModifier(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/accessorParameterAccessibilityModifier(target=es5).errors.txt rename tests/baselines/reference/{accessorParameterAccessibilityModifier.js => accessorParameterAccessibilityModifier(target=es5).js} (100%) create mode 100644 tests/baselines/reference/accessorParameterAccessibilityModifier(target=es5).symbols create mode 100644 tests/baselines/reference/accessorParameterAccessibilityModifier(target=es5).types create mode 100644 tests/baselines/reference/accessorWithES5(target=es2015).js rename tests/baselines/reference/{accessorWithES5.symbols => accessorWithES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{accessorWithES5.types => accessorWithES5(target=es2015).types} (100%) rename tests/baselines/reference/{accessorWithES5.js => accessorWithES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/accessorWithES5(target=es5).symbols create mode 100644 tests/baselines/reference/accessorWithES5(target=es5).types rename tests/baselines/reference/{accessorWithInitializer.errors.txt => accessorWithInitializer(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/accessorWithInitializer(target=es2015).js rename tests/baselines/reference/{accessorWithInitializer.symbols => accessorWithInitializer(target=es2015).symbols} (100%) rename tests/baselines/reference/{accessorWithInitializer.types => accessorWithInitializer(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/accessorWithInitializer(target=es5).errors.txt rename tests/baselines/reference/{accessorWithInitializer.js => accessorWithInitializer(target=es5).js} (100%) create mode 100644 tests/baselines/reference/accessorWithInitializer(target=es5).symbols create mode 100644 tests/baselines/reference/accessorWithInitializer(target=es5).types create mode 100644 tests/baselines/reference/accessorWithLineTerminator(target=es2015).js rename tests/baselines/reference/{accessorWithLineTerminator.symbols => accessorWithLineTerminator(target=es2015).symbols} (100%) rename tests/baselines/reference/{accessorWithLineTerminator.types => accessorWithLineTerminator(target=es2015).types} (100%) rename tests/baselines/reference/{accessorWithLineTerminator.js => accessorWithLineTerminator(target=es5).js} (100%) create mode 100644 tests/baselines/reference/accessorWithLineTerminator(target=es5).symbols create mode 100644 tests/baselines/reference/accessorWithLineTerminator(target=es5).types create mode 100644 tests/baselines/reference/accessorWithMismatchedAccessibilityModifiers(target=es2015).js rename tests/baselines/reference/{accessorWithMismatchedAccessibilityModifiers.symbols => accessorWithMismatchedAccessibilityModifiers(target=es2015).symbols} (100%) rename tests/baselines/reference/{accessorWithMismatchedAccessibilityModifiers.types => accessorWithMismatchedAccessibilityModifiers(target=es2015).types} (100%) rename tests/baselines/reference/{accessorWithMismatchedAccessibilityModifiers.js => accessorWithMismatchedAccessibilityModifiers(target=es5).js} (100%) create mode 100644 tests/baselines/reference/accessorWithMismatchedAccessibilityModifiers(target=es5).symbols create mode 100644 tests/baselines/reference/accessorWithMismatchedAccessibilityModifiers(target=es5).types rename tests/baselines/reference/{accessorWithRestParam.errors.txt => accessorWithRestParam(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/accessorWithRestParam(target=es2015).js rename tests/baselines/reference/{accessorWithRestParam.symbols => accessorWithRestParam(target=es2015).symbols} (100%) rename tests/baselines/reference/{accessorWithRestParam.types => accessorWithRestParam(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/accessorWithRestParam(target=es5).errors.txt rename tests/baselines/reference/{accessorWithRestParam.js => accessorWithRestParam(target=es5).js} (100%) create mode 100644 tests/baselines/reference/accessorWithRestParam(target=es5).symbols create mode 100644 tests/baselines/reference/accessorWithRestParam(target=es5).types rename tests/baselines/reference/{accessorWithoutBody1.errors.txt => accessorWithoutBody1(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{accessorWithoutBody1.js => accessorWithoutBody1(target=es2015).js} (100%) rename tests/baselines/reference/{accessorWithoutBody1.symbols => accessorWithoutBody1(target=es2015).symbols} (100%) rename tests/baselines/reference/{accessorWithoutBody1.types => accessorWithoutBody1(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/accessorWithoutBody1(target=es5).errors.txt create mode 100644 tests/baselines/reference/accessorWithoutBody1(target=es5).js create mode 100644 tests/baselines/reference/accessorWithoutBody1(target=es5).symbols create mode 100644 tests/baselines/reference/accessorWithoutBody1(target=es5).types rename tests/baselines/reference/{accessorWithoutBody2.errors.txt => accessorWithoutBody2(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{accessorWithoutBody2.js => accessorWithoutBody2(target=es2015).js} (100%) rename tests/baselines/reference/{accessorWithoutBody2.symbols => accessorWithoutBody2(target=es2015).symbols} (100%) rename tests/baselines/reference/{accessorWithoutBody2.types => accessorWithoutBody2(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/accessorWithoutBody2(target=es5).errors.txt create mode 100644 tests/baselines/reference/accessorWithoutBody2(target=es5).js create mode 100644 tests/baselines/reference/accessorWithoutBody2(target=es5).symbols create mode 100644 tests/baselines/reference/accessorWithoutBody2(target=es5).types rename tests/baselines/reference/{accessorsInAmbientContext.errors.txt => accessorsInAmbientContext(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{accessorsInAmbientContext.js => accessorsInAmbientContext(target=es2015).js} (100%) rename tests/baselines/reference/{accessorsInAmbientContext.symbols => accessorsInAmbientContext(target=es2015).symbols} (100%) rename tests/baselines/reference/{accessorsInAmbientContext.types => accessorsInAmbientContext(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/accessorsInAmbientContext(target=es5).errors.txt create mode 100644 tests/baselines/reference/accessorsInAmbientContext(target=es5).js create mode 100644 tests/baselines/reference/accessorsInAmbientContext(target=es5).symbols create mode 100644 tests/baselines/reference/accessorsInAmbientContext(target=es5).types rename tests/baselines/reference/{accessorsOverrideProperty7.errors.txt => accessorsOverrideProperty7(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/accessorsOverrideProperty7(target=es2015).js rename tests/baselines/reference/{accessorsOverrideProperty7.symbols => accessorsOverrideProperty7(target=es2015).symbols} (100%) rename tests/baselines/reference/{accessorsOverrideProperty7.types => accessorsOverrideProperty7(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/accessorsOverrideProperty7(target=es5).errors.txt rename tests/baselines/reference/{accessorsOverrideProperty7.js => accessorsOverrideProperty7(target=es5).js} (100%) create mode 100644 tests/baselines/reference/accessorsOverrideProperty7(target=es5).symbols create mode 100644 tests/baselines/reference/accessorsOverrideProperty7(target=es5).types create mode 100644 tests/baselines/reference/aliasUsageInAccessorsOfClass(target=es2015).js rename tests/baselines/reference/{aliasUsageInAccessorsOfClass.symbols => aliasUsageInAccessorsOfClass(target=es2015).symbols} (100%) rename tests/baselines/reference/{aliasUsageInAccessorsOfClass.types => aliasUsageInAccessorsOfClass(target=es2015).types} (100%) rename tests/baselines/reference/{aliasUsageInAccessorsOfClass.js => aliasUsageInAccessorsOfClass(target=es5).js} (100%) create mode 100644 tests/baselines/reference/aliasUsageInAccessorsOfClass(target=es5).symbols create mode 100644 tests/baselines/reference/aliasUsageInAccessorsOfClass(target=es5).types create mode 100644 tests/baselines/reference/alwaysStrictModule6(target=es2015).js rename tests/baselines/reference/{alwaysStrictModule6.symbols => alwaysStrictModule6(target=es2015).symbols} (100%) rename tests/baselines/reference/{alwaysStrictModule6.types => alwaysStrictModule6(target=es2015).types} (100%) rename tests/baselines/reference/{alwaysStrictModule6.js => alwaysStrictModule6(target=es5).js} (100%) create mode 100644 tests/baselines/reference/alwaysStrictModule6(target=es5).symbols create mode 100644 tests/baselines/reference/alwaysStrictModule6(target=es5).types rename tests/baselines/reference/{ambientAccessors.js => ambientAccessors(target=es2015).js} (100%) rename tests/baselines/reference/{ambientAccessors.symbols => ambientAccessors(target=es2015).symbols} (100%) rename tests/baselines/reference/{ambientAccessors.types => ambientAccessors(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/ambientAccessors(target=es5).js create mode 100644 tests/baselines/reference/ambientAccessors(target=es5).symbols create mode 100644 tests/baselines/reference/ambientAccessors(target=es5).types rename tests/baselines/reference/{ambientGetters.errors.txt => ambientGetters(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{ambientGetters.js => ambientGetters(target=es2015).js} (100%) rename tests/baselines/reference/{ambientGetters.symbols => ambientGetters(target=es2015).symbols} (100%) rename tests/baselines/reference/{ambientGetters.types => ambientGetters(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/ambientGetters(target=es5).errors.txt create mode 100644 tests/baselines/reference/ambientGetters(target=es5).js create mode 100644 tests/baselines/reference/ambientGetters(target=es5).symbols create mode 100644 tests/baselines/reference/ambientGetters(target=es5).types create mode 100644 tests/baselines/reference/argumentsObjectIterator01_ES5(target=es2015).js rename tests/baselines/reference/{argumentsObjectIterator01_ES5.symbols => argumentsObjectIterator01_ES5(target=es2015).symbols} (100%) create mode 100644 tests/baselines/reference/argumentsObjectIterator01_ES5(target=es2015).types rename tests/baselines/reference/{argumentsObjectIterator01_ES5.errors.txt => argumentsObjectIterator01_ES5(target=es5).errors.txt} (100%) rename tests/baselines/reference/{argumentsObjectIterator01_ES5.js => argumentsObjectIterator01_ES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/argumentsObjectIterator01_ES5(target=es5).symbols rename tests/baselines/reference/{argumentsObjectIterator01_ES5.types => argumentsObjectIterator01_ES5(target=es5).types} (100%) create mode 100644 tests/baselines/reference/argumentsObjectIterator02_ES5(target=es2015).js rename tests/baselines/reference/{argumentsObjectIterator02_ES5.symbols => argumentsObjectIterator02_ES5(target=es2015).symbols} (100%) create mode 100644 tests/baselines/reference/argumentsObjectIterator02_ES5(target=es2015).types rename tests/baselines/reference/{argumentsObjectIterator02_ES5.errors.txt => argumentsObjectIterator02_ES5(target=es5).errors.txt} (100%) rename tests/baselines/reference/{argumentsObjectIterator02_ES5.js => argumentsObjectIterator02_ES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/argumentsObjectIterator02_ES5(target=es5).symbols rename tests/baselines/reference/{argumentsObjectIterator02_ES5.types => argumentsObjectIterator02_ES5(target=es5).types} (100%) create mode 100644 tests/baselines/reference/argumentsObjectIterator03_ES5(target=es2015).js rename tests/baselines/reference/{argumentsObjectIterator03_ES5.symbols => argumentsObjectIterator03_ES5(target=es2015).symbols} (100%) create mode 100644 tests/baselines/reference/argumentsObjectIterator03_ES5(target=es2015).types rename tests/baselines/reference/{argumentsObjectIterator03_ES5.errors.txt => argumentsObjectIterator03_ES5(target=es5).errors.txt} (100%) rename tests/baselines/reference/{argumentsObjectIterator03_ES5.js => argumentsObjectIterator03_ES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/argumentsObjectIterator03_ES5(target=es5).symbols rename tests/baselines/reference/{argumentsObjectIterator03_ES5.types => argumentsObjectIterator03_ES5(target=es5).types} (100%) rename tests/baselines/reference/{arraySpreadImportHelpers.errors.txt => arraySpreadImportHelpers(target=es5).errors.txt} (100%) create mode 100644 tests/baselines/reference/arrayToLocaleStringES5(target=es2015).js rename tests/baselines/reference/{arrayToLocaleStringES5.symbols => arrayToLocaleStringES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{arrayToLocaleStringES5.types => arrayToLocaleStringES5(target=es2015).types} (100%) rename tests/baselines/reference/{arrayToLocaleStringES5.js => arrayToLocaleStringES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/arrayToLocaleStringES5(target=es5).symbols create mode 100644 tests/baselines/reference/arrayToLocaleStringES5(target=es5).types create mode 100644 tests/baselines/reference/arrowFunctionWithParameterNameAsync_es2017(target=es2015).js rename tests/baselines/reference/{arrowFunctionWithParameterNameAsync_es2017.symbols => arrowFunctionWithParameterNameAsync_es2017(target=es2015).symbols} (100%) rename tests/baselines/reference/{arrowFunctionWithParameterNameAsync_es2017.types => arrowFunctionWithParameterNameAsync_es2017(target=es2015).types} (100%) rename tests/baselines/reference/{arrowFunctionWithParameterNameAsync_es2017.js => arrowFunctionWithParameterNameAsync_es2017(target=es5).js} (100%) create mode 100644 tests/baselines/reference/arrowFunctionWithParameterNameAsync_es2017(target=es5).symbols create mode 100644 tests/baselines/reference/arrowFunctionWithParameterNameAsync_es2017(target=es5).types create mode 100644 tests/baselines/reference/arrowFunctionWithParameterNameAsync_es5(target=es2015).js rename tests/baselines/reference/{arrowFunctionWithParameterNameAsync_es5.symbols => arrowFunctionWithParameterNameAsync_es5(target=es2015).symbols} (100%) rename tests/baselines/reference/{arrowFunctionWithParameterNameAsync_es5.types => arrowFunctionWithParameterNameAsync_es5(target=es2015).types} (100%) rename tests/baselines/reference/{arrowFunctionWithParameterNameAsync_es5.js => arrowFunctionWithParameterNameAsync_es5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/arrowFunctionWithParameterNameAsync_es5(target=es5).symbols create mode 100644 tests/baselines/reference/arrowFunctionWithParameterNameAsync_es5(target=es5).types create mode 100644 tests/baselines/reference/arrowFunctionWithParameterNameAsync_es6(target=es2015).js rename tests/baselines/reference/{arrowFunctionWithParameterNameAsync_es6.symbols => arrowFunctionWithParameterNameAsync_es6(target=es2015).symbols} (100%) rename tests/baselines/reference/{arrowFunctionWithParameterNameAsync_es6.types => arrowFunctionWithParameterNameAsync_es6(target=es2015).types} (100%) rename tests/baselines/reference/{arrowFunctionWithParameterNameAsync_es6.js => arrowFunctionWithParameterNameAsync_es6(target=es5).js} (100%) create mode 100644 tests/baselines/reference/arrowFunctionWithParameterNameAsync_es6(target=es5).symbols create mode 100644 tests/baselines/reference/arrowFunctionWithParameterNameAsync_es6(target=es5).types rename tests/baselines/reference/{assignSharedArrayBufferToArrayBuffer.errors.txt => assignSharedArrayBufferToArrayBuffer(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{assignSharedArrayBufferToArrayBuffer.js => assignSharedArrayBufferToArrayBuffer(target=es2015).js} (100%) rename tests/baselines/reference/{assignSharedArrayBufferToArrayBuffer.symbols => assignSharedArrayBufferToArrayBuffer(target=es2015).symbols} (100%) rename tests/baselines/reference/{assignSharedArrayBufferToArrayBuffer.types => assignSharedArrayBufferToArrayBuffer(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/assignSharedArrayBufferToArrayBuffer(target=es5).errors.txt create mode 100644 tests/baselines/reference/assignSharedArrayBufferToArrayBuffer(target=es5).js create mode 100644 tests/baselines/reference/assignSharedArrayBufferToArrayBuffer(target=es5).symbols create mode 100644 tests/baselines/reference/assignSharedArrayBufferToArrayBuffer(target=es5).types create mode 100644 tests/baselines/reference/asyncAliasReturnType_es5(target=es2015).js rename tests/baselines/reference/{asyncAliasReturnType_es5.symbols => asyncAliasReturnType_es5(target=es2015).symbols} (100%) rename tests/baselines/reference/{asyncAliasReturnType_es5.types => asyncAliasReturnType_es5(target=es2015).types} (100%) rename tests/baselines/reference/{asyncAliasReturnType_es5.errors.txt => asyncAliasReturnType_es5(target=es5).errors.txt} (100%) rename tests/baselines/reference/{asyncAliasReturnType_es5.js => asyncAliasReturnType_es5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/asyncAliasReturnType_es5(target=es5).symbols create mode 100644 tests/baselines/reference/asyncAliasReturnType_es5(target=es5).types rename tests/baselines/reference/{asyncArrowFunction10_es5.errors.txt => asyncArrowFunction10_es5(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/asyncArrowFunction10_es5(target=es2015).js rename tests/baselines/reference/{asyncArrowFunction10_es5.symbols => asyncArrowFunction10_es5(target=es2015).symbols} (100%) rename tests/baselines/reference/{asyncArrowFunction10_es5.types => asyncArrowFunction10_es5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/asyncArrowFunction10_es5(target=es5).errors.txt rename tests/baselines/reference/{asyncArrowFunction10_es5.js => asyncArrowFunction10_es5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/asyncArrowFunction10_es5(target=es5).symbols create mode 100644 tests/baselines/reference/asyncArrowFunction10_es5(target=es5).types create mode 100644 tests/baselines/reference/asyncArrowFunction11_es5(target=es2015).js rename tests/baselines/reference/{asyncArrowFunction11_es5.symbols => asyncArrowFunction11_es5(target=es2015).symbols} (100%) rename tests/baselines/reference/{asyncArrowFunction11_es5.types => asyncArrowFunction11_es5(target=es2015).types} (100%) rename tests/baselines/reference/{asyncArrowFunction11_es5.js => asyncArrowFunction11_es5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/asyncArrowFunction11_es5(target=es5).symbols create mode 100644 tests/baselines/reference/asyncArrowFunction11_es5(target=es5).types create mode 100644 tests/baselines/reference/asyncArrowFunction1_es5(target=es2015).js rename tests/baselines/reference/{asyncArrowFunction1_es5.symbols => asyncArrowFunction1_es5(target=es2015).symbols} (100%) rename tests/baselines/reference/{asyncArrowFunction1_es5.types => asyncArrowFunction1_es5(target=es2015).types} (100%) rename tests/baselines/reference/{asyncArrowFunction1_es5.js => asyncArrowFunction1_es5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/asyncArrowFunction1_es5(target=es5).symbols create mode 100644 tests/baselines/reference/asyncArrowFunction1_es5(target=es5).types create mode 100644 tests/baselines/reference/asyncArrowFunction2_es5(target=es2015).js rename tests/baselines/reference/{asyncArrowFunction2_es5.symbols => asyncArrowFunction2_es5(target=es2015).symbols} (100%) rename tests/baselines/reference/{asyncArrowFunction2_es5.types => asyncArrowFunction2_es5(target=es2015).types} (100%) rename tests/baselines/reference/{asyncArrowFunction2_es5.js => asyncArrowFunction2_es5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/asyncArrowFunction2_es5(target=es5).symbols create mode 100644 tests/baselines/reference/asyncArrowFunction2_es5(target=es5).types rename tests/baselines/reference/{asyncArrowFunction3_es5.errors.txt => asyncArrowFunction3_es5(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/asyncArrowFunction3_es5(target=es2015).js rename tests/baselines/reference/{asyncArrowFunction3_es5.symbols => asyncArrowFunction3_es5(target=es2015).symbols} (100%) rename tests/baselines/reference/{asyncArrowFunction3_es5.types => asyncArrowFunction3_es5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/asyncArrowFunction3_es5(target=es5).errors.txt rename tests/baselines/reference/{asyncArrowFunction3_es5.js => asyncArrowFunction3_es5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/asyncArrowFunction3_es5(target=es5).symbols create mode 100644 tests/baselines/reference/asyncArrowFunction3_es5(target=es5).types create mode 100644 tests/baselines/reference/asyncArrowFunction4_es5(target=es2015).js rename tests/baselines/reference/{asyncArrowFunction4_es5.symbols => asyncArrowFunction4_es5(target=es2015).symbols} (100%) rename tests/baselines/reference/{asyncArrowFunction4_es5.types => asyncArrowFunction4_es5(target=es2015).types} (100%) rename tests/baselines/reference/{asyncArrowFunction4_es5.js => asyncArrowFunction4_es5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/asyncArrowFunction4_es5(target=es5).symbols create mode 100644 tests/baselines/reference/asyncArrowFunction4_es5(target=es5).types rename tests/baselines/reference/{asyncArrowFunction5_es5.errors.txt => asyncArrowFunction5_es5(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/asyncArrowFunction5_es5(target=es2015).js rename tests/baselines/reference/{asyncArrowFunction5_es5.symbols => asyncArrowFunction5_es5(target=es2015).symbols} (100%) rename tests/baselines/reference/{asyncArrowFunction5_es5.types => asyncArrowFunction5_es5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/asyncArrowFunction5_es5(target=es5).errors.txt rename tests/baselines/reference/{asyncArrowFunction5_es5.js => asyncArrowFunction5_es5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/asyncArrowFunction5_es5(target=es5).symbols create mode 100644 tests/baselines/reference/asyncArrowFunction5_es5(target=es5).types rename tests/baselines/reference/{asyncArrowFunction6_es5.errors.txt => asyncArrowFunction6_es5(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/asyncArrowFunction6_es5(target=es2015).js rename tests/baselines/reference/{asyncArrowFunction6_es5.symbols => asyncArrowFunction6_es5(target=es2015).symbols} (100%) rename tests/baselines/reference/{asyncArrowFunction6_es5.types => asyncArrowFunction6_es5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/asyncArrowFunction6_es5(target=es5).errors.txt rename tests/baselines/reference/{asyncArrowFunction6_es5.js => asyncArrowFunction6_es5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/asyncArrowFunction6_es5(target=es5).symbols create mode 100644 tests/baselines/reference/asyncArrowFunction6_es5(target=es5).types rename tests/baselines/reference/{asyncArrowFunction7_es5.errors.txt => asyncArrowFunction7_es5(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/asyncArrowFunction7_es5(target=es2015).js rename tests/baselines/reference/{asyncArrowFunction7_es5.symbols => asyncArrowFunction7_es5(target=es2015).symbols} (100%) rename tests/baselines/reference/{asyncArrowFunction7_es5.types => asyncArrowFunction7_es5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/asyncArrowFunction7_es5(target=es5).errors.txt rename tests/baselines/reference/{asyncArrowFunction7_es5.js => asyncArrowFunction7_es5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/asyncArrowFunction7_es5(target=es5).symbols create mode 100644 tests/baselines/reference/asyncArrowFunction7_es5(target=es5).types rename tests/baselines/reference/{asyncArrowFunction8_es5.errors.txt => asyncArrowFunction8_es5(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/asyncArrowFunction8_es5(target=es2015).js rename tests/baselines/reference/{asyncArrowFunction8_es5.symbols => asyncArrowFunction8_es5(target=es2015).symbols} (100%) rename tests/baselines/reference/{asyncArrowFunction8_es5.types => asyncArrowFunction8_es5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/asyncArrowFunction8_es5(target=es5).errors.txt rename tests/baselines/reference/{asyncArrowFunction8_es5.js => asyncArrowFunction8_es5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/asyncArrowFunction8_es5(target=es5).symbols create mode 100644 tests/baselines/reference/asyncArrowFunction8_es5(target=es5).types rename tests/baselines/reference/{asyncArrowFunction9_es5.errors.txt => asyncArrowFunction9_es5(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/asyncArrowFunction9_es5(target=es2015).js rename tests/baselines/reference/{asyncArrowFunction9_es5.symbols => asyncArrowFunction9_es5(target=es2015).symbols} (100%) rename tests/baselines/reference/{asyncArrowFunction9_es5.types => asyncArrowFunction9_es5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/asyncArrowFunction9_es5(target=es5).errors.txt rename tests/baselines/reference/{asyncArrowFunction9_es5.js => asyncArrowFunction9_es5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/asyncArrowFunction9_es5(target=es5).symbols create mode 100644 tests/baselines/reference/asyncArrowFunction9_es5(target=es5).types create mode 100644 tests/baselines/reference/asyncArrowFunctionCapturesArguments_es5(target=es2015).js rename tests/baselines/reference/{asyncArrowFunctionCapturesArguments_es5.symbols => asyncArrowFunctionCapturesArguments_es5(target=es2015).symbols} (100%) create mode 100644 tests/baselines/reference/asyncArrowFunctionCapturesArguments_es5(target=es2015).types rename tests/baselines/reference/{asyncArrowFunctionCapturesArguments_es5.errors.txt => asyncArrowFunctionCapturesArguments_es5(target=es5).errors.txt} (100%) rename tests/baselines/reference/{asyncArrowFunctionCapturesArguments_es5.js => asyncArrowFunctionCapturesArguments_es5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/asyncArrowFunctionCapturesArguments_es5(target=es5).symbols rename tests/baselines/reference/{asyncArrowFunctionCapturesArguments_es5.types => asyncArrowFunctionCapturesArguments_es5(target=es5).types} (100%) create mode 100644 tests/baselines/reference/asyncArrowFunctionCapturesThis_es5(target=es2015).js rename tests/baselines/reference/{asyncArrowFunctionCapturesThis_es5.symbols => asyncArrowFunctionCapturesThis_es5(target=es2015).symbols} (100%) rename tests/baselines/reference/{asyncArrowFunctionCapturesThis_es5.types => asyncArrowFunctionCapturesThis_es5(target=es2015).types} (100%) rename tests/baselines/reference/{asyncArrowFunctionCapturesThis_es5.js => asyncArrowFunctionCapturesThis_es5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/asyncArrowFunctionCapturesThis_es5(target=es5).symbols create mode 100644 tests/baselines/reference/asyncArrowFunctionCapturesThis_es5(target=es5).types create mode 100644 tests/baselines/reference/asyncArrowInClassES5(target=es2015).js rename tests/baselines/reference/{asyncArrowInClassES5.symbols => asyncArrowInClassES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{asyncArrowInClassES5.types => asyncArrowInClassES5(target=es2015).types} (100%) rename tests/baselines/reference/{asyncArrowInClassES5.js => asyncArrowInClassES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/asyncArrowInClassES5(target=es5).symbols create mode 100644 tests/baselines/reference/asyncArrowInClassES5(target=es5).types rename tests/baselines/reference/{asyncAwaitIsolatedModules_es5.errors.txt => asyncAwaitIsolatedModules_es5(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/asyncAwaitIsolatedModules_es5(target=es2015).js rename tests/baselines/reference/{asyncAwaitIsolatedModules_es5.symbols => asyncAwaitIsolatedModules_es5(target=es2015).symbols} (100%) rename tests/baselines/reference/{asyncAwaitIsolatedModules_es5.types => asyncAwaitIsolatedModules_es5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/asyncAwaitIsolatedModules_es5(target=es5).errors.txt rename tests/baselines/reference/{asyncAwaitIsolatedModules_es5.js => asyncAwaitIsolatedModules_es5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/asyncAwaitIsolatedModules_es5(target=es5).symbols create mode 100644 tests/baselines/reference/asyncAwaitIsolatedModules_es5(target=es5).types create mode 100644 tests/baselines/reference/asyncAwaitNestedClasses_es5(target=es2015).js rename tests/baselines/reference/{asyncAwaitNestedClasses_es5.symbols => asyncAwaitNestedClasses_es5(target=es2015).symbols} (100%) rename tests/baselines/reference/{asyncAwaitNestedClasses_es5.types => asyncAwaitNestedClasses_es5(target=es2015).types} (100%) rename tests/baselines/reference/{asyncAwaitNestedClasses_es5.js => asyncAwaitNestedClasses_es5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/asyncAwaitNestedClasses_es5(target=es5).symbols create mode 100644 tests/baselines/reference/asyncAwaitNestedClasses_es5(target=es5).types create mode 100644 tests/baselines/reference/asyncAwaitWithCapturedBlockScopeVar(target=es2015).js rename tests/baselines/reference/{asyncAwaitWithCapturedBlockScopeVar.symbols => asyncAwaitWithCapturedBlockScopeVar(target=es2015).symbols} (100%) rename tests/baselines/reference/{asyncAwaitWithCapturedBlockScopeVar.types => asyncAwaitWithCapturedBlockScopeVar(target=es2015).types} (100%) rename tests/baselines/reference/{asyncAwaitWithCapturedBlockScopeVar.js => asyncAwaitWithCapturedBlockScopeVar(target=es5).js} (100%) create mode 100644 tests/baselines/reference/asyncAwaitWithCapturedBlockScopeVar(target=es5).symbols create mode 100644 tests/baselines/reference/asyncAwaitWithCapturedBlockScopeVar(target=es5).types create mode 100644 tests/baselines/reference/asyncAwait_es5(target=es2015).js rename tests/baselines/reference/{asyncAwait_es5.symbols => asyncAwait_es5(target=es2015).symbols} (100%) rename tests/baselines/reference/{asyncAwait_es5.types => asyncAwait_es5(target=es2015).types} (100%) rename tests/baselines/reference/{asyncAwait_es5.js => asyncAwait_es5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/asyncAwait_es5(target=es5).symbols create mode 100644 tests/baselines/reference/asyncAwait_es5(target=es5).types rename tests/baselines/reference/{asyncClass_es5.errors.txt => asyncClass_es5(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/asyncClass_es5(target=es2015).js rename tests/baselines/reference/{asyncClass_es5.symbols => asyncClass_es5(target=es2015).symbols} (100%) rename tests/baselines/reference/{asyncClass_es5.types => asyncClass_es5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/asyncClass_es5(target=es5).errors.txt rename tests/baselines/reference/{asyncClass_es5.js => asyncClass_es5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/asyncClass_es5(target=es5).symbols create mode 100644 tests/baselines/reference/asyncClass_es5(target=es5).types rename tests/baselines/reference/{asyncConstructor_es5.errors.txt => asyncConstructor_es5(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/asyncConstructor_es5(target=es2015).js rename tests/baselines/reference/{asyncConstructor_es5.symbols => asyncConstructor_es5(target=es2015).symbols} (100%) rename tests/baselines/reference/{asyncConstructor_es5.types => asyncConstructor_es5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/asyncConstructor_es5(target=es5).errors.txt rename tests/baselines/reference/{asyncConstructor_es5.js => asyncConstructor_es5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/asyncConstructor_es5(target=es5).symbols create mode 100644 tests/baselines/reference/asyncConstructor_es5(target=es5).types rename tests/baselines/reference/{asyncDeclare_es5.errors.txt => asyncDeclare_es5(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{asyncDeclare_es5.js => asyncDeclare_es5(target=es2015).js} (100%) rename tests/baselines/reference/{asyncDeclare_es5.symbols => asyncDeclare_es5(target=es2015).symbols} (100%) rename tests/baselines/reference/{asyncDeclare_es5.types => asyncDeclare_es5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/asyncDeclare_es5(target=es5).errors.txt create mode 100644 tests/baselines/reference/asyncDeclare_es5(target=es5).js create mode 100644 tests/baselines/reference/asyncDeclare_es5(target=es5).symbols create mode 100644 tests/baselines/reference/asyncDeclare_es5(target=es5).types rename tests/baselines/reference/{asyncEnum_es5.errors.txt => asyncEnum_es5(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{asyncEnum_es5.js => asyncEnum_es5(target=es2015).js} (100%) rename tests/baselines/reference/{asyncEnum_es5.symbols => asyncEnum_es5(target=es2015).symbols} (100%) rename tests/baselines/reference/{asyncEnum_es5.types => asyncEnum_es5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/asyncEnum_es5(target=es5).errors.txt create mode 100644 tests/baselines/reference/asyncEnum_es5(target=es5).js create mode 100644 tests/baselines/reference/asyncEnum_es5(target=es5).symbols create mode 100644 tests/baselines/reference/asyncEnum_es5(target=es5).types rename tests/baselines/reference/{asyncFunctionDeclaration10_es5.errors.txt => asyncFunctionDeclaration10_es5(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/asyncFunctionDeclaration10_es5(target=es2015).js rename tests/baselines/reference/{asyncFunctionDeclaration10_es5.symbols => asyncFunctionDeclaration10_es5(target=es2015).symbols} (100%) rename tests/baselines/reference/{asyncFunctionDeclaration10_es5.types => asyncFunctionDeclaration10_es5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/asyncFunctionDeclaration10_es5(target=es5).errors.txt rename tests/baselines/reference/{asyncFunctionDeclaration10_es5.js => asyncFunctionDeclaration10_es5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/asyncFunctionDeclaration10_es5(target=es5).symbols create mode 100644 tests/baselines/reference/asyncFunctionDeclaration10_es5(target=es5).types create mode 100644 tests/baselines/reference/asyncFunctionDeclaration11_es5(target=es2015).js rename tests/baselines/reference/{asyncFunctionDeclaration11_es5.symbols => asyncFunctionDeclaration11_es5(target=es2015).symbols} (100%) rename tests/baselines/reference/{asyncFunctionDeclaration11_es5.types => asyncFunctionDeclaration11_es5(target=es2015).types} (100%) rename tests/baselines/reference/{asyncFunctionDeclaration11_es5.js => asyncFunctionDeclaration11_es5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/asyncFunctionDeclaration11_es5(target=es5).symbols create mode 100644 tests/baselines/reference/asyncFunctionDeclaration11_es5(target=es5).types rename tests/baselines/reference/{asyncFunctionDeclaration12_es5.errors.txt => asyncFunctionDeclaration12_es5(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/asyncFunctionDeclaration12_es5(target=es2015).js rename tests/baselines/reference/{asyncFunctionDeclaration12_es5.symbols => asyncFunctionDeclaration12_es5(target=es2015).symbols} (100%) rename tests/baselines/reference/{asyncFunctionDeclaration12_es5.types => asyncFunctionDeclaration12_es5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/asyncFunctionDeclaration12_es5(target=es5).errors.txt rename tests/baselines/reference/{asyncFunctionDeclaration12_es5.js => asyncFunctionDeclaration12_es5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/asyncFunctionDeclaration12_es5(target=es5).symbols create mode 100644 tests/baselines/reference/asyncFunctionDeclaration12_es5(target=es5).types rename tests/baselines/reference/{asyncFunctionDeclaration13_es5.errors.txt => asyncFunctionDeclaration13_es5(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/asyncFunctionDeclaration13_es5(target=es2015).js rename tests/baselines/reference/{asyncFunctionDeclaration13_es5.symbols => asyncFunctionDeclaration13_es5(target=es2015).symbols} (100%) rename tests/baselines/reference/{asyncFunctionDeclaration13_es5.types => asyncFunctionDeclaration13_es5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/asyncFunctionDeclaration13_es5(target=es5).errors.txt rename tests/baselines/reference/{asyncFunctionDeclaration13_es5.js => asyncFunctionDeclaration13_es5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/asyncFunctionDeclaration13_es5(target=es5).symbols create mode 100644 tests/baselines/reference/asyncFunctionDeclaration13_es5(target=es5).types create mode 100644 tests/baselines/reference/asyncFunctionDeclaration14_es5(target=es2015).js rename tests/baselines/reference/{asyncFunctionDeclaration14_es5.symbols => asyncFunctionDeclaration14_es5(target=es2015).symbols} (100%) rename tests/baselines/reference/{asyncFunctionDeclaration14_es5.types => asyncFunctionDeclaration14_es5(target=es2015).types} (100%) rename tests/baselines/reference/{asyncFunctionDeclaration14_es5.js => asyncFunctionDeclaration14_es5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/asyncFunctionDeclaration14_es5(target=es5).symbols create mode 100644 tests/baselines/reference/asyncFunctionDeclaration14_es5(target=es5).types create mode 100644 tests/baselines/reference/asyncFunctionDeclaration15_es5(target=es2015).errors.txt create mode 100644 tests/baselines/reference/asyncFunctionDeclaration15_es5(target=es2015).js rename tests/baselines/reference/{asyncFunctionDeclaration15_es5.symbols => asyncFunctionDeclaration15_es5(target=es2015).symbols} (100%) rename tests/baselines/reference/{asyncFunctionDeclaration15_es5.types => asyncFunctionDeclaration15_es5(target=es2015).types} (100%) rename tests/baselines/reference/{asyncFunctionDeclaration15_es5.errors.txt => asyncFunctionDeclaration15_es5(target=es5).errors.txt} (100%) rename tests/baselines/reference/{asyncFunctionDeclaration15_es5.js => asyncFunctionDeclaration15_es5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/asyncFunctionDeclaration15_es5(target=es5).symbols create mode 100644 tests/baselines/reference/asyncFunctionDeclaration15_es5(target=es5).types create mode 100644 tests/baselines/reference/asyncFunctionDeclaration16_es5(target=es2015).errors.txt rename tests/baselines/reference/{asyncFunctionDeclaration16_es5.symbols => asyncFunctionDeclaration16_es5(target=es2015).symbols} (100%) rename tests/baselines/reference/{asyncFunctionDeclaration16_es5.types => asyncFunctionDeclaration16_es5(target=es2015).types} (100%) rename tests/baselines/reference/{asyncFunctionDeclaration16_es5.errors.txt => asyncFunctionDeclaration16_es5(target=es5).errors.txt} (100%) create mode 100644 tests/baselines/reference/asyncFunctionDeclaration16_es5(target=es5).symbols create mode 100644 tests/baselines/reference/asyncFunctionDeclaration16_es5(target=es5).types create mode 100644 tests/baselines/reference/asyncFunctionDeclaration1_es5(target=es2015).js rename tests/baselines/reference/{asyncFunctionDeclaration1_es5.symbols => asyncFunctionDeclaration1_es5(target=es2015).symbols} (100%) rename tests/baselines/reference/{asyncFunctionDeclaration1_es5.types => asyncFunctionDeclaration1_es5(target=es2015).types} (100%) rename tests/baselines/reference/{asyncFunctionDeclaration1_es5.js => asyncFunctionDeclaration1_es5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/asyncFunctionDeclaration1_es5(target=es5).symbols create mode 100644 tests/baselines/reference/asyncFunctionDeclaration1_es5(target=es5).types rename tests/baselines/reference/{asyncFunctionDeclaration2_es5.js => asyncFunctionDeclaration2_es5(target=es2015).js} (100%) rename tests/baselines/reference/{asyncFunctionDeclaration2_es5.symbols => asyncFunctionDeclaration2_es5(target=es2015).symbols} (100%) rename tests/baselines/reference/{asyncFunctionDeclaration2_es5.types => asyncFunctionDeclaration2_es5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/asyncFunctionDeclaration2_es5(target=es5).js create mode 100644 tests/baselines/reference/asyncFunctionDeclaration2_es5(target=es5).symbols create mode 100644 tests/baselines/reference/asyncFunctionDeclaration2_es5(target=es5).types rename tests/baselines/reference/{asyncFunctionDeclaration3_es5.errors.txt => asyncFunctionDeclaration3_es5(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/asyncFunctionDeclaration3_es5(target=es2015).js rename tests/baselines/reference/{asyncFunctionDeclaration3_es5.symbols => asyncFunctionDeclaration3_es5(target=es2015).symbols} (100%) rename tests/baselines/reference/{asyncFunctionDeclaration3_es5.types => asyncFunctionDeclaration3_es5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/asyncFunctionDeclaration3_es5(target=es5).errors.txt rename tests/baselines/reference/{asyncFunctionDeclaration3_es5.js => asyncFunctionDeclaration3_es5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/asyncFunctionDeclaration3_es5(target=es5).symbols create mode 100644 tests/baselines/reference/asyncFunctionDeclaration3_es5(target=es5).types rename tests/baselines/reference/{asyncFunctionDeclaration4_es5.js => asyncFunctionDeclaration4_es5(target=es2015).js} (100%) rename tests/baselines/reference/{asyncFunctionDeclaration4_es5.symbols => asyncFunctionDeclaration4_es5(target=es2015).symbols} (100%) rename tests/baselines/reference/{asyncFunctionDeclaration4_es5.types => asyncFunctionDeclaration4_es5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/asyncFunctionDeclaration4_es5(target=es5).js create mode 100644 tests/baselines/reference/asyncFunctionDeclaration4_es5(target=es5).symbols create mode 100644 tests/baselines/reference/asyncFunctionDeclaration4_es5(target=es5).types rename tests/baselines/reference/{asyncFunctionDeclaration5_es5.errors.txt => asyncFunctionDeclaration5_es5(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/asyncFunctionDeclaration5_es5(target=es2015).js rename tests/baselines/reference/{asyncFunctionDeclaration5_es5.symbols => asyncFunctionDeclaration5_es5(target=es2015).symbols} (100%) rename tests/baselines/reference/{asyncFunctionDeclaration5_es5.types => asyncFunctionDeclaration5_es5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/asyncFunctionDeclaration5_es5(target=es5).errors.txt rename tests/baselines/reference/{asyncFunctionDeclaration5_es5.js => asyncFunctionDeclaration5_es5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/asyncFunctionDeclaration5_es5(target=es5).symbols create mode 100644 tests/baselines/reference/asyncFunctionDeclaration5_es5(target=es5).types rename tests/baselines/reference/{asyncFunctionDeclaration6_es5.errors.txt => asyncFunctionDeclaration6_es5(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/asyncFunctionDeclaration6_es5(target=es2015).js rename tests/baselines/reference/{asyncFunctionDeclaration6_es5.symbols => asyncFunctionDeclaration6_es5(target=es2015).symbols} (100%) rename tests/baselines/reference/{asyncFunctionDeclaration6_es5.types => asyncFunctionDeclaration6_es5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/asyncFunctionDeclaration6_es5(target=es5).errors.txt rename tests/baselines/reference/{asyncFunctionDeclaration6_es5.js => asyncFunctionDeclaration6_es5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/asyncFunctionDeclaration6_es5(target=es5).symbols create mode 100644 tests/baselines/reference/asyncFunctionDeclaration6_es5(target=es5).types rename tests/baselines/reference/{asyncFunctionDeclaration7_es5.errors.txt => asyncFunctionDeclaration7_es5(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/asyncFunctionDeclaration7_es5(target=es2015).js rename tests/baselines/reference/{asyncFunctionDeclaration7_es5.symbols => asyncFunctionDeclaration7_es5(target=es2015).symbols} (100%) rename tests/baselines/reference/{asyncFunctionDeclaration7_es5.types => asyncFunctionDeclaration7_es5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/asyncFunctionDeclaration7_es5(target=es5).errors.txt rename tests/baselines/reference/{asyncFunctionDeclaration7_es5.js => asyncFunctionDeclaration7_es5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/asyncFunctionDeclaration7_es5(target=es5).symbols create mode 100644 tests/baselines/reference/asyncFunctionDeclaration7_es5(target=es5).types rename tests/baselines/reference/{asyncFunctionDeclaration8_es5.errors.txt => asyncFunctionDeclaration8_es5(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/asyncFunctionDeclaration8_es5(target=es2015).js rename tests/baselines/reference/{asyncFunctionDeclaration8_es5.symbols => asyncFunctionDeclaration8_es5(target=es2015).symbols} (100%) rename tests/baselines/reference/{asyncFunctionDeclaration8_es5.types => asyncFunctionDeclaration8_es5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/asyncFunctionDeclaration8_es5(target=es5).errors.txt rename tests/baselines/reference/{asyncFunctionDeclaration8_es5.js => asyncFunctionDeclaration8_es5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/asyncFunctionDeclaration8_es5(target=es5).symbols create mode 100644 tests/baselines/reference/asyncFunctionDeclaration8_es5(target=es5).types rename tests/baselines/reference/{asyncFunctionDeclaration9_es5.errors.txt => asyncFunctionDeclaration9_es5(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/asyncFunctionDeclaration9_es5(target=es2015).js rename tests/baselines/reference/{asyncFunctionDeclaration9_es5.symbols => asyncFunctionDeclaration9_es5(target=es2015).symbols} (100%) rename tests/baselines/reference/{asyncFunctionDeclaration9_es5.types => asyncFunctionDeclaration9_es5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/asyncFunctionDeclaration9_es5(target=es5).errors.txt rename tests/baselines/reference/{asyncFunctionDeclaration9_es5.js => asyncFunctionDeclaration9_es5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/asyncFunctionDeclaration9_es5(target=es5).symbols create mode 100644 tests/baselines/reference/asyncFunctionDeclaration9_es5(target=es5).types create mode 100644 tests/baselines/reference/asyncFunctionDeclarationCapturesArguments_es5(target=es2015).js rename tests/baselines/reference/{asyncFunctionDeclarationCapturesArguments_es5.symbols => asyncFunctionDeclarationCapturesArguments_es5(target=es2015).symbols} (100%) create mode 100644 tests/baselines/reference/asyncFunctionDeclarationCapturesArguments_es5(target=es2015).types rename tests/baselines/reference/{asyncFunctionDeclarationCapturesArguments_es5.errors.txt => asyncFunctionDeclarationCapturesArguments_es5(target=es5).errors.txt} (100%) rename tests/baselines/reference/{asyncFunctionDeclarationCapturesArguments_es5.js => asyncFunctionDeclarationCapturesArguments_es5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/asyncFunctionDeclarationCapturesArguments_es5(target=es5).symbols rename tests/baselines/reference/{asyncFunctionDeclarationCapturesArguments_es5.types => asyncFunctionDeclarationCapturesArguments_es5(target=es5).types} (100%) create mode 100644 tests/baselines/reference/asyncFunctionTempVariableScoping(target=es2015).js rename tests/baselines/reference/{asyncFunctionTempVariableScoping.symbols => asyncFunctionTempVariableScoping(target=es2015).symbols} (100%) rename tests/baselines/reference/{asyncFunctionTempVariableScoping.types => asyncFunctionTempVariableScoping(target=es2015).types} (100%) rename tests/baselines/reference/{asyncFunctionTempVariableScoping.js => asyncFunctionTempVariableScoping(target=es5).js} (100%) create mode 100644 tests/baselines/reference/asyncFunctionTempVariableScoping(target=es5).symbols create mode 100644 tests/baselines/reference/asyncFunctionTempVariableScoping(target=es5).types rename tests/baselines/reference/{asyncGetter_es5.errors.txt => asyncGetter_es5(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/asyncGetter_es5(target=es2015).js rename tests/baselines/reference/{asyncGetter_es5.symbols => asyncGetter_es5(target=es2015).symbols} (100%) rename tests/baselines/reference/{asyncGetter_es5.types => asyncGetter_es5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/asyncGetter_es5(target=es5).errors.txt rename tests/baselines/reference/{asyncGetter_es5.js => asyncGetter_es5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/asyncGetter_es5(target=es5).symbols create mode 100644 tests/baselines/reference/asyncGetter_es5(target=es5).types create mode 100644 tests/baselines/reference/asyncImportedPromise_es5(target=es2015).errors.txt create mode 100644 tests/baselines/reference/asyncImportedPromise_es5(target=es2015).js rename tests/baselines/reference/{asyncImportedPromise_es5.symbols => asyncImportedPromise_es5(target=es2015).symbols} (100%) rename tests/baselines/reference/{asyncImportedPromise_es5.types => asyncImportedPromise_es5(target=es2015).types} (100%) rename tests/baselines/reference/{asyncImportedPromise_es5.js => asyncImportedPromise_es5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/asyncImportedPromise_es5(target=es5).symbols create mode 100644 tests/baselines/reference/asyncImportedPromise_es5(target=es5).types rename tests/baselines/reference/{asyncInterface_es5.errors.txt => asyncInterface_es5(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{asyncInterface_es5.js => asyncInterface_es5(target=es2015).js} (100%) rename tests/baselines/reference/{asyncInterface_es5.symbols => asyncInterface_es5(target=es2015).symbols} (100%) rename tests/baselines/reference/{asyncInterface_es5.types => asyncInterface_es5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/asyncInterface_es5(target=es5).errors.txt create mode 100644 tests/baselines/reference/asyncInterface_es5(target=es5).js create mode 100644 tests/baselines/reference/asyncInterface_es5(target=es5).symbols create mode 100644 tests/baselines/reference/asyncInterface_es5(target=es5).types create mode 100644 tests/baselines/reference/asyncMethodWithSuper_es5(target=es2015).js rename tests/baselines/reference/{asyncMethodWithSuper_es5.symbols => asyncMethodWithSuper_es5(target=es2015).symbols} (100%) rename tests/baselines/reference/{asyncMethodWithSuper_es5.types => asyncMethodWithSuper_es5(target=es2015).types} (100%) rename tests/baselines/reference/{asyncMethodWithSuper_es5.js => asyncMethodWithSuper_es5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/asyncMethodWithSuper_es5(target=es5).symbols create mode 100644 tests/baselines/reference/asyncMethodWithSuper_es5(target=es5).types rename tests/baselines/reference/{asyncModule_es5.errors.txt => asyncModule_es5(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{asyncModule_es5.js => asyncModule_es5(target=es2015).js} (100%) rename tests/baselines/reference/{asyncModule_es5.symbols => asyncModule_es5(target=es2015).symbols} (100%) rename tests/baselines/reference/{asyncModule_es5.types => asyncModule_es5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/asyncModule_es5(target=es5).errors.txt create mode 100644 tests/baselines/reference/asyncModule_es5(target=es5).js create mode 100644 tests/baselines/reference/asyncModule_es5(target=es5).symbols create mode 100644 tests/baselines/reference/asyncModule_es5(target=es5).types create mode 100644 tests/baselines/reference/asyncMultiFile_es5(target=es2015).js rename tests/baselines/reference/{asyncMultiFile_es5.symbols => asyncMultiFile_es5(target=es2015).symbols} (100%) rename tests/baselines/reference/{asyncMultiFile_es5.types => asyncMultiFile_es5(target=es2015).types} (100%) rename tests/baselines/reference/{asyncMultiFile_es5.js => asyncMultiFile_es5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/asyncMultiFile_es5(target=es5).symbols create mode 100644 tests/baselines/reference/asyncMultiFile_es5(target=es5).types create mode 100644 tests/baselines/reference/asyncQualifiedReturnType_es5(target=es2015).errors.txt create mode 100644 tests/baselines/reference/asyncQualifiedReturnType_es5(target=es2015).js rename tests/baselines/reference/{asyncQualifiedReturnType_es5.symbols => asyncQualifiedReturnType_es5(target=es2015).symbols} (100%) rename tests/baselines/reference/{asyncQualifiedReturnType_es5.types => asyncQualifiedReturnType_es5(target=es2015).types} (100%) rename tests/baselines/reference/{asyncQualifiedReturnType_es5.js => asyncQualifiedReturnType_es5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/asyncQualifiedReturnType_es5(target=es5).symbols create mode 100644 tests/baselines/reference/asyncQualifiedReturnType_es5(target=es5).types rename tests/baselines/reference/{asyncSetter_es5.errors.txt => asyncSetter_es5(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/asyncSetter_es5(target=es2015).js rename tests/baselines/reference/{asyncSetter_es5.symbols => asyncSetter_es5(target=es2015).symbols} (100%) rename tests/baselines/reference/{asyncSetter_es5.types => asyncSetter_es5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/asyncSetter_es5(target=es5).errors.txt rename tests/baselines/reference/{asyncSetter_es5.js => asyncSetter_es5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/asyncSetter_es5(target=es5).symbols create mode 100644 tests/baselines/reference/asyncSetter_es5(target=es5).types create mode 100644 tests/baselines/reference/asyncUnParenthesizedArrowFunction_es5(target=es2015).js rename tests/baselines/reference/{asyncUnParenthesizedArrowFunction_es5.symbols => asyncUnParenthesizedArrowFunction_es5(target=es2015).symbols} (100%) rename tests/baselines/reference/{asyncUnParenthesizedArrowFunction_es5.types => asyncUnParenthesizedArrowFunction_es5(target=es2015).types} (100%) rename tests/baselines/reference/{asyncUnParenthesizedArrowFunction_es5.js => asyncUnParenthesizedArrowFunction_es5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/asyncUnParenthesizedArrowFunction_es5(target=es5).symbols create mode 100644 tests/baselines/reference/asyncUnParenthesizedArrowFunction_es5(target=es5).types create mode 100644 tests/baselines/reference/asyncUseStrict_es5(target=es2015).js rename tests/baselines/reference/{asyncUseStrict_es5.symbols => asyncUseStrict_es5(target=es2015).symbols} (100%) rename tests/baselines/reference/{asyncUseStrict_es5.types => asyncUseStrict_es5(target=es2015).types} (100%) rename tests/baselines/reference/{asyncUseStrict_es5.js => asyncUseStrict_es5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/asyncUseStrict_es5(target=es5).symbols create mode 100644 tests/baselines/reference/asyncUseStrict_es5(target=es5).types create mode 100644 tests/baselines/reference/awaitBinaryExpression1_es5(target=es2015).js rename tests/baselines/reference/{awaitBinaryExpression1_es5.symbols => awaitBinaryExpression1_es5(target=es2015).symbols} (100%) rename tests/baselines/reference/{awaitBinaryExpression1_es5.types => awaitBinaryExpression1_es5(target=es2015).types} (100%) rename tests/baselines/reference/{awaitBinaryExpression1_es5.js => awaitBinaryExpression1_es5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/awaitBinaryExpression1_es5(target=es5).symbols create mode 100644 tests/baselines/reference/awaitBinaryExpression1_es5(target=es5).types create mode 100644 tests/baselines/reference/awaitBinaryExpression2_es5(target=es2015).js rename tests/baselines/reference/{awaitBinaryExpression2_es5.symbols => awaitBinaryExpression2_es5(target=es2015).symbols} (100%) rename tests/baselines/reference/{awaitBinaryExpression2_es5.types => awaitBinaryExpression2_es5(target=es2015).types} (100%) rename tests/baselines/reference/{awaitBinaryExpression2_es5.js => awaitBinaryExpression2_es5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/awaitBinaryExpression2_es5(target=es5).symbols create mode 100644 tests/baselines/reference/awaitBinaryExpression2_es5(target=es5).types create mode 100644 tests/baselines/reference/awaitBinaryExpression3_es5(target=es2015).js rename tests/baselines/reference/{awaitBinaryExpression3_es5.symbols => awaitBinaryExpression3_es5(target=es2015).symbols} (100%) rename tests/baselines/reference/{awaitBinaryExpression3_es5.types => awaitBinaryExpression3_es5(target=es2015).types} (100%) rename tests/baselines/reference/{awaitBinaryExpression3_es5.js => awaitBinaryExpression3_es5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/awaitBinaryExpression3_es5(target=es5).symbols create mode 100644 tests/baselines/reference/awaitBinaryExpression3_es5(target=es5).types create mode 100644 tests/baselines/reference/awaitBinaryExpression4_es5(target=es2015).js rename tests/baselines/reference/{awaitBinaryExpression4_es5.symbols => awaitBinaryExpression4_es5(target=es2015).symbols} (100%) rename tests/baselines/reference/{awaitBinaryExpression4_es5.types => awaitBinaryExpression4_es5(target=es2015).types} (100%) rename tests/baselines/reference/{awaitBinaryExpression4_es5.js => awaitBinaryExpression4_es5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/awaitBinaryExpression4_es5(target=es5).symbols create mode 100644 tests/baselines/reference/awaitBinaryExpression4_es5(target=es5).types create mode 100644 tests/baselines/reference/awaitBinaryExpression5_es5(target=es2015).js rename tests/baselines/reference/{awaitBinaryExpression5_es5.symbols => awaitBinaryExpression5_es5(target=es2015).symbols} (100%) rename tests/baselines/reference/{awaitBinaryExpression5_es5.types => awaitBinaryExpression5_es5(target=es2015).types} (100%) rename tests/baselines/reference/{awaitBinaryExpression5_es5.js => awaitBinaryExpression5_es5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/awaitBinaryExpression5_es5(target=es5).symbols create mode 100644 tests/baselines/reference/awaitBinaryExpression5_es5(target=es5).types create mode 100644 tests/baselines/reference/awaitCallExpression1_es5(target=es2015).js rename tests/baselines/reference/{awaitCallExpression1_es5.symbols => awaitCallExpression1_es5(target=es2015).symbols} (100%) rename tests/baselines/reference/{awaitCallExpression1_es5.types => awaitCallExpression1_es5(target=es2015).types} (100%) rename tests/baselines/reference/{awaitCallExpression1_es5.js => awaitCallExpression1_es5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/awaitCallExpression1_es5(target=es5).symbols create mode 100644 tests/baselines/reference/awaitCallExpression1_es5(target=es5).types create mode 100644 tests/baselines/reference/awaitCallExpression2_es5(target=es2015).js rename tests/baselines/reference/{awaitCallExpression2_es5.symbols => awaitCallExpression2_es5(target=es2015).symbols} (100%) rename tests/baselines/reference/{awaitCallExpression2_es5.types => awaitCallExpression2_es5(target=es2015).types} (100%) rename tests/baselines/reference/{awaitCallExpression2_es5.js => awaitCallExpression2_es5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/awaitCallExpression2_es5(target=es5).symbols create mode 100644 tests/baselines/reference/awaitCallExpression2_es5(target=es5).types create mode 100644 tests/baselines/reference/awaitCallExpression3_es5(target=es2015).js rename tests/baselines/reference/{awaitCallExpression3_es5.symbols => awaitCallExpression3_es5(target=es2015).symbols} (100%) rename tests/baselines/reference/{awaitCallExpression3_es5.types => awaitCallExpression3_es5(target=es2015).types} (100%) rename tests/baselines/reference/{awaitCallExpression3_es5.js => awaitCallExpression3_es5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/awaitCallExpression3_es5(target=es5).symbols create mode 100644 tests/baselines/reference/awaitCallExpression3_es5(target=es5).types create mode 100644 tests/baselines/reference/awaitCallExpression4_es5(target=es2015).js rename tests/baselines/reference/{awaitCallExpression4_es5.symbols => awaitCallExpression4_es5(target=es2015).symbols} (100%) rename tests/baselines/reference/{awaitCallExpression4_es5.types => awaitCallExpression4_es5(target=es2015).types} (100%) rename tests/baselines/reference/{awaitCallExpression4_es5.js => awaitCallExpression4_es5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/awaitCallExpression4_es5(target=es5).symbols create mode 100644 tests/baselines/reference/awaitCallExpression4_es5(target=es5).types create mode 100644 tests/baselines/reference/awaitCallExpression5_es5(target=es2015).js rename tests/baselines/reference/{awaitCallExpression5_es5.symbols => awaitCallExpression5_es5(target=es2015).symbols} (100%) rename tests/baselines/reference/{awaitCallExpression5_es5.types => awaitCallExpression5_es5(target=es2015).types} (100%) rename tests/baselines/reference/{awaitCallExpression5_es5.js => awaitCallExpression5_es5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/awaitCallExpression5_es5(target=es5).symbols create mode 100644 tests/baselines/reference/awaitCallExpression5_es5(target=es5).types create mode 100644 tests/baselines/reference/awaitCallExpression6_es5(target=es2015).js rename tests/baselines/reference/{awaitCallExpression6_es5.symbols => awaitCallExpression6_es5(target=es2015).symbols} (100%) rename tests/baselines/reference/{awaitCallExpression6_es5.types => awaitCallExpression6_es5(target=es2015).types} (100%) rename tests/baselines/reference/{awaitCallExpression6_es5.js => awaitCallExpression6_es5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/awaitCallExpression6_es5(target=es5).symbols create mode 100644 tests/baselines/reference/awaitCallExpression6_es5(target=es5).types create mode 100644 tests/baselines/reference/awaitCallExpression7_es5(target=es2015).js rename tests/baselines/reference/{awaitCallExpression7_es5.symbols => awaitCallExpression7_es5(target=es2015).symbols} (100%) rename tests/baselines/reference/{awaitCallExpression7_es5.types => awaitCallExpression7_es5(target=es2015).types} (100%) rename tests/baselines/reference/{awaitCallExpression7_es5.js => awaitCallExpression7_es5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/awaitCallExpression7_es5(target=es5).symbols create mode 100644 tests/baselines/reference/awaitCallExpression7_es5(target=es5).types create mode 100644 tests/baselines/reference/awaitCallExpression8_es5(target=es2015).js rename tests/baselines/reference/{awaitCallExpression8_es5.symbols => awaitCallExpression8_es5(target=es2015).symbols} (100%) rename tests/baselines/reference/{awaitCallExpression8_es5.types => awaitCallExpression8_es5(target=es2015).types} (100%) rename tests/baselines/reference/{awaitCallExpression8_es5.js => awaitCallExpression8_es5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/awaitCallExpression8_es5(target=es5).symbols create mode 100644 tests/baselines/reference/awaitCallExpression8_es5(target=es5).types create mode 100644 tests/baselines/reference/awaitClassExpression_es5(target=es2015).js rename tests/baselines/reference/{awaitClassExpression_es5.symbols => awaitClassExpression_es5(target=es2015).symbols} (100%) rename tests/baselines/reference/{awaitClassExpression_es5.types => awaitClassExpression_es5(target=es2015).types} (100%) rename tests/baselines/reference/{awaitClassExpression_es5.js => awaitClassExpression_es5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/awaitClassExpression_es5(target=es5).symbols create mode 100644 tests/baselines/reference/awaitClassExpression_es5(target=es5).types create mode 100644 tests/baselines/reference/awaitUnion_es5(target=es2015).js rename tests/baselines/reference/{awaitUnion_es5.symbols => awaitUnion_es5(target=es2015).symbols} (100%) rename tests/baselines/reference/{awaitUnion_es5.types => awaitUnion_es5(target=es2015).types} (100%) rename tests/baselines/reference/{awaitUnion_es5.js => awaitUnion_es5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/awaitUnion_es5(target=es5).symbols create mode 100644 tests/baselines/reference/awaitUnion_es5(target=es5).types rename tests/baselines/reference/{bigintAmbientMinimal.errors.txt => bigintAmbientMinimal(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/bigintAmbientMinimal(target=es2015).js rename tests/baselines/reference/{bigintAmbientMinimal.symbols => bigintAmbientMinimal(target=es2015).symbols} (100%) rename tests/baselines/reference/{bigintAmbientMinimal.types => bigintAmbientMinimal(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/bigintAmbientMinimal(target=es5).errors.txt rename tests/baselines/reference/{bigintAmbientMinimal.js => bigintAmbientMinimal(target=es5).js} (100%) create mode 100644 tests/baselines/reference/bigintAmbientMinimal(target=es5).symbols create mode 100644 tests/baselines/reference/bigintAmbientMinimal(target=es5).types rename tests/baselines/reference/{bigintWithoutLib.errors.txt => bigintWithoutLib(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/bigintWithoutLib(target=es2015).js rename tests/baselines/reference/{bigintWithoutLib.symbols => bigintWithoutLib(target=es2015).symbols} (100%) rename tests/baselines/reference/{bigintWithoutLib.types => bigintWithoutLib(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/bigintWithoutLib(target=es5).errors.txt rename tests/baselines/reference/{bigintWithoutLib.js => bigintWithoutLib(target=es5).js} (100%) create mode 100644 tests/baselines/reference/bigintWithoutLib(target=es5).symbols create mode 100644 tests/baselines/reference/bigintWithoutLib(target=es5).types create mode 100644 tests/baselines/reference/binaryIntegerLiteral(target=es2015).js rename tests/baselines/reference/{binaryIntegerLiteral.symbols => binaryIntegerLiteral(target=es2015).symbols} (100%) rename tests/baselines/reference/{binaryIntegerLiteral.types => binaryIntegerLiteral(target=es2015).types} (100%) rename tests/baselines/reference/{binaryIntegerLiteral.js => binaryIntegerLiteral(target=es5).js} (100%) create mode 100644 tests/baselines/reference/binaryIntegerLiteral(target=es5).symbols create mode 100644 tests/baselines/reference/binaryIntegerLiteral(target=es5).types create mode 100644 tests/baselines/reference/blockScopedBindingsInDownlevelGenerator(target=es2015).js rename tests/baselines/reference/{blockScopedBindingsInDownlevelGenerator.symbols => blockScopedBindingsInDownlevelGenerator(target=es2015).symbols} (100%) rename tests/baselines/reference/{blockScopedBindingsInDownlevelGenerator.types => blockScopedBindingsInDownlevelGenerator(target=es2015).types} (100%) rename tests/baselines/reference/{blockScopedBindingsInDownlevelGenerator.js => blockScopedBindingsInDownlevelGenerator(target=es5).js} (100%) create mode 100644 tests/baselines/reference/blockScopedBindingsInDownlevelGenerator(target=es5).symbols create mode 100644 tests/baselines/reference/blockScopedBindingsInDownlevelGenerator(target=es5).types rename tests/baselines/reference/{blockScopedEnumVariablesUseBeforeDef.errors.txt => blockScopedEnumVariablesUseBeforeDef(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef(target=es2015).js rename tests/baselines/reference/{blockScopedEnumVariablesUseBeforeDef.symbols => blockScopedEnumVariablesUseBeforeDef(target=es2015).symbols} (100%) rename tests/baselines/reference/{blockScopedEnumVariablesUseBeforeDef.types => blockScopedEnumVariablesUseBeforeDef(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef(target=es5).errors.txt rename tests/baselines/reference/{blockScopedEnumVariablesUseBeforeDef.js => blockScopedEnumVariablesUseBeforeDef(target=es5).js} (100%) create mode 100644 tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef(target=es5).symbols create mode 100644 tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef(target=es5).types rename tests/baselines/reference/{blockScopedEnumVariablesUseBeforeDef_isolatedModules.errors.txt => blockScopedEnumVariablesUseBeforeDef_isolatedModules(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_isolatedModules(target=es2015).js rename tests/baselines/reference/{blockScopedEnumVariablesUseBeforeDef_isolatedModules.symbols => blockScopedEnumVariablesUseBeforeDef_isolatedModules(target=es2015).symbols} (100%) rename tests/baselines/reference/{blockScopedEnumVariablesUseBeforeDef_isolatedModules.types => blockScopedEnumVariablesUseBeforeDef_isolatedModules(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_isolatedModules(target=es5).errors.txt rename tests/baselines/reference/{blockScopedEnumVariablesUseBeforeDef_isolatedModules.js => blockScopedEnumVariablesUseBeforeDef_isolatedModules(target=es5).js} (100%) create mode 100644 tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_isolatedModules(target=es5).symbols create mode 100644 tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_isolatedModules(target=es5).types rename tests/baselines/reference/{blockScopedEnumVariablesUseBeforeDef_preserve.errors.txt => blockScopedEnumVariablesUseBeforeDef_preserve(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_preserve(target=es2015).js rename tests/baselines/reference/{blockScopedEnumVariablesUseBeforeDef_preserve.symbols => blockScopedEnumVariablesUseBeforeDef_preserve(target=es2015).symbols} (100%) rename tests/baselines/reference/{blockScopedEnumVariablesUseBeforeDef_preserve.types => blockScopedEnumVariablesUseBeforeDef_preserve(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_preserve(target=es5).errors.txt rename tests/baselines/reference/{blockScopedEnumVariablesUseBeforeDef_preserve.js => blockScopedEnumVariablesUseBeforeDef_preserve(target=es5).js} (100%) create mode 100644 tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_preserve(target=es5).symbols create mode 100644 tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_preserve(target=es5).types rename tests/baselines/reference/{blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax.errors.txt => blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax(target=es2015).js rename tests/baselines/reference/{blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax.symbols => blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax(target=es2015).symbols} (100%) rename tests/baselines/reference/{blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax.types => blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax(target=es5).errors.txt rename tests/baselines/reference/{blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax.js => blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax(target=es5).js} (100%) create mode 100644 tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax(target=es5).symbols create mode 100644 tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax(target=es5).types rename tests/baselines/reference/{blockScopedFunctionDeclarationES5.js => blockScopedFunctionDeclarationES5(target=es2015).js} (100%) rename tests/baselines/reference/{blockScopedFunctionDeclarationES5.symbols => blockScopedFunctionDeclarationES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{blockScopedFunctionDeclarationES5.types => blockScopedFunctionDeclarationES5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/blockScopedFunctionDeclarationES5(target=es5).js create mode 100644 tests/baselines/reference/blockScopedFunctionDeclarationES5(target=es5).symbols create mode 100644 tests/baselines/reference/blockScopedFunctionDeclarationES5(target=es5).types create mode 100644 tests/baselines/reference/blockScopedFunctionDeclarationInStrictClass(target=es2015).errors.txt create mode 100644 tests/baselines/reference/blockScopedFunctionDeclarationInStrictClass(target=es2015).js rename tests/baselines/reference/{blockScopedFunctionDeclarationInStrictClass.symbols => blockScopedFunctionDeclarationInStrictClass(target=es2015).symbols} (100%) rename tests/baselines/reference/{blockScopedFunctionDeclarationInStrictClass.types => blockScopedFunctionDeclarationInStrictClass(target=es2015).types} (100%) rename tests/baselines/reference/{blockScopedFunctionDeclarationInStrictClass.errors.txt => blockScopedFunctionDeclarationInStrictClass(target=es5).errors.txt} (100%) rename tests/baselines/reference/{blockScopedFunctionDeclarationInStrictClass.js => blockScopedFunctionDeclarationInStrictClass(target=es5).js} (100%) create mode 100644 tests/baselines/reference/blockScopedFunctionDeclarationInStrictClass(target=es5).symbols create mode 100644 tests/baselines/reference/blockScopedFunctionDeclarationInStrictClass(target=es5).types create mode 100644 tests/baselines/reference/blockScopedFunctionDeclarationStrictES5(target=es2015).errors.txt rename tests/baselines/reference/{blockScopedFunctionDeclarationStrictES5.js => blockScopedFunctionDeclarationStrictES5(target=es2015).js} (100%) rename tests/baselines/reference/{blockScopedFunctionDeclarationStrictES5.symbols => blockScopedFunctionDeclarationStrictES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{blockScopedFunctionDeclarationStrictES5.types => blockScopedFunctionDeclarationStrictES5(target=es2015).types} (100%) rename tests/baselines/reference/{blockScopedFunctionDeclarationStrictES5.errors.txt => blockScopedFunctionDeclarationStrictES5(target=es5).errors.txt} (100%) create mode 100644 tests/baselines/reference/blockScopedFunctionDeclarationStrictES5(target=es5).js create mode 100644 tests/baselines/reference/blockScopedFunctionDeclarationStrictES5(target=es5).symbols create mode 100644 tests/baselines/reference/blockScopedFunctionDeclarationStrictES5(target=es5).types rename tests/baselines/reference/{blockScopedNamespaceDifferentFile.errors.txt => blockScopedNamespaceDifferentFile(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/blockScopedNamespaceDifferentFile(target=es2015).js rename tests/baselines/reference/{blockScopedNamespaceDifferentFile.symbols => blockScopedNamespaceDifferentFile(target=es2015).symbols} (100%) rename tests/baselines/reference/{blockScopedNamespaceDifferentFile.types => blockScopedNamespaceDifferentFile(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/blockScopedNamespaceDifferentFile(target=es5).errors.txt rename tests/baselines/reference/{blockScopedNamespaceDifferentFile.js => blockScopedNamespaceDifferentFile(target=es5).js} (100%) create mode 100644 tests/baselines/reference/blockScopedNamespaceDifferentFile(target=es5).symbols create mode 100644 tests/baselines/reference/blockScopedNamespaceDifferentFile(target=es5).types rename tests/baselines/reference/{blockScopedSameNameFunctionDeclarationES5.errors.txt => blockScopedSameNameFunctionDeclarationES5(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{blockScopedSameNameFunctionDeclarationES5.js => blockScopedSameNameFunctionDeclarationES5(target=es2015).js} (100%) rename tests/baselines/reference/{blockScopedSameNameFunctionDeclarationES5.symbols => blockScopedSameNameFunctionDeclarationES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{blockScopedSameNameFunctionDeclarationES5.types => blockScopedSameNameFunctionDeclarationES5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/blockScopedSameNameFunctionDeclarationES5(target=es5).errors.txt create mode 100644 tests/baselines/reference/blockScopedSameNameFunctionDeclarationES5(target=es5).js create mode 100644 tests/baselines/reference/blockScopedSameNameFunctionDeclarationES5(target=es5).symbols create mode 100644 tests/baselines/reference/blockScopedSameNameFunctionDeclarationES5(target=es5).types create mode 100644 tests/baselines/reference/blockScopedSameNameFunctionDeclarationStrictES5(target=es2015).errors.txt rename tests/baselines/reference/{blockScopedSameNameFunctionDeclarationStrictES5.js => blockScopedSameNameFunctionDeclarationStrictES5(target=es2015).js} (100%) rename tests/baselines/reference/{blockScopedSameNameFunctionDeclarationStrictES5.symbols => blockScopedSameNameFunctionDeclarationStrictES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{blockScopedSameNameFunctionDeclarationStrictES5.types => blockScopedSameNameFunctionDeclarationStrictES5(target=es2015).types} (100%) rename tests/baselines/reference/{blockScopedSameNameFunctionDeclarationStrictES5.errors.txt => blockScopedSameNameFunctionDeclarationStrictES5(target=es5).errors.txt} (100%) create mode 100644 tests/baselines/reference/blockScopedSameNameFunctionDeclarationStrictES5(target=es5).js create mode 100644 tests/baselines/reference/blockScopedSameNameFunctionDeclarationStrictES5(target=es5).symbols create mode 100644 tests/baselines/reference/blockScopedSameNameFunctionDeclarationStrictES5(target=es5).types rename tests/baselines/reference/{blockScopedVariablesUseBeforeDef.errors.txt => blockScopedVariablesUseBeforeDef(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/blockScopedVariablesUseBeforeDef(target=es2015).js rename tests/baselines/reference/{blockScopedVariablesUseBeforeDef.symbols => blockScopedVariablesUseBeforeDef(target=es2015).symbols} (100%) rename tests/baselines/reference/{blockScopedVariablesUseBeforeDef.types => blockScopedVariablesUseBeforeDef(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/blockScopedVariablesUseBeforeDef(target=es5).errors.txt rename tests/baselines/reference/{blockScopedVariablesUseBeforeDef.js => blockScopedVariablesUseBeforeDef(target=es5).js} (100%) create mode 100644 tests/baselines/reference/blockScopedVariablesUseBeforeDef(target=es5).symbols create mode 100644 tests/baselines/reference/blockScopedVariablesUseBeforeDef(target=es5).types rename tests/baselines/reference/{capturedLetConstInLoop14.errors.txt => capturedLetConstInLoop14(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/capturedLetConstInLoop14(target=es2015).js create mode 100644 tests/baselines/reference/capturedLetConstInLoop14(target=es5).errors.txt rename tests/baselines/reference/{capturedLetConstInLoop14.js => capturedLetConstInLoop14(target=es5).js} (100%) rename tests/baselines/reference/{capturedParametersInInitializers2.errors.txt => capturedParametersInInitializers2(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/capturedParametersInInitializers2(target=es2015).js rename tests/baselines/reference/{capturedParametersInInitializers2.symbols => capturedParametersInInitializers2(target=es2015).symbols} (100%) rename tests/baselines/reference/{capturedParametersInInitializers2.types => capturedParametersInInitializers2(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/capturedParametersInInitializers2(target=es5).errors.txt rename tests/baselines/reference/{capturedParametersInInitializers2.js => capturedParametersInInitializers2(target=es5).js} (100%) create mode 100644 tests/baselines/reference/capturedParametersInInitializers2(target=es5).symbols create mode 100644 tests/baselines/reference/capturedParametersInInitializers2(target=es5).types create mode 100644 tests/baselines/reference/capturedShorthandPropertyAssignmentNoCheck(target=es2015).js rename tests/baselines/reference/{capturedShorthandPropertyAssignmentNoCheck.symbols => capturedShorthandPropertyAssignmentNoCheck(target=es2015).symbols} (100%) rename tests/baselines/reference/{capturedShorthandPropertyAssignmentNoCheck.types => capturedShorthandPropertyAssignmentNoCheck(target=es2015).types} (100%) rename tests/baselines/reference/{capturedShorthandPropertyAssignmentNoCheck.js => capturedShorthandPropertyAssignmentNoCheck(target=es5).js} (100%) create mode 100644 tests/baselines/reference/capturedShorthandPropertyAssignmentNoCheck(target=es5).symbols create mode 100644 tests/baselines/reference/capturedShorthandPropertyAssignmentNoCheck(target=es5).types create mode 100644 tests/baselines/reference/capturedVarInLoop(target=es2015).js rename tests/baselines/reference/{capturedVarInLoop.symbols => capturedVarInLoop(target=es2015).symbols} (100%) rename tests/baselines/reference/{capturedVarInLoop.types => capturedVarInLoop(target=es2015).types} (100%) rename tests/baselines/reference/{capturedVarInLoop.js => capturedVarInLoop(target=es5).js} (100%) create mode 100644 tests/baselines/reference/capturedVarInLoop(target=es5).symbols create mode 100644 tests/baselines/reference/capturedVarInLoop(target=es5).types create mode 100644 tests/baselines/reference/circularObjectLiteralAccessors(target=es2015).js rename tests/baselines/reference/{circularObjectLiteralAccessors.symbols => circularObjectLiteralAccessors(target=es2015).symbols} (100%) rename tests/baselines/reference/{circularObjectLiteralAccessors.types => circularObjectLiteralAccessors(target=es2015).types} (100%) rename tests/baselines/reference/{circularObjectLiteralAccessors.js => circularObjectLiteralAccessors(target=es5).js} (100%) create mode 100644 tests/baselines/reference/circularObjectLiteralAccessors(target=es5).symbols create mode 100644 tests/baselines/reference/circularObjectLiteralAccessors(target=es5).types rename tests/baselines/reference/{classAbstractAccessor.errors.txt => classAbstractAccessor(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/classAbstractAccessor(target=es2015).js rename tests/baselines/reference/{classAbstractAccessor.symbols => classAbstractAccessor(target=es2015).symbols} (100%) rename tests/baselines/reference/{classAbstractAccessor.types => classAbstractAccessor(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/classAbstractAccessor(target=es5).errors.txt rename tests/baselines/reference/{classAbstractAccessor.js => classAbstractAccessor(target=es5).js} (100%) create mode 100644 tests/baselines/reference/classAbstractAccessor(target=es5).symbols create mode 100644 tests/baselines/reference/classAbstractAccessor(target=es5).types create mode 100644 tests/baselines/reference/classExpressionWithStaticProperties2(target=es2015).js rename tests/baselines/reference/{classExpressionWithStaticProperties2.symbols => classExpressionWithStaticProperties2(target=es2015).symbols} (100%) rename tests/baselines/reference/{classExpressionWithStaticProperties2.types => classExpressionWithStaticProperties2(target=es2015).types} (100%) rename tests/baselines/reference/{classExpressionWithStaticProperties2.js => classExpressionWithStaticProperties2(target=es5).js} (100%) create mode 100644 tests/baselines/reference/classExpressionWithStaticProperties2(target=es5).symbols create mode 100644 tests/baselines/reference/classExpressionWithStaticProperties2(target=es5).types create mode 100644 tests/baselines/reference/classExpressionWithStaticProperties3(target=es2015).js rename tests/baselines/reference/{classExpressionWithStaticProperties3.symbols => classExpressionWithStaticProperties3(target=es2015).symbols} (100%) rename tests/baselines/reference/{classExpressionWithStaticProperties3.types => classExpressionWithStaticProperties3(target=es2015).types} (100%) rename tests/baselines/reference/{classExpressionWithStaticProperties3.js => classExpressionWithStaticProperties3(target=es5).js} (100%) create mode 100644 tests/baselines/reference/classExpressionWithStaticProperties3(target=es5).symbols create mode 100644 tests/baselines/reference/classExpressionWithStaticProperties3(target=es5).types create mode 100644 tests/baselines/reference/classExtendsAcrossFiles(target=es2015).js rename tests/baselines/reference/{classExtendsAcrossFiles.symbols => classExtendsAcrossFiles(target=es2015).symbols} (100%) rename tests/baselines/reference/{classExtendsAcrossFiles.types => classExtendsAcrossFiles(target=es2015).types} (100%) rename tests/baselines/reference/{classExtendsAcrossFiles.js => classExtendsAcrossFiles(target=es5).js} (100%) create mode 100644 tests/baselines/reference/classExtendsAcrossFiles(target=es5).symbols create mode 100644 tests/baselines/reference/classExtendsAcrossFiles(target=es5).types create mode 100644 tests/baselines/reference/classInConvertedLoopES5(target=es2015).js rename tests/baselines/reference/{classInConvertedLoopES5.symbols => classInConvertedLoopES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{classInConvertedLoopES5.types => classInConvertedLoopES5(target=es2015).types} (100%) rename tests/baselines/reference/{classInConvertedLoopES5.js => classInConvertedLoopES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/classInConvertedLoopES5(target=es5).symbols create mode 100644 tests/baselines/reference/classInConvertedLoopES5(target=es5).types rename tests/baselines/reference/{classStaticPropertyAccess.errors.txt => classStaticPropertyAccess(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/classStaticPropertyAccess(target=es2015).js rename tests/baselines/reference/{classStaticPropertyAccess.symbols => classStaticPropertyAccess(target=es2015).symbols} (100%) rename tests/baselines/reference/{classStaticPropertyAccess.types => classStaticPropertyAccess(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/classStaticPropertyAccess(target=es5).errors.txt rename tests/baselines/reference/{classStaticPropertyAccess.js => classStaticPropertyAccess(target=es5).js} (100%) create mode 100644 tests/baselines/reference/classStaticPropertyAccess(target=es5).symbols create mode 100644 tests/baselines/reference/classStaticPropertyAccess(target=es5).types create mode 100644 tests/baselines/reference/classStaticPropertyTypeGuard(target=es2015).js rename tests/baselines/reference/{classStaticPropertyTypeGuard.symbols => classStaticPropertyTypeGuard(target=es2015).symbols} (100%) rename tests/baselines/reference/{classStaticPropertyTypeGuard.types => classStaticPropertyTypeGuard(target=es2015).types} (100%) rename tests/baselines/reference/{classStaticPropertyTypeGuard.js => classStaticPropertyTypeGuard(target=es5).js} (100%) create mode 100644 tests/baselines/reference/classStaticPropertyTypeGuard(target=es5).symbols create mode 100644 tests/baselines/reference/classStaticPropertyTypeGuard(target=es5).types rename tests/baselines/reference/{classUsedBeforeInitializedVariables.errors.txt => classUsedBeforeInitializedVariables(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/classUsedBeforeInitializedVariables(target=es2015).js rename tests/baselines/reference/{classUsedBeforeInitializedVariables.symbols => classUsedBeforeInitializedVariables(target=es2015).symbols} (100%) rename tests/baselines/reference/{classUsedBeforeInitializedVariables.types => classUsedBeforeInitializedVariables(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/classUsedBeforeInitializedVariables(target=es5).errors.txt rename tests/baselines/reference/{classUsedBeforeInitializedVariables.js => classUsedBeforeInitializedVariables(target=es5).js} (100%) create mode 100644 tests/baselines/reference/classUsedBeforeInitializedVariables(target=es5).symbols create mode 100644 tests/baselines/reference/classUsedBeforeInitializedVariables(target=es5).types create mode 100644 tests/baselines/reference/classWithOnlyPublicMembersEquivalentToInterface(target=es2015).js rename tests/baselines/reference/{classWithOnlyPublicMembersEquivalentToInterface.symbols => classWithOnlyPublicMembersEquivalentToInterface(target=es2015).symbols} (100%) rename tests/baselines/reference/{classWithOnlyPublicMembersEquivalentToInterface.types => classWithOnlyPublicMembersEquivalentToInterface(target=es2015).types} (100%) rename tests/baselines/reference/{classWithOnlyPublicMembersEquivalentToInterface.js => classWithOnlyPublicMembersEquivalentToInterface(target=es5).js} (100%) create mode 100644 tests/baselines/reference/classWithOnlyPublicMembersEquivalentToInterface(target=es5).symbols create mode 100644 tests/baselines/reference/classWithOnlyPublicMembersEquivalentToInterface(target=es5).types create mode 100644 tests/baselines/reference/classWithOnlyPublicMembersEquivalentToInterface2(target=es2015).js rename tests/baselines/reference/{classWithOnlyPublicMembersEquivalentToInterface2.symbols => classWithOnlyPublicMembersEquivalentToInterface2(target=es2015).symbols} (100%) rename tests/baselines/reference/{classWithOnlyPublicMembersEquivalentToInterface2.types => classWithOnlyPublicMembersEquivalentToInterface2(target=es2015).types} (100%) rename tests/baselines/reference/{classWithOnlyPublicMembersEquivalentToInterface2.js => classWithOnlyPublicMembersEquivalentToInterface2(target=es5).js} (100%) create mode 100644 tests/baselines/reference/classWithOnlyPublicMembersEquivalentToInterface2(target=es5).symbols create mode 100644 tests/baselines/reference/classWithOnlyPublicMembersEquivalentToInterface2(target=es5).types create mode 100644 tests/baselines/reference/classdecl(target=es2015).js rename tests/baselines/reference/{classdecl.symbols => classdecl(target=es2015).symbols} (100%) rename tests/baselines/reference/{classdecl.types => classdecl(target=es2015).types} (100%) rename tests/baselines/reference/{classdecl.js => classdecl(target=es5).js} (100%) create mode 100644 tests/baselines/reference/classdecl(target=es5).symbols create mode 100644 tests/baselines/reference/classdecl(target=es5).types create mode 100644 tests/baselines/reference/collisionSuperAndLocalFunctionInAccessors(target=es2015).js rename tests/baselines/reference/{collisionSuperAndLocalFunctionInAccessors.symbols => collisionSuperAndLocalFunctionInAccessors(target=es2015).symbols} (100%) rename tests/baselines/reference/{collisionSuperAndLocalFunctionInAccessors.types => collisionSuperAndLocalFunctionInAccessors(target=es2015).types} (100%) rename tests/baselines/reference/{collisionSuperAndLocalFunctionInAccessors.js => collisionSuperAndLocalFunctionInAccessors(target=es5).js} (100%) create mode 100644 tests/baselines/reference/collisionSuperAndLocalFunctionInAccessors(target=es5).symbols create mode 100644 tests/baselines/reference/collisionSuperAndLocalFunctionInAccessors(target=es5).types create mode 100644 tests/baselines/reference/collisionSuperAndLocalVarInAccessors(target=es2015).js rename tests/baselines/reference/{collisionSuperAndLocalVarInAccessors.symbols => collisionSuperAndLocalVarInAccessors(target=es2015).symbols} (100%) rename tests/baselines/reference/{collisionSuperAndLocalVarInAccessors.types => collisionSuperAndLocalVarInAccessors(target=es2015).types} (100%) rename tests/baselines/reference/{collisionSuperAndLocalVarInAccessors.js => collisionSuperAndLocalVarInAccessors(target=es5).js} (100%) create mode 100644 tests/baselines/reference/collisionSuperAndLocalVarInAccessors(target=es5).symbols create mode 100644 tests/baselines/reference/collisionSuperAndLocalVarInAccessors(target=es5).types create mode 100644 tests/baselines/reference/collisionSuperAndParameter(target=es2015).js rename tests/baselines/reference/{collisionSuperAndParameter.symbols => collisionSuperAndParameter(target=es2015).symbols} (100%) rename tests/baselines/reference/{collisionSuperAndParameter.types => collisionSuperAndParameter(target=es2015).types} (100%) rename tests/baselines/reference/{collisionSuperAndParameter.js => collisionSuperAndParameter(target=es5).js} (100%) create mode 100644 tests/baselines/reference/collisionSuperAndParameter(target=es5).symbols create mode 100644 tests/baselines/reference/collisionSuperAndParameter(target=es5).types create mode 100644 tests/baselines/reference/collisionThisExpressionAndLocalVarInAccessors(target=es2015).js rename tests/baselines/reference/{collisionThisExpressionAndLocalVarInAccessors.symbols => collisionThisExpressionAndLocalVarInAccessors(target=es2015).symbols} (100%) rename tests/baselines/reference/{collisionThisExpressionAndLocalVarInAccessors.types => collisionThisExpressionAndLocalVarInAccessors(target=es2015).types} (100%) rename tests/baselines/reference/{collisionThisExpressionAndLocalVarInAccessors.js => collisionThisExpressionAndLocalVarInAccessors(target=es5).js} (100%) create mode 100644 tests/baselines/reference/collisionThisExpressionAndLocalVarInAccessors(target=es5).symbols create mode 100644 tests/baselines/reference/collisionThisExpressionAndLocalVarInAccessors(target=es5).types create mode 100644 tests/baselines/reference/commentsClass(target=es2015).js rename tests/baselines/reference/{commentsClass.symbols => commentsClass(target=es2015).symbols} (100%) rename tests/baselines/reference/{commentsClass.types => commentsClass(target=es2015).types} (100%) rename tests/baselines/reference/{commentsClass.js => commentsClass(target=es5).js} (100%) create mode 100644 tests/baselines/reference/commentsClass(target=es5).symbols create mode 100644 tests/baselines/reference/commentsClass(target=es5).types create mode 100644 tests/baselines/reference/commentsClassMembers(target=es2015).js rename tests/baselines/reference/{commentsClassMembers.symbols => commentsClassMembers(target=es2015).symbols} (100%) rename tests/baselines/reference/{commentsClassMembers.types => commentsClassMembers(target=es2015).types} (100%) rename tests/baselines/reference/{commentsClassMembers.js => commentsClassMembers(target=es5).js} (100%) create mode 100644 tests/baselines/reference/commentsClassMembers(target=es5).symbols create mode 100644 tests/baselines/reference/commentsClassMembers(target=es5).types create mode 100644 tests/baselines/reference/commentsCommentParsing(target=es2015).js rename tests/baselines/reference/{commentsCommentParsing.symbols => commentsCommentParsing(target=es2015).symbols} (100%) rename tests/baselines/reference/{commentsCommentParsing.types => commentsCommentParsing(target=es2015).types} (100%) rename tests/baselines/reference/{commentsCommentParsing.js => commentsCommentParsing(target=es5).js} (100%) create mode 100644 tests/baselines/reference/commentsCommentParsing(target=es5).symbols create mode 100644 tests/baselines/reference/commentsCommentParsing(target=es5).types rename tests/baselines/reference/{commentsDottedModuleName.errors.txt => commentsDottedModuleName(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/commentsDottedModuleName(target=es2015).js rename tests/baselines/reference/{commentsDottedModuleName.symbols => commentsDottedModuleName(target=es2015).symbols} (100%) rename tests/baselines/reference/{commentsDottedModuleName.types => commentsDottedModuleName(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/commentsDottedModuleName(target=es5).errors.txt rename tests/baselines/reference/{commentsDottedModuleName.js => commentsDottedModuleName(target=es5).js} (100%) create mode 100644 tests/baselines/reference/commentsDottedModuleName(target=es5).symbols create mode 100644 tests/baselines/reference/commentsDottedModuleName(target=es5).types rename tests/baselines/reference/{commentsEnums.js => commentsEnums(target=es2015).js} (100%) rename tests/baselines/reference/{commentsEnums.symbols => commentsEnums(target=es2015).symbols} (100%) rename tests/baselines/reference/{commentsEnums.types => commentsEnums(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/commentsEnums(target=es5).js create mode 100644 tests/baselines/reference/commentsEnums(target=es5).symbols create mode 100644 tests/baselines/reference/commentsEnums(target=es5).types rename tests/baselines/reference/{commentsExternalModules.errors.txt => commentsExternalModules(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/commentsExternalModules(target=es2015).js rename tests/baselines/reference/{commentsExternalModules.symbols => commentsExternalModules(target=es2015).symbols} (100%) rename tests/baselines/reference/{commentsExternalModules.types => commentsExternalModules(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/commentsExternalModules(target=es5).errors.txt rename tests/baselines/reference/{commentsExternalModules.js => commentsExternalModules(target=es5).js} (100%) create mode 100644 tests/baselines/reference/commentsExternalModules(target=es5).symbols create mode 100644 tests/baselines/reference/commentsExternalModules(target=es5).types rename tests/baselines/reference/{commentsExternalModules2.errors.txt => commentsExternalModules2(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/commentsExternalModules2(target=es2015).js rename tests/baselines/reference/{commentsExternalModules2.symbols => commentsExternalModules2(target=es2015).symbols} (100%) rename tests/baselines/reference/{commentsExternalModules2.types => commentsExternalModules2(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/commentsExternalModules2(target=es5).errors.txt rename tests/baselines/reference/{commentsExternalModules2.js => commentsExternalModules2(target=es5).js} (100%) create mode 100644 tests/baselines/reference/commentsExternalModules2(target=es5).symbols create mode 100644 tests/baselines/reference/commentsExternalModules2(target=es5).types create mode 100644 tests/baselines/reference/commentsExternalModules3(target=es2015).js rename tests/baselines/reference/{commentsExternalModules3.symbols => commentsExternalModules3(target=es2015).symbols} (100%) rename tests/baselines/reference/{commentsExternalModules3.types => commentsExternalModules3(target=es2015).types} (100%) rename tests/baselines/reference/{commentsExternalModules3.js => commentsExternalModules3(target=es5).js} (100%) create mode 100644 tests/baselines/reference/commentsExternalModules3(target=es5).symbols create mode 100644 tests/baselines/reference/commentsExternalModules3(target=es5).types create mode 100644 tests/baselines/reference/commentsFormatting(target=es2015).js rename tests/baselines/reference/{commentsFormatting.symbols => commentsFormatting(target=es2015).symbols} (100%) rename tests/baselines/reference/{commentsFormatting.types => commentsFormatting(target=es2015).types} (100%) rename tests/baselines/reference/{commentsFormatting.js => commentsFormatting(target=es5).js} (100%) create mode 100644 tests/baselines/reference/commentsFormatting(target=es5).symbols create mode 100644 tests/baselines/reference/commentsFormatting(target=es5).types create mode 100644 tests/baselines/reference/commentsFunction(target=es2015).js rename tests/baselines/reference/{commentsFunction.symbols => commentsFunction(target=es2015).symbols} (100%) rename tests/baselines/reference/{commentsFunction.types => commentsFunction(target=es2015).types} (100%) rename tests/baselines/reference/{commentsFunction.js => commentsFunction(target=es5).js} (100%) create mode 100644 tests/baselines/reference/commentsFunction(target=es5).symbols create mode 100644 tests/baselines/reference/commentsFunction(target=es5).types create mode 100644 tests/baselines/reference/commentsInheritance(target=es2015).js rename tests/baselines/reference/{commentsInheritance.symbols => commentsInheritance(target=es2015).symbols} (100%) rename tests/baselines/reference/{commentsInheritance.types => commentsInheritance(target=es2015).types} (100%) rename tests/baselines/reference/{commentsInheritance.js => commentsInheritance(target=es5).js} (100%) create mode 100644 tests/baselines/reference/commentsInheritance(target=es5).symbols create mode 100644 tests/baselines/reference/commentsInheritance(target=es5).types create mode 100644 tests/baselines/reference/commentsInterface(target=es2015).js rename tests/baselines/reference/{commentsInterface.symbols => commentsInterface(target=es2015).symbols} (100%) rename tests/baselines/reference/{commentsInterface.types => commentsInterface(target=es2015).types} (100%) rename tests/baselines/reference/{commentsInterface.js => commentsInterface(target=es5).js} (100%) create mode 100644 tests/baselines/reference/commentsInterface(target=es5).symbols create mode 100644 tests/baselines/reference/commentsInterface(target=es5).types create mode 100644 tests/baselines/reference/commentsModules(target=es2015).js rename tests/baselines/reference/{commentsModules.symbols => commentsModules(target=es2015).symbols} (100%) rename tests/baselines/reference/{commentsModules.types => commentsModules(target=es2015).types} (100%) rename tests/baselines/reference/{commentsModules.js => commentsModules(target=es5).js} (100%) create mode 100644 tests/baselines/reference/commentsModules(target=es5).symbols create mode 100644 tests/baselines/reference/commentsModules(target=es5).types rename tests/baselines/reference/{commentsMultiModuleMultiFile.errors.txt => commentsMultiModuleMultiFile(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/commentsMultiModuleMultiFile(target=es2015).js rename tests/baselines/reference/{commentsMultiModuleMultiFile.symbols => commentsMultiModuleMultiFile(target=es2015).symbols} (100%) rename tests/baselines/reference/{commentsMultiModuleMultiFile.types => commentsMultiModuleMultiFile(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/commentsMultiModuleMultiFile(target=es5).errors.txt rename tests/baselines/reference/{commentsMultiModuleMultiFile.js => commentsMultiModuleMultiFile(target=es5).js} (100%) create mode 100644 tests/baselines/reference/commentsMultiModuleMultiFile(target=es5).symbols create mode 100644 tests/baselines/reference/commentsMultiModuleMultiFile(target=es5).types create mode 100644 tests/baselines/reference/commentsMultiModuleSingleFile(target=es2015).js rename tests/baselines/reference/{commentsMultiModuleSingleFile.symbols => commentsMultiModuleSingleFile(target=es2015).symbols} (100%) rename tests/baselines/reference/{commentsMultiModuleSingleFile.types => commentsMultiModuleSingleFile(target=es2015).types} (100%) rename tests/baselines/reference/{commentsMultiModuleSingleFile.js => commentsMultiModuleSingleFile(target=es5).js} (100%) create mode 100644 tests/baselines/reference/commentsMultiModuleSingleFile(target=es5).symbols create mode 100644 tests/baselines/reference/commentsMultiModuleSingleFile(target=es5).types create mode 100644 tests/baselines/reference/commentsOnObjectLiteral3(target=es2015).js rename tests/baselines/reference/{commentsOnObjectLiteral3.symbols => commentsOnObjectLiteral3(target=es2015).symbols} (100%) rename tests/baselines/reference/{commentsOnObjectLiteral3.types => commentsOnObjectLiteral3(target=es2015).types} (100%) rename tests/baselines/reference/{commentsOnObjectLiteral3.js => commentsOnObjectLiteral3(target=es5).js} (100%) create mode 100644 tests/baselines/reference/commentsOnObjectLiteral3(target=es5).symbols create mode 100644 tests/baselines/reference/commentsOnObjectLiteral3(target=es5).types rename tests/baselines/reference/{commentsOnObjectLiteral4.js => commentsOnObjectLiteral4(target=es2015).js} (100%) rename tests/baselines/reference/{commentsOnObjectLiteral4.symbols => commentsOnObjectLiteral4(target=es2015).symbols} (100%) rename tests/baselines/reference/{commentsOnObjectLiteral4.types => commentsOnObjectLiteral4(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/commentsOnObjectLiteral4(target=es5).js create mode 100644 tests/baselines/reference/commentsOnObjectLiteral4(target=es5).symbols create mode 100644 tests/baselines/reference/commentsOnObjectLiteral4(target=es5).types create mode 100644 tests/baselines/reference/commentsOnObjectLiteral5(target=es2015).js rename tests/baselines/reference/{commentsOnObjectLiteral5.symbols => commentsOnObjectLiteral5(target=es2015).symbols} (100%) rename tests/baselines/reference/{commentsOnObjectLiteral5.types => commentsOnObjectLiteral5(target=es2015).types} (100%) rename tests/baselines/reference/{commentsOnObjectLiteral5.js => commentsOnObjectLiteral5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/commentsOnObjectLiteral5(target=es5).symbols create mode 100644 tests/baselines/reference/commentsOnObjectLiteral5(target=es5).types rename tests/baselines/reference/{commentsOnRequireStatement.js => commentsOnRequireStatement(target=es2015).js} (100%) rename tests/baselines/reference/{commentsOnRequireStatement.symbols => commentsOnRequireStatement(target=es2015).symbols} (100%) rename tests/baselines/reference/{commentsOnRequireStatement.types => commentsOnRequireStatement(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/commentsOnRequireStatement(target=es5).js create mode 100644 tests/baselines/reference/commentsOnRequireStatement(target=es5).symbols create mode 100644 tests/baselines/reference/commentsOnRequireStatement(target=es5).types create mode 100644 tests/baselines/reference/commentsOverloads(target=es2015).js rename tests/baselines/reference/{commentsOverloads.symbols => commentsOverloads(target=es2015).symbols} (100%) rename tests/baselines/reference/{commentsOverloads.types => commentsOverloads(target=es2015).types} (100%) rename tests/baselines/reference/{commentsOverloads.js => commentsOverloads(target=es5).js} (100%) create mode 100644 tests/baselines/reference/commentsOverloads(target=es5).symbols create mode 100644 tests/baselines/reference/commentsOverloads(target=es5).types create mode 100644 tests/baselines/reference/commentsVarDecl(target=es2015).js rename tests/baselines/reference/{commentsVarDecl.symbols => commentsVarDecl(target=es2015).symbols} (100%) rename tests/baselines/reference/{commentsVarDecl.types => commentsVarDecl(target=es2015).types} (100%) rename tests/baselines/reference/{commentsVarDecl.js => commentsVarDecl(target=es5).js} (100%) create mode 100644 tests/baselines/reference/commentsVarDecl(target=es5).symbols create mode 100644 tests/baselines/reference/commentsVarDecl(target=es5).types create mode 100644 tests/baselines/reference/commentsdoNotEmitComments(target=es2015).js rename tests/baselines/reference/{commentsdoNotEmitComments.symbols => commentsdoNotEmitComments(target=es2015).symbols} (100%) rename tests/baselines/reference/{commentsdoNotEmitComments.types => commentsdoNotEmitComments(target=es2015).types} (100%) rename tests/baselines/reference/{commentsdoNotEmitComments.js => commentsdoNotEmitComments(target=es5).js} (100%) create mode 100644 tests/baselines/reference/commentsdoNotEmitComments(target=es5).symbols create mode 100644 tests/baselines/reference/commentsdoNotEmitComments(target=es5).types create mode 100644 tests/baselines/reference/commentsemitComments(target=es2015).js rename tests/baselines/reference/{commentsemitComments.symbols => commentsemitComments(target=es2015).symbols} (100%) rename tests/baselines/reference/{commentsemitComments.types => commentsemitComments(target=es2015).types} (100%) rename tests/baselines/reference/{commentsemitComments.js => commentsemitComments(target=es5).js} (100%) create mode 100644 tests/baselines/reference/commentsemitComments(target=es5).symbols create mode 100644 tests/baselines/reference/commentsemitComments(target=es5).types rename tests/baselines/reference/{commonJsExportTypeDeclarationError.errors.txt => commonJsExportTypeDeclarationError(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{commonJsExportTypeDeclarationError.js => commonJsExportTypeDeclarationError(target=es2015).js} (100%) rename tests/baselines/reference/{commonJsExportTypeDeclarationError.symbols => commonJsExportTypeDeclarationError(target=es2015).symbols} (100%) rename tests/baselines/reference/{commonJsExportTypeDeclarationError.types => commonJsExportTypeDeclarationError(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/commonJsExportTypeDeclarationError(target=es5).errors.txt create mode 100644 tests/baselines/reference/commonJsExportTypeDeclarationError(target=es5).js create mode 100644 tests/baselines/reference/commonJsExportTypeDeclarationError(target=es5).symbols create mode 100644 tests/baselines/reference/commonJsExportTypeDeclarationError(target=es5).types create mode 100644 tests/baselines/reference/commonjsSafeImport(target=es2015).js rename tests/baselines/reference/{commonjsSafeImport.symbols => commonjsSafeImport(target=es2015).symbols} (100%) rename tests/baselines/reference/{commonjsSafeImport.types => commonjsSafeImport(target=es2015).types} (100%) rename tests/baselines/reference/{commonjsSafeImport.js => commonjsSafeImport(target=es5).js} (100%) create mode 100644 tests/baselines/reference/commonjsSafeImport(target=es5).symbols create mode 100644 tests/baselines/reference/commonjsSafeImport(target=es5).types rename tests/baselines/reference/{complexClassRelationships.errors.txt => complexClassRelationships(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/complexClassRelationships(target=es2015).js rename tests/baselines/reference/{complexClassRelationships.symbols => complexClassRelationships(target=es2015).symbols} (100%) rename tests/baselines/reference/{complexClassRelationships.types => complexClassRelationships(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/complexClassRelationships(target=es5).errors.txt rename tests/baselines/reference/{complexClassRelationships.js => complexClassRelationships(target=es5).js} (100%) create mode 100644 tests/baselines/reference/complexClassRelationships(target=es5).symbols create mode 100644 tests/baselines/reference/complexClassRelationships(target=es5).types rename tests/baselines/reference/{complicatedPrivacy.errors.txt => complicatedPrivacy(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/complicatedPrivacy(target=es2015).js rename tests/baselines/reference/{complicatedPrivacy.symbols => complicatedPrivacy(target=es2015).symbols} (100%) rename tests/baselines/reference/{complicatedPrivacy.types => complicatedPrivacy(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/complicatedPrivacy(target=es5).errors.txt rename tests/baselines/reference/{complicatedPrivacy.js => complicatedPrivacy(target=es5).js} (100%) create mode 100644 tests/baselines/reference/complicatedPrivacy(target=es5).symbols create mode 100644 tests/baselines/reference/complicatedPrivacy(target=es5).types create mode 100644 tests/baselines/reference/computedPropertyNames10_ES5(target=es2015).js rename tests/baselines/reference/{computedPropertyNames10_ES5.symbols => computedPropertyNames10_ES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{computedPropertyNames10_ES5.types => computedPropertyNames10_ES5(target=es2015).types} (100%) rename tests/baselines/reference/{computedPropertyNames10_ES5.js => computedPropertyNames10_ES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames10_ES5(target=es5).symbols create mode 100644 tests/baselines/reference/computedPropertyNames10_ES5(target=es5).types create mode 100644 tests/baselines/reference/computedPropertyNames11_ES5(target=es2015).js rename tests/baselines/reference/{computedPropertyNames11_ES5.symbols => computedPropertyNames11_ES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{computedPropertyNames11_ES5.types => computedPropertyNames11_ES5(target=es2015).types} (100%) rename tests/baselines/reference/{computedPropertyNames11_ES5.js => computedPropertyNames11_ES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames11_ES5(target=es5).symbols create mode 100644 tests/baselines/reference/computedPropertyNames11_ES5(target=es5).types rename tests/baselines/reference/{computedPropertyNames12_ES5.errors.txt => computedPropertyNames12_ES5(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames12_ES5(target=es2015).js rename tests/baselines/reference/{computedPropertyNames12_ES5.symbols => computedPropertyNames12_ES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{computedPropertyNames12_ES5.types => computedPropertyNames12_ES5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames12_ES5(target=es5).errors.txt rename tests/baselines/reference/{computedPropertyNames12_ES5.js => computedPropertyNames12_ES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames12_ES5(target=es5).symbols create mode 100644 tests/baselines/reference/computedPropertyNames12_ES5(target=es5).types create mode 100644 tests/baselines/reference/computedPropertyNames13_ES5(target=es2015).js rename tests/baselines/reference/{computedPropertyNames13_ES5.symbols => computedPropertyNames13_ES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{computedPropertyNames13_ES5.types => computedPropertyNames13_ES5(target=es2015).types} (100%) rename tests/baselines/reference/{computedPropertyNames13_ES5.js => computedPropertyNames13_ES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames13_ES5(target=es5).symbols create mode 100644 tests/baselines/reference/computedPropertyNames13_ES5(target=es5).types rename tests/baselines/reference/{computedPropertyNames14_ES5.errors.txt => computedPropertyNames14_ES5(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames14_ES5(target=es2015).js rename tests/baselines/reference/{computedPropertyNames14_ES5.symbols => computedPropertyNames14_ES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{computedPropertyNames14_ES5.types => computedPropertyNames14_ES5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames14_ES5(target=es5).errors.txt rename tests/baselines/reference/{computedPropertyNames14_ES5.js => computedPropertyNames14_ES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames14_ES5(target=es5).symbols create mode 100644 tests/baselines/reference/computedPropertyNames14_ES5(target=es5).types rename tests/baselines/reference/{computedPropertyNames15_ES5.errors.txt => computedPropertyNames15_ES5(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames15_ES5(target=es2015).js rename tests/baselines/reference/{computedPropertyNames15_ES5.symbols => computedPropertyNames15_ES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{computedPropertyNames15_ES5.types => computedPropertyNames15_ES5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames15_ES5(target=es5).errors.txt rename tests/baselines/reference/{computedPropertyNames15_ES5.js => computedPropertyNames15_ES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames15_ES5(target=es5).symbols create mode 100644 tests/baselines/reference/computedPropertyNames15_ES5(target=es5).types create mode 100644 tests/baselines/reference/computedPropertyNames16_ES5(target=es2015).js rename tests/baselines/reference/{computedPropertyNames16_ES5.symbols => computedPropertyNames16_ES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{computedPropertyNames16_ES5.types => computedPropertyNames16_ES5(target=es2015).types} (100%) rename tests/baselines/reference/{computedPropertyNames16_ES5.js => computedPropertyNames16_ES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames16_ES5(target=es5).symbols create mode 100644 tests/baselines/reference/computedPropertyNames16_ES5(target=es5).types rename tests/baselines/reference/{computedPropertyNames17_ES5.errors.txt => computedPropertyNames17_ES5(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames17_ES5(target=es2015).js rename tests/baselines/reference/{computedPropertyNames17_ES5.symbols => computedPropertyNames17_ES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{computedPropertyNames17_ES5.types => computedPropertyNames17_ES5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames17_ES5(target=es5).errors.txt rename tests/baselines/reference/{computedPropertyNames17_ES5.js => computedPropertyNames17_ES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames17_ES5(target=es5).symbols create mode 100644 tests/baselines/reference/computedPropertyNames17_ES5(target=es5).types create mode 100644 tests/baselines/reference/computedPropertyNames18_ES5(target=es2015).js rename tests/baselines/reference/{computedPropertyNames18_ES5.symbols => computedPropertyNames18_ES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{computedPropertyNames18_ES5.types => computedPropertyNames18_ES5(target=es2015).types} (100%) rename tests/baselines/reference/{computedPropertyNames18_ES5.js => computedPropertyNames18_ES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames18_ES5(target=es5).symbols create mode 100644 tests/baselines/reference/computedPropertyNames18_ES5(target=es5).types rename tests/baselines/reference/{computedPropertyNames19_ES5.errors.txt => computedPropertyNames19_ES5(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames19_ES5(target=es2015).js rename tests/baselines/reference/{computedPropertyNames19_ES5.symbols => computedPropertyNames19_ES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{computedPropertyNames19_ES5.types => computedPropertyNames19_ES5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames19_ES5(target=es5).errors.txt rename tests/baselines/reference/{computedPropertyNames19_ES5.js => computedPropertyNames19_ES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames19_ES5(target=es5).symbols create mode 100644 tests/baselines/reference/computedPropertyNames19_ES5(target=es5).types create mode 100644 tests/baselines/reference/computedPropertyNames1_ES5(target=es2015).js rename tests/baselines/reference/{computedPropertyNames1_ES5.symbols => computedPropertyNames1_ES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{computedPropertyNames1_ES5.types => computedPropertyNames1_ES5(target=es2015).types} (100%) rename tests/baselines/reference/{computedPropertyNames1_ES5.js => computedPropertyNames1_ES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames1_ES5(target=es5).symbols create mode 100644 tests/baselines/reference/computedPropertyNames1_ES5(target=es5).types create mode 100644 tests/baselines/reference/computedPropertyNames20_ES5(target=es2015).js rename tests/baselines/reference/{computedPropertyNames20_ES5.symbols => computedPropertyNames20_ES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{computedPropertyNames20_ES5.types => computedPropertyNames20_ES5(target=es2015).types} (100%) rename tests/baselines/reference/{computedPropertyNames20_ES5.js => computedPropertyNames20_ES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames20_ES5(target=es5).symbols create mode 100644 tests/baselines/reference/computedPropertyNames20_ES5(target=es5).types rename tests/baselines/reference/{computedPropertyNames21_ES5.errors.txt => computedPropertyNames21_ES5(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames21_ES5(target=es2015).js rename tests/baselines/reference/{computedPropertyNames21_ES5.symbols => computedPropertyNames21_ES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{computedPropertyNames21_ES5.types => computedPropertyNames21_ES5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames21_ES5(target=es5).errors.txt rename tests/baselines/reference/{computedPropertyNames21_ES5.js => computedPropertyNames21_ES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames21_ES5(target=es5).symbols create mode 100644 tests/baselines/reference/computedPropertyNames21_ES5(target=es5).types create mode 100644 tests/baselines/reference/computedPropertyNames22_ES5(target=es2015).js rename tests/baselines/reference/{computedPropertyNames22_ES5.symbols => computedPropertyNames22_ES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{computedPropertyNames22_ES5.types => computedPropertyNames22_ES5(target=es2015).types} (100%) rename tests/baselines/reference/{computedPropertyNames22_ES5.js => computedPropertyNames22_ES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames22_ES5(target=es5).symbols create mode 100644 tests/baselines/reference/computedPropertyNames22_ES5(target=es5).types rename tests/baselines/reference/{computedPropertyNames23_ES5.errors.txt => computedPropertyNames23_ES5(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames23_ES5(target=es2015).js rename tests/baselines/reference/{computedPropertyNames23_ES5.symbols => computedPropertyNames23_ES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{computedPropertyNames23_ES5.types => computedPropertyNames23_ES5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames23_ES5(target=es5).errors.txt rename tests/baselines/reference/{computedPropertyNames23_ES5.js => computedPropertyNames23_ES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames23_ES5(target=es5).symbols create mode 100644 tests/baselines/reference/computedPropertyNames23_ES5(target=es5).types rename tests/baselines/reference/{computedPropertyNames24_ES5.errors.txt => computedPropertyNames24_ES5(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames24_ES5(target=es2015).js rename tests/baselines/reference/{computedPropertyNames24_ES5.symbols => computedPropertyNames24_ES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{computedPropertyNames24_ES5.types => computedPropertyNames24_ES5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames24_ES5(target=es5).errors.txt rename tests/baselines/reference/{computedPropertyNames24_ES5.js => computedPropertyNames24_ES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames24_ES5(target=es5).symbols create mode 100644 tests/baselines/reference/computedPropertyNames24_ES5(target=es5).types create mode 100644 tests/baselines/reference/computedPropertyNames25_ES5(target=es2015).js rename tests/baselines/reference/{computedPropertyNames25_ES5.symbols => computedPropertyNames25_ES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{computedPropertyNames25_ES5.types => computedPropertyNames25_ES5(target=es2015).types} (100%) rename tests/baselines/reference/{computedPropertyNames25_ES5.js => computedPropertyNames25_ES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames25_ES5(target=es5).symbols create mode 100644 tests/baselines/reference/computedPropertyNames25_ES5(target=es5).types rename tests/baselines/reference/{computedPropertyNames26_ES5.errors.txt => computedPropertyNames26_ES5(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames26_ES5(target=es2015).js rename tests/baselines/reference/{computedPropertyNames26_ES5.symbols => computedPropertyNames26_ES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{computedPropertyNames26_ES5.types => computedPropertyNames26_ES5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames26_ES5(target=es5).errors.txt rename tests/baselines/reference/{computedPropertyNames26_ES5.js => computedPropertyNames26_ES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames26_ES5(target=es5).symbols create mode 100644 tests/baselines/reference/computedPropertyNames26_ES5(target=es5).types rename tests/baselines/reference/{computedPropertyNames27_ES5.errors.txt => computedPropertyNames27_ES5(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames27_ES5(target=es2015).js rename tests/baselines/reference/{computedPropertyNames27_ES5.symbols => computedPropertyNames27_ES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{computedPropertyNames27_ES5.types => computedPropertyNames27_ES5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames27_ES5(target=es5).errors.txt rename tests/baselines/reference/{computedPropertyNames27_ES5.js => computedPropertyNames27_ES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames27_ES5(target=es5).symbols create mode 100644 tests/baselines/reference/computedPropertyNames27_ES5(target=es5).types create mode 100644 tests/baselines/reference/computedPropertyNames28_ES5(target=es2015).js rename tests/baselines/reference/{computedPropertyNames28_ES5.symbols => computedPropertyNames28_ES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{computedPropertyNames28_ES5.types => computedPropertyNames28_ES5(target=es2015).types} (100%) rename tests/baselines/reference/{computedPropertyNames28_ES5.js => computedPropertyNames28_ES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames28_ES5(target=es5).symbols create mode 100644 tests/baselines/reference/computedPropertyNames28_ES5(target=es5).types create mode 100644 tests/baselines/reference/computedPropertyNames29_ES5(target=es2015).js rename tests/baselines/reference/{computedPropertyNames29_ES5.symbols => computedPropertyNames29_ES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{computedPropertyNames29_ES5.types => computedPropertyNames29_ES5(target=es2015).types} (100%) rename tests/baselines/reference/{computedPropertyNames29_ES5.js => computedPropertyNames29_ES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames29_ES5(target=es5).symbols create mode 100644 tests/baselines/reference/computedPropertyNames29_ES5(target=es5).types rename tests/baselines/reference/{computedPropertyNames2_ES5.errors.txt => computedPropertyNames2_ES5(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames2_ES5(target=es2015).js rename tests/baselines/reference/{computedPropertyNames2_ES5.symbols => computedPropertyNames2_ES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{computedPropertyNames2_ES5.types => computedPropertyNames2_ES5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames2_ES5(target=es5).errors.txt rename tests/baselines/reference/{computedPropertyNames2_ES5.js => computedPropertyNames2_ES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames2_ES5(target=es5).symbols create mode 100644 tests/baselines/reference/computedPropertyNames2_ES5(target=es5).types rename tests/baselines/reference/{computedPropertyNames30_ES5.errors.txt => computedPropertyNames30_ES5(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames30_ES5(target=es2015).js rename tests/baselines/reference/{computedPropertyNames30_ES5.symbols => computedPropertyNames30_ES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{computedPropertyNames30_ES5.types => computedPropertyNames30_ES5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames30_ES5(target=es5).errors.txt rename tests/baselines/reference/{computedPropertyNames30_ES5.js => computedPropertyNames30_ES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames30_ES5(target=es5).symbols create mode 100644 tests/baselines/reference/computedPropertyNames30_ES5(target=es5).types create mode 100644 tests/baselines/reference/computedPropertyNames31_ES5(target=es2015).js rename tests/baselines/reference/{computedPropertyNames31_ES5.symbols => computedPropertyNames31_ES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{computedPropertyNames31_ES5.types => computedPropertyNames31_ES5(target=es2015).types} (100%) rename tests/baselines/reference/{computedPropertyNames31_ES5.js => computedPropertyNames31_ES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames31_ES5(target=es5).symbols create mode 100644 tests/baselines/reference/computedPropertyNames31_ES5(target=es5).types rename tests/baselines/reference/{computedPropertyNames32_ES5.errors.txt => computedPropertyNames32_ES5(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames32_ES5(target=es2015).js rename tests/baselines/reference/{computedPropertyNames32_ES5.symbols => computedPropertyNames32_ES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{computedPropertyNames32_ES5.types => computedPropertyNames32_ES5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames32_ES5(target=es5).errors.txt rename tests/baselines/reference/{computedPropertyNames32_ES5.js => computedPropertyNames32_ES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames32_ES5(target=es5).symbols create mode 100644 tests/baselines/reference/computedPropertyNames32_ES5(target=es5).types create mode 100644 tests/baselines/reference/computedPropertyNames33_ES5(target=es2015).js rename tests/baselines/reference/{computedPropertyNames33_ES5.symbols => computedPropertyNames33_ES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{computedPropertyNames33_ES5.types => computedPropertyNames33_ES5(target=es2015).types} (100%) rename tests/baselines/reference/{computedPropertyNames33_ES5.js => computedPropertyNames33_ES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames33_ES5(target=es5).symbols create mode 100644 tests/baselines/reference/computedPropertyNames33_ES5(target=es5).types rename tests/baselines/reference/{computedPropertyNames34_ES5.errors.txt => computedPropertyNames34_ES5(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames34_ES5(target=es2015).js rename tests/baselines/reference/{computedPropertyNames34_ES5.symbols => computedPropertyNames34_ES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{computedPropertyNames34_ES5.types => computedPropertyNames34_ES5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames34_ES5(target=es5).errors.txt rename tests/baselines/reference/{computedPropertyNames34_ES5.js => computedPropertyNames34_ES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames34_ES5(target=es5).symbols create mode 100644 tests/baselines/reference/computedPropertyNames34_ES5(target=es5).types rename tests/baselines/reference/{computedPropertyNames35_ES5.errors.txt => computedPropertyNames35_ES5(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{computedPropertyNames35_ES5.js => computedPropertyNames35_ES5(target=es2015).js} (100%) rename tests/baselines/reference/{computedPropertyNames35_ES5.symbols => computedPropertyNames35_ES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{computedPropertyNames35_ES5.types => computedPropertyNames35_ES5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames35_ES5(target=es5).errors.txt create mode 100644 tests/baselines/reference/computedPropertyNames35_ES5(target=es5).js create mode 100644 tests/baselines/reference/computedPropertyNames35_ES5(target=es5).symbols create mode 100644 tests/baselines/reference/computedPropertyNames35_ES5(target=es5).types rename tests/baselines/reference/{computedPropertyNames36_ES5.errors.txt => computedPropertyNames36_ES5(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames36_ES5(target=es2015).js rename tests/baselines/reference/{computedPropertyNames36_ES5.symbols => computedPropertyNames36_ES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{computedPropertyNames36_ES5.types => computedPropertyNames36_ES5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames36_ES5(target=es5).errors.txt rename tests/baselines/reference/{computedPropertyNames36_ES5.js => computedPropertyNames36_ES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames36_ES5(target=es5).symbols create mode 100644 tests/baselines/reference/computedPropertyNames36_ES5(target=es5).types create mode 100644 tests/baselines/reference/computedPropertyNames37_ES5(target=es2015).js rename tests/baselines/reference/{computedPropertyNames37_ES5.symbols => computedPropertyNames37_ES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{computedPropertyNames37_ES5.types => computedPropertyNames37_ES5(target=es2015).types} (100%) rename tests/baselines/reference/{computedPropertyNames37_ES5.js => computedPropertyNames37_ES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames37_ES5(target=es5).symbols create mode 100644 tests/baselines/reference/computedPropertyNames37_ES5(target=es5).types rename tests/baselines/reference/{computedPropertyNames38_ES5.errors.txt => computedPropertyNames38_ES5(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames38_ES5(target=es2015).js rename tests/baselines/reference/{computedPropertyNames38_ES5.symbols => computedPropertyNames38_ES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{computedPropertyNames38_ES5.types => computedPropertyNames38_ES5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames38_ES5(target=es5).errors.txt rename tests/baselines/reference/{computedPropertyNames38_ES5.js => computedPropertyNames38_ES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames38_ES5(target=es5).symbols create mode 100644 tests/baselines/reference/computedPropertyNames38_ES5(target=es5).types rename tests/baselines/reference/{computedPropertyNames39_ES5.errors.txt => computedPropertyNames39_ES5(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames39_ES5(target=es2015).js rename tests/baselines/reference/{computedPropertyNames39_ES5.symbols => computedPropertyNames39_ES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{computedPropertyNames39_ES5.types => computedPropertyNames39_ES5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames39_ES5(target=es5).errors.txt rename tests/baselines/reference/{computedPropertyNames39_ES5.js => computedPropertyNames39_ES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames39_ES5(target=es5).symbols create mode 100644 tests/baselines/reference/computedPropertyNames39_ES5(target=es5).types rename tests/baselines/reference/{computedPropertyNames3_ES5.errors.txt => computedPropertyNames3_ES5(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames3_ES5(target=es2015).js rename tests/baselines/reference/{computedPropertyNames3_ES5.symbols => computedPropertyNames3_ES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{computedPropertyNames3_ES5.types => computedPropertyNames3_ES5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames3_ES5(target=es5).errors.txt rename tests/baselines/reference/{computedPropertyNames3_ES5.js => computedPropertyNames3_ES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames3_ES5(target=es5).symbols create mode 100644 tests/baselines/reference/computedPropertyNames3_ES5(target=es5).types rename tests/baselines/reference/{computedPropertyNames40_ES5.errors.txt => computedPropertyNames40_ES5(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames40_ES5(target=es2015).js rename tests/baselines/reference/{computedPropertyNames40_ES5.symbols => computedPropertyNames40_ES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{computedPropertyNames40_ES5.types => computedPropertyNames40_ES5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames40_ES5(target=es5).errors.txt rename tests/baselines/reference/{computedPropertyNames40_ES5.js => computedPropertyNames40_ES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames40_ES5(target=es5).symbols create mode 100644 tests/baselines/reference/computedPropertyNames40_ES5(target=es5).types create mode 100644 tests/baselines/reference/computedPropertyNames41_ES5(target=es2015).js rename tests/baselines/reference/{computedPropertyNames41_ES5.symbols => computedPropertyNames41_ES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{computedPropertyNames41_ES5.types => computedPropertyNames41_ES5(target=es2015).types} (100%) rename tests/baselines/reference/{computedPropertyNames41_ES5.js => computedPropertyNames41_ES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames41_ES5(target=es5).symbols create mode 100644 tests/baselines/reference/computedPropertyNames41_ES5(target=es5).types rename tests/baselines/reference/{computedPropertyNames42_ES5.errors.txt => computedPropertyNames42_ES5(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames42_ES5(target=es2015).js rename tests/baselines/reference/{computedPropertyNames42_ES5.symbols => computedPropertyNames42_ES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{computedPropertyNames42_ES5.types => computedPropertyNames42_ES5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames42_ES5(target=es5).errors.txt rename tests/baselines/reference/{computedPropertyNames42_ES5.js => computedPropertyNames42_ES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames42_ES5(target=es5).symbols create mode 100644 tests/baselines/reference/computedPropertyNames42_ES5(target=es5).types rename tests/baselines/reference/{computedPropertyNames43_ES5.errors.txt => computedPropertyNames43_ES5(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames43_ES5(target=es2015).js rename tests/baselines/reference/{computedPropertyNames43_ES5.symbols => computedPropertyNames43_ES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{computedPropertyNames43_ES5.types => computedPropertyNames43_ES5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames43_ES5(target=es5).errors.txt rename tests/baselines/reference/{computedPropertyNames43_ES5.js => computedPropertyNames43_ES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames43_ES5(target=es5).symbols create mode 100644 tests/baselines/reference/computedPropertyNames43_ES5(target=es5).types rename tests/baselines/reference/{computedPropertyNames44_ES5.errors.txt => computedPropertyNames44_ES5(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames44_ES5(target=es2015).js rename tests/baselines/reference/{computedPropertyNames44_ES5.symbols => computedPropertyNames44_ES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{computedPropertyNames44_ES5.types => computedPropertyNames44_ES5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames44_ES5(target=es5).errors.txt rename tests/baselines/reference/{computedPropertyNames44_ES5.js => computedPropertyNames44_ES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames44_ES5(target=es5).symbols create mode 100644 tests/baselines/reference/computedPropertyNames44_ES5(target=es5).types rename tests/baselines/reference/{computedPropertyNames45_ES5.errors.txt => computedPropertyNames45_ES5(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames45_ES5(target=es2015).js rename tests/baselines/reference/{computedPropertyNames45_ES5.symbols => computedPropertyNames45_ES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{computedPropertyNames45_ES5.types => computedPropertyNames45_ES5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames45_ES5(target=es5).errors.txt rename tests/baselines/reference/{computedPropertyNames45_ES5.js => computedPropertyNames45_ES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames45_ES5(target=es5).symbols create mode 100644 tests/baselines/reference/computedPropertyNames45_ES5(target=es5).types rename tests/baselines/reference/{computedPropertyNames46_ES5.errors.txt => computedPropertyNames46_ES5(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames46_ES5(target=es2015).js rename tests/baselines/reference/{computedPropertyNames46_ES5.symbols => computedPropertyNames46_ES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{computedPropertyNames46_ES5.types => computedPropertyNames46_ES5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames46_ES5(target=es5).errors.txt rename tests/baselines/reference/{computedPropertyNames46_ES5.js => computedPropertyNames46_ES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames46_ES5(target=es5).symbols create mode 100644 tests/baselines/reference/computedPropertyNames46_ES5(target=es5).types create mode 100644 tests/baselines/reference/computedPropertyNames47_ES5(target=es2015).js rename tests/baselines/reference/{computedPropertyNames47_ES5.symbols => computedPropertyNames47_ES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{computedPropertyNames47_ES5.types => computedPropertyNames47_ES5(target=es2015).types} (100%) rename tests/baselines/reference/{computedPropertyNames47_ES5.js => computedPropertyNames47_ES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames47_ES5(target=es5).symbols create mode 100644 tests/baselines/reference/computedPropertyNames47_ES5(target=es5).types rename tests/baselines/reference/{computedPropertyNames48_ES5.errors.txt => computedPropertyNames48_ES5(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames48_ES5(target=es2015).js rename tests/baselines/reference/{computedPropertyNames48_ES5.symbols => computedPropertyNames48_ES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{computedPropertyNames48_ES5.types => computedPropertyNames48_ES5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames48_ES5(target=es5).errors.txt rename tests/baselines/reference/{computedPropertyNames48_ES5.js => computedPropertyNames48_ES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames48_ES5(target=es5).symbols create mode 100644 tests/baselines/reference/computedPropertyNames48_ES5(target=es5).types create mode 100644 tests/baselines/reference/computedPropertyNames4_ES5(target=es2015).js rename tests/baselines/reference/{computedPropertyNames4_ES5.symbols => computedPropertyNames4_ES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{computedPropertyNames4_ES5.types => computedPropertyNames4_ES5(target=es2015).types} (100%) rename tests/baselines/reference/{computedPropertyNames4_ES5.js => computedPropertyNames4_ES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames4_ES5(target=es5).symbols create mode 100644 tests/baselines/reference/computedPropertyNames4_ES5(target=es5).types rename tests/baselines/reference/{computedPropertyNames5_ES5.errors.txt => computedPropertyNames5_ES5(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames5_ES5(target=es2015).js rename tests/baselines/reference/{computedPropertyNames5_ES5.symbols => computedPropertyNames5_ES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{computedPropertyNames5_ES5.types => computedPropertyNames5_ES5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames5_ES5(target=es5).errors.txt rename tests/baselines/reference/{computedPropertyNames5_ES5.js => computedPropertyNames5_ES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames5_ES5(target=es5).symbols create mode 100644 tests/baselines/reference/computedPropertyNames5_ES5(target=es5).types rename tests/baselines/reference/{computedPropertyNames6_ES5.errors.txt => computedPropertyNames6_ES5(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames6_ES5(target=es2015).js rename tests/baselines/reference/{computedPropertyNames6_ES5.symbols => computedPropertyNames6_ES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{computedPropertyNames6_ES5.types => computedPropertyNames6_ES5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames6_ES5(target=es5).errors.txt rename tests/baselines/reference/{computedPropertyNames6_ES5.js => computedPropertyNames6_ES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames6_ES5(target=es5).symbols create mode 100644 tests/baselines/reference/computedPropertyNames6_ES5(target=es5).types create mode 100644 tests/baselines/reference/computedPropertyNames7_ES5(target=es2015).js rename tests/baselines/reference/{computedPropertyNames7_ES5.symbols => computedPropertyNames7_ES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{computedPropertyNames7_ES5.types => computedPropertyNames7_ES5(target=es2015).types} (100%) rename tests/baselines/reference/{computedPropertyNames7_ES5.js => computedPropertyNames7_ES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames7_ES5(target=es5).symbols create mode 100644 tests/baselines/reference/computedPropertyNames7_ES5(target=es5).types rename tests/baselines/reference/{computedPropertyNames8_ES5.errors.txt => computedPropertyNames8_ES5(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames8_ES5(target=es2015).js rename tests/baselines/reference/{computedPropertyNames8_ES5.symbols => computedPropertyNames8_ES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{computedPropertyNames8_ES5.types => computedPropertyNames8_ES5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames8_ES5(target=es5).errors.txt rename tests/baselines/reference/{computedPropertyNames8_ES5.js => computedPropertyNames8_ES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames8_ES5(target=es5).symbols create mode 100644 tests/baselines/reference/computedPropertyNames8_ES5(target=es5).types rename tests/baselines/reference/{computedPropertyNames9_ES5.errors.txt => computedPropertyNames9_ES5(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames9_ES5(target=es2015).js rename tests/baselines/reference/{computedPropertyNames9_ES5.symbols => computedPropertyNames9_ES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{computedPropertyNames9_ES5.types => computedPropertyNames9_ES5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames9_ES5(target=es5).errors.txt rename tests/baselines/reference/{computedPropertyNames9_ES5.js => computedPropertyNames9_ES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/computedPropertyNames9_ES5(target=es5).symbols create mode 100644 tests/baselines/reference/computedPropertyNames9_ES5(target=es5).types rename tests/baselines/reference/{computedPropertyNamesContextualType10_ES5.errors.txt => computedPropertyNamesContextualType10_ES5(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/computedPropertyNamesContextualType10_ES5(target=es2015).js rename tests/baselines/reference/{computedPropertyNamesContextualType10_ES5.symbols => computedPropertyNamesContextualType10_ES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{computedPropertyNamesContextualType10_ES5.types => computedPropertyNamesContextualType10_ES5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/computedPropertyNamesContextualType10_ES5(target=es5).errors.txt rename tests/baselines/reference/{computedPropertyNamesContextualType10_ES5.js => computedPropertyNamesContextualType10_ES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/computedPropertyNamesContextualType10_ES5(target=es5).symbols create mode 100644 tests/baselines/reference/computedPropertyNamesContextualType10_ES5(target=es5).types create mode 100644 tests/baselines/reference/computedPropertyNamesContextualType1_ES5(target=es2015).js rename tests/baselines/reference/{computedPropertyNamesContextualType1_ES5.symbols => computedPropertyNamesContextualType1_ES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{computedPropertyNamesContextualType1_ES5.types => computedPropertyNamesContextualType1_ES5(target=es2015).types} (100%) rename tests/baselines/reference/{computedPropertyNamesContextualType1_ES5.js => computedPropertyNamesContextualType1_ES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/computedPropertyNamesContextualType1_ES5(target=es5).symbols create mode 100644 tests/baselines/reference/computedPropertyNamesContextualType1_ES5(target=es5).types create mode 100644 tests/baselines/reference/computedPropertyNamesContextualType2_ES5(target=es2015).js rename tests/baselines/reference/{computedPropertyNamesContextualType2_ES5.symbols => computedPropertyNamesContextualType2_ES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{computedPropertyNamesContextualType2_ES5.types => computedPropertyNamesContextualType2_ES5(target=es2015).types} (100%) rename tests/baselines/reference/{computedPropertyNamesContextualType2_ES5.js => computedPropertyNamesContextualType2_ES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/computedPropertyNamesContextualType2_ES5(target=es5).symbols create mode 100644 tests/baselines/reference/computedPropertyNamesContextualType2_ES5(target=es5).types create mode 100644 tests/baselines/reference/computedPropertyNamesContextualType3_ES5(target=es2015).js rename tests/baselines/reference/{computedPropertyNamesContextualType3_ES5.symbols => computedPropertyNamesContextualType3_ES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{computedPropertyNamesContextualType3_ES5.types => computedPropertyNamesContextualType3_ES5(target=es2015).types} (100%) rename tests/baselines/reference/{computedPropertyNamesContextualType3_ES5.js => computedPropertyNamesContextualType3_ES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/computedPropertyNamesContextualType3_ES5(target=es5).symbols create mode 100644 tests/baselines/reference/computedPropertyNamesContextualType3_ES5(target=es5).types create mode 100644 tests/baselines/reference/computedPropertyNamesContextualType4_ES5(target=es2015).js rename tests/baselines/reference/{computedPropertyNamesContextualType4_ES5.symbols => computedPropertyNamesContextualType4_ES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{computedPropertyNamesContextualType4_ES5.types => computedPropertyNamesContextualType4_ES5(target=es2015).types} (100%) rename tests/baselines/reference/{computedPropertyNamesContextualType4_ES5.js => computedPropertyNamesContextualType4_ES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/computedPropertyNamesContextualType4_ES5(target=es5).symbols create mode 100644 tests/baselines/reference/computedPropertyNamesContextualType4_ES5(target=es5).types create mode 100644 tests/baselines/reference/computedPropertyNamesContextualType5_ES5(target=es2015).js rename tests/baselines/reference/{computedPropertyNamesContextualType5_ES5.symbols => computedPropertyNamesContextualType5_ES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{computedPropertyNamesContextualType5_ES5.types => computedPropertyNamesContextualType5_ES5(target=es2015).types} (100%) rename tests/baselines/reference/{computedPropertyNamesContextualType5_ES5.js => computedPropertyNamesContextualType5_ES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/computedPropertyNamesContextualType5_ES5(target=es5).symbols create mode 100644 tests/baselines/reference/computedPropertyNamesContextualType5_ES5(target=es5).types create mode 100644 tests/baselines/reference/computedPropertyNamesContextualType6_ES5(target=es2015).js rename tests/baselines/reference/{computedPropertyNamesContextualType6_ES5.symbols => computedPropertyNamesContextualType6_ES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{computedPropertyNamesContextualType6_ES5.types => computedPropertyNamesContextualType6_ES5(target=es2015).types} (100%) rename tests/baselines/reference/{computedPropertyNamesContextualType6_ES5.js => computedPropertyNamesContextualType6_ES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/computedPropertyNamesContextualType6_ES5(target=es5).symbols create mode 100644 tests/baselines/reference/computedPropertyNamesContextualType6_ES5(target=es5).types create mode 100644 tests/baselines/reference/computedPropertyNamesContextualType7_ES5(target=es2015).js rename tests/baselines/reference/{computedPropertyNamesContextualType7_ES5.symbols => computedPropertyNamesContextualType7_ES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{computedPropertyNamesContextualType7_ES5.types => computedPropertyNamesContextualType7_ES5(target=es2015).types} (100%) rename tests/baselines/reference/{computedPropertyNamesContextualType7_ES5.js => computedPropertyNamesContextualType7_ES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/computedPropertyNamesContextualType7_ES5(target=es5).symbols create mode 100644 tests/baselines/reference/computedPropertyNamesContextualType7_ES5(target=es5).types rename tests/baselines/reference/{computedPropertyNamesContextualType8_ES5.errors.txt => computedPropertyNamesContextualType8_ES5(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/computedPropertyNamesContextualType8_ES5(target=es2015).js rename tests/baselines/reference/{computedPropertyNamesContextualType8_ES5.symbols => computedPropertyNamesContextualType8_ES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{computedPropertyNamesContextualType8_ES5.types => computedPropertyNamesContextualType8_ES5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/computedPropertyNamesContextualType8_ES5(target=es5).errors.txt rename tests/baselines/reference/{computedPropertyNamesContextualType8_ES5.js => computedPropertyNamesContextualType8_ES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/computedPropertyNamesContextualType8_ES5(target=es5).symbols create mode 100644 tests/baselines/reference/computedPropertyNamesContextualType8_ES5(target=es5).types rename tests/baselines/reference/{computedPropertyNamesContextualType9_ES5.errors.txt => computedPropertyNamesContextualType9_ES5(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/computedPropertyNamesContextualType9_ES5(target=es2015).js rename tests/baselines/reference/{computedPropertyNamesContextualType9_ES5.symbols => computedPropertyNamesContextualType9_ES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{computedPropertyNamesContextualType9_ES5.types => computedPropertyNamesContextualType9_ES5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/computedPropertyNamesContextualType9_ES5(target=es5).errors.txt rename tests/baselines/reference/{computedPropertyNamesContextualType9_ES5.js => computedPropertyNamesContextualType9_ES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/computedPropertyNamesContextualType9_ES5(target=es5).symbols create mode 100644 tests/baselines/reference/computedPropertyNamesContextualType9_ES5(target=es5).types create mode 100644 tests/baselines/reference/computedPropertyNamesDeclarationEmit1_ES5(target=es2015).js rename tests/baselines/reference/{computedPropertyNamesDeclarationEmit1_ES5.symbols => computedPropertyNamesDeclarationEmit1_ES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{computedPropertyNamesDeclarationEmit1_ES5.types => computedPropertyNamesDeclarationEmit1_ES5(target=es2015).types} (100%) rename tests/baselines/reference/{computedPropertyNamesDeclarationEmit1_ES5.js => computedPropertyNamesDeclarationEmit1_ES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/computedPropertyNamesDeclarationEmit1_ES5(target=es5).symbols create mode 100644 tests/baselines/reference/computedPropertyNamesDeclarationEmit1_ES5(target=es5).types create mode 100644 tests/baselines/reference/computedPropertyNamesDeclarationEmit2_ES5(target=es2015).js rename tests/baselines/reference/{computedPropertyNamesDeclarationEmit2_ES5.symbols => computedPropertyNamesDeclarationEmit2_ES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{computedPropertyNamesDeclarationEmit2_ES5.types => computedPropertyNamesDeclarationEmit2_ES5(target=es2015).types} (100%) rename tests/baselines/reference/{computedPropertyNamesDeclarationEmit2_ES5.js => computedPropertyNamesDeclarationEmit2_ES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/computedPropertyNamesDeclarationEmit2_ES5(target=es5).symbols create mode 100644 tests/baselines/reference/computedPropertyNamesDeclarationEmit2_ES5(target=es5).types rename tests/baselines/reference/{computedPropertyNamesDeclarationEmit3_ES5.errors.txt => computedPropertyNamesDeclarationEmit3_ES5(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{computedPropertyNamesDeclarationEmit3_ES5.js => computedPropertyNamesDeclarationEmit3_ES5(target=es2015).js} (100%) rename tests/baselines/reference/{computedPropertyNamesDeclarationEmit3_ES5.symbols => computedPropertyNamesDeclarationEmit3_ES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{computedPropertyNamesDeclarationEmit3_ES5.types => computedPropertyNamesDeclarationEmit3_ES5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/computedPropertyNamesDeclarationEmit3_ES5(target=es5).errors.txt create mode 100644 tests/baselines/reference/computedPropertyNamesDeclarationEmit3_ES5(target=es5).js create mode 100644 tests/baselines/reference/computedPropertyNamesDeclarationEmit3_ES5(target=es5).symbols create mode 100644 tests/baselines/reference/computedPropertyNamesDeclarationEmit3_ES5(target=es5).types rename tests/baselines/reference/{computedPropertyNamesDeclarationEmit4_ES5.errors.txt => computedPropertyNamesDeclarationEmit4_ES5(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{computedPropertyNamesDeclarationEmit4_ES5.js => computedPropertyNamesDeclarationEmit4_ES5(target=es2015).js} (100%) rename tests/baselines/reference/{computedPropertyNamesDeclarationEmit4_ES5.symbols => computedPropertyNamesDeclarationEmit4_ES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{computedPropertyNamesDeclarationEmit4_ES5.types => computedPropertyNamesDeclarationEmit4_ES5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/computedPropertyNamesDeclarationEmit4_ES5(target=es5).errors.txt create mode 100644 tests/baselines/reference/computedPropertyNamesDeclarationEmit4_ES5(target=es5).js create mode 100644 tests/baselines/reference/computedPropertyNamesDeclarationEmit4_ES5(target=es5).symbols create mode 100644 tests/baselines/reference/computedPropertyNamesDeclarationEmit4_ES5(target=es5).types create mode 100644 tests/baselines/reference/computedPropertyNamesDeclarationEmit5_ES5(target=es2015).js rename tests/baselines/reference/{computedPropertyNamesDeclarationEmit5_ES5.symbols => computedPropertyNamesDeclarationEmit5_ES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{computedPropertyNamesDeclarationEmit5_ES5.types => computedPropertyNamesDeclarationEmit5_ES5(target=es2015).types} (100%) rename tests/baselines/reference/{computedPropertyNamesDeclarationEmit5_ES5.js => computedPropertyNamesDeclarationEmit5_ES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/computedPropertyNamesDeclarationEmit5_ES5(target=es5).symbols create mode 100644 tests/baselines/reference/computedPropertyNamesDeclarationEmit5_ES5(target=es5).types rename tests/baselines/reference/{computedPropertyNamesDeclarationEmit6_ES5.errors.txt => computedPropertyNamesDeclarationEmit6_ES5(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/computedPropertyNamesDeclarationEmit6_ES5(target=es2015).js rename tests/baselines/reference/{computedPropertyNamesDeclarationEmit6_ES5.symbols => computedPropertyNamesDeclarationEmit6_ES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{computedPropertyNamesDeclarationEmit6_ES5.types => computedPropertyNamesDeclarationEmit6_ES5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/computedPropertyNamesDeclarationEmit6_ES5(target=es5).errors.txt rename tests/baselines/reference/{computedPropertyNamesDeclarationEmit6_ES5.js => computedPropertyNamesDeclarationEmit6_ES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/computedPropertyNamesDeclarationEmit6_ES5(target=es5).symbols create mode 100644 tests/baselines/reference/computedPropertyNamesDeclarationEmit6_ES5(target=es5).types create mode 100644 tests/baselines/reference/computedPropertyNamesOnOverloads_ES5(target=es2015).js rename tests/baselines/reference/{computedPropertyNamesOnOverloads_ES5.symbols => computedPropertyNamesOnOverloads_ES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{computedPropertyNamesOnOverloads_ES5.types => computedPropertyNamesOnOverloads_ES5(target=es2015).types} (100%) rename tests/baselines/reference/{computedPropertyNamesOnOverloads_ES5.js => computedPropertyNamesOnOverloads_ES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/computedPropertyNamesOnOverloads_ES5(target=es5).symbols create mode 100644 tests/baselines/reference/computedPropertyNamesOnOverloads_ES5(target=es5).types create mode 100644 tests/baselines/reference/computedPropertyNamesSourceMap1_ES5(target=es2015).js create mode 100644 tests/baselines/reference/computedPropertyNamesSourceMap1_ES5(target=es2015).js.map create mode 100644 tests/baselines/reference/computedPropertyNamesSourceMap1_ES5(target=es2015).sourcemap.txt rename tests/baselines/reference/{computedPropertyNamesSourceMap1_ES5.symbols => computedPropertyNamesSourceMap1_ES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{computedPropertyNamesSourceMap1_ES5.types => computedPropertyNamesSourceMap1_ES5(target=es2015).types} (100%) rename tests/baselines/reference/{computedPropertyNamesSourceMap1_ES5.js => computedPropertyNamesSourceMap1_ES5(target=es5).js} (100%) rename tests/baselines/reference/{computedPropertyNamesSourceMap1_ES5.js.map => computedPropertyNamesSourceMap1_ES5(target=es5).js.map} (100%) rename tests/baselines/reference/{computedPropertyNamesSourceMap1_ES5.sourcemap.txt => computedPropertyNamesSourceMap1_ES5(target=es5).sourcemap.txt} (100%) create mode 100644 tests/baselines/reference/computedPropertyNamesSourceMap1_ES5(target=es5).symbols create mode 100644 tests/baselines/reference/computedPropertyNamesSourceMap1_ES5(target=es5).types create mode 100644 tests/baselines/reference/computedPropertyNamesSourceMap2_ES5(target=es2015).js create mode 100644 tests/baselines/reference/computedPropertyNamesSourceMap2_ES5(target=es2015).js.map create mode 100644 tests/baselines/reference/computedPropertyNamesSourceMap2_ES5(target=es2015).sourcemap.txt rename tests/baselines/reference/{computedPropertyNamesSourceMap2_ES5.symbols => computedPropertyNamesSourceMap2_ES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{computedPropertyNamesSourceMap2_ES5.types => computedPropertyNamesSourceMap2_ES5(target=es2015).types} (100%) rename tests/baselines/reference/{computedPropertyNamesSourceMap2_ES5.js => computedPropertyNamesSourceMap2_ES5(target=es5).js} (100%) rename tests/baselines/reference/{computedPropertyNamesSourceMap2_ES5.js.map => computedPropertyNamesSourceMap2_ES5(target=es5).js.map} (100%) rename tests/baselines/reference/{computedPropertyNamesSourceMap2_ES5.sourcemap.txt => computedPropertyNamesSourceMap2_ES5(target=es5).sourcemap.txt} (100%) create mode 100644 tests/baselines/reference/computedPropertyNamesSourceMap2_ES5(target=es5).symbols create mode 100644 tests/baselines/reference/computedPropertyNamesSourceMap2_ES5(target=es5).types create mode 100644 tests/baselines/reference/computerPropertiesInES5ShouldBeTransformed(target=es2015).js rename tests/baselines/reference/{computerPropertiesInES5ShouldBeTransformed.symbols => computerPropertiesInES5ShouldBeTransformed(target=es2015).symbols} (100%) rename tests/baselines/reference/{computerPropertiesInES5ShouldBeTransformed.types => computerPropertiesInES5ShouldBeTransformed(target=es2015).types} (100%) rename tests/baselines/reference/{computerPropertiesInES5ShouldBeTransformed.js => computerPropertiesInES5ShouldBeTransformed(target=es5).js} (100%) create mode 100644 tests/baselines/reference/computerPropertiesInES5ShouldBeTransformed(target=es5).symbols create mode 100644 tests/baselines/reference/computerPropertiesInES5ShouldBeTransformed(target=es5).types create mode 100644 tests/baselines/reference/constDeclarations-es5(target=es2015).js rename tests/baselines/reference/{constDeclarations-es5.symbols => constDeclarations-es5(target=es2015).symbols} (100%) rename tests/baselines/reference/{constDeclarations-es5.types => constDeclarations-es5(target=es2015).types} (100%) rename tests/baselines/reference/{constDeclarations-es5.js => constDeclarations-es5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/constDeclarations-es5(target=es5).symbols create mode 100644 tests/baselines/reference/constDeclarations-es5(target=es5).types create mode 100644 tests/baselines/reference/constructorWithSuperAndPrologue.es5(target=es2015).js rename tests/baselines/reference/{constructorWithSuperAndPrologue.es5.symbols => constructorWithSuperAndPrologue.es5(target=es2015).symbols} (100%) rename tests/baselines/reference/{constructorWithSuperAndPrologue.es5.types => constructorWithSuperAndPrologue.es5(target=es2015).types} (100%) rename tests/baselines/reference/{constructorWithSuperAndPrologue.es5.js => constructorWithSuperAndPrologue.es5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/constructorWithSuperAndPrologue.es5(target=es5).symbols create mode 100644 tests/baselines/reference/constructorWithSuperAndPrologue.es5(target=es5).types create mode 100644 tests/baselines/reference/contextualExpressionTypecheckingDoesntBlowStack(target=es2015).js rename tests/baselines/reference/{contextualExpressionTypecheckingDoesntBlowStack.symbols => contextualExpressionTypecheckingDoesntBlowStack(target=es2015).symbols} (100%) rename tests/baselines/reference/{contextualExpressionTypecheckingDoesntBlowStack.types => contextualExpressionTypecheckingDoesntBlowStack(target=es2015).types} (100%) rename tests/baselines/reference/{contextualExpressionTypecheckingDoesntBlowStack.js => contextualExpressionTypecheckingDoesntBlowStack(target=es5).js} (100%) create mode 100644 tests/baselines/reference/contextualExpressionTypecheckingDoesntBlowStack(target=es5).symbols create mode 100644 tests/baselines/reference/contextualExpressionTypecheckingDoesntBlowStack(target=es5).types create mode 100644 tests/baselines/reference/continueInLoopsWithCapturedBlockScopedBindings1(target=es2015).js rename tests/baselines/reference/{continueInLoopsWithCapturedBlockScopedBindings1.symbols => continueInLoopsWithCapturedBlockScopedBindings1(target=es2015).symbols} (100%) rename tests/baselines/reference/{continueInLoopsWithCapturedBlockScopedBindings1.types => continueInLoopsWithCapturedBlockScopedBindings1(target=es2015).types} (100%) rename tests/baselines/reference/{continueInLoopsWithCapturedBlockScopedBindings1.js => continueInLoopsWithCapturedBlockScopedBindings1(target=es5).js} (100%) create mode 100644 tests/baselines/reference/continueInLoopsWithCapturedBlockScopedBindings1(target=es5).symbols create mode 100644 tests/baselines/reference/continueInLoopsWithCapturedBlockScopedBindings1(target=es5).types create mode 100644 tests/baselines/reference/convertClassExpressionToFunctionFromObjectProperty1(target=es2015).js rename tests/baselines/reference/{convertClassExpressionToFunctionFromObjectProperty1.symbols => convertClassExpressionToFunctionFromObjectProperty1(target=es2015).symbols} (100%) rename tests/baselines/reference/{convertClassExpressionToFunctionFromObjectProperty1.types => convertClassExpressionToFunctionFromObjectProperty1(target=es2015).types} (100%) rename tests/baselines/reference/{convertClassExpressionToFunctionFromObjectProperty1.js => convertClassExpressionToFunctionFromObjectProperty1(target=es5).js} (100%) create mode 100644 tests/baselines/reference/convertClassExpressionToFunctionFromObjectProperty1(target=es5).symbols create mode 100644 tests/baselines/reference/convertClassExpressionToFunctionFromObjectProperty1(target=es5).types create mode 100644 tests/baselines/reference/convertClassExpressionToFunctionFromObjectProperty2(target=es2015).js rename tests/baselines/reference/{convertClassExpressionToFunctionFromObjectProperty2.symbols => convertClassExpressionToFunctionFromObjectProperty2(target=es2015).symbols} (100%) rename tests/baselines/reference/{convertClassExpressionToFunctionFromObjectProperty2.types => convertClassExpressionToFunctionFromObjectProperty2(target=es2015).types} (100%) rename tests/baselines/reference/{convertClassExpressionToFunctionFromObjectProperty2.js => convertClassExpressionToFunctionFromObjectProperty2(target=es5).js} (100%) create mode 100644 tests/baselines/reference/convertClassExpressionToFunctionFromObjectProperty2(target=es5).symbols create mode 100644 tests/baselines/reference/convertClassExpressionToFunctionFromObjectProperty2(target=es5).types create mode 100644 tests/baselines/reference/declFileAccessors(target=es2015).js rename tests/baselines/reference/{declFileAccessors.symbols => declFileAccessors(target=es2015).symbols} (100%) rename tests/baselines/reference/{declFileAccessors.types => declFileAccessors(target=es2015).types} (100%) rename tests/baselines/reference/{declFileAccessors.js => declFileAccessors(target=es5).js} (100%) create mode 100644 tests/baselines/reference/declFileAccessors(target=es5).symbols create mode 100644 tests/baselines/reference/declFileAccessors(target=es5).types rename tests/baselines/reference/{declFileCallSignatures.js => declFileCallSignatures(target=es2015).js} (100%) rename tests/baselines/reference/{declFileCallSignatures.symbols => declFileCallSignatures(target=es2015).symbols} (100%) rename tests/baselines/reference/{declFileCallSignatures.types => declFileCallSignatures(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/declFileCallSignatures(target=es5).js create mode 100644 tests/baselines/reference/declFileCallSignatures(target=es5).symbols create mode 100644 tests/baselines/reference/declFileCallSignatures(target=es5).types create mode 100644 tests/baselines/reference/declFileClassExtendsNull(target=es2015).js rename tests/baselines/reference/{declFileClassExtendsNull.symbols => declFileClassExtendsNull(target=es2015).symbols} (100%) rename tests/baselines/reference/{declFileClassExtendsNull.types => declFileClassExtendsNull(target=es2015).types} (100%) rename tests/baselines/reference/{declFileClassExtendsNull.js => declFileClassExtendsNull(target=es5).js} (100%) create mode 100644 tests/baselines/reference/declFileClassExtendsNull(target=es5).symbols create mode 100644 tests/baselines/reference/declFileClassExtendsNull(target=es5).types rename tests/baselines/reference/{declFileConstructSignatures.js => declFileConstructSignatures(target=es2015).js} (100%) rename tests/baselines/reference/{declFileConstructSignatures.symbols => declFileConstructSignatures(target=es2015).symbols} (100%) rename tests/baselines/reference/{declFileConstructSignatures.types => declFileConstructSignatures(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/declFileConstructSignatures(target=es5).js create mode 100644 tests/baselines/reference/declFileConstructSignatures(target=es5).symbols create mode 100644 tests/baselines/reference/declFileConstructSignatures(target=es5).types create mode 100644 tests/baselines/reference/declFileConstructors(target=es2015).js rename tests/baselines/reference/{declFileConstructors.symbols => declFileConstructors(target=es2015).symbols} (100%) rename tests/baselines/reference/{declFileConstructors.types => declFileConstructors(target=es2015).types} (100%) rename tests/baselines/reference/{declFileConstructors.js => declFileConstructors(target=es5).js} (100%) create mode 100644 tests/baselines/reference/declFileConstructors(target=es5).symbols create mode 100644 tests/baselines/reference/declFileConstructors(target=es5).types create mode 100644 tests/baselines/reference/declFileFunctions(target=es2015).js rename tests/baselines/reference/{declFileFunctions.symbols => declFileFunctions(target=es2015).symbols} (100%) rename tests/baselines/reference/{declFileFunctions.types => declFileFunctions(target=es2015).types} (100%) rename tests/baselines/reference/{declFileFunctions.js => declFileFunctions(target=es5).js} (100%) create mode 100644 tests/baselines/reference/declFileFunctions(target=es5).symbols create mode 100644 tests/baselines/reference/declFileFunctions(target=es5).types rename tests/baselines/reference/{declFileIndexSignatures.js => declFileIndexSignatures(target=es2015).js} (100%) rename tests/baselines/reference/{declFileIndexSignatures.symbols => declFileIndexSignatures(target=es2015).symbols} (100%) rename tests/baselines/reference/{declFileIndexSignatures.types => declFileIndexSignatures(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/declFileIndexSignatures(target=es5).js create mode 100644 tests/baselines/reference/declFileIndexSignatures(target=es5).symbols create mode 100644 tests/baselines/reference/declFileIndexSignatures(target=es5).types create mode 100644 tests/baselines/reference/declFileMethods(target=es2015).js rename tests/baselines/reference/{declFileMethods.symbols => declFileMethods(target=es2015).symbols} (100%) rename tests/baselines/reference/{declFileMethods.types => declFileMethods(target=es2015).types} (100%) rename tests/baselines/reference/{declFileMethods.js => declFileMethods(target=es5).js} (100%) create mode 100644 tests/baselines/reference/declFileMethods(target=es5).symbols create mode 100644 tests/baselines/reference/declFileMethods(target=es5).types rename tests/baselines/reference/{declFileObjectLiteralWithAccessors.js => declFileObjectLiteralWithAccessors(target=es2015).js} (100%) rename tests/baselines/reference/{declFileObjectLiteralWithAccessors.symbols => declFileObjectLiteralWithAccessors(target=es2015).symbols} (100%) rename tests/baselines/reference/{declFileObjectLiteralWithAccessors.types => declFileObjectLiteralWithAccessors(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/declFileObjectLiteralWithAccessors(target=es5).js create mode 100644 tests/baselines/reference/declFileObjectLiteralWithAccessors(target=es5).symbols create mode 100644 tests/baselines/reference/declFileObjectLiteralWithAccessors(target=es5).types rename tests/baselines/reference/{declFileObjectLiteralWithOnlyGetter.js => declFileObjectLiteralWithOnlyGetter(target=es2015).js} (100%) rename tests/baselines/reference/{declFileObjectLiteralWithOnlyGetter.symbols => declFileObjectLiteralWithOnlyGetter(target=es2015).symbols} (100%) rename tests/baselines/reference/{declFileObjectLiteralWithOnlyGetter.types => declFileObjectLiteralWithOnlyGetter(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/declFileObjectLiteralWithOnlyGetter(target=es5).js create mode 100644 tests/baselines/reference/declFileObjectLiteralWithOnlyGetter(target=es5).symbols create mode 100644 tests/baselines/reference/declFileObjectLiteralWithOnlyGetter(target=es5).types rename tests/baselines/reference/{declFileObjectLiteralWithOnlySetter.js => declFileObjectLiteralWithOnlySetter(target=es2015).js} (100%) rename tests/baselines/reference/{declFileObjectLiteralWithOnlySetter.symbols => declFileObjectLiteralWithOnlySetter(target=es2015).symbols} (100%) rename tests/baselines/reference/{declFileObjectLiteralWithOnlySetter.types => declFileObjectLiteralWithOnlySetter(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/declFileObjectLiteralWithOnlySetter(target=es5).js create mode 100644 tests/baselines/reference/declFileObjectLiteralWithOnlySetter(target=es5).symbols create mode 100644 tests/baselines/reference/declFileObjectLiteralWithOnlySetter(target=es5).types create mode 100644 tests/baselines/reference/declFilePrivateStatic(target=es2015).js rename tests/baselines/reference/{declFilePrivateStatic.symbols => declFilePrivateStatic(target=es2015).symbols} (100%) rename tests/baselines/reference/{declFilePrivateStatic.types => declFilePrivateStatic(target=es2015).types} (100%) rename tests/baselines/reference/{declFilePrivateStatic.js => declFilePrivateStatic(target=es5).js} (100%) create mode 100644 tests/baselines/reference/declFilePrivateStatic(target=es5).symbols create mode 100644 tests/baselines/reference/declFilePrivateStatic(target=es5).types create mode 100644 tests/baselines/reference/declFileTypeAnnotationArrayType(target=es2015).js rename tests/baselines/reference/{declFileTypeAnnotationArrayType.symbols => declFileTypeAnnotationArrayType(target=es2015).symbols} (100%) rename tests/baselines/reference/{declFileTypeAnnotationArrayType.types => declFileTypeAnnotationArrayType(target=es2015).types} (100%) rename tests/baselines/reference/{declFileTypeAnnotationArrayType.js => declFileTypeAnnotationArrayType(target=es5).js} (100%) create mode 100644 tests/baselines/reference/declFileTypeAnnotationArrayType(target=es5).symbols create mode 100644 tests/baselines/reference/declFileTypeAnnotationArrayType(target=es5).types rename tests/baselines/reference/{declFileTypeAnnotationBuiltInType.js => declFileTypeAnnotationBuiltInType(target=es2015).js} (100%) rename tests/baselines/reference/{declFileTypeAnnotationBuiltInType.symbols => declFileTypeAnnotationBuiltInType(target=es2015).symbols} (100%) rename tests/baselines/reference/{declFileTypeAnnotationBuiltInType.types => declFileTypeAnnotationBuiltInType(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/declFileTypeAnnotationBuiltInType(target=es5).js create mode 100644 tests/baselines/reference/declFileTypeAnnotationBuiltInType(target=es5).symbols create mode 100644 tests/baselines/reference/declFileTypeAnnotationBuiltInType(target=es5).types rename tests/baselines/reference/{declFileTypeAnnotationParenType.errors.txt => declFileTypeAnnotationParenType(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/declFileTypeAnnotationParenType(target=es2015).js rename tests/baselines/reference/{declFileTypeAnnotationParenType.symbols => declFileTypeAnnotationParenType(target=es2015).symbols} (100%) rename tests/baselines/reference/{declFileTypeAnnotationParenType.types => declFileTypeAnnotationParenType(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/declFileTypeAnnotationParenType(target=es5).errors.txt rename tests/baselines/reference/{declFileTypeAnnotationParenType.js => declFileTypeAnnotationParenType(target=es5).js} (100%) create mode 100644 tests/baselines/reference/declFileTypeAnnotationParenType(target=es5).symbols create mode 100644 tests/baselines/reference/declFileTypeAnnotationParenType(target=es5).types rename tests/baselines/reference/{declFileTypeAnnotationStringLiteral.js => declFileTypeAnnotationStringLiteral(target=es2015).js} (100%) rename tests/baselines/reference/{declFileTypeAnnotationStringLiteral.symbols => declFileTypeAnnotationStringLiteral(target=es2015).symbols} (100%) rename tests/baselines/reference/{declFileTypeAnnotationStringLiteral.types => declFileTypeAnnotationStringLiteral(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/declFileTypeAnnotationStringLiteral(target=es5).js create mode 100644 tests/baselines/reference/declFileTypeAnnotationStringLiteral(target=es5).symbols create mode 100644 tests/baselines/reference/declFileTypeAnnotationStringLiteral(target=es5).types create mode 100644 tests/baselines/reference/declFileTypeAnnotationTupleType(target=es2015).js rename tests/baselines/reference/{declFileTypeAnnotationTupleType.symbols => declFileTypeAnnotationTupleType(target=es2015).symbols} (100%) rename tests/baselines/reference/{declFileTypeAnnotationTupleType.types => declFileTypeAnnotationTupleType(target=es2015).types} (100%) rename tests/baselines/reference/{declFileTypeAnnotationTupleType.js => declFileTypeAnnotationTupleType(target=es5).js} (100%) create mode 100644 tests/baselines/reference/declFileTypeAnnotationTupleType(target=es5).symbols create mode 100644 tests/baselines/reference/declFileTypeAnnotationTupleType(target=es5).types create mode 100644 tests/baselines/reference/declFileTypeAnnotationTypeAlias(target=es2015).js rename tests/baselines/reference/{declFileTypeAnnotationTypeAlias.symbols => declFileTypeAnnotationTypeAlias(target=es2015).symbols} (100%) rename tests/baselines/reference/{declFileTypeAnnotationTypeAlias.types => declFileTypeAnnotationTypeAlias(target=es2015).types} (100%) rename tests/baselines/reference/{declFileTypeAnnotationTypeAlias.js => declFileTypeAnnotationTypeAlias(target=es5).js} (100%) create mode 100644 tests/baselines/reference/declFileTypeAnnotationTypeAlias(target=es5).symbols create mode 100644 tests/baselines/reference/declFileTypeAnnotationTypeAlias(target=es5).types create mode 100644 tests/baselines/reference/declFileTypeAnnotationTypeLiteral(target=es2015).js rename tests/baselines/reference/{declFileTypeAnnotationTypeLiteral.symbols => declFileTypeAnnotationTypeLiteral(target=es2015).symbols} (100%) rename tests/baselines/reference/{declFileTypeAnnotationTypeLiteral.types => declFileTypeAnnotationTypeLiteral(target=es2015).types} (100%) rename tests/baselines/reference/{declFileTypeAnnotationTypeLiteral.js => declFileTypeAnnotationTypeLiteral(target=es5).js} (100%) create mode 100644 tests/baselines/reference/declFileTypeAnnotationTypeLiteral(target=es5).symbols create mode 100644 tests/baselines/reference/declFileTypeAnnotationTypeLiteral(target=es5).types create mode 100644 tests/baselines/reference/declFileTypeAnnotationTypeQuery(target=es2015).js rename tests/baselines/reference/{declFileTypeAnnotationTypeQuery.symbols => declFileTypeAnnotationTypeQuery(target=es2015).symbols} (100%) rename tests/baselines/reference/{declFileTypeAnnotationTypeQuery.types => declFileTypeAnnotationTypeQuery(target=es2015).types} (100%) rename tests/baselines/reference/{declFileTypeAnnotationTypeQuery.js => declFileTypeAnnotationTypeQuery(target=es5).js} (100%) create mode 100644 tests/baselines/reference/declFileTypeAnnotationTypeQuery(target=es5).symbols create mode 100644 tests/baselines/reference/declFileTypeAnnotationTypeQuery(target=es5).types create mode 100644 tests/baselines/reference/declFileTypeAnnotationTypeReference(target=es2015).js rename tests/baselines/reference/{declFileTypeAnnotationTypeReference.symbols => declFileTypeAnnotationTypeReference(target=es2015).symbols} (100%) rename tests/baselines/reference/{declFileTypeAnnotationTypeReference.types => declFileTypeAnnotationTypeReference(target=es2015).types} (100%) rename tests/baselines/reference/{declFileTypeAnnotationTypeReference.js => declFileTypeAnnotationTypeReference(target=es5).js} (100%) create mode 100644 tests/baselines/reference/declFileTypeAnnotationTypeReference(target=es5).symbols create mode 100644 tests/baselines/reference/declFileTypeAnnotationTypeReference(target=es5).types create mode 100644 tests/baselines/reference/declFileTypeAnnotationUnionType(target=es2015).js rename tests/baselines/reference/{declFileTypeAnnotationUnionType.symbols => declFileTypeAnnotationUnionType(target=es2015).symbols} (100%) rename tests/baselines/reference/{declFileTypeAnnotationUnionType.types => declFileTypeAnnotationUnionType(target=es2015).types} (100%) rename tests/baselines/reference/{declFileTypeAnnotationUnionType.js => declFileTypeAnnotationUnionType(target=es5).js} (100%) create mode 100644 tests/baselines/reference/declFileTypeAnnotationUnionType(target=es5).symbols create mode 100644 tests/baselines/reference/declFileTypeAnnotationUnionType(target=es5).types create mode 100644 tests/baselines/reference/declFileTypeAnnotationVisibilityErrorAccessors(target=es2015).js rename tests/baselines/reference/{declFileTypeAnnotationVisibilityErrorAccessors.symbols => declFileTypeAnnotationVisibilityErrorAccessors(target=es2015).symbols} (100%) rename tests/baselines/reference/{declFileTypeAnnotationVisibilityErrorAccessors.types => declFileTypeAnnotationVisibilityErrorAccessors(target=es2015).types} (100%) rename tests/baselines/reference/{declFileTypeAnnotationVisibilityErrorAccessors.js => declFileTypeAnnotationVisibilityErrorAccessors(target=es5).js} (100%) create mode 100644 tests/baselines/reference/declFileTypeAnnotationVisibilityErrorAccessors(target=es5).symbols create mode 100644 tests/baselines/reference/declFileTypeAnnotationVisibilityErrorAccessors(target=es5).types create mode 100644 tests/baselines/reference/declFileTypeAnnotationVisibilityErrorParameterOfFunction(target=es2015).js rename tests/baselines/reference/{declFileTypeAnnotationVisibilityErrorParameterOfFunction.symbols => declFileTypeAnnotationVisibilityErrorParameterOfFunction(target=es2015).symbols} (100%) rename tests/baselines/reference/{declFileTypeAnnotationVisibilityErrorParameterOfFunction.types => declFileTypeAnnotationVisibilityErrorParameterOfFunction(target=es2015).types} (100%) rename tests/baselines/reference/{declFileTypeAnnotationVisibilityErrorParameterOfFunction.js => declFileTypeAnnotationVisibilityErrorParameterOfFunction(target=es5).js} (100%) create mode 100644 tests/baselines/reference/declFileTypeAnnotationVisibilityErrorParameterOfFunction(target=es5).symbols create mode 100644 tests/baselines/reference/declFileTypeAnnotationVisibilityErrorParameterOfFunction(target=es5).types create mode 100644 tests/baselines/reference/declFileTypeAnnotationVisibilityErrorReturnTypeOfFunction(target=es2015).js rename tests/baselines/reference/{declFileTypeAnnotationVisibilityErrorReturnTypeOfFunction.symbols => declFileTypeAnnotationVisibilityErrorReturnTypeOfFunction(target=es2015).symbols} (100%) rename tests/baselines/reference/{declFileTypeAnnotationVisibilityErrorReturnTypeOfFunction.types => declFileTypeAnnotationVisibilityErrorReturnTypeOfFunction(target=es2015).types} (100%) rename tests/baselines/reference/{declFileTypeAnnotationVisibilityErrorReturnTypeOfFunction.js => declFileTypeAnnotationVisibilityErrorReturnTypeOfFunction(target=es5).js} (100%) create mode 100644 tests/baselines/reference/declFileTypeAnnotationVisibilityErrorReturnTypeOfFunction(target=es5).symbols create mode 100644 tests/baselines/reference/declFileTypeAnnotationVisibilityErrorReturnTypeOfFunction(target=es5).types create mode 100644 tests/baselines/reference/declFileTypeAnnotationVisibilityErrorTypeAlias(target=es2015).js rename tests/baselines/reference/{declFileTypeAnnotationVisibilityErrorTypeAlias.symbols => declFileTypeAnnotationVisibilityErrorTypeAlias(target=es2015).symbols} (100%) rename tests/baselines/reference/{declFileTypeAnnotationVisibilityErrorTypeAlias.types => declFileTypeAnnotationVisibilityErrorTypeAlias(target=es2015).types} (100%) rename tests/baselines/reference/{declFileTypeAnnotationVisibilityErrorTypeAlias.js => declFileTypeAnnotationVisibilityErrorTypeAlias(target=es5).js} (100%) create mode 100644 tests/baselines/reference/declFileTypeAnnotationVisibilityErrorTypeAlias(target=es5).symbols create mode 100644 tests/baselines/reference/declFileTypeAnnotationVisibilityErrorTypeAlias(target=es5).types create mode 100644 tests/baselines/reference/declFileTypeAnnotationVisibilityErrorTypeLiteral(target=es2015).js rename tests/baselines/reference/{declFileTypeAnnotationVisibilityErrorTypeLiteral.symbols => declFileTypeAnnotationVisibilityErrorTypeLiteral(target=es2015).symbols} (100%) rename tests/baselines/reference/{declFileTypeAnnotationVisibilityErrorTypeLiteral.types => declFileTypeAnnotationVisibilityErrorTypeLiteral(target=es2015).types} (100%) rename tests/baselines/reference/{declFileTypeAnnotationVisibilityErrorTypeLiteral.js => declFileTypeAnnotationVisibilityErrorTypeLiteral(target=es5).js} (100%) create mode 100644 tests/baselines/reference/declFileTypeAnnotationVisibilityErrorTypeLiteral(target=es5).symbols create mode 100644 tests/baselines/reference/declFileTypeAnnotationVisibilityErrorTypeLiteral(target=es5).types create mode 100644 tests/baselines/reference/declFileTypeAnnotationVisibilityErrorVariableDeclaration(target=es2015).js rename tests/baselines/reference/{declFileTypeAnnotationVisibilityErrorVariableDeclaration.symbols => declFileTypeAnnotationVisibilityErrorVariableDeclaration(target=es2015).symbols} (100%) rename tests/baselines/reference/{declFileTypeAnnotationVisibilityErrorVariableDeclaration.types => declFileTypeAnnotationVisibilityErrorVariableDeclaration(target=es2015).types} (100%) rename tests/baselines/reference/{declFileTypeAnnotationVisibilityErrorVariableDeclaration.js => declFileTypeAnnotationVisibilityErrorVariableDeclaration(target=es5).js} (100%) create mode 100644 tests/baselines/reference/declFileTypeAnnotationVisibilityErrorVariableDeclaration(target=es5).symbols create mode 100644 tests/baselines/reference/declFileTypeAnnotationVisibilityErrorVariableDeclaration(target=es5).types create mode 100644 tests/baselines/reference/declarationEmitClassMemberNameConflict(target=es2015).js rename tests/baselines/reference/{declarationEmitClassMemberNameConflict.symbols => declarationEmitClassMemberNameConflict(target=es2015).symbols} (100%) rename tests/baselines/reference/{declarationEmitClassMemberNameConflict.types => declarationEmitClassMemberNameConflict(target=es2015).types} (100%) rename tests/baselines/reference/{declarationEmitClassMemberNameConflict.js => declarationEmitClassMemberNameConflict(target=es5).js} (100%) create mode 100644 tests/baselines/reference/declarationEmitClassMemberNameConflict(target=es5).symbols create mode 100644 tests/baselines/reference/declarationEmitClassMemberNameConflict(target=es5).types create mode 100644 tests/baselines/reference/declarationEmitClassMemberNameConflict2(target=es2015).js rename tests/baselines/reference/{declarationEmitClassMemberNameConflict2.symbols => declarationEmitClassMemberNameConflict2(target=es2015).symbols} (100%) rename tests/baselines/reference/{declarationEmitClassMemberNameConflict2.types => declarationEmitClassMemberNameConflict2(target=es2015).types} (100%) rename tests/baselines/reference/{declarationEmitClassMemberNameConflict2.js => declarationEmitClassMemberNameConflict2(target=es5).js} (100%) create mode 100644 tests/baselines/reference/declarationEmitClassMemberNameConflict2(target=es5).symbols create mode 100644 tests/baselines/reference/declarationEmitClassMemberNameConflict2(target=es5).types create mode 100644 tests/baselines/reference/declarationEmitClassPrivateConstructor(target=es2015).js rename tests/baselines/reference/{declarationEmitClassPrivateConstructor.symbols => declarationEmitClassPrivateConstructor(target=es2015).symbols} (100%) rename tests/baselines/reference/{declarationEmitClassPrivateConstructor.types => declarationEmitClassPrivateConstructor(target=es2015).types} (100%) rename tests/baselines/reference/{declarationEmitClassPrivateConstructor.js => declarationEmitClassPrivateConstructor(target=es5).js} (100%) create mode 100644 tests/baselines/reference/declarationEmitClassPrivateConstructor(target=es5).symbols create mode 100644 tests/baselines/reference/declarationEmitClassPrivateConstructor(target=es5).types create mode 100644 tests/baselines/reference/declarationEmitClassPrivateConstructor2(target=es2015).js rename tests/baselines/reference/{declarationEmitClassPrivateConstructor2.symbols => declarationEmitClassPrivateConstructor2(target=es2015).symbols} (100%) rename tests/baselines/reference/{declarationEmitClassPrivateConstructor2.types => declarationEmitClassPrivateConstructor2(target=es2015).types} (100%) rename tests/baselines/reference/{declarationEmitClassPrivateConstructor2.js => declarationEmitClassPrivateConstructor2(target=es5).js} (100%) create mode 100644 tests/baselines/reference/declarationEmitClassPrivateConstructor2(target=es5).symbols create mode 100644 tests/baselines/reference/declarationEmitClassPrivateConstructor2(target=es5).types create mode 100644 tests/baselines/reference/declarationEmitDetachedComment1(target=es2015).js rename tests/baselines/reference/{declarationEmitDetachedComment1.symbols => declarationEmitDetachedComment1(target=es2015).symbols} (100%) rename tests/baselines/reference/{declarationEmitDetachedComment1.types => declarationEmitDetachedComment1(target=es2015).types} (100%) rename tests/baselines/reference/{declarationEmitDetachedComment1.js => declarationEmitDetachedComment1(target=es5).js} (100%) create mode 100644 tests/baselines/reference/declarationEmitDetachedComment1(target=es5).symbols create mode 100644 tests/baselines/reference/declarationEmitDetachedComment1(target=es5).types create mode 100644 tests/baselines/reference/declarationEmitDetachedComment2(target=es2015).js rename tests/baselines/reference/{declarationEmitDetachedComment2.symbols => declarationEmitDetachedComment2(target=es2015).symbols} (100%) rename tests/baselines/reference/{declarationEmitDetachedComment2.types => declarationEmitDetachedComment2(target=es2015).types} (100%) rename tests/baselines/reference/{declarationEmitDetachedComment2.js => declarationEmitDetachedComment2(target=es5).js} (100%) create mode 100644 tests/baselines/reference/declarationEmitDetachedComment2(target=es5).symbols create mode 100644 tests/baselines/reference/declarationEmitDetachedComment2(target=es5).types create mode 100644 tests/baselines/reference/declarationEmitExportAssignment(target=es2015).js rename tests/baselines/reference/{declarationEmitExportAssignment.symbols => declarationEmitExportAssignment(target=es2015).symbols} (100%) rename tests/baselines/reference/{declarationEmitExportAssignment.types => declarationEmitExportAssignment(target=es2015).types} (100%) rename tests/baselines/reference/{declarationEmitExportAssignment.js => declarationEmitExportAssignment(target=es5).js} (100%) create mode 100644 tests/baselines/reference/declarationEmitExportAssignment(target=es5).symbols create mode 100644 tests/baselines/reference/declarationEmitExportAssignment(target=es5).types create mode 100644 tests/baselines/reference/declarationEmitExportDeclaration(target=es2015).js rename tests/baselines/reference/{declarationEmitExportDeclaration.symbols => declarationEmitExportDeclaration(target=es2015).symbols} (100%) rename tests/baselines/reference/{declarationEmitExportDeclaration.types => declarationEmitExportDeclaration(target=es2015).types} (100%) rename tests/baselines/reference/{declarationEmitExportDeclaration.js => declarationEmitExportDeclaration(target=es5).js} (100%) create mode 100644 tests/baselines/reference/declarationEmitExportDeclaration(target=es5).symbols create mode 100644 tests/baselines/reference/declarationEmitExportDeclaration(target=es5).types rename tests/baselines/reference/{declarationEmitModuleWithScopeMarker.js => declarationEmitModuleWithScopeMarker(target=es2015).js} (100%) rename tests/baselines/reference/{declarationEmitModuleWithScopeMarker.symbols => declarationEmitModuleWithScopeMarker(target=es2015).symbols} (100%) rename tests/baselines/reference/{declarationEmitModuleWithScopeMarker.types => declarationEmitModuleWithScopeMarker(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/declarationEmitModuleWithScopeMarker(target=es5).js create mode 100644 tests/baselines/reference/declarationEmitModuleWithScopeMarker(target=es5).symbols create mode 100644 tests/baselines/reference/declarationEmitModuleWithScopeMarker(target=es5).types rename tests/baselines/reference/{declarationEmitPrefersPathKindBasedOnBundling.errors.txt => declarationEmitPrefersPathKindBasedOnBundling(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/declarationEmitPrefersPathKindBasedOnBundling(target=es2015).js rename tests/baselines/reference/{declarationEmitPrefersPathKindBasedOnBundling.symbols => declarationEmitPrefersPathKindBasedOnBundling(target=es2015).symbols} (100%) rename tests/baselines/reference/{declarationEmitPrefersPathKindBasedOnBundling.types => declarationEmitPrefersPathKindBasedOnBundling(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/declarationEmitPrefersPathKindBasedOnBundling(target=es5).errors.txt rename tests/baselines/reference/{declarationEmitPrefersPathKindBasedOnBundling.js => declarationEmitPrefersPathKindBasedOnBundling(target=es5).js} (100%) create mode 100644 tests/baselines/reference/declarationEmitPrefersPathKindBasedOnBundling(target=es5).symbols create mode 100644 tests/baselines/reference/declarationEmitPrefersPathKindBasedOnBundling(target=es5).types rename tests/baselines/reference/{declarationEmitPrefersPathKindBasedOnBundling2.errors.txt => declarationEmitPrefersPathKindBasedOnBundling2(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{declarationEmitPrefersPathKindBasedOnBundling2.js => declarationEmitPrefersPathKindBasedOnBundling2(target=es2015).js} (100%) rename tests/baselines/reference/{declarationEmitPrefersPathKindBasedOnBundling2.symbols => declarationEmitPrefersPathKindBasedOnBundling2(target=es2015).symbols} (100%) rename tests/baselines/reference/{declarationEmitPrefersPathKindBasedOnBundling2.types => declarationEmitPrefersPathKindBasedOnBundling2(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/declarationEmitPrefersPathKindBasedOnBundling2(target=es5).errors.txt create mode 100644 tests/baselines/reference/declarationEmitPrefersPathKindBasedOnBundling2(target=es5).js create mode 100644 tests/baselines/reference/declarationEmitPrefersPathKindBasedOnBundling2(target=es5).symbols create mode 100644 tests/baselines/reference/declarationEmitPrefersPathKindBasedOnBundling2(target=es5).types create mode 100644 tests/baselines/reference/declarationEmitProtectedMembers(target=es2015).js rename tests/baselines/reference/{declarationEmitProtectedMembers.symbols => declarationEmitProtectedMembers(target=es2015).symbols} (100%) rename tests/baselines/reference/{declarationEmitProtectedMembers.types => declarationEmitProtectedMembers(target=es2015).types} (100%) rename tests/baselines/reference/{declarationEmitProtectedMembers.js => declarationEmitProtectedMembers(target=es5).js} (100%) create mode 100644 tests/baselines/reference/declarationEmitProtectedMembers(target=es5).symbols create mode 100644 tests/baselines/reference/declarationEmitProtectedMembers(target=es5).types create mode 100644 tests/baselines/reference/declarationEmitSymlinkPaths(target=es2015).js rename tests/baselines/reference/{declarationEmitSymlinkPaths.symbols => declarationEmitSymlinkPaths(target=es2015).symbols} (100%) rename tests/baselines/reference/{declarationEmitSymlinkPaths.types => declarationEmitSymlinkPaths(target=es2015).types} (100%) rename tests/baselines/reference/{declarationEmitSymlinkPaths.js => declarationEmitSymlinkPaths(target=es5).js} (100%) create mode 100644 tests/baselines/reference/declarationEmitSymlinkPaths(target=es5).symbols create mode 100644 tests/baselines/reference/declarationEmitSymlinkPaths(target=es5).types rename tests/baselines/reference/{declarationEmitUnknownImport.errors.txt => declarationEmitUnknownImport(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{declarationEmitUnknownImport.js => declarationEmitUnknownImport(target=es2015).js} (100%) rename tests/baselines/reference/{declarationEmitUnknownImport.symbols => declarationEmitUnknownImport(target=es2015).symbols} (100%) rename tests/baselines/reference/{declarationEmitUnknownImport.types => declarationEmitUnknownImport(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/declarationEmitUnknownImport(target=es5).errors.txt create mode 100644 tests/baselines/reference/declarationEmitUnknownImport(target=es5).js create mode 100644 tests/baselines/reference/declarationEmitUnknownImport(target=es5).symbols create mode 100644 tests/baselines/reference/declarationEmitUnknownImport(target=es5).types rename tests/baselines/reference/{declarationEmitUnknownImport2.errors.txt => declarationEmitUnknownImport2(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{declarationEmitUnknownImport2.js => declarationEmitUnknownImport2(target=es2015).js} (100%) rename tests/baselines/reference/{declarationEmitUnknownImport2.symbols => declarationEmitUnknownImport2(target=es2015).symbols} (100%) rename tests/baselines/reference/{declarationEmitUnknownImport2.types => declarationEmitUnknownImport2(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/declarationEmitUnknownImport2(target=es5).errors.txt create mode 100644 tests/baselines/reference/declarationEmitUnknownImport2(target=es5).js create mode 100644 tests/baselines/reference/declarationEmitUnknownImport2(target=es5).symbols create mode 100644 tests/baselines/reference/declarationEmitUnknownImport2(target=es5).types create mode 100644 tests/baselines/reference/declarationEmitUnnessesaryTypeReferenceNotAdded(target=es2015).js rename tests/baselines/reference/{declarationEmitUnnessesaryTypeReferenceNotAdded.symbols => declarationEmitUnnessesaryTypeReferenceNotAdded(target=es2015).symbols} (100%) rename tests/baselines/reference/{declarationEmitUnnessesaryTypeReferenceNotAdded.types => declarationEmitUnnessesaryTypeReferenceNotAdded(target=es2015).types} (100%) rename tests/baselines/reference/{declarationEmitUnnessesaryTypeReferenceNotAdded.js => declarationEmitUnnessesaryTypeReferenceNotAdded(target=es5).js} (100%) create mode 100644 tests/baselines/reference/declarationEmitUnnessesaryTypeReferenceNotAdded(target=es5).symbols create mode 100644 tests/baselines/reference/declarationEmitUnnessesaryTypeReferenceNotAdded(target=es5).types create mode 100644 tests/baselines/reference/declarationEmitWithDefaultAsComputedName(target=es2015).js rename tests/baselines/reference/{declarationEmitWithDefaultAsComputedName.symbols => declarationEmitWithDefaultAsComputedName(target=es2015).symbols} (100%) rename tests/baselines/reference/{declarationEmitWithDefaultAsComputedName.types => declarationEmitWithDefaultAsComputedName(target=es2015).types} (100%) rename tests/baselines/reference/{declarationEmitWithDefaultAsComputedName.js => declarationEmitWithDefaultAsComputedName(target=es5).js} (100%) create mode 100644 tests/baselines/reference/declarationEmitWithDefaultAsComputedName(target=es5).symbols create mode 100644 tests/baselines/reference/declarationEmitWithDefaultAsComputedName(target=es5).types create mode 100644 tests/baselines/reference/declarationEmitWithDefaultAsComputedName2(target=es2015).js rename tests/baselines/reference/{declarationEmitWithDefaultAsComputedName2.symbols => declarationEmitWithDefaultAsComputedName2(target=es2015).symbols} (100%) rename tests/baselines/reference/{declarationEmitWithDefaultAsComputedName2.types => declarationEmitWithDefaultAsComputedName2(target=es2015).types} (100%) rename tests/baselines/reference/{declarationEmitWithDefaultAsComputedName2.js => declarationEmitWithDefaultAsComputedName2(target=es5).js} (100%) create mode 100644 tests/baselines/reference/declarationEmitWithDefaultAsComputedName2(target=es5).symbols create mode 100644 tests/baselines/reference/declarationEmitWithDefaultAsComputedName2(target=es5).types create mode 100644 tests/baselines/reference/decoratedBlockScopedClass1(target=es2015).js rename tests/baselines/reference/{decoratedBlockScopedClass1.symbols => decoratedBlockScopedClass1(target=es2015).symbols} (100%) rename tests/baselines/reference/{decoratedBlockScopedClass1.types => decoratedBlockScopedClass1(target=es2015).types} (100%) rename tests/baselines/reference/{decoratedBlockScopedClass1.js => decoratedBlockScopedClass1(target=es5).js} (100%) create mode 100644 tests/baselines/reference/decoratedBlockScopedClass1(target=es5).symbols create mode 100644 tests/baselines/reference/decoratedBlockScopedClass1(target=es5).types create mode 100644 tests/baselines/reference/decoratedBlockScopedClass2(target=es2015).js rename tests/baselines/reference/{decoratedBlockScopedClass2.symbols => decoratedBlockScopedClass2(target=es2015).symbols} (100%) rename tests/baselines/reference/{decoratedBlockScopedClass2.types => decoratedBlockScopedClass2(target=es2015).types} (100%) rename tests/baselines/reference/{decoratedBlockScopedClass2.js => decoratedBlockScopedClass2(target=es5).js} (100%) create mode 100644 tests/baselines/reference/decoratedBlockScopedClass2(target=es5).symbols create mode 100644 tests/baselines/reference/decoratedBlockScopedClass2(target=es5).types create mode 100644 tests/baselines/reference/decoratedBlockScopedClass3(target=es2015).js rename tests/baselines/reference/{decoratedBlockScopedClass3.symbols => decoratedBlockScopedClass3(target=es2015).symbols} (100%) rename tests/baselines/reference/{decoratedBlockScopedClass3.types => decoratedBlockScopedClass3(target=es2015).types} (100%) rename tests/baselines/reference/{decoratedBlockScopedClass3.js => decoratedBlockScopedClass3(target=es5).js} (100%) create mode 100644 tests/baselines/reference/decoratedBlockScopedClass3(target=es5).symbols create mode 100644 tests/baselines/reference/decoratedBlockScopedClass3(target=es5).types rename tests/baselines/reference/{decoratorChecksFunctionBodies.errors.txt => decoratorChecksFunctionBodies(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/decoratorChecksFunctionBodies(target=es2015).js rename tests/baselines/reference/{decoratorChecksFunctionBodies.symbols => decoratorChecksFunctionBodies(target=es2015).symbols} (100%) rename tests/baselines/reference/{decoratorChecksFunctionBodies.types => decoratorChecksFunctionBodies(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/decoratorChecksFunctionBodies(target=es5).errors.txt rename tests/baselines/reference/{decoratorChecksFunctionBodies.js => decoratorChecksFunctionBodies(target=es5).js} (100%) create mode 100644 tests/baselines/reference/decoratorChecksFunctionBodies(target=es5).symbols create mode 100644 tests/baselines/reference/decoratorChecksFunctionBodies(target=es5).types create mode 100644 tests/baselines/reference/decoratorInstantiateModulesInFunctionBodies(target=es2015).js rename tests/baselines/reference/{decoratorInstantiateModulesInFunctionBodies.symbols => decoratorInstantiateModulesInFunctionBodies(target=es2015).symbols} (100%) rename tests/baselines/reference/{decoratorInstantiateModulesInFunctionBodies.types => decoratorInstantiateModulesInFunctionBodies(target=es2015).types} (100%) rename tests/baselines/reference/{decoratorInstantiateModulesInFunctionBodies.js => decoratorInstantiateModulesInFunctionBodies(target=es5).js} (100%) create mode 100644 tests/baselines/reference/decoratorInstantiateModulesInFunctionBodies(target=es5).symbols create mode 100644 tests/baselines/reference/decoratorInstantiateModulesInFunctionBodies(target=es5).types create mode 100644 tests/baselines/reference/decoratorMetadata(target=es2015).js rename tests/baselines/reference/{decoratorMetadata.symbols => decoratorMetadata(target=es2015).symbols} (100%) rename tests/baselines/reference/{decoratorMetadata.types => decoratorMetadata(target=es2015).types} (100%) rename tests/baselines/reference/{decoratorMetadata.js => decoratorMetadata(target=es5).js} (100%) create mode 100644 tests/baselines/reference/decoratorMetadata(target=es5).symbols create mode 100644 tests/baselines/reference/decoratorMetadata(target=es5).types rename tests/baselines/reference/{decoratorMetadata-jsdoc.errors.txt => decoratorMetadata-jsdoc(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/decoratorMetadata-jsdoc(target=es2015).js rename tests/baselines/reference/{decoratorMetadata-jsdoc.symbols => decoratorMetadata-jsdoc(target=es2015).symbols} (100%) rename tests/baselines/reference/{decoratorMetadata-jsdoc.types => decoratorMetadata-jsdoc(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/decoratorMetadata-jsdoc(target=es5).errors.txt rename tests/baselines/reference/{decoratorMetadata-jsdoc.js => decoratorMetadata-jsdoc(target=es5).js} (100%) create mode 100644 tests/baselines/reference/decoratorMetadata-jsdoc(target=es5).symbols create mode 100644 tests/baselines/reference/decoratorMetadata-jsdoc(target=es5).types create mode 100644 tests/baselines/reference/decoratorMetadataForMethodWithNoReturnTypeAnnotation01(target=es2015).js rename tests/baselines/reference/{decoratorMetadataForMethodWithNoReturnTypeAnnotation01.symbols => decoratorMetadataForMethodWithNoReturnTypeAnnotation01(target=es2015).symbols} (100%) rename tests/baselines/reference/{decoratorMetadataForMethodWithNoReturnTypeAnnotation01.types => decoratorMetadataForMethodWithNoReturnTypeAnnotation01(target=es2015).types} (100%) rename tests/baselines/reference/{decoratorMetadataForMethodWithNoReturnTypeAnnotation01.js => decoratorMetadataForMethodWithNoReturnTypeAnnotation01(target=es5).js} (100%) create mode 100644 tests/baselines/reference/decoratorMetadataForMethodWithNoReturnTypeAnnotation01(target=es5).symbols create mode 100644 tests/baselines/reference/decoratorMetadataForMethodWithNoReturnTypeAnnotation01(target=es5).types create mode 100644 tests/baselines/reference/decoratorMetadataOnInferredType(target=es2015).js rename tests/baselines/reference/{decoratorMetadataOnInferredType.symbols => decoratorMetadataOnInferredType(target=es2015).symbols} (100%) rename tests/baselines/reference/{decoratorMetadataOnInferredType.types => decoratorMetadataOnInferredType(target=es2015).types} (100%) rename tests/baselines/reference/{decoratorMetadataOnInferredType.js => decoratorMetadataOnInferredType(target=es5).js} (100%) create mode 100644 tests/baselines/reference/decoratorMetadataOnInferredType(target=es5).symbols create mode 100644 tests/baselines/reference/decoratorMetadataOnInferredType(target=es5).types create mode 100644 tests/baselines/reference/decoratorMetadataRestParameterWithImportedType(target=es2015).js rename tests/baselines/reference/{decoratorMetadataRestParameterWithImportedType.symbols => decoratorMetadataRestParameterWithImportedType(target=es2015).symbols} (100%) rename tests/baselines/reference/{decoratorMetadataRestParameterWithImportedType.types => decoratorMetadataRestParameterWithImportedType(target=es2015).types} (100%) rename tests/baselines/reference/{decoratorMetadataRestParameterWithImportedType.js => decoratorMetadataRestParameterWithImportedType(target=es5).js} (100%) create mode 100644 tests/baselines/reference/decoratorMetadataRestParameterWithImportedType(target=es5).symbols create mode 100644 tests/baselines/reference/decoratorMetadataRestParameterWithImportedType(target=es5).types create mode 100644 tests/baselines/reference/decoratorMetadataWithConstructorType(target=es2015).js rename tests/baselines/reference/{decoratorMetadataWithConstructorType.symbols => decoratorMetadataWithConstructorType(target=es2015).symbols} (100%) rename tests/baselines/reference/{decoratorMetadataWithConstructorType.types => decoratorMetadataWithConstructorType(target=es2015).types} (100%) rename tests/baselines/reference/{decoratorMetadataWithConstructorType.js => decoratorMetadataWithConstructorType(target=es5).js} (100%) create mode 100644 tests/baselines/reference/decoratorMetadataWithConstructorType(target=es5).symbols create mode 100644 tests/baselines/reference/decoratorMetadataWithConstructorType(target=es5).types create mode 100644 tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision(target=es2015).js rename tests/baselines/reference/{decoratorMetadataWithImportDeclarationNameCollision.symbols => decoratorMetadataWithImportDeclarationNameCollision(target=es2015).symbols} (100%) rename tests/baselines/reference/{decoratorMetadataWithImportDeclarationNameCollision.types => decoratorMetadataWithImportDeclarationNameCollision(target=es2015).types} (100%) rename tests/baselines/reference/{decoratorMetadataWithImportDeclarationNameCollision.js => decoratorMetadataWithImportDeclarationNameCollision(target=es5).js} (100%) create mode 100644 tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision(target=es5).symbols create mode 100644 tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision(target=es5).types create mode 100644 tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision2(target=es2015).js rename tests/baselines/reference/{decoratorMetadataWithImportDeclarationNameCollision2.symbols => decoratorMetadataWithImportDeclarationNameCollision2(target=es2015).symbols} (100%) rename tests/baselines/reference/{decoratorMetadataWithImportDeclarationNameCollision2.types => decoratorMetadataWithImportDeclarationNameCollision2(target=es2015).types} (100%) rename tests/baselines/reference/{decoratorMetadataWithImportDeclarationNameCollision2.js => decoratorMetadataWithImportDeclarationNameCollision2(target=es5).js} (100%) create mode 100644 tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision2(target=es5).symbols create mode 100644 tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision2(target=es5).types create mode 100644 tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision3(target=es2015).js rename tests/baselines/reference/{decoratorMetadataWithImportDeclarationNameCollision3.symbols => decoratorMetadataWithImportDeclarationNameCollision3(target=es2015).symbols} (100%) rename tests/baselines/reference/{decoratorMetadataWithImportDeclarationNameCollision3.types => decoratorMetadataWithImportDeclarationNameCollision3(target=es2015).types} (100%) rename tests/baselines/reference/{decoratorMetadataWithImportDeclarationNameCollision3.js => decoratorMetadataWithImportDeclarationNameCollision3(target=es5).js} (100%) create mode 100644 tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision3(target=es5).symbols create mode 100644 tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision3(target=es5).types rename tests/baselines/reference/{decoratorMetadataWithImportDeclarationNameCollision4.errors.txt => decoratorMetadataWithImportDeclarationNameCollision4(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision4(target=es2015).js rename tests/baselines/reference/{decoratorMetadataWithImportDeclarationNameCollision4.symbols => decoratorMetadataWithImportDeclarationNameCollision4(target=es2015).symbols} (100%) rename tests/baselines/reference/{decoratorMetadataWithImportDeclarationNameCollision4.types => decoratorMetadataWithImportDeclarationNameCollision4(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision4(target=es5).errors.txt rename tests/baselines/reference/{decoratorMetadataWithImportDeclarationNameCollision4.js => decoratorMetadataWithImportDeclarationNameCollision4(target=es5).js} (100%) create mode 100644 tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision4(target=es5).symbols create mode 100644 tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision4(target=es5).types create mode 100644 tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision5(target=es2015).js rename tests/baselines/reference/{decoratorMetadataWithImportDeclarationNameCollision5.symbols => decoratorMetadataWithImportDeclarationNameCollision5(target=es2015).symbols} (100%) rename tests/baselines/reference/{decoratorMetadataWithImportDeclarationNameCollision5.types => decoratorMetadataWithImportDeclarationNameCollision5(target=es2015).types} (100%) rename tests/baselines/reference/{decoratorMetadataWithImportDeclarationNameCollision5.js => decoratorMetadataWithImportDeclarationNameCollision5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision5(target=es5).symbols create mode 100644 tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision5(target=es5).types create mode 100644 tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision6(target=es2015).js rename tests/baselines/reference/{decoratorMetadataWithImportDeclarationNameCollision6.symbols => decoratorMetadataWithImportDeclarationNameCollision6(target=es2015).symbols} (100%) rename tests/baselines/reference/{decoratorMetadataWithImportDeclarationNameCollision6.types => decoratorMetadataWithImportDeclarationNameCollision6(target=es2015).types} (100%) rename tests/baselines/reference/{decoratorMetadataWithImportDeclarationNameCollision6.js => decoratorMetadataWithImportDeclarationNameCollision6(target=es5).js} (100%) create mode 100644 tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision6(target=es5).symbols create mode 100644 tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision6(target=es5).types rename tests/baselines/reference/{decoratorMetadataWithImportDeclarationNameCollision7.errors.txt => decoratorMetadataWithImportDeclarationNameCollision7(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision7(target=es2015).js rename tests/baselines/reference/{decoratorMetadataWithImportDeclarationNameCollision7.symbols => decoratorMetadataWithImportDeclarationNameCollision7(target=es2015).symbols} (100%) rename tests/baselines/reference/{decoratorMetadataWithImportDeclarationNameCollision7.types => decoratorMetadataWithImportDeclarationNameCollision7(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision7(target=es5).errors.txt rename tests/baselines/reference/{decoratorMetadataWithImportDeclarationNameCollision7.js => decoratorMetadataWithImportDeclarationNameCollision7(target=es5).js} (100%) create mode 100644 tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision7(target=es5).symbols create mode 100644 tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision7(target=es5).types create mode 100644 tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision8(target=es2015).js rename tests/baselines/reference/{decoratorMetadataWithImportDeclarationNameCollision8.symbols => decoratorMetadataWithImportDeclarationNameCollision8(target=es2015).symbols} (100%) rename tests/baselines/reference/{decoratorMetadataWithImportDeclarationNameCollision8.types => decoratorMetadataWithImportDeclarationNameCollision8(target=es2015).types} (100%) rename tests/baselines/reference/{decoratorMetadataWithImportDeclarationNameCollision8.js => decoratorMetadataWithImportDeclarationNameCollision8(target=es5).js} (100%) create mode 100644 tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision8(target=es5).symbols create mode 100644 tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision8(target=es5).types create mode 100644 tests/baselines/reference/decoratorMetadataWithTypeOnlyImport(target=es2015).js rename tests/baselines/reference/{decoratorMetadataWithTypeOnlyImport.symbols => decoratorMetadataWithTypeOnlyImport(target=es2015).symbols} (100%) rename tests/baselines/reference/{decoratorMetadataWithTypeOnlyImport.types => decoratorMetadataWithTypeOnlyImport(target=es2015).types} (100%) rename tests/baselines/reference/{decoratorMetadataWithTypeOnlyImport.js => decoratorMetadataWithTypeOnlyImport(target=es5).js} (100%) create mode 100644 tests/baselines/reference/decoratorMetadataWithTypeOnlyImport(target=es5).symbols create mode 100644 tests/baselines/reference/decoratorMetadataWithTypeOnlyImport(target=es5).types create mode 100644 tests/baselines/reference/decoratorOnClass1(target=es2015).js rename tests/baselines/reference/{decoratorOnClass1.symbols => decoratorOnClass1(target=es2015).symbols} (100%) rename tests/baselines/reference/{decoratorOnClass1.types => decoratorOnClass1(target=es2015).types} (100%) rename tests/baselines/reference/{decoratorOnClass1.js => decoratorOnClass1(target=es5).js} (100%) create mode 100644 tests/baselines/reference/decoratorOnClass1(target=es5).symbols create mode 100644 tests/baselines/reference/decoratorOnClass1(target=es5).types create mode 100644 tests/baselines/reference/decoratorOnClass2(target=es2015).js rename tests/baselines/reference/{decoratorOnClass2.symbols => decoratorOnClass2(target=es2015).symbols} (100%) rename tests/baselines/reference/{decoratorOnClass2.types => decoratorOnClass2(target=es2015).types} (100%) rename tests/baselines/reference/{decoratorOnClass2.js => decoratorOnClass2(target=es5).js} (100%) create mode 100644 tests/baselines/reference/decoratorOnClass2(target=es5).symbols create mode 100644 tests/baselines/reference/decoratorOnClass2(target=es5).types create mode 100644 tests/baselines/reference/decoratorOnClass3(target=es2015).js rename tests/baselines/reference/{decoratorOnClass3.symbols => decoratorOnClass3(target=es2015).symbols} (100%) rename tests/baselines/reference/{decoratorOnClass3.types => decoratorOnClass3(target=es2015).types} (100%) rename tests/baselines/reference/{decoratorOnClass3.js => decoratorOnClass3(target=es5).js} (100%) create mode 100644 tests/baselines/reference/decoratorOnClass3(target=es5).symbols create mode 100644 tests/baselines/reference/decoratorOnClass3(target=es5).types create mode 100644 tests/baselines/reference/decoratorOnClass4(target=es2015).js rename tests/baselines/reference/{decoratorOnClass4.symbols => decoratorOnClass4(target=es2015).symbols} (100%) rename tests/baselines/reference/{decoratorOnClass4.types => decoratorOnClass4(target=es2015).types} (100%) rename tests/baselines/reference/{decoratorOnClass4.js => decoratorOnClass4(target=es5).js} (100%) create mode 100644 tests/baselines/reference/decoratorOnClass4(target=es5).symbols create mode 100644 tests/baselines/reference/decoratorOnClass4(target=es5).types create mode 100644 tests/baselines/reference/decoratorOnClass5(target=es2015).js rename tests/baselines/reference/{decoratorOnClass5.symbols => decoratorOnClass5(target=es2015).symbols} (100%) rename tests/baselines/reference/{decoratorOnClass5.types => decoratorOnClass5(target=es2015).types} (100%) rename tests/baselines/reference/{decoratorOnClass5.js => decoratorOnClass5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/decoratorOnClass5(target=es5).symbols create mode 100644 tests/baselines/reference/decoratorOnClass5(target=es5).types rename tests/baselines/reference/{decoratorOnClass8.errors.txt => decoratorOnClass8(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/decoratorOnClass8(target=es2015).js rename tests/baselines/reference/{decoratorOnClass8.symbols => decoratorOnClass8(target=es2015).symbols} (100%) rename tests/baselines/reference/{decoratorOnClass8.types => decoratorOnClass8(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/decoratorOnClass8(target=es5).errors.txt rename tests/baselines/reference/{decoratorOnClass8.js => decoratorOnClass8(target=es5).js} (100%) create mode 100644 tests/baselines/reference/decoratorOnClass8(target=es5).symbols create mode 100644 tests/baselines/reference/decoratorOnClass8(target=es5).types create mode 100644 tests/baselines/reference/decoratorOnClass9(target=es2015).js rename tests/baselines/reference/{decoratorOnClass9.symbols => decoratorOnClass9(target=es2015).symbols} (100%) rename tests/baselines/reference/{decoratorOnClass9.types => decoratorOnClass9(target=es2015).types} (100%) rename tests/baselines/reference/{decoratorOnClass9.js => decoratorOnClass9(target=es5).js} (100%) create mode 100644 tests/baselines/reference/decoratorOnClass9(target=es5).symbols create mode 100644 tests/baselines/reference/decoratorOnClass9(target=es5).types create mode 100644 tests/baselines/reference/decoratorOnClassAccessor1(target=es2015).js rename tests/baselines/reference/{decoratorOnClassAccessor1.symbols => decoratorOnClassAccessor1(target=es2015).symbols} (100%) rename tests/baselines/reference/{decoratorOnClassAccessor1.types => decoratorOnClassAccessor1(target=es2015).types} (100%) rename tests/baselines/reference/{decoratorOnClassAccessor1.js => decoratorOnClassAccessor1(target=es5).js} (100%) create mode 100644 tests/baselines/reference/decoratorOnClassAccessor1(target=es5).symbols create mode 100644 tests/baselines/reference/decoratorOnClassAccessor1(target=es5).types create mode 100644 tests/baselines/reference/decoratorOnClassAccessor2(target=es2015).js rename tests/baselines/reference/{decoratorOnClassAccessor2.symbols => decoratorOnClassAccessor2(target=es2015).symbols} (100%) rename tests/baselines/reference/{decoratorOnClassAccessor2.types => decoratorOnClassAccessor2(target=es2015).types} (100%) rename tests/baselines/reference/{decoratorOnClassAccessor2.js => decoratorOnClassAccessor2(target=es5).js} (100%) create mode 100644 tests/baselines/reference/decoratorOnClassAccessor2(target=es5).symbols create mode 100644 tests/baselines/reference/decoratorOnClassAccessor2(target=es5).types rename tests/baselines/reference/{decoratorOnClassAccessor3.errors.txt => decoratorOnClassAccessor3(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/decoratorOnClassAccessor3(target=es2015).js rename tests/baselines/reference/{decoratorOnClassAccessor3.symbols => decoratorOnClassAccessor3(target=es2015).symbols} (100%) rename tests/baselines/reference/{decoratorOnClassAccessor3.types => decoratorOnClassAccessor3(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/decoratorOnClassAccessor3(target=es5).errors.txt rename tests/baselines/reference/{decoratorOnClassAccessor3.js => decoratorOnClassAccessor3(target=es5).js} (100%) create mode 100644 tests/baselines/reference/decoratorOnClassAccessor3(target=es5).symbols create mode 100644 tests/baselines/reference/decoratorOnClassAccessor3(target=es5).types create mode 100644 tests/baselines/reference/decoratorOnClassAccessor4(target=es2015).js rename tests/baselines/reference/{decoratorOnClassAccessor4.symbols => decoratorOnClassAccessor4(target=es2015).symbols} (100%) rename tests/baselines/reference/{decoratorOnClassAccessor4.types => decoratorOnClassAccessor4(target=es2015).types} (100%) rename tests/baselines/reference/{decoratorOnClassAccessor4.js => decoratorOnClassAccessor4(target=es5).js} (100%) create mode 100644 tests/baselines/reference/decoratorOnClassAccessor4(target=es5).symbols create mode 100644 tests/baselines/reference/decoratorOnClassAccessor4(target=es5).types create mode 100644 tests/baselines/reference/decoratorOnClassAccessor5(target=es2015).js rename tests/baselines/reference/{decoratorOnClassAccessor5.symbols => decoratorOnClassAccessor5(target=es2015).symbols} (100%) rename tests/baselines/reference/{decoratorOnClassAccessor5.types => decoratorOnClassAccessor5(target=es2015).types} (100%) rename tests/baselines/reference/{decoratorOnClassAccessor5.js => decoratorOnClassAccessor5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/decoratorOnClassAccessor5(target=es5).symbols create mode 100644 tests/baselines/reference/decoratorOnClassAccessor5(target=es5).types rename tests/baselines/reference/{decoratorOnClassAccessor6.errors.txt => decoratorOnClassAccessor6(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/decoratorOnClassAccessor6(target=es2015).js rename tests/baselines/reference/{decoratorOnClassAccessor6.symbols => decoratorOnClassAccessor6(target=es2015).symbols} (100%) rename tests/baselines/reference/{decoratorOnClassAccessor6.types => decoratorOnClassAccessor6(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/decoratorOnClassAccessor6(target=es5).errors.txt rename tests/baselines/reference/{decoratorOnClassAccessor6.js => decoratorOnClassAccessor6(target=es5).js} (100%) create mode 100644 tests/baselines/reference/decoratorOnClassAccessor6(target=es5).symbols create mode 100644 tests/baselines/reference/decoratorOnClassAccessor6(target=es5).types rename tests/baselines/reference/{decoratorOnClassAccessor7.errors.txt => decoratorOnClassAccessor7(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/decoratorOnClassAccessor7(target=es2015).js rename tests/baselines/reference/{decoratorOnClassAccessor7.symbols => decoratorOnClassAccessor7(target=es2015).symbols} (100%) rename tests/baselines/reference/{decoratorOnClassAccessor7.types => decoratorOnClassAccessor7(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/decoratorOnClassAccessor7(target=es5).errors.txt rename tests/baselines/reference/{decoratorOnClassAccessor7.js => decoratorOnClassAccessor7(target=es5).js} (100%) create mode 100644 tests/baselines/reference/decoratorOnClassAccessor7(target=es5).symbols create mode 100644 tests/baselines/reference/decoratorOnClassAccessor7(target=es5).types create mode 100644 tests/baselines/reference/decoratorOnClassAccessor8(target=es2015).js rename tests/baselines/reference/{decoratorOnClassAccessor8.symbols => decoratorOnClassAccessor8(target=es2015).symbols} (100%) rename tests/baselines/reference/{decoratorOnClassAccessor8.types => decoratorOnClassAccessor8(target=es2015).types} (100%) rename tests/baselines/reference/{decoratorOnClassAccessor8.js => decoratorOnClassAccessor8(target=es5).js} (100%) create mode 100644 tests/baselines/reference/decoratorOnClassAccessor8(target=es5).symbols create mode 100644 tests/baselines/reference/decoratorOnClassAccessor8(target=es5).types rename tests/baselines/reference/{decoratorOnClassConstructor1.errors.txt => decoratorOnClassConstructor1(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/decoratorOnClassConstructor1(target=es2015).js rename tests/baselines/reference/{decoratorOnClassConstructor1.symbols => decoratorOnClassConstructor1(target=es2015).symbols} (100%) rename tests/baselines/reference/{decoratorOnClassConstructor1.types => decoratorOnClassConstructor1(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/decoratorOnClassConstructor1(target=es5).errors.txt rename tests/baselines/reference/{decoratorOnClassConstructor1.js => decoratorOnClassConstructor1(target=es5).js} (100%) create mode 100644 tests/baselines/reference/decoratorOnClassConstructor1(target=es5).symbols create mode 100644 tests/baselines/reference/decoratorOnClassConstructor1(target=es5).types rename tests/baselines/reference/{decoratorOnClassConstructor2.errors.txt => decoratorOnClassConstructor2(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/decoratorOnClassConstructor2(target=es2015).js rename tests/baselines/reference/{decoratorOnClassConstructor2.symbols => decoratorOnClassConstructor2(target=es2015).symbols} (100%) rename tests/baselines/reference/{decoratorOnClassConstructor2.types => decoratorOnClassConstructor2(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/decoratorOnClassConstructor2(target=es5).errors.txt rename tests/baselines/reference/{decoratorOnClassConstructor2.js => decoratorOnClassConstructor2(target=es5).js} (100%) create mode 100644 tests/baselines/reference/decoratorOnClassConstructor2(target=es5).symbols create mode 100644 tests/baselines/reference/decoratorOnClassConstructor2(target=es5).types create mode 100644 tests/baselines/reference/decoratorOnClassConstructor3(target=es2015).js rename tests/baselines/reference/{decoratorOnClassConstructor3.symbols => decoratorOnClassConstructor3(target=es2015).symbols} (100%) rename tests/baselines/reference/{decoratorOnClassConstructor3.types => decoratorOnClassConstructor3(target=es2015).types} (100%) rename tests/baselines/reference/{decoratorOnClassConstructor3.js => decoratorOnClassConstructor3(target=es5).js} (100%) create mode 100644 tests/baselines/reference/decoratorOnClassConstructor3(target=es5).symbols create mode 100644 tests/baselines/reference/decoratorOnClassConstructor3(target=es5).types create mode 100644 tests/baselines/reference/decoratorOnClassConstructor4(target=es2015).js rename tests/baselines/reference/{decoratorOnClassConstructor4.symbols => decoratorOnClassConstructor4(target=es2015).symbols} (100%) rename tests/baselines/reference/{decoratorOnClassConstructor4.types => decoratorOnClassConstructor4(target=es2015).types} (100%) rename tests/baselines/reference/{decoratorOnClassConstructor4.js => decoratorOnClassConstructor4(target=es5).js} (100%) create mode 100644 tests/baselines/reference/decoratorOnClassConstructor4(target=es5).symbols create mode 100644 tests/baselines/reference/decoratorOnClassConstructor4(target=es5).types create mode 100644 tests/baselines/reference/decoratorOnClassConstructorParameter1(target=es2015).js rename tests/baselines/reference/{decoratorOnClassConstructorParameter1.symbols => decoratorOnClassConstructorParameter1(target=es2015).symbols} (100%) rename tests/baselines/reference/{decoratorOnClassConstructorParameter1.types => decoratorOnClassConstructorParameter1(target=es2015).types} (100%) rename tests/baselines/reference/{decoratorOnClassConstructorParameter1.js => decoratorOnClassConstructorParameter1(target=es5).js} (100%) create mode 100644 tests/baselines/reference/decoratorOnClassConstructorParameter1(target=es5).symbols create mode 100644 tests/baselines/reference/decoratorOnClassConstructorParameter1(target=es5).types rename tests/baselines/reference/{decoratorOnClassConstructorParameter4.errors.txt => decoratorOnClassConstructorParameter4(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/decoratorOnClassConstructorParameter4(target=es2015).js rename tests/baselines/reference/{decoratorOnClassConstructorParameter4.symbols => decoratorOnClassConstructorParameter4(target=es2015).symbols} (100%) rename tests/baselines/reference/{decoratorOnClassConstructorParameter4.types => decoratorOnClassConstructorParameter4(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/decoratorOnClassConstructorParameter4(target=es5).errors.txt rename tests/baselines/reference/{decoratorOnClassConstructorParameter4.js => decoratorOnClassConstructorParameter4(target=es5).js} (100%) create mode 100644 tests/baselines/reference/decoratorOnClassConstructorParameter4(target=es5).symbols create mode 100644 tests/baselines/reference/decoratorOnClassConstructorParameter4(target=es5).types create mode 100644 tests/baselines/reference/decoratorOnClassMethod1(target=es2015).js rename tests/baselines/reference/{decoratorOnClassMethod1.symbols => decoratorOnClassMethod1(target=es2015).symbols} (100%) rename tests/baselines/reference/{decoratorOnClassMethod1.types => decoratorOnClassMethod1(target=es2015).types} (100%) rename tests/baselines/reference/{decoratorOnClassMethod1.js => decoratorOnClassMethod1(target=es5).js} (100%) create mode 100644 tests/baselines/reference/decoratorOnClassMethod1(target=es5).symbols create mode 100644 tests/baselines/reference/decoratorOnClassMethod1(target=es5).types rename tests/baselines/reference/{decoratorOnClassMethod10.errors.txt => decoratorOnClassMethod10(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/decoratorOnClassMethod10(target=es2015).js rename tests/baselines/reference/{decoratorOnClassMethod10.symbols => decoratorOnClassMethod10(target=es2015).symbols} (100%) rename tests/baselines/reference/{decoratorOnClassMethod10.types => decoratorOnClassMethod10(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/decoratorOnClassMethod10(target=es5).errors.txt rename tests/baselines/reference/{decoratorOnClassMethod10.js => decoratorOnClassMethod10(target=es5).js} (100%) create mode 100644 tests/baselines/reference/decoratorOnClassMethod10(target=es5).symbols create mode 100644 tests/baselines/reference/decoratorOnClassMethod10(target=es5).types rename tests/baselines/reference/{decoratorOnClassMethod11.errors.txt => decoratorOnClassMethod11(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/decoratorOnClassMethod11(target=es2015).js rename tests/baselines/reference/{decoratorOnClassMethod11.symbols => decoratorOnClassMethod11(target=es2015).symbols} (100%) rename tests/baselines/reference/{decoratorOnClassMethod11.types => decoratorOnClassMethod11(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/decoratorOnClassMethod11(target=es5).errors.txt rename tests/baselines/reference/{decoratorOnClassMethod11.js => decoratorOnClassMethod11(target=es5).js} (100%) create mode 100644 tests/baselines/reference/decoratorOnClassMethod11(target=es5).symbols create mode 100644 tests/baselines/reference/decoratorOnClassMethod11(target=es5).types rename tests/baselines/reference/{decoratorOnClassMethod12.errors.txt => decoratorOnClassMethod12(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/decoratorOnClassMethod12(target=es2015).js rename tests/baselines/reference/{decoratorOnClassMethod12.symbols => decoratorOnClassMethod12(target=es2015).symbols} (100%) rename tests/baselines/reference/{decoratorOnClassMethod12.types => decoratorOnClassMethod12(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/decoratorOnClassMethod12(target=es5).errors.txt rename tests/baselines/reference/{decoratorOnClassMethod12.js => decoratorOnClassMethod12(target=es5).js} (100%) create mode 100644 tests/baselines/reference/decoratorOnClassMethod12(target=es5).symbols create mode 100644 tests/baselines/reference/decoratorOnClassMethod12(target=es5).types create mode 100644 tests/baselines/reference/decoratorOnClassMethod2(target=es2015).js rename tests/baselines/reference/{decoratorOnClassMethod2.symbols => decoratorOnClassMethod2(target=es2015).symbols} (100%) rename tests/baselines/reference/{decoratorOnClassMethod2.types => decoratorOnClassMethod2(target=es2015).types} (100%) rename tests/baselines/reference/{decoratorOnClassMethod2.js => decoratorOnClassMethod2(target=es5).js} (100%) create mode 100644 tests/baselines/reference/decoratorOnClassMethod2(target=es5).symbols create mode 100644 tests/baselines/reference/decoratorOnClassMethod2(target=es5).types rename tests/baselines/reference/{decoratorOnClassMethod3.errors.txt => decoratorOnClassMethod3(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/decoratorOnClassMethod3(target=es2015).js rename tests/baselines/reference/{decoratorOnClassMethod3.symbols => decoratorOnClassMethod3(target=es2015).symbols} (100%) rename tests/baselines/reference/{decoratorOnClassMethod3.types => decoratorOnClassMethod3(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/decoratorOnClassMethod3(target=es5).errors.txt rename tests/baselines/reference/{decoratorOnClassMethod3.js => decoratorOnClassMethod3(target=es5).js} (100%) create mode 100644 tests/baselines/reference/decoratorOnClassMethod3(target=es5).symbols create mode 100644 tests/baselines/reference/decoratorOnClassMethod3(target=es5).types rename tests/baselines/reference/{decoratorOnClassMethod8.errors.txt => decoratorOnClassMethod8(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/decoratorOnClassMethod8(target=es2015).js rename tests/baselines/reference/{decoratorOnClassMethod8.symbols => decoratorOnClassMethod8(target=es2015).symbols} (100%) rename tests/baselines/reference/{decoratorOnClassMethod8.types => decoratorOnClassMethod8(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/decoratorOnClassMethod8(target=es5).errors.txt rename tests/baselines/reference/{decoratorOnClassMethod8.js => decoratorOnClassMethod8(target=es5).js} (100%) create mode 100644 tests/baselines/reference/decoratorOnClassMethod8(target=es5).symbols create mode 100644 tests/baselines/reference/decoratorOnClassMethod8(target=es5).types rename tests/baselines/reference/{decoratorOnClassMethodOverload1.errors.txt => decoratorOnClassMethodOverload1(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/decoratorOnClassMethodOverload1(target=es2015).js rename tests/baselines/reference/{decoratorOnClassMethodOverload1.symbols => decoratorOnClassMethodOverload1(target=es2015).symbols} (100%) rename tests/baselines/reference/{decoratorOnClassMethodOverload1.types => decoratorOnClassMethodOverload1(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/decoratorOnClassMethodOverload1(target=es5).errors.txt rename tests/baselines/reference/{decoratorOnClassMethodOverload1.js => decoratorOnClassMethodOverload1(target=es5).js} (100%) create mode 100644 tests/baselines/reference/decoratorOnClassMethodOverload1(target=es5).symbols create mode 100644 tests/baselines/reference/decoratorOnClassMethodOverload1(target=es5).types create mode 100644 tests/baselines/reference/decoratorOnClassMethodOverload2(target=es2015).js rename tests/baselines/reference/{decoratorOnClassMethodOverload2.symbols => decoratorOnClassMethodOverload2(target=es2015).symbols} (100%) rename tests/baselines/reference/{decoratorOnClassMethodOverload2.types => decoratorOnClassMethodOverload2(target=es2015).types} (100%) rename tests/baselines/reference/{decoratorOnClassMethodOverload2.js => decoratorOnClassMethodOverload2(target=es5).js} (100%) create mode 100644 tests/baselines/reference/decoratorOnClassMethodOverload2(target=es5).symbols create mode 100644 tests/baselines/reference/decoratorOnClassMethodOverload2(target=es5).types create mode 100644 tests/baselines/reference/decoratorOnClassMethodParameter1(target=es2015).js rename tests/baselines/reference/{decoratorOnClassMethodParameter1.symbols => decoratorOnClassMethodParameter1(target=es2015).symbols} (100%) rename tests/baselines/reference/{decoratorOnClassMethodParameter1.types => decoratorOnClassMethodParameter1(target=es2015).types} (100%) rename tests/baselines/reference/{decoratorOnClassMethodParameter1.js => decoratorOnClassMethodParameter1(target=es5).js} (100%) create mode 100644 tests/baselines/reference/decoratorOnClassMethodParameter1(target=es5).symbols create mode 100644 tests/baselines/reference/decoratorOnClassMethodParameter1(target=es5).types create mode 100644 tests/baselines/reference/decoratorOnClassMethodParameter2(target=es2015).js rename tests/baselines/reference/{decoratorOnClassMethodParameter2.symbols => decoratorOnClassMethodParameter2(target=es2015).symbols} (100%) rename tests/baselines/reference/{decoratorOnClassMethodParameter2.types => decoratorOnClassMethodParameter2(target=es2015).types} (100%) rename tests/baselines/reference/{decoratorOnClassMethodParameter2.js => decoratorOnClassMethodParameter2(target=es5).js} (100%) create mode 100644 tests/baselines/reference/decoratorOnClassMethodParameter2(target=es5).symbols create mode 100644 tests/baselines/reference/decoratorOnClassMethodParameter2(target=es5).types rename tests/baselines/reference/{decoratorOnClassMethodThisParameter.errors.txt => decoratorOnClassMethodThisParameter(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/decoratorOnClassMethodThisParameter(target=es2015).js rename tests/baselines/reference/{decoratorOnClassMethodThisParameter.symbols => decoratorOnClassMethodThisParameter(target=es2015).symbols} (100%) rename tests/baselines/reference/{decoratorOnClassMethodThisParameter.types => decoratorOnClassMethodThisParameter(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/decoratorOnClassMethodThisParameter(target=es5).errors.txt rename tests/baselines/reference/{decoratorOnClassMethodThisParameter.js => decoratorOnClassMethodThisParameter(target=es5).js} (100%) create mode 100644 tests/baselines/reference/decoratorOnClassMethodThisParameter(target=es5).symbols create mode 100644 tests/baselines/reference/decoratorOnClassMethodThisParameter(target=es5).types create mode 100644 tests/baselines/reference/decoratorOnClassProperty1(target=es2015).js rename tests/baselines/reference/{decoratorOnClassProperty1.symbols => decoratorOnClassProperty1(target=es2015).symbols} (100%) rename tests/baselines/reference/{decoratorOnClassProperty1.types => decoratorOnClassProperty1(target=es2015).types} (100%) rename tests/baselines/reference/{decoratorOnClassProperty1.js => decoratorOnClassProperty1(target=es5).js} (100%) create mode 100644 tests/baselines/reference/decoratorOnClassProperty1(target=es5).symbols create mode 100644 tests/baselines/reference/decoratorOnClassProperty1(target=es5).types create mode 100644 tests/baselines/reference/decoratorOnClassProperty10(target=es2015).js rename tests/baselines/reference/{decoratorOnClassProperty10.symbols => decoratorOnClassProperty10(target=es2015).symbols} (100%) rename tests/baselines/reference/{decoratorOnClassProperty10.types => decoratorOnClassProperty10(target=es2015).types} (100%) rename tests/baselines/reference/{decoratorOnClassProperty10.js => decoratorOnClassProperty10(target=es5).js} (100%) create mode 100644 tests/baselines/reference/decoratorOnClassProperty10(target=es5).symbols create mode 100644 tests/baselines/reference/decoratorOnClassProperty10(target=es5).types rename tests/baselines/reference/{decoratorOnClassProperty11.errors.txt => decoratorOnClassProperty11(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/decoratorOnClassProperty11(target=es2015).js rename tests/baselines/reference/{decoratorOnClassProperty11.symbols => decoratorOnClassProperty11(target=es2015).symbols} (100%) rename tests/baselines/reference/{decoratorOnClassProperty11.types => decoratorOnClassProperty11(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/decoratorOnClassProperty11(target=es5).errors.txt rename tests/baselines/reference/{decoratorOnClassProperty11.js => decoratorOnClassProperty11(target=es5).js} (100%) create mode 100644 tests/baselines/reference/decoratorOnClassProperty11(target=es5).symbols create mode 100644 tests/baselines/reference/decoratorOnClassProperty11(target=es5).types create mode 100644 tests/baselines/reference/decoratorOnClassProperty12(target=es2015).js rename tests/baselines/reference/{decoratorOnClassProperty12.symbols => decoratorOnClassProperty12(target=es2015).symbols} (100%) rename tests/baselines/reference/{decoratorOnClassProperty12.types => decoratorOnClassProperty12(target=es2015).types} (100%) rename tests/baselines/reference/{decoratorOnClassProperty12.js => decoratorOnClassProperty12(target=es5).js} (100%) create mode 100644 tests/baselines/reference/decoratorOnClassProperty12(target=es5).symbols create mode 100644 tests/baselines/reference/decoratorOnClassProperty12(target=es5).types create mode 100644 tests/baselines/reference/decoratorOnClassProperty2(target=es2015).js rename tests/baselines/reference/{decoratorOnClassProperty2.symbols => decoratorOnClassProperty2(target=es2015).symbols} (100%) rename tests/baselines/reference/{decoratorOnClassProperty2.types => decoratorOnClassProperty2(target=es2015).types} (100%) rename tests/baselines/reference/{decoratorOnClassProperty2.js => decoratorOnClassProperty2(target=es5).js} (100%) create mode 100644 tests/baselines/reference/decoratorOnClassProperty2(target=es5).symbols create mode 100644 tests/baselines/reference/decoratorOnClassProperty2(target=es5).types rename tests/baselines/reference/{decoratorOnClassProperty3.errors.txt => decoratorOnClassProperty3(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/decoratorOnClassProperty3(target=es2015).js rename tests/baselines/reference/{decoratorOnClassProperty3.symbols => decoratorOnClassProperty3(target=es2015).symbols} (100%) rename tests/baselines/reference/{decoratorOnClassProperty3.types => decoratorOnClassProperty3(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/decoratorOnClassProperty3(target=es5).errors.txt rename tests/baselines/reference/{decoratorOnClassProperty3.js => decoratorOnClassProperty3(target=es5).js} (100%) create mode 100644 tests/baselines/reference/decoratorOnClassProperty3(target=es5).symbols create mode 100644 tests/baselines/reference/decoratorOnClassProperty3(target=es5).types rename tests/baselines/reference/{decoratorOnClassProperty6.errors.txt => decoratorOnClassProperty6(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/decoratorOnClassProperty6(target=es2015).js rename tests/baselines/reference/{decoratorOnClassProperty6.symbols => decoratorOnClassProperty6(target=es2015).symbols} (100%) rename tests/baselines/reference/{decoratorOnClassProperty6.types => decoratorOnClassProperty6(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/decoratorOnClassProperty6(target=es5).errors.txt rename tests/baselines/reference/{decoratorOnClassProperty6.js => decoratorOnClassProperty6(target=es5).js} (100%) create mode 100644 tests/baselines/reference/decoratorOnClassProperty6(target=es5).symbols create mode 100644 tests/baselines/reference/decoratorOnClassProperty6(target=es5).types rename tests/baselines/reference/{decoratorOnClassProperty7.errors.txt => decoratorOnClassProperty7(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/decoratorOnClassProperty7(target=es2015).js rename tests/baselines/reference/{decoratorOnClassProperty7.symbols => decoratorOnClassProperty7(target=es2015).symbols} (100%) rename tests/baselines/reference/{decoratorOnClassProperty7.types => decoratorOnClassProperty7(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/decoratorOnClassProperty7(target=es5).errors.txt rename tests/baselines/reference/{decoratorOnClassProperty7.js => decoratorOnClassProperty7(target=es5).js} (100%) create mode 100644 tests/baselines/reference/decoratorOnClassProperty7(target=es5).symbols create mode 100644 tests/baselines/reference/decoratorOnClassProperty7(target=es5).types create mode 100644 tests/baselines/reference/decoratorWithNegativeLiteralTypeNoCrash(target=es2015).js rename tests/baselines/reference/{decoratorWithNegativeLiteralTypeNoCrash.symbols => decoratorWithNegativeLiteralTypeNoCrash(target=es2015).symbols} (100%) rename tests/baselines/reference/{decoratorWithNegativeLiteralTypeNoCrash.types => decoratorWithNegativeLiteralTypeNoCrash(target=es2015).types} (100%) rename tests/baselines/reference/{decoratorWithNegativeLiteralTypeNoCrash.js => decoratorWithNegativeLiteralTypeNoCrash(target=es5).js} (100%) create mode 100644 tests/baselines/reference/decoratorWithNegativeLiteralTypeNoCrash(target=es5).symbols create mode 100644 tests/baselines/reference/decoratorWithNegativeLiteralTypeNoCrash(target=es5).types create mode 100644 tests/baselines/reference/defaultExportWithOverloads01(target=es2015).js rename tests/baselines/reference/{defaultExportWithOverloads01.symbols => defaultExportWithOverloads01(target=es2015).symbols} (100%) rename tests/baselines/reference/{defaultExportWithOverloads01.types => defaultExportWithOverloads01(target=es2015).types} (100%) rename tests/baselines/reference/{defaultExportWithOverloads01.js => defaultExportWithOverloads01(target=es5).js} (100%) create mode 100644 tests/baselines/reference/defaultExportWithOverloads01(target=es5).symbols create mode 100644 tests/baselines/reference/defaultExportWithOverloads01(target=es5).types rename tests/baselines/reference/{defaultExportsCannotMerge01.errors.txt => defaultExportsCannotMerge01(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/defaultExportsCannotMerge01(target=es2015).js rename tests/baselines/reference/{defaultExportsCannotMerge01.symbols => defaultExportsCannotMerge01(target=es2015).symbols} (100%) rename tests/baselines/reference/{defaultExportsCannotMerge01.types => defaultExportsCannotMerge01(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/defaultExportsCannotMerge01(target=es5).errors.txt rename tests/baselines/reference/{defaultExportsCannotMerge01.js => defaultExportsCannotMerge01(target=es5).js} (100%) create mode 100644 tests/baselines/reference/defaultExportsCannotMerge01(target=es5).symbols create mode 100644 tests/baselines/reference/defaultExportsCannotMerge01(target=es5).types rename tests/baselines/reference/{defaultExportsCannotMerge02.errors.txt => defaultExportsCannotMerge02(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/defaultExportsCannotMerge02(target=es2015).js rename tests/baselines/reference/{defaultExportsCannotMerge02.symbols => defaultExportsCannotMerge02(target=es2015).symbols} (100%) rename tests/baselines/reference/{defaultExportsCannotMerge02.types => defaultExportsCannotMerge02(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/defaultExportsCannotMerge02(target=es5).errors.txt rename tests/baselines/reference/{defaultExportsCannotMerge02.js => defaultExportsCannotMerge02(target=es5).js} (100%) create mode 100644 tests/baselines/reference/defaultExportsCannotMerge02(target=es5).symbols create mode 100644 tests/baselines/reference/defaultExportsCannotMerge02(target=es5).types rename tests/baselines/reference/{defaultExportsCannotMerge03.errors.txt => defaultExportsCannotMerge03(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/defaultExportsCannotMerge03(target=es2015).js rename tests/baselines/reference/{defaultExportsCannotMerge03.symbols => defaultExportsCannotMerge03(target=es2015).symbols} (100%) rename tests/baselines/reference/{defaultExportsCannotMerge03.types => defaultExportsCannotMerge03(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/defaultExportsCannotMerge03(target=es5).errors.txt rename tests/baselines/reference/{defaultExportsCannotMerge03.js => defaultExportsCannotMerge03(target=es5).js} (100%) create mode 100644 tests/baselines/reference/defaultExportsCannotMerge03(target=es5).symbols create mode 100644 tests/baselines/reference/defaultExportsCannotMerge03(target=es5).types rename tests/baselines/reference/{defaultExportsCannotMerge04.errors.txt => defaultExportsCannotMerge04(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{defaultExportsCannotMerge04.js => defaultExportsCannotMerge04(target=es2015).js} (100%) rename tests/baselines/reference/{defaultExportsCannotMerge04.symbols => defaultExportsCannotMerge04(target=es2015).symbols} (100%) rename tests/baselines/reference/{defaultExportsCannotMerge04.types => defaultExportsCannotMerge04(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/defaultExportsCannotMerge04(target=es5).errors.txt create mode 100644 tests/baselines/reference/defaultExportsCannotMerge04(target=es5).js create mode 100644 tests/baselines/reference/defaultExportsCannotMerge04(target=es5).symbols create mode 100644 tests/baselines/reference/defaultExportsCannotMerge04(target=es5).types create mode 100644 tests/baselines/reference/derivedClassConstructorWithExplicitReturns01(target=es2015).js create mode 100644 tests/baselines/reference/derivedClassConstructorWithExplicitReturns01(target=es2015).js.map create mode 100644 tests/baselines/reference/derivedClassConstructorWithExplicitReturns01(target=es2015).sourcemap.txt rename tests/baselines/reference/{derivedClassConstructorWithExplicitReturns01.symbols => derivedClassConstructorWithExplicitReturns01(target=es2015).symbols} (100%) rename tests/baselines/reference/{derivedClassConstructorWithExplicitReturns01.types => derivedClassConstructorWithExplicitReturns01(target=es2015).types} (100%) rename tests/baselines/reference/{derivedClassConstructorWithExplicitReturns01.js => derivedClassConstructorWithExplicitReturns01(target=es5).js} (100%) rename tests/baselines/reference/{derivedClassConstructorWithExplicitReturns01.js.map => derivedClassConstructorWithExplicitReturns01(target=es5).js.map} (100%) rename tests/baselines/reference/{derivedClassConstructorWithExplicitReturns01.sourcemap.txt => derivedClassConstructorWithExplicitReturns01(target=es5).sourcemap.txt} (100%) create mode 100644 tests/baselines/reference/derivedClassConstructorWithExplicitReturns01(target=es5).symbols create mode 100644 tests/baselines/reference/derivedClassConstructorWithExplicitReturns01(target=es5).types create mode 100644 tests/baselines/reference/derivedClassOverridesProtectedMembers(target=es2015).js rename tests/baselines/reference/{derivedClassOverridesProtectedMembers.symbols => derivedClassOverridesProtectedMembers(target=es2015).symbols} (100%) rename tests/baselines/reference/{derivedClassOverridesProtectedMembers.types => derivedClassOverridesProtectedMembers(target=es2015).types} (100%) rename tests/baselines/reference/{derivedClassOverridesProtectedMembers.js => derivedClassOverridesProtectedMembers(target=es5).js} (100%) create mode 100644 tests/baselines/reference/derivedClassOverridesProtectedMembers(target=es5).symbols create mode 100644 tests/baselines/reference/derivedClassOverridesProtectedMembers(target=es5).types create mode 100644 tests/baselines/reference/derivedClassOverridesProtectedMembers2(target=es2015).js rename tests/baselines/reference/{derivedClassOverridesProtectedMembers2.symbols => derivedClassOverridesProtectedMembers2(target=es2015).symbols} (100%) rename tests/baselines/reference/{derivedClassOverridesProtectedMembers2.types => derivedClassOverridesProtectedMembers2(target=es2015).types} (100%) rename tests/baselines/reference/{derivedClassOverridesProtectedMembers2.js => derivedClassOverridesProtectedMembers2(target=es5).js} (100%) create mode 100644 tests/baselines/reference/derivedClassOverridesProtectedMembers2(target=es5).symbols create mode 100644 tests/baselines/reference/derivedClassOverridesProtectedMembers2(target=es5).types rename tests/baselines/reference/{derivedClassOverridesProtectedMembers3.errors.txt => derivedClassOverridesProtectedMembers3(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/derivedClassOverridesProtectedMembers3(target=es2015).js rename tests/baselines/reference/{derivedClassOverridesProtectedMembers3.symbols => derivedClassOverridesProtectedMembers3(target=es2015).symbols} (100%) rename tests/baselines/reference/{derivedClassOverridesProtectedMembers3.types => derivedClassOverridesProtectedMembers3(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/derivedClassOverridesProtectedMembers3(target=es5).errors.txt rename tests/baselines/reference/{derivedClassOverridesProtectedMembers3.js => derivedClassOverridesProtectedMembers3(target=es5).js} (100%) create mode 100644 tests/baselines/reference/derivedClassOverridesProtectedMembers3(target=es5).symbols create mode 100644 tests/baselines/reference/derivedClassOverridesProtectedMembers3(target=es5).types create mode 100644 tests/baselines/reference/derivedClassSuperProperties(target=es2015).errors.txt create mode 100644 tests/baselines/reference/derivedClassSuperProperties(target=es2015).js rename tests/baselines/reference/{derivedClassSuperProperties.symbols => derivedClassSuperProperties(target=es2015).symbols} (100%) rename tests/baselines/reference/{derivedClassSuperProperties.types => derivedClassSuperProperties(target=es2015).types} (100%) rename tests/baselines/reference/{derivedClassSuperProperties.errors.txt => derivedClassSuperProperties(target=es5).errors.txt} (100%) rename tests/baselines/reference/{derivedClassSuperProperties.js => derivedClassSuperProperties(target=es5).js} (100%) create mode 100644 tests/baselines/reference/derivedClassSuperProperties(target=es5).symbols create mode 100644 tests/baselines/reference/derivedClassSuperProperties(target=es5).types rename tests/baselines/reference/{derivedClassSuperStatementPosition.errors.txt => derivedClassSuperStatementPosition(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/derivedClassSuperStatementPosition(target=es2015).js rename tests/baselines/reference/{derivedClassSuperStatementPosition.symbols => derivedClassSuperStatementPosition(target=es2015).symbols} (100%) rename tests/baselines/reference/{derivedClassSuperStatementPosition.types => derivedClassSuperStatementPosition(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/derivedClassSuperStatementPosition(target=es5).errors.txt rename tests/baselines/reference/{derivedClassSuperStatementPosition.js => derivedClassSuperStatementPosition(target=es5).js} (100%) create mode 100644 tests/baselines/reference/derivedClassSuperStatementPosition(target=es5).symbols create mode 100644 tests/baselines/reference/derivedClassSuperStatementPosition(target=es5).types rename tests/baselines/reference/{derivedClassWithPrivateInstanceShadowingProtectedInstance.errors.txt => derivedClassWithPrivateInstanceShadowingProtectedInstance(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/derivedClassWithPrivateInstanceShadowingProtectedInstance(target=es2015).js rename tests/baselines/reference/{derivedClassWithPrivateInstanceShadowingProtectedInstance.symbols => derivedClassWithPrivateInstanceShadowingProtectedInstance(target=es2015).symbols} (100%) rename tests/baselines/reference/{derivedClassWithPrivateInstanceShadowingProtectedInstance.types => derivedClassWithPrivateInstanceShadowingProtectedInstance(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/derivedClassWithPrivateInstanceShadowingProtectedInstance(target=es5).errors.txt rename tests/baselines/reference/{derivedClassWithPrivateInstanceShadowingProtectedInstance.js => derivedClassWithPrivateInstanceShadowingProtectedInstance(target=es5).js} (100%) create mode 100644 tests/baselines/reference/derivedClassWithPrivateInstanceShadowingProtectedInstance(target=es5).symbols create mode 100644 tests/baselines/reference/derivedClassWithPrivateInstanceShadowingProtectedInstance(target=es5).types rename tests/baselines/reference/{derivedClassWithPrivateStaticShadowingProtectedStatic.errors.txt => derivedClassWithPrivateStaticShadowingProtectedStatic(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/derivedClassWithPrivateStaticShadowingProtectedStatic(target=es2015).js rename tests/baselines/reference/{derivedClassWithPrivateStaticShadowingProtectedStatic.symbols => derivedClassWithPrivateStaticShadowingProtectedStatic(target=es2015).symbols} (100%) rename tests/baselines/reference/{derivedClassWithPrivateStaticShadowingProtectedStatic.types => derivedClassWithPrivateStaticShadowingProtectedStatic(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/derivedClassWithPrivateStaticShadowingProtectedStatic(target=es5).errors.txt rename tests/baselines/reference/{derivedClassWithPrivateStaticShadowingProtectedStatic.js => derivedClassWithPrivateStaticShadowingProtectedStatic(target=es5).js} (100%) create mode 100644 tests/baselines/reference/derivedClassWithPrivateStaticShadowingProtectedStatic(target=es5).symbols create mode 100644 tests/baselines/reference/derivedClassWithPrivateStaticShadowingProtectedStatic(target=es5).types create mode 100644 tests/baselines/reference/destructuringArrayBindingPatternAndAssignment4(target=es2015).errors.txt create mode 100644 tests/baselines/reference/destructuringArrayBindingPatternAndAssignment4(target=es2015).js rename tests/baselines/reference/{destructuringArrayBindingPatternAndAssignment4.symbols => destructuringArrayBindingPatternAndAssignment4(target=es2015).symbols} (100%) rename tests/baselines/reference/{destructuringArrayBindingPatternAndAssignment4.types => destructuringArrayBindingPatternAndAssignment4(target=es2015).types} (100%) rename tests/baselines/reference/{destructuringArrayBindingPatternAndAssignment4.errors.txt => destructuringArrayBindingPatternAndAssignment4(target=es5).errors.txt} (100%) rename tests/baselines/reference/{destructuringArrayBindingPatternAndAssignment4.js => destructuringArrayBindingPatternAndAssignment4(target=es5).js} (100%) create mode 100644 tests/baselines/reference/destructuringArrayBindingPatternAndAssignment4(target=es5).symbols create mode 100644 tests/baselines/reference/destructuringArrayBindingPatternAndAssignment4(target=es5).types rename tests/baselines/reference/{destructuringParameterDeclaration3ES5iterable.errors.txt => destructuringParameterDeclaration3ES5iterable(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/destructuringParameterDeclaration3ES5iterable(target=es2015).js rename tests/baselines/reference/{destructuringParameterDeclaration3ES5iterable.symbols => destructuringParameterDeclaration3ES5iterable(target=es2015).symbols} (100%) rename tests/baselines/reference/{destructuringParameterDeclaration3ES5iterable.types => destructuringParameterDeclaration3ES5iterable(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/destructuringParameterDeclaration3ES5iterable(target=es5).errors.txt rename tests/baselines/reference/{destructuringParameterDeclaration3ES5iterable.js => destructuringParameterDeclaration3ES5iterable(target=es5).js} (100%) create mode 100644 tests/baselines/reference/destructuringParameterDeclaration3ES5iterable(target=es5).symbols create mode 100644 tests/baselines/reference/destructuringParameterDeclaration3ES5iterable(target=es5).types create mode 100644 tests/baselines/reference/destructuringParameterDeclaration7ES5(target=es2015).js rename tests/baselines/reference/{destructuringParameterDeclaration7ES5.symbols => destructuringParameterDeclaration7ES5(target=es2015).symbols} (100%) create mode 100644 tests/baselines/reference/destructuringParameterDeclaration7ES5(target=es2015).types rename tests/baselines/reference/{destructuringParameterDeclaration7ES5.js => destructuringParameterDeclaration7ES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/destructuringParameterDeclaration7ES5(target=es5).symbols rename tests/baselines/reference/{destructuringParameterDeclaration7ES5.types => destructuringParameterDeclaration7ES5(target=es5).types} (100%) create mode 100644 tests/baselines/reference/destructuringParameterDeclaration7ES5iterable(target=es2015).js rename tests/baselines/reference/{destructuringParameterDeclaration7ES5iterable.symbols => destructuringParameterDeclaration7ES5iterable(target=es2015).symbols} (100%) create mode 100644 tests/baselines/reference/destructuringParameterDeclaration7ES5iterable(target=es2015).types rename tests/baselines/reference/{destructuringParameterDeclaration7ES5iterable.js => destructuringParameterDeclaration7ES5iterable(target=es5).js} (100%) create mode 100644 tests/baselines/reference/destructuringParameterDeclaration7ES5iterable(target=es5).symbols rename tests/baselines/reference/{destructuringParameterDeclaration7ES5iterable.types => destructuringParameterDeclaration7ES5iterable(target=es5).types} (100%) create mode 100644 tests/baselines/reference/destructuringReassignsRightHandSide(target=es2015).js rename tests/baselines/reference/{destructuringReassignsRightHandSide.symbols => destructuringReassignsRightHandSide(target=es2015).symbols} (100%) rename tests/baselines/reference/{destructuringReassignsRightHandSide.types => destructuringReassignsRightHandSide(target=es2015).types} (100%) rename tests/baselines/reference/{destructuringReassignsRightHandSide.js => destructuringReassignsRightHandSide(target=es5).js} (100%) create mode 100644 tests/baselines/reference/destructuringReassignsRightHandSide(target=es5).symbols create mode 100644 tests/baselines/reference/destructuringReassignsRightHandSide(target=es5).types rename tests/baselines/reference/{destructuringTypeAssertionsES5_1.errors.txt => destructuringTypeAssertionsES5_1(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/destructuringTypeAssertionsES5_1(target=es2015).js rename tests/baselines/reference/{destructuringTypeAssertionsES5_1.symbols => destructuringTypeAssertionsES5_1(target=es2015).symbols} (100%) rename tests/baselines/reference/{destructuringTypeAssertionsES5_1.types => destructuringTypeAssertionsES5_1(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/destructuringTypeAssertionsES5_1(target=es5).errors.txt rename tests/baselines/reference/{destructuringTypeAssertionsES5_1.js => destructuringTypeAssertionsES5_1(target=es5).js} (100%) create mode 100644 tests/baselines/reference/destructuringTypeAssertionsES5_1(target=es5).symbols create mode 100644 tests/baselines/reference/destructuringTypeAssertionsES5_1(target=es5).types rename tests/baselines/reference/{destructuringTypeAssertionsES5_2.errors.txt => destructuringTypeAssertionsES5_2(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/destructuringTypeAssertionsES5_2(target=es2015).js rename tests/baselines/reference/{destructuringTypeAssertionsES5_2.symbols => destructuringTypeAssertionsES5_2(target=es2015).symbols} (100%) rename tests/baselines/reference/{destructuringTypeAssertionsES5_2.types => destructuringTypeAssertionsES5_2(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/destructuringTypeAssertionsES5_2(target=es5).errors.txt rename tests/baselines/reference/{destructuringTypeAssertionsES5_2.js => destructuringTypeAssertionsES5_2(target=es5).js} (100%) create mode 100644 tests/baselines/reference/destructuringTypeAssertionsES5_2(target=es5).symbols create mode 100644 tests/baselines/reference/destructuringTypeAssertionsES5_2(target=es5).types rename tests/baselines/reference/{destructuringTypeAssertionsES5_3.errors.txt => destructuringTypeAssertionsES5_3(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/destructuringTypeAssertionsES5_3(target=es2015).js rename tests/baselines/reference/{destructuringTypeAssertionsES5_3.symbols => destructuringTypeAssertionsES5_3(target=es2015).symbols} (100%) rename tests/baselines/reference/{destructuringTypeAssertionsES5_3.types => destructuringTypeAssertionsES5_3(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/destructuringTypeAssertionsES5_3(target=es5).errors.txt rename tests/baselines/reference/{destructuringTypeAssertionsES5_3.js => destructuringTypeAssertionsES5_3(target=es5).js} (100%) create mode 100644 tests/baselines/reference/destructuringTypeAssertionsES5_3(target=es5).symbols create mode 100644 tests/baselines/reference/destructuringTypeAssertionsES5_3(target=es5).types rename tests/baselines/reference/{destructuringTypeAssertionsES5_4.errors.txt => destructuringTypeAssertionsES5_4(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/destructuringTypeAssertionsES5_4(target=es2015).js rename tests/baselines/reference/{destructuringTypeAssertionsES5_4.symbols => destructuringTypeAssertionsES5_4(target=es2015).symbols} (100%) rename tests/baselines/reference/{destructuringTypeAssertionsES5_4.types => destructuringTypeAssertionsES5_4(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/destructuringTypeAssertionsES5_4(target=es5).errors.txt rename tests/baselines/reference/{destructuringTypeAssertionsES5_4.js => destructuringTypeAssertionsES5_4(target=es5).js} (100%) create mode 100644 tests/baselines/reference/destructuringTypeAssertionsES5_4(target=es5).symbols create mode 100644 tests/baselines/reference/destructuringTypeAssertionsES5_4(target=es5).types create mode 100644 tests/baselines/reference/destructuringTypeAssertionsES5_5(target=es2015).js rename tests/baselines/reference/{destructuringTypeAssertionsES5_5.symbols => destructuringTypeAssertionsES5_5(target=es2015).symbols} (100%) rename tests/baselines/reference/{destructuringTypeAssertionsES5_5.types => destructuringTypeAssertionsES5_5(target=es2015).types} (100%) rename tests/baselines/reference/{destructuringTypeAssertionsES5_5.js => destructuringTypeAssertionsES5_5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/destructuringTypeAssertionsES5_5(target=es5).symbols create mode 100644 tests/baselines/reference/destructuringTypeAssertionsES5_5(target=es5).types rename tests/baselines/reference/{destructuringTypeAssertionsES5_6.errors.txt => destructuringTypeAssertionsES5_6(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/destructuringTypeAssertionsES5_6(target=es2015).js rename tests/baselines/reference/{destructuringTypeAssertionsES5_6.symbols => destructuringTypeAssertionsES5_6(target=es2015).symbols} (100%) rename tests/baselines/reference/{destructuringTypeAssertionsES5_6.types => destructuringTypeAssertionsES5_6(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/destructuringTypeAssertionsES5_6(target=es5).errors.txt rename tests/baselines/reference/{destructuringTypeAssertionsES5_6.js => destructuringTypeAssertionsES5_6(target=es5).js} (100%) create mode 100644 tests/baselines/reference/destructuringTypeAssertionsES5_6(target=es5).symbols create mode 100644 tests/baselines/reference/destructuringTypeAssertionsES5_6(target=es5).types rename tests/baselines/reference/{destructuringTypeAssertionsES5_7.errors.txt => destructuringTypeAssertionsES5_7(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/destructuringTypeAssertionsES5_7(target=es2015).js rename tests/baselines/reference/{destructuringTypeAssertionsES5_7.symbols => destructuringTypeAssertionsES5_7(target=es2015).symbols} (100%) rename tests/baselines/reference/{destructuringTypeAssertionsES5_7.types => destructuringTypeAssertionsES5_7(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/destructuringTypeAssertionsES5_7(target=es5).errors.txt rename tests/baselines/reference/{destructuringTypeAssertionsES5_7.js => destructuringTypeAssertionsES5_7(target=es5).js} (100%) create mode 100644 tests/baselines/reference/destructuringTypeAssertionsES5_7(target=es5).symbols create mode 100644 tests/baselines/reference/destructuringTypeAssertionsES5_7(target=es5).types create mode 100644 tests/baselines/reference/divergentAccessorsTypes3(target=es2015).js rename tests/baselines/reference/{divergentAccessorsTypes3.symbols => divergentAccessorsTypes3(target=es2015).symbols} (100%) rename tests/baselines/reference/{divergentAccessorsTypes3.types => divergentAccessorsTypes3(target=es2015).types} (100%) rename tests/baselines/reference/{divergentAccessorsTypes3.js => divergentAccessorsTypes3(target=es5).js} (100%) create mode 100644 tests/baselines/reference/divergentAccessorsTypes3(target=es5).symbols create mode 100644 tests/baselines/reference/divergentAccessorsTypes3(target=es5).types rename tests/baselines/reference/{divergentAccessorsTypes4.errors.txt => divergentAccessorsTypes4(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/divergentAccessorsTypes4(target=es2015).js rename tests/baselines/reference/{divergentAccessorsTypes4.symbols => divergentAccessorsTypes4(target=es2015).symbols} (100%) rename tests/baselines/reference/{divergentAccessorsTypes4.types => divergentAccessorsTypes4(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/divergentAccessorsTypes4(target=es5).errors.txt rename tests/baselines/reference/{divergentAccessorsTypes4.js => divergentAccessorsTypes4(target=es5).js} (100%) create mode 100644 tests/baselines/reference/divergentAccessorsTypes4(target=es5).symbols create mode 100644 tests/baselines/reference/divergentAccessorsTypes4(target=es5).types rename tests/baselines/reference/{divergentAccessorsTypes5.errors.txt => divergentAccessorsTypes5(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/divergentAccessorsTypes5(target=es2015).js rename tests/baselines/reference/{divergentAccessorsTypes5.symbols => divergentAccessorsTypes5(target=es2015).symbols} (100%) rename tests/baselines/reference/{divergentAccessorsTypes5.types => divergentAccessorsTypes5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/divergentAccessorsTypes5(target=es5).errors.txt rename tests/baselines/reference/{divergentAccessorsTypes5.js => divergentAccessorsTypes5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/divergentAccessorsTypes5(target=es5).symbols create mode 100644 tests/baselines/reference/divergentAccessorsTypes5(target=es5).types rename tests/baselines/reference/{doNotElaborateAssignabilityToTypeParameters.errors.txt => doNotElaborateAssignabilityToTypeParameters(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/doNotElaborateAssignabilityToTypeParameters(target=es2015).js rename tests/baselines/reference/{doNotElaborateAssignabilityToTypeParameters.symbols => doNotElaborateAssignabilityToTypeParameters(target=es2015).symbols} (100%) rename tests/baselines/reference/{doNotElaborateAssignabilityToTypeParameters.types => doNotElaborateAssignabilityToTypeParameters(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/doNotElaborateAssignabilityToTypeParameters(target=es5).errors.txt rename tests/baselines/reference/{doNotElaborateAssignabilityToTypeParameters.js => doNotElaborateAssignabilityToTypeParameters(target=es5).js} (100%) create mode 100644 tests/baselines/reference/doNotElaborateAssignabilityToTypeParameters(target=es5).symbols create mode 100644 tests/baselines/reference/doNotElaborateAssignabilityToTypeParameters(target=es5).types rename tests/baselines/reference/{downlevelLetConst12.errors.txt => downlevelLetConst12(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/downlevelLetConst12(target=es2015).js rename tests/baselines/reference/{downlevelLetConst12.symbols => downlevelLetConst12(target=es2015).symbols} (100%) rename tests/baselines/reference/{downlevelLetConst12.types => downlevelLetConst12(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/downlevelLetConst12(target=es5).errors.txt rename tests/baselines/reference/{downlevelLetConst12.js => downlevelLetConst12(target=es5).js} (100%) create mode 100644 tests/baselines/reference/downlevelLetConst12(target=es5).symbols create mode 100644 tests/baselines/reference/downlevelLetConst12(target=es5).types rename tests/baselines/reference/{downlevelLetConst13.js => downlevelLetConst13(target=es2015).js} (100%) rename tests/baselines/reference/{downlevelLetConst13.symbols => downlevelLetConst13(target=es2015).symbols} (100%) rename tests/baselines/reference/{downlevelLetConst13.types => downlevelLetConst13(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/downlevelLetConst13(target=es5).js create mode 100644 tests/baselines/reference/downlevelLetConst13(target=es5).symbols create mode 100644 tests/baselines/reference/downlevelLetConst13(target=es5).types create mode 100644 tests/baselines/reference/downlevelLetConst14(target=es2015).js rename tests/baselines/reference/{downlevelLetConst14.symbols => downlevelLetConst14(target=es2015).symbols} (100%) rename tests/baselines/reference/{downlevelLetConst14.types => downlevelLetConst14(target=es2015).types} (100%) rename tests/baselines/reference/{downlevelLetConst14.js => downlevelLetConst14(target=es5).js} (100%) create mode 100644 tests/baselines/reference/downlevelLetConst14(target=es5).symbols create mode 100644 tests/baselines/reference/downlevelLetConst14(target=es5).types create mode 100644 tests/baselines/reference/downlevelLetConst15(target=es2015).js rename tests/baselines/reference/{downlevelLetConst15.symbols => downlevelLetConst15(target=es2015).symbols} (100%) rename tests/baselines/reference/{downlevelLetConst15.types => downlevelLetConst15(target=es2015).types} (100%) rename tests/baselines/reference/{downlevelLetConst15.js => downlevelLetConst15(target=es5).js} (100%) create mode 100644 tests/baselines/reference/downlevelLetConst15(target=es5).symbols create mode 100644 tests/baselines/reference/downlevelLetConst15(target=es5).types create mode 100644 tests/baselines/reference/downlevelLetConst16(target=es2015).errors.txt create mode 100644 tests/baselines/reference/downlevelLetConst16(target=es2015).js rename tests/baselines/reference/{downlevelLetConst16.symbols => downlevelLetConst16(target=es2015).symbols} (100%) rename tests/baselines/reference/{downlevelLetConst16.types => downlevelLetConst16(target=es2015).types} (100%) rename tests/baselines/reference/{downlevelLetConst16.errors.txt => downlevelLetConst16(target=es5).errors.txt} (100%) rename tests/baselines/reference/{downlevelLetConst16.js => downlevelLetConst16(target=es5).js} (100%) create mode 100644 tests/baselines/reference/downlevelLetConst16(target=es5).symbols create mode 100644 tests/baselines/reference/downlevelLetConst16(target=es5).types create mode 100644 tests/baselines/reference/downlevelLetConst17(target=es2015).js rename tests/baselines/reference/{downlevelLetConst17.symbols => downlevelLetConst17(target=es2015).symbols} (100%) rename tests/baselines/reference/{downlevelLetConst17.types => downlevelLetConst17(target=es2015).types} (100%) rename tests/baselines/reference/{downlevelLetConst17.js => downlevelLetConst17(target=es5).js} (100%) create mode 100644 tests/baselines/reference/downlevelLetConst17(target=es5).symbols create mode 100644 tests/baselines/reference/downlevelLetConst17(target=es5).types create mode 100644 tests/baselines/reference/downlevelLetConst18(target=es2015).js rename tests/baselines/reference/{downlevelLetConst18.symbols => downlevelLetConst18(target=es2015).symbols} (100%) create mode 100644 tests/baselines/reference/downlevelLetConst18(target=es2015).types rename tests/baselines/reference/{downlevelLetConst18.errors.txt => downlevelLetConst18(target=es5).errors.txt} (100%) rename tests/baselines/reference/{downlevelLetConst18.js => downlevelLetConst18(target=es5).js} (100%) create mode 100644 tests/baselines/reference/downlevelLetConst18(target=es5).symbols rename tests/baselines/reference/{downlevelLetConst18.types => downlevelLetConst18(target=es5).types} (100%) rename tests/baselines/reference/{duplicateIdentifierBindingElementInParameterDeclaration1.errors.txt => duplicateIdentifierBindingElementInParameterDeclaration1(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/duplicateIdentifierBindingElementInParameterDeclaration1(target=es2015).js rename tests/baselines/reference/{duplicateIdentifierBindingElementInParameterDeclaration1.symbols => duplicateIdentifierBindingElementInParameterDeclaration1(target=es2015).symbols} (100%) rename tests/baselines/reference/{duplicateIdentifierBindingElementInParameterDeclaration1.types => duplicateIdentifierBindingElementInParameterDeclaration1(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/duplicateIdentifierBindingElementInParameterDeclaration1(target=es5).errors.txt rename tests/baselines/reference/{duplicateIdentifierBindingElementInParameterDeclaration1.js => duplicateIdentifierBindingElementInParameterDeclaration1(target=es5).js} (100%) create mode 100644 tests/baselines/reference/duplicateIdentifierBindingElementInParameterDeclaration1(target=es5).symbols create mode 100644 tests/baselines/reference/duplicateIdentifierBindingElementInParameterDeclaration1(target=es5).types rename tests/baselines/reference/{duplicateIdentifierBindingElementInParameterDeclaration2.errors.txt => duplicateIdentifierBindingElementInParameterDeclaration2(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/duplicateIdentifierBindingElementInParameterDeclaration2(target=es2015).js rename tests/baselines/reference/{duplicateIdentifierBindingElementInParameterDeclaration2.symbols => duplicateIdentifierBindingElementInParameterDeclaration2(target=es2015).symbols} (100%) rename tests/baselines/reference/{duplicateIdentifierBindingElementInParameterDeclaration2.types => duplicateIdentifierBindingElementInParameterDeclaration2(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/duplicateIdentifierBindingElementInParameterDeclaration2(target=es5).errors.txt rename tests/baselines/reference/{duplicateIdentifierBindingElementInParameterDeclaration2.js => duplicateIdentifierBindingElementInParameterDeclaration2(target=es5).js} (100%) create mode 100644 tests/baselines/reference/duplicateIdentifierBindingElementInParameterDeclaration2(target=es5).symbols create mode 100644 tests/baselines/reference/duplicateIdentifierBindingElementInParameterDeclaration2(target=es5).types rename tests/baselines/reference/{duplicateObjectLiteralProperty.errors.txt => duplicateObjectLiteralProperty(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{duplicateObjectLiteralProperty.js => duplicateObjectLiteralProperty(target=es2015).js} (100%) rename tests/baselines/reference/{duplicateObjectLiteralProperty.symbols => duplicateObjectLiteralProperty(target=es2015).symbols} (100%) rename tests/baselines/reference/{duplicateObjectLiteralProperty.types => duplicateObjectLiteralProperty(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/duplicateObjectLiteralProperty(target=es5).errors.txt create mode 100644 tests/baselines/reference/duplicateObjectLiteralProperty(target=es5).js create mode 100644 tests/baselines/reference/duplicateObjectLiteralProperty(target=es5).symbols create mode 100644 tests/baselines/reference/duplicateObjectLiteralProperty(target=es5).types rename tests/baselines/reference/{dynamicImportWithNestedThis_es5.errors.txt => dynamicImportWithNestedThis_es5(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/dynamicImportWithNestedThis_es5(target=es2015).js rename tests/baselines/reference/{dynamicImportWithNestedThis_es5.symbols => dynamicImportWithNestedThis_es5(target=es2015).symbols} (100%) rename tests/baselines/reference/{dynamicImportWithNestedThis_es5.types => dynamicImportWithNestedThis_es5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/dynamicImportWithNestedThis_es5(target=es5).errors.txt rename tests/baselines/reference/{dynamicImportWithNestedThis_es5.js => dynamicImportWithNestedThis_es5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/dynamicImportWithNestedThis_es5(target=es5).symbols create mode 100644 tests/baselines/reference/dynamicImportWithNestedThis_es5(target=es5).types create mode 100644 tests/baselines/reference/emitAccessExpressionOfCastedObjectLiteralExpressionInArrowFunctionES5(target=es2015).js rename tests/baselines/reference/{emitAccessExpressionOfCastedObjectLiteralExpressionInArrowFunctionES5.symbols => emitAccessExpressionOfCastedObjectLiteralExpressionInArrowFunctionES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{emitAccessExpressionOfCastedObjectLiteralExpressionInArrowFunctionES5.types => emitAccessExpressionOfCastedObjectLiteralExpressionInArrowFunctionES5(target=es2015).types} (100%) rename tests/baselines/reference/{emitAccessExpressionOfCastedObjectLiteralExpressionInArrowFunctionES5.js => emitAccessExpressionOfCastedObjectLiteralExpressionInArrowFunctionES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/emitAccessExpressionOfCastedObjectLiteralExpressionInArrowFunctionES5(target=es5).symbols create mode 100644 tests/baselines/reference/emitAccessExpressionOfCastedObjectLiteralExpressionInArrowFunctionES5(target=es5).types create mode 100644 tests/baselines/reference/emitArrowFunction(target=es2015).js rename tests/baselines/reference/{emitArrowFunction.symbols => emitArrowFunction(target=es2015).symbols} (100%) rename tests/baselines/reference/{emitArrowFunction.types => emitArrowFunction(target=es2015).types} (100%) rename tests/baselines/reference/{emitArrowFunction.js => emitArrowFunction(target=es5).js} (100%) create mode 100644 tests/baselines/reference/emitArrowFunction(target=es5).symbols create mode 100644 tests/baselines/reference/emitArrowFunction(target=es5).types create mode 100644 tests/baselines/reference/emitArrowFunctionAsIs(target=es2015).js rename tests/baselines/reference/{emitArrowFunctionAsIs.symbols => emitArrowFunctionAsIs(target=es2015).symbols} (100%) rename tests/baselines/reference/{emitArrowFunctionAsIs.types => emitArrowFunctionAsIs(target=es2015).types} (100%) rename tests/baselines/reference/{emitArrowFunctionAsIs.js => emitArrowFunctionAsIs(target=es5).js} (100%) create mode 100644 tests/baselines/reference/emitArrowFunctionAsIs(target=es5).symbols create mode 100644 tests/baselines/reference/emitArrowFunctionAsIs(target=es5).types rename tests/baselines/reference/{emitArrowFunctionThisCapturing.errors.txt => emitArrowFunctionThisCapturing(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/emitArrowFunctionThisCapturing(target=es2015).js rename tests/baselines/reference/{emitArrowFunctionThisCapturing.symbols => emitArrowFunctionThisCapturing(target=es2015).symbols} (100%) rename tests/baselines/reference/{emitArrowFunctionThisCapturing.types => emitArrowFunctionThisCapturing(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/emitArrowFunctionThisCapturing(target=es5).errors.txt rename tests/baselines/reference/{emitArrowFunctionThisCapturing.js => emitArrowFunctionThisCapturing(target=es5).js} (100%) create mode 100644 tests/baselines/reference/emitArrowFunctionThisCapturing(target=es5).symbols create mode 100644 tests/baselines/reference/emitArrowFunctionThisCapturing(target=es5).types create mode 100644 tests/baselines/reference/emitArrowFunctionWhenUsingArguments01(target=es2015).errors.txt create mode 100644 tests/baselines/reference/emitArrowFunctionWhenUsingArguments01(target=es2015).js create mode 100644 tests/baselines/reference/emitArrowFunctionWhenUsingArguments01(target=es2015).symbols create mode 100644 tests/baselines/reference/emitArrowFunctionWhenUsingArguments01(target=es2015).types rename tests/baselines/reference/{emitArrowFunctionWhenUsingArguments01.errors.txt => emitArrowFunctionWhenUsingArguments01(target=es5).errors.txt} (100%) rename tests/baselines/reference/{emitArrowFunctionWhenUsingArguments01.js => emitArrowFunctionWhenUsingArguments01(target=es5).js} (100%) rename tests/baselines/reference/{emitArrowFunctionWhenUsingArguments01.symbols => emitArrowFunctionWhenUsingArguments01(target=es5).symbols} (100%) rename tests/baselines/reference/{emitArrowFunctionWhenUsingArguments01.types => emitArrowFunctionWhenUsingArguments01(target=es5).types} (100%) create mode 100644 tests/baselines/reference/emitArrowFunctionWhenUsingArguments02(target=es2015).errors.txt create mode 100644 tests/baselines/reference/emitArrowFunctionWhenUsingArguments02(target=es2015).js create mode 100644 tests/baselines/reference/emitArrowFunctionWhenUsingArguments02(target=es2015).symbols create mode 100644 tests/baselines/reference/emitArrowFunctionWhenUsingArguments02(target=es2015).types rename tests/baselines/reference/{emitArrowFunctionWhenUsingArguments02.errors.txt => emitArrowFunctionWhenUsingArguments02(target=es5).errors.txt} (100%) rename tests/baselines/reference/{emitArrowFunctionWhenUsingArguments02.js => emitArrowFunctionWhenUsingArguments02(target=es5).js} (100%) rename tests/baselines/reference/{emitArrowFunctionWhenUsingArguments02.symbols => emitArrowFunctionWhenUsingArguments02(target=es5).symbols} (100%) rename tests/baselines/reference/{emitArrowFunctionWhenUsingArguments02.types => emitArrowFunctionWhenUsingArguments02(target=es5).types} (100%) create mode 100644 tests/baselines/reference/emitArrowFunctionWhenUsingArguments03(target=es2015).js create mode 100644 tests/baselines/reference/emitArrowFunctionWhenUsingArguments03(target=es2015).symbols create mode 100644 tests/baselines/reference/emitArrowFunctionWhenUsingArguments03(target=es2015).types rename tests/baselines/reference/{emitArrowFunctionWhenUsingArguments03.errors.txt => emitArrowFunctionWhenUsingArguments03(target=es5).errors.txt} (100%) rename tests/baselines/reference/{emitArrowFunctionWhenUsingArguments03.js => emitArrowFunctionWhenUsingArguments03(target=es5).js} (100%) rename tests/baselines/reference/{emitArrowFunctionWhenUsingArguments03.symbols => emitArrowFunctionWhenUsingArguments03(target=es5).symbols} (100%) rename tests/baselines/reference/{emitArrowFunctionWhenUsingArguments03.types => emitArrowFunctionWhenUsingArguments03(target=es5).types} (100%) create mode 100644 tests/baselines/reference/emitArrowFunctionWhenUsingArguments04(target=es2015).js create mode 100644 tests/baselines/reference/emitArrowFunctionWhenUsingArguments04(target=es2015).symbols create mode 100644 tests/baselines/reference/emitArrowFunctionWhenUsingArguments04(target=es2015).types rename tests/baselines/reference/{emitArrowFunctionWhenUsingArguments04.errors.txt => emitArrowFunctionWhenUsingArguments04(target=es5).errors.txt} (100%) rename tests/baselines/reference/{emitArrowFunctionWhenUsingArguments04.js => emitArrowFunctionWhenUsingArguments04(target=es5).js} (100%) rename tests/baselines/reference/{emitArrowFunctionWhenUsingArguments04.symbols => emitArrowFunctionWhenUsingArguments04(target=es5).symbols} (100%) rename tests/baselines/reference/{emitArrowFunctionWhenUsingArguments04.types => emitArrowFunctionWhenUsingArguments04(target=es5).types} (100%) create mode 100644 tests/baselines/reference/emitArrowFunctionWhenUsingArguments05(target=es2015).js create mode 100644 tests/baselines/reference/emitArrowFunctionWhenUsingArguments05(target=es2015).symbols create mode 100644 tests/baselines/reference/emitArrowFunctionWhenUsingArguments05(target=es2015).types rename tests/baselines/reference/{emitArrowFunctionWhenUsingArguments05.errors.txt => emitArrowFunctionWhenUsingArguments05(target=es5).errors.txt} (100%) rename tests/baselines/reference/{emitArrowFunctionWhenUsingArguments05.js => emitArrowFunctionWhenUsingArguments05(target=es5).js} (100%) rename tests/baselines/reference/{emitArrowFunctionWhenUsingArguments05.symbols => emitArrowFunctionWhenUsingArguments05(target=es5).symbols} (100%) rename tests/baselines/reference/{emitArrowFunctionWhenUsingArguments05.types => emitArrowFunctionWhenUsingArguments05(target=es5).types} (100%) create mode 100644 tests/baselines/reference/emitArrowFunctionWhenUsingArguments06(target=es2015).js create mode 100644 tests/baselines/reference/emitArrowFunctionWhenUsingArguments06(target=es2015).symbols create mode 100644 tests/baselines/reference/emitArrowFunctionWhenUsingArguments06(target=es2015).types rename tests/baselines/reference/{emitArrowFunctionWhenUsingArguments06.errors.txt => emitArrowFunctionWhenUsingArguments06(target=es5).errors.txt} (100%) rename tests/baselines/reference/{emitArrowFunctionWhenUsingArguments06.js => emitArrowFunctionWhenUsingArguments06(target=es5).js} (100%) rename tests/baselines/reference/{emitArrowFunctionWhenUsingArguments06.symbols => emitArrowFunctionWhenUsingArguments06(target=es5).symbols} (100%) rename tests/baselines/reference/{emitArrowFunctionWhenUsingArguments06.types => emitArrowFunctionWhenUsingArguments06(target=es5).types} (100%) create mode 100644 tests/baselines/reference/emitArrowFunctionWhenUsingArguments07(target=es2015).js create mode 100644 tests/baselines/reference/emitArrowFunctionWhenUsingArguments07(target=es2015).symbols create mode 100644 tests/baselines/reference/emitArrowFunctionWhenUsingArguments07(target=es2015).types rename tests/baselines/reference/{emitArrowFunctionWhenUsingArguments07.errors.txt => emitArrowFunctionWhenUsingArguments07(target=es5).errors.txt} (100%) rename tests/baselines/reference/{emitArrowFunctionWhenUsingArguments07.js => emitArrowFunctionWhenUsingArguments07(target=es5).js} (100%) rename tests/baselines/reference/{emitArrowFunctionWhenUsingArguments07.symbols => emitArrowFunctionWhenUsingArguments07(target=es5).symbols} (100%) rename tests/baselines/reference/{emitArrowFunctionWhenUsingArguments07.types => emitArrowFunctionWhenUsingArguments07(target=es5).types} (100%) create mode 100644 tests/baselines/reference/emitArrowFunctionWhenUsingArguments08(target=es2015).js rename tests/baselines/reference/{emitArrowFunctionWhenUsingArguments08.symbols => emitArrowFunctionWhenUsingArguments08(target=es2015).symbols} (100%) rename tests/baselines/reference/{emitArrowFunctionWhenUsingArguments08.types => emitArrowFunctionWhenUsingArguments08(target=es2015).types} (100%) rename tests/baselines/reference/{emitArrowFunctionWhenUsingArguments08.js => emitArrowFunctionWhenUsingArguments08(target=es5).js} (100%) create mode 100644 tests/baselines/reference/emitArrowFunctionWhenUsingArguments08(target=es5).symbols create mode 100644 tests/baselines/reference/emitArrowFunctionWhenUsingArguments08(target=es5).types create mode 100644 tests/baselines/reference/emitArrowFunctionWhenUsingArguments09(target=es2015).js rename tests/baselines/reference/{emitArrowFunctionWhenUsingArguments09.symbols => emitArrowFunctionWhenUsingArguments09(target=es2015).symbols} (100%) create mode 100644 tests/baselines/reference/emitArrowFunctionWhenUsingArguments09(target=es2015).types rename tests/baselines/reference/{emitArrowFunctionWhenUsingArguments09.errors.txt => emitArrowFunctionWhenUsingArguments09(target=es5).errors.txt} (100%) rename tests/baselines/reference/{emitArrowFunctionWhenUsingArguments09.js => emitArrowFunctionWhenUsingArguments09(target=es5).js} (100%) create mode 100644 tests/baselines/reference/emitArrowFunctionWhenUsingArguments09(target=es5).symbols rename tests/baselines/reference/{emitArrowFunctionWhenUsingArguments09.types => emitArrowFunctionWhenUsingArguments09(target=es5).types} (100%) create mode 100644 tests/baselines/reference/emitArrowFunctionWhenUsingArguments10(target=es2015).js rename tests/baselines/reference/{emitArrowFunctionWhenUsingArguments10.symbols => emitArrowFunctionWhenUsingArguments10(target=es2015).symbols} (100%) rename tests/baselines/reference/{emitArrowFunctionWhenUsingArguments10.types => emitArrowFunctionWhenUsingArguments10(target=es2015).types} (100%) rename tests/baselines/reference/{emitArrowFunctionWhenUsingArguments10.errors.txt => emitArrowFunctionWhenUsingArguments10(target=es5).errors.txt} (100%) rename tests/baselines/reference/{emitArrowFunctionWhenUsingArguments10.js => emitArrowFunctionWhenUsingArguments10(target=es5).js} (100%) create mode 100644 tests/baselines/reference/emitArrowFunctionWhenUsingArguments10(target=es5).symbols create mode 100644 tests/baselines/reference/emitArrowFunctionWhenUsingArguments10(target=es5).types create mode 100644 tests/baselines/reference/emitArrowFunctionWhenUsingArguments11(target=es2015).js create mode 100644 tests/baselines/reference/emitArrowFunctionWhenUsingArguments11(target=es2015).symbols create mode 100644 tests/baselines/reference/emitArrowFunctionWhenUsingArguments11(target=es2015).types rename tests/baselines/reference/{emitArrowFunctionWhenUsingArguments11.errors.txt => emitArrowFunctionWhenUsingArguments11(target=es5).errors.txt} (100%) rename tests/baselines/reference/{emitArrowFunctionWhenUsingArguments11.js => emitArrowFunctionWhenUsingArguments11(target=es5).js} (100%) rename tests/baselines/reference/{emitArrowFunctionWhenUsingArguments11.symbols => emitArrowFunctionWhenUsingArguments11(target=es5).symbols} (100%) rename tests/baselines/reference/{emitArrowFunctionWhenUsingArguments11.types => emitArrowFunctionWhenUsingArguments11(target=es5).types} (100%) create mode 100644 tests/baselines/reference/emitArrowFunctionWhenUsingArguments12(target=es2015).errors.txt create mode 100644 tests/baselines/reference/emitArrowFunctionWhenUsingArguments12(target=es2015).js create mode 100644 tests/baselines/reference/emitArrowFunctionWhenUsingArguments12(target=es2015).symbols create mode 100644 tests/baselines/reference/emitArrowFunctionWhenUsingArguments12(target=es2015).types rename tests/baselines/reference/{emitArrowFunctionWhenUsingArguments12.errors.txt => emitArrowFunctionWhenUsingArguments12(target=es5).errors.txt} (100%) rename tests/baselines/reference/{emitArrowFunctionWhenUsingArguments12.js => emitArrowFunctionWhenUsingArguments12(target=es5).js} (100%) rename tests/baselines/reference/{emitArrowFunctionWhenUsingArguments12.symbols => emitArrowFunctionWhenUsingArguments12(target=es5).symbols} (100%) rename tests/baselines/reference/{emitArrowFunctionWhenUsingArguments12.types => emitArrowFunctionWhenUsingArguments12(target=es5).types} (100%) create mode 100644 tests/baselines/reference/emitArrowFunctionWhenUsingArguments13(target=es2015).js rename tests/baselines/reference/{emitArrowFunctionWhenUsingArguments13.symbols => emitArrowFunctionWhenUsingArguments13(target=es2015).symbols} (100%) rename tests/baselines/reference/{emitArrowFunctionWhenUsingArguments13.types => emitArrowFunctionWhenUsingArguments13(target=es2015).types} (100%) rename tests/baselines/reference/{emitArrowFunctionWhenUsingArguments13.js => emitArrowFunctionWhenUsingArguments13(target=es5).js} (100%) create mode 100644 tests/baselines/reference/emitArrowFunctionWhenUsingArguments13(target=es5).symbols create mode 100644 tests/baselines/reference/emitArrowFunctionWhenUsingArguments13(target=es5).types create mode 100644 tests/baselines/reference/emitArrowFunctionWhenUsingArguments14(target=es2015).js create mode 100644 tests/baselines/reference/emitArrowFunctionWhenUsingArguments14(target=es2015).symbols create mode 100644 tests/baselines/reference/emitArrowFunctionWhenUsingArguments14(target=es2015).types rename tests/baselines/reference/{emitArrowFunctionWhenUsingArguments14.errors.txt => emitArrowFunctionWhenUsingArguments14(target=es5).errors.txt} (100%) rename tests/baselines/reference/{emitArrowFunctionWhenUsingArguments14.js => emitArrowFunctionWhenUsingArguments14(target=es5).js} (100%) rename tests/baselines/reference/{emitArrowFunctionWhenUsingArguments14.symbols => emitArrowFunctionWhenUsingArguments14(target=es5).symbols} (100%) rename tests/baselines/reference/{emitArrowFunctionWhenUsingArguments14.types => emitArrowFunctionWhenUsingArguments14(target=es5).types} (100%) create mode 100644 tests/baselines/reference/emitArrowFunctionWhenUsingArguments15(target=es2015).js create mode 100644 tests/baselines/reference/emitArrowFunctionWhenUsingArguments15(target=es2015).symbols create mode 100644 tests/baselines/reference/emitArrowFunctionWhenUsingArguments15(target=es2015).types rename tests/baselines/reference/{emitArrowFunctionWhenUsingArguments15.errors.txt => emitArrowFunctionWhenUsingArguments15(target=es5).errors.txt} (100%) rename tests/baselines/reference/{emitArrowFunctionWhenUsingArguments15.js => emitArrowFunctionWhenUsingArguments15(target=es5).js} (100%) rename tests/baselines/reference/{emitArrowFunctionWhenUsingArguments15.symbols => emitArrowFunctionWhenUsingArguments15(target=es5).symbols} (100%) rename tests/baselines/reference/{emitArrowFunctionWhenUsingArguments15.types => emitArrowFunctionWhenUsingArguments15(target=es5).types} (100%) create mode 100644 tests/baselines/reference/emitArrowFunctionWhenUsingArguments16(target=es2015).js create mode 100644 tests/baselines/reference/emitArrowFunctionWhenUsingArguments16(target=es2015).symbols create mode 100644 tests/baselines/reference/emitArrowFunctionWhenUsingArguments16(target=es2015).types rename tests/baselines/reference/{emitArrowFunctionWhenUsingArguments16.errors.txt => emitArrowFunctionWhenUsingArguments16(target=es5).errors.txt} (100%) rename tests/baselines/reference/{emitArrowFunctionWhenUsingArguments16.js => emitArrowFunctionWhenUsingArguments16(target=es5).js} (100%) rename tests/baselines/reference/{emitArrowFunctionWhenUsingArguments16.symbols => emitArrowFunctionWhenUsingArguments16(target=es5).symbols} (100%) rename tests/baselines/reference/{emitArrowFunctionWhenUsingArguments16.types => emitArrowFunctionWhenUsingArguments16(target=es5).types} (100%) create mode 100644 tests/baselines/reference/emitArrowFunctionWhenUsingArguments17(target=es2015).js create mode 100644 tests/baselines/reference/emitArrowFunctionWhenUsingArguments17(target=es2015).symbols create mode 100644 tests/baselines/reference/emitArrowFunctionWhenUsingArguments17(target=es2015).types rename tests/baselines/reference/{emitArrowFunctionWhenUsingArguments17.errors.txt => emitArrowFunctionWhenUsingArguments17(target=es5).errors.txt} (100%) rename tests/baselines/reference/{emitArrowFunctionWhenUsingArguments17.js => emitArrowFunctionWhenUsingArguments17(target=es5).js} (100%) rename tests/baselines/reference/{emitArrowFunctionWhenUsingArguments17.symbols => emitArrowFunctionWhenUsingArguments17(target=es5).symbols} (100%) rename tests/baselines/reference/{emitArrowFunctionWhenUsingArguments17.types => emitArrowFunctionWhenUsingArguments17(target=es5).types} (100%) create mode 100644 tests/baselines/reference/emitArrowFunctionWhenUsingArguments18(target=es2015).js rename tests/baselines/reference/{emitArrowFunctionWhenUsingArguments18.symbols => emitArrowFunctionWhenUsingArguments18(target=es2015).symbols} (100%) rename tests/baselines/reference/{emitArrowFunctionWhenUsingArguments18.types => emitArrowFunctionWhenUsingArguments18(target=es2015).types} (100%) rename tests/baselines/reference/{emitArrowFunctionWhenUsingArguments18.errors.txt => emitArrowFunctionWhenUsingArguments18(target=es5).errors.txt} (100%) rename tests/baselines/reference/{emitArrowFunctionWhenUsingArguments18.js => emitArrowFunctionWhenUsingArguments18(target=es5).js} (100%) create mode 100644 tests/baselines/reference/emitArrowFunctionWhenUsingArguments18(target=es5).symbols create mode 100644 tests/baselines/reference/emitArrowFunctionWhenUsingArguments18(target=es5).types create mode 100644 tests/baselines/reference/emitArrowFunctionWhenUsingArguments19(target=es2015).js rename tests/baselines/reference/{emitArrowFunctionWhenUsingArguments19.symbols => emitArrowFunctionWhenUsingArguments19(target=es2015).symbols} (100%) create mode 100644 tests/baselines/reference/emitArrowFunctionWhenUsingArguments19(target=es2015).types rename tests/baselines/reference/{emitArrowFunctionWhenUsingArguments19.errors.txt => emitArrowFunctionWhenUsingArguments19(target=es5).errors.txt} (100%) rename tests/baselines/reference/{emitArrowFunctionWhenUsingArguments19.js => emitArrowFunctionWhenUsingArguments19(target=es5).js} (100%) create mode 100644 tests/baselines/reference/emitArrowFunctionWhenUsingArguments19(target=es5).symbols rename tests/baselines/reference/{emitArrowFunctionWhenUsingArguments19.types => emitArrowFunctionWhenUsingArguments19(target=es5).types} (100%) create mode 100644 tests/baselines/reference/emitArrowFunctionsAsIs(target=es2015).js rename tests/baselines/reference/{emitArrowFunctionsAsIs.symbols => emitArrowFunctionsAsIs(target=es2015).symbols} (100%) rename tests/baselines/reference/{emitArrowFunctionsAsIs.types => emitArrowFunctionsAsIs(target=es2015).types} (100%) rename tests/baselines/reference/{emitArrowFunctionsAsIs.js => emitArrowFunctionsAsIs(target=es5).js} (100%) create mode 100644 tests/baselines/reference/emitArrowFunctionsAsIs(target=es5).symbols create mode 100644 tests/baselines/reference/emitArrowFunctionsAsIs(target=es5).types rename tests/baselines/reference/{emitBundleWithPrologueDirectives1.errors.txt => emitBundleWithPrologueDirectives1(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/emitBundleWithPrologueDirectives1(target=es2015).js rename tests/baselines/reference/{emitBundleWithPrologueDirectives1.symbols => emitBundleWithPrologueDirectives1(target=es2015).symbols} (100%) rename tests/baselines/reference/{emitBundleWithPrologueDirectives1.types => emitBundleWithPrologueDirectives1(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/emitBundleWithPrologueDirectives1(target=es5).errors.txt rename tests/baselines/reference/{emitBundleWithPrologueDirectives1.js => emitBundleWithPrologueDirectives1(target=es5).js} (100%) create mode 100644 tests/baselines/reference/emitBundleWithPrologueDirectives1(target=es5).symbols create mode 100644 tests/baselines/reference/emitBundleWithPrologueDirectives1(target=es5).types rename tests/baselines/reference/{emitBundleWithShebang1.errors.txt => emitBundleWithShebang1(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/emitBundleWithShebang1(target=es2015).js rename tests/baselines/reference/{emitBundleWithShebang1.symbols => emitBundleWithShebang1(target=es2015).symbols} (100%) rename tests/baselines/reference/{emitBundleWithShebang1.types => emitBundleWithShebang1(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/emitBundleWithShebang1(target=es5).errors.txt rename tests/baselines/reference/{emitBundleWithShebang1.js => emitBundleWithShebang1(target=es5).js} (100%) create mode 100644 tests/baselines/reference/emitBundleWithShebang1(target=es5).symbols create mode 100644 tests/baselines/reference/emitBundleWithShebang1(target=es5).types rename tests/baselines/reference/{emitBundleWithShebang2.errors.txt => emitBundleWithShebang2(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/emitBundleWithShebang2(target=es2015).js rename tests/baselines/reference/{emitBundleWithShebang2.symbols => emitBundleWithShebang2(target=es2015).symbols} (100%) rename tests/baselines/reference/{emitBundleWithShebang2.types => emitBundleWithShebang2(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/emitBundleWithShebang2(target=es5).errors.txt rename tests/baselines/reference/{emitBundleWithShebang2.js => emitBundleWithShebang2(target=es5).js} (100%) create mode 100644 tests/baselines/reference/emitBundleWithShebang2(target=es5).symbols create mode 100644 tests/baselines/reference/emitBundleWithShebang2(target=es5).types rename tests/baselines/reference/{emitBundleWithShebangAndPrologueDirectives1.errors.txt => emitBundleWithShebangAndPrologueDirectives1(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives1(target=es2015).js rename tests/baselines/reference/{emitBundleWithShebangAndPrologueDirectives1.symbols => emitBundleWithShebangAndPrologueDirectives1(target=es2015).symbols} (100%) rename tests/baselines/reference/{emitBundleWithShebangAndPrologueDirectives1.types => emitBundleWithShebangAndPrologueDirectives1(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives1(target=es5).errors.txt rename tests/baselines/reference/{emitBundleWithShebangAndPrologueDirectives1.js => emitBundleWithShebangAndPrologueDirectives1(target=es5).js} (100%) create mode 100644 tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives1(target=es5).symbols create mode 100644 tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives1(target=es5).types rename tests/baselines/reference/{emitBundleWithShebangAndPrologueDirectives2.errors.txt => emitBundleWithShebangAndPrologueDirectives2(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives2(target=es2015).js rename tests/baselines/reference/{emitBundleWithShebangAndPrologueDirectives2.symbols => emitBundleWithShebangAndPrologueDirectives2(target=es2015).symbols} (100%) rename tests/baselines/reference/{emitBundleWithShebangAndPrologueDirectives2.types => emitBundleWithShebangAndPrologueDirectives2(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives2(target=es5).errors.txt rename tests/baselines/reference/{emitBundleWithShebangAndPrologueDirectives2.js => emitBundleWithShebangAndPrologueDirectives2(target=es5).js} (100%) create mode 100644 tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives2(target=es5).symbols create mode 100644 tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives2(target=es5).types rename tests/baselines/reference/{emitCompoundExponentiationAssignmentWithIndexingOnLHS1.js => emitCompoundExponentiationAssignmentWithIndexingOnLHS1(target=es2015).js} (100%) rename tests/baselines/reference/{emitCompoundExponentiationAssignmentWithIndexingOnLHS1.symbols => emitCompoundExponentiationAssignmentWithIndexingOnLHS1(target=es2015).symbols} (100%) rename tests/baselines/reference/{emitCompoundExponentiationAssignmentWithIndexingOnLHS1.types => emitCompoundExponentiationAssignmentWithIndexingOnLHS1(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS1(target=es5).js create mode 100644 tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS1(target=es5).symbols create mode 100644 tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS1(target=es5).types rename tests/baselines/reference/{emitCompoundExponentiationAssignmentWithIndexingOnLHS2.js => emitCompoundExponentiationAssignmentWithIndexingOnLHS2(target=es2015).js} (100%) rename tests/baselines/reference/{emitCompoundExponentiationAssignmentWithIndexingOnLHS2.symbols => emitCompoundExponentiationAssignmentWithIndexingOnLHS2(target=es2015).symbols} (100%) rename tests/baselines/reference/{emitCompoundExponentiationAssignmentWithIndexingOnLHS2.types => emitCompoundExponentiationAssignmentWithIndexingOnLHS2(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS2(target=es5).js create mode 100644 tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS2(target=es5).symbols create mode 100644 tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS2(target=es5).types rename tests/baselines/reference/{emitCompoundExponentiationAssignmentWithIndexingOnLHS3.js => emitCompoundExponentiationAssignmentWithIndexingOnLHS3(target=es2015).js} (100%) rename tests/baselines/reference/{emitCompoundExponentiationAssignmentWithIndexingOnLHS3.symbols => emitCompoundExponentiationAssignmentWithIndexingOnLHS3(target=es2015).symbols} (100%) rename tests/baselines/reference/{emitCompoundExponentiationAssignmentWithIndexingOnLHS3.types => emitCompoundExponentiationAssignmentWithIndexingOnLHS3(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS3(target=es5).js create mode 100644 tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS3(target=es5).symbols create mode 100644 tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS3(target=es5).types create mode 100644 tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS4(target=es2015).js rename tests/baselines/reference/{emitCompoundExponentiationAssignmentWithIndexingOnLHS4.symbols => emitCompoundExponentiationAssignmentWithIndexingOnLHS4(target=es2015).symbols} (100%) rename tests/baselines/reference/{emitCompoundExponentiationAssignmentWithIndexingOnLHS4.types => emitCompoundExponentiationAssignmentWithIndexingOnLHS4(target=es2015).types} (100%) rename tests/baselines/reference/{emitCompoundExponentiationAssignmentWithIndexingOnLHS4.js => emitCompoundExponentiationAssignmentWithIndexingOnLHS4(target=es5).js} (100%) create mode 100644 tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS4(target=es5).symbols create mode 100644 tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS4(target=es5).types rename tests/baselines/reference/{emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1.js => emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1(target=es2015).js} (100%) rename tests/baselines/reference/{emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1.symbols => emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1(target=es2015).symbols} (100%) rename tests/baselines/reference/{emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1.types => emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1(target=es5).js create mode 100644 tests/baselines/reference/emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1(target=es5).symbols create mode 100644 tests/baselines/reference/emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1(target=es5).types rename tests/baselines/reference/{emitCompoundExponentiationOperator1.js => emitCompoundExponentiationOperator1(target=es2015).js} (100%) rename tests/baselines/reference/{emitCompoundExponentiationOperator1.symbols => emitCompoundExponentiationOperator1(target=es2015).symbols} (100%) rename tests/baselines/reference/{emitCompoundExponentiationOperator1.types => emitCompoundExponentiationOperator1(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/emitCompoundExponentiationOperator1(target=es5).js create mode 100644 tests/baselines/reference/emitCompoundExponentiationOperator1(target=es5).symbols create mode 100644 tests/baselines/reference/emitCompoundExponentiationOperator1(target=es5).types rename tests/baselines/reference/{emitCompoundExponentiationOperator2.js => emitCompoundExponentiationOperator2(target=es2015).js} (100%) rename tests/baselines/reference/{emitCompoundExponentiationOperator2.symbols => emitCompoundExponentiationOperator2(target=es2015).symbols} (100%) rename tests/baselines/reference/{emitCompoundExponentiationOperator2.types => emitCompoundExponentiationOperator2(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/emitCompoundExponentiationOperator2(target=es5).js create mode 100644 tests/baselines/reference/emitCompoundExponentiationOperator2(target=es5).symbols create mode 100644 tests/baselines/reference/emitCompoundExponentiationOperator2(target=es5).types create mode 100644 tests/baselines/reference/emitDecoratorMetadata_object(target=es2015).js rename tests/baselines/reference/{emitDecoratorMetadata_object.symbols => emitDecoratorMetadata_object(target=es2015).symbols} (100%) rename tests/baselines/reference/{emitDecoratorMetadata_object.types => emitDecoratorMetadata_object(target=es2015).types} (100%) rename tests/baselines/reference/{emitDecoratorMetadata_object.js => emitDecoratorMetadata_object(target=es5).js} (100%) create mode 100644 tests/baselines/reference/emitDecoratorMetadata_object(target=es5).symbols create mode 100644 tests/baselines/reference/emitDecoratorMetadata_object(target=es5).types create mode 100644 tests/baselines/reference/emitDecoratorMetadata_restArgs(target=es2015).js rename tests/baselines/reference/{emitDecoratorMetadata_restArgs.symbols => emitDecoratorMetadata_restArgs(target=es2015).symbols} (100%) rename tests/baselines/reference/{emitDecoratorMetadata_restArgs.types => emitDecoratorMetadata_restArgs(target=es2015).types} (100%) rename tests/baselines/reference/{emitDecoratorMetadata_restArgs.js => emitDecoratorMetadata_restArgs(target=es5).js} (100%) create mode 100644 tests/baselines/reference/emitDecoratorMetadata_restArgs(target=es5).symbols create mode 100644 tests/baselines/reference/emitDecoratorMetadata_restArgs(target=es5).types create mode 100644 tests/baselines/reference/emitDefaultParametersFunction(target=es2015).js rename tests/baselines/reference/{emitDefaultParametersFunction.symbols => emitDefaultParametersFunction(target=es2015).symbols} (100%) rename tests/baselines/reference/{emitDefaultParametersFunction.types => emitDefaultParametersFunction(target=es2015).types} (100%) rename tests/baselines/reference/{emitDefaultParametersFunction.js => emitDefaultParametersFunction(target=es5).js} (100%) create mode 100644 tests/baselines/reference/emitDefaultParametersFunction(target=es5).symbols create mode 100644 tests/baselines/reference/emitDefaultParametersFunction(target=es5).types create mode 100644 tests/baselines/reference/emitDefaultParametersFunctionExpression(target=es2015).js rename tests/baselines/reference/{emitDefaultParametersFunctionExpression.symbols => emitDefaultParametersFunctionExpression(target=es2015).symbols} (100%) rename tests/baselines/reference/{emitDefaultParametersFunctionExpression.types => emitDefaultParametersFunctionExpression(target=es2015).types} (100%) rename tests/baselines/reference/{emitDefaultParametersFunctionExpression.js => emitDefaultParametersFunctionExpression(target=es5).js} (100%) create mode 100644 tests/baselines/reference/emitDefaultParametersFunctionExpression(target=es5).symbols create mode 100644 tests/baselines/reference/emitDefaultParametersFunctionExpression(target=es5).types create mode 100644 tests/baselines/reference/emitDefaultParametersFunctionProperty(target=es2015).js rename tests/baselines/reference/{emitDefaultParametersFunctionProperty.symbols => emitDefaultParametersFunctionProperty(target=es2015).symbols} (100%) rename tests/baselines/reference/{emitDefaultParametersFunctionProperty.types => emitDefaultParametersFunctionProperty(target=es2015).types} (100%) rename tests/baselines/reference/{emitDefaultParametersFunctionProperty.js => emitDefaultParametersFunctionProperty(target=es5).js} (100%) create mode 100644 tests/baselines/reference/emitDefaultParametersFunctionProperty(target=es5).symbols create mode 100644 tests/baselines/reference/emitDefaultParametersFunctionProperty(target=es5).types create mode 100644 tests/baselines/reference/emitDefaultParametersMethod(target=es2015).js rename tests/baselines/reference/{emitDefaultParametersMethod.symbols => emitDefaultParametersMethod(target=es2015).symbols} (100%) rename tests/baselines/reference/{emitDefaultParametersMethod.types => emitDefaultParametersMethod(target=es2015).types} (100%) rename tests/baselines/reference/{emitDefaultParametersMethod.js => emitDefaultParametersMethod(target=es5).js} (100%) create mode 100644 tests/baselines/reference/emitDefaultParametersMethod(target=es5).symbols create mode 100644 tests/baselines/reference/emitDefaultParametersMethod(target=es5).types rename tests/baselines/reference/{emitExponentiationOperator1.js => emitExponentiationOperator1(target=es2015).js} (100%) rename tests/baselines/reference/{emitExponentiationOperator1.symbols => emitExponentiationOperator1(target=es2015).symbols} (100%) rename tests/baselines/reference/{emitExponentiationOperator1.types => emitExponentiationOperator1(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/emitExponentiationOperator1(target=es5).js create mode 100644 tests/baselines/reference/emitExponentiationOperator1(target=es5).symbols create mode 100644 tests/baselines/reference/emitExponentiationOperator1(target=es5).types rename tests/baselines/reference/{emitExponentiationOperator2.js => emitExponentiationOperator2(target=es2015).js} (100%) rename tests/baselines/reference/{emitExponentiationOperator2.symbols => emitExponentiationOperator2(target=es2015).symbols} (100%) rename tests/baselines/reference/{emitExponentiationOperator2.types => emitExponentiationOperator2(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/emitExponentiationOperator2(target=es5).js create mode 100644 tests/baselines/reference/emitExponentiationOperator2(target=es5).symbols create mode 100644 tests/baselines/reference/emitExponentiationOperator2(target=es5).types rename tests/baselines/reference/{emitExponentiationOperator3.js => emitExponentiationOperator3(target=es2015).js} (100%) rename tests/baselines/reference/{emitExponentiationOperator3.symbols => emitExponentiationOperator3(target=es2015).symbols} (100%) rename tests/baselines/reference/{emitExponentiationOperator3.types => emitExponentiationOperator3(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/emitExponentiationOperator3(target=es5).js create mode 100644 tests/baselines/reference/emitExponentiationOperator3(target=es5).symbols create mode 100644 tests/baselines/reference/emitExponentiationOperator3(target=es5).types rename tests/baselines/reference/{emitExponentiationOperator4.errors.txt => emitExponentiationOperator4(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{emitExponentiationOperator4.js => emitExponentiationOperator4(target=es2015).js} (100%) rename tests/baselines/reference/{emitExponentiationOperator4.symbols => emitExponentiationOperator4(target=es2015).symbols} (100%) rename tests/baselines/reference/{emitExponentiationOperator4.types => emitExponentiationOperator4(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/emitExponentiationOperator4(target=es5).errors.txt create mode 100644 tests/baselines/reference/emitExponentiationOperator4(target=es5).js create mode 100644 tests/baselines/reference/emitExponentiationOperator4(target=es5).symbols create mode 100644 tests/baselines/reference/emitExponentiationOperator4(target=es5).types create mode 100644 tests/baselines/reference/emitExponentiationOperatorInTempalteString4(target=es2015).js rename tests/baselines/reference/{emitExponentiationOperatorInTempalteString4.symbols => emitExponentiationOperatorInTempalteString4(target=es2015).symbols} (100%) rename tests/baselines/reference/{emitExponentiationOperatorInTempalteString4.types => emitExponentiationOperatorInTempalteString4(target=es2015).types} (100%) rename tests/baselines/reference/{emitExponentiationOperatorInTempalteString4.js => emitExponentiationOperatorInTempalteString4(target=es5).js} (100%) create mode 100644 tests/baselines/reference/emitExponentiationOperatorInTempalteString4(target=es5).symbols create mode 100644 tests/baselines/reference/emitExponentiationOperatorInTempalteString4(target=es5).types create mode 100644 tests/baselines/reference/emitExponentiationOperatorInTemplateString1(target=es2015).js rename tests/baselines/reference/{emitExponentiationOperatorInTemplateString1.symbols => emitExponentiationOperatorInTemplateString1(target=es2015).symbols} (100%) rename tests/baselines/reference/{emitExponentiationOperatorInTemplateString1.types => emitExponentiationOperatorInTemplateString1(target=es2015).types} (100%) rename tests/baselines/reference/{emitExponentiationOperatorInTemplateString1.js => emitExponentiationOperatorInTemplateString1(target=es5).js} (100%) create mode 100644 tests/baselines/reference/emitExponentiationOperatorInTemplateString1(target=es5).symbols create mode 100644 tests/baselines/reference/emitExponentiationOperatorInTemplateString1(target=es5).types create mode 100644 tests/baselines/reference/emitExponentiationOperatorInTemplateString2(target=es2015).js rename tests/baselines/reference/{emitExponentiationOperatorInTemplateString2.symbols => emitExponentiationOperatorInTemplateString2(target=es2015).symbols} (100%) rename tests/baselines/reference/{emitExponentiationOperatorInTemplateString2.types => emitExponentiationOperatorInTemplateString2(target=es2015).types} (100%) rename tests/baselines/reference/{emitExponentiationOperatorInTemplateString2.js => emitExponentiationOperatorInTemplateString2(target=es5).js} (100%) create mode 100644 tests/baselines/reference/emitExponentiationOperatorInTemplateString2(target=es5).symbols create mode 100644 tests/baselines/reference/emitExponentiationOperatorInTemplateString2(target=es5).types create mode 100644 tests/baselines/reference/emitExponentiationOperatorInTemplateString3(target=es2015).js rename tests/baselines/reference/{emitExponentiationOperatorInTemplateString3.symbols => emitExponentiationOperatorInTemplateString3(target=es2015).symbols} (100%) rename tests/baselines/reference/{emitExponentiationOperatorInTemplateString3.types => emitExponentiationOperatorInTemplateString3(target=es2015).types} (100%) rename tests/baselines/reference/{emitExponentiationOperatorInTemplateString3.js => emitExponentiationOperatorInTemplateString3(target=es5).js} (100%) create mode 100644 tests/baselines/reference/emitExponentiationOperatorInTemplateString3(target=es5).symbols create mode 100644 tests/baselines/reference/emitExponentiationOperatorInTemplateString3(target=es5).types create mode 100644 tests/baselines/reference/emitRestParametersFunction(target=es2015).js rename tests/baselines/reference/{emitRestParametersFunction.symbols => emitRestParametersFunction(target=es2015).symbols} (100%) rename tests/baselines/reference/{emitRestParametersFunction.types => emitRestParametersFunction(target=es2015).types} (100%) rename tests/baselines/reference/{emitRestParametersFunction.js => emitRestParametersFunction(target=es5).js} (100%) create mode 100644 tests/baselines/reference/emitRestParametersFunction(target=es5).symbols create mode 100644 tests/baselines/reference/emitRestParametersFunction(target=es5).types create mode 100644 tests/baselines/reference/emitRestParametersFunctionExpression(target=es2015).js rename tests/baselines/reference/{emitRestParametersFunctionExpression.symbols => emitRestParametersFunctionExpression(target=es2015).symbols} (100%) rename tests/baselines/reference/{emitRestParametersFunctionExpression.types => emitRestParametersFunctionExpression(target=es2015).types} (100%) rename tests/baselines/reference/{emitRestParametersFunctionExpression.js => emitRestParametersFunctionExpression(target=es5).js} (100%) create mode 100644 tests/baselines/reference/emitRestParametersFunctionExpression(target=es5).symbols create mode 100644 tests/baselines/reference/emitRestParametersFunctionExpression(target=es5).types create mode 100644 tests/baselines/reference/emitRestParametersFunctionProperty(target=es2015).js rename tests/baselines/reference/{emitRestParametersFunctionProperty.symbols => emitRestParametersFunctionProperty(target=es2015).symbols} (100%) rename tests/baselines/reference/{emitRestParametersFunctionProperty.types => emitRestParametersFunctionProperty(target=es2015).types} (100%) rename tests/baselines/reference/{emitRestParametersFunctionProperty.js => emitRestParametersFunctionProperty(target=es5).js} (100%) create mode 100644 tests/baselines/reference/emitRestParametersFunctionProperty(target=es5).symbols create mode 100644 tests/baselines/reference/emitRestParametersFunctionProperty(target=es5).types create mode 100644 tests/baselines/reference/emitRestParametersMethod(target=es2015).js rename tests/baselines/reference/{emitRestParametersMethod.symbols => emitRestParametersMethod(target=es2015).symbols} (100%) rename tests/baselines/reference/{emitRestParametersMethod.types => emitRestParametersMethod(target=es2015).types} (100%) rename tests/baselines/reference/{emitRestParametersMethod.js => emitRestParametersMethod(target=es5).js} (100%) create mode 100644 tests/baselines/reference/emitRestParametersMethod(target=es5).symbols create mode 100644 tests/baselines/reference/emitRestParametersMethod(target=es5).types create mode 100644 tests/baselines/reference/emitThisInObjectLiteralGetter(target=es2015).js rename tests/baselines/reference/{emitThisInObjectLiteralGetter.symbols => emitThisInObjectLiteralGetter(target=es2015).symbols} (100%) rename tests/baselines/reference/{emitThisInObjectLiteralGetter.types => emitThisInObjectLiteralGetter(target=es2015).types} (100%) rename tests/baselines/reference/{emitThisInObjectLiteralGetter.js => emitThisInObjectLiteralGetter(target=es5).js} (100%) create mode 100644 tests/baselines/reference/emitThisInObjectLiteralGetter(target=es5).symbols create mode 100644 tests/baselines/reference/emitThisInObjectLiteralGetter(target=es5).types create mode 100644 tests/baselines/reference/emitter.asyncGenerators.classMethods.es5(target=es2015).js rename tests/baselines/reference/{emitter.asyncGenerators.classMethods.es5.symbols => emitter.asyncGenerators.classMethods.es5(target=es2015).symbols} (100%) rename tests/baselines/reference/{emitter.asyncGenerators.classMethods.es5.types => emitter.asyncGenerators.classMethods.es5(target=es2015).types} (100%) rename tests/baselines/reference/{emitter.asyncGenerators.classMethods.es5.js => emitter.asyncGenerators.classMethods.es5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/emitter.asyncGenerators.classMethods.es5(target=es5).symbols create mode 100644 tests/baselines/reference/emitter.asyncGenerators.classMethods.es5(target=es5).types create mode 100644 tests/baselines/reference/emitter.asyncGenerators.functionDeclarations.es5(target=es2015).js rename tests/baselines/reference/{emitter.asyncGenerators.functionDeclarations.es5.symbols => emitter.asyncGenerators.functionDeclarations.es5(target=es2015).symbols} (100%) rename tests/baselines/reference/{emitter.asyncGenerators.functionDeclarations.es5.types => emitter.asyncGenerators.functionDeclarations.es5(target=es2015).types} (100%) rename tests/baselines/reference/{emitter.asyncGenerators.functionDeclarations.es5.js => emitter.asyncGenerators.functionDeclarations.es5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/emitter.asyncGenerators.functionDeclarations.es5(target=es5).symbols create mode 100644 tests/baselines/reference/emitter.asyncGenerators.functionDeclarations.es5(target=es5).types create mode 100644 tests/baselines/reference/emitter.asyncGenerators.functionExpressions.es5(target=es2015).js rename tests/baselines/reference/{emitter.asyncGenerators.functionExpressions.es5.symbols => emitter.asyncGenerators.functionExpressions.es5(target=es2015).symbols} (100%) rename tests/baselines/reference/{emitter.asyncGenerators.functionExpressions.es5.types => emitter.asyncGenerators.functionExpressions.es5(target=es2015).types} (100%) rename tests/baselines/reference/{emitter.asyncGenerators.functionExpressions.es5.js => emitter.asyncGenerators.functionExpressions.es5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/emitter.asyncGenerators.functionExpressions.es5(target=es5).symbols create mode 100644 tests/baselines/reference/emitter.asyncGenerators.functionExpressions.es5(target=es5).types create mode 100644 tests/baselines/reference/emitter.asyncGenerators.objectLiteralMethods.es5(target=es2015).js rename tests/baselines/reference/{emitter.asyncGenerators.objectLiteralMethods.es5.symbols => emitter.asyncGenerators.objectLiteralMethods.es5(target=es2015).symbols} (100%) rename tests/baselines/reference/{emitter.asyncGenerators.objectLiteralMethods.es5.types => emitter.asyncGenerators.objectLiteralMethods.es5(target=es2015).types} (100%) rename tests/baselines/reference/{emitter.asyncGenerators.objectLiteralMethods.es5.js => emitter.asyncGenerators.objectLiteralMethods.es5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/emitter.asyncGenerators.objectLiteralMethods.es5(target=es5).symbols create mode 100644 tests/baselines/reference/emitter.asyncGenerators.objectLiteralMethods.es5(target=es5).types create mode 100644 tests/baselines/reference/emptyAssignmentPatterns01_ES5(target=es2015).js rename tests/baselines/reference/{emptyAssignmentPatterns01_ES5.symbols => emptyAssignmentPatterns01_ES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{emptyAssignmentPatterns01_ES5.types => emptyAssignmentPatterns01_ES5(target=es2015).types} (100%) rename tests/baselines/reference/{emptyAssignmentPatterns01_ES5.js => emptyAssignmentPatterns01_ES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/emptyAssignmentPatterns01_ES5(target=es5).symbols create mode 100644 tests/baselines/reference/emptyAssignmentPatterns01_ES5(target=es5).types create mode 100644 tests/baselines/reference/emptyAssignmentPatterns01_ES5iterable(target=es2015).js rename tests/baselines/reference/{emptyAssignmentPatterns01_ES5iterable.symbols => emptyAssignmentPatterns01_ES5iterable(target=es2015).symbols} (100%) rename tests/baselines/reference/{emptyAssignmentPatterns01_ES5iterable.types => emptyAssignmentPatterns01_ES5iterable(target=es2015).types} (100%) rename tests/baselines/reference/{emptyAssignmentPatterns01_ES5iterable.js => emptyAssignmentPatterns01_ES5iterable(target=es5).js} (100%) create mode 100644 tests/baselines/reference/emptyAssignmentPatterns01_ES5iterable(target=es5).symbols create mode 100644 tests/baselines/reference/emptyAssignmentPatterns01_ES5iterable(target=es5).types create mode 100644 tests/baselines/reference/emptyAssignmentPatterns02_ES5(target=es2015).js rename tests/baselines/reference/{emptyAssignmentPatterns02_ES5.symbols => emptyAssignmentPatterns02_ES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{emptyAssignmentPatterns02_ES5.types => emptyAssignmentPatterns02_ES5(target=es2015).types} (100%) rename tests/baselines/reference/{emptyAssignmentPatterns02_ES5.js => emptyAssignmentPatterns02_ES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/emptyAssignmentPatterns02_ES5(target=es5).symbols create mode 100644 tests/baselines/reference/emptyAssignmentPatterns02_ES5(target=es5).types create mode 100644 tests/baselines/reference/emptyAssignmentPatterns02_ES5iterable(target=es2015).js rename tests/baselines/reference/{emptyAssignmentPatterns02_ES5iterable.symbols => emptyAssignmentPatterns02_ES5iterable(target=es2015).symbols} (100%) rename tests/baselines/reference/{emptyAssignmentPatterns02_ES5iterable.types => emptyAssignmentPatterns02_ES5iterable(target=es2015).types} (100%) rename tests/baselines/reference/{emptyAssignmentPatterns02_ES5iterable.js => emptyAssignmentPatterns02_ES5iterable(target=es5).js} (100%) create mode 100644 tests/baselines/reference/emptyAssignmentPatterns02_ES5iterable(target=es5).symbols create mode 100644 tests/baselines/reference/emptyAssignmentPatterns02_ES5iterable(target=es5).types create mode 100644 tests/baselines/reference/emptyAssignmentPatterns03_ES5(target=es2015).js rename tests/baselines/reference/{emptyAssignmentPatterns03_ES5.symbols => emptyAssignmentPatterns03_ES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{emptyAssignmentPatterns03_ES5.types => emptyAssignmentPatterns03_ES5(target=es2015).types} (100%) rename tests/baselines/reference/{emptyAssignmentPatterns03_ES5.js => emptyAssignmentPatterns03_ES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/emptyAssignmentPatterns03_ES5(target=es5).symbols create mode 100644 tests/baselines/reference/emptyAssignmentPatterns03_ES5(target=es5).types create mode 100644 tests/baselines/reference/emptyAssignmentPatterns03_ES5iterable(target=es2015).js rename tests/baselines/reference/{emptyAssignmentPatterns03_ES5iterable.symbols => emptyAssignmentPatterns03_ES5iterable(target=es2015).symbols} (100%) rename tests/baselines/reference/{emptyAssignmentPatterns03_ES5iterable.types => emptyAssignmentPatterns03_ES5iterable(target=es2015).types} (100%) rename tests/baselines/reference/{emptyAssignmentPatterns03_ES5iterable.js => emptyAssignmentPatterns03_ES5iterable(target=es5).js} (100%) create mode 100644 tests/baselines/reference/emptyAssignmentPatterns03_ES5iterable(target=es5).symbols create mode 100644 tests/baselines/reference/emptyAssignmentPatterns03_ES5iterable(target=es5).types create mode 100644 tests/baselines/reference/emptyAssignmentPatterns04_ES5(target=es2015).js rename tests/baselines/reference/{emptyAssignmentPatterns04_ES5.symbols => emptyAssignmentPatterns04_ES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{emptyAssignmentPatterns04_ES5.types => emptyAssignmentPatterns04_ES5(target=es2015).types} (100%) rename tests/baselines/reference/{emptyAssignmentPatterns04_ES5.js => emptyAssignmentPatterns04_ES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/emptyAssignmentPatterns04_ES5(target=es5).symbols create mode 100644 tests/baselines/reference/emptyAssignmentPatterns04_ES5(target=es5).types create mode 100644 tests/baselines/reference/emptyAssignmentPatterns04_ES5iterable(target=es2015).js rename tests/baselines/reference/{emptyAssignmentPatterns04_ES5iterable.symbols => emptyAssignmentPatterns04_ES5iterable(target=es2015).symbols} (100%) rename tests/baselines/reference/{emptyAssignmentPatterns04_ES5iterable.types => emptyAssignmentPatterns04_ES5iterable(target=es2015).types} (100%) rename tests/baselines/reference/{emptyAssignmentPatterns04_ES5iterable.js => emptyAssignmentPatterns04_ES5iterable(target=es5).js} (100%) create mode 100644 tests/baselines/reference/emptyAssignmentPatterns04_ES5iterable(target=es5).symbols create mode 100644 tests/baselines/reference/emptyAssignmentPatterns04_ES5iterable(target=es5).types rename tests/baselines/reference/{emptyFile-declaration.js => emptyFile-declaration(target=es2015).js} (100%) rename tests/baselines/reference/{emptyFile-declaration.symbols => emptyFile-declaration(target=es2015).symbols} (100%) rename tests/baselines/reference/{emptyFile-declaration.types => emptyFile-declaration(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/emptyFile-declaration(target=es5).js create mode 100644 tests/baselines/reference/emptyFile-declaration(target=es5).symbols create mode 100644 tests/baselines/reference/emptyFile-declaration(target=es5).types rename tests/baselines/reference/{emptyFile-souremap.js => emptyFile-souremap(target=es2015).js} (100%) rename tests/baselines/reference/{emptyFile-souremap.js.map => emptyFile-souremap(target=es2015).js.map} (100%) rename tests/baselines/reference/{emptyFile-souremap.sourcemap.txt => emptyFile-souremap(target=es2015).sourcemap.txt} (100%) rename tests/baselines/reference/{emptyFile-souremap.symbols => emptyFile-souremap(target=es2015).symbols} (100%) rename tests/baselines/reference/{emptyFile-souremap.types => emptyFile-souremap(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/emptyFile-souremap(target=es5).js create mode 100644 tests/baselines/reference/emptyFile-souremap(target=es5).js.map create mode 100644 tests/baselines/reference/emptyFile-souremap(target=es5).sourcemap.txt create mode 100644 tests/baselines/reference/emptyFile-souremap(target=es5).symbols create mode 100644 tests/baselines/reference/emptyFile-souremap(target=es5).types create mode 100644 tests/baselines/reference/emptyVariableDeclarationBindingPatterns01_ES5(target=es2015).js rename tests/baselines/reference/{emptyVariableDeclarationBindingPatterns01_ES5.symbols => emptyVariableDeclarationBindingPatterns01_ES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{emptyVariableDeclarationBindingPatterns01_ES5.types => emptyVariableDeclarationBindingPatterns01_ES5(target=es2015).types} (100%) rename tests/baselines/reference/{emptyVariableDeclarationBindingPatterns01_ES5.js => emptyVariableDeclarationBindingPatterns01_ES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/emptyVariableDeclarationBindingPatterns01_ES5(target=es5).symbols create mode 100644 tests/baselines/reference/emptyVariableDeclarationBindingPatterns01_ES5(target=es5).types create mode 100644 tests/baselines/reference/emptyVariableDeclarationBindingPatterns01_ES5iterable(target=es2015).js rename tests/baselines/reference/{emptyVariableDeclarationBindingPatterns01_ES5iterable.symbols => emptyVariableDeclarationBindingPatterns01_ES5iterable(target=es2015).symbols} (100%) rename tests/baselines/reference/{emptyVariableDeclarationBindingPatterns01_ES5iterable.types => emptyVariableDeclarationBindingPatterns01_ES5iterable(target=es2015).types} (100%) rename tests/baselines/reference/{emptyVariableDeclarationBindingPatterns01_ES5iterable.js => emptyVariableDeclarationBindingPatterns01_ES5iterable(target=es5).js} (100%) create mode 100644 tests/baselines/reference/emptyVariableDeclarationBindingPatterns01_ES5iterable(target=es5).symbols create mode 100644 tests/baselines/reference/emptyVariableDeclarationBindingPatterns01_ES5iterable(target=es5).types rename tests/baselines/reference/{emptyVariableDeclarationBindingPatterns02_ES5.errors.txt => emptyVariableDeclarationBindingPatterns02_ES5(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/emptyVariableDeclarationBindingPatterns02_ES5(target=es2015).js rename tests/baselines/reference/{emptyVariableDeclarationBindingPatterns02_ES5.symbols => emptyVariableDeclarationBindingPatterns02_ES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{emptyVariableDeclarationBindingPatterns02_ES5.types => emptyVariableDeclarationBindingPatterns02_ES5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/emptyVariableDeclarationBindingPatterns02_ES5(target=es5).errors.txt rename tests/baselines/reference/{emptyVariableDeclarationBindingPatterns02_ES5.js => emptyVariableDeclarationBindingPatterns02_ES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/emptyVariableDeclarationBindingPatterns02_ES5(target=es5).symbols create mode 100644 tests/baselines/reference/emptyVariableDeclarationBindingPatterns02_ES5(target=es5).types rename tests/baselines/reference/{emptyVariableDeclarationBindingPatterns02_ES5iterable.errors.txt => emptyVariableDeclarationBindingPatterns02_ES5iterable(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/emptyVariableDeclarationBindingPatterns02_ES5iterable(target=es2015).js rename tests/baselines/reference/{emptyVariableDeclarationBindingPatterns02_ES5iterable.symbols => emptyVariableDeclarationBindingPatterns02_ES5iterable(target=es2015).symbols} (100%) rename tests/baselines/reference/{emptyVariableDeclarationBindingPatterns02_ES5iterable.types => emptyVariableDeclarationBindingPatterns02_ES5iterable(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/emptyVariableDeclarationBindingPatterns02_ES5iterable(target=es5).errors.txt rename tests/baselines/reference/{emptyVariableDeclarationBindingPatterns02_ES5iterable.js => emptyVariableDeclarationBindingPatterns02_ES5iterable(target=es5).js} (100%) create mode 100644 tests/baselines/reference/emptyVariableDeclarationBindingPatterns02_ES5iterable(target=es5).symbols create mode 100644 tests/baselines/reference/emptyVariableDeclarationBindingPatterns02_ES5iterable(target=es5).types rename tests/baselines/reference/{errorsOnImportedSymbol.errors.txt => errorsOnImportedSymbol(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{errorsOnImportedSymbol.js => errorsOnImportedSymbol(target=es2015).js} (100%) rename tests/baselines/reference/{errorsOnImportedSymbol.symbols => errorsOnImportedSymbol(target=es2015).symbols} (100%) rename tests/baselines/reference/{errorsOnImportedSymbol.types => errorsOnImportedSymbol(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/errorsOnImportedSymbol(target=es5).errors.txt create mode 100644 tests/baselines/reference/errorsOnImportedSymbol(target=es5).js create mode 100644 tests/baselines/reference/errorsOnImportedSymbol(target=es5).symbols create mode 100644 tests/baselines/reference/errorsOnImportedSymbol(target=es5).types rename tests/baselines/reference/{es5-amd.errors.txt => es5-amd(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/es5-amd(target=es2015).js rename tests/baselines/reference/{es5-amd.symbols => es5-amd(target=es2015).symbols} (100%) rename tests/baselines/reference/{es5-amd.types => es5-amd(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/es5-amd(target=es5).errors.txt rename tests/baselines/reference/{es5-amd.js => es5-amd(target=es5).js} (100%) create mode 100644 tests/baselines/reference/es5-amd(target=es5).symbols create mode 100644 tests/baselines/reference/es5-amd(target=es5).types create mode 100644 tests/baselines/reference/es5-asyncFunction(target=es2015).js rename tests/baselines/reference/{es5-asyncFunction.symbols => es5-asyncFunction(target=es2015).symbols} (100%) rename tests/baselines/reference/{es5-asyncFunction.types => es5-asyncFunction(target=es2015).types} (100%) rename tests/baselines/reference/{es5-asyncFunction.js => es5-asyncFunction(target=es5).js} (100%) create mode 100644 tests/baselines/reference/es5-asyncFunction(target=es5).symbols create mode 100644 tests/baselines/reference/es5-asyncFunction(target=es5).types create mode 100644 tests/baselines/reference/es5-asyncFunctionArrayLiterals(target=es2015).js rename tests/baselines/reference/{es5-asyncFunctionArrayLiterals.symbols => es5-asyncFunctionArrayLiterals(target=es2015).symbols} (100%) rename tests/baselines/reference/{es5-asyncFunctionArrayLiterals.types => es5-asyncFunctionArrayLiterals(target=es2015).types} (100%) rename tests/baselines/reference/{es5-asyncFunctionArrayLiterals.js => es5-asyncFunctionArrayLiterals(target=es5).js} (100%) create mode 100644 tests/baselines/reference/es5-asyncFunctionArrayLiterals(target=es5).symbols create mode 100644 tests/baselines/reference/es5-asyncFunctionArrayLiterals(target=es5).types create mode 100644 tests/baselines/reference/es5-asyncFunctionBinaryExpressions(target=es2015).js rename tests/baselines/reference/{es5-asyncFunctionBinaryExpressions.symbols => es5-asyncFunctionBinaryExpressions(target=es2015).symbols} (100%) rename tests/baselines/reference/{es5-asyncFunctionBinaryExpressions.types => es5-asyncFunctionBinaryExpressions(target=es2015).types} (100%) rename tests/baselines/reference/{es5-asyncFunctionBinaryExpressions.js => es5-asyncFunctionBinaryExpressions(target=es5).js} (100%) create mode 100644 tests/baselines/reference/es5-asyncFunctionBinaryExpressions(target=es5).symbols create mode 100644 tests/baselines/reference/es5-asyncFunctionBinaryExpressions(target=es5).types create mode 100644 tests/baselines/reference/es5-asyncFunctionCallExpressions(target=es2015).js rename tests/baselines/reference/{es5-asyncFunctionCallExpressions.symbols => es5-asyncFunctionCallExpressions(target=es2015).symbols} (100%) rename tests/baselines/reference/{es5-asyncFunctionCallExpressions.types => es5-asyncFunctionCallExpressions(target=es2015).types} (100%) rename tests/baselines/reference/{es5-asyncFunctionCallExpressions.js => es5-asyncFunctionCallExpressions(target=es5).js} (100%) create mode 100644 tests/baselines/reference/es5-asyncFunctionCallExpressions(target=es5).symbols create mode 100644 tests/baselines/reference/es5-asyncFunctionCallExpressions(target=es5).types create mode 100644 tests/baselines/reference/es5-asyncFunctionConditionals(target=es2015).js rename tests/baselines/reference/{es5-asyncFunctionConditionals.symbols => es5-asyncFunctionConditionals(target=es2015).symbols} (100%) rename tests/baselines/reference/{es5-asyncFunctionConditionals.types => es5-asyncFunctionConditionals(target=es2015).types} (100%) rename tests/baselines/reference/{es5-asyncFunctionConditionals.js => es5-asyncFunctionConditionals(target=es5).js} (100%) create mode 100644 tests/baselines/reference/es5-asyncFunctionConditionals(target=es5).symbols create mode 100644 tests/baselines/reference/es5-asyncFunctionConditionals(target=es5).types create mode 100644 tests/baselines/reference/es5-asyncFunctionDoStatements(target=es2015).js rename tests/baselines/reference/{es5-asyncFunctionDoStatements.symbols => es5-asyncFunctionDoStatements(target=es2015).symbols} (100%) rename tests/baselines/reference/{es5-asyncFunctionDoStatements.types => es5-asyncFunctionDoStatements(target=es2015).types} (100%) rename tests/baselines/reference/{es5-asyncFunctionDoStatements.js => es5-asyncFunctionDoStatements(target=es5).js} (100%) create mode 100644 tests/baselines/reference/es5-asyncFunctionDoStatements(target=es5).symbols create mode 100644 tests/baselines/reference/es5-asyncFunctionDoStatements(target=es5).types create mode 100644 tests/baselines/reference/es5-asyncFunctionElementAccess(target=es2015).js rename tests/baselines/reference/{es5-asyncFunctionElementAccess.symbols => es5-asyncFunctionElementAccess(target=es2015).symbols} (100%) rename tests/baselines/reference/{es5-asyncFunctionElementAccess.types => es5-asyncFunctionElementAccess(target=es2015).types} (100%) rename tests/baselines/reference/{es5-asyncFunctionElementAccess.js => es5-asyncFunctionElementAccess(target=es5).js} (100%) create mode 100644 tests/baselines/reference/es5-asyncFunctionElementAccess(target=es5).symbols create mode 100644 tests/baselines/reference/es5-asyncFunctionElementAccess(target=es5).types create mode 100644 tests/baselines/reference/es5-asyncFunctionForInStatements(target=es2015).js rename tests/baselines/reference/{es5-asyncFunctionForInStatements.symbols => es5-asyncFunctionForInStatements(target=es2015).symbols} (100%) rename tests/baselines/reference/{es5-asyncFunctionForInStatements.types => es5-asyncFunctionForInStatements(target=es2015).types} (100%) rename tests/baselines/reference/{es5-asyncFunctionForInStatements.js => es5-asyncFunctionForInStatements(target=es5).js} (100%) create mode 100644 tests/baselines/reference/es5-asyncFunctionForInStatements(target=es5).symbols create mode 100644 tests/baselines/reference/es5-asyncFunctionForInStatements(target=es5).types create mode 100644 tests/baselines/reference/es5-asyncFunctionForOfStatements(target=es2015).js rename tests/baselines/reference/{es5-asyncFunctionForOfStatements.symbols => es5-asyncFunctionForOfStatements(target=es2015).symbols} (100%) rename tests/baselines/reference/{es5-asyncFunctionForOfStatements.types => es5-asyncFunctionForOfStatements(target=es2015).types} (100%) rename tests/baselines/reference/{es5-asyncFunctionForOfStatements.js => es5-asyncFunctionForOfStatements(target=es5).js} (100%) create mode 100644 tests/baselines/reference/es5-asyncFunctionForOfStatements(target=es5).symbols create mode 100644 tests/baselines/reference/es5-asyncFunctionForOfStatements(target=es5).types create mode 100644 tests/baselines/reference/es5-asyncFunctionForStatements(target=es2015).js rename tests/baselines/reference/{es5-asyncFunctionForStatements.symbols => es5-asyncFunctionForStatements(target=es2015).symbols} (100%) rename tests/baselines/reference/{es5-asyncFunctionForStatements.types => es5-asyncFunctionForStatements(target=es2015).types} (100%) rename tests/baselines/reference/{es5-asyncFunctionForStatements.js => es5-asyncFunctionForStatements(target=es5).js} (100%) create mode 100644 tests/baselines/reference/es5-asyncFunctionForStatements(target=es5).symbols create mode 100644 tests/baselines/reference/es5-asyncFunctionForStatements(target=es5).types create mode 100644 tests/baselines/reference/es5-asyncFunctionHoisting(target=es2015).js rename tests/baselines/reference/{es5-asyncFunctionHoisting.symbols => es5-asyncFunctionHoisting(target=es2015).symbols} (100%) rename tests/baselines/reference/{es5-asyncFunctionHoisting.types => es5-asyncFunctionHoisting(target=es2015).types} (100%) rename tests/baselines/reference/{es5-asyncFunctionHoisting.js => es5-asyncFunctionHoisting(target=es5).js} (100%) create mode 100644 tests/baselines/reference/es5-asyncFunctionHoisting(target=es5).symbols create mode 100644 tests/baselines/reference/es5-asyncFunctionHoisting(target=es5).types create mode 100644 tests/baselines/reference/es5-asyncFunctionIfStatements(target=es2015).js rename tests/baselines/reference/{es5-asyncFunctionIfStatements.symbols => es5-asyncFunctionIfStatements(target=es2015).symbols} (100%) rename tests/baselines/reference/{es5-asyncFunctionIfStatements.types => es5-asyncFunctionIfStatements(target=es2015).types} (100%) rename tests/baselines/reference/{es5-asyncFunctionIfStatements.js => es5-asyncFunctionIfStatements(target=es5).js} (100%) create mode 100644 tests/baselines/reference/es5-asyncFunctionIfStatements(target=es5).symbols create mode 100644 tests/baselines/reference/es5-asyncFunctionIfStatements(target=es5).types create mode 100644 tests/baselines/reference/es5-asyncFunctionLongObjectLiteral(target=es2015).js rename tests/baselines/reference/{es5-asyncFunctionLongObjectLiteral.symbols => es5-asyncFunctionLongObjectLiteral(target=es2015).symbols} (100%) rename tests/baselines/reference/{es5-asyncFunctionLongObjectLiteral.types => es5-asyncFunctionLongObjectLiteral(target=es2015).types} (100%) rename tests/baselines/reference/{es5-asyncFunctionLongObjectLiteral.js => es5-asyncFunctionLongObjectLiteral(target=es5).js} (100%) create mode 100644 tests/baselines/reference/es5-asyncFunctionLongObjectLiteral(target=es5).symbols create mode 100644 tests/baselines/reference/es5-asyncFunctionLongObjectLiteral(target=es5).types create mode 100644 tests/baselines/reference/es5-asyncFunctionNestedLoops(target=es2015).js rename tests/baselines/reference/{es5-asyncFunctionNestedLoops.symbols => es5-asyncFunctionNestedLoops(target=es2015).symbols} (100%) rename tests/baselines/reference/{es5-asyncFunctionNestedLoops.types => es5-asyncFunctionNestedLoops(target=es2015).types} (100%) rename tests/baselines/reference/{es5-asyncFunctionNestedLoops.js => es5-asyncFunctionNestedLoops(target=es5).js} (100%) create mode 100644 tests/baselines/reference/es5-asyncFunctionNestedLoops(target=es5).symbols create mode 100644 tests/baselines/reference/es5-asyncFunctionNestedLoops(target=es5).types create mode 100644 tests/baselines/reference/es5-asyncFunctionNewExpressions(target=es2015).js rename tests/baselines/reference/{es5-asyncFunctionNewExpressions.symbols => es5-asyncFunctionNewExpressions(target=es2015).symbols} (100%) rename tests/baselines/reference/{es5-asyncFunctionNewExpressions.types => es5-asyncFunctionNewExpressions(target=es2015).types} (100%) rename tests/baselines/reference/{es5-asyncFunctionNewExpressions.js => es5-asyncFunctionNewExpressions(target=es5).js} (100%) create mode 100644 tests/baselines/reference/es5-asyncFunctionNewExpressions(target=es5).symbols create mode 100644 tests/baselines/reference/es5-asyncFunctionNewExpressions(target=es5).types create mode 100644 tests/baselines/reference/es5-asyncFunctionObjectLiterals(target=es2015).js rename tests/baselines/reference/{es5-asyncFunctionObjectLiterals.symbols => es5-asyncFunctionObjectLiterals(target=es2015).symbols} (100%) rename tests/baselines/reference/{es5-asyncFunctionObjectLiterals.types => es5-asyncFunctionObjectLiterals(target=es2015).types} (100%) rename tests/baselines/reference/{es5-asyncFunctionObjectLiterals.js => es5-asyncFunctionObjectLiterals(target=es5).js} (100%) create mode 100644 tests/baselines/reference/es5-asyncFunctionObjectLiterals(target=es5).symbols create mode 100644 tests/baselines/reference/es5-asyncFunctionObjectLiterals(target=es5).types create mode 100644 tests/baselines/reference/es5-asyncFunctionPropertyAccess(target=es2015).js rename tests/baselines/reference/{es5-asyncFunctionPropertyAccess.symbols => es5-asyncFunctionPropertyAccess(target=es2015).symbols} (100%) rename tests/baselines/reference/{es5-asyncFunctionPropertyAccess.types => es5-asyncFunctionPropertyAccess(target=es2015).types} (100%) rename tests/baselines/reference/{es5-asyncFunctionPropertyAccess.js => es5-asyncFunctionPropertyAccess(target=es5).js} (100%) create mode 100644 tests/baselines/reference/es5-asyncFunctionPropertyAccess(target=es5).symbols create mode 100644 tests/baselines/reference/es5-asyncFunctionPropertyAccess(target=es5).types create mode 100644 tests/baselines/reference/es5-asyncFunctionReturnStatements(target=es2015).js rename tests/baselines/reference/{es5-asyncFunctionReturnStatements.symbols => es5-asyncFunctionReturnStatements(target=es2015).symbols} (100%) rename tests/baselines/reference/{es5-asyncFunctionReturnStatements.types => es5-asyncFunctionReturnStatements(target=es2015).types} (100%) rename tests/baselines/reference/{es5-asyncFunctionReturnStatements.js => es5-asyncFunctionReturnStatements(target=es5).js} (100%) create mode 100644 tests/baselines/reference/es5-asyncFunctionReturnStatements(target=es5).symbols create mode 100644 tests/baselines/reference/es5-asyncFunctionReturnStatements(target=es5).types create mode 100644 tests/baselines/reference/es5-asyncFunctionSwitchStatements(target=es2015).js rename tests/baselines/reference/{es5-asyncFunctionSwitchStatements.symbols => es5-asyncFunctionSwitchStatements(target=es2015).symbols} (100%) rename tests/baselines/reference/{es5-asyncFunctionSwitchStatements.types => es5-asyncFunctionSwitchStatements(target=es2015).types} (100%) rename tests/baselines/reference/{es5-asyncFunctionSwitchStatements.js => es5-asyncFunctionSwitchStatements(target=es5).js} (100%) create mode 100644 tests/baselines/reference/es5-asyncFunctionSwitchStatements(target=es5).symbols create mode 100644 tests/baselines/reference/es5-asyncFunctionSwitchStatements(target=es5).types create mode 100644 tests/baselines/reference/es5-asyncFunctionTryStatements(target=es2015).js rename tests/baselines/reference/{es5-asyncFunctionTryStatements.symbols => es5-asyncFunctionTryStatements(target=es2015).symbols} (100%) rename tests/baselines/reference/{es5-asyncFunctionTryStatements.types => es5-asyncFunctionTryStatements(target=es2015).types} (100%) rename tests/baselines/reference/{es5-asyncFunctionTryStatements.js => es5-asyncFunctionTryStatements(target=es5).js} (100%) create mode 100644 tests/baselines/reference/es5-asyncFunctionTryStatements(target=es5).symbols create mode 100644 tests/baselines/reference/es5-asyncFunctionTryStatements(target=es5).types create mode 100644 tests/baselines/reference/es5-asyncFunctionWhileStatements(target=es2015).js rename tests/baselines/reference/{es5-asyncFunctionWhileStatements.symbols => es5-asyncFunctionWhileStatements(target=es2015).symbols} (100%) rename tests/baselines/reference/{es5-asyncFunctionWhileStatements.types => es5-asyncFunctionWhileStatements(target=es2015).types} (100%) rename tests/baselines/reference/{es5-asyncFunctionWhileStatements.js => es5-asyncFunctionWhileStatements(target=es5).js} (100%) create mode 100644 tests/baselines/reference/es5-asyncFunctionWhileStatements(target=es5).symbols create mode 100644 tests/baselines/reference/es5-asyncFunctionWhileStatements(target=es5).types rename tests/baselines/reference/{es5-asyncFunctionWithStatements.errors.txt => es5-asyncFunctionWithStatements(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/es5-asyncFunctionWithStatements(target=es2015).js rename tests/baselines/reference/{es5-asyncFunctionWithStatements.symbols => es5-asyncFunctionWithStatements(target=es2015).symbols} (100%) rename tests/baselines/reference/{es5-asyncFunctionWithStatements.types => es5-asyncFunctionWithStatements(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/es5-asyncFunctionWithStatements(target=es5).errors.txt rename tests/baselines/reference/{es5-asyncFunctionWithStatements.js => es5-asyncFunctionWithStatements(target=es5).js} (100%) create mode 100644 tests/baselines/reference/es5-asyncFunctionWithStatements(target=es5).symbols create mode 100644 tests/baselines/reference/es5-asyncFunctionWithStatements(target=es5).types create mode 100644 tests/baselines/reference/es5-commonjs(target=es2015).js rename tests/baselines/reference/{es5-commonjs.symbols => es5-commonjs(target=es2015).symbols} (100%) rename tests/baselines/reference/{es5-commonjs.types => es5-commonjs(target=es2015).types} (100%) rename tests/baselines/reference/{es5-commonjs.js => es5-commonjs(target=es5).js} (100%) create mode 100644 tests/baselines/reference/es5-commonjs(target=es5).symbols create mode 100644 tests/baselines/reference/es5-commonjs(target=es5).types rename tests/baselines/reference/{es5-commonjs2.js => es5-commonjs2(target=es2015).js} (100%) rename tests/baselines/reference/{es5-commonjs2.symbols => es5-commonjs2(target=es2015).symbols} (100%) rename tests/baselines/reference/{es5-commonjs2.types => es5-commonjs2(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/es5-commonjs2(target=es5).js create mode 100644 tests/baselines/reference/es5-commonjs2(target=es5).symbols create mode 100644 tests/baselines/reference/es5-commonjs2(target=es5).types rename tests/baselines/reference/{es5-commonjs3.errors.txt => es5-commonjs3(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{es5-commonjs3.js => es5-commonjs3(target=es2015).js} (100%) rename tests/baselines/reference/{es5-commonjs3.symbols => es5-commonjs3(target=es2015).symbols} (100%) rename tests/baselines/reference/{es5-commonjs3.types => es5-commonjs3(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/es5-commonjs3(target=es5).errors.txt create mode 100644 tests/baselines/reference/es5-commonjs3(target=es5).js create mode 100644 tests/baselines/reference/es5-commonjs3(target=es5).symbols create mode 100644 tests/baselines/reference/es5-commonjs3(target=es5).types rename tests/baselines/reference/{es5-commonjs4.errors.txt => es5-commonjs4(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/es5-commonjs4(target=es2015).js rename tests/baselines/reference/{es5-commonjs4.symbols => es5-commonjs4(target=es2015).symbols} (100%) rename tests/baselines/reference/{es5-commonjs4.types => es5-commonjs4(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/es5-commonjs4(target=es5).errors.txt rename tests/baselines/reference/{es5-commonjs4.js => es5-commonjs4(target=es5).js} (100%) create mode 100644 tests/baselines/reference/es5-commonjs4(target=es5).symbols create mode 100644 tests/baselines/reference/es5-commonjs4(target=es5).types rename tests/baselines/reference/{es5-commonjs5.js => es5-commonjs5(target=es2015).js} (100%) rename tests/baselines/reference/{es5-commonjs5.symbols => es5-commonjs5(target=es2015).symbols} (100%) rename tests/baselines/reference/{es5-commonjs5.types => es5-commonjs5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/es5-commonjs5(target=es5).js create mode 100644 tests/baselines/reference/es5-commonjs5(target=es5).symbols create mode 100644 tests/baselines/reference/es5-commonjs5(target=es5).types rename tests/baselines/reference/{es5-commonjs6.js => es5-commonjs6(target=es2015).js} (100%) rename tests/baselines/reference/{es5-commonjs6.symbols => es5-commonjs6(target=es2015).symbols} (100%) rename tests/baselines/reference/{es5-commonjs6.types => es5-commonjs6(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/es5-commonjs6(target=es5).js create mode 100644 tests/baselines/reference/es5-commonjs6(target=es5).symbols create mode 100644 tests/baselines/reference/es5-commonjs6(target=es5).types rename tests/baselines/reference/{es5-commonjs7.symbols => es5-commonjs7(target=es2015).symbols} (100%) rename tests/baselines/reference/{es5-commonjs7.types => es5-commonjs7(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/es5-commonjs7(target=es5).symbols create mode 100644 tests/baselines/reference/es5-commonjs7(target=es5).types rename tests/baselines/reference/{es5-commonjs8.symbols => es5-commonjs8(target=es2015).symbols} (100%) rename tests/baselines/reference/{es5-commonjs8.types => es5-commonjs8(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/es5-commonjs8(target=es5).symbols create mode 100644 tests/baselines/reference/es5-commonjs8(target=es5).types rename tests/baselines/reference/{es5-declaration-amd.errors.txt => es5-declaration-amd(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/es5-declaration-amd(target=es2015).js rename tests/baselines/reference/{es5-declaration-amd.symbols => es5-declaration-amd(target=es2015).symbols} (100%) rename tests/baselines/reference/{es5-declaration-amd.types => es5-declaration-amd(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/es5-declaration-amd(target=es5).errors.txt rename tests/baselines/reference/{es5-declaration-amd.js => es5-declaration-amd(target=es5).js} (100%) create mode 100644 tests/baselines/reference/es5-declaration-amd(target=es5).symbols create mode 100644 tests/baselines/reference/es5-declaration-amd(target=es5).types create mode 100644 tests/baselines/reference/es5-importHelpersAsyncFunctions(target=es2015).js rename tests/baselines/reference/{es5-importHelpersAsyncFunctions.symbols => es5-importHelpersAsyncFunctions(target=es2015).symbols} (100%) rename tests/baselines/reference/{es5-importHelpersAsyncFunctions.types => es5-importHelpersAsyncFunctions(target=es2015).types} (100%) rename tests/baselines/reference/{es5-importHelpersAsyncFunctions.js => es5-importHelpersAsyncFunctions(target=es5).js} (100%) create mode 100644 tests/baselines/reference/es5-importHelpersAsyncFunctions(target=es5).symbols create mode 100644 tests/baselines/reference/es5-importHelpersAsyncFunctions(target=es5).types rename tests/baselines/reference/{es5-oldStyleOctalLiteralInEnums.errors.txt => es5-oldStyleOctalLiteralInEnums(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{es5-oldStyleOctalLiteralInEnums.js => es5-oldStyleOctalLiteralInEnums(target=es2015).js} (100%) rename tests/baselines/reference/{es5-oldStyleOctalLiteralInEnums.symbols => es5-oldStyleOctalLiteralInEnums(target=es2015).symbols} (100%) rename tests/baselines/reference/{es5-oldStyleOctalLiteralInEnums.types => es5-oldStyleOctalLiteralInEnums(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/es5-oldStyleOctalLiteralInEnums(target=es5).errors.txt create mode 100644 tests/baselines/reference/es5-oldStyleOctalLiteralInEnums(target=es5).js create mode 100644 tests/baselines/reference/es5-oldStyleOctalLiteralInEnums(target=es5).symbols create mode 100644 tests/baselines/reference/es5-oldStyleOctalLiteralInEnums(target=es5).types rename tests/baselines/reference/{es5-souremap-amd.errors.txt => es5-souremap-amd(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/es5-souremap-amd(target=es2015).js create mode 100644 tests/baselines/reference/es5-souremap-amd(target=es2015).js.map create mode 100644 tests/baselines/reference/es5-souremap-amd(target=es2015).sourcemap.txt rename tests/baselines/reference/{es5-souremap-amd.symbols => es5-souremap-amd(target=es2015).symbols} (100%) rename tests/baselines/reference/{es5-souremap-amd.types => es5-souremap-amd(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/es5-souremap-amd(target=es5).errors.txt rename tests/baselines/reference/{es5-souremap-amd.js => es5-souremap-amd(target=es5).js} (100%) rename tests/baselines/reference/{es5-souremap-amd.js.map => es5-souremap-amd(target=es5).js.map} (100%) rename tests/baselines/reference/{es5-souremap-amd.sourcemap.txt => es5-souremap-amd(target=es5).sourcemap.txt} (100%) create mode 100644 tests/baselines/reference/es5-souremap-amd(target=es5).symbols create mode 100644 tests/baselines/reference/es5-souremap-amd(target=es5).types rename tests/baselines/reference/{es5-system.errors.txt => es5-system(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/es5-system(target=es2015).js rename tests/baselines/reference/{es5-system.symbols => es5-system(target=es2015).symbols} (100%) rename tests/baselines/reference/{es5-system.types => es5-system(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/es5-system(target=es5).errors.txt rename tests/baselines/reference/{es5-system.js => es5-system(target=es5).js} (100%) create mode 100644 tests/baselines/reference/es5-system(target=es5).symbols create mode 100644 tests/baselines/reference/es5-system(target=es5).types rename tests/baselines/reference/{es5-system2.errors.txt => es5-system2(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{es5-system2.js => es5-system2(target=es2015).js} (100%) rename tests/baselines/reference/{es5-system2.symbols => es5-system2(target=es2015).symbols} (100%) rename tests/baselines/reference/{es5-system2.types => es5-system2(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/es5-system2(target=es5).errors.txt create mode 100644 tests/baselines/reference/es5-system2(target=es5).js create mode 100644 tests/baselines/reference/es5-system2(target=es5).symbols create mode 100644 tests/baselines/reference/es5-system2(target=es5).types rename tests/baselines/reference/{es5-umd.errors.txt => es5-umd(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/es5-umd(target=es2015).js rename tests/baselines/reference/{es5-umd.symbols => es5-umd(target=es2015).symbols} (100%) rename tests/baselines/reference/{es5-umd.types => es5-umd(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/es5-umd(target=es5).errors.txt rename tests/baselines/reference/{es5-umd.js => es5-umd(target=es5).js} (100%) create mode 100644 tests/baselines/reference/es5-umd(target=es5).symbols create mode 100644 tests/baselines/reference/es5-umd(target=es5).types rename tests/baselines/reference/{es5-umd2.errors.txt => es5-umd2(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/es5-umd2(target=es2015).js rename tests/baselines/reference/{es5-umd2.symbols => es5-umd2(target=es2015).symbols} (100%) rename tests/baselines/reference/{es5-umd2.types => es5-umd2(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/es5-umd2(target=es5).errors.txt rename tests/baselines/reference/{es5-umd2.js => es5-umd2(target=es5).js} (100%) create mode 100644 tests/baselines/reference/es5-umd2(target=es5).symbols create mode 100644 tests/baselines/reference/es5-umd2(target=es5).types rename tests/baselines/reference/{es5-umd3.errors.txt => es5-umd3(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/es5-umd3(target=es2015).js rename tests/baselines/reference/{es5-umd3.symbols => es5-umd3(target=es2015).symbols} (100%) rename tests/baselines/reference/{es5-umd3.types => es5-umd3(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/es5-umd3(target=es5).errors.txt rename tests/baselines/reference/{es5-umd3.js => es5-umd3(target=es5).js} (100%) create mode 100644 tests/baselines/reference/es5-umd3(target=es5).symbols create mode 100644 tests/baselines/reference/es5-umd3(target=es5).types rename tests/baselines/reference/{es5-umd4.errors.txt => es5-umd4(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/es5-umd4(target=es2015).js rename tests/baselines/reference/{es5-umd4.symbols => es5-umd4(target=es2015).symbols} (100%) rename tests/baselines/reference/{es5-umd4.types => es5-umd4(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/es5-umd4(target=es5).errors.txt rename tests/baselines/reference/{es5-umd4.js => es5-umd4(target=es5).js} (100%) create mode 100644 tests/baselines/reference/es5-umd4(target=es5).symbols create mode 100644 tests/baselines/reference/es5-umd4(target=es5).types create mode 100644 tests/baselines/reference/es5-yieldFunctionObjectLiterals(target=es2015).js rename tests/baselines/reference/{es5-yieldFunctionObjectLiterals.symbols => es5-yieldFunctionObjectLiterals(target=es2015).symbols} (100%) rename tests/baselines/reference/{es5-yieldFunctionObjectLiterals.types => es5-yieldFunctionObjectLiterals(target=es2015).types} (100%) rename tests/baselines/reference/{es5-yieldFunctionObjectLiterals.js => es5-yieldFunctionObjectLiterals(target=es5).js} (100%) create mode 100644 tests/baselines/reference/es5-yieldFunctionObjectLiterals(target=es5).symbols create mode 100644 tests/baselines/reference/es5-yieldFunctionObjectLiterals(target=es5).types create mode 100644 tests/baselines/reference/es5ExportDefaultClassDeclaration(target=es2015).js rename tests/baselines/reference/{es5ExportDefaultClassDeclaration.symbols => es5ExportDefaultClassDeclaration(target=es2015).symbols} (100%) rename tests/baselines/reference/{es5ExportDefaultClassDeclaration.types => es5ExportDefaultClassDeclaration(target=es2015).types} (100%) rename tests/baselines/reference/{es5ExportDefaultClassDeclaration.js => es5ExportDefaultClassDeclaration(target=es5).js} (100%) create mode 100644 tests/baselines/reference/es5ExportDefaultClassDeclaration(target=es5).symbols create mode 100644 tests/baselines/reference/es5ExportDefaultClassDeclaration(target=es5).types create mode 100644 tests/baselines/reference/es5ExportDefaultClassDeclaration2(target=es2015).js rename tests/baselines/reference/{es5ExportDefaultClassDeclaration2.symbols => es5ExportDefaultClassDeclaration2(target=es2015).symbols} (100%) rename tests/baselines/reference/{es5ExportDefaultClassDeclaration2.types => es5ExportDefaultClassDeclaration2(target=es2015).types} (100%) rename tests/baselines/reference/{es5ExportDefaultClassDeclaration2.js => es5ExportDefaultClassDeclaration2(target=es5).js} (100%) create mode 100644 tests/baselines/reference/es5ExportDefaultClassDeclaration2(target=es5).symbols create mode 100644 tests/baselines/reference/es5ExportDefaultClassDeclaration2(target=es5).types rename tests/baselines/reference/{es5ExportDefaultClassDeclaration3.errors.txt => es5ExportDefaultClassDeclaration3(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/es5ExportDefaultClassDeclaration3(target=es2015).js rename tests/baselines/reference/{es5ExportDefaultClassDeclaration3.symbols => es5ExportDefaultClassDeclaration3(target=es2015).symbols} (100%) rename tests/baselines/reference/{es5ExportDefaultClassDeclaration3.types => es5ExportDefaultClassDeclaration3(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/es5ExportDefaultClassDeclaration3(target=es5).errors.txt rename tests/baselines/reference/{es5ExportDefaultClassDeclaration3.js => es5ExportDefaultClassDeclaration3(target=es5).js} (100%) create mode 100644 tests/baselines/reference/es5ExportDefaultClassDeclaration3(target=es5).symbols create mode 100644 tests/baselines/reference/es5ExportDefaultClassDeclaration3(target=es5).types rename tests/baselines/reference/{es5ExportDefaultClassDeclaration4.js => es5ExportDefaultClassDeclaration4(target=es2015).js} (100%) rename tests/baselines/reference/{es5ExportDefaultClassDeclaration4.symbols => es5ExportDefaultClassDeclaration4(target=es2015).symbols} (100%) rename tests/baselines/reference/{es5ExportDefaultClassDeclaration4.types => es5ExportDefaultClassDeclaration4(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/es5ExportDefaultClassDeclaration4(target=es5).js create mode 100644 tests/baselines/reference/es5ExportDefaultClassDeclaration4(target=es5).symbols create mode 100644 tests/baselines/reference/es5ExportDefaultClassDeclaration4(target=es5).types rename tests/baselines/reference/{es5ExportDefaultExpression.js => es5ExportDefaultExpression(target=es2015).js} (100%) rename tests/baselines/reference/{es5ExportDefaultExpression.symbols => es5ExportDefaultExpression(target=es2015).symbols} (100%) rename tests/baselines/reference/{es5ExportDefaultExpression.types => es5ExportDefaultExpression(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/es5ExportDefaultExpression(target=es5).js create mode 100644 tests/baselines/reference/es5ExportDefaultExpression(target=es5).symbols create mode 100644 tests/baselines/reference/es5ExportDefaultExpression(target=es5).types rename tests/baselines/reference/{es5ExportDefaultFunctionDeclaration.js => es5ExportDefaultFunctionDeclaration(target=es2015).js} (100%) rename tests/baselines/reference/{es5ExportDefaultFunctionDeclaration.symbols => es5ExportDefaultFunctionDeclaration(target=es2015).symbols} (100%) rename tests/baselines/reference/{es5ExportDefaultFunctionDeclaration.types => es5ExportDefaultFunctionDeclaration(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/es5ExportDefaultFunctionDeclaration(target=es5).js create mode 100644 tests/baselines/reference/es5ExportDefaultFunctionDeclaration(target=es5).symbols create mode 100644 tests/baselines/reference/es5ExportDefaultFunctionDeclaration(target=es5).types rename tests/baselines/reference/{es5ExportDefaultFunctionDeclaration2.js => es5ExportDefaultFunctionDeclaration2(target=es2015).js} (100%) rename tests/baselines/reference/{es5ExportDefaultFunctionDeclaration2.symbols => es5ExportDefaultFunctionDeclaration2(target=es2015).symbols} (100%) rename tests/baselines/reference/{es5ExportDefaultFunctionDeclaration2.types => es5ExportDefaultFunctionDeclaration2(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/es5ExportDefaultFunctionDeclaration2(target=es5).js create mode 100644 tests/baselines/reference/es5ExportDefaultFunctionDeclaration2(target=es5).symbols create mode 100644 tests/baselines/reference/es5ExportDefaultFunctionDeclaration2(target=es5).types rename tests/baselines/reference/{es5ExportDefaultFunctionDeclaration3.js => es5ExportDefaultFunctionDeclaration3(target=es2015).js} (100%) rename tests/baselines/reference/{es5ExportDefaultFunctionDeclaration3.symbols => es5ExportDefaultFunctionDeclaration3(target=es2015).symbols} (100%) rename tests/baselines/reference/{es5ExportDefaultFunctionDeclaration3.types => es5ExportDefaultFunctionDeclaration3(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/es5ExportDefaultFunctionDeclaration3(target=es5).js create mode 100644 tests/baselines/reference/es5ExportDefaultFunctionDeclaration3(target=es5).symbols create mode 100644 tests/baselines/reference/es5ExportDefaultFunctionDeclaration3(target=es5).types rename tests/baselines/reference/{es5ExportDefaultFunctionDeclaration4.js => es5ExportDefaultFunctionDeclaration4(target=es2015).js} (100%) rename tests/baselines/reference/{es5ExportDefaultFunctionDeclaration4.symbols => es5ExportDefaultFunctionDeclaration4(target=es2015).symbols} (100%) rename tests/baselines/reference/{es5ExportDefaultFunctionDeclaration4.types => es5ExportDefaultFunctionDeclaration4(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/es5ExportDefaultFunctionDeclaration4(target=es5).js create mode 100644 tests/baselines/reference/es5ExportDefaultFunctionDeclaration4(target=es5).symbols create mode 100644 tests/baselines/reference/es5ExportDefaultFunctionDeclaration4(target=es5).types rename tests/baselines/reference/{es5ExportDefaultIdentifier.js => es5ExportDefaultIdentifier(target=es2015).js} (100%) rename tests/baselines/reference/{es5ExportDefaultIdentifier.symbols => es5ExportDefaultIdentifier(target=es2015).symbols} (100%) rename tests/baselines/reference/{es5ExportDefaultIdentifier.types => es5ExportDefaultIdentifier(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/es5ExportDefaultIdentifier(target=es5).js create mode 100644 tests/baselines/reference/es5ExportDefaultIdentifier(target=es5).symbols create mode 100644 tests/baselines/reference/es5ExportDefaultIdentifier(target=es5).types rename tests/baselines/reference/{es5ExportEquals.errors.txt => es5ExportEquals(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{es5ExportEquals.js => es5ExportEquals(target=es2015).js} (100%) rename tests/baselines/reference/{es5ExportEquals.symbols => es5ExportEquals(target=es2015).symbols} (100%) rename tests/baselines/reference/{es5ExportEquals.types => es5ExportEquals(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/es5ExportEquals(target=es5).errors.txt create mode 100644 tests/baselines/reference/es5ExportEquals(target=es5).js create mode 100644 tests/baselines/reference/es5ExportEquals(target=es5).symbols create mode 100644 tests/baselines/reference/es5ExportEquals(target=es5).types create mode 100644 tests/baselines/reference/es5ExportEqualsDts(target=es2015).js rename tests/baselines/reference/{es5ExportEqualsDts.symbols => es5ExportEqualsDts(target=es2015).symbols} (100%) rename tests/baselines/reference/{es5ExportEqualsDts.types => es5ExportEqualsDts(target=es2015).types} (100%) rename tests/baselines/reference/{es5ExportEqualsDts.js => es5ExportEqualsDts(target=es5).js} (100%) create mode 100644 tests/baselines/reference/es5ExportEqualsDts(target=es5).symbols create mode 100644 tests/baselines/reference/es5ExportEqualsDts(target=es5).types rename tests/baselines/reference/{es5ModuleInternalNamedImports.errors.txt => es5ModuleInternalNamedImports(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/es5ModuleInternalNamedImports(target=es2015).js rename tests/baselines/reference/{es5ModuleInternalNamedImports.symbols => es5ModuleInternalNamedImports(target=es2015).symbols} (100%) rename tests/baselines/reference/{es5ModuleInternalNamedImports.types => es5ModuleInternalNamedImports(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/es5ModuleInternalNamedImports(target=es5).errors.txt rename tests/baselines/reference/{es5ModuleInternalNamedImports.js => es5ModuleInternalNamedImports(target=es5).js} (100%) create mode 100644 tests/baselines/reference/es5ModuleInternalNamedImports(target=es5).symbols create mode 100644 tests/baselines/reference/es5ModuleInternalNamedImports(target=es5).types rename tests/baselines/reference/{es5ModuleWithModuleGenAmd.errors.txt => es5ModuleWithModuleGenAmd(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/es5ModuleWithModuleGenAmd(target=es2015).js rename tests/baselines/reference/{es5ModuleWithModuleGenAmd.symbols => es5ModuleWithModuleGenAmd(target=es2015).symbols} (100%) rename tests/baselines/reference/{es5ModuleWithModuleGenAmd.types => es5ModuleWithModuleGenAmd(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/es5ModuleWithModuleGenAmd(target=es5).errors.txt rename tests/baselines/reference/{es5ModuleWithModuleGenAmd.js => es5ModuleWithModuleGenAmd(target=es5).js} (100%) create mode 100644 tests/baselines/reference/es5ModuleWithModuleGenAmd(target=es5).symbols create mode 100644 tests/baselines/reference/es5ModuleWithModuleGenAmd(target=es5).types create mode 100644 tests/baselines/reference/es5ModuleWithModuleGenCommonjs(target=es2015).js rename tests/baselines/reference/{es5ModuleWithModuleGenCommonjs.symbols => es5ModuleWithModuleGenCommonjs(target=es2015).symbols} (100%) rename tests/baselines/reference/{es5ModuleWithModuleGenCommonjs.types => es5ModuleWithModuleGenCommonjs(target=es2015).types} (100%) rename tests/baselines/reference/{es5ModuleWithModuleGenCommonjs.js => es5ModuleWithModuleGenCommonjs(target=es5).js} (100%) create mode 100644 tests/baselines/reference/es5ModuleWithModuleGenCommonjs(target=es5).symbols create mode 100644 tests/baselines/reference/es5ModuleWithModuleGenCommonjs(target=es5).types create mode 100644 tests/baselines/reference/es5ModuleWithoutModuleGenTarget(target=es2015).js rename tests/baselines/reference/{es5ModuleWithoutModuleGenTarget.symbols => es5ModuleWithoutModuleGenTarget(target=es2015).symbols} (100%) rename tests/baselines/reference/{es5ModuleWithoutModuleGenTarget.types => es5ModuleWithoutModuleGenTarget(target=es2015).types} (100%) rename tests/baselines/reference/{es5ModuleWithoutModuleGenTarget.js => es5ModuleWithoutModuleGenTarget(target=es5).js} (100%) create mode 100644 tests/baselines/reference/es5ModuleWithoutModuleGenTarget(target=es5).symbols create mode 100644 tests/baselines/reference/es5ModuleWithoutModuleGenTarget(target=es5).types create mode 100644 tests/baselines/reference/es5SetterparameterDestructuringNotElided(target=es2015).js rename tests/baselines/reference/{es5SetterparameterDestructuringNotElided.symbols => es5SetterparameterDestructuringNotElided(target=es2015).symbols} (100%) rename tests/baselines/reference/{es5SetterparameterDestructuringNotElided.types => es5SetterparameterDestructuringNotElided(target=es2015).types} (100%) rename tests/baselines/reference/{es5SetterparameterDestructuringNotElided.js => es5SetterparameterDestructuringNotElided(target=es5).js} (100%) create mode 100644 tests/baselines/reference/es5SetterparameterDestructuringNotElided(target=es5).symbols create mode 100644 tests/baselines/reference/es5SetterparameterDestructuringNotElided(target=es5).types create mode 100644 tests/baselines/reference/es5andes6module(target=es2015).js rename tests/baselines/reference/{es5andes6module.symbols => es5andes6module(target=es2015).symbols} (100%) rename tests/baselines/reference/{es5andes6module.types => es5andes6module(target=es2015).types} (100%) rename tests/baselines/reference/{es5andes6module.js => es5andes6module(target=es5).js} (100%) create mode 100644 tests/baselines/reference/es5andes6module(target=es5).symbols create mode 100644 tests/baselines/reference/es5andes6module(target=es5).types create mode 100644 tests/baselines/reference/es6ExportAllInEs5(target=es2015).js rename tests/baselines/reference/{es6ExportAllInEs5.symbols => es6ExportAllInEs5(target=es2015).symbols} (100%) rename tests/baselines/reference/{es6ExportAllInEs5.types => es6ExportAllInEs5(target=es2015).types} (100%) rename tests/baselines/reference/{es6ExportAllInEs5.js => es6ExportAllInEs5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/es6ExportAllInEs5(target=es5).symbols create mode 100644 tests/baselines/reference/es6ExportAllInEs5(target=es5).types create mode 100644 tests/baselines/reference/es6ExportClauseInEs5(target=es2015).js rename tests/baselines/reference/{es6ExportClauseInEs5.symbols => es6ExportClauseInEs5(target=es2015).symbols} (100%) rename tests/baselines/reference/{es6ExportClauseInEs5.types => es6ExportClauseInEs5(target=es2015).types} (100%) rename tests/baselines/reference/{es6ExportClauseInEs5.js => es6ExportClauseInEs5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/es6ExportClauseInEs5(target=es5).symbols create mode 100644 tests/baselines/reference/es6ExportClauseInEs5(target=es5).types rename tests/baselines/reference/{es6ExportClauseWithAssignmentInEs5.js => es6ExportClauseWithAssignmentInEs5(target=es2015).js} (100%) rename tests/baselines/reference/{es6ExportClauseWithAssignmentInEs5.symbols => es6ExportClauseWithAssignmentInEs5(target=es2015).symbols} (100%) rename tests/baselines/reference/{es6ExportClauseWithAssignmentInEs5.types => es6ExportClauseWithAssignmentInEs5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/es6ExportClauseWithAssignmentInEs5(target=es5).js create mode 100644 tests/baselines/reference/es6ExportClauseWithAssignmentInEs5(target=es5).symbols create mode 100644 tests/baselines/reference/es6ExportClauseWithAssignmentInEs5(target=es5).types create mode 100644 tests/baselines/reference/es6ExportClauseWithoutModuleSpecifierInEs5(target=es2015).js rename tests/baselines/reference/{es6ExportClauseWithoutModuleSpecifierInEs5.symbols => es6ExportClauseWithoutModuleSpecifierInEs5(target=es2015).symbols} (100%) rename tests/baselines/reference/{es6ExportClauseWithoutModuleSpecifierInEs5.types => es6ExportClauseWithoutModuleSpecifierInEs5(target=es2015).types} (100%) rename tests/baselines/reference/{es6ExportClauseWithoutModuleSpecifierInEs5.js => es6ExportClauseWithoutModuleSpecifierInEs5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/es6ExportClauseWithoutModuleSpecifierInEs5(target=es5).symbols create mode 100644 tests/baselines/reference/es6ExportClauseWithoutModuleSpecifierInEs5(target=es5).types rename tests/baselines/reference/{es6ImportDefaultBindingAmd.errors.txt => es6ImportDefaultBindingAmd(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{es6ImportDefaultBindingAmd.js => es6ImportDefaultBindingAmd(target=es2015).js} (100%) rename tests/baselines/reference/{es6ImportDefaultBindingAmd.symbols => es6ImportDefaultBindingAmd(target=es2015).symbols} (100%) rename tests/baselines/reference/{es6ImportDefaultBindingAmd.types => es6ImportDefaultBindingAmd(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/es6ImportDefaultBindingAmd(target=es5).errors.txt create mode 100644 tests/baselines/reference/es6ImportDefaultBindingAmd(target=es5).js create mode 100644 tests/baselines/reference/es6ImportDefaultBindingAmd(target=es5).symbols create mode 100644 tests/baselines/reference/es6ImportDefaultBindingAmd(target=es5).types create mode 100644 tests/baselines/reference/es6ImportDefaultBindingDts(target=es2015).js rename tests/baselines/reference/{es6ImportDefaultBindingDts.symbols => es6ImportDefaultBindingDts(target=es2015).symbols} (100%) rename tests/baselines/reference/{es6ImportDefaultBindingDts.types => es6ImportDefaultBindingDts(target=es2015).types} (100%) rename tests/baselines/reference/{es6ImportDefaultBindingDts.js => es6ImportDefaultBindingDts(target=es5).js} (100%) create mode 100644 tests/baselines/reference/es6ImportDefaultBindingDts(target=es5).symbols create mode 100644 tests/baselines/reference/es6ImportDefaultBindingDts(target=es5).types rename tests/baselines/reference/{es6ImportDefaultBindingFollowedWithNamedImport1InEs5.errors.txt => es6ImportDefaultBindingFollowedWithNamedImport1InEs5(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1InEs5(target=es2015).js rename tests/baselines/reference/{es6ImportDefaultBindingFollowedWithNamedImport1InEs5.symbols => es6ImportDefaultBindingFollowedWithNamedImport1InEs5(target=es2015).symbols} (100%) rename tests/baselines/reference/{es6ImportDefaultBindingFollowedWithNamedImport1InEs5.types => es6ImportDefaultBindingFollowedWithNamedImport1InEs5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1InEs5(target=es5).errors.txt rename tests/baselines/reference/{es6ImportDefaultBindingFollowedWithNamedImport1InEs5.js => es6ImportDefaultBindingFollowedWithNamedImport1InEs5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1InEs5(target=es5).symbols create mode 100644 tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1InEs5(target=es5).types rename tests/baselines/reference/{es6ImportDefaultBindingFollowedWithNamedImport1WithExport.errors.txt => es6ImportDefaultBindingFollowedWithNamedImport1WithExport(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1WithExport(target=es2015).js rename tests/baselines/reference/{es6ImportDefaultBindingFollowedWithNamedImport1WithExport.symbols => es6ImportDefaultBindingFollowedWithNamedImport1WithExport(target=es2015).symbols} (100%) rename tests/baselines/reference/{es6ImportDefaultBindingFollowedWithNamedImport1WithExport.types => es6ImportDefaultBindingFollowedWithNamedImport1WithExport(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1WithExport(target=es5).errors.txt rename tests/baselines/reference/{es6ImportDefaultBindingFollowedWithNamedImport1WithExport.js => es6ImportDefaultBindingFollowedWithNamedImport1WithExport(target=es5).js} (100%) create mode 100644 tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1WithExport(target=es5).symbols create mode 100644 tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1WithExport(target=es5).types rename tests/baselines/reference/{es6ImportDefaultBindingFollowedWithNamedImportDts1.errors.txt => es6ImportDefaultBindingFollowedWithNamedImportDts1(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportDts1(target=es2015).js rename tests/baselines/reference/{es6ImportDefaultBindingFollowedWithNamedImportDts1.symbols => es6ImportDefaultBindingFollowedWithNamedImportDts1(target=es2015).symbols} (100%) rename tests/baselines/reference/{es6ImportDefaultBindingFollowedWithNamedImportDts1.types => es6ImportDefaultBindingFollowedWithNamedImportDts1(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportDts1(target=es5).errors.txt rename tests/baselines/reference/{es6ImportDefaultBindingFollowedWithNamedImportDts1.js => es6ImportDefaultBindingFollowedWithNamedImportDts1(target=es5).js} (100%) create mode 100644 tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportDts1(target=es5).symbols create mode 100644 tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportDts1(target=es5).types rename tests/baselines/reference/{es6ImportDefaultBindingFollowedWithNamedImportInEs5.errors.txt => es6ImportDefaultBindingFollowedWithNamedImportInEs5(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportInEs5(target=es2015).js rename tests/baselines/reference/{es6ImportDefaultBindingFollowedWithNamedImportInEs5.symbols => es6ImportDefaultBindingFollowedWithNamedImportInEs5(target=es2015).symbols} (100%) rename tests/baselines/reference/{es6ImportDefaultBindingFollowedWithNamedImportInEs5.types => es6ImportDefaultBindingFollowedWithNamedImportInEs5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportInEs5(target=es5).errors.txt rename tests/baselines/reference/{es6ImportDefaultBindingFollowedWithNamedImportInEs5.js => es6ImportDefaultBindingFollowedWithNamedImportInEs5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportInEs5(target=es5).symbols create mode 100644 tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportInEs5(target=es5).types rename tests/baselines/reference/{es6ImportDefaultBindingFollowedWithNamedImportWithExport.errors.txt => es6ImportDefaultBindingFollowedWithNamedImportWithExport(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportWithExport(target=es2015).js rename tests/baselines/reference/{es6ImportDefaultBindingFollowedWithNamedImportWithExport.symbols => es6ImportDefaultBindingFollowedWithNamedImportWithExport(target=es2015).symbols} (100%) rename tests/baselines/reference/{es6ImportDefaultBindingFollowedWithNamedImportWithExport.types => es6ImportDefaultBindingFollowedWithNamedImportWithExport(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportWithExport(target=es5).errors.txt rename tests/baselines/reference/{es6ImportDefaultBindingFollowedWithNamedImportWithExport.js => es6ImportDefaultBindingFollowedWithNamedImportWithExport(target=es5).js} (100%) create mode 100644 tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportWithExport(target=es5).symbols create mode 100644 tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportWithExport(target=es5).types create mode 100644 tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1InEs5(target=es2015).js rename tests/baselines/reference/{es6ImportDefaultBindingFollowedWithNamespaceBinding1InEs5.symbols => es6ImportDefaultBindingFollowedWithNamespaceBinding1InEs5(target=es2015).symbols} (100%) rename tests/baselines/reference/{es6ImportDefaultBindingFollowedWithNamespaceBinding1InEs5.types => es6ImportDefaultBindingFollowedWithNamespaceBinding1InEs5(target=es2015).types} (100%) rename tests/baselines/reference/{es6ImportDefaultBindingFollowedWithNamespaceBinding1InEs5.js => es6ImportDefaultBindingFollowedWithNamespaceBinding1InEs5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1InEs5(target=es5).symbols create mode 100644 tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1InEs5(target=es5).types rename tests/baselines/reference/{es6ImportDefaultBindingFollowedWithNamespaceBinding1WithExport.errors.txt => es6ImportDefaultBindingFollowedWithNamespaceBinding1WithExport(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{es6ImportDefaultBindingFollowedWithNamespaceBinding1WithExport.js => es6ImportDefaultBindingFollowedWithNamespaceBinding1WithExport(target=es2015).js} (100%) rename tests/baselines/reference/{es6ImportDefaultBindingFollowedWithNamespaceBinding1WithExport.symbols => es6ImportDefaultBindingFollowedWithNamespaceBinding1WithExport(target=es2015).symbols} (100%) rename tests/baselines/reference/{es6ImportDefaultBindingFollowedWithNamespaceBinding1WithExport.types => es6ImportDefaultBindingFollowedWithNamespaceBinding1WithExport(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1WithExport(target=es5).errors.txt create mode 100644 tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1WithExport(target=es5).js create mode 100644 tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1WithExport(target=es5).symbols create mode 100644 tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1WithExport(target=es5).types rename tests/baselines/reference/{es6ImportDefaultBindingFollowedWithNamespaceBindingDts1.errors.txt => es6ImportDefaultBindingFollowedWithNamespaceBindingDts1(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingDts1(target=es2015).js rename tests/baselines/reference/{es6ImportDefaultBindingFollowedWithNamespaceBindingDts1.symbols => es6ImportDefaultBindingFollowedWithNamespaceBindingDts1(target=es2015).symbols} (100%) rename tests/baselines/reference/{es6ImportDefaultBindingFollowedWithNamespaceBindingDts1.types => es6ImportDefaultBindingFollowedWithNamespaceBindingDts1(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingDts1(target=es5).errors.txt rename tests/baselines/reference/{es6ImportDefaultBindingFollowedWithNamespaceBindingDts1.js => es6ImportDefaultBindingFollowedWithNamespaceBindingDts1(target=es5).js} (100%) create mode 100644 tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingDts1(target=es5).symbols create mode 100644 tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingDts1(target=es5).types rename tests/baselines/reference/{es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5.errors.txt => es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5(target=es2015).js rename tests/baselines/reference/{es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5.symbols => es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5(target=es2015).symbols} (100%) rename tests/baselines/reference/{es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5.types => es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5(target=es5).errors.txt rename tests/baselines/reference/{es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5.js => es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5(target=es5).symbols create mode 100644 tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5(target=es5).types rename tests/baselines/reference/{es6ImportDefaultBindingInEs5.js => es6ImportDefaultBindingInEs5(target=es2015).js} (100%) rename tests/baselines/reference/{es6ImportDefaultBindingInEs5.symbols => es6ImportDefaultBindingInEs5(target=es2015).symbols} (100%) rename tests/baselines/reference/{es6ImportDefaultBindingInEs5.types => es6ImportDefaultBindingInEs5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/es6ImportDefaultBindingInEs5(target=es5).js create mode 100644 tests/baselines/reference/es6ImportDefaultBindingInEs5(target=es5).symbols create mode 100644 tests/baselines/reference/es6ImportDefaultBindingInEs5(target=es5).types rename tests/baselines/reference/{es6ImportDefaultBindingMergeErrors.errors.txt => es6ImportDefaultBindingMergeErrors(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/es6ImportDefaultBindingMergeErrors(target=es2015).js rename tests/baselines/reference/{es6ImportDefaultBindingMergeErrors.symbols => es6ImportDefaultBindingMergeErrors(target=es2015).symbols} (100%) rename tests/baselines/reference/{es6ImportDefaultBindingMergeErrors.types => es6ImportDefaultBindingMergeErrors(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/es6ImportDefaultBindingMergeErrors(target=es5).errors.txt rename tests/baselines/reference/{es6ImportDefaultBindingMergeErrors.js => es6ImportDefaultBindingMergeErrors(target=es5).js} (100%) create mode 100644 tests/baselines/reference/es6ImportDefaultBindingMergeErrors(target=es5).symbols create mode 100644 tests/baselines/reference/es6ImportDefaultBindingMergeErrors(target=es5).types rename tests/baselines/reference/{es6ImportDefaultBindingWithExport.errors.txt => es6ImportDefaultBindingWithExport(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/es6ImportDefaultBindingWithExport(target=es2015).js rename tests/baselines/reference/{es6ImportDefaultBindingWithExport.symbols => es6ImportDefaultBindingWithExport(target=es2015).symbols} (100%) rename tests/baselines/reference/{es6ImportDefaultBindingWithExport.types => es6ImportDefaultBindingWithExport(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/es6ImportDefaultBindingWithExport(target=es5).errors.txt rename tests/baselines/reference/{es6ImportDefaultBindingWithExport.js => es6ImportDefaultBindingWithExport(target=es5).js} (100%) create mode 100644 tests/baselines/reference/es6ImportDefaultBindingWithExport(target=es5).symbols create mode 100644 tests/baselines/reference/es6ImportDefaultBindingWithExport(target=es5).types create mode 100644 tests/baselines/reference/es6ImportNameSpaceImportInEs5(target=es2015).js rename tests/baselines/reference/{es6ImportNameSpaceImportInEs5.symbols => es6ImportNameSpaceImportInEs5(target=es2015).symbols} (100%) rename tests/baselines/reference/{es6ImportNameSpaceImportInEs5.types => es6ImportNameSpaceImportInEs5(target=es2015).types} (100%) rename tests/baselines/reference/{es6ImportNameSpaceImportInEs5.js => es6ImportNameSpaceImportInEs5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/es6ImportNameSpaceImportInEs5(target=es5).symbols create mode 100644 tests/baselines/reference/es6ImportNameSpaceImportInEs5(target=es5).types rename tests/baselines/reference/{es6ImportNameSpaceImportMergeErrors.errors.txt => es6ImportNameSpaceImportMergeErrors(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{es6ImportNameSpaceImportMergeErrors.js => es6ImportNameSpaceImportMergeErrors(target=es2015).js} (100%) rename tests/baselines/reference/{es6ImportNameSpaceImportMergeErrors.symbols => es6ImportNameSpaceImportMergeErrors(target=es2015).symbols} (100%) rename tests/baselines/reference/{es6ImportNameSpaceImportMergeErrors.types => es6ImportNameSpaceImportMergeErrors(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/es6ImportNameSpaceImportMergeErrors(target=es5).errors.txt create mode 100644 tests/baselines/reference/es6ImportNameSpaceImportMergeErrors(target=es5).js create mode 100644 tests/baselines/reference/es6ImportNameSpaceImportMergeErrors(target=es5).symbols create mode 100644 tests/baselines/reference/es6ImportNameSpaceImportMergeErrors(target=es5).types rename tests/baselines/reference/{es6ImportNameSpaceImportNoNamedExports.js => es6ImportNameSpaceImportNoNamedExports(target=es2015).js} (100%) rename tests/baselines/reference/{es6ImportNameSpaceImportNoNamedExports.symbols => es6ImportNameSpaceImportNoNamedExports(target=es2015).symbols} (100%) rename tests/baselines/reference/{es6ImportNameSpaceImportNoNamedExports.types => es6ImportNameSpaceImportNoNamedExports(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/es6ImportNameSpaceImportNoNamedExports(target=es5).js create mode 100644 tests/baselines/reference/es6ImportNameSpaceImportNoNamedExports(target=es5).symbols create mode 100644 tests/baselines/reference/es6ImportNameSpaceImportNoNamedExports(target=es5).types create mode 100644 tests/baselines/reference/es6ImportNamedImportInEs5(target=es2015).js rename tests/baselines/reference/{es6ImportNamedImportInEs5.symbols => es6ImportNamedImportInEs5(target=es2015).symbols} (100%) rename tests/baselines/reference/{es6ImportNamedImportInEs5.types => es6ImportNamedImportInEs5(target=es2015).types} (100%) rename tests/baselines/reference/{es6ImportNamedImportInEs5.js => es6ImportNamedImportInEs5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/es6ImportNamedImportInEs5(target=es5).symbols create mode 100644 tests/baselines/reference/es6ImportNamedImportInEs5(target=es5).types rename tests/baselines/reference/{es6ImportNamedImportNoNamedExports.errors.txt => es6ImportNamedImportNoNamedExports(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{es6ImportNamedImportNoNamedExports.js => es6ImportNamedImportNoNamedExports(target=es2015).js} (100%) rename tests/baselines/reference/{es6ImportNamedImportNoNamedExports.symbols => es6ImportNamedImportNoNamedExports(target=es2015).symbols} (100%) rename tests/baselines/reference/{es6ImportNamedImportNoNamedExports.types => es6ImportNamedImportNoNamedExports(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/es6ImportNamedImportNoNamedExports(target=es5).errors.txt create mode 100644 tests/baselines/reference/es6ImportNamedImportNoNamedExports(target=es5).js create mode 100644 tests/baselines/reference/es6ImportNamedImportNoNamedExports(target=es5).symbols create mode 100644 tests/baselines/reference/es6ImportNamedImportNoNamedExports(target=es5).types rename tests/baselines/reference/{es6ImportWithoutFromClauseInEs5.errors.txt => es6ImportWithoutFromClauseInEs5(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{es6ImportWithoutFromClauseInEs5.js => es6ImportWithoutFromClauseInEs5(target=es2015).js} (100%) rename tests/baselines/reference/{es6ImportWithoutFromClauseInEs5.symbols => es6ImportWithoutFromClauseInEs5(target=es2015).symbols} (100%) rename tests/baselines/reference/{es6ImportWithoutFromClauseInEs5.types => es6ImportWithoutFromClauseInEs5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/es6ImportWithoutFromClauseInEs5(target=es5).errors.txt create mode 100644 tests/baselines/reference/es6ImportWithoutFromClauseInEs5(target=es5).js create mode 100644 tests/baselines/reference/es6ImportWithoutFromClauseInEs5(target=es5).symbols create mode 100644 tests/baselines/reference/es6ImportWithoutFromClauseInEs5(target=es5).types create mode 100644 tests/baselines/reference/es6modulekindExportClassNameWithObject(target=es2015).js rename tests/baselines/reference/{es6modulekindExportClassNameWithObject.symbols => es6modulekindExportClassNameWithObject(target=es2015).symbols} (100%) rename tests/baselines/reference/{es6modulekindExportClassNameWithObject.types => es6modulekindExportClassNameWithObject(target=es2015).types} (100%) rename tests/baselines/reference/{es6modulekindExportClassNameWithObject.js => es6modulekindExportClassNameWithObject(target=es5).js} (100%) create mode 100644 tests/baselines/reference/es6modulekindExportClassNameWithObject(target=es5).symbols create mode 100644 tests/baselines/reference/es6modulekindExportClassNameWithObject(target=es5).types create mode 100644 tests/baselines/reference/es6modulekindWithES5Target(target=es2015).js rename tests/baselines/reference/{es6modulekindWithES5Target.symbols => es6modulekindWithES5Target(target=es2015).symbols} (100%) rename tests/baselines/reference/{es6modulekindWithES5Target.types => es6modulekindWithES5Target(target=es2015).types} (100%) rename tests/baselines/reference/{es6modulekindWithES5Target.js => es6modulekindWithES5Target(target=es5).js} (100%) create mode 100644 tests/baselines/reference/es6modulekindWithES5Target(target=es5).symbols create mode 100644 tests/baselines/reference/es6modulekindWithES5Target(target=es5).types rename tests/baselines/reference/{es6modulekindWithES5Target10.errors.txt => es6modulekindWithES5Target10(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{es6modulekindWithES5Target10.js => es6modulekindWithES5Target10(target=es2015).js} (100%) rename tests/baselines/reference/{es6modulekindWithES5Target10.symbols => es6modulekindWithES5Target10(target=es2015).symbols} (100%) rename tests/baselines/reference/{es6modulekindWithES5Target10.types => es6modulekindWithES5Target10(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/es6modulekindWithES5Target10(target=es5).errors.txt create mode 100644 tests/baselines/reference/es6modulekindWithES5Target10(target=es5).js create mode 100644 tests/baselines/reference/es6modulekindWithES5Target10(target=es5).symbols create mode 100644 tests/baselines/reference/es6modulekindWithES5Target10(target=es5).types create mode 100644 tests/baselines/reference/es6modulekindWithES5Target11(target=es2015).js rename tests/baselines/reference/{es6modulekindWithES5Target11.symbols => es6modulekindWithES5Target11(target=es2015).symbols} (100%) rename tests/baselines/reference/{es6modulekindWithES5Target11.types => es6modulekindWithES5Target11(target=es2015).types} (100%) rename tests/baselines/reference/{es6modulekindWithES5Target11.js => es6modulekindWithES5Target11(target=es5).js} (100%) create mode 100644 tests/baselines/reference/es6modulekindWithES5Target11(target=es5).symbols create mode 100644 tests/baselines/reference/es6modulekindWithES5Target11(target=es5).types create mode 100644 tests/baselines/reference/es6modulekindWithES5Target12(target=es2015).js rename tests/baselines/reference/{es6modulekindWithES5Target12.symbols => es6modulekindWithES5Target12(target=es2015).symbols} (100%) rename tests/baselines/reference/{es6modulekindWithES5Target12.types => es6modulekindWithES5Target12(target=es2015).types} (100%) rename tests/baselines/reference/{es6modulekindWithES5Target12.js => es6modulekindWithES5Target12(target=es5).js} (100%) create mode 100644 tests/baselines/reference/es6modulekindWithES5Target12(target=es5).symbols create mode 100644 tests/baselines/reference/es6modulekindWithES5Target12(target=es5).types create mode 100644 tests/baselines/reference/es6modulekindWithES5Target2(target=es2015).js rename tests/baselines/reference/{es6modulekindWithES5Target2.symbols => es6modulekindWithES5Target2(target=es2015).symbols} (100%) rename tests/baselines/reference/{es6modulekindWithES5Target2.types => es6modulekindWithES5Target2(target=es2015).types} (100%) rename tests/baselines/reference/{es6modulekindWithES5Target2.js => es6modulekindWithES5Target2(target=es5).js} (100%) create mode 100644 tests/baselines/reference/es6modulekindWithES5Target2(target=es5).symbols create mode 100644 tests/baselines/reference/es6modulekindWithES5Target2(target=es5).types create mode 100644 tests/baselines/reference/es6modulekindWithES5Target3(target=es2015).js rename tests/baselines/reference/{es6modulekindWithES5Target3.symbols => es6modulekindWithES5Target3(target=es2015).symbols} (100%) rename tests/baselines/reference/{es6modulekindWithES5Target3.types => es6modulekindWithES5Target3(target=es2015).types} (100%) rename tests/baselines/reference/{es6modulekindWithES5Target3.js => es6modulekindWithES5Target3(target=es5).js} (100%) create mode 100644 tests/baselines/reference/es6modulekindWithES5Target3(target=es5).symbols create mode 100644 tests/baselines/reference/es6modulekindWithES5Target3(target=es5).types create mode 100644 tests/baselines/reference/es6modulekindWithES5Target4(target=es2015).js rename tests/baselines/reference/{es6modulekindWithES5Target4.symbols => es6modulekindWithES5Target4(target=es2015).symbols} (100%) rename tests/baselines/reference/{es6modulekindWithES5Target4.types => es6modulekindWithES5Target4(target=es2015).types} (100%) rename tests/baselines/reference/{es6modulekindWithES5Target4.js => es6modulekindWithES5Target4(target=es5).js} (100%) create mode 100644 tests/baselines/reference/es6modulekindWithES5Target4(target=es5).symbols create mode 100644 tests/baselines/reference/es6modulekindWithES5Target4(target=es5).types rename tests/baselines/reference/{es6modulekindWithES5Target5.js => es6modulekindWithES5Target5(target=es2015).js} (100%) rename tests/baselines/reference/{es6modulekindWithES5Target5.symbols => es6modulekindWithES5Target5(target=es2015).symbols} (100%) rename tests/baselines/reference/{es6modulekindWithES5Target5.types => es6modulekindWithES5Target5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/es6modulekindWithES5Target5(target=es5).js create mode 100644 tests/baselines/reference/es6modulekindWithES5Target5(target=es5).symbols create mode 100644 tests/baselines/reference/es6modulekindWithES5Target5(target=es5).types create mode 100644 tests/baselines/reference/es6modulekindWithES5Target6(target=es2015).js rename tests/baselines/reference/{es6modulekindWithES5Target6.symbols => es6modulekindWithES5Target6(target=es2015).symbols} (100%) rename tests/baselines/reference/{es6modulekindWithES5Target6.types => es6modulekindWithES5Target6(target=es2015).types} (100%) rename tests/baselines/reference/{es6modulekindWithES5Target6.js => es6modulekindWithES5Target6(target=es5).js} (100%) create mode 100644 tests/baselines/reference/es6modulekindWithES5Target6(target=es5).symbols create mode 100644 tests/baselines/reference/es6modulekindWithES5Target6(target=es5).types rename tests/baselines/reference/{es6modulekindWithES5Target7.js => es6modulekindWithES5Target7(target=es2015).js} (100%) rename tests/baselines/reference/{es6modulekindWithES5Target7.symbols => es6modulekindWithES5Target7(target=es2015).symbols} (100%) rename tests/baselines/reference/{es6modulekindWithES5Target7.types => es6modulekindWithES5Target7(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/es6modulekindWithES5Target7(target=es5).js create mode 100644 tests/baselines/reference/es6modulekindWithES5Target7(target=es5).symbols create mode 100644 tests/baselines/reference/es6modulekindWithES5Target7(target=es5).types create mode 100644 tests/baselines/reference/es6modulekindWithES5Target8(target=es2015).js rename tests/baselines/reference/{es6modulekindWithES5Target8.symbols => es6modulekindWithES5Target8(target=es2015).symbols} (100%) rename tests/baselines/reference/{es6modulekindWithES5Target8.types => es6modulekindWithES5Target8(target=es2015).types} (100%) rename tests/baselines/reference/{es6modulekindWithES5Target8.js => es6modulekindWithES5Target8(target=es5).js} (100%) create mode 100644 tests/baselines/reference/es6modulekindWithES5Target8(target=es5).symbols create mode 100644 tests/baselines/reference/es6modulekindWithES5Target8(target=es5).types rename tests/baselines/reference/{es6modulekindWithES5Target9.errors.txt => es6modulekindWithES5Target9(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{es6modulekindWithES5Target9.js => es6modulekindWithES5Target9(target=es2015).js} (100%) rename tests/baselines/reference/{es6modulekindWithES5Target9.symbols => es6modulekindWithES5Target9(target=es2015).symbols} (100%) rename tests/baselines/reference/{es6modulekindWithES5Target9.types => es6modulekindWithES5Target9(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/es6modulekindWithES5Target9(target=es5).errors.txt create mode 100644 tests/baselines/reference/es6modulekindWithES5Target9(target=es5).js create mode 100644 tests/baselines/reference/es6modulekindWithES5Target9(target=es5).symbols create mode 100644 tests/baselines/reference/es6modulekindWithES5Target9(target=es5).types create mode 100644 tests/baselines/reference/esDecorators-classDeclaration-classThisReference.es5(target=es2015).js rename tests/baselines/reference/{esDecorators-classDeclaration-classThisReference.es5.js => esDecorators-classDeclaration-classThisReference.es5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/esModuleInteropWithExportStar(target=es2015).js rename tests/baselines/reference/{esModuleInteropWithExportStar.symbols => esModuleInteropWithExportStar(target=es2015).symbols} (100%) rename tests/baselines/reference/{esModuleInteropWithExportStar.types => esModuleInteropWithExportStar(target=es2015).types} (100%) rename tests/baselines/reference/{esModuleInteropWithExportStar.js => esModuleInteropWithExportStar(target=es5).js} (100%) create mode 100644 tests/baselines/reference/esModuleInteropWithExportStar(target=es5).symbols create mode 100644 tests/baselines/reference/esModuleInteropWithExportStar(target=es5).types create mode 100644 tests/baselines/reference/esnextmodulekindWithES5Target(target=es2015).js rename tests/baselines/reference/{esnextmodulekindWithES5Target.symbols => esnextmodulekindWithES5Target(target=es2015).symbols} (100%) rename tests/baselines/reference/{esnextmodulekindWithES5Target.types => esnextmodulekindWithES5Target(target=es2015).types} (100%) rename tests/baselines/reference/{esnextmodulekindWithES5Target.js => esnextmodulekindWithES5Target(target=es5).js} (100%) create mode 100644 tests/baselines/reference/esnextmodulekindWithES5Target(target=es5).symbols create mode 100644 tests/baselines/reference/esnextmodulekindWithES5Target(target=es5).types rename tests/baselines/reference/{esnextmodulekindWithES5Target10.errors.txt => esnextmodulekindWithES5Target10(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{esnextmodulekindWithES5Target10.js => esnextmodulekindWithES5Target10(target=es2015).js} (100%) rename tests/baselines/reference/{esnextmodulekindWithES5Target10.symbols => esnextmodulekindWithES5Target10(target=es2015).symbols} (100%) rename tests/baselines/reference/{esnextmodulekindWithES5Target10.types => esnextmodulekindWithES5Target10(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/esnextmodulekindWithES5Target10(target=es5).errors.txt create mode 100644 tests/baselines/reference/esnextmodulekindWithES5Target10(target=es5).js create mode 100644 tests/baselines/reference/esnextmodulekindWithES5Target10(target=es5).symbols create mode 100644 tests/baselines/reference/esnextmodulekindWithES5Target10(target=es5).types create mode 100644 tests/baselines/reference/esnextmodulekindWithES5Target11(target=es2015).js rename tests/baselines/reference/{esnextmodulekindWithES5Target11.symbols => esnextmodulekindWithES5Target11(target=es2015).symbols} (100%) rename tests/baselines/reference/{esnextmodulekindWithES5Target11.types => esnextmodulekindWithES5Target11(target=es2015).types} (100%) rename tests/baselines/reference/{esnextmodulekindWithES5Target11.js => esnextmodulekindWithES5Target11(target=es5).js} (100%) create mode 100644 tests/baselines/reference/esnextmodulekindWithES5Target11(target=es5).symbols create mode 100644 tests/baselines/reference/esnextmodulekindWithES5Target11(target=es5).types create mode 100644 tests/baselines/reference/esnextmodulekindWithES5Target12(target=es2015).js rename tests/baselines/reference/{esnextmodulekindWithES5Target12.symbols => esnextmodulekindWithES5Target12(target=es2015).symbols} (100%) rename tests/baselines/reference/{esnextmodulekindWithES5Target12.types => esnextmodulekindWithES5Target12(target=es2015).types} (100%) rename tests/baselines/reference/{esnextmodulekindWithES5Target12.js => esnextmodulekindWithES5Target12(target=es5).js} (100%) create mode 100644 tests/baselines/reference/esnextmodulekindWithES5Target12(target=es5).symbols create mode 100644 tests/baselines/reference/esnextmodulekindWithES5Target12(target=es5).types create mode 100644 tests/baselines/reference/esnextmodulekindWithES5Target2(target=es2015).js rename tests/baselines/reference/{esnextmodulekindWithES5Target2.symbols => esnextmodulekindWithES5Target2(target=es2015).symbols} (100%) rename tests/baselines/reference/{esnextmodulekindWithES5Target2.types => esnextmodulekindWithES5Target2(target=es2015).types} (100%) rename tests/baselines/reference/{esnextmodulekindWithES5Target2.js => esnextmodulekindWithES5Target2(target=es5).js} (100%) create mode 100644 tests/baselines/reference/esnextmodulekindWithES5Target2(target=es5).symbols create mode 100644 tests/baselines/reference/esnextmodulekindWithES5Target2(target=es5).types create mode 100644 tests/baselines/reference/esnextmodulekindWithES5Target3(target=es2015).js rename tests/baselines/reference/{esnextmodulekindWithES5Target3.symbols => esnextmodulekindWithES5Target3(target=es2015).symbols} (100%) rename tests/baselines/reference/{esnextmodulekindWithES5Target3.types => esnextmodulekindWithES5Target3(target=es2015).types} (100%) rename tests/baselines/reference/{esnextmodulekindWithES5Target3.js => esnextmodulekindWithES5Target3(target=es5).js} (100%) create mode 100644 tests/baselines/reference/esnextmodulekindWithES5Target3(target=es5).symbols create mode 100644 tests/baselines/reference/esnextmodulekindWithES5Target3(target=es5).types create mode 100644 tests/baselines/reference/esnextmodulekindWithES5Target4(target=es2015).js rename tests/baselines/reference/{esnextmodulekindWithES5Target4.symbols => esnextmodulekindWithES5Target4(target=es2015).symbols} (100%) rename tests/baselines/reference/{esnextmodulekindWithES5Target4.types => esnextmodulekindWithES5Target4(target=es2015).types} (100%) rename tests/baselines/reference/{esnextmodulekindWithES5Target4.js => esnextmodulekindWithES5Target4(target=es5).js} (100%) create mode 100644 tests/baselines/reference/esnextmodulekindWithES5Target4(target=es5).symbols create mode 100644 tests/baselines/reference/esnextmodulekindWithES5Target4(target=es5).types rename tests/baselines/reference/{esnextmodulekindWithES5Target5.js => esnextmodulekindWithES5Target5(target=es2015).js} (100%) rename tests/baselines/reference/{esnextmodulekindWithES5Target5.symbols => esnextmodulekindWithES5Target5(target=es2015).symbols} (100%) rename tests/baselines/reference/{esnextmodulekindWithES5Target5.types => esnextmodulekindWithES5Target5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/esnextmodulekindWithES5Target5(target=es5).js create mode 100644 tests/baselines/reference/esnextmodulekindWithES5Target5(target=es5).symbols create mode 100644 tests/baselines/reference/esnextmodulekindWithES5Target5(target=es5).types create mode 100644 tests/baselines/reference/esnextmodulekindWithES5Target6(target=es2015).js rename tests/baselines/reference/{esnextmodulekindWithES5Target6.symbols => esnextmodulekindWithES5Target6(target=es2015).symbols} (100%) rename tests/baselines/reference/{esnextmodulekindWithES5Target6.types => esnextmodulekindWithES5Target6(target=es2015).types} (100%) rename tests/baselines/reference/{esnextmodulekindWithES5Target6.js => esnextmodulekindWithES5Target6(target=es5).js} (100%) create mode 100644 tests/baselines/reference/esnextmodulekindWithES5Target6(target=es5).symbols create mode 100644 tests/baselines/reference/esnextmodulekindWithES5Target6(target=es5).types rename tests/baselines/reference/{esnextmodulekindWithES5Target7.js => esnextmodulekindWithES5Target7(target=es2015).js} (100%) rename tests/baselines/reference/{esnextmodulekindWithES5Target7.symbols => esnextmodulekindWithES5Target7(target=es2015).symbols} (100%) rename tests/baselines/reference/{esnextmodulekindWithES5Target7.types => esnextmodulekindWithES5Target7(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/esnextmodulekindWithES5Target7(target=es5).js create mode 100644 tests/baselines/reference/esnextmodulekindWithES5Target7(target=es5).symbols create mode 100644 tests/baselines/reference/esnextmodulekindWithES5Target7(target=es5).types create mode 100644 tests/baselines/reference/esnextmodulekindWithES5Target8(target=es2015).js rename tests/baselines/reference/{esnextmodulekindWithES5Target8.symbols => esnextmodulekindWithES5Target8(target=es2015).symbols} (100%) rename tests/baselines/reference/{esnextmodulekindWithES5Target8.types => esnextmodulekindWithES5Target8(target=es2015).types} (100%) rename tests/baselines/reference/{esnextmodulekindWithES5Target8.js => esnextmodulekindWithES5Target8(target=es5).js} (100%) create mode 100644 tests/baselines/reference/esnextmodulekindWithES5Target8(target=es5).symbols create mode 100644 tests/baselines/reference/esnextmodulekindWithES5Target8(target=es5).types rename tests/baselines/reference/{esnextmodulekindWithES5Target9.errors.txt => esnextmodulekindWithES5Target9(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{esnextmodulekindWithES5Target9.js => esnextmodulekindWithES5Target9(target=es2015).js} (100%) rename tests/baselines/reference/{esnextmodulekindWithES5Target9.symbols => esnextmodulekindWithES5Target9(target=es2015).symbols} (100%) rename tests/baselines/reference/{esnextmodulekindWithES5Target9.types => esnextmodulekindWithES5Target9(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/esnextmodulekindWithES5Target9(target=es5).errors.txt create mode 100644 tests/baselines/reference/esnextmodulekindWithES5Target9(target=es5).js create mode 100644 tests/baselines/reference/esnextmodulekindWithES5Target9(target=es5).symbols create mode 100644 tests/baselines/reference/esnextmodulekindWithES5Target9(target=es5).types create mode 100644 tests/baselines/reference/exnextmodulekindExportClassNameWithObject(target=es2015).js rename tests/baselines/reference/{exnextmodulekindExportClassNameWithObject.symbols => exnextmodulekindExportClassNameWithObject(target=es2015).symbols} (100%) rename tests/baselines/reference/{exnextmodulekindExportClassNameWithObject.types => exnextmodulekindExportClassNameWithObject(target=es2015).types} (100%) rename tests/baselines/reference/{exnextmodulekindExportClassNameWithObject.js => exnextmodulekindExportClassNameWithObject(target=es5).js} (100%) create mode 100644 tests/baselines/reference/exnextmodulekindExportClassNameWithObject(target=es5).symbols create mode 100644 tests/baselines/reference/exnextmodulekindExportClassNameWithObject(target=es5).types rename tests/baselines/reference/{exponentiationOperatorInTemplateStringWithSyntaxError1.errors.txt => exponentiationOperatorInTemplateStringWithSyntaxError1(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError1(target=es2015).js rename tests/baselines/reference/{exponentiationOperatorInTemplateStringWithSyntaxError1.symbols => exponentiationOperatorInTemplateStringWithSyntaxError1(target=es2015).symbols} (100%) rename tests/baselines/reference/{exponentiationOperatorInTemplateStringWithSyntaxError1.types => exponentiationOperatorInTemplateStringWithSyntaxError1(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError1(target=es5).errors.txt rename tests/baselines/reference/{exponentiationOperatorInTemplateStringWithSyntaxError1.js => exponentiationOperatorInTemplateStringWithSyntaxError1(target=es5).js} (100%) create mode 100644 tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError1(target=es5).symbols create mode 100644 tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError1(target=es5).types rename tests/baselines/reference/{exponentiationOperatorInTemplateStringWithSyntaxError2.errors.txt => exponentiationOperatorInTemplateStringWithSyntaxError2(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError2(target=es2015).js rename tests/baselines/reference/{exponentiationOperatorInTemplateStringWithSyntaxError2.symbols => exponentiationOperatorInTemplateStringWithSyntaxError2(target=es2015).symbols} (100%) rename tests/baselines/reference/{exponentiationOperatorInTemplateStringWithSyntaxError2.types => exponentiationOperatorInTemplateStringWithSyntaxError2(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError2(target=es5).errors.txt rename tests/baselines/reference/{exponentiationOperatorInTemplateStringWithSyntaxError2.js => exponentiationOperatorInTemplateStringWithSyntaxError2(target=es5).js} (100%) create mode 100644 tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError2(target=es5).symbols create mode 100644 tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError2(target=es5).types rename tests/baselines/reference/{exponentiationOperatorInTemplateStringWithSyntaxError3.errors.txt => exponentiationOperatorInTemplateStringWithSyntaxError3(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError3(target=es2015).js rename tests/baselines/reference/{exponentiationOperatorInTemplateStringWithSyntaxError3.symbols => exponentiationOperatorInTemplateStringWithSyntaxError3(target=es2015).symbols} (100%) rename tests/baselines/reference/{exponentiationOperatorInTemplateStringWithSyntaxError3.types => exponentiationOperatorInTemplateStringWithSyntaxError3(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError3(target=es5).errors.txt rename tests/baselines/reference/{exponentiationOperatorInTemplateStringWithSyntaxError3.js => exponentiationOperatorInTemplateStringWithSyntaxError3(target=es5).js} (100%) create mode 100644 tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError3(target=es5).symbols create mode 100644 tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError3(target=es5).types rename tests/baselines/reference/{exponentiationOperatorSyntaxError1.errors.txt => exponentiationOperatorSyntaxError1(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{exponentiationOperatorSyntaxError1.js => exponentiationOperatorSyntaxError1(target=es2015).js} (100%) rename tests/baselines/reference/{exponentiationOperatorSyntaxError1.symbols => exponentiationOperatorSyntaxError1(target=es2015).symbols} (100%) rename tests/baselines/reference/{exponentiationOperatorSyntaxError1.types => exponentiationOperatorSyntaxError1(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/exponentiationOperatorSyntaxError1(target=es5).errors.txt create mode 100644 tests/baselines/reference/exponentiationOperatorSyntaxError1(target=es5).js create mode 100644 tests/baselines/reference/exponentiationOperatorSyntaxError1(target=es5).symbols create mode 100644 tests/baselines/reference/exponentiationOperatorSyntaxError1(target=es5).types rename tests/baselines/reference/{exponentiationOperatorSyntaxError2.errors.txt => exponentiationOperatorSyntaxError2(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{exponentiationOperatorSyntaxError2.js => exponentiationOperatorSyntaxError2(target=es2015).js} (100%) rename tests/baselines/reference/{exponentiationOperatorSyntaxError2.symbols => exponentiationOperatorSyntaxError2(target=es2015).symbols} (100%) rename tests/baselines/reference/{exponentiationOperatorSyntaxError2.types => exponentiationOperatorSyntaxError2(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/exponentiationOperatorSyntaxError2(target=es5).errors.txt create mode 100644 tests/baselines/reference/exponentiationOperatorSyntaxError2(target=es5).js create mode 100644 tests/baselines/reference/exponentiationOperatorSyntaxError2(target=es5).symbols create mode 100644 tests/baselines/reference/exponentiationOperatorSyntaxError2(target=es5).types rename tests/baselines/reference/{exponentiationOperatorWithTemplateStringInvalid.errors.txt => exponentiationOperatorWithTemplateStringInvalid(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/exponentiationOperatorWithTemplateStringInvalid(target=es2015).js rename tests/baselines/reference/{exponentiationOperatorWithTemplateStringInvalid.symbols => exponentiationOperatorWithTemplateStringInvalid(target=es2015).symbols} (100%) rename tests/baselines/reference/{exponentiationOperatorWithTemplateStringInvalid.types => exponentiationOperatorWithTemplateStringInvalid(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/exponentiationOperatorWithTemplateStringInvalid(target=es5).errors.txt rename tests/baselines/reference/{exponentiationOperatorWithTemplateStringInvalid.js => exponentiationOperatorWithTemplateStringInvalid(target=es5).js} (100%) create mode 100644 tests/baselines/reference/exponentiationOperatorWithTemplateStringInvalid(target=es5).symbols create mode 100644 tests/baselines/reference/exponentiationOperatorWithTemplateStringInvalid(target=es5).types create mode 100644 tests/baselines/reference/exportAmbientClassNameWithObject(target=es2015).js rename tests/baselines/reference/{exportAmbientClassNameWithObject.symbols => exportAmbientClassNameWithObject(target=es2015).symbols} (100%) rename tests/baselines/reference/{exportAmbientClassNameWithObject.types => exportAmbientClassNameWithObject(target=es2015).types} (100%) rename tests/baselines/reference/{exportAmbientClassNameWithObject.js => exportAmbientClassNameWithObject(target=es5).js} (100%) create mode 100644 tests/baselines/reference/exportAmbientClassNameWithObject(target=es5).symbols create mode 100644 tests/baselines/reference/exportAmbientClassNameWithObject(target=es5).types create mode 100644 tests/baselines/reference/exportAndImport-es5(target=es2015).js rename tests/baselines/reference/{exportAndImport-es5.symbols => exportAndImport-es5(target=es2015).symbols} (100%) rename tests/baselines/reference/{exportAndImport-es5.types => exportAndImport-es5(target=es2015).types} (100%) rename tests/baselines/reference/{exportAndImport-es5.js => exportAndImport-es5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/exportAndImport-es5(target=es5).symbols create mode 100644 tests/baselines/reference/exportAndImport-es5(target=es5).types rename tests/baselines/reference/{exportAndImport-es5-amd.errors.txt => exportAndImport-es5-amd(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{exportAndImport-es5-amd.js => exportAndImport-es5-amd(target=es2015).js} (100%) rename tests/baselines/reference/{exportAndImport-es5-amd.symbols => exportAndImport-es5-amd(target=es2015).symbols} (100%) rename tests/baselines/reference/{exportAndImport-es5-amd.types => exportAndImport-es5-amd(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/exportAndImport-es5-amd(target=es5).errors.txt create mode 100644 tests/baselines/reference/exportAndImport-es5-amd(target=es5).js create mode 100644 tests/baselines/reference/exportAndImport-es5-amd(target=es5).symbols create mode 100644 tests/baselines/reference/exportAndImport-es5-amd(target=es5).types rename tests/baselines/reference/{exportClassNameWithObjectAMD.errors.txt => exportClassNameWithObjectAMD(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/exportClassNameWithObjectAMD(target=es2015).js rename tests/baselines/reference/{exportClassNameWithObjectAMD.symbols => exportClassNameWithObjectAMD(target=es2015).symbols} (100%) rename tests/baselines/reference/{exportClassNameWithObjectAMD.types => exportClassNameWithObjectAMD(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/exportClassNameWithObjectAMD(target=es5).errors.txt rename tests/baselines/reference/{exportClassNameWithObjectAMD.js => exportClassNameWithObjectAMD(target=es5).js} (100%) create mode 100644 tests/baselines/reference/exportClassNameWithObjectAMD(target=es5).symbols create mode 100644 tests/baselines/reference/exportClassNameWithObjectAMD(target=es5).types rename tests/baselines/reference/{exportClassNameWithObjectCommonJS.errors.txt => exportClassNameWithObjectCommonJS(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/exportClassNameWithObjectCommonJS(target=es2015).js rename tests/baselines/reference/{exportClassNameWithObjectCommonJS.symbols => exportClassNameWithObjectCommonJS(target=es2015).symbols} (100%) rename tests/baselines/reference/{exportClassNameWithObjectCommonJS.types => exportClassNameWithObjectCommonJS(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/exportClassNameWithObjectCommonJS(target=es5).errors.txt rename tests/baselines/reference/{exportClassNameWithObjectCommonJS.js => exportClassNameWithObjectCommonJS(target=es5).js} (100%) create mode 100644 tests/baselines/reference/exportClassNameWithObjectCommonJS(target=es5).symbols create mode 100644 tests/baselines/reference/exportClassNameWithObjectCommonJS(target=es5).types rename tests/baselines/reference/{exportClassNameWithObjectSystem.errors.txt => exportClassNameWithObjectSystem(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/exportClassNameWithObjectSystem(target=es2015).js rename tests/baselines/reference/{exportClassNameWithObjectSystem.symbols => exportClassNameWithObjectSystem(target=es2015).symbols} (100%) rename tests/baselines/reference/{exportClassNameWithObjectSystem.types => exportClassNameWithObjectSystem(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/exportClassNameWithObjectSystem(target=es5).errors.txt rename tests/baselines/reference/{exportClassNameWithObjectSystem.js => exportClassNameWithObjectSystem(target=es5).js} (100%) create mode 100644 tests/baselines/reference/exportClassNameWithObjectSystem(target=es5).symbols create mode 100644 tests/baselines/reference/exportClassNameWithObjectSystem(target=es5).types rename tests/baselines/reference/{exportClassNameWithObjectUMD.errors.txt => exportClassNameWithObjectUMD(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/exportClassNameWithObjectUMD(target=es2015).js rename tests/baselines/reference/{exportClassNameWithObjectUMD.symbols => exportClassNameWithObjectUMD(target=es2015).symbols} (100%) rename tests/baselines/reference/{exportClassNameWithObjectUMD.types => exportClassNameWithObjectUMD(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/exportClassNameWithObjectUMD(target=es5).errors.txt rename tests/baselines/reference/{exportClassNameWithObjectUMD.js => exportClassNameWithObjectUMD(target=es5).js} (100%) create mode 100644 tests/baselines/reference/exportClassNameWithObjectUMD(target=es5).symbols create mode 100644 tests/baselines/reference/exportClassNameWithObjectUMD(target=es5).types rename tests/baselines/reference/{exportDeclarationInInternalModule.errors.txt => exportDeclarationInInternalModule(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/exportDeclarationInInternalModule(target=es2015).js rename tests/baselines/reference/{exportDeclarationInInternalModule.symbols => exportDeclarationInInternalModule(target=es2015).symbols} (100%) rename tests/baselines/reference/{exportDeclarationInInternalModule.types => exportDeclarationInInternalModule(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/exportDeclarationInInternalModule(target=es5).errors.txt rename tests/baselines/reference/{exportDeclarationInInternalModule.js => exportDeclarationInInternalModule(target=es5).js} (100%) create mode 100644 tests/baselines/reference/exportDeclarationInInternalModule(target=es5).symbols create mode 100644 tests/baselines/reference/exportDeclarationInInternalModule(target=es5).types create mode 100644 tests/baselines/reference/exportDefaultClassNameWithObject(target=es2015).js rename tests/baselines/reference/{exportDefaultClassNameWithObject.symbols => exportDefaultClassNameWithObject(target=es2015).symbols} (100%) rename tests/baselines/reference/{exportDefaultClassNameWithObject.types => exportDefaultClassNameWithObject(target=es2015).types} (100%) rename tests/baselines/reference/{exportDefaultClassNameWithObject.errors.txt => exportDefaultClassNameWithObject(target=es5).errors.txt} (100%) rename tests/baselines/reference/{exportDefaultClassNameWithObject.js => exportDefaultClassNameWithObject(target=es5).js} (100%) create mode 100644 tests/baselines/reference/exportDefaultClassNameWithObject(target=es5).symbols create mode 100644 tests/baselines/reference/exportDefaultClassNameWithObject(target=es5).types rename tests/baselines/reference/{exportDefaultInJsFile01.errors.txt => exportDefaultInJsFile01(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{exportDefaultInJsFile01.symbols => exportDefaultInJsFile01(target=es2015).symbols} (100%) rename tests/baselines/reference/{exportDefaultInJsFile01.types => exportDefaultInJsFile01(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/exportDefaultInJsFile01(target=es5).errors.txt create mode 100644 tests/baselines/reference/exportDefaultInJsFile01(target=es5).symbols create mode 100644 tests/baselines/reference/exportDefaultInJsFile01(target=es5).types create mode 100644 tests/baselines/reference/exportDefaultParenthesize(target=es2015).js rename tests/baselines/reference/{exportDefaultParenthesize.symbols => exportDefaultParenthesize(target=es2015).symbols} (100%) rename tests/baselines/reference/{exportDefaultParenthesize.types => exportDefaultParenthesize(target=es2015).types} (100%) rename tests/baselines/reference/{exportDefaultParenthesize.js => exportDefaultParenthesize(target=es5).js} (100%) create mode 100644 tests/baselines/reference/exportDefaultParenthesize(target=es5).symbols create mode 100644 tests/baselines/reference/exportDefaultParenthesize(target=es5).types rename tests/baselines/reference/{exportImportCanSubstituteConstEnumForValue.errors.txt => exportImportCanSubstituteConstEnumForValue(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/exportImportCanSubstituteConstEnumForValue(target=es2015).js rename tests/baselines/reference/{exportImportCanSubstituteConstEnumForValue.symbols => exportImportCanSubstituteConstEnumForValue(target=es2015).symbols} (100%) rename tests/baselines/reference/{exportImportCanSubstituteConstEnumForValue.types => exportImportCanSubstituteConstEnumForValue(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/exportImportCanSubstituteConstEnumForValue(target=es5).errors.txt rename tests/baselines/reference/{exportImportCanSubstituteConstEnumForValue.js => exportImportCanSubstituteConstEnumForValue(target=es5).js} (100%) create mode 100644 tests/baselines/reference/exportImportCanSubstituteConstEnumForValue(target=es5).symbols create mode 100644 tests/baselines/reference/exportImportCanSubstituteConstEnumForValue(target=es5).types rename tests/baselines/reference/{exportStar.errors.txt => exportStar(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/exportStar(target=es2015).js rename tests/baselines/reference/{exportStar.symbols => exportStar(target=es2015).symbols} (100%) rename tests/baselines/reference/{exportStar.types => exportStar(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/exportStar(target=es5).errors.txt rename tests/baselines/reference/{exportStar.js => exportStar(target=es5).js} (100%) create mode 100644 tests/baselines/reference/exportStar(target=es5).symbols create mode 100644 tests/baselines/reference/exportStar(target=es5).types rename tests/baselines/reference/{exportStar-amd.errors.txt => exportStar-amd(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{exportStar-amd.js => exportStar-amd(target=es2015).js} (100%) rename tests/baselines/reference/{exportStar-amd.symbols => exportStar-amd(target=es2015).symbols} (100%) rename tests/baselines/reference/{exportStar-amd.types => exportStar-amd(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/exportStar-amd(target=es5).errors.txt create mode 100644 tests/baselines/reference/exportStar-amd(target=es5).js create mode 100644 tests/baselines/reference/exportStar-amd(target=es5).symbols create mode 100644 tests/baselines/reference/exportStar-amd(target=es5).types rename tests/baselines/reference/{exportStarFromEmptyModule.errors.txt => exportStarFromEmptyModule(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/exportStarFromEmptyModule(target=es2015).js rename tests/baselines/reference/{exportStarFromEmptyModule.symbols => exportStarFromEmptyModule(target=es2015).symbols} (100%) rename tests/baselines/reference/{exportStarFromEmptyModule.types => exportStarFromEmptyModule(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/exportStarFromEmptyModule(target=es5).errors.txt rename tests/baselines/reference/{exportStarFromEmptyModule.js => exportStarFromEmptyModule(target=es5).js} (100%) create mode 100644 tests/baselines/reference/exportStarFromEmptyModule(target=es5).symbols create mode 100644 tests/baselines/reference/exportStarFromEmptyModule(target=es5).types rename tests/baselines/reference/{exportsAndImports1-amd.errors.txt => exportsAndImports1-amd(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/exportsAndImports1-amd(target=es2015).js rename tests/baselines/reference/{exportsAndImports1-amd.symbols => exportsAndImports1-amd(target=es2015).symbols} (100%) rename tests/baselines/reference/{exportsAndImports1-amd.types => exportsAndImports1-amd(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/exportsAndImports1-amd(target=es5).errors.txt rename tests/baselines/reference/{exportsAndImports1-amd.js => exportsAndImports1-amd(target=es5).js} (100%) create mode 100644 tests/baselines/reference/exportsAndImports1-amd(target=es5).symbols create mode 100644 tests/baselines/reference/exportsAndImports1-amd(target=es5).types rename tests/baselines/reference/{exportsAndImports2-amd.errors.txt => exportsAndImports2-amd(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{exportsAndImports2-amd.js => exportsAndImports2-amd(target=es2015).js} (100%) rename tests/baselines/reference/{exportsAndImports2-amd.symbols => exportsAndImports2-amd(target=es2015).symbols} (100%) rename tests/baselines/reference/{exportsAndImports2-amd.types => exportsAndImports2-amd(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/exportsAndImports2-amd(target=es5).errors.txt create mode 100644 tests/baselines/reference/exportsAndImports2-amd(target=es5).js create mode 100644 tests/baselines/reference/exportsAndImports2-amd(target=es5).symbols create mode 100644 tests/baselines/reference/exportsAndImports2-amd(target=es5).types rename tests/baselines/reference/{exportsAndImports3-amd.errors.txt => exportsAndImports3-amd(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/exportsAndImports3-amd(target=es2015).js rename tests/baselines/reference/{exportsAndImports3-amd.symbols => exportsAndImports3-amd(target=es2015).symbols} (100%) rename tests/baselines/reference/{exportsAndImports3-amd.types => exportsAndImports3-amd(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/exportsAndImports3-amd(target=es5).errors.txt rename tests/baselines/reference/{exportsAndImports3-amd.js => exportsAndImports3-amd(target=es5).js} (100%) create mode 100644 tests/baselines/reference/exportsAndImports3-amd(target=es5).symbols create mode 100644 tests/baselines/reference/exportsAndImports3-amd(target=es5).types create mode 100644 tests/baselines/reference/exportsAndImports4(target=es2015).js rename tests/baselines/reference/{exportsAndImports4.symbols => exportsAndImports4(target=es2015).symbols} (100%) rename tests/baselines/reference/{exportsAndImports4.types => exportsAndImports4(target=es2015).types} (100%) rename tests/baselines/reference/{exportsAndImports4.js => exportsAndImports4(target=es5).js} (100%) create mode 100644 tests/baselines/reference/exportsAndImports4(target=es5).symbols create mode 100644 tests/baselines/reference/exportsAndImports4(target=es5).types rename tests/baselines/reference/{exportsAndImports4-amd.errors.txt => exportsAndImports4-amd(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/exportsAndImports4-amd(target=es2015).js rename tests/baselines/reference/{exportsAndImports4-amd.symbols => exportsAndImports4-amd(target=es2015).symbols} (100%) rename tests/baselines/reference/{exportsAndImports4-amd.types => exportsAndImports4-amd(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/exportsAndImports4-amd(target=es5).errors.txt rename tests/baselines/reference/{exportsAndImports4-amd.js => exportsAndImports4-amd(target=es5).js} (100%) create mode 100644 tests/baselines/reference/exportsAndImports4-amd(target=es5).symbols create mode 100644 tests/baselines/reference/exportsAndImports4-amd(target=es5).types rename tests/baselines/reference/{exportsAndImportsWithContextualKeywordNames01.errors.txt => exportsAndImportsWithContextualKeywordNames01(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/exportsAndImportsWithContextualKeywordNames01(target=es2015).js rename tests/baselines/reference/{exportsAndImportsWithContextualKeywordNames01.symbols => exportsAndImportsWithContextualKeywordNames01(target=es2015).symbols} (100%) rename tests/baselines/reference/{exportsAndImportsWithContextualKeywordNames01.types => exportsAndImportsWithContextualKeywordNames01(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/exportsAndImportsWithContextualKeywordNames01(target=es5).errors.txt rename tests/baselines/reference/{exportsAndImportsWithContextualKeywordNames01.js => exportsAndImportsWithContextualKeywordNames01(target=es5).js} (100%) create mode 100644 tests/baselines/reference/exportsAndImportsWithContextualKeywordNames01(target=es5).symbols create mode 100644 tests/baselines/reference/exportsAndImportsWithContextualKeywordNames01(target=es5).types create mode 100644 tests/baselines/reference/exportsAndImportsWithContextualKeywordNames02(target=es2015).js rename tests/baselines/reference/{exportsAndImportsWithContextualKeywordNames02.symbols => exportsAndImportsWithContextualKeywordNames02(target=es2015).symbols} (100%) rename tests/baselines/reference/{exportsAndImportsWithContextualKeywordNames02.types => exportsAndImportsWithContextualKeywordNames02(target=es2015).types} (100%) rename tests/baselines/reference/{exportsAndImportsWithContextualKeywordNames02.js => exportsAndImportsWithContextualKeywordNames02(target=es5).js} (100%) create mode 100644 tests/baselines/reference/exportsAndImportsWithContextualKeywordNames02(target=es5).symbols create mode 100644 tests/baselines/reference/exportsAndImportsWithContextualKeywordNames02(target=es5).types rename tests/baselines/reference/{exportsAndImportsWithUnderscores1.errors.txt => exportsAndImportsWithUnderscores1(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/exportsAndImportsWithUnderscores1(target=es2015).js rename tests/baselines/reference/{exportsAndImportsWithUnderscores1.symbols => exportsAndImportsWithUnderscores1(target=es2015).symbols} (100%) rename tests/baselines/reference/{exportsAndImportsWithUnderscores1.types => exportsAndImportsWithUnderscores1(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/exportsAndImportsWithUnderscores1(target=es5).errors.txt rename tests/baselines/reference/{exportsAndImportsWithUnderscores1.js => exportsAndImportsWithUnderscores1(target=es5).js} (100%) create mode 100644 tests/baselines/reference/exportsAndImportsWithUnderscores1(target=es5).symbols create mode 100644 tests/baselines/reference/exportsAndImportsWithUnderscores1(target=es5).types create mode 100644 tests/baselines/reference/exportsAndImportsWithUnderscores2(target=es2015).js rename tests/baselines/reference/{exportsAndImportsWithUnderscores2.symbols => exportsAndImportsWithUnderscores2(target=es2015).symbols} (100%) rename tests/baselines/reference/{exportsAndImportsWithUnderscores2.types => exportsAndImportsWithUnderscores2(target=es2015).types} (100%) rename tests/baselines/reference/{exportsAndImportsWithUnderscores2.js => exportsAndImportsWithUnderscores2(target=es5).js} (100%) create mode 100644 tests/baselines/reference/exportsAndImportsWithUnderscores2(target=es5).symbols create mode 100644 tests/baselines/reference/exportsAndImportsWithUnderscores2(target=es5).types create mode 100644 tests/baselines/reference/exportsAndImportsWithUnderscores3(target=es2015).js rename tests/baselines/reference/{exportsAndImportsWithUnderscores3.symbols => exportsAndImportsWithUnderscores3(target=es2015).symbols} (100%) rename tests/baselines/reference/{exportsAndImportsWithUnderscores3.types => exportsAndImportsWithUnderscores3(target=es2015).types} (100%) rename tests/baselines/reference/{exportsAndImportsWithUnderscores3.js => exportsAndImportsWithUnderscores3(target=es5).js} (100%) create mode 100644 tests/baselines/reference/exportsAndImportsWithUnderscores3(target=es5).symbols create mode 100644 tests/baselines/reference/exportsAndImportsWithUnderscores3(target=es5).types create mode 100644 tests/baselines/reference/exportsAndImportsWithUnderscores4(target=es2015).js rename tests/baselines/reference/{exportsAndImportsWithUnderscores4.symbols => exportsAndImportsWithUnderscores4(target=es2015).symbols} (100%) rename tests/baselines/reference/{exportsAndImportsWithUnderscores4.types => exportsAndImportsWithUnderscores4(target=es2015).types} (100%) rename tests/baselines/reference/{exportsAndImportsWithUnderscores4.js => exportsAndImportsWithUnderscores4(target=es5).js} (100%) create mode 100644 tests/baselines/reference/exportsAndImportsWithUnderscores4(target=es5).symbols create mode 100644 tests/baselines/reference/exportsAndImportsWithUnderscores4(target=es5).types create mode 100644 tests/baselines/reference/forAwaitPerIterationBindingDownlevel(target=es2015).js rename tests/baselines/reference/{forAwaitPerIterationBindingDownlevel.js => forAwaitPerIterationBindingDownlevel(target=es5).js} (100%) rename tests/baselines/reference/{forwardDeclaredCommonTypes01.errors.txt => forwardDeclaredCommonTypes01(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{forwardDeclaredCommonTypes01.js => forwardDeclaredCommonTypes01(target=es2015).js} (100%) rename tests/baselines/reference/{forwardDeclaredCommonTypes01.symbols => forwardDeclaredCommonTypes01(target=es2015).symbols} (100%) rename tests/baselines/reference/{forwardDeclaredCommonTypes01.types => forwardDeclaredCommonTypes01(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/forwardDeclaredCommonTypes01(target=es5).errors.txt create mode 100644 tests/baselines/reference/forwardDeclaredCommonTypes01(target=es5).js create mode 100644 tests/baselines/reference/forwardDeclaredCommonTypes01(target=es5).symbols create mode 100644 tests/baselines/reference/forwardDeclaredCommonTypes01(target=es5).types rename tests/baselines/reference/{functionsMissingReturnStatementsAndExpressions.errors.txt => functionsMissingReturnStatementsAndExpressions(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/functionsMissingReturnStatementsAndExpressions(target=es2015).js rename tests/baselines/reference/{functionsMissingReturnStatementsAndExpressions.symbols => functionsMissingReturnStatementsAndExpressions(target=es2015).symbols} (100%) rename tests/baselines/reference/{functionsMissingReturnStatementsAndExpressions.types => functionsMissingReturnStatementsAndExpressions(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/functionsMissingReturnStatementsAndExpressions(target=es5).errors.txt rename tests/baselines/reference/{functionsMissingReturnStatementsAndExpressions.js => functionsMissingReturnStatementsAndExpressions(target=es5).js} (100%) create mode 100644 tests/baselines/reference/functionsMissingReturnStatementsAndExpressions(target=es5).symbols create mode 100644 tests/baselines/reference/functionsMissingReturnStatementsAndExpressions(target=es5).types create mode 100644 tests/baselines/reference/generatorTransformFinalLabel(target=es2015).js rename tests/baselines/reference/{generatorTransformFinalLabel.symbols => generatorTransformFinalLabel(target=es2015).symbols} (100%) rename tests/baselines/reference/{generatorTransformFinalLabel.types => generatorTransformFinalLabel(target=es2015).types} (100%) rename tests/baselines/reference/{generatorTransformFinalLabel.js => generatorTransformFinalLabel(target=es5).js} (100%) create mode 100644 tests/baselines/reference/generatorTransformFinalLabel(target=es5).symbols create mode 100644 tests/baselines/reference/generatorTransformFinalLabel(target=es5).types rename tests/baselines/reference/{getSetAccessorContextualTyping.errors.txt => getSetAccessorContextualTyping(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/getSetAccessorContextualTyping(target=es2015).js rename tests/baselines/reference/{getSetAccessorContextualTyping.symbols => getSetAccessorContextualTyping(target=es2015).symbols} (100%) rename tests/baselines/reference/{getSetAccessorContextualTyping.types => getSetAccessorContextualTyping(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/getSetAccessorContextualTyping(target=es5).errors.txt rename tests/baselines/reference/{getSetAccessorContextualTyping.js => getSetAccessorContextualTyping(target=es5).js} (100%) create mode 100644 tests/baselines/reference/getSetAccessorContextualTyping(target=es5).symbols create mode 100644 tests/baselines/reference/getSetAccessorContextualTyping(target=es5).types create mode 100644 tests/baselines/reference/getSetEnumerable(target=es2015).js rename tests/baselines/reference/{getSetEnumerable.symbols => getSetEnumerable(target=es2015).symbols} (100%) rename tests/baselines/reference/{getSetEnumerable.types => getSetEnumerable(target=es2015).types} (100%) rename tests/baselines/reference/{getSetEnumerable.js => getSetEnumerable(target=es5).js} (100%) create mode 100644 tests/baselines/reference/getSetEnumerable(target=es5).symbols create mode 100644 tests/baselines/reference/getSetEnumerable(target=es5).types rename tests/baselines/reference/{getterControlFlowStrictNull.errors.txt => getterControlFlowStrictNull(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/getterControlFlowStrictNull(target=es2015).js rename tests/baselines/reference/{getterControlFlowStrictNull.symbols => getterControlFlowStrictNull(target=es2015).symbols} (100%) rename tests/baselines/reference/{getterControlFlowStrictNull.types => getterControlFlowStrictNull(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/getterControlFlowStrictNull(target=es5).errors.txt rename tests/baselines/reference/{getterControlFlowStrictNull.js => getterControlFlowStrictNull(target=es5).js} (100%) create mode 100644 tests/baselines/reference/getterControlFlowStrictNull(target=es5).symbols create mode 100644 tests/baselines/reference/getterControlFlowStrictNull(target=es5).types rename tests/baselines/reference/{implicitAnyFromCircularInference.errors.txt => implicitAnyFromCircularInference(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/implicitAnyFromCircularInference(target=es2015).js rename tests/baselines/reference/{implicitAnyFromCircularInference.symbols => implicitAnyFromCircularInference(target=es2015).symbols} (100%) rename tests/baselines/reference/{implicitAnyFromCircularInference.types => implicitAnyFromCircularInference(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/implicitAnyFromCircularInference(target=es5).errors.txt rename tests/baselines/reference/{implicitAnyFromCircularInference.js => implicitAnyFromCircularInference(target=es5).js} (100%) create mode 100644 tests/baselines/reference/implicitAnyFromCircularInference(target=es5).symbols create mode 100644 tests/baselines/reference/implicitAnyFromCircularInference(target=es5).types rename tests/baselines/reference/{importCallExpressionAsyncES5AMD.errors.txt => importCallExpressionAsyncES5AMD(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/importCallExpressionAsyncES5AMD(target=es2015).js rename tests/baselines/reference/{importCallExpressionAsyncES5AMD.symbols => importCallExpressionAsyncES5AMD(target=es2015).symbols} (100%) rename tests/baselines/reference/{importCallExpressionAsyncES5AMD.types => importCallExpressionAsyncES5AMD(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/importCallExpressionAsyncES5AMD(target=es5).errors.txt rename tests/baselines/reference/{importCallExpressionAsyncES5AMD.js => importCallExpressionAsyncES5AMD(target=es5).js} (100%) create mode 100644 tests/baselines/reference/importCallExpressionAsyncES5AMD(target=es5).symbols create mode 100644 tests/baselines/reference/importCallExpressionAsyncES5AMD(target=es5).types create mode 100644 tests/baselines/reference/importCallExpressionAsyncES5CJS(target=es2015).js rename tests/baselines/reference/{importCallExpressionAsyncES5CJS.symbols => importCallExpressionAsyncES5CJS(target=es2015).symbols} (100%) rename tests/baselines/reference/{importCallExpressionAsyncES5CJS.types => importCallExpressionAsyncES5CJS(target=es2015).types} (100%) rename tests/baselines/reference/{importCallExpressionAsyncES5CJS.js => importCallExpressionAsyncES5CJS(target=es5).js} (100%) create mode 100644 tests/baselines/reference/importCallExpressionAsyncES5CJS(target=es5).symbols create mode 100644 tests/baselines/reference/importCallExpressionAsyncES5CJS(target=es5).types rename tests/baselines/reference/{importCallExpressionAsyncES5System.errors.txt => importCallExpressionAsyncES5System(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/importCallExpressionAsyncES5System(target=es2015).js rename tests/baselines/reference/{importCallExpressionAsyncES5System.symbols => importCallExpressionAsyncES5System(target=es2015).symbols} (100%) rename tests/baselines/reference/{importCallExpressionAsyncES5System.types => importCallExpressionAsyncES5System(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/importCallExpressionAsyncES5System(target=es5).errors.txt rename tests/baselines/reference/{importCallExpressionAsyncES5System.js => importCallExpressionAsyncES5System(target=es5).js} (100%) create mode 100644 tests/baselines/reference/importCallExpressionAsyncES5System(target=es5).symbols create mode 100644 tests/baselines/reference/importCallExpressionAsyncES5System(target=es5).types rename tests/baselines/reference/{importCallExpressionAsyncES5UMD.errors.txt => importCallExpressionAsyncES5UMD(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/importCallExpressionAsyncES5UMD(target=es2015).js rename tests/baselines/reference/{importCallExpressionAsyncES5UMD.symbols => importCallExpressionAsyncES5UMD(target=es2015).symbols} (100%) rename tests/baselines/reference/{importCallExpressionAsyncES5UMD.types => importCallExpressionAsyncES5UMD(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/importCallExpressionAsyncES5UMD(target=es5).errors.txt rename tests/baselines/reference/{importCallExpressionAsyncES5UMD.js => importCallExpressionAsyncES5UMD(target=es5).js} (100%) create mode 100644 tests/baselines/reference/importCallExpressionAsyncES5UMD(target=es5).symbols create mode 100644 tests/baselines/reference/importCallExpressionAsyncES5UMD(target=es5).types rename tests/baselines/reference/{importCallExpressionES5AMD.errors.txt => importCallExpressionES5AMD(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/importCallExpressionES5AMD(target=es2015).js rename tests/baselines/reference/{importCallExpressionES5AMD.symbols => importCallExpressionES5AMD(target=es2015).symbols} (100%) rename tests/baselines/reference/{importCallExpressionES5AMD.types => importCallExpressionES5AMD(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/importCallExpressionES5AMD(target=es5).errors.txt rename tests/baselines/reference/{importCallExpressionES5AMD.js => importCallExpressionES5AMD(target=es5).js} (100%) create mode 100644 tests/baselines/reference/importCallExpressionES5AMD(target=es5).symbols create mode 100644 tests/baselines/reference/importCallExpressionES5AMD(target=es5).types create mode 100644 tests/baselines/reference/importCallExpressionES5CJS(target=es2015).js rename tests/baselines/reference/{importCallExpressionES5CJS.symbols => importCallExpressionES5CJS(target=es2015).symbols} (100%) rename tests/baselines/reference/{importCallExpressionES5CJS.types => importCallExpressionES5CJS(target=es2015).types} (100%) rename tests/baselines/reference/{importCallExpressionES5CJS.js => importCallExpressionES5CJS(target=es5).js} (100%) create mode 100644 tests/baselines/reference/importCallExpressionES5CJS(target=es5).symbols create mode 100644 tests/baselines/reference/importCallExpressionES5CJS(target=es5).types rename tests/baselines/reference/{importCallExpressionES5System.errors.txt => importCallExpressionES5System(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/importCallExpressionES5System(target=es2015).js rename tests/baselines/reference/{importCallExpressionES5System.symbols => importCallExpressionES5System(target=es2015).symbols} (100%) rename tests/baselines/reference/{importCallExpressionES5System.types => importCallExpressionES5System(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/importCallExpressionES5System(target=es5).errors.txt rename tests/baselines/reference/{importCallExpressionES5System.js => importCallExpressionES5System(target=es5).js} (100%) create mode 100644 tests/baselines/reference/importCallExpressionES5System(target=es5).symbols create mode 100644 tests/baselines/reference/importCallExpressionES5System(target=es5).types rename tests/baselines/reference/{importCallExpressionES5UMD.errors.txt => importCallExpressionES5UMD(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/importCallExpressionES5UMD(target=es2015).js rename tests/baselines/reference/{importCallExpressionES5UMD.symbols => importCallExpressionES5UMD(target=es2015).symbols} (100%) rename tests/baselines/reference/{importCallExpressionES5UMD.types => importCallExpressionES5UMD(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/importCallExpressionES5UMD(target=es5).errors.txt rename tests/baselines/reference/{importCallExpressionES5UMD.js => importCallExpressionES5UMD(target=es5).js} (100%) create mode 100644 tests/baselines/reference/importCallExpressionES5UMD(target=es5).symbols create mode 100644 tests/baselines/reference/importCallExpressionES5UMD(target=es5).types rename tests/baselines/reference/{importCallExpressionNestedAMD2.errors.txt => importCallExpressionNestedAMD2(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/importCallExpressionNestedAMD2(target=es2015).js rename tests/baselines/reference/{importCallExpressionNestedAMD2.symbols => importCallExpressionNestedAMD2(target=es2015).symbols} (100%) rename tests/baselines/reference/{importCallExpressionNestedAMD2.types => importCallExpressionNestedAMD2(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/importCallExpressionNestedAMD2(target=es5).errors.txt rename tests/baselines/reference/{importCallExpressionNestedAMD2.js => importCallExpressionNestedAMD2(target=es5).js} (100%) create mode 100644 tests/baselines/reference/importCallExpressionNestedAMD2(target=es5).symbols create mode 100644 tests/baselines/reference/importCallExpressionNestedAMD2(target=es5).types create mode 100644 tests/baselines/reference/importCallExpressionNestedCJS2(target=es2015).js rename tests/baselines/reference/{importCallExpressionNestedCJS2.symbols => importCallExpressionNestedCJS2(target=es2015).symbols} (100%) rename tests/baselines/reference/{importCallExpressionNestedCJS2.types => importCallExpressionNestedCJS2(target=es2015).types} (100%) rename tests/baselines/reference/{importCallExpressionNestedCJS2.js => importCallExpressionNestedCJS2(target=es5).js} (100%) create mode 100644 tests/baselines/reference/importCallExpressionNestedCJS2(target=es5).symbols create mode 100644 tests/baselines/reference/importCallExpressionNestedCJS2(target=es5).types rename tests/baselines/reference/{importCallExpressionNestedES20152.errors.txt => importCallExpressionNestedES20152(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/importCallExpressionNestedES20152(target=es2015).js rename tests/baselines/reference/{importCallExpressionNestedES20152.symbols => importCallExpressionNestedES20152(target=es2015).symbols} (100%) rename tests/baselines/reference/{importCallExpressionNestedES20152.types => importCallExpressionNestedES20152(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/importCallExpressionNestedES20152(target=es5).errors.txt rename tests/baselines/reference/{importCallExpressionNestedES20152.js => importCallExpressionNestedES20152(target=es5).js} (100%) create mode 100644 tests/baselines/reference/importCallExpressionNestedES20152(target=es5).symbols create mode 100644 tests/baselines/reference/importCallExpressionNestedES20152(target=es5).types create mode 100644 tests/baselines/reference/importCallExpressionNestedES20202(target=es2015).js rename tests/baselines/reference/{importCallExpressionNestedES20202.symbols => importCallExpressionNestedES20202(target=es2015).symbols} (100%) rename tests/baselines/reference/{importCallExpressionNestedES20202.types => importCallExpressionNestedES20202(target=es2015).types} (100%) rename tests/baselines/reference/{importCallExpressionNestedES20202.js => importCallExpressionNestedES20202(target=es5).js} (100%) create mode 100644 tests/baselines/reference/importCallExpressionNestedES20202(target=es5).symbols create mode 100644 tests/baselines/reference/importCallExpressionNestedES20202(target=es5).types rename tests/baselines/reference/{importCallExpressionNestedSystem2.errors.txt => importCallExpressionNestedSystem2(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/importCallExpressionNestedSystem2(target=es2015).js rename tests/baselines/reference/{importCallExpressionNestedSystem2.symbols => importCallExpressionNestedSystem2(target=es2015).symbols} (100%) rename tests/baselines/reference/{importCallExpressionNestedSystem2.types => importCallExpressionNestedSystem2(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/importCallExpressionNestedSystem2(target=es5).errors.txt rename tests/baselines/reference/{importCallExpressionNestedSystem2.js => importCallExpressionNestedSystem2(target=es5).js} (100%) create mode 100644 tests/baselines/reference/importCallExpressionNestedSystem2(target=es5).symbols create mode 100644 tests/baselines/reference/importCallExpressionNestedSystem2(target=es5).types rename tests/baselines/reference/{importCallExpressionNestedUMD2.errors.txt => importCallExpressionNestedUMD2(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/importCallExpressionNestedUMD2(target=es2015).js rename tests/baselines/reference/{importCallExpressionNestedUMD2.symbols => importCallExpressionNestedUMD2(target=es2015).symbols} (100%) rename tests/baselines/reference/{importCallExpressionNestedUMD2.types => importCallExpressionNestedUMD2(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/importCallExpressionNestedUMD2(target=es5).errors.txt rename tests/baselines/reference/{importCallExpressionNestedUMD2.js => importCallExpressionNestedUMD2(target=es5).js} (100%) create mode 100644 tests/baselines/reference/importCallExpressionNestedUMD2(target=es5).symbols create mode 100644 tests/baselines/reference/importCallExpressionNestedUMD2(target=es5).types create mode 100644 tests/baselines/reference/importHelpers(target=es2015).js rename tests/baselines/reference/{importHelpers.symbols => importHelpers(target=es2015).symbols} (100%) rename tests/baselines/reference/{importHelpers.types => importHelpers(target=es2015).types} (100%) rename tests/baselines/reference/{importHelpers.js => importHelpers(target=es5).js} (100%) create mode 100644 tests/baselines/reference/importHelpers(target=es5).symbols create mode 100644 tests/baselines/reference/importHelpers(target=es5).types rename tests/baselines/reference/{importHelpersAmd.errors.txt => importHelpersAmd(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/importHelpersAmd(target=es2015).js rename tests/baselines/reference/{importHelpersAmd.symbols => importHelpersAmd(target=es2015).symbols} (100%) rename tests/baselines/reference/{importHelpersAmd.types => importHelpersAmd(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/importHelpersAmd(target=es5).errors.txt rename tests/baselines/reference/{importHelpersAmd.js => importHelpersAmd(target=es5).js} (100%) create mode 100644 tests/baselines/reference/importHelpersAmd(target=es5).symbols create mode 100644 tests/baselines/reference/importHelpersAmd(target=es5).types rename tests/baselines/reference/{importHelpersDeclarations.symbols => importHelpersDeclarations(target=es2015).symbols} (100%) rename tests/baselines/reference/{importHelpersDeclarations.types => importHelpersDeclarations(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/importHelpersDeclarations(target=es5).symbols create mode 100644 tests/baselines/reference/importHelpersDeclarations(target=es5).types create mode 100644 tests/baselines/reference/importHelpersInAmbientContext(target=es2015).js rename tests/baselines/reference/{importHelpersInAmbientContext.symbols => importHelpersInAmbientContext(target=es2015).symbols} (100%) rename tests/baselines/reference/{importHelpersInAmbientContext.types => importHelpersInAmbientContext(target=es2015).types} (100%) rename tests/baselines/reference/{importHelpersInAmbientContext.js => importHelpersInAmbientContext(target=es5).js} (100%) create mode 100644 tests/baselines/reference/importHelpersInAmbientContext(target=es5).symbols create mode 100644 tests/baselines/reference/importHelpersInAmbientContext(target=es5).types create mode 100644 tests/baselines/reference/importHelpersInIsolatedModules(target=es2015).js rename tests/baselines/reference/{importHelpersInIsolatedModules.symbols => importHelpersInIsolatedModules(target=es2015).symbols} (100%) rename tests/baselines/reference/{importHelpersInIsolatedModules.types => importHelpersInIsolatedModules(target=es2015).types} (100%) rename tests/baselines/reference/{importHelpersInIsolatedModules.js => importHelpersInIsolatedModules(target=es5).js} (100%) create mode 100644 tests/baselines/reference/importHelpersInIsolatedModules(target=es5).symbols create mode 100644 tests/baselines/reference/importHelpersInIsolatedModules(target=es5).types create mode 100644 tests/baselines/reference/importHelpersInTsx(target=es2015).js rename tests/baselines/reference/{importHelpersInTsx.symbols => importHelpersInTsx(target=es2015).symbols} (100%) rename tests/baselines/reference/{importHelpersInTsx.types => importHelpersInTsx(target=es2015).types} (100%) rename tests/baselines/reference/{importHelpersInTsx.js => importHelpersInTsx(target=es5).js} (100%) create mode 100644 tests/baselines/reference/importHelpersInTsx(target=es5).symbols create mode 100644 tests/baselines/reference/importHelpersInTsx(target=es5).types create mode 100644 tests/baselines/reference/importHelpersNoEmitHelpersExportDefault(target=es2015).js rename tests/baselines/reference/{importHelpersNoEmitHelpersExportDefault.js => importHelpersNoEmitHelpersExportDefault(target=es5).js} (100%) create mode 100644 tests/baselines/reference/importHelpersNoHelpers(target=es2015).errors.txt create mode 100644 tests/baselines/reference/importHelpersNoHelpers(target=es2015).js rename tests/baselines/reference/{importHelpersNoHelpers.symbols => importHelpersNoHelpers(target=es2015).symbols} (100%) rename tests/baselines/reference/{importHelpersNoHelpers.types => importHelpersNoHelpers(target=es2015).types} (100%) rename tests/baselines/reference/{importHelpersNoHelpers.errors.txt => importHelpersNoHelpers(target=es5).errors.txt} (100%) rename tests/baselines/reference/{importHelpersNoHelpers.js => importHelpersNoHelpers(target=es5).js} (100%) create mode 100644 tests/baselines/reference/importHelpersNoHelpers(target=es5).symbols create mode 100644 tests/baselines/reference/importHelpersNoHelpers(target=es5).types create mode 100644 tests/baselines/reference/importHelpersNoHelpersForAsyncGenerators(target=es2015).errors.txt create mode 100644 tests/baselines/reference/importHelpersNoHelpersForAsyncGenerators(target=es2015).js rename tests/baselines/reference/{importHelpersNoHelpersForAsyncGenerators.symbols => importHelpersNoHelpersForAsyncGenerators(target=es2015).symbols} (100%) rename tests/baselines/reference/{importHelpersNoHelpersForAsyncGenerators.types => importHelpersNoHelpersForAsyncGenerators(target=es2015).types} (100%) rename tests/baselines/reference/{importHelpersNoHelpersForAsyncGenerators.errors.txt => importHelpersNoHelpersForAsyncGenerators(target=es5).errors.txt} (100%) rename tests/baselines/reference/{importHelpersNoHelpersForAsyncGenerators.js => importHelpersNoHelpersForAsyncGenerators(target=es5).js} (100%) create mode 100644 tests/baselines/reference/importHelpersNoHelpersForAsyncGenerators(target=es5).symbols create mode 100644 tests/baselines/reference/importHelpersNoHelpersForAsyncGenerators(target=es5).types create mode 100644 tests/baselines/reference/importHelpersNoModule(target=es2015).errors.txt create mode 100644 tests/baselines/reference/importHelpersNoModule(target=es2015).js rename tests/baselines/reference/{importHelpersNoModule.symbols => importHelpersNoModule(target=es2015).symbols} (100%) rename tests/baselines/reference/{importHelpersNoModule.types => importHelpersNoModule(target=es2015).types} (100%) rename tests/baselines/reference/{importHelpersNoModule.errors.txt => importHelpersNoModule(target=es5).errors.txt} (100%) rename tests/baselines/reference/{importHelpersNoModule.js => importHelpersNoModule(target=es5).js} (100%) create mode 100644 tests/baselines/reference/importHelpersNoModule(target=es5).symbols create mode 100644 tests/baselines/reference/importHelpersNoModule(target=es5).types rename tests/baselines/reference/{importHelpersOutFile.errors.txt => importHelpersOutFile(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/importHelpersOutFile(target=es2015).js rename tests/baselines/reference/{importHelpersOutFile.symbols => importHelpersOutFile(target=es2015).symbols} (100%) rename tests/baselines/reference/{importHelpersOutFile.types => importHelpersOutFile(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/importHelpersOutFile(target=es5).errors.txt rename tests/baselines/reference/{importHelpersOutFile.js => importHelpersOutFile(target=es5).js} (100%) create mode 100644 tests/baselines/reference/importHelpersOutFile(target=es5).symbols create mode 100644 tests/baselines/reference/importHelpersOutFile(target=es5).types rename tests/baselines/reference/{importHelpersSystem.errors.txt => importHelpersSystem(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/importHelpersSystem(target=es2015).js rename tests/baselines/reference/{importHelpersSystem.symbols => importHelpersSystem(target=es2015).symbols} (100%) rename tests/baselines/reference/{importHelpersSystem.types => importHelpersSystem(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/importHelpersSystem(target=es5).errors.txt rename tests/baselines/reference/{importHelpersSystem.js => importHelpersSystem(target=es5).js} (100%) create mode 100644 tests/baselines/reference/importHelpersSystem(target=es5).symbols create mode 100644 tests/baselines/reference/importHelpersSystem(target=es5).types rename tests/baselines/reference/{inheritanceMemberAccessorOverridingMethod.errors.txt => inheritanceMemberAccessorOverridingMethod(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/inheritanceMemberAccessorOverridingMethod(target=es2015).js rename tests/baselines/reference/{inheritanceMemberAccessorOverridingMethod.symbols => inheritanceMemberAccessorOverridingMethod(target=es2015).symbols} (100%) rename tests/baselines/reference/{inheritanceMemberAccessorOverridingMethod.types => inheritanceMemberAccessorOverridingMethod(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/inheritanceMemberAccessorOverridingMethod(target=es5).errors.txt rename tests/baselines/reference/{inheritanceMemberAccessorOverridingMethod.js => inheritanceMemberAccessorOverridingMethod(target=es5).js} (100%) create mode 100644 tests/baselines/reference/inheritanceMemberAccessorOverridingMethod(target=es5).symbols create mode 100644 tests/baselines/reference/inheritanceMemberAccessorOverridingMethod(target=es5).types create mode 100644 tests/baselines/reference/initializePropertiesWithRenamedLet(target=es2015).js rename tests/baselines/reference/{initializePropertiesWithRenamedLet.symbols => initializePropertiesWithRenamedLet(target=es2015).symbols} (100%) rename tests/baselines/reference/{initializePropertiesWithRenamedLet.types => initializePropertiesWithRenamedLet(target=es2015).types} (100%) rename tests/baselines/reference/{initializePropertiesWithRenamedLet.js => initializePropertiesWithRenamedLet(target=es5).js} (100%) create mode 100644 tests/baselines/reference/initializePropertiesWithRenamedLet(target=es5).symbols create mode 100644 tests/baselines/reference/initializePropertiesWithRenamedLet(target=es5).types rename tests/baselines/reference/{inlineSourceMap.js => inlineSourceMap(target=es2015).js} (100%) rename tests/baselines/reference/{inlineSourceMap.sourcemap.txt => inlineSourceMap(target=es2015).sourcemap.txt} (100%) rename tests/baselines/reference/{inlineSourceMap.symbols => inlineSourceMap(target=es2015).symbols} (100%) rename tests/baselines/reference/{inlineSourceMap.types => inlineSourceMap(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/inlineSourceMap(target=es5).js create mode 100644 tests/baselines/reference/inlineSourceMap(target=es5).sourcemap.txt create mode 100644 tests/baselines/reference/inlineSourceMap(target=es5).symbols create mode 100644 tests/baselines/reference/inlineSourceMap(target=es5).types rename tests/baselines/reference/{inlineSourceMap2.errors.txt => inlineSourceMap2(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{inlineSourceMap2.js => inlineSourceMap2(target=es2015).js} (100%) rename tests/baselines/reference/{inlineSourceMap2.sourcemap.txt => inlineSourceMap2(target=es2015).sourcemap.txt} (100%) rename tests/baselines/reference/{inlineSourceMap2.symbols => inlineSourceMap2(target=es2015).symbols} (100%) rename tests/baselines/reference/{inlineSourceMap2.types => inlineSourceMap2(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/inlineSourceMap2(target=es5).errors.txt create mode 100644 tests/baselines/reference/inlineSourceMap2(target=es5).js create mode 100644 tests/baselines/reference/inlineSourceMap2(target=es5).sourcemap.txt create mode 100644 tests/baselines/reference/inlineSourceMap2(target=es5).symbols create mode 100644 tests/baselines/reference/inlineSourceMap2(target=es5).types rename tests/baselines/reference/{inlineSources.errors.txt => inlineSources(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{inlineSources.js => inlineSources(target=es2015).js} (100%) rename tests/baselines/reference/{inlineSources.js.map => inlineSources(target=es2015).js.map} (100%) rename tests/baselines/reference/{inlineSources.sourcemap.txt => inlineSources(target=es2015).sourcemap.txt} (100%) rename tests/baselines/reference/{inlineSources.symbols => inlineSources(target=es2015).symbols} (100%) rename tests/baselines/reference/{inlineSources.types => inlineSources(target=es2015).types} (100%) rename tests/baselines/reference/{inlineSources2.errors.txt => inlineSources(target=es5).errors.txt} (100%) create mode 100644 tests/baselines/reference/inlineSources(target=es5).js create mode 100644 tests/baselines/reference/inlineSources(target=es5).js.map create mode 100644 tests/baselines/reference/inlineSources(target=es5).sourcemap.txt create mode 100644 tests/baselines/reference/inlineSources(target=es5).symbols create mode 100644 tests/baselines/reference/inlineSources(target=es5).types create mode 100644 tests/baselines/reference/inlineSources2(target=es2015).errors.txt rename tests/baselines/reference/{inlineSources2.js => inlineSources2(target=es2015).js} (100%) rename tests/baselines/reference/{inlineSources2.sourcemap.txt => inlineSources2(target=es2015).sourcemap.txt} (100%) rename tests/baselines/reference/{inlineSources2.symbols => inlineSources2(target=es2015).symbols} (100%) rename tests/baselines/reference/{inlineSources2.types => inlineSources2(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/inlineSources2(target=es5).errors.txt create mode 100644 tests/baselines/reference/inlineSources2(target=es5).js create mode 100644 tests/baselines/reference/inlineSources2(target=es5).sourcemap.txt create mode 100644 tests/baselines/reference/inlineSources2(target=es5).symbols create mode 100644 tests/baselines/reference/inlineSources2(target=es5).types rename tests/baselines/reference/{intlNumberFormatES5UseGrouping.errors.txt => intlNumberFormatES5UseGrouping(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/intlNumberFormatES5UseGrouping(target=es2015).js rename tests/baselines/reference/{intlNumberFormatES5UseGrouping.symbols => intlNumberFormatES5UseGrouping(target=es2015).symbols} (100%) rename tests/baselines/reference/{intlNumberFormatES5UseGrouping.types => intlNumberFormatES5UseGrouping(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/intlNumberFormatES5UseGrouping(target=es5).errors.txt rename tests/baselines/reference/{intlNumberFormatES5UseGrouping.js => intlNumberFormatES5UseGrouping(target=es5).js} (100%) create mode 100644 tests/baselines/reference/intlNumberFormatES5UseGrouping(target=es5).symbols create mode 100644 tests/baselines/reference/intlNumberFormatES5UseGrouping(target=es5).types rename tests/baselines/reference/{invalidNewTarget.es5.errors.txt => invalidNewTarget.es5(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/invalidNewTarget.es5(target=es2015).js rename tests/baselines/reference/{invalidNewTarget.es5.symbols => invalidNewTarget.es5(target=es2015).symbols} (100%) rename tests/baselines/reference/{invalidNewTarget.es5.types => invalidNewTarget.es5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/invalidNewTarget.es5(target=es5).errors.txt rename tests/baselines/reference/{invalidNewTarget.es5.js => invalidNewTarget.es5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/invalidNewTarget.es5(target=es5).symbols create mode 100644 tests/baselines/reference/invalidNewTarget.es5(target=es5).types create mode 100644 tests/baselines/reference/isDeclarationVisibleNodeKinds(target=es2015).js rename tests/baselines/reference/{isDeclarationVisibleNodeKinds.symbols => isDeclarationVisibleNodeKinds(target=es2015).symbols} (100%) rename tests/baselines/reference/{isDeclarationVisibleNodeKinds.types => isDeclarationVisibleNodeKinds(target=es2015).types} (100%) rename tests/baselines/reference/{isDeclarationVisibleNodeKinds.js => isDeclarationVisibleNodeKinds(target=es5).js} (100%) create mode 100644 tests/baselines/reference/isDeclarationVisibleNodeKinds(target=es5).symbols create mode 100644 tests/baselines/reference/isDeclarationVisibleNodeKinds(target=es5).types rename tests/baselines/reference/{isolatedModulesImportExportElision.errors.txt => isolatedModulesImportExportElision(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/isolatedModulesImportExportElision(target=es2015).js rename tests/baselines/reference/{isolatedModulesImportExportElision.symbols => isolatedModulesImportExportElision(target=es2015).symbols} (100%) rename tests/baselines/reference/{isolatedModulesImportExportElision.types => isolatedModulesImportExportElision(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/isolatedModulesImportExportElision(target=es5).errors.txt rename tests/baselines/reference/{isolatedModulesImportExportElision.js => isolatedModulesImportExportElision(target=es5).js} (100%) create mode 100644 tests/baselines/reference/isolatedModulesImportExportElision(target=es5).symbols create mode 100644 tests/baselines/reference/isolatedModulesImportExportElision(target=es5).types rename tests/baselines/reference/{isolatedModulesPlainFile-AMD.errors.txt => isolatedModulesPlainFile-AMD(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{isolatedModulesPlainFile-AMD.js => isolatedModulesPlainFile-AMD(target=es2015).js} (100%) rename tests/baselines/reference/{isolatedModulesPlainFile-AMD.symbols => isolatedModulesPlainFile-AMD(target=es2015).symbols} (100%) rename tests/baselines/reference/{isolatedModulesPlainFile-AMD.types => isolatedModulesPlainFile-AMD(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/isolatedModulesPlainFile-AMD(target=es5).errors.txt create mode 100644 tests/baselines/reference/isolatedModulesPlainFile-AMD(target=es5).js create mode 100644 tests/baselines/reference/isolatedModulesPlainFile-AMD(target=es5).symbols create mode 100644 tests/baselines/reference/isolatedModulesPlainFile-AMD(target=es5).types rename tests/baselines/reference/{isolatedModulesPlainFile-CommonJS.js => isolatedModulesPlainFile-CommonJS(target=es2015).js} (100%) rename tests/baselines/reference/{isolatedModulesPlainFile-CommonJS.symbols => isolatedModulesPlainFile-CommonJS(target=es2015).symbols} (100%) rename tests/baselines/reference/{isolatedModulesPlainFile-CommonJS.types => isolatedModulesPlainFile-CommonJS(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/isolatedModulesPlainFile-CommonJS(target=es5).js create mode 100644 tests/baselines/reference/isolatedModulesPlainFile-CommonJS(target=es5).symbols create mode 100644 tests/baselines/reference/isolatedModulesPlainFile-CommonJS(target=es5).types rename tests/baselines/reference/{isolatedModulesPlainFile-System.errors.txt => isolatedModulesPlainFile-System(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{isolatedModulesPlainFile-System.js => isolatedModulesPlainFile-System(target=es2015).js} (100%) rename tests/baselines/reference/{isolatedModulesPlainFile-System.symbols => isolatedModulesPlainFile-System(target=es2015).symbols} (100%) rename tests/baselines/reference/{isolatedModulesPlainFile-System.types => isolatedModulesPlainFile-System(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/isolatedModulesPlainFile-System(target=es5).errors.txt create mode 100644 tests/baselines/reference/isolatedModulesPlainFile-System(target=es5).js create mode 100644 tests/baselines/reference/isolatedModulesPlainFile-System(target=es5).symbols create mode 100644 tests/baselines/reference/isolatedModulesPlainFile-System(target=es5).types rename tests/baselines/reference/{isolatedModulesPlainFile-UMD.errors.txt => isolatedModulesPlainFile-UMD(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{isolatedModulesPlainFile-UMD.js => isolatedModulesPlainFile-UMD(target=es2015).js} (100%) rename tests/baselines/reference/{isolatedModulesPlainFile-UMD.symbols => isolatedModulesPlainFile-UMD(target=es2015).symbols} (100%) rename tests/baselines/reference/{isolatedModulesPlainFile-UMD.types => isolatedModulesPlainFile-UMD(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/isolatedModulesPlainFile-UMD(target=es5).errors.txt create mode 100644 tests/baselines/reference/isolatedModulesPlainFile-UMD(target=es5).js create mode 100644 tests/baselines/reference/isolatedModulesPlainFile-UMD(target=es5).symbols create mode 100644 tests/baselines/reference/isolatedModulesPlainFile-UMD(target=es5).types create mode 100644 tests/baselines/reference/jsDeclarationsClassExtendsVisibility(target=es2015).js rename tests/baselines/reference/{jsDeclarationsClassExtendsVisibility.symbols => jsDeclarationsClassExtendsVisibility(target=es2015).symbols} (100%) rename tests/baselines/reference/{jsDeclarationsClassExtendsVisibility.types => jsDeclarationsClassExtendsVisibility(target=es2015).types} (100%) rename tests/baselines/reference/{jsDeclarationsClassExtendsVisibility.js => jsDeclarationsClassExtendsVisibility(target=es5).js} (100%) create mode 100644 tests/baselines/reference/jsDeclarationsClassExtendsVisibility(target=es5).symbols create mode 100644 tests/baselines/reference/jsDeclarationsClassExtendsVisibility(target=es5).types create mode 100644 tests/baselines/reference/jsDeclarationsClassImplementsGenericsSerialization(target=es2015).js rename tests/baselines/reference/{jsDeclarationsClassImplementsGenericsSerialization.symbols => jsDeclarationsClassImplementsGenericsSerialization(target=es2015).symbols} (100%) rename tests/baselines/reference/{jsDeclarationsClassImplementsGenericsSerialization.types => jsDeclarationsClassImplementsGenericsSerialization(target=es2015).types} (100%) rename tests/baselines/reference/{jsDeclarationsClassImplementsGenericsSerialization.js => jsDeclarationsClassImplementsGenericsSerialization(target=es5).js} (100%) create mode 100644 tests/baselines/reference/jsDeclarationsClassImplementsGenericsSerialization(target=es5).symbols create mode 100644 tests/baselines/reference/jsDeclarationsClassImplementsGenericsSerialization(target=es5).types create mode 100644 tests/baselines/reference/jsDeclarationsClassLeadingOptional(target=es2015).js rename tests/baselines/reference/{jsDeclarationsClassLeadingOptional.symbols => jsDeclarationsClassLeadingOptional(target=es2015).symbols} (100%) rename tests/baselines/reference/{jsDeclarationsClassLeadingOptional.types => jsDeclarationsClassLeadingOptional(target=es2015).types} (100%) rename tests/baselines/reference/{jsDeclarationsClassLeadingOptional.js => jsDeclarationsClassLeadingOptional(target=es5).js} (100%) create mode 100644 tests/baselines/reference/jsDeclarationsClassLeadingOptional(target=es5).symbols create mode 100644 tests/baselines/reference/jsDeclarationsClassLeadingOptional(target=es5).types rename tests/baselines/reference/{jsDeclarationsClassLikeHeuristic.errors.txt => jsDeclarationsClassLikeHeuristic(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/jsDeclarationsClassLikeHeuristic(target=es2015).js rename tests/baselines/reference/{jsDeclarationsClassLikeHeuristic.symbols => jsDeclarationsClassLikeHeuristic(target=es2015).symbols} (100%) rename tests/baselines/reference/{jsDeclarationsClassLikeHeuristic.types => jsDeclarationsClassLikeHeuristic(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/jsDeclarationsClassLikeHeuristic(target=es5).errors.txt rename tests/baselines/reference/{jsDeclarationsClassLikeHeuristic.js => jsDeclarationsClassLikeHeuristic(target=es5).js} (100%) create mode 100644 tests/baselines/reference/jsDeclarationsClassLikeHeuristic(target=es5).symbols create mode 100644 tests/baselines/reference/jsDeclarationsClassLikeHeuristic(target=es5).types create mode 100644 tests/baselines/reference/jsDeclarationsClassStatic(target=es2015).js rename tests/baselines/reference/{jsDeclarationsClassStatic.symbols => jsDeclarationsClassStatic(target=es2015).symbols} (100%) rename tests/baselines/reference/{jsDeclarationsClassStatic.types => jsDeclarationsClassStatic(target=es2015).types} (100%) rename tests/baselines/reference/{jsDeclarationsClassStatic.js => jsDeclarationsClassStatic(target=es5).js} (100%) create mode 100644 tests/baselines/reference/jsDeclarationsClassStatic(target=es5).symbols create mode 100644 tests/baselines/reference/jsDeclarationsClassStatic(target=es5).types create mode 100644 tests/baselines/reference/jsDeclarationsClassStaticMethodAugmentation(target=es2015).js rename tests/baselines/reference/{jsDeclarationsClassStaticMethodAugmentation.symbols => jsDeclarationsClassStaticMethodAugmentation(target=es2015).symbols} (100%) rename tests/baselines/reference/{jsDeclarationsClassStaticMethodAugmentation.types => jsDeclarationsClassStaticMethodAugmentation(target=es2015).types} (100%) rename tests/baselines/reference/{jsDeclarationsClassStaticMethodAugmentation.js => jsDeclarationsClassStaticMethodAugmentation(target=es5).js} (100%) create mode 100644 tests/baselines/reference/jsDeclarationsClassStaticMethodAugmentation(target=es5).symbols create mode 100644 tests/baselines/reference/jsDeclarationsClassStaticMethodAugmentation(target=es5).types create mode 100644 tests/baselines/reference/jsDeclarationsClasses(target=es2015).js rename tests/baselines/reference/{jsDeclarationsClasses.symbols => jsDeclarationsClasses(target=es2015).symbols} (100%) rename tests/baselines/reference/{jsDeclarationsClasses.types => jsDeclarationsClasses(target=es2015).types} (100%) rename tests/baselines/reference/{jsDeclarationsClasses.js => jsDeclarationsClasses(target=es5).js} (100%) create mode 100644 tests/baselines/reference/jsDeclarationsClasses(target=es5).symbols create mode 100644 tests/baselines/reference/jsDeclarationsClasses(target=es5).types rename tests/baselines/reference/{jsDeclarationsClassesErr.errors.txt => jsDeclarationsClassesErr(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/jsDeclarationsClassesErr(target=es2015).js rename tests/baselines/reference/{jsDeclarationsClassesErr.symbols => jsDeclarationsClassesErr(target=es2015).symbols} (100%) rename tests/baselines/reference/{jsDeclarationsClassesErr.types => jsDeclarationsClassesErr(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/jsDeclarationsClassesErr(target=es5).errors.txt rename tests/baselines/reference/{jsDeclarationsClassesErr.js => jsDeclarationsClassesErr(target=es5).js} (100%) create mode 100644 tests/baselines/reference/jsDeclarationsClassesErr(target=es5).symbols create mode 100644 tests/baselines/reference/jsDeclarationsClassesErr(target=es5).types create mode 100644 tests/baselines/reference/jsDeclarationsComputedNames(target=es2015).js rename tests/baselines/reference/{jsDeclarationsComputedNames.symbols => jsDeclarationsComputedNames(target=es2015).symbols} (100%) rename tests/baselines/reference/{jsDeclarationsComputedNames.types => jsDeclarationsComputedNames(target=es2015).types} (100%) rename tests/baselines/reference/{jsDeclarationsComputedNames.js => jsDeclarationsComputedNames(target=es5).js} (100%) create mode 100644 tests/baselines/reference/jsDeclarationsComputedNames(target=es5).symbols create mode 100644 tests/baselines/reference/jsDeclarationsComputedNames(target=es5).types rename tests/baselines/reference/{jsDeclarationsCrossfileMerge.errors.txt => jsDeclarationsCrossfileMerge(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/jsDeclarationsCrossfileMerge(target=es2015).js rename tests/baselines/reference/{jsDeclarationsCrossfileMerge.symbols => jsDeclarationsCrossfileMerge(target=es2015).symbols} (100%) rename tests/baselines/reference/{jsDeclarationsCrossfileMerge.types => jsDeclarationsCrossfileMerge(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/jsDeclarationsCrossfileMerge(target=es5).errors.txt rename tests/baselines/reference/{jsDeclarationsCrossfileMerge.js => jsDeclarationsCrossfileMerge(target=es5).js} (100%) create mode 100644 tests/baselines/reference/jsDeclarationsCrossfileMerge(target=es5).symbols create mode 100644 tests/baselines/reference/jsDeclarationsCrossfileMerge(target=es5).types create mode 100644 tests/baselines/reference/jsDeclarationsDefault(target=es2015).js rename tests/baselines/reference/{jsDeclarationsDefault.symbols => jsDeclarationsDefault(target=es2015).symbols} (100%) rename tests/baselines/reference/{jsDeclarationsDefault.types => jsDeclarationsDefault(target=es2015).types} (100%) rename tests/baselines/reference/{jsDeclarationsDefault.js => jsDeclarationsDefault(target=es5).js} (100%) create mode 100644 tests/baselines/reference/jsDeclarationsDefault(target=es5).symbols create mode 100644 tests/baselines/reference/jsDeclarationsDefault(target=es5).types rename tests/baselines/reference/{jsDeclarationsDefaultsErr.errors.txt => jsDeclarationsDefaultsErr(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/jsDeclarationsDefaultsErr(target=es2015).js rename tests/baselines/reference/{jsDeclarationsDefaultsErr.symbols => jsDeclarationsDefaultsErr(target=es2015).symbols} (100%) rename tests/baselines/reference/{jsDeclarationsDefaultsErr.types => jsDeclarationsDefaultsErr(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/jsDeclarationsDefaultsErr(target=es5).errors.txt rename tests/baselines/reference/{jsDeclarationsDefaultsErr.js => jsDeclarationsDefaultsErr(target=es5).js} (100%) create mode 100644 tests/baselines/reference/jsDeclarationsDefaultsErr(target=es5).symbols create mode 100644 tests/baselines/reference/jsDeclarationsDefaultsErr(target=es5).types create mode 100644 tests/baselines/reference/jsDeclarationsDocCommentsOnConsts(target=es2015).js rename tests/baselines/reference/{jsDeclarationsDocCommentsOnConsts.symbols => jsDeclarationsDocCommentsOnConsts(target=es2015).symbols} (100%) rename tests/baselines/reference/{jsDeclarationsDocCommentsOnConsts.types => jsDeclarationsDocCommentsOnConsts(target=es2015).types} (100%) rename tests/baselines/reference/{jsDeclarationsDocCommentsOnConsts.js => jsDeclarationsDocCommentsOnConsts(target=es5).js} (100%) create mode 100644 tests/baselines/reference/jsDeclarationsDocCommentsOnConsts(target=es5).symbols create mode 100644 tests/baselines/reference/jsDeclarationsDocCommentsOnConsts(target=es5).types create mode 100644 tests/baselines/reference/jsDeclarationsEnumTag(target=es2015).js rename tests/baselines/reference/{jsDeclarationsEnumTag.symbols => jsDeclarationsEnumTag(target=es2015).symbols} (100%) rename tests/baselines/reference/{jsDeclarationsEnumTag.types => jsDeclarationsEnumTag(target=es2015).types} (100%) rename tests/baselines/reference/{jsDeclarationsEnumTag.js => jsDeclarationsEnumTag(target=es5).js} (100%) create mode 100644 tests/baselines/reference/jsDeclarationsEnumTag(target=es5).symbols create mode 100644 tests/baselines/reference/jsDeclarationsEnumTag(target=es5).types rename tests/baselines/reference/{jsDeclarationsEnums.errors.txt => jsDeclarationsEnums(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/jsDeclarationsEnums(target=es2015).js rename tests/baselines/reference/{jsDeclarationsEnums.symbols => jsDeclarationsEnums(target=es2015).symbols} (100%) rename tests/baselines/reference/{jsDeclarationsEnums.types => jsDeclarationsEnums(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/jsDeclarationsEnums(target=es5).errors.txt rename tests/baselines/reference/{jsDeclarationsEnums.js => jsDeclarationsEnums(target=es5).js} (100%) create mode 100644 tests/baselines/reference/jsDeclarationsEnums(target=es5).symbols create mode 100644 tests/baselines/reference/jsDeclarationsEnums(target=es5).types create mode 100644 tests/baselines/reference/jsDeclarationsExportAssignedClassExpression(target=es2015).js rename tests/baselines/reference/{jsDeclarationsExportAssignedClassExpression.symbols => jsDeclarationsExportAssignedClassExpression(target=es2015).symbols} (100%) rename tests/baselines/reference/{jsDeclarationsExportAssignedClassExpression.types => jsDeclarationsExportAssignedClassExpression(target=es2015).types} (100%) rename tests/baselines/reference/{jsDeclarationsExportAssignedClassExpression.js => jsDeclarationsExportAssignedClassExpression(target=es5).js} (100%) create mode 100644 tests/baselines/reference/jsDeclarationsExportAssignedClassExpression(target=es5).symbols create mode 100644 tests/baselines/reference/jsDeclarationsExportAssignedClassExpression(target=es5).types create mode 100644 tests/baselines/reference/jsDeclarationsExportAssignedClassExpressionAnonymous(target=es2015).js rename tests/baselines/reference/{jsDeclarationsExportAssignedClassExpressionAnonymous.symbols => jsDeclarationsExportAssignedClassExpressionAnonymous(target=es2015).symbols} (100%) rename tests/baselines/reference/{jsDeclarationsExportAssignedClassExpressionAnonymous.types => jsDeclarationsExportAssignedClassExpressionAnonymous(target=es2015).types} (100%) rename tests/baselines/reference/{jsDeclarationsExportAssignedClassExpressionAnonymous.js => jsDeclarationsExportAssignedClassExpressionAnonymous(target=es5).js} (100%) create mode 100644 tests/baselines/reference/jsDeclarationsExportAssignedClassExpressionAnonymous(target=es5).symbols create mode 100644 tests/baselines/reference/jsDeclarationsExportAssignedClassExpressionAnonymous(target=es5).types create mode 100644 tests/baselines/reference/jsDeclarationsExportAssignedClassExpressionAnonymousWithSub(target=es2015).js rename tests/baselines/reference/{jsDeclarationsExportAssignedClassExpressionAnonymousWithSub.symbols => jsDeclarationsExportAssignedClassExpressionAnonymousWithSub(target=es2015).symbols} (100%) rename tests/baselines/reference/{jsDeclarationsExportAssignedClassExpressionAnonymousWithSub.types => jsDeclarationsExportAssignedClassExpressionAnonymousWithSub(target=es2015).types} (100%) rename tests/baselines/reference/{jsDeclarationsExportAssignedClassExpressionAnonymousWithSub.js => jsDeclarationsExportAssignedClassExpressionAnonymousWithSub(target=es5).js} (100%) create mode 100644 tests/baselines/reference/jsDeclarationsExportAssignedClassExpressionAnonymousWithSub(target=es5).symbols create mode 100644 tests/baselines/reference/jsDeclarationsExportAssignedClassExpressionAnonymousWithSub(target=es5).types create mode 100644 tests/baselines/reference/jsDeclarationsExportAssignedClassExpressionShadowing(target=es2015).js rename tests/baselines/reference/{jsDeclarationsExportAssignedClassExpressionShadowing.symbols => jsDeclarationsExportAssignedClassExpressionShadowing(target=es2015).symbols} (100%) rename tests/baselines/reference/{jsDeclarationsExportAssignedClassExpressionShadowing.types => jsDeclarationsExportAssignedClassExpressionShadowing(target=es2015).types} (100%) rename tests/baselines/reference/{jsDeclarationsExportAssignedClassExpressionShadowing.js => jsDeclarationsExportAssignedClassExpressionShadowing(target=es5).js} (100%) create mode 100644 tests/baselines/reference/jsDeclarationsExportAssignedClassExpressionShadowing(target=es5).symbols create mode 100644 tests/baselines/reference/jsDeclarationsExportAssignedClassExpressionShadowing(target=es5).types create mode 100644 tests/baselines/reference/jsDeclarationsExportAssignedClassInstance1(target=es2015).js rename tests/baselines/reference/{jsDeclarationsExportAssignedClassInstance1.symbols => jsDeclarationsExportAssignedClassInstance1(target=es2015).symbols} (100%) rename tests/baselines/reference/{jsDeclarationsExportAssignedClassInstance1.types => jsDeclarationsExportAssignedClassInstance1(target=es2015).types} (100%) rename tests/baselines/reference/{jsDeclarationsExportAssignedClassInstance1.js => jsDeclarationsExportAssignedClassInstance1(target=es5).js} (100%) create mode 100644 tests/baselines/reference/jsDeclarationsExportAssignedClassInstance1(target=es5).symbols create mode 100644 tests/baselines/reference/jsDeclarationsExportAssignedClassInstance1(target=es5).types create mode 100644 tests/baselines/reference/jsDeclarationsExportAssignedClassInstance2(target=es2015).js rename tests/baselines/reference/{jsDeclarationsExportAssignedClassInstance2.symbols => jsDeclarationsExportAssignedClassInstance2(target=es2015).symbols} (100%) rename tests/baselines/reference/{jsDeclarationsExportAssignedClassInstance2.types => jsDeclarationsExportAssignedClassInstance2(target=es2015).types} (100%) rename tests/baselines/reference/{jsDeclarationsExportAssignedClassInstance2.js => jsDeclarationsExportAssignedClassInstance2(target=es5).js} (100%) create mode 100644 tests/baselines/reference/jsDeclarationsExportAssignedClassInstance2(target=es5).symbols create mode 100644 tests/baselines/reference/jsDeclarationsExportAssignedClassInstance2(target=es5).types create mode 100644 tests/baselines/reference/jsDeclarationsExportAssignedClassInstance3(target=es2015).js rename tests/baselines/reference/{jsDeclarationsExportAssignedClassInstance3.symbols => jsDeclarationsExportAssignedClassInstance3(target=es2015).symbols} (100%) rename tests/baselines/reference/{jsDeclarationsExportAssignedClassInstance3.types => jsDeclarationsExportAssignedClassInstance3(target=es2015).types} (100%) rename tests/baselines/reference/{jsDeclarationsExportAssignedClassInstance3.js => jsDeclarationsExportAssignedClassInstance3(target=es5).js} (100%) create mode 100644 tests/baselines/reference/jsDeclarationsExportAssignedClassInstance3(target=es5).symbols create mode 100644 tests/baselines/reference/jsDeclarationsExportAssignedClassInstance3(target=es5).types rename tests/baselines/reference/{jsDeclarationsExportAssignedConstructorFunction.js => jsDeclarationsExportAssignedConstructorFunction(target=es2015).js} (100%) rename tests/baselines/reference/{jsDeclarationsExportAssignedConstructorFunction.symbols => jsDeclarationsExportAssignedConstructorFunction(target=es2015).symbols} (100%) rename tests/baselines/reference/{jsDeclarationsExportAssignedConstructorFunction.types => jsDeclarationsExportAssignedConstructorFunction(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/jsDeclarationsExportAssignedConstructorFunction(target=es5).js create mode 100644 tests/baselines/reference/jsDeclarationsExportAssignedConstructorFunction(target=es5).symbols create mode 100644 tests/baselines/reference/jsDeclarationsExportAssignedConstructorFunction(target=es5).types rename tests/baselines/reference/{jsDeclarationsExportAssignedConstructorFunctionWithSub.errors.txt => jsDeclarationsExportAssignedConstructorFunctionWithSub(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{jsDeclarationsExportAssignedConstructorFunctionWithSub.js => jsDeclarationsExportAssignedConstructorFunctionWithSub(target=es2015).js} (100%) rename tests/baselines/reference/{jsDeclarationsExportAssignedConstructorFunctionWithSub.symbols => jsDeclarationsExportAssignedConstructorFunctionWithSub(target=es2015).symbols} (100%) rename tests/baselines/reference/{jsDeclarationsExportAssignedConstructorFunctionWithSub.types => jsDeclarationsExportAssignedConstructorFunctionWithSub(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/jsDeclarationsExportAssignedConstructorFunctionWithSub(target=es5).errors.txt create mode 100644 tests/baselines/reference/jsDeclarationsExportAssignedConstructorFunctionWithSub(target=es5).js create mode 100644 tests/baselines/reference/jsDeclarationsExportAssignedConstructorFunctionWithSub(target=es5).symbols create mode 100644 tests/baselines/reference/jsDeclarationsExportAssignedConstructorFunctionWithSub(target=es5).types create mode 100644 tests/baselines/reference/jsDeclarationsExportAssignedVisibility(target=es2015).js rename tests/baselines/reference/{jsDeclarationsExportAssignedVisibility.symbols => jsDeclarationsExportAssignedVisibility(target=es2015).symbols} (100%) rename tests/baselines/reference/{jsDeclarationsExportAssignedVisibility.types => jsDeclarationsExportAssignedVisibility(target=es2015).types} (100%) rename tests/baselines/reference/{jsDeclarationsExportAssignedVisibility.js => jsDeclarationsExportAssignedVisibility(target=es5).js} (100%) create mode 100644 tests/baselines/reference/jsDeclarationsExportAssignedVisibility(target=es5).symbols create mode 100644 tests/baselines/reference/jsDeclarationsExportAssignedVisibility(target=es5).types create mode 100644 tests/baselines/reference/jsDeclarationsExportAssignmentExpressionPlusSecondary(target=es2015).js rename tests/baselines/reference/{jsDeclarationsExportAssignmentExpressionPlusSecondary.symbols => jsDeclarationsExportAssignmentExpressionPlusSecondary(target=es2015).symbols} (100%) rename tests/baselines/reference/{jsDeclarationsExportAssignmentExpressionPlusSecondary.types => jsDeclarationsExportAssignmentExpressionPlusSecondary(target=es2015).types} (100%) rename tests/baselines/reference/{jsDeclarationsExportAssignmentExpressionPlusSecondary.js => jsDeclarationsExportAssignmentExpressionPlusSecondary(target=es5).js} (100%) create mode 100644 tests/baselines/reference/jsDeclarationsExportAssignmentExpressionPlusSecondary(target=es5).symbols create mode 100644 tests/baselines/reference/jsDeclarationsExportAssignmentExpressionPlusSecondary(target=es5).types create mode 100644 tests/baselines/reference/jsDeclarationsExportAssignmentWithKeywordName(target=es2015).js rename tests/baselines/reference/{jsDeclarationsExportAssignmentWithKeywordName.symbols => jsDeclarationsExportAssignmentWithKeywordName(target=es2015).symbols} (100%) rename tests/baselines/reference/{jsDeclarationsExportAssignmentWithKeywordName.types => jsDeclarationsExportAssignmentWithKeywordName(target=es2015).types} (100%) rename tests/baselines/reference/{jsDeclarationsExportAssignmentWithKeywordName.js => jsDeclarationsExportAssignmentWithKeywordName(target=es5).js} (100%) create mode 100644 tests/baselines/reference/jsDeclarationsExportAssignmentWithKeywordName(target=es5).symbols create mode 100644 tests/baselines/reference/jsDeclarationsExportAssignmentWithKeywordName(target=es5).types create mode 100644 tests/baselines/reference/jsDeclarationsExportForms(target=es2015).js rename tests/baselines/reference/{jsDeclarationsExportForms.symbols => jsDeclarationsExportForms(target=es2015).symbols} (100%) rename tests/baselines/reference/{jsDeclarationsExportForms.types => jsDeclarationsExportForms(target=es2015).types} (100%) rename tests/baselines/reference/{jsDeclarationsExportForms.js => jsDeclarationsExportForms(target=es5).js} (100%) create mode 100644 tests/baselines/reference/jsDeclarationsExportForms(target=es5).symbols create mode 100644 tests/baselines/reference/jsDeclarationsExportForms(target=es5).types create mode 100644 tests/baselines/reference/jsDeclarationsExportFormsErr(target=es2015).errors.txt create mode 100644 tests/baselines/reference/jsDeclarationsExportFormsErr(target=es2015).js rename tests/baselines/reference/{jsDeclarationsExportFormsErr.symbols => jsDeclarationsExportFormsErr(target=es2015).symbols} (100%) rename tests/baselines/reference/{jsDeclarationsExportFormsErr.types => jsDeclarationsExportFormsErr(target=es2015).types} (100%) rename tests/baselines/reference/{jsDeclarationsExportFormsErr.errors.txt => jsDeclarationsExportFormsErr(target=es5).errors.txt} (100%) rename tests/baselines/reference/{jsDeclarationsExportFormsErr.js => jsDeclarationsExportFormsErr(target=es5).js} (100%) create mode 100644 tests/baselines/reference/jsDeclarationsExportFormsErr(target=es5).symbols create mode 100644 tests/baselines/reference/jsDeclarationsExportFormsErr(target=es5).types create mode 100644 tests/baselines/reference/jsDeclarationsExportSpecifierNonlocal(target=es2015).js rename tests/baselines/reference/{jsDeclarationsExportSpecifierNonlocal.symbols => jsDeclarationsExportSpecifierNonlocal(target=es2015).symbols} (100%) rename tests/baselines/reference/{jsDeclarationsExportSpecifierNonlocal.types => jsDeclarationsExportSpecifierNonlocal(target=es2015).types} (100%) rename tests/baselines/reference/{jsDeclarationsExportSpecifierNonlocal.js => jsDeclarationsExportSpecifierNonlocal(target=es5).js} (100%) create mode 100644 tests/baselines/reference/jsDeclarationsExportSpecifierNonlocal(target=es5).symbols create mode 100644 tests/baselines/reference/jsDeclarationsExportSpecifierNonlocal(target=es5).types create mode 100644 tests/baselines/reference/jsDeclarationsExportSubAssignments(target=es2015).js rename tests/baselines/reference/{jsDeclarationsExportSubAssignments.symbols => jsDeclarationsExportSubAssignments(target=es2015).symbols} (100%) rename tests/baselines/reference/{jsDeclarationsExportSubAssignments.types => jsDeclarationsExportSubAssignments(target=es2015).types} (100%) rename tests/baselines/reference/{jsDeclarationsExportSubAssignments.js => jsDeclarationsExportSubAssignments(target=es5).js} (100%) create mode 100644 tests/baselines/reference/jsDeclarationsExportSubAssignments(target=es5).symbols create mode 100644 tests/baselines/reference/jsDeclarationsExportSubAssignments(target=es5).types create mode 100644 tests/baselines/reference/jsDeclarationsFunctionClassesCjsExportAssignment(target=es2015).js rename tests/baselines/reference/{jsDeclarationsFunctionClassesCjsExportAssignment.symbols => jsDeclarationsFunctionClassesCjsExportAssignment(target=es2015).symbols} (100%) rename tests/baselines/reference/{jsDeclarationsFunctionClassesCjsExportAssignment.types => jsDeclarationsFunctionClassesCjsExportAssignment(target=es2015).types} (100%) rename tests/baselines/reference/{jsDeclarationsFunctionClassesCjsExportAssignment.js => jsDeclarationsFunctionClassesCjsExportAssignment(target=es5).js} (100%) create mode 100644 tests/baselines/reference/jsDeclarationsFunctionClassesCjsExportAssignment(target=es5).symbols create mode 100644 tests/baselines/reference/jsDeclarationsFunctionClassesCjsExportAssignment(target=es5).types create mode 100644 tests/baselines/reference/jsDeclarationsFunctionJSDoc(target=es2015).js rename tests/baselines/reference/{jsDeclarationsFunctionJSDoc.symbols => jsDeclarationsFunctionJSDoc(target=es2015).symbols} (100%) rename tests/baselines/reference/{jsDeclarationsFunctionJSDoc.types => jsDeclarationsFunctionJSDoc(target=es2015).types} (100%) rename tests/baselines/reference/{jsDeclarationsFunctionJSDoc.js => jsDeclarationsFunctionJSDoc(target=es5).js} (100%) create mode 100644 tests/baselines/reference/jsDeclarationsFunctionJSDoc(target=es5).symbols create mode 100644 tests/baselines/reference/jsDeclarationsFunctionJSDoc(target=es5).types rename tests/baselines/reference/{jsDeclarationsFunctionKeywordProp.js => jsDeclarationsFunctionKeywordProp(target=es2015).js} (100%) rename tests/baselines/reference/{jsDeclarationsFunctionKeywordProp.symbols => jsDeclarationsFunctionKeywordProp(target=es2015).symbols} (100%) rename tests/baselines/reference/{jsDeclarationsFunctionKeywordProp.types => jsDeclarationsFunctionKeywordProp(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/jsDeclarationsFunctionKeywordProp(target=es5).js create mode 100644 tests/baselines/reference/jsDeclarationsFunctionKeywordProp(target=es5).symbols create mode 100644 tests/baselines/reference/jsDeclarationsFunctionKeywordProp(target=es5).types rename tests/baselines/reference/{jsDeclarationsFunctionKeywordPropExhaustive.js => jsDeclarationsFunctionKeywordPropExhaustive(target=es2015).js} (100%) rename tests/baselines/reference/{jsDeclarationsFunctionKeywordPropExhaustive.symbols => jsDeclarationsFunctionKeywordPropExhaustive(target=es2015).symbols} (100%) rename tests/baselines/reference/{jsDeclarationsFunctionKeywordPropExhaustive.types => jsDeclarationsFunctionKeywordPropExhaustive(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/jsDeclarationsFunctionKeywordPropExhaustive(target=es5).js create mode 100644 tests/baselines/reference/jsDeclarationsFunctionKeywordPropExhaustive(target=es5).symbols create mode 100644 tests/baselines/reference/jsDeclarationsFunctionKeywordPropExhaustive(target=es5).types create mode 100644 tests/baselines/reference/jsDeclarationsFunctionLikeClasses(target=es2015).js rename tests/baselines/reference/{jsDeclarationsFunctionLikeClasses.symbols => jsDeclarationsFunctionLikeClasses(target=es2015).symbols} (100%) rename tests/baselines/reference/{jsDeclarationsFunctionLikeClasses.types => jsDeclarationsFunctionLikeClasses(target=es2015).types} (100%) rename tests/baselines/reference/{jsDeclarationsFunctionLikeClasses.js => jsDeclarationsFunctionLikeClasses(target=es5).js} (100%) create mode 100644 tests/baselines/reference/jsDeclarationsFunctionLikeClasses(target=es5).symbols create mode 100644 tests/baselines/reference/jsDeclarationsFunctionLikeClasses(target=es5).types create mode 100644 tests/baselines/reference/jsDeclarationsFunctionLikeClasses2(target=es2015).js rename tests/baselines/reference/{jsDeclarationsFunctionLikeClasses2.symbols => jsDeclarationsFunctionLikeClasses2(target=es2015).symbols} (100%) rename tests/baselines/reference/{jsDeclarationsFunctionLikeClasses2.types => jsDeclarationsFunctionLikeClasses2(target=es2015).types} (100%) rename tests/baselines/reference/{jsDeclarationsFunctionLikeClasses2.js => jsDeclarationsFunctionLikeClasses2(target=es5).js} (100%) create mode 100644 tests/baselines/reference/jsDeclarationsFunctionLikeClasses2(target=es5).symbols create mode 100644 tests/baselines/reference/jsDeclarationsFunctionLikeClasses2(target=es5).types rename tests/baselines/reference/{jsDeclarationsFunctionPrototypeStatic.js => jsDeclarationsFunctionPrototypeStatic(target=es2015).js} (100%) rename tests/baselines/reference/{jsDeclarationsFunctionPrototypeStatic.symbols => jsDeclarationsFunctionPrototypeStatic(target=es2015).symbols} (100%) rename tests/baselines/reference/{jsDeclarationsFunctionPrototypeStatic.types => jsDeclarationsFunctionPrototypeStatic(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/jsDeclarationsFunctionPrototypeStatic(target=es5).js create mode 100644 tests/baselines/reference/jsDeclarationsFunctionPrototypeStatic(target=es5).symbols create mode 100644 tests/baselines/reference/jsDeclarationsFunctionPrototypeStatic(target=es5).types rename tests/baselines/reference/{jsDeclarationsInterfaces.errors.txt => jsDeclarationsInterfaces(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/jsDeclarationsInterfaces(target=es2015).js rename tests/baselines/reference/{jsDeclarationsInterfaces.symbols => jsDeclarationsInterfaces(target=es2015).symbols} (100%) rename tests/baselines/reference/{jsDeclarationsInterfaces.types => jsDeclarationsInterfaces(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/jsDeclarationsInterfaces(target=es5).errors.txt rename tests/baselines/reference/{jsDeclarationsInterfaces.js => jsDeclarationsInterfaces(target=es5).js} (100%) create mode 100644 tests/baselines/reference/jsDeclarationsInterfaces(target=es5).symbols create mode 100644 tests/baselines/reference/jsDeclarationsInterfaces(target=es5).types create mode 100644 tests/baselines/reference/jsDeclarationsJson(target=es2015).js rename tests/baselines/reference/{jsDeclarationsJson.symbols => jsDeclarationsJson(target=es2015).symbols} (100%) rename tests/baselines/reference/{jsDeclarationsJson.types => jsDeclarationsJson(target=es2015).types} (100%) rename tests/baselines/reference/{jsDeclarationsJson.js => jsDeclarationsJson(target=es5).js} (100%) create mode 100644 tests/baselines/reference/jsDeclarationsJson(target=es5).symbols create mode 100644 tests/baselines/reference/jsDeclarationsJson(target=es5).types rename tests/baselines/reference/{jsDeclarationsMissingGenerics.js => jsDeclarationsMissingGenerics(target=es2015).js} (100%) rename tests/baselines/reference/{jsDeclarationsMissingGenerics.symbols => jsDeclarationsMissingGenerics(target=es2015).symbols} (100%) rename tests/baselines/reference/{jsDeclarationsMissingGenerics.types => jsDeclarationsMissingGenerics(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/jsDeclarationsMissingGenerics(target=es5).js create mode 100644 tests/baselines/reference/jsDeclarationsMissingGenerics(target=es5).symbols create mode 100644 tests/baselines/reference/jsDeclarationsMissingGenerics(target=es5).types rename tests/baselines/reference/{jsDeclarationsMissingTypeParameters.js => jsDeclarationsMissingTypeParameters(target=es2015).js} (100%) rename tests/baselines/reference/{jsDeclarationsMissingTypeParameters.symbols => jsDeclarationsMissingTypeParameters(target=es2015).symbols} (100%) rename tests/baselines/reference/{jsDeclarationsMissingTypeParameters.types => jsDeclarationsMissingTypeParameters(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/jsDeclarationsMissingTypeParameters(target=es5).js create mode 100644 tests/baselines/reference/jsDeclarationsMissingTypeParameters(target=es5).symbols create mode 100644 tests/baselines/reference/jsDeclarationsMissingTypeParameters(target=es5).types create mode 100644 tests/baselines/reference/jsDeclarationsModuleReferenceHasEmit(target=es2015).js rename tests/baselines/reference/{jsDeclarationsModuleReferenceHasEmit.symbols => jsDeclarationsModuleReferenceHasEmit(target=es2015).symbols} (100%) rename tests/baselines/reference/{jsDeclarationsModuleReferenceHasEmit.types => jsDeclarationsModuleReferenceHasEmit(target=es2015).types} (100%) rename tests/baselines/reference/{jsDeclarationsModuleReferenceHasEmit.js => jsDeclarationsModuleReferenceHasEmit(target=es5).js} (100%) create mode 100644 tests/baselines/reference/jsDeclarationsModuleReferenceHasEmit(target=es5).symbols create mode 100644 tests/baselines/reference/jsDeclarationsModuleReferenceHasEmit(target=es5).types create mode 100644 tests/baselines/reference/jsDeclarationsMultipleExportFromMerge(target=es2015).js rename tests/baselines/reference/{jsDeclarationsMultipleExportFromMerge.symbols => jsDeclarationsMultipleExportFromMerge(target=es2015).symbols} (100%) rename tests/baselines/reference/{jsDeclarationsMultipleExportFromMerge.types => jsDeclarationsMultipleExportFromMerge(target=es2015).types} (100%) rename tests/baselines/reference/{jsDeclarationsMultipleExportFromMerge.js => jsDeclarationsMultipleExportFromMerge(target=es5).js} (100%) create mode 100644 tests/baselines/reference/jsDeclarationsMultipleExportFromMerge(target=es5).symbols create mode 100644 tests/baselines/reference/jsDeclarationsMultipleExportFromMerge(target=es5).types create mode 100644 tests/baselines/reference/jsDeclarationsPackageJson(target=es2015).js rename tests/baselines/reference/{jsDeclarationsPackageJson.symbols => jsDeclarationsPackageJson(target=es2015).symbols} (100%) rename tests/baselines/reference/{jsDeclarationsPackageJson.types => jsDeclarationsPackageJson(target=es2015).types} (100%) rename tests/baselines/reference/{jsDeclarationsPackageJson.js => jsDeclarationsPackageJson(target=es5).js} (100%) create mode 100644 tests/baselines/reference/jsDeclarationsPackageJson(target=es5).symbols create mode 100644 tests/baselines/reference/jsDeclarationsPackageJson(target=es5).types create mode 100644 tests/baselines/reference/jsDeclarationsReactComponents(target=es2015).js rename tests/baselines/reference/{jsDeclarationsReactComponents.symbols => jsDeclarationsReactComponents(target=es2015).symbols} (100%) rename tests/baselines/reference/{jsDeclarationsReactComponents.types => jsDeclarationsReactComponents(target=es2015).types} (100%) rename tests/baselines/reference/{jsDeclarationsReactComponents.js => jsDeclarationsReactComponents(target=es5).js} (100%) create mode 100644 tests/baselines/reference/jsDeclarationsReactComponents(target=es5).symbols create mode 100644 tests/baselines/reference/jsDeclarationsReactComponents(target=es5).types create mode 100644 tests/baselines/reference/jsDeclarationsReexportAliases(target=es2015).js rename tests/baselines/reference/{jsDeclarationsReexportAliases.symbols => jsDeclarationsReexportAliases(target=es2015).symbols} (100%) rename tests/baselines/reference/{jsDeclarationsReexportAliases.types => jsDeclarationsReexportAliases(target=es2015).types} (100%) rename tests/baselines/reference/{jsDeclarationsReexportAliases.js => jsDeclarationsReexportAliases(target=es5).js} (100%) create mode 100644 tests/baselines/reference/jsDeclarationsReexportAliases(target=es5).symbols create mode 100644 tests/baselines/reference/jsDeclarationsReexportAliases(target=es5).types create mode 100644 tests/baselines/reference/jsDeclarationsReexportAliasesEsModuleInterop(target=es2015).js rename tests/baselines/reference/{jsDeclarationsReexportAliasesEsModuleInterop.symbols => jsDeclarationsReexportAliasesEsModuleInterop(target=es2015).symbols} (100%) rename tests/baselines/reference/{jsDeclarationsReexportAliasesEsModuleInterop.types => jsDeclarationsReexportAliasesEsModuleInterop(target=es2015).types} (100%) rename tests/baselines/reference/{jsDeclarationsReexportAliasesEsModuleInterop.js => jsDeclarationsReexportAliasesEsModuleInterop(target=es5).js} (100%) create mode 100644 tests/baselines/reference/jsDeclarationsReexportAliasesEsModuleInterop(target=es5).symbols create mode 100644 tests/baselines/reference/jsDeclarationsReexportAliasesEsModuleInterop(target=es5).types create mode 100644 tests/baselines/reference/jsDeclarationsReexportedCjsAlias(target=es2015).js rename tests/baselines/reference/{jsDeclarationsReexportedCjsAlias.symbols => jsDeclarationsReexportedCjsAlias(target=es2015).symbols} (100%) rename tests/baselines/reference/{jsDeclarationsReexportedCjsAlias.types => jsDeclarationsReexportedCjsAlias(target=es2015).types} (100%) rename tests/baselines/reference/{jsDeclarationsReexportedCjsAlias.js => jsDeclarationsReexportedCjsAlias(target=es5).js} (100%) create mode 100644 tests/baselines/reference/jsDeclarationsReexportedCjsAlias(target=es5).symbols create mode 100644 tests/baselines/reference/jsDeclarationsReexportedCjsAlias(target=es5).types create mode 100644 tests/baselines/reference/jsDeclarationsRestArgsWithThisTypeInJSDocFunction(target=es2015).js rename tests/baselines/reference/{jsDeclarationsRestArgsWithThisTypeInJSDocFunction.symbols => jsDeclarationsRestArgsWithThisTypeInJSDocFunction(target=es2015).symbols} (100%) rename tests/baselines/reference/{jsDeclarationsRestArgsWithThisTypeInJSDocFunction.types => jsDeclarationsRestArgsWithThisTypeInJSDocFunction(target=es2015).types} (100%) rename tests/baselines/reference/{jsDeclarationsRestArgsWithThisTypeInJSDocFunction.js => jsDeclarationsRestArgsWithThisTypeInJSDocFunction(target=es5).js} (100%) create mode 100644 tests/baselines/reference/jsDeclarationsRestArgsWithThisTypeInJSDocFunction(target=es5).symbols create mode 100644 tests/baselines/reference/jsDeclarationsRestArgsWithThisTypeInJSDocFunction(target=es5).types create mode 100644 tests/baselines/reference/jsDeclarationsTypeReferences(target=es2015).js rename tests/baselines/reference/{jsDeclarationsTypeReferences.symbols => jsDeclarationsTypeReferences(target=es2015).symbols} (100%) rename tests/baselines/reference/{jsDeclarationsTypeReferences.types => jsDeclarationsTypeReferences(target=es2015).types} (100%) rename tests/baselines/reference/{jsDeclarationsTypeReferences.js => jsDeclarationsTypeReferences(target=es5).js} (100%) create mode 100644 tests/baselines/reference/jsDeclarationsTypeReferences(target=es5).symbols create mode 100644 tests/baselines/reference/jsDeclarationsTypeReferences(target=es5).types create mode 100644 tests/baselines/reference/jsDeclarationsTypeReferences2(target=es2015).js rename tests/baselines/reference/{jsDeclarationsTypeReferences2.symbols => jsDeclarationsTypeReferences2(target=es2015).symbols} (100%) rename tests/baselines/reference/{jsDeclarationsTypeReferences2.types => jsDeclarationsTypeReferences2(target=es2015).types} (100%) rename tests/baselines/reference/{jsDeclarationsTypeReferences2.js => jsDeclarationsTypeReferences2(target=es5).js} (100%) create mode 100644 tests/baselines/reference/jsDeclarationsTypeReferences2(target=es5).symbols create mode 100644 tests/baselines/reference/jsDeclarationsTypeReferences2(target=es5).types create mode 100644 tests/baselines/reference/jsDeclarationsTypeReferences3(target=es2015).js rename tests/baselines/reference/{jsDeclarationsTypeReferences3.symbols => jsDeclarationsTypeReferences3(target=es2015).symbols} (100%) rename tests/baselines/reference/{jsDeclarationsTypeReferences3.types => jsDeclarationsTypeReferences3(target=es2015).types} (100%) rename tests/baselines/reference/{jsDeclarationsTypeReferences3.js => jsDeclarationsTypeReferences3(target=es5).js} (100%) create mode 100644 tests/baselines/reference/jsDeclarationsTypeReferences3(target=es5).symbols create mode 100644 tests/baselines/reference/jsDeclarationsTypeReferences3(target=es5).types rename tests/baselines/reference/{jsDeclarationsTypeReferences4.errors.txt => jsDeclarationsTypeReferences4(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/jsDeclarationsTypeReferences4(target=es2015).js rename tests/baselines/reference/{jsDeclarationsTypeReferences4.symbols => jsDeclarationsTypeReferences4(target=es2015).symbols} (100%) rename tests/baselines/reference/{jsDeclarationsTypeReferences4.types => jsDeclarationsTypeReferences4(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/jsDeclarationsTypeReferences4(target=es5).errors.txt rename tests/baselines/reference/{jsDeclarationsTypeReferences4.js => jsDeclarationsTypeReferences4(target=es5).js} (100%) create mode 100644 tests/baselines/reference/jsDeclarationsTypeReferences4(target=es5).symbols create mode 100644 tests/baselines/reference/jsDeclarationsTypeReferences4(target=es5).types rename tests/baselines/reference/{jsxChildrenArrayWrongType.errors.txt => jsxChildrenArrayWrongType(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/jsxChildrenArrayWrongType(target=es2015).js rename tests/baselines/reference/{jsxChildrenArrayWrongType.symbols => jsxChildrenArrayWrongType(target=es2015).symbols} (100%) rename tests/baselines/reference/{jsxChildrenArrayWrongType.types => jsxChildrenArrayWrongType(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/jsxChildrenArrayWrongType(target=es5).errors.txt rename tests/baselines/reference/{jsxChildrenArrayWrongType.js => jsxChildrenArrayWrongType(target=es5).js} (100%) create mode 100644 tests/baselines/reference/jsxChildrenArrayWrongType(target=es5).symbols create mode 100644 tests/baselines/reference/jsxChildrenArrayWrongType(target=es5).types rename tests/baselines/reference/{jsxFactoryQualifiedNameWithEs5.errors.txt => jsxFactoryQualifiedNameWithEs5(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/jsxFactoryQualifiedNameWithEs5(target=es2015).js rename tests/baselines/reference/{jsxFactoryQualifiedNameWithEs5.symbols => jsxFactoryQualifiedNameWithEs5(target=es2015).symbols} (100%) rename tests/baselines/reference/{jsxFactoryQualifiedNameWithEs5.types => jsxFactoryQualifiedNameWithEs5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/jsxFactoryQualifiedNameWithEs5(target=es5).errors.txt rename tests/baselines/reference/{jsxFactoryQualifiedNameWithEs5.js => jsxFactoryQualifiedNameWithEs5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/jsxFactoryQualifiedNameWithEs5(target=es5).symbols create mode 100644 tests/baselines/reference/jsxFactoryQualifiedNameWithEs5(target=es5).types create mode 100644 tests/baselines/reference/labeledStatementDeclarationListInLoopNoCrash1(target=es2015).errors.txt create mode 100644 tests/baselines/reference/labeledStatementDeclarationListInLoopNoCrash1(target=es2015).js rename tests/baselines/reference/{labeledStatementDeclarationListInLoopNoCrash1.errors.txt => labeledStatementDeclarationListInLoopNoCrash1(target=es5).errors.txt} (100%) rename tests/baselines/reference/{labeledStatementDeclarationListInLoopNoCrash1.js => labeledStatementDeclarationListInLoopNoCrash1(target=es5).js} (100%) create mode 100644 tests/baselines/reference/labeledStatementDeclarationListInLoopNoCrash2(target=es2015).errors.txt create mode 100644 tests/baselines/reference/labeledStatementDeclarationListInLoopNoCrash2(target=es2015).js rename tests/baselines/reference/{labeledStatementDeclarationListInLoopNoCrash2.js => labeledStatementDeclarationListInLoopNoCrash2(target=es5).js} (100%) create mode 100644 tests/baselines/reference/labeledStatementDeclarationListInLoopNoCrash3(target=es2015).errors.txt create mode 100644 tests/baselines/reference/labeledStatementDeclarationListInLoopNoCrash3(target=es2015).js rename tests/baselines/reference/{labeledStatementDeclarationListInLoopNoCrash3.errors.txt => labeledStatementDeclarationListInLoopNoCrash3(target=es5).errors.txt} (100%) rename tests/baselines/reference/{labeledStatementDeclarationListInLoopNoCrash3.js => labeledStatementDeclarationListInLoopNoCrash3(target=es5).js} (100%) create mode 100644 tests/baselines/reference/labeledStatementDeclarationListInLoopNoCrash4(target=es2015).errors.txt create mode 100644 tests/baselines/reference/labeledStatementDeclarationListInLoopNoCrash4(target=es2015).js rename tests/baselines/reference/{labeledStatementDeclarationListInLoopNoCrash4.errors.txt => labeledStatementDeclarationListInLoopNoCrash4(target=es5).errors.txt} (100%) rename tests/baselines/reference/{labeledStatementDeclarationListInLoopNoCrash4.js => labeledStatementDeclarationListInLoopNoCrash4(target=es5).js} (100%) rename tests/baselines/reference/{letConstInCaseClauses.errors.txt => letConstInCaseClauses(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/letConstInCaseClauses(target=es2015).js rename tests/baselines/reference/{letConstInCaseClauses.symbols => letConstInCaseClauses(target=es2015).symbols} (100%) rename tests/baselines/reference/{letConstInCaseClauses.types => letConstInCaseClauses(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/letConstInCaseClauses(target=es5).errors.txt rename tests/baselines/reference/{letConstInCaseClauses.js => letConstInCaseClauses(target=es5).js} (100%) create mode 100644 tests/baselines/reference/letConstInCaseClauses(target=es5).symbols create mode 100644 tests/baselines/reference/letConstInCaseClauses(target=es5).types create mode 100644 tests/baselines/reference/letConstMatchingParameterNames(target=es2015).js rename tests/baselines/reference/{letConstMatchingParameterNames.symbols => letConstMatchingParameterNames(target=es2015).symbols} (100%) rename tests/baselines/reference/{letConstMatchingParameterNames.types => letConstMatchingParameterNames(target=es2015).types} (100%) rename tests/baselines/reference/{letConstMatchingParameterNames.js => letConstMatchingParameterNames(target=es5).js} (100%) create mode 100644 tests/baselines/reference/letConstMatchingParameterNames(target=es5).symbols create mode 100644 tests/baselines/reference/letConstMatchingParameterNames(target=es5).types create mode 100644 tests/baselines/reference/letDeclarations-es5(target=es2015).js rename tests/baselines/reference/{letDeclarations-es5.symbols => letDeclarations-es5(target=es2015).symbols} (100%) rename tests/baselines/reference/{letDeclarations-es5.types => letDeclarations-es5(target=es2015).types} (100%) rename tests/baselines/reference/{letDeclarations-es5.js => letDeclarations-es5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/letDeclarations-es5(target=es5).symbols create mode 100644 tests/baselines/reference/letDeclarations-es5(target=es5).types create mode 100644 tests/baselines/reference/letDeclarations-es5-1(target=es2015).js rename tests/baselines/reference/{letDeclarations-es5-1.symbols => letDeclarations-es5-1(target=es2015).symbols} (100%) rename tests/baselines/reference/{letDeclarations-es5-1.types => letDeclarations-es5-1(target=es2015).types} (100%) rename tests/baselines/reference/{letDeclarations-es5-1.js => letDeclarations-es5-1(target=es5).js} (100%) create mode 100644 tests/baselines/reference/letDeclarations-es5-1(target=es5).symbols create mode 100644 tests/baselines/reference/letDeclarations-es5-1(target=es5).types rename tests/baselines/reference/{letInConstDeclarations_ES5.errors.txt => letInConstDeclarations_ES5(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/letInConstDeclarations_ES5(target=es2015).js rename tests/baselines/reference/{letInConstDeclarations_ES5.symbols => letInConstDeclarations_ES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{letInConstDeclarations_ES5.types => letInConstDeclarations_ES5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/letInConstDeclarations_ES5(target=es5).errors.txt rename tests/baselines/reference/{letInConstDeclarations_ES5.js => letInConstDeclarations_ES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/letInConstDeclarations_ES5(target=es5).symbols create mode 100644 tests/baselines/reference/letInConstDeclarations_ES5(target=es5).types rename tests/baselines/reference/{letInLetConstDeclOfForOfAndForIn_ES5.errors.txt => letInLetConstDeclOfForOfAndForIn_ES5(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/letInLetConstDeclOfForOfAndForIn_ES5(target=es2015).js rename tests/baselines/reference/{letInLetConstDeclOfForOfAndForIn_ES5.symbols => letInLetConstDeclOfForOfAndForIn_ES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{letInLetConstDeclOfForOfAndForIn_ES5.types => letInLetConstDeclOfForOfAndForIn_ES5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/letInLetConstDeclOfForOfAndForIn_ES5(target=es5).errors.txt rename tests/baselines/reference/{letInLetConstDeclOfForOfAndForIn_ES5.js => letInLetConstDeclOfForOfAndForIn_ES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/letInLetConstDeclOfForOfAndForIn_ES5(target=es5).symbols create mode 100644 tests/baselines/reference/letInLetConstDeclOfForOfAndForIn_ES5(target=es5).types rename tests/baselines/reference/{letInLetDeclarations_ES5.errors.txt => letInLetDeclarations_ES5(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/letInLetDeclarations_ES5(target=es2015).js rename tests/baselines/reference/{letInLetDeclarations_ES5.symbols => letInLetDeclarations_ES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{letInLetDeclarations_ES5.types => letInLetDeclarations_ES5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/letInLetDeclarations_ES5(target=es5).errors.txt rename tests/baselines/reference/{letInLetDeclarations_ES5.js => letInLetDeclarations_ES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/letInLetDeclarations_ES5(target=es5).symbols create mode 100644 tests/baselines/reference/letInLetDeclarations_ES5(target=es5).types rename tests/baselines/reference/{letInVarDeclOfForIn_ES5.js => letInVarDeclOfForIn_ES5(target=es2015).js} (100%) rename tests/baselines/reference/{letInVarDeclOfForIn_ES5.symbols => letInVarDeclOfForIn_ES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{letInVarDeclOfForIn_ES5.types => letInVarDeclOfForIn_ES5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/letInVarDeclOfForIn_ES5(target=es5).js create mode 100644 tests/baselines/reference/letInVarDeclOfForIn_ES5(target=es5).symbols create mode 100644 tests/baselines/reference/letInVarDeclOfForIn_ES5(target=es5).types create mode 100644 tests/baselines/reference/letInVarDeclOfForOf_ES5(target=es2015).js rename tests/baselines/reference/{letInVarDeclOfForOf_ES5.symbols => letInVarDeclOfForOf_ES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{letInVarDeclOfForOf_ES5.types => letInVarDeclOfForOf_ES5(target=es2015).types} (100%) rename tests/baselines/reference/{letInVarDeclOfForOf_ES5.js => letInVarDeclOfForOf_ES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/letInVarDeclOfForOf_ES5(target=es5).symbols create mode 100644 tests/baselines/reference/letInVarDeclOfForOf_ES5(target=es5).types rename tests/baselines/reference/{literals.errors.txt => literals(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{literals.js => literals(target=es2015).js} (100%) rename tests/baselines/reference/{literals.symbols => literals(target=es2015).symbols} (100%) rename tests/baselines/reference/{literals.types => literals(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/literals(target=es5).errors.txt create mode 100644 tests/baselines/reference/literals(target=es5).js create mode 100644 tests/baselines/reference/literals(target=es5).symbols create mode 100644 tests/baselines/reference/literals(target=es5).types create mode 100644 tests/baselines/reference/localTypes1(target=es2015).js rename tests/baselines/reference/{localTypes1.symbols => localTypes1(target=es2015).symbols} (100%) rename tests/baselines/reference/{localTypes1.types => localTypes1(target=es2015).types} (100%) rename tests/baselines/reference/{localTypes1.js => localTypes1(target=es5).js} (100%) create mode 100644 tests/baselines/reference/localTypes1(target=es5).symbols create mode 100644 tests/baselines/reference/localTypes1(target=es5).types create mode 100644 tests/baselines/reference/manyConstExports(target=es2015).js rename tests/baselines/reference/{manyConstExports.symbols => manyConstExports(target=es2015).symbols} (100%) rename tests/baselines/reference/{manyConstExports.types => manyConstExports(target=es2015).types} (100%) rename tests/baselines/reference/{manyConstExports.js => manyConstExports(target=es5).js} (100%) create mode 100644 tests/baselines/reference/manyConstExports(target=es5).symbols create mode 100644 tests/baselines/reference/manyConstExports(target=es5).types create mode 100644 tests/baselines/reference/metadataOfClassFromAlias(strict=false,target=es2015).js rename tests/baselines/reference/{metadataOfClassFromAlias(strict=false).symbols => metadataOfClassFromAlias(strict=false,target=es2015).symbols} (100%) rename tests/baselines/reference/{metadataOfClassFromAlias(strict=false).types => metadataOfClassFromAlias(strict=false,target=es2015).types} (100%) rename tests/baselines/reference/{metadataOfClassFromAlias(strict=false).js => metadataOfClassFromAlias(strict=false,target=es5).js} (100%) rename tests/baselines/reference/{metadataOfClassFromAlias(strict=true).symbols => metadataOfClassFromAlias(strict=false,target=es5).symbols} (100%) create mode 100644 tests/baselines/reference/metadataOfClassFromAlias(strict=false,target=es5).types rename tests/baselines/reference/{metadataOfClassFromAlias(strict=true).errors.txt => metadataOfClassFromAlias(strict=true,target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/metadataOfClassFromAlias(strict=true,target=es2015).js create mode 100644 tests/baselines/reference/metadataOfClassFromAlias(strict=true,target=es2015).symbols rename tests/baselines/reference/{metadataOfClassFromAlias(strict=true).types => metadataOfClassFromAlias(strict=true,target=es2015).types} (100%) create mode 100644 tests/baselines/reference/metadataOfClassFromAlias(strict=true,target=es5).errors.txt rename tests/baselines/reference/{metadataOfClassFromAlias(strict=true).js => metadataOfClassFromAlias(strict=true,target=es5).js} (100%) create mode 100644 tests/baselines/reference/metadataOfClassFromAlias(strict=true,target=es5).symbols create mode 100644 tests/baselines/reference/metadataOfClassFromAlias(strict=true,target=es5).types create mode 100644 tests/baselines/reference/metadataOfClassFromAlias2(target=es2015).js rename tests/baselines/reference/{metadataOfClassFromAlias2.symbols => metadataOfClassFromAlias2(target=es2015).symbols} (100%) rename tests/baselines/reference/{metadataOfClassFromAlias2.types => metadataOfClassFromAlias2(target=es2015).types} (100%) rename tests/baselines/reference/{metadataOfClassFromAlias2.js => metadataOfClassFromAlias2(target=es5).js} (100%) create mode 100644 tests/baselines/reference/metadataOfClassFromAlias2(target=es5).symbols create mode 100644 tests/baselines/reference/metadataOfClassFromAlias2(target=es5).types create mode 100644 tests/baselines/reference/metadataOfClassFromModule(target=es2015).js rename tests/baselines/reference/{metadataOfClassFromModule.symbols => metadataOfClassFromModule(target=es2015).symbols} (100%) rename tests/baselines/reference/{metadataOfClassFromModule.types => metadataOfClassFromModule(target=es2015).types} (100%) rename tests/baselines/reference/{metadataOfClassFromModule.js => metadataOfClassFromModule(target=es5).js} (100%) create mode 100644 tests/baselines/reference/metadataOfClassFromModule(target=es5).symbols create mode 100644 tests/baselines/reference/metadataOfClassFromModule(target=es5).types create mode 100644 tests/baselines/reference/metadataOfEventAlias(target=es2015).js rename tests/baselines/reference/{metadataOfEventAlias.symbols => metadataOfEventAlias(target=es2015).symbols} (100%) rename tests/baselines/reference/{metadataOfEventAlias.types => metadataOfEventAlias(target=es2015).types} (100%) rename tests/baselines/reference/{metadataOfEventAlias.js => metadataOfEventAlias(target=es5).js} (100%) create mode 100644 tests/baselines/reference/metadataOfEventAlias(target=es5).symbols create mode 100644 tests/baselines/reference/metadataOfEventAlias(target=es5).types create mode 100644 tests/baselines/reference/metadataReferencedWithinFilteredUnion(strictnullchecks=false,target=es2015).js rename tests/baselines/reference/{metadataReferencedWithinFilteredUnion(strictnullchecks=false).symbols => metadataReferencedWithinFilteredUnion(strictnullchecks=false,target=es2015).symbols} (100%) rename tests/baselines/reference/{metadataReferencedWithinFilteredUnion(strictnullchecks=false).types => metadataReferencedWithinFilteredUnion(strictnullchecks=false,target=es2015).types} (100%) rename tests/baselines/reference/{metadataReferencedWithinFilteredUnion(strictnullchecks=false).js => metadataReferencedWithinFilteredUnion(strictnullchecks=false,target=es5).js} (100%) rename tests/baselines/reference/{metadataReferencedWithinFilteredUnion(strictnullchecks=true).symbols => metadataReferencedWithinFilteredUnion(strictnullchecks=false,target=es5).symbols} (100%) create mode 100644 tests/baselines/reference/metadataReferencedWithinFilteredUnion(strictnullchecks=false,target=es5).types rename tests/baselines/reference/{metadataReferencedWithinFilteredUnion(strictnullchecks=true).errors.txt => metadataReferencedWithinFilteredUnion(strictnullchecks=true,target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/metadataReferencedWithinFilteredUnion(strictnullchecks=true,target=es2015).js create mode 100644 tests/baselines/reference/metadataReferencedWithinFilteredUnion(strictnullchecks=true,target=es2015).symbols rename tests/baselines/reference/{metadataReferencedWithinFilteredUnion(strictnullchecks=true).types => metadataReferencedWithinFilteredUnion(strictnullchecks=true,target=es2015).types} (100%) create mode 100644 tests/baselines/reference/metadataReferencedWithinFilteredUnion(strictnullchecks=true,target=es5).errors.txt rename tests/baselines/reference/{metadataReferencedWithinFilteredUnion(strictnullchecks=true).js => metadataReferencedWithinFilteredUnion(strictnullchecks=true,target=es5).js} (100%) create mode 100644 tests/baselines/reference/metadataReferencedWithinFilteredUnion(strictnullchecks=true,target=es5).symbols create mode 100644 tests/baselines/reference/metadataReferencedWithinFilteredUnion(strictnullchecks=true,target=es5).types create mode 100644 tests/baselines/reference/methodContainingLocalFunction(target=es2015).js rename tests/baselines/reference/{methodContainingLocalFunction.symbols => methodContainingLocalFunction(target=es2015).symbols} (100%) rename tests/baselines/reference/{methodContainingLocalFunction.types => methodContainingLocalFunction(target=es2015).types} (100%) rename tests/baselines/reference/{methodContainingLocalFunction.js => methodContainingLocalFunction(target=es5).js} (100%) create mode 100644 tests/baselines/reference/methodContainingLocalFunction(target=es5).symbols create mode 100644 tests/baselines/reference/methodContainingLocalFunction(target=es5).types rename tests/baselines/reference/{missingDecoratorType.errors.txt => missingDecoratorType(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/missingDecoratorType(target=es2015).js rename tests/baselines/reference/{missingDecoratorType.symbols => missingDecoratorType(target=es2015).symbols} (100%) rename tests/baselines/reference/{missingDecoratorType.types => missingDecoratorType(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/missingDecoratorType(target=es5).errors.txt rename tests/baselines/reference/{missingDecoratorType.js => missingDecoratorType(target=es5).js} (100%) create mode 100644 tests/baselines/reference/missingDecoratorType(target=es5).symbols create mode 100644 tests/baselines/reference/missingDecoratorType(target=es5).types create mode 100644 tests/baselines/reference/modifierParenCast(target=es2015).js rename tests/baselines/reference/{modifierParenCast.symbols => modifierParenCast(target=es2015).symbols} (100%) rename tests/baselines/reference/{modifierParenCast.types => modifierParenCast(target=es2015).types} (100%) rename tests/baselines/reference/{modifierParenCast.js => modifierParenCast(target=es5).js} (100%) create mode 100644 tests/baselines/reference/modifierParenCast(target=es5).symbols create mode 100644 tests/baselines/reference/modifierParenCast(target=es5).types rename tests/baselines/reference/{modularizeLibrary_ErrorFromUsingES6ArrayWithOnlyES6ArrayLib.errors.txt => modularizeLibrary_ErrorFromUsingES6ArrayWithOnlyES6ArrayLib(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{modularizeLibrary_ErrorFromUsingES6ArrayWithOnlyES6ArrayLib.js => modularizeLibrary_ErrorFromUsingES6ArrayWithOnlyES6ArrayLib(target=es2015).js} (100%) rename tests/baselines/reference/{modularizeLibrary_ErrorFromUsingES6ArrayWithOnlyES6ArrayLib.symbols => modularizeLibrary_ErrorFromUsingES6ArrayWithOnlyES6ArrayLib(target=es2015).symbols} (100%) rename tests/baselines/reference/{modularizeLibrary_ErrorFromUsingES6ArrayWithOnlyES6ArrayLib.types => modularizeLibrary_ErrorFromUsingES6ArrayWithOnlyES6ArrayLib(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/modularizeLibrary_ErrorFromUsingES6ArrayWithOnlyES6ArrayLib(target=es5).errors.txt create mode 100644 tests/baselines/reference/modularizeLibrary_ErrorFromUsingES6ArrayWithOnlyES6ArrayLib(target=es5).js create mode 100644 tests/baselines/reference/modularizeLibrary_ErrorFromUsingES6ArrayWithOnlyES6ArrayLib(target=es5).symbols create mode 100644 tests/baselines/reference/modularizeLibrary_ErrorFromUsingES6ArrayWithOnlyES6ArrayLib(target=es5).types rename tests/baselines/reference/{modularizeLibrary_UsingES5LibAndES6ArrayLib.js => modularizeLibrary_UsingES5LibAndES6ArrayLib(target=es2015).js} (100%) rename tests/baselines/reference/{modularizeLibrary_UsingES5LibAndES6ArrayLib.symbols => modularizeLibrary_UsingES5LibAndES6ArrayLib(target=es2015).symbols} (100%) rename tests/baselines/reference/{modularizeLibrary_UsingES5LibAndES6ArrayLib.types => modularizeLibrary_UsingES5LibAndES6ArrayLib(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/modularizeLibrary_UsingES5LibAndES6ArrayLib(target=es5).js create mode 100644 tests/baselines/reference/modularizeLibrary_UsingES5LibAndES6ArrayLib(target=es5).symbols create mode 100644 tests/baselines/reference/modularizeLibrary_UsingES5LibAndES6ArrayLib(target=es5).types rename tests/baselines/reference/{moduleAugmentationGlobal8.errors.txt => moduleAugmentationGlobal8(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{moduleAugmentationGlobal8.js => moduleAugmentationGlobal8(target=es2015).js} (100%) rename tests/baselines/reference/{moduleAugmentationGlobal8.symbols => moduleAugmentationGlobal8(target=es2015).symbols} (100%) rename tests/baselines/reference/{moduleAugmentationGlobal8.types => moduleAugmentationGlobal8(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/moduleAugmentationGlobal8(target=es5).errors.txt create mode 100644 tests/baselines/reference/moduleAugmentationGlobal8(target=es5).js create mode 100644 tests/baselines/reference/moduleAugmentationGlobal8(target=es5).symbols create mode 100644 tests/baselines/reference/moduleAugmentationGlobal8(target=es5).types rename tests/baselines/reference/{moduleAugmentationGlobal8_1.errors.txt => moduleAugmentationGlobal8_1(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{moduleAugmentationGlobal8_1.js => moduleAugmentationGlobal8_1(target=es2015).js} (100%) rename tests/baselines/reference/{moduleAugmentationGlobal8_1.symbols => moduleAugmentationGlobal8_1(target=es2015).symbols} (100%) rename tests/baselines/reference/{moduleAugmentationGlobal8_1.types => moduleAugmentationGlobal8_1(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/moduleAugmentationGlobal8_1(target=es5).errors.txt create mode 100644 tests/baselines/reference/moduleAugmentationGlobal8_1(target=es5).js create mode 100644 tests/baselines/reference/moduleAugmentationGlobal8_1(target=es5).symbols create mode 100644 tests/baselines/reference/moduleAugmentationGlobal8_1(target=es5).types rename tests/baselines/reference/{moduleAugmentationsBundledOutput1.errors.txt => moduleAugmentationsBundledOutput1(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/moduleAugmentationsBundledOutput1(target=es2015).js rename tests/baselines/reference/{moduleAugmentationsBundledOutput1.symbols => moduleAugmentationsBundledOutput1(target=es2015).symbols} (100%) rename tests/baselines/reference/{moduleAugmentationsBundledOutput1.types => moduleAugmentationsBundledOutput1(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/moduleAugmentationsBundledOutput1(target=es5).errors.txt rename tests/baselines/reference/{moduleAugmentationsBundledOutput1.js => moduleAugmentationsBundledOutput1(target=es5).js} (100%) create mode 100644 tests/baselines/reference/moduleAugmentationsBundledOutput1(target=es5).symbols create mode 100644 tests/baselines/reference/moduleAugmentationsBundledOutput1(target=es5).types create mode 100644 tests/baselines/reference/moduledecl(target=es2015).js rename tests/baselines/reference/{moduledecl.symbols => moduledecl(target=es2015).symbols} (100%) rename tests/baselines/reference/{moduledecl.types => moduledecl(target=es2015).types} (100%) rename tests/baselines/reference/{moduledecl.js => moduledecl(target=es5).js} (100%) create mode 100644 tests/baselines/reference/moduledecl(target=es5).symbols create mode 100644 tests/baselines/reference/moduledecl(target=es5).types rename tests/baselines/reference/{multipleDefaultExports01.errors.txt => multipleDefaultExports01(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/multipleDefaultExports01(target=es2015).js rename tests/baselines/reference/{multipleDefaultExports01.symbols => multipleDefaultExports01(target=es2015).symbols} (100%) rename tests/baselines/reference/{multipleDefaultExports01.types => multipleDefaultExports01(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/multipleDefaultExports01(target=es5).errors.txt rename tests/baselines/reference/{multipleDefaultExports01.js => multipleDefaultExports01(target=es5).js} (100%) create mode 100644 tests/baselines/reference/multipleDefaultExports01(target=es5).symbols create mode 100644 tests/baselines/reference/multipleDefaultExports01(target=es5).types rename tests/baselines/reference/{multipleDefaultExports02.errors.txt => multipleDefaultExports02(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/multipleDefaultExports02(target=es2015).js rename tests/baselines/reference/{multipleDefaultExports02.symbols => multipleDefaultExports02(target=es2015).symbols} (100%) rename tests/baselines/reference/{multipleDefaultExports02.types => multipleDefaultExports02(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/multipleDefaultExports02(target=es5).errors.txt rename tests/baselines/reference/{multipleDefaultExports02.js => multipleDefaultExports02(target=es5).js} (100%) create mode 100644 tests/baselines/reference/multipleDefaultExports02(target=es5).symbols create mode 100644 tests/baselines/reference/multipleDefaultExports02(target=es5).types rename tests/baselines/reference/{multipleDefaultExports03.errors.txt => multipleDefaultExports03(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/multipleDefaultExports03(target=es2015).js rename tests/baselines/reference/{multipleDefaultExports03.symbols => multipleDefaultExports03(target=es2015).symbols} (100%) rename tests/baselines/reference/{multipleDefaultExports03.types => multipleDefaultExports03(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/multipleDefaultExports03(target=es5).errors.txt rename tests/baselines/reference/{multipleDefaultExports03.js => multipleDefaultExports03(target=es5).js} (100%) create mode 100644 tests/baselines/reference/multipleDefaultExports03(target=es5).symbols create mode 100644 tests/baselines/reference/multipleDefaultExports03(target=es5).types rename tests/baselines/reference/{multipleDefaultExports04.errors.txt => multipleDefaultExports04(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{multipleDefaultExports04.js => multipleDefaultExports04(target=es2015).js} (100%) rename tests/baselines/reference/{multipleDefaultExports04.symbols => multipleDefaultExports04(target=es2015).symbols} (100%) rename tests/baselines/reference/{multipleDefaultExports04.types => multipleDefaultExports04(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/multipleDefaultExports04(target=es5).errors.txt create mode 100644 tests/baselines/reference/multipleDefaultExports04(target=es5).js create mode 100644 tests/baselines/reference/multipleDefaultExports04(target=es5).symbols create mode 100644 tests/baselines/reference/multipleDefaultExports04(target=es5).types rename tests/baselines/reference/{multipleDefaultExports05.errors.txt => multipleDefaultExports05(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/multipleDefaultExports05(target=es2015).js rename tests/baselines/reference/{multipleDefaultExports05.symbols => multipleDefaultExports05(target=es2015).symbols} (100%) rename tests/baselines/reference/{multipleDefaultExports05.types => multipleDefaultExports05(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/multipleDefaultExports05(target=es5).errors.txt rename tests/baselines/reference/{multipleDefaultExports05.js => multipleDefaultExports05(target=es5).js} (100%) create mode 100644 tests/baselines/reference/multipleDefaultExports05(target=es5).symbols create mode 100644 tests/baselines/reference/multipleDefaultExports05(target=es5).types create mode 100644 tests/baselines/reference/nestedLoopWithOnlyInnerLetCaptured(target=es2015).js rename tests/baselines/reference/{nestedLoopWithOnlyInnerLetCaptured.symbols => nestedLoopWithOnlyInnerLetCaptured(target=es2015).symbols} (100%) rename tests/baselines/reference/{nestedLoopWithOnlyInnerLetCaptured.types => nestedLoopWithOnlyInnerLetCaptured(target=es2015).types} (100%) rename tests/baselines/reference/{nestedLoopWithOnlyInnerLetCaptured.js => nestedLoopWithOnlyInnerLetCaptured(target=es5).js} (100%) create mode 100644 tests/baselines/reference/nestedLoopWithOnlyInnerLetCaptured(target=es5).symbols create mode 100644 tests/baselines/reference/nestedLoopWithOnlyInnerLetCaptured(target=es5).types create mode 100644 tests/baselines/reference/nestedLoops(target=es2015).js rename tests/baselines/reference/{nestedLoops.symbols => nestedLoops(target=es2015).symbols} (100%) rename tests/baselines/reference/{nestedLoops.types => nestedLoops(target=es2015).types} (100%) rename tests/baselines/reference/{nestedLoops.js => nestedLoops(target=es5).js} (100%) create mode 100644 tests/baselines/reference/nestedLoops(target=es5).symbols create mode 100644 tests/baselines/reference/nestedLoops(target=es5).types create mode 100644 tests/baselines/reference/nestedSuperCallEmit(target=es2015).js rename tests/baselines/reference/{nestedSuperCallEmit.js => nestedSuperCallEmit(target=es5).js} (100%) create mode 100644 tests/baselines/reference/newLexicalEnvironmentForConvertedLoop(target=es2015).js rename tests/baselines/reference/{newLexicalEnvironmentForConvertedLoop.symbols => newLexicalEnvironmentForConvertedLoop(target=es2015).symbols} (100%) rename tests/baselines/reference/{newLexicalEnvironmentForConvertedLoop.types => newLexicalEnvironmentForConvertedLoop(target=es2015).types} (100%) rename tests/baselines/reference/{newLexicalEnvironmentForConvertedLoop.js => newLexicalEnvironmentForConvertedLoop(target=es5).js} (100%) create mode 100644 tests/baselines/reference/newLexicalEnvironmentForConvertedLoop(target=es5).symbols create mode 100644 tests/baselines/reference/newLexicalEnvironmentForConvertedLoop(target=es5).types create mode 100644 tests/baselines/reference/newTarget.es5(target=es2015).js rename tests/baselines/reference/{newTarget.es5.symbols => newTarget.es5(target=es2015).symbols} (100%) rename tests/baselines/reference/{newTarget.es5.types => newTarget.es5(target=es2015).types} (100%) rename tests/baselines/reference/{newTarget.es5.js => newTarget.es5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/newTarget.es5(target=es5).symbols create mode 100644 tests/baselines/reference/newTarget.es5(target=es5).types create mode 100644 tests/baselines/reference/newWithSpreadES5(target=es2015).js rename tests/baselines/reference/{newWithSpreadES5.symbols => newWithSpreadES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{newWithSpreadES5.types => newWithSpreadES5(target=es2015).types} (100%) rename tests/baselines/reference/{newWithSpreadES5.js => newWithSpreadES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/newWithSpreadES5(target=es5).symbols create mode 100644 tests/baselines/reference/newWithSpreadES5(target=es5).types create mode 100644 tests/baselines/reference/noEmitHelpers2(target=es2015).js rename tests/baselines/reference/{noEmitHelpers2.symbols => noEmitHelpers2(target=es2015).symbols} (100%) rename tests/baselines/reference/{noEmitHelpers2.types => noEmitHelpers2(target=es2015).types} (100%) rename tests/baselines/reference/{noEmitHelpers2.js => noEmitHelpers2(target=es5).js} (100%) create mode 100644 tests/baselines/reference/noEmitHelpers2(target=es5).symbols create mode 100644 tests/baselines/reference/noEmitHelpers2(target=es5).types rename tests/baselines/reference/{noImplicitAnyMissingGetAccessor.errors.txt => noImplicitAnyMissingGetAccessor(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/noImplicitAnyMissingGetAccessor(target=es2015).js rename tests/baselines/reference/{noImplicitAnyMissingGetAccessor.symbols => noImplicitAnyMissingGetAccessor(target=es2015).symbols} (100%) rename tests/baselines/reference/{noImplicitAnyMissingGetAccessor.types => noImplicitAnyMissingGetAccessor(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/noImplicitAnyMissingGetAccessor(target=es5).errors.txt rename tests/baselines/reference/{noImplicitAnyMissingGetAccessor.js => noImplicitAnyMissingGetAccessor(target=es5).js} (100%) create mode 100644 tests/baselines/reference/noImplicitAnyMissingGetAccessor(target=es5).symbols create mode 100644 tests/baselines/reference/noImplicitAnyMissingGetAccessor(target=es5).types rename tests/baselines/reference/{noImplicitAnyMissingSetAccessor.errors.txt => noImplicitAnyMissingSetAccessor(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/noImplicitAnyMissingSetAccessor(target=es2015).js rename tests/baselines/reference/{noImplicitAnyMissingSetAccessor.symbols => noImplicitAnyMissingSetAccessor(target=es2015).symbols} (100%) rename tests/baselines/reference/{noImplicitAnyMissingSetAccessor.types => noImplicitAnyMissingSetAccessor(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/noImplicitAnyMissingSetAccessor(target=es5).errors.txt rename tests/baselines/reference/{noImplicitAnyMissingSetAccessor.js => noImplicitAnyMissingSetAccessor(target=es5).js} (100%) create mode 100644 tests/baselines/reference/noImplicitAnyMissingSetAccessor(target=es5).symbols create mode 100644 tests/baselines/reference/noImplicitAnyMissingSetAccessor(target=es5).types rename tests/baselines/reference/{nodeModulesAllowJsImportHelpersCollisions3(module=node16).errors.txt => nodeModulesAllowJsImportHelpersCollisions3(module=node16,target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node16,target=es2015).js rename tests/baselines/reference/{nodeModulesAllowJsImportHelpersCollisions3(module=node16).symbols => nodeModulesAllowJsImportHelpersCollisions3(module=node16,target=es2015).symbols} (100%) rename tests/baselines/reference/{nodeModulesAllowJsImportHelpersCollisions3(module=node16).types => nodeModulesAllowJsImportHelpersCollisions3(module=node16,target=es2015).types} (100%) rename tests/baselines/reference/{nodeModulesAllowJsImportHelpersCollisions3(module=node18).errors.txt => nodeModulesAllowJsImportHelpersCollisions3(module=node16,target=es5).errors.txt} (100%) rename tests/baselines/reference/{nodeModulesAllowJsImportHelpersCollisions3(module=node16).js => nodeModulesAllowJsImportHelpersCollisions3(module=node16,target=es5).js} (100%) rename tests/baselines/reference/{nodeModulesAllowJsImportHelpersCollisions3(module=node18).symbols => nodeModulesAllowJsImportHelpersCollisions3(module=node16,target=es5).symbols} (100%) rename tests/baselines/reference/{nodeModulesAllowJsImportHelpersCollisions3(module=node18).types => nodeModulesAllowJsImportHelpersCollisions3(module=node16,target=es5).types} (100%) rename tests/baselines/reference/{nodeModulesAllowJsImportHelpersCollisions3(module=node20).errors.txt => nodeModulesAllowJsImportHelpersCollisions3(module=node18,target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node18,target=es2015).js rename tests/baselines/reference/{nodeModulesAllowJsImportHelpersCollisions3(module=node20).symbols => nodeModulesAllowJsImportHelpersCollisions3(module=node18,target=es2015).symbols} (100%) rename tests/baselines/reference/{nodeModulesAllowJsImportHelpersCollisions3(module=node20).types => nodeModulesAllowJsImportHelpersCollisions3(module=node18,target=es2015).types} (100%) rename tests/baselines/reference/{nodeModulesAllowJsImportHelpersCollisions3(module=nodenext).errors.txt => nodeModulesAllowJsImportHelpersCollisions3(module=node18,target=es5).errors.txt} (100%) rename tests/baselines/reference/{nodeModulesAllowJsImportHelpersCollisions3(module=node18).js => nodeModulesAllowJsImportHelpersCollisions3(module=node18,target=es5).js} (100%) rename tests/baselines/reference/{nodeModulesAllowJsImportHelpersCollisions3(module=nodenext).symbols => nodeModulesAllowJsImportHelpersCollisions3(module=node18,target=es5).symbols} (100%) rename tests/baselines/reference/{nodeModulesAllowJsImportHelpersCollisions3(module=nodenext).types => nodeModulesAllowJsImportHelpersCollisions3(module=node18,target=es5).types} (100%) create mode 100644 tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node20,target=es2015).errors.txt create mode 100644 tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node20,target=es2015).js create mode 100644 tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node20,target=es2015).symbols create mode 100644 tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node20,target=es2015).types create mode 100644 tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node20,target=es5).errors.txt rename tests/baselines/reference/{nodeModulesAllowJsImportHelpersCollisions3(module=node20).js => nodeModulesAllowJsImportHelpersCollisions3(module=node20,target=es5).js} (100%) create mode 100644 tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node20,target=es5).symbols create mode 100644 tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node20,target=es5).types create mode 100644 tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=nodenext,target=es2015).errors.txt create mode 100644 tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=nodenext,target=es2015).js create mode 100644 tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=nodenext,target=es2015).symbols create mode 100644 tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=nodenext,target=es2015).types create mode 100644 tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=nodenext,target=es5).errors.txt rename tests/baselines/reference/{nodeModulesAllowJsImportHelpersCollisions3(module=nodenext).js => nodeModulesAllowJsImportHelpersCollisions3(module=nodenext,target=es5).js} (100%) create mode 100644 tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=nodenext,target=es5).symbols create mode 100644 tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=nodenext,target=es5).types rename tests/baselines/reference/{nodeModulesImportHelpersCollisions3(module=node16).errors.txt => nodeModulesImportHelpersCollisions3(module=node16,target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node16,target=es2015).js rename tests/baselines/reference/{nodeModulesImportHelpersCollisions3(module=node16).symbols => nodeModulesImportHelpersCollisions3(module=node16,target=es2015).symbols} (100%) rename tests/baselines/reference/{nodeModulesImportHelpersCollisions3(module=node16).types => nodeModulesImportHelpersCollisions3(module=node16,target=es2015).types} (100%) rename tests/baselines/reference/{nodeModulesImportHelpersCollisions3(module=node18).errors.txt => nodeModulesImportHelpersCollisions3(module=node16,target=es5).errors.txt} (100%) rename tests/baselines/reference/{nodeModulesImportHelpersCollisions3(module=node16).js => nodeModulesImportHelpersCollisions3(module=node16,target=es5).js} (100%) rename tests/baselines/reference/{nodeModulesImportHelpersCollisions3(module=node18).symbols => nodeModulesImportHelpersCollisions3(module=node16,target=es5).symbols} (100%) rename tests/baselines/reference/{nodeModulesImportHelpersCollisions3(module=node18).types => nodeModulesImportHelpersCollisions3(module=node16,target=es5).types} (100%) rename tests/baselines/reference/{nodeModulesImportHelpersCollisions3(module=node20).errors.txt => nodeModulesImportHelpersCollisions3(module=node18,target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node18,target=es2015).js rename tests/baselines/reference/{nodeModulesImportHelpersCollisions3(module=node20).symbols => nodeModulesImportHelpersCollisions3(module=node18,target=es2015).symbols} (100%) rename tests/baselines/reference/{nodeModulesImportHelpersCollisions3(module=node20).types => nodeModulesImportHelpersCollisions3(module=node18,target=es2015).types} (100%) rename tests/baselines/reference/{nodeModulesImportHelpersCollisions3(module=nodenext).errors.txt => nodeModulesImportHelpersCollisions3(module=node18,target=es5).errors.txt} (100%) rename tests/baselines/reference/{nodeModulesImportHelpersCollisions3(module=node18).js => nodeModulesImportHelpersCollisions3(module=node18,target=es5).js} (100%) rename tests/baselines/reference/{nodeModulesImportHelpersCollisions3(module=nodenext).symbols => nodeModulesImportHelpersCollisions3(module=node18,target=es5).symbols} (100%) rename tests/baselines/reference/{nodeModulesImportHelpersCollisions3(module=nodenext).types => nodeModulesImportHelpersCollisions3(module=node18,target=es5).types} (100%) create mode 100644 tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node20,target=es2015).errors.txt create mode 100644 tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node20,target=es2015).js create mode 100644 tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node20,target=es2015).symbols create mode 100644 tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node20,target=es2015).types create mode 100644 tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node20,target=es5).errors.txt rename tests/baselines/reference/{nodeModulesImportHelpersCollisions3(module=node20).js => nodeModulesImportHelpersCollisions3(module=node20,target=es5).js} (100%) create mode 100644 tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node20,target=es5).symbols create mode 100644 tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node20,target=es5).types create mode 100644 tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=nodenext,target=es2015).errors.txt create mode 100644 tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=nodenext,target=es2015).js create mode 100644 tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=nodenext,target=es2015).symbols create mode 100644 tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=nodenext,target=es2015).types create mode 100644 tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=nodenext,target=es5).errors.txt rename tests/baselines/reference/{nodeModulesImportHelpersCollisions3(module=nodenext).js => nodeModulesImportHelpersCollisions3(module=nodenext,target=es5).js} (100%) create mode 100644 tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=nodenext,target=es5).symbols create mode 100644 tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=nodenext,target=es5).types rename tests/baselines/reference/{objectLiteralErrors.errors.txt => objectLiteralErrors(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/objectLiteralErrors(target=es2015).js rename tests/baselines/reference/{objectLiteralErrors.symbols => objectLiteralErrors(target=es2015).symbols} (100%) rename tests/baselines/reference/{objectLiteralErrors.types => objectLiteralErrors(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/objectLiteralErrors(target=es5).errors.txt rename tests/baselines/reference/{objectLiteralErrors.js => objectLiteralErrors(target=es5).js} (100%) create mode 100644 tests/baselines/reference/objectLiteralErrors(target=es5).symbols create mode 100644 tests/baselines/reference/objectLiteralErrors(target=es5).types create mode 100644 tests/baselines/reference/objectLiteralShorthandProperties(target=es2015).js rename tests/baselines/reference/{objectLiteralShorthandProperties.symbols => objectLiteralShorthandProperties(target=es2015).symbols} (100%) rename tests/baselines/reference/{objectLiteralShorthandProperties.types => objectLiteralShorthandProperties(target=es2015).types} (100%) rename tests/baselines/reference/{objectLiteralShorthandProperties.js => objectLiteralShorthandProperties(target=es5).js} (100%) create mode 100644 tests/baselines/reference/objectLiteralShorthandProperties(target=es5).symbols create mode 100644 tests/baselines/reference/objectLiteralShorthandProperties(target=es5).types create mode 100644 tests/baselines/reference/objectRestParameterES5(target=es2015).js rename tests/baselines/reference/{objectRestParameterES5.symbols => objectRestParameterES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{objectRestParameterES5.types => objectRestParameterES5(target=es2015).types} (100%) rename tests/baselines/reference/{objectRestParameterES5.js => objectRestParameterES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/objectRestParameterES5(target=es5).symbols create mode 100644 tests/baselines/reference/objectRestParameterES5(target=es5).types create mode 100644 tests/baselines/reference/objectSpread(target=es2015).js rename tests/baselines/reference/{objectSpread.symbols => objectSpread(target=es2015).symbols} (100%) rename tests/baselines/reference/{objectSpread.types => objectSpread(target=es2015).types} (100%) rename tests/baselines/reference/{objectSpread.js => objectSpread(target=es5).js} (100%) create mode 100644 tests/baselines/reference/objectSpread(target=es5).symbols create mode 100644 tests/baselines/reference/objectSpread(target=es5).types rename tests/baselines/reference/{objectSpreadNegative.errors.txt => objectSpreadNegative(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/objectSpreadNegative(target=es2015).js rename tests/baselines/reference/{objectSpreadNegative.symbols => objectSpreadNegative(target=es2015).symbols} (100%) rename tests/baselines/reference/{objectSpreadNegative.types => objectSpreadNegative(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/objectSpreadNegative(target=es5).errors.txt rename tests/baselines/reference/{objectSpreadNegative.js => objectSpreadNegative(target=es5).js} (100%) create mode 100644 tests/baselines/reference/objectSpreadNegative(target=es5).symbols create mode 100644 tests/baselines/reference/objectSpreadNegative(target=es5).types rename tests/baselines/reference/{objectTypeWithStringNamedNumericProperty.errors.txt => objectTypeWithStringNamedNumericProperty(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/objectTypeWithStringNamedNumericProperty(target=es2015).js rename tests/baselines/reference/{objectTypeWithStringNamedNumericProperty.symbols => objectTypeWithStringNamedNumericProperty(target=es2015).symbols} (100%) rename tests/baselines/reference/{objectTypeWithStringNamedNumericProperty.types => objectTypeWithStringNamedNumericProperty(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/objectTypeWithStringNamedNumericProperty(target=es5).errors.txt rename tests/baselines/reference/{objectTypeWithStringNamedNumericProperty.js => objectTypeWithStringNamedNumericProperty(target=es5).js} (100%) create mode 100644 tests/baselines/reference/objectTypeWithStringNamedNumericProperty(target=es5).symbols create mode 100644 tests/baselines/reference/objectTypeWithStringNamedNumericProperty(target=es5).types create mode 100644 tests/baselines/reference/octalIntegerLiteral(target=es2015).js rename tests/baselines/reference/{octalIntegerLiteral.symbols => octalIntegerLiteral(target=es2015).symbols} (100%) rename tests/baselines/reference/{octalIntegerLiteral.types => octalIntegerLiteral(target=es2015).types} (100%) rename tests/baselines/reference/{octalIntegerLiteral.js => octalIntegerLiteral(target=es5).js} (100%) create mode 100644 tests/baselines/reference/octalIntegerLiteral(target=es5).symbols create mode 100644 tests/baselines/reference/octalIntegerLiteral(target=es5).types create mode 100644 tests/baselines/reference/optionalChainingInArrow(target=es2015).js rename tests/baselines/reference/{optionalChainingInArrow.js => optionalChainingInArrow(target=es5).js} (100%) create mode 100644 tests/baselines/reference/optionalChainingInLoop(target=es2015).js rename tests/baselines/reference/{optionalChainingInLoop.js => optionalChainingInLoop(target=es5).js} (100%) create mode 100644 tests/baselines/reference/out-flag(target=es2015).js create mode 100644 tests/baselines/reference/out-flag(target=es2015).js.map create mode 100644 tests/baselines/reference/out-flag(target=es2015).sourcemap.txt rename tests/baselines/reference/{out-flag.symbols => out-flag(target=es2015).symbols} (100%) rename tests/baselines/reference/{out-flag.types => out-flag(target=es2015).types} (100%) rename tests/baselines/reference/{out-flag.js => out-flag(target=es5).js} (100%) rename tests/baselines/reference/{out-flag.js.map => out-flag(target=es5).js.map} (100%) rename tests/baselines/reference/{out-flag.sourcemap.txt => out-flag(target=es5).sourcemap.txt} (100%) create mode 100644 tests/baselines/reference/out-flag(target=es5).symbols create mode 100644 tests/baselines/reference/out-flag(target=es5).types rename tests/baselines/reference/{out-flag2.errors.txt => out-flag2(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/out-flag2(target=es2015).js create mode 100644 tests/baselines/reference/out-flag2(target=es2015).js.map create mode 100644 tests/baselines/reference/out-flag2(target=es2015).sourcemap.txt rename tests/baselines/reference/{out-flag2.symbols => out-flag2(target=es2015).symbols} (100%) rename tests/baselines/reference/{out-flag2.types => out-flag2(target=es2015).types} (100%) rename tests/baselines/reference/{out-flag3.errors.txt => out-flag2(target=es5).errors.txt} (100%) rename tests/baselines/reference/{out-flag2.js => out-flag2(target=es5).js} (100%) rename tests/baselines/reference/{out-flag2.js.map => out-flag2(target=es5).js.map} (100%) rename tests/baselines/reference/{out-flag2.sourcemap.txt => out-flag2(target=es5).sourcemap.txt} (100%) create mode 100644 tests/baselines/reference/out-flag2(target=es5).symbols create mode 100644 tests/baselines/reference/out-flag2(target=es5).types create mode 100644 tests/baselines/reference/out-flag3(target=es2015).errors.txt create mode 100644 tests/baselines/reference/out-flag3(target=es2015).js create mode 100644 tests/baselines/reference/out-flag3(target=es2015).js.map create mode 100644 tests/baselines/reference/out-flag3(target=es2015).sourcemap.txt rename tests/baselines/reference/{out-flag3.symbols => out-flag3(target=es2015).symbols} (100%) rename tests/baselines/reference/{out-flag3.types => out-flag3(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/out-flag3(target=es5).errors.txt rename tests/baselines/reference/{out-flag3.js => out-flag3(target=es5).js} (100%) rename tests/baselines/reference/{out-flag3.js.map => out-flag3(target=es5).js.map} (100%) rename tests/baselines/reference/{out-flag3.sourcemap.txt => out-flag3(target=es5).sourcemap.txt} (100%) create mode 100644 tests/baselines/reference/out-flag3(target=es5).symbols create mode 100644 tests/baselines/reference/out-flag3(target=es5).types rename tests/baselines/reference/{outModuleConcatAmd.errors.txt => outModuleConcatAmd(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/outModuleConcatAmd(target=es2015).js create mode 100644 tests/baselines/reference/outModuleConcatAmd(target=es2015).js.map create mode 100644 tests/baselines/reference/outModuleConcatAmd(target=es2015).sourcemap.txt rename tests/baselines/reference/{outModuleConcatAmd.symbols => outModuleConcatAmd(target=es2015).symbols} (100%) rename tests/baselines/reference/{outModuleConcatAmd.types => outModuleConcatAmd(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/outModuleConcatAmd(target=es5).errors.txt rename tests/baselines/reference/{outModuleConcatAmd.js => outModuleConcatAmd(target=es5).js} (100%) rename tests/baselines/reference/{outModuleConcatAmd.js.map => outModuleConcatAmd(target=es5).js.map} (100%) rename tests/baselines/reference/{outModuleConcatAmd.sourcemap.txt => outModuleConcatAmd(target=es5).sourcemap.txt} (100%) create mode 100644 tests/baselines/reference/outModuleConcatAmd(target=es5).symbols create mode 100644 tests/baselines/reference/outModuleConcatAmd(target=es5).types rename tests/baselines/reference/{outModuleConcatCommonjs.errors.txt => outModuleConcatCommonjs(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{outModuleConcatCommonjs.symbols => outModuleConcatCommonjs(target=es2015).symbols} (100%) rename tests/baselines/reference/{outModuleConcatCommonjs.types => outModuleConcatCommonjs(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/outModuleConcatCommonjs(target=es5).errors.txt create mode 100644 tests/baselines/reference/outModuleConcatCommonjs(target=es5).symbols create mode 100644 tests/baselines/reference/outModuleConcatCommonjs(target=es5).types rename tests/baselines/reference/{outModuleConcatCommonjsDeclarationOnly.errors.txt => outModuleConcatCommonjsDeclarationOnly(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{outModuleConcatCommonjsDeclarationOnly.js => outModuleConcatCommonjsDeclarationOnly(target=es2015).js} (100%) rename tests/baselines/reference/{outModuleConcatCommonjsDeclarationOnly.symbols => outModuleConcatCommonjsDeclarationOnly(target=es2015).symbols} (100%) rename tests/baselines/reference/{outModuleConcatCommonjsDeclarationOnly.types => outModuleConcatCommonjsDeclarationOnly(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/outModuleConcatCommonjsDeclarationOnly(target=es5).errors.txt create mode 100644 tests/baselines/reference/outModuleConcatCommonjsDeclarationOnly(target=es5).js create mode 100644 tests/baselines/reference/outModuleConcatCommonjsDeclarationOnly(target=es5).symbols create mode 100644 tests/baselines/reference/outModuleConcatCommonjsDeclarationOnly(target=es5).types rename tests/baselines/reference/{outModuleConcatSystem.errors.txt => outModuleConcatSystem(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/outModuleConcatSystem(target=es2015).js create mode 100644 tests/baselines/reference/outModuleConcatSystem(target=es2015).js.map create mode 100644 tests/baselines/reference/outModuleConcatSystem(target=es2015).sourcemap.txt rename tests/baselines/reference/{outModuleConcatSystem.symbols => outModuleConcatSystem(target=es2015).symbols} (100%) rename tests/baselines/reference/{outModuleConcatSystem.types => outModuleConcatSystem(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/outModuleConcatSystem(target=es5).errors.txt rename tests/baselines/reference/{outModuleConcatSystem.js => outModuleConcatSystem(target=es5).js} (100%) rename tests/baselines/reference/{outModuleConcatSystem.js.map => outModuleConcatSystem(target=es5).js.map} (100%) rename tests/baselines/reference/{outModuleConcatSystem.sourcemap.txt => outModuleConcatSystem(target=es5).sourcemap.txt} (100%) create mode 100644 tests/baselines/reference/outModuleConcatSystem(target=es5).symbols create mode 100644 tests/baselines/reference/outModuleConcatSystem(target=es5).types rename tests/baselines/reference/{outModuleConcatUmd.errors.txt => outModuleConcatUmd(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{outModuleConcatUmd.symbols => outModuleConcatUmd(target=es2015).symbols} (100%) rename tests/baselines/reference/{outModuleConcatUmd.types => outModuleConcatUmd(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/outModuleConcatUmd(target=es5).errors.txt create mode 100644 tests/baselines/reference/outModuleConcatUmd(target=es5).symbols create mode 100644 tests/baselines/reference/outModuleConcatUmd(target=es5).types rename tests/baselines/reference/{outModuleConcatUnspecifiedModuleKind.errors.txt => outModuleConcatUnspecifiedModuleKind(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{outModuleConcatUnspecifiedModuleKind.js => outModuleConcatUnspecifiedModuleKind(target=es2015).js} (100%) rename tests/baselines/reference/{outModuleConcatUnspecifiedModuleKind.symbols => outModuleConcatUnspecifiedModuleKind(target=es2015).symbols} (100%) rename tests/baselines/reference/{outModuleConcatUnspecifiedModuleKind.types => outModuleConcatUnspecifiedModuleKind(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/outModuleConcatUnspecifiedModuleKind(target=es5).errors.txt create mode 100644 tests/baselines/reference/outModuleConcatUnspecifiedModuleKind(target=es5).js create mode 100644 tests/baselines/reference/outModuleConcatUnspecifiedModuleKind(target=es5).symbols create mode 100644 tests/baselines/reference/outModuleConcatUnspecifiedModuleKind(target=es5).types rename tests/baselines/reference/{outModuleConcatUnspecifiedModuleKindDeclarationOnly.errors.txt => outModuleConcatUnspecifiedModuleKindDeclarationOnly(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{outModuleConcatUnspecifiedModuleKindDeclarationOnly.symbols => outModuleConcatUnspecifiedModuleKindDeclarationOnly(target=es2015).symbols} (100%) rename tests/baselines/reference/{outModuleConcatUnspecifiedModuleKindDeclarationOnly.types => outModuleConcatUnspecifiedModuleKindDeclarationOnly(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/outModuleConcatUnspecifiedModuleKindDeclarationOnly(target=es5).errors.txt create mode 100644 tests/baselines/reference/outModuleConcatUnspecifiedModuleKindDeclarationOnly(target=es5).symbols create mode 100644 tests/baselines/reference/outModuleConcatUnspecifiedModuleKindDeclarationOnly(target=es5).types rename tests/baselines/reference/{outModuleTripleSlashRefs.errors.txt => outModuleTripleSlashRefs(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/outModuleTripleSlashRefs(target=es2015).js create mode 100644 tests/baselines/reference/outModuleTripleSlashRefs(target=es2015).js.map create mode 100644 tests/baselines/reference/outModuleTripleSlashRefs(target=es2015).sourcemap.txt rename tests/baselines/reference/{outModuleTripleSlashRefs.symbols => outModuleTripleSlashRefs(target=es2015).symbols} (100%) rename tests/baselines/reference/{outModuleTripleSlashRefs.types => outModuleTripleSlashRefs(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/outModuleTripleSlashRefs(target=es5).errors.txt rename tests/baselines/reference/{outModuleTripleSlashRefs.js => outModuleTripleSlashRefs(target=es5).js} (100%) rename tests/baselines/reference/{outModuleTripleSlashRefs.js.map => outModuleTripleSlashRefs(target=es5).js.map} (100%) rename tests/baselines/reference/{outModuleTripleSlashRefs.sourcemap.txt => outModuleTripleSlashRefs(target=es5).sourcemap.txt} (100%) create mode 100644 tests/baselines/reference/outModuleTripleSlashRefs(target=es5).symbols create mode 100644 tests/baselines/reference/outModuleTripleSlashRefs(target=es5).types rename tests/baselines/reference/{parserAccessors1.errors.txt => parserAccessors1(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/parserAccessors1(target=es2015).js rename tests/baselines/reference/{parserAccessors1.symbols => parserAccessors1(target=es2015).symbols} (100%) rename tests/baselines/reference/{parserAccessors1.types => parserAccessors1(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/parserAccessors1(target=es5).errors.txt rename tests/baselines/reference/{parserAccessors1.js => parserAccessors1(target=es5).js} (100%) create mode 100644 tests/baselines/reference/parserAccessors1(target=es5).symbols create mode 100644 tests/baselines/reference/parserAccessors1(target=es5).types rename tests/baselines/reference/{parserAccessors10.errors.txt => parserAccessors10(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{parserAccessors10.js => parserAccessors10(target=es2015).js} (100%) rename tests/baselines/reference/{parserAccessors10.symbols => parserAccessors10(target=es2015).symbols} (100%) rename tests/baselines/reference/{parserAccessors10.types => parserAccessors10(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/parserAccessors10(target=es5).errors.txt create mode 100644 tests/baselines/reference/parserAccessors10(target=es5).js create mode 100644 tests/baselines/reference/parserAccessors10(target=es5).symbols create mode 100644 tests/baselines/reference/parserAccessors10(target=es5).types create mode 100644 tests/baselines/reference/parserAccessors2(target=es2015).js rename tests/baselines/reference/{parserAccessors2.symbols => parserAccessors2(target=es2015).symbols} (100%) rename tests/baselines/reference/{parserAccessors2.types => parserAccessors2(target=es2015).types} (100%) rename tests/baselines/reference/{parserAccessors2.js => parserAccessors2(target=es5).js} (100%) create mode 100644 tests/baselines/reference/parserAccessors2(target=es5).symbols create mode 100644 tests/baselines/reference/parserAccessors2(target=es5).types rename tests/baselines/reference/{parserAccessors3.errors.txt => parserAccessors3(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{parserAccessors3.js => parserAccessors3(target=es2015).js} (100%) rename tests/baselines/reference/{parserAccessors3.symbols => parserAccessors3(target=es2015).symbols} (100%) rename tests/baselines/reference/{parserAccessors3.types => parserAccessors3(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/parserAccessors3(target=es5).errors.txt create mode 100644 tests/baselines/reference/parserAccessors3(target=es5).js create mode 100644 tests/baselines/reference/parserAccessors3(target=es5).symbols create mode 100644 tests/baselines/reference/parserAccessors3(target=es5).types rename tests/baselines/reference/{parserAccessors4.js => parserAccessors4(target=es2015).js} (100%) rename tests/baselines/reference/{parserAccessors4.symbols => parserAccessors4(target=es2015).symbols} (100%) rename tests/baselines/reference/{parserAccessors4.types => parserAccessors4(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/parserAccessors4(target=es5).js create mode 100644 tests/baselines/reference/parserAccessors4(target=es5).symbols create mode 100644 tests/baselines/reference/parserAccessors4(target=es5).types rename tests/baselines/reference/{parserAccessors5.errors.txt => parserAccessors5(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{parserAccessors5.js => parserAccessors5(target=es2015).js} (100%) rename tests/baselines/reference/{parserAccessors5.symbols => parserAccessors5(target=es2015).symbols} (100%) rename tests/baselines/reference/{parserAccessors5.types => parserAccessors5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/parserAccessors5(target=es5).errors.txt create mode 100644 tests/baselines/reference/parserAccessors5(target=es5).js create mode 100644 tests/baselines/reference/parserAccessors5(target=es5).symbols create mode 100644 tests/baselines/reference/parserAccessors5(target=es5).types rename tests/baselines/reference/{parserAccessors6.errors.txt => parserAccessors6(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{parserAccessors6.js => parserAccessors6(target=es2015).js} (100%) rename tests/baselines/reference/{parserAccessors6.symbols => parserAccessors6(target=es2015).symbols} (100%) rename tests/baselines/reference/{parserAccessors6.types => parserAccessors6(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/parserAccessors6(target=es5).errors.txt create mode 100644 tests/baselines/reference/parserAccessors6(target=es5).js create mode 100644 tests/baselines/reference/parserAccessors6(target=es5).symbols create mode 100644 tests/baselines/reference/parserAccessors6(target=es5).types rename tests/baselines/reference/{parserAccessors7.errors.txt => parserAccessors7(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{parserAccessors7.js => parserAccessors7(target=es2015).js} (100%) rename tests/baselines/reference/{parserAccessors7.symbols => parserAccessors7(target=es2015).symbols} (100%) rename tests/baselines/reference/{parserAccessors7.types => parserAccessors7(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/parserAccessors7(target=es5).errors.txt create mode 100644 tests/baselines/reference/parserAccessors7(target=es5).js create mode 100644 tests/baselines/reference/parserAccessors7(target=es5).symbols create mode 100644 tests/baselines/reference/parserAccessors7(target=es5).types rename tests/baselines/reference/{parserAccessors8.errors.txt => parserAccessors8(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{parserAccessors8.js => parserAccessors8(target=es2015).js} (100%) rename tests/baselines/reference/{parserAccessors8.symbols => parserAccessors8(target=es2015).symbols} (100%) rename tests/baselines/reference/{parserAccessors8.types => parserAccessors8(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/parserAccessors8(target=es5).errors.txt create mode 100644 tests/baselines/reference/parserAccessors8(target=es5).js create mode 100644 tests/baselines/reference/parserAccessors8(target=es5).symbols create mode 100644 tests/baselines/reference/parserAccessors8(target=es5).types rename tests/baselines/reference/{parserAccessors9.errors.txt => parserAccessors9(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{parserAccessors9.js => parserAccessors9(target=es2015).js} (100%) rename tests/baselines/reference/{parserAccessors9.symbols => parserAccessors9(target=es2015).symbols} (100%) rename tests/baselines/reference/{parserAccessors9.types => parserAccessors9(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/parserAccessors9(target=es5).errors.txt create mode 100644 tests/baselines/reference/parserAccessors9(target=es5).js create mode 100644 tests/baselines/reference/parserAccessors9(target=es5).symbols create mode 100644 tests/baselines/reference/parserAccessors9(target=es5).types rename tests/baselines/reference/{parserES5ComputedPropertyName1.errors.txt => parserES5ComputedPropertyName1(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{parserES5ComputedPropertyName1.js => parserES5ComputedPropertyName1(target=es2015).js} (100%) rename tests/baselines/reference/{parserES5ComputedPropertyName1.symbols => parserES5ComputedPropertyName1(target=es2015).symbols} (100%) rename tests/baselines/reference/{parserES5ComputedPropertyName1.types => parserES5ComputedPropertyName1(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/parserES5ComputedPropertyName1(target=es5).errors.txt create mode 100644 tests/baselines/reference/parserES5ComputedPropertyName1(target=es5).js create mode 100644 tests/baselines/reference/parserES5ComputedPropertyName1(target=es5).symbols create mode 100644 tests/baselines/reference/parserES5ComputedPropertyName1(target=es5).types rename tests/baselines/reference/{parserES5ComputedPropertyName10.errors.txt => parserES5ComputedPropertyName10(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/parserES5ComputedPropertyName10(target=es2015).js rename tests/baselines/reference/{parserES5ComputedPropertyName10.symbols => parserES5ComputedPropertyName10(target=es2015).symbols} (100%) rename tests/baselines/reference/{parserES5ComputedPropertyName10.types => parserES5ComputedPropertyName10(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/parserES5ComputedPropertyName10(target=es5).errors.txt rename tests/baselines/reference/{parserES5ComputedPropertyName10.js => parserES5ComputedPropertyName10(target=es5).js} (100%) create mode 100644 tests/baselines/reference/parserES5ComputedPropertyName10(target=es5).symbols create mode 100644 tests/baselines/reference/parserES5ComputedPropertyName10(target=es5).types rename tests/baselines/reference/{parserES5ComputedPropertyName11.errors.txt => parserES5ComputedPropertyName11(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/parserES5ComputedPropertyName11(target=es2015).js rename tests/baselines/reference/{parserES5ComputedPropertyName11.symbols => parserES5ComputedPropertyName11(target=es2015).symbols} (100%) rename tests/baselines/reference/{parserES5ComputedPropertyName11.types => parserES5ComputedPropertyName11(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/parserES5ComputedPropertyName11(target=es5).errors.txt rename tests/baselines/reference/{parserES5ComputedPropertyName11.js => parserES5ComputedPropertyName11(target=es5).js} (100%) create mode 100644 tests/baselines/reference/parserES5ComputedPropertyName11(target=es5).symbols create mode 100644 tests/baselines/reference/parserES5ComputedPropertyName11(target=es5).types rename tests/baselines/reference/{parserES5ComputedPropertyName2.errors.txt => parserES5ComputedPropertyName2(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/parserES5ComputedPropertyName2(target=es2015).js rename tests/baselines/reference/{parserES5ComputedPropertyName2.symbols => parserES5ComputedPropertyName2(target=es2015).symbols} (100%) rename tests/baselines/reference/{parserES5ComputedPropertyName2.types => parserES5ComputedPropertyName2(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/parserES5ComputedPropertyName2(target=es5).errors.txt rename tests/baselines/reference/{parserES5ComputedPropertyName2.js => parserES5ComputedPropertyName2(target=es5).js} (100%) create mode 100644 tests/baselines/reference/parserES5ComputedPropertyName2(target=es5).symbols create mode 100644 tests/baselines/reference/parserES5ComputedPropertyName2(target=es5).types rename tests/baselines/reference/{parserES5ComputedPropertyName3.errors.txt => parserES5ComputedPropertyName3(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/parserES5ComputedPropertyName3(target=es2015).js rename tests/baselines/reference/{parserES5ComputedPropertyName3.symbols => parserES5ComputedPropertyName3(target=es2015).symbols} (100%) rename tests/baselines/reference/{parserES5ComputedPropertyName3.types => parserES5ComputedPropertyName3(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/parserES5ComputedPropertyName3(target=es5).errors.txt rename tests/baselines/reference/{parserES5ComputedPropertyName3.js => parserES5ComputedPropertyName3(target=es5).js} (100%) create mode 100644 tests/baselines/reference/parserES5ComputedPropertyName3(target=es5).symbols create mode 100644 tests/baselines/reference/parserES5ComputedPropertyName3(target=es5).types rename tests/baselines/reference/{parserES5ComputedPropertyName4.errors.txt => parserES5ComputedPropertyName4(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/parserES5ComputedPropertyName4(target=es2015).js rename tests/baselines/reference/{parserES5ComputedPropertyName4.symbols => parserES5ComputedPropertyName4(target=es2015).symbols} (100%) rename tests/baselines/reference/{parserES5ComputedPropertyName4.types => parserES5ComputedPropertyName4(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/parserES5ComputedPropertyName4(target=es5).errors.txt rename tests/baselines/reference/{parserES5ComputedPropertyName4.js => parserES5ComputedPropertyName4(target=es5).js} (100%) create mode 100644 tests/baselines/reference/parserES5ComputedPropertyName4(target=es5).symbols create mode 100644 tests/baselines/reference/parserES5ComputedPropertyName4(target=es5).types rename tests/baselines/reference/{parserES5ComputedPropertyName5.errors.txt => parserES5ComputedPropertyName5(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{parserES5ComputedPropertyName5.js => parserES5ComputedPropertyName5(target=es2015).js} (100%) rename tests/baselines/reference/{parserES5ComputedPropertyName5.symbols => parserES5ComputedPropertyName5(target=es2015).symbols} (100%) rename tests/baselines/reference/{parserES5ComputedPropertyName5.types => parserES5ComputedPropertyName5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/parserES5ComputedPropertyName5(target=es5).errors.txt create mode 100644 tests/baselines/reference/parserES5ComputedPropertyName5(target=es5).js create mode 100644 tests/baselines/reference/parserES5ComputedPropertyName5(target=es5).symbols create mode 100644 tests/baselines/reference/parserES5ComputedPropertyName5(target=es5).types rename tests/baselines/reference/{parserES5ComputedPropertyName6.errors.txt => parserES5ComputedPropertyName6(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{parserES5ComputedPropertyName6.js => parserES5ComputedPropertyName6(target=es2015).js} (100%) rename tests/baselines/reference/{parserES5ComputedPropertyName6.symbols => parserES5ComputedPropertyName6(target=es2015).symbols} (100%) rename tests/baselines/reference/{parserES5ComputedPropertyName6.types => parserES5ComputedPropertyName6(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/parserES5ComputedPropertyName6(target=es5).errors.txt create mode 100644 tests/baselines/reference/parserES5ComputedPropertyName6(target=es5).js create mode 100644 tests/baselines/reference/parserES5ComputedPropertyName6(target=es5).symbols create mode 100644 tests/baselines/reference/parserES5ComputedPropertyName6(target=es5).types rename tests/baselines/reference/{parserES5ComputedPropertyName7.errors.txt => parserES5ComputedPropertyName7(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/parserES5ComputedPropertyName7(target=es2015).js rename tests/baselines/reference/{parserES5ComputedPropertyName7.symbols => parserES5ComputedPropertyName7(target=es2015).symbols} (100%) rename tests/baselines/reference/{parserES5ComputedPropertyName7.types => parserES5ComputedPropertyName7(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/parserES5ComputedPropertyName7(target=es5).errors.txt rename tests/baselines/reference/{parserES5ComputedPropertyName7.js => parserES5ComputedPropertyName7(target=es5).js} (100%) create mode 100644 tests/baselines/reference/parserES5ComputedPropertyName7(target=es5).symbols create mode 100644 tests/baselines/reference/parserES5ComputedPropertyName7(target=es5).types rename tests/baselines/reference/{parserES5ComputedPropertyName8.errors.txt => parserES5ComputedPropertyName8(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{parserES5ComputedPropertyName8.js => parserES5ComputedPropertyName8(target=es2015).js} (100%) rename tests/baselines/reference/{parserES5ComputedPropertyName8.symbols => parserES5ComputedPropertyName8(target=es2015).symbols} (100%) rename tests/baselines/reference/{parserES5ComputedPropertyName8.types => parserES5ComputedPropertyName8(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/parserES5ComputedPropertyName8(target=es5).errors.txt create mode 100644 tests/baselines/reference/parserES5ComputedPropertyName8(target=es5).js create mode 100644 tests/baselines/reference/parserES5ComputedPropertyName8(target=es5).symbols create mode 100644 tests/baselines/reference/parserES5ComputedPropertyName8(target=es5).types rename tests/baselines/reference/{parserES5ComputedPropertyName9.errors.txt => parserES5ComputedPropertyName9(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/parserES5ComputedPropertyName9(target=es2015).js rename tests/baselines/reference/{parserES5ComputedPropertyName9.symbols => parserES5ComputedPropertyName9(target=es2015).symbols} (100%) rename tests/baselines/reference/{parserES5ComputedPropertyName9.types => parserES5ComputedPropertyName9(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/parserES5ComputedPropertyName9(target=es5).errors.txt rename tests/baselines/reference/{parserES5ComputedPropertyName9.js => parserES5ComputedPropertyName9(target=es5).js} (100%) create mode 100644 tests/baselines/reference/parserES5ComputedPropertyName9(target=es5).symbols create mode 100644 tests/baselines/reference/parserES5ComputedPropertyName9(target=es5).types rename tests/baselines/reference/{parserES5ForOfStatement1.d.errors.txt => parserES5ForOfStatement1.d(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{parserES5ForOfStatement1.d.symbols => parserES5ForOfStatement1.d(target=es2015).symbols} (100%) rename tests/baselines/reference/{parserES5ForOfStatement1.d.types => parserES5ForOfStatement1.d(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/parserES5ForOfStatement1.d(target=es5).errors.txt create mode 100644 tests/baselines/reference/parserES5ForOfStatement1.d(target=es5).symbols create mode 100644 tests/baselines/reference/parserES5ForOfStatement1.d(target=es5).types rename tests/baselines/reference/{parserES5ForOfStatement10.errors.txt => parserES5ForOfStatement10(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/parserES5ForOfStatement10(target=es2015).js rename tests/baselines/reference/{parserES5ForOfStatement10.symbols => parserES5ForOfStatement10(target=es2015).symbols} (100%) rename tests/baselines/reference/{parserES5ForOfStatement10.types => parserES5ForOfStatement10(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/parserES5ForOfStatement10(target=es5).errors.txt rename tests/baselines/reference/{parserES5ForOfStatement10.js => parserES5ForOfStatement10(target=es5).js} (100%) create mode 100644 tests/baselines/reference/parserES5ForOfStatement10(target=es5).symbols create mode 100644 tests/baselines/reference/parserES5ForOfStatement10(target=es5).types rename tests/baselines/reference/{parserES5ForOfStatement11.errors.txt => parserES5ForOfStatement11(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/parserES5ForOfStatement11(target=es2015).js rename tests/baselines/reference/{parserES5ForOfStatement11.symbols => parserES5ForOfStatement11(target=es2015).symbols} (100%) rename tests/baselines/reference/{parserES5ForOfStatement11.types => parserES5ForOfStatement11(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/parserES5ForOfStatement11(target=es5).errors.txt rename tests/baselines/reference/{parserES5ForOfStatement11.js => parserES5ForOfStatement11(target=es5).js} (100%) create mode 100644 tests/baselines/reference/parserES5ForOfStatement11(target=es5).symbols create mode 100644 tests/baselines/reference/parserES5ForOfStatement11(target=es5).types rename tests/baselines/reference/{parserES5ForOfStatement12.errors.txt => parserES5ForOfStatement12(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/parserES5ForOfStatement12(target=es2015).js rename tests/baselines/reference/{parserES5ForOfStatement12.symbols => parserES5ForOfStatement12(target=es2015).symbols} (100%) rename tests/baselines/reference/{parserES5ForOfStatement12.types => parserES5ForOfStatement12(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/parserES5ForOfStatement12(target=es5).errors.txt rename tests/baselines/reference/{parserES5ForOfStatement12.js => parserES5ForOfStatement12(target=es5).js} (100%) create mode 100644 tests/baselines/reference/parserES5ForOfStatement12(target=es5).symbols create mode 100644 tests/baselines/reference/parserES5ForOfStatement12(target=es5).types rename tests/baselines/reference/{parserES5ForOfStatement13.errors.txt => parserES5ForOfStatement13(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/parserES5ForOfStatement13(target=es2015).js rename tests/baselines/reference/{parserES5ForOfStatement13.symbols => parserES5ForOfStatement13(target=es2015).symbols} (100%) rename tests/baselines/reference/{parserES5ForOfStatement13.types => parserES5ForOfStatement13(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/parserES5ForOfStatement13(target=es5).errors.txt rename tests/baselines/reference/{parserES5ForOfStatement13.js => parserES5ForOfStatement13(target=es5).js} (100%) create mode 100644 tests/baselines/reference/parserES5ForOfStatement13(target=es5).symbols create mode 100644 tests/baselines/reference/parserES5ForOfStatement13(target=es5).types rename tests/baselines/reference/{parserES5ForOfStatement14.errors.txt => parserES5ForOfStatement14(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/parserES5ForOfStatement14(target=es2015).js rename tests/baselines/reference/{parserES5ForOfStatement14.symbols => parserES5ForOfStatement14(target=es2015).symbols} (100%) rename tests/baselines/reference/{parserES5ForOfStatement14.types => parserES5ForOfStatement14(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/parserES5ForOfStatement14(target=es5).errors.txt rename tests/baselines/reference/{parserES5ForOfStatement14.js => parserES5ForOfStatement14(target=es5).js} (100%) create mode 100644 tests/baselines/reference/parserES5ForOfStatement14(target=es5).symbols create mode 100644 tests/baselines/reference/parserES5ForOfStatement14(target=es5).types rename tests/baselines/reference/{parserES5ForOfStatement15.errors.txt => parserES5ForOfStatement15(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/parserES5ForOfStatement15(target=es2015).js rename tests/baselines/reference/{parserES5ForOfStatement15.symbols => parserES5ForOfStatement15(target=es2015).symbols} (100%) rename tests/baselines/reference/{parserES5ForOfStatement15.types => parserES5ForOfStatement15(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/parserES5ForOfStatement15(target=es5).errors.txt rename tests/baselines/reference/{parserES5ForOfStatement15.js => parserES5ForOfStatement15(target=es5).js} (100%) create mode 100644 tests/baselines/reference/parserES5ForOfStatement15(target=es5).symbols create mode 100644 tests/baselines/reference/parserES5ForOfStatement15(target=es5).types rename tests/baselines/reference/{parserES5ForOfStatement16.errors.txt => parserES5ForOfStatement16(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/parserES5ForOfStatement16(target=es2015).js rename tests/baselines/reference/{parserES5ForOfStatement16.symbols => parserES5ForOfStatement16(target=es2015).symbols} (100%) rename tests/baselines/reference/{parserES5ForOfStatement16.types => parserES5ForOfStatement16(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/parserES5ForOfStatement16(target=es5).errors.txt rename tests/baselines/reference/{parserES5ForOfStatement16.js => parserES5ForOfStatement16(target=es5).js} (100%) create mode 100644 tests/baselines/reference/parserES5ForOfStatement16(target=es5).symbols create mode 100644 tests/baselines/reference/parserES5ForOfStatement16(target=es5).types rename tests/baselines/reference/{parserES5ForOfStatement17.js => parserES5ForOfStatement17(target=es2015).js} (100%) rename tests/baselines/reference/{parserES5ForOfStatement17.symbols => parserES5ForOfStatement17(target=es2015).symbols} (100%) rename tests/baselines/reference/{parserES5ForOfStatement17.types => parserES5ForOfStatement17(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/parserES5ForOfStatement17(target=es5).js create mode 100644 tests/baselines/reference/parserES5ForOfStatement17(target=es5).symbols create mode 100644 tests/baselines/reference/parserES5ForOfStatement17(target=es5).types create mode 100644 tests/baselines/reference/parserES5ForOfStatement18(target=es2015).js rename tests/baselines/reference/{parserES5ForOfStatement18.symbols => parserES5ForOfStatement18(target=es2015).symbols} (100%) rename tests/baselines/reference/{parserES5ForOfStatement18.types => parserES5ForOfStatement18(target=es2015).types} (100%) rename tests/baselines/reference/{parserES5ForOfStatement18.js => parserES5ForOfStatement18(target=es5).js} (100%) create mode 100644 tests/baselines/reference/parserES5ForOfStatement18(target=es5).symbols create mode 100644 tests/baselines/reference/parserES5ForOfStatement18(target=es5).types rename tests/baselines/reference/{parserES5ForOfStatement19.js => parserES5ForOfStatement19(target=es2015).js} (100%) rename tests/baselines/reference/{parserES5ForOfStatement19.symbols => parserES5ForOfStatement19(target=es2015).symbols} (100%) rename tests/baselines/reference/{parserES5ForOfStatement19.types => parserES5ForOfStatement19(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/parserES5ForOfStatement19(target=es5).js create mode 100644 tests/baselines/reference/parserES5ForOfStatement19(target=es5).symbols create mode 100644 tests/baselines/reference/parserES5ForOfStatement19(target=es5).types rename tests/baselines/reference/{parserES5ForOfStatement2.errors.txt => parserES5ForOfStatement2(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/parserES5ForOfStatement2(target=es2015).js rename tests/baselines/reference/{parserES5ForOfStatement2.symbols => parserES5ForOfStatement2(target=es2015).symbols} (100%) rename tests/baselines/reference/{parserES5ForOfStatement2.types => parserES5ForOfStatement2(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/parserES5ForOfStatement2(target=es5).errors.txt rename tests/baselines/reference/{parserES5ForOfStatement2.js => parserES5ForOfStatement2(target=es5).js} (100%) create mode 100644 tests/baselines/reference/parserES5ForOfStatement2(target=es5).symbols create mode 100644 tests/baselines/reference/parserES5ForOfStatement2(target=es5).types rename tests/baselines/reference/{parserES5ForOfStatement20.errors.txt => parserES5ForOfStatement20(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{parserES5ForOfStatement20.js => parserES5ForOfStatement20(target=es2015).js} (100%) rename tests/baselines/reference/{parserES5ForOfStatement20.symbols => parserES5ForOfStatement20(target=es2015).symbols} (100%) rename tests/baselines/reference/{parserES5ForOfStatement20.types => parserES5ForOfStatement20(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/parserES5ForOfStatement20(target=es5).errors.txt create mode 100644 tests/baselines/reference/parserES5ForOfStatement20(target=es5).js create mode 100644 tests/baselines/reference/parserES5ForOfStatement20(target=es5).symbols create mode 100644 tests/baselines/reference/parserES5ForOfStatement20(target=es5).types rename tests/baselines/reference/{parserES5ForOfStatement21.errors.txt => parserES5ForOfStatement21(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/parserES5ForOfStatement21(target=es2015).js rename tests/baselines/reference/{parserES5ForOfStatement21.symbols => parserES5ForOfStatement21(target=es2015).symbols} (100%) rename tests/baselines/reference/{parserES5ForOfStatement21.types => parserES5ForOfStatement21(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/parserES5ForOfStatement21(target=es5).errors.txt rename tests/baselines/reference/{parserES5ForOfStatement21.js => parserES5ForOfStatement21(target=es5).js} (100%) create mode 100644 tests/baselines/reference/parserES5ForOfStatement21(target=es5).symbols create mode 100644 tests/baselines/reference/parserES5ForOfStatement21(target=es5).types rename tests/baselines/reference/{parserES5ForOfStatement3.errors.txt => parserES5ForOfStatement3(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/parserES5ForOfStatement3(target=es2015).js rename tests/baselines/reference/{parserES5ForOfStatement3.symbols => parserES5ForOfStatement3(target=es2015).symbols} (100%) rename tests/baselines/reference/{parserES5ForOfStatement3.types => parserES5ForOfStatement3(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/parserES5ForOfStatement3(target=es5).errors.txt rename tests/baselines/reference/{parserES5ForOfStatement3.js => parserES5ForOfStatement3(target=es5).js} (100%) create mode 100644 tests/baselines/reference/parserES5ForOfStatement3(target=es5).symbols create mode 100644 tests/baselines/reference/parserES5ForOfStatement3(target=es5).types rename tests/baselines/reference/{parserES5ForOfStatement4.errors.txt => parserES5ForOfStatement4(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/parserES5ForOfStatement4(target=es2015).js rename tests/baselines/reference/{parserES5ForOfStatement4.symbols => parserES5ForOfStatement4(target=es2015).symbols} (100%) rename tests/baselines/reference/{parserES5ForOfStatement4.types => parserES5ForOfStatement4(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/parserES5ForOfStatement4(target=es5).errors.txt rename tests/baselines/reference/{parserES5ForOfStatement4.js => parserES5ForOfStatement4(target=es5).js} (100%) create mode 100644 tests/baselines/reference/parserES5ForOfStatement4(target=es5).symbols create mode 100644 tests/baselines/reference/parserES5ForOfStatement4(target=es5).types rename tests/baselines/reference/{parserES5ForOfStatement5.errors.txt => parserES5ForOfStatement5(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/parserES5ForOfStatement5(target=es2015).js rename tests/baselines/reference/{parserES5ForOfStatement5.symbols => parserES5ForOfStatement5(target=es2015).symbols} (100%) rename tests/baselines/reference/{parserES5ForOfStatement5.types => parserES5ForOfStatement5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/parserES5ForOfStatement5(target=es5).errors.txt rename tests/baselines/reference/{parserES5ForOfStatement5.js => parserES5ForOfStatement5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/parserES5ForOfStatement5(target=es5).symbols create mode 100644 tests/baselines/reference/parserES5ForOfStatement5(target=es5).types rename tests/baselines/reference/{parserES5ForOfStatement6.errors.txt => parserES5ForOfStatement6(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/parserES5ForOfStatement6(target=es2015).js rename tests/baselines/reference/{parserES5ForOfStatement6.symbols => parserES5ForOfStatement6(target=es2015).symbols} (100%) rename tests/baselines/reference/{parserES5ForOfStatement6.types => parserES5ForOfStatement6(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/parserES5ForOfStatement6(target=es5).errors.txt rename tests/baselines/reference/{parserES5ForOfStatement6.js => parserES5ForOfStatement6(target=es5).js} (100%) create mode 100644 tests/baselines/reference/parserES5ForOfStatement6(target=es5).symbols create mode 100644 tests/baselines/reference/parserES5ForOfStatement6(target=es5).types rename tests/baselines/reference/{parserES5ForOfStatement7.errors.txt => parserES5ForOfStatement7(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/parserES5ForOfStatement7(target=es2015).js rename tests/baselines/reference/{parserES5ForOfStatement7.symbols => parserES5ForOfStatement7(target=es2015).symbols} (100%) rename tests/baselines/reference/{parserES5ForOfStatement7.types => parserES5ForOfStatement7(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/parserES5ForOfStatement7(target=es5).errors.txt rename tests/baselines/reference/{parserES5ForOfStatement7.js => parserES5ForOfStatement7(target=es5).js} (100%) create mode 100644 tests/baselines/reference/parserES5ForOfStatement7(target=es5).symbols create mode 100644 tests/baselines/reference/parserES5ForOfStatement7(target=es5).types rename tests/baselines/reference/{parserES5ForOfStatement8.errors.txt => parserES5ForOfStatement8(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/parserES5ForOfStatement8(target=es2015).js rename tests/baselines/reference/{parserES5ForOfStatement8.symbols => parserES5ForOfStatement8(target=es2015).symbols} (100%) rename tests/baselines/reference/{parserES5ForOfStatement8.types => parserES5ForOfStatement8(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/parserES5ForOfStatement8(target=es5).errors.txt rename tests/baselines/reference/{parserES5ForOfStatement8.js => parserES5ForOfStatement8(target=es5).js} (100%) create mode 100644 tests/baselines/reference/parserES5ForOfStatement8(target=es5).symbols create mode 100644 tests/baselines/reference/parserES5ForOfStatement8(target=es5).types rename tests/baselines/reference/{parserES5ForOfStatement9.errors.txt => parserES5ForOfStatement9(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/parserES5ForOfStatement9(target=es2015).js rename tests/baselines/reference/{parserES5ForOfStatement9.symbols => parserES5ForOfStatement9(target=es2015).symbols} (100%) rename tests/baselines/reference/{parserES5ForOfStatement9.types => parserES5ForOfStatement9(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/parserES5ForOfStatement9(target=es5).errors.txt rename tests/baselines/reference/{parserES5ForOfStatement9.js => parserES5ForOfStatement9(target=es5).js} (100%) create mode 100644 tests/baselines/reference/parserES5ForOfStatement9(target=es5).symbols create mode 100644 tests/baselines/reference/parserES5ForOfStatement9(target=es5).types rename tests/baselines/reference/{parserES5SymbolIndexer1.js => parserES5SymbolIndexer1(target=es2015).js} (100%) rename tests/baselines/reference/{parserES5SymbolIndexer1.symbols => parserES5SymbolIndexer1(target=es2015).symbols} (100%) rename tests/baselines/reference/{parserES5SymbolIndexer1.types => parserES5SymbolIndexer1(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/parserES5SymbolIndexer1(target=es5).js create mode 100644 tests/baselines/reference/parserES5SymbolIndexer1(target=es5).symbols create mode 100644 tests/baselines/reference/parserES5SymbolIndexer1(target=es5).types create mode 100644 tests/baselines/reference/parserES5SymbolIndexer2(target=es2015).js rename tests/baselines/reference/{parserES5SymbolIndexer2.symbols => parserES5SymbolIndexer2(target=es2015).symbols} (100%) rename tests/baselines/reference/{parserES5SymbolIndexer2.types => parserES5SymbolIndexer2(target=es2015).types} (100%) rename tests/baselines/reference/{parserES5SymbolIndexer2.js => parserES5SymbolIndexer2(target=es5).js} (100%) create mode 100644 tests/baselines/reference/parserES5SymbolIndexer2(target=es5).symbols create mode 100644 tests/baselines/reference/parserES5SymbolIndexer2(target=es5).types rename tests/baselines/reference/{parserES5SymbolIndexer3.js => parserES5SymbolIndexer3(target=es2015).js} (100%) rename tests/baselines/reference/{parserES5SymbolIndexer3.symbols => parserES5SymbolIndexer3(target=es2015).symbols} (100%) rename tests/baselines/reference/{parserES5SymbolIndexer3.types => parserES5SymbolIndexer3(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/parserES5SymbolIndexer3(target=es5).js create mode 100644 tests/baselines/reference/parserES5SymbolIndexer3(target=es5).symbols create mode 100644 tests/baselines/reference/parserES5SymbolIndexer3(target=es5).types rename tests/baselines/reference/{parserES5SymbolProperty1.js => parserES5SymbolProperty1(target=es2015).js} (100%) rename tests/baselines/reference/{parserES5SymbolProperty1.symbols => parserES5SymbolProperty1(target=es2015).symbols} (100%) rename tests/baselines/reference/{parserES5SymbolProperty1.types => parserES5SymbolProperty1(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/parserES5SymbolProperty1(target=es5).js create mode 100644 tests/baselines/reference/parserES5SymbolProperty1(target=es5).symbols create mode 100644 tests/baselines/reference/parserES5SymbolProperty1(target=es5).types rename tests/baselines/reference/{parserES5SymbolProperty2.js => parserES5SymbolProperty2(target=es2015).js} (100%) rename tests/baselines/reference/{parserES5SymbolProperty2.symbols => parserES5SymbolProperty2(target=es2015).symbols} (100%) rename tests/baselines/reference/{parserES5SymbolProperty2.types => parserES5SymbolProperty2(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/parserES5SymbolProperty2(target=es5).js create mode 100644 tests/baselines/reference/parserES5SymbolProperty2(target=es5).symbols create mode 100644 tests/baselines/reference/parserES5SymbolProperty2(target=es5).types rename tests/baselines/reference/{parserES5SymbolProperty3.js => parserES5SymbolProperty3(target=es2015).js} (100%) rename tests/baselines/reference/{parserES5SymbolProperty3.symbols => parserES5SymbolProperty3(target=es2015).symbols} (100%) rename tests/baselines/reference/{parserES5SymbolProperty3.types => parserES5SymbolProperty3(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/parserES5SymbolProperty3(target=es5).js create mode 100644 tests/baselines/reference/parserES5SymbolProperty3(target=es5).symbols create mode 100644 tests/baselines/reference/parserES5SymbolProperty3(target=es5).types rename tests/baselines/reference/{parserES5SymbolProperty4.errors.txt => parserES5SymbolProperty4(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{parserES5SymbolProperty4.js => parserES5SymbolProperty4(target=es2015).js} (100%) rename tests/baselines/reference/{parserES5SymbolProperty4.symbols => parserES5SymbolProperty4(target=es2015).symbols} (100%) rename tests/baselines/reference/{parserES5SymbolProperty4.types => parserES5SymbolProperty4(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/parserES5SymbolProperty4(target=es5).errors.txt create mode 100644 tests/baselines/reference/parserES5SymbolProperty4(target=es5).js create mode 100644 tests/baselines/reference/parserES5SymbolProperty4(target=es5).symbols create mode 100644 tests/baselines/reference/parserES5SymbolProperty4(target=es5).types rename tests/baselines/reference/{parserES5SymbolProperty5.errors.txt => parserES5SymbolProperty5(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/parserES5SymbolProperty5(target=es2015).js rename tests/baselines/reference/{parserES5SymbolProperty5.symbols => parserES5SymbolProperty5(target=es2015).symbols} (100%) rename tests/baselines/reference/{parserES5SymbolProperty5.types => parserES5SymbolProperty5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/parserES5SymbolProperty5(target=es5).errors.txt rename tests/baselines/reference/{parserES5SymbolProperty5.js => parserES5SymbolProperty5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/parserES5SymbolProperty5(target=es5).symbols create mode 100644 tests/baselines/reference/parserES5SymbolProperty5(target=es5).types create mode 100644 tests/baselines/reference/parserES5SymbolProperty6(target=es2015).js rename tests/baselines/reference/{parserES5SymbolProperty6.symbols => parserES5SymbolProperty6(target=es2015).symbols} (100%) rename tests/baselines/reference/{parserES5SymbolProperty6.types => parserES5SymbolProperty6(target=es2015).types} (100%) rename tests/baselines/reference/{parserES5SymbolProperty6.js => parserES5SymbolProperty6(target=es5).js} (100%) create mode 100644 tests/baselines/reference/parserES5SymbolProperty6(target=es5).symbols create mode 100644 tests/baselines/reference/parserES5SymbolProperty6(target=es5).types create mode 100644 tests/baselines/reference/parserES5SymbolProperty7(target=es2015).js rename tests/baselines/reference/{parserES5SymbolProperty7.symbols => parserES5SymbolProperty7(target=es2015).symbols} (100%) rename tests/baselines/reference/{parserES5SymbolProperty7.types => parserES5SymbolProperty7(target=es2015).types} (100%) rename tests/baselines/reference/{parserES5SymbolProperty7.js => parserES5SymbolProperty7(target=es5).js} (100%) create mode 100644 tests/baselines/reference/parserES5SymbolProperty7(target=es5).symbols create mode 100644 tests/baselines/reference/parserES5SymbolProperty7(target=es5).types rename tests/baselines/reference/{parserES5SymbolProperty8.js => parserES5SymbolProperty8(target=es2015).js} (100%) rename tests/baselines/reference/{parserES5SymbolProperty8.symbols => parserES5SymbolProperty8(target=es2015).symbols} (100%) rename tests/baselines/reference/{parserES5SymbolProperty8.types => parserES5SymbolProperty8(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/parserES5SymbolProperty8(target=es5).js create mode 100644 tests/baselines/reference/parserES5SymbolProperty8(target=es5).symbols create mode 100644 tests/baselines/reference/parserES5SymbolProperty8(target=es5).types rename tests/baselines/reference/{parserES5SymbolProperty9.js => parserES5SymbolProperty9(target=es2015).js} (100%) rename tests/baselines/reference/{parserES5SymbolProperty9.symbols => parserES5SymbolProperty9(target=es2015).symbols} (100%) rename tests/baselines/reference/{parserES5SymbolProperty9.types => parserES5SymbolProperty9(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/parserES5SymbolProperty9(target=es5).js create mode 100644 tests/baselines/reference/parserES5SymbolProperty9(target=es5).symbols create mode 100644 tests/baselines/reference/parserES5SymbolProperty9(target=es5).types rename tests/baselines/reference/{parserGetAccessorWithTypeParameters1.errors.txt => parserGetAccessorWithTypeParameters1(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/parserGetAccessorWithTypeParameters1(target=es2015).js rename tests/baselines/reference/{parserGetAccessorWithTypeParameters1.symbols => parserGetAccessorWithTypeParameters1(target=es2015).symbols} (100%) rename tests/baselines/reference/{parserGetAccessorWithTypeParameters1.types => parserGetAccessorWithTypeParameters1(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/parserGetAccessorWithTypeParameters1(target=es5).errors.txt rename tests/baselines/reference/{parserGetAccessorWithTypeParameters1.js => parserGetAccessorWithTypeParameters1(target=es5).js} (100%) create mode 100644 tests/baselines/reference/parserGetAccessorWithTypeParameters1(target=es5).symbols create mode 100644 tests/baselines/reference/parserGetAccessorWithTypeParameters1(target=es5).types rename tests/baselines/reference/{parserMemberAccessor1.errors.txt => parserMemberAccessor1(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/parserMemberAccessor1(target=es2015).js rename tests/baselines/reference/{parserMemberAccessor1.symbols => parserMemberAccessor1(target=es2015).symbols} (100%) rename tests/baselines/reference/{parserMemberAccessor1.types => parserMemberAccessor1(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/parserMemberAccessor1(target=es5).errors.txt rename tests/baselines/reference/{parserMemberAccessor1.js => parserMemberAccessor1(target=es5).js} (100%) create mode 100644 tests/baselines/reference/parserMemberAccessor1(target=es5).symbols create mode 100644 tests/baselines/reference/parserMemberAccessor1(target=es5).types rename tests/baselines/reference/{parserMemberAccessorDeclaration1.errors.txt => parserMemberAccessorDeclaration1(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/parserMemberAccessorDeclaration1(target=es2015).js rename tests/baselines/reference/{parserMemberAccessorDeclaration1.symbols => parserMemberAccessorDeclaration1(target=es2015).symbols} (100%) rename tests/baselines/reference/{parserMemberAccessorDeclaration1.types => parserMemberAccessorDeclaration1(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/parserMemberAccessorDeclaration1(target=es5).errors.txt rename tests/baselines/reference/{parserMemberAccessorDeclaration1.js => parserMemberAccessorDeclaration1(target=es5).js} (100%) create mode 100644 tests/baselines/reference/parserMemberAccessorDeclaration1(target=es5).symbols create mode 100644 tests/baselines/reference/parserMemberAccessorDeclaration1(target=es5).types rename tests/baselines/reference/{parserMemberAccessorDeclaration10.errors.txt => parserMemberAccessorDeclaration10(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/parserMemberAccessorDeclaration10(target=es2015).js rename tests/baselines/reference/{parserMemberAccessorDeclaration10.symbols => parserMemberAccessorDeclaration10(target=es2015).symbols} (100%) rename tests/baselines/reference/{parserMemberAccessorDeclaration10.types => parserMemberAccessorDeclaration10(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/parserMemberAccessorDeclaration10(target=es5).errors.txt rename tests/baselines/reference/{parserMemberAccessorDeclaration10.js => parserMemberAccessorDeclaration10(target=es5).js} (100%) create mode 100644 tests/baselines/reference/parserMemberAccessorDeclaration10(target=es5).symbols create mode 100644 tests/baselines/reference/parserMemberAccessorDeclaration10(target=es5).types rename tests/baselines/reference/{parserMemberAccessorDeclaration11.errors.txt => parserMemberAccessorDeclaration11(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/parserMemberAccessorDeclaration11(target=es2015).js rename tests/baselines/reference/{parserMemberAccessorDeclaration11.symbols => parserMemberAccessorDeclaration11(target=es2015).symbols} (100%) rename tests/baselines/reference/{parserMemberAccessorDeclaration11.types => parserMemberAccessorDeclaration11(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/parserMemberAccessorDeclaration11(target=es5).errors.txt rename tests/baselines/reference/{parserMemberAccessorDeclaration11.js => parserMemberAccessorDeclaration11(target=es5).js} (100%) create mode 100644 tests/baselines/reference/parserMemberAccessorDeclaration11(target=es5).symbols create mode 100644 tests/baselines/reference/parserMemberAccessorDeclaration11(target=es5).types rename tests/baselines/reference/{parserMemberAccessorDeclaration12.errors.txt => parserMemberAccessorDeclaration12(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/parserMemberAccessorDeclaration12(target=es2015).js rename tests/baselines/reference/{parserMemberAccessorDeclaration12.symbols => parserMemberAccessorDeclaration12(target=es2015).symbols} (100%) rename tests/baselines/reference/{parserMemberAccessorDeclaration12.types => parserMemberAccessorDeclaration12(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/parserMemberAccessorDeclaration12(target=es5).errors.txt rename tests/baselines/reference/{parserMemberAccessorDeclaration12.js => parserMemberAccessorDeclaration12(target=es5).js} (100%) create mode 100644 tests/baselines/reference/parserMemberAccessorDeclaration12(target=es5).symbols create mode 100644 tests/baselines/reference/parserMemberAccessorDeclaration12(target=es5).types rename tests/baselines/reference/{parserMemberAccessorDeclaration13.errors.txt => parserMemberAccessorDeclaration13(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/parserMemberAccessorDeclaration13(target=es2015).js rename tests/baselines/reference/{parserMemberAccessorDeclaration13.symbols => parserMemberAccessorDeclaration13(target=es2015).symbols} (100%) rename tests/baselines/reference/{parserMemberAccessorDeclaration13.types => parserMemberAccessorDeclaration13(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/parserMemberAccessorDeclaration13(target=es5).errors.txt rename tests/baselines/reference/{parserMemberAccessorDeclaration13.js => parserMemberAccessorDeclaration13(target=es5).js} (100%) create mode 100644 tests/baselines/reference/parserMemberAccessorDeclaration13(target=es5).symbols create mode 100644 tests/baselines/reference/parserMemberAccessorDeclaration13(target=es5).types rename tests/baselines/reference/{parserMemberAccessorDeclaration14.errors.txt => parserMemberAccessorDeclaration14(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/parserMemberAccessorDeclaration14(target=es2015).js rename tests/baselines/reference/{parserMemberAccessorDeclaration14.symbols => parserMemberAccessorDeclaration14(target=es2015).symbols} (100%) rename tests/baselines/reference/{parserMemberAccessorDeclaration14.types => parserMemberAccessorDeclaration14(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/parserMemberAccessorDeclaration14(target=es5).errors.txt rename tests/baselines/reference/{parserMemberAccessorDeclaration14.js => parserMemberAccessorDeclaration14(target=es5).js} (100%) create mode 100644 tests/baselines/reference/parserMemberAccessorDeclaration14(target=es5).symbols create mode 100644 tests/baselines/reference/parserMemberAccessorDeclaration14(target=es5).types rename tests/baselines/reference/{parserMemberAccessorDeclaration15.errors.txt => parserMemberAccessorDeclaration15(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/parserMemberAccessorDeclaration15(target=es2015).js rename tests/baselines/reference/{parserMemberAccessorDeclaration15.symbols => parserMemberAccessorDeclaration15(target=es2015).symbols} (100%) rename tests/baselines/reference/{parserMemberAccessorDeclaration15.types => parserMemberAccessorDeclaration15(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/parserMemberAccessorDeclaration15(target=es5).errors.txt rename tests/baselines/reference/{parserMemberAccessorDeclaration15.js => parserMemberAccessorDeclaration15(target=es5).js} (100%) create mode 100644 tests/baselines/reference/parserMemberAccessorDeclaration15(target=es5).symbols create mode 100644 tests/baselines/reference/parserMemberAccessorDeclaration15(target=es5).types rename tests/baselines/reference/{parserMemberAccessorDeclaration16.errors.txt => parserMemberAccessorDeclaration16(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/parserMemberAccessorDeclaration16(target=es2015).js rename tests/baselines/reference/{parserMemberAccessorDeclaration16.symbols => parserMemberAccessorDeclaration16(target=es2015).symbols} (100%) rename tests/baselines/reference/{parserMemberAccessorDeclaration16.types => parserMemberAccessorDeclaration16(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/parserMemberAccessorDeclaration16(target=es5).errors.txt rename tests/baselines/reference/{parserMemberAccessorDeclaration16.js => parserMemberAccessorDeclaration16(target=es5).js} (100%) create mode 100644 tests/baselines/reference/parserMemberAccessorDeclaration16(target=es5).symbols create mode 100644 tests/baselines/reference/parserMemberAccessorDeclaration16(target=es5).types rename tests/baselines/reference/{parserMemberAccessorDeclaration17.errors.txt => parserMemberAccessorDeclaration17(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/parserMemberAccessorDeclaration17(target=es2015).js rename tests/baselines/reference/{parserMemberAccessorDeclaration17.symbols => parserMemberAccessorDeclaration17(target=es2015).symbols} (100%) rename tests/baselines/reference/{parserMemberAccessorDeclaration17.types => parserMemberAccessorDeclaration17(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/parserMemberAccessorDeclaration17(target=es5).errors.txt rename tests/baselines/reference/{parserMemberAccessorDeclaration17.js => parserMemberAccessorDeclaration17(target=es5).js} (100%) create mode 100644 tests/baselines/reference/parserMemberAccessorDeclaration17(target=es5).symbols create mode 100644 tests/baselines/reference/parserMemberAccessorDeclaration17(target=es5).types rename tests/baselines/reference/{parserMemberAccessorDeclaration18.errors.txt => parserMemberAccessorDeclaration18(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/parserMemberAccessorDeclaration18(target=es2015).js rename tests/baselines/reference/{parserMemberAccessorDeclaration18.symbols => parserMemberAccessorDeclaration18(target=es2015).symbols} (100%) rename tests/baselines/reference/{parserMemberAccessorDeclaration18.types => parserMemberAccessorDeclaration18(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/parserMemberAccessorDeclaration18(target=es5).errors.txt rename tests/baselines/reference/{parserMemberAccessorDeclaration18.js => parserMemberAccessorDeclaration18(target=es5).js} (100%) create mode 100644 tests/baselines/reference/parserMemberAccessorDeclaration18(target=es5).symbols create mode 100644 tests/baselines/reference/parserMemberAccessorDeclaration18(target=es5).types rename tests/baselines/reference/{parserMemberAccessorDeclaration2.errors.txt => parserMemberAccessorDeclaration2(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/parserMemberAccessorDeclaration2(target=es2015).js rename tests/baselines/reference/{parserMemberAccessorDeclaration2.symbols => parserMemberAccessorDeclaration2(target=es2015).symbols} (100%) rename tests/baselines/reference/{parserMemberAccessorDeclaration2.types => parserMemberAccessorDeclaration2(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/parserMemberAccessorDeclaration2(target=es5).errors.txt rename tests/baselines/reference/{parserMemberAccessorDeclaration2.js => parserMemberAccessorDeclaration2(target=es5).js} (100%) create mode 100644 tests/baselines/reference/parserMemberAccessorDeclaration2(target=es5).symbols create mode 100644 tests/baselines/reference/parserMemberAccessorDeclaration2(target=es5).types rename tests/baselines/reference/{parserMemberAccessorDeclaration3.errors.txt => parserMemberAccessorDeclaration3(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/parserMemberAccessorDeclaration3(target=es2015).js rename tests/baselines/reference/{parserMemberAccessorDeclaration3.symbols => parserMemberAccessorDeclaration3(target=es2015).symbols} (100%) rename tests/baselines/reference/{parserMemberAccessorDeclaration3.types => parserMemberAccessorDeclaration3(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/parserMemberAccessorDeclaration3(target=es5).errors.txt rename tests/baselines/reference/{parserMemberAccessorDeclaration3.js => parserMemberAccessorDeclaration3(target=es5).js} (100%) create mode 100644 tests/baselines/reference/parserMemberAccessorDeclaration3(target=es5).symbols create mode 100644 tests/baselines/reference/parserMemberAccessorDeclaration3(target=es5).types create mode 100644 tests/baselines/reference/parserMemberAccessorDeclaration4(target=es2015).js rename tests/baselines/reference/{parserMemberAccessorDeclaration4.symbols => parserMemberAccessorDeclaration4(target=es2015).symbols} (100%) rename tests/baselines/reference/{parserMemberAccessorDeclaration4.types => parserMemberAccessorDeclaration4(target=es2015).types} (100%) rename tests/baselines/reference/{parserMemberAccessorDeclaration4.js => parserMemberAccessorDeclaration4(target=es5).js} (100%) create mode 100644 tests/baselines/reference/parserMemberAccessorDeclaration4(target=es5).symbols create mode 100644 tests/baselines/reference/parserMemberAccessorDeclaration4(target=es5).types create mode 100644 tests/baselines/reference/parserMemberAccessorDeclaration5(target=es2015).js rename tests/baselines/reference/{parserMemberAccessorDeclaration5.symbols => parserMemberAccessorDeclaration5(target=es2015).symbols} (100%) rename tests/baselines/reference/{parserMemberAccessorDeclaration5.types => parserMemberAccessorDeclaration5(target=es2015).types} (100%) rename tests/baselines/reference/{parserMemberAccessorDeclaration5.js => parserMemberAccessorDeclaration5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/parserMemberAccessorDeclaration5(target=es5).symbols create mode 100644 tests/baselines/reference/parserMemberAccessorDeclaration5(target=es5).types create mode 100644 tests/baselines/reference/parserMemberAccessorDeclaration6(target=es2015).js rename tests/baselines/reference/{parserMemberAccessorDeclaration6.symbols => parserMemberAccessorDeclaration6(target=es2015).symbols} (100%) rename tests/baselines/reference/{parserMemberAccessorDeclaration6.types => parserMemberAccessorDeclaration6(target=es2015).types} (100%) rename tests/baselines/reference/{parserMemberAccessorDeclaration6.js => parserMemberAccessorDeclaration6(target=es5).js} (100%) create mode 100644 tests/baselines/reference/parserMemberAccessorDeclaration6(target=es5).symbols create mode 100644 tests/baselines/reference/parserMemberAccessorDeclaration6(target=es5).types rename tests/baselines/reference/{parserMemberAccessorDeclaration7.errors.txt => parserMemberAccessorDeclaration7(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/parserMemberAccessorDeclaration7(target=es2015).js rename tests/baselines/reference/{parserMemberAccessorDeclaration7.symbols => parserMemberAccessorDeclaration7(target=es2015).symbols} (100%) rename tests/baselines/reference/{parserMemberAccessorDeclaration7.types => parserMemberAccessorDeclaration7(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/parserMemberAccessorDeclaration7(target=es5).errors.txt rename tests/baselines/reference/{parserMemberAccessorDeclaration7.js => parserMemberAccessorDeclaration7(target=es5).js} (100%) create mode 100644 tests/baselines/reference/parserMemberAccessorDeclaration7(target=es5).symbols create mode 100644 tests/baselines/reference/parserMemberAccessorDeclaration7(target=es5).types rename tests/baselines/reference/{parserMemberAccessorDeclaration8.errors.txt => parserMemberAccessorDeclaration8(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/parserMemberAccessorDeclaration8(target=es2015).js rename tests/baselines/reference/{parserMemberAccessorDeclaration8.symbols => parserMemberAccessorDeclaration8(target=es2015).symbols} (100%) rename tests/baselines/reference/{parserMemberAccessorDeclaration8.types => parserMemberAccessorDeclaration8(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/parserMemberAccessorDeclaration8(target=es5).errors.txt rename tests/baselines/reference/{parserMemberAccessorDeclaration8.js => parserMemberAccessorDeclaration8(target=es5).js} (100%) create mode 100644 tests/baselines/reference/parserMemberAccessorDeclaration8(target=es5).symbols create mode 100644 tests/baselines/reference/parserMemberAccessorDeclaration8(target=es5).types rename tests/baselines/reference/{parserMemberAccessorDeclaration9.errors.txt => parserMemberAccessorDeclaration9(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/parserMemberAccessorDeclaration9(target=es2015).js rename tests/baselines/reference/{parserMemberAccessorDeclaration9.symbols => parserMemberAccessorDeclaration9(target=es2015).symbols} (100%) rename tests/baselines/reference/{parserMemberAccessorDeclaration9.types => parserMemberAccessorDeclaration9(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/parserMemberAccessorDeclaration9(target=es5).errors.txt rename tests/baselines/reference/{parserMemberAccessorDeclaration9.js => parserMemberAccessorDeclaration9(target=es5).js} (100%) create mode 100644 tests/baselines/reference/parserMemberAccessorDeclaration9(target=es5).symbols create mode 100644 tests/baselines/reference/parserMemberAccessorDeclaration9(target=es5).types rename tests/baselines/reference/{parserSetAccessorWithTypeAnnotation1.errors.txt => parserSetAccessorWithTypeAnnotation1(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/parserSetAccessorWithTypeAnnotation1(target=es2015).js rename tests/baselines/reference/{parserSetAccessorWithTypeAnnotation1.symbols => parserSetAccessorWithTypeAnnotation1(target=es2015).symbols} (100%) rename tests/baselines/reference/{parserSetAccessorWithTypeAnnotation1.types => parserSetAccessorWithTypeAnnotation1(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/parserSetAccessorWithTypeAnnotation1(target=es5).errors.txt rename tests/baselines/reference/{parserSetAccessorWithTypeAnnotation1.js => parserSetAccessorWithTypeAnnotation1(target=es5).js} (100%) create mode 100644 tests/baselines/reference/parserSetAccessorWithTypeAnnotation1(target=es5).symbols create mode 100644 tests/baselines/reference/parserSetAccessorWithTypeAnnotation1(target=es5).types rename tests/baselines/reference/{parserSetAccessorWithTypeParameters1.errors.txt => parserSetAccessorWithTypeParameters1(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/parserSetAccessorWithTypeParameters1(target=es2015).js rename tests/baselines/reference/{parserSetAccessorWithTypeParameters1.symbols => parserSetAccessorWithTypeParameters1(target=es2015).symbols} (100%) rename tests/baselines/reference/{parserSetAccessorWithTypeParameters1.types => parserSetAccessorWithTypeParameters1(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/parserSetAccessorWithTypeParameters1(target=es5).errors.txt rename tests/baselines/reference/{parserSetAccessorWithTypeParameters1.js => parserSetAccessorWithTypeParameters1(target=es5).js} (100%) create mode 100644 tests/baselines/reference/parserSetAccessorWithTypeParameters1(target=es5).symbols create mode 100644 tests/baselines/reference/parserSetAccessorWithTypeParameters1(target=es5).types rename tests/baselines/reference/{parserStrictMode12.errors.txt => parserStrictMode12(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{parserStrictMode12.js => parserStrictMode12(target=es2015).js} (100%) rename tests/baselines/reference/{parserStrictMode12.symbols => parserStrictMode12(target=es2015).symbols} (100%) rename tests/baselines/reference/{parserStrictMode12.types => parserStrictMode12(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/parserStrictMode12(target=es5).errors.txt create mode 100644 tests/baselines/reference/parserStrictMode12(target=es5).js create mode 100644 tests/baselines/reference/parserStrictMode12(target=es5).symbols create mode 100644 tests/baselines/reference/parserStrictMode12(target=es5).types rename tests/baselines/reference/{prefixUnaryOperatorsOnExportedVariables.errors.txt => prefixUnaryOperatorsOnExportedVariables(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{prefixUnaryOperatorsOnExportedVariables.js => prefixUnaryOperatorsOnExportedVariables(target=es2015).js} (100%) rename tests/baselines/reference/{prefixUnaryOperatorsOnExportedVariables.symbols => prefixUnaryOperatorsOnExportedVariables(target=es2015).symbols} (100%) rename tests/baselines/reference/{prefixUnaryOperatorsOnExportedVariables.types => prefixUnaryOperatorsOnExportedVariables(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/prefixUnaryOperatorsOnExportedVariables(target=es5).errors.txt create mode 100644 tests/baselines/reference/prefixUnaryOperatorsOnExportedVariables(target=es5).js create mode 100644 tests/baselines/reference/prefixUnaryOperatorsOnExportedVariables(target=es5).symbols create mode 100644 tests/baselines/reference/prefixUnaryOperatorsOnExportedVariables(target=es5).types create mode 100644 tests/baselines/reference/privacyAccessorDeclFile(target=es2015).js rename tests/baselines/reference/{privacyAccessorDeclFile.symbols => privacyAccessorDeclFile(target=es2015).symbols} (100%) rename tests/baselines/reference/{privacyAccessorDeclFile.types => privacyAccessorDeclFile(target=es2015).types} (100%) rename tests/baselines/reference/{privacyAccessorDeclFile.js => privacyAccessorDeclFile(target=es5).js} (100%) create mode 100644 tests/baselines/reference/privacyAccessorDeclFile(target=es5).symbols create mode 100644 tests/baselines/reference/privacyAccessorDeclFile(target=es5).types create mode 100644 tests/baselines/reference/privacyCannotNameAccessorDeclFile(target=es2015).js rename tests/baselines/reference/{privacyCannotNameAccessorDeclFile.symbols => privacyCannotNameAccessorDeclFile(target=es2015).symbols} (100%) rename tests/baselines/reference/{privacyCannotNameAccessorDeclFile.types => privacyCannotNameAccessorDeclFile(target=es2015).types} (100%) rename tests/baselines/reference/{privacyCannotNameAccessorDeclFile.js => privacyCannotNameAccessorDeclFile(target=es5).js} (100%) create mode 100644 tests/baselines/reference/privacyCannotNameAccessorDeclFile(target=es5).symbols create mode 100644 tests/baselines/reference/privacyCannotNameAccessorDeclFile(target=es5).types rename tests/baselines/reference/{privacyGetter.errors.txt => privacyGetter(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/privacyGetter(target=es2015).js rename tests/baselines/reference/{privacyGetter.symbols => privacyGetter(target=es2015).symbols} (100%) rename tests/baselines/reference/{privacyGetter.types => privacyGetter(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/privacyGetter(target=es5).errors.txt rename tests/baselines/reference/{privacyGetter.js => privacyGetter(target=es5).js} (100%) create mode 100644 tests/baselines/reference/privacyGetter(target=es5).symbols create mode 100644 tests/baselines/reference/privacyGetter(target=es5).types create mode 100644 tests/baselines/reference/privacyGloGetter(target=es2015).js rename tests/baselines/reference/{privacyGloGetter.symbols => privacyGloGetter(target=es2015).symbols} (100%) rename tests/baselines/reference/{privacyGloGetter.types => privacyGloGetter(target=es2015).types} (100%) rename tests/baselines/reference/{privacyGloGetter.js => privacyGloGetter(target=es5).js} (100%) create mode 100644 tests/baselines/reference/privacyGloGetter(target=es5).symbols create mode 100644 tests/baselines/reference/privacyGloGetter(target=es5).types create mode 100644 tests/baselines/reference/privateClassPropertyAccessibleWithinNestedClass(target=es2015).js rename tests/baselines/reference/{privateClassPropertyAccessibleWithinNestedClass.symbols => privateClassPropertyAccessibleWithinNestedClass(target=es2015).symbols} (100%) rename tests/baselines/reference/{privateClassPropertyAccessibleWithinNestedClass.types => privateClassPropertyAccessibleWithinNestedClass(target=es2015).types} (100%) rename tests/baselines/reference/{privateClassPropertyAccessibleWithinNestedClass.js => privateClassPropertyAccessibleWithinNestedClass(target=es5).js} (100%) create mode 100644 tests/baselines/reference/privateClassPropertyAccessibleWithinNestedClass(target=es5).symbols create mode 100644 tests/baselines/reference/privateClassPropertyAccessibleWithinNestedClass(target=es5).types create mode 100644 tests/baselines/reference/privateNameES5Ban(target=es2015).js rename tests/baselines/reference/{privateNameES5Ban.symbols => privateNameES5Ban(target=es2015).symbols} (100%) rename tests/baselines/reference/{privateNameES5Ban.types => privateNameES5Ban(target=es2015).types} (100%) rename tests/baselines/reference/{privateNameES5Ban.errors.txt => privateNameES5Ban(target=es5).errors.txt} (100%) rename tests/baselines/reference/{privateNameES5Ban.js => privateNameES5Ban(target=es5).js} (100%) create mode 100644 tests/baselines/reference/privateNameES5Ban(target=es5).symbols create mode 100644 tests/baselines/reference/privateNameES5Ban(target=es5).types rename tests/baselines/reference/{promiseDefinitionTest.errors.txt => promiseDefinitionTest(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/promiseDefinitionTest(target=es2015).js rename tests/baselines/reference/{promiseDefinitionTest.symbols => promiseDefinitionTest(target=es2015).symbols} (100%) rename tests/baselines/reference/{promiseDefinitionTest.types => promiseDefinitionTest(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/promiseDefinitionTest(target=es5).errors.txt rename tests/baselines/reference/{promiseDefinitionTest.js => promiseDefinitionTest(target=es5).js} (100%) create mode 100644 tests/baselines/reference/promiseDefinitionTest(target=es5).symbols create mode 100644 tests/baselines/reference/promiseDefinitionTest(target=es5).types create mode 100644 tests/baselines/reference/properties(target=es2015).js create mode 100644 tests/baselines/reference/properties(target=es2015).js.map create mode 100644 tests/baselines/reference/properties(target=es2015).sourcemap.txt rename tests/baselines/reference/{properties.symbols => properties(target=es2015).symbols} (100%) rename tests/baselines/reference/{properties.types => properties(target=es2015).types} (100%) rename tests/baselines/reference/{properties.js => properties(target=es5).js} (100%) rename tests/baselines/reference/{properties.js.map => properties(target=es5).js.map} (100%) rename tests/baselines/reference/{properties.sourcemap.txt => properties(target=es5).sourcemap.txt} (100%) create mode 100644 tests/baselines/reference/properties(target=es5).symbols create mode 100644 tests/baselines/reference/properties(target=es5).types rename tests/baselines/reference/{propertyOverridesAccessors4.errors.txt => propertyOverridesAccessors4(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/propertyOverridesAccessors4(target=es2015).js rename tests/baselines/reference/{propertyOverridesAccessors4.symbols => propertyOverridesAccessors4(target=es2015).symbols} (100%) rename tests/baselines/reference/{propertyOverridesAccessors4.types => propertyOverridesAccessors4(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/propertyOverridesAccessors4(target=es5).errors.txt rename tests/baselines/reference/{propertyOverridesAccessors4.js => propertyOverridesAccessors4(target=es5).js} (100%) create mode 100644 tests/baselines/reference/propertyOverridesAccessors4(target=es5).symbols create mode 100644 tests/baselines/reference/propertyOverridesAccessors4(target=es5).types create mode 100644 tests/baselines/reference/protectedClassPropertyAccessibleWithinClass(target=es2015).js rename tests/baselines/reference/{protectedClassPropertyAccessibleWithinClass.symbols => protectedClassPropertyAccessibleWithinClass(target=es2015).symbols} (100%) rename tests/baselines/reference/{protectedClassPropertyAccessibleWithinClass.types => protectedClassPropertyAccessibleWithinClass(target=es2015).types} (100%) rename tests/baselines/reference/{protectedClassPropertyAccessibleWithinClass.js => protectedClassPropertyAccessibleWithinClass(target=es5).js} (100%) create mode 100644 tests/baselines/reference/protectedClassPropertyAccessibleWithinClass(target=es5).symbols create mode 100644 tests/baselines/reference/protectedClassPropertyAccessibleWithinClass(target=es5).types create mode 100644 tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedClass(target=es2015).js rename tests/baselines/reference/{protectedClassPropertyAccessibleWithinNestedClass.symbols => protectedClassPropertyAccessibleWithinNestedClass(target=es2015).symbols} (100%) rename tests/baselines/reference/{protectedClassPropertyAccessibleWithinNestedClass.types => protectedClassPropertyAccessibleWithinNestedClass(target=es2015).types} (100%) rename tests/baselines/reference/{protectedClassPropertyAccessibleWithinNestedClass.js => protectedClassPropertyAccessibleWithinNestedClass(target=es5).js} (100%) create mode 100644 tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedClass(target=es5).symbols create mode 100644 tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedClass(target=es5).types rename tests/baselines/reference/{protectedClassPropertyAccessibleWithinNestedSubclass.errors.txt => protectedClassPropertyAccessibleWithinNestedSubclass(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedSubclass(target=es2015).js rename tests/baselines/reference/{protectedClassPropertyAccessibleWithinNestedSubclass.symbols => protectedClassPropertyAccessibleWithinNestedSubclass(target=es2015).symbols} (100%) rename tests/baselines/reference/{protectedClassPropertyAccessibleWithinNestedSubclass.types => protectedClassPropertyAccessibleWithinNestedSubclass(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedSubclass(target=es5).errors.txt rename tests/baselines/reference/{protectedClassPropertyAccessibleWithinNestedSubclass.js => protectedClassPropertyAccessibleWithinNestedSubclass(target=es5).js} (100%) create mode 100644 tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedSubclass(target=es5).symbols create mode 100644 tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedSubclass(target=es5).types create mode 100644 tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass(target=es2015).js rename tests/baselines/reference/{protectedClassPropertyAccessibleWithinSubclass.symbols => protectedClassPropertyAccessibleWithinSubclass(target=es2015).symbols} (100%) rename tests/baselines/reference/{protectedClassPropertyAccessibleWithinSubclass.types => protectedClassPropertyAccessibleWithinSubclass(target=es2015).types} (100%) rename tests/baselines/reference/{protectedClassPropertyAccessibleWithinSubclass.js => protectedClassPropertyAccessibleWithinSubclass(target=es5).js} (100%) create mode 100644 tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass(target=es5).symbols create mode 100644 tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass(target=es5).types rename tests/baselines/reference/{publicGetterProtectedSetterFromThisParameter.errors.txt => publicGetterProtectedSetterFromThisParameter(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/publicGetterProtectedSetterFromThisParameter(target=es2015).js rename tests/baselines/reference/{publicGetterProtectedSetterFromThisParameter.symbols => publicGetterProtectedSetterFromThisParameter(target=es2015).symbols} (100%) rename tests/baselines/reference/{publicGetterProtectedSetterFromThisParameter.types => publicGetterProtectedSetterFromThisParameter(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/publicGetterProtectedSetterFromThisParameter(target=es5).errors.txt rename tests/baselines/reference/{publicGetterProtectedSetterFromThisParameter.js => publicGetterProtectedSetterFromThisParameter(target=es5).js} (100%) create mode 100644 tests/baselines/reference/publicGetterProtectedSetterFromThisParameter(target=es5).symbols create mode 100644 tests/baselines/reference/publicGetterProtectedSetterFromThisParameter(target=es5).types create mode 100644 tests/baselines/reference/reExportDefaultExport(target=es2015).js rename tests/baselines/reference/{reExportDefaultExport.symbols => reExportDefaultExport(target=es2015).symbols} (100%) rename tests/baselines/reference/{reExportDefaultExport.types => reExportDefaultExport(target=es2015).types} (100%) rename tests/baselines/reference/{reExportDefaultExport.js => reExportDefaultExport(target=es5).js} (100%) create mode 100644 tests/baselines/reference/reExportDefaultExport(target=es5).symbols create mode 100644 tests/baselines/reference/reExportDefaultExport(target=es5).types create mode 100644 tests/baselines/reference/readonlyInDeclarationFile(target=es2015).js rename tests/baselines/reference/{readonlyInDeclarationFile.symbols => readonlyInDeclarationFile(target=es2015).symbols} (100%) rename tests/baselines/reference/{readonlyInDeclarationFile.types => readonlyInDeclarationFile(target=es2015).types} (100%) rename tests/baselines/reference/{readonlyInDeclarationFile.js => readonlyInDeclarationFile(target=es5).js} (100%) create mode 100644 tests/baselines/reference/readonlyInDeclarationFile(target=es5).symbols create mode 100644 tests/baselines/reference/readonlyInDeclarationFile(target=es5).types rename tests/baselines/reference/{readonlyInNonPropertyParameters.errors.txt => readonlyInNonPropertyParameters(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/readonlyInNonPropertyParameters(target=es2015).js rename tests/baselines/reference/{readonlyInNonPropertyParameters.symbols => readonlyInNonPropertyParameters(target=es2015).symbols} (100%) rename tests/baselines/reference/{readonlyInNonPropertyParameters.types => readonlyInNonPropertyParameters(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/readonlyInNonPropertyParameters(target=es5).errors.txt rename tests/baselines/reference/{readonlyInNonPropertyParameters.js => readonlyInNonPropertyParameters(target=es5).js} (100%) create mode 100644 tests/baselines/reference/readonlyInNonPropertyParameters(target=es5).symbols create mode 100644 tests/baselines/reference/readonlyInNonPropertyParameters(target=es5).types rename tests/baselines/reference/{readonlyMembers.errors.txt => readonlyMembers(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/readonlyMembers(target=es2015).js rename tests/baselines/reference/{readonlyMembers.symbols => readonlyMembers(target=es2015).symbols} (100%) rename tests/baselines/reference/{readonlyMembers.types => readonlyMembers(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/readonlyMembers(target=es5).errors.txt rename tests/baselines/reference/{readonlyMembers.js => readonlyMembers(target=es5).js} (100%) create mode 100644 tests/baselines/reference/readonlyMembers(target=es5).symbols create mode 100644 tests/baselines/reference/readonlyMembers(target=es5).types create mode 100644 tests/baselines/reference/recursiveProperties(target=es2015).js rename tests/baselines/reference/{recursiveProperties.symbols => recursiveProperties(target=es2015).symbols} (100%) rename tests/baselines/reference/{recursiveProperties.types => recursiveProperties(target=es2015).types} (100%) rename tests/baselines/reference/{recursiveProperties.js => recursiveProperties(target=es5).js} (100%) create mode 100644 tests/baselines/reference/recursiveProperties(target=es5).symbols create mode 100644 tests/baselines/reference/recursiveProperties(target=es5).types create mode 100644 tests/baselines/reference/restElementWithNumberPropertyName(target=es2015).js rename tests/baselines/reference/{restElementWithNumberPropertyName.symbols => restElementWithNumberPropertyName(target=es2015).symbols} (100%) rename tests/baselines/reference/{restElementWithNumberPropertyName.types => restElementWithNumberPropertyName(target=es2015).types} (100%) rename tests/baselines/reference/{restElementWithNumberPropertyName.js => restElementWithNumberPropertyName(target=es5).js} (100%) create mode 100644 tests/baselines/reference/restElementWithNumberPropertyName(target=es5).symbols create mode 100644 tests/baselines/reference/restElementWithNumberPropertyName(target=es5).types create mode 100644 tests/baselines/reference/restParameterInDownlevelGenerator(target=es2015).js rename tests/baselines/reference/{restParameterInDownlevelGenerator.symbols => restParameterInDownlevelGenerator(target=es2015).symbols} (100%) rename tests/baselines/reference/{restParameterInDownlevelGenerator.types => restParameterInDownlevelGenerator(target=es2015).types} (100%) rename tests/baselines/reference/{restParameterInDownlevelGenerator.js => restParameterInDownlevelGenerator(target=es5).js} (100%) create mode 100644 tests/baselines/reference/restParameterInDownlevelGenerator(target=es5).symbols create mode 100644 tests/baselines/reference/restParameterInDownlevelGenerator(target=es5).types rename tests/baselines/reference/{scannerNumericLiteral1.js => scannerNumericLiteral1(target=es2015).js} (100%) rename tests/baselines/reference/{scannerNumericLiteral1.symbols => scannerNumericLiteral1(target=es2015).symbols} (100%) rename tests/baselines/reference/{scannerNumericLiteral1.types => scannerNumericLiteral1(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/scannerNumericLiteral1(target=es5).js create mode 100644 tests/baselines/reference/scannerNumericLiteral1(target=es5).symbols create mode 100644 tests/baselines/reference/scannerNumericLiteral1(target=es5).types rename tests/baselines/reference/{scannerNumericLiteral2.errors.txt => scannerNumericLiteral2(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{scannerNumericLiteral2.js => scannerNumericLiteral2(target=es2015).js} (100%) rename tests/baselines/reference/{scannerNumericLiteral2.symbols => scannerNumericLiteral2(target=es2015).symbols} (100%) rename tests/baselines/reference/{scannerNumericLiteral2.types => scannerNumericLiteral2(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/scannerNumericLiteral2(target=es5).errors.txt create mode 100644 tests/baselines/reference/scannerNumericLiteral2(target=es5).js create mode 100644 tests/baselines/reference/scannerNumericLiteral2(target=es5).symbols create mode 100644 tests/baselines/reference/scannerNumericLiteral2(target=es5).types rename tests/baselines/reference/{scannerNumericLiteral3.errors.txt => scannerNumericLiteral3(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{scannerNumericLiteral3.js => scannerNumericLiteral3(target=es2015).js} (100%) rename tests/baselines/reference/{scannerNumericLiteral3.symbols => scannerNumericLiteral3(target=es2015).symbols} (100%) rename tests/baselines/reference/{scannerNumericLiteral3.types => scannerNumericLiteral3(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/scannerNumericLiteral3(target=es5).errors.txt create mode 100644 tests/baselines/reference/scannerNumericLiteral3(target=es5).js create mode 100644 tests/baselines/reference/scannerNumericLiteral3(target=es5).symbols create mode 100644 tests/baselines/reference/scannerNumericLiteral3(target=es5).types rename tests/baselines/reference/{scannerNumericLiteral4.errors.txt => scannerNumericLiteral4(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{scannerNumericLiteral4.js => scannerNumericLiteral4(target=es2015).js} (100%) rename tests/baselines/reference/{scannerNumericLiteral4.symbols => scannerNumericLiteral4(target=es2015).symbols} (100%) rename tests/baselines/reference/{scannerNumericLiteral4.types => scannerNumericLiteral4(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/scannerNumericLiteral4(target=es5).errors.txt create mode 100644 tests/baselines/reference/scannerNumericLiteral4(target=es5).js create mode 100644 tests/baselines/reference/scannerNumericLiteral4(target=es5).symbols create mode 100644 tests/baselines/reference/scannerNumericLiteral4(target=es5).types rename tests/baselines/reference/{scannerNumericLiteral5.js => scannerNumericLiteral5(target=es2015).js} (100%) rename tests/baselines/reference/{scannerNumericLiteral5.symbols => scannerNumericLiteral5(target=es2015).symbols} (100%) rename tests/baselines/reference/{scannerNumericLiteral5.types => scannerNumericLiteral5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/scannerNumericLiteral5(target=es5).js create mode 100644 tests/baselines/reference/scannerNumericLiteral5(target=es5).symbols create mode 100644 tests/baselines/reference/scannerNumericLiteral5(target=es5).types rename tests/baselines/reference/{scannerNumericLiteral6.errors.txt => scannerNumericLiteral6(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{scannerNumericLiteral6.js => scannerNumericLiteral6(target=es2015).js} (100%) rename tests/baselines/reference/{scannerNumericLiteral6.symbols => scannerNumericLiteral6(target=es2015).symbols} (100%) rename tests/baselines/reference/{scannerNumericLiteral6.types => scannerNumericLiteral6(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/scannerNumericLiteral6(target=es5).errors.txt create mode 100644 tests/baselines/reference/scannerNumericLiteral6(target=es5).js create mode 100644 tests/baselines/reference/scannerNumericLiteral6(target=es5).symbols create mode 100644 tests/baselines/reference/scannerNumericLiteral6(target=es5).types rename tests/baselines/reference/{scannerNumericLiteral7.js => scannerNumericLiteral7(target=es2015).js} (100%) rename tests/baselines/reference/{scannerNumericLiteral7.symbols => scannerNumericLiteral7(target=es2015).symbols} (100%) rename tests/baselines/reference/{scannerNumericLiteral7.types => scannerNumericLiteral7(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/scannerNumericLiteral7(target=es5).js create mode 100644 tests/baselines/reference/scannerNumericLiteral7(target=es5).symbols create mode 100644 tests/baselines/reference/scannerNumericLiteral7(target=es5).types rename tests/baselines/reference/{scannerNumericLiteral8.errors.txt => scannerNumericLiteral8(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{scannerNumericLiteral8.js => scannerNumericLiteral8(target=es2015).js} (100%) rename tests/baselines/reference/{scannerNumericLiteral8.symbols => scannerNumericLiteral8(target=es2015).symbols} (100%) rename tests/baselines/reference/{scannerNumericLiteral8.types => scannerNumericLiteral8(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/scannerNumericLiteral8(target=es5).errors.txt create mode 100644 tests/baselines/reference/scannerNumericLiteral8(target=es5).js create mode 100644 tests/baselines/reference/scannerNumericLiteral8(target=es5).symbols create mode 100644 tests/baselines/reference/scannerNumericLiteral8(target=es5).types rename tests/baselines/reference/{scannerNumericLiteral9.errors.txt => scannerNumericLiteral9(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{scannerNumericLiteral9.js => scannerNumericLiteral9(target=es2015).js} (100%) rename tests/baselines/reference/{scannerNumericLiteral9.symbols => scannerNumericLiteral9(target=es2015).symbols} (100%) rename tests/baselines/reference/{scannerNumericLiteral9.types => scannerNumericLiteral9(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/scannerNumericLiteral9(target=es5).errors.txt create mode 100644 tests/baselines/reference/scannerNumericLiteral9(target=es5).js create mode 100644 tests/baselines/reference/scannerNumericLiteral9(target=es5).symbols create mode 100644 tests/baselines/reference/scannerNumericLiteral9(target=es5).types rename tests/baselines/reference/{shadowedReservedCompilerDeclarationsWithNoEmit.errors.txt => shadowedReservedCompilerDeclarationsWithNoEmit(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{shadowedReservedCompilerDeclarationsWithNoEmit.symbols => shadowedReservedCompilerDeclarationsWithNoEmit(target=es2015).symbols} (100%) rename tests/baselines/reference/{shadowedReservedCompilerDeclarationsWithNoEmit.types => shadowedReservedCompilerDeclarationsWithNoEmit(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/shadowedReservedCompilerDeclarationsWithNoEmit(target=es5).errors.txt create mode 100644 tests/baselines/reference/shadowedReservedCompilerDeclarationsWithNoEmit(target=es5).symbols create mode 100644 tests/baselines/reference/shadowedReservedCompilerDeclarationsWithNoEmit(target=es5).types rename tests/baselines/reference/{shorthand-property-es5-es6.errors.txt => shorthand-property-es5-es6(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/shorthand-property-es5-es6(target=es2015).js rename tests/baselines/reference/{shorthand-property-es5-es6.symbols => shorthand-property-es5-es6(target=es2015).symbols} (100%) rename tests/baselines/reference/{shorthand-property-es5-es6.types => shorthand-property-es5-es6(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/shorthand-property-es5-es6(target=es5).errors.txt rename tests/baselines/reference/{shorthand-property-es5-es6.js => shorthand-property-es5-es6(target=es5).js} (100%) create mode 100644 tests/baselines/reference/shorthand-property-es5-es6(target=es5).symbols create mode 100644 tests/baselines/reference/shorthand-property-es5-es6(target=es5).types create mode 100644 tests/baselines/reference/shorthandOfExportedEntity02_targetES5_CommonJS(target=es2015).js rename tests/baselines/reference/{shorthandOfExportedEntity02_targetES5_CommonJS.symbols => shorthandOfExportedEntity02_targetES5_CommonJS(target=es2015).symbols} (100%) rename tests/baselines/reference/{shorthandOfExportedEntity02_targetES5_CommonJS.types => shorthandOfExportedEntity02_targetES5_CommonJS(target=es2015).types} (100%) rename tests/baselines/reference/{shorthandOfExportedEntity02_targetES5_CommonJS.js => shorthandOfExportedEntity02_targetES5_CommonJS(target=es5).js} (100%) create mode 100644 tests/baselines/reference/shorthandOfExportedEntity02_targetES5_CommonJS(target=es5).symbols create mode 100644 tests/baselines/reference/shorthandOfExportedEntity02_targetES5_CommonJS(target=es5).types rename tests/baselines/reference/{shorthandPropertyAssignmentsInDestructuring.errors.txt => shorthandPropertyAssignmentsInDestructuring(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/shorthandPropertyAssignmentsInDestructuring(target=es2015).js rename tests/baselines/reference/{shorthandPropertyAssignmentsInDestructuring.symbols => shorthandPropertyAssignmentsInDestructuring(target=es2015).symbols} (100%) rename tests/baselines/reference/{shorthandPropertyAssignmentsInDestructuring.types => shorthandPropertyAssignmentsInDestructuring(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/shorthandPropertyAssignmentsInDestructuring(target=es5).errors.txt rename tests/baselines/reference/{shorthandPropertyAssignmentsInDestructuring.js => shorthandPropertyAssignmentsInDestructuring(target=es5).js} (100%) create mode 100644 tests/baselines/reference/shorthandPropertyAssignmentsInDestructuring(target=es5).symbols create mode 100644 tests/baselines/reference/shorthandPropertyAssignmentsInDestructuring(target=es5).types rename tests/baselines/reference/{sourceMap-Comment1.js => sourceMap-Comment1(target=es2015).js} (100%) rename tests/baselines/reference/{sourceMap-Comment1.js.map => sourceMap-Comment1(target=es2015).js.map} (100%) rename tests/baselines/reference/{sourceMap-Comment1.sourcemap.txt => sourceMap-Comment1(target=es2015).sourcemap.txt} (100%) rename tests/baselines/reference/{sourceMap-Comment1.symbols => sourceMap-Comment1(target=es2015).symbols} (100%) rename tests/baselines/reference/{sourceMap-Comment1.types => sourceMap-Comment1(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/sourceMap-Comment1(target=es5).js create mode 100644 tests/baselines/reference/sourceMap-Comment1(target=es5).js.map create mode 100644 tests/baselines/reference/sourceMap-Comment1(target=es5).sourcemap.txt create mode 100644 tests/baselines/reference/sourceMap-Comment1(target=es5).symbols create mode 100644 tests/baselines/reference/sourceMap-Comment1(target=es5).types create mode 100644 tests/baselines/reference/sourceMap-Comments(target=es2015).js create mode 100644 tests/baselines/reference/sourceMap-Comments(target=es2015).js.map create mode 100644 tests/baselines/reference/sourceMap-Comments(target=es2015).sourcemap.txt rename tests/baselines/reference/{sourceMap-Comments.symbols => sourceMap-Comments(target=es2015).symbols} (100%) rename tests/baselines/reference/{sourceMap-Comments.types => sourceMap-Comments(target=es2015).types} (100%) rename tests/baselines/reference/{sourceMap-Comments.js => sourceMap-Comments(target=es5).js} (100%) rename tests/baselines/reference/{sourceMap-Comments.js.map => sourceMap-Comments(target=es5).js.map} (100%) rename tests/baselines/reference/{sourceMap-Comments.sourcemap.txt => sourceMap-Comments(target=es5).sourcemap.txt} (100%) create mode 100644 tests/baselines/reference/sourceMap-Comments(target=es5).symbols create mode 100644 tests/baselines/reference/sourceMap-Comments(target=es5).types rename tests/baselines/reference/{sourceMap-Comments2.js => sourceMap-Comments2(target=es2015).js} (100%) rename tests/baselines/reference/{sourceMap-Comments2.js.map => sourceMap-Comments2(target=es2015).js.map} (100%) rename tests/baselines/reference/{sourceMap-Comments2.sourcemap.txt => sourceMap-Comments2(target=es2015).sourcemap.txt} (100%) rename tests/baselines/reference/{sourceMap-Comments2.symbols => sourceMap-Comments2(target=es2015).symbols} (100%) rename tests/baselines/reference/{sourceMap-Comments2.types => sourceMap-Comments2(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/sourceMap-Comments2(target=es5).js create mode 100644 tests/baselines/reference/sourceMap-Comments2(target=es5).js.map create mode 100644 tests/baselines/reference/sourceMap-Comments2(target=es5).sourcemap.txt create mode 100644 tests/baselines/reference/sourceMap-Comments2(target=es5).symbols create mode 100644 tests/baselines/reference/sourceMap-Comments2(target=es5).types rename tests/baselines/reference/{sourceMap-EmptyFile1.js => sourceMap-EmptyFile1(target=es2015).js} (100%) rename tests/baselines/reference/{sourceMap-EmptyFile1.js.map => sourceMap-EmptyFile1(target=es2015).js.map} (100%) rename tests/baselines/reference/{sourceMap-EmptyFile1.sourcemap.txt => sourceMap-EmptyFile1(target=es2015).sourcemap.txt} (100%) rename tests/baselines/reference/{sourceMap-EmptyFile1.symbols => sourceMap-EmptyFile1(target=es2015).symbols} (100%) rename tests/baselines/reference/{sourceMap-EmptyFile1.types => sourceMap-EmptyFile1(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/sourceMap-EmptyFile1(target=es5).js create mode 100644 tests/baselines/reference/sourceMap-EmptyFile1(target=es5).js.map create mode 100644 tests/baselines/reference/sourceMap-EmptyFile1(target=es5).sourcemap.txt create mode 100644 tests/baselines/reference/sourceMap-EmptyFile1(target=es5).symbols create mode 100644 tests/baselines/reference/sourceMap-EmptyFile1(target=es5).types rename tests/baselines/reference/{sourceMap-InterfacePrecedingVariableDeclaration1.js => sourceMap-InterfacePrecedingVariableDeclaration1(target=es2015).js} (100%) rename tests/baselines/reference/{sourceMap-InterfacePrecedingVariableDeclaration1.js.map => sourceMap-InterfacePrecedingVariableDeclaration1(target=es2015).js.map} (100%) rename tests/baselines/reference/{sourceMap-InterfacePrecedingVariableDeclaration1.sourcemap.txt => sourceMap-InterfacePrecedingVariableDeclaration1(target=es2015).sourcemap.txt} (100%) rename tests/baselines/reference/{sourceMap-InterfacePrecedingVariableDeclaration1.symbols => sourceMap-InterfacePrecedingVariableDeclaration1(target=es2015).symbols} (100%) rename tests/baselines/reference/{sourceMap-InterfacePrecedingVariableDeclaration1.types => sourceMap-InterfacePrecedingVariableDeclaration1(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/sourceMap-InterfacePrecedingVariableDeclaration1(target=es5).js create mode 100644 tests/baselines/reference/sourceMap-InterfacePrecedingVariableDeclaration1(target=es5).js.map create mode 100644 tests/baselines/reference/sourceMap-InterfacePrecedingVariableDeclaration1(target=es5).sourcemap.txt create mode 100644 tests/baselines/reference/sourceMap-InterfacePrecedingVariableDeclaration1(target=es5).symbols create mode 100644 tests/baselines/reference/sourceMap-InterfacePrecedingVariableDeclaration1(target=es5).types rename tests/baselines/reference/{sourceMap-LineBreaks.js => sourceMap-LineBreaks(target=es2015).js} (82%) rename tests/baselines/reference/{sourceMap-LineBreaks.js.map => sourceMap-LineBreaks(target=es2015).js.map} (92%) rename tests/baselines/reference/{sourceMap-LineBreaks.sourcemap.txt => sourceMap-LineBreaks(target=es2015).sourcemap.txt} (96%) rename tests/baselines/reference/{sourceMap-LineBreaks.symbols => sourceMap-LineBreaks(target=es2015).symbols} (100%) rename tests/baselines/reference/{sourceMap-LineBreaks.types => sourceMap-LineBreaks(target=es2015).types} (93%) create mode 100644 tests/baselines/reference/sourceMap-LineBreaks(target=es5).js create mode 100644 tests/baselines/reference/sourceMap-LineBreaks(target=es5).js.map create mode 100644 tests/baselines/reference/sourceMap-LineBreaks(target=es5).sourcemap.txt create mode 100644 tests/baselines/reference/sourceMap-LineBreaks(target=es5).symbols create mode 100644 tests/baselines/reference/sourceMap-LineBreaks(target=es5).types rename tests/baselines/reference/{sourceMap-NewLine1.js => sourceMap-NewLine1(target=es2015).js} (100%) rename tests/baselines/reference/{sourceMap-NewLine1.js.map => sourceMap-NewLine1(target=es2015).js.map} (100%) rename tests/baselines/reference/{sourceMap-NewLine1.sourcemap.txt => sourceMap-NewLine1(target=es2015).sourcemap.txt} (100%) rename tests/baselines/reference/{sourceMap-NewLine1.symbols => sourceMap-NewLine1(target=es2015).symbols} (100%) rename tests/baselines/reference/{sourceMap-NewLine1.types => sourceMap-NewLine1(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/sourceMap-NewLine1(target=es5).js create mode 100644 tests/baselines/reference/sourceMap-NewLine1(target=es5).js.map create mode 100644 tests/baselines/reference/sourceMap-NewLine1(target=es5).sourcemap.txt create mode 100644 tests/baselines/reference/sourceMap-NewLine1(target=es5).symbols create mode 100644 tests/baselines/reference/sourceMap-NewLine1(target=es5).types rename tests/baselines/reference/{sourceMap-SemiColon1.js => sourceMap-SemiColon1(target=es2015).js} (100%) rename tests/baselines/reference/{sourceMap-SemiColon1.js.map => sourceMap-SemiColon1(target=es2015).js.map} (100%) rename tests/baselines/reference/{sourceMap-SemiColon1.sourcemap.txt => sourceMap-SemiColon1(target=es2015).sourcemap.txt} (100%) rename tests/baselines/reference/{sourceMap-SemiColon1.symbols => sourceMap-SemiColon1(target=es2015).symbols} (100%) rename tests/baselines/reference/{sourceMap-SemiColon1.types => sourceMap-SemiColon1(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/sourceMap-SemiColon1(target=es5).js create mode 100644 tests/baselines/reference/sourceMap-SemiColon1(target=es5).js.map create mode 100644 tests/baselines/reference/sourceMap-SemiColon1(target=es5).sourcemap.txt create mode 100644 tests/baselines/reference/sourceMap-SemiColon1(target=es5).symbols create mode 100644 tests/baselines/reference/sourceMap-SemiColon1(target=es5).types rename tests/baselines/reference/{sourceMap-SingleSpace1.js => sourceMap-SingleSpace1(target=es2015).js} (100%) rename tests/baselines/reference/{sourceMap-SingleSpace1.js.map => sourceMap-SingleSpace1(target=es2015).js.map} (100%) rename tests/baselines/reference/{sourceMap-SingleSpace1.sourcemap.txt => sourceMap-SingleSpace1(target=es2015).sourcemap.txt} (100%) rename tests/baselines/reference/{sourceMap-SingleSpace1.symbols => sourceMap-SingleSpace1(target=es2015).symbols} (100%) rename tests/baselines/reference/{sourceMap-SingleSpace1.types => sourceMap-SingleSpace1(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/sourceMap-SingleSpace1(target=es5).js create mode 100644 tests/baselines/reference/sourceMap-SingleSpace1(target=es5).js.map create mode 100644 tests/baselines/reference/sourceMap-SingleSpace1(target=es5).sourcemap.txt create mode 100644 tests/baselines/reference/sourceMap-SingleSpace1(target=es5).symbols create mode 100644 tests/baselines/reference/sourceMap-SingleSpace1(target=es5).types rename tests/baselines/reference/{sourceMap-StringLiteralWithNewLine.js => sourceMap-StringLiteralWithNewLine(target=es2015).js} (100%) rename tests/baselines/reference/{sourceMap-StringLiteralWithNewLine.js.map => sourceMap-StringLiteralWithNewLine(target=es2015).js.map} (100%) rename tests/baselines/reference/{sourceMap-StringLiteralWithNewLine.sourcemap.txt => sourceMap-StringLiteralWithNewLine(target=es2015).sourcemap.txt} (100%) rename tests/baselines/reference/{sourceMap-StringLiteralWithNewLine.symbols => sourceMap-StringLiteralWithNewLine(target=es2015).symbols} (100%) rename tests/baselines/reference/{sourceMap-StringLiteralWithNewLine.types => sourceMap-StringLiteralWithNewLine(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/sourceMap-StringLiteralWithNewLine(target=es5).js create mode 100644 tests/baselines/reference/sourceMap-StringLiteralWithNewLine(target=es5).js.map create mode 100644 tests/baselines/reference/sourceMap-StringLiteralWithNewLine(target=es5).sourcemap.txt create mode 100644 tests/baselines/reference/sourceMap-StringLiteralWithNewLine(target=es5).symbols create mode 100644 tests/baselines/reference/sourceMap-StringLiteralWithNewLine(target=es5).types create mode 100644 tests/baselines/reference/sourceMapValidationClass(target=es2015).js create mode 100644 tests/baselines/reference/sourceMapValidationClass(target=es2015).js.map create mode 100644 tests/baselines/reference/sourceMapValidationClass(target=es2015).sourcemap.txt rename tests/baselines/reference/{sourceMapValidationClass.symbols => sourceMapValidationClass(target=es2015).symbols} (100%) rename tests/baselines/reference/{sourceMapValidationClass.types => sourceMapValidationClass(target=es2015).types} (100%) rename tests/baselines/reference/{sourceMapValidationClass.js => sourceMapValidationClass(target=es5).js} (100%) rename tests/baselines/reference/{sourceMapValidationClass.js.map => sourceMapValidationClass(target=es5).js.map} (100%) rename tests/baselines/reference/{sourceMapValidationClass.sourcemap.txt => sourceMapValidationClass(target=es5).sourcemap.txt} (100%) create mode 100644 tests/baselines/reference/sourceMapValidationClass(target=es5).symbols create mode 100644 tests/baselines/reference/sourceMapValidationClass(target=es5).types create mode 100644 tests/baselines/reference/sourceMapValidationDecorators(target=es2015).js create mode 100644 tests/baselines/reference/sourceMapValidationDecorators(target=es2015).js.map create mode 100644 tests/baselines/reference/sourceMapValidationDecorators(target=es2015).sourcemap.txt rename tests/baselines/reference/{sourceMapValidationDecorators.symbols => sourceMapValidationDecorators(target=es2015).symbols} (100%) rename tests/baselines/reference/{sourceMapValidationDecorators.types => sourceMapValidationDecorators(target=es2015).types} (100%) rename tests/baselines/reference/{sourceMapValidationDecorators.js => sourceMapValidationDecorators(target=es5).js} (100%) rename tests/baselines/reference/{sourceMapValidationDecorators.js.map => sourceMapValidationDecorators(target=es5).js.map} (100%) rename tests/baselines/reference/{sourceMapValidationDecorators.sourcemap.txt => sourceMapValidationDecorators(target=es5).sourcemap.txt} (100%) create mode 100644 tests/baselines/reference/sourceMapValidationDecorators(target=es5).symbols create mode 100644 tests/baselines/reference/sourceMapValidationDecorators(target=es5).types rename tests/baselines/reference/{staticPropertyNameConflicts(usedefineforclassfields=false).errors.txt => staticPropertyNameConflicts(target=es2015,usedefineforclassfields=false).errors.txt} (100%) create mode 100644 tests/baselines/reference/staticPropertyNameConflicts(target=es2015,usedefineforclassfields=false).js rename tests/baselines/reference/{staticPropertyNameConflicts(usedefineforclassfields=false).symbols => staticPropertyNameConflicts(target=es2015,usedefineforclassfields=false).symbols} (100%) rename tests/baselines/reference/{staticPropertyNameConflicts(usedefineforclassfields=false).types => staticPropertyNameConflicts(target=es2015,usedefineforclassfields=false).types} (100%) rename tests/baselines/reference/{staticPropertyNameConflicts(usedefineforclassfields=true).errors.txt => staticPropertyNameConflicts(target=es2015,usedefineforclassfields=true).errors.txt} (100%) create mode 100644 tests/baselines/reference/staticPropertyNameConflicts(target=es2015,usedefineforclassfields=true).js rename tests/baselines/reference/{staticPropertyNameConflicts(usedefineforclassfields=true).symbols => staticPropertyNameConflicts(target=es2015,usedefineforclassfields=true).symbols} (100%) rename tests/baselines/reference/{staticPropertyNameConflicts(usedefineforclassfields=true).types => staticPropertyNameConflicts(target=es2015,usedefineforclassfields=true).types} (100%) create mode 100644 tests/baselines/reference/staticPropertyNameConflicts(target=es5,usedefineforclassfields=false).errors.txt rename tests/baselines/reference/{staticPropertyNameConflicts(usedefineforclassfields=false).js => staticPropertyNameConflicts(target=es5,usedefineforclassfields=false).js} (100%) create mode 100644 tests/baselines/reference/staticPropertyNameConflicts(target=es5,usedefineforclassfields=false).symbols create mode 100644 tests/baselines/reference/staticPropertyNameConflicts(target=es5,usedefineforclassfields=false).types create mode 100644 tests/baselines/reference/staticPropertyNameConflicts(target=es5,usedefineforclassfields=true).errors.txt rename tests/baselines/reference/{staticPropertyNameConflicts(usedefineforclassfields=true).js => staticPropertyNameConflicts(target=es5,usedefineforclassfields=true).js} (100%) create mode 100644 tests/baselines/reference/staticPropertyNameConflicts(target=es5,usedefineforclassfields=true).symbols create mode 100644 tests/baselines/reference/staticPropertyNameConflicts(target=es5,usedefineforclassfields=true).types create mode 100644 tests/baselines/reference/superInObjectLiterals_ES5(target=es2015).errors.txt create mode 100644 tests/baselines/reference/superInObjectLiterals_ES5(target=es2015).js rename tests/baselines/reference/{superInObjectLiterals_ES5.symbols => superInObjectLiterals_ES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{superInObjectLiterals_ES5.types => superInObjectLiterals_ES5(target=es2015).types} (100%) rename tests/baselines/reference/{superInObjectLiterals_ES5.errors.txt => superInObjectLiterals_ES5(target=es5).errors.txt} (100%) rename tests/baselines/reference/{superInObjectLiterals_ES5.js => superInObjectLiterals_ES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/superInObjectLiterals_ES5(target=es5).symbols create mode 100644 tests/baselines/reference/superInObjectLiterals_ES5(target=es5).types create mode 100644 tests/baselines/reference/superPropertyAccessInComputedPropertiesOfNestedType_ES5(target=es2015).js rename tests/baselines/reference/{superPropertyAccessInComputedPropertiesOfNestedType_ES5.symbols => superPropertyAccessInComputedPropertiesOfNestedType_ES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{superPropertyAccessInComputedPropertiesOfNestedType_ES5.types => superPropertyAccessInComputedPropertiesOfNestedType_ES5(target=es2015).types} (100%) rename tests/baselines/reference/{superPropertyAccessInComputedPropertiesOfNestedType_ES5.js => superPropertyAccessInComputedPropertiesOfNestedType_ES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/superPropertyAccessInComputedPropertiesOfNestedType_ES5(target=es5).symbols create mode 100644 tests/baselines/reference/superPropertyAccessInComputedPropertiesOfNestedType_ES5(target=es5).types create mode 100644 tests/baselines/reference/superPropertyAccessNoError(target=es2015).js rename tests/baselines/reference/{superPropertyAccessNoError.symbols => superPropertyAccessNoError(target=es2015).symbols} (100%) rename tests/baselines/reference/{superPropertyAccessNoError.types => superPropertyAccessNoError(target=es2015).types} (100%) rename tests/baselines/reference/{superPropertyAccessNoError.js => superPropertyAccessNoError(target=es5).js} (100%) create mode 100644 tests/baselines/reference/superPropertyAccessNoError(target=es5).symbols create mode 100644 tests/baselines/reference/superPropertyAccessNoError(target=es5).types create mode 100644 tests/baselines/reference/superPropertyAccess_ES5(target=es2015).js rename tests/baselines/reference/{superPropertyAccess_ES5.symbols => superPropertyAccess_ES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{superPropertyAccess_ES5.types => superPropertyAccess_ES5(target=es2015).types} (100%) rename tests/baselines/reference/{superPropertyAccess_ES5.errors.txt => superPropertyAccess_ES5(target=es5).errors.txt} (100%) rename tests/baselines/reference/{superPropertyAccess_ES5.js => superPropertyAccess_ES5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/superPropertyAccess_ES5(target=es5).symbols create mode 100644 tests/baselines/reference/superPropertyAccess_ES5(target=es5).types create mode 100644 tests/baselines/reference/superSymbolIndexedAccess5(target=es2015).js rename tests/baselines/reference/{superSymbolIndexedAccess5.symbols => superSymbolIndexedAccess5(target=es2015).symbols} (100%) rename tests/baselines/reference/{superSymbolIndexedAccess5.types => superSymbolIndexedAccess5(target=es2015).types} (100%) rename tests/baselines/reference/{superSymbolIndexedAccess5.js => superSymbolIndexedAccess5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/superSymbolIndexedAccess5(target=es5).symbols create mode 100644 tests/baselines/reference/superSymbolIndexedAccess5(target=es5).types create mode 100644 tests/baselines/reference/superSymbolIndexedAccess6(target=es2015).js rename tests/baselines/reference/{superSymbolIndexedAccess6.symbols => superSymbolIndexedAccess6(target=es2015).symbols} (100%) rename tests/baselines/reference/{superSymbolIndexedAccess6.types => superSymbolIndexedAccess6(target=es2015).types} (100%) rename tests/baselines/reference/{superSymbolIndexedAccess6.js => superSymbolIndexedAccess6(target=es5).js} (100%) create mode 100644 tests/baselines/reference/superSymbolIndexedAccess6(target=es5).symbols create mode 100644 tests/baselines/reference/superSymbolIndexedAccess6(target=es5).types rename tests/baselines/reference/{systemExportAssignment.errors.txt => systemExportAssignment(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{systemExportAssignment.js => systemExportAssignment(target=es2015).js} (100%) rename tests/baselines/reference/{systemExportAssignment.symbols => systemExportAssignment(target=es2015).symbols} (100%) rename tests/baselines/reference/{systemExportAssignment.types => systemExportAssignment(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/systemExportAssignment(target=es5).errors.txt create mode 100644 tests/baselines/reference/systemExportAssignment(target=es5).js create mode 100644 tests/baselines/reference/systemExportAssignment(target=es5).symbols create mode 100644 tests/baselines/reference/systemExportAssignment(target=es5).types rename tests/baselines/reference/{systemExportAssignment2.errors.txt => systemExportAssignment2(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{systemExportAssignment2.js => systemExportAssignment2(target=es2015).js} (100%) rename tests/baselines/reference/{systemExportAssignment2.symbols => systemExportAssignment2(target=es2015).symbols} (100%) rename tests/baselines/reference/{systemExportAssignment2.types => systemExportAssignment2(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/systemExportAssignment2(target=es5).errors.txt create mode 100644 tests/baselines/reference/systemExportAssignment2(target=es5).js create mode 100644 tests/baselines/reference/systemExportAssignment2(target=es5).symbols create mode 100644 tests/baselines/reference/systemExportAssignment2(target=es5).types rename tests/baselines/reference/{systemExportAssignment3.errors.txt => systemExportAssignment3(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{systemExportAssignment3.js => systemExportAssignment3(target=es2015).js} (100%) rename tests/baselines/reference/{systemExportAssignment3.symbols => systemExportAssignment3(target=es2015).symbols} (100%) rename tests/baselines/reference/{systemExportAssignment3.types => systemExportAssignment3(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/systemExportAssignment3(target=es5).errors.txt create mode 100644 tests/baselines/reference/systemExportAssignment3(target=es5).js create mode 100644 tests/baselines/reference/systemExportAssignment3(target=es5).symbols create mode 100644 tests/baselines/reference/systemExportAssignment3(target=es5).types rename tests/baselines/reference/{systemModule10_ES5.errors.txt => systemModule10_ES5(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{systemModule10_ES5.js => systemModule10_ES5(target=es2015).js} (100%) rename tests/baselines/reference/{systemModule10_ES5.symbols => systemModule10_ES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{systemModule10_ES5.types => systemModule10_ES5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/systemModule10_ES5(target=es5).errors.txt create mode 100644 tests/baselines/reference/systemModule10_ES5(target=es5).js create mode 100644 tests/baselines/reference/systemModule10_ES5(target=es5).symbols create mode 100644 tests/baselines/reference/systemModule10_ES5(target=es5).types create mode 100644 tests/baselines/reference/taggedTemplateStringsWithCurriedFunction(target=es2015).js rename tests/baselines/reference/{taggedTemplateStringsWithCurriedFunction.symbols => taggedTemplateStringsWithCurriedFunction(target=es2015).symbols} (100%) rename tests/baselines/reference/{taggedTemplateStringsWithCurriedFunction.types => taggedTemplateStringsWithCurriedFunction(target=es2015).types} (100%) rename tests/baselines/reference/{taggedTemplateStringsWithCurriedFunction.js => taggedTemplateStringsWithCurriedFunction(target=es5).js} (100%) create mode 100644 tests/baselines/reference/taggedTemplateStringsWithCurriedFunction(target=es5).symbols create mode 100644 tests/baselines/reference/taggedTemplateStringsWithCurriedFunction(target=es5).types create mode 100644 tests/baselines/reference/taggedTemplateWithoutDeclaredHelper(target=es2015).js rename tests/baselines/reference/{taggedTemplateWithoutDeclaredHelper.symbols => taggedTemplateWithoutDeclaredHelper(target=es2015).symbols} (100%) rename tests/baselines/reference/{taggedTemplateWithoutDeclaredHelper.types => taggedTemplateWithoutDeclaredHelper(target=es2015).types} (100%) rename tests/baselines/reference/{taggedTemplateWithoutDeclaredHelper.errors.txt => taggedTemplateWithoutDeclaredHelper(target=es5).errors.txt} (100%) rename tests/baselines/reference/{taggedTemplateWithoutDeclaredHelper.js => taggedTemplateWithoutDeclaredHelper(target=es5).js} (100%) create mode 100644 tests/baselines/reference/taggedTemplateWithoutDeclaredHelper(target=es5).symbols create mode 100644 tests/baselines/reference/taggedTemplateWithoutDeclaredHelper(target=es5).types create mode 100644 tests/baselines/reference/taggedTemplatesInModuleAndGlobal(target=es2015).js rename tests/baselines/reference/{taggedTemplatesInModuleAndGlobal.symbols => taggedTemplatesInModuleAndGlobal(target=es2015).symbols} (100%) rename tests/baselines/reference/{taggedTemplatesInModuleAndGlobal.types => taggedTemplatesInModuleAndGlobal(target=es2015).types} (100%) rename tests/baselines/reference/{taggedTemplatesInModuleAndGlobal.js => taggedTemplatesInModuleAndGlobal(target=es5).js} (100%) create mode 100644 tests/baselines/reference/taggedTemplatesInModuleAndGlobal(target=es5).symbols create mode 100644 tests/baselines/reference/taggedTemplatesInModuleAndGlobal(target=es5).types create mode 100644 tests/baselines/reference/targetEs6DecoratorMetadataImportNotElided(target=es2015).js rename tests/baselines/reference/{targetEs6DecoratorMetadataImportNotElided.symbols => targetEs6DecoratorMetadataImportNotElided(target=es2015).symbols} (100%) rename tests/baselines/reference/{targetEs6DecoratorMetadataImportNotElided.types => targetEs6DecoratorMetadataImportNotElided(target=es2015).types} (100%) rename tests/baselines/reference/{targetEs6DecoratorMetadataImportNotElided.js => targetEs6DecoratorMetadataImportNotElided(target=es5).js} (100%) create mode 100644 tests/baselines/reference/targetEs6DecoratorMetadataImportNotElided(target=es5).symbols create mode 100644 tests/baselines/reference/targetEs6DecoratorMetadataImportNotElided(target=es5).types rename tests/baselines/reference/{templateStringsArrayTypeDefinedInES5Mode.errors.txt => templateStringsArrayTypeDefinedInES5Mode(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/templateStringsArrayTypeDefinedInES5Mode(target=es2015).js rename tests/baselines/reference/{templateStringsArrayTypeDefinedInES5Mode.symbols => templateStringsArrayTypeDefinedInES5Mode(target=es2015).symbols} (100%) rename tests/baselines/reference/{templateStringsArrayTypeDefinedInES5Mode.types => templateStringsArrayTypeDefinedInES5Mode(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/templateStringsArrayTypeDefinedInES5Mode(target=es5).errors.txt rename tests/baselines/reference/{templateStringsArrayTypeDefinedInES5Mode.js => templateStringsArrayTypeDefinedInES5Mode(target=es5).js} (100%) create mode 100644 tests/baselines/reference/templateStringsArrayTypeDefinedInES5Mode(target=es5).symbols create mode 100644 tests/baselines/reference/templateStringsArrayTypeDefinedInES5Mode(target=es5).types rename tests/baselines/reference/{templateStringsArrayTypeNotDefinedES5Mode.errors.txt => templateStringsArrayTypeNotDefinedES5Mode(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/templateStringsArrayTypeNotDefinedES5Mode(target=es2015).js rename tests/baselines/reference/{templateStringsArrayTypeNotDefinedES5Mode.symbols => templateStringsArrayTypeNotDefinedES5Mode(target=es2015).symbols} (100%) rename tests/baselines/reference/{templateStringsArrayTypeNotDefinedES5Mode.types => templateStringsArrayTypeNotDefinedES5Mode(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/templateStringsArrayTypeNotDefinedES5Mode(target=es5).errors.txt rename tests/baselines/reference/{templateStringsArrayTypeNotDefinedES5Mode.js => templateStringsArrayTypeNotDefinedES5Mode(target=es5).js} (100%) create mode 100644 tests/baselines/reference/templateStringsArrayTypeNotDefinedES5Mode(target=es5).symbols create mode 100644 tests/baselines/reference/templateStringsArrayTypeNotDefinedES5Mode(target=es5).types create mode 100644 tests/baselines/reference/thisAndSuperInStaticMembers3(target=es2015).js rename tests/baselines/reference/{thisAndSuperInStaticMembers3.js => thisAndSuperInStaticMembers3(target=es5).js} (100%) create mode 100644 tests/baselines/reference/thisAndSuperInStaticMembers4(target=es2015).js rename tests/baselines/reference/{thisAndSuperInStaticMembers4.js => thisAndSuperInStaticMembers4(target=es5).js} (100%) rename tests/baselines/reference/{thisTypeInAccessors.errors.txt => thisTypeInAccessors(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/thisTypeInAccessors(target=es2015).js rename tests/baselines/reference/{thisTypeInAccessors.symbols => thisTypeInAccessors(target=es2015).symbols} (100%) rename tests/baselines/reference/{thisTypeInAccessors.types => thisTypeInAccessors(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/thisTypeInAccessors(target=es5).errors.txt rename tests/baselines/reference/{thisTypeInAccessors.js => thisTypeInAccessors(target=es5).js} (100%) create mode 100644 tests/baselines/reference/thisTypeInAccessors(target=es5).symbols create mode 100644 tests/baselines/reference/thisTypeInAccessors(target=es5).types rename tests/baselines/reference/{thisTypeInAccessorsNegative.errors.txt => thisTypeInAccessorsNegative(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/thisTypeInAccessorsNegative(target=es2015).js rename tests/baselines/reference/{thisTypeInAccessorsNegative.symbols => thisTypeInAccessorsNegative(target=es2015).symbols} (100%) rename tests/baselines/reference/{thisTypeInAccessorsNegative.types => thisTypeInAccessorsNegative(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/thisTypeInAccessorsNegative(target=es5).errors.txt rename tests/baselines/reference/{thisTypeInAccessorsNegative.js => thisTypeInAccessorsNegative(target=es5).js} (100%) create mode 100644 tests/baselines/reference/thisTypeInAccessorsNegative(target=es5).symbols create mode 100644 tests/baselines/reference/thisTypeInAccessorsNegative(target=es5).types create mode 100644 tests/baselines/reference/thisTypeInObjectLiterals2(target=es2015).js rename tests/baselines/reference/{thisTypeInObjectLiterals2.symbols => thisTypeInObjectLiterals2(target=es2015).symbols} (100%) rename tests/baselines/reference/{thisTypeInObjectLiterals2.types => thisTypeInObjectLiterals2(target=es2015).types} (100%) rename tests/baselines/reference/{thisTypeInObjectLiterals2.js => thisTypeInObjectLiterals2(target=es5).js} (100%) create mode 100644 tests/baselines/reference/thisTypeInObjectLiterals2(target=es5).symbols create mode 100644 tests/baselines/reference/thisTypeInObjectLiterals2(target=es5).types rename tests/baselines/reference/{trailingCommasES5.js => trailingCommasES5(target=es2015).js} (100%) rename tests/baselines/reference/{trailingCommasES5.symbols => trailingCommasES5(target=es2015).symbols} (100%) rename tests/baselines/reference/{trailingCommasES5.types => trailingCommasES5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/trailingCommasES5(target=es5).js create mode 100644 tests/baselines/reference/trailingCommasES5(target=es5).symbols create mode 100644 tests/baselines/reference/trailingCommasES5(target=es5).types rename tests/baselines/reference/{trailingCommasInFunctionParametersAndArguments.errors.txt => trailingCommasInFunctionParametersAndArguments(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/trailingCommasInFunctionParametersAndArguments(target=es2015).js rename tests/baselines/reference/{trailingCommasInFunctionParametersAndArguments.symbols => trailingCommasInFunctionParametersAndArguments(target=es2015).symbols} (100%) rename tests/baselines/reference/{trailingCommasInFunctionParametersAndArguments.types => trailingCommasInFunctionParametersAndArguments(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/trailingCommasInFunctionParametersAndArguments(target=es5).errors.txt rename tests/baselines/reference/{trailingCommasInFunctionParametersAndArguments.js => trailingCommasInFunctionParametersAndArguments(target=es5).js} (100%) create mode 100644 tests/baselines/reference/trailingCommasInFunctionParametersAndArguments(target=es5).symbols create mode 100644 tests/baselines/reference/trailingCommasInFunctionParametersAndArguments(target=es5).types create mode 100644 tests/baselines/reference/transformArrowInBlockScopedLoopVarInitializer(target=es2015).js rename tests/baselines/reference/{transformArrowInBlockScopedLoopVarInitializer.symbols => transformArrowInBlockScopedLoopVarInitializer(target=es2015).symbols} (100%) rename tests/baselines/reference/{transformArrowInBlockScopedLoopVarInitializer.types => transformArrowInBlockScopedLoopVarInitializer(target=es2015).types} (100%) rename tests/baselines/reference/{transformArrowInBlockScopedLoopVarInitializer.js => transformArrowInBlockScopedLoopVarInitializer(target=es5).js} (100%) create mode 100644 tests/baselines/reference/transformArrowInBlockScopedLoopVarInitializer(target=es5).symbols create mode 100644 tests/baselines/reference/transformArrowInBlockScopedLoopVarInitializer(target=es5).types create mode 100644 tests/baselines/reference/transformNestedGeneratorsWithTry(target=es2015).js rename tests/baselines/reference/{transformNestedGeneratorsWithTry.symbols => transformNestedGeneratorsWithTry(target=es2015).symbols} (100%) create mode 100644 tests/baselines/reference/transformNestedGeneratorsWithTry(target=es2015).types rename tests/baselines/reference/{transformNestedGeneratorsWithTry.errors.txt => transformNestedGeneratorsWithTry(target=es5).errors.txt} (100%) rename tests/baselines/reference/{transformNestedGeneratorsWithTry.js => transformNestedGeneratorsWithTry(target=es5).js} (100%) create mode 100644 tests/baselines/reference/transformNestedGeneratorsWithTry(target=es5).symbols rename tests/baselines/reference/{transformNestedGeneratorsWithTry.types => transformNestedGeneratorsWithTry(target=es5).types} (100%) create mode 100644 tests/baselines/reference/transformParenthesizesConditionalSubexpression(target=es2015).js rename tests/baselines/reference/{transformParenthesizesConditionalSubexpression.symbols => transformParenthesizesConditionalSubexpression(target=es2015).symbols} (100%) rename tests/baselines/reference/{transformParenthesizesConditionalSubexpression.types => transformParenthesizesConditionalSubexpression(target=es2015).types} (100%) rename tests/baselines/reference/{transformParenthesizesConditionalSubexpression.js => transformParenthesizesConditionalSubexpression(target=es5).js} (100%) create mode 100644 tests/baselines/reference/transformParenthesizesConditionalSubexpression(target=es5).symbols create mode 100644 tests/baselines/reference/transformParenthesizesConditionalSubexpression(target=es5).types rename tests/baselines/reference/{trivialSubtypeReductionNoStructuralCheck.errors.txt => trivialSubtypeReductionNoStructuralCheck(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/trivialSubtypeReductionNoStructuralCheck(target=es2015).js rename tests/baselines/reference/{trivialSubtypeReductionNoStructuralCheck.symbols => trivialSubtypeReductionNoStructuralCheck(target=es2015).symbols} (100%) rename tests/baselines/reference/{trivialSubtypeReductionNoStructuralCheck.types => trivialSubtypeReductionNoStructuralCheck(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/trivialSubtypeReductionNoStructuralCheck(target=es5).errors.txt rename tests/baselines/reference/{trivialSubtypeReductionNoStructuralCheck.js => trivialSubtypeReductionNoStructuralCheck(target=es5).js} (100%) create mode 100644 tests/baselines/reference/trivialSubtypeReductionNoStructuralCheck(target=es5).symbols create mode 100644 tests/baselines/reference/trivialSubtypeReductionNoStructuralCheck(target=es5).types create mode 100644 tests/baselines/reference/trivialSubtypeReductionNoStructuralCheck2(target=es2015).js rename tests/baselines/reference/{trivialSubtypeReductionNoStructuralCheck2.symbols => trivialSubtypeReductionNoStructuralCheck2(target=es2015).symbols} (100%) rename tests/baselines/reference/{trivialSubtypeReductionNoStructuralCheck2.types => trivialSubtypeReductionNoStructuralCheck2(target=es2015).types} (100%) rename tests/baselines/reference/{trivialSubtypeReductionNoStructuralCheck2.js => trivialSubtypeReductionNoStructuralCheck2(target=es5).js} (100%) create mode 100644 tests/baselines/reference/trivialSubtypeReductionNoStructuralCheck2(target=es5).symbols create mode 100644 tests/baselines/reference/trivialSubtypeReductionNoStructuralCheck2(target=es5).types rename tests/baselines/reference/{tsxPreserveEmit1.errors.txt => tsxPreserveEmit1(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{tsxPreserveEmit1.js => tsxPreserveEmit1(target=es2015).js} (100%) rename tests/baselines/reference/{tsxPreserveEmit1.symbols => tsxPreserveEmit1(target=es2015).symbols} (100%) rename tests/baselines/reference/{tsxPreserveEmit1.types => tsxPreserveEmit1(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/tsxPreserveEmit1(target=es5).errors.txt create mode 100644 tests/baselines/reference/tsxPreserveEmit1(target=es5).js create mode 100644 tests/baselines/reference/tsxPreserveEmit1(target=es5).symbols create mode 100644 tests/baselines/reference/tsxPreserveEmit1(target=es5).types rename tests/baselines/reference/{tsxPreserveEmit2.errors.txt => tsxPreserveEmit2(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{tsxPreserveEmit2.js => tsxPreserveEmit2(target=es2015).js} (100%) rename tests/baselines/reference/{tsxPreserveEmit2.symbols => tsxPreserveEmit2(target=es2015).symbols} (100%) rename tests/baselines/reference/{tsxPreserveEmit2.types => tsxPreserveEmit2(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/tsxPreserveEmit2(target=es5).errors.txt create mode 100644 tests/baselines/reference/tsxPreserveEmit2(target=es5).js create mode 100644 tests/baselines/reference/tsxPreserveEmit2(target=es5).symbols create mode 100644 tests/baselines/reference/tsxPreserveEmit2(target=es5).types rename tests/baselines/reference/{twoAccessorsWithSameName.errors.txt => twoAccessorsWithSameName(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/twoAccessorsWithSameName(target=es2015).js rename tests/baselines/reference/{twoAccessorsWithSameName.symbols => twoAccessorsWithSameName(target=es2015).symbols} (100%) rename tests/baselines/reference/{twoAccessorsWithSameName.types => twoAccessorsWithSameName(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/twoAccessorsWithSameName(target=es5).errors.txt rename tests/baselines/reference/{twoAccessorsWithSameName.js => twoAccessorsWithSameName(target=es5).js} (100%) create mode 100644 tests/baselines/reference/twoAccessorsWithSameName(target=es5).symbols create mode 100644 tests/baselines/reference/twoAccessorsWithSameName(target=es5).types rename tests/baselines/reference/{typeAliasDeclarationEmit.errors.txt => typeAliasDeclarationEmit(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{typeAliasDeclarationEmit.js => typeAliasDeclarationEmit(target=es2015).js} (100%) rename tests/baselines/reference/{typeAliasDeclarationEmit.symbols => typeAliasDeclarationEmit(target=es2015).symbols} (100%) rename tests/baselines/reference/{typeAliasDeclarationEmit.types => typeAliasDeclarationEmit(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/typeAliasDeclarationEmit(target=es5).errors.txt create mode 100644 tests/baselines/reference/typeAliasDeclarationEmit(target=es5).js create mode 100644 tests/baselines/reference/typeAliasDeclarationEmit(target=es5).symbols create mode 100644 tests/baselines/reference/typeAliasDeclarationEmit(target=es5).types rename tests/baselines/reference/{typeAliasDeclarationEmit2.errors.txt => typeAliasDeclarationEmit2(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{typeAliasDeclarationEmit2.js => typeAliasDeclarationEmit2(target=es2015).js} (100%) rename tests/baselines/reference/{typeAliasDeclarationEmit2.symbols => typeAliasDeclarationEmit2(target=es2015).symbols} (100%) rename tests/baselines/reference/{typeAliasDeclarationEmit2.types => typeAliasDeclarationEmit2(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/typeAliasDeclarationEmit2(target=es5).errors.txt create mode 100644 tests/baselines/reference/typeAliasDeclarationEmit2(target=es5).js create mode 100644 tests/baselines/reference/typeAliasDeclarationEmit2(target=es5).symbols create mode 100644 tests/baselines/reference/typeAliasDeclarationEmit2(target=es5).types rename tests/baselines/reference/{typeFromPropertyAssignmentOutOfOrder.symbols => typeFromPropertyAssignmentOutOfOrder(target=es2015).symbols} (100%) rename tests/baselines/reference/{typeFromPropertyAssignmentOutOfOrder.types => typeFromPropertyAssignmentOutOfOrder(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/typeFromPropertyAssignmentOutOfOrder(target=es5).symbols create mode 100644 tests/baselines/reference/typeFromPropertyAssignmentOutOfOrder(target=es5).types rename tests/baselines/reference/{typeGuardOfFormThisMember.errors.txt => typeGuardOfFormThisMember(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/typeGuardOfFormThisMember(target=es2015).js rename tests/baselines/reference/{typeGuardOfFormThisMember.symbols => typeGuardOfFormThisMember(target=es2015).symbols} (100%) rename tests/baselines/reference/{typeGuardOfFormThisMember.types => typeGuardOfFormThisMember(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/typeGuardOfFormThisMember(target=es5).errors.txt rename tests/baselines/reference/{typeGuardOfFormThisMember.js => typeGuardOfFormThisMember(target=es5).js} (100%) create mode 100644 tests/baselines/reference/typeGuardOfFormThisMember(target=es5).symbols create mode 100644 tests/baselines/reference/typeGuardOfFormThisMember(target=es5).types rename tests/baselines/reference/{typeGuardOfFormThisMemberErrors.errors.txt => typeGuardOfFormThisMemberErrors(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/typeGuardOfFormThisMemberErrors(target=es2015).js rename tests/baselines/reference/{typeGuardOfFormThisMemberErrors.symbols => typeGuardOfFormThisMemberErrors(target=es2015).symbols} (100%) rename tests/baselines/reference/{typeGuardOfFormThisMemberErrors.types => typeGuardOfFormThisMemberErrors(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/typeGuardOfFormThisMemberErrors(target=es5).errors.txt rename tests/baselines/reference/{typeGuardOfFormThisMemberErrors.js => typeGuardOfFormThisMemberErrors(target=es5).js} (100%) create mode 100644 tests/baselines/reference/typeGuardOfFormThisMemberErrors(target=es5).symbols create mode 100644 tests/baselines/reference/typeGuardOfFormThisMemberErrors(target=es5).types create mode 100644 tests/baselines/reference/typeGuardsInClassAccessors(target=es2015).js rename tests/baselines/reference/{typeGuardsInClassAccessors.symbols => typeGuardsInClassAccessors(target=es2015).symbols} (100%) rename tests/baselines/reference/{typeGuardsInClassAccessors.types => typeGuardsInClassAccessors(target=es2015).types} (100%) rename tests/baselines/reference/{typeGuardsInClassAccessors.js => typeGuardsInClassAccessors(target=es5).js} (100%) create mode 100644 tests/baselines/reference/typeGuardsInClassAccessors(target=es5).symbols create mode 100644 tests/baselines/reference/typeGuardsInClassAccessors(target=es5).types create mode 100644 tests/baselines/reference/typeGuardsInProperties(target=es2015).js rename tests/baselines/reference/{typeGuardsInProperties.symbols => typeGuardsInProperties(target=es2015).symbols} (100%) rename tests/baselines/reference/{typeGuardsInProperties.types => typeGuardsInProperties(target=es2015).types} (100%) rename tests/baselines/reference/{typeGuardsInProperties.js => typeGuardsInProperties(target=es5).js} (100%) create mode 100644 tests/baselines/reference/typeGuardsInProperties(target=es5).symbols create mode 100644 tests/baselines/reference/typeGuardsInProperties(target=es5).types create mode 100644 tests/baselines/reference/typeGuardsObjectMethods(target=es2015).js rename tests/baselines/reference/{typeGuardsObjectMethods.symbols => typeGuardsObjectMethods(target=es2015).symbols} (100%) rename tests/baselines/reference/{typeGuardsObjectMethods.types => typeGuardsObjectMethods(target=es2015).types} (100%) rename tests/baselines/reference/{typeGuardsObjectMethods.js => typeGuardsObjectMethods(target=es5).js} (100%) create mode 100644 tests/baselines/reference/typeGuardsObjectMethods(target=es5).symbols create mode 100644 tests/baselines/reference/typeGuardsObjectMethods(target=es5).types create mode 100644 tests/baselines/reference/typedArrays-es5(target=es2015).js rename tests/baselines/reference/{typedArrays-es5.symbols => typedArrays-es5(target=es2015).symbols} (100%) create mode 100644 tests/baselines/reference/typedArrays-es5(target=es2015).types rename tests/baselines/reference/{typedArrays-es5.errors.txt => typedArrays-es5(target=es5).errors.txt} (100%) rename tests/baselines/reference/{typedArrays-es5.js => typedArrays-es5(target=es5).js} (100%) create mode 100644 tests/baselines/reference/typedArrays-es5(target=es5).symbols rename tests/baselines/reference/{typedArrays-es5.types => typedArrays-es5(target=es5).types} (100%) rename tests/baselines/reference/{unusedGetterInClass.errors.txt => unusedGetterInClass(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/unusedGetterInClass(target=es2015).js rename tests/baselines/reference/{unusedGetterInClass.symbols => unusedGetterInClass(target=es2015).symbols} (100%) rename tests/baselines/reference/{unusedGetterInClass.types => unusedGetterInClass(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/unusedGetterInClass(target=es5).errors.txt rename tests/baselines/reference/{unusedGetterInClass.js => unusedGetterInClass(target=es5).js} (100%) create mode 100644 tests/baselines/reference/unusedGetterInClass(target=es5).symbols create mode 100644 tests/baselines/reference/unusedGetterInClass(target=es5).types rename tests/baselines/reference/{unusedParameterUsedInTypeOf.js => unusedParameterUsedInTypeOf(target=es2015).js} (100%) rename tests/baselines/reference/{unusedParameterUsedInTypeOf.symbols => unusedParameterUsedInTypeOf(target=es2015).symbols} (100%) rename tests/baselines/reference/{unusedParameterUsedInTypeOf.types => unusedParameterUsedInTypeOf(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/unusedParameterUsedInTypeOf(target=es5).js create mode 100644 tests/baselines/reference/unusedParameterUsedInTypeOf(target=es5).symbols create mode 100644 tests/baselines/reference/unusedParameterUsedInTypeOf(target=es5).types rename tests/baselines/reference/{unusedPrivateMembers.errors.txt => unusedPrivateMembers(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/unusedPrivateMembers(target=es2015).js rename tests/baselines/reference/{unusedPrivateMembers.symbols => unusedPrivateMembers(target=es2015).symbols} (100%) rename tests/baselines/reference/{unusedPrivateMembers.types => unusedPrivateMembers(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/unusedPrivateMembers(target=es5).errors.txt rename tests/baselines/reference/{unusedPrivateMembers.js => unusedPrivateMembers(target=es5).js} (100%) create mode 100644 tests/baselines/reference/unusedPrivateMembers(target=es5).symbols create mode 100644 tests/baselines/reference/unusedPrivateMembers(target=es5).types rename tests/baselines/reference/{unusedSetterInClass.errors.txt => unusedSetterInClass(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/unusedSetterInClass(target=es2015).js rename tests/baselines/reference/{unusedSetterInClass.symbols => unusedSetterInClass(target=es2015).symbols} (100%) rename tests/baselines/reference/{unusedSetterInClass.types => unusedSetterInClass(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/unusedSetterInClass(target=es5).errors.txt rename tests/baselines/reference/{unusedSetterInClass.js => unusedSetterInClass(target=es5).js} (100%) create mode 100644 tests/baselines/reference/unusedSetterInClass(target=es5).symbols create mode 100644 tests/baselines/reference/unusedSetterInClass(target=es5).types create mode 100644 tests/baselines/reference/useObjectValuesAndEntries1(target=es2015).errors.txt create mode 100644 tests/baselines/reference/useObjectValuesAndEntries1(target=es2015).js rename tests/baselines/reference/{useObjectValuesAndEntries1.symbols => useObjectValuesAndEntries1(target=es2015).symbols} (100%) create mode 100644 tests/baselines/reference/useObjectValuesAndEntries1(target=es2015).types rename tests/baselines/reference/{useObjectValuesAndEntries1.js => useObjectValuesAndEntries1(target=es5).js} (100%) create mode 100644 tests/baselines/reference/useObjectValuesAndEntries1(target=es5).symbols rename tests/baselines/reference/{useObjectValuesAndEntries1.types => useObjectValuesAndEntries1(target=es5).types} (100%) rename tests/baselines/reference/{useObjectValuesAndEntries2.errors.txt => useObjectValuesAndEntries2(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/useObjectValuesAndEntries2(target=es2015).js rename tests/baselines/reference/{useObjectValuesAndEntries2.symbols => useObjectValuesAndEntries2(target=es2015).symbols} (100%) rename tests/baselines/reference/{useObjectValuesAndEntries2.types => useObjectValuesAndEntries2(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/useObjectValuesAndEntries2(target=es5).errors.txt rename tests/baselines/reference/{useObjectValuesAndEntries2.js => useObjectValuesAndEntries2(target=es5).js} (100%) create mode 100644 tests/baselines/reference/useObjectValuesAndEntries2(target=es5).symbols create mode 100644 tests/baselines/reference/useObjectValuesAndEntries2(target=es5).types create mode 100644 tests/baselines/reference/usePromiseFinally(target=es2015).js rename tests/baselines/reference/{usePromiseFinally.symbols => usePromiseFinally(target=es2015).symbols} (100%) rename tests/baselines/reference/{usePromiseFinally.types => usePromiseFinally(target=es2015).types} (100%) rename tests/baselines/reference/{usePromiseFinally.js => usePromiseFinally(target=es5).js} (100%) create mode 100644 tests/baselines/reference/usePromiseFinally(target=es5).symbols create mode 100644 tests/baselines/reference/usePromiseFinally(target=es5).types rename tests/baselines/reference/{useSharedArrayBuffer1.js => useSharedArrayBuffer1(target=es2015).js} (100%) rename tests/baselines/reference/{useSharedArrayBuffer1.symbols => useSharedArrayBuffer1(target=es2015).symbols} (100%) rename tests/baselines/reference/{useSharedArrayBuffer1.types => useSharedArrayBuffer1(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/useSharedArrayBuffer1(target=es5).js create mode 100644 tests/baselines/reference/useSharedArrayBuffer1(target=es5).symbols create mode 100644 tests/baselines/reference/useSharedArrayBuffer1(target=es5).types rename tests/baselines/reference/{useSharedArrayBuffer2.errors.txt => useSharedArrayBuffer2(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{useSharedArrayBuffer2.js => useSharedArrayBuffer2(target=es2015).js} (100%) rename tests/baselines/reference/{useSharedArrayBuffer2.symbols => useSharedArrayBuffer2(target=es2015).symbols} (100%) rename tests/baselines/reference/{useSharedArrayBuffer2.types => useSharedArrayBuffer2(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/useSharedArrayBuffer2(target=es5).errors.txt create mode 100644 tests/baselines/reference/useSharedArrayBuffer2(target=es5).js create mode 100644 tests/baselines/reference/useSharedArrayBuffer2(target=es5).symbols create mode 100644 tests/baselines/reference/useSharedArrayBuffer2(target=es5).types rename tests/baselines/reference/{useSharedArrayBuffer5.js => useSharedArrayBuffer5(target=es2015).js} (100%) rename tests/baselines/reference/{useSharedArrayBuffer5.symbols => useSharedArrayBuffer5(target=es2015).symbols} (100%) rename tests/baselines/reference/{useSharedArrayBuffer5.types => useSharedArrayBuffer5(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/useSharedArrayBuffer5(target=es5).js create mode 100644 tests/baselines/reference/useSharedArrayBuffer5(target=es5).symbols create mode 100644 tests/baselines/reference/useSharedArrayBuffer5(target=es5).types rename tests/baselines/reference/{useSharedArrayBuffer6.errors.txt => useSharedArrayBuffer6(target=es2015).errors.txt} (100%) rename tests/baselines/reference/{useSharedArrayBuffer6.js => useSharedArrayBuffer6(target=es2015).js} (100%) rename tests/baselines/reference/{useSharedArrayBuffer6.symbols => useSharedArrayBuffer6(target=es2015).symbols} (100%) rename tests/baselines/reference/{useSharedArrayBuffer6.types => useSharedArrayBuffer6(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/useSharedArrayBuffer6(target=es5).errors.txt create mode 100644 tests/baselines/reference/useSharedArrayBuffer6(target=es5).js create mode 100644 tests/baselines/reference/useSharedArrayBuffer6(target=es5).symbols create mode 100644 tests/baselines/reference/useSharedArrayBuffer6(target=es5).types create mode 100644 tests/baselines/reference/useStrictLikePrologueString01(target=es2015).js rename tests/baselines/reference/{useStrictLikePrologueString01.symbols => useStrictLikePrologueString01(target=es2015).symbols} (100%) rename tests/baselines/reference/{useStrictLikePrologueString01.types => useStrictLikePrologueString01(target=es2015).types} (100%) rename tests/baselines/reference/{useStrictLikePrologueString01.js => useStrictLikePrologueString01(target=es5).js} (100%) create mode 100644 tests/baselines/reference/useStrictLikePrologueString01(target=es5).symbols create mode 100644 tests/baselines/reference/useStrictLikePrologueString01(target=es5).types create mode 100644 tests/baselines/reference/usingDeclarations.11(target=es2015).js rename tests/baselines/reference/{usingDeclarations.11.js => usingDeclarations.11(target=es5).js} (100%) create mode 100644 tests/baselines/reference/yieldInForInInDownlevelGenerator(target=es2015).js rename tests/baselines/reference/{yieldInForInInDownlevelGenerator.symbols => yieldInForInInDownlevelGenerator(target=es2015).symbols} (100%) rename tests/baselines/reference/{yieldInForInInDownlevelGenerator.types => yieldInForInInDownlevelGenerator(target=es2015).types} (100%) rename tests/baselines/reference/{yieldInForInInDownlevelGenerator.js => yieldInForInInDownlevelGenerator(target=es5).js} (100%) create mode 100644 tests/baselines/reference/yieldInForInInDownlevelGenerator(target=es5).symbols create mode 100644 tests/baselines/reference/yieldInForInInDownlevelGenerator(target=es5).types diff --git a/tests/baselines/reference/ES3For-ofTypeCheck1(target=es2015).js b/tests/baselines/reference/ES3For-ofTypeCheck1(target=es2015).js new file mode 100644 index 0000000000000..af8e5ba01d848 --- /dev/null +++ b/tests/baselines/reference/ES3For-ofTypeCheck1(target=es2015).js @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/statements/for-ofStatements/ES3For-ofTypeCheck1.ts] //// + +//// [ES3For-ofTypeCheck1.ts] +for (var v of "") { } + +//// [ES3For-ofTypeCheck1.js] +for (var v of "") { } diff --git a/tests/baselines/reference/ES3For-ofTypeCheck1.symbols b/tests/baselines/reference/ES3For-ofTypeCheck1(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/ES3For-ofTypeCheck1.symbols rename to tests/baselines/reference/ES3For-ofTypeCheck1(target=es2015).symbols diff --git a/tests/baselines/reference/ES3For-ofTypeCheck1.types b/tests/baselines/reference/ES3For-ofTypeCheck1(target=es2015).types similarity index 100% rename from tests/baselines/reference/ES3For-ofTypeCheck1.types rename to tests/baselines/reference/ES3For-ofTypeCheck1(target=es2015).types diff --git a/tests/baselines/reference/ES3For-ofTypeCheck1.js b/tests/baselines/reference/ES3For-ofTypeCheck1(target=es5).js similarity index 100% rename from tests/baselines/reference/ES3For-ofTypeCheck1.js rename to tests/baselines/reference/ES3For-ofTypeCheck1(target=es5).js diff --git a/tests/baselines/reference/ES3For-ofTypeCheck1(target=es5).symbols b/tests/baselines/reference/ES3For-ofTypeCheck1(target=es5).symbols new file mode 100644 index 0000000000000..d8cc394ad2ab1 --- /dev/null +++ b/tests/baselines/reference/ES3For-ofTypeCheck1(target=es5).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/statements/for-ofStatements/ES3For-ofTypeCheck1.ts] //// + +=== ES3For-ofTypeCheck1.ts === +for (var v of "") { } +>v : Symbol(v, Decl(ES3For-ofTypeCheck1.ts, 0, 8)) + diff --git a/tests/baselines/reference/ES3For-ofTypeCheck1(target=es5).types b/tests/baselines/reference/ES3For-ofTypeCheck1(target=es5).types new file mode 100644 index 0000000000000..a96d6b3a27d63 --- /dev/null +++ b/tests/baselines/reference/ES3For-ofTypeCheck1(target=es5).types @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/statements/for-ofStatements/ES3For-ofTypeCheck1.ts] //// + +=== ES3For-ofTypeCheck1.ts === +for (var v of "") { } +>v : string +> : ^^^^^^ +>"" : "" +> : ^^ + diff --git a/tests/baselines/reference/ES3For-ofTypeCheck2(target=es2015).js b/tests/baselines/reference/ES3For-ofTypeCheck2(target=es2015).js new file mode 100644 index 0000000000000..abc5b98801ce6 --- /dev/null +++ b/tests/baselines/reference/ES3For-ofTypeCheck2(target=es2015).js @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/statements/for-ofStatements/ES3For-ofTypeCheck2.ts] //// + +//// [ES3For-ofTypeCheck2.ts] +for (var v of [true]) { } + +//// [ES3For-ofTypeCheck2.js] +for (var v of [true]) { } diff --git a/tests/baselines/reference/ES3For-ofTypeCheck2.symbols b/tests/baselines/reference/ES3For-ofTypeCheck2(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/ES3For-ofTypeCheck2.symbols rename to tests/baselines/reference/ES3For-ofTypeCheck2(target=es2015).symbols diff --git a/tests/baselines/reference/ES3For-ofTypeCheck2.types b/tests/baselines/reference/ES3For-ofTypeCheck2(target=es2015).types similarity index 100% rename from tests/baselines/reference/ES3For-ofTypeCheck2.types rename to tests/baselines/reference/ES3For-ofTypeCheck2(target=es2015).types diff --git a/tests/baselines/reference/ES3For-ofTypeCheck2.js b/tests/baselines/reference/ES3For-ofTypeCheck2(target=es5).js similarity index 100% rename from tests/baselines/reference/ES3For-ofTypeCheck2.js rename to tests/baselines/reference/ES3For-ofTypeCheck2(target=es5).js diff --git a/tests/baselines/reference/ES3For-ofTypeCheck2(target=es5).symbols b/tests/baselines/reference/ES3For-ofTypeCheck2(target=es5).symbols new file mode 100644 index 0000000000000..5bb17f81215af --- /dev/null +++ b/tests/baselines/reference/ES3For-ofTypeCheck2(target=es5).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/statements/for-ofStatements/ES3For-ofTypeCheck2.ts] //// + +=== ES3For-ofTypeCheck2.ts === +for (var v of [true]) { } +>v : Symbol(v, Decl(ES3For-ofTypeCheck2.ts, 0, 8)) + diff --git a/tests/baselines/reference/ES3For-ofTypeCheck2(target=es5).types b/tests/baselines/reference/ES3For-ofTypeCheck2(target=es5).types new file mode 100644 index 0000000000000..f358728ef37c6 --- /dev/null +++ b/tests/baselines/reference/ES3For-ofTypeCheck2(target=es5).types @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/statements/for-ofStatements/ES3For-ofTypeCheck2.ts] //// + +=== ES3For-ofTypeCheck2.ts === +for (var v of [true]) { } +>v : boolean +> : ^^^^^^^ +>[true] : boolean[] +> : ^^^^^^^^^ +>true : true +> : ^^^^ + diff --git a/tests/baselines/reference/ES3For-ofTypeCheck4(target=es2015).js b/tests/baselines/reference/ES3For-ofTypeCheck4(target=es2015).js new file mode 100644 index 0000000000000..031efba7fe0f8 --- /dev/null +++ b/tests/baselines/reference/ES3For-ofTypeCheck4(target=es2015).js @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/statements/for-ofStatements/ES3For-ofTypeCheck4.ts] //// + +//// [ES3For-ofTypeCheck4.ts] +var union: string | string[]; +for (const v of union) { } + +//// [ES3For-ofTypeCheck4.js] +var union; +for (const v of union) { } diff --git a/tests/baselines/reference/ES3For-ofTypeCheck4.symbols b/tests/baselines/reference/ES3For-ofTypeCheck4(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/ES3For-ofTypeCheck4.symbols rename to tests/baselines/reference/ES3For-ofTypeCheck4(target=es2015).symbols diff --git a/tests/baselines/reference/ES3For-ofTypeCheck4.types b/tests/baselines/reference/ES3For-ofTypeCheck4(target=es2015).types similarity index 100% rename from tests/baselines/reference/ES3For-ofTypeCheck4.types rename to tests/baselines/reference/ES3For-ofTypeCheck4(target=es2015).types diff --git a/tests/baselines/reference/ES3For-ofTypeCheck4.js b/tests/baselines/reference/ES3For-ofTypeCheck4(target=es5).js similarity index 100% rename from tests/baselines/reference/ES3For-ofTypeCheck4.js rename to tests/baselines/reference/ES3For-ofTypeCheck4(target=es5).js diff --git a/tests/baselines/reference/ES3For-ofTypeCheck4(target=es5).symbols b/tests/baselines/reference/ES3For-ofTypeCheck4(target=es5).symbols new file mode 100644 index 0000000000000..8b8eb511ac8aa --- /dev/null +++ b/tests/baselines/reference/ES3For-ofTypeCheck4(target=es5).symbols @@ -0,0 +1,10 @@ +//// [tests/cases/conformance/statements/for-ofStatements/ES3For-ofTypeCheck4.ts] //// + +=== ES3For-ofTypeCheck4.ts === +var union: string | string[]; +>union : Symbol(union, Decl(ES3For-ofTypeCheck4.ts, 0, 3)) + +for (const v of union) { } +>v : Symbol(v, Decl(ES3For-ofTypeCheck4.ts, 1, 10)) +>union : Symbol(union, Decl(ES3For-ofTypeCheck4.ts, 0, 3)) + diff --git a/tests/baselines/reference/ES3For-ofTypeCheck4(target=es5).types b/tests/baselines/reference/ES3For-ofTypeCheck4(target=es5).types new file mode 100644 index 0000000000000..868987211278f --- /dev/null +++ b/tests/baselines/reference/ES3For-ofTypeCheck4(target=es5).types @@ -0,0 +1,13 @@ +//// [tests/cases/conformance/statements/for-ofStatements/ES3For-ofTypeCheck4.ts] //// + +=== ES3For-ofTypeCheck4.ts === +var union: string | string[]; +>union : string | string[] +> : ^^^^^^^^^^^^^^^^^ + +for (const v of union) { } +>v : string +> : ^^^^^^ +>union : string | string[] +> : ^^^^^^^^^^^^^^^^^ + diff --git a/tests/baselines/reference/ES3For-ofTypeCheck6(target=es2015).js b/tests/baselines/reference/ES3For-ofTypeCheck6(target=es2015).js new file mode 100644 index 0000000000000..7ca31e97bae2e --- /dev/null +++ b/tests/baselines/reference/ES3For-ofTypeCheck6(target=es2015).js @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/statements/for-ofStatements/ES3For-ofTypeCheck6.ts] //// + +//// [ES3For-ofTypeCheck6.ts] +var union: string[] | number[]; +for (var v of union) { } + +//// [ES3For-ofTypeCheck6.js] +var union; +for (var v of union) { } diff --git a/tests/baselines/reference/ES3For-ofTypeCheck6.symbols b/tests/baselines/reference/ES3For-ofTypeCheck6(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/ES3For-ofTypeCheck6.symbols rename to tests/baselines/reference/ES3For-ofTypeCheck6(target=es2015).symbols diff --git a/tests/baselines/reference/ES3For-ofTypeCheck6.types b/tests/baselines/reference/ES3For-ofTypeCheck6(target=es2015).types similarity index 100% rename from tests/baselines/reference/ES3For-ofTypeCheck6.types rename to tests/baselines/reference/ES3For-ofTypeCheck6(target=es2015).types diff --git a/tests/baselines/reference/ES3For-ofTypeCheck6.js b/tests/baselines/reference/ES3For-ofTypeCheck6(target=es5).js similarity index 100% rename from tests/baselines/reference/ES3For-ofTypeCheck6.js rename to tests/baselines/reference/ES3For-ofTypeCheck6(target=es5).js diff --git a/tests/baselines/reference/ES3For-ofTypeCheck6(target=es5).symbols b/tests/baselines/reference/ES3For-ofTypeCheck6(target=es5).symbols new file mode 100644 index 0000000000000..381139a99fff9 --- /dev/null +++ b/tests/baselines/reference/ES3For-ofTypeCheck6(target=es5).symbols @@ -0,0 +1,10 @@ +//// [tests/cases/conformance/statements/for-ofStatements/ES3For-ofTypeCheck6.ts] //// + +=== ES3For-ofTypeCheck6.ts === +var union: string[] | number[]; +>union : Symbol(union, Decl(ES3For-ofTypeCheck6.ts, 0, 3)) + +for (var v of union) { } +>v : Symbol(v, Decl(ES3For-ofTypeCheck6.ts, 1, 8)) +>union : Symbol(union, Decl(ES3For-ofTypeCheck6.ts, 0, 3)) + diff --git a/tests/baselines/reference/ES3For-ofTypeCheck6(target=es5).types b/tests/baselines/reference/ES3For-ofTypeCheck6(target=es5).types new file mode 100644 index 0000000000000..40e3578bb437d --- /dev/null +++ b/tests/baselines/reference/ES3For-ofTypeCheck6(target=es5).types @@ -0,0 +1,13 @@ +//// [tests/cases/conformance/statements/for-ofStatements/ES3For-ofTypeCheck6.ts] //// + +=== ES3For-ofTypeCheck6.ts === +var union: string[] | number[]; +>union : string[] | number[] +> : ^^^^^^^^^^^^^^^^^^^ + +for (var v of union) { } +>v : string | number +> : ^^^^^^^^^^^^^^^ +>union : string[] | number[] +> : ^^^^^^^^^^^^^^^^^^^ + diff --git a/tests/baselines/reference/ES5For-ofTypeCheck1(target=es2015).js b/tests/baselines/reference/ES5For-ofTypeCheck1(target=es2015).js new file mode 100644 index 0000000000000..f32d5caec8dee --- /dev/null +++ b/tests/baselines/reference/ES5For-ofTypeCheck1(target=es2015).js @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck1.ts] //// + +//// [ES5For-ofTypeCheck1.ts] +for (var v of "") { } + +//// [ES5For-ofTypeCheck1.js] +for (var v of "") { } diff --git a/tests/baselines/reference/ES5For-ofTypeCheck1.symbols b/tests/baselines/reference/ES5For-ofTypeCheck1(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/ES5For-ofTypeCheck1.symbols rename to tests/baselines/reference/ES5For-ofTypeCheck1(target=es2015).symbols diff --git a/tests/baselines/reference/ES5For-ofTypeCheck1.types b/tests/baselines/reference/ES5For-ofTypeCheck1(target=es2015).types similarity index 100% rename from tests/baselines/reference/ES5For-ofTypeCheck1.types rename to tests/baselines/reference/ES5For-ofTypeCheck1(target=es2015).types diff --git a/tests/baselines/reference/ES5For-ofTypeCheck1.js b/tests/baselines/reference/ES5For-ofTypeCheck1(target=es5).js similarity index 100% rename from tests/baselines/reference/ES5For-ofTypeCheck1.js rename to tests/baselines/reference/ES5For-ofTypeCheck1(target=es5).js diff --git a/tests/baselines/reference/ES5For-ofTypeCheck1(target=es5).symbols b/tests/baselines/reference/ES5For-ofTypeCheck1(target=es5).symbols new file mode 100644 index 0000000000000..01901f1612f59 --- /dev/null +++ b/tests/baselines/reference/ES5For-ofTypeCheck1(target=es5).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck1.ts] //// + +=== ES5For-ofTypeCheck1.ts === +for (var v of "") { } +>v : Symbol(v, Decl(ES5For-ofTypeCheck1.ts, 0, 8)) + diff --git a/tests/baselines/reference/ES5For-ofTypeCheck1(target=es5).types b/tests/baselines/reference/ES5For-ofTypeCheck1(target=es5).types new file mode 100644 index 0000000000000..470f8b6cc5d9b --- /dev/null +++ b/tests/baselines/reference/ES5For-ofTypeCheck1(target=es5).types @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck1.ts] //// + +=== ES5For-ofTypeCheck1.ts === +for (var v of "") { } +>v : string +> : ^^^^^^ +>"" : "" +> : ^^ + diff --git a/tests/baselines/reference/ES5For-ofTypeCheck10(target=es2015).js b/tests/baselines/reference/ES5For-ofTypeCheck10(target=es2015).js new file mode 100644 index 0000000000000..97194c0d63a90 --- /dev/null +++ b/tests/baselines/reference/ES5For-ofTypeCheck10(target=es2015).js @@ -0,0 +1,32 @@ +//// [tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck10.ts] //// + +//// [ES5For-ofTypeCheck10.ts] +// In ES3/5, you cannot for...of over an arbitrary iterable. +class MyStringIterator { + next() { + return { + done: true, + value: "" + }; + } + [Symbol.iterator]() { + return this; + } +} + +for (var v of new MyStringIterator) { } + +//// [ES5For-ofTypeCheck10.js] +// In ES3/5, you cannot for...of over an arbitrary iterable. +class MyStringIterator { + next() { + return { + done: true, + value: "" + }; + } + [Symbol.iterator]() { + return this; + } +} +for (var v of new MyStringIterator) { } diff --git a/tests/baselines/reference/ES5For-ofTypeCheck10.symbols b/tests/baselines/reference/ES5For-ofTypeCheck10(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/ES5For-ofTypeCheck10.symbols rename to tests/baselines/reference/ES5For-ofTypeCheck10(target=es2015).symbols diff --git a/tests/baselines/reference/ES5For-ofTypeCheck10(target=es2015).types b/tests/baselines/reference/ES5For-ofTypeCheck10(target=es2015).types new file mode 100644 index 0000000000000..fcc821aced51f --- /dev/null +++ b/tests/baselines/reference/ES5For-ofTypeCheck10(target=es2015).types @@ -0,0 +1,54 @@ +//// [tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck10.ts] //// + +=== ES5For-ofTypeCheck10.ts === +// In ES3/5, you cannot for...of over an arbitrary iterable. +class MyStringIterator { +>MyStringIterator : MyStringIterator +> : ^^^^^^^^^^^^^^^^ + + next() { +>next : () => { done: boolean; value: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + return { +>{ done: true, value: "" } : { done: boolean; value: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + done: true, +>done : boolean +> : ^^^^^^^ +>true : true +> : ^^^^ + + value: "" +>value : string +> : ^^^^^^ +>"" : "" +> : ^^ + + }; + } + [Symbol.iterator]() { +>[Symbol.iterator] : () => this +> : ^^^^^^^^^^ +>Symbol.iterator : unique symbol +> : ^^^^^^^^^^^^^ +>Symbol : SymbolConstructor +> : ^^^^^^^^^^^^^^^^^ +>iterator : unique symbol +> : ^^^^^^^^^^^^^ + + return this; +>this : this +> : ^^^^ + } +} + +for (var v of new MyStringIterator) { } +>v : string +> : ^^^^^^ +>new MyStringIterator : MyStringIterator +> : ^^^^^^^^^^^^^^^^ +>MyStringIterator : typeof MyStringIterator +> : ^^^^^^^^^^^^^^^^^^^^^^^ + diff --git a/tests/baselines/reference/ES5For-ofTypeCheck10.errors.txt b/tests/baselines/reference/ES5For-ofTypeCheck10(target=es5).errors.txt similarity index 100% rename from tests/baselines/reference/ES5For-ofTypeCheck10.errors.txt rename to tests/baselines/reference/ES5For-ofTypeCheck10(target=es5).errors.txt diff --git a/tests/baselines/reference/ES5For-ofTypeCheck10.js b/tests/baselines/reference/ES5For-ofTypeCheck10(target=es5).js similarity index 100% rename from tests/baselines/reference/ES5For-ofTypeCheck10.js rename to tests/baselines/reference/ES5For-ofTypeCheck10(target=es5).js diff --git a/tests/baselines/reference/ES5For-ofTypeCheck10(target=es5).symbols b/tests/baselines/reference/ES5For-ofTypeCheck10(target=es5).symbols new file mode 100644 index 0000000000000..c0604bc7923fc --- /dev/null +++ b/tests/baselines/reference/ES5For-ofTypeCheck10(target=es5).symbols @@ -0,0 +1,34 @@ +//// [tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck10.ts] //// + +=== ES5For-ofTypeCheck10.ts === +// In ES3/5, you cannot for...of over an arbitrary iterable. +class MyStringIterator { +>MyStringIterator : Symbol(MyStringIterator, Decl(ES5For-ofTypeCheck10.ts, 0, 0)) + + next() { +>next : Symbol(MyStringIterator.next, Decl(ES5For-ofTypeCheck10.ts, 1, 24)) + + return { + done: true, +>done : Symbol(done, Decl(ES5For-ofTypeCheck10.ts, 3, 16)) + + value: "" +>value : Symbol(value, Decl(ES5For-ofTypeCheck10.ts, 4, 23)) + + }; + } + [Symbol.iterator]() { +>[Symbol.iterator] : Symbol(MyStringIterator[Symbol.iterator], Decl(ES5For-ofTypeCheck10.ts, 7, 5)) +>Symbol.iterator : Symbol(SymbolConstructor.iterator, Decl(lib.es2015.iterable.d.ts, --, --)) +>Symbol : Symbol(Symbol, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>iterator : Symbol(SymbolConstructor.iterator, Decl(lib.es2015.iterable.d.ts, --, --)) + + return this; +>this : Symbol(MyStringIterator, Decl(ES5For-ofTypeCheck10.ts, 0, 0)) + } +} + +for (var v of new MyStringIterator) { } +>v : Symbol(v, Decl(ES5For-ofTypeCheck10.ts, 13, 8)) +>MyStringIterator : Symbol(MyStringIterator, Decl(ES5For-ofTypeCheck10.ts, 0, 0)) + diff --git a/tests/baselines/reference/ES5For-ofTypeCheck10.types b/tests/baselines/reference/ES5For-ofTypeCheck10(target=es5).types similarity index 100% rename from tests/baselines/reference/ES5For-ofTypeCheck10.types rename to tests/baselines/reference/ES5For-ofTypeCheck10(target=es5).types diff --git a/tests/baselines/reference/ES5For-ofTypeCheck11.errors.txt b/tests/baselines/reference/ES5For-ofTypeCheck11(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/ES5For-ofTypeCheck11.errors.txt rename to tests/baselines/reference/ES5For-ofTypeCheck11(target=es2015).errors.txt diff --git a/tests/baselines/reference/ES5For-ofTypeCheck11(target=es2015).js b/tests/baselines/reference/ES5For-ofTypeCheck11(target=es2015).js new file mode 100644 index 0000000000000..f229a61c8f484 --- /dev/null +++ b/tests/baselines/reference/ES5For-ofTypeCheck11(target=es2015).js @@ -0,0 +1,10 @@ +//// [tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck11.ts] //// + +//// [ES5For-ofTypeCheck11.ts] +declare var union: string | number[]; +var v: string; +for (v of union) { } + +//// [ES5For-ofTypeCheck11.js] +var v; +for (v of union) { } diff --git a/tests/baselines/reference/ES5For-ofTypeCheck11.symbols b/tests/baselines/reference/ES5For-ofTypeCheck11(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/ES5For-ofTypeCheck11.symbols rename to tests/baselines/reference/ES5For-ofTypeCheck11(target=es2015).symbols diff --git a/tests/baselines/reference/ES5For-ofTypeCheck11.types b/tests/baselines/reference/ES5For-ofTypeCheck11(target=es2015).types similarity index 100% rename from tests/baselines/reference/ES5For-ofTypeCheck11.types rename to tests/baselines/reference/ES5For-ofTypeCheck11(target=es2015).types diff --git a/tests/baselines/reference/ES5For-ofTypeCheck11(target=es5).errors.txt b/tests/baselines/reference/ES5For-ofTypeCheck11(target=es5).errors.txt new file mode 100644 index 0000000000000..4ccd0dc727574 --- /dev/null +++ b/tests/baselines/reference/ES5For-ofTypeCheck11(target=es5).errors.txt @@ -0,0 +1,11 @@ +ES5For-ofTypeCheck11.ts(3,6): error TS2322: Type 'string | number' is not assignable to type 'string'. + Type 'number' is not assignable to type 'string'. + + +==== ES5For-ofTypeCheck11.ts (1 errors) ==== + declare var union: string | number[]; + var v: string; + for (v of union) { } + ~ +!!! error TS2322: Type 'string | number' is not assignable to type 'string'. +!!! error TS2322: Type 'number' is not assignable to type 'string'. \ No newline at end of file diff --git a/tests/baselines/reference/ES5For-ofTypeCheck11.js b/tests/baselines/reference/ES5For-ofTypeCheck11(target=es5).js similarity index 100% rename from tests/baselines/reference/ES5For-ofTypeCheck11.js rename to tests/baselines/reference/ES5For-ofTypeCheck11(target=es5).js diff --git a/tests/baselines/reference/ES5For-ofTypeCheck11(target=es5).symbols b/tests/baselines/reference/ES5For-ofTypeCheck11(target=es5).symbols new file mode 100644 index 0000000000000..cfdf8ac0287c6 --- /dev/null +++ b/tests/baselines/reference/ES5For-ofTypeCheck11(target=es5).symbols @@ -0,0 +1,13 @@ +//// [tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck11.ts] //// + +=== ES5For-ofTypeCheck11.ts === +declare var union: string | number[]; +>union : Symbol(union, Decl(ES5For-ofTypeCheck11.ts, 0, 11)) + +var v: string; +>v : Symbol(v, Decl(ES5For-ofTypeCheck11.ts, 1, 3)) + +for (v of union) { } +>v : Symbol(v, Decl(ES5For-ofTypeCheck11.ts, 1, 3)) +>union : Symbol(union, Decl(ES5For-ofTypeCheck11.ts, 0, 11)) + diff --git a/tests/baselines/reference/ES5For-ofTypeCheck11(target=es5).types b/tests/baselines/reference/ES5For-ofTypeCheck11(target=es5).types new file mode 100644 index 0000000000000..f1551d5b1b1cd --- /dev/null +++ b/tests/baselines/reference/ES5For-ofTypeCheck11(target=es5).types @@ -0,0 +1,17 @@ +//// [tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck11.ts] //// + +=== ES5For-ofTypeCheck11.ts === +declare var union: string | number[]; +>union : string | number[] +> : ^^^^^^^^^^^^^^^^^ + +var v: string; +>v : string +> : ^^^^^^ + +for (v of union) { } +>v : string +> : ^^^^^^ +>union : string | number[] +> : ^^^^^^^^^^^^^^^^^ + diff --git a/tests/baselines/reference/ES5For-ofTypeCheck12(target=es2015).errors.txt b/tests/baselines/reference/ES5For-ofTypeCheck12(target=es2015).errors.txt new file mode 100644 index 0000000000000..1a303d394466c --- /dev/null +++ b/tests/baselines/reference/ES5For-ofTypeCheck12(target=es2015).errors.txt @@ -0,0 +1,7 @@ +ES5For-ofTypeCheck12.ts(1,17): error TS2488: Type '0' must have a '[Symbol.iterator]()' method that returns an iterator. + + +==== ES5For-ofTypeCheck12.ts (1 errors) ==== + for (const v of 0) { } + ~ +!!! error TS2488: Type '0' must have a '[Symbol.iterator]()' method that returns an iterator. \ No newline at end of file diff --git a/tests/baselines/reference/ES5For-ofTypeCheck12(target=es2015).js b/tests/baselines/reference/ES5For-ofTypeCheck12(target=es2015).js new file mode 100644 index 0000000000000..08ef9bfaddc82 --- /dev/null +++ b/tests/baselines/reference/ES5For-ofTypeCheck12(target=es2015).js @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck12.ts] //// + +//// [ES5For-ofTypeCheck12.ts] +for (const v of 0) { } + +//// [ES5For-ofTypeCheck12.js] +for (const v of 0) { } diff --git a/tests/baselines/reference/ES5For-ofTypeCheck12.symbols b/tests/baselines/reference/ES5For-ofTypeCheck12(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/ES5For-ofTypeCheck12.symbols rename to tests/baselines/reference/ES5For-ofTypeCheck12(target=es2015).symbols diff --git a/tests/baselines/reference/ES5For-ofTypeCheck12.types b/tests/baselines/reference/ES5For-ofTypeCheck12(target=es2015).types similarity index 100% rename from tests/baselines/reference/ES5For-ofTypeCheck12.types rename to tests/baselines/reference/ES5For-ofTypeCheck12(target=es2015).types diff --git a/tests/baselines/reference/ES5For-ofTypeCheck12.errors.txt b/tests/baselines/reference/ES5For-ofTypeCheck12(target=es5).errors.txt similarity index 100% rename from tests/baselines/reference/ES5For-ofTypeCheck12.errors.txt rename to tests/baselines/reference/ES5For-ofTypeCheck12(target=es5).errors.txt diff --git a/tests/baselines/reference/ES5For-ofTypeCheck12.js b/tests/baselines/reference/ES5For-ofTypeCheck12(target=es5).js similarity index 100% rename from tests/baselines/reference/ES5For-ofTypeCheck12.js rename to tests/baselines/reference/ES5For-ofTypeCheck12(target=es5).js diff --git a/tests/baselines/reference/ES5For-ofTypeCheck12(target=es5).symbols b/tests/baselines/reference/ES5For-ofTypeCheck12(target=es5).symbols new file mode 100644 index 0000000000000..3f16282e32e29 --- /dev/null +++ b/tests/baselines/reference/ES5For-ofTypeCheck12(target=es5).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck12.ts] //// + +=== ES5For-ofTypeCheck12.ts === +for (const v of 0) { } +>v : Symbol(v, Decl(ES5For-ofTypeCheck12.ts, 0, 10)) + diff --git a/tests/baselines/reference/ES5For-ofTypeCheck12(target=es5).types b/tests/baselines/reference/ES5For-ofTypeCheck12(target=es5).types new file mode 100644 index 0000000000000..59a63f12ec22d --- /dev/null +++ b/tests/baselines/reference/ES5For-ofTypeCheck12(target=es5).types @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck12.ts] //// + +=== ES5For-ofTypeCheck12.ts === +for (const v of 0) { } +>v : any +> : ^^^ +>0 : 0 +> : ^ + diff --git a/tests/baselines/reference/ES5For-ofTypeCheck13(target=es2015).js b/tests/baselines/reference/ES5For-ofTypeCheck13(target=es2015).js new file mode 100644 index 0000000000000..a87f0b48390d4 --- /dev/null +++ b/tests/baselines/reference/ES5For-ofTypeCheck13(target=es2015).js @@ -0,0 +1,13 @@ +//// [tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck13.ts] //// + +//// [ES5For-ofTypeCheck13.ts] +const strSet: Set = new Set() +strSet.add('Hello') +strSet.add('World') +for (const str of strSet) { } + +//// [ES5For-ofTypeCheck13.js] +const strSet = new Set(); +strSet.add('Hello'); +strSet.add('World'); +for (const str of strSet) { } diff --git a/tests/baselines/reference/ES5For-ofTypeCheck13.symbols b/tests/baselines/reference/ES5For-ofTypeCheck13(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/ES5For-ofTypeCheck13.symbols rename to tests/baselines/reference/ES5For-ofTypeCheck13(target=es2015).symbols diff --git a/tests/baselines/reference/ES5For-ofTypeCheck13(target=es2015).types b/tests/baselines/reference/ES5For-ofTypeCheck13(target=es2015).types new file mode 100644 index 0000000000000..7a115a43f980e --- /dev/null +++ b/tests/baselines/reference/ES5For-ofTypeCheck13(target=es2015).types @@ -0,0 +1,41 @@ +//// [tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck13.ts] //// + +=== ES5For-ofTypeCheck13.ts === +const strSet: Set = new Set() +>strSet : Set +> : ^^^^^^^^^^^ +>new Set() : Set +> : ^^^^^^^^^^^ +>Set : SetConstructor +> : ^^^^^^^^^^^^^^ + +strSet.add('Hello') +>strSet.add('Hello') : Set +> : ^^^^^^^^^^^ +>strSet.add : (value: string) => Set +> : ^ ^^^^^^^^^^^^^^^^^^^^^^^^ +>strSet : Set +> : ^^^^^^^^^^^ +>add : (value: string) => Set +> : ^ ^^^^^^^^^^^^^^^^^^^^^^^^ +>'Hello' : "Hello" +> : ^^^^^^^ + +strSet.add('World') +>strSet.add('World') : Set +> : ^^^^^^^^^^^ +>strSet.add : (value: string) => Set +> : ^ ^^^^^^^^^^^^^^^^^^^^^^^^ +>strSet : Set +> : ^^^^^^^^^^^ +>add : (value: string) => Set +> : ^ ^^^^^^^^^^^^^^^^^^^^^^^^ +>'World' : "World" +> : ^^^^^^^ + +for (const str of strSet) { } +>str : string +> : ^^^^^^ +>strSet : Set +> : ^^^^^^^^^^^ + diff --git a/tests/baselines/reference/ES5For-ofTypeCheck13.errors.txt b/tests/baselines/reference/ES5For-ofTypeCheck13(target=es5).errors.txt similarity index 100% rename from tests/baselines/reference/ES5For-ofTypeCheck13.errors.txt rename to tests/baselines/reference/ES5For-ofTypeCheck13(target=es5).errors.txt diff --git a/tests/baselines/reference/ES5For-ofTypeCheck13.js b/tests/baselines/reference/ES5For-ofTypeCheck13(target=es5).js similarity index 100% rename from tests/baselines/reference/ES5For-ofTypeCheck13.js rename to tests/baselines/reference/ES5For-ofTypeCheck13(target=es5).js diff --git a/tests/baselines/reference/ES5For-ofTypeCheck13(target=es5).symbols b/tests/baselines/reference/ES5For-ofTypeCheck13(target=es5).symbols new file mode 100644 index 0000000000000..4c7557d45d2ab --- /dev/null +++ b/tests/baselines/reference/ES5For-ofTypeCheck13(target=es5).symbols @@ -0,0 +1,22 @@ +//// [tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck13.ts] //// + +=== ES5For-ofTypeCheck13.ts === +const strSet: Set = new Set() +>strSet : Symbol(strSet, Decl(ES5For-ofTypeCheck13.ts, 0, 5)) +>Set : Symbol(Set, Decl(lib.es2015.collection.d.ts, --, --), Decl(lib.es2015.collection.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>Set : Symbol(Set, Decl(lib.es2015.collection.d.ts, --, --), Decl(lib.es2015.collection.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + +strSet.add('Hello') +>strSet.add : Symbol(Set.add, Decl(lib.es2015.collection.d.ts, --, --)) +>strSet : Symbol(strSet, Decl(ES5For-ofTypeCheck13.ts, 0, 5)) +>add : Symbol(Set.add, Decl(lib.es2015.collection.d.ts, --, --)) + +strSet.add('World') +>strSet.add : Symbol(Set.add, Decl(lib.es2015.collection.d.ts, --, --)) +>strSet : Symbol(strSet, Decl(ES5For-ofTypeCheck13.ts, 0, 5)) +>add : Symbol(Set.add, Decl(lib.es2015.collection.d.ts, --, --)) + +for (const str of strSet) { } +>str : Symbol(str, Decl(ES5For-ofTypeCheck13.ts, 3, 10)) +>strSet : Symbol(strSet, Decl(ES5For-ofTypeCheck13.ts, 0, 5)) + diff --git a/tests/baselines/reference/ES5For-ofTypeCheck13.types b/tests/baselines/reference/ES5For-ofTypeCheck13(target=es5).types similarity index 100% rename from tests/baselines/reference/ES5For-ofTypeCheck13.types rename to tests/baselines/reference/ES5For-ofTypeCheck13(target=es5).types diff --git a/tests/baselines/reference/ES5For-ofTypeCheck14(target=es2015).js b/tests/baselines/reference/ES5For-ofTypeCheck14(target=es2015).js new file mode 100644 index 0000000000000..1bfb17228f4fe --- /dev/null +++ b/tests/baselines/reference/ES5For-ofTypeCheck14(target=es2015).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck14.ts] //// + +//// [ES5For-ofTypeCheck14.ts] +declare var union: string | Set +for (const e of union) { } + +//// [ES5For-ofTypeCheck14.js] +for (const e of union) { } diff --git a/tests/baselines/reference/ES5For-ofTypeCheck14.symbols b/tests/baselines/reference/ES5For-ofTypeCheck14(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/ES5For-ofTypeCheck14.symbols rename to tests/baselines/reference/ES5For-ofTypeCheck14(target=es2015).symbols diff --git a/tests/baselines/reference/ES5For-ofTypeCheck14(target=es2015).types b/tests/baselines/reference/ES5For-ofTypeCheck14(target=es2015).types new file mode 100644 index 0000000000000..ee9946a831d94 --- /dev/null +++ b/tests/baselines/reference/ES5For-ofTypeCheck14(target=es2015).types @@ -0,0 +1,13 @@ +//// [tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck14.ts] //// + +=== ES5For-ofTypeCheck14.ts === +declare var union: string | Set +>union : string | Set +> : ^^^^^^^^^^^^^^^^^^^^ + +for (const e of union) { } +>e : string | number +> : ^^^^^^^^^^^^^^^ +>union : string | Set +> : ^^^^^^^^^^^^^^^^^^^^ + diff --git a/tests/baselines/reference/ES5For-ofTypeCheck14.errors.txt b/tests/baselines/reference/ES5For-ofTypeCheck14(target=es5).errors.txt similarity index 100% rename from tests/baselines/reference/ES5For-ofTypeCheck14.errors.txt rename to tests/baselines/reference/ES5For-ofTypeCheck14(target=es5).errors.txt diff --git a/tests/baselines/reference/ES5For-ofTypeCheck14.js b/tests/baselines/reference/ES5For-ofTypeCheck14(target=es5).js similarity index 100% rename from tests/baselines/reference/ES5For-ofTypeCheck14.js rename to tests/baselines/reference/ES5For-ofTypeCheck14(target=es5).js diff --git a/tests/baselines/reference/ES5For-ofTypeCheck14(target=es5).symbols b/tests/baselines/reference/ES5For-ofTypeCheck14(target=es5).symbols new file mode 100644 index 0000000000000..d964cb61ed992 --- /dev/null +++ b/tests/baselines/reference/ES5For-ofTypeCheck14(target=es5).symbols @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck14.ts] //// + +=== ES5For-ofTypeCheck14.ts === +declare var union: string | Set +>union : Symbol(union, Decl(ES5For-ofTypeCheck14.ts, 0, 11)) +>Set : Symbol(Set, Decl(lib.es2015.collection.d.ts, --, --), Decl(lib.es2015.collection.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + +for (const e of union) { } +>e : Symbol(e, Decl(ES5For-ofTypeCheck14.ts, 1, 10)) +>union : Symbol(union, Decl(ES5For-ofTypeCheck14.ts, 0, 11)) + diff --git a/tests/baselines/reference/ES5For-ofTypeCheck14.types b/tests/baselines/reference/ES5For-ofTypeCheck14(target=es5).types similarity index 100% rename from tests/baselines/reference/ES5For-ofTypeCheck14.types rename to tests/baselines/reference/ES5For-ofTypeCheck14(target=es5).types diff --git a/tests/baselines/reference/ES5For-ofTypeCheck2(target=es2015).js b/tests/baselines/reference/ES5For-ofTypeCheck2(target=es2015).js new file mode 100644 index 0000000000000..64e31173c7eb0 --- /dev/null +++ b/tests/baselines/reference/ES5For-ofTypeCheck2(target=es2015).js @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck2.ts] //// + +//// [ES5For-ofTypeCheck2.ts] +for (var v of [true]) { } + +//// [ES5For-ofTypeCheck2.js] +for (var v of [true]) { } diff --git a/tests/baselines/reference/ES5For-ofTypeCheck2.symbols b/tests/baselines/reference/ES5For-ofTypeCheck2(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/ES5For-ofTypeCheck2.symbols rename to tests/baselines/reference/ES5For-ofTypeCheck2(target=es2015).symbols diff --git a/tests/baselines/reference/ES5For-ofTypeCheck2.types b/tests/baselines/reference/ES5For-ofTypeCheck2(target=es2015).types similarity index 100% rename from tests/baselines/reference/ES5For-ofTypeCheck2.types rename to tests/baselines/reference/ES5For-ofTypeCheck2(target=es2015).types diff --git a/tests/baselines/reference/ES5For-ofTypeCheck2.js b/tests/baselines/reference/ES5For-ofTypeCheck2(target=es5).js similarity index 100% rename from tests/baselines/reference/ES5For-ofTypeCheck2.js rename to tests/baselines/reference/ES5For-ofTypeCheck2(target=es5).js diff --git a/tests/baselines/reference/ES5For-ofTypeCheck2(target=es5).symbols b/tests/baselines/reference/ES5For-ofTypeCheck2(target=es5).symbols new file mode 100644 index 0000000000000..ba1baa606b955 --- /dev/null +++ b/tests/baselines/reference/ES5For-ofTypeCheck2(target=es5).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck2.ts] //// + +=== ES5For-ofTypeCheck2.ts === +for (var v of [true]) { } +>v : Symbol(v, Decl(ES5For-ofTypeCheck2.ts, 0, 8)) + diff --git a/tests/baselines/reference/ES5For-ofTypeCheck2(target=es5).types b/tests/baselines/reference/ES5For-ofTypeCheck2(target=es5).types new file mode 100644 index 0000000000000..9de441f7808c3 --- /dev/null +++ b/tests/baselines/reference/ES5For-ofTypeCheck2(target=es5).types @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck2.ts] //// + +=== ES5For-ofTypeCheck2.ts === +for (var v of [true]) { } +>v : boolean +> : ^^^^^^^ +>[true] : boolean[] +> : ^^^^^^^^^ +>true : true +> : ^^^^ + diff --git a/tests/baselines/reference/ES5For-ofTypeCheck3(target=es2015).js b/tests/baselines/reference/ES5For-ofTypeCheck3(target=es2015).js new file mode 100644 index 0000000000000..9d5ed68694b1a --- /dev/null +++ b/tests/baselines/reference/ES5For-ofTypeCheck3(target=es2015).js @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck3.ts] //// + +//// [ES5For-ofTypeCheck3.ts] +var tuple: [string, number] = ["", 0]; +for (var v of tuple) { } + +//// [ES5For-ofTypeCheck3.js] +var tuple = ["", 0]; +for (var v of tuple) { } diff --git a/tests/baselines/reference/ES5For-ofTypeCheck3.symbols b/tests/baselines/reference/ES5For-ofTypeCheck3(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/ES5For-ofTypeCheck3.symbols rename to tests/baselines/reference/ES5For-ofTypeCheck3(target=es2015).symbols diff --git a/tests/baselines/reference/ES5For-ofTypeCheck3.types b/tests/baselines/reference/ES5For-ofTypeCheck3(target=es2015).types similarity index 100% rename from tests/baselines/reference/ES5For-ofTypeCheck3.types rename to tests/baselines/reference/ES5For-ofTypeCheck3(target=es2015).types diff --git a/tests/baselines/reference/ES5For-ofTypeCheck3.js b/tests/baselines/reference/ES5For-ofTypeCheck3(target=es5).js similarity index 100% rename from tests/baselines/reference/ES5For-ofTypeCheck3.js rename to tests/baselines/reference/ES5For-ofTypeCheck3(target=es5).js diff --git a/tests/baselines/reference/ES5For-ofTypeCheck3(target=es5).symbols b/tests/baselines/reference/ES5For-ofTypeCheck3(target=es5).symbols new file mode 100644 index 0000000000000..269866024e3e4 --- /dev/null +++ b/tests/baselines/reference/ES5For-ofTypeCheck3(target=es5).symbols @@ -0,0 +1,10 @@ +//// [tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck3.ts] //// + +=== ES5For-ofTypeCheck3.ts === +var tuple: [string, number] = ["", 0]; +>tuple : Symbol(tuple, Decl(ES5For-ofTypeCheck3.ts, 0, 3)) + +for (var v of tuple) { } +>v : Symbol(v, Decl(ES5For-ofTypeCheck3.ts, 1, 8)) +>tuple : Symbol(tuple, Decl(ES5For-ofTypeCheck3.ts, 0, 3)) + diff --git a/tests/baselines/reference/ES5For-ofTypeCheck3(target=es5).types b/tests/baselines/reference/ES5For-ofTypeCheck3(target=es5).types new file mode 100644 index 0000000000000..be27f742e17de --- /dev/null +++ b/tests/baselines/reference/ES5For-ofTypeCheck3(target=es5).types @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck3.ts] //// + +=== ES5For-ofTypeCheck3.ts === +var tuple: [string, number] = ["", 0]; +>tuple : [string, number] +> : ^^^^^^^^^^^^^^^^ +>["", 0] : [string, number] +> : ^^^^^^^^^^^^^^^^ +>"" : "" +> : ^^ +>0 : 0 +> : ^ + +for (var v of tuple) { } +>v : string | number +> : ^^^^^^^^^^^^^^^ +>tuple : [string, number] +> : ^^^^^^^^^^^^^^^^ + diff --git a/tests/baselines/reference/ES5For-ofTypeCheck4(target=es2015).js b/tests/baselines/reference/ES5For-ofTypeCheck4(target=es2015).js new file mode 100644 index 0000000000000..0551df0328a21 --- /dev/null +++ b/tests/baselines/reference/ES5For-ofTypeCheck4(target=es2015).js @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck4.ts] //// + +//// [ES5For-ofTypeCheck4.ts] +var union: string | string[]; +for (const v of union) { } + +//// [ES5For-ofTypeCheck4.js] +var union; +for (const v of union) { } diff --git a/tests/baselines/reference/ES5For-ofTypeCheck4.symbols b/tests/baselines/reference/ES5For-ofTypeCheck4(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/ES5For-ofTypeCheck4.symbols rename to tests/baselines/reference/ES5For-ofTypeCheck4(target=es2015).symbols diff --git a/tests/baselines/reference/ES5For-ofTypeCheck4.types b/tests/baselines/reference/ES5For-ofTypeCheck4(target=es2015).types similarity index 100% rename from tests/baselines/reference/ES5For-ofTypeCheck4.types rename to tests/baselines/reference/ES5For-ofTypeCheck4(target=es2015).types diff --git a/tests/baselines/reference/ES5For-ofTypeCheck4.js b/tests/baselines/reference/ES5For-ofTypeCheck4(target=es5).js similarity index 100% rename from tests/baselines/reference/ES5For-ofTypeCheck4.js rename to tests/baselines/reference/ES5For-ofTypeCheck4(target=es5).js diff --git a/tests/baselines/reference/ES5For-ofTypeCheck4(target=es5).symbols b/tests/baselines/reference/ES5For-ofTypeCheck4(target=es5).symbols new file mode 100644 index 0000000000000..f71743bec5408 --- /dev/null +++ b/tests/baselines/reference/ES5For-ofTypeCheck4(target=es5).symbols @@ -0,0 +1,10 @@ +//// [tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck4.ts] //// + +=== ES5For-ofTypeCheck4.ts === +var union: string | string[]; +>union : Symbol(union, Decl(ES5For-ofTypeCheck4.ts, 0, 3)) + +for (const v of union) { } +>v : Symbol(v, Decl(ES5For-ofTypeCheck4.ts, 1, 10)) +>union : Symbol(union, Decl(ES5For-ofTypeCheck4.ts, 0, 3)) + diff --git a/tests/baselines/reference/ES5For-ofTypeCheck4(target=es5).types b/tests/baselines/reference/ES5For-ofTypeCheck4(target=es5).types new file mode 100644 index 0000000000000..55620f0e041cd --- /dev/null +++ b/tests/baselines/reference/ES5For-ofTypeCheck4(target=es5).types @@ -0,0 +1,13 @@ +//// [tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck4.ts] //// + +=== ES5For-ofTypeCheck4.ts === +var union: string | string[]; +>union : string | string[] +> : ^^^^^^^^^^^^^^^^^ + +for (const v of union) { } +>v : string +> : ^^^^^^ +>union : string | string[] +> : ^^^^^^^^^^^^^^^^^ + diff --git a/tests/baselines/reference/ES5For-ofTypeCheck5(target=es2015).js b/tests/baselines/reference/ES5For-ofTypeCheck5(target=es2015).js new file mode 100644 index 0000000000000..8b99c7eaffef1 --- /dev/null +++ b/tests/baselines/reference/ES5For-ofTypeCheck5(target=es2015).js @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck5.ts] //// + +//// [ES5For-ofTypeCheck5.ts] +var union: string | number[]; +for (var v of union) { } + +//// [ES5For-ofTypeCheck5.js] +var union; +for (var v of union) { } diff --git a/tests/baselines/reference/ES5For-ofTypeCheck5.symbols b/tests/baselines/reference/ES5For-ofTypeCheck5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/ES5For-ofTypeCheck5.symbols rename to tests/baselines/reference/ES5For-ofTypeCheck5(target=es2015).symbols diff --git a/tests/baselines/reference/ES5For-ofTypeCheck5.types b/tests/baselines/reference/ES5For-ofTypeCheck5(target=es2015).types similarity index 100% rename from tests/baselines/reference/ES5For-ofTypeCheck5.types rename to tests/baselines/reference/ES5For-ofTypeCheck5(target=es2015).types diff --git a/tests/baselines/reference/ES5For-ofTypeCheck5.js b/tests/baselines/reference/ES5For-ofTypeCheck5(target=es5).js similarity index 100% rename from tests/baselines/reference/ES5For-ofTypeCheck5.js rename to tests/baselines/reference/ES5For-ofTypeCheck5(target=es5).js diff --git a/tests/baselines/reference/ES5For-ofTypeCheck5(target=es5).symbols b/tests/baselines/reference/ES5For-ofTypeCheck5(target=es5).symbols new file mode 100644 index 0000000000000..f2466f09cb132 --- /dev/null +++ b/tests/baselines/reference/ES5For-ofTypeCheck5(target=es5).symbols @@ -0,0 +1,10 @@ +//// [tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck5.ts] //// + +=== ES5For-ofTypeCheck5.ts === +var union: string | number[]; +>union : Symbol(union, Decl(ES5For-ofTypeCheck5.ts, 0, 3)) + +for (var v of union) { } +>v : Symbol(v, Decl(ES5For-ofTypeCheck5.ts, 1, 8)) +>union : Symbol(union, Decl(ES5For-ofTypeCheck5.ts, 0, 3)) + diff --git a/tests/baselines/reference/ES5For-ofTypeCheck5(target=es5).types b/tests/baselines/reference/ES5For-ofTypeCheck5(target=es5).types new file mode 100644 index 0000000000000..ca816a6683f85 --- /dev/null +++ b/tests/baselines/reference/ES5For-ofTypeCheck5(target=es5).types @@ -0,0 +1,13 @@ +//// [tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck5.ts] //// + +=== ES5For-ofTypeCheck5.ts === +var union: string | number[]; +>union : string | number[] +> : ^^^^^^^^^^^^^^^^^ + +for (var v of union) { } +>v : string | number +> : ^^^^^^^^^^^^^^^ +>union : string | number[] +> : ^^^^^^^^^^^^^^^^^ + diff --git a/tests/baselines/reference/ES5For-ofTypeCheck6(target=es2015).js b/tests/baselines/reference/ES5For-ofTypeCheck6(target=es2015).js new file mode 100644 index 0000000000000..508f9d7e1c5b4 --- /dev/null +++ b/tests/baselines/reference/ES5For-ofTypeCheck6(target=es2015).js @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck6.ts] //// + +//// [ES5For-ofTypeCheck6.ts] +var union: string[] | number[]; +for (var v of union) { } + +//// [ES5For-ofTypeCheck6.js] +var union; +for (var v of union) { } diff --git a/tests/baselines/reference/ES5For-ofTypeCheck6.symbols b/tests/baselines/reference/ES5For-ofTypeCheck6(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/ES5For-ofTypeCheck6.symbols rename to tests/baselines/reference/ES5For-ofTypeCheck6(target=es2015).symbols diff --git a/tests/baselines/reference/ES5For-ofTypeCheck6.types b/tests/baselines/reference/ES5For-ofTypeCheck6(target=es2015).types similarity index 100% rename from tests/baselines/reference/ES5For-ofTypeCheck6.types rename to tests/baselines/reference/ES5For-ofTypeCheck6(target=es2015).types diff --git a/tests/baselines/reference/ES5For-ofTypeCheck6.js b/tests/baselines/reference/ES5For-ofTypeCheck6(target=es5).js similarity index 100% rename from tests/baselines/reference/ES5For-ofTypeCheck6.js rename to tests/baselines/reference/ES5For-ofTypeCheck6(target=es5).js diff --git a/tests/baselines/reference/ES5For-ofTypeCheck6(target=es5).symbols b/tests/baselines/reference/ES5For-ofTypeCheck6(target=es5).symbols new file mode 100644 index 0000000000000..c69262d78f137 --- /dev/null +++ b/tests/baselines/reference/ES5For-ofTypeCheck6(target=es5).symbols @@ -0,0 +1,10 @@ +//// [tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck6.ts] //// + +=== ES5For-ofTypeCheck6.ts === +var union: string[] | number[]; +>union : Symbol(union, Decl(ES5For-ofTypeCheck6.ts, 0, 3)) + +for (var v of union) { } +>v : Symbol(v, Decl(ES5For-ofTypeCheck6.ts, 1, 8)) +>union : Symbol(union, Decl(ES5For-ofTypeCheck6.ts, 0, 3)) + diff --git a/tests/baselines/reference/ES5For-ofTypeCheck6(target=es5).types b/tests/baselines/reference/ES5For-ofTypeCheck6(target=es5).types new file mode 100644 index 0000000000000..94ee13411ddbe --- /dev/null +++ b/tests/baselines/reference/ES5For-ofTypeCheck6(target=es5).types @@ -0,0 +1,13 @@ +//// [tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck6.ts] //// + +=== ES5For-ofTypeCheck6.ts === +var union: string[] | number[]; +>union : string[] | number[] +> : ^^^^^^^^^^^^^^^^^^^ + +for (var v of union) { } +>v : string | number +> : ^^^^^^^^^^^^^^^ +>union : string[] | number[] +> : ^^^^^^^^^^^^^^^^^^^ + diff --git a/tests/baselines/reference/ES5For-ofTypeCheck7(target=es2015).errors.txt b/tests/baselines/reference/ES5For-ofTypeCheck7(target=es2015).errors.txt new file mode 100644 index 0000000000000..a421c486b33e7 --- /dev/null +++ b/tests/baselines/reference/ES5For-ofTypeCheck7(target=es2015).errors.txt @@ -0,0 +1,8 @@ +ES5For-ofTypeCheck7.ts(2,15): error TS2488: Type 'string | number' must have a '[Symbol.iterator]()' method that returns an iterator. + + +==== ES5For-ofTypeCheck7.ts (1 errors) ==== + declare var union: string | number; + for (var v of union) { } + ~~~~~ +!!! error TS2488: Type 'string | number' must have a '[Symbol.iterator]()' method that returns an iterator. \ No newline at end of file diff --git a/tests/baselines/reference/ES5For-ofTypeCheck7(target=es2015).js b/tests/baselines/reference/ES5For-ofTypeCheck7(target=es2015).js new file mode 100644 index 0000000000000..61ba335fa56d1 --- /dev/null +++ b/tests/baselines/reference/ES5For-ofTypeCheck7(target=es2015).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck7.ts] //// + +//// [ES5For-ofTypeCheck7.ts] +declare var union: string | number; +for (var v of union) { } + +//// [ES5For-ofTypeCheck7.js] +for (var v of union) { } diff --git a/tests/baselines/reference/ES5For-ofTypeCheck7.symbols b/tests/baselines/reference/ES5For-ofTypeCheck7(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/ES5For-ofTypeCheck7.symbols rename to tests/baselines/reference/ES5For-ofTypeCheck7(target=es2015).symbols diff --git a/tests/baselines/reference/ES5For-ofTypeCheck7(target=es2015).types b/tests/baselines/reference/ES5For-ofTypeCheck7(target=es2015).types new file mode 100644 index 0000000000000..d8d8eadf541e6 --- /dev/null +++ b/tests/baselines/reference/ES5For-ofTypeCheck7(target=es2015).types @@ -0,0 +1,13 @@ +//// [tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck7.ts] //// + +=== ES5For-ofTypeCheck7.ts === +declare var union: string | number; +>union : string | number +> : ^^^^^^^^^^^^^^^ + +for (var v of union) { } +>v : any +> : ^^^ +>union : string | number +> : ^^^^^^^^^^^^^^^ + diff --git a/tests/baselines/reference/ES5For-ofTypeCheck7.errors.txt b/tests/baselines/reference/ES5For-ofTypeCheck7(target=es5).errors.txt similarity index 100% rename from tests/baselines/reference/ES5For-ofTypeCheck7.errors.txt rename to tests/baselines/reference/ES5For-ofTypeCheck7(target=es5).errors.txt diff --git a/tests/baselines/reference/ES5For-ofTypeCheck7.js b/tests/baselines/reference/ES5For-ofTypeCheck7(target=es5).js similarity index 100% rename from tests/baselines/reference/ES5For-ofTypeCheck7.js rename to tests/baselines/reference/ES5For-ofTypeCheck7(target=es5).js diff --git a/tests/baselines/reference/ES5For-ofTypeCheck7(target=es5).symbols b/tests/baselines/reference/ES5For-ofTypeCheck7(target=es5).symbols new file mode 100644 index 0000000000000..68dbdf6f50db5 --- /dev/null +++ b/tests/baselines/reference/ES5For-ofTypeCheck7(target=es5).symbols @@ -0,0 +1,10 @@ +//// [tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck7.ts] //// + +=== ES5For-ofTypeCheck7.ts === +declare var union: string | number; +>union : Symbol(union, Decl(ES5For-ofTypeCheck7.ts, 0, 11)) + +for (var v of union) { } +>v : Symbol(v, Decl(ES5For-ofTypeCheck7.ts, 1, 8)) +>union : Symbol(union, Decl(ES5For-ofTypeCheck7.ts, 0, 11)) + diff --git a/tests/baselines/reference/ES5For-ofTypeCheck7.types b/tests/baselines/reference/ES5For-ofTypeCheck7(target=es5).types similarity index 100% rename from tests/baselines/reference/ES5For-ofTypeCheck7.types rename to tests/baselines/reference/ES5For-ofTypeCheck7(target=es5).types diff --git a/tests/baselines/reference/ES5For-ofTypeCheck8.errors.txt b/tests/baselines/reference/ES5For-ofTypeCheck8(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/ES5For-ofTypeCheck8.errors.txt rename to tests/baselines/reference/ES5For-ofTypeCheck8(target=es2015).errors.txt diff --git a/tests/baselines/reference/ES5For-ofTypeCheck8(target=es2015).js b/tests/baselines/reference/ES5For-ofTypeCheck8(target=es2015).js new file mode 100644 index 0000000000000..9650d247a14e4 --- /dev/null +++ b/tests/baselines/reference/ES5For-ofTypeCheck8(target=es2015).js @@ -0,0 +1,10 @@ +//// [tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck8.ts] //// + +//// [ES5For-ofTypeCheck8.ts] +declare var union: string | string[]| number[]| symbol[]; +var v: symbol; +for (v of union) { } + +//// [ES5For-ofTypeCheck8.js] +var v; +for (v of union) { } diff --git a/tests/baselines/reference/ES5For-ofTypeCheck8.symbols b/tests/baselines/reference/ES5For-ofTypeCheck8(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/ES5For-ofTypeCheck8.symbols rename to tests/baselines/reference/ES5For-ofTypeCheck8(target=es2015).symbols diff --git a/tests/baselines/reference/ES5For-ofTypeCheck8.types b/tests/baselines/reference/ES5For-ofTypeCheck8(target=es2015).types similarity index 100% rename from tests/baselines/reference/ES5For-ofTypeCheck8.types rename to tests/baselines/reference/ES5For-ofTypeCheck8(target=es2015).types diff --git a/tests/baselines/reference/ES5For-ofTypeCheck8(target=es5).errors.txt b/tests/baselines/reference/ES5For-ofTypeCheck8(target=es5).errors.txt new file mode 100644 index 0000000000000..3f82df8f45f66 --- /dev/null +++ b/tests/baselines/reference/ES5For-ofTypeCheck8(target=es5).errors.txt @@ -0,0 +1,11 @@ +ES5For-ofTypeCheck8.ts(3,6): error TS2322: Type 'string | number | symbol' is not assignable to type 'symbol'. + Type 'string' is not assignable to type 'symbol'. + + +==== ES5For-ofTypeCheck8.ts (1 errors) ==== + declare var union: string | string[]| number[]| symbol[]; + var v: symbol; + for (v of union) { } + ~ +!!! error TS2322: Type 'string | number | symbol' is not assignable to type 'symbol'. +!!! error TS2322: Type 'string' is not assignable to type 'symbol'. \ No newline at end of file diff --git a/tests/baselines/reference/ES5For-ofTypeCheck8.js b/tests/baselines/reference/ES5For-ofTypeCheck8(target=es5).js similarity index 100% rename from tests/baselines/reference/ES5For-ofTypeCheck8.js rename to tests/baselines/reference/ES5For-ofTypeCheck8(target=es5).js diff --git a/tests/baselines/reference/ES5For-ofTypeCheck8(target=es5).symbols b/tests/baselines/reference/ES5For-ofTypeCheck8(target=es5).symbols new file mode 100644 index 0000000000000..faf229923b679 --- /dev/null +++ b/tests/baselines/reference/ES5For-ofTypeCheck8(target=es5).symbols @@ -0,0 +1,13 @@ +//// [tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck8.ts] //// + +=== ES5For-ofTypeCheck8.ts === +declare var union: string | string[]| number[]| symbol[]; +>union : Symbol(union, Decl(ES5For-ofTypeCheck8.ts, 0, 11)) + +var v: symbol; +>v : Symbol(v, Decl(ES5For-ofTypeCheck8.ts, 1, 3)) + +for (v of union) { } +>v : Symbol(v, Decl(ES5For-ofTypeCheck8.ts, 1, 3)) +>union : Symbol(union, Decl(ES5For-ofTypeCheck8.ts, 0, 11)) + diff --git a/tests/baselines/reference/ES5For-ofTypeCheck8(target=es5).types b/tests/baselines/reference/ES5For-ofTypeCheck8(target=es5).types new file mode 100644 index 0000000000000..4616a6fe6bae9 --- /dev/null +++ b/tests/baselines/reference/ES5For-ofTypeCheck8(target=es5).types @@ -0,0 +1,17 @@ +//// [tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck8.ts] //// + +=== ES5For-ofTypeCheck8.ts === +declare var union: string | string[]| number[]| symbol[]; +>union : string | string[] | number[] | symbol[] +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +var v: symbol; +>v : symbol +> : ^^^^^^ + +for (v of union) { } +>v : symbol +> : ^^^^^^ +>union : string | string[] | number[] | symbol[] +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + diff --git a/tests/baselines/reference/ES5For-ofTypeCheck9(target=es2015).errors.txt b/tests/baselines/reference/ES5For-ofTypeCheck9(target=es2015).errors.txt new file mode 100644 index 0000000000000..57f902cf30689 --- /dev/null +++ b/tests/baselines/reference/ES5For-ofTypeCheck9(target=es2015).errors.txt @@ -0,0 +1,8 @@ +ES5For-ofTypeCheck9.ts(2,15): error TS2488: Type 'string | number | symbol | string[]' must have a '[Symbol.iterator]()' method that returns an iterator. + + +==== ES5For-ofTypeCheck9.ts (1 errors) ==== + declare var union: string | string[] | number | symbol; + for (let v of union) { } + ~~~~~ +!!! error TS2488: Type 'string | number | symbol | string[]' must have a '[Symbol.iterator]()' method that returns an iterator. \ No newline at end of file diff --git a/tests/baselines/reference/ES5For-ofTypeCheck9(target=es2015).js b/tests/baselines/reference/ES5For-ofTypeCheck9(target=es2015).js new file mode 100644 index 0000000000000..2b614ef7a75be --- /dev/null +++ b/tests/baselines/reference/ES5For-ofTypeCheck9(target=es2015).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck9.ts] //// + +//// [ES5For-ofTypeCheck9.ts] +declare var union: string | string[] | number | symbol; +for (let v of union) { } + +//// [ES5For-ofTypeCheck9.js] +for (let v of union) { } diff --git a/tests/baselines/reference/ES5For-ofTypeCheck9.symbols b/tests/baselines/reference/ES5For-ofTypeCheck9(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/ES5For-ofTypeCheck9.symbols rename to tests/baselines/reference/ES5For-ofTypeCheck9(target=es2015).symbols diff --git a/tests/baselines/reference/ES5For-ofTypeCheck9(target=es2015).types b/tests/baselines/reference/ES5For-ofTypeCheck9(target=es2015).types new file mode 100644 index 0000000000000..df9ceb0d13846 --- /dev/null +++ b/tests/baselines/reference/ES5For-ofTypeCheck9(target=es2015).types @@ -0,0 +1,13 @@ +//// [tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck9.ts] //// + +=== ES5For-ofTypeCheck9.ts === +declare var union: string | string[] | number | symbol; +>union : string | number | symbol | string[] +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +for (let v of union) { } +>v : any +> : ^^^ +>union : string | number | symbol | string[] +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + diff --git a/tests/baselines/reference/ES5For-ofTypeCheck9.errors.txt b/tests/baselines/reference/ES5For-ofTypeCheck9(target=es5).errors.txt similarity index 100% rename from tests/baselines/reference/ES5For-ofTypeCheck9.errors.txt rename to tests/baselines/reference/ES5For-ofTypeCheck9(target=es5).errors.txt diff --git a/tests/baselines/reference/ES5For-ofTypeCheck9.js b/tests/baselines/reference/ES5For-ofTypeCheck9(target=es5).js similarity index 100% rename from tests/baselines/reference/ES5For-ofTypeCheck9.js rename to tests/baselines/reference/ES5For-ofTypeCheck9(target=es5).js diff --git a/tests/baselines/reference/ES5For-ofTypeCheck9(target=es5).symbols b/tests/baselines/reference/ES5For-ofTypeCheck9(target=es5).symbols new file mode 100644 index 0000000000000..8bcf34bf7682c --- /dev/null +++ b/tests/baselines/reference/ES5For-ofTypeCheck9(target=es5).symbols @@ -0,0 +1,10 @@ +//// [tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck9.ts] //// + +=== ES5For-ofTypeCheck9.ts === +declare var union: string | string[] | number | symbol; +>union : Symbol(union, Decl(ES5For-ofTypeCheck9.ts, 0, 11)) + +for (let v of union) { } +>v : Symbol(v, Decl(ES5For-ofTypeCheck9.ts, 1, 8)) +>union : Symbol(union, Decl(ES5For-ofTypeCheck9.ts, 0, 11)) + diff --git a/tests/baselines/reference/ES5For-ofTypeCheck9.types b/tests/baselines/reference/ES5For-ofTypeCheck9(target=es5).types similarity index 100% rename from tests/baselines/reference/ES5For-ofTypeCheck9.types rename to tests/baselines/reference/ES5For-ofTypeCheck9(target=es5).types diff --git a/tests/baselines/reference/ES5SymbolProperty1(target=es2015).js b/tests/baselines/reference/ES5SymbolProperty1(target=es2015).js new file mode 100644 index 0000000000000..ea2f9fc33d176 --- /dev/null +++ b/tests/baselines/reference/ES5SymbolProperty1(target=es2015).js @@ -0,0 +1,20 @@ +//// [tests/cases/conformance/Symbols/ES5SymbolProperty1.ts] //// + +//// [ES5SymbolProperty1.ts] +interface SymbolConstructor { + foo: string; +} +var Symbol: SymbolConstructor; + +var obj = { + [Symbol.foo]: 0 +} + +obj[Symbol.foo]; + +//// [ES5SymbolProperty1.js] +var Symbol; +var obj = { + [Symbol.foo]: 0 +}; +obj[Symbol.foo]; diff --git a/tests/baselines/reference/ES5SymbolProperty1.symbols b/tests/baselines/reference/ES5SymbolProperty1(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/ES5SymbolProperty1.symbols rename to tests/baselines/reference/ES5SymbolProperty1(target=es2015).symbols diff --git a/tests/baselines/reference/ES5SymbolProperty1.types b/tests/baselines/reference/ES5SymbolProperty1(target=es2015).types similarity index 100% rename from tests/baselines/reference/ES5SymbolProperty1.types rename to tests/baselines/reference/ES5SymbolProperty1(target=es2015).types diff --git a/tests/baselines/reference/ES5SymbolProperty1.js b/tests/baselines/reference/ES5SymbolProperty1(target=es5).js similarity index 100% rename from tests/baselines/reference/ES5SymbolProperty1.js rename to tests/baselines/reference/ES5SymbolProperty1(target=es5).js diff --git a/tests/baselines/reference/ES5SymbolProperty1(target=es5).symbols b/tests/baselines/reference/ES5SymbolProperty1(target=es5).symbols new file mode 100644 index 0000000000000..af9cdfc362fa7 --- /dev/null +++ b/tests/baselines/reference/ES5SymbolProperty1(target=es5).symbols @@ -0,0 +1,29 @@ +//// [tests/cases/conformance/Symbols/ES5SymbolProperty1.ts] //// + +=== ES5SymbolProperty1.ts === +interface SymbolConstructor { +>SymbolConstructor : Symbol(SymbolConstructor, Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.asynciterable.d.ts, --, --), Decl(ES5SymbolProperty1.ts, 0, 0)) + + foo: string; +>foo : Symbol(SymbolConstructor.foo, Decl(ES5SymbolProperty1.ts, 0, 29)) +} +var Symbol: SymbolConstructor; +>Symbol : Symbol(Symbol, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(ES5SymbolProperty1.ts, 3, 3)) +>SymbolConstructor : Symbol(SymbolConstructor, Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.asynciterable.d.ts, --, --), Decl(ES5SymbolProperty1.ts, 0, 0)) + +var obj = { +>obj : Symbol(obj, Decl(ES5SymbolProperty1.ts, 5, 3)) + + [Symbol.foo]: 0 +>[Symbol.foo] : Symbol([Symbol.foo], Decl(ES5SymbolProperty1.ts, 5, 11)) +>Symbol.foo : Symbol(SymbolConstructor.foo, Decl(ES5SymbolProperty1.ts, 0, 29)) +>Symbol : Symbol(Symbol, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(ES5SymbolProperty1.ts, 3, 3)) +>foo : Symbol(SymbolConstructor.foo, Decl(ES5SymbolProperty1.ts, 0, 29)) +} + +obj[Symbol.foo]; +>obj : Symbol(obj, Decl(ES5SymbolProperty1.ts, 5, 3)) +>Symbol.foo : Symbol(SymbolConstructor.foo, Decl(ES5SymbolProperty1.ts, 0, 29)) +>Symbol : Symbol(Symbol, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(ES5SymbolProperty1.ts, 3, 3)) +>foo : Symbol(SymbolConstructor.foo, Decl(ES5SymbolProperty1.ts, 0, 29)) + diff --git a/tests/baselines/reference/ES5SymbolProperty1(target=es5).types b/tests/baselines/reference/ES5SymbolProperty1(target=es5).types new file mode 100644 index 0000000000000..6be7f701e4a12 --- /dev/null +++ b/tests/baselines/reference/ES5SymbolProperty1(target=es5).types @@ -0,0 +1,43 @@ +//// [tests/cases/conformance/Symbols/ES5SymbolProperty1.ts] //// + +=== ES5SymbolProperty1.ts === +interface SymbolConstructor { + foo: string; +>foo : string +> : ^^^^^^ +} +var Symbol: SymbolConstructor; +>Symbol : SymbolConstructor +> : ^^^^^^^^^^^^^^^^^ + +var obj = { +>obj : { [Symbol.foo]: number; } +> : ^^ ^^^^^^ ^^ +>{ [Symbol.foo]: 0} : { [Symbol.foo]: number; } +> : ^^ ^^^^^^ ^^ + + [Symbol.foo]: 0 +>[Symbol.foo] : number +> : ^^^^^^ +>Symbol.foo : string +> : ^^^^^^ +>Symbol : SymbolConstructor +> : ^^^^^^^^^^^^^^^^^ +>foo : string +> : ^^^^^^ +>0 : 0 +> : ^ +} + +obj[Symbol.foo]; +>obj[Symbol.foo] : number +> : ^^^^^^ +>obj : { [Symbol.foo]: number; } +> : ^^ ^^^^^^ ^^ +>Symbol.foo : string +> : ^^^^^^ +>Symbol : SymbolConstructor +> : ^^^^^^^^^^^^^^^^^ +>foo : string +> : ^^^^^^ + diff --git a/tests/baselines/reference/ES5SymbolProperty2(target=es2015).js b/tests/baselines/reference/ES5SymbolProperty2(target=es2015).js new file mode 100644 index 0000000000000..97b6ce5bdbe62 --- /dev/null +++ b/tests/baselines/reference/ES5SymbolProperty2(target=es2015).js @@ -0,0 +1,25 @@ +//// [tests/cases/conformance/Symbols/ES5SymbolProperty2.ts] //// + +//// [ES5SymbolProperty2.ts] +namespace M { + var Symbol: any; + + export class C { + [Symbol.iterator]() { } + } + (new C)[Symbol.iterator]; +} + +(new M.C)[Symbol.iterator]; + +//// [ES5SymbolProperty2.js] +var M; +(function (M) { + var Symbol; + class C { + [Symbol.iterator]() { } + } + M.C = C; + (new C)[Symbol.iterator]; +})(M || (M = {})); +(new M.C)[Symbol.iterator]; diff --git a/tests/baselines/reference/ES5SymbolProperty2.symbols b/tests/baselines/reference/ES5SymbolProperty2(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/ES5SymbolProperty2.symbols rename to tests/baselines/reference/ES5SymbolProperty2(target=es2015).symbols diff --git a/tests/baselines/reference/ES5SymbolProperty2.types b/tests/baselines/reference/ES5SymbolProperty2(target=es2015).types similarity index 100% rename from tests/baselines/reference/ES5SymbolProperty2.types rename to tests/baselines/reference/ES5SymbolProperty2(target=es2015).types diff --git a/tests/baselines/reference/ES5SymbolProperty2.js b/tests/baselines/reference/ES5SymbolProperty2(target=es5).js similarity index 100% rename from tests/baselines/reference/ES5SymbolProperty2.js rename to tests/baselines/reference/ES5SymbolProperty2(target=es5).js diff --git a/tests/baselines/reference/ES5SymbolProperty2(target=es5).symbols b/tests/baselines/reference/ES5SymbolProperty2(target=es5).symbols new file mode 100644 index 0000000000000..e7a2ab4d7cb5e --- /dev/null +++ b/tests/baselines/reference/ES5SymbolProperty2(target=es5).symbols @@ -0,0 +1,29 @@ +//// [tests/cases/conformance/Symbols/ES5SymbolProperty2.ts] //// + +=== ES5SymbolProperty2.ts === +namespace M { +>M : Symbol(M, Decl(ES5SymbolProperty2.ts, 0, 0)) + + var Symbol: any; +>Symbol : Symbol(Symbol, Decl(ES5SymbolProperty2.ts, 1, 7)) + + export class C { +>C : Symbol(C, Decl(ES5SymbolProperty2.ts, 1, 20)) + + [Symbol.iterator]() { } +>[Symbol.iterator] : Symbol(C[Symbol.iterator], Decl(ES5SymbolProperty2.ts, 3, 20)) +>Symbol : Symbol(Symbol, Decl(ES5SymbolProperty2.ts, 1, 7)) + } + (new C)[Symbol.iterator]; +>C : Symbol(C, Decl(ES5SymbolProperty2.ts, 1, 20)) +>Symbol : Symbol(Symbol, Decl(ES5SymbolProperty2.ts, 1, 7)) +} + +(new M.C)[Symbol.iterator]; +>M.C : Symbol(M.C, Decl(ES5SymbolProperty2.ts, 1, 20)) +>M : Symbol(M, Decl(ES5SymbolProperty2.ts, 0, 0)) +>C : Symbol(M.C, Decl(ES5SymbolProperty2.ts, 1, 20)) +>Symbol.iterator : Symbol(SymbolConstructor.iterator, Decl(lib.es2015.iterable.d.ts, --, --)) +>Symbol : Symbol(Symbol, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>iterator : Symbol(SymbolConstructor.iterator, Decl(lib.es2015.iterable.d.ts, --, --)) + diff --git a/tests/baselines/reference/ES5SymbolProperty2(target=es5).types b/tests/baselines/reference/ES5SymbolProperty2(target=es5).types new file mode 100644 index 0000000000000..0fd0ed64949a9 --- /dev/null +++ b/tests/baselines/reference/ES5SymbolProperty2(target=es5).types @@ -0,0 +1,58 @@ +//// [tests/cases/conformance/Symbols/ES5SymbolProperty2.ts] //// + +=== ES5SymbolProperty2.ts === +namespace M { +>M : typeof M +> : ^^^^^^^^ + + var Symbol: any; +>Symbol : any + + export class C { +>C : C +> : ^ + + [Symbol.iterator]() { } +>[Symbol.iterator] : () => void +> : ^^^^^^^^^^ +>Symbol.iterator : any +>Symbol : any +> : ^^^ +>iterator : any +> : ^^^ + } + (new C)[Symbol.iterator]; +>(new C)[Symbol.iterator] : () => void +> : ^^^^^^^^^^ +>(new C) : C +> : ^ +>new C : C +> : ^ +>C : typeof C +> : ^^^^^^^^ +>Symbol.iterator : any +>Symbol : any +> : ^^^ +>iterator : any +> : ^^^ +} + +(new M.C)[Symbol.iterator]; +>(new M.C)[Symbol.iterator] : error +>(new M.C) : M.C +> : ^^^ +>new M.C : M.C +> : ^^^ +>M.C : typeof M.C +> : ^^^^^^^^^^ +>M : typeof M +> : ^^^^^^^^ +>C : typeof M.C +> : ^^^^^^^^^^ +>Symbol.iterator : unique symbol +> : ^^^^^^^^^^^^^ +>Symbol : SymbolConstructor +> : ^^^^^^^^^^^^^^^^^ +>iterator : unique symbol +> : ^^^^^^^^^^^^^ + diff --git a/tests/baselines/reference/ES5SymbolProperty3.errors.txt b/tests/baselines/reference/ES5SymbolProperty3(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/ES5SymbolProperty3.errors.txt rename to tests/baselines/reference/ES5SymbolProperty3(target=es2015).errors.txt diff --git a/tests/baselines/reference/ES5SymbolProperty3(target=es2015).js b/tests/baselines/reference/ES5SymbolProperty3(target=es2015).js new file mode 100644 index 0000000000000..f30919700ea48 --- /dev/null +++ b/tests/baselines/reference/ES5SymbolProperty3(target=es2015).js @@ -0,0 +1,17 @@ +//// [tests/cases/conformance/Symbols/ES5SymbolProperty3.ts] //// + +//// [ES5SymbolProperty3.ts] +var Symbol: any; + +class C { + [Symbol.iterator]() { } +} + +(new C)[Symbol.iterator] + +//// [ES5SymbolProperty3.js] +var Symbol; +class C { + [Symbol.iterator]() { } +} +(new C)[Symbol.iterator]; diff --git a/tests/baselines/reference/ES5SymbolProperty3.symbols b/tests/baselines/reference/ES5SymbolProperty3(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/ES5SymbolProperty3.symbols rename to tests/baselines/reference/ES5SymbolProperty3(target=es2015).symbols diff --git a/tests/baselines/reference/ES5SymbolProperty3.types b/tests/baselines/reference/ES5SymbolProperty3(target=es2015).types similarity index 100% rename from tests/baselines/reference/ES5SymbolProperty3.types rename to tests/baselines/reference/ES5SymbolProperty3(target=es2015).types diff --git a/tests/baselines/reference/ES5SymbolProperty3(target=es5).errors.txt b/tests/baselines/reference/ES5SymbolProperty3(target=es5).errors.txt new file mode 100644 index 0000000000000..09bb9fdb41853 --- /dev/null +++ b/tests/baselines/reference/ES5SymbolProperty3(target=es5).errors.txt @@ -0,0 +1,14 @@ +ES5SymbolProperty3.ts(1,5): error TS2403: Subsequent variable declarations must have the same type. Variable 'Symbol' must be of type 'SymbolConstructor', but here has type 'any'. + + +==== ES5SymbolProperty3.ts (1 errors) ==== + var Symbol: any; + ~~~~~~ +!!! error TS2403: Subsequent variable declarations must have the same type. Variable 'Symbol' must be of type 'SymbolConstructor', but here has type 'any'. +!!! related TS6203 lib.es2015.symbol.d.ts:--:--: 'Symbol' was also declared here. + + class C { + [Symbol.iterator]() { } + } + + (new C)[Symbol.iterator] \ No newline at end of file diff --git a/tests/baselines/reference/ES5SymbolProperty3.js b/tests/baselines/reference/ES5SymbolProperty3(target=es5).js similarity index 100% rename from tests/baselines/reference/ES5SymbolProperty3.js rename to tests/baselines/reference/ES5SymbolProperty3(target=es5).js diff --git a/tests/baselines/reference/ES5SymbolProperty3(target=es5).symbols b/tests/baselines/reference/ES5SymbolProperty3(target=es5).symbols new file mode 100644 index 0000000000000..6bd8dab23811c --- /dev/null +++ b/tests/baselines/reference/ES5SymbolProperty3(target=es5).symbols @@ -0,0 +1,22 @@ +//// [tests/cases/conformance/Symbols/ES5SymbolProperty3.ts] //// + +=== ES5SymbolProperty3.ts === +var Symbol: any; +>Symbol : Symbol(Symbol, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(ES5SymbolProperty3.ts, 0, 3)) + +class C { +>C : Symbol(C, Decl(ES5SymbolProperty3.ts, 0, 16)) + + [Symbol.iterator]() { } +>[Symbol.iterator] : Symbol(C[Symbol.iterator], Decl(ES5SymbolProperty3.ts, 2, 9)) +>Symbol.iterator : Symbol(SymbolConstructor.iterator, Decl(lib.es2015.iterable.d.ts, --, --)) +>Symbol : Symbol(Symbol, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(ES5SymbolProperty3.ts, 0, 3)) +>iterator : Symbol(SymbolConstructor.iterator, Decl(lib.es2015.iterable.d.ts, --, --)) +} + +(new C)[Symbol.iterator] +>C : Symbol(C, Decl(ES5SymbolProperty3.ts, 0, 16)) +>Symbol.iterator : Symbol(SymbolConstructor.iterator, Decl(lib.es2015.iterable.d.ts, --, --)) +>Symbol : Symbol(Symbol, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(ES5SymbolProperty3.ts, 0, 3)) +>iterator : Symbol(SymbolConstructor.iterator, Decl(lib.es2015.iterable.d.ts, --, --)) + diff --git a/tests/baselines/reference/ES5SymbolProperty3(target=es5).types b/tests/baselines/reference/ES5SymbolProperty3(target=es5).types new file mode 100644 index 0000000000000..6629a31f3444d --- /dev/null +++ b/tests/baselines/reference/ES5SymbolProperty3(target=es5).types @@ -0,0 +1,38 @@ +//// [tests/cases/conformance/Symbols/ES5SymbolProperty3.ts] //// + +=== ES5SymbolProperty3.ts === +var Symbol: any; +>Symbol : SymbolConstructor +> : ^^^^^^^^^^^^^^^^^ + +class C { +>C : C +> : ^ + + [Symbol.iterator]() { } +>[Symbol.iterator] : () => void +> : ^^^^^^^^^^ +>Symbol.iterator : unique symbol +> : ^^^^^^^^^^^^^ +>Symbol : SymbolConstructor +> : ^^^^^^^^^^^^^^^^^ +>iterator : unique symbol +> : ^^^^^^^^^^^^^ +} + +(new C)[Symbol.iterator] +>(new C)[Symbol.iterator] : () => void +> : ^^^^^^^^^^ +>(new C) : C +> : ^ +>new C : C +> : ^ +>C : typeof C +> : ^^^^^^^^ +>Symbol.iterator : unique symbol +> : ^^^^^^^^^^^^^ +>Symbol : SymbolConstructor +> : ^^^^^^^^^^^^^^^^^ +>iterator : unique symbol +> : ^^^^^^^^^^^^^ + diff --git a/tests/baselines/reference/ES5SymbolProperty4.errors.txt b/tests/baselines/reference/ES5SymbolProperty4(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/ES5SymbolProperty4.errors.txt rename to tests/baselines/reference/ES5SymbolProperty4(target=es2015).errors.txt diff --git a/tests/baselines/reference/ES5SymbolProperty4(target=es2015).js b/tests/baselines/reference/ES5SymbolProperty4(target=es2015).js new file mode 100644 index 0000000000000..942255c915d4e --- /dev/null +++ b/tests/baselines/reference/ES5SymbolProperty4(target=es2015).js @@ -0,0 +1,17 @@ +//// [tests/cases/conformance/Symbols/ES5SymbolProperty4.ts] //// + +//// [ES5SymbolProperty4.ts] +var Symbol: { iterator: string }; + +class C { + [Symbol.iterator]() { } +} + +(new C)[Symbol.iterator] + +//// [ES5SymbolProperty4.js] +var Symbol; +class C { + [Symbol.iterator]() { } +} +(new C)[Symbol.iterator]; diff --git a/tests/baselines/reference/ES5SymbolProperty4.symbols b/tests/baselines/reference/ES5SymbolProperty4(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/ES5SymbolProperty4.symbols rename to tests/baselines/reference/ES5SymbolProperty4(target=es2015).symbols diff --git a/tests/baselines/reference/ES5SymbolProperty4.types b/tests/baselines/reference/ES5SymbolProperty4(target=es2015).types similarity index 100% rename from tests/baselines/reference/ES5SymbolProperty4.types rename to tests/baselines/reference/ES5SymbolProperty4(target=es2015).types diff --git a/tests/baselines/reference/ES5SymbolProperty4(target=es5).errors.txt b/tests/baselines/reference/ES5SymbolProperty4(target=es5).errors.txt new file mode 100644 index 0000000000000..38a4b466e074a --- /dev/null +++ b/tests/baselines/reference/ES5SymbolProperty4(target=es5).errors.txt @@ -0,0 +1,14 @@ +ES5SymbolProperty4.ts(1,5): error TS2403: Subsequent variable declarations must have the same type. Variable 'Symbol' must be of type 'SymbolConstructor', but here has type '{ iterator: string; }'. + + +==== ES5SymbolProperty4.ts (1 errors) ==== + var Symbol: { iterator: string }; + ~~~~~~ +!!! error TS2403: Subsequent variable declarations must have the same type. Variable 'Symbol' must be of type 'SymbolConstructor', but here has type '{ iterator: string; }'. +!!! related TS6203 lib.es2015.symbol.d.ts:--:--: 'Symbol' was also declared here. + + class C { + [Symbol.iterator]() { } + } + + (new C)[Symbol.iterator] \ No newline at end of file diff --git a/tests/baselines/reference/ES5SymbolProperty4.js b/tests/baselines/reference/ES5SymbolProperty4(target=es5).js similarity index 100% rename from tests/baselines/reference/ES5SymbolProperty4.js rename to tests/baselines/reference/ES5SymbolProperty4(target=es5).js diff --git a/tests/baselines/reference/ES5SymbolProperty4(target=es5).symbols b/tests/baselines/reference/ES5SymbolProperty4(target=es5).symbols new file mode 100644 index 0000000000000..a20d13686ebea --- /dev/null +++ b/tests/baselines/reference/ES5SymbolProperty4(target=es5).symbols @@ -0,0 +1,23 @@ +//// [tests/cases/conformance/Symbols/ES5SymbolProperty4.ts] //// + +=== ES5SymbolProperty4.ts === +var Symbol: { iterator: string }; +>Symbol : Symbol(Symbol, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(ES5SymbolProperty4.ts, 0, 3)) +>iterator : Symbol(iterator, Decl(ES5SymbolProperty4.ts, 0, 13)) + +class C { +>C : Symbol(C, Decl(ES5SymbolProperty4.ts, 0, 33)) + + [Symbol.iterator]() { } +>[Symbol.iterator] : Symbol(C[Symbol.iterator], Decl(ES5SymbolProperty4.ts, 2, 9)) +>Symbol.iterator : Symbol(SymbolConstructor.iterator, Decl(lib.es2015.iterable.d.ts, --, --)) +>Symbol : Symbol(Symbol, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(ES5SymbolProperty4.ts, 0, 3)) +>iterator : Symbol(SymbolConstructor.iterator, Decl(lib.es2015.iterable.d.ts, --, --)) +} + +(new C)[Symbol.iterator] +>C : Symbol(C, Decl(ES5SymbolProperty4.ts, 0, 33)) +>Symbol.iterator : Symbol(SymbolConstructor.iterator, Decl(lib.es2015.iterable.d.ts, --, --)) +>Symbol : Symbol(Symbol, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(ES5SymbolProperty4.ts, 0, 3)) +>iterator : Symbol(SymbolConstructor.iterator, Decl(lib.es2015.iterable.d.ts, --, --)) + diff --git a/tests/baselines/reference/ES5SymbolProperty4(target=es5).types b/tests/baselines/reference/ES5SymbolProperty4(target=es5).types new file mode 100644 index 0000000000000..55c9cb1b08450 --- /dev/null +++ b/tests/baselines/reference/ES5SymbolProperty4(target=es5).types @@ -0,0 +1,40 @@ +//// [tests/cases/conformance/Symbols/ES5SymbolProperty4.ts] //// + +=== ES5SymbolProperty4.ts === +var Symbol: { iterator: string }; +>Symbol : SymbolConstructor +> : ^^^^^^^^^^^^^^^^^ +>iterator : string +> : ^^^^^^ + +class C { +>C : C +> : ^ + + [Symbol.iterator]() { } +>[Symbol.iterator] : () => void +> : ^^^^^^^^^^ +>Symbol.iterator : unique symbol +> : ^^^^^^^^^^^^^ +>Symbol : SymbolConstructor +> : ^^^^^^^^^^^^^^^^^ +>iterator : unique symbol +> : ^^^^^^^^^^^^^ +} + +(new C)[Symbol.iterator] +>(new C)[Symbol.iterator] : () => void +> : ^^^^^^^^^^ +>(new C) : C +> : ^ +>new C : C +> : ^ +>C : typeof C +> : ^^^^^^^^ +>Symbol.iterator : unique symbol +> : ^^^^^^^^^^^^^ +>Symbol : SymbolConstructor +> : ^^^^^^^^^^^^^^^^^ +>iterator : unique symbol +> : ^^^^^^^^^^^^^ + diff --git a/tests/baselines/reference/ES5SymbolProperty5.errors.txt b/tests/baselines/reference/ES5SymbolProperty5(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/ES5SymbolProperty5.errors.txt rename to tests/baselines/reference/ES5SymbolProperty5(target=es2015).errors.txt diff --git a/tests/baselines/reference/ES5SymbolProperty5(target=es2015).js b/tests/baselines/reference/ES5SymbolProperty5(target=es2015).js new file mode 100644 index 0000000000000..17445f237dc9c --- /dev/null +++ b/tests/baselines/reference/ES5SymbolProperty5(target=es2015).js @@ -0,0 +1,16 @@ +//// [tests/cases/conformance/Symbols/ES5SymbolProperty5.ts] //// + +//// [ES5SymbolProperty5.ts] +declare var Symbol: { iterator: symbol }; + +class C { + [Symbol.iterator]() { } +} + +(new C)[Symbol.iterator](0) // Should error + +//// [ES5SymbolProperty5.js] +class C { + [Symbol.iterator]() { } +} +(new C)[Symbol.iterator](0); // Should error diff --git a/tests/baselines/reference/ES5SymbolProperty5.symbols b/tests/baselines/reference/ES5SymbolProperty5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/ES5SymbolProperty5.symbols rename to tests/baselines/reference/ES5SymbolProperty5(target=es2015).symbols diff --git a/tests/baselines/reference/ES5SymbolProperty5.types b/tests/baselines/reference/ES5SymbolProperty5(target=es2015).types similarity index 100% rename from tests/baselines/reference/ES5SymbolProperty5.types rename to tests/baselines/reference/ES5SymbolProperty5(target=es2015).types diff --git a/tests/baselines/reference/ES5SymbolProperty5(target=es5).errors.txt b/tests/baselines/reference/ES5SymbolProperty5(target=es5).errors.txt new file mode 100644 index 0000000000000..962069c9d2a70 --- /dev/null +++ b/tests/baselines/reference/ES5SymbolProperty5(target=es5).errors.txt @@ -0,0 +1,17 @@ +ES5SymbolProperty5.ts(1,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'Symbol' must be of type 'SymbolConstructor', but here has type '{ iterator: symbol; }'. +ES5SymbolProperty5.ts(7,26): error TS2554: Expected 0 arguments, but got 1. + + +==== ES5SymbolProperty5.ts (2 errors) ==== + declare var Symbol: { iterator: symbol }; + ~~~~~~ +!!! error TS2403: Subsequent variable declarations must have the same type. Variable 'Symbol' must be of type 'SymbolConstructor', but here has type '{ iterator: symbol; }'. +!!! related TS6203 lib.es2015.symbol.d.ts:--:--: 'Symbol' was also declared here. + + class C { + [Symbol.iterator]() { } + } + + (new C)[Symbol.iterator](0) // Should error + ~ +!!! error TS2554: Expected 0 arguments, but got 1. \ No newline at end of file diff --git a/tests/baselines/reference/ES5SymbolProperty5.js b/tests/baselines/reference/ES5SymbolProperty5(target=es5).js similarity index 100% rename from tests/baselines/reference/ES5SymbolProperty5.js rename to tests/baselines/reference/ES5SymbolProperty5(target=es5).js diff --git a/tests/baselines/reference/ES5SymbolProperty5(target=es5).symbols b/tests/baselines/reference/ES5SymbolProperty5(target=es5).symbols new file mode 100644 index 0000000000000..c0b016b14b44f --- /dev/null +++ b/tests/baselines/reference/ES5SymbolProperty5(target=es5).symbols @@ -0,0 +1,23 @@ +//// [tests/cases/conformance/Symbols/ES5SymbolProperty5.ts] //// + +=== ES5SymbolProperty5.ts === +declare var Symbol: { iterator: symbol }; +>Symbol : Symbol(Symbol, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(ES5SymbolProperty5.ts, 0, 11)) +>iterator : Symbol(iterator, Decl(ES5SymbolProperty5.ts, 0, 21)) + +class C { +>C : Symbol(C, Decl(ES5SymbolProperty5.ts, 0, 41)) + + [Symbol.iterator]() { } +>[Symbol.iterator] : Symbol(C[Symbol.iterator], Decl(ES5SymbolProperty5.ts, 2, 9)) +>Symbol.iterator : Symbol(SymbolConstructor.iterator, Decl(lib.es2015.iterable.d.ts, --, --)) +>Symbol : Symbol(Symbol, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(ES5SymbolProperty5.ts, 0, 11)) +>iterator : Symbol(SymbolConstructor.iterator, Decl(lib.es2015.iterable.d.ts, --, --)) +} + +(new C)[Symbol.iterator](0) // Should error +>C : Symbol(C, Decl(ES5SymbolProperty5.ts, 0, 41)) +>Symbol.iterator : Symbol(SymbolConstructor.iterator, Decl(lib.es2015.iterable.d.ts, --, --)) +>Symbol : Symbol(Symbol, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(ES5SymbolProperty5.ts, 0, 11)) +>iterator : Symbol(SymbolConstructor.iterator, Decl(lib.es2015.iterable.d.ts, --, --)) + diff --git a/tests/baselines/reference/ES5SymbolProperty5(target=es5).types b/tests/baselines/reference/ES5SymbolProperty5(target=es5).types new file mode 100644 index 0000000000000..72bd530e52e21 --- /dev/null +++ b/tests/baselines/reference/ES5SymbolProperty5(target=es5).types @@ -0,0 +1,44 @@ +//// [tests/cases/conformance/Symbols/ES5SymbolProperty5.ts] //// + +=== ES5SymbolProperty5.ts === +declare var Symbol: { iterator: symbol }; +>Symbol : SymbolConstructor +> : ^^^^^^^^^^^^^^^^^ +>iterator : symbol +> : ^^^^^^ + +class C { +>C : C +> : ^ + + [Symbol.iterator]() { } +>[Symbol.iterator] : () => void +> : ^^^^^^^^^^ +>Symbol.iterator : unique symbol +> : ^^^^^^^^^^^^^ +>Symbol : SymbolConstructor +> : ^^^^^^^^^^^^^^^^^ +>iterator : unique symbol +> : ^^^^^^^^^^^^^ +} + +(new C)[Symbol.iterator](0) // Should error +>(new C)[Symbol.iterator](0) : void +> : ^^^^ +>(new C)[Symbol.iterator] : () => void +> : ^^^^^^^^^^ +>(new C) : C +> : ^ +>new C : C +> : ^ +>C : typeof C +> : ^^^^^^^^ +>Symbol.iterator : unique symbol +> : ^^^^^^^^^^^^^ +>Symbol : SymbolConstructor +> : ^^^^^^^^^^^^^^^^^ +>iterator : unique symbol +> : ^^^^^^^^^^^^^ +>0 : 0 +> : ^ + diff --git a/tests/baselines/reference/ES5SymbolProperty6(target=es2015).js b/tests/baselines/reference/ES5SymbolProperty6(target=es2015).js new file mode 100644 index 0000000000000..ddc5d58ccb2f7 --- /dev/null +++ b/tests/baselines/reference/ES5SymbolProperty6(target=es2015).js @@ -0,0 +1,14 @@ +//// [tests/cases/conformance/Symbols/ES5SymbolProperty6.ts] //// + +//// [ES5SymbolProperty6.ts] +class C { + [Symbol.iterator]() { } +} + +(new C)[Symbol.iterator] + +//// [ES5SymbolProperty6.js] +class C { + [Symbol.iterator]() { } +} +(new C)[Symbol.iterator]; diff --git a/tests/baselines/reference/ES5SymbolProperty6.symbols b/tests/baselines/reference/ES5SymbolProperty6(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/ES5SymbolProperty6.symbols rename to tests/baselines/reference/ES5SymbolProperty6(target=es2015).symbols diff --git a/tests/baselines/reference/ES5SymbolProperty6.types b/tests/baselines/reference/ES5SymbolProperty6(target=es2015).types similarity index 100% rename from tests/baselines/reference/ES5SymbolProperty6.types rename to tests/baselines/reference/ES5SymbolProperty6(target=es2015).types diff --git a/tests/baselines/reference/ES5SymbolProperty6.js b/tests/baselines/reference/ES5SymbolProperty6(target=es5).js similarity index 100% rename from tests/baselines/reference/ES5SymbolProperty6.js rename to tests/baselines/reference/ES5SymbolProperty6(target=es5).js diff --git a/tests/baselines/reference/ES5SymbolProperty6(target=es5).symbols b/tests/baselines/reference/ES5SymbolProperty6(target=es5).symbols new file mode 100644 index 0000000000000..b06b612860900 --- /dev/null +++ b/tests/baselines/reference/ES5SymbolProperty6(target=es5).symbols @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/Symbols/ES5SymbolProperty6.ts] //// + +=== ES5SymbolProperty6.ts === +class C { +>C : Symbol(C, Decl(ES5SymbolProperty6.ts, 0, 0)) + + [Symbol.iterator]() { } +>[Symbol.iterator] : Symbol(C[Symbol.iterator], Decl(ES5SymbolProperty6.ts, 0, 9)) +>Symbol.iterator : Symbol(SymbolConstructor.iterator, Decl(lib.es2015.iterable.d.ts, --, --)) +>Symbol : Symbol(Symbol, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>iterator : Symbol(SymbolConstructor.iterator, Decl(lib.es2015.iterable.d.ts, --, --)) +} + +(new C)[Symbol.iterator] +>C : Symbol(C, Decl(ES5SymbolProperty6.ts, 0, 0)) +>Symbol.iterator : Symbol(SymbolConstructor.iterator, Decl(lib.es2015.iterable.d.ts, --, --)) +>Symbol : Symbol(Symbol, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>iterator : Symbol(SymbolConstructor.iterator, Decl(lib.es2015.iterable.d.ts, --, --)) + diff --git a/tests/baselines/reference/ES5SymbolProperty6(target=es5).types b/tests/baselines/reference/ES5SymbolProperty6(target=es5).types new file mode 100644 index 0000000000000..fc7db7e1dcbb8 --- /dev/null +++ b/tests/baselines/reference/ES5SymbolProperty6(target=es5).types @@ -0,0 +1,34 @@ +//// [tests/cases/conformance/Symbols/ES5SymbolProperty6.ts] //// + +=== ES5SymbolProperty6.ts === +class C { +>C : C +> : ^ + + [Symbol.iterator]() { } +>[Symbol.iterator] : () => void +> : ^^^^^^^^^^ +>Symbol.iterator : unique symbol +> : ^^^^^^^^^^^^^ +>Symbol : SymbolConstructor +> : ^^^^^^^^^^^^^^^^^ +>iterator : unique symbol +> : ^^^^^^^^^^^^^ +} + +(new C)[Symbol.iterator] +>(new C)[Symbol.iterator] : () => void +> : ^^^^^^^^^^ +>(new C) : C +> : ^ +>new C : C +> : ^ +>C : typeof C +> : ^^^^^^^^ +>Symbol.iterator : unique symbol +> : ^^^^^^^^^^^^^ +>Symbol : SymbolConstructor +> : ^^^^^^^^^^^^^^^^^ +>iterator : unique symbol +> : ^^^^^^^^^^^^^ + diff --git a/tests/baselines/reference/ES5SymbolProperty7.errors.txt b/tests/baselines/reference/ES5SymbolProperty7(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/ES5SymbolProperty7.errors.txt rename to tests/baselines/reference/ES5SymbolProperty7(target=es2015).errors.txt diff --git a/tests/baselines/reference/ES5SymbolProperty7(target=es2015).js b/tests/baselines/reference/ES5SymbolProperty7(target=es2015).js new file mode 100644 index 0000000000000..abf0d00799513 --- /dev/null +++ b/tests/baselines/reference/ES5SymbolProperty7(target=es2015).js @@ -0,0 +1,17 @@ +//// [tests/cases/conformance/Symbols/ES5SymbolProperty7.ts] //// + +//// [ES5SymbolProperty7.ts] +var Symbol: { iterator: any }; + +class C { + [Symbol.iterator]() { } +} + +(new C)[Symbol.iterator] + +//// [ES5SymbolProperty7.js] +var Symbol; +class C { + [Symbol.iterator]() { } +} +(new C)[Symbol.iterator]; diff --git a/tests/baselines/reference/ES5SymbolProperty7.symbols b/tests/baselines/reference/ES5SymbolProperty7(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/ES5SymbolProperty7.symbols rename to tests/baselines/reference/ES5SymbolProperty7(target=es2015).symbols diff --git a/tests/baselines/reference/ES5SymbolProperty7.types b/tests/baselines/reference/ES5SymbolProperty7(target=es2015).types similarity index 100% rename from tests/baselines/reference/ES5SymbolProperty7.types rename to tests/baselines/reference/ES5SymbolProperty7(target=es2015).types diff --git a/tests/baselines/reference/ES5SymbolProperty7(target=es5).errors.txt b/tests/baselines/reference/ES5SymbolProperty7(target=es5).errors.txt new file mode 100644 index 0000000000000..9c083f0824bd8 --- /dev/null +++ b/tests/baselines/reference/ES5SymbolProperty7(target=es5).errors.txt @@ -0,0 +1,14 @@ +ES5SymbolProperty7.ts(1,5): error TS2403: Subsequent variable declarations must have the same type. Variable 'Symbol' must be of type 'SymbolConstructor', but here has type '{ iterator: any; }'. + + +==== ES5SymbolProperty7.ts (1 errors) ==== + var Symbol: { iterator: any }; + ~~~~~~ +!!! error TS2403: Subsequent variable declarations must have the same type. Variable 'Symbol' must be of type 'SymbolConstructor', but here has type '{ iterator: any; }'. +!!! related TS6203 lib.es2015.symbol.d.ts:--:--: 'Symbol' was also declared here. + + class C { + [Symbol.iterator]() { } + } + + (new C)[Symbol.iterator] \ No newline at end of file diff --git a/tests/baselines/reference/ES5SymbolProperty7.js b/tests/baselines/reference/ES5SymbolProperty7(target=es5).js similarity index 100% rename from tests/baselines/reference/ES5SymbolProperty7.js rename to tests/baselines/reference/ES5SymbolProperty7(target=es5).js diff --git a/tests/baselines/reference/ES5SymbolProperty7(target=es5).symbols b/tests/baselines/reference/ES5SymbolProperty7(target=es5).symbols new file mode 100644 index 0000000000000..ddfe21b83fe9d --- /dev/null +++ b/tests/baselines/reference/ES5SymbolProperty7(target=es5).symbols @@ -0,0 +1,23 @@ +//// [tests/cases/conformance/Symbols/ES5SymbolProperty7.ts] //// + +=== ES5SymbolProperty7.ts === +var Symbol: { iterator: any }; +>Symbol : Symbol(Symbol, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(ES5SymbolProperty7.ts, 0, 3)) +>iterator : Symbol(iterator, Decl(ES5SymbolProperty7.ts, 0, 13)) + +class C { +>C : Symbol(C, Decl(ES5SymbolProperty7.ts, 0, 30)) + + [Symbol.iterator]() { } +>[Symbol.iterator] : Symbol(C[Symbol.iterator], Decl(ES5SymbolProperty7.ts, 2, 9)) +>Symbol.iterator : Symbol(SymbolConstructor.iterator, Decl(lib.es2015.iterable.d.ts, --, --)) +>Symbol : Symbol(Symbol, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(ES5SymbolProperty7.ts, 0, 3)) +>iterator : Symbol(SymbolConstructor.iterator, Decl(lib.es2015.iterable.d.ts, --, --)) +} + +(new C)[Symbol.iterator] +>C : Symbol(C, Decl(ES5SymbolProperty7.ts, 0, 30)) +>Symbol.iterator : Symbol(SymbolConstructor.iterator, Decl(lib.es2015.iterable.d.ts, --, --)) +>Symbol : Symbol(Symbol, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(ES5SymbolProperty7.ts, 0, 3)) +>iterator : Symbol(SymbolConstructor.iterator, Decl(lib.es2015.iterable.d.ts, --, --)) + diff --git a/tests/baselines/reference/ES5SymbolProperty7(target=es5).types b/tests/baselines/reference/ES5SymbolProperty7(target=es5).types new file mode 100644 index 0000000000000..4667d91401d30 --- /dev/null +++ b/tests/baselines/reference/ES5SymbolProperty7(target=es5).types @@ -0,0 +1,40 @@ +//// [tests/cases/conformance/Symbols/ES5SymbolProperty7.ts] //// + +=== ES5SymbolProperty7.ts === +var Symbol: { iterator: any }; +>Symbol : SymbolConstructor +> : ^^^^^^^^^^^^^^^^^ +>iterator : any +> : ^^^ + +class C { +>C : C +> : ^ + + [Symbol.iterator]() { } +>[Symbol.iterator] : () => void +> : ^^^^^^^^^^ +>Symbol.iterator : unique symbol +> : ^^^^^^^^^^^^^ +>Symbol : SymbolConstructor +> : ^^^^^^^^^^^^^^^^^ +>iterator : unique symbol +> : ^^^^^^^^^^^^^ +} + +(new C)[Symbol.iterator] +>(new C)[Symbol.iterator] : () => void +> : ^^^^^^^^^^ +>(new C) : C +> : ^ +>new C : C +> : ^ +>C : typeof C +> : ^^^^^^^^ +>Symbol.iterator : unique symbol +> : ^^^^^^^^^^^^^ +>Symbol : SymbolConstructor +> : ^^^^^^^^^^^^^^^^^ +>iterator : unique symbol +> : ^^^^^^^^^^^^^ + diff --git a/tests/baselines/reference/ES5SymbolType1.js b/tests/baselines/reference/ES5SymbolType1(target=es2015).js similarity index 100% rename from tests/baselines/reference/ES5SymbolType1.js rename to tests/baselines/reference/ES5SymbolType1(target=es2015).js diff --git a/tests/baselines/reference/ES5SymbolType1.symbols b/tests/baselines/reference/ES5SymbolType1(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/ES5SymbolType1.symbols rename to tests/baselines/reference/ES5SymbolType1(target=es2015).symbols diff --git a/tests/baselines/reference/ES5SymbolType1.types b/tests/baselines/reference/ES5SymbolType1(target=es2015).types similarity index 100% rename from tests/baselines/reference/ES5SymbolType1.types rename to tests/baselines/reference/ES5SymbolType1(target=es2015).types diff --git a/tests/baselines/reference/ES5SymbolType1(target=es5).js b/tests/baselines/reference/ES5SymbolType1(target=es5).js new file mode 100644 index 0000000000000..0709bb89a8d27 --- /dev/null +++ b/tests/baselines/reference/ES5SymbolType1(target=es5).js @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/Symbols/ES5SymbolType1.ts] //// + +//// [ES5SymbolType1.ts] +var s: symbol; +s.toString(); + +//// [ES5SymbolType1.js] +var s; +s.toString(); diff --git a/tests/baselines/reference/ES5SymbolType1(target=es5).symbols b/tests/baselines/reference/ES5SymbolType1(target=es5).symbols new file mode 100644 index 0000000000000..d31cd5558ad81 --- /dev/null +++ b/tests/baselines/reference/ES5SymbolType1(target=es5).symbols @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/Symbols/ES5SymbolType1.ts] //// + +=== ES5SymbolType1.ts === +var s: symbol; +>s : Symbol(s, Decl(ES5SymbolType1.ts, 0, 3)) + +s.toString(); +>s.toString : Symbol(Symbol.toString, Decl(lib.es5.d.ts, --, --)) +>s : Symbol(s, Decl(ES5SymbolType1.ts, 0, 3)) +>toString : Symbol(Symbol.toString, Decl(lib.es5.d.ts, --, --)) + diff --git a/tests/baselines/reference/ES5SymbolType1(target=es5).types b/tests/baselines/reference/ES5SymbolType1(target=es5).types new file mode 100644 index 0000000000000..a8c00932002b0 --- /dev/null +++ b/tests/baselines/reference/ES5SymbolType1(target=es5).types @@ -0,0 +1,17 @@ +//// [tests/cases/conformance/Symbols/ES5SymbolType1.ts] //// + +=== ES5SymbolType1.ts === +var s: symbol; +>s : symbol +> : ^^^^^^ + +s.toString(); +>s.toString() : string +> : ^^^^^^ +>s.toString : () => string +> : ^^^^^^ +>s : symbol +> : ^^^^^^ +>toString : () => string +> : ^^^^^^ + diff --git a/tests/baselines/reference/ES5for-of32(target=es2015).js b/tests/baselines/reference/ES5for-of32(target=es2015).js new file mode 100644 index 0000000000000..052ffa24567c1 --- /dev/null +++ b/tests/baselines/reference/ES5for-of32(target=es2015).js @@ -0,0 +1,23 @@ +//// [tests/cases/conformance/statements/for-ofStatements/ES5for-of32.ts] //// + +//// [ES5for-of32.ts] +var array = [1,2,3]; +var sum = 0; + +for (let num of array) { + if (sum === 0) { + array = [4,5,6] + } + + sum += num; +} + +//// [ES5for-of32.js] +var array = [1, 2, 3]; +var sum = 0; +for (let num of array) { + if (sum === 0) { + array = [4, 5, 6]; + } + sum += num; +} diff --git a/tests/baselines/reference/ES5for-of32.symbols b/tests/baselines/reference/ES5for-of32(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/ES5for-of32.symbols rename to tests/baselines/reference/ES5for-of32(target=es2015).symbols diff --git a/tests/baselines/reference/ES5for-of32.types b/tests/baselines/reference/ES5for-of32(target=es2015).types similarity index 100% rename from tests/baselines/reference/ES5for-of32.types rename to tests/baselines/reference/ES5for-of32(target=es2015).types diff --git a/tests/baselines/reference/ES5for-of32.js b/tests/baselines/reference/ES5for-of32(target=es5).js similarity index 100% rename from tests/baselines/reference/ES5for-of32.js rename to tests/baselines/reference/ES5for-of32(target=es5).js diff --git a/tests/baselines/reference/ES5for-of32(target=es5).symbols b/tests/baselines/reference/ES5for-of32(target=es5).symbols new file mode 100644 index 0000000000000..41ac3447f94d3 --- /dev/null +++ b/tests/baselines/reference/ES5for-of32(target=es5).symbols @@ -0,0 +1,24 @@ +//// [tests/cases/conformance/statements/for-ofStatements/ES5for-of32.ts] //// + +=== ES5for-of32.ts === +var array = [1,2,3]; +>array : Symbol(array, Decl(ES5for-of32.ts, 0, 3)) + +var sum = 0; +>sum : Symbol(sum, Decl(ES5for-of32.ts, 1, 3)) + +for (let num of array) { +>num : Symbol(num, Decl(ES5for-of32.ts, 3, 8)) +>array : Symbol(array, Decl(ES5for-of32.ts, 0, 3)) + + if (sum === 0) { +>sum : Symbol(sum, Decl(ES5for-of32.ts, 1, 3)) + + array = [4,5,6] +>array : Symbol(array, Decl(ES5for-of32.ts, 0, 3)) + } + + sum += num; +>sum : Symbol(sum, Decl(ES5for-of32.ts, 1, 3)) +>num : Symbol(num, Decl(ES5for-of32.ts, 3, 8)) +} diff --git a/tests/baselines/reference/ES5for-of32(target=es5).types b/tests/baselines/reference/ES5for-of32(target=es5).types new file mode 100644 index 0000000000000..73590e0d84a9f --- /dev/null +++ b/tests/baselines/reference/ES5for-of32(target=es5).types @@ -0,0 +1,58 @@ +//// [tests/cases/conformance/statements/for-ofStatements/ES5for-of32.ts] //// + +=== ES5for-of32.ts === +var array = [1,2,3]; +>array : number[] +> : ^^^^^^^^ +>[1,2,3] : number[] +> : ^^^^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ +>3 : 3 +> : ^ + +var sum = 0; +>sum : number +> : ^^^^^^ +>0 : 0 +> : ^ + +for (let num of array) { +>num : number +> : ^^^^^^ +>array : number[] +> : ^^^^^^^^ + + if (sum === 0) { +>sum === 0 : boolean +> : ^^^^^^^ +>sum : number +> : ^^^^^^ +>0 : 0 +> : ^ + + array = [4,5,6] +>array = [4,5,6] : number[] +> : ^^^^^^^^ +>array : number[] +> : ^^^^^^^^ +>[4,5,6] : number[] +> : ^^^^^^^^ +>4 : 4 +> : ^ +>5 : 5 +> : ^ +>6 : 6 +> : ^ + } + + sum += num; +>sum += num : number +> : ^^^^^^ +>sum : number +> : ^^^^^^ +>num : number +> : ^^^^^^ +} diff --git a/tests/baselines/reference/abstractPropertyBasics(target=es2015).js b/tests/baselines/reference/abstractPropertyBasics(target=es2015).js new file mode 100644 index 0000000000000..dbc3fa5095331 --- /dev/null +++ b/tests/baselines/reference/abstractPropertyBasics(target=es2015).js @@ -0,0 +1,38 @@ +//// [tests/cases/compiler/abstractPropertyBasics.ts] //// + +//// [abstractPropertyBasics.ts] +interface A { + prop: string; + raw: string; + m(): void; +} +abstract class B implements A { + abstract prop: string; + abstract raw: string; + abstract readonly ro: string; + abstract get readonlyProp(): string; + abstract set readonlyProp(val: string); + abstract m(): void; +} +class C extends B { + get prop() { return "foo"; } + set prop(v) { } + raw = "edge"; + readonly ro = "readonly please"; + readonlyProp!: string; + m() { } +} + +//// [abstractPropertyBasics.js] +class B { +} +class C extends B { + constructor() { + super(...arguments); + this.raw = "edge"; + this.ro = "readonly please"; + } + get prop() { return "foo"; } + set prop(v) { } + m() { } +} diff --git a/tests/baselines/reference/abstractPropertyBasics.symbols b/tests/baselines/reference/abstractPropertyBasics(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/abstractPropertyBasics.symbols rename to tests/baselines/reference/abstractPropertyBasics(target=es2015).symbols diff --git a/tests/baselines/reference/abstractPropertyBasics.types b/tests/baselines/reference/abstractPropertyBasics(target=es2015).types similarity index 100% rename from tests/baselines/reference/abstractPropertyBasics.types rename to tests/baselines/reference/abstractPropertyBasics(target=es2015).types diff --git a/tests/baselines/reference/abstractPropertyBasics.js b/tests/baselines/reference/abstractPropertyBasics(target=es5).js similarity index 100% rename from tests/baselines/reference/abstractPropertyBasics.js rename to tests/baselines/reference/abstractPropertyBasics(target=es5).js diff --git a/tests/baselines/reference/abstractPropertyBasics(target=es5).symbols b/tests/baselines/reference/abstractPropertyBasics(target=es5).symbols new file mode 100644 index 0000000000000..b251e283c2965 --- /dev/null +++ b/tests/baselines/reference/abstractPropertyBasics(target=es5).symbols @@ -0,0 +1,61 @@ +//// [tests/cases/compiler/abstractPropertyBasics.ts] //// + +=== abstractPropertyBasics.ts === +interface A { +>A : Symbol(A, Decl(abstractPropertyBasics.ts, 0, 0)) + + prop: string; +>prop : Symbol(A.prop, Decl(abstractPropertyBasics.ts, 0, 13)) + + raw: string; +>raw : Symbol(A.raw, Decl(abstractPropertyBasics.ts, 1, 17)) + + m(): void; +>m : Symbol(A.m, Decl(abstractPropertyBasics.ts, 2, 16)) +} +abstract class B implements A { +>B : Symbol(B, Decl(abstractPropertyBasics.ts, 4, 1)) +>A : Symbol(A, Decl(abstractPropertyBasics.ts, 0, 0)) + + abstract prop: string; +>prop : Symbol(B.prop, Decl(abstractPropertyBasics.ts, 5, 31)) + + abstract raw: string; +>raw : Symbol(B.raw, Decl(abstractPropertyBasics.ts, 6, 26)) + + abstract readonly ro: string; +>ro : Symbol(B.ro, Decl(abstractPropertyBasics.ts, 7, 25)) + + abstract get readonlyProp(): string; +>readonlyProp : Symbol(B.readonlyProp, Decl(abstractPropertyBasics.ts, 8, 33), Decl(abstractPropertyBasics.ts, 9, 40)) + + abstract set readonlyProp(val: string); +>readonlyProp : Symbol(B.readonlyProp, Decl(abstractPropertyBasics.ts, 8, 33), Decl(abstractPropertyBasics.ts, 9, 40)) +>val : Symbol(val, Decl(abstractPropertyBasics.ts, 10, 30)) + + abstract m(): void; +>m : Symbol(B.m, Decl(abstractPropertyBasics.ts, 10, 43)) +} +class C extends B { +>C : Symbol(C, Decl(abstractPropertyBasics.ts, 12, 1)) +>B : Symbol(B, Decl(abstractPropertyBasics.ts, 4, 1)) + + get prop() { return "foo"; } +>prop : Symbol(C.prop, Decl(abstractPropertyBasics.ts, 13, 19), Decl(abstractPropertyBasics.ts, 14, 32)) + + set prop(v) { } +>prop : Symbol(C.prop, Decl(abstractPropertyBasics.ts, 13, 19), Decl(abstractPropertyBasics.ts, 14, 32)) +>v : Symbol(v, Decl(abstractPropertyBasics.ts, 15, 13)) + + raw = "edge"; +>raw : Symbol(C.raw, Decl(abstractPropertyBasics.ts, 15, 19)) + + readonly ro = "readonly please"; +>ro : Symbol(C.ro, Decl(abstractPropertyBasics.ts, 16, 17)) + + readonlyProp!: string; +>readonlyProp : Symbol(C.readonlyProp, Decl(abstractPropertyBasics.ts, 17, 36)) + + m() { } +>m : Symbol(C.m, Decl(abstractPropertyBasics.ts, 18, 26)) +} diff --git a/tests/baselines/reference/abstractPropertyBasics(target=es5).types b/tests/baselines/reference/abstractPropertyBasics(target=es5).types new file mode 100644 index 0000000000000..c62b71a86e149 --- /dev/null +++ b/tests/baselines/reference/abstractPropertyBasics(target=es5).types @@ -0,0 +1,84 @@ +//// [tests/cases/compiler/abstractPropertyBasics.ts] //// + +=== abstractPropertyBasics.ts === +interface A { + prop: string; +>prop : string +> : ^^^^^^ + + raw: string; +>raw : string +> : ^^^^^^ + + m(): void; +>m : () => void +> : ^^^^^^ +} +abstract class B implements A { +>B : B +> : ^ + + abstract prop: string; +>prop : string +> : ^^^^^^ + + abstract raw: string; +>raw : string +> : ^^^^^^ + + abstract readonly ro: string; +>ro : string +> : ^^^^^^ + + abstract get readonlyProp(): string; +>readonlyProp : string +> : ^^^^^^ + + abstract set readonlyProp(val: string); +>readonlyProp : string +> : ^^^^^^ +>val : string +> : ^^^^^^ + + abstract m(): void; +>m : () => void +> : ^^^^^^ +} +class C extends B { +>C : C +> : ^ +>B : B +> : ^ + + get prop() { return "foo"; } +>prop : string +> : ^^^^^^ +>"foo" : "foo" +> : ^^^^^ + + set prop(v) { } +>prop : string +> : ^^^^^^ +>v : string +> : ^^^^^^ + + raw = "edge"; +>raw : string +> : ^^^^^^ +>"edge" : "edge" +> : ^^^^^^ + + readonly ro = "readonly please"; +>ro : "readonly please" +> : ^^^^^^^^^^^^^^^^^ +>"readonly please" : "readonly please" +> : ^^^^^^^^^^^^^^^^^ + + readonlyProp!: string; +>readonlyProp : string +> : ^^^^^^ + + m() { } +>m : () => void +> : ^^^^^^^^^^ +} diff --git a/tests/baselines/reference/abstractPropertyNegative.errors.txt b/tests/baselines/reference/abstractPropertyNegative(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/abstractPropertyNegative.errors.txt rename to tests/baselines/reference/abstractPropertyNegative(target=es2015).errors.txt diff --git a/tests/baselines/reference/abstractPropertyNegative(target=es2015).js b/tests/baselines/reference/abstractPropertyNegative(target=es2015).js new file mode 100644 index 0000000000000..6d8a2c7bd37a2 --- /dev/null +++ b/tests/baselines/reference/abstractPropertyNegative(target=es2015).js @@ -0,0 +1,83 @@ +//// [tests/cases/compiler/abstractPropertyNegative.ts] //// + +//// [abstractPropertyNegative.ts] +interface A { + prop: string; + m(): string; +} +abstract class B implements A { + abstract prop: string; + public abstract readonly ro: string; + abstract get readonlyProp(): string; + abstract m(): string; + abstract get mismatch(): string; + abstract set mismatch(val: number); +} +class C extends B { + readonly ro = "readonly please"; + abstract notAllowed: string; + get concreteWithNoBody(): string; +} +let c = new C(); +c.ro = "error: lhs of assignment can't be readonly"; + +abstract class WrongTypeProperty { + abstract num: number; +} +class WrongTypePropertyImpl extends WrongTypeProperty { + num = "nope, wrong"; +} +abstract class WrongTypeAccessor { + abstract get num(): number; +} +class WrongTypeAccessorImpl extends WrongTypeAccessor { + get num() { return "nope, wrong"; } +} +class WrongTypeAccessorImpl2 extends WrongTypeAccessor { + num = "nope, wrong"; +} + +abstract class AbstractAccessorMismatch { + abstract get p1(): string; + set p1(val: string) { }; + get p2(): string { return "should work"; } + abstract set p2(val: string); +} + + +//// [abstractPropertyNegative.js] +class B { +} +class C extends B { + constructor() { + super(...arguments); + this.ro = "readonly please"; + } + get concreteWithNoBody() { } +} +let c = new C(); +c.ro = "error: lhs of assignment can't be readonly"; +class WrongTypeProperty { +} +class WrongTypePropertyImpl extends WrongTypeProperty { + constructor() { + super(...arguments); + this.num = "nope, wrong"; + } +} +class WrongTypeAccessor { +} +class WrongTypeAccessorImpl extends WrongTypeAccessor { + get num() { return "nope, wrong"; } +} +class WrongTypeAccessorImpl2 extends WrongTypeAccessor { + constructor() { + super(...arguments); + this.num = "nope, wrong"; + } +} +class AbstractAccessorMismatch { + set p1(val) { } + ; + get p2() { return "should work"; } +} diff --git a/tests/baselines/reference/abstractPropertyNegative.symbols b/tests/baselines/reference/abstractPropertyNegative(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/abstractPropertyNegative.symbols rename to tests/baselines/reference/abstractPropertyNegative(target=es2015).symbols diff --git a/tests/baselines/reference/abstractPropertyNegative.types b/tests/baselines/reference/abstractPropertyNegative(target=es2015).types similarity index 100% rename from tests/baselines/reference/abstractPropertyNegative.types rename to tests/baselines/reference/abstractPropertyNegative(target=es2015).types diff --git a/tests/baselines/reference/abstractPropertyNegative(target=es5).errors.txt b/tests/baselines/reference/abstractPropertyNegative(target=es5).errors.txt new file mode 100644 index 0000000000000..34f7fd8e45361 --- /dev/null +++ b/tests/baselines/reference/abstractPropertyNegative(target=es5).errors.txt @@ -0,0 +1,85 @@ +abstractPropertyNegative.ts(13,7): error TS2654: Non-abstract class 'C' is missing implementations for the following members of 'B': 'prop', 'readonlyProp', 'm', 'mismatch'. +abstractPropertyNegative.ts(15,5): error TS1253: Abstract properties can only appear within an abstract class. +abstractPropertyNegative.ts(16,37): error TS1005: '{' expected. +abstractPropertyNegative.ts(19,3): error TS2540: Cannot assign to 'ro' because it is a read-only property. +abstractPropertyNegative.ts(25,5): error TS2416: Property 'num' in type 'WrongTypePropertyImpl' is not assignable to the same property in base type 'WrongTypeProperty'. + Type 'string' is not assignable to type 'number'. +abstractPropertyNegative.ts(31,9): error TS2416: Property 'num' in type 'WrongTypeAccessorImpl' is not assignable to the same property in base type 'WrongTypeAccessor'. + Type 'string' is not assignable to type 'number'. +abstractPropertyNegative.ts(34,5): error TS2416: Property 'num' in type 'WrongTypeAccessorImpl2' is not assignable to the same property in base type 'WrongTypeAccessor'. + Type 'string' is not assignable to type 'number'. +abstractPropertyNegative.ts(38,18): error TS2676: Accessors must both be abstract or non-abstract. +abstractPropertyNegative.ts(39,9): error TS2676: Accessors must both be abstract or non-abstract. +abstractPropertyNegative.ts(40,9): error TS2676: Accessors must both be abstract or non-abstract. +abstractPropertyNegative.ts(41,18): error TS2676: Accessors must both be abstract or non-abstract. + + +==== abstractPropertyNegative.ts (11 errors) ==== + interface A { + prop: string; + m(): string; + } + abstract class B implements A { + abstract prop: string; + public abstract readonly ro: string; + abstract get readonlyProp(): string; + abstract m(): string; + abstract get mismatch(): string; + abstract set mismatch(val: number); + } + class C extends B { + ~ +!!! error TS2654: Non-abstract class 'C' is missing implementations for the following members of 'B': 'prop', 'readonlyProp', 'm', 'mismatch'. + readonly ro = "readonly please"; + abstract notAllowed: string; + ~~~~~~~~ +!!! error TS1253: Abstract properties can only appear within an abstract class. + get concreteWithNoBody(): string; + ~ +!!! error TS1005: '{' expected. + } + let c = new C(); + c.ro = "error: lhs of assignment can't be readonly"; + ~~ +!!! error TS2540: Cannot assign to 'ro' because it is a read-only property. + + abstract class WrongTypeProperty { + abstract num: number; + } + class WrongTypePropertyImpl extends WrongTypeProperty { + num = "nope, wrong"; + ~~~ +!!! error TS2416: Property 'num' in type 'WrongTypePropertyImpl' is not assignable to the same property in base type 'WrongTypeProperty'. +!!! error TS2416: Type 'string' is not assignable to type 'number'. + } + abstract class WrongTypeAccessor { + abstract get num(): number; + } + class WrongTypeAccessorImpl extends WrongTypeAccessor { + get num() { return "nope, wrong"; } + ~~~ +!!! error TS2416: Property 'num' in type 'WrongTypeAccessorImpl' is not assignable to the same property in base type 'WrongTypeAccessor'. +!!! error TS2416: Type 'string' is not assignable to type 'number'. + } + class WrongTypeAccessorImpl2 extends WrongTypeAccessor { + num = "nope, wrong"; + ~~~ +!!! error TS2416: Property 'num' in type 'WrongTypeAccessorImpl2' is not assignable to the same property in base type 'WrongTypeAccessor'. +!!! error TS2416: Type 'string' is not assignable to type 'number'. + } + + abstract class AbstractAccessorMismatch { + abstract get p1(): string; + ~~ +!!! error TS2676: Accessors must both be abstract or non-abstract. + set p1(val: string) { }; + ~~ +!!! error TS2676: Accessors must both be abstract or non-abstract. + get p2(): string { return "should work"; } + ~~ +!!! error TS2676: Accessors must both be abstract or non-abstract. + abstract set p2(val: string); + ~~ +!!! error TS2676: Accessors must both be abstract or non-abstract. + } + \ No newline at end of file diff --git a/tests/baselines/reference/abstractPropertyNegative.js b/tests/baselines/reference/abstractPropertyNegative(target=es5).js similarity index 100% rename from tests/baselines/reference/abstractPropertyNegative.js rename to tests/baselines/reference/abstractPropertyNegative(target=es5).js diff --git a/tests/baselines/reference/abstractPropertyNegative(target=es5).symbols b/tests/baselines/reference/abstractPropertyNegative(target=es5).symbols new file mode 100644 index 0000000000000..f6565eaa25624 --- /dev/null +++ b/tests/baselines/reference/abstractPropertyNegative(target=es5).symbols @@ -0,0 +1,109 @@ +//// [tests/cases/compiler/abstractPropertyNegative.ts] //// + +=== abstractPropertyNegative.ts === +interface A { +>A : Symbol(A, Decl(abstractPropertyNegative.ts, 0, 0)) + + prop: string; +>prop : Symbol(A.prop, Decl(abstractPropertyNegative.ts, 0, 13)) + + m(): string; +>m : Symbol(A.m, Decl(abstractPropertyNegative.ts, 1, 17)) +} +abstract class B implements A { +>B : Symbol(B, Decl(abstractPropertyNegative.ts, 3, 1)) +>A : Symbol(A, Decl(abstractPropertyNegative.ts, 0, 0)) + + abstract prop: string; +>prop : Symbol(B.prop, Decl(abstractPropertyNegative.ts, 4, 31)) + + public abstract readonly ro: string; +>ro : Symbol(B.ro, Decl(abstractPropertyNegative.ts, 5, 26)) + + abstract get readonlyProp(): string; +>readonlyProp : Symbol(B.readonlyProp, Decl(abstractPropertyNegative.ts, 6, 40)) + + abstract m(): string; +>m : Symbol(B.m, Decl(abstractPropertyNegative.ts, 7, 40)) + + abstract get mismatch(): string; +>mismatch : Symbol(B.mismatch, Decl(abstractPropertyNegative.ts, 8, 25), Decl(abstractPropertyNegative.ts, 9, 36)) + + abstract set mismatch(val: number); +>mismatch : Symbol(B.mismatch, Decl(abstractPropertyNegative.ts, 8, 25), Decl(abstractPropertyNegative.ts, 9, 36)) +>val : Symbol(val, Decl(abstractPropertyNegative.ts, 10, 26)) +} +class C extends B { +>C : Symbol(C, Decl(abstractPropertyNegative.ts, 11, 1)) +>B : Symbol(B, Decl(abstractPropertyNegative.ts, 3, 1)) + + readonly ro = "readonly please"; +>ro : Symbol(C.ro, Decl(abstractPropertyNegative.ts, 12, 19)) + + abstract notAllowed: string; +>notAllowed : Symbol(C.notAllowed, Decl(abstractPropertyNegative.ts, 13, 36)) + + get concreteWithNoBody(): string; +>concreteWithNoBody : Symbol(C.concreteWithNoBody, Decl(abstractPropertyNegative.ts, 14, 32)) +} +let c = new C(); +>c : Symbol(c, Decl(abstractPropertyNegative.ts, 17, 3)) +>C : Symbol(C, Decl(abstractPropertyNegative.ts, 11, 1)) + +c.ro = "error: lhs of assignment can't be readonly"; +>c.ro : Symbol(C.ro, Decl(abstractPropertyNegative.ts, 12, 19)) +>c : Symbol(c, Decl(abstractPropertyNegative.ts, 17, 3)) +>ro : Symbol(C.ro, Decl(abstractPropertyNegative.ts, 12, 19)) + +abstract class WrongTypeProperty { +>WrongTypeProperty : Symbol(WrongTypeProperty, Decl(abstractPropertyNegative.ts, 18, 52)) + + abstract num: number; +>num : Symbol(WrongTypeProperty.num, Decl(abstractPropertyNegative.ts, 20, 34)) +} +class WrongTypePropertyImpl extends WrongTypeProperty { +>WrongTypePropertyImpl : Symbol(WrongTypePropertyImpl, Decl(abstractPropertyNegative.ts, 22, 1)) +>WrongTypeProperty : Symbol(WrongTypeProperty, Decl(abstractPropertyNegative.ts, 18, 52)) + + num = "nope, wrong"; +>num : Symbol(WrongTypePropertyImpl.num, Decl(abstractPropertyNegative.ts, 23, 55)) +} +abstract class WrongTypeAccessor { +>WrongTypeAccessor : Symbol(WrongTypeAccessor, Decl(abstractPropertyNegative.ts, 25, 1)) + + abstract get num(): number; +>num : Symbol(WrongTypeAccessor.num, Decl(abstractPropertyNegative.ts, 26, 34)) +} +class WrongTypeAccessorImpl extends WrongTypeAccessor { +>WrongTypeAccessorImpl : Symbol(WrongTypeAccessorImpl, Decl(abstractPropertyNegative.ts, 28, 1)) +>WrongTypeAccessor : Symbol(WrongTypeAccessor, Decl(abstractPropertyNegative.ts, 25, 1)) + + get num() { return "nope, wrong"; } +>num : Symbol(WrongTypeAccessorImpl.num, Decl(abstractPropertyNegative.ts, 29, 55)) +} +class WrongTypeAccessorImpl2 extends WrongTypeAccessor { +>WrongTypeAccessorImpl2 : Symbol(WrongTypeAccessorImpl2, Decl(abstractPropertyNegative.ts, 31, 1)) +>WrongTypeAccessor : Symbol(WrongTypeAccessor, Decl(abstractPropertyNegative.ts, 25, 1)) + + num = "nope, wrong"; +>num : Symbol(WrongTypeAccessorImpl2.num, Decl(abstractPropertyNegative.ts, 32, 56)) +} + +abstract class AbstractAccessorMismatch { +>AbstractAccessorMismatch : Symbol(AbstractAccessorMismatch, Decl(abstractPropertyNegative.ts, 34, 1)) + + abstract get p1(): string; +>p1 : Symbol(AbstractAccessorMismatch.p1, Decl(abstractPropertyNegative.ts, 36, 41), Decl(abstractPropertyNegative.ts, 37, 30)) + + set p1(val: string) { }; +>p1 : Symbol(AbstractAccessorMismatch.p1, Decl(abstractPropertyNegative.ts, 36, 41), Decl(abstractPropertyNegative.ts, 37, 30)) +>val : Symbol(val, Decl(abstractPropertyNegative.ts, 38, 11)) + + get p2(): string { return "should work"; } +>p2 : Symbol(AbstractAccessorMismatch.p2, Decl(abstractPropertyNegative.ts, 38, 28), Decl(abstractPropertyNegative.ts, 39, 46)) + + abstract set p2(val: string); +>p2 : Symbol(AbstractAccessorMismatch.p2, Decl(abstractPropertyNegative.ts, 38, 28), Decl(abstractPropertyNegative.ts, 39, 46)) +>val : Symbol(val, Decl(abstractPropertyNegative.ts, 40, 20)) +} + diff --git a/tests/baselines/reference/abstractPropertyNegative(target=es5).types b/tests/baselines/reference/abstractPropertyNegative(target=es5).types new file mode 100644 index 0000000000000..eb11f44c3c3c4 --- /dev/null +++ b/tests/baselines/reference/abstractPropertyNegative(target=es5).types @@ -0,0 +1,162 @@ +//// [tests/cases/compiler/abstractPropertyNegative.ts] //// + +=== abstractPropertyNegative.ts === +interface A { + prop: string; +>prop : string +> : ^^^^^^ + + m(): string; +>m : () => string +> : ^^^^^^ +} +abstract class B implements A { +>B : B +> : ^ + + abstract prop: string; +>prop : string +> : ^^^^^^ + + public abstract readonly ro: string; +>ro : string +> : ^^^^^^ + + abstract get readonlyProp(): string; +>readonlyProp : string +> : ^^^^^^ + + abstract m(): string; +>m : () => string +> : ^^^^^^ + + abstract get mismatch(): string; +>mismatch : string +> : ^^^^^^ + + abstract set mismatch(val: number); +>mismatch : string +> : ^^^^^^ +>val : number +> : ^^^^^^ +} +class C extends B { +>C : C +> : ^ +>B : B +> : ^ + + readonly ro = "readonly please"; +>ro : "readonly please" +> : ^^^^^^^^^^^^^^^^^ +>"readonly please" : "readonly please" +> : ^^^^^^^^^^^^^^^^^ + + abstract notAllowed: string; +>notAllowed : string +> : ^^^^^^ + + get concreteWithNoBody(): string; +>concreteWithNoBody : string +> : ^^^^^^ +} +let c = new C(); +>c : C +> : ^ +>new C() : C +> : ^ +>C : typeof C +> : ^^^^^^^^ + +c.ro = "error: lhs of assignment can't be readonly"; +>c.ro = "error: lhs of assignment can't be readonly" : "error: lhs of assignment can't be readonly" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>c.ro : any +> : ^^^ +>c : C +> : ^ +>ro : any +> : ^^^ +>"error: lhs of assignment can't be readonly" : "error: lhs of assignment can't be readonly" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +abstract class WrongTypeProperty { +>WrongTypeProperty : WrongTypeProperty +> : ^^^^^^^^^^^^^^^^^ + + abstract num: number; +>num : number +> : ^^^^^^ +} +class WrongTypePropertyImpl extends WrongTypeProperty { +>WrongTypePropertyImpl : WrongTypePropertyImpl +> : ^^^^^^^^^^^^^^^^^^^^^ +>WrongTypeProperty : WrongTypeProperty +> : ^^^^^^^^^^^^^^^^^ + + num = "nope, wrong"; +>num : string +> : ^^^^^^ +>"nope, wrong" : "nope, wrong" +> : ^^^^^^^^^^^^^ +} +abstract class WrongTypeAccessor { +>WrongTypeAccessor : WrongTypeAccessor +> : ^^^^^^^^^^^^^^^^^ + + abstract get num(): number; +>num : number +> : ^^^^^^ +} +class WrongTypeAccessorImpl extends WrongTypeAccessor { +>WrongTypeAccessorImpl : WrongTypeAccessorImpl +> : ^^^^^^^^^^^^^^^^^^^^^ +>WrongTypeAccessor : WrongTypeAccessor +> : ^^^^^^^^^^^^^^^^^ + + get num() { return "nope, wrong"; } +>num : string +> : ^^^^^^ +>"nope, wrong" : "nope, wrong" +> : ^^^^^^^^^^^^^ +} +class WrongTypeAccessorImpl2 extends WrongTypeAccessor { +>WrongTypeAccessorImpl2 : WrongTypeAccessorImpl2 +> : ^^^^^^^^^^^^^^^^^^^^^^ +>WrongTypeAccessor : WrongTypeAccessor +> : ^^^^^^^^^^^^^^^^^ + + num = "nope, wrong"; +>num : string +> : ^^^^^^ +>"nope, wrong" : "nope, wrong" +> : ^^^^^^^^^^^^^ +} + +abstract class AbstractAccessorMismatch { +>AbstractAccessorMismatch : AbstractAccessorMismatch +> : ^^^^^^^^^^^^^^^^^^^^^^^^ + + abstract get p1(): string; +>p1 : string +> : ^^^^^^ + + set p1(val: string) { }; +>p1 : string +> : ^^^^^^ +>val : string +> : ^^^^^^ + + get p2(): string { return "should work"; } +>p2 : string +> : ^^^^^^ +>"should work" : "should work" +> : ^^^^^^^^^^^^^ + + abstract set p2(val: string); +>p2 : string +> : ^^^^^^ +>val : string +> : ^^^^^^ +} + diff --git a/tests/baselines/reference/accessibilityModifiers.errors.txt b/tests/baselines/reference/accessibilityModifiers(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/accessibilityModifiers.errors.txt rename to tests/baselines/reference/accessibilityModifiers(target=es2015).errors.txt diff --git a/tests/baselines/reference/accessibilityModifiers(target=es2015).js b/tests/baselines/reference/accessibilityModifiers(target=es2015).js new file mode 100644 index 0000000000000..04c572ea4e276 --- /dev/null +++ b/tests/baselines/reference/accessibilityModifiers(target=es2015).js @@ -0,0 +1,79 @@ +//// [tests/cases/conformance/classes/propertyMemberDeclarations/accessibilityModifiers.ts] //// + +//// [accessibilityModifiers.ts] +// No errors +class C { + private static privateProperty; + private static privateMethod() { } + private static get privateGetter() { return 0; } + private static set privateSetter(a: number) { } + + protected static protectedProperty; + protected static protectedMethod() { } + protected static get protectedGetter() { return 0; } + protected static set protectedSetter(a: number) { } + + public static publicProperty; + public static publicMethod() { } + public static get publicGetter() { return 0; } + public static set publicSetter(a: number) { } +} + +// Errors, accessibility modifiers must precede static +class D { + static private privateProperty; + static private privateMethod() { } + static private get privateGetter() { return 0; } + static private set privateSetter(a: number) { } + + static protected protectedProperty; + static protected protectedMethod() { } + static protected get protectedGetter() { return 0; } + static protected set protectedSetter(a: number) { } + + static public publicProperty; + static public publicMethod() { } + static public get publicGetter() { return 0; } + static public set publicSetter(a: number) { } +} + +// Errors, multiple accessibility modifier +class E { + private public protected property; + public protected method() { } + private protected get getter() { return 0; } + public public set setter(a: number) { } +} + + +//// [accessibilityModifiers.js] +// No errors +class C { + static privateMethod() { } + static get privateGetter() { return 0; } + static set privateSetter(a) { } + static protectedMethod() { } + static get protectedGetter() { return 0; } + static set protectedSetter(a) { } + static publicMethod() { } + static get publicGetter() { return 0; } + static set publicSetter(a) { } +} +// Errors, accessibility modifiers must precede static +class D { + static privateMethod() { } + static get privateGetter() { return 0; } + static set privateSetter(a) { } + static protectedMethod() { } + static get protectedGetter() { return 0; } + static set protectedSetter(a) { } + static publicMethod() { } + static get publicGetter() { return 0; } + static set publicSetter(a) { } +} +// Errors, multiple accessibility modifier +class E { + method() { } + get getter() { return 0; } + set setter(a) { } +} diff --git a/tests/baselines/reference/accessibilityModifiers.symbols b/tests/baselines/reference/accessibilityModifiers(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/accessibilityModifiers.symbols rename to tests/baselines/reference/accessibilityModifiers(target=es2015).symbols diff --git a/tests/baselines/reference/accessibilityModifiers.types b/tests/baselines/reference/accessibilityModifiers(target=es2015).types similarity index 100% rename from tests/baselines/reference/accessibilityModifiers.types rename to tests/baselines/reference/accessibilityModifiers(target=es2015).types diff --git a/tests/baselines/reference/accessibilityModifiers(target=es5).errors.txt b/tests/baselines/reference/accessibilityModifiers(target=es5).errors.txt new file mode 100644 index 0000000000000..260ac25d0cfc0 --- /dev/null +++ b/tests/baselines/reference/accessibilityModifiers(target=es5).errors.txt @@ -0,0 +1,95 @@ +accessibilityModifiers.ts(21,12): error TS1029: 'private' modifier must precede 'static' modifier. +accessibilityModifiers.ts(22,12): error TS1029: 'private' modifier must precede 'static' modifier. +accessibilityModifiers.ts(23,12): error TS1029: 'private' modifier must precede 'static' modifier. +accessibilityModifiers.ts(24,12): error TS1029: 'private' modifier must precede 'static' modifier. +accessibilityModifiers.ts(26,12): error TS1029: 'protected' modifier must precede 'static' modifier. +accessibilityModifiers.ts(27,12): error TS1029: 'protected' modifier must precede 'static' modifier. +accessibilityModifiers.ts(28,12): error TS1029: 'protected' modifier must precede 'static' modifier. +accessibilityModifiers.ts(29,12): error TS1029: 'protected' modifier must precede 'static' modifier. +accessibilityModifiers.ts(31,12): error TS1029: 'public' modifier must precede 'static' modifier. +accessibilityModifiers.ts(32,12): error TS1029: 'public' modifier must precede 'static' modifier. +accessibilityModifiers.ts(33,12): error TS1029: 'public' modifier must precede 'static' modifier. +accessibilityModifiers.ts(34,12): error TS1029: 'public' modifier must precede 'static' modifier. +accessibilityModifiers.ts(39,13): error TS1028: Accessibility modifier already seen. +accessibilityModifiers.ts(40,12): error TS1028: Accessibility modifier already seen. +accessibilityModifiers.ts(41,13): error TS1028: Accessibility modifier already seen. +accessibilityModifiers.ts(42,12): error TS1028: Accessibility modifier already seen. + + +==== accessibilityModifiers.ts (16 errors) ==== + // No errors + class C { + private static privateProperty; + private static privateMethod() { } + private static get privateGetter() { return 0; } + private static set privateSetter(a: number) { } + + protected static protectedProperty; + protected static protectedMethod() { } + protected static get protectedGetter() { return 0; } + protected static set protectedSetter(a: number) { } + + public static publicProperty; + public static publicMethod() { } + public static get publicGetter() { return 0; } + public static set publicSetter(a: number) { } + } + + // Errors, accessibility modifiers must precede static + class D { + static private privateProperty; + ~~~~~~~ +!!! error TS1029: 'private' modifier must precede 'static' modifier. + static private privateMethod() { } + ~~~~~~~ +!!! error TS1029: 'private' modifier must precede 'static' modifier. + static private get privateGetter() { return 0; } + ~~~~~~~ +!!! error TS1029: 'private' modifier must precede 'static' modifier. + static private set privateSetter(a: number) { } + ~~~~~~~ +!!! error TS1029: 'private' modifier must precede 'static' modifier. + + static protected protectedProperty; + ~~~~~~~~~ +!!! error TS1029: 'protected' modifier must precede 'static' modifier. + static protected protectedMethod() { } + ~~~~~~~~~ +!!! error TS1029: 'protected' modifier must precede 'static' modifier. + static protected get protectedGetter() { return 0; } + ~~~~~~~~~ +!!! error TS1029: 'protected' modifier must precede 'static' modifier. + static protected set protectedSetter(a: number) { } + ~~~~~~~~~ +!!! error TS1029: 'protected' modifier must precede 'static' modifier. + + static public publicProperty; + ~~~~~~ +!!! error TS1029: 'public' modifier must precede 'static' modifier. + static public publicMethod() { } + ~~~~~~ +!!! error TS1029: 'public' modifier must precede 'static' modifier. + static public get publicGetter() { return 0; } + ~~~~~~ +!!! error TS1029: 'public' modifier must precede 'static' modifier. + static public set publicSetter(a: number) { } + ~~~~~~ +!!! error TS1029: 'public' modifier must precede 'static' modifier. + } + + // Errors, multiple accessibility modifier + class E { + private public protected property; + ~~~~~~ +!!! error TS1028: Accessibility modifier already seen. + public protected method() { } + ~~~~~~~~~ +!!! error TS1028: Accessibility modifier already seen. + private protected get getter() { return 0; } + ~~~~~~~~~ +!!! error TS1028: Accessibility modifier already seen. + public public set setter(a: number) { } + ~~~~~~ +!!! error TS1028: Accessibility modifier already seen. + } + \ No newline at end of file diff --git a/tests/baselines/reference/accessibilityModifiers.js b/tests/baselines/reference/accessibilityModifiers(target=es5).js similarity index 100% rename from tests/baselines/reference/accessibilityModifiers.js rename to tests/baselines/reference/accessibilityModifiers(target=es5).js diff --git a/tests/baselines/reference/accessibilityModifiers(target=es5).symbols b/tests/baselines/reference/accessibilityModifiers(target=es5).symbols new file mode 100644 index 0000000000000..c3b1545f30467 --- /dev/null +++ b/tests/baselines/reference/accessibilityModifiers(target=es5).symbols @@ -0,0 +1,109 @@ +//// [tests/cases/conformance/classes/propertyMemberDeclarations/accessibilityModifiers.ts] //// + +=== accessibilityModifiers.ts === +// No errors +class C { +>C : Symbol(C, Decl(accessibilityModifiers.ts, 0, 0)) + + private static privateProperty; +>privateProperty : Symbol(C.privateProperty, Decl(accessibilityModifiers.ts, 1, 9)) + + private static privateMethod() { } +>privateMethod : Symbol(C.privateMethod, Decl(accessibilityModifiers.ts, 2, 35)) + + private static get privateGetter() { return 0; } +>privateGetter : Symbol(C.privateGetter, Decl(accessibilityModifiers.ts, 3, 38)) + + private static set privateSetter(a: number) { } +>privateSetter : Symbol(C.privateSetter, Decl(accessibilityModifiers.ts, 4, 52)) +>a : Symbol(a, Decl(accessibilityModifiers.ts, 5, 37)) + + protected static protectedProperty; +>protectedProperty : Symbol(C.protectedProperty, Decl(accessibilityModifiers.ts, 5, 51)) + + protected static protectedMethod() { } +>protectedMethod : Symbol(C.protectedMethod, Decl(accessibilityModifiers.ts, 7, 39)) + + protected static get protectedGetter() { return 0; } +>protectedGetter : Symbol(C.protectedGetter, Decl(accessibilityModifiers.ts, 8, 42)) + + protected static set protectedSetter(a: number) { } +>protectedSetter : Symbol(C.protectedSetter, Decl(accessibilityModifiers.ts, 9, 56)) +>a : Symbol(a, Decl(accessibilityModifiers.ts, 10, 41)) + + public static publicProperty; +>publicProperty : Symbol(C.publicProperty, Decl(accessibilityModifiers.ts, 10, 55)) + + public static publicMethod() { } +>publicMethod : Symbol(C.publicMethod, Decl(accessibilityModifiers.ts, 12, 33)) + + public static get publicGetter() { return 0; } +>publicGetter : Symbol(C.publicGetter, Decl(accessibilityModifiers.ts, 13, 36)) + + public static set publicSetter(a: number) { } +>publicSetter : Symbol(C.publicSetter, Decl(accessibilityModifiers.ts, 14, 50)) +>a : Symbol(a, Decl(accessibilityModifiers.ts, 15, 35)) +} + +// Errors, accessibility modifiers must precede static +class D { +>D : Symbol(D, Decl(accessibilityModifiers.ts, 16, 1)) + + static private privateProperty; +>privateProperty : Symbol(D.privateProperty, Decl(accessibilityModifiers.ts, 19, 9)) + + static private privateMethod() { } +>privateMethod : Symbol(D.privateMethod, Decl(accessibilityModifiers.ts, 20, 35)) + + static private get privateGetter() { return 0; } +>privateGetter : Symbol(D.privateGetter, Decl(accessibilityModifiers.ts, 21, 38)) + + static private set privateSetter(a: number) { } +>privateSetter : Symbol(D.privateSetter, Decl(accessibilityModifiers.ts, 22, 52)) +>a : Symbol(a, Decl(accessibilityModifiers.ts, 23, 37)) + + static protected protectedProperty; +>protectedProperty : Symbol(D.protectedProperty, Decl(accessibilityModifiers.ts, 23, 51)) + + static protected protectedMethod() { } +>protectedMethod : Symbol(D.protectedMethod, Decl(accessibilityModifiers.ts, 25, 39)) + + static protected get protectedGetter() { return 0; } +>protectedGetter : Symbol(D.protectedGetter, Decl(accessibilityModifiers.ts, 26, 42)) + + static protected set protectedSetter(a: number) { } +>protectedSetter : Symbol(D.protectedSetter, Decl(accessibilityModifiers.ts, 27, 56)) +>a : Symbol(a, Decl(accessibilityModifiers.ts, 28, 41)) + + static public publicProperty; +>publicProperty : Symbol(D.publicProperty, Decl(accessibilityModifiers.ts, 28, 55)) + + static public publicMethod() { } +>publicMethod : Symbol(D.publicMethod, Decl(accessibilityModifiers.ts, 30, 33)) + + static public get publicGetter() { return 0; } +>publicGetter : Symbol(D.publicGetter, Decl(accessibilityModifiers.ts, 31, 36)) + + static public set publicSetter(a: number) { } +>publicSetter : Symbol(D.publicSetter, Decl(accessibilityModifiers.ts, 32, 50)) +>a : Symbol(a, Decl(accessibilityModifiers.ts, 33, 35)) +} + +// Errors, multiple accessibility modifier +class E { +>E : Symbol(E, Decl(accessibilityModifiers.ts, 34, 1)) + + private public protected property; +>property : Symbol(E.property, Decl(accessibilityModifiers.ts, 37, 9)) + + public protected method() { } +>method : Symbol(E.method, Decl(accessibilityModifiers.ts, 38, 38)) + + private protected get getter() { return 0; } +>getter : Symbol(E.getter, Decl(accessibilityModifiers.ts, 39, 33)) + + public public set setter(a: number) { } +>setter : Symbol(E.setter, Decl(accessibilityModifiers.ts, 40, 48)) +>a : Symbol(a, Decl(accessibilityModifiers.ts, 41, 29)) +} + diff --git a/tests/baselines/reference/accessibilityModifiers(target=es5).types b/tests/baselines/reference/accessibilityModifiers(target=es5).types new file mode 100644 index 0000000000000..1a6f62356a3f5 --- /dev/null +++ b/tests/baselines/reference/accessibilityModifiers(target=es5).types @@ -0,0 +1,161 @@ +//// [tests/cases/conformance/classes/propertyMemberDeclarations/accessibilityModifiers.ts] //// + +=== accessibilityModifiers.ts === +// No errors +class C { +>C : C +> : ^ + + private static privateProperty; +>privateProperty : any +> : ^^^ + + private static privateMethod() { } +>privateMethod : () => void +> : ^^^^^^^^^^ + + private static get privateGetter() { return 0; } +>privateGetter : number +> : ^^^^^^ +>0 : 0 +> : ^ + + private static set privateSetter(a: number) { } +>privateSetter : number +> : ^^^^^^ +>a : number +> : ^^^^^^ + + protected static protectedProperty; +>protectedProperty : any +> : ^^^ + + protected static protectedMethod() { } +>protectedMethod : () => void +> : ^^^^^^^^^^ + + protected static get protectedGetter() { return 0; } +>protectedGetter : number +> : ^^^^^^ +>0 : 0 +> : ^ + + protected static set protectedSetter(a: number) { } +>protectedSetter : number +> : ^^^^^^ +>a : number +> : ^^^^^^ + + public static publicProperty; +>publicProperty : any +> : ^^^ + + public static publicMethod() { } +>publicMethod : () => void +> : ^^^^^^^^^^ + + public static get publicGetter() { return 0; } +>publicGetter : number +> : ^^^^^^ +>0 : 0 +> : ^ + + public static set publicSetter(a: number) { } +>publicSetter : number +> : ^^^^^^ +>a : number +> : ^^^^^^ +} + +// Errors, accessibility modifiers must precede static +class D { +>D : D +> : ^ + + static private privateProperty; +>privateProperty : any +> : ^^^ + + static private privateMethod() { } +>privateMethod : () => void +> : ^^^^^^^^^^ + + static private get privateGetter() { return 0; } +>privateGetter : number +> : ^^^^^^ +>0 : 0 +> : ^ + + static private set privateSetter(a: number) { } +>privateSetter : number +> : ^^^^^^ +>a : number +> : ^^^^^^ + + static protected protectedProperty; +>protectedProperty : any +> : ^^^ + + static protected protectedMethod() { } +>protectedMethod : () => void +> : ^^^^^^^^^^ + + static protected get protectedGetter() { return 0; } +>protectedGetter : number +> : ^^^^^^ +>0 : 0 +> : ^ + + static protected set protectedSetter(a: number) { } +>protectedSetter : number +> : ^^^^^^ +>a : number +> : ^^^^^^ + + static public publicProperty; +>publicProperty : any +> : ^^^ + + static public publicMethod() { } +>publicMethod : () => void +> : ^^^^^^^^^^ + + static public get publicGetter() { return 0; } +>publicGetter : number +> : ^^^^^^ +>0 : 0 +> : ^ + + static public set publicSetter(a: number) { } +>publicSetter : number +> : ^^^^^^ +>a : number +> : ^^^^^^ +} + +// Errors, multiple accessibility modifier +class E { +>E : E +> : ^ + + private public protected property; +>property : any +> : ^^^ + + public protected method() { } +>method : () => void +> : ^^^^^^^^^^ + + private protected get getter() { return 0; } +>getter : number +> : ^^^^^^ +>0 : 0 +> : ^ + + public public set setter(a: number) { } +>setter : number +> : ^^^^^^ +>a : number +> : ^^^^^^ +} + diff --git a/tests/baselines/reference/accessorAccidentalCallDiagnostic.errors.txt b/tests/baselines/reference/accessorAccidentalCallDiagnostic(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/accessorAccidentalCallDiagnostic.errors.txt rename to tests/baselines/reference/accessorAccidentalCallDiagnostic(target=es2015).errors.txt diff --git a/tests/baselines/reference/accessorAccidentalCallDiagnostic(target=es2015).js b/tests/baselines/reference/accessorAccidentalCallDiagnostic(target=es2015).js new file mode 100644 index 0000000000000..9f923f5ab20db --- /dev/null +++ b/tests/baselines/reference/accessorAccidentalCallDiagnostic(target=es2015).js @@ -0,0 +1,20 @@ +//// [tests/cases/compiler/accessorAccidentalCallDiagnostic.ts] //// + +//// [accessorAccidentalCallDiagnostic.ts] +// https://github.com/microsoft/TypeScript/issues/24554 +class Test24554 { + get property(): number { return 1; } +} +function test24554(x: Test24554) { + return x.property(); +} + + +//// [accessorAccidentalCallDiagnostic.js] +// https://github.com/microsoft/TypeScript/issues/24554 +class Test24554 { + get property() { return 1; } +} +function test24554(x) { + return x.property(); +} diff --git a/tests/baselines/reference/accessorAccidentalCallDiagnostic.symbols b/tests/baselines/reference/accessorAccidentalCallDiagnostic(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/accessorAccidentalCallDiagnostic.symbols rename to tests/baselines/reference/accessorAccidentalCallDiagnostic(target=es2015).symbols diff --git a/tests/baselines/reference/accessorAccidentalCallDiagnostic.types b/tests/baselines/reference/accessorAccidentalCallDiagnostic(target=es2015).types similarity index 100% rename from tests/baselines/reference/accessorAccidentalCallDiagnostic.types rename to tests/baselines/reference/accessorAccidentalCallDiagnostic(target=es2015).types diff --git a/tests/baselines/reference/accessorAccidentalCallDiagnostic(target=es5).errors.txt b/tests/baselines/reference/accessorAccidentalCallDiagnostic(target=es5).errors.txt new file mode 100644 index 0000000000000..5d51cd8be52ea --- /dev/null +++ b/tests/baselines/reference/accessorAccidentalCallDiagnostic(target=es5).errors.txt @@ -0,0 +1,16 @@ +accessorAccidentalCallDiagnostic.ts(6,14): error TS6234: This expression is not callable because it is a 'get' accessor. Did you mean to use it without '()'? + Type 'Number' has no call signatures. + + +==== accessorAccidentalCallDiagnostic.ts (1 errors) ==== + // https://github.com/microsoft/TypeScript/issues/24554 + class Test24554 { + get property(): number { return 1; } + } + function test24554(x: Test24554) { + return x.property(); + ~~~~~~~~ +!!! error TS6234: This expression is not callable because it is a 'get' accessor. Did you mean to use it without '()'? +!!! error TS6234: Type 'Number' has no call signatures. + } + \ No newline at end of file diff --git a/tests/baselines/reference/accessorAccidentalCallDiagnostic.js b/tests/baselines/reference/accessorAccidentalCallDiagnostic(target=es5).js similarity index 100% rename from tests/baselines/reference/accessorAccidentalCallDiagnostic.js rename to tests/baselines/reference/accessorAccidentalCallDiagnostic(target=es5).js diff --git a/tests/baselines/reference/accessorAccidentalCallDiagnostic(target=es5).symbols b/tests/baselines/reference/accessorAccidentalCallDiagnostic(target=es5).symbols new file mode 100644 index 0000000000000..66b25a906c8b6 --- /dev/null +++ b/tests/baselines/reference/accessorAccidentalCallDiagnostic(target=es5).symbols @@ -0,0 +1,21 @@ +//// [tests/cases/compiler/accessorAccidentalCallDiagnostic.ts] //// + +=== accessorAccidentalCallDiagnostic.ts === +// https://github.com/microsoft/TypeScript/issues/24554 +class Test24554 { +>Test24554 : Symbol(Test24554, Decl(accessorAccidentalCallDiagnostic.ts, 0, 0)) + + get property(): number { return 1; } +>property : Symbol(Test24554.property, Decl(accessorAccidentalCallDiagnostic.ts, 1, 17)) +} +function test24554(x: Test24554) { +>test24554 : Symbol(test24554, Decl(accessorAccidentalCallDiagnostic.ts, 3, 1)) +>x : Symbol(x, Decl(accessorAccidentalCallDiagnostic.ts, 4, 19)) +>Test24554 : Symbol(Test24554, Decl(accessorAccidentalCallDiagnostic.ts, 0, 0)) + + return x.property(); +>x.property : Symbol(Test24554.property, Decl(accessorAccidentalCallDiagnostic.ts, 1, 17)) +>x : Symbol(x, Decl(accessorAccidentalCallDiagnostic.ts, 4, 19)) +>property : Symbol(Test24554.property, Decl(accessorAccidentalCallDiagnostic.ts, 1, 17)) +} + diff --git a/tests/baselines/reference/accessorAccidentalCallDiagnostic(target=es5).types b/tests/baselines/reference/accessorAccidentalCallDiagnostic(target=es5).types new file mode 100644 index 0000000000000..84013fe02eb17 --- /dev/null +++ b/tests/baselines/reference/accessorAccidentalCallDiagnostic(target=es5).types @@ -0,0 +1,31 @@ +//// [tests/cases/compiler/accessorAccidentalCallDiagnostic.ts] //// + +=== accessorAccidentalCallDiagnostic.ts === +// https://github.com/microsoft/TypeScript/issues/24554 +class Test24554 { +>Test24554 : Test24554 +> : ^^^^^^^^^ + + get property(): number { return 1; } +>property : number +> : ^^^^^^ +>1 : 1 +> : ^ +} +function test24554(x: Test24554) { +>test24554 : (x: Test24554) => any +> : ^ ^^ ^^^^^^^^ +>x : Test24554 +> : ^^^^^^^^^ + + return x.property(); +>x.property() : any +> : ^^^ +>x.property : number +> : ^^^^^^ +>x : Test24554 +> : ^^^^^^^^^ +>property : number +> : ^^^^^^ +} + diff --git a/tests/baselines/reference/accessorInAmbientContextES5(target=es2015).js b/tests/baselines/reference/accessorInAmbientContextES5(target=es2015).js new file mode 100644 index 0000000000000..dac427e6df2ad --- /dev/null +++ b/tests/baselines/reference/accessorInAmbientContextES5(target=es2015).js @@ -0,0 +1,75 @@ +//// [tests/cases/compiler/accessorInAmbientContextES5.ts] //// + +//// [accessorInAmbientContextES5.ts] +// Should allow accessor in ambient contexts even when targeting ES5 + +declare class AmbientClass { + accessor prop1: string; + static accessor prop2: number; + private accessor prop3: boolean; + private static accessor prop4: symbol; +} + +declare namespace AmbientNamespace { + class C { + accessor prop: string; + } +} + +// Should also work in .d.ts files (simulated with declare) +declare module "some-module" { + export class ExportedClass { + accessor value: any; + } +} + +// Regular class should still error when targeting ES5 +class RegularClass { + accessor shouldError: string; // Should still error +} + +//// [accessorInAmbientContextES5.js] +// Should allow accessor in ambient contexts even when targeting ES5 +var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) { + if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); + if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); + return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); +}; +var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) { + if (kind === "m") throw new TypeError("Private method is not writable"); + if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); + if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); + return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value; +}; +var _RegularClass_shouldError_accessor_storage; +// Regular class should still error when targeting ES5 +class RegularClass { + constructor() { + _RegularClass_shouldError_accessor_storage.set(this, void 0); + } + get shouldError() { return __classPrivateFieldGet(this, _RegularClass_shouldError_accessor_storage, "f"); } // Should still error + set shouldError(value) { __classPrivateFieldSet(this, _RegularClass_shouldError_accessor_storage, value, "f"); } +} +_RegularClass_shouldError_accessor_storage = new WeakMap(); + + +//// [accessorInAmbientContextES5.d.ts] +declare class AmbientClass { + accessor prop1: string; + static accessor prop2: number; + private accessor prop3; + private static accessor prop4; +} +declare namespace AmbientNamespace { + class C { + accessor prop: string; + } +} +declare module "some-module" { + class ExportedClass { + accessor value: any; + } +} +declare class RegularClass { + accessor shouldError: string; +} diff --git a/tests/baselines/reference/accessorInAmbientContextES5.symbols b/tests/baselines/reference/accessorInAmbientContextES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/accessorInAmbientContextES5.symbols rename to tests/baselines/reference/accessorInAmbientContextES5(target=es2015).symbols diff --git a/tests/baselines/reference/accessorInAmbientContextES5(target=es2015).types b/tests/baselines/reference/accessorInAmbientContextES5(target=es2015).types new file mode 100644 index 0000000000000..a1519de527550 --- /dev/null +++ b/tests/baselines/reference/accessorInAmbientContextES5(target=es2015).types @@ -0,0 +1,63 @@ +//// [tests/cases/compiler/accessorInAmbientContextES5.ts] //// + +=== accessorInAmbientContextES5.ts === +// Should allow accessor in ambient contexts even when targeting ES5 + +declare class AmbientClass { +>AmbientClass : AmbientClass +> : ^^^^^^^^^^^^ + + accessor prop1: string; +>prop1 : string +> : ^^^^^^ + + static accessor prop2: number; +>prop2 : number +> : ^^^^^^ + + private accessor prop3: boolean; +>prop3 : boolean +> : ^^^^^^^ + + private static accessor prop4: symbol; +>prop4 : symbol +> : ^^^^^^ +} + +declare namespace AmbientNamespace { +>AmbientNamespace : typeof AmbientNamespace +> : ^^^^^^^^^^^^^^^^^^^^^^^ + + class C { +>C : C +> : ^ + + accessor prop: string; +>prop : string +> : ^^^^^^ + } +} + +// Should also work in .d.ts files (simulated with declare) +declare module "some-module" { +>"some-module" : typeof import("some-module") +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + export class ExportedClass { +>ExportedClass : ExportedClass +> : ^^^^^^^^^^^^^ + + accessor value: any; +>value : any + } +} + +// Regular class should still error when targeting ES5 +class RegularClass { +>RegularClass : RegularClass +> : ^^^^^^^^^^^^ + + accessor shouldError: string; // Should still error +>shouldError : string +> : ^^^^^^ +} diff --git a/tests/baselines/reference/accessorInAmbientContextES5.errors.txt b/tests/baselines/reference/accessorInAmbientContextES5(target=es5).errors.txt similarity index 100% rename from tests/baselines/reference/accessorInAmbientContextES5.errors.txt rename to tests/baselines/reference/accessorInAmbientContextES5(target=es5).errors.txt diff --git a/tests/baselines/reference/accessorInAmbientContextES5.js b/tests/baselines/reference/accessorInAmbientContextES5(target=es5).js similarity index 100% rename from tests/baselines/reference/accessorInAmbientContextES5.js rename to tests/baselines/reference/accessorInAmbientContextES5(target=es5).js diff --git a/tests/baselines/reference/accessorInAmbientContextES5(target=es5).symbols b/tests/baselines/reference/accessorInAmbientContextES5(target=es5).symbols new file mode 100644 index 0000000000000..c37f91917d28c --- /dev/null +++ b/tests/baselines/reference/accessorInAmbientContextES5(target=es5).symbols @@ -0,0 +1,51 @@ +//// [tests/cases/compiler/accessorInAmbientContextES5.ts] //// + +=== accessorInAmbientContextES5.ts === +// Should allow accessor in ambient contexts even when targeting ES5 + +declare class AmbientClass { +>AmbientClass : Symbol(AmbientClass, Decl(accessorInAmbientContextES5.ts, 0, 0)) + + accessor prop1: string; +>prop1 : Symbol(AmbientClass.prop1, Decl(accessorInAmbientContextES5.ts, 2, 28)) + + static accessor prop2: number; +>prop2 : Symbol(AmbientClass.prop2, Decl(accessorInAmbientContextES5.ts, 3, 27)) + + private accessor prop3: boolean; +>prop3 : Symbol(AmbientClass.prop3, Decl(accessorInAmbientContextES5.ts, 4, 34)) + + private static accessor prop4: symbol; +>prop4 : Symbol(AmbientClass.prop4, Decl(accessorInAmbientContextES5.ts, 5, 36)) +} + +declare namespace AmbientNamespace { +>AmbientNamespace : Symbol(AmbientNamespace, Decl(accessorInAmbientContextES5.ts, 7, 1)) + + class C { +>C : Symbol(C, Decl(accessorInAmbientContextES5.ts, 9, 36)) + + accessor prop: string; +>prop : Symbol(C.prop, Decl(accessorInAmbientContextES5.ts, 10, 13)) + } +} + +// Should also work in .d.ts files (simulated with declare) +declare module "some-module" { +>"some-module" : Symbol("some-module", Decl(accessorInAmbientContextES5.ts, 13, 1)) + + export class ExportedClass { +>ExportedClass : Symbol(ExportedClass, Decl(accessorInAmbientContextES5.ts, 16, 30)) + + accessor value: any; +>value : Symbol(ExportedClass.value, Decl(accessorInAmbientContextES5.ts, 17, 32)) + } +} + +// Regular class should still error when targeting ES5 +class RegularClass { +>RegularClass : Symbol(RegularClass, Decl(accessorInAmbientContextES5.ts, 20, 1)) + + accessor shouldError: string; // Should still error +>shouldError : Symbol(RegularClass.shouldError, Decl(accessorInAmbientContextES5.ts, 23, 20)) +} diff --git a/tests/baselines/reference/accessorInAmbientContextES5.types b/tests/baselines/reference/accessorInAmbientContextES5(target=es5).types similarity index 100% rename from tests/baselines/reference/accessorInAmbientContextES5.types rename to tests/baselines/reference/accessorInAmbientContextES5(target=es5).types diff --git a/tests/baselines/reference/accessorParameterAccessibilityModifier.errors.txt b/tests/baselines/reference/accessorParameterAccessibilityModifier(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/accessorParameterAccessibilityModifier.errors.txt rename to tests/baselines/reference/accessorParameterAccessibilityModifier(target=es2015).errors.txt diff --git a/tests/baselines/reference/accessorParameterAccessibilityModifier(target=es2015).js b/tests/baselines/reference/accessorParameterAccessibilityModifier(target=es2015).js new file mode 100644 index 0000000000000..e930a48da4dae --- /dev/null +++ b/tests/baselines/reference/accessorParameterAccessibilityModifier(target=es2015).js @@ -0,0 +1,13 @@ +//// [tests/cases/compiler/accessorParameterAccessibilityModifier.ts] //// + +//// [accessorParameterAccessibilityModifier.ts] +class C { + set X(public v) { } + static set X(public v2) { } +} + +//// [accessorParameterAccessibilityModifier.js] +class C { + set X(v) { } + static set X(v2) { } +} diff --git a/tests/baselines/reference/accessorParameterAccessibilityModifier.symbols b/tests/baselines/reference/accessorParameterAccessibilityModifier(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/accessorParameterAccessibilityModifier.symbols rename to tests/baselines/reference/accessorParameterAccessibilityModifier(target=es2015).symbols diff --git a/tests/baselines/reference/accessorParameterAccessibilityModifier.types b/tests/baselines/reference/accessorParameterAccessibilityModifier(target=es2015).types similarity index 100% rename from tests/baselines/reference/accessorParameterAccessibilityModifier.types rename to tests/baselines/reference/accessorParameterAccessibilityModifier(target=es2015).types diff --git a/tests/baselines/reference/accessorParameterAccessibilityModifier(target=es5).errors.txt b/tests/baselines/reference/accessorParameterAccessibilityModifier(target=es5).errors.txt new file mode 100644 index 0000000000000..46de3d531dfb0 --- /dev/null +++ b/tests/baselines/reference/accessorParameterAccessibilityModifier(target=es5).errors.txt @@ -0,0 +1,13 @@ +accessorParameterAccessibilityModifier.ts(2,11): error TS2369: A parameter property is only allowed in a constructor implementation. +accessorParameterAccessibilityModifier.ts(3,18): error TS2369: A parameter property is only allowed in a constructor implementation. + + +==== accessorParameterAccessibilityModifier.ts (2 errors) ==== + class C { + set X(public v) { } + ~~~~~~~~ +!!! error TS2369: A parameter property is only allowed in a constructor implementation. + static set X(public v2) { } + ~~~~~~~~~ +!!! error TS2369: A parameter property is only allowed in a constructor implementation. + } \ No newline at end of file diff --git a/tests/baselines/reference/accessorParameterAccessibilityModifier.js b/tests/baselines/reference/accessorParameterAccessibilityModifier(target=es5).js similarity index 100% rename from tests/baselines/reference/accessorParameterAccessibilityModifier.js rename to tests/baselines/reference/accessorParameterAccessibilityModifier(target=es5).js diff --git a/tests/baselines/reference/accessorParameterAccessibilityModifier(target=es5).symbols b/tests/baselines/reference/accessorParameterAccessibilityModifier(target=es5).symbols new file mode 100644 index 0000000000000..19a35c15cd0dc --- /dev/null +++ b/tests/baselines/reference/accessorParameterAccessibilityModifier(target=es5).symbols @@ -0,0 +1,14 @@ +//// [tests/cases/compiler/accessorParameterAccessibilityModifier.ts] //// + +=== accessorParameterAccessibilityModifier.ts === +class C { +>C : Symbol(C, Decl(accessorParameterAccessibilityModifier.ts, 0, 0)) + + set X(public v) { } +>X : Symbol(C.X, Decl(accessorParameterAccessibilityModifier.ts, 0, 9)) +>v : Symbol(v, Decl(accessorParameterAccessibilityModifier.ts, 1, 10)) + + static set X(public v2) { } +>X : Symbol(C.X, Decl(accessorParameterAccessibilityModifier.ts, 1, 23)) +>v2 : Symbol(v2, Decl(accessorParameterAccessibilityModifier.ts, 2, 17)) +} diff --git a/tests/baselines/reference/accessorParameterAccessibilityModifier(target=es5).types b/tests/baselines/reference/accessorParameterAccessibilityModifier(target=es5).types new file mode 100644 index 0000000000000..8ce63cfb95f35 --- /dev/null +++ b/tests/baselines/reference/accessorParameterAccessibilityModifier(target=es5).types @@ -0,0 +1,19 @@ +//// [tests/cases/compiler/accessorParameterAccessibilityModifier.ts] //// + +=== accessorParameterAccessibilityModifier.ts === +class C { +>C : C +> : ^ + + set X(public v) { } +>X : any +> : ^^^ +>v : any +> : ^^^ + + static set X(public v2) { } +>X : any +> : ^^^ +>v2 : any +> : ^^^ +} diff --git a/tests/baselines/reference/accessorWithES5(target=es2015).js b/tests/baselines/reference/accessorWithES5(target=es2015).js new file mode 100644 index 0000000000000..6a4a1f425a403 --- /dev/null +++ b/tests/baselines/reference/accessorWithES5(target=es2015).js @@ -0,0 +1,38 @@ +//// [tests/cases/conformance/classes/propertyMemberDeclarations/memberAccessorDeclarations/accessorWithES5.ts] //// + +//// [accessorWithES5.ts] +class C { + get x() { + return 1; + } +} + +class D { + set x(v) { + } +} + +var x = { + get a() { return 1 } +} + +var y = { + set b(v) { } +} + +//// [accessorWithES5.js] +class C { + get x() { + return 1; + } +} +class D { + set x(v) { + } +} +var x = { + get a() { return 1; } +}; +var y = { + set b(v) { } +}; diff --git a/tests/baselines/reference/accessorWithES5.symbols b/tests/baselines/reference/accessorWithES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/accessorWithES5.symbols rename to tests/baselines/reference/accessorWithES5(target=es2015).symbols diff --git a/tests/baselines/reference/accessorWithES5.types b/tests/baselines/reference/accessorWithES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/accessorWithES5.types rename to tests/baselines/reference/accessorWithES5(target=es2015).types diff --git a/tests/baselines/reference/accessorWithES5.js b/tests/baselines/reference/accessorWithES5(target=es5).js similarity index 100% rename from tests/baselines/reference/accessorWithES5.js rename to tests/baselines/reference/accessorWithES5(target=es5).js diff --git a/tests/baselines/reference/accessorWithES5(target=es5).symbols b/tests/baselines/reference/accessorWithES5(target=es5).symbols new file mode 100644 index 0000000000000..0a7e2176a58ca --- /dev/null +++ b/tests/baselines/reference/accessorWithES5(target=es5).symbols @@ -0,0 +1,36 @@ +//// [tests/cases/conformance/classes/propertyMemberDeclarations/memberAccessorDeclarations/accessorWithES5.ts] //// + +=== accessorWithES5.ts === +class C { +>C : Symbol(C, Decl(accessorWithES5.ts, 0, 0)) + + get x() { +>x : Symbol(C.x, Decl(accessorWithES5.ts, 0, 9)) + + return 1; + } +} + +class D { +>D : Symbol(D, Decl(accessorWithES5.ts, 4, 1)) + + set x(v) { +>x : Symbol(D.x, Decl(accessorWithES5.ts, 6, 9)) +>v : Symbol(v, Decl(accessorWithES5.ts, 7, 10)) + } +} + +var x = { +>x : Symbol(x, Decl(accessorWithES5.ts, 11, 3)) + + get a() { return 1 } +>a : Symbol(a, Decl(accessorWithES5.ts, 11, 9)) +} + +var y = { +>y : Symbol(y, Decl(accessorWithES5.ts, 15, 3)) + + set b(v) { } +>b : Symbol(b, Decl(accessorWithES5.ts, 15, 9)) +>v : Symbol(v, Decl(accessorWithES5.ts, 16, 10)) +} diff --git a/tests/baselines/reference/accessorWithES5(target=es5).types b/tests/baselines/reference/accessorWithES5(target=es5).types new file mode 100644 index 0000000000000..9c1950168feb6 --- /dev/null +++ b/tests/baselines/reference/accessorWithES5(target=es5).types @@ -0,0 +1,50 @@ +//// [tests/cases/conformance/classes/propertyMemberDeclarations/memberAccessorDeclarations/accessorWithES5.ts] //// + +=== accessorWithES5.ts === +class C { +>C : C +> : ^ + + get x() { +>x : number +> : ^^^^^^ + + return 1; +>1 : 1 +> : ^ + } +} + +class D { +>D : D +> : ^ + + set x(v) { +>x : any +>v : any + } +} + +var x = { +>x : { readonly a: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>{ get a() { return 1 }} : { readonly a: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^ + + get a() { return 1 } +>a : number +> : ^^^^^^ +>1 : 1 +> : ^ +} + +var y = { +>y : { b: any; } +> : ^^^^^^^^^^^ +>{ set b(v) { }} : { b: any; } +> : ^^^^^^^^^^^ + + set b(v) { } +>b : any +>v : any +} diff --git a/tests/baselines/reference/accessorWithInitializer.errors.txt b/tests/baselines/reference/accessorWithInitializer(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/accessorWithInitializer.errors.txt rename to tests/baselines/reference/accessorWithInitializer(target=es2015).errors.txt diff --git a/tests/baselines/reference/accessorWithInitializer(target=es2015).js b/tests/baselines/reference/accessorWithInitializer(target=es2015).js new file mode 100644 index 0000000000000..db9477e948950 --- /dev/null +++ b/tests/baselines/reference/accessorWithInitializer(target=es2015).js @@ -0,0 +1,13 @@ +//// [tests/cases/compiler/accessorWithInitializer.ts] //// + +//// [accessorWithInitializer.ts] +class C { + set X(v = 0) { } + static set X(v2 = 0) { } +} + +//// [accessorWithInitializer.js] +class C { + set X(v = 0) { } + static set X(v2 = 0) { } +} diff --git a/tests/baselines/reference/accessorWithInitializer.symbols b/tests/baselines/reference/accessorWithInitializer(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/accessorWithInitializer.symbols rename to tests/baselines/reference/accessorWithInitializer(target=es2015).symbols diff --git a/tests/baselines/reference/accessorWithInitializer.types b/tests/baselines/reference/accessorWithInitializer(target=es2015).types similarity index 100% rename from tests/baselines/reference/accessorWithInitializer.types rename to tests/baselines/reference/accessorWithInitializer(target=es2015).types diff --git a/tests/baselines/reference/accessorWithInitializer(target=es5).errors.txt b/tests/baselines/reference/accessorWithInitializer(target=es5).errors.txt new file mode 100644 index 0000000000000..2a1b64da30ac4 --- /dev/null +++ b/tests/baselines/reference/accessorWithInitializer(target=es5).errors.txt @@ -0,0 +1,13 @@ +accessorWithInitializer.ts(2,9): error TS1052: A 'set' accessor parameter cannot have an initializer. +accessorWithInitializer.ts(3,16): error TS1052: A 'set' accessor parameter cannot have an initializer. + + +==== accessorWithInitializer.ts (2 errors) ==== + class C { + set X(v = 0) { } + ~ +!!! error TS1052: A 'set' accessor parameter cannot have an initializer. + static set X(v2 = 0) { } + ~ +!!! error TS1052: A 'set' accessor parameter cannot have an initializer. + } \ No newline at end of file diff --git a/tests/baselines/reference/accessorWithInitializer.js b/tests/baselines/reference/accessorWithInitializer(target=es5).js similarity index 100% rename from tests/baselines/reference/accessorWithInitializer.js rename to tests/baselines/reference/accessorWithInitializer(target=es5).js diff --git a/tests/baselines/reference/accessorWithInitializer(target=es5).symbols b/tests/baselines/reference/accessorWithInitializer(target=es5).symbols new file mode 100644 index 0000000000000..82f61f90c7312 --- /dev/null +++ b/tests/baselines/reference/accessorWithInitializer(target=es5).symbols @@ -0,0 +1,14 @@ +//// [tests/cases/compiler/accessorWithInitializer.ts] //// + +=== accessorWithInitializer.ts === +class C { +>C : Symbol(C, Decl(accessorWithInitializer.ts, 0, 0)) + + set X(v = 0) { } +>X : Symbol(C.X, Decl(accessorWithInitializer.ts, 0, 9)) +>v : Symbol(v, Decl(accessorWithInitializer.ts, 1, 10)) + + static set X(v2 = 0) { } +>X : Symbol(C.X, Decl(accessorWithInitializer.ts, 1, 20)) +>v2 : Symbol(v2, Decl(accessorWithInitializer.ts, 2, 17)) +} diff --git a/tests/baselines/reference/accessorWithInitializer(target=es5).types b/tests/baselines/reference/accessorWithInitializer(target=es5).types new file mode 100644 index 0000000000000..e6b53f8cbcc0d --- /dev/null +++ b/tests/baselines/reference/accessorWithInitializer(target=es5).types @@ -0,0 +1,23 @@ +//// [tests/cases/compiler/accessorWithInitializer.ts] //// + +=== accessorWithInitializer.ts === +class C { +>C : C +> : ^ + + set X(v = 0) { } +>X : any +> : ^^^ +>v : number +> : ^^^^^^ +>0 : 0 +> : ^ + + static set X(v2 = 0) { } +>X : any +> : ^^^ +>v2 : number +> : ^^^^^^ +>0 : 0 +> : ^ +} diff --git a/tests/baselines/reference/accessorWithLineTerminator(target=es2015).js b/tests/baselines/reference/accessorWithLineTerminator(target=es2015).js new file mode 100644 index 0000000000000..632c5ac17d7cc --- /dev/null +++ b/tests/baselines/reference/accessorWithLineTerminator(target=es2015).js @@ -0,0 +1,16 @@ +//// [tests/cases/compiler/accessorWithLineTerminator.ts] //// + +//// [accessorWithLineTerminator.ts] +class C { + get + x() { return 1 } + + set + x(v) { } +} + +//// [accessorWithLineTerminator.js] +class C { + get x() { return 1; } + set x(v) { } +} diff --git a/tests/baselines/reference/accessorWithLineTerminator.symbols b/tests/baselines/reference/accessorWithLineTerminator(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/accessorWithLineTerminator.symbols rename to tests/baselines/reference/accessorWithLineTerminator(target=es2015).symbols diff --git a/tests/baselines/reference/accessorWithLineTerminator.types b/tests/baselines/reference/accessorWithLineTerminator(target=es2015).types similarity index 100% rename from tests/baselines/reference/accessorWithLineTerminator.types rename to tests/baselines/reference/accessorWithLineTerminator(target=es2015).types diff --git a/tests/baselines/reference/accessorWithLineTerminator.js b/tests/baselines/reference/accessorWithLineTerminator(target=es5).js similarity index 100% rename from tests/baselines/reference/accessorWithLineTerminator.js rename to tests/baselines/reference/accessorWithLineTerminator(target=es5).js diff --git a/tests/baselines/reference/accessorWithLineTerminator(target=es5).symbols b/tests/baselines/reference/accessorWithLineTerminator(target=es5).symbols new file mode 100644 index 0000000000000..7af2827dfb9ec --- /dev/null +++ b/tests/baselines/reference/accessorWithLineTerminator(target=es5).symbols @@ -0,0 +1,15 @@ +//// [tests/cases/compiler/accessorWithLineTerminator.ts] //// + +=== accessorWithLineTerminator.ts === +class C { +>C : Symbol(C, Decl(accessorWithLineTerminator.ts, 0, 0)) + + get + x() { return 1 } +>x : Symbol(C.x, Decl(accessorWithLineTerminator.ts, 0, 9), Decl(accessorWithLineTerminator.ts, 2, 20)) + + set + x(v) { } +>x : Symbol(C.x, Decl(accessorWithLineTerminator.ts, 0, 9), Decl(accessorWithLineTerminator.ts, 2, 20)) +>v : Symbol(v, Decl(accessorWithLineTerminator.ts, 5, 6)) +} diff --git a/tests/baselines/reference/accessorWithLineTerminator(target=es5).types b/tests/baselines/reference/accessorWithLineTerminator(target=es5).types new file mode 100644 index 0000000000000..368c118965b2c --- /dev/null +++ b/tests/baselines/reference/accessorWithLineTerminator(target=es5).types @@ -0,0 +1,21 @@ +//// [tests/cases/compiler/accessorWithLineTerminator.ts] //// + +=== accessorWithLineTerminator.ts === +class C { +>C : C +> : ^ + + get + x() { return 1 } +>x : number +> : ^^^^^^ +>1 : 1 +> : ^ + + set + x(v) { } +>x : number +> : ^^^^^^ +>v : number +> : ^^^^^^ +} diff --git a/tests/baselines/reference/accessorWithMismatchedAccessibilityModifiers(target=es2015).js b/tests/baselines/reference/accessorWithMismatchedAccessibilityModifiers(target=es2015).js new file mode 100644 index 0000000000000..de837ed885091 --- /dev/null +++ b/tests/baselines/reference/accessorWithMismatchedAccessibilityModifiers(target=es2015).js @@ -0,0 +1,64 @@ +//// [tests/cases/conformance/classes/propertyMemberDeclarations/memberAccessorDeclarations/accessorWithMismatchedAccessibilityModifiers.ts] //// + +//// [accessorWithMismatchedAccessibilityModifiers.ts] +class C { + get x() { + return 1; + } + private set x(v) { + } +} + +class D { + protected get x() { + return 1; + } + private set x(v) { + } +} + +class E { + protected set x(v) { + } + get x() { + return 1; + } +} + +class F { + protected static set x(v) { + } + static get x() { + return 1; + } +} + +//// [accessorWithMismatchedAccessibilityModifiers.js] +class C { + get x() { + return 1; + } + set x(v) { + } +} +class D { + get x() { + return 1; + } + set x(v) { + } +} +class E { + set x(v) { + } + get x() { + return 1; + } +} +class F { + static set x(v) { + } + static get x() { + return 1; + } +} diff --git a/tests/baselines/reference/accessorWithMismatchedAccessibilityModifiers.symbols b/tests/baselines/reference/accessorWithMismatchedAccessibilityModifiers(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/accessorWithMismatchedAccessibilityModifiers.symbols rename to tests/baselines/reference/accessorWithMismatchedAccessibilityModifiers(target=es2015).symbols diff --git a/tests/baselines/reference/accessorWithMismatchedAccessibilityModifiers.types b/tests/baselines/reference/accessorWithMismatchedAccessibilityModifiers(target=es2015).types similarity index 100% rename from tests/baselines/reference/accessorWithMismatchedAccessibilityModifiers.types rename to tests/baselines/reference/accessorWithMismatchedAccessibilityModifiers(target=es2015).types diff --git a/tests/baselines/reference/accessorWithMismatchedAccessibilityModifiers.js b/tests/baselines/reference/accessorWithMismatchedAccessibilityModifiers(target=es5).js similarity index 100% rename from tests/baselines/reference/accessorWithMismatchedAccessibilityModifiers.js rename to tests/baselines/reference/accessorWithMismatchedAccessibilityModifiers(target=es5).js diff --git a/tests/baselines/reference/accessorWithMismatchedAccessibilityModifiers(target=es5).symbols b/tests/baselines/reference/accessorWithMismatchedAccessibilityModifiers(target=es5).symbols new file mode 100644 index 0000000000000..6d2dabf4cda7f --- /dev/null +++ b/tests/baselines/reference/accessorWithMismatchedAccessibilityModifiers(target=es5).symbols @@ -0,0 +1,58 @@ +//// [tests/cases/conformance/classes/propertyMemberDeclarations/memberAccessorDeclarations/accessorWithMismatchedAccessibilityModifiers.ts] //// + +=== accessorWithMismatchedAccessibilityModifiers.ts === +class C { +>C : Symbol(C, Decl(accessorWithMismatchedAccessibilityModifiers.ts, 0, 0)) + + get x() { +>x : Symbol(C.x, Decl(accessorWithMismatchedAccessibilityModifiers.ts, 0, 9), Decl(accessorWithMismatchedAccessibilityModifiers.ts, 3, 5)) + + return 1; + } + private set x(v) { +>x : Symbol(C.x, Decl(accessorWithMismatchedAccessibilityModifiers.ts, 0, 9), Decl(accessorWithMismatchedAccessibilityModifiers.ts, 3, 5)) +>v : Symbol(v, Decl(accessorWithMismatchedAccessibilityModifiers.ts, 4, 18)) + } +} + +class D { +>D : Symbol(D, Decl(accessorWithMismatchedAccessibilityModifiers.ts, 6, 1)) + + protected get x() { +>x : Symbol(D.x, Decl(accessorWithMismatchedAccessibilityModifiers.ts, 8, 9), Decl(accessorWithMismatchedAccessibilityModifiers.ts, 11, 5)) + + return 1; + } + private set x(v) { +>x : Symbol(D.x, Decl(accessorWithMismatchedAccessibilityModifiers.ts, 8, 9), Decl(accessorWithMismatchedAccessibilityModifiers.ts, 11, 5)) +>v : Symbol(v, Decl(accessorWithMismatchedAccessibilityModifiers.ts, 12, 18)) + } +} + +class E { +>E : Symbol(E, Decl(accessorWithMismatchedAccessibilityModifiers.ts, 14, 1)) + + protected set x(v) { +>x : Symbol(E.x, Decl(accessorWithMismatchedAccessibilityModifiers.ts, 16, 9), Decl(accessorWithMismatchedAccessibilityModifiers.ts, 18, 5)) +>v : Symbol(v, Decl(accessorWithMismatchedAccessibilityModifiers.ts, 17, 20)) + } + get x() { +>x : Symbol(E.x, Decl(accessorWithMismatchedAccessibilityModifiers.ts, 16, 9), Decl(accessorWithMismatchedAccessibilityModifiers.ts, 18, 5)) + + return 1; + } +} + +class F { +>F : Symbol(F, Decl(accessorWithMismatchedAccessibilityModifiers.ts, 22, 1)) + + protected static set x(v) { +>x : Symbol(F.x, Decl(accessorWithMismatchedAccessibilityModifiers.ts, 24, 9), Decl(accessorWithMismatchedAccessibilityModifiers.ts, 26, 5)) +>v : Symbol(v, Decl(accessorWithMismatchedAccessibilityModifiers.ts, 25, 27)) + } + static get x() { +>x : Symbol(F.x, Decl(accessorWithMismatchedAccessibilityModifiers.ts, 24, 9), Decl(accessorWithMismatchedAccessibilityModifiers.ts, 26, 5)) + + return 1; + } +} diff --git a/tests/baselines/reference/accessorWithMismatchedAccessibilityModifiers(target=es5).types b/tests/baselines/reference/accessorWithMismatchedAccessibilityModifiers(target=es5).types new file mode 100644 index 0000000000000..881e5528ac789 --- /dev/null +++ b/tests/baselines/reference/accessorWithMismatchedAccessibilityModifiers(target=es5).types @@ -0,0 +1,82 @@ +//// [tests/cases/conformance/classes/propertyMemberDeclarations/memberAccessorDeclarations/accessorWithMismatchedAccessibilityModifiers.ts] //// + +=== accessorWithMismatchedAccessibilityModifiers.ts === +class C { +>C : C +> : ^ + + get x() { +>x : number +> : ^^^^^^ + + return 1; +>1 : 1 +> : ^ + } + private set x(v) { +>x : number +> : ^^^^^^ +>v : number +> : ^^^^^^ + } +} + +class D { +>D : D +> : ^ + + protected get x() { +>x : number +> : ^^^^^^ + + return 1; +>1 : 1 +> : ^ + } + private set x(v) { +>x : number +> : ^^^^^^ +>v : number +> : ^^^^^^ + } +} + +class E { +>E : E +> : ^ + + protected set x(v) { +>x : number +> : ^^^^^^ +>v : number +> : ^^^^^^ + } + get x() { +>x : number +> : ^^^^^^ + + return 1; +>1 : 1 +> : ^ + } +} + +class F { +>F : F +> : ^ + + protected static set x(v) { +>x : number +> : ^^^^^^ +>v : number +> : ^^^^^^ + } + static get x() { +>x : number +> : ^^^^^^ + + return 1; +>1 : 1 +> : ^ + } +} diff --git a/tests/baselines/reference/accessorWithRestParam.errors.txt b/tests/baselines/reference/accessorWithRestParam(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/accessorWithRestParam.errors.txt rename to tests/baselines/reference/accessorWithRestParam(target=es2015).errors.txt diff --git a/tests/baselines/reference/accessorWithRestParam(target=es2015).js b/tests/baselines/reference/accessorWithRestParam(target=es2015).js new file mode 100644 index 0000000000000..894e8420ad1da --- /dev/null +++ b/tests/baselines/reference/accessorWithRestParam(target=es2015).js @@ -0,0 +1,13 @@ +//// [tests/cases/compiler/accessorWithRestParam.ts] //// + +//// [accessorWithRestParam.ts] +class C { + set X(...v) { } + static set X(...v2) { } +} + +//// [accessorWithRestParam.js] +class C { + set X(...v) { } + static set X(...v2) { } +} diff --git a/tests/baselines/reference/accessorWithRestParam.symbols b/tests/baselines/reference/accessorWithRestParam(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/accessorWithRestParam.symbols rename to tests/baselines/reference/accessorWithRestParam(target=es2015).symbols diff --git a/tests/baselines/reference/accessorWithRestParam.types b/tests/baselines/reference/accessorWithRestParam(target=es2015).types similarity index 100% rename from tests/baselines/reference/accessorWithRestParam.types rename to tests/baselines/reference/accessorWithRestParam(target=es2015).types diff --git a/tests/baselines/reference/accessorWithRestParam(target=es5).errors.txt b/tests/baselines/reference/accessorWithRestParam(target=es5).errors.txt new file mode 100644 index 0000000000000..8e94f0ee95af0 --- /dev/null +++ b/tests/baselines/reference/accessorWithRestParam(target=es5).errors.txt @@ -0,0 +1,13 @@ +accessorWithRestParam.ts(2,11): error TS1053: A 'set' accessor cannot have rest parameter. +accessorWithRestParam.ts(3,18): error TS1053: A 'set' accessor cannot have rest parameter. + + +==== accessorWithRestParam.ts (2 errors) ==== + class C { + set X(...v) { } + ~~~ +!!! error TS1053: A 'set' accessor cannot have rest parameter. + static set X(...v2) { } + ~~~ +!!! error TS1053: A 'set' accessor cannot have rest parameter. + } \ No newline at end of file diff --git a/tests/baselines/reference/accessorWithRestParam.js b/tests/baselines/reference/accessorWithRestParam(target=es5).js similarity index 100% rename from tests/baselines/reference/accessorWithRestParam.js rename to tests/baselines/reference/accessorWithRestParam(target=es5).js diff --git a/tests/baselines/reference/accessorWithRestParam(target=es5).symbols b/tests/baselines/reference/accessorWithRestParam(target=es5).symbols new file mode 100644 index 0000000000000..98944c336b277 --- /dev/null +++ b/tests/baselines/reference/accessorWithRestParam(target=es5).symbols @@ -0,0 +1,14 @@ +//// [tests/cases/compiler/accessorWithRestParam.ts] //// + +=== accessorWithRestParam.ts === +class C { +>C : Symbol(C, Decl(accessorWithRestParam.ts, 0, 0)) + + set X(...v) { } +>X : Symbol(C.X, Decl(accessorWithRestParam.ts, 0, 9)) +>v : Symbol(v, Decl(accessorWithRestParam.ts, 1, 10)) + + static set X(...v2) { } +>X : Symbol(C.X, Decl(accessorWithRestParam.ts, 1, 19)) +>v2 : Symbol(v2, Decl(accessorWithRestParam.ts, 2, 17)) +} diff --git a/tests/baselines/reference/accessorWithRestParam(target=es5).types b/tests/baselines/reference/accessorWithRestParam(target=es5).types new file mode 100644 index 0000000000000..a2dc42967e245 --- /dev/null +++ b/tests/baselines/reference/accessorWithRestParam(target=es5).types @@ -0,0 +1,19 @@ +//// [tests/cases/compiler/accessorWithRestParam.ts] //// + +=== accessorWithRestParam.ts === +class C { +>C : C +> : ^ + + set X(...v) { } +>X : any +> : ^^^ +>v : any[] +> : ^^^^^ + + static set X(...v2) { } +>X : any +> : ^^^ +>v2 : any[] +> : ^^^^^ +} diff --git a/tests/baselines/reference/accessorWithoutBody1.errors.txt b/tests/baselines/reference/accessorWithoutBody1(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/accessorWithoutBody1.errors.txt rename to tests/baselines/reference/accessorWithoutBody1(target=es2015).errors.txt diff --git a/tests/baselines/reference/accessorWithoutBody1.js b/tests/baselines/reference/accessorWithoutBody1(target=es2015).js similarity index 100% rename from tests/baselines/reference/accessorWithoutBody1.js rename to tests/baselines/reference/accessorWithoutBody1(target=es2015).js diff --git a/tests/baselines/reference/accessorWithoutBody1.symbols b/tests/baselines/reference/accessorWithoutBody1(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/accessorWithoutBody1.symbols rename to tests/baselines/reference/accessorWithoutBody1(target=es2015).symbols diff --git a/tests/baselines/reference/accessorWithoutBody1.types b/tests/baselines/reference/accessorWithoutBody1(target=es2015).types similarity index 100% rename from tests/baselines/reference/accessorWithoutBody1.types rename to tests/baselines/reference/accessorWithoutBody1(target=es2015).types diff --git a/tests/baselines/reference/accessorWithoutBody1(target=es5).errors.txt b/tests/baselines/reference/accessorWithoutBody1(target=es5).errors.txt new file mode 100644 index 0000000000000..da7b29fe6b64e --- /dev/null +++ b/tests/baselines/reference/accessorWithoutBody1(target=es5).errors.txt @@ -0,0 +1,7 @@ +accessorWithoutBody1.ts(1,19): error TS1005: '{' expected. + + +==== accessorWithoutBody1.ts (1 errors) ==== + var v = { get foo() } + ~ +!!! error TS1005: '{' expected. \ No newline at end of file diff --git a/tests/baselines/reference/accessorWithoutBody1(target=es5).js b/tests/baselines/reference/accessorWithoutBody1(target=es5).js new file mode 100644 index 0000000000000..930cd3e6559b3 --- /dev/null +++ b/tests/baselines/reference/accessorWithoutBody1(target=es5).js @@ -0,0 +1,7 @@ +//// [tests/cases/compiler/accessorWithoutBody1.ts] //// + +//// [accessorWithoutBody1.ts] +var v = { get foo() } + +//// [accessorWithoutBody1.js] +var v = { get foo() { } }; diff --git a/tests/baselines/reference/accessorWithoutBody1(target=es5).symbols b/tests/baselines/reference/accessorWithoutBody1(target=es5).symbols new file mode 100644 index 0000000000000..288e4fa6ad87f --- /dev/null +++ b/tests/baselines/reference/accessorWithoutBody1(target=es5).symbols @@ -0,0 +1,7 @@ +//// [tests/cases/compiler/accessorWithoutBody1.ts] //// + +=== accessorWithoutBody1.ts === +var v = { get foo() } +>v : Symbol(v, Decl(accessorWithoutBody1.ts, 0, 3)) +>foo : Symbol(foo, Decl(accessorWithoutBody1.ts, 0, 9)) + diff --git a/tests/baselines/reference/accessorWithoutBody1(target=es5).types b/tests/baselines/reference/accessorWithoutBody1(target=es5).types new file mode 100644 index 0000000000000..c2035bdba9c30 --- /dev/null +++ b/tests/baselines/reference/accessorWithoutBody1(target=es5).types @@ -0,0 +1,11 @@ +//// [tests/cases/compiler/accessorWithoutBody1.ts] //// + +=== accessorWithoutBody1.ts === +var v = { get foo() } +>v : { readonly foo: any; } +> : ^^^^^^^^^^^^^^^^^^^^^^ +>{ get foo() } : { readonly foo: any; } +> : ^^^^^^^^^^^^^^^^^^^^^^ +>foo : any +> : ^^^ + diff --git a/tests/baselines/reference/accessorWithoutBody2.errors.txt b/tests/baselines/reference/accessorWithoutBody2(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/accessorWithoutBody2.errors.txt rename to tests/baselines/reference/accessorWithoutBody2(target=es2015).errors.txt diff --git a/tests/baselines/reference/accessorWithoutBody2.js b/tests/baselines/reference/accessorWithoutBody2(target=es2015).js similarity index 100% rename from tests/baselines/reference/accessorWithoutBody2.js rename to tests/baselines/reference/accessorWithoutBody2(target=es2015).js diff --git a/tests/baselines/reference/accessorWithoutBody2.symbols b/tests/baselines/reference/accessorWithoutBody2(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/accessorWithoutBody2.symbols rename to tests/baselines/reference/accessorWithoutBody2(target=es2015).symbols diff --git a/tests/baselines/reference/accessorWithoutBody2.types b/tests/baselines/reference/accessorWithoutBody2(target=es2015).types similarity index 100% rename from tests/baselines/reference/accessorWithoutBody2.types rename to tests/baselines/reference/accessorWithoutBody2(target=es2015).types diff --git a/tests/baselines/reference/accessorWithoutBody2(target=es5).errors.txt b/tests/baselines/reference/accessorWithoutBody2(target=es5).errors.txt new file mode 100644 index 0000000000000..596da62347794 --- /dev/null +++ b/tests/baselines/reference/accessorWithoutBody2(target=es5).errors.txt @@ -0,0 +1,7 @@ +accessorWithoutBody2.ts(1,20): error TS1005: '{' expected. + + +==== accessorWithoutBody2.ts (1 errors) ==== + var v = { set foo(a) } + ~ +!!! error TS1005: '{' expected. \ No newline at end of file diff --git a/tests/baselines/reference/accessorWithoutBody2(target=es5).js b/tests/baselines/reference/accessorWithoutBody2(target=es5).js new file mode 100644 index 0000000000000..39a3bfd02dd40 --- /dev/null +++ b/tests/baselines/reference/accessorWithoutBody2(target=es5).js @@ -0,0 +1,7 @@ +//// [tests/cases/compiler/accessorWithoutBody2.ts] //// + +//// [accessorWithoutBody2.ts] +var v = { set foo(a) } + +//// [accessorWithoutBody2.js] +var v = { set foo(a) { } }; diff --git a/tests/baselines/reference/accessorWithoutBody2(target=es5).symbols b/tests/baselines/reference/accessorWithoutBody2(target=es5).symbols new file mode 100644 index 0000000000000..67f64ebbda474 --- /dev/null +++ b/tests/baselines/reference/accessorWithoutBody2(target=es5).symbols @@ -0,0 +1,8 @@ +//// [tests/cases/compiler/accessorWithoutBody2.ts] //// + +=== accessorWithoutBody2.ts === +var v = { set foo(a) } +>v : Symbol(v, Decl(accessorWithoutBody2.ts, 0, 3)) +>foo : Symbol(foo, Decl(accessorWithoutBody2.ts, 0, 9)) +>a : Symbol(a, Decl(accessorWithoutBody2.ts, 0, 18)) + diff --git a/tests/baselines/reference/accessorWithoutBody2(target=es5).types b/tests/baselines/reference/accessorWithoutBody2(target=es5).types new file mode 100644 index 0000000000000..1cb420bd5aafc --- /dev/null +++ b/tests/baselines/reference/accessorWithoutBody2(target=es5).types @@ -0,0 +1,13 @@ +//// [tests/cases/compiler/accessorWithoutBody2.ts] //// + +=== accessorWithoutBody2.ts === +var v = { set foo(a) } +>v : { foo: any; } +> : ^^^^^^^^^^^^^ +>{ set foo(a) } : { foo: any; } +> : ^^^^^^^^^^^^^ +>foo : any +> : ^^^ +>a : any +> : ^^^ + diff --git a/tests/baselines/reference/accessorsInAmbientContext.errors.txt b/tests/baselines/reference/accessorsInAmbientContext(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/accessorsInAmbientContext.errors.txt rename to tests/baselines/reference/accessorsInAmbientContext(target=es2015).errors.txt diff --git a/tests/baselines/reference/accessorsInAmbientContext.js b/tests/baselines/reference/accessorsInAmbientContext(target=es2015).js similarity index 100% rename from tests/baselines/reference/accessorsInAmbientContext.js rename to tests/baselines/reference/accessorsInAmbientContext(target=es2015).js diff --git a/tests/baselines/reference/accessorsInAmbientContext.symbols b/tests/baselines/reference/accessorsInAmbientContext(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/accessorsInAmbientContext.symbols rename to tests/baselines/reference/accessorsInAmbientContext(target=es2015).symbols diff --git a/tests/baselines/reference/accessorsInAmbientContext.types b/tests/baselines/reference/accessorsInAmbientContext(target=es2015).types similarity index 100% rename from tests/baselines/reference/accessorsInAmbientContext.types rename to tests/baselines/reference/accessorsInAmbientContext(target=es2015).types diff --git a/tests/baselines/reference/accessorsInAmbientContext(target=es5).errors.txt b/tests/baselines/reference/accessorsInAmbientContext(target=es5).errors.txt new file mode 100644 index 0000000000000..9a3e5a8c3690a --- /dev/null +++ b/tests/baselines/reference/accessorsInAmbientContext(target=es5).errors.txt @@ -0,0 +1,44 @@ +accessorsInAmbientContext.ts(3,17): error TS1183: An implementation cannot be declared in ambient contexts. +accessorsInAmbientContext.ts(4,18): error TS1183: An implementation cannot be declared in ambient contexts. +accessorsInAmbientContext.ts(6,24): error TS1183: An implementation cannot be declared in ambient contexts. +accessorsInAmbientContext.ts(7,25): error TS1183: An implementation cannot be declared in ambient contexts. +accessorsInAmbientContext.ts(12,13): error TS1183: An implementation cannot be declared in ambient contexts. +accessorsInAmbientContext.ts(13,14): error TS1183: An implementation cannot be declared in ambient contexts. +accessorsInAmbientContext.ts(15,20): error TS1183: An implementation cannot be declared in ambient contexts. +accessorsInAmbientContext.ts(16,21): error TS1183: An implementation cannot be declared in ambient contexts. + + +==== accessorsInAmbientContext.ts (8 errors) ==== + declare namespace M { + class C { + get X() { return 1; } + ~ +!!! error TS1183: An implementation cannot be declared in ambient contexts. + set X(v) { } + ~ +!!! error TS1183: An implementation cannot be declared in ambient contexts. + + static get Y() { return 1; } + ~ +!!! error TS1183: An implementation cannot be declared in ambient contexts. + static set Y(v) { } + ~ +!!! error TS1183: An implementation cannot be declared in ambient contexts. + } + } + + declare class C { + get X() { return 1; } + ~ +!!! error TS1183: An implementation cannot be declared in ambient contexts. + set X(v) { } + ~ +!!! error TS1183: An implementation cannot be declared in ambient contexts. + + static get Y() { return 1; } + ~ +!!! error TS1183: An implementation cannot be declared in ambient contexts. + static set Y(v) { } + ~ +!!! error TS1183: An implementation cannot be declared in ambient contexts. + } \ No newline at end of file diff --git a/tests/baselines/reference/accessorsInAmbientContext(target=es5).js b/tests/baselines/reference/accessorsInAmbientContext(target=es5).js new file mode 100644 index 0000000000000..73122973c5b3c --- /dev/null +++ b/tests/baselines/reference/accessorsInAmbientContext(target=es5).js @@ -0,0 +1,22 @@ +//// [tests/cases/compiler/accessorsInAmbientContext.ts] //// + +//// [accessorsInAmbientContext.ts] +declare namespace M { + class C { + get X() { return 1; } + set X(v) { } + + static get Y() { return 1; } + static set Y(v) { } + } +} + +declare class C { + get X() { return 1; } + set X(v) { } + + static get Y() { return 1; } + static set Y(v) { } +} + +//// [accessorsInAmbientContext.js] diff --git a/tests/baselines/reference/accessorsInAmbientContext(target=es5).symbols b/tests/baselines/reference/accessorsInAmbientContext(target=es5).symbols new file mode 100644 index 0000000000000..57281be16161e --- /dev/null +++ b/tests/baselines/reference/accessorsInAmbientContext(target=es5).symbols @@ -0,0 +1,42 @@ +//// [tests/cases/compiler/accessorsInAmbientContext.ts] //// + +=== accessorsInAmbientContext.ts === +declare namespace M { +>M : Symbol(M, Decl(accessorsInAmbientContext.ts, 0, 0)) + + class C { +>C : Symbol(C, Decl(accessorsInAmbientContext.ts, 0, 21)) + + get X() { return 1; } +>X : Symbol(C.X, Decl(accessorsInAmbientContext.ts, 1, 13), Decl(accessorsInAmbientContext.ts, 2, 29)) + + set X(v) { } +>X : Symbol(C.X, Decl(accessorsInAmbientContext.ts, 1, 13), Decl(accessorsInAmbientContext.ts, 2, 29)) +>v : Symbol(v, Decl(accessorsInAmbientContext.ts, 3, 14)) + + static get Y() { return 1; } +>Y : Symbol(C.Y, Decl(accessorsInAmbientContext.ts, 3, 20), Decl(accessorsInAmbientContext.ts, 5, 36)) + + static set Y(v) { } +>Y : Symbol(C.Y, Decl(accessorsInAmbientContext.ts, 3, 20), Decl(accessorsInAmbientContext.ts, 5, 36)) +>v : Symbol(v, Decl(accessorsInAmbientContext.ts, 6, 21)) + } +} + +declare class C { +>C : Symbol(C, Decl(accessorsInAmbientContext.ts, 8, 1)) + + get X() { return 1; } +>X : Symbol(C.X, Decl(accessorsInAmbientContext.ts, 10, 17), Decl(accessorsInAmbientContext.ts, 11, 25)) + + set X(v) { } +>X : Symbol(C.X, Decl(accessorsInAmbientContext.ts, 10, 17), Decl(accessorsInAmbientContext.ts, 11, 25)) +>v : Symbol(v, Decl(accessorsInAmbientContext.ts, 12, 10)) + + static get Y() { return 1; } +>Y : Symbol(C.Y, Decl(accessorsInAmbientContext.ts, 12, 16), Decl(accessorsInAmbientContext.ts, 14, 32)) + + static set Y(v) { } +>Y : Symbol(C.Y, Decl(accessorsInAmbientContext.ts, 12, 16), Decl(accessorsInAmbientContext.ts, 14, 32)) +>v : Symbol(v, Decl(accessorsInAmbientContext.ts, 15, 17)) +} diff --git a/tests/baselines/reference/accessorsInAmbientContext(target=es5).types b/tests/baselines/reference/accessorsInAmbientContext(target=es5).types new file mode 100644 index 0000000000000..e7ef2644c02cd --- /dev/null +++ b/tests/baselines/reference/accessorsInAmbientContext(target=es5).types @@ -0,0 +1,65 @@ +//// [tests/cases/compiler/accessorsInAmbientContext.ts] //// + +=== accessorsInAmbientContext.ts === +declare namespace M { +>M : typeof M +> : ^^^^^^^^ + + class C { +>C : C +> : ^ + + get X() { return 1; } +>X : number +> : ^^^^^^ +>1 : 1 +> : ^ + + set X(v) { } +>X : number +> : ^^^^^^ +>v : number +> : ^^^^^^ + + static get Y() { return 1; } +>Y : number +> : ^^^^^^ +>1 : 1 +> : ^ + + static set Y(v) { } +>Y : number +> : ^^^^^^ +>v : number +> : ^^^^^^ + } +} + +declare class C { +>C : C +> : ^ + + get X() { return 1; } +>X : number +> : ^^^^^^ +>1 : 1 +> : ^ + + set X(v) { } +>X : number +> : ^^^^^^ +>v : number +> : ^^^^^^ + + static get Y() { return 1; } +>Y : number +> : ^^^^^^ +>1 : 1 +> : ^ + + static set Y(v) { } +>Y : number +> : ^^^^^^ +>v : number +> : ^^^^^^ +} diff --git a/tests/baselines/reference/accessorsOverrideProperty7.errors.txt b/tests/baselines/reference/accessorsOverrideProperty7(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/accessorsOverrideProperty7.errors.txt rename to tests/baselines/reference/accessorsOverrideProperty7(target=es2015).errors.txt diff --git a/tests/baselines/reference/accessorsOverrideProperty7(target=es2015).js b/tests/baselines/reference/accessorsOverrideProperty7(target=es2015).js new file mode 100644 index 0000000000000..2fa70d0f2b72f --- /dev/null +++ b/tests/baselines/reference/accessorsOverrideProperty7(target=es2015).js @@ -0,0 +1,17 @@ +//// [tests/cases/conformance/classes/propertyMemberDeclarations/accessorsOverrideProperty7.ts] //// + +//// [accessorsOverrideProperty7.ts] +abstract class A { + abstract p = 'yep' +} +class B extends A { + get p() { return 'oh no' } // error +} + + +//// [accessorsOverrideProperty7.js] +class A { +} +class B extends A { + get p() { return 'oh no'; } // error +} diff --git a/tests/baselines/reference/accessorsOverrideProperty7.symbols b/tests/baselines/reference/accessorsOverrideProperty7(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/accessorsOverrideProperty7.symbols rename to tests/baselines/reference/accessorsOverrideProperty7(target=es2015).symbols diff --git a/tests/baselines/reference/accessorsOverrideProperty7.types b/tests/baselines/reference/accessorsOverrideProperty7(target=es2015).types similarity index 100% rename from tests/baselines/reference/accessorsOverrideProperty7.types rename to tests/baselines/reference/accessorsOverrideProperty7(target=es2015).types diff --git a/tests/baselines/reference/accessorsOverrideProperty7(target=es5).errors.txt b/tests/baselines/reference/accessorsOverrideProperty7(target=es5).errors.txt new file mode 100644 index 0000000000000..33a92cd351372 --- /dev/null +++ b/tests/baselines/reference/accessorsOverrideProperty7(target=es5).errors.txt @@ -0,0 +1,16 @@ +accessorsOverrideProperty7.ts(2,14): error TS1267: Property 'p' cannot have an initializer because it is marked abstract. +accessorsOverrideProperty7.ts(5,9): error TS2611: 'p' is defined as a property in class 'A', but is overridden here in 'B' as an accessor. + + +==== accessorsOverrideProperty7.ts (2 errors) ==== + abstract class A { + abstract p = 'yep' + ~ +!!! error TS1267: Property 'p' cannot have an initializer because it is marked abstract. + } + class B extends A { + get p() { return 'oh no' } // error + ~ +!!! error TS2611: 'p' is defined as a property in class 'A', but is overridden here in 'B' as an accessor. + } + \ No newline at end of file diff --git a/tests/baselines/reference/accessorsOverrideProperty7.js b/tests/baselines/reference/accessorsOverrideProperty7(target=es5).js similarity index 100% rename from tests/baselines/reference/accessorsOverrideProperty7.js rename to tests/baselines/reference/accessorsOverrideProperty7(target=es5).js diff --git a/tests/baselines/reference/accessorsOverrideProperty7(target=es5).symbols b/tests/baselines/reference/accessorsOverrideProperty7(target=es5).symbols new file mode 100644 index 0000000000000..4cc176675fa0b --- /dev/null +++ b/tests/baselines/reference/accessorsOverrideProperty7(target=es5).symbols @@ -0,0 +1,17 @@ +//// [tests/cases/conformance/classes/propertyMemberDeclarations/accessorsOverrideProperty7.ts] //// + +=== accessorsOverrideProperty7.ts === +abstract class A { +>A : Symbol(A, Decl(accessorsOverrideProperty7.ts, 0, 0)) + + abstract p = 'yep' +>p : Symbol(A.p, Decl(accessorsOverrideProperty7.ts, 0, 18)) +} +class B extends A { +>B : Symbol(B, Decl(accessorsOverrideProperty7.ts, 2, 1)) +>A : Symbol(A, Decl(accessorsOverrideProperty7.ts, 0, 0)) + + get p() { return 'oh no' } // error +>p : Symbol(B.p, Decl(accessorsOverrideProperty7.ts, 3, 19)) +} + diff --git a/tests/baselines/reference/accessorsOverrideProperty7(target=es5).types b/tests/baselines/reference/accessorsOverrideProperty7(target=es5).types new file mode 100644 index 0000000000000..cf3a4c4c87fd8 --- /dev/null +++ b/tests/baselines/reference/accessorsOverrideProperty7(target=es5).types @@ -0,0 +1,26 @@ +//// [tests/cases/conformance/classes/propertyMemberDeclarations/accessorsOverrideProperty7.ts] //// + +=== accessorsOverrideProperty7.ts === +abstract class A { +>A : A +> : ^ + + abstract p = 'yep' +>p : string +> : ^^^^^^ +>'yep' : "yep" +> : ^^^^^ +} +class B extends A { +>B : B +> : ^ +>A : A +> : ^ + + get p() { return 'oh no' } // error +>p : string +> : ^^^^^^ +>'oh no' : "oh no" +> : ^^^^^^^ +} + diff --git a/tests/baselines/reference/aliasUsageInAccessorsOfClass(target=es2015).js b/tests/baselines/reference/aliasUsageInAccessorsOfClass(target=es2015).js new file mode 100644 index 0000000000000..94399a1e62209 --- /dev/null +++ b/tests/baselines/reference/aliasUsageInAccessorsOfClass(target=es2015).js @@ -0,0 +1,56 @@ +//// [tests/cases/compiler/aliasUsageInAccessorsOfClass.ts] //// + +//// [aliasUsage1_backbone.ts] +export class Model { + public someData: string; +} + +//// [aliasUsage1_moduleA.ts] +import Backbone = require("./aliasUsage1_backbone"); +export class VisualizationModel extends Backbone.Model { + // interesting stuff here +} + +//// [aliasUsage1_main.ts] +import Backbone = require("./aliasUsage1_backbone"); +import moduleA = require("./aliasUsage1_moduleA"); +interface IHasVisualizationModel { + VisualizationModel: typeof Backbone.Model; +} +class C2 { + x: IHasVisualizationModel; + get A() { + return this.x; + } + set A(x) { + x = moduleA; + } +} + +//// [aliasUsage1_backbone.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Model = void 0; +class Model { +} +exports.Model = Model; +//// [aliasUsage1_moduleA.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.VisualizationModel = void 0; +const Backbone = require("./aliasUsage1_backbone"); +class VisualizationModel extends Backbone.Model { +} +exports.VisualizationModel = VisualizationModel; +//// [aliasUsage1_main.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const moduleA = require("./aliasUsage1_moduleA"); +class C2 { + get A() { + return this.x; + } + set A(x) { + x = moduleA; + } +} diff --git a/tests/baselines/reference/aliasUsageInAccessorsOfClass.symbols b/tests/baselines/reference/aliasUsageInAccessorsOfClass(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/aliasUsageInAccessorsOfClass.symbols rename to tests/baselines/reference/aliasUsageInAccessorsOfClass(target=es2015).symbols diff --git a/tests/baselines/reference/aliasUsageInAccessorsOfClass.types b/tests/baselines/reference/aliasUsageInAccessorsOfClass(target=es2015).types similarity index 100% rename from tests/baselines/reference/aliasUsageInAccessorsOfClass.types rename to tests/baselines/reference/aliasUsageInAccessorsOfClass(target=es2015).types diff --git a/tests/baselines/reference/aliasUsageInAccessorsOfClass.js b/tests/baselines/reference/aliasUsageInAccessorsOfClass(target=es5).js similarity index 100% rename from tests/baselines/reference/aliasUsageInAccessorsOfClass.js rename to tests/baselines/reference/aliasUsageInAccessorsOfClass(target=es5).js diff --git a/tests/baselines/reference/aliasUsageInAccessorsOfClass(target=es5).symbols b/tests/baselines/reference/aliasUsageInAccessorsOfClass(target=es5).symbols new file mode 100644 index 0000000000000..d1d413ac6d15d --- /dev/null +++ b/tests/baselines/reference/aliasUsageInAccessorsOfClass(target=es5).symbols @@ -0,0 +1,63 @@ +//// [tests/cases/compiler/aliasUsageInAccessorsOfClass.ts] //// + +=== aliasUsage1_main.ts === +import Backbone = require("./aliasUsage1_backbone"); +>Backbone : Symbol(Backbone, Decl(aliasUsage1_main.ts, 0, 0)) + +import moduleA = require("./aliasUsage1_moduleA"); +>moduleA : Symbol(moduleA, Decl(aliasUsage1_main.ts, 0, 52)) + +interface IHasVisualizationModel { +>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsage1_main.ts, 1, 50)) + + VisualizationModel: typeof Backbone.Model; +>VisualizationModel : Symbol(IHasVisualizationModel.VisualizationModel, Decl(aliasUsage1_main.ts, 2, 34)) +>Backbone.Model : Symbol(Backbone.Model, Decl(aliasUsage1_backbone.ts, 0, 0)) +>Backbone : Symbol(Backbone, Decl(aliasUsage1_main.ts, 0, 0)) +>Model : Symbol(Backbone.Model, Decl(aliasUsage1_backbone.ts, 0, 0)) +} +class C2 { +>C2 : Symbol(C2, Decl(aliasUsage1_main.ts, 4, 1)) + + x: IHasVisualizationModel; +>x : Symbol(C2.x, Decl(aliasUsage1_main.ts, 5, 10)) +>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsage1_main.ts, 1, 50)) + + get A() { +>A : Symbol(C2.A, Decl(aliasUsage1_main.ts, 6, 30), Decl(aliasUsage1_main.ts, 9, 5)) + + return this.x; +>this.x : Symbol(C2.x, Decl(aliasUsage1_main.ts, 5, 10)) +>this : Symbol(C2, Decl(aliasUsage1_main.ts, 4, 1)) +>x : Symbol(C2.x, Decl(aliasUsage1_main.ts, 5, 10)) + } + set A(x) { +>A : Symbol(C2.A, Decl(aliasUsage1_main.ts, 6, 30), Decl(aliasUsage1_main.ts, 9, 5)) +>x : Symbol(x, Decl(aliasUsage1_main.ts, 10, 10)) + + x = moduleA; +>x : Symbol(x, Decl(aliasUsage1_main.ts, 10, 10)) +>moduleA : Symbol(moduleA, Decl(aliasUsage1_main.ts, 0, 52)) + } +} +=== aliasUsage1_backbone.ts === +export class Model { +>Model : Symbol(Model, Decl(aliasUsage1_backbone.ts, 0, 0)) + + public someData: string; +>someData : Symbol(Model.someData, Decl(aliasUsage1_backbone.ts, 0, 20)) +} + +=== aliasUsage1_moduleA.ts === +import Backbone = require("./aliasUsage1_backbone"); +>Backbone : Symbol(Backbone, Decl(aliasUsage1_moduleA.ts, 0, 0)) + +export class VisualizationModel extends Backbone.Model { +>VisualizationModel : Symbol(VisualizationModel, Decl(aliasUsage1_moduleA.ts, 0, 52)) +>Backbone.Model : Symbol(Backbone.Model, Decl(aliasUsage1_backbone.ts, 0, 0)) +>Backbone : Symbol(Backbone, Decl(aliasUsage1_moduleA.ts, 0, 0)) +>Model : Symbol(Backbone.Model, Decl(aliasUsage1_backbone.ts, 0, 0)) + + // interesting stuff here +} + diff --git a/tests/baselines/reference/aliasUsageInAccessorsOfClass(target=es5).types b/tests/baselines/reference/aliasUsageInAccessorsOfClass(target=es5).types new file mode 100644 index 0000000000000..7beed70e17673 --- /dev/null +++ b/tests/baselines/reference/aliasUsageInAccessorsOfClass(target=es5).types @@ -0,0 +1,85 @@ +//// [tests/cases/compiler/aliasUsageInAccessorsOfClass.ts] //// + +=== aliasUsage1_main.ts === +import Backbone = require("./aliasUsage1_backbone"); +>Backbone : typeof Backbone +> : ^^^^^^^^^^^^^^^ + +import moduleA = require("./aliasUsage1_moduleA"); +>moduleA : typeof moduleA +> : ^^^^^^^^^^^^^^ + +interface IHasVisualizationModel { + VisualizationModel: typeof Backbone.Model; +>VisualizationModel : typeof Backbone.Model +> : ^^^^^^^^^^^^^^^^^^^^^ +>Backbone.Model : typeof Backbone.Model +> : ^^^^^^^^^^^^^^^^^^^^^ +>Backbone : typeof Backbone +> : ^^^^^^^^^^^^^^^ +>Model : typeof Backbone.Model +> : ^^^^^^^^^^^^^^^^^^^^^ +} +class C2 { +>C2 : C2 +> : ^^ + + x: IHasVisualizationModel; +>x : IHasVisualizationModel +> : ^^^^^^^^^^^^^^^^^^^^^^ + + get A() { +>A : IHasVisualizationModel +> : ^^^^^^^^^^^^^^^^^^^^^^ + + return this.x; +>this.x : IHasVisualizationModel +> : ^^^^^^^^^^^^^^^^^^^^^^ +>this : this +> : ^^^^ +>x : IHasVisualizationModel +> : ^^^^^^^^^^^^^^^^^^^^^^ + } + set A(x) { +>A : IHasVisualizationModel +> : ^^^^^^^^^^^^^^^^^^^^^^ +>x : IHasVisualizationModel +> : ^^^^^^^^^^^^^^^^^^^^^^ + + x = moduleA; +>x = moduleA : typeof moduleA +> : ^^^^^^^^^^^^^^ +>x : IHasVisualizationModel +> : ^^^^^^^^^^^^^^^^^^^^^^ +>moduleA : typeof moduleA +> : ^^^^^^^^^^^^^^ + } +} +=== aliasUsage1_backbone.ts === +export class Model { +>Model : Model +> : ^^^^^ + + public someData: string; +>someData : string +> : ^^^^^^ +} + +=== aliasUsage1_moduleA.ts === +import Backbone = require("./aliasUsage1_backbone"); +>Backbone : typeof Backbone +> : ^^^^^^^^^^^^^^^ + +export class VisualizationModel extends Backbone.Model { +>VisualizationModel : VisualizationModel +> : ^^^^^^^^^^^^^^^^^^ +>Backbone.Model : Backbone.Model +> : ^^^^^^^^^^^^^^ +>Backbone : typeof Backbone +> : ^^^^^^^^^^^^^^^ +>Model : typeof Backbone.Model +> : ^^^^^^^^^^^^^^^^^^^^^ + + // interesting stuff here +} + diff --git a/tests/baselines/reference/alwaysStrictModule6(target=es2015).js b/tests/baselines/reference/alwaysStrictModule6(target=es2015).js new file mode 100644 index 0000000000000..bc84a440c72d7 --- /dev/null +++ b/tests/baselines/reference/alwaysStrictModule6(target=es2015).js @@ -0,0 +1,9 @@ +//// [tests/cases/compiler/alwaysStrictModule6.ts] //// + +//// [alwaysStrictModule6.ts] +// Targeting ES5 +export const a = 1; + +//// [alwaysStrictModule6.js] +// Targeting ES5 +export const a = 1; diff --git a/tests/baselines/reference/alwaysStrictModule6.symbols b/tests/baselines/reference/alwaysStrictModule6(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/alwaysStrictModule6.symbols rename to tests/baselines/reference/alwaysStrictModule6(target=es2015).symbols diff --git a/tests/baselines/reference/alwaysStrictModule6.types b/tests/baselines/reference/alwaysStrictModule6(target=es2015).types similarity index 100% rename from tests/baselines/reference/alwaysStrictModule6.types rename to tests/baselines/reference/alwaysStrictModule6(target=es2015).types diff --git a/tests/baselines/reference/alwaysStrictModule6.js b/tests/baselines/reference/alwaysStrictModule6(target=es5).js similarity index 100% rename from tests/baselines/reference/alwaysStrictModule6.js rename to tests/baselines/reference/alwaysStrictModule6(target=es5).js diff --git a/tests/baselines/reference/alwaysStrictModule6(target=es5).symbols b/tests/baselines/reference/alwaysStrictModule6(target=es5).symbols new file mode 100644 index 0000000000000..24da65b84e825 --- /dev/null +++ b/tests/baselines/reference/alwaysStrictModule6(target=es5).symbols @@ -0,0 +1,7 @@ +//// [tests/cases/compiler/alwaysStrictModule6.ts] //// + +=== alwaysStrictModule6.ts === +// Targeting ES5 +export const a = 1; +>a : Symbol(a, Decl(alwaysStrictModule6.ts, 1, 12)) + diff --git a/tests/baselines/reference/alwaysStrictModule6(target=es5).types b/tests/baselines/reference/alwaysStrictModule6(target=es5).types new file mode 100644 index 0000000000000..173dbe590d804 --- /dev/null +++ b/tests/baselines/reference/alwaysStrictModule6(target=es5).types @@ -0,0 +1,10 @@ +//// [tests/cases/compiler/alwaysStrictModule6.ts] //// + +=== alwaysStrictModule6.ts === +// Targeting ES5 +export const a = 1; +>a : 1 +> : ^ +>1 : 1 +> : ^ + diff --git a/tests/baselines/reference/ambientAccessors.js b/tests/baselines/reference/ambientAccessors(target=es2015).js similarity index 100% rename from tests/baselines/reference/ambientAccessors.js rename to tests/baselines/reference/ambientAccessors(target=es2015).js diff --git a/tests/baselines/reference/ambientAccessors.symbols b/tests/baselines/reference/ambientAccessors(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/ambientAccessors.symbols rename to tests/baselines/reference/ambientAccessors(target=es2015).symbols diff --git a/tests/baselines/reference/ambientAccessors.types b/tests/baselines/reference/ambientAccessors(target=es2015).types similarity index 100% rename from tests/baselines/reference/ambientAccessors.types rename to tests/baselines/reference/ambientAccessors(target=es2015).types diff --git a/tests/baselines/reference/ambientAccessors(target=es5).js b/tests/baselines/reference/ambientAccessors(target=es5).js new file mode 100644 index 0000000000000..f9835d3460dd9 --- /dev/null +++ b/tests/baselines/reference/ambientAccessors(target=es5).js @@ -0,0 +1,32 @@ +//// [tests/cases/conformance/classes/propertyMemberDeclarations/memberAccessorDeclarations/ambientAccessors.ts] //// + +//// [ambientAccessors.ts] +// ok to use accessors in ambient class in ES3 +declare class C { + static get a(): string; + static set a(value: string); + + private static get b(): string; + private static set b(foo: string); + + get x(): string; + set x(value: string); + + private get y(): string; + private set y(foo: string); +} + +//// [ambientAccessors.js] + + +//// [ambientAccessors.d.ts] +declare class C { + static get a(): string; + static set a(value: string); + private static get b(); + private static set b(value); + get x(): string; + set x(value: string); + private get y(); + private set y(value); +} diff --git a/tests/baselines/reference/ambientAccessors(target=es5).symbols b/tests/baselines/reference/ambientAccessors(target=es5).symbols new file mode 100644 index 0000000000000..3937cede3ede5 --- /dev/null +++ b/tests/baselines/reference/ambientAccessors(target=es5).symbols @@ -0,0 +1,35 @@ +//// [tests/cases/conformance/classes/propertyMemberDeclarations/memberAccessorDeclarations/ambientAccessors.ts] //// + +=== ambientAccessors.ts === +// ok to use accessors in ambient class in ES3 +declare class C { +>C : Symbol(C, Decl(ambientAccessors.ts, 0, 0)) + + static get a(): string; +>a : Symbol(C.a, Decl(ambientAccessors.ts, 1, 17), Decl(ambientAccessors.ts, 2, 27)) + + static set a(value: string); +>a : Symbol(C.a, Decl(ambientAccessors.ts, 1, 17), Decl(ambientAccessors.ts, 2, 27)) +>value : Symbol(value, Decl(ambientAccessors.ts, 3, 17)) + + private static get b(): string; +>b : Symbol(C.b, Decl(ambientAccessors.ts, 3, 32), Decl(ambientAccessors.ts, 5, 35)) + + private static set b(foo: string); +>b : Symbol(C.b, Decl(ambientAccessors.ts, 3, 32), Decl(ambientAccessors.ts, 5, 35)) +>foo : Symbol(foo, Decl(ambientAccessors.ts, 6, 25)) + + get x(): string; +>x : Symbol(C.x, Decl(ambientAccessors.ts, 6, 38), Decl(ambientAccessors.ts, 8, 20)) + + set x(value: string); +>x : Symbol(C.x, Decl(ambientAccessors.ts, 6, 38), Decl(ambientAccessors.ts, 8, 20)) +>value : Symbol(value, Decl(ambientAccessors.ts, 9, 10)) + + private get y(): string; +>y : Symbol(C.y, Decl(ambientAccessors.ts, 9, 25), Decl(ambientAccessors.ts, 11, 28)) + + private set y(foo: string); +>y : Symbol(C.y, Decl(ambientAccessors.ts, 9, 25), Decl(ambientAccessors.ts, 11, 28)) +>foo : Symbol(foo, Decl(ambientAccessors.ts, 12, 18)) +} diff --git a/tests/baselines/reference/ambientAccessors(target=es5).types b/tests/baselines/reference/ambientAccessors(target=es5).types new file mode 100644 index 0000000000000..7525fb5fee95f --- /dev/null +++ b/tests/baselines/reference/ambientAccessors(target=es5).types @@ -0,0 +1,48 @@ +//// [tests/cases/conformance/classes/propertyMemberDeclarations/memberAccessorDeclarations/ambientAccessors.ts] //// + +=== ambientAccessors.ts === +// ok to use accessors in ambient class in ES3 +declare class C { +>C : C +> : ^ + + static get a(): string; +>a : string +> : ^^^^^^ + + static set a(value: string); +>a : string +> : ^^^^^^ +>value : string +> : ^^^^^^ + + private static get b(): string; +>b : string +> : ^^^^^^ + + private static set b(foo: string); +>b : string +> : ^^^^^^ +>foo : string +> : ^^^^^^ + + get x(): string; +>x : string +> : ^^^^^^ + + set x(value: string); +>x : string +> : ^^^^^^ +>value : string +> : ^^^^^^ + + private get y(): string; +>y : string +> : ^^^^^^ + + private set y(foo: string); +>y : string +> : ^^^^^^ +>foo : string +> : ^^^^^^ +} diff --git a/tests/baselines/reference/ambientGetters.errors.txt b/tests/baselines/reference/ambientGetters(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/ambientGetters.errors.txt rename to tests/baselines/reference/ambientGetters(target=es2015).errors.txt diff --git a/tests/baselines/reference/ambientGetters.js b/tests/baselines/reference/ambientGetters(target=es2015).js similarity index 100% rename from tests/baselines/reference/ambientGetters.js rename to tests/baselines/reference/ambientGetters(target=es2015).js diff --git a/tests/baselines/reference/ambientGetters.symbols b/tests/baselines/reference/ambientGetters(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/ambientGetters.symbols rename to tests/baselines/reference/ambientGetters(target=es2015).symbols diff --git a/tests/baselines/reference/ambientGetters.types b/tests/baselines/reference/ambientGetters(target=es2015).types similarity index 100% rename from tests/baselines/reference/ambientGetters.types rename to tests/baselines/reference/ambientGetters(target=es2015).types diff --git a/tests/baselines/reference/ambientGetters(target=es5).errors.txt b/tests/baselines/reference/ambientGetters(target=es5).errors.txt new file mode 100644 index 0000000000000..f9b413134eb70 --- /dev/null +++ b/tests/baselines/reference/ambientGetters(target=es5).errors.txt @@ -0,0 +1,13 @@ +ambientGetters.ts(6,18): error TS1183: An implementation cannot be declared in ambient contexts. + + +==== ambientGetters.ts (1 errors) ==== + declare class A { + get length() : number; + } + + declare class B { + get length() { return 0; } + ~ +!!! error TS1183: An implementation cannot be declared in ambient contexts. + } \ No newline at end of file diff --git a/tests/baselines/reference/ambientGetters(target=es5).js b/tests/baselines/reference/ambientGetters(target=es5).js new file mode 100644 index 0000000000000..df95e36dbfd3e --- /dev/null +++ b/tests/baselines/reference/ambientGetters(target=es5).js @@ -0,0 +1,12 @@ +//// [tests/cases/compiler/ambientGetters.ts] //// + +//// [ambientGetters.ts] +declare class A { + get length() : number; +} + +declare class B { + get length() { return 0; } +} + +//// [ambientGetters.js] diff --git a/tests/baselines/reference/ambientGetters(target=es5).symbols b/tests/baselines/reference/ambientGetters(target=es5).symbols new file mode 100644 index 0000000000000..04d68bb5859f9 --- /dev/null +++ b/tests/baselines/reference/ambientGetters(target=es5).symbols @@ -0,0 +1,16 @@ +//// [tests/cases/compiler/ambientGetters.ts] //// + +=== ambientGetters.ts === +declare class A { +>A : Symbol(A, Decl(ambientGetters.ts, 0, 0)) + + get length() : number; +>length : Symbol(A.length, Decl(ambientGetters.ts, 0, 17)) +} + +declare class B { +>B : Symbol(B, Decl(ambientGetters.ts, 2, 1)) + + get length() { return 0; } +>length : Symbol(B.length, Decl(ambientGetters.ts, 4, 17)) +} diff --git a/tests/baselines/reference/ambientGetters(target=es5).types b/tests/baselines/reference/ambientGetters(target=es5).types new file mode 100644 index 0000000000000..c5bf3a8759444 --- /dev/null +++ b/tests/baselines/reference/ambientGetters(target=es5).types @@ -0,0 +1,22 @@ +//// [tests/cases/compiler/ambientGetters.ts] //// + +=== ambientGetters.ts === +declare class A { +>A : A +> : ^ + + get length() : number; +>length : number +> : ^^^^^^ +} + +declare class B { +>B : B +> : ^ + + get length() { return 0; } +>length : number +> : ^^^^^^ +>0 : 0 +> : ^ +} diff --git a/tests/baselines/reference/argumentsObjectIterator01_ES5(target=es2015).js b/tests/baselines/reference/argumentsObjectIterator01_ES5(target=es2015).js new file mode 100644 index 0000000000000..31f46e6e4481c --- /dev/null +++ b/tests/baselines/reference/argumentsObjectIterator01_ES5(target=es2015).js @@ -0,0 +1,19 @@ +//// [tests/cases/compiler/argumentsObjectIterator01_ES5.ts] //// + +//// [argumentsObjectIterator01_ES5.ts] +function doubleAndReturnAsArray(x: number, y: number, z: number): [number, number, number] { + let result = []; + for (let arg of arguments) { + result.push(arg + arg); + } + return <[any, any, any]>result; +} + +//// [argumentsObjectIterator01_ES5.js] +function doubleAndReturnAsArray(x, y, z) { + let result = []; + for (let arg of arguments) { + result.push(arg + arg); + } + return result; +} diff --git a/tests/baselines/reference/argumentsObjectIterator01_ES5.symbols b/tests/baselines/reference/argumentsObjectIterator01_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/argumentsObjectIterator01_ES5.symbols rename to tests/baselines/reference/argumentsObjectIterator01_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/argumentsObjectIterator01_ES5(target=es2015).types b/tests/baselines/reference/argumentsObjectIterator01_ES5(target=es2015).types new file mode 100644 index 0000000000000..029ea74a7bc8e --- /dev/null +++ b/tests/baselines/reference/argumentsObjectIterator01_ES5(target=es2015).types @@ -0,0 +1,43 @@ +//// [tests/cases/compiler/argumentsObjectIterator01_ES5.ts] //// + +=== argumentsObjectIterator01_ES5.ts === +function doubleAndReturnAsArray(x: number, y: number, z: number): [number, number, number] { +>doubleAndReturnAsArray : (x: number, y: number, z: number) => [number, number, number] +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>x : number +> : ^^^^^^ +>y : number +> : ^^^^^^ +>z : number +> : ^^^^^^ + + let result = []; +>result : any[] +> : ^^^^^ +>[] : undefined[] +> : ^^^^^^^^^^^ + + for (let arg of arguments) { +>arg : any +>arguments : IArguments +> : ^^^^^^^^^^ + + result.push(arg + arg); +>result.push(arg + arg) : number +> : ^^^^^^ +>result.push : (...items: any[]) => number +> : ^^^^ ^^^^^^^^^^^^ +>result : any[] +> : ^^^^^ +>push : (...items: any[]) => number +> : ^^^^ ^^^^^^^^^^^^ +>arg + arg : any +>arg : any +>arg : any + } + return <[any, any, any]>result; +><[any, any, any]>result : [any, any, any] +> : ^^^^^^^^^^^^^^^ +>result : any[] +> : ^^^^^ +} diff --git a/tests/baselines/reference/argumentsObjectIterator01_ES5.errors.txt b/tests/baselines/reference/argumentsObjectIterator01_ES5(target=es5).errors.txt similarity index 100% rename from tests/baselines/reference/argumentsObjectIterator01_ES5.errors.txt rename to tests/baselines/reference/argumentsObjectIterator01_ES5(target=es5).errors.txt diff --git a/tests/baselines/reference/argumentsObjectIterator01_ES5.js b/tests/baselines/reference/argumentsObjectIterator01_ES5(target=es5).js similarity index 100% rename from tests/baselines/reference/argumentsObjectIterator01_ES5.js rename to tests/baselines/reference/argumentsObjectIterator01_ES5(target=es5).js diff --git a/tests/baselines/reference/argumentsObjectIterator01_ES5(target=es5).symbols b/tests/baselines/reference/argumentsObjectIterator01_ES5(target=es5).symbols new file mode 100644 index 0000000000000..f4685e4f83589 --- /dev/null +++ b/tests/baselines/reference/argumentsObjectIterator01_ES5(target=es5).symbols @@ -0,0 +1,26 @@ +//// [tests/cases/compiler/argumentsObjectIterator01_ES5.ts] //// + +=== argumentsObjectIterator01_ES5.ts === +function doubleAndReturnAsArray(x: number, y: number, z: number): [number, number, number] { +>doubleAndReturnAsArray : Symbol(doubleAndReturnAsArray, Decl(argumentsObjectIterator01_ES5.ts, 0, 0)) +>x : Symbol(x, Decl(argumentsObjectIterator01_ES5.ts, 0, 32)) +>y : Symbol(y, Decl(argumentsObjectIterator01_ES5.ts, 0, 42)) +>z : Symbol(z, Decl(argumentsObjectIterator01_ES5.ts, 0, 53)) + + let result = []; +>result : Symbol(result, Decl(argumentsObjectIterator01_ES5.ts, 1, 7)) + + for (let arg of arguments) { +>arg : Symbol(arg, Decl(argumentsObjectIterator01_ES5.ts, 2, 12)) +>arguments : Symbol(arguments) + + result.push(arg + arg); +>result.push : Symbol(Array.push, Decl(lib.es5.d.ts, --, --)) +>result : Symbol(result, Decl(argumentsObjectIterator01_ES5.ts, 1, 7)) +>push : Symbol(Array.push, Decl(lib.es5.d.ts, --, --)) +>arg : Symbol(arg, Decl(argumentsObjectIterator01_ES5.ts, 2, 12)) +>arg : Symbol(arg, Decl(argumentsObjectIterator01_ES5.ts, 2, 12)) + } + return <[any, any, any]>result; +>result : Symbol(result, Decl(argumentsObjectIterator01_ES5.ts, 1, 7)) +} diff --git a/tests/baselines/reference/argumentsObjectIterator01_ES5.types b/tests/baselines/reference/argumentsObjectIterator01_ES5(target=es5).types similarity index 100% rename from tests/baselines/reference/argumentsObjectIterator01_ES5.types rename to tests/baselines/reference/argumentsObjectIterator01_ES5(target=es5).types diff --git a/tests/baselines/reference/argumentsObjectIterator02_ES5(target=es2015).js b/tests/baselines/reference/argumentsObjectIterator02_ES5(target=es2015).js new file mode 100644 index 0000000000000..d1a28404a2925 --- /dev/null +++ b/tests/baselines/reference/argumentsObjectIterator02_ES5(target=es2015).js @@ -0,0 +1,24 @@ +//// [tests/cases/compiler/argumentsObjectIterator02_ES5.ts] //// + +//// [argumentsObjectIterator02_ES5.ts] +function doubleAndReturnAsArray(x: number, y: number, z: number): [number, number, number] { + let blah = arguments[Symbol.iterator]; + + let result = []; + for (let arg of blah()) { + result.push(arg + arg); + } + return <[any, any, any]>result; +} + + + +//// [argumentsObjectIterator02_ES5.js] +function doubleAndReturnAsArray(x, y, z) { + let blah = arguments[Symbol.iterator]; + let result = []; + for (let arg of blah()) { + result.push(arg + arg); + } + return result; +} diff --git a/tests/baselines/reference/argumentsObjectIterator02_ES5.symbols b/tests/baselines/reference/argumentsObjectIterator02_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/argumentsObjectIterator02_ES5.symbols rename to tests/baselines/reference/argumentsObjectIterator02_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/argumentsObjectIterator02_ES5(target=es2015).types b/tests/baselines/reference/argumentsObjectIterator02_ES5(target=es2015).types new file mode 100644 index 0000000000000..a93506d96710c --- /dev/null +++ b/tests/baselines/reference/argumentsObjectIterator02_ES5(target=es2015).types @@ -0,0 +1,61 @@ +//// [tests/cases/compiler/argumentsObjectIterator02_ES5.ts] //// + +=== argumentsObjectIterator02_ES5.ts === +function doubleAndReturnAsArray(x: number, y: number, z: number): [number, number, number] { +>doubleAndReturnAsArray : (x: number, y: number, z: number) => [number, number, number] +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>x : number +> : ^^^^^^ +>y : number +> : ^^^^^^ +>z : number +> : ^^^^^^ + + let blah = arguments[Symbol.iterator]; +>blah : () => ArrayIterator +> : ^^^^^^ +>arguments[Symbol.iterator] : () => ArrayIterator +> : ^^^^^^ +>arguments : IArguments +> : ^^^^^^^^^^ +>Symbol.iterator : unique symbol +> : ^^^^^^^^^^^^^ +>Symbol : SymbolConstructor +> : ^^^^^^^^^^^^^^^^^ +>iterator : unique symbol +> : ^^^^^^^^^^^^^ + + let result = []; +>result : any[] +> : ^^^^^ +>[] : undefined[] +> : ^^^^^^^^^^^ + + for (let arg of blah()) { +>arg : any +>blah() : ArrayIterator +> : ^^^^^^^^^^^^^^^^^^ +>blah : () => ArrayIterator +> : ^^^^^^ + + result.push(arg + arg); +>result.push(arg + arg) : number +> : ^^^^^^ +>result.push : (...items: any[]) => number +> : ^^^^ ^^^^^^^^^^^^ +>result : any[] +> : ^^^^^ +>push : (...items: any[]) => number +> : ^^^^ ^^^^^^^^^^^^ +>arg + arg : any +>arg : any +>arg : any + } + return <[any, any, any]>result; +><[any, any, any]>result : [any, any, any] +> : ^^^^^^^^^^^^^^^ +>result : any[] +> : ^^^^^ +} + + diff --git a/tests/baselines/reference/argumentsObjectIterator02_ES5.errors.txt b/tests/baselines/reference/argumentsObjectIterator02_ES5(target=es5).errors.txt similarity index 100% rename from tests/baselines/reference/argumentsObjectIterator02_ES5.errors.txt rename to tests/baselines/reference/argumentsObjectIterator02_ES5(target=es5).errors.txt diff --git a/tests/baselines/reference/argumentsObjectIterator02_ES5.js b/tests/baselines/reference/argumentsObjectIterator02_ES5(target=es5).js similarity index 100% rename from tests/baselines/reference/argumentsObjectIterator02_ES5.js rename to tests/baselines/reference/argumentsObjectIterator02_ES5(target=es5).js diff --git a/tests/baselines/reference/argumentsObjectIterator02_ES5(target=es5).symbols b/tests/baselines/reference/argumentsObjectIterator02_ES5(target=es5).symbols new file mode 100644 index 0000000000000..4829342aa88ff --- /dev/null +++ b/tests/baselines/reference/argumentsObjectIterator02_ES5(target=es5).symbols @@ -0,0 +1,35 @@ +//// [tests/cases/compiler/argumentsObjectIterator02_ES5.ts] //// + +=== argumentsObjectIterator02_ES5.ts === +function doubleAndReturnAsArray(x: number, y: number, z: number): [number, number, number] { +>doubleAndReturnAsArray : Symbol(doubleAndReturnAsArray, Decl(argumentsObjectIterator02_ES5.ts, 0, 0)) +>x : Symbol(x, Decl(argumentsObjectIterator02_ES5.ts, 0, 32)) +>y : Symbol(y, Decl(argumentsObjectIterator02_ES5.ts, 0, 42)) +>z : Symbol(z, Decl(argumentsObjectIterator02_ES5.ts, 0, 53)) + + let blah = arguments[Symbol.iterator]; +>blah : Symbol(blah, Decl(argumentsObjectIterator02_ES5.ts, 1, 7)) +>arguments : Symbol(arguments) +>Symbol.iterator : Symbol(SymbolConstructor.iterator, Decl(lib.es2015.iterable.d.ts, --, --)) +>Symbol : Symbol(Symbol, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>iterator : Symbol(SymbolConstructor.iterator, Decl(lib.es2015.iterable.d.ts, --, --)) + + let result = []; +>result : Symbol(result, Decl(argumentsObjectIterator02_ES5.ts, 3, 7)) + + for (let arg of blah()) { +>arg : Symbol(arg, Decl(argumentsObjectIterator02_ES5.ts, 4, 12)) +>blah : Symbol(blah, Decl(argumentsObjectIterator02_ES5.ts, 1, 7)) + + result.push(arg + arg); +>result.push : Symbol(Array.push, Decl(lib.es5.d.ts, --, --)) +>result : Symbol(result, Decl(argumentsObjectIterator02_ES5.ts, 3, 7)) +>push : Symbol(Array.push, Decl(lib.es5.d.ts, --, --)) +>arg : Symbol(arg, Decl(argumentsObjectIterator02_ES5.ts, 4, 12)) +>arg : Symbol(arg, Decl(argumentsObjectIterator02_ES5.ts, 4, 12)) + } + return <[any, any, any]>result; +>result : Symbol(result, Decl(argumentsObjectIterator02_ES5.ts, 3, 7)) +} + + diff --git a/tests/baselines/reference/argumentsObjectIterator02_ES5.types b/tests/baselines/reference/argumentsObjectIterator02_ES5(target=es5).types similarity index 100% rename from tests/baselines/reference/argumentsObjectIterator02_ES5.types rename to tests/baselines/reference/argumentsObjectIterator02_ES5(target=es5).types diff --git a/tests/baselines/reference/argumentsObjectIterator03_ES5(target=es2015).js b/tests/baselines/reference/argumentsObjectIterator03_ES5(target=es2015).js new file mode 100644 index 0000000000000..b1ea2af47f1d4 --- /dev/null +++ b/tests/baselines/reference/argumentsObjectIterator03_ES5(target=es2015).js @@ -0,0 +1,16 @@ +//// [tests/cases/compiler/argumentsObjectIterator03_ES5.ts] //// + +//// [argumentsObjectIterator03_ES5.ts] +function asReversedTuple(a: number, b: string, c: boolean): [boolean, string, number] { + let [x, y, z] = arguments; + + return [z, y, x]; +} + + + +//// [argumentsObjectIterator03_ES5.js] +function asReversedTuple(a, b, c) { + let [x, y, z] = arguments; + return [z, y, x]; +} diff --git a/tests/baselines/reference/argumentsObjectIterator03_ES5.symbols b/tests/baselines/reference/argumentsObjectIterator03_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/argumentsObjectIterator03_ES5.symbols rename to tests/baselines/reference/argumentsObjectIterator03_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/argumentsObjectIterator03_ES5(target=es2015).types b/tests/baselines/reference/argumentsObjectIterator03_ES5(target=es2015).types new file mode 100644 index 0000000000000..75070cc48b3ed --- /dev/null +++ b/tests/baselines/reference/argumentsObjectIterator03_ES5(target=es2015).types @@ -0,0 +1,32 @@ +//// [tests/cases/compiler/argumentsObjectIterator03_ES5.ts] //// + +=== argumentsObjectIterator03_ES5.ts === +function asReversedTuple(a: number, b: string, c: boolean): [boolean, string, number] { +>asReversedTuple : (a: number, b: string, c: boolean) => [boolean, string, number] +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>a : number +> : ^^^^^^ +>b : string +> : ^^^^^^ +>c : boolean +> : ^^^^^^^ + + let [x, y, z] = arguments; +>x : any +> : ^^^ +>y : any +> : ^^^ +>z : any +> : ^^^ +>arguments : IArguments +> : ^^^^^^^^^^ + + return [z, y, x]; +>[z, y, x] : [any, any, any] +> : ^^^^^^^^^^^^^^^ +>z : any +>y : any +>x : any +} + + diff --git a/tests/baselines/reference/argumentsObjectIterator03_ES5.errors.txt b/tests/baselines/reference/argumentsObjectIterator03_ES5(target=es5).errors.txt similarity index 100% rename from tests/baselines/reference/argumentsObjectIterator03_ES5.errors.txt rename to tests/baselines/reference/argumentsObjectIterator03_ES5(target=es5).errors.txt diff --git a/tests/baselines/reference/argumentsObjectIterator03_ES5.js b/tests/baselines/reference/argumentsObjectIterator03_ES5(target=es5).js similarity index 100% rename from tests/baselines/reference/argumentsObjectIterator03_ES5.js rename to tests/baselines/reference/argumentsObjectIterator03_ES5(target=es5).js diff --git a/tests/baselines/reference/argumentsObjectIterator03_ES5(target=es5).symbols b/tests/baselines/reference/argumentsObjectIterator03_ES5(target=es5).symbols new file mode 100644 index 0000000000000..94bcac6fc7ba1 --- /dev/null +++ b/tests/baselines/reference/argumentsObjectIterator03_ES5(target=es5).symbols @@ -0,0 +1,22 @@ +//// [tests/cases/compiler/argumentsObjectIterator03_ES5.ts] //// + +=== argumentsObjectIterator03_ES5.ts === +function asReversedTuple(a: number, b: string, c: boolean): [boolean, string, number] { +>asReversedTuple : Symbol(asReversedTuple, Decl(argumentsObjectIterator03_ES5.ts, 0, 0)) +>a : Symbol(a, Decl(argumentsObjectIterator03_ES5.ts, 0, 25)) +>b : Symbol(b, Decl(argumentsObjectIterator03_ES5.ts, 0, 35)) +>c : Symbol(c, Decl(argumentsObjectIterator03_ES5.ts, 0, 46)) + + let [x, y, z] = arguments; +>x : Symbol(x, Decl(argumentsObjectIterator03_ES5.ts, 1, 9)) +>y : Symbol(y, Decl(argumentsObjectIterator03_ES5.ts, 1, 11)) +>z : Symbol(z, Decl(argumentsObjectIterator03_ES5.ts, 1, 14)) +>arguments : Symbol(arguments) + + return [z, y, x]; +>z : Symbol(z, Decl(argumentsObjectIterator03_ES5.ts, 1, 14)) +>y : Symbol(y, Decl(argumentsObjectIterator03_ES5.ts, 1, 11)) +>x : Symbol(x, Decl(argumentsObjectIterator03_ES5.ts, 1, 9)) +} + + diff --git a/tests/baselines/reference/argumentsObjectIterator03_ES5.types b/tests/baselines/reference/argumentsObjectIterator03_ES5(target=es5).types similarity index 100% rename from tests/baselines/reference/argumentsObjectIterator03_ES5.types rename to tests/baselines/reference/argumentsObjectIterator03_ES5(target=es5).types diff --git a/tests/baselines/reference/arraySpreadImportHelpers.errors.txt b/tests/baselines/reference/arraySpreadImportHelpers(target=es5).errors.txt similarity index 100% rename from tests/baselines/reference/arraySpreadImportHelpers.errors.txt rename to tests/baselines/reference/arraySpreadImportHelpers(target=es5).errors.txt diff --git a/tests/baselines/reference/arrayToLocaleStringES5(target=es2015).js b/tests/baselines/reference/arrayToLocaleStringES5(target=es2015).js new file mode 100644 index 0000000000000..f2c438cb390c5 --- /dev/null +++ b/tests/baselines/reference/arrayToLocaleStringES5(target=es2015).js @@ -0,0 +1,106 @@ +//// [tests/cases/compiler/arrayToLocaleStringES5.ts] //// + +//// [arrayToLocaleStringES5.ts] +let str: string; +const arr = [1, 2, 3]; +str = arr.toLocaleString(); // OK +str = arr.toLocaleString('en-US'); // should be error +str = arr.toLocaleString('en-US', { style: 'currency', currency: 'EUR' }); // should be error + +const dates: readonly Date[] = [new Date(), new Date()]; +str = dates.toLocaleString(); // OK +str = dates.toLocaleString('fr'); // should be error +str = dates.toLocaleString('fr', { timeZone: 'UTC' }); // should be error + +const int8Array = new Int8Array(3); +str = int8Array.toLocaleString(); // OK +str = int8Array.toLocaleString('en-US'); // should be error +str = int8Array.toLocaleString('en-US', { style: 'currency', currency: 'EUR' }); // should be error + +const uint8Array = new Uint8Array(3); +str = uint8Array.toLocaleString(); // OK +str = uint8Array.toLocaleString('en-US'); // should be error +str = uint8Array.toLocaleString('en-US', { style: 'currency', currency: 'EUR' }); // should be error + +const uint8ClampedArray = new Uint8ClampedArray(3); +str = uint8ClampedArray.toLocaleString(); // OK +str = uint8ClampedArray.toLocaleString('en-US'); // should be error +str = uint8ClampedArray.toLocaleString('en-US', { style: 'currency', currency: 'EUR' }); // should be error + +const int16Array = new Int16Array(3); +str = int16Array.toLocaleString(); // OK +str = int16Array.toLocaleString('en-US'); // should be error +str = int16Array.toLocaleString('en-US', { style: 'currency', currency: 'EUR' }); // should be error + +const uint16Array = new Uint16Array(3); +str = uint16Array.toLocaleString(); // OK +str = uint16Array.toLocaleString('en-US'); // should be error +str = uint16Array.toLocaleString('en-US', { style: 'currency', currency: 'EUR' }); // should be error + +const int32Array = new Int32Array(3); +str = int32Array.toLocaleString(); // OK +str = int32Array.toLocaleString('en-US'); // should be error +str = int32Array.toLocaleString('en-US', { style: 'currency', currency: 'EUR' }); // should be error + +const uint32Array = new Uint32Array(3); +str = uint32Array.toLocaleString(); // OK +str = uint32Array.toLocaleString('en-US'); // should be error +str = uint32Array.toLocaleString('en-US', { style: 'currency', currency: 'EUR' }); // should be error + +const float32Array = new Float32Array(3); +str = float32Array.toLocaleString(); // OK +str = float32Array.toLocaleString('en-US'); // should be error +str = float32Array.toLocaleString('en-US', { style: 'currency', currency: 'EUR' }); // should be error + +const float64Array = new Float64Array(3); +str = float64Array.toLocaleString(); // OK +str = float64Array.toLocaleString('en-US'); // should be error +str = float64Array.toLocaleString('en-US', { style: 'currency', currency: 'EUR' }); // should be error + + +//// [arrayToLocaleStringES5.js] +let str; +const arr = [1, 2, 3]; +str = arr.toLocaleString(); // OK +str = arr.toLocaleString('en-US'); // should be error +str = arr.toLocaleString('en-US', { style: 'currency', currency: 'EUR' }); // should be error +const dates = [new Date(), new Date()]; +str = dates.toLocaleString(); // OK +str = dates.toLocaleString('fr'); // should be error +str = dates.toLocaleString('fr', { timeZone: 'UTC' }); // should be error +const int8Array = new Int8Array(3); +str = int8Array.toLocaleString(); // OK +str = int8Array.toLocaleString('en-US'); // should be error +str = int8Array.toLocaleString('en-US', { style: 'currency', currency: 'EUR' }); // should be error +const uint8Array = new Uint8Array(3); +str = uint8Array.toLocaleString(); // OK +str = uint8Array.toLocaleString('en-US'); // should be error +str = uint8Array.toLocaleString('en-US', { style: 'currency', currency: 'EUR' }); // should be error +const uint8ClampedArray = new Uint8ClampedArray(3); +str = uint8ClampedArray.toLocaleString(); // OK +str = uint8ClampedArray.toLocaleString('en-US'); // should be error +str = uint8ClampedArray.toLocaleString('en-US', { style: 'currency', currency: 'EUR' }); // should be error +const int16Array = new Int16Array(3); +str = int16Array.toLocaleString(); // OK +str = int16Array.toLocaleString('en-US'); // should be error +str = int16Array.toLocaleString('en-US', { style: 'currency', currency: 'EUR' }); // should be error +const uint16Array = new Uint16Array(3); +str = uint16Array.toLocaleString(); // OK +str = uint16Array.toLocaleString('en-US'); // should be error +str = uint16Array.toLocaleString('en-US', { style: 'currency', currency: 'EUR' }); // should be error +const int32Array = new Int32Array(3); +str = int32Array.toLocaleString(); // OK +str = int32Array.toLocaleString('en-US'); // should be error +str = int32Array.toLocaleString('en-US', { style: 'currency', currency: 'EUR' }); // should be error +const uint32Array = new Uint32Array(3); +str = uint32Array.toLocaleString(); // OK +str = uint32Array.toLocaleString('en-US'); // should be error +str = uint32Array.toLocaleString('en-US', { style: 'currency', currency: 'EUR' }); // should be error +const float32Array = new Float32Array(3); +str = float32Array.toLocaleString(); // OK +str = float32Array.toLocaleString('en-US'); // should be error +str = float32Array.toLocaleString('en-US', { style: 'currency', currency: 'EUR' }); // should be error +const float64Array = new Float64Array(3); +str = float64Array.toLocaleString(); // OK +str = float64Array.toLocaleString('en-US'); // should be error +str = float64Array.toLocaleString('en-US', { style: 'currency', currency: 'EUR' }); // should be error diff --git a/tests/baselines/reference/arrayToLocaleStringES5.symbols b/tests/baselines/reference/arrayToLocaleStringES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/arrayToLocaleStringES5.symbols rename to tests/baselines/reference/arrayToLocaleStringES5(target=es2015).symbols diff --git a/tests/baselines/reference/arrayToLocaleStringES5.types b/tests/baselines/reference/arrayToLocaleStringES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/arrayToLocaleStringES5.types rename to tests/baselines/reference/arrayToLocaleStringES5(target=es2015).types diff --git a/tests/baselines/reference/arrayToLocaleStringES5.js b/tests/baselines/reference/arrayToLocaleStringES5(target=es5).js similarity index 100% rename from tests/baselines/reference/arrayToLocaleStringES5.js rename to tests/baselines/reference/arrayToLocaleStringES5(target=es5).js diff --git a/tests/baselines/reference/arrayToLocaleStringES5(target=es5).symbols b/tests/baselines/reference/arrayToLocaleStringES5(target=es5).symbols new file mode 100644 index 0000000000000..e7f054ae188f5 --- /dev/null +++ b/tests/baselines/reference/arrayToLocaleStringES5(target=es5).symbols @@ -0,0 +1,270 @@ +//// [tests/cases/compiler/arrayToLocaleStringES5.ts] //// + +=== arrayToLocaleStringES5.ts === +let str: string; +>str : Symbol(str, Decl(arrayToLocaleStringES5.ts, 0, 3)) + +const arr = [1, 2, 3]; +>arr : Symbol(arr, Decl(arrayToLocaleStringES5.ts, 1, 5)) + +str = arr.toLocaleString(); // OK +>str : Symbol(str, Decl(arrayToLocaleStringES5.ts, 0, 3)) +>arr.toLocaleString : Symbol(Array.toLocaleString, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) +>arr : Symbol(arr, Decl(arrayToLocaleStringES5.ts, 1, 5)) +>toLocaleString : Symbol(Array.toLocaleString, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) + +str = arr.toLocaleString('en-US'); // should be error +>str : Symbol(str, Decl(arrayToLocaleStringES5.ts, 0, 3)) +>arr.toLocaleString : Symbol(Array.toLocaleString, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) +>arr : Symbol(arr, Decl(arrayToLocaleStringES5.ts, 1, 5)) +>toLocaleString : Symbol(Array.toLocaleString, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) + +str = arr.toLocaleString('en-US', { style: 'currency', currency: 'EUR' }); // should be error +>str : Symbol(str, Decl(arrayToLocaleStringES5.ts, 0, 3)) +>arr.toLocaleString : Symbol(Array.toLocaleString, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) +>arr : Symbol(arr, Decl(arrayToLocaleStringES5.ts, 1, 5)) +>toLocaleString : Symbol(Array.toLocaleString, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) +>style : Symbol(style, Decl(arrayToLocaleStringES5.ts, 4, 35)) +>currency : Symbol(currency, Decl(arrayToLocaleStringES5.ts, 4, 54)) + +const dates: readonly Date[] = [new Date(), new Date()]; +>dates : Symbol(dates, Decl(arrayToLocaleStringES5.ts, 6, 5)) +>Date : Symbol(Date, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.scripthost.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>Date : Symbol(Date, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.scripthost.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>Date : Symbol(Date, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.scripthost.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + +str = dates.toLocaleString(); // OK +>str : Symbol(str, Decl(arrayToLocaleStringES5.ts, 0, 3)) +>dates.toLocaleString : Symbol(ReadonlyArray.toLocaleString, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) +>dates : Symbol(dates, Decl(arrayToLocaleStringES5.ts, 6, 5)) +>toLocaleString : Symbol(ReadonlyArray.toLocaleString, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) + +str = dates.toLocaleString('fr'); // should be error +>str : Symbol(str, Decl(arrayToLocaleStringES5.ts, 0, 3)) +>dates.toLocaleString : Symbol(ReadonlyArray.toLocaleString, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) +>dates : Symbol(dates, Decl(arrayToLocaleStringES5.ts, 6, 5)) +>toLocaleString : Symbol(ReadonlyArray.toLocaleString, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) + +str = dates.toLocaleString('fr', { timeZone: 'UTC' }); // should be error +>str : Symbol(str, Decl(arrayToLocaleStringES5.ts, 0, 3)) +>dates.toLocaleString : Symbol(ReadonlyArray.toLocaleString, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) +>dates : Symbol(dates, Decl(arrayToLocaleStringES5.ts, 6, 5)) +>toLocaleString : Symbol(ReadonlyArray.toLocaleString, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) +>timeZone : Symbol(timeZone, Decl(arrayToLocaleStringES5.ts, 9, 34)) + +const int8Array = new Int8Array(3); +>int8Array : Symbol(int8Array, Decl(arrayToLocaleStringES5.ts, 11, 5)) +>Int8Array : Symbol(Int8Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + +str = int8Array.toLocaleString(); // OK +>str : Symbol(str, Decl(arrayToLocaleStringES5.ts, 0, 3)) +>int8Array.toLocaleString : Symbol(Int8Array.toLocaleString, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) +>int8Array : Symbol(int8Array, Decl(arrayToLocaleStringES5.ts, 11, 5)) +>toLocaleString : Symbol(Int8Array.toLocaleString, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) + +str = int8Array.toLocaleString('en-US'); // should be error +>str : Symbol(str, Decl(arrayToLocaleStringES5.ts, 0, 3)) +>int8Array.toLocaleString : Symbol(Int8Array.toLocaleString, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) +>int8Array : Symbol(int8Array, Decl(arrayToLocaleStringES5.ts, 11, 5)) +>toLocaleString : Symbol(Int8Array.toLocaleString, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) + +str = int8Array.toLocaleString('en-US', { style: 'currency', currency: 'EUR' }); // should be error +>str : Symbol(str, Decl(arrayToLocaleStringES5.ts, 0, 3)) +>int8Array.toLocaleString : Symbol(Int8Array.toLocaleString, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) +>int8Array : Symbol(int8Array, Decl(arrayToLocaleStringES5.ts, 11, 5)) +>toLocaleString : Symbol(Int8Array.toLocaleString, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) +>style : Symbol(style, Decl(arrayToLocaleStringES5.ts, 14, 41)) +>currency : Symbol(currency, Decl(arrayToLocaleStringES5.ts, 14, 60)) + +const uint8Array = new Uint8Array(3); +>uint8Array : Symbol(uint8Array, Decl(arrayToLocaleStringES5.ts, 16, 5)) +>Uint8Array : Symbol(Uint8Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + +str = uint8Array.toLocaleString(); // OK +>str : Symbol(str, Decl(arrayToLocaleStringES5.ts, 0, 3)) +>uint8Array.toLocaleString : Symbol(Uint8Array.toLocaleString, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) +>uint8Array : Symbol(uint8Array, Decl(arrayToLocaleStringES5.ts, 16, 5)) +>toLocaleString : Symbol(Uint8Array.toLocaleString, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) + +str = uint8Array.toLocaleString('en-US'); // should be error +>str : Symbol(str, Decl(arrayToLocaleStringES5.ts, 0, 3)) +>uint8Array.toLocaleString : Symbol(Uint8Array.toLocaleString, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) +>uint8Array : Symbol(uint8Array, Decl(arrayToLocaleStringES5.ts, 16, 5)) +>toLocaleString : Symbol(Uint8Array.toLocaleString, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) + +str = uint8Array.toLocaleString('en-US', { style: 'currency', currency: 'EUR' }); // should be error +>str : Symbol(str, Decl(arrayToLocaleStringES5.ts, 0, 3)) +>uint8Array.toLocaleString : Symbol(Uint8Array.toLocaleString, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) +>uint8Array : Symbol(uint8Array, Decl(arrayToLocaleStringES5.ts, 16, 5)) +>toLocaleString : Symbol(Uint8Array.toLocaleString, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) +>style : Symbol(style, Decl(arrayToLocaleStringES5.ts, 19, 42)) +>currency : Symbol(currency, Decl(arrayToLocaleStringES5.ts, 19, 61)) + +const uint8ClampedArray = new Uint8ClampedArray(3); +>uint8ClampedArray : Symbol(uint8ClampedArray, Decl(arrayToLocaleStringES5.ts, 21, 5)) +>Uint8ClampedArray : Symbol(Uint8ClampedArray, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + +str = uint8ClampedArray.toLocaleString(); // OK +>str : Symbol(str, Decl(arrayToLocaleStringES5.ts, 0, 3)) +>uint8ClampedArray.toLocaleString : Symbol(Uint8ClampedArray.toLocaleString, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) +>uint8ClampedArray : Symbol(uint8ClampedArray, Decl(arrayToLocaleStringES5.ts, 21, 5)) +>toLocaleString : Symbol(Uint8ClampedArray.toLocaleString, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) + +str = uint8ClampedArray.toLocaleString('en-US'); // should be error +>str : Symbol(str, Decl(arrayToLocaleStringES5.ts, 0, 3)) +>uint8ClampedArray.toLocaleString : Symbol(Uint8ClampedArray.toLocaleString, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) +>uint8ClampedArray : Symbol(uint8ClampedArray, Decl(arrayToLocaleStringES5.ts, 21, 5)) +>toLocaleString : Symbol(Uint8ClampedArray.toLocaleString, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) + +str = uint8ClampedArray.toLocaleString('en-US', { style: 'currency', currency: 'EUR' }); // should be error +>str : Symbol(str, Decl(arrayToLocaleStringES5.ts, 0, 3)) +>uint8ClampedArray.toLocaleString : Symbol(Uint8ClampedArray.toLocaleString, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) +>uint8ClampedArray : Symbol(uint8ClampedArray, Decl(arrayToLocaleStringES5.ts, 21, 5)) +>toLocaleString : Symbol(Uint8ClampedArray.toLocaleString, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) +>style : Symbol(style, Decl(arrayToLocaleStringES5.ts, 24, 49)) +>currency : Symbol(currency, Decl(arrayToLocaleStringES5.ts, 24, 68)) + +const int16Array = new Int16Array(3); +>int16Array : Symbol(int16Array, Decl(arrayToLocaleStringES5.ts, 26, 5)) +>Int16Array : Symbol(Int16Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + +str = int16Array.toLocaleString(); // OK +>str : Symbol(str, Decl(arrayToLocaleStringES5.ts, 0, 3)) +>int16Array.toLocaleString : Symbol(Int16Array.toLocaleString, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) +>int16Array : Symbol(int16Array, Decl(arrayToLocaleStringES5.ts, 26, 5)) +>toLocaleString : Symbol(Int16Array.toLocaleString, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) + +str = int16Array.toLocaleString('en-US'); // should be error +>str : Symbol(str, Decl(arrayToLocaleStringES5.ts, 0, 3)) +>int16Array.toLocaleString : Symbol(Int16Array.toLocaleString, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) +>int16Array : Symbol(int16Array, Decl(arrayToLocaleStringES5.ts, 26, 5)) +>toLocaleString : Symbol(Int16Array.toLocaleString, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) + +str = int16Array.toLocaleString('en-US', { style: 'currency', currency: 'EUR' }); // should be error +>str : Symbol(str, Decl(arrayToLocaleStringES5.ts, 0, 3)) +>int16Array.toLocaleString : Symbol(Int16Array.toLocaleString, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) +>int16Array : Symbol(int16Array, Decl(arrayToLocaleStringES5.ts, 26, 5)) +>toLocaleString : Symbol(Int16Array.toLocaleString, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) +>style : Symbol(style, Decl(arrayToLocaleStringES5.ts, 29, 42)) +>currency : Symbol(currency, Decl(arrayToLocaleStringES5.ts, 29, 61)) + +const uint16Array = new Uint16Array(3); +>uint16Array : Symbol(uint16Array, Decl(arrayToLocaleStringES5.ts, 31, 5)) +>Uint16Array : Symbol(Uint16Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + +str = uint16Array.toLocaleString(); // OK +>str : Symbol(str, Decl(arrayToLocaleStringES5.ts, 0, 3)) +>uint16Array.toLocaleString : Symbol(Uint16Array.toLocaleString, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) +>uint16Array : Symbol(uint16Array, Decl(arrayToLocaleStringES5.ts, 31, 5)) +>toLocaleString : Symbol(Uint16Array.toLocaleString, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) + +str = uint16Array.toLocaleString('en-US'); // should be error +>str : Symbol(str, Decl(arrayToLocaleStringES5.ts, 0, 3)) +>uint16Array.toLocaleString : Symbol(Uint16Array.toLocaleString, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) +>uint16Array : Symbol(uint16Array, Decl(arrayToLocaleStringES5.ts, 31, 5)) +>toLocaleString : Symbol(Uint16Array.toLocaleString, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) + +str = uint16Array.toLocaleString('en-US', { style: 'currency', currency: 'EUR' }); // should be error +>str : Symbol(str, Decl(arrayToLocaleStringES5.ts, 0, 3)) +>uint16Array.toLocaleString : Symbol(Uint16Array.toLocaleString, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) +>uint16Array : Symbol(uint16Array, Decl(arrayToLocaleStringES5.ts, 31, 5)) +>toLocaleString : Symbol(Uint16Array.toLocaleString, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) +>style : Symbol(style, Decl(arrayToLocaleStringES5.ts, 34, 43)) +>currency : Symbol(currency, Decl(arrayToLocaleStringES5.ts, 34, 62)) + +const int32Array = new Int32Array(3); +>int32Array : Symbol(int32Array, Decl(arrayToLocaleStringES5.ts, 36, 5)) +>Int32Array : Symbol(Int32Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + +str = int32Array.toLocaleString(); // OK +>str : Symbol(str, Decl(arrayToLocaleStringES5.ts, 0, 3)) +>int32Array.toLocaleString : Symbol(Int32Array.toLocaleString, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) +>int32Array : Symbol(int32Array, Decl(arrayToLocaleStringES5.ts, 36, 5)) +>toLocaleString : Symbol(Int32Array.toLocaleString, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) + +str = int32Array.toLocaleString('en-US'); // should be error +>str : Symbol(str, Decl(arrayToLocaleStringES5.ts, 0, 3)) +>int32Array.toLocaleString : Symbol(Int32Array.toLocaleString, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) +>int32Array : Symbol(int32Array, Decl(arrayToLocaleStringES5.ts, 36, 5)) +>toLocaleString : Symbol(Int32Array.toLocaleString, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) + +str = int32Array.toLocaleString('en-US', { style: 'currency', currency: 'EUR' }); // should be error +>str : Symbol(str, Decl(arrayToLocaleStringES5.ts, 0, 3)) +>int32Array.toLocaleString : Symbol(Int32Array.toLocaleString, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) +>int32Array : Symbol(int32Array, Decl(arrayToLocaleStringES5.ts, 36, 5)) +>toLocaleString : Symbol(Int32Array.toLocaleString, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) +>style : Symbol(style, Decl(arrayToLocaleStringES5.ts, 39, 42)) +>currency : Symbol(currency, Decl(arrayToLocaleStringES5.ts, 39, 61)) + +const uint32Array = new Uint32Array(3); +>uint32Array : Symbol(uint32Array, Decl(arrayToLocaleStringES5.ts, 41, 5)) +>Uint32Array : Symbol(Uint32Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + +str = uint32Array.toLocaleString(); // OK +>str : Symbol(str, Decl(arrayToLocaleStringES5.ts, 0, 3)) +>uint32Array.toLocaleString : Symbol(Uint32Array.toLocaleString, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) +>uint32Array : Symbol(uint32Array, Decl(arrayToLocaleStringES5.ts, 41, 5)) +>toLocaleString : Symbol(Uint32Array.toLocaleString, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) + +str = uint32Array.toLocaleString('en-US'); // should be error +>str : Symbol(str, Decl(arrayToLocaleStringES5.ts, 0, 3)) +>uint32Array.toLocaleString : Symbol(Uint32Array.toLocaleString, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) +>uint32Array : Symbol(uint32Array, Decl(arrayToLocaleStringES5.ts, 41, 5)) +>toLocaleString : Symbol(Uint32Array.toLocaleString, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) + +str = uint32Array.toLocaleString('en-US', { style: 'currency', currency: 'EUR' }); // should be error +>str : Symbol(str, Decl(arrayToLocaleStringES5.ts, 0, 3)) +>uint32Array.toLocaleString : Symbol(Uint32Array.toLocaleString, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) +>uint32Array : Symbol(uint32Array, Decl(arrayToLocaleStringES5.ts, 41, 5)) +>toLocaleString : Symbol(Uint32Array.toLocaleString, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) +>style : Symbol(style, Decl(arrayToLocaleStringES5.ts, 44, 43)) +>currency : Symbol(currency, Decl(arrayToLocaleStringES5.ts, 44, 62)) + +const float32Array = new Float32Array(3); +>float32Array : Symbol(float32Array, Decl(arrayToLocaleStringES5.ts, 46, 5)) +>Float32Array : Symbol(Float32Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + +str = float32Array.toLocaleString(); // OK +>str : Symbol(str, Decl(arrayToLocaleStringES5.ts, 0, 3)) +>float32Array.toLocaleString : Symbol(Float32Array.toLocaleString, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) +>float32Array : Symbol(float32Array, Decl(arrayToLocaleStringES5.ts, 46, 5)) +>toLocaleString : Symbol(Float32Array.toLocaleString, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) + +str = float32Array.toLocaleString('en-US'); // should be error +>str : Symbol(str, Decl(arrayToLocaleStringES5.ts, 0, 3)) +>float32Array.toLocaleString : Symbol(Float32Array.toLocaleString, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) +>float32Array : Symbol(float32Array, Decl(arrayToLocaleStringES5.ts, 46, 5)) +>toLocaleString : Symbol(Float32Array.toLocaleString, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) + +str = float32Array.toLocaleString('en-US', { style: 'currency', currency: 'EUR' }); // should be error +>str : Symbol(str, Decl(arrayToLocaleStringES5.ts, 0, 3)) +>float32Array.toLocaleString : Symbol(Float32Array.toLocaleString, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) +>float32Array : Symbol(float32Array, Decl(arrayToLocaleStringES5.ts, 46, 5)) +>toLocaleString : Symbol(Float32Array.toLocaleString, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) +>style : Symbol(style, Decl(arrayToLocaleStringES5.ts, 49, 44)) +>currency : Symbol(currency, Decl(arrayToLocaleStringES5.ts, 49, 63)) + +const float64Array = new Float64Array(3); +>float64Array : Symbol(float64Array, Decl(arrayToLocaleStringES5.ts, 51, 5)) +>Float64Array : Symbol(Float64Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + +str = float64Array.toLocaleString(); // OK +>str : Symbol(str, Decl(arrayToLocaleStringES5.ts, 0, 3)) +>float64Array.toLocaleString : Symbol(Float64Array.toLocaleString, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) +>float64Array : Symbol(float64Array, Decl(arrayToLocaleStringES5.ts, 51, 5)) +>toLocaleString : Symbol(Float64Array.toLocaleString, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) + +str = float64Array.toLocaleString('en-US'); // should be error +>str : Symbol(str, Decl(arrayToLocaleStringES5.ts, 0, 3)) +>float64Array.toLocaleString : Symbol(Float64Array.toLocaleString, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) +>float64Array : Symbol(float64Array, Decl(arrayToLocaleStringES5.ts, 51, 5)) +>toLocaleString : Symbol(Float64Array.toLocaleString, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) + +str = float64Array.toLocaleString('en-US', { style: 'currency', currency: 'EUR' }); // should be error +>str : Symbol(str, Decl(arrayToLocaleStringES5.ts, 0, 3)) +>float64Array.toLocaleString : Symbol(Float64Array.toLocaleString, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) +>float64Array : Symbol(float64Array, Decl(arrayToLocaleStringES5.ts, 51, 5)) +>toLocaleString : Symbol(Float64Array.toLocaleString, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) +>style : Symbol(style, Decl(arrayToLocaleStringES5.ts, 54, 44)) +>currency : Symbol(currency, Decl(arrayToLocaleStringES5.ts, 54, 63)) + diff --git a/tests/baselines/reference/arrayToLocaleStringES5(target=es5).types b/tests/baselines/reference/arrayToLocaleStringES5(target=es5).types new file mode 100644 index 0000000000000..008380d28a7e9 --- /dev/null +++ b/tests/baselines/reference/arrayToLocaleStringES5(target=es5).types @@ -0,0 +1,735 @@ +//// [tests/cases/compiler/arrayToLocaleStringES5.ts] //// + +=== arrayToLocaleStringES5.ts === +let str: string; +>str : string +> : ^^^^^^ + +const arr = [1, 2, 3]; +>arr : number[] +> : ^^^^^^^^ +>[1, 2, 3] : number[] +> : ^^^^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ +>3 : 3 +> : ^ + +str = arr.toLocaleString(); // OK +>str = arr.toLocaleString() : string +> : ^^^^^^ +>str : string +> : ^^^^^^ +>arr.toLocaleString() : string +> : ^^^^^^ +>arr.toLocaleString : { (): string; (locales: string | string[], options?: Intl.NumberFormatOptions & Intl.DateTimeFormatOptions): string; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^^ +>arr : number[] +> : ^^^^^^^^ +>toLocaleString : { (): string; (locales: string | string[], options?: Intl.NumberFormatOptions & Intl.DateTimeFormatOptions): string; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^^ + +str = arr.toLocaleString('en-US'); // should be error +>str = arr.toLocaleString('en-US') : string +> : ^^^^^^ +>str : string +> : ^^^^^^ +>arr.toLocaleString('en-US') : string +> : ^^^^^^ +>arr.toLocaleString : { (): string; (locales: string | string[], options?: Intl.NumberFormatOptions & Intl.DateTimeFormatOptions): string; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^^ +>arr : number[] +> : ^^^^^^^^ +>toLocaleString : { (): string; (locales: string | string[], options?: Intl.NumberFormatOptions & Intl.DateTimeFormatOptions): string; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^^ +>'en-US' : "en-US" +> : ^^^^^^^ + +str = arr.toLocaleString('en-US', { style: 'currency', currency: 'EUR' }); // should be error +>str = arr.toLocaleString('en-US', { style: 'currency', currency: 'EUR' }) : string +> : ^^^^^^ +>str : string +> : ^^^^^^ +>arr.toLocaleString('en-US', { style: 'currency', currency: 'EUR' }) : string +> : ^^^^^^ +>arr.toLocaleString : { (): string; (locales: string | string[], options?: Intl.NumberFormatOptions & Intl.DateTimeFormatOptions): string; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^^ +>arr : number[] +> : ^^^^^^^^ +>toLocaleString : { (): string; (locales: string | string[], options?: Intl.NumberFormatOptions & Intl.DateTimeFormatOptions): string; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^^ +>'en-US' : "en-US" +> : ^^^^^^^ +>{ style: 'currency', currency: 'EUR' } : { style: "currency"; currency: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>style : "currency" +> : ^^^^^^^^^^ +>'currency' : "currency" +> : ^^^^^^^^^^ +>currency : string +> : ^^^^^^ +>'EUR' : "EUR" +> : ^^^^^ + +const dates: readonly Date[] = [new Date(), new Date()]; +>dates : readonly Date[] +> : ^^^^^^^^^^^^^^^ +>[new Date(), new Date()] : Date[] +> : ^^^^^^ +>new Date() : Date +> : ^^^^ +>Date : DateConstructor +> : ^^^^^^^^^^^^^^^ +>new Date() : Date +> : ^^^^ +>Date : DateConstructor +> : ^^^^^^^^^^^^^^^ + +str = dates.toLocaleString(); // OK +>str = dates.toLocaleString() : string +> : ^^^^^^ +>str : string +> : ^^^^^^ +>dates.toLocaleString() : string +> : ^^^^^^ +>dates.toLocaleString : { (): string; (locales: string | string[], options?: Intl.NumberFormatOptions & Intl.DateTimeFormatOptions): string; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^^ +>dates : readonly Date[] +> : ^^^^^^^^^^^^^^^ +>toLocaleString : { (): string; (locales: string | string[], options?: Intl.NumberFormatOptions & Intl.DateTimeFormatOptions): string; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^^ + +str = dates.toLocaleString('fr'); // should be error +>str = dates.toLocaleString('fr') : string +> : ^^^^^^ +>str : string +> : ^^^^^^ +>dates.toLocaleString('fr') : string +> : ^^^^^^ +>dates.toLocaleString : { (): string; (locales: string | string[], options?: Intl.NumberFormatOptions & Intl.DateTimeFormatOptions): string; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^^ +>dates : readonly Date[] +> : ^^^^^^^^^^^^^^^ +>toLocaleString : { (): string; (locales: string | string[], options?: Intl.NumberFormatOptions & Intl.DateTimeFormatOptions): string; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^^ +>'fr' : "fr" +> : ^^^^ + +str = dates.toLocaleString('fr', { timeZone: 'UTC' }); // should be error +>str = dates.toLocaleString('fr', { timeZone: 'UTC' }) : string +> : ^^^^^^ +>str : string +> : ^^^^^^ +>dates.toLocaleString('fr', { timeZone: 'UTC' }) : string +> : ^^^^^^ +>dates.toLocaleString : { (): string; (locales: string | string[], options?: Intl.NumberFormatOptions & Intl.DateTimeFormatOptions): string; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^^ +>dates : readonly Date[] +> : ^^^^^^^^^^^^^^^ +>toLocaleString : { (): string; (locales: string | string[], options?: Intl.NumberFormatOptions & Intl.DateTimeFormatOptions): string; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^^ +>'fr' : "fr" +> : ^^^^ +>{ timeZone: 'UTC' } : { timeZone: string; } +> : ^^^^^^^^^^^^^^^^^^^^^ +>timeZone : string +> : ^^^^^^ +>'UTC' : "UTC" +> : ^^^^^ + +const int8Array = new Int8Array(3); +>int8Array : Int8Array +> : ^^^^^^^^^^^^^^^^^^^^^^ +>new Int8Array(3) : Int8Array +> : ^^^^^^^^^^^^^^^^^^^^^^ +>Int8Array : Int8ArrayConstructor +> : ^^^^^^^^^^^^^^^^^^^^ +>3 : 3 +> : ^ + +str = int8Array.toLocaleString(); // OK +>str = int8Array.toLocaleString() : string +> : ^^^^^^ +>str : string +> : ^^^^^^ +>int8Array.toLocaleString() : string +> : ^^^^^^ +>int8Array.toLocaleString : { (): string; (locales: string | string[], options?: Intl.NumberFormatOptions): string; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^^ +>int8Array : Int8Array +> : ^^^^^^^^^^^^^^^^^^^^^^ +>toLocaleString : { (): string; (locales: string | string[], options?: Intl.NumberFormatOptions): string; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^^ + +str = int8Array.toLocaleString('en-US'); // should be error +>str = int8Array.toLocaleString('en-US') : string +> : ^^^^^^ +>str : string +> : ^^^^^^ +>int8Array.toLocaleString('en-US') : string +> : ^^^^^^ +>int8Array.toLocaleString : { (): string; (locales: string | string[], options?: Intl.NumberFormatOptions): string; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^^ +>int8Array : Int8Array +> : ^^^^^^^^^^^^^^^^^^^^^^ +>toLocaleString : { (): string; (locales: string | string[], options?: Intl.NumberFormatOptions): string; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^^ +>'en-US' : "en-US" +> : ^^^^^^^ + +str = int8Array.toLocaleString('en-US', { style: 'currency', currency: 'EUR' }); // should be error +>str = int8Array.toLocaleString('en-US', { style: 'currency', currency: 'EUR' }) : string +> : ^^^^^^ +>str : string +> : ^^^^^^ +>int8Array.toLocaleString('en-US', { style: 'currency', currency: 'EUR' }) : string +> : ^^^^^^ +>int8Array.toLocaleString : { (): string; (locales: string | string[], options?: Intl.NumberFormatOptions): string; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^^ +>int8Array : Int8Array +> : ^^^^^^^^^^^^^^^^^^^^^^ +>toLocaleString : { (): string; (locales: string | string[], options?: Intl.NumberFormatOptions): string; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^^ +>'en-US' : "en-US" +> : ^^^^^^^ +>{ style: 'currency', currency: 'EUR' } : { style: "currency"; currency: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>style : "currency" +> : ^^^^^^^^^^ +>'currency' : "currency" +> : ^^^^^^^^^^ +>currency : string +> : ^^^^^^ +>'EUR' : "EUR" +> : ^^^^^ + +const uint8Array = new Uint8Array(3); +>uint8Array : Uint8Array +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>new Uint8Array(3) : Uint8Array +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>Uint8Array : Uint8ArrayConstructor +> : ^^^^^^^^^^^^^^^^^^^^^ +>3 : 3 +> : ^ + +str = uint8Array.toLocaleString(); // OK +>str = uint8Array.toLocaleString() : string +> : ^^^^^^ +>str : string +> : ^^^^^^ +>uint8Array.toLocaleString() : string +> : ^^^^^^ +>uint8Array.toLocaleString : { (): string; (locales: string | string[], options?: Intl.NumberFormatOptions): string; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^^ +>uint8Array : Uint8Array +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>toLocaleString : { (): string; (locales: string | string[], options?: Intl.NumberFormatOptions): string; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^^ + +str = uint8Array.toLocaleString('en-US'); // should be error +>str = uint8Array.toLocaleString('en-US') : string +> : ^^^^^^ +>str : string +> : ^^^^^^ +>uint8Array.toLocaleString('en-US') : string +> : ^^^^^^ +>uint8Array.toLocaleString : { (): string; (locales: string | string[], options?: Intl.NumberFormatOptions): string; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^^ +>uint8Array : Uint8Array +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>toLocaleString : { (): string; (locales: string | string[], options?: Intl.NumberFormatOptions): string; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^^ +>'en-US' : "en-US" +> : ^^^^^^^ + +str = uint8Array.toLocaleString('en-US', { style: 'currency', currency: 'EUR' }); // should be error +>str = uint8Array.toLocaleString('en-US', { style: 'currency', currency: 'EUR' }) : string +> : ^^^^^^ +>str : string +> : ^^^^^^ +>uint8Array.toLocaleString('en-US', { style: 'currency', currency: 'EUR' }) : string +> : ^^^^^^ +>uint8Array.toLocaleString : { (): string; (locales: string | string[], options?: Intl.NumberFormatOptions): string; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^^ +>uint8Array : Uint8Array +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>toLocaleString : { (): string; (locales: string | string[], options?: Intl.NumberFormatOptions): string; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^^ +>'en-US' : "en-US" +> : ^^^^^^^ +>{ style: 'currency', currency: 'EUR' } : { style: "currency"; currency: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>style : "currency" +> : ^^^^^^^^^^ +>'currency' : "currency" +> : ^^^^^^^^^^ +>currency : string +> : ^^^^^^ +>'EUR' : "EUR" +> : ^^^^^ + +const uint8ClampedArray = new Uint8ClampedArray(3); +>uint8ClampedArray : Uint8ClampedArray +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>new Uint8ClampedArray(3) : Uint8ClampedArray +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>Uint8ClampedArray : Uint8ClampedArrayConstructor +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>3 : 3 +> : ^ + +str = uint8ClampedArray.toLocaleString(); // OK +>str = uint8ClampedArray.toLocaleString() : string +> : ^^^^^^ +>str : string +> : ^^^^^^ +>uint8ClampedArray.toLocaleString() : string +> : ^^^^^^ +>uint8ClampedArray.toLocaleString : { (): string; (locales: string | string[], options?: Intl.NumberFormatOptions): string; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^^ +>uint8ClampedArray : Uint8ClampedArray +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>toLocaleString : { (): string; (locales: string | string[], options?: Intl.NumberFormatOptions): string; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^^ + +str = uint8ClampedArray.toLocaleString('en-US'); // should be error +>str = uint8ClampedArray.toLocaleString('en-US') : string +> : ^^^^^^ +>str : string +> : ^^^^^^ +>uint8ClampedArray.toLocaleString('en-US') : string +> : ^^^^^^ +>uint8ClampedArray.toLocaleString : { (): string; (locales: string | string[], options?: Intl.NumberFormatOptions): string; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^^ +>uint8ClampedArray : Uint8ClampedArray +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>toLocaleString : { (): string; (locales: string | string[], options?: Intl.NumberFormatOptions): string; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^^ +>'en-US' : "en-US" +> : ^^^^^^^ + +str = uint8ClampedArray.toLocaleString('en-US', { style: 'currency', currency: 'EUR' }); // should be error +>str = uint8ClampedArray.toLocaleString('en-US', { style: 'currency', currency: 'EUR' }) : string +> : ^^^^^^ +>str : string +> : ^^^^^^ +>uint8ClampedArray.toLocaleString('en-US', { style: 'currency', currency: 'EUR' }) : string +> : ^^^^^^ +>uint8ClampedArray.toLocaleString : { (): string; (locales: string | string[], options?: Intl.NumberFormatOptions): string; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^^ +>uint8ClampedArray : Uint8ClampedArray +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>toLocaleString : { (): string; (locales: string | string[], options?: Intl.NumberFormatOptions): string; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^^ +>'en-US' : "en-US" +> : ^^^^^^^ +>{ style: 'currency', currency: 'EUR' } : { style: "currency"; currency: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>style : "currency" +> : ^^^^^^^^^^ +>'currency' : "currency" +> : ^^^^^^^^^^ +>currency : string +> : ^^^^^^ +>'EUR' : "EUR" +> : ^^^^^ + +const int16Array = new Int16Array(3); +>int16Array : Int16Array +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>new Int16Array(3) : Int16Array +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>Int16Array : Int16ArrayConstructor +> : ^^^^^^^^^^^^^^^^^^^^^ +>3 : 3 +> : ^ + +str = int16Array.toLocaleString(); // OK +>str = int16Array.toLocaleString() : string +> : ^^^^^^ +>str : string +> : ^^^^^^ +>int16Array.toLocaleString() : string +> : ^^^^^^ +>int16Array.toLocaleString : { (): string; (locales: string | string[], options?: Intl.NumberFormatOptions): string; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^^ +>int16Array : Int16Array +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>toLocaleString : { (): string; (locales: string | string[], options?: Intl.NumberFormatOptions): string; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^^ + +str = int16Array.toLocaleString('en-US'); // should be error +>str = int16Array.toLocaleString('en-US') : string +> : ^^^^^^ +>str : string +> : ^^^^^^ +>int16Array.toLocaleString('en-US') : string +> : ^^^^^^ +>int16Array.toLocaleString : { (): string; (locales: string | string[], options?: Intl.NumberFormatOptions): string; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^^ +>int16Array : Int16Array +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>toLocaleString : { (): string; (locales: string | string[], options?: Intl.NumberFormatOptions): string; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^^ +>'en-US' : "en-US" +> : ^^^^^^^ + +str = int16Array.toLocaleString('en-US', { style: 'currency', currency: 'EUR' }); // should be error +>str = int16Array.toLocaleString('en-US', { style: 'currency', currency: 'EUR' }) : string +> : ^^^^^^ +>str : string +> : ^^^^^^ +>int16Array.toLocaleString('en-US', { style: 'currency', currency: 'EUR' }) : string +> : ^^^^^^ +>int16Array.toLocaleString : { (): string; (locales: string | string[], options?: Intl.NumberFormatOptions): string; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^^ +>int16Array : Int16Array +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>toLocaleString : { (): string; (locales: string | string[], options?: Intl.NumberFormatOptions): string; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^^ +>'en-US' : "en-US" +> : ^^^^^^^ +>{ style: 'currency', currency: 'EUR' } : { style: "currency"; currency: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>style : "currency" +> : ^^^^^^^^^^ +>'currency' : "currency" +> : ^^^^^^^^^^ +>currency : string +> : ^^^^^^ +>'EUR' : "EUR" +> : ^^^^^ + +const uint16Array = new Uint16Array(3); +>uint16Array : Uint16Array +> : ^^^^^^^^^^^^^^^^^^^^^^^^ +>new Uint16Array(3) : Uint16Array +> : ^^^^^^^^^^^^^^^^^^^^^^^^ +>Uint16Array : Uint16ArrayConstructor +> : ^^^^^^^^^^^^^^^^^^^^^^ +>3 : 3 +> : ^ + +str = uint16Array.toLocaleString(); // OK +>str = uint16Array.toLocaleString() : string +> : ^^^^^^ +>str : string +> : ^^^^^^ +>uint16Array.toLocaleString() : string +> : ^^^^^^ +>uint16Array.toLocaleString : { (): string; (locales: string | string[], options?: Intl.NumberFormatOptions): string; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^^ +>uint16Array : Uint16Array +> : ^^^^^^^^^^^^^^^^^^^^^^^^ +>toLocaleString : { (): string; (locales: string | string[], options?: Intl.NumberFormatOptions): string; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^^ + +str = uint16Array.toLocaleString('en-US'); // should be error +>str = uint16Array.toLocaleString('en-US') : string +> : ^^^^^^ +>str : string +> : ^^^^^^ +>uint16Array.toLocaleString('en-US') : string +> : ^^^^^^ +>uint16Array.toLocaleString : { (): string; (locales: string | string[], options?: Intl.NumberFormatOptions): string; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^^ +>uint16Array : Uint16Array +> : ^^^^^^^^^^^^^^^^^^^^^^^^ +>toLocaleString : { (): string; (locales: string | string[], options?: Intl.NumberFormatOptions): string; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^^ +>'en-US' : "en-US" +> : ^^^^^^^ + +str = uint16Array.toLocaleString('en-US', { style: 'currency', currency: 'EUR' }); // should be error +>str = uint16Array.toLocaleString('en-US', { style: 'currency', currency: 'EUR' }) : string +> : ^^^^^^ +>str : string +> : ^^^^^^ +>uint16Array.toLocaleString('en-US', { style: 'currency', currency: 'EUR' }) : string +> : ^^^^^^ +>uint16Array.toLocaleString : { (): string; (locales: string | string[], options?: Intl.NumberFormatOptions): string; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^^ +>uint16Array : Uint16Array +> : ^^^^^^^^^^^^^^^^^^^^^^^^ +>toLocaleString : { (): string; (locales: string | string[], options?: Intl.NumberFormatOptions): string; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^^ +>'en-US' : "en-US" +> : ^^^^^^^ +>{ style: 'currency', currency: 'EUR' } : { style: "currency"; currency: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>style : "currency" +> : ^^^^^^^^^^ +>'currency' : "currency" +> : ^^^^^^^^^^ +>currency : string +> : ^^^^^^ +>'EUR' : "EUR" +> : ^^^^^ + +const int32Array = new Int32Array(3); +>int32Array : Int32Array +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>new Int32Array(3) : Int32Array +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>Int32Array : Int32ArrayConstructor +> : ^^^^^^^^^^^^^^^^^^^^^ +>3 : 3 +> : ^ + +str = int32Array.toLocaleString(); // OK +>str = int32Array.toLocaleString() : string +> : ^^^^^^ +>str : string +> : ^^^^^^ +>int32Array.toLocaleString() : string +> : ^^^^^^ +>int32Array.toLocaleString : { (): string; (locales: string | string[], options?: Intl.NumberFormatOptions): string; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^^ +>int32Array : Int32Array +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>toLocaleString : { (): string; (locales: string | string[], options?: Intl.NumberFormatOptions): string; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^^ + +str = int32Array.toLocaleString('en-US'); // should be error +>str = int32Array.toLocaleString('en-US') : string +> : ^^^^^^ +>str : string +> : ^^^^^^ +>int32Array.toLocaleString('en-US') : string +> : ^^^^^^ +>int32Array.toLocaleString : { (): string; (locales: string | string[], options?: Intl.NumberFormatOptions): string; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^^ +>int32Array : Int32Array +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>toLocaleString : { (): string; (locales: string | string[], options?: Intl.NumberFormatOptions): string; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^^ +>'en-US' : "en-US" +> : ^^^^^^^ + +str = int32Array.toLocaleString('en-US', { style: 'currency', currency: 'EUR' }); // should be error +>str = int32Array.toLocaleString('en-US', { style: 'currency', currency: 'EUR' }) : string +> : ^^^^^^ +>str : string +> : ^^^^^^ +>int32Array.toLocaleString('en-US', { style: 'currency', currency: 'EUR' }) : string +> : ^^^^^^ +>int32Array.toLocaleString : { (): string; (locales: string | string[], options?: Intl.NumberFormatOptions): string; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^^ +>int32Array : Int32Array +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>toLocaleString : { (): string; (locales: string | string[], options?: Intl.NumberFormatOptions): string; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^^ +>'en-US' : "en-US" +> : ^^^^^^^ +>{ style: 'currency', currency: 'EUR' } : { style: "currency"; currency: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>style : "currency" +> : ^^^^^^^^^^ +>'currency' : "currency" +> : ^^^^^^^^^^ +>currency : string +> : ^^^^^^ +>'EUR' : "EUR" +> : ^^^^^ + +const uint32Array = new Uint32Array(3); +>uint32Array : Uint32Array +> : ^^^^^^^^^^^^^^^^^^^^^^^^ +>new Uint32Array(3) : Uint32Array +> : ^^^^^^^^^^^^^^^^^^^^^^^^ +>Uint32Array : Uint32ArrayConstructor +> : ^^^^^^^^^^^^^^^^^^^^^^ +>3 : 3 +> : ^ + +str = uint32Array.toLocaleString(); // OK +>str = uint32Array.toLocaleString() : string +> : ^^^^^^ +>str : string +> : ^^^^^^ +>uint32Array.toLocaleString() : string +> : ^^^^^^ +>uint32Array.toLocaleString : { (): string; (locales: string | string[], options?: Intl.NumberFormatOptions): string; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^^ +>uint32Array : Uint32Array +> : ^^^^^^^^^^^^^^^^^^^^^^^^ +>toLocaleString : { (): string; (locales: string | string[], options?: Intl.NumberFormatOptions): string; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^^ + +str = uint32Array.toLocaleString('en-US'); // should be error +>str = uint32Array.toLocaleString('en-US') : string +> : ^^^^^^ +>str : string +> : ^^^^^^ +>uint32Array.toLocaleString('en-US') : string +> : ^^^^^^ +>uint32Array.toLocaleString : { (): string; (locales: string | string[], options?: Intl.NumberFormatOptions): string; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^^ +>uint32Array : Uint32Array +> : ^^^^^^^^^^^^^^^^^^^^^^^^ +>toLocaleString : { (): string; (locales: string | string[], options?: Intl.NumberFormatOptions): string; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^^ +>'en-US' : "en-US" +> : ^^^^^^^ + +str = uint32Array.toLocaleString('en-US', { style: 'currency', currency: 'EUR' }); // should be error +>str = uint32Array.toLocaleString('en-US', { style: 'currency', currency: 'EUR' }) : string +> : ^^^^^^ +>str : string +> : ^^^^^^ +>uint32Array.toLocaleString('en-US', { style: 'currency', currency: 'EUR' }) : string +> : ^^^^^^ +>uint32Array.toLocaleString : { (): string; (locales: string | string[], options?: Intl.NumberFormatOptions): string; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^^ +>uint32Array : Uint32Array +> : ^^^^^^^^^^^^^^^^^^^^^^^^ +>toLocaleString : { (): string; (locales: string | string[], options?: Intl.NumberFormatOptions): string; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^^ +>'en-US' : "en-US" +> : ^^^^^^^ +>{ style: 'currency', currency: 'EUR' } : { style: "currency"; currency: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>style : "currency" +> : ^^^^^^^^^^ +>'currency' : "currency" +> : ^^^^^^^^^^ +>currency : string +> : ^^^^^^ +>'EUR' : "EUR" +> : ^^^^^ + +const float32Array = new Float32Array(3); +>float32Array : Float32Array +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>new Float32Array(3) : Float32Array +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>Float32Array : Float32ArrayConstructor +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>3 : 3 +> : ^ + +str = float32Array.toLocaleString(); // OK +>str = float32Array.toLocaleString() : string +> : ^^^^^^ +>str : string +> : ^^^^^^ +>float32Array.toLocaleString() : string +> : ^^^^^^ +>float32Array.toLocaleString : { (): string; (locales: string | string[], options?: Intl.NumberFormatOptions): string; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^^ +>float32Array : Float32Array +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>toLocaleString : { (): string; (locales: string | string[], options?: Intl.NumberFormatOptions): string; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^^ + +str = float32Array.toLocaleString('en-US'); // should be error +>str = float32Array.toLocaleString('en-US') : string +> : ^^^^^^ +>str : string +> : ^^^^^^ +>float32Array.toLocaleString('en-US') : string +> : ^^^^^^ +>float32Array.toLocaleString : { (): string; (locales: string | string[], options?: Intl.NumberFormatOptions): string; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^^ +>float32Array : Float32Array +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>toLocaleString : { (): string; (locales: string | string[], options?: Intl.NumberFormatOptions): string; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^^ +>'en-US' : "en-US" +> : ^^^^^^^ + +str = float32Array.toLocaleString('en-US', { style: 'currency', currency: 'EUR' }); // should be error +>str = float32Array.toLocaleString('en-US', { style: 'currency', currency: 'EUR' }) : string +> : ^^^^^^ +>str : string +> : ^^^^^^ +>float32Array.toLocaleString('en-US', { style: 'currency', currency: 'EUR' }) : string +> : ^^^^^^ +>float32Array.toLocaleString : { (): string; (locales: string | string[], options?: Intl.NumberFormatOptions): string; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^^ +>float32Array : Float32Array +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>toLocaleString : { (): string; (locales: string | string[], options?: Intl.NumberFormatOptions): string; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^^ +>'en-US' : "en-US" +> : ^^^^^^^ +>{ style: 'currency', currency: 'EUR' } : { style: "currency"; currency: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>style : "currency" +> : ^^^^^^^^^^ +>'currency' : "currency" +> : ^^^^^^^^^^ +>currency : string +> : ^^^^^^ +>'EUR' : "EUR" +> : ^^^^^ + +const float64Array = new Float64Array(3); +>float64Array : Float64Array +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>new Float64Array(3) : Float64Array +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>Float64Array : Float64ArrayConstructor +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>3 : 3 +> : ^ + +str = float64Array.toLocaleString(); // OK +>str = float64Array.toLocaleString() : string +> : ^^^^^^ +>str : string +> : ^^^^^^ +>float64Array.toLocaleString() : string +> : ^^^^^^ +>float64Array.toLocaleString : { (): string; (locales: string | string[], options?: Intl.NumberFormatOptions): string; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^^ +>float64Array : Float64Array +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>toLocaleString : { (): string; (locales: string | string[], options?: Intl.NumberFormatOptions): string; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^^ + +str = float64Array.toLocaleString('en-US'); // should be error +>str = float64Array.toLocaleString('en-US') : string +> : ^^^^^^ +>str : string +> : ^^^^^^ +>float64Array.toLocaleString('en-US') : string +> : ^^^^^^ +>float64Array.toLocaleString : { (): string; (locales: string | string[], options?: Intl.NumberFormatOptions): string; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^^ +>float64Array : Float64Array +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>toLocaleString : { (): string; (locales: string | string[], options?: Intl.NumberFormatOptions): string; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^^ +>'en-US' : "en-US" +> : ^^^^^^^ + +str = float64Array.toLocaleString('en-US', { style: 'currency', currency: 'EUR' }); // should be error +>str = float64Array.toLocaleString('en-US', { style: 'currency', currency: 'EUR' }) : string +> : ^^^^^^ +>str : string +> : ^^^^^^ +>float64Array.toLocaleString('en-US', { style: 'currency', currency: 'EUR' }) : string +> : ^^^^^^ +>float64Array.toLocaleString : { (): string; (locales: string | string[], options?: Intl.NumberFormatOptions): string; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^^ +>float64Array : Float64Array +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>toLocaleString : { (): string; (locales: string | string[], options?: Intl.NumberFormatOptions): string; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^^ +>'en-US' : "en-US" +> : ^^^^^^^ +>{ style: 'currency', currency: 'EUR' } : { style: "currency"; currency: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>style : "currency" +> : ^^^^^^^^^^ +>'currency' : "currency" +> : ^^^^^^^^^^ +>currency : string +> : ^^^^^^ +>'EUR' : "EUR" +> : ^^^^^ + diff --git a/tests/baselines/reference/arrowFunctionWithParameterNameAsync_es2017(target=es2015).js b/tests/baselines/reference/arrowFunctionWithParameterNameAsync_es2017(target=es2015).js new file mode 100644 index 0000000000000..a53f208b4f58d --- /dev/null +++ b/tests/baselines/reference/arrowFunctionWithParameterNameAsync_es2017(target=es2015).js @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/async/es2017/asyncArrowFunction/arrowFunctionWithParameterNameAsync_es2017.ts] //// + +//// [arrowFunctionWithParameterNameAsync_es2017.ts] +const x = async => async; + +//// [arrowFunctionWithParameterNameAsync_es2017.js] +const x = async => async; diff --git a/tests/baselines/reference/arrowFunctionWithParameterNameAsync_es2017.symbols b/tests/baselines/reference/arrowFunctionWithParameterNameAsync_es2017(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/arrowFunctionWithParameterNameAsync_es2017.symbols rename to tests/baselines/reference/arrowFunctionWithParameterNameAsync_es2017(target=es2015).symbols diff --git a/tests/baselines/reference/arrowFunctionWithParameterNameAsync_es2017.types b/tests/baselines/reference/arrowFunctionWithParameterNameAsync_es2017(target=es2015).types similarity index 100% rename from tests/baselines/reference/arrowFunctionWithParameterNameAsync_es2017.types rename to tests/baselines/reference/arrowFunctionWithParameterNameAsync_es2017(target=es2015).types diff --git a/tests/baselines/reference/arrowFunctionWithParameterNameAsync_es2017.js b/tests/baselines/reference/arrowFunctionWithParameterNameAsync_es2017(target=es5).js similarity index 100% rename from tests/baselines/reference/arrowFunctionWithParameterNameAsync_es2017.js rename to tests/baselines/reference/arrowFunctionWithParameterNameAsync_es2017(target=es5).js diff --git a/tests/baselines/reference/arrowFunctionWithParameterNameAsync_es2017(target=es5).symbols b/tests/baselines/reference/arrowFunctionWithParameterNameAsync_es2017(target=es5).symbols new file mode 100644 index 0000000000000..97a12e1650dc4 --- /dev/null +++ b/tests/baselines/reference/arrowFunctionWithParameterNameAsync_es2017(target=es5).symbols @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/async/es2017/asyncArrowFunction/arrowFunctionWithParameterNameAsync_es2017.ts] //// + +=== arrowFunctionWithParameterNameAsync_es2017.ts === +const x = async => async; +>x : Symbol(x, Decl(arrowFunctionWithParameterNameAsync_es2017.ts, 0, 5)) +>async : Symbol(async, Decl(arrowFunctionWithParameterNameAsync_es2017.ts, 0, 9)) +>async : Symbol(async, Decl(arrowFunctionWithParameterNameAsync_es2017.ts, 0, 9)) + diff --git a/tests/baselines/reference/arrowFunctionWithParameterNameAsync_es2017(target=es5).types b/tests/baselines/reference/arrowFunctionWithParameterNameAsync_es2017(target=es5).types new file mode 100644 index 0000000000000..a9a7af90fd59b --- /dev/null +++ b/tests/baselines/reference/arrowFunctionWithParameterNameAsync_es2017(target=es5).types @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/async/es2017/asyncArrowFunction/arrowFunctionWithParameterNameAsync_es2017.ts] //// + +=== arrowFunctionWithParameterNameAsync_es2017.ts === +const x = async => async; +>x : (async: any) => any +> : ^ ^^^^^^^^^^^^^ +>async => async : (async: any) => any +> : ^ ^^^^^^^^^^^^^ +>async : any +>async : any + diff --git a/tests/baselines/reference/arrowFunctionWithParameterNameAsync_es5(target=es2015).js b/tests/baselines/reference/arrowFunctionWithParameterNameAsync_es5(target=es2015).js new file mode 100644 index 0000000000000..facea9ac74ca7 --- /dev/null +++ b/tests/baselines/reference/arrowFunctionWithParameterNameAsync_es5(target=es2015).js @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/async/es5/asyncArrowFunction/arrowFunctionWithParameterNameAsync_es5.ts] //// + +//// [arrowFunctionWithParameterNameAsync_es5.ts] +const x = async => async; + +//// [arrowFunctionWithParameterNameAsync_es5.js] +const x = async => async; diff --git a/tests/baselines/reference/arrowFunctionWithParameterNameAsync_es5.symbols b/tests/baselines/reference/arrowFunctionWithParameterNameAsync_es5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/arrowFunctionWithParameterNameAsync_es5.symbols rename to tests/baselines/reference/arrowFunctionWithParameterNameAsync_es5(target=es2015).symbols diff --git a/tests/baselines/reference/arrowFunctionWithParameterNameAsync_es5.types b/tests/baselines/reference/arrowFunctionWithParameterNameAsync_es5(target=es2015).types similarity index 100% rename from tests/baselines/reference/arrowFunctionWithParameterNameAsync_es5.types rename to tests/baselines/reference/arrowFunctionWithParameterNameAsync_es5(target=es2015).types diff --git a/tests/baselines/reference/arrowFunctionWithParameterNameAsync_es5.js b/tests/baselines/reference/arrowFunctionWithParameterNameAsync_es5(target=es5).js similarity index 100% rename from tests/baselines/reference/arrowFunctionWithParameterNameAsync_es5.js rename to tests/baselines/reference/arrowFunctionWithParameterNameAsync_es5(target=es5).js diff --git a/tests/baselines/reference/arrowFunctionWithParameterNameAsync_es5(target=es5).symbols b/tests/baselines/reference/arrowFunctionWithParameterNameAsync_es5(target=es5).symbols new file mode 100644 index 0000000000000..db4e2f9be973e --- /dev/null +++ b/tests/baselines/reference/arrowFunctionWithParameterNameAsync_es5(target=es5).symbols @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/async/es5/asyncArrowFunction/arrowFunctionWithParameterNameAsync_es5.ts] //// + +=== arrowFunctionWithParameterNameAsync_es5.ts === +const x = async => async; +>x : Symbol(x, Decl(arrowFunctionWithParameterNameAsync_es5.ts, 0, 5)) +>async : Symbol(async, Decl(arrowFunctionWithParameterNameAsync_es5.ts, 0, 9)) +>async : Symbol(async, Decl(arrowFunctionWithParameterNameAsync_es5.ts, 0, 9)) + diff --git a/tests/baselines/reference/arrowFunctionWithParameterNameAsync_es5(target=es5).types b/tests/baselines/reference/arrowFunctionWithParameterNameAsync_es5(target=es5).types new file mode 100644 index 0000000000000..689a6d058d413 --- /dev/null +++ b/tests/baselines/reference/arrowFunctionWithParameterNameAsync_es5(target=es5).types @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/async/es5/asyncArrowFunction/arrowFunctionWithParameterNameAsync_es5.ts] //// + +=== arrowFunctionWithParameterNameAsync_es5.ts === +const x = async => async; +>x : (async: any) => any +> : ^ ^^^^^^^^^^^^^ +>async => async : (async: any) => any +> : ^ ^^^^^^^^^^^^^ +>async : any +>async : any + diff --git a/tests/baselines/reference/arrowFunctionWithParameterNameAsync_es6(target=es2015).js b/tests/baselines/reference/arrowFunctionWithParameterNameAsync_es6(target=es2015).js new file mode 100644 index 0000000000000..32a1f739fbb6b --- /dev/null +++ b/tests/baselines/reference/arrowFunctionWithParameterNameAsync_es6(target=es2015).js @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/async/es6/asyncArrowFunction/arrowFunctionWithParameterNameAsync_es6.ts] //// + +//// [arrowFunctionWithParameterNameAsync_es6.ts] +const x = async => async; + +//// [arrowFunctionWithParameterNameAsync_es6.js] +const x = async => async; diff --git a/tests/baselines/reference/arrowFunctionWithParameterNameAsync_es6.symbols b/tests/baselines/reference/arrowFunctionWithParameterNameAsync_es6(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/arrowFunctionWithParameterNameAsync_es6.symbols rename to tests/baselines/reference/arrowFunctionWithParameterNameAsync_es6(target=es2015).symbols diff --git a/tests/baselines/reference/arrowFunctionWithParameterNameAsync_es6.types b/tests/baselines/reference/arrowFunctionWithParameterNameAsync_es6(target=es2015).types similarity index 100% rename from tests/baselines/reference/arrowFunctionWithParameterNameAsync_es6.types rename to tests/baselines/reference/arrowFunctionWithParameterNameAsync_es6(target=es2015).types diff --git a/tests/baselines/reference/arrowFunctionWithParameterNameAsync_es6.js b/tests/baselines/reference/arrowFunctionWithParameterNameAsync_es6(target=es5).js similarity index 100% rename from tests/baselines/reference/arrowFunctionWithParameterNameAsync_es6.js rename to tests/baselines/reference/arrowFunctionWithParameterNameAsync_es6(target=es5).js diff --git a/tests/baselines/reference/arrowFunctionWithParameterNameAsync_es6(target=es5).symbols b/tests/baselines/reference/arrowFunctionWithParameterNameAsync_es6(target=es5).symbols new file mode 100644 index 0000000000000..aff006029f768 --- /dev/null +++ b/tests/baselines/reference/arrowFunctionWithParameterNameAsync_es6(target=es5).symbols @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/async/es6/asyncArrowFunction/arrowFunctionWithParameterNameAsync_es6.ts] //// + +=== arrowFunctionWithParameterNameAsync_es6.ts === +const x = async => async; +>x : Symbol(x, Decl(arrowFunctionWithParameterNameAsync_es6.ts, 0, 5)) +>async : Symbol(async, Decl(arrowFunctionWithParameterNameAsync_es6.ts, 0, 9)) +>async : Symbol(async, Decl(arrowFunctionWithParameterNameAsync_es6.ts, 0, 9)) + diff --git a/tests/baselines/reference/arrowFunctionWithParameterNameAsync_es6(target=es5).types b/tests/baselines/reference/arrowFunctionWithParameterNameAsync_es6(target=es5).types new file mode 100644 index 0000000000000..83d46dba73a98 --- /dev/null +++ b/tests/baselines/reference/arrowFunctionWithParameterNameAsync_es6(target=es5).types @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/async/es6/asyncArrowFunction/arrowFunctionWithParameterNameAsync_es6.ts] //// + +=== arrowFunctionWithParameterNameAsync_es6.ts === +const x = async => async; +>x : (async: any) => any +> : ^ ^^^^^^^^^^^^^ +>async => async : (async: any) => any +> : ^ ^^^^^^^^^^^^^ +>async : any +>async : any + diff --git a/tests/baselines/reference/assignSharedArrayBufferToArrayBuffer.errors.txt b/tests/baselines/reference/assignSharedArrayBufferToArrayBuffer(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/assignSharedArrayBufferToArrayBuffer.errors.txt rename to tests/baselines/reference/assignSharedArrayBufferToArrayBuffer(target=es2015).errors.txt diff --git a/tests/baselines/reference/assignSharedArrayBufferToArrayBuffer.js b/tests/baselines/reference/assignSharedArrayBufferToArrayBuffer(target=es2015).js similarity index 100% rename from tests/baselines/reference/assignSharedArrayBufferToArrayBuffer.js rename to tests/baselines/reference/assignSharedArrayBufferToArrayBuffer(target=es2015).js diff --git a/tests/baselines/reference/assignSharedArrayBufferToArrayBuffer.symbols b/tests/baselines/reference/assignSharedArrayBufferToArrayBuffer(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/assignSharedArrayBufferToArrayBuffer.symbols rename to tests/baselines/reference/assignSharedArrayBufferToArrayBuffer(target=es2015).symbols diff --git a/tests/baselines/reference/assignSharedArrayBufferToArrayBuffer.types b/tests/baselines/reference/assignSharedArrayBufferToArrayBuffer(target=es2015).types similarity index 100% rename from tests/baselines/reference/assignSharedArrayBufferToArrayBuffer.types rename to tests/baselines/reference/assignSharedArrayBufferToArrayBuffer(target=es2015).types diff --git a/tests/baselines/reference/assignSharedArrayBufferToArrayBuffer(target=es5).errors.txt b/tests/baselines/reference/assignSharedArrayBufferToArrayBuffer(target=es5).errors.txt new file mode 100644 index 0000000000000..cc22119ec5064 --- /dev/null +++ b/tests/baselines/reference/assignSharedArrayBufferToArrayBuffer(target=es5).errors.txt @@ -0,0 +1,11 @@ +assignSharedArrayBufferToArrayBuffer.ts(1,5): error TS2322: Type 'SharedArrayBuffer' is not assignable to type 'ArrayBuffer'. + Types of property '[Symbol.toStringTag]' are incompatible. + Type '"SharedArrayBuffer"' is not assignable to type '"ArrayBuffer"'. + + +==== assignSharedArrayBufferToArrayBuffer.ts (1 errors) ==== + var foo: ArrayBuffer = new SharedArrayBuffer(1024); // should error + ~~~ +!!! error TS2322: Type 'SharedArrayBuffer' is not assignable to type 'ArrayBuffer'. +!!! error TS2322: Types of property '[Symbol.toStringTag]' are incompatible. +!!! error TS2322: Type '"SharedArrayBuffer"' is not assignable to type '"ArrayBuffer"'. \ No newline at end of file diff --git a/tests/baselines/reference/assignSharedArrayBufferToArrayBuffer(target=es5).js b/tests/baselines/reference/assignSharedArrayBufferToArrayBuffer(target=es5).js new file mode 100644 index 0000000000000..f7642aae6275d --- /dev/null +++ b/tests/baselines/reference/assignSharedArrayBufferToArrayBuffer(target=es5).js @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/es2017/assignSharedArrayBufferToArrayBuffer.ts] //// + +//// [assignSharedArrayBufferToArrayBuffer.ts] +var foo: ArrayBuffer = new SharedArrayBuffer(1024); // should error + +//// [assignSharedArrayBufferToArrayBuffer.js] +var foo = new SharedArrayBuffer(1024); // should error diff --git a/tests/baselines/reference/assignSharedArrayBufferToArrayBuffer(target=es5).symbols b/tests/baselines/reference/assignSharedArrayBufferToArrayBuffer(target=es5).symbols new file mode 100644 index 0000000000000..43cfb5a1787b0 --- /dev/null +++ b/tests/baselines/reference/assignSharedArrayBufferToArrayBuffer(target=es5).symbols @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/es2017/assignSharedArrayBufferToArrayBuffer.ts] //// + +=== assignSharedArrayBufferToArrayBuffer.ts === +var foo: ArrayBuffer = new SharedArrayBuffer(1024); // should error +>foo : Symbol(foo, Decl(assignSharedArrayBufferToArrayBuffer.ts, 0, 3)) +>ArrayBuffer : Symbol(ArrayBuffer, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>SharedArrayBuffer : Symbol(SharedArrayBuffer, Decl(lib.es2017.sharedmemory.d.ts, --, --), Decl(lib.es2017.sharedmemory.d.ts, --, --)) + diff --git a/tests/baselines/reference/assignSharedArrayBufferToArrayBuffer(target=es5).types b/tests/baselines/reference/assignSharedArrayBufferToArrayBuffer(target=es5).types new file mode 100644 index 0000000000000..1f6b881dfb452 --- /dev/null +++ b/tests/baselines/reference/assignSharedArrayBufferToArrayBuffer(target=es5).types @@ -0,0 +1,13 @@ +//// [tests/cases/conformance/es2017/assignSharedArrayBufferToArrayBuffer.ts] //// + +=== assignSharedArrayBufferToArrayBuffer.ts === +var foo: ArrayBuffer = new SharedArrayBuffer(1024); // should error +>foo : ArrayBuffer +> : ^^^^^^^^^^^ +>new SharedArrayBuffer(1024) : SharedArrayBuffer +> : ^^^^^^^^^^^^^^^^^ +>SharedArrayBuffer : SharedArrayBufferConstructor +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>1024 : 1024 +> : ^^^^ + diff --git a/tests/baselines/reference/asyncAliasReturnType_es5(target=es2015).js b/tests/baselines/reference/asyncAliasReturnType_es5(target=es2015).js new file mode 100644 index 0000000000000..7d8afa6da467e --- /dev/null +++ b/tests/baselines/reference/asyncAliasReturnType_es5(target=es2015).js @@ -0,0 +1,13 @@ +//// [tests/cases/conformance/async/es5/asyncAliasReturnType_es5.ts] //// + +//// [asyncAliasReturnType_es5.ts] +type PromiseAlias = Promise; + +async function f(): PromiseAlias { +} + +//// [asyncAliasReturnType_es5.js] +function f() { + return __awaiter(this, void 0, void 0, function* () { + }); +} diff --git a/tests/baselines/reference/asyncAliasReturnType_es5.symbols b/tests/baselines/reference/asyncAliasReturnType_es5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/asyncAliasReturnType_es5.symbols rename to tests/baselines/reference/asyncAliasReturnType_es5(target=es2015).symbols diff --git a/tests/baselines/reference/asyncAliasReturnType_es5.types b/tests/baselines/reference/asyncAliasReturnType_es5(target=es2015).types similarity index 100% rename from tests/baselines/reference/asyncAliasReturnType_es5.types rename to tests/baselines/reference/asyncAliasReturnType_es5(target=es2015).types diff --git a/tests/baselines/reference/asyncAliasReturnType_es5.errors.txt b/tests/baselines/reference/asyncAliasReturnType_es5(target=es5).errors.txt similarity index 100% rename from tests/baselines/reference/asyncAliasReturnType_es5.errors.txt rename to tests/baselines/reference/asyncAliasReturnType_es5(target=es5).errors.txt diff --git a/tests/baselines/reference/asyncAliasReturnType_es5.js b/tests/baselines/reference/asyncAliasReturnType_es5(target=es5).js similarity index 100% rename from tests/baselines/reference/asyncAliasReturnType_es5.js rename to tests/baselines/reference/asyncAliasReturnType_es5(target=es5).js diff --git a/tests/baselines/reference/asyncAliasReturnType_es5(target=es5).symbols b/tests/baselines/reference/asyncAliasReturnType_es5(target=es5).symbols new file mode 100644 index 0000000000000..3790887a2328a --- /dev/null +++ b/tests/baselines/reference/asyncAliasReturnType_es5(target=es5).symbols @@ -0,0 +1,13 @@ +//// [tests/cases/conformance/async/es5/asyncAliasReturnType_es5.ts] //// + +=== asyncAliasReturnType_es5.ts === +type PromiseAlias = Promise; +>PromiseAlias : Symbol(PromiseAlias, Decl(asyncAliasReturnType_es5.ts, 0, 0)) +>T : Symbol(T, Decl(asyncAliasReturnType_es5.ts, 0, 18)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>T : Symbol(T, Decl(asyncAliasReturnType_es5.ts, 0, 18)) + +async function f(): PromiseAlias { +>f : Symbol(f, Decl(asyncAliasReturnType_es5.ts, 0, 34)) +>PromiseAlias : Symbol(PromiseAlias, Decl(asyncAliasReturnType_es5.ts, 0, 0)) +} diff --git a/tests/baselines/reference/asyncAliasReturnType_es5(target=es5).types b/tests/baselines/reference/asyncAliasReturnType_es5(target=es5).types new file mode 100644 index 0000000000000..9515d2bcae6fc --- /dev/null +++ b/tests/baselines/reference/asyncAliasReturnType_es5(target=es5).types @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/async/es5/asyncAliasReturnType_es5.ts] //// + +=== asyncAliasReturnType_es5.ts === +type PromiseAlias = Promise; +>PromiseAlias : PromiseAlias +> : ^^^^^^^^^^^^^^^ + +async function f(): PromiseAlias { +>f : () => PromiseAlias +> : ^^^^^^ +} diff --git a/tests/baselines/reference/asyncArrowFunction10_es5.errors.txt b/tests/baselines/reference/asyncArrowFunction10_es5(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/asyncArrowFunction10_es5.errors.txt rename to tests/baselines/reference/asyncArrowFunction10_es5(target=es2015).errors.txt diff --git a/tests/baselines/reference/asyncArrowFunction10_es5(target=es2015).js b/tests/baselines/reference/asyncArrowFunction10_es5(target=es2015).js new file mode 100644 index 0000000000000..8c315b6d44af7 --- /dev/null +++ b/tests/baselines/reference/asyncArrowFunction10_es5(target=es2015).js @@ -0,0 +1,14 @@ +//// [tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction10_es5.ts] //// + +//// [asyncArrowFunction10_es5.ts] +var foo = async (): Promise => { + // Legal to use 'await' in a type context. + var v: await; +} + + +//// [asyncArrowFunction10_es5.js] +var foo = () => __awaiter(this, void 0, void 0, function* () { + // Legal to use 'await' in a type context. + var v; +}); diff --git a/tests/baselines/reference/asyncArrowFunction10_es5.symbols b/tests/baselines/reference/asyncArrowFunction10_es5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/asyncArrowFunction10_es5.symbols rename to tests/baselines/reference/asyncArrowFunction10_es5(target=es2015).symbols diff --git a/tests/baselines/reference/asyncArrowFunction10_es5.types b/tests/baselines/reference/asyncArrowFunction10_es5(target=es2015).types similarity index 100% rename from tests/baselines/reference/asyncArrowFunction10_es5.types rename to tests/baselines/reference/asyncArrowFunction10_es5(target=es2015).types diff --git a/tests/baselines/reference/asyncArrowFunction10_es5(target=es5).errors.txt b/tests/baselines/reference/asyncArrowFunction10_es5(target=es5).errors.txt new file mode 100644 index 0000000000000..d6a9d124aa772 --- /dev/null +++ b/tests/baselines/reference/asyncArrowFunction10_es5(target=es5).errors.txt @@ -0,0 +1,11 @@ +asyncArrowFunction10_es5.ts(3,11): error TS2552: Cannot find name 'await'. Did you mean 'Awaited'? + + +==== asyncArrowFunction10_es5.ts (1 errors) ==== + var foo = async (): Promise => { + // Legal to use 'await' in a type context. + var v: await; + ~~~~~ +!!! error TS2552: Cannot find name 'await'. Did you mean 'Awaited'? + } + \ No newline at end of file diff --git a/tests/baselines/reference/asyncArrowFunction10_es5.js b/tests/baselines/reference/asyncArrowFunction10_es5(target=es5).js similarity index 100% rename from tests/baselines/reference/asyncArrowFunction10_es5.js rename to tests/baselines/reference/asyncArrowFunction10_es5(target=es5).js diff --git a/tests/baselines/reference/asyncArrowFunction10_es5(target=es5).symbols b/tests/baselines/reference/asyncArrowFunction10_es5(target=es5).symbols new file mode 100644 index 0000000000000..ead6ad140015b --- /dev/null +++ b/tests/baselines/reference/asyncArrowFunction10_es5(target=es5).symbols @@ -0,0 +1,13 @@ +//// [tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction10_es5.ts] //// + +=== asyncArrowFunction10_es5.ts === +var foo = async (): Promise => { +>foo : Symbol(foo, Decl(asyncArrowFunction10_es5.ts, 0, 3)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) + + // Legal to use 'await' in a type context. + var v: await; +>v : Symbol(v, Decl(asyncArrowFunction10_es5.ts, 2, 6)) +>await : Symbol(await) +} + diff --git a/tests/baselines/reference/asyncArrowFunction10_es5(target=es5).types b/tests/baselines/reference/asyncArrowFunction10_es5(target=es5).types new file mode 100644 index 0000000000000..0b338d5baa63f --- /dev/null +++ b/tests/baselines/reference/asyncArrowFunction10_es5(target=es5).types @@ -0,0 +1,15 @@ +//// [tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction10_es5.ts] //// + +=== asyncArrowFunction10_es5.ts === +var foo = async (): Promise => { +>foo : () => Promise +> : ^^^^^^ +>async (): Promise => { // Legal to use 'await' in a type context. var v: await;} : () => Promise +> : ^^^^^^ + + // Legal to use 'await' in a type context. + var v: await; +>v : await +> : ^^^^^ +} + diff --git a/tests/baselines/reference/asyncArrowFunction11_es5(target=es2015).js b/tests/baselines/reference/asyncArrowFunction11_es5(target=es2015).js new file mode 100644 index 0000000000000..80a7fd774664c --- /dev/null +++ b/tests/baselines/reference/asyncArrowFunction11_es5(target=es2015).js @@ -0,0 +1,30 @@ +//// [tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction11_es5.ts] //// + +//// [asyncArrowFunction11_es5.ts] +// https://github.com/Microsoft/TypeScript/issues/24722 +class A { + b = async (...args: any[]) => { + await Promise.resolve(); + const obj = { ["a"]: () => this }; // computed property name after `await` triggers case + }; +} + +//// [asyncArrowFunction11_es5.js] +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +// https://github.com/Microsoft/TypeScript/issues/24722 +class A { + constructor() { + this.b = (...args) => __awaiter(this, void 0, void 0, function* () { + yield Promise.resolve(); + const obj = { ["a"]: () => this }; // computed property name after `await` triggers case + }); + } +} diff --git a/tests/baselines/reference/asyncArrowFunction11_es5.symbols b/tests/baselines/reference/asyncArrowFunction11_es5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/asyncArrowFunction11_es5.symbols rename to tests/baselines/reference/asyncArrowFunction11_es5(target=es2015).symbols diff --git a/tests/baselines/reference/asyncArrowFunction11_es5.types b/tests/baselines/reference/asyncArrowFunction11_es5(target=es2015).types similarity index 100% rename from tests/baselines/reference/asyncArrowFunction11_es5.types rename to tests/baselines/reference/asyncArrowFunction11_es5(target=es2015).types diff --git a/tests/baselines/reference/asyncArrowFunction11_es5.js b/tests/baselines/reference/asyncArrowFunction11_es5(target=es5).js similarity index 100% rename from tests/baselines/reference/asyncArrowFunction11_es5.js rename to tests/baselines/reference/asyncArrowFunction11_es5(target=es5).js diff --git a/tests/baselines/reference/asyncArrowFunction11_es5(target=es5).symbols b/tests/baselines/reference/asyncArrowFunction11_es5(target=es5).symbols new file mode 100644 index 0000000000000..9485f0a7b3094 --- /dev/null +++ b/tests/baselines/reference/asyncArrowFunction11_es5(target=es5).symbols @@ -0,0 +1,24 @@ +//// [tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction11_es5.ts] //// + +=== asyncArrowFunction11_es5.ts === +// https://github.com/Microsoft/TypeScript/issues/24722 +class A { +>A : Symbol(A, Decl(asyncArrowFunction11_es5.ts, 0, 0)) + + b = async (...args: any[]) => { +>b : Symbol(A.b, Decl(asyncArrowFunction11_es5.ts, 1, 9)) +>args : Symbol(args, Decl(asyncArrowFunction11_es5.ts, 2, 15)) + + await Promise.resolve(); +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) + + const obj = { ["a"]: () => this }; // computed property name after `await` triggers case +>obj : Symbol(obj, Decl(asyncArrowFunction11_es5.ts, 4, 13)) +>["a"] : Symbol(["a"], Decl(asyncArrowFunction11_es5.ts, 4, 21)) +>"a" : Symbol(["a"], Decl(asyncArrowFunction11_es5.ts, 4, 21)) +>this : Symbol(A, Decl(asyncArrowFunction11_es5.ts, 0, 0)) + + }; +} diff --git a/tests/baselines/reference/asyncArrowFunction11_es5(target=es5).types b/tests/baselines/reference/asyncArrowFunction11_es5(target=es5).types new file mode 100644 index 0000000000000..395793e8ed2ad --- /dev/null +++ b/tests/baselines/reference/asyncArrowFunction11_es5(target=es5).types @@ -0,0 +1,44 @@ +//// [tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction11_es5.ts] //// + +=== asyncArrowFunction11_es5.ts === +// https://github.com/Microsoft/TypeScript/issues/24722 +class A { +>A : A +> : ^ + + b = async (...args: any[]) => { +>b : (...args: any[]) => Promise +> : ^^^^ ^^ ^^^^^^^^^^^^^^^^^^ +>async (...args: any[]) => { await Promise.resolve(); const obj = { ["a"]: () => this }; // computed property name after `await` triggers case } : (...args: any[]) => Promise +> : ^^^^ ^^ ^^^^^^^^^^^^^^^^^^ +>args : any[] +> : ^^^^^ + + await Promise.resolve(); +>await Promise.resolve() : void +> : ^^^^ +>Promise.resolve() : Promise +> : ^^^^^^^^^^^^^ +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^ ^^ ^^^ ^^^ +>Promise : PromiseConstructor +> : ^^^^^^^^^^^^^^^^^^ +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^ ^^ ^^^ ^^^ + + const obj = { ["a"]: () => this }; // computed property name after `await` triggers case +>obj : { a: () => this; } +> : ^^^^^^^^^^^^^^^^^^ +>{ ["a"]: () => this } : { a: () => this; } +> : ^^^^^^^^^^^^^^^^^^ +>["a"] : () => this +> : ^^^^^^^^^^ +>"a" : "a" +> : ^^^ +>() => this : () => this +> : ^^^^^^^^^^ +>this : this +> : ^^^^ + + }; +} diff --git a/tests/baselines/reference/asyncArrowFunction1_es5(target=es2015).js b/tests/baselines/reference/asyncArrowFunction1_es5(target=es2015).js new file mode 100644 index 0000000000000..6b747595f8e99 --- /dev/null +++ b/tests/baselines/reference/asyncArrowFunction1_es5(target=es2015).js @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction1_es5.ts] //// + +//// [asyncArrowFunction1_es5.ts] +var foo = async (): Promise => { +}; + +//// [asyncArrowFunction1_es5.js] +var foo = () => __awaiter(this, void 0, void 0, function* () { +}); diff --git a/tests/baselines/reference/asyncArrowFunction1_es5.symbols b/tests/baselines/reference/asyncArrowFunction1_es5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/asyncArrowFunction1_es5.symbols rename to tests/baselines/reference/asyncArrowFunction1_es5(target=es2015).symbols diff --git a/tests/baselines/reference/asyncArrowFunction1_es5.types b/tests/baselines/reference/asyncArrowFunction1_es5(target=es2015).types similarity index 100% rename from tests/baselines/reference/asyncArrowFunction1_es5.types rename to tests/baselines/reference/asyncArrowFunction1_es5(target=es2015).types diff --git a/tests/baselines/reference/asyncArrowFunction1_es5.js b/tests/baselines/reference/asyncArrowFunction1_es5(target=es5).js similarity index 100% rename from tests/baselines/reference/asyncArrowFunction1_es5.js rename to tests/baselines/reference/asyncArrowFunction1_es5(target=es5).js diff --git a/tests/baselines/reference/asyncArrowFunction1_es5(target=es5).symbols b/tests/baselines/reference/asyncArrowFunction1_es5(target=es5).symbols new file mode 100644 index 0000000000000..4aa48f2b89eeb --- /dev/null +++ b/tests/baselines/reference/asyncArrowFunction1_es5(target=es5).symbols @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction1_es5.ts] //// + +=== asyncArrowFunction1_es5.ts === +var foo = async (): Promise => { +>foo : Symbol(foo, Decl(asyncArrowFunction1_es5.ts, 0, 3)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) + +}; diff --git a/tests/baselines/reference/asyncArrowFunction1_es5(target=es5).types b/tests/baselines/reference/asyncArrowFunction1_es5(target=es5).types new file mode 100644 index 0000000000000..b283114a82ec8 --- /dev/null +++ b/tests/baselines/reference/asyncArrowFunction1_es5(target=es5).types @@ -0,0 +1,10 @@ +//// [tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction1_es5.ts] //// + +=== asyncArrowFunction1_es5.ts === +var foo = async (): Promise => { +>foo : () => Promise +> : ^^^^^^ +>async (): Promise => {} : () => Promise +> : ^^^^^^ + +}; diff --git a/tests/baselines/reference/asyncArrowFunction2_es5(target=es2015).js b/tests/baselines/reference/asyncArrowFunction2_es5(target=es2015).js new file mode 100644 index 0000000000000..b37b17ccf6cf9 --- /dev/null +++ b/tests/baselines/reference/asyncArrowFunction2_es5(target=es2015).js @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction2_es5.ts] //// + +//// [asyncArrowFunction2_es5.ts] +var f = (await) => { +} + +//// [asyncArrowFunction2_es5.js] +var f = (await) => { +}; diff --git a/tests/baselines/reference/asyncArrowFunction2_es5.symbols b/tests/baselines/reference/asyncArrowFunction2_es5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/asyncArrowFunction2_es5.symbols rename to tests/baselines/reference/asyncArrowFunction2_es5(target=es2015).symbols diff --git a/tests/baselines/reference/asyncArrowFunction2_es5.types b/tests/baselines/reference/asyncArrowFunction2_es5(target=es2015).types similarity index 100% rename from tests/baselines/reference/asyncArrowFunction2_es5.types rename to tests/baselines/reference/asyncArrowFunction2_es5(target=es2015).types diff --git a/tests/baselines/reference/asyncArrowFunction2_es5.js b/tests/baselines/reference/asyncArrowFunction2_es5(target=es5).js similarity index 100% rename from tests/baselines/reference/asyncArrowFunction2_es5.js rename to tests/baselines/reference/asyncArrowFunction2_es5(target=es5).js diff --git a/tests/baselines/reference/asyncArrowFunction2_es5(target=es5).symbols b/tests/baselines/reference/asyncArrowFunction2_es5(target=es5).symbols new file mode 100644 index 0000000000000..69ec6af7d71b8 --- /dev/null +++ b/tests/baselines/reference/asyncArrowFunction2_es5(target=es5).symbols @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction2_es5.ts] //// + +=== asyncArrowFunction2_es5.ts === +var f = (await) => { +>f : Symbol(f, Decl(asyncArrowFunction2_es5.ts, 0, 3)) +>await : Symbol(await, Decl(asyncArrowFunction2_es5.ts, 0, 9)) +} diff --git a/tests/baselines/reference/asyncArrowFunction2_es5(target=es5).types b/tests/baselines/reference/asyncArrowFunction2_es5(target=es5).types new file mode 100644 index 0000000000000..bf5374cccce47 --- /dev/null +++ b/tests/baselines/reference/asyncArrowFunction2_es5(target=es5).types @@ -0,0 +1,10 @@ +//// [tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction2_es5.ts] //// + +=== asyncArrowFunction2_es5.ts === +var f = (await) => { +>f : (await: any) => void +> : ^ ^^^^^^^^^^^^^^ +>(await) => {} : (await: any) => void +> : ^ ^^^^^^^^^^^^^^ +>await : any +} diff --git a/tests/baselines/reference/asyncArrowFunction3_es5.errors.txt b/tests/baselines/reference/asyncArrowFunction3_es5(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/asyncArrowFunction3_es5.errors.txt rename to tests/baselines/reference/asyncArrowFunction3_es5(target=es2015).errors.txt diff --git a/tests/baselines/reference/asyncArrowFunction3_es5(target=es2015).js b/tests/baselines/reference/asyncArrowFunction3_es5(target=es2015).js new file mode 100644 index 0000000000000..68fe8338bebc0 --- /dev/null +++ b/tests/baselines/reference/asyncArrowFunction3_es5(target=es2015).js @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction3_es5.ts] //// + +//// [asyncArrowFunction3_es5.ts] +function f(await = await) { +} + +//// [asyncArrowFunction3_es5.js] +function f(await = await) { +} diff --git a/tests/baselines/reference/asyncArrowFunction3_es5.symbols b/tests/baselines/reference/asyncArrowFunction3_es5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/asyncArrowFunction3_es5.symbols rename to tests/baselines/reference/asyncArrowFunction3_es5(target=es2015).symbols diff --git a/tests/baselines/reference/asyncArrowFunction3_es5.types b/tests/baselines/reference/asyncArrowFunction3_es5(target=es2015).types similarity index 100% rename from tests/baselines/reference/asyncArrowFunction3_es5.types rename to tests/baselines/reference/asyncArrowFunction3_es5(target=es2015).types diff --git a/tests/baselines/reference/asyncArrowFunction3_es5(target=es5).errors.txt b/tests/baselines/reference/asyncArrowFunction3_es5(target=es5).errors.txt new file mode 100644 index 0000000000000..b78f02690776d --- /dev/null +++ b/tests/baselines/reference/asyncArrowFunction3_es5(target=es5).errors.txt @@ -0,0 +1,8 @@ +asyncArrowFunction3_es5.ts(1,20): error TS2372: Parameter 'await' cannot reference itself. + + +==== asyncArrowFunction3_es5.ts (1 errors) ==== + function f(await = await) { + ~~~~~ +!!! error TS2372: Parameter 'await' cannot reference itself. + } \ No newline at end of file diff --git a/tests/baselines/reference/asyncArrowFunction3_es5.js b/tests/baselines/reference/asyncArrowFunction3_es5(target=es5).js similarity index 100% rename from tests/baselines/reference/asyncArrowFunction3_es5.js rename to tests/baselines/reference/asyncArrowFunction3_es5(target=es5).js diff --git a/tests/baselines/reference/asyncArrowFunction3_es5(target=es5).symbols b/tests/baselines/reference/asyncArrowFunction3_es5(target=es5).symbols new file mode 100644 index 0000000000000..2d83db3ce183a --- /dev/null +++ b/tests/baselines/reference/asyncArrowFunction3_es5(target=es5).symbols @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction3_es5.ts] //// + +=== asyncArrowFunction3_es5.ts === +function f(await = await) { +>f : Symbol(f, Decl(asyncArrowFunction3_es5.ts, 0, 0)) +>await : Symbol(await, Decl(asyncArrowFunction3_es5.ts, 0, 11)) +>await : Symbol(await, Decl(asyncArrowFunction3_es5.ts, 0, 11)) +} diff --git a/tests/baselines/reference/asyncArrowFunction3_es5(target=es5).types b/tests/baselines/reference/asyncArrowFunction3_es5(target=es5).types new file mode 100644 index 0000000000000..3b3467c4b3514 --- /dev/null +++ b/tests/baselines/reference/asyncArrowFunction3_es5(target=es5).types @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction3_es5.ts] //// + +=== asyncArrowFunction3_es5.ts === +function f(await = await) { +>f : (await?: any) => void +> : ^ ^^^^^^^^^^^^^^^ +>await : any +> : ^^^ +>await : any +> : ^^^ +} diff --git a/tests/baselines/reference/asyncArrowFunction4_es5(target=es2015).js b/tests/baselines/reference/asyncArrowFunction4_es5(target=es2015).js new file mode 100644 index 0000000000000..966093d5516eb --- /dev/null +++ b/tests/baselines/reference/asyncArrowFunction4_es5(target=es2015).js @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction4_es5.ts] //// + +//// [asyncArrowFunction4_es5.ts] +var await = () => { +} + +//// [asyncArrowFunction4_es5.js] +var await = () => { +}; diff --git a/tests/baselines/reference/asyncArrowFunction4_es5.symbols b/tests/baselines/reference/asyncArrowFunction4_es5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/asyncArrowFunction4_es5.symbols rename to tests/baselines/reference/asyncArrowFunction4_es5(target=es2015).symbols diff --git a/tests/baselines/reference/asyncArrowFunction4_es5.types b/tests/baselines/reference/asyncArrowFunction4_es5(target=es2015).types similarity index 100% rename from tests/baselines/reference/asyncArrowFunction4_es5.types rename to tests/baselines/reference/asyncArrowFunction4_es5(target=es2015).types diff --git a/tests/baselines/reference/asyncArrowFunction4_es5.js b/tests/baselines/reference/asyncArrowFunction4_es5(target=es5).js similarity index 100% rename from tests/baselines/reference/asyncArrowFunction4_es5.js rename to tests/baselines/reference/asyncArrowFunction4_es5(target=es5).js diff --git a/tests/baselines/reference/asyncArrowFunction4_es5(target=es5).symbols b/tests/baselines/reference/asyncArrowFunction4_es5(target=es5).symbols new file mode 100644 index 0000000000000..995114bd06be7 --- /dev/null +++ b/tests/baselines/reference/asyncArrowFunction4_es5(target=es5).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction4_es5.ts] //// + +=== asyncArrowFunction4_es5.ts === +var await = () => { +>await : Symbol(await, Decl(asyncArrowFunction4_es5.ts, 0, 3)) +} diff --git a/tests/baselines/reference/asyncArrowFunction4_es5(target=es5).types b/tests/baselines/reference/asyncArrowFunction4_es5(target=es5).types new file mode 100644 index 0000000000000..37b2702488df3 --- /dev/null +++ b/tests/baselines/reference/asyncArrowFunction4_es5(target=es5).types @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction4_es5.ts] //// + +=== asyncArrowFunction4_es5.ts === +var await = () => { +>await : () => void +> : ^^^^^^^^^^ +>() => {} : () => void +> : ^^^^^^^^^^ +} diff --git a/tests/baselines/reference/asyncArrowFunction5_es5.errors.txt b/tests/baselines/reference/asyncArrowFunction5_es5(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/asyncArrowFunction5_es5.errors.txt rename to tests/baselines/reference/asyncArrowFunction5_es5(target=es2015).errors.txt diff --git a/tests/baselines/reference/asyncArrowFunction5_es5(target=es2015).js b/tests/baselines/reference/asyncArrowFunction5_es5(target=es2015).js new file mode 100644 index 0000000000000..80f461b5b5ef9 --- /dev/null +++ b/tests/baselines/reference/asyncArrowFunction5_es5(target=es2015).js @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction5_es5.ts] //// + +//// [asyncArrowFunction5_es5.ts] +var foo = async (await): Promise => { +} + +//// [asyncArrowFunction5_es5.js] +var foo = (await) => __awaiter(this, void 0, void 0, function* () { +}); diff --git a/tests/baselines/reference/asyncArrowFunction5_es5.symbols b/tests/baselines/reference/asyncArrowFunction5_es5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/asyncArrowFunction5_es5.symbols rename to tests/baselines/reference/asyncArrowFunction5_es5(target=es2015).symbols diff --git a/tests/baselines/reference/asyncArrowFunction5_es5.types b/tests/baselines/reference/asyncArrowFunction5_es5(target=es2015).types similarity index 100% rename from tests/baselines/reference/asyncArrowFunction5_es5.types rename to tests/baselines/reference/asyncArrowFunction5_es5(target=es2015).types diff --git a/tests/baselines/reference/asyncArrowFunction5_es5(target=es5).errors.txt b/tests/baselines/reference/asyncArrowFunction5_es5(target=es5).errors.txt new file mode 100644 index 0000000000000..9d5b679d53bbc --- /dev/null +++ b/tests/baselines/reference/asyncArrowFunction5_es5(target=es5).errors.txt @@ -0,0 +1,8 @@ +asyncArrowFunction5_es5.ts(1,18): error TS1359: Identifier expected. 'await' is a reserved word that cannot be used here. + + +==== asyncArrowFunction5_es5.ts (1 errors) ==== + var foo = async (await): Promise => { + ~~~~~ +!!! error TS1359: Identifier expected. 'await' is a reserved word that cannot be used here. + } \ No newline at end of file diff --git a/tests/baselines/reference/asyncArrowFunction5_es5.js b/tests/baselines/reference/asyncArrowFunction5_es5(target=es5).js similarity index 100% rename from tests/baselines/reference/asyncArrowFunction5_es5.js rename to tests/baselines/reference/asyncArrowFunction5_es5(target=es5).js diff --git a/tests/baselines/reference/asyncArrowFunction5_es5(target=es5).symbols b/tests/baselines/reference/asyncArrowFunction5_es5(target=es5).symbols new file mode 100644 index 0000000000000..adb0eff473b15 --- /dev/null +++ b/tests/baselines/reference/asyncArrowFunction5_es5(target=es5).symbols @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction5_es5.ts] //// + +=== asyncArrowFunction5_es5.ts === +var foo = async (await): Promise => { +>foo : Symbol(foo, Decl(asyncArrowFunction5_es5.ts, 0, 3)) +>await : Symbol(await, Decl(asyncArrowFunction5_es5.ts, 0, 17)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +} diff --git a/tests/baselines/reference/asyncArrowFunction5_es5(target=es5).types b/tests/baselines/reference/asyncArrowFunction5_es5(target=es5).types new file mode 100644 index 0000000000000..b94c8902cd1da --- /dev/null +++ b/tests/baselines/reference/asyncArrowFunction5_es5(target=es5).types @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction5_es5.ts] //// + +=== asyncArrowFunction5_es5.ts === +var foo = async (await): Promise => { +>foo : (await: any) => Promise +> : ^ ^^^^^^^^^^ +>async (await): Promise => {} : (await: any) => Promise +> : ^ ^^^^^^^^^^ +>await : any +> : ^^^ +} diff --git a/tests/baselines/reference/asyncArrowFunction6_es5.errors.txt b/tests/baselines/reference/asyncArrowFunction6_es5(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/asyncArrowFunction6_es5.errors.txt rename to tests/baselines/reference/asyncArrowFunction6_es5(target=es2015).errors.txt diff --git a/tests/baselines/reference/asyncArrowFunction6_es5(target=es2015).js b/tests/baselines/reference/asyncArrowFunction6_es5(target=es2015).js new file mode 100644 index 0000000000000..2e7f25010af40 --- /dev/null +++ b/tests/baselines/reference/asyncArrowFunction6_es5(target=es2015).js @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction6_es5.ts] //// + +//// [asyncArrowFunction6_es5.ts] +var foo = async (a = await): Promise => { +} + +//// [asyncArrowFunction6_es5.js] +var foo = (...args_1) => __awaiter(this, [...args_1], void 0, function* (a = yield ) { +}); diff --git a/tests/baselines/reference/asyncArrowFunction6_es5.symbols b/tests/baselines/reference/asyncArrowFunction6_es5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/asyncArrowFunction6_es5.symbols rename to tests/baselines/reference/asyncArrowFunction6_es5(target=es2015).symbols diff --git a/tests/baselines/reference/asyncArrowFunction6_es5.types b/tests/baselines/reference/asyncArrowFunction6_es5(target=es2015).types similarity index 100% rename from tests/baselines/reference/asyncArrowFunction6_es5.types rename to tests/baselines/reference/asyncArrowFunction6_es5(target=es2015).types diff --git a/tests/baselines/reference/asyncArrowFunction6_es5(target=es5).errors.txt b/tests/baselines/reference/asyncArrowFunction6_es5(target=es5).errors.txt new file mode 100644 index 0000000000000..1f4846d8df3c4 --- /dev/null +++ b/tests/baselines/reference/asyncArrowFunction6_es5(target=es5).errors.txt @@ -0,0 +1,11 @@ +asyncArrowFunction6_es5.ts(1,22): error TS2524: 'await' expressions cannot be used in a parameter initializer. +asyncArrowFunction6_es5.ts(1,27): error TS1109: Expression expected. + + +==== asyncArrowFunction6_es5.ts (2 errors) ==== + var foo = async (a = await): Promise => { + ~~~~~ +!!! error TS2524: 'await' expressions cannot be used in a parameter initializer. + ~ +!!! error TS1109: Expression expected. + } \ No newline at end of file diff --git a/tests/baselines/reference/asyncArrowFunction6_es5.js b/tests/baselines/reference/asyncArrowFunction6_es5(target=es5).js similarity index 100% rename from tests/baselines/reference/asyncArrowFunction6_es5.js rename to tests/baselines/reference/asyncArrowFunction6_es5(target=es5).js diff --git a/tests/baselines/reference/asyncArrowFunction6_es5(target=es5).symbols b/tests/baselines/reference/asyncArrowFunction6_es5(target=es5).symbols new file mode 100644 index 0000000000000..164d2cfd84528 --- /dev/null +++ b/tests/baselines/reference/asyncArrowFunction6_es5(target=es5).symbols @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction6_es5.ts] //// + +=== asyncArrowFunction6_es5.ts === +var foo = async (a = await): Promise => { +>foo : Symbol(foo, Decl(asyncArrowFunction6_es5.ts, 0, 3)) +>a : Symbol(a, Decl(asyncArrowFunction6_es5.ts, 0, 17)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +} diff --git a/tests/baselines/reference/asyncArrowFunction6_es5(target=es5).types b/tests/baselines/reference/asyncArrowFunction6_es5(target=es5).types new file mode 100644 index 0000000000000..aca685f6e8588 --- /dev/null +++ b/tests/baselines/reference/asyncArrowFunction6_es5(target=es5).types @@ -0,0 +1,15 @@ +//// [tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction6_es5.ts] //// + +=== asyncArrowFunction6_es5.ts === +var foo = async (a = await): Promise => { +>foo : (a?: any) => Promise +> : ^ ^^^^^^^^^^^ +>async (a = await): Promise => {} : (a?: any) => Promise +> : ^ ^^^^^^^^^^^ +>a : any +> : ^^^ +>await : any +> : ^^^ +> : any +> : ^^^ +} diff --git a/tests/baselines/reference/asyncArrowFunction7_es5.errors.txt b/tests/baselines/reference/asyncArrowFunction7_es5(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/asyncArrowFunction7_es5.errors.txt rename to tests/baselines/reference/asyncArrowFunction7_es5(target=es2015).errors.txt diff --git a/tests/baselines/reference/asyncArrowFunction7_es5(target=es2015).js b/tests/baselines/reference/asyncArrowFunction7_es5(target=es2015).js new file mode 100644 index 0000000000000..e8b91e84dee15 --- /dev/null +++ b/tests/baselines/reference/asyncArrowFunction7_es5(target=es2015).js @@ -0,0 +1,15 @@ +//// [tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction7_es5.ts] //// + +//// [asyncArrowFunction7_es5.ts] +var bar = async (): Promise => { + // 'await' here is an identifier, and not an await expression. + var foo = async (a = await): Promise => { + } +} + +//// [asyncArrowFunction7_es5.js] +var bar = () => __awaiter(this, void 0, void 0, function* () { + // 'await' here is an identifier, and not an await expression. + var foo = (...args_1) => __awaiter(this, [...args_1], void 0, function* (a = yield ) { + }); +}); diff --git a/tests/baselines/reference/asyncArrowFunction7_es5.symbols b/tests/baselines/reference/asyncArrowFunction7_es5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/asyncArrowFunction7_es5.symbols rename to tests/baselines/reference/asyncArrowFunction7_es5(target=es2015).symbols diff --git a/tests/baselines/reference/asyncArrowFunction7_es5.types b/tests/baselines/reference/asyncArrowFunction7_es5(target=es2015).types similarity index 100% rename from tests/baselines/reference/asyncArrowFunction7_es5.types rename to tests/baselines/reference/asyncArrowFunction7_es5(target=es2015).types diff --git a/tests/baselines/reference/asyncArrowFunction7_es5(target=es5).errors.txt b/tests/baselines/reference/asyncArrowFunction7_es5(target=es5).errors.txt new file mode 100644 index 0000000000000..1a4faee91bd1d --- /dev/null +++ b/tests/baselines/reference/asyncArrowFunction7_es5(target=es5).errors.txt @@ -0,0 +1,14 @@ +asyncArrowFunction7_es5.ts(3,24): error TS2524: 'await' expressions cannot be used in a parameter initializer. +asyncArrowFunction7_es5.ts(3,29): error TS1109: Expression expected. + + +==== asyncArrowFunction7_es5.ts (2 errors) ==== + var bar = async (): Promise => { + // 'await' here is an identifier, and not an await expression. + var foo = async (a = await): Promise => { + ~~~~~ +!!! error TS2524: 'await' expressions cannot be used in a parameter initializer. + ~ +!!! error TS1109: Expression expected. + } + } \ No newline at end of file diff --git a/tests/baselines/reference/asyncArrowFunction7_es5.js b/tests/baselines/reference/asyncArrowFunction7_es5(target=es5).js similarity index 100% rename from tests/baselines/reference/asyncArrowFunction7_es5.js rename to tests/baselines/reference/asyncArrowFunction7_es5(target=es5).js diff --git a/tests/baselines/reference/asyncArrowFunction7_es5(target=es5).symbols b/tests/baselines/reference/asyncArrowFunction7_es5(target=es5).symbols new file mode 100644 index 0000000000000..6843bc90b8ddc --- /dev/null +++ b/tests/baselines/reference/asyncArrowFunction7_es5(target=es5).symbols @@ -0,0 +1,14 @@ +//// [tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction7_es5.ts] //// + +=== asyncArrowFunction7_es5.ts === +var bar = async (): Promise => { +>bar : Symbol(bar, Decl(asyncArrowFunction7_es5.ts, 0, 3)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) + + // 'await' here is an identifier, and not an await expression. + var foo = async (a = await): Promise => { +>foo : Symbol(foo, Decl(asyncArrowFunction7_es5.ts, 2, 5)) +>a : Symbol(a, Decl(asyncArrowFunction7_es5.ts, 2, 19)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) + } +} diff --git a/tests/baselines/reference/asyncArrowFunction7_es5(target=es5).types b/tests/baselines/reference/asyncArrowFunction7_es5(target=es5).types new file mode 100644 index 0000000000000..a156ed7f7b710 --- /dev/null +++ b/tests/baselines/reference/asyncArrowFunction7_es5(target=es5).types @@ -0,0 +1,23 @@ +//// [tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction7_es5.ts] //// + +=== asyncArrowFunction7_es5.ts === +var bar = async (): Promise => { +>bar : () => Promise +> : ^^^^^^ +>async (): Promise => { // 'await' here is an identifier, and not an await expression. var foo = async (a = await): Promise => { }} : () => Promise +> : ^^^^^^ + + // 'await' here is an identifier, and not an await expression. + var foo = async (a = await): Promise => { +>foo : (a?: any) => Promise +> : ^ ^^^^^^^^^^^ +>async (a = await): Promise => { } : (a?: any) => Promise +> : ^ ^^^^^^^^^^^ +>a : any +> : ^^^ +>await : any +> : ^^^ +> : any +> : ^^^ + } +} diff --git a/tests/baselines/reference/asyncArrowFunction8_es5.errors.txt b/tests/baselines/reference/asyncArrowFunction8_es5(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/asyncArrowFunction8_es5.errors.txt rename to tests/baselines/reference/asyncArrowFunction8_es5(target=es2015).errors.txt diff --git a/tests/baselines/reference/asyncArrowFunction8_es5(target=es2015).js b/tests/baselines/reference/asyncArrowFunction8_es5(target=es2015).js new file mode 100644 index 0000000000000..22af0fe53083a --- /dev/null +++ b/tests/baselines/reference/asyncArrowFunction8_es5(target=es2015).js @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction8_es5.ts] //// + +//// [asyncArrowFunction8_es5.ts] +var foo = async (): Promise => { + var v = { [await]: foo } +} + +//// [asyncArrowFunction8_es5.js] +var foo = () => __awaiter(this, void 0, void 0, function* () { + var v = { [yield ]: foo }; +}); diff --git a/tests/baselines/reference/asyncArrowFunction8_es5.symbols b/tests/baselines/reference/asyncArrowFunction8_es5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/asyncArrowFunction8_es5.symbols rename to tests/baselines/reference/asyncArrowFunction8_es5(target=es2015).symbols diff --git a/tests/baselines/reference/asyncArrowFunction8_es5.types b/tests/baselines/reference/asyncArrowFunction8_es5(target=es2015).types similarity index 100% rename from tests/baselines/reference/asyncArrowFunction8_es5.types rename to tests/baselines/reference/asyncArrowFunction8_es5(target=es2015).types diff --git a/tests/baselines/reference/asyncArrowFunction8_es5(target=es5).errors.txt b/tests/baselines/reference/asyncArrowFunction8_es5(target=es5).errors.txt new file mode 100644 index 0000000000000..47109bea85ff8 --- /dev/null +++ b/tests/baselines/reference/asyncArrowFunction8_es5(target=es5).errors.txt @@ -0,0 +1,9 @@ +asyncArrowFunction8_es5.ts(2,19): error TS1109: Expression expected. + + +==== asyncArrowFunction8_es5.ts (1 errors) ==== + var foo = async (): Promise => { + var v = { [await]: foo } + ~ +!!! error TS1109: Expression expected. + } \ No newline at end of file diff --git a/tests/baselines/reference/asyncArrowFunction8_es5.js b/tests/baselines/reference/asyncArrowFunction8_es5(target=es5).js similarity index 100% rename from tests/baselines/reference/asyncArrowFunction8_es5.js rename to tests/baselines/reference/asyncArrowFunction8_es5(target=es5).js diff --git a/tests/baselines/reference/asyncArrowFunction8_es5(target=es5).symbols b/tests/baselines/reference/asyncArrowFunction8_es5(target=es5).symbols new file mode 100644 index 0000000000000..9eafcc8b60525 --- /dev/null +++ b/tests/baselines/reference/asyncArrowFunction8_es5(target=es5).symbols @@ -0,0 +1,12 @@ +//// [tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction8_es5.ts] //// + +=== asyncArrowFunction8_es5.ts === +var foo = async (): Promise => { +>foo : Symbol(foo, Decl(asyncArrowFunction8_es5.ts, 0, 3)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) + + var v = { [await]: foo } +>v : Symbol(v, Decl(asyncArrowFunction8_es5.ts, 1, 5)) +>[await] : Symbol([await], Decl(asyncArrowFunction8_es5.ts, 1, 11)) +>foo : Symbol(foo, Decl(asyncArrowFunction8_es5.ts, 0, 3)) +} diff --git a/tests/baselines/reference/asyncArrowFunction8_es5(target=es5).types b/tests/baselines/reference/asyncArrowFunction8_es5(target=es5).types new file mode 100644 index 0000000000000..a5cd7180aa019 --- /dev/null +++ b/tests/baselines/reference/asyncArrowFunction8_es5(target=es5).types @@ -0,0 +1,23 @@ +//// [tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction8_es5.ts] //// + +=== asyncArrowFunction8_es5.ts === +var foo = async (): Promise => { +>foo : () => Promise +> : ^^^^^^ +>async (): Promise => { var v = { [await]: foo }} : () => Promise +> : ^^^^^^ + + var v = { [await]: foo } +>v : { [x: number]: () => Promise; } +> : ^^^^^^^^^^^^^^^^^^^^^ ^^^ +>{ [await]: foo } : { [x: number]: () => Promise; } +> : ^^^^^^^^^^^^^^^^^^^^^ ^^^ +>[await] : () => Promise +> : ^^^^^^ +>await : any +> : ^^^ +> : any +> : ^^^ +>foo : () => Promise +> : ^^^^^^ +} diff --git a/tests/baselines/reference/asyncArrowFunction9_es5.errors.txt b/tests/baselines/reference/asyncArrowFunction9_es5(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/asyncArrowFunction9_es5.errors.txt rename to tests/baselines/reference/asyncArrowFunction9_es5(target=es2015).errors.txt diff --git a/tests/baselines/reference/asyncArrowFunction9_es5(target=es2015).js b/tests/baselines/reference/asyncArrowFunction9_es5(target=es2015).js new file mode 100644 index 0000000000000..159225679709d --- /dev/null +++ b/tests/baselines/reference/asyncArrowFunction9_es5(target=es2015).js @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction9_es5.ts] //// + +//// [asyncArrowFunction9_es5.ts] +var foo = async (a = await => await): Promise => { +} + +//// [asyncArrowFunction9_es5.js] +var foo = async(a = await => await), Promise; +; +{ +} diff --git a/tests/baselines/reference/asyncArrowFunction9_es5.symbols b/tests/baselines/reference/asyncArrowFunction9_es5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/asyncArrowFunction9_es5.symbols rename to tests/baselines/reference/asyncArrowFunction9_es5(target=es2015).symbols diff --git a/tests/baselines/reference/asyncArrowFunction9_es5.types b/tests/baselines/reference/asyncArrowFunction9_es5(target=es2015).types similarity index 100% rename from tests/baselines/reference/asyncArrowFunction9_es5.types rename to tests/baselines/reference/asyncArrowFunction9_es5(target=es2015).types diff --git a/tests/baselines/reference/asyncArrowFunction9_es5(target=es5).errors.txt b/tests/baselines/reference/asyncArrowFunction9_es5(target=es5).errors.txt new file mode 100644 index 0000000000000..a1a1c9691c9dd --- /dev/null +++ b/tests/baselines/reference/asyncArrowFunction9_es5(target=es5).errors.txt @@ -0,0 +1,24 @@ +asyncArrowFunction9_es5.ts(1,11): error TS2304: Cannot find name 'async'. +asyncArrowFunction9_es5.ts(1,18): error TS2304: Cannot find name 'a'. +asyncArrowFunction9_es5.ts(1,37): error TS1005: ',' expected. +asyncArrowFunction9_es5.ts(1,39): error TS2403: Subsequent variable declarations must have the same type. Variable 'Promise' must be of type 'PromiseConstructor', but here has type 'any'. +asyncArrowFunction9_es5.ts(1,46): error TS1005: ',' expected. +asyncArrowFunction9_es5.ts(1,53): error TS1109: Expression expected. + + +==== asyncArrowFunction9_es5.ts (6 errors) ==== + var foo = async (a = await => await): Promise => { + ~~~~~ +!!! error TS2304: Cannot find name 'async'. + ~ +!!! error TS2304: Cannot find name 'a'. + ~ +!!! error TS1005: ',' expected. + ~~~~~~~ +!!! error TS2403: Subsequent variable declarations must have the same type. Variable 'Promise' must be of type 'PromiseConstructor', but here has type 'any'. +!!! related TS6203 lib.es2015.promise.d.ts:--:--: 'Promise' was also declared here. + ~ +!!! error TS1005: ',' expected. + ~~ +!!! error TS1109: Expression expected. + } \ No newline at end of file diff --git a/tests/baselines/reference/asyncArrowFunction9_es5.js b/tests/baselines/reference/asyncArrowFunction9_es5(target=es5).js similarity index 100% rename from tests/baselines/reference/asyncArrowFunction9_es5.js rename to tests/baselines/reference/asyncArrowFunction9_es5(target=es5).js diff --git a/tests/baselines/reference/asyncArrowFunction9_es5(target=es5).symbols b/tests/baselines/reference/asyncArrowFunction9_es5(target=es5).symbols new file mode 100644 index 0000000000000..80756aada3c55 --- /dev/null +++ b/tests/baselines/reference/asyncArrowFunction9_es5(target=es5).symbols @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction9_es5.ts] //// + +=== asyncArrowFunction9_es5.ts === +var foo = async (a = await => await): Promise => { +>foo : Symbol(foo, Decl(asyncArrowFunction9_es5.ts, 0, 3)) +>await : Symbol(await, Decl(asyncArrowFunction9_es5.ts, 0, 20)) +>await : Symbol(await, Decl(asyncArrowFunction9_es5.ts, 0, 20)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(asyncArrowFunction9_es5.ts, 0, 37)) +} diff --git a/tests/baselines/reference/asyncArrowFunction9_es5(target=es5).types b/tests/baselines/reference/asyncArrowFunction9_es5(target=es5).types new file mode 100644 index 0000000000000..c3d05138bee75 --- /dev/null +++ b/tests/baselines/reference/asyncArrowFunction9_es5(target=es5).types @@ -0,0 +1,27 @@ +//// [tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction9_es5.ts] //// + +=== asyncArrowFunction9_es5.ts === +var foo = async (a = await => await): Promise => { +>foo : any +> : ^^^ +>async (a = await => await) : any +> : ^^^ +>async : any +> : ^^^ +>a = await => await : (await: any) => any +> : ^ ^^^^^^^^^^^^^ +>a : any +> : ^^^ +>await => await : (await: any) => any +> : ^ ^^^^^^^^^^^^^ +>await : any +> : ^^^ +>await : any +> : ^^^ +>Promise : PromiseConstructor +> : ^^^^^^^^^^^^^^^^^^ +> : void +> : ^^^^ +> : any +> : ^^^ +} diff --git a/tests/baselines/reference/asyncArrowFunctionCapturesArguments_es5(target=es2015).js b/tests/baselines/reference/asyncArrowFunctionCapturesArguments_es5(target=es2015).js new file mode 100644 index 0000000000000..71eb0146ac930 --- /dev/null +++ b/tests/baselines/reference/asyncArrowFunctionCapturesArguments_es5(target=es2015).js @@ -0,0 +1,21 @@ +//// [tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunctionCapturesArguments_es5.ts] //// + +//// [asyncArrowFunctionCapturesArguments_es5.ts] +class C { + method() { + function other() {} + var fn = async () => await other.apply(this, arguments); + } +} + + +//// [asyncArrowFunctionCapturesArguments_es5.js] +class C { + method() { + function other() { } + var fn = () => { + var arguments_1 = arguments; + return __awaiter(this, void 0, void 0, function* () { return yield other.apply(this, arguments_1); }); + }; + } +} diff --git a/tests/baselines/reference/asyncArrowFunctionCapturesArguments_es5.symbols b/tests/baselines/reference/asyncArrowFunctionCapturesArguments_es5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/asyncArrowFunctionCapturesArguments_es5.symbols rename to tests/baselines/reference/asyncArrowFunctionCapturesArguments_es5(target=es2015).symbols diff --git a/tests/baselines/reference/asyncArrowFunctionCapturesArguments_es5(target=es2015).types b/tests/baselines/reference/asyncArrowFunctionCapturesArguments_es5(target=es2015).types new file mode 100644 index 0000000000000..28155cec6f6c8 --- /dev/null +++ b/tests/baselines/reference/asyncArrowFunctionCapturesArguments_es5(target=es2015).types @@ -0,0 +1,35 @@ +//// [tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunctionCapturesArguments_es5.ts] //// + +=== asyncArrowFunctionCapturesArguments_es5.ts === +class C { +>C : C +> : ^ + + method() { +>method : () => void +> : ^^^^^^^^^^ + + function other() {} +>other : () => void +> : ^^^^^^^^^^ + + var fn = async () => await other.apply(this, arguments); +>fn : () => Promise +> : ^^^^^^^^^^^^^^^^^^ +>async () => await other.apply(this, arguments) : () => Promise +> : ^^^^^^^^^^^^^^^^^^ +>await other.apply(this, arguments) : any +>other.apply(this, arguments) : any +>other.apply : (this: Function, thisArg: any, argArray?: any) => any +> : ^ ^^ ^^ ^^ ^^ ^^^ ^^^^^ +>other : () => void +> : ^^^^^^^^^^ +>apply : (this: Function, thisArg: any, argArray?: any) => any +> : ^ ^^ ^^ ^^ ^^ ^^^ ^^^^^ +>this : this +> : ^^^^ +>arguments : IArguments +> : ^^^^^^^^^^ + } +} + diff --git a/tests/baselines/reference/asyncArrowFunctionCapturesArguments_es5.errors.txt b/tests/baselines/reference/asyncArrowFunctionCapturesArguments_es5(target=es5).errors.txt similarity index 100% rename from tests/baselines/reference/asyncArrowFunctionCapturesArguments_es5.errors.txt rename to tests/baselines/reference/asyncArrowFunctionCapturesArguments_es5(target=es5).errors.txt diff --git a/tests/baselines/reference/asyncArrowFunctionCapturesArguments_es5.js b/tests/baselines/reference/asyncArrowFunctionCapturesArguments_es5(target=es5).js similarity index 100% rename from tests/baselines/reference/asyncArrowFunctionCapturesArguments_es5.js rename to tests/baselines/reference/asyncArrowFunctionCapturesArguments_es5(target=es5).js diff --git a/tests/baselines/reference/asyncArrowFunctionCapturesArguments_es5(target=es5).symbols b/tests/baselines/reference/asyncArrowFunctionCapturesArguments_es5(target=es5).symbols new file mode 100644 index 0000000000000..4c7ec6afe1296 --- /dev/null +++ b/tests/baselines/reference/asyncArrowFunctionCapturesArguments_es5(target=es5).symbols @@ -0,0 +1,22 @@ +//// [tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunctionCapturesArguments_es5.ts] //// + +=== asyncArrowFunctionCapturesArguments_es5.ts === +class C { +>C : Symbol(C, Decl(asyncArrowFunctionCapturesArguments_es5.ts, 0, 0)) + + method() { +>method : Symbol(C.method, Decl(asyncArrowFunctionCapturesArguments_es5.ts, 0, 9)) + + function other() {} +>other : Symbol(other, Decl(asyncArrowFunctionCapturesArguments_es5.ts, 1, 13)) + + var fn = async () => await other.apply(this, arguments); +>fn : Symbol(fn, Decl(asyncArrowFunctionCapturesArguments_es5.ts, 3, 9)) +>other.apply : Symbol(Function.apply, Decl(lib.es5.d.ts, --, --)) +>other : Symbol(other, Decl(asyncArrowFunctionCapturesArguments_es5.ts, 1, 13)) +>apply : Symbol(Function.apply, Decl(lib.es5.d.ts, --, --)) +>this : Symbol(C, Decl(asyncArrowFunctionCapturesArguments_es5.ts, 0, 0)) +>arguments : Symbol(arguments) + } +} + diff --git a/tests/baselines/reference/asyncArrowFunctionCapturesArguments_es5.types b/tests/baselines/reference/asyncArrowFunctionCapturesArguments_es5(target=es5).types similarity index 100% rename from tests/baselines/reference/asyncArrowFunctionCapturesArguments_es5.types rename to tests/baselines/reference/asyncArrowFunctionCapturesArguments_es5(target=es5).types diff --git a/tests/baselines/reference/asyncArrowFunctionCapturesThis_es5(target=es2015).js b/tests/baselines/reference/asyncArrowFunctionCapturesThis_es5(target=es2015).js new file mode 100644 index 0000000000000..8bc3c65f18db4 --- /dev/null +++ b/tests/baselines/reference/asyncArrowFunctionCapturesThis_es5(target=es2015).js @@ -0,0 +1,16 @@ +//// [tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunctionCapturesThis_es5.ts] //// + +//// [asyncArrowFunctionCapturesThis_es5.ts] +class C { + method() { + var fn = async () => await this; + } +} + + +//// [asyncArrowFunctionCapturesThis_es5.js] +class C { + method() { + var fn = () => __awaiter(this, void 0, void 0, function* () { return yield this; }); + } +} diff --git a/tests/baselines/reference/asyncArrowFunctionCapturesThis_es5.symbols b/tests/baselines/reference/asyncArrowFunctionCapturesThis_es5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/asyncArrowFunctionCapturesThis_es5.symbols rename to tests/baselines/reference/asyncArrowFunctionCapturesThis_es5(target=es2015).symbols diff --git a/tests/baselines/reference/asyncArrowFunctionCapturesThis_es5.types b/tests/baselines/reference/asyncArrowFunctionCapturesThis_es5(target=es2015).types similarity index 100% rename from tests/baselines/reference/asyncArrowFunctionCapturesThis_es5.types rename to tests/baselines/reference/asyncArrowFunctionCapturesThis_es5(target=es2015).types diff --git a/tests/baselines/reference/asyncArrowFunctionCapturesThis_es5.js b/tests/baselines/reference/asyncArrowFunctionCapturesThis_es5(target=es5).js similarity index 100% rename from tests/baselines/reference/asyncArrowFunctionCapturesThis_es5.js rename to tests/baselines/reference/asyncArrowFunctionCapturesThis_es5(target=es5).js diff --git a/tests/baselines/reference/asyncArrowFunctionCapturesThis_es5(target=es5).symbols b/tests/baselines/reference/asyncArrowFunctionCapturesThis_es5(target=es5).symbols new file mode 100644 index 0000000000000..bc6bb2b9353fb --- /dev/null +++ b/tests/baselines/reference/asyncArrowFunctionCapturesThis_es5(target=es5).symbols @@ -0,0 +1,15 @@ +//// [tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunctionCapturesThis_es5.ts] //// + +=== asyncArrowFunctionCapturesThis_es5.ts === +class C { +>C : Symbol(C, Decl(asyncArrowFunctionCapturesThis_es5.ts, 0, 0)) + + method() { +>method : Symbol(C.method, Decl(asyncArrowFunctionCapturesThis_es5.ts, 0, 9)) + + var fn = async () => await this; +>fn : Symbol(fn, Decl(asyncArrowFunctionCapturesThis_es5.ts, 2, 9)) +>this : Symbol(C, Decl(asyncArrowFunctionCapturesThis_es5.ts, 0, 0)) + } +} + diff --git a/tests/baselines/reference/asyncArrowFunctionCapturesThis_es5(target=es5).types b/tests/baselines/reference/asyncArrowFunctionCapturesThis_es5(target=es5).types new file mode 100644 index 0000000000000..4ef7b23b55bb9 --- /dev/null +++ b/tests/baselines/reference/asyncArrowFunctionCapturesThis_es5(target=es5).types @@ -0,0 +1,23 @@ +//// [tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunctionCapturesThis_es5.ts] //// + +=== asyncArrowFunctionCapturesThis_es5.ts === +class C { +>C : C +> : ^ + + method() { +>method : () => void +> : ^^^^^^^^^^ + + var fn = async () => await this; +>fn : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ +>async () => await this : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ +>await this : this +> : ^^^^ +>this : this +> : ^^^^ + } +} + diff --git a/tests/baselines/reference/asyncArrowInClassES5(target=es2015).js b/tests/baselines/reference/asyncArrowInClassES5(target=es2015).js new file mode 100644 index 0000000000000..620d202e6ab00 --- /dev/null +++ b/tests/baselines/reference/asyncArrowInClassES5(target=es2015).js @@ -0,0 +1,19 @@ +//// [tests/cases/compiler/asyncArrowInClassES5.ts] //// + +//// [asyncArrowInClassES5.ts] +// https://github.com/Microsoft/TypeScript/issues/16924 +// Should capture `this` + +class Test { + static member = async (x: string) => { }; +} + + +//// [asyncArrowInClassES5.js] +// https://github.com/Microsoft/TypeScript/issues/16924 +// Should capture `this` +var _a; +class Test { +} +_a = Test; +Test.member = (x) => __awaiter(_a, void 0, void 0, function* () { }); diff --git a/tests/baselines/reference/asyncArrowInClassES5.symbols b/tests/baselines/reference/asyncArrowInClassES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/asyncArrowInClassES5.symbols rename to tests/baselines/reference/asyncArrowInClassES5(target=es2015).symbols diff --git a/tests/baselines/reference/asyncArrowInClassES5.types b/tests/baselines/reference/asyncArrowInClassES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/asyncArrowInClassES5.types rename to tests/baselines/reference/asyncArrowInClassES5(target=es2015).types diff --git a/tests/baselines/reference/asyncArrowInClassES5.js b/tests/baselines/reference/asyncArrowInClassES5(target=es5).js similarity index 100% rename from tests/baselines/reference/asyncArrowInClassES5.js rename to tests/baselines/reference/asyncArrowInClassES5(target=es5).js diff --git a/tests/baselines/reference/asyncArrowInClassES5(target=es5).symbols b/tests/baselines/reference/asyncArrowInClassES5(target=es5).symbols new file mode 100644 index 0000000000000..853677404a591 --- /dev/null +++ b/tests/baselines/reference/asyncArrowInClassES5(target=es5).symbols @@ -0,0 +1,14 @@ +//// [tests/cases/compiler/asyncArrowInClassES5.ts] //// + +=== asyncArrowInClassES5.ts === +// https://github.com/Microsoft/TypeScript/issues/16924 +// Should capture `this` + +class Test { +>Test : Symbol(Test, Decl(asyncArrowInClassES5.ts, 0, 0)) + + static member = async (x: string) => { }; +>member : Symbol(Test.member, Decl(asyncArrowInClassES5.ts, 3, 12)) +>x : Symbol(x, Decl(asyncArrowInClassES5.ts, 4, 27)) +} + diff --git a/tests/baselines/reference/asyncArrowInClassES5(target=es5).types b/tests/baselines/reference/asyncArrowInClassES5(target=es5).types new file mode 100644 index 0000000000000..a2b5376f6bfb4 --- /dev/null +++ b/tests/baselines/reference/asyncArrowInClassES5(target=es5).types @@ -0,0 +1,19 @@ +//// [tests/cases/compiler/asyncArrowInClassES5.ts] //// + +=== asyncArrowInClassES5.ts === +// https://github.com/Microsoft/TypeScript/issues/16924 +// Should capture `this` + +class Test { +>Test : Test +> : ^^^^ + + static member = async (x: string) => { }; +>member : (x: string) => Promise +> : ^ ^^ ^^^^^^^^^^^^^^^^^^ +>async (x: string) => { } : (x: string) => Promise +> : ^ ^^ ^^^^^^^^^^^^^^^^^^ +>x : string +> : ^^^^^^ +} + diff --git a/tests/baselines/reference/asyncAwaitIsolatedModules_es5.errors.txt b/tests/baselines/reference/asyncAwaitIsolatedModules_es5(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/asyncAwaitIsolatedModules_es5.errors.txt rename to tests/baselines/reference/asyncAwaitIsolatedModules_es5(target=es2015).errors.txt diff --git a/tests/baselines/reference/asyncAwaitIsolatedModules_es5(target=es2015).js b/tests/baselines/reference/asyncAwaitIsolatedModules_es5(target=es2015).js new file mode 100644 index 0000000000000..0b2a611101eec --- /dev/null +++ b/tests/baselines/reference/asyncAwaitIsolatedModules_es5(target=es2015).js @@ -0,0 +1,117 @@ +//// [tests/cases/conformance/async/es5/asyncAwaitIsolatedModules_es5.ts] //// + +//// [asyncAwaitIsolatedModules_es5.ts] +import { MyPromise } from "missing"; + +declare var p: Promise; +declare var mp: MyPromise; + +async function f0() { } +async function f1(): Promise { } +async function f3(): MyPromise { } + +let f4 = async function() { } +let f5 = async function(): Promise { } +let f6 = async function(): MyPromise { } + +let f7 = async () => { }; +let f8 = async (): Promise => { }; +let f9 = async (): MyPromise => { }; +let f10 = async () => p; +let f11 = async () => mp; +let f12 = async (): Promise => mp; +let f13 = async (): MyPromise => p; + +let o = { + async m1() { }, + async m2(): Promise { }, + async m3(): MyPromise { } +}; + +class C { + async m1() { } + async m2(): Promise { } + async m3(): MyPromise { } + static async m4() { } + static async m5(): Promise { } + static async m6(): MyPromise { } +} + +namespace M { + export async function f1() { } +} + +//// [asyncAwaitIsolatedModules_es5.js] +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +function f0() { + return __awaiter(this, void 0, void 0, function* () { }); +} +function f1() { + return __awaiter(this, void 0, void 0, function* () { }); +} +function f3() { + return __awaiter(this, void 0, void 0, function* () { }); +} +let f4 = function () { + return __awaiter(this, void 0, void 0, function* () { }); +}; +let f5 = function () { + return __awaiter(this, void 0, void 0, function* () { }); +}; +let f6 = function () { + return __awaiter(this, void 0, void 0, function* () { }); +}; +let f7 = () => __awaiter(void 0, void 0, void 0, function* () { }); +let f8 = () => __awaiter(void 0, void 0, void 0, function* () { }); +let f9 = () => __awaiter(void 0, void 0, void 0, function* () { }); +let f10 = () => __awaiter(void 0, void 0, void 0, function* () { return p; }); +let f11 = () => __awaiter(void 0, void 0, void 0, function* () { return mp; }); +let f12 = () => __awaiter(void 0, void 0, void 0, function* () { return mp; }); +let f13 = () => __awaiter(void 0, void 0, void 0, function* () { return p; }); +let o = { + m1() { + return __awaiter(this, void 0, void 0, function* () { }); + }, + m2() { + return __awaiter(this, void 0, void 0, function* () { }); + }, + m3() { + return __awaiter(this, void 0, void 0, function* () { }); + } +}; +class C { + m1() { + return __awaiter(this, void 0, void 0, function* () { }); + } + m2() { + return __awaiter(this, void 0, void 0, function* () { }); + } + m3() { + return __awaiter(this, void 0, void 0, function* () { }); + } + static m4() { + return __awaiter(this, void 0, void 0, function* () { }); + } + static m5() { + return __awaiter(this, void 0, void 0, function* () { }); + } + static m6() { + return __awaiter(this, void 0, void 0, function* () { }); + } +} +var M; +(function (M) { + function f1() { + return __awaiter(this, void 0, void 0, function* () { }); + } + M.f1 = f1; +})(M || (M = {})); +export {}; diff --git a/tests/baselines/reference/asyncAwaitIsolatedModules_es5.symbols b/tests/baselines/reference/asyncAwaitIsolatedModules_es5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/asyncAwaitIsolatedModules_es5.symbols rename to tests/baselines/reference/asyncAwaitIsolatedModules_es5(target=es2015).symbols diff --git a/tests/baselines/reference/asyncAwaitIsolatedModules_es5.types b/tests/baselines/reference/asyncAwaitIsolatedModules_es5(target=es2015).types similarity index 100% rename from tests/baselines/reference/asyncAwaitIsolatedModules_es5.types rename to tests/baselines/reference/asyncAwaitIsolatedModules_es5(target=es2015).types diff --git a/tests/baselines/reference/asyncAwaitIsolatedModules_es5(target=es5).errors.txt b/tests/baselines/reference/asyncAwaitIsolatedModules_es5(target=es5).errors.txt new file mode 100644 index 0000000000000..673f63cce76f6 --- /dev/null +++ b/tests/baselines/reference/asyncAwaitIsolatedModules_es5(target=es5).errors.txt @@ -0,0 +1,45 @@ +asyncAwaitIsolatedModules_es5.ts(1,27): error TS2307: Cannot find module 'missing' or its corresponding type declarations. + + +==== asyncAwaitIsolatedModules_es5.ts (1 errors) ==== + import { MyPromise } from "missing"; + ~~~~~~~~~ +!!! error TS2307: Cannot find module 'missing' or its corresponding type declarations. + + declare var p: Promise; + declare var mp: MyPromise; + + async function f0() { } + async function f1(): Promise { } + async function f3(): MyPromise { } + + let f4 = async function() { } + let f5 = async function(): Promise { } + let f6 = async function(): MyPromise { } + + let f7 = async () => { }; + let f8 = async (): Promise => { }; + let f9 = async (): MyPromise => { }; + let f10 = async () => p; + let f11 = async () => mp; + let f12 = async (): Promise => mp; + let f13 = async (): MyPromise => p; + + let o = { + async m1() { }, + async m2(): Promise { }, + async m3(): MyPromise { } + }; + + class C { + async m1() { } + async m2(): Promise { } + async m3(): MyPromise { } + static async m4() { } + static async m5(): Promise { } + static async m6(): MyPromise { } + } + + namespace M { + export async function f1() { } + } \ No newline at end of file diff --git a/tests/baselines/reference/asyncAwaitIsolatedModules_es5.js b/tests/baselines/reference/asyncAwaitIsolatedModules_es5(target=es5).js similarity index 100% rename from tests/baselines/reference/asyncAwaitIsolatedModules_es5.js rename to tests/baselines/reference/asyncAwaitIsolatedModules_es5(target=es5).js diff --git a/tests/baselines/reference/asyncAwaitIsolatedModules_es5(target=es5).symbols b/tests/baselines/reference/asyncAwaitIsolatedModules_es5(target=es5).symbols new file mode 100644 index 0000000000000..236e5e62924af --- /dev/null +++ b/tests/baselines/reference/asyncAwaitIsolatedModules_es5(target=es5).symbols @@ -0,0 +1,113 @@ +//// [tests/cases/conformance/async/es5/asyncAwaitIsolatedModules_es5.ts] //// + +=== asyncAwaitIsolatedModules_es5.ts === +import { MyPromise } from "missing"; +>MyPromise : Symbol(MyPromise, Decl(asyncAwaitIsolatedModules_es5.ts, 0, 8)) + +declare var p: Promise; +>p : Symbol(p, Decl(asyncAwaitIsolatedModules_es5.ts, 2, 11)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) + +declare var mp: MyPromise; +>mp : Symbol(mp, Decl(asyncAwaitIsolatedModules_es5.ts, 3, 11)) +>MyPromise : Symbol(MyPromise, Decl(asyncAwaitIsolatedModules_es5.ts, 0, 8)) + +async function f0() { } +>f0 : Symbol(f0, Decl(asyncAwaitIsolatedModules_es5.ts, 3, 34)) + +async function f1(): Promise { } +>f1 : Symbol(f1, Decl(asyncAwaitIsolatedModules_es5.ts, 5, 23)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) + +async function f3(): MyPromise { } +>f3 : Symbol(f3, Decl(asyncAwaitIsolatedModules_es5.ts, 6, 38)) +>MyPromise : Symbol(MyPromise, Decl(asyncAwaitIsolatedModules_es5.ts, 0, 8)) + +let f4 = async function() { } +>f4 : Symbol(f4, Decl(asyncAwaitIsolatedModules_es5.ts, 9, 3)) + +let f5 = async function(): Promise { } +>f5 : Symbol(f5, Decl(asyncAwaitIsolatedModules_es5.ts, 10, 3)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) + +let f6 = async function(): MyPromise { } +>f6 : Symbol(f6, Decl(asyncAwaitIsolatedModules_es5.ts, 11, 3)) +>MyPromise : Symbol(MyPromise, Decl(asyncAwaitIsolatedModules_es5.ts, 0, 8)) + +let f7 = async () => { }; +>f7 : Symbol(f7, Decl(asyncAwaitIsolatedModules_es5.ts, 13, 3)) + +let f8 = async (): Promise => { }; +>f8 : Symbol(f8, Decl(asyncAwaitIsolatedModules_es5.ts, 14, 3)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) + +let f9 = async (): MyPromise => { }; +>f9 : Symbol(f9, Decl(asyncAwaitIsolatedModules_es5.ts, 15, 3)) +>MyPromise : Symbol(MyPromise, Decl(asyncAwaitIsolatedModules_es5.ts, 0, 8)) + +let f10 = async () => p; +>f10 : Symbol(f10, Decl(asyncAwaitIsolatedModules_es5.ts, 16, 3)) +>p : Symbol(p, Decl(asyncAwaitIsolatedModules_es5.ts, 2, 11)) + +let f11 = async () => mp; +>f11 : Symbol(f11, Decl(asyncAwaitIsolatedModules_es5.ts, 17, 3)) +>mp : Symbol(mp, Decl(asyncAwaitIsolatedModules_es5.ts, 3, 11)) + +let f12 = async (): Promise => mp; +>f12 : Symbol(f12, Decl(asyncAwaitIsolatedModules_es5.ts, 18, 3)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>mp : Symbol(mp, Decl(asyncAwaitIsolatedModules_es5.ts, 3, 11)) + +let f13 = async (): MyPromise => p; +>f13 : Symbol(f13, Decl(asyncAwaitIsolatedModules_es5.ts, 19, 3)) +>MyPromise : Symbol(MyPromise, Decl(asyncAwaitIsolatedModules_es5.ts, 0, 8)) +>p : Symbol(p, Decl(asyncAwaitIsolatedModules_es5.ts, 2, 11)) + +let o = { +>o : Symbol(o, Decl(asyncAwaitIsolatedModules_es5.ts, 21, 3)) + + async m1() { }, +>m1 : Symbol(m1, Decl(asyncAwaitIsolatedModules_es5.ts, 21, 9)) + + async m2(): Promise { }, +>m2 : Symbol(m2, Decl(asyncAwaitIsolatedModules_es5.ts, 22, 16)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) + + async m3(): MyPromise { } +>m3 : Symbol(m3, Decl(asyncAwaitIsolatedModules_es5.ts, 23, 31)) +>MyPromise : Symbol(MyPromise, Decl(asyncAwaitIsolatedModules_es5.ts, 0, 8)) + +}; + +class C { +>C : Symbol(C, Decl(asyncAwaitIsolatedModules_es5.ts, 25, 2)) + + async m1() { } +>m1 : Symbol(C.m1, Decl(asyncAwaitIsolatedModules_es5.ts, 27, 9)) + + async m2(): Promise { } +>m2 : Symbol(C.m2, Decl(asyncAwaitIsolatedModules_es5.ts, 28, 15)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) + + async m3(): MyPromise { } +>m3 : Symbol(C.m3, Decl(asyncAwaitIsolatedModules_es5.ts, 29, 30)) +>MyPromise : Symbol(MyPromise, Decl(asyncAwaitIsolatedModules_es5.ts, 0, 8)) + + static async m4() { } +>m4 : Symbol(C.m4, Decl(asyncAwaitIsolatedModules_es5.ts, 30, 32)) + + static async m5(): Promise { } +>m5 : Symbol(C.m5, Decl(asyncAwaitIsolatedModules_es5.ts, 31, 22)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) + + static async m6(): MyPromise { } +>m6 : Symbol(C.m6, Decl(asyncAwaitIsolatedModules_es5.ts, 32, 37)) +>MyPromise : Symbol(MyPromise, Decl(asyncAwaitIsolatedModules_es5.ts, 0, 8)) +} + +namespace M { +>M : Symbol(M, Decl(asyncAwaitIsolatedModules_es5.ts, 34, 1)) + + export async function f1() { } +>f1 : Symbol(f1, Decl(asyncAwaitIsolatedModules_es5.ts, 36, 13)) +} diff --git a/tests/baselines/reference/asyncAwaitIsolatedModules_es5(target=es5).types b/tests/baselines/reference/asyncAwaitIsolatedModules_es5(target=es5).types new file mode 100644 index 0000000000000..e0596ee3c8099 --- /dev/null +++ b/tests/baselines/reference/asyncAwaitIsolatedModules_es5(target=es5).types @@ -0,0 +1,152 @@ +//// [tests/cases/conformance/async/es5/asyncAwaitIsolatedModules_es5.ts] //// + +=== asyncAwaitIsolatedModules_es5.ts === +import { MyPromise } from "missing"; +>MyPromise : any +> : ^^^ + +declare var p: Promise; +>p : Promise +> : ^^^^^^^^^^^^^^^ + +declare var mp: MyPromise; +>mp : MyPromise +> : ^^^^^^^^^^^^^^^^^ + +async function f0() { } +>f0 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + +async function f1(): Promise { } +>f1 : () => Promise +> : ^^^^^^ + +async function f3(): MyPromise { } +>f3 : () => MyPromise +> : ^^^^^^ + +let f4 = async function() { } +>f4 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ +>async function() { } : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + +let f5 = async function(): Promise { } +>f5 : () => Promise +> : ^^^^^^ +>async function(): Promise { } : () => Promise +> : ^^^^^^ + +let f6 = async function(): MyPromise { } +>f6 : () => MyPromise +> : ^^^^^^ +>async function(): MyPromise { } : () => MyPromise +> : ^^^^^^ + +let f7 = async () => { }; +>f7 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ +>async () => { } : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + +let f8 = async (): Promise => { }; +>f8 : () => Promise +> : ^^^^^^ +>async (): Promise => { } : () => Promise +> : ^^^^^^ + +let f9 = async (): MyPromise => { }; +>f9 : () => MyPromise +> : ^^^^^^ +>async (): MyPromise => { } : () => MyPromise +> : ^^^^^^ + +let f10 = async () => p; +>f10 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^^^ +>async () => p : () => Promise +> : ^^^^^^^^^^^^^^^^^^^^^ +>p : Promise +> : ^^^^^^^^^^^^^^^ + +let f11 = async () => mp; +>f11 : () => Promise> +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>async () => mp : () => Promise> +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>mp : MyPromise +> : ^^^^^^^^^^^^^^^^^ + +let f12 = async (): Promise => mp; +>f12 : () => Promise +> : ^^^^^^ +>async (): Promise => mp : () => Promise +> : ^^^^^^ +>mp : MyPromise +> : ^^^^^^^^^^^^^^^^^ + +let f13 = async (): MyPromise => p; +>f13 : () => MyPromise +> : ^^^^^^ +>async (): MyPromise => p : () => MyPromise +> : ^^^^^^ +>p : Promise +> : ^^^^^^^^^^^^^^^ + +let o = { +>o : { m1(): Promise; m2(): Promise; m3(): MyPromise; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^ ^^^ +>{ async m1() { }, async m2(): Promise { }, async m3(): MyPromise { }} : { m1(): Promise; m2(): Promise; m3(): MyPromise; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^ ^^^ + + async m1() { }, +>m1 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + async m2(): Promise { }, +>m2 : () => Promise +> : ^^^^^^ + + async m3(): MyPromise { } +>m3 : () => MyPromise +> : ^^^^^^ + +}; + +class C { +>C : C +> : ^ + + async m1() { } +>m1 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + async m2(): Promise { } +>m2 : () => Promise +> : ^^^^^^ + + async m3(): MyPromise { } +>m3 : () => MyPromise +> : ^^^^^^ + + static async m4() { } +>m4 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + static async m5(): Promise { } +>m5 : () => Promise +> : ^^^^^^ + + static async m6(): MyPromise { } +>m6 : () => MyPromise +> : ^^^^^^ +} + +namespace M { +>M : typeof M +> : ^^^^^^^^ + + export async function f1() { } +>f1 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ +} diff --git a/tests/baselines/reference/asyncAwaitNestedClasses_es5(target=es2015).js b/tests/baselines/reference/asyncAwaitNestedClasses_es5(target=es2015).js new file mode 100644 index 0000000000000..52e101f25d4f4 --- /dev/null +++ b/tests/baselines/reference/asyncAwaitNestedClasses_es5(target=es2015).js @@ -0,0 +1,38 @@ +//// [tests/cases/conformance/async/es5/asyncAwaitNestedClasses_es5.ts] //// + +//// [asyncAwaitNestedClasses_es5.ts] +// https://github.com/Microsoft/TypeScript/issues/20744 +class A { + static B = class B { + static func2(): Promise { + return new Promise((resolve) => { resolve(null); }); + } + static C = class C { + static async func() { + await B.func2(); + } + } + } +} + +A.B.C.func(); + +//// [asyncAwaitNestedClasses_es5.js] +var _a; +// https://github.com/Microsoft/TypeScript/issues/20744 +class A { +} +A.B = (_a = class B { + static func2() { + return new Promise((resolve) => { resolve(null); }); + } + }, + _a.C = class C { + static func() { + return __awaiter(this, void 0, void 0, function* () { + yield _a.func2(); + }); + } + }, + _a); +A.B.C.func(); diff --git a/tests/baselines/reference/asyncAwaitNestedClasses_es5.symbols b/tests/baselines/reference/asyncAwaitNestedClasses_es5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/asyncAwaitNestedClasses_es5.symbols rename to tests/baselines/reference/asyncAwaitNestedClasses_es5(target=es2015).symbols diff --git a/tests/baselines/reference/asyncAwaitNestedClasses_es5.types b/tests/baselines/reference/asyncAwaitNestedClasses_es5(target=es2015).types similarity index 100% rename from tests/baselines/reference/asyncAwaitNestedClasses_es5.types rename to tests/baselines/reference/asyncAwaitNestedClasses_es5(target=es2015).types diff --git a/tests/baselines/reference/asyncAwaitNestedClasses_es5.js b/tests/baselines/reference/asyncAwaitNestedClasses_es5(target=es5).js similarity index 100% rename from tests/baselines/reference/asyncAwaitNestedClasses_es5.js rename to tests/baselines/reference/asyncAwaitNestedClasses_es5(target=es5).js diff --git a/tests/baselines/reference/asyncAwaitNestedClasses_es5(target=es5).symbols b/tests/baselines/reference/asyncAwaitNestedClasses_es5(target=es5).symbols new file mode 100644 index 0000000000000..e8843e94ccfe9 --- /dev/null +++ b/tests/baselines/reference/asyncAwaitNestedClasses_es5(target=es5).symbols @@ -0,0 +1,45 @@ +//// [tests/cases/conformance/async/es5/asyncAwaitNestedClasses_es5.ts] //// + +=== asyncAwaitNestedClasses_es5.ts === +// https://github.com/Microsoft/TypeScript/issues/20744 +class A { +>A : Symbol(A, Decl(asyncAwaitNestedClasses_es5.ts, 0, 0)) + + static B = class B { +>B : Symbol(A.B, Decl(asyncAwaitNestedClasses_es5.ts, 1, 9)) +>B : Symbol(B, Decl(asyncAwaitNestedClasses_es5.ts, 2, 14)) + + static func2(): Promise { +>func2 : Symbol(B.func2, Decl(asyncAwaitNestedClasses_es5.ts, 2, 24)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) + + return new Promise((resolve) => { resolve(null); }); +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(resolve, Decl(asyncAwaitNestedClasses_es5.ts, 4, 32)) +>resolve : Symbol(resolve, Decl(asyncAwaitNestedClasses_es5.ts, 4, 32)) + } + static C = class C { +>C : Symbol(B.C, Decl(asyncAwaitNestedClasses_es5.ts, 5, 9)) +>C : Symbol(C, Decl(asyncAwaitNestedClasses_es5.ts, 6, 18)) + + static async func() { +>func : Symbol(C.func, Decl(asyncAwaitNestedClasses_es5.ts, 6, 28)) + + await B.func2(); +>B.func2 : Symbol(B.func2, Decl(asyncAwaitNestedClasses_es5.ts, 2, 24)) +>B : Symbol(B, Decl(asyncAwaitNestedClasses_es5.ts, 2, 14)) +>func2 : Symbol(B.func2, Decl(asyncAwaitNestedClasses_es5.ts, 2, 24)) + } + } + } +} + +A.B.C.func(); +>A.B.C.func : Symbol(C.func, Decl(asyncAwaitNestedClasses_es5.ts, 6, 28)) +>A.B.C : Symbol(B.C, Decl(asyncAwaitNestedClasses_es5.ts, 5, 9)) +>A.B : Symbol(A.B, Decl(asyncAwaitNestedClasses_es5.ts, 1, 9)) +>A : Symbol(A, Decl(asyncAwaitNestedClasses_es5.ts, 0, 0)) +>B : Symbol(A.B, Decl(asyncAwaitNestedClasses_es5.ts, 1, 9)) +>C : Symbol(B.C, Decl(asyncAwaitNestedClasses_es5.ts, 5, 9)) +>func : Symbol(C.func, Decl(asyncAwaitNestedClasses_es5.ts, 6, 28)) + diff --git a/tests/baselines/reference/asyncAwaitNestedClasses_es5(target=es5).types b/tests/baselines/reference/asyncAwaitNestedClasses_es5(target=es5).types new file mode 100644 index 0000000000000..8379addae429a --- /dev/null +++ b/tests/baselines/reference/asyncAwaitNestedClasses_es5(target=es5).types @@ -0,0 +1,80 @@ +//// [tests/cases/conformance/async/es5/asyncAwaitNestedClasses_es5.ts] //// + +=== asyncAwaitNestedClasses_es5.ts === +// https://github.com/Microsoft/TypeScript/issues/20744 +class A { +>A : A +> : ^ + + static B = class B { +>B : typeof B +> : ^^^^^^^^ +>class B { static func2(): Promise { return new Promise((resolve) => { resolve(null); }); } static C = class C { static async func() { await B.func2(); } } } : typeof B +> : ^^^^^^^^ +>B : typeof B +> : ^^^^^^^^ + + static func2(): Promise { +>func2 : () => Promise +> : ^^^^^^ + + return new Promise((resolve) => { resolve(null); }); +>new Promise((resolve) => { resolve(null); }) : Promise +> : ^^^^^^^^^^^^^ +>Promise : PromiseConstructor +> : ^^^^^^^^^^^^^^^^^^ +>(resolve) => { resolve(null); } : (resolve: (value: void | PromiseLike) => void) => void +> : ^ ^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^ +>resolve : (value: void | PromiseLike) => void +> : ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>resolve(null) : void +> : ^^^^ +>resolve : (value: void | PromiseLike) => void +> : ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + } + static C = class C { +>C : typeof C +> : ^^^^^^^^ +>class C { static async func() { await B.func2(); } } : typeof C +> : ^^^^^^^^ +>C : typeof C +> : ^^^^^^^^ + + static async func() { +>func : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + await B.func2(); +>await B.func2() : void +> : ^^^^ +>B.func2() : Promise +> : ^^^^^^^^^^^^^ +>B.func2 : () => Promise +> : ^^^^^^ +>B : typeof B +> : ^^^^^^^^ +>func2 : () => Promise +> : ^^^^^^ + } + } + } +} + +A.B.C.func(); +>A.B.C.func() : Promise +> : ^^^^^^^^^^^^^ +>A.B.C.func : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ +>A.B.C : typeof C +> : ^^^^^^^^ +>A.B : typeof B +> : ^^^^^^^^ +>A : typeof A +> : ^^^^^^^^ +>B : typeof B +> : ^^^^^^^^ +>C : typeof C +> : ^^^^^^^^ +>func : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + diff --git a/tests/baselines/reference/asyncAwaitWithCapturedBlockScopeVar(target=es2015).js b/tests/baselines/reference/asyncAwaitWithCapturedBlockScopeVar(target=es2015).js new file mode 100644 index 0000000000000..e642cb7d3ecef --- /dev/null +++ b/tests/baselines/reference/asyncAwaitWithCapturedBlockScopeVar(target=es2015).js @@ -0,0 +1,79 @@ +//// [tests/cases/compiler/asyncAwaitWithCapturedBlockScopeVar.ts] //// + +//// [asyncAwaitWithCapturedBlockScopeVar.ts] +async function fn1() { + let ar = []; + for (let i = 0; i < 1; i++) { + await 1; + ar.push(() => i); + } +} + +async function fn2() { + let ar = []; + for (let i = 0; i < 1; i++) { + await 1; + ar.push(() => i); + break; + } +} + +async function fn3() { + let ar = []; + for (let i = 0; i < 1; i++) { + await 1; + ar.push(() => i); + continue; + } +} + +async function fn4(): Promise { + let ar = []; + for (let i = 0; i < 1; i++) { + await 1; + ar.push(() => i); + return 1; + } +} + + +//// [asyncAwaitWithCapturedBlockScopeVar.js] +function fn1() { + return __awaiter(this, void 0, void 0, function* () { + let ar = []; + for (let i = 0; i < 1; i++) { + yield 1; + ar.push(() => i); + } + }); +} +function fn2() { + return __awaiter(this, void 0, void 0, function* () { + let ar = []; + for (let i = 0; i < 1; i++) { + yield 1; + ar.push(() => i); + break; + } + }); +} +function fn3() { + return __awaiter(this, void 0, void 0, function* () { + let ar = []; + for (let i = 0; i < 1; i++) { + yield 1; + ar.push(() => i); + continue; + } + }); +} +function fn4() { + return __awaiter(this, void 0, void 0, function* () { + let ar = []; + for (let i = 0; i < 1; i++) { + yield 1; + ar.push(() => i); + return 1; + } + }); +} diff --git a/tests/baselines/reference/asyncAwaitWithCapturedBlockScopeVar.symbols b/tests/baselines/reference/asyncAwaitWithCapturedBlockScopeVar(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/asyncAwaitWithCapturedBlockScopeVar.symbols rename to tests/baselines/reference/asyncAwaitWithCapturedBlockScopeVar(target=es2015).symbols diff --git a/tests/baselines/reference/asyncAwaitWithCapturedBlockScopeVar.types b/tests/baselines/reference/asyncAwaitWithCapturedBlockScopeVar(target=es2015).types similarity index 100% rename from tests/baselines/reference/asyncAwaitWithCapturedBlockScopeVar.types rename to tests/baselines/reference/asyncAwaitWithCapturedBlockScopeVar(target=es2015).types diff --git a/tests/baselines/reference/asyncAwaitWithCapturedBlockScopeVar.js b/tests/baselines/reference/asyncAwaitWithCapturedBlockScopeVar(target=es5).js similarity index 100% rename from tests/baselines/reference/asyncAwaitWithCapturedBlockScopeVar.js rename to tests/baselines/reference/asyncAwaitWithCapturedBlockScopeVar(target=es5).js diff --git a/tests/baselines/reference/asyncAwaitWithCapturedBlockScopeVar(target=es5).symbols b/tests/baselines/reference/asyncAwaitWithCapturedBlockScopeVar(target=es5).symbols new file mode 100644 index 0000000000000..ac495b0ee54e4 --- /dev/null +++ b/tests/baselines/reference/asyncAwaitWithCapturedBlockScopeVar(target=es5).symbols @@ -0,0 +1,90 @@ +//// [tests/cases/compiler/asyncAwaitWithCapturedBlockScopeVar.ts] //// + +=== asyncAwaitWithCapturedBlockScopeVar.ts === +async function fn1() { +>fn1 : Symbol(fn1, Decl(asyncAwaitWithCapturedBlockScopeVar.ts, 0, 0)) + + let ar = []; +>ar : Symbol(ar, Decl(asyncAwaitWithCapturedBlockScopeVar.ts, 1, 7)) + + for (let i = 0; i < 1; i++) { +>i : Symbol(i, Decl(asyncAwaitWithCapturedBlockScopeVar.ts, 2, 12)) +>i : Symbol(i, Decl(asyncAwaitWithCapturedBlockScopeVar.ts, 2, 12)) +>i : Symbol(i, Decl(asyncAwaitWithCapturedBlockScopeVar.ts, 2, 12)) + + await 1; + ar.push(() => i); +>ar.push : Symbol(Array.push, Decl(lib.es5.d.ts, --, --)) +>ar : Symbol(ar, Decl(asyncAwaitWithCapturedBlockScopeVar.ts, 1, 7)) +>push : Symbol(Array.push, Decl(lib.es5.d.ts, --, --)) +>i : Symbol(i, Decl(asyncAwaitWithCapturedBlockScopeVar.ts, 2, 12)) + } +} + +async function fn2() { +>fn2 : Symbol(fn2, Decl(asyncAwaitWithCapturedBlockScopeVar.ts, 6, 1)) + + let ar = []; +>ar : Symbol(ar, Decl(asyncAwaitWithCapturedBlockScopeVar.ts, 9, 7)) + + for (let i = 0; i < 1; i++) { +>i : Symbol(i, Decl(asyncAwaitWithCapturedBlockScopeVar.ts, 10, 12)) +>i : Symbol(i, Decl(asyncAwaitWithCapturedBlockScopeVar.ts, 10, 12)) +>i : Symbol(i, Decl(asyncAwaitWithCapturedBlockScopeVar.ts, 10, 12)) + + await 1; + ar.push(() => i); +>ar.push : Symbol(Array.push, Decl(lib.es5.d.ts, --, --)) +>ar : Symbol(ar, Decl(asyncAwaitWithCapturedBlockScopeVar.ts, 9, 7)) +>push : Symbol(Array.push, Decl(lib.es5.d.ts, --, --)) +>i : Symbol(i, Decl(asyncAwaitWithCapturedBlockScopeVar.ts, 10, 12)) + + break; + } +} + +async function fn3() { +>fn3 : Symbol(fn3, Decl(asyncAwaitWithCapturedBlockScopeVar.ts, 15, 1)) + + let ar = []; +>ar : Symbol(ar, Decl(asyncAwaitWithCapturedBlockScopeVar.ts, 18, 7)) + + for (let i = 0; i < 1; i++) { +>i : Symbol(i, Decl(asyncAwaitWithCapturedBlockScopeVar.ts, 19, 12)) +>i : Symbol(i, Decl(asyncAwaitWithCapturedBlockScopeVar.ts, 19, 12)) +>i : Symbol(i, Decl(asyncAwaitWithCapturedBlockScopeVar.ts, 19, 12)) + + await 1; + ar.push(() => i); +>ar.push : Symbol(Array.push, Decl(lib.es5.d.ts, --, --)) +>ar : Symbol(ar, Decl(asyncAwaitWithCapturedBlockScopeVar.ts, 18, 7)) +>push : Symbol(Array.push, Decl(lib.es5.d.ts, --, --)) +>i : Symbol(i, Decl(asyncAwaitWithCapturedBlockScopeVar.ts, 19, 12)) + + continue; + } +} + +async function fn4(): Promise { +>fn4 : Symbol(fn4, Decl(asyncAwaitWithCapturedBlockScopeVar.ts, 24, 1)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + + let ar = []; +>ar : Symbol(ar, Decl(asyncAwaitWithCapturedBlockScopeVar.ts, 27, 7)) + + for (let i = 0; i < 1; i++) { +>i : Symbol(i, Decl(asyncAwaitWithCapturedBlockScopeVar.ts, 28, 12)) +>i : Symbol(i, Decl(asyncAwaitWithCapturedBlockScopeVar.ts, 28, 12)) +>i : Symbol(i, Decl(asyncAwaitWithCapturedBlockScopeVar.ts, 28, 12)) + + await 1; + ar.push(() => i); +>ar.push : Symbol(Array.push, Decl(lib.es5.d.ts, --, --)) +>ar : Symbol(ar, Decl(asyncAwaitWithCapturedBlockScopeVar.ts, 27, 7)) +>push : Symbol(Array.push, Decl(lib.es5.d.ts, --, --)) +>i : Symbol(i, Decl(asyncAwaitWithCapturedBlockScopeVar.ts, 28, 12)) + + return 1; + } +} + diff --git a/tests/baselines/reference/asyncAwaitWithCapturedBlockScopeVar(target=es5).types b/tests/baselines/reference/asyncAwaitWithCapturedBlockScopeVar(target=es5).types new file mode 100644 index 0000000000000..8eb9fd04ffec4 --- /dev/null +++ b/tests/baselines/reference/asyncAwaitWithCapturedBlockScopeVar(target=es5).types @@ -0,0 +1,203 @@ +//// [tests/cases/compiler/asyncAwaitWithCapturedBlockScopeVar.ts] //// + +=== asyncAwaitWithCapturedBlockScopeVar.ts === +async function fn1() { +>fn1 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + let ar = []; +>ar : any[] +> : ^^^^^ +>[] : undefined[] +> : ^^^^^^^^^^^ + + for (let i = 0; i < 1; i++) { +>i : number +> : ^^^^^^ +>0 : 0 +> : ^ +>i < 1 : boolean +> : ^^^^^^^ +>i : number +> : ^^^^^^ +>1 : 1 +> : ^ +>i++ : number +> : ^^^^^^ +>i : number +> : ^^^^^^ + + await 1; +>await 1 : 1 +> : ^ +>1 : 1 +> : ^ + + ar.push(() => i); +>ar.push(() => i) : number +> : ^^^^^^ +>ar.push : (...items: any[]) => number +> : ^^^^ ^^^^^^^^^^^^ +>ar : any[] +> : ^^^^^ +>push : (...items: any[]) => number +> : ^^^^ ^^^^^^^^^^^^ +>() => i : () => number +> : ^^^^^^^^^^^^ +>i : number +> : ^^^^^^ + } +} + +async function fn2() { +>fn2 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + let ar = []; +>ar : any[] +> : ^^^^^ +>[] : undefined[] +> : ^^^^^^^^^^^ + + for (let i = 0; i < 1; i++) { +>i : number +> : ^^^^^^ +>0 : 0 +> : ^ +>i < 1 : boolean +> : ^^^^^^^ +>i : number +> : ^^^^^^ +>1 : 1 +> : ^ +>i++ : number +> : ^^^^^^ +>i : number +> : ^^^^^^ + + await 1; +>await 1 : 1 +> : ^ +>1 : 1 +> : ^ + + ar.push(() => i); +>ar.push(() => i) : number +> : ^^^^^^ +>ar.push : (...items: any[]) => number +> : ^^^^ ^^^^^^^^^^^^ +>ar : any[] +> : ^^^^^ +>push : (...items: any[]) => number +> : ^^^^ ^^^^^^^^^^^^ +>() => i : () => number +> : ^^^^^^^^^^^^ +>i : number +> : ^^^^^^ + + break; + } +} + +async function fn3() { +>fn3 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + let ar = []; +>ar : any[] +> : ^^^^^ +>[] : undefined[] +> : ^^^^^^^^^^^ + + for (let i = 0; i < 1; i++) { +>i : number +> : ^^^^^^ +>0 : 0 +> : ^ +>i < 1 : boolean +> : ^^^^^^^ +>i : number +> : ^^^^^^ +>1 : 1 +> : ^ +>i++ : number +> : ^^^^^^ +>i : number +> : ^^^^^^ + + await 1; +>await 1 : 1 +> : ^ +>1 : 1 +> : ^ + + ar.push(() => i); +>ar.push(() => i) : number +> : ^^^^^^ +>ar.push : (...items: any[]) => number +> : ^^^^ ^^^^^^^^^^^^ +>ar : any[] +> : ^^^^^ +>push : (...items: any[]) => number +> : ^^^^ ^^^^^^^^^^^^ +>() => i : () => number +> : ^^^^^^^^^^^^ +>i : number +> : ^^^^^^ + + continue; + } +} + +async function fn4(): Promise { +>fn4 : () => Promise +> : ^^^^^^ + + let ar = []; +>ar : any[] +> : ^^^^^ +>[] : undefined[] +> : ^^^^^^^^^^^ + + for (let i = 0; i < 1; i++) { +>i : number +> : ^^^^^^ +>0 : 0 +> : ^ +>i < 1 : boolean +> : ^^^^^^^ +>i : number +> : ^^^^^^ +>1 : 1 +> : ^ +>i++ : number +> : ^^^^^^ +>i : number +> : ^^^^^^ + + await 1; +>await 1 : 1 +> : ^ +>1 : 1 +> : ^ + + ar.push(() => i); +>ar.push(() => i) : number +> : ^^^^^^ +>ar.push : (...items: any[]) => number +> : ^^^^ ^^^^^^^^^^^^ +>ar : any[] +> : ^^^^^ +>push : (...items: any[]) => number +> : ^^^^ ^^^^^^^^^^^^ +>() => i : () => number +> : ^^^^^^^^^^^^ +>i : number +> : ^^^^^^ + + return 1; +>1 : 1 +> : ^ + } +} + diff --git a/tests/baselines/reference/asyncAwait_es5(target=es2015).js b/tests/baselines/reference/asyncAwait_es5(target=es2015).js new file mode 100644 index 0000000000000..b54a4c18c0fc4 --- /dev/null +++ b/tests/baselines/reference/asyncAwait_es5(target=es2015).js @@ -0,0 +1,131 @@ +//// [tests/cases/conformance/async/es5/asyncAwait_es5.ts] //// + +//// [asyncAwait_es5.ts] +type MyPromise = Promise; +declare var MyPromise: typeof Promise; +declare var p: Promise; +declare var mp: MyPromise; + +async function f0() { } +async function f1(): Promise { } +async function f3(): MyPromise { } + +let f4 = async function() { } +let f5 = async function(): Promise { } +let f6 = async function(): MyPromise { } + +let f7 = async () => { }; +let f8 = async (): Promise => { }; +let f9 = async (): MyPromise => { }; +let f10 = async () => p; +let f11 = async () => mp; +let f12 = async (): Promise => mp; +let f13 = async (): MyPromise => p; + +let o = { + async m1() { }, + async m2(): Promise { }, + async m3(): MyPromise { } +}; + +class C { + async m1() { } + async m2(): Promise { } + async m3(): MyPromise { } + static async m4() { } + static async m5(): Promise { } + static async m6(): MyPromise { } +} + +namespace M { + export async function f1() { } +} + +async function f14() { + block: { + await 1; + break block; + } +} + +//// [asyncAwait_es5.js] +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +function f0() { + return __awaiter(this, void 0, void 0, function* () { }); +} +function f1() { + return __awaiter(this, void 0, void 0, function* () { }); +} +function f3() { + return __awaiter(this, void 0, void 0, function* () { }); +} +let f4 = function () { + return __awaiter(this, void 0, void 0, function* () { }); +}; +let f5 = function () { + return __awaiter(this, void 0, void 0, function* () { }); +}; +let f6 = function () { + return __awaiter(this, void 0, void 0, function* () { }); +}; +let f7 = () => __awaiter(this, void 0, void 0, function* () { }); +let f8 = () => __awaiter(this, void 0, void 0, function* () { }); +let f9 = () => __awaiter(this, void 0, void 0, function* () { }); +let f10 = () => __awaiter(this, void 0, void 0, function* () { return p; }); +let f11 = () => __awaiter(this, void 0, void 0, function* () { return mp; }); +let f12 = () => __awaiter(this, void 0, void 0, function* () { return mp; }); +let f13 = () => __awaiter(this, void 0, void 0, function* () { return p; }); +let o = { + m1() { + return __awaiter(this, void 0, void 0, function* () { }); + }, + m2() { + return __awaiter(this, void 0, void 0, function* () { }); + }, + m3() { + return __awaiter(this, void 0, void 0, function* () { }); + } +}; +class C { + m1() { + return __awaiter(this, void 0, void 0, function* () { }); + } + m2() { + return __awaiter(this, void 0, void 0, function* () { }); + } + m3() { + return __awaiter(this, void 0, void 0, function* () { }); + } + static m4() { + return __awaiter(this, void 0, void 0, function* () { }); + } + static m5() { + return __awaiter(this, void 0, void 0, function* () { }); + } + static m6() { + return __awaiter(this, void 0, void 0, function* () { }); + } +} +var M; +(function (M) { + function f1() { + return __awaiter(this, void 0, void 0, function* () { }); + } + M.f1 = f1; +})(M || (M = {})); +function f14() { + return __awaiter(this, void 0, void 0, function* () { + block: { + yield 1; + break block; + } + }); +} diff --git a/tests/baselines/reference/asyncAwait_es5.symbols b/tests/baselines/reference/asyncAwait_es5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/asyncAwait_es5.symbols rename to tests/baselines/reference/asyncAwait_es5(target=es2015).symbols diff --git a/tests/baselines/reference/asyncAwait_es5.types b/tests/baselines/reference/asyncAwait_es5(target=es2015).types similarity index 100% rename from tests/baselines/reference/asyncAwait_es5.types rename to tests/baselines/reference/asyncAwait_es5(target=es2015).types diff --git a/tests/baselines/reference/asyncAwait_es5.js b/tests/baselines/reference/asyncAwait_es5(target=es5).js similarity index 100% rename from tests/baselines/reference/asyncAwait_es5.js rename to tests/baselines/reference/asyncAwait_es5(target=es5).js diff --git a/tests/baselines/reference/asyncAwait_es5(target=es5).symbols b/tests/baselines/reference/asyncAwait_es5(target=es5).symbols new file mode 100644 index 0000000000000..7a19ce8a26fa4 --- /dev/null +++ b/tests/baselines/reference/asyncAwait_es5(target=es5).symbols @@ -0,0 +1,129 @@ +//// [tests/cases/conformance/async/es5/asyncAwait_es5.ts] //// + +=== asyncAwait_es5.ts === +type MyPromise = Promise; +>MyPromise : Symbol(MyPromise, Decl(asyncAwait_es5.ts, 0, 0), Decl(asyncAwait_es5.ts, 1, 11)) +>T : Symbol(T, Decl(asyncAwait_es5.ts, 0, 15)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>T : Symbol(T, Decl(asyncAwait_es5.ts, 0, 15)) + +declare var MyPromise: typeof Promise; +>MyPromise : Symbol(MyPromise, Decl(asyncAwait_es5.ts, 0, 0), Decl(asyncAwait_es5.ts, 1, 11)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) + +declare var p: Promise; +>p : Symbol(p, Decl(asyncAwait_es5.ts, 2, 11)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) + +declare var mp: MyPromise; +>mp : Symbol(mp, Decl(asyncAwait_es5.ts, 3, 11)) +>MyPromise : Symbol(MyPromise, Decl(asyncAwait_es5.ts, 0, 0), Decl(asyncAwait_es5.ts, 1, 11)) + +async function f0() { } +>f0 : Symbol(f0, Decl(asyncAwait_es5.ts, 3, 34)) + +async function f1(): Promise { } +>f1 : Symbol(f1, Decl(asyncAwait_es5.ts, 5, 23)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) + +async function f3(): MyPromise { } +>f3 : Symbol(f3, Decl(asyncAwait_es5.ts, 6, 38)) +>MyPromise : Symbol(MyPromise, Decl(asyncAwait_es5.ts, 0, 0), Decl(asyncAwait_es5.ts, 1, 11)) + +let f4 = async function() { } +>f4 : Symbol(f4, Decl(asyncAwait_es5.ts, 9, 3)) + +let f5 = async function(): Promise { } +>f5 : Symbol(f5, Decl(asyncAwait_es5.ts, 10, 3)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) + +let f6 = async function(): MyPromise { } +>f6 : Symbol(f6, Decl(asyncAwait_es5.ts, 11, 3)) +>MyPromise : Symbol(MyPromise, Decl(asyncAwait_es5.ts, 0, 0), Decl(asyncAwait_es5.ts, 1, 11)) + +let f7 = async () => { }; +>f7 : Symbol(f7, Decl(asyncAwait_es5.ts, 13, 3)) + +let f8 = async (): Promise => { }; +>f8 : Symbol(f8, Decl(asyncAwait_es5.ts, 14, 3)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) + +let f9 = async (): MyPromise => { }; +>f9 : Symbol(f9, Decl(asyncAwait_es5.ts, 15, 3)) +>MyPromise : Symbol(MyPromise, Decl(asyncAwait_es5.ts, 0, 0), Decl(asyncAwait_es5.ts, 1, 11)) + +let f10 = async () => p; +>f10 : Symbol(f10, Decl(asyncAwait_es5.ts, 16, 3)) +>p : Symbol(p, Decl(asyncAwait_es5.ts, 2, 11)) + +let f11 = async () => mp; +>f11 : Symbol(f11, Decl(asyncAwait_es5.ts, 17, 3)) +>mp : Symbol(mp, Decl(asyncAwait_es5.ts, 3, 11)) + +let f12 = async (): Promise => mp; +>f12 : Symbol(f12, Decl(asyncAwait_es5.ts, 18, 3)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>mp : Symbol(mp, Decl(asyncAwait_es5.ts, 3, 11)) + +let f13 = async (): MyPromise => p; +>f13 : Symbol(f13, Decl(asyncAwait_es5.ts, 19, 3)) +>MyPromise : Symbol(MyPromise, Decl(asyncAwait_es5.ts, 0, 0), Decl(asyncAwait_es5.ts, 1, 11)) +>p : Symbol(p, Decl(asyncAwait_es5.ts, 2, 11)) + +let o = { +>o : Symbol(o, Decl(asyncAwait_es5.ts, 21, 3)) + + async m1() { }, +>m1 : Symbol(m1, Decl(asyncAwait_es5.ts, 21, 9)) + + async m2(): Promise { }, +>m2 : Symbol(m2, Decl(asyncAwait_es5.ts, 22, 16)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) + + async m3(): MyPromise { } +>m3 : Symbol(m3, Decl(asyncAwait_es5.ts, 23, 31)) +>MyPromise : Symbol(MyPromise, Decl(asyncAwait_es5.ts, 0, 0), Decl(asyncAwait_es5.ts, 1, 11)) + +}; + +class C { +>C : Symbol(C, Decl(asyncAwait_es5.ts, 25, 2)) + + async m1() { } +>m1 : Symbol(C.m1, Decl(asyncAwait_es5.ts, 27, 9)) + + async m2(): Promise { } +>m2 : Symbol(C.m2, Decl(asyncAwait_es5.ts, 28, 15)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) + + async m3(): MyPromise { } +>m3 : Symbol(C.m3, Decl(asyncAwait_es5.ts, 29, 30)) +>MyPromise : Symbol(MyPromise, Decl(asyncAwait_es5.ts, 0, 0), Decl(asyncAwait_es5.ts, 1, 11)) + + static async m4() { } +>m4 : Symbol(C.m4, Decl(asyncAwait_es5.ts, 30, 32)) + + static async m5(): Promise { } +>m5 : Symbol(C.m5, Decl(asyncAwait_es5.ts, 31, 22)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) + + static async m6(): MyPromise { } +>m6 : Symbol(C.m6, Decl(asyncAwait_es5.ts, 32, 37)) +>MyPromise : Symbol(MyPromise, Decl(asyncAwait_es5.ts, 0, 0), Decl(asyncAwait_es5.ts, 1, 11)) +} + +namespace M { +>M : Symbol(M, Decl(asyncAwait_es5.ts, 34, 1)) + + export async function f1() { } +>f1 : Symbol(f1, Decl(asyncAwait_es5.ts, 36, 13)) +} + +async function f14() { +>f14 : Symbol(f14, Decl(asyncAwait_es5.ts, 38, 1)) + + block: { + await 1; + break block; + } +} diff --git a/tests/baselines/reference/asyncAwait_es5(target=es5).types b/tests/baselines/reference/asyncAwait_es5(target=es5).types new file mode 100644 index 0000000000000..36850c32fdda2 --- /dev/null +++ b/tests/baselines/reference/asyncAwait_es5(target=es5).types @@ -0,0 +1,178 @@ +//// [tests/cases/conformance/async/es5/asyncAwait_es5.ts] //// + +=== asyncAwait_es5.ts === +type MyPromise = Promise; +>MyPromise : MyPromise +> : ^^^^^^^^^^^^ + +declare var MyPromise: typeof Promise; +>MyPromise : PromiseConstructor +> : ^^^^^^^^^^^^^^^^^^ +>Promise : PromiseConstructor +> : ^^^^^^^^^^^^^^^^^^ + +declare var p: Promise; +>p : Promise +> : ^^^^^^^^^^^^^^^ + +declare var mp: MyPromise; +>mp : MyPromise +> : ^^^^^^^^^^^^^^^^^ + +async function f0() { } +>f0 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + +async function f1(): Promise { } +>f1 : () => Promise +> : ^^^^^^ + +async function f3(): MyPromise { } +>f3 : () => MyPromise +> : ^^^^^^ + +let f4 = async function() { } +>f4 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ +>async function() { } : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + +let f5 = async function(): Promise { } +>f5 : () => Promise +> : ^^^^^^ +>async function(): Promise { } : () => Promise +> : ^^^^^^ + +let f6 = async function(): MyPromise { } +>f6 : () => MyPromise +> : ^^^^^^ +>async function(): MyPromise { } : () => MyPromise +> : ^^^^^^ + +let f7 = async () => { }; +>f7 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ +>async () => { } : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + +let f8 = async (): Promise => { }; +>f8 : () => Promise +> : ^^^^^^ +>async (): Promise => { } : () => Promise +> : ^^^^^^ + +let f9 = async (): MyPromise => { }; +>f9 : () => MyPromise +> : ^^^^^^ +>async (): MyPromise => { } : () => MyPromise +> : ^^^^^^ + +let f10 = async () => p; +>f10 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^^^ +>async () => p : () => Promise +> : ^^^^^^^^^^^^^^^^^^^^^ +>p : Promise +> : ^^^^^^^^^^^^^^^ + +let f11 = async () => mp; +>f11 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^^^ +>async () => mp : () => Promise +> : ^^^^^^^^^^^^^^^^^^^^^ +>mp : MyPromise +> : ^^^^^^^^^^^^^^^^^ + +let f12 = async (): Promise => mp; +>f12 : () => Promise +> : ^^^^^^ +>async (): Promise => mp : () => Promise +> : ^^^^^^ +>mp : MyPromise +> : ^^^^^^^^^^^^^^^^^ + +let f13 = async (): MyPromise => p; +>f13 : () => MyPromise +> : ^^^^^^ +>async (): MyPromise => p : () => MyPromise +> : ^^^^^^ +>p : Promise +> : ^^^^^^^^^^^^^^^ + +let o = { +>o : { m1(): Promise; m2(): Promise; m3(): MyPromise; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^ ^^^ +>{ async m1() { }, async m2(): Promise { }, async m3(): MyPromise { }} : { m1(): Promise; m2(): Promise; m3(): MyPromise; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^ ^^^ + + async m1() { }, +>m1 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + async m2(): Promise { }, +>m2 : () => Promise +> : ^^^^^^ + + async m3(): MyPromise { } +>m3 : () => MyPromise +> : ^^^^^^ + +}; + +class C { +>C : C +> : ^ + + async m1() { } +>m1 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + async m2(): Promise { } +>m2 : () => Promise +> : ^^^^^^ + + async m3(): MyPromise { } +>m3 : () => MyPromise +> : ^^^^^^ + + static async m4() { } +>m4 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + static async m5(): Promise { } +>m5 : () => Promise +> : ^^^^^^ + + static async m6(): MyPromise { } +>m6 : () => MyPromise +> : ^^^^^^ +} + +namespace M { +>M : typeof M +> : ^^^^^^^^ + + export async function f1() { } +>f1 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ +} + +async function f14() { +>f14 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + block: { +>block : any +> : ^^^ + + await 1; +>await 1 : 1 +> : ^ +>1 : 1 +> : ^ + + break block; +>block : any +> : ^^^ + } +} diff --git a/tests/baselines/reference/asyncClass_es5.errors.txt b/tests/baselines/reference/asyncClass_es5(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/asyncClass_es5.errors.txt rename to tests/baselines/reference/asyncClass_es5(target=es2015).errors.txt diff --git a/tests/baselines/reference/asyncClass_es5(target=es2015).js b/tests/baselines/reference/asyncClass_es5(target=es2015).js new file mode 100644 index 0000000000000..709734d55b28f --- /dev/null +++ b/tests/baselines/reference/asyncClass_es5(target=es2015).js @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/async/es5/asyncClass_es5.ts] //// + +//// [asyncClass_es5.ts] +async class C { +} + +//// [asyncClass_es5.js] +class C { +} diff --git a/tests/baselines/reference/asyncClass_es5.symbols b/tests/baselines/reference/asyncClass_es5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/asyncClass_es5.symbols rename to tests/baselines/reference/asyncClass_es5(target=es2015).symbols diff --git a/tests/baselines/reference/asyncClass_es5.types b/tests/baselines/reference/asyncClass_es5(target=es2015).types similarity index 100% rename from tests/baselines/reference/asyncClass_es5.types rename to tests/baselines/reference/asyncClass_es5(target=es2015).types diff --git a/tests/baselines/reference/asyncClass_es5(target=es5).errors.txt b/tests/baselines/reference/asyncClass_es5(target=es5).errors.txt new file mode 100644 index 0000000000000..214f940474879 --- /dev/null +++ b/tests/baselines/reference/asyncClass_es5(target=es5).errors.txt @@ -0,0 +1,8 @@ +asyncClass_es5.ts(1,1): error TS1042: 'async' modifier cannot be used here. + + +==== asyncClass_es5.ts (1 errors) ==== + async class C { + ~~~~~ +!!! error TS1042: 'async' modifier cannot be used here. + } \ No newline at end of file diff --git a/tests/baselines/reference/asyncClass_es5.js b/tests/baselines/reference/asyncClass_es5(target=es5).js similarity index 100% rename from tests/baselines/reference/asyncClass_es5.js rename to tests/baselines/reference/asyncClass_es5(target=es5).js diff --git a/tests/baselines/reference/asyncClass_es5(target=es5).symbols b/tests/baselines/reference/asyncClass_es5(target=es5).symbols new file mode 100644 index 0000000000000..544c310e0e667 --- /dev/null +++ b/tests/baselines/reference/asyncClass_es5(target=es5).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/async/es5/asyncClass_es5.ts] //// + +=== asyncClass_es5.ts === +async class C { +>C : Symbol(C, Decl(asyncClass_es5.ts, 0, 0)) +} diff --git a/tests/baselines/reference/asyncClass_es5(target=es5).types b/tests/baselines/reference/asyncClass_es5(target=es5).types new file mode 100644 index 0000000000000..8864c57e7e668 --- /dev/null +++ b/tests/baselines/reference/asyncClass_es5(target=es5).types @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/async/es5/asyncClass_es5.ts] //// + +=== asyncClass_es5.ts === +async class C { +>C : C +> : ^ +} diff --git a/tests/baselines/reference/asyncConstructor_es5.errors.txt b/tests/baselines/reference/asyncConstructor_es5(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/asyncConstructor_es5.errors.txt rename to tests/baselines/reference/asyncConstructor_es5(target=es2015).errors.txt diff --git a/tests/baselines/reference/asyncConstructor_es5(target=es2015).js b/tests/baselines/reference/asyncConstructor_es5(target=es2015).js new file mode 100644 index 0000000000000..369b2efb83580 --- /dev/null +++ b/tests/baselines/reference/asyncConstructor_es5(target=es2015).js @@ -0,0 +1,13 @@ +//// [tests/cases/conformance/async/es5/asyncConstructor_es5.ts] //// + +//// [asyncConstructor_es5.ts] +class C { + async constructor() { + } +} + +//// [asyncConstructor_es5.js] +class C { + constructor() { + } +} diff --git a/tests/baselines/reference/asyncConstructor_es5.symbols b/tests/baselines/reference/asyncConstructor_es5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/asyncConstructor_es5.symbols rename to tests/baselines/reference/asyncConstructor_es5(target=es2015).symbols diff --git a/tests/baselines/reference/asyncConstructor_es5.types b/tests/baselines/reference/asyncConstructor_es5(target=es2015).types similarity index 100% rename from tests/baselines/reference/asyncConstructor_es5.types rename to tests/baselines/reference/asyncConstructor_es5(target=es2015).types diff --git a/tests/baselines/reference/asyncConstructor_es5(target=es5).errors.txt b/tests/baselines/reference/asyncConstructor_es5(target=es5).errors.txt new file mode 100644 index 0000000000000..5b56f8c1d8892 --- /dev/null +++ b/tests/baselines/reference/asyncConstructor_es5(target=es5).errors.txt @@ -0,0 +1,10 @@ +asyncConstructor_es5.ts(2,3): error TS1089: 'async' modifier cannot appear on a constructor declaration. + + +==== asyncConstructor_es5.ts (1 errors) ==== + class C { + async constructor() { + ~~~~~ +!!! error TS1089: 'async' modifier cannot appear on a constructor declaration. + } + } \ No newline at end of file diff --git a/tests/baselines/reference/asyncConstructor_es5.js b/tests/baselines/reference/asyncConstructor_es5(target=es5).js similarity index 100% rename from tests/baselines/reference/asyncConstructor_es5.js rename to tests/baselines/reference/asyncConstructor_es5(target=es5).js diff --git a/tests/baselines/reference/asyncConstructor_es5(target=es5).symbols b/tests/baselines/reference/asyncConstructor_es5(target=es5).symbols new file mode 100644 index 0000000000000..131640ebb9364 --- /dev/null +++ b/tests/baselines/reference/asyncConstructor_es5(target=es5).symbols @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/async/es5/asyncConstructor_es5.ts] //// + +=== asyncConstructor_es5.ts === +class C { +>C : Symbol(C, Decl(asyncConstructor_es5.ts, 0, 0)) + + async constructor() { + } +} diff --git a/tests/baselines/reference/asyncConstructor_es5(target=es5).types b/tests/baselines/reference/asyncConstructor_es5(target=es5).types new file mode 100644 index 0000000000000..f6fa94e680788 --- /dev/null +++ b/tests/baselines/reference/asyncConstructor_es5(target=es5).types @@ -0,0 +1,10 @@ +//// [tests/cases/conformance/async/es5/asyncConstructor_es5.ts] //// + +=== asyncConstructor_es5.ts === +class C { +>C : C +> : ^ + + async constructor() { + } +} diff --git a/tests/baselines/reference/asyncDeclare_es5.errors.txt b/tests/baselines/reference/asyncDeclare_es5(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/asyncDeclare_es5.errors.txt rename to tests/baselines/reference/asyncDeclare_es5(target=es2015).errors.txt diff --git a/tests/baselines/reference/asyncDeclare_es5.js b/tests/baselines/reference/asyncDeclare_es5(target=es2015).js similarity index 100% rename from tests/baselines/reference/asyncDeclare_es5.js rename to tests/baselines/reference/asyncDeclare_es5(target=es2015).js diff --git a/tests/baselines/reference/asyncDeclare_es5.symbols b/tests/baselines/reference/asyncDeclare_es5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/asyncDeclare_es5.symbols rename to tests/baselines/reference/asyncDeclare_es5(target=es2015).symbols diff --git a/tests/baselines/reference/asyncDeclare_es5.types b/tests/baselines/reference/asyncDeclare_es5(target=es2015).types similarity index 100% rename from tests/baselines/reference/asyncDeclare_es5.types rename to tests/baselines/reference/asyncDeclare_es5(target=es2015).types diff --git a/tests/baselines/reference/asyncDeclare_es5(target=es5).errors.txt b/tests/baselines/reference/asyncDeclare_es5(target=es5).errors.txt new file mode 100644 index 0000000000000..3aeac405b6f78 --- /dev/null +++ b/tests/baselines/reference/asyncDeclare_es5(target=es5).errors.txt @@ -0,0 +1,7 @@ +asyncDeclare_es5.ts(1,9): error TS1040: 'async' modifier cannot be used in an ambient context. + + +==== asyncDeclare_es5.ts (1 errors) ==== + declare async function foo(): Promise; + ~~~~~ +!!! error TS1040: 'async' modifier cannot be used in an ambient context. \ No newline at end of file diff --git a/tests/baselines/reference/asyncDeclare_es5(target=es5).js b/tests/baselines/reference/asyncDeclare_es5(target=es5).js new file mode 100644 index 0000000000000..ee2b01033a50f --- /dev/null +++ b/tests/baselines/reference/asyncDeclare_es5(target=es5).js @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/async/es5/asyncDeclare_es5.ts] //// + +//// [asyncDeclare_es5.ts] +declare async function foo(): Promise; + +//// [asyncDeclare_es5.js] diff --git a/tests/baselines/reference/asyncDeclare_es5(target=es5).symbols b/tests/baselines/reference/asyncDeclare_es5(target=es5).symbols new file mode 100644 index 0000000000000..3b42f02b274ef --- /dev/null +++ b/tests/baselines/reference/asyncDeclare_es5(target=es5).symbols @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/async/es5/asyncDeclare_es5.ts] //// + +=== asyncDeclare_es5.ts === +declare async function foo(): Promise; +>foo : Symbol(foo, Decl(asyncDeclare_es5.ts, 0, 0)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) + diff --git a/tests/baselines/reference/asyncDeclare_es5(target=es5).types b/tests/baselines/reference/asyncDeclare_es5(target=es5).types new file mode 100644 index 0000000000000..4d0991f9b0c36 --- /dev/null +++ b/tests/baselines/reference/asyncDeclare_es5(target=es5).types @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/async/es5/asyncDeclare_es5.ts] //// + +=== asyncDeclare_es5.ts === +declare async function foo(): Promise; +>foo : () => Promise +> : ^^^^^^ + diff --git a/tests/baselines/reference/asyncEnum_es5.errors.txt b/tests/baselines/reference/asyncEnum_es5(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/asyncEnum_es5.errors.txt rename to tests/baselines/reference/asyncEnum_es5(target=es2015).errors.txt diff --git a/tests/baselines/reference/asyncEnum_es5.js b/tests/baselines/reference/asyncEnum_es5(target=es2015).js similarity index 100% rename from tests/baselines/reference/asyncEnum_es5.js rename to tests/baselines/reference/asyncEnum_es5(target=es2015).js diff --git a/tests/baselines/reference/asyncEnum_es5.symbols b/tests/baselines/reference/asyncEnum_es5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/asyncEnum_es5.symbols rename to tests/baselines/reference/asyncEnum_es5(target=es2015).symbols diff --git a/tests/baselines/reference/asyncEnum_es5.types b/tests/baselines/reference/asyncEnum_es5(target=es2015).types similarity index 100% rename from tests/baselines/reference/asyncEnum_es5.types rename to tests/baselines/reference/asyncEnum_es5(target=es2015).types diff --git a/tests/baselines/reference/asyncEnum_es5(target=es5).errors.txt b/tests/baselines/reference/asyncEnum_es5(target=es5).errors.txt new file mode 100644 index 0000000000000..fb944a716d817 --- /dev/null +++ b/tests/baselines/reference/asyncEnum_es5(target=es5).errors.txt @@ -0,0 +1,9 @@ +asyncEnum_es5.ts(1,1): error TS1042: 'async' modifier cannot be used here. + + +==== asyncEnum_es5.ts (1 errors) ==== + async enum E { + ~~~~~ +!!! error TS1042: 'async' modifier cannot be used here. + Value + } \ No newline at end of file diff --git a/tests/baselines/reference/asyncEnum_es5(target=es5).js b/tests/baselines/reference/asyncEnum_es5(target=es5).js new file mode 100644 index 0000000000000..abeacf3871a8c --- /dev/null +++ b/tests/baselines/reference/asyncEnum_es5(target=es5).js @@ -0,0 +1,12 @@ +//// [tests/cases/conformance/async/es5/asyncEnum_es5.ts] //// + +//// [asyncEnum_es5.ts] +async enum E { + Value +} + +//// [asyncEnum_es5.js] +var E; +(function (E) { + E[E["Value"] = 0] = "Value"; +})(E || (E = {})); diff --git a/tests/baselines/reference/asyncEnum_es5(target=es5).symbols b/tests/baselines/reference/asyncEnum_es5(target=es5).symbols new file mode 100644 index 0000000000000..82ad1fc5a9435 --- /dev/null +++ b/tests/baselines/reference/asyncEnum_es5(target=es5).symbols @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/async/es5/asyncEnum_es5.ts] //// + +=== asyncEnum_es5.ts === +async enum E { +>E : Symbol(E, Decl(asyncEnum_es5.ts, 0, 0)) + + Value +>Value : Symbol(E.Value, Decl(asyncEnum_es5.ts, 0, 14)) +} diff --git a/tests/baselines/reference/asyncEnum_es5(target=es5).types b/tests/baselines/reference/asyncEnum_es5(target=es5).types new file mode 100644 index 0000000000000..50d06585485b6 --- /dev/null +++ b/tests/baselines/reference/asyncEnum_es5(target=es5).types @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/async/es5/asyncEnum_es5.ts] //// + +=== asyncEnum_es5.ts === +async enum E { +>E : E +> : ^ + + Value +>Value : E.Value +> : ^^^^^^^ +} diff --git a/tests/baselines/reference/asyncFunctionDeclaration10_es5.errors.txt b/tests/baselines/reference/asyncFunctionDeclaration10_es5(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/asyncFunctionDeclaration10_es5.errors.txt rename to tests/baselines/reference/asyncFunctionDeclaration10_es5(target=es2015).errors.txt diff --git a/tests/baselines/reference/asyncFunctionDeclaration10_es5(target=es2015).js b/tests/baselines/reference/asyncFunctionDeclaration10_es5(target=es2015).js new file mode 100644 index 0000000000000..040435199ce52 --- /dev/null +++ b/tests/baselines/reference/asyncFunctionDeclaration10_es5(target=es2015).js @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration10_es5.ts] //// + +//// [asyncFunctionDeclaration10_es5.ts] +async function foo(a = await => await): Promise { +} + +//// [asyncFunctionDeclaration10_es5.js] +function foo() { + return __awaiter(this, arguments, void 0, function* (a = yield , await) { + }); +} diff --git a/tests/baselines/reference/asyncFunctionDeclaration10_es5.symbols b/tests/baselines/reference/asyncFunctionDeclaration10_es5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/asyncFunctionDeclaration10_es5.symbols rename to tests/baselines/reference/asyncFunctionDeclaration10_es5(target=es2015).symbols diff --git a/tests/baselines/reference/asyncFunctionDeclaration10_es5.types b/tests/baselines/reference/asyncFunctionDeclaration10_es5(target=es2015).types similarity index 100% rename from tests/baselines/reference/asyncFunctionDeclaration10_es5.types rename to tests/baselines/reference/asyncFunctionDeclaration10_es5(target=es2015).types diff --git a/tests/baselines/reference/asyncFunctionDeclaration10_es5(target=es5).errors.txt b/tests/baselines/reference/asyncFunctionDeclaration10_es5(target=es5).errors.txt new file mode 100644 index 0000000000000..6fc157649dd7c --- /dev/null +++ b/tests/baselines/reference/asyncFunctionDeclaration10_es5(target=es5).errors.txt @@ -0,0 +1,11 @@ +asyncFunctionDeclaration10_es5.ts(1,24): error TS2524: 'await' expressions cannot be used in a parameter initializer. +asyncFunctionDeclaration10_es5.ts(1,30): error TS1109: Expression expected. + + +==== asyncFunctionDeclaration10_es5.ts (2 errors) ==== + async function foo(a = await => await): Promise { + ~~~~~ +!!! error TS2524: 'await' expressions cannot be used in a parameter initializer. + ~~ +!!! error TS1109: Expression expected. + } \ No newline at end of file diff --git a/tests/baselines/reference/asyncFunctionDeclaration10_es5.js b/tests/baselines/reference/asyncFunctionDeclaration10_es5(target=es5).js similarity index 100% rename from tests/baselines/reference/asyncFunctionDeclaration10_es5.js rename to tests/baselines/reference/asyncFunctionDeclaration10_es5(target=es5).js diff --git a/tests/baselines/reference/asyncFunctionDeclaration10_es5(target=es5).symbols b/tests/baselines/reference/asyncFunctionDeclaration10_es5(target=es5).symbols new file mode 100644 index 0000000000000..34bba7aeafc8b --- /dev/null +++ b/tests/baselines/reference/asyncFunctionDeclaration10_es5(target=es5).symbols @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration10_es5.ts] //// + +=== asyncFunctionDeclaration10_es5.ts === +async function foo(a = await => await): Promise { +>foo : Symbol(foo, Decl(asyncFunctionDeclaration10_es5.ts, 0, 0)) +>a : Symbol(a, Decl(asyncFunctionDeclaration10_es5.ts, 0, 19)) +>await : Symbol(await, Decl(asyncFunctionDeclaration10_es5.ts, 0, 31)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +} diff --git a/tests/baselines/reference/asyncFunctionDeclaration10_es5(target=es5).types b/tests/baselines/reference/asyncFunctionDeclaration10_es5(target=es5).types new file mode 100644 index 0000000000000..c5cbb4d24f75a --- /dev/null +++ b/tests/baselines/reference/asyncFunctionDeclaration10_es5(target=es5).types @@ -0,0 +1,15 @@ +//// [tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration10_es5.ts] //// + +=== asyncFunctionDeclaration10_es5.ts === +async function foo(a = await => await): Promise { +>foo : (a: any, await: any) => Promise +> : ^ ^^^^^^^ ^^^^^^^^^^ +>a : any +> : ^^^ +>await : any +> : ^^^ +> : any +> : ^^^ +>await : any +> : ^^^ +} diff --git a/tests/baselines/reference/asyncFunctionDeclaration11_es5(target=es2015).js b/tests/baselines/reference/asyncFunctionDeclaration11_es5(target=es2015).js new file mode 100644 index 0000000000000..163a34d8e32f2 --- /dev/null +++ b/tests/baselines/reference/asyncFunctionDeclaration11_es5(target=es2015).js @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration11_es5.ts] //// + +//// [asyncFunctionDeclaration11_es5.ts] +async function await(): Promise { +} + +//// [asyncFunctionDeclaration11_es5.js] +function await() { + return __awaiter(this, void 0, void 0, function* () { + }); +} diff --git a/tests/baselines/reference/asyncFunctionDeclaration11_es5.symbols b/tests/baselines/reference/asyncFunctionDeclaration11_es5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/asyncFunctionDeclaration11_es5.symbols rename to tests/baselines/reference/asyncFunctionDeclaration11_es5(target=es2015).symbols diff --git a/tests/baselines/reference/asyncFunctionDeclaration11_es5.types b/tests/baselines/reference/asyncFunctionDeclaration11_es5(target=es2015).types similarity index 100% rename from tests/baselines/reference/asyncFunctionDeclaration11_es5.types rename to tests/baselines/reference/asyncFunctionDeclaration11_es5(target=es2015).types diff --git a/tests/baselines/reference/asyncFunctionDeclaration11_es5.js b/tests/baselines/reference/asyncFunctionDeclaration11_es5(target=es5).js similarity index 100% rename from tests/baselines/reference/asyncFunctionDeclaration11_es5.js rename to tests/baselines/reference/asyncFunctionDeclaration11_es5(target=es5).js diff --git a/tests/baselines/reference/asyncFunctionDeclaration11_es5(target=es5).symbols b/tests/baselines/reference/asyncFunctionDeclaration11_es5(target=es5).symbols new file mode 100644 index 0000000000000..a10b56d0574ea --- /dev/null +++ b/tests/baselines/reference/asyncFunctionDeclaration11_es5(target=es5).symbols @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration11_es5.ts] //// + +=== asyncFunctionDeclaration11_es5.ts === +async function await(): Promise { +>await : Symbol(await, Decl(asyncFunctionDeclaration11_es5.ts, 0, 0)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +} diff --git a/tests/baselines/reference/asyncFunctionDeclaration11_es5(target=es5).types b/tests/baselines/reference/asyncFunctionDeclaration11_es5(target=es5).types new file mode 100644 index 0000000000000..1e68f080df943 --- /dev/null +++ b/tests/baselines/reference/asyncFunctionDeclaration11_es5(target=es5).types @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration11_es5.ts] //// + +=== asyncFunctionDeclaration11_es5.ts === +async function await(): Promise { +>await : () => Promise +> : ^^^^^^ +} diff --git a/tests/baselines/reference/asyncFunctionDeclaration12_es5.errors.txt b/tests/baselines/reference/asyncFunctionDeclaration12_es5(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/asyncFunctionDeclaration12_es5.errors.txt rename to tests/baselines/reference/asyncFunctionDeclaration12_es5(target=es2015).errors.txt diff --git a/tests/baselines/reference/asyncFunctionDeclaration12_es5(target=es2015).js b/tests/baselines/reference/asyncFunctionDeclaration12_es5(target=es2015).js new file mode 100644 index 0000000000000..1eb788619a5f9 --- /dev/null +++ b/tests/baselines/reference/asyncFunctionDeclaration12_es5(target=es2015).js @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration12_es5.ts] //// + +//// [asyncFunctionDeclaration12_es5.ts] +var v = async function await(): Promise { } + +//// [asyncFunctionDeclaration12_es5.js] +var v = function await() { + return __awaiter(this, void 0, void 0, function* () { }); +}; diff --git a/tests/baselines/reference/asyncFunctionDeclaration12_es5.symbols b/tests/baselines/reference/asyncFunctionDeclaration12_es5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/asyncFunctionDeclaration12_es5.symbols rename to tests/baselines/reference/asyncFunctionDeclaration12_es5(target=es2015).symbols diff --git a/tests/baselines/reference/asyncFunctionDeclaration12_es5.types b/tests/baselines/reference/asyncFunctionDeclaration12_es5(target=es2015).types similarity index 100% rename from tests/baselines/reference/asyncFunctionDeclaration12_es5.types rename to tests/baselines/reference/asyncFunctionDeclaration12_es5(target=es2015).types diff --git a/tests/baselines/reference/asyncFunctionDeclaration12_es5(target=es5).errors.txt b/tests/baselines/reference/asyncFunctionDeclaration12_es5(target=es5).errors.txt new file mode 100644 index 0000000000000..f6866f5bcaf7b --- /dev/null +++ b/tests/baselines/reference/asyncFunctionDeclaration12_es5(target=es5).errors.txt @@ -0,0 +1,7 @@ +asyncFunctionDeclaration12_es5.ts(1,24): error TS1359: Identifier expected. 'await' is a reserved word that cannot be used here. + + +==== asyncFunctionDeclaration12_es5.ts (1 errors) ==== + var v = async function await(): Promise { } + ~~~~~ +!!! error TS1359: Identifier expected. 'await' is a reserved word that cannot be used here. \ No newline at end of file diff --git a/tests/baselines/reference/asyncFunctionDeclaration12_es5.js b/tests/baselines/reference/asyncFunctionDeclaration12_es5(target=es5).js similarity index 100% rename from tests/baselines/reference/asyncFunctionDeclaration12_es5.js rename to tests/baselines/reference/asyncFunctionDeclaration12_es5(target=es5).js diff --git a/tests/baselines/reference/asyncFunctionDeclaration12_es5(target=es5).symbols b/tests/baselines/reference/asyncFunctionDeclaration12_es5(target=es5).symbols new file mode 100644 index 0000000000000..8b27ec5f04258 --- /dev/null +++ b/tests/baselines/reference/asyncFunctionDeclaration12_es5(target=es5).symbols @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration12_es5.ts] //// + +=== asyncFunctionDeclaration12_es5.ts === +var v = async function await(): Promise { } +>v : Symbol(v, Decl(asyncFunctionDeclaration12_es5.ts, 0, 3)) +>await : Symbol(await, Decl(asyncFunctionDeclaration12_es5.ts, 0, 7)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) + diff --git a/tests/baselines/reference/asyncFunctionDeclaration12_es5(target=es5).types b/tests/baselines/reference/asyncFunctionDeclaration12_es5(target=es5).types new file mode 100644 index 0000000000000..70020508824a2 --- /dev/null +++ b/tests/baselines/reference/asyncFunctionDeclaration12_es5(target=es5).types @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration12_es5.ts] //// + +=== asyncFunctionDeclaration12_es5.ts === +var v = async function await(): Promise { } +>v : () => Promise +> : ^^^^^^ +>async function await(): Promise { } : () => Promise +> : ^^^^^^ +>await : () => Promise +> : ^^^^^^ + diff --git a/tests/baselines/reference/asyncFunctionDeclaration13_es5.errors.txt b/tests/baselines/reference/asyncFunctionDeclaration13_es5(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/asyncFunctionDeclaration13_es5.errors.txt rename to tests/baselines/reference/asyncFunctionDeclaration13_es5(target=es2015).errors.txt diff --git a/tests/baselines/reference/asyncFunctionDeclaration13_es5(target=es2015).js b/tests/baselines/reference/asyncFunctionDeclaration13_es5(target=es2015).js new file mode 100644 index 0000000000000..28708c96b746d --- /dev/null +++ b/tests/baselines/reference/asyncFunctionDeclaration13_es5(target=es2015).js @@ -0,0 +1,16 @@ +//// [tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration13_es5.ts] //// + +//// [asyncFunctionDeclaration13_es5.ts] +async function foo(): Promise { + // Legal to use 'await' in a type context. + var v: await; +} + + +//// [asyncFunctionDeclaration13_es5.js] +function foo() { + return __awaiter(this, void 0, void 0, function* () { + // Legal to use 'await' in a type context. + var v; + }); +} diff --git a/tests/baselines/reference/asyncFunctionDeclaration13_es5.symbols b/tests/baselines/reference/asyncFunctionDeclaration13_es5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/asyncFunctionDeclaration13_es5.symbols rename to tests/baselines/reference/asyncFunctionDeclaration13_es5(target=es2015).symbols diff --git a/tests/baselines/reference/asyncFunctionDeclaration13_es5.types b/tests/baselines/reference/asyncFunctionDeclaration13_es5(target=es2015).types similarity index 100% rename from tests/baselines/reference/asyncFunctionDeclaration13_es5.types rename to tests/baselines/reference/asyncFunctionDeclaration13_es5(target=es2015).types diff --git a/tests/baselines/reference/asyncFunctionDeclaration13_es5(target=es5).errors.txt b/tests/baselines/reference/asyncFunctionDeclaration13_es5(target=es5).errors.txt new file mode 100644 index 0000000000000..b3138f28704d1 --- /dev/null +++ b/tests/baselines/reference/asyncFunctionDeclaration13_es5(target=es5).errors.txt @@ -0,0 +1,11 @@ +asyncFunctionDeclaration13_es5.ts(3,11): error TS2552: Cannot find name 'await'. Did you mean 'Awaited'? + + +==== asyncFunctionDeclaration13_es5.ts (1 errors) ==== + async function foo(): Promise { + // Legal to use 'await' in a type context. + var v: await; + ~~~~~ +!!! error TS2552: Cannot find name 'await'. Did you mean 'Awaited'? + } + \ No newline at end of file diff --git a/tests/baselines/reference/asyncFunctionDeclaration13_es5.js b/tests/baselines/reference/asyncFunctionDeclaration13_es5(target=es5).js similarity index 100% rename from tests/baselines/reference/asyncFunctionDeclaration13_es5.js rename to tests/baselines/reference/asyncFunctionDeclaration13_es5(target=es5).js diff --git a/tests/baselines/reference/asyncFunctionDeclaration13_es5(target=es5).symbols b/tests/baselines/reference/asyncFunctionDeclaration13_es5(target=es5).symbols new file mode 100644 index 0000000000000..12d18fdd19b74 --- /dev/null +++ b/tests/baselines/reference/asyncFunctionDeclaration13_es5(target=es5).symbols @@ -0,0 +1,13 @@ +//// [tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration13_es5.ts] //// + +=== asyncFunctionDeclaration13_es5.ts === +async function foo(): Promise { +>foo : Symbol(foo, Decl(asyncFunctionDeclaration13_es5.ts, 0, 0)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) + + // Legal to use 'await' in a type context. + var v: await; +>v : Symbol(v, Decl(asyncFunctionDeclaration13_es5.ts, 2, 6)) +>await : Symbol(await) +} + diff --git a/tests/baselines/reference/asyncFunctionDeclaration13_es5(target=es5).types b/tests/baselines/reference/asyncFunctionDeclaration13_es5(target=es5).types new file mode 100644 index 0000000000000..2fac5a749b4b1 --- /dev/null +++ b/tests/baselines/reference/asyncFunctionDeclaration13_es5(target=es5).types @@ -0,0 +1,13 @@ +//// [tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration13_es5.ts] //// + +=== asyncFunctionDeclaration13_es5.ts === +async function foo(): Promise { +>foo : () => Promise +> : ^^^^^^ + + // Legal to use 'await' in a type context. + var v: await; +>v : await +> : ^^^^^ +} + diff --git a/tests/baselines/reference/asyncFunctionDeclaration14_es5(target=es2015).js b/tests/baselines/reference/asyncFunctionDeclaration14_es5(target=es2015).js new file mode 100644 index 0000000000000..226249ed9db52 --- /dev/null +++ b/tests/baselines/reference/asyncFunctionDeclaration14_es5(target=es2015).js @@ -0,0 +1,13 @@ +//// [tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration14_es5.ts] //// + +//// [asyncFunctionDeclaration14_es5.ts] +async function foo(): Promise { + return; +} + +//// [asyncFunctionDeclaration14_es5.js] +function foo() { + return __awaiter(this, void 0, void 0, function* () { + return; + }); +} diff --git a/tests/baselines/reference/asyncFunctionDeclaration14_es5.symbols b/tests/baselines/reference/asyncFunctionDeclaration14_es5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/asyncFunctionDeclaration14_es5.symbols rename to tests/baselines/reference/asyncFunctionDeclaration14_es5(target=es2015).symbols diff --git a/tests/baselines/reference/asyncFunctionDeclaration14_es5.types b/tests/baselines/reference/asyncFunctionDeclaration14_es5(target=es2015).types similarity index 100% rename from tests/baselines/reference/asyncFunctionDeclaration14_es5.types rename to tests/baselines/reference/asyncFunctionDeclaration14_es5(target=es2015).types diff --git a/tests/baselines/reference/asyncFunctionDeclaration14_es5.js b/tests/baselines/reference/asyncFunctionDeclaration14_es5(target=es5).js similarity index 100% rename from tests/baselines/reference/asyncFunctionDeclaration14_es5.js rename to tests/baselines/reference/asyncFunctionDeclaration14_es5(target=es5).js diff --git a/tests/baselines/reference/asyncFunctionDeclaration14_es5(target=es5).symbols b/tests/baselines/reference/asyncFunctionDeclaration14_es5(target=es5).symbols new file mode 100644 index 0000000000000..9b030b9e8e0ce --- /dev/null +++ b/tests/baselines/reference/asyncFunctionDeclaration14_es5(target=es5).symbols @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration14_es5.ts] //// + +=== asyncFunctionDeclaration14_es5.ts === +async function foo(): Promise { +>foo : Symbol(foo, Decl(asyncFunctionDeclaration14_es5.ts, 0, 0)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) + + return; +} diff --git a/tests/baselines/reference/asyncFunctionDeclaration14_es5(target=es5).types b/tests/baselines/reference/asyncFunctionDeclaration14_es5(target=es5).types new file mode 100644 index 0000000000000..a254b5f820b28 --- /dev/null +++ b/tests/baselines/reference/asyncFunctionDeclaration14_es5(target=es5).types @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration14_es5.ts] //// + +=== asyncFunctionDeclaration14_es5.ts === +async function foo(): Promise { +>foo : () => Promise +> : ^^^^^^ + + return; +} diff --git a/tests/baselines/reference/asyncFunctionDeclaration15_es5(target=es2015).errors.txt b/tests/baselines/reference/asyncFunctionDeclaration15_es5(target=es2015).errors.txt new file mode 100644 index 0000000000000..f8f2d10feec68 --- /dev/null +++ b/tests/baselines/reference/asyncFunctionDeclaration15_es5(target=es2015).errors.txt @@ -0,0 +1,54 @@ +asyncFunctionDeclaration15_es5.ts(6,23): error TS1064: The return type of an async function or method must be the global Promise type. Did you mean to write 'Promise<{}>'? +asyncFunctionDeclaration15_es5.ts(6,23): error TS2355: A function whose declared type is neither 'undefined', 'void', nor 'any' must return a value. +asyncFunctionDeclaration15_es5.ts(7,23): error TS1064: The return type of an async function or method must be the global Promise type. Did you mean to write 'Promise'? +asyncFunctionDeclaration15_es5.ts(8,23): error TS1064: The return type of an async function or method must be the global Promise type. Did you mean to write 'Promise'? +asyncFunctionDeclaration15_es5.ts(8,23): error TS2355: A function whose declared type is neither 'undefined', 'void', nor 'any' must return a value. +asyncFunctionDeclaration15_es5.ts(9,23): error TS1064: The return type of an async function or method must be the global Promise type. Did you mean to write 'Promise'? +asyncFunctionDeclaration15_es5.ts(10,23): error TS1064: The return type of an async function or method must be the global Promise type. Did you mean to write 'Promise'? +asyncFunctionDeclaration15_es5.ts(17,16): error TS1058: The return type of an async function must either be a valid promise or must not contain a callable 'then' member. +asyncFunctionDeclaration15_es5.ts(23,25): error TS1320: Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member. + + +==== asyncFunctionDeclaration15_es5.ts (9 errors) ==== + declare class Thenable { then(): void; } + declare let a: any; + declare let obj: { then: string; }; + declare let thenable: Thenable; + async function fn1() { } // valid: Promise + async function fn2(): { } { } // error + ~~~ +!!! error TS1064: The return type of an async function or method must be the global Promise type. Did you mean to write 'Promise<{}>'? + ~~~ +!!! error TS2355: A function whose declared type is neither 'undefined', 'void', nor 'any' must return a value. + async function fn3(): any { } // error + ~~~ +!!! error TS1064: The return type of an async function or method must be the global Promise type. Did you mean to write 'Promise'? + async function fn4(): number { } // error + ~~~~~~ +!!! error TS1064: The return type of an async function or method must be the global Promise type. Did you mean to write 'Promise'? + ~~~~~~ +!!! error TS2355: A function whose declared type is neither 'undefined', 'void', nor 'any' must return a value. + async function fn5(): PromiseLike { } // error + ~~~~~~~~~~~~~~~~~ +!!! error TS1064: The return type of an async function or method must be the global Promise type. Did you mean to write 'Promise'? + async function fn6(): Thenable { } // error + ~~~~~~~~ +!!! error TS1064: The return type of an async function or method must be the global Promise type. Did you mean to write 'Promise'? + async function fn7() { return; } // valid: Promise + async function fn8() { return 1; } // valid: Promise + async function fn9() { return null; } // valid: Promise + async function fn10() { return undefined; } // valid: Promise + async function fn11() { return a; } // valid: Promise + async function fn12() { return obj; } // valid: Promise<{ then: string; }> + async function fn13() { return thenable; } // error + ~~~~ +!!! error TS1058: The return type of an async function must either be a valid promise or must not contain a callable 'then' member. + async function fn14() { await 1; } // valid: Promise + async function fn15() { await null; } // valid: Promise + async function fn16() { await undefined; } // valid: Promise + async function fn17() { await a; } // valid: Promise + async function fn18() { await obj; } // valid: Promise + async function fn19() { await thenable; } // error + ~~~~~~~~~~~~~~ +!!! error TS1320: Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member. + \ No newline at end of file diff --git a/tests/baselines/reference/asyncFunctionDeclaration15_es5(target=es2015).js b/tests/baselines/reference/asyncFunctionDeclaration15_es5(target=es2015).js new file mode 100644 index 0000000000000..9a5737d1524b0 --- /dev/null +++ b/tests/baselines/reference/asyncFunctionDeclaration15_es5(target=es2015).js @@ -0,0 +1,86 @@ +//// [tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration15_es5.ts] //// + +//// [asyncFunctionDeclaration15_es5.ts] +declare class Thenable { then(): void; } +declare let a: any; +declare let obj: { then: string; }; +declare let thenable: Thenable; +async function fn1() { } // valid: Promise +async function fn2(): { } { } // error +async function fn3(): any { } // error +async function fn4(): number { } // error +async function fn5(): PromiseLike { } // error +async function fn6(): Thenable { } // error +async function fn7() { return; } // valid: Promise +async function fn8() { return 1; } // valid: Promise +async function fn9() { return null; } // valid: Promise +async function fn10() { return undefined; } // valid: Promise +async function fn11() { return a; } // valid: Promise +async function fn12() { return obj; } // valid: Promise<{ then: string; }> +async function fn13() { return thenable; } // error +async function fn14() { await 1; } // valid: Promise +async function fn15() { await null; } // valid: Promise +async function fn16() { await undefined; } // valid: Promise +async function fn17() { await a; } // valid: Promise +async function fn18() { await obj; } // valid: Promise +async function fn19() { await thenable; } // error + + +//// [asyncFunctionDeclaration15_es5.js] +function fn1() { + return __awaiter(this, void 0, void 0, function* () { }); +} // valid: Promise +function fn2() { + return __awaiter(this, void 0, void 0, function* () { }); +} // error +function fn3() { + return __awaiter(this, void 0, void 0, function* () { }); +} // error +function fn4() { + return __awaiter(this, void 0, void 0, function* () { }); +} // error +function fn5() { + return __awaiter(this, void 0, void 0, function* () { }); +} // error +function fn6() { + return __awaiter(this, void 0, void 0, function* () { }); +} // error +function fn7() { + return __awaiter(this, void 0, void 0, function* () { return; }); +} // valid: Promise +function fn8() { + return __awaiter(this, void 0, void 0, function* () { return 1; }); +} // valid: Promise +function fn9() { + return __awaiter(this, void 0, void 0, function* () { return null; }); +} // valid: Promise +function fn10() { + return __awaiter(this, void 0, void 0, function* () { return undefined; }); +} // valid: Promise +function fn11() { + return __awaiter(this, void 0, void 0, function* () { return a; }); +} // valid: Promise +function fn12() { + return __awaiter(this, void 0, void 0, function* () { return obj; }); +} // valid: Promise<{ then: string; }> +function fn13() { + return __awaiter(this, void 0, void 0, function* () { return thenable; }); +} // error +function fn14() { + return __awaiter(this, void 0, void 0, function* () { yield 1; }); +} // valid: Promise +function fn15() { + return __awaiter(this, void 0, void 0, function* () { yield null; }); +} // valid: Promise +function fn16() { + return __awaiter(this, void 0, void 0, function* () { yield undefined; }); +} // valid: Promise +function fn17() { + return __awaiter(this, void 0, void 0, function* () { yield a; }); +} // valid: Promise +function fn18() { + return __awaiter(this, void 0, void 0, function* () { yield obj; }); +} // valid: Promise +function fn19() { + return __awaiter(this, void 0, void 0, function* () { yield thenable; }); +} // error diff --git a/tests/baselines/reference/asyncFunctionDeclaration15_es5.symbols b/tests/baselines/reference/asyncFunctionDeclaration15_es5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/asyncFunctionDeclaration15_es5.symbols rename to tests/baselines/reference/asyncFunctionDeclaration15_es5(target=es2015).symbols diff --git a/tests/baselines/reference/asyncFunctionDeclaration15_es5.types b/tests/baselines/reference/asyncFunctionDeclaration15_es5(target=es2015).types similarity index 100% rename from tests/baselines/reference/asyncFunctionDeclaration15_es5.types rename to tests/baselines/reference/asyncFunctionDeclaration15_es5(target=es2015).types diff --git a/tests/baselines/reference/asyncFunctionDeclaration15_es5.errors.txt b/tests/baselines/reference/asyncFunctionDeclaration15_es5(target=es5).errors.txt similarity index 100% rename from tests/baselines/reference/asyncFunctionDeclaration15_es5.errors.txt rename to tests/baselines/reference/asyncFunctionDeclaration15_es5(target=es5).errors.txt diff --git a/tests/baselines/reference/asyncFunctionDeclaration15_es5.js b/tests/baselines/reference/asyncFunctionDeclaration15_es5(target=es5).js similarity index 100% rename from tests/baselines/reference/asyncFunctionDeclaration15_es5.js rename to tests/baselines/reference/asyncFunctionDeclaration15_es5(target=es5).js diff --git a/tests/baselines/reference/asyncFunctionDeclaration15_es5(target=es5).symbols b/tests/baselines/reference/asyncFunctionDeclaration15_es5(target=es5).symbols new file mode 100644 index 0000000000000..d36ffbddbffcf --- /dev/null +++ b/tests/baselines/reference/asyncFunctionDeclaration15_es5(target=es5).symbols @@ -0,0 +1,85 @@ +//// [tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration15_es5.ts] //// + +=== asyncFunctionDeclaration15_es5.ts === +declare class Thenable { then(): void; } +>Thenable : Symbol(Thenable, Decl(asyncFunctionDeclaration15_es5.ts, 0, 0)) +>then : Symbol(Thenable.then, Decl(asyncFunctionDeclaration15_es5.ts, 0, 24)) + +declare let a: any; +>a : Symbol(a, Decl(asyncFunctionDeclaration15_es5.ts, 1, 11)) + +declare let obj: { then: string; }; +>obj : Symbol(obj, Decl(asyncFunctionDeclaration15_es5.ts, 2, 11)) +>then : Symbol(then, Decl(asyncFunctionDeclaration15_es5.ts, 2, 18)) + +declare let thenable: Thenable; +>thenable : Symbol(thenable, Decl(asyncFunctionDeclaration15_es5.ts, 3, 11)) +>Thenable : Symbol(Thenable, Decl(asyncFunctionDeclaration15_es5.ts, 0, 0)) + +async function fn1() { } // valid: Promise +>fn1 : Symbol(fn1, Decl(asyncFunctionDeclaration15_es5.ts, 3, 31)) + +async function fn2(): { } { } // error +>fn2 : Symbol(fn2, Decl(asyncFunctionDeclaration15_es5.ts, 4, 24)) + +async function fn3(): any { } // error +>fn3 : Symbol(fn3, Decl(asyncFunctionDeclaration15_es5.ts, 5, 29)) + +async function fn4(): number { } // error +>fn4 : Symbol(fn4, Decl(asyncFunctionDeclaration15_es5.ts, 6, 29)) + +async function fn5(): PromiseLike { } // error +>fn5 : Symbol(fn5, Decl(asyncFunctionDeclaration15_es5.ts, 7, 32)) +>PromiseLike : Symbol(PromiseLike, Decl(lib.es5.d.ts, --, --)) + +async function fn6(): Thenable { } // error +>fn6 : Symbol(fn6, Decl(asyncFunctionDeclaration15_es5.ts, 8, 43)) +>Thenable : Symbol(Thenable, Decl(asyncFunctionDeclaration15_es5.ts, 0, 0)) + +async function fn7() { return; } // valid: Promise +>fn7 : Symbol(fn7, Decl(asyncFunctionDeclaration15_es5.ts, 9, 34)) + +async function fn8() { return 1; } // valid: Promise +>fn8 : Symbol(fn8, Decl(asyncFunctionDeclaration15_es5.ts, 10, 32)) + +async function fn9() { return null; } // valid: Promise +>fn9 : Symbol(fn9, Decl(asyncFunctionDeclaration15_es5.ts, 11, 34)) + +async function fn10() { return undefined; } // valid: Promise +>fn10 : Symbol(fn10, Decl(asyncFunctionDeclaration15_es5.ts, 12, 37)) +>undefined : Symbol(undefined) + +async function fn11() { return a; } // valid: Promise +>fn11 : Symbol(fn11, Decl(asyncFunctionDeclaration15_es5.ts, 13, 43)) +>a : Symbol(a, Decl(asyncFunctionDeclaration15_es5.ts, 1, 11)) + +async function fn12() { return obj; } // valid: Promise<{ then: string; }> +>fn12 : Symbol(fn12, Decl(asyncFunctionDeclaration15_es5.ts, 14, 35)) +>obj : Symbol(obj, Decl(asyncFunctionDeclaration15_es5.ts, 2, 11)) + +async function fn13() { return thenable; } // error +>fn13 : Symbol(fn13, Decl(asyncFunctionDeclaration15_es5.ts, 15, 37)) +>thenable : Symbol(thenable, Decl(asyncFunctionDeclaration15_es5.ts, 3, 11)) + +async function fn14() { await 1; } // valid: Promise +>fn14 : Symbol(fn14, Decl(asyncFunctionDeclaration15_es5.ts, 16, 42)) + +async function fn15() { await null; } // valid: Promise +>fn15 : Symbol(fn15, Decl(asyncFunctionDeclaration15_es5.ts, 17, 34)) + +async function fn16() { await undefined; } // valid: Promise +>fn16 : Symbol(fn16, Decl(asyncFunctionDeclaration15_es5.ts, 18, 37)) +>undefined : Symbol(undefined) + +async function fn17() { await a; } // valid: Promise +>fn17 : Symbol(fn17, Decl(asyncFunctionDeclaration15_es5.ts, 19, 42)) +>a : Symbol(a, Decl(asyncFunctionDeclaration15_es5.ts, 1, 11)) + +async function fn18() { await obj; } // valid: Promise +>fn18 : Symbol(fn18, Decl(asyncFunctionDeclaration15_es5.ts, 20, 34)) +>obj : Symbol(obj, Decl(asyncFunctionDeclaration15_es5.ts, 2, 11)) + +async function fn19() { await thenable; } // error +>fn19 : Symbol(fn19, Decl(asyncFunctionDeclaration15_es5.ts, 21, 36)) +>thenable : Symbol(thenable, Decl(asyncFunctionDeclaration15_es5.ts, 3, 11)) + diff --git a/tests/baselines/reference/asyncFunctionDeclaration15_es5(target=es5).types b/tests/baselines/reference/asyncFunctionDeclaration15_es5(target=es5).types new file mode 100644 index 0000000000000..41ae66714bd35 --- /dev/null +++ b/tests/baselines/reference/asyncFunctionDeclaration15_es5(target=es5).types @@ -0,0 +1,131 @@ +//// [tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration15_es5.ts] //// + +=== asyncFunctionDeclaration15_es5.ts === +declare class Thenable { then(): void; } +>Thenable : Thenable +> : ^^^^^^^^ +>then : () => void +> : ^^^^^^ + +declare let a: any; +>a : any +> : ^^^ + +declare let obj: { then: string; }; +>obj : { then: string; } +> : ^^^^^^^^ ^^^ +>then : string +> : ^^^^^^ + +declare let thenable: Thenable; +>thenable : Thenable +> : ^^^^^^^^ + +async function fn1() { } // valid: Promise +>fn1 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + +async function fn2(): { } { } // error +>fn2 : () => {} +> : ^^^^^^ + +async function fn3(): any { } // error +>fn3 : () => any +> : ^^^^^^ + +async function fn4(): number { } // error +>fn4 : () => number +> : ^^^^^^ + +async function fn5(): PromiseLike { } // error +>fn5 : () => PromiseLike +> : ^^^^^^ + +async function fn6(): Thenable { } // error +>fn6 : () => Thenable +> : ^^^^^^ + +async function fn7() { return; } // valid: Promise +>fn7 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + +async function fn8() { return 1; } // valid: Promise +>fn8 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^^^ +>1 : 1 +> : ^ + +async function fn9() { return null; } // valid: Promise +>fn9 : () => Promise +> : ^^^^^^^^^^^^^^^^^^ + +async function fn10() { return undefined; } // valid: Promise +>fn10 : () => Promise +> : ^^^^^^^^^^^^^^^^^^ +>undefined : undefined +> : ^^^^^^^^^ + +async function fn11() { return a; } // valid: Promise +>fn11 : () => Promise +> : ^^^^^^^^^^^^^^^^^^ +>a : any +> : ^^^ + +async function fn12() { return obj; } // valid: Promise<{ then: string; }> +>fn12 : () => Promise<{ then: string; }> +> : ^^^^^^^^^^^^^^^^^^^^^^ ^^^^ +>obj : { then: string; } +> : ^^^^^^^^ ^^^ + +async function fn13() { return thenable; } // error +>fn13 : () => Promise +> : ^^^^^^^^^^^^^^^^^^ +>thenable : Thenable +> : ^^^^^^^^ + +async function fn14() { await 1; } // valid: Promise +>fn14 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ +>await 1 : 1 +> : ^ +>1 : 1 +> : ^ + +async function fn15() { await null; } // valid: Promise +>fn15 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ +>await null : null +> : ^^^^ + +async function fn16() { await undefined; } // valid: Promise +>fn16 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ +>await undefined : undefined +> : ^^^^^^^^^ +>undefined : undefined +> : ^^^^^^^^^ + +async function fn17() { await a; } // valid: Promise +>fn17 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ +>await a : any +> : ^^^ +>a : any +> : ^^^ + +async function fn18() { await obj; } // valid: Promise +>fn18 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ +>await obj : { then: string; } +> : ^^^^^^^^ ^^^ +>obj : { then: string; } +> : ^^^^^^^^ ^^^ + +async function fn19() { await thenable; } // error +>fn19 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ +>await thenable : any +> : ^^^ +>thenable : Thenable +> : ^^^^^^^^ + diff --git a/tests/baselines/reference/asyncFunctionDeclaration16_es5(target=es2015).errors.txt b/tests/baselines/reference/asyncFunctionDeclaration16_es5(target=es2015).errors.txt new file mode 100644 index 0000000000000..1ab6e50c0837c --- /dev/null +++ b/tests/baselines/reference/asyncFunctionDeclaration16_es5(target=es2015).errors.txt @@ -0,0 +1,66 @@ +/a.js(21,14): error TS1064: The return type of an async function or method must be the global Promise type. Did you mean to write 'Promise'? +/a.js(27,12): error TS1065: The return type of an async function or method must be the global Promise type. +/a.js(45,12): error TS1065: The return type of an async function or method must be the global Promise type. + + +==== /types.d.ts (0 errors) ==== + declare class Thenable { then(): void; } + +==== /a.js (3 errors) ==== + /** + * @callback T1 + * @param {string} str + * @returns {string} + */ + + /** + * @callback T2 + * @param {string} str + * @returns {Promise} + */ + + /** + * @callback T3 + * @param {string} str + * @returns {Thenable} + */ + + /** + * @param {string} str + * @returns {string} + ~~~~~~ +!!! error TS1064: The return type of an async function or method must be the global Promise type. Did you mean to write 'Promise'? + */ + const f1 = async str => { + return str; + } + + /** @type {T1} */ + ~~ +!!! error TS1065: The return type of an async function or method must be the global Promise type. +!!! related TS1064 /a.js:4:14: The return type of an async function or method must be the global Promise type. Did you mean to write 'Promise'? + const f2 = async str => { + return str; + } + + /** + * @param {string} str + * @returns {Promise} + */ + const f3 = async str => { + return str; + } + + /** @type {T2} */ + const f4 = async str => { + return str; + } + + /** @type {T3} */ + ~~ +!!! error TS1065: The return type of an async function or method must be the global Promise type. +!!! related TS1064 /a.js:16:14: The return type of an async function or method must be the global Promise type. Did you mean to write 'Promise'? + const f5 = async str => { + return str; + } + \ No newline at end of file diff --git a/tests/baselines/reference/asyncFunctionDeclaration16_es5.symbols b/tests/baselines/reference/asyncFunctionDeclaration16_es5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/asyncFunctionDeclaration16_es5.symbols rename to tests/baselines/reference/asyncFunctionDeclaration16_es5(target=es2015).symbols diff --git a/tests/baselines/reference/asyncFunctionDeclaration16_es5.types b/tests/baselines/reference/asyncFunctionDeclaration16_es5(target=es2015).types similarity index 100% rename from tests/baselines/reference/asyncFunctionDeclaration16_es5.types rename to tests/baselines/reference/asyncFunctionDeclaration16_es5(target=es2015).types diff --git a/tests/baselines/reference/asyncFunctionDeclaration16_es5.errors.txt b/tests/baselines/reference/asyncFunctionDeclaration16_es5(target=es5).errors.txt similarity index 100% rename from tests/baselines/reference/asyncFunctionDeclaration16_es5.errors.txt rename to tests/baselines/reference/asyncFunctionDeclaration16_es5(target=es5).errors.txt diff --git a/tests/baselines/reference/asyncFunctionDeclaration16_es5(target=es5).symbols b/tests/baselines/reference/asyncFunctionDeclaration16_es5(target=es5).symbols new file mode 100644 index 0000000000000..eea51dda2a834 --- /dev/null +++ b/tests/baselines/reference/asyncFunctionDeclaration16_es5(target=es5).symbols @@ -0,0 +1,77 @@ +//// [tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration16_es5.ts] //// + +=== /types.d.ts === +declare class Thenable { then(): void; } +>Thenable : Symbol(Thenable, Decl(types.d.ts, 0, 0)) +>then : Symbol(Thenable.then, Decl(types.d.ts, 0, 24)) + +=== /a.js === +/** + * @callback T1 + * @param {string} str + * @returns {string} + */ + +/** + * @callback T2 + * @param {string} str + * @returns {Promise} + */ + +/** + * @callback T3 + * @param {string} str + * @returns {Thenable} + */ + +/** + * @param {string} str + * @returns {string} + */ +const f1 = async str => { +>f1 : Symbol(f1, Decl(a.js, 22, 5)) +>str : Symbol(str, Decl(a.js, 22, 16)) + + return str; +>str : Symbol(str, Decl(a.js, 22, 16)) +} + +/** @type {T1} */ +const f2 = async str => { +>f2 : Symbol(f2, Decl(a.js, 27, 5)) +>str : Symbol(str, Decl(a.js, 27, 16)) + + return str; +>str : Symbol(str, Decl(a.js, 27, 16)) +} + +/** + * @param {string} str + * @returns {Promise} + */ +const f3 = async str => { +>f3 : Symbol(f3, Decl(a.js, 35, 5)) +>str : Symbol(str, Decl(a.js, 35, 16)) + + return str; +>str : Symbol(str, Decl(a.js, 35, 16)) +} + +/** @type {T2} */ +const f4 = async str => { +>f4 : Symbol(f4, Decl(a.js, 40, 5)) +>str : Symbol(str, Decl(a.js, 40, 16)) + + return str; +>str : Symbol(str, Decl(a.js, 40, 16)) +} + +/** @type {T3} */ +const f5 = async str => { +>f5 : Symbol(f5, Decl(a.js, 45, 5)) +>str : Symbol(str, Decl(a.js, 45, 16)) + + return str; +>str : Symbol(str, Decl(a.js, 45, 16)) +} + diff --git a/tests/baselines/reference/asyncFunctionDeclaration16_es5(target=es5).types b/tests/baselines/reference/asyncFunctionDeclaration16_es5(target=es5).types new file mode 100644 index 0000000000000..e8fac034b7fe7 --- /dev/null +++ b/tests/baselines/reference/asyncFunctionDeclaration16_es5(target=es5).types @@ -0,0 +1,104 @@ +//// [tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration16_es5.ts] //// + +=== /types.d.ts === +declare class Thenable { then(): void; } +>Thenable : Thenable +> : ^^^^^^^^ +>then : () => void +> : ^^^^^^ + +=== /a.js === +/** + * @callback T1 + * @param {string} str + * @returns {string} + */ + +/** + * @callback T2 + * @param {string} str + * @returns {Promise} + */ + +/** + * @callback T3 + * @param {string} str + * @returns {Thenable} + */ + +/** + * @param {string} str + * @returns {string} + */ +const f1 = async str => { +>f1 : (str: string) => string +> : ^ ^^ ^^^^^ +>async str => { return str;} : (str: string) => string +> : ^ ^^ ^^^^^ +>str : string +> : ^^^^^^ + + return str; +>str : string +> : ^^^^^^ +} + +/** @type {T1} */ +const f2 = async str => { +>f2 : T1 +> : ^^ +>async str => { return str;} : (str: string) => string +> : ^ ^^^^^^^^^^^^^^^^^^^ +>str : string +> : ^^^^^^ + + return str; +>str : string +> : ^^^^^^ +} + +/** + * @param {string} str + * @returns {Promise} + */ +const f3 = async str => { +>f3 : (str: string) => Promise +> : ^ ^^ ^^^^^ +>async str => { return str;} : (str: string) => Promise +> : ^ ^^ ^^^^^ +>str : string +> : ^^^^^^ + + return str; +>str : string +> : ^^^^^^ +} + +/** @type {T2} */ +const f4 = async str => { +>f4 : T2 +> : ^^ +>async str => { return str;} : (str: string) => Promise +> : ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>str : string +> : ^^^^^^ + + return str; +>str : string +> : ^^^^^^ +} + +/** @type {T3} */ +const f5 = async str => { +>f5 : T3 +> : ^^ +>async str => { return str;} : (str: string) => Thenable +> : ^ ^^^^^^^^^^^^^^^^^^^^^ +>str : string +> : ^^^^^^ + + return str; +>str : string +> : ^^^^^^ +} + diff --git a/tests/baselines/reference/asyncFunctionDeclaration1_es5(target=es2015).js b/tests/baselines/reference/asyncFunctionDeclaration1_es5(target=es2015).js new file mode 100644 index 0000000000000..959f4adac78ba --- /dev/null +++ b/tests/baselines/reference/asyncFunctionDeclaration1_es5(target=es2015).js @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration1_es5.ts] //// + +//// [asyncFunctionDeclaration1_es5.ts] +async function foo(): Promise { +} + +//// [asyncFunctionDeclaration1_es5.js] +function foo() { + return __awaiter(this, void 0, void 0, function* () { + }); +} diff --git a/tests/baselines/reference/asyncFunctionDeclaration1_es5.symbols b/tests/baselines/reference/asyncFunctionDeclaration1_es5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/asyncFunctionDeclaration1_es5.symbols rename to tests/baselines/reference/asyncFunctionDeclaration1_es5(target=es2015).symbols diff --git a/tests/baselines/reference/asyncFunctionDeclaration1_es5.types b/tests/baselines/reference/asyncFunctionDeclaration1_es5(target=es2015).types similarity index 100% rename from tests/baselines/reference/asyncFunctionDeclaration1_es5.types rename to tests/baselines/reference/asyncFunctionDeclaration1_es5(target=es2015).types diff --git a/tests/baselines/reference/asyncFunctionDeclaration1_es5.js b/tests/baselines/reference/asyncFunctionDeclaration1_es5(target=es5).js similarity index 100% rename from tests/baselines/reference/asyncFunctionDeclaration1_es5.js rename to tests/baselines/reference/asyncFunctionDeclaration1_es5(target=es5).js diff --git a/tests/baselines/reference/asyncFunctionDeclaration1_es5(target=es5).symbols b/tests/baselines/reference/asyncFunctionDeclaration1_es5(target=es5).symbols new file mode 100644 index 0000000000000..08ad7c8bdc9cc --- /dev/null +++ b/tests/baselines/reference/asyncFunctionDeclaration1_es5(target=es5).symbols @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration1_es5.ts] //// + +=== asyncFunctionDeclaration1_es5.ts === +async function foo(): Promise { +>foo : Symbol(foo, Decl(asyncFunctionDeclaration1_es5.ts, 0, 0)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +} diff --git a/tests/baselines/reference/asyncFunctionDeclaration1_es5(target=es5).types b/tests/baselines/reference/asyncFunctionDeclaration1_es5(target=es5).types new file mode 100644 index 0000000000000..d288a110467a9 --- /dev/null +++ b/tests/baselines/reference/asyncFunctionDeclaration1_es5(target=es5).types @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration1_es5.ts] //// + +=== asyncFunctionDeclaration1_es5.ts === +async function foo(): Promise { +>foo : () => Promise +> : ^^^^^^ +} diff --git a/tests/baselines/reference/asyncFunctionDeclaration2_es5.js b/tests/baselines/reference/asyncFunctionDeclaration2_es5(target=es2015).js similarity index 100% rename from tests/baselines/reference/asyncFunctionDeclaration2_es5.js rename to tests/baselines/reference/asyncFunctionDeclaration2_es5(target=es2015).js diff --git a/tests/baselines/reference/asyncFunctionDeclaration2_es5.symbols b/tests/baselines/reference/asyncFunctionDeclaration2_es5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/asyncFunctionDeclaration2_es5.symbols rename to tests/baselines/reference/asyncFunctionDeclaration2_es5(target=es2015).symbols diff --git a/tests/baselines/reference/asyncFunctionDeclaration2_es5.types b/tests/baselines/reference/asyncFunctionDeclaration2_es5(target=es2015).types similarity index 100% rename from tests/baselines/reference/asyncFunctionDeclaration2_es5.types rename to tests/baselines/reference/asyncFunctionDeclaration2_es5(target=es2015).types diff --git a/tests/baselines/reference/asyncFunctionDeclaration2_es5(target=es5).js b/tests/baselines/reference/asyncFunctionDeclaration2_es5(target=es5).js new file mode 100644 index 0000000000000..66c4cbddb1038 --- /dev/null +++ b/tests/baselines/reference/asyncFunctionDeclaration2_es5(target=es5).js @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration2_es5.ts] //// + +//// [asyncFunctionDeclaration2_es5.ts] +function f(await) { +} + +//// [asyncFunctionDeclaration2_es5.js] +function f(await) { +} diff --git a/tests/baselines/reference/asyncFunctionDeclaration2_es5(target=es5).symbols b/tests/baselines/reference/asyncFunctionDeclaration2_es5(target=es5).symbols new file mode 100644 index 0000000000000..389d222c8bdd1 --- /dev/null +++ b/tests/baselines/reference/asyncFunctionDeclaration2_es5(target=es5).symbols @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration2_es5.ts] //// + +=== asyncFunctionDeclaration2_es5.ts === +function f(await) { +>f : Symbol(f, Decl(asyncFunctionDeclaration2_es5.ts, 0, 0)) +>await : Symbol(await, Decl(asyncFunctionDeclaration2_es5.ts, 0, 11)) +} diff --git a/tests/baselines/reference/asyncFunctionDeclaration2_es5(target=es5).types b/tests/baselines/reference/asyncFunctionDeclaration2_es5(target=es5).types new file mode 100644 index 0000000000000..26a780e93d7fc --- /dev/null +++ b/tests/baselines/reference/asyncFunctionDeclaration2_es5(target=es5).types @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration2_es5.ts] //// + +=== asyncFunctionDeclaration2_es5.ts === +function f(await) { +>f : (await: any) => void +> : ^ ^^^^^^^^^^^^^^ +>await : any +} diff --git a/tests/baselines/reference/asyncFunctionDeclaration3_es5.errors.txt b/tests/baselines/reference/asyncFunctionDeclaration3_es5(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/asyncFunctionDeclaration3_es5.errors.txt rename to tests/baselines/reference/asyncFunctionDeclaration3_es5(target=es2015).errors.txt diff --git a/tests/baselines/reference/asyncFunctionDeclaration3_es5(target=es2015).js b/tests/baselines/reference/asyncFunctionDeclaration3_es5(target=es2015).js new file mode 100644 index 0000000000000..7c74aa4b821af --- /dev/null +++ b/tests/baselines/reference/asyncFunctionDeclaration3_es5(target=es2015).js @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration3_es5.ts] //// + +//// [asyncFunctionDeclaration3_es5.ts] +function f(await = await) { +} + +//// [asyncFunctionDeclaration3_es5.js] +function f(await = await) { +} diff --git a/tests/baselines/reference/asyncFunctionDeclaration3_es5.symbols b/tests/baselines/reference/asyncFunctionDeclaration3_es5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/asyncFunctionDeclaration3_es5.symbols rename to tests/baselines/reference/asyncFunctionDeclaration3_es5(target=es2015).symbols diff --git a/tests/baselines/reference/asyncFunctionDeclaration3_es5.types b/tests/baselines/reference/asyncFunctionDeclaration3_es5(target=es2015).types similarity index 100% rename from tests/baselines/reference/asyncFunctionDeclaration3_es5.types rename to tests/baselines/reference/asyncFunctionDeclaration3_es5(target=es2015).types diff --git a/tests/baselines/reference/asyncFunctionDeclaration3_es5(target=es5).errors.txt b/tests/baselines/reference/asyncFunctionDeclaration3_es5(target=es5).errors.txt new file mode 100644 index 0000000000000..2b2507b88297c --- /dev/null +++ b/tests/baselines/reference/asyncFunctionDeclaration3_es5(target=es5).errors.txt @@ -0,0 +1,8 @@ +asyncFunctionDeclaration3_es5.ts(1,20): error TS2372: Parameter 'await' cannot reference itself. + + +==== asyncFunctionDeclaration3_es5.ts (1 errors) ==== + function f(await = await) { + ~~~~~ +!!! error TS2372: Parameter 'await' cannot reference itself. + } \ No newline at end of file diff --git a/tests/baselines/reference/asyncFunctionDeclaration3_es5.js b/tests/baselines/reference/asyncFunctionDeclaration3_es5(target=es5).js similarity index 100% rename from tests/baselines/reference/asyncFunctionDeclaration3_es5.js rename to tests/baselines/reference/asyncFunctionDeclaration3_es5(target=es5).js diff --git a/tests/baselines/reference/asyncFunctionDeclaration3_es5(target=es5).symbols b/tests/baselines/reference/asyncFunctionDeclaration3_es5(target=es5).symbols new file mode 100644 index 0000000000000..5f3342458e07f --- /dev/null +++ b/tests/baselines/reference/asyncFunctionDeclaration3_es5(target=es5).symbols @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration3_es5.ts] //// + +=== asyncFunctionDeclaration3_es5.ts === +function f(await = await) { +>f : Symbol(f, Decl(asyncFunctionDeclaration3_es5.ts, 0, 0)) +>await : Symbol(await, Decl(asyncFunctionDeclaration3_es5.ts, 0, 11)) +>await : Symbol(await, Decl(asyncFunctionDeclaration3_es5.ts, 0, 11)) +} diff --git a/tests/baselines/reference/asyncFunctionDeclaration3_es5(target=es5).types b/tests/baselines/reference/asyncFunctionDeclaration3_es5(target=es5).types new file mode 100644 index 0000000000000..4469562a7aac0 --- /dev/null +++ b/tests/baselines/reference/asyncFunctionDeclaration3_es5(target=es5).types @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration3_es5.ts] //// + +=== asyncFunctionDeclaration3_es5.ts === +function f(await = await) { +>f : (await?: any) => void +> : ^ ^^^^^^^^^^^^^^^ +>await : any +> : ^^^ +>await : any +> : ^^^ +} diff --git a/tests/baselines/reference/asyncFunctionDeclaration4_es5.js b/tests/baselines/reference/asyncFunctionDeclaration4_es5(target=es2015).js similarity index 100% rename from tests/baselines/reference/asyncFunctionDeclaration4_es5.js rename to tests/baselines/reference/asyncFunctionDeclaration4_es5(target=es2015).js diff --git a/tests/baselines/reference/asyncFunctionDeclaration4_es5.symbols b/tests/baselines/reference/asyncFunctionDeclaration4_es5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/asyncFunctionDeclaration4_es5.symbols rename to tests/baselines/reference/asyncFunctionDeclaration4_es5(target=es2015).symbols diff --git a/tests/baselines/reference/asyncFunctionDeclaration4_es5.types b/tests/baselines/reference/asyncFunctionDeclaration4_es5(target=es2015).types similarity index 100% rename from tests/baselines/reference/asyncFunctionDeclaration4_es5.types rename to tests/baselines/reference/asyncFunctionDeclaration4_es5(target=es2015).types diff --git a/tests/baselines/reference/asyncFunctionDeclaration4_es5(target=es5).js b/tests/baselines/reference/asyncFunctionDeclaration4_es5(target=es5).js new file mode 100644 index 0000000000000..3a4b2beafbba5 --- /dev/null +++ b/tests/baselines/reference/asyncFunctionDeclaration4_es5(target=es5).js @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration4_es5.ts] //// + +//// [asyncFunctionDeclaration4_es5.ts] +function await() { +} + +//// [asyncFunctionDeclaration4_es5.js] +function await() { +} diff --git a/tests/baselines/reference/asyncFunctionDeclaration4_es5(target=es5).symbols b/tests/baselines/reference/asyncFunctionDeclaration4_es5(target=es5).symbols new file mode 100644 index 0000000000000..c1c16fd7ae217 --- /dev/null +++ b/tests/baselines/reference/asyncFunctionDeclaration4_es5(target=es5).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration4_es5.ts] //// + +=== asyncFunctionDeclaration4_es5.ts === +function await() { +>await : Symbol(await, Decl(asyncFunctionDeclaration4_es5.ts, 0, 0)) +} diff --git a/tests/baselines/reference/asyncFunctionDeclaration4_es5(target=es5).types b/tests/baselines/reference/asyncFunctionDeclaration4_es5(target=es5).types new file mode 100644 index 0000000000000..7c9435985c3ef --- /dev/null +++ b/tests/baselines/reference/asyncFunctionDeclaration4_es5(target=es5).types @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration4_es5.ts] //// + +=== asyncFunctionDeclaration4_es5.ts === +function await() { +>await : () => void +> : ^^^^^^^^^^ +} diff --git a/tests/baselines/reference/asyncFunctionDeclaration5_es5.errors.txt b/tests/baselines/reference/asyncFunctionDeclaration5_es5(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/asyncFunctionDeclaration5_es5.errors.txt rename to tests/baselines/reference/asyncFunctionDeclaration5_es5(target=es2015).errors.txt diff --git a/tests/baselines/reference/asyncFunctionDeclaration5_es5(target=es2015).js b/tests/baselines/reference/asyncFunctionDeclaration5_es5(target=es2015).js new file mode 100644 index 0000000000000..8c1c92f4e750b --- /dev/null +++ b/tests/baselines/reference/asyncFunctionDeclaration5_es5(target=es2015).js @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration5_es5.ts] //// + +//// [asyncFunctionDeclaration5_es5.ts] +async function foo(await): Promise { +} + +//// [asyncFunctionDeclaration5_es5.js] +function foo(await) { + return __awaiter(this, void 0, void 0, function* () { + }); +} diff --git a/tests/baselines/reference/asyncFunctionDeclaration5_es5.symbols b/tests/baselines/reference/asyncFunctionDeclaration5_es5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/asyncFunctionDeclaration5_es5.symbols rename to tests/baselines/reference/asyncFunctionDeclaration5_es5(target=es2015).symbols diff --git a/tests/baselines/reference/asyncFunctionDeclaration5_es5.types b/tests/baselines/reference/asyncFunctionDeclaration5_es5(target=es2015).types similarity index 100% rename from tests/baselines/reference/asyncFunctionDeclaration5_es5.types rename to tests/baselines/reference/asyncFunctionDeclaration5_es5(target=es2015).types diff --git a/tests/baselines/reference/asyncFunctionDeclaration5_es5(target=es5).errors.txt b/tests/baselines/reference/asyncFunctionDeclaration5_es5(target=es5).errors.txt new file mode 100644 index 0000000000000..175409258281f --- /dev/null +++ b/tests/baselines/reference/asyncFunctionDeclaration5_es5(target=es5).errors.txt @@ -0,0 +1,8 @@ +asyncFunctionDeclaration5_es5.ts(1,20): error TS1359: Identifier expected. 'await' is a reserved word that cannot be used here. + + +==== asyncFunctionDeclaration5_es5.ts (1 errors) ==== + async function foo(await): Promise { + ~~~~~ +!!! error TS1359: Identifier expected. 'await' is a reserved word that cannot be used here. + } \ No newline at end of file diff --git a/tests/baselines/reference/asyncFunctionDeclaration5_es5.js b/tests/baselines/reference/asyncFunctionDeclaration5_es5(target=es5).js similarity index 100% rename from tests/baselines/reference/asyncFunctionDeclaration5_es5.js rename to tests/baselines/reference/asyncFunctionDeclaration5_es5(target=es5).js diff --git a/tests/baselines/reference/asyncFunctionDeclaration5_es5(target=es5).symbols b/tests/baselines/reference/asyncFunctionDeclaration5_es5(target=es5).symbols new file mode 100644 index 0000000000000..55d2f2cdf0c90 --- /dev/null +++ b/tests/baselines/reference/asyncFunctionDeclaration5_es5(target=es5).symbols @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration5_es5.ts] //// + +=== asyncFunctionDeclaration5_es5.ts === +async function foo(await): Promise { +>foo : Symbol(foo, Decl(asyncFunctionDeclaration5_es5.ts, 0, 0)) +>await : Symbol(await, Decl(asyncFunctionDeclaration5_es5.ts, 0, 19)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +} diff --git a/tests/baselines/reference/asyncFunctionDeclaration5_es5(target=es5).types b/tests/baselines/reference/asyncFunctionDeclaration5_es5(target=es5).types new file mode 100644 index 0000000000000..a52a4913c03f5 --- /dev/null +++ b/tests/baselines/reference/asyncFunctionDeclaration5_es5(target=es5).types @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration5_es5.ts] //// + +=== asyncFunctionDeclaration5_es5.ts === +async function foo(await): Promise { +>foo : (await: any) => Promise +> : ^ ^^^^^^^^^^ +>await : any +> : ^^^ +} diff --git a/tests/baselines/reference/asyncFunctionDeclaration6_es5.errors.txt b/tests/baselines/reference/asyncFunctionDeclaration6_es5(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/asyncFunctionDeclaration6_es5.errors.txt rename to tests/baselines/reference/asyncFunctionDeclaration6_es5(target=es2015).errors.txt diff --git a/tests/baselines/reference/asyncFunctionDeclaration6_es5(target=es2015).js b/tests/baselines/reference/asyncFunctionDeclaration6_es5(target=es2015).js new file mode 100644 index 0000000000000..3f8ba4ab69354 --- /dev/null +++ b/tests/baselines/reference/asyncFunctionDeclaration6_es5(target=es2015).js @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration6_es5.ts] //// + +//// [asyncFunctionDeclaration6_es5.ts] +async function foo(a = await): Promise { +} + +//// [asyncFunctionDeclaration6_es5.js] +function foo() { + return __awaiter(this, arguments, void 0, function* (a = yield ) { + }); +} diff --git a/tests/baselines/reference/asyncFunctionDeclaration6_es5.symbols b/tests/baselines/reference/asyncFunctionDeclaration6_es5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/asyncFunctionDeclaration6_es5.symbols rename to tests/baselines/reference/asyncFunctionDeclaration6_es5(target=es2015).symbols diff --git a/tests/baselines/reference/asyncFunctionDeclaration6_es5.types b/tests/baselines/reference/asyncFunctionDeclaration6_es5(target=es2015).types similarity index 100% rename from tests/baselines/reference/asyncFunctionDeclaration6_es5.types rename to tests/baselines/reference/asyncFunctionDeclaration6_es5(target=es2015).types diff --git a/tests/baselines/reference/asyncFunctionDeclaration6_es5(target=es5).errors.txt b/tests/baselines/reference/asyncFunctionDeclaration6_es5(target=es5).errors.txt new file mode 100644 index 0000000000000..bfe5e9017af9f --- /dev/null +++ b/tests/baselines/reference/asyncFunctionDeclaration6_es5(target=es5).errors.txt @@ -0,0 +1,11 @@ +asyncFunctionDeclaration6_es5.ts(1,24): error TS2524: 'await' expressions cannot be used in a parameter initializer. +asyncFunctionDeclaration6_es5.ts(1,29): error TS1109: Expression expected. + + +==== asyncFunctionDeclaration6_es5.ts (2 errors) ==== + async function foo(a = await): Promise { + ~~~~~ +!!! error TS2524: 'await' expressions cannot be used in a parameter initializer. + ~ +!!! error TS1109: Expression expected. + } \ No newline at end of file diff --git a/tests/baselines/reference/asyncFunctionDeclaration6_es5.js b/tests/baselines/reference/asyncFunctionDeclaration6_es5(target=es5).js similarity index 100% rename from tests/baselines/reference/asyncFunctionDeclaration6_es5.js rename to tests/baselines/reference/asyncFunctionDeclaration6_es5(target=es5).js diff --git a/tests/baselines/reference/asyncFunctionDeclaration6_es5(target=es5).symbols b/tests/baselines/reference/asyncFunctionDeclaration6_es5(target=es5).symbols new file mode 100644 index 0000000000000..945428b81674c --- /dev/null +++ b/tests/baselines/reference/asyncFunctionDeclaration6_es5(target=es5).symbols @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration6_es5.ts] //// + +=== asyncFunctionDeclaration6_es5.ts === +async function foo(a = await): Promise { +>foo : Symbol(foo, Decl(asyncFunctionDeclaration6_es5.ts, 0, 0)) +>a : Symbol(a, Decl(asyncFunctionDeclaration6_es5.ts, 0, 19)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +} diff --git a/tests/baselines/reference/asyncFunctionDeclaration6_es5(target=es5).types b/tests/baselines/reference/asyncFunctionDeclaration6_es5(target=es5).types new file mode 100644 index 0000000000000..1c88ece8014b2 --- /dev/null +++ b/tests/baselines/reference/asyncFunctionDeclaration6_es5(target=es5).types @@ -0,0 +1,13 @@ +//// [tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration6_es5.ts] //// + +=== asyncFunctionDeclaration6_es5.ts === +async function foo(a = await): Promise { +>foo : (a?: any) => Promise +> : ^ ^^^^^^^^^^^ +>a : any +> : ^^^ +>await : any +> : ^^^ +> : any +> : ^^^ +} diff --git a/tests/baselines/reference/asyncFunctionDeclaration7_es5.errors.txt b/tests/baselines/reference/asyncFunctionDeclaration7_es5(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/asyncFunctionDeclaration7_es5.errors.txt rename to tests/baselines/reference/asyncFunctionDeclaration7_es5(target=es2015).errors.txt diff --git a/tests/baselines/reference/asyncFunctionDeclaration7_es5(target=es2015).js b/tests/baselines/reference/asyncFunctionDeclaration7_es5(target=es2015).js new file mode 100644 index 0000000000000..f8cca723ab2d7 --- /dev/null +++ b/tests/baselines/reference/asyncFunctionDeclaration7_es5(target=es2015).js @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration7_es5.ts] //// + +//// [asyncFunctionDeclaration7_es5.ts] +async function bar(): Promise { + // 'await' here is an identifier, and not a yield expression. + async function foo(a = await): Promise { + } +} + +//// [asyncFunctionDeclaration7_es5.js] +function bar() { + return __awaiter(this, void 0, void 0, function* () { + // 'await' here is an identifier, and not a yield expression. + function foo() { + return __awaiter(this, arguments, void 0, function* (a = yield ) { + }); + } + }); +} diff --git a/tests/baselines/reference/asyncFunctionDeclaration7_es5.symbols b/tests/baselines/reference/asyncFunctionDeclaration7_es5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/asyncFunctionDeclaration7_es5.symbols rename to tests/baselines/reference/asyncFunctionDeclaration7_es5(target=es2015).symbols diff --git a/tests/baselines/reference/asyncFunctionDeclaration7_es5.types b/tests/baselines/reference/asyncFunctionDeclaration7_es5(target=es2015).types similarity index 100% rename from tests/baselines/reference/asyncFunctionDeclaration7_es5.types rename to tests/baselines/reference/asyncFunctionDeclaration7_es5(target=es2015).types diff --git a/tests/baselines/reference/asyncFunctionDeclaration7_es5(target=es5).errors.txt b/tests/baselines/reference/asyncFunctionDeclaration7_es5(target=es5).errors.txt new file mode 100644 index 0000000000000..6c51148ae758e --- /dev/null +++ b/tests/baselines/reference/asyncFunctionDeclaration7_es5(target=es5).errors.txt @@ -0,0 +1,14 @@ +asyncFunctionDeclaration7_es5.ts(3,26): error TS2524: 'await' expressions cannot be used in a parameter initializer. +asyncFunctionDeclaration7_es5.ts(3,31): error TS1109: Expression expected. + + +==== asyncFunctionDeclaration7_es5.ts (2 errors) ==== + async function bar(): Promise { + // 'await' here is an identifier, and not a yield expression. + async function foo(a = await): Promise { + ~~~~~ +!!! error TS2524: 'await' expressions cannot be used in a parameter initializer. + ~ +!!! error TS1109: Expression expected. + } + } \ No newline at end of file diff --git a/tests/baselines/reference/asyncFunctionDeclaration7_es5.js b/tests/baselines/reference/asyncFunctionDeclaration7_es5(target=es5).js similarity index 100% rename from tests/baselines/reference/asyncFunctionDeclaration7_es5.js rename to tests/baselines/reference/asyncFunctionDeclaration7_es5(target=es5).js diff --git a/tests/baselines/reference/asyncFunctionDeclaration7_es5(target=es5).symbols b/tests/baselines/reference/asyncFunctionDeclaration7_es5(target=es5).symbols new file mode 100644 index 0000000000000..43e1d12448f06 --- /dev/null +++ b/tests/baselines/reference/asyncFunctionDeclaration7_es5(target=es5).symbols @@ -0,0 +1,14 @@ +//// [tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration7_es5.ts] //// + +=== asyncFunctionDeclaration7_es5.ts === +async function bar(): Promise { +>bar : Symbol(bar, Decl(asyncFunctionDeclaration7_es5.ts, 0, 0)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) + + // 'await' here is an identifier, and not a yield expression. + async function foo(a = await): Promise { +>foo : Symbol(foo, Decl(asyncFunctionDeclaration7_es5.ts, 0, 37)) +>a : Symbol(a, Decl(asyncFunctionDeclaration7_es5.ts, 2, 21)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) + } +} diff --git a/tests/baselines/reference/asyncFunctionDeclaration7_es5(target=es5).types b/tests/baselines/reference/asyncFunctionDeclaration7_es5(target=es5).types new file mode 100644 index 0000000000000..5ba91545234d6 --- /dev/null +++ b/tests/baselines/reference/asyncFunctionDeclaration7_es5(target=es5).types @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration7_es5.ts] //// + +=== asyncFunctionDeclaration7_es5.ts === +async function bar(): Promise { +>bar : () => Promise +> : ^^^^^^ + + // 'await' here is an identifier, and not a yield expression. + async function foo(a = await): Promise { +>foo : (a?: any) => Promise +> : ^ ^^^^^^^^^^^ +>a : any +> : ^^^ +>await : any +> : ^^^ +> : any +> : ^^^ + } +} diff --git a/tests/baselines/reference/asyncFunctionDeclaration8_es5.errors.txt b/tests/baselines/reference/asyncFunctionDeclaration8_es5(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/asyncFunctionDeclaration8_es5.errors.txt rename to tests/baselines/reference/asyncFunctionDeclaration8_es5(target=es2015).errors.txt diff --git a/tests/baselines/reference/asyncFunctionDeclaration8_es5(target=es2015).js b/tests/baselines/reference/asyncFunctionDeclaration8_es5(target=es2015).js new file mode 100644 index 0000000000000..dd2cda54382f3 --- /dev/null +++ b/tests/baselines/reference/asyncFunctionDeclaration8_es5(target=es2015).js @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration8_es5.ts] //// + +//// [asyncFunctionDeclaration8_es5.ts] +var v = { [await]: foo } + +//// [asyncFunctionDeclaration8_es5.js] +var v = { [await]: foo }; diff --git a/tests/baselines/reference/asyncFunctionDeclaration8_es5.symbols b/tests/baselines/reference/asyncFunctionDeclaration8_es5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/asyncFunctionDeclaration8_es5.symbols rename to tests/baselines/reference/asyncFunctionDeclaration8_es5(target=es2015).symbols diff --git a/tests/baselines/reference/asyncFunctionDeclaration8_es5.types b/tests/baselines/reference/asyncFunctionDeclaration8_es5(target=es2015).types similarity index 100% rename from tests/baselines/reference/asyncFunctionDeclaration8_es5.types rename to tests/baselines/reference/asyncFunctionDeclaration8_es5(target=es2015).types diff --git a/tests/baselines/reference/asyncFunctionDeclaration8_es5(target=es5).errors.txt b/tests/baselines/reference/asyncFunctionDeclaration8_es5(target=es5).errors.txt new file mode 100644 index 0000000000000..d050d9263b74e --- /dev/null +++ b/tests/baselines/reference/asyncFunctionDeclaration8_es5(target=es5).errors.txt @@ -0,0 +1,10 @@ +asyncFunctionDeclaration8_es5.ts(1,12): error TS2304: Cannot find name 'await'. +asyncFunctionDeclaration8_es5.ts(1,20): error TS2304: Cannot find name 'foo'. + + +==== asyncFunctionDeclaration8_es5.ts (2 errors) ==== + var v = { [await]: foo } + ~~~~~ +!!! error TS2304: Cannot find name 'await'. + ~~~ +!!! error TS2304: Cannot find name 'foo'. \ No newline at end of file diff --git a/tests/baselines/reference/asyncFunctionDeclaration8_es5.js b/tests/baselines/reference/asyncFunctionDeclaration8_es5(target=es5).js similarity index 100% rename from tests/baselines/reference/asyncFunctionDeclaration8_es5.js rename to tests/baselines/reference/asyncFunctionDeclaration8_es5(target=es5).js diff --git a/tests/baselines/reference/asyncFunctionDeclaration8_es5(target=es5).symbols b/tests/baselines/reference/asyncFunctionDeclaration8_es5(target=es5).symbols new file mode 100644 index 0000000000000..6f5cc8e635ae5 --- /dev/null +++ b/tests/baselines/reference/asyncFunctionDeclaration8_es5(target=es5).symbols @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration8_es5.ts] //// + +=== asyncFunctionDeclaration8_es5.ts === +var v = { [await]: foo } +>v : Symbol(v, Decl(asyncFunctionDeclaration8_es5.ts, 0, 3)) +>[await] : Symbol([await], Decl(asyncFunctionDeclaration8_es5.ts, 0, 9)) + diff --git a/tests/baselines/reference/asyncFunctionDeclaration8_es5(target=es5).types b/tests/baselines/reference/asyncFunctionDeclaration8_es5(target=es5).types new file mode 100644 index 0000000000000..39a38122aabda --- /dev/null +++ b/tests/baselines/reference/asyncFunctionDeclaration8_es5(target=es5).types @@ -0,0 +1,15 @@ +//// [tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration8_es5.ts] //// + +=== asyncFunctionDeclaration8_es5.ts === +var v = { [await]: foo } +>v : { [x: number]: any; } +> : ^^^^^^^^^^^^^^^^^^^^^ +>{ [await]: foo } : { [x: number]: any; } +> : ^^^^^^^^^^^^^^^^^^^^^ +>[await] : any +> : ^^^ +>await : any +> : ^^^ +>foo : any +> : ^^^ + diff --git a/tests/baselines/reference/asyncFunctionDeclaration9_es5.errors.txt b/tests/baselines/reference/asyncFunctionDeclaration9_es5(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/asyncFunctionDeclaration9_es5.errors.txt rename to tests/baselines/reference/asyncFunctionDeclaration9_es5(target=es2015).errors.txt diff --git a/tests/baselines/reference/asyncFunctionDeclaration9_es5(target=es2015).js b/tests/baselines/reference/asyncFunctionDeclaration9_es5(target=es2015).js new file mode 100644 index 0000000000000..3986493546e3f --- /dev/null +++ b/tests/baselines/reference/asyncFunctionDeclaration9_es5(target=es2015).js @@ -0,0 +1,13 @@ +//// [tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration9_es5.ts] //// + +//// [asyncFunctionDeclaration9_es5.ts] +async function foo(): Promise { + var v = { [await]: foo } +} + +//// [asyncFunctionDeclaration9_es5.js] +function foo() { + return __awaiter(this, void 0, void 0, function* () { + var v = { [yield ]: foo }; + }); +} diff --git a/tests/baselines/reference/asyncFunctionDeclaration9_es5.symbols b/tests/baselines/reference/asyncFunctionDeclaration9_es5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/asyncFunctionDeclaration9_es5.symbols rename to tests/baselines/reference/asyncFunctionDeclaration9_es5(target=es2015).symbols diff --git a/tests/baselines/reference/asyncFunctionDeclaration9_es5.types b/tests/baselines/reference/asyncFunctionDeclaration9_es5(target=es2015).types similarity index 100% rename from tests/baselines/reference/asyncFunctionDeclaration9_es5.types rename to tests/baselines/reference/asyncFunctionDeclaration9_es5(target=es2015).types diff --git a/tests/baselines/reference/asyncFunctionDeclaration9_es5(target=es5).errors.txt b/tests/baselines/reference/asyncFunctionDeclaration9_es5(target=es5).errors.txt new file mode 100644 index 0000000000000..878d099702c18 --- /dev/null +++ b/tests/baselines/reference/asyncFunctionDeclaration9_es5(target=es5).errors.txt @@ -0,0 +1,9 @@ +asyncFunctionDeclaration9_es5.ts(2,19): error TS1109: Expression expected. + + +==== asyncFunctionDeclaration9_es5.ts (1 errors) ==== + async function foo(): Promise { + var v = { [await]: foo } + ~ +!!! error TS1109: Expression expected. + } \ No newline at end of file diff --git a/tests/baselines/reference/asyncFunctionDeclaration9_es5.js b/tests/baselines/reference/asyncFunctionDeclaration9_es5(target=es5).js similarity index 100% rename from tests/baselines/reference/asyncFunctionDeclaration9_es5.js rename to tests/baselines/reference/asyncFunctionDeclaration9_es5(target=es5).js diff --git a/tests/baselines/reference/asyncFunctionDeclaration9_es5(target=es5).symbols b/tests/baselines/reference/asyncFunctionDeclaration9_es5(target=es5).symbols new file mode 100644 index 0000000000000..e6e3445756e7a --- /dev/null +++ b/tests/baselines/reference/asyncFunctionDeclaration9_es5(target=es5).symbols @@ -0,0 +1,12 @@ +//// [tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration9_es5.ts] //// + +=== asyncFunctionDeclaration9_es5.ts === +async function foo(): Promise { +>foo : Symbol(foo, Decl(asyncFunctionDeclaration9_es5.ts, 0, 0)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) + + var v = { [await]: foo } +>v : Symbol(v, Decl(asyncFunctionDeclaration9_es5.ts, 1, 5)) +>[await] : Symbol([await], Decl(asyncFunctionDeclaration9_es5.ts, 1, 11)) +>foo : Symbol(foo, Decl(asyncFunctionDeclaration9_es5.ts, 0, 0)) +} diff --git a/tests/baselines/reference/asyncFunctionDeclaration9_es5(target=es5).types b/tests/baselines/reference/asyncFunctionDeclaration9_es5(target=es5).types new file mode 100644 index 0000000000000..305202fc546ae --- /dev/null +++ b/tests/baselines/reference/asyncFunctionDeclaration9_es5(target=es5).types @@ -0,0 +1,21 @@ +//// [tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration9_es5.ts] //// + +=== asyncFunctionDeclaration9_es5.ts === +async function foo(): Promise { +>foo : () => Promise +> : ^^^^^^ + + var v = { [await]: foo } +>v : { [x: number]: () => Promise; } +> : ^^^^^^^^^^^^^^^^^^^^^ ^^^ +>{ [await]: foo } : { [x: number]: () => Promise; } +> : ^^^^^^^^^^^^^^^^^^^^^ ^^^ +>[await] : () => Promise +> : ^^^^^^ +>await : any +> : ^^^ +> : any +> : ^^^ +>foo : () => Promise +> : ^^^^^^ +} diff --git a/tests/baselines/reference/asyncFunctionDeclarationCapturesArguments_es5(target=es2015).js b/tests/baselines/reference/asyncFunctionDeclarationCapturesArguments_es5(target=es2015).js new file mode 100644 index 0000000000000..0f553556de390 --- /dev/null +++ b/tests/baselines/reference/asyncFunctionDeclarationCapturesArguments_es5(target=es2015).js @@ -0,0 +1,25 @@ +//// [tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclarationCapturesArguments_es5.ts] //// + +//// [asyncFunctionDeclarationCapturesArguments_es5.ts] +class C { + method() { + function other() {} + async function fn () { + await other.apply(this, arguments); + } + } +} + + +//// [asyncFunctionDeclarationCapturesArguments_es5.js] +class C { + method() { + function other() { } + function fn() { + var arguments_1 = arguments; + return __awaiter(this, void 0, void 0, function* () { + yield other.apply(this, arguments_1); + }); + } + } +} diff --git a/tests/baselines/reference/asyncFunctionDeclarationCapturesArguments_es5.symbols b/tests/baselines/reference/asyncFunctionDeclarationCapturesArguments_es5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/asyncFunctionDeclarationCapturesArguments_es5.symbols rename to tests/baselines/reference/asyncFunctionDeclarationCapturesArguments_es5(target=es2015).symbols diff --git a/tests/baselines/reference/asyncFunctionDeclarationCapturesArguments_es5(target=es2015).types b/tests/baselines/reference/asyncFunctionDeclarationCapturesArguments_es5(target=es2015).types new file mode 100644 index 0000000000000..c6269bd45edd9 --- /dev/null +++ b/tests/baselines/reference/asyncFunctionDeclarationCapturesArguments_es5(target=es2015).types @@ -0,0 +1,35 @@ +//// [tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclarationCapturesArguments_es5.ts] //// + +=== asyncFunctionDeclarationCapturesArguments_es5.ts === +class C { +>C : C +> : ^ + + method() { +>method : () => void +> : ^^^^^^^^^^ + + function other() {} +>other : () => void +> : ^^^^^^^^^^ + + async function fn () { +>fn : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + await other.apply(this, arguments); +>await other.apply(this, arguments) : any +>other.apply(this, arguments) : any +>other.apply : (this: Function, thisArg: any, argArray?: any) => any +> : ^ ^^ ^^ ^^ ^^ ^^^ ^^^^^ +>other : () => void +> : ^^^^^^^^^^ +>apply : (this: Function, thisArg: any, argArray?: any) => any +> : ^ ^^ ^^ ^^ ^^ ^^^ ^^^^^ +>this : any +>arguments : IArguments +> : ^^^^^^^^^^ + } + } +} + diff --git a/tests/baselines/reference/asyncFunctionDeclarationCapturesArguments_es5.errors.txt b/tests/baselines/reference/asyncFunctionDeclarationCapturesArguments_es5(target=es5).errors.txt similarity index 100% rename from tests/baselines/reference/asyncFunctionDeclarationCapturesArguments_es5.errors.txt rename to tests/baselines/reference/asyncFunctionDeclarationCapturesArguments_es5(target=es5).errors.txt diff --git a/tests/baselines/reference/asyncFunctionDeclarationCapturesArguments_es5.js b/tests/baselines/reference/asyncFunctionDeclarationCapturesArguments_es5(target=es5).js similarity index 100% rename from tests/baselines/reference/asyncFunctionDeclarationCapturesArguments_es5.js rename to tests/baselines/reference/asyncFunctionDeclarationCapturesArguments_es5(target=es5).js diff --git a/tests/baselines/reference/asyncFunctionDeclarationCapturesArguments_es5(target=es5).symbols b/tests/baselines/reference/asyncFunctionDeclarationCapturesArguments_es5(target=es5).symbols new file mode 100644 index 0000000000000..ed65437339dca --- /dev/null +++ b/tests/baselines/reference/asyncFunctionDeclarationCapturesArguments_es5(target=es5).symbols @@ -0,0 +1,24 @@ +//// [tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclarationCapturesArguments_es5.ts] //// + +=== asyncFunctionDeclarationCapturesArguments_es5.ts === +class C { +>C : Symbol(C, Decl(asyncFunctionDeclarationCapturesArguments_es5.ts, 0, 0)) + + method() { +>method : Symbol(C.method, Decl(asyncFunctionDeclarationCapturesArguments_es5.ts, 0, 9)) + + function other() {} +>other : Symbol(other, Decl(asyncFunctionDeclarationCapturesArguments_es5.ts, 1, 13)) + + async function fn () { +>fn : Symbol(fn, Decl(asyncFunctionDeclarationCapturesArguments_es5.ts, 2, 25)) + + await other.apply(this, arguments); +>other.apply : Symbol(Function.apply, Decl(lib.es5.d.ts, --, --)) +>other : Symbol(other, Decl(asyncFunctionDeclarationCapturesArguments_es5.ts, 1, 13)) +>apply : Symbol(Function.apply, Decl(lib.es5.d.ts, --, --)) +>arguments : Symbol(arguments) + } + } +} + diff --git a/tests/baselines/reference/asyncFunctionDeclarationCapturesArguments_es5.types b/tests/baselines/reference/asyncFunctionDeclarationCapturesArguments_es5(target=es5).types similarity index 100% rename from tests/baselines/reference/asyncFunctionDeclarationCapturesArguments_es5.types rename to tests/baselines/reference/asyncFunctionDeclarationCapturesArguments_es5(target=es5).types diff --git a/tests/baselines/reference/asyncFunctionTempVariableScoping(target=es2015).js b/tests/baselines/reference/asyncFunctionTempVariableScoping(target=es2015).js new file mode 100644 index 0000000000000..6b2669d1b0d49 --- /dev/null +++ b/tests/baselines/reference/asyncFunctionTempVariableScoping(target=es2015).js @@ -0,0 +1,33 @@ +//// [tests/cases/compiler/asyncFunctionTempVariableScoping.ts] //// + +//// [asyncFunctionTempVariableScoping.ts] +// https://github.com/Microsoft/TypeScript/issues/19187 + +async ({ foo, bar, ...rest }) => bar(await foo); + +//// [asyncFunctionTempVariableScoping.js] +// https://github.com/Microsoft/TypeScript/issues/19187 +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +var __rest = (this && this.__rest) || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +(_a) => __awaiter(this, void 0, void 0, function* () { + var { foo, bar } = _a, rest = __rest(_a, ["foo", "bar"]); + return bar(yield foo); +}); diff --git a/tests/baselines/reference/asyncFunctionTempVariableScoping.symbols b/tests/baselines/reference/asyncFunctionTempVariableScoping(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/asyncFunctionTempVariableScoping.symbols rename to tests/baselines/reference/asyncFunctionTempVariableScoping(target=es2015).symbols diff --git a/tests/baselines/reference/asyncFunctionTempVariableScoping.types b/tests/baselines/reference/asyncFunctionTempVariableScoping(target=es2015).types similarity index 100% rename from tests/baselines/reference/asyncFunctionTempVariableScoping.types rename to tests/baselines/reference/asyncFunctionTempVariableScoping(target=es2015).types diff --git a/tests/baselines/reference/asyncFunctionTempVariableScoping.js b/tests/baselines/reference/asyncFunctionTempVariableScoping(target=es5).js similarity index 100% rename from tests/baselines/reference/asyncFunctionTempVariableScoping.js rename to tests/baselines/reference/asyncFunctionTempVariableScoping(target=es5).js diff --git a/tests/baselines/reference/asyncFunctionTempVariableScoping(target=es5).symbols b/tests/baselines/reference/asyncFunctionTempVariableScoping(target=es5).symbols new file mode 100644 index 0000000000000..27e8ee0feb447 --- /dev/null +++ b/tests/baselines/reference/asyncFunctionTempVariableScoping(target=es5).symbols @@ -0,0 +1,12 @@ +//// [tests/cases/compiler/asyncFunctionTempVariableScoping.ts] //// + +=== asyncFunctionTempVariableScoping.ts === +// https://github.com/Microsoft/TypeScript/issues/19187 + +async ({ foo, bar, ...rest }) => bar(await foo); +>foo : Symbol(foo, Decl(asyncFunctionTempVariableScoping.ts, 2, 8)) +>bar : Symbol(bar, Decl(asyncFunctionTempVariableScoping.ts, 2, 13)) +>rest : Symbol(rest, Decl(asyncFunctionTempVariableScoping.ts, 2, 18)) +>bar : Symbol(bar, Decl(asyncFunctionTempVariableScoping.ts, 2, 13)) +>foo : Symbol(foo, Decl(asyncFunctionTempVariableScoping.ts, 2, 8)) + diff --git a/tests/baselines/reference/asyncFunctionTempVariableScoping(target=es5).types b/tests/baselines/reference/asyncFunctionTempVariableScoping(target=es5).types new file mode 100644 index 0000000000000..f419de00d7f96 --- /dev/null +++ b/tests/baselines/reference/asyncFunctionTempVariableScoping(target=es5).types @@ -0,0 +1,19 @@ +//// [tests/cases/compiler/asyncFunctionTempVariableScoping.ts] //// + +=== asyncFunctionTempVariableScoping.ts === +// https://github.com/Microsoft/TypeScript/issues/19187 + +async ({ foo, bar, ...rest }) => bar(await foo); +>async ({ foo, bar, ...rest }) => bar(await foo) : ({ foo, bar, ...rest }: { [x: string]: any; foo: any; bar: any; }) => Promise +> : ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>foo : any +> : ^^^ +>bar : any +> : ^^^ +>rest : { [x: string]: any; } +> : ^^^^^^^^^^^^^^^^^^^^^ +>bar(await foo) : any +>bar : any +>await foo : any +>foo : any + diff --git a/tests/baselines/reference/asyncGetter_es5.errors.txt b/tests/baselines/reference/asyncGetter_es5(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/asyncGetter_es5.errors.txt rename to tests/baselines/reference/asyncGetter_es5(target=es2015).errors.txt diff --git a/tests/baselines/reference/asyncGetter_es5(target=es2015).js b/tests/baselines/reference/asyncGetter_es5(target=es2015).js new file mode 100644 index 0000000000000..9ed14a8aa05ce --- /dev/null +++ b/tests/baselines/reference/asyncGetter_es5(target=es2015).js @@ -0,0 +1,13 @@ +//// [tests/cases/conformance/async/es5/asyncGetter_es5.ts] //// + +//// [asyncGetter_es5.ts] +class C { + async get foo() { + } +} + +//// [asyncGetter_es5.js] +class C { + get foo() { + } +} diff --git a/tests/baselines/reference/asyncGetter_es5.symbols b/tests/baselines/reference/asyncGetter_es5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/asyncGetter_es5.symbols rename to tests/baselines/reference/asyncGetter_es5(target=es2015).symbols diff --git a/tests/baselines/reference/asyncGetter_es5.types b/tests/baselines/reference/asyncGetter_es5(target=es2015).types similarity index 100% rename from tests/baselines/reference/asyncGetter_es5.types rename to tests/baselines/reference/asyncGetter_es5(target=es2015).types diff --git a/tests/baselines/reference/asyncGetter_es5(target=es5).errors.txt b/tests/baselines/reference/asyncGetter_es5(target=es5).errors.txt new file mode 100644 index 0000000000000..8d0d28e07f394 --- /dev/null +++ b/tests/baselines/reference/asyncGetter_es5(target=es5).errors.txt @@ -0,0 +1,13 @@ +asyncGetter_es5.ts(2,3): error TS1042: 'async' modifier cannot be used here. +asyncGetter_es5.ts(2,13): error TS2378: A 'get' accessor must return a value. + + +==== asyncGetter_es5.ts (2 errors) ==== + class C { + async get foo() { + ~~~~~ +!!! error TS1042: 'async' modifier cannot be used here. + ~~~ +!!! error TS2378: A 'get' accessor must return a value. + } + } \ No newline at end of file diff --git a/tests/baselines/reference/asyncGetter_es5.js b/tests/baselines/reference/asyncGetter_es5(target=es5).js similarity index 100% rename from tests/baselines/reference/asyncGetter_es5.js rename to tests/baselines/reference/asyncGetter_es5(target=es5).js diff --git a/tests/baselines/reference/asyncGetter_es5(target=es5).symbols b/tests/baselines/reference/asyncGetter_es5(target=es5).symbols new file mode 100644 index 0000000000000..e8c3947b69dec --- /dev/null +++ b/tests/baselines/reference/asyncGetter_es5(target=es5).symbols @@ -0,0 +1,10 @@ +//// [tests/cases/conformance/async/es5/asyncGetter_es5.ts] //// + +=== asyncGetter_es5.ts === +class C { +>C : Symbol(C, Decl(asyncGetter_es5.ts, 0, 0)) + + async get foo() { +>foo : Symbol(C.foo, Decl(asyncGetter_es5.ts, 0, 9)) + } +} diff --git a/tests/baselines/reference/asyncGetter_es5(target=es5).types b/tests/baselines/reference/asyncGetter_es5(target=es5).types new file mode 100644 index 0000000000000..a369eddda3081 --- /dev/null +++ b/tests/baselines/reference/asyncGetter_es5(target=es5).types @@ -0,0 +1,12 @@ +//// [tests/cases/conformance/async/es5/asyncGetter_es5.ts] //// + +=== asyncGetter_es5.ts === +class C { +>C : C +> : ^ + + async get foo() { +>foo : void +> : ^^^^ + } +} diff --git a/tests/baselines/reference/asyncImportedPromise_es5(target=es2015).errors.txt b/tests/baselines/reference/asyncImportedPromise_es5(target=es2015).errors.txt new file mode 100644 index 0000000000000..e26e60423e201 --- /dev/null +++ b/tests/baselines/reference/asyncImportedPromise_es5(target=es2015).errors.txt @@ -0,0 +1,13 @@ +test.ts(3,25): error TS1064: The return type of an async function or method must be the global Promise type. Did you mean to write 'Promise'? + + +==== task.ts (0 errors) ==== + export class Task extends Promise { } + +==== test.ts (1 errors) ==== + import { Task } from "./task"; + class Test { + async example(): Task { return; } + ~~~~~~~ +!!! error TS1064: The return type of an async function or method must be the global Promise type. Did you mean to write 'Promise'? + } \ No newline at end of file diff --git a/tests/baselines/reference/asyncImportedPromise_es5(target=es2015).js b/tests/baselines/reference/asyncImportedPromise_es5(target=es2015).js new file mode 100644 index 0000000000000..d452e0e36761e --- /dev/null +++ b/tests/baselines/reference/asyncImportedPromise_es5(target=es2015).js @@ -0,0 +1,35 @@ +//// [tests/cases/conformance/async/es5/asyncImportedPromise_es5.ts] //// + +//// [task.ts] +export class Task extends Promise { } + +//// [test.ts] +import { Task } from "./task"; +class Test { + async example(): Task { return; } +} + +//// [task.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Task = void 0; +class Task extends Promise { +} +exports.Task = Task; +//// [test.js] +"use strict"; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +class Test { + example() { + return __awaiter(this, void 0, void 0, function* () { return; }); + } +} diff --git a/tests/baselines/reference/asyncImportedPromise_es5.symbols b/tests/baselines/reference/asyncImportedPromise_es5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/asyncImportedPromise_es5.symbols rename to tests/baselines/reference/asyncImportedPromise_es5(target=es2015).symbols diff --git a/tests/baselines/reference/asyncImportedPromise_es5.types b/tests/baselines/reference/asyncImportedPromise_es5(target=es2015).types similarity index 100% rename from tests/baselines/reference/asyncImportedPromise_es5.types rename to tests/baselines/reference/asyncImportedPromise_es5(target=es2015).types diff --git a/tests/baselines/reference/asyncImportedPromise_es5.js b/tests/baselines/reference/asyncImportedPromise_es5(target=es5).js similarity index 100% rename from tests/baselines/reference/asyncImportedPromise_es5.js rename to tests/baselines/reference/asyncImportedPromise_es5(target=es5).js diff --git a/tests/baselines/reference/asyncImportedPromise_es5(target=es5).symbols b/tests/baselines/reference/asyncImportedPromise_es5(target=es5).symbols new file mode 100644 index 0000000000000..9aa3ff0871161 --- /dev/null +++ b/tests/baselines/reference/asyncImportedPromise_es5(target=es5).symbols @@ -0,0 +1,22 @@ +//// [tests/cases/conformance/async/es5/asyncImportedPromise_es5.ts] //// + +=== task.ts === +export class Task extends Promise { } +>Task : Symbol(Task, Decl(task.ts, 0, 0)) +>T : Symbol(T, Decl(task.ts, 0, 18)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>T : Symbol(T, Decl(task.ts, 0, 18)) + +=== test.ts === +import { Task } from "./task"; +>Task : Symbol(Task, Decl(test.ts, 0, 8)) + +class Test { +>Test : Symbol(Test, Decl(test.ts, 0, 30)) + + async example(): Task { return; } +>example : Symbol(Test.example, Decl(test.ts, 1, 12)) +>T : Symbol(T, Decl(test.ts, 2, 18)) +>Task : Symbol(Task, Decl(test.ts, 0, 8)) +>T : Symbol(T, Decl(test.ts, 2, 18)) +} diff --git a/tests/baselines/reference/asyncImportedPromise_es5(target=es5).types b/tests/baselines/reference/asyncImportedPromise_es5(target=es5).types new file mode 100644 index 0000000000000..45922f1c1475a --- /dev/null +++ b/tests/baselines/reference/asyncImportedPromise_es5(target=es5).types @@ -0,0 +1,22 @@ +//// [tests/cases/conformance/async/es5/asyncImportedPromise_es5.ts] //// + +=== task.ts === +export class Task extends Promise { } +>Task : Task +> : ^^^^^^^ +>Promise : Promise +> : ^^^^^^^^^^ + +=== test.ts === +import { Task } from "./task"; +>Task : typeof Task +> : ^^^^^^^^^^^ + +class Test { +>Test : Test +> : ^^^^ + + async example(): Task { return; } +>example : () => Task +> : ^ ^^^^^^^ +} diff --git a/tests/baselines/reference/asyncInterface_es5.errors.txt b/tests/baselines/reference/asyncInterface_es5(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/asyncInterface_es5.errors.txt rename to tests/baselines/reference/asyncInterface_es5(target=es2015).errors.txt diff --git a/tests/baselines/reference/asyncInterface_es5.js b/tests/baselines/reference/asyncInterface_es5(target=es2015).js similarity index 100% rename from tests/baselines/reference/asyncInterface_es5.js rename to tests/baselines/reference/asyncInterface_es5(target=es2015).js diff --git a/tests/baselines/reference/asyncInterface_es5.symbols b/tests/baselines/reference/asyncInterface_es5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/asyncInterface_es5.symbols rename to tests/baselines/reference/asyncInterface_es5(target=es2015).symbols diff --git a/tests/baselines/reference/asyncInterface_es5.types b/tests/baselines/reference/asyncInterface_es5(target=es2015).types similarity index 100% rename from tests/baselines/reference/asyncInterface_es5.types rename to tests/baselines/reference/asyncInterface_es5(target=es2015).types diff --git a/tests/baselines/reference/asyncInterface_es5(target=es5).errors.txt b/tests/baselines/reference/asyncInterface_es5(target=es5).errors.txt new file mode 100644 index 0000000000000..931ebb1e21497 --- /dev/null +++ b/tests/baselines/reference/asyncInterface_es5(target=es5).errors.txt @@ -0,0 +1,8 @@ +asyncInterface_es5.ts(1,1): error TS1042: 'async' modifier cannot be used here. + + +==== asyncInterface_es5.ts (1 errors) ==== + async interface I { + ~~~~~ +!!! error TS1042: 'async' modifier cannot be used here. + } \ No newline at end of file diff --git a/tests/baselines/reference/asyncInterface_es5(target=es5).js b/tests/baselines/reference/asyncInterface_es5(target=es5).js new file mode 100644 index 0000000000000..5931d9bb76a39 --- /dev/null +++ b/tests/baselines/reference/asyncInterface_es5(target=es5).js @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/async/es5/asyncInterface_es5.ts] //// + +//// [asyncInterface_es5.ts] +async interface I { +} + +//// [asyncInterface_es5.js] diff --git a/tests/baselines/reference/asyncInterface_es5(target=es5).symbols b/tests/baselines/reference/asyncInterface_es5(target=es5).symbols new file mode 100644 index 0000000000000..95beee09f7c7d --- /dev/null +++ b/tests/baselines/reference/asyncInterface_es5(target=es5).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/async/es5/asyncInterface_es5.ts] //// + +=== asyncInterface_es5.ts === +async interface I { +>I : Symbol(I, Decl(asyncInterface_es5.ts, 0, 0)) +} diff --git a/tests/baselines/reference/asyncInterface_es5(target=es5).types b/tests/baselines/reference/asyncInterface_es5(target=es5).types new file mode 100644 index 0000000000000..6cb7fa0fb0f44 --- /dev/null +++ b/tests/baselines/reference/asyncInterface_es5(target=es5).types @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/async/es5/asyncInterface_es5.ts] //// + +=== asyncInterface_es5.ts === + +async interface I { +} diff --git a/tests/baselines/reference/asyncMethodWithSuper_es5(target=es2015).js b/tests/baselines/reference/asyncMethodWithSuper_es5(target=es2015).js new file mode 100644 index 0000000000000..973a66e85459e --- /dev/null +++ b/tests/baselines/reference/asyncMethodWithSuper_es5(target=es2015).js @@ -0,0 +1,117 @@ +//// [tests/cases/conformance/async/es5/asyncMethodWithSuper_es5.ts] //// + +//// [asyncMethodWithSuper_es5.ts] +class A { + x() { + } + y() { + } +} + +class B extends A { + // async method with only call/get on 'super' does not require a binding + async simple() { + // call with property access + super.x(); + // call additional property. + super.y(); + + // call with element access + super["x"](); + + // property access (read) + const a = super.x; + + // element access (read) + const b = super["x"]; + } + + // async method with assignment/destructuring on 'super' requires a binding + async advanced() { + const f = () => {}; + + // call with property access + super.x(); + + // call with element access + super["x"](); + + // property access (read) + const a = super.x; + + // element access (read) + const b = super["x"]; + + // property access (assign) + super.x = f; + + // element access (assign) + super["x"] = f; + + // destructuring assign with property access + ({ f: super.x } = { f }); + + // destructuring assign with element access + ({ f: super["x"] } = { f }); + } +} + + +//// [asyncMethodWithSuper_es5.js] +class A { + x() { + } + y() { + } +} +class B extends A { + // async method with only call/get on 'super' does not require a binding + simple() { + const _superIndex = name => super[name]; + const _super = Object.create(null, { + x: { get: () => super.x }, + y: { get: () => super.y } + }); + return __awaiter(this, void 0, void 0, function* () { + // call with property access + _super.x.call(this); + // call additional property. + _super.y.call(this); + // call with element access + _superIndex("x").call(this); + // property access (read) + const a = _super.x; + // element access (read) + const b = _superIndex("x"); + }); + } + // async method with assignment/destructuring on 'super' requires a binding + advanced() { + const _superIndex = (function (geti, seti) { + const cache = Object.create(null); + return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } }); + })(name => super[name], (name, value) => super[name] = value); + const _super = Object.create(null, { + x: { get: () => super.x, set: v => super.x = v } + }); + return __awaiter(this, void 0, void 0, function* () { + const f = () => { }; + // call with property access + _super.x.call(this); + // call with element access + _superIndex("x").value.call(this); + // property access (read) + const a = _super.x; + // element access (read) + const b = _superIndex("x").value; + // property access (assign) + _super.x = f; + // element access (assign) + _superIndex("x").value = f; + // destructuring assign with property access + ({ f: _super.x } = { f }); + // destructuring assign with element access + ({ f: _superIndex("x").value } = { f }); + }); + } +} diff --git a/tests/baselines/reference/asyncMethodWithSuper_es5.symbols b/tests/baselines/reference/asyncMethodWithSuper_es5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/asyncMethodWithSuper_es5.symbols rename to tests/baselines/reference/asyncMethodWithSuper_es5(target=es2015).symbols diff --git a/tests/baselines/reference/asyncMethodWithSuper_es5.types b/tests/baselines/reference/asyncMethodWithSuper_es5(target=es2015).types similarity index 100% rename from tests/baselines/reference/asyncMethodWithSuper_es5.types rename to tests/baselines/reference/asyncMethodWithSuper_es5(target=es2015).types diff --git a/tests/baselines/reference/asyncMethodWithSuper_es5.js b/tests/baselines/reference/asyncMethodWithSuper_es5(target=es5).js similarity index 100% rename from tests/baselines/reference/asyncMethodWithSuper_es5.js rename to tests/baselines/reference/asyncMethodWithSuper_es5(target=es5).js diff --git a/tests/baselines/reference/asyncMethodWithSuper_es5(target=es5).symbols b/tests/baselines/reference/asyncMethodWithSuper_es5(target=es5).symbols new file mode 100644 index 0000000000000..4155347523298 --- /dev/null +++ b/tests/baselines/reference/asyncMethodWithSuper_es5(target=es5).symbols @@ -0,0 +1,114 @@ +//// [tests/cases/conformance/async/es5/asyncMethodWithSuper_es5.ts] //// + +=== asyncMethodWithSuper_es5.ts === +class A { +>A : Symbol(A, Decl(asyncMethodWithSuper_es5.ts, 0, 0)) + + x() { +>x : Symbol(A.x, Decl(asyncMethodWithSuper_es5.ts, 0, 9)) + } + y() { +>y : Symbol(A.y, Decl(asyncMethodWithSuper_es5.ts, 2, 5)) + } +} + +class B extends A { +>B : Symbol(B, Decl(asyncMethodWithSuper_es5.ts, 5, 1)) +>A : Symbol(A, Decl(asyncMethodWithSuper_es5.ts, 0, 0)) + + // async method with only call/get on 'super' does not require a binding + async simple() { +>simple : Symbol(B.simple, Decl(asyncMethodWithSuper_es5.ts, 7, 19)) + + // call with property access + super.x(); +>super.x : Symbol(A.x, Decl(asyncMethodWithSuper_es5.ts, 0, 9)) +>super : Symbol(A, Decl(asyncMethodWithSuper_es5.ts, 0, 0)) +>x : Symbol(A.x, Decl(asyncMethodWithSuper_es5.ts, 0, 9)) + + // call additional property. + super.y(); +>super.y : Symbol(A.y, Decl(asyncMethodWithSuper_es5.ts, 2, 5)) +>super : Symbol(A, Decl(asyncMethodWithSuper_es5.ts, 0, 0)) +>y : Symbol(A.y, Decl(asyncMethodWithSuper_es5.ts, 2, 5)) + + // call with element access + super["x"](); +>super : Symbol(A, Decl(asyncMethodWithSuper_es5.ts, 0, 0)) +>"x" : Symbol(A.x, Decl(asyncMethodWithSuper_es5.ts, 0, 9)) + + // property access (read) + const a = super.x; +>a : Symbol(a, Decl(asyncMethodWithSuper_es5.ts, 19, 13)) +>super.x : Symbol(A.x, Decl(asyncMethodWithSuper_es5.ts, 0, 9)) +>super : Symbol(A, Decl(asyncMethodWithSuper_es5.ts, 0, 0)) +>x : Symbol(A.x, Decl(asyncMethodWithSuper_es5.ts, 0, 9)) + + // element access (read) + const b = super["x"]; +>b : Symbol(b, Decl(asyncMethodWithSuper_es5.ts, 22, 13)) +>super : Symbol(A, Decl(asyncMethodWithSuper_es5.ts, 0, 0)) +>"x" : Symbol(A.x, Decl(asyncMethodWithSuper_es5.ts, 0, 9)) + } + + // async method with assignment/destructuring on 'super' requires a binding + async advanced() { +>advanced : Symbol(B.advanced, Decl(asyncMethodWithSuper_es5.ts, 23, 5)) + + const f = () => {}; +>f : Symbol(f, Decl(asyncMethodWithSuper_es5.ts, 27, 13)) + + // call with property access + super.x(); +>super.x : Symbol(A.x, Decl(asyncMethodWithSuper_es5.ts, 0, 9)) +>super : Symbol(A, Decl(asyncMethodWithSuper_es5.ts, 0, 0)) +>x : Symbol(A.x, Decl(asyncMethodWithSuper_es5.ts, 0, 9)) + + // call with element access + super["x"](); +>super : Symbol(A, Decl(asyncMethodWithSuper_es5.ts, 0, 0)) +>"x" : Symbol(A.x, Decl(asyncMethodWithSuper_es5.ts, 0, 9)) + + // property access (read) + const a = super.x; +>a : Symbol(a, Decl(asyncMethodWithSuper_es5.ts, 36, 13)) +>super.x : Symbol(A.x, Decl(asyncMethodWithSuper_es5.ts, 0, 9)) +>super : Symbol(A, Decl(asyncMethodWithSuper_es5.ts, 0, 0)) +>x : Symbol(A.x, Decl(asyncMethodWithSuper_es5.ts, 0, 9)) + + // element access (read) + const b = super["x"]; +>b : Symbol(b, Decl(asyncMethodWithSuper_es5.ts, 39, 13)) +>super : Symbol(A, Decl(asyncMethodWithSuper_es5.ts, 0, 0)) +>"x" : Symbol(A.x, Decl(asyncMethodWithSuper_es5.ts, 0, 9)) + + // property access (assign) + super.x = f; +>super.x : Symbol(A.x, Decl(asyncMethodWithSuper_es5.ts, 0, 9)) +>super : Symbol(A, Decl(asyncMethodWithSuper_es5.ts, 0, 0)) +>x : Symbol(A.x, Decl(asyncMethodWithSuper_es5.ts, 0, 9)) +>f : Symbol(f, Decl(asyncMethodWithSuper_es5.ts, 27, 13)) + + // element access (assign) + super["x"] = f; +>super : Symbol(A, Decl(asyncMethodWithSuper_es5.ts, 0, 0)) +>"x" : Symbol(A.x, Decl(asyncMethodWithSuper_es5.ts, 0, 9)) +>f : Symbol(f, Decl(asyncMethodWithSuper_es5.ts, 27, 13)) + + // destructuring assign with property access + ({ f: super.x } = { f }); +>f : Symbol(f, Decl(asyncMethodWithSuper_es5.ts, 48, 10)) +>super.x : Symbol(A.x, Decl(asyncMethodWithSuper_es5.ts, 0, 9)) +>super : Symbol(A, Decl(asyncMethodWithSuper_es5.ts, 0, 0)) +>x : Symbol(A.x, Decl(asyncMethodWithSuper_es5.ts, 0, 9)) +>f : Symbol(f, Decl(asyncMethodWithSuper_es5.ts, 48, 27)) + + // destructuring assign with element access + ({ f: super["x"] } = { f }); +>f : Symbol(f, Decl(asyncMethodWithSuper_es5.ts, 51, 10)) +>super : Symbol(A, Decl(asyncMethodWithSuper_es5.ts, 0, 0)) +>"x" : Symbol(A.x, Decl(asyncMethodWithSuper_es5.ts, 0, 9)) +>f : Symbol(f, Decl(asyncMethodWithSuper_es5.ts, 51, 30)) + } +} + diff --git a/tests/baselines/reference/asyncMethodWithSuper_es5(target=es5).types b/tests/baselines/reference/asyncMethodWithSuper_es5(target=es5).types new file mode 100644 index 0000000000000..8a930be3bcbfa --- /dev/null +++ b/tests/baselines/reference/asyncMethodWithSuper_es5(target=es5).types @@ -0,0 +1,209 @@ +//// [tests/cases/conformance/async/es5/asyncMethodWithSuper_es5.ts] //// + +=== asyncMethodWithSuper_es5.ts === +class A { +>A : A +> : ^ + + x() { +>x : () => void +> : ^^^^^^^^^^ + } + y() { +>y : () => void +> : ^^^^^^^^^^ + } +} + +class B extends A { +>B : B +> : ^ +>A : A +> : ^ + + // async method with only call/get on 'super' does not require a binding + async simple() { +>simple : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + // call with property access + super.x(); +>super.x() : void +> : ^^^^ +>super.x : () => void +> : ^^^^^^^^^^ +>super : A +> : ^ +>x : () => void +> : ^^^^^^^^^^ + + // call additional property. + super.y(); +>super.y() : void +> : ^^^^ +>super.y : () => void +> : ^^^^^^^^^^ +>super : A +> : ^ +>y : () => void +> : ^^^^^^^^^^ + + // call with element access + super["x"](); +>super["x"]() : void +> : ^^^^ +>super["x"] : () => void +> : ^^^^^^^^^^ +>super : A +> : ^ +>"x" : "x" +> : ^^^ + + // property access (read) + const a = super.x; +>a : () => void +> : ^^^^^^^^^^ +>super.x : () => void +> : ^^^^^^^^^^ +>super : A +> : ^ +>x : () => void +> : ^^^^^^^^^^ + + // element access (read) + const b = super["x"]; +>b : () => void +> : ^^^^^^^^^^ +>super["x"] : () => void +> : ^^^^^^^^^^ +>super : A +> : ^ +>"x" : "x" +> : ^^^ + } + + // async method with assignment/destructuring on 'super' requires a binding + async advanced() { +>advanced : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + const f = () => {}; +>f : () => void +> : ^^^^^^^^^^ +>() => {} : () => void +> : ^^^^^^^^^^ + + // call with property access + super.x(); +>super.x() : void +> : ^^^^ +>super.x : () => void +> : ^^^^^^^^^^ +>super : A +> : ^ +>x : () => void +> : ^^^^^^^^^^ + + // call with element access + super["x"](); +>super["x"]() : void +> : ^^^^ +>super["x"] : () => void +> : ^^^^^^^^^^ +>super : A +> : ^ +>"x" : "x" +> : ^^^ + + // property access (read) + const a = super.x; +>a : () => void +> : ^^^^^^^^^^ +>super.x : () => void +> : ^^^^^^^^^^ +>super : A +> : ^ +>x : () => void +> : ^^^^^^^^^^ + + // element access (read) + const b = super["x"]; +>b : () => void +> : ^^^^^^^^^^ +>super["x"] : () => void +> : ^^^^^^^^^^ +>super : A +> : ^ +>"x" : "x" +> : ^^^ + + // property access (assign) + super.x = f; +>super.x = f : () => void +> : ^^^^^^^^^^ +>super.x : () => void +> : ^^^^^^^^^^ +>super : A +> : ^ +>x : () => void +> : ^^^^^^^^^^ +>f : () => void +> : ^^^^^^^^^^ + + // element access (assign) + super["x"] = f; +>super["x"] = f : () => void +> : ^^^^^^^^^^ +>super["x"] : () => void +> : ^^^^^^^^^^ +>super : A +> : ^ +>"x" : "x" +> : ^^^ +>f : () => void +> : ^^^^^^^^^^ + + // destructuring assign with property access + ({ f: super.x } = { f }); +>({ f: super.x } = { f }) : { f: () => void; } +> : ^^^^^^^^^^^^^^^^^^ +>{ f: super.x } = { f } : { f: () => void; } +> : ^^^^^^^^^^^^^^^^^^ +>{ f: super.x } : { f: () => void; } +> : ^^^^^^^^^^^^^^^^^^ +>f : () => void +> : ^^^^^^^^^^ +>super.x : () => void +> : ^^^^^^^^^^ +>super : A +> : ^ +>x : () => void +> : ^^^^^^^^^^ +>{ f } : { f: () => void; } +> : ^^^^^^^^^^^^^^^^^^ +>f : () => void +> : ^^^^^^^^^^ + + // destructuring assign with element access + ({ f: super["x"] } = { f }); +>({ f: super["x"] } = { f }) : { f: () => void; } +> : ^^^^^^^^^^^^^^^^^^ +>{ f: super["x"] } = { f } : { f: () => void; } +> : ^^^^^^^^^^^^^^^^^^ +>{ f: super["x"] } : { f: () => void; } +> : ^^^^^^^^^^^^^^^^^^ +>f : () => void +> : ^^^^^^^^^^ +>super["x"] : () => void +> : ^^^^^^^^^^ +>super : A +> : ^ +>"x" : "x" +> : ^^^ +>{ f } : { f: () => void; } +> : ^^^^^^^^^^^^^^^^^^ +>f : () => void +> : ^^^^^^^^^^ + } +} + diff --git a/tests/baselines/reference/asyncModule_es5.errors.txt b/tests/baselines/reference/asyncModule_es5(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/asyncModule_es5.errors.txt rename to tests/baselines/reference/asyncModule_es5(target=es2015).errors.txt diff --git a/tests/baselines/reference/asyncModule_es5.js b/tests/baselines/reference/asyncModule_es5(target=es2015).js similarity index 100% rename from tests/baselines/reference/asyncModule_es5.js rename to tests/baselines/reference/asyncModule_es5(target=es2015).js diff --git a/tests/baselines/reference/asyncModule_es5.symbols b/tests/baselines/reference/asyncModule_es5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/asyncModule_es5.symbols rename to tests/baselines/reference/asyncModule_es5(target=es2015).symbols diff --git a/tests/baselines/reference/asyncModule_es5.types b/tests/baselines/reference/asyncModule_es5(target=es2015).types similarity index 100% rename from tests/baselines/reference/asyncModule_es5.types rename to tests/baselines/reference/asyncModule_es5(target=es2015).types diff --git a/tests/baselines/reference/asyncModule_es5(target=es5).errors.txt b/tests/baselines/reference/asyncModule_es5(target=es5).errors.txt new file mode 100644 index 0000000000000..c381d2a74aca7 --- /dev/null +++ b/tests/baselines/reference/asyncModule_es5(target=es5).errors.txt @@ -0,0 +1,8 @@ +asyncModule_es5.ts(1,1): error TS1042: 'async' modifier cannot be used here. + + +==== asyncModule_es5.ts (1 errors) ==== + async namespace M { + ~~~~~ +!!! error TS1042: 'async' modifier cannot be used here. + } \ No newline at end of file diff --git a/tests/baselines/reference/asyncModule_es5(target=es5).js b/tests/baselines/reference/asyncModule_es5(target=es5).js new file mode 100644 index 0000000000000..2fdf36581c62b --- /dev/null +++ b/tests/baselines/reference/asyncModule_es5(target=es5).js @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/async/es5/asyncModule_es5.ts] //// + +//// [asyncModule_es5.ts] +async namespace M { +} + +//// [asyncModule_es5.js] diff --git a/tests/baselines/reference/asyncModule_es5(target=es5).symbols b/tests/baselines/reference/asyncModule_es5(target=es5).symbols new file mode 100644 index 0000000000000..1c93a6a3c6329 --- /dev/null +++ b/tests/baselines/reference/asyncModule_es5(target=es5).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/async/es5/asyncModule_es5.ts] //// + +=== asyncModule_es5.ts === +async namespace M { +>M : Symbol(M, Decl(asyncModule_es5.ts, 0, 0)) +} diff --git a/tests/baselines/reference/asyncModule_es5(target=es5).types b/tests/baselines/reference/asyncModule_es5(target=es5).types new file mode 100644 index 0000000000000..efbbf941a1f1d --- /dev/null +++ b/tests/baselines/reference/asyncModule_es5(target=es5).types @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/async/es5/asyncModule_es5.ts] //// + +=== asyncModule_es5.ts === + +async namespace M { +} diff --git a/tests/baselines/reference/asyncMultiFile_es5(target=es2015).js b/tests/baselines/reference/asyncMultiFile_es5(target=es2015).js new file mode 100644 index 0000000000000..fa46f1cdbd7f0 --- /dev/null +++ b/tests/baselines/reference/asyncMultiFile_es5(target=es2015).js @@ -0,0 +1,22 @@ +//// [tests/cases/conformance/async/es5/asyncMultiFile_es5.ts] //// + +//// [a.ts] +async function f() {} +//// [b.ts] +function g() { } + +//// [a.js] +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +function f() { + return __awaiter(this, void 0, void 0, function* () { }); +} +//// [b.js] +function g() { } diff --git a/tests/baselines/reference/asyncMultiFile_es5.symbols b/tests/baselines/reference/asyncMultiFile_es5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/asyncMultiFile_es5.symbols rename to tests/baselines/reference/asyncMultiFile_es5(target=es2015).symbols diff --git a/tests/baselines/reference/asyncMultiFile_es5.types b/tests/baselines/reference/asyncMultiFile_es5(target=es2015).types similarity index 100% rename from tests/baselines/reference/asyncMultiFile_es5.types rename to tests/baselines/reference/asyncMultiFile_es5(target=es2015).types diff --git a/tests/baselines/reference/asyncMultiFile_es5.js b/tests/baselines/reference/asyncMultiFile_es5(target=es5).js similarity index 100% rename from tests/baselines/reference/asyncMultiFile_es5.js rename to tests/baselines/reference/asyncMultiFile_es5(target=es5).js diff --git a/tests/baselines/reference/asyncMultiFile_es5(target=es5).symbols b/tests/baselines/reference/asyncMultiFile_es5(target=es5).symbols new file mode 100644 index 0000000000000..e614d98bb2b29 --- /dev/null +++ b/tests/baselines/reference/asyncMultiFile_es5(target=es5).symbols @@ -0,0 +1,10 @@ +//// [tests/cases/conformance/async/es5/asyncMultiFile_es5.ts] //// + +=== a.ts === +async function f() {} +>f : Symbol(f, Decl(a.ts, 0, 0)) + +=== b.ts === +function g() { } +>g : Symbol(g, Decl(b.ts, 0, 0)) + diff --git a/tests/baselines/reference/asyncMultiFile_es5(target=es5).types b/tests/baselines/reference/asyncMultiFile_es5(target=es5).types new file mode 100644 index 0000000000000..bb873420a332a --- /dev/null +++ b/tests/baselines/reference/asyncMultiFile_es5(target=es5).types @@ -0,0 +1,12 @@ +//// [tests/cases/conformance/async/es5/asyncMultiFile_es5.ts] //// + +=== a.ts === +async function f() {} +>f : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + +=== b.ts === +function g() { } +>g : () => void +> : ^^^^^^^^^^ + diff --git a/tests/baselines/reference/asyncQualifiedReturnType_es5(target=es2015).errors.txt b/tests/baselines/reference/asyncQualifiedReturnType_es5(target=es2015).errors.txt new file mode 100644 index 0000000000000..5e2ce01846052 --- /dev/null +++ b/tests/baselines/reference/asyncQualifiedReturnType_es5(target=es2015).errors.txt @@ -0,0 +1,13 @@ +asyncQualifiedReturnType_es5.ts(6,21): error TS1064: The return type of an async function or method must be the global Promise type. Did you mean to write 'Promise'? + + +==== asyncQualifiedReturnType_es5.ts (1 errors) ==== + namespace X { + export class MyPromise extends Promise { + } + } + + async function f(): X.MyPromise { + ~~~~~~~~~~~~~~~~~ +!!! error TS1064: The return type of an async function or method must be the global Promise type. Did you mean to write 'Promise'? + } \ No newline at end of file diff --git a/tests/baselines/reference/asyncQualifiedReturnType_es5(target=es2015).js b/tests/baselines/reference/asyncQualifiedReturnType_es5(target=es2015).js new file mode 100644 index 0000000000000..381b121316173 --- /dev/null +++ b/tests/baselines/reference/asyncQualifiedReturnType_es5(target=es2015).js @@ -0,0 +1,22 @@ +//// [tests/cases/conformance/async/es5/asyncQualifiedReturnType_es5.ts] //// + +//// [asyncQualifiedReturnType_es5.ts] +namespace X { + export class MyPromise extends Promise { + } +} + +async function f(): X.MyPromise { +} + +//// [asyncQualifiedReturnType_es5.js] +var X; +(function (X) { + class MyPromise extends Promise { + } + X.MyPromise = MyPromise; +})(X || (X = {})); +function f() { + return __awaiter(this, void 0, void 0, function* () { + }); +} diff --git a/tests/baselines/reference/asyncQualifiedReturnType_es5.symbols b/tests/baselines/reference/asyncQualifiedReturnType_es5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/asyncQualifiedReturnType_es5.symbols rename to tests/baselines/reference/asyncQualifiedReturnType_es5(target=es2015).symbols diff --git a/tests/baselines/reference/asyncQualifiedReturnType_es5.types b/tests/baselines/reference/asyncQualifiedReturnType_es5(target=es2015).types similarity index 100% rename from tests/baselines/reference/asyncQualifiedReturnType_es5.types rename to tests/baselines/reference/asyncQualifiedReturnType_es5(target=es2015).types diff --git a/tests/baselines/reference/asyncQualifiedReturnType_es5.js b/tests/baselines/reference/asyncQualifiedReturnType_es5(target=es5).js similarity index 100% rename from tests/baselines/reference/asyncQualifiedReturnType_es5.js rename to tests/baselines/reference/asyncQualifiedReturnType_es5(target=es5).js diff --git a/tests/baselines/reference/asyncQualifiedReturnType_es5(target=es5).symbols b/tests/baselines/reference/asyncQualifiedReturnType_es5(target=es5).symbols new file mode 100644 index 0000000000000..ec66e0db875d1 --- /dev/null +++ b/tests/baselines/reference/asyncQualifiedReturnType_es5(target=es5).symbols @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/async/es5/asyncQualifiedReturnType_es5.ts] //// + +=== asyncQualifiedReturnType_es5.ts === +namespace X { +>X : Symbol(X, Decl(asyncQualifiedReturnType_es5.ts, 0, 0)) + + export class MyPromise extends Promise { +>MyPromise : Symbol(MyPromise, Decl(asyncQualifiedReturnType_es5.ts, 0, 13)) +>T : Symbol(T, Decl(asyncQualifiedReturnType_es5.ts, 1, 27)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>T : Symbol(T, Decl(asyncQualifiedReturnType_es5.ts, 1, 27)) + } +} + +async function f(): X.MyPromise { +>f : Symbol(f, Decl(asyncQualifiedReturnType_es5.ts, 3, 1)) +>X : Symbol(X, Decl(asyncQualifiedReturnType_es5.ts, 0, 0)) +>MyPromise : Symbol(X.MyPromise, Decl(asyncQualifiedReturnType_es5.ts, 0, 13)) +} diff --git a/tests/baselines/reference/asyncQualifiedReturnType_es5(target=es5).types b/tests/baselines/reference/asyncQualifiedReturnType_es5(target=es5).types new file mode 100644 index 0000000000000..db4e8945b121a --- /dev/null +++ b/tests/baselines/reference/asyncQualifiedReturnType_es5(target=es5).types @@ -0,0 +1,21 @@ +//// [tests/cases/conformance/async/es5/asyncQualifiedReturnType_es5.ts] //// + +=== asyncQualifiedReturnType_es5.ts === +namespace X { +>X : typeof X +> : ^^^^^^^^ + + export class MyPromise extends Promise { +>MyPromise : MyPromise +> : ^^^^^^^^^^^^ +>Promise : Promise +> : ^^^^^^^^^^ + } +} + +async function f(): X.MyPromise { +>f : () => X.MyPromise +> : ^^^^^^ +>X : any +> : ^^^ +} diff --git a/tests/baselines/reference/asyncSetter_es5.errors.txt b/tests/baselines/reference/asyncSetter_es5(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/asyncSetter_es5.errors.txt rename to tests/baselines/reference/asyncSetter_es5(target=es2015).errors.txt diff --git a/tests/baselines/reference/asyncSetter_es5(target=es2015).js b/tests/baselines/reference/asyncSetter_es5(target=es2015).js new file mode 100644 index 0000000000000..33922c0ac729e --- /dev/null +++ b/tests/baselines/reference/asyncSetter_es5(target=es2015).js @@ -0,0 +1,13 @@ +//// [tests/cases/conformance/async/es5/asyncSetter_es5.ts] //// + +//// [asyncSetter_es5.ts] +class C { + async set foo(value) { + } +} + +//// [asyncSetter_es5.js] +class C { + set foo(value) { + } +} diff --git a/tests/baselines/reference/asyncSetter_es5.symbols b/tests/baselines/reference/asyncSetter_es5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/asyncSetter_es5.symbols rename to tests/baselines/reference/asyncSetter_es5(target=es2015).symbols diff --git a/tests/baselines/reference/asyncSetter_es5.types b/tests/baselines/reference/asyncSetter_es5(target=es2015).types similarity index 100% rename from tests/baselines/reference/asyncSetter_es5.types rename to tests/baselines/reference/asyncSetter_es5(target=es2015).types diff --git a/tests/baselines/reference/asyncSetter_es5(target=es5).errors.txt b/tests/baselines/reference/asyncSetter_es5(target=es5).errors.txt new file mode 100644 index 0000000000000..d637655d34104 --- /dev/null +++ b/tests/baselines/reference/asyncSetter_es5(target=es5).errors.txt @@ -0,0 +1,10 @@ +asyncSetter_es5.ts(2,3): error TS1042: 'async' modifier cannot be used here. + + +==== asyncSetter_es5.ts (1 errors) ==== + class C { + async set foo(value) { + ~~~~~ +!!! error TS1042: 'async' modifier cannot be used here. + } + } \ No newline at end of file diff --git a/tests/baselines/reference/asyncSetter_es5.js b/tests/baselines/reference/asyncSetter_es5(target=es5).js similarity index 100% rename from tests/baselines/reference/asyncSetter_es5.js rename to tests/baselines/reference/asyncSetter_es5(target=es5).js diff --git a/tests/baselines/reference/asyncSetter_es5(target=es5).symbols b/tests/baselines/reference/asyncSetter_es5(target=es5).symbols new file mode 100644 index 0000000000000..cc3d1923c6ccf --- /dev/null +++ b/tests/baselines/reference/asyncSetter_es5(target=es5).symbols @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/async/es5/asyncSetter_es5.ts] //// + +=== asyncSetter_es5.ts === +class C { +>C : Symbol(C, Decl(asyncSetter_es5.ts, 0, 0)) + + async set foo(value) { +>foo : Symbol(C.foo, Decl(asyncSetter_es5.ts, 0, 9)) +>value : Symbol(value, Decl(asyncSetter_es5.ts, 1, 16)) + } +} diff --git a/tests/baselines/reference/asyncSetter_es5(target=es5).types b/tests/baselines/reference/asyncSetter_es5(target=es5).types new file mode 100644 index 0000000000000..eea0fee80adb1 --- /dev/null +++ b/tests/baselines/reference/asyncSetter_es5(target=es5).types @@ -0,0 +1,14 @@ +//// [tests/cases/conformance/async/es5/asyncSetter_es5.ts] //// + +=== asyncSetter_es5.ts === +class C { +>C : C +> : ^ + + async set foo(value) { +>foo : any +> : ^^^ +>value : any +> : ^^^ + } +} diff --git a/tests/baselines/reference/asyncUnParenthesizedArrowFunction_es5(target=es2015).js b/tests/baselines/reference/asyncUnParenthesizedArrowFunction_es5(target=es2015).js new file mode 100644 index 0000000000000..391660eab9804 --- /dev/null +++ b/tests/baselines/reference/asyncUnParenthesizedArrowFunction_es5(target=es2015).js @@ -0,0 +1,10 @@ +//// [tests/cases/conformance/async/es5/asyncArrowFunction/asyncUnParenthesizedArrowFunction_es5.ts] //// + +//// [asyncUnParenthesizedArrowFunction_es5.ts] +declare function someOtherFunction(i: any): Promise; +const x = async i => await someOtherFunction(i) +const x1 = async (i) => await someOtherFunction(i); + +//// [asyncUnParenthesizedArrowFunction_es5.js] +const x = (i) => __awaiter(this, void 0, void 0, function* () { return yield someOtherFunction(i); }); +const x1 = (i) => __awaiter(this, void 0, void 0, function* () { return yield someOtherFunction(i); }); diff --git a/tests/baselines/reference/asyncUnParenthesizedArrowFunction_es5.symbols b/tests/baselines/reference/asyncUnParenthesizedArrowFunction_es5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/asyncUnParenthesizedArrowFunction_es5.symbols rename to tests/baselines/reference/asyncUnParenthesizedArrowFunction_es5(target=es2015).symbols diff --git a/tests/baselines/reference/asyncUnParenthesizedArrowFunction_es5.types b/tests/baselines/reference/asyncUnParenthesizedArrowFunction_es5(target=es2015).types similarity index 100% rename from tests/baselines/reference/asyncUnParenthesizedArrowFunction_es5.types rename to tests/baselines/reference/asyncUnParenthesizedArrowFunction_es5(target=es2015).types diff --git a/tests/baselines/reference/asyncUnParenthesizedArrowFunction_es5.js b/tests/baselines/reference/asyncUnParenthesizedArrowFunction_es5(target=es5).js similarity index 100% rename from tests/baselines/reference/asyncUnParenthesizedArrowFunction_es5.js rename to tests/baselines/reference/asyncUnParenthesizedArrowFunction_es5(target=es5).js diff --git a/tests/baselines/reference/asyncUnParenthesizedArrowFunction_es5(target=es5).symbols b/tests/baselines/reference/asyncUnParenthesizedArrowFunction_es5(target=es5).symbols new file mode 100644 index 0000000000000..94e87d686eed8 --- /dev/null +++ b/tests/baselines/reference/asyncUnParenthesizedArrowFunction_es5(target=es5).symbols @@ -0,0 +1,20 @@ +//// [tests/cases/conformance/async/es5/asyncArrowFunction/asyncUnParenthesizedArrowFunction_es5.ts] //// + +=== asyncUnParenthesizedArrowFunction_es5.ts === +declare function someOtherFunction(i: any): Promise; +>someOtherFunction : Symbol(someOtherFunction, Decl(asyncUnParenthesizedArrowFunction_es5.ts, 0, 0)) +>i : Symbol(i, Decl(asyncUnParenthesizedArrowFunction_es5.ts, 0, 35)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) + +const x = async i => await someOtherFunction(i) +>x : Symbol(x, Decl(asyncUnParenthesizedArrowFunction_es5.ts, 1, 5)) +>i : Symbol(i, Decl(asyncUnParenthesizedArrowFunction_es5.ts, 1, 15)) +>someOtherFunction : Symbol(someOtherFunction, Decl(asyncUnParenthesizedArrowFunction_es5.ts, 0, 0)) +>i : Symbol(i, Decl(asyncUnParenthesizedArrowFunction_es5.ts, 1, 15)) + +const x1 = async (i) => await someOtherFunction(i); +>x1 : Symbol(x1, Decl(asyncUnParenthesizedArrowFunction_es5.ts, 2, 5)) +>i : Symbol(i, Decl(asyncUnParenthesizedArrowFunction_es5.ts, 2, 18)) +>someOtherFunction : Symbol(someOtherFunction, Decl(asyncUnParenthesizedArrowFunction_es5.ts, 0, 0)) +>i : Symbol(i, Decl(asyncUnParenthesizedArrowFunction_es5.ts, 2, 18)) + diff --git a/tests/baselines/reference/asyncUnParenthesizedArrowFunction_es5(target=es5).types b/tests/baselines/reference/asyncUnParenthesizedArrowFunction_es5(target=es5).types new file mode 100644 index 0000000000000..20fcabfe2922e --- /dev/null +++ b/tests/baselines/reference/asyncUnParenthesizedArrowFunction_es5(target=es5).types @@ -0,0 +1,36 @@ +//// [tests/cases/conformance/async/es5/asyncArrowFunction/asyncUnParenthesizedArrowFunction_es5.ts] //// + +=== asyncUnParenthesizedArrowFunction_es5.ts === +declare function someOtherFunction(i: any): Promise; +>someOtherFunction : (i: any) => Promise +> : ^ ^^ ^^^^^ +>i : any + +const x = async i => await someOtherFunction(i) +>x : (i: any) => Promise +> : ^ ^^^^^^^^^^^^^^^^^^^^^^^ +>async i => await someOtherFunction(i) : (i: any) => Promise +> : ^ ^^^^^^^^^^^^^^^^^^^^^^^ +>i : any +>await someOtherFunction(i) : void +> : ^^^^ +>someOtherFunction(i) : Promise +> : ^^^^^^^^^^^^^ +>someOtherFunction : (i: any) => Promise +> : ^ ^^ ^^^^^ +>i : any + +const x1 = async (i) => await someOtherFunction(i); +>x1 : (i: any) => Promise +> : ^ ^^^^^^^^^^^^^^^^^^^^^^^ +>async (i) => await someOtherFunction(i) : (i: any) => Promise +> : ^ ^^^^^^^^^^^^^^^^^^^^^^^ +>i : any +>await someOtherFunction(i) : void +> : ^^^^ +>someOtherFunction(i) : Promise +> : ^^^^^^^^^^^^^ +>someOtherFunction : (i: any) => Promise +> : ^ ^^ ^^^^^ +>i : any + diff --git a/tests/baselines/reference/asyncUseStrict_es5(target=es2015).js b/tests/baselines/reference/asyncUseStrict_es5(target=es2015).js new file mode 100644 index 0000000000000..20c7eb1546119 --- /dev/null +++ b/tests/baselines/reference/asyncUseStrict_es5(target=es2015).js @@ -0,0 +1,17 @@ +//// [tests/cases/conformance/async/es5/asyncUseStrict_es5.ts] //// + +//// [asyncUseStrict_es5.ts] +declare var a: boolean; +declare var p: Promise; +async function func(): Promise { + "use strict"; + var b = await p || a; +} + +//// [asyncUseStrict_es5.js] +function func() { + return __awaiter(this, void 0, void 0, function* () { + "use strict"; + var b = (yield p) || a; + }); +} diff --git a/tests/baselines/reference/asyncUseStrict_es5.symbols b/tests/baselines/reference/asyncUseStrict_es5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/asyncUseStrict_es5.symbols rename to tests/baselines/reference/asyncUseStrict_es5(target=es2015).symbols diff --git a/tests/baselines/reference/asyncUseStrict_es5.types b/tests/baselines/reference/asyncUseStrict_es5(target=es2015).types similarity index 100% rename from tests/baselines/reference/asyncUseStrict_es5.types rename to tests/baselines/reference/asyncUseStrict_es5(target=es2015).types diff --git a/tests/baselines/reference/asyncUseStrict_es5.js b/tests/baselines/reference/asyncUseStrict_es5(target=es5).js similarity index 100% rename from tests/baselines/reference/asyncUseStrict_es5.js rename to tests/baselines/reference/asyncUseStrict_es5(target=es5).js diff --git a/tests/baselines/reference/asyncUseStrict_es5(target=es5).symbols b/tests/baselines/reference/asyncUseStrict_es5(target=es5).symbols new file mode 100644 index 0000000000000..7091f0c4067a3 --- /dev/null +++ b/tests/baselines/reference/asyncUseStrict_es5(target=es5).symbols @@ -0,0 +1,20 @@ +//// [tests/cases/conformance/async/es5/asyncUseStrict_es5.ts] //// + +=== asyncUseStrict_es5.ts === +declare var a: boolean; +>a : Symbol(a, Decl(asyncUseStrict_es5.ts, 0, 11)) + +declare var p: Promise; +>p : Symbol(p, Decl(asyncUseStrict_es5.ts, 1, 11)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) + +async function func(): Promise { +>func : Symbol(func, Decl(asyncUseStrict_es5.ts, 1, 32)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) + + "use strict"; + var b = await p || a; +>b : Symbol(b, Decl(asyncUseStrict_es5.ts, 4, 7)) +>p : Symbol(p, Decl(asyncUseStrict_es5.ts, 1, 11)) +>a : Symbol(a, Decl(asyncUseStrict_es5.ts, 0, 11)) +} diff --git a/tests/baselines/reference/asyncUseStrict_es5(target=es5).types b/tests/baselines/reference/asyncUseStrict_es5(target=es5).types new file mode 100644 index 0000000000000..d0149011abace --- /dev/null +++ b/tests/baselines/reference/asyncUseStrict_es5(target=es5).types @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/async/es5/asyncUseStrict_es5.ts] //// + +=== asyncUseStrict_es5.ts === +declare var a: boolean; +>a : boolean +> : ^^^^^^^ + +declare var p: Promise; +>p : Promise +> : ^^^^^^^^^^^^^^^^ + +async function func(): Promise { +>func : () => Promise +> : ^^^^^^ + + "use strict"; +>"use strict" : "use strict" +> : ^^^^^^^^^^^^ + + var b = await p || a; +>b : boolean +> : ^^^^^^^ +>await p || a : boolean +> : ^^^^^^^ +>await p : boolean +> : ^^^^^^^ +>p : Promise +> : ^^^^^^^^^^^^^^^^ +>a : boolean +> : ^^^^^^^ +} diff --git a/tests/baselines/reference/awaitBinaryExpression1_es5(target=es2015).js b/tests/baselines/reference/awaitBinaryExpression1_es5(target=es2015).js new file mode 100644 index 0000000000000..8056734e3d6bc --- /dev/null +++ b/tests/baselines/reference/awaitBinaryExpression1_es5(target=es2015).js @@ -0,0 +1,21 @@ +//// [tests/cases/conformance/async/es5/awaitBinaryExpression/awaitBinaryExpression1_es5.ts] //// + +//// [awaitBinaryExpression1_es5.ts] +declare var a: boolean; +declare var p: Promise; +declare function before(): void; +declare function after(): void; +async function func(): Promise { + before(); + var b = await p || a; + after(); +} + +//// [awaitBinaryExpression1_es5.js] +function func() { + return __awaiter(this, void 0, void 0, function* () { + before(); + var b = (yield p) || a; + after(); + }); +} diff --git a/tests/baselines/reference/awaitBinaryExpression1_es5.symbols b/tests/baselines/reference/awaitBinaryExpression1_es5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/awaitBinaryExpression1_es5.symbols rename to tests/baselines/reference/awaitBinaryExpression1_es5(target=es2015).symbols diff --git a/tests/baselines/reference/awaitBinaryExpression1_es5.types b/tests/baselines/reference/awaitBinaryExpression1_es5(target=es2015).types similarity index 100% rename from tests/baselines/reference/awaitBinaryExpression1_es5.types rename to tests/baselines/reference/awaitBinaryExpression1_es5(target=es2015).types diff --git a/tests/baselines/reference/awaitBinaryExpression1_es5.js b/tests/baselines/reference/awaitBinaryExpression1_es5(target=es5).js similarity index 100% rename from tests/baselines/reference/awaitBinaryExpression1_es5.js rename to tests/baselines/reference/awaitBinaryExpression1_es5(target=es5).js diff --git a/tests/baselines/reference/awaitBinaryExpression1_es5(target=es5).symbols b/tests/baselines/reference/awaitBinaryExpression1_es5(target=es5).symbols new file mode 100644 index 0000000000000..0dc858cb0d392 --- /dev/null +++ b/tests/baselines/reference/awaitBinaryExpression1_es5(target=es5).symbols @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/async/es5/awaitBinaryExpression/awaitBinaryExpression1_es5.ts] //// + +=== awaitBinaryExpression1_es5.ts === +declare var a: boolean; +>a : Symbol(a, Decl(awaitBinaryExpression1_es5.ts, 0, 11)) + +declare var p: Promise; +>p : Symbol(p, Decl(awaitBinaryExpression1_es5.ts, 1, 11)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) + +declare function before(): void; +>before : Symbol(before, Decl(awaitBinaryExpression1_es5.ts, 1, 32)) + +declare function after(): void; +>after : Symbol(after, Decl(awaitBinaryExpression1_es5.ts, 2, 32)) + +async function func(): Promise { +>func : Symbol(func, Decl(awaitBinaryExpression1_es5.ts, 3, 31)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) + + before(); +>before : Symbol(before, Decl(awaitBinaryExpression1_es5.ts, 1, 32)) + + var b = await p || a; +>b : Symbol(b, Decl(awaitBinaryExpression1_es5.ts, 6, 7)) +>p : Symbol(p, Decl(awaitBinaryExpression1_es5.ts, 1, 11)) +>a : Symbol(a, Decl(awaitBinaryExpression1_es5.ts, 0, 11)) + + after(); +>after : Symbol(after, Decl(awaitBinaryExpression1_es5.ts, 2, 32)) +} diff --git a/tests/baselines/reference/awaitBinaryExpression1_es5(target=es5).types b/tests/baselines/reference/awaitBinaryExpression1_es5(target=es5).types new file mode 100644 index 0000000000000..06536de34d39c --- /dev/null +++ b/tests/baselines/reference/awaitBinaryExpression1_es5(target=es5).types @@ -0,0 +1,47 @@ +//// [tests/cases/conformance/async/es5/awaitBinaryExpression/awaitBinaryExpression1_es5.ts] //// + +=== awaitBinaryExpression1_es5.ts === +declare var a: boolean; +>a : boolean +> : ^^^^^^^ + +declare var p: Promise; +>p : Promise +> : ^^^^^^^^^^^^^^^^ + +declare function before(): void; +>before : () => void +> : ^^^^^^ + +declare function after(): void; +>after : () => void +> : ^^^^^^ + +async function func(): Promise { +>func : () => Promise +> : ^^^^^^ + + before(); +>before() : void +> : ^^^^ +>before : () => void +> : ^^^^^^ + + var b = await p || a; +>b : boolean +> : ^^^^^^^ +>await p || a : boolean +> : ^^^^^^^ +>await p : boolean +> : ^^^^^^^ +>p : Promise +> : ^^^^^^^^^^^^^^^^ +>a : boolean +> : ^^^^^^^ + + after(); +>after() : void +> : ^^^^ +>after : () => void +> : ^^^^^^ +} diff --git a/tests/baselines/reference/awaitBinaryExpression2_es5(target=es2015).js b/tests/baselines/reference/awaitBinaryExpression2_es5(target=es2015).js new file mode 100644 index 0000000000000..f4ac728692c3f --- /dev/null +++ b/tests/baselines/reference/awaitBinaryExpression2_es5(target=es2015).js @@ -0,0 +1,21 @@ +//// [tests/cases/conformance/async/es5/awaitBinaryExpression/awaitBinaryExpression2_es5.ts] //// + +//// [awaitBinaryExpression2_es5.ts] +declare var a: boolean; +declare var p: Promise; +declare function before(): void; +declare function after(): void; +async function func(): Promise { + before(); + var b = await p && a; + after(); +} + +//// [awaitBinaryExpression2_es5.js] +function func() { + return __awaiter(this, void 0, void 0, function* () { + before(); + var b = (yield p) && a; + after(); + }); +} diff --git a/tests/baselines/reference/awaitBinaryExpression2_es5.symbols b/tests/baselines/reference/awaitBinaryExpression2_es5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/awaitBinaryExpression2_es5.symbols rename to tests/baselines/reference/awaitBinaryExpression2_es5(target=es2015).symbols diff --git a/tests/baselines/reference/awaitBinaryExpression2_es5.types b/tests/baselines/reference/awaitBinaryExpression2_es5(target=es2015).types similarity index 100% rename from tests/baselines/reference/awaitBinaryExpression2_es5.types rename to tests/baselines/reference/awaitBinaryExpression2_es5(target=es2015).types diff --git a/tests/baselines/reference/awaitBinaryExpression2_es5.js b/tests/baselines/reference/awaitBinaryExpression2_es5(target=es5).js similarity index 100% rename from tests/baselines/reference/awaitBinaryExpression2_es5.js rename to tests/baselines/reference/awaitBinaryExpression2_es5(target=es5).js diff --git a/tests/baselines/reference/awaitBinaryExpression2_es5(target=es5).symbols b/tests/baselines/reference/awaitBinaryExpression2_es5(target=es5).symbols new file mode 100644 index 0000000000000..eb049b94ddeed --- /dev/null +++ b/tests/baselines/reference/awaitBinaryExpression2_es5(target=es5).symbols @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/async/es5/awaitBinaryExpression/awaitBinaryExpression2_es5.ts] //// + +=== awaitBinaryExpression2_es5.ts === +declare var a: boolean; +>a : Symbol(a, Decl(awaitBinaryExpression2_es5.ts, 0, 11)) + +declare var p: Promise; +>p : Symbol(p, Decl(awaitBinaryExpression2_es5.ts, 1, 11)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) + +declare function before(): void; +>before : Symbol(before, Decl(awaitBinaryExpression2_es5.ts, 1, 32)) + +declare function after(): void; +>after : Symbol(after, Decl(awaitBinaryExpression2_es5.ts, 2, 32)) + +async function func(): Promise { +>func : Symbol(func, Decl(awaitBinaryExpression2_es5.ts, 3, 31)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) + + before(); +>before : Symbol(before, Decl(awaitBinaryExpression2_es5.ts, 1, 32)) + + var b = await p && a; +>b : Symbol(b, Decl(awaitBinaryExpression2_es5.ts, 6, 7)) +>p : Symbol(p, Decl(awaitBinaryExpression2_es5.ts, 1, 11)) +>a : Symbol(a, Decl(awaitBinaryExpression2_es5.ts, 0, 11)) + + after(); +>after : Symbol(after, Decl(awaitBinaryExpression2_es5.ts, 2, 32)) +} diff --git a/tests/baselines/reference/awaitBinaryExpression2_es5(target=es5).types b/tests/baselines/reference/awaitBinaryExpression2_es5(target=es5).types new file mode 100644 index 0000000000000..7ed66215fec3e --- /dev/null +++ b/tests/baselines/reference/awaitBinaryExpression2_es5(target=es5).types @@ -0,0 +1,47 @@ +//// [tests/cases/conformance/async/es5/awaitBinaryExpression/awaitBinaryExpression2_es5.ts] //// + +=== awaitBinaryExpression2_es5.ts === +declare var a: boolean; +>a : boolean +> : ^^^^^^^ + +declare var p: Promise; +>p : Promise +> : ^^^^^^^^^^^^^^^^ + +declare function before(): void; +>before : () => void +> : ^^^^^^ + +declare function after(): void; +>after : () => void +> : ^^^^^^ + +async function func(): Promise { +>func : () => Promise +> : ^^^^^^ + + before(); +>before() : void +> : ^^^^ +>before : () => void +> : ^^^^^^ + + var b = await p && a; +>b : boolean +> : ^^^^^^^ +>await p && a : boolean +> : ^^^^^^^ +>await p : boolean +> : ^^^^^^^ +>p : Promise +> : ^^^^^^^^^^^^^^^^ +>a : boolean +> : ^^^^^^^ + + after(); +>after() : void +> : ^^^^ +>after : () => void +> : ^^^^^^ +} diff --git a/tests/baselines/reference/awaitBinaryExpression3_es5(target=es2015).js b/tests/baselines/reference/awaitBinaryExpression3_es5(target=es2015).js new file mode 100644 index 0000000000000..0684fdb640e8e --- /dev/null +++ b/tests/baselines/reference/awaitBinaryExpression3_es5(target=es2015).js @@ -0,0 +1,21 @@ +//// [tests/cases/conformance/async/es5/awaitBinaryExpression/awaitBinaryExpression3_es5.ts] //// + +//// [awaitBinaryExpression3_es5.ts] +declare var a: number; +declare var p: Promise; +declare function before(): void; +declare function after(): void; +async function func(): Promise { + before(); + var b = await p + a; + after(); +} + +//// [awaitBinaryExpression3_es5.js] +function func() { + return __awaiter(this, void 0, void 0, function* () { + before(); + var b = (yield p) + a; + after(); + }); +} diff --git a/tests/baselines/reference/awaitBinaryExpression3_es5.symbols b/tests/baselines/reference/awaitBinaryExpression3_es5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/awaitBinaryExpression3_es5.symbols rename to tests/baselines/reference/awaitBinaryExpression3_es5(target=es2015).symbols diff --git a/tests/baselines/reference/awaitBinaryExpression3_es5.types b/tests/baselines/reference/awaitBinaryExpression3_es5(target=es2015).types similarity index 100% rename from tests/baselines/reference/awaitBinaryExpression3_es5.types rename to tests/baselines/reference/awaitBinaryExpression3_es5(target=es2015).types diff --git a/tests/baselines/reference/awaitBinaryExpression3_es5.js b/tests/baselines/reference/awaitBinaryExpression3_es5(target=es5).js similarity index 100% rename from tests/baselines/reference/awaitBinaryExpression3_es5.js rename to tests/baselines/reference/awaitBinaryExpression3_es5(target=es5).js diff --git a/tests/baselines/reference/awaitBinaryExpression3_es5(target=es5).symbols b/tests/baselines/reference/awaitBinaryExpression3_es5(target=es5).symbols new file mode 100644 index 0000000000000..c3b62990ed57f --- /dev/null +++ b/tests/baselines/reference/awaitBinaryExpression3_es5(target=es5).symbols @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/async/es5/awaitBinaryExpression/awaitBinaryExpression3_es5.ts] //// + +=== awaitBinaryExpression3_es5.ts === +declare var a: number; +>a : Symbol(a, Decl(awaitBinaryExpression3_es5.ts, 0, 11)) + +declare var p: Promise; +>p : Symbol(p, Decl(awaitBinaryExpression3_es5.ts, 1, 11)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) + +declare function before(): void; +>before : Symbol(before, Decl(awaitBinaryExpression3_es5.ts, 1, 31)) + +declare function after(): void; +>after : Symbol(after, Decl(awaitBinaryExpression3_es5.ts, 2, 32)) + +async function func(): Promise { +>func : Symbol(func, Decl(awaitBinaryExpression3_es5.ts, 3, 31)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) + + before(); +>before : Symbol(before, Decl(awaitBinaryExpression3_es5.ts, 1, 31)) + + var b = await p + a; +>b : Symbol(b, Decl(awaitBinaryExpression3_es5.ts, 6, 7)) +>p : Symbol(p, Decl(awaitBinaryExpression3_es5.ts, 1, 11)) +>a : Symbol(a, Decl(awaitBinaryExpression3_es5.ts, 0, 11)) + + after(); +>after : Symbol(after, Decl(awaitBinaryExpression3_es5.ts, 2, 32)) +} diff --git a/tests/baselines/reference/awaitBinaryExpression3_es5(target=es5).types b/tests/baselines/reference/awaitBinaryExpression3_es5(target=es5).types new file mode 100644 index 0000000000000..b43d6a23615cc --- /dev/null +++ b/tests/baselines/reference/awaitBinaryExpression3_es5(target=es5).types @@ -0,0 +1,47 @@ +//// [tests/cases/conformance/async/es5/awaitBinaryExpression/awaitBinaryExpression3_es5.ts] //// + +=== awaitBinaryExpression3_es5.ts === +declare var a: number; +>a : number +> : ^^^^^^ + +declare var p: Promise; +>p : Promise +> : ^^^^^^^^^^^^^^^ + +declare function before(): void; +>before : () => void +> : ^^^^^^ + +declare function after(): void; +>after : () => void +> : ^^^^^^ + +async function func(): Promise { +>func : () => Promise +> : ^^^^^^ + + before(); +>before() : void +> : ^^^^ +>before : () => void +> : ^^^^^^ + + var b = await p + a; +>b : number +> : ^^^^^^ +>await p + a : number +> : ^^^^^^ +>await p : number +> : ^^^^^^ +>p : Promise +> : ^^^^^^^^^^^^^^^ +>a : number +> : ^^^^^^ + + after(); +>after() : void +> : ^^^^ +>after : () => void +> : ^^^^^^ +} diff --git a/tests/baselines/reference/awaitBinaryExpression4_es5(target=es2015).js b/tests/baselines/reference/awaitBinaryExpression4_es5(target=es2015).js new file mode 100644 index 0000000000000..92209799e5dba --- /dev/null +++ b/tests/baselines/reference/awaitBinaryExpression4_es5(target=es2015).js @@ -0,0 +1,21 @@ +//// [tests/cases/conformance/async/es5/awaitBinaryExpression/awaitBinaryExpression4_es5.ts] //// + +//// [awaitBinaryExpression4_es5.ts] +declare var a: boolean; +declare var p: Promise; +declare function before(): void; +declare function after(): void; +async function func(): Promise { + before(); + var b = (await p, a); + after(); +} + +//// [awaitBinaryExpression4_es5.js] +function func() { + return __awaiter(this, void 0, void 0, function* () { + before(); + var b = (yield p, a); + after(); + }); +} diff --git a/tests/baselines/reference/awaitBinaryExpression4_es5.symbols b/tests/baselines/reference/awaitBinaryExpression4_es5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/awaitBinaryExpression4_es5.symbols rename to tests/baselines/reference/awaitBinaryExpression4_es5(target=es2015).symbols diff --git a/tests/baselines/reference/awaitBinaryExpression4_es5.types b/tests/baselines/reference/awaitBinaryExpression4_es5(target=es2015).types similarity index 100% rename from tests/baselines/reference/awaitBinaryExpression4_es5.types rename to tests/baselines/reference/awaitBinaryExpression4_es5(target=es2015).types diff --git a/tests/baselines/reference/awaitBinaryExpression4_es5.js b/tests/baselines/reference/awaitBinaryExpression4_es5(target=es5).js similarity index 100% rename from tests/baselines/reference/awaitBinaryExpression4_es5.js rename to tests/baselines/reference/awaitBinaryExpression4_es5(target=es5).js diff --git a/tests/baselines/reference/awaitBinaryExpression4_es5(target=es5).symbols b/tests/baselines/reference/awaitBinaryExpression4_es5(target=es5).symbols new file mode 100644 index 0000000000000..7aa7e4f99831a --- /dev/null +++ b/tests/baselines/reference/awaitBinaryExpression4_es5(target=es5).symbols @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/async/es5/awaitBinaryExpression/awaitBinaryExpression4_es5.ts] //// + +=== awaitBinaryExpression4_es5.ts === +declare var a: boolean; +>a : Symbol(a, Decl(awaitBinaryExpression4_es5.ts, 0, 11)) + +declare var p: Promise; +>p : Symbol(p, Decl(awaitBinaryExpression4_es5.ts, 1, 11)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) + +declare function before(): void; +>before : Symbol(before, Decl(awaitBinaryExpression4_es5.ts, 1, 32)) + +declare function after(): void; +>after : Symbol(after, Decl(awaitBinaryExpression4_es5.ts, 2, 32)) + +async function func(): Promise { +>func : Symbol(func, Decl(awaitBinaryExpression4_es5.ts, 3, 31)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) + + before(); +>before : Symbol(before, Decl(awaitBinaryExpression4_es5.ts, 1, 32)) + + var b = (await p, a); +>b : Symbol(b, Decl(awaitBinaryExpression4_es5.ts, 6, 7)) +>p : Symbol(p, Decl(awaitBinaryExpression4_es5.ts, 1, 11)) +>a : Symbol(a, Decl(awaitBinaryExpression4_es5.ts, 0, 11)) + + after(); +>after : Symbol(after, Decl(awaitBinaryExpression4_es5.ts, 2, 32)) +} diff --git a/tests/baselines/reference/awaitBinaryExpression4_es5(target=es5).types b/tests/baselines/reference/awaitBinaryExpression4_es5(target=es5).types new file mode 100644 index 0000000000000..345007d5f0853 --- /dev/null +++ b/tests/baselines/reference/awaitBinaryExpression4_es5(target=es5).types @@ -0,0 +1,49 @@ +//// [tests/cases/conformance/async/es5/awaitBinaryExpression/awaitBinaryExpression4_es5.ts] //// + +=== awaitBinaryExpression4_es5.ts === +declare var a: boolean; +>a : boolean +> : ^^^^^^^ + +declare var p: Promise; +>p : Promise +> : ^^^^^^^^^^^^^^^^ + +declare function before(): void; +>before : () => void +> : ^^^^^^ + +declare function after(): void; +>after : () => void +> : ^^^^^^ + +async function func(): Promise { +>func : () => Promise +> : ^^^^^^ + + before(); +>before() : void +> : ^^^^ +>before : () => void +> : ^^^^^^ + + var b = (await p, a); +>b : boolean +> : ^^^^^^^ +>(await p, a) : boolean +> : ^^^^^^^ +>await p, a : boolean +> : ^^^^^^^ +>await p : boolean +> : ^^^^^^^ +>p : Promise +> : ^^^^^^^^^^^^^^^^ +>a : boolean +> : ^^^^^^^ + + after(); +>after() : void +> : ^^^^ +>after : () => void +> : ^^^^^^ +} diff --git a/tests/baselines/reference/awaitBinaryExpression5_es5(target=es2015).js b/tests/baselines/reference/awaitBinaryExpression5_es5(target=es2015).js new file mode 100644 index 0000000000000..5af7304de2066 --- /dev/null +++ b/tests/baselines/reference/awaitBinaryExpression5_es5(target=es2015).js @@ -0,0 +1,23 @@ +//// [tests/cases/conformance/async/es5/awaitBinaryExpression/awaitBinaryExpression5_es5.ts] //// + +//// [awaitBinaryExpression5_es5.ts] +declare var a: boolean; +declare var p: Promise; +declare function before(): void; +declare function after(): void; +async function func(): Promise { + before(); + var o: { a: boolean; }; + o.a = await p; + after(); +} + +//// [awaitBinaryExpression5_es5.js] +function func() { + return __awaiter(this, void 0, void 0, function* () { + before(); + var o; + o.a = yield p; + after(); + }); +} diff --git a/tests/baselines/reference/awaitBinaryExpression5_es5.symbols b/tests/baselines/reference/awaitBinaryExpression5_es5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/awaitBinaryExpression5_es5.symbols rename to tests/baselines/reference/awaitBinaryExpression5_es5(target=es2015).symbols diff --git a/tests/baselines/reference/awaitBinaryExpression5_es5.types b/tests/baselines/reference/awaitBinaryExpression5_es5(target=es2015).types similarity index 100% rename from tests/baselines/reference/awaitBinaryExpression5_es5.types rename to tests/baselines/reference/awaitBinaryExpression5_es5(target=es2015).types diff --git a/tests/baselines/reference/awaitBinaryExpression5_es5.js b/tests/baselines/reference/awaitBinaryExpression5_es5(target=es5).js similarity index 100% rename from tests/baselines/reference/awaitBinaryExpression5_es5.js rename to tests/baselines/reference/awaitBinaryExpression5_es5(target=es5).js diff --git a/tests/baselines/reference/awaitBinaryExpression5_es5(target=es5).symbols b/tests/baselines/reference/awaitBinaryExpression5_es5(target=es5).symbols new file mode 100644 index 0000000000000..48de721f06af9 --- /dev/null +++ b/tests/baselines/reference/awaitBinaryExpression5_es5(target=es5).symbols @@ -0,0 +1,36 @@ +//// [tests/cases/conformance/async/es5/awaitBinaryExpression/awaitBinaryExpression5_es5.ts] //// + +=== awaitBinaryExpression5_es5.ts === +declare var a: boolean; +>a : Symbol(a, Decl(awaitBinaryExpression5_es5.ts, 0, 11)) + +declare var p: Promise; +>p : Symbol(p, Decl(awaitBinaryExpression5_es5.ts, 1, 11)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) + +declare function before(): void; +>before : Symbol(before, Decl(awaitBinaryExpression5_es5.ts, 1, 32)) + +declare function after(): void; +>after : Symbol(after, Decl(awaitBinaryExpression5_es5.ts, 2, 32)) + +async function func(): Promise { +>func : Symbol(func, Decl(awaitBinaryExpression5_es5.ts, 3, 31)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) + + before(); +>before : Symbol(before, Decl(awaitBinaryExpression5_es5.ts, 1, 32)) + + var o: { a: boolean; }; +>o : Symbol(o, Decl(awaitBinaryExpression5_es5.ts, 6, 7)) +>a : Symbol(a, Decl(awaitBinaryExpression5_es5.ts, 6, 12)) + + o.a = await p; +>o.a : Symbol(a, Decl(awaitBinaryExpression5_es5.ts, 6, 12)) +>o : Symbol(o, Decl(awaitBinaryExpression5_es5.ts, 6, 7)) +>a : Symbol(a, Decl(awaitBinaryExpression5_es5.ts, 6, 12)) +>p : Symbol(p, Decl(awaitBinaryExpression5_es5.ts, 1, 11)) + + after(); +>after : Symbol(after, Decl(awaitBinaryExpression5_es5.ts, 2, 32)) +} diff --git a/tests/baselines/reference/awaitBinaryExpression5_es5(target=es5).types b/tests/baselines/reference/awaitBinaryExpression5_es5(target=es5).types new file mode 100644 index 0000000000000..bc4a0811d3bf7 --- /dev/null +++ b/tests/baselines/reference/awaitBinaryExpression5_es5(target=es5).types @@ -0,0 +1,55 @@ +//// [tests/cases/conformance/async/es5/awaitBinaryExpression/awaitBinaryExpression5_es5.ts] //// + +=== awaitBinaryExpression5_es5.ts === +declare var a: boolean; +>a : boolean +> : ^^^^^^^ + +declare var p: Promise; +>p : Promise +> : ^^^^^^^^^^^^^^^^ + +declare function before(): void; +>before : () => void +> : ^^^^^^ + +declare function after(): void; +>after : () => void +> : ^^^^^^ + +async function func(): Promise { +>func : () => Promise +> : ^^^^^^ + + before(); +>before() : void +> : ^^^^ +>before : () => void +> : ^^^^^^ + + var o: { a: boolean; }; +>o : { a: boolean; } +> : ^^^^^ ^^^ +>a : boolean +> : ^^^^^^^ + + o.a = await p; +>o.a = await p : boolean +> : ^^^^^^^ +>o.a : boolean +> : ^^^^^^^ +>o : { a: boolean; } +> : ^^^^^ ^^^ +>a : boolean +> : ^^^^^^^ +>await p : boolean +> : ^^^^^^^ +>p : Promise +> : ^^^^^^^^^^^^^^^^ + + after(); +>after() : void +> : ^^^^ +>after : () => void +> : ^^^^^^ +} diff --git a/tests/baselines/reference/awaitCallExpression1_es5(target=es2015).js b/tests/baselines/reference/awaitCallExpression1_es5(target=es2015).js new file mode 100644 index 0000000000000..a0f1fd390756b --- /dev/null +++ b/tests/baselines/reference/awaitCallExpression1_es5(target=es2015).js @@ -0,0 +1,25 @@ +//// [tests/cases/conformance/async/es5/awaitCallExpression/awaitCallExpression1_es5.ts] //// + +//// [awaitCallExpression1_es5.ts] +declare var a: boolean; +declare var p: Promise; +declare function fn(arg0: boolean, arg1: boolean, arg2: boolean): void; +declare var o: { fn(arg0: boolean, arg1: boolean, arg2: boolean): void; }; +declare var pfn: Promise<{ (arg0: boolean, arg1: boolean, arg2: boolean): void; }>; +declare var po: Promise<{ fn(arg0: boolean, arg1: boolean, arg2: boolean): void; }>; +declare function before(): void; +declare function after(): void; +async function func(): Promise { + before(); + var b = fn(a, a, a); + after(); +} + +//// [awaitCallExpression1_es5.js] +function func() { + return __awaiter(this, void 0, void 0, function* () { + before(); + var b = fn(a, a, a); + after(); + }); +} diff --git a/tests/baselines/reference/awaitCallExpression1_es5.symbols b/tests/baselines/reference/awaitCallExpression1_es5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/awaitCallExpression1_es5.symbols rename to tests/baselines/reference/awaitCallExpression1_es5(target=es2015).symbols diff --git a/tests/baselines/reference/awaitCallExpression1_es5.types b/tests/baselines/reference/awaitCallExpression1_es5(target=es2015).types similarity index 100% rename from tests/baselines/reference/awaitCallExpression1_es5.types rename to tests/baselines/reference/awaitCallExpression1_es5(target=es2015).types diff --git a/tests/baselines/reference/awaitCallExpression1_es5.js b/tests/baselines/reference/awaitCallExpression1_es5(target=es5).js similarity index 100% rename from tests/baselines/reference/awaitCallExpression1_es5.js rename to tests/baselines/reference/awaitCallExpression1_es5(target=es5).js diff --git a/tests/baselines/reference/awaitCallExpression1_es5(target=es5).symbols b/tests/baselines/reference/awaitCallExpression1_es5(target=es5).symbols new file mode 100644 index 0000000000000..d9a3bdde8fbc6 --- /dev/null +++ b/tests/baselines/reference/awaitCallExpression1_es5(target=es5).symbols @@ -0,0 +1,61 @@ +//// [tests/cases/conformance/async/es5/awaitCallExpression/awaitCallExpression1_es5.ts] //// + +=== awaitCallExpression1_es5.ts === +declare var a: boolean; +>a : Symbol(a, Decl(awaitCallExpression1_es5.ts, 0, 11)) + +declare var p: Promise; +>p : Symbol(p, Decl(awaitCallExpression1_es5.ts, 1, 11)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) + +declare function fn(arg0: boolean, arg1: boolean, arg2: boolean): void; +>fn : Symbol(fn, Decl(awaitCallExpression1_es5.ts, 1, 32)) +>arg0 : Symbol(arg0, Decl(awaitCallExpression1_es5.ts, 2, 20)) +>arg1 : Symbol(arg1, Decl(awaitCallExpression1_es5.ts, 2, 34)) +>arg2 : Symbol(arg2, Decl(awaitCallExpression1_es5.ts, 2, 49)) + +declare var o: { fn(arg0: boolean, arg1: boolean, arg2: boolean): void; }; +>o : Symbol(o, Decl(awaitCallExpression1_es5.ts, 3, 11)) +>fn : Symbol(fn, Decl(awaitCallExpression1_es5.ts, 3, 16)) +>arg0 : Symbol(arg0, Decl(awaitCallExpression1_es5.ts, 3, 20)) +>arg1 : Symbol(arg1, Decl(awaitCallExpression1_es5.ts, 3, 34)) +>arg2 : Symbol(arg2, Decl(awaitCallExpression1_es5.ts, 3, 49)) + +declare var pfn: Promise<{ (arg0: boolean, arg1: boolean, arg2: boolean): void; }>; +>pfn : Symbol(pfn, Decl(awaitCallExpression1_es5.ts, 4, 11)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>arg0 : Symbol(arg0, Decl(awaitCallExpression1_es5.ts, 4, 28)) +>arg1 : Symbol(arg1, Decl(awaitCallExpression1_es5.ts, 4, 42)) +>arg2 : Symbol(arg2, Decl(awaitCallExpression1_es5.ts, 4, 57)) + +declare var po: Promise<{ fn(arg0: boolean, arg1: boolean, arg2: boolean): void; }>; +>po : Symbol(po, Decl(awaitCallExpression1_es5.ts, 5, 11)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>fn : Symbol(fn, Decl(awaitCallExpression1_es5.ts, 5, 25)) +>arg0 : Symbol(arg0, Decl(awaitCallExpression1_es5.ts, 5, 29)) +>arg1 : Symbol(arg1, Decl(awaitCallExpression1_es5.ts, 5, 43)) +>arg2 : Symbol(arg2, Decl(awaitCallExpression1_es5.ts, 5, 58)) + +declare function before(): void; +>before : Symbol(before, Decl(awaitCallExpression1_es5.ts, 5, 84)) + +declare function after(): void; +>after : Symbol(after, Decl(awaitCallExpression1_es5.ts, 6, 32)) + +async function func(): Promise { +>func : Symbol(func, Decl(awaitCallExpression1_es5.ts, 7, 31)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) + + before(); +>before : Symbol(before, Decl(awaitCallExpression1_es5.ts, 5, 84)) + + var b = fn(a, a, a); +>b : Symbol(b, Decl(awaitCallExpression1_es5.ts, 10, 7)) +>fn : Symbol(fn, Decl(awaitCallExpression1_es5.ts, 1, 32)) +>a : Symbol(a, Decl(awaitCallExpression1_es5.ts, 0, 11)) +>a : Symbol(a, Decl(awaitCallExpression1_es5.ts, 0, 11)) +>a : Symbol(a, Decl(awaitCallExpression1_es5.ts, 0, 11)) + + after(); +>after : Symbol(after, Decl(awaitCallExpression1_es5.ts, 6, 32)) +} diff --git a/tests/baselines/reference/awaitCallExpression1_es5(target=es5).types b/tests/baselines/reference/awaitCallExpression1_es5(target=es5).types new file mode 100644 index 0000000000000..f9eacb8912a97 --- /dev/null +++ b/tests/baselines/reference/awaitCallExpression1_es5(target=es5).types @@ -0,0 +1,93 @@ +//// [tests/cases/conformance/async/es5/awaitCallExpression/awaitCallExpression1_es5.ts] //// + +=== awaitCallExpression1_es5.ts === +declare var a: boolean; +>a : boolean +> : ^^^^^^^ + +declare var p: Promise; +>p : Promise +> : ^^^^^^^^^^^^^^^^ + +declare function fn(arg0: boolean, arg1: boolean, arg2: boolean): void; +>fn : (arg0: boolean, arg1: boolean, arg2: boolean) => void +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>arg0 : boolean +> : ^^^^^^^ +>arg1 : boolean +> : ^^^^^^^ +>arg2 : boolean +> : ^^^^^^^ + +declare var o: { fn(arg0: boolean, arg1: boolean, arg2: boolean): void; }; +>o : { fn(arg0: boolean, arg1: boolean, arg2: boolean): void; } +> : ^^^^^ ^^ ^^ ^^ ^^ ^^ ^^^ ^^^ +>fn : (arg0: boolean, arg1: boolean, arg2: boolean) => void +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>arg0 : boolean +> : ^^^^^^^ +>arg1 : boolean +> : ^^^^^^^ +>arg2 : boolean +> : ^^^^^^^ + +declare var pfn: Promise<{ (arg0: boolean, arg1: boolean, arg2: boolean): void; }>; +>pfn : Promise<(arg0: boolean, arg1: boolean, arg2: boolean) => void> +> : ^^^^^^^^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ ^ +>arg0 : boolean +> : ^^^^^^^ +>arg1 : boolean +> : ^^^^^^^ +>arg2 : boolean +> : ^^^^^^^ + +declare var po: Promise<{ fn(arg0: boolean, arg1: boolean, arg2: boolean): void; }>; +>po : Promise<{ fn(arg0: boolean, arg1: boolean, arg2: boolean): void; }> +> : ^^^^^^^^^^^^^ ^^ ^^ ^^ ^^ ^^ ^^^ ^^^^ +>fn : (arg0: boolean, arg1: boolean, arg2: boolean) => void +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>arg0 : boolean +> : ^^^^^^^ +>arg1 : boolean +> : ^^^^^^^ +>arg2 : boolean +> : ^^^^^^^ + +declare function before(): void; +>before : () => void +> : ^^^^^^ + +declare function after(): void; +>after : () => void +> : ^^^^^^ + +async function func(): Promise { +>func : () => Promise +> : ^^^^^^ + + before(); +>before() : void +> : ^^^^ +>before : () => void +> : ^^^^^^ + + var b = fn(a, a, a); +>b : void +> : ^^^^ +>fn(a, a, a) : void +> : ^^^^ +>fn : (arg0: boolean, arg1: boolean, arg2: boolean) => void +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>a : boolean +> : ^^^^^^^ +>a : boolean +> : ^^^^^^^ +>a : boolean +> : ^^^^^^^ + + after(); +>after() : void +> : ^^^^ +>after : () => void +> : ^^^^^^ +} diff --git a/tests/baselines/reference/awaitCallExpression2_es5(target=es2015).js b/tests/baselines/reference/awaitCallExpression2_es5(target=es2015).js new file mode 100644 index 0000000000000..9f6ac9a5033eb --- /dev/null +++ b/tests/baselines/reference/awaitCallExpression2_es5(target=es2015).js @@ -0,0 +1,25 @@ +//// [tests/cases/conformance/async/es5/awaitCallExpression/awaitCallExpression2_es5.ts] //// + +//// [awaitCallExpression2_es5.ts] +declare var a: boolean; +declare var p: Promise; +declare function fn(arg0: boolean, arg1: boolean, arg2: boolean): void; +declare var o: { fn(arg0: boolean, arg1: boolean, arg2: boolean): void; }; +declare var pfn: Promise<{ (arg0: boolean, arg1: boolean, arg2: boolean): void; }>; +declare var po: Promise<{ fn(arg0: boolean, arg1: boolean, arg2: boolean): void; }>; +declare function before(): void; +declare function after(): void; +async function func(): Promise { + before(); + var b = fn(await p, a, a); + after(); +} + +//// [awaitCallExpression2_es5.js] +function func() { + return __awaiter(this, void 0, void 0, function* () { + before(); + var b = fn(yield p, a, a); + after(); + }); +} diff --git a/tests/baselines/reference/awaitCallExpression2_es5.symbols b/tests/baselines/reference/awaitCallExpression2_es5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/awaitCallExpression2_es5.symbols rename to tests/baselines/reference/awaitCallExpression2_es5(target=es2015).symbols diff --git a/tests/baselines/reference/awaitCallExpression2_es5.types b/tests/baselines/reference/awaitCallExpression2_es5(target=es2015).types similarity index 100% rename from tests/baselines/reference/awaitCallExpression2_es5.types rename to tests/baselines/reference/awaitCallExpression2_es5(target=es2015).types diff --git a/tests/baselines/reference/awaitCallExpression2_es5.js b/tests/baselines/reference/awaitCallExpression2_es5(target=es5).js similarity index 100% rename from tests/baselines/reference/awaitCallExpression2_es5.js rename to tests/baselines/reference/awaitCallExpression2_es5(target=es5).js diff --git a/tests/baselines/reference/awaitCallExpression2_es5(target=es5).symbols b/tests/baselines/reference/awaitCallExpression2_es5(target=es5).symbols new file mode 100644 index 0000000000000..606a70307ca8c --- /dev/null +++ b/tests/baselines/reference/awaitCallExpression2_es5(target=es5).symbols @@ -0,0 +1,61 @@ +//// [tests/cases/conformance/async/es5/awaitCallExpression/awaitCallExpression2_es5.ts] //// + +=== awaitCallExpression2_es5.ts === +declare var a: boolean; +>a : Symbol(a, Decl(awaitCallExpression2_es5.ts, 0, 11)) + +declare var p: Promise; +>p : Symbol(p, Decl(awaitCallExpression2_es5.ts, 1, 11)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) + +declare function fn(arg0: boolean, arg1: boolean, arg2: boolean): void; +>fn : Symbol(fn, Decl(awaitCallExpression2_es5.ts, 1, 32)) +>arg0 : Symbol(arg0, Decl(awaitCallExpression2_es5.ts, 2, 20)) +>arg1 : Symbol(arg1, Decl(awaitCallExpression2_es5.ts, 2, 34)) +>arg2 : Symbol(arg2, Decl(awaitCallExpression2_es5.ts, 2, 49)) + +declare var o: { fn(arg0: boolean, arg1: boolean, arg2: boolean): void; }; +>o : Symbol(o, Decl(awaitCallExpression2_es5.ts, 3, 11)) +>fn : Symbol(fn, Decl(awaitCallExpression2_es5.ts, 3, 16)) +>arg0 : Symbol(arg0, Decl(awaitCallExpression2_es5.ts, 3, 20)) +>arg1 : Symbol(arg1, Decl(awaitCallExpression2_es5.ts, 3, 34)) +>arg2 : Symbol(arg2, Decl(awaitCallExpression2_es5.ts, 3, 49)) + +declare var pfn: Promise<{ (arg0: boolean, arg1: boolean, arg2: boolean): void; }>; +>pfn : Symbol(pfn, Decl(awaitCallExpression2_es5.ts, 4, 11)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>arg0 : Symbol(arg0, Decl(awaitCallExpression2_es5.ts, 4, 28)) +>arg1 : Symbol(arg1, Decl(awaitCallExpression2_es5.ts, 4, 42)) +>arg2 : Symbol(arg2, Decl(awaitCallExpression2_es5.ts, 4, 57)) + +declare var po: Promise<{ fn(arg0: boolean, arg1: boolean, arg2: boolean): void; }>; +>po : Symbol(po, Decl(awaitCallExpression2_es5.ts, 5, 11)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>fn : Symbol(fn, Decl(awaitCallExpression2_es5.ts, 5, 25)) +>arg0 : Symbol(arg0, Decl(awaitCallExpression2_es5.ts, 5, 29)) +>arg1 : Symbol(arg1, Decl(awaitCallExpression2_es5.ts, 5, 43)) +>arg2 : Symbol(arg2, Decl(awaitCallExpression2_es5.ts, 5, 58)) + +declare function before(): void; +>before : Symbol(before, Decl(awaitCallExpression2_es5.ts, 5, 84)) + +declare function after(): void; +>after : Symbol(after, Decl(awaitCallExpression2_es5.ts, 6, 32)) + +async function func(): Promise { +>func : Symbol(func, Decl(awaitCallExpression2_es5.ts, 7, 31)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) + + before(); +>before : Symbol(before, Decl(awaitCallExpression2_es5.ts, 5, 84)) + + var b = fn(await p, a, a); +>b : Symbol(b, Decl(awaitCallExpression2_es5.ts, 10, 7)) +>fn : Symbol(fn, Decl(awaitCallExpression2_es5.ts, 1, 32)) +>p : Symbol(p, Decl(awaitCallExpression2_es5.ts, 1, 11)) +>a : Symbol(a, Decl(awaitCallExpression2_es5.ts, 0, 11)) +>a : Symbol(a, Decl(awaitCallExpression2_es5.ts, 0, 11)) + + after(); +>after : Symbol(after, Decl(awaitCallExpression2_es5.ts, 6, 32)) +} diff --git a/tests/baselines/reference/awaitCallExpression2_es5(target=es5).types b/tests/baselines/reference/awaitCallExpression2_es5(target=es5).types new file mode 100644 index 0000000000000..c70ea8ac6c812 --- /dev/null +++ b/tests/baselines/reference/awaitCallExpression2_es5(target=es5).types @@ -0,0 +1,95 @@ +//// [tests/cases/conformance/async/es5/awaitCallExpression/awaitCallExpression2_es5.ts] //// + +=== awaitCallExpression2_es5.ts === +declare var a: boolean; +>a : boolean +> : ^^^^^^^ + +declare var p: Promise; +>p : Promise +> : ^^^^^^^^^^^^^^^^ + +declare function fn(arg0: boolean, arg1: boolean, arg2: boolean): void; +>fn : (arg0: boolean, arg1: boolean, arg2: boolean) => void +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>arg0 : boolean +> : ^^^^^^^ +>arg1 : boolean +> : ^^^^^^^ +>arg2 : boolean +> : ^^^^^^^ + +declare var o: { fn(arg0: boolean, arg1: boolean, arg2: boolean): void; }; +>o : { fn(arg0: boolean, arg1: boolean, arg2: boolean): void; } +> : ^^^^^ ^^ ^^ ^^ ^^ ^^ ^^^ ^^^ +>fn : (arg0: boolean, arg1: boolean, arg2: boolean) => void +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>arg0 : boolean +> : ^^^^^^^ +>arg1 : boolean +> : ^^^^^^^ +>arg2 : boolean +> : ^^^^^^^ + +declare var pfn: Promise<{ (arg0: boolean, arg1: boolean, arg2: boolean): void; }>; +>pfn : Promise<(arg0: boolean, arg1: boolean, arg2: boolean) => void> +> : ^^^^^^^^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ ^ +>arg0 : boolean +> : ^^^^^^^ +>arg1 : boolean +> : ^^^^^^^ +>arg2 : boolean +> : ^^^^^^^ + +declare var po: Promise<{ fn(arg0: boolean, arg1: boolean, arg2: boolean): void; }>; +>po : Promise<{ fn(arg0: boolean, arg1: boolean, arg2: boolean): void; }> +> : ^^^^^^^^^^^^^ ^^ ^^ ^^ ^^ ^^ ^^^ ^^^^ +>fn : (arg0: boolean, arg1: boolean, arg2: boolean) => void +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>arg0 : boolean +> : ^^^^^^^ +>arg1 : boolean +> : ^^^^^^^ +>arg2 : boolean +> : ^^^^^^^ + +declare function before(): void; +>before : () => void +> : ^^^^^^ + +declare function after(): void; +>after : () => void +> : ^^^^^^ + +async function func(): Promise { +>func : () => Promise +> : ^^^^^^ + + before(); +>before() : void +> : ^^^^ +>before : () => void +> : ^^^^^^ + + var b = fn(await p, a, a); +>b : void +> : ^^^^ +>fn(await p, a, a) : void +> : ^^^^ +>fn : (arg0: boolean, arg1: boolean, arg2: boolean) => void +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>await p : boolean +> : ^^^^^^^ +>p : Promise +> : ^^^^^^^^^^^^^^^^ +>a : boolean +> : ^^^^^^^ +>a : boolean +> : ^^^^^^^ + + after(); +>after() : void +> : ^^^^ +>after : () => void +> : ^^^^^^ +} diff --git a/tests/baselines/reference/awaitCallExpression3_es5(target=es2015).js b/tests/baselines/reference/awaitCallExpression3_es5(target=es2015).js new file mode 100644 index 0000000000000..29559e01282ca --- /dev/null +++ b/tests/baselines/reference/awaitCallExpression3_es5(target=es2015).js @@ -0,0 +1,25 @@ +//// [tests/cases/conformance/async/es5/awaitCallExpression/awaitCallExpression3_es5.ts] //// + +//// [awaitCallExpression3_es5.ts] +declare var a: boolean; +declare var p: Promise; +declare function fn(arg0: boolean, arg1: boolean, arg2: boolean): void; +declare var o: { fn(arg0: boolean, arg1: boolean, arg2: boolean): void; }; +declare var pfn: Promise<{ (arg0: boolean, arg1: boolean, arg2: boolean): void; }>; +declare var po: Promise<{ fn(arg0: boolean, arg1: boolean, arg2: boolean): void; }>; +declare function before(): void; +declare function after(): void; +async function func(): Promise { + before(); + var b = fn(a, await p, a); + after(); +} + +//// [awaitCallExpression3_es5.js] +function func() { + return __awaiter(this, void 0, void 0, function* () { + before(); + var b = fn(a, yield p, a); + after(); + }); +} diff --git a/tests/baselines/reference/awaitCallExpression3_es5.symbols b/tests/baselines/reference/awaitCallExpression3_es5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/awaitCallExpression3_es5.symbols rename to tests/baselines/reference/awaitCallExpression3_es5(target=es2015).symbols diff --git a/tests/baselines/reference/awaitCallExpression3_es5.types b/tests/baselines/reference/awaitCallExpression3_es5(target=es2015).types similarity index 100% rename from tests/baselines/reference/awaitCallExpression3_es5.types rename to tests/baselines/reference/awaitCallExpression3_es5(target=es2015).types diff --git a/tests/baselines/reference/awaitCallExpression3_es5.js b/tests/baselines/reference/awaitCallExpression3_es5(target=es5).js similarity index 100% rename from tests/baselines/reference/awaitCallExpression3_es5.js rename to tests/baselines/reference/awaitCallExpression3_es5(target=es5).js diff --git a/tests/baselines/reference/awaitCallExpression3_es5(target=es5).symbols b/tests/baselines/reference/awaitCallExpression3_es5(target=es5).symbols new file mode 100644 index 0000000000000..720f10eb2fbbf --- /dev/null +++ b/tests/baselines/reference/awaitCallExpression3_es5(target=es5).symbols @@ -0,0 +1,61 @@ +//// [tests/cases/conformance/async/es5/awaitCallExpression/awaitCallExpression3_es5.ts] //// + +=== awaitCallExpression3_es5.ts === +declare var a: boolean; +>a : Symbol(a, Decl(awaitCallExpression3_es5.ts, 0, 11)) + +declare var p: Promise; +>p : Symbol(p, Decl(awaitCallExpression3_es5.ts, 1, 11)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) + +declare function fn(arg0: boolean, arg1: boolean, arg2: boolean): void; +>fn : Symbol(fn, Decl(awaitCallExpression3_es5.ts, 1, 32)) +>arg0 : Symbol(arg0, Decl(awaitCallExpression3_es5.ts, 2, 20)) +>arg1 : Symbol(arg1, Decl(awaitCallExpression3_es5.ts, 2, 34)) +>arg2 : Symbol(arg2, Decl(awaitCallExpression3_es5.ts, 2, 49)) + +declare var o: { fn(arg0: boolean, arg1: boolean, arg2: boolean): void; }; +>o : Symbol(o, Decl(awaitCallExpression3_es5.ts, 3, 11)) +>fn : Symbol(fn, Decl(awaitCallExpression3_es5.ts, 3, 16)) +>arg0 : Symbol(arg0, Decl(awaitCallExpression3_es5.ts, 3, 20)) +>arg1 : Symbol(arg1, Decl(awaitCallExpression3_es5.ts, 3, 34)) +>arg2 : Symbol(arg2, Decl(awaitCallExpression3_es5.ts, 3, 49)) + +declare var pfn: Promise<{ (arg0: boolean, arg1: boolean, arg2: boolean): void; }>; +>pfn : Symbol(pfn, Decl(awaitCallExpression3_es5.ts, 4, 11)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>arg0 : Symbol(arg0, Decl(awaitCallExpression3_es5.ts, 4, 28)) +>arg1 : Symbol(arg1, Decl(awaitCallExpression3_es5.ts, 4, 42)) +>arg2 : Symbol(arg2, Decl(awaitCallExpression3_es5.ts, 4, 57)) + +declare var po: Promise<{ fn(arg0: boolean, arg1: boolean, arg2: boolean): void; }>; +>po : Symbol(po, Decl(awaitCallExpression3_es5.ts, 5, 11)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>fn : Symbol(fn, Decl(awaitCallExpression3_es5.ts, 5, 25)) +>arg0 : Symbol(arg0, Decl(awaitCallExpression3_es5.ts, 5, 29)) +>arg1 : Symbol(arg1, Decl(awaitCallExpression3_es5.ts, 5, 43)) +>arg2 : Symbol(arg2, Decl(awaitCallExpression3_es5.ts, 5, 58)) + +declare function before(): void; +>before : Symbol(before, Decl(awaitCallExpression3_es5.ts, 5, 84)) + +declare function after(): void; +>after : Symbol(after, Decl(awaitCallExpression3_es5.ts, 6, 32)) + +async function func(): Promise { +>func : Symbol(func, Decl(awaitCallExpression3_es5.ts, 7, 31)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) + + before(); +>before : Symbol(before, Decl(awaitCallExpression3_es5.ts, 5, 84)) + + var b = fn(a, await p, a); +>b : Symbol(b, Decl(awaitCallExpression3_es5.ts, 10, 7)) +>fn : Symbol(fn, Decl(awaitCallExpression3_es5.ts, 1, 32)) +>a : Symbol(a, Decl(awaitCallExpression3_es5.ts, 0, 11)) +>p : Symbol(p, Decl(awaitCallExpression3_es5.ts, 1, 11)) +>a : Symbol(a, Decl(awaitCallExpression3_es5.ts, 0, 11)) + + after(); +>after : Symbol(after, Decl(awaitCallExpression3_es5.ts, 6, 32)) +} diff --git a/tests/baselines/reference/awaitCallExpression3_es5(target=es5).types b/tests/baselines/reference/awaitCallExpression3_es5(target=es5).types new file mode 100644 index 0000000000000..a0ea7ec7ff5f5 --- /dev/null +++ b/tests/baselines/reference/awaitCallExpression3_es5(target=es5).types @@ -0,0 +1,95 @@ +//// [tests/cases/conformance/async/es5/awaitCallExpression/awaitCallExpression3_es5.ts] //// + +=== awaitCallExpression3_es5.ts === +declare var a: boolean; +>a : boolean +> : ^^^^^^^ + +declare var p: Promise; +>p : Promise +> : ^^^^^^^^^^^^^^^^ + +declare function fn(arg0: boolean, arg1: boolean, arg2: boolean): void; +>fn : (arg0: boolean, arg1: boolean, arg2: boolean) => void +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>arg0 : boolean +> : ^^^^^^^ +>arg1 : boolean +> : ^^^^^^^ +>arg2 : boolean +> : ^^^^^^^ + +declare var o: { fn(arg0: boolean, arg1: boolean, arg2: boolean): void; }; +>o : { fn(arg0: boolean, arg1: boolean, arg2: boolean): void; } +> : ^^^^^ ^^ ^^ ^^ ^^ ^^ ^^^ ^^^ +>fn : (arg0: boolean, arg1: boolean, arg2: boolean) => void +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>arg0 : boolean +> : ^^^^^^^ +>arg1 : boolean +> : ^^^^^^^ +>arg2 : boolean +> : ^^^^^^^ + +declare var pfn: Promise<{ (arg0: boolean, arg1: boolean, arg2: boolean): void; }>; +>pfn : Promise<(arg0: boolean, arg1: boolean, arg2: boolean) => void> +> : ^^^^^^^^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ ^ +>arg0 : boolean +> : ^^^^^^^ +>arg1 : boolean +> : ^^^^^^^ +>arg2 : boolean +> : ^^^^^^^ + +declare var po: Promise<{ fn(arg0: boolean, arg1: boolean, arg2: boolean): void; }>; +>po : Promise<{ fn(arg0: boolean, arg1: boolean, arg2: boolean): void; }> +> : ^^^^^^^^^^^^^ ^^ ^^ ^^ ^^ ^^ ^^^ ^^^^ +>fn : (arg0: boolean, arg1: boolean, arg2: boolean) => void +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>arg0 : boolean +> : ^^^^^^^ +>arg1 : boolean +> : ^^^^^^^ +>arg2 : boolean +> : ^^^^^^^ + +declare function before(): void; +>before : () => void +> : ^^^^^^ + +declare function after(): void; +>after : () => void +> : ^^^^^^ + +async function func(): Promise { +>func : () => Promise +> : ^^^^^^ + + before(); +>before() : void +> : ^^^^ +>before : () => void +> : ^^^^^^ + + var b = fn(a, await p, a); +>b : void +> : ^^^^ +>fn(a, await p, a) : void +> : ^^^^ +>fn : (arg0: boolean, arg1: boolean, arg2: boolean) => void +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>a : boolean +> : ^^^^^^^ +>await p : boolean +> : ^^^^^^^ +>p : Promise +> : ^^^^^^^^^^^^^^^^ +>a : boolean +> : ^^^^^^^ + + after(); +>after() : void +> : ^^^^ +>after : () => void +> : ^^^^^^ +} diff --git a/tests/baselines/reference/awaitCallExpression4_es5(target=es2015).js b/tests/baselines/reference/awaitCallExpression4_es5(target=es2015).js new file mode 100644 index 0000000000000..7eb335f8bf597 --- /dev/null +++ b/tests/baselines/reference/awaitCallExpression4_es5(target=es2015).js @@ -0,0 +1,25 @@ +//// [tests/cases/conformance/async/es5/awaitCallExpression/awaitCallExpression4_es5.ts] //// + +//// [awaitCallExpression4_es5.ts] +declare var a: boolean; +declare var p: Promise; +declare function fn(arg0: boolean, arg1: boolean, arg2: boolean): void; +declare var o: { fn(arg0: boolean, arg1: boolean, arg2: boolean): void; }; +declare var pfn: Promise<{ (arg0: boolean, arg1: boolean, arg2: boolean): void; }>; +declare var po: Promise<{ fn(arg0: boolean, arg1: boolean, arg2: boolean): void; }>; +declare function before(): void; +declare function after(): void; +async function func(): Promise { + before(); + var b = (await pfn)(a, a, a); + after(); +} + +//// [awaitCallExpression4_es5.js] +function func() { + return __awaiter(this, void 0, void 0, function* () { + before(); + var b = (yield pfn)(a, a, a); + after(); + }); +} diff --git a/tests/baselines/reference/awaitCallExpression4_es5.symbols b/tests/baselines/reference/awaitCallExpression4_es5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/awaitCallExpression4_es5.symbols rename to tests/baselines/reference/awaitCallExpression4_es5(target=es2015).symbols diff --git a/tests/baselines/reference/awaitCallExpression4_es5.types b/tests/baselines/reference/awaitCallExpression4_es5(target=es2015).types similarity index 100% rename from tests/baselines/reference/awaitCallExpression4_es5.types rename to tests/baselines/reference/awaitCallExpression4_es5(target=es2015).types diff --git a/tests/baselines/reference/awaitCallExpression4_es5.js b/tests/baselines/reference/awaitCallExpression4_es5(target=es5).js similarity index 100% rename from tests/baselines/reference/awaitCallExpression4_es5.js rename to tests/baselines/reference/awaitCallExpression4_es5(target=es5).js diff --git a/tests/baselines/reference/awaitCallExpression4_es5(target=es5).symbols b/tests/baselines/reference/awaitCallExpression4_es5(target=es5).symbols new file mode 100644 index 0000000000000..5c27056a0d3d5 --- /dev/null +++ b/tests/baselines/reference/awaitCallExpression4_es5(target=es5).symbols @@ -0,0 +1,61 @@ +//// [tests/cases/conformance/async/es5/awaitCallExpression/awaitCallExpression4_es5.ts] //// + +=== awaitCallExpression4_es5.ts === +declare var a: boolean; +>a : Symbol(a, Decl(awaitCallExpression4_es5.ts, 0, 11)) + +declare var p: Promise; +>p : Symbol(p, Decl(awaitCallExpression4_es5.ts, 1, 11)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) + +declare function fn(arg0: boolean, arg1: boolean, arg2: boolean): void; +>fn : Symbol(fn, Decl(awaitCallExpression4_es5.ts, 1, 32)) +>arg0 : Symbol(arg0, Decl(awaitCallExpression4_es5.ts, 2, 20)) +>arg1 : Symbol(arg1, Decl(awaitCallExpression4_es5.ts, 2, 34)) +>arg2 : Symbol(arg2, Decl(awaitCallExpression4_es5.ts, 2, 49)) + +declare var o: { fn(arg0: boolean, arg1: boolean, arg2: boolean): void; }; +>o : Symbol(o, Decl(awaitCallExpression4_es5.ts, 3, 11)) +>fn : Symbol(fn, Decl(awaitCallExpression4_es5.ts, 3, 16)) +>arg0 : Symbol(arg0, Decl(awaitCallExpression4_es5.ts, 3, 20)) +>arg1 : Symbol(arg1, Decl(awaitCallExpression4_es5.ts, 3, 34)) +>arg2 : Symbol(arg2, Decl(awaitCallExpression4_es5.ts, 3, 49)) + +declare var pfn: Promise<{ (arg0: boolean, arg1: boolean, arg2: boolean): void; }>; +>pfn : Symbol(pfn, Decl(awaitCallExpression4_es5.ts, 4, 11)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>arg0 : Symbol(arg0, Decl(awaitCallExpression4_es5.ts, 4, 28)) +>arg1 : Symbol(arg1, Decl(awaitCallExpression4_es5.ts, 4, 42)) +>arg2 : Symbol(arg2, Decl(awaitCallExpression4_es5.ts, 4, 57)) + +declare var po: Promise<{ fn(arg0: boolean, arg1: boolean, arg2: boolean): void; }>; +>po : Symbol(po, Decl(awaitCallExpression4_es5.ts, 5, 11)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>fn : Symbol(fn, Decl(awaitCallExpression4_es5.ts, 5, 25)) +>arg0 : Symbol(arg0, Decl(awaitCallExpression4_es5.ts, 5, 29)) +>arg1 : Symbol(arg1, Decl(awaitCallExpression4_es5.ts, 5, 43)) +>arg2 : Symbol(arg2, Decl(awaitCallExpression4_es5.ts, 5, 58)) + +declare function before(): void; +>before : Symbol(before, Decl(awaitCallExpression4_es5.ts, 5, 84)) + +declare function after(): void; +>after : Symbol(after, Decl(awaitCallExpression4_es5.ts, 6, 32)) + +async function func(): Promise { +>func : Symbol(func, Decl(awaitCallExpression4_es5.ts, 7, 31)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) + + before(); +>before : Symbol(before, Decl(awaitCallExpression4_es5.ts, 5, 84)) + + var b = (await pfn)(a, a, a); +>b : Symbol(b, Decl(awaitCallExpression4_es5.ts, 10, 7)) +>pfn : Symbol(pfn, Decl(awaitCallExpression4_es5.ts, 4, 11)) +>a : Symbol(a, Decl(awaitCallExpression4_es5.ts, 0, 11)) +>a : Symbol(a, Decl(awaitCallExpression4_es5.ts, 0, 11)) +>a : Symbol(a, Decl(awaitCallExpression4_es5.ts, 0, 11)) + + after(); +>after : Symbol(after, Decl(awaitCallExpression4_es5.ts, 6, 32)) +} diff --git a/tests/baselines/reference/awaitCallExpression4_es5(target=es5).types b/tests/baselines/reference/awaitCallExpression4_es5(target=es5).types new file mode 100644 index 0000000000000..b6850d8835b5d --- /dev/null +++ b/tests/baselines/reference/awaitCallExpression4_es5(target=es5).types @@ -0,0 +1,97 @@ +//// [tests/cases/conformance/async/es5/awaitCallExpression/awaitCallExpression4_es5.ts] //// + +=== awaitCallExpression4_es5.ts === +declare var a: boolean; +>a : boolean +> : ^^^^^^^ + +declare var p: Promise; +>p : Promise +> : ^^^^^^^^^^^^^^^^ + +declare function fn(arg0: boolean, arg1: boolean, arg2: boolean): void; +>fn : (arg0: boolean, arg1: boolean, arg2: boolean) => void +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>arg0 : boolean +> : ^^^^^^^ +>arg1 : boolean +> : ^^^^^^^ +>arg2 : boolean +> : ^^^^^^^ + +declare var o: { fn(arg0: boolean, arg1: boolean, arg2: boolean): void; }; +>o : { fn(arg0: boolean, arg1: boolean, arg2: boolean): void; } +> : ^^^^^ ^^ ^^ ^^ ^^ ^^ ^^^ ^^^ +>fn : (arg0: boolean, arg1: boolean, arg2: boolean) => void +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>arg0 : boolean +> : ^^^^^^^ +>arg1 : boolean +> : ^^^^^^^ +>arg2 : boolean +> : ^^^^^^^ + +declare var pfn: Promise<{ (arg0: boolean, arg1: boolean, arg2: boolean): void; }>; +>pfn : Promise<(arg0: boolean, arg1: boolean, arg2: boolean) => void> +> : ^^^^^^^^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ ^ +>arg0 : boolean +> : ^^^^^^^ +>arg1 : boolean +> : ^^^^^^^ +>arg2 : boolean +> : ^^^^^^^ + +declare var po: Promise<{ fn(arg0: boolean, arg1: boolean, arg2: boolean): void; }>; +>po : Promise<{ fn(arg0: boolean, arg1: boolean, arg2: boolean): void; }> +> : ^^^^^^^^^^^^^ ^^ ^^ ^^ ^^ ^^ ^^^ ^^^^ +>fn : (arg0: boolean, arg1: boolean, arg2: boolean) => void +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>arg0 : boolean +> : ^^^^^^^ +>arg1 : boolean +> : ^^^^^^^ +>arg2 : boolean +> : ^^^^^^^ + +declare function before(): void; +>before : () => void +> : ^^^^^^ + +declare function after(): void; +>after : () => void +> : ^^^^^^ + +async function func(): Promise { +>func : () => Promise +> : ^^^^^^ + + before(); +>before() : void +> : ^^^^ +>before : () => void +> : ^^^^^^ + + var b = (await pfn)(a, a, a); +>b : void +> : ^^^^ +>(await pfn)(a, a, a) : void +> : ^^^^ +>(await pfn) : (arg0: boolean, arg1: boolean, arg2: boolean) => void +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>await pfn : (arg0: boolean, arg1: boolean, arg2: boolean) => void +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>pfn : Promise<(arg0: boolean, arg1: boolean, arg2: boolean) => void> +> : ^^^^^^^^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ ^ +>a : boolean +> : ^^^^^^^ +>a : boolean +> : ^^^^^^^ +>a : boolean +> : ^^^^^^^ + + after(); +>after() : void +> : ^^^^ +>after : () => void +> : ^^^^^^ +} diff --git a/tests/baselines/reference/awaitCallExpression5_es5(target=es2015).js b/tests/baselines/reference/awaitCallExpression5_es5(target=es2015).js new file mode 100644 index 0000000000000..bdd3e092eba12 --- /dev/null +++ b/tests/baselines/reference/awaitCallExpression5_es5(target=es2015).js @@ -0,0 +1,25 @@ +//// [tests/cases/conformance/async/es5/awaitCallExpression/awaitCallExpression5_es5.ts] //// + +//// [awaitCallExpression5_es5.ts] +declare var a: boolean; +declare var p: Promise; +declare function fn(arg0: boolean, arg1: boolean, arg2: boolean): void; +declare var o: { fn(arg0: boolean, arg1: boolean, arg2: boolean): void; }; +declare var pfn: Promise<{ (arg0: boolean, arg1: boolean, arg2: boolean): void; }>; +declare var po: Promise<{ fn(arg0: boolean, arg1: boolean, arg2: boolean): void; }>; +declare function before(): void; +declare function after(): void; +async function func(): Promise { + before(); + var b = o.fn(a, a, a); + after(); +} + +//// [awaitCallExpression5_es5.js] +function func() { + return __awaiter(this, void 0, void 0, function* () { + before(); + var b = o.fn(a, a, a); + after(); + }); +} diff --git a/tests/baselines/reference/awaitCallExpression5_es5.symbols b/tests/baselines/reference/awaitCallExpression5_es5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/awaitCallExpression5_es5.symbols rename to tests/baselines/reference/awaitCallExpression5_es5(target=es2015).symbols diff --git a/tests/baselines/reference/awaitCallExpression5_es5.types b/tests/baselines/reference/awaitCallExpression5_es5(target=es2015).types similarity index 100% rename from tests/baselines/reference/awaitCallExpression5_es5.types rename to tests/baselines/reference/awaitCallExpression5_es5(target=es2015).types diff --git a/tests/baselines/reference/awaitCallExpression5_es5.js b/tests/baselines/reference/awaitCallExpression5_es5(target=es5).js similarity index 100% rename from tests/baselines/reference/awaitCallExpression5_es5.js rename to tests/baselines/reference/awaitCallExpression5_es5(target=es5).js diff --git a/tests/baselines/reference/awaitCallExpression5_es5(target=es5).symbols b/tests/baselines/reference/awaitCallExpression5_es5(target=es5).symbols new file mode 100644 index 0000000000000..8e3a1ff17f2f0 --- /dev/null +++ b/tests/baselines/reference/awaitCallExpression5_es5(target=es5).symbols @@ -0,0 +1,63 @@ +//// [tests/cases/conformance/async/es5/awaitCallExpression/awaitCallExpression5_es5.ts] //// + +=== awaitCallExpression5_es5.ts === +declare var a: boolean; +>a : Symbol(a, Decl(awaitCallExpression5_es5.ts, 0, 11)) + +declare var p: Promise; +>p : Symbol(p, Decl(awaitCallExpression5_es5.ts, 1, 11)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) + +declare function fn(arg0: boolean, arg1: boolean, arg2: boolean): void; +>fn : Symbol(fn, Decl(awaitCallExpression5_es5.ts, 1, 32)) +>arg0 : Symbol(arg0, Decl(awaitCallExpression5_es5.ts, 2, 20)) +>arg1 : Symbol(arg1, Decl(awaitCallExpression5_es5.ts, 2, 34)) +>arg2 : Symbol(arg2, Decl(awaitCallExpression5_es5.ts, 2, 49)) + +declare var o: { fn(arg0: boolean, arg1: boolean, arg2: boolean): void; }; +>o : Symbol(o, Decl(awaitCallExpression5_es5.ts, 3, 11)) +>fn : Symbol(fn, Decl(awaitCallExpression5_es5.ts, 3, 16)) +>arg0 : Symbol(arg0, Decl(awaitCallExpression5_es5.ts, 3, 20)) +>arg1 : Symbol(arg1, Decl(awaitCallExpression5_es5.ts, 3, 34)) +>arg2 : Symbol(arg2, Decl(awaitCallExpression5_es5.ts, 3, 49)) + +declare var pfn: Promise<{ (arg0: boolean, arg1: boolean, arg2: boolean): void; }>; +>pfn : Symbol(pfn, Decl(awaitCallExpression5_es5.ts, 4, 11)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>arg0 : Symbol(arg0, Decl(awaitCallExpression5_es5.ts, 4, 28)) +>arg1 : Symbol(arg1, Decl(awaitCallExpression5_es5.ts, 4, 42)) +>arg2 : Symbol(arg2, Decl(awaitCallExpression5_es5.ts, 4, 57)) + +declare var po: Promise<{ fn(arg0: boolean, arg1: boolean, arg2: boolean): void; }>; +>po : Symbol(po, Decl(awaitCallExpression5_es5.ts, 5, 11)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>fn : Symbol(fn, Decl(awaitCallExpression5_es5.ts, 5, 25)) +>arg0 : Symbol(arg0, Decl(awaitCallExpression5_es5.ts, 5, 29)) +>arg1 : Symbol(arg1, Decl(awaitCallExpression5_es5.ts, 5, 43)) +>arg2 : Symbol(arg2, Decl(awaitCallExpression5_es5.ts, 5, 58)) + +declare function before(): void; +>before : Symbol(before, Decl(awaitCallExpression5_es5.ts, 5, 84)) + +declare function after(): void; +>after : Symbol(after, Decl(awaitCallExpression5_es5.ts, 6, 32)) + +async function func(): Promise { +>func : Symbol(func, Decl(awaitCallExpression5_es5.ts, 7, 31)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) + + before(); +>before : Symbol(before, Decl(awaitCallExpression5_es5.ts, 5, 84)) + + var b = o.fn(a, a, a); +>b : Symbol(b, Decl(awaitCallExpression5_es5.ts, 10, 7)) +>o.fn : Symbol(fn, Decl(awaitCallExpression5_es5.ts, 3, 16)) +>o : Symbol(o, Decl(awaitCallExpression5_es5.ts, 3, 11)) +>fn : Symbol(fn, Decl(awaitCallExpression5_es5.ts, 3, 16)) +>a : Symbol(a, Decl(awaitCallExpression5_es5.ts, 0, 11)) +>a : Symbol(a, Decl(awaitCallExpression5_es5.ts, 0, 11)) +>a : Symbol(a, Decl(awaitCallExpression5_es5.ts, 0, 11)) + + after(); +>after : Symbol(after, Decl(awaitCallExpression5_es5.ts, 6, 32)) +} diff --git a/tests/baselines/reference/awaitCallExpression5_es5(target=es5).types b/tests/baselines/reference/awaitCallExpression5_es5(target=es5).types new file mode 100644 index 0000000000000..dda4a22b7b389 --- /dev/null +++ b/tests/baselines/reference/awaitCallExpression5_es5(target=es5).types @@ -0,0 +1,97 @@ +//// [tests/cases/conformance/async/es5/awaitCallExpression/awaitCallExpression5_es5.ts] //// + +=== awaitCallExpression5_es5.ts === +declare var a: boolean; +>a : boolean +> : ^^^^^^^ + +declare var p: Promise; +>p : Promise +> : ^^^^^^^^^^^^^^^^ + +declare function fn(arg0: boolean, arg1: boolean, arg2: boolean): void; +>fn : (arg0: boolean, arg1: boolean, arg2: boolean) => void +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>arg0 : boolean +> : ^^^^^^^ +>arg1 : boolean +> : ^^^^^^^ +>arg2 : boolean +> : ^^^^^^^ + +declare var o: { fn(arg0: boolean, arg1: boolean, arg2: boolean): void; }; +>o : { fn(arg0: boolean, arg1: boolean, arg2: boolean): void; } +> : ^^^^^ ^^ ^^ ^^ ^^ ^^ ^^^ ^^^ +>fn : (arg0: boolean, arg1: boolean, arg2: boolean) => void +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>arg0 : boolean +> : ^^^^^^^ +>arg1 : boolean +> : ^^^^^^^ +>arg2 : boolean +> : ^^^^^^^ + +declare var pfn: Promise<{ (arg0: boolean, arg1: boolean, arg2: boolean): void; }>; +>pfn : Promise<(arg0: boolean, arg1: boolean, arg2: boolean) => void> +> : ^^^^^^^^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ ^ +>arg0 : boolean +> : ^^^^^^^ +>arg1 : boolean +> : ^^^^^^^ +>arg2 : boolean +> : ^^^^^^^ + +declare var po: Promise<{ fn(arg0: boolean, arg1: boolean, arg2: boolean): void; }>; +>po : Promise<{ fn(arg0: boolean, arg1: boolean, arg2: boolean): void; }> +> : ^^^^^^^^^^^^^ ^^ ^^ ^^ ^^ ^^ ^^^ ^^^^ +>fn : (arg0: boolean, arg1: boolean, arg2: boolean) => void +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>arg0 : boolean +> : ^^^^^^^ +>arg1 : boolean +> : ^^^^^^^ +>arg2 : boolean +> : ^^^^^^^ + +declare function before(): void; +>before : () => void +> : ^^^^^^ + +declare function after(): void; +>after : () => void +> : ^^^^^^ + +async function func(): Promise { +>func : () => Promise +> : ^^^^^^ + + before(); +>before() : void +> : ^^^^ +>before : () => void +> : ^^^^^^ + + var b = o.fn(a, a, a); +>b : void +> : ^^^^ +>o.fn(a, a, a) : void +> : ^^^^ +>o.fn : (arg0: boolean, arg1: boolean, arg2: boolean) => void +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>o : { fn(arg0: boolean, arg1: boolean, arg2: boolean): void; } +> : ^^^^^ ^^ ^^ ^^ ^^ ^^ ^^^ ^^^ +>fn : (arg0: boolean, arg1: boolean, arg2: boolean) => void +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>a : boolean +> : ^^^^^^^ +>a : boolean +> : ^^^^^^^ +>a : boolean +> : ^^^^^^^ + + after(); +>after() : void +> : ^^^^ +>after : () => void +> : ^^^^^^ +} diff --git a/tests/baselines/reference/awaitCallExpression6_es5(target=es2015).js b/tests/baselines/reference/awaitCallExpression6_es5(target=es2015).js new file mode 100644 index 0000000000000..2100541098075 --- /dev/null +++ b/tests/baselines/reference/awaitCallExpression6_es5(target=es2015).js @@ -0,0 +1,25 @@ +//// [tests/cases/conformance/async/es5/awaitCallExpression/awaitCallExpression6_es5.ts] //// + +//// [awaitCallExpression6_es5.ts] +declare var a: boolean; +declare var p: Promise; +declare function fn(arg0: boolean, arg1: boolean, arg2: boolean): void; +declare var o: { fn(arg0: boolean, arg1: boolean, arg2: boolean): void; }; +declare var pfn: Promise<{ (arg0: boolean, arg1: boolean, arg2: boolean): void; }>; +declare var po: Promise<{ fn(arg0: boolean, arg1: boolean, arg2: boolean): void; }>; +declare function before(): void; +declare function after(): void; +async function func(): Promise { + before(); + var b = o.fn(await p, a, a); + after(); +} + +//// [awaitCallExpression6_es5.js] +function func() { + return __awaiter(this, void 0, void 0, function* () { + before(); + var b = o.fn(yield p, a, a); + after(); + }); +} diff --git a/tests/baselines/reference/awaitCallExpression6_es5.symbols b/tests/baselines/reference/awaitCallExpression6_es5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/awaitCallExpression6_es5.symbols rename to tests/baselines/reference/awaitCallExpression6_es5(target=es2015).symbols diff --git a/tests/baselines/reference/awaitCallExpression6_es5.types b/tests/baselines/reference/awaitCallExpression6_es5(target=es2015).types similarity index 100% rename from tests/baselines/reference/awaitCallExpression6_es5.types rename to tests/baselines/reference/awaitCallExpression6_es5(target=es2015).types diff --git a/tests/baselines/reference/awaitCallExpression6_es5.js b/tests/baselines/reference/awaitCallExpression6_es5(target=es5).js similarity index 100% rename from tests/baselines/reference/awaitCallExpression6_es5.js rename to tests/baselines/reference/awaitCallExpression6_es5(target=es5).js diff --git a/tests/baselines/reference/awaitCallExpression6_es5(target=es5).symbols b/tests/baselines/reference/awaitCallExpression6_es5(target=es5).symbols new file mode 100644 index 0000000000000..cee460dc1e7a4 --- /dev/null +++ b/tests/baselines/reference/awaitCallExpression6_es5(target=es5).symbols @@ -0,0 +1,63 @@ +//// [tests/cases/conformance/async/es5/awaitCallExpression/awaitCallExpression6_es5.ts] //// + +=== awaitCallExpression6_es5.ts === +declare var a: boolean; +>a : Symbol(a, Decl(awaitCallExpression6_es5.ts, 0, 11)) + +declare var p: Promise; +>p : Symbol(p, Decl(awaitCallExpression6_es5.ts, 1, 11)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) + +declare function fn(arg0: boolean, arg1: boolean, arg2: boolean): void; +>fn : Symbol(fn, Decl(awaitCallExpression6_es5.ts, 1, 32)) +>arg0 : Symbol(arg0, Decl(awaitCallExpression6_es5.ts, 2, 20)) +>arg1 : Symbol(arg1, Decl(awaitCallExpression6_es5.ts, 2, 34)) +>arg2 : Symbol(arg2, Decl(awaitCallExpression6_es5.ts, 2, 49)) + +declare var o: { fn(arg0: boolean, arg1: boolean, arg2: boolean): void; }; +>o : Symbol(o, Decl(awaitCallExpression6_es5.ts, 3, 11)) +>fn : Symbol(fn, Decl(awaitCallExpression6_es5.ts, 3, 16)) +>arg0 : Symbol(arg0, Decl(awaitCallExpression6_es5.ts, 3, 20)) +>arg1 : Symbol(arg1, Decl(awaitCallExpression6_es5.ts, 3, 34)) +>arg2 : Symbol(arg2, Decl(awaitCallExpression6_es5.ts, 3, 49)) + +declare var pfn: Promise<{ (arg0: boolean, arg1: boolean, arg2: boolean): void; }>; +>pfn : Symbol(pfn, Decl(awaitCallExpression6_es5.ts, 4, 11)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>arg0 : Symbol(arg0, Decl(awaitCallExpression6_es5.ts, 4, 28)) +>arg1 : Symbol(arg1, Decl(awaitCallExpression6_es5.ts, 4, 42)) +>arg2 : Symbol(arg2, Decl(awaitCallExpression6_es5.ts, 4, 57)) + +declare var po: Promise<{ fn(arg0: boolean, arg1: boolean, arg2: boolean): void; }>; +>po : Symbol(po, Decl(awaitCallExpression6_es5.ts, 5, 11)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>fn : Symbol(fn, Decl(awaitCallExpression6_es5.ts, 5, 25)) +>arg0 : Symbol(arg0, Decl(awaitCallExpression6_es5.ts, 5, 29)) +>arg1 : Symbol(arg1, Decl(awaitCallExpression6_es5.ts, 5, 43)) +>arg2 : Symbol(arg2, Decl(awaitCallExpression6_es5.ts, 5, 58)) + +declare function before(): void; +>before : Symbol(before, Decl(awaitCallExpression6_es5.ts, 5, 84)) + +declare function after(): void; +>after : Symbol(after, Decl(awaitCallExpression6_es5.ts, 6, 32)) + +async function func(): Promise { +>func : Symbol(func, Decl(awaitCallExpression6_es5.ts, 7, 31)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) + + before(); +>before : Symbol(before, Decl(awaitCallExpression6_es5.ts, 5, 84)) + + var b = o.fn(await p, a, a); +>b : Symbol(b, Decl(awaitCallExpression6_es5.ts, 10, 7)) +>o.fn : Symbol(fn, Decl(awaitCallExpression6_es5.ts, 3, 16)) +>o : Symbol(o, Decl(awaitCallExpression6_es5.ts, 3, 11)) +>fn : Symbol(fn, Decl(awaitCallExpression6_es5.ts, 3, 16)) +>p : Symbol(p, Decl(awaitCallExpression6_es5.ts, 1, 11)) +>a : Symbol(a, Decl(awaitCallExpression6_es5.ts, 0, 11)) +>a : Symbol(a, Decl(awaitCallExpression6_es5.ts, 0, 11)) + + after(); +>after : Symbol(after, Decl(awaitCallExpression6_es5.ts, 6, 32)) +} diff --git a/tests/baselines/reference/awaitCallExpression6_es5(target=es5).types b/tests/baselines/reference/awaitCallExpression6_es5(target=es5).types new file mode 100644 index 0000000000000..baa9dc9f23f5d --- /dev/null +++ b/tests/baselines/reference/awaitCallExpression6_es5(target=es5).types @@ -0,0 +1,99 @@ +//// [tests/cases/conformance/async/es5/awaitCallExpression/awaitCallExpression6_es5.ts] //// + +=== awaitCallExpression6_es5.ts === +declare var a: boolean; +>a : boolean +> : ^^^^^^^ + +declare var p: Promise; +>p : Promise +> : ^^^^^^^^^^^^^^^^ + +declare function fn(arg0: boolean, arg1: boolean, arg2: boolean): void; +>fn : (arg0: boolean, arg1: boolean, arg2: boolean) => void +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>arg0 : boolean +> : ^^^^^^^ +>arg1 : boolean +> : ^^^^^^^ +>arg2 : boolean +> : ^^^^^^^ + +declare var o: { fn(arg0: boolean, arg1: boolean, arg2: boolean): void; }; +>o : { fn(arg0: boolean, arg1: boolean, arg2: boolean): void; } +> : ^^^^^ ^^ ^^ ^^ ^^ ^^ ^^^ ^^^ +>fn : (arg0: boolean, arg1: boolean, arg2: boolean) => void +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>arg0 : boolean +> : ^^^^^^^ +>arg1 : boolean +> : ^^^^^^^ +>arg2 : boolean +> : ^^^^^^^ + +declare var pfn: Promise<{ (arg0: boolean, arg1: boolean, arg2: boolean): void; }>; +>pfn : Promise<(arg0: boolean, arg1: boolean, arg2: boolean) => void> +> : ^^^^^^^^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ ^ +>arg0 : boolean +> : ^^^^^^^ +>arg1 : boolean +> : ^^^^^^^ +>arg2 : boolean +> : ^^^^^^^ + +declare var po: Promise<{ fn(arg0: boolean, arg1: boolean, arg2: boolean): void; }>; +>po : Promise<{ fn(arg0: boolean, arg1: boolean, arg2: boolean): void; }> +> : ^^^^^^^^^^^^^ ^^ ^^ ^^ ^^ ^^ ^^^ ^^^^ +>fn : (arg0: boolean, arg1: boolean, arg2: boolean) => void +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>arg0 : boolean +> : ^^^^^^^ +>arg1 : boolean +> : ^^^^^^^ +>arg2 : boolean +> : ^^^^^^^ + +declare function before(): void; +>before : () => void +> : ^^^^^^ + +declare function after(): void; +>after : () => void +> : ^^^^^^ + +async function func(): Promise { +>func : () => Promise +> : ^^^^^^ + + before(); +>before() : void +> : ^^^^ +>before : () => void +> : ^^^^^^ + + var b = o.fn(await p, a, a); +>b : void +> : ^^^^ +>o.fn(await p, a, a) : void +> : ^^^^ +>o.fn : (arg0: boolean, arg1: boolean, arg2: boolean) => void +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>o : { fn(arg0: boolean, arg1: boolean, arg2: boolean): void; } +> : ^^^^^ ^^ ^^ ^^ ^^ ^^ ^^^ ^^^ +>fn : (arg0: boolean, arg1: boolean, arg2: boolean) => void +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>await p : boolean +> : ^^^^^^^ +>p : Promise +> : ^^^^^^^^^^^^^^^^ +>a : boolean +> : ^^^^^^^ +>a : boolean +> : ^^^^^^^ + + after(); +>after() : void +> : ^^^^ +>after : () => void +> : ^^^^^^ +} diff --git a/tests/baselines/reference/awaitCallExpression7_es5(target=es2015).js b/tests/baselines/reference/awaitCallExpression7_es5(target=es2015).js new file mode 100644 index 0000000000000..64f2fca441a45 --- /dev/null +++ b/tests/baselines/reference/awaitCallExpression7_es5(target=es2015).js @@ -0,0 +1,25 @@ +//// [tests/cases/conformance/async/es5/awaitCallExpression/awaitCallExpression7_es5.ts] //// + +//// [awaitCallExpression7_es5.ts] +declare var a: boolean; +declare var p: Promise; +declare function fn(arg0: boolean, arg1: boolean, arg2: boolean): void; +declare var o: { fn(arg0: boolean, arg1: boolean, arg2: boolean): void; }; +declare var pfn: Promise<{ (arg0: boolean, arg1: boolean, arg2: boolean): void; }>; +declare var po: Promise<{ fn(arg0: boolean, arg1: boolean, arg2: boolean): void; }>; +declare function before(): void; +declare function after(): void; +async function func(): Promise { + before(); + var b = o.fn(a, await p, a); + after(); +} + +//// [awaitCallExpression7_es5.js] +function func() { + return __awaiter(this, void 0, void 0, function* () { + before(); + var b = o.fn(a, yield p, a); + after(); + }); +} diff --git a/tests/baselines/reference/awaitCallExpression7_es5.symbols b/tests/baselines/reference/awaitCallExpression7_es5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/awaitCallExpression7_es5.symbols rename to tests/baselines/reference/awaitCallExpression7_es5(target=es2015).symbols diff --git a/tests/baselines/reference/awaitCallExpression7_es5.types b/tests/baselines/reference/awaitCallExpression7_es5(target=es2015).types similarity index 100% rename from tests/baselines/reference/awaitCallExpression7_es5.types rename to tests/baselines/reference/awaitCallExpression7_es5(target=es2015).types diff --git a/tests/baselines/reference/awaitCallExpression7_es5.js b/tests/baselines/reference/awaitCallExpression7_es5(target=es5).js similarity index 100% rename from tests/baselines/reference/awaitCallExpression7_es5.js rename to tests/baselines/reference/awaitCallExpression7_es5(target=es5).js diff --git a/tests/baselines/reference/awaitCallExpression7_es5(target=es5).symbols b/tests/baselines/reference/awaitCallExpression7_es5(target=es5).symbols new file mode 100644 index 0000000000000..7f48849b27f8d --- /dev/null +++ b/tests/baselines/reference/awaitCallExpression7_es5(target=es5).symbols @@ -0,0 +1,63 @@ +//// [tests/cases/conformance/async/es5/awaitCallExpression/awaitCallExpression7_es5.ts] //// + +=== awaitCallExpression7_es5.ts === +declare var a: boolean; +>a : Symbol(a, Decl(awaitCallExpression7_es5.ts, 0, 11)) + +declare var p: Promise; +>p : Symbol(p, Decl(awaitCallExpression7_es5.ts, 1, 11)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) + +declare function fn(arg0: boolean, arg1: boolean, arg2: boolean): void; +>fn : Symbol(fn, Decl(awaitCallExpression7_es5.ts, 1, 32)) +>arg0 : Symbol(arg0, Decl(awaitCallExpression7_es5.ts, 2, 20)) +>arg1 : Symbol(arg1, Decl(awaitCallExpression7_es5.ts, 2, 34)) +>arg2 : Symbol(arg2, Decl(awaitCallExpression7_es5.ts, 2, 49)) + +declare var o: { fn(arg0: boolean, arg1: boolean, arg2: boolean): void; }; +>o : Symbol(o, Decl(awaitCallExpression7_es5.ts, 3, 11)) +>fn : Symbol(fn, Decl(awaitCallExpression7_es5.ts, 3, 16)) +>arg0 : Symbol(arg0, Decl(awaitCallExpression7_es5.ts, 3, 20)) +>arg1 : Symbol(arg1, Decl(awaitCallExpression7_es5.ts, 3, 34)) +>arg2 : Symbol(arg2, Decl(awaitCallExpression7_es5.ts, 3, 49)) + +declare var pfn: Promise<{ (arg0: boolean, arg1: boolean, arg2: boolean): void; }>; +>pfn : Symbol(pfn, Decl(awaitCallExpression7_es5.ts, 4, 11)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>arg0 : Symbol(arg0, Decl(awaitCallExpression7_es5.ts, 4, 28)) +>arg1 : Symbol(arg1, Decl(awaitCallExpression7_es5.ts, 4, 42)) +>arg2 : Symbol(arg2, Decl(awaitCallExpression7_es5.ts, 4, 57)) + +declare var po: Promise<{ fn(arg0: boolean, arg1: boolean, arg2: boolean): void; }>; +>po : Symbol(po, Decl(awaitCallExpression7_es5.ts, 5, 11)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>fn : Symbol(fn, Decl(awaitCallExpression7_es5.ts, 5, 25)) +>arg0 : Symbol(arg0, Decl(awaitCallExpression7_es5.ts, 5, 29)) +>arg1 : Symbol(arg1, Decl(awaitCallExpression7_es5.ts, 5, 43)) +>arg2 : Symbol(arg2, Decl(awaitCallExpression7_es5.ts, 5, 58)) + +declare function before(): void; +>before : Symbol(before, Decl(awaitCallExpression7_es5.ts, 5, 84)) + +declare function after(): void; +>after : Symbol(after, Decl(awaitCallExpression7_es5.ts, 6, 32)) + +async function func(): Promise { +>func : Symbol(func, Decl(awaitCallExpression7_es5.ts, 7, 31)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) + + before(); +>before : Symbol(before, Decl(awaitCallExpression7_es5.ts, 5, 84)) + + var b = o.fn(a, await p, a); +>b : Symbol(b, Decl(awaitCallExpression7_es5.ts, 10, 7)) +>o.fn : Symbol(fn, Decl(awaitCallExpression7_es5.ts, 3, 16)) +>o : Symbol(o, Decl(awaitCallExpression7_es5.ts, 3, 11)) +>fn : Symbol(fn, Decl(awaitCallExpression7_es5.ts, 3, 16)) +>a : Symbol(a, Decl(awaitCallExpression7_es5.ts, 0, 11)) +>p : Symbol(p, Decl(awaitCallExpression7_es5.ts, 1, 11)) +>a : Symbol(a, Decl(awaitCallExpression7_es5.ts, 0, 11)) + + after(); +>after : Symbol(after, Decl(awaitCallExpression7_es5.ts, 6, 32)) +} diff --git a/tests/baselines/reference/awaitCallExpression7_es5(target=es5).types b/tests/baselines/reference/awaitCallExpression7_es5(target=es5).types new file mode 100644 index 0000000000000..0b7d51ad2e972 --- /dev/null +++ b/tests/baselines/reference/awaitCallExpression7_es5(target=es5).types @@ -0,0 +1,99 @@ +//// [tests/cases/conformance/async/es5/awaitCallExpression/awaitCallExpression7_es5.ts] //// + +=== awaitCallExpression7_es5.ts === +declare var a: boolean; +>a : boolean +> : ^^^^^^^ + +declare var p: Promise; +>p : Promise +> : ^^^^^^^^^^^^^^^^ + +declare function fn(arg0: boolean, arg1: boolean, arg2: boolean): void; +>fn : (arg0: boolean, arg1: boolean, arg2: boolean) => void +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>arg0 : boolean +> : ^^^^^^^ +>arg1 : boolean +> : ^^^^^^^ +>arg2 : boolean +> : ^^^^^^^ + +declare var o: { fn(arg0: boolean, arg1: boolean, arg2: boolean): void; }; +>o : { fn(arg0: boolean, arg1: boolean, arg2: boolean): void; } +> : ^^^^^ ^^ ^^ ^^ ^^ ^^ ^^^ ^^^ +>fn : (arg0: boolean, arg1: boolean, arg2: boolean) => void +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>arg0 : boolean +> : ^^^^^^^ +>arg1 : boolean +> : ^^^^^^^ +>arg2 : boolean +> : ^^^^^^^ + +declare var pfn: Promise<{ (arg0: boolean, arg1: boolean, arg2: boolean): void; }>; +>pfn : Promise<(arg0: boolean, arg1: boolean, arg2: boolean) => void> +> : ^^^^^^^^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ ^ +>arg0 : boolean +> : ^^^^^^^ +>arg1 : boolean +> : ^^^^^^^ +>arg2 : boolean +> : ^^^^^^^ + +declare var po: Promise<{ fn(arg0: boolean, arg1: boolean, arg2: boolean): void; }>; +>po : Promise<{ fn(arg0: boolean, arg1: boolean, arg2: boolean): void; }> +> : ^^^^^^^^^^^^^ ^^ ^^ ^^ ^^ ^^ ^^^ ^^^^ +>fn : (arg0: boolean, arg1: boolean, arg2: boolean) => void +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>arg0 : boolean +> : ^^^^^^^ +>arg1 : boolean +> : ^^^^^^^ +>arg2 : boolean +> : ^^^^^^^ + +declare function before(): void; +>before : () => void +> : ^^^^^^ + +declare function after(): void; +>after : () => void +> : ^^^^^^ + +async function func(): Promise { +>func : () => Promise +> : ^^^^^^ + + before(); +>before() : void +> : ^^^^ +>before : () => void +> : ^^^^^^ + + var b = o.fn(a, await p, a); +>b : void +> : ^^^^ +>o.fn(a, await p, a) : void +> : ^^^^ +>o.fn : (arg0: boolean, arg1: boolean, arg2: boolean) => void +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>o : { fn(arg0: boolean, arg1: boolean, arg2: boolean): void; } +> : ^^^^^ ^^ ^^ ^^ ^^ ^^ ^^^ ^^^ +>fn : (arg0: boolean, arg1: boolean, arg2: boolean) => void +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>a : boolean +> : ^^^^^^^ +>await p : boolean +> : ^^^^^^^ +>p : Promise +> : ^^^^^^^^^^^^^^^^ +>a : boolean +> : ^^^^^^^ + + after(); +>after() : void +> : ^^^^ +>after : () => void +> : ^^^^^^ +} diff --git a/tests/baselines/reference/awaitCallExpression8_es5(target=es2015).js b/tests/baselines/reference/awaitCallExpression8_es5(target=es2015).js new file mode 100644 index 0000000000000..8a98db54084e0 --- /dev/null +++ b/tests/baselines/reference/awaitCallExpression8_es5(target=es2015).js @@ -0,0 +1,25 @@ +//// [tests/cases/conformance/async/es5/awaitCallExpression/awaitCallExpression8_es5.ts] //// + +//// [awaitCallExpression8_es5.ts] +declare var a: boolean; +declare var p: Promise; +declare function fn(arg0: boolean, arg1: boolean, arg2: boolean): void; +declare var o: { fn(arg0: boolean, arg1: boolean, arg2: boolean): void; }; +declare var pfn: Promise<{ (arg0: boolean, arg1: boolean, arg2: boolean): void; }>; +declare var po: Promise<{ fn(arg0: boolean, arg1: boolean, arg2: boolean): void; }>; +declare function before(): void; +declare function after(): void; +async function func(): Promise { + before(); + var b = (await po).fn(a, a, a); + after(); +} + +//// [awaitCallExpression8_es5.js] +function func() { + return __awaiter(this, void 0, void 0, function* () { + before(); + var b = (yield po).fn(a, a, a); + after(); + }); +} diff --git a/tests/baselines/reference/awaitCallExpression8_es5.symbols b/tests/baselines/reference/awaitCallExpression8_es5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/awaitCallExpression8_es5.symbols rename to tests/baselines/reference/awaitCallExpression8_es5(target=es2015).symbols diff --git a/tests/baselines/reference/awaitCallExpression8_es5.types b/tests/baselines/reference/awaitCallExpression8_es5(target=es2015).types similarity index 100% rename from tests/baselines/reference/awaitCallExpression8_es5.types rename to tests/baselines/reference/awaitCallExpression8_es5(target=es2015).types diff --git a/tests/baselines/reference/awaitCallExpression8_es5.js b/tests/baselines/reference/awaitCallExpression8_es5(target=es5).js similarity index 100% rename from tests/baselines/reference/awaitCallExpression8_es5.js rename to tests/baselines/reference/awaitCallExpression8_es5(target=es5).js diff --git a/tests/baselines/reference/awaitCallExpression8_es5(target=es5).symbols b/tests/baselines/reference/awaitCallExpression8_es5(target=es5).symbols new file mode 100644 index 0000000000000..1cc9dde97ba72 --- /dev/null +++ b/tests/baselines/reference/awaitCallExpression8_es5(target=es5).symbols @@ -0,0 +1,63 @@ +//// [tests/cases/conformance/async/es5/awaitCallExpression/awaitCallExpression8_es5.ts] //// + +=== awaitCallExpression8_es5.ts === +declare var a: boolean; +>a : Symbol(a, Decl(awaitCallExpression8_es5.ts, 0, 11)) + +declare var p: Promise; +>p : Symbol(p, Decl(awaitCallExpression8_es5.ts, 1, 11)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) + +declare function fn(arg0: boolean, arg1: boolean, arg2: boolean): void; +>fn : Symbol(fn, Decl(awaitCallExpression8_es5.ts, 1, 32)) +>arg0 : Symbol(arg0, Decl(awaitCallExpression8_es5.ts, 2, 20)) +>arg1 : Symbol(arg1, Decl(awaitCallExpression8_es5.ts, 2, 34)) +>arg2 : Symbol(arg2, Decl(awaitCallExpression8_es5.ts, 2, 49)) + +declare var o: { fn(arg0: boolean, arg1: boolean, arg2: boolean): void; }; +>o : Symbol(o, Decl(awaitCallExpression8_es5.ts, 3, 11)) +>fn : Symbol(fn, Decl(awaitCallExpression8_es5.ts, 3, 16)) +>arg0 : Symbol(arg0, Decl(awaitCallExpression8_es5.ts, 3, 20)) +>arg1 : Symbol(arg1, Decl(awaitCallExpression8_es5.ts, 3, 34)) +>arg2 : Symbol(arg2, Decl(awaitCallExpression8_es5.ts, 3, 49)) + +declare var pfn: Promise<{ (arg0: boolean, arg1: boolean, arg2: boolean): void; }>; +>pfn : Symbol(pfn, Decl(awaitCallExpression8_es5.ts, 4, 11)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>arg0 : Symbol(arg0, Decl(awaitCallExpression8_es5.ts, 4, 28)) +>arg1 : Symbol(arg1, Decl(awaitCallExpression8_es5.ts, 4, 42)) +>arg2 : Symbol(arg2, Decl(awaitCallExpression8_es5.ts, 4, 57)) + +declare var po: Promise<{ fn(arg0: boolean, arg1: boolean, arg2: boolean): void; }>; +>po : Symbol(po, Decl(awaitCallExpression8_es5.ts, 5, 11)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>fn : Symbol(fn, Decl(awaitCallExpression8_es5.ts, 5, 25)) +>arg0 : Symbol(arg0, Decl(awaitCallExpression8_es5.ts, 5, 29)) +>arg1 : Symbol(arg1, Decl(awaitCallExpression8_es5.ts, 5, 43)) +>arg2 : Symbol(arg2, Decl(awaitCallExpression8_es5.ts, 5, 58)) + +declare function before(): void; +>before : Symbol(before, Decl(awaitCallExpression8_es5.ts, 5, 84)) + +declare function after(): void; +>after : Symbol(after, Decl(awaitCallExpression8_es5.ts, 6, 32)) + +async function func(): Promise { +>func : Symbol(func, Decl(awaitCallExpression8_es5.ts, 7, 31)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) + + before(); +>before : Symbol(before, Decl(awaitCallExpression8_es5.ts, 5, 84)) + + var b = (await po).fn(a, a, a); +>b : Symbol(b, Decl(awaitCallExpression8_es5.ts, 10, 7)) +>(await po).fn : Symbol(fn, Decl(awaitCallExpression8_es5.ts, 5, 25)) +>po : Symbol(po, Decl(awaitCallExpression8_es5.ts, 5, 11)) +>fn : Symbol(fn, Decl(awaitCallExpression8_es5.ts, 5, 25)) +>a : Symbol(a, Decl(awaitCallExpression8_es5.ts, 0, 11)) +>a : Symbol(a, Decl(awaitCallExpression8_es5.ts, 0, 11)) +>a : Symbol(a, Decl(awaitCallExpression8_es5.ts, 0, 11)) + + after(); +>after : Symbol(after, Decl(awaitCallExpression8_es5.ts, 6, 32)) +} diff --git a/tests/baselines/reference/awaitCallExpression8_es5(target=es5).types b/tests/baselines/reference/awaitCallExpression8_es5(target=es5).types new file mode 100644 index 0000000000000..1a2563d628ce4 --- /dev/null +++ b/tests/baselines/reference/awaitCallExpression8_es5(target=es5).types @@ -0,0 +1,101 @@ +//// [tests/cases/conformance/async/es5/awaitCallExpression/awaitCallExpression8_es5.ts] //// + +=== awaitCallExpression8_es5.ts === +declare var a: boolean; +>a : boolean +> : ^^^^^^^ + +declare var p: Promise; +>p : Promise +> : ^^^^^^^^^^^^^^^^ + +declare function fn(arg0: boolean, arg1: boolean, arg2: boolean): void; +>fn : (arg0: boolean, arg1: boolean, arg2: boolean) => void +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>arg0 : boolean +> : ^^^^^^^ +>arg1 : boolean +> : ^^^^^^^ +>arg2 : boolean +> : ^^^^^^^ + +declare var o: { fn(arg0: boolean, arg1: boolean, arg2: boolean): void; }; +>o : { fn(arg0: boolean, arg1: boolean, arg2: boolean): void; } +> : ^^^^^ ^^ ^^ ^^ ^^ ^^ ^^^ ^^^ +>fn : (arg0: boolean, arg1: boolean, arg2: boolean) => void +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>arg0 : boolean +> : ^^^^^^^ +>arg1 : boolean +> : ^^^^^^^ +>arg2 : boolean +> : ^^^^^^^ + +declare var pfn: Promise<{ (arg0: boolean, arg1: boolean, arg2: boolean): void; }>; +>pfn : Promise<(arg0: boolean, arg1: boolean, arg2: boolean) => void> +> : ^^^^^^^^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ ^ +>arg0 : boolean +> : ^^^^^^^ +>arg1 : boolean +> : ^^^^^^^ +>arg2 : boolean +> : ^^^^^^^ + +declare var po: Promise<{ fn(arg0: boolean, arg1: boolean, arg2: boolean): void; }>; +>po : Promise<{ fn(arg0: boolean, arg1: boolean, arg2: boolean): void; }> +> : ^^^^^^^^^^^^^ ^^ ^^ ^^ ^^ ^^ ^^^ ^^^^ +>fn : (arg0: boolean, arg1: boolean, arg2: boolean) => void +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>arg0 : boolean +> : ^^^^^^^ +>arg1 : boolean +> : ^^^^^^^ +>arg2 : boolean +> : ^^^^^^^ + +declare function before(): void; +>before : () => void +> : ^^^^^^ + +declare function after(): void; +>after : () => void +> : ^^^^^^ + +async function func(): Promise { +>func : () => Promise +> : ^^^^^^ + + before(); +>before() : void +> : ^^^^ +>before : () => void +> : ^^^^^^ + + var b = (await po).fn(a, a, a); +>b : void +> : ^^^^ +>(await po).fn(a, a, a) : void +> : ^^^^ +>(await po).fn : (arg0: boolean, arg1: boolean, arg2: boolean) => void +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>(await po) : { fn(arg0: boolean, arg1: boolean, arg2: boolean): void; } +> : ^^^^^ ^^ ^^ ^^ ^^ ^^ ^^^ ^^^ +>await po : { fn(arg0: boolean, arg1: boolean, arg2: boolean): void; } +> : ^^^^^ ^^ ^^ ^^ ^^ ^^ ^^^ ^^^ +>po : Promise<{ fn(arg0: boolean, arg1: boolean, arg2: boolean): void; }> +> : ^^^^^^^^^^^^^ ^^ ^^ ^^ ^^ ^^ ^^^ ^^^^ +>fn : (arg0: boolean, arg1: boolean, arg2: boolean) => void +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>a : boolean +> : ^^^^^^^ +>a : boolean +> : ^^^^^^^ +>a : boolean +> : ^^^^^^^ + + after(); +>after() : void +> : ^^^^ +>after : () => void +> : ^^^^^^ +} diff --git a/tests/baselines/reference/awaitClassExpression_es5(target=es2015).js b/tests/baselines/reference/awaitClassExpression_es5(target=es2015).js new file mode 100644 index 0000000000000..92cba5b02ed81 --- /dev/null +++ b/tests/baselines/reference/awaitClassExpression_es5(target=es2015).js @@ -0,0 +1,18 @@ +//// [tests/cases/conformance/async/es5/awaitClassExpression_es5.ts] //// + +//// [awaitClassExpression_es5.ts] +declare class C { } +declare var p: Promise; + +async function func(): Promise { + class D extends (await p) { + } +} + +//// [awaitClassExpression_es5.js] +function func() { + return __awaiter(this, void 0, void 0, function* () { + class D extends (yield p) { + } + }); +} diff --git a/tests/baselines/reference/awaitClassExpression_es5.symbols b/tests/baselines/reference/awaitClassExpression_es5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/awaitClassExpression_es5.symbols rename to tests/baselines/reference/awaitClassExpression_es5(target=es2015).symbols diff --git a/tests/baselines/reference/awaitClassExpression_es5.types b/tests/baselines/reference/awaitClassExpression_es5(target=es2015).types similarity index 100% rename from tests/baselines/reference/awaitClassExpression_es5.types rename to tests/baselines/reference/awaitClassExpression_es5(target=es2015).types diff --git a/tests/baselines/reference/awaitClassExpression_es5.js b/tests/baselines/reference/awaitClassExpression_es5(target=es5).js similarity index 100% rename from tests/baselines/reference/awaitClassExpression_es5.js rename to tests/baselines/reference/awaitClassExpression_es5(target=es5).js diff --git a/tests/baselines/reference/awaitClassExpression_es5(target=es5).symbols b/tests/baselines/reference/awaitClassExpression_es5(target=es5).symbols new file mode 100644 index 0000000000000..313741564dcb9 --- /dev/null +++ b/tests/baselines/reference/awaitClassExpression_es5(target=es5).symbols @@ -0,0 +1,20 @@ +//// [tests/cases/conformance/async/es5/awaitClassExpression_es5.ts] //// + +=== awaitClassExpression_es5.ts === +declare class C { } +>C : Symbol(C, Decl(awaitClassExpression_es5.ts, 0, 0)) + +declare var p: Promise; +>p : Symbol(p, Decl(awaitClassExpression_es5.ts, 1, 11)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>C : Symbol(C, Decl(awaitClassExpression_es5.ts, 0, 0)) + +async function func(): Promise { +>func : Symbol(func, Decl(awaitClassExpression_es5.ts, 1, 33)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) + + class D extends (await p) { +>D : Symbol(D, Decl(awaitClassExpression_es5.ts, 3, 38)) +>p : Symbol(p, Decl(awaitClassExpression_es5.ts, 1, 11)) + } +} diff --git a/tests/baselines/reference/awaitClassExpression_es5(target=es5).types b/tests/baselines/reference/awaitClassExpression_es5(target=es5).types new file mode 100644 index 0000000000000..9bbaf975c0dd3 --- /dev/null +++ b/tests/baselines/reference/awaitClassExpression_es5(target=es5).types @@ -0,0 +1,28 @@ +//// [tests/cases/conformance/async/es5/awaitClassExpression_es5.ts] //// + +=== awaitClassExpression_es5.ts === +declare class C { } +>C : C +> : ^ + +declare var p: Promise; +>p : Promise +> : ^^^^^^^^^^^^^^^^^ +>C : typeof C +> : ^^^^^^^^ + +async function func(): Promise { +>func : () => Promise +> : ^^^^^^ + + class D extends (await p) { +>D : D +> : ^ +>(await p) : C +> : ^ +>await p : typeof C +> : ^^^^^^^^ +>p : Promise +> : ^^^^^^^^^^^^^^^^^ + } +} diff --git a/tests/baselines/reference/awaitUnion_es5(target=es2015).js b/tests/baselines/reference/awaitUnion_es5(target=es2015).js new file mode 100644 index 0000000000000..6cd45129e480e --- /dev/null +++ b/tests/baselines/reference/awaitUnion_es5(target=es2015).js @@ -0,0 +1,26 @@ +//// [tests/cases/conformance/async/es5/awaitUnion_es5.ts] //// + +//// [awaitUnion_es5.ts] +declare let a: number | string; +declare let b: PromiseLike | PromiseLike; +declare let c: PromiseLike; +declare let d: number | PromiseLike; +declare let e: number | PromiseLike; +async function f() { + let await_a = await a; + let await_b = await b; + let await_c = await c; + let await_d = await d; + let await_e = await e; +} + +//// [awaitUnion_es5.js] +function f() { + return __awaiter(this, void 0, void 0, function* () { + let await_a = yield a; + let await_b = yield b; + let await_c = yield c; + let await_d = yield d; + let await_e = yield e; + }); +} diff --git a/tests/baselines/reference/awaitUnion_es5.symbols b/tests/baselines/reference/awaitUnion_es5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/awaitUnion_es5.symbols rename to tests/baselines/reference/awaitUnion_es5(target=es2015).symbols diff --git a/tests/baselines/reference/awaitUnion_es5.types b/tests/baselines/reference/awaitUnion_es5(target=es2015).types similarity index 100% rename from tests/baselines/reference/awaitUnion_es5.types rename to tests/baselines/reference/awaitUnion_es5(target=es2015).types diff --git a/tests/baselines/reference/awaitUnion_es5.js b/tests/baselines/reference/awaitUnion_es5(target=es5).js similarity index 100% rename from tests/baselines/reference/awaitUnion_es5.js rename to tests/baselines/reference/awaitUnion_es5(target=es5).js diff --git a/tests/baselines/reference/awaitUnion_es5(target=es5).symbols b/tests/baselines/reference/awaitUnion_es5(target=es5).symbols new file mode 100644 index 0000000000000..56817ad81c7f3 --- /dev/null +++ b/tests/baselines/reference/awaitUnion_es5(target=es5).symbols @@ -0,0 +1,46 @@ +//// [tests/cases/conformance/async/es5/awaitUnion_es5.ts] //// + +=== awaitUnion_es5.ts === +declare let a: number | string; +>a : Symbol(a, Decl(awaitUnion_es5.ts, 0, 11)) + +declare let b: PromiseLike | PromiseLike; +>b : Symbol(b, Decl(awaitUnion_es5.ts, 1, 11)) +>PromiseLike : Symbol(PromiseLike, Decl(lib.es5.d.ts, --, --)) +>PromiseLike : Symbol(PromiseLike, Decl(lib.es5.d.ts, --, --)) + +declare let c: PromiseLike; +>c : Symbol(c, Decl(awaitUnion_es5.ts, 2, 11)) +>PromiseLike : Symbol(PromiseLike, Decl(lib.es5.d.ts, --, --)) + +declare let d: number | PromiseLike; +>d : Symbol(d, Decl(awaitUnion_es5.ts, 3, 11)) +>PromiseLike : Symbol(PromiseLike, Decl(lib.es5.d.ts, --, --)) + +declare let e: number | PromiseLike; +>e : Symbol(e, Decl(awaitUnion_es5.ts, 4, 11)) +>PromiseLike : Symbol(PromiseLike, Decl(lib.es5.d.ts, --, --)) + +async function f() { +>f : Symbol(f, Decl(awaitUnion_es5.ts, 4, 53)) + + let await_a = await a; +>await_a : Symbol(await_a, Decl(awaitUnion_es5.ts, 6, 4)) +>a : Symbol(a, Decl(awaitUnion_es5.ts, 0, 11)) + + let await_b = await b; +>await_b : Symbol(await_b, Decl(awaitUnion_es5.ts, 7, 4)) +>b : Symbol(b, Decl(awaitUnion_es5.ts, 1, 11)) + + let await_c = await c; +>await_c : Symbol(await_c, Decl(awaitUnion_es5.ts, 8, 4)) +>c : Symbol(c, Decl(awaitUnion_es5.ts, 2, 11)) + + let await_d = await d; +>await_d : Symbol(await_d, Decl(awaitUnion_es5.ts, 9, 4)) +>d : Symbol(d, Decl(awaitUnion_es5.ts, 3, 11)) + + let await_e = await e; +>await_e : Symbol(await_e, Decl(awaitUnion_es5.ts, 10, 4)) +>e : Symbol(e, Decl(awaitUnion_es5.ts, 4, 11)) +} diff --git a/tests/baselines/reference/awaitUnion_es5(target=es5).types b/tests/baselines/reference/awaitUnion_es5(target=es5).types new file mode 100644 index 0000000000000..3a2e25736983f --- /dev/null +++ b/tests/baselines/reference/awaitUnion_es5(target=es5).types @@ -0,0 +1,67 @@ +//// [tests/cases/conformance/async/es5/awaitUnion_es5.ts] //// + +=== awaitUnion_es5.ts === +declare let a: number | string; +>a : string | number +> : ^^^^^^^^^^^^^^^ + +declare let b: PromiseLike | PromiseLike; +>b : PromiseLike | PromiseLike +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +declare let c: PromiseLike; +>c : PromiseLike +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +declare let d: number | PromiseLike; +>d : number | PromiseLike +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +declare let e: number | PromiseLike; +>e : number | PromiseLike +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +async function f() { +>f : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + let await_a = await a; +>await_a : string | number +> : ^^^^^^^^^^^^^^^ +>await a : string | number +> : ^^^^^^^^^^^^^^^ +>a : string | number +> : ^^^^^^^^^^^^^^^ + + let await_b = await b; +>await_b : string | number +> : ^^^^^^^^^^^^^^^ +>await b : string | number +> : ^^^^^^^^^^^^^^^ +>b : PromiseLike | PromiseLike +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + let await_c = await c; +>await_c : string | number +> : ^^^^^^^^^^^^^^^ +>await c : string | number +> : ^^^^^^^^^^^^^^^ +>c : PromiseLike +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + let await_d = await d; +>await_d : string | number +> : ^^^^^^^^^^^^^^^ +>await d : string | number +> : ^^^^^^^^^^^^^^^ +>d : number | PromiseLike +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + let await_e = await e; +>await_e : string | number +> : ^^^^^^^^^^^^^^^ +>await e : string | number +> : ^^^^^^^^^^^^^^^ +>e : number | PromiseLike +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +} diff --git a/tests/baselines/reference/bigintAmbientMinimal.errors.txt b/tests/baselines/reference/bigintAmbientMinimal(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/bigintAmbientMinimal.errors.txt rename to tests/baselines/reference/bigintAmbientMinimal(target=es2015).errors.txt diff --git a/tests/baselines/reference/bigintAmbientMinimal(target=es2015).js b/tests/baselines/reference/bigintAmbientMinimal(target=es2015).js new file mode 100644 index 0000000000000..a6d12b6f3c193 --- /dev/null +++ b/tests/baselines/reference/bigintAmbientMinimal(target=es2015).js @@ -0,0 +1,18 @@ +//// [tests/cases/compiler/bigintAmbientMinimal.ts] //// + +//// [ambient.d.ts] +declare const fromDts = 789n; +declare namespace Lib { + const value = 999n; +} + +//// [main.ts] +// Minimal repro from issue +declare const n = 123n; + +// Non-ambient for comparison +const regular = 456n; + +//// [main.js] +// Non-ambient for comparison +const regular = 456n; diff --git a/tests/baselines/reference/bigintAmbientMinimal.symbols b/tests/baselines/reference/bigintAmbientMinimal(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/bigintAmbientMinimal.symbols rename to tests/baselines/reference/bigintAmbientMinimal(target=es2015).symbols diff --git a/tests/baselines/reference/bigintAmbientMinimal.types b/tests/baselines/reference/bigintAmbientMinimal(target=es2015).types similarity index 100% rename from tests/baselines/reference/bigintAmbientMinimal.types rename to tests/baselines/reference/bigintAmbientMinimal(target=es2015).types diff --git a/tests/baselines/reference/bigintAmbientMinimal(target=es5).errors.txt b/tests/baselines/reference/bigintAmbientMinimal(target=es5).errors.txt new file mode 100644 index 0000000000000..e95b511da01dd --- /dev/null +++ b/tests/baselines/reference/bigintAmbientMinimal(target=es5).errors.txt @@ -0,0 +1,17 @@ +/main.ts(5,17): error TS2737: BigInt literals are not available when targeting lower than ES2020. + + +==== /ambient.d.ts (0 errors) ==== + declare const fromDts = 789n; + declare namespace Lib { + const value = 999n; + } + +==== /main.ts (1 errors) ==== + // Minimal repro from issue + declare const n = 123n; + + // Non-ambient for comparison + const regular = 456n; + ~~~~ +!!! error TS2737: BigInt literals are not available when targeting lower than ES2020. \ No newline at end of file diff --git a/tests/baselines/reference/bigintAmbientMinimal.js b/tests/baselines/reference/bigintAmbientMinimal(target=es5).js similarity index 100% rename from tests/baselines/reference/bigintAmbientMinimal.js rename to tests/baselines/reference/bigintAmbientMinimal(target=es5).js diff --git a/tests/baselines/reference/bigintAmbientMinimal(target=es5).symbols b/tests/baselines/reference/bigintAmbientMinimal(target=es5).symbols new file mode 100644 index 0000000000000..d438ba1235958 --- /dev/null +++ b/tests/baselines/reference/bigintAmbientMinimal(target=es5).symbols @@ -0,0 +1,22 @@ +//// [tests/cases/compiler/bigintAmbientMinimal.ts] //// + +=== /ambient.d.ts === +declare const fromDts = 789n; +>fromDts : Symbol(fromDts, Decl(ambient.d.ts, 0, 13)) + +declare namespace Lib { +>Lib : Symbol(Lib, Decl(ambient.d.ts, 0, 29)) + + const value = 999n; +>value : Symbol(value, Decl(ambient.d.ts, 2, 9)) +} + +=== /main.ts === +// Minimal repro from issue +declare const n = 123n; +>n : Symbol(n, Decl(main.ts, 1, 13)) + +// Non-ambient for comparison +const regular = 456n; +>regular : Symbol(regular, Decl(main.ts, 4, 5)) + diff --git a/tests/baselines/reference/bigintAmbientMinimal(target=es5).types b/tests/baselines/reference/bigintAmbientMinimal(target=es5).types new file mode 100644 index 0000000000000..086ac1d5676be --- /dev/null +++ b/tests/baselines/reference/bigintAmbientMinimal(target=es5).types @@ -0,0 +1,35 @@ +//// [tests/cases/compiler/bigintAmbientMinimal.ts] //// + +=== /ambient.d.ts === +declare const fromDts = 789n; +>fromDts : 789n +> : ^^^^ +>789n : 789n +> : ^^^^ + +declare namespace Lib { +>Lib : typeof Lib +> : ^^^^^^^^^^ + + const value = 999n; +>value : 999n +> : ^^^^ +>999n : 999n +> : ^^^^ +} + +=== /main.ts === +// Minimal repro from issue +declare const n = 123n; +>n : 123n +> : ^^^^ +>123n : 123n +> : ^^^^ + +// Non-ambient for comparison +const regular = 456n; +>regular : 456n +> : ^^^^ +>456n : 456n +> : ^^^^ + diff --git a/tests/baselines/reference/bigintWithoutLib.errors.txt b/tests/baselines/reference/bigintWithoutLib(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/bigintWithoutLib.errors.txt rename to tests/baselines/reference/bigintWithoutLib(target=es2015).errors.txt diff --git a/tests/baselines/reference/bigintWithoutLib(target=es2015).js b/tests/baselines/reference/bigintWithoutLib(target=es2015).js new file mode 100644 index 0000000000000..26275b255769f --- /dev/null +++ b/tests/baselines/reference/bigintWithoutLib(target=es2015).js @@ -0,0 +1,113 @@ +//// [tests/cases/compiler/bigintWithoutLib.ts] //// + +//// [bigintWithoutLib.ts] +// Every line should error because these builtins are not declared + +// Test BigInt functions +let bigintVal: bigint = BigInt(123); +bigintVal = BigInt("456"); +new BigInt(123); +bigintVal = BigInt.asIntN(8, 0xFFFFn); +bigintVal = BigInt.asUintN(8, 0xFFFFn); +bigintVal = bigintVal.valueOf(); // should error - bigintVal inferred as {} +let stringVal: string = bigintVal.toString(); // should not error - bigintVal inferred as {} +stringVal = bigintVal.toString(2); // should error - bigintVal inferred as {} +stringVal = bigintVal.toLocaleString(); // should not error - bigintVal inferred as {} +stringVal = bigintVal.toLocaleString('de-DE'); // should not error - bigintVal inferred as {} +stringVal = bigintVal.toLocaleString('de-DE', { style: 'currency' }); // should not error - bigintVal inferred as {} +stringVal = bigintVal.toLocaleString('de-DE', { style: 'currency', currency: 'EUR' }) // should not error - bigintVal inferred as {} + +// Test BigInt64Array +let bigIntArray: BigInt64Array = new BigInt64Array(); +bigIntArray = new BigInt64Array(10); +bigIntArray = new BigInt64Array([1n, 2n, 3n]); +bigIntArray = new BigInt64Array([1, 2, 3]); +bigIntArray = new BigInt64Array(new ArrayBuffer(80)); +bigIntArray = new BigInt64Array(new ArrayBuffer(80), 8); +bigIntArray = new BigInt64Array(new ArrayBuffer(80), 8, 3); +let len: number = bigIntArray.length; +bigIntArray.length = 10; +let arrayBufferLike: ArrayBufferView = bigIntArray; + +// Test BigUint64Array +let bigUintArray: BigUint64Array = new BigUint64Array(); +bigUintArray = new BigUint64Array(10); +bigUintArray = new BigUint64Array([1n, 2n, 3n]); +bigUintArray = new BigUint64Array([1, 2, 3]); +bigUintArray = new BigUint64Array(new ArrayBuffer(80)); +bigUintArray = new BigUint64Array(new ArrayBuffer(80), 8); +bigUintArray = new BigUint64Array(new ArrayBuffer(80), 8, 3); +len = bigIntArray.length; +bigIntArray.length = 10; +arrayBufferLike = bigIntArray; + +// Test added DataView methods +const dataView = new DataView(new ArrayBuffer(80)); +dataView.setBigInt64(1, -1n); +dataView.setBigInt64(1, -1n, true); +dataView.setBigInt64(1, -1); +dataView.setBigUint64(2, 123n); +dataView.setBigUint64(2, 123n, true); +dataView.setBigUint64(2, 123); +bigintVal = dataView.getBigInt64(1); +bigintVal = dataView.getBigInt64(1, true); +bigintVal = dataView.getBigUint64(2); +bigintVal = dataView.getBigUint64(2, true); + +// Test Intl methods with new parameter type +new Intl.NumberFormat("fr").format(3000n); +new Intl.NumberFormat("fr").format(bigintVal); + + +//// [bigintWithoutLib.js] +// Every line should error because these builtins are not declared +// Test BigInt functions +let bigintVal = BigInt(123); +bigintVal = BigInt("456"); +new BigInt(123); +bigintVal = BigInt.asIntN(8, 0xffffn); +bigintVal = BigInt.asUintN(8, 0xffffn); +bigintVal = bigintVal.valueOf(); // should error - bigintVal inferred as {} +let stringVal = bigintVal.toString(); // should not error - bigintVal inferred as {} +stringVal = bigintVal.toString(2); // should error - bigintVal inferred as {} +stringVal = bigintVal.toLocaleString(); // should not error - bigintVal inferred as {} +stringVal = bigintVal.toLocaleString('de-DE'); // should not error - bigintVal inferred as {} +stringVal = bigintVal.toLocaleString('de-DE', { style: 'currency' }); // should not error - bigintVal inferred as {} +stringVal = bigintVal.toLocaleString('de-DE', { style: 'currency', currency: 'EUR' }); // should not error - bigintVal inferred as {} +// Test BigInt64Array +let bigIntArray = new BigInt64Array(); +bigIntArray = new BigInt64Array(10); +bigIntArray = new BigInt64Array([1n, 2n, 3n]); +bigIntArray = new BigInt64Array([1, 2, 3]); +bigIntArray = new BigInt64Array(new ArrayBuffer(80)); +bigIntArray = new BigInt64Array(new ArrayBuffer(80), 8); +bigIntArray = new BigInt64Array(new ArrayBuffer(80), 8, 3); +let len = bigIntArray.length; +bigIntArray.length = 10; +let arrayBufferLike = bigIntArray; +// Test BigUint64Array +let bigUintArray = new BigUint64Array(); +bigUintArray = new BigUint64Array(10); +bigUintArray = new BigUint64Array([1n, 2n, 3n]); +bigUintArray = new BigUint64Array([1, 2, 3]); +bigUintArray = new BigUint64Array(new ArrayBuffer(80)); +bigUintArray = new BigUint64Array(new ArrayBuffer(80), 8); +bigUintArray = new BigUint64Array(new ArrayBuffer(80), 8, 3); +len = bigIntArray.length; +bigIntArray.length = 10; +arrayBufferLike = bigIntArray; +// Test added DataView methods +const dataView = new DataView(new ArrayBuffer(80)); +dataView.setBigInt64(1, -1n); +dataView.setBigInt64(1, -1n, true); +dataView.setBigInt64(1, -1); +dataView.setBigUint64(2, 123n); +dataView.setBigUint64(2, 123n, true); +dataView.setBigUint64(2, 123); +bigintVal = dataView.getBigInt64(1); +bigintVal = dataView.getBigInt64(1, true); +bigintVal = dataView.getBigUint64(2); +bigintVal = dataView.getBigUint64(2, true); +// Test Intl methods with new parameter type +new Intl.NumberFormat("fr").format(3000n); +new Intl.NumberFormat("fr").format(bigintVal); diff --git a/tests/baselines/reference/bigintWithoutLib.symbols b/tests/baselines/reference/bigintWithoutLib(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/bigintWithoutLib.symbols rename to tests/baselines/reference/bigintWithoutLib(target=es2015).symbols diff --git a/tests/baselines/reference/bigintWithoutLib.types b/tests/baselines/reference/bigintWithoutLib(target=es2015).types similarity index 100% rename from tests/baselines/reference/bigintWithoutLib.types rename to tests/baselines/reference/bigintWithoutLib(target=es2015).types diff --git a/tests/baselines/reference/bigintWithoutLib(target=es5).errors.txt b/tests/baselines/reference/bigintWithoutLib(target=es5).errors.txt new file mode 100644 index 0000000000000..cb1d1688127e9 --- /dev/null +++ b/tests/baselines/reference/bigintWithoutLib(target=es5).errors.txt @@ -0,0 +1,213 @@ +bigintWithoutLib.ts(4,25): error TS2583: Cannot find name 'BigInt'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2020' or later. +bigintWithoutLib.ts(5,13): error TS2583: Cannot find name 'BigInt'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2020' or later. +bigintWithoutLib.ts(6,5): error TS2583: Cannot find name 'BigInt'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2020' or later. +bigintWithoutLib.ts(7,13): error TS2583: Cannot find name 'BigInt'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2020' or later. +bigintWithoutLib.ts(7,30): error TS2737: BigInt literals are not available when targeting lower than ES2020. +bigintWithoutLib.ts(8,13): error TS2583: Cannot find name 'BigInt'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2020' or later. +bigintWithoutLib.ts(8,31): error TS2737: BigInt literals are not available when targeting lower than ES2020. +bigintWithoutLib.ts(9,1): error TS2322: Type 'Object' is not assignable to type 'bigint'. +bigintWithoutLib.ts(11,32): error TS2554: Expected 0 arguments, but got 1. +bigintWithoutLib.ts(13,38): error TS2554: Expected 0 arguments, but got 1. +bigintWithoutLib.ts(14,38): error TS2554: Expected 0 arguments, but got 2. +bigintWithoutLib.ts(15,38): error TS2554: Expected 0 arguments, but got 2. +bigintWithoutLib.ts(18,18): error TS2583: Cannot find name 'BigInt64Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2020' or later. +bigintWithoutLib.ts(18,38): error TS2583: Cannot find name 'BigInt64Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2020' or later. +bigintWithoutLib.ts(19,19): error TS2583: Cannot find name 'BigInt64Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2020' or later. +bigintWithoutLib.ts(20,19): error TS2583: Cannot find name 'BigInt64Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2020' or later. +bigintWithoutLib.ts(20,34): error TS2737: BigInt literals are not available when targeting lower than ES2020. +bigintWithoutLib.ts(20,38): error TS2737: BigInt literals are not available when targeting lower than ES2020. +bigintWithoutLib.ts(20,42): error TS2737: BigInt literals are not available when targeting lower than ES2020. +bigintWithoutLib.ts(21,19): error TS2583: Cannot find name 'BigInt64Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2020' or later. +bigintWithoutLib.ts(22,19): error TS2583: Cannot find name 'BigInt64Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2020' or later. +bigintWithoutLib.ts(23,19): error TS2583: Cannot find name 'BigInt64Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2020' or later. +bigintWithoutLib.ts(24,19): error TS2583: Cannot find name 'BigInt64Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2020' or later. +bigintWithoutLib.ts(30,19): error TS2583: Cannot find name 'BigUint64Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2020' or later. +bigintWithoutLib.ts(30,40): error TS2583: Cannot find name 'BigUint64Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2020' or later. +bigintWithoutLib.ts(31,20): error TS2583: Cannot find name 'BigUint64Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2020' or later. +bigintWithoutLib.ts(32,20): error TS2583: Cannot find name 'BigUint64Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2020' or later. +bigintWithoutLib.ts(32,36): error TS2737: BigInt literals are not available when targeting lower than ES2020. +bigintWithoutLib.ts(32,40): error TS2737: BigInt literals are not available when targeting lower than ES2020. +bigintWithoutLib.ts(32,44): error TS2737: BigInt literals are not available when targeting lower than ES2020. +bigintWithoutLib.ts(33,20): error TS2583: Cannot find name 'BigUint64Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2020' or later. +bigintWithoutLib.ts(34,20): error TS2583: Cannot find name 'BigUint64Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2020' or later. +bigintWithoutLib.ts(35,20): error TS2583: Cannot find name 'BigUint64Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2020' or later. +bigintWithoutLib.ts(36,20): error TS2583: Cannot find name 'BigUint64Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2020' or later. +bigintWithoutLib.ts(43,10): error TS2550: Property 'setBigInt64' does not exist on type 'DataView'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2020' or later. +bigintWithoutLib.ts(43,26): error TS2737: BigInt literals are not available when targeting lower than ES2020. +bigintWithoutLib.ts(44,10): error TS2550: Property 'setBigInt64' does not exist on type 'DataView'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2020' or later. +bigintWithoutLib.ts(44,26): error TS2737: BigInt literals are not available when targeting lower than ES2020. +bigintWithoutLib.ts(45,10): error TS2550: Property 'setBigInt64' does not exist on type 'DataView'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2020' or later. +bigintWithoutLib.ts(46,10): error TS2550: Property 'setBigUint64' does not exist on type 'DataView'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2020' or later. +bigintWithoutLib.ts(46,26): error TS2737: BigInt literals are not available when targeting lower than ES2020. +bigintWithoutLib.ts(47,10): error TS2550: Property 'setBigUint64' does not exist on type 'DataView'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2020' or later. +bigintWithoutLib.ts(47,26): error TS2737: BigInt literals are not available when targeting lower than ES2020. +bigintWithoutLib.ts(48,10): error TS2550: Property 'setBigUint64' does not exist on type 'DataView'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2020' or later. +bigintWithoutLib.ts(49,22): error TS2550: Property 'getBigInt64' does not exist on type 'DataView'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2020' or later. +bigintWithoutLib.ts(50,22): error TS2550: Property 'getBigInt64' does not exist on type 'DataView'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2020' or later. +bigintWithoutLib.ts(51,22): error TS2550: Property 'getBigUint64' does not exist on type 'DataView'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2020' or later. +bigintWithoutLib.ts(52,22): error TS2550: Property 'getBigUint64' does not exist on type 'DataView'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2020' or later. +bigintWithoutLib.ts(55,36): error TS2345: Argument of type 'bigint' is not assignable to parameter of type 'number'. +bigintWithoutLib.ts(55,36): error TS2737: BigInt literals are not available when targeting lower than ES2020. +bigintWithoutLib.ts(56,36): error TS2345: Argument of type 'bigint' is not assignable to parameter of type 'number'. + + +==== bigintWithoutLib.ts (51 errors) ==== + // Every line should error because these builtins are not declared + + // Test BigInt functions + let bigintVal: bigint = BigInt(123); + ~~~~~~ +!!! error TS2583: Cannot find name 'BigInt'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2020' or later. + bigintVal = BigInt("456"); + ~~~~~~ +!!! error TS2583: Cannot find name 'BigInt'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2020' or later. + new BigInt(123); + ~~~~~~ +!!! error TS2583: Cannot find name 'BigInt'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2020' or later. + bigintVal = BigInt.asIntN(8, 0xFFFFn); + ~~~~~~ +!!! error TS2583: Cannot find name 'BigInt'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2020' or later. + ~~~~~~~ +!!! error TS2737: BigInt literals are not available when targeting lower than ES2020. + bigintVal = BigInt.asUintN(8, 0xFFFFn); + ~~~~~~ +!!! error TS2583: Cannot find name 'BigInt'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2020' or later. + ~~~~~~~ +!!! error TS2737: BigInt literals are not available when targeting lower than ES2020. + bigintVal = bigintVal.valueOf(); // should error - bigintVal inferred as {} + ~~~~~~~~~ +!!! error TS2322: Type 'Object' is not assignable to type 'bigint'. + let stringVal: string = bigintVal.toString(); // should not error - bigintVal inferred as {} + stringVal = bigintVal.toString(2); // should error - bigintVal inferred as {} + ~ +!!! error TS2554: Expected 0 arguments, but got 1. + stringVal = bigintVal.toLocaleString(); // should not error - bigintVal inferred as {} + stringVal = bigintVal.toLocaleString('de-DE'); // should not error - bigintVal inferred as {} + ~~~~~~~ +!!! error TS2554: Expected 0 arguments, but got 1. + stringVal = bigintVal.toLocaleString('de-DE', { style: 'currency' }); // should not error - bigintVal inferred as {} + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2554: Expected 0 arguments, but got 2. + stringVal = bigintVal.toLocaleString('de-DE', { style: 'currency', currency: 'EUR' }) // should not error - bigintVal inferred as {} + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2554: Expected 0 arguments, but got 2. + + // Test BigInt64Array + let bigIntArray: BigInt64Array = new BigInt64Array(); + ~~~~~~~~~~~~~ +!!! error TS2583: Cannot find name 'BigInt64Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2020' or later. + ~~~~~~~~~~~~~ +!!! error TS2583: Cannot find name 'BigInt64Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2020' or later. + bigIntArray = new BigInt64Array(10); + ~~~~~~~~~~~~~ +!!! error TS2583: Cannot find name 'BigInt64Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2020' or later. + bigIntArray = new BigInt64Array([1n, 2n, 3n]); + ~~~~~~~~~~~~~ +!!! error TS2583: Cannot find name 'BigInt64Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2020' or later. + ~~ +!!! error TS2737: BigInt literals are not available when targeting lower than ES2020. + ~~ +!!! error TS2737: BigInt literals are not available when targeting lower than ES2020. + ~~ +!!! error TS2737: BigInt literals are not available when targeting lower than ES2020. + bigIntArray = new BigInt64Array([1, 2, 3]); + ~~~~~~~~~~~~~ +!!! error TS2583: Cannot find name 'BigInt64Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2020' or later. + bigIntArray = new BigInt64Array(new ArrayBuffer(80)); + ~~~~~~~~~~~~~ +!!! error TS2583: Cannot find name 'BigInt64Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2020' or later. + bigIntArray = new BigInt64Array(new ArrayBuffer(80), 8); + ~~~~~~~~~~~~~ +!!! error TS2583: Cannot find name 'BigInt64Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2020' or later. + bigIntArray = new BigInt64Array(new ArrayBuffer(80), 8, 3); + ~~~~~~~~~~~~~ +!!! error TS2583: Cannot find name 'BigInt64Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2020' or later. + let len: number = bigIntArray.length; + bigIntArray.length = 10; + let arrayBufferLike: ArrayBufferView = bigIntArray; + + // Test BigUint64Array + let bigUintArray: BigUint64Array = new BigUint64Array(); + ~~~~~~~~~~~~~~ +!!! error TS2583: Cannot find name 'BigUint64Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2020' or later. + ~~~~~~~~~~~~~~ +!!! error TS2583: Cannot find name 'BigUint64Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2020' or later. + bigUintArray = new BigUint64Array(10); + ~~~~~~~~~~~~~~ +!!! error TS2583: Cannot find name 'BigUint64Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2020' or later. + bigUintArray = new BigUint64Array([1n, 2n, 3n]); + ~~~~~~~~~~~~~~ +!!! error TS2583: Cannot find name 'BigUint64Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2020' or later. + ~~ +!!! error TS2737: BigInt literals are not available when targeting lower than ES2020. + ~~ +!!! error TS2737: BigInt literals are not available when targeting lower than ES2020. + ~~ +!!! error TS2737: BigInt literals are not available when targeting lower than ES2020. + bigUintArray = new BigUint64Array([1, 2, 3]); + ~~~~~~~~~~~~~~ +!!! error TS2583: Cannot find name 'BigUint64Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2020' or later. + bigUintArray = new BigUint64Array(new ArrayBuffer(80)); + ~~~~~~~~~~~~~~ +!!! error TS2583: Cannot find name 'BigUint64Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2020' or later. + bigUintArray = new BigUint64Array(new ArrayBuffer(80), 8); + ~~~~~~~~~~~~~~ +!!! error TS2583: Cannot find name 'BigUint64Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2020' or later. + bigUintArray = new BigUint64Array(new ArrayBuffer(80), 8, 3); + ~~~~~~~~~~~~~~ +!!! error TS2583: Cannot find name 'BigUint64Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2020' or later. + len = bigIntArray.length; + bigIntArray.length = 10; + arrayBufferLike = bigIntArray; + + // Test added DataView methods + const dataView = new DataView(new ArrayBuffer(80)); + dataView.setBigInt64(1, -1n); + ~~~~~~~~~~~ +!!! error TS2550: Property 'setBigInt64' does not exist on type 'DataView'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2020' or later. + ~~ +!!! error TS2737: BigInt literals are not available when targeting lower than ES2020. + dataView.setBigInt64(1, -1n, true); + ~~~~~~~~~~~ +!!! error TS2550: Property 'setBigInt64' does not exist on type 'DataView'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2020' or later. + ~~ +!!! error TS2737: BigInt literals are not available when targeting lower than ES2020. + dataView.setBigInt64(1, -1); + ~~~~~~~~~~~ +!!! error TS2550: Property 'setBigInt64' does not exist on type 'DataView'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2020' or later. + dataView.setBigUint64(2, 123n); + ~~~~~~~~~~~~ +!!! error TS2550: Property 'setBigUint64' does not exist on type 'DataView'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2020' or later. + ~~~~ +!!! error TS2737: BigInt literals are not available when targeting lower than ES2020. + dataView.setBigUint64(2, 123n, true); + ~~~~~~~~~~~~ +!!! error TS2550: Property 'setBigUint64' does not exist on type 'DataView'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2020' or later. + ~~~~ +!!! error TS2737: BigInt literals are not available when targeting lower than ES2020. + dataView.setBigUint64(2, 123); + ~~~~~~~~~~~~ +!!! error TS2550: Property 'setBigUint64' does not exist on type 'DataView'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2020' or later. + bigintVal = dataView.getBigInt64(1); + ~~~~~~~~~~~ +!!! error TS2550: Property 'getBigInt64' does not exist on type 'DataView'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2020' or later. + bigintVal = dataView.getBigInt64(1, true); + ~~~~~~~~~~~ +!!! error TS2550: Property 'getBigInt64' does not exist on type 'DataView'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2020' or later. + bigintVal = dataView.getBigUint64(2); + ~~~~~~~~~~~~ +!!! error TS2550: Property 'getBigUint64' does not exist on type 'DataView'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2020' or later. + bigintVal = dataView.getBigUint64(2, true); + ~~~~~~~~~~~~ +!!! error TS2550: Property 'getBigUint64' does not exist on type 'DataView'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2020' or later. + + // Test Intl methods with new parameter type + new Intl.NumberFormat("fr").format(3000n); + ~~~~~ +!!! error TS2345: Argument of type 'bigint' is not assignable to parameter of type 'number'. + ~~~~~ +!!! error TS2737: BigInt literals are not available when targeting lower than ES2020. + new Intl.NumberFormat("fr").format(bigintVal); + ~~~~~~~~~ +!!! error TS2345: Argument of type 'bigint' is not assignable to parameter of type 'number'. + \ No newline at end of file diff --git a/tests/baselines/reference/bigintWithoutLib.js b/tests/baselines/reference/bigintWithoutLib(target=es5).js similarity index 100% rename from tests/baselines/reference/bigintWithoutLib.js rename to tests/baselines/reference/bigintWithoutLib(target=es5).js diff --git a/tests/baselines/reference/bigintWithoutLib(target=es5).symbols b/tests/baselines/reference/bigintWithoutLib(target=es5).symbols new file mode 100644 index 0000000000000..2eb233dc8328a --- /dev/null +++ b/tests/baselines/reference/bigintWithoutLib(target=es5).symbols @@ -0,0 +1,195 @@ +//// [tests/cases/compiler/bigintWithoutLib.ts] //// + +=== bigintWithoutLib.ts === +// Every line should error because these builtins are not declared + +// Test BigInt functions +let bigintVal: bigint = BigInt(123); +>bigintVal : Symbol(bigintVal, Decl(bigintWithoutLib.ts, 3, 3)) + +bigintVal = BigInt("456"); +>bigintVal : Symbol(bigintVal, Decl(bigintWithoutLib.ts, 3, 3)) + +new BigInt(123); +bigintVal = BigInt.asIntN(8, 0xFFFFn); +>bigintVal : Symbol(bigintVal, Decl(bigintWithoutLib.ts, 3, 3)) + +bigintVal = BigInt.asUintN(8, 0xFFFFn); +>bigintVal : Symbol(bigintVal, Decl(bigintWithoutLib.ts, 3, 3)) + +bigintVal = bigintVal.valueOf(); // should error - bigintVal inferred as {} +>bigintVal : Symbol(bigintVal, Decl(bigintWithoutLib.ts, 3, 3)) +>bigintVal.valueOf : Symbol(Object.valueOf, Decl(lib.es5.d.ts, --, --)) +>bigintVal : Symbol(bigintVal, Decl(bigintWithoutLib.ts, 3, 3)) +>valueOf : Symbol(Object.valueOf, Decl(lib.es5.d.ts, --, --)) + +let stringVal: string = bigintVal.toString(); // should not error - bigintVal inferred as {} +>stringVal : Symbol(stringVal, Decl(bigintWithoutLib.ts, 9, 3)) +>bigintVal.toString : Symbol(Object.toString, Decl(lib.es5.d.ts, --, --)) +>bigintVal : Symbol(bigintVal, Decl(bigintWithoutLib.ts, 3, 3)) +>toString : Symbol(Object.toString, Decl(lib.es5.d.ts, --, --)) + +stringVal = bigintVal.toString(2); // should error - bigintVal inferred as {} +>stringVal : Symbol(stringVal, Decl(bigintWithoutLib.ts, 9, 3)) +>bigintVal.toString : Symbol(Object.toString, Decl(lib.es5.d.ts, --, --)) +>bigintVal : Symbol(bigintVal, Decl(bigintWithoutLib.ts, 3, 3)) +>toString : Symbol(Object.toString, Decl(lib.es5.d.ts, --, --)) + +stringVal = bigintVal.toLocaleString(); // should not error - bigintVal inferred as {} +>stringVal : Symbol(stringVal, Decl(bigintWithoutLib.ts, 9, 3)) +>bigintVal.toLocaleString : Symbol(Object.toLocaleString, Decl(lib.es5.d.ts, --, --)) +>bigintVal : Symbol(bigintVal, Decl(bigintWithoutLib.ts, 3, 3)) +>toLocaleString : Symbol(Object.toLocaleString, Decl(lib.es5.d.ts, --, --)) + +stringVal = bigintVal.toLocaleString('de-DE'); // should not error - bigintVal inferred as {} +>stringVal : Symbol(stringVal, Decl(bigintWithoutLib.ts, 9, 3)) +>bigintVal.toLocaleString : Symbol(Object.toLocaleString, Decl(lib.es5.d.ts, --, --)) +>bigintVal : Symbol(bigintVal, Decl(bigintWithoutLib.ts, 3, 3)) +>toLocaleString : Symbol(Object.toLocaleString, Decl(lib.es5.d.ts, --, --)) + +stringVal = bigintVal.toLocaleString('de-DE', { style: 'currency' }); // should not error - bigintVal inferred as {} +>stringVal : Symbol(stringVal, Decl(bigintWithoutLib.ts, 9, 3)) +>bigintVal.toLocaleString : Symbol(Object.toLocaleString, Decl(lib.es5.d.ts, --, --)) +>bigintVal : Symbol(bigintVal, Decl(bigintWithoutLib.ts, 3, 3)) +>toLocaleString : Symbol(Object.toLocaleString, Decl(lib.es5.d.ts, --, --)) +>style : Symbol(style, Decl(bigintWithoutLib.ts, 13, 47)) + +stringVal = bigintVal.toLocaleString('de-DE', { style: 'currency', currency: 'EUR' }) // should not error - bigintVal inferred as {} +>stringVal : Symbol(stringVal, Decl(bigintWithoutLib.ts, 9, 3)) +>bigintVal.toLocaleString : Symbol(Object.toLocaleString, Decl(lib.es5.d.ts, --, --)) +>bigintVal : Symbol(bigintVal, Decl(bigintWithoutLib.ts, 3, 3)) +>toLocaleString : Symbol(Object.toLocaleString, Decl(lib.es5.d.ts, --, --)) +>style : Symbol(style, Decl(bigintWithoutLib.ts, 14, 47)) +>currency : Symbol(currency, Decl(bigintWithoutLib.ts, 14, 66)) + +// Test BigInt64Array +let bigIntArray: BigInt64Array = new BigInt64Array(); +>bigIntArray : Symbol(bigIntArray, Decl(bigintWithoutLib.ts, 17, 3)) +>BigInt64Array : Symbol(BigInt64Array) + +bigIntArray = new BigInt64Array(10); +>bigIntArray : Symbol(bigIntArray, Decl(bigintWithoutLib.ts, 17, 3)) + +bigIntArray = new BigInt64Array([1n, 2n, 3n]); +>bigIntArray : Symbol(bigIntArray, Decl(bigintWithoutLib.ts, 17, 3)) + +bigIntArray = new BigInt64Array([1, 2, 3]); +>bigIntArray : Symbol(bigIntArray, Decl(bigintWithoutLib.ts, 17, 3)) + +bigIntArray = new BigInt64Array(new ArrayBuffer(80)); +>bigIntArray : Symbol(bigIntArray, Decl(bigintWithoutLib.ts, 17, 3)) +>ArrayBuffer : Symbol(ArrayBuffer, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + +bigIntArray = new BigInt64Array(new ArrayBuffer(80), 8); +>bigIntArray : Symbol(bigIntArray, Decl(bigintWithoutLib.ts, 17, 3)) +>ArrayBuffer : Symbol(ArrayBuffer, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + +bigIntArray = new BigInt64Array(new ArrayBuffer(80), 8, 3); +>bigIntArray : Symbol(bigIntArray, Decl(bigintWithoutLib.ts, 17, 3)) +>ArrayBuffer : Symbol(ArrayBuffer, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + +let len: number = bigIntArray.length; +>len : Symbol(len, Decl(bigintWithoutLib.ts, 24, 3)) +>bigIntArray : Symbol(bigIntArray, Decl(bigintWithoutLib.ts, 17, 3)) + +bigIntArray.length = 10; +>bigIntArray : Symbol(bigIntArray, Decl(bigintWithoutLib.ts, 17, 3)) + +let arrayBufferLike: ArrayBufferView = bigIntArray; +>arrayBufferLike : Symbol(arrayBufferLike, Decl(bigintWithoutLib.ts, 26, 3)) +>ArrayBufferView : Symbol(ArrayBufferView, Decl(lib.es5.d.ts, --, --)) +>bigIntArray : Symbol(bigIntArray, Decl(bigintWithoutLib.ts, 17, 3)) + +// Test BigUint64Array +let bigUintArray: BigUint64Array = new BigUint64Array(); +>bigUintArray : Symbol(bigUintArray, Decl(bigintWithoutLib.ts, 29, 3)) +>BigUint64Array : Symbol(BigUint64Array) + +bigUintArray = new BigUint64Array(10); +>bigUintArray : Symbol(bigUintArray, Decl(bigintWithoutLib.ts, 29, 3)) + +bigUintArray = new BigUint64Array([1n, 2n, 3n]); +>bigUintArray : Symbol(bigUintArray, Decl(bigintWithoutLib.ts, 29, 3)) + +bigUintArray = new BigUint64Array([1, 2, 3]); +>bigUintArray : Symbol(bigUintArray, Decl(bigintWithoutLib.ts, 29, 3)) + +bigUintArray = new BigUint64Array(new ArrayBuffer(80)); +>bigUintArray : Symbol(bigUintArray, Decl(bigintWithoutLib.ts, 29, 3)) +>ArrayBuffer : Symbol(ArrayBuffer, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + +bigUintArray = new BigUint64Array(new ArrayBuffer(80), 8); +>bigUintArray : Symbol(bigUintArray, Decl(bigintWithoutLib.ts, 29, 3)) +>ArrayBuffer : Symbol(ArrayBuffer, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + +bigUintArray = new BigUint64Array(new ArrayBuffer(80), 8, 3); +>bigUintArray : Symbol(bigUintArray, Decl(bigintWithoutLib.ts, 29, 3)) +>ArrayBuffer : Symbol(ArrayBuffer, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + +len = bigIntArray.length; +>len : Symbol(len, Decl(bigintWithoutLib.ts, 24, 3)) +>bigIntArray : Symbol(bigIntArray, Decl(bigintWithoutLib.ts, 17, 3)) + +bigIntArray.length = 10; +>bigIntArray : Symbol(bigIntArray, Decl(bigintWithoutLib.ts, 17, 3)) + +arrayBufferLike = bigIntArray; +>arrayBufferLike : Symbol(arrayBufferLike, Decl(bigintWithoutLib.ts, 26, 3)) +>bigIntArray : Symbol(bigIntArray, Decl(bigintWithoutLib.ts, 17, 3)) + +// Test added DataView methods +const dataView = new DataView(new ArrayBuffer(80)); +>dataView : Symbol(dataView, Decl(bigintWithoutLib.ts, 41, 5)) +>DataView : Symbol(DataView, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>ArrayBuffer : Symbol(ArrayBuffer, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + +dataView.setBigInt64(1, -1n); +>dataView : Symbol(dataView, Decl(bigintWithoutLib.ts, 41, 5)) + +dataView.setBigInt64(1, -1n, true); +>dataView : Symbol(dataView, Decl(bigintWithoutLib.ts, 41, 5)) + +dataView.setBigInt64(1, -1); +>dataView : Symbol(dataView, Decl(bigintWithoutLib.ts, 41, 5)) + +dataView.setBigUint64(2, 123n); +>dataView : Symbol(dataView, Decl(bigintWithoutLib.ts, 41, 5)) + +dataView.setBigUint64(2, 123n, true); +>dataView : Symbol(dataView, Decl(bigintWithoutLib.ts, 41, 5)) + +dataView.setBigUint64(2, 123); +>dataView : Symbol(dataView, Decl(bigintWithoutLib.ts, 41, 5)) + +bigintVal = dataView.getBigInt64(1); +>bigintVal : Symbol(bigintVal, Decl(bigintWithoutLib.ts, 3, 3)) +>dataView : Symbol(dataView, Decl(bigintWithoutLib.ts, 41, 5)) + +bigintVal = dataView.getBigInt64(1, true); +>bigintVal : Symbol(bigintVal, Decl(bigintWithoutLib.ts, 3, 3)) +>dataView : Symbol(dataView, Decl(bigintWithoutLib.ts, 41, 5)) + +bigintVal = dataView.getBigUint64(2); +>bigintVal : Symbol(bigintVal, Decl(bigintWithoutLib.ts, 3, 3)) +>dataView : Symbol(dataView, Decl(bigintWithoutLib.ts, 41, 5)) + +bigintVal = dataView.getBigUint64(2, true); +>bigintVal : Symbol(bigintVal, Decl(bigintWithoutLib.ts, 3, 3)) +>dataView : Symbol(dataView, Decl(bigintWithoutLib.ts, 41, 5)) + +// Test Intl methods with new parameter type +new Intl.NumberFormat("fr").format(3000n); +>new Intl.NumberFormat("fr").format : Symbol(Intl.NumberFormat.format, Decl(lib.es5.d.ts, --, --)) +>Intl.NumberFormat : Symbol(Intl.NumberFormat, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>Intl : Symbol(Intl, Decl(lib.es5.d.ts, --, --)) +>NumberFormat : Symbol(Intl.NumberFormat, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>format : Symbol(Intl.NumberFormat.format, Decl(lib.es5.d.ts, --, --)) + +new Intl.NumberFormat("fr").format(bigintVal); +>new Intl.NumberFormat("fr").format : Symbol(Intl.NumberFormat.format, Decl(lib.es5.d.ts, --, --)) +>Intl.NumberFormat : Symbol(Intl.NumberFormat, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>Intl : Symbol(Intl, Decl(lib.es5.d.ts, --, --)) +>NumberFormat : Symbol(Intl.NumberFormat, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>format : Symbol(Intl.NumberFormat.format, Decl(lib.es5.d.ts, --, --)) +>bigintVal : Symbol(bigintVal, Decl(bigintWithoutLib.ts, 3, 3)) + diff --git a/tests/baselines/reference/bigintWithoutLib(target=es5).types b/tests/baselines/reference/bigintWithoutLib(target=es5).types new file mode 100644 index 0000000000000..4f37108f5d4eb --- /dev/null +++ b/tests/baselines/reference/bigintWithoutLib(target=es5).types @@ -0,0 +1,692 @@ +//// [tests/cases/compiler/bigintWithoutLib.ts] //// + +=== bigintWithoutLib.ts === +// Every line should error because these builtins are not declared + +// Test BigInt functions +let bigintVal: bigint = BigInt(123); +>bigintVal : bigint +> : ^^^^^^ +>BigInt(123) : any +> : ^^^ +>BigInt : any +> : ^^^ +>123 : 123 +> : ^^^ + +bigintVal = BigInt("456"); +>bigintVal = BigInt("456") : any +> : ^^^ +>bigintVal : bigint +> : ^^^^^^ +>BigInt("456") : any +> : ^^^ +>BigInt : any +> : ^^^ +>"456" : "456" +> : ^^^^^ + +new BigInt(123); +>new BigInt(123) : any +> : ^^^ +>BigInt : any +> : ^^^ +>123 : 123 +> : ^^^ + +bigintVal = BigInt.asIntN(8, 0xFFFFn); +>bigintVal = BigInt.asIntN(8, 0xFFFFn) : any +> : ^^^ +>bigintVal : bigint +> : ^^^^^^ +>BigInt.asIntN(8, 0xFFFFn) : any +> : ^^^ +>BigInt.asIntN : any +> : ^^^ +>BigInt : any +> : ^^^ +>asIntN : any +> : ^^^ +>8 : 8 +> : ^ +>0xFFFFn : 65535n +> : ^^^^^^ + +bigintVal = BigInt.asUintN(8, 0xFFFFn); +>bigintVal = BigInt.asUintN(8, 0xFFFFn) : any +> : ^^^ +>bigintVal : bigint +> : ^^^^^^ +>BigInt.asUintN(8, 0xFFFFn) : any +> : ^^^ +>BigInt.asUintN : any +> : ^^^ +>BigInt : any +> : ^^^ +>asUintN : any +> : ^^^ +>8 : 8 +> : ^ +>0xFFFFn : 65535n +> : ^^^^^^ + +bigintVal = bigintVal.valueOf(); // should error - bigintVal inferred as {} +>bigintVal = bigintVal.valueOf() : Object +> : ^^^^^^ +>bigintVal : bigint +> : ^^^^^^ +>bigintVal.valueOf() : Object +> : ^^^^^^ +>bigintVal.valueOf : () => Object +> : ^^^^^^ +>bigintVal : bigint +> : ^^^^^^ +>valueOf : () => Object +> : ^^^^^^ + +let stringVal: string = bigintVal.toString(); // should not error - bigintVal inferred as {} +>stringVal : string +> : ^^^^^^ +>bigintVal.toString() : string +> : ^^^^^^ +>bigintVal.toString : () => string +> : ^^^^^^ +>bigintVal : bigint +> : ^^^^^^ +>toString : () => string +> : ^^^^^^ + +stringVal = bigintVal.toString(2); // should error - bigintVal inferred as {} +>stringVal = bigintVal.toString(2) : string +> : ^^^^^^ +>stringVal : string +> : ^^^^^^ +>bigintVal.toString(2) : string +> : ^^^^^^ +>bigintVal.toString : () => string +> : ^^^^^^ +>bigintVal : bigint +> : ^^^^^^ +>toString : () => string +> : ^^^^^^ +>2 : 2 +> : ^ + +stringVal = bigintVal.toLocaleString(); // should not error - bigintVal inferred as {} +>stringVal = bigintVal.toLocaleString() : string +> : ^^^^^^ +>stringVal : string +> : ^^^^^^ +>bigintVal.toLocaleString() : string +> : ^^^^^^ +>bigintVal.toLocaleString : () => string +> : ^^^^^^ +>bigintVal : bigint +> : ^^^^^^ +>toLocaleString : () => string +> : ^^^^^^ + +stringVal = bigintVal.toLocaleString('de-DE'); // should not error - bigintVal inferred as {} +>stringVal = bigintVal.toLocaleString('de-DE') : string +> : ^^^^^^ +>stringVal : string +> : ^^^^^^ +>bigintVal.toLocaleString('de-DE') : string +> : ^^^^^^ +>bigintVal.toLocaleString : () => string +> : ^^^^^^ +>bigintVal : bigint +> : ^^^^^^ +>toLocaleString : () => string +> : ^^^^^^ +>'de-DE' : "de-DE" +> : ^^^^^^^ + +stringVal = bigintVal.toLocaleString('de-DE', { style: 'currency' }); // should not error - bigintVal inferred as {} +>stringVal = bigintVal.toLocaleString('de-DE', { style: 'currency' }) : string +> : ^^^^^^ +>stringVal : string +> : ^^^^^^ +>bigintVal.toLocaleString('de-DE', { style: 'currency' }) : string +> : ^^^^^^ +>bigintVal.toLocaleString : () => string +> : ^^^^^^ +>bigintVal : bigint +> : ^^^^^^ +>toLocaleString : () => string +> : ^^^^^^ +>'de-DE' : "de-DE" +> : ^^^^^^^ +>{ style: 'currency' } : { style: string; } +> : ^^^^^^^^^^^^^^^^^^ +>style : string +> : ^^^^^^ +>'currency' : "currency" +> : ^^^^^^^^^^ + +stringVal = bigintVal.toLocaleString('de-DE', { style: 'currency', currency: 'EUR' }) // should not error - bigintVal inferred as {} +>stringVal = bigintVal.toLocaleString('de-DE', { style: 'currency', currency: 'EUR' }) : string +> : ^^^^^^ +>stringVal : string +> : ^^^^^^ +>bigintVal.toLocaleString('de-DE', { style: 'currency', currency: 'EUR' }) : string +> : ^^^^^^ +>bigintVal.toLocaleString : () => string +> : ^^^^^^ +>bigintVal : bigint +> : ^^^^^^ +>toLocaleString : () => string +> : ^^^^^^ +>'de-DE' : "de-DE" +> : ^^^^^^^ +>{ style: 'currency', currency: 'EUR' } : { style: string; currency: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>style : string +> : ^^^^^^ +>'currency' : "currency" +> : ^^^^^^^^^^ +>currency : string +> : ^^^^^^ +>'EUR' : "EUR" +> : ^^^^^ + +// Test BigInt64Array +let bigIntArray: BigInt64Array = new BigInt64Array(); +>bigIntArray : BigInt64Array +> : ^^^^^^^^^^^^^ +>new BigInt64Array() : any +> : ^^^ +>BigInt64Array : any +> : ^^^ + +bigIntArray = new BigInt64Array(10); +>bigIntArray = new BigInt64Array(10) : any +> : ^^^ +>bigIntArray : BigInt64Array +> : ^^^^^^^^^^^^^ +>new BigInt64Array(10) : any +> : ^^^ +>BigInt64Array : any +> : ^^^ +>10 : 10 +> : ^^ + +bigIntArray = new BigInt64Array([1n, 2n, 3n]); +>bigIntArray = new BigInt64Array([1n, 2n, 3n]) : any +> : ^^^ +>bigIntArray : BigInt64Array +> : ^^^^^^^^^^^^^ +>new BigInt64Array([1n, 2n, 3n]) : any +> : ^^^ +>BigInt64Array : any +> : ^^^ +>[1n, 2n, 3n] : bigint[] +> : ^^^^^^^^ +>1n : 1n +> : ^^ +>2n : 2n +> : ^^ +>3n : 3n +> : ^^ + +bigIntArray = new BigInt64Array([1, 2, 3]); +>bigIntArray = new BigInt64Array([1, 2, 3]) : any +> : ^^^ +>bigIntArray : BigInt64Array +> : ^^^^^^^^^^^^^ +>new BigInt64Array([1, 2, 3]) : any +> : ^^^ +>BigInt64Array : any +> : ^^^ +>[1, 2, 3] : number[] +> : ^^^^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ +>3 : 3 +> : ^ + +bigIntArray = new BigInt64Array(new ArrayBuffer(80)); +>bigIntArray = new BigInt64Array(new ArrayBuffer(80)) : any +> : ^^^ +>bigIntArray : BigInt64Array +> : ^^^^^^^^^^^^^ +>new BigInt64Array(new ArrayBuffer(80)) : any +> : ^^^ +>BigInt64Array : any +> : ^^^ +>new ArrayBuffer(80) : ArrayBuffer +> : ^^^^^^^^^^^ +>ArrayBuffer : ArrayBufferConstructor +> : ^^^^^^^^^^^^^^^^^^^^^^ +>80 : 80 +> : ^^ + +bigIntArray = new BigInt64Array(new ArrayBuffer(80), 8); +>bigIntArray = new BigInt64Array(new ArrayBuffer(80), 8) : any +> : ^^^ +>bigIntArray : BigInt64Array +> : ^^^^^^^^^^^^^ +>new BigInt64Array(new ArrayBuffer(80), 8) : any +> : ^^^ +>BigInt64Array : any +> : ^^^ +>new ArrayBuffer(80) : ArrayBuffer +> : ^^^^^^^^^^^ +>ArrayBuffer : ArrayBufferConstructor +> : ^^^^^^^^^^^^^^^^^^^^^^ +>80 : 80 +> : ^^ +>8 : 8 +> : ^ + +bigIntArray = new BigInt64Array(new ArrayBuffer(80), 8, 3); +>bigIntArray = new BigInt64Array(new ArrayBuffer(80), 8, 3) : any +> : ^^^ +>bigIntArray : BigInt64Array +> : ^^^^^^^^^^^^^ +>new BigInt64Array(new ArrayBuffer(80), 8, 3) : any +> : ^^^ +>BigInt64Array : any +> : ^^^ +>new ArrayBuffer(80) : ArrayBuffer +> : ^^^^^^^^^^^ +>ArrayBuffer : ArrayBufferConstructor +> : ^^^^^^^^^^^^^^^^^^^^^^ +>80 : 80 +> : ^^ +>8 : 8 +> : ^ +>3 : 3 +> : ^ + +let len: number = bigIntArray.length; +>len : number +> : ^^^^^^ +>bigIntArray.length : any +> : ^^^ +>bigIntArray : BigInt64Array +> : ^^^^^^^^^^^^^ +>length : any +> : ^^^ + +bigIntArray.length = 10; +>bigIntArray.length = 10 : 10 +> : ^^ +>bigIntArray.length : any +> : ^^^ +>bigIntArray : BigInt64Array +> : ^^^^^^^^^^^^^ +>length : any +> : ^^^ +>10 : 10 +> : ^^ + +let arrayBufferLike: ArrayBufferView = bigIntArray; +>arrayBufferLike : ArrayBufferView +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>bigIntArray : BigInt64Array +> : ^^^^^^^^^^^^^ + +// Test BigUint64Array +let bigUintArray: BigUint64Array = new BigUint64Array(); +>bigUintArray : BigUint64Array +> : ^^^^^^^^^^^^^^ +>new BigUint64Array() : any +> : ^^^ +>BigUint64Array : any +> : ^^^ + +bigUintArray = new BigUint64Array(10); +>bigUintArray = new BigUint64Array(10) : any +> : ^^^ +>bigUintArray : BigUint64Array +> : ^^^^^^^^^^^^^^ +>new BigUint64Array(10) : any +> : ^^^ +>BigUint64Array : any +> : ^^^ +>10 : 10 +> : ^^ + +bigUintArray = new BigUint64Array([1n, 2n, 3n]); +>bigUintArray = new BigUint64Array([1n, 2n, 3n]) : any +> : ^^^ +>bigUintArray : BigUint64Array +> : ^^^^^^^^^^^^^^ +>new BigUint64Array([1n, 2n, 3n]) : any +> : ^^^ +>BigUint64Array : any +> : ^^^ +>[1n, 2n, 3n] : bigint[] +> : ^^^^^^^^ +>1n : 1n +> : ^^ +>2n : 2n +> : ^^ +>3n : 3n +> : ^^ + +bigUintArray = new BigUint64Array([1, 2, 3]); +>bigUintArray = new BigUint64Array([1, 2, 3]) : any +> : ^^^ +>bigUintArray : BigUint64Array +> : ^^^^^^^^^^^^^^ +>new BigUint64Array([1, 2, 3]) : any +> : ^^^ +>BigUint64Array : any +> : ^^^ +>[1, 2, 3] : number[] +> : ^^^^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ +>3 : 3 +> : ^ + +bigUintArray = new BigUint64Array(new ArrayBuffer(80)); +>bigUintArray = new BigUint64Array(new ArrayBuffer(80)) : any +> : ^^^ +>bigUintArray : BigUint64Array +> : ^^^^^^^^^^^^^^ +>new BigUint64Array(new ArrayBuffer(80)) : any +> : ^^^ +>BigUint64Array : any +> : ^^^ +>new ArrayBuffer(80) : ArrayBuffer +> : ^^^^^^^^^^^ +>ArrayBuffer : ArrayBufferConstructor +> : ^^^^^^^^^^^^^^^^^^^^^^ +>80 : 80 +> : ^^ + +bigUintArray = new BigUint64Array(new ArrayBuffer(80), 8); +>bigUintArray = new BigUint64Array(new ArrayBuffer(80), 8) : any +> : ^^^ +>bigUintArray : BigUint64Array +> : ^^^^^^^^^^^^^^ +>new BigUint64Array(new ArrayBuffer(80), 8) : any +> : ^^^ +>BigUint64Array : any +> : ^^^ +>new ArrayBuffer(80) : ArrayBuffer +> : ^^^^^^^^^^^ +>ArrayBuffer : ArrayBufferConstructor +> : ^^^^^^^^^^^^^^^^^^^^^^ +>80 : 80 +> : ^^ +>8 : 8 +> : ^ + +bigUintArray = new BigUint64Array(new ArrayBuffer(80), 8, 3); +>bigUintArray = new BigUint64Array(new ArrayBuffer(80), 8, 3) : any +> : ^^^ +>bigUintArray : BigUint64Array +> : ^^^^^^^^^^^^^^ +>new BigUint64Array(new ArrayBuffer(80), 8, 3) : any +> : ^^^ +>BigUint64Array : any +> : ^^^ +>new ArrayBuffer(80) : ArrayBuffer +> : ^^^^^^^^^^^ +>ArrayBuffer : ArrayBufferConstructor +> : ^^^^^^^^^^^^^^^^^^^^^^ +>80 : 80 +> : ^^ +>8 : 8 +> : ^ +>3 : 3 +> : ^ + +len = bigIntArray.length; +>len = bigIntArray.length : any +> : ^^^ +>len : number +> : ^^^^^^ +>bigIntArray.length : any +> : ^^^ +>bigIntArray : BigInt64Array +> : ^^^^^^^^^^^^^ +>length : any +> : ^^^ + +bigIntArray.length = 10; +>bigIntArray.length = 10 : 10 +> : ^^ +>bigIntArray.length : any +> : ^^^ +>bigIntArray : BigInt64Array +> : ^^^^^^^^^^^^^ +>length : any +> : ^^^ +>10 : 10 +> : ^^ + +arrayBufferLike = bigIntArray; +>arrayBufferLike = bigIntArray : BigInt64Array +> : ^^^^^^^^^^^^^ +>arrayBufferLike : ArrayBufferView +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>bigIntArray : BigInt64Array +> : ^^^^^^^^^^^^^ + +// Test added DataView methods +const dataView = new DataView(new ArrayBuffer(80)); +>dataView : DataView +> : ^^^^^^^^^^^^^^^^^^^^^ +>new DataView(new ArrayBuffer(80)) : DataView +> : ^^^^^^^^^^^^^^^^^^^^^ +>DataView : DataViewConstructor +> : ^^^^^^^^^^^^^^^^^^^ +>new ArrayBuffer(80) : ArrayBuffer +> : ^^^^^^^^^^^ +>ArrayBuffer : ArrayBufferConstructor +> : ^^^^^^^^^^^^^^^^^^^^^^ +>80 : 80 +> : ^^ + +dataView.setBigInt64(1, -1n); +>dataView.setBigInt64(1, -1n) : any +> : ^^^ +>dataView.setBigInt64 : any +> : ^^^ +>dataView : DataView +> : ^^^^^^^^^^^^^^^^^^^^^ +>setBigInt64 : any +> : ^^^ +>1 : 1 +> : ^ +>-1n : -1n +> : ^^^ +>1n : 1n +> : ^^ + +dataView.setBigInt64(1, -1n, true); +>dataView.setBigInt64(1, -1n, true) : any +> : ^^^ +>dataView.setBigInt64 : any +> : ^^^ +>dataView : DataView +> : ^^^^^^^^^^^^^^^^^^^^^ +>setBigInt64 : any +> : ^^^ +>1 : 1 +> : ^ +>-1n : -1n +> : ^^^ +>1n : 1n +> : ^^ +>true : true +> : ^^^^ + +dataView.setBigInt64(1, -1); +>dataView.setBigInt64(1, -1) : any +> : ^^^ +>dataView.setBigInt64 : any +> : ^^^ +>dataView : DataView +> : ^^^^^^^^^^^^^^^^^^^^^ +>setBigInt64 : any +> : ^^^ +>1 : 1 +> : ^ +>-1 : -1 +> : ^^ +>1 : 1 +> : ^ + +dataView.setBigUint64(2, 123n); +>dataView.setBigUint64(2, 123n) : any +> : ^^^ +>dataView.setBigUint64 : any +> : ^^^ +>dataView : DataView +> : ^^^^^^^^^^^^^^^^^^^^^ +>setBigUint64 : any +> : ^^^ +>2 : 2 +> : ^ +>123n : 123n +> : ^^^^ + +dataView.setBigUint64(2, 123n, true); +>dataView.setBigUint64(2, 123n, true) : any +> : ^^^ +>dataView.setBigUint64 : any +> : ^^^ +>dataView : DataView +> : ^^^^^^^^^^^^^^^^^^^^^ +>setBigUint64 : any +> : ^^^ +>2 : 2 +> : ^ +>123n : 123n +> : ^^^^ +>true : true +> : ^^^^ + +dataView.setBigUint64(2, 123); +>dataView.setBigUint64(2, 123) : any +> : ^^^ +>dataView.setBigUint64 : any +> : ^^^ +>dataView : DataView +> : ^^^^^^^^^^^^^^^^^^^^^ +>setBigUint64 : any +> : ^^^ +>2 : 2 +> : ^ +>123 : 123 +> : ^^^ + +bigintVal = dataView.getBigInt64(1); +>bigintVal = dataView.getBigInt64(1) : any +> : ^^^ +>bigintVal : bigint +> : ^^^^^^ +>dataView.getBigInt64(1) : any +> : ^^^ +>dataView.getBigInt64 : any +> : ^^^ +>dataView : DataView +> : ^^^^^^^^^^^^^^^^^^^^^ +>getBigInt64 : any +> : ^^^ +>1 : 1 +> : ^ + +bigintVal = dataView.getBigInt64(1, true); +>bigintVal = dataView.getBigInt64(1, true) : any +> : ^^^ +>bigintVal : bigint +> : ^^^^^^ +>dataView.getBigInt64(1, true) : any +> : ^^^ +>dataView.getBigInt64 : any +> : ^^^ +>dataView : DataView +> : ^^^^^^^^^^^^^^^^^^^^^ +>getBigInt64 : any +> : ^^^ +>1 : 1 +> : ^ +>true : true +> : ^^^^ + +bigintVal = dataView.getBigUint64(2); +>bigintVal = dataView.getBigUint64(2) : any +> : ^^^ +>bigintVal : bigint +> : ^^^^^^ +>dataView.getBigUint64(2) : any +> : ^^^ +>dataView.getBigUint64 : any +> : ^^^ +>dataView : DataView +> : ^^^^^^^^^^^^^^^^^^^^^ +>getBigUint64 : any +> : ^^^ +>2 : 2 +> : ^ + +bigintVal = dataView.getBigUint64(2, true); +>bigintVal = dataView.getBigUint64(2, true) : any +> : ^^^ +>bigintVal : bigint +> : ^^^^^^ +>dataView.getBigUint64(2, true) : any +> : ^^^ +>dataView.getBigUint64 : any +> : ^^^ +>dataView : DataView +> : ^^^^^^^^^^^^^^^^^^^^^ +>getBigUint64 : any +> : ^^^ +>2 : 2 +> : ^ +>true : true +> : ^^^^ + +// Test Intl methods with new parameter type +new Intl.NumberFormat("fr").format(3000n); +>new Intl.NumberFormat("fr").format(3000n) : string +> : ^^^^^^ +>new Intl.NumberFormat("fr").format : (value: number) => string +> : ^ ^^ ^^^^^ +>new Intl.NumberFormat("fr") : Intl.NumberFormat +> : ^^^^^^^^^^^^^^^^^ +>Intl.NumberFormat : Intl.NumberFormatConstructor +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>Intl : typeof Intl +> : ^^^^^^^^^^^ +>NumberFormat : Intl.NumberFormatConstructor +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>"fr" : "fr" +> : ^^^^ +>format : (value: number) => string +> : ^ ^^ ^^^^^ +>3000n : 3000n +> : ^^^^^ + +new Intl.NumberFormat("fr").format(bigintVal); +>new Intl.NumberFormat("fr").format(bigintVal) : string +> : ^^^^^^ +>new Intl.NumberFormat("fr").format : (value: number) => string +> : ^ ^^ ^^^^^ +>new Intl.NumberFormat("fr") : Intl.NumberFormat +> : ^^^^^^^^^^^^^^^^^ +>Intl.NumberFormat : Intl.NumberFormatConstructor +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>Intl : typeof Intl +> : ^^^^^^^^^^^ +>NumberFormat : Intl.NumberFormatConstructor +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>"fr" : "fr" +> : ^^^^ +>format : (value: number) => string +> : ^ ^^ ^^^^^ +>bigintVal : bigint +> : ^^^^^^ + diff --git a/tests/baselines/reference/binaryIntegerLiteral(target=es2015).js b/tests/baselines/reference/binaryIntegerLiteral(target=es2015).js new file mode 100644 index 0000000000000..b94113e58af3a --- /dev/null +++ b/tests/baselines/reference/binaryIntegerLiteral(target=es2015).js @@ -0,0 +1,83 @@ +//// [tests/cases/conformance/es6/binaryAndOctalIntegerLiteral/binaryIntegerLiteral.ts] //// + +//// [binaryIntegerLiteral.ts] +var bin1 = 0b11010; +var bin2 = 0B11010; +var bin3 = 0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111; +var bin4 = 0B111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101001010100000010111110001111111111; + +var obj1 = { + 0b11010: "Hello", + a: bin1, + bin1, + b: 0b11010, + 0B111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101001010100000010111110001111111111: true, +} + +var obj2 = { + 0B11010: "World", + a: bin2, + bin2, + b: 0B11010, + 0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111: false, +} + +obj1[0b11010]; // string +obj1[26]; // string +obj1["26"]; // string +obj1["0b11010"]; // any +obj1["a"]; // number +obj1["b"]; // number +obj1["bin1"]; // number +obj1["Infinity"]; // boolean + +obj2[0B11010]; // string +obj2[26]; // string +obj2["26"]; // string +obj2["0B11010"]; // any +obj2["a"]; // number +obj2["b"]; // number +obj2["bin2"]; // number +obj2[9.671406556917009e+24]; // boolean +obj2["9.671406556917009e+24"]; // boolean +obj2["Infinity"]; // any + + + +//// [binaryIntegerLiteral.js] +var bin1 = 0b11010; +var bin2 = 0B11010; +var bin3 = 0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111; +var bin4 = 0B111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101001010100000010111110001111111111; +var obj1 = { + 0b11010: "Hello", + a: bin1, + bin1, + b: 0b11010, + 0B111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101001010100000010111110001111111111: true, +}; +var obj2 = { + 0B11010: "World", + a: bin2, + bin2, + b: 0B11010, + 0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111: false, +}; +obj1[0b11010]; // string +obj1[26]; // string +obj1["26"]; // string +obj1["0b11010"]; // any +obj1["a"]; // number +obj1["b"]; // number +obj1["bin1"]; // number +obj1["Infinity"]; // boolean +obj2[0B11010]; // string +obj2[26]; // string +obj2["26"]; // string +obj2["0B11010"]; // any +obj2["a"]; // number +obj2["b"]; // number +obj2["bin2"]; // number +obj2[9.671406556917009e+24]; // boolean +obj2["9.671406556917009e+24"]; // boolean +obj2["Infinity"]; // any diff --git a/tests/baselines/reference/binaryIntegerLiteral.symbols b/tests/baselines/reference/binaryIntegerLiteral(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/binaryIntegerLiteral.symbols rename to tests/baselines/reference/binaryIntegerLiteral(target=es2015).symbols diff --git a/tests/baselines/reference/binaryIntegerLiteral.types b/tests/baselines/reference/binaryIntegerLiteral(target=es2015).types similarity index 100% rename from tests/baselines/reference/binaryIntegerLiteral.types rename to tests/baselines/reference/binaryIntegerLiteral(target=es2015).types diff --git a/tests/baselines/reference/binaryIntegerLiteral.js b/tests/baselines/reference/binaryIntegerLiteral(target=es5).js similarity index 100% rename from tests/baselines/reference/binaryIntegerLiteral.js rename to tests/baselines/reference/binaryIntegerLiteral(target=es5).js diff --git a/tests/baselines/reference/binaryIntegerLiteral(target=es5).symbols b/tests/baselines/reference/binaryIntegerLiteral(target=es5).symbols new file mode 100644 index 0000000000000..9fdb1885439d6 --- /dev/null +++ b/tests/baselines/reference/binaryIntegerLiteral(target=es5).symbols @@ -0,0 +1,125 @@ +//// [tests/cases/conformance/es6/binaryAndOctalIntegerLiteral/binaryIntegerLiteral.ts] //// + +=== binaryIntegerLiteral.ts === +var bin1 = 0b11010; +>bin1 : Symbol(bin1, Decl(binaryIntegerLiteral.ts, 0, 3)) + +var bin2 = 0B11010; +>bin2 : Symbol(bin2, Decl(binaryIntegerLiteral.ts, 1, 3)) + +var bin3 = 0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111; +>bin3 : Symbol(bin3, Decl(binaryIntegerLiteral.ts, 2, 3)) + +var bin4 = 0B111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101001010100000010111110001111111111; +>bin4 : Symbol(bin4, Decl(binaryIntegerLiteral.ts, 3, 3)) + +var obj1 = { +>obj1 : Symbol(obj1, Decl(binaryIntegerLiteral.ts, 5, 3)) + + 0b11010: "Hello", +>0b11010 : Symbol(0b11010, Decl(binaryIntegerLiteral.ts, 5, 12)) + + a: bin1, +>a : Symbol(a, Decl(binaryIntegerLiteral.ts, 6, 21)) +>bin1 : Symbol(bin1, Decl(binaryIntegerLiteral.ts, 0, 3)) + + bin1, +>bin1 : Symbol(bin1, Decl(binaryIntegerLiteral.ts, 7, 12)) + + b: 0b11010, +>b : Symbol(b, Decl(binaryIntegerLiteral.ts, 8, 9)) + + 0B111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101001010100000010111110001111111111: true, +>0B111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101001010100000010111110001111111111 : Symbol(0B111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101001010100000010111110001111111111, Decl(binaryIntegerLiteral.ts, 9, 15)) +} + +var obj2 = { +>obj2 : Symbol(obj2, Decl(binaryIntegerLiteral.ts, 13, 3)) + + 0B11010: "World", +>0B11010 : Symbol(0B11010, Decl(binaryIntegerLiteral.ts, 13, 12)) + + a: bin2, +>a : Symbol(a, Decl(binaryIntegerLiteral.ts, 14, 21)) +>bin2 : Symbol(bin2, Decl(binaryIntegerLiteral.ts, 1, 3)) + + bin2, +>bin2 : Symbol(bin2, Decl(binaryIntegerLiteral.ts, 15, 12)) + + b: 0B11010, +>b : Symbol(b, Decl(binaryIntegerLiteral.ts, 16, 9)) + + 0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111: false, +>0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111 : Symbol(0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111, Decl(binaryIntegerLiteral.ts, 17, 15)) +} + +obj1[0b11010]; // string +>obj1 : Symbol(obj1, Decl(binaryIntegerLiteral.ts, 5, 3)) +>0b11010 : Symbol(0b11010, Decl(binaryIntegerLiteral.ts, 5, 12)) + +obj1[26]; // string +>obj1 : Symbol(obj1, Decl(binaryIntegerLiteral.ts, 5, 3)) +>26 : Symbol(0b11010, Decl(binaryIntegerLiteral.ts, 5, 12)) + +obj1["26"]; // string +>obj1 : Symbol(obj1, Decl(binaryIntegerLiteral.ts, 5, 3)) +>"26" : Symbol(0b11010, Decl(binaryIntegerLiteral.ts, 5, 12)) + +obj1["0b11010"]; // any +>obj1 : Symbol(obj1, Decl(binaryIntegerLiteral.ts, 5, 3)) + +obj1["a"]; // number +>obj1 : Symbol(obj1, Decl(binaryIntegerLiteral.ts, 5, 3)) +>"a" : Symbol(a, Decl(binaryIntegerLiteral.ts, 6, 21)) + +obj1["b"]; // number +>obj1 : Symbol(obj1, Decl(binaryIntegerLiteral.ts, 5, 3)) +>"b" : Symbol(b, Decl(binaryIntegerLiteral.ts, 8, 9)) + +obj1["bin1"]; // number +>obj1 : Symbol(obj1, Decl(binaryIntegerLiteral.ts, 5, 3)) +>"bin1" : Symbol(bin1, Decl(binaryIntegerLiteral.ts, 7, 12)) + +obj1["Infinity"]; // boolean +>obj1 : Symbol(obj1, Decl(binaryIntegerLiteral.ts, 5, 3)) +>"Infinity" : Symbol(0B111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101001010100000010111110001111111111, Decl(binaryIntegerLiteral.ts, 9, 15)) + +obj2[0B11010]; // string +>obj2 : Symbol(obj2, Decl(binaryIntegerLiteral.ts, 13, 3)) +>0B11010 : Symbol(0B11010, Decl(binaryIntegerLiteral.ts, 13, 12)) + +obj2[26]; // string +>obj2 : Symbol(obj2, Decl(binaryIntegerLiteral.ts, 13, 3)) +>26 : Symbol(0B11010, Decl(binaryIntegerLiteral.ts, 13, 12)) + +obj2["26"]; // string +>obj2 : Symbol(obj2, Decl(binaryIntegerLiteral.ts, 13, 3)) +>"26" : Symbol(0B11010, Decl(binaryIntegerLiteral.ts, 13, 12)) + +obj2["0B11010"]; // any +>obj2 : Symbol(obj2, Decl(binaryIntegerLiteral.ts, 13, 3)) + +obj2["a"]; // number +>obj2 : Symbol(obj2, Decl(binaryIntegerLiteral.ts, 13, 3)) +>"a" : Symbol(a, Decl(binaryIntegerLiteral.ts, 14, 21)) + +obj2["b"]; // number +>obj2 : Symbol(obj2, Decl(binaryIntegerLiteral.ts, 13, 3)) +>"b" : Symbol(b, Decl(binaryIntegerLiteral.ts, 16, 9)) + +obj2["bin2"]; // number +>obj2 : Symbol(obj2, Decl(binaryIntegerLiteral.ts, 13, 3)) +>"bin2" : Symbol(bin2, Decl(binaryIntegerLiteral.ts, 15, 12)) + +obj2[9.671406556917009e+24]; // boolean +>obj2 : Symbol(obj2, Decl(binaryIntegerLiteral.ts, 13, 3)) +>9.671406556917009e+24 : Symbol(0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111, Decl(binaryIntegerLiteral.ts, 17, 15)) + +obj2["9.671406556917009e+24"]; // boolean +>obj2 : Symbol(obj2, Decl(binaryIntegerLiteral.ts, 13, 3)) +>"9.671406556917009e+24" : Symbol(0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111, Decl(binaryIntegerLiteral.ts, 17, 15)) + +obj2["Infinity"]; // any +>obj2 : Symbol(obj2, Decl(binaryIntegerLiteral.ts, 13, 3)) + + diff --git a/tests/baselines/reference/binaryIntegerLiteral(target=es5).types b/tests/baselines/reference/binaryIntegerLiteral(target=es5).types new file mode 100644 index 0000000000000..9bb5101b0e371 --- /dev/null +++ b/tests/baselines/reference/binaryIntegerLiteral(target=es5).types @@ -0,0 +1,239 @@ +//// [tests/cases/conformance/es6/binaryAndOctalIntegerLiteral/binaryIntegerLiteral.ts] //// + +=== binaryIntegerLiteral.ts === +var bin1 = 0b11010; +>bin1 : number +> : ^^^^^^ +>0b11010 : 26 +> : ^^ + +var bin2 = 0B11010; +>bin2 : number +> : ^^^^^^ +>0B11010 : 26 +> : ^^ + +var bin3 = 0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111; +>bin3 : number +> : ^^^^^^ +>0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111 : 9.671406556917009e+24 +> : ^^^^^^^^^^^^^^^^^^^^^ + +var bin4 = 0B111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101001010100000010111110001111111111; +>bin4 : number +> : ^^^^^^ +>0B111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101001010100000010111110001111111111 : Infinity +> : ^^^^^^^^ + +var obj1 = { +>obj1 : { 26: string; a: number; bin1: number; b: number; Infinity: boolean; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ 0b11010: "Hello", a: bin1, bin1, b: 0b11010, 0B111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101001010100000010111110001111111111: true,} : { 26: string; a: number; bin1: number; b: number; Infinity: boolean; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + 0b11010: "Hello", +>0b11010 : string +> : ^^^^^^ +>"Hello" : "Hello" +> : ^^^^^^^ + + a: bin1, +>a : number +> : ^^^^^^ +>bin1 : number +> : ^^^^^^ + + bin1, +>bin1 : number +> : ^^^^^^ + + b: 0b11010, +>b : number +> : ^^^^^^ +>0b11010 : 26 +> : ^^ + + 0B111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101001010100000010111110001111111111: true, +>0B111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101001010100000010111110001111111111 : boolean +> : ^^^^^^^ +>true : true +> : ^^^^ +} + +var obj2 = { +>obj2 : { 26: string; a: number; bin2: number; b: number; 9.671406556917009e+24: boolean; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ 0B11010: "World", a: bin2, bin2, b: 0B11010, 0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111: false,} : { 26: string; a: number; bin2: number; b: number; 9.671406556917009e+24: boolean; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + 0B11010: "World", +>0B11010 : string +> : ^^^^^^ +>"World" : "World" +> : ^^^^^^^ + + a: bin2, +>a : number +> : ^^^^^^ +>bin2 : number +> : ^^^^^^ + + bin2, +>bin2 : number +> : ^^^^^^ + + b: 0B11010, +>b : number +> : ^^^^^^ +>0B11010 : 26 +> : ^^ + + 0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111: false, +>0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111 : boolean +> : ^^^^^^^ +>false : false +> : ^^^^^ +} + +obj1[0b11010]; // string +>obj1[0b11010] : string +> : ^^^^^^ +>obj1 : { 26: string; a: number; bin1: number; b: number; Infinity: boolean; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>0b11010 : 26 +> : ^^ + +obj1[26]; // string +>obj1[26] : string +> : ^^^^^^ +>obj1 : { 26: string; a: number; bin1: number; b: number; Infinity: boolean; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>26 : 26 +> : ^^ + +obj1["26"]; // string +>obj1["26"] : string +> : ^^^^^^ +>obj1 : { 26: string; a: number; bin1: number; b: number; Infinity: boolean; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>"26" : "26" +> : ^^^^ + +obj1["0b11010"]; // any +>obj1["0b11010"] : error +>obj1 : { 26: string; a: number; bin1: number; b: number; Infinity: boolean; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>"0b11010" : "0b11010" +> : ^^^^^^^^^ + +obj1["a"]; // number +>obj1["a"] : number +> : ^^^^^^ +>obj1 : { 26: string; a: number; bin1: number; b: number; Infinity: boolean; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>"a" : "a" +> : ^^^ + +obj1["b"]; // number +>obj1["b"] : number +> : ^^^^^^ +>obj1 : { 26: string; a: number; bin1: number; b: number; Infinity: boolean; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>"b" : "b" +> : ^^^ + +obj1["bin1"]; // number +>obj1["bin1"] : number +> : ^^^^^^ +>obj1 : { 26: string; a: number; bin1: number; b: number; Infinity: boolean; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>"bin1" : "bin1" +> : ^^^^^^ + +obj1["Infinity"]; // boolean +>obj1["Infinity"] : boolean +> : ^^^^^^^ +>obj1 : { 26: string; a: number; bin1: number; b: number; Infinity: boolean; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>"Infinity" : "Infinity" +> : ^^^^^^^^^^ + +obj2[0B11010]; // string +>obj2[0B11010] : string +> : ^^^^^^ +>obj2 : { 26: string; a: number; bin2: number; b: number; 9.671406556917009e+24: boolean; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>0B11010 : 26 +> : ^^ + +obj2[26]; // string +>obj2[26] : string +> : ^^^^^^ +>obj2 : { 26: string; a: number; bin2: number; b: number; 9.671406556917009e+24: boolean; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>26 : 26 +> : ^^ + +obj2["26"]; // string +>obj2["26"] : string +> : ^^^^^^ +>obj2 : { 26: string; a: number; bin2: number; b: number; 9.671406556917009e+24: boolean; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>"26" : "26" +> : ^^^^ + +obj2["0B11010"]; // any +>obj2["0B11010"] : error +>obj2 : { 26: string; a: number; bin2: number; b: number; 9.671406556917009e+24: boolean; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>"0B11010" : "0B11010" +> : ^^^^^^^^^ + +obj2["a"]; // number +>obj2["a"] : number +> : ^^^^^^ +>obj2 : { 26: string; a: number; bin2: number; b: number; 9.671406556917009e+24: boolean; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>"a" : "a" +> : ^^^ + +obj2["b"]; // number +>obj2["b"] : number +> : ^^^^^^ +>obj2 : { 26: string; a: number; bin2: number; b: number; 9.671406556917009e+24: boolean; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>"b" : "b" +> : ^^^ + +obj2["bin2"]; // number +>obj2["bin2"] : number +> : ^^^^^^ +>obj2 : { 26: string; a: number; bin2: number; b: number; 9.671406556917009e+24: boolean; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>"bin2" : "bin2" +> : ^^^^^^ + +obj2[9.671406556917009e+24]; // boolean +>obj2[9.671406556917009e+24] : boolean +> : ^^^^^^^ +>obj2 : { 26: string; a: number; bin2: number; b: number; 9.671406556917009e+24: boolean; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>9.671406556917009e+24 : 9.671406556917009e+24 +> : ^^^^^^^^^^^^^^^^^^^^^ + +obj2["9.671406556917009e+24"]; // boolean +>obj2["9.671406556917009e+24"] : boolean +> : ^^^^^^^ +>obj2 : { 26: string; a: number; bin2: number; b: number; 9.671406556917009e+24: boolean; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>"9.671406556917009e+24" : "9.671406556917009e+24" +> : ^^^^^^^^^^^^^^^^^^^^^^^ + +obj2["Infinity"]; // any +>obj2["Infinity"] : error +>obj2 : { 26: string; a: number; bin2: number; b: number; 9.671406556917009e+24: boolean; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>"Infinity" : "Infinity" +> : ^^^^^^^^^^ + + diff --git a/tests/baselines/reference/blockScopedBindingsInDownlevelGenerator(target=es2015).js b/tests/baselines/reference/blockScopedBindingsInDownlevelGenerator(target=es2015).js new file mode 100644 index 0000000000000..4e21b13090159 --- /dev/null +++ b/tests/baselines/reference/blockScopedBindingsInDownlevelGenerator(target=es2015).js @@ -0,0 +1,17 @@ +//// [tests/cases/compiler/blockScopedBindingsInDownlevelGenerator.ts] //// + +//// [blockScopedBindingsInDownlevelGenerator.ts] +function* a() { + for (const i of [1,2,3]) { + (() => i)() + yield i + } +} + +//// [blockScopedBindingsInDownlevelGenerator.js] +function* a() { + for (const i of [1, 2, 3]) { + (() => i)(); + yield i; + } +} diff --git a/tests/baselines/reference/blockScopedBindingsInDownlevelGenerator.symbols b/tests/baselines/reference/blockScopedBindingsInDownlevelGenerator(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/blockScopedBindingsInDownlevelGenerator.symbols rename to tests/baselines/reference/blockScopedBindingsInDownlevelGenerator(target=es2015).symbols diff --git a/tests/baselines/reference/blockScopedBindingsInDownlevelGenerator.types b/tests/baselines/reference/blockScopedBindingsInDownlevelGenerator(target=es2015).types similarity index 100% rename from tests/baselines/reference/blockScopedBindingsInDownlevelGenerator.types rename to tests/baselines/reference/blockScopedBindingsInDownlevelGenerator(target=es2015).types diff --git a/tests/baselines/reference/blockScopedBindingsInDownlevelGenerator.js b/tests/baselines/reference/blockScopedBindingsInDownlevelGenerator(target=es5).js similarity index 100% rename from tests/baselines/reference/blockScopedBindingsInDownlevelGenerator.js rename to tests/baselines/reference/blockScopedBindingsInDownlevelGenerator(target=es5).js diff --git a/tests/baselines/reference/blockScopedBindingsInDownlevelGenerator(target=es5).symbols b/tests/baselines/reference/blockScopedBindingsInDownlevelGenerator(target=es5).symbols new file mode 100644 index 0000000000000..8b906350c4f2f --- /dev/null +++ b/tests/baselines/reference/blockScopedBindingsInDownlevelGenerator(target=es5).symbols @@ -0,0 +1,16 @@ +//// [tests/cases/compiler/blockScopedBindingsInDownlevelGenerator.ts] //// + +=== blockScopedBindingsInDownlevelGenerator.ts === +function* a() { +>a : Symbol(a, Decl(blockScopedBindingsInDownlevelGenerator.ts, 0, 0)) + + for (const i of [1,2,3]) { +>i : Symbol(i, Decl(blockScopedBindingsInDownlevelGenerator.ts, 1, 12)) + + (() => i)() +>i : Symbol(i, Decl(blockScopedBindingsInDownlevelGenerator.ts, 1, 12)) + + yield i +>i : Symbol(i, Decl(blockScopedBindingsInDownlevelGenerator.ts, 1, 12)) + } +} diff --git a/tests/baselines/reference/blockScopedBindingsInDownlevelGenerator(target=es5).types b/tests/baselines/reference/blockScopedBindingsInDownlevelGenerator(target=es5).types new file mode 100644 index 0000000000000..957f447f8e574 --- /dev/null +++ b/tests/baselines/reference/blockScopedBindingsInDownlevelGenerator(target=es5).types @@ -0,0 +1,35 @@ +//// [tests/cases/compiler/blockScopedBindingsInDownlevelGenerator.ts] //// + +=== blockScopedBindingsInDownlevelGenerator.ts === +function* a() { +>a : () => Generator +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + for (const i of [1,2,3]) { +>i : number +> : ^^^^^^ +>[1,2,3] : number[] +> : ^^^^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ +>3 : 3 +> : ^ + + (() => i)() +>(() => i)() : number +> : ^^^^^^ +>(() => i) : () => number +> : ^^^^^^^^^^^^ +>() => i : () => number +> : ^^^^^^^^^^^^ +>i : number +> : ^^^^^^ + + yield i +>yield i : any +>i : number +> : ^^^^^^ + } +} diff --git a/tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef.errors.txt b/tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef.errors.txt rename to tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef(target=es2015).errors.txt diff --git a/tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef(target=es2015).js b/tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef(target=es2015).js new file mode 100644 index 0000000000000..1ce3d754926d0 --- /dev/null +++ b/tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef(target=es2015).js @@ -0,0 +1,36 @@ +//// [tests/cases/compiler/blockScopedEnumVariablesUseBeforeDef.ts] //// + +//// [blockScopedEnumVariablesUseBeforeDef.ts] +function foo1() { + return E.A + enum E { A } +} + +function foo2() { + return E.A + const enum E { A } +} + +const config = { + a: AfterObject.A, +}; + +const enum AfterObject { + A = 2, +} + + +//// [blockScopedEnumVariablesUseBeforeDef.js] +function foo1() { + return E.A; + let E; + (function (E) { + E[E["A"] = 0] = "A"; + })(E || (E = {})); +} +function foo2() { + return 0 /* E.A */; +} +const config = { + a: 2 /* AfterObject.A */, +}; diff --git a/tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef.symbols b/tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef.symbols rename to tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef(target=es2015).symbols diff --git a/tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef.types b/tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef(target=es2015).types similarity index 100% rename from tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef.types rename to tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef(target=es2015).types diff --git a/tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef(target=es5).errors.txt b/tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef(target=es5).errors.txt new file mode 100644 index 0000000000000..1b67e080e243f --- /dev/null +++ b/tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef(target=es5).errors.txt @@ -0,0 +1,25 @@ +blockScopedEnumVariablesUseBeforeDef.ts(2,12): error TS2450: Enum 'E' used before its declaration. + + +==== blockScopedEnumVariablesUseBeforeDef.ts (1 errors) ==== + function foo1() { + return E.A + ~ +!!! error TS2450: Enum 'E' used before its declaration. +!!! related TS2728 blockScopedEnumVariablesUseBeforeDef.ts:3:10: 'E' is declared here. + enum E { A } + } + + function foo2() { + return E.A + const enum E { A } + } + + const config = { + a: AfterObject.A, + }; + + const enum AfterObject { + A = 2, + } + \ No newline at end of file diff --git a/tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef.js b/tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef(target=es5).js similarity index 100% rename from tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef.js rename to tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef(target=es5).js diff --git a/tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef(target=es5).symbols b/tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef(target=es5).symbols new file mode 100644 index 0000000000000..6542daff85e3a --- /dev/null +++ b/tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef(target=es5).symbols @@ -0,0 +1,47 @@ +//// [tests/cases/compiler/blockScopedEnumVariablesUseBeforeDef.ts] //// + +=== blockScopedEnumVariablesUseBeforeDef.ts === +function foo1() { +>foo1 : Symbol(foo1, Decl(blockScopedEnumVariablesUseBeforeDef.ts, 0, 0)) + + return E.A +>E.A : Symbol(E.A, Decl(blockScopedEnumVariablesUseBeforeDef.ts, 2, 12)) +>E : Symbol(E, Decl(blockScopedEnumVariablesUseBeforeDef.ts, 1, 14)) +>A : Symbol(E.A, Decl(blockScopedEnumVariablesUseBeforeDef.ts, 2, 12)) + + enum E { A } +>E : Symbol(E, Decl(blockScopedEnumVariablesUseBeforeDef.ts, 1, 14)) +>A : Symbol(E.A, Decl(blockScopedEnumVariablesUseBeforeDef.ts, 2, 12)) +} + +function foo2() { +>foo2 : Symbol(foo2, Decl(blockScopedEnumVariablesUseBeforeDef.ts, 3, 1)) + + return E.A +>E.A : Symbol(E.A, Decl(blockScopedEnumVariablesUseBeforeDef.ts, 7, 18)) +>E : Symbol(E, Decl(blockScopedEnumVariablesUseBeforeDef.ts, 6, 14)) +>A : Symbol(E.A, Decl(blockScopedEnumVariablesUseBeforeDef.ts, 7, 18)) + + const enum E { A } +>E : Symbol(E, Decl(blockScopedEnumVariablesUseBeforeDef.ts, 6, 14)) +>A : Symbol(E.A, Decl(blockScopedEnumVariablesUseBeforeDef.ts, 7, 18)) +} + +const config = { +>config : Symbol(config, Decl(blockScopedEnumVariablesUseBeforeDef.ts, 10, 5)) + + a: AfterObject.A, +>a : Symbol(a, Decl(blockScopedEnumVariablesUseBeforeDef.ts, 10, 16)) +>AfterObject.A : Symbol(AfterObject.A, Decl(blockScopedEnumVariablesUseBeforeDef.ts, 14, 24)) +>AfterObject : Symbol(AfterObject, Decl(blockScopedEnumVariablesUseBeforeDef.ts, 12, 2)) +>A : Symbol(AfterObject.A, Decl(blockScopedEnumVariablesUseBeforeDef.ts, 14, 24)) + +}; + +const enum AfterObject { +>AfterObject : Symbol(AfterObject, Decl(blockScopedEnumVariablesUseBeforeDef.ts, 12, 2)) + + A = 2, +>A : Symbol(AfterObject.A, Decl(blockScopedEnumVariablesUseBeforeDef.ts, 14, 24)) +} + diff --git a/tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef(target=es5).types b/tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef(target=es5).types new file mode 100644 index 0000000000000..9babd7acd70f4 --- /dev/null +++ b/tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef(target=es5).types @@ -0,0 +1,70 @@ +//// [tests/cases/compiler/blockScopedEnumVariablesUseBeforeDef.ts] //// + +=== blockScopedEnumVariablesUseBeforeDef.ts === +function foo1() { +>foo1 : () => E +> : ^^^^^^^ + + return E.A +>E.A : E +> : ^ +>E : typeof E +> : ^^^^^^^^ +>A : E +> : ^ + + enum E { A } +>E : E +> : ^ +>A : E.A +> : ^^^ +} + +function foo2() { +>foo2 : () => E +> : ^^^^^^^ + + return E.A +>E.A : E +> : ^ +>E : typeof E +> : ^^^^^^^^ +>A : E +> : ^ + + const enum E { A } +>E : E +> : ^ +>A : E.A +> : ^^^ +} + +const config = { +>config : { a: AfterObject; } +> : ^^^^^^^^^^^^^^^^^^^ +>{ a: AfterObject.A,} : { a: AfterObject; } +> : ^^^^^^^^^^^^^^^^^^^ + + a: AfterObject.A, +>a : AfterObject +> : ^^^^^^^^^^^ +>AfterObject.A : AfterObject +> : ^^^^^^^^^^^ +>AfterObject : typeof AfterObject +> : ^^^^^^^^^^^^^^^^^^ +>A : AfterObject +> : ^^^^^^^^^^^ + +}; + +const enum AfterObject { +>AfterObject : AfterObject +> : ^^^^^^^^^^^ + + A = 2, +>A : AfterObject.A +> : ^^^^^^^^^^^^^ +>2 : 2 +> : ^ +} + diff --git a/tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_isolatedModules.errors.txt b/tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_isolatedModules(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_isolatedModules.errors.txt rename to tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_isolatedModules(target=es2015).errors.txt diff --git a/tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_isolatedModules(target=es2015).js b/tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_isolatedModules(target=es2015).js new file mode 100644 index 0000000000000..1602bbaa6f156 --- /dev/null +++ b/tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_isolatedModules(target=es2015).js @@ -0,0 +1,44 @@ +//// [tests/cases/compiler/blockScopedEnumVariablesUseBeforeDef_isolatedModules.ts] //// + +//// [blockScopedEnumVariablesUseBeforeDef_isolatedModules.ts] +function foo1() { + return E.A + enum E { A } +} + +function foo2() { + return E.A + const enum E { A } +} + +const config = { + a: AfterObject.A, +}; + +const enum AfterObject { + A = 2, +} + + +//// [blockScopedEnumVariablesUseBeforeDef_isolatedModules.js] +function foo1() { + return E.A; + let E; + (function (E) { + E[E["A"] = 0] = "A"; + })(E || (E = {})); +} +function foo2() { + return E.A; + let E; + (function (E) { + E[E["A"] = 0] = "A"; + })(E || (E = {})); +} +const config = { + a: AfterObject.A, +}; +var AfterObject; +(function (AfterObject) { + AfterObject[AfterObject["A"] = 2] = "A"; +})(AfterObject || (AfterObject = {})); diff --git a/tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_isolatedModules.symbols b/tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_isolatedModules(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_isolatedModules.symbols rename to tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_isolatedModules(target=es2015).symbols diff --git a/tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_isolatedModules.types b/tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_isolatedModules(target=es2015).types similarity index 100% rename from tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_isolatedModules.types rename to tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_isolatedModules(target=es2015).types diff --git a/tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_isolatedModules(target=es5).errors.txt b/tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_isolatedModules(target=es5).errors.txt new file mode 100644 index 0000000000000..99a0a42f86099 --- /dev/null +++ b/tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_isolatedModules(target=es5).errors.txt @@ -0,0 +1,33 @@ +blockScopedEnumVariablesUseBeforeDef_isolatedModules.ts(2,12): error TS2450: Enum 'E' used before its declaration. +blockScopedEnumVariablesUseBeforeDef_isolatedModules.ts(7,12): error TS2450: Enum 'E' used before its declaration. +blockScopedEnumVariablesUseBeforeDef_isolatedModules.ts(12,8): error TS2450: Enum 'AfterObject' used before its declaration. + + +==== blockScopedEnumVariablesUseBeforeDef_isolatedModules.ts (3 errors) ==== + function foo1() { + return E.A + ~ +!!! error TS2450: Enum 'E' used before its declaration. +!!! related TS2728 blockScopedEnumVariablesUseBeforeDef_isolatedModules.ts:3:10: 'E' is declared here. + enum E { A } + } + + function foo2() { + return E.A + ~ +!!! error TS2450: Enum 'E' used before its declaration. +!!! related TS2728 blockScopedEnumVariablesUseBeforeDef_isolatedModules.ts:8:16: 'E' is declared here. + const enum E { A } + } + + const config = { + a: AfterObject.A, + ~~~~~~~~~~~ +!!! error TS2450: Enum 'AfterObject' used before its declaration. +!!! related TS2728 blockScopedEnumVariablesUseBeforeDef_isolatedModules.ts:15:12: 'AfterObject' is declared here. + }; + + const enum AfterObject { + A = 2, + } + \ No newline at end of file diff --git a/tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_isolatedModules.js b/tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_isolatedModules(target=es5).js similarity index 100% rename from tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_isolatedModules.js rename to tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_isolatedModules(target=es5).js diff --git a/tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_isolatedModules(target=es5).symbols b/tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_isolatedModules(target=es5).symbols new file mode 100644 index 0000000000000..2269e82f4fc8f --- /dev/null +++ b/tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_isolatedModules(target=es5).symbols @@ -0,0 +1,47 @@ +//// [tests/cases/compiler/blockScopedEnumVariablesUseBeforeDef_isolatedModules.ts] //// + +=== blockScopedEnumVariablesUseBeforeDef_isolatedModules.ts === +function foo1() { +>foo1 : Symbol(foo1, Decl(blockScopedEnumVariablesUseBeforeDef_isolatedModules.ts, 0, 0)) + + return E.A +>E.A : Symbol(E.A, Decl(blockScopedEnumVariablesUseBeforeDef_isolatedModules.ts, 2, 12)) +>E : Symbol(E, Decl(blockScopedEnumVariablesUseBeforeDef_isolatedModules.ts, 1, 14)) +>A : Symbol(E.A, Decl(blockScopedEnumVariablesUseBeforeDef_isolatedModules.ts, 2, 12)) + + enum E { A } +>E : Symbol(E, Decl(blockScopedEnumVariablesUseBeforeDef_isolatedModules.ts, 1, 14)) +>A : Symbol(E.A, Decl(blockScopedEnumVariablesUseBeforeDef_isolatedModules.ts, 2, 12)) +} + +function foo2() { +>foo2 : Symbol(foo2, Decl(blockScopedEnumVariablesUseBeforeDef_isolatedModules.ts, 3, 1)) + + return E.A +>E.A : Symbol(E.A, Decl(blockScopedEnumVariablesUseBeforeDef_isolatedModules.ts, 7, 18)) +>E : Symbol(E, Decl(blockScopedEnumVariablesUseBeforeDef_isolatedModules.ts, 6, 14)) +>A : Symbol(E.A, Decl(blockScopedEnumVariablesUseBeforeDef_isolatedModules.ts, 7, 18)) + + const enum E { A } +>E : Symbol(E, Decl(blockScopedEnumVariablesUseBeforeDef_isolatedModules.ts, 6, 14)) +>A : Symbol(E.A, Decl(blockScopedEnumVariablesUseBeforeDef_isolatedModules.ts, 7, 18)) +} + +const config = { +>config : Symbol(config, Decl(blockScopedEnumVariablesUseBeforeDef_isolatedModules.ts, 10, 5)) + + a: AfterObject.A, +>a : Symbol(a, Decl(blockScopedEnumVariablesUseBeforeDef_isolatedModules.ts, 10, 16)) +>AfterObject.A : Symbol(AfterObject.A, Decl(blockScopedEnumVariablesUseBeforeDef_isolatedModules.ts, 14, 24)) +>AfterObject : Symbol(AfterObject, Decl(blockScopedEnumVariablesUseBeforeDef_isolatedModules.ts, 12, 2)) +>A : Symbol(AfterObject.A, Decl(blockScopedEnumVariablesUseBeforeDef_isolatedModules.ts, 14, 24)) + +}; + +const enum AfterObject { +>AfterObject : Symbol(AfterObject, Decl(blockScopedEnumVariablesUseBeforeDef_isolatedModules.ts, 12, 2)) + + A = 2, +>A : Symbol(AfterObject.A, Decl(blockScopedEnumVariablesUseBeforeDef_isolatedModules.ts, 14, 24)) +} + diff --git a/tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_isolatedModules(target=es5).types b/tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_isolatedModules(target=es5).types new file mode 100644 index 0000000000000..f0716c8c34fc4 --- /dev/null +++ b/tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_isolatedModules(target=es5).types @@ -0,0 +1,70 @@ +//// [tests/cases/compiler/blockScopedEnumVariablesUseBeforeDef_isolatedModules.ts] //// + +=== blockScopedEnumVariablesUseBeforeDef_isolatedModules.ts === +function foo1() { +>foo1 : () => E +> : ^^^^^^^ + + return E.A +>E.A : E +> : ^ +>E : typeof E +> : ^^^^^^^^ +>A : E +> : ^ + + enum E { A } +>E : E +> : ^ +>A : E.A +> : ^^^ +} + +function foo2() { +>foo2 : () => E +> : ^^^^^^^ + + return E.A +>E.A : E +> : ^ +>E : typeof E +> : ^^^^^^^^ +>A : E +> : ^ + + const enum E { A } +>E : E +> : ^ +>A : E.A +> : ^^^ +} + +const config = { +>config : { a: AfterObject; } +> : ^^^^^^^^^^^^^^^^^^^ +>{ a: AfterObject.A,} : { a: AfterObject; } +> : ^^^^^^^^^^^^^^^^^^^ + + a: AfterObject.A, +>a : AfterObject +> : ^^^^^^^^^^^ +>AfterObject.A : AfterObject +> : ^^^^^^^^^^^ +>AfterObject : typeof AfterObject +> : ^^^^^^^^^^^^^^^^^^ +>A : AfterObject +> : ^^^^^^^^^^^ + +}; + +const enum AfterObject { +>AfterObject : AfterObject +> : ^^^^^^^^^^^ + + A = 2, +>A : AfterObject.A +> : ^^^^^^^^^^^^^ +>2 : 2 +> : ^ +} + diff --git a/tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_preserve.errors.txt b/tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_preserve(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_preserve.errors.txt rename to tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_preserve(target=es2015).errors.txt diff --git a/tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_preserve(target=es2015).js b/tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_preserve(target=es2015).js new file mode 100644 index 0000000000000..232102d52d865 --- /dev/null +++ b/tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_preserve(target=es2015).js @@ -0,0 +1,44 @@ +//// [tests/cases/compiler/blockScopedEnumVariablesUseBeforeDef_preserve.ts] //// + +//// [blockScopedEnumVariablesUseBeforeDef_preserve.ts] +function foo1() { + return E.A + enum E { A } +} + +function foo2() { + return E.A + const enum E { A } +} + +const config = { + a: AfterObject.A, +}; + +const enum AfterObject { + A = 2, +} + + +//// [blockScopedEnumVariablesUseBeforeDef_preserve.js] +function foo1() { + return E.A; + let E; + (function (E) { + E[E["A"] = 0] = "A"; + })(E || (E = {})); +} +function foo2() { + return 0 /* E.A */; + let E; + (function (E) { + E[E["A"] = 0] = "A"; + })(E || (E = {})); +} +const config = { + a: 2 /* AfterObject.A */, +}; +var AfterObject; +(function (AfterObject) { + AfterObject[AfterObject["A"] = 2] = "A"; +})(AfterObject || (AfterObject = {})); diff --git a/tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_preserve.symbols b/tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_preserve(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_preserve.symbols rename to tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_preserve(target=es2015).symbols diff --git a/tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_preserve.types b/tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_preserve(target=es2015).types similarity index 100% rename from tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_preserve.types rename to tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_preserve(target=es2015).types diff --git a/tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_preserve(target=es5).errors.txt b/tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_preserve(target=es5).errors.txt new file mode 100644 index 0000000000000..f5d55337e5395 --- /dev/null +++ b/tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_preserve(target=es5).errors.txt @@ -0,0 +1,25 @@ +blockScopedEnumVariablesUseBeforeDef_preserve.ts(2,12): error TS2450: Enum 'E' used before its declaration. + + +==== blockScopedEnumVariablesUseBeforeDef_preserve.ts (1 errors) ==== + function foo1() { + return E.A + ~ +!!! error TS2450: Enum 'E' used before its declaration. +!!! related TS2728 blockScopedEnumVariablesUseBeforeDef_preserve.ts:3:10: 'E' is declared here. + enum E { A } + } + + function foo2() { + return E.A + const enum E { A } + } + + const config = { + a: AfterObject.A, + }; + + const enum AfterObject { + A = 2, + } + \ No newline at end of file diff --git a/tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_preserve.js b/tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_preserve(target=es5).js similarity index 100% rename from tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_preserve.js rename to tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_preserve(target=es5).js diff --git a/tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_preserve(target=es5).symbols b/tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_preserve(target=es5).symbols new file mode 100644 index 0000000000000..d90149cf7b8a0 --- /dev/null +++ b/tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_preserve(target=es5).symbols @@ -0,0 +1,47 @@ +//// [tests/cases/compiler/blockScopedEnumVariablesUseBeforeDef_preserve.ts] //// + +=== blockScopedEnumVariablesUseBeforeDef_preserve.ts === +function foo1() { +>foo1 : Symbol(foo1, Decl(blockScopedEnumVariablesUseBeforeDef_preserve.ts, 0, 0)) + + return E.A +>E.A : Symbol(E.A, Decl(blockScopedEnumVariablesUseBeforeDef_preserve.ts, 2, 12)) +>E : Symbol(E, Decl(blockScopedEnumVariablesUseBeforeDef_preserve.ts, 1, 14)) +>A : Symbol(E.A, Decl(blockScopedEnumVariablesUseBeforeDef_preserve.ts, 2, 12)) + + enum E { A } +>E : Symbol(E, Decl(blockScopedEnumVariablesUseBeforeDef_preserve.ts, 1, 14)) +>A : Symbol(E.A, Decl(blockScopedEnumVariablesUseBeforeDef_preserve.ts, 2, 12)) +} + +function foo2() { +>foo2 : Symbol(foo2, Decl(blockScopedEnumVariablesUseBeforeDef_preserve.ts, 3, 1)) + + return E.A +>E.A : Symbol(E.A, Decl(blockScopedEnumVariablesUseBeforeDef_preserve.ts, 7, 18)) +>E : Symbol(E, Decl(blockScopedEnumVariablesUseBeforeDef_preserve.ts, 6, 14)) +>A : Symbol(E.A, Decl(blockScopedEnumVariablesUseBeforeDef_preserve.ts, 7, 18)) + + const enum E { A } +>E : Symbol(E, Decl(blockScopedEnumVariablesUseBeforeDef_preserve.ts, 6, 14)) +>A : Symbol(E.A, Decl(blockScopedEnumVariablesUseBeforeDef_preserve.ts, 7, 18)) +} + +const config = { +>config : Symbol(config, Decl(blockScopedEnumVariablesUseBeforeDef_preserve.ts, 10, 5)) + + a: AfterObject.A, +>a : Symbol(a, Decl(blockScopedEnumVariablesUseBeforeDef_preserve.ts, 10, 16)) +>AfterObject.A : Symbol(AfterObject.A, Decl(blockScopedEnumVariablesUseBeforeDef_preserve.ts, 14, 24)) +>AfterObject : Symbol(AfterObject, Decl(blockScopedEnumVariablesUseBeforeDef_preserve.ts, 12, 2)) +>A : Symbol(AfterObject.A, Decl(blockScopedEnumVariablesUseBeforeDef_preserve.ts, 14, 24)) + +}; + +const enum AfterObject { +>AfterObject : Symbol(AfterObject, Decl(blockScopedEnumVariablesUseBeforeDef_preserve.ts, 12, 2)) + + A = 2, +>A : Symbol(AfterObject.A, Decl(blockScopedEnumVariablesUseBeforeDef_preserve.ts, 14, 24)) +} + diff --git a/tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_preserve(target=es5).types b/tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_preserve(target=es5).types new file mode 100644 index 0000000000000..ad540e031d0bd --- /dev/null +++ b/tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_preserve(target=es5).types @@ -0,0 +1,70 @@ +//// [tests/cases/compiler/blockScopedEnumVariablesUseBeforeDef_preserve.ts] //// + +=== blockScopedEnumVariablesUseBeforeDef_preserve.ts === +function foo1() { +>foo1 : () => E +> : ^^^^^^^ + + return E.A +>E.A : E +> : ^ +>E : typeof E +> : ^^^^^^^^ +>A : E +> : ^ + + enum E { A } +>E : E +> : ^ +>A : E.A +> : ^^^ +} + +function foo2() { +>foo2 : () => E +> : ^^^^^^^ + + return E.A +>E.A : E +> : ^ +>E : typeof E +> : ^^^^^^^^ +>A : E +> : ^ + + const enum E { A } +>E : E +> : ^ +>A : E.A +> : ^^^ +} + +const config = { +>config : { a: AfterObject; } +> : ^^^^^^^^^^^^^^^^^^^ +>{ a: AfterObject.A,} : { a: AfterObject; } +> : ^^^^^^^^^^^^^^^^^^^ + + a: AfterObject.A, +>a : AfterObject +> : ^^^^^^^^^^^ +>AfterObject.A : AfterObject +> : ^^^^^^^^^^^ +>AfterObject : typeof AfterObject +> : ^^^^^^^^^^^^^^^^^^ +>A : AfterObject +> : ^^^^^^^^^^^ + +}; + +const enum AfterObject { +>AfterObject : AfterObject +> : ^^^^^^^^^^^ + + A = 2, +>A : AfterObject.A +> : ^^^^^^^^^^^^^ +>2 : 2 +> : ^ +} + diff --git a/tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax.errors.txt b/tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax.errors.txt rename to tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax(target=es2015).errors.txt diff --git a/tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax(target=es2015).js b/tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax(target=es2015).js new file mode 100644 index 0000000000000..508dc616c145b --- /dev/null +++ b/tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax(target=es2015).js @@ -0,0 +1,44 @@ +//// [tests/cases/compiler/blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax.ts] //// + +//// [blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax.ts] +function foo1() { + return E.A + enum E { A } +} + +function foo2() { + return E.A + const enum E { A } +} + +const config = { + a: AfterObject.A, +}; + +const enum AfterObject { + A = 2, +} + + +//// [blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax.js] +function foo1() { + return E.A; + let E; + (function (E) { + E[E["A"] = 0] = "A"; + })(E || (E = {})); +} +function foo2() { + return E.A; + let E; + (function (E) { + E[E["A"] = 0] = "A"; + })(E || (E = {})); +} +const config = { + a: AfterObject.A, +}; +var AfterObject; +(function (AfterObject) { + AfterObject[AfterObject["A"] = 2] = "A"; +})(AfterObject || (AfterObject = {})); diff --git a/tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax.symbols b/tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax.symbols rename to tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax(target=es2015).symbols diff --git a/tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax.types b/tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax(target=es2015).types similarity index 100% rename from tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax.types rename to tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax(target=es2015).types diff --git a/tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax(target=es5).errors.txt b/tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax(target=es5).errors.txt new file mode 100644 index 0000000000000..d3059e8840ae4 --- /dev/null +++ b/tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax(target=es5).errors.txt @@ -0,0 +1,33 @@ +blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax.ts(2,12): error TS2450: Enum 'E' used before its declaration. +blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax.ts(7,12): error TS2450: Enum 'E' used before its declaration. +blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax.ts(12,8): error TS2450: Enum 'AfterObject' used before its declaration. + + +==== blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax.ts (3 errors) ==== + function foo1() { + return E.A + ~ +!!! error TS2450: Enum 'E' used before its declaration. +!!! related TS2728 blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax.ts:3:10: 'E' is declared here. + enum E { A } + } + + function foo2() { + return E.A + ~ +!!! error TS2450: Enum 'E' used before its declaration. +!!! related TS2728 blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax.ts:8:16: 'E' is declared here. + const enum E { A } + } + + const config = { + a: AfterObject.A, + ~~~~~~~~~~~ +!!! error TS2450: Enum 'AfterObject' used before its declaration. +!!! related TS2728 blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax.ts:15:12: 'AfterObject' is declared here. + }; + + const enum AfterObject { + A = 2, + } + \ No newline at end of file diff --git a/tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax.js b/tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax(target=es5).js similarity index 100% rename from tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax.js rename to tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax(target=es5).js diff --git a/tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax(target=es5).symbols b/tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax(target=es5).symbols new file mode 100644 index 0000000000000..967db9a58c3ee --- /dev/null +++ b/tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax(target=es5).symbols @@ -0,0 +1,47 @@ +//// [tests/cases/compiler/blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax.ts] //// + +=== blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax.ts === +function foo1() { +>foo1 : Symbol(foo1, Decl(blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax.ts, 0, 0)) + + return E.A +>E.A : Symbol(E.A, Decl(blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax.ts, 2, 12)) +>E : Symbol(E, Decl(blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax.ts, 1, 14)) +>A : Symbol(E.A, Decl(blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax.ts, 2, 12)) + + enum E { A } +>E : Symbol(E, Decl(blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax.ts, 1, 14)) +>A : Symbol(E.A, Decl(blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax.ts, 2, 12)) +} + +function foo2() { +>foo2 : Symbol(foo2, Decl(blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax.ts, 3, 1)) + + return E.A +>E.A : Symbol(E.A, Decl(blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax.ts, 7, 18)) +>E : Symbol(E, Decl(blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax.ts, 6, 14)) +>A : Symbol(E.A, Decl(blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax.ts, 7, 18)) + + const enum E { A } +>E : Symbol(E, Decl(blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax.ts, 6, 14)) +>A : Symbol(E.A, Decl(blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax.ts, 7, 18)) +} + +const config = { +>config : Symbol(config, Decl(blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax.ts, 10, 5)) + + a: AfterObject.A, +>a : Symbol(a, Decl(blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax.ts, 10, 16)) +>AfterObject.A : Symbol(AfterObject.A, Decl(blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax.ts, 14, 24)) +>AfterObject : Symbol(AfterObject, Decl(blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax.ts, 12, 2)) +>A : Symbol(AfterObject.A, Decl(blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax.ts, 14, 24)) + +}; + +const enum AfterObject { +>AfterObject : Symbol(AfterObject, Decl(blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax.ts, 12, 2)) + + A = 2, +>A : Symbol(AfterObject.A, Decl(blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax.ts, 14, 24)) +} + diff --git a/tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax(target=es5).types b/tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax(target=es5).types new file mode 100644 index 0000000000000..b367406abb223 --- /dev/null +++ b/tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax(target=es5).types @@ -0,0 +1,70 @@ +//// [tests/cases/compiler/blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax.ts] //// + +=== blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax.ts === +function foo1() { +>foo1 : () => E +> : ^^^^^^^ + + return E.A +>E.A : E +> : ^ +>E : typeof E +> : ^^^^^^^^ +>A : E +> : ^ + + enum E { A } +>E : E +> : ^ +>A : E.A +> : ^^^ +} + +function foo2() { +>foo2 : () => E +> : ^^^^^^^ + + return E.A +>E.A : E +> : ^ +>E : typeof E +> : ^^^^^^^^ +>A : E +> : ^ + + const enum E { A } +>E : E +> : ^ +>A : E.A +> : ^^^ +} + +const config = { +>config : { a: AfterObject; } +> : ^^^^^^^^^^^^^^^^^^^ +>{ a: AfterObject.A,} : { a: AfterObject; } +> : ^^^^^^^^^^^^^^^^^^^ + + a: AfterObject.A, +>a : AfterObject +> : ^^^^^^^^^^^ +>AfterObject.A : AfterObject +> : ^^^^^^^^^^^ +>AfterObject : typeof AfterObject +> : ^^^^^^^^^^^^^^^^^^ +>A : AfterObject +> : ^^^^^^^^^^^ + +}; + +const enum AfterObject { +>AfterObject : AfterObject +> : ^^^^^^^^^^^ + + A = 2, +>A : AfterObject.A +> : ^^^^^^^^^^^^^ +>2 : 2 +> : ^ +} + diff --git a/tests/baselines/reference/blockScopedFunctionDeclarationES5.js b/tests/baselines/reference/blockScopedFunctionDeclarationES5(target=es2015).js similarity index 100% rename from tests/baselines/reference/blockScopedFunctionDeclarationES5.js rename to tests/baselines/reference/blockScopedFunctionDeclarationES5(target=es2015).js diff --git a/tests/baselines/reference/blockScopedFunctionDeclarationES5.symbols b/tests/baselines/reference/blockScopedFunctionDeclarationES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/blockScopedFunctionDeclarationES5.symbols rename to tests/baselines/reference/blockScopedFunctionDeclarationES5(target=es2015).symbols diff --git a/tests/baselines/reference/blockScopedFunctionDeclarationES5.types b/tests/baselines/reference/blockScopedFunctionDeclarationES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/blockScopedFunctionDeclarationES5.types rename to tests/baselines/reference/blockScopedFunctionDeclarationES5(target=es2015).types diff --git a/tests/baselines/reference/blockScopedFunctionDeclarationES5(target=es5).js b/tests/baselines/reference/blockScopedFunctionDeclarationES5(target=es5).js new file mode 100644 index 0000000000000..4c0498586ae03 --- /dev/null +++ b/tests/baselines/reference/blockScopedFunctionDeclarationES5(target=es5).js @@ -0,0 +1,15 @@ +//// [tests/cases/compiler/blockScopedFunctionDeclarationES5.ts] //// + +//// [blockScopedFunctionDeclarationES5.ts] +if (true) { + function foo() { } + foo(); +} +foo(); + +//// [blockScopedFunctionDeclarationES5.js] +if (true) { + function foo() { } + foo(); +} +foo(); diff --git a/tests/baselines/reference/blockScopedFunctionDeclarationES5(target=es5).symbols b/tests/baselines/reference/blockScopedFunctionDeclarationES5(target=es5).symbols new file mode 100644 index 0000000000000..7a4653165a1e3 --- /dev/null +++ b/tests/baselines/reference/blockScopedFunctionDeclarationES5(target=es5).symbols @@ -0,0 +1,13 @@ +//// [tests/cases/compiler/blockScopedFunctionDeclarationES5.ts] //// + +=== blockScopedFunctionDeclarationES5.ts === +if (true) { + function foo() { } +>foo : Symbol(foo, Decl(blockScopedFunctionDeclarationES5.ts, 0, 11)) + + foo(); +>foo : Symbol(foo, Decl(blockScopedFunctionDeclarationES5.ts, 0, 11)) +} +foo(); +>foo : Symbol(foo, Decl(blockScopedFunctionDeclarationES5.ts, 0, 11)) + diff --git a/tests/baselines/reference/blockScopedFunctionDeclarationES5(target=es5).types b/tests/baselines/reference/blockScopedFunctionDeclarationES5(target=es5).types new file mode 100644 index 0000000000000..5edf7f7fdf725 --- /dev/null +++ b/tests/baselines/reference/blockScopedFunctionDeclarationES5(target=es5).types @@ -0,0 +1,23 @@ +//// [tests/cases/compiler/blockScopedFunctionDeclarationES5.ts] //// + +=== blockScopedFunctionDeclarationES5.ts === +if (true) { +>true : true +> : ^^^^ + + function foo() { } +>foo : () => void +> : ^^^^^^^^^^ + + foo(); +>foo() : void +> : ^^^^ +>foo : () => void +> : ^^^^^^^^^^ +} +foo(); +>foo() : void +> : ^^^^ +>foo : () => void +> : ^^^^^^^^^^ + diff --git a/tests/baselines/reference/blockScopedFunctionDeclarationInStrictClass(target=es2015).errors.txt b/tests/baselines/reference/blockScopedFunctionDeclarationInStrictClass(target=es2015).errors.txt new file mode 100644 index 0000000000000..0fcc185589055 --- /dev/null +++ b/tests/baselines/reference/blockScopedFunctionDeclarationInStrictClass(target=es2015).errors.txt @@ -0,0 +1,15 @@ +blockScopedFunctionDeclarationInStrictClass.ts(7,9): error TS2304: Cannot find name 'foo'. + + +==== blockScopedFunctionDeclarationInStrictClass.ts (1 errors) ==== + class c { + method() { + if (true) { + function foo() { } + foo(); // ok + } + foo(); // not ok + ~~~ +!!! error TS2304: Cannot find name 'foo'. + } + } \ No newline at end of file diff --git a/tests/baselines/reference/blockScopedFunctionDeclarationInStrictClass(target=es2015).js b/tests/baselines/reference/blockScopedFunctionDeclarationInStrictClass(target=es2015).js new file mode 100644 index 0000000000000..48753edde7b2c --- /dev/null +++ b/tests/baselines/reference/blockScopedFunctionDeclarationInStrictClass(target=es2015).js @@ -0,0 +1,23 @@ +//// [tests/cases/compiler/blockScopedFunctionDeclarationInStrictClass.ts] //// + +//// [blockScopedFunctionDeclarationInStrictClass.ts] +class c { + method() { + if (true) { + function foo() { } + foo(); // ok + } + foo(); // not ok + } +} + +//// [blockScopedFunctionDeclarationInStrictClass.js] +class c { + method() { + if (true) { + function foo() { } + foo(); // ok + } + foo(); // not ok + } +} diff --git a/tests/baselines/reference/blockScopedFunctionDeclarationInStrictClass.symbols b/tests/baselines/reference/blockScopedFunctionDeclarationInStrictClass(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/blockScopedFunctionDeclarationInStrictClass.symbols rename to tests/baselines/reference/blockScopedFunctionDeclarationInStrictClass(target=es2015).symbols diff --git a/tests/baselines/reference/blockScopedFunctionDeclarationInStrictClass.types b/tests/baselines/reference/blockScopedFunctionDeclarationInStrictClass(target=es2015).types similarity index 100% rename from tests/baselines/reference/blockScopedFunctionDeclarationInStrictClass.types rename to tests/baselines/reference/blockScopedFunctionDeclarationInStrictClass(target=es2015).types diff --git a/tests/baselines/reference/blockScopedFunctionDeclarationInStrictClass.errors.txt b/tests/baselines/reference/blockScopedFunctionDeclarationInStrictClass(target=es5).errors.txt similarity index 100% rename from tests/baselines/reference/blockScopedFunctionDeclarationInStrictClass.errors.txt rename to tests/baselines/reference/blockScopedFunctionDeclarationInStrictClass(target=es5).errors.txt diff --git a/tests/baselines/reference/blockScopedFunctionDeclarationInStrictClass.js b/tests/baselines/reference/blockScopedFunctionDeclarationInStrictClass(target=es5).js similarity index 100% rename from tests/baselines/reference/blockScopedFunctionDeclarationInStrictClass.js rename to tests/baselines/reference/blockScopedFunctionDeclarationInStrictClass(target=es5).js diff --git a/tests/baselines/reference/blockScopedFunctionDeclarationInStrictClass(target=es5).symbols b/tests/baselines/reference/blockScopedFunctionDeclarationInStrictClass(target=es5).symbols new file mode 100644 index 0000000000000..efec13245ab81 --- /dev/null +++ b/tests/baselines/reference/blockScopedFunctionDeclarationInStrictClass(target=es5).symbols @@ -0,0 +1,19 @@ +//// [tests/cases/compiler/blockScopedFunctionDeclarationInStrictClass.ts] //// + +=== blockScopedFunctionDeclarationInStrictClass.ts === +class c { +>c : Symbol(c, Decl(blockScopedFunctionDeclarationInStrictClass.ts, 0, 0)) + + method() { +>method : Symbol(c.method, Decl(blockScopedFunctionDeclarationInStrictClass.ts, 0, 9)) + + if (true) { + function foo() { } +>foo : Symbol(foo, Decl(blockScopedFunctionDeclarationInStrictClass.ts, 2, 19)) + + foo(); // ok +>foo : Symbol(foo, Decl(blockScopedFunctionDeclarationInStrictClass.ts, 2, 19)) + } + foo(); // not ok + } +} diff --git a/tests/baselines/reference/blockScopedFunctionDeclarationInStrictClass(target=es5).types b/tests/baselines/reference/blockScopedFunctionDeclarationInStrictClass(target=es5).types new file mode 100644 index 0000000000000..eef16d46a4ba3 --- /dev/null +++ b/tests/baselines/reference/blockScopedFunctionDeclarationInStrictClass(target=es5).types @@ -0,0 +1,32 @@ +//// [tests/cases/compiler/blockScopedFunctionDeclarationInStrictClass.ts] //// + +=== blockScopedFunctionDeclarationInStrictClass.ts === +class c { +>c : c +> : ^ + + method() { +>method : () => void +> : ^^^^^^^^^^ + + if (true) { +>true : true +> : ^^^^ + + function foo() { } +>foo : () => void +> : ^^^^^^^^^^ + + foo(); // ok +>foo() : void +> : ^^^^ +>foo : () => void +> : ^^^^^^^^^^ + } + foo(); // not ok +>foo() : any +> : ^^^ +>foo : any +> : ^^^ + } +} diff --git a/tests/baselines/reference/blockScopedFunctionDeclarationStrictES5(target=es2015).errors.txt b/tests/baselines/reference/blockScopedFunctionDeclarationStrictES5(target=es2015).errors.txt new file mode 100644 index 0000000000000..120e1f45d585f --- /dev/null +++ b/tests/baselines/reference/blockScopedFunctionDeclarationStrictES5(target=es2015).errors.txt @@ -0,0 +1,12 @@ +blockScopedFunctionDeclarationStrictES5.ts(6,1): error TS2304: Cannot find name 'foo'. + + +==== blockScopedFunctionDeclarationStrictES5.ts (1 errors) ==== + "use strict"; + if (true) { + function foo() { } // Error to declare function in block scope + foo(); // This call should be ok + } + foo(); // Error to find name foo + ~~~ +!!! error TS2304: Cannot find name 'foo'. \ No newline at end of file diff --git a/tests/baselines/reference/blockScopedFunctionDeclarationStrictES5.js b/tests/baselines/reference/blockScopedFunctionDeclarationStrictES5(target=es2015).js similarity index 100% rename from tests/baselines/reference/blockScopedFunctionDeclarationStrictES5.js rename to tests/baselines/reference/blockScopedFunctionDeclarationStrictES5(target=es2015).js diff --git a/tests/baselines/reference/blockScopedFunctionDeclarationStrictES5.symbols b/tests/baselines/reference/blockScopedFunctionDeclarationStrictES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/blockScopedFunctionDeclarationStrictES5.symbols rename to tests/baselines/reference/blockScopedFunctionDeclarationStrictES5(target=es2015).symbols diff --git a/tests/baselines/reference/blockScopedFunctionDeclarationStrictES5.types b/tests/baselines/reference/blockScopedFunctionDeclarationStrictES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/blockScopedFunctionDeclarationStrictES5.types rename to tests/baselines/reference/blockScopedFunctionDeclarationStrictES5(target=es2015).types diff --git a/tests/baselines/reference/blockScopedFunctionDeclarationStrictES5.errors.txt b/tests/baselines/reference/blockScopedFunctionDeclarationStrictES5(target=es5).errors.txt similarity index 100% rename from tests/baselines/reference/blockScopedFunctionDeclarationStrictES5.errors.txt rename to tests/baselines/reference/blockScopedFunctionDeclarationStrictES5(target=es5).errors.txt diff --git a/tests/baselines/reference/blockScopedFunctionDeclarationStrictES5(target=es5).js b/tests/baselines/reference/blockScopedFunctionDeclarationStrictES5(target=es5).js new file mode 100644 index 0000000000000..c36a70c019bde --- /dev/null +++ b/tests/baselines/reference/blockScopedFunctionDeclarationStrictES5(target=es5).js @@ -0,0 +1,17 @@ +//// [tests/cases/compiler/blockScopedFunctionDeclarationStrictES5.ts] //// + +//// [blockScopedFunctionDeclarationStrictES5.ts] +"use strict"; +if (true) { + function foo() { } // Error to declare function in block scope + foo(); // This call should be ok +} +foo(); // Error to find name foo + +//// [blockScopedFunctionDeclarationStrictES5.js] +"use strict"; +if (true) { + function foo() { } // Error to declare function in block scope + foo(); // This call should be ok +} +foo(); // Error to find name foo diff --git a/tests/baselines/reference/blockScopedFunctionDeclarationStrictES5(target=es5).symbols b/tests/baselines/reference/blockScopedFunctionDeclarationStrictES5(target=es5).symbols new file mode 100644 index 0000000000000..9522429650b43 --- /dev/null +++ b/tests/baselines/reference/blockScopedFunctionDeclarationStrictES5(target=es5).symbols @@ -0,0 +1,12 @@ +//// [tests/cases/compiler/blockScopedFunctionDeclarationStrictES5.ts] //// + +=== blockScopedFunctionDeclarationStrictES5.ts === +"use strict"; +if (true) { + function foo() { } // Error to declare function in block scope +>foo : Symbol(foo, Decl(blockScopedFunctionDeclarationStrictES5.ts, 1, 11)) + + foo(); // This call should be ok +>foo : Symbol(foo, Decl(blockScopedFunctionDeclarationStrictES5.ts, 1, 11)) +} +foo(); // Error to find name foo diff --git a/tests/baselines/reference/blockScopedFunctionDeclarationStrictES5(target=es5).types b/tests/baselines/reference/blockScopedFunctionDeclarationStrictES5(target=es5).types new file mode 100644 index 0000000000000..9bb01aad3ef21 --- /dev/null +++ b/tests/baselines/reference/blockScopedFunctionDeclarationStrictES5(target=es5).types @@ -0,0 +1,27 @@ +//// [tests/cases/compiler/blockScopedFunctionDeclarationStrictES5.ts] //// + +=== blockScopedFunctionDeclarationStrictES5.ts === +"use strict"; +>"use strict" : "use strict" +> : ^^^^^^^^^^^^ + +if (true) { +>true : true +> : ^^^^ + + function foo() { } // Error to declare function in block scope +>foo : () => void +> : ^^^^^^^^^^ + + foo(); // This call should be ok +>foo() : void +> : ^^^^ +>foo : () => void +> : ^^^^^^^^^^ +} +foo(); // Error to find name foo +>foo() : any +> : ^^^ +>foo : any +> : ^^^ + diff --git a/tests/baselines/reference/blockScopedNamespaceDifferentFile.errors.txt b/tests/baselines/reference/blockScopedNamespaceDifferentFile(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/blockScopedNamespaceDifferentFile.errors.txt rename to tests/baselines/reference/blockScopedNamespaceDifferentFile(target=es2015).errors.txt diff --git a/tests/baselines/reference/blockScopedNamespaceDifferentFile(target=es2015).js b/tests/baselines/reference/blockScopedNamespaceDifferentFile(target=es2015).js new file mode 100644 index 0000000000000..f1ff6ca37c8f2 --- /dev/null +++ b/tests/baselines/reference/blockScopedNamespaceDifferentFile(target=es2015).js @@ -0,0 +1,31 @@ +//// [tests/cases/compiler/blockScopedNamespaceDifferentFile.ts] //// + +//// [test.ts] +namespace C { + export class Name { + static funcData = A.AA.func(); + static someConst = A.AA.foo; + + constructor(parameters) {} + } +} + +//// [typings.d.ts] +declare namespace A { + namespace AA { + function func(): number; + const foo = ""; + } +} + + +//// [out.js] +var C; +(function (C) { + class Name { + constructor(parameters) { } + } + Name.funcData = A.AA.func(); + Name.someConst = A.AA.foo; + C.Name = Name; +})(C || (C = {})); diff --git a/tests/baselines/reference/blockScopedNamespaceDifferentFile.symbols b/tests/baselines/reference/blockScopedNamespaceDifferentFile(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/blockScopedNamespaceDifferentFile.symbols rename to tests/baselines/reference/blockScopedNamespaceDifferentFile(target=es2015).symbols diff --git a/tests/baselines/reference/blockScopedNamespaceDifferentFile.types b/tests/baselines/reference/blockScopedNamespaceDifferentFile(target=es2015).types similarity index 100% rename from tests/baselines/reference/blockScopedNamespaceDifferentFile.types rename to tests/baselines/reference/blockScopedNamespaceDifferentFile(target=es2015).types diff --git a/tests/baselines/reference/blockScopedNamespaceDifferentFile(target=es5).errors.txt b/tests/baselines/reference/blockScopedNamespaceDifferentFile(target=es5).errors.txt new file mode 100644 index 0000000000000..dc3f899b5a225 --- /dev/null +++ b/tests/baselines/reference/blockScopedNamespaceDifferentFile(target=es5).errors.txt @@ -0,0 +1,24 @@ +error TS5101: Option 'outFile' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5101: Option 'outFile' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== test.ts (0 errors) ==== + namespace C { + export class Name { + static funcData = A.AA.func(); + static someConst = A.AA.foo; + + constructor(parameters) {} + } + } + +==== typings.d.ts (0 errors) ==== + declare namespace A { + namespace AA { + function func(): number; + const foo = ""; + } + } + \ No newline at end of file diff --git a/tests/baselines/reference/blockScopedNamespaceDifferentFile.js b/tests/baselines/reference/blockScopedNamespaceDifferentFile(target=es5).js similarity index 100% rename from tests/baselines/reference/blockScopedNamespaceDifferentFile.js rename to tests/baselines/reference/blockScopedNamespaceDifferentFile(target=es5).js diff --git a/tests/baselines/reference/blockScopedNamespaceDifferentFile(target=es5).symbols b/tests/baselines/reference/blockScopedNamespaceDifferentFile(target=es5).symbols new file mode 100644 index 0000000000000..565eb550cddd2 --- /dev/null +++ b/tests/baselines/reference/blockScopedNamespaceDifferentFile(target=es5).symbols @@ -0,0 +1,45 @@ +//// [tests/cases/compiler/blockScopedNamespaceDifferentFile.ts] //// + +=== test.ts === +namespace C { +>C : Symbol(C, Decl(test.ts, 0, 0)) + + export class Name { +>Name : Symbol(Name, Decl(test.ts, 0, 13)) + + static funcData = A.AA.func(); +>funcData : Symbol(Name.funcData, Decl(test.ts, 1, 23)) +>A.AA.func : Symbol(A.AA.func, Decl(typings.d.ts, 1, 18)) +>A.AA : Symbol(A.AA, Decl(typings.d.ts, 0, 21)) +>A : Symbol(A, Decl(typings.d.ts, 0, 0)) +>AA : Symbol(A.AA, Decl(typings.d.ts, 0, 21)) +>func : Symbol(A.AA.func, Decl(typings.d.ts, 1, 18)) + + static someConst = A.AA.foo; +>someConst : Symbol(Name.someConst, Decl(test.ts, 2, 38)) +>A.AA.foo : Symbol(A.AA.foo, Decl(typings.d.ts, 3, 13)) +>A.AA : Symbol(A.AA, Decl(typings.d.ts, 0, 21)) +>A : Symbol(A, Decl(typings.d.ts, 0, 0)) +>AA : Symbol(A.AA, Decl(typings.d.ts, 0, 21)) +>foo : Symbol(A.AA.foo, Decl(typings.d.ts, 3, 13)) + + constructor(parameters) {} +>parameters : Symbol(parameters, Decl(test.ts, 5, 20)) + } +} + +=== typings.d.ts === +declare namespace A { +>A : Symbol(A, Decl(typings.d.ts, 0, 0)) + + namespace AA { +>AA : Symbol(AA, Decl(typings.d.ts, 0, 21)) + + function func(): number; +>func : Symbol(func, Decl(typings.d.ts, 1, 18)) + + const foo = ""; +>foo : Symbol(foo, Decl(typings.d.ts, 3, 13)) + } +} + diff --git a/tests/baselines/reference/blockScopedNamespaceDifferentFile(target=es5).types b/tests/baselines/reference/blockScopedNamespaceDifferentFile(target=es5).types new file mode 100644 index 0000000000000..e64b0e174c0e6 --- /dev/null +++ b/tests/baselines/reference/blockScopedNamespaceDifferentFile(target=es5).types @@ -0,0 +1,68 @@ +//// [tests/cases/compiler/blockScopedNamespaceDifferentFile.ts] //// + +=== test.ts === +namespace C { +>C : typeof C +> : ^^^^^^^^ + + export class Name { +>Name : Name +> : ^^^^ + + static funcData = A.AA.func(); +>funcData : number +> : ^^^^^^ +>A.AA.func() : number +> : ^^^^^^ +>A.AA.func : () => number +> : ^^^^^^ +>A.AA : typeof A.AA +> : ^^^^^^^^^^^ +>A : typeof A +> : ^^^^^^^^ +>AA : typeof A.AA +> : ^^^^^^^^^^^ +>func : () => number +> : ^^^^^^ + + static someConst = A.AA.foo; +>someConst : string +> : ^^^^^^ +>A.AA.foo : "" +> : ^^ +>A.AA : typeof A.AA +> : ^^^^^^^^^^^ +>A : typeof A +> : ^^^^^^^^ +>AA : typeof A.AA +> : ^^^^^^^^^^^ +>foo : "" +> : ^^ + + constructor(parameters) {} +>parameters : any +> : ^^^ + } +} + +=== typings.d.ts === +declare namespace A { +>A : typeof A +> : ^^^^^^^^ + + namespace AA { +>AA : typeof AA +> : ^^^^^^^^^ + + function func(): number; +>func : () => number +> : ^^^^^^ + + const foo = ""; +>foo : "" +> : ^^ +>"" : "" +> : ^^ + } +} + diff --git a/tests/baselines/reference/blockScopedSameNameFunctionDeclarationES5.errors.txt b/tests/baselines/reference/blockScopedSameNameFunctionDeclarationES5(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/blockScopedSameNameFunctionDeclarationES5.errors.txt rename to tests/baselines/reference/blockScopedSameNameFunctionDeclarationES5(target=es2015).errors.txt diff --git a/tests/baselines/reference/blockScopedSameNameFunctionDeclarationES5.js b/tests/baselines/reference/blockScopedSameNameFunctionDeclarationES5(target=es2015).js similarity index 100% rename from tests/baselines/reference/blockScopedSameNameFunctionDeclarationES5.js rename to tests/baselines/reference/blockScopedSameNameFunctionDeclarationES5(target=es2015).js diff --git a/tests/baselines/reference/blockScopedSameNameFunctionDeclarationES5.symbols b/tests/baselines/reference/blockScopedSameNameFunctionDeclarationES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/blockScopedSameNameFunctionDeclarationES5.symbols rename to tests/baselines/reference/blockScopedSameNameFunctionDeclarationES5(target=es2015).symbols diff --git a/tests/baselines/reference/blockScopedSameNameFunctionDeclarationES5.types b/tests/baselines/reference/blockScopedSameNameFunctionDeclarationES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/blockScopedSameNameFunctionDeclarationES5.types rename to tests/baselines/reference/blockScopedSameNameFunctionDeclarationES5(target=es2015).types diff --git a/tests/baselines/reference/blockScopedSameNameFunctionDeclarationES5(target=es5).errors.txt b/tests/baselines/reference/blockScopedSameNameFunctionDeclarationES5(target=es5).errors.txt new file mode 100644 index 0000000000000..47b4cf9a063cf --- /dev/null +++ b/tests/baselines/reference/blockScopedSameNameFunctionDeclarationES5(target=es5).errors.txt @@ -0,0 +1,38 @@ +blockScopedSameNameFunctionDeclarationES5.ts(3,18): error TS2393: Duplicate function implementation. +blockScopedSameNameFunctionDeclarationES5.ts(5,13): error TS2554: Expected 0 arguments, but got 1. +blockScopedSameNameFunctionDeclarationES5.ts(8,18): error TS2393: Duplicate function implementation. +blockScopedSameNameFunctionDeclarationES5.ts(10,13): error TS2554: Expected 0 arguments, but got 1. +blockScopedSameNameFunctionDeclarationES5.ts(12,9): error TS2554: Expected 0 arguments, but got 1. +blockScopedSameNameFunctionDeclarationES5.ts(16,1): error TS2554: Expected 1 arguments, but got 0. + + +==== blockScopedSameNameFunctionDeclarationES5.ts (6 errors) ==== + function foo(a: number) { + if (a === 1) { + function foo() { } // duplicate function + ~~~ +!!! error TS2393: Duplicate function implementation. + foo(); + foo(10); // not ok + ~~ +!!! error TS2554: Expected 0 arguments, but got 1. + } + else { + function foo() { } // duplicate function + ~~~ +!!! error TS2393: Duplicate function implementation. + foo(); + foo(10); // not ok + ~~ +!!! error TS2554: Expected 0 arguments, but got 1. + } + foo(10); // not ok + ~~ +!!! error TS2554: Expected 0 arguments, but got 1. + foo(); + } + foo(10); + foo(); // not ok - needs number + ~~~ +!!! error TS2554: Expected 1 arguments, but got 0. +!!! related TS6210 blockScopedSameNameFunctionDeclarationES5.ts:1:14: An argument for 'a' was not provided. \ No newline at end of file diff --git a/tests/baselines/reference/blockScopedSameNameFunctionDeclarationES5(target=es5).js b/tests/baselines/reference/blockScopedSameNameFunctionDeclarationES5(target=es5).js new file mode 100644 index 0000000000000..00efc973004c0 --- /dev/null +++ b/tests/baselines/reference/blockScopedSameNameFunctionDeclarationES5(target=es5).js @@ -0,0 +1,37 @@ +//// [tests/cases/compiler/blockScopedSameNameFunctionDeclarationES5.ts] //// + +//// [blockScopedSameNameFunctionDeclarationES5.ts] +function foo(a: number) { + if (a === 1) { + function foo() { } // duplicate function + foo(); + foo(10); // not ok + } + else { + function foo() { } // duplicate function + foo(); + foo(10); // not ok + } + foo(10); // not ok + foo(); +} +foo(10); +foo(); // not ok - needs number + +//// [blockScopedSameNameFunctionDeclarationES5.js] +function foo(a) { + if (a === 1) { + function foo() { } // duplicate function + foo(); + foo(10); // not ok + } + else { + function foo() { } // duplicate function + foo(); + foo(10); // not ok + } + foo(10); // not ok + foo(); +} +foo(10); +foo(); // not ok - needs number diff --git a/tests/baselines/reference/blockScopedSameNameFunctionDeclarationES5(target=es5).symbols b/tests/baselines/reference/blockScopedSameNameFunctionDeclarationES5(target=es5).symbols new file mode 100644 index 0000000000000..9059c98982ce8 --- /dev/null +++ b/tests/baselines/reference/blockScopedSameNameFunctionDeclarationES5(target=es5).symbols @@ -0,0 +1,41 @@ +//// [tests/cases/compiler/blockScopedSameNameFunctionDeclarationES5.ts] //// + +=== blockScopedSameNameFunctionDeclarationES5.ts === +function foo(a: number) { +>foo : Symbol(foo, Decl(blockScopedSameNameFunctionDeclarationES5.ts, 0, 0)) +>a : Symbol(a, Decl(blockScopedSameNameFunctionDeclarationES5.ts, 0, 13)) + + if (a === 1) { +>a : Symbol(a, Decl(blockScopedSameNameFunctionDeclarationES5.ts, 0, 13)) + + function foo() { } // duplicate function +>foo : Symbol(foo, Decl(blockScopedSameNameFunctionDeclarationES5.ts, 1, 18), Decl(blockScopedSameNameFunctionDeclarationES5.ts, 6, 10)) + + foo(); +>foo : Symbol(foo, Decl(blockScopedSameNameFunctionDeclarationES5.ts, 1, 18), Decl(blockScopedSameNameFunctionDeclarationES5.ts, 6, 10)) + + foo(10); // not ok +>foo : Symbol(foo, Decl(blockScopedSameNameFunctionDeclarationES5.ts, 1, 18), Decl(blockScopedSameNameFunctionDeclarationES5.ts, 6, 10)) + } + else { + function foo() { } // duplicate function +>foo : Symbol(foo, Decl(blockScopedSameNameFunctionDeclarationES5.ts, 1, 18), Decl(blockScopedSameNameFunctionDeclarationES5.ts, 6, 10)) + + foo(); +>foo : Symbol(foo, Decl(blockScopedSameNameFunctionDeclarationES5.ts, 1, 18), Decl(blockScopedSameNameFunctionDeclarationES5.ts, 6, 10)) + + foo(10); // not ok +>foo : Symbol(foo, Decl(blockScopedSameNameFunctionDeclarationES5.ts, 1, 18), Decl(blockScopedSameNameFunctionDeclarationES5.ts, 6, 10)) + } + foo(10); // not ok +>foo : Symbol(foo, Decl(blockScopedSameNameFunctionDeclarationES5.ts, 1, 18), Decl(blockScopedSameNameFunctionDeclarationES5.ts, 6, 10)) + + foo(); +>foo : Symbol(foo, Decl(blockScopedSameNameFunctionDeclarationES5.ts, 1, 18), Decl(blockScopedSameNameFunctionDeclarationES5.ts, 6, 10)) +} +foo(10); +>foo : Symbol(foo, Decl(blockScopedSameNameFunctionDeclarationES5.ts, 0, 0)) + +foo(); // not ok - needs number +>foo : Symbol(foo, Decl(blockScopedSameNameFunctionDeclarationES5.ts, 0, 0)) + diff --git a/tests/baselines/reference/blockScopedSameNameFunctionDeclarationES5(target=es5).types b/tests/baselines/reference/blockScopedSameNameFunctionDeclarationES5(target=es5).types new file mode 100644 index 0000000000000..33989fec6734f --- /dev/null +++ b/tests/baselines/reference/blockScopedSameNameFunctionDeclarationES5(target=es5).types @@ -0,0 +1,82 @@ +//// [tests/cases/compiler/blockScopedSameNameFunctionDeclarationES5.ts] //// + +=== blockScopedSameNameFunctionDeclarationES5.ts === +function foo(a: number) { +>foo : (a: number) => void +> : ^ ^^ ^^^^^^^^^ +>a : number +> : ^^^^^^ + + if (a === 1) { +>a === 1 : boolean +> : ^^^^^^^ +>a : number +> : ^^^^^^ +>1 : 1 +> : ^ + + function foo() { } // duplicate function +>foo : { (): void; (): void; } +> : ^^^^^^^^^^^^^^^^^^^^^^^ + + foo(); +>foo() : void +> : ^^^^ +>foo : { (): void; (): void; } +> : ^^^^^^^^^^^^^^^^^^^^^^^ + + foo(10); // not ok +>foo(10) : void +> : ^^^^ +>foo : { (): void; (): void; } +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>10 : 10 +> : ^^ + } + else { + function foo() { } // duplicate function +>foo : { (): void; (): void; } +> : ^^^^^^^^^^^^^^^^^^^^^^^ + + foo(); +>foo() : void +> : ^^^^ +>foo : { (): void; (): void; } +> : ^^^^^^^^^^^^^^^^^^^^^^^ + + foo(10); // not ok +>foo(10) : void +> : ^^^^ +>foo : { (): void; (): void; } +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>10 : 10 +> : ^^ + } + foo(10); // not ok +>foo(10) : void +> : ^^^^ +>foo : { (): void; (): void; } +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>10 : 10 +> : ^^ + + foo(); +>foo() : void +> : ^^^^ +>foo : { (): void; (): void; } +> : ^^^^^^^^^^^^^^^^^^^^^^^ +} +foo(10); +>foo(10) : void +> : ^^^^ +>foo : (a: number) => void +> : ^ ^^ ^^^^^^^^^ +>10 : 10 +> : ^^ + +foo(); // not ok - needs number +>foo() : void +> : ^^^^ +>foo : (a: number) => void +> : ^ ^^ ^^^^^^^^^ + diff --git a/tests/baselines/reference/blockScopedSameNameFunctionDeclarationStrictES5(target=es2015).errors.txt b/tests/baselines/reference/blockScopedSameNameFunctionDeclarationStrictES5(target=es2015).errors.txt new file mode 100644 index 0000000000000..2d70db4f6cf15 --- /dev/null +++ b/tests/baselines/reference/blockScopedSameNameFunctionDeclarationStrictES5(target=es2015).errors.txt @@ -0,0 +1,34 @@ +blockScopedSameNameFunctionDeclarationStrictES5.ts(6,13): error TS2554: Expected 0 arguments, but got 1. +blockScopedSameNameFunctionDeclarationStrictES5.ts(11,13): error TS2554: Expected 0 arguments, but got 1. +blockScopedSameNameFunctionDeclarationStrictES5.ts(14,5): error TS2554: Expected 1 arguments, but got 0. +blockScopedSameNameFunctionDeclarationStrictES5.ts(17,1): error TS2554: Expected 1 arguments, but got 0. + + +==== blockScopedSameNameFunctionDeclarationStrictES5.ts (4 errors) ==== + "use strict"; + function foo(a: number) { + if (a === 1) { + function foo() { } // Error to declare function in block scope + foo(); + foo(10); // not ok + ~~ +!!! error TS2554: Expected 0 arguments, but got 1. + } + else { + function foo() { } // Error to declare function in block scope + foo(); + foo(10); // not ok + ~~ +!!! error TS2554: Expected 0 arguments, but got 1. + } + foo(10); + foo(); // not ok - needs number + ~~~ +!!! error TS2554: Expected 1 arguments, but got 0. +!!! related TS6210 blockScopedSameNameFunctionDeclarationStrictES5.ts:2:14: An argument for 'a' was not provided. + } + foo(10); + foo(); // not ok - needs number + ~~~ +!!! error TS2554: Expected 1 arguments, but got 0. +!!! related TS6210 blockScopedSameNameFunctionDeclarationStrictES5.ts:2:14: An argument for 'a' was not provided. \ No newline at end of file diff --git a/tests/baselines/reference/blockScopedSameNameFunctionDeclarationStrictES5.js b/tests/baselines/reference/blockScopedSameNameFunctionDeclarationStrictES5(target=es2015).js similarity index 100% rename from tests/baselines/reference/blockScopedSameNameFunctionDeclarationStrictES5.js rename to tests/baselines/reference/blockScopedSameNameFunctionDeclarationStrictES5(target=es2015).js diff --git a/tests/baselines/reference/blockScopedSameNameFunctionDeclarationStrictES5.symbols b/tests/baselines/reference/blockScopedSameNameFunctionDeclarationStrictES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/blockScopedSameNameFunctionDeclarationStrictES5.symbols rename to tests/baselines/reference/blockScopedSameNameFunctionDeclarationStrictES5(target=es2015).symbols diff --git a/tests/baselines/reference/blockScopedSameNameFunctionDeclarationStrictES5.types b/tests/baselines/reference/blockScopedSameNameFunctionDeclarationStrictES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/blockScopedSameNameFunctionDeclarationStrictES5.types rename to tests/baselines/reference/blockScopedSameNameFunctionDeclarationStrictES5(target=es2015).types diff --git a/tests/baselines/reference/blockScopedSameNameFunctionDeclarationStrictES5.errors.txt b/tests/baselines/reference/blockScopedSameNameFunctionDeclarationStrictES5(target=es5).errors.txt similarity index 100% rename from tests/baselines/reference/blockScopedSameNameFunctionDeclarationStrictES5.errors.txt rename to tests/baselines/reference/blockScopedSameNameFunctionDeclarationStrictES5(target=es5).errors.txt diff --git a/tests/baselines/reference/blockScopedSameNameFunctionDeclarationStrictES5(target=es5).js b/tests/baselines/reference/blockScopedSameNameFunctionDeclarationStrictES5(target=es5).js new file mode 100644 index 0000000000000..dbc8dec17b573 --- /dev/null +++ b/tests/baselines/reference/blockScopedSameNameFunctionDeclarationStrictES5(target=es5).js @@ -0,0 +1,39 @@ +//// [tests/cases/compiler/blockScopedSameNameFunctionDeclarationStrictES5.ts] //// + +//// [blockScopedSameNameFunctionDeclarationStrictES5.ts] +"use strict"; +function foo(a: number) { + if (a === 1) { + function foo() { } // Error to declare function in block scope + foo(); + foo(10); // not ok + } + else { + function foo() { } // Error to declare function in block scope + foo(); + foo(10); // not ok + } + foo(10); + foo(); // not ok - needs number +} +foo(10); +foo(); // not ok - needs number + +//// [blockScopedSameNameFunctionDeclarationStrictES5.js] +"use strict"; +function foo(a) { + if (a === 1) { + function foo() { } // Error to declare function in block scope + foo(); + foo(10); // not ok + } + else { + function foo() { } // Error to declare function in block scope + foo(); + foo(10); // not ok + } + foo(10); + foo(); // not ok - needs number +} +foo(10); +foo(); // not ok - needs number diff --git a/tests/baselines/reference/blockScopedSameNameFunctionDeclarationStrictES5(target=es5).symbols b/tests/baselines/reference/blockScopedSameNameFunctionDeclarationStrictES5(target=es5).symbols new file mode 100644 index 0000000000000..985f629b1fa70 --- /dev/null +++ b/tests/baselines/reference/blockScopedSameNameFunctionDeclarationStrictES5(target=es5).symbols @@ -0,0 +1,42 @@ +//// [tests/cases/compiler/blockScopedSameNameFunctionDeclarationStrictES5.ts] //// + +=== blockScopedSameNameFunctionDeclarationStrictES5.ts === +"use strict"; +function foo(a: number) { +>foo : Symbol(foo, Decl(blockScopedSameNameFunctionDeclarationStrictES5.ts, 0, 13)) +>a : Symbol(a, Decl(blockScopedSameNameFunctionDeclarationStrictES5.ts, 1, 13)) + + if (a === 1) { +>a : Symbol(a, Decl(blockScopedSameNameFunctionDeclarationStrictES5.ts, 1, 13)) + + function foo() { } // Error to declare function in block scope +>foo : Symbol(foo, Decl(blockScopedSameNameFunctionDeclarationStrictES5.ts, 2, 18)) + + foo(); +>foo : Symbol(foo, Decl(blockScopedSameNameFunctionDeclarationStrictES5.ts, 2, 18)) + + foo(10); // not ok +>foo : Symbol(foo, Decl(blockScopedSameNameFunctionDeclarationStrictES5.ts, 2, 18)) + } + else { + function foo() { } // Error to declare function in block scope +>foo : Symbol(foo, Decl(blockScopedSameNameFunctionDeclarationStrictES5.ts, 7, 10)) + + foo(); +>foo : Symbol(foo, Decl(blockScopedSameNameFunctionDeclarationStrictES5.ts, 7, 10)) + + foo(10); // not ok +>foo : Symbol(foo, Decl(blockScopedSameNameFunctionDeclarationStrictES5.ts, 7, 10)) + } + foo(10); +>foo : Symbol(foo, Decl(blockScopedSameNameFunctionDeclarationStrictES5.ts, 0, 13)) + + foo(); // not ok - needs number +>foo : Symbol(foo, Decl(blockScopedSameNameFunctionDeclarationStrictES5.ts, 0, 13)) +} +foo(10); +>foo : Symbol(foo, Decl(blockScopedSameNameFunctionDeclarationStrictES5.ts, 0, 13)) + +foo(); // not ok - needs number +>foo : Symbol(foo, Decl(blockScopedSameNameFunctionDeclarationStrictES5.ts, 0, 13)) + diff --git a/tests/baselines/reference/blockScopedSameNameFunctionDeclarationStrictES5(target=es5).types b/tests/baselines/reference/blockScopedSameNameFunctionDeclarationStrictES5(target=es5).types new file mode 100644 index 0000000000000..940f990526e45 --- /dev/null +++ b/tests/baselines/reference/blockScopedSameNameFunctionDeclarationStrictES5(target=es5).types @@ -0,0 +1,86 @@ +//// [tests/cases/compiler/blockScopedSameNameFunctionDeclarationStrictES5.ts] //// + +=== blockScopedSameNameFunctionDeclarationStrictES5.ts === +"use strict"; +>"use strict" : "use strict" +> : ^^^^^^^^^^^^ + +function foo(a: number) { +>foo : (a: number) => void +> : ^ ^^ ^^^^^^^^^ +>a : number +> : ^^^^^^ + + if (a === 1) { +>a === 1 : boolean +> : ^^^^^^^ +>a : number +> : ^^^^^^ +>1 : 1 +> : ^ + + function foo() { } // Error to declare function in block scope +>foo : () => void +> : ^^^^^^^^^^ + + foo(); +>foo() : void +> : ^^^^ +>foo : () => void +> : ^^^^^^^^^^ + + foo(10); // not ok +>foo(10) : void +> : ^^^^ +>foo : () => void +> : ^^^^^^^^^^ +>10 : 10 +> : ^^ + } + else { + function foo() { } // Error to declare function in block scope +>foo : () => void +> : ^^^^^^^^^^ + + foo(); +>foo() : void +> : ^^^^ +>foo : () => void +> : ^^^^^^^^^^ + + foo(10); // not ok +>foo(10) : void +> : ^^^^ +>foo : () => void +> : ^^^^^^^^^^ +>10 : 10 +> : ^^ + } + foo(10); +>foo(10) : void +> : ^^^^ +>foo : (a: number) => void +> : ^ ^^ ^^^^^^^^^ +>10 : 10 +> : ^^ + + foo(); // not ok - needs number +>foo() : void +> : ^^^^ +>foo : (a: number) => void +> : ^ ^^ ^^^^^^^^^ +} +foo(10); +>foo(10) : void +> : ^^^^ +>foo : (a: number) => void +> : ^ ^^ ^^^^^^^^^ +>10 : 10 +> : ^^ + +foo(); // not ok - needs number +>foo() : void +> : ^^^^ +>foo : (a: number) => void +> : ^ ^^ ^^^^^^^^^ + diff --git a/tests/baselines/reference/blockScopedVariablesUseBeforeDef.errors.txt b/tests/baselines/reference/blockScopedVariablesUseBeforeDef(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/blockScopedVariablesUseBeforeDef.errors.txt rename to tests/baselines/reference/blockScopedVariablesUseBeforeDef(target=es2015).errors.txt diff --git a/tests/baselines/reference/blockScopedVariablesUseBeforeDef(target=es2015).js b/tests/baselines/reference/blockScopedVariablesUseBeforeDef(target=es2015).js new file mode 100644 index 0000000000000..c1cfdc27774af --- /dev/null +++ b/tests/baselines/reference/blockScopedVariablesUseBeforeDef(target=es2015).js @@ -0,0 +1,336 @@ +//// [tests/cases/compiler/blockScopedVariablesUseBeforeDef.ts] //// + +//// [blockScopedVariablesUseBeforeDef.ts] +function foo0() { + let a = x; + let x; +} + +function foo1() { + let a = () => x; + let x; +} + +function foo2() { + let a = function () { return x; } + let x; +} + +function foo3() { + class X { + m() { return x;} + } + let x; +} + +function foo4() { + let y = class { + m() { return x; } + }; + let x; +} + +function foo5() { + let x = () => y; + let y = () => x; +} + +function foo6() { + function f() { + return x; + } + let x; +} + +function foo7() { + class A { + a = x; + } + let x; +} + +function foo8() { + let y = class { + a = x; + } + let x; +} + +function foo9() { + let y = class { + static a = x; + } + let x; +} + +function foo10() { + class A { + static a = x; + } + let x; +} + +function foo11() { + function f () { + let y = class { + static a = x; + } + } + let x; +} + +function foo12() { + function f () { + let y = class { + a; + constructor() { + this.a = x; + } + } + } + let x; +} + +function foo13() { + let a = { + get a() { return x } + } + let x +} + +function foo14() { + let a = { + a: x + } + let x +} + +function foo15() { + // https://github.com/microsoft/TypeScript/issues/42678 + const [ + a, + b, + ] = ((): [number, number] => { + (() => console.log(a))(); // should error + console.log(a); // should error + const b = () => a; // should be ok + return [ + 0, + 0, + ]; + })(); +} + +function foo16() { + let [a] = (() => a)(); +} + +function foo17() { + const promise = (async () => { + promise + foo + await null + promise + foo + })() + + const foo = 1; +} + +// #30907 +function wrapI1() { + const iter = (function* foo() { + iter; + yield 1; + })(); +} + +function wrapI2() { + const iter = (async function* foo() { + iter; + yield 1; + })(); +} + +function foo18() { + let a = (() => Enum.Yes)(); + enum Enum { + No = 0, + Yes = 1, + } +} + + +//// [blockScopedVariablesUseBeforeDef.js] +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +var __setFunctionName = (this && this.__setFunctionName) || function (f, name, prefix) { + if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : ""; + return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name }); +}; +var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); } +var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } +}; +function foo0() { + let a = x; + let x; +} +function foo1() { + let a = () => x; + let x; +} +function foo2() { + let a = function () { return x; }; + let x; +} +function foo3() { + class X { + m() { return x; } + } + let x; +} +function foo4() { + let y = class { + m() { return x; } + }; + let x; +} +function foo5() { + let x = () => y; + let y = () => x; +} +function foo6() { + function f() { + return x; + } + let x; +} +function foo7() { + class A { + constructor() { + this.a = x; + } + } + let x; +} +function foo8() { + let y = class { + constructor() { + this.a = x; + } + }; + let x; +} +function foo9() { + var _a; + let y = (_a = class { + }, + __setFunctionName(_a, "y"), + _a.a = x, + _a); + let x; +} +function foo10() { + class A { + } + A.a = x; + let x; +} +function foo11() { + function f() { + var _a; + let y = (_a = class { + }, + __setFunctionName(_a, "y"), + _a.a = x, + _a); + } + let x; +} +function foo12() { + function f() { + let y = class { + constructor() { + this.a = x; + } + }; + } + let x; +} +function foo13() { + let a = { + get a() { return x; } + }; + let x; +} +function foo14() { + let a = { + a: x + }; + let x; +} +function foo15() { + // https://github.com/microsoft/TypeScript/issues/42678 + const [a, b,] = (() => { + (() => console.log(a))(); // should error + console.log(a); // should error + const b = () => a; // should be ok + return [ + 0, + 0, + ]; + })(); +} +function foo16() { + let [a] = (() => a)(); +} +function foo17() { + const promise = (() => __awaiter(this, void 0, void 0, function* () { + promise; + foo; + yield null; + promise; + foo; + }))(); + const foo = 1; +} +// #30907 +function wrapI1() { + const iter = (function* foo() { + iter; + yield 1; + })(); +} +function wrapI2() { + const iter = (function foo() { + return __asyncGenerator(this, arguments, function* foo_1() { + iter; + yield yield __await(1); + }); + })(); +} +function foo18() { + let a = (() => Enum.Yes)(); + let Enum; + (function (Enum) { + Enum[Enum["No"] = 0] = "No"; + Enum[Enum["Yes"] = 1] = "Yes"; + })(Enum || (Enum = {})); +} diff --git a/tests/baselines/reference/blockScopedVariablesUseBeforeDef.symbols b/tests/baselines/reference/blockScopedVariablesUseBeforeDef(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/blockScopedVariablesUseBeforeDef.symbols rename to tests/baselines/reference/blockScopedVariablesUseBeforeDef(target=es2015).symbols diff --git a/tests/baselines/reference/blockScopedVariablesUseBeforeDef.types b/tests/baselines/reference/blockScopedVariablesUseBeforeDef(target=es2015).types similarity index 100% rename from tests/baselines/reference/blockScopedVariablesUseBeforeDef.types rename to tests/baselines/reference/blockScopedVariablesUseBeforeDef(target=es2015).types diff --git a/tests/baselines/reference/blockScopedVariablesUseBeforeDef(target=es5).errors.txt b/tests/baselines/reference/blockScopedVariablesUseBeforeDef(target=es5).errors.txt new file mode 100644 index 0000000000000..7beb2b37b9389 --- /dev/null +++ b/tests/baselines/reference/blockScopedVariablesUseBeforeDef(target=es5).errors.txt @@ -0,0 +1,202 @@ +blockScopedVariablesUseBeforeDef.ts(2,13): error TS2448: Block-scoped variable 'x' used before its declaration. +blockScopedVariablesUseBeforeDef.ts(58,20): error TS2448: Block-scoped variable 'x' used before its declaration. +blockScopedVariablesUseBeforeDef.ts(65,20): error TS2448: Block-scoped variable 'x' used before its declaration. +blockScopedVariablesUseBeforeDef.ts(100,12): error TS2448: Block-scoped variable 'x' used before its declaration. +blockScopedVariablesUseBeforeDef.ts(111,28): error TS2448: Block-scoped variable 'a' used before its declaration. +blockScopedVariablesUseBeforeDef.ts(112,21): error TS2448: Block-scoped variable 'a' used before its declaration. +blockScopedVariablesUseBeforeDef.ts(122,22): error TS2448: Block-scoped variable 'a' used before its declaration. +blockScopedVariablesUseBeforeDef.ts(128,9): error TS2448: Block-scoped variable 'foo' used before its declaration. +blockScopedVariablesUseBeforeDef.ts(131,9): error TS2448: Block-scoped variable 'foo' used before its declaration. +blockScopedVariablesUseBeforeDef.ts(153,20): error TS2450: Enum 'Enum' used before its declaration. + + +==== blockScopedVariablesUseBeforeDef.ts (10 errors) ==== + function foo0() { + let a = x; + ~ +!!! error TS2448: Block-scoped variable 'x' used before its declaration. +!!! related TS2728 blockScopedVariablesUseBeforeDef.ts:3:9: 'x' is declared here. + let x; + } + + function foo1() { + let a = () => x; + let x; + } + + function foo2() { + let a = function () { return x; } + let x; + } + + function foo3() { + class X { + m() { return x;} + } + let x; + } + + function foo4() { + let y = class { + m() { return x; } + }; + let x; + } + + function foo5() { + let x = () => y; + let y = () => x; + } + + function foo6() { + function f() { + return x; + } + let x; + } + + function foo7() { + class A { + a = x; + } + let x; + } + + function foo8() { + let y = class { + a = x; + } + let x; + } + + function foo9() { + let y = class { + static a = x; + ~ +!!! error TS2448: Block-scoped variable 'x' used before its declaration. +!!! related TS2728 blockScopedVariablesUseBeforeDef.ts:60:9: 'x' is declared here. + } + let x; + } + + function foo10() { + class A { + static a = x; + ~ +!!! error TS2448: Block-scoped variable 'x' used before its declaration. +!!! related TS2728 blockScopedVariablesUseBeforeDef.ts:67:9: 'x' is declared here. + } + let x; + } + + function foo11() { + function f () { + let y = class { + static a = x; + } + } + let x; + } + + function foo12() { + function f () { + let y = class { + a; + constructor() { + this.a = x; + } + } + } + let x; + } + + function foo13() { + let a = { + get a() { return x } + } + let x + } + + function foo14() { + let a = { + a: x + ~ +!!! error TS2448: Block-scoped variable 'x' used before its declaration. +!!! related TS2728 blockScopedVariablesUseBeforeDef.ts:102:9: 'x' is declared here. + } + let x + } + + function foo15() { + // https://github.com/microsoft/TypeScript/issues/42678 + const [ + a, + b, + ] = ((): [number, number] => { + (() => console.log(a))(); // should error + ~ +!!! error TS2448: Block-scoped variable 'a' used before its declaration. +!!! related TS2728 blockScopedVariablesUseBeforeDef.ts:108:9: 'a' is declared here. + console.log(a); // should error + ~ +!!! error TS2448: Block-scoped variable 'a' used before its declaration. +!!! related TS2728 blockScopedVariablesUseBeforeDef.ts:108:9: 'a' is declared here. + const b = () => a; // should be ok + return [ + 0, + 0, + ]; + })(); + } + + function foo16() { + let [a] = (() => a)(); + ~ +!!! error TS2448: Block-scoped variable 'a' used before its declaration. +!!! related TS2728 blockScopedVariablesUseBeforeDef.ts:122:10: 'a' is declared here. + } + + function foo17() { + const promise = (async () => { + promise + foo + ~~~ +!!! error TS2448: Block-scoped variable 'foo' used before its declaration. +!!! related TS2728 blockScopedVariablesUseBeforeDef.ts:134:11: 'foo' is declared here. + await null + promise + foo + ~~~ +!!! error TS2448: Block-scoped variable 'foo' used before its declaration. +!!! related TS2728 blockScopedVariablesUseBeforeDef.ts:134:11: 'foo' is declared here. + })() + + const foo = 1; + } + + // #30907 + function wrapI1() { + const iter = (function* foo() { + iter; + yield 1; + })(); + } + + function wrapI2() { + const iter = (async function* foo() { + iter; + yield 1; + })(); + } + + function foo18() { + let a = (() => Enum.Yes)(); + ~~~~ +!!! error TS2450: Enum 'Enum' used before its declaration. +!!! related TS2728 blockScopedVariablesUseBeforeDef.ts:154:10: 'Enum' is declared here. + enum Enum { + No = 0, + Yes = 1, + } + } + \ No newline at end of file diff --git a/tests/baselines/reference/blockScopedVariablesUseBeforeDef.js b/tests/baselines/reference/blockScopedVariablesUseBeforeDef(target=es5).js similarity index 100% rename from tests/baselines/reference/blockScopedVariablesUseBeforeDef.js rename to tests/baselines/reference/blockScopedVariablesUseBeforeDef(target=es5).js diff --git a/tests/baselines/reference/blockScopedVariablesUseBeforeDef(target=es5).symbols b/tests/baselines/reference/blockScopedVariablesUseBeforeDef(target=es5).symbols new file mode 100644 index 0000000000000..eae9d3323df3c --- /dev/null +++ b/tests/baselines/reference/blockScopedVariablesUseBeforeDef(target=es5).symbols @@ -0,0 +1,334 @@ +//// [tests/cases/compiler/blockScopedVariablesUseBeforeDef.ts] //// + +=== blockScopedVariablesUseBeforeDef.ts === +function foo0() { +>foo0 : Symbol(foo0, Decl(blockScopedVariablesUseBeforeDef.ts, 0, 0)) + + let a = x; +>a : Symbol(a, Decl(blockScopedVariablesUseBeforeDef.ts, 1, 7)) +>x : Symbol(x, Decl(blockScopedVariablesUseBeforeDef.ts, 2, 7)) + + let x; +>x : Symbol(x, Decl(blockScopedVariablesUseBeforeDef.ts, 2, 7)) +} + +function foo1() { +>foo1 : Symbol(foo1, Decl(blockScopedVariablesUseBeforeDef.ts, 3, 1)) + + let a = () => x; +>a : Symbol(a, Decl(blockScopedVariablesUseBeforeDef.ts, 6, 7)) +>x : Symbol(x, Decl(blockScopedVariablesUseBeforeDef.ts, 7, 7)) + + let x; +>x : Symbol(x, Decl(blockScopedVariablesUseBeforeDef.ts, 7, 7)) +} + +function foo2() { +>foo2 : Symbol(foo2, Decl(blockScopedVariablesUseBeforeDef.ts, 8, 1)) + + let a = function () { return x; } +>a : Symbol(a, Decl(blockScopedVariablesUseBeforeDef.ts, 11, 7)) +>x : Symbol(x, Decl(blockScopedVariablesUseBeforeDef.ts, 12, 7)) + + let x; +>x : Symbol(x, Decl(blockScopedVariablesUseBeforeDef.ts, 12, 7)) +} + +function foo3() { +>foo3 : Symbol(foo3, Decl(blockScopedVariablesUseBeforeDef.ts, 13, 1)) + + class X { +>X : Symbol(X, Decl(blockScopedVariablesUseBeforeDef.ts, 15, 17)) + + m() { return x;} +>m : Symbol(X.m, Decl(blockScopedVariablesUseBeforeDef.ts, 16, 13)) +>x : Symbol(x, Decl(blockScopedVariablesUseBeforeDef.ts, 19, 7)) + } + let x; +>x : Symbol(x, Decl(blockScopedVariablesUseBeforeDef.ts, 19, 7)) +} + +function foo4() { +>foo4 : Symbol(foo4, Decl(blockScopedVariablesUseBeforeDef.ts, 20, 1)) + + let y = class { +>y : Symbol(y, Decl(blockScopedVariablesUseBeforeDef.ts, 23, 7)) + + m() { return x; } +>m : Symbol(y.m, Decl(blockScopedVariablesUseBeforeDef.ts, 23, 19)) +>x : Symbol(x, Decl(blockScopedVariablesUseBeforeDef.ts, 26, 7)) + + }; + let x; +>x : Symbol(x, Decl(blockScopedVariablesUseBeforeDef.ts, 26, 7)) +} + +function foo5() { +>foo5 : Symbol(foo5, Decl(blockScopedVariablesUseBeforeDef.ts, 27, 1)) + + let x = () => y; +>x : Symbol(x, Decl(blockScopedVariablesUseBeforeDef.ts, 30, 7)) +>y : Symbol(y, Decl(blockScopedVariablesUseBeforeDef.ts, 31, 7)) + + let y = () => x; +>y : Symbol(y, Decl(blockScopedVariablesUseBeforeDef.ts, 31, 7)) +>x : Symbol(x, Decl(blockScopedVariablesUseBeforeDef.ts, 30, 7)) +} + +function foo6() { +>foo6 : Symbol(foo6, Decl(blockScopedVariablesUseBeforeDef.ts, 32, 1)) + + function f() { +>f : Symbol(f, Decl(blockScopedVariablesUseBeforeDef.ts, 34, 17)) + + return x; +>x : Symbol(x, Decl(blockScopedVariablesUseBeforeDef.ts, 38, 7)) + } + let x; +>x : Symbol(x, Decl(blockScopedVariablesUseBeforeDef.ts, 38, 7)) +} + +function foo7() { +>foo7 : Symbol(foo7, Decl(blockScopedVariablesUseBeforeDef.ts, 39, 1)) + + class A { +>A : Symbol(A, Decl(blockScopedVariablesUseBeforeDef.ts, 41, 17)) + + a = x; +>a : Symbol(A.a, Decl(blockScopedVariablesUseBeforeDef.ts, 42, 13)) +>x : Symbol(x, Decl(blockScopedVariablesUseBeforeDef.ts, 45, 7)) + } + let x; +>x : Symbol(x, Decl(blockScopedVariablesUseBeforeDef.ts, 45, 7)) +} + +function foo8() { +>foo8 : Symbol(foo8, Decl(blockScopedVariablesUseBeforeDef.ts, 46, 1)) + + let y = class { +>y : Symbol(y, Decl(blockScopedVariablesUseBeforeDef.ts, 49, 7)) + + a = x; +>a : Symbol(y.a, Decl(blockScopedVariablesUseBeforeDef.ts, 49, 19)) +>x : Symbol(x, Decl(blockScopedVariablesUseBeforeDef.ts, 52, 7)) + } + let x; +>x : Symbol(x, Decl(blockScopedVariablesUseBeforeDef.ts, 52, 7)) +} + +function foo9() { +>foo9 : Symbol(foo9, Decl(blockScopedVariablesUseBeforeDef.ts, 53, 1)) + + let y = class { +>y : Symbol(y, Decl(blockScopedVariablesUseBeforeDef.ts, 56, 7)) + + static a = x; +>a : Symbol(y.a, Decl(blockScopedVariablesUseBeforeDef.ts, 56, 19)) +>x : Symbol(x, Decl(blockScopedVariablesUseBeforeDef.ts, 59, 7)) + } + let x; +>x : Symbol(x, Decl(blockScopedVariablesUseBeforeDef.ts, 59, 7)) +} + +function foo10() { +>foo10 : Symbol(foo10, Decl(blockScopedVariablesUseBeforeDef.ts, 60, 1)) + + class A { +>A : Symbol(A, Decl(blockScopedVariablesUseBeforeDef.ts, 62, 18)) + + static a = x; +>a : Symbol(A.a, Decl(blockScopedVariablesUseBeforeDef.ts, 63, 13)) +>x : Symbol(x, Decl(blockScopedVariablesUseBeforeDef.ts, 66, 7)) + } + let x; +>x : Symbol(x, Decl(blockScopedVariablesUseBeforeDef.ts, 66, 7)) +} + +function foo11() { +>foo11 : Symbol(foo11, Decl(blockScopedVariablesUseBeforeDef.ts, 67, 1)) + + function f () { +>f : Symbol(f, Decl(blockScopedVariablesUseBeforeDef.ts, 69, 18)) + + let y = class { +>y : Symbol(y, Decl(blockScopedVariablesUseBeforeDef.ts, 71, 11)) + + static a = x; +>a : Symbol(y.a, Decl(blockScopedVariablesUseBeforeDef.ts, 71, 23)) +>x : Symbol(x, Decl(blockScopedVariablesUseBeforeDef.ts, 75, 7)) + } + } + let x; +>x : Symbol(x, Decl(blockScopedVariablesUseBeforeDef.ts, 75, 7)) +} + +function foo12() { +>foo12 : Symbol(foo12, Decl(blockScopedVariablesUseBeforeDef.ts, 76, 1)) + + function f () { +>f : Symbol(f, Decl(blockScopedVariablesUseBeforeDef.ts, 78, 18)) + + let y = class { +>y : Symbol(y, Decl(blockScopedVariablesUseBeforeDef.ts, 80, 11)) + + a; +>a : Symbol(y.a, Decl(blockScopedVariablesUseBeforeDef.ts, 80, 23)) + + constructor() { + this.a = x; +>this.a : Symbol(y.a, Decl(blockScopedVariablesUseBeforeDef.ts, 80, 23)) +>this : Symbol(y, Decl(blockScopedVariablesUseBeforeDef.ts, 80, 15)) +>a : Symbol(y.a, Decl(blockScopedVariablesUseBeforeDef.ts, 80, 23)) +>x : Symbol(x, Decl(blockScopedVariablesUseBeforeDef.ts, 87, 7)) + } + } + } + let x; +>x : Symbol(x, Decl(blockScopedVariablesUseBeforeDef.ts, 87, 7)) +} + +function foo13() { +>foo13 : Symbol(foo13, Decl(blockScopedVariablesUseBeforeDef.ts, 88, 1)) + + let a = { +>a : Symbol(a, Decl(blockScopedVariablesUseBeforeDef.ts, 91, 7)) + + get a() { return x } +>a : Symbol(a, Decl(blockScopedVariablesUseBeforeDef.ts, 91, 13)) +>x : Symbol(x, Decl(blockScopedVariablesUseBeforeDef.ts, 94, 7)) + } + let x +>x : Symbol(x, Decl(blockScopedVariablesUseBeforeDef.ts, 94, 7)) +} + +function foo14() { +>foo14 : Symbol(foo14, Decl(blockScopedVariablesUseBeforeDef.ts, 95, 1)) + + let a = { +>a : Symbol(a, Decl(blockScopedVariablesUseBeforeDef.ts, 98, 7)) + + a: x +>a : Symbol(a, Decl(blockScopedVariablesUseBeforeDef.ts, 98, 13)) +>x : Symbol(x, Decl(blockScopedVariablesUseBeforeDef.ts, 101, 7)) + } + let x +>x : Symbol(x, Decl(blockScopedVariablesUseBeforeDef.ts, 101, 7)) +} + +function foo15() { +>foo15 : Symbol(foo15, Decl(blockScopedVariablesUseBeforeDef.ts, 102, 1)) + + // https://github.com/microsoft/TypeScript/issues/42678 + const [ + a, +>a : Symbol(a, Decl(blockScopedVariablesUseBeforeDef.ts, 106, 11)) + + b, +>b : Symbol(b, Decl(blockScopedVariablesUseBeforeDef.ts, 107, 10)) + + ] = ((): [number, number] => { + (() => console.log(a))(); // should error +>console.log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) +>console : Symbol(console, Decl(lib.dom.d.ts, --, --)) +>log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) +>a : Symbol(a, Decl(blockScopedVariablesUseBeforeDef.ts, 106, 11)) + + console.log(a); // should error +>console.log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) +>console : Symbol(console, Decl(lib.dom.d.ts, --, --)) +>log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) +>a : Symbol(a, Decl(blockScopedVariablesUseBeforeDef.ts, 106, 11)) + + const b = () => a; // should be ok +>b : Symbol(b, Decl(blockScopedVariablesUseBeforeDef.ts, 112, 13)) +>a : Symbol(a, Decl(blockScopedVariablesUseBeforeDef.ts, 106, 11)) + + return [ + 0, + 0, + ]; + })(); +} + +function foo16() { +>foo16 : Symbol(foo16, Decl(blockScopedVariablesUseBeforeDef.ts, 118, 1)) + + let [a] = (() => a)(); +>a : Symbol(a, Decl(blockScopedVariablesUseBeforeDef.ts, 121, 9)) +>a : Symbol(a, Decl(blockScopedVariablesUseBeforeDef.ts, 121, 9)) +} + +function foo17() { +>foo17 : Symbol(foo17, Decl(blockScopedVariablesUseBeforeDef.ts, 122, 1)) + + const promise = (async () => { +>promise : Symbol(promise, Decl(blockScopedVariablesUseBeforeDef.ts, 125, 9)) + + promise +>promise : Symbol(promise, Decl(blockScopedVariablesUseBeforeDef.ts, 125, 9)) + + foo +>foo : Symbol(foo, Decl(blockScopedVariablesUseBeforeDef.ts, 133, 9)) + + await null + promise +>promise : Symbol(promise, Decl(blockScopedVariablesUseBeforeDef.ts, 125, 9)) + + foo +>foo : Symbol(foo, Decl(blockScopedVariablesUseBeforeDef.ts, 133, 9)) + + })() + + const foo = 1; +>foo : Symbol(foo, Decl(blockScopedVariablesUseBeforeDef.ts, 133, 9)) +} + +// #30907 +function wrapI1() { +>wrapI1 : Symbol(wrapI1, Decl(blockScopedVariablesUseBeforeDef.ts, 134, 1)) + + const iter = (function* foo() { +>iter : Symbol(iter, Decl(blockScopedVariablesUseBeforeDef.ts, 138, 9)) +>foo : Symbol(foo, Decl(blockScopedVariablesUseBeforeDef.ts, 138, 18)) + + iter; +>iter : Symbol(iter, Decl(blockScopedVariablesUseBeforeDef.ts, 138, 9)) + + yield 1; + })(); +} + +function wrapI2() { +>wrapI2 : Symbol(wrapI2, Decl(blockScopedVariablesUseBeforeDef.ts, 142, 1)) + + const iter = (async function* foo() { +>iter : Symbol(iter, Decl(blockScopedVariablesUseBeforeDef.ts, 145, 9)) +>foo : Symbol(foo, Decl(blockScopedVariablesUseBeforeDef.ts, 145, 18)) + + iter; +>iter : Symbol(iter, Decl(blockScopedVariablesUseBeforeDef.ts, 145, 9)) + + yield 1; + })(); +} + +function foo18() { +>foo18 : Symbol(foo18, Decl(blockScopedVariablesUseBeforeDef.ts, 149, 1)) + + let a = (() => Enum.Yes)(); +>a : Symbol(a, Decl(blockScopedVariablesUseBeforeDef.ts, 152, 7)) +>Enum.Yes : Symbol(Enum.Yes, Decl(blockScopedVariablesUseBeforeDef.ts, 154, 15)) +>Enum : Symbol(Enum, Decl(blockScopedVariablesUseBeforeDef.ts, 152, 31)) +>Yes : Symbol(Enum.Yes, Decl(blockScopedVariablesUseBeforeDef.ts, 154, 15)) + + enum Enum { +>Enum : Symbol(Enum, Decl(blockScopedVariablesUseBeforeDef.ts, 152, 31)) + + No = 0, +>No : Symbol(Enum.No, Decl(blockScopedVariablesUseBeforeDef.ts, 153, 15)) + + Yes = 1, +>Yes : Symbol(Enum.Yes, Decl(blockScopedVariablesUseBeforeDef.ts, 154, 15)) + } +} + diff --git a/tests/baselines/reference/blockScopedVariablesUseBeforeDef(target=es5).types b/tests/baselines/reference/blockScopedVariablesUseBeforeDef(target=es5).types new file mode 100644 index 0000000000000..a3d7f08e0dc73 --- /dev/null +++ b/tests/baselines/reference/blockScopedVariablesUseBeforeDef(target=es5).types @@ -0,0 +1,550 @@ +//// [tests/cases/compiler/blockScopedVariablesUseBeforeDef.ts] //// + +=== blockScopedVariablesUseBeforeDef.ts === +function foo0() { +>foo0 : () => void +> : ^^^^^^^^^^ + + let a = x; +>a : any +> : ^^^ +>x : any +> : ^^^ + + let x; +>x : any +> : ^^^ +} + +function foo1() { +>foo1 : () => void +> : ^^^^^^^^^^ + + let a = () => x; +>a : () => any +> : ^^^^^^^^^ +>() => x : () => any +> : ^^^^^^^^^ +>x : any +> : ^^^ + + let x; +>x : any +> : ^^^ +} + +function foo2() { +>foo2 : () => void +> : ^^^^^^^^^^ + + let a = function () { return x; } +>a : () => any +> : ^^^^^^^^^ +>function () { return x; } : () => any +> : ^^^^^^^^^ +>x : any +> : ^^^ + + let x; +>x : any +> : ^^^ +} + +function foo3() { +>foo3 : () => void +> : ^^^^^^^^^^ + + class X { +>X : X +> : ^ + + m() { return x;} +>m : () => any +> : ^^^^^^^^^ +>x : any +> : ^^^ + } + let x; +>x : any +> : ^^^ +} + +function foo4() { +>foo4 : () => void +> : ^^^^^^^^^^ + + let y = class { +>y : typeof y +> : ^^^^^^^^ +>class { m() { return x; } } : typeof y +> : ^^^^^^^^ + + m() { return x; } +>m : () => any +> : ^^^^^^^^^ +>x : any +> : ^^^ + + }; + let x; +>x : any +> : ^^^ +} + +function foo5() { +>foo5 : () => void +> : ^^^^^^^^^^ + + let x = () => y; +>x : () => () => any +> : ^^^^^^^^^^^^^^^ +>() => y : () => () => any +> : ^^^^^^^^^^^^^^^ +>y : () => () => any +> : ^^^^^^^^^^^^^^^ + + let y = () => x; +>y : () => () => any +> : ^^^^^^^^^^^^^^^ +>() => x : () => () => any +> : ^^^^^^^^^^^^^^^ +>x : () => () => any +> : ^^^^^^^^^^^^^^^ +} + +function foo6() { +>foo6 : () => void +> : ^^^^^^^^^^ + + function f() { +>f : () => any +> : ^^^^^^^^^ + + return x; +>x : any +> : ^^^ + } + let x; +>x : any +> : ^^^ +} + +function foo7() { +>foo7 : () => void +> : ^^^^^^^^^^ + + class A { +>A : A +> : ^ + + a = x; +>a : any +> : ^^^ +>x : any +> : ^^^ + } + let x; +>x : any +> : ^^^ +} + +function foo8() { +>foo8 : () => void +> : ^^^^^^^^^^ + + let y = class { +>y : typeof y +> : ^^^^^^^^ +>class { a = x; } : typeof y +> : ^^^^^^^^ + + a = x; +>a : any +> : ^^^ +>x : any +> : ^^^ + } + let x; +>x : any +> : ^^^ +} + +function foo9() { +>foo9 : () => void +> : ^^^^^^^^^^ + + let y = class { +>y : typeof y +> : ^^^^^^^^ +>class { static a = x; } : typeof y +> : ^^^^^^^^ + + static a = x; +>a : any +> : ^^^ +>x : any +> : ^^^ + } + let x; +>x : any +> : ^^^ +} + +function foo10() { +>foo10 : () => void +> : ^^^^^^^^^^ + + class A { +>A : A +> : ^ + + static a = x; +>a : any +> : ^^^ +>x : any +> : ^^^ + } + let x; +>x : any +> : ^^^ +} + +function foo11() { +>foo11 : () => void +> : ^^^^^^^^^^ + + function f () { +>f : () => void +> : ^^^^^^^^^^ + + let y = class { +>y : typeof y +> : ^^^^^^^^ +>class { static a = x; } : typeof y +> : ^^^^^^^^ + + static a = x; +>a : any +> : ^^^ +>x : any +> : ^^^ + } + } + let x; +>x : any +> : ^^^ +} + +function foo12() { +>foo12 : () => void +> : ^^^^^^^^^^ + + function f () { +>f : () => void +> : ^^^^^^^^^^ + + let y = class { +>y : typeof y +> : ^^^^^^^^ +>class { a; constructor() { this.a = x; } } : typeof y +> : ^^^^^^^^ + + a; +>a : any +> : ^^^ + + constructor() { + this.a = x; +>this.a = x : any +> : ^^^ +>this.a : any +> : ^^^ +>this : this +> : ^^^^ +>a : any +> : ^^^ +>x : any +> : ^^^ + } + } + } + let x; +>x : any +> : ^^^ +} + +function foo13() { +>foo13 : () => void +> : ^^^^^^^^^^ + + let a = { +>a : { readonly a: any; } +> : ^^^^^^^^^^^^^^^^^^^^ +>{ get a() { return x } } : { readonly a: any; } +> : ^^^^^^^^^^^^^^^^^^^^ + + get a() { return x } +>a : any +> : ^^^ +>x : any +> : ^^^ + } + let x +>x : any +> : ^^^ +} + +function foo14() { +>foo14 : () => void +> : ^^^^^^^^^^ + + let a = { +>a : { a: any; } +> : ^^^^^^^^^^^ +>{ a: x } : { a: any; } +> : ^^^^^^^^^^^ + + a: x +>a : any +> : ^^^ +>x : any +> : ^^^ + } + let x +>x : any +> : ^^^ +} + +function foo15() { +>foo15 : () => void +> : ^^^^^^^^^^ + + // https://github.com/microsoft/TypeScript/issues/42678 + const [ + a, +>a : number +> : ^^^^^^ + + b, +>b : number +> : ^^^^^^ + + ] = ((): [number, number] => { +>((): [number, number] => { (() => console.log(a))(); // should error console.log(a); // should error const b = () => a; // should be ok return [ 0, 0, ]; })() : [number, number] +> : ^^^^^^^^^^^^^^^^ +>((): [number, number] => { (() => console.log(a))(); // should error console.log(a); // should error const b = () => a; // should be ok return [ 0, 0, ]; }) : () => [number, number] +> : ^^^^^^ +>(): [number, number] => { (() => console.log(a))(); // should error console.log(a); // should error const b = () => a; // should be ok return [ 0, 0, ]; } : () => [number, number] +> : ^^^^^^ + + (() => console.log(a))(); // should error +>(() => console.log(a))() : void +> : ^^^^ +>(() => console.log(a)) : () => void +> : ^^^^^^^^^^ +>() => console.log(a) : () => void +> : ^^^^^^^^^^ +>console.log(a) : void +> : ^^^^ +>console.log : (...data: any[]) => void +> : ^^^^ ^^ ^^^^^ +>console : Console +> : ^^^^^^^ +>log : (...data: any[]) => void +> : ^^^^ ^^ ^^^^^ +>a : number +> : ^^^^^^ + + console.log(a); // should error +>console.log(a) : void +> : ^^^^ +>console.log : (...data: any[]) => void +> : ^^^^ ^^ ^^^^^ +>console : Console +> : ^^^^^^^ +>log : (...data: any[]) => void +> : ^^^^ ^^ ^^^^^ +>a : number +> : ^^^^^^ + + const b = () => a; // should be ok +>b : () => number +> : ^^^^^^^^^^^^ +>() => a : () => number +> : ^^^^^^^^^^^^ +>a : number +> : ^^^^^^ + + return [ +>[ 0, 0, ] : [number, number] +> : ^^^^^^^^^^^^^^^^ + + 0, +>0 : 0 +> : ^ + + 0, +>0 : 0 +> : ^ + + ]; + })(); +} + +function foo16() { +>foo16 : () => void +> : ^^^^^^^^^^ + + let [a] = (() => a)(); +>a : any +> : ^^^ +>(() => a)() : any +> : ^^^ +>(() => a) : () => any +> : ^^^^^^^^^ +>() => a : () => any +> : ^^^^^^^^^ +>a : any +> : ^^^ +} + +function foo17() { +>foo17 : () => void +> : ^^^^^^^^^^ + + const promise = (async () => { +>promise : Promise +> : ^^^^^^^^^^^^^ +>(async () => { promise foo await null promise foo })() : Promise +> : ^^^^^^^^^^^^^ +>(async () => { promise foo await null promise foo }) : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ +>async () => { promise foo await null promise foo } : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + promise +>promise : Promise +> : ^^^^^^^^^^^^^ + + foo +>foo : 1 +> : ^ + + await null +>await null : null +> : ^^^^ + + promise +>promise : Promise +> : ^^^^^^^^^^^^^ + + foo +>foo : 1 +> : ^ + + })() + + const foo = 1; +>foo : 1 +> : ^ +>1 : 1 +> : ^ +} + +// #30907 +function wrapI1() { +>wrapI1 : () => void +> : ^^^^^^^^^^ + + const iter = (function* foo() { +>iter : Generator +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>(function* foo() { iter; yield 1; })() : Generator +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>(function* foo() { iter; yield 1; }) : () => Generator +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>function* foo() { iter; yield 1; } : () => Generator +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>foo : () => Generator +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + iter; +>iter : Generator +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + yield 1; +>yield 1 : any +> : ^^^ +>1 : 1 +> : ^ + + })(); +} + +function wrapI2() { +>wrapI2 : () => void +> : ^^^^^^^^^^ + + const iter = (async function* foo() { +>iter : AsyncGenerator +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>(async function* foo() { iter; yield 1; })() : AsyncGenerator +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>(async function* foo() { iter; yield 1; }) : () => AsyncGenerator +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>async function* foo() { iter; yield 1; } : () => AsyncGenerator +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>foo : () => AsyncGenerator +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + iter; +>iter : AsyncGenerator +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + yield 1; +>yield 1 : any +> : ^^^ +>1 : 1 +> : ^ + + })(); +} + +function foo18() { +>foo18 : () => void +> : ^^^^^^^^^^ + + let a = (() => Enum.Yes)(); +>a : Enum +> : ^^^^ +>(() => Enum.Yes)() : Enum +> : ^^^^ +>(() => Enum.Yes) : () => Enum +> : ^^^^^^^^^^ +>() => Enum.Yes : () => Enum +> : ^^^^^^^^^^ +>Enum.Yes : Enum.Yes +> : ^^^^^^^^ +>Enum : typeof Enum +> : ^^^^^^^^^^^ +>Yes : Enum.Yes +> : ^^^^^^^^ + + enum Enum { +>Enum : Enum +> : ^^^^ + + No = 0, +>No : Enum.No +> : ^^^^^^^ +>0 : 0 +> : ^ + + Yes = 1, +>Yes : Enum.Yes +> : ^^^^^^^^ +>1 : 1 +> : ^ + } +} + diff --git a/tests/baselines/reference/capturedLetConstInLoop14.errors.txt b/tests/baselines/reference/capturedLetConstInLoop14(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/capturedLetConstInLoop14.errors.txt rename to tests/baselines/reference/capturedLetConstInLoop14(target=es2015).errors.txt diff --git a/tests/baselines/reference/capturedLetConstInLoop14(target=es2015).js b/tests/baselines/reference/capturedLetConstInLoop14(target=es2015).js new file mode 100644 index 0000000000000..58e2471fa9540 --- /dev/null +++ b/tests/baselines/reference/capturedLetConstInLoop14(target=es2015).js @@ -0,0 +1,31 @@ +//// [tests/cases/compiler/capturedLetConstInLoop14.ts] //// + +//// [capturedLetConstInLoop14.ts] +function use(v: number) {} + +function foo(x: number) { + var v = 1; + do { + let x = v; + var v; + var v = 2; + () => x + v; + } while (false); + + use(v); +} + + +//// [capturedLetConstInLoop14.js] +"use strict"; +function use(v) { } +function foo(x) { + var v = 1; + do { + let x = v; + var v; + var v = 2; + () => x + v; + } while (false); + use(v); +} diff --git a/tests/baselines/reference/capturedLetConstInLoop14(target=es5).errors.txt b/tests/baselines/reference/capturedLetConstInLoop14(target=es5).errors.txt new file mode 100644 index 0000000000000..ab5b98288acb1 --- /dev/null +++ b/tests/baselines/reference/capturedLetConstInLoop14(target=es5).errors.txt @@ -0,0 +1,21 @@ +capturedLetConstInLoop14.ts(7,9): error TS2403: Subsequent variable declarations must have the same type. Variable 'v' must be of type 'number', but here has type 'any'. + + +==== capturedLetConstInLoop14.ts (1 errors) ==== + function use(v: number) {} + + function foo(x: number) { + var v = 1; + do { + let x = v; + var v; + ~ +!!! error TS2403: Subsequent variable declarations must have the same type. Variable 'v' must be of type 'number', but here has type 'any'. +!!! related TS6203 capturedLetConstInLoop14.ts:4:7: 'v' was also declared here. + var v = 2; + () => x + v; + } while (false); + + use(v); + } + \ No newline at end of file diff --git a/tests/baselines/reference/capturedLetConstInLoop14.js b/tests/baselines/reference/capturedLetConstInLoop14(target=es5).js similarity index 100% rename from tests/baselines/reference/capturedLetConstInLoop14.js rename to tests/baselines/reference/capturedLetConstInLoop14(target=es5).js diff --git a/tests/baselines/reference/capturedParametersInInitializers2.errors.txt b/tests/baselines/reference/capturedParametersInInitializers2(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/capturedParametersInInitializers2.errors.txt rename to tests/baselines/reference/capturedParametersInInitializers2(target=es2015).errors.txt diff --git a/tests/baselines/reference/capturedParametersInInitializers2(target=es2015).js b/tests/baselines/reference/capturedParametersInInitializers2(target=es2015).js new file mode 100644 index 0000000000000..ae2a81645d949 --- /dev/null +++ b/tests/baselines/reference/capturedParametersInInitializers2(target=es2015).js @@ -0,0 +1,48 @@ +//// [tests/cases/compiler/capturedParametersInInitializers2.ts] //// + +//// [capturedParametersInInitializers2.ts] +function foo( + y = class { + static c = x; + get [x]() {return x;} + constructor() { x; } + [z]() { return z; } + }, + x = 1, + z = 2 +) { + y.c +} +function foo2(y = class {[x] = x}, x = 1) { +} + +//// [capturedParametersInInitializers2.js] +var __setFunctionName = (this && this.__setFunctionName) || function (f, name, prefix) { + if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : ""; + return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name }); +}; +function foo(y, x, z) { + var _a; + if (y === void 0) { y = (_a = class { + get [x]() { return x; } + constructor() { x; } + [z]() { return z; } + }, + __setFunctionName(_a, "y"), + _a.c = x, + _a); } + if (x === void 0) { x = 1; } + if (z === void 0) { z = 2; } + y.c; +} +function foo2(y, x) { + var _a, _b; + if (y === void 0) { y = (_b = class { + constructor() { + this[_a] = x; + } + }, + _a = x, + _b); } + if (x === void 0) { x = 1; } +} diff --git a/tests/baselines/reference/capturedParametersInInitializers2.symbols b/tests/baselines/reference/capturedParametersInInitializers2(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/capturedParametersInInitializers2.symbols rename to tests/baselines/reference/capturedParametersInInitializers2(target=es2015).symbols diff --git a/tests/baselines/reference/capturedParametersInInitializers2.types b/tests/baselines/reference/capturedParametersInInitializers2(target=es2015).types similarity index 100% rename from tests/baselines/reference/capturedParametersInInitializers2.types rename to tests/baselines/reference/capturedParametersInInitializers2(target=es2015).types diff --git a/tests/baselines/reference/capturedParametersInInitializers2(target=es5).errors.txt b/tests/baselines/reference/capturedParametersInInitializers2(target=es5).errors.txt new file mode 100644 index 0000000000000..0576ba7b95af3 --- /dev/null +++ b/tests/baselines/reference/capturedParametersInInitializers2(target=es5).errors.txt @@ -0,0 +1,29 @@ +capturedParametersInInitializers2.ts(3,20): error TS2373: Parameter 'y' cannot reference identifier 'x' declared after it. +capturedParametersInInitializers2.ts(4,14): error TS2373: Parameter 'y' cannot reference identifier 'x' declared after it. +capturedParametersInInitializers2.ts(6,10): error TS2373: Parameter 'y' cannot reference identifier 'z' declared after it. +capturedParametersInInitializers2.ts(13,27): error TS2373: Parameter 'y' cannot reference identifier 'x' declared after it. + + +==== capturedParametersInInitializers2.ts (4 errors) ==== + function foo( + y = class { + static c = x; + ~ +!!! error TS2373: Parameter 'y' cannot reference identifier 'x' declared after it. + get [x]() {return x;} + ~ +!!! error TS2373: Parameter 'y' cannot reference identifier 'x' declared after it. + constructor() { x; } + [z]() { return z; } + ~ +!!! error TS2373: Parameter 'y' cannot reference identifier 'z' declared after it. + }, + x = 1, + z = 2 + ) { + y.c + } + function foo2(y = class {[x] = x}, x = 1) { + ~ +!!! error TS2373: Parameter 'y' cannot reference identifier 'x' declared after it. + } \ No newline at end of file diff --git a/tests/baselines/reference/capturedParametersInInitializers2.js b/tests/baselines/reference/capturedParametersInInitializers2(target=es5).js similarity index 100% rename from tests/baselines/reference/capturedParametersInInitializers2.js rename to tests/baselines/reference/capturedParametersInInitializers2(target=es5).js diff --git a/tests/baselines/reference/capturedParametersInInitializers2(target=es5).symbols b/tests/baselines/reference/capturedParametersInInitializers2(target=es5).symbols new file mode 100644 index 0000000000000..e89b7cbbd793a --- /dev/null +++ b/tests/baselines/reference/capturedParametersInInitializers2(target=es5).symbols @@ -0,0 +1,47 @@ +//// [tests/cases/compiler/capturedParametersInInitializers2.ts] //// + +=== capturedParametersInInitializers2.ts === +function foo( +>foo : Symbol(foo, Decl(capturedParametersInInitializers2.ts, 0, 0)) + + y = class { +>y : Symbol(y, Decl(capturedParametersInInitializers2.ts, 0, 13)) + + static c = x; +>c : Symbol((Anonymous class).c, Decl(capturedParametersInInitializers2.ts, 1, 15)) +>x : Symbol(x, Decl(capturedParametersInInitializers2.ts, 6, 6)) + + get [x]() {return x;} +>[x] : Symbol((Anonymous class)[x], Decl(capturedParametersInInitializers2.ts, 2, 21)) +>x : Symbol(x, Decl(capturedParametersInInitializers2.ts, 6, 6)) +>x : Symbol(x, Decl(capturedParametersInInitializers2.ts, 6, 6)) + + constructor() { x; } +>x : Symbol(x, Decl(capturedParametersInInitializers2.ts, 6, 6)) + + [z]() { return z; } +>[z] : Symbol((Anonymous class)[z], Decl(capturedParametersInInitializers2.ts, 4, 28)) +>z : Symbol(z, Decl(capturedParametersInInitializers2.ts, 7, 10)) +>z : Symbol(z, Decl(capturedParametersInInitializers2.ts, 7, 10)) + + }, + x = 1, +>x : Symbol(x, Decl(capturedParametersInInitializers2.ts, 6, 6)) + + z = 2 +>z : Symbol(z, Decl(capturedParametersInInitializers2.ts, 7, 10)) + +) { + y.c +>y.c : Symbol((Anonymous class).c, Decl(capturedParametersInInitializers2.ts, 1, 15)) +>y : Symbol(y, Decl(capturedParametersInInitializers2.ts, 0, 13)) +>c : Symbol((Anonymous class).c, Decl(capturedParametersInInitializers2.ts, 1, 15)) +} +function foo2(y = class {[x] = x}, x = 1) { +>foo2 : Symbol(foo2, Decl(capturedParametersInInitializers2.ts, 11, 1)) +>y : Symbol(y, Decl(capturedParametersInInitializers2.ts, 12, 14)) +>[x] : Symbol((Anonymous class)[x], Decl(capturedParametersInInitializers2.ts, 12, 25)) +>x : Symbol(x, Decl(capturedParametersInInitializers2.ts, 12, 34)) +>x : Symbol(x, Decl(capturedParametersInInitializers2.ts, 12, 34)) +>x : Symbol(x, Decl(capturedParametersInInitializers2.ts, 12, 34)) +} diff --git a/tests/baselines/reference/capturedParametersInInitializers2(target=es5).types b/tests/baselines/reference/capturedParametersInInitializers2(target=es5).types new file mode 100644 index 0000000000000..200b36a739e25 --- /dev/null +++ b/tests/baselines/reference/capturedParametersInInitializers2(target=es5).types @@ -0,0 +1,79 @@ +//// [tests/cases/compiler/capturedParametersInInitializers2.ts] //// + +=== capturedParametersInInitializers2.ts === +function foo( +>foo : (y?: typeof (Anonymous class), x?: number, z?: number) => void +> : ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ + + y = class { +>y : typeof (Anonymous class) +> : ^^^^^^^^^^^^^^^^^^^^^^^^ +>class { static c = x; get [x]() {return x;} constructor() { x; } [z]() { return z; } } : typeof (Anonymous class) +> : ^^^^^^^^^^^^^^^^^^^^^^^^ + + static c = x; +>c : number +> : ^^^^^^ +>x : number +> : ^^^^^^ + + get [x]() {return x;} +>[x] : number +> : ^^^^^^ +>x : number +> : ^^^^^^ +>x : number +> : ^^^^^^ + + constructor() { x; } +>x : number +> : ^^^^^^ + + [z]() { return z; } +>[z] : () => number +> : ^^^^^^^^^^^^ +>z : number +> : ^^^^^^ +>z : number +> : ^^^^^^ + + }, + x = 1, +>x : number +> : ^^^^^^ +>1 : 1 +> : ^ + + z = 2 +>z : number +> : ^^^^^^ +>2 : 2 +> : ^ + +) { + y.c +>y.c : number +> : ^^^^^^ +>y : typeof (Anonymous class) +> : ^^^^^^^^^^^^^^^^^^^^^^^^ +>c : number +> : ^^^^^^ +} +function foo2(y = class {[x] = x}, x = 1) { +>foo2 : (y?: typeof (Anonymous class), x?: number) => void +> : ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ +>y : typeof (Anonymous class) +> : ^^^^^^^^^^^^^^^^^^^^^^^^ +>class {[x] = x} : typeof (Anonymous class) +> : ^^^^^^^^^^^^^^^^^^^^^^^^ +>[x] : number +> : ^^^^^^ +>x : number +> : ^^^^^^ +>x : number +> : ^^^^^^ +>x : number +> : ^^^^^^ +>1 : 1 +> : ^ +} diff --git a/tests/baselines/reference/capturedShorthandPropertyAssignmentNoCheck(target=es2015).js b/tests/baselines/reference/capturedShorthandPropertyAssignmentNoCheck(target=es2015).js new file mode 100644 index 0000000000000..d33ec6a3eb0e3 --- /dev/null +++ b/tests/baselines/reference/capturedShorthandPropertyAssignmentNoCheck(target=es2015).js @@ -0,0 +1,18 @@ +//// [tests/cases/compiler/capturedShorthandPropertyAssignmentNoCheck.ts] //// + +//// [capturedShorthandPropertyAssignmentNoCheck.ts] +const fns = []; +for (const value of [1, 2, 3]) { + fns.push(() => ({ value })); +} +const result = fns.map(fn => fn()); +console.log(result) + + +//// [capturedShorthandPropertyAssignmentNoCheck.js] +const fns = []; +for (const value of [1, 2, 3]) { + fns.push(() => ({ value })); +} +const result = fns.map(fn => fn()); +console.log(result); diff --git a/tests/baselines/reference/capturedShorthandPropertyAssignmentNoCheck.symbols b/tests/baselines/reference/capturedShorthandPropertyAssignmentNoCheck(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/capturedShorthandPropertyAssignmentNoCheck.symbols rename to tests/baselines/reference/capturedShorthandPropertyAssignmentNoCheck(target=es2015).symbols diff --git a/tests/baselines/reference/capturedShorthandPropertyAssignmentNoCheck.types b/tests/baselines/reference/capturedShorthandPropertyAssignmentNoCheck(target=es2015).types similarity index 100% rename from tests/baselines/reference/capturedShorthandPropertyAssignmentNoCheck.types rename to tests/baselines/reference/capturedShorthandPropertyAssignmentNoCheck(target=es2015).types diff --git a/tests/baselines/reference/capturedShorthandPropertyAssignmentNoCheck.js b/tests/baselines/reference/capturedShorthandPropertyAssignmentNoCheck(target=es5).js similarity index 100% rename from tests/baselines/reference/capturedShorthandPropertyAssignmentNoCheck.js rename to tests/baselines/reference/capturedShorthandPropertyAssignmentNoCheck(target=es5).js diff --git a/tests/baselines/reference/capturedShorthandPropertyAssignmentNoCheck(target=es5).symbols b/tests/baselines/reference/capturedShorthandPropertyAssignmentNoCheck(target=es5).symbols new file mode 100644 index 0000000000000..0955090e6712f --- /dev/null +++ b/tests/baselines/reference/capturedShorthandPropertyAssignmentNoCheck(target=es5).symbols @@ -0,0 +1,29 @@ +//// [tests/cases/compiler/capturedShorthandPropertyAssignmentNoCheck.ts] //// + +=== capturedShorthandPropertyAssignmentNoCheck.ts === +const fns = []; +>fns : Symbol(fns, Decl(capturedShorthandPropertyAssignmentNoCheck.ts, 0, 5)) + +for (const value of [1, 2, 3]) { +>value : Symbol(value, Decl(capturedShorthandPropertyAssignmentNoCheck.ts, 1, 10)) + + fns.push(() => ({ value })); +>fns.push : Symbol(Array.push, Decl(lib.es5.d.ts, --, --)) +>fns : Symbol(fns, Decl(capturedShorthandPropertyAssignmentNoCheck.ts, 0, 5)) +>push : Symbol(Array.push, Decl(lib.es5.d.ts, --, --)) +>value : Symbol(value, Decl(capturedShorthandPropertyAssignmentNoCheck.ts, 2, 21)) +} +const result = fns.map(fn => fn()); +>result : Symbol(result, Decl(capturedShorthandPropertyAssignmentNoCheck.ts, 4, 5)) +>fns.map : Symbol(Array.map, Decl(lib.es5.d.ts, --, --)) +>fns : Symbol(fns, Decl(capturedShorthandPropertyAssignmentNoCheck.ts, 0, 5)) +>map : Symbol(Array.map, Decl(lib.es5.d.ts, --, --)) +>fn : Symbol(fn, Decl(capturedShorthandPropertyAssignmentNoCheck.ts, 4, 23)) +>fn : Symbol(fn, Decl(capturedShorthandPropertyAssignmentNoCheck.ts, 4, 23)) + +console.log(result) +>console.log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) +>console : Symbol(console, Decl(lib.dom.d.ts, --, --)) +>log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) +>result : Symbol(result, Decl(capturedShorthandPropertyAssignmentNoCheck.ts, 4, 5)) + diff --git a/tests/baselines/reference/capturedShorthandPropertyAssignmentNoCheck(target=es5).types b/tests/baselines/reference/capturedShorthandPropertyAssignmentNoCheck(target=es5).types new file mode 100644 index 0000000000000..ff153e104aa65 --- /dev/null +++ b/tests/baselines/reference/capturedShorthandPropertyAssignmentNoCheck(target=es5).types @@ -0,0 +1,68 @@ +//// [tests/cases/compiler/capturedShorthandPropertyAssignmentNoCheck.ts] //// + +=== capturedShorthandPropertyAssignmentNoCheck.ts === +const fns = []; +>fns : any[] +> : ^^^^^ +>[] : undefined[] +> : ^^^^^^^^^^^ + +for (const value of [1, 2, 3]) { +>value : number +> : ^^^^^^ +>[1, 2, 3] : number[] +> : ^^^^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ +>3 : 3 +> : ^ + + fns.push(() => ({ value })); +>fns.push(() => ({ value })) : number +> : ^^^^^^ +>fns.push : (...items: any[]) => number +> : ^^^^ ^^^^^^^^^^^^ +>fns : any[] +> : ^^^^^ +>push : (...items: any[]) => number +> : ^^^^ ^^^^^^^^^^^^ +>() => ({ value }) : () => { value: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^ +>({ value }) : { value: number; } +> : ^^^^^^^^^^^^^^^^^^ +>{ value } : { value: number; } +> : ^^^^^^^^^^^^^^^^^^ +>value : number +> : ^^^^^^ +} +const result = fns.map(fn => fn()); +>result : any[] +> : ^^^^^ +>fns.map(fn => fn()) : any[] +> : ^^^^^ +>fns.map : (callbackfn: (value: any, index: number, array: any[]) => U, thisArg?: any) => U[] +> : ^ ^^ ^^^ ^^^^^^^ ^^ ^^ ^^^^^^^^^^^^^^^ ^^^ ^^^^^^^^ +>fns : any[] +> : ^^^^^ +>map : (callbackfn: (value: any, index: number, array: any[]) => U, thisArg?: any) => U[] +> : ^ ^^ ^^^ ^^^^^^^ ^^ ^^ ^^^^^^^^^^^^^^^ ^^^ ^^^^^^^^ +>fn => fn() : (fn: any) => any +> : ^ ^^^^^^^^^^^^^ +>fn : any +>fn() : any +>fn : any + +console.log(result) +>console.log(result) : void +> : ^^^^ +>console.log : (...data: any[]) => void +> : ^^^^ ^^ ^^^^^ +>console : Console +> : ^^^^^^^ +>log : (...data: any[]) => void +> : ^^^^ ^^ ^^^^^ +>result : any[] +> : ^^^^^ + diff --git a/tests/baselines/reference/capturedVarInLoop(target=es2015).js b/tests/baselines/reference/capturedVarInLoop(target=es2015).js new file mode 100644 index 0000000000000..bfa6a576a7252 --- /dev/null +++ b/tests/baselines/reference/capturedVarInLoop(target=es2015).js @@ -0,0 +1,15 @@ +//// [tests/cases/compiler/capturedVarInLoop.ts] //// + +//// [capturedVarInLoop.ts] +for (var i = 0; i < 10; i++) { + var str = 'x', len = str.length; + let lambda1 = (y) => { }; + let lambda2 = () => lambda1(len); +} + +//// [capturedVarInLoop.js] +for (var i = 0; i < 10; i++) { + var str = 'x', len = str.length; + let lambda1 = (y) => { }; + let lambda2 = () => lambda1(len); +} diff --git a/tests/baselines/reference/capturedVarInLoop.symbols b/tests/baselines/reference/capturedVarInLoop(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/capturedVarInLoop.symbols rename to tests/baselines/reference/capturedVarInLoop(target=es2015).symbols diff --git a/tests/baselines/reference/capturedVarInLoop.types b/tests/baselines/reference/capturedVarInLoop(target=es2015).types similarity index 100% rename from tests/baselines/reference/capturedVarInLoop.types rename to tests/baselines/reference/capturedVarInLoop(target=es2015).types diff --git a/tests/baselines/reference/capturedVarInLoop.js b/tests/baselines/reference/capturedVarInLoop(target=es5).js similarity index 100% rename from tests/baselines/reference/capturedVarInLoop.js rename to tests/baselines/reference/capturedVarInLoop(target=es5).js diff --git a/tests/baselines/reference/capturedVarInLoop(target=es5).symbols b/tests/baselines/reference/capturedVarInLoop(target=es5).symbols new file mode 100644 index 0000000000000..9f60a638ae8b8 --- /dev/null +++ b/tests/baselines/reference/capturedVarInLoop(target=es5).symbols @@ -0,0 +1,24 @@ +//// [tests/cases/compiler/capturedVarInLoop.ts] //// + +=== capturedVarInLoop.ts === +for (var i = 0; i < 10; i++) { +>i : Symbol(i, Decl(capturedVarInLoop.ts, 0, 8)) +>i : Symbol(i, Decl(capturedVarInLoop.ts, 0, 8)) +>i : Symbol(i, Decl(capturedVarInLoop.ts, 0, 8)) + + var str = 'x', len = str.length; +>str : Symbol(str, Decl(capturedVarInLoop.ts, 1, 7)) +>len : Symbol(len, Decl(capturedVarInLoop.ts, 1, 18)) +>str.length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) +>str : Symbol(str, Decl(capturedVarInLoop.ts, 1, 7)) +>length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) + + let lambda1 = (y) => { }; +>lambda1 : Symbol(lambda1, Decl(capturedVarInLoop.ts, 2, 7)) +>y : Symbol(y, Decl(capturedVarInLoop.ts, 2, 19)) + + let lambda2 = () => lambda1(len); +>lambda2 : Symbol(lambda2, Decl(capturedVarInLoop.ts, 3, 7)) +>lambda1 : Symbol(lambda1, Decl(capturedVarInLoop.ts, 2, 7)) +>len : Symbol(len, Decl(capturedVarInLoop.ts, 1, 18)) +} diff --git a/tests/baselines/reference/capturedVarInLoop(target=es5).types b/tests/baselines/reference/capturedVarInLoop(target=es5).types new file mode 100644 index 0000000000000..5a19b847e7921 --- /dev/null +++ b/tests/baselines/reference/capturedVarInLoop(target=es5).types @@ -0,0 +1,52 @@ +//// [tests/cases/compiler/capturedVarInLoop.ts] //// + +=== capturedVarInLoop.ts === +for (var i = 0; i < 10; i++) { +>i : number +> : ^^^^^^ +>0 : 0 +> : ^ +>i < 10 : boolean +> : ^^^^^^^ +>i : number +> : ^^^^^^ +>10 : 10 +> : ^^ +>i++ : number +> : ^^^^^^ +>i : number +> : ^^^^^^ + + var str = 'x', len = str.length; +>str : string +> : ^^^^^^ +>'x' : "x" +> : ^^^ +>len : number +> : ^^^^^^ +>str.length : number +> : ^^^^^^ +>str : string +> : ^^^^^^ +>length : number +> : ^^^^^^ + + let lambda1 = (y) => { }; +>lambda1 : (y: any) => void +> : ^ ^^^^^^^^^^^^^^ +>(y) => { } : (y: any) => void +> : ^ ^^^^^^^^^^^^^^ +>y : any + + let lambda2 = () => lambda1(len); +>lambda2 : () => void +> : ^^^^^^^^^^ +>() => lambda1(len) : () => void +> : ^^^^^^^^^^ +>lambda1(len) : void +> : ^^^^ +>lambda1 : (y: any) => void +> : ^ ^^^^^^^^^^^^^^ +>len : number +> : ^^^^^^ +} diff --git a/tests/baselines/reference/circularObjectLiteralAccessors(target=es2015).js b/tests/baselines/reference/circularObjectLiteralAccessors(target=es2015).js new file mode 100644 index 0000000000000..d1a534e989a87 --- /dev/null +++ b/tests/baselines/reference/circularObjectLiteralAccessors(target=es2015).js @@ -0,0 +1,30 @@ +//// [tests/cases/compiler/circularObjectLiteralAccessors.ts] //// + +//// [circularObjectLiteralAccessors.ts] +// Repro from #6000 + +const a = { + b: { + get foo(): string { + return a.foo; + }, + set foo(value: string) { + a.foo = value; + } + }, + foo: '' +}; + +//// [circularObjectLiteralAccessors.js] +// Repro from #6000 +const a = { + b: { + get foo() { + return a.foo; + }, + set foo(value) { + a.foo = value; + } + }, + foo: '' +}; diff --git a/tests/baselines/reference/circularObjectLiteralAccessors.symbols b/tests/baselines/reference/circularObjectLiteralAccessors(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/circularObjectLiteralAccessors.symbols rename to tests/baselines/reference/circularObjectLiteralAccessors(target=es2015).symbols diff --git a/tests/baselines/reference/circularObjectLiteralAccessors.types b/tests/baselines/reference/circularObjectLiteralAccessors(target=es2015).types similarity index 100% rename from tests/baselines/reference/circularObjectLiteralAccessors.types rename to tests/baselines/reference/circularObjectLiteralAccessors(target=es2015).types diff --git a/tests/baselines/reference/circularObjectLiteralAccessors.js b/tests/baselines/reference/circularObjectLiteralAccessors(target=es5).js similarity index 100% rename from tests/baselines/reference/circularObjectLiteralAccessors.js rename to tests/baselines/reference/circularObjectLiteralAccessors(target=es5).js diff --git a/tests/baselines/reference/circularObjectLiteralAccessors(target=es5).symbols b/tests/baselines/reference/circularObjectLiteralAccessors(target=es5).symbols new file mode 100644 index 0000000000000..f0d644d9561ec --- /dev/null +++ b/tests/baselines/reference/circularObjectLiteralAccessors(target=es5).symbols @@ -0,0 +1,35 @@ +//// [tests/cases/compiler/circularObjectLiteralAccessors.ts] //// + +=== circularObjectLiteralAccessors.ts === +// Repro from #6000 + +const a = { +>a : Symbol(a, Decl(circularObjectLiteralAccessors.ts, 2, 5)) + + b: { +>b : Symbol(b, Decl(circularObjectLiteralAccessors.ts, 2, 11)) + + get foo(): string { +>foo : Symbol(foo, Decl(circularObjectLiteralAccessors.ts, 3, 8), Decl(circularObjectLiteralAccessors.ts, 6, 10)) + + return a.foo; +>a.foo : Symbol(foo, Decl(circularObjectLiteralAccessors.ts, 10, 6)) +>a : Symbol(a, Decl(circularObjectLiteralAccessors.ts, 2, 5)) +>foo : Symbol(foo, Decl(circularObjectLiteralAccessors.ts, 10, 6)) + + }, + set foo(value: string) { +>foo : Symbol(foo, Decl(circularObjectLiteralAccessors.ts, 3, 8), Decl(circularObjectLiteralAccessors.ts, 6, 10)) +>value : Symbol(value, Decl(circularObjectLiteralAccessors.ts, 7, 16)) + + a.foo = value; +>a.foo : Symbol(foo, Decl(circularObjectLiteralAccessors.ts, 10, 6)) +>a : Symbol(a, Decl(circularObjectLiteralAccessors.ts, 2, 5)) +>foo : Symbol(foo, Decl(circularObjectLiteralAccessors.ts, 10, 6)) +>value : Symbol(value, Decl(circularObjectLiteralAccessors.ts, 7, 16)) + } + }, + foo: '' +>foo : Symbol(foo, Decl(circularObjectLiteralAccessors.ts, 10, 6)) + +}; diff --git a/tests/baselines/reference/circularObjectLiteralAccessors(target=es5).types b/tests/baselines/reference/circularObjectLiteralAccessors(target=es5).types new file mode 100644 index 0000000000000..df2c5d253829c --- /dev/null +++ b/tests/baselines/reference/circularObjectLiteralAccessors(target=es5).types @@ -0,0 +1,56 @@ +//// [tests/cases/compiler/circularObjectLiteralAccessors.ts] //// + +=== circularObjectLiteralAccessors.ts === +// Repro from #6000 + +const a = { +>a : { b: { foo: string; }; foo: string; } +> : ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ +>{ b: { get foo(): string { return a.foo; }, set foo(value: string) { a.foo = value; } }, foo: ''} : { b: { foo: string; }; foo: string; } +> : ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ + + b: { +>b : { foo: string; } +> : ^^^^^^^ ^^^ +>{ get foo(): string { return a.foo; }, set foo(value: string) { a.foo = value; } } : { foo: string; } +> : ^^^^^^^ ^^^ + + get foo(): string { +>foo : string +> : ^^^^^^ + + return a.foo; +>a.foo : string +> : ^^^^^^ +>a : { b: { foo: string; }; foo: string; } +> : ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ +>foo : string +> : ^^^^^^ + + }, + set foo(value: string) { +>foo : string +> : ^^^^^^ +>value : string +> : ^^^^^^ + + a.foo = value; +>a.foo = value : string +> : ^^^^^^ +>a.foo : string +> : ^^^^^^ +>a : { b: { foo: string; }; foo: string; } +> : ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ +>foo : string +> : ^^^^^^ +>value : string +> : ^^^^^^ + } + }, + foo: '' +>foo : string +> : ^^^^^^ +>'' : "" +> : ^^ + +}; diff --git a/tests/baselines/reference/classAbstractAccessor.errors.txt b/tests/baselines/reference/classAbstractAccessor(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/classAbstractAccessor.errors.txt rename to tests/baselines/reference/classAbstractAccessor(target=es2015).errors.txt diff --git a/tests/baselines/reference/classAbstractAccessor(target=es2015).js b/tests/baselines/reference/classAbstractAccessor(target=es2015).js new file mode 100644 index 0000000000000..0ef7362e9606c --- /dev/null +++ b/tests/baselines/reference/classAbstractAccessor(target=es2015).js @@ -0,0 +1,16 @@ +//// [tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractAccessor.ts] //// + +//// [classAbstractAccessor.ts] +abstract class A { + abstract get a(); + abstract get aa() { return 1; } // error + abstract set b(x: string); + abstract set bb(x: string) {} // error +} + + +//// [classAbstractAccessor.js] +class A { + get aa() { return 1; } // error + set bb(x) { } // error +} diff --git a/tests/baselines/reference/classAbstractAccessor.symbols b/tests/baselines/reference/classAbstractAccessor(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/classAbstractAccessor.symbols rename to tests/baselines/reference/classAbstractAccessor(target=es2015).symbols diff --git a/tests/baselines/reference/classAbstractAccessor.types b/tests/baselines/reference/classAbstractAccessor(target=es2015).types similarity index 100% rename from tests/baselines/reference/classAbstractAccessor.types rename to tests/baselines/reference/classAbstractAccessor(target=es2015).types diff --git a/tests/baselines/reference/classAbstractAccessor(target=es5).errors.txt b/tests/baselines/reference/classAbstractAccessor(target=es5).errors.txt new file mode 100644 index 0000000000000..552193c4cd31f --- /dev/null +++ b/tests/baselines/reference/classAbstractAccessor(target=es5).errors.txt @@ -0,0 +1,16 @@ +classAbstractAccessor.ts(3,17): error TS1318: An abstract accessor cannot have an implementation. +classAbstractAccessor.ts(5,17): error TS1318: An abstract accessor cannot have an implementation. + + +==== classAbstractAccessor.ts (2 errors) ==== + abstract class A { + abstract get a(); + abstract get aa() { return 1; } // error + ~~ +!!! error TS1318: An abstract accessor cannot have an implementation. + abstract set b(x: string); + abstract set bb(x: string) {} // error + ~~ +!!! error TS1318: An abstract accessor cannot have an implementation. + } + \ No newline at end of file diff --git a/tests/baselines/reference/classAbstractAccessor.js b/tests/baselines/reference/classAbstractAccessor(target=es5).js similarity index 100% rename from tests/baselines/reference/classAbstractAccessor.js rename to tests/baselines/reference/classAbstractAccessor(target=es5).js diff --git a/tests/baselines/reference/classAbstractAccessor(target=es5).symbols b/tests/baselines/reference/classAbstractAccessor(target=es5).symbols new file mode 100644 index 0000000000000..c661acaa4e07e --- /dev/null +++ b/tests/baselines/reference/classAbstractAccessor(target=es5).symbols @@ -0,0 +1,21 @@ +//// [tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractAccessor.ts] //// + +=== classAbstractAccessor.ts === +abstract class A { +>A : Symbol(A, Decl(classAbstractAccessor.ts, 0, 0)) + + abstract get a(); +>a : Symbol(A.a, Decl(classAbstractAccessor.ts, 0, 18)) + + abstract get aa() { return 1; } // error +>aa : Symbol(A.aa, Decl(classAbstractAccessor.ts, 1, 20)) + + abstract set b(x: string); +>b : Symbol(A.b, Decl(classAbstractAccessor.ts, 2, 34)) +>x : Symbol(x, Decl(classAbstractAccessor.ts, 3, 18)) + + abstract set bb(x: string) {} // error +>bb : Symbol(A.bb, Decl(classAbstractAccessor.ts, 3, 29)) +>x : Symbol(x, Decl(classAbstractAccessor.ts, 4, 19)) +} + diff --git a/tests/baselines/reference/classAbstractAccessor(target=es5).types b/tests/baselines/reference/classAbstractAccessor(target=es5).types new file mode 100644 index 0000000000000..feb5084cd62d8 --- /dev/null +++ b/tests/baselines/reference/classAbstractAccessor(target=es5).types @@ -0,0 +1,30 @@ +//// [tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractAccessor.ts] //// + +=== classAbstractAccessor.ts === +abstract class A { +>A : A +> : ^ + + abstract get a(); +>a : any +> : ^^^ + + abstract get aa() { return 1; } // error +>aa : number +> : ^^^^^^ +>1 : 1 +> : ^ + + abstract set b(x: string); +>b : string +> : ^^^^^^ +>x : string +> : ^^^^^^ + + abstract set bb(x: string) {} // error +>bb : string +> : ^^^^^^ +>x : string +> : ^^^^^^ +} + diff --git a/tests/baselines/reference/classExpressionWithStaticProperties2(target=es2015).js b/tests/baselines/reference/classExpressionWithStaticProperties2(target=es2015).js new file mode 100644 index 0000000000000..120631521cd13 --- /dev/null +++ b/tests/baselines/reference/classExpressionWithStaticProperties2(target=es2015).js @@ -0,0 +1,22 @@ +//// [tests/cases/compiler/classExpressionWithStaticProperties2.ts] //// + +//// [classExpressionWithStaticProperties2.ts] +var v = class C { + static a = 1; + static b + static c = { + x: "hi" + } + static d = C.c.x + " world"; + }; + +//// [classExpressionWithStaticProperties2.js] +var _a; +var v = (_a = class C { + }, + _a.a = 1, + _a.c = { + x: "hi" + }, + _a.d = _a.c.x + " world", + _a); diff --git a/tests/baselines/reference/classExpressionWithStaticProperties2.symbols b/tests/baselines/reference/classExpressionWithStaticProperties2(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/classExpressionWithStaticProperties2.symbols rename to tests/baselines/reference/classExpressionWithStaticProperties2(target=es2015).symbols diff --git a/tests/baselines/reference/classExpressionWithStaticProperties2.types b/tests/baselines/reference/classExpressionWithStaticProperties2(target=es2015).types similarity index 100% rename from tests/baselines/reference/classExpressionWithStaticProperties2.types rename to tests/baselines/reference/classExpressionWithStaticProperties2(target=es2015).types diff --git a/tests/baselines/reference/classExpressionWithStaticProperties2.js b/tests/baselines/reference/classExpressionWithStaticProperties2(target=es5).js similarity index 100% rename from tests/baselines/reference/classExpressionWithStaticProperties2.js rename to tests/baselines/reference/classExpressionWithStaticProperties2(target=es5).js diff --git a/tests/baselines/reference/classExpressionWithStaticProperties2(target=es5).symbols b/tests/baselines/reference/classExpressionWithStaticProperties2(target=es5).symbols new file mode 100644 index 0000000000000..a8704095ddfde --- /dev/null +++ b/tests/baselines/reference/classExpressionWithStaticProperties2(target=es5).symbols @@ -0,0 +1,28 @@ +//// [tests/cases/compiler/classExpressionWithStaticProperties2.ts] //// + +=== classExpressionWithStaticProperties2.ts === +var v = class C { +>v : Symbol(v, Decl(classExpressionWithStaticProperties2.ts, 0, 3)) +>C : Symbol(C, Decl(classExpressionWithStaticProperties2.ts, 0, 7)) + + static a = 1; +>a : Symbol(C.a, Decl(classExpressionWithStaticProperties2.ts, 0, 17)) + + static b +>b : Symbol(C.b, Decl(classExpressionWithStaticProperties2.ts, 1, 17)) + + static c = { +>c : Symbol(C.c, Decl(classExpressionWithStaticProperties2.ts, 2, 12)) + + x: "hi" +>x : Symbol(x, Decl(classExpressionWithStaticProperties2.ts, 3, 16)) + } + static d = C.c.x + " world"; +>d : Symbol(C.d, Decl(classExpressionWithStaticProperties2.ts, 5, 5)) +>C.c.x : Symbol(x, Decl(classExpressionWithStaticProperties2.ts, 3, 16)) +>C.c : Symbol(C.c, Decl(classExpressionWithStaticProperties2.ts, 2, 12)) +>C : Symbol(C, Decl(classExpressionWithStaticProperties2.ts, 0, 7)) +>c : Symbol(C.c, Decl(classExpressionWithStaticProperties2.ts, 2, 12)) +>x : Symbol(x, Decl(classExpressionWithStaticProperties2.ts, 3, 16)) + + }; diff --git a/tests/baselines/reference/classExpressionWithStaticProperties2(target=es5).types b/tests/baselines/reference/classExpressionWithStaticProperties2(target=es5).types new file mode 100644 index 0000000000000..8f0bbd78d5b4e --- /dev/null +++ b/tests/baselines/reference/classExpressionWithStaticProperties2(target=es5).types @@ -0,0 +1,51 @@ +//// [tests/cases/compiler/classExpressionWithStaticProperties2.ts] //// + +=== classExpressionWithStaticProperties2.ts === +var v = class C { +>v : typeof C +> : ^^^^^^^^ +>class C { static a = 1; static b static c = { x: "hi" } static d = C.c.x + " world"; } : typeof C +> : ^^^^^^^^ +>C : typeof C +> : ^^^^^^^^ + + static a = 1; +>a : number +> : ^^^^^^ +>1 : 1 +> : ^ + + static b +>b : any + + static c = { +>c : { x: string; } +> : ^^^^^^^^^^^^^^ +>{ x: "hi" } : { x: string; } +> : ^^^^^^^^^^^^^^ + + x: "hi" +>x : string +> : ^^^^^^ +>"hi" : "hi" +> : ^^^^ + } + static d = C.c.x + " world"; +>d : string +> : ^^^^^^ +>C.c.x + " world" : string +> : ^^^^^^ +>C.c.x : string +> : ^^^^^^ +>C.c : { x: string; } +> : ^^^^^^^^^^^^^^ +>C : typeof C +> : ^^^^^^^^ +>c : { x: string; } +> : ^^^^^^^^^^^^^^ +>x : string +> : ^^^^^^ +>" world" : " world" +> : ^^^^^^^^ + + }; diff --git a/tests/baselines/reference/classExpressionWithStaticProperties3(target=es2015).js b/tests/baselines/reference/classExpressionWithStaticProperties3(target=es2015).js new file mode 100644 index 0000000000000..b2a29fb88857f --- /dev/null +++ b/tests/baselines/reference/classExpressionWithStaticProperties3(target=es2015).js @@ -0,0 +1,24 @@ +//// [tests/cases/compiler/classExpressionWithStaticProperties3.ts] //// + +//// [classExpressionWithStaticProperties3.ts] +declare var console: any; +const arr: {y(): number}[] = []; +for (let i = 0; i < 3; i++) { + arr.push(class C { + static x = i; + static y = () => C.x * 2; + }); +} +arr.forEach(C => console.log(C.y())); + +//// [classExpressionWithStaticProperties3.js] +var _a; +const arr = []; +for (let i = 0; i < 3; i++) { + arr.push((_a = class C { + }, + _a.x = i, + _a.y = () => _a.x * 2, + _a)); +} +arr.forEach(C => console.log(C.y())); diff --git a/tests/baselines/reference/classExpressionWithStaticProperties3.symbols b/tests/baselines/reference/classExpressionWithStaticProperties3(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/classExpressionWithStaticProperties3.symbols rename to tests/baselines/reference/classExpressionWithStaticProperties3(target=es2015).symbols diff --git a/tests/baselines/reference/classExpressionWithStaticProperties3.types b/tests/baselines/reference/classExpressionWithStaticProperties3(target=es2015).types similarity index 100% rename from tests/baselines/reference/classExpressionWithStaticProperties3.types rename to tests/baselines/reference/classExpressionWithStaticProperties3(target=es2015).types diff --git a/tests/baselines/reference/classExpressionWithStaticProperties3.js b/tests/baselines/reference/classExpressionWithStaticProperties3(target=es5).js similarity index 100% rename from tests/baselines/reference/classExpressionWithStaticProperties3.js rename to tests/baselines/reference/classExpressionWithStaticProperties3(target=es5).js diff --git a/tests/baselines/reference/classExpressionWithStaticProperties3(target=es5).symbols b/tests/baselines/reference/classExpressionWithStaticProperties3(target=es5).symbols new file mode 100644 index 0000000000000..212d3cd2f09cc --- /dev/null +++ b/tests/baselines/reference/classExpressionWithStaticProperties3(target=es5).symbols @@ -0,0 +1,43 @@ +//// [tests/cases/compiler/classExpressionWithStaticProperties3.ts] //// + +=== classExpressionWithStaticProperties3.ts === +declare var console: any; +>console : Symbol(console, Decl(classExpressionWithStaticProperties3.ts, 0, 11)) + +const arr: {y(): number}[] = []; +>arr : Symbol(arr, Decl(classExpressionWithStaticProperties3.ts, 1, 5)) +>y : Symbol(y, Decl(classExpressionWithStaticProperties3.ts, 1, 12)) + +for (let i = 0; i < 3; i++) { +>i : Symbol(i, Decl(classExpressionWithStaticProperties3.ts, 2, 8)) +>i : Symbol(i, Decl(classExpressionWithStaticProperties3.ts, 2, 8)) +>i : Symbol(i, Decl(classExpressionWithStaticProperties3.ts, 2, 8)) + + arr.push(class C { +>arr.push : Symbol(Array.push, Decl(lib.es5.d.ts, --, --)) +>arr : Symbol(arr, Decl(classExpressionWithStaticProperties3.ts, 1, 5)) +>push : Symbol(Array.push, Decl(lib.es5.d.ts, --, --)) +>C : Symbol(C, Decl(classExpressionWithStaticProperties3.ts, 3, 13)) + + static x = i; +>x : Symbol(C.x, Decl(classExpressionWithStaticProperties3.ts, 3, 22)) +>i : Symbol(i, Decl(classExpressionWithStaticProperties3.ts, 2, 8)) + + static y = () => C.x * 2; +>y : Symbol(C.y, Decl(classExpressionWithStaticProperties3.ts, 4, 21)) +>C.x : Symbol(C.x, Decl(classExpressionWithStaticProperties3.ts, 3, 22)) +>C : Symbol(C, Decl(classExpressionWithStaticProperties3.ts, 3, 13)) +>x : Symbol(C.x, Decl(classExpressionWithStaticProperties3.ts, 3, 22)) + + }); +} +arr.forEach(C => console.log(C.y())); +>arr.forEach : Symbol(Array.forEach, Decl(lib.es5.d.ts, --, --)) +>arr : Symbol(arr, Decl(classExpressionWithStaticProperties3.ts, 1, 5)) +>forEach : Symbol(Array.forEach, Decl(lib.es5.d.ts, --, --)) +>C : Symbol(C, Decl(classExpressionWithStaticProperties3.ts, 8, 12)) +>console : Symbol(console, Decl(classExpressionWithStaticProperties3.ts, 0, 11)) +>C.y : Symbol(y, Decl(classExpressionWithStaticProperties3.ts, 1, 12)) +>C : Symbol(C, Decl(classExpressionWithStaticProperties3.ts, 8, 12)) +>y : Symbol(y, Decl(classExpressionWithStaticProperties3.ts, 1, 12)) + diff --git a/tests/baselines/reference/classExpressionWithStaticProperties3(target=es5).types b/tests/baselines/reference/classExpressionWithStaticProperties3(target=es5).types new file mode 100644 index 0000000000000..df8f6807c5362 --- /dev/null +++ b/tests/baselines/reference/classExpressionWithStaticProperties3(target=es5).types @@ -0,0 +1,96 @@ +//// [tests/cases/compiler/classExpressionWithStaticProperties3.ts] //// + +=== classExpressionWithStaticProperties3.ts === +declare var console: any; +>console : any + +const arr: {y(): number}[] = []; +>arr : { y(): number; }[] +> : ^^^^^^^ ^^^^^ +>y : () => number +> : ^^^^^^ +>[] : undefined[] +> : ^^^^^^^^^^^ + +for (let i = 0; i < 3; i++) { +>i : number +> : ^^^^^^ +>0 : 0 +> : ^ +>i < 3 : boolean +> : ^^^^^^^ +>i : number +> : ^^^^^^ +>3 : 3 +> : ^ +>i++ : number +> : ^^^^^^ +>i : number +> : ^^^^^^ + + arr.push(class C { +>arr.push(class C { static x = i; static y = () => C.x * 2; }) : number +> : ^^^^^^ +>arr.push : (...items: { y(): number; }[]) => number +> : ^^^^ ^^^^^^^^^ ^^^^^^^^^^ +>arr : { y(): number; }[] +> : ^^^^^^^ ^^^^^ +>push : (...items: { y(): number; }[]) => number +> : ^^^^ ^^^^^^^^^ ^^^^^^^^^^ +>class C { static x = i; static y = () => C.x * 2; } : typeof C +> : ^^^^^^^^ +>C : typeof C +> : ^^^^^^^^ + + static x = i; +>x : number +> : ^^^^^^ +>i : number +> : ^^^^^^ + + static y = () => C.x * 2; +>y : () => number +> : ^^^^^^^^^^^^ +>() => C.x * 2 : () => number +> : ^^^^^^^^^^^^ +>C.x * 2 : number +> : ^^^^^^ +>C.x : number +> : ^^^^^^ +>C : typeof C +> : ^^^^^^^^ +>x : number +> : ^^^^^^ +>2 : 2 +> : ^ + + }); +} +arr.forEach(C => console.log(C.y())); +>arr.forEach(C => console.log(C.y())) : void +> : ^^^^ +>arr.forEach : (callbackfn: (value: { y(): number; }, index: number, array: { y(): number; }[]) => void, thisArg?: any) => void +> : ^ ^^^ ^^^^^^^^^ ^^^^^ ^^ ^^ ^^^^^^^^^ ^^^^^^^^^^ ^^ ^^^ ^^^^^ +>arr : { y(): number; }[] +> : ^^^^^^^ ^^^^^ +>forEach : (callbackfn: (value: { y(): number; }, index: number, array: { y(): number; }[]) => void, thisArg?: any) => void +> : ^ ^^^ ^^^^^^^^^ ^^^^^ ^^ ^^ ^^^^^^^^^ ^^^^^^^^^^ ^^ ^^^ ^^^^^ +>C => console.log(C.y()) : (C: { y(): number; }) => any +> : ^ ^^^^^^^^^ ^^^^^^^^^^^ +>C : { y(): number; } +> : ^^^^^^^ ^^^ +>console.log(C.y()) : any +>console.log : any +>console : any +> : ^^^ +>log : any +> : ^^^ +>C.y() : number +> : ^^^^^^ +>C.y : () => number +> : ^^^^^^ +>C : { y(): number; } +> : ^^^^^^^ ^^^ +>y : () => number +> : ^^^^^^ + diff --git a/tests/baselines/reference/classExtendsAcrossFiles(target=es2015).js b/tests/baselines/reference/classExtendsAcrossFiles(target=es2015).js new file mode 100644 index 0000000000000..5ab289657ff63 --- /dev/null +++ b/tests/baselines/reference/classExtendsAcrossFiles(target=es2015).js @@ -0,0 +1,49 @@ +//// [tests/cases/compiler/classExtendsAcrossFiles.ts] //// + +//// [a.ts] +import { b } from './b'; +export const a = { + f: () => { + class A { } + class B extends A { } + b.f(); + } +}; +//// [b.ts] +import { a } from './a'; +export const b = { + f: () => { + class A { } + class B extends A { } + a.f(); + } +}; + +//// [b.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.b = void 0; +const a_1 = require("./a"); +exports.b = { + f: () => { + class A { + } + class B extends A { + } + a_1.a.f(); + } +}; +//// [a.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +const b_1 = require("./b"); +exports.a = { + f: () => { + class A { + } + class B extends A { + } + b_1.b.f(); + } +}; diff --git a/tests/baselines/reference/classExtendsAcrossFiles.symbols b/tests/baselines/reference/classExtendsAcrossFiles(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/classExtendsAcrossFiles.symbols rename to tests/baselines/reference/classExtendsAcrossFiles(target=es2015).symbols diff --git a/tests/baselines/reference/classExtendsAcrossFiles.types b/tests/baselines/reference/classExtendsAcrossFiles(target=es2015).types similarity index 100% rename from tests/baselines/reference/classExtendsAcrossFiles.types rename to tests/baselines/reference/classExtendsAcrossFiles(target=es2015).types diff --git a/tests/baselines/reference/classExtendsAcrossFiles.js b/tests/baselines/reference/classExtendsAcrossFiles(target=es5).js similarity index 100% rename from tests/baselines/reference/classExtendsAcrossFiles.js rename to tests/baselines/reference/classExtendsAcrossFiles(target=es5).js diff --git a/tests/baselines/reference/classExtendsAcrossFiles(target=es5).symbols b/tests/baselines/reference/classExtendsAcrossFiles(target=es5).symbols new file mode 100644 index 0000000000000..1a34b1d6c8ef1 --- /dev/null +++ b/tests/baselines/reference/classExtendsAcrossFiles(target=es5).symbols @@ -0,0 +1,48 @@ +//// [tests/cases/compiler/classExtendsAcrossFiles.ts] //// + +=== a.ts === +import { b } from './b'; +>b : Symbol(b, Decl(a.ts, 0, 8)) + +export const a = { +>a : Symbol(a, Decl(a.ts, 1, 12)) + + f: () => { +>f : Symbol(f, Decl(a.ts, 1, 18)) + + class A { } +>A : Symbol(A, Decl(a.ts, 2, 14)) + + class B extends A { } +>B : Symbol(B, Decl(a.ts, 3, 19)) +>A : Symbol(A, Decl(a.ts, 2, 14)) + + b.f(); +>b.f : Symbol(f, Decl(b.ts, 1, 18)) +>b : Symbol(b, Decl(a.ts, 0, 8)) +>f : Symbol(f, Decl(b.ts, 1, 18)) + } +}; +=== b.ts === +import { a } from './a'; +>a : Symbol(a, Decl(b.ts, 0, 8)) + +export const b = { +>b : Symbol(b, Decl(b.ts, 1, 12)) + + f: () => { +>f : Symbol(f, Decl(b.ts, 1, 18)) + + class A { } +>A : Symbol(A, Decl(b.ts, 2, 14)) + + class B extends A { } +>B : Symbol(B, Decl(b.ts, 3, 19)) +>A : Symbol(A, Decl(b.ts, 2, 14)) + + a.f(); +>a.f : Symbol(f, Decl(a.ts, 1, 18)) +>a : Symbol(a, Decl(b.ts, 0, 8)) +>f : Symbol(f, Decl(a.ts, 1, 18)) + } +}; diff --git a/tests/baselines/reference/classExtendsAcrossFiles(target=es5).types b/tests/baselines/reference/classExtendsAcrossFiles(target=es5).types new file mode 100644 index 0000000000000..4ad5ff9a4d826 --- /dev/null +++ b/tests/baselines/reference/classExtendsAcrossFiles(target=es5).types @@ -0,0 +1,78 @@ +//// [tests/cases/compiler/classExtendsAcrossFiles.ts] //// + +=== a.ts === +import { b } from './b'; +>b : { f: () => void; } +> : ^^^^^^^^^^^^^^^^^^ + +export const a = { +>a : { f: () => void; } +> : ^^^^^^^^^^^^^^^^^^ +>{ f: () => { class A { } class B extends A { } b.f(); }} : { f: () => void; } +> : ^^^^^^^^^^^^^^^^^^ + + f: () => { +>f : () => void +> : ^^^^^^^^^^ +>() => { class A { } class B extends A { } b.f(); } : () => void +> : ^^^^^^^^^^ + + class A { } +>A : A +> : ^ + + class B extends A { } +>B : B +> : ^ +>A : A +> : ^ + + b.f(); +>b.f() : void +> : ^^^^ +>b.f : () => void +> : ^^^^^^^^^^ +>b : { f: () => void; } +> : ^^^^^^^^^^^^^^^^^^ +>f : () => void +> : ^^^^^^^^^^ + } +}; +=== b.ts === +import { a } from './a'; +>a : { f: () => void; } +> : ^^^^^^^^^^^^^^^^^^ + +export const b = { +>b : { f: () => void; } +> : ^^^^^^^^^^^^^^^^^^ +>{ f: () => { class A { } class B extends A { } a.f(); }} : { f: () => void; } +> : ^^^^^^^^^^^^^^^^^^ + + f: () => { +>f : () => void +> : ^^^^^^^^^^ +>() => { class A { } class B extends A { } a.f(); } : () => void +> : ^^^^^^^^^^ + + class A { } +>A : A +> : ^ + + class B extends A { } +>B : B +> : ^ +>A : A +> : ^ + + a.f(); +>a.f() : void +> : ^^^^ +>a.f : () => void +> : ^^^^^^^^^^ +>a : { f: () => void; } +> : ^^^^^^^^^^^^^^^^^^ +>f : () => void +> : ^^^^^^^^^^ + } +}; diff --git a/tests/baselines/reference/classInConvertedLoopES5(target=es2015).js b/tests/baselines/reference/classInConvertedLoopES5(target=es2015).js new file mode 100644 index 0000000000000..eecf7fe99422a --- /dev/null +++ b/tests/baselines/reference/classInConvertedLoopES5(target=es2015).js @@ -0,0 +1,24 @@ +//// [tests/cases/compiler/classInConvertedLoopES5.ts] //// + +//// [classInConvertedLoopES5.ts] +const classesByRow: Record = {}; +for (const row of ['1', '2', '3', '4', '5']) { + class RowClass { + row = row; + static factory = () => new RowClass(); + } + + classesByRow[row] = RowClass; +} + +//// [classInConvertedLoopES5.js] +const classesByRow = {}; +for (const row of ['1', '2', '3', '4', '5']) { + class RowClass { + constructor() { + this.row = row; + } + } + RowClass.factory = () => new RowClass(); + classesByRow[row] = RowClass; +} diff --git a/tests/baselines/reference/classInConvertedLoopES5.symbols b/tests/baselines/reference/classInConvertedLoopES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/classInConvertedLoopES5.symbols rename to tests/baselines/reference/classInConvertedLoopES5(target=es2015).symbols diff --git a/tests/baselines/reference/classInConvertedLoopES5.types b/tests/baselines/reference/classInConvertedLoopES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/classInConvertedLoopES5.types rename to tests/baselines/reference/classInConvertedLoopES5(target=es2015).types diff --git a/tests/baselines/reference/classInConvertedLoopES5.js b/tests/baselines/reference/classInConvertedLoopES5(target=es5).js similarity index 100% rename from tests/baselines/reference/classInConvertedLoopES5.js rename to tests/baselines/reference/classInConvertedLoopES5(target=es5).js diff --git a/tests/baselines/reference/classInConvertedLoopES5(target=es5).symbols b/tests/baselines/reference/classInConvertedLoopES5(target=es5).symbols new file mode 100644 index 0000000000000..f9a98c57b498c --- /dev/null +++ b/tests/baselines/reference/classInConvertedLoopES5(target=es5).symbols @@ -0,0 +1,27 @@ +//// [tests/cases/compiler/classInConvertedLoopES5.ts] //// + +=== classInConvertedLoopES5.ts === +const classesByRow: Record = {}; +>classesByRow : Symbol(classesByRow, Decl(classInConvertedLoopES5.ts, 0, 5)) +>Record : Symbol(Record, Decl(lib.es5.d.ts, --, --)) + +for (const row of ['1', '2', '3', '4', '5']) { +>row : Symbol(row, Decl(classInConvertedLoopES5.ts, 1, 10)) + + class RowClass { +>RowClass : Symbol(RowClass, Decl(classInConvertedLoopES5.ts, 1, 46)) + + row = row; +>row : Symbol(RowClass.row, Decl(classInConvertedLoopES5.ts, 2, 18)) +>row : Symbol(row, Decl(classInConvertedLoopES5.ts, 1, 10)) + + static factory = () => new RowClass(); +>factory : Symbol(RowClass.factory, Decl(classInConvertedLoopES5.ts, 3, 14)) +>RowClass : Symbol(RowClass, Decl(classInConvertedLoopES5.ts, 1, 46)) + } + + classesByRow[row] = RowClass; +>classesByRow : Symbol(classesByRow, Decl(classInConvertedLoopES5.ts, 0, 5)) +>row : Symbol(row, Decl(classInConvertedLoopES5.ts, 1, 10)) +>RowClass : Symbol(RowClass, Decl(classInConvertedLoopES5.ts, 1, 46)) +} diff --git a/tests/baselines/reference/classInConvertedLoopES5(target=es5).types b/tests/baselines/reference/classInConvertedLoopES5(target=es5).types new file mode 100644 index 0000000000000..1775b6a061c3b --- /dev/null +++ b/tests/baselines/reference/classInConvertedLoopES5(target=es5).types @@ -0,0 +1,58 @@ +//// [tests/cases/compiler/classInConvertedLoopES5.ts] //// + +=== classInConvertedLoopES5.ts === +const classesByRow: Record = {}; +>classesByRow : Record +> : ^^^^^^^^^^^^^^^^^^^^^^ +>{} : {} +> : ^^ + +for (const row of ['1', '2', '3', '4', '5']) { +>row : string +> : ^^^^^^ +>['1', '2', '3', '4', '5'] : string[] +> : ^^^^^^^^ +>'1' : "1" +> : ^^^ +>'2' : "2" +> : ^^^ +>'3' : "3" +> : ^^^ +>'4' : "4" +> : ^^^ +>'5' : "5" +> : ^^^ + + class RowClass { +>RowClass : RowClass +> : ^^^^^^^^ + + row = row; +>row : string +> : ^^^^^^ +>row : string +> : ^^^^^^ + + static factory = () => new RowClass(); +>factory : () => RowClass +> : ^^^^^^^^^^^^^^ +>() => new RowClass() : () => RowClass +> : ^^^^^^^^^^^^^^ +>new RowClass() : RowClass +> : ^^^^^^^^ +>RowClass : typeof RowClass +> : ^^^^^^^^^^^^^^^ + } + + classesByRow[row] = RowClass; +>classesByRow[row] = RowClass : typeof RowClass +> : ^^^^^^^^^^^^^^^ +>classesByRow[row] : object +> : ^^^^^^ +>classesByRow : Record +> : ^^^^^^^^^^^^^^^^^^^^^^ +>row : string +> : ^^^^^^ +>RowClass : typeof RowClass +> : ^^^^^^^^^^^^^^^ +} diff --git a/tests/baselines/reference/classStaticPropertyAccess.errors.txt b/tests/baselines/reference/classStaticPropertyAccess(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/classStaticPropertyAccess.errors.txt rename to tests/baselines/reference/classStaticPropertyAccess(target=es2015).errors.txt diff --git a/tests/baselines/reference/classStaticPropertyAccess(target=es2015).js b/tests/baselines/reference/classStaticPropertyAccess(target=es2015).js new file mode 100644 index 0000000000000..735fcd68933c6 --- /dev/null +++ b/tests/baselines/reference/classStaticPropertyAccess(target=es2015).js @@ -0,0 +1,33 @@ +//// [tests/cases/compiler/classStaticPropertyAccess.ts] //// + +//// [classStaticPropertyAccess.ts] +class A { + public static "\""() {} + public static x: number = 1; + public static y: number = 1; + private static _b: number = 2; +} + +const a = new A(); + +a["\""] // Error +a['y'] // Error +a.y // Error +A._b // Error +A.a + + +//// [classStaticPropertyAccess.js] +"use strict"; +class A { + static "\""() { } +} +A.x = 1; +A.y = 1; +A._b = 2; +const a = new A(); +a["\""]; // Error +a['y']; // Error +a.y; // Error +A._b; // Error +A.a; diff --git a/tests/baselines/reference/classStaticPropertyAccess.symbols b/tests/baselines/reference/classStaticPropertyAccess(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/classStaticPropertyAccess.symbols rename to tests/baselines/reference/classStaticPropertyAccess(target=es2015).symbols diff --git a/tests/baselines/reference/classStaticPropertyAccess.types b/tests/baselines/reference/classStaticPropertyAccess(target=es2015).types similarity index 100% rename from tests/baselines/reference/classStaticPropertyAccess.types rename to tests/baselines/reference/classStaticPropertyAccess(target=es2015).types diff --git a/tests/baselines/reference/classStaticPropertyAccess(target=es5).errors.txt b/tests/baselines/reference/classStaticPropertyAccess(target=es5).errors.txt new file mode 100644 index 0000000000000..135b46a14207d --- /dev/null +++ b/tests/baselines/reference/classStaticPropertyAccess(target=es5).errors.txt @@ -0,0 +1,33 @@ +classStaticPropertyAccess.ts(10,1): error TS2576: Property '"' does not exist on type 'A'. Did you mean to access the static member 'A["\""]' instead? +classStaticPropertyAccess.ts(11,1): error TS2576: Property 'y' does not exist on type 'A'. Did you mean to access the static member 'A['y']' instead? +classStaticPropertyAccess.ts(12,3): error TS2576: Property 'y' does not exist on type 'A'. Did you mean to access the static member 'A.y' instead? +classStaticPropertyAccess.ts(13,3): error TS2341: Property '_b' is private and only accessible within class 'A'. +classStaticPropertyAccess.ts(14,3): error TS2339: Property 'a' does not exist on type 'typeof A'. + + +==== classStaticPropertyAccess.ts (5 errors) ==== + class A { + public static "\""() {} + public static x: number = 1; + public static y: number = 1; + private static _b: number = 2; + } + + const a = new A(); + + a["\""] // Error + ~~~~~~~ +!!! error TS2576: Property '"' does not exist on type 'A'. Did you mean to access the static member 'A["\""]' instead? + a['y'] // Error + ~~~~~~ +!!! error TS2576: Property 'y' does not exist on type 'A'. Did you mean to access the static member 'A['y']' instead? + a.y // Error + ~ +!!! error TS2576: Property 'y' does not exist on type 'A'. Did you mean to access the static member 'A.y' instead? + A._b // Error + ~~ +!!! error TS2341: Property '_b' is private and only accessible within class 'A'. + A.a + ~ +!!! error TS2339: Property 'a' does not exist on type 'typeof A'. + \ No newline at end of file diff --git a/tests/baselines/reference/classStaticPropertyAccess.js b/tests/baselines/reference/classStaticPropertyAccess(target=es5).js similarity index 100% rename from tests/baselines/reference/classStaticPropertyAccess.js rename to tests/baselines/reference/classStaticPropertyAccess(target=es5).js diff --git a/tests/baselines/reference/classStaticPropertyAccess(target=es5).symbols b/tests/baselines/reference/classStaticPropertyAccess(target=es5).symbols new file mode 100644 index 0000000000000..ba265a43f8558 --- /dev/null +++ b/tests/baselines/reference/classStaticPropertyAccess(target=es5).symbols @@ -0,0 +1,40 @@ +//// [tests/cases/compiler/classStaticPropertyAccess.ts] //// + +=== classStaticPropertyAccess.ts === +class A { +>A : Symbol(A, Decl(classStaticPropertyAccess.ts, 0, 0)) + + public static "\""() {} +>"\"" : Symbol(A["\""], Decl(classStaticPropertyAccess.ts, 0, 9)) + + public static x: number = 1; +>x : Symbol(A.x, Decl(classStaticPropertyAccess.ts, 1, 27)) + + public static y: number = 1; +>y : Symbol(A.y, Decl(classStaticPropertyAccess.ts, 2, 32)) + + private static _b: number = 2; +>_b : Symbol(A._b, Decl(classStaticPropertyAccess.ts, 3, 32)) +} + +const a = new A(); +>a : Symbol(a, Decl(classStaticPropertyAccess.ts, 7, 5)) +>A : Symbol(A, Decl(classStaticPropertyAccess.ts, 0, 0)) + +a["\""] // Error +>a : Symbol(a, Decl(classStaticPropertyAccess.ts, 7, 5)) + +a['y'] // Error +>a : Symbol(a, Decl(classStaticPropertyAccess.ts, 7, 5)) + +a.y // Error +>a : Symbol(a, Decl(classStaticPropertyAccess.ts, 7, 5)) + +A._b // Error +>A._b : Symbol(A._b, Decl(classStaticPropertyAccess.ts, 3, 32)) +>A : Symbol(A, Decl(classStaticPropertyAccess.ts, 0, 0)) +>_b : Symbol(A._b, Decl(classStaticPropertyAccess.ts, 3, 32)) + +A.a +>A : Symbol(A, Decl(classStaticPropertyAccess.ts, 0, 0)) + diff --git a/tests/baselines/reference/classStaticPropertyAccess(target=es5).types b/tests/baselines/reference/classStaticPropertyAccess(target=es5).types new file mode 100644 index 0000000000000..028892e16005f --- /dev/null +++ b/tests/baselines/reference/classStaticPropertyAccess(target=es5).types @@ -0,0 +1,78 @@ +//// [tests/cases/compiler/classStaticPropertyAccess.ts] //// + +=== classStaticPropertyAccess.ts === +class A { +>A : A +> : ^ + + public static "\""() {} +>"\"" : () => void +> : ^^^^^^^^^^ + + public static x: number = 1; +>x : number +> : ^^^^^^ +>1 : 1 +> : ^ + + public static y: number = 1; +>y : number +> : ^^^^^^ +>1 : 1 +> : ^ + + private static _b: number = 2; +>_b : number +> : ^^^^^^ +>2 : 2 +> : ^ +} + +const a = new A(); +>a : A +> : ^ +>new A() : A +> : ^ +>A : typeof A +> : ^^^^^^^^ + +a["\""] // Error +>a["\""] : any +> : ^^^ +>a : A +> : ^ +>"\"" : "\"" +> : ^^^^ + +a['y'] // Error +>a['y'] : any +> : ^^^ +>a : A +> : ^ +>'y' : "y" +> : ^^^ + +a.y // Error +>a.y : any +> : ^^^ +>a : A +> : ^ +>y : any +> : ^^^ + +A._b // Error +>A._b : number +> : ^^^^^^ +>A : typeof A +> : ^^^^^^^^ +>_b : number +> : ^^^^^^ + +A.a +>A.a : any +> : ^^^ +>A : typeof A +> : ^^^^^^^^ +>a : any +> : ^^^ + diff --git a/tests/baselines/reference/classStaticPropertyTypeGuard(target=es2015).js b/tests/baselines/reference/classStaticPropertyTypeGuard(target=es2015).js new file mode 100644 index 0000000000000..b8b340d0c2242 --- /dev/null +++ b/tests/baselines/reference/classStaticPropertyTypeGuard(target=es2015).js @@ -0,0 +1,26 @@ +//// [tests/cases/compiler/classStaticPropertyTypeGuard.ts] //// + +//// [classStaticPropertyTypeGuard.ts] +// Repro from #8923 + +class A { + private static _a: string | undefined; + + public get a(): string { + if (A._a) { + return A._a; // is possibly null or undefined. + } + return A._a = 'helloworld'; + } +} + +//// [classStaticPropertyTypeGuard.js] +// Repro from #8923 +class A { + get a() { + if (A._a) { + return A._a; // is possibly null or undefined. + } + return A._a = 'helloworld'; + } +} diff --git a/tests/baselines/reference/classStaticPropertyTypeGuard.symbols b/tests/baselines/reference/classStaticPropertyTypeGuard(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/classStaticPropertyTypeGuard.symbols rename to tests/baselines/reference/classStaticPropertyTypeGuard(target=es2015).symbols diff --git a/tests/baselines/reference/classStaticPropertyTypeGuard.types b/tests/baselines/reference/classStaticPropertyTypeGuard(target=es2015).types similarity index 100% rename from tests/baselines/reference/classStaticPropertyTypeGuard.types rename to tests/baselines/reference/classStaticPropertyTypeGuard(target=es2015).types diff --git a/tests/baselines/reference/classStaticPropertyTypeGuard.js b/tests/baselines/reference/classStaticPropertyTypeGuard(target=es5).js similarity index 100% rename from tests/baselines/reference/classStaticPropertyTypeGuard.js rename to tests/baselines/reference/classStaticPropertyTypeGuard(target=es5).js diff --git a/tests/baselines/reference/classStaticPropertyTypeGuard(target=es5).symbols b/tests/baselines/reference/classStaticPropertyTypeGuard(target=es5).symbols new file mode 100644 index 0000000000000..ee0eab79364c0 --- /dev/null +++ b/tests/baselines/reference/classStaticPropertyTypeGuard(target=es5).symbols @@ -0,0 +1,30 @@ +//// [tests/cases/compiler/classStaticPropertyTypeGuard.ts] //// + +=== classStaticPropertyTypeGuard.ts === +// Repro from #8923 + +class A { +>A : Symbol(A, Decl(classStaticPropertyTypeGuard.ts, 0, 0)) + + private static _a: string | undefined; +>_a : Symbol(A._a, Decl(classStaticPropertyTypeGuard.ts, 2, 9)) + + public get a(): string { +>a : Symbol(A.a, Decl(classStaticPropertyTypeGuard.ts, 3, 42)) + + if (A._a) { +>A._a : Symbol(A._a, Decl(classStaticPropertyTypeGuard.ts, 2, 9)) +>A : Symbol(A, Decl(classStaticPropertyTypeGuard.ts, 0, 0)) +>_a : Symbol(A._a, Decl(classStaticPropertyTypeGuard.ts, 2, 9)) + + return A._a; // is possibly null or undefined. +>A._a : Symbol(A._a, Decl(classStaticPropertyTypeGuard.ts, 2, 9)) +>A : Symbol(A, Decl(classStaticPropertyTypeGuard.ts, 0, 0)) +>_a : Symbol(A._a, Decl(classStaticPropertyTypeGuard.ts, 2, 9)) + } + return A._a = 'helloworld'; +>A._a : Symbol(A._a, Decl(classStaticPropertyTypeGuard.ts, 2, 9)) +>A : Symbol(A, Decl(classStaticPropertyTypeGuard.ts, 0, 0)) +>_a : Symbol(A._a, Decl(classStaticPropertyTypeGuard.ts, 2, 9)) + } +} diff --git a/tests/baselines/reference/classStaticPropertyTypeGuard(target=es5).types b/tests/baselines/reference/classStaticPropertyTypeGuard(target=es5).types new file mode 100644 index 0000000000000..4935ca62644b9 --- /dev/null +++ b/tests/baselines/reference/classStaticPropertyTypeGuard(target=es5).types @@ -0,0 +1,46 @@ +//// [tests/cases/compiler/classStaticPropertyTypeGuard.ts] //// + +=== classStaticPropertyTypeGuard.ts === +// Repro from #8923 + +class A { +>A : A +> : ^ + + private static _a: string | undefined; +>_a : string | undefined +> : ^^^^^^^^^^^^^^^^^^ + + public get a(): string { +>a : string +> : ^^^^^^ + + if (A._a) { +>A._a : string | undefined +> : ^^^^^^^^^^^^^^^^^^ +>A : typeof A +> : ^^^^^^^^ +>_a : string | undefined +> : ^^^^^^^^^^^^^^^^^^ + + return A._a; // is possibly null or undefined. +>A._a : string +> : ^^^^^^ +>A : typeof A +> : ^^^^^^^^ +>_a : string +> : ^^^^^^ + } + return A._a = 'helloworld'; +>A._a = 'helloworld' : "helloworld" +> : ^^^^^^^^^^^^ +>A._a : string | undefined +> : ^^^^^^^^^^^^^^^^^^ +>A : typeof A +> : ^^^^^^^^ +>_a : string | undefined +> : ^^^^^^^^^^^^^^^^^^ +>'helloworld' : "helloworld" +> : ^^^^^^^^^^^^ + } +} diff --git a/tests/baselines/reference/classUsedBeforeInitializedVariables.errors.txt b/tests/baselines/reference/classUsedBeforeInitializedVariables(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/classUsedBeforeInitializedVariables.errors.txt rename to tests/baselines/reference/classUsedBeforeInitializedVariables(target=es2015).errors.txt diff --git a/tests/baselines/reference/classUsedBeforeInitializedVariables(target=es2015).js b/tests/baselines/reference/classUsedBeforeInitializedVariables(target=es2015).js new file mode 100644 index 0000000000000..37fd555343acd --- /dev/null +++ b/tests/baselines/reference/classUsedBeforeInitializedVariables(target=es2015).js @@ -0,0 +1,87 @@ +//// [tests/cases/compiler/classUsedBeforeInitializedVariables.ts] //// + +//// [classUsedBeforeInitializedVariables.ts] +class Test { + p1 = 0; + p2 = this.p1; + p3 = this.p4; + p4 = 0; + p5?: number; + + p6?: string; + p7 = { + hello: (this.p6 = "string"), + }; + + directlyAssigned: any = this.directlyAssigned; + + withinArrowFunction: any = () => this.withinArrowFunction; + + withinFunction: any = function () { + return this.withinFunction; + }; + + withinObjectLiteral: any = { + [this.withinObjectLiteral]: true, + }; + + withinObjectLiteralGetterName: any = { + get [this.withinObjectLiteralGetterName]() { + return true; + } + }; + + withinObjectLiteralSetterName: any = { + set [this.withinObjectLiteralSetterName](_: any) {} + }; + + withinClassDeclarationExtension: any = (class extends this.withinClassDeclarationExtension { }); + + fromOptional = this.p5; + + // These error cases are ignored (not checked by control flow analysis) + + assignedByArrowFunction: any = (() => this.assignedByFunction)(); + + assignedByFunction: any = (function () { + return this.assignedByFunction; + })(); +} + + +//// [classUsedBeforeInitializedVariables.js] +class Test { + constructor() { + this.p1 = 0; + this.p2 = this.p1; + this.p3 = this.p4; + this.p4 = 0; + this.p7 = { + hello: (this.p6 = "string"), + }; + this.directlyAssigned = this.directlyAssigned; + this.withinArrowFunction = () => this.withinArrowFunction; + this.withinFunction = function () { + return this.withinFunction; + }; + this.withinObjectLiteral = { + [this.withinObjectLiteral]: true, + }; + this.withinObjectLiteralGetterName = { + get [this.withinObjectLiteralGetterName]() { + return true; + } + }; + this.withinObjectLiteralSetterName = { + set [this.withinObjectLiteralSetterName](_) { } + }; + this.withinClassDeclarationExtension = (class extends this.withinClassDeclarationExtension { + }); + this.fromOptional = this.p5; + // These error cases are ignored (not checked by control flow analysis) + this.assignedByArrowFunction = (() => this.assignedByFunction)(); + this.assignedByFunction = (function () { + return this.assignedByFunction; + })(); + } +} diff --git a/tests/baselines/reference/classUsedBeforeInitializedVariables.symbols b/tests/baselines/reference/classUsedBeforeInitializedVariables(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/classUsedBeforeInitializedVariables.symbols rename to tests/baselines/reference/classUsedBeforeInitializedVariables(target=es2015).symbols diff --git a/tests/baselines/reference/classUsedBeforeInitializedVariables.types b/tests/baselines/reference/classUsedBeforeInitializedVariables(target=es2015).types similarity index 100% rename from tests/baselines/reference/classUsedBeforeInitializedVariables.types rename to tests/baselines/reference/classUsedBeforeInitializedVariables(target=es2015).types diff --git a/tests/baselines/reference/classUsedBeforeInitializedVariables(target=es5).errors.txt b/tests/baselines/reference/classUsedBeforeInitializedVariables(target=es5).errors.txt new file mode 100644 index 0000000000000..5a9c7352042eb --- /dev/null +++ b/tests/baselines/reference/classUsedBeforeInitializedVariables(target=es5).errors.txt @@ -0,0 +1,74 @@ +classUsedBeforeInitializedVariables.ts(4,15): error TS2729: Property 'p4' is used before its initialization. +classUsedBeforeInitializedVariables.ts(13,34): error TS2729: Property 'directlyAssigned' is used before its initialization. +classUsedBeforeInitializedVariables.ts(22,15): error TS2729: Property 'withinObjectLiteral' is used before its initialization. +classUsedBeforeInitializedVariables.ts(26,19): error TS2729: Property 'withinObjectLiteralGetterName' is used before its initialization. +classUsedBeforeInitializedVariables.ts(32,19): error TS2729: Property 'withinObjectLiteralSetterName' is used before its initialization. +classUsedBeforeInitializedVariables.ts(35,64): error TS2729: Property 'withinClassDeclarationExtension' is used before its initialization. + + +==== classUsedBeforeInitializedVariables.ts (6 errors) ==== + class Test { + p1 = 0; + p2 = this.p1; + p3 = this.p4; + ~~ +!!! error TS2729: Property 'p4' is used before its initialization. +!!! related TS2728 classUsedBeforeInitializedVariables.ts:5:5: 'p4' is declared here. + p4 = 0; + p5?: number; + + p6?: string; + p7 = { + hello: (this.p6 = "string"), + }; + + directlyAssigned: any = this.directlyAssigned; + ~~~~~~~~~~~~~~~~ +!!! error TS2729: Property 'directlyAssigned' is used before its initialization. +!!! related TS2728 classUsedBeforeInitializedVariables.ts:13:5: 'directlyAssigned' is declared here. + + withinArrowFunction: any = () => this.withinArrowFunction; + + withinFunction: any = function () { + return this.withinFunction; + }; + + withinObjectLiteral: any = { + [this.withinObjectLiteral]: true, + ~~~~~~~~~~~~~~~~~~~ +!!! error TS2729: Property 'withinObjectLiteral' is used before its initialization. +!!! related TS2728 classUsedBeforeInitializedVariables.ts:21:5: 'withinObjectLiteral' is declared here. + }; + + withinObjectLiteralGetterName: any = { + get [this.withinObjectLiteralGetterName]() { + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2729: Property 'withinObjectLiteralGetterName' is used before its initialization. +!!! related TS2728 classUsedBeforeInitializedVariables.ts:25:5: 'withinObjectLiteralGetterName' is declared here. + return true; + } + }; + + withinObjectLiteralSetterName: any = { + set [this.withinObjectLiteralSetterName](_: any) {} + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2729: Property 'withinObjectLiteralSetterName' is used before its initialization. +!!! related TS2728 classUsedBeforeInitializedVariables.ts:31:5: 'withinObjectLiteralSetterName' is declared here. + }; + + withinClassDeclarationExtension: any = (class extends this.withinClassDeclarationExtension { }); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2729: Property 'withinClassDeclarationExtension' is used before its initialization. +!!! related TS2728 classUsedBeforeInitializedVariables.ts:35:5: 'withinClassDeclarationExtension' is declared here. + + fromOptional = this.p5; + + // These error cases are ignored (not checked by control flow analysis) + + assignedByArrowFunction: any = (() => this.assignedByFunction)(); + + assignedByFunction: any = (function () { + return this.assignedByFunction; + })(); + } + \ No newline at end of file diff --git a/tests/baselines/reference/classUsedBeforeInitializedVariables.js b/tests/baselines/reference/classUsedBeforeInitializedVariables(target=es5).js similarity index 100% rename from tests/baselines/reference/classUsedBeforeInitializedVariables.js rename to tests/baselines/reference/classUsedBeforeInitializedVariables(target=es5).js diff --git a/tests/baselines/reference/classUsedBeforeInitializedVariables(target=es5).symbols b/tests/baselines/reference/classUsedBeforeInitializedVariables(target=es5).symbols new file mode 100644 index 0000000000000..fe8e4f3bef21f --- /dev/null +++ b/tests/baselines/reference/classUsedBeforeInitializedVariables(target=es5).symbols @@ -0,0 +1,122 @@ +//// [tests/cases/compiler/classUsedBeforeInitializedVariables.ts] //// + +=== classUsedBeforeInitializedVariables.ts === +class Test { +>Test : Symbol(Test, Decl(classUsedBeforeInitializedVariables.ts, 0, 0)) + + p1 = 0; +>p1 : Symbol(Test.p1, Decl(classUsedBeforeInitializedVariables.ts, 0, 12)) + + p2 = this.p1; +>p2 : Symbol(Test.p2, Decl(classUsedBeforeInitializedVariables.ts, 1, 11)) +>this.p1 : Symbol(Test.p1, Decl(classUsedBeforeInitializedVariables.ts, 0, 12)) +>this : Symbol(Test, Decl(classUsedBeforeInitializedVariables.ts, 0, 0)) +>p1 : Symbol(Test.p1, Decl(classUsedBeforeInitializedVariables.ts, 0, 12)) + + p3 = this.p4; +>p3 : Symbol(Test.p3, Decl(classUsedBeforeInitializedVariables.ts, 2, 17)) +>this.p4 : Symbol(Test.p4, Decl(classUsedBeforeInitializedVariables.ts, 3, 17)) +>this : Symbol(Test, Decl(classUsedBeforeInitializedVariables.ts, 0, 0)) +>p4 : Symbol(Test.p4, Decl(classUsedBeforeInitializedVariables.ts, 3, 17)) + + p4 = 0; +>p4 : Symbol(Test.p4, Decl(classUsedBeforeInitializedVariables.ts, 3, 17)) + + p5?: number; +>p5 : Symbol(Test.p5, Decl(classUsedBeforeInitializedVariables.ts, 4, 11)) + + p6?: string; +>p6 : Symbol(Test.p6, Decl(classUsedBeforeInitializedVariables.ts, 5, 16)) + + p7 = { +>p7 : Symbol(Test.p7, Decl(classUsedBeforeInitializedVariables.ts, 7, 16)) + + hello: (this.p6 = "string"), +>hello : Symbol(hello, Decl(classUsedBeforeInitializedVariables.ts, 8, 10)) +>this.p6 : Symbol(Test.p6, Decl(classUsedBeforeInitializedVariables.ts, 5, 16)) +>this : Symbol(Test, Decl(classUsedBeforeInitializedVariables.ts, 0, 0)) +>p6 : Symbol(Test.p6, Decl(classUsedBeforeInitializedVariables.ts, 5, 16)) + + }; + + directlyAssigned: any = this.directlyAssigned; +>directlyAssigned : Symbol(Test.directlyAssigned, Decl(classUsedBeforeInitializedVariables.ts, 10, 6)) +>this.directlyAssigned : Symbol(Test.directlyAssigned, Decl(classUsedBeforeInitializedVariables.ts, 10, 6)) +>this : Symbol(Test, Decl(classUsedBeforeInitializedVariables.ts, 0, 0)) +>directlyAssigned : Symbol(Test.directlyAssigned, Decl(classUsedBeforeInitializedVariables.ts, 10, 6)) + + withinArrowFunction: any = () => this.withinArrowFunction; +>withinArrowFunction : Symbol(Test.withinArrowFunction, Decl(classUsedBeforeInitializedVariables.ts, 12, 50)) +>this.withinArrowFunction : Symbol(Test.withinArrowFunction, Decl(classUsedBeforeInitializedVariables.ts, 12, 50)) +>this : Symbol(Test, Decl(classUsedBeforeInitializedVariables.ts, 0, 0)) +>withinArrowFunction : Symbol(Test.withinArrowFunction, Decl(classUsedBeforeInitializedVariables.ts, 12, 50)) + + withinFunction: any = function () { +>withinFunction : Symbol(Test.withinFunction, Decl(classUsedBeforeInitializedVariables.ts, 14, 62)) + + return this.withinFunction; + }; + + withinObjectLiteral: any = { +>withinObjectLiteral : Symbol(Test.withinObjectLiteral, Decl(classUsedBeforeInitializedVariables.ts, 18, 6)) + + [this.withinObjectLiteral]: true, +>[this.withinObjectLiteral] : Symbol([this.withinObjectLiteral], Decl(classUsedBeforeInitializedVariables.ts, 20, 32)) +>this.withinObjectLiteral : Symbol(Test.withinObjectLiteral, Decl(classUsedBeforeInitializedVariables.ts, 18, 6)) +>this : Symbol(Test, Decl(classUsedBeforeInitializedVariables.ts, 0, 0)) +>withinObjectLiteral : Symbol(Test.withinObjectLiteral, Decl(classUsedBeforeInitializedVariables.ts, 18, 6)) + + }; + + withinObjectLiteralGetterName: any = { +>withinObjectLiteralGetterName : Symbol(Test.withinObjectLiteralGetterName, Decl(classUsedBeforeInitializedVariables.ts, 22, 6)) + + get [this.withinObjectLiteralGetterName]() { +>[this.withinObjectLiteralGetterName] : Symbol([this.withinObjectLiteralGetterName], Decl(classUsedBeforeInitializedVariables.ts, 24, 42)) +>this.withinObjectLiteralGetterName : Symbol(Test.withinObjectLiteralGetterName, Decl(classUsedBeforeInitializedVariables.ts, 22, 6)) +>this : Symbol(Test, Decl(classUsedBeforeInitializedVariables.ts, 0, 0)) +>withinObjectLiteralGetterName : Symbol(Test.withinObjectLiteralGetterName, Decl(classUsedBeforeInitializedVariables.ts, 22, 6)) + + return true; + } + }; + + withinObjectLiteralSetterName: any = { +>withinObjectLiteralSetterName : Symbol(Test.withinObjectLiteralSetterName, Decl(classUsedBeforeInitializedVariables.ts, 28, 6)) + + set [this.withinObjectLiteralSetterName](_: any) {} +>[this.withinObjectLiteralSetterName] : Symbol([this.withinObjectLiteralSetterName], Decl(classUsedBeforeInitializedVariables.ts, 30, 42)) +>this.withinObjectLiteralSetterName : Symbol(Test.withinObjectLiteralSetterName, Decl(classUsedBeforeInitializedVariables.ts, 28, 6)) +>this : Symbol(Test, Decl(classUsedBeforeInitializedVariables.ts, 0, 0)) +>withinObjectLiteralSetterName : Symbol(Test.withinObjectLiteralSetterName, Decl(classUsedBeforeInitializedVariables.ts, 28, 6)) +>_ : Symbol(_, Decl(classUsedBeforeInitializedVariables.ts, 31, 49)) + + }; + + withinClassDeclarationExtension: any = (class extends this.withinClassDeclarationExtension { }); +>withinClassDeclarationExtension : Symbol(Test.withinClassDeclarationExtension, Decl(classUsedBeforeInitializedVariables.ts, 32, 6)) +>this.withinClassDeclarationExtension : Symbol(Test.withinClassDeclarationExtension, Decl(classUsedBeforeInitializedVariables.ts, 32, 6)) +>this : Symbol(Test, Decl(classUsedBeforeInitializedVariables.ts, 0, 0)) +>withinClassDeclarationExtension : Symbol(Test.withinClassDeclarationExtension, Decl(classUsedBeforeInitializedVariables.ts, 32, 6)) + + fromOptional = this.p5; +>fromOptional : Symbol(Test.fromOptional, Decl(classUsedBeforeInitializedVariables.ts, 34, 100)) +>this.p5 : Symbol(Test.p5, Decl(classUsedBeforeInitializedVariables.ts, 4, 11)) +>this : Symbol(Test, Decl(classUsedBeforeInitializedVariables.ts, 0, 0)) +>p5 : Symbol(Test.p5, Decl(classUsedBeforeInitializedVariables.ts, 4, 11)) + + // These error cases are ignored (not checked by control flow analysis) + + assignedByArrowFunction: any = (() => this.assignedByFunction)(); +>assignedByArrowFunction : Symbol(Test.assignedByArrowFunction, Decl(classUsedBeforeInitializedVariables.ts, 36, 27)) +>this.assignedByFunction : Symbol(Test.assignedByFunction, Decl(classUsedBeforeInitializedVariables.ts, 40, 69)) +>this : Symbol(Test, Decl(classUsedBeforeInitializedVariables.ts, 0, 0)) +>assignedByFunction : Symbol(Test.assignedByFunction, Decl(classUsedBeforeInitializedVariables.ts, 40, 69)) + + assignedByFunction: any = (function () { +>assignedByFunction : Symbol(Test.assignedByFunction, Decl(classUsedBeforeInitializedVariables.ts, 40, 69)) + + return this.assignedByFunction; + })(); +} + diff --git a/tests/baselines/reference/classUsedBeforeInitializedVariables(target=es5).types b/tests/baselines/reference/classUsedBeforeInitializedVariables(target=es5).types new file mode 100644 index 0000000000000..76ce7c9ddfc41 --- /dev/null +++ b/tests/baselines/reference/classUsedBeforeInitializedVariables(target=es5).types @@ -0,0 +1,234 @@ +//// [tests/cases/compiler/classUsedBeforeInitializedVariables.ts] //// + +=== classUsedBeforeInitializedVariables.ts === +class Test { +>Test : Test +> : ^^^^ + + p1 = 0; +>p1 : number +> : ^^^^^^ +>0 : 0 +> : ^ + + p2 = this.p1; +>p2 : number +> : ^^^^^^ +>this.p1 : number +> : ^^^^^^ +>this : this +> : ^^^^ +>p1 : number +> : ^^^^^^ + + p3 = this.p4; +>p3 : number +> : ^^^^^^ +>this.p4 : number +> : ^^^^^^ +>this : this +> : ^^^^ +>p4 : number +> : ^^^^^^ + + p4 = 0; +>p4 : number +> : ^^^^^^ +>0 : 0 +> : ^ + + p5?: number; +>p5 : number +> : ^^^^^^ + + p6?: string; +>p6 : string +> : ^^^^^^ + + p7 = { +>p7 : { hello: string; } +> : ^^^^^^^^^^^^^^^^^^ +>{ hello: (this.p6 = "string"), } : { hello: string; } +> : ^^^^^^^^^^^^^^^^^^ + + hello: (this.p6 = "string"), +>hello : string +> : ^^^^^^ +>(this.p6 = "string") : "string" +> : ^^^^^^^^ +>this.p6 = "string" : "string" +> : ^^^^^^^^ +>this.p6 : string +> : ^^^^^^ +>this : this +> : ^^^^ +>p6 : string +> : ^^^^^^ +>"string" : "string" +> : ^^^^^^^^ + + }; + + directlyAssigned: any = this.directlyAssigned; +>directlyAssigned : any +> : ^^^ +>this.directlyAssigned : any +> : ^^^ +>this : this +> : ^^^^ +>directlyAssigned : any +> : ^^^ + + withinArrowFunction: any = () => this.withinArrowFunction; +>withinArrowFunction : any +> : ^^^ +>() => this.withinArrowFunction : () => any +> : ^^^^^^^^^ +>this.withinArrowFunction : any +> : ^^^ +>this : this +> : ^^^^ +>withinArrowFunction : any +> : ^^^ + + withinFunction: any = function () { +>withinFunction : any +> : ^^^ +>function () { return this.withinFunction; } : () => any +> : ^^^^^^^^^ + + return this.withinFunction; +>this.withinFunction : any +> : ^^^ +>this : any +> : ^^^ +>withinFunction : any +> : ^^^ + + }; + + withinObjectLiteral: any = { +>withinObjectLiteral : any +> : ^^^ +>{ [this.withinObjectLiteral]: true, } : { [x: number]: boolean; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ + + [this.withinObjectLiteral]: true, +>[this.withinObjectLiteral] : boolean +> : ^^^^^^^ +>this.withinObjectLiteral : any +> : ^^^ +>this : this +> : ^^^^ +>withinObjectLiteral : any +> : ^^^ +>true : true +> : ^^^^ + + }; + + withinObjectLiteralGetterName: any = { +>withinObjectLiteralGetterName : any +> : ^^^ +>{ get [this.withinObjectLiteralGetterName]() { return true; } } : { [x: number]: boolean; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ + + get [this.withinObjectLiteralGetterName]() { +>[this.withinObjectLiteralGetterName] : boolean +> : ^^^^^^^ +>this.withinObjectLiteralGetterName : any +> : ^^^ +>this : this +> : ^^^^ +>withinObjectLiteralGetterName : any +> : ^^^ + + return true; +>true : true +> : ^^^^ + } + }; + + withinObjectLiteralSetterName: any = { +>withinObjectLiteralSetterName : any +> : ^^^ +>{ set [this.withinObjectLiteralSetterName](_: any) {} } : { [x: number]: any; } +> : ^^^^^^^^^^^^^^^^^^^^^ + + set [this.withinObjectLiteralSetterName](_: any) {} +>[this.withinObjectLiteralSetterName] : any +> : ^^^ +>this.withinObjectLiteralSetterName : any +> : ^^^ +>this : this +> : ^^^^ +>withinObjectLiteralSetterName : any +> : ^^^ +>_ : any +> : ^^^ + + }; + + withinClassDeclarationExtension: any = (class extends this.withinClassDeclarationExtension { }); +>withinClassDeclarationExtension : any +> : ^^^ +>(class extends this.withinClassDeclarationExtension { }) : typeof (Anonymous class) +> : ^^^^^^^^^^^^^^^^^^^^^^^^ +>class extends this.withinClassDeclarationExtension { } : typeof (Anonymous class) +> : ^^^^^^^^^^^^^^^^^^^^^^^^ +>this.withinClassDeclarationExtension : any +> : ^^^ +>this : this +> : ^^^^ +>withinClassDeclarationExtension : any +> : ^^^ + + fromOptional = this.p5; +>fromOptional : number +> : ^^^^^^ +>this.p5 : number +> : ^^^^^^ +>this : this +> : ^^^^ +>p5 : number +> : ^^^^^^ + + // These error cases are ignored (not checked by control flow analysis) + + assignedByArrowFunction: any = (() => this.assignedByFunction)(); +>assignedByArrowFunction : any +> : ^^^ +>(() => this.assignedByFunction)() : any +> : ^^^ +>(() => this.assignedByFunction) : () => any +> : ^^^^^^^^^ +>() => this.assignedByFunction : () => any +> : ^^^^^^^^^ +>this.assignedByFunction : any +> : ^^^ +>this : this +> : ^^^^ +>assignedByFunction : any +> : ^^^ + + assignedByFunction: any = (function () { +>assignedByFunction : any +> : ^^^ +>(function () { return this.assignedByFunction; })() : any +> : ^^^ +>(function () { return this.assignedByFunction; }) : () => any +> : ^^^^^^^^^ +>function () { return this.assignedByFunction; } : () => any +> : ^^^^^^^^^ + + return this.assignedByFunction; +>this.assignedByFunction : any +> : ^^^ +>this : any +> : ^^^ +>assignedByFunction : any +> : ^^^ + + })(); +} + diff --git a/tests/baselines/reference/classWithOnlyPublicMembersEquivalentToInterface(target=es2015).js b/tests/baselines/reference/classWithOnlyPublicMembersEquivalentToInterface(target=es2015).js new file mode 100644 index 0000000000000..bf458163ff606 --- /dev/null +++ b/tests/baselines/reference/classWithOnlyPublicMembersEquivalentToInterface(target=es2015).js @@ -0,0 +1,40 @@ +//// [tests/cases/conformance/types/namedTypes/classWithOnlyPublicMembersEquivalentToInterface.ts] //// + +//// [classWithOnlyPublicMembersEquivalentToInterface.ts] +// no errors expected + +class C { + public x: string; + public y(a: number): number { return null; } + public get z() { return 1; } + public set z(v) { } + [x: string]: Object; + [x: number]: Object; + 0: number; +} + +interface I { + x: string; + y(b: number): number; + z: number; + [x: string]: Object; + [x: number]: Object; + 0: number; +} + +var c: C; +var i: I; +c = i; +i = c; + +//// [classWithOnlyPublicMembersEquivalentToInterface.js] +// no errors expected +class C { + y(a) { return null; } + get z() { return 1; } + set z(v) { } +} +var c; +var i; +c = i; +i = c; diff --git a/tests/baselines/reference/classWithOnlyPublicMembersEquivalentToInterface.symbols b/tests/baselines/reference/classWithOnlyPublicMembersEquivalentToInterface(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/classWithOnlyPublicMembersEquivalentToInterface.symbols rename to tests/baselines/reference/classWithOnlyPublicMembersEquivalentToInterface(target=es2015).symbols diff --git a/tests/baselines/reference/classWithOnlyPublicMembersEquivalentToInterface.types b/tests/baselines/reference/classWithOnlyPublicMembersEquivalentToInterface(target=es2015).types similarity index 100% rename from tests/baselines/reference/classWithOnlyPublicMembersEquivalentToInterface.types rename to tests/baselines/reference/classWithOnlyPublicMembersEquivalentToInterface(target=es2015).types diff --git a/tests/baselines/reference/classWithOnlyPublicMembersEquivalentToInterface.js b/tests/baselines/reference/classWithOnlyPublicMembersEquivalentToInterface(target=es5).js similarity index 100% rename from tests/baselines/reference/classWithOnlyPublicMembersEquivalentToInterface.js rename to tests/baselines/reference/classWithOnlyPublicMembersEquivalentToInterface(target=es5).js diff --git a/tests/baselines/reference/classWithOnlyPublicMembersEquivalentToInterface(target=es5).symbols b/tests/baselines/reference/classWithOnlyPublicMembersEquivalentToInterface(target=es5).symbols new file mode 100644 index 0000000000000..26a1cb7985639 --- /dev/null +++ b/tests/baselines/reference/classWithOnlyPublicMembersEquivalentToInterface(target=es5).symbols @@ -0,0 +1,75 @@ +//// [tests/cases/conformance/types/namedTypes/classWithOnlyPublicMembersEquivalentToInterface.ts] //// + +=== classWithOnlyPublicMembersEquivalentToInterface.ts === +// no errors expected + +class C { +>C : Symbol(C, Decl(classWithOnlyPublicMembersEquivalentToInterface.ts, 0, 0)) + + public x: string; +>x : Symbol(C.x, Decl(classWithOnlyPublicMembersEquivalentToInterface.ts, 2, 9)) + + public y(a: number): number { return null; } +>y : Symbol(C.y, Decl(classWithOnlyPublicMembersEquivalentToInterface.ts, 3, 21)) +>a : Symbol(a, Decl(classWithOnlyPublicMembersEquivalentToInterface.ts, 4, 13)) + + public get z() { return 1; } +>z : Symbol(C.z, Decl(classWithOnlyPublicMembersEquivalentToInterface.ts, 4, 48), Decl(classWithOnlyPublicMembersEquivalentToInterface.ts, 5, 32)) + + public set z(v) { } +>z : Symbol(C.z, Decl(classWithOnlyPublicMembersEquivalentToInterface.ts, 4, 48), Decl(classWithOnlyPublicMembersEquivalentToInterface.ts, 5, 32)) +>v : Symbol(v, Decl(classWithOnlyPublicMembersEquivalentToInterface.ts, 6, 17)) + + [x: string]: Object; +>x : Symbol(x, Decl(classWithOnlyPublicMembersEquivalentToInterface.ts, 7, 5)) +>Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) + + [x: number]: Object; +>x : Symbol(x, Decl(classWithOnlyPublicMembersEquivalentToInterface.ts, 8, 5)) +>Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) + + 0: number; +>0 : Symbol(C[0], Decl(classWithOnlyPublicMembersEquivalentToInterface.ts, 8, 24)) +} + +interface I { +>I : Symbol(I, Decl(classWithOnlyPublicMembersEquivalentToInterface.ts, 10, 1)) + + x: string; +>x : Symbol(I.x, Decl(classWithOnlyPublicMembersEquivalentToInterface.ts, 12, 13)) + + y(b: number): number; +>y : Symbol(I.y, Decl(classWithOnlyPublicMembersEquivalentToInterface.ts, 13, 14)) +>b : Symbol(b, Decl(classWithOnlyPublicMembersEquivalentToInterface.ts, 14, 6)) + + z: number; +>z : Symbol(I.z, Decl(classWithOnlyPublicMembersEquivalentToInterface.ts, 14, 25)) + + [x: string]: Object; +>x : Symbol(x, Decl(classWithOnlyPublicMembersEquivalentToInterface.ts, 16, 5)) +>Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) + + [x: number]: Object; +>x : Symbol(x, Decl(classWithOnlyPublicMembersEquivalentToInterface.ts, 17, 5)) +>Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) + + 0: number; +>0 : Symbol(I[0], Decl(classWithOnlyPublicMembersEquivalentToInterface.ts, 17, 24)) +} + +var c: C; +>c : Symbol(c, Decl(classWithOnlyPublicMembersEquivalentToInterface.ts, 21, 3)) +>C : Symbol(C, Decl(classWithOnlyPublicMembersEquivalentToInterface.ts, 0, 0)) + +var i: I; +>i : Symbol(i, Decl(classWithOnlyPublicMembersEquivalentToInterface.ts, 22, 3)) +>I : Symbol(I, Decl(classWithOnlyPublicMembersEquivalentToInterface.ts, 10, 1)) + +c = i; +>c : Symbol(c, Decl(classWithOnlyPublicMembersEquivalentToInterface.ts, 21, 3)) +>i : Symbol(i, Decl(classWithOnlyPublicMembersEquivalentToInterface.ts, 22, 3)) + +i = c; +>i : Symbol(i, Decl(classWithOnlyPublicMembersEquivalentToInterface.ts, 22, 3)) +>c : Symbol(c, Decl(classWithOnlyPublicMembersEquivalentToInterface.ts, 21, 3)) + diff --git a/tests/baselines/reference/classWithOnlyPublicMembersEquivalentToInterface(target=es5).types b/tests/baselines/reference/classWithOnlyPublicMembersEquivalentToInterface(target=es5).types new file mode 100644 index 0000000000000..10b36848b89b6 --- /dev/null +++ b/tests/baselines/reference/classWithOnlyPublicMembersEquivalentToInterface(target=es5).types @@ -0,0 +1,96 @@ +//// [tests/cases/conformance/types/namedTypes/classWithOnlyPublicMembersEquivalentToInterface.ts] //// + +=== classWithOnlyPublicMembersEquivalentToInterface.ts === +// no errors expected + +class C { +>C : C +> : ^ + + public x: string; +>x : string +> : ^^^^^^ + + public y(a: number): number { return null; } +>y : (a: number) => number +> : ^ ^^ ^^^^^ +>a : number +> : ^^^^^^ + + public get z() { return 1; } +>z : number +> : ^^^^^^ +>1 : 1 +> : ^ + + public set z(v) { } +>z : number +> : ^^^^^^ +>v : number +> : ^^^^^^ + + [x: string]: Object; +>x : string +> : ^^^^^^ + + [x: number]: Object; +>x : number +> : ^^^^^^ + + 0: number; +>0 : number +> : ^^^^^^ +} + +interface I { + x: string; +>x : string +> : ^^^^^^ + + y(b: number): number; +>y : (b: number) => number +> : ^ ^^ ^^^^^ +>b : number +> : ^^^^^^ + + z: number; +>z : number +> : ^^^^^^ + + [x: string]: Object; +>x : string +> : ^^^^^^ + + [x: number]: Object; +>x : number +> : ^^^^^^ + + 0: number; +>0 : number +> : ^^^^^^ +} + +var c: C; +>c : C +> : ^ + +var i: I; +>i : I +> : ^ + +c = i; +>c = i : I +> : ^ +>c : C +> : ^ +>i : I +> : ^ + +i = c; +>i = c : C +> : ^ +>i : I +> : ^ +>c : C +> : ^ + diff --git a/tests/baselines/reference/classWithOnlyPublicMembersEquivalentToInterface2(target=es2015).js b/tests/baselines/reference/classWithOnlyPublicMembersEquivalentToInterface2(target=es2015).js new file mode 100644 index 0000000000000..2d5d125309eec --- /dev/null +++ b/tests/baselines/reference/classWithOnlyPublicMembersEquivalentToInterface2(target=es2015).js @@ -0,0 +1,42 @@ +//// [tests/cases/conformance/types/namedTypes/classWithOnlyPublicMembersEquivalentToInterface2.ts] //// + +//// [classWithOnlyPublicMembersEquivalentToInterface2.ts] +// no errors expected + +class C { + public x: string; + public y(a: number): number { return null; } + public get z() { return 1; } + public set z(v) { } + [x: string]: Object; + [x: number]: Object; + 0: number; + + public static foo: string; // doesn't effect equivalence +} + +interface I { + x: string; + y(b: number): number; + z: number; + [x: string]: Object; + [x: number]: Object; + 0: number; +} + +var c: C; +var i: I; +c = i; +i = c; + +//// [classWithOnlyPublicMembersEquivalentToInterface2.js] +// no errors expected +class C { + y(a) { return null; } + get z() { return 1; } + set z(v) { } +} +var c; +var i; +c = i; +i = c; diff --git a/tests/baselines/reference/classWithOnlyPublicMembersEquivalentToInterface2.symbols b/tests/baselines/reference/classWithOnlyPublicMembersEquivalentToInterface2(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/classWithOnlyPublicMembersEquivalentToInterface2.symbols rename to tests/baselines/reference/classWithOnlyPublicMembersEquivalentToInterface2(target=es2015).symbols diff --git a/tests/baselines/reference/classWithOnlyPublicMembersEquivalentToInterface2.types b/tests/baselines/reference/classWithOnlyPublicMembersEquivalentToInterface2(target=es2015).types similarity index 100% rename from tests/baselines/reference/classWithOnlyPublicMembersEquivalentToInterface2.types rename to tests/baselines/reference/classWithOnlyPublicMembersEquivalentToInterface2(target=es2015).types diff --git a/tests/baselines/reference/classWithOnlyPublicMembersEquivalentToInterface2.js b/tests/baselines/reference/classWithOnlyPublicMembersEquivalentToInterface2(target=es5).js similarity index 100% rename from tests/baselines/reference/classWithOnlyPublicMembersEquivalentToInterface2.js rename to tests/baselines/reference/classWithOnlyPublicMembersEquivalentToInterface2(target=es5).js diff --git a/tests/baselines/reference/classWithOnlyPublicMembersEquivalentToInterface2(target=es5).symbols b/tests/baselines/reference/classWithOnlyPublicMembersEquivalentToInterface2(target=es5).symbols new file mode 100644 index 0000000000000..a5c955126e841 --- /dev/null +++ b/tests/baselines/reference/classWithOnlyPublicMembersEquivalentToInterface2(target=es5).symbols @@ -0,0 +1,78 @@ +//// [tests/cases/conformance/types/namedTypes/classWithOnlyPublicMembersEquivalentToInterface2.ts] //// + +=== classWithOnlyPublicMembersEquivalentToInterface2.ts === +// no errors expected + +class C { +>C : Symbol(C, Decl(classWithOnlyPublicMembersEquivalentToInterface2.ts, 0, 0)) + + public x: string; +>x : Symbol(C.x, Decl(classWithOnlyPublicMembersEquivalentToInterface2.ts, 2, 9)) + + public y(a: number): number { return null; } +>y : Symbol(C.y, Decl(classWithOnlyPublicMembersEquivalentToInterface2.ts, 3, 21)) +>a : Symbol(a, Decl(classWithOnlyPublicMembersEquivalentToInterface2.ts, 4, 13)) + + public get z() { return 1; } +>z : Symbol(C.z, Decl(classWithOnlyPublicMembersEquivalentToInterface2.ts, 4, 48), Decl(classWithOnlyPublicMembersEquivalentToInterface2.ts, 5, 32)) + + public set z(v) { } +>z : Symbol(C.z, Decl(classWithOnlyPublicMembersEquivalentToInterface2.ts, 4, 48), Decl(classWithOnlyPublicMembersEquivalentToInterface2.ts, 5, 32)) +>v : Symbol(v, Decl(classWithOnlyPublicMembersEquivalentToInterface2.ts, 6, 17)) + + [x: string]: Object; +>x : Symbol(x, Decl(classWithOnlyPublicMembersEquivalentToInterface2.ts, 7, 5)) +>Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) + + [x: number]: Object; +>x : Symbol(x, Decl(classWithOnlyPublicMembersEquivalentToInterface2.ts, 8, 5)) +>Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) + + 0: number; +>0 : Symbol(C[0], Decl(classWithOnlyPublicMembersEquivalentToInterface2.ts, 8, 24)) + + public static foo: string; // doesn't effect equivalence +>foo : Symbol(C.foo, Decl(classWithOnlyPublicMembersEquivalentToInterface2.ts, 9, 14)) +} + +interface I { +>I : Symbol(I, Decl(classWithOnlyPublicMembersEquivalentToInterface2.ts, 12, 1)) + + x: string; +>x : Symbol(I.x, Decl(classWithOnlyPublicMembersEquivalentToInterface2.ts, 14, 13)) + + y(b: number): number; +>y : Symbol(I.y, Decl(classWithOnlyPublicMembersEquivalentToInterface2.ts, 15, 14)) +>b : Symbol(b, Decl(classWithOnlyPublicMembersEquivalentToInterface2.ts, 16, 6)) + + z: number; +>z : Symbol(I.z, Decl(classWithOnlyPublicMembersEquivalentToInterface2.ts, 16, 25)) + + [x: string]: Object; +>x : Symbol(x, Decl(classWithOnlyPublicMembersEquivalentToInterface2.ts, 18, 5)) +>Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) + + [x: number]: Object; +>x : Symbol(x, Decl(classWithOnlyPublicMembersEquivalentToInterface2.ts, 19, 5)) +>Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) + + 0: number; +>0 : Symbol(I[0], Decl(classWithOnlyPublicMembersEquivalentToInterface2.ts, 19, 24)) +} + +var c: C; +>c : Symbol(c, Decl(classWithOnlyPublicMembersEquivalentToInterface2.ts, 23, 3)) +>C : Symbol(C, Decl(classWithOnlyPublicMembersEquivalentToInterface2.ts, 0, 0)) + +var i: I; +>i : Symbol(i, Decl(classWithOnlyPublicMembersEquivalentToInterface2.ts, 24, 3)) +>I : Symbol(I, Decl(classWithOnlyPublicMembersEquivalentToInterface2.ts, 12, 1)) + +c = i; +>c : Symbol(c, Decl(classWithOnlyPublicMembersEquivalentToInterface2.ts, 23, 3)) +>i : Symbol(i, Decl(classWithOnlyPublicMembersEquivalentToInterface2.ts, 24, 3)) + +i = c; +>i : Symbol(i, Decl(classWithOnlyPublicMembersEquivalentToInterface2.ts, 24, 3)) +>c : Symbol(c, Decl(classWithOnlyPublicMembersEquivalentToInterface2.ts, 23, 3)) + diff --git a/tests/baselines/reference/classWithOnlyPublicMembersEquivalentToInterface2(target=es5).types b/tests/baselines/reference/classWithOnlyPublicMembersEquivalentToInterface2(target=es5).types new file mode 100644 index 0000000000000..db874167520b2 --- /dev/null +++ b/tests/baselines/reference/classWithOnlyPublicMembersEquivalentToInterface2(target=es5).types @@ -0,0 +1,100 @@ +//// [tests/cases/conformance/types/namedTypes/classWithOnlyPublicMembersEquivalentToInterface2.ts] //// + +=== classWithOnlyPublicMembersEquivalentToInterface2.ts === +// no errors expected + +class C { +>C : C +> : ^ + + public x: string; +>x : string +> : ^^^^^^ + + public y(a: number): number { return null; } +>y : (a: number) => number +> : ^ ^^ ^^^^^ +>a : number +> : ^^^^^^ + + public get z() { return 1; } +>z : number +> : ^^^^^^ +>1 : 1 +> : ^ + + public set z(v) { } +>z : number +> : ^^^^^^ +>v : number +> : ^^^^^^ + + [x: string]: Object; +>x : string +> : ^^^^^^ + + [x: number]: Object; +>x : number +> : ^^^^^^ + + 0: number; +>0 : number +> : ^^^^^^ + + public static foo: string; // doesn't effect equivalence +>foo : string +> : ^^^^^^ +} + +interface I { + x: string; +>x : string +> : ^^^^^^ + + y(b: number): number; +>y : (b: number) => number +> : ^ ^^ ^^^^^ +>b : number +> : ^^^^^^ + + z: number; +>z : number +> : ^^^^^^ + + [x: string]: Object; +>x : string +> : ^^^^^^ + + [x: number]: Object; +>x : number +> : ^^^^^^ + + 0: number; +>0 : number +> : ^^^^^^ +} + +var c: C; +>c : C +> : ^ + +var i: I; +>i : I +> : ^ + +c = i; +>c = i : I +> : ^ +>c : C +> : ^ +>i : I +> : ^ + +i = c; +>i = c : C +> : ^ +>i : I +> : ^ +>c : C +> : ^ + diff --git a/tests/baselines/reference/classdecl(target=es2015).js b/tests/baselines/reference/classdecl(target=es2015).js new file mode 100644 index 0000000000000..bdb60b4940f32 --- /dev/null +++ b/tests/baselines/reference/classdecl(target=es2015).js @@ -0,0 +1,215 @@ +//// [tests/cases/compiler/classdecl.ts] //// + +//// [classdecl.ts] +class a { + //constructor (); + constructor (n: number); + constructor (s: string); + constructor (ns: any) { + + } + + public pgF() { } + + public pv; + public get d() { + return 30; + } + public set d(a: number) { + } + + public static get p2() { + return { x: 30, y: 40 }; + } + + private static d2() { + } + private static get p3() { + return "string"; + } + private pv3; + + private foo(n: number): string; + private foo(s: string): string; + private foo(ns: any) { + return ns.toString(); + } +} + +class b extends a { +} + +namespace m1 { + export class b { + } + class d { + } + + + export interface ib { + } +} + +namespace m2 { + + export namespace m3 { + export class c extends b { + } + export class ib2 implements m1.ib { + } + } +} + +class c extends m1.b { +} + +class ib2 implements m1.ib { +} + +declare class aAmbient { + constructor (n: number); + constructor (s: string); + public pgF(): void; + public pv; + public d : number; + static p2 : { x: number; y: number; }; + static d2(); + static p3; + private pv3; + private foo(s); +} + +class d { + private foo(n: number): string; + private foo(s: string): string; + private foo(ns: any) { + return ns.toString(); + } +} + +class e { + private foo(s: string): string; + private foo(n: number): string; + private foo(ns: any) { + return ns.toString(); + } +} + +//// [classdecl.js] +class a { + constructor(ns) { + } + pgF() { } + get d() { + return 30; + } + set d(a) { + } + static get p2() { + return { x: 30, y: 40 }; + } + static d2() { + } + static get p3() { + return "string"; + } + foo(ns) { + return ns.toString(); + } +} +class b extends a { +} +var m1; +(function (m1) { + class b { + } + m1.b = b; + class d { + } +})(m1 || (m1 = {})); +var m2; +(function (m2) { + let m3; + (function (m3) { + class c extends b { + } + m3.c = c; + class ib2 { + } + m3.ib2 = ib2; + })(m3 = m2.m3 || (m2.m3 = {})); +})(m2 || (m2 = {})); +class c extends m1.b { +} +class ib2 { +} +class d { + foo(ns) { + return ns.toString(); + } +} +class e { + foo(ns) { + return ns.toString(); + } +} + + +//// [classdecl.d.ts] +declare class a { + constructor(n: number); + constructor(s: string); + pgF(): void; + pv: any; + get d(): number; + set d(a: number); + static get p2(): { + x: number; + y: number; + }; + private static d2; + private static get p3(); + private pv3; + private foo; +} +declare class b extends a { +} +declare namespace m1 { + class b { + } + interface ib { + } +} +declare namespace m2 { + namespace m3 { + class c extends b { + } + class ib2 implements m1.ib { + } + } +} +declare class c extends m1.b { +} +declare class ib2 implements m1.ib { +} +declare class aAmbient { + constructor(n: number); + constructor(s: string); + pgF(): void; + pv: any; + d: number; + static p2: { + x: number; + y: number; + }; + static d2(): any; + static p3: any; + private pv3; + private foo; +} +declare class d { + private foo; +} +declare class e { + private foo; +} diff --git a/tests/baselines/reference/classdecl.symbols b/tests/baselines/reference/classdecl(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/classdecl.symbols rename to tests/baselines/reference/classdecl(target=es2015).symbols diff --git a/tests/baselines/reference/classdecl.types b/tests/baselines/reference/classdecl(target=es2015).types similarity index 100% rename from tests/baselines/reference/classdecl.types rename to tests/baselines/reference/classdecl(target=es2015).types diff --git a/tests/baselines/reference/classdecl.js b/tests/baselines/reference/classdecl(target=es5).js similarity index 100% rename from tests/baselines/reference/classdecl.js rename to tests/baselines/reference/classdecl(target=es5).js diff --git a/tests/baselines/reference/classdecl(target=es5).symbols b/tests/baselines/reference/classdecl(target=es5).symbols new file mode 100644 index 0000000000000..3610cc51bda66 --- /dev/null +++ b/tests/baselines/reference/classdecl(target=es5).symbols @@ -0,0 +1,200 @@ +//// [tests/cases/compiler/classdecl.ts] //// + +=== classdecl.ts === +class a { +>a : Symbol(a, Decl(classdecl.ts, 0, 0)) + + //constructor (); + constructor (n: number); +>n : Symbol(n, Decl(classdecl.ts, 2, 17)) + + constructor (s: string); +>s : Symbol(s, Decl(classdecl.ts, 3, 17)) + + constructor (ns: any) { +>ns : Symbol(ns, Decl(classdecl.ts, 4, 17)) + + } + + public pgF() { } +>pgF : Symbol(a.pgF, Decl(classdecl.ts, 6, 5)) + + public pv; +>pv : Symbol(a.pv, Decl(classdecl.ts, 8, 20)) + + public get d() { +>d : Symbol(a.d, Decl(classdecl.ts, 10, 14), Decl(classdecl.ts, 13, 5)) + + return 30; + } + public set d(a: number) { +>d : Symbol(a.d, Decl(classdecl.ts, 10, 14), Decl(classdecl.ts, 13, 5)) +>a : Symbol(a, Decl(classdecl.ts, 14, 17)) + } + + public static get p2() { +>p2 : Symbol(a.p2, Decl(classdecl.ts, 15, 5)) + + return { x: 30, y: 40 }; +>x : Symbol(x, Decl(classdecl.ts, 18, 16)) +>y : Symbol(y, Decl(classdecl.ts, 18, 23)) + } + + private static d2() { +>d2 : Symbol(a.d2, Decl(classdecl.ts, 19, 5)) + } + private static get p3() { +>p3 : Symbol(a.p3, Decl(classdecl.ts, 22, 5)) + + return "string"; + } + private pv3; +>pv3 : Symbol(a.pv3, Decl(classdecl.ts, 25, 5)) + + private foo(n: number): string; +>foo : Symbol(a.foo, Decl(classdecl.ts, 26, 16), Decl(classdecl.ts, 28, 35), Decl(classdecl.ts, 29, 35)) +>n : Symbol(n, Decl(classdecl.ts, 28, 16)) + + private foo(s: string): string; +>foo : Symbol(a.foo, Decl(classdecl.ts, 26, 16), Decl(classdecl.ts, 28, 35), Decl(classdecl.ts, 29, 35)) +>s : Symbol(s, Decl(classdecl.ts, 29, 16)) + + private foo(ns: any) { +>foo : Symbol(a.foo, Decl(classdecl.ts, 26, 16), Decl(classdecl.ts, 28, 35), Decl(classdecl.ts, 29, 35)) +>ns : Symbol(ns, Decl(classdecl.ts, 30, 16)) + + return ns.toString(); +>ns : Symbol(ns, Decl(classdecl.ts, 30, 16)) + } +} + +class b extends a { +>b : Symbol(b, Decl(classdecl.ts, 33, 1)) +>a : Symbol(a, Decl(classdecl.ts, 0, 0)) +} + +namespace m1 { +>m1 : Symbol(m1, Decl(classdecl.ts, 36, 1)) + + export class b { +>b : Symbol(b, Decl(classdecl.ts, 38, 14)) + } + class d { +>d : Symbol(d, Decl(classdecl.ts, 40, 5)) + } + + + export interface ib { +>ib : Symbol(ib, Decl(classdecl.ts, 42, 5)) + } +} + +namespace m2 { +>m2 : Symbol(m2, Decl(classdecl.ts, 47, 1)) + + export namespace m3 { +>m3 : Symbol(m3, Decl(classdecl.ts, 49, 14)) + + export class c extends b { +>c : Symbol(c, Decl(classdecl.ts, 51, 25)) +>b : Symbol(b, Decl(classdecl.ts, 33, 1)) + } + export class ib2 implements m1.ib { +>ib2 : Symbol(ib2, Decl(classdecl.ts, 53, 9)) +>m1.ib : Symbol(m1.ib, Decl(classdecl.ts, 42, 5)) +>m1 : Symbol(m1, Decl(classdecl.ts, 36, 1)) +>ib : Symbol(m1.ib, Decl(classdecl.ts, 42, 5)) + } + } +} + +class c extends m1.b { +>c : Symbol(c, Decl(classdecl.ts, 57, 1)) +>m1.b : Symbol(m1.b, Decl(classdecl.ts, 38, 14)) +>m1 : Symbol(m1, Decl(classdecl.ts, 36, 1)) +>b : Symbol(m1.b, Decl(classdecl.ts, 38, 14)) +} + +class ib2 implements m1.ib { +>ib2 : Symbol(ib2, Decl(classdecl.ts, 60, 1)) +>m1.ib : Symbol(m1.ib, Decl(classdecl.ts, 42, 5)) +>m1 : Symbol(m1, Decl(classdecl.ts, 36, 1)) +>ib : Symbol(m1.ib, Decl(classdecl.ts, 42, 5)) +} + +declare class aAmbient { +>aAmbient : Symbol(aAmbient, Decl(classdecl.ts, 63, 1)) + + constructor (n: number); +>n : Symbol(n, Decl(classdecl.ts, 66, 17)) + + constructor (s: string); +>s : Symbol(s, Decl(classdecl.ts, 67, 17)) + + public pgF(): void; +>pgF : Symbol(aAmbient.pgF, Decl(classdecl.ts, 67, 28)) + + public pv; +>pv : Symbol(aAmbient.pv, Decl(classdecl.ts, 68, 23)) + + public d : number; +>d : Symbol(aAmbient.d, Decl(classdecl.ts, 69, 14)) + + static p2 : { x: number; y: number; }; +>p2 : Symbol(aAmbient.p2, Decl(classdecl.ts, 70, 22)) +>x : Symbol(x, Decl(classdecl.ts, 71, 17)) +>y : Symbol(y, Decl(classdecl.ts, 71, 28)) + + static d2(); +>d2 : Symbol(aAmbient.d2, Decl(classdecl.ts, 71, 42)) + + static p3; +>p3 : Symbol(aAmbient.p3, Decl(classdecl.ts, 72, 16)) + + private pv3; +>pv3 : Symbol(aAmbient.pv3, Decl(classdecl.ts, 73, 14)) + + private foo(s); +>foo : Symbol(aAmbient.foo, Decl(classdecl.ts, 74, 16)) +>s : Symbol(s, Decl(classdecl.ts, 75, 16)) +} + +class d { +>d : Symbol(d, Decl(classdecl.ts, 76, 1)) + + private foo(n: number): string; +>foo : Symbol(d.foo, Decl(classdecl.ts, 78, 9), Decl(classdecl.ts, 79, 35), Decl(classdecl.ts, 80, 35)) +>n : Symbol(n, Decl(classdecl.ts, 79, 16)) + + private foo(s: string): string; +>foo : Symbol(d.foo, Decl(classdecl.ts, 78, 9), Decl(classdecl.ts, 79, 35), Decl(classdecl.ts, 80, 35)) +>s : Symbol(s, Decl(classdecl.ts, 80, 16)) + + private foo(ns: any) { +>foo : Symbol(d.foo, Decl(classdecl.ts, 78, 9), Decl(classdecl.ts, 79, 35), Decl(classdecl.ts, 80, 35)) +>ns : Symbol(ns, Decl(classdecl.ts, 81, 16)) + + return ns.toString(); +>ns : Symbol(ns, Decl(classdecl.ts, 81, 16)) + } +} + +class e { +>e : Symbol(e, Decl(classdecl.ts, 84, 1)) + + private foo(s: string): string; +>foo : Symbol(e.foo, Decl(classdecl.ts, 86, 9), Decl(classdecl.ts, 87, 35), Decl(classdecl.ts, 88, 35)) +>s : Symbol(s, Decl(classdecl.ts, 87, 16)) + + private foo(n: number): string; +>foo : Symbol(e.foo, Decl(classdecl.ts, 86, 9), Decl(classdecl.ts, 87, 35), Decl(classdecl.ts, 88, 35)) +>n : Symbol(n, Decl(classdecl.ts, 88, 16)) + + private foo(ns: any) { +>foo : Symbol(e.foo, Decl(classdecl.ts, 86, 9), Decl(classdecl.ts, 87, 35), Decl(classdecl.ts, 88, 35)) +>ns : Symbol(ns, Decl(classdecl.ts, 89, 16)) + + return ns.toString(); +>ns : Symbol(ns, Decl(classdecl.ts, 89, 16)) + } +} diff --git a/tests/baselines/reference/classdecl(target=es5).types b/tests/baselines/reference/classdecl(target=es5).types new file mode 100644 index 0000000000000..bb98c4bdc433c --- /dev/null +++ b/tests/baselines/reference/classdecl(target=es5).types @@ -0,0 +1,276 @@ +//// [tests/cases/compiler/classdecl.ts] //// + +=== classdecl.ts === +class a { +>a : a +> : ^ + + //constructor (); + constructor (n: number); +>n : number +> : ^^^^^^ + + constructor (s: string); +>s : string +> : ^^^^^^ + + constructor (ns: any) { +>ns : any + + } + + public pgF() { } +>pgF : () => void +> : ^^^^^^^^^^ + + public pv; +>pv : any + + public get d() { +>d : number +> : ^^^^^^ + + return 30; +>30 : 30 +> : ^^ + } + public set d(a: number) { +>d : number +> : ^^^^^^ +>a : number +> : ^^^^^^ + } + + public static get p2() { +>p2 : { x: number; y: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ + + return { x: 30, y: 40 }; +>{ x: 30, y: 40 } : { x: number; y: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>x : number +> : ^^^^^^ +>30 : 30 +> : ^^ +>y : number +> : ^^^^^^ +>40 : 40 +> : ^^ + } + + private static d2() { +>d2 : () => void +> : ^^^^^^^^^^ + } + private static get p3() { +>p3 : string +> : ^^^^^^ + + return "string"; +>"string" : "string" +> : ^^^^^^^^ + } + private pv3; +>pv3 : any + + private foo(n: number): string; +>foo : { (n: number): string; (s: string): string; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>n : number +> : ^^^^^^ + + private foo(s: string): string; +>foo : { (n: number): string; (s: string): string; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>s : string +> : ^^^^^^ + + private foo(ns: any) { +>foo : { (n: number): string; (s: string): string; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>ns : any + + return ns.toString(); +>ns.toString() : any +>ns.toString : any +>ns : any +> : ^^^ +>toString : any +> : ^^^ + } +} + +class b extends a { +>b : b +> : ^ +>a : a +> : ^ +} + +namespace m1 { +>m1 : typeof m1 +> : ^^^^^^^^^ + + export class b { +>b : b +> : ^ + } + class d { +>d : d +> : ^ + } + + + export interface ib { + } +} + +namespace m2 { +>m2 : typeof m2 +> : ^^^^^^^^^ + + export namespace m3 { +>m3 : typeof m3 +> : ^^^^^^^^^ + + export class c extends b { +>c : c +> : ^ +>b : b +> : ^ + } + export class ib2 implements m1.ib { +>ib2 : ib2 +> : ^^^ +>m1 : typeof m1 +> : ^^^^^^^^^ + } + } +} + +class c extends m1.b { +>c : c +> : ^ +>m1.b : m1.b +> : ^^^^ +>m1 : typeof m1 +> : ^^^^^^^^^ +>b : typeof m1.b +> : ^^^^^^^^^^^ +} + +class ib2 implements m1.ib { +>ib2 : ib2 +> : ^^^ +>m1 : typeof m1 +> : ^^^^^^^^^ +} + +declare class aAmbient { +>aAmbient : aAmbient +> : ^^^^^^^^ + + constructor (n: number); +>n : number +> : ^^^^^^ + + constructor (s: string); +>s : string +> : ^^^^^^ + + public pgF(): void; +>pgF : () => void +> : ^^^^^^ + + public pv; +>pv : any + + public d : number; +>d : number +> : ^^^^^^ + + static p2 : { x: number; y: number; }; +>p2 : { x: number; y: number; } +> : ^^^^^ ^^^^^ ^^^ +>x : number +> : ^^^^^^ +>y : number +> : ^^^^^^ + + static d2(); +>d2 : () => any +> : ^^^^^^^^^ + + static p3; +>p3 : any + + private pv3; +>pv3 : any + + private foo(s); +>foo : (s: any) => any +> : ^ ^^^^^^^^^^^^^ +>s : any +} + +class d { +>d : d +> : ^ + + private foo(n: number): string; +>foo : { (n: number): string; (s: string): string; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>n : number +> : ^^^^^^ + + private foo(s: string): string; +>foo : { (n: number): string; (s: string): string; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>s : string +> : ^^^^^^ + + private foo(ns: any) { +>foo : { (n: number): string; (s: string): string; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>ns : any + + return ns.toString(); +>ns.toString() : any +>ns.toString : any +>ns : any +> : ^^^ +>toString : any +> : ^^^ + } +} + +class e { +>e : e +> : ^ + + private foo(s: string): string; +>foo : { (s: string): string; (n: number): string; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>s : string +> : ^^^^^^ + + private foo(n: number): string; +>foo : { (s: string): string; (n: number): string; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>n : number +> : ^^^^^^ + + private foo(ns: any) { +>foo : { (s: string): string; (n: number): string; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>ns : any + + return ns.toString(); +>ns.toString() : any +>ns.toString : any +>ns : any +> : ^^^ +>toString : any +> : ^^^ + } +} diff --git a/tests/baselines/reference/collisionSuperAndLocalFunctionInAccessors(target=es2015).js b/tests/baselines/reference/collisionSuperAndLocalFunctionInAccessors(target=es2015).js new file mode 100644 index 0000000000000..1dcb193b07fe1 --- /dev/null +++ b/tests/baselines/reference/collisionSuperAndLocalFunctionInAccessors(target=es2015).js @@ -0,0 +1,83 @@ +//// [tests/cases/compiler/collisionSuperAndLocalFunctionInAccessors.ts] //// + +//// [collisionSuperAndLocalFunctionInAccessors.ts] +function _super() { // No error +} +class Foo { + get prop1(): number { + function _super() { // No error + } + return 10; + } + set prop1(val: number) { + function _super() { // No error + } + } +} +class b extends Foo { + get prop2(): number { + function _super() { // Should be error + } + return 10; + } + set prop2(val: number) { + function _super() { // Should be error + } + } +} +class c extends Foo { + get prop2(): number { + var x = () => { + function _super() { // Should be error + } + } + return 10; + } + set prop2(val: number) { + var x = () => { + function _super() { // Should be error + } + } + } +} + +//// [collisionSuperAndLocalFunctionInAccessors.js] +function _super() { +} +class Foo { + get prop1() { + function _super() { + } + return 10; + } + set prop1(val) { + function _super() { + } + } +} +class b extends Foo { + get prop2() { + function _super() { + } + return 10; + } + set prop2(val) { + function _super() { + } + } +} +class c extends Foo { + get prop2() { + var x = () => { + function _super() { + } + }; + return 10; + } + set prop2(val) { + var x = () => { + function _super() { + } + }; + } +} diff --git a/tests/baselines/reference/collisionSuperAndLocalFunctionInAccessors.symbols b/tests/baselines/reference/collisionSuperAndLocalFunctionInAccessors(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/collisionSuperAndLocalFunctionInAccessors.symbols rename to tests/baselines/reference/collisionSuperAndLocalFunctionInAccessors(target=es2015).symbols diff --git a/tests/baselines/reference/collisionSuperAndLocalFunctionInAccessors.types b/tests/baselines/reference/collisionSuperAndLocalFunctionInAccessors(target=es2015).types similarity index 100% rename from tests/baselines/reference/collisionSuperAndLocalFunctionInAccessors.types rename to tests/baselines/reference/collisionSuperAndLocalFunctionInAccessors(target=es2015).types diff --git a/tests/baselines/reference/collisionSuperAndLocalFunctionInAccessors.js b/tests/baselines/reference/collisionSuperAndLocalFunctionInAccessors(target=es5).js similarity index 100% rename from tests/baselines/reference/collisionSuperAndLocalFunctionInAccessors.js rename to tests/baselines/reference/collisionSuperAndLocalFunctionInAccessors(target=es5).js diff --git a/tests/baselines/reference/collisionSuperAndLocalFunctionInAccessors(target=es5).symbols b/tests/baselines/reference/collisionSuperAndLocalFunctionInAccessors(target=es5).symbols new file mode 100644 index 0000000000000..5e4830e4c95e6 --- /dev/null +++ b/tests/baselines/reference/collisionSuperAndLocalFunctionInAccessors(target=es5).symbols @@ -0,0 +1,76 @@ +//// [tests/cases/compiler/collisionSuperAndLocalFunctionInAccessors.ts] //// + +=== collisionSuperAndLocalFunctionInAccessors.ts === +function _super() { // No error +>_super : Symbol(_super, Decl(collisionSuperAndLocalFunctionInAccessors.ts, 0, 0)) +} +class Foo { +>Foo : Symbol(Foo, Decl(collisionSuperAndLocalFunctionInAccessors.ts, 1, 1)) + + get prop1(): number { +>prop1 : Symbol(Foo.prop1, Decl(collisionSuperAndLocalFunctionInAccessors.ts, 2, 11), Decl(collisionSuperAndLocalFunctionInAccessors.ts, 7, 5)) + + function _super() { // No error +>_super : Symbol(_super, Decl(collisionSuperAndLocalFunctionInAccessors.ts, 3, 25)) + } + return 10; + } + set prop1(val: number) { +>prop1 : Symbol(Foo.prop1, Decl(collisionSuperAndLocalFunctionInAccessors.ts, 2, 11), Decl(collisionSuperAndLocalFunctionInAccessors.ts, 7, 5)) +>val : Symbol(val, Decl(collisionSuperAndLocalFunctionInAccessors.ts, 8, 14)) + + function _super() { // No error +>_super : Symbol(_super, Decl(collisionSuperAndLocalFunctionInAccessors.ts, 8, 28)) + } + } +} +class b extends Foo { +>b : Symbol(b, Decl(collisionSuperAndLocalFunctionInAccessors.ts, 12, 1)) +>Foo : Symbol(Foo, Decl(collisionSuperAndLocalFunctionInAccessors.ts, 1, 1)) + + get prop2(): number { +>prop2 : Symbol(b.prop2, Decl(collisionSuperAndLocalFunctionInAccessors.ts, 13, 21), Decl(collisionSuperAndLocalFunctionInAccessors.ts, 18, 5)) + + function _super() { // Should be error +>_super : Symbol(_super, Decl(collisionSuperAndLocalFunctionInAccessors.ts, 14, 25)) + } + return 10; + } + set prop2(val: number) { +>prop2 : Symbol(b.prop2, Decl(collisionSuperAndLocalFunctionInAccessors.ts, 13, 21), Decl(collisionSuperAndLocalFunctionInAccessors.ts, 18, 5)) +>val : Symbol(val, Decl(collisionSuperAndLocalFunctionInAccessors.ts, 19, 14)) + + function _super() { // Should be error +>_super : Symbol(_super, Decl(collisionSuperAndLocalFunctionInAccessors.ts, 19, 28)) + } + } +} +class c extends Foo { +>c : Symbol(c, Decl(collisionSuperAndLocalFunctionInAccessors.ts, 23, 1)) +>Foo : Symbol(Foo, Decl(collisionSuperAndLocalFunctionInAccessors.ts, 1, 1)) + + get prop2(): number { +>prop2 : Symbol(c.prop2, Decl(collisionSuperAndLocalFunctionInAccessors.ts, 24, 21), Decl(collisionSuperAndLocalFunctionInAccessors.ts, 31, 5)) + + var x = () => { +>x : Symbol(x, Decl(collisionSuperAndLocalFunctionInAccessors.ts, 26, 11)) + + function _super() { // Should be error +>_super : Symbol(_super, Decl(collisionSuperAndLocalFunctionInAccessors.ts, 26, 23)) + } + } + return 10; + } + set prop2(val: number) { +>prop2 : Symbol(c.prop2, Decl(collisionSuperAndLocalFunctionInAccessors.ts, 24, 21), Decl(collisionSuperAndLocalFunctionInAccessors.ts, 31, 5)) +>val : Symbol(val, Decl(collisionSuperAndLocalFunctionInAccessors.ts, 32, 14)) + + var x = () => { +>x : Symbol(x, Decl(collisionSuperAndLocalFunctionInAccessors.ts, 33, 11)) + + function _super() { // Should be error +>_super : Symbol(_super, Decl(collisionSuperAndLocalFunctionInAccessors.ts, 33, 23)) + } + } + } +} diff --git a/tests/baselines/reference/collisionSuperAndLocalFunctionInAccessors(target=es5).types b/tests/baselines/reference/collisionSuperAndLocalFunctionInAccessors(target=es5).types new file mode 100644 index 0000000000000..5cdd4085186cd --- /dev/null +++ b/tests/baselines/reference/collisionSuperAndLocalFunctionInAccessors(target=es5).types @@ -0,0 +1,109 @@ +//// [tests/cases/compiler/collisionSuperAndLocalFunctionInAccessors.ts] //// + +=== collisionSuperAndLocalFunctionInAccessors.ts === +function _super() { // No error +>_super : () => void +> : ^^^^^^^^^^ +} +class Foo { +>Foo : Foo +> : ^^^ + + get prop1(): number { +>prop1 : number +> : ^^^^^^ + + function _super() { // No error +>_super : () => void +> : ^^^^^^^^^^ + } + return 10; +>10 : 10 +> : ^^ + } + set prop1(val: number) { +>prop1 : number +> : ^^^^^^ +>val : number +> : ^^^^^^ + + function _super() { // No error +>_super : () => void +> : ^^^^^^^^^^ + } + } +} +class b extends Foo { +>b : b +> : ^ +>Foo : Foo +> : ^^^ + + get prop2(): number { +>prop2 : number +> : ^^^^^^ + + function _super() { // Should be error +>_super : () => void +> : ^^^^^^^^^^ + } + return 10; +>10 : 10 +> : ^^ + } + set prop2(val: number) { +>prop2 : number +> : ^^^^^^ +>val : number +> : ^^^^^^ + + function _super() { // Should be error +>_super : () => void +> : ^^^^^^^^^^ + } + } +} +class c extends Foo { +>c : c +> : ^ +>Foo : Foo +> : ^^^ + + get prop2(): number { +>prop2 : number +> : ^^^^^^ + + var x = () => { +>x : () => void +> : ^^^^^^^^^^ +>() => { function _super() { // Should be error } } : () => void +> : ^^^^^^^^^^ + + function _super() { // Should be error +>_super : () => void +> : ^^^^^^^^^^ + } + } + return 10; +>10 : 10 +> : ^^ + } + set prop2(val: number) { +>prop2 : number +> : ^^^^^^ +>val : number +> : ^^^^^^ + + var x = () => { +>x : () => void +> : ^^^^^^^^^^ +>() => { function _super() { // Should be error } } : () => void +> : ^^^^^^^^^^ + + function _super() { // Should be error +>_super : () => void +> : ^^^^^^^^^^ + } + } + } +} diff --git a/tests/baselines/reference/collisionSuperAndLocalVarInAccessors(target=es2015).js b/tests/baselines/reference/collisionSuperAndLocalVarInAccessors(target=es2015).js new file mode 100644 index 0000000000000..0c29b8ae44040 --- /dev/null +++ b/tests/baselines/reference/collisionSuperAndLocalVarInAccessors(target=es2015).js @@ -0,0 +1,69 @@ +//// [tests/cases/compiler/collisionSuperAndLocalVarInAccessors.ts] //// + +//// [collisionSuperAndLocalVarInAccessors.ts] +var _super = 10; // No Error +class Foo { + get prop1(): number { + var _super = 10; // No error + return 10; + } + set prop1(val: number) { + var _super = 10; // No error + } +} +class b extends Foo { + get prop2(): number { + var _super = 10; // Should be error + return 10; + } + set prop2(val: number) { + var _super = 10; // Should be error + } +} +class c extends Foo { + get prop2(): number { + var x = () => { + var _super = 10; // Should be error + } + return 10; + } + set prop2(val: number) { + var x = () => { + var _super = 10; // Should be error + } + } +} + +//// [collisionSuperAndLocalVarInAccessors.js] +var _super = 10; // No Error +class Foo { + get prop1() { + var _super = 10; // No error + return 10; + } + set prop1(val) { + var _super = 10; // No error + } +} +class b extends Foo { + get prop2() { + var _super = 10; // Should be error + return 10; + } + set prop2(val) { + var _super = 10; // Should be error + } +} +class c extends Foo { + get prop2() { + var x = () => { + var _super = 10; // Should be error + }; + return 10; + } + set prop2(val) { + var x = () => { + var _super = 10; // Should be error + }; + } +} diff --git a/tests/baselines/reference/collisionSuperAndLocalVarInAccessors.symbols b/tests/baselines/reference/collisionSuperAndLocalVarInAccessors(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/collisionSuperAndLocalVarInAccessors.symbols rename to tests/baselines/reference/collisionSuperAndLocalVarInAccessors(target=es2015).symbols diff --git a/tests/baselines/reference/collisionSuperAndLocalVarInAccessors.types b/tests/baselines/reference/collisionSuperAndLocalVarInAccessors(target=es2015).types similarity index 100% rename from tests/baselines/reference/collisionSuperAndLocalVarInAccessors.types rename to tests/baselines/reference/collisionSuperAndLocalVarInAccessors(target=es2015).types diff --git a/tests/baselines/reference/collisionSuperAndLocalVarInAccessors.js b/tests/baselines/reference/collisionSuperAndLocalVarInAccessors(target=es5).js similarity index 100% rename from tests/baselines/reference/collisionSuperAndLocalVarInAccessors.js rename to tests/baselines/reference/collisionSuperAndLocalVarInAccessors(target=es5).js diff --git a/tests/baselines/reference/collisionSuperAndLocalVarInAccessors(target=es5).symbols b/tests/baselines/reference/collisionSuperAndLocalVarInAccessors(target=es5).symbols new file mode 100644 index 0000000000000..a3a8786b6c395 --- /dev/null +++ b/tests/baselines/reference/collisionSuperAndLocalVarInAccessors(target=es5).symbols @@ -0,0 +1,72 @@ +//// [tests/cases/compiler/collisionSuperAndLocalVarInAccessors.ts] //// + +=== collisionSuperAndLocalVarInAccessors.ts === +var _super = 10; // No Error +>_super : Symbol(_super, Decl(collisionSuperAndLocalVarInAccessors.ts, 0, 3)) + +class Foo { +>Foo : Symbol(Foo, Decl(collisionSuperAndLocalVarInAccessors.ts, 0, 16)) + + get prop1(): number { +>prop1 : Symbol(Foo.prop1, Decl(collisionSuperAndLocalVarInAccessors.ts, 1, 11), Decl(collisionSuperAndLocalVarInAccessors.ts, 5, 5)) + + var _super = 10; // No error +>_super : Symbol(_super, Decl(collisionSuperAndLocalVarInAccessors.ts, 3, 11)) + + return 10; + } + set prop1(val: number) { +>prop1 : Symbol(Foo.prop1, Decl(collisionSuperAndLocalVarInAccessors.ts, 1, 11), Decl(collisionSuperAndLocalVarInAccessors.ts, 5, 5)) +>val : Symbol(val, Decl(collisionSuperAndLocalVarInAccessors.ts, 6, 14)) + + var _super = 10; // No error +>_super : Symbol(_super, Decl(collisionSuperAndLocalVarInAccessors.ts, 7, 11)) + } +} +class b extends Foo { +>b : Symbol(b, Decl(collisionSuperAndLocalVarInAccessors.ts, 9, 1)) +>Foo : Symbol(Foo, Decl(collisionSuperAndLocalVarInAccessors.ts, 0, 16)) + + get prop2(): number { +>prop2 : Symbol(b.prop2, Decl(collisionSuperAndLocalVarInAccessors.ts, 10, 21), Decl(collisionSuperAndLocalVarInAccessors.ts, 14, 5)) + + var _super = 10; // Should be error +>_super : Symbol(_super, Decl(collisionSuperAndLocalVarInAccessors.ts, 12, 11)) + + return 10; + } + set prop2(val: number) { +>prop2 : Symbol(b.prop2, Decl(collisionSuperAndLocalVarInAccessors.ts, 10, 21), Decl(collisionSuperAndLocalVarInAccessors.ts, 14, 5)) +>val : Symbol(val, Decl(collisionSuperAndLocalVarInAccessors.ts, 15, 14)) + + var _super = 10; // Should be error +>_super : Symbol(_super, Decl(collisionSuperAndLocalVarInAccessors.ts, 16, 11)) + } +} +class c extends Foo { +>c : Symbol(c, Decl(collisionSuperAndLocalVarInAccessors.ts, 18, 1)) +>Foo : Symbol(Foo, Decl(collisionSuperAndLocalVarInAccessors.ts, 0, 16)) + + get prop2(): number { +>prop2 : Symbol(c.prop2, Decl(collisionSuperAndLocalVarInAccessors.ts, 19, 21), Decl(collisionSuperAndLocalVarInAccessors.ts, 25, 5)) + + var x = () => { +>x : Symbol(x, Decl(collisionSuperAndLocalVarInAccessors.ts, 21, 11)) + + var _super = 10; // Should be error +>_super : Symbol(_super, Decl(collisionSuperAndLocalVarInAccessors.ts, 22, 15)) + } + return 10; + } + set prop2(val: number) { +>prop2 : Symbol(c.prop2, Decl(collisionSuperAndLocalVarInAccessors.ts, 19, 21), Decl(collisionSuperAndLocalVarInAccessors.ts, 25, 5)) +>val : Symbol(val, Decl(collisionSuperAndLocalVarInAccessors.ts, 26, 14)) + + var x = () => { +>x : Symbol(x, Decl(collisionSuperAndLocalVarInAccessors.ts, 27, 11)) + + var _super = 10; // Should be error +>_super : Symbol(_super, Decl(collisionSuperAndLocalVarInAccessors.ts, 28, 15)) + } + } +} diff --git a/tests/baselines/reference/collisionSuperAndLocalVarInAccessors(target=es5).types b/tests/baselines/reference/collisionSuperAndLocalVarInAccessors(target=es5).types new file mode 100644 index 0000000000000..61a3fc1709887 --- /dev/null +++ b/tests/baselines/reference/collisionSuperAndLocalVarInAccessors(target=es5).types @@ -0,0 +1,119 @@ +//// [tests/cases/compiler/collisionSuperAndLocalVarInAccessors.ts] //// + +=== collisionSuperAndLocalVarInAccessors.ts === +var _super = 10; // No Error +>_super : number +> : ^^^^^^ +>10 : 10 +> : ^^ + +class Foo { +>Foo : Foo +> : ^^^ + + get prop1(): number { +>prop1 : number +> : ^^^^^^ + + var _super = 10; // No error +>_super : number +> : ^^^^^^ +>10 : 10 +> : ^^ + + return 10; +>10 : 10 +> : ^^ + } + set prop1(val: number) { +>prop1 : number +> : ^^^^^^ +>val : number +> : ^^^^^^ + + var _super = 10; // No error +>_super : number +> : ^^^^^^ +>10 : 10 +> : ^^ + } +} +class b extends Foo { +>b : b +> : ^ +>Foo : Foo +> : ^^^ + + get prop2(): number { +>prop2 : number +> : ^^^^^^ + + var _super = 10; // Should be error +>_super : number +> : ^^^^^^ +>10 : 10 +> : ^^ + + return 10; +>10 : 10 +> : ^^ + } + set prop2(val: number) { +>prop2 : number +> : ^^^^^^ +>val : number +> : ^^^^^^ + + var _super = 10; // Should be error +>_super : number +> : ^^^^^^ +>10 : 10 +> : ^^ + } +} +class c extends Foo { +>c : c +> : ^ +>Foo : Foo +> : ^^^ + + get prop2(): number { +>prop2 : number +> : ^^^^^^ + + var x = () => { +>x : () => void +> : ^^^^^^^^^^ +>() => { var _super = 10; // Should be error } : () => void +> : ^^^^^^^^^^ + + var _super = 10; // Should be error +>_super : number +> : ^^^^^^ +>10 : 10 +> : ^^ + } + return 10; +>10 : 10 +> : ^^ + } + set prop2(val: number) { +>prop2 : number +> : ^^^^^^ +>val : number +> : ^^^^^^ + + var x = () => { +>x : () => void +> : ^^^^^^^^^^ +>() => { var _super = 10; // Should be error } : () => void +> : ^^^^^^^^^^ + + var _super = 10; // Should be error +>_super : number +> : ^^^^^^ +>10 : 10 +> : ^^ + } + } +} diff --git a/tests/baselines/reference/collisionSuperAndParameter(target=es2015).js b/tests/baselines/reference/collisionSuperAndParameter(target=es2015).js new file mode 100644 index 0000000000000..cfabd0ddfd13b --- /dev/null +++ b/tests/baselines/reference/collisionSuperAndParameter(target=es2015).js @@ -0,0 +1,112 @@ +//// [tests/cases/compiler/collisionSuperAndParameter.ts] //// + +//// [collisionSuperAndParameter.ts] +class Foo { + a() { + var lamda = (_super: number) => { // No Error + return x => this; // New scope. So should inject new _this capture + } + } + b(_super: number) { // No Error + var lambda = () => { + return x => this; // New scope. So should inject new _this capture + } + } + set c(_super: number) { // No error + } +} +class Foo2 extends Foo { + x() { + var lamda = (_super: number) => { // Error + return x => this; // New scope. So should inject new _this capture + } + } + y(_super: number) { // Error + var lambda = () => { + return x => this; // New scope. So should inject new _this capture + } + } + set z(_super: number) { // Error + } + public prop3: { + doStuff: (_super: number) => void; // no error - no code gen + } + public prop4 = { + doStuff: (_super: number) => { // should be error + } + } + constructor(_super: number) { // should be error + super(); + } +} +declare class Foo3 extends Foo { + x(); + y(_super: number); // No error - no code gen + constructor(_super: number); // No error - no code gen + public prop2: { + doStuff: (_super: number) => void; // no error - no code gen + }; + public _super: number; // No error +} + +class Foo4 extends Foo { + constructor(_super: number); // no code gen - no error + constructor(_super: string);// no code gen - no error + constructor(_super: any) { // should be error + super(); + } + y(_super: number); // no code gen - no error + y(_super: string); // no code gen - no error + y(_super: any) { // Error + var lambda = () => { + return x => this; // New scope. So should inject new _this capture + } + } +} + +//// [collisionSuperAndParameter.js] +class Foo { + a() { + var lamda = (_super) => { + return x => this; // New scope. So should inject new _this capture + }; + } + b(_super) { + var lambda = () => { + return x => this; // New scope. So should inject new _this capture + }; + } + set c(_super) { + } +} +class Foo2 extends Foo { + x() { + var lamda = (_super) => { + return x => this; // New scope. So should inject new _this capture + }; + } + y(_super) { + var lambda = () => { + return x => this; // New scope. So should inject new _this capture + }; + } + set z(_super) { + } + constructor(_super) { + super(); + this.prop4 = { + doStuff: (_super) => { + } + }; + } +} +class Foo4 extends Foo { + constructor(_super) { + super(); + } + y(_super) { + var lambda = () => { + return x => this; // New scope. So should inject new _this capture + }; + } +} diff --git a/tests/baselines/reference/collisionSuperAndParameter.symbols b/tests/baselines/reference/collisionSuperAndParameter(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/collisionSuperAndParameter.symbols rename to tests/baselines/reference/collisionSuperAndParameter(target=es2015).symbols diff --git a/tests/baselines/reference/collisionSuperAndParameter.types b/tests/baselines/reference/collisionSuperAndParameter(target=es2015).types similarity index 100% rename from tests/baselines/reference/collisionSuperAndParameter.types rename to tests/baselines/reference/collisionSuperAndParameter(target=es2015).types diff --git a/tests/baselines/reference/collisionSuperAndParameter.js b/tests/baselines/reference/collisionSuperAndParameter(target=es5).js similarity index 100% rename from tests/baselines/reference/collisionSuperAndParameter.js rename to tests/baselines/reference/collisionSuperAndParameter(target=es5).js diff --git a/tests/baselines/reference/collisionSuperAndParameter(target=es5).symbols b/tests/baselines/reference/collisionSuperAndParameter(target=es5).symbols new file mode 100644 index 0000000000000..b84520561f690 --- /dev/null +++ b/tests/baselines/reference/collisionSuperAndParameter(target=es5).symbols @@ -0,0 +1,152 @@ +//// [tests/cases/compiler/collisionSuperAndParameter.ts] //// + +=== collisionSuperAndParameter.ts === +class Foo { +>Foo : Symbol(Foo, Decl(collisionSuperAndParameter.ts, 0, 0)) + + a() { +>a : Symbol(Foo.a, Decl(collisionSuperAndParameter.ts, 0, 11)) + + var lamda = (_super: number) => { // No Error +>lamda : Symbol(lamda, Decl(collisionSuperAndParameter.ts, 2, 11)) +>_super : Symbol(_super, Decl(collisionSuperAndParameter.ts, 2, 21)) + + return x => this; // New scope. So should inject new _this capture +>x : Symbol(x, Decl(collisionSuperAndParameter.ts, 3, 18)) +>this : Symbol(Foo, Decl(collisionSuperAndParameter.ts, 0, 0)) + } + } + b(_super: number) { // No Error +>b : Symbol(Foo.b, Decl(collisionSuperAndParameter.ts, 5, 5)) +>_super : Symbol(_super, Decl(collisionSuperAndParameter.ts, 6, 6)) + + var lambda = () => { +>lambda : Symbol(lambda, Decl(collisionSuperAndParameter.ts, 7, 11)) + + return x => this; // New scope. So should inject new _this capture +>x : Symbol(x, Decl(collisionSuperAndParameter.ts, 8, 18)) +>this : Symbol(Foo, Decl(collisionSuperAndParameter.ts, 0, 0)) + } + } + set c(_super: number) { // No error +>c : Symbol(Foo.c, Decl(collisionSuperAndParameter.ts, 10, 5)) +>_super : Symbol(_super, Decl(collisionSuperAndParameter.ts, 11, 10)) + } +} +class Foo2 extends Foo { +>Foo2 : Symbol(Foo2, Decl(collisionSuperAndParameter.ts, 13, 1)) +>Foo : Symbol(Foo, Decl(collisionSuperAndParameter.ts, 0, 0)) + + x() { +>x : Symbol(Foo2.x, Decl(collisionSuperAndParameter.ts, 14, 24)) + + var lamda = (_super: number) => { // Error +>lamda : Symbol(lamda, Decl(collisionSuperAndParameter.ts, 16, 11)) +>_super : Symbol(_super, Decl(collisionSuperAndParameter.ts, 16, 21)) + + return x => this; // New scope. So should inject new _this capture +>x : Symbol(x, Decl(collisionSuperAndParameter.ts, 17, 18)) +>this : Symbol(Foo2, Decl(collisionSuperAndParameter.ts, 13, 1)) + } + } + y(_super: number) { // Error +>y : Symbol(Foo2.y, Decl(collisionSuperAndParameter.ts, 19, 5)) +>_super : Symbol(_super, Decl(collisionSuperAndParameter.ts, 20, 6)) + + var lambda = () => { +>lambda : Symbol(lambda, Decl(collisionSuperAndParameter.ts, 21, 11)) + + return x => this; // New scope. So should inject new _this capture +>x : Symbol(x, Decl(collisionSuperAndParameter.ts, 22, 18)) +>this : Symbol(Foo2, Decl(collisionSuperAndParameter.ts, 13, 1)) + } + } + set z(_super: number) { // Error +>z : Symbol(Foo2.z, Decl(collisionSuperAndParameter.ts, 24, 5)) +>_super : Symbol(_super, Decl(collisionSuperAndParameter.ts, 25, 10)) + } + public prop3: { +>prop3 : Symbol(Foo2.prop3, Decl(collisionSuperAndParameter.ts, 26, 5)) + + doStuff: (_super: number) => void; // no error - no code gen +>doStuff : Symbol(doStuff, Decl(collisionSuperAndParameter.ts, 27, 19)) +>_super : Symbol(_super, Decl(collisionSuperAndParameter.ts, 28, 18)) + } + public prop4 = { +>prop4 : Symbol(Foo2.prop4, Decl(collisionSuperAndParameter.ts, 29, 5)) + + doStuff: (_super: number) => { // should be error +>doStuff : Symbol(doStuff, Decl(collisionSuperAndParameter.ts, 30, 20)) +>_super : Symbol(_super, Decl(collisionSuperAndParameter.ts, 31, 18)) + } + } + constructor(_super: number) { // should be error +>_super : Symbol(_super, Decl(collisionSuperAndParameter.ts, 34, 16)) + + super(); +>super : Symbol(Foo, Decl(collisionSuperAndParameter.ts, 0, 0)) + } +} +declare class Foo3 extends Foo { +>Foo3 : Symbol(Foo3, Decl(collisionSuperAndParameter.ts, 37, 1)) +>Foo : Symbol(Foo, Decl(collisionSuperAndParameter.ts, 0, 0)) + + x(); +>x : Symbol(Foo3.x, Decl(collisionSuperAndParameter.ts, 38, 32)) + + y(_super: number); // No error - no code gen +>y : Symbol(Foo3.y, Decl(collisionSuperAndParameter.ts, 39, 8)) +>_super : Symbol(_super, Decl(collisionSuperAndParameter.ts, 40, 6)) + + constructor(_super: number); // No error - no code gen +>_super : Symbol(_super, Decl(collisionSuperAndParameter.ts, 41, 16)) + + public prop2: { +>prop2 : Symbol(Foo3.prop2, Decl(collisionSuperAndParameter.ts, 41, 32)) + + doStuff: (_super: number) => void; // no error - no code gen +>doStuff : Symbol(doStuff, Decl(collisionSuperAndParameter.ts, 42, 19)) +>_super : Symbol(_super, Decl(collisionSuperAndParameter.ts, 43, 18)) + + }; + public _super: number; // No error +>_super : Symbol(Foo3._super, Decl(collisionSuperAndParameter.ts, 44, 6)) +} + +class Foo4 extends Foo { +>Foo4 : Symbol(Foo4, Decl(collisionSuperAndParameter.ts, 46, 1)) +>Foo : Symbol(Foo, Decl(collisionSuperAndParameter.ts, 0, 0)) + + constructor(_super: number); // no code gen - no error +>_super : Symbol(_super, Decl(collisionSuperAndParameter.ts, 49, 16)) + + constructor(_super: string);// no code gen - no error +>_super : Symbol(_super, Decl(collisionSuperAndParameter.ts, 50, 16)) + + constructor(_super: any) { // should be error +>_super : Symbol(_super, Decl(collisionSuperAndParameter.ts, 51, 16)) + + super(); +>super : Symbol(Foo, Decl(collisionSuperAndParameter.ts, 0, 0)) + } + y(_super: number); // no code gen - no error +>y : Symbol(Foo4.y, Decl(collisionSuperAndParameter.ts, 53, 5), Decl(collisionSuperAndParameter.ts, 54, 22), Decl(collisionSuperAndParameter.ts, 55, 22)) +>_super : Symbol(_super, Decl(collisionSuperAndParameter.ts, 54, 6)) + + y(_super: string); // no code gen - no error +>y : Symbol(Foo4.y, Decl(collisionSuperAndParameter.ts, 53, 5), Decl(collisionSuperAndParameter.ts, 54, 22), Decl(collisionSuperAndParameter.ts, 55, 22)) +>_super : Symbol(_super, Decl(collisionSuperAndParameter.ts, 55, 6)) + + y(_super: any) { // Error +>y : Symbol(Foo4.y, Decl(collisionSuperAndParameter.ts, 53, 5), Decl(collisionSuperAndParameter.ts, 54, 22), Decl(collisionSuperAndParameter.ts, 55, 22)) +>_super : Symbol(_super, Decl(collisionSuperAndParameter.ts, 56, 6)) + + var lambda = () => { +>lambda : Symbol(lambda, Decl(collisionSuperAndParameter.ts, 57, 11)) + + return x => this; // New scope. So should inject new _this capture +>x : Symbol(x, Decl(collisionSuperAndParameter.ts, 58, 18)) +>this : Symbol(Foo4, Decl(collisionSuperAndParameter.ts, 46, 1)) + } + } +} diff --git a/tests/baselines/reference/collisionSuperAndParameter(target=es5).types b/tests/baselines/reference/collisionSuperAndParameter(target=es5).types new file mode 100644 index 0000000000000..5abe135cd301f --- /dev/null +++ b/tests/baselines/reference/collisionSuperAndParameter(target=es5).types @@ -0,0 +1,233 @@ +//// [tests/cases/compiler/collisionSuperAndParameter.ts] //// + +=== collisionSuperAndParameter.ts === +class Foo { +>Foo : Foo +> : ^^^ + + a() { +>a : () => void +> : ^^^^^^^^^^ + + var lamda = (_super: number) => { // No Error +>lamda : (_super: number) => (x: any) => this +> : ^ ^^ ^^^^^^ ^^^^^^^^^^^^ +>(_super: number) => { // No Error return x => this; // New scope. So should inject new _this capture } : (_super: number) => (x: any) => this +> : ^ ^^ ^^^^^^ ^^^^^^^^^^^^ +>_super : number +> : ^^^^^^ + + return x => this; // New scope. So should inject new _this capture +>x => this : (x: any) => this +> : ^ ^^^^^^^^^^^^^^ +>x : any +>this : this +> : ^^^^ + } + } + b(_super: number) { // No Error +>b : (_super: number) => void +> : ^ ^^ ^^^^^^^^^ +>_super : number +> : ^^^^^^ + + var lambda = () => { +>lambda : () => (x: any) => this +> : ^^^^^^^ ^^^^^^^^^^^^ +>() => { return x => this; // New scope. So should inject new _this capture } : () => (x: any) => this +> : ^^^^^^^ ^^^^^^^^^^^^ + + return x => this; // New scope. So should inject new _this capture +>x => this : (x: any) => this +> : ^ ^^^^^^^^^^^^^^ +>x : any +>this : this +> : ^^^^ + } + } + set c(_super: number) { // No error +>c : number +> : ^^^^^^ +>_super : number +> : ^^^^^^ + } +} +class Foo2 extends Foo { +>Foo2 : Foo2 +> : ^^^^ +>Foo : Foo +> : ^^^ + + x() { +>x : () => void +> : ^^^^^^^^^^ + + var lamda = (_super: number) => { // Error +>lamda : (_super: number) => (x: any) => this +> : ^ ^^ ^^^^^^ ^^^^^^^^^^^^ +>(_super: number) => { // Error return x => this; // New scope. So should inject new _this capture } : (_super: number) => (x: any) => this +> : ^ ^^ ^^^^^^ ^^^^^^^^^^^^ +>_super : number +> : ^^^^^^ + + return x => this; // New scope. So should inject new _this capture +>x => this : (x: any) => this +> : ^ ^^^^^^^^^^^^^^ +>x : any +>this : this +> : ^^^^ + } + } + y(_super: number) { // Error +>y : (_super: number) => void +> : ^ ^^ ^^^^^^^^^ +>_super : number +> : ^^^^^^ + + var lambda = () => { +>lambda : () => (x: any) => this +> : ^^^^^^^ ^^^^^^^^^^^^ +>() => { return x => this; // New scope. So should inject new _this capture } : () => (x: any) => this +> : ^^^^^^^ ^^^^^^^^^^^^ + + return x => this; // New scope. So should inject new _this capture +>x => this : (x: any) => this +> : ^ ^^^^^^^^^^^^^^ +>x : any +>this : this +> : ^^^^ + } + } + set z(_super: number) { // Error +>z : number +> : ^^^^^^ +>_super : number +> : ^^^^^^ + } + public prop3: { +>prop3 : { doStuff: (_super: number) => void; } +> : ^^^^^^^^^^^ ^^^ + + doStuff: (_super: number) => void; // no error - no code gen +>doStuff : (_super: number) => void +> : ^ ^^ ^^^^^ +>_super : number +> : ^^^^^^ + } + public prop4 = { +>prop4 : { doStuff: (_super: number) => void; } +> : ^^^^^^^^^^^^ ^^ ^^^^^^^^^^^^ +>{ doStuff: (_super: number) => { // should be error } } : { doStuff: (_super: number) => void; } +> : ^^^^^^^^^^^^ ^^ ^^^^^^^^^^^^ + + doStuff: (_super: number) => { // should be error +>doStuff : (_super: number) => void +> : ^ ^^ ^^^^^^^^^ +>(_super: number) => { // should be error } : (_super: number) => void +> : ^ ^^ ^^^^^^^^^ +>_super : number +> : ^^^^^^ + } + } + constructor(_super: number) { // should be error +>_super : number +> : ^^^^^^ + + super(); +>super() : void +> : ^^^^ +>super : typeof Foo +> : ^^^^^^^^^^ + } +} +declare class Foo3 extends Foo { +>Foo3 : Foo3 +> : ^^^^ +>Foo : Foo +> : ^^^ + + x(); +>x : () => any +> : ^^^^^^^^^ + + y(_super: number); // No error - no code gen +>y : (_super: number) => any +> : ^ ^^ ^^^^^^^^ +>_super : number +> : ^^^^^^ + + constructor(_super: number); // No error - no code gen +>_super : number +> : ^^^^^^ + + public prop2: { +>prop2 : { doStuff: (_super: number) => void; } +> : ^^^^^^^^^^^ ^^^ + + doStuff: (_super: number) => void; // no error - no code gen +>doStuff : (_super: number) => void +> : ^ ^^ ^^^^^ +>_super : number +> : ^^^^^^ + + }; + public _super: number; // No error +>_super : number +> : ^^^^^^ +} + +class Foo4 extends Foo { +>Foo4 : Foo4 +> : ^^^^ +>Foo : Foo +> : ^^^ + + constructor(_super: number); // no code gen - no error +>_super : number +> : ^^^^^^ + + constructor(_super: string);// no code gen - no error +>_super : string +> : ^^^^^^ + + constructor(_super: any) { // should be error +>_super : any + + super(); +>super() : void +> : ^^^^ +>super : typeof Foo +> : ^^^^^^^^^^ + } + y(_super: number); // no code gen - no error +>y : { (_super: number): any; (_super: string): any; } +> : ^^^ ^^ ^^^^^^^^^ ^^ ^^^^^^^^^ +>_super : number +> : ^^^^^^ + + y(_super: string); // no code gen - no error +>y : { (_super: number): any; (_super: string): any; } +> : ^^^ ^^ ^^^^^^^^^ ^^ ^^^^^^^^^ +>_super : string +> : ^^^^^^ + + y(_super: any) { // Error +>y : { (_super: number): any; (_super: string): any; } +> : ^^^ ^^ ^^^^^^^^^ ^^ ^^^^^^^^^ +>_super : any + + var lambda = () => { +>lambda : () => (x: any) => this +> : ^^^^^^^ ^^^^^^^^^^^^ +>() => { return x => this; // New scope. So should inject new _this capture } : () => (x: any) => this +> : ^^^^^^^ ^^^^^^^^^^^^ + + return x => this; // New scope. So should inject new _this capture +>x => this : (x: any) => this +> : ^ ^^^^^^^^^^^^^^ +>x : any +>this : this +> : ^^^^ + } + } +} diff --git a/tests/baselines/reference/collisionThisExpressionAndLocalVarInAccessors(target=es2015).js b/tests/baselines/reference/collisionThisExpressionAndLocalVarInAccessors(target=es2015).js new file mode 100644 index 0000000000000..0669546ebcc55 --- /dev/null +++ b/tests/baselines/reference/collisionThisExpressionAndLocalVarInAccessors(target=es2015).js @@ -0,0 +1,86 @@ +//// [tests/cases/compiler/collisionThisExpressionAndLocalVarInAccessors.ts] //// + +//// [collisionThisExpressionAndLocalVarInAccessors.ts] +class class1 { + get a(): number { + var x2 = { + doStuff: (callback) => () => { + var _this = 2; + return callback(this); + } + } + + return 10; + } + set a(val: number) { + var x2 = { + doStuff: (callback) => () => { + var _this = 2; + return callback(this); + } + } + + } +} + +class class2 { + get a(): number { + var _this = 2; + var x2 = { + doStuff: (callback) => () => { + return callback(this); + } + } + + return 10; + } + set a(val: number) { + var _this = 2; + var x2 = { + doStuff: (callback) => () => { + return callback(this); + } + } + + } +} + +//// [collisionThisExpressionAndLocalVarInAccessors.js] +class class1 { + get a() { + var x2 = { + doStuff: (callback) => () => { + var _this = 2; + return callback(this); + } + }; + return 10; + } + set a(val) { + var x2 = { + doStuff: (callback) => () => { + var _this = 2; + return callback(this); + } + }; + } +} +class class2 { + get a() { + var _this = 2; + var x2 = { + doStuff: (callback) => () => { + return callback(this); + } + }; + return 10; + } + set a(val) { + var _this = 2; + var x2 = { + doStuff: (callback) => () => { + return callback(this); + } + }; + } +} diff --git a/tests/baselines/reference/collisionThisExpressionAndLocalVarInAccessors.symbols b/tests/baselines/reference/collisionThisExpressionAndLocalVarInAccessors(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/collisionThisExpressionAndLocalVarInAccessors.symbols rename to tests/baselines/reference/collisionThisExpressionAndLocalVarInAccessors(target=es2015).symbols diff --git a/tests/baselines/reference/collisionThisExpressionAndLocalVarInAccessors.types b/tests/baselines/reference/collisionThisExpressionAndLocalVarInAccessors(target=es2015).types similarity index 100% rename from tests/baselines/reference/collisionThisExpressionAndLocalVarInAccessors.types rename to tests/baselines/reference/collisionThisExpressionAndLocalVarInAccessors(target=es2015).types diff --git a/tests/baselines/reference/collisionThisExpressionAndLocalVarInAccessors.js b/tests/baselines/reference/collisionThisExpressionAndLocalVarInAccessors(target=es5).js similarity index 100% rename from tests/baselines/reference/collisionThisExpressionAndLocalVarInAccessors.js rename to tests/baselines/reference/collisionThisExpressionAndLocalVarInAccessors(target=es5).js diff --git a/tests/baselines/reference/collisionThisExpressionAndLocalVarInAccessors(target=es5).symbols b/tests/baselines/reference/collisionThisExpressionAndLocalVarInAccessors(target=es5).symbols new file mode 100644 index 0000000000000..54eef258e0df1 --- /dev/null +++ b/tests/baselines/reference/collisionThisExpressionAndLocalVarInAccessors(target=es5).symbols @@ -0,0 +1,96 @@ +//// [tests/cases/compiler/collisionThisExpressionAndLocalVarInAccessors.ts] //// + +=== collisionThisExpressionAndLocalVarInAccessors.ts === +class class1 { +>class1 : Symbol(class1, Decl(collisionThisExpressionAndLocalVarInAccessors.ts, 0, 0)) + + get a(): number { +>a : Symbol(class1.a, Decl(collisionThisExpressionAndLocalVarInAccessors.ts, 0, 14), Decl(collisionThisExpressionAndLocalVarInAccessors.ts, 10, 5)) + + var x2 = { +>x2 : Symbol(x2, Decl(collisionThisExpressionAndLocalVarInAccessors.ts, 2, 11)) + + doStuff: (callback) => () => { +>doStuff : Symbol(doStuff, Decl(collisionThisExpressionAndLocalVarInAccessors.ts, 2, 18)) +>callback : Symbol(callback, Decl(collisionThisExpressionAndLocalVarInAccessors.ts, 3, 22)) + + var _this = 2; +>_this : Symbol(_this, Decl(collisionThisExpressionAndLocalVarInAccessors.ts, 4, 19)) + + return callback(this); +>callback : Symbol(callback, Decl(collisionThisExpressionAndLocalVarInAccessors.ts, 3, 22)) +>this : Symbol(class1, Decl(collisionThisExpressionAndLocalVarInAccessors.ts, 0, 0)) + } + } + + return 10; + } + set a(val: number) { +>a : Symbol(class1.a, Decl(collisionThisExpressionAndLocalVarInAccessors.ts, 0, 14), Decl(collisionThisExpressionAndLocalVarInAccessors.ts, 10, 5)) +>val : Symbol(val, Decl(collisionThisExpressionAndLocalVarInAccessors.ts, 11, 10)) + + var x2 = { +>x2 : Symbol(x2, Decl(collisionThisExpressionAndLocalVarInAccessors.ts, 12, 11)) + + doStuff: (callback) => () => { +>doStuff : Symbol(doStuff, Decl(collisionThisExpressionAndLocalVarInAccessors.ts, 12, 18)) +>callback : Symbol(callback, Decl(collisionThisExpressionAndLocalVarInAccessors.ts, 13, 22)) + + var _this = 2; +>_this : Symbol(_this, Decl(collisionThisExpressionAndLocalVarInAccessors.ts, 14, 19)) + + return callback(this); +>callback : Symbol(callback, Decl(collisionThisExpressionAndLocalVarInAccessors.ts, 13, 22)) +>this : Symbol(class1, Decl(collisionThisExpressionAndLocalVarInAccessors.ts, 0, 0)) + } + } + + } +} + +class class2 { +>class2 : Symbol(class2, Decl(collisionThisExpressionAndLocalVarInAccessors.ts, 20, 1)) + + get a(): number { +>a : Symbol(class2.a, Decl(collisionThisExpressionAndLocalVarInAccessors.ts, 22, 14), Decl(collisionThisExpressionAndLocalVarInAccessors.ts, 32, 5)) + + var _this = 2; +>_this : Symbol(_this, Decl(collisionThisExpressionAndLocalVarInAccessors.ts, 24, 11)) + + var x2 = { +>x2 : Symbol(x2, Decl(collisionThisExpressionAndLocalVarInAccessors.ts, 25, 11)) + + doStuff: (callback) => () => { +>doStuff : Symbol(doStuff, Decl(collisionThisExpressionAndLocalVarInAccessors.ts, 25, 18)) +>callback : Symbol(callback, Decl(collisionThisExpressionAndLocalVarInAccessors.ts, 26, 22)) + + return callback(this); +>callback : Symbol(callback, Decl(collisionThisExpressionAndLocalVarInAccessors.ts, 26, 22)) +>this : Symbol(class2, Decl(collisionThisExpressionAndLocalVarInAccessors.ts, 20, 1)) + } + } + + return 10; + } + set a(val: number) { +>a : Symbol(class2.a, Decl(collisionThisExpressionAndLocalVarInAccessors.ts, 22, 14), Decl(collisionThisExpressionAndLocalVarInAccessors.ts, 32, 5)) +>val : Symbol(val, Decl(collisionThisExpressionAndLocalVarInAccessors.ts, 33, 10)) + + var _this = 2; +>_this : Symbol(_this, Decl(collisionThisExpressionAndLocalVarInAccessors.ts, 34, 11)) + + var x2 = { +>x2 : Symbol(x2, Decl(collisionThisExpressionAndLocalVarInAccessors.ts, 35, 11)) + + doStuff: (callback) => () => { +>doStuff : Symbol(doStuff, Decl(collisionThisExpressionAndLocalVarInAccessors.ts, 35, 18)) +>callback : Symbol(callback, Decl(collisionThisExpressionAndLocalVarInAccessors.ts, 36, 22)) + + return callback(this); +>callback : Symbol(callback, Decl(collisionThisExpressionAndLocalVarInAccessors.ts, 36, 22)) +>this : Symbol(class2, Decl(collisionThisExpressionAndLocalVarInAccessors.ts, 20, 1)) + } + } + + } +} diff --git a/tests/baselines/reference/collisionThisExpressionAndLocalVarInAccessors(target=es5).types b/tests/baselines/reference/collisionThisExpressionAndLocalVarInAccessors(target=es5).types new file mode 100644 index 0000000000000..a0398800afcd0 --- /dev/null +++ b/tests/baselines/reference/collisionThisExpressionAndLocalVarInAccessors(target=es5).types @@ -0,0 +1,160 @@ +//// [tests/cases/compiler/collisionThisExpressionAndLocalVarInAccessors.ts] //// + +=== collisionThisExpressionAndLocalVarInAccessors.ts === +class class1 { +>class1 : class1 +> : ^^^^^^ + + get a(): number { +>a : number +> : ^^^^^^ + + var x2 = { +>x2 : { doStuff: (callback: any) => () => any; } +> : ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ +>{ doStuff: (callback) => () => { var _this = 2; return callback(this); } } : { doStuff: (callback: any) => () => any; } +> : ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ + + doStuff: (callback) => () => { +>doStuff : (callback: any) => () => any +> : ^ ^^^^^^^^^^^^^^^^^^^ +>(callback) => () => { var _this = 2; return callback(this); } : (callback: any) => () => any +> : ^ ^^^^^^^^^^^^^^^^^^^ +>callback : any +>() => { var _this = 2; return callback(this); } : () => any +> : ^^^^^^^^^ + + var _this = 2; +>_this : number +> : ^^^^^^ +>2 : 2 +> : ^ + + return callback(this); +>callback(this) : any +>callback : any +>this : this +> : ^^^^ + } + } + + return 10; +>10 : 10 +> : ^^ + } + set a(val: number) { +>a : number +> : ^^^^^^ +>val : number +> : ^^^^^^ + + var x2 = { +>x2 : { doStuff: (callback: any) => () => any; } +> : ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ +>{ doStuff: (callback) => () => { var _this = 2; return callback(this); } } : { doStuff: (callback: any) => () => any; } +> : ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ + + doStuff: (callback) => () => { +>doStuff : (callback: any) => () => any +> : ^ ^^^^^^^^^^^^^^^^^^^ +>(callback) => () => { var _this = 2; return callback(this); } : (callback: any) => () => any +> : ^ ^^^^^^^^^^^^^^^^^^^ +>callback : any +>() => { var _this = 2; return callback(this); } : () => any +> : ^^^^^^^^^ + + var _this = 2; +>_this : number +> : ^^^^^^ +>2 : 2 +> : ^ + + return callback(this); +>callback(this) : any +>callback : any +>this : this +> : ^^^^ + } + } + + } +} + +class class2 { +>class2 : class2 +> : ^^^^^^ + + get a(): number { +>a : number +> : ^^^^^^ + + var _this = 2; +>_this : number +> : ^^^^^^ +>2 : 2 +> : ^ + + var x2 = { +>x2 : { doStuff: (callback: any) => () => any; } +> : ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ +>{ doStuff: (callback) => () => { return callback(this); } } : { doStuff: (callback: any) => () => any; } +> : ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ + + doStuff: (callback) => () => { +>doStuff : (callback: any) => () => any +> : ^ ^^^^^^^^^^^^^^^^^^^ +>(callback) => () => { return callback(this); } : (callback: any) => () => any +> : ^ ^^^^^^^^^^^^^^^^^^^ +>callback : any +>() => { return callback(this); } : () => any +> : ^^^^^^^^^ + + return callback(this); +>callback(this) : any +>callback : any +>this : this +> : ^^^^ + } + } + + return 10; +>10 : 10 +> : ^^ + } + set a(val: number) { +>a : number +> : ^^^^^^ +>val : number +> : ^^^^^^ + + var _this = 2; +>_this : number +> : ^^^^^^ +>2 : 2 +> : ^ + + var x2 = { +>x2 : { doStuff: (callback: any) => () => any; } +> : ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ +>{ doStuff: (callback) => () => { return callback(this); } } : { doStuff: (callback: any) => () => any; } +> : ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ + + doStuff: (callback) => () => { +>doStuff : (callback: any) => () => any +> : ^ ^^^^^^^^^^^^^^^^^^^ +>(callback) => () => { return callback(this); } : (callback: any) => () => any +> : ^ ^^^^^^^^^^^^^^^^^^^ +>callback : any +>() => { return callback(this); } : () => any +> : ^^^^^^^^^ + + return callback(this); +>callback(this) : any +>callback : any +>this : this +> : ^^^^ + } + } + + } +} diff --git a/tests/baselines/reference/commentsClass(target=es2015).js b/tests/baselines/reference/commentsClass(target=es2015).js new file mode 100644 index 0000000000000..813749aac4d39 --- /dev/null +++ b/tests/baselines/reference/commentsClass(target=es2015).js @@ -0,0 +1,189 @@ +//// [tests/cases/compiler/commentsClass.ts] //// + +//// [commentsClass.ts] +/** This is class c2 without constuctor*/ +class c2 { +} // trailing comment1 +var i2 = new c2(); +var i2_c = c2; +class c3 { + /** Constructor comment*/ + constructor() { + } // trailing comment of constructor +} /* trailing comment 2 */ +var i3 = new c3(); +var i3_c = c3; +/** Class comment*/ +class c4 { + /** Constructor comment*/ + constructor() { + } /* trailing comment of constructor 2*/ +} +var i4 = new c4(); +var i4_c = c4; +/** Class with statics*/ +class c5 { + static s1: number; +} +var i5 = new c5(); +var i5_c = c5; + +/// class with statics and constructor +class c6 { /// class with statics and constructor2 + /// s1 comment + static s1: number; /// s1 comment2 + /// constructor comment + constructor() { /// constructor comment2 + } +} +var i6 = new c6(); +var i6_c = c6; + +// class with statics and constructor +class c7 { + // s1 comment + static s1: number; + // constructor comment + constructor() { + } +} +var i7 = new c7(); +var i7_c = c7; + +/** class with statics and constructor + */ +class c8 { + /** s1 comment */ + static s1: number; /** s1 comment2 */ + /** constructor comment + */ + constructor() { + /** constructor comment2 + */ + } +} +var i8 = new c8(); +var i8_c = c8; + +class c9 { + constructor() { + /// This is some detached comment + + // should emit this leading comment of } too + } +} + + +//// [commentsClass.js] +/** This is class c2 without constuctor*/ +class c2 { +} // trailing comment1 +var i2 = new c2(); +var i2_c = c2; +class c3 { + /** Constructor comment*/ + constructor() { + } // trailing comment of constructor +} /* trailing comment 2 */ +var i3 = new c3(); +var i3_c = c3; +/** Class comment*/ +class c4 { + /** Constructor comment*/ + constructor() { + } /* trailing comment of constructor 2*/ +} +var i4 = new c4(); +var i4_c = c4; +/** Class with statics*/ +class c5 { +} +var i5 = new c5(); +var i5_c = c5; +/// class with statics and constructor +class c6 { + /// constructor comment + constructor() { + } +} +var i6 = new c6(); +var i6_c = c6; +// class with statics and constructor +class c7 { + // constructor comment + constructor() { + } +} +var i7 = new c7(); +var i7_c = c7; +/** class with statics and constructor + */ +class c8 { + /** constructor comment + */ + constructor() { + /** constructor comment2 + */ + } +} +var i8 = new c8(); +var i8_c = c8; +class c9 { + constructor() { + /// This is some detached comment + // should emit this leading comment of } too + } +} + + +//// [commentsClass.d.ts] +/** This is class c2 without constuctor*/ +declare class c2 { +} +declare var i2: c2; +declare var i2_c: typeof c2; +declare class c3 { + /** Constructor comment*/ + constructor(); +} +declare var i3: c3; +declare var i3_c: typeof c3; +/** Class comment*/ +declare class c4 { + /** Constructor comment*/ + constructor(); +} +declare var i4: c4; +declare var i4_c: typeof c4; +/** Class with statics*/ +declare class c5 { + static s1: number; +} +declare var i5: c5; +declare var i5_c: typeof c5; +declare class c6 { + static s1: number; + constructor(); +} +declare var i6: c6; +declare var i6_c: typeof c6; +declare class c7 { + static s1: number; + constructor(); +} +declare var i7: c7; +declare var i7_c: typeof c7; +/** class with statics and constructor + */ +declare class c8 { + /** s1 comment */ + static s1: number; /** s1 comment2 */ + /** constructor comment + */ + constructor(); +} +declare var i8: c8; +declare var i8_c: typeof c8; +declare class c9 { + constructor(); +} diff --git a/tests/baselines/reference/commentsClass.symbols b/tests/baselines/reference/commentsClass(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/commentsClass.symbols rename to tests/baselines/reference/commentsClass(target=es2015).symbols diff --git a/tests/baselines/reference/commentsClass.types b/tests/baselines/reference/commentsClass(target=es2015).types similarity index 100% rename from tests/baselines/reference/commentsClass.types rename to tests/baselines/reference/commentsClass(target=es2015).types diff --git a/tests/baselines/reference/commentsClass.js b/tests/baselines/reference/commentsClass(target=es5).js similarity index 100% rename from tests/baselines/reference/commentsClass.js rename to tests/baselines/reference/commentsClass(target=es5).js diff --git a/tests/baselines/reference/commentsClass(target=es5).symbols b/tests/baselines/reference/commentsClass(target=es5).symbols new file mode 100644 index 0000000000000..c41e296482438 --- /dev/null +++ b/tests/baselines/reference/commentsClass(target=es5).symbols @@ -0,0 +1,136 @@ +//// [tests/cases/compiler/commentsClass.ts] //// + +=== commentsClass.ts === +/** This is class c2 without constuctor*/ +class c2 { +>c2 : Symbol(c2, Decl(commentsClass.ts, 0, 0)) + +} // trailing comment1 +var i2 = new c2(); +>i2 : Symbol(i2, Decl(commentsClass.ts, 3, 3)) +>c2 : Symbol(c2, Decl(commentsClass.ts, 0, 0)) + +var i2_c = c2; +>i2_c : Symbol(i2_c, Decl(commentsClass.ts, 4, 3)) +>c2 : Symbol(c2, Decl(commentsClass.ts, 0, 0)) + +class c3 { +>c3 : Symbol(c3, Decl(commentsClass.ts, 4, 14)) + + /** Constructor comment*/ + constructor() { + } // trailing comment of constructor +} /* trailing comment 2 */ +var i3 = new c3(); +>i3 : Symbol(i3, Decl(commentsClass.ts, 10, 3)) +>c3 : Symbol(c3, Decl(commentsClass.ts, 4, 14)) + +var i3_c = c3; +>i3_c : Symbol(i3_c, Decl(commentsClass.ts, 11, 3)) +>c3 : Symbol(c3, Decl(commentsClass.ts, 4, 14)) + +/** Class comment*/ +class c4 { +>c4 : Symbol(c4, Decl(commentsClass.ts, 11, 14)) + + /** Constructor comment*/ + constructor() { + } /* trailing comment of constructor 2*/ +} +var i4 = new c4(); +>i4 : Symbol(i4, Decl(commentsClass.ts, 18, 3)) +>c4 : Symbol(c4, Decl(commentsClass.ts, 11, 14)) + +var i4_c = c4; +>i4_c : Symbol(i4_c, Decl(commentsClass.ts, 19, 3)) +>c4 : Symbol(c4, Decl(commentsClass.ts, 11, 14)) + +/** Class with statics*/ +class c5 { +>c5 : Symbol(c5, Decl(commentsClass.ts, 19, 14)) + + static s1: number; +>s1 : Symbol(c5.s1, Decl(commentsClass.ts, 21, 10)) +} +var i5 = new c5(); +>i5 : Symbol(i5, Decl(commentsClass.ts, 24, 3)) +>c5 : Symbol(c5, Decl(commentsClass.ts, 19, 14)) + +var i5_c = c5; +>i5_c : Symbol(i5_c, Decl(commentsClass.ts, 25, 3)) +>c5 : Symbol(c5, Decl(commentsClass.ts, 19, 14)) + +/// class with statics and constructor +class c6 { /// class with statics and constructor2 +>c6 : Symbol(c6, Decl(commentsClass.ts, 25, 14)) + + /// s1 comment + static s1: number; /// s1 comment2 +>s1 : Symbol(c6.s1, Decl(commentsClass.ts, 28, 10)) + + /// constructor comment + constructor() { /// constructor comment2 + } +} +var i6 = new c6(); +>i6 : Symbol(i6, Decl(commentsClass.ts, 35, 3)) +>c6 : Symbol(c6, Decl(commentsClass.ts, 25, 14)) + +var i6_c = c6; +>i6_c : Symbol(i6_c, Decl(commentsClass.ts, 36, 3)) +>c6 : Symbol(c6, Decl(commentsClass.ts, 25, 14)) + +// class with statics and constructor +class c7 { +>c7 : Symbol(c7, Decl(commentsClass.ts, 36, 14)) + + // s1 comment + static s1: number; +>s1 : Symbol(c7.s1, Decl(commentsClass.ts, 39, 10)) + + // constructor comment + constructor() { + } +} +var i7 = new c7(); +>i7 : Symbol(i7, Decl(commentsClass.ts, 46, 3)) +>c7 : Symbol(c7, Decl(commentsClass.ts, 36, 14)) + +var i7_c = c7; +>i7_c : Symbol(i7_c, Decl(commentsClass.ts, 47, 3)) +>c7 : Symbol(c7, Decl(commentsClass.ts, 36, 14)) + +/** class with statics and constructor + */ +class c8 { +>c8 : Symbol(c8, Decl(commentsClass.ts, 47, 14)) + + /** s1 comment */ + static s1: number; /** s1 comment2 */ +>s1 : Symbol(c8.s1, Decl(commentsClass.ts, 51, 10)) + + /** constructor comment + */ + constructor() { + /** constructor comment2 + */ + } +} +var i8 = new c8(); +>i8 : Symbol(i8, Decl(commentsClass.ts, 61, 3)) +>c8 : Symbol(c8, Decl(commentsClass.ts, 47, 14)) + +var i8_c = c8; +>i8_c : Symbol(i8_c, Decl(commentsClass.ts, 62, 3)) +>c8 : Symbol(c8, Decl(commentsClass.ts, 47, 14)) + +class c9 { +>c9 : Symbol(c9, Decl(commentsClass.ts, 62, 14)) + + constructor() { + /// This is some detached comment + + // should emit this leading comment of } too + } +} + diff --git a/tests/baselines/reference/commentsClass(target=es5).types b/tests/baselines/reference/commentsClass(target=es5).types new file mode 100644 index 0000000000000..8d155a85f629c --- /dev/null +++ b/tests/baselines/reference/commentsClass(target=es5).types @@ -0,0 +1,190 @@ +//// [tests/cases/compiler/commentsClass.ts] //// + +=== commentsClass.ts === +/** This is class c2 without constuctor*/ +class c2 { +>c2 : c2 +> : ^^ + +} // trailing comment1 +var i2 = new c2(); +>i2 : c2 +> : ^^ +>new c2() : c2 +> : ^^ +>c2 : typeof c2 +> : ^^^^^^^^^ + +var i2_c = c2; +>i2_c : typeof c2 +> : ^^^^^^^^^ +>c2 : typeof c2 +> : ^^^^^^^^^ + +class c3 { +>c3 : c3 +> : ^^ + + /** Constructor comment*/ + constructor() { + } // trailing comment of constructor +} /* trailing comment 2 */ +var i3 = new c3(); +>i3 : c3 +> : ^^ +>new c3() : c3 +> : ^^ +>c3 : typeof c3 +> : ^^^^^^^^^ + +var i3_c = c3; +>i3_c : typeof c3 +> : ^^^^^^^^^ +>c3 : typeof c3 +> : ^^^^^^^^^ + +/** Class comment*/ +class c4 { +>c4 : c4 +> : ^^ + + /** Constructor comment*/ + constructor() { + } /* trailing comment of constructor 2*/ +} +var i4 = new c4(); +>i4 : c4 +> : ^^ +>new c4() : c4 +> : ^^ +>c4 : typeof c4 +> : ^^^^^^^^^ + +var i4_c = c4; +>i4_c : typeof c4 +> : ^^^^^^^^^ +>c4 : typeof c4 +> : ^^^^^^^^^ + +/** Class with statics*/ +class c5 { +>c5 : c5 +> : ^^ + + static s1: number; +>s1 : number +> : ^^^^^^ +} +var i5 = new c5(); +>i5 : c5 +> : ^^ +>new c5() : c5 +> : ^^ +>c5 : typeof c5 +> : ^^^^^^^^^ + +var i5_c = c5; +>i5_c : typeof c5 +> : ^^^^^^^^^ +>c5 : typeof c5 +> : ^^^^^^^^^ + +/// class with statics and constructor +class c6 { /// class with statics and constructor2 +>c6 : c6 +> : ^^ + + /// s1 comment + static s1: number; /// s1 comment2 +>s1 : number +> : ^^^^^^ + + /// constructor comment + constructor() { /// constructor comment2 + } +} +var i6 = new c6(); +>i6 : c6 +> : ^^ +>new c6() : c6 +> : ^^ +>c6 : typeof c6 +> : ^^^^^^^^^ + +var i6_c = c6; +>i6_c : typeof c6 +> : ^^^^^^^^^ +>c6 : typeof c6 +> : ^^^^^^^^^ + +// class with statics and constructor +class c7 { +>c7 : c7 +> : ^^ + + // s1 comment + static s1: number; +>s1 : number +> : ^^^^^^ + + // constructor comment + constructor() { + } +} +var i7 = new c7(); +>i7 : c7 +> : ^^ +>new c7() : c7 +> : ^^ +>c7 : typeof c7 +> : ^^^^^^^^^ + +var i7_c = c7; +>i7_c : typeof c7 +> : ^^^^^^^^^ +>c7 : typeof c7 +> : ^^^^^^^^^ + +/** class with statics and constructor + */ +class c8 { +>c8 : c8 +> : ^^ + + /** s1 comment */ + static s1: number; /** s1 comment2 */ +>s1 : number +> : ^^^^^^ + + /** constructor comment + */ + constructor() { + /** constructor comment2 + */ + } +} +var i8 = new c8(); +>i8 : c8 +> : ^^ +>new c8() : c8 +> : ^^ +>c8 : typeof c8 +> : ^^^^^^^^^ + +var i8_c = c8; +>i8_c : typeof c8 +> : ^^^^^^^^^ +>c8 : typeof c8 +> : ^^^^^^^^^ + +class c9 { +>c9 : c9 +> : ^^ + + constructor() { + /// This is some detached comment + + // should emit this leading comment of } too + } +} + diff --git a/tests/baselines/reference/commentsClassMembers(target=es2015).js b/tests/baselines/reference/commentsClassMembers(target=es2015).js new file mode 100644 index 0000000000000..84849db7fcd55 --- /dev/null +++ b/tests/baselines/reference/commentsClassMembers(target=es2015).js @@ -0,0 +1,523 @@ +//// [tests/cases/compiler/commentsClassMembers.ts] //// + +//// [commentsClassMembers.ts] +/** This is comment for c1*/ +class c1 { + /** p1 is property of c1*/ + public p1: number; + /** sum with property*/ + public p2(/** number to add*/b: number) { + return this.p1 + b; + } /* trailing comment of method*/ + /** getter property*/ + public get p3() { + return this.p2(this.p1); + }// trailing comment Getter + /** setter property*/ + public set p3(/** this is value*/value: number) { + this.p1 = this.p2(value); + }// trailing comment Setter + /** pp1 is property of c1*/ + private pp1: number; + /** sum with property*/ + private pp2(/** number to add*/b: number) { + return this.p1 + b; + } // trailing comment of method + /** getter property*/ + private get pp3() { + return this.pp2(this.pp1); + } + /** setter property*/ + private set pp3( /** this is value*/value: number) { + this.pp1 = this.pp2(value); + } + /** Constructor method*/ + constructor() { + } + /** s1 is static property of c1*/ + static s1: number; + /** static sum with property*/ + static s2(/** number to add*/b: number) { + return c1.s1 + b; + } + /** static getter property*/ + static get s3() { + return c1.s2(c1.s1); + } /*trailing comment 1 getter*/ + /** setter property*/ + static set s3( /** this is value*/value: number) { + c1.s1 = c1.s2(value); + }/*trailing comment 2 */ /*setter*/ + public nc_p1: number; + public nc_p2(b: number) { + return this.nc_p1 + b; + } + public get nc_p3() { + return this.nc_p2(this.nc_p1); + } + public set nc_p3(value: number) { + this.nc_p1 = this.nc_p2(value); + } + private nc_pp1: number; + private nc_pp2(b: number) { + return this.nc_pp1 + b; + } + private get nc_pp3() { + return this.nc_pp2(this.nc_pp1); + } + private set nc_pp3(value: number) { + this.nc_pp1 = this.nc_pp2(value); + } + static nc_s1: number; + static nc_s2(b: number) { + return c1.nc_s1 + b; + } + static get nc_s3() { + return c1.nc_s2(c1.nc_s1); + } + static set nc_s3(value: number) { + c1.nc_s1 = c1.nc_s2(value); + } + + // p1 is property of c1 + public a_p1: number; + // sum with property + public a_p2(b: number) { + return this.a_p1 + b; + } + // getter property + public get a_p3() { + return this.a_p2(this.a_p1); + } + // setter property + public set a_p3(value: number) { + this.a_p1 = this.a_p2(value); + } + // pp1 is property of c1 + private a_pp1: number; + // sum with property + private a_pp2(b: number) { + return this.a_p1 + b; + } + // getter property + private get a_pp3() { + return this.a_pp2(this.a_pp1); + } + // setter property + private set a_pp3(value: number) { + this.a_pp1 = this.a_pp2(value); + } + + // s1 is static property of c1 + static a_s1: number; + // static sum with property + static a_s2(b: number) { + return c1.a_s1 + b; + } + // static getter property + static get a_s3() { + return c1.s2(c1.s1); + } + + // setter property + static set a_s3(value: number) { + c1.a_s1 = c1.a_s2(value); + } + + /** p1 is property of c1 */ + public b_p1: number; + /** sum with property */ + public b_p2(b: number) { + return this.b_p1 + b; + } + /** getter property */ + public get b_p3() { + return this.b_p2(this.b_p1); + } + /** setter property */ + public set b_p3(value: number) { + this.b_p1 = this.b_p2(value); + } + /** pp1 is property of c1 */ + private b_pp1: number; + /** sum with property */ + private b_pp2(b: number) { + return this.b_p1 + b; + } + /** getter property */ + private get b_pp3() { + return this.b_pp2(this.b_pp1); + } + /** setter property */ + private set b_pp3(value: number) { + this.b_pp1 = this.b_pp2(value); + } + + /** s1 is static property of c1 */ + static b_s1: number; + /** static sum with property */ + static b_s2(b: number) { + return c1.b_s1 + b; + } + /** static getter property + */ + static get b_s3() { + return c1.s2(c1.s1); + } + + /** setter property + */ + static set b_s3(value: number) { + /** setter */ + c1.b_s1 = c1.b_s2(value); + } +} +var i1 = new c1(); +var i1_p = i1.p1; +var i1_f = i1.p2; +var i1_r = i1.p2(20); +var i1_prop = i1.p3; +i1.p3 = i1_prop; +var i1_nc_p = i1.nc_p1; +var i1_ncf = i1.nc_p2; +var i1_ncr = i1.nc_p2(20); +var i1_ncprop = i1.nc_p3; +i1.nc_p3 = i1_ncprop; +var i1_s_p = c1.s1; +var i1_s_f = c1.s2; +var i1_s_r = c1.s2(20); +var i1_s_prop = c1.s3; +c1.s3 = i1_s_prop; +var i1_s_nc_p = c1.nc_s1; +var i1_s_ncf = c1.nc_s2; +var i1_s_ncr = c1.nc_s2(20); +var i1_s_ncprop = c1.nc_s3; +c1.nc_s3 = i1_s_ncprop; +var i1_c = c1; +class cProperties { + private val: number; + /** getter only property*/ + public get p1() { + return this.val; + } // trailing comment of only getter + public get nc_p1() { + return this.val; + } + /**setter only property*/ + public set p2(value: number) { + this.val = value; + } + public set nc_p2(value: number) { + this.val = value; + } /* trailing comment of setter only*/ + + public x = 10; /*trailing comment for property*/ + private y = 10; // trailing comment of // style +} +var cProperties_i = new cProperties(); +cProperties_i.p2 = cProperties_i.p1; +cProperties_i.nc_p2 = cProperties_i.nc_p1; + + +//// [commentsClassMembers.js] +/** This is comment for c1*/ +class c1 { + /** sum with property*/ + p2(/** number to add*/ b) { + return this.p1 + b; + } /* trailing comment of method*/ + /** getter property*/ + get p3() { + return this.p2(this.p1); + } // trailing comment Getter + /** setter property*/ + set p3(/** this is value*/ value) { + this.p1 = this.p2(value); + } // trailing comment Setter + /** sum with property*/ + pp2(/** number to add*/ b) { + return this.p1 + b; + } // trailing comment of method + /** getter property*/ + get pp3() { + return this.pp2(this.pp1); + } + /** setter property*/ + set pp3(/** this is value*/ value) { + this.pp1 = this.pp2(value); + } + /** Constructor method*/ + constructor() { + } + /** static sum with property*/ + static s2(/** number to add*/ b) { + return c1.s1 + b; + } + /** static getter property*/ + static get s3() { + return c1.s2(c1.s1); + } /*trailing comment 1 getter*/ + /** setter property*/ + static set s3(/** this is value*/ value) { + c1.s1 = c1.s2(value); + } /*trailing comment 2 */ /*setter*/ + nc_p2(b) { + return this.nc_p1 + b; + } + get nc_p3() { + return this.nc_p2(this.nc_p1); + } + set nc_p3(value) { + this.nc_p1 = this.nc_p2(value); + } + nc_pp2(b) { + return this.nc_pp1 + b; + } + get nc_pp3() { + return this.nc_pp2(this.nc_pp1); + } + set nc_pp3(value) { + this.nc_pp1 = this.nc_pp2(value); + } + static nc_s2(b) { + return c1.nc_s1 + b; + } + static get nc_s3() { + return c1.nc_s2(c1.nc_s1); + } + static set nc_s3(value) { + c1.nc_s1 = c1.nc_s2(value); + } + // sum with property + a_p2(b) { + return this.a_p1 + b; + } + // getter property + get a_p3() { + return this.a_p2(this.a_p1); + } + // setter property + set a_p3(value) { + this.a_p1 = this.a_p2(value); + } + // sum with property + a_pp2(b) { + return this.a_p1 + b; + } + // getter property + get a_pp3() { + return this.a_pp2(this.a_pp1); + } + // setter property + set a_pp3(value) { + this.a_pp1 = this.a_pp2(value); + } + // static sum with property + static a_s2(b) { + return c1.a_s1 + b; + } + // static getter property + static get a_s3() { + return c1.s2(c1.s1); + } + // setter property + static set a_s3(value) { + c1.a_s1 = c1.a_s2(value); + } + /** sum with property */ + b_p2(b) { + return this.b_p1 + b; + } + /** getter property */ + get b_p3() { + return this.b_p2(this.b_p1); + } + /** setter property */ + set b_p3(value) { + this.b_p1 = this.b_p2(value); + } + /** sum with property */ + b_pp2(b) { + return this.b_p1 + b; + } + /** getter property */ + get b_pp3() { + return this.b_pp2(this.b_pp1); + } + /** setter property */ + set b_pp3(value) { + this.b_pp1 = this.b_pp2(value); + } + /** static sum with property */ + static b_s2(b) { + return c1.b_s1 + b; + } + /** static getter property + */ + static get b_s3() { + return c1.s2(c1.s1); + } + /** setter property + */ + static set b_s3(value) { + /** setter */ + c1.b_s1 = c1.b_s2(value); + } +} +var i1 = new c1(); +var i1_p = i1.p1; +var i1_f = i1.p2; +var i1_r = i1.p2(20); +var i1_prop = i1.p3; +i1.p3 = i1_prop; +var i1_nc_p = i1.nc_p1; +var i1_ncf = i1.nc_p2; +var i1_ncr = i1.nc_p2(20); +var i1_ncprop = i1.nc_p3; +i1.nc_p3 = i1_ncprop; +var i1_s_p = c1.s1; +var i1_s_f = c1.s2; +var i1_s_r = c1.s2(20); +var i1_s_prop = c1.s3; +c1.s3 = i1_s_prop; +var i1_s_nc_p = c1.nc_s1; +var i1_s_ncf = c1.nc_s2; +var i1_s_ncr = c1.nc_s2(20); +var i1_s_ncprop = c1.nc_s3; +c1.nc_s3 = i1_s_ncprop; +var i1_c = c1; +class cProperties { + constructor() { + this.x = 10; /*trailing comment for property*/ + this.y = 10; // trailing comment of // style + } + /** getter only property*/ + get p1() { + return this.val; + } // trailing comment of only getter + get nc_p1() { + return this.val; + } + /**setter only property*/ + set p2(value) { + this.val = value; + } + set nc_p2(value) { + this.val = value; + } /* trailing comment of setter only*/ +} +var cProperties_i = new cProperties(); +cProperties_i.p2 = cProperties_i.p1; +cProperties_i.nc_p2 = cProperties_i.nc_p1; + + +//// [commentsClassMembers.d.ts] +/** This is comment for c1*/ +declare class c1 { + /** p1 is property of c1*/ + p1: number; + /** sum with property*/ + p2(/** number to add*/ b: number): number; + /** getter property*/ + get p3(): number; + /** setter property*/ + set p3(/** this is value*/ value: number); + /** pp1 is property of c1*/ + private pp1; + /** sum with property*/ + private pp2; + /** getter property*/ + private get pp3(); + /** setter property*/ + private set pp3(value); + /** Constructor method*/ + constructor(); + /** s1 is static property of c1*/ + static s1: number; + /** static sum with property*/ + static s2(/** number to add*/ b: number): number; + /** static getter property*/ + static get s3(): number; + /** setter property*/ + static set s3(/** this is value*/ value: number); + nc_p1: number; + nc_p2(b: number): number; + get nc_p3(): number; + set nc_p3(value: number); + private nc_pp1; + private nc_pp2; + private get nc_pp3(); + private set nc_pp3(value); + static nc_s1: number; + static nc_s2(b: number): number; + static get nc_s3(): number; + static set nc_s3(value: number); + a_p1: number; + a_p2(b: number): number; + get a_p3(): number; + set a_p3(value: number); + private a_pp1; + private a_pp2; + private get a_pp3(); + private set a_pp3(value); + static a_s1: number; + static a_s2(b: number): number; + static get a_s3(): number; + static set a_s3(value: number); + /** p1 is property of c1 */ + b_p1: number; + /** sum with property */ + b_p2(b: number): number; + /** getter property */ + get b_p3(): number; + /** setter property */ + set b_p3(value: number); + /** pp1 is property of c1 */ + private b_pp1; + /** sum with property */ + private b_pp2; + /** getter property */ + private get b_pp3(); + /** setter property */ + private set b_pp3(value); + /** s1 is static property of c1 */ + static b_s1: number; + /** static sum with property */ + static b_s2(b: number): number; + /** static getter property + */ + static get b_s3(): number; + /** setter property + */ + static set b_s3(value: number); +} +declare var i1: c1; +declare var i1_p: number; +declare var i1_f: (b: number) => number; +declare var i1_r: number; +declare var i1_prop: number; +declare var i1_nc_p: number; +declare var i1_ncf: (b: number) => number; +declare var i1_ncr: number; +declare var i1_ncprop: number; +declare var i1_s_p: number; +declare var i1_s_f: typeof c1.s2; +declare var i1_s_r: number; +declare var i1_s_prop: number; +declare var i1_s_nc_p: number; +declare var i1_s_ncf: typeof c1.nc_s2; +declare var i1_s_ncr: number; +declare var i1_s_ncprop: number; +declare var i1_c: typeof c1; +declare class cProperties { + private val; + /** getter only property*/ + get p1(): number; + get nc_p1(): number; + /**setter only property*/ + set p2(value: number); + set nc_p2(value: number); + x: number; + private y; +} +declare var cProperties_i: cProperties; diff --git a/tests/baselines/reference/commentsClassMembers.symbols b/tests/baselines/reference/commentsClassMembers(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/commentsClassMembers.symbols rename to tests/baselines/reference/commentsClassMembers(target=es2015).symbols diff --git a/tests/baselines/reference/commentsClassMembers.types b/tests/baselines/reference/commentsClassMembers(target=es2015).types similarity index 100% rename from tests/baselines/reference/commentsClassMembers.types rename to tests/baselines/reference/commentsClassMembers(target=es2015).types diff --git a/tests/baselines/reference/commentsClassMembers.js b/tests/baselines/reference/commentsClassMembers(target=es5).js similarity index 100% rename from tests/baselines/reference/commentsClassMembers.js rename to tests/baselines/reference/commentsClassMembers(target=es5).js diff --git a/tests/baselines/reference/commentsClassMembers(target=es5).symbols b/tests/baselines/reference/commentsClassMembers(target=es5).symbols new file mode 100644 index 0000000000000..e4135cbd38a8c --- /dev/null +++ b/tests/baselines/reference/commentsClassMembers(target=es5).symbols @@ -0,0 +1,707 @@ +//// [tests/cases/compiler/commentsClassMembers.ts] //// + +=== commentsClassMembers.ts === +/** This is comment for c1*/ +class c1 { +>c1 : Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) + + /** p1 is property of c1*/ + public p1: number; +>p1 : Symbol(c1.p1, Decl(commentsClassMembers.ts, 1, 10)) + + /** sum with property*/ + public p2(/** number to add*/b: number) { +>p2 : Symbol(c1.p2, Decl(commentsClassMembers.ts, 3, 22)) +>b : Symbol(b, Decl(commentsClassMembers.ts, 5, 14)) + + return this.p1 + b; +>this.p1 : Symbol(c1.p1, Decl(commentsClassMembers.ts, 1, 10)) +>this : Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>p1 : Symbol(c1.p1, Decl(commentsClassMembers.ts, 1, 10)) +>b : Symbol(b, Decl(commentsClassMembers.ts, 5, 14)) + + } /* trailing comment of method*/ + /** getter property*/ + public get p3() { +>p3 : Symbol(c1.p3, Decl(commentsClassMembers.ts, 7, 5), Decl(commentsClassMembers.ts, 11, 5)) + + return this.p2(this.p1); +>this.p2 : Symbol(c1.p2, Decl(commentsClassMembers.ts, 3, 22)) +>this : Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>p2 : Symbol(c1.p2, Decl(commentsClassMembers.ts, 3, 22)) +>this.p1 : Symbol(c1.p1, Decl(commentsClassMembers.ts, 1, 10)) +>this : Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>p1 : Symbol(c1.p1, Decl(commentsClassMembers.ts, 1, 10)) + + }// trailing comment Getter + /** setter property*/ + public set p3(/** this is value*/value: number) { +>p3 : Symbol(c1.p3, Decl(commentsClassMembers.ts, 7, 5), Decl(commentsClassMembers.ts, 11, 5)) +>value : Symbol(value, Decl(commentsClassMembers.ts, 13, 18)) + + this.p1 = this.p2(value); +>this.p1 : Symbol(c1.p1, Decl(commentsClassMembers.ts, 1, 10)) +>this : Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>p1 : Symbol(c1.p1, Decl(commentsClassMembers.ts, 1, 10)) +>this.p2 : Symbol(c1.p2, Decl(commentsClassMembers.ts, 3, 22)) +>this : Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>p2 : Symbol(c1.p2, Decl(commentsClassMembers.ts, 3, 22)) +>value : Symbol(value, Decl(commentsClassMembers.ts, 13, 18)) + + }// trailing comment Setter + /** pp1 is property of c1*/ + private pp1: number; +>pp1 : Symbol(c1.pp1, Decl(commentsClassMembers.ts, 15, 5)) + + /** sum with property*/ + private pp2(/** number to add*/b: number) { +>pp2 : Symbol(c1.pp2, Decl(commentsClassMembers.ts, 17, 24)) +>b : Symbol(b, Decl(commentsClassMembers.ts, 19, 16)) + + return this.p1 + b; +>this.p1 : Symbol(c1.p1, Decl(commentsClassMembers.ts, 1, 10)) +>this : Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>p1 : Symbol(c1.p1, Decl(commentsClassMembers.ts, 1, 10)) +>b : Symbol(b, Decl(commentsClassMembers.ts, 19, 16)) + + } // trailing comment of method + /** getter property*/ + private get pp3() { +>pp3 : Symbol(c1.pp3, Decl(commentsClassMembers.ts, 21, 5), Decl(commentsClassMembers.ts, 25, 5)) + + return this.pp2(this.pp1); +>this.pp2 : Symbol(c1.pp2, Decl(commentsClassMembers.ts, 17, 24)) +>this : Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>pp2 : Symbol(c1.pp2, Decl(commentsClassMembers.ts, 17, 24)) +>this.pp1 : Symbol(c1.pp1, Decl(commentsClassMembers.ts, 15, 5)) +>this : Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>pp1 : Symbol(c1.pp1, Decl(commentsClassMembers.ts, 15, 5)) + } + /** setter property*/ + private set pp3( /** this is value*/value: number) { +>pp3 : Symbol(c1.pp3, Decl(commentsClassMembers.ts, 21, 5), Decl(commentsClassMembers.ts, 25, 5)) +>value : Symbol(value, Decl(commentsClassMembers.ts, 27, 20)) + + this.pp1 = this.pp2(value); +>this.pp1 : Symbol(c1.pp1, Decl(commentsClassMembers.ts, 15, 5)) +>this : Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>pp1 : Symbol(c1.pp1, Decl(commentsClassMembers.ts, 15, 5)) +>this.pp2 : Symbol(c1.pp2, Decl(commentsClassMembers.ts, 17, 24)) +>this : Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>pp2 : Symbol(c1.pp2, Decl(commentsClassMembers.ts, 17, 24)) +>value : Symbol(value, Decl(commentsClassMembers.ts, 27, 20)) + } + /** Constructor method*/ + constructor() { + } + /** s1 is static property of c1*/ + static s1: number; +>s1 : Symbol(c1.s1, Decl(commentsClassMembers.ts, 32, 5)) + + /** static sum with property*/ + static s2(/** number to add*/b: number) { +>s2 : Symbol(c1.s2, Decl(commentsClassMembers.ts, 34, 22)) +>b : Symbol(b, Decl(commentsClassMembers.ts, 36, 14)) + + return c1.s1 + b; +>c1.s1 : Symbol(c1.s1, Decl(commentsClassMembers.ts, 32, 5)) +>c1 : Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>s1 : Symbol(c1.s1, Decl(commentsClassMembers.ts, 32, 5)) +>b : Symbol(b, Decl(commentsClassMembers.ts, 36, 14)) + } + /** static getter property*/ + static get s3() { +>s3 : Symbol(c1.s3, Decl(commentsClassMembers.ts, 38, 5), Decl(commentsClassMembers.ts, 42, 5)) + + return c1.s2(c1.s1); +>c1.s2 : Symbol(c1.s2, Decl(commentsClassMembers.ts, 34, 22)) +>c1 : Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>s2 : Symbol(c1.s2, Decl(commentsClassMembers.ts, 34, 22)) +>c1.s1 : Symbol(c1.s1, Decl(commentsClassMembers.ts, 32, 5)) +>c1 : Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>s1 : Symbol(c1.s1, Decl(commentsClassMembers.ts, 32, 5)) + + } /*trailing comment 1 getter*/ + /** setter property*/ + static set s3( /** this is value*/value: number) { +>s3 : Symbol(c1.s3, Decl(commentsClassMembers.ts, 38, 5), Decl(commentsClassMembers.ts, 42, 5)) +>value : Symbol(value, Decl(commentsClassMembers.ts, 44, 18)) + + c1.s1 = c1.s2(value); +>c1.s1 : Symbol(c1.s1, Decl(commentsClassMembers.ts, 32, 5)) +>c1 : Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>s1 : Symbol(c1.s1, Decl(commentsClassMembers.ts, 32, 5)) +>c1.s2 : Symbol(c1.s2, Decl(commentsClassMembers.ts, 34, 22)) +>c1 : Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>s2 : Symbol(c1.s2, Decl(commentsClassMembers.ts, 34, 22)) +>value : Symbol(value, Decl(commentsClassMembers.ts, 44, 18)) + + }/*trailing comment 2 */ /*setter*/ + public nc_p1: number; +>nc_p1 : Symbol(c1.nc_p1, Decl(commentsClassMembers.ts, 46, 5)) + + public nc_p2(b: number) { +>nc_p2 : Symbol(c1.nc_p2, Decl(commentsClassMembers.ts, 47, 25)) +>b : Symbol(b, Decl(commentsClassMembers.ts, 48, 17)) + + return this.nc_p1 + b; +>this.nc_p1 : Symbol(c1.nc_p1, Decl(commentsClassMembers.ts, 46, 5)) +>this : Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>nc_p1 : Symbol(c1.nc_p1, Decl(commentsClassMembers.ts, 46, 5)) +>b : Symbol(b, Decl(commentsClassMembers.ts, 48, 17)) + } + public get nc_p3() { +>nc_p3 : Symbol(c1.nc_p3, Decl(commentsClassMembers.ts, 50, 5), Decl(commentsClassMembers.ts, 53, 5)) + + return this.nc_p2(this.nc_p1); +>this.nc_p2 : Symbol(c1.nc_p2, Decl(commentsClassMembers.ts, 47, 25)) +>this : Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>nc_p2 : Symbol(c1.nc_p2, Decl(commentsClassMembers.ts, 47, 25)) +>this.nc_p1 : Symbol(c1.nc_p1, Decl(commentsClassMembers.ts, 46, 5)) +>this : Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>nc_p1 : Symbol(c1.nc_p1, Decl(commentsClassMembers.ts, 46, 5)) + } + public set nc_p3(value: number) { +>nc_p3 : Symbol(c1.nc_p3, Decl(commentsClassMembers.ts, 50, 5), Decl(commentsClassMembers.ts, 53, 5)) +>value : Symbol(value, Decl(commentsClassMembers.ts, 54, 21)) + + this.nc_p1 = this.nc_p2(value); +>this.nc_p1 : Symbol(c1.nc_p1, Decl(commentsClassMembers.ts, 46, 5)) +>this : Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>nc_p1 : Symbol(c1.nc_p1, Decl(commentsClassMembers.ts, 46, 5)) +>this.nc_p2 : Symbol(c1.nc_p2, Decl(commentsClassMembers.ts, 47, 25)) +>this : Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>nc_p2 : Symbol(c1.nc_p2, Decl(commentsClassMembers.ts, 47, 25)) +>value : Symbol(value, Decl(commentsClassMembers.ts, 54, 21)) + } + private nc_pp1: number; +>nc_pp1 : Symbol(c1.nc_pp1, Decl(commentsClassMembers.ts, 56, 5)) + + private nc_pp2(b: number) { +>nc_pp2 : Symbol(c1.nc_pp2, Decl(commentsClassMembers.ts, 57, 27)) +>b : Symbol(b, Decl(commentsClassMembers.ts, 58, 19)) + + return this.nc_pp1 + b; +>this.nc_pp1 : Symbol(c1.nc_pp1, Decl(commentsClassMembers.ts, 56, 5)) +>this : Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>nc_pp1 : Symbol(c1.nc_pp1, Decl(commentsClassMembers.ts, 56, 5)) +>b : Symbol(b, Decl(commentsClassMembers.ts, 58, 19)) + } + private get nc_pp3() { +>nc_pp3 : Symbol(c1.nc_pp3, Decl(commentsClassMembers.ts, 60, 5), Decl(commentsClassMembers.ts, 63, 5)) + + return this.nc_pp2(this.nc_pp1); +>this.nc_pp2 : Symbol(c1.nc_pp2, Decl(commentsClassMembers.ts, 57, 27)) +>this : Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>nc_pp2 : Symbol(c1.nc_pp2, Decl(commentsClassMembers.ts, 57, 27)) +>this.nc_pp1 : Symbol(c1.nc_pp1, Decl(commentsClassMembers.ts, 56, 5)) +>this : Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>nc_pp1 : Symbol(c1.nc_pp1, Decl(commentsClassMembers.ts, 56, 5)) + } + private set nc_pp3(value: number) { +>nc_pp3 : Symbol(c1.nc_pp3, Decl(commentsClassMembers.ts, 60, 5), Decl(commentsClassMembers.ts, 63, 5)) +>value : Symbol(value, Decl(commentsClassMembers.ts, 64, 23)) + + this.nc_pp1 = this.nc_pp2(value); +>this.nc_pp1 : Symbol(c1.nc_pp1, Decl(commentsClassMembers.ts, 56, 5)) +>this : Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>nc_pp1 : Symbol(c1.nc_pp1, Decl(commentsClassMembers.ts, 56, 5)) +>this.nc_pp2 : Symbol(c1.nc_pp2, Decl(commentsClassMembers.ts, 57, 27)) +>this : Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>nc_pp2 : Symbol(c1.nc_pp2, Decl(commentsClassMembers.ts, 57, 27)) +>value : Symbol(value, Decl(commentsClassMembers.ts, 64, 23)) + } + static nc_s1: number; +>nc_s1 : Symbol(c1.nc_s1, Decl(commentsClassMembers.ts, 66, 5)) + + static nc_s2(b: number) { +>nc_s2 : Symbol(c1.nc_s2, Decl(commentsClassMembers.ts, 67, 25)) +>b : Symbol(b, Decl(commentsClassMembers.ts, 68, 17)) + + return c1.nc_s1 + b; +>c1.nc_s1 : Symbol(c1.nc_s1, Decl(commentsClassMembers.ts, 66, 5)) +>c1 : Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>nc_s1 : Symbol(c1.nc_s1, Decl(commentsClassMembers.ts, 66, 5)) +>b : Symbol(b, Decl(commentsClassMembers.ts, 68, 17)) + } + static get nc_s3() { +>nc_s3 : Symbol(c1.nc_s3, Decl(commentsClassMembers.ts, 70, 5), Decl(commentsClassMembers.ts, 73, 5)) + + return c1.nc_s2(c1.nc_s1); +>c1.nc_s2 : Symbol(c1.nc_s2, Decl(commentsClassMembers.ts, 67, 25)) +>c1 : Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>nc_s2 : Symbol(c1.nc_s2, Decl(commentsClassMembers.ts, 67, 25)) +>c1.nc_s1 : Symbol(c1.nc_s1, Decl(commentsClassMembers.ts, 66, 5)) +>c1 : Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>nc_s1 : Symbol(c1.nc_s1, Decl(commentsClassMembers.ts, 66, 5)) + } + static set nc_s3(value: number) { +>nc_s3 : Symbol(c1.nc_s3, Decl(commentsClassMembers.ts, 70, 5), Decl(commentsClassMembers.ts, 73, 5)) +>value : Symbol(value, Decl(commentsClassMembers.ts, 74, 21)) + + c1.nc_s1 = c1.nc_s2(value); +>c1.nc_s1 : Symbol(c1.nc_s1, Decl(commentsClassMembers.ts, 66, 5)) +>c1 : Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>nc_s1 : Symbol(c1.nc_s1, Decl(commentsClassMembers.ts, 66, 5)) +>c1.nc_s2 : Symbol(c1.nc_s2, Decl(commentsClassMembers.ts, 67, 25)) +>c1 : Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>nc_s2 : Symbol(c1.nc_s2, Decl(commentsClassMembers.ts, 67, 25)) +>value : Symbol(value, Decl(commentsClassMembers.ts, 74, 21)) + } + + // p1 is property of c1 + public a_p1: number; +>a_p1 : Symbol(c1.a_p1, Decl(commentsClassMembers.ts, 76, 5)) + + // sum with property + public a_p2(b: number) { +>a_p2 : Symbol(c1.a_p2, Decl(commentsClassMembers.ts, 79, 24)) +>b : Symbol(b, Decl(commentsClassMembers.ts, 81, 16)) + + return this.a_p1 + b; +>this.a_p1 : Symbol(c1.a_p1, Decl(commentsClassMembers.ts, 76, 5)) +>this : Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>a_p1 : Symbol(c1.a_p1, Decl(commentsClassMembers.ts, 76, 5)) +>b : Symbol(b, Decl(commentsClassMembers.ts, 81, 16)) + } + // getter property + public get a_p3() { +>a_p3 : Symbol(c1.a_p3, Decl(commentsClassMembers.ts, 83, 5), Decl(commentsClassMembers.ts, 87, 5)) + + return this.a_p2(this.a_p1); +>this.a_p2 : Symbol(c1.a_p2, Decl(commentsClassMembers.ts, 79, 24)) +>this : Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>a_p2 : Symbol(c1.a_p2, Decl(commentsClassMembers.ts, 79, 24)) +>this.a_p1 : Symbol(c1.a_p1, Decl(commentsClassMembers.ts, 76, 5)) +>this : Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>a_p1 : Symbol(c1.a_p1, Decl(commentsClassMembers.ts, 76, 5)) + } + // setter property + public set a_p3(value: number) { +>a_p3 : Symbol(c1.a_p3, Decl(commentsClassMembers.ts, 83, 5), Decl(commentsClassMembers.ts, 87, 5)) +>value : Symbol(value, Decl(commentsClassMembers.ts, 89, 20)) + + this.a_p1 = this.a_p2(value); +>this.a_p1 : Symbol(c1.a_p1, Decl(commentsClassMembers.ts, 76, 5)) +>this : Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>a_p1 : Symbol(c1.a_p1, Decl(commentsClassMembers.ts, 76, 5)) +>this.a_p2 : Symbol(c1.a_p2, Decl(commentsClassMembers.ts, 79, 24)) +>this : Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>a_p2 : Symbol(c1.a_p2, Decl(commentsClassMembers.ts, 79, 24)) +>value : Symbol(value, Decl(commentsClassMembers.ts, 89, 20)) + } + // pp1 is property of c1 + private a_pp1: number; +>a_pp1 : Symbol(c1.a_pp1, Decl(commentsClassMembers.ts, 91, 5)) + + // sum with property + private a_pp2(b: number) { +>a_pp2 : Symbol(c1.a_pp2, Decl(commentsClassMembers.ts, 93, 26)) +>b : Symbol(b, Decl(commentsClassMembers.ts, 95, 18)) + + return this.a_p1 + b; +>this.a_p1 : Symbol(c1.a_p1, Decl(commentsClassMembers.ts, 76, 5)) +>this : Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>a_p1 : Symbol(c1.a_p1, Decl(commentsClassMembers.ts, 76, 5)) +>b : Symbol(b, Decl(commentsClassMembers.ts, 95, 18)) + } + // getter property + private get a_pp3() { +>a_pp3 : Symbol(c1.a_pp3, Decl(commentsClassMembers.ts, 97, 5), Decl(commentsClassMembers.ts, 101, 5)) + + return this.a_pp2(this.a_pp1); +>this.a_pp2 : Symbol(c1.a_pp2, Decl(commentsClassMembers.ts, 93, 26)) +>this : Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>a_pp2 : Symbol(c1.a_pp2, Decl(commentsClassMembers.ts, 93, 26)) +>this.a_pp1 : Symbol(c1.a_pp1, Decl(commentsClassMembers.ts, 91, 5)) +>this : Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>a_pp1 : Symbol(c1.a_pp1, Decl(commentsClassMembers.ts, 91, 5)) + } + // setter property + private set a_pp3(value: number) { +>a_pp3 : Symbol(c1.a_pp3, Decl(commentsClassMembers.ts, 97, 5), Decl(commentsClassMembers.ts, 101, 5)) +>value : Symbol(value, Decl(commentsClassMembers.ts, 103, 22)) + + this.a_pp1 = this.a_pp2(value); +>this.a_pp1 : Symbol(c1.a_pp1, Decl(commentsClassMembers.ts, 91, 5)) +>this : Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>a_pp1 : Symbol(c1.a_pp1, Decl(commentsClassMembers.ts, 91, 5)) +>this.a_pp2 : Symbol(c1.a_pp2, Decl(commentsClassMembers.ts, 93, 26)) +>this : Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>a_pp2 : Symbol(c1.a_pp2, Decl(commentsClassMembers.ts, 93, 26)) +>value : Symbol(value, Decl(commentsClassMembers.ts, 103, 22)) + } + + // s1 is static property of c1 + static a_s1: number; +>a_s1 : Symbol(c1.a_s1, Decl(commentsClassMembers.ts, 105, 5)) + + // static sum with property + static a_s2(b: number) { +>a_s2 : Symbol(c1.a_s2, Decl(commentsClassMembers.ts, 108, 24)) +>b : Symbol(b, Decl(commentsClassMembers.ts, 110, 16)) + + return c1.a_s1 + b; +>c1.a_s1 : Symbol(c1.a_s1, Decl(commentsClassMembers.ts, 105, 5)) +>c1 : Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>a_s1 : Symbol(c1.a_s1, Decl(commentsClassMembers.ts, 105, 5)) +>b : Symbol(b, Decl(commentsClassMembers.ts, 110, 16)) + } + // static getter property + static get a_s3() { +>a_s3 : Symbol(c1.a_s3, Decl(commentsClassMembers.ts, 112, 5), Decl(commentsClassMembers.ts, 116, 5)) + + return c1.s2(c1.s1); +>c1.s2 : Symbol(c1.s2, Decl(commentsClassMembers.ts, 34, 22)) +>c1 : Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>s2 : Symbol(c1.s2, Decl(commentsClassMembers.ts, 34, 22)) +>c1.s1 : Symbol(c1.s1, Decl(commentsClassMembers.ts, 32, 5)) +>c1 : Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>s1 : Symbol(c1.s1, Decl(commentsClassMembers.ts, 32, 5)) + } + + // setter property + static set a_s3(value: number) { +>a_s3 : Symbol(c1.a_s3, Decl(commentsClassMembers.ts, 112, 5), Decl(commentsClassMembers.ts, 116, 5)) +>value : Symbol(value, Decl(commentsClassMembers.ts, 119, 20)) + + c1.a_s1 = c1.a_s2(value); +>c1.a_s1 : Symbol(c1.a_s1, Decl(commentsClassMembers.ts, 105, 5)) +>c1 : Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>a_s1 : Symbol(c1.a_s1, Decl(commentsClassMembers.ts, 105, 5)) +>c1.a_s2 : Symbol(c1.a_s2, Decl(commentsClassMembers.ts, 108, 24)) +>c1 : Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>a_s2 : Symbol(c1.a_s2, Decl(commentsClassMembers.ts, 108, 24)) +>value : Symbol(value, Decl(commentsClassMembers.ts, 119, 20)) + } + + /** p1 is property of c1 */ + public b_p1: number; +>b_p1 : Symbol(c1.b_p1, Decl(commentsClassMembers.ts, 121, 5)) + + /** sum with property */ + public b_p2(b: number) { +>b_p2 : Symbol(c1.b_p2, Decl(commentsClassMembers.ts, 124, 24)) +>b : Symbol(b, Decl(commentsClassMembers.ts, 126, 16)) + + return this.b_p1 + b; +>this.b_p1 : Symbol(c1.b_p1, Decl(commentsClassMembers.ts, 121, 5)) +>this : Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>b_p1 : Symbol(c1.b_p1, Decl(commentsClassMembers.ts, 121, 5)) +>b : Symbol(b, Decl(commentsClassMembers.ts, 126, 16)) + } + /** getter property */ + public get b_p3() { +>b_p3 : Symbol(c1.b_p3, Decl(commentsClassMembers.ts, 128, 5), Decl(commentsClassMembers.ts, 132, 5)) + + return this.b_p2(this.b_p1); +>this.b_p2 : Symbol(c1.b_p2, Decl(commentsClassMembers.ts, 124, 24)) +>this : Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>b_p2 : Symbol(c1.b_p2, Decl(commentsClassMembers.ts, 124, 24)) +>this.b_p1 : Symbol(c1.b_p1, Decl(commentsClassMembers.ts, 121, 5)) +>this : Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>b_p1 : Symbol(c1.b_p1, Decl(commentsClassMembers.ts, 121, 5)) + } + /** setter property */ + public set b_p3(value: number) { +>b_p3 : Symbol(c1.b_p3, Decl(commentsClassMembers.ts, 128, 5), Decl(commentsClassMembers.ts, 132, 5)) +>value : Symbol(value, Decl(commentsClassMembers.ts, 134, 20)) + + this.b_p1 = this.b_p2(value); +>this.b_p1 : Symbol(c1.b_p1, Decl(commentsClassMembers.ts, 121, 5)) +>this : Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>b_p1 : Symbol(c1.b_p1, Decl(commentsClassMembers.ts, 121, 5)) +>this.b_p2 : Symbol(c1.b_p2, Decl(commentsClassMembers.ts, 124, 24)) +>this : Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>b_p2 : Symbol(c1.b_p2, Decl(commentsClassMembers.ts, 124, 24)) +>value : Symbol(value, Decl(commentsClassMembers.ts, 134, 20)) + } + /** pp1 is property of c1 */ + private b_pp1: number; +>b_pp1 : Symbol(c1.b_pp1, Decl(commentsClassMembers.ts, 136, 5)) + + /** sum with property */ + private b_pp2(b: number) { +>b_pp2 : Symbol(c1.b_pp2, Decl(commentsClassMembers.ts, 138, 26)) +>b : Symbol(b, Decl(commentsClassMembers.ts, 140, 18)) + + return this.b_p1 + b; +>this.b_p1 : Symbol(c1.b_p1, Decl(commentsClassMembers.ts, 121, 5)) +>this : Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>b_p1 : Symbol(c1.b_p1, Decl(commentsClassMembers.ts, 121, 5)) +>b : Symbol(b, Decl(commentsClassMembers.ts, 140, 18)) + } + /** getter property */ + private get b_pp3() { +>b_pp3 : Symbol(c1.b_pp3, Decl(commentsClassMembers.ts, 142, 5), Decl(commentsClassMembers.ts, 146, 5)) + + return this.b_pp2(this.b_pp1); +>this.b_pp2 : Symbol(c1.b_pp2, Decl(commentsClassMembers.ts, 138, 26)) +>this : Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>b_pp2 : Symbol(c1.b_pp2, Decl(commentsClassMembers.ts, 138, 26)) +>this.b_pp1 : Symbol(c1.b_pp1, Decl(commentsClassMembers.ts, 136, 5)) +>this : Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>b_pp1 : Symbol(c1.b_pp1, Decl(commentsClassMembers.ts, 136, 5)) + } + /** setter property */ + private set b_pp3(value: number) { +>b_pp3 : Symbol(c1.b_pp3, Decl(commentsClassMembers.ts, 142, 5), Decl(commentsClassMembers.ts, 146, 5)) +>value : Symbol(value, Decl(commentsClassMembers.ts, 148, 22)) + + this.b_pp1 = this.b_pp2(value); +>this.b_pp1 : Symbol(c1.b_pp1, Decl(commentsClassMembers.ts, 136, 5)) +>this : Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>b_pp1 : Symbol(c1.b_pp1, Decl(commentsClassMembers.ts, 136, 5)) +>this.b_pp2 : Symbol(c1.b_pp2, Decl(commentsClassMembers.ts, 138, 26)) +>this : Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>b_pp2 : Symbol(c1.b_pp2, Decl(commentsClassMembers.ts, 138, 26)) +>value : Symbol(value, Decl(commentsClassMembers.ts, 148, 22)) + } + + /** s1 is static property of c1 */ + static b_s1: number; +>b_s1 : Symbol(c1.b_s1, Decl(commentsClassMembers.ts, 150, 5)) + + /** static sum with property */ + static b_s2(b: number) { +>b_s2 : Symbol(c1.b_s2, Decl(commentsClassMembers.ts, 153, 24)) +>b : Symbol(b, Decl(commentsClassMembers.ts, 155, 16)) + + return c1.b_s1 + b; +>c1.b_s1 : Symbol(c1.b_s1, Decl(commentsClassMembers.ts, 150, 5)) +>c1 : Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>b_s1 : Symbol(c1.b_s1, Decl(commentsClassMembers.ts, 150, 5)) +>b : Symbol(b, Decl(commentsClassMembers.ts, 155, 16)) + } + /** static getter property + */ + static get b_s3() { +>b_s3 : Symbol(c1.b_s3, Decl(commentsClassMembers.ts, 157, 5), Decl(commentsClassMembers.ts, 162, 5)) + + return c1.s2(c1.s1); +>c1.s2 : Symbol(c1.s2, Decl(commentsClassMembers.ts, 34, 22)) +>c1 : Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>s2 : Symbol(c1.s2, Decl(commentsClassMembers.ts, 34, 22)) +>c1.s1 : Symbol(c1.s1, Decl(commentsClassMembers.ts, 32, 5)) +>c1 : Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>s1 : Symbol(c1.s1, Decl(commentsClassMembers.ts, 32, 5)) + } + + /** setter property + */ + static set b_s3(value: number) { +>b_s3 : Symbol(c1.b_s3, Decl(commentsClassMembers.ts, 157, 5), Decl(commentsClassMembers.ts, 162, 5)) +>value : Symbol(value, Decl(commentsClassMembers.ts, 166, 20)) + + /** setter */ + c1.b_s1 = c1.b_s2(value); +>c1.b_s1 : Symbol(c1.b_s1, Decl(commentsClassMembers.ts, 150, 5)) +>c1 : Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>b_s1 : Symbol(c1.b_s1, Decl(commentsClassMembers.ts, 150, 5)) +>c1.b_s2 : Symbol(c1.b_s2, Decl(commentsClassMembers.ts, 153, 24)) +>c1 : Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>b_s2 : Symbol(c1.b_s2, Decl(commentsClassMembers.ts, 153, 24)) +>value : Symbol(value, Decl(commentsClassMembers.ts, 166, 20)) + } +} +var i1 = new c1(); +>i1 : Symbol(i1, Decl(commentsClassMembers.ts, 171, 3)) +>c1 : Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) + +var i1_p = i1.p1; +>i1_p : Symbol(i1_p, Decl(commentsClassMembers.ts, 172, 3)) +>i1.p1 : Symbol(c1.p1, Decl(commentsClassMembers.ts, 1, 10)) +>i1 : Symbol(i1, Decl(commentsClassMembers.ts, 171, 3)) +>p1 : Symbol(c1.p1, Decl(commentsClassMembers.ts, 1, 10)) + +var i1_f = i1.p2; +>i1_f : Symbol(i1_f, Decl(commentsClassMembers.ts, 173, 3)) +>i1.p2 : Symbol(c1.p2, Decl(commentsClassMembers.ts, 3, 22)) +>i1 : Symbol(i1, Decl(commentsClassMembers.ts, 171, 3)) +>p2 : Symbol(c1.p2, Decl(commentsClassMembers.ts, 3, 22)) + +var i1_r = i1.p2(20); +>i1_r : Symbol(i1_r, Decl(commentsClassMembers.ts, 174, 3)) +>i1.p2 : Symbol(c1.p2, Decl(commentsClassMembers.ts, 3, 22)) +>i1 : Symbol(i1, Decl(commentsClassMembers.ts, 171, 3)) +>p2 : Symbol(c1.p2, Decl(commentsClassMembers.ts, 3, 22)) + +var i1_prop = i1.p3; +>i1_prop : Symbol(i1_prop, Decl(commentsClassMembers.ts, 175, 3)) +>i1.p3 : Symbol(c1.p3, Decl(commentsClassMembers.ts, 7, 5), Decl(commentsClassMembers.ts, 11, 5)) +>i1 : Symbol(i1, Decl(commentsClassMembers.ts, 171, 3)) +>p3 : Symbol(c1.p3, Decl(commentsClassMembers.ts, 7, 5), Decl(commentsClassMembers.ts, 11, 5)) + +i1.p3 = i1_prop; +>i1.p3 : Symbol(c1.p3, Decl(commentsClassMembers.ts, 7, 5), Decl(commentsClassMembers.ts, 11, 5)) +>i1 : Symbol(i1, Decl(commentsClassMembers.ts, 171, 3)) +>p3 : Symbol(c1.p3, Decl(commentsClassMembers.ts, 7, 5), Decl(commentsClassMembers.ts, 11, 5)) +>i1_prop : Symbol(i1_prop, Decl(commentsClassMembers.ts, 175, 3)) + +var i1_nc_p = i1.nc_p1; +>i1_nc_p : Symbol(i1_nc_p, Decl(commentsClassMembers.ts, 177, 3)) +>i1.nc_p1 : Symbol(c1.nc_p1, Decl(commentsClassMembers.ts, 46, 5)) +>i1 : Symbol(i1, Decl(commentsClassMembers.ts, 171, 3)) +>nc_p1 : Symbol(c1.nc_p1, Decl(commentsClassMembers.ts, 46, 5)) + +var i1_ncf = i1.nc_p2; +>i1_ncf : Symbol(i1_ncf, Decl(commentsClassMembers.ts, 178, 3)) +>i1.nc_p2 : Symbol(c1.nc_p2, Decl(commentsClassMembers.ts, 47, 25)) +>i1 : Symbol(i1, Decl(commentsClassMembers.ts, 171, 3)) +>nc_p2 : Symbol(c1.nc_p2, Decl(commentsClassMembers.ts, 47, 25)) + +var i1_ncr = i1.nc_p2(20); +>i1_ncr : Symbol(i1_ncr, Decl(commentsClassMembers.ts, 179, 3)) +>i1.nc_p2 : Symbol(c1.nc_p2, Decl(commentsClassMembers.ts, 47, 25)) +>i1 : Symbol(i1, Decl(commentsClassMembers.ts, 171, 3)) +>nc_p2 : Symbol(c1.nc_p2, Decl(commentsClassMembers.ts, 47, 25)) + +var i1_ncprop = i1.nc_p3; +>i1_ncprop : Symbol(i1_ncprop, Decl(commentsClassMembers.ts, 180, 3)) +>i1.nc_p3 : Symbol(c1.nc_p3, Decl(commentsClassMembers.ts, 50, 5), Decl(commentsClassMembers.ts, 53, 5)) +>i1 : Symbol(i1, Decl(commentsClassMembers.ts, 171, 3)) +>nc_p3 : Symbol(c1.nc_p3, Decl(commentsClassMembers.ts, 50, 5), Decl(commentsClassMembers.ts, 53, 5)) + +i1.nc_p3 = i1_ncprop; +>i1.nc_p3 : Symbol(c1.nc_p3, Decl(commentsClassMembers.ts, 50, 5), Decl(commentsClassMembers.ts, 53, 5)) +>i1 : Symbol(i1, Decl(commentsClassMembers.ts, 171, 3)) +>nc_p3 : Symbol(c1.nc_p3, Decl(commentsClassMembers.ts, 50, 5), Decl(commentsClassMembers.ts, 53, 5)) +>i1_ncprop : Symbol(i1_ncprop, Decl(commentsClassMembers.ts, 180, 3)) + +var i1_s_p = c1.s1; +>i1_s_p : Symbol(i1_s_p, Decl(commentsClassMembers.ts, 182, 3)) +>c1.s1 : Symbol(c1.s1, Decl(commentsClassMembers.ts, 32, 5)) +>c1 : Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>s1 : Symbol(c1.s1, Decl(commentsClassMembers.ts, 32, 5)) + +var i1_s_f = c1.s2; +>i1_s_f : Symbol(i1_s_f, Decl(commentsClassMembers.ts, 183, 3)) +>c1.s2 : Symbol(c1.s2, Decl(commentsClassMembers.ts, 34, 22)) +>c1 : Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>s2 : Symbol(c1.s2, Decl(commentsClassMembers.ts, 34, 22)) + +var i1_s_r = c1.s2(20); +>i1_s_r : Symbol(i1_s_r, Decl(commentsClassMembers.ts, 184, 3)) +>c1.s2 : Symbol(c1.s2, Decl(commentsClassMembers.ts, 34, 22)) +>c1 : Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>s2 : Symbol(c1.s2, Decl(commentsClassMembers.ts, 34, 22)) + +var i1_s_prop = c1.s3; +>i1_s_prop : Symbol(i1_s_prop, Decl(commentsClassMembers.ts, 185, 3)) +>c1.s3 : Symbol(c1.s3, Decl(commentsClassMembers.ts, 38, 5), Decl(commentsClassMembers.ts, 42, 5)) +>c1 : Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>s3 : Symbol(c1.s3, Decl(commentsClassMembers.ts, 38, 5), Decl(commentsClassMembers.ts, 42, 5)) + +c1.s3 = i1_s_prop; +>c1.s3 : Symbol(c1.s3, Decl(commentsClassMembers.ts, 38, 5), Decl(commentsClassMembers.ts, 42, 5)) +>c1 : Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>s3 : Symbol(c1.s3, Decl(commentsClassMembers.ts, 38, 5), Decl(commentsClassMembers.ts, 42, 5)) +>i1_s_prop : Symbol(i1_s_prop, Decl(commentsClassMembers.ts, 185, 3)) + +var i1_s_nc_p = c1.nc_s1; +>i1_s_nc_p : Symbol(i1_s_nc_p, Decl(commentsClassMembers.ts, 187, 3)) +>c1.nc_s1 : Symbol(c1.nc_s1, Decl(commentsClassMembers.ts, 66, 5)) +>c1 : Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>nc_s1 : Symbol(c1.nc_s1, Decl(commentsClassMembers.ts, 66, 5)) + +var i1_s_ncf = c1.nc_s2; +>i1_s_ncf : Symbol(i1_s_ncf, Decl(commentsClassMembers.ts, 188, 3)) +>c1.nc_s2 : Symbol(c1.nc_s2, Decl(commentsClassMembers.ts, 67, 25)) +>c1 : Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>nc_s2 : Symbol(c1.nc_s2, Decl(commentsClassMembers.ts, 67, 25)) + +var i1_s_ncr = c1.nc_s2(20); +>i1_s_ncr : Symbol(i1_s_ncr, Decl(commentsClassMembers.ts, 189, 3)) +>c1.nc_s2 : Symbol(c1.nc_s2, Decl(commentsClassMembers.ts, 67, 25)) +>c1 : Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>nc_s2 : Symbol(c1.nc_s2, Decl(commentsClassMembers.ts, 67, 25)) + +var i1_s_ncprop = c1.nc_s3; +>i1_s_ncprop : Symbol(i1_s_ncprop, Decl(commentsClassMembers.ts, 190, 3)) +>c1.nc_s3 : Symbol(c1.nc_s3, Decl(commentsClassMembers.ts, 70, 5), Decl(commentsClassMembers.ts, 73, 5)) +>c1 : Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>nc_s3 : Symbol(c1.nc_s3, Decl(commentsClassMembers.ts, 70, 5), Decl(commentsClassMembers.ts, 73, 5)) + +c1.nc_s3 = i1_s_ncprop; +>c1.nc_s3 : Symbol(c1.nc_s3, Decl(commentsClassMembers.ts, 70, 5), Decl(commentsClassMembers.ts, 73, 5)) +>c1 : Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>nc_s3 : Symbol(c1.nc_s3, Decl(commentsClassMembers.ts, 70, 5), Decl(commentsClassMembers.ts, 73, 5)) +>i1_s_ncprop : Symbol(i1_s_ncprop, Decl(commentsClassMembers.ts, 190, 3)) + +var i1_c = c1; +>i1_c : Symbol(i1_c, Decl(commentsClassMembers.ts, 192, 3)) +>c1 : Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) + +class cProperties { +>cProperties : Symbol(cProperties, Decl(commentsClassMembers.ts, 192, 14)) + + private val: number; +>val : Symbol(cProperties.val, Decl(commentsClassMembers.ts, 193, 19)) + + /** getter only property*/ + public get p1() { +>p1 : Symbol(cProperties.p1, Decl(commentsClassMembers.ts, 194, 24)) + + return this.val; +>this.val : Symbol(cProperties.val, Decl(commentsClassMembers.ts, 193, 19)) +>this : Symbol(cProperties, Decl(commentsClassMembers.ts, 192, 14)) +>val : Symbol(cProperties.val, Decl(commentsClassMembers.ts, 193, 19)) + + } // trailing comment of only getter + public get nc_p1() { +>nc_p1 : Symbol(cProperties.nc_p1, Decl(commentsClassMembers.ts, 198, 5)) + + return this.val; +>this.val : Symbol(cProperties.val, Decl(commentsClassMembers.ts, 193, 19)) +>this : Symbol(cProperties, Decl(commentsClassMembers.ts, 192, 14)) +>val : Symbol(cProperties.val, Decl(commentsClassMembers.ts, 193, 19)) + } + /**setter only property*/ + public set p2(value: number) { +>p2 : Symbol(cProperties.p2, Decl(commentsClassMembers.ts, 201, 5)) +>value : Symbol(value, Decl(commentsClassMembers.ts, 203, 18)) + + this.val = value; +>this.val : Symbol(cProperties.val, Decl(commentsClassMembers.ts, 193, 19)) +>this : Symbol(cProperties, Decl(commentsClassMembers.ts, 192, 14)) +>val : Symbol(cProperties.val, Decl(commentsClassMembers.ts, 193, 19)) +>value : Symbol(value, Decl(commentsClassMembers.ts, 203, 18)) + } + public set nc_p2(value: number) { +>nc_p2 : Symbol(cProperties.nc_p2, Decl(commentsClassMembers.ts, 205, 5)) +>value : Symbol(value, Decl(commentsClassMembers.ts, 206, 21)) + + this.val = value; +>this.val : Symbol(cProperties.val, Decl(commentsClassMembers.ts, 193, 19)) +>this : Symbol(cProperties, Decl(commentsClassMembers.ts, 192, 14)) +>val : Symbol(cProperties.val, Decl(commentsClassMembers.ts, 193, 19)) +>value : Symbol(value, Decl(commentsClassMembers.ts, 206, 21)) + + } /* trailing comment of setter only*/ + + public x = 10; /*trailing comment for property*/ +>x : Symbol(cProperties.x, Decl(commentsClassMembers.ts, 208, 5)) + + private y = 10; // trailing comment of // style +>y : Symbol(cProperties.y, Decl(commentsClassMembers.ts, 210, 18)) +} +var cProperties_i = new cProperties(); +>cProperties_i : Symbol(cProperties_i, Decl(commentsClassMembers.ts, 213, 3)) +>cProperties : Symbol(cProperties, Decl(commentsClassMembers.ts, 192, 14)) + +cProperties_i.p2 = cProperties_i.p1; +>cProperties_i.p2 : Symbol(cProperties.p2, Decl(commentsClassMembers.ts, 201, 5)) +>cProperties_i : Symbol(cProperties_i, Decl(commentsClassMembers.ts, 213, 3)) +>p2 : Symbol(cProperties.p2, Decl(commentsClassMembers.ts, 201, 5)) +>cProperties_i.p1 : Symbol(cProperties.p1, Decl(commentsClassMembers.ts, 194, 24)) +>cProperties_i : Symbol(cProperties_i, Decl(commentsClassMembers.ts, 213, 3)) +>p1 : Symbol(cProperties.p1, Decl(commentsClassMembers.ts, 194, 24)) + +cProperties_i.nc_p2 = cProperties_i.nc_p1; +>cProperties_i.nc_p2 : Symbol(cProperties.nc_p2, Decl(commentsClassMembers.ts, 205, 5)) +>cProperties_i : Symbol(cProperties_i, Decl(commentsClassMembers.ts, 213, 3)) +>nc_p2 : Symbol(cProperties.nc_p2, Decl(commentsClassMembers.ts, 205, 5)) +>cProperties_i.nc_p1 : Symbol(cProperties.nc_p1, Decl(commentsClassMembers.ts, 198, 5)) +>cProperties_i : Symbol(cProperties_i, Decl(commentsClassMembers.ts, 213, 3)) +>nc_p1 : Symbol(cProperties.nc_p1, Decl(commentsClassMembers.ts, 198, 5)) + diff --git a/tests/baselines/reference/commentsClassMembers(target=es5).types b/tests/baselines/reference/commentsClassMembers(target=es5).types new file mode 100644 index 0000000000000..f90d83d2d5194 --- /dev/null +++ b/tests/baselines/reference/commentsClassMembers(target=es5).types @@ -0,0 +1,1242 @@ +//// [tests/cases/compiler/commentsClassMembers.ts] //// + +=== commentsClassMembers.ts === +/** This is comment for c1*/ +class c1 { +>c1 : c1 +> : ^^ + + /** p1 is property of c1*/ + public p1: number; +>p1 : number +> : ^^^^^^ + + /** sum with property*/ + public p2(/** number to add*/b: number) { +>p2 : (b: number) => number +> : ^ ^^ ^^^^^^^^^^^ +>b : number +> : ^^^^^^ + + return this.p1 + b; +>this.p1 + b : number +> : ^^^^^^ +>this.p1 : number +> : ^^^^^^ +>this : this +> : ^^^^ +>p1 : number +> : ^^^^^^ +>b : number +> : ^^^^^^ + + } /* trailing comment of method*/ + /** getter property*/ + public get p3() { +>p3 : number +> : ^^^^^^ + + return this.p2(this.p1); +>this.p2(this.p1) : number +> : ^^^^^^ +>this.p2 : (b: number) => number +> : ^ ^^ ^^^^^^^^^^^ +>this : this +> : ^^^^ +>p2 : (b: number) => number +> : ^ ^^ ^^^^^^^^^^^ +>this.p1 : number +> : ^^^^^^ +>this : this +> : ^^^^ +>p1 : number +> : ^^^^^^ + + }// trailing comment Getter + /** setter property*/ + public set p3(/** this is value*/value: number) { +>p3 : number +> : ^^^^^^ +>value : number +> : ^^^^^^ + + this.p1 = this.p2(value); +>this.p1 = this.p2(value) : number +> : ^^^^^^ +>this.p1 : number +> : ^^^^^^ +>this : this +> : ^^^^ +>p1 : number +> : ^^^^^^ +>this.p2(value) : number +> : ^^^^^^ +>this.p2 : (b: number) => number +> : ^ ^^ ^^^^^^^^^^^ +>this : this +> : ^^^^ +>p2 : (b: number) => number +> : ^ ^^ ^^^^^^^^^^^ +>value : number +> : ^^^^^^ + + }// trailing comment Setter + /** pp1 is property of c1*/ + private pp1: number; +>pp1 : number +> : ^^^^^^ + + /** sum with property*/ + private pp2(/** number to add*/b: number) { +>pp2 : (b: number) => number +> : ^ ^^ ^^^^^^^^^^^ +>b : number +> : ^^^^^^ + + return this.p1 + b; +>this.p1 + b : number +> : ^^^^^^ +>this.p1 : number +> : ^^^^^^ +>this : this +> : ^^^^ +>p1 : number +> : ^^^^^^ +>b : number +> : ^^^^^^ + + } // trailing comment of method + /** getter property*/ + private get pp3() { +>pp3 : number +> : ^^^^^^ + + return this.pp2(this.pp1); +>this.pp2(this.pp1) : number +> : ^^^^^^ +>this.pp2 : (b: number) => number +> : ^ ^^ ^^^^^^^^^^^ +>this : this +> : ^^^^ +>pp2 : (b: number) => number +> : ^ ^^ ^^^^^^^^^^^ +>this.pp1 : number +> : ^^^^^^ +>this : this +> : ^^^^ +>pp1 : number +> : ^^^^^^ + } + /** setter property*/ + private set pp3( /** this is value*/value: number) { +>pp3 : number +> : ^^^^^^ +>value : number +> : ^^^^^^ + + this.pp1 = this.pp2(value); +>this.pp1 = this.pp2(value) : number +> : ^^^^^^ +>this.pp1 : number +> : ^^^^^^ +>this : this +> : ^^^^ +>pp1 : number +> : ^^^^^^ +>this.pp2(value) : number +> : ^^^^^^ +>this.pp2 : (b: number) => number +> : ^ ^^ ^^^^^^^^^^^ +>this : this +> : ^^^^ +>pp2 : (b: number) => number +> : ^ ^^ ^^^^^^^^^^^ +>value : number +> : ^^^^^^ + } + /** Constructor method*/ + constructor() { + } + /** s1 is static property of c1*/ + static s1: number; +>s1 : number +> : ^^^^^^ + + /** static sum with property*/ + static s2(/** number to add*/b: number) { +>s2 : (b: number) => number +> : ^ ^^ ^^^^^^^^^^^ +>b : number +> : ^^^^^^ + + return c1.s1 + b; +>c1.s1 + b : number +> : ^^^^^^ +>c1.s1 : number +> : ^^^^^^ +>c1 : typeof c1 +> : ^^^^^^^^^ +>s1 : number +> : ^^^^^^ +>b : number +> : ^^^^^^ + } + /** static getter property*/ + static get s3() { +>s3 : number +> : ^^^^^^ + + return c1.s2(c1.s1); +>c1.s2(c1.s1) : number +> : ^^^^^^ +>c1.s2 : (b: number) => number +> : ^ ^^ ^^^^^^^^^^^ +>c1 : typeof c1 +> : ^^^^^^^^^ +>s2 : (b: number) => number +> : ^ ^^ ^^^^^^^^^^^ +>c1.s1 : number +> : ^^^^^^ +>c1 : typeof c1 +> : ^^^^^^^^^ +>s1 : number +> : ^^^^^^ + + } /*trailing comment 1 getter*/ + /** setter property*/ + static set s3( /** this is value*/value: number) { +>s3 : number +> : ^^^^^^ +>value : number +> : ^^^^^^ + + c1.s1 = c1.s2(value); +>c1.s1 = c1.s2(value) : number +> : ^^^^^^ +>c1.s1 : number +> : ^^^^^^ +>c1 : typeof c1 +> : ^^^^^^^^^ +>s1 : number +> : ^^^^^^ +>c1.s2(value) : number +> : ^^^^^^ +>c1.s2 : (b: number) => number +> : ^ ^^ ^^^^^^^^^^^ +>c1 : typeof c1 +> : ^^^^^^^^^ +>s2 : (b: number) => number +> : ^ ^^ ^^^^^^^^^^^ +>value : number +> : ^^^^^^ + + }/*trailing comment 2 */ /*setter*/ + public nc_p1: number; +>nc_p1 : number +> : ^^^^^^ + + public nc_p2(b: number) { +>nc_p2 : (b: number) => number +> : ^ ^^ ^^^^^^^^^^^ +>b : number +> : ^^^^^^ + + return this.nc_p1 + b; +>this.nc_p1 + b : number +> : ^^^^^^ +>this.nc_p1 : number +> : ^^^^^^ +>this : this +> : ^^^^ +>nc_p1 : number +> : ^^^^^^ +>b : number +> : ^^^^^^ + } + public get nc_p3() { +>nc_p3 : number +> : ^^^^^^ + + return this.nc_p2(this.nc_p1); +>this.nc_p2(this.nc_p1) : number +> : ^^^^^^ +>this.nc_p2 : (b: number) => number +> : ^ ^^ ^^^^^^^^^^^ +>this : this +> : ^^^^ +>nc_p2 : (b: number) => number +> : ^ ^^ ^^^^^^^^^^^ +>this.nc_p1 : number +> : ^^^^^^ +>this : this +> : ^^^^ +>nc_p1 : number +> : ^^^^^^ + } + public set nc_p3(value: number) { +>nc_p3 : number +> : ^^^^^^ +>value : number +> : ^^^^^^ + + this.nc_p1 = this.nc_p2(value); +>this.nc_p1 = this.nc_p2(value) : number +> : ^^^^^^ +>this.nc_p1 : number +> : ^^^^^^ +>this : this +> : ^^^^ +>nc_p1 : number +> : ^^^^^^ +>this.nc_p2(value) : number +> : ^^^^^^ +>this.nc_p2 : (b: number) => number +> : ^ ^^ ^^^^^^^^^^^ +>this : this +> : ^^^^ +>nc_p2 : (b: number) => number +> : ^ ^^ ^^^^^^^^^^^ +>value : number +> : ^^^^^^ + } + private nc_pp1: number; +>nc_pp1 : number +> : ^^^^^^ + + private nc_pp2(b: number) { +>nc_pp2 : (b: number) => number +> : ^ ^^ ^^^^^^^^^^^ +>b : number +> : ^^^^^^ + + return this.nc_pp1 + b; +>this.nc_pp1 + b : number +> : ^^^^^^ +>this.nc_pp1 : number +> : ^^^^^^ +>this : this +> : ^^^^ +>nc_pp1 : number +> : ^^^^^^ +>b : number +> : ^^^^^^ + } + private get nc_pp3() { +>nc_pp3 : number +> : ^^^^^^ + + return this.nc_pp2(this.nc_pp1); +>this.nc_pp2(this.nc_pp1) : number +> : ^^^^^^ +>this.nc_pp2 : (b: number) => number +> : ^ ^^ ^^^^^^^^^^^ +>this : this +> : ^^^^ +>nc_pp2 : (b: number) => number +> : ^ ^^ ^^^^^^^^^^^ +>this.nc_pp1 : number +> : ^^^^^^ +>this : this +> : ^^^^ +>nc_pp1 : number +> : ^^^^^^ + } + private set nc_pp3(value: number) { +>nc_pp3 : number +> : ^^^^^^ +>value : number +> : ^^^^^^ + + this.nc_pp1 = this.nc_pp2(value); +>this.nc_pp1 = this.nc_pp2(value) : number +> : ^^^^^^ +>this.nc_pp1 : number +> : ^^^^^^ +>this : this +> : ^^^^ +>nc_pp1 : number +> : ^^^^^^ +>this.nc_pp2(value) : number +> : ^^^^^^ +>this.nc_pp2 : (b: number) => number +> : ^ ^^ ^^^^^^^^^^^ +>this : this +> : ^^^^ +>nc_pp2 : (b: number) => number +> : ^ ^^ ^^^^^^^^^^^ +>value : number +> : ^^^^^^ + } + static nc_s1: number; +>nc_s1 : number +> : ^^^^^^ + + static nc_s2(b: number) { +>nc_s2 : (b: number) => number +> : ^ ^^ ^^^^^^^^^^^ +>b : number +> : ^^^^^^ + + return c1.nc_s1 + b; +>c1.nc_s1 + b : number +> : ^^^^^^ +>c1.nc_s1 : number +> : ^^^^^^ +>c1 : typeof c1 +> : ^^^^^^^^^ +>nc_s1 : number +> : ^^^^^^ +>b : number +> : ^^^^^^ + } + static get nc_s3() { +>nc_s3 : number +> : ^^^^^^ + + return c1.nc_s2(c1.nc_s1); +>c1.nc_s2(c1.nc_s1) : number +> : ^^^^^^ +>c1.nc_s2 : (b: number) => number +> : ^ ^^ ^^^^^^^^^^^ +>c1 : typeof c1 +> : ^^^^^^^^^ +>nc_s2 : (b: number) => number +> : ^ ^^ ^^^^^^^^^^^ +>c1.nc_s1 : number +> : ^^^^^^ +>c1 : typeof c1 +> : ^^^^^^^^^ +>nc_s1 : number +> : ^^^^^^ + } + static set nc_s3(value: number) { +>nc_s3 : number +> : ^^^^^^ +>value : number +> : ^^^^^^ + + c1.nc_s1 = c1.nc_s2(value); +>c1.nc_s1 = c1.nc_s2(value) : number +> : ^^^^^^ +>c1.nc_s1 : number +> : ^^^^^^ +>c1 : typeof c1 +> : ^^^^^^^^^ +>nc_s1 : number +> : ^^^^^^ +>c1.nc_s2(value) : number +> : ^^^^^^ +>c1.nc_s2 : (b: number) => number +> : ^ ^^ ^^^^^^^^^^^ +>c1 : typeof c1 +> : ^^^^^^^^^ +>nc_s2 : (b: number) => number +> : ^ ^^ ^^^^^^^^^^^ +>value : number +> : ^^^^^^ + } + + // p1 is property of c1 + public a_p1: number; +>a_p1 : number +> : ^^^^^^ + + // sum with property + public a_p2(b: number) { +>a_p2 : (b: number) => number +> : ^ ^^ ^^^^^^^^^^^ +>b : number +> : ^^^^^^ + + return this.a_p1 + b; +>this.a_p1 + b : number +> : ^^^^^^ +>this.a_p1 : number +> : ^^^^^^ +>this : this +> : ^^^^ +>a_p1 : number +> : ^^^^^^ +>b : number +> : ^^^^^^ + } + // getter property + public get a_p3() { +>a_p3 : number +> : ^^^^^^ + + return this.a_p2(this.a_p1); +>this.a_p2(this.a_p1) : number +> : ^^^^^^ +>this.a_p2 : (b: number) => number +> : ^ ^^ ^^^^^^^^^^^ +>this : this +> : ^^^^ +>a_p2 : (b: number) => number +> : ^ ^^ ^^^^^^^^^^^ +>this.a_p1 : number +> : ^^^^^^ +>this : this +> : ^^^^ +>a_p1 : number +> : ^^^^^^ + } + // setter property + public set a_p3(value: number) { +>a_p3 : number +> : ^^^^^^ +>value : number +> : ^^^^^^ + + this.a_p1 = this.a_p2(value); +>this.a_p1 = this.a_p2(value) : number +> : ^^^^^^ +>this.a_p1 : number +> : ^^^^^^ +>this : this +> : ^^^^ +>a_p1 : number +> : ^^^^^^ +>this.a_p2(value) : number +> : ^^^^^^ +>this.a_p2 : (b: number) => number +> : ^ ^^ ^^^^^^^^^^^ +>this : this +> : ^^^^ +>a_p2 : (b: number) => number +> : ^ ^^ ^^^^^^^^^^^ +>value : number +> : ^^^^^^ + } + // pp1 is property of c1 + private a_pp1: number; +>a_pp1 : number +> : ^^^^^^ + + // sum with property + private a_pp2(b: number) { +>a_pp2 : (b: number) => number +> : ^ ^^ ^^^^^^^^^^^ +>b : number +> : ^^^^^^ + + return this.a_p1 + b; +>this.a_p1 + b : number +> : ^^^^^^ +>this.a_p1 : number +> : ^^^^^^ +>this : this +> : ^^^^ +>a_p1 : number +> : ^^^^^^ +>b : number +> : ^^^^^^ + } + // getter property + private get a_pp3() { +>a_pp3 : number +> : ^^^^^^ + + return this.a_pp2(this.a_pp1); +>this.a_pp2(this.a_pp1) : number +> : ^^^^^^ +>this.a_pp2 : (b: number) => number +> : ^ ^^ ^^^^^^^^^^^ +>this : this +> : ^^^^ +>a_pp2 : (b: number) => number +> : ^ ^^ ^^^^^^^^^^^ +>this.a_pp1 : number +> : ^^^^^^ +>this : this +> : ^^^^ +>a_pp1 : number +> : ^^^^^^ + } + // setter property + private set a_pp3(value: number) { +>a_pp3 : number +> : ^^^^^^ +>value : number +> : ^^^^^^ + + this.a_pp1 = this.a_pp2(value); +>this.a_pp1 = this.a_pp2(value) : number +> : ^^^^^^ +>this.a_pp1 : number +> : ^^^^^^ +>this : this +> : ^^^^ +>a_pp1 : number +> : ^^^^^^ +>this.a_pp2(value) : number +> : ^^^^^^ +>this.a_pp2 : (b: number) => number +> : ^ ^^ ^^^^^^^^^^^ +>this : this +> : ^^^^ +>a_pp2 : (b: number) => number +> : ^ ^^ ^^^^^^^^^^^ +>value : number +> : ^^^^^^ + } + + // s1 is static property of c1 + static a_s1: number; +>a_s1 : number +> : ^^^^^^ + + // static sum with property + static a_s2(b: number) { +>a_s2 : (b: number) => number +> : ^ ^^ ^^^^^^^^^^^ +>b : number +> : ^^^^^^ + + return c1.a_s1 + b; +>c1.a_s1 + b : number +> : ^^^^^^ +>c1.a_s1 : number +> : ^^^^^^ +>c1 : typeof c1 +> : ^^^^^^^^^ +>a_s1 : number +> : ^^^^^^ +>b : number +> : ^^^^^^ + } + // static getter property + static get a_s3() { +>a_s3 : number +> : ^^^^^^ + + return c1.s2(c1.s1); +>c1.s2(c1.s1) : number +> : ^^^^^^ +>c1.s2 : (b: number) => number +> : ^ ^^ ^^^^^^^^^^^ +>c1 : typeof c1 +> : ^^^^^^^^^ +>s2 : (b: number) => number +> : ^ ^^ ^^^^^^^^^^^ +>c1.s1 : number +> : ^^^^^^ +>c1 : typeof c1 +> : ^^^^^^^^^ +>s1 : number +> : ^^^^^^ + } + + // setter property + static set a_s3(value: number) { +>a_s3 : number +> : ^^^^^^ +>value : number +> : ^^^^^^ + + c1.a_s1 = c1.a_s2(value); +>c1.a_s1 = c1.a_s2(value) : number +> : ^^^^^^ +>c1.a_s1 : number +> : ^^^^^^ +>c1 : typeof c1 +> : ^^^^^^^^^ +>a_s1 : number +> : ^^^^^^ +>c1.a_s2(value) : number +> : ^^^^^^ +>c1.a_s2 : (b: number) => number +> : ^ ^^ ^^^^^^^^^^^ +>c1 : typeof c1 +> : ^^^^^^^^^ +>a_s2 : (b: number) => number +> : ^ ^^ ^^^^^^^^^^^ +>value : number +> : ^^^^^^ + } + + /** p1 is property of c1 */ + public b_p1: number; +>b_p1 : number +> : ^^^^^^ + + /** sum with property */ + public b_p2(b: number) { +>b_p2 : (b: number) => number +> : ^ ^^ ^^^^^^^^^^^ +>b : number +> : ^^^^^^ + + return this.b_p1 + b; +>this.b_p1 + b : number +> : ^^^^^^ +>this.b_p1 : number +> : ^^^^^^ +>this : this +> : ^^^^ +>b_p1 : number +> : ^^^^^^ +>b : number +> : ^^^^^^ + } + /** getter property */ + public get b_p3() { +>b_p3 : number +> : ^^^^^^ + + return this.b_p2(this.b_p1); +>this.b_p2(this.b_p1) : number +> : ^^^^^^ +>this.b_p2 : (b: number) => number +> : ^ ^^ ^^^^^^^^^^^ +>this : this +> : ^^^^ +>b_p2 : (b: number) => number +> : ^ ^^ ^^^^^^^^^^^ +>this.b_p1 : number +> : ^^^^^^ +>this : this +> : ^^^^ +>b_p1 : number +> : ^^^^^^ + } + /** setter property */ + public set b_p3(value: number) { +>b_p3 : number +> : ^^^^^^ +>value : number +> : ^^^^^^ + + this.b_p1 = this.b_p2(value); +>this.b_p1 = this.b_p2(value) : number +> : ^^^^^^ +>this.b_p1 : number +> : ^^^^^^ +>this : this +> : ^^^^ +>b_p1 : number +> : ^^^^^^ +>this.b_p2(value) : number +> : ^^^^^^ +>this.b_p2 : (b: number) => number +> : ^ ^^ ^^^^^^^^^^^ +>this : this +> : ^^^^ +>b_p2 : (b: number) => number +> : ^ ^^ ^^^^^^^^^^^ +>value : number +> : ^^^^^^ + } + /** pp1 is property of c1 */ + private b_pp1: number; +>b_pp1 : number +> : ^^^^^^ + + /** sum with property */ + private b_pp2(b: number) { +>b_pp2 : (b: number) => number +> : ^ ^^ ^^^^^^^^^^^ +>b : number +> : ^^^^^^ + + return this.b_p1 + b; +>this.b_p1 + b : number +> : ^^^^^^ +>this.b_p1 : number +> : ^^^^^^ +>this : this +> : ^^^^ +>b_p1 : number +> : ^^^^^^ +>b : number +> : ^^^^^^ + } + /** getter property */ + private get b_pp3() { +>b_pp3 : number +> : ^^^^^^ + + return this.b_pp2(this.b_pp1); +>this.b_pp2(this.b_pp1) : number +> : ^^^^^^ +>this.b_pp2 : (b: number) => number +> : ^ ^^ ^^^^^^^^^^^ +>this : this +> : ^^^^ +>b_pp2 : (b: number) => number +> : ^ ^^ ^^^^^^^^^^^ +>this.b_pp1 : number +> : ^^^^^^ +>this : this +> : ^^^^ +>b_pp1 : number +> : ^^^^^^ + } + /** setter property */ + private set b_pp3(value: number) { +>b_pp3 : number +> : ^^^^^^ +>value : number +> : ^^^^^^ + + this.b_pp1 = this.b_pp2(value); +>this.b_pp1 = this.b_pp2(value) : number +> : ^^^^^^ +>this.b_pp1 : number +> : ^^^^^^ +>this : this +> : ^^^^ +>b_pp1 : number +> : ^^^^^^ +>this.b_pp2(value) : number +> : ^^^^^^ +>this.b_pp2 : (b: number) => number +> : ^ ^^ ^^^^^^^^^^^ +>this : this +> : ^^^^ +>b_pp2 : (b: number) => number +> : ^ ^^ ^^^^^^^^^^^ +>value : number +> : ^^^^^^ + } + + /** s1 is static property of c1 */ + static b_s1: number; +>b_s1 : number +> : ^^^^^^ + + /** static sum with property */ + static b_s2(b: number) { +>b_s2 : (b: number) => number +> : ^ ^^ ^^^^^^^^^^^ +>b : number +> : ^^^^^^ + + return c1.b_s1 + b; +>c1.b_s1 + b : number +> : ^^^^^^ +>c1.b_s1 : number +> : ^^^^^^ +>c1 : typeof c1 +> : ^^^^^^^^^ +>b_s1 : number +> : ^^^^^^ +>b : number +> : ^^^^^^ + } + /** static getter property + */ + static get b_s3() { +>b_s3 : number +> : ^^^^^^ + + return c1.s2(c1.s1); +>c1.s2(c1.s1) : number +> : ^^^^^^ +>c1.s2 : (b: number) => number +> : ^ ^^ ^^^^^^^^^^^ +>c1 : typeof c1 +> : ^^^^^^^^^ +>s2 : (b: number) => number +> : ^ ^^ ^^^^^^^^^^^ +>c1.s1 : number +> : ^^^^^^ +>c1 : typeof c1 +> : ^^^^^^^^^ +>s1 : number +> : ^^^^^^ + } + + /** setter property + */ + static set b_s3(value: number) { +>b_s3 : number +> : ^^^^^^ +>value : number +> : ^^^^^^ + + /** setter */ + c1.b_s1 = c1.b_s2(value); +>c1.b_s1 = c1.b_s2(value) : number +> : ^^^^^^ +>c1.b_s1 : number +> : ^^^^^^ +>c1 : typeof c1 +> : ^^^^^^^^^ +>b_s1 : number +> : ^^^^^^ +>c1.b_s2(value) : number +> : ^^^^^^ +>c1.b_s2 : (b: number) => number +> : ^ ^^ ^^^^^^^^^^^ +>c1 : typeof c1 +> : ^^^^^^^^^ +>b_s2 : (b: number) => number +> : ^ ^^ ^^^^^^^^^^^ +>value : number +> : ^^^^^^ + } +} +var i1 = new c1(); +>i1 : c1 +> : ^^ +>new c1() : c1 +> : ^^ +>c1 : typeof c1 +> : ^^^^^^^^^ + +var i1_p = i1.p1; +>i1_p : number +> : ^^^^^^ +>i1.p1 : number +> : ^^^^^^ +>i1 : c1 +> : ^^ +>p1 : number +> : ^^^^^^ + +var i1_f = i1.p2; +>i1_f : (b: number) => number +> : ^ ^^ ^^^^^^^^^^^ +>i1.p2 : (b: number) => number +> : ^ ^^ ^^^^^^^^^^^ +>i1 : c1 +> : ^^ +>p2 : (b: number) => number +> : ^ ^^ ^^^^^^^^^^^ + +var i1_r = i1.p2(20); +>i1_r : number +> : ^^^^^^ +>i1.p2(20) : number +> : ^^^^^^ +>i1.p2 : (b: number) => number +> : ^ ^^ ^^^^^^^^^^^ +>i1 : c1 +> : ^^ +>p2 : (b: number) => number +> : ^ ^^ ^^^^^^^^^^^ +>20 : 20 +> : ^^ + +var i1_prop = i1.p3; +>i1_prop : number +> : ^^^^^^ +>i1.p3 : number +> : ^^^^^^ +>i1 : c1 +> : ^^ +>p3 : number +> : ^^^^^^ + +i1.p3 = i1_prop; +>i1.p3 = i1_prop : number +> : ^^^^^^ +>i1.p3 : number +> : ^^^^^^ +>i1 : c1 +> : ^^ +>p3 : number +> : ^^^^^^ +>i1_prop : number +> : ^^^^^^ + +var i1_nc_p = i1.nc_p1; +>i1_nc_p : number +> : ^^^^^^ +>i1.nc_p1 : number +> : ^^^^^^ +>i1 : c1 +> : ^^ +>nc_p1 : number +> : ^^^^^^ + +var i1_ncf = i1.nc_p2; +>i1_ncf : (b: number) => number +> : ^ ^^ ^^^^^^^^^^^ +>i1.nc_p2 : (b: number) => number +> : ^ ^^ ^^^^^^^^^^^ +>i1 : c1 +> : ^^ +>nc_p2 : (b: number) => number +> : ^ ^^ ^^^^^^^^^^^ + +var i1_ncr = i1.nc_p2(20); +>i1_ncr : number +> : ^^^^^^ +>i1.nc_p2(20) : number +> : ^^^^^^ +>i1.nc_p2 : (b: number) => number +> : ^ ^^ ^^^^^^^^^^^ +>i1 : c1 +> : ^^ +>nc_p2 : (b: number) => number +> : ^ ^^ ^^^^^^^^^^^ +>20 : 20 +> : ^^ + +var i1_ncprop = i1.nc_p3; +>i1_ncprop : number +> : ^^^^^^ +>i1.nc_p3 : number +> : ^^^^^^ +>i1 : c1 +> : ^^ +>nc_p3 : number +> : ^^^^^^ + +i1.nc_p3 = i1_ncprop; +>i1.nc_p3 = i1_ncprop : number +> : ^^^^^^ +>i1.nc_p3 : number +> : ^^^^^^ +>i1 : c1 +> : ^^ +>nc_p3 : number +> : ^^^^^^ +>i1_ncprop : number +> : ^^^^^^ + +var i1_s_p = c1.s1; +>i1_s_p : number +> : ^^^^^^ +>c1.s1 : number +> : ^^^^^^ +>c1 : typeof c1 +> : ^^^^^^^^^ +>s1 : number +> : ^^^^^^ + +var i1_s_f = c1.s2; +>i1_s_f : (b: number) => number +> : ^ ^^ ^^^^^^^^^^^ +>c1.s2 : (b: number) => number +> : ^ ^^ ^^^^^^^^^^^ +>c1 : typeof c1 +> : ^^^^^^^^^ +>s2 : (b: number) => number +> : ^ ^^ ^^^^^^^^^^^ + +var i1_s_r = c1.s2(20); +>i1_s_r : number +> : ^^^^^^ +>c1.s2(20) : number +> : ^^^^^^ +>c1.s2 : (b: number) => number +> : ^ ^^ ^^^^^^^^^^^ +>c1 : typeof c1 +> : ^^^^^^^^^ +>s2 : (b: number) => number +> : ^ ^^ ^^^^^^^^^^^ +>20 : 20 +> : ^^ + +var i1_s_prop = c1.s3; +>i1_s_prop : number +> : ^^^^^^ +>c1.s3 : number +> : ^^^^^^ +>c1 : typeof c1 +> : ^^^^^^^^^ +>s3 : number +> : ^^^^^^ + +c1.s3 = i1_s_prop; +>c1.s3 = i1_s_prop : number +> : ^^^^^^ +>c1.s3 : number +> : ^^^^^^ +>c1 : typeof c1 +> : ^^^^^^^^^ +>s3 : number +> : ^^^^^^ +>i1_s_prop : number +> : ^^^^^^ + +var i1_s_nc_p = c1.nc_s1; +>i1_s_nc_p : number +> : ^^^^^^ +>c1.nc_s1 : number +> : ^^^^^^ +>c1 : typeof c1 +> : ^^^^^^^^^ +>nc_s1 : number +> : ^^^^^^ + +var i1_s_ncf = c1.nc_s2; +>i1_s_ncf : (b: number) => number +> : ^ ^^ ^^^^^^^^^^^ +>c1.nc_s2 : (b: number) => number +> : ^ ^^ ^^^^^^^^^^^ +>c1 : typeof c1 +> : ^^^^^^^^^ +>nc_s2 : (b: number) => number +> : ^ ^^ ^^^^^^^^^^^ + +var i1_s_ncr = c1.nc_s2(20); +>i1_s_ncr : number +> : ^^^^^^ +>c1.nc_s2(20) : number +> : ^^^^^^ +>c1.nc_s2 : (b: number) => number +> : ^ ^^ ^^^^^^^^^^^ +>c1 : typeof c1 +> : ^^^^^^^^^ +>nc_s2 : (b: number) => number +> : ^ ^^ ^^^^^^^^^^^ +>20 : 20 +> : ^^ + +var i1_s_ncprop = c1.nc_s3; +>i1_s_ncprop : number +> : ^^^^^^ +>c1.nc_s3 : number +> : ^^^^^^ +>c1 : typeof c1 +> : ^^^^^^^^^ +>nc_s3 : number +> : ^^^^^^ + +c1.nc_s3 = i1_s_ncprop; +>c1.nc_s3 = i1_s_ncprop : number +> : ^^^^^^ +>c1.nc_s3 : number +> : ^^^^^^ +>c1 : typeof c1 +> : ^^^^^^^^^ +>nc_s3 : number +> : ^^^^^^ +>i1_s_ncprop : number +> : ^^^^^^ + +var i1_c = c1; +>i1_c : typeof c1 +> : ^^^^^^^^^ +>c1 : typeof c1 +> : ^^^^^^^^^ + +class cProperties { +>cProperties : cProperties +> : ^^^^^^^^^^^ + + private val: number; +>val : number +> : ^^^^^^ + + /** getter only property*/ + public get p1() { +>p1 : number +> : ^^^^^^ + + return this.val; +>this.val : number +> : ^^^^^^ +>this : this +> : ^^^^ +>val : number +> : ^^^^^^ + + } // trailing comment of only getter + public get nc_p1() { +>nc_p1 : number +> : ^^^^^^ + + return this.val; +>this.val : number +> : ^^^^^^ +>this : this +> : ^^^^ +>val : number +> : ^^^^^^ + } + /**setter only property*/ + public set p2(value: number) { +>p2 : number +> : ^^^^^^ +>value : number +> : ^^^^^^ + + this.val = value; +>this.val = value : number +> : ^^^^^^ +>this.val : number +> : ^^^^^^ +>this : this +> : ^^^^ +>val : number +> : ^^^^^^ +>value : number +> : ^^^^^^ + } + public set nc_p2(value: number) { +>nc_p2 : number +> : ^^^^^^ +>value : number +> : ^^^^^^ + + this.val = value; +>this.val = value : number +> : ^^^^^^ +>this.val : number +> : ^^^^^^ +>this : this +> : ^^^^ +>val : number +> : ^^^^^^ +>value : number +> : ^^^^^^ + + } /* trailing comment of setter only*/ + + public x = 10; /*trailing comment for property*/ +>x : number +> : ^^^^^^ +>10 : 10 +> : ^^ + + private y = 10; // trailing comment of // style +>y : number +> : ^^^^^^ +>10 : 10 +> : ^^ +} +var cProperties_i = new cProperties(); +>cProperties_i : cProperties +> : ^^^^^^^^^^^ +>new cProperties() : cProperties +> : ^^^^^^^^^^^ +>cProperties : typeof cProperties +> : ^^^^^^^^^^^^^^^^^^ + +cProperties_i.p2 = cProperties_i.p1; +>cProperties_i.p2 = cProperties_i.p1 : number +> : ^^^^^^ +>cProperties_i.p2 : number +> : ^^^^^^ +>cProperties_i : cProperties +> : ^^^^^^^^^^^ +>p2 : number +> : ^^^^^^ +>cProperties_i.p1 : number +> : ^^^^^^ +>cProperties_i : cProperties +> : ^^^^^^^^^^^ +>p1 : number +> : ^^^^^^ + +cProperties_i.nc_p2 = cProperties_i.nc_p1; +>cProperties_i.nc_p2 = cProperties_i.nc_p1 : number +> : ^^^^^^ +>cProperties_i.nc_p2 : number +> : ^^^^^^ +>cProperties_i : cProperties +> : ^^^^^^^^^^^ +>nc_p2 : number +> : ^^^^^^ +>cProperties_i.nc_p1 : number +> : ^^^^^^ +>cProperties_i : cProperties +> : ^^^^^^^^^^^ +>nc_p1 : number +> : ^^^^^^ + diff --git a/tests/baselines/reference/commentsCommentParsing(target=es2015).js b/tests/baselines/reference/commentsCommentParsing(target=es2015).js new file mode 100644 index 0000000000000..8ae1611e41ece --- /dev/null +++ b/tests/baselines/reference/commentsCommentParsing(target=es2015).js @@ -0,0 +1,368 @@ +//// [tests/cases/compiler/commentsCommentParsing.ts] //// + +//// [commentsCommentParsing.ts] +/// This is simple /// comments +function simple() { +} + +simple(); + +/// multiLine /// Comments +/// This is example of multiline /// comments +/// Another multiLine +function multiLine() { +} +multiLine(); + +/** this is eg of single line jsdoc style comment */ +function jsDocSingleLine() { +} +jsDocSingleLine(); + + +/** this is multiple line jsdoc stule comment +*New line1 +*New Line2*/ +function jsDocMultiLine() { +} +jsDocMultiLine(); + +/** this is multiple line jsdoc stule comment +*New line1 +*New Line2*/ +/** Shoul mege this line as well +* and this too*/ /** Another this one too*/ +function jsDocMultiLineMerge() { +} +jsDocMultiLineMerge(); + + +/// Triple slash comment +/** jsdoc comment */ +function jsDocMixedComments1() { +} +jsDocMixedComments1(); + +/// Triple slash comment +/** jsdoc comment */ /*** another jsDocComment*/ +function jsDocMixedComments2() { +} +jsDocMixedComments2(); + +/** jsdoc comment */ /*** another jsDocComment*/ +/// Triple slash comment +function jsDocMixedComments3() { +} +jsDocMixedComments3(); + +/** jsdoc comment */ /*** another jsDocComment*/ +/// Triple slash comment +/// Triple slash comment 2 +function jsDocMixedComments4() { +} +jsDocMixedComments4(); + +/// Triple slash comment 1 +/** jsdoc comment */ /*** another jsDocComment*/ +/// Triple slash comment +/// Triple slash comment 2 +function jsDocMixedComments5() { +} +jsDocMixedComments5(); + +/*** another jsDocComment*/ +/// Triple slash comment 1 +/// Triple slash comment +/// Triple slash comment 2 +/** jsdoc comment */ +function jsDocMixedComments6() { +} +jsDocMixedComments6(); + +// This shoulnot be help comment +function noHelpComment1() { +} +noHelpComment1(); + +/* This shoulnot be help comment */ +function noHelpComment2() { +} +noHelpComment2(); + +function noHelpComment3() { +} +noHelpComment3(); +/** Adds two integers and returns the result + * @param {number} a first number + * @param b second number + */ +function sum(a: number, b: number) { + return a + b; +} +sum(10, 20); +/** This is multiplication function*/ +/** @param */ +/** @param a first number*/ +/** @param b */ +/** @param c { + @param d @anotherTag*/ +/** @param e LastParam @anotherTag*/ +function multiply(a: number, b: number, c?: number, d?, e?) { +} +/** fn f1 with number +* @param { string} b about b +*/ +function f1(a: number); +function f1(b: string); +/**@param opt optional parameter*/ +function f1(aOrb, opt?) { + return aOrb; +} +/** This is subtract function +@param { a +*@param { number | } b this is about b +@param { { () => string; } } c this is optional param c +@param { { () => string; } d this is optional param d +@param { { () => string; } } e this is optional param e +@param { { { () => string; } } f this is optional param f +*/ +function subtract(a: number, b: number, c?: () => string, d?: () => string, e?: () => string, f?: () => string) { +} +/** this is square function +@paramTag { number } a this is input number of paramTag +@param { number } a this is input number +@returnType { number } it is return type +*/ +function square(a: number) { + return a * a; +} +/** this is divide function +@param { number} a this is a +@paramTag { number } g this is optional param g +@param { number} b this is b +*/ +function divide(a: number, b: number) { +} +/** this is jsdoc style function with param tag as well as inline parameter help +*@param a it is first parameter +*@param c it is third parameter +*/ +function jsDocParamTest(/** this is inline comment for a */a: number, /** this is inline comment for b*/ b: number, c: number, d: number) { + return a + b + c + d; +} + +/**/ +class NoQuickInfoClass { +} + +//// [commentsCommentParsing.js] +/// This is simple /// comments +function simple() { +} +simple(); +/// multiLine /// Comments +/// This is example of multiline /// comments +/// Another multiLine +function multiLine() { +} +multiLine(); +/** this is eg of single line jsdoc style comment */ +function jsDocSingleLine() { +} +jsDocSingleLine(); +/** this is multiple line jsdoc stule comment +*New line1 +*New Line2*/ +function jsDocMultiLine() { +} +jsDocMultiLine(); +/** this is multiple line jsdoc stule comment +*New line1 +*New Line2*/ +/** Shoul mege this line as well +* and this too*/ /** Another this one too*/ +function jsDocMultiLineMerge() { +} +jsDocMultiLineMerge(); +/// Triple slash comment +/** jsdoc comment */ +function jsDocMixedComments1() { +} +jsDocMixedComments1(); +/// Triple slash comment +/** jsdoc comment */ /*** another jsDocComment*/ +function jsDocMixedComments2() { +} +jsDocMixedComments2(); +/** jsdoc comment */ /*** another jsDocComment*/ +/// Triple slash comment +function jsDocMixedComments3() { +} +jsDocMixedComments3(); +/** jsdoc comment */ /*** another jsDocComment*/ +/// Triple slash comment +/// Triple slash comment 2 +function jsDocMixedComments4() { +} +jsDocMixedComments4(); +/// Triple slash comment 1 +/** jsdoc comment */ /*** another jsDocComment*/ +/// Triple slash comment +/// Triple slash comment 2 +function jsDocMixedComments5() { +} +jsDocMixedComments5(); +/*** another jsDocComment*/ +/// Triple slash comment 1 +/// Triple slash comment +/// Triple slash comment 2 +/** jsdoc comment */ +function jsDocMixedComments6() { +} +jsDocMixedComments6(); +// This shoulnot be help comment +function noHelpComment1() { +} +noHelpComment1(); +/* This shoulnot be help comment */ +function noHelpComment2() { +} +noHelpComment2(); +function noHelpComment3() { +} +noHelpComment3(); +/** Adds two integers and returns the result + * @param {number} a first number + * @param b second number + */ +function sum(a, b) { + return a + b; +} +sum(10, 20); +/** This is multiplication function*/ +/** @param */ +/** @param a first number*/ +/** @param b */ +/** @param c { + @param d @anotherTag*/ +/** @param e LastParam @anotherTag*/ +function multiply(a, b, c, d, e) { +} +/**@param opt optional parameter*/ +function f1(aOrb, opt) { + return aOrb; +} +/** This is subtract function +@param { a +*@param { number | } b this is about b +@param { { () => string; } } c this is optional param c +@param { { () => string; } d this is optional param d +@param { { () => string; } } e this is optional param e +@param { { { () => string; } } f this is optional param f +*/ +function subtract(a, b, c, d, e, f) { +} +/** this is square function +@paramTag { number } a this is input number of paramTag +@param { number } a this is input number +@returnType { number } it is return type +*/ +function square(a) { + return a * a; +} +/** this is divide function +@param { number} a this is a +@paramTag { number } g this is optional param g +@param { number} b this is b +*/ +function divide(a, b) { +} +/** this is jsdoc style function with param tag as well as inline parameter help +*@param a it is first parameter +*@param c it is third parameter +*/ +function jsDocParamTest(/** this is inline comment for a */ a, /** this is inline comment for b*/ b, c, d) { + return a + b + c + d; +} +/**/ +class NoQuickInfoClass { +} + + +//// [commentsCommentParsing.d.ts] +declare function simple(): void; +declare function multiLine(): void; +/** this is eg of single line jsdoc style comment */ +declare function jsDocSingleLine(): void; +/** this is multiple line jsdoc stule comment +*New line1 +*New Line2*/ +declare function jsDocMultiLine(): void; +/** this is multiple line jsdoc stule comment +*New line1 +*New Line2*/ +/** Shoul mege this line as well +* and this too*/ /** Another this one too*/ +declare function jsDocMultiLineMerge(): void; +/** jsdoc comment */ +declare function jsDocMixedComments1(): void; +/** jsdoc comment */ /*** another jsDocComment*/ +declare function jsDocMixedComments2(): void; +/** jsdoc comment */ /*** another jsDocComment*/ +declare function jsDocMixedComments3(): void; +/** jsdoc comment */ /*** another jsDocComment*/ +declare function jsDocMixedComments4(): void; +/** jsdoc comment */ /*** another jsDocComment*/ +declare function jsDocMixedComments5(): void; +/*** another jsDocComment*/ +/** jsdoc comment */ +declare function jsDocMixedComments6(): void; +declare function noHelpComment1(): void; +declare function noHelpComment2(): void; +declare function noHelpComment3(): void; +/** Adds two integers and returns the result + * @param {number} a first number + * @param b second number + */ +declare function sum(a: number, b: number): number; +/** This is multiplication function*/ +/** @param */ +/** @param a first number*/ +/** @param b */ +/** @param c { + @param d @anotherTag*/ +/** @param e LastParam @anotherTag*/ +declare function multiply(a: number, b: number, c?: number, d?: any, e?: any): void; +/** fn f1 with number +* @param { string} b about b +*/ +declare function f1(a: number): any; +declare function f1(b: string): any; +/** This is subtract function +@param { a +*@param { number | } b this is about b +@param { { () => string; } } c this is optional param c +@param { { () => string; } d this is optional param d +@param { { () => string; } } e this is optional param e +@param { { { () => string; } } f this is optional param f +*/ +declare function subtract(a: number, b: number, c?: () => string, d?: () => string, e?: () => string, f?: () => string): void; +/** this is square function +@paramTag { number } a this is input number of paramTag +@param { number } a this is input number +@returnType { number } it is return type +*/ +declare function square(a: number): number; +/** this is divide function +@param { number} a this is a +@paramTag { number } g this is optional param g +@param { number} b this is b +*/ +declare function divide(a: number, b: number): void; +/** this is jsdoc style function with param tag as well as inline parameter help +*@param a it is first parameter +*@param c it is third parameter +*/ +declare function jsDocParamTest(/** this is inline comment for a */ a: number, /** this is inline comment for b*/ b: number, c: number, d: number): number; +declare class NoQuickInfoClass { +} diff --git a/tests/baselines/reference/commentsCommentParsing.symbols b/tests/baselines/reference/commentsCommentParsing(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/commentsCommentParsing.symbols rename to tests/baselines/reference/commentsCommentParsing(target=es2015).symbols diff --git a/tests/baselines/reference/commentsCommentParsing.types b/tests/baselines/reference/commentsCommentParsing(target=es2015).types similarity index 100% rename from tests/baselines/reference/commentsCommentParsing.types rename to tests/baselines/reference/commentsCommentParsing(target=es2015).types diff --git a/tests/baselines/reference/commentsCommentParsing.js b/tests/baselines/reference/commentsCommentParsing(target=es5).js similarity index 100% rename from tests/baselines/reference/commentsCommentParsing.js rename to tests/baselines/reference/commentsCommentParsing(target=es5).js diff --git a/tests/baselines/reference/commentsCommentParsing(target=es5).symbols b/tests/baselines/reference/commentsCommentParsing(target=es5).symbols new file mode 100644 index 0000000000000..f94664c82b60d --- /dev/null +++ b/tests/baselines/reference/commentsCommentParsing(target=es5).symbols @@ -0,0 +1,236 @@ +//// [tests/cases/compiler/commentsCommentParsing.ts] //// + +=== commentsCommentParsing.ts === +/// This is simple /// comments +function simple() { +>simple : Symbol(simple, Decl(commentsCommentParsing.ts, 0, 0)) +} + +simple(); +>simple : Symbol(simple, Decl(commentsCommentParsing.ts, 0, 0)) + +/// multiLine /// Comments +/// This is example of multiline /// comments +/// Another multiLine +function multiLine() { +>multiLine : Symbol(multiLine, Decl(commentsCommentParsing.ts, 4, 9)) +} +multiLine(); +>multiLine : Symbol(multiLine, Decl(commentsCommentParsing.ts, 4, 9)) + +/** this is eg of single line jsdoc style comment */ +function jsDocSingleLine() { +>jsDocSingleLine : Symbol(jsDocSingleLine, Decl(commentsCommentParsing.ts, 11, 12)) +} +jsDocSingleLine(); +>jsDocSingleLine : Symbol(jsDocSingleLine, Decl(commentsCommentParsing.ts, 11, 12)) + + +/** this is multiple line jsdoc stule comment +*New line1 +*New Line2*/ +function jsDocMultiLine() { +>jsDocMultiLine : Symbol(jsDocMultiLine, Decl(commentsCommentParsing.ts, 16, 18)) +} +jsDocMultiLine(); +>jsDocMultiLine : Symbol(jsDocMultiLine, Decl(commentsCommentParsing.ts, 16, 18)) + +/** this is multiple line jsdoc stule comment +*New line1 +*New Line2*/ +/** Shoul mege this line as well +* and this too*/ /** Another this one too*/ +function jsDocMultiLineMerge() { +>jsDocMultiLineMerge : Symbol(jsDocMultiLineMerge, Decl(commentsCommentParsing.ts, 24, 17)) +} +jsDocMultiLineMerge(); +>jsDocMultiLineMerge : Symbol(jsDocMultiLineMerge, Decl(commentsCommentParsing.ts, 24, 17)) + + +/// Triple slash comment +/** jsdoc comment */ +function jsDocMixedComments1() { +>jsDocMixedComments1 : Symbol(jsDocMixedComments1, Decl(commentsCommentParsing.ts, 33, 22)) +} +jsDocMixedComments1(); +>jsDocMixedComments1 : Symbol(jsDocMixedComments1, Decl(commentsCommentParsing.ts, 33, 22)) + +/// Triple slash comment +/** jsdoc comment */ /*** another jsDocComment*/ +function jsDocMixedComments2() { +>jsDocMixedComments2 : Symbol(jsDocMixedComments2, Decl(commentsCommentParsing.ts, 40, 22)) +} +jsDocMixedComments2(); +>jsDocMixedComments2 : Symbol(jsDocMixedComments2, Decl(commentsCommentParsing.ts, 40, 22)) + +/** jsdoc comment */ /*** another jsDocComment*/ +/// Triple slash comment +function jsDocMixedComments3() { +>jsDocMixedComments3 : Symbol(jsDocMixedComments3, Decl(commentsCommentParsing.ts, 46, 22)) +} +jsDocMixedComments3(); +>jsDocMixedComments3 : Symbol(jsDocMixedComments3, Decl(commentsCommentParsing.ts, 46, 22)) + +/** jsdoc comment */ /*** another jsDocComment*/ +/// Triple slash comment +/// Triple slash comment 2 +function jsDocMixedComments4() { +>jsDocMixedComments4 : Symbol(jsDocMixedComments4, Decl(commentsCommentParsing.ts, 52, 22)) +} +jsDocMixedComments4(); +>jsDocMixedComments4 : Symbol(jsDocMixedComments4, Decl(commentsCommentParsing.ts, 52, 22)) + +/// Triple slash comment 1 +/** jsdoc comment */ /*** another jsDocComment*/ +/// Triple slash comment +/// Triple slash comment 2 +function jsDocMixedComments5() { +>jsDocMixedComments5 : Symbol(jsDocMixedComments5, Decl(commentsCommentParsing.ts, 59, 22)) +} +jsDocMixedComments5(); +>jsDocMixedComments5 : Symbol(jsDocMixedComments5, Decl(commentsCommentParsing.ts, 59, 22)) + +/*** another jsDocComment*/ +/// Triple slash comment 1 +/// Triple slash comment +/// Triple slash comment 2 +/** jsdoc comment */ +function jsDocMixedComments6() { +>jsDocMixedComments6 : Symbol(jsDocMixedComments6, Decl(commentsCommentParsing.ts, 67, 22)) +} +jsDocMixedComments6(); +>jsDocMixedComments6 : Symbol(jsDocMixedComments6, Decl(commentsCommentParsing.ts, 67, 22)) + +// This shoulnot be help comment +function noHelpComment1() { +>noHelpComment1 : Symbol(noHelpComment1, Decl(commentsCommentParsing.ts, 76, 22)) +} +noHelpComment1(); +>noHelpComment1 : Symbol(noHelpComment1, Decl(commentsCommentParsing.ts, 76, 22)) + +/* This shoulnot be help comment */ +function noHelpComment2() { +>noHelpComment2 : Symbol(noHelpComment2, Decl(commentsCommentParsing.ts, 81, 17)) +} +noHelpComment2(); +>noHelpComment2 : Symbol(noHelpComment2, Decl(commentsCommentParsing.ts, 81, 17)) + +function noHelpComment3() { +>noHelpComment3 : Symbol(noHelpComment3, Decl(commentsCommentParsing.ts, 86, 17)) +} +noHelpComment3(); +>noHelpComment3 : Symbol(noHelpComment3, Decl(commentsCommentParsing.ts, 86, 17)) + +/** Adds two integers and returns the result + * @param {number} a first number + * @param b second number + */ +function sum(a: number, b: number) { +>sum : Symbol(sum, Decl(commentsCommentParsing.ts, 90, 17)) +>a : Symbol(a, Decl(commentsCommentParsing.ts, 95, 13)) +>b : Symbol(b, Decl(commentsCommentParsing.ts, 95, 23)) + + return a + b; +>a : Symbol(a, Decl(commentsCommentParsing.ts, 95, 13)) +>b : Symbol(b, Decl(commentsCommentParsing.ts, 95, 23)) +} +sum(10, 20); +>sum : Symbol(sum, Decl(commentsCommentParsing.ts, 90, 17)) + +/** This is multiplication function*/ +/** @param */ +/** @param a first number*/ +/** @param b */ +/** @param c { + @param d @anotherTag*/ +/** @param e LastParam @anotherTag*/ +function multiply(a: number, b: number, c?: number, d?, e?) { +>multiply : Symbol(multiply, Decl(commentsCommentParsing.ts, 98, 12)) +>a : Symbol(a, Decl(commentsCommentParsing.ts, 106, 18)) +>b : Symbol(b, Decl(commentsCommentParsing.ts, 106, 28)) +>c : Symbol(c, Decl(commentsCommentParsing.ts, 106, 39)) +>d : Symbol(d, Decl(commentsCommentParsing.ts, 106, 51)) +>e : Symbol(e, Decl(commentsCommentParsing.ts, 106, 55)) +} +/** fn f1 with number +* @param { string} b about b +*/ +function f1(a: number); +>f1 : Symbol(f1, Decl(commentsCommentParsing.ts, 107, 1), Decl(commentsCommentParsing.ts, 111, 23), Decl(commentsCommentParsing.ts, 112, 23)) +>a : Symbol(a, Decl(commentsCommentParsing.ts, 111, 12)) + +function f1(b: string); +>f1 : Symbol(f1, Decl(commentsCommentParsing.ts, 107, 1), Decl(commentsCommentParsing.ts, 111, 23), Decl(commentsCommentParsing.ts, 112, 23)) +>b : Symbol(b, Decl(commentsCommentParsing.ts, 112, 12)) + +/**@param opt optional parameter*/ +function f1(aOrb, opt?) { +>f1 : Symbol(f1, Decl(commentsCommentParsing.ts, 107, 1), Decl(commentsCommentParsing.ts, 111, 23), Decl(commentsCommentParsing.ts, 112, 23)) +>aOrb : Symbol(aOrb, Decl(commentsCommentParsing.ts, 114, 12)) +>opt : Symbol(opt, Decl(commentsCommentParsing.ts, 114, 17)) + + return aOrb; +>aOrb : Symbol(aOrb, Decl(commentsCommentParsing.ts, 114, 12)) +} +/** This is subtract function +@param { a +*@param { number | } b this is about b +@param { { () => string; } } c this is optional param c +@param { { () => string; } d this is optional param d +@param { { () => string; } } e this is optional param e +@param { { { () => string; } } f this is optional param f +*/ +function subtract(a: number, b: number, c?: () => string, d?: () => string, e?: () => string, f?: () => string) { +>subtract : Symbol(subtract, Decl(commentsCommentParsing.ts, 116, 1)) +>a : Symbol(a, Decl(commentsCommentParsing.ts, 125, 18)) +>b : Symbol(b, Decl(commentsCommentParsing.ts, 125, 28)) +>c : Symbol(c, Decl(commentsCommentParsing.ts, 125, 39)) +>d : Symbol(d, Decl(commentsCommentParsing.ts, 125, 57)) +>e : Symbol(e, Decl(commentsCommentParsing.ts, 125, 75)) +>f : Symbol(f, Decl(commentsCommentParsing.ts, 125, 93)) +} +/** this is square function +@paramTag { number } a this is input number of paramTag +@param { number } a this is input number +@returnType { number } it is return type +*/ +function square(a: number) { +>square : Symbol(square, Decl(commentsCommentParsing.ts, 126, 1)) +>a : Symbol(a, Decl(commentsCommentParsing.ts, 132, 16)) + + return a * a; +>a : Symbol(a, Decl(commentsCommentParsing.ts, 132, 16)) +>a : Symbol(a, Decl(commentsCommentParsing.ts, 132, 16)) +} +/** this is divide function +@param { number} a this is a +@paramTag { number } g this is optional param g +@param { number} b this is b +*/ +function divide(a: number, b: number) { +>divide : Symbol(divide, Decl(commentsCommentParsing.ts, 134, 1)) +>a : Symbol(a, Decl(commentsCommentParsing.ts, 140, 16)) +>b : Symbol(b, Decl(commentsCommentParsing.ts, 140, 26)) +} +/** this is jsdoc style function with param tag as well as inline parameter help +*@param a it is first parameter +*@param c it is third parameter +*/ +function jsDocParamTest(/** this is inline comment for a */a: number, /** this is inline comment for b*/ b: number, c: number, d: number) { +>jsDocParamTest : Symbol(jsDocParamTest, Decl(commentsCommentParsing.ts, 141, 1)) +>a : Symbol(a, Decl(commentsCommentParsing.ts, 146, 24)) +>b : Symbol(b, Decl(commentsCommentParsing.ts, 146, 69)) +>c : Symbol(c, Decl(commentsCommentParsing.ts, 146, 115)) +>d : Symbol(d, Decl(commentsCommentParsing.ts, 146, 126)) + + return a + b + c + d; +>a : Symbol(a, Decl(commentsCommentParsing.ts, 146, 24)) +>b : Symbol(b, Decl(commentsCommentParsing.ts, 146, 69)) +>c : Symbol(c, Decl(commentsCommentParsing.ts, 146, 115)) +>d : Symbol(d, Decl(commentsCommentParsing.ts, 146, 126)) +} + +/**/ +class NoQuickInfoClass { +>NoQuickInfoClass : Symbol(NoQuickInfoClass, Decl(commentsCommentParsing.ts, 148, 1)) +} diff --git a/tests/baselines/reference/commentsCommentParsing(target=es5).types b/tests/baselines/reference/commentsCommentParsing(target=es5).types new file mode 100644 index 0000000000000..38ec3cb4e8d91 --- /dev/null +++ b/tests/baselines/reference/commentsCommentParsing(target=es5).types @@ -0,0 +1,347 @@ +//// [tests/cases/compiler/commentsCommentParsing.ts] //// + +=== commentsCommentParsing.ts === +/// This is simple /// comments +function simple() { +>simple : () => void +> : ^^^^^^^^^^ +} + +simple(); +>simple() : void +> : ^^^^ +>simple : () => void +> : ^^^^^^^^^^ + +/// multiLine /// Comments +/// This is example of multiline /// comments +/// Another multiLine +function multiLine() { +>multiLine : () => void +> : ^^^^^^^^^^ +} +multiLine(); +>multiLine() : void +> : ^^^^ +>multiLine : () => void +> : ^^^^^^^^^^ + +/** this is eg of single line jsdoc style comment */ +function jsDocSingleLine() { +>jsDocSingleLine : () => void +> : ^^^^^^^^^^ +} +jsDocSingleLine(); +>jsDocSingleLine() : void +> : ^^^^ +>jsDocSingleLine : () => void +> : ^^^^^^^^^^ + + +/** this is multiple line jsdoc stule comment +*New line1 +*New Line2*/ +function jsDocMultiLine() { +>jsDocMultiLine : () => void +> : ^^^^^^^^^^ +} +jsDocMultiLine(); +>jsDocMultiLine() : void +> : ^^^^ +>jsDocMultiLine : () => void +> : ^^^^^^^^^^ + +/** this is multiple line jsdoc stule comment +*New line1 +*New Line2*/ +/** Shoul mege this line as well +* and this too*/ /** Another this one too*/ +function jsDocMultiLineMerge() { +>jsDocMultiLineMerge : () => void +> : ^^^^^^^^^^ +} +jsDocMultiLineMerge(); +>jsDocMultiLineMerge() : void +> : ^^^^ +>jsDocMultiLineMerge : () => void +> : ^^^^^^^^^^ + + +/// Triple slash comment +/** jsdoc comment */ +function jsDocMixedComments1() { +>jsDocMixedComments1 : () => void +> : ^^^^^^^^^^ +} +jsDocMixedComments1(); +>jsDocMixedComments1() : void +> : ^^^^ +>jsDocMixedComments1 : () => void +> : ^^^^^^^^^^ + +/// Triple slash comment +/** jsdoc comment */ /*** another jsDocComment*/ +function jsDocMixedComments2() { +>jsDocMixedComments2 : () => void +> : ^^^^^^^^^^ +} +jsDocMixedComments2(); +>jsDocMixedComments2() : void +> : ^^^^ +>jsDocMixedComments2 : () => void +> : ^^^^^^^^^^ + +/** jsdoc comment */ /*** another jsDocComment*/ +/// Triple slash comment +function jsDocMixedComments3() { +>jsDocMixedComments3 : () => void +> : ^^^^^^^^^^ +} +jsDocMixedComments3(); +>jsDocMixedComments3() : void +> : ^^^^ +>jsDocMixedComments3 : () => void +> : ^^^^^^^^^^ + +/** jsdoc comment */ /*** another jsDocComment*/ +/// Triple slash comment +/// Triple slash comment 2 +function jsDocMixedComments4() { +>jsDocMixedComments4 : () => void +> : ^^^^^^^^^^ +} +jsDocMixedComments4(); +>jsDocMixedComments4() : void +> : ^^^^ +>jsDocMixedComments4 : () => void +> : ^^^^^^^^^^ + +/// Triple slash comment 1 +/** jsdoc comment */ /*** another jsDocComment*/ +/// Triple slash comment +/// Triple slash comment 2 +function jsDocMixedComments5() { +>jsDocMixedComments5 : () => void +> : ^^^^^^^^^^ +} +jsDocMixedComments5(); +>jsDocMixedComments5() : void +> : ^^^^ +>jsDocMixedComments5 : () => void +> : ^^^^^^^^^^ + +/*** another jsDocComment*/ +/// Triple slash comment 1 +/// Triple slash comment +/// Triple slash comment 2 +/** jsdoc comment */ +function jsDocMixedComments6() { +>jsDocMixedComments6 : () => void +> : ^^^^^^^^^^ +} +jsDocMixedComments6(); +>jsDocMixedComments6() : void +> : ^^^^ +>jsDocMixedComments6 : () => void +> : ^^^^^^^^^^ + +// This shoulnot be help comment +function noHelpComment1() { +>noHelpComment1 : () => void +> : ^^^^^^^^^^ +} +noHelpComment1(); +>noHelpComment1() : void +> : ^^^^ +>noHelpComment1 : () => void +> : ^^^^^^^^^^ + +/* This shoulnot be help comment */ +function noHelpComment2() { +>noHelpComment2 : () => void +> : ^^^^^^^^^^ +} +noHelpComment2(); +>noHelpComment2() : void +> : ^^^^ +>noHelpComment2 : () => void +> : ^^^^^^^^^^ + +function noHelpComment3() { +>noHelpComment3 : () => void +> : ^^^^^^^^^^ +} +noHelpComment3(); +>noHelpComment3() : void +> : ^^^^ +>noHelpComment3 : () => void +> : ^^^^^^^^^^ + +/** Adds two integers and returns the result + * @param {number} a first number + * @param b second number + */ +function sum(a: number, b: number) { +>sum : (a: number, b: number) => number +> : ^ ^^ ^^ ^^ ^^^^^^^^^^^ +>a : number +> : ^^^^^^ +>b : number +> : ^^^^^^ + + return a + b; +>a + b : number +> : ^^^^^^ +>a : number +> : ^^^^^^ +>b : number +> : ^^^^^^ +} +sum(10, 20); +>sum(10, 20) : number +> : ^^^^^^ +>sum : (a: number, b: number) => number +> : ^ ^^ ^^ ^^ ^^^^^^^^^^^ +>10 : 10 +> : ^^ +>20 : 20 +> : ^^ + +/** This is multiplication function*/ +/** @param */ +/** @param a first number*/ +/** @param b */ +/** @param c { + @param d @anotherTag*/ +/** @param e LastParam @anotherTag*/ +function multiply(a: number, b: number, c?: number, d?, e?) { +>multiply : (a: number, b: number, c?: number, d?: any, e?: any) => void +> : ^ ^^ ^^ ^^ ^^ ^^^ ^^ ^^^^^^^^ ^^^^^^^^^^^^^^^ +>a : number +> : ^^^^^^ +>b : number +> : ^^^^^^ +>c : number +> : ^^^^^^ +>d : any +>e : any +} +/** fn f1 with number +* @param { string} b about b +*/ +function f1(a: number); +>f1 : { (a: number): any; (b: string): any; } +> : ^^^ ^^ ^^^^^^^^^ ^^ ^^^^^^^^^ +>a : number +> : ^^^^^^ + +function f1(b: string); +>f1 : { (a: number): any; (b: string): any; } +> : ^^^ ^^ ^^^^^^^^^ ^^ ^^^^^^^^^ +>b : string +> : ^^^^^^ + +/**@param opt optional parameter*/ +function f1(aOrb, opt?) { +>f1 : { (a: number): any; (b: string): any; } +> : ^^^ ^^ ^^^^^^^^^ ^^ ^^^^^^^^^ +>aOrb : any +>opt : any + + return aOrb; +>aOrb : any +} +/** This is subtract function +@param { a +*@param { number | } b this is about b +@param { { () => string; } } c this is optional param c +@param { { () => string; } d this is optional param d +@param { { () => string; } } e this is optional param e +@param { { { () => string; } } f this is optional param f +*/ +function subtract(a: number, b: number, c?: () => string, d?: () => string, e?: () => string, f?: () => string) { +>subtract : (a: number, b: number, c?: () => string, d?: () => string, e?: () => string, f?: () => string) => void +> : ^ ^^ ^^ ^^ ^^ ^^^ ^^ ^^^ ^^ ^^^ ^^ ^^^ ^^^^^^^^^ +>a : number +> : ^^^^^^ +>b : number +> : ^^^^^^ +>c : () => string +> : ^^^^^^ +>d : () => string +> : ^^^^^^ +>e : () => string +> : ^^^^^^ +>f : () => string +> : ^^^^^^ +} +/** this is square function +@paramTag { number } a this is input number of paramTag +@param { number } a this is input number +@returnType { number } it is return type +*/ +function square(a: number) { +>square : (a: number) => number +> : ^ ^^ ^^^^^^^^^^^ +>a : number +> : ^^^^^^ + + return a * a; +>a * a : number +> : ^^^^^^ +>a : number +> : ^^^^^^ +>a : number +> : ^^^^^^ +} +/** this is divide function +@param { number} a this is a +@paramTag { number } g this is optional param g +@param { number} b this is b +*/ +function divide(a: number, b: number) { +>divide : (a: number, b: number) => void +> : ^ ^^ ^^ ^^ ^^^^^^^^^ +>a : number +> : ^^^^^^ +>b : number +> : ^^^^^^ +} +/** this is jsdoc style function with param tag as well as inline parameter help +*@param a it is first parameter +*@param c it is third parameter +*/ +function jsDocParamTest(/** this is inline comment for a */a: number, /** this is inline comment for b*/ b: number, c: number, d: number) { +>jsDocParamTest : (a: number, b: number, c: number, d: number) => number +> : ^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^^^^^^^^^ +>a : number +> : ^^^^^^ +>b : number +> : ^^^^^^ +>c : number +> : ^^^^^^ +>d : number +> : ^^^^^^ + + return a + b + c + d; +>a + b + c + d : number +> : ^^^^^^ +>a + b + c : number +> : ^^^^^^ +>a + b : number +> : ^^^^^^ +>a : number +> : ^^^^^^ +>b : number +> : ^^^^^^ +>c : number +> : ^^^^^^ +>d : number +> : ^^^^^^ +} + +/**/ +class NoQuickInfoClass { +>NoQuickInfoClass : NoQuickInfoClass +> : ^^^^^^^^^^^^^^^^ +} diff --git a/tests/baselines/reference/commentsDottedModuleName.errors.txt b/tests/baselines/reference/commentsDottedModuleName(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/commentsDottedModuleName.errors.txt rename to tests/baselines/reference/commentsDottedModuleName(target=es2015).errors.txt diff --git a/tests/baselines/reference/commentsDottedModuleName(target=es2015).js b/tests/baselines/reference/commentsDottedModuleName(target=es2015).js new file mode 100644 index 0000000000000..4014d6af1254b --- /dev/null +++ b/tests/baselines/reference/commentsDottedModuleName(target=es2015).js @@ -0,0 +1,35 @@ +//// [tests/cases/compiler/commentsDottedModuleName.ts] //// + +//// [commentsDottedModuleName.ts] +/** this is multi declare module*/ +export namespace outerModule.InnerModule { + /// class b comment + export class b { + } +} + +//// [commentsDottedModuleName.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.outerModule = void 0; + /** this is multi declare module*/ + var outerModule; + (function (outerModule) { + var InnerModule; + (function (InnerModule) { + /// class b comment + class b { + } + InnerModule.b = b; + })(InnerModule = outerModule.InnerModule || (outerModule.InnerModule = {})); + })(outerModule || (exports.outerModule = outerModule = {})); +}); + + +//// [commentsDottedModuleName.d.ts] +/** this is multi declare module*/ +export declare namespace outerModule.InnerModule { + class b { + } +} diff --git a/tests/baselines/reference/commentsDottedModuleName.symbols b/tests/baselines/reference/commentsDottedModuleName(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/commentsDottedModuleName.symbols rename to tests/baselines/reference/commentsDottedModuleName(target=es2015).symbols diff --git a/tests/baselines/reference/commentsDottedModuleName.types b/tests/baselines/reference/commentsDottedModuleName(target=es2015).types similarity index 100% rename from tests/baselines/reference/commentsDottedModuleName.types rename to tests/baselines/reference/commentsDottedModuleName(target=es2015).types diff --git a/tests/baselines/reference/commentsDottedModuleName(target=es5).errors.txt b/tests/baselines/reference/commentsDottedModuleName(target=es5).errors.txt new file mode 100644 index 0000000000000..4893cf17c42f3 --- /dev/null +++ b/tests/baselines/reference/commentsDottedModuleName(target=es5).errors.txt @@ -0,0 +1,11 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== commentsDottedModuleName.ts (0 errors) ==== + /** this is multi declare module*/ + export namespace outerModule.InnerModule { + /// class b comment + export class b { + } + } \ No newline at end of file diff --git a/tests/baselines/reference/commentsDottedModuleName.js b/tests/baselines/reference/commentsDottedModuleName(target=es5).js similarity index 100% rename from tests/baselines/reference/commentsDottedModuleName.js rename to tests/baselines/reference/commentsDottedModuleName(target=es5).js diff --git a/tests/baselines/reference/commentsDottedModuleName(target=es5).symbols b/tests/baselines/reference/commentsDottedModuleName(target=es5).symbols new file mode 100644 index 0000000000000..f30db4fce00ce --- /dev/null +++ b/tests/baselines/reference/commentsDottedModuleName(target=es5).symbols @@ -0,0 +1,13 @@ +//// [tests/cases/compiler/commentsDottedModuleName.ts] //// + +=== commentsDottedModuleName.ts === +/** this is multi declare module*/ +export namespace outerModule.InnerModule { +>outerModule : Symbol(outerModule, Decl(commentsDottedModuleName.ts, 0, 0)) +>InnerModule : Symbol(InnerModule, Decl(commentsDottedModuleName.ts, 1, 29)) + + /// class b comment + export class b { +>b : Symbol(b, Decl(commentsDottedModuleName.ts, 1, 42)) + } +} diff --git a/tests/baselines/reference/commentsDottedModuleName(target=es5).types b/tests/baselines/reference/commentsDottedModuleName(target=es5).types new file mode 100644 index 0000000000000..315581a9f7c51 --- /dev/null +++ b/tests/baselines/reference/commentsDottedModuleName(target=es5).types @@ -0,0 +1,16 @@ +//// [tests/cases/compiler/commentsDottedModuleName.ts] //// + +=== commentsDottedModuleName.ts === +/** this is multi declare module*/ +export namespace outerModule.InnerModule { +>outerModule : typeof outerModule +> : ^^^^^^^^^^^^^^^^^^ +>InnerModule : typeof InnerModule +> : ^^^^^^^^^^^^^^^^^^ + + /// class b comment + export class b { +>b : b +> : ^ + } +} diff --git a/tests/baselines/reference/commentsEnums.js b/tests/baselines/reference/commentsEnums(target=es2015).js similarity index 100% rename from tests/baselines/reference/commentsEnums.js rename to tests/baselines/reference/commentsEnums(target=es2015).js diff --git a/tests/baselines/reference/commentsEnums.symbols b/tests/baselines/reference/commentsEnums(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/commentsEnums.symbols rename to tests/baselines/reference/commentsEnums(target=es2015).symbols diff --git a/tests/baselines/reference/commentsEnums.types b/tests/baselines/reference/commentsEnums(target=es2015).types similarity index 100% rename from tests/baselines/reference/commentsEnums.types rename to tests/baselines/reference/commentsEnums(target=es2015).types diff --git a/tests/baselines/reference/commentsEnums(target=es5).js b/tests/baselines/reference/commentsEnums(target=es5).js new file mode 100644 index 0000000000000..41e0c655b0230 --- /dev/null +++ b/tests/baselines/reference/commentsEnums(target=es5).js @@ -0,0 +1,37 @@ +//// [tests/cases/compiler/commentsEnums.ts] //// + +//// [commentsEnums.ts] +/** Enum of colors*/ +enum Colors { + /** Fancy name for 'blue'*/ + Cornflower /* blue */, + /** Fancy name for 'pink'*/ + FancyPink +} // trailing comment +var x = Colors.Cornflower; +x = Colors.FancyPink; + + + +//// [commentsEnums.js] +/** Enum of colors*/ +var Colors; +(function (Colors) { + /** Fancy name for 'blue'*/ + Colors[Colors["Cornflower"] = 0] = "Cornflower"; /* blue */ + /** Fancy name for 'pink'*/ + Colors[Colors["FancyPink"] = 1] = "FancyPink"; +})(Colors || (Colors = {})); // trailing comment +var x = Colors.Cornflower; +x = Colors.FancyPink; + + +//// [commentsEnums.d.ts] +/** Enum of colors*/ +declare enum Colors { + /** Fancy name for 'blue'*/ + Cornflower = 0, + /** Fancy name for 'pink'*/ + FancyPink = 1 +} +declare var x: Colors; diff --git a/tests/baselines/reference/commentsEnums(target=es5).symbols b/tests/baselines/reference/commentsEnums(target=es5).symbols new file mode 100644 index 0000000000000..f11c27da853b0 --- /dev/null +++ b/tests/baselines/reference/commentsEnums(target=es5).symbols @@ -0,0 +1,29 @@ +//// [tests/cases/compiler/commentsEnums.ts] //// + +=== commentsEnums.ts === +/** Enum of colors*/ +enum Colors { +>Colors : Symbol(Colors, Decl(commentsEnums.ts, 0, 0)) + + /** Fancy name for 'blue'*/ + Cornflower /* blue */, +>Cornflower : Symbol(Colors.Cornflower, Decl(commentsEnums.ts, 1, 13)) + + /** Fancy name for 'pink'*/ + FancyPink +>FancyPink : Symbol(Colors.FancyPink, Decl(commentsEnums.ts, 3, 26)) + +} // trailing comment +var x = Colors.Cornflower; +>x : Symbol(x, Decl(commentsEnums.ts, 7, 3)) +>Colors.Cornflower : Symbol(Colors.Cornflower, Decl(commentsEnums.ts, 1, 13)) +>Colors : Symbol(Colors, Decl(commentsEnums.ts, 0, 0)) +>Cornflower : Symbol(Colors.Cornflower, Decl(commentsEnums.ts, 1, 13)) + +x = Colors.FancyPink; +>x : Symbol(x, Decl(commentsEnums.ts, 7, 3)) +>Colors.FancyPink : Symbol(Colors.FancyPink, Decl(commentsEnums.ts, 3, 26)) +>Colors : Symbol(Colors, Decl(commentsEnums.ts, 0, 0)) +>FancyPink : Symbol(Colors.FancyPink, Decl(commentsEnums.ts, 3, 26)) + + diff --git a/tests/baselines/reference/commentsEnums(target=es5).types b/tests/baselines/reference/commentsEnums(target=es5).types new file mode 100644 index 0000000000000..c6141cb6e5d8e --- /dev/null +++ b/tests/baselines/reference/commentsEnums(target=es5).types @@ -0,0 +1,42 @@ +//// [tests/cases/compiler/commentsEnums.ts] //// + +=== commentsEnums.ts === +/** Enum of colors*/ +enum Colors { +>Colors : Colors +> : ^^^^^^ + + /** Fancy name for 'blue'*/ + Cornflower /* blue */, +>Cornflower : Colors.Cornflower +> : ^^^^^^^^^^^^^^^^^ + + /** Fancy name for 'pink'*/ + FancyPink +>FancyPink : Colors.FancyPink +> : ^^^^^^^^^^^^^^^^ + +} // trailing comment +var x = Colors.Cornflower; +>x : Colors +> : ^^^^^^ +>Colors.Cornflower : Colors.Cornflower +> : ^^^^^^^^^^^^^^^^^ +>Colors : typeof Colors +> : ^^^^^^^^^^^^^ +>Cornflower : Colors.Cornflower +> : ^^^^^^^^^^^^^^^^^ + +x = Colors.FancyPink; +>x = Colors.FancyPink : Colors.FancyPink +> : ^^^^^^^^^^^^^^^^ +>x : Colors +> : ^^^^^^ +>Colors.FancyPink : Colors.FancyPink +> : ^^^^^^^^^^^^^^^^ +>Colors : typeof Colors +> : ^^^^^^^^^^^^^ +>FancyPink : Colors.FancyPink +> : ^^^^^^^^^^^^^^^^ + + diff --git a/tests/baselines/reference/commentsExternalModules.errors.txt b/tests/baselines/reference/commentsExternalModules(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/commentsExternalModules.errors.txt rename to tests/baselines/reference/commentsExternalModules(target=es2015).errors.txt diff --git a/tests/baselines/reference/commentsExternalModules(target=es2015).js b/tests/baselines/reference/commentsExternalModules(target=es2015).js new file mode 100644 index 0000000000000..4c7f5d15db999 --- /dev/null +++ b/tests/baselines/reference/commentsExternalModules(target=es2015).js @@ -0,0 +1,167 @@ +//// [tests/cases/compiler/commentsExternalModules.ts] //// + +//// [commentsExternalModules_0.ts] +/** Module comment*/ +export namespace m1 { + /** b's comment*/ + export var b: number; + /** foo's comment*/ + function foo() { + return b; + } + /** m2 comments*/ + export namespace m2 { + /** class comment;*/ + export class c { + }; + /** i*/ + export var i = new c(); + } + /** exported function*/ + export function fooExport() { + return foo(); + } +} +m1.fooExport(); +var myvar = new m1.m2.c(); + +/** Module comment */ +export namespace m4 { + /** b's comment */ + export var b: number; + /** foo's comment + */ + function foo() { + return b; + } + /** m2 comments + */ + export namespace m2 { + /** class comment; */ + export class c { + }; + /** i */ + export var i = new c(); + } + /** exported function */ + export function fooExport() { + return foo(); + } +} +m4.fooExport(); +var myvar2 = new m4.m2.c(); + +//// [commentsExternalModules_1.ts] +/**This is on import declaration*/ +import extMod = require("commentsExternalModules_0"); // trailing comment1 +extMod.m1.fooExport(); +var newVar = new extMod.m1.m2.c(); +extMod.m4.fooExport(); +var newVar2 = new extMod.m4.m2.c(); + + +//// [commentsExternalModules_0.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.m4 = exports.m1 = void 0; + /** Module comment*/ + var m1; + (function (m1) { + /** foo's comment*/ + function foo() { + return m1.b; + } + /** m2 comments*/ + let m2; + (function (m2) { + /** class comment;*/ + class c { + } + m2.c = c; + ; + /** i*/ + m2.i = new c(); + })(m2 = m1.m2 || (m1.m2 = {})); + /** exported function*/ + function fooExport() { + return foo(); + } + m1.fooExport = fooExport; + })(m1 || (exports.m1 = m1 = {})); + m1.fooExport(); + var myvar = new m1.m2.c(); + /** Module comment */ + var m4; + (function (m4) { + /** foo's comment + */ + function foo() { + return m4.b; + } + /** m2 comments + */ + let m2; + (function (m2) { + /** class comment; */ + class c { + } + m2.c = c; + ; + /** i */ + m2.i = new c(); + })(m2 = m4.m2 || (m4.m2 = {})); + /** exported function */ + function fooExport() { + return foo(); + } + m4.fooExport = fooExport; + })(m4 || (exports.m4 = m4 = {})); + m4.fooExport(); + var myvar2 = new m4.m2.c(); +}); +//// [commentsExternalModules_1.js] +define(["require", "exports", "commentsExternalModules_0"], function (require, exports, extMod) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + extMod.m1.fooExport(); + var newVar = new extMod.m1.m2.c(); + extMod.m4.fooExport(); + var newVar2 = new extMod.m4.m2.c(); +}); + + +//// [commentsExternalModules_0.d.ts] +/** Module comment*/ +export declare namespace m1 { + /** b's comment*/ + var b: number; + /** m2 comments*/ + namespace m2 { + /** class comment;*/ + class c { + } + /** i*/ + var i: c; + } + /** exported function*/ + function fooExport(): number; +} +/** Module comment */ +export declare namespace m4 { + /** b's comment */ + var b: number; + /** m2 comments + */ + namespace m2 { + /** class comment; */ + class c { + } + /** i */ + var i: c; + } + /** exported function */ + function fooExport(): number; +} +//// [commentsExternalModules_1.d.ts] +export {}; diff --git a/tests/baselines/reference/commentsExternalModules.symbols b/tests/baselines/reference/commentsExternalModules(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/commentsExternalModules.symbols rename to tests/baselines/reference/commentsExternalModules(target=es2015).symbols diff --git a/tests/baselines/reference/commentsExternalModules.types b/tests/baselines/reference/commentsExternalModules(target=es2015).types similarity index 100% rename from tests/baselines/reference/commentsExternalModules.types rename to tests/baselines/reference/commentsExternalModules(target=es2015).types diff --git a/tests/baselines/reference/commentsExternalModules(target=es5).errors.txt b/tests/baselines/reference/commentsExternalModules(target=es5).errors.txt new file mode 100644 index 0000000000000..1e2d583d84131 --- /dev/null +++ b/tests/baselines/reference/commentsExternalModules(target=es5).errors.txt @@ -0,0 +1,63 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== commentsExternalModules_1.ts (0 errors) ==== + /**This is on import declaration*/ + import extMod = require("commentsExternalModules_0"); // trailing comment1 + extMod.m1.fooExport(); + var newVar = new extMod.m1.m2.c(); + extMod.m4.fooExport(); + var newVar2 = new extMod.m4.m2.c(); + +==== commentsExternalModules_0.ts (0 errors) ==== + /** Module comment*/ + export namespace m1 { + /** b's comment*/ + export var b: number; + /** foo's comment*/ + function foo() { + return b; + } + /** m2 comments*/ + export namespace m2 { + /** class comment;*/ + export class c { + }; + /** i*/ + export var i = new c(); + } + /** exported function*/ + export function fooExport() { + return foo(); + } + } + m1.fooExport(); + var myvar = new m1.m2.c(); + + /** Module comment */ + export namespace m4 { + /** b's comment */ + export var b: number; + /** foo's comment + */ + function foo() { + return b; + } + /** m2 comments + */ + export namespace m2 { + /** class comment; */ + export class c { + }; + /** i */ + export var i = new c(); + } + /** exported function */ + export function fooExport() { + return foo(); + } + } + m4.fooExport(); + var myvar2 = new m4.m2.c(); + \ No newline at end of file diff --git a/tests/baselines/reference/commentsExternalModules.js b/tests/baselines/reference/commentsExternalModules(target=es5).js similarity index 100% rename from tests/baselines/reference/commentsExternalModules.js rename to tests/baselines/reference/commentsExternalModules(target=es5).js diff --git a/tests/baselines/reference/commentsExternalModules(target=es5).symbols b/tests/baselines/reference/commentsExternalModules(target=es5).symbols new file mode 100644 index 0000000000000..9d713399bc5f2 --- /dev/null +++ b/tests/baselines/reference/commentsExternalModules(target=es5).symbols @@ -0,0 +1,144 @@ +//// [tests/cases/compiler/commentsExternalModules.ts] //// + +=== commentsExternalModules_1.ts === +/**This is on import declaration*/ +import extMod = require("commentsExternalModules_0"); // trailing comment1 +>extMod : Symbol(extMod, Decl(commentsExternalModules_1.ts, 0, 0)) + +extMod.m1.fooExport(); +>extMod.m1.fooExport : Symbol(extMod.m1.fooExport, Decl(commentsExternalModules_0.ts, 15, 5)) +>extMod.m1 : Symbol(extMod.m1, Decl(commentsExternalModules_0.ts, 0, 0)) +>extMod : Symbol(extMod, Decl(commentsExternalModules_1.ts, 0, 0)) +>m1 : Symbol(extMod.m1, Decl(commentsExternalModules_0.ts, 0, 0)) +>fooExport : Symbol(extMod.m1.fooExport, Decl(commentsExternalModules_0.ts, 15, 5)) + +var newVar = new extMod.m1.m2.c(); +>newVar : Symbol(newVar, Decl(commentsExternalModules_1.ts, 3, 3)) +>extMod.m1.m2.c : Symbol(extMod.m1.m2.c, Decl(commentsExternalModules_0.ts, 9, 25)) +>extMod.m1.m2 : Symbol(extMod.m1.m2, Decl(commentsExternalModules_0.ts, 7, 5)) +>extMod.m1 : Symbol(extMod.m1, Decl(commentsExternalModules_0.ts, 0, 0)) +>extMod : Symbol(extMod, Decl(commentsExternalModules_1.ts, 0, 0)) +>m1 : Symbol(extMod.m1, Decl(commentsExternalModules_0.ts, 0, 0)) +>m2 : Symbol(extMod.m1.m2, Decl(commentsExternalModules_0.ts, 7, 5)) +>c : Symbol(extMod.m1.m2.c, Decl(commentsExternalModules_0.ts, 9, 25)) + +extMod.m4.fooExport(); +>extMod.m4.fooExport : Symbol(extMod.m4.fooExport, Decl(commentsExternalModules_0.ts, 41, 5)) +>extMod.m4 : Symbol(extMod.m4, Decl(commentsExternalModules_0.ts, 22, 26)) +>extMod : Symbol(extMod, Decl(commentsExternalModules_1.ts, 0, 0)) +>m4 : Symbol(extMod.m4, Decl(commentsExternalModules_0.ts, 22, 26)) +>fooExport : Symbol(extMod.m4.fooExport, Decl(commentsExternalModules_0.ts, 41, 5)) + +var newVar2 = new extMod.m4.m2.c(); +>newVar2 : Symbol(newVar2, Decl(commentsExternalModules_1.ts, 5, 3)) +>extMod.m4.m2.c : Symbol(extMod.m4.m2.c, Decl(commentsExternalModules_0.ts, 35, 25)) +>extMod.m4.m2 : Symbol(extMod.m4.m2, Decl(commentsExternalModules_0.ts, 32, 5)) +>extMod.m4 : Symbol(extMod.m4, Decl(commentsExternalModules_0.ts, 22, 26)) +>extMod : Symbol(extMod, Decl(commentsExternalModules_1.ts, 0, 0)) +>m4 : Symbol(extMod.m4, Decl(commentsExternalModules_0.ts, 22, 26)) +>m2 : Symbol(extMod.m4.m2, Decl(commentsExternalModules_0.ts, 32, 5)) +>c : Symbol(extMod.m4.m2.c, Decl(commentsExternalModules_0.ts, 35, 25)) + +=== commentsExternalModules_0.ts === +/** Module comment*/ +export namespace m1 { +>m1 : Symbol(m1, Decl(commentsExternalModules_0.ts, 0, 0)) + + /** b's comment*/ + export var b: number; +>b : Symbol(b, Decl(commentsExternalModules_0.ts, 3, 14)) + + /** foo's comment*/ + function foo() { +>foo : Symbol(foo, Decl(commentsExternalModules_0.ts, 3, 25)) + + return b; +>b : Symbol(b, Decl(commentsExternalModules_0.ts, 3, 14)) + } + /** m2 comments*/ + export namespace m2 { +>m2 : Symbol(m2, Decl(commentsExternalModules_0.ts, 7, 5)) + + /** class comment;*/ + export class c { +>c : Symbol(c, Decl(commentsExternalModules_0.ts, 9, 25)) + + }; + /** i*/ + export var i = new c(); +>i : Symbol(i, Decl(commentsExternalModules_0.ts, 14, 18)) +>c : Symbol(c, Decl(commentsExternalModules_0.ts, 9, 25)) + } + /** exported function*/ + export function fooExport() { +>fooExport : Symbol(fooExport, Decl(commentsExternalModules_0.ts, 15, 5)) + + return foo(); +>foo : Symbol(foo, Decl(commentsExternalModules_0.ts, 3, 25)) + } +} +m1.fooExport(); +>m1.fooExport : Symbol(m1.fooExport, Decl(commentsExternalModules_0.ts, 15, 5)) +>m1 : Symbol(m1, Decl(commentsExternalModules_0.ts, 0, 0)) +>fooExport : Symbol(m1.fooExport, Decl(commentsExternalModules_0.ts, 15, 5)) + +var myvar = new m1.m2.c(); +>myvar : Symbol(myvar, Decl(commentsExternalModules_0.ts, 22, 3)) +>m1.m2.c : Symbol(m1.m2.c, Decl(commentsExternalModules_0.ts, 9, 25)) +>m1.m2 : Symbol(m1.m2, Decl(commentsExternalModules_0.ts, 7, 5)) +>m1 : Symbol(m1, Decl(commentsExternalModules_0.ts, 0, 0)) +>m2 : Symbol(m1.m2, Decl(commentsExternalModules_0.ts, 7, 5)) +>c : Symbol(m1.m2.c, Decl(commentsExternalModules_0.ts, 9, 25)) + +/** Module comment */ +export namespace m4 { +>m4 : Symbol(m4, Decl(commentsExternalModules_0.ts, 22, 26)) + + /** b's comment */ + export var b: number; +>b : Symbol(b, Decl(commentsExternalModules_0.ts, 27, 14)) + + /** foo's comment + */ + function foo() { +>foo : Symbol(foo, Decl(commentsExternalModules_0.ts, 27, 25)) + + return b; +>b : Symbol(b, Decl(commentsExternalModules_0.ts, 27, 14)) + } + /** m2 comments + */ + export namespace m2 { +>m2 : Symbol(m2, Decl(commentsExternalModules_0.ts, 32, 5)) + + /** class comment; */ + export class c { +>c : Symbol(c, Decl(commentsExternalModules_0.ts, 35, 25)) + + }; + /** i */ + export var i = new c(); +>i : Symbol(i, Decl(commentsExternalModules_0.ts, 40, 18)) +>c : Symbol(c, Decl(commentsExternalModules_0.ts, 35, 25)) + } + /** exported function */ + export function fooExport() { +>fooExport : Symbol(fooExport, Decl(commentsExternalModules_0.ts, 41, 5)) + + return foo(); +>foo : Symbol(foo, Decl(commentsExternalModules_0.ts, 27, 25)) + } +} +m4.fooExport(); +>m4.fooExport : Symbol(m4.fooExport, Decl(commentsExternalModules_0.ts, 41, 5)) +>m4 : Symbol(m4, Decl(commentsExternalModules_0.ts, 22, 26)) +>fooExport : Symbol(m4.fooExport, Decl(commentsExternalModules_0.ts, 41, 5)) + +var myvar2 = new m4.m2.c(); +>myvar2 : Symbol(myvar2, Decl(commentsExternalModules_0.ts, 48, 3)) +>m4.m2.c : Symbol(m4.m2.c, Decl(commentsExternalModules_0.ts, 35, 25)) +>m4.m2 : Symbol(m4.m2, Decl(commentsExternalModules_0.ts, 32, 5)) +>m4 : Symbol(m4, Decl(commentsExternalModules_0.ts, 22, 26)) +>m2 : Symbol(m4.m2, Decl(commentsExternalModules_0.ts, 32, 5)) +>c : Symbol(m4.m2.c, Decl(commentsExternalModules_0.ts, 35, 25)) + diff --git a/tests/baselines/reference/commentsExternalModules(target=es5).types b/tests/baselines/reference/commentsExternalModules(target=es5).types new file mode 100644 index 0000000000000..d2d8d707d1180 --- /dev/null +++ b/tests/baselines/reference/commentsExternalModules(target=es5).types @@ -0,0 +1,233 @@ +//// [tests/cases/compiler/commentsExternalModules.ts] //// + +=== commentsExternalModules_1.ts === +/**This is on import declaration*/ +import extMod = require("commentsExternalModules_0"); // trailing comment1 +>extMod : typeof extMod +> : ^^^^^^^^^^^^^ + +extMod.m1.fooExport(); +>extMod.m1.fooExport() : number +> : ^^^^^^ +>extMod.m1.fooExport : () => number +> : ^^^^^^^^^^^^ +>extMod.m1 : typeof extMod.m1 +> : ^^^^^^^^^^^^^^^^ +>extMod : typeof extMod +> : ^^^^^^^^^^^^^ +>m1 : typeof extMod.m1 +> : ^^^^^^^^^^^^^^^^ +>fooExport : () => number +> : ^^^^^^^^^^^^ + +var newVar = new extMod.m1.m2.c(); +>newVar : extMod.m1.m2.c +> : ^^^^^^^^^^^^^^ +>new extMod.m1.m2.c() : extMod.m1.m2.c +> : ^^^^^^^^^^^^^^ +>extMod.m1.m2.c : typeof extMod.m1.m2.c +> : ^^^^^^^^^^^^^^^^^^^^^ +>extMod.m1.m2 : typeof extMod.m1.m2 +> : ^^^^^^^^^^^^^^^^^^^ +>extMod.m1 : typeof extMod.m1 +> : ^^^^^^^^^^^^^^^^ +>extMod : typeof extMod +> : ^^^^^^^^^^^^^ +>m1 : typeof extMod.m1 +> : ^^^^^^^^^^^^^^^^ +>m2 : typeof extMod.m1.m2 +> : ^^^^^^^^^^^^^^^^^^^ +>c : typeof extMod.m1.m2.c +> : ^^^^^^^^^^^^^^^^^^^^^ + +extMod.m4.fooExport(); +>extMod.m4.fooExport() : number +> : ^^^^^^ +>extMod.m4.fooExport : () => number +> : ^^^^^^^^^^^^ +>extMod.m4 : typeof extMod.m4 +> : ^^^^^^^^^^^^^^^^ +>extMod : typeof extMod +> : ^^^^^^^^^^^^^ +>m4 : typeof extMod.m4 +> : ^^^^^^^^^^^^^^^^ +>fooExport : () => number +> : ^^^^^^^^^^^^ + +var newVar2 = new extMod.m4.m2.c(); +>newVar2 : extMod.m4.m2.c +> : ^^^^^^^^^^^^^^ +>new extMod.m4.m2.c() : extMod.m4.m2.c +> : ^^^^^^^^^^^^^^ +>extMod.m4.m2.c : typeof extMod.m4.m2.c +> : ^^^^^^^^^^^^^^^^^^^^^ +>extMod.m4.m2 : typeof extMod.m4.m2 +> : ^^^^^^^^^^^^^^^^^^^ +>extMod.m4 : typeof extMod.m4 +> : ^^^^^^^^^^^^^^^^ +>extMod : typeof extMod +> : ^^^^^^^^^^^^^ +>m4 : typeof extMod.m4 +> : ^^^^^^^^^^^^^^^^ +>m2 : typeof extMod.m4.m2 +> : ^^^^^^^^^^^^^^^^^^^ +>c : typeof extMod.m4.m2.c +> : ^^^^^^^^^^^^^^^^^^^^^ + +=== commentsExternalModules_0.ts === +/** Module comment*/ +export namespace m1 { +>m1 : typeof m1 +> : ^^^^^^^^^ + + /** b's comment*/ + export var b: number; +>b : number +> : ^^^^^^ + + /** foo's comment*/ + function foo() { +>foo : () => number +> : ^^^^^^^^^^^^ + + return b; +>b : number +> : ^^^^^^ + } + /** m2 comments*/ + export namespace m2 { +>m2 : typeof m2 +> : ^^^^^^^^^ + + /** class comment;*/ + export class c { +>c : c +> : ^ + + }; + /** i*/ + export var i = new c(); +>i : c +> : ^ +>new c() : c +> : ^ +>c : typeof c +> : ^^^^^^^^ + } + /** exported function*/ + export function fooExport() { +>fooExport : () => number +> : ^^^^^^^^^^^^ + + return foo(); +>foo() : number +> : ^^^^^^ +>foo : () => number +> : ^^^^^^^^^^^^ + } +} +m1.fooExport(); +>m1.fooExport() : number +> : ^^^^^^ +>m1.fooExport : () => number +> : ^^^^^^^^^^^^ +>m1 : typeof m1 +> : ^^^^^^^^^ +>fooExport : () => number +> : ^^^^^^^^^^^^ + +var myvar = new m1.m2.c(); +>myvar : m1.m2.c +> : ^^^^^^^ +>new m1.m2.c() : m1.m2.c +> : ^^^^^^^ +>m1.m2.c : typeof m1.m2.c +> : ^^^^^^^^^^^^^^ +>m1.m2 : typeof m1.m2 +> : ^^^^^^^^^^^^ +>m1 : typeof m1 +> : ^^^^^^^^^ +>m2 : typeof m1.m2 +> : ^^^^^^^^^^^^ +>c : typeof m1.m2.c +> : ^^^^^^^^^^^^^^ + +/** Module comment */ +export namespace m4 { +>m4 : typeof m4 +> : ^^^^^^^^^ + + /** b's comment */ + export var b: number; +>b : number +> : ^^^^^^ + + /** foo's comment + */ + function foo() { +>foo : () => number +> : ^^^^^^^^^^^^ + + return b; +>b : number +> : ^^^^^^ + } + /** m2 comments + */ + export namespace m2 { +>m2 : typeof m2 +> : ^^^^^^^^^ + + /** class comment; */ + export class c { +>c : c +> : ^ + + }; + /** i */ + export var i = new c(); +>i : c +> : ^ +>new c() : c +> : ^ +>c : typeof c +> : ^^^^^^^^ + } + /** exported function */ + export function fooExport() { +>fooExport : () => number +> : ^^^^^^^^^^^^ + + return foo(); +>foo() : number +> : ^^^^^^ +>foo : () => number +> : ^^^^^^^^^^^^ + } +} +m4.fooExport(); +>m4.fooExport() : number +> : ^^^^^^ +>m4.fooExport : () => number +> : ^^^^^^^^^^^^ +>m4 : typeof m4 +> : ^^^^^^^^^ +>fooExport : () => number +> : ^^^^^^^^^^^^ + +var myvar2 = new m4.m2.c(); +>myvar2 : m4.m2.c +> : ^^^^^^^ +>new m4.m2.c() : m4.m2.c +> : ^^^^^^^ +>m4.m2.c : typeof m4.m2.c +> : ^^^^^^^^^^^^^^ +>m4.m2 : typeof m4.m2 +> : ^^^^^^^^^^^^ +>m4 : typeof m4 +> : ^^^^^^^^^ +>m2 : typeof m4.m2 +> : ^^^^^^^^^^^^ +>c : typeof m4.m2.c +> : ^^^^^^^^^^^^^^ + diff --git a/tests/baselines/reference/commentsExternalModules2.errors.txt b/tests/baselines/reference/commentsExternalModules2(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/commentsExternalModules2.errors.txt rename to tests/baselines/reference/commentsExternalModules2(target=es2015).errors.txt diff --git a/tests/baselines/reference/commentsExternalModules2(target=es2015).js b/tests/baselines/reference/commentsExternalModules2(target=es2015).js new file mode 100644 index 0000000000000..515f8ae9413ab --- /dev/null +++ b/tests/baselines/reference/commentsExternalModules2(target=es2015).js @@ -0,0 +1,171 @@ +//// [tests/cases/compiler/commentsExternalModules2.ts] //// + +//// [commentsExternalModules2_0.ts] +/** Module comment*/ +export namespace m1 { + /** b's comment*/ + export var b: number; + /** foo's comment*/ + function foo() { + return b; + } + /** m2 comments*/ + export namespace m2 { + /** class comment;*/ + export class c { + }; + /** i*/ + export var i = new c(); + } + /** exported function*/ + export function fooExport() { + return foo(); + } +} +m1.fooExport(); +var myvar = new m1.m2.c(); + +/** Module comment */ +export namespace m4 { + /** b's comment */ + export var b: number; + /** foo's comment + */ + function foo() { + return b; + } + /** m2 comments + */ + export namespace m2 { + /** class comment; */ + export class c { + }; + /** i */ + export var i = new c(); + } + /** exported function */ + export function fooExport() { + return foo(); + } +} +m4.fooExport(); +var myvar2 = new m4.m2.c(); + +//// [commentsExternalModules_1.ts] +/**This is on import declaration*/ +import extMod = require("commentsExternalModules2_0"); // trailing comment 1 +extMod.m1.fooExport(); +export var newVar = new extMod.m1.m2.c(); +extMod.m4.fooExport(); +export var newVar2 = new extMod.m4.m2.c(); + + +//// [commentsExternalModules2_0.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.m4 = exports.m1 = void 0; + /** Module comment*/ + var m1; + (function (m1) { + /** foo's comment*/ + function foo() { + return m1.b; + } + /** m2 comments*/ + let m2; + (function (m2) { + /** class comment;*/ + class c { + } + m2.c = c; + ; + /** i*/ + m2.i = new c(); + })(m2 = m1.m2 || (m1.m2 = {})); + /** exported function*/ + function fooExport() { + return foo(); + } + m1.fooExport = fooExport; + })(m1 || (exports.m1 = m1 = {})); + m1.fooExport(); + var myvar = new m1.m2.c(); + /** Module comment */ + var m4; + (function (m4) { + /** foo's comment + */ + function foo() { + return m4.b; + } + /** m2 comments + */ + let m2; + (function (m2) { + /** class comment; */ + class c { + } + m2.c = c; + ; + /** i */ + m2.i = new c(); + })(m2 = m4.m2 || (m4.m2 = {})); + /** exported function */ + function fooExport() { + return foo(); + } + m4.fooExport = fooExport; + })(m4 || (exports.m4 = m4 = {})); + m4.fooExport(); + var myvar2 = new m4.m2.c(); +}); +//// [commentsExternalModules_1.js] +define(["require", "exports", "commentsExternalModules2_0"], function (require, exports, extMod) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.newVar2 = exports.newVar = void 0; + extMod.m1.fooExport(); + exports.newVar = new extMod.m1.m2.c(); + extMod.m4.fooExport(); + exports.newVar2 = new extMod.m4.m2.c(); +}); + + +//// [commentsExternalModules2_0.d.ts] +/** Module comment*/ +export declare namespace m1 { + /** b's comment*/ + var b: number; + /** m2 comments*/ + namespace m2 { + /** class comment;*/ + class c { + } + /** i*/ + var i: c; + } + /** exported function*/ + function fooExport(): number; +} +/** Module comment */ +export declare namespace m4 { + /** b's comment */ + var b: number; + /** m2 comments + */ + namespace m2 { + /** class comment; */ + class c { + } + /** i */ + var i: c; + } + /** exported function */ + function fooExport(): number; +} +//// [commentsExternalModules_1.d.ts] +/**This is on import declaration*/ +import extMod = require("commentsExternalModules2_0"); +export declare var newVar: extMod.m1.m2.c; +export declare var newVar2: extMod.m4.m2.c; diff --git a/tests/baselines/reference/commentsExternalModules2.symbols b/tests/baselines/reference/commentsExternalModules2(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/commentsExternalModules2.symbols rename to tests/baselines/reference/commentsExternalModules2(target=es2015).symbols diff --git a/tests/baselines/reference/commentsExternalModules2.types b/tests/baselines/reference/commentsExternalModules2(target=es2015).types similarity index 100% rename from tests/baselines/reference/commentsExternalModules2.types rename to tests/baselines/reference/commentsExternalModules2(target=es2015).types diff --git a/tests/baselines/reference/commentsExternalModules2(target=es5).errors.txt b/tests/baselines/reference/commentsExternalModules2(target=es5).errors.txt new file mode 100644 index 0000000000000..859f2c1134ec3 --- /dev/null +++ b/tests/baselines/reference/commentsExternalModules2(target=es5).errors.txt @@ -0,0 +1,63 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== commentsExternalModules_1.ts (0 errors) ==== + /**This is on import declaration*/ + import extMod = require("commentsExternalModules2_0"); // trailing comment 1 + extMod.m1.fooExport(); + export var newVar = new extMod.m1.m2.c(); + extMod.m4.fooExport(); + export var newVar2 = new extMod.m4.m2.c(); + +==== commentsExternalModules2_0.ts (0 errors) ==== + /** Module comment*/ + export namespace m1 { + /** b's comment*/ + export var b: number; + /** foo's comment*/ + function foo() { + return b; + } + /** m2 comments*/ + export namespace m2 { + /** class comment;*/ + export class c { + }; + /** i*/ + export var i = new c(); + } + /** exported function*/ + export function fooExport() { + return foo(); + } + } + m1.fooExport(); + var myvar = new m1.m2.c(); + + /** Module comment */ + export namespace m4 { + /** b's comment */ + export var b: number; + /** foo's comment + */ + function foo() { + return b; + } + /** m2 comments + */ + export namespace m2 { + /** class comment; */ + export class c { + }; + /** i */ + export var i = new c(); + } + /** exported function */ + export function fooExport() { + return foo(); + } + } + m4.fooExport(); + var myvar2 = new m4.m2.c(); + \ No newline at end of file diff --git a/tests/baselines/reference/commentsExternalModules2.js b/tests/baselines/reference/commentsExternalModules2(target=es5).js similarity index 100% rename from tests/baselines/reference/commentsExternalModules2.js rename to tests/baselines/reference/commentsExternalModules2(target=es5).js diff --git a/tests/baselines/reference/commentsExternalModules2(target=es5).symbols b/tests/baselines/reference/commentsExternalModules2(target=es5).symbols new file mode 100644 index 0000000000000..dd309d54ffcfd --- /dev/null +++ b/tests/baselines/reference/commentsExternalModules2(target=es5).symbols @@ -0,0 +1,144 @@ +//// [tests/cases/compiler/commentsExternalModules2.ts] //// + +=== commentsExternalModules_1.ts === +/**This is on import declaration*/ +import extMod = require("commentsExternalModules2_0"); // trailing comment 1 +>extMod : Symbol(extMod, Decl(commentsExternalModules_1.ts, 0, 0)) + +extMod.m1.fooExport(); +>extMod.m1.fooExport : Symbol(extMod.m1.fooExport, Decl(commentsExternalModules2_0.ts, 15, 5)) +>extMod.m1 : Symbol(extMod.m1, Decl(commentsExternalModules2_0.ts, 0, 0)) +>extMod : Symbol(extMod, Decl(commentsExternalModules_1.ts, 0, 0)) +>m1 : Symbol(extMod.m1, Decl(commentsExternalModules2_0.ts, 0, 0)) +>fooExport : Symbol(extMod.m1.fooExport, Decl(commentsExternalModules2_0.ts, 15, 5)) + +export var newVar = new extMod.m1.m2.c(); +>newVar : Symbol(newVar, Decl(commentsExternalModules_1.ts, 3, 10)) +>extMod.m1.m2.c : Symbol(extMod.m1.m2.c, Decl(commentsExternalModules2_0.ts, 9, 25)) +>extMod.m1.m2 : Symbol(extMod.m1.m2, Decl(commentsExternalModules2_0.ts, 7, 5)) +>extMod.m1 : Symbol(extMod.m1, Decl(commentsExternalModules2_0.ts, 0, 0)) +>extMod : Symbol(extMod, Decl(commentsExternalModules_1.ts, 0, 0)) +>m1 : Symbol(extMod.m1, Decl(commentsExternalModules2_0.ts, 0, 0)) +>m2 : Symbol(extMod.m1.m2, Decl(commentsExternalModules2_0.ts, 7, 5)) +>c : Symbol(extMod.m1.m2.c, Decl(commentsExternalModules2_0.ts, 9, 25)) + +extMod.m4.fooExport(); +>extMod.m4.fooExport : Symbol(extMod.m4.fooExport, Decl(commentsExternalModules2_0.ts, 41, 5)) +>extMod.m4 : Symbol(extMod.m4, Decl(commentsExternalModules2_0.ts, 22, 26)) +>extMod : Symbol(extMod, Decl(commentsExternalModules_1.ts, 0, 0)) +>m4 : Symbol(extMod.m4, Decl(commentsExternalModules2_0.ts, 22, 26)) +>fooExport : Symbol(extMod.m4.fooExport, Decl(commentsExternalModules2_0.ts, 41, 5)) + +export var newVar2 = new extMod.m4.m2.c(); +>newVar2 : Symbol(newVar2, Decl(commentsExternalModules_1.ts, 5, 10)) +>extMod.m4.m2.c : Symbol(extMod.m4.m2.c, Decl(commentsExternalModules2_0.ts, 35, 25)) +>extMod.m4.m2 : Symbol(extMod.m4.m2, Decl(commentsExternalModules2_0.ts, 32, 5)) +>extMod.m4 : Symbol(extMod.m4, Decl(commentsExternalModules2_0.ts, 22, 26)) +>extMod : Symbol(extMod, Decl(commentsExternalModules_1.ts, 0, 0)) +>m4 : Symbol(extMod.m4, Decl(commentsExternalModules2_0.ts, 22, 26)) +>m2 : Symbol(extMod.m4.m2, Decl(commentsExternalModules2_0.ts, 32, 5)) +>c : Symbol(extMod.m4.m2.c, Decl(commentsExternalModules2_0.ts, 35, 25)) + +=== commentsExternalModules2_0.ts === +/** Module comment*/ +export namespace m1 { +>m1 : Symbol(m1, Decl(commentsExternalModules2_0.ts, 0, 0)) + + /** b's comment*/ + export var b: number; +>b : Symbol(b, Decl(commentsExternalModules2_0.ts, 3, 14)) + + /** foo's comment*/ + function foo() { +>foo : Symbol(foo, Decl(commentsExternalModules2_0.ts, 3, 25)) + + return b; +>b : Symbol(b, Decl(commentsExternalModules2_0.ts, 3, 14)) + } + /** m2 comments*/ + export namespace m2 { +>m2 : Symbol(m2, Decl(commentsExternalModules2_0.ts, 7, 5)) + + /** class comment;*/ + export class c { +>c : Symbol(c, Decl(commentsExternalModules2_0.ts, 9, 25)) + + }; + /** i*/ + export var i = new c(); +>i : Symbol(i, Decl(commentsExternalModules2_0.ts, 14, 18)) +>c : Symbol(c, Decl(commentsExternalModules2_0.ts, 9, 25)) + } + /** exported function*/ + export function fooExport() { +>fooExport : Symbol(fooExport, Decl(commentsExternalModules2_0.ts, 15, 5)) + + return foo(); +>foo : Symbol(foo, Decl(commentsExternalModules2_0.ts, 3, 25)) + } +} +m1.fooExport(); +>m1.fooExport : Symbol(m1.fooExport, Decl(commentsExternalModules2_0.ts, 15, 5)) +>m1 : Symbol(m1, Decl(commentsExternalModules2_0.ts, 0, 0)) +>fooExport : Symbol(m1.fooExport, Decl(commentsExternalModules2_0.ts, 15, 5)) + +var myvar = new m1.m2.c(); +>myvar : Symbol(myvar, Decl(commentsExternalModules2_0.ts, 22, 3)) +>m1.m2.c : Symbol(m1.m2.c, Decl(commentsExternalModules2_0.ts, 9, 25)) +>m1.m2 : Symbol(m1.m2, Decl(commentsExternalModules2_0.ts, 7, 5)) +>m1 : Symbol(m1, Decl(commentsExternalModules2_0.ts, 0, 0)) +>m2 : Symbol(m1.m2, Decl(commentsExternalModules2_0.ts, 7, 5)) +>c : Symbol(m1.m2.c, Decl(commentsExternalModules2_0.ts, 9, 25)) + +/** Module comment */ +export namespace m4 { +>m4 : Symbol(m4, Decl(commentsExternalModules2_0.ts, 22, 26)) + + /** b's comment */ + export var b: number; +>b : Symbol(b, Decl(commentsExternalModules2_0.ts, 27, 14)) + + /** foo's comment + */ + function foo() { +>foo : Symbol(foo, Decl(commentsExternalModules2_0.ts, 27, 25)) + + return b; +>b : Symbol(b, Decl(commentsExternalModules2_0.ts, 27, 14)) + } + /** m2 comments + */ + export namespace m2 { +>m2 : Symbol(m2, Decl(commentsExternalModules2_0.ts, 32, 5)) + + /** class comment; */ + export class c { +>c : Symbol(c, Decl(commentsExternalModules2_0.ts, 35, 25)) + + }; + /** i */ + export var i = new c(); +>i : Symbol(i, Decl(commentsExternalModules2_0.ts, 40, 18)) +>c : Symbol(c, Decl(commentsExternalModules2_0.ts, 35, 25)) + } + /** exported function */ + export function fooExport() { +>fooExport : Symbol(fooExport, Decl(commentsExternalModules2_0.ts, 41, 5)) + + return foo(); +>foo : Symbol(foo, Decl(commentsExternalModules2_0.ts, 27, 25)) + } +} +m4.fooExport(); +>m4.fooExport : Symbol(m4.fooExport, Decl(commentsExternalModules2_0.ts, 41, 5)) +>m4 : Symbol(m4, Decl(commentsExternalModules2_0.ts, 22, 26)) +>fooExport : Symbol(m4.fooExport, Decl(commentsExternalModules2_0.ts, 41, 5)) + +var myvar2 = new m4.m2.c(); +>myvar2 : Symbol(myvar2, Decl(commentsExternalModules2_0.ts, 48, 3)) +>m4.m2.c : Symbol(m4.m2.c, Decl(commentsExternalModules2_0.ts, 35, 25)) +>m4.m2 : Symbol(m4.m2, Decl(commentsExternalModules2_0.ts, 32, 5)) +>m4 : Symbol(m4, Decl(commentsExternalModules2_0.ts, 22, 26)) +>m2 : Symbol(m4.m2, Decl(commentsExternalModules2_0.ts, 32, 5)) +>c : Symbol(m4.m2.c, Decl(commentsExternalModules2_0.ts, 35, 25)) + diff --git a/tests/baselines/reference/commentsExternalModules2(target=es5).types b/tests/baselines/reference/commentsExternalModules2(target=es5).types new file mode 100644 index 0000000000000..d3882edd12f56 --- /dev/null +++ b/tests/baselines/reference/commentsExternalModules2(target=es5).types @@ -0,0 +1,233 @@ +//// [tests/cases/compiler/commentsExternalModules2.ts] //// + +=== commentsExternalModules_1.ts === +/**This is on import declaration*/ +import extMod = require("commentsExternalModules2_0"); // trailing comment 1 +>extMod : typeof extMod +> : ^^^^^^^^^^^^^ + +extMod.m1.fooExport(); +>extMod.m1.fooExport() : number +> : ^^^^^^ +>extMod.m1.fooExport : () => number +> : ^^^^^^^^^^^^ +>extMod.m1 : typeof extMod.m1 +> : ^^^^^^^^^^^^^^^^ +>extMod : typeof extMod +> : ^^^^^^^^^^^^^ +>m1 : typeof extMod.m1 +> : ^^^^^^^^^^^^^^^^ +>fooExport : () => number +> : ^^^^^^^^^^^^ + +export var newVar = new extMod.m1.m2.c(); +>newVar : extMod.m1.m2.c +> : ^^^^^^^^^^^^^^ +>new extMod.m1.m2.c() : extMod.m1.m2.c +> : ^^^^^^^^^^^^^^ +>extMod.m1.m2.c : typeof extMod.m1.m2.c +> : ^^^^^^^^^^^^^^^^^^^^^ +>extMod.m1.m2 : typeof extMod.m1.m2 +> : ^^^^^^^^^^^^^^^^^^^ +>extMod.m1 : typeof extMod.m1 +> : ^^^^^^^^^^^^^^^^ +>extMod : typeof extMod +> : ^^^^^^^^^^^^^ +>m1 : typeof extMod.m1 +> : ^^^^^^^^^^^^^^^^ +>m2 : typeof extMod.m1.m2 +> : ^^^^^^^^^^^^^^^^^^^ +>c : typeof extMod.m1.m2.c +> : ^^^^^^^^^^^^^^^^^^^^^ + +extMod.m4.fooExport(); +>extMod.m4.fooExport() : number +> : ^^^^^^ +>extMod.m4.fooExport : () => number +> : ^^^^^^^^^^^^ +>extMod.m4 : typeof extMod.m4 +> : ^^^^^^^^^^^^^^^^ +>extMod : typeof extMod +> : ^^^^^^^^^^^^^ +>m4 : typeof extMod.m4 +> : ^^^^^^^^^^^^^^^^ +>fooExport : () => number +> : ^^^^^^^^^^^^ + +export var newVar2 = new extMod.m4.m2.c(); +>newVar2 : extMod.m4.m2.c +> : ^^^^^^^^^^^^^^ +>new extMod.m4.m2.c() : extMod.m4.m2.c +> : ^^^^^^^^^^^^^^ +>extMod.m4.m2.c : typeof extMod.m4.m2.c +> : ^^^^^^^^^^^^^^^^^^^^^ +>extMod.m4.m2 : typeof extMod.m4.m2 +> : ^^^^^^^^^^^^^^^^^^^ +>extMod.m4 : typeof extMod.m4 +> : ^^^^^^^^^^^^^^^^ +>extMod : typeof extMod +> : ^^^^^^^^^^^^^ +>m4 : typeof extMod.m4 +> : ^^^^^^^^^^^^^^^^ +>m2 : typeof extMod.m4.m2 +> : ^^^^^^^^^^^^^^^^^^^ +>c : typeof extMod.m4.m2.c +> : ^^^^^^^^^^^^^^^^^^^^^ + +=== commentsExternalModules2_0.ts === +/** Module comment*/ +export namespace m1 { +>m1 : typeof m1 +> : ^^^^^^^^^ + + /** b's comment*/ + export var b: number; +>b : number +> : ^^^^^^ + + /** foo's comment*/ + function foo() { +>foo : () => number +> : ^^^^^^^^^^^^ + + return b; +>b : number +> : ^^^^^^ + } + /** m2 comments*/ + export namespace m2 { +>m2 : typeof m2 +> : ^^^^^^^^^ + + /** class comment;*/ + export class c { +>c : c +> : ^ + + }; + /** i*/ + export var i = new c(); +>i : c +> : ^ +>new c() : c +> : ^ +>c : typeof c +> : ^^^^^^^^ + } + /** exported function*/ + export function fooExport() { +>fooExport : () => number +> : ^^^^^^^^^^^^ + + return foo(); +>foo() : number +> : ^^^^^^ +>foo : () => number +> : ^^^^^^^^^^^^ + } +} +m1.fooExport(); +>m1.fooExport() : number +> : ^^^^^^ +>m1.fooExport : () => number +> : ^^^^^^^^^^^^ +>m1 : typeof m1 +> : ^^^^^^^^^ +>fooExport : () => number +> : ^^^^^^^^^^^^ + +var myvar = new m1.m2.c(); +>myvar : m1.m2.c +> : ^^^^^^^ +>new m1.m2.c() : m1.m2.c +> : ^^^^^^^ +>m1.m2.c : typeof m1.m2.c +> : ^^^^^^^^^^^^^^ +>m1.m2 : typeof m1.m2 +> : ^^^^^^^^^^^^ +>m1 : typeof m1 +> : ^^^^^^^^^ +>m2 : typeof m1.m2 +> : ^^^^^^^^^^^^ +>c : typeof m1.m2.c +> : ^^^^^^^^^^^^^^ + +/** Module comment */ +export namespace m4 { +>m4 : typeof m4 +> : ^^^^^^^^^ + + /** b's comment */ + export var b: number; +>b : number +> : ^^^^^^ + + /** foo's comment + */ + function foo() { +>foo : () => number +> : ^^^^^^^^^^^^ + + return b; +>b : number +> : ^^^^^^ + } + /** m2 comments + */ + export namespace m2 { +>m2 : typeof m2 +> : ^^^^^^^^^ + + /** class comment; */ + export class c { +>c : c +> : ^ + + }; + /** i */ + export var i = new c(); +>i : c +> : ^ +>new c() : c +> : ^ +>c : typeof c +> : ^^^^^^^^ + } + /** exported function */ + export function fooExport() { +>fooExport : () => number +> : ^^^^^^^^^^^^ + + return foo(); +>foo() : number +> : ^^^^^^ +>foo : () => number +> : ^^^^^^^^^^^^ + } +} +m4.fooExport(); +>m4.fooExport() : number +> : ^^^^^^ +>m4.fooExport : () => number +> : ^^^^^^^^^^^^ +>m4 : typeof m4 +> : ^^^^^^^^^ +>fooExport : () => number +> : ^^^^^^^^^^^^ + +var myvar2 = new m4.m2.c(); +>myvar2 : m4.m2.c +> : ^^^^^^^ +>new m4.m2.c() : m4.m2.c +> : ^^^^^^^ +>m4.m2.c : typeof m4.m2.c +> : ^^^^^^^^^^^^^^ +>m4.m2 : typeof m4.m2 +> : ^^^^^^^^^^^^ +>m4 : typeof m4 +> : ^^^^^^^^^ +>m2 : typeof m4.m2 +> : ^^^^^^^^^^^^ +>c : typeof m4.m2.c +> : ^^^^^^^^^^^^^^ + diff --git a/tests/baselines/reference/commentsExternalModules3(target=es2015).js b/tests/baselines/reference/commentsExternalModules3(target=es2015).js new file mode 100644 index 0000000000000..ccb74c10a9096 --- /dev/null +++ b/tests/baselines/reference/commentsExternalModules3(target=es2015).js @@ -0,0 +1,169 @@ +//// [tests/cases/compiler/commentsExternalModules3.ts] //// + +//// [commentsExternalModules2_0.ts] +/** Module comment*/ +export namespace m1 { + /** b's comment*/ + export var b: number; + /** foo's comment*/ + function foo() { + return b; + } + /** m2 comments*/ + export namespace m2 { + /** class comment;*/ + export class c { + }; + /** i*/ + export var i = new c(); + } + /** exported function*/ + export function fooExport() { + return foo(); + } +} +m1.fooExport(); +var myvar = new m1.m2.c(); + +/** Module comment */ +export namespace m4 { + /** b's comment */ + export var b: number; + /** foo's comment + */ + function foo() { + return b; + } + /** m2 comments + */ + export namespace m2 { + /** class comment; */ + export class c { + }; + /** i */ + export var i = new c(); + } + /** exported function */ + export function fooExport() { + return foo(); + } +} +m4.fooExport(); +var myvar2 = new m4.m2.c(); + +//// [commentsExternalModules_1.ts] +/**This is on import declaration*/ +import extMod = require("./commentsExternalModules2_0"); // trailing comment 1 +extMod.m1.fooExport(); +export var newVar = new extMod.m1.m2.c(); +extMod.m4.fooExport(); +export var newVar2 = new extMod.m4.m2.c(); + + +//// [commentsExternalModules2_0.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.m4 = exports.m1 = void 0; +/** Module comment*/ +var m1; +(function (m1) { + /** foo's comment*/ + function foo() { + return m1.b; + } + /** m2 comments*/ + let m2; + (function (m2) { + /** class comment;*/ + class c { + } + m2.c = c; + ; + /** i*/ + m2.i = new c(); + })(m2 = m1.m2 || (m1.m2 = {})); + /** exported function*/ + function fooExport() { + return foo(); + } + m1.fooExport = fooExport; +})(m1 || (exports.m1 = m1 = {})); +m1.fooExport(); +var myvar = new m1.m2.c(); +/** Module comment */ +var m4; +(function (m4) { + /** foo's comment + */ + function foo() { + return m4.b; + } + /** m2 comments + */ + let m2; + (function (m2) { + /** class comment; */ + class c { + } + m2.c = c; + ; + /** i */ + m2.i = new c(); + })(m2 = m4.m2 || (m4.m2 = {})); + /** exported function */ + function fooExport() { + return foo(); + } + m4.fooExport = fooExport; +})(m4 || (exports.m4 = m4 = {})); +m4.fooExport(); +var myvar2 = new m4.m2.c(); +//// [commentsExternalModules_1.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.newVar2 = exports.newVar = void 0; +/**This is on import declaration*/ +const extMod = require("./commentsExternalModules2_0"); // trailing comment 1 +extMod.m1.fooExport(); +exports.newVar = new extMod.m1.m2.c(); +extMod.m4.fooExport(); +exports.newVar2 = new extMod.m4.m2.c(); + + +//// [commentsExternalModules2_0.d.ts] +/** Module comment*/ +export declare namespace m1 { + /** b's comment*/ + var b: number; + /** m2 comments*/ + namespace m2 { + /** class comment;*/ + class c { + } + /** i*/ + var i: c; + } + /** exported function*/ + function fooExport(): number; +} +/** Module comment */ +export declare namespace m4 { + /** b's comment */ + var b: number; + /** m2 comments + */ + namespace m2 { + /** class comment; */ + class c { + } + /** i */ + var i: c; + } + /** exported function */ + function fooExport(): number; +} +//// [commentsExternalModules_1.d.ts] +/**This is on import declaration*/ +import extMod = require("./commentsExternalModules2_0"); +export declare var newVar: extMod.m1.m2.c; +export declare var newVar2: extMod.m4.m2.c; diff --git a/tests/baselines/reference/commentsExternalModules3.symbols b/tests/baselines/reference/commentsExternalModules3(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/commentsExternalModules3.symbols rename to tests/baselines/reference/commentsExternalModules3(target=es2015).symbols diff --git a/tests/baselines/reference/commentsExternalModules3.types b/tests/baselines/reference/commentsExternalModules3(target=es2015).types similarity index 100% rename from tests/baselines/reference/commentsExternalModules3.types rename to tests/baselines/reference/commentsExternalModules3(target=es2015).types diff --git a/tests/baselines/reference/commentsExternalModules3.js b/tests/baselines/reference/commentsExternalModules3(target=es5).js similarity index 100% rename from tests/baselines/reference/commentsExternalModules3.js rename to tests/baselines/reference/commentsExternalModules3(target=es5).js diff --git a/tests/baselines/reference/commentsExternalModules3(target=es5).symbols b/tests/baselines/reference/commentsExternalModules3(target=es5).symbols new file mode 100644 index 0000000000000..61eecfffdc80d --- /dev/null +++ b/tests/baselines/reference/commentsExternalModules3(target=es5).symbols @@ -0,0 +1,144 @@ +//// [tests/cases/compiler/commentsExternalModules3.ts] //// + +=== commentsExternalModules_1.ts === +/**This is on import declaration*/ +import extMod = require("./commentsExternalModules2_0"); // trailing comment 1 +>extMod : Symbol(extMod, Decl(commentsExternalModules_1.ts, 0, 0)) + +extMod.m1.fooExport(); +>extMod.m1.fooExport : Symbol(extMod.m1.fooExport, Decl(commentsExternalModules2_0.ts, 15, 5)) +>extMod.m1 : Symbol(extMod.m1, Decl(commentsExternalModules2_0.ts, 0, 0)) +>extMod : Symbol(extMod, Decl(commentsExternalModules_1.ts, 0, 0)) +>m1 : Symbol(extMod.m1, Decl(commentsExternalModules2_0.ts, 0, 0)) +>fooExport : Symbol(extMod.m1.fooExport, Decl(commentsExternalModules2_0.ts, 15, 5)) + +export var newVar = new extMod.m1.m2.c(); +>newVar : Symbol(newVar, Decl(commentsExternalModules_1.ts, 3, 10)) +>extMod.m1.m2.c : Symbol(extMod.m1.m2.c, Decl(commentsExternalModules2_0.ts, 9, 25)) +>extMod.m1.m2 : Symbol(extMod.m1.m2, Decl(commentsExternalModules2_0.ts, 7, 5)) +>extMod.m1 : Symbol(extMod.m1, Decl(commentsExternalModules2_0.ts, 0, 0)) +>extMod : Symbol(extMod, Decl(commentsExternalModules_1.ts, 0, 0)) +>m1 : Symbol(extMod.m1, Decl(commentsExternalModules2_0.ts, 0, 0)) +>m2 : Symbol(extMod.m1.m2, Decl(commentsExternalModules2_0.ts, 7, 5)) +>c : Symbol(extMod.m1.m2.c, Decl(commentsExternalModules2_0.ts, 9, 25)) + +extMod.m4.fooExport(); +>extMod.m4.fooExport : Symbol(extMod.m4.fooExport, Decl(commentsExternalModules2_0.ts, 41, 5)) +>extMod.m4 : Symbol(extMod.m4, Decl(commentsExternalModules2_0.ts, 22, 26)) +>extMod : Symbol(extMod, Decl(commentsExternalModules_1.ts, 0, 0)) +>m4 : Symbol(extMod.m4, Decl(commentsExternalModules2_0.ts, 22, 26)) +>fooExport : Symbol(extMod.m4.fooExport, Decl(commentsExternalModules2_0.ts, 41, 5)) + +export var newVar2 = new extMod.m4.m2.c(); +>newVar2 : Symbol(newVar2, Decl(commentsExternalModules_1.ts, 5, 10)) +>extMod.m4.m2.c : Symbol(extMod.m4.m2.c, Decl(commentsExternalModules2_0.ts, 35, 25)) +>extMod.m4.m2 : Symbol(extMod.m4.m2, Decl(commentsExternalModules2_0.ts, 32, 5)) +>extMod.m4 : Symbol(extMod.m4, Decl(commentsExternalModules2_0.ts, 22, 26)) +>extMod : Symbol(extMod, Decl(commentsExternalModules_1.ts, 0, 0)) +>m4 : Symbol(extMod.m4, Decl(commentsExternalModules2_0.ts, 22, 26)) +>m2 : Symbol(extMod.m4.m2, Decl(commentsExternalModules2_0.ts, 32, 5)) +>c : Symbol(extMod.m4.m2.c, Decl(commentsExternalModules2_0.ts, 35, 25)) + +=== commentsExternalModules2_0.ts === +/** Module comment*/ +export namespace m1 { +>m1 : Symbol(m1, Decl(commentsExternalModules2_0.ts, 0, 0)) + + /** b's comment*/ + export var b: number; +>b : Symbol(b, Decl(commentsExternalModules2_0.ts, 3, 14)) + + /** foo's comment*/ + function foo() { +>foo : Symbol(foo, Decl(commentsExternalModules2_0.ts, 3, 25)) + + return b; +>b : Symbol(b, Decl(commentsExternalModules2_0.ts, 3, 14)) + } + /** m2 comments*/ + export namespace m2 { +>m2 : Symbol(m2, Decl(commentsExternalModules2_0.ts, 7, 5)) + + /** class comment;*/ + export class c { +>c : Symbol(c, Decl(commentsExternalModules2_0.ts, 9, 25)) + + }; + /** i*/ + export var i = new c(); +>i : Symbol(i, Decl(commentsExternalModules2_0.ts, 14, 18)) +>c : Symbol(c, Decl(commentsExternalModules2_0.ts, 9, 25)) + } + /** exported function*/ + export function fooExport() { +>fooExport : Symbol(fooExport, Decl(commentsExternalModules2_0.ts, 15, 5)) + + return foo(); +>foo : Symbol(foo, Decl(commentsExternalModules2_0.ts, 3, 25)) + } +} +m1.fooExport(); +>m1.fooExport : Symbol(m1.fooExport, Decl(commentsExternalModules2_0.ts, 15, 5)) +>m1 : Symbol(m1, Decl(commentsExternalModules2_0.ts, 0, 0)) +>fooExport : Symbol(m1.fooExport, Decl(commentsExternalModules2_0.ts, 15, 5)) + +var myvar = new m1.m2.c(); +>myvar : Symbol(myvar, Decl(commentsExternalModules2_0.ts, 22, 3)) +>m1.m2.c : Symbol(m1.m2.c, Decl(commentsExternalModules2_0.ts, 9, 25)) +>m1.m2 : Symbol(m1.m2, Decl(commentsExternalModules2_0.ts, 7, 5)) +>m1 : Symbol(m1, Decl(commentsExternalModules2_0.ts, 0, 0)) +>m2 : Symbol(m1.m2, Decl(commentsExternalModules2_0.ts, 7, 5)) +>c : Symbol(m1.m2.c, Decl(commentsExternalModules2_0.ts, 9, 25)) + +/** Module comment */ +export namespace m4 { +>m4 : Symbol(m4, Decl(commentsExternalModules2_0.ts, 22, 26)) + + /** b's comment */ + export var b: number; +>b : Symbol(b, Decl(commentsExternalModules2_0.ts, 27, 14)) + + /** foo's comment + */ + function foo() { +>foo : Symbol(foo, Decl(commentsExternalModules2_0.ts, 27, 25)) + + return b; +>b : Symbol(b, Decl(commentsExternalModules2_0.ts, 27, 14)) + } + /** m2 comments + */ + export namespace m2 { +>m2 : Symbol(m2, Decl(commentsExternalModules2_0.ts, 32, 5)) + + /** class comment; */ + export class c { +>c : Symbol(c, Decl(commentsExternalModules2_0.ts, 35, 25)) + + }; + /** i */ + export var i = new c(); +>i : Symbol(i, Decl(commentsExternalModules2_0.ts, 40, 18)) +>c : Symbol(c, Decl(commentsExternalModules2_0.ts, 35, 25)) + } + /** exported function */ + export function fooExport() { +>fooExport : Symbol(fooExport, Decl(commentsExternalModules2_0.ts, 41, 5)) + + return foo(); +>foo : Symbol(foo, Decl(commentsExternalModules2_0.ts, 27, 25)) + } +} +m4.fooExport(); +>m4.fooExport : Symbol(m4.fooExport, Decl(commentsExternalModules2_0.ts, 41, 5)) +>m4 : Symbol(m4, Decl(commentsExternalModules2_0.ts, 22, 26)) +>fooExport : Symbol(m4.fooExport, Decl(commentsExternalModules2_0.ts, 41, 5)) + +var myvar2 = new m4.m2.c(); +>myvar2 : Symbol(myvar2, Decl(commentsExternalModules2_0.ts, 48, 3)) +>m4.m2.c : Symbol(m4.m2.c, Decl(commentsExternalModules2_0.ts, 35, 25)) +>m4.m2 : Symbol(m4.m2, Decl(commentsExternalModules2_0.ts, 32, 5)) +>m4 : Symbol(m4, Decl(commentsExternalModules2_0.ts, 22, 26)) +>m2 : Symbol(m4.m2, Decl(commentsExternalModules2_0.ts, 32, 5)) +>c : Symbol(m4.m2.c, Decl(commentsExternalModules2_0.ts, 35, 25)) + diff --git a/tests/baselines/reference/commentsExternalModules3(target=es5).types b/tests/baselines/reference/commentsExternalModules3(target=es5).types new file mode 100644 index 0000000000000..d11f534302f00 --- /dev/null +++ b/tests/baselines/reference/commentsExternalModules3(target=es5).types @@ -0,0 +1,233 @@ +//// [tests/cases/compiler/commentsExternalModules3.ts] //// + +=== commentsExternalModules_1.ts === +/**This is on import declaration*/ +import extMod = require("./commentsExternalModules2_0"); // trailing comment 1 +>extMod : typeof extMod +> : ^^^^^^^^^^^^^ + +extMod.m1.fooExport(); +>extMod.m1.fooExport() : number +> : ^^^^^^ +>extMod.m1.fooExport : () => number +> : ^^^^^^^^^^^^ +>extMod.m1 : typeof extMod.m1 +> : ^^^^^^^^^^^^^^^^ +>extMod : typeof extMod +> : ^^^^^^^^^^^^^ +>m1 : typeof extMod.m1 +> : ^^^^^^^^^^^^^^^^ +>fooExport : () => number +> : ^^^^^^^^^^^^ + +export var newVar = new extMod.m1.m2.c(); +>newVar : extMod.m1.m2.c +> : ^^^^^^^^^^^^^^ +>new extMod.m1.m2.c() : extMod.m1.m2.c +> : ^^^^^^^^^^^^^^ +>extMod.m1.m2.c : typeof extMod.m1.m2.c +> : ^^^^^^^^^^^^^^^^^^^^^ +>extMod.m1.m2 : typeof extMod.m1.m2 +> : ^^^^^^^^^^^^^^^^^^^ +>extMod.m1 : typeof extMod.m1 +> : ^^^^^^^^^^^^^^^^ +>extMod : typeof extMod +> : ^^^^^^^^^^^^^ +>m1 : typeof extMod.m1 +> : ^^^^^^^^^^^^^^^^ +>m2 : typeof extMod.m1.m2 +> : ^^^^^^^^^^^^^^^^^^^ +>c : typeof extMod.m1.m2.c +> : ^^^^^^^^^^^^^^^^^^^^^ + +extMod.m4.fooExport(); +>extMod.m4.fooExport() : number +> : ^^^^^^ +>extMod.m4.fooExport : () => number +> : ^^^^^^^^^^^^ +>extMod.m4 : typeof extMod.m4 +> : ^^^^^^^^^^^^^^^^ +>extMod : typeof extMod +> : ^^^^^^^^^^^^^ +>m4 : typeof extMod.m4 +> : ^^^^^^^^^^^^^^^^ +>fooExport : () => number +> : ^^^^^^^^^^^^ + +export var newVar2 = new extMod.m4.m2.c(); +>newVar2 : extMod.m4.m2.c +> : ^^^^^^^^^^^^^^ +>new extMod.m4.m2.c() : extMod.m4.m2.c +> : ^^^^^^^^^^^^^^ +>extMod.m4.m2.c : typeof extMod.m4.m2.c +> : ^^^^^^^^^^^^^^^^^^^^^ +>extMod.m4.m2 : typeof extMod.m4.m2 +> : ^^^^^^^^^^^^^^^^^^^ +>extMod.m4 : typeof extMod.m4 +> : ^^^^^^^^^^^^^^^^ +>extMod : typeof extMod +> : ^^^^^^^^^^^^^ +>m4 : typeof extMod.m4 +> : ^^^^^^^^^^^^^^^^ +>m2 : typeof extMod.m4.m2 +> : ^^^^^^^^^^^^^^^^^^^ +>c : typeof extMod.m4.m2.c +> : ^^^^^^^^^^^^^^^^^^^^^ + +=== commentsExternalModules2_0.ts === +/** Module comment*/ +export namespace m1 { +>m1 : typeof m1 +> : ^^^^^^^^^ + + /** b's comment*/ + export var b: number; +>b : number +> : ^^^^^^ + + /** foo's comment*/ + function foo() { +>foo : () => number +> : ^^^^^^^^^^^^ + + return b; +>b : number +> : ^^^^^^ + } + /** m2 comments*/ + export namespace m2 { +>m2 : typeof m2 +> : ^^^^^^^^^ + + /** class comment;*/ + export class c { +>c : c +> : ^ + + }; + /** i*/ + export var i = new c(); +>i : c +> : ^ +>new c() : c +> : ^ +>c : typeof c +> : ^^^^^^^^ + } + /** exported function*/ + export function fooExport() { +>fooExport : () => number +> : ^^^^^^^^^^^^ + + return foo(); +>foo() : number +> : ^^^^^^ +>foo : () => number +> : ^^^^^^^^^^^^ + } +} +m1.fooExport(); +>m1.fooExport() : number +> : ^^^^^^ +>m1.fooExport : () => number +> : ^^^^^^^^^^^^ +>m1 : typeof m1 +> : ^^^^^^^^^ +>fooExport : () => number +> : ^^^^^^^^^^^^ + +var myvar = new m1.m2.c(); +>myvar : m1.m2.c +> : ^^^^^^^ +>new m1.m2.c() : m1.m2.c +> : ^^^^^^^ +>m1.m2.c : typeof m1.m2.c +> : ^^^^^^^^^^^^^^ +>m1.m2 : typeof m1.m2 +> : ^^^^^^^^^^^^ +>m1 : typeof m1 +> : ^^^^^^^^^ +>m2 : typeof m1.m2 +> : ^^^^^^^^^^^^ +>c : typeof m1.m2.c +> : ^^^^^^^^^^^^^^ + +/** Module comment */ +export namespace m4 { +>m4 : typeof m4 +> : ^^^^^^^^^ + + /** b's comment */ + export var b: number; +>b : number +> : ^^^^^^ + + /** foo's comment + */ + function foo() { +>foo : () => number +> : ^^^^^^^^^^^^ + + return b; +>b : number +> : ^^^^^^ + } + /** m2 comments + */ + export namespace m2 { +>m2 : typeof m2 +> : ^^^^^^^^^ + + /** class comment; */ + export class c { +>c : c +> : ^ + + }; + /** i */ + export var i = new c(); +>i : c +> : ^ +>new c() : c +> : ^ +>c : typeof c +> : ^^^^^^^^ + } + /** exported function */ + export function fooExport() { +>fooExport : () => number +> : ^^^^^^^^^^^^ + + return foo(); +>foo() : number +> : ^^^^^^ +>foo : () => number +> : ^^^^^^^^^^^^ + } +} +m4.fooExport(); +>m4.fooExport() : number +> : ^^^^^^ +>m4.fooExport : () => number +> : ^^^^^^^^^^^^ +>m4 : typeof m4 +> : ^^^^^^^^^ +>fooExport : () => number +> : ^^^^^^^^^^^^ + +var myvar2 = new m4.m2.c(); +>myvar2 : m4.m2.c +> : ^^^^^^^ +>new m4.m2.c() : m4.m2.c +> : ^^^^^^^ +>m4.m2.c : typeof m4.m2.c +> : ^^^^^^^^^^^^^^ +>m4.m2 : typeof m4.m2 +> : ^^^^^^^^^^^^ +>m4 : typeof m4 +> : ^^^^^^^^^ +>m2 : typeof m4.m2 +> : ^^^^^^^^^^^^ +>c : typeof m4.m2.c +> : ^^^^^^^^^^^^^^ + diff --git a/tests/baselines/reference/commentsFormatting(target=es2015).js b/tests/baselines/reference/commentsFormatting(target=es2015).js new file mode 100644 index 0000000000000..752e32f5b0661 --- /dev/null +++ b/tests/baselines/reference/commentsFormatting(target=es2015).js @@ -0,0 +1,262 @@ +//// [tests/cases/compiler/commentsFormatting.ts] //// + +//// [commentsFormatting.ts] +namespace m { + /** this is first line - aligned to class declaration +* this is 4 spaces left aligned + * this is 3 spaces left aligned + * this is 2 spaces left aligned + * this is 1 spaces left aligned + * this is at same level as first line + * this is 1 spaces right aligned + * this is 2 spaces right aligned + * this is 3 spaces right aligned + * this is 4 spaces right aligned + * this is 5 spaces right aligned + * this is 6 spaces right aligned + * this is 7 spaces right aligned + * this is 8 spaces right aligned */ + export class c { + } + + /** this is first line - 4 spaces right aligned to class but in js file should be aligned to class declaration +* this is 8 spaces left aligned + * this is 7 spaces left aligned + * this is 6 spaces left aligned + * this is 5 spaces left aligned + * this is 4 spaces left aligned + * this is 3 spaces left aligned + * this is 2 spaces left aligned + * this is 1 spaces left aligned + * this is at same level as first line + * this is 1 spaces right aligned + * this is 2 spaces right aligned + * this is 3 spaces right aligned + * this is 4 spaces right aligned + * this is 5 spaces right aligned + * this is 6 spaces right aligned + * this is 7 spaces right aligned + * this is 8 spaces right aligned */ + export class c2 { + } + + /** this is comment with new lines in between + +this is 4 spaces left aligned but above line is empty + + this is 3 spaces left aligned but above line is empty + + this is 2 spaces left aligned but above line is empty + + this is 1 spaces left aligned but above line is empty + + this is at same level as first line but above line is empty + + this is 1 spaces right aligned but above line is empty + + this is 2 spaces right aligned but above line is empty + + this is 3 spaces right aligned but above line is empty + + this is 4 spaces right aligned but above line is empty + + + Above 2 lines are empty + + + + above 3 lines are empty*/ + export class c3 { + } + + /** this is first line - aligned to class declaration + * this is 0 space + tab + * this is 1 space + tab + * this is 2 spaces + tab + * this is 3 spaces + tab + * this is 4 spaces + tab + * this is 5 spaces + tab + * this is 6 spaces + tab + * this is 7 spaces + tab + * this is 8 spaces + tab + * this is 9 spaces + tab + * this is 10 spaces + tab + * this is 11 spaces + tab + * this is 12 spaces + tab */ + export class c4 { + } +} + +//// [commentsFormatting.js] +var m; +(function (m) { + /** this is first line - aligned to class declaration +* this is 4 spaces left aligned + * this is 3 spaces left aligned + * this is 2 spaces left aligned + * this is 1 spaces left aligned + * this is at same level as first line + * this is 1 spaces right aligned + * this is 2 spaces right aligned + * this is 3 spaces right aligned + * this is 4 spaces right aligned + * this is 5 spaces right aligned + * this is 6 spaces right aligned + * this is 7 spaces right aligned + * this is 8 spaces right aligned */ + class c { + } + m.c = c; + /** this is first line - 4 spaces right aligned to class but in js file should be aligned to class declaration +* this is 8 spaces left aligned +* this is 7 spaces left aligned +* this is 6 spaces left aligned +* this is 5 spaces left aligned +* this is 4 spaces left aligned + * this is 3 spaces left aligned + * this is 2 spaces left aligned + * this is 1 spaces left aligned + * this is at same level as first line + * this is 1 spaces right aligned + * this is 2 spaces right aligned + * this is 3 spaces right aligned + * this is 4 spaces right aligned + * this is 5 spaces right aligned + * this is 6 spaces right aligned + * this is 7 spaces right aligned + * this is 8 spaces right aligned */ + class c2 { + } + m.c2 = c2; + /** this is comment with new lines in between + +this is 4 spaces left aligned but above line is empty + + this is 3 spaces left aligned but above line is empty + + this is 2 spaces left aligned but above line is empty + + this is 1 spaces left aligned but above line is empty + + this is at same level as first line but above line is empty + + this is 1 spaces right aligned but above line is empty + + this is 2 spaces right aligned but above line is empty + + this is 3 spaces right aligned but above line is empty + + this is 4 spaces right aligned but above line is empty + + + Above 2 lines are empty + + + + above 3 lines are empty*/ + class c3 { + } + m.c3 = c3; + /** this is first line - aligned to class declaration + * this is 0 space + tab + * this is 1 space + tab + * this is 2 spaces + tab + * this is 3 spaces + tab + * this is 4 spaces + tab + * this is 5 spaces + tab + * this is 6 spaces + tab + * this is 7 spaces + tab + * this is 8 spaces + tab + * this is 9 spaces + tab + * this is 10 spaces + tab + * this is 11 spaces + tab + * this is 12 spaces + tab */ + class c4 { + } + m.c4 = c4; +})(m || (m = {})); + + +//// [commentsFormatting.d.ts] +declare namespace m { + /** this is first line - aligned to class declaration +* this is 4 spaces left aligned + * this is 3 spaces left aligned + * this is 2 spaces left aligned + * this is 1 spaces left aligned + * this is at same level as first line + * this is 1 spaces right aligned + * this is 2 spaces right aligned + * this is 3 spaces right aligned + * this is 4 spaces right aligned + * this is 5 spaces right aligned + * this is 6 spaces right aligned + * this is 7 spaces right aligned + * this is 8 spaces right aligned */ + class c { + } + /** this is first line - 4 spaces right aligned to class but in js file should be aligned to class declaration +* this is 8 spaces left aligned +* this is 7 spaces left aligned +* this is 6 spaces left aligned +* this is 5 spaces left aligned +* this is 4 spaces left aligned + * this is 3 spaces left aligned + * this is 2 spaces left aligned + * this is 1 spaces left aligned + * this is at same level as first line + * this is 1 spaces right aligned + * this is 2 spaces right aligned + * this is 3 spaces right aligned + * this is 4 spaces right aligned + * this is 5 spaces right aligned + * this is 6 spaces right aligned + * this is 7 spaces right aligned + * this is 8 spaces right aligned */ + class c2 { + } + /** this is comment with new lines in between + +this is 4 spaces left aligned but above line is empty + + this is 3 spaces left aligned but above line is empty + + this is 2 spaces left aligned but above line is empty + + this is 1 spaces left aligned but above line is empty + + this is at same level as first line but above line is empty + + this is 1 spaces right aligned but above line is empty + + this is 2 spaces right aligned but above line is empty + + this is 3 spaces right aligned but above line is empty + + this is 4 spaces right aligned but above line is empty + + + Above 2 lines are empty + + + + above 3 lines are empty*/ + class c3 { + } + /** this is first line - aligned to class declaration + * this is 0 space + tab + * this is 1 space + tab + * this is 2 spaces + tab + * this is 3 spaces + tab + * this is 4 spaces + tab + * this is 5 spaces + tab + * this is 6 spaces + tab + * this is 7 spaces + tab + * this is 8 spaces + tab + * this is 9 spaces + tab + * this is 10 spaces + tab + * this is 11 spaces + tab + * this is 12 spaces + tab */ + class c4 { + } +} diff --git a/tests/baselines/reference/commentsFormatting.symbols b/tests/baselines/reference/commentsFormatting(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/commentsFormatting.symbols rename to tests/baselines/reference/commentsFormatting(target=es2015).symbols diff --git a/tests/baselines/reference/commentsFormatting.types b/tests/baselines/reference/commentsFormatting(target=es2015).types similarity index 100% rename from tests/baselines/reference/commentsFormatting.types rename to tests/baselines/reference/commentsFormatting(target=es2015).types diff --git a/tests/baselines/reference/commentsFormatting.js b/tests/baselines/reference/commentsFormatting(target=es5).js similarity index 100% rename from tests/baselines/reference/commentsFormatting.js rename to tests/baselines/reference/commentsFormatting(target=es5).js diff --git a/tests/baselines/reference/commentsFormatting(target=es5).symbols b/tests/baselines/reference/commentsFormatting(target=es5).symbols new file mode 100644 index 0000000000000..adde19a1cb65e --- /dev/null +++ b/tests/baselines/reference/commentsFormatting(target=es5).symbols @@ -0,0 +1,94 @@ +//// [tests/cases/compiler/commentsFormatting.ts] //// + +=== commentsFormatting.ts === +namespace m { +>m : Symbol(m, Decl(commentsFormatting.ts, 0, 0)) + + /** this is first line - aligned to class declaration +* this is 4 spaces left aligned + * this is 3 spaces left aligned + * this is 2 spaces left aligned + * this is 1 spaces left aligned + * this is at same level as first line + * this is 1 spaces right aligned + * this is 2 spaces right aligned + * this is 3 spaces right aligned + * this is 4 spaces right aligned + * this is 5 spaces right aligned + * this is 6 spaces right aligned + * this is 7 spaces right aligned + * this is 8 spaces right aligned */ + export class c { +>c : Symbol(c, Decl(commentsFormatting.ts, 0, 13)) + } + + /** this is first line - 4 spaces right aligned to class but in js file should be aligned to class declaration +* this is 8 spaces left aligned + * this is 7 spaces left aligned + * this is 6 spaces left aligned + * this is 5 spaces left aligned + * this is 4 spaces left aligned + * this is 3 spaces left aligned + * this is 2 spaces left aligned + * this is 1 spaces left aligned + * this is at same level as first line + * this is 1 spaces right aligned + * this is 2 spaces right aligned + * this is 3 spaces right aligned + * this is 4 spaces right aligned + * this is 5 spaces right aligned + * this is 6 spaces right aligned + * this is 7 spaces right aligned + * this is 8 spaces right aligned */ + export class c2 { +>c2 : Symbol(c2, Decl(commentsFormatting.ts, 16, 5)) + } + + /** this is comment with new lines in between + +this is 4 spaces left aligned but above line is empty + + this is 3 spaces left aligned but above line is empty + + this is 2 spaces left aligned but above line is empty + + this is 1 spaces left aligned but above line is empty + + this is at same level as first line but above line is empty + + this is 1 spaces right aligned but above line is empty + + this is 2 spaces right aligned but above line is empty + + this is 3 spaces right aligned but above line is empty + + this is 4 spaces right aligned but above line is empty + + + Above 2 lines are empty + + + + above 3 lines are empty*/ + export class c3 { +>c3 : Symbol(c3, Decl(commentsFormatting.ts, 37, 5)) + } + + /** this is first line - aligned to class declaration + * this is 0 space + tab + * this is 1 space + tab + * this is 2 spaces + tab + * this is 3 spaces + tab + * this is 4 spaces + tab + * this is 5 spaces + tab + * this is 6 spaces + tab + * this is 7 spaces + tab + * this is 8 spaces + tab + * this is 9 spaces + tab + * this is 10 spaces + tab + * this is 11 spaces + tab + * this is 12 spaces + tab */ + export class c4 { +>c4 : Symbol(c4, Decl(commentsFormatting.ts, 66, 5)) + } +} diff --git a/tests/baselines/reference/commentsFormatting(target=es5).types b/tests/baselines/reference/commentsFormatting(target=es5).types new file mode 100644 index 0000000000000..c39463304320a --- /dev/null +++ b/tests/baselines/reference/commentsFormatting(target=es5).types @@ -0,0 +1,99 @@ +//// [tests/cases/compiler/commentsFormatting.ts] //// + +=== commentsFormatting.ts === +namespace m { +>m : typeof m +> : ^^^^^^^^ + + /** this is first line - aligned to class declaration +* this is 4 spaces left aligned + * this is 3 spaces left aligned + * this is 2 spaces left aligned + * this is 1 spaces left aligned + * this is at same level as first line + * this is 1 spaces right aligned + * this is 2 spaces right aligned + * this is 3 spaces right aligned + * this is 4 spaces right aligned + * this is 5 spaces right aligned + * this is 6 spaces right aligned + * this is 7 spaces right aligned + * this is 8 spaces right aligned */ + export class c { +>c : c +> : ^ + } + + /** this is first line - 4 spaces right aligned to class but in js file should be aligned to class declaration +* this is 8 spaces left aligned + * this is 7 spaces left aligned + * this is 6 spaces left aligned + * this is 5 spaces left aligned + * this is 4 spaces left aligned + * this is 3 spaces left aligned + * this is 2 spaces left aligned + * this is 1 spaces left aligned + * this is at same level as first line + * this is 1 spaces right aligned + * this is 2 spaces right aligned + * this is 3 spaces right aligned + * this is 4 spaces right aligned + * this is 5 spaces right aligned + * this is 6 spaces right aligned + * this is 7 spaces right aligned + * this is 8 spaces right aligned */ + export class c2 { +>c2 : c2 +> : ^^ + } + + /** this is comment with new lines in between + +this is 4 spaces left aligned but above line is empty + + this is 3 spaces left aligned but above line is empty + + this is 2 spaces left aligned but above line is empty + + this is 1 spaces left aligned but above line is empty + + this is at same level as first line but above line is empty + + this is 1 spaces right aligned but above line is empty + + this is 2 spaces right aligned but above line is empty + + this is 3 spaces right aligned but above line is empty + + this is 4 spaces right aligned but above line is empty + + + Above 2 lines are empty + + + + above 3 lines are empty*/ + export class c3 { +>c3 : c3 +> : ^^ + } + + /** this is first line - aligned to class declaration + * this is 0 space + tab + * this is 1 space + tab + * this is 2 spaces + tab + * this is 3 spaces + tab + * this is 4 spaces + tab + * this is 5 spaces + tab + * this is 6 spaces + tab + * this is 7 spaces + tab + * this is 8 spaces + tab + * this is 9 spaces + tab + * this is 10 spaces + tab + * this is 11 spaces + tab + * this is 12 spaces + tab */ + export class c4 { +>c4 : c4 +> : ^^ + } +} diff --git a/tests/baselines/reference/commentsFunction(target=es2015).js b/tests/baselines/reference/commentsFunction(target=es2015).js new file mode 100644 index 0000000000000..3fa990c4f5631 --- /dev/null +++ b/tests/baselines/reference/commentsFunction(target=es2015).js @@ -0,0 +1,122 @@ +//// [tests/cases/compiler/commentsFunction.ts] //// + +//// [commentsFunction.ts] +/** This comment should appear for foo*/ +function foo() { +} /* trailing comment of function */ +foo(); +/** This is comment for function signature*/ +function fooWithParameters(/** this is comment about a*/a: string, + /** this is comment for b*/ + b: number) { + var d = a; +} // trailing comment of function +fooWithParameters("a", 10); +/** fooFunc + * comment + */ +var fooFunc = function FooFunctionValue(/** fooFunctionValue param */ b: string) { + return b; +} + +/// lamdaFoo var comment +var lambdaFoo = /** this is lambda comment*/ (/**param a*/a: number, /**param b*/b: number) => a + b; +var lambddaNoVarComment = /** this is lambda multiplication*/ (/**param a*/a: number, /**param b*/b: number) => a * b; +lambdaFoo(10, 20); +lambddaNoVarComment(10, 20); + +function blah(a: string /* multiline trailing comment +multiline */) { +} + +function blah2(a: string /* single line multiple trailing comments */ /* second */) { +} + +function blah3(a: string // trailing commen single line + ) { +} + +lambdaFoo = (a, b) => a * b; // This is trailing comment + +/*leading comment*/() => 0; // Needs to be wrapped in parens to be a valid expression (not declaration) +/*leading comment*/(() => 0); //trailing comment + +function blah4(/*1*/a: string/*2*/,/*3*/b: string/*4*/) { +} + +function foo1() { + + // should emit this +} + +function foo2() { + /// This is some detached comment + + // should emit this leading comment of } too +} + + +//// [commentsFunction.js] +/** This comment should appear for foo*/ +function foo() { +} /* trailing comment of function */ +foo(); +/** This is comment for function signature*/ +function fooWithParameters(/** this is comment about a*/ a, +/** this is comment for b*/ +b) { + var d = a; +} // trailing comment of function +fooWithParameters("a", 10); +/** fooFunc + * comment + */ +var fooFunc = function FooFunctionValue(/** fooFunctionValue param */ b) { + return b; +}; +/// lamdaFoo var comment +var lambdaFoo = /** this is lambda comment*/ (/**param a*/ a, /**param b*/ b) => a + b; +var lambddaNoVarComment = /** this is lambda multiplication*/ (/**param a*/ a, /**param b*/ b) => a * b; +lambdaFoo(10, 20); +lambddaNoVarComment(10, 20); +function blah(a /* multiline trailing comment +multiline */) { +} +function blah2(a /* single line multiple trailing comments */ /* second */) { +} +function blah3(a // trailing commen single line +) { +} +lambdaFoo = (a, b) => a * b; // This is trailing comment +/*leading comment*/ () => 0; // Needs to be wrapped in parens to be a valid expression (not declaration) +/*leading comment*/ (() => 0); //trailing comment +function blah4(/*1*/ a /*2*/, /*3*/ b /*4*/) { +} +function foo1() { + // should emit this +} +function foo2() { + /// This is some detached comment + // should emit this leading comment of } too +} + + +//// [commentsFunction.d.ts] +/** This comment should appear for foo*/ +declare function foo(): void; +/** This is comment for function signature*/ +declare function fooWithParameters(/** this is comment about a*/ a: string, +/** this is comment for b*/ +b: number): void; +/** fooFunc + * comment + */ +declare var fooFunc: (/** fooFunctionValue param */ b: string) => string; +declare var lambdaFoo: (/**param a*/ a: number, /**param b*/ b: number) => number; +declare var lambddaNoVarComment: (/**param a*/ a: number, /**param b*/ b: number) => number; +declare function blah(a: string): void; +declare function blah2(a: string): void; +declare function blah3(a: string): void; +declare function blah4(/*1*/ a: string, /*3*/ b: string): void; +declare function foo1(): void; +declare function foo2(): void; diff --git a/tests/baselines/reference/commentsFunction.symbols b/tests/baselines/reference/commentsFunction(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/commentsFunction.symbols rename to tests/baselines/reference/commentsFunction(target=es2015).symbols diff --git a/tests/baselines/reference/commentsFunction.types b/tests/baselines/reference/commentsFunction(target=es2015).types similarity index 100% rename from tests/baselines/reference/commentsFunction.types rename to tests/baselines/reference/commentsFunction(target=es2015).types diff --git a/tests/baselines/reference/commentsFunction.js b/tests/baselines/reference/commentsFunction(target=es5).js similarity index 100% rename from tests/baselines/reference/commentsFunction.js rename to tests/baselines/reference/commentsFunction(target=es5).js diff --git a/tests/baselines/reference/commentsFunction(target=es5).symbols b/tests/baselines/reference/commentsFunction(target=es5).symbols new file mode 100644 index 0000000000000..1aa8d353467f5 --- /dev/null +++ b/tests/baselines/reference/commentsFunction(target=es5).symbols @@ -0,0 +1,110 @@ +//// [tests/cases/compiler/commentsFunction.ts] //// + +=== commentsFunction.ts === +/** This comment should appear for foo*/ +function foo() { +>foo : Symbol(foo, Decl(commentsFunction.ts, 0, 0)) + +} /* trailing comment of function */ +foo(); +>foo : Symbol(foo, Decl(commentsFunction.ts, 0, 0)) + +/** This is comment for function signature*/ +function fooWithParameters(/** this is comment about a*/a: string, +>fooWithParameters : Symbol(fooWithParameters, Decl(commentsFunction.ts, 3, 6)) +>a : Symbol(a, Decl(commentsFunction.ts, 5, 27)) + + /** this is comment for b*/ + b: number) { +>b : Symbol(b, Decl(commentsFunction.ts, 5, 66)) + + var d = a; +>d : Symbol(d, Decl(commentsFunction.ts, 8, 7)) +>a : Symbol(a, Decl(commentsFunction.ts, 5, 27)) + +} // trailing comment of function +fooWithParameters("a", 10); +>fooWithParameters : Symbol(fooWithParameters, Decl(commentsFunction.ts, 3, 6)) + +/** fooFunc + * comment + */ +var fooFunc = function FooFunctionValue(/** fooFunctionValue param */ b: string) { +>fooFunc : Symbol(fooFunc, Decl(commentsFunction.ts, 14, 3)) +>FooFunctionValue : Symbol(FooFunctionValue, Decl(commentsFunction.ts, 14, 13)) +>b : Symbol(b, Decl(commentsFunction.ts, 14, 40)) + + return b; +>b : Symbol(b, Decl(commentsFunction.ts, 14, 40)) +} + +/// lamdaFoo var comment +var lambdaFoo = /** this is lambda comment*/ (/**param a*/a: number, /**param b*/b: number) => a + b; +>lambdaFoo : Symbol(lambdaFoo, Decl(commentsFunction.ts, 19, 3)) +>a : Symbol(a, Decl(commentsFunction.ts, 19, 46)) +>b : Symbol(b, Decl(commentsFunction.ts, 19, 68)) +>a : Symbol(a, Decl(commentsFunction.ts, 19, 46)) +>b : Symbol(b, Decl(commentsFunction.ts, 19, 68)) + +var lambddaNoVarComment = /** this is lambda multiplication*/ (/**param a*/a: number, /**param b*/b: number) => a * b; +>lambddaNoVarComment : Symbol(lambddaNoVarComment, Decl(commentsFunction.ts, 20, 3)) +>a : Symbol(a, Decl(commentsFunction.ts, 20, 63)) +>b : Symbol(b, Decl(commentsFunction.ts, 20, 85)) +>a : Symbol(a, Decl(commentsFunction.ts, 20, 63)) +>b : Symbol(b, Decl(commentsFunction.ts, 20, 85)) + +lambdaFoo(10, 20); +>lambdaFoo : Symbol(lambdaFoo, Decl(commentsFunction.ts, 19, 3)) + +lambddaNoVarComment(10, 20); +>lambddaNoVarComment : Symbol(lambddaNoVarComment, Decl(commentsFunction.ts, 20, 3)) + +function blah(a: string /* multiline trailing comment +>blah : Symbol(blah, Decl(commentsFunction.ts, 22, 28)) +>a : Symbol(a, Decl(commentsFunction.ts, 24, 14)) + +multiline */) { +} + +function blah2(a: string /* single line multiple trailing comments */ /* second */) { +>blah2 : Symbol(blah2, Decl(commentsFunction.ts, 26, 1)) +>a : Symbol(a, Decl(commentsFunction.ts, 28, 15)) +} + +function blah3(a: string // trailing commen single line +>blah3 : Symbol(blah3, Decl(commentsFunction.ts, 29, 1)) +>a : Symbol(a, Decl(commentsFunction.ts, 31, 15)) + + ) { +} + +lambdaFoo = (a, b) => a * b; // This is trailing comment +>lambdaFoo : Symbol(lambdaFoo, Decl(commentsFunction.ts, 19, 3)) +>a : Symbol(a, Decl(commentsFunction.ts, 35, 13)) +>b : Symbol(b, Decl(commentsFunction.ts, 35, 15)) +>a : Symbol(a, Decl(commentsFunction.ts, 35, 13)) +>b : Symbol(b, Decl(commentsFunction.ts, 35, 15)) + +/*leading comment*/() => 0; // Needs to be wrapped in parens to be a valid expression (not declaration) +/*leading comment*/(() => 0); //trailing comment + +function blah4(/*1*/a: string/*2*/,/*3*/b: string/*4*/) { +>blah4 : Symbol(blah4, Decl(commentsFunction.ts, 38, 29)) +>a : Symbol(a, Decl(commentsFunction.ts, 40, 15)) +>b : Symbol(b, Decl(commentsFunction.ts, 40, 35)) +} + +function foo1() { +>foo1 : Symbol(foo1, Decl(commentsFunction.ts, 41, 1)) + + // should emit this +} + +function foo2() { +>foo2 : Symbol(foo2, Decl(commentsFunction.ts, 46, 1)) + + /// This is some detached comment + + // should emit this leading comment of } too +} + diff --git a/tests/baselines/reference/commentsFunction(target=es5).types b/tests/baselines/reference/commentsFunction(target=es5).types new file mode 100644 index 0000000000000..055b765235923 --- /dev/null +++ b/tests/baselines/reference/commentsFunction(target=es5).types @@ -0,0 +1,197 @@ +//// [tests/cases/compiler/commentsFunction.ts] //// + +=== commentsFunction.ts === +/** This comment should appear for foo*/ +function foo() { +>foo : () => void +> : ^^^^^^^^^^ + +} /* trailing comment of function */ +foo(); +>foo() : void +> : ^^^^ +>foo : () => void +> : ^^^^^^^^^^ + +/** This is comment for function signature*/ +function fooWithParameters(/** this is comment about a*/a: string, +>fooWithParameters : (a: string, b: number) => void +> : ^ ^^ ^^ ^^ ^^^^^^^^^ +>a : string +> : ^^^^^^ + + /** this is comment for b*/ + b: number) { +>b : number +> : ^^^^^^ + + var d = a; +>d : string +> : ^^^^^^ +>a : string +> : ^^^^^^ + +} // trailing comment of function +fooWithParameters("a", 10); +>fooWithParameters("a", 10) : void +> : ^^^^ +>fooWithParameters : (a: string, b: number) => void +> : ^ ^^ ^^ ^^ ^^^^^^^^^ +>"a" : "a" +> : ^^^ +>10 : 10 +> : ^^ + +/** fooFunc + * comment + */ +var fooFunc = function FooFunctionValue(/** fooFunctionValue param */ b: string) { +>fooFunc : (b: string) => string +> : ^ ^^ ^^^^^^^^^^^ +>function FooFunctionValue(/** fooFunctionValue param */ b: string) { return b;} : (b: string) => string +> : ^ ^^ ^^^^^^^^^^^ +>FooFunctionValue : (b: string) => string +> : ^ ^^ ^^^^^^^^^^^ +>b : string +> : ^^^^^^ + + return b; +>b : string +> : ^^^^^^ +} + +/// lamdaFoo var comment +var lambdaFoo = /** this is lambda comment*/ (/**param a*/a: number, /**param b*/b: number) => a + b; +>lambdaFoo : (a: number, b: number) => number +> : ^ ^^ ^^ ^^ ^^^^^^^^^^^ +>(/**param a*/a: number, /**param b*/b: number) => a + b : (a: number, b: number) => number +> : ^ ^^ ^^ ^^ ^^^^^^^^^^^ +>a : number +> : ^^^^^^ +>b : number +> : ^^^^^^ +>a + b : number +> : ^^^^^^ +>a : number +> : ^^^^^^ +>b : number +> : ^^^^^^ + +var lambddaNoVarComment = /** this is lambda multiplication*/ (/**param a*/a: number, /**param b*/b: number) => a * b; +>lambddaNoVarComment : (a: number, b: number) => number +> : ^ ^^ ^^ ^^ ^^^^^^^^^^^ +>(/**param a*/a: number, /**param b*/b: number) => a * b : (a: number, b: number) => number +> : ^ ^^ ^^ ^^ ^^^^^^^^^^^ +>a : number +> : ^^^^^^ +>b : number +> : ^^^^^^ +>a * b : number +> : ^^^^^^ +>a : number +> : ^^^^^^ +>b : number +> : ^^^^^^ + +lambdaFoo(10, 20); +>lambdaFoo(10, 20) : number +> : ^^^^^^ +>lambdaFoo : (a: number, b: number) => number +> : ^ ^^ ^^ ^^ ^^^^^^^^^^^ +>10 : 10 +> : ^^ +>20 : 20 +> : ^^ + +lambddaNoVarComment(10, 20); +>lambddaNoVarComment(10, 20) : number +> : ^^^^^^ +>lambddaNoVarComment : (a: number, b: number) => number +> : ^ ^^ ^^ ^^ ^^^^^^^^^^^ +>10 : 10 +> : ^^ +>20 : 20 +> : ^^ + +function blah(a: string /* multiline trailing comment +>blah : (a: string) => void +> : ^ ^^ ^^^^^^^^^ +>a : string +> : ^^^^^^ + +multiline */) { +} + +function blah2(a: string /* single line multiple trailing comments */ /* second */) { +>blah2 : (a: string) => void +> : ^ ^^ ^^^^^^^^^ +>a : string +> : ^^^^^^ +} + +function blah3(a: string // trailing commen single line +>blah3 : (a: string) => void +> : ^ ^^ ^^^^^^^^^ +>a : string +> : ^^^^^^ + + ) { +} + +lambdaFoo = (a, b) => a * b; // This is trailing comment +>lambdaFoo = (a, b) => a * b : (a: number, b: number) => number +> : ^ ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ +>lambdaFoo : (a: number, b: number) => number +> : ^ ^^ ^^ ^^ ^^^^^^^^^^^ +>(a, b) => a * b : (a: number, b: number) => number +> : ^ ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ +>a : number +> : ^^^^^^ +>b : number +> : ^^^^^^ +>a * b : number +> : ^^^^^^ +>a : number +> : ^^^^^^ +>b : number +> : ^^^^^^ + +/*leading comment*/() => 0; // Needs to be wrapped in parens to be a valid expression (not declaration) +>() => 0 : () => number +> : ^^^^^^^^^^^^ +>0 : 0 +> : ^ + +/*leading comment*/(() => 0); //trailing comment +>(() => 0) : () => number +> : ^^^^^^^^^^^^ +>() => 0 : () => number +> : ^^^^^^^^^^^^ +>0 : 0 +> : ^ + +function blah4(/*1*/a: string/*2*/,/*3*/b: string/*4*/) { +>blah4 : (a: string, b: string) => void +> : ^ ^^ ^^ ^^ ^^^^^^^^^ +>a : string +> : ^^^^^^ +>b : string +> : ^^^^^^ +} + +function foo1() { +>foo1 : () => void +> : ^^^^^^^^^^ + + // should emit this +} + +function foo2() { +>foo2 : () => void +> : ^^^^^^^^^^ + + /// This is some detached comment + + // should emit this leading comment of } too +} + diff --git a/tests/baselines/reference/commentsInheritance(target=es2015).js b/tests/baselines/reference/commentsInheritance(target=es2015).js new file mode 100644 index 0000000000000..b0805bc49afd1 --- /dev/null +++ b/tests/baselines/reference/commentsInheritance(target=es2015).js @@ -0,0 +1,347 @@ +//// [tests/cases/compiler/commentsInheritance.ts] //// + +//// [commentsInheritance.ts] +/** i1 is interface with properties*/ +interface i1 { + /** i1_p1*/ + i1_p1: number; + /** i1_f1*/ + i1_f1(): void; + /** i1_l1*/ + i1_l1: () => void; + // il_nc_p1 + i1_nc_p1: number; + i1_nc_f1(): void; + i1_nc_l1: () => void; + p1: number; + f1(): void; + l1: () => void; + nc_p1: number; + nc_f1(): void; + nc_l1: () => void; +} +class c1 implements i1 { + public i1_p1: number; + // i1_f1 + public i1_f1() { + } + public i1_l1: () => void; + public i1_nc_p1: number; + public i1_nc_f1() { + } + public i1_nc_l1: () => void; + /** c1_p1*/ + public p1: number; + /** c1_f1*/ + public f1() { + } + /** c1_l1*/ + public l1: () => void; + /** c1_nc_p1*/ + public nc_p1: number; + /** c1_nc_f1*/ + public nc_f1() { + } + /** c1_nc_l1*/ + public nc_l1: () => void; +} +var i1_i: i1; +var c1_i = new c1(); +// assign to interface +i1_i = c1_i; +class c2 { + /** c2 c2_p1*/ + public c2_p1: number; + /** c2 c2_f1*/ + public c2_f1() { + } + /** c2 c2_prop*/ + public get c2_prop() { + return 10; + } + public c2_nc_p1: number; + public c2_nc_f1() { + } + public get c2_nc_prop() { + return 10; + } + /** c2 p1*/ + public p1: number; + /** c2 f1*/ + public f1() { + } + /** c2 prop*/ + public get prop() { + return 10; + } + public nc_p1: number; + public nc_f1() { + } + public get nc_prop() { + return 10; + } + /** c2 constructor*/ + constructor(a: number) { + this.c2_p1 = a; + } +} +class c3 extends c2 { + constructor() { + super(10); + } + /** c3 p1*/ + public p1: number; + /** c3 f1*/ + public f1() { + } + /** c3 prop*/ + public get prop() { + return 10; + } + public nc_p1: number; + public nc_f1() { + } + public get nc_prop() { + return 10; + } +} +var c2_i = new c2(10); +var c3_i = new c3(); +// assign +c2_i = c3_i; +class c4 extends c2 { +} +var c4_i = new c4(10); +interface i2 { + /** i2_p1*/ + i2_p1: number; + /** i2_f1*/ + i2_f1(): void; + /** i2_l1*/ + i2_l1: () => void; + // i2_nc_p1 + i2_nc_p1: number; + i2_nc_f1(): void; + i2_nc_l1: () => void; + /** i2 p1*/ + p1: number; + /** i2 f1*/ + f1(): void; + /** i2 l1*/ + l1: () => void; + nc_p1: number; + nc_f1(): void; + nc_l1: () => void; +} +interface i3 extends i2 { + /** i3 p1 */ + p1: number; + /** + * i3 f1 + */ + f1(): void; + /** i3 l1*/ + l1: () => void; + nc_p1: number; + nc_f1(): void; + nc_l1: () => void; +} +var i2_i: i2; +var i3_i: i3; +// assign to interface +i2_i = i3_i; + + +//// [commentsInheritance.js] +class c1 { + // i1_f1 + i1_f1() { + } + i1_nc_f1() { + } + /** c1_f1*/ + f1() { + } + /** c1_nc_f1*/ + nc_f1() { + } +} +var i1_i; +var c1_i = new c1(); +// assign to interface +i1_i = c1_i; +class c2 { + /** c2 c2_f1*/ + c2_f1() { + } + /** c2 c2_prop*/ + get c2_prop() { + return 10; + } + c2_nc_f1() { + } + get c2_nc_prop() { + return 10; + } + /** c2 f1*/ + f1() { + } + /** c2 prop*/ + get prop() { + return 10; + } + nc_f1() { + } + get nc_prop() { + return 10; + } + /** c2 constructor*/ + constructor(a) { + this.c2_p1 = a; + } +} +class c3 extends c2 { + constructor() { + super(10); + } + /** c3 f1*/ + f1() { + } + /** c3 prop*/ + get prop() { + return 10; + } + nc_f1() { + } + get nc_prop() { + return 10; + } +} +var c2_i = new c2(10); +var c3_i = new c3(); +// assign +c2_i = c3_i; +class c4 extends c2 { +} +var c4_i = new c4(10); +var i2_i; +var i3_i; +// assign to interface +i2_i = i3_i; + + +//// [commentsInheritance.d.ts] +/** i1 is interface with properties*/ +interface i1 { + /** i1_p1*/ + i1_p1: number; + /** i1_f1*/ + i1_f1(): void; + /** i1_l1*/ + i1_l1: () => void; + i1_nc_p1: number; + i1_nc_f1(): void; + i1_nc_l1: () => void; + p1: number; + f1(): void; + l1: () => void; + nc_p1: number; + nc_f1(): void; + nc_l1: () => void; +} +declare class c1 implements i1 { + i1_p1: number; + i1_f1(): void; + i1_l1: () => void; + i1_nc_p1: number; + i1_nc_f1(): void; + i1_nc_l1: () => void; + /** c1_p1*/ + p1: number; + /** c1_f1*/ + f1(): void; + /** c1_l1*/ + l1: () => void; + /** c1_nc_p1*/ + nc_p1: number; + /** c1_nc_f1*/ + nc_f1(): void; + /** c1_nc_l1*/ + nc_l1: () => void; +} +declare var i1_i: i1; +declare var c1_i: c1; +declare class c2 { + /** c2 c2_p1*/ + c2_p1: number; + /** c2 c2_f1*/ + c2_f1(): void; + /** c2 c2_prop*/ + get c2_prop(): number; + c2_nc_p1: number; + c2_nc_f1(): void; + get c2_nc_prop(): number; + /** c2 p1*/ + p1: number; + /** c2 f1*/ + f1(): void; + /** c2 prop*/ + get prop(): number; + nc_p1: number; + nc_f1(): void; + get nc_prop(): number; + /** c2 constructor*/ + constructor(a: number); +} +declare class c3 extends c2 { + constructor(); + /** c3 p1*/ + p1: number; + /** c3 f1*/ + f1(): void; + /** c3 prop*/ + get prop(): number; + nc_p1: number; + nc_f1(): void; + get nc_prop(): number; +} +declare var c2_i: c2; +declare var c3_i: c3; +declare class c4 extends c2 { +} +declare var c4_i: c4; +interface i2 { + /** i2_p1*/ + i2_p1: number; + /** i2_f1*/ + i2_f1(): void; + /** i2_l1*/ + i2_l1: () => void; + i2_nc_p1: number; + i2_nc_f1(): void; + i2_nc_l1: () => void; + /** i2 p1*/ + p1: number; + /** i2 f1*/ + f1(): void; + /** i2 l1*/ + l1: () => void; + nc_p1: number; + nc_f1(): void; + nc_l1: () => void; +} +interface i3 extends i2 { + /** i3 p1 */ + p1: number; + /** + * i3 f1 + */ + f1(): void; + /** i3 l1*/ + l1: () => void; + nc_p1: number; + nc_f1(): void; + nc_l1: () => void; +} +declare var i2_i: i2; +declare var i3_i: i3; diff --git a/tests/baselines/reference/commentsInheritance.symbols b/tests/baselines/reference/commentsInheritance(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/commentsInheritance.symbols rename to tests/baselines/reference/commentsInheritance(target=es2015).symbols diff --git a/tests/baselines/reference/commentsInheritance.types b/tests/baselines/reference/commentsInheritance(target=es2015).types similarity index 100% rename from tests/baselines/reference/commentsInheritance.types rename to tests/baselines/reference/commentsInheritance(target=es2015).types diff --git a/tests/baselines/reference/commentsInheritance.js b/tests/baselines/reference/commentsInheritance(target=es5).js similarity index 100% rename from tests/baselines/reference/commentsInheritance.js rename to tests/baselines/reference/commentsInheritance(target=es5).js diff --git a/tests/baselines/reference/commentsInheritance(target=es5).symbols b/tests/baselines/reference/commentsInheritance(target=es5).symbols new file mode 100644 index 0000000000000..e7013f093a69e --- /dev/null +++ b/tests/baselines/reference/commentsInheritance(target=es5).symbols @@ -0,0 +1,312 @@ +//// [tests/cases/compiler/commentsInheritance.ts] //// + +=== commentsInheritance.ts === +/** i1 is interface with properties*/ +interface i1 { +>i1 : Symbol(i1, Decl(commentsInheritance.ts, 0, 0)) + + /** i1_p1*/ + i1_p1: number; +>i1_p1 : Symbol(i1.i1_p1, Decl(commentsInheritance.ts, 1, 14)) + + /** i1_f1*/ + i1_f1(): void; +>i1_f1 : Symbol(i1.i1_f1, Decl(commentsInheritance.ts, 3, 18)) + + /** i1_l1*/ + i1_l1: () => void; +>i1_l1 : Symbol(i1.i1_l1, Decl(commentsInheritance.ts, 5, 18)) + + // il_nc_p1 + i1_nc_p1: number; +>i1_nc_p1 : Symbol(i1.i1_nc_p1, Decl(commentsInheritance.ts, 7, 22)) + + i1_nc_f1(): void; +>i1_nc_f1 : Symbol(i1.i1_nc_f1, Decl(commentsInheritance.ts, 9, 21)) + + i1_nc_l1: () => void; +>i1_nc_l1 : Symbol(i1.i1_nc_l1, Decl(commentsInheritance.ts, 10, 21)) + + p1: number; +>p1 : Symbol(i1.p1, Decl(commentsInheritance.ts, 11, 25)) + + f1(): void; +>f1 : Symbol(i1.f1, Decl(commentsInheritance.ts, 12, 15)) + + l1: () => void; +>l1 : Symbol(i1.l1, Decl(commentsInheritance.ts, 13, 15)) + + nc_p1: number; +>nc_p1 : Symbol(i1.nc_p1, Decl(commentsInheritance.ts, 14, 19)) + + nc_f1(): void; +>nc_f1 : Symbol(i1.nc_f1, Decl(commentsInheritance.ts, 15, 18)) + + nc_l1: () => void; +>nc_l1 : Symbol(i1.nc_l1, Decl(commentsInheritance.ts, 16, 18)) +} +class c1 implements i1 { +>c1 : Symbol(c1, Decl(commentsInheritance.ts, 18, 1)) +>i1 : Symbol(i1, Decl(commentsInheritance.ts, 0, 0)) + + public i1_p1: number; +>i1_p1 : Symbol(c1.i1_p1, Decl(commentsInheritance.ts, 19, 24)) + + // i1_f1 + public i1_f1() { +>i1_f1 : Symbol(c1.i1_f1, Decl(commentsInheritance.ts, 20, 25)) + } + public i1_l1: () => void; +>i1_l1 : Symbol(c1.i1_l1, Decl(commentsInheritance.ts, 23, 5)) + + public i1_nc_p1: number; +>i1_nc_p1 : Symbol(c1.i1_nc_p1, Decl(commentsInheritance.ts, 24, 29)) + + public i1_nc_f1() { +>i1_nc_f1 : Symbol(c1.i1_nc_f1, Decl(commentsInheritance.ts, 25, 28)) + } + public i1_nc_l1: () => void; +>i1_nc_l1 : Symbol(c1.i1_nc_l1, Decl(commentsInheritance.ts, 27, 5)) + + /** c1_p1*/ + public p1: number; +>p1 : Symbol(c1.p1, Decl(commentsInheritance.ts, 28, 32)) + + /** c1_f1*/ + public f1() { +>f1 : Symbol(c1.f1, Decl(commentsInheritance.ts, 30, 22)) + } + /** c1_l1*/ + public l1: () => void; +>l1 : Symbol(c1.l1, Decl(commentsInheritance.ts, 33, 5)) + + /** c1_nc_p1*/ + public nc_p1: number; +>nc_p1 : Symbol(c1.nc_p1, Decl(commentsInheritance.ts, 35, 26)) + + /** c1_nc_f1*/ + public nc_f1() { +>nc_f1 : Symbol(c1.nc_f1, Decl(commentsInheritance.ts, 37, 25)) + } + /** c1_nc_l1*/ + public nc_l1: () => void; +>nc_l1 : Symbol(c1.nc_l1, Decl(commentsInheritance.ts, 40, 5)) +} +var i1_i: i1; +>i1_i : Symbol(i1_i, Decl(commentsInheritance.ts, 44, 3)) +>i1 : Symbol(i1, Decl(commentsInheritance.ts, 0, 0)) + +var c1_i = new c1(); +>c1_i : Symbol(c1_i, Decl(commentsInheritance.ts, 45, 3)) +>c1 : Symbol(c1, Decl(commentsInheritance.ts, 18, 1)) + +// assign to interface +i1_i = c1_i; +>i1_i : Symbol(i1_i, Decl(commentsInheritance.ts, 44, 3)) +>c1_i : Symbol(c1_i, Decl(commentsInheritance.ts, 45, 3)) + +class c2 { +>c2 : Symbol(c2, Decl(commentsInheritance.ts, 47, 12)) + + /** c2 c2_p1*/ + public c2_p1: number; +>c2_p1 : Symbol(c2.c2_p1, Decl(commentsInheritance.ts, 48, 10)) + + /** c2 c2_f1*/ + public c2_f1() { +>c2_f1 : Symbol(c2.c2_f1, Decl(commentsInheritance.ts, 50, 25)) + } + /** c2 c2_prop*/ + public get c2_prop() { +>c2_prop : Symbol(c2.c2_prop, Decl(commentsInheritance.ts, 53, 5)) + + return 10; + } + public c2_nc_p1: number; +>c2_nc_p1 : Symbol(c2.c2_nc_p1, Decl(commentsInheritance.ts, 57, 5)) + + public c2_nc_f1() { +>c2_nc_f1 : Symbol(c2.c2_nc_f1, Decl(commentsInheritance.ts, 58, 28)) + } + public get c2_nc_prop() { +>c2_nc_prop : Symbol(c2.c2_nc_prop, Decl(commentsInheritance.ts, 60, 5)) + + return 10; + } + /** c2 p1*/ + public p1: number; +>p1 : Symbol(c2.p1, Decl(commentsInheritance.ts, 63, 5)) + + /** c2 f1*/ + public f1() { +>f1 : Symbol(c2.f1, Decl(commentsInheritance.ts, 65, 22)) + } + /** c2 prop*/ + public get prop() { +>prop : Symbol(c2.prop, Decl(commentsInheritance.ts, 68, 5)) + + return 10; + } + public nc_p1: number; +>nc_p1 : Symbol(c2.nc_p1, Decl(commentsInheritance.ts, 72, 5)) + + public nc_f1() { +>nc_f1 : Symbol(c2.nc_f1, Decl(commentsInheritance.ts, 73, 25)) + } + public get nc_prop() { +>nc_prop : Symbol(c2.nc_prop, Decl(commentsInheritance.ts, 75, 5)) + + return 10; + } + /** c2 constructor*/ + constructor(a: number) { +>a : Symbol(a, Decl(commentsInheritance.ts, 80, 16)) + + this.c2_p1 = a; +>this.c2_p1 : Symbol(c2.c2_p1, Decl(commentsInheritance.ts, 48, 10)) +>this : Symbol(c2, Decl(commentsInheritance.ts, 47, 12)) +>c2_p1 : Symbol(c2.c2_p1, Decl(commentsInheritance.ts, 48, 10)) +>a : Symbol(a, Decl(commentsInheritance.ts, 80, 16)) + } +} +class c3 extends c2 { +>c3 : Symbol(c3, Decl(commentsInheritance.ts, 83, 1)) +>c2 : Symbol(c2, Decl(commentsInheritance.ts, 47, 12)) + + constructor() { + super(10); +>super : Symbol(c2, Decl(commentsInheritance.ts, 47, 12)) + } + /** c3 p1*/ + public p1: number; +>p1 : Symbol(c3.p1, Decl(commentsInheritance.ts, 87, 5)) + + /** c3 f1*/ + public f1() { +>f1 : Symbol(c3.f1, Decl(commentsInheritance.ts, 89, 22)) + } + /** c3 prop*/ + public get prop() { +>prop : Symbol(c3.prop, Decl(commentsInheritance.ts, 92, 5)) + + return 10; + } + public nc_p1: number; +>nc_p1 : Symbol(c3.nc_p1, Decl(commentsInheritance.ts, 96, 5)) + + public nc_f1() { +>nc_f1 : Symbol(c3.nc_f1, Decl(commentsInheritance.ts, 97, 25)) + } + public get nc_prop() { +>nc_prop : Symbol(c3.nc_prop, Decl(commentsInheritance.ts, 99, 5)) + + return 10; + } +} +var c2_i = new c2(10); +>c2_i : Symbol(c2_i, Decl(commentsInheritance.ts, 104, 3)) +>c2 : Symbol(c2, Decl(commentsInheritance.ts, 47, 12)) + +var c3_i = new c3(); +>c3_i : Symbol(c3_i, Decl(commentsInheritance.ts, 105, 3)) +>c3 : Symbol(c3, Decl(commentsInheritance.ts, 83, 1)) + +// assign +c2_i = c3_i; +>c2_i : Symbol(c2_i, Decl(commentsInheritance.ts, 104, 3)) +>c3_i : Symbol(c3_i, Decl(commentsInheritance.ts, 105, 3)) + +class c4 extends c2 { +>c4 : Symbol(c4, Decl(commentsInheritance.ts, 107, 12)) +>c2 : Symbol(c2, Decl(commentsInheritance.ts, 47, 12)) +} +var c4_i = new c4(10); +>c4_i : Symbol(c4_i, Decl(commentsInheritance.ts, 110, 3)) +>c4 : Symbol(c4, Decl(commentsInheritance.ts, 107, 12)) + +interface i2 { +>i2 : Symbol(i2, Decl(commentsInheritance.ts, 110, 22)) + + /** i2_p1*/ + i2_p1: number; +>i2_p1 : Symbol(i2.i2_p1, Decl(commentsInheritance.ts, 111, 14)) + + /** i2_f1*/ + i2_f1(): void; +>i2_f1 : Symbol(i2.i2_f1, Decl(commentsInheritance.ts, 113, 18)) + + /** i2_l1*/ + i2_l1: () => void; +>i2_l1 : Symbol(i2.i2_l1, Decl(commentsInheritance.ts, 115, 18)) + + // i2_nc_p1 + i2_nc_p1: number; +>i2_nc_p1 : Symbol(i2.i2_nc_p1, Decl(commentsInheritance.ts, 117, 22)) + + i2_nc_f1(): void; +>i2_nc_f1 : Symbol(i2.i2_nc_f1, Decl(commentsInheritance.ts, 119, 21)) + + i2_nc_l1: () => void; +>i2_nc_l1 : Symbol(i2.i2_nc_l1, Decl(commentsInheritance.ts, 120, 21)) + + /** i2 p1*/ + p1: number; +>p1 : Symbol(i2.p1, Decl(commentsInheritance.ts, 121, 25)) + + /** i2 f1*/ + f1(): void; +>f1 : Symbol(i2.f1, Decl(commentsInheritance.ts, 123, 15)) + + /** i2 l1*/ + l1: () => void; +>l1 : Symbol(i2.l1, Decl(commentsInheritance.ts, 125, 15)) + + nc_p1: number; +>nc_p1 : Symbol(i2.nc_p1, Decl(commentsInheritance.ts, 127, 19)) + + nc_f1(): void; +>nc_f1 : Symbol(i2.nc_f1, Decl(commentsInheritance.ts, 128, 18)) + + nc_l1: () => void; +>nc_l1 : Symbol(i2.nc_l1, Decl(commentsInheritance.ts, 129, 18)) +} +interface i3 extends i2 { +>i3 : Symbol(i3, Decl(commentsInheritance.ts, 131, 1)) +>i2 : Symbol(i2, Decl(commentsInheritance.ts, 110, 22)) + + /** i3 p1 */ + p1: number; +>p1 : Symbol(i3.p1, Decl(commentsInheritance.ts, 132, 25)) + + /** + * i3 f1 + */ + f1(): void; +>f1 : Symbol(i3.f1, Decl(commentsInheritance.ts, 134, 15)) + + /** i3 l1*/ + l1: () => void; +>l1 : Symbol(i3.l1, Decl(commentsInheritance.ts, 138, 15)) + + nc_p1: number; +>nc_p1 : Symbol(i3.nc_p1, Decl(commentsInheritance.ts, 140, 19)) + + nc_f1(): void; +>nc_f1 : Symbol(i3.nc_f1, Decl(commentsInheritance.ts, 141, 18)) + + nc_l1: () => void; +>nc_l1 : Symbol(i3.nc_l1, Decl(commentsInheritance.ts, 142, 18)) +} +var i2_i: i2; +>i2_i : Symbol(i2_i, Decl(commentsInheritance.ts, 145, 3)) +>i2 : Symbol(i2, Decl(commentsInheritance.ts, 110, 22)) + +var i3_i: i3; +>i3_i : Symbol(i3_i, Decl(commentsInheritance.ts, 146, 3)) +>i3 : Symbol(i3, Decl(commentsInheritance.ts, 131, 1)) + +// assign to interface +i2_i = i3_i; +>i2_i : Symbol(i2_i, Decl(commentsInheritance.ts, 145, 3)) +>i3_i : Symbol(i3_i, Decl(commentsInheritance.ts, 146, 3)) + diff --git a/tests/baselines/reference/commentsInheritance(target=es5).types b/tests/baselines/reference/commentsInheritance(target=es5).types new file mode 100644 index 0000000000000..2169f4eca50e1 --- /dev/null +++ b/tests/baselines/reference/commentsInheritance(target=es5).types @@ -0,0 +1,426 @@ +//// [tests/cases/compiler/commentsInheritance.ts] //// + +=== commentsInheritance.ts === +/** i1 is interface with properties*/ +interface i1 { + /** i1_p1*/ + i1_p1: number; +>i1_p1 : number +> : ^^^^^^ + + /** i1_f1*/ + i1_f1(): void; +>i1_f1 : () => void +> : ^^^^^^ + + /** i1_l1*/ + i1_l1: () => void; +>i1_l1 : () => void +> : ^^^^^^ + + // il_nc_p1 + i1_nc_p1: number; +>i1_nc_p1 : number +> : ^^^^^^ + + i1_nc_f1(): void; +>i1_nc_f1 : () => void +> : ^^^^^^ + + i1_nc_l1: () => void; +>i1_nc_l1 : () => void +> : ^^^^^^ + + p1: number; +>p1 : number +> : ^^^^^^ + + f1(): void; +>f1 : () => void +> : ^^^^^^ + + l1: () => void; +>l1 : () => void +> : ^^^^^^ + + nc_p1: number; +>nc_p1 : number +> : ^^^^^^ + + nc_f1(): void; +>nc_f1 : () => void +> : ^^^^^^ + + nc_l1: () => void; +>nc_l1 : () => void +> : ^^^^^^ +} +class c1 implements i1 { +>c1 : c1 +> : ^^ + + public i1_p1: number; +>i1_p1 : number +> : ^^^^^^ + + // i1_f1 + public i1_f1() { +>i1_f1 : () => void +> : ^^^^^^^^^^ + } + public i1_l1: () => void; +>i1_l1 : () => void +> : ^^^^^^ + + public i1_nc_p1: number; +>i1_nc_p1 : number +> : ^^^^^^ + + public i1_nc_f1() { +>i1_nc_f1 : () => void +> : ^^^^^^^^^^ + } + public i1_nc_l1: () => void; +>i1_nc_l1 : () => void +> : ^^^^^^ + + /** c1_p1*/ + public p1: number; +>p1 : number +> : ^^^^^^ + + /** c1_f1*/ + public f1() { +>f1 : () => void +> : ^^^^^^^^^^ + } + /** c1_l1*/ + public l1: () => void; +>l1 : () => void +> : ^^^^^^ + + /** c1_nc_p1*/ + public nc_p1: number; +>nc_p1 : number +> : ^^^^^^ + + /** c1_nc_f1*/ + public nc_f1() { +>nc_f1 : () => void +> : ^^^^^^^^^^ + } + /** c1_nc_l1*/ + public nc_l1: () => void; +>nc_l1 : () => void +> : ^^^^^^ +} +var i1_i: i1; +>i1_i : i1 +> : ^^ + +var c1_i = new c1(); +>c1_i : c1 +> : ^^ +>new c1() : c1 +> : ^^ +>c1 : typeof c1 +> : ^^^^^^^^^ + +// assign to interface +i1_i = c1_i; +>i1_i = c1_i : c1 +> : ^^ +>i1_i : i1 +> : ^^ +>c1_i : c1 +> : ^^ + +class c2 { +>c2 : c2 +> : ^^ + + /** c2 c2_p1*/ + public c2_p1: number; +>c2_p1 : number +> : ^^^^^^ + + /** c2 c2_f1*/ + public c2_f1() { +>c2_f1 : () => void +> : ^^^^^^^^^^ + } + /** c2 c2_prop*/ + public get c2_prop() { +>c2_prop : number +> : ^^^^^^ + + return 10; +>10 : 10 +> : ^^ + } + public c2_nc_p1: number; +>c2_nc_p1 : number +> : ^^^^^^ + + public c2_nc_f1() { +>c2_nc_f1 : () => void +> : ^^^^^^^^^^ + } + public get c2_nc_prop() { +>c2_nc_prop : number +> : ^^^^^^ + + return 10; +>10 : 10 +> : ^^ + } + /** c2 p1*/ + public p1: number; +>p1 : number +> : ^^^^^^ + + /** c2 f1*/ + public f1() { +>f1 : () => void +> : ^^^^^^^^^^ + } + /** c2 prop*/ + public get prop() { +>prop : number +> : ^^^^^^ + + return 10; +>10 : 10 +> : ^^ + } + public nc_p1: number; +>nc_p1 : number +> : ^^^^^^ + + public nc_f1() { +>nc_f1 : () => void +> : ^^^^^^^^^^ + } + public get nc_prop() { +>nc_prop : number +> : ^^^^^^ + + return 10; +>10 : 10 +> : ^^ + } + /** c2 constructor*/ + constructor(a: number) { +>a : number +> : ^^^^^^ + + this.c2_p1 = a; +>this.c2_p1 = a : number +> : ^^^^^^ +>this.c2_p1 : number +> : ^^^^^^ +>this : this +> : ^^^^ +>c2_p1 : number +> : ^^^^^^ +>a : number +> : ^^^^^^ + } +} +class c3 extends c2 { +>c3 : c3 +> : ^^ +>c2 : c2 +> : ^^ + + constructor() { + super(10); +>super(10) : void +> : ^^^^ +>super : typeof c2 +> : ^^^^^^^^^ +>10 : 10 +> : ^^ + } + /** c3 p1*/ + public p1: number; +>p1 : number +> : ^^^^^^ + + /** c3 f1*/ + public f1() { +>f1 : () => void +> : ^^^^^^^^^^ + } + /** c3 prop*/ + public get prop() { +>prop : number +> : ^^^^^^ + + return 10; +>10 : 10 +> : ^^ + } + public nc_p1: number; +>nc_p1 : number +> : ^^^^^^ + + public nc_f1() { +>nc_f1 : () => void +> : ^^^^^^^^^^ + } + public get nc_prop() { +>nc_prop : number +> : ^^^^^^ + + return 10; +>10 : 10 +> : ^^ + } +} +var c2_i = new c2(10); +>c2_i : c2 +> : ^^ +>new c2(10) : c2 +> : ^^ +>c2 : typeof c2 +> : ^^^^^^^^^ +>10 : 10 +> : ^^ + +var c3_i = new c3(); +>c3_i : c3 +> : ^^ +>new c3() : c3 +> : ^^ +>c3 : typeof c3 +> : ^^^^^^^^^ + +// assign +c2_i = c3_i; +>c2_i = c3_i : c3 +> : ^^ +>c2_i : c2 +> : ^^ +>c3_i : c3 +> : ^^ + +class c4 extends c2 { +>c4 : c4 +> : ^^ +>c2 : c2 +> : ^^ +} +var c4_i = new c4(10); +>c4_i : c4 +> : ^^ +>new c4(10) : c4 +> : ^^ +>c4 : typeof c4 +> : ^^^^^^^^^ +>10 : 10 +> : ^^ + +interface i2 { + /** i2_p1*/ + i2_p1: number; +>i2_p1 : number +> : ^^^^^^ + + /** i2_f1*/ + i2_f1(): void; +>i2_f1 : () => void +> : ^^^^^^ + + /** i2_l1*/ + i2_l1: () => void; +>i2_l1 : () => void +> : ^^^^^^ + + // i2_nc_p1 + i2_nc_p1: number; +>i2_nc_p1 : number +> : ^^^^^^ + + i2_nc_f1(): void; +>i2_nc_f1 : () => void +> : ^^^^^^ + + i2_nc_l1: () => void; +>i2_nc_l1 : () => void +> : ^^^^^^ + + /** i2 p1*/ + p1: number; +>p1 : number +> : ^^^^^^ + + /** i2 f1*/ + f1(): void; +>f1 : () => void +> : ^^^^^^ + + /** i2 l1*/ + l1: () => void; +>l1 : () => void +> : ^^^^^^ + + nc_p1: number; +>nc_p1 : number +> : ^^^^^^ + + nc_f1(): void; +>nc_f1 : () => void +> : ^^^^^^ + + nc_l1: () => void; +>nc_l1 : () => void +> : ^^^^^^ +} +interface i3 extends i2 { + /** i3 p1 */ + p1: number; +>p1 : number +> : ^^^^^^ + + /** + * i3 f1 + */ + f1(): void; +>f1 : () => void +> : ^^^^^^ + + /** i3 l1*/ + l1: () => void; +>l1 : () => void +> : ^^^^^^ + + nc_p1: number; +>nc_p1 : number +> : ^^^^^^ + + nc_f1(): void; +>nc_f1 : () => void +> : ^^^^^^ + + nc_l1: () => void; +>nc_l1 : () => void +> : ^^^^^^ +} +var i2_i: i2; +>i2_i : i2 +> : ^^ + +var i3_i: i3; +>i3_i : i3 +> : ^^ + +// assign to interface +i2_i = i3_i; +>i2_i = i3_i : i3 +> : ^^ +>i2_i : i2 +> : ^^ +>i3_i : i3 +> : ^^ + diff --git a/tests/baselines/reference/commentsInterface(target=es2015).js b/tests/baselines/reference/commentsInterface(target=es2015).js new file mode 100644 index 0000000000000..b9c2653782936 --- /dev/null +++ b/tests/baselines/reference/commentsInterface(target=es2015).js @@ -0,0 +1,162 @@ +//// [tests/cases/compiler/commentsInterface.ts] //// + +//// [commentsInterface.ts] +/** this is interface 1*/ +interface i1 { +} +var i1_i: i1; +interface nc_i1 { +} +var nc_i1_i: nc_i1; +/** this is interface 2 with memebers*/ +interface i2 { + /** this is x*/ + x: number; + /** this is foo*/ + foo: (/**param help*/b: number) => string; + /** this is indexer*/ + [/**string param*/i: string]: any; + /**new method*/ + new (/** param*/i: i1); + nc_x: number; + nc_foo: (b: number) => string; + [i: number]: number; + /** this is call signature*/ + (/**paramhelp a*/a: number,/**paramhelp b*/ b: number) : number; + /** this is fnfoo*/ + fnfoo(/**param help*/b: number): string; + nc_fnfoo(b: number): string; + // nc_y + nc_y: number; +} +var i2_i: i2; +var i2_i_x = i2_i.x; +var i2_i_foo = i2_i.foo; +var i2_i_foo_r = i2_i.foo(30); +var i2_i_i2_si = i2_i["hello"]; +var i2_i_i2_ii = i2_i[30]; +var i2_i_n = new i2_i(i1_i); +var i2_i_nc_x = i2_i.nc_x; +var i2_i_nc_foo = i2_i.nc_foo; +var i2_i_nc_foo_r = i2_i.nc_foo(30); +var i2_i_r = i2_i(10, 20); +var i2_i_fnfoo = i2_i.fnfoo; +var i2_i_fnfoo_r = i2_i.fnfoo(10); +var i2_i_nc_fnfoo = i2_i.nc_fnfoo; +var i2_i_nc_fnfoo_r = i2_i.nc_fnfoo(10); +interface i3 { + /** Comment i3 x*/ + x: number; + /** Function i3 f*/ + f(/**number parameter*/a: number): string; + /** i3 l*/ + l: (/**comment i3 l b*/b: number) => string; + nc_x: number; + nc_f(a: number): string; + nc_l: (b: number) => string; +} +var i3_i: i3; +i3_i = { + f: /**own f*/ (/**i3_i a*/a: number) => "Hello" + a, + l: this.f, + /** own x*/ + x: this.f(10), + nc_x: this.l(this.x), + nc_f: this.f, + nc_l: this.l +}; +i3_i.f(10); +i3_i.l(10); +i3_i.nc_f(10); +i3_i.nc_l(10); + + +//// [commentsInterface.js] +var i1_i; +var nc_i1_i; +var i2_i; +var i2_i_x = i2_i.x; +var i2_i_foo = i2_i.foo; +var i2_i_foo_r = i2_i.foo(30); +var i2_i_i2_si = i2_i["hello"]; +var i2_i_i2_ii = i2_i[30]; +var i2_i_n = new i2_i(i1_i); +var i2_i_nc_x = i2_i.nc_x; +var i2_i_nc_foo = i2_i.nc_foo; +var i2_i_nc_foo_r = i2_i.nc_foo(30); +var i2_i_r = i2_i(10, 20); +var i2_i_fnfoo = i2_i.fnfoo; +var i2_i_fnfoo_r = i2_i.fnfoo(10); +var i2_i_nc_fnfoo = i2_i.nc_fnfoo; +var i2_i_nc_fnfoo_r = i2_i.nc_fnfoo(10); +var i3_i; +i3_i = { + f: /**own f*/ (/**i3_i a*/ a) => "Hello" + a, + l: this.f, + /** own x*/ + x: this.f(10), + nc_x: this.l(this.x), + nc_f: this.f, + nc_l: this.l +}; +i3_i.f(10); +i3_i.l(10); +i3_i.nc_f(10); +i3_i.nc_l(10); + + +//// [commentsInterface.d.ts] +/** this is interface 1*/ +interface i1 { +} +declare var i1_i: i1; +interface nc_i1 { +} +declare var nc_i1_i: nc_i1; +/** this is interface 2 with memebers*/ +interface i2 { + /** this is x*/ + x: number; + /** this is foo*/ + foo: (/**param help*/ b: number) => string; + /** this is indexer*/ + [/**string param*/ i: string]: any; + /**new method*/ + new (/** param*/ i: i1): any; + nc_x: number; + nc_foo: (b: number) => string; + [i: number]: number; + /** this is call signature*/ + (/**paramhelp a*/ a: number, /**paramhelp b*/ b: number): number; + /** this is fnfoo*/ + fnfoo(/**param help*/ b: number): string; + nc_fnfoo(b: number): string; + nc_y: number; +} +declare var i2_i: i2; +declare var i2_i_x: number; +declare var i2_i_foo: (b: number) => string; +declare var i2_i_foo_r: string; +declare var i2_i_i2_si: any; +declare var i2_i_i2_ii: number; +declare var i2_i_n: any; +declare var i2_i_nc_x: number; +declare var i2_i_nc_foo: (b: number) => string; +declare var i2_i_nc_foo_r: string; +declare var i2_i_r: number; +declare var i2_i_fnfoo: (b: number) => string; +declare var i2_i_fnfoo_r: string; +declare var i2_i_nc_fnfoo: (b: number) => string; +declare var i2_i_nc_fnfoo_r: string; +interface i3 { + /** Comment i3 x*/ + x: number; + /** Function i3 f*/ + f(/**number parameter*/ a: number): string; + /** i3 l*/ + l: (/**comment i3 l b*/ b: number) => string; + nc_x: number; + nc_f(a: number): string; + nc_l: (b: number) => string; +} +declare var i3_i: i3; diff --git a/tests/baselines/reference/commentsInterface.symbols b/tests/baselines/reference/commentsInterface(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/commentsInterface.symbols rename to tests/baselines/reference/commentsInterface(target=es2015).symbols diff --git a/tests/baselines/reference/commentsInterface.types b/tests/baselines/reference/commentsInterface(target=es2015).types similarity index 100% rename from tests/baselines/reference/commentsInterface.types rename to tests/baselines/reference/commentsInterface(target=es2015).types diff --git a/tests/baselines/reference/commentsInterface.js b/tests/baselines/reference/commentsInterface(target=es5).js similarity index 100% rename from tests/baselines/reference/commentsInterface.js rename to tests/baselines/reference/commentsInterface(target=es5).js diff --git a/tests/baselines/reference/commentsInterface(target=es5).symbols b/tests/baselines/reference/commentsInterface(target=es5).symbols new file mode 100644 index 0000000000000..3a4b31d6a8edd --- /dev/null +++ b/tests/baselines/reference/commentsInterface(target=es5).symbols @@ -0,0 +1,232 @@ +//// [tests/cases/compiler/commentsInterface.ts] //// + +=== commentsInterface.ts === +/** this is interface 1*/ +interface i1 { +>i1 : Symbol(i1, Decl(commentsInterface.ts, 0, 0)) +} +var i1_i: i1; +>i1_i : Symbol(i1_i, Decl(commentsInterface.ts, 3, 3)) +>i1 : Symbol(i1, Decl(commentsInterface.ts, 0, 0)) + +interface nc_i1 { +>nc_i1 : Symbol(nc_i1, Decl(commentsInterface.ts, 3, 13)) +} +var nc_i1_i: nc_i1; +>nc_i1_i : Symbol(nc_i1_i, Decl(commentsInterface.ts, 6, 3)) +>nc_i1 : Symbol(nc_i1, Decl(commentsInterface.ts, 3, 13)) + +/** this is interface 2 with memebers*/ +interface i2 { +>i2 : Symbol(i2, Decl(commentsInterface.ts, 6, 19)) + + /** this is x*/ + x: number; +>x : Symbol(i2.x, Decl(commentsInterface.ts, 8, 14)) + + /** this is foo*/ + foo: (/**param help*/b: number) => string; +>foo : Symbol(i2.foo, Decl(commentsInterface.ts, 10, 14)) +>b : Symbol(b, Decl(commentsInterface.ts, 12, 10)) + + /** this is indexer*/ + [/**string param*/i: string]: any; +>i : Symbol(i, Decl(commentsInterface.ts, 14, 5)) + + /**new method*/ + new (/** param*/i: i1); +>i : Symbol(i, Decl(commentsInterface.ts, 16, 9)) +>i1 : Symbol(i1, Decl(commentsInterface.ts, 0, 0)) + + nc_x: number; +>nc_x : Symbol(i2.nc_x, Decl(commentsInterface.ts, 16, 27)) + + nc_foo: (b: number) => string; +>nc_foo : Symbol(i2.nc_foo, Decl(commentsInterface.ts, 17, 17)) +>b : Symbol(b, Decl(commentsInterface.ts, 18, 13)) + + [i: number]: number; +>i : Symbol(i, Decl(commentsInterface.ts, 19, 5)) + + /** this is call signature*/ + (/**paramhelp a*/a: number,/**paramhelp b*/ b: number) : number; +>a : Symbol(a, Decl(commentsInterface.ts, 21, 5)) +>b : Symbol(b, Decl(commentsInterface.ts, 21, 31)) + + /** this is fnfoo*/ + fnfoo(/**param help*/b: number): string; +>fnfoo : Symbol(i2.fnfoo, Decl(commentsInterface.ts, 21, 68)) +>b : Symbol(b, Decl(commentsInterface.ts, 23, 10)) + + nc_fnfoo(b: number): string; +>nc_fnfoo : Symbol(i2.nc_fnfoo, Decl(commentsInterface.ts, 23, 44)) +>b : Symbol(b, Decl(commentsInterface.ts, 24, 13)) + + // nc_y + nc_y: number; +>nc_y : Symbol(i2.nc_y, Decl(commentsInterface.ts, 24, 32)) +} +var i2_i: i2; +>i2_i : Symbol(i2_i, Decl(commentsInterface.ts, 28, 3)) +>i2 : Symbol(i2, Decl(commentsInterface.ts, 6, 19)) + +var i2_i_x = i2_i.x; +>i2_i_x : Symbol(i2_i_x, Decl(commentsInterface.ts, 29, 3)) +>i2_i.x : Symbol(i2.x, Decl(commentsInterface.ts, 8, 14)) +>i2_i : Symbol(i2_i, Decl(commentsInterface.ts, 28, 3)) +>x : Symbol(i2.x, Decl(commentsInterface.ts, 8, 14)) + +var i2_i_foo = i2_i.foo; +>i2_i_foo : Symbol(i2_i_foo, Decl(commentsInterface.ts, 30, 3)) +>i2_i.foo : Symbol(i2.foo, Decl(commentsInterface.ts, 10, 14)) +>i2_i : Symbol(i2_i, Decl(commentsInterface.ts, 28, 3)) +>foo : Symbol(i2.foo, Decl(commentsInterface.ts, 10, 14)) + +var i2_i_foo_r = i2_i.foo(30); +>i2_i_foo_r : Symbol(i2_i_foo_r, Decl(commentsInterface.ts, 31, 3)) +>i2_i.foo : Symbol(i2.foo, Decl(commentsInterface.ts, 10, 14)) +>i2_i : Symbol(i2_i, Decl(commentsInterface.ts, 28, 3)) +>foo : Symbol(i2.foo, Decl(commentsInterface.ts, 10, 14)) + +var i2_i_i2_si = i2_i["hello"]; +>i2_i_i2_si : Symbol(i2_i_i2_si, Decl(commentsInterface.ts, 32, 3)) +>i2_i : Symbol(i2_i, Decl(commentsInterface.ts, 28, 3)) + +var i2_i_i2_ii = i2_i[30]; +>i2_i_i2_ii : Symbol(i2_i_i2_ii, Decl(commentsInterface.ts, 33, 3)) +>i2_i : Symbol(i2_i, Decl(commentsInterface.ts, 28, 3)) + +var i2_i_n = new i2_i(i1_i); +>i2_i_n : Symbol(i2_i_n, Decl(commentsInterface.ts, 34, 3)) +>i2_i : Symbol(i2_i, Decl(commentsInterface.ts, 28, 3)) +>i1_i : Symbol(i1_i, Decl(commentsInterface.ts, 3, 3)) + +var i2_i_nc_x = i2_i.nc_x; +>i2_i_nc_x : Symbol(i2_i_nc_x, Decl(commentsInterface.ts, 35, 3)) +>i2_i.nc_x : Symbol(i2.nc_x, Decl(commentsInterface.ts, 16, 27)) +>i2_i : Symbol(i2_i, Decl(commentsInterface.ts, 28, 3)) +>nc_x : Symbol(i2.nc_x, Decl(commentsInterface.ts, 16, 27)) + +var i2_i_nc_foo = i2_i.nc_foo; +>i2_i_nc_foo : Symbol(i2_i_nc_foo, Decl(commentsInterface.ts, 36, 3)) +>i2_i.nc_foo : Symbol(i2.nc_foo, Decl(commentsInterface.ts, 17, 17)) +>i2_i : Symbol(i2_i, Decl(commentsInterface.ts, 28, 3)) +>nc_foo : Symbol(i2.nc_foo, Decl(commentsInterface.ts, 17, 17)) + +var i2_i_nc_foo_r = i2_i.nc_foo(30); +>i2_i_nc_foo_r : Symbol(i2_i_nc_foo_r, Decl(commentsInterface.ts, 37, 3)) +>i2_i.nc_foo : Symbol(i2.nc_foo, Decl(commentsInterface.ts, 17, 17)) +>i2_i : Symbol(i2_i, Decl(commentsInterface.ts, 28, 3)) +>nc_foo : Symbol(i2.nc_foo, Decl(commentsInterface.ts, 17, 17)) + +var i2_i_r = i2_i(10, 20); +>i2_i_r : Symbol(i2_i_r, Decl(commentsInterface.ts, 38, 3)) +>i2_i : Symbol(i2_i, Decl(commentsInterface.ts, 28, 3)) + +var i2_i_fnfoo = i2_i.fnfoo; +>i2_i_fnfoo : Symbol(i2_i_fnfoo, Decl(commentsInterface.ts, 39, 3)) +>i2_i.fnfoo : Symbol(i2.fnfoo, Decl(commentsInterface.ts, 21, 68)) +>i2_i : Symbol(i2_i, Decl(commentsInterface.ts, 28, 3)) +>fnfoo : Symbol(i2.fnfoo, Decl(commentsInterface.ts, 21, 68)) + +var i2_i_fnfoo_r = i2_i.fnfoo(10); +>i2_i_fnfoo_r : Symbol(i2_i_fnfoo_r, Decl(commentsInterface.ts, 40, 3)) +>i2_i.fnfoo : Symbol(i2.fnfoo, Decl(commentsInterface.ts, 21, 68)) +>i2_i : Symbol(i2_i, Decl(commentsInterface.ts, 28, 3)) +>fnfoo : Symbol(i2.fnfoo, Decl(commentsInterface.ts, 21, 68)) + +var i2_i_nc_fnfoo = i2_i.nc_fnfoo; +>i2_i_nc_fnfoo : Symbol(i2_i_nc_fnfoo, Decl(commentsInterface.ts, 41, 3)) +>i2_i.nc_fnfoo : Symbol(i2.nc_fnfoo, Decl(commentsInterface.ts, 23, 44)) +>i2_i : Symbol(i2_i, Decl(commentsInterface.ts, 28, 3)) +>nc_fnfoo : Symbol(i2.nc_fnfoo, Decl(commentsInterface.ts, 23, 44)) + +var i2_i_nc_fnfoo_r = i2_i.nc_fnfoo(10); +>i2_i_nc_fnfoo_r : Symbol(i2_i_nc_fnfoo_r, Decl(commentsInterface.ts, 42, 3)) +>i2_i.nc_fnfoo : Symbol(i2.nc_fnfoo, Decl(commentsInterface.ts, 23, 44)) +>i2_i : Symbol(i2_i, Decl(commentsInterface.ts, 28, 3)) +>nc_fnfoo : Symbol(i2.nc_fnfoo, Decl(commentsInterface.ts, 23, 44)) + +interface i3 { +>i3 : Symbol(i3, Decl(commentsInterface.ts, 42, 40)) + + /** Comment i3 x*/ + x: number; +>x : Symbol(i3.x, Decl(commentsInterface.ts, 43, 14)) + + /** Function i3 f*/ + f(/**number parameter*/a: number): string; +>f : Symbol(i3.f, Decl(commentsInterface.ts, 45, 14)) +>a : Symbol(a, Decl(commentsInterface.ts, 47, 6)) + + /** i3 l*/ + l: (/**comment i3 l b*/b: number) => string; +>l : Symbol(i3.l, Decl(commentsInterface.ts, 47, 46)) +>b : Symbol(b, Decl(commentsInterface.ts, 49, 8)) + + nc_x: number; +>nc_x : Symbol(i3.nc_x, Decl(commentsInterface.ts, 49, 48)) + + nc_f(a: number): string; +>nc_f : Symbol(i3.nc_f, Decl(commentsInterface.ts, 50, 17)) +>a : Symbol(a, Decl(commentsInterface.ts, 51, 9)) + + nc_l: (b: number) => string; +>nc_l : Symbol(i3.nc_l, Decl(commentsInterface.ts, 51, 28)) +>b : Symbol(b, Decl(commentsInterface.ts, 52, 11)) +} +var i3_i: i3; +>i3_i : Symbol(i3_i, Decl(commentsInterface.ts, 54, 3)) +>i3 : Symbol(i3, Decl(commentsInterface.ts, 42, 40)) + +i3_i = { +>i3_i : Symbol(i3_i, Decl(commentsInterface.ts, 54, 3)) + + f: /**own f*/ (/**i3_i a*/a: number) => "Hello" + a, +>f : Symbol(f, Decl(commentsInterface.ts, 55, 8)) +>a : Symbol(a, Decl(commentsInterface.ts, 56, 19)) +>a : Symbol(a, Decl(commentsInterface.ts, 56, 19)) + + l: this.f, +>l : Symbol(l, Decl(commentsInterface.ts, 56, 56)) +>this : Symbol(globalThis) + + /** own x*/ + x: this.f(10), +>x : Symbol(x, Decl(commentsInterface.ts, 57, 14)) +>this : Symbol(globalThis) + + nc_x: this.l(this.x), +>nc_x : Symbol(nc_x, Decl(commentsInterface.ts, 59, 18)) +>this : Symbol(globalThis) +>this : Symbol(globalThis) + + nc_f: this.f, +>nc_f : Symbol(nc_f, Decl(commentsInterface.ts, 60, 25)) +>this : Symbol(globalThis) + + nc_l: this.l +>nc_l : Symbol(nc_l, Decl(commentsInterface.ts, 61, 17)) +>this : Symbol(globalThis) + +}; +i3_i.f(10); +>i3_i.f : Symbol(i3.f, Decl(commentsInterface.ts, 45, 14)) +>i3_i : Symbol(i3_i, Decl(commentsInterface.ts, 54, 3)) +>f : Symbol(i3.f, Decl(commentsInterface.ts, 45, 14)) + +i3_i.l(10); +>i3_i.l : Symbol(i3.l, Decl(commentsInterface.ts, 47, 46)) +>i3_i : Symbol(i3_i, Decl(commentsInterface.ts, 54, 3)) +>l : Symbol(i3.l, Decl(commentsInterface.ts, 47, 46)) + +i3_i.nc_f(10); +>i3_i.nc_f : Symbol(i3.nc_f, Decl(commentsInterface.ts, 50, 17)) +>i3_i : Symbol(i3_i, Decl(commentsInterface.ts, 54, 3)) +>nc_f : Symbol(i3.nc_f, Decl(commentsInterface.ts, 50, 17)) + +i3_i.nc_l(10); +>i3_i.nc_l : Symbol(i3.nc_l, Decl(commentsInterface.ts, 51, 28)) +>i3_i : Symbol(i3_i, Decl(commentsInterface.ts, 54, 3)) +>nc_l : Symbol(i3.nc_l, Decl(commentsInterface.ts, 51, 28)) + diff --git a/tests/baselines/reference/commentsInterface(target=es5).types b/tests/baselines/reference/commentsInterface(target=es5).types new file mode 100644 index 0000000000000..740c812054b8b --- /dev/null +++ b/tests/baselines/reference/commentsInterface(target=es5).types @@ -0,0 +1,398 @@ +//// [tests/cases/compiler/commentsInterface.ts] //// + +=== commentsInterface.ts === +/** this is interface 1*/ +interface i1 { +} +var i1_i: i1; +>i1_i : i1 +> : ^^ + +interface nc_i1 { +} +var nc_i1_i: nc_i1; +>nc_i1_i : nc_i1 +> : ^^^^^ + +/** this is interface 2 with memebers*/ +interface i2 { + /** this is x*/ + x: number; +>x : number +> : ^^^^^^ + + /** this is foo*/ + foo: (/**param help*/b: number) => string; +>foo : (b: number) => string +> : ^ ^^ ^^^^^ +>b : number +> : ^^^^^^ + + /** this is indexer*/ + [/**string param*/i: string]: any; +>i : string +> : ^^^^^^ + + /**new method*/ + new (/** param*/i: i1); +>i : i1 +> : ^^ + + nc_x: number; +>nc_x : number +> : ^^^^^^ + + nc_foo: (b: number) => string; +>nc_foo : (b: number) => string +> : ^ ^^ ^^^^^ +>b : number +> : ^^^^^^ + + [i: number]: number; +>i : number +> : ^^^^^^ + + /** this is call signature*/ + (/**paramhelp a*/a: number,/**paramhelp b*/ b: number) : number; +>a : number +> : ^^^^^^ +>b : number +> : ^^^^^^ + + /** this is fnfoo*/ + fnfoo(/**param help*/b: number): string; +>fnfoo : (b: number) => string +> : ^ ^^ ^^^^^ +>b : number +> : ^^^^^^ + + nc_fnfoo(b: number): string; +>nc_fnfoo : (b: number) => string +> : ^ ^^ ^^^^^ +>b : number +> : ^^^^^^ + + // nc_y + nc_y: number; +>nc_y : number +> : ^^^^^^ +} +var i2_i: i2; +>i2_i : i2 +> : ^^ + +var i2_i_x = i2_i.x; +>i2_i_x : number +> : ^^^^^^ +>i2_i.x : number +> : ^^^^^^ +>i2_i : i2 +> : ^^ +>x : number +> : ^^^^^^ + +var i2_i_foo = i2_i.foo; +>i2_i_foo : (b: number) => string +> : ^ ^^ ^^^^^ +>i2_i.foo : (b: number) => string +> : ^ ^^ ^^^^^ +>i2_i : i2 +> : ^^ +>foo : (b: number) => string +> : ^ ^^ ^^^^^ + +var i2_i_foo_r = i2_i.foo(30); +>i2_i_foo_r : string +> : ^^^^^^ +>i2_i.foo(30) : string +> : ^^^^^^ +>i2_i.foo : (b: number) => string +> : ^ ^^ ^^^^^ +>i2_i : i2 +> : ^^ +>foo : (b: number) => string +> : ^ ^^ ^^^^^ +>30 : 30 +> : ^^ + +var i2_i_i2_si = i2_i["hello"]; +>i2_i_i2_si : any +>i2_i["hello"] : any +>i2_i : i2 +> : ^^ +>"hello" : "hello" +> : ^^^^^^^ + +var i2_i_i2_ii = i2_i[30]; +>i2_i_i2_ii : number +> : ^^^^^^ +>i2_i[30] : number +> : ^^^^^^ +>i2_i : i2 +> : ^^ +>30 : 30 +> : ^^ + +var i2_i_n = new i2_i(i1_i); +>i2_i_n : any +>new i2_i(i1_i) : any +>i2_i : i2 +> : ^^ +>i1_i : i1 +> : ^^ + +var i2_i_nc_x = i2_i.nc_x; +>i2_i_nc_x : number +> : ^^^^^^ +>i2_i.nc_x : number +> : ^^^^^^ +>i2_i : i2 +> : ^^ +>nc_x : number +> : ^^^^^^ + +var i2_i_nc_foo = i2_i.nc_foo; +>i2_i_nc_foo : (b: number) => string +> : ^ ^^ ^^^^^ +>i2_i.nc_foo : (b: number) => string +> : ^ ^^ ^^^^^ +>i2_i : i2 +> : ^^ +>nc_foo : (b: number) => string +> : ^ ^^ ^^^^^ + +var i2_i_nc_foo_r = i2_i.nc_foo(30); +>i2_i_nc_foo_r : string +> : ^^^^^^ +>i2_i.nc_foo(30) : string +> : ^^^^^^ +>i2_i.nc_foo : (b: number) => string +> : ^ ^^ ^^^^^ +>i2_i : i2 +> : ^^ +>nc_foo : (b: number) => string +> : ^ ^^ ^^^^^ +>30 : 30 +> : ^^ + +var i2_i_r = i2_i(10, 20); +>i2_i_r : number +> : ^^^^^^ +>i2_i(10, 20) : number +> : ^^^^^^ +>i2_i : i2 +> : ^^ +>10 : 10 +> : ^^ +>20 : 20 +> : ^^ + +var i2_i_fnfoo = i2_i.fnfoo; +>i2_i_fnfoo : (b: number) => string +> : ^ ^^ ^^^^^ +>i2_i.fnfoo : (b: number) => string +> : ^ ^^ ^^^^^ +>i2_i : i2 +> : ^^ +>fnfoo : (b: number) => string +> : ^ ^^ ^^^^^ + +var i2_i_fnfoo_r = i2_i.fnfoo(10); +>i2_i_fnfoo_r : string +> : ^^^^^^ +>i2_i.fnfoo(10) : string +> : ^^^^^^ +>i2_i.fnfoo : (b: number) => string +> : ^ ^^ ^^^^^ +>i2_i : i2 +> : ^^ +>fnfoo : (b: number) => string +> : ^ ^^ ^^^^^ +>10 : 10 +> : ^^ + +var i2_i_nc_fnfoo = i2_i.nc_fnfoo; +>i2_i_nc_fnfoo : (b: number) => string +> : ^ ^^ ^^^^^ +>i2_i.nc_fnfoo : (b: number) => string +> : ^ ^^ ^^^^^ +>i2_i : i2 +> : ^^ +>nc_fnfoo : (b: number) => string +> : ^ ^^ ^^^^^ + +var i2_i_nc_fnfoo_r = i2_i.nc_fnfoo(10); +>i2_i_nc_fnfoo_r : string +> : ^^^^^^ +>i2_i.nc_fnfoo(10) : string +> : ^^^^^^ +>i2_i.nc_fnfoo : (b: number) => string +> : ^ ^^ ^^^^^ +>i2_i : i2 +> : ^^ +>nc_fnfoo : (b: number) => string +> : ^ ^^ ^^^^^ +>10 : 10 +> : ^^ + +interface i3 { + /** Comment i3 x*/ + x: number; +>x : number +> : ^^^^^^ + + /** Function i3 f*/ + f(/**number parameter*/a: number): string; +>f : (a: number) => string +> : ^ ^^ ^^^^^ +>a : number +> : ^^^^^^ + + /** i3 l*/ + l: (/**comment i3 l b*/b: number) => string; +>l : (b: number) => string +> : ^ ^^ ^^^^^ +>b : number +> : ^^^^^^ + + nc_x: number; +>nc_x : number +> : ^^^^^^ + + nc_f(a: number): string; +>nc_f : (a: number) => string +> : ^ ^^ ^^^^^ +>a : number +> : ^^^^^^ + + nc_l: (b: number) => string; +>nc_l : (b: number) => string +> : ^ ^^ ^^^^^ +>b : number +> : ^^^^^^ +} +var i3_i: i3; +>i3_i : i3 +> : ^^ + +i3_i = { +>i3_i = { f: /**own f*/ (/**i3_i a*/a: number) => "Hello" + a, l: this.f, /** own x*/ x: this.f(10), nc_x: this.l(this.x), nc_f: this.f, nc_l: this.l} : { f: (a: number) => string; l: any; x: any; nc_x: any; nc_f: any; nc_l: any; } +> : ^^^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>i3_i : i3 +> : ^^ +>{ f: /**own f*/ (/**i3_i a*/a: number) => "Hello" + a, l: this.f, /** own x*/ x: this.f(10), nc_x: this.l(this.x), nc_f: this.f, nc_l: this.l} : { f: (a: number) => string; l: any; x: any; nc_x: any; nc_f: any; nc_l: any; } +> : ^^^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + f: /**own f*/ (/**i3_i a*/a: number) => "Hello" + a, +>f : (a: number) => string +> : ^ ^^ ^^^^^^^^^^^ +>(/**i3_i a*/a: number) => "Hello" + a : (a: number) => string +> : ^ ^^ ^^^^^^^^^^^ +>a : number +> : ^^^^^^ +>"Hello" + a : string +> : ^^^^^^ +>"Hello" : "Hello" +> : ^^^^^^^ +>a : number +> : ^^^^^^ + + l: this.f, +>l : any +>this.f : any +>this : typeof globalThis +> : ^^^^^^^^^^^^^^^^^ +>f : any +> : ^^^ + + /** own x*/ + x: this.f(10), +>x : any +>this.f(10) : any +>this.f : any +>this : typeof globalThis +> : ^^^^^^^^^^^^^^^^^ +>f : any +> : ^^^ +>10 : 10 +> : ^^ + + nc_x: this.l(this.x), +>nc_x : any +>this.l(this.x) : any +>this.l : any +>this : typeof globalThis +> : ^^^^^^^^^^^^^^^^^ +>l : any +> : ^^^ +>this.x : any +>this : typeof globalThis +> : ^^^^^^^^^^^^^^^^^ +>x : any +> : ^^^ + + nc_f: this.f, +>nc_f : any +>this.f : any +>this : typeof globalThis +> : ^^^^^^^^^^^^^^^^^ +>f : any +> : ^^^ + + nc_l: this.l +>nc_l : any +>this.l : any +>this : typeof globalThis +> : ^^^^^^^^^^^^^^^^^ +>l : any +> : ^^^ + +}; +i3_i.f(10); +>i3_i.f(10) : string +> : ^^^^^^ +>i3_i.f : (a: number) => string +> : ^ ^^ ^^^^^ +>i3_i : i3 +> : ^^ +>f : (a: number) => string +> : ^ ^^ ^^^^^ +>10 : 10 +> : ^^ + +i3_i.l(10); +>i3_i.l(10) : string +> : ^^^^^^ +>i3_i.l : (b: number) => string +> : ^ ^^ ^^^^^ +>i3_i : i3 +> : ^^ +>l : (b: number) => string +> : ^ ^^ ^^^^^ +>10 : 10 +> : ^^ + +i3_i.nc_f(10); +>i3_i.nc_f(10) : string +> : ^^^^^^ +>i3_i.nc_f : (a: number) => string +> : ^ ^^ ^^^^^ +>i3_i : i3 +> : ^^ +>nc_f : (a: number) => string +> : ^ ^^ ^^^^^ +>10 : 10 +> : ^^ + +i3_i.nc_l(10); +>i3_i.nc_l(10) : string +> : ^^^^^^ +>i3_i.nc_l : (b: number) => string +> : ^ ^^ ^^^^^ +>i3_i : i3 +> : ^^ +>nc_l : (b: number) => string +> : ^ ^^ ^^^^^ +>10 : 10 +> : ^^ + diff --git a/tests/baselines/reference/commentsModules(target=es2015).js b/tests/baselines/reference/commentsModules(target=es2015).js new file mode 100644 index 0000000000000..53a4a542e6722 --- /dev/null +++ b/tests/baselines/reference/commentsModules(target=es2015).js @@ -0,0 +1,313 @@ +//// [tests/cases/compiler/commentsModules.ts] //// + +//// [commentsModules.ts] +/** Module comment*/ +namespace m1 { + /** b's comment*/ + export var b: number; + /** foo's comment*/ + function foo() { + return b; + } + /** m2 comments*/ + export namespace m2 { + /** class comment;*/ + export class c { + }; + /** i*/ + export var i = new c(); + } + /** exported function*/ + export function fooExport() { + return foo(); + } + + // shouldn't appear + export function foo2Export(/**hm*/ a: string) { + } + + /** foo3Export + * comment + */ + export function foo3Export() { + } + + /** foo4Export + * comment + */ + function foo4Export() { + } +} // trailing comment module +m1.fooExport(); +var myvar = new m1.m2.c(); +/** module comment of m2.m3*/ +namespace m2.m3 { + /** Exported class comment*/ + export class c { + } +} /* trailing dotted module comment*/ +new m2.m3.c(); +/** module comment of m3.m4.m5*/ +namespace m3.m4.m5 { + /** Exported class comment*/ + export class c { + } +} // trailing dotted module 2 +new m3.m4.m5.c(); +/** module comment of m4.m5.m6*/ +namespace m4.m5.m6 { + export namespace m7 { + /** Exported class comment*/ + export class c { + } + } /* trailing inner module */ /* multiple comments*/ +} +new m4.m5.m6.m7.c(); +/** module comment of m5.m6.m7*/ +namespace m5.m6.m7 { + /** module m8 comment*/ + export namespace m8 { + /** Exported class comment*/ + export class c { + } + } +} +new m5.m6.m7.m8.c(); +namespace m6.m7 { + export namespace m8 { + /** Exported class comment*/ + export class c { + } + } +} +new m6.m7.m8.c(); +namespace m7.m8 { + /** module m9 comment*/ + export namespace m9 { + /** Exported class comment*/ + export class c { + } + + /** class d */ + class d { + } + + // class e + export class e { + } + } +} +new m7.m8.m9.c(); + +//// [commentsModules.js] +/** Module comment*/ +var m1; +(function (m1) { + /** foo's comment*/ + function foo() { + return m1.b; + } + /** m2 comments*/ + let m2; + (function (m2) { + /** class comment;*/ + class c { + } + m2.c = c; + ; + /** i*/ + m2.i = new c(); + })(m2 = m1.m2 || (m1.m2 = {})); + /** exported function*/ + function fooExport() { + return foo(); + } + m1.fooExport = fooExport; + // shouldn't appear + function foo2Export(/**hm*/ a) { + } + m1.foo2Export = foo2Export; + /** foo3Export + * comment + */ + function foo3Export() { + } + m1.foo3Export = foo3Export; + /** foo4Export + * comment + */ + function foo4Export() { + } +})(m1 || (m1 = {})); // trailing comment module +m1.fooExport(); +var myvar = new m1.m2.c(); +/** module comment of m2.m3*/ +var m2; +(function (m2) { + var m3; + (function (m3) { + /** Exported class comment*/ + class c { + } + m3.c = c; + })(m3 = m2.m3 || (m2.m3 = {})); +})(m2 || (m2 = {})); /* trailing dotted module comment*/ +new m2.m3.c(); +/** module comment of m3.m4.m5*/ +var m3; +(function (m3) { + var m4; + (function (m4) { + var m5; + (function (m5) { + /** Exported class comment*/ + class c { + } + m5.c = c; + })(m5 = m4.m5 || (m4.m5 = {})); + })(m4 = m3.m4 || (m3.m4 = {})); +})(m3 || (m3 = {})); // trailing dotted module 2 +new m3.m4.m5.c(); +/** module comment of m4.m5.m6*/ +var m4; +(function (m4) { + var m5; + (function (m5) { + var m6; + (function (m6) { + let m7; + (function (m7) { + /** Exported class comment*/ + class c { + } + m7.c = c; + })(m7 = m6.m7 || (m6.m7 = {})); /* trailing inner module */ /* multiple comments*/ + })(m6 = m5.m6 || (m5.m6 = {})); + })(m5 = m4.m5 || (m4.m5 = {})); +})(m4 || (m4 = {})); +new m4.m5.m6.m7.c(); +/** module comment of m5.m6.m7*/ +var m5; +(function (m5) { + var m6; + (function (m6) { + var m7; + (function (m7) { + /** module m8 comment*/ + let m8; + (function (m8) { + /** Exported class comment*/ + class c { + } + m8.c = c; + })(m8 = m7.m8 || (m7.m8 = {})); + })(m7 = m6.m7 || (m6.m7 = {})); + })(m6 = m5.m6 || (m5.m6 = {})); +})(m5 || (m5 = {})); +new m5.m6.m7.m8.c(); +var m6; +(function (m6) { + var m7; + (function (m7) { + let m8; + (function (m8) { + /** Exported class comment*/ + class c { + } + m8.c = c; + })(m8 = m7.m8 || (m7.m8 = {})); + })(m7 = m6.m7 || (m6.m7 = {})); +})(m6 || (m6 = {})); +new m6.m7.m8.c(); +var m7; +(function (m7) { + var m8; + (function (m8) { + /** module m9 comment*/ + let m9; + (function (m9) { + /** Exported class comment*/ + class c { + } + m9.c = c; + /** class d */ + class d { + } + // class e + class e { + } + m9.e = e; + })(m9 = m8.m9 || (m8.m9 = {})); + })(m8 = m7.m8 || (m7.m8 = {})); +})(m7 || (m7 = {})); +new m7.m8.m9.c(); + + +//// [commentsModules.d.ts] +/** Module comment*/ +declare namespace m1 { + /** b's comment*/ + var b: number; + /** m2 comments*/ + namespace m2 { + /** class comment;*/ + class c { + } + /** i*/ + var i: c; + } + /** exported function*/ + function fooExport(): number; + function foo2Export(/**hm*/ a: string): void; + /** foo3Export + * comment + */ + function foo3Export(): void; +} +declare var myvar: m1.m2.c; +/** module comment of m2.m3*/ +declare namespace m2.m3 { + /** Exported class comment*/ + class c { + } +} +/** module comment of m3.m4.m5*/ +declare namespace m3.m4.m5 { + /** Exported class comment*/ + class c { + } +} +/** module comment of m4.m5.m6*/ +declare namespace m4.m5.m6 { + namespace m7 { + /** Exported class comment*/ + class c { + } + } +} +/** module comment of m5.m6.m7*/ +declare namespace m5.m6.m7 { + /** module m8 comment*/ + namespace m8 { + /** Exported class comment*/ + class c { + } + } +} +declare namespace m6.m7 { + namespace m8 { + /** Exported class comment*/ + class c { + } + } +} +declare namespace m7.m8 { + /** module m9 comment*/ + namespace m9 { + /** Exported class comment*/ + class c { + } + class e { + } + } +} diff --git a/tests/baselines/reference/commentsModules.symbols b/tests/baselines/reference/commentsModules(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/commentsModules.symbols rename to tests/baselines/reference/commentsModules(target=es2015).symbols diff --git a/tests/baselines/reference/commentsModules.types b/tests/baselines/reference/commentsModules(target=es2015).types similarity index 100% rename from tests/baselines/reference/commentsModules.types rename to tests/baselines/reference/commentsModules(target=es2015).types diff --git a/tests/baselines/reference/commentsModules.js b/tests/baselines/reference/commentsModules(target=es5).js similarity index 100% rename from tests/baselines/reference/commentsModules.js rename to tests/baselines/reference/commentsModules(target=es5).js diff --git a/tests/baselines/reference/commentsModules(target=es5).symbols b/tests/baselines/reference/commentsModules(target=es5).symbols new file mode 100644 index 0000000000000..1fd0523c7a174 --- /dev/null +++ b/tests/baselines/reference/commentsModules(target=es5).symbols @@ -0,0 +1,218 @@ +//// [tests/cases/compiler/commentsModules.ts] //// + +=== commentsModules.ts === +/** Module comment*/ +namespace m1 { +>m1 : Symbol(m1, Decl(commentsModules.ts, 0, 0)) + + /** b's comment*/ + export var b: number; +>b : Symbol(b, Decl(commentsModules.ts, 3, 14)) + + /** foo's comment*/ + function foo() { +>foo : Symbol(foo, Decl(commentsModules.ts, 3, 25)) + + return b; +>b : Symbol(b, Decl(commentsModules.ts, 3, 14)) + } + /** m2 comments*/ + export namespace m2 { +>m2 : Symbol(m2, Decl(commentsModules.ts, 7, 5)) + + /** class comment;*/ + export class c { +>c : Symbol(c, Decl(commentsModules.ts, 9, 25)) + + }; + /** i*/ + export var i = new c(); +>i : Symbol(i, Decl(commentsModules.ts, 14, 18)) +>c : Symbol(c, Decl(commentsModules.ts, 9, 25)) + } + /** exported function*/ + export function fooExport() { +>fooExport : Symbol(fooExport, Decl(commentsModules.ts, 15, 5)) + + return foo(); +>foo : Symbol(foo, Decl(commentsModules.ts, 3, 25)) + } + + // shouldn't appear + export function foo2Export(/**hm*/ a: string) { +>foo2Export : Symbol(foo2Export, Decl(commentsModules.ts, 19, 5)) +>a : Symbol(a, Decl(commentsModules.ts, 22, 31)) + } + + /** foo3Export + * comment + */ + export function foo3Export() { +>foo3Export : Symbol(foo3Export, Decl(commentsModules.ts, 23, 5)) + } + + /** foo4Export + * comment + */ + function foo4Export() { +>foo4Export : Symbol(foo4Export, Decl(commentsModules.ts, 29, 5)) + } +} // trailing comment module +m1.fooExport(); +>m1.fooExport : Symbol(m1.fooExport, Decl(commentsModules.ts, 15, 5)) +>m1 : Symbol(m1, Decl(commentsModules.ts, 0, 0)) +>fooExport : Symbol(m1.fooExport, Decl(commentsModules.ts, 15, 5)) + +var myvar = new m1.m2.c(); +>myvar : Symbol(myvar, Decl(commentsModules.ts, 38, 3)) +>m1.m2.c : Symbol(m1.m2.c, Decl(commentsModules.ts, 9, 25)) +>m1.m2 : Symbol(m1.m2, Decl(commentsModules.ts, 7, 5)) +>m1 : Symbol(m1, Decl(commentsModules.ts, 0, 0)) +>m2 : Symbol(m1.m2, Decl(commentsModules.ts, 7, 5)) +>c : Symbol(m1.m2.c, Decl(commentsModules.ts, 9, 25)) + +/** module comment of m2.m3*/ +namespace m2.m3 { +>m2 : Symbol(m2, Decl(commentsModules.ts, 38, 26)) +>m3 : Symbol(m3, Decl(commentsModules.ts, 40, 13)) + + /** Exported class comment*/ + export class c { +>c : Symbol(c, Decl(commentsModules.ts, 40, 17)) + } +} /* trailing dotted module comment*/ +new m2.m3.c(); +>m2.m3.c : Symbol(m2.m3.c, Decl(commentsModules.ts, 40, 17)) +>m2.m3 : Symbol(m2.m3, Decl(commentsModules.ts, 40, 13)) +>m2 : Symbol(m2, Decl(commentsModules.ts, 38, 26)) +>m3 : Symbol(m2.m3, Decl(commentsModules.ts, 40, 13)) +>c : Symbol(m2.m3.c, Decl(commentsModules.ts, 40, 17)) + +/** module comment of m3.m4.m5*/ +namespace m3.m4.m5 { +>m3 : Symbol(m3, Decl(commentsModules.ts, 45, 14)) +>m4 : Symbol(m4, Decl(commentsModules.ts, 47, 13)) +>m5 : Symbol(m5, Decl(commentsModules.ts, 47, 16)) + + /** Exported class comment*/ + export class c { +>c : Symbol(c, Decl(commentsModules.ts, 47, 20)) + } +} // trailing dotted module 2 +new m3.m4.m5.c(); +>m3.m4.m5.c : Symbol(m3.m4.m5.c, Decl(commentsModules.ts, 47, 20)) +>m3.m4.m5 : Symbol(m3.m4.m5, Decl(commentsModules.ts, 47, 16)) +>m3.m4 : Symbol(m3.m4, Decl(commentsModules.ts, 47, 13)) +>m3 : Symbol(m3, Decl(commentsModules.ts, 45, 14)) +>m4 : Symbol(m3.m4, Decl(commentsModules.ts, 47, 13)) +>m5 : Symbol(m3.m4.m5, Decl(commentsModules.ts, 47, 16)) +>c : Symbol(m3.m4.m5.c, Decl(commentsModules.ts, 47, 20)) + +/** module comment of m4.m5.m6*/ +namespace m4.m5.m6 { +>m4 : Symbol(m4, Decl(commentsModules.ts, 52, 17)) +>m5 : Symbol(m5, Decl(commentsModules.ts, 54, 13)) +>m6 : Symbol(m6, Decl(commentsModules.ts, 54, 16)) + + export namespace m7 { +>m7 : Symbol(m7, Decl(commentsModules.ts, 54, 20)) + + /** Exported class comment*/ + export class c { +>c : Symbol(c, Decl(commentsModules.ts, 55, 25)) + } + } /* trailing inner module */ /* multiple comments*/ +} +new m4.m5.m6.m7.c(); +>m4.m5.m6.m7.c : Symbol(m4.m5.m6.m7.c, Decl(commentsModules.ts, 55, 25)) +>m4.m5.m6.m7 : Symbol(m4.m5.m6.m7, Decl(commentsModules.ts, 54, 20)) +>m4.m5.m6 : Symbol(m4.m5.m6, Decl(commentsModules.ts, 54, 16)) +>m4.m5 : Symbol(m4.m5, Decl(commentsModules.ts, 54, 13)) +>m4 : Symbol(m4, Decl(commentsModules.ts, 52, 17)) +>m5 : Symbol(m4.m5, Decl(commentsModules.ts, 54, 13)) +>m6 : Symbol(m4.m5.m6, Decl(commentsModules.ts, 54, 16)) +>m7 : Symbol(m4.m5.m6.m7, Decl(commentsModules.ts, 54, 20)) +>c : Symbol(m4.m5.m6.m7.c, Decl(commentsModules.ts, 55, 25)) + +/** module comment of m5.m6.m7*/ +namespace m5.m6.m7 { +>m5 : Symbol(m5, Decl(commentsModules.ts, 61, 20)) +>m6 : Symbol(m6, Decl(commentsModules.ts, 63, 13)) +>m7 : Symbol(m7, Decl(commentsModules.ts, 63, 16)) + + /** module m8 comment*/ + export namespace m8 { +>m8 : Symbol(m8, Decl(commentsModules.ts, 63, 20)) + + /** Exported class comment*/ + export class c { +>c : Symbol(c, Decl(commentsModules.ts, 65, 25)) + } + } +} +new m5.m6.m7.m8.c(); +>m5.m6.m7.m8.c : Symbol(m5.m6.m7.m8.c, Decl(commentsModules.ts, 65, 25)) +>m5.m6.m7.m8 : Symbol(m5.m6.m7.m8, Decl(commentsModules.ts, 63, 20)) +>m5.m6.m7 : Symbol(m5.m6.m7, Decl(commentsModules.ts, 63, 16)) +>m5.m6 : Symbol(m5.m6, Decl(commentsModules.ts, 63, 13)) +>m5 : Symbol(m5, Decl(commentsModules.ts, 61, 20)) +>m6 : Symbol(m5.m6, Decl(commentsModules.ts, 63, 13)) +>m7 : Symbol(m5.m6.m7, Decl(commentsModules.ts, 63, 16)) +>m8 : Symbol(m5.m6.m7.m8, Decl(commentsModules.ts, 63, 20)) +>c : Symbol(m5.m6.m7.m8.c, Decl(commentsModules.ts, 65, 25)) + +namespace m6.m7 { +>m6 : Symbol(m6, Decl(commentsModules.ts, 71, 20)) +>m7 : Symbol(m7, Decl(commentsModules.ts, 72, 13)) + + export namespace m8 { +>m8 : Symbol(m8, Decl(commentsModules.ts, 72, 17)) + + /** Exported class comment*/ + export class c { +>c : Symbol(c, Decl(commentsModules.ts, 73, 25)) + } + } +} +new m6.m7.m8.c(); +>m6.m7.m8.c : Symbol(m6.m7.m8.c, Decl(commentsModules.ts, 73, 25)) +>m6.m7.m8 : Symbol(m6.m7.m8, Decl(commentsModules.ts, 72, 17)) +>m6.m7 : Symbol(m6.m7, Decl(commentsModules.ts, 72, 13)) +>m6 : Symbol(m6, Decl(commentsModules.ts, 71, 20)) +>m7 : Symbol(m6.m7, Decl(commentsModules.ts, 72, 13)) +>m8 : Symbol(m6.m7.m8, Decl(commentsModules.ts, 72, 17)) +>c : Symbol(m6.m7.m8.c, Decl(commentsModules.ts, 73, 25)) + +namespace m7.m8 { +>m7 : Symbol(m7, Decl(commentsModules.ts, 79, 17)) +>m8 : Symbol(m8, Decl(commentsModules.ts, 80, 13)) + + /** module m9 comment*/ + export namespace m9 { +>m9 : Symbol(m9, Decl(commentsModules.ts, 80, 17)) + + /** Exported class comment*/ + export class c { +>c : Symbol(c, Decl(commentsModules.ts, 82, 25)) + } + + /** class d */ + class d { +>d : Symbol(d, Decl(commentsModules.ts, 85, 9)) + } + + // class e + export class e { +>e : Symbol(e, Decl(commentsModules.ts, 89, 9)) + } + } +} +new m7.m8.m9.c(); +>m7.m8.m9.c : Symbol(m7.m8.m9.c, Decl(commentsModules.ts, 82, 25)) +>m7.m8.m9 : Symbol(m7.m8.m9, Decl(commentsModules.ts, 80, 17)) +>m7.m8 : Symbol(m7.m8, Decl(commentsModules.ts, 80, 13)) +>m7 : Symbol(m7, Decl(commentsModules.ts, 79, 17)) +>m8 : Symbol(m7.m8, Decl(commentsModules.ts, 80, 13)) +>m9 : Symbol(m7.m8.m9, Decl(commentsModules.ts, 80, 17)) +>c : Symbol(m7.m8.m9.c, Decl(commentsModules.ts, 82, 25)) + diff --git a/tests/baselines/reference/commentsModules(target=es5).types b/tests/baselines/reference/commentsModules(target=es5).types new file mode 100644 index 0000000000000..9d220875c78fe --- /dev/null +++ b/tests/baselines/reference/commentsModules(target=es5).types @@ -0,0 +1,332 @@ +//// [tests/cases/compiler/commentsModules.ts] //// + +=== commentsModules.ts === +/** Module comment*/ +namespace m1 { +>m1 : typeof m1 +> : ^^^^^^^^^ + + /** b's comment*/ + export var b: number; +>b : number +> : ^^^^^^ + + /** foo's comment*/ + function foo() { +>foo : () => number +> : ^^^^^^^^^^^^ + + return b; +>b : number +> : ^^^^^^ + } + /** m2 comments*/ + export namespace m2 { +>m2 : typeof m2 +> : ^^^^^^^^^ + + /** class comment;*/ + export class c { +>c : c +> : ^ + + }; + /** i*/ + export var i = new c(); +>i : c +> : ^ +>new c() : c +> : ^ +>c : typeof c +> : ^^^^^^^^ + } + /** exported function*/ + export function fooExport() { +>fooExport : () => number +> : ^^^^^^^^^^^^ + + return foo(); +>foo() : number +> : ^^^^^^ +>foo : () => number +> : ^^^^^^^^^^^^ + } + + // shouldn't appear + export function foo2Export(/**hm*/ a: string) { +>foo2Export : (a: string) => void +> : ^ ^^ ^^^^^^^^^ +>a : string +> : ^^^^^^ + } + + /** foo3Export + * comment + */ + export function foo3Export() { +>foo3Export : () => void +> : ^^^^^^^^^^ + } + + /** foo4Export + * comment + */ + function foo4Export() { +>foo4Export : () => void +> : ^^^^^^^^^^ + } +} // trailing comment module +m1.fooExport(); +>m1.fooExport() : number +> : ^^^^^^ +>m1.fooExport : () => number +> : ^^^^^^^^^^^^ +>m1 : typeof m1 +> : ^^^^^^^^^ +>fooExport : () => number +> : ^^^^^^^^^^^^ + +var myvar = new m1.m2.c(); +>myvar : m1.m2.c +> : ^^^^^^^ +>new m1.m2.c() : m1.m2.c +> : ^^^^^^^ +>m1.m2.c : typeof m1.m2.c +> : ^^^^^^^^^^^^^^ +>m1.m2 : typeof m1.m2 +> : ^^^^^^^^^^^^ +>m1 : typeof m1 +> : ^^^^^^^^^ +>m2 : typeof m1.m2 +> : ^^^^^^^^^^^^ +>c : typeof m1.m2.c +> : ^^^^^^^^^^^^^^ + +/** module comment of m2.m3*/ +namespace m2.m3 { +>m2 : typeof m2 +> : ^^^^^^^^^ +>m3 : typeof m3 +> : ^^^^^^^^^ + + /** Exported class comment*/ + export class c { +>c : c +> : ^ + } +} /* trailing dotted module comment*/ +new m2.m3.c(); +>new m2.m3.c() : m2.m3.c +> : ^^^^^^^ +>m2.m3.c : typeof m2.m3.c +> : ^^^^^^^^^^^^^^ +>m2.m3 : typeof m2.m3 +> : ^^^^^^^^^^^^ +>m2 : typeof m2 +> : ^^^^^^^^^ +>m3 : typeof m2.m3 +> : ^^^^^^^^^^^^ +>c : typeof m2.m3.c +> : ^^^^^^^^^^^^^^ + +/** module comment of m3.m4.m5*/ +namespace m3.m4.m5 { +>m3 : typeof m3 +> : ^^^^^^^^^ +>m4 : typeof m4 +> : ^^^^^^^^^ +>m5 : typeof m5 +> : ^^^^^^^^^ + + /** Exported class comment*/ + export class c { +>c : c +> : ^ + } +} // trailing dotted module 2 +new m3.m4.m5.c(); +>new m3.m4.m5.c() : m3.m4.m5.c +> : ^^^^^^^^^^ +>m3.m4.m5.c : typeof m3.m4.m5.c +> : ^^^^^^^^^^^^^^^^^ +>m3.m4.m5 : typeof m3.m4.m5 +> : ^^^^^^^^^^^^^^^ +>m3.m4 : typeof m3.m4 +> : ^^^^^^^^^^^^ +>m3 : typeof m3 +> : ^^^^^^^^^ +>m4 : typeof m3.m4 +> : ^^^^^^^^^^^^ +>m5 : typeof m3.m4.m5 +> : ^^^^^^^^^^^^^^^ +>c : typeof m3.m4.m5.c +> : ^^^^^^^^^^^^^^^^^ + +/** module comment of m4.m5.m6*/ +namespace m4.m5.m6 { +>m4 : typeof m4 +> : ^^^^^^^^^ +>m5 : typeof m5 +> : ^^^^^^^^^ +>m6 : typeof m6 +> : ^^^^^^^^^ + + export namespace m7 { +>m7 : typeof m7 +> : ^^^^^^^^^ + + /** Exported class comment*/ + export class c { +>c : c +> : ^ + } + } /* trailing inner module */ /* multiple comments*/ +} +new m4.m5.m6.m7.c(); +>new m4.m5.m6.m7.c() : m4.m5.m6.m7.c +> : ^^^^^^^^^^^^^ +>m4.m5.m6.m7.c : typeof m4.m5.m6.m7.c +> : ^^^^^^^^^^^^^^^^^^^^ +>m4.m5.m6.m7 : typeof m4.m5.m6.m7 +> : ^^^^^^^^^^^^^^^^^^ +>m4.m5.m6 : typeof m4.m5.m6 +> : ^^^^^^^^^^^^^^^ +>m4.m5 : typeof m4.m5 +> : ^^^^^^^^^^^^ +>m4 : typeof m4 +> : ^^^^^^^^^ +>m5 : typeof m4.m5 +> : ^^^^^^^^^^^^ +>m6 : typeof m4.m5.m6 +> : ^^^^^^^^^^^^^^^ +>m7 : typeof m4.m5.m6.m7 +> : ^^^^^^^^^^^^^^^^^^ +>c : typeof m4.m5.m6.m7.c +> : ^^^^^^^^^^^^^^^^^^^^ + +/** module comment of m5.m6.m7*/ +namespace m5.m6.m7 { +>m5 : typeof m5 +> : ^^^^^^^^^ +>m6 : typeof m6 +> : ^^^^^^^^^ +>m7 : typeof m7 +> : ^^^^^^^^^ + + /** module m8 comment*/ + export namespace m8 { +>m8 : typeof m8 +> : ^^^^^^^^^ + + /** Exported class comment*/ + export class c { +>c : c +> : ^ + } + } +} +new m5.m6.m7.m8.c(); +>new m5.m6.m7.m8.c() : m5.m6.m7.m8.c +> : ^^^^^^^^^^^^^ +>m5.m6.m7.m8.c : typeof m5.m6.m7.m8.c +> : ^^^^^^^^^^^^^^^^^^^^ +>m5.m6.m7.m8 : typeof m5.m6.m7.m8 +> : ^^^^^^^^^^^^^^^^^^ +>m5.m6.m7 : typeof m5.m6.m7 +> : ^^^^^^^^^^^^^^^ +>m5.m6 : typeof m5.m6 +> : ^^^^^^^^^^^^ +>m5 : typeof m5 +> : ^^^^^^^^^ +>m6 : typeof m5.m6 +> : ^^^^^^^^^^^^ +>m7 : typeof m5.m6.m7 +> : ^^^^^^^^^^^^^^^ +>m8 : typeof m5.m6.m7.m8 +> : ^^^^^^^^^^^^^^^^^^ +>c : typeof m5.m6.m7.m8.c +> : ^^^^^^^^^^^^^^^^^^^^ + +namespace m6.m7 { +>m6 : typeof m6 +> : ^^^^^^^^^ +>m7 : typeof m7 +> : ^^^^^^^^^ + + export namespace m8 { +>m8 : typeof m8 +> : ^^^^^^^^^ + + /** Exported class comment*/ + export class c { +>c : c +> : ^ + } + } +} +new m6.m7.m8.c(); +>new m6.m7.m8.c() : m6.m7.m8.c +> : ^^^^^^^^^^ +>m6.m7.m8.c : typeof m6.m7.m8.c +> : ^^^^^^^^^^^^^^^^^ +>m6.m7.m8 : typeof m6.m7.m8 +> : ^^^^^^^^^^^^^^^ +>m6.m7 : typeof m6.m7 +> : ^^^^^^^^^^^^ +>m6 : typeof m6 +> : ^^^^^^^^^ +>m7 : typeof m6.m7 +> : ^^^^^^^^^^^^ +>m8 : typeof m6.m7.m8 +> : ^^^^^^^^^^^^^^^ +>c : typeof m6.m7.m8.c +> : ^^^^^^^^^^^^^^^^^ + +namespace m7.m8 { +>m7 : typeof m7 +> : ^^^^^^^^^ +>m8 : typeof m8 +> : ^^^^^^^^^ + + /** module m9 comment*/ + export namespace m9 { +>m9 : typeof m9 +> : ^^^^^^^^^ + + /** Exported class comment*/ + export class c { +>c : c +> : ^ + } + + /** class d */ + class d { +>d : d +> : ^ + } + + // class e + export class e { +>e : e +> : ^ + } + } +} +new m7.m8.m9.c(); +>new m7.m8.m9.c() : m7.m8.m9.c +> : ^^^^^^^^^^ +>m7.m8.m9.c : typeof m7.m8.m9.c +> : ^^^^^^^^^^^^^^^^^ +>m7.m8.m9 : typeof m7.m8.m9 +> : ^^^^^^^^^^^^^^^ +>m7.m8 : typeof m7.m8 +> : ^^^^^^^^^^^^ +>m7 : typeof m7 +> : ^^^^^^^^^ +>m8 : typeof m7.m8 +> : ^^^^^^^^^^^^ +>m9 : typeof m7.m8.m9 +> : ^^^^^^^^^^^^^^^ +>c : typeof m7.m8.m9.c +> : ^^^^^^^^^^^^^^^^^ + diff --git a/tests/baselines/reference/commentsMultiModuleMultiFile.errors.txt b/tests/baselines/reference/commentsMultiModuleMultiFile(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/commentsMultiModuleMultiFile.errors.txt rename to tests/baselines/reference/commentsMultiModuleMultiFile(target=es2015).errors.txt diff --git a/tests/baselines/reference/commentsMultiModuleMultiFile(target=es2015).js b/tests/baselines/reference/commentsMultiModuleMultiFile(target=es2015).js new file mode 100644 index 0000000000000..66c8741400d05 --- /dev/null +++ b/tests/baselines/reference/commentsMultiModuleMultiFile(target=es2015).js @@ -0,0 +1,108 @@ +//// [tests/cases/compiler/commentsMultiModuleMultiFile.ts] //// + +//// [commentsMultiModuleMultiFile_0.ts] +/** this is multi declare module*/ +export namespace multiM { + /// class b comment + export class b { + } +} +/** thi is multi module 2*/ +export namespace multiM { + /** class c comment*/ + export class c { + } + + // class e comment + export class e { + } +} + +new multiM.b(); +new multiM.c(); + +//// [commentsMultiModuleMultiFile_1.ts] +import m = require('commentsMultiModuleMultiFile_0'); +/** this is multi module 3 comment*/ +export namespace multiM { + /** class d comment*/ + export class d { + } + + /// class f comment + export class f { + } +} +new multiM.d(); + +//// [commentsMultiModuleMultiFile_0.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.multiM = void 0; + /** this is multi declare module*/ + var multiM; + (function (multiM) { + /// class b comment + class b { + } + multiM.b = b; + })(multiM || (exports.multiM = multiM = {})); + /** thi is multi module 2*/ + (function (multiM) { + /** class c comment*/ + class c { + } + multiM.c = c; + // class e comment + class e { + } + multiM.e = e; + })(multiM || (exports.multiM = multiM = {})); + new multiM.b(); + new multiM.c(); +}); +//// [commentsMultiModuleMultiFile_1.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.multiM = void 0; + /** this is multi module 3 comment*/ + var multiM; + (function (multiM) { + /** class d comment*/ + class d { + } + multiM.d = d; + /// class f comment + class f { + } + multiM.f = f; + })(multiM || (exports.multiM = multiM = {})); + new multiM.d(); +}); + + +//// [commentsMultiModuleMultiFile_0.d.ts] +/** this is multi declare module*/ +export declare namespace multiM { + class b { + } +} +/** thi is multi module 2*/ +export declare namespace multiM { + /** class c comment*/ + class c { + } + class e { + } +} +//// [commentsMultiModuleMultiFile_1.d.ts] +/** this is multi module 3 comment*/ +export declare namespace multiM { + /** class d comment*/ + class d { + } + class f { + } +} diff --git a/tests/baselines/reference/commentsMultiModuleMultiFile.symbols b/tests/baselines/reference/commentsMultiModuleMultiFile(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/commentsMultiModuleMultiFile.symbols rename to tests/baselines/reference/commentsMultiModuleMultiFile(target=es2015).symbols diff --git a/tests/baselines/reference/commentsMultiModuleMultiFile.types b/tests/baselines/reference/commentsMultiModuleMultiFile(target=es2015).types similarity index 100% rename from tests/baselines/reference/commentsMultiModuleMultiFile.types rename to tests/baselines/reference/commentsMultiModuleMultiFile(target=es2015).types diff --git a/tests/baselines/reference/commentsMultiModuleMultiFile(target=es5).errors.txt b/tests/baselines/reference/commentsMultiModuleMultiFile(target=es5).errors.txt new file mode 100644 index 0000000000000..7bba5d1ad20e3 --- /dev/null +++ b/tests/baselines/reference/commentsMultiModuleMultiFile(target=es5).errors.txt @@ -0,0 +1,38 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== commentsMultiModuleMultiFile_1.ts (0 errors) ==== + import m = require('commentsMultiModuleMultiFile_0'); + /** this is multi module 3 comment*/ + export namespace multiM { + /** class d comment*/ + export class d { + } + + /// class f comment + export class f { + } + } + new multiM.d(); +==== commentsMultiModuleMultiFile_0.ts (0 errors) ==== + /** this is multi declare module*/ + export namespace multiM { + /// class b comment + export class b { + } + } + /** thi is multi module 2*/ + export namespace multiM { + /** class c comment*/ + export class c { + } + + // class e comment + export class e { + } + } + + new multiM.b(); + new multiM.c(); + \ No newline at end of file diff --git a/tests/baselines/reference/commentsMultiModuleMultiFile.js b/tests/baselines/reference/commentsMultiModuleMultiFile(target=es5).js similarity index 100% rename from tests/baselines/reference/commentsMultiModuleMultiFile.js rename to tests/baselines/reference/commentsMultiModuleMultiFile(target=es5).js diff --git a/tests/baselines/reference/commentsMultiModuleMultiFile(target=es5).symbols b/tests/baselines/reference/commentsMultiModuleMultiFile(target=es5).symbols new file mode 100644 index 0000000000000..02d8eec527ff8 --- /dev/null +++ b/tests/baselines/reference/commentsMultiModuleMultiFile(target=es5).symbols @@ -0,0 +1,60 @@ +//// [tests/cases/compiler/commentsMultiModuleMultiFile.ts] //// + +=== commentsMultiModuleMultiFile_1.ts === +import m = require('commentsMultiModuleMultiFile_0'); +>m : Symbol(m, Decl(commentsMultiModuleMultiFile_1.ts, 0, 0)) + +/** this is multi module 3 comment*/ +export namespace multiM { +>multiM : Symbol(multiM, Decl(commentsMultiModuleMultiFile_1.ts, 0, 53)) + + /** class d comment*/ + export class d { +>d : Symbol(d, Decl(commentsMultiModuleMultiFile_1.ts, 2, 25)) + } + + /// class f comment + export class f { +>f : Symbol(f, Decl(commentsMultiModuleMultiFile_1.ts, 5, 5)) + } +} +new multiM.d(); +>multiM.d : Symbol(multiM.d, Decl(commentsMultiModuleMultiFile_1.ts, 2, 25)) +>multiM : Symbol(multiM, Decl(commentsMultiModuleMultiFile_1.ts, 0, 53)) +>d : Symbol(multiM.d, Decl(commentsMultiModuleMultiFile_1.ts, 2, 25)) + +=== commentsMultiModuleMultiFile_0.ts === +/** this is multi declare module*/ +export namespace multiM { +>multiM : Symbol(multiM, Decl(commentsMultiModuleMultiFile_0.ts, 0, 0), Decl(commentsMultiModuleMultiFile_0.ts, 5, 1)) + + /// class b comment + export class b { +>b : Symbol(b, Decl(commentsMultiModuleMultiFile_0.ts, 1, 25)) + } +} +/** thi is multi module 2*/ +export namespace multiM { +>multiM : Symbol(multiM, Decl(commentsMultiModuleMultiFile_0.ts, 0, 0), Decl(commentsMultiModuleMultiFile_0.ts, 5, 1)) + + /** class c comment*/ + export class c { +>c : Symbol(c, Decl(commentsMultiModuleMultiFile_0.ts, 7, 25)) + } + + // class e comment + export class e { +>e : Symbol(e, Decl(commentsMultiModuleMultiFile_0.ts, 10, 5)) + } +} + +new multiM.b(); +>multiM.b : Symbol(multiM.b, Decl(commentsMultiModuleMultiFile_0.ts, 1, 25)) +>multiM : Symbol(multiM, Decl(commentsMultiModuleMultiFile_0.ts, 0, 0), Decl(commentsMultiModuleMultiFile_0.ts, 5, 1)) +>b : Symbol(multiM.b, Decl(commentsMultiModuleMultiFile_0.ts, 1, 25)) + +new multiM.c(); +>multiM.c : Symbol(multiM.c, Decl(commentsMultiModuleMultiFile_0.ts, 7, 25)) +>multiM : Symbol(multiM, Decl(commentsMultiModuleMultiFile_0.ts, 0, 0), Decl(commentsMultiModuleMultiFile_0.ts, 5, 1)) +>c : Symbol(multiM.c, Decl(commentsMultiModuleMultiFile_0.ts, 7, 25)) + diff --git a/tests/baselines/reference/commentsMultiModuleMultiFile(target=es5).types b/tests/baselines/reference/commentsMultiModuleMultiFile(target=es5).types new file mode 100644 index 0000000000000..fb0322a53c25c --- /dev/null +++ b/tests/baselines/reference/commentsMultiModuleMultiFile(target=es5).types @@ -0,0 +1,84 @@ +//// [tests/cases/compiler/commentsMultiModuleMultiFile.ts] //// + +=== commentsMultiModuleMultiFile_1.ts === +import m = require('commentsMultiModuleMultiFile_0'); +>m : typeof m +> : ^^^^^^^^ + +/** this is multi module 3 comment*/ +export namespace multiM { +>multiM : typeof multiM +> : ^^^^^^^^^^^^^ + + /** class d comment*/ + export class d { +>d : d +> : ^ + } + + /// class f comment + export class f { +>f : f +> : ^ + } +} +new multiM.d(); +>new multiM.d() : multiM.d +> : ^^^^^^^^ +>multiM.d : typeof multiM.d +> : ^^^^^^^^^^^^^^^ +>multiM : typeof multiM +> : ^^^^^^^^^^^^^ +>d : typeof multiM.d +> : ^^^^^^^^^^^^^^^ + +=== commentsMultiModuleMultiFile_0.ts === +/** this is multi declare module*/ +export namespace multiM { +>multiM : typeof multiM +> : ^^^^^^^^^^^^^ + + /// class b comment + export class b { +>b : b +> : ^ + } +} +/** thi is multi module 2*/ +export namespace multiM { +>multiM : typeof multiM +> : ^^^^^^^^^^^^^ + + /** class c comment*/ + export class c { +>c : c +> : ^ + } + + // class e comment + export class e { +>e : e +> : ^ + } +} + +new multiM.b(); +>new multiM.b() : multiM.b +> : ^^^^^^^^ +>multiM.b : typeof multiM.b +> : ^^^^^^^^^^^^^^^ +>multiM : typeof multiM +> : ^^^^^^^^^^^^^ +>b : typeof multiM.b +> : ^^^^^^^^^^^^^^^ + +new multiM.c(); +>new multiM.c() : multiM.c +> : ^^^^^^^^ +>multiM.c : typeof multiM.c +> : ^^^^^^^^^^^^^^^ +>multiM : typeof multiM +> : ^^^^^^^^^^^^^ +>c : typeof multiM.c +> : ^^^^^^^^^^^^^^^ + diff --git a/tests/baselines/reference/commentsMultiModuleSingleFile(target=es2015).js b/tests/baselines/reference/commentsMultiModuleSingleFile(target=es2015).js new file mode 100644 index 0000000000000..7a99c4fd60690 --- /dev/null +++ b/tests/baselines/reference/commentsMultiModuleSingleFile(target=es2015).js @@ -0,0 +1,71 @@ +//// [tests/cases/compiler/commentsMultiModuleSingleFile.ts] //// + +//// [commentsMultiModuleSingleFile.ts] +/** this is multi declare module*/ +namespace multiM { + /** class b*/ + export class b { + } + + // class d + export class d { + } +} + +/// this is multi module 2 +namespace multiM { + /** class c comment*/ + export class c { + } + + /// class e + export class e { + } +} +new multiM.b(); +new multiM.c(); + +//// [commentsMultiModuleSingleFile.js] +/** this is multi declare module*/ +var multiM; +(function (multiM) { + /** class b*/ + class b { + } + multiM.b = b; + // class d + class d { + } + multiM.d = d; +})(multiM || (multiM = {})); +/// this is multi module 2 +(function (multiM) { + /** class c comment*/ + class c { + } + multiM.c = c; + /// class e + class e { + } + multiM.e = e; +})(multiM || (multiM = {})); +new multiM.b(); +new multiM.c(); + + +//// [commentsMultiModuleSingleFile.d.ts] +/** this is multi declare module*/ +declare namespace multiM { + /** class b*/ + class b { + } + class d { + } +} +declare namespace multiM { + /** class c comment*/ + class c { + } + class e { + } +} diff --git a/tests/baselines/reference/commentsMultiModuleSingleFile.symbols b/tests/baselines/reference/commentsMultiModuleSingleFile(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/commentsMultiModuleSingleFile.symbols rename to tests/baselines/reference/commentsMultiModuleSingleFile(target=es2015).symbols diff --git a/tests/baselines/reference/commentsMultiModuleSingleFile.types b/tests/baselines/reference/commentsMultiModuleSingleFile(target=es2015).types similarity index 100% rename from tests/baselines/reference/commentsMultiModuleSingleFile.types rename to tests/baselines/reference/commentsMultiModuleSingleFile(target=es2015).types diff --git a/tests/baselines/reference/commentsMultiModuleSingleFile.js b/tests/baselines/reference/commentsMultiModuleSingleFile(target=es5).js similarity index 100% rename from tests/baselines/reference/commentsMultiModuleSingleFile.js rename to tests/baselines/reference/commentsMultiModuleSingleFile(target=es5).js diff --git a/tests/baselines/reference/commentsMultiModuleSingleFile(target=es5).symbols b/tests/baselines/reference/commentsMultiModuleSingleFile(target=es5).symbols new file mode 100644 index 0000000000000..d0e9685815f6e --- /dev/null +++ b/tests/baselines/reference/commentsMultiModuleSingleFile(target=es5).symbols @@ -0,0 +1,42 @@ +//// [tests/cases/compiler/commentsMultiModuleSingleFile.ts] //// + +=== commentsMultiModuleSingleFile.ts === +/** this is multi declare module*/ +namespace multiM { +>multiM : Symbol(multiM, Decl(commentsMultiModuleSingleFile.ts, 0, 0), Decl(commentsMultiModuleSingleFile.ts, 9, 1)) + + /** class b*/ + export class b { +>b : Symbol(b, Decl(commentsMultiModuleSingleFile.ts, 1, 18)) + } + + // class d + export class d { +>d : Symbol(d, Decl(commentsMultiModuleSingleFile.ts, 4, 5)) + } +} + +/// this is multi module 2 +namespace multiM { +>multiM : Symbol(multiM, Decl(commentsMultiModuleSingleFile.ts, 0, 0), Decl(commentsMultiModuleSingleFile.ts, 9, 1)) + + /** class c comment*/ + export class c { +>c : Symbol(c, Decl(commentsMultiModuleSingleFile.ts, 12, 18)) + } + + /// class e + export class e { +>e : Symbol(e, Decl(commentsMultiModuleSingleFile.ts, 15, 5)) + } +} +new multiM.b(); +>multiM.b : Symbol(multiM.b, Decl(commentsMultiModuleSingleFile.ts, 1, 18)) +>multiM : Symbol(multiM, Decl(commentsMultiModuleSingleFile.ts, 0, 0), Decl(commentsMultiModuleSingleFile.ts, 9, 1)) +>b : Symbol(multiM.b, Decl(commentsMultiModuleSingleFile.ts, 1, 18)) + +new multiM.c(); +>multiM.c : Symbol(multiM.c, Decl(commentsMultiModuleSingleFile.ts, 12, 18)) +>multiM : Symbol(multiM, Decl(commentsMultiModuleSingleFile.ts, 0, 0), Decl(commentsMultiModuleSingleFile.ts, 9, 1)) +>c : Symbol(multiM.c, Decl(commentsMultiModuleSingleFile.ts, 12, 18)) + diff --git a/tests/baselines/reference/commentsMultiModuleSingleFile(target=es5).types b/tests/baselines/reference/commentsMultiModuleSingleFile(target=es5).types new file mode 100644 index 0000000000000..49400e9ea2316 --- /dev/null +++ b/tests/baselines/reference/commentsMultiModuleSingleFile(target=es5).types @@ -0,0 +1,58 @@ +//// [tests/cases/compiler/commentsMultiModuleSingleFile.ts] //// + +=== commentsMultiModuleSingleFile.ts === +/** this is multi declare module*/ +namespace multiM { +>multiM : typeof multiM +> : ^^^^^^^^^^^^^ + + /** class b*/ + export class b { +>b : b +> : ^ + } + + // class d + export class d { +>d : d +> : ^ + } +} + +/// this is multi module 2 +namespace multiM { +>multiM : typeof multiM +> : ^^^^^^^^^^^^^ + + /** class c comment*/ + export class c { +>c : c +> : ^ + } + + /// class e + export class e { +>e : e +> : ^ + } +} +new multiM.b(); +>new multiM.b() : multiM.b +> : ^^^^^^^^ +>multiM.b : typeof multiM.b +> : ^^^^^^^^^^^^^^^ +>multiM : typeof multiM +> : ^^^^^^^^^^^^^ +>b : typeof multiM.b +> : ^^^^^^^^^^^^^^^ + +new multiM.c(); +>new multiM.c() : multiM.c +> : ^^^^^^^^ +>multiM.c : typeof multiM.c +> : ^^^^^^^^^^^^^^^ +>multiM : typeof multiM +> : ^^^^^^^^^^^^^ +>c : typeof multiM.c +> : ^^^^^^^^^^^^^^^ + diff --git a/tests/baselines/reference/commentsOnObjectLiteral3(target=es2015).js b/tests/baselines/reference/commentsOnObjectLiteral3(target=es2015).js new file mode 100644 index 0000000000000..79eb0fb59184c --- /dev/null +++ b/tests/baselines/reference/commentsOnObjectLiteral3(target=es2015).js @@ -0,0 +1,40 @@ +//// [tests/cases/compiler/commentsOnObjectLiteral3.ts] //// + +//// [commentsOnObjectLiteral3.ts] +var v = { + //property + prop: 1 /* multiple trailing comments */ /*trailing comments*/, + //property + func: function () { + }, + //PropertyName + CallSignature + func1() { }, + //getter + get a() { + return this.prop; + } /*trailing 1*/, + //setter + set a(value) { + this.prop = value; + } // trailing 2 +}; + + +//// [commentsOnObjectLiteral3.js] +var v = { + //property + prop: 1 /* multiple trailing comments */ /*trailing comments*/, + //property + func: function () { + }, + //PropertyName + CallSignature + func1() { }, + //getter + get a() { + return this.prop; + } /*trailing 1*/, + //setter + set a(value) { + this.prop = value; + } // trailing 2 +}; diff --git a/tests/baselines/reference/commentsOnObjectLiteral3.symbols b/tests/baselines/reference/commentsOnObjectLiteral3(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/commentsOnObjectLiteral3.symbols rename to tests/baselines/reference/commentsOnObjectLiteral3(target=es2015).symbols diff --git a/tests/baselines/reference/commentsOnObjectLiteral3.types b/tests/baselines/reference/commentsOnObjectLiteral3(target=es2015).types similarity index 100% rename from tests/baselines/reference/commentsOnObjectLiteral3.types rename to tests/baselines/reference/commentsOnObjectLiteral3(target=es2015).types diff --git a/tests/baselines/reference/commentsOnObjectLiteral3.js b/tests/baselines/reference/commentsOnObjectLiteral3(target=es5).js similarity index 100% rename from tests/baselines/reference/commentsOnObjectLiteral3.js rename to tests/baselines/reference/commentsOnObjectLiteral3(target=es5).js diff --git a/tests/baselines/reference/commentsOnObjectLiteral3(target=es5).symbols b/tests/baselines/reference/commentsOnObjectLiteral3(target=es5).symbols new file mode 100644 index 0000000000000..d2ff2764532ed --- /dev/null +++ b/tests/baselines/reference/commentsOnObjectLiteral3(target=es5).symbols @@ -0,0 +1,36 @@ +//// [tests/cases/compiler/commentsOnObjectLiteral3.ts] //// + +=== commentsOnObjectLiteral3.ts === +var v = { +>v : Symbol(v, Decl(commentsOnObjectLiteral3.ts, 0, 3)) + + //property + prop: 1 /* multiple trailing comments */ /*trailing comments*/, +>prop : Symbol(prop, Decl(commentsOnObjectLiteral3.ts, 0, 9)) + + //property + func: function () { +>func : Symbol(func, Decl(commentsOnObjectLiteral3.ts, 2, 64)) + + }, + //PropertyName + CallSignature + func1() { }, +>func1 : Symbol(func1, Decl(commentsOnObjectLiteral3.ts, 5, 3)) + + //getter + get a() { +>a : Symbol(a, Decl(commentsOnObjectLiteral3.ts, 7, 13), Decl(commentsOnObjectLiteral3.ts, 11, 18)) + + return this.prop; + } /*trailing 1*/, + //setter + set a(value) { +>a : Symbol(a, Decl(commentsOnObjectLiteral3.ts, 7, 13), Decl(commentsOnObjectLiteral3.ts, 11, 18)) +>value : Symbol(value, Decl(commentsOnObjectLiteral3.ts, 13, 7)) + + this.prop = value; +>value : Symbol(value, Decl(commentsOnObjectLiteral3.ts, 13, 7)) + + } // trailing 2 +}; + diff --git a/tests/baselines/reference/commentsOnObjectLiteral3(target=es5).types b/tests/baselines/reference/commentsOnObjectLiteral3(target=es5).types new file mode 100644 index 0000000000000..abdf46a8f723f --- /dev/null +++ b/tests/baselines/reference/commentsOnObjectLiteral3(target=es5).types @@ -0,0 +1,58 @@ +//// [tests/cases/compiler/commentsOnObjectLiteral3.ts] //// + +=== commentsOnObjectLiteral3.ts === +var v = { +>v : { prop: number; func: () => void; func1(): void; a: any; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ //property prop: 1 /* multiple trailing comments */ /*trailing comments*/, //property func: function () { }, //PropertyName + CallSignature func1() { }, //getter get a() { return this.prop; } /*trailing 1*/, //setter set a(value) { this.prop = value; } // trailing 2} : { prop: number; func: () => void; func1(): void; a: any; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + //property + prop: 1 /* multiple trailing comments */ /*trailing comments*/, +>prop : number +> : ^^^^^^ +>1 : 1 +> : ^ + + //property + func: function () { +>func : () => void +> : ^^^^^^^^^^ +>function () { } : () => void +> : ^^^^^^^^^^ + + }, + //PropertyName + CallSignature + func1() { }, +>func1 : () => void +> : ^^^^^^^^^^ + + //getter + get a() { +>a : any + + return this.prop; +>this.prop : any +>this : any +> : ^^^ +>prop : any +> : ^^^ + + } /*trailing 1*/, + //setter + set a(value) { +>a : any +>value : any + + this.prop = value; +>this.prop = value : any +>this.prop : any +>this : any +> : ^^^ +>prop : any +> : ^^^ +>value : any + + } // trailing 2 +}; + diff --git a/tests/baselines/reference/commentsOnObjectLiteral4.js b/tests/baselines/reference/commentsOnObjectLiteral4(target=es2015).js similarity index 100% rename from tests/baselines/reference/commentsOnObjectLiteral4.js rename to tests/baselines/reference/commentsOnObjectLiteral4(target=es2015).js diff --git a/tests/baselines/reference/commentsOnObjectLiteral4.symbols b/tests/baselines/reference/commentsOnObjectLiteral4(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/commentsOnObjectLiteral4.symbols rename to tests/baselines/reference/commentsOnObjectLiteral4(target=es2015).symbols diff --git a/tests/baselines/reference/commentsOnObjectLiteral4.types b/tests/baselines/reference/commentsOnObjectLiteral4(target=es2015).types similarity index 100% rename from tests/baselines/reference/commentsOnObjectLiteral4.types rename to tests/baselines/reference/commentsOnObjectLiteral4(target=es2015).types diff --git a/tests/baselines/reference/commentsOnObjectLiteral4(target=es5).js b/tests/baselines/reference/commentsOnObjectLiteral4(target=es5).js new file mode 100644 index 0000000000000..cc0bfe8591785 --- /dev/null +++ b/tests/baselines/reference/commentsOnObjectLiteral4(target=es5).js @@ -0,0 +1,22 @@ +//// [tests/cases/compiler/commentsOnObjectLiteral4.ts] //// + +//// [commentsOnObjectLiteral4.ts] +var v = { + /** + * @type {number} + */ + get bar(): number { + return 12; + } +} + + +//// [commentsOnObjectLiteral4.js] +var v = { + /** + * @type {number} + */ + get bar() { + return 12; + } +}; diff --git a/tests/baselines/reference/commentsOnObjectLiteral4(target=es5).symbols b/tests/baselines/reference/commentsOnObjectLiteral4(target=es5).symbols new file mode 100644 index 0000000000000..a181da345a0b5 --- /dev/null +++ b/tests/baselines/reference/commentsOnObjectLiteral4(target=es5).symbols @@ -0,0 +1,16 @@ +//// [tests/cases/compiler/commentsOnObjectLiteral4.ts] //// + +=== commentsOnObjectLiteral4.ts === +var v = { +>v : Symbol(v, Decl(commentsOnObjectLiteral4.ts, 0, 3)) + + /** + * @type {number} + */ + get bar(): number { +>bar : Symbol(bar, Decl(commentsOnObjectLiteral4.ts, 0, 9)) + + return 12; + } +} + diff --git a/tests/baselines/reference/commentsOnObjectLiteral4(target=es5).types b/tests/baselines/reference/commentsOnObjectLiteral4(target=es5).types new file mode 100644 index 0000000000000..27bf60d646df2 --- /dev/null +++ b/tests/baselines/reference/commentsOnObjectLiteral4(target=es5).types @@ -0,0 +1,22 @@ +//// [tests/cases/compiler/commentsOnObjectLiteral4.ts] //// + +=== commentsOnObjectLiteral4.ts === +var v = { +>v : { readonly bar: number; } +> : ^^^^^^^^^^^^^^^^ ^^^ +>{ /** * @type {number} */ get bar(): number { return 12; }} : { readonly bar: number; } +> : ^^^^^^^^^^^^^^^^ ^^^ + + /** + * @type {number} + */ + get bar(): number { +>bar : number +> : ^^^^^^ + + return 12; +>12 : 12 +> : ^^ + } +} + diff --git a/tests/baselines/reference/commentsOnObjectLiteral5(target=es2015).js b/tests/baselines/reference/commentsOnObjectLiteral5(target=es2015).js new file mode 100644 index 0000000000000..0986e9058e875 --- /dev/null +++ b/tests/baselines/reference/commentsOnObjectLiteral5(target=es2015).js @@ -0,0 +1,18 @@ +//// [tests/cases/compiler/commentsOnObjectLiteral5.ts] //// + +//// [commentsOnObjectLiteral5.ts] +const a = { + p0: 0, // Comment 0 + p1: 0, /* Comment 1 + A multiline comment. */ + p2: 0, // Comment 2 +}; + + +//// [commentsOnObjectLiteral5.js] +const a = { + p0: 0, // Comment 0 + p1: 0, /* Comment 1 + A multiline comment. */ + p2: 0, // Comment 2 +}; diff --git a/tests/baselines/reference/commentsOnObjectLiteral5.symbols b/tests/baselines/reference/commentsOnObjectLiteral5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/commentsOnObjectLiteral5.symbols rename to tests/baselines/reference/commentsOnObjectLiteral5(target=es2015).symbols diff --git a/tests/baselines/reference/commentsOnObjectLiteral5.types b/tests/baselines/reference/commentsOnObjectLiteral5(target=es2015).types similarity index 100% rename from tests/baselines/reference/commentsOnObjectLiteral5.types rename to tests/baselines/reference/commentsOnObjectLiteral5(target=es2015).types diff --git a/tests/baselines/reference/commentsOnObjectLiteral5.js b/tests/baselines/reference/commentsOnObjectLiteral5(target=es5).js similarity index 100% rename from tests/baselines/reference/commentsOnObjectLiteral5.js rename to tests/baselines/reference/commentsOnObjectLiteral5(target=es5).js diff --git a/tests/baselines/reference/commentsOnObjectLiteral5(target=es5).symbols b/tests/baselines/reference/commentsOnObjectLiteral5(target=es5).symbols new file mode 100644 index 0000000000000..c3bbeb3365b9f --- /dev/null +++ b/tests/baselines/reference/commentsOnObjectLiteral5(target=es5).symbols @@ -0,0 +1,18 @@ +//// [tests/cases/compiler/commentsOnObjectLiteral5.ts] //// + +=== commentsOnObjectLiteral5.ts === +const a = { +>a : Symbol(a, Decl(commentsOnObjectLiteral5.ts, 0, 5)) + + p0: 0, // Comment 0 +>p0 : Symbol(p0, Decl(commentsOnObjectLiteral5.ts, 0, 11)) + + p1: 0, /* Comment 1 +>p1 : Symbol(p1, Decl(commentsOnObjectLiteral5.ts, 1, 10)) + + A multiline comment. */ + p2: 0, // Comment 2 +>p2 : Symbol(p2, Decl(commentsOnObjectLiteral5.ts, 2, 10)) + +}; + diff --git a/tests/baselines/reference/commentsOnObjectLiteral5(target=es5).types b/tests/baselines/reference/commentsOnObjectLiteral5(target=es5).types new file mode 100644 index 0000000000000..9957f2c7fff33 --- /dev/null +++ b/tests/baselines/reference/commentsOnObjectLiteral5(target=es5).types @@ -0,0 +1,30 @@ +//// [tests/cases/compiler/commentsOnObjectLiteral5.ts] //// + +=== commentsOnObjectLiteral5.ts === +const a = { +>a : { p0: number; p1: number; p2: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ p0: 0, // Comment 0 p1: 0, /* Comment 1 A multiline comment. */ p2: 0, // Comment 2} : { p0: number; p1: number; p2: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + p0: 0, // Comment 0 +>p0 : number +> : ^^^^^^ +>0 : 0 +> : ^ + + p1: 0, /* Comment 1 +>p1 : number +> : ^^^^^^ +>0 : 0 +> : ^ + + A multiline comment. */ + p2: 0, // Comment 2 +>p2 : number +> : ^^^^^^ +>0 : 0 +> : ^ + +}; + diff --git a/tests/baselines/reference/commentsOnRequireStatement.js b/tests/baselines/reference/commentsOnRequireStatement(target=es2015).js similarity index 100% rename from tests/baselines/reference/commentsOnRequireStatement.js rename to tests/baselines/reference/commentsOnRequireStatement(target=es2015).js diff --git a/tests/baselines/reference/commentsOnRequireStatement.symbols b/tests/baselines/reference/commentsOnRequireStatement(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/commentsOnRequireStatement.symbols rename to tests/baselines/reference/commentsOnRequireStatement(target=es2015).symbols diff --git a/tests/baselines/reference/commentsOnRequireStatement.types b/tests/baselines/reference/commentsOnRequireStatement(target=es2015).types similarity index 100% rename from tests/baselines/reference/commentsOnRequireStatement.types rename to tests/baselines/reference/commentsOnRequireStatement(target=es2015).types diff --git a/tests/baselines/reference/commentsOnRequireStatement(target=es5).js b/tests/baselines/reference/commentsOnRequireStatement(target=es5).js new file mode 100644 index 0000000000000..a4406a120e8c8 --- /dev/null +++ b/tests/baselines/reference/commentsOnRequireStatement(target=es5).js @@ -0,0 +1,41 @@ +//// [tests/cases/compiler/commentsOnRequireStatement.ts] //// + +//// [0.ts] +export var subject = 10; + +//// [1.ts] +export var subject1 = 10; + +//// [2.ts] +/* blah0 */ +// blah +// blah +// blah +export {subject} from './0'; +/* blah1 */ +export {subject1} from './1'; + + +//// [0.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.subject = void 0; +exports.subject = 10; +//// [1.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.subject1 = void 0; +exports.subject1 = 10; +//// [2.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.subject1 = exports.subject = void 0; +/* blah0 */ +// blah +// blah +// blah +var _0_1 = require("./0"); +Object.defineProperty(exports, "subject", { enumerable: true, get: function () { return _0_1.subject; } }); +/* blah1 */ +var _1_1 = require("./1"); +Object.defineProperty(exports, "subject1", { enumerable: true, get: function () { return _1_1.subject1; } }); diff --git a/tests/baselines/reference/commentsOnRequireStatement(target=es5).symbols b/tests/baselines/reference/commentsOnRequireStatement(target=es5).symbols new file mode 100644 index 0000000000000..3a08a0048220e --- /dev/null +++ b/tests/baselines/reference/commentsOnRequireStatement(target=es5).symbols @@ -0,0 +1,22 @@ +//// [tests/cases/compiler/commentsOnRequireStatement.ts] //// + +=== 0.ts === +export var subject = 10; +>subject : Symbol(subject, Decl(0.ts, 0, 10)) + +=== 1.ts === +export var subject1 = 10; +>subject1 : Symbol(subject1, Decl(1.ts, 0, 10)) + +=== 2.ts === +/* blah0 */ +// blah +// blah +// blah +export {subject} from './0'; +>subject : Symbol(subject, Decl(2.ts, 4, 8)) + +/* blah1 */ +export {subject1} from './1'; +>subject1 : Symbol(subject1, Decl(2.ts, 6, 8)) + diff --git a/tests/baselines/reference/commentsOnRequireStatement(target=es5).types b/tests/baselines/reference/commentsOnRequireStatement(target=es5).types new file mode 100644 index 0000000000000..9b2aaecaf2d1a --- /dev/null +++ b/tests/baselines/reference/commentsOnRequireStatement(target=es5).types @@ -0,0 +1,30 @@ +//// [tests/cases/compiler/commentsOnRequireStatement.ts] //// + +=== 0.ts === +export var subject = 10; +>subject : number +> : ^^^^^^ +>10 : 10 +> : ^^ + +=== 1.ts === +export var subject1 = 10; +>subject1 : number +> : ^^^^^^ +>10 : 10 +> : ^^ + +=== 2.ts === +/* blah0 */ +// blah +// blah +// blah +export {subject} from './0'; +>subject : number +> : ^^^^^^ + +/* blah1 */ +export {subject1} from './1'; +>subject1 : number +> : ^^^^^^ + diff --git a/tests/baselines/reference/commentsOverloads(target=es2015).js b/tests/baselines/reference/commentsOverloads(target=es2015).js new file mode 100644 index 0000000000000..841f94fce628d --- /dev/null +++ b/tests/baselines/reference/commentsOverloads(target=es2015).js @@ -0,0 +1,376 @@ +//// [tests/cases/compiler/commentsOverloads.ts] //// + +//// [commentsOverloads.ts] +/** this is signature 1*/ +function f1(/**param a*/a: number): number; +function f1(b: string): number; +function f1(aOrb: any) { + return 10; +} +f1("hello"); +f1(10); +function f2(a: number): number; +/** this is signature 2*/ +function f2(b: string): number; +/** this is f2 var comment*/ +function f2(aOrb: any) { + return 10; +} +f2("hello"); +f2(10); +function f3(a: number): number; +function f3(b: string): number; +function f3(aOrb: any) { + return 10; +} +f3("hello"); +f3(10); +/** this is signature 4 - with number parameter*/ +function f4(/**param a*/a: number): number; +/** this is signature 4 - with string parameter*/ +function f4(b: string): number; +function f4(aOrb: any) { + return 10; +} +f4("hello"); +f4(10); +interface i1 { + /**this signature 1*/ + (/**param a*/ a: number): number; + /**this is signature 2*/ + (b: string): number; + /** foo 1*/ + foo(a: number): number; + /** foo 2*/ + foo(b: string): number; + // foo 3 + foo(arr: number[]): number; + /** foo 4 */ + foo(arr: string[]): number; + + foo2(a: number): number; + /** foo2 2*/ + foo2(b: string): number; + foo3(a: number): number; + foo3(b: string): number; + /** foo4 1*/ + foo4(a: number): number; + foo4(b: string): number; + /** foo4 any */ + foo4(c: any): any; + /// new 1 + new (a: string); + /** new 1*/ + new (b: number); +} +var i1_i: i1; +interface i2 { + new (a: string); + /** new 2*/ + new (b: number); + (a: number): number; + /**this is signature 2*/ + (b: string): number; +} +var i2_i: i2; +interface i3 { + /** new 1*/ + new (a: string); + /** new 2*/ + new (b: number); + /**this is signature 1*/ + (a: number): number; + (b: string): number; +} +var i3_i: i3; +interface i4 { + new (a: string); + new (b: number); + (a: number): number; + (b: string): number; +} +class c { + public prop1(a: number): number; + public prop1(b: string): number; + public prop1(aorb: any) { + return 10; + } + /** prop2 1*/ + public prop2(a: number): number; + public prop2(b: string): number; + public prop2(aorb: any) { + return 10; + } + public prop3(a: number): number; + /** prop3 2*/ + public prop3(b: string): number; + public prop3(aorb: any) { + return 10; + } + /** prop4 1*/ + public prop4(a: number): number; + /** prop4 2*/ + public prop4(b: string): number; + public prop4(aorb: any) { + return 10; + } + /** prop5 1*/ + public prop5(a: number): number; + /** prop5 2*/ + public prop5(b: string): number; + /** Prop5 implementaion*/ + public prop5(aorb: any) { + return 10; + } +} +class c1 { + constructor(a: number); + constructor(b: string); + constructor(aorb: any) { + } +} +class c2 { + /** c2 1*/ + constructor(a: number); + // c2 2 + constructor(b: string); + constructor(aorb: any) { + } +} +class c3 { + constructor(a: number); + /** c3 2*/ + constructor(b: string); + constructor(aorb: any) { + } +} +class c4 { + /** c4 1*/ + constructor(a: number); + /** c4 2*/ + constructor(b: string); + /** c4 3 */ + constructor(aorb: any) { + } +} +class c5 { + /** c5 1*/ + constructor(a: number); + /** c5 2*/ + constructor(b: string); + /** c5 implementation*/ + constructor(aorb: any) { + } +} +var c_i = new c(); + +var c1_i_1 = new c1(10); +var c1_i_2 = new c1("hello"); +var c2_i_1 = new c2(10); +var c2_i_2 = new c2("hello"); +var c3_i_1 = new c3(10); +var c3_i_2 = new c3("hello"); +var c4_i_1 = new c4(10); +var c4_i_2 = new c4("hello"); +var c5_i_1 = new c5(10); +var c5_i_2 = new c5("hello"); + + +//// [commentsOverloads.js] +function f1(aOrb) { + return 10; +} +f1("hello"); +f1(10); +/** this is f2 var comment*/ +function f2(aOrb) { + return 10; +} +f2("hello"); +f2(10); +function f3(aOrb) { + return 10; +} +f3("hello"); +f3(10); +function f4(aOrb) { + return 10; +} +f4("hello"); +f4(10); +var i1_i; +var i2_i; +var i3_i; +class c { + prop1(aorb) { + return 10; + } + prop2(aorb) { + return 10; + } + prop3(aorb) { + return 10; + } + prop4(aorb) { + return 10; + } + /** Prop5 implementaion*/ + prop5(aorb) { + return 10; + } +} +class c1 { + constructor(aorb) { + } +} +class c2 { + constructor(aorb) { + } +} +class c3 { + constructor(aorb) { + } +} +class c4 { + /** c4 3 */ + constructor(aorb) { + } +} +class c5 { + /** c5 implementation*/ + constructor(aorb) { + } +} +var c_i = new c(); +var c1_i_1 = new c1(10); +var c1_i_2 = new c1("hello"); +var c2_i_1 = new c2(10); +var c2_i_2 = new c2("hello"); +var c3_i_1 = new c3(10); +var c3_i_2 = new c3("hello"); +var c4_i_1 = new c4(10); +var c4_i_2 = new c4("hello"); +var c5_i_1 = new c5(10); +var c5_i_2 = new c5("hello"); + + +//// [commentsOverloads.d.ts] +/** this is signature 1*/ +declare function f1(/**param a*/ a: number): number; +declare function f1(b: string): number; +declare function f2(a: number): number; +/** this is signature 2*/ +declare function f2(b: string): number; +declare function f3(a: number): number; +declare function f3(b: string): number; +/** this is signature 4 - with number parameter*/ +declare function f4(/**param a*/ a: number): number; +/** this is signature 4 - with string parameter*/ +declare function f4(b: string): number; +interface i1 { + /**this signature 1*/ + (/**param a*/ a: number): number; + /**this is signature 2*/ + (b: string): number; + /** foo 1*/ + foo(a: number): number; + /** foo 2*/ + foo(b: string): number; + foo(arr: number[]): number; + /** foo 4 */ + foo(arr: string[]): number; + foo2(a: number): number; + /** foo2 2*/ + foo2(b: string): number; + foo3(a: number): number; + foo3(b: string): number; + /** foo4 1*/ + foo4(a: number): number; + foo4(b: string): number; + /** foo4 any */ + foo4(c: any): any; + new (a: string): any; + /** new 1*/ + new (b: number): any; +} +declare var i1_i: i1; +interface i2 { + new (a: string): any; + /** new 2*/ + new (b: number): any; + (a: number): number; + /**this is signature 2*/ + (b: string): number; +} +declare var i2_i: i2; +interface i3 { + /** new 1*/ + new (a: string): any; + /** new 2*/ + new (b: number): any; + /**this is signature 1*/ + (a: number): number; + (b: string): number; +} +declare var i3_i: i3; +interface i4 { + new (a: string): any; + new (b: number): any; + (a: number): number; + (b: string): number; +} +declare class c { + prop1(a: number): number; + prop1(b: string): number; + /** prop2 1*/ + prop2(a: number): number; + prop2(b: string): number; + prop3(a: number): number; + /** prop3 2*/ + prop3(b: string): number; + /** prop4 1*/ + prop4(a: number): number; + /** prop4 2*/ + prop4(b: string): number; + /** prop5 1*/ + prop5(a: number): number; + /** prop5 2*/ + prop5(b: string): number; +} +declare class c1 { + constructor(a: number); + constructor(b: string); +} +declare class c2 { + /** c2 1*/ + constructor(a: number); + constructor(b: string); +} +declare class c3 { + constructor(a: number); + /** c3 2*/ + constructor(b: string); +} +declare class c4 { + /** c4 1*/ + constructor(a: number); + /** c4 2*/ + constructor(b: string); +} +declare class c5 { + /** c5 1*/ + constructor(a: number); + /** c5 2*/ + constructor(b: string); +} +declare var c_i: c; +declare var c1_i_1: c1; +declare var c1_i_2: c1; +declare var c2_i_1: c2; +declare var c2_i_2: c2; +declare var c3_i_1: c3; +declare var c3_i_2: c3; +declare var c4_i_1: c4; +declare var c4_i_2: c4; +declare var c5_i_1: c5; +declare var c5_i_2: c5; diff --git a/tests/baselines/reference/commentsOverloads.symbols b/tests/baselines/reference/commentsOverloads(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/commentsOverloads.symbols rename to tests/baselines/reference/commentsOverloads(target=es2015).symbols diff --git a/tests/baselines/reference/commentsOverloads.types b/tests/baselines/reference/commentsOverloads(target=es2015).types similarity index 100% rename from tests/baselines/reference/commentsOverloads.types rename to tests/baselines/reference/commentsOverloads(target=es2015).types diff --git a/tests/baselines/reference/commentsOverloads.js b/tests/baselines/reference/commentsOverloads(target=es5).js similarity index 100% rename from tests/baselines/reference/commentsOverloads.js rename to tests/baselines/reference/commentsOverloads(target=es5).js diff --git a/tests/baselines/reference/commentsOverloads(target=es5).symbols b/tests/baselines/reference/commentsOverloads(target=es5).symbols new file mode 100644 index 0000000000000..555612c980a57 --- /dev/null +++ b/tests/baselines/reference/commentsOverloads(target=es5).symbols @@ -0,0 +1,419 @@ +//// [tests/cases/compiler/commentsOverloads.ts] //// + +=== commentsOverloads.ts === +/** this is signature 1*/ +function f1(/**param a*/a: number): number; +>f1 : Symbol(f1, Decl(commentsOverloads.ts, 0, 0), Decl(commentsOverloads.ts, 1, 43), Decl(commentsOverloads.ts, 2, 31)) +>a : Symbol(a, Decl(commentsOverloads.ts, 1, 12)) + +function f1(b: string): number; +>f1 : Symbol(f1, Decl(commentsOverloads.ts, 0, 0), Decl(commentsOverloads.ts, 1, 43), Decl(commentsOverloads.ts, 2, 31)) +>b : Symbol(b, Decl(commentsOverloads.ts, 2, 12)) + +function f1(aOrb: any) { +>f1 : Symbol(f1, Decl(commentsOverloads.ts, 0, 0), Decl(commentsOverloads.ts, 1, 43), Decl(commentsOverloads.ts, 2, 31)) +>aOrb : Symbol(aOrb, Decl(commentsOverloads.ts, 3, 12)) + + return 10; +} +f1("hello"); +>f1 : Symbol(f1, Decl(commentsOverloads.ts, 0, 0), Decl(commentsOverloads.ts, 1, 43), Decl(commentsOverloads.ts, 2, 31)) + +f1(10); +>f1 : Symbol(f1, Decl(commentsOverloads.ts, 0, 0), Decl(commentsOverloads.ts, 1, 43), Decl(commentsOverloads.ts, 2, 31)) + +function f2(a: number): number; +>f2 : Symbol(f2, Decl(commentsOverloads.ts, 7, 7), Decl(commentsOverloads.ts, 8, 31), Decl(commentsOverloads.ts, 10, 31)) +>a : Symbol(a, Decl(commentsOverloads.ts, 8, 12)) + +/** this is signature 2*/ +function f2(b: string): number; +>f2 : Symbol(f2, Decl(commentsOverloads.ts, 7, 7), Decl(commentsOverloads.ts, 8, 31), Decl(commentsOverloads.ts, 10, 31)) +>b : Symbol(b, Decl(commentsOverloads.ts, 10, 12)) + +/** this is f2 var comment*/ +function f2(aOrb: any) { +>f2 : Symbol(f2, Decl(commentsOverloads.ts, 7, 7), Decl(commentsOverloads.ts, 8, 31), Decl(commentsOverloads.ts, 10, 31)) +>aOrb : Symbol(aOrb, Decl(commentsOverloads.ts, 12, 12)) + + return 10; +} +f2("hello"); +>f2 : Symbol(f2, Decl(commentsOverloads.ts, 7, 7), Decl(commentsOverloads.ts, 8, 31), Decl(commentsOverloads.ts, 10, 31)) + +f2(10); +>f2 : Symbol(f2, Decl(commentsOverloads.ts, 7, 7), Decl(commentsOverloads.ts, 8, 31), Decl(commentsOverloads.ts, 10, 31)) + +function f3(a: number): number; +>f3 : Symbol(f3, Decl(commentsOverloads.ts, 16, 7), Decl(commentsOverloads.ts, 17, 31), Decl(commentsOverloads.ts, 18, 31)) +>a : Symbol(a, Decl(commentsOverloads.ts, 17, 12)) + +function f3(b: string): number; +>f3 : Symbol(f3, Decl(commentsOverloads.ts, 16, 7), Decl(commentsOverloads.ts, 17, 31), Decl(commentsOverloads.ts, 18, 31)) +>b : Symbol(b, Decl(commentsOverloads.ts, 18, 12)) + +function f3(aOrb: any) { +>f3 : Symbol(f3, Decl(commentsOverloads.ts, 16, 7), Decl(commentsOverloads.ts, 17, 31), Decl(commentsOverloads.ts, 18, 31)) +>aOrb : Symbol(aOrb, Decl(commentsOverloads.ts, 19, 12)) + + return 10; +} +f3("hello"); +>f3 : Symbol(f3, Decl(commentsOverloads.ts, 16, 7), Decl(commentsOverloads.ts, 17, 31), Decl(commentsOverloads.ts, 18, 31)) + +f3(10); +>f3 : Symbol(f3, Decl(commentsOverloads.ts, 16, 7), Decl(commentsOverloads.ts, 17, 31), Decl(commentsOverloads.ts, 18, 31)) + +/** this is signature 4 - with number parameter*/ +function f4(/**param a*/a: number): number; +>f4 : Symbol(f4, Decl(commentsOverloads.ts, 23, 7), Decl(commentsOverloads.ts, 25, 43), Decl(commentsOverloads.ts, 27, 31)) +>a : Symbol(a, Decl(commentsOverloads.ts, 25, 12)) + +/** this is signature 4 - with string parameter*/ +function f4(b: string): number; +>f4 : Symbol(f4, Decl(commentsOverloads.ts, 23, 7), Decl(commentsOverloads.ts, 25, 43), Decl(commentsOverloads.ts, 27, 31)) +>b : Symbol(b, Decl(commentsOverloads.ts, 27, 12)) + +function f4(aOrb: any) { +>f4 : Symbol(f4, Decl(commentsOverloads.ts, 23, 7), Decl(commentsOverloads.ts, 25, 43), Decl(commentsOverloads.ts, 27, 31)) +>aOrb : Symbol(aOrb, Decl(commentsOverloads.ts, 28, 12)) + + return 10; +} +f4("hello"); +>f4 : Symbol(f4, Decl(commentsOverloads.ts, 23, 7), Decl(commentsOverloads.ts, 25, 43), Decl(commentsOverloads.ts, 27, 31)) + +f4(10); +>f4 : Symbol(f4, Decl(commentsOverloads.ts, 23, 7), Decl(commentsOverloads.ts, 25, 43), Decl(commentsOverloads.ts, 27, 31)) + +interface i1 { +>i1 : Symbol(i1, Decl(commentsOverloads.ts, 32, 7)) + + /**this signature 1*/ + (/**param a*/ a: number): number; +>a : Symbol(a, Decl(commentsOverloads.ts, 35, 5)) + + /**this is signature 2*/ + (b: string): number; +>b : Symbol(b, Decl(commentsOverloads.ts, 37, 5)) + + /** foo 1*/ + foo(a: number): number; +>foo : Symbol(i1.foo, Decl(commentsOverloads.ts, 37, 24), Decl(commentsOverloads.ts, 39, 27), Decl(commentsOverloads.ts, 41, 27), Decl(commentsOverloads.ts, 43, 31)) +>a : Symbol(a, Decl(commentsOverloads.ts, 39, 8)) + + /** foo 2*/ + foo(b: string): number; +>foo : Symbol(i1.foo, Decl(commentsOverloads.ts, 37, 24), Decl(commentsOverloads.ts, 39, 27), Decl(commentsOverloads.ts, 41, 27), Decl(commentsOverloads.ts, 43, 31)) +>b : Symbol(b, Decl(commentsOverloads.ts, 41, 8)) + + // foo 3 + foo(arr: number[]): number; +>foo : Symbol(i1.foo, Decl(commentsOverloads.ts, 37, 24), Decl(commentsOverloads.ts, 39, 27), Decl(commentsOverloads.ts, 41, 27), Decl(commentsOverloads.ts, 43, 31)) +>arr : Symbol(arr, Decl(commentsOverloads.ts, 43, 8)) + + /** foo 4 */ + foo(arr: string[]): number; +>foo : Symbol(i1.foo, Decl(commentsOverloads.ts, 37, 24), Decl(commentsOverloads.ts, 39, 27), Decl(commentsOverloads.ts, 41, 27), Decl(commentsOverloads.ts, 43, 31)) +>arr : Symbol(arr, Decl(commentsOverloads.ts, 45, 8)) + + foo2(a: number): number; +>foo2 : Symbol(i1.foo2, Decl(commentsOverloads.ts, 45, 31), Decl(commentsOverloads.ts, 47, 28)) +>a : Symbol(a, Decl(commentsOverloads.ts, 47, 9)) + + /** foo2 2*/ + foo2(b: string): number; +>foo2 : Symbol(i1.foo2, Decl(commentsOverloads.ts, 45, 31), Decl(commentsOverloads.ts, 47, 28)) +>b : Symbol(b, Decl(commentsOverloads.ts, 49, 9)) + + foo3(a: number): number; +>foo3 : Symbol(i1.foo3, Decl(commentsOverloads.ts, 49, 28), Decl(commentsOverloads.ts, 50, 28)) +>a : Symbol(a, Decl(commentsOverloads.ts, 50, 9)) + + foo3(b: string): number; +>foo3 : Symbol(i1.foo3, Decl(commentsOverloads.ts, 49, 28), Decl(commentsOverloads.ts, 50, 28)) +>b : Symbol(b, Decl(commentsOverloads.ts, 51, 9)) + + /** foo4 1*/ + foo4(a: number): number; +>foo4 : Symbol(i1.foo4, Decl(commentsOverloads.ts, 51, 28), Decl(commentsOverloads.ts, 53, 28), Decl(commentsOverloads.ts, 54, 28)) +>a : Symbol(a, Decl(commentsOverloads.ts, 53, 9)) + + foo4(b: string): number; +>foo4 : Symbol(i1.foo4, Decl(commentsOverloads.ts, 51, 28), Decl(commentsOverloads.ts, 53, 28), Decl(commentsOverloads.ts, 54, 28)) +>b : Symbol(b, Decl(commentsOverloads.ts, 54, 9)) + + /** foo4 any */ + foo4(c: any): any; +>foo4 : Symbol(i1.foo4, Decl(commentsOverloads.ts, 51, 28), Decl(commentsOverloads.ts, 53, 28), Decl(commentsOverloads.ts, 54, 28)) +>c : Symbol(c, Decl(commentsOverloads.ts, 56, 9)) + + /// new 1 + new (a: string); +>a : Symbol(a, Decl(commentsOverloads.ts, 58, 9)) + + /** new 1*/ + new (b: number); +>b : Symbol(b, Decl(commentsOverloads.ts, 60, 9)) +} +var i1_i: i1; +>i1_i : Symbol(i1_i, Decl(commentsOverloads.ts, 62, 3)) +>i1 : Symbol(i1, Decl(commentsOverloads.ts, 32, 7)) + +interface i2 { +>i2 : Symbol(i2, Decl(commentsOverloads.ts, 62, 13)) + + new (a: string); +>a : Symbol(a, Decl(commentsOverloads.ts, 64, 9)) + + /** new 2*/ + new (b: number); +>b : Symbol(b, Decl(commentsOverloads.ts, 66, 9)) + + (a: number): number; +>a : Symbol(a, Decl(commentsOverloads.ts, 67, 5)) + + /**this is signature 2*/ + (b: string): number; +>b : Symbol(b, Decl(commentsOverloads.ts, 69, 5)) +} +var i2_i: i2; +>i2_i : Symbol(i2_i, Decl(commentsOverloads.ts, 71, 3)) +>i2 : Symbol(i2, Decl(commentsOverloads.ts, 62, 13)) + +interface i3 { +>i3 : Symbol(i3, Decl(commentsOverloads.ts, 71, 13)) + + /** new 1*/ + new (a: string); +>a : Symbol(a, Decl(commentsOverloads.ts, 74, 9)) + + /** new 2*/ + new (b: number); +>b : Symbol(b, Decl(commentsOverloads.ts, 76, 9)) + + /**this is signature 1*/ + (a: number): number; +>a : Symbol(a, Decl(commentsOverloads.ts, 78, 5)) + + (b: string): number; +>b : Symbol(b, Decl(commentsOverloads.ts, 79, 5)) +} +var i3_i: i3; +>i3_i : Symbol(i3_i, Decl(commentsOverloads.ts, 81, 3)) +>i3 : Symbol(i3, Decl(commentsOverloads.ts, 71, 13)) + +interface i4 { +>i4 : Symbol(i4, Decl(commentsOverloads.ts, 81, 13)) + + new (a: string); +>a : Symbol(a, Decl(commentsOverloads.ts, 83, 9)) + + new (b: number); +>b : Symbol(b, Decl(commentsOverloads.ts, 84, 9)) + + (a: number): number; +>a : Symbol(a, Decl(commentsOverloads.ts, 85, 5)) + + (b: string): number; +>b : Symbol(b, Decl(commentsOverloads.ts, 86, 5)) +} +class c { +>c : Symbol(c, Decl(commentsOverloads.ts, 87, 1)) + + public prop1(a: number): number; +>prop1 : Symbol(c.prop1, Decl(commentsOverloads.ts, 88, 9), Decl(commentsOverloads.ts, 89, 36), Decl(commentsOverloads.ts, 90, 36)) +>a : Symbol(a, Decl(commentsOverloads.ts, 89, 17)) + + public prop1(b: string): number; +>prop1 : Symbol(c.prop1, Decl(commentsOverloads.ts, 88, 9), Decl(commentsOverloads.ts, 89, 36), Decl(commentsOverloads.ts, 90, 36)) +>b : Symbol(b, Decl(commentsOverloads.ts, 90, 17)) + + public prop1(aorb: any) { +>prop1 : Symbol(c.prop1, Decl(commentsOverloads.ts, 88, 9), Decl(commentsOverloads.ts, 89, 36), Decl(commentsOverloads.ts, 90, 36)) +>aorb : Symbol(aorb, Decl(commentsOverloads.ts, 91, 17)) + + return 10; + } + /** prop2 1*/ + public prop2(a: number): number; +>prop2 : Symbol(c.prop2, Decl(commentsOverloads.ts, 93, 5), Decl(commentsOverloads.ts, 95, 36), Decl(commentsOverloads.ts, 96, 36)) +>a : Symbol(a, Decl(commentsOverloads.ts, 95, 17)) + + public prop2(b: string): number; +>prop2 : Symbol(c.prop2, Decl(commentsOverloads.ts, 93, 5), Decl(commentsOverloads.ts, 95, 36), Decl(commentsOverloads.ts, 96, 36)) +>b : Symbol(b, Decl(commentsOverloads.ts, 96, 17)) + + public prop2(aorb: any) { +>prop2 : Symbol(c.prop2, Decl(commentsOverloads.ts, 93, 5), Decl(commentsOverloads.ts, 95, 36), Decl(commentsOverloads.ts, 96, 36)) +>aorb : Symbol(aorb, Decl(commentsOverloads.ts, 97, 17)) + + return 10; + } + public prop3(a: number): number; +>prop3 : Symbol(c.prop3, Decl(commentsOverloads.ts, 99, 5), Decl(commentsOverloads.ts, 100, 36), Decl(commentsOverloads.ts, 102, 36)) +>a : Symbol(a, Decl(commentsOverloads.ts, 100, 17)) + + /** prop3 2*/ + public prop3(b: string): number; +>prop3 : Symbol(c.prop3, Decl(commentsOverloads.ts, 99, 5), Decl(commentsOverloads.ts, 100, 36), Decl(commentsOverloads.ts, 102, 36)) +>b : Symbol(b, Decl(commentsOverloads.ts, 102, 17)) + + public prop3(aorb: any) { +>prop3 : Symbol(c.prop3, Decl(commentsOverloads.ts, 99, 5), Decl(commentsOverloads.ts, 100, 36), Decl(commentsOverloads.ts, 102, 36)) +>aorb : Symbol(aorb, Decl(commentsOverloads.ts, 103, 17)) + + return 10; + } + /** prop4 1*/ + public prop4(a: number): number; +>prop4 : Symbol(c.prop4, Decl(commentsOverloads.ts, 105, 5), Decl(commentsOverloads.ts, 107, 36), Decl(commentsOverloads.ts, 109, 36)) +>a : Symbol(a, Decl(commentsOverloads.ts, 107, 17)) + + /** prop4 2*/ + public prop4(b: string): number; +>prop4 : Symbol(c.prop4, Decl(commentsOverloads.ts, 105, 5), Decl(commentsOverloads.ts, 107, 36), Decl(commentsOverloads.ts, 109, 36)) +>b : Symbol(b, Decl(commentsOverloads.ts, 109, 17)) + + public prop4(aorb: any) { +>prop4 : Symbol(c.prop4, Decl(commentsOverloads.ts, 105, 5), Decl(commentsOverloads.ts, 107, 36), Decl(commentsOverloads.ts, 109, 36)) +>aorb : Symbol(aorb, Decl(commentsOverloads.ts, 110, 17)) + + return 10; + } + /** prop5 1*/ + public prop5(a: number): number; +>prop5 : Symbol(c.prop5, Decl(commentsOverloads.ts, 112, 5), Decl(commentsOverloads.ts, 114, 36), Decl(commentsOverloads.ts, 116, 36)) +>a : Symbol(a, Decl(commentsOverloads.ts, 114, 17)) + + /** prop5 2*/ + public prop5(b: string): number; +>prop5 : Symbol(c.prop5, Decl(commentsOverloads.ts, 112, 5), Decl(commentsOverloads.ts, 114, 36), Decl(commentsOverloads.ts, 116, 36)) +>b : Symbol(b, Decl(commentsOverloads.ts, 116, 17)) + + /** Prop5 implementaion*/ + public prop5(aorb: any) { +>prop5 : Symbol(c.prop5, Decl(commentsOverloads.ts, 112, 5), Decl(commentsOverloads.ts, 114, 36), Decl(commentsOverloads.ts, 116, 36)) +>aorb : Symbol(aorb, Decl(commentsOverloads.ts, 118, 17)) + + return 10; + } +} +class c1 { +>c1 : Symbol(c1, Decl(commentsOverloads.ts, 121, 1)) + + constructor(a: number); +>a : Symbol(a, Decl(commentsOverloads.ts, 123, 16)) + + constructor(b: string); +>b : Symbol(b, Decl(commentsOverloads.ts, 124, 16)) + + constructor(aorb: any) { +>aorb : Symbol(aorb, Decl(commentsOverloads.ts, 125, 16)) + } +} +class c2 { +>c2 : Symbol(c2, Decl(commentsOverloads.ts, 127, 1)) + + /** c2 1*/ + constructor(a: number); +>a : Symbol(a, Decl(commentsOverloads.ts, 130, 16)) + + // c2 2 + constructor(b: string); +>b : Symbol(b, Decl(commentsOverloads.ts, 132, 16)) + + constructor(aorb: any) { +>aorb : Symbol(aorb, Decl(commentsOverloads.ts, 133, 16)) + } +} +class c3 { +>c3 : Symbol(c3, Decl(commentsOverloads.ts, 135, 1)) + + constructor(a: number); +>a : Symbol(a, Decl(commentsOverloads.ts, 137, 16)) + + /** c3 2*/ + constructor(b: string); +>b : Symbol(b, Decl(commentsOverloads.ts, 139, 16)) + + constructor(aorb: any) { +>aorb : Symbol(aorb, Decl(commentsOverloads.ts, 140, 16)) + } +} +class c4 { +>c4 : Symbol(c4, Decl(commentsOverloads.ts, 142, 1)) + + /** c4 1*/ + constructor(a: number); +>a : Symbol(a, Decl(commentsOverloads.ts, 145, 16)) + + /** c4 2*/ + constructor(b: string); +>b : Symbol(b, Decl(commentsOverloads.ts, 147, 16)) + + /** c4 3 */ + constructor(aorb: any) { +>aorb : Symbol(aorb, Decl(commentsOverloads.ts, 149, 16)) + } +} +class c5 { +>c5 : Symbol(c5, Decl(commentsOverloads.ts, 151, 1)) + + /** c5 1*/ + constructor(a: number); +>a : Symbol(a, Decl(commentsOverloads.ts, 154, 16)) + + /** c5 2*/ + constructor(b: string); +>b : Symbol(b, Decl(commentsOverloads.ts, 156, 16)) + + /** c5 implementation*/ + constructor(aorb: any) { +>aorb : Symbol(aorb, Decl(commentsOverloads.ts, 158, 16)) + } +} +var c_i = new c(); +>c_i : Symbol(c_i, Decl(commentsOverloads.ts, 161, 3)) +>c : Symbol(c, Decl(commentsOverloads.ts, 87, 1)) + +var c1_i_1 = new c1(10); +>c1_i_1 : Symbol(c1_i_1, Decl(commentsOverloads.ts, 163, 3)) +>c1 : Symbol(c1, Decl(commentsOverloads.ts, 121, 1)) + +var c1_i_2 = new c1("hello"); +>c1_i_2 : Symbol(c1_i_2, Decl(commentsOverloads.ts, 164, 3)) +>c1 : Symbol(c1, Decl(commentsOverloads.ts, 121, 1)) + +var c2_i_1 = new c2(10); +>c2_i_1 : Symbol(c2_i_1, Decl(commentsOverloads.ts, 165, 3)) +>c2 : Symbol(c2, Decl(commentsOverloads.ts, 127, 1)) + +var c2_i_2 = new c2("hello"); +>c2_i_2 : Symbol(c2_i_2, Decl(commentsOverloads.ts, 166, 3)) +>c2 : Symbol(c2, Decl(commentsOverloads.ts, 127, 1)) + +var c3_i_1 = new c3(10); +>c3_i_1 : Symbol(c3_i_1, Decl(commentsOverloads.ts, 167, 3)) +>c3 : Symbol(c3, Decl(commentsOverloads.ts, 135, 1)) + +var c3_i_2 = new c3("hello"); +>c3_i_2 : Symbol(c3_i_2, Decl(commentsOverloads.ts, 168, 3)) +>c3 : Symbol(c3, Decl(commentsOverloads.ts, 135, 1)) + +var c4_i_1 = new c4(10); +>c4_i_1 : Symbol(c4_i_1, Decl(commentsOverloads.ts, 169, 3)) +>c4 : Symbol(c4, Decl(commentsOverloads.ts, 142, 1)) + +var c4_i_2 = new c4("hello"); +>c4_i_2 : Symbol(c4_i_2, Decl(commentsOverloads.ts, 170, 3)) +>c4 : Symbol(c4, Decl(commentsOverloads.ts, 142, 1)) + +var c5_i_1 = new c5(10); +>c5_i_1 : Symbol(c5_i_1, Decl(commentsOverloads.ts, 171, 3)) +>c5 : Symbol(c5, Decl(commentsOverloads.ts, 151, 1)) + +var c5_i_2 = new c5("hello"); +>c5_i_2 : Symbol(c5_i_2, Decl(commentsOverloads.ts, 172, 3)) +>c5 : Symbol(c5, Decl(commentsOverloads.ts, 151, 1)) + diff --git a/tests/baselines/reference/commentsOverloads(target=es5).types b/tests/baselines/reference/commentsOverloads(target=es5).types new file mode 100644 index 0000000000000..2ab32c9fb47df --- /dev/null +++ b/tests/baselines/reference/commentsOverloads(target=es5).types @@ -0,0 +1,631 @@ +//// [tests/cases/compiler/commentsOverloads.ts] //// + +=== commentsOverloads.ts === +/** this is signature 1*/ +function f1(/**param a*/a: number): number; +>f1 : { (a: number): number; (b: string): number; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>a : number +> : ^^^^^^ + +function f1(b: string): number; +>f1 : { (a: number): number; (b: string): number; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>b : string +> : ^^^^^^ + +function f1(aOrb: any) { +>f1 : { (a: number): number; (b: string): number; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>aOrb : any + + return 10; +>10 : 10 +> : ^^ +} +f1("hello"); +>f1("hello") : number +> : ^^^^^^ +>f1 : { (a: number): number; (b: string): number; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>"hello" : "hello" +> : ^^^^^^^ + +f1(10); +>f1(10) : number +> : ^^^^^^ +>f1 : { (a: number): number; (b: string): number; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>10 : 10 +> : ^^ + +function f2(a: number): number; +>f2 : { (a: number): number; (b: string): number; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>a : number +> : ^^^^^^ + +/** this is signature 2*/ +function f2(b: string): number; +>f2 : { (a: number): number; (b: string): number; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>b : string +> : ^^^^^^ + +/** this is f2 var comment*/ +function f2(aOrb: any) { +>f2 : { (a: number): number; (b: string): number; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>aOrb : any + + return 10; +>10 : 10 +> : ^^ +} +f2("hello"); +>f2("hello") : number +> : ^^^^^^ +>f2 : { (a: number): number; (b: string): number; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>"hello" : "hello" +> : ^^^^^^^ + +f2(10); +>f2(10) : number +> : ^^^^^^ +>f2 : { (a: number): number; (b: string): number; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>10 : 10 +> : ^^ + +function f3(a: number): number; +>f3 : { (a: number): number; (b: string): number; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>a : number +> : ^^^^^^ + +function f3(b: string): number; +>f3 : { (a: number): number; (b: string): number; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>b : string +> : ^^^^^^ + +function f3(aOrb: any) { +>f3 : { (a: number): number; (b: string): number; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>aOrb : any + + return 10; +>10 : 10 +> : ^^ +} +f3("hello"); +>f3("hello") : number +> : ^^^^^^ +>f3 : { (a: number): number; (b: string): number; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>"hello" : "hello" +> : ^^^^^^^ + +f3(10); +>f3(10) : number +> : ^^^^^^ +>f3 : { (a: number): number; (b: string): number; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>10 : 10 +> : ^^ + +/** this is signature 4 - with number parameter*/ +function f4(/**param a*/a: number): number; +>f4 : { (a: number): number; (b: string): number; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>a : number +> : ^^^^^^ + +/** this is signature 4 - with string parameter*/ +function f4(b: string): number; +>f4 : { (a: number): number; (b: string): number; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>b : string +> : ^^^^^^ + +function f4(aOrb: any) { +>f4 : { (a: number): number; (b: string): number; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>aOrb : any + + return 10; +>10 : 10 +> : ^^ +} +f4("hello"); +>f4("hello") : number +> : ^^^^^^ +>f4 : { (a: number): number; (b: string): number; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>"hello" : "hello" +> : ^^^^^^^ + +f4(10); +>f4(10) : number +> : ^^^^^^ +>f4 : { (a: number): number; (b: string): number; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>10 : 10 +> : ^^ + +interface i1 { + /**this signature 1*/ + (/**param a*/ a: number): number; +>a : number +> : ^^^^^^ + + /**this is signature 2*/ + (b: string): number; +>b : string +> : ^^^^^^ + + /** foo 1*/ + foo(a: number): number; +>foo : { (a: number): number; (b: string): number; (arr: number[]): number; (arr: string[]): number; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>a : number +> : ^^^^^^ + + /** foo 2*/ + foo(b: string): number; +>foo : { (a: number): number; (b: string): number; (arr: number[]): number; (arr: string[]): number; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>b : string +> : ^^^^^^ + + // foo 3 + foo(arr: number[]): number; +>foo : { (a: number): number; (b: string): number; (arr: number[]): number; (arr: string[]): number; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>arr : number[] +> : ^^^^^^^^ + + /** foo 4 */ + foo(arr: string[]): number; +>foo : { (a: number): number; (b: string): number; (arr: number[]): number; (arr: string[]): number; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>arr : string[] +> : ^^^^^^^^ + + foo2(a: number): number; +>foo2 : { (a: number): number; (b: string): number; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>a : number +> : ^^^^^^ + + /** foo2 2*/ + foo2(b: string): number; +>foo2 : { (a: number): number; (b: string): number; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>b : string +> : ^^^^^^ + + foo3(a: number): number; +>foo3 : { (a: number): number; (b: string): number; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>a : number +> : ^^^^^^ + + foo3(b: string): number; +>foo3 : { (a: number): number; (b: string): number; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>b : string +> : ^^^^^^ + + /** foo4 1*/ + foo4(a: number): number; +>foo4 : { (a: number): number; (b: string): number; (c: any): any; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>a : number +> : ^^^^^^ + + foo4(b: string): number; +>foo4 : { (a: number): number; (b: string): number; (c: any): any; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>b : string +> : ^^^^^^ + + /** foo4 any */ + foo4(c: any): any; +>foo4 : { (a: number): number; (b: string): number; (c: any): any; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>c : any + + /// new 1 + new (a: string); +>a : string +> : ^^^^^^ + + /** new 1*/ + new (b: number); +>b : number +> : ^^^^^^ +} +var i1_i: i1; +>i1_i : i1 +> : ^^ + +interface i2 { + new (a: string); +>a : string +> : ^^^^^^ + + /** new 2*/ + new (b: number); +>b : number +> : ^^^^^^ + + (a: number): number; +>a : number +> : ^^^^^^ + + /**this is signature 2*/ + (b: string): number; +>b : string +> : ^^^^^^ +} +var i2_i: i2; +>i2_i : i2 +> : ^^ + +interface i3 { + /** new 1*/ + new (a: string); +>a : string +> : ^^^^^^ + + /** new 2*/ + new (b: number); +>b : number +> : ^^^^^^ + + /**this is signature 1*/ + (a: number): number; +>a : number +> : ^^^^^^ + + (b: string): number; +>b : string +> : ^^^^^^ +} +var i3_i: i3; +>i3_i : i3 +> : ^^ + +interface i4 { + new (a: string); +>a : string +> : ^^^^^^ + + new (b: number); +>b : number +> : ^^^^^^ + + (a: number): number; +>a : number +> : ^^^^^^ + + (b: string): number; +>b : string +> : ^^^^^^ +} +class c { +>c : c +> : ^ + + public prop1(a: number): number; +>prop1 : { (a: number): number; (b: string): number; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>a : number +> : ^^^^^^ + + public prop1(b: string): number; +>prop1 : { (a: number): number; (b: string): number; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>b : string +> : ^^^^^^ + + public prop1(aorb: any) { +>prop1 : { (a: number): number; (b: string): number; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>aorb : any + + return 10; +>10 : 10 +> : ^^ + } + /** prop2 1*/ + public prop2(a: number): number; +>prop2 : { (a: number): number; (b: string): number; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>a : number +> : ^^^^^^ + + public prop2(b: string): number; +>prop2 : { (a: number): number; (b: string): number; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>b : string +> : ^^^^^^ + + public prop2(aorb: any) { +>prop2 : { (a: number): number; (b: string): number; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>aorb : any + + return 10; +>10 : 10 +> : ^^ + } + public prop3(a: number): number; +>prop3 : { (a: number): number; (b: string): number; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>a : number +> : ^^^^^^ + + /** prop3 2*/ + public prop3(b: string): number; +>prop3 : { (a: number): number; (b: string): number; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>b : string +> : ^^^^^^ + + public prop3(aorb: any) { +>prop3 : { (a: number): number; (b: string): number; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>aorb : any + + return 10; +>10 : 10 +> : ^^ + } + /** prop4 1*/ + public prop4(a: number): number; +>prop4 : { (a: number): number; (b: string): number; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>a : number +> : ^^^^^^ + + /** prop4 2*/ + public prop4(b: string): number; +>prop4 : { (a: number): number; (b: string): number; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>b : string +> : ^^^^^^ + + public prop4(aorb: any) { +>prop4 : { (a: number): number; (b: string): number; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>aorb : any + + return 10; +>10 : 10 +> : ^^ + } + /** prop5 1*/ + public prop5(a: number): number; +>prop5 : { (a: number): number; (b: string): number; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>a : number +> : ^^^^^^ + + /** prop5 2*/ + public prop5(b: string): number; +>prop5 : { (a: number): number; (b: string): number; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>b : string +> : ^^^^^^ + + /** Prop5 implementaion*/ + public prop5(aorb: any) { +>prop5 : { (a: number): number; (b: string): number; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>aorb : any + + return 10; +>10 : 10 +> : ^^ + } +} +class c1 { +>c1 : c1 +> : ^^ + + constructor(a: number); +>a : number +> : ^^^^^^ + + constructor(b: string); +>b : string +> : ^^^^^^ + + constructor(aorb: any) { +>aorb : any + } +} +class c2 { +>c2 : c2 +> : ^^ + + /** c2 1*/ + constructor(a: number); +>a : number +> : ^^^^^^ + + // c2 2 + constructor(b: string); +>b : string +> : ^^^^^^ + + constructor(aorb: any) { +>aorb : any + } +} +class c3 { +>c3 : c3 +> : ^^ + + constructor(a: number); +>a : number +> : ^^^^^^ + + /** c3 2*/ + constructor(b: string); +>b : string +> : ^^^^^^ + + constructor(aorb: any) { +>aorb : any + } +} +class c4 { +>c4 : c4 +> : ^^ + + /** c4 1*/ + constructor(a: number); +>a : number +> : ^^^^^^ + + /** c4 2*/ + constructor(b: string); +>b : string +> : ^^^^^^ + + /** c4 3 */ + constructor(aorb: any) { +>aorb : any + } +} +class c5 { +>c5 : c5 +> : ^^ + + /** c5 1*/ + constructor(a: number); +>a : number +> : ^^^^^^ + + /** c5 2*/ + constructor(b: string); +>b : string +> : ^^^^^^ + + /** c5 implementation*/ + constructor(aorb: any) { +>aorb : any + } +} +var c_i = new c(); +>c_i : c +> : ^ +>new c() : c +> : ^ +>c : typeof c +> : ^^^^^^^^ + +var c1_i_1 = new c1(10); +>c1_i_1 : c1 +> : ^^ +>new c1(10) : c1 +> : ^^ +>c1 : typeof c1 +> : ^^^^^^^^^ +>10 : 10 +> : ^^ + +var c1_i_2 = new c1("hello"); +>c1_i_2 : c1 +> : ^^ +>new c1("hello") : c1 +> : ^^ +>c1 : typeof c1 +> : ^^^^^^^^^ +>"hello" : "hello" +> : ^^^^^^^ + +var c2_i_1 = new c2(10); +>c2_i_1 : c2 +> : ^^ +>new c2(10) : c2 +> : ^^ +>c2 : typeof c2 +> : ^^^^^^^^^ +>10 : 10 +> : ^^ + +var c2_i_2 = new c2("hello"); +>c2_i_2 : c2 +> : ^^ +>new c2("hello") : c2 +> : ^^ +>c2 : typeof c2 +> : ^^^^^^^^^ +>"hello" : "hello" +> : ^^^^^^^ + +var c3_i_1 = new c3(10); +>c3_i_1 : c3 +> : ^^ +>new c3(10) : c3 +> : ^^ +>c3 : typeof c3 +> : ^^^^^^^^^ +>10 : 10 +> : ^^ + +var c3_i_2 = new c3("hello"); +>c3_i_2 : c3 +> : ^^ +>new c3("hello") : c3 +> : ^^ +>c3 : typeof c3 +> : ^^^^^^^^^ +>"hello" : "hello" +> : ^^^^^^^ + +var c4_i_1 = new c4(10); +>c4_i_1 : c4 +> : ^^ +>new c4(10) : c4 +> : ^^ +>c4 : typeof c4 +> : ^^^^^^^^^ +>10 : 10 +> : ^^ + +var c4_i_2 = new c4("hello"); +>c4_i_2 : c4 +> : ^^ +>new c4("hello") : c4 +> : ^^ +>c4 : typeof c4 +> : ^^^^^^^^^ +>"hello" : "hello" +> : ^^^^^^^ + +var c5_i_1 = new c5(10); +>c5_i_1 : c5 +> : ^^ +>new c5(10) : c5 +> : ^^ +>c5 : typeof c5 +> : ^^^^^^^^^ +>10 : 10 +> : ^^ + +var c5_i_2 = new c5("hello"); +>c5_i_2 : c5 +> : ^^ +>new c5("hello") : c5 +> : ^^ +>c5 : typeof c5 +> : ^^^^^^^^^ +>"hello" : "hello" +> : ^^^^^^^ + diff --git a/tests/baselines/reference/commentsVarDecl(target=es2015).js b/tests/baselines/reference/commentsVarDecl(target=es2015).js new file mode 100644 index 0000000000000..6ac87852dbc06 --- /dev/null +++ b/tests/baselines/reference/commentsVarDecl(target=es2015).js @@ -0,0 +1,104 @@ +//// [tests/cases/compiler/commentsVarDecl.ts] //// + +//// [commentsVarDecl.ts] +/** Variable comments*/ +var myVariable = 10; // This trailing Comment1 + +/** This is another variable comment*/ +var anotherVariable = 30; + +// shouldn't appear +var aVar = ""; + +/** this is multiline comment + * All these variables are of number type */ +var anotherAnotherVariable = 70; /* these are multiple trailing comments */ /* multiple trailing comments */ + +/** Triple slash multiline comment*/ +/** another line in the comment*/ +/** comment line 2*/ +var x = 70; /* multiline trailing comment +this is multiline trailing comment */ +/** Triple slash comment on the assignment shouldnt be in .d.ts file*/ +x = myVariable; + +/** triple slash comment1*/ +/** jsdocstyle comment - only this comment should be in .d.ts file*/ +var n = 30; + +/** var deckaration with comment on type as well*/ +var y = /** value comment */ 20; + +/// var deckaration with comment on type as well +var yy = + /// value comment + 20; + +/** comment2 */ +var z = /** lambda comment */ (x: number, y: number) => x + y; + +var z2: /** type comment*/ (x: number) => string; + +var x2 = z2; + +var n4: (x: number) => string; +n4 = z2; + +//// [commentsVarDecl.js] +/** Variable comments*/ +var myVariable = 10; // This trailing Comment1 +/** This is another variable comment*/ +var anotherVariable = 30; +// shouldn't appear +var aVar = ""; +/** this is multiline comment + * All these variables are of number type */ +var anotherAnotherVariable = 70; /* these are multiple trailing comments */ /* multiple trailing comments */ +/** Triple slash multiline comment*/ +/** another line in the comment*/ +/** comment line 2*/ +var x = 70; /* multiline trailing comment +this is multiline trailing comment */ +/** Triple slash comment on the assignment shouldnt be in .d.ts file*/ +x = myVariable; +/** triple slash comment1*/ +/** jsdocstyle comment - only this comment should be in .d.ts file*/ +var n = 30; +/** var deckaration with comment on type as well*/ +var y = /** value comment */ 20; +/// var deckaration with comment on type as well +var yy = +/// value comment +20; +/** comment2 */ +var z = /** lambda comment */ (x, y) => x + y; +var z2; +var x2 = z2; +var n4; +n4 = z2; + + +//// [commentsVarDecl.d.ts] +/** Variable comments*/ +declare var myVariable: number; +/** This is another variable comment*/ +declare var anotherVariable: number; +declare var aVar: string; +/** this is multiline comment + * All these variables are of number type */ +declare var anotherAnotherVariable: number; +/** Triple slash multiline comment*/ +/** another line in the comment*/ +/** comment line 2*/ +declare var x: number; +/** triple slash comment1*/ +/** jsdocstyle comment - only this comment should be in .d.ts file*/ +declare var n: number; +/** var deckaration with comment on type as well*/ +declare var y: number; +declare var yy: number; +/** comment2 */ +declare var z: (x: number, y: number) => number; +declare var z2: (x: number) => string; +declare var x2: (x: number) => string; +declare var n4: (x: number) => string; diff --git a/tests/baselines/reference/commentsVarDecl.symbols b/tests/baselines/reference/commentsVarDecl(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/commentsVarDecl.symbols rename to tests/baselines/reference/commentsVarDecl(target=es2015).symbols diff --git a/tests/baselines/reference/commentsVarDecl.types b/tests/baselines/reference/commentsVarDecl(target=es2015).types similarity index 100% rename from tests/baselines/reference/commentsVarDecl.types rename to tests/baselines/reference/commentsVarDecl(target=es2015).types diff --git a/tests/baselines/reference/commentsVarDecl.js b/tests/baselines/reference/commentsVarDecl(target=es5).js similarity index 100% rename from tests/baselines/reference/commentsVarDecl.js rename to tests/baselines/reference/commentsVarDecl(target=es5).js diff --git a/tests/baselines/reference/commentsVarDecl(target=es5).symbols b/tests/baselines/reference/commentsVarDecl(target=es5).symbols new file mode 100644 index 0000000000000..e98d2bff6feb6 --- /dev/null +++ b/tests/baselines/reference/commentsVarDecl(target=es5).symbols @@ -0,0 +1,72 @@ +//// [tests/cases/compiler/commentsVarDecl.ts] //// + +=== commentsVarDecl.ts === +/** Variable comments*/ +var myVariable = 10; // This trailing Comment1 +>myVariable : Symbol(myVariable, Decl(commentsVarDecl.ts, 1, 3)) + +/** This is another variable comment*/ +var anotherVariable = 30; +>anotherVariable : Symbol(anotherVariable, Decl(commentsVarDecl.ts, 4, 3)) + +// shouldn't appear +var aVar = ""; +>aVar : Symbol(aVar, Decl(commentsVarDecl.ts, 7, 3)) + +/** this is multiline comment + * All these variables are of number type */ +var anotherAnotherVariable = 70; /* these are multiple trailing comments */ /* multiple trailing comments */ +>anotherAnotherVariable : Symbol(anotherAnotherVariable, Decl(commentsVarDecl.ts, 11, 3)) + +/** Triple slash multiline comment*/ +/** another line in the comment*/ +/** comment line 2*/ +var x = 70; /* multiline trailing comment +>x : Symbol(x, Decl(commentsVarDecl.ts, 16, 3)) + +this is multiline trailing comment */ +/** Triple slash comment on the assignment shouldnt be in .d.ts file*/ +x = myVariable; +>x : Symbol(x, Decl(commentsVarDecl.ts, 16, 3)) +>myVariable : Symbol(myVariable, Decl(commentsVarDecl.ts, 1, 3)) + +/** triple slash comment1*/ +/** jsdocstyle comment - only this comment should be in .d.ts file*/ +var n = 30; +>n : Symbol(n, Decl(commentsVarDecl.ts, 23, 3)) + +/** var deckaration with comment on type as well*/ +var y = /** value comment */ 20; +>y : Symbol(y, Decl(commentsVarDecl.ts, 26, 3)) + +/// var deckaration with comment on type as well +var yy = +>yy : Symbol(yy, Decl(commentsVarDecl.ts, 29, 3)) + + /// value comment + 20; + +/** comment2 */ +var z = /** lambda comment */ (x: number, y: number) => x + y; +>z : Symbol(z, Decl(commentsVarDecl.ts, 34, 3)) +>x : Symbol(x, Decl(commentsVarDecl.ts, 34, 31)) +>y : Symbol(y, Decl(commentsVarDecl.ts, 34, 41)) +>x : Symbol(x, Decl(commentsVarDecl.ts, 34, 31)) +>y : Symbol(y, Decl(commentsVarDecl.ts, 34, 41)) + +var z2: /** type comment*/ (x: number) => string; +>z2 : Symbol(z2, Decl(commentsVarDecl.ts, 36, 3)) +>x : Symbol(x, Decl(commentsVarDecl.ts, 36, 28)) + +var x2 = z2; +>x2 : Symbol(x2, Decl(commentsVarDecl.ts, 38, 3)) +>z2 : Symbol(z2, Decl(commentsVarDecl.ts, 36, 3)) + +var n4: (x: number) => string; +>n4 : Symbol(n4, Decl(commentsVarDecl.ts, 40, 3)) +>x : Symbol(x, Decl(commentsVarDecl.ts, 40, 9)) + +n4 = z2; +>n4 : Symbol(n4, Decl(commentsVarDecl.ts, 40, 3)) +>z2 : Symbol(z2, Decl(commentsVarDecl.ts, 36, 3)) + diff --git a/tests/baselines/reference/commentsVarDecl(target=es5).types b/tests/baselines/reference/commentsVarDecl(target=es5).types new file mode 100644 index 0000000000000..08ddb0338d20e --- /dev/null +++ b/tests/baselines/reference/commentsVarDecl(target=es5).types @@ -0,0 +1,119 @@ +//// [tests/cases/compiler/commentsVarDecl.ts] //// + +=== commentsVarDecl.ts === +/** Variable comments*/ +var myVariable = 10; // This trailing Comment1 +>myVariable : number +> : ^^^^^^ +>10 : 10 +> : ^^ + +/** This is another variable comment*/ +var anotherVariable = 30; +>anotherVariable : number +> : ^^^^^^ +>30 : 30 +> : ^^ + +// shouldn't appear +var aVar = ""; +>aVar : string +> : ^^^^^^ +>"" : "" +> : ^^ + +/** this is multiline comment + * All these variables are of number type */ +var anotherAnotherVariable = 70; /* these are multiple trailing comments */ /* multiple trailing comments */ +>anotherAnotherVariable : number +> : ^^^^^^ +>70 : 70 +> : ^^ + +/** Triple slash multiline comment*/ +/** another line in the comment*/ +/** comment line 2*/ +var x = 70; /* multiline trailing comment +>x : number +> : ^^^^^^ +>70 : 70 +> : ^^ + +this is multiline trailing comment */ +/** Triple slash comment on the assignment shouldnt be in .d.ts file*/ +x = myVariable; +>x = myVariable : number +> : ^^^^^^ +>x : number +> : ^^^^^^ +>myVariable : number +> : ^^^^^^ + +/** triple slash comment1*/ +/** jsdocstyle comment - only this comment should be in .d.ts file*/ +var n = 30; +>n : number +> : ^^^^^^ +>30 : 30 +> : ^^ + +/** var deckaration with comment on type as well*/ +var y = /** value comment */ 20; +>y : number +> : ^^^^^^ +>20 : 20 +> : ^^ + +/// var deckaration with comment on type as well +var yy = +>yy : number +> : ^^^^^^ + + /// value comment + 20; +>20 : 20 +> : ^^ + +/** comment2 */ +var z = /** lambda comment */ (x: number, y: number) => x + y; +>z : (x: number, y: number) => number +> : ^ ^^ ^^ ^^ ^^^^^^^^^^^ +>(x: number, y: number) => x + y : (x: number, y: number) => number +> : ^ ^^ ^^ ^^ ^^^^^^^^^^^ +>x : number +> : ^^^^^^ +>y : number +> : ^^^^^^ +>x + y : number +> : ^^^^^^ +>x : number +> : ^^^^^^ +>y : number +> : ^^^^^^ + +var z2: /** type comment*/ (x: number) => string; +>z2 : (x: number) => string +> : ^ ^^ ^^^^^ +>x : number +> : ^^^^^^ + +var x2 = z2; +>x2 : (x: number) => string +> : ^ ^^ ^^^^^ +>z2 : (x: number) => string +> : ^ ^^ ^^^^^ + +var n4: (x: number) => string; +>n4 : (x: number) => string +> : ^ ^^ ^^^^^ +>x : number +> : ^^^^^^ + +n4 = z2; +>n4 = z2 : (x: number) => string +> : ^ ^^ ^^^^^ +>n4 : (x: number) => string +> : ^ ^^ ^^^^^ +>z2 : (x: number) => string +> : ^ ^^ ^^^^^ + diff --git a/tests/baselines/reference/commentsdoNotEmitComments(target=es2015).js b/tests/baselines/reference/commentsdoNotEmitComments(target=es2015).js new file mode 100644 index 0000000000000..5ece0c2831850 --- /dev/null +++ b/tests/baselines/reference/commentsdoNotEmitComments(target=es2015).js @@ -0,0 +1,171 @@ +//// [tests/cases/compiler/commentsdoNotEmitComments.ts] //// + +//// [commentsdoNotEmitComments.ts] +/** Variable comments*/ +var myVariable = 10; + +/** function comments*/ +function foo(/** parameter comment*/p: number) { +} + +/** variable with function type comment*/ +var fooVar: () => void; +foo(50); +fooVar(); + +/**class comment*/ +class c { + /** constructor comment*/ + constructor() { + } + + /** property comment */ + public b = 10; + + /** function comment */ + public myFoo() { + return this.b; + } + + /** getter comment*/ + public get prop1() { + return this.b; + } + + /** setter comment*/ + public set prop1(val: number) { + this.b = val; + } + + /** overload signature1*/ + public foo1(a: number): string; + /** Overload signature 2*/ + public foo1(b: string): string; + /** overload implementation signature*/ + public foo1(aOrb) { + return aOrb.toString(); + } +} + +/**instance comment*/ +var i = new c(); + +/** interface comments*/ +interface i1 { + /** caller comments*/ + (a: number): number; + + /** new comments*/ + new (b: string); + + /**indexer property*/ + [a: number]: string; + + /** function property;*/ + myFoo(/*param prop*/a: number): string; + + /** prop*/ + prop: string; +} + +/**interface instance comments*/ +var i1_i: i1; + +/** this is module comment*/ +namespace m1 { + /** class b */ + export class b { + constructor(public x: number) { + + } + } + + /// module m2 + export namespace m2 { + } +} + +/// this is x +declare var x; + + +/** const enum member value comment (generated by TS) */ +const enum color { red, green, blue } +var shade: color = color.green; + + +//// [commentsdoNotEmitComments.js] +var myVariable = 10; +function foo(p) { +} +var fooVar; +foo(50); +fooVar(); +class c { + constructor() { + this.b = 10; + } + myFoo() { + return this.b; + } + get prop1() { + return this.b; + } + set prop1(val) { + this.b = val; + } + foo1(aOrb) { + return aOrb.toString(); + } +} +var i = new c(); +var i1_i; +var m1; +(function (m1) { + class b { + constructor(x) { + this.x = x; + } + } + m1.b = b; +})(m1 || (m1 = {})); +var shade = 1; + + +//// [commentsdoNotEmitComments.d.ts] +declare var myVariable: number; +declare function foo(p: number): void; +declare var fooVar: () => void; +declare class c { + constructor(); + b: number; + myFoo(): number; + get prop1(): number; + set prop1(val: number); + foo1(a: number): string; + foo1(b: string): string; +} +declare var i: c; +interface i1 { + (a: number): number; + new (b: string): any; + [a: number]: string; + myFoo(a: number): string; + prop: string; +} +declare var i1_i: i1; +declare namespace m1 { + class b { + x: number; + constructor(x: number); + } + namespace m2 { + } +} +declare var x: any; +declare const enum color { + red = 0, + green = 1, + blue = 2 +} +declare var shade: color; diff --git a/tests/baselines/reference/commentsdoNotEmitComments.symbols b/tests/baselines/reference/commentsdoNotEmitComments(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/commentsdoNotEmitComments.symbols rename to tests/baselines/reference/commentsdoNotEmitComments(target=es2015).symbols diff --git a/tests/baselines/reference/commentsdoNotEmitComments.types b/tests/baselines/reference/commentsdoNotEmitComments(target=es2015).types similarity index 100% rename from tests/baselines/reference/commentsdoNotEmitComments.types rename to tests/baselines/reference/commentsdoNotEmitComments(target=es2015).types diff --git a/tests/baselines/reference/commentsdoNotEmitComments.js b/tests/baselines/reference/commentsdoNotEmitComments(target=es5).js similarity index 100% rename from tests/baselines/reference/commentsdoNotEmitComments.js rename to tests/baselines/reference/commentsdoNotEmitComments(target=es5).js diff --git a/tests/baselines/reference/commentsdoNotEmitComments(target=es5).symbols b/tests/baselines/reference/commentsdoNotEmitComments(target=es5).symbols new file mode 100644 index 0000000000000..5e9e2def2c29e --- /dev/null +++ b/tests/baselines/reference/commentsdoNotEmitComments(target=es5).symbols @@ -0,0 +1,162 @@ +//// [tests/cases/compiler/commentsdoNotEmitComments.ts] //// + +=== commentsdoNotEmitComments.ts === +/** Variable comments*/ +var myVariable = 10; +>myVariable : Symbol(myVariable, Decl(commentsdoNotEmitComments.ts, 1, 3)) + +/** function comments*/ +function foo(/** parameter comment*/p: number) { +>foo : Symbol(foo, Decl(commentsdoNotEmitComments.ts, 1, 20)) +>p : Symbol(p, Decl(commentsdoNotEmitComments.ts, 4, 13)) +} + +/** variable with function type comment*/ +var fooVar: () => void; +>fooVar : Symbol(fooVar, Decl(commentsdoNotEmitComments.ts, 8, 3)) + +foo(50); +>foo : Symbol(foo, Decl(commentsdoNotEmitComments.ts, 1, 20)) + +fooVar(); +>fooVar : Symbol(fooVar, Decl(commentsdoNotEmitComments.ts, 8, 3)) + +/**class comment*/ +class c { +>c : Symbol(c, Decl(commentsdoNotEmitComments.ts, 10, 9)) + + /** constructor comment*/ + constructor() { + } + + /** property comment */ + public b = 10; +>b : Symbol(c.b, Decl(commentsdoNotEmitComments.ts, 16, 5)) + + /** function comment */ + public myFoo() { +>myFoo : Symbol(c.myFoo, Decl(commentsdoNotEmitComments.ts, 19, 18)) + + return this.b; +>this.b : Symbol(c.b, Decl(commentsdoNotEmitComments.ts, 16, 5)) +>this : Symbol(c, Decl(commentsdoNotEmitComments.ts, 10, 9)) +>b : Symbol(c.b, Decl(commentsdoNotEmitComments.ts, 16, 5)) + } + + /** getter comment*/ + public get prop1() { +>prop1 : Symbol(c.prop1, Decl(commentsdoNotEmitComments.ts, 24, 5), Decl(commentsdoNotEmitComments.ts, 29, 5)) + + return this.b; +>this.b : Symbol(c.b, Decl(commentsdoNotEmitComments.ts, 16, 5)) +>this : Symbol(c, Decl(commentsdoNotEmitComments.ts, 10, 9)) +>b : Symbol(c.b, Decl(commentsdoNotEmitComments.ts, 16, 5)) + } + + /** setter comment*/ + public set prop1(val: number) { +>prop1 : Symbol(c.prop1, Decl(commentsdoNotEmitComments.ts, 24, 5), Decl(commentsdoNotEmitComments.ts, 29, 5)) +>val : Symbol(val, Decl(commentsdoNotEmitComments.ts, 32, 21)) + + this.b = val; +>this.b : Symbol(c.b, Decl(commentsdoNotEmitComments.ts, 16, 5)) +>this : Symbol(c, Decl(commentsdoNotEmitComments.ts, 10, 9)) +>b : Symbol(c.b, Decl(commentsdoNotEmitComments.ts, 16, 5)) +>val : Symbol(val, Decl(commentsdoNotEmitComments.ts, 32, 21)) + } + + /** overload signature1*/ + public foo1(a: number): string; +>foo1 : Symbol(c.foo1, Decl(commentsdoNotEmitComments.ts, 34, 5), Decl(commentsdoNotEmitComments.ts, 37, 35), Decl(commentsdoNotEmitComments.ts, 39, 35)) +>a : Symbol(a, Decl(commentsdoNotEmitComments.ts, 37, 16)) + + /** Overload signature 2*/ + public foo1(b: string): string; +>foo1 : Symbol(c.foo1, Decl(commentsdoNotEmitComments.ts, 34, 5), Decl(commentsdoNotEmitComments.ts, 37, 35), Decl(commentsdoNotEmitComments.ts, 39, 35)) +>b : Symbol(b, Decl(commentsdoNotEmitComments.ts, 39, 16)) + + /** overload implementation signature*/ + public foo1(aOrb) { +>foo1 : Symbol(c.foo1, Decl(commentsdoNotEmitComments.ts, 34, 5), Decl(commentsdoNotEmitComments.ts, 37, 35), Decl(commentsdoNotEmitComments.ts, 39, 35)) +>aOrb : Symbol(aOrb, Decl(commentsdoNotEmitComments.ts, 41, 16)) + + return aOrb.toString(); +>aOrb : Symbol(aOrb, Decl(commentsdoNotEmitComments.ts, 41, 16)) + } +} + +/**instance comment*/ +var i = new c(); +>i : Symbol(i, Decl(commentsdoNotEmitComments.ts, 47, 3)) +>c : Symbol(c, Decl(commentsdoNotEmitComments.ts, 10, 9)) + +/** interface comments*/ +interface i1 { +>i1 : Symbol(i1, Decl(commentsdoNotEmitComments.ts, 47, 16)) + + /** caller comments*/ + (a: number): number; +>a : Symbol(a, Decl(commentsdoNotEmitComments.ts, 52, 5)) + + /** new comments*/ + new (b: string); +>b : Symbol(b, Decl(commentsdoNotEmitComments.ts, 55, 9)) + + /**indexer property*/ + [a: number]: string; +>a : Symbol(a, Decl(commentsdoNotEmitComments.ts, 58, 5)) + + /** function property;*/ + myFoo(/*param prop*/a: number): string; +>myFoo : Symbol(i1.myFoo, Decl(commentsdoNotEmitComments.ts, 58, 24)) +>a : Symbol(a, Decl(commentsdoNotEmitComments.ts, 61, 10)) + + /** prop*/ + prop: string; +>prop : Symbol(i1.prop, Decl(commentsdoNotEmitComments.ts, 61, 43)) +} + +/**interface instance comments*/ +var i1_i: i1; +>i1_i : Symbol(i1_i, Decl(commentsdoNotEmitComments.ts, 68, 3)) +>i1 : Symbol(i1, Decl(commentsdoNotEmitComments.ts, 47, 16)) + +/** this is module comment*/ +namespace m1 { +>m1 : Symbol(m1, Decl(commentsdoNotEmitComments.ts, 68, 13)) + + /** class b */ + export class b { +>b : Symbol(b, Decl(commentsdoNotEmitComments.ts, 71, 14)) + + constructor(public x: number) { +>x : Symbol(b.x, Decl(commentsdoNotEmitComments.ts, 74, 20)) + + } + } + + /// module m2 + export namespace m2 { +>m2 : Symbol(m2, Decl(commentsdoNotEmitComments.ts, 77, 5)) + } +} + +/// this is x +declare var x; +>x : Symbol(x, Decl(commentsdoNotEmitComments.ts, 85, 11)) + + +/** const enum member value comment (generated by TS) */ +const enum color { red, green, blue } +>color : Symbol(color, Decl(commentsdoNotEmitComments.ts, 85, 14)) +>red : Symbol(color.red, Decl(commentsdoNotEmitComments.ts, 89, 18)) +>green : Symbol(color.green, Decl(commentsdoNotEmitComments.ts, 89, 23)) +>blue : Symbol(color.blue, Decl(commentsdoNotEmitComments.ts, 89, 30)) + +var shade: color = color.green; +>shade : Symbol(shade, Decl(commentsdoNotEmitComments.ts, 90, 3)) +>color : Symbol(color, Decl(commentsdoNotEmitComments.ts, 85, 14)) +>color.green : Symbol(color.green, Decl(commentsdoNotEmitComments.ts, 89, 23)) +>color : Symbol(color, Decl(commentsdoNotEmitComments.ts, 85, 14)) +>green : Symbol(color.green, Decl(commentsdoNotEmitComments.ts, 89, 23)) + diff --git a/tests/baselines/reference/commentsdoNotEmitComments(target=es5).types b/tests/baselines/reference/commentsdoNotEmitComments(target=es5).types new file mode 100644 index 0000000000000..1a306143d6e38 --- /dev/null +++ b/tests/baselines/reference/commentsdoNotEmitComments(target=es5).types @@ -0,0 +1,223 @@ +//// [tests/cases/compiler/commentsdoNotEmitComments.ts] //// + +=== commentsdoNotEmitComments.ts === +/** Variable comments*/ +var myVariable = 10; +>myVariable : number +> : ^^^^^^ +>10 : 10 +> : ^^ + +/** function comments*/ +function foo(/** parameter comment*/p: number) { +>foo : (p: number) => void +> : ^ ^^ ^^^^^^^^^ +>p : number +> : ^^^^^^ +} + +/** variable with function type comment*/ +var fooVar: () => void; +>fooVar : () => void +> : ^^^^^^ + +foo(50); +>foo(50) : void +> : ^^^^ +>foo : (p: number) => void +> : ^ ^^ ^^^^^^^^^ +>50 : 50 +> : ^^ + +fooVar(); +>fooVar() : void +> : ^^^^ +>fooVar : () => void +> : ^^^^^^ + +/**class comment*/ +class c { +>c : c +> : ^ + + /** constructor comment*/ + constructor() { + } + + /** property comment */ + public b = 10; +>b : number +> : ^^^^^^ +>10 : 10 +> : ^^ + + /** function comment */ + public myFoo() { +>myFoo : () => number +> : ^^^^^^^^^^^^ + + return this.b; +>this.b : number +> : ^^^^^^ +>this : this +> : ^^^^ +>b : number +> : ^^^^^^ + } + + /** getter comment*/ + public get prop1() { +>prop1 : number +> : ^^^^^^ + + return this.b; +>this.b : number +> : ^^^^^^ +>this : this +> : ^^^^ +>b : number +> : ^^^^^^ + } + + /** setter comment*/ + public set prop1(val: number) { +>prop1 : number +> : ^^^^^^ +>val : number +> : ^^^^^^ + + this.b = val; +>this.b = val : number +> : ^^^^^^ +>this.b : number +> : ^^^^^^ +>this : this +> : ^^^^ +>b : number +> : ^^^^^^ +>val : number +> : ^^^^^^ + } + + /** overload signature1*/ + public foo1(a: number): string; +>foo1 : { (a: number): string; (b: string): string; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>a : number +> : ^^^^^^ + + /** Overload signature 2*/ + public foo1(b: string): string; +>foo1 : { (a: number): string; (b: string): string; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>b : string +> : ^^^^^^ + + /** overload implementation signature*/ + public foo1(aOrb) { +>foo1 : { (a: number): string; (b: string): string; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>aOrb : any + + return aOrb.toString(); +>aOrb.toString() : any +>aOrb.toString : any +>aOrb : any +> : ^^^ +>toString : any +> : ^^^ + } +} + +/**instance comment*/ +var i = new c(); +>i : c +> : ^ +>new c() : c +> : ^ +>c : typeof c +> : ^^^^^^^^ + +/** interface comments*/ +interface i1 { + /** caller comments*/ + (a: number): number; +>a : number +> : ^^^^^^ + + /** new comments*/ + new (b: string); +>b : string +> : ^^^^^^ + + /**indexer property*/ + [a: number]: string; +>a : number +> : ^^^^^^ + + /** function property;*/ + myFoo(/*param prop*/a: number): string; +>myFoo : (a: number) => string +> : ^ ^^ ^^^^^ +>a : number +> : ^^^^^^ + + /** prop*/ + prop: string; +>prop : string +> : ^^^^^^ +} + +/**interface instance comments*/ +var i1_i: i1; +>i1_i : i1 +> : ^^ + +/** this is module comment*/ +namespace m1 { +>m1 : typeof m1 +> : ^^^^^^^^^ + + /** class b */ + export class b { +>b : b +> : ^ + + constructor(public x: number) { +>x : number +> : ^^^^^^ + + } + } + + /// module m2 + export namespace m2 { + } +} + +/// this is x +declare var x; +>x : any + + +/** const enum member value comment (generated by TS) */ +const enum color { red, green, blue } +>color : color +> : ^^^^^ +>red : color.red +> : ^^^^^^^^^ +>green : color.green +> : ^^^^^^^^^^^ +>blue : color.blue +> : ^^^^^^^^^^ + +var shade: color = color.green; +>shade : color +> : ^^^^^ +>color.green : color.green +> : ^^^^^^^^^^^ +>color : typeof color +> : ^^^^^^^^^^^^ +>green : color.green +> : ^^^^^^^^^^^ + diff --git a/tests/baselines/reference/commentsemitComments(target=es2015).js b/tests/baselines/reference/commentsemitComments(target=es2015).js new file mode 100644 index 0000000000000..e8bf5211c8edb --- /dev/null +++ b/tests/baselines/reference/commentsemitComments(target=es2015).js @@ -0,0 +1,194 @@ +//// [tests/cases/compiler/commentsemitComments.ts] //// + +//// [commentsemitComments.ts] +/** Variable comments*/ +var myVariable = 10; + +/** function comments*/ +function foo(/** parameter comment*/p: number) { +} + +/** variable with function type comment*/ +var fooVar: () => void; +foo(50); +fooVar(); + +/**class comment*/ +class c { + /** constructor comment*/ + constructor() { + } + + /** property comment */ + public b = 10; + + /** function comment */ + public myFoo() { + return this.b; + } + + /** getter comment*/ + public get prop1() { + return this.b; + } + + /** setter comment*/ + public set prop1(val: number) { + this.b = val; + } + + /** overload signature1*/ + public foo1(a: number): string; + /** Overload signature 2*/ + public foo1(b: string): string; + /** overload implementation signature*/ + public foo1(aOrb) { + return aOrb.toString(); + } +} + +/**instance comment*/ +var i = new c(); + +/** interface comments*/ +interface i1 { + /** caller comments*/ + (a: number): number; + + /** new comments*/ + new (b: string); + + /**indexer property*/ + [a: number]: string; + + /** function property;*/ + myFoo(/*param prop*/a: number): string; + + /** prop*/ + prop: string; +} + +/**interface instance comments*/ +var i1_i: i1; + +/** this is module comment*/ +namespace m1 { + /** class b */ + export class b { + constructor(public x: number) { + + } + } + + /// module m2 + export namespace m2 { + } +} + +/// this is x +declare var x; + + +//// [commentsemitComments.js] +/** Variable comments*/ +var myVariable = 10; +/** function comments*/ +function foo(/** parameter comment*/ p) { +} +/** variable with function type comment*/ +var fooVar; +foo(50); +fooVar(); +/**class comment*/ +class c { + /** constructor comment*/ + constructor() { + /** property comment */ + this.b = 10; + } + /** function comment */ + myFoo() { + return this.b; + } + /** getter comment*/ + get prop1() { + return this.b; + } + /** setter comment*/ + set prop1(val) { + this.b = val; + } + /** overload implementation signature*/ + foo1(aOrb) { + return aOrb.toString(); + } +} +/**instance comment*/ +var i = new c(); +/**interface instance comments*/ +var i1_i; +/** this is module comment*/ +var m1; +(function (m1) { + /** class b */ + class b { + constructor(x) { + this.x = x; + } + } + m1.b = b; +})(m1 || (m1 = {})); + + +//// [commentsemitComments.d.ts] +/** Variable comments*/ +declare var myVariable: number; +/** function comments*/ +declare function foo(/** parameter comment*/ p: number): void; +/** variable with function type comment*/ +declare var fooVar: () => void; +/**class comment*/ +declare class c { + /** constructor comment*/ + constructor(); + /** property comment */ + b: number; + /** function comment */ + myFoo(): number; + /** getter comment*/ + get prop1(): number; + /** setter comment*/ + set prop1(val: number); + /** overload signature1*/ + foo1(a: number): string; + /** Overload signature 2*/ + foo1(b: string): string; +} +/**instance comment*/ +declare var i: c; +/** interface comments*/ +interface i1 { + /** caller comments*/ + (a: number): number; + /** new comments*/ + new (b: string): any; + /**indexer property*/ + [a: number]: string; + /** function property;*/ + myFoo(/*param prop*/ a: number): string; + /** prop*/ + prop: string; +} +/**interface instance comments*/ +declare var i1_i: i1; +/** this is module comment*/ +declare namespace m1 { + /** class b */ + class b { + x: number; + constructor(x: number); + } + namespace m2 { + } +} +declare var x: any; diff --git a/tests/baselines/reference/commentsemitComments.symbols b/tests/baselines/reference/commentsemitComments(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/commentsemitComments.symbols rename to tests/baselines/reference/commentsemitComments(target=es2015).symbols diff --git a/tests/baselines/reference/commentsemitComments.types b/tests/baselines/reference/commentsemitComments(target=es2015).types similarity index 100% rename from tests/baselines/reference/commentsemitComments.types rename to tests/baselines/reference/commentsemitComments(target=es2015).types diff --git a/tests/baselines/reference/commentsemitComments.js b/tests/baselines/reference/commentsemitComments(target=es5).js similarity index 100% rename from tests/baselines/reference/commentsemitComments.js rename to tests/baselines/reference/commentsemitComments(target=es5).js diff --git a/tests/baselines/reference/commentsemitComments(target=es5).symbols b/tests/baselines/reference/commentsemitComments(target=es5).symbols new file mode 100644 index 0000000000000..a3f0dddce5275 --- /dev/null +++ b/tests/baselines/reference/commentsemitComments(target=es5).symbols @@ -0,0 +1,147 @@ +//// [tests/cases/compiler/commentsemitComments.ts] //// + +=== commentsemitComments.ts === +/** Variable comments*/ +var myVariable = 10; +>myVariable : Symbol(myVariable, Decl(commentsemitComments.ts, 1, 3)) + +/** function comments*/ +function foo(/** parameter comment*/p: number) { +>foo : Symbol(foo, Decl(commentsemitComments.ts, 1, 20)) +>p : Symbol(p, Decl(commentsemitComments.ts, 4, 13)) +} + +/** variable with function type comment*/ +var fooVar: () => void; +>fooVar : Symbol(fooVar, Decl(commentsemitComments.ts, 8, 3)) + +foo(50); +>foo : Symbol(foo, Decl(commentsemitComments.ts, 1, 20)) + +fooVar(); +>fooVar : Symbol(fooVar, Decl(commentsemitComments.ts, 8, 3)) + +/**class comment*/ +class c { +>c : Symbol(c, Decl(commentsemitComments.ts, 10, 9)) + + /** constructor comment*/ + constructor() { + } + + /** property comment */ + public b = 10; +>b : Symbol(c.b, Decl(commentsemitComments.ts, 16, 5)) + + /** function comment */ + public myFoo() { +>myFoo : Symbol(c.myFoo, Decl(commentsemitComments.ts, 19, 18)) + + return this.b; +>this.b : Symbol(c.b, Decl(commentsemitComments.ts, 16, 5)) +>this : Symbol(c, Decl(commentsemitComments.ts, 10, 9)) +>b : Symbol(c.b, Decl(commentsemitComments.ts, 16, 5)) + } + + /** getter comment*/ + public get prop1() { +>prop1 : Symbol(c.prop1, Decl(commentsemitComments.ts, 24, 5), Decl(commentsemitComments.ts, 29, 5)) + + return this.b; +>this.b : Symbol(c.b, Decl(commentsemitComments.ts, 16, 5)) +>this : Symbol(c, Decl(commentsemitComments.ts, 10, 9)) +>b : Symbol(c.b, Decl(commentsemitComments.ts, 16, 5)) + } + + /** setter comment*/ + public set prop1(val: number) { +>prop1 : Symbol(c.prop1, Decl(commentsemitComments.ts, 24, 5), Decl(commentsemitComments.ts, 29, 5)) +>val : Symbol(val, Decl(commentsemitComments.ts, 32, 21)) + + this.b = val; +>this.b : Symbol(c.b, Decl(commentsemitComments.ts, 16, 5)) +>this : Symbol(c, Decl(commentsemitComments.ts, 10, 9)) +>b : Symbol(c.b, Decl(commentsemitComments.ts, 16, 5)) +>val : Symbol(val, Decl(commentsemitComments.ts, 32, 21)) + } + + /** overload signature1*/ + public foo1(a: number): string; +>foo1 : Symbol(c.foo1, Decl(commentsemitComments.ts, 34, 5), Decl(commentsemitComments.ts, 37, 35), Decl(commentsemitComments.ts, 39, 35)) +>a : Symbol(a, Decl(commentsemitComments.ts, 37, 16)) + + /** Overload signature 2*/ + public foo1(b: string): string; +>foo1 : Symbol(c.foo1, Decl(commentsemitComments.ts, 34, 5), Decl(commentsemitComments.ts, 37, 35), Decl(commentsemitComments.ts, 39, 35)) +>b : Symbol(b, Decl(commentsemitComments.ts, 39, 16)) + + /** overload implementation signature*/ + public foo1(aOrb) { +>foo1 : Symbol(c.foo1, Decl(commentsemitComments.ts, 34, 5), Decl(commentsemitComments.ts, 37, 35), Decl(commentsemitComments.ts, 39, 35)) +>aOrb : Symbol(aOrb, Decl(commentsemitComments.ts, 41, 16)) + + return aOrb.toString(); +>aOrb : Symbol(aOrb, Decl(commentsemitComments.ts, 41, 16)) + } +} + +/**instance comment*/ +var i = new c(); +>i : Symbol(i, Decl(commentsemitComments.ts, 47, 3)) +>c : Symbol(c, Decl(commentsemitComments.ts, 10, 9)) + +/** interface comments*/ +interface i1 { +>i1 : Symbol(i1, Decl(commentsemitComments.ts, 47, 16)) + + /** caller comments*/ + (a: number): number; +>a : Symbol(a, Decl(commentsemitComments.ts, 52, 5)) + + /** new comments*/ + new (b: string); +>b : Symbol(b, Decl(commentsemitComments.ts, 55, 9)) + + /**indexer property*/ + [a: number]: string; +>a : Symbol(a, Decl(commentsemitComments.ts, 58, 5)) + + /** function property;*/ + myFoo(/*param prop*/a: number): string; +>myFoo : Symbol(i1.myFoo, Decl(commentsemitComments.ts, 58, 24)) +>a : Symbol(a, Decl(commentsemitComments.ts, 61, 10)) + + /** prop*/ + prop: string; +>prop : Symbol(i1.prop, Decl(commentsemitComments.ts, 61, 43)) +} + +/**interface instance comments*/ +var i1_i: i1; +>i1_i : Symbol(i1_i, Decl(commentsemitComments.ts, 68, 3)) +>i1 : Symbol(i1, Decl(commentsemitComments.ts, 47, 16)) + +/** this is module comment*/ +namespace m1 { +>m1 : Symbol(m1, Decl(commentsemitComments.ts, 68, 13)) + + /** class b */ + export class b { +>b : Symbol(b, Decl(commentsemitComments.ts, 71, 14)) + + constructor(public x: number) { +>x : Symbol(b.x, Decl(commentsemitComments.ts, 74, 20)) + + } + } + + /// module m2 + export namespace m2 { +>m2 : Symbol(m2, Decl(commentsemitComments.ts, 77, 5)) + } +} + +/// this is x +declare var x; +>x : Symbol(x, Decl(commentsemitComments.ts, 85, 11)) + diff --git a/tests/baselines/reference/commentsemitComments(target=es5).types b/tests/baselines/reference/commentsemitComments(target=es5).types new file mode 100644 index 0000000000000..caa9f3b50153e --- /dev/null +++ b/tests/baselines/reference/commentsemitComments(target=es5).types @@ -0,0 +1,201 @@ +//// [tests/cases/compiler/commentsemitComments.ts] //// + +=== commentsemitComments.ts === +/** Variable comments*/ +var myVariable = 10; +>myVariable : number +> : ^^^^^^ +>10 : 10 +> : ^^ + +/** function comments*/ +function foo(/** parameter comment*/p: number) { +>foo : (p: number) => void +> : ^ ^^ ^^^^^^^^^ +>p : number +> : ^^^^^^ +} + +/** variable with function type comment*/ +var fooVar: () => void; +>fooVar : () => void +> : ^^^^^^ + +foo(50); +>foo(50) : void +> : ^^^^ +>foo : (p: number) => void +> : ^ ^^ ^^^^^^^^^ +>50 : 50 +> : ^^ + +fooVar(); +>fooVar() : void +> : ^^^^ +>fooVar : () => void +> : ^^^^^^ + +/**class comment*/ +class c { +>c : c +> : ^ + + /** constructor comment*/ + constructor() { + } + + /** property comment */ + public b = 10; +>b : number +> : ^^^^^^ +>10 : 10 +> : ^^ + + /** function comment */ + public myFoo() { +>myFoo : () => number +> : ^^^^^^^^^^^^ + + return this.b; +>this.b : number +> : ^^^^^^ +>this : this +> : ^^^^ +>b : number +> : ^^^^^^ + } + + /** getter comment*/ + public get prop1() { +>prop1 : number +> : ^^^^^^ + + return this.b; +>this.b : number +> : ^^^^^^ +>this : this +> : ^^^^ +>b : number +> : ^^^^^^ + } + + /** setter comment*/ + public set prop1(val: number) { +>prop1 : number +> : ^^^^^^ +>val : number +> : ^^^^^^ + + this.b = val; +>this.b = val : number +> : ^^^^^^ +>this.b : number +> : ^^^^^^ +>this : this +> : ^^^^ +>b : number +> : ^^^^^^ +>val : number +> : ^^^^^^ + } + + /** overload signature1*/ + public foo1(a: number): string; +>foo1 : { (a: number): string; (b: string): string; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>a : number +> : ^^^^^^ + + /** Overload signature 2*/ + public foo1(b: string): string; +>foo1 : { (a: number): string; (b: string): string; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>b : string +> : ^^^^^^ + + /** overload implementation signature*/ + public foo1(aOrb) { +>foo1 : { (a: number): string; (b: string): string; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>aOrb : any + + return aOrb.toString(); +>aOrb.toString() : any +>aOrb.toString : any +>aOrb : any +> : ^^^ +>toString : any +> : ^^^ + } +} + +/**instance comment*/ +var i = new c(); +>i : c +> : ^ +>new c() : c +> : ^ +>c : typeof c +> : ^^^^^^^^ + +/** interface comments*/ +interface i1 { + /** caller comments*/ + (a: number): number; +>a : number +> : ^^^^^^ + + /** new comments*/ + new (b: string); +>b : string +> : ^^^^^^ + + /**indexer property*/ + [a: number]: string; +>a : number +> : ^^^^^^ + + /** function property;*/ + myFoo(/*param prop*/a: number): string; +>myFoo : (a: number) => string +> : ^ ^^ ^^^^^ +>a : number +> : ^^^^^^ + + /** prop*/ + prop: string; +>prop : string +> : ^^^^^^ +} + +/**interface instance comments*/ +var i1_i: i1; +>i1_i : i1 +> : ^^ + +/** this is module comment*/ +namespace m1 { +>m1 : typeof m1 +> : ^^^^^^^^^ + + /** class b */ + export class b { +>b : b +> : ^ + + constructor(public x: number) { +>x : number +> : ^^^^^^ + + } + } + + /// module m2 + export namespace m2 { + } +} + +/// this is x +declare var x; +>x : any + diff --git a/tests/baselines/reference/commonJsExportTypeDeclarationError.errors.txt b/tests/baselines/reference/commonJsExportTypeDeclarationError(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/commonJsExportTypeDeclarationError.errors.txt rename to tests/baselines/reference/commonJsExportTypeDeclarationError(target=es2015).errors.txt diff --git a/tests/baselines/reference/commonJsExportTypeDeclarationError.js b/tests/baselines/reference/commonJsExportTypeDeclarationError(target=es2015).js similarity index 100% rename from tests/baselines/reference/commonJsExportTypeDeclarationError.js rename to tests/baselines/reference/commonJsExportTypeDeclarationError(target=es2015).js diff --git a/tests/baselines/reference/commonJsExportTypeDeclarationError.symbols b/tests/baselines/reference/commonJsExportTypeDeclarationError(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/commonJsExportTypeDeclarationError.symbols rename to tests/baselines/reference/commonJsExportTypeDeclarationError(target=es2015).symbols diff --git a/tests/baselines/reference/commonJsExportTypeDeclarationError.types b/tests/baselines/reference/commonJsExportTypeDeclarationError(target=es2015).types similarity index 100% rename from tests/baselines/reference/commonJsExportTypeDeclarationError.types rename to tests/baselines/reference/commonJsExportTypeDeclarationError(target=es2015).types diff --git a/tests/baselines/reference/commonJsExportTypeDeclarationError(target=es5).errors.txt b/tests/baselines/reference/commonJsExportTypeDeclarationError(target=es5).errors.txt new file mode 100644 index 0000000000000..193a7a1bcda42 --- /dev/null +++ b/tests/baselines/reference/commonJsExportTypeDeclarationError(target=es5).errors.txt @@ -0,0 +1,31 @@ +types1.ts(2,17): error TS1110: Type expected. +types1.ts(3,1): error TS1005: '=' expected. +types2.ts(2,19): error TS1110: Type expected. +types3.ts(2,13): error TS2456: Type alias 'test' circularly references itself. + + +==== ./test.js (0 errors) ==== + module.exports = { + message: "" + } + +==== ./types1.ts (2 errors) ==== + import test from "./test"; + export type test + +!!! error TS1110: Type expected. + + +!!! error TS1005: '=' expected. +==== ./types2.ts (1 errors) ==== + import test from "./test"; + export type test = + +!!! error TS1110: Type expected. + +==== ./types3.ts (1 errors) ==== + import test from "./test"; + export type test = test; + ~~~~ +!!! error TS2456: Type alias 'test' circularly references itself. + \ No newline at end of file diff --git a/tests/baselines/reference/commonJsExportTypeDeclarationError(target=es5).js b/tests/baselines/reference/commonJsExportTypeDeclarationError(target=es5).js new file mode 100644 index 0000000000000..6120833035872 --- /dev/null +++ b/tests/baselines/reference/commonJsExportTypeDeclarationError(target=es5).js @@ -0,0 +1,33 @@ +//// [tests/cases/compiler/commonJsExportTypeDeclarationError.ts] //// + +//// [test.js] +module.exports = { + message: "" +} + +//// [types1.ts] +import test from "./test"; +export type test + +//// [types2.ts] +import test from "./test"; +export type test = + +//// [types3.ts] +import test from "./test"; +export type test = test; + + +//// [test.js] +module.exports = { + message: "" +}; +//// [types1.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//// [types2.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//// [types3.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/tests/baselines/reference/commonJsExportTypeDeclarationError(target=es5).symbols b/tests/baselines/reference/commonJsExportTypeDeclarationError(target=es5).symbols new file mode 100644 index 0000000000000..33a4964e3cacb --- /dev/null +++ b/tests/baselines/reference/commonJsExportTypeDeclarationError(target=es5).symbols @@ -0,0 +1,38 @@ +//// [tests/cases/compiler/commonJsExportTypeDeclarationError.ts] //// + +=== ./test.js === +module.exports = { +>module.exports : Symbol(module.exports, Decl(test.js, 0, 0)) +>module : Symbol(export=, Decl(test.js, 0, 0)) +>exports : Symbol(export=, Decl(test.js, 0, 0)) + + message: "" +>message : Symbol(message, Decl(test.js, 0, 18)) +} + +=== ./types1.ts === +import test from "./test"; +>test : Symbol(test, Decl(types1.ts, 0, 6), Decl(types1.ts, 0, 26)) + +export type test +>test : Symbol(test, Decl(types1.ts, 0, 26)) + +> : Symbol(unknown) + +=== ./types2.ts === +import test from "./test"; +>test : Symbol(test, Decl(types2.ts, 0, 6), Decl(types2.ts, 0, 26)) + +export type test = +>test : Symbol(test, Decl(types2.ts, 0, 26)) + +> : Symbol(unknown) + +=== ./types3.ts === +import test from "./test"; +>test : Symbol(test, Decl(types3.ts, 0, 6), Decl(types3.ts, 0, 26)) + +export type test = test; +>test : Symbol(test, Decl(types3.ts, 0, 26)) +>test : Symbol(test, Decl(types3.ts, 0, 26)) + diff --git a/tests/baselines/reference/commonJsExportTypeDeclarationError(target=es5).types b/tests/baselines/reference/commonJsExportTypeDeclarationError(target=es5).types new file mode 100644 index 0000000000000..164819d6af18a --- /dev/null +++ b/tests/baselines/reference/commonJsExportTypeDeclarationError(target=es5).types @@ -0,0 +1,49 @@ +//// [tests/cases/compiler/commonJsExportTypeDeclarationError.ts] //// + +=== ./test.js === +module.exports = { +>module.exports = { message: ""} : { message: string; } +> : ^^^^^^^^^^^^^^^^^^^^ +>module.exports : { message: string; } +> : ^^^^^^^^^^^^^^^^^^^^ +>module : { exports: { message: string; }; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exports : { message: string; } +> : ^^^^^^^^^^^^^^^^^^^^ +>{ message: ""} : { message: string; } +> : ^^^^^^^^^^^^^^^^^^^^ + + message: "" +>message : string +> : ^^^^^^ +>"" : "" +> : ^^ +} + +=== ./types1.ts === +import test from "./test"; +>test : { message: string; } +> : ^^^^^^^^^^^^^^^^^^^^ + +export type test +>test : any +> : ^^^ + +=== ./types2.ts === +import test from "./test"; +>test : { message: string; } +> : ^^^^^^^^^^^^^^^^^^^^ + +export type test = +>test : any +> : ^^^ + +=== ./types3.ts === +import test from "./test"; +>test : { message: string; } +> : ^^^^^^^^^^^^^^^^^^^^ + +export type test = test; +>test : any +> : ^^^ + diff --git a/tests/baselines/reference/commonjsSafeImport(target=es2015).js b/tests/baselines/reference/commonjsSafeImport(target=es2015).js new file mode 100644 index 0000000000000..eda6eb713db67 --- /dev/null +++ b/tests/baselines/reference/commonjsSafeImport(target=es2015).js @@ -0,0 +1,27 @@ +//// [tests/cases/compiler/commonjsSafeImport.ts] //// + +//// [10_lib.ts] +export function Foo() {} + +//// [main.ts] +import { Foo } from './10_lib'; + +Foo(); + + +//// [10_lib.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Foo = Foo; +function Foo() { } +//// [main.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const _10_lib_1 = require("./10_lib"); +(0, _10_lib_1.Foo)(); + + +//// [10_lib.d.ts] +export declare function Foo(): void; +//// [main.d.ts] +export {}; diff --git a/tests/baselines/reference/commonjsSafeImport.symbols b/tests/baselines/reference/commonjsSafeImport(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/commonjsSafeImport.symbols rename to tests/baselines/reference/commonjsSafeImport(target=es2015).symbols diff --git a/tests/baselines/reference/commonjsSafeImport.types b/tests/baselines/reference/commonjsSafeImport(target=es2015).types similarity index 100% rename from tests/baselines/reference/commonjsSafeImport.types rename to tests/baselines/reference/commonjsSafeImport(target=es2015).types diff --git a/tests/baselines/reference/commonjsSafeImport.js b/tests/baselines/reference/commonjsSafeImport(target=es5).js similarity index 100% rename from tests/baselines/reference/commonjsSafeImport.js rename to tests/baselines/reference/commonjsSafeImport(target=es5).js diff --git a/tests/baselines/reference/commonjsSafeImport(target=es5).symbols b/tests/baselines/reference/commonjsSafeImport(target=es5).symbols new file mode 100644 index 0000000000000..719d23c2d0649 --- /dev/null +++ b/tests/baselines/reference/commonjsSafeImport(target=es5).symbols @@ -0,0 +1,13 @@ +//// [tests/cases/compiler/commonjsSafeImport.ts] //// + +=== 10_lib.ts === +export function Foo() {} +>Foo : Symbol(Foo, Decl(10_lib.ts, 0, 0)) + +=== main.ts === +import { Foo } from './10_lib'; +>Foo : Symbol(Foo, Decl(main.ts, 0, 8)) + +Foo(); +>Foo : Symbol(Foo, Decl(main.ts, 0, 8)) + diff --git a/tests/baselines/reference/commonjsSafeImport(target=es5).types b/tests/baselines/reference/commonjsSafeImport(target=es5).types new file mode 100644 index 0000000000000..20a16fd4314ad --- /dev/null +++ b/tests/baselines/reference/commonjsSafeImport(target=es5).types @@ -0,0 +1,18 @@ +//// [tests/cases/compiler/commonjsSafeImport.ts] //// + +=== 10_lib.ts === +export function Foo() {} +>Foo : () => void +> : ^^^^^^^^^^ + +=== main.ts === +import { Foo } from './10_lib'; +>Foo : () => void +> : ^^^^^^^^^^ + +Foo(); +>Foo() : void +> : ^^^^ +>Foo : () => void +> : ^^^^^^^^^^ + diff --git a/tests/baselines/reference/complexClassRelationships.errors.txt b/tests/baselines/reference/complexClassRelationships(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/complexClassRelationships.errors.txt rename to tests/baselines/reference/complexClassRelationships(target=es2015).errors.txt diff --git a/tests/baselines/reference/complexClassRelationships(target=es2015).js b/tests/baselines/reference/complexClassRelationships(target=es2015).js new file mode 100644 index 0000000000000..36f1b9d253ade --- /dev/null +++ b/tests/baselines/reference/complexClassRelationships(target=es2015).js @@ -0,0 +1,92 @@ +//// [tests/cases/compiler/complexClassRelationships.ts] //// + +//// [complexClassRelationships.ts] +// There should be no errors in this file +class Derived extends Base { + public static createEmpty(): Derived { + var item = new Derived(); + return item; + } +} +class BaseCollection { + constructor(f: () => T) { + (item: Thing) => { return [item.Components]; }; + } +} +class Base { + ownerCollection: BaseCollection; +} + +class Thing { + public get Components(): ComponentCollection { return null } +} + +class ComponentCollection { + private static sortComponents(p: Foo) { + return p.prop1; + } +} + +class Foo { + public get prop1() { + return new GenericType(this); + } + public populate() { + this.prop2; + } + public get prop2(): BaseCollection { + return new BaseCollection(Derived.createEmpty); + } +} + +class GenericType { + constructor(parent: FooBase) { } +} + +class FooBase { + public populate() { + + } +} + +//// [complexClassRelationships.js] +// There should be no errors in this file +class Derived extends Base { + static createEmpty() { + var item = new Derived(); + return item; + } +} +class BaseCollection { + constructor(f) { + (item) => { return [item.Components]; }; + } +} +class Base { +} +class Thing { + get Components() { return null; } +} +class ComponentCollection { + static sortComponents(p) { + return p.prop1; + } +} +class Foo { + get prop1() { + return new GenericType(this); + } + populate() { + this.prop2; + } + get prop2() { + return new BaseCollection(Derived.createEmpty); + } +} +class GenericType { + constructor(parent) { } +} +class FooBase { + populate() { + } +} diff --git a/tests/baselines/reference/complexClassRelationships.symbols b/tests/baselines/reference/complexClassRelationships(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/complexClassRelationships.symbols rename to tests/baselines/reference/complexClassRelationships(target=es2015).symbols diff --git a/tests/baselines/reference/complexClassRelationships.types b/tests/baselines/reference/complexClassRelationships(target=es2015).types similarity index 100% rename from tests/baselines/reference/complexClassRelationships.types rename to tests/baselines/reference/complexClassRelationships(target=es2015).types diff --git a/tests/baselines/reference/complexClassRelationships(target=es5).errors.txt b/tests/baselines/reference/complexClassRelationships(target=es5).errors.txt new file mode 100644 index 0000000000000..ac14126b2e90e --- /dev/null +++ b/tests/baselines/reference/complexClassRelationships(target=es5).errors.txt @@ -0,0 +1,54 @@ +complexClassRelationships.ts(2,23): error TS2449: Class 'Base' used before its declaration. + + +==== complexClassRelationships.ts (1 errors) ==== + // There should be no errors in this file + class Derived extends Base { + ~~~~ +!!! error TS2449: Class 'Base' used before its declaration. +!!! related TS2728 complexClassRelationships.ts:13:7: 'Base' is declared here. + public static createEmpty(): Derived { + var item = new Derived(); + return item; + } + } + class BaseCollection { + constructor(f: () => T) { + (item: Thing) => { return [item.Components]; }; + } + } + class Base { + ownerCollection: BaseCollection; + } + + class Thing { + public get Components(): ComponentCollection { return null } + } + + class ComponentCollection { + private static sortComponents(p: Foo) { + return p.prop1; + } + } + + class Foo { + public get prop1() { + return new GenericType(this); + } + public populate() { + this.prop2; + } + public get prop2(): BaseCollection { + return new BaseCollection(Derived.createEmpty); + } + } + + class GenericType { + constructor(parent: FooBase) { } + } + + class FooBase { + public populate() { + + } + } \ No newline at end of file diff --git a/tests/baselines/reference/complexClassRelationships.js b/tests/baselines/reference/complexClassRelationships(target=es5).js similarity index 100% rename from tests/baselines/reference/complexClassRelationships.js rename to tests/baselines/reference/complexClassRelationships(target=es5).js diff --git a/tests/baselines/reference/complexClassRelationships(target=es5).symbols b/tests/baselines/reference/complexClassRelationships(target=es5).symbols new file mode 100644 index 0000000000000..1f1fd8a95b412 --- /dev/null +++ b/tests/baselines/reference/complexClassRelationships(target=es5).symbols @@ -0,0 +1,119 @@ +//// [tests/cases/compiler/complexClassRelationships.ts] //// + +=== complexClassRelationships.ts === +// There should be no errors in this file +class Derived extends Base { +>Derived : Symbol(Derived, Decl(complexClassRelationships.ts, 0, 0)) +>Base : Symbol(Base, Decl(complexClassRelationships.ts, 11, 1)) + + public static createEmpty(): Derived { +>createEmpty : Symbol(Derived.createEmpty, Decl(complexClassRelationships.ts, 1, 28)) +>Derived : Symbol(Derived, Decl(complexClassRelationships.ts, 0, 0)) + + var item = new Derived(); +>item : Symbol(item, Decl(complexClassRelationships.ts, 3, 11)) +>Derived : Symbol(Derived, Decl(complexClassRelationships.ts, 0, 0)) + + return item; +>item : Symbol(item, Decl(complexClassRelationships.ts, 3, 11)) + } +} +class BaseCollection { +>BaseCollection : Symbol(BaseCollection, Decl(complexClassRelationships.ts, 6, 1)) +>T : Symbol(T, Decl(complexClassRelationships.ts, 7, 21)) +>Base : Symbol(Base, Decl(complexClassRelationships.ts, 11, 1)) + + constructor(f: () => T) { +>f : Symbol(f, Decl(complexClassRelationships.ts, 8, 16)) +>T : Symbol(T, Decl(complexClassRelationships.ts, 7, 21)) + + (item: Thing) => { return [item.Components]; }; +>item : Symbol(item, Decl(complexClassRelationships.ts, 9, 9)) +>Thing : Symbol(Thing, Decl(complexClassRelationships.ts, 14, 1)) +>item.Components : Symbol(Thing.Components, Decl(complexClassRelationships.ts, 16, 13)) +>item : Symbol(item, Decl(complexClassRelationships.ts, 9, 9)) +>Components : Symbol(Thing.Components, Decl(complexClassRelationships.ts, 16, 13)) + } +} +class Base { +>Base : Symbol(Base, Decl(complexClassRelationships.ts, 11, 1)) + + ownerCollection: BaseCollection; +>ownerCollection : Symbol(Base.ownerCollection, Decl(complexClassRelationships.ts, 12, 12)) +>BaseCollection : Symbol(BaseCollection, Decl(complexClassRelationships.ts, 6, 1)) +>Base : Symbol(Base, Decl(complexClassRelationships.ts, 11, 1)) +} + +class Thing { +>Thing : Symbol(Thing, Decl(complexClassRelationships.ts, 14, 1)) + + public get Components(): ComponentCollection { return null } +>Components : Symbol(Thing.Components, Decl(complexClassRelationships.ts, 16, 13)) +>ComponentCollection : Symbol(ComponentCollection, Decl(complexClassRelationships.ts, 18, 1)) +} + +class ComponentCollection { +>ComponentCollection : Symbol(ComponentCollection, Decl(complexClassRelationships.ts, 18, 1)) +>T : Symbol(T, Decl(complexClassRelationships.ts, 20, 26)) + + private static sortComponents(p: Foo) { +>sortComponents : Symbol(ComponentCollection.sortComponents, Decl(complexClassRelationships.ts, 20, 30)) +>p : Symbol(p, Decl(complexClassRelationships.ts, 21, 34)) +>Foo : Symbol(Foo, Decl(complexClassRelationships.ts, 24, 1)) + + return p.prop1; +>p.prop1 : Symbol(Foo.prop1, Decl(complexClassRelationships.ts, 26, 11)) +>p : Symbol(p, Decl(complexClassRelationships.ts, 21, 34)) +>prop1 : Symbol(Foo.prop1, Decl(complexClassRelationships.ts, 26, 11)) + } +} + +class Foo { +>Foo : Symbol(Foo, Decl(complexClassRelationships.ts, 24, 1)) + + public get prop1() { +>prop1 : Symbol(Foo.prop1, Decl(complexClassRelationships.ts, 26, 11)) + + return new GenericType(this); +>GenericType : Symbol(GenericType, Decl(complexClassRelationships.ts, 36, 1)) +>this : Symbol(Foo, Decl(complexClassRelationships.ts, 24, 1)) + } + public populate() { +>populate : Symbol(Foo.populate, Decl(complexClassRelationships.ts, 29, 5)) + + this.prop2; +>this.prop2 : Symbol(Foo.prop2, Decl(complexClassRelationships.ts, 32, 5)) +>this : Symbol(Foo, Decl(complexClassRelationships.ts, 24, 1)) +>prop2 : Symbol(Foo.prop2, Decl(complexClassRelationships.ts, 32, 5)) + } + public get prop2(): BaseCollection { +>prop2 : Symbol(Foo.prop2, Decl(complexClassRelationships.ts, 32, 5)) +>BaseCollection : Symbol(BaseCollection, Decl(complexClassRelationships.ts, 6, 1)) +>Derived : Symbol(Derived, Decl(complexClassRelationships.ts, 0, 0)) + + return new BaseCollection(Derived.createEmpty); +>BaseCollection : Symbol(BaseCollection, Decl(complexClassRelationships.ts, 6, 1)) +>Derived : Symbol(Derived, Decl(complexClassRelationships.ts, 0, 0)) +>Derived.createEmpty : Symbol(Derived.createEmpty, Decl(complexClassRelationships.ts, 1, 28)) +>Derived : Symbol(Derived, Decl(complexClassRelationships.ts, 0, 0)) +>createEmpty : Symbol(Derived.createEmpty, Decl(complexClassRelationships.ts, 1, 28)) + } +} + +class GenericType { +>GenericType : Symbol(GenericType, Decl(complexClassRelationships.ts, 36, 1)) +>T : Symbol(T, Decl(complexClassRelationships.ts, 38, 18)) + + constructor(parent: FooBase) { } +>parent : Symbol(parent, Decl(complexClassRelationships.ts, 39, 16)) +>FooBase : Symbol(FooBase, Decl(complexClassRelationships.ts, 40, 1)) +} + +class FooBase { +>FooBase : Symbol(FooBase, Decl(complexClassRelationships.ts, 40, 1)) + + public populate() { +>populate : Symbol(FooBase.populate, Decl(complexClassRelationships.ts, 42, 15)) + + } +} diff --git a/tests/baselines/reference/complexClassRelationships(target=es5).types b/tests/baselines/reference/complexClassRelationships(target=es5).types new file mode 100644 index 0000000000000..215b0b3f3a87d --- /dev/null +++ b/tests/baselines/reference/complexClassRelationships(target=es5).types @@ -0,0 +1,153 @@ +//// [tests/cases/compiler/complexClassRelationships.ts] //// + +=== complexClassRelationships.ts === +// There should be no errors in this file +class Derived extends Base { +>Derived : Derived +> : ^^^^^^^ +>Base : Base +> : ^^^^ + + public static createEmpty(): Derived { +>createEmpty : () => Derived +> : ^^^^^^ + + var item = new Derived(); +>item : Derived +> : ^^^^^^^ +>new Derived() : Derived +> : ^^^^^^^ +>Derived : typeof Derived +> : ^^^^^^^^^^^^^^ + + return item; +>item : Derived +> : ^^^^^^^ + } +} +class BaseCollection { +>BaseCollection : BaseCollection +> : ^^^^^^^^^^^^^^^^^ + + constructor(f: () => T) { +>f : () => T +> : ^^^^^^ + + (item: Thing) => { return [item.Components]; }; +>(item: Thing) => { return [item.Components]; } : (item: Thing) => ComponentCollection[] +> : ^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>item : Thing +> : ^^^^^ +>[item.Components] : ComponentCollection[] +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^ +>item.Components : ComponentCollection +> : ^^^^^^^^^^^^^^^^^^^^^^^^ +>item : Thing +> : ^^^^^ +>Components : ComponentCollection +> : ^^^^^^^^^^^^^^^^^^^^^^^^ + } +} +class Base { +>Base : Base +> : ^^^^ + + ownerCollection: BaseCollection; +>ownerCollection : BaseCollection +> : ^^^^^^^^^^^^^^^^^^^^ +} + +class Thing { +>Thing : Thing +> : ^^^^^ + + public get Components(): ComponentCollection { return null } +>Components : ComponentCollection +> : ^^^^^^^^^^^^^^^^^^^^^^^^ +} + +class ComponentCollection { +>ComponentCollection : ComponentCollection +> : ^^^^^^^^^^^^^^^^^^^^^^ + + private static sortComponents(p: Foo) { +>sortComponents : (p: Foo) => GenericType +> : ^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^ +>p : Foo +> : ^^^ + + return p.prop1; +>p.prop1 : GenericType +> : ^^^^^^^^^^^^^^^^^^^ +>p : Foo +> : ^^^ +>prop1 : GenericType +> : ^^^^^^^^^^^^^^^^^^^ + } +} + +class Foo { +>Foo : Foo +> : ^^^ + + public get prop1() { +>prop1 : GenericType +> : ^^^^^^^^^^^^^^^^^^^ + + return new GenericType(this); +>new GenericType(this) : GenericType +> : ^^^^^^^^^^^^^^^^^^^ +>GenericType : typeof GenericType +> : ^^^^^^^^^^^^^^^^^^ +>this : this +> : ^^^^ + } + public populate() { +>populate : () => void +> : ^^^^^^^^^^ + + this.prop2; +>this.prop2 : BaseCollection +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>this : this +> : ^^^^ +>prop2 : BaseCollection +> : ^^^^^^^^^^^^^^^^^^^^^^^ + } + public get prop2(): BaseCollection { +>prop2 : BaseCollection +> : ^^^^^^^^^^^^^^^^^^^^^^^ + + return new BaseCollection(Derived.createEmpty); +>new BaseCollection(Derived.createEmpty) : BaseCollection +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>BaseCollection : typeof BaseCollection +> : ^^^^^^^^^^^^^^^^^^^^^ +>Derived.createEmpty : () => Derived +> : ^^^^^^ +>Derived : typeof Derived +> : ^^^^^^^^^^^^^^ +>createEmpty : () => Derived +> : ^^^^^^ + } +} + +class GenericType { +>GenericType : GenericType +> : ^^^^^^^^^^^^^^ + + constructor(parent: FooBase) { } +>parent : FooBase +> : ^^^^^^^ +} + +class FooBase { +>FooBase : FooBase +> : ^^^^^^^ + + public populate() { +>populate : () => void +> : ^^^^^^^^^^ + + } +} diff --git a/tests/baselines/reference/complicatedPrivacy.errors.txt b/tests/baselines/reference/complicatedPrivacy(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/complicatedPrivacy.errors.txt rename to tests/baselines/reference/complicatedPrivacy(target=es2015).errors.txt diff --git a/tests/baselines/reference/complicatedPrivacy(target=es2015).js b/tests/baselines/reference/complicatedPrivacy(target=es2015).js new file mode 100644 index 0000000000000..d83a150339f13 --- /dev/null +++ b/tests/baselines/reference/complicatedPrivacy(target=es2015).js @@ -0,0 +1,183 @@ +//// [tests/cases/compiler/complicatedPrivacy.ts] //// + +//// [complicatedPrivacy.ts] +namespace m1 { + export namespace m2 { + + + export function f1(c1: C1) { + } + export function f2(c2: C2) { + } + + export class C2 implements m3.i3 { + public get p1(arg) { + return new C1(); + } + + public set p1(arg1: C1) { + } + + public f55() { + return "Hello world"; + } + } + } + + export function f2(arg1: { x?: C1, y: number }) { + } + + export function f3(): { + (a: number) : C1; + } { + return null; + } + + export function f4(arg1: + { + [number]: C1; // Used to be indexer, now it is a computed property + }) { + } + + + export function f5(arg2: { + new (arg1: C1) : C1 + }) { + } + namespace m3 { + function f2(f1: C1) { + } + + export interface i3 { + f55(): string; + } + } + + class C1 { + } + + interface i { + x: number; + } + + export class C5 implements i { + public x: number; + } + + export var v2: C1[]; +} + +class C2 { +} + +namespace m2 { + export namespace m3 { + + export class c_pr implements mglo5.i5, mglo5.i6 { + f1() { + return "Hello"; + } + } + + namespace m4 { + class C { + } + namespace m5 { + + export namespace m6 { + function f1() { + return new C(); + } + } + } + } + + } +} + +namespace mglo5 { + export interface i5 { + f1(): string; + } + + interface i6 { + f6(): number; + } +} + + +//// [complicatedPrivacy.js] +var m1; +(function (m1) { + let m2; + (function (m2) { + function f1(c1) { + } + m2.f1 = f1; + function f2(c2) { + } + m2.f2 = f2; + class C2 { + get p1(arg) { + return new C1(); + } + set p1(arg1) { + } + f55() { + return "Hello world"; + } + } + m2.C2 = C2; + })(m2 = m1.m2 || (m1.m2 = {})); + function f2(arg1) { + } + m1.f2 = f2; + function f3() { + return null; + } + m1.f3 = f3; + function f4(arg1) { + } + m1.f4 = f4; + function f5(arg2) { + } + m1.f5 = f5; + let m3; + (function (m3) { + function f2(f1) { + } + })(m3 || (m3 = {})); + class C1 { + } + class C5 { + } + m1.C5 = C5; +})(m1 || (m1 = {})); +class C2 { +} +var m2; +(function (m2) { + let m3; + (function (m3) { + class c_pr { + f1() { + return "Hello"; + } + } + m3.c_pr = c_pr; + let m4; + (function (m4) { + class C { + } + let m5; + (function (m5) { + let m6; + (function (m6) { + function f1() { + return new C(); + } + })(m6 = m5.m6 || (m5.m6 = {})); + })(m5 || (m5 = {})); + })(m4 || (m4 = {})); + })(m3 = m2.m3 || (m2.m3 = {})); +})(m2 || (m2 = {})); diff --git a/tests/baselines/reference/complicatedPrivacy.symbols b/tests/baselines/reference/complicatedPrivacy(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/complicatedPrivacy.symbols rename to tests/baselines/reference/complicatedPrivacy(target=es2015).symbols diff --git a/tests/baselines/reference/complicatedPrivacy.types b/tests/baselines/reference/complicatedPrivacy(target=es2015).types similarity index 100% rename from tests/baselines/reference/complicatedPrivacy.types rename to tests/baselines/reference/complicatedPrivacy(target=es2015).types diff --git a/tests/baselines/reference/complicatedPrivacy(target=es5).errors.txt b/tests/baselines/reference/complicatedPrivacy(target=es5).errors.txt new file mode 100644 index 0000000000000..10fbd465c68bc --- /dev/null +++ b/tests/baselines/reference/complicatedPrivacy(target=es5).errors.txt @@ -0,0 +1,116 @@ +complicatedPrivacy.ts(11,24): error TS1054: A 'get' accessor cannot have parameters. +complicatedPrivacy.ts(35,6): error TS2693: 'number' only refers to a type, but is being used as a value here. +complicatedPrivacy.ts(73,55): error TS2694: Namespace 'mglo5' has no exported member 'i6'. + + +==== complicatedPrivacy.ts (3 errors) ==== + namespace m1 { + export namespace m2 { + + + export function f1(c1: C1) { + } + export function f2(c2: C2) { + } + + export class C2 implements m3.i3 { + public get p1(arg) { + ~~ +!!! error TS1054: A 'get' accessor cannot have parameters. + return new C1(); + } + + public set p1(arg1: C1) { + } + + public f55() { + return "Hello world"; + } + } + } + + export function f2(arg1: { x?: C1, y: number }) { + } + + export function f3(): { + (a: number) : C1; + } { + return null; + } + + export function f4(arg1: + { + [number]: C1; // Used to be indexer, now it is a computed property + ~~~~~~ +!!! error TS2693: 'number' only refers to a type, but is being used as a value here. + }) { + } + + + export function f5(arg2: { + new (arg1: C1) : C1 + }) { + } + namespace m3 { + function f2(f1: C1) { + } + + export interface i3 { + f55(): string; + } + } + + class C1 { + } + + interface i { + x: number; + } + + export class C5 implements i { + public x: number; + } + + export var v2: C1[]; + } + + class C2 { + } + + namespace m2 { + export namespace m3 { + + export class c_pr implements mglo5.i5, mglo5.i6 { + ~~ +!!! error TS2694: Namespace 'mglo5' has no exported member 'i6'. + f1() { + return "Hello"; + } + } + + namespace m4 { + class C { + } + namespace m5 { + + export namespace m6 { + function f1() { + return new C(); + } + } + } + } + + } + } + + namespace mglo5 { + export interface i5 { + f1(): string; + } + + interface i6 { + f6(): number; + } + } + \ No newline at end of file diff --git a/tests/baselines/reference/complicatedPrivacy.js b/tests/baselines/reference/complicatedPrivacy(target=es5).js similarity index 100% rename from tests/baselines/reference/complicatedPrivacy.js rename to tests/baselines/reference/complicatedPrivacy(target=es5).js diff --git a/tests/baselines/reference/complicatedPrivacy(target=es5).symbols b/tests/baselines/reference/complicatedPrivacy(target=es5).symbols new file mode 100644 index 0000000000000..01708f27d7aa6 --- /dev/null +++ b/tests/baselines/reference/complicatedPrivacy(target=es5).symbols @@ -0,0 +1,199 @@ +//// [tests/cases/compiler/complicatedPrivacy.ts] //// + +=== complicatedPrivacy.ts === +namespace m1 { +>m1 : Symbol(m1, Decl(complicatedPrivacy.ts, 0, 0)) + + export namespace m2 { +>m2 : Symbol(m2, Decl(complicatedPrivacy.ts, 0, 14)) + + + export function f1(c1: C1) { +>f1 : Symbol(f1, Decl(complicatedPrivacy.ts, 1, 25)) +>c1 : Symbol(c1, Decl(complicatedPrivacy.ts, 4, 27)) +>C1 : Symbol(C1, Decl(complicatedPrivacy.ts, 50, 5)) + } + export function f2(c2: C2) { +>f2 : Symbol(f2, Decl(complicatedPrivacy.ts, 5, 9)) +>c2 : Symbol(c2, Decl(complicatedPrivacy.ts, 6, 27)) +>C2 : Symbol(C2, Decl(complicatedPrivacy.ts, 7, 9)) + } + + export class C2 implements m3.i3 { +>C2 : Symbol(C2, Decl(complicatedPrivacy.ts, 7, 9)) +>m3.i3 : Symbol(m3.i3, Decl(complicatedPrivacy.ts, 45, 9)) +>m3 : Symbol(m3, Decl(complicatedPrivacy.ts, 42, 5)) +>i3 : Symbol(m3.i3, Decl(complicatedPrivacy.ts, 45, 9)) + + public get p1(arg) { +>p1 : Symbol(C2.p1, Decl(complicatedPrivacy.ts, 9, 42), Decl(complicatedPrivacy.ts, 12, 13)) +>arg : Symbol(arg, Decl(complicatedPrivacy.ts, 10, 26)) + + return new C1(); +>C1 : Symbol(C1, Decl(complicatedPrivacy.ts, 50, 5)) + } + + public set p1(arg1: C1) { +>p1 : Symbol(C2.p1, Decl(complicatedPrivacy.ts, 9, 42), Decl(complicatedPrivacy.ts, 12, 13)) +>arg1 : Symbol(arg1, Decl(complicatedPrivacy.ts, 14, 26)) +>C1 : Symbol(C1, Decl(complicatedPrivacy.ts, 50, 5)) + } + + public f55() { +>f55 : Symbol(C2.f55, Decl(complicatedPrivacy.ts, 15, 13)) + + return "Hello world"; + } + } + } + + export function f2(arg1: { x?: C1, y: number }) { +>f2 : Symbol(f2, Decl(complicatedPrivacy.ts, 21, 5)) +>arg1 : Symbol(arg1, Decl(complicatedPrivacy.ts, 23, 23)) +>x : Symbol(x, Decl(complicatedPrivacy.ts, 23, 30)) +>C1 : Symbol(C1, Decl(complicatedPrivacy.ts, 50, 5)) +>y : Symbol(y, Decl(complicatedPrivacy.ts, 23, 38)) + } + + export function f3(): { +>f3 : Symbol(f3, Decl(complicatedPrivacy.ts, 24, 5)) + + (a: number) : C1; +>a : Symbol(a, Decl(complicatedPrivacy.ts, 27, 9)) +>C1 : Symbol(C1, Decl(complicatedPrivacy.ts, 50, 5)) + + } { + return null; + } + + export function f4(arg1: +>f4 : Symbol(f4, Decl(complicatedPrivacy.ts, 30, 5)) +>arg1 : Symbol(arg1, Decl(complicatedPrivacy.ts, 32, 23)) + { + [number]: C1; // Used to be indexer, now it is a computed property +>[number] : Symbol([number], Decl(complicatedPrivacy.ts, 33, 5)) +>C1 : Symbol(C1, Decl(complicatedPrivacy.ts, 50, 5)) + + }) { + } + + + export function f5(arg2: { +>f5 : Symbol(f5, Decl(complicatedPrivacy.ts, 36, 5)) +>arg2 : Symbol(arg2, Decl(complicatedPrivacy.ts, 39, 23)) + + new (arg1: C1) : C1 +>arg1 : Symbol(arg1, Decl(complicatedPrivacy.ts, 40, 13)) +>C1 : Symbol(C1, Decl(complicatedPrivacy.ts, 50, 5)) +>C1 : Symbol(C1, Decl(complicatedPrivacy.ts, 50, 5)) + + }) { + } + namespace m3 { +>m3 : Symbol(m3, Decl(complicatedPrivacy.ts, 42, 5)) + + function f2(f1: C1) { +>f2 : Symbol(f2, Decl(complicatedPrivacy.ts, 43, 18)) +>f1 : Symbol(f1, Decl(complicatedPrivacy.ts, 44, 20)) +>C1 : Symbol(C1, Decl(complicatedPrivacy.ts, 50, 5)) + } + + export interface i3 { +>i3 : Symbol(i3, Decl(complicatedPrivacy.ts, 45, 9)) + + f55(): string; +>f55 : Symbol(i3.f55, Decl(complicatedPrivacy.ts, 47, 29)) + } + } + + class C1 { +>C1 : Symbol(C1, Decl(complicatedPrivacy.ts, 50, 5)) + } + + interface i { +>i : Symbol(i, Decl(complicatedPrivacy.ts, 53, 5)) + + x: number; +>x : Symbol(i.x, Decl(complicatedPrivacy.ts, 55, 17)) + } + + export class C5 implements i { +>C5 : Symbol(C5, Decl(complicatedPrivacy.ts, 57, 5)) +>i : Symbol(i, Decl(complicatedPrivacy.ts, 53, 5)) + + public x: number; +>x : Symbol(C5.x, Decl(complicatedPrivacy.ts, 59, 34)) + } + + export var v2: C1[]; +>v2 : Symbol(v2, Decl(complicatedPrivacy.ts, 63, 14)) +>C1 : Symbol(C1, Decl(complicatedPrivacy.ts, 50, 5)) +} + +class C2 { +>C2 : Symbol(C2, Decl(complicatedPrivacy.ts, 64, 1)) +} + +namespace m2 { +>m2 : Symbol(m2, Decl(complicatedPrivacy.ts, 67, 1)) + + export namespace m3 { +>m3 : Symbol(m3, Decl(complicatedPrivacy.ts, 69, 14)) + + export class c_pr implements mglo5.i5, mglo5.i6 { +>c_pr : Symbol(c_pr, Decl(complicatedPrivacy.ts, 70, 25)) +>mglo5.i5 : Symbol(mglo5.i5, Decl(complicatedPrivacy.ts, 94, 17)) +>mglo5 : Symbol(mglo5, Decl(complicatedPrivacy.ts, 92, 1)) +>i5 : Symbol(mglo5.i5, Decl(complicatedPrivacy.ts, 94, 17)) +>mglo5 : Symbol(mglo5, Decl(complicatedPrivacy.ts, 92, 1)) + + f1() { +>f1 : Symbol(c_pr.f1, Decl(complicatedPrivacy.ts, 72, 58)) + + return "Hello"; + } + } + + namespace m4 { +>m4 : Symbol(m4, Decl(complicatedPrivacy.ts, 76, 9)) + + class C { +>C : Symbol(C, Decl(complicatedPrivacy.ts, 78, 22)) + } + namespace m5 { +>m5 : Symbol(m5, Decl(complicatedPrivacy.ts, 80, 13)) + + export namespace m6 { +>m6 : Symbol(m6, Decl(complicatedPrivacy.ts, 81, 26)) + + function f1() { +>f1 : Symbol(f1, Decl(complicatedPrivacy.ts, 83, 37)) + + return new C(); +>C : Symbol(C, Decl(complicatedPrivacy.ts, 78, 22)) + } + } + } + } + + } +} + +namespace mglo5 { +>mglo5 : Symbol(mglo5, Decl(complicatedPrivacy.ts, 92, 1)) + + export interface i5 { +>i5 : Symbol(i5, Decl(complicatedPrivacy.ts, 94, 17)) + + f1(): string; +>f1 : Symbol(i5.f1, Decl(complicatedPrivacy.ts, 95, 25)) + } + + interface i6 { +>i6 : Symbol(i6, Decl(complicatedPrivacy.ts, 97, 5)) + + f6(): number; +>f6 : Symbol(i6.f6, Decl(complicatedPrivacy.ts, 99, 18)) + } +} + diff --git a/tests/baselines/reference/complicatedPrivacy(target=es5).types b/tests/baselines/reference/complicatedPrivacy(target=es5).types new file mode 100644 index 0000000000000..d82db62bcd99d --- /dev/null +++ b/tests/baselines/reference/complicatedPrivacy(target=es5).types @@ -0,0 +1,234 @@ +//// [tests/cases/compiler/complicatedPrivacy.ts] //// + +=== complicatedPrivacy.ts === +namespace m1 { +>m1 : typeof m1 +> : ^^^^^^^^^ + + export namespace m2 { +>m2 : typeof m2 +> : ^^^^^^^^^ + + + export function f1(c1: C1) { +>f1 : (c1: C1) => void +> : ^ ^^ ^^^^^^^^^ +>c1 : C1 +> : ^^ + } + export function f2(c2: C2) { +>f2 : (c2: C2) => void +> : ^ ^^ ^^^^^^^^^ +>c2 : C2 +> : ^^ + } + + export class C2 implements m3.i3 { +>C2 : C2 +> : ^^ +>m3 : typeof m3 +> : ^^^^^^^^^ + + public get p1(arg) { +>p1 : C1 +> : ^^ +>arg : any +> : ^^^ + + return new C1(); +>new C1() : C1 +> : ^^ +>C1 : typeof C1 +> : ^^^^^^^^^ + } + + public set p1(arg1: C1) { +>p1 : C1 +> : ^^ +>arg1 : C1 +> : ^^ + } + + public f55() { +>f55 : () => string +> : ^^^^^^^^^^^^ + + return "Hello world"; +>"Hello world" : "Hello world" +> : ^^^^^^^^^^^^^ + } + } + } + + export function f2(arg1: { x?: C1, y: number }) { +>f2 : (arg1: { x?: C1; y: number; }) => void +> : ^ ^^ ^^^^^^^^^ +>arg1 : { x?: C1; y: number; } +> : ^^^^^^ ^^^^^ ^^^ +>x : C1 +> : ^^ +>y : number +> : ^^^^^^ + } + + export function f3(): { +>f3 : () => { (a: number): C1; } +> : ^^^^^^ + + (a: number) : C1; +>a : number +> : ^^^^^^ + + } { + return null; + } + + export function f4(arg1: +>f4 : (arg1: { [number]: C1; }) => void +> : ^ ^^ ^^^^^^^^^ +>arg1 : { [x: number]: C1; } +> : ^^^^^^^^^^^^^^^^^^^^ + { + [number]: C1; // Used to be indexer, now it is a computed property +>[number] : C1 +> : ^^ +>number : any +> : ^^^ + + }) { + } + + + export function f5(arg2: { +>f5 : (arg2: { new (arg1: C1): C1; }) => void +> : ^ ^^ ^^^^^^^^^ +>arg2 : new (arg1: C1) => C1 +> : ^^^^^ ^^ ^^^^^ + + new (arg1: C1) : C1 +>arg1 : C1 +> : ^^ + + }) { + } + namespace m3 { +>m3 : typeof m3 +> : ^^^^^^^^^ + + function f2(f1: C1) { +>f2 : (f1: C1) => void +> : ^ ^^ ^^^^^^^^^ +>f1 : C1 +> : ^^ + } + + export interface i3 { + f55(): string; +>f55 : () => string +> : ^^^^^^ + } + } + + class C1 { +>C1 : C1 +> : ^^ + } + + interface i { + x: number; +>x : number +> : ^^^^^^ + } + + export class C5 implements i { +>C5 : C5 +> : ^^ + + public x: number; +>x : number +> : ^^^^^^ + } + + export var v2: C1[]; +>v2 : C1[] +> : ^^^^ +} + +class C2 { +>C2 : C2 +> : ^^ +} + +namespace m2 { +>m2 : typeof m2 +> : ^^^^^^^^^ + + export namespace m3 { +>m3 : typeof m3 +> : ^^^^^^^^^ + + export class c_pr implements mglo5.i5, mglo5.i6 { +>c_pr : c_pr +> : ^^^^ +>mglo5 : any +> : ^^^ +>mglo5 : any +> : ^^^ + + f1() { +>f1 : () => string +> : ^^^^^^^^^^^^ + + return "Hello"; +>"Hello" : "Hello" +> : ^^^^^^^ + } + } + + namespace m4 { +>m4 : typeof m4 +> : ^^^^^^^^^ + + class C { +>C : C +> : ^ + } + namespace m5 { +>m5 : typeof m5 +> : ^^^^^^^^^ + + export namespace m6 { +>m6 : typeof m6 +> : ^^^^^^^^^ + + function f1() { +>f1 : () => C +> : ^^^^^^^ + + return new C(); +>new C() : C +> : ^ +>C : typeof C +> : ^^^^^^^^ + } + } + } + } + + } +} + +namespace mglo5 { + export interface i5 { + f1(): string; +>f1 : () => string +> : ^^^^^^ + } + + interface i6 { + f6(): number; +>f6 : () => number +> : ^^^^^^ + } +} + diff --git a/tests/baselines/reference/computedPropertyNames10_ES5(target=es2015).js b/tests/baselines/reference/computedPropertyNames10_ES5(target=es2015).js new file mode 100644 index 0000000000000..2f67b0207abc1 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames10_ES5(target=es2015).js @@ -0,0 +1,37 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames10_ES5.ts] //// + +//// [computedPropertyNames10_ES5.ts] +var s: string; +var n: number; +var a: any; +var v = { + [s]() { }, + [n]() { }, + [s + s]() { }, + [s + n]() { }, + [+s]() { }, + [""]() { }, + [0]() { }, + [a]() { }, + [true]() { }, + [`hello bye`]() { }, + [`hello ${a} bye`]() { } +} + +//// [computedPropertyNames10_ES5.js] +var s; +var n; +var a; +var v = { + [s]() { }, + [n]() { }, + [s + s]() { }, + [s + n]() { }, + [+s]() { }, + [""]() { }, + [0]() { }, + [a]() { }, + [true]() { }, + [`hello bye`]() { }, + [`hello ${a} bye`]() { } +}; diff --git a/tests/baselines/reference/computedPropertyNames10_ES5.symbols b/tests/baselines/reference/computedPropertyNames10_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/computedPropertyNames10_ES5.symbols rename to tests/baselines/reference/computedPropertyNames10_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/computedPropertyNames10_ES5.types b/tests/baselines/reference/computedPropertyNames10_ES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/computedPropertyNames10_ES5.types rename to tests/baselines/reference/computedPropertyNames10_ES5(target=es2015).types diff --git a/tests/baselines/reference/computedPropertyNames10_ES5.js b/tests/baselines/reference/computedPropertyNames10_ES5(target=es5).js similarity index 100% rename from tests/baselines/reference/computedPropertyNames10_ES5.js rename to tests/baselines/reference/computedPropertyNames10_ES5(target=es5).js diff --git a/tests/baselines/reference/computedPropertyNames10_ES5(target=es5).symbols b/tests/baselines/reference/computedPropertyNames10_ES5(target=es5).symbols new file mode 100644 index 0000000000000..1390f3aadafb2 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames10_ES5(target=es5).symbols @@ -0,0 +1,60 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames10_ES5.ts] //// + +=== computedPropertyNames10_ES5.ts === +var s: string; +>s : Symbol(s, Decl(computedPropertyNames10_ES5.ts, 0, 3)) + +var n: number; +>n : Symbol(n, Decl(computedPropertyNames10_ES5.ts, 1, 3)) + +var a: any; +>a : Symbol(a, Decl(computedPropertyNames10_ES5.ts, 2, 3)) + +var v = { +>v : Symbol(v, Decl(computedPropertyNames10_ES5.ts, 3, 3)) + + [s]() { }, +>[s] : Symbol([s], Decl(computedPropertyNames10_ES5.ts, 3, 9)) +>s : Symbol(s, Decl(computedPropertyNames10_ES5.ts, 0, 3)) + + [n]() { }, +>[n] : Symbol([n], Decl(computedPropertyNames10_ES5.ts, 4, 14)) +>n : Symbol(n, Decl(computedPropertyNames10_ES5.ts, 1, 3)) + + [s + s]() { }, +>[s + s] : Symbol([s + s], Decl(computedPropertyNames10_ES5.ts, 5, 14)) +>s : Symbol(s, Decl(computedPropertyNames10_ES5.ts, 0, 3)) +>s : Symbol(s, Decl(computedPropertyNames10_ES5.ts, 0, 3)) + + [s + n]() { }, +>[s + n] : Symbol([s + n], Decl(computedPropertyNames10_ES5.ts, 6, 18)) +>s : Symbol(s, Decl(computedPropertyNames10_ES5.ts, 0, 3)) +>n : Symbol(n, Decl(computedPropertyNames10_ES5.ts, 1, 3)) + + [+s]() { }, +>[+s] : Symbol([+s], Decl(computedPropertyNames10_ES5.ts, 7, 18)) +>s : Symbol(s, Decl(computedPropertyNames10_ES5.ts, 0, 3)) + + [""]() { }, +>[""] : Symbol([""], Decl(computedPropertyNames10_ES5.ts, 8, 15)) +>"" : Symbol([""], Decl(computedPropertyNames10_ES5.ts, 8, 15)) + + [0]() { }, +>[0] : Symbol([0], Decl(computedPropertyNames10_ES5.ts, 9, 15)) +>0 : Symbol([0], Decl(computedPropertyNames10_ES5.ts, 9, 15)) + + [a]() { }, +>[a] : Symbol([a], Decl(computedPropertyNames10_ES5.ts, 10, 14)) +>a : Symbol(a, Decl(computedPropertyNames10_ES5.ts, 2, 3)) + + [true]() { }, +>[true] : Symbol([true], Decl(computedPropertyNames10_ES5.ts, 11, 14)) + + [`hello bye`]() { }, +>[`hello bye`] : Symbol([`hello bye`], Decl(computedPropertyNames10_ES5.ts, 12, 22)) +>`hello bye` : Symbol([`hello bye`], Decl(computedPropertyNames10_ES5.ts, 12, 22)) + + [`hello ${a} bye`]() { } +>[`hello ${a} bye`] : Symbol([`hello ${a} bye`], Decl(computedPropertyNames10_ES5.ts, 13, 24)) +>a : Symbol(a, Decl(computedPropertyNames10_ES5.ts, 2, 3)) +} diff --git a/tests/baselines/reference/computedPropertyNames10_ES5(target=es5).types b/tests/baselines/reference/computedPropertyNames10_ES5(target=es5).types new file mode 100644 index 0000000000000..20052a34138ab --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames10_ES5(target=es5).types @@ -0,0 +1,97 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames10_ES5.ts] //// + +=== computedPropertyNames10_ES5.ts === +var s: string; +>s : string +> : ^^^^^^ + +var n: number; +>n : number +> : ^^^^^^ + +var a: any; +>a : any + +var v = { +>v : { [x: string]: () => void; [x: number]: () => void; ""(): void; 0(): void; "hello bye"(): void; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ [s]() { }, [n]() { }, [s + s]() { }, [s + n]() { }, [+s]() { }, [""]() { }, [0]() { }, [a]() { }, [true]() { }, [`hello bye`]() { }, [`hello ${a} bye`]() { }} : { [x: string]: () => void; [x: number]: () => void; ""(): void; 0(): void; "hello bye"(): void; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + [s]() { }, +>[s] : () => void +> : ^^^^^^^^^^ +>s : string +> : ^^^^^^ + + [n]() { }, +>[n] : () => void +> : ^^^^^^^^^^ +>n : number +> : ^^^^^^ + + [s + s]() { }, +>[s + s] : () => void +> : ^^^^^^^^^^ +>s + s : string +> : ^^^^^^ +>s : string +> : ^^^^^^ +>s : string +> : ^^^^^^ + + [s + n]() { }, +>[s + n] : () => void +> : ^^^^^^^^^^ +>s + n : string +> : ^^^^^^ +>s : string +> : ^^^^^^ +>n : number +> : ^^^^^^ + + [+s]() { }, +>[+s] : () => void +> : ^^^^^^^^^^ +>+s : number +> : ^^^^^^ +>s : string +> : ^^^^^^ + + [""]() { }, +>[""] : () => void +> : ^^^^^^^^^^ +>"" : "" +> : ^^ + + [0]() { }, +>[0] : () => void +> : ^^^^^^^^^^ +>0 : 0 +> : ^ + + [a]() { }, +>[a] : () => void +> : ^^^^^^^^^^ +>a : any + + [true]() { }, +>[true] : () => void +> : ^^^^^^^^^^ +>true : any +>true : true +> : ^^^^ + + [`hello bye`]() { }, +>[`hello bye`] : () => void +> : ^^^^^^^^^^ +>`hello bye` : "hello bye" +> : ^^^^^^^^^^^ + + [`hello ${a} bye`]() { } +>[`hello ${a} bye`] : () => void +> : ^^^^^^^^^^ +>`hello ${a} bye` : string +> : ^^^^^^ +>a : any +} diff --git a/tests/baselines/reference/computedPropertyNames11_ES5(target=es2015).js b/tests/baselines/reference/computedPropertyNames11_ES5(target=es2015).js new file mode 100644 index 0000000000000..fb24a97a34b26 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames11_ES5(target=es2015).js @@ -0,0 +1,37 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames11_ES5.ts] //// + +//// [computedPropertyNames11_ES5.ts] +var s: string; +var n: number; +var a: any; +var v = { + get [s]() { return 0; }, + set [n](v) { }, + get [s + s]() { return 0; }, + set [s + n](v) { }, + get [+s]() { return 0; }, + set [""](v) { }, + get [0]() { return 0; }, + set [a](v) { }, + get [true]() { return 0; }, + set [`hello bye`](v) { }, + get [`hello ${a} bye`]() { return 0; } +} + +//// [computedPropertyNames11_ES5.js] +var s; +var n; +var a; +var v = { + get [s]() { return 0; }, + set [n](v) { }, + get [s + s]() { return 0; }, + set [s + n](v) { }, + get [+s]() { return 0; }, + set [""](v) { }, + get [0]() { return 0; }, + set [a](v) { }, + get [true]() { return 0; }, + set [`hello bye`](v) { }, + get [`hello ${a} bye`]() { return 0; } +}; diff --git a/tests/baselines/reference/computedPropertyNames11_ES5.symbols b/tests/baselines/reference/computedPropertyNames11_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/computedPropertyNames11_ES5.symbols rename to tests/baselines/reference/computedPropertyNames11_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/computedPropertyNames11_ES5.types b/tests/baselines/reference/computedPropertyNames11_ES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/computedPropertyNames11_ES5.types rename to tests/baselines/reference/computedPropertyNames11_ES5(target=es2015).types diff --git a/tests/baselines/reference/computedPropertyNames11_ES5.js b/tests/baselines/reference/computedPropertyNames11_ES5(target=es5).js similarity index 100% rename from tests/baselines/reference/computedPropertyNames11_ES5.js rename to tests/baselines/reference/computedPropertyNames11_ES5(target=es5).js diff --git a/tests/baselines/reference/computedPropertyNames11_ES5(target=es5).symbols b/tests/baselines/reference/computedPropertyNames11_ES5(target=es5).symbols new file mode 100644 index 0000000000000..317c17c0a210f --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames11_ES5(target=es5).symbols @@ -0,0 +1,65 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames11_ES5.ts] //// + +=== computedPropertyNames11_ES5.ts === +var s: string; +>s : Symbol(s, Decl(computedPropertyNames11_ES5.ts, 0, 3)) + +var n: number; +>n : Symbol(n, Decl(computedPropertyNames11_ES5.ts, 1, 3)) + +var a: any; +>a : Symbol(a, Decl(computedPropertyNames11_ES5.ts, 2, 3)) + +var v = { +>v : Symbol(v, Decl(computedPropertyNames11_ES5.ts, 3, 3)) + + get [s]() { return 0; }, +>[s] : Symbol([s], Decl(computedPropertyNames11_ES5.ts, 3, 9)) +>s : Symbol(s, Decl(computedPropertyNames11_ES5.ts, 0, 3)) + + set [n](v) { }, +>[n] : Symbol([n], Decl(computedPropertyNames11_ES5.ts, 4, 28)) +>n : Symbol(n, Decl(computedPropertyNames11_ES5.ts, 1, 3)) +>v : Symbol(v, Decl(computedPropertyNames11_ES5.ts, 5, 12)) + + get [s + s]() { return 0; }, +>[s + s] : Symbol([s + s], Decl(computedPropertyNames11_ES5.ts, 5, 19)) +>s : Symbol(s, Decl(computedPropertyNames11_ES5.ts, 0, 3)) +>s : Symbol(s, Decl(computedPropertyNames11_ES5.ts, 0, 3)) + + set [s + n](v) { }, +>[s + n] : Symbol([s + n], Decl(computedPropertyNames11_ES5.ts, 6, 32)) +>s : Symbol(s, Decl(computedPropertyNames11_ES5.ts, 0, 3)) +>n : Symbol(n, Decl(computedPropertyNames11_ES5.ts, 1, 3)) +>v : Symbol(v, Decl(computedPropertyNames11_ES5.ts, 7, 16)) + + get [+s]() { return 0; }, +>[+s] : Symbol([+s], Decl(computedPropertyNames11_ES5.ts, 7, 23)) +>s : Symbol(s, Decl(computedPropertyNames11_ES5.ts, 0, 3)) + + set [""](v) { }, +>[""] : Symbol([""], Decl(computedPropertyNames11_ES5.ts, 8, 29)) +>"" : Symbol([""], Decl(computedPropertyNames11_ES5.ts, 8, 29)) +>v : Symbol(v, Decl(computedPropertyNames11_ES5.ts, 9, 13)) + + get [0]() { return 0; }, +>[0] : Symbol([0], Decl(computedPropertyNames11_ES5.ts, 9, 20)) +>0 : Symbol([0], Decl(computedPropertyNames11_ES5.ts, 9, 20)) + + set [a](v) { }, +>[a] : Symbol([a], Decl(computedPropertyNames11_ES5.ts, 10, 28)) +>a : Symbol(a, Decl(computedPropertyNames11_ES5.ts, 2, 3)) +>v : Symbol(v, Decl(computedPropertyNames11_ES5.ts, 11, 12)) + + get [true]() { return 0; }, +>[true] : Symbol([true], Decl(computedPropertyNames11_ES5.ts, 11, 19)) + + set [`hello bye`](v) { }, +>[`hello bye`] : Symbol([`hello bye`], Decl(computedPropertyNames11_ES5.ts, 12, 36)) +>`hello bye` : Symbol([`hello bye`], Decl(computedPropertyNames11_ES5.ts, 12, 36)) +>v : Symbol(v, Decl(computedPropertyNames11_ES5.ts, 13, 22)) + + get [`hello ${a} bye`]() { return 0; } +>[`hello ${a} bye`] : Symbol([`hello ${a} bye`], Decl(computedPropertyNames11_ES5.ts, 13, 29)) +>a : Symbol(a, Decl(computedPropertyNames11_ES5.ts, 2, 3)) +} diff --git a/tests/baselines/reference/computedPropertyNames11_ES5(target=es5).types b/tests/baselines/reference/computedPropertyNames11_ES5(target=es5).types new file mode 100644 index 0000000000000..58cc22264ed2c --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames11_ES5(target=es5).types @@ -0,0 +1,109 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames11_ES5.ts] //// + +=== computedPropertyNames11_ES5.ts === +var s: string; +>s : string +> : ^^^^^^ + +var n: number; +>n : number +> : ^^^^^^ + +var a: any; +>a : any + +var v = { +>v : { [x: string]: any; [x: number]: any; "": any; readonly 0: number; "hello bye": any; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ get [s]() { return 0; }, set [n](v) { }, get [s + s]() { return 0; }, set [s + n](v) { }, get [+s]() { return 0; }, set [""](v) { }, get [0]() { return 0; }, set [a](v) { }, get [true]() { return 0; }, set [`hello bye`](v) { }, get [`hello ${a} bye`]() { return 0; }} : { [x: string]: any; [x: number]: any; "": any; readonly 0: number; "hello bye": any; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + get [s]() { return 0; }, +>[s] : number +> : ^^^^^^ +>s : string +> : ^^^^^^ +>0 : 0 +> : ^ + + set [n](v) { }, +>[n] : any +>n : number +> : ^^^^^^ +>v : any + + get [s + s]() { return 0; }, +>[s + s] : number +> : ^^^^^^ +>s + s : string +> : ^^^^^^ +>s : string +> : ^^^^^^ +>s : string +> : ^^^^^^ +>0 : 0 +> : ^ + + set [s + n](v) { }, +>[s + n] : any +>s + n : string +> : ^^^^^^ +>s : string +> : ^^^^^^ +>n : number +> : ^^^^^^ +>v : any + + get [+s]() { return 0; }, +>[+s] : number +> : ^^^^^^ +>+s : number +> : ^^^^^^ +>s : string +> : ^^^^^^ +>0 : 0 +> : ^ + + set [""](v) { }, +>[""] : any +>"" : "" +> : ^^ +>v : any + + get [0]() { return 0; }, +>[0] : number +> : ^^^^^^ +>0 : 0 +> : ^ +>0 : 0 +> : ^ + + set [a](v) { }, +>[a] : any +>a : any +>v : any + + get [true]() { return 0; }, +>[true] : number +> : ^^^^^^ +>true : any +>true : true +> : ^^^^ +>0 : 0 +> : ^ + + set [`hello bye`](v) { }, +>[`hello bye`] : any +>`hello bye` : "hello bye" +> : ^^^^^^^^^^^ +>v : any + + get [`hello ${a} bye`]() { return 0; } +>[`hello ${a} bye`] : number +> : ^^^^^^ +>`hello ${a} bye` : string +> : ^^^^^^ +>a : any +>0 : 0 +> : ^ +} diff --git a/tests/baselines/reference/computedPropertyNames12_ES5.errors.txt b/tests/baselines/reference/computedPropertyNames12_ES5(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/computedPropertyNames12_ES5.errors.txt rename to tests/baselines/reference/computedPropertyNames12_ES5(target=es2015).errors.txt diff --git a/tests/baselines/reference/computedPropertyNames12_ES5(target=es2015).js b/tests/baselines/reference/computedPropertyNames12_ES5(target=es2015).js new file mode 100644 index 0000000000000..487f1cc7d7a6a --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames12_ES5(target=es2015).js @@ -0,0 +1,34 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames12_ES5.ts] //// + +//// [computedPropertyNames12_ES5.ts] +var s: string; +var n: number; +var a: any; +class C { + [s]: number; + [n] = n; + static [s + s]: string; + [s + n] = 2; + [+s]: typeof s; + static [""]: number; + [0]: number; + [a]: number; + static [true]: number; + [`hello bye`] = 0; + static [`hello ${a} bye`] = 0 +} + +//// [computedPropertyNames12_ES5.js] +var _a, _b, _c; +var s; +var n; +var a; +class C { + constructor() { + this[_a] = n; + this[_b] = 2; + this[`hello bye`] = 0; + } +} +_a = n, s + s, _b = s + n, +s, _c = `hello ${a} bye`; +C[_c] = 0; diff --git a/tests/baselines/reference/computedPropertyNames12_ES5.symbols b/tests/baselines/reference/computedPropertyNames12_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/computedPropertyNames12_ES5.symbols rename to tests/baselines/reference/computedPropertyNames12_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/computedPropertyNames12_ES5.types b/tests/baselines/reference/computedPropertyNames12_ES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/computedPropertyNames12_ES5.types rename to tests/baselines/reference/computedPropertyNames12_ES5(target=es2015).types diff --git a/tests/baselines/reference/computedPropertyNames12_ES5(target=es5).errors.txt b/tests/baselines/reference/computedPropertyNames12_ES5(target=es5).errors.txt new file mode 100644 index 0000000000000..7803fd8078d63 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames12_ES5(target=es5).errors.txt @@ -0,0 +1,40 @@ +computedPropertyNames12_ES5.ts(7,12): error TS1166: A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type. +computedPropertyNames12_ES5.ts(8,5): error TS1166: A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type. +computedPropertyNames12_ES5.ts(9,5): error TS1166: A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type. +computedPropertyNames12_ES5.ts(9,5): error TS2411: Property '[+s]' of type 'string' is not assignable to 'number' index type 'number'. +computedPropertyNames12_ES5.ts(9,5): error TS2411: Property '[+s]' of type 'string' is not assignable to 'string' index type 'number'. +computedPropertyNames12_ES5.ts(13,12): error TS1166: A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type. +computedPropertyNames12_ES5.ts(15,12): error TS1166: A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type. + + +==== computedPropertyNames12_ES5.ts (7 errors) ==== + var s: string; + var n: number; + var a: any; + class C { + [s]: number; + [n] = n; + static [s + s]: string; + ~~~~~~~ +!!! error TS1166: A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type. + [s + n] = 2; + ~~~~~~~ +!!! error TS1166: A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type. + [+s]: typeof s; + ~~~~ +!!! error TS1166: A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type. + ~~~~ +!!! error TS2411: Property '[+s]' of type 'string' is not assignable to 'number' index type 'number'. + ~~~~ +!!! error TS2411: Property '[+s]' of type 'string' is not assignable to 'string' index type 'number'. + static [""]: number; + [0]: number; + [a]: number; + static [true]: number; + ~~~~~~~~~~~ +!!! error TS1166: A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type. + [`hello bye`] = 0; + static [`hello ${a} bye`] = 0 + ~~~~~~~~~~~~~~~~~~ +!!! error TS1166: A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type. + } \ No newline at end of file diff --git a/tests/baselines/reference/computedPropertyNames12_ES5.js b/tests/baselines/reference/computedPropertyNames12_ES5(target=es5).js similarity index 100% rename from tests/baselines/reference/computedPropertyNames12_ES5.js rename to tests/baselines/reference/computedPropertyNames12_ES5(target=es5).js diff --git a/tests/baselines/reference/computedPropertyNames12_ES5(target=es5).symbols b/tests/baselines/reference/computedPropertyNames12_ES5(target=es5).symbols new file mode 100644 index 0000000000000..65d330cd9fde8 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames12_ES5(target=es5).symbols @@ -0,0 +1,62 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames12_ES5.ts] //// + +=== computedPropertyNames12_ES5.ts === +var s: string; +>s : Symbol(s, Decl(computedPropertyNames12_ES5.ts, 0, 3)) + +var n: number; +>n : Symbol(n, Decl(computedPropertyNames12_ES5.ts, 1, 3)) + +var a: any; +>a : Symbol(a, Decl(computedPropertyNames12_ES5.ts, 2, 3)) + +class C { +>C : Symbol(C, Decl(computedPropertyNames12_ES5.ts, 2, 11)) + + [s]: number; +>[s] : Symbol(C[s], Decl(computedPropertyNames12_ES5.ts, 3, 9)) +>s : Symbol(s, Decl(computedPropertyNames12_ES5.ts, 0, 3)) + + [n] = n; +>[n] : Symbol(C[n], Decl(computedPropertyNames12_ES5.ts, 4, 16)) +>n : Symbol(n, Decl(computedPropertyNames12_ES5.ts, 1, 3)) +>n : Symbol(n, Decl(computedPropertyNames12_ES5.ts, 1, 3)) + + static [s + s]: string; +>[s + s] : Symbol(C[s + s], Decl(computedPropertyNames12_ES5.ts, 5, 12)) +>s : Symbol(s, Decl(computedPropertyNames12_ES5.ts, 0, 3)) +>s : Symbol(s, Decl(computedPropertyNames12_ES5.ts, 0, 3)) + + [s + n] = 2; +>[s + n] : Symbol(C[s + n], Decl(computedPropertyNames12_ES5.ts, 6, 27)) +>s : Symbol(s, Decl(computedPropertyNames12_ES5.ts, 0, 3)) +>n : Symbol(n, Decl(computedPropertyNames12_ES5.ts, 1, 3)) + + [+s]: typeof s; +>[+s] : Symbol(C[+s], Decl(computedPropertyNames12_ES5.ts, 7, 16)) +>s : Symbol(s, Decl(computedPropertyNames12_ES5.ts, 0, 3)) +>s : Symbol(s, Decl(computedPropertyNames12_ES5.ts, 0, 3)) + + static [""]: number; +>[""] : Symbol(C[""], Decl(computedPropertyNames12_ES5.ts, 8, 19)) +>"" : Symbol(C[""], Decl(computedPropertyNames12_ES5.ts, 8, 19)) + + [0]: number; +>[0] : Symbol(C[0], Decl(computedPropertyNames12_ES5.ts, 9, 24)) +>0 : Symbol(C[0], Decl(computedPropertyNames12_ES5.ts, 9, 24)) + + [a]: number; +>[a] : Symbol(C[a], Decl(computedPropertyNames12_ES5.ts, 10, 16)) +>a : Symbol(a, Decl(computedPropertyNames12_ES5.ts, 2, 3)) + + static [true]: number; +>[true] : Symbol(C[true], Decl(computedPropertyNames12_ES5.ts, 11, 16)) + + [`hello bye`] = 0; +>[`hello bye`] : Symbol(C[`hello bye`], Decl(computedPropertyNames12_ES5.ts, 12, 31)) +>`hello bye` : Symbol(C[`hello bye`], Decl(computedPropertyNames12_ES5.ts, 12, 31)) + + static [`hello ${a} bye`] = 0 +>[`hello ${a} bye`] : Symbol(C[`hello ${a} bye`], Decl(computedPropertyNames12_ES5.ts, 13, 22)) +>a : Symbol(a, Decl(computedPropertyNames12_ES5.ts, 2, 3)) +} diff --git a/tests/baselines/reference/computedPropertyNames12_ES5(target=es5).types b/tests/baselines/reference/computedPropertyNames12_ES5(target=es5).types new file mode 100644 index 0000000000000..334d1383b65b7 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames12_ES5(target=es5).types @@ -0,0 +1,109 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames12_ES5.ts] //// + +=== computedPropertyNames12_ES5.ts === +var s: string; +>s : string +> : ^^^^^^ + +var n: number; +>n : number +> : ^^^^^^ + +var a: any; +>a : any +> : ^^^ + +class C { +>C : C +> : ^ + + [s]: number; +>[s] : number +> : ^^^^^^ +>s : string +> : ^^^^^^ + + [n] = n; +>[n] : number +> : ^^^^^^ +>n : number +> : ^^^^^^ +>n : number +> : ^^^^^^ + + static [s + s]: string; +>[s + s] : string +> : ^^^^^^ +>s + s : string +> : ^^^^^^ +>s : string +> : ^^^^^^ +>s : string +> : ^^^^^^ + + [s + n] = 2; +>[s + n] : number +> : ^^^^^^ +>s + n : string +> : ^^^^^^ +>s : string +> : ^^^^^^ +>n : number +> : ^^^^^^ +>2 : 2 +> : ^ + + [+s]: typeof s; +>[+s] : string +> : ^^^^^^ +>+s : number +> : ^^^^^^ +>s : string +> : ^^^^^^ +>s : string +> : ^^^^^^ + + static [""]: number; +>[""] : number +> : ^^^^^^ +>"" : "" +> : ^^ + + [0]: number; +>[0] : number +> : ^^^^^^ +>0 : 0 +> : ^ + + [a]: number; +>[a] : number +> : ^^^^^^ +>a : any +> : ^^^ + + static [true]: number; +>[true] : number +> : ^^^^^^ +>true : any +> : ^^^ +>true : true +> : ^^^^ + + [`hello bye`] = 0; +>[`hello bye`] : number +> : ^^^^^^ +>`hello bye` : "hello bye" +> : ^^^^^^^^^^^ +>0 : 0 +> : ^ + + static [`hello ${a} bye`] = 0 +>[`hello ${a} bye`] : number +> : ^^^^^^ +>`hello ${a} bye` : string +> : ^^^^^^ +>a : any +> : ^^^ +>0 : 0 +> : ^ +} diff --git a/tests/baselines/reference/computedPropertyNames13_ES5(target=es2015).js b/tests/baselines/reference/computedPropertyNames13_ES5(target=es2015).js new file mode 100644 index 0000000000000..92f8fdbf6b032 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames13_ES5(target=es2015).js @@ -0,0 +1,37 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames13_ES5.ts] //// + +//// [computedPropertyNames13_ES5.ts] +var s: string; +var n: number; +var a: any; +class C { + [s]() {} + [n]() { } + static [s + s]() { } + [s + n]() { } + [+s]() { } + static [""]() { } + [0]() { } + [a]() { } + static [true]() { } + [`hello bye`]() { } + static [`hello ${a} bye`]() { } +} + +//// [computedPropertyNames13_ES5.js] +var s; +var n; +var a; +class C { + [s]() { } + [n]() { } + static [s + s]() { } + [s + n]() { } + [+s]() { } + static [""]() { } + [0]() { } + [a]() { } + static [true]() { } + [`hello bye`]() { } + static [`hello ${a} bye`]() { } +} diff --git a/tests/baselines/reference/computedPropertyNames13_ES5.symbols b/tests/baselines/reference/computedPropertyNames13_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/computedPropertyNames13_ES5.symbols rename to tests/baselines/reference/computedPropertyNames13_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/computedPropertyNames13_ES5.types b/tests/baselines/reference/computedPropertyNames13_ES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/computedPropertyNames13_ES5.types rename to tests/baselines/reference/computedPropertyNames13_ES5(target=es2015).types diff --git a/tests/baselines/reference/computedPropertyNames13_ES5.js b/tests/baselines/reference/computedPropertyNames13_ES5(target=es5).js similarity index 100% rename from tests/baselines/reference/computedPropertyNames13_ES5.js rename to tests/baselines/reference/computedPropertyNames13_ES5(target=es5).js diff --git a/tests/baselines/reference/computedPropertyNames13_ES5(target=es5).symbols b/tests/baselines/reference/computedPropertyNames13_ES5(target=es5).symbols new file mode 100644 index 0000000000000..41a079e0c0797 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames13_ES5(target=es5).symbols @@ -0,0 +1,60 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames13_ES5.ts] //// + +=== computedPropertyNames13_ES5.ts === +var s: string; +>s : Symbol(s, Decl(computedPropertyNames13_ES5.ts, 0, 3)) + +var n: number; +>n : Symbol(n, Decl(computedPropertyNames13_ES5.ts, 1, 3)) + +var a: any; +>a : Symbol(a, Decl(computedPropertyNames13_ES5.ts, 2, 3)) + +class C { +>C : Symbol(C, Decl(computedPropertyNames13_ES5.ts, 2, 11)) + + [s]() {} +>[s] : Symbol(C[s], Decl(computedPropertyNames13_ES5.ts, 3, 9)) +>s : Symbol(s, Decl(computedPropertyNames13_ES5.ts, 0, 3)) + + [n]() { } +>[n] : Symbol(C[n], Decl(computedPropertyNames13_ES5.ts, 4, 12)) +>n : Symbol(n, Decl(computedPropertyNames13_ES5.ts, 1, 3)) + + static [s + s]() { } +>[s + s] : Symbol(C[s + s], Decl(computedPropertyNames13_ES5.ts, 5, 13)) +>s : Symbol(s, Decl(computedPropertyNames13_ES5.ts, 0, 3)) +>s : Symbol(s, Decl(computedPropertyNames13_ES5.ts, 0, 3)) + + [s + n]() { } +>[s + n] : Symbol(C[s + n], Decl(computedPropertyNames13_ES5.ts, 6, 24)) +>s : Symbol(s, Decl(computedPropertyNames13_ES5.ts, 0, 3)) +>n : Symbol(n, Decl(computedPropertyNames13_ES5.ts, 1, 3)) + + [+s]() { } +>[+s] : Symbol(C[+s], Decl(computedPropertyNames13_ES5.ts, 7, 17)) +>s : Symbol(s, Decl(computedPropertyNames13_ES5.ts, 0, 3)) + + static [""]() { } +>[""] : Symbol(C[""], Decl(computedPropertyNames13_ES5.ts, 8, 14)) +>"" : Symbol(C[""], Decl(computedPropertyNames13_ES5.ts, 8, 14)) + + [0]() { } +>[0] : Symbol(C[0], Decl(computedPropertyNames13_ES5.ts, 9, 21)) +>0 : Symbol(C[0], Decl(computedPropertyNames13_ES5.ts, 9, 21)) + + [a]() { } +>[a] : Symbol(C[a], Decl(computedPropertyNames13_ES5.ts, 10, 13)) +>a : Symbol(a, Decl(computedPropertyNames13_ES5.ts, 2, 3)) + + static [true]() { } +>[true] : Symbol(C[true], Decl(computedPropertyNames13_ES5.ts, 11, 13)) + + [`hello bye`]() { } +>[`hello bye`] : Symbol(C[`hello bye`], Decl(computedPropertyNames13_ES5.ts, 12, 28)) +>`hello bye` : Symbol(C[`hello bye`], Decl(computedPropertyNames13_ES5.ts, 12, 28)) + + static [`hello ${a} bye`]() { } +>[`hello ${a} bye`] : Symbol(C[`hello ${a} bye`], Decl(computedPropertyNames13_ES5.ts, 13, 23)) +>a : Symbol(a, Decl(computedPropertyNames13_ES5.ts, 2, 3)) +} diff --git a/tests/baselines/reference/computedPropertyNames13_ES5(target=es5).types b/tests/baselines/reference/computedPropertyNames13_ES5(target=es5).types new file mode 100644 index 0000000000000..d152acabf40e8 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames13_ES5(target=es5).types @@ -0,0 +1,95 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames13_ES5.ts] //// + +=== computedPropertyNames13_ES5.ts === +var s: string; +>s : string +> : ^^^^^^ + +var n: number; +>n : number +> : ^^^^^^ + +var a: any; +>a : any + +class C { +>C : C +> : ^ + + [s]() {} +>[s] : () => void +> : ^^^^^^^^^^ +>s : string +> : ^^^^^^ + + [n]() { } +>[n] : () => void +> : ^^^^^^^^^^ +>n : number +> : ^^^^^^ + + static [s + s]() { } +>[s + s] : () => void +> : ^^^^^^^^^^ +>s + s : string +> : ^^^^^^ +>s : string +> : ^^^^^^ +>s : string +> : ^^^^^^ + + [s + n]() { } +>[s + n] : () => void +> : ^^^^^^^^^^ +>s + n : string +> : ^^^^^^ +>s : string +> : ^^^^^^ +>n : number +> : ^^^^^^ + + [+s]() { } +>[+s] : () => void +> : ^^^^^^^^^^ +>+s : number +> : ^^^^^^ +>s : string +> : ^^^^^^ + + static [""]() { } +>[""] : () => void +> : ^^^^^^^^^^ +>"" : "" +> : ^^ + + [0]() { } +>[0] : () => void +> : ^^^^^^^^^^ +>0 : 0 +> : ^ + + [a]() { } +>[a] : () => void +> : ^^^^^^^^^^ +>a : any + + static [true]() { } +>[true] : () => void +> : ^^^^^^^^^^ +>true : any +>true : true +> : ^^^^ + + [`hello bye`]() { } +>[`hello bye`] : () => void +> : ^^^^^^^^^^ +>`hello bye` : "hello bye" +> : ^^^^^^^^^^^ + + static [`hello ${a} bye`]() { } +>[`hello ${a} bye`] : () => void +> : ^^^^^^^^^^ +>`hello ${a} bye` : string +> : ^^^^^^ +>a : any +} diff --git a/tests/baselines/reference/computedPropertyNames14_ES5.errors.txt b/tests/baselines/reference/computedPropertyNames14_ES5(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/computedPropertyNames14_ES5.errors.txt rename to tests/baselines/reference/computedPropertyNames14_ES5(target=es2015).errors.txt diff --git a/tests/baselines/reference/computedPropertyNames14_ES5(target=es2015).js b/tests/baselines/reference/computedPropertyNames14_ES5(target=es2015).js new file mode 100644 index 0000000000000..86bdcb25d7efd --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames14_ES5(target=es2015).js @@ -0,0 +1,23 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames14_ES5.ts] //// + +//// [computedPropertyNames14_ES5.ts] +var b: boolean; +class C { + [b]() {} + static [true]() { } + [[]]() { } + static [{}]() { } + [undefined]() { } + static [null]() { } +} + +//// [computedPropertyNames14_ES5.js] +var b; +class C { + [b]() { } + static [true]() { } + [[]]() { } + static [{}]() { } + [undefined]() { } + static [null]() { } +} diff --git a/tests/baselines/reference/computedPropertyNames14_ES5.symbols b/tests/baselines/reference/computedPropertyNames14_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/computedPropertyNames14_ES5.symbols rename to tests/baselines/reference/computedPropertyNames14_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/computedPropertyNames14_ES5.types b/tests/baselines/reference/computedPropertyNames14_ES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/computedPropertyNames14_ES5.types rename to tests/baselines/reference/computedPropertyNames14_ES5(target=es2015).types diff --git a/tests/baselines/reference/computedPropertyNames14_ES5(target=es5).errors.txt b/tests/baselines/reference/computedPropertyNames14_ES5(target=es5).errors.txt new file mode 100644 index 0000000000000..b27347755a22c --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames14_ES5(target=es5).errors.txt @@ -0,0 +1,30 @@ +computedPropertyNames14_ES5.ts(3,5): error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'. +computedPropertyNames14_ES5.ts(4,12): error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'. +computedPropertyNames14_ES5.ts(5,5): error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'. +computedPropertyNames14_ES5.ts(6,12): error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'. +computedPropertyNames14_ES5.ts(7,5): error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'. +computedPropertyNames14_ES5.ts(8,12): error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'. + + +==== computedPropertyNames14_ES5.ts (6 errors) ==== + var b: boolean; + class C { + [b]() {} + ~~~ +!!! error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'. + static [true]() { } + ~~~~~~ +!!! error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'. + [[]]() { } + ~~~~ +!!! error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'. + static [{}]() { } + ~~~~ +!!! error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'. + [undefined]() { } + ~~~~~~~~~~~ +!!! error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'. + static [null]() { } + ~~~~~~ +!!! error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'. + } \ No newline at end of file diff --git a/tests/baselines/reference/computedPropertyNames14_ES5.js b/tests/baselines/reference/computedPropertyNames14_ES5(target=es5).js similarity index 100% rename from tests/baselines/reference/computedPropertyNames14_ES5.js rename to tests/baselines/reference/computedPropertyNames14_ES5(target=es5).js diff --git a/tests/baselines/reference/computedPropertyNames14_ES5(target=es5).symbols b/tests/baselines/reference/computedPropertyNames14_ES5(target=es5).symbols new file mode 100644 index 0000000000000..2ca7c3ec67fb1 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames14_ES5(target=es5).symbols @@ -0,0 +1,29 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames14_ES5.ts] //// + +=== computedPropertyNames14_ES5.ts === +var b: boolean; +>b : Symbol(b, Decl(computedPropertyNames14_ES5.ts, 0, 3)) + +class C { +>C : Symbol(C, Decl(computedPropertyNames14_ES5.ts, 0, 15)) + + [b]() {} +>[b] : Symbol(C[b], Decl(computedPropertyNames14_ES5.ts, 1, 9)) +>b : Symbol(b, Decl(computedPropertyNames14_ES5.ts, 0, 3)) + + static [true]() { } +>[true] : Symbol(C[true], Decl(computedPropertyNames14_ES5.ts, 2, 12)) + + [[]]() { } +>[[]] : Symbol(C[[]], Decl(computedPropertyNames14_ES5.ts, 3, 23)) + + static [{}]() { } +>[{}] : Symbol(C[{}], Decl(computedPropertyNames14_ES5.ts, 4, 14)) + + [undefined]() { } +>[undefined] : Symbol(C[undefined], Decl(computedPropertyNames14_ES5.ts, 5, 21)) +>undefined : Symbol(undefined) + + static [null]() { } +>[null] : Symbol(C[null], Decl(computedPropertyNames14_ES5.ts, 6, 21)) +} diff --git a/tests/baselines/reference/computedPropertyNames14_ES5(target=es5).types b/tests/baselines/reference/computedPropertyNames14_ES5(target=es5).types new file mode 100644 index 0000000000000..933177e0c7d96 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames14_ES5(target=es5).types @@ -0,0 +1,45 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames14_ES5.ts] //// + +=== computedPropertyNames14_ES5.ts === +var b: boolean; +>b : boolean +> : ^^^^^^^ + +class C { +>C : C +> : ^ + + [b]() {} +>[b] : () => void +> : ^^^^^^^^^^ +>b : boolean +> : ^^^^^^^ + + static [true]() { } +>[true] : () => void +> : ^^^^^^^^^^ +>true : true +> : ^^^^ + + [[]]() { } +>[[]] : () => void +> : ^^^^^^^^^^ +>[] : undefined[] +> : ^^^^^^^^^^^ + + static [{}]() { } +>[{}] : () => void +> : ^^^^^^^^^^ +>{} : {} +> : ^^ + + [undefined]() { } +>[undefined] : () => void +> : ^^^^^^^^^^ +>undefined : undefined +> : ^^^^^^^^^ + + static [null]() { } +>[null] : () => void +> : ^^^^^^^^^^ +} diff --git a/tests/baselines/reference/computedPropertyNames15_ES5.errors.txt b/tests/baselines/reference/computedPropertyNames15_ES5(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/computedPropertyNames15_ES5.errors.txt rename to tests/baselines/reference/computedPropertyNames15_ES5(target=es2015).errors.txt diff --git a/tests/baselines/reference/computedPropertyNames15_ES5(target=es2015).js b/tests/baselines/reference/computedPropertyNames15_ES5(target=es2015).js new file mode 100644 index 0000000000000..00977adb1c90e --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames15_ES5(target=es2015).js @@ -0,0 +1,21 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames15_ES5.ts] //// + +//// [computedPropertyNames15_ES5.ts] +var p1: number | string; +var p2: number | number[]; +var p3: string | boolean; +class C { + [p1]() { } + [p2]() { } + [p3]() { } +} + +//// [computedPropertyNames15_ES5.js] +var p1; +var p2; +var p3; +class C { + [p1]() { } + [p2]() { } + [p3]() { } +} diff --git a/tests/baselines/reference/computedPropertyNames15_ES5.symbols b/tests/baselines/reference/computedPropertyNames15_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/computedPropertyNames15_ES5.symbols rename to tests/baselines/reference/computedPropertyNames15_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/computedPropertyNames15_ES5.types b/tests/baselines/reference/computedPropertyNames15_ES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/computedPropertyNames15_ES5.types rename to tests/baselines/reference/computedPropertyNames15_ES5(target=es2015).types diff --git a/tests/baselines/reference/computedPropertyNames15_ES5(target=es5).errors.txt b/tests/baselines/reference/computedPropertyNames15_ES5(target=es5).errors.txt new file mode 100644 index 0000000000000..7e3e168ec7a57 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames15_ES5(target=es5).errors.txt @@ -0,0 +1,17 @@ +computedPropertyNames15_ES5.ts(6,5): error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'. +computedPropertyNames15_ES5.ts(7,5): error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'. + + +==== computedPropertyNames15_ES5.ts (2 errors) ==== + var p1: number | string; + var p2: number | number[]; + var p3: string | boolean; + class C { + [p1]() { } + [p2]() { } + ~~~~ +!!! error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'. + [p3]() { } + ~~~~ +!!! error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'. + } \ No newline at end of file diff --git a/tests/baselines/reference/computedPropertyNames15_ES5.js b/tests/baselines/reference/computedPropertyNames15_ES5(target=es5).js similarity index 100% rename from tests/baselines/reference/computedPropertyNames15_ES5.js rename to tests/baselines/reference/computedPropertyNames15_ES5(target=es5).js diff --git a/tests/baselines/reference/computedPropertyNames15_ES5(target=es5).symbols b/tests/baselines/reference/computedPropertyNames15_ES5(target=es5).symbols new file mode 100644 index 0000000000000..637ecb77a7a5b --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames15_ES5(target=es5).symbols @@ -0,0 +1,27 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames15_ES5.ts] //// + +=== computedPropertyNames15_ES5.ts === +var p1: number | string; +>p1 : Symbol(p1, Decl(computedPropertyNames15_ES5.ts, 0, 3)) + +var p2: number | number[]; +>p2 : Symbol(p2, Decl(computedPropertyNames15_ES5.ts, 1, 3)) + +var p3: string | boolean; +>p3 : Symbol(p3, Decl(computedPropertyNames15_ES5.ts, 2, 3)) + +class C { +>C : Symbol(C, Decl(computedPropertyNames15_ES5.ts, 2, 25)) + + [p1]() { } +>[p1] : Symbol(C[p1], Decl(computedPropertyNames15_ES5.ts, 3, 9)) +>p1 : Symbol(p1, Decl(computedPropertyNames15_ES5.ts, 0, 3)) + + [p2]() { } +>[p2] : Symbol(C[p2], Decl(computedPropertyNames15_ES5.ts, 4, 14)) +>p2 : Symbol(p2, Decl(computedPropertyNames15_ES5.ts, 1, 3)) + + [p3]() { } +>[p3] : Symbol(C[p3], Decl(computedPropertyNames15_ES5.ts, 5, 14)) +>p3 : Symbol(p3, Decl(computedPropertyNames15_ES5.ts, 2, 3)) +} diff --git a/tests/baselines/reference/computedPropertyNames15_ES5(target=es5).types b/tests/baselines/reference/computedPropertyNames15_ES5(target=es5).types new file mode 100644 index 0000000000000..7feb1f94423ee --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames15_ES5(target=es5).types @@ -0,0 +1,37 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames15_ES5.ts] //// + +=== computedPropertyNames15_ES5.ts === +var p1: number | string; +>p1 : string | number +> : ^^^^^^^^^^^^^^^ + +var p2: number | number[]; +>p2 : number | number[] +> : ^^^^^^^^^^^^^^^^^ + +var p3: string | boolean; +>p3 : string | boolean +> : ^^^^^^^^^^^^^^^^ + +class C { +>C : C +> : ^ + + [p1]() { } +>[p1] : () => void +> : ^^^^^^^^^^ +>p1 : string | number +> : ^^^^^^^^^^^^^^^ + + [p2]() { } +>[p2] : () => void +> : ^^^^^^^^^^ +>p2 : number | number[] +> : ^^^^^^^^^^^^^^^^^ + + [p3]() { } +>[p3] : () => void +> : ^^^^^^^^^^ +>p3 : string | boolean +> : ^^^^^^^^^^^^^^^^ +} diff --git a/tests/baselines/reference/computedPropertyNames16_ES5(target=es2015).js b/tests/baselines/reference/computedPropertyNames16_ES5(target=es2015).js new file mode 100644 index 0000000000000..542d1615cca68 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames16_ES5(target=es2015).js @@ -0,0 +1,37 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames16_ES5.ts] //// + +//// [computedPropertyNames16_ES5.ts] +var s: string; +var n: number; +var a: any; +class C { + get [s]() { return 0;} + set [n](v) { } + static get [s + s]() { return 0; } + set [s + n](v) { } + get [+s]() { return 0; } + static set [""](v) { } + get [0]() { return 0; } + set [a](v) { } + static get [true]() { return 0; } + set [`hello bye`](v) { } + get [`hello ${a} bye`]() { return 0; } +} + +//// [computedPropertyNames16_ES5.js] +var s; +var n; +var a; +class C { + get [s]() { return 0; } + set [n](v) { } + static get [s + s]() { return 0; } + set [s + n](v) { } + get [+s]() { return 0; } + static set [""](v) { } + get [0]() { return 0; } + set [a](v) { } + static get [true]() { return 0; } + set [`hello bye`](v) { } + get [`hello ${a} bye`]() { return 0; } +} diff --git a/tests/baselines/reference/computedPropertyNames16_ES5.symbols b/tests/baselines/reference/computedPropertyNames16_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/computedPropertyNames16_ES5.symbols rename to tests/baselines/reference/computedPropertyNames16_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/computedPropertyNames16_ES5.types b/tests/baselines/reference/computedPropertyNames16_ES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/computedPropertyNames16_ES5.types rename to tests/baselines/reference/computedPropertyNames16_ES5(target=es2015).types diff --git a/tests/baselines/reference/computedPropertyNames16_ES5.js b/tests/baselines/reference/computedPropertyNames16_ES5(target=es5).js similarity index 100% rename from tests/baselines/reference/computedPropertyNames16_ES5.js rename to tests/baselines/reference/computedPropertyNames16_ES5(target=es5).js diff --git a/tests/baselines/reference/computedPropertyNames16_ES5(target=es5).symbols b/tests/baselines/reference/computedPropertyNames16_ES5(target=es5).symbols new file mode 100644 index 0000000000000..7b6cc707d3c2d --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames16_ES5(target=es5).symbols @@ -0,0 +1,65 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames16_ES5.ts] //// + +=== computedPropertyNames16_ES5.ts === +var s: string; +>s : Symbol(s, Decl(computedPropertyNames16_ES5.ts, 0, 3)) + +var n: number; +>n : Symbol(n, Decl(computedPropertyNames16_ES5.ts, 1, 3)) + +var a: any; +>a : Symbol(a, Decl(computedPropertyNames16_ES5.ts, 2, 3)) + +class C { +>C : Symbol(C, Decl(computedPropertyNames16_ES5.ts, 2, 11)) + + get [s]() { return 0;} +>[s] : Symbol(C[s], Decl(computedPropertyNames16_ES5.ts, 3, 9)) +>s : Symbol(s, Decl(computedPropertyNames16_ES5.ts, 0, 3)) + + set [n](v) { } +>[n] : Symbol(C[n], Decl(computedPropertyNames16_ES5.ts, 4, 26)) +>n : Symbol(n, Decl(computedPropertyNames16_ES5.ts, 1, 3)) +>v : Symbol(v, Decl(computedPropertyNames16_ES5.ts, 5, 12)) + + static get [s + s]() { return 0; } +>[s + s] : Symbol(C[s + s], Decl(computedPropertyNames16_ES5.ts, 5, 18)) +>s : Symbol(s, Decl(computedPropertyNames16_ES5.ts, 0, 3)) +>s : Symbol(s, Decl(computedPropertyNames16_ES5.ts, 0, 3)) + + set [s + n](v) { } +>[s + n] : Symbol(C[s + n], Decl(computedPropertyNames16_ES5.ts, 6, 38)) +>s : Symbol(s, Decl(computedPropertyNames16_ES5.ts, 0, 3)) +>n : Symbol(n, Decl(computedPropertyNames16_ES5.ts, 1, 3)) +>v : Symbol(v, Decl(computedPropertyNames16_ES5.ts, 7, 16)) + + get [+s]() { return 0; } +>[+s] : Symbol(C[+s], Decl(computedPropertyNames16_ES5.ts, 7, 22)) +>s : Symbol(s, Decl(computedPropertyNames16_ES5.ts, 0, 3)) + + static set [""](v) { } +>[""] : Symbol(C[""], Decl(computedPropertyNames16_ES5.ts, 8, 28)) +>"" : Symbol(C[""], Decl(computedPropertyNames16_ES5.ts, 8, 28)) +>v : Symbol(v, Decl(computedPropertyNames16_ES5.ts, 9, 20)) + + get [0]() { return 0; } +>[0] : Symbol(C[0], Decl(computedPropertyNames16_ES5.ts, 9, 26)) +>0 : Symbol(C[0], Decl(computedPropertyNames16_ES5.ts, 9, 26)) + + set [a](v) { } +>[a] : Symbol(C[a], Decl(computedPropertyNames16_ES5.ts, 10, 27)) +>a : Symbol(a, Decl(computedPropertyNames16_ES5.ts, 2, 3)) +>v : Symbol(v, Decl(computedPropertyNames16_ES5.ts, 11, 12)) + + static get [true]() { return 0; } +>[true] : Symbol(C[true], Decl(computedPropertyNames16_ES5.ts, 11, 18)) + + set [`hello bye`](v) { } +>[`hello bye`] : Symbol(C[`hello bye`], Decl(computedPropertyNames16_ES5.ts, 12, 42)) +>`hello bye` : Symbol(C[`hello bye`], Decl(computedPropertyNames16_ES5.ts, 12, 42)) +>v : Symbol(v, Decl(computedPropertyNames16_ES5.ts, 13, 22)) + + get [`hello ${a} bye`]() { return 0; } +>[`hello ${a} bye`] : Symbol(C[`hello ${a} bye`], Decl(computedPropertyNames16_ES5.ts, 13, 28)) +>a : Symbol(a, Decl(computedPropertyNames16_ES5.ts, 2, 3)) +} diff --git a/tests/baselines/reference/computedPropertyNames16_ES5(target=es5).types b/tests/baselines/reference/computedPropertyNames16_ES5(target=es5).types new file mode 100644 index 0000000000000..3dbfae37b4da8 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames16_ES5(target=es5).types @@ -0,0 +1,107 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames16_ES5.ts] //// + +=== computedPropertyNames16_ES5.ts === +var s: string; +>s : string +> : ^^^^^^ + +var n: number; +>n : number +> : ^^^^^^ + +var a: any; +>a : any + +class C { +>C : C +> : ^ + + get [s]() { return 0;} +>[s] : number +> : ^^^^^^ +>s : string +> : ^^^^^^ +>0 : 0 +> : ^ + + set [n](v) { } +>[n] : any +>n : number +> : ^^^^^^ +>v : any + + static get [s + s]() { return 0; } +>[s + s] : number +> : ^^^^^^ +>s + s : string +> : ^^^^^^ +>s : string +> : ^^^^^^ +>s : string +> : ^^^^^^ +>0 : 0 +> : ^ + + set [s + n](v) { } +>[s + n] : any +>s + n : string +> : ^^^^^^ +>s : string +> : ^^^^^^ +>n : number +> : ^^^^^^ +>v : any + + get [+s]() { return 0; } +>[+s] : number +> : ^^^^^^ +>+s : number +> : ^^^^^^ +>s : string +> : ^^^^^^ +>0 : 0 +> : ^ + + static set [""](v) { } +>[""] : any +>"" : "" +> : ^^ +>v : any + + get [0]() { return 0; } +>[0] : number +> : ^^^^^^ +>0 : 0 +> : ^ +>0 : 0 +> : ^ + + set [a](v) { } +>[a] : any +>a : any +>v : any + + static get [true]() { return 0; } +>[true] : number +> : ^^^^^^ +>true : any +>true : true +> : ^^^^ +>0 : 0 +> : ^ + + set [`hello bye`](v) { } +>[`hello bye`] : any +>`hello bye` : "hello bye" +> : ^^^^^^^^^^^ +>v : any + + get [`hello ${a} bye`]() { return 0; } +>[`hello ${a} bye`] : number +> : ^^^^^^ +>`hello ${a} bye` : string +> : ^^^^^^ +>a : any +>0 : 0 +> : ^ +} diff --git a/tests/baselines/reference/computedPropertyNames17_ES5.errors.txt b/tests/baselines/reference/computedPropertyNames17_ES5(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/computedPropertyNames17_ES5.errors.txt rename to tests/baselines/reference/computedPropertyNames17_ES5(target=es2015).errors.txt diff --git a/tests/baselines/reference/computedPropertyNames17_ES5(target=es2015).js b/tests/baselines/reference/computedPropertyNames17_ES5(target=es2015).js new file mode 100644 index 0000000000000..da59f5a575ff2 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames17_ES5(target=es2015).js @@ -0,0 +1,23 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames17_ES5.ts] //// + +//// [computedPropertyNames17_ES5.ts] +var b: boolean; +class C { + get [b]() { return 0;} + static set [true](v) { } + get [[]]() { return 0; } + set [{}](v) { } + static get [undefined]() { return 0; } + set [null](v) { } +} + +//// [computedPropertyNames17_ES5.js] +var b; +class C { + get [b]() { return 0; } + static set [true](v) { } + get [[]]() { return 0; } + set [{}](v) { } + static get [undefined]() { return 0; } + set [null](v) { } +} diff --git a/tests/baselines/reference/computedPropertyNames17_ES5.symbols b/tests/baselines/reference/computedPropertyNames17_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/computedPropertyNames17_ES5.symbols rename to tests/baselines/reference/computedPropertyNames17_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/computedPropertyNames17_ES5.types b/tests/baselines/reference/computedPropertyNames17_ES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/computedPropertyNames17_ES5.types rename to tests/baselines/reference/computedPropertyNames17_ES5(target=es2015).types diff --git a/tests/baselines/reference/computedPropertyNames17_ES5(target=es5).errors.txt b/tests/baselines/reference/computedPropertyNames17_ES5(target=es5).errors.txt new file mode 100644 index 0000000000000..946678732946e --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames17_ES5(target=es5).errors.txt @@ -0,0 +1,30 @@ +computedPropertyNames17_ES5.ts(3,9): error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'. +computedPropertyNames17_ES5.ts(4,16): error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'. +computedPropertyNames17_ES5.ts(5,9): error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'. +computedPropertyNames17_ES5.ts(6,9): error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'. +computedPropertyNames17_ES5.ts(7,16): error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'. +computedPropertyNames17_ES5.ts(8,9): error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'. + + +==== computedPropertyNames17_ES5.ts (6 errors) ==== + var b: boolean; + class C { + get [b]() { return 0;} + ~~~ +!!! error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'. + static set [true](v) { } + ~~~~~~ +!!! error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'. + get [[]]() { return 0; } + ~~~~ +!!! error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'. + set [{}](v) { } + ~~~~ +!!! error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'. + static get [undefined]() { return 0; } + ~~~~~~~~~~~ +!!! error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'. + set [null](v) { } + ~~~~~~ +!!! error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'. + } \ No newline at end of file diff --git a/tests/baselines/reference/computedPropertyNames17_ES5.js b/tests/baselines/reference/computedPropertyNames17_ES5(target=es5).js similarity index 100% rename from tests/baselines/reference/computedPropertyNames17_ES5.js rename to tests/baselines/reference/computedPropertyNames17_ES5(target=es5).js diff --git a/tests/baselines/reference/computedPropertyNames17_ES5(target=es5).symbols b/tests/baselines/reference/computedPropertyNames17_ES5(target=es5).symbols new file mode 100644 index 0000000000000..bbf1ea84537b6 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames17_ES5(target=es5).symbols @@ -0,0 +1,32 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames17_ES5.ts] //// + +=== computedPropertyNames17_ES5.ts === +var b: boolean; +>b : Symbol(b, Decl(computedPropertyNames17_ES5.ts, 0, 3)) + +class C { +>C : Symbol(C, Decl(computedPropertyNames17_ES5.ts, 0, 15)) + + get [b]() { return 0;} +>[b] : Symbol(C[b], Decl(computedPropertyNames17_ES5.ts, 1, 9)) +>b : Symbol(b, Decl(computedPropertyNames17_ES5.ts, 0, 3)) + + static set [true](v) { } +>[true] : Symbol(C[true], Decl(computedPropertyNames17_ES5.ts, 2, 26)) +>v : Symbol(v, Decl(computedPropertyNames17_ES5.ts, 3, 22)) + + get [[]]() { return 0; } +>[[]] : Symbol(C[[]], Decl(computedPropertyNames17_ES5.ts, 3, 28)) + + set [{}](v) { } +>[{}] : Symbol(C[{}], Decl(computedPropertyNames17_ES5.ts, 4, 28)) +>v : Symbol(v, Decl(computedPropertyNames17_ES5.ts, 5, 13)) + + static get [undefined]() { return 0; } +>[undefined] : Symbol(C[undefined], Decl(computedPropertyNames17_ES5.ts, 5, 19)) +>undefined : Symbol(undefined) + + set [null](v) { } +>[null] : Symbol(C[null], Decl(computedPropertyNames17_ES5.ts, 6, 42)) +>v : Symbol(v, Decl(computedPropertyNames17_ES5.ts, 7, 15)) +} diff --git a/tests/baselines/reference/computedPropertyNames17_ES5(target=es5).types b/tests/baselines/reference/computedPropertyNames17_ES5(target=es5).types new file mode 100644 index 0000000000000..862e86fff1128 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames17_ES5(target=es5).types @@ -0,0 +1,57 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames17_ES5.ts] //// + +=== computedPropertyNames17_ES5.ts === +var b: boolean; +>b : boolean +> : ^^^^^^^ + +class C { +>C : C +> : ^ + + get [b]() { return 0;} +>[b] : number +> : ^^^^^^ +>b : boolean +> : ^^^^^^^ +>0 : 0 +> : ^ + + static set [true](v) { } +>[true] : any +> : ^^^ +>true : true +> : ^^^^ +>v : any +> : ^^^ + + get [[]]() { return 0; } +>[[]] : number +> : ^^^^^^ +>[] : undefined[] +> : ^^^^^^^^^^^ +>0 : 0 +> : ^ + + set [{}](v) { } +>[{}] : any +> : ^^^ +>{} : {} +> : ^^ +>v : any +> : ^^^ + + static get [undefined]() { return 0; } +>[undefined] : number +> : ^^^^^^ +>undefined : undefined +> : ^^^^^^^^^ +>0 : 0 +> : ^ + + set [null](v) { } +>[null] : any +> : ^^^ +>v : any +> : ^^^ +} diff --git a/tests/baselines/reference/computedPropertyNames18_ES5(target=es2015).js b/tests/baselines/reference/computedPropertyNames18_ES5(target=es2015).js new file mode 100644 index 0000000000000..4f72f1156a427 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames18_ES5(target=es2015).js @@ -0,0 +1,15 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames18_ES5.ts] //// + +//// [computedPropertyNames18_ES5.ts] +function foo() { + var obj = { + [this.bar]: 0 + } +} + +//// [computedPropertyNames18_ES5.js] +function foo() { + var obj = { + [this.bar]: 0 + }; +} diff --git a/tests/baselines/reference/computedPropertyNames18_ES5.symbols b/tests/baselines/reference/computedPropertyNames18_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/computedPropertyNames18_ES5.symbols rename to tests/baselines/reference/computedPropertyNames18_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/computedPropertyNames18_ES5.types b/tests/baselines/reference/computedPropertyNames18_ES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/computedPropertyNames18_ES5.types rename to tests/baselines/reference/computedPropertyNames18_ES5(target=es2015).types diff --git a/tests/baselines/reference/computedPropertyNames18_ES5.js b/tests/baselines/reference/computedPropertyNames18_ES5(target=es5).js similarity index 100% rename from tests/baselines/reference/computedPropertyNames18_ES5.js rename to tests/baselines/reference/computedPropertyNames18_ES5(target=es5).js diff --git a/tests/baselines/reference/computedPropertyNames18_ES5(target=es5).symbols b/tests/baselines/reference/computedPropertyNames18_ES5(target=es5).symbols new file mode 100644 index 0000000000000..b101e1528230d --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames18_ES5(target=es5).symbols @@ -0,0 +1,13 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames18_ES5.ts] //// + +=== computedPropertyNames18_ES5.ts === +function foo() { +>foo : Symbol(foo, Decl(computedPropertyNames18_ES5.ts, 0, 0)) + + var obj = { +>obj : Symbol(obj, Decl(computedPropertyNames18_ES5.ts, 1, 7)) + + [this.bar]: 0 +>[this.bar] : Symbol([this.bar], Decl(computedPropertyNames18_ES5.ts, 1, 15)) + } +} diff --git a/tests/baselines/reference/computedPropertyNames18_ES5(target=es5).types b/tests/baselines/reference/computedPropertyNames18_ES5(target=es5).types new file mode 100644 index 0000000000000..fba7ca0fa899c --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames18_ES5(target=es5).types @@ -0,0 +1,25 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames18_ES5.ts] //// + +=== computedPropertyNames18_ES5.ts === +function foo() { +>foo : () => void +> : ^^^^^^^^^^ + + var obj = { +>obj : { [x: number]: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^ +>{ [this.bar]: 0 } : { [x: number]: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^ + + [this.bar]: 0 +>[this.bar] : number +> : ^^^^^^ +>this.bar : any +>this : any +> : ^^^ +>bar : any +> : ^^^ +>0 : 0 +> : ^ + } +} diff --git a/tests/baselines/reference/computedPropertyNames19_ES5.errors.txt b/tests/baselines/reference/computedPropertyNames19_ES5(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/computedPropertyNames19_ES5.errors.txt rename to tests/baselines/reference/computedPropertyNames19_ES5(target=es2015).errors.txt diff --git a/tests/baselines/reference/computedPropertyNames19_ES5(target=es2015).js b/tests/baselines/reference/computedPropertyNames19_ES5(target=es2015).js new file mode 100644 index 0000000000000..c0cb91152bafd --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames19_ES5(target=es2015).js @@ -0,0 +1,16 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames19_ES5.ts] //// + +//// [computedPropertyNames19_ES5.ts] +namespace M { + var obj = { + [this.bar]: 0 + } +} + +//// [computedPropertyNames19_ES5.js] +var M; +(function (M) { + var obj = { + [this.bar]: 0 + }; +})(M || (M = {})); diff --git a/tests/baselines/reference/computedPropertyNames19_ES5.symbols b/tests/baselines/reference/computedPropertyNames19_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/computedPropertyNames19_ES5.symbols rename to tests/baselines/reference/computedPropertyNames19_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/computedPropertyNames19_ES5.types b/tests/baselines/reference/computedPropertyNames19_ES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/computedPropertyNames19_ES5.types rename to tests/baselines/reference/computedPropertyNames19_ES5(target=es2015).types diff --git a/tests/baselines/reference/computedPropertyNames19_ES5(target=es5).errors.txt b/tests/baselines/reference/computedPropertyNames19_ES5(target=es5).errors.txt new file mode 100644 index 0000000000000..b5b9ae897a980 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames19_ES5(target=es5).errors.txt @@ -0,0 +1,11 @@ +computedPropertyNames19_ES5.ts(3,10): error TS2331: 'this' cannot be referenced in a module or namespace body. + + +==== computedPropertyNames19_ES5.ts (1 errors) ==== + namespace M { + var obj = { + [this.bar]: 0 + ~~~~ +!!! error TS2331: 'this' cannot be referenced in a module or namespace body. + } + } \ No newline at end of file diff --git a/tests/baselines/reference/computedPropertyNames19_ES5.js b/tests/baselines/reference/computedPropertyNames19_ES5(target=es5).js similarity index 100% rename from tests/baselines/reference/computedPropertyNames19_ES5.js rename to tests/baselines/reference/computedPropertyNames19_ES5(target=es5).js diff --git a/tests/baselines/reference/computedPropertyNames19_ES5(target=es5).symbols b/tests/baselines/reference/computedPropertyNames19_ES5(target=es5).symbols new file mode 100644 index 0000000000000..fd66440b91c35 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames19_ES5(target=es5).symbols @@ -0,0 +1,13 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames19_ES5.ts] //// + +=== computedPropertyNames19_ES5.ts === +namespace M { +>M : Symbol(M, Decl(computedPropertyNames19_ES5.ts, 0, 0)) + + var obj = { +>obj : Symbol(obj, Decl(computedPropertyNames19_ES5.ts, 1, 7)) + + [this.bar]: 0 +>[this.bar] : Symbol([this.bar], Decl(computedPropertyNames19_ES5.ts, 1, 15)) + } +} diff --git a/tests/baselines/reference/computedPropertyNames19_ES5(target=es5).types b/tests/baselines/reference/computedPropertyNames19_ES5(target=es5).types new file mode 100644 index 0000000000000..b3013a60d8eb2 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames19_ES5(target=es5).types @@ -0,0 +1,26 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames19_ES5.ts] //// + +=== computedPropertyNames19_ES5.ts === +namespace M { +>M : typeof M +> : ^^^^^^^^ + + var obj = { +>obj : { [x: number]: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^ +>{ [this.bar]: 0 } : { [x: number]: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^ + + [this.bar]: 0 +>[this.bar] : number +> : ^^^^^^ +>this.bar : any +> : ^^^ +>this : any +> : ^^^ +>bar : any +> : ^^^ +>0 : 0 +> : ^ + } +} diff --git a/tests/baselines/reference/computedPropertyNames1_ES5(target=es2015).js b/tests/baselines/reference/computedPropertyNames1_ES5(target=es2015).js new file mode 100644 index 0000000000000..6b2f5aa68577e --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames1_ES5(target=es2015).js @@ -0,0 +1,13 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames1_ES5.ts] //// + +//// [computedPropertyNames1_ES5.ts] +var v = { + get [0 + 1]() { return 0 }, + set [0 + 1](v: string) { } //No error +} + +//// [computedPropertyNames1_ES5.js] +var v = { + get [0 + 1]() { return 0; }, + set [0 + 1](v) { } //No error +}; diff --git a/tests/baselines/reference/computedPropertyNames1_ES5.symbols b/tests/baselines/reference/computedPropertyNames1_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/computedPropertyNames1_ES5.symbols rename to tests/baselines/reference/computedPropertyNames1_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/computedPropertyNames1_ES5.types b/tests/baselines/reference/computedPropertyNames1_ES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/computedPropertyNames1_ES5.types rename to tests/baselines/reference/computedPropertyNames1_ES5(target=es2015).types diff --git a/tests/baselines/reference/computedPropertyNames1_ES5.js b/tests/baselines/reference/computedPropertyNames1_ES5(target=es5).js similarity index 100% rename from tests/baselines/reference/computedPropertyNames1_ES5.js rename to tests/baselines/reference/computedPropertyNames1_ES5(target=es5).js diff --git a/tests/baselines/reference/computedPropertyNames1_ES5(target=es5).symbols b/tests/baselines/reference/computedPropertyNames1_ES5(target=es5).symbols new file mode 100644 index 0000000000000..a3886405bea97 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames1_ES5(target=es5).symbols @@ -0,0 +1,13 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames1_ES5.ts] //// + +=== computedPropertyNames1_ES5.ts === +var v = { +>v : Symbol(v, Decl(computedPropertyNames1_ES5.ts, 0, 3)) + + get [0 + 1]() { return 0 }, +>[0 + 1] : Symbol([0 + 1], Decl(computedPropertyNames1_ES5.ts, 0, 9)) + + set [0 + 1](v: string) { } //No error +>[0 + 1] : Symbol([0 + 1], Decl(computedPropertyNames1_ES5.ts, 1, 31)) +>v : Symbol(v, Decl(computedPropertyNames1_ES5.ts, 2, 16)) +} diff --git a/tests/baselines/reference/computedPropertyNames1_ES5(target=es5).types b/tests/baselines/reference/computedPropertyNames1_ES5(target=es5).types new file mode 100644 index 0000000000000..d8b452fa3d05e --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames1_ES5(target=es5).types @@ -0,0 +1,33 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames1_ES5.ts] //// + +=== computedPropertyNames1_ES5.ts === +var v = { +>v : { [x: number]: string | number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ get [0 + 1]() { return 0 }, set [0 + 1](v: string) { } //No error} : { [x: number]: string | number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + get [0 + 1]() { return 0 }, +>[0 + 1] : number +> : ^^^^^^ +>0 + 1 : number +> : ^^^^^^ +>0 : 0 +> : ^ +>1 : 1 +> : ^ +>0 : 0 +> : ^ + + set [0 + 1](v: string) { } //No error +>[0 + 1] : string +> : ^^^^^^ +>0 + 1 : number +> : ^^^^^^ +>0 : 0 +> : ^ +>1 : 1 +> : ^ +>v : string +> : ^^^^^^ +} diff --git a/tests/baselines/reference/computedPropertyNames20_ES5(target=es2015).js b/tests/baselines/reference/computedPropertyNames20_ES5(target=es2015).js new file mode 100644 index 0000000000000..8f654f3f3a76f --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames20_ES5(target=es2015).js @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames20_ES5.ts] //// + +//// [computedPropertyNames20_ES5.ts] +var obj = { + [this.bar]: 0 +} + +//// [computedPropertyNames20_ES5.js] +var obj = { + [this.bar]: 0 +}; diff --git a/tests/baselines/reference/computedPropertyNames20_ES5.symbols b/tests/baselines/reference/computedPropertyNames20_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/computedPropertyNames20_ES5.symbols rename to tests/baselines/reference/computedPropertyNames20_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/computedPropertyNames20_ES5.types b/tests/baselines/reference/computedPropertyNames20_ES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/computedPropertyNames20_ES5.types rename to tests/baselines/reference/computedPropertyNames20_ES5(target=es2015).types diff --git a/tests/baselines/reference/computedPropertyNames20_ES5.js b/tests/baselines/reference/computedPropertyNames20_ES5(target=es5).js similarity index 100% rename from tests/baselines/reference/computedPropertyNames20_ES5.js rename to tests/baselines/reference/computedPropertyNames20_ES5(target=es5).js diff --git a/tests/baselines/reference/computedPropertyNames20_ES5(target=es5).symbols b/tests/baselines/reference/computedPropertyNames20_ES5(target=es5).symbols new file mode 100644 index 0000000000000..919031e6583de --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames20_ES5(target=es5).symbols @@ -0,0 +1,10 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames20_ES5.ts] //// + +=== computedPropertyNames20_ES5.ts === +var obj = { +>obj : Symbol(obj, Decl(computedPropertyNames20_ES5.ts, 0, 3)) + + [this.bar]: 0 +>[this.bar] : Symbol([this.bar], Decl(computedPropertyNames20_ES5.ts, 0, 11)) +>this : Symbol(globalThis) +} diff --git a/tests/baselines/reference/computedPropertyNames20_ES5(target=es5).types b/tests/baselines/reference/computedPropertyNames20_ES5(target=es5).types new file mode 100644 index 0000000000000..ff06fb0e5401b --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames20_ES5(target=es5).types @@ -0,0 +1,20 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames20_ES5.ts] //// + +=== computedPropertyNames20_ES5.ts === +var obj = { +>obj : { [x: number]: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^ +>{ [this.bar]: 0} : { [x: number]: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^ + + [this.bar]: 0 +>[this.bar] : number +> : ^^^^^^ +>this.bar : any +>this : typeof globalThis +> : ^^^^^^^^^^^^^^^^^ +>bar : any +> : ^^^ +>0 : 0 +> : ^ +} diff --git a/tests/baselines/reference/computedPropertyNames21_ES5.errors.txt b/tests/baselines/reference/computedPropertyNames21_ES5(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/computedPropertyNames21_ES5.errors.txt rename to tests/baselines/reference/computedPropertyNames21_ES5(target=es2015).errors.txt diff --git a/tests/baselines/reference/computedPropertyNames21_ES5(target=es2015).js b/tests/baselines/reference/computedPropertyNames21_ES5(target=es2015).js new file mode 100644 index 0000000000000..2233c127c3122 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames21_ES5(target=es2015).js @@ -0,0 +1,17 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames21_ES5.ts] //// + +//// [computedPropertyNames21_ES5.ts] +class C { + bar() { + return 0; + } + [this.bar()]() { } +} + +//// [computedPropertyNames21_ES5.js] +class C { + bar() { + return 0; + } + [this.bar()]() { } +} diff --git a/tests/baselines/reference/computedPropertyNames21_ES5.symbols b/tests/baselines/reference/computedPropertyNames21_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/computedPropertyNames21_ES5.symbols rename to tests/baselines/reference/computedPropertyNames21_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/computedPropertyNames21_ES5.types b/tests/baselines/reference/computedPropertyNames21_ES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/computedPropertyNames21_ES5.types rename to tests/baselines/reference/computedPropertyNames21_ES5(target=es2015).types diff --git a/tests/baselines/reference/computedPropertyNames21_ES5(target=es5).errors.txt b/tests/baselines/reference/computedPropertyNames21_ES5(target=es5).errors.txt new file mode 100644 index 0000000000000..694f824436812 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames21_ES5(target=es5).errors.txt @@ -0,0 +1,12 @@ +computedPropertyNames21_ES5.ts(5,6): error TS2465: 'this' cannot be referenced in a computed property name. + + +==== computedPropertyNames21_ES5.ts (1 errors) ==== + class C { + bar() { + return 0; + } + [this.bar()]() { } + ~~~~ +!!! error TS2465: 'this' cannot be referenced in a computed property name. + } \ No newline at end of file diff --git a/tests/baselines/reference/computedPropertyNames21_ES5.js b/tests/baselines/reference/computedPropertyNames21_ES5(target=es5).js similarity index 100% rename from tests/baselines/reference/computedPropertyNames21_ES5.js rename to tests/baselines/reference/computedPropertyNames21_ES5(target=es5).js diff --git a/tests/baselines/reference/computedPropertyNames21_ES5(target=es5).symbols b/tests/baselines/reference/computedPropertyNames21_ES5(target=es5).symbols new file mode 100644 index 0000000000000..4694952d83e62 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames21_ES5(target=es5).symbols @@ -0,0 +1,17 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames21_ES5.ts] //// + +=== computedPropertyNames21_ES5.ts === +class C { +>C : Symbol(C, Decl(computedPropertyNames21_ES5.ts, 0, 0)) + + bar() { +>bar : Symbol(C.bar, Decl(computedPropertyNames21_ES5.ts, 0, 9)) + + return 0; + } + [this.bar()]() { } +>[this.bar()] : Symbol(C[this.bar()], Decl(computedPropertyNames21_ES5.ts, 3, 5)) +>this.bar : Symbol(C.bar, Decl(computedPropertyNames21_ES5.ts, 0, 9)) +>this : Symbol(C, Decl(computedPropertyNames21_ES5.ts, 0, 0)) +>bar : Symbol(C.bar, Decl(computedPropertyNames21_ES5.ts, 0, 9)) +} diff --git a/tests/baselines/reference/computedPropertyNames21_ES5(target=es5).types b/tests/baselines/reference/computedPropertyNames21_ES5(target=es5).types new file mode 100644 index 0000000000000..145e8c7668733 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames21_ES5(target=es5).types @@ -0,0 +1,27 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames21_ES5.ts] //// + +=== computedPropertyNames21_ES5.ts === +class C { +>C : C +> : ^ + + bar() { +>bar : () => number +> : ^^^^^^^^^^^^ + + return 0; +>0 : 0 +> : ^ + } + [this.bar()]() { } +>[this.bar()] : () => void +> : ^^^^^^^^^^ +>this.bar() : number +> : ^^^^^^ +>this.bar : () => number +> : ^^^^^^^^^^^^ +>this : this +> : ^^^^ +>bar : () => number +> : ^^^^^^^^^^^^ +} diff --git a/tests/baselines/reference/computedPropertyNames22_ES5(target=es2015).js b/tests/baselines/reference/computedPropertyNames22_ES5(target=es2015).js new file mode 100644 index 0000000000000..57379b6af5b8d --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames22_ES5(target=es2015).js @@ -0,0 +1,21 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames22_ES5.ts] //// + +//// [computedPropertyNames22_ES5.ts] +class C { + bar() { + var obj = { + [this.bar()]() { } + }; + return 0; + } +} + +//// [computedPropertyNames22_ES5.js] +class C { + bar() { + var obj = { + [this.bar()]() { } + }; + return 0; + } +} diff --git a/tests/baselines/reference/computedPropertyNames22_ES5.symbols b/tests/baselines/reference/computedPropertyNames22_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/computedPropertyNames22_ES5.symbols rename to tests/baselines/reference/computedPropertyNames22_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/computedPropertyNames22_ES5.types b/tests/baselines/reference/computedPropertyNames22_ES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/computedPropertyNames22_ES5.types rename to tests/baselines/reference/computedPropertyNames22_ES5(target=es2015).types diff --git a/tests/baselines/reference/computedPropertyNames22_ES5.js b/tests/baselines/reference/computedPropertyNames22_ES5(target=es5).js similarity index 100% rename from tests/baselines/reference/computedPropertyNames22_ES5.js rename to tests/baselines/reference/computedPropertyNames22_ES5(target=es5).js diff --git a/tests/baselines/reference/computedPropertyNames22_ES5(target=es5).symbols b/tests/baselines/reference/computedPropertyNames22_ES5(target=es5).symbols new file mode 100644 index 0000000000000..78f1a31e0e3d4 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames22_ES5(target=es5).symbols @@ -0,0 +1,22 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames22_ES5.ts] //// + +=== computedPropertyNames22_ES5.ts === +class C { +>C : Symbol(C, Decl(computedPropertyNames22_ES5.ts, 0, 0)) + + bar() { +>bar : Symbol(C.bar, Decl(computedPropertyNames22_ES5.ts, 0, 9)) + + var obj = { +>obj : Symbol(obj, Decl(computedPropertyNames22_ES5.ts, 2, 11)) + + [this.bar()]() { } +>[this.bar()] : Symbol([this.bar()], Decl(computedPropertyNames22_ES5.ts, 2, 19)) +>this.bar : Symbol(C.bar, Decl(computedPropertyNames22_ES5.ts, 0, 9)) +>this : Symbol(C, Decl(computedPropertyNames22_ES5.ts, 0, 0)) +>bar : Symbol(C.bar, Decl(computedPropertyNames22_ES5.ts, 0, 9)) + + }; + return 0; + } +} diff --git a/tests/baselines/reference/computedPropertyNames22_ES5(target=es5).types b/tests/baselines/reference/computedPropertyNames22_ES5(target=es5).types new file mode 100644 index 0000000000000..2a3316b8c1c40 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames22_ES5(target=es5).types @@ -0,0 +1,35 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames22_ES5.ts] //// + +=== computedPropertyNames22_ES5.ts === +class C { +>C : C +> : ^ + + bar() { +>bar : () => number +> : ^^^^^^^^^^^^ + + var obj = { +>obj : { [x: number]: () => void; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ [this.bar()]() { } } : { [x: number]: () => void; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + [this.bar()]() { } +>[this.bar()] : () => void +> : ^^^^^^^^^^ +>this.bar() : number +> : ^^^^^^ +>this.bar : () => number +> : ^^^^^^^^^^^^ +>this : this +> : ^^^^ +>bar : () => number +> : ^^^^^^^^^^^^ + + }; + return 0; +>0 : 0 +> : ^ + } +} diff --git a/tests/baselines/reference/computedPropertyNames23_ES5.errors.txt b/tests/baselines/reference/computedPropertyNames23_ES5(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/computedPropertyNames23_ES5.errors.txt rename to tests/baselines/reference/computedPropertyNames23_ES5(target=es2015).errors.txt diff --git a/tests/baselines/reference/computedPropertyNames23_ES5(target=es2015).js b/tests/baselines/reference/computedPropertyNames23_ES5(target=es2015).js new file mode 100644 index 0000000000000..7fca2f7f32cf7 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames23_ES5(target=es2015).js @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames23_ES5.ts] //// + +//// [computedPropertyNames23_ES5.ts] +class C { + bar() { + return 0; + } + [ + { [this.bar()]: 1 }[0] + ]() { } +} + +//// [computedPropertyNames23_ES5.js] +class C { + bar() { + return 0; + } + [{ [this.bar()]: 1 }[0]]() { } +} diff --git a/tests/baselines/reference/computedPropertyNames23_ES5.symbols b/tests/baselines/reference/computedPropertyNames23_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/computedPropertyNames23_ES5.symbols rename to tests/baselines/reference/computedPropertyNames23_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/computedPropertyNames23_ES5.types b/tests/baselines/reference/computedPropertyNames23_ES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/computedPropertyNames23_ES5.types rename to tests/baselines/reference/computedPropertyNames23_ES5(target=es2015).types diff --git a/tests/baselines/reference/computedPropertyNames23_ES5(target=es5).errors.txt b/tests/baselines/reference/computedPropertyNames23_ES5(target=es5).errors.txt new file mode 100644 index 0000000000000..8344c69e99867 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames23_ES5(target=es5).errors.txt @@ -0,0 +1,14 @@ +computedPropertyNames23_ES5.ts(6,12): error TS2465: 'this' cannot be referenced in a computed property name. + + +==== computedPropertyNames23_ES5.ts (1 errors) ==== + class C { + bar() { + return 0; + } + [ + { [this.bar()]: 1 }[0] + ~~~~ +!!! error TS2465: 'this' cannot be referenced in a computed property name. + ]() { } + } \ No newline at end of file diff --git a/tests/baselines/reference/computedPropertyNames23_ES5.js b/tests/baselines/reference/computedPropertyNames23_ES5(target=es5).js similarity index 100% rename from tests/baselines/reference/computedPropertyNames23_ES5.js rename to tests/baselines/reference/computedPropertyNames23_ES5(target=es5).js diff --git a/tests/baselines/reference/computedPropertyNames23_ES5(target=es5).symbols b/tests/baselines/reference/computedPropertyNames23_ES5(target=es5).symbols new file mode 100644 index 0000000000000..63812b52bcff1 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames23_ES5(target=es5).symbols @@ -0,0 +1,24 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames23_ES5.ts] //// + +=== computedPropertyNames23_ES5.ts === +class C { +>C : Symbol(C, Decl(computedPropertyNames23_ES5.ts, 0, 0)) + + bar() { +>bar : Symbol(C.bar, Decl(computedPropertyNames23_ES5.ts, 0, 9)) + + return 0; + } + [ +>[ { [this.bar()]: 1 }[0] ] : Symbol(C[ + { [this.bar()]: 1 }[0] + ], Decl(computedPropertyNames23_ES5.ts, 3, 5)) + + { [this.bar()]: 1 }[0] +>[this.bar()] : Symbol([this.bar()], Decl(computedPropertyNames23_ES5.ts, 5, 9)) +>this.bar : Symbol(C.bar, Decl(computedPropertyNames23_ES5.ts, 0, 9)) +>this : Symbol(C, Decl(computedPropertyNames23_ES5.ts, 0, 0)) +>bar : Symbol(C.bar, Decl(computedPropertyNames23_ES5.ts, 0, 9)) + + ]() { } +} diff --git a/tests/baselines/reference/computedPropertyNames23_ES5(target=es5).types b/tests/baselines/reference/computedPropertyNames23_ES5(target=es5).types new file mode 100644 index 0000000000000..b5910eeb5f302 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames23_ES5(target=es5).types @@ -0,0 +1,41 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames23_ES5.ts] //// + +=== computedPropertyNames23_ES5.ts === +class C { +>C : C +> : ^ + + bar() { +>bar : () => number +> : ^^^^^^^^^^^^ + + return 0; +>0 : 0 +> : ^ + } + [ +>[ { [this.bar()]: 1 }[0] ] : () => void +> : ^^^^^^^^^^ + + { [this.bar()]: 1 }[0] +>{ [this.bar()]: 1 }[0] : number +> : ^^^^^^ +>{ [this.bar()]: 1 } : { [x: number]: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^ +>[this.bar()] : number +> : ^^^^^^ +>this.bar() : number +> : ^^^^^^ +>this.bar : () => number +> : ^^^^^^^^^^^^ +>this : this +> : ^^^^ +>bar : () => number +> : ^^^^^^^^^^^^ +>1 : 1 +> : ^ +>0 : 0 +> : ^ + + ]() { } +} diff --git a/tests/baselines/reference/computedPropertyNames24_ES5.errors.txt b/tests/baselines/reference/computedPropertyNames24_ES5(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/computedPropertyNames24_ES5.errors.txt rename to tests/baselines/reference/computedPropertyNames24_ES5(target=es2015).errors.txt diff --git a/tests/baselines/reference/computedPropertyNames24_ES5(target=es2015).js b/tests/baselines/reference/computedPropertyNames24_ES5(target=es2015).js new file mode 100644 index 0000000000000..4e6e21f5e878c --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames24_ES5(target=es2015).js @@ -0,0 +1,21 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames24_ES5.ts] //// + +//// [computedPropertyNames24_ES5.ts] +class Base { + bar() { + return 0; + } +} +class C extends Base { + [super.bar()]() { } +} + +//// [computedPropertyNames24_ES5.js] +class Base { + bar() { + return 0; + } +} +class C extends Base { + [super.bar()]() { } +} diff --git a/tests/baselines/reference/computedPropertyNames24_ES5.symbols b/tests/baselines/reference/computedPropertyNames24_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/computedPropertyNames24_ES5.symbols rename to tests/baselines/reference/computedPropertyNames24_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/computedPropertyNames24_ES5.types b/tests/baselines/reference/computedPropertyNames24_ES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/computedPropertyNames24_ES5.types rename to tests/baselines/reference/computedPropertyNames24_ES5(target=es2015).types diff --git a/tests/baselines/reference/computedPropertyNames24_ES5(target=es5).errors.txt b/tests/baselines/reference/computedPropertyNames24_ES5(target=es5).errors.txt new file mode 100644 index 0000000000000..9d8b1c8d30a8b --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames24_ES5(target=es5).errors.txt @@ -0,0 +1,14 @@ +computedPropertyNames24_ES5.ts(7,6): error TS2466: 'super' cannot be referenced in a computed property name. + + +==== computedPropertyNames24_ES5.ts (1 errors) ==== + class Base { + bar() { + return 0; + } + } + class C extends Base { + [super.bar()]() { } + ~~~~~ +!!! error TS2466: 'super' cannot be referenced in a computed property name. + } \ No newline at end of file diff --git a/tests/baselines/reference/computedPropertyNames24_ES5.js b/tests/baselines/reference/computedPropertyNames24_ES5(target=es5).js similarity index 100% rename from tests/baselines/reference/computedPropertyNames24_ES5.js rename to tests/baselines/reference/computedPropertyNames24_ES5(target=es5).js diff --git a/tests/baselines/reference/computedPropertyNames24_ES5(target=es5).symbols b/tests/baselines/reference/computedPropertyNames24_ES5(target=es5).symbols new file mode 100644 index 0000000000000..3611c3b256fd5 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames24_ES5(target=es5).symbols @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames24_ES5.ts] //// + +=== computedPropertyNames24_ES5.ts === +class Base { +>Base : Symbol(Base, Decl(computedPropertyNames24_ES5.ts, 0, 0)) + + bar() { +>bar : Symbol(Base.bar, Decl(computedPropertyNames24_ES5.ts, 0, 12)) + + return 0; + } +} +class C extends Base { +>C : Symbol(C, Decl(computedPropertyNames24_ES5.ts, 4, 1)) +>Base : Symbol(Base, Decl(computedPropertyNames24_ES5.ts, 0, 0)) + + [super.bar()]() { } +>[super.bar()] : Symbol(C[super.bar()], Decl(computedPropertyNames24_ES5.ts, 5, 22)) +} diff --git a/tests/baselines/reference/computedPropertyNames24_ES5(target=es5).types b/tests/baselines/reference/computedPropertyNames24_ES5(target=es5).types new file mode 100644 index 0000000000000..5de3012db129e --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames24_ES5(target=es5).types @@ -0,0 +1,34 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames24_ES5.ts] //// + +=== computedPropertyNames24_ES5.ts === +class Base { +>Base : Base +> : ^^^^ + + bar() { +>bar : () => number +> : ^^^^^^^^^^^^ + + return 0; +>0 : 0 +> : ^ + } +} +class C extends Base { +>C : C +> : ^ +>Base : Base +> : ^^^^ + + [super.bar()]() { } +>[super.bar()] : () => void +> : ^^^^^^^^^^ +>super.bar() : any +> : ^^^ +>super.bar : any +> : ^^^ +>super : any +> : ^^^ +>bar : any +> : ^^^ +} diff --git a/tests/baselines/reference/computedPropertyNames25_ES5(target=es2015).js b/tests/baselines/reference/computedPropertyNames25_ES5(target=es2015).js new file mode 100644 index 0000000000000..f88a8d16d5ef1 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames25_ES5(target=es2015).js @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames25_ES5.ts] //// + +//// [computedPropertyNames25_ES5.ts] +class Base { + bar() { + return 0; + } +} +class C extends Base { + foo() { + var obj = { + [super.bar()]() { } + }; + return 0; + } +} + +//// [computedPropertyNames25_ES5.js] +class Base { + bar() { + return 0; + } +} +class C extends Base { + foo() { + var obj = { + [super.bar()]() { } + }; + return 0; + } +} diff --git a/tests/baselines/reference/computedPropertyNames25_ES5.symbols b/tests/baselines/reference/computedPropertyNames25_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/computedPropertyNames25_ES5.symbols rename to tests/baselines/reference/computedPropertyNames25_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/computedPropertyNames25_ES5.types b/tests/baselines/reference/computedPropertyNames25_ES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/computedPropertyNames25_ES5.types rename to tests/baselines/reference/computedPropertyNames25_ES5(target=es2015).types diff --git a/tests/baselines/reference/computedPropertyNames25_ES5.js b/tests/baselines/reference/computedPropertyNames25_ES5(target=es5).js similarity index 100% rename from tests/baselines/reference/computedPropertyNames25_ES5.js rename to tests/baselines/reference/computedPropertyNames25_ES5(target=es5).js diff --git a/tests/baselines/reference/computedPropertyNames25_ES5(target=es5).symbols b/tests/baselines/reference/computedPropertyNames25_ES5(target=es5).symbols new file mode 100644 index 0000000000000..b04bf8823fb2f --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames25_ES5(target=es5).symbols @@ -0,0 +1,32 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames25_ES5.ts] //// + +=== computedPropertyNames25_ES5.ts === +class Base { +>Base : Symbol(Base, Decl(computedPropertyNames25_ES5.ts, 0, 0)) + + bar() { +>bar : Symbol(Base.bar, Decl(computedPropertyNames25_ES5.ts, 0, 12)) + + return 0; + } +} +class C extends Base { +>C : Symbol(C, Decl(computedPropertyNames25_ES5.ts, 4, 1)) +>Base : Symbol(Base, Decl(computedPropertyNames25_ES5.ts, 0, 0)) + + foo() { +>foo : Symbol(C.foo, Decl(computedPropertyNames25_ES5.ts, 5, 22)) + + var obj = { +>obj : Symbol(obj, Decl(computedPropertyNames25_ES5.ts, 7, 11)) + + [super.bar()]() { } +>[super.bar()] : Symbol([super.bar()], Decl(computedPropertyNames25_ES5.ts, 7, 19)) +>super.bar : Symbol(Base.bar, Decl(computedPropertyNames25_ES5.ts, 0, 12)) +>super : Symbol(Base, Decl(computedPropertyNames25_ES5.ts, 0, 0)) +>bar : Symbol(Base.bar, Decl(computedPropertyNames25_ES5.ts, 0, 12)) + + }; + return 0; + } +} diff --git a/tests/baselines/reference/computedPropertyNames25_ES5(target=es5).types b/tests/baselines/reference/computedPropertyNames25_ES5(target=es5).types new file mode 100644 index 0000000000000..474bf374a272b --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames25_ES5(target=es5).types @@ -0,0 +1,50 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames25_ES5.ts] //// + +=== computedPropertyNames25_ES5.ts === +class Base { +>Base : Base +> : ^^^^ + + bar() { +>bar : () => number +> : ^^^^^^^^^^^^ + + return 0; +>0 : 0 +> : ^ + } +} +class C extends Base { +>C : C +> : ^ +>Base : Base +> : ^^^^ + + foo() { +>foo : () => number +> : ^^^^^^^^^^^^ + + var obj = { +>obj : { [x: number]: () => void; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ [super.bar()]() { } } : { [x: number]: () => void; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + [super.bar()]() { } +>[super.bar()] : () => void +> : ^^^^^^^^^^ +>super.bar() : number +> : ^^^^^^ +>super.bar : () => number +> : ^^^^^^^^^^^^ +>super : Base +> : ^^^^ +>bar : () => number +> : ^^^^^^^^^^^^ + + }; + return 0; +>0 : 0 +> : ^ + } +} diff --git a/tests/baselines/reference/computedPropertyNames26_ES5.errors.txt b/tests/baselines/reference/computedPropertyNames26_ES5(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/computedPropertyNames26_ES5.errors.txt rename to tests/baselines/reference/computedPropertyNames26_ES5(target=es2015).errors.txt diff --git a/tests/baselines/reference/computedPropertyNames26_ES5(target=es2015).js b/tests/baselines/reference/computedPropertyNames26_ES5(target=es2015).js new file mode 100644 index 0000000000000..86dc0fcc4e11f --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames26_ES5(target=es2015).js @@ -0,0 +1,23 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames26_ES5.ts] //// + +//// [computedPropertyNames26_ES5.ts] +class Base { + bar() { + return 0; + } +} +class C extends Base { + [ + { [super.bar()]: 1 }[0] + ]() { } +} + +//// [computedPropertyNames26_ES5.js] +class Base { + bar() { + return 0; + } +} +class C extends Base { + [{ [super.bar()]: 1 }[0]]() { } +} diff --git a/tests/baselines/reference/computedPropertyNames26_ES5.symbols b/tests/baselines/reference/computedPropertyNames26_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/computedPropertyNames26_ES5.symbols rename to tests/baselines/reference/computedPropertyNames26_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/computedPropertyNames26_ES5.types b/tests/baselines/reference/computedPropertyNames26_ES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/computedPropertyNames26_ES5.types rename to tests/baselines/reference/computedPropertyNames26_ES5(target=es2015).types diff --git a/tests/baselines/reference/computedPropertyNames26_ES5(target=es5).errors.txt b/tests/baselines/reference/computedPropertyNames26_ES5(target=es5).errors.txt new file mode 100644 index 0000000000000..b2357e21e1862 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames26_ES5(target=es5).errors.txt @@ -0,0 +1,16 @@ +computedPropertyNames26_ES5.ts(8,12): error TS2466: 'super' cannot be referenced in a computed property name. + + +==== computedPropertyNames26_ES5.ts (1 errors) ==== + class Base { + bar() { + return 0; + } + } + class C extends Base { + [ + { [super.bar()]: 1 }[0] + ~~~~~ +!!! error TS2466: 'super' cannot be referenced in a computed property name. + ]() { } + } \ No newline at end of file diff --git a/tests/baselines/reference/computedPropertyNames26_ES5.js b/tests/baselines/reference/computedPropertyNames26_ES5(target=es5).js similarity index 100% rename from tests/baselines/reference/computedPropertyNames26_ES5.js rename to tests/baselines/reference/computedPropertyNames26_ES5(target=es5).js diff --git a/tests/baselines/reference/computedPropertyNames26_ES5(target=es5).symbols b/tests/baselines/reference/computedPropertyNames26_ES5(target=es5).symbols new file mode 100644 index 0000000000000..e3ba07d0fc437 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames26_ES5(target=es5).symbols @@ -0,0 +1,26 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames26_ES5.ts] //// + +=== computedPropertyNames26_ES5.ts === +class Base { +>Base : Symbol(Base, Decl(computedPropertyNames26_ES5.ts, 0, 0)) + + bar() { +>bar : Symbol(Base.bar, Decl(computedPropertyNames26_ES5.ts, 0, 12)) + + return 0; + } +} +class C extends Base { +>C : Symbol(C, Decl(computedPropertyNames26_ES5.ts, 4, 1)) +>Base : Symbol(Base, Decl(computedPropertyNames26_ES5.ts, 0, 0)) + + [ +>[ { [super.bar()]: 1 }[0] ] : Symbol(C[ + { [super.bar()]: 1 }[0] + ], Decl(computedPropertyNames26_ES5.ts, 5, 22)) + + { [super.bar()]: 1 }[0] +>[super.bar()] : Symbol([super.bar()], Decl(computedPropertyNames26_ES5.ts, 7, 9)) + + ]() { } +} diff --git a/tests/baselines/reference/computedPropertyNames26_ES5(target=es5).types b/tests/baselines/reference/computedPropertyNames26_ES5(target=es5).types new file mode 100644 index 0000000000000..ff400f8104138 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames26_ES5(target=es5).types @@ -0,0 +1,48 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames26_ES5.ts] //// + +=== computedPropertyNames26_ES5.ts === +class Base { +>Base : Base +> : ^^^^ + + bar() { +>bar : () => number +> : ^^^^^^^^^^^^ + + return 0; +>0 : 0 +> : ^ + } +} +class C extends Base { +>C : C +> : ^ +>Base : Base +> : ^^^^ + + [ +>[ { [super.bar()]: 1 }[0] ] : () => void +> : ^^^^^^^^^^ + + { [super.bar()]: 1 }[0] +>{ [super.bar()]: 1 }[0] : number +> : ^^^^^^ +>{ [super.bar()]: 1 } : { [x: number]: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^ +>[super.bar()] : number +> : ^^^^^^ +>super.bar() : any +> : ^^^ +>super.bar : any +> : ^^^ +>super : any +> : ^^^ +>bar : any +> : ^^^ +>1 : 1 +> : ^ +>0 : 0 +> : ^ + + ]() { } +} diff --git a/tests/baselines/reference/computedPropertyNames27_ES5.errors.txt b/tests/baselines/reference/computedPropertyNames27_ES5(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/computedPropertyNames27_ES5.errors.txt rename to tests/baselines/reference/computedPropertyNames27_ES5(target=es2015).errors.txt diff --git a/tests/baselines/reference/computedPropertyNames27_ES5(target=es2015).js b/tests/baselines/reference/computedPropertyNames27_ES5(target=es2015).js new file mode 100644 index 0000000000000..c821f62c459c4 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames27_ES5(target=es2015).js @@ -0,0 +1,15 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames27_ES5.ts] //// + +//// [computedPropertyNames27_ES5.ts] +class Base { +} +class C extends Base { + [(super(), "prop")]() { } +} + +//// [computedPropertyNames27_ES5.js] +class Base { +} +class C extends Base { + [(super(), "prop")]() { } +} diff --git a/tests/baselines/reference/computedPropertyNames27_ES5.symbols b/tests/baselines/reference/computedPropertyNames27_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/computedPropertyNames27_ES5.symbols rename to tests/baselines/reference/computedPropertyNames27_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/computedPropertyNames27_ES5.types b/tests/baselines/reference/computedPropertyNames27_ES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/computedPropertyNames27_ES5.types rename to tests/baselines/reference/computedPropertyNames27_ES5(target=es2015).types diff --git a/tests/baselines/reference/computedPropertyNames27_ES5(target=es5).errors.txt b/tests/baselines/reference/computedPropertyNames27_ES5(target=es5).errors.txt new file mode 100644 index 0000000000000..de9f7d9f1f18b --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames27_ES5(target=es5).errors.txt @@ -0,0 +1,11 @@ +computedPropertyNames27_ES5.ts(4,7): error TS2466: 'super' cannot be referenced in a computed property name. + + +==== computedPropertyNames27_ES5.ts (1 errors) ==== + class Base { + } + class C extends Base { + [(super(), "prop")]() { } + ~~~~~ +!!! error TS2466: 'super' cannot be referenced in a computed property name. + } \ No newline at end of file diff --git a/tests/baselines/reference/computedPropertyNames27_ES5.js b/tests/baselines/reference/computedPropertyNames27_ES5(target=es5).js similarity index 100% rename from tests/baselines/reference/computedPropertyNames27_ES5.js rename to tests/baselines/reference/computedPropertyNames27_ES5(target=es5).js diff --git a/tests/baselines/reference/computedPropertyNames27_ES5(target=es5).symbols b/tests/baselines/reference/computedPropertyNames27_ES5(target=es5).symbols new file mode 100644 index 0000000000000..a22c946c0263c --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames27_ES5(target=es5).symbols @@ -0,0 +1,13 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames27_ES5.ts] //// + +=== computedPropertyNames27_ES5.ts === +class Base { +>Base : Symbol(Base, Decl(computedPropertyNames27_ES5.ts, 0, 0)) +} +class C extends Base { +>C : Symbol(C, Decl(computedPropertyNames27_ES5.ts, 1, 1)) +>Base : Symbol(Base, Decl(computedPropertyNames27_ES5.ts, 0, 0)) + + [(super(), "prop")]() { } +>[(super(), "prop")] : Symbol(C[(super(), "prop")], Decl(computedPropertyNames27_ES5.ts, 2, 22)) +} diff --git a/tests/baselines/reference/computedPropertyNames27_ES5(target=es5).types b/tests/baselines/reference/computedPropertyNames27_ES5(target=es5).types new file mode 100644 index 0000000000000..6f0465091704a --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames27_ES5(target=es5).types @@ -0,0 +1,27 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames27_ES5.ts] //// + +=== computedPropertyNames27_ES5.ts === +class Base { +>Base : Base +> : ^^^^ +} +class C extends Base { +>C : C +> : ^ +>Base : Base +> : ^^^^ + + [(super(), "prop")]() { } +>[(super(), "prop")] : () => void +> : ^^^^^^^^^^ +>(super(), "prop") : "prop" +> : ^^^^^^ +>super(), "prop" : "prop" +> : ^^^^^^ +>super() : void +> : ^^^^ +>super : any +> : ^^^ +>"prop" : "prop" +> : ^^^^^^ +} diff --git a/tests/baselines/reference/computedPropertyNames28_ES5(target=es2015).js b/tests/baselines/reference/computedPropertyNames28_ES5(target=es2015).js new file mode 100644 index 0000000000000..8d25479ae5e06 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames28_ES5(target=es2015).js @@ -0,0 +1,25 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames28_ES5.ts] //// + +//// [computedPropertyNames28_ES5.ts] +class Base { +} +class C extends Base { + constructor() { + super(); + var obj = { + [(super(), "prop")]() { } + }; + } +} + +//// [computedPropertyNames28_ES5.js] +class Base { +} +class C extends Base { + constructor() { + super(); + var obj = { + [(super(), "prop")]() { } + }; + } +} diff --git a/tests/baselines/reference/computedPropertyNames28_ES5.symbols b/tests/baselines/reference/computedPropertyNames28_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/computedPropertyNames28_ES5.symbols rename to tests/baselines/reference/computedPropertyNames28_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/computedPropertyNames28_ES5.types b/tests/baselines/reference/computedPropertyNames28_ES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/computedPropertyNames28_ES5.types rename to tests/baselines/reference/computedPropertyNames28_ES5(target=es2015).types diff --git a/tests/baselines/reference/computedPropertyNames28_ES5.js b/tests/baselines/reference/computedPropertyNames28_ES5(target=es5).js similarity index 100% rename from tests/baselines/reference/computedPropertyNames28_ES5.js rename to tests/baselines/reference/computedPropertyNames28_ES5(target=es5).js diff --git a/tests/baselines/reference/computedPropertyNames28_ES5(target=es5).symbols b/tests/baselines/reference/computedPropertyNames28_ES5(target=es5).symbols new file mode 100644 index 0000000000000..8c0444cdad4c4 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames28_ES5(target=es5).symbols @@ -0,0 +1,24 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames28_ES5.ts] //// + +=== computedPropertyNames28_ES5.ts === +class Base { +>Base : Symbol(Base, Decl(computedPropertyNames28_ES5.ts, 0, 0)) +} +class C extends Base { +>C : Symbol(C, Decl(computedPropertyNames28_ES5.ts, 1, 1)) +>Base : Symbol(Base, Decl(computedPropertyNames28_ES5.ts, 0, 0)) + + constructor() { + super(); +>super : Symbol(Base, Decl(computedPropertyNames28_ES5.ts, 0, 0)) + + var obj = { +>obj : Symbol(obj, Decl(computedPropertyNames28_ES5.ts, 5, 11)) + + [(super(), "prop")]() { } +>[(super(), "prop")] : Symbol([(super(), "prop")], Decl(computedPropertyNames28_ES5.ts, 5, 19)) +>super : Symbol(Base, Decl(computedPropertyNames28_ES5.ts, 0, 0)) + + }; + } +} diff --git a/tests/baselines/reference/computedPropertyNames28_ES5(target=es5).types b/tests/baselines/reference/computedPropertyNames28_ES5(target=es5).types new file mode 100644 index 0000000000000..628a9e9fdab0a --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames28_ES5(target=es5).types @@ -0,0 +1,43 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames28_ES5.ts] //// + +=== computedPropertyNames28_ES5.ts === +class Base { +>Base : Base +> : ^^^^ +} +class C extends Base { +>C : C +> : ^ +>Base : Base +> : ^^^^ + + constructor() { + super(); +>super() : void +> : ^^^^ +>super : typeof Base +> : ^^^^^^^^^^^ + + var obj = { +>obj : { prop(): void; } +> : ^^^^^^^^^^^^^^^^^ +>{ [(super(), "prop")]() { } } : { prop(): void; } +> : ^^^^^^^^^^^^^^^^^ + + [(super(), "prop")]() { } +>[(super(), "prop")] : () => void +> : ^^^^^^^^^^ +>(super(), "prop") : "prop" +> : ^^^^^^ +>super(), "prop" : "prop" +> : ^^^^^^ +>super() : void +> : ^^^^ +>super : typeof Base +> : ^^^^^^^^^^^ +>"prop" : "prop" +> : ^^^^^^ + + }; + } +} diff --git a/tests/baselines/reference/computedPropertyNames29_ES5(target=es2015).js b/tests/baselines/reference/computedPropertyNames29_ES5(target=es2015).js new file mode 100644 index 0000000000000..1e7bdff5a6faa --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames29_ES5(target=es2015).js @@ -0,0 +1,25 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames29_ES5.ts] //// + +//// [computedPropertyNames29_ES5.ts] +class C { + bar() { + () => { + var obj = { + [this.bar()]() { } // needs capture + }; + } + return 0; + } +} + +//// [computedPropertyNames29_ES5.js] +class C { + bar() { + () => { + var obj = { + [this.bar()]() { } // needs capture + }; + }; + return 0; + } +} diff --git a/tests/baselines/reference/computedPropertyNames29_ES5.symbols b/tests/baselines/reference/computedPropertyNames29_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/computedPropertyNames29_ES5.symbols rename to tests/baselines/reference/computedPropertyNames29_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/computedPropertyNames29_ES5.types b/tests/baselines/reference/computedPropertyNames29_ES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/computedPropertyNames29_ES5.types rename to tests/baselines/reference/computedPropertyNames29_ES5(target=es2015).types diff --git a/tests/baselines/reference/computedPropertyNames29_ES5.js b/tests/baselines/reference/computedPropertyNames29_ES5(target=es5).js similarity index 100% rename from tests/baselines/reference/computedPropertyNames29_ES5.js rename to tests/baselines/reference/computedPropertyNames29_ES5(target=es5).js diff --git a/tests/baselines/reference/computedPropertyNames29_ES5(target=es5).symbols b/tests/baselines/reference/computedPropertyNames29_ES5(target=es5).symbols new file mode 100644 index 0000000000000..7206796f6e664 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames29_ES5(target=es5).symbols @@ -0,0 +1,24 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames29_ES5.ts] //// + +=== computedPropertyNames29_ES5.ts === +class C { +>C : Symbol(C, Decl(computedPropertyNames29_ES5.ts, 0, 0)) + + bar() { +>bar : Symbol(C.bar, Decl(computedPropertyNames29_ES5.ts, 0, 9)) + + () => { + var obj = { +>obj : Symbol(obj, Decl(computedPropertyNames29_ES5.ts, 3, 15)) + + [this.bar()]() { } // needs capture +>[this.bar()] : Symbol([this.bar()], Decl(computedPropertyNames29_ES5.ts, 3, 23)) +>this.bar : Symbol(C.bar, Decl(computedPropertyNames29_ES5.ts, 0, 9)) +>this : Symbol(C, Decl(computedPropertyNames29_ES5.ts, 0, 0)) +>bar : Symbol(C.bar, Decl(computedPropertyNames29_ES5.ts, 0, 9)) + + }; + } + return 0; + } +} diff --git a/tests/baselines/reference/computedPropertyNames29_ES5(target=es5).types b/tests/baselines/reference/computedPropertyNames29_ES5(target=es5).types new file mode 100644 index 0000000000000..d6ad75e65907c --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames29_ES5(target=es5).types @@ -0,0 +1,40 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames29_ES5.ts] //// + +=== computedPropertyNames29_ES5.ts === +class C { +>C : C +> : ^ + + bar() { +>bar : () => number +> : ^^^^^^^^^^^^ + + () => { +>() => { var obj = { [this.bar()]() { } // needs capture }; } : () => void +> : ^^^^^^^^^^ + + var obj = { +>obj : { [x: number]: () => void; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ [this.bar()]() { } // needs capture } : { [x: number]: () => void; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + [this.bar()]() { } // needs capture +>[this.bar()] : () => void +> : ^^^^^^^^^^ +>this.bar() : number +> : ^^^^^^ +>this.bar : () => number +> : ^^^^^^^^^^^^ +>this : this +> : ^^^^ +>bar : () => number +> : ^^^^^^^^^^^^ + + }; + } + return 0; +>0 : 0 +> : ^ + } +} diff --git a/tests/baselines/reference/computedPropertyNames2_ES5.errors.txt b/tests/baselines/reference/computedPropertyNames2_ES5(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/computedPropertyNames2_ES5.errors.txt rename to tests/baselines/reference/computedPropertyNames2_ES5(target=es2015).errors.txt diff --git a/tests/baselines/reference/computedPropertyNames2_ES5(target=es2015).js b/tests/baselines/reference/computedPropertyNames2_ES5(target=es2015).js new file mode 100644 index 0000000000000..2af28cda81d3c --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames2_ES5(target=es2015).js @@ -0,0 +1,25 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames2_ES5.ts] //// + +//// [computedPropertyNames2_ES5.ts] +var methodName = "method"; +var accessorName = "accessor"; +class C { + [methodName]() { } + static [methodName]() { } + get [accessorName]() { } + set [accessorName](v) { } + static get [accessorName]() { } + static set [accessorName](v) { } +} + +//// [computedPropertyNames2_ES5.js] +var methodName = "method"; +var accessorName = "accessor"; +class C { + [methodName]() { } + static [methodName]() { } + get [accessorName]() { } + set [accessorName](v) { } + static get [accessorName]() { } + static set [accessorName](v) { } +} diff --git a/tests/baselines/reference/computedPropertyNames2_ES5.symbols b/tests/baselines/reference/computedPropertyNames2_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/computedPropertyNames2_ES5.symbols rename to tests/baselines/reference/computedPropertyNames2_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/computedPropertyNames2_ES5.types b/tests/baselines/reference/computedPropertyNames2_ES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/computedPropertyNames2_ES5.types rename to tests/baselines/reference/computedPropertyNames2_ES5(target=es2015).types diff --git a/tests/baselines/reference/computedPropertyNames2_ES5(target=es5).errors.txt b/tests/baselines/reference/computedPropertyNames2_ES5(target=es5).errors.txt new file mode 100644 index 0000000000000..2d1b4f1abc814 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames2_ES5(target=es5).errors.txt @@ -0,0 +1,19 @@ +computedPropertyNames2_ES5.ts(6,9): error TS2378: A 'get' accessor must return a value. +computedPropertyNames2_ES5.ts(8,16): error TS2378: A 'get' accessor must return a value. + + +==== computedPropertyNames2_ES5.ts (2 errors) ==== + var methodName = "method"; + var accessorName = "accessor"; + class C { + [methodName]() { } + static [methodName]() { } + get [accessorName]() { } + ~~~~~~~~~~~~~~ +!!! error TS2378: A 'get' accessor must return a value. + set [accessorName](v) { } + static get [accessorName]() { } + ~~~~~~~~~~~~~~ +!!! error TS2378: A 'get' accessor must return a value. + static set [accessorName](v) { } + } \ No newline at end of file diff --git a/tests/baselines/reference/computedPropertyNames2_ES5.js b/tests/baselines/reference/computedPropertyNames2_ES5(target=es5).js similarity index 100% rename from tests/baselines/reference/computedPropertyNames2_ES5.js rename to tests/baselines/reference/computedPropertyNames2_ES5(target=es5).js diff --git a/tests/baselines/reference/computedPropertyNames2_ES5(target=es5).symbols b/tests/baselines/reference/computedPropertyNames2_ES5(target=es5).symbols new file mode 100644 index 0000000000000..1d8131120cb66 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames2_ES5(target=es5).symbols @@ -0,0 +1,38 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames2_ES5.ts] //// + +=== computedPropertyNames2_ES5.ts === +var methodName = "method"; +>methodName : Symbol(methodName, Decl(computedPropertyNames2_ES5.ts, 0, 3)) + +var accessorName = "accessor"; +>accessorName : Symbol(accessorName, Decl(computedPropertyNames2_ES5.ts, 1, 3)) + +class C { +>C : Symbol(C, Decl(computedPropertyNames2_ES5.ts, 1, 30)) + + [methodName]() { } +>[methodName] : Symbol(C[methodName], Decl(computedPropertyNames2_ES5.ts, 2, 9)) +>methodName : Symbol(methodName, Decl(computedPropertyNames2_ES5.ts, 0, 3)) + + static [methodName]() { } +>[methodName] : Symbol(C[methodName], Decl(computedPropertyNames2_ES5.ts, 3, 22)) +>methodName : Symbol(methodName, Decl(computedPropertyNames2_ES5.ts, 0, 3)) + + get [accessorName]() { } +>[accessorName] : Symbol(C[accessorName], Decl(computedPropertyNames2_ES5.ts, 4, 29)) +>accessorName : Symbol(accessorName, Decl(computedPropertyNames2_ES5.ts, 1, 3)) + + set [accessorName](v) { } +>[accessorName] : Symbol(C[accessorName], Decl(computedPropertyNames2_ES5.ts, 5, 28)) +>accessorName : Symbol(accessorName, Decl(computedPropertyNames2_ES5.ts, 1, 3)) +>v : Symbol(v, Decl(computedPropertyNames2_ES5.ts, 6, 23)) + + static get [accessorName]() { } +>[accessorName] : Symbol(C[accessorName], Decl(computedPropertyNames2_ES5.ts, 6, 29)) +>accessorName : Symbol(accessorName, Decl(computedPropertyNames2_ES5.ts, 1, 3)) + + static set [accessorName](v) { } +>[accessorName] : Symbol(C[accessorName], Decl(computedPropertyNames2_ES5.ts, 7, 35)) +>accessorName : Symbol(accessorName, Decl(computedPropertyNames2_ES5.ts, 1, 3)) +>v : Symbol(v, Decl(computedPropertyNames2_ES5.ts, 8, 30)) +} diff --git a/tests/baselines/reference/computedPropertyNames2_ES5(target=es5).types b/tests/baselines/reference/computedPropertyNames2_ES5(target=es5).types new file mode 100644 index 0000000000000..ab50d21f65920 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames2_ES5(target=es5).types @@ -0,0 +1,59 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames2_ES5.ts] //// + +=== computedPropertyNames2_ES5.ts === +var methodName = "method"; +>methodName : string +> : ^^^^^^ +>"method" : "method" +> : ^^^^^^^^ + +var accessorName = "accessor"; +>accessorName : string +> : ^^^^^^ +>"accessor" : "accessor" +> : ^^^^^^^^^^ + +class C { +>C : C +> : ^ + + [methodName]() { } +>[methodName] : () => void +> : ^^^^^^^^^^ +>methodName : string +> : ^^^^^^ + + static [methodName]() { } +>[methodName] : () => void +> : ^^^^^^^^^^ +>methodName : string +> : ^^^^^^ + + get [accessorName]() { } +>[accessorName] : void +> : ^^^^ +>accessorName : string +> : ^^^^^^ + + set [accessorName](v) { } +>[accessorName] : any +> : ^^^ +>accessorName : string +> : ^^^^^^ +>v : any +> : ^^^ + + static get [accessorName]() { } +>[accessorName] : void +> : ^^^^ +>accessorName : string +> : ^^^^^^ + + static set [accessorName](v) { } +>[accessorName] : any +> : ^^^ +>accessorName : string +> : ^^^^^^ +>v : any +> : ^^^ +} diff --git a/tests/baselines/reference/computedPropertyNames30_ES5.errors.txt b/tests/baselines/reference/computedPropertyNames30_ES5(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/computedPropertyNames30_ES5.errors.txt rename to tests/baselines/reference/computedPropertyNames30_ES5(target=es2015).errors.txt diff --git a/tests/baselines/reference/computedPropertyNames30_ES5(target=es2015).js b/tests/baselines/reference/computedPropertyNames30_ES5(target=es2015).js new file mode 100644 index 0000000000000..d3b0ba152a841 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames30_ES5(target=es2015).js @@ -0,0 +1,35 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames30_ES5.ts] //// + +//// [computedPropertyNames30_ES5.ts] +class Base { +} +class C extends Base { + constructor() { + super(); + () => { + var obj = { + // Ideally, we would capture this. But the reference is + // illegal, and not capturing this is consistent with + //treatment of other similar violations. + [(super(), "prop")]() { } + }; + } + } +} + +//// [computedPropertyNames30_ES5.js] +class Base { +} +class C extends Base { + constructor() { + super(); + () => { + var obj = { + // Ideally, we would capture this. But the reference is + // illegal, and not capturing this is consistent with + //treatment of other similar violations. + [(super(), "prop")]() { } + }; + }; + } +} diff --git a/tests/baselines/reference/computedPropertyNames30_ES5.symbols b/tests/baselines/reference/computedPropertyNames30_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/computedPropertyNames30_ES5.symbols rename to tests/baselines/reference/computedPropertyNames30_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/computedPropertyNames30_ES5.types b/tests/baselines/reference/computedPropertyNames30_ES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/computedPropertyNames30_ES5.types rename to tests/baselines/reference/computedPropertyNames30_ES5(target=es2015).types diff --git a/tests/baselines/reference/computedPropertyNames30_ES5(target=es5).errors.txt b/tests/baselines/reference/computedPropertyNames30_ES5(target=es5).errors.txt new file mode 100644 index 0000000000000..4c5ccb37f84e9 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames30_ES5(target=es5).errors.txt @@ -0,0 +1,21 @@ +computedPropertyNames30_ES5.ts(11,19): error TS2466: 'super' cannot be referenced in a computed property name. + + +==== computedPropertyNames30_ES5.ts (1 errors) ==== + class Base { + } + class C extends Base { + constructor() { + super(); + () => { + var obj = { + // Ideally, we would capture this. But the reference is + // illegal, and not capturing this is consistent with + //treatment of other similar violations. + [(super(), "prop")]() { } + ~~~~~ +!!! error TS2466: 'super' cannot be referenced in a computed property name. + }; + } + } + } \ No newline at end of file diff --git a/tests/baselines/reference/computedPropertyNames30_ES5.js b/tests/baselines/reference/computedPropertyNames30_ES5(target=es5).js similarity index 100% rename from tests/baselines/reference/computedPropertyNames30_ES5.js rename to tests/baselines/reference/computedPropertyNames30_ES5(target=es5).js diff --git a/tests/baselines/reference/computedPropertyNames30_ES5(target=es5).symbols b/tests/baselines/reference/computedPropertyNames30_ES5(target=es5).symbols new file mode 100644 index 0000000000000..86b57c214d7b8 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames30_ES5(target=es5).symbols @@ -0,0 +1,28 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames30_ES5.ts] //// + +=== computedPropertyNames30_ES5.ts === +class Base { +>Base : Symbol(Base, Decl(computedPropertyNames30_ES5.ts, 0, 0)) +} +class C extends Base { +>C : Symbol(C, Decl(computedPropertyNames30_ES5.ts, 1, 1)) +>Base : Symbol(Base, Decl(computedPropertyNames30_ES5.ts, 0, 0)) + + constructor() { + super(); +>super : Symbol(Base, Decl(computedPropertyNames30_ES5.ts, 0, 0)) + + () => { + var obj = { +>obj : Symbol(obj, Decl(computedPropertyNames30_ES5.ts, 6, 15)) + + // Ideally, we would capture this. But the reference is + // illegal, and not capturing this is consistent with + //treatment of other similar violations. + [(super(), "prop")]() { } +>[(super(), "prop")] : Symbol([(super(), "prop")], Decl(computedPropertyNames30_ES5.ts, 6, 23)) + + }; + } + } +} diff --git a/tests/baselines/reference/computedPropertyNames30_ES5(target=es5).types b/tests/baselines/reference/computedPropertyNames30_ES5(target=es5).types new file mode 100644 index 0000000000000..7ca543fd4fb94 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames30_ES5(target=es5).types @@ -0,0 +1,51 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames30_ES5.ts] //// + +=== computedPropertyNames30_ES5.ts === +class Base { +>Base : Base +> : ^^^^ +} +class C extends Base { +>C : C +> : ^ +>Base : Base +> : ^^^^ + + constructor() { + super(); +>super() : void +> : ^^^^ +>super : typeof Base +> : ^^^^^^^^^^^ + + () => { +>() => { var obj = { // Ideally, we would capture this. But the reference is // illegal, and not capturing this is consistent with //treatment of other similar violations. [(super(), "prop")]() { } }; } : () => void +> : ^^^^^^^^^^ + + var obj = { +>obj : { prop(): void; } +> : ^^^^^^^^^^^^^^^^^ +>{ // Ideally, we would capture this. But the reference is // illegal, and not capturing this is consistent with //treatment of other similar violations. [(super(), "prop")]() { } } : { prop(): void; } +> : ^^^^^^^^^^^^^^^^^ + + // Ideally, we would capture this. But the reference is + // illegal, and not capturing this is consistent with + //treatment of other similar violations. + [(super(), "prop")]() { } +>[(super(), "prop")] : () => void +> : ^^^^^^^^^^ +>(super(), "prop") : "prop" +> : ^^^^^^ +>super(), "prop" : "prop" +> : ^^^^^^ +>super() : void +> : ^^^^ +>super : any +> : ^^^ +>"prop" : "prop" +> : ^^^^^^ + + }; + } + } +} diff --git a/tests/baselines/reference/computedPropertyNames31_ES5(target=es2015).js b/tests/baselines/reference/computedPropertyNames31_ES5(target=es2015).js new file mode 100644 index 0000000000000..4d35049eec9c6 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames31_ES5(target=es2015).js @@ -0,0 +1,35 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames31_ES5.ts] //// + +//// [computedPropertyNames31_ES5.ts] +class Base { + bar() { + return 0; + } +} +class C extends Base { + foo() { + () => { + var obj = { + [super.bar()]() { } // needs capture + }; + } + return 0; + } +} + +//// [computedPropertyNames31_ES5.js] +class Base { + bar() { + return 0; + } +} +class C extends Base { + foo() { + () => { + var obj = { + [super.bar()]() { } // needs capture + }; + }; + return 0; + } +} diff --git a/tests/baselines/reference/computedPropertyNames31_ES5.symbols b/tests/baselines/reference/computedPropertyNames31_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/computedPropertyNames31_ES5.symbols rename to tests/baselines/reference/computedPropertyNames31_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/computedPropertyNames31_ES5.types b/tests/baselines/reference/computedPropertyNames31_ES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/computedPropertyNames31_ES5.types rename to tests/baselines/reference/computedPropertyNames31_ES5(target=es2015).types diff --git a/tests/baselines/reference/computedPropertyNames31_ES5.js b/tests/baselines/reference/computedPropertyNames31_ES5(target=es5).js similarity index 100% rename from tests/baselines/reference/computedPropertyNames31_ES5.js rename to tests/baselines/reference/computedPropertyNames31_ES5(target=es5).js diff --git a/tests/baselines/reference/computedPropertyNames31_ES5(target=es5).symbols b/tests/baselines/reference/computedPropertyNames31_ES5(target=es5).symbols new file mode 100644 index 0000000000000..48872ef5bc83f --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames31_ES5(target=es5).symbols @@ -0,0 +1,34 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames31_ES5.ts] //// + +=== computedPropertyNames31_ES5.ts === +class Base { +>Base : Symbol(Base, Decl(computedPropertyNames31_ES5.ts, 0, 0)) + + bar() { +>bar : Symbol(Base.bar, Decl(computedPropertyNames31_ES5.ts, 0, 12)) + + return 0; + } +} +class C extends Base { +>C : Symbol(C, Decl(computedPropertyNames31_ES5.ts, 4, 1)) +>Base : Symbol(Base, Decl(computedPropertyNames31_ES5.ts, 0, 0)) + + foo() { +>foo : Symbol(C.foo, Decl(computedPropertyNames31_ES5.ts, 5, 22)) + + () => { + var obj = { +>obj : Symbol(obj, Decl(computedPropertyNames31_ES5.ts, 8, 15)) + + [super.bar()]() { } // needs capture +>[super.bar()] : Symbol([super.bar()], Decl(computedPropertyNames31_ES5.ts, 8, 23)) +>super.bar : Symbol(Base.bar, Decl(computedPropertyNames31_ES5.ts, 0, 12)) +>super : Symbol(Base, Decl(computedPropertyNames31_ES5.ts, 0, 0)) +>bar : Symbol(Base.bar, Decl(computedPropertyNames31_ES5.ts, 0, 12)) + + }; + } + return 0; + } +} diff --git a/tests/baselines/reference/computedPropertyNames31_ES5(target=es5).types b/tests/baselines/reference/computedPropertyNames31_ES5(target=es5).types new file mode 100644 index 0000000000000..722e7b757fc09 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames31_ES5(target=es5).types @@ -0,0 +1,55 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames31_ES5.ts] //// + +=== computedPropertyNames31_ES5.ts === +class Base { +>Base : Base +> : ^^^^ + + bar() { +>bar : () => number +> : ^^^^^^^^^^^^ + + return 0; +>0 : 0 +> : ^ + } +} +class C extends Base { +>C : C +> : ^ +>Base : Base +> : ^^^^ + + foo() { +>foo : () => number +> : ^^^^^^^^^^^^ + + () => { +>() => { var obj = { [super.bar()]() { } // needs capture }; } : () => void +> : ^^^^^^^^^^ + + var obj = { +>obj : { [x: number]: () => void; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ [super.bar()]() { } // needs capture } : { [x: number]: () => void; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + [super.bar()]() { } // needs capture +>[super.bar()] : () => void +> : ^^^^^^^^^^ +>super.bar() : number +> : ^^^^^^ +>super.bar : () => number +> : ^^^^^^^^^^^^ +>super : Base +> : ^^^^ +>bar : () => number +> : ^^^^^^^^^^^^ + + }; + } + return 0; +>0 : 0 +> : ^ + } +} diff --git a/tests/baselines/reference/computedPropertyNames32_ES5.errors.txt b/tests/baselines/reference/computedPropertyNames32_ES5(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/computedPropertyNames32_ES5.errors.txt rename to tests/baselines/reference/computedPropertyNames32_ES5(target=es2015).errors.txt diff --git a/tests/baselines/reference/computedPropertyNames32_ES5(target=es2015).js b/tests/baselines/reference/computedPropertyNames32_ES5(target=es2015).js new file mode 100644 index 0000000000000..b28ee1a326945 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames32_ES5(target=es2015).js @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames32_ES5.ts] //// + +//// [computedPropertyNames32_ES5.ts] +function foo() { return '' } +class C { + bar() { + return 0; + } + [foo()]() { } +} + +//// [computedPropertyNames32_ES5.js] +function foo() { return ''; } +class C { + bar() { + return 0; + } + [foo()]() { } +} diff --git a/tests/baselines/reference/computedPropertyNames32_ES5.symbols b/tests/baselines/reference/computedPropertyNames32_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/computedPropertyNames32_ES5.symbols rename to tests/baselines/reference/computedPropertyNames32_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/computedPropertyNames32_ES5.types b/tests/baselines/reference/computedPropertyNames32_ES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/computedPropertyNames32_ES5.types rename to tests/baselines/reference/computedPropertyNames32_ES5(target=es2015).types diff --git a/tests/baselines/reference/computedPropertyNames32_ES5(target=es5).errors.txt b/tests/baselines/reference/computedPropertyNames32_ES5(target=es5).errors.txt new file mode 100644 index 0000000000000..a55302245291a --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames32_ES5(target=es5).errors.txt @@ -0,0 +1,13 @@ +computedPropertyNames32_ES5.ts(6,10): error TS2467: A computed property name cannot reference a type parameter from its containing type. + + +==== computedPropertyNames32_ES5.ts (1 errors) ==== + function foo() { return '' } + class C { + bar() { + return 0; + } + [foo()]() { } + ~ +!!! error TS2467: A computed property name cannot reference a type parameter from its containing type. + } \ No newline at end of file diff --git a/tests/baselines/reference/computedPropertyNames32_ES5.js b/tests/baselines/reference/computedPropertyNames32_ES5(target=es5).js similarity index 100% rename from tests/baselines/reference/computedPropertyNames32_ES5.js rename to tests/baselines/reference/computedPropertyNames32_ES5(target=es5).js diff --git a/tests/baselines/reference/computedPropertyNames32_ES5(target=es5).symbols b/tests/baselines/reference/computedPropertyNames32_ES5(target=es5).symbols new file mode 100644 index 0000000000000..006b596c2dd73 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames32_ES5(target=es5).symbols @@ -0,0 +1,21 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames32_ES5.ts] //// + +=== computedPropertyNames32_ES5.ts === +function foo() { return '' } +>foo : Symbol(foo, Decl(computedPropertyNames32_ES5.ts, 0, 0)) +>T : Symbol(T, Decl(computedPropertyNames32_ES5.ts, 0, 13)) + +class C { +>C : Symbol(C, Decl(computedPropertyNames32_ES5.ts, 0, 31)) +>T : Symbol(T, Decl(computedPropertyNames32_ES5.ts, 1, 8)) + + bar() { +>bar : Symbol(C.bar, Decl(computedPropertyNames32_ES5.ts, 1, 12)) + + return 0; + } + [foo()]() { } +>[foo()] : Symbol(C[foo()], Decl(computedPropertyNames32_ES5.ts, 4, 5)) +>foo : Symbol(foo, Decl(computedPropertyNames32_ES5.ts, 0, 0)) +>T : Symbol(T) +} diff --git a/tests/baselines/reference/computedPropertyNames32_ES5(target=es5).types b/tests/baselines/reference/computedPropertyNames32_ES5(target=es5).types new file mode 100644 index 0000000000000..0130611caf7b8 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames32_ES5(target=es5).types @@ -0,0 +1,29 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames32_ES5.ts] //// + +=== computedPropertyNames32_ES5.ts === +function foo() { return '' } +>foo : () => string +> : ^ ^^^^^^^^^^^^^ +>'' : "" +> : ^^ + +class C { +>C : C +> : ^^^^ + + bar() { +>bar : () => number +> : ^^^^^^^^^^^^ + + return 0; +>0 : 0 +> : ^ + } + [foo()]() { } +>[foo()] : () => void +> : ^^^^^^^^^^ +>foo() : string +> : ^^^^^^ +>foo : () => string +> : ^ ^^^^^^^^^^^^^ +} diff --git a/tests/baselines/reference/computedPropertyNames33_ES5(target=es2015).js b/tests/baselines/reference/computedPropertyNames33_ES5(target=es2015).js new file mode 100644 index 0000000000000..742d79c6542fe --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames33_ES5(target=es2015).js @@ -0,0 +1,23 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames33_ES5.ts] //// + +//// [computedPropertyNames33_ES5.ts] +function foo() { return '' } +class C { + bar() { + var obj = { + [foo()]() { } + }; + return 0; + } +} + +//// [computedPropertyNames33_ES5.js] +function foo() { return ''; } +class C { + bar() { + var obj = { + [foo()]() { } + }; + return 0; + } +} diff --git a/tests/baselines/reference/computedPropertyNames33_ES5.symbols b/tests/baselines/reference/computedPropertyNames33_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/computedPropertyNames33_ES5.symbols rename to tests/baselines/reference/computedPropertyNames33_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/computedPropertyNames33_ES5.types b/tests/baselines/reference/computedPropertyNames33_ES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/computedPropertyNames33_ES5.types rename to tests/baselines/reference/computedPropertyNames33_ES5(target=es2015).types diff --git a/tests/baselines/reference/computedPropertyNames33_ES5.js b/tests/baselines/reference/computedPropertyNames33_ES5(target=es5).js similarity index 100% rename from tests/baselines/reference/computedPropertyNames33_ES5.js rename to tests/baselines/reference/computedPropertyNames33_ES5(target=es5).js diff --git a/tests/baselines/reference/computedPropertyNames33_ES5(target=es5).symbols b/tests/baselines/reference/computedPropertyNames33_ES5(target=es5).symbols new file mode 100644 index 0000000000000..87177819c798d --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames33_ES5(target=es5).symbols @@ -0,0 +1,26 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames33_ES5.ts] //// + +=== computedPropertyNames33_ES5.ts === +function foo() { return '' } +>foo : Symbol(foo, Decl(computedPropertyNames33_ES5.ts, 0, 0)) +>T : Symbol(T, Decl(computedPropertyNames33_ES5.ts, 0, 13)) + +class C { +>C : Symbol(C, Decl(computedPropertyNames33_ES5.ts, 0, 31)) +>T : Symbol(T, Decl(computedPropertyNames33_ES5.ts, 1, 8)) + + bar() { +>bar : Symbol(C.bar, Decl(computedPropertyNames33_ES5.ts, 1, 12)) + + var obj = { +>obj : Symbol(obj, Decl(computedPropertyNames33_ES5.ts, 3, 11)) + + [foo()]() { } +>[foo()] : Symbol([foo()], Decl(computedPropertyNames33_ES5.ts, 3, 19)) +>foo : Symbol(foo, Decl(computedPropertyNames33_ES5.ts, 0, 0)) +>T : Symbol(T, Decl(computedPropertyNames33_ES5.ts, 1, 8)) + + }; + return 0; + } +} diff --git a/tests/baselines/reference/computedPropertyNames33_ES5(target=es5).types b/tests/baselines/reference/computedPropertyNames33_ES5(target=es5).types new file mode 100644 index 0000000000000..7aa08a7b00fc0 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames33_ES5(target=es5).types @@ -0,0 +1,37 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames33_ES5.ts] //// + +=== computedPropertyNames33_ES5.ts === +function foo() { return '' } +>foo : () => string +> : ^ ^^^^^^^^^^^^^ +>'' : "" +> : ^^ + +class C { +>C : C +> : ^^^^ + + bar() { +>bar : () => number +> : ^^^^^^^^^^^^ + + var obj = { +>obj : { [x: string]: () => void; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ [foo()]() { } } : { [x: string]: () => void; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + [foo()]() { } +>[foo()] : () => void +> : ^^^^^^^^^^ +>foo() : string +> : ^^^^^^ +>foo : () => string +> : ^^^^^^^^^^^^^^^^^ + + }; + return 0; +>0 : 0 +> : ^ + } +} diff --git a/tests/baselines/reference/computedPropertyNames34_ES5.errors.txt b/tests/baselines/reference/computedPropertyNames34_ES5(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/computedPropertyNames34_ES5.errors.txt rename to tests/baselines/reference/computedPropertyNames34_ES5(target=es2015).errors.txt diff --git a/tests/baselines/reference/computedPropertyNames34_ES5(target=es2015).js b/tests/baselines/reference/computedPropertyNames34_ES5(target=es2015).js new file mode 100644 index 0000000000000..7c3669b6cf83f --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames34_ES5(target=es2015).js @@ -0,0 +1,23 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames34_ES5.ts] //// + +//// [computedPropertyNames34_ES5.ts] +function foo() { return '' } +class C { + static bar() { + var obj = { + [foo()]() { } + }; + return 0; + } +} + +//// [computedPropertyNames34_ES5.js] +function foo() { return ''; } +class C { + static bar() { + var obj = { + [foo()]() { } + }; + return 0; + } +} diff --git a/tests/baselines/reference/computedPropertyNames34_ES5.symbols b/tests/baselines/reference/computedPropertyNames34_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/computedPropertyNames34_ES5.symbols rename to tests/baselines/reference/computedPropertyNames34_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/computedPropertyNames34_ES5.types b/tests/baselines/reference/computedPropertyNames34_ES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/computedPropertyNames34_ES5.types rename to tests/baselines/reference/computedPropertyNames34_ES5(target=es2015).types diff --git a/tests/baselines/reference/computedPropertyNames34_ES5(target=es5).errors.txt b/tests/baselines/reference/computedPropertyNames34_ES5(target=es5).errors.txt new file mode 100644 index 0000000000000..cbf2b19ba3336 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames34_ES5(target=es5).errors.txt @@ -0,0 +1,15 @@ +computedPropertyNames34_ES5.ts(5,18): error TS2302: Static members cannot reference class type parameters. + + +==== computedPropertyNames34_ES5.ts (1 errors) ==== + function foo() { return '' } + class C { + static bar() { + var obj = { + [foo()]() { } + ~ +!!! error TS2302: Static members cannot reference class type parameters. + }; + return 0; + } + } \ No newline at end of file diff --git a/tests/baselines/reference/computedPropertyNames34_ES5.js b/tests/baselines/reference/computedPropertyNames34_ES5(target=es5).js similarity index 100% rename from tests/baselines/reference/computedPropertyNames34_ES5.js rename to tests/baselines/reference/computedPropertyNames34_ES5(target=es5).js diff --git a/tests/baselines/reference/computedPropertyNames34_ES5(target=es5).symbols b/tests/baselines/reference/computedPropertyNames34_ES5(target=es5).symbols new file mode 100644 index 0000000000000..339eabbbac2ba --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames34_ES5(target=es5).symbols @@ -0,0 +1,26 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames34_ES5.ts] //// + +=== computedPropertyNames34_ES5.ts === +function foo() { return '' } +>foo : Symbol(foo, Decl(computedPropertyNames34_ES5.ts, 0, 0)) +>T : Symbol(T, Decl(computedPropertyNames34_ES5.ts, 0, 13)) + +class C { +>C : Symbol(C, Decl(computedPropertyNames34_ES5.ts, 0, 31)) +>T : Symbol(T, Decl(computedPropertyNames34_ES5.ts, 1, 8)) + + static bar() { +>bar : Symbol(C.bar, Decl(computedPropertyNames34_ES5.ts, 1, 12)) + + var obj = { +>obj : Symbol(obj, Decl(computedPropertyNames34_ES5.ts, 3, 11)) + + [foo()]() { } +>[foo()] : Symbol([foo()], Decl(computedPropertyNames34_ES5.ts, 3, 19)) +>foo : Symbol(foo, Decl(computedPropertyNames34_ES5.ts, 0, 0)) +>T : Symbol(T) + + }; + return 0; + } +} diff --git a/tests/baselines/reference/computedPropertyNames34_ES5(target=es5).types b/tests/baselines/reference/computedPropertyNames34_ES5(target=es5).types new file mode 100644 index 0000000000000..6b4570102d747 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames34_ES5(target=es5).types @@ -0,0 +1,37 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames34_ES5.ts] //// + +=== computedPropertyNames34_ES5.ts === +function foo() { return '' } +>foo : () => string +> : ^ ^^^^^^^^^^^^^ +>'' : "" +> : ^^ + +class C { +>C : C +> : ^^^^ + + static bar() { +>bar : () => number +> : ^^^^^^^^^^^^ + + var obj = { +>obj : { [x: string]: () => void; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ [foo()]() { } } : { [x: string]: () => void; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + [foo()]() { } +>[foo()] : () => void +> : ^^^^^^^^^^ +>foo() : string +> : ^^^^^^ +>foo : () => string +> : ^ ^^^^^^^^^^^^^ + + }; + return 0; +>0 : 0 +> : ^ + } +} diff --git a/tests/baselines/reference/computedPropertyNames35_ES5.errors.txt b/tests/baselines/reference/computedPropertyNames35_ES5(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/computedPropertyNames35_ES5.errors.txt rename to tests/baselines/reference/computedPropertyNames35_ES5(target=es2015).errors.txt diff --git a/tests/baselines/reference/computedPropertyNames35_ES5.js b/tests/baselines/reference/computedPropertyNames35_ES5(target=es2015).js similarity index 100% rename from tests/baselines/reference/computedPropertyNames35_ES5.js rename to tests/baselines/reference/computedPropertyNames35_ES5(target=es2015).js diff --git a/tests/baselines/reference/computedPropertyNames35_ES5.symbols b/tests/baselines/reference/computedPropertyNames35_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/computedPropertyNames35_ES5.symbols rename to tests/baselines/reference/computedPropertyNames35_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/computedPropertyNames35_ES5.types b/tests/baselines/reference/computedPropertyNames35_ES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/computedPropertyNames35_ES5.types rename to tests/baselines/reference/computedPropertyNames35_ES5(target=es2015).types diff --git a/tests/baselines/reference/computedPropertyNames35_ES5(target=es5).errors.txt b/tests/baselines/reference/computedPropertyNames35_ES5(target=es5).errors.txt new file mode 100644 index 0000000000000..7feea07160252 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames35_ES5(target=es5).errors.txt @@ -0,0 +1,14 @@ +computedPropertyNames35_ES5.ts(4,5): error TS1169: A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type. +computedPropertyNames35_ES5.ts(4,10): error TS2467: A computed property name cannot reference a type parameter from its containing type. + + +==== computedPropertyNames35_ES5.ts (2 errors) ==== + function foo() { return '' } + interface I { + bar(): string; + [foo()](): void; + ~~~~~~~~~~ +!!! error TS1169: A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type. + ~ +!!! error TS2467: A computed property name cannot reference a type parameter from its containing type. + } \ No newline at end of file diff --git a/tests/baselines/reference/computedPropertyNames35_ES5(target=es5).js b/tests/baselines/reference/computedPropertyNames35_ES5(target=es5).js new file mode 100644 index 0000000000000..d5b1fad93b457 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames35_ES5(target=es5).js @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames35_ES5.ts] //// + +//// [computedPropertyNames35_ES5.ts] +function foo() { return '' } +interface I { + bar(): string; + [foo()](): void; +} + +//// [computedPropertyNames35_ES5.js] +function foo() { return ''; } diff --git a/tests/baselines/reference/computedPropertyNames35_ES5(target=es5).symbols b/tests/baselines/reference/computedPropertyNames35_ES5(target=es5).symbols new file mode 100644 index 0000000000000..07f30491ea10b --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames35_ES5(target=es5).symbols @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames35_ES5.ts] //// + +=== computedPropertyNames35_ES5.ts === +function foo() { return '' } +>foo : Symbol(foo, Decl(computedPropertyNames35_ES5.ts, 0, 0)) +>T : Symbol(T, Decl(computedPropertyNames35_ES5.ts, 0, 13)) + +interface I { +>I : Symbol(I, Decl(computedPropertyNames35_ES5.ts, 0, 31)) +>T : Symbol(T, Decl(computedPropertyNames35_ES5.ts, 1, 12)) + + bar(): string; +>bar : Symbol(I.bar, Decl(computedPropertyNames35_ES5.ts, 1, 16)) + + [foo()](): void; +>[foo()] : Symbol(I[foo()], Decl(computedPropertyNames35_ES5.ts, 2, 18)) +>foo : Symbol(foo, Decl(computedPropertyNames35_ES5.ts, 0, 0)) +>T : Symbol(T) +} diff --git a/tests/baselines/reference/computedPropertyNames35_ES5(target=es5).types b/tests/baselines/reference/computedPropertyNames35_ES5(target=es5).types new file mode 100644 index 0000000000000..cc3f17b2eb351 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames35_ES5(target=es5).types @@ -0,0 +1,22 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames35_ES5.ts] //// + +=== computedPropertyNames35_ES5.ts === +function foo() { return '' } +>foo : () => string +> : ^ ^^^^^^^^^^^^^ +>'' : "" +> : ^^ + +interface I { + bar(): string; +>bar : () => string +> : ^^^^^^ + + [foo()](): void; +>[foo()] : () => void +> : ^^^^^^ +>foo() : string +> : ^^^^^^ +>foo : () => string +> : ^ ^^^^^^^^^^^^^ +} diff --git a/tests/baselines/reference/computedPropertyNames36_ES5.errors.txt b/tests/baselines/reference/computedPropertyNames36_ES5(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/computedPropertyNames36_ES5.errors.txt rename to tests/baselines/reference/computedPropertyNames36_ES5(target=es2015).errors.txt diff --git a/tests/baselines/reference/computedPropertyNames36_ES5(target=es2015).js b/tests/baselines/reference/computedPropertyNames36_ES5(target=es2015).js new file mode 100644 index 0000000000000..6cdb46e204fcc --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames36_ES5(target=es2015).js @@ -0,0 +1,24 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames36_ES5.ts] //// + +//// [computedPropertyNames36_ES5.ts] +class Foo { x } +class Foo2 { x; y } + +class C { + [s: string]: Foo2; + + // Computed properties + get ["get1"]() { return new Foo } + set ["set1"](p: Foo2) { } +} + +//// [computedPropertyNames36_ES5.js] +class Foo { +} +class Foo2 { +} +class C { + // Computed properties + get ["get1"]() { return new Foo; } + set ["set1"](p) { } +} diff --git a/tests/baselines/reference/computedPropertyNames36_ES5.symbols b/tests/baselines/reference/computedPropertyNames36_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/computedPropertyNames36_ES5.symbols rename to tests/baselines/reference/computedPropertyNames36_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/computedPropertyNames36_ES5.types b/tests/baselines/reference/computedPropertyNames36_ES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/computedPropertyNames36_ES5.types rename to tests/baselines/reference/computedPropertyNames36_ES5(target=es2015).types diff --git a/tests/baselines/reference/computedPropertyNames36_ES5(target=es5).errors.txt b/tests/baselines/reference/computedPropertyNames36_ES5(target=es5).errors.txt new file mode 100644 index 0000000000000..fb42b6cfce47a --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames36_ES5(target=es5).errors.txt @@ -0,0 +1,16 @@ +computedPropertyNames36_ES5.ts(8,9): error TS2411: Property '["get1"]' of type 'Foo' is not assignable to 'string' index type 'Foo2'. + + +==== computedPropertyNames36_ES5.ts (1 errors) ==== + class Foo { x } + class Foo2 { x; y } + + class C { + [s: string]: Foo2; + + // Computed properties + get ["get1"]() { return new Foo } + ~~~~~~~~ +!!! error TS2411: Property '["get1"]' of type 'Foo' is not assignable to 'string' index type 'Foo2'. + set ["set1"](p: Foo2) { } + } \ No newline at end of file diff --git a/tests/baselines/reference/computedPropertyNames36_ES5.js b/tests/baselines/reference/computedPropertyNames36_ES5(target=es5).js similarity index 100% rename from tests/baselines/reference/computedPropertyNames36_ES5.js rename to tests/baselines/reference/computedPropertyNames36_ES5(target=es5).js diff --git a/tests/baselines/reference/computedPropertyNames36_ES5(target=es5).symbols b/tests/baselines/reference/computedPropertyNames36_ES5(target=es5).symbols new file mode 100644 index 0000000000000..15bdd8290e650 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames36_ES5(target=es5).symbols @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames36_ES5.ts] //// + +=== computedPropertyNames36_ES5.ts === +class Foo { x } +>Foo : Symbol(Foo, Decl(computedPropertyNames36_ES5.ts, 0, 0)) +>x : Symbol(Foo.x, Decl(computedPropertyNames36_ES5.ts, 0, 11)) + +class Foo2 { x; y } +>Foo2 : Symbol(Foo2, Decl(computedPropertyNames36_ES5.ts, 0, 15)) +>x : Symbol(Foo2.x, Decl(computedPropertyNames36_ES5.ts, 1, 12)) +>y : Symbol(Foo2.y, Decl(computedPropertyNames36_ES5.ts, 1, 15)) + +class C { +>C : Symbol(C, Decl(computedPropertyNames36_ES5.ts, 1, 19)) + + [s: string]: Foo2; +>s : Symbol(s, Decl(computedPropertyNames36_ES5.ts, 4, 5)) +>Foo2 : Symbol(Foo2, Decl(computedPropertyNames36_ES5.ts, 0, 15)) + + // Computed properties + get ["get1"]() { return new Foo } +>["get1"] : Symbol(C["get1"], Decl(computedPropertyNames36_ES5.ts, 4, 22)) +>"get1" : Symbol(C["get1"], Decl(computedPropertyNames36_ES5.ts, 4, 22)) +>Foo : Symbol(Foo, Decl(computedPropertyNames36_ES5.ts, 0, 0)) + + set ["set1"](p: Foo2) { } +>["set1"] : Symbol(C["set1"], Decl(computedPropertyNames36_ES5.ts, 7, 37)) +>"set1" : Symbol(C["set1"], Decl(computedPropertyNames36_ES5.ts, 7, 37)) +>p : Symbol(p, Decl(computedPropertyNames36_ES5.ts, 8, 17)) +>Foo2 : Symbol(Foo2, Decl(computedPropertyNames36_ES5.ts, 0, 15)) +} diff --git a/tests/baselines/reference/computedPropertyNames36_ES5(target=es5).types b/tests/baselines/reference/computedPropertyNames36_ES5(target=es5).types new file mode 100644 index 0000000000000..f37cec61186f6 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames36_ES5(target=es5).types @@ -0,0 +1,44 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames36_ES5.ts] //// + +=== computedPropertyNames36_ES5.ts === +class Foo { x } +>Foo : Foo +> : ^^^ +>x : any +> : ^^^ + +class Foo2 { x; y } +>Foo2 : Foo2 +> : ^^^^ +>x : any +> : ^^^ +>y : any +> : ^^^ + +class C { +>C : C +> : ^ + + [s: string]: Foo2; +>s : string +> : ^^^^^^ + + // Computed properties + get ["get1"]() { return new Foo } +>["get1"] : Foo +> : ^^^ +>"get1" : "get1" +> : ^^^^^^ +>new Foo : Foo +> : ^^^ +>Foo : typeof Foo +> : ^^^^^^^^^^ + + set ["set1"](p: Foo2) { } +>["set1"] : Foo2 +> : ^^^^ +>"set1" : "set1" +> : ^^^^^^ +>p : Foo2 +> : ^^^^ +} diff --git a/tests/baselines/reference/computedPropertyNames37_ES5(target=es2015).js b/tests/baselines/reference/computedPropertyNames37_ES5(target=es2015).js new file mode 100644 index 0000000000000..5a1635fe3207b --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames37_ES5(target=es2015).js @@ -0,0 +1,24 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames37_ES5.ts] //// + +//// [computedPropertyNames37_ES5.ts] +class Foo { x } +class Foo2 { x; y } + +class C { + [s: number]: Foo2; + + // Computed properties + get ["get1"]() { return new Foo } + set ["set1"](p: Foo2) { } +} + +//// [computedPropertyNames37_ES5.js] +class Foo { +} +class Foo2 { +} +class C { + // Computed properties + get ["get1"]() { return new Foo; } + set ["set1"](p) { } +} diff --git a/tests/baselines/reference/computedPropertyNames37_ES5.symbols b/tests/baselines/reference/computedPropertyNames37_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/computedPropertyNames37_ES5.symbols rename to tests/baselines/reference/computedPropertyNames37_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/computedPropertyNames37_ES5.types b/tests/baselines/reference/computedPropertyNames37_ES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/computedPropertyNames37_ES5.types rename to tests/baselines/reference/computedPropertyNames37_ES5(target=es2015).types diff --git a/tests/baselines/reference/computedPropertyNames37_ES5.js b/tests/baselines/reference/computedPropertyNames37_ES5(target=es5).js similarity index 100% rename from tests/baselines/reference/computedPropertyNames37_ES5.js rename to tests/baselines/reference/computedPropertyNames37_ES5(target=es5).js diff --git a/tests/baselines/reference/computedPropertyNames37_ES5(target=es5).symbols b/tests/baselines/reference/computedPropertyNames37_ES5(target=es5).symbols new file mode 100644 index 0000000000000..31d9798ceea64 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames37_ES5(target=es5).symbols @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames37_ES5.ts] //// + +=== computedPropertyNames37_ES5.ts === +class Foo { x } +>Foo : Symbol(Foo, Decl(computedPropertyNames37_ES5.ts, 0, 0)) +>x : Symbol(Foo.x, Decl(computedPropertyNames37_ES5.ts, 0, 11)) + +class Foo2 { x; y } +>Foo2 : Symbol(Foo2, Decl(computedPropertyNames37_ES5.ts, 0, 15)) +>x : Symbol(Foo2.x, Decl(computedPropertyNames37_ES5.ts, 1, 12)) +>y : Symbol(Foo2.y, Decl(computedPropertyNames37_ES5.ts, 1, 15)) + +class C { +>C : Symbol(C, Decl(computedPropertyNames37_ES5.ts, 1, 19)) + + [s: number]: Foo2; +>s : Symbol(s, Decl(computedPropertyNames37_ES5.ts, 4, 5)) +>Foo2 : Symbol(Foo2, Decl(computedPropertyNames37_ES5.ts, 0, 15)) + + // Computed properties + get ["get1"]() { return new Foo } +>["get1"] : Symbol(C["get1"], Decl(computedPropertyNames37_ES5.ts, 4, 22)) +>"get1" : Symbol(C["get1"], Decl(computedPropertyNames37_ES5.ts, 4, 22)) +>Foo : Symbol(Foo, Decl(computedPropertyNames37_ES5.ts, 0, 0)) + + set ["set1"](p: Foo2) { } +>["set1"] : Symbol(C["set1"], Decl(computedPropertyNames37_ES5.ts, 7, 37)) +>"set1" : Symbol(C["set1"], Decl(computedPropertyNames37_ES5.ts, 7, 37)) +>p : Symbol(p, Decl(computedPropertyNames37_ES5.ts, 8, 17)) +>Foo2 : Symbol(Foo2, Decl(computedPropertyNames37_ES5.ts, 0, 15)) +} diff --git a/tests/baselines/reference/computedPropertyNames37_ES5(target=es5).types b/tests/baselines/reference/computedPropertyNames37_ES5(target=es5).types new file mode 100644 index 0000000000000..f45f1f38fe99e --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames37_ES5(target=es5).types @@ -0,0 +1,41 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames37_ES5.ts] //// + +=== computedPropertyNames37_ES5.ts === +class Foo { x } +>Foo : Foo +> : ^^^ +>x : any + +class Foo2 { x; y } +>Foo2 : Foo2 +> : ^^^^ +>x : any +>y : any + +class C { +>C : C +> : ^ + + [s: number]: Foo2; +>s : number +> : ^^^^^^ + + // Computed properties + get ["get1"]() { return new Foo } +>["get1"] : Foo +> : ^^^ +>"get1" : "get1" +> : ^^^^^^ +>new Foo : Foo +> : ^^^ +>Foo : typeof Foo +> : ^^^^^^^^^^ + + set ["set1"](p: Foo2) { } +>["set1"] : Foo2 +> : ^^^^ +>"set1" : "set1" +> : ^^^^^^ +>p : Foo2 +> : ^^^^ +} diff --git a/tests/baselines/reference/computedPropertyNames38_ES5.errors.txt b/tests/baselines/reference/computedPropertyNames38_ES5(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/computedPropertyNames38_ES5.errors.txt rename to tests/baselines/reference/computedPropertyNames38_ES5(target=es2015).errors.txt diff --git a/tests/baselines/reference/computedPropertyNames38_ES5(target=es2015).js b/tests/baselines/reference/computedPropertyNames38_ES5(target=es2015).js new file mode 100644 index 0000000000000..05613dc4cd61e --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames38_ES5(target=es2015).js @@ -0,0 +1,24 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames38_ES5.ts] //// + +//// [computedPropertyNames38_ES5.ts] +class Foo { x } +class Foo2 { x; y } + +class C { + [s: string]: Foo2; + + // Computed properties + get [1 << 6]() { return new Foo } + set [1 << 6](p: Foo2) { } +} + +//// [computedPropertyNames38_ES5.js] +class Foo { +} +class Foo2 { +} +class C { + // Computed properties + get [1 << 6]() { return new Foo; } + set [1 << 6](p) { } +} diff --git a/tests/baselines/reference/computedPropertyNames38_ES5.symbols b/tests/baselines/reference/computedPropertyNames38_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/computedPropertyNames38_ES5.symbols rename to tests/baselines/reference/computedPropertyNames38_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/computedPropertyNames38_ES5.types b/tests/baselines/reference/computedPropertyNames38_ES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/computedPropertyNames38_ES5.types rename to tests/baselines/reference/computedPropertyNames38_ES5(target=es2015).types diff --git a/tests/baselines/reference/computedPropertyNames38_ES5(target=es5).errors.txt b/tests/baselines/reference/computedPropertyNames38_ES5(target=es5).errors.txt new file mode 100644 index 0000000000000..80eb9e2c5a334 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames38_ES5(target=es5).errors.txt @@ -0,0 +1,16 @@ +computedPropertyNames38_ES5.ts(8,9): error TS2411: Property '[1 << 6]' of type 'Foo' is not assignable to 'string' index type 'Foo2'. + + +==== computedPropertyNames38_ES5.ts (1 errors) ==== + class Foo { x } + class Foo2 { x; y } + + class C { + [s: string]: Foo2; + + // Computed properties + get [1 << 6]() { return new Foo } + ~~~~~~~~ +!!! error TS2411: Property '[1 << 6]' of type 'Foo' is not assignable to 'string' index type 'Foo2'. + set [1 << 6](p: Foo2) { } + } \ No newline at end of file diff --git a/tests/baselines/reference/computedPropertyNames38_ES5.js b/tests/baselines/reference/computedPropertyNames38_ES5(target=es5).js similarity index 100% rename from tests/baselines/reference/computedPropertyNames38_ES5.js rename to tests/baselines/reference/computedPropertyNames38_ES5(target=es5).js diff --git a/tests/baselines/reference/computedPropertyNames38_ES5(target=es5).symbols b/tests/baselines/reference/computedPropertyNames38_ES5(target=es5).symbols new file mode 100644 index 0000000000000..3b131baaec3e7 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames38_ES5(target=es5).symbols @@ -0,0 +1,29 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames38_ES5.ts] //// + +=== computedPropertyNames38_ES5.ts === +class Foo { x } +>Foo : Symbol(Foo, Decl(computedPropertyNames38_ES5.ts, 0, 0)) +>x : Symbol(Foo.x, Decl(computedPropertyNames38_ES5.ts, 0, 11)) + +class Foo2 { x; y } +>Foo2 : Symbol(Foo2, Decl(computedPropertyNames38_ES5.ts, 0, 15)) +>x : Symbol(Foo2.x, Decl(computedPropertyNames38_ES5.ts, 1, 12)) +>y : Symbol(Foo2.y, Decl(computedPropertyNames38_ES5.ts, 1, 15)) + +class C { +>C : Symbol(C, Decl(computedPropertyNames38_ES5.ts, 1, 19)) + + [s: string]: Foo2; +>s : Symbol(s, Decl(computedPropertyNames38_ES5.ts, 4, 5)) +>Foo2 : Symbol(Foo2, Decl(computedPropertyNames38_ES5.ts, 0, 15)) + + // Computed properties + get [1 << 6]() { return new Foo } +>[1 << 6] : Symbol(C[1 << 6], Decl(computedPropertyNames38_ES5.ts, 4, 22)) +>Foo : Symbol(Foo, Decl(computedPropertyNames38_ES5.ts, 0, 0)) + + set [1 << 6](p: Foo2) { } +>[1 << 6] : Symbol(C[1 << 6], Decl(computedPropertyNames38_ES5.ts, 7, 37)) +>p : Symbol(p, Decl(computedPropertyNames38_ES5.ts, 8, 17)) +>Foo2 : Symbol(Foo2, Decl(computedPropertyNames38_ES5.ts, 0, 15)) +} diff --git a/tests/baselines/reference/computedPropertyNames38_ES5(target=es5).types b/tests/baselines/reference/computedPropertyNames38_ES5(target=es5).types new file mode 100644 index 0000000000000..12e4c4c353289 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames38_ES5(target=es5).types @@ -0,0 +1,52 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames38_ES5.ts] //// + +=== computedPropertyNames38_ES5.ts === +class Foo { x } +>Foo : Foo +> : ^^^ +>x : any +> : ^^^ + +class Foo2 { x; y } +>Foo2 : Foo2 +> : ^^^^ +>x : any +> : ^^^ +>y : any +> : ^^^ + +class C { +>C : C +> : ^ + + [s: string]: Foo2; +>s : string +> : ^^^^^^ + + // Computed properties + get [1 << 6]() { return new Foo } +>[1 << 6] : Foo +> : ^^^ +>1 << 6 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>6 : 6 +> : ^ +>new Foo : Foo +> : ^^^ +>Foo : typeof Foo +> : ^^^^^^^^^^ + + set [1 << 6](p: Foo2) { } +>[1 << 6] : Foo2 +> : ^^^^ +>1 << 6 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>6 : 6 +> : ^ +>p : Foo2 +> : ^^^^ +} diff --git a/tests/baselines/reference/computedPropertyNames39_ES5.errors.txt b/tests/baselines/reference/computedPropertyNames39_ES5(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/computedPropertyNames39_ES5.errors.txt rename to tests/baselines/reference/computedPropertyNames39_ES5(target=es2015).errors.txt diff --git a/tests/baselines/reference/computedPropertyNames39_ES5(target=es2015).js b/tests/baselines/reference/computedPropertyNames39_ES5(target=es2015).js new file mode 100644 index 0000000000000..b203e11def7b5 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames39_ES5(target=es2015).js @@ -0,0 +1,24 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames39_ES5.ts] //// + +//// [computedPropertyNames39_ES5.ts] +class Foo { x } +class Foo2 { x; y } + +class C { + [s: number]: Foo2; + + // Computed properties + get [1 << 6]() { return new Foo } + set [1 << 6](p: Foo2) { } +} + +//// [computedPropertyNames39_ES5.js] +class Foo { +} +class Foo2 { +} +class C { + // Computed properties + get [1 << 6]() { return new Foo; } + set [1 << 6](p) { } +} diff --git a/tests/baselines/reference/computedPropertyNames39_ES5.symbols b/tests/baselines/reference/computedPropertyNames39_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/computedPropertyNames39_ES5.symbols rename to tests/baselines/reference/computedPropertyNames39_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/computedPropertyNames39_ES5.types b/tests/baselines/reference/computedPropertyNames39_ES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/computedPropertyNames39_ES5.types rename to tests/baselines/reference/computedPropertyNames39_ES5(target=es2015).types diff --git a/tests/baselines/reference/computedPropertyNames39_ES5(target=es5).errors.txt b/tests/baselines/reference/computedPropertyNames39_ES5(target=es5).errors.txt new file mode 100644 index 0000000000000..5b77d679ddf94 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames39_ES5(target=es5).errors.txt @@ -0,0 +1,16 @@ +computedPropertyNames39_ES5.ts(8,9): error TS2411: Property '[1 << 6]' of type 'Foo' is not assignable to 'number' index type 'Foo2'. + + +==== computedPropertyNames39_ES5.ts (1 errors) ==== + class Foo { x } + class Foo2 { x; y } + + class C { + [s: number]: Foo2; + + // Computed properties + get [1 << 6]() { return new Foo } + ~~~~~~~~ +!!! error TS2411: Property '[1 << 6]' of type 'Foo' is not assignable to 'number' index type 'Foo2'. + set [1 << 6](p: Foo2) { } + } \ No newline at end of file diff --git a/tests/baselines/reference/computedPropertyNames39_ES5.js b/tests/baselines/reference/computedPropertyNames39_ES5(target=es5).js similarity index 100% rename from tests/baselines/reference/computedPropertyNames39_ES5.js rename to tests/baselines/reference/computedPropertyNames39_ES5(target=es5).js diff --git a/tests/baselines/reference/computedPropertyNames39_ES5(target=es5).symbols b/tests/baselines/reference/computedPropertyNames39_ES5(target=es5).symbols new file mode 100644 index 0000000000000..2ec3ee5088c8c --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames39_ES5(target=es5).symbols @@ -0,0 +1,29 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames39_ES5.ts] //// + +=== computedPropertyNames39_ES5.ts === +class Foo { x } +>Foo : Symbol(Foo, Decl(computedPropertyNames39_ES5.ts, 0, 0)) +>x : Symbol(Foo.x, Decl(computedPropertyNames39_ES5.ts, 0, 11)) + +class Foo2 { x; y } +>Foo2 : Symbol(Foo2, Decl(computedPropertyNames39_ES5.ts, 0, 15)) +>x : Symbol(Foo2.x, Decl(computedPropertyNames39_ES5.ts, 1, 12)) +>y : Symbol(Foo2.y, Decl(computedPropertyNames39_ES5.ts, 1, 15)) + +class C { +>C : Symbol(C, Decl(computedPropertyNames39_ES5.ts, 1, 19)) + + [s: number]: Foo2; +>s : Symbol(s, Decl(computedPropertyNames39_ES5.ts, 4, 5)) +>Foo2 : Symbol(Foo2, Decl(computedPropertyNames39_ES5.ts, 0, 15)) + + // Computed properties + get [1 << 6]() { return new Foo } +>[1 << 6] : Symbol(C[1 << 6], Decl(computedPropertyNames39_ES5.ts, 4, 22)) +>Foo : Symbol(Foo, Decl(computedPropertyNames39_ES5.ts, 0, 0)) + + set [1 << 6](p: Foo2) { } +>[1 << 6] : Symbol(C[1 << 6], Decl(computedPropertyNames39_ES5.ts, 7, 37)) +>p : Symbol(p, Decl(computedPropertyNames39_ES5.ts, 8, 17)) +>Foo2 : Symbol(Foo2, Decl(computedPropertyNames39_ES5.ts, 0, 15)) +} diff --git a/tests/baselines/reference/computedPropertyNames39_ES5(target=es5).types b/tests/baselines/reference/computedPropertyNames39_ES5(target=es5).types new file mode 100644 index 0000000000000..c695a4d56b29d --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames39_ES5(target=es5).types @@ -0,0 +1,52 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames39_ES5.ts] //// + +=== computedPropertyNames39_ES5.ts === +class Foo { x } +>Foo : Foo +> : ^^^ +>x : any +> : ^^^ + +class Foo2 { x; y } +>Foo2 : Foo2 +> : ^^^^ +>x : any +> : ^^^ +>y : any +> : ^^^ + +class C { +>C : C +> : ^ + + [s: number]: Foo2; +>s : number +> : ^^^^^^ + + // Computed properties + get [1 << 6]() { return new Foo } +>[1 << 6] : Foo +> : ^^^ +>1 << 6 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>6 : 6 +> : ^ +>new Foo : Foo +> : ^^^ +>Foo : typeof Foo +> : ^^^^^^^^^^ + + set [1 << 6](p: Foo2) { } +>[1 << 6] : Foo2 +> : ^^^^ +>1 << 6 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>6 : 6 +> : ^ +>p : Foo2 +> : ^^^^ +} diff --git a/tests/baselines/reference/computedPropertyNames3_ES5.errors.txt b/tests/baselines/reference/computedPropertyNames3_ES5(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/computedPropertyNames3_ES5.errors.txt rename to tests/baselines/reference/computedPropertyNames3_ES5(target=es2015).errors.txt diff --git a/tests/baselines/reference/computedPropertyNames3_ES5(target=es2015).js b/tests/baselines/reference/computedPropertyNames3_ES5(target=es2015).js new file mode 100644 index 0000000000000..9ce0d476a48be --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames3_ES5(target=es2015).js @@ -0,0 +1,23 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames3_ES5.ts] //// + +//// [computedPropertyNames3_ES5.ts] +var id; +class C { + [0 + 1]() { } + static [() => { }]() { } + get [delete id]() { } + set [[0, 1]](v) { } + static get [""]() { } + static set [id.toString()](v) { } +} + +//// [computedPropertyNames3_ES5.js] +var id; +class C { + [0 + 1]() { } + static [() => { }]() { } + get [delete id]() { } + set [[0, 1]](v) { } + static get [""]() { } + static set [id.toString()](v) { } +} diff --git a/tests/baselines/reference/computedPropertyNames3_ES5.symbols b/tests/baselines/reference/computedPropertyNames3_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/computedPropertyNames3_ES5.symbols rename to tests/baselines/reference/computedPropertyNames3_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/computedPropertyNames3_ES5.types b/tests/baselines/reference/computedPropertyNames3_ES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/computedPropertyNames3_ES5.types rename to tests/baselines/reference/computedPropertyNames3_ES5(target=es2015).types diff --git a/tests/baselines/reference/computedPropertyNames3_ES5(target=es5).errors.txt b/tests/baselines/reference/computedPropertyNames3_ES5(target=es5).errors.txt new file mode 100644 index 0000000000000..b60dc88534f75 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames3_ES5(target=es5).errors.txt @@ -0,0 +1,36 @@ +computedPropertyNames3_ES5.ts(4,12): error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'. +computedPropertyNames3_ES5.ts(5,9): error TS2378: A 'get' accessor must return a value. +computedPropertyNames3_ES5.ts(5,9): error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'. +computedPropertyNames3_ES5.ts(5,17): error TS1102: 'delete' cannot be called on an identifier in strict mode. +computedPropertyNames3_ES5.ts(5,17): error TS2703: The operand of a 'delete' operator must be a property reference. +computedPropertyNames3_ES5.ts(6,9): error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'. +computedPropertyNames3_ES5.ts(7,16): error TS2378: A 'get' accessor must return a value. +computedPropertyNames3_ES5.ts(7,16): error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'. + + +==== computedPropertyNames3_ES5.ts (8 errors) ==== + var id; + class C { + [0 + 1]() { } + static [() => { }]() { } + ~~~~~~~~~~~ +!!! error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'. + get [delete id]() { } + ~~~~~~~~~~~ +!!! error TS2378: A 'get' accessor must return a value. + ~~~~~~~~~~~ +!!! error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'. + ~~ +!!! error TS1102: 'delete' cannot be called on an identifier in strict mode. + ~~ +!!! error TS2703: The operand of a 'delete' operator must be a property reference. + set [[0, 1]](v) { } + ~~~~~~~~ +!!! error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'. + static get [""]() { } + ~~~~~~~~~~~~ +!!! error TS2378: A 'get' accessor must return a value. + ~~~~~~~~~~~~ +!!! error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'. + static set [id.toString()](v) { } + } \ No newline at end of file diff --git a/tests/baselines/reference/computedPropertyNames3_ES5.js b/tests/baselines/reference/computedPropertyNames3_ES5(target=es5).js similarity index 100% rename from tests/baselines/reference/computedPropertyNames3_ES5.js rename to tests/baselines/reference/computedPropertyNames3_ES5(target=es5).js diff --git a/tests/baselines/reference/computedPropertyNames3_ES5(target=es5).symbols b/tests/baselines/reference/computedPropertyNames3_ES5(target=es5).symbols new file mode 100644 index 0000000000000..8da62ce04a2f0 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames3_ES5(target=es5).symbols @@ -0,0 +1,32 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames3_ES5.ts] //// + +=== computedPropertyNames3_ES5.ts === +var id; +>id : Symbol(id, Decl(computedPropertyNames3_ES5.ts, 0, 3)) + +class C { +>C : Symbol(C, Decl(computedPropertyNames3_ES5.ts, 0, 7)) + + [0 + 1]() { } +>[0 + 1] : Symbol(C[0 + 1], Decl(computedPropertyNames3_ES5.ts, 1, 9)) + + static [() => { }]() { } +>[() => { }] : Symbol(C[() => { }], Decl(computedPropertyNames3_ES5.ts, 2, 17)) + + get [delete id]() { } +>[delete id] : Symbol(C[delete id], Decl(computedPropertyNames3_ES5.ts, 3, 28)) +>id : Symbol(id, Decl(computedPropertyNames3_ES5.ts, 0, 3)) + + set [[0, 1]](v) { } +>[[0, 1]] : Symbol(C[[0, 1]], Decl(computedPropertyNames3_ES5.ts, 4, 25)) +>v : Symbol(v, Decl(computedPropertyNames3_ES5.ts, 5, 17)) + + static get [""]() { } +>[""] : Symbol(C[""], Decl(computedPropertyNames3_ES5.ts, 5, 23)) +>String : Symbol(String, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --) ... and 1 more) + + static set [id.toString()](v) { } +>[id.toString()] : Symbol(C[id.toString()], Decl(computedPropertyNames3_ES5.ts, 6, 33)) +>id : Symbol(id, Decl(computedPropertyNames3_ES5.ts, 0, 3)) +>v : Symbol(v, Decl(computedPropertyNames3_ES5.ts, 7, 31)) +} diff --git a/tests/baselines/reference/computedPropertyNames3_ES5(target=es5).types b/tests/baselines/reference/computedPropertyNames3_ES5(target=es5).types new file mode 100644 index 0000000000000..c2814deea5775 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames3_ES5(target=es5).types @@ -0,0 +1,69 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames3_ES5.ts] //// + +=== computedPropertyNames3_ES5.ts === +var id; +>id : any +> : ^^^ + +class C { +>C : C +> : ^ + + [0 + 1]() { } +>[0 + 1] : () => void +> : ^^^^^^^^^^ +>0 + 1 : number +> : ^^^^^^ +>0 : 0 +> : ^ +>1 : 1 +> : ^ + + static [() => { }]() { } +>[() => { }] : () => void +> : ^^^^^^^^^^ +>() => { } : () => void +> : ^^^^^^^^^^ + + get [delete id]() { } +>[delete id] : void +> : ^^^^ +>delete id : boolean +> : ^^^^^^^ +>id : any +> : ^^^ + + set [[0, 1]](v) { } +>[[0, 1]] : any +> : ^^^ +>[0, 1] : number[] +> : ^^^^^^^^ +>0 : 0 +> : ^ +>1 : 1 +> : ^ +>v : any +> : ^^^ + + static get [""]() { } +>[""] : void +> : ^^^^ +>"" : String +> : ^^^^^^ +>"" : "" +> : ^^ + + static set [id.toString()](v) { } +>[id.toString()] : any +> : ^^^ +>id.toString() : any +> : ^^^ +>id.toString : any +> : ^^^ +>id : any +> : ^^^ +>toString : any +> : ^^^ +>v : any +> : ^^^ +} diff --git a/tests/baselines/reference/computedPropertyNames40_ES5.errors.txt b/tests/baselines/reference/computedPropertyNames40_ES5(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/computedPropertyNames40_ES5.errors.txt rename to tests/baselines/reference/computedPropertyNames40_ES5(target=es2015).errors.txt diff --git a/tests/baselines/reference/computedPropertyNames40_ES5(target=es2015).js b/tests/baselines/reference/computedPropertyNames40_ES5(target=es2015).js new file mode 100644 index 0000000000000..665b22af28ff3 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames40_ES5(target=es2015).js @@ -0,0 +1,24 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames40_ES5.ts] //// + +//// [computedPropertyNames40_ES5.ts] +class Foo { x } +class Foo2 { x; y } + +class C { + [s: string]: () => Foo2; + + // Computed properties + [""]() { return new Foo } + [""]() { return new Foo2 } +} + +//// [computedPropertyNames40_ES5.js] +class Foo { +} +class Foo2 { +} +class C { + // Computed properties + [""]() { return new Foo; } + [""]() { return new Foo2; } +} diff --git a/tests/baselines/reference/computedPropertyNames40_ES5.symbols b/tests/baselines/reference/computedPropertyNames40_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/computedPropertyNames40_ES5.symbols rename to tests/baselines/reference/computedPropertyNames40_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/computedPropertyNames40_ES5.types b/tests/baselines/reference/computedPropertyNames40_ES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/computedPropertyNames40_ES5.types rename to tests/baselines/reference/computedPropertyNames40_ES5(target=es2015).types diff --git a/tests/baselines/reference/computedPropertyNames40_ES5(target=es5).errors.txt b/tests/baselines/reference/computedPropertyNames40_ES5(target=es5).errors.txt new file mode 100644 index 0000000000000..666806b614e96 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames40_ES5(target=es5).errors.txt @@ -0,0 +1,22 @@ +computedPropertyNames40_ES5.ts(8,5): error TS2393: Duplicate function implementation. +computedPropertyNames40_ES5.ts(8,5): error TS2411: Property '[""]' of type '() => Foo' is not assignable to 'string' index type '() => Foo2'. +computedPropertyNames40_ES5.ts(9,5): error TS2393: Duplicate function implementation. + + +==== computedPropertyNames40_ES5.ts (3 errors) ==== + class Foo { x } + class Foo2 { x; y } + + class C { + [s: string]: () => Foo2; + + // Computed properties + [""]() { return new Foo } + ~~~~ +!!! error TS2393: Duplicate function implementation. + ~~~~ +!!! error TS2411: Property '[""]' of type '() => Foo' is not assignable to 'string' index type '() => Foo2'. + [""]() { return new Foo2 } + ~~~~ +!!! error TS2393: Duplicate function implementation. + } \ No newline at end of file diff --git a/tests/baselines/reference/computedPropertyNames40_ES5.js b/tests/baselines/reference/computedPropertyNames40_ES5(target=es5).js similarity index 100% rename from tests/baselines/reference/computedPropertyNames40_ES5.js rename to tests/baselines/reference/computedPropertyNames40_ES5(target=es5).js diff --git a/tests/baselines/reference/computedPropertyNames40_ES5(target=es5).symbols b/tests/baselines/reference/computedPropertyNames40_ES5(target=es5).symbols new file mode 100644 index 0000000000000..b212f49f43b03 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames40_ES5(target=es5).symbols @@ -0,0 +1,30 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames40_ES5.ts] //// + +=== computedPropertyNames40_ES5.ts === +class Foo { x } +>Foo : Symbol(Foo, Decl(computedPropertyNames40_ES5.ts, 0, 0)) +>x : Symbol(Foo.x, Decl(computedPropertyNames40_ES5.ts, 0, 11)) + +class Foo2 { x; y } +>Foo2 : Symbol(Foo2, Decl(computedPropertyNames40_ES5.ts, 0, 15)) +>x : Symbol(Foo2.x, Decl(computedPropertyNames40_ES5.ts, 1, 12)) +>y : Symbol(Foo2.y, Decl(computedPropertyNames40_ES5.ts, 1, 15)) + +class C { +>C : Symbol(C, Decl(computedPropertyNames40_ES5.ts, 1, 19)) + + [s: string]: () => Foo2; +>s : Symbol(s, Decl(computedPropertyNames40_ES5.ts, 4, 5)) +>Foo2 : Symbol(Foo2, Decl(computedPropertyNames40_ES5.ts, 0, 15)) + + // Computed properties + [""]() { return new Foo } +>[""] : Symbol(C[""], Decl(computedPropertyNames40_ES5.ts, 4, 28), Decl(computedPropertyNames40_ES5.ts, 7, 29)) +>"" : Symbol(C[""], Decl(computedPropertyNames40_ES5.ts, 4, 28), Decl(computedPropertyNames40_ES5.ts, 7, 29)) +>Foo : Symbol(Foo, Decl(computedPropertyNames40_ES5.ts, 0, 0)) + + [""]() { return new Foo2 } +>[""] : Symbol(C[""], Decl(computedPropertyNames40_ES5.ts, 4, 28), Decl(computedPropertyNames40_ES5.ts, 7, 29)) +>"" : Symbol(C[""], Decl(computedPropertyNames40_ES5.ts, 4, 28), Decl(computedPropertyNames40_ES5.ts, 7, 29)) +>Foo2 : Symbol(Foo2, Decl(computedPropertyNames40_ES5.ts, 0, 15)) +} diff --git a/tests/baselines/reference/computedPropertyNames40_ES5(target=es5).types b/tests/baselines/reference/computedPropertyNames40_ES5(target=es5).types new file mode 100644 index 0000000000000..b43640a8e2359 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames40_ES5(target=es5).types @@ -0,0 +1,46 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames40_ES5.ts] //// + +=== computedPropertyNames40_ES5.ts === +class Foo { x } +>Foo : Foo +> : ^^^ +>x : any +> : ^^^ + +class Foo2 { x; y } +>Foo2 : Foo2 +> : ^^^^ +>x : any +> : ^^^ +>y : any +> : ^^^ + +class C { +>C : C +> : ^ + + [s: string]: () => Foo2; +>s : string +> : ^^^^^^ + + // Computed properties + [""]() { return new Foo } +>[""] : () => Foo +> : ^^^^^^^^^ +>"" : "" +> : ^^ +>new Foo : Foo +> : ^^^ +>Foo : typeof Foo +> : ^^^^^^^^^^ + + [""]() { return new Foo2 } +>[""] : () => Foo +> : ^^^^^^^^^ +>"" : "" +> : ^^ +>new Foo2 : Foo2 +> : ^^^^ +>Foo2 : typeof Foo2 +> : ^^^^^^^^^^^ +} diff --git a/tests/baselines/reference/computedPropertyNames41_ES5(target=es2015).js b/tests/baselines/reference/computedPropertyNames41_ES5(target=es2015).js new file mode 100644 index 0000000000000..d88d39f21d1ef --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames41_ES5(target=es2015).js @@ -0,0 +1,22 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames41_ES5.ts] //// + +//// [computedPropertyNames41_ES5.ts] +class Foo { x } +class Foo2 { x; y } + +class C { + [s: string]: () => Foo2; + + // Computed properties + static [""]() { return new Foo } +} + +//// [computedPropertyNames41_ES5.js] +class Foo { +} +class Foo2 { +} +class C { + // Computed properties + static [""]() { return new Foo; } +} diff --git a/tests/baselines/reference/computedPropertyNames41_ES5.symbols b/tests/baselines/reference/computedPropertyNames41_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/computedPropertyNames41_ES5.symbols rename to tests/baselines/reference/computedPropertyNames41_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/computedPropertyNames41_ES5.types b/tests/baselines/reference/computedPropertyNames41_ES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/computedPropertyNames41_ES5.types rename to tests/baselines/reference/computedPropertyNames41_ES5(target=es2015).types diff --git a/tests/baselines/reference/computedPropertyNames41_ES5.js b/tests/baselines/reference/computedPropertyNames41_ES5(target=es5).js similarity index 100% rename from tests/baselines/reference/computedPropertyNames41_ES5.js rename to tests/baselines/reference/computedPropertyNames41_ES5(target=es5).js diff --git a/tests/baselines/reference/computedPropertyNames41_ES5(target=es5).symbols b/tests/baselines/reference/computedPropertyNames41_ES5(target=es5).symbols new file mode 100644 index 0000000000000..8f53c4163649b --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames41_ES5(target=es5).symbols @@ -0,0 +1,25 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames41_ES5.ts] //// + +=== computedPropertyNames41_ES5.ts === +class Foo { x } +>Foo : Symbol(Foo, Decl(computedPropertyNames41_ES5.ts, 0, 0)) +>x : Symbol(Foo.x, Decl(computedPropertyNames41_ES5.ts, 0, 11)) + +class Foo2 { x; y } +>Foo2 : Symbol(Foo2, Decl(computedPropertyNames41_ES5.ts, 0, 15)) +>x : Symbol(Foo2.x, Decl(computedPropertyNames41_ES5.ts, 1, 12)) +>y : Symbol(Foo2.y, Decl(computedPropertyNames41_ES5.ts, 1, 15)) + +class C { +>C : Symbol(C, Decl(computedPropertyNames41_ES5.ts, 1, 19)) + + [s: string]: () => Foo2; +>s : Symbol(s, Decl(computedPropertyNames41_ES5.ts, 4, 5)) +>Foo2 : Symbol(Foo2, Decl(computedPropertyNames41_ES5.ts, 0, 15)) + + // Computed properties + static [""]() { return new Foo } +>[""] : Symbol(C[""], Decl(computedPropertyNames41_ES5.ts, 4, 28)) +>"" : Symbol(C[""], Decl(computedPropertyNames41_ES5.ts, 4, 28)) +>Foo : Symbol(Foo, Decl(computedPropertyNames41_ES5.ts, 0, 0)) +} diff --git a/tests/baselines/reference/computedPropertyNames41_ES5(target=es5).types b/tests/baselines/reference/computedPropertyNames41_ES5(target=es5).types new file mode 100644 index 0000000000000..06aabb404b656 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames41_ES5(target=es5).types @@ -0,0 +1,33 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames41_ES5.ts] //// + +=== computedPropertyNames41_ES5.ts === +class Foo { x } +>Foo : Foo +> : ^^^ +>x : any + +class Foo2 { x; y } +>Foo2 : Foo2 +> : ^^^^ +>x : any +>y : any + +class C { +>C : C +> : ^ + + [s: string]: () => Foo2; +>s : string +> : ^^^^^^ + + // Computed properties + static [""]() { return new Foo } +>[""] : () => Foo +> : ^^^^^^^^^ +>"" : "" +> : ^^ +>new Foo : Foo +> : ^^^ +>Foo : typeof Foo +> : ^^^^^^^^^^ +} diff --git a/tests/baselines/reference/computedPropertyNames42_ES5.errors.txt b/tests/baselines/reference/computedPropertyNames42_ES5(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/computedPropertyNames42_ES5.errors.txt rename to tests/baselines/reference/computedPropertyNames42_ES5(target=es2015).errors.txt diff --git a/tests/baselines/reference/computedPropertyNames42_ES5(target=es2015).js b/tests/baselines/reference/computedPropertyNames42_ES5(target=es2015).js new file mode 100644 index 0000000000000..0a6fc7fdb9849 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames42_ES5(target=es2015).js @@ -0,0 +1,20 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames42_ES5.ts] //// + +//// [computedPropertyNames42_ES5.ts] +class Foo { x } +class Foo2 { x; y } + +class C { + [s: string]: Foo2; + + // Computed properties + [""]: Foo; +} + +//// [computedPropertyNames42_ES5.js] +class Foo { +} +class Foo2 { +} +class C { +} diff --git a/tests/baselines/reference/computedPropertyNames42_ES5.symbols b/tests/baselines/reference/computedPropertyNames42_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/computedPropertyNames42_ES5.symbols rename to tests/baselines/reference/computedPropertyNames42_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/computedPropertyNames42_ES5.types b/tests/baselines/reference/computedPropertyNames42_ES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/computedPropertyNames42_ES5.types rename to tests/baselines/reference/computedPropertyNames42_ES5(target=es2015).types diff --git a/tests/baselines/reference/computedPropertyNames42_ES5(target=es5).errors.txt b/tests/baselines/reference/computedPropertyNames42_ES5(target=es5).errors.txt new file mode 100644 index 0000000000000..ef05ceac83034 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames42_ES5(target=es5).errors.txt @@ -0,0 +1,15 @@ +computedPropertyNames42_ES5.ts(8,5): error TS2411: Property '[""]' of type 'Foo' is not assignable to 'string' index type 'Foo2'. + + +==== computedPropertyNames42_ES5.ts (1 errors) ==== + class Foo { x } + class Foo2 { x; y } + + class C { + [s: string]: Foo2; + + // Computed properties + [""]: Foo; + ~~~~ +!!! error TS2411: Property '[""]' of type 'Foo' is not assignable to 'string' index type 'Foo2'. + } \ No newline at end of file diff --git a/tests/baselines/reference/computedPropertyNames42_ES5.js b/tests/baselines/reference/computedPropertyNames42_ES5(target=es5).js similarity index 100% rename from tests/baselines/reference/computedPropertyNames42_ES5.js rename to tests/baselines/reference/computedPropertyNames42_ES5(target=es5).js diff --git a/tests/baselines/reference/computedPropertyNames42_ES5(target=es5).symbols b/tests/baselines/reference/computedPropertyNames42_ES5(target=es5).symbols new file mode 100644 index 0000000000000..c87b45aab53d1 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames42_ES5(target=es5).symbols @@ -0,0 +1,25 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames42_ES5.ts] //// + +=== computedPropertyNames42_ES5.ts === +class Foo { x } +>Foo : Symbol(Foo, Decl(computedPropertyNames42_ES5.ts, 0, 0)) +>x : Symbol(Foo.x, Decl(computedPropertyNames42_ES5.ts, 0, 11)) + +class Foo2 { x; y } +>Foo2 : Symbol(Foo2, Decl(computedPropertyNames42_ES5.ts, 0, 15)) +>x : Symbol(Foo2.x, Decl(computedPropertyNames42_ES5.ts, 1, 12)) +>y : Symbol(Foo2.y, Decl(computedPropertyNames42_ES5.ts, 1, 15)) + +class C { +>C : Symbol(C, Decl(computedPropertyNames42_ES5.ts, 1, 19)) + + [s: string]: Foo2; +>s : Symbol(s, Decl(computedPropertyNames42_ES5.ts, 4, 5)) +>Foo2 : Symbol(Foo2, Decl(computedPropertyNames42_ES5.ts, 0, 15)) + + // Computed properties + [""]: Foo; +>[""] : Symbol(C[""], Decl(computedPropertyNames42_ES5.ts, 4, 22)) +>"" : Symbol(C[""], Decl(computedPropertyNames42_ES5.ts, 4, 22)) +>Foo : Symbol(Foo, Decl(computedPropertyNames42_ES5.ts, 0, 0)) +} diff --git a/tests/baselines/reference/computedPropertyNames42_ES5(target=es5).types b/tests/baselines/reference/computedPropertyNames42_ES5(target=es5).types new file mode 100644 index 0000000000000..1c4b5a5b417fb --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames42_ES5(target=es5).types @@ -0,0 +1,32 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames42_ES5.ts] //// + +=== computedPropertyNames42_ES5.ts === +class Foo { x } +>Foo : Foo +> : ^^^ +>x : any +> : ^^^ + +class Foo2 { x; y } +>Foo2 : Foo2 +> : ^^^^ +>x : any +> : ^^^ +>y : any +> : ^^^ + +class C { +>C : C +> : ^ + + [s: string]: Foo2; +>s : string +> : ^^^^^^ + + // Computed properties + [""]: Foo; +>[""] : Foo +> : ^^^ +>"" : "" +> : ^^ +} diff --git a/tests/baselines/reference/computedPropertyNames43_ES5.errors.txt b/tests/baselines/reference/computedPropertyNames43_ES5(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/computedPropertyNames43_ES5.errors.txt rename to tests/baselines/reference/computedPropertyNames43_ES5(target=es2015).errors.txt diff --git a/tests/baselines/reference/computedPropertyNames43_ES5(target=es2015).js b/tests/baselines/reference/computedPropertyNames43_ES5(target=es2015).js new file mode 100644 index 0000000000000..c362d71605aed --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames43_ES5(target=es2015).js @@ -0,0 +1,28 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames43_ES5.ts] //// + +//// [computedPropertyNames43_ES5.ts] +class Foo { x } +class Foo2 { x; y } + +class C { + [s: string]: Foo2; +} + +class D extends C { + // Computed properties + get ["get1"]() { return new Foo } + set ["set1"](p: Foo2) { } +} + +//// [computedPropertyNames43_ES5.js] +class Foo { +} +class Foo2 { +} +class C { +} +class D extends C { + // Computed properties + get ["get1"]() { return new Foo; } + set ["set1"](p) { } +} diff --git a/tests/baselines/reference/computedPropertyNames43_ES5.symbols b/tests/baselines/reference/computedPropertyNames43_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/computedPropertyNames43_ES5.symbols rename to tests/baselines/reference/computedPropertyNames43_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/computedPropertyNames43_ES5.types b/tests/baselines/reference/computedPropertyNames43_ES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/computedPropertyNames43_ES5.types rename to tests/baselines/reference/computedPropertyNames43_ES5(target=es2015).types diff --git a/tests/baselines/reference/computedPropertyNames43_ES5(target=es5).errors.txt b/tests/baselines/reference/computedPropertyNames43_ES5(target=es5).errors.txt new file mode 100644 index 0000000000000..48a99cd358237 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames43_ES5(target=es5).errors.txt @@ -0,0 +1,18 @@ +computedPropertyNames43_ES5.ts(10,9): error TS2411: Property '["get1"]' of type 'Foo' is not assignable to 'string' index type 'Foo2'. + + +==== computedPropertyNames43_ES5.ts (1 errors) ==== + class Foo { x } + class Foo2 { x; y } + + class C { + [s: string]: Foo2; + } + + class D extends C { + // Computed properties + get ["get1"]() { return new Foo } + ~~~~~~~~ +!!! error TS2411: Property '["get1"]' of type 'Foo' is not assignable to 'string' index type 'Foo2'. + set ["set1"](p: Foo2) { } + } \ No newline at end of file diff --git a/tests/baselines/reference/computedPropertyNames43_ES5.js b/tests/baselines/reference/computedPropertyNames43_ES5(target=es5).js similarity index 100% rename from tests/baselines/reference/computedPropertyNames43_ES5.js rename to tests/baselines/reference/computedPropertyNames43_ES5(target=es5).js diff --git a/tests/baselines/reference/computedPropertyNames43_ES5(target=es5).symbols b/tests/baselines/reference/computedPropertyNames43_ES5(target=es5).symbols new file mode 100644 index 0000000000000..4604f045b2052 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames43_ES5(target=es5).symbols @@ -0,0 +1,36 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames43_ES5.ts] //// + +=== computedPropertyNames43_ES5.ts === +class Foo { x } +>Foo : Symbol(Foo, Decl(computedPropertyNames43_ES5.ts, 0, 0)) +>x : Symbol(Foo.x, Decl(computedPropertyNames43_ES5.ts, 0, 11)) + +class Foo2 { x; y } +>Foo2 : Symbol(Foo2, Decl(computedPropertyNames43_ES5.ts, 0, 15)) +>x : Symbol(Foo2.x, Decl(computedPropertyNames43_ES5.ts, 1, 12)) +>y : Symbol(Foo2.y, Decl(computedPropertyNames43_ES5.ts, 1, 15)) + +class C { +>C : Symbol(C, Decl(computedPropertyNames43_ES5.ts, 1, 19)) + + [s: string]: Foo2; +>s : Symbol(s, Decl(computedPropertyNames43_ES5.ts, 4, 5)) +>Foo2 : Symbol(Foo2, Decl(computedPropertyNames43_ES5.ts, 0, 15)) +} + +class D extends C { +>D : Symbol(D, Decl(computedPropertyNames43_ES5.ts, 5, 1)) +>C : Symbol(C, Decl(computedPropertyNames43_ES5.ts, 1, 19)) + + // Computed properties + get ["get1"]() { return new Foo } +>["get1"] : Symbol(D["get1"], Decl(computedPropertyNames43_ES5.ts, 7, 19)) +>"get1" : Symbol(D["get1"], Decl(computedPropertyNames43_ES5.ts, 7, 19)) +>Foo : Symbol(Foo, Decl(computedPropertyNames43_ES5.ts, 0, 0)) + + set ["set1"](p: Foo2) { } +>["set1"] : Symbol(D["set1"], Decl(computedPropertyNames43_ES5.ts, 9, 37)) +>"set1" : Symbol(D["set1"], Decl(computedPropertyNames43_ES5.ts, 9, 37)) +>p : Symbol(p, Decl(computedPropertyNames43_ES5.ts, 10, 17)) +>Foo2 : Symbol(Foo2, Decl(computedPropertyNames43_ES5.ts, 0, 15)) +} diff --git a/tests/baselines/reference/computedPropertyNames43_ES5(target=es5).types b/tests/baselines/reference/computedPropertyNames43_ES5(target=es5).types new file mode 100644 index 0000000000000..f91caffe22f77 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames43_ES5(target=es5).types @@ -0,0 +1,51 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames43_ES5.ts] //// + +=== computedPropertyNames43_ES5.ts === +class Foo { x } +>Foo : Foo +> : ^^^ +>x : any +> : ^^^ + +class Foo2 { x; y } +>Foo2 : Foo2 +> : ^^^^ +>x : any +> : ^^^ +>y : any +> : ^^^ + +class C { +>C : C +> : ^ + + [s: string]: Foo2; +>s : string +> : ^^^^^^ +} + +class D extends C { +>D : D +> : ^ +>C : C +> : ^ + + // Computed properties + get ["get1"]() { return new Foo } +>["get1"] : Foo +> : ^^^ +>"get1" : "get1" +> : ^^^^^^ +>new Foo : Foo +> : ^^^ +>Foo : typeof Foo +> : ^^^^^^^^^^ + + set ["set1"](p: Foo2) { } +>["set1"] : Foo2 +> : ^^^^ +>"set1" : "set1" +> : ^^^^^^ +>p : Foo2 +> : ^^^^ +} diff --git a/tests/baselines/reference/computedPropertyNames44_ES5.errors.txt b/tests/baselines/reference/computedPropertyNames44_ES5(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/computedPropertyNames44_ES5.errors.txt rename to tests/baselines/reference/computedPropertyNames44_ES5(target=es2015).errors.txt diff --git a/tests/baselines/reference/computedPropertyNames44_ES5(target=es2015).js b/tests/baselines/reference/computedPropertyNames44_ES5(target=es2015).js new file mode 100644 index 0000000000000..4810f3cb29970 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames44_ES5(target=es2015).js @@ -0,0 +1,26 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames44_ES5.ts] //// + +//// [computedPropertyNames44_ES5.ts] +class Foo { x } +class Foo2 { x; y } + +class C { + [s: string]: Foo2; + get ["get1"]() { return new Foo } +} + +class D extends C { + set ["set1"](p: Foo) { } +} + +//// [computedPropertyNames44_ES5.js] +class Foo { +} +class Foo2 { +} +class C { + get ["get1"]() { return new Foo; } +} +class D extends C { + set ["set1"](p) { } +} diff --git a/tests/baselines/reference/computedPropertyNames44_ES5.symbols b/tests/baselines/reference/computedPropertyNames44_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/computedPropertyNames44_ES5.symbols rename to tests/baselines/reference/computedPropertyNames44_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/computedPropertyNames44_ES5.types b/tests/baselines/reference/computedPropertyNames44_ES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/computedPropertyNames44_ES5.types rename to tests/baselines/reference/computedPropertyNames44_ES5(target=es2015).types diff --git a/tests/baselines/reference/computedPropertyNames44_ES5(target=es5).errors.txt b/tests/baselines/reference/computedPropertyNames44_ES5(target=es5).errors.txt new file mode 100644 index 0000000000000..3651df6f9a373 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames44_ES5(target=es5).errors.txt @@ -0,0 +1,20 @@ +computedPropertyNames44_ES5.ts(6,9): error TS2411: Property '["get1"]' of type 'Foo' is not assignable to 'string' index type 'Foo2'. +computedPropertyNames44_ES5.ts(10,9): error TS2411: Property '["set1"]' of type 'Foo' is not assignable to 'string' index type 'Foo2'. + + +==== computedPropertyNames44_ES5.ts (2 errors) ==== + class Foo { x } + class Foo2 { x; y } + + class C { + [s: string]: Foo2; + get ["get1"]() { return new Foo } + ~~~~~~~~ +!!! error TS2411: Property '["get1"]' of type 'Foo' is not assignable to 'string' index type 'Foo2'. + } + + class D extends C { + set ["set1"](p: Foo) { } + ~~~~~~~~ +!!! error TS2411: Property '["set1"]' of type 'Foo' is not assignable to 'string' index type 'Foo2'. + } \ No newline at end of file diff --git a/tests/baselines/reference/computedPropertyNames44_ES5.js b/tests/baselines/reference/computedPropertyNames44_ES5(target=es5).js similarity index 100% rename from tests/baselines/reference/computedPropertyNames44_ES5.js rename to tests/baselines/reference/computedPropertyNames44_ES5(target=es5).js diff --git a/tests/baselines/reference/computedPropertyNames44_ES5(target=es5).symbols b/tests/baselines/reference/computedPropertyNames44_ES5(target=es5).symbols new file mode 100644 index 0000000000000..453a7f145a7e8 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames44_ES5(target=es5).symbols @@ -0,0 +1,35 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames44_ES5.ts] //// + +=== computedPropertyNames44_ES5.ts === +class Foo { x } +>Foo : Symbol(Foo, Decl(computedPropertyNames44_ES5.ts, 0, 0)) +>x : Symbol(Foo.x, Decl(computedPropertyNames44_ES5.ts, 0, 11)) + +class Foo2 { x; y } +>Foo2 : Symbol(Foo2, Decl(computedPropertyNames44_ES5.ts, 0, 15)) +>x : Symbol(Foo2.x, Decl(computedPropertyNames44_ES5.ts, 1, 12)) +>y : Symbol(Foo2.y, Decl(computedPropertyNames44_ES5.ts, 1, 15)) + +class C { +>C : Symbol(C, Decl(computedPropertyNames44_ES5.ts, 1, 19)) + + [s: string]: Foo2; +>s : Symbol(s, Decl(computedPropertyNames44_ES5.ts, 4, 5)) +>Foo2 : Symbol(Foo2, Decl(computedPropertyNames44_ES5.ts, 0, 15)) + + get ["get1"]() { return new Foo } +>["get1"] : Symbol(C["get1"], Decl(computedPropertyNames44_ES5.ts, 4, 22)) +>"get1" : Symbol(C["get1"], Decl(computedPropertyNames44_ES5.ts, 4, 22)) +>Foo : Symbol(Foo, Decl(computedPropertyNames44_ES5.ts, 0, 0)) +} + +class D extends C { +>D : Symbol(D, Decl(computedPropertyNames44_ES5.ts, 6, 1)) +>C : Symbol(C, Decl(computedPropertyNames44_ES5.ts, 1, 19)) + + set ["set1"](p: Foo) { } +>["set1"] : Symbol(D["set1"], Decl(computedPropertyNames44_ES5.ts, 8, 19)) +>"set1" : Symbol(D["set1"], Decl(computedPropertyNames44_ES5.ts, 8, 19)) +>p : Symbol(p, Decl(computedPropertyNames44_ES5.ts, 9, 17)) +>Foo : Symbol(Foo, Decl(computedPropertyNames44_ES5.ts, 0, 0)) +} diff --git a/tests/baselines/reference/computedPropertyNames44_ES5(target=es5).types b/tests/baselines/reference/computedPropertyNames44_ES5(target=es5).types new file mode 100644 index 0000000000000..18d0c830ddabe --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames44_ES5(target=es5).types @@ -0,0 +1,50 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames44_ES5.ts] //// + +=== computedPropertyNames44_ES5.ts === +class Foo { x } +>Foo : Foo +> : ^^^ +>x : any +> : ^^^ + +class Foo2 { x; y } +>Foo2 : Foo2 +> : ^^^^ +>x : any +> : ^^^ +>y : any +> : ^^^ + +class C { +>C : C +> : ^ + + [s: string]: Foo2; +>s : string +> : ^^^^^^ + + get ["get1"]() { return new Foo } +>["get1"] : Foo +> : ^^^ +>"get1" : "get1" +> : ^^^^^^ +>new Foo : Foo +> : ^^^ +>Foo : typeof Foo +> : ^^^^^^^^^^ +} + +class D extends C { +>D : D +> : ^ +>C : C +> : ^ + + set ["set1"](p: Foo) { } +>["set1"] : Foo +> : ^^^ +>"set1" : "set1" +> : ^^^^^^ +>p : Foo +> : ^^^ +} diff --git a/tests/baselines/reference/computedPropertyNames45_ES5.errors.txt b/tests/baselines/reference/computedPropertyNames45_ES5(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/computedPropertyNames45_ES5.errors.txt rename to tests/baselines/reference/computedPropertyNames45_ES5(target=es2015).errors.txt diff --git a/tests/baselines/reference/computedPropertyNames45_ES5(target=es2015).js b/tests/baselines/reference/computedPropertyNames45_ES5(target=es2015).js new file mode 100644 index 0000000000000..72c19390ec333 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames45_ES5(target=es2015).js @@ -0,0 +1,27 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames45_ES5.ts] //// + +//// [computedPropertyNames45_ES5.ts] +class Foo { x } +class Foo2 { x; y } + +class C { + get ["get1"]() { return new Foo } +} + +class D extends C { + // No error when the indexer is in a class more derived than the computed property + [s: string]: Foo2; + set ["set1"](p: Foo) { } +} + +//// [computedPropertyNames45_ES5.js] +class Foo { +} +class Foo2 { +} +class C { + get ["get1"]() { return new Foo; } +} +class D extends C { + set ["set1"](p) { } +} diff --git a/tests/baselines/reference/computedPropertyNames45_ES5.symbols b/tests/baselines/reference/computedPropertyNames45_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/computedPropertyNames45_ES5.symbols rename to tests/baselines/reference/computedPropertyNames45_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/computedPropertyNames45_ES5.types b/tests/baselines/reference/computedPropertyNames45_ES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/computedPropertyNames45_ES5.types rename to tests/baselines/reference/computedPropertyNames45_ES5(target=es2015).types diff --git a/tests/baselines/reference/computedPropertyNames45_ES5(target=es5).errors.txt b/tests/baselines/reference/computedPropertyNames45_ES5(target=es5).errors.txt new file mode 100644 index 0000000000000..ca699225fe35f --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames45_ES5(target=es5).errors.txt @@ -0,0 +1,22 @@ +computedPropertyNames45_ES5.ts(10,5): error TS2411: Property '["get1"]' of type 'Foo' is not assignable to 'string' index type 'Foo2'. +computedPropertyNames45_ES5.ts(11,9): error TS2411: Property '["set1"]' of type 'Foo' is not assignable to 'string' index type 'Foo2'. + + +==== computedPropertyNames45_ES5.ts (2 errors) ==== + class Foo { x } + class Foo2 { x; y } + + class C { + get ["get1"]() { return new Foo } + } + + class D extends C { + // No error when the indexer is in a class more derived than the computed property + [s: string]: Foo2; + ~~~~~~~~~~~~~~~~~~ +!!! error TS2411: Property '["get1"]' of type 'Foo' is not assignable to 'string' index type 'Foo2'. +!!! related TS2728 computedPropertyNames45_ES5.ts:5:9: '["get1"]' is declared here. + set ["set1"](p: Foo) { } + ~~~~~~~~ +!!! error TS2411: Property '["set1"]' of type 'Foo' is not assignable to 'string' index type 'Foo2'. + } \ No newline at end of file diff --git a/tests/baselines/reference/computedPropertyNames45_ES5.js b/tests/baselines/reference/computedPropertyNames45_ES5(target=es5).js similarity index 100% rename from tests/baselines/reference/computedPropertyNames45_ES5.js rename to tests/baselines/reference/computedPropertyNames45_ES5(target=es5).js diff --git a/tests/baselines/reference/computedPropertyNames45_ES5(target=es5).symbols b/tests/baselines/reference/computedPropertyNames45_ES5(target=es5).symbols new file mode 100644 index 0000000000000..81e355aa1ad00 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames45_ES5(target=es5).symbols @@ -0,0 +1,36 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames45_ES5.ts] //// + +=== computedPropertyNames45_ES5.ts === +class Foo { x } +>Foo : Symbol(Foo, Decl(computedPropertyNames45_ES5.ts, 0, 0)) +>x : Symbol(Foo.x, Decl(computedPropertyNames45_ES5.ts, 0, 11)) + +class Foo2 { x; y } +>Foo2 : Symbol(Foo2, Decl(computedPropertyNames45_ES5.ts, 0, 15)) +>x : Symbol(Foo2.x, Decl(computedPropertyNames45_ES5.ts, 1, 12)) +>y : Symbol(Foo2.y, Decl(computedPropertyNames45_ES5.ts, 1, 15)) + +class C { +>C : Symbol(C, Decl(computedPropertyNames45_ES5.ts, 1, 19)) + + get ["get1"]() { return new Foo } +>["get1"] : Symbol(C["get1"], Decl(computedPropertyNames45_ES5.ts, 3, 9)) +>"get1" : Symbol(C["get1"], Decl(computedPropertyNames45_ES5.ts, 3, 9)) +>Foo : Symbol(Foo, Decl(computedPropertyNames45_ES5.ts, 0, 0)) +} + +class D extends C { +>D : Symbol(D, Decl(computedPropertyNames45_ES5.ts, 5, 1)) +>C : Symbol(C, Decl(computedPropertyNames45_ES5.ts, 1, 19)) + + // No error when the indexer is in a class more derived than the computed property + [s: string]: Foo2; +>s : Symbol(s, Decl(computedPropertyNames45_ES5.ts, 9, 5)) +>Foo2 : Symbol(Foo2, Decl(computedPropertyNames45_ES5.ts, 0, 15)) + + set ["set1"](p: Foo) { } +>["set1"] : Symbol(D["set1"], Decl(computedPropertyNames45_ES5.ts, 9, 22)) +>"set1" : Symbol(D["set1"], Decl(computedPropertyNames45_ES5.ts, 9, 22)) +>p : Symbol(p, Decl(computedPropertyNames45_ES5.ts, 10, 17)) +>Foo : Symbol(Foo, Decl(computedPropertyNames45_ES5.ts, 0, 0)) +} diff --git a/tests/baselines/reference/computedPropertyNames45_ES5(target=es5).types b/tests/baselines/reference/computedPropertyNames45_ES5(target=es5).types new file mode 100644 index 0000000000000..81296095264c3 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames45_ES5(target=es5).types @@ -0,0 +1,51 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames45_ES5.ts] //// + +=== computedPropertyNames45_ES5.ts === +class Foo { x } +>Foo : Foo +> : ^^^ +>x : any +> : ^^^ + +class Foo2 { x; y } +>Foo2 : Foo2 +> : ^^^^ +>x : any +> : ^^^ +>y : any +> : ^^^ + +class C { +>C : C +> : ^ + + get ["get1"]() { return new Foo } +>["get1"] : Foo +> : ^^^ +>"get1" : "get1" +> : ^^^^^^ +>new Foo : Foo +> : ^^^ +>Foo : typeof Foo +> : ^^^^^^^^^^ +} + +class D extends C { +>D : D +> : ^ +>C : C +> : ^ + + // No error when the indexer is in a class more derived than the computed property + [s: string]: Foo2; +>s : string +> : ^^^^^^ + + set ["set1"](p: Foo) { } +>["set1"] : Foo +> : ^^^ +>"set1" : "set1" +> : ^^^^^^ +>p : Foo +> : ^^^ +} diff --git a/tests/baselines/reference/computedPropertyNames46_ES5.errors.txt b/tests/baselines/reference/computedPropertyNames46_ES5(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/computedPropertyNames46_ES5.errors.txt rename to tests/baselines/reference/computedPropertyNames46_ES5(target=es2015).errors.txt diff --git a/tests/baselines/reference/computedPropertyNames46_ES5(target=es2015).js b/tests/baselines/reference/computedPropertyNames46_ES5(target=es2015).js new file mode 100644 index 0000000000000..e50583ef71fb1 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames46_ES5(target=es2015).js @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames46_ES5.ts] //// + +//// [computedPropertyNames46_ES5.ts] +var o = { + ["" || 0]: 0 +}; + +//// [computedPropertyNames46_ES5.js] +var o = { + ["" || 0]: 0 +}; diff --git a/tests/baselines/reference/computedPropertyNames46_ES5.symbols b/tests/baselines/reference/computedPropertyNames46_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/computedPropertyNames46_ES5.symbols rename to tests/baselines/reference/computedPropertyNames46_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/computedPropertyNames46_ES5.types b/tests/baselines/reference/computedPropertyNames46_ES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/computedPropertyNames46_ES5.types rename to tests/baselines/reference/computedPropertyNames46_ES5(target=es2015).types diff --git a/tests/baselines/reference/computedPropertyNames46_ES5(target=es5).errors.txt b/tests/baselines/reference/computedPropertyNames46_ES5(target=es5).errors.txt new file mode 100644 index 0000000000000..8b574a3610e6f --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames46_ES5(target=es5).errors.txt @@ -0,0 +1,9 @@ +computedPropertyNames46_ES5.ts(2,6): error TS2873: This kind of expression is always falsy. + + +==== computedPropertyNames46_ES5.ts (1 errors) ==== + var o = { + ["" || 0]: 0 + ~~ +!!! error TS2873: This kind of expression is always falsy. + }; \ No newline at end of file diff --git a/tests/baselines/reference/computedPropertyNames46_ES5.js b/tests/baselines/reference/computedPropertyNames46_ES5(target=es5).js similarity index 100% rename from tests/baselines/reference/computedPropertyNames46_ES5.js rename to tests/baselines/reference/computedPropertyNames46_ES5(target=es5).js diff --git a/tests/baselines/reference/computedPropertyNames46_ES5(target=es5).symbols b/tests/baselines/reference/computedPropertyNames46_ES5(target=es5).symbols new file mode 100644 index 0000000000000..f2ea23401e876 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames46_ES5(target=es5).symbols @@ -0,0 +1,10 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames46_ES5.ts] //// + +=== computedPropertyNames46_ES5.ts === +var o = { +>o : Symbol(o, Decl(computedPropertyNames46_ES5.ts, 0, 3)) + + ["" || 0]: 0 +>["" || 0] : Symbol(["" || 0], Decl(computedPropertyNames46_ES5.ts, 0, 9)) + +}; diff --git a/tests/baselines/reference/computedPropertyNames46_ES5(target=es5).types b/tests/baselines/reference/computedPropertyNames46_ES5(target=es5).types new file mode 100644 index 0000000000000..e5f267386cb1f --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames46_ES5(target=es5).types @@ -0,0 +1,22 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames46_ES5.ts] //// + +=== computedPropertyNames46_ES5.ts === +var o = { +>o : { 0: number; } +> : ^^^^^^^^^^^^^^ +>{ ["" || 0]: 0} : { 0: number; } +> : ^^^^^^^^^^^^^^ + + ["" || 0]: 0 +>["" || 0] : number +> : ^^^^^^ +>"" || 0 : 0 +> : ^ +>"" : "" +> : ^^ +>0 : 0 +> : ^ +>0 : 0 +> : ^ + +}; diff --git a/tests/baselines/reference/computedPropertyNames47_ES5(target=es2015).js b/tests/baselines/reference/computedPropertyNames47_ES5(target=es2015).js new file mode 100644 index 0000000000000..40a4adc05dae6 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames47_ES5(target=es2015).js @@ -0,0 +1,21 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames47_ES5.ts] //// + +//// [computedPropertyNames47_ES5.ts] +enum E1 { x } +enum E2 { x } +var o = { + [E1.x || E2.x]: 0 +}; + +//// [computedPropertyNames47_ES5.js] +var E1; +(function (E1) { + E1[E1["x"] = 0] = "x"; +})(E1 || (E1 = {})); +var E2; +(function (E2) { + E2[E2["x"] = 0] = "x"; +})(E2 || (E2 = {})); +var o = { + [E1.x || E2.x]: 0 +}; diff --git a/tests/baselines/reference/computedPropertyNames47_ES5.symbols b/tests/baselines/reference/computedPropertyNames47_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/computedPropertyNames47_ES5.symbols rename to tests/baselines/reference/computedPropertyNames47_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/computedPropertyNames47_ES5.types b/tests/baselines/reference/computedPropertyNames47_ES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/computedPropertyNames47_ES5.types rename to tests/baselines/reference/computedPropertyNames47_ES5(target=es2015).types diff --git a/tests/baselines/reference/computedPropertyNames47_ES5.js b/tests/baselines/reference/computedPropertyNames47_ES5(target=es5).js similarity index 100% rename from tests/baselines/reference/computedPropertyNames47_ES5.js rename to tests/baselines/reference/computedPropertyNames47_ES5(target=es5).js diff --git a/tests/baselines/reference/computedPropertyNames47_ES5(target=es5).symbols b/tests/baselines/reference/computedPropertyNames47_ES5(target=es5).symbols new file mode 100644 index 0000000000000..cb6a9f59b35c6 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames47_ES5(target=es5).symbols @@ -0,0 +1,24 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames47_ES5.ts] //// + +=== computedPropertyNames47_ES5.ts === +enum E1 { x } +>E1 : Symbol(E1, Decl(computedPropertyNames47_ES5.ts, 0, 0)) +>x : Symbol(E1.x, Decl(computedPropertyNames47_ES5.ts, 0, 9)) + +enum E2 { x } +>E2 : Symbol(E2, Decl(computedPropertyNames47_ES5.ts, 0, 13)) +>x : Symbol(E2.x, Decl(computedPropertyNames47_ES5.ts, 1, 9)) + +var o = { +>o : Symbol(o, Decl(computedPropertyNames47_ES5.ts, 2, 3)) + + [E1.x || E2.x]: 0 +>[E1.x || E2.x] : Symbol([E1.x || E2.x], Decl(computedPropertyNames47_ES5.ts, 2, 9)) +>E1.x : Symbol(E1.x, Decl(computedPropertyNames47_ES5.ts, 0, 9)) +>E1 : Symbol(E1, Decl(computedPropertyNames47_ES5.ts, 0, 0)) +>x : Symbol(E1.x, Decl(computedPropertyNames47_ES5.ts, 0, 9)) +>E2.x : Symbol(E2.x, Decl(computedPropertyNames47_ES5.ts, 1, 9)) +>E2 : Symbol(E2, Decl(computedPropertyNames47_ES5.ts, 0, 13)) +>x : Symbol(E2.x, Decl(computedPropertyNames47_ES5.ts, 1, 9)) + +}; diff --git a/tests/baselines/reference/computedPropertyNames47_ES5(target=es5).types b/tests/baselines/reference/computedPropertyNames47_ES5(target=es5).types new file mode 100644 index 0000000000000..0f35dc51cac41 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames47_ES5(target=es5).types @@ -0,0 +1,42 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames47_ES5.ts] //// + +=== computedPropertyNames47_ES5.ts === +enum E1 { x } +>E1 : E1 +> : ^^ +>x : E1.x +> : ^^^^ + +enum E2 { x } +>E2 : E2 +> : ^^ +>x : E2.x +> : ^^^^ + +var o = { +>o : { 0: number; } +> : ^^^^^^^^^^^^^^ +>{ [E1.x || E2.x]: 0} : { 0: number; } +> : ^^^^^^^^^^^^^^ + + [E1.x || E2.x]: 0 +>[E1.x || E2.x] : number +> : ^^^^^^ +>E1.x || E2.x : E2 +> : ^^ +>E1.x : E1 +> : ^^ +>E1 : typeof E1 +> : ^^^^^^^^^ +>x : E1 +> : ^^ +>E2.x : E2 +> : ^^ +>E2 : typeof E2 +> : ^^^^^^^^^ +>x : E2 +> : ^^ +>0 : 0 +> : ^ + +}; diff --git a/tests/baselines/reference/computedPropertyNames48_ES5.errors.txt b/tests/baselines/reference/computedPropertyNames48_ES5(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/computedPropertyNames48_ES5.errors.txt rename to tests/baselines/reference/computedPropertyNames48_ES5(target=es2015).errors.txt diff --git a/tests/baselines/reference/computedPropertyNames48_ES5(target=es2015).js b/tests/baselines/reference/computedPropertyNames48_ES5(target=es2015).js new file mode 100644 index 0000000000000..62409b5c9f47c --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames48_ES5(target=es2015).js @@ -0,0 +1,36 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames48_ES5.ts] //// + +//// [computedPropertyNames48_ES5.ts] +declare function extractIndexer(p: { [n: number]: T }): T; + +enum E { x } + +var a: any; + +extractIndexer({ + [a]: "" +}); // Should return string + +extractIndexer({ + [E.x]: "" +}); // Should return string + +extractIndexer({ + ["" || 0]: "" +}); // Should return any (widened form of undefined) + +//// [computedPropertyNames48_ES5.js] +var E; +(function (E) { + E[E["x"] = 0] = "x"; +})(E || (E = {})); +var a; +extractIndexer({ + [a]: "" +}); // Should return string +extractIndexer({ + [E.x]: "" +}); // Should return string +extractIndexer({ + ["" || 0]: "" +}); // Should return any (widened form of undefined) diff --git a/tests/baselines/reference/computedPropertyNames48_ES5.symbols b/tests/baselines/reference/computedPropertyNames48_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/computedPropertyNames48_ES5.symbols rename to tests/baselines/reference/computedPropertyNames48_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/computedPropertyNames48_ES5.types b/tests/baselines/reference/computedPropertyNames48_ES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/computedPropertyNames48_ES5.types rename to tests/baselines/reference/computedPropertyNames48_ES5(target=es2015).types diff --git a/tests/baselines/reference/computedPropertyNames48_ES5(target=es5).errors.txt b/tests/baselines/reference/computedPropertyNames48_ES5(target=es5).errors.txt new file mode 100644 index 0000000000000..4cbb21c322842 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames48_ES5(target=es5).errors.txt @@ -0,0 +1,23 @@ +computedPropertyNames48_ES5.ts(16,6): error TS2873: This kind of expression is always falsy. + + +==== computedPropertyNames48_ES5.ts (1 errors) ==== + declare function extractIndexer(p: { [n: number]: T }): T; + + enum E { x } + + var a: any; + + extractIndexer({ + [a]: "" + }); // Should return string + + extractIndexer({ + [E.x]: "" + }); // Should return string + + extractIndexer({ + ["" || 0]: "" + ~~ +!!! error TS2873: This kind of expression is always falsy. + }); // Should return any (widened form of undefined) \ No newline at end of file diff --git a/tests/baselines/reference/computedPropertyNames48_ES5.js b/tests/baselines/reference/computedPropertyNames48_ES5(target=es5).js similarity index 100% rename from tests/baselines/reference/computedPropertyNames48_ES5.js rename to tests/baselines/reference/computedPropertyNames48_ES5(target=es5).js diff --git a/tests/baselines/reference/computedPropertyNames48_ES5(target=es5).symbols b/tests/baselines/reference/computedPropertyNames48_ES5(target=es5).symbols new file mode 100644 index 0000000000000..268f519c65fb4 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames48_ES5(target=es5).symbols @@ -0,0 +1,45 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames48_ES5.ts] //// + +=== computedPropertyNames48_ES5.ts === +declare function extractIndexer(p: { [n: number]: T }): T; +>extractIndexer : Symbol(extractIndexer, Decl(computedPropertyNames48_ES5.ts, 0, 0)) +>T : Symbol(T, Decl(computedPropertyNames48_ES5.ts, 0, 32)) +>p : Symbol(p, Decl(computedPropertyNames48_ES5.ts, 0, 35)) +>n : Symbol(n, Decl(computedPropertyNames48_ES5.ts, 0, 41)) +>T : Symbol(T, Decl(computedPropertyNames48_ES5.ts, 0, 32)) +>T : Symbol(T, Decl(computedPropertyNames48_ES5.ts, 0, 32)) + +enum E { x } +>E : Symbol(E, Decl(computedPropertyNames48_ES5.ts, 0, 61)) +>x : Symbol(E.x, Decl(computedPropertyNames48_ES5.ts, 2, 8)) + +var a: any; +>a : Symbol(a, Decl(computedPropertyNames48_ES5.ts, 4, 3)) + +extractIndexer({ +>extractIndexer : Symbol(extractIndexer, Decl(computedPropertyNames48_ES5.ts, 0, 0)) + + [a]: "" +>[a] : Symbol([a], Decl(computedPropertyNames48_ES5.ts, 6, 16)) +>a : Symbol(a, Decl(computedPropertyNames48_ES5.ts, 4, 3)) + +}); // Should return string + +extractIndexer({ +>extractIndexer : Symbol(extractIndexer, Decl(computedPropertyNames48_ES5.ts, 0, 0)) + + [E.x]: "" +>[E.x] : Symbol([E.x], Decl(computedPropertyNames48_ES5.ts, 10, 16)) +>E.x : Symbol(E.x, Decl(computedPropertyNames48_ES5.ts, 2, 8)) +>E : Symbol(E, Decl(computedPropertyNames48_ES5.ts, 0, 61)) +>x : Symbol(E.x, Decl(computedPropertyNames48_ES5.ts, 2, 8)) + +}); // Should return string + +extractIndexer({ +>extractIndexer : Symbol(extractIndexer, Decl(computedPropertyNames48_ES5.ts, 0, 0)) + + ["" || 0]: "" +>["" || 0] : Symbol(["" || 0], Decl(computedPropertyNames48_ES5.ts, 14, 16)) + +}); // Should return any (widened form of undefined) diff --git a/tests/baselines/reference/computedPropertyNames48_ES5(target=es5).types b/tests/baselines/reference/computedPropertyNames48_ES5(target=es5).types new file mode 100644 index 0000000000000..8f91b12db5bf8 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames48_ES5(target=es5).types @@ -0,0 +1,82 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames48_ES5.ts] //// + +=== computedPropertyNames48_ES5.ts === +declare function extractIndexer(p: { [n: number]: T }): T; +>extractIndexer : (p: { [n: number]: T; }) => T +> : ^ ^^ ^^ ^^^^^ +>p : { [n: number]: T; } +> : ^^^^^^^^^^^^^^^^^^^ +>n : number +> : ^^^^^^ + +enum E { x } +>E : E +> : ^ +>x : E.x +> : ^^^ + +var a: any; +>a : any +> : ^^^ + +extractIndexer({ +>extractIndexer({ [a]: ""}) : string +> : ^^^^^^ +>extractIndexer : (p: { [n: number]: T; }) => T +> : ^ ^^ ^^ ^^^^^ +>{ [a]: ""} : { [a]: string; } +> : ^^ ^^^^^^ ^^ + + [a]: "" +>[a] : string +> : ^^^^^^ +>a : any +> : ^^^ +>"" : "" +> : ^^ + +}); // Should return string + +extractIndexer({ +>extractIndexer({ [E.x]: ""}) : string +> : ^^^^^^ +>extractIndexer : (p: { [n: number]: T; }) => T +> : ^ ^^ ^^ ^^^^^ +>{ [E.x]: ""} : { 0: string; } +> : ^^^^^^^^^^^^^^ + + [E.x]: "" +>[E.x] : string +> : ^^^^^^ +>E.x : E +> : ^ +>E : typeof E +> : ^^^^^^^^ +>x : E +> : ^ +>"" : "" +> : ^^ + +}); // Should return string + +extractIndexer({ +>extractIndexer({ ["" || 0]: ""}) : string +> : ^^^^^^ +>extractIndexer : (p: { [n: number]: T; }) => T +> : ^ ^^ ^^ ^^^^^ +>{ ["" || 0]: ""} : { 0: string; } +> : ^^^^^^^^^^^^^^ + + ["" || 0]: "" +>["" || 0] : string +> : ^^^^^^ +>"" || 0 : 0 +> : ^ +>"" : "" +> : ^^ +>0 : 0 +> : ^ +>"" : "" +> : ^^ + +}); // Should return any (widened form of undefined) diff --git a/tests/baselines/reference/computedPropertyNames4_ES5(target=es2015).js b/tests/baselines/reference/computedPropertyNames4_ES5(target=es2015).js new file mode 100644 index 0000000000000..416d7cbc62e79 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames4_ES5(target=es2015).js @@ -0,0 +1,37 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames4_ES5.ts] //// + +//// [computedPropertyNames4_ES5.ts] +var s: string; +var n: number; +var a: any; +var v = { + [s]: 0, + [n]: n, + [s + s]: 1, + [s + n]: 2, + [+s]: s, + [""]: 0, + [0]: 0, + [a]: 1, + [true]: 0, + [`hello bye`]: 0, + [`hello ${a} bye`]: 0 +} + +//// [computedPropertyNames4_ES5.js] +var s; +var n; +var a; +var v = { + [s]: 0, + [n]: n, + [s + s]: 1, + [s + n]: 2, + [+s]: s, + [""]: 0, + [0]: 0, + [a]: 1, + [true]: 0, + [`hello bye`]: 0, + [`hello ${a} bye`]: 0 +}; diff --git a/tests/baselines/reference/computedPropertyNames4_ES5.symbols b/tests/baselines/reference/computedPropertyNames4_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/computedPropertyNames4_ES5.symbols rename to tests/baselines/reference/computedPropertyNames4_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/computedPropertyNames4_ES5.types b/tests/baselines/reference/computedPropertyNames4_ES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/computedPropertyNames4_ES5.types rename to tests/baselines/reference/computedPropertyNames4_ES5(target=es2015).types diff --git a/tests/baselines/reference/computedPropertyNames4_ES5.js b/tests/baselines/reference/computedPropertyNames4_ES5(target=es5).js similarity index 100% rename from tests/baselines/reference/computedPropertyNames4_ES5.js rename to tests/baselines/reference/computedPropertyNames4_ES5(target=es5).js diff --git a/tests/baselines/reference/computedPropertyNames4_ES5(target=es5).symbols b/tests/baselines/reference/computedPropertyNames4_ES5(target=es5).symbols new file mode 100644 index 0000000000000..7c7373baa7bb4 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames4_ES5(target=es5).symbols @@ -0,0 +1,62 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames4_ES5.ts] //// + +=== computedPropertyNames4_ES5.ts === +var s: string; +>s : Symbol(s, Decl(computedPropertyNames4_ES5.ts, 0, 3)) + +var n: number; +>n : Symbol(n, Decl(computedPropertyNames4_ES5.ts, 1, 3)) + +var a: any; +>a : Symbol(a, Decl(computedPropertyNames4_ES5.ts, 2, 3)) + +var v = { +>v : Symbol(v, Decl(computedPropertyNames4_ES5.ts, 3, 3)) + + [s]: 0, +>[s] : Symbol([s], Decl(computedPropertyNames4_ES5.ts, 3, 9)) +>s : Symbol(s, Decl(computedPropertyNames4_ES5.ts, 0, 3)) + + [n]: n, +>[n] : Symbol([n], Decl(computedPropertyNames4_ES5.ts, 4, 11)) +>n : Symbol(n, Decl(computedPropertyNames4_ES5.ts, 1, 3)) +>n : Symbol(n, Decl(computedPropertyNames4_ES5.ts, 1, 3)) + + [s + s]: 1, +>[s + s] : Symbol([s + s], Decl(computedPropertyNames4_ES5.ts, 5, 11)) +>s : Symbol(s, Decl(computedPropertyNames4_ES5.ts, 0, 3)) +>s : Symbol(s, Decl(computedPropertyNames4_ES5.ts, 0, 3)) + + [s + n]: 2, +>[s + n] : Symbol([s + n], Decl(computedPropertyNames4_ES5.ts, 6, 15)) +>s : Symbol(s, Decl(computedPropertyNames4_ES5.ts, 0, 3)) +>n : Symbol(n, Decl(computedPropertyNames4_ES5.ts, 1, 3)) + + [+s]: s, +>[+s] : Symbol([+s], Decl(computedPropertyNames4_ES5.ts, 7, 15)) +>s : Symbol(s, Decl(computedPropertyNames4_ES5.ts, 0, 3)) +>s : Symbol(s, Decl(computedPropertyNames4_ES5.ts, 0, 3)) + + [""]: 0, +>[""] : Symbol([""], Decl(computedPropertyNames4_ES5.ts, 8, 12)) +>"" : Symbol([""], Decl(computedPropertyNames4_ES5.ts, 8, 12)) + + [0]: 0, +>[0] : Symbol([0], Decl(computedPropertyNames4_ES5.ts, 9, 12)) +>0 : Symbol([0], Decl(computedPropertyNames4_ES5.ts, 9, 12)) + + [a]: 1, +>[a] : Symbol([a], Decl(computedPropertyNames4_ES5.ts, 10, 11)) +>a : Symbol(a, Decl(computedPropertyNames4_ES5.ts, 2, 3)) + + [true]: 0, +>[true] : Symbol([true], Decl(computedPropertyNames4_ES5.ts, 11, 11)) + + [`hello bye`]: 0, +>[`hello bye`] : Symbol([`hello bye`], Decl(computedPropertyNames4_ES5.ts, 12, 19)) +>`hello bye` : Symbol([`hello bye`], Decl(computedPropertyNames4_ES5.ts, 12, 19)) + + [`hello ${a} bye`]: 0 +>[`hello ${a} bye`] : Symbol([`hello ${a} bye`], Decl(computedPropertyNames4_ES5.ts, 13, 21)) +>a : Symbol(a, Decl(computedPropertyNames4_ES5.ts, 2, 3)) +} diff --git a/tests/baselines/reference/computedPropertyNames4_ES5(target=es5).types b/tests/baselines/reference/computedPropertyNames4_ES5(target=es5).types new file mode 100644 index 0000000000000..809126b9fcb45 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames4_ES5(target=es5).types @@ -0,0 +1,119 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames4_ES5.ts] //// + +=== computedPropertyNames4_ES5.ts === +var s: string; +>s : string +> : ^^^^^^ + +var n: number; +>n : number +> : ^^^^^^ + +var a: any; +>a : any + +var v = { +>v : { [x: string]: string | number; [x: number]: string | number; "": number; 0: number; "hello bye": number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ [s]: 0, [n]: n, [s + s]: 1, [s + n]: 2, [+s]: s, [""]: 0, [0]: 0, [a]: 1, [true]: 0, [`hello bye`]: 0, [`hello ${a} bye`]: 0} : { [x: string]: string | number; [x: number]: string | number; "": number; 0: number; "hello bye": number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + [s]: 0, +>[s] : number +> : ^^^^^^ +>s : string +> : ^^^^^^ +>0 : 0 +> : ^ + + [n]: n, +>[n] : number +> : ^^^^^^ +>n : number +> : ^^^^^^ +>n : number +> : ^^^^^^ + + [s + s]: 1, +>[s + s] : number +> : ^^^^^^ +>s + s : string +> : ^^^^^^ +>s : string +> : ^^^^^^ +>s : string +> : ^^^^^^ +>1 : 1 +> : ^ + + [s + n]: 2, +>[s + n] : number +> : ^^^^^^ +>s + n : string +> : ^^^^^^ +>s : string +> : ^^^^^^ +>n : number +> : ^^^^^^ +>2 : 2 +> : ^ + + [+s]: s, +>[+s] : string +> : ^^^^^^ +>+s : number +> : ^^^^^^ +>s : string +> : ^^^^^^ +>s : string +> : ^^^^^^ + + [""]: 0, +>[""] : number +> : ^^^^^^ +>"" : "" +> : ^^ +>0 : 0 +> : ^ + + [0]: 0, +>[0] : number +> : ^^^^^^ +>0 : 0 +> : ^ +>0 : 0 +> : ^ + + [a]: 1, +>[a] : number +> : ^^^^^^ +>a : any +>1 : 1 +> : ^ + + [true]: 0, +>[true] : number +> : ^^^^^^ +>true : any +>true : true +> : ^^^^ +>0 : 0 +> : ^ + + [`hello bye`]: 0, +>[`hello bye`] : number +> : ^^^^^^ +>`hello bye` : "hello bye" +> : ^^^^^^^^^^^ +>0 : 0 +> : ^ + + [`hello ${a} bye`]: 0 +>[`hello ${a} bye`] : number +> : ^^^^^^ +>`hello ${a} bye` : string +> : ^^^^^^ +>a : any +>0 : 0 +> : ^ +} diff --git a/tests/baselines/reference/computedPropertyNames5_ES5.errors.txt b/tests/baselines/reference/computedPropertyNames5_ES5(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/computedPropertyNames5_ES5.errors.txt rename to tests/baselines/reference/computedPropertyNames5_ES5(target=es2015).errors.txt diff --git a/tests/baselines/reference/computedPropertyNames5_ES5(target=es2015).js b/tests/baselines/reference/computedPropertyNames5_ES5(target=es2015).js new file mode 100644 index 0000000000000..14931b10c5c00 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames5_ES5(target=es2015).js @@ -0,0 +1,22 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames5_ES5.ts] //// + +//// [computedPropertyNames5_ES5.ts] +declare var b: boolean; +var v = { + [b]: 0, + [true]: 1, + [[]]: 0, + [{}]: 0, + [undefined]: undefined, + [null]: null +} + +//// [computedPropertyNames5_ES5.js] +var v = { + [b]: 0, + [true]: 1, + [[]]: 0, + [{}]: 0, + [undefined]: undefined, + [null]: null +}; diff --git a/tests/baselines/reference/computedPropertyNames5_ES5.symbols b/tests/baselines/reference/computedPropertyNames5_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/computedPropertyNames5_ES5.symbols rename to tests/baselines/reference/computedPropertyNames5_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/computedPropertyNames5_ES5.types b/tests/baselines/reference/computedPropertyNames5_ES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/computedPropertyNames5_ES5.types rename to tests/baselines/reference/computedPropertyNames5_ES5(target=es2015).types diff --git a/tests/baselines/reference/computedPropertyNames5_ES5(target=es5).errors.txt b/tests/baselines/reference/computedPropertyNames5_ES5(target=es5).errors.txt new file mode 100644 index 0000000000000..ea3d175e86770 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames5_ES5(target=es5).errors.txt @@ -0,0 +1,30 @@ +computedPropertyNames5_ES5.ts(3,5): error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'. +computedPropertyNames5_ES5.ts(4,5): error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'. +computedPropertyNames5_ES5.ts(5,5): error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'. +computedPropertyNames5_ES5.ts(6,5): error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'. +computedPropertyNames5_ES5.ts(7,5): error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'. +computedPropertyNames5_ES5.ts(8,5): error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'. + + +==== computedPropertyNames5_ES5.ts (6 errors) ==== + declare var b: boolean; + var v = { + [b]: 0, + ~~~ +!!! error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'. + [true]: 1, + ~~~~~~ +!!! error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'. + [[]]: 0, + ~~~~ +!!! error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'. + [{}]: 0, + ~~~~ +!!! error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'. + [undefined]: undefined, + ~~~~~~~~~~~ +!!! error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'. + [null]: null + ~~~~~~ +!!! error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'. + } \ No newline at end of file diff --git a/tests/baselines/reference/computedPropertyNames5_ES5.js b/tests/baselines/reference/computedPropertyNames5_ES5(target=es5).js similarity index 100% rename from tests/baselines/reference/computedPropertyNames5_ES5.js rename to tests/baselines/reference/computedPropertyNames5_ES5(target=es5).js diff --git a/tests/baselines/reference/computedPropertyNames5_ES5(target=es5).symbols b/tests/baselines/reference/computedPropertyNames5_ES5(target=es5).symbols new file mode 100644 index 0000000000000..b8ba63d6a8b26 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames5_ES5(target=es5).symbols @@ -0,0 +1,30 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames5_ES5.ts] //// + +=== computedPropertyNames5_ES5.ts === +declare var b: boolean; +>b : Symbol(b, Decl(computedPropertyNames5_ES5.ts, 0, 11)) + +var v = { +>v : Symbol(v, Decl(computedPropertyNames5_ES5.ts, 1, 3)) + + [b]: 0, +>[b] : Symbol([b], Decl(computedPropertyNames5_ES5.ts, 1, 9)) +>b : Symbol(b, Decl(computedPropertyNames5_ES5.ts, 0, 11)) + + [true]: 1, +>[true] : Symbol([true], Decl(computedPropertyNames5_ES5.ts, 2, 11)) + + [[]]: 0, +>[[]] : Symbol([[]], Decl(computedPropertyNames5_ES5.ts, 3, 14)) + + [{}]: 0, +>[{}] : Symbol([{}], Decl(computedPropertyNames5_ES5.ts, 4, 12)) + + [undefined]: undefined, +>[undefined] : Symbol([undefined], Decl(computedPropertyNames5_ES5.ts, 5, 12)) +>undefined : Symbol(undefined) +>undefined : Symbol(undefined) + + [null]: null +>[null] : Symbol([null], Decl(computedPropertyNames5_ES5.ts, 6, 27)) +} diff --git a/tests/baselines/reference/computedPropertyNames5_ES5(target=es5).types b/tests/baselines/reference/computedPropertyNames5_ES5(target=es5).types new file mode 100644 index 0000000000000..d6f17696be667 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames5_ES5(target=es5).types @@ -0,0 +1,57 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames5_ES5.ts] //// + +=== computedPropertyNames5_ES5.ts === +declare var b: boolean; +>b : boolean +> : ^^^^^^^ + +var v = { +>v : { [x: number]: any; } +> : ^^^^^^^^^^^^^^^^^^^^^ +>{ [b]: 0, [true]: 1, [[]]: 0, [{}]: 0, [undefined]: undefined, [null]: null} : { [x: number]: null; } +> : ^^^^^^^^^^^^^^^^^^^^^^ + + [b]: 0, +>[b] : number +> : ^^^^^^ +>b : boolean +> : ^^^^^^^ +>0 : 0 +> : ^ + + [true]: 1, +>[true] : number +> : ^^^^^^ +>true : true +> : ^^^^ +>1 : 1 +> : ^ + + [[]]: 0, +>[[]] : number +> : ^^^^^^ +>[] : undefined[] +> : ^^^^^^^^^^^ +>0 : 0 +> : ^ + + [{}]: 0, +>[{}] : number +> : ^^^^^^ +>{} : {} +> : ^^ +>0 : 0 +> : ^ + + [undefined]: undefined, +>[undefined] : undefined +> : ^^^^^^^^^ +>undefined : undefined +> : ^^^^^^^^^ +>undefined : undefined +> : ^^^^^^^^^ + + [null]: null +>[null] : null +> : ^^^^ +} diff --git a/tests/baselines/reference/computedPropertyNames6_ES5.errors.txt b/tests/baselines/reference/computedPropertyNames6_ES5(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/computedPropertyNames6_ES5.errors.txt rename to tests/baselines/reference/computedPropertyNames6_ES5(target=es2015).errors.txt diff --git a/tests/baselines/reference/computedPropertyNames6_ES5(target=es2015).js b/tests/baselines/reference/computedPropertyNames6_ES5(target=es2015).js new file mode 100644 index 0000000000000..b51de15ce753f --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames6_ES5(target=es2015).js @@ -0,0 +1,18 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames6_ES5.ts] //// + +//// [computedPropertyNames6_ES5.ts] +declare var p1: number | string; +declare var p2: number | number[]; +declare var p3: string | boolean; +var v = { + [p1]: 0, + [p2]: 1, + [p3]: 2 +} + +//// [computedPropertyNames6_ES5.js] +var v = { + [p1]: 0, + [p2]: 1, + [p3]: 2 +}; diff --git a/tests/baselines/reference/computedPropertyNames6_ES5.symbols b/tests/baselines/reference/computedPropertyNames6_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/computedPropertyNames6_ES5.symbols rename to tests/baselines/reference/computedPropertyNames6_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/computedPropertyNames6_ES5.types b/tests/baselines/reference/computedPropertyNames6_ES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/computedPropertyNames6_ES5.types rename to tests/baselines/reference/computedPropertyNames6_ES5(target=es2015).types diff --git a/tests/baselines/reference/computedPropertyNames6_ES5(target=es5).errors.txt b/tests/baselines/reference/computedPropertyNames6_ES5(target=es5).errors.txt new file mode 100644 index 0000000000000..3cea957bee81d --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames6_ES5(target=es5).errors.txt @@ -0,0 +1,17 @@ +computedPropertyNames6_ES5.ts(6,5): error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'. +computedPropertyNames6_ES5.ts(7,5): error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'. + + +==== computedPropertyNames6_ES5.ts (2 errors) ==== + declare var p1: number | string; + declare var p2: number | number[]; + declare var p3: string | boolean; + var v = { + [p1]: 0, + [p2]: 1, + ~~~~ +!!! error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'. + [p3]: 2 + ~~~~ +!!! error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'. + } \ No newline at end of file diff --git a/tests/baselines/reference/computedPropertyNames6_ES5.js b/tests/baselines/reference/computedPropertyNames6_ES5(target=es5).js similarity index 100% rename from tests/baselines/reference/computedPropertyNames6_ES5.js rename to tests/baselines/reference/computedPropertyNames6_ES5(target=es5).js diff --git a/tests/baselines/reference/computedPropertyNames6_ES5(target=es5).symbols b/tests/baselines/reference/computedPropertyNames6_ES5(target=es5).symbols new file mode 100644 index 0000000000000..0293bec66339b --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames6_ES5(target=es5).symbols @@ -0,0 +1,27 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames6_ES5.ts] //// + +=== computedPropertyNames6_ES5.ts === +declare var p1: number | string; +>p1 : Symbol(p1, Decl(computedPropertyNames6_ES5.ts, 0, 11)) + +declare var p2: number | number[]; +>p2 : Symbol(p2, Decl(computedPropertyNames6_ES5.ts, 1, 11)) + +declare var p3: string | boolean; +>p3 : Symbol(p3, Decl(computedPropertyNames6_ES5.ts, 2, 11)) + +var v = { +>v : Symbol(v, Decl(computedPropertyNames6_ES5.ts, 3, 3)) + + [p1]: 0, +>[p1] : Symbol([p1], Decl(computedPropertyNames6_ES5.ts, 3, 9)) +>p1 : Symbol(p1, Decl(computedPropertyNames6_ES5.ts, 0, 11)) + + [p2]: 1, +>[p2] : Symbol([p2], Decl(computedPropertyNames6_ES5.ts, 4, 12)) +>p2 : Symbol(p2, Decl(computedPropertyNames6_ES5.ts, 1, 11)) + + [p3]: 2 +>[p3] : Symbol([p3], Decl(computedPropertyNames6_ES5.ts, 5, 12)) +>p3 : Symbol(p3, Decl(computedPropertyNames6_ES5.ts, 2, 11)) +} diff --git a/tests/baselines/reference/computedPropertyNames6_ES5(target=es5).types b/tests/baselines/reference/computedPropertyNames6_ES5(target=es5).types new file mode 100644 index 0000000000000..b99f392cb9054 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames6_ES5(target=es5).types @@ -0,0 +1,45 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames6_ES5.ts] //// + +=== computedPropertyNames6_ES5.ts === +declare var p1: number | string; +>p1 : string | number +> : ^^^^^^^^^^^^^^^ + +declare var p2: number | number[]; +>p2 : number | number[] +> : ^^^^^^^^^^^^^^^^^ + +declare var p3: string | boolean; +>p3 : string | boolean +> : ^^^^^^^^^^^^^^^^ + +var v = { +>v : { [p1]: number; [p2]: number; [p3]: number; } +> : ^^ ^^^^^^ ^ ^^^^^^ ^ ^^^^^^ ^^ +>{ [p1]: 0, [p2]: 1, [p3]: 2} : { [p1]: number; [p2]: number; [p3]: number; } +> : ^^ ^^^^^^ ^ ^^^^^^ ^ ^^^^^^ ^^ + + [p1]: 0, +>[p1] : number +> : ^^^^^^ +>p1 : string | number +> : ^^^^^^^^^^^^^^^ +>0 : 0 +> : ^ + + [p2]: 1, +>[p2] : number +> : ^^^^^^ +>p2 : number | number[] +> : ^^^^^^^^^^^^^^^^^ +>1 : 1 +> : ^ + + [p3]: 2 +>[p3] : number +> : ^^^^^^ +>p3 : string | boolean +> : ^^^^^^^^^^^^^^^^ +>2 : 2 +> : ^ +} diff --git a/tests/baselines/reference/computedPropertyNames7_ES5(target=es2015).js b/tests/baselines/reference/computedPropertyNames7_ES5(target=es2015).js new file mode 100644 index 0000000000000..00030eb741613 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames7_ES5(target=es2015).js @@ -0,0 +1,18 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames7_ES5.ts] //// + +//// [computedPropertyNames7_ES5.ts] +enum E { + member +} +var v = { + [E.member]: 0 +} + +//// [computedPropertyNames7_ES5.js] +var E; +(function (E) { + E[E["member"] = 0] = "member"; +})(E || (E = {})); +var v = { + [E.member]: 0 +}; diff --git a/tests/baselines/reference/computedPropertyNames7_ES5.symbols b/tests/baselines/reference/computedPropertyNames7_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/computedPropertyNames7_ES5.symbols rename to tests/baselines/reference/computedPropertyNames7_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/computedPropertyNames7_ES5.types b/tests/baselines/reference/computedPropertyNames7_ES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/computedPropertyNames7_ES5.types rename to tests/baselines/reference/computedPropertyNames7_ES5(target=es2015).types diff --git a/tests/baselines/reference/computedPropertyNames7_ES5.js b/tests/baselines/reference/computedPropertyNames7_ES5(target=es5).js similarity index 100% rename from tests/baselines/reference/computedPropertyNames7_ES5.js rename to tests/baselines/reference/computedPropertyNames7_ES5(target=es5).js diff --git a/tests/baselines/reference/computedPropertyNames7_ES5(target=es5).symbols b/tests/baselines/reference/computedPropertyNames7_ES5(target=es5).symbols new file mode 100644 index 0000000000000..aedf338988088 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames7_ES5(target=es5).symbols @@ -0,0 +1,18 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames7_ES5.ts] //// + +=== computedPropertyNames7_ES5.ts === +enum E { +>E : Symbol(E, Decl(computedPropertyNames7_ES5.ts, 0, 0)) + + member +>member : Symbol(E.member, Decl(computedPropertyNames7_ES5.ts, 0, 8)) +} +var v = { +>v : Symbol(v, Decl(computedPropertyNames7_ES5.ts, 3, 3)) + + [E.member]: 0 +>[E.member] : Symbol([E.member], Decl(computedPropertyNames7_ES5.ts, 3, 9)) +>E.member : Symbol(E.member, Decl(computedPropertyNames7_ES5.ts, 0, 8)) +>E : Symbol(E, Decl(computedPropertyNames7_ES5.ts, 0, 0)) +>member : Symbol(E.member, Decl(computedPropertyNames7_ES5.ts, 0, 8)) +} diff --git a/tests/baselines/reference/computedPropertyNames7_ES5(target=es5).types b/tests/baselines/reference/computedPropertyNames7_ES5(target=es5).types new file mode 100644 index 0000000000000..860866cca87a5 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames7_ES5(target=es5).types @@ -0,0 +1,29 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames7_ES5.ts] //// + +=== computedPropertyNames7_ES5.ts === +enum E { +>E : E +> : ^ + + member +>member : E.member +> : ^^^^^^^^ +} +var v = { +>v : { 0: number; } +> : ^^^^^^^^^^^^^^ +>{ [E.member]: 0} : { 0: number; } +> : ^^^^^^^^^^^^^^ + + [E.member]: 0 +>[E.member] : number +> : ^^^^^^ +>E.member : E +> : ^ +>E : typeof E +> : ^^^^^^^^ +>member : E +> : ^ +>0 : 0 +> : ^ +} diff --git a/tests/baselines/reference/computedPropertyNames8_ES5.errors.txt b/tests/baselines/reference/computedPropertyNames8_ES5(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/computedPropertyNames8_ES5.errors.txt rename to tests/baselines/reference/computedPropertyNames8_ES5(target=es2015).errors.txt diff --git a/tests/baselines/reference/computedPropertyNames8_ES5(target=es2015).js b/tests/baselines/reference/computedPropertyNames8_ES5(target=es2015).js new file mode 100644 index 0000000000000..ba93ad46048f7 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames8_ES5(target=es2015).js @@ -0,0 +1,21 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames8_ES5.ts] //// + +//// [computedPropertyNames8_ES5.ts] +function f() { + var t!: T; + var u!: U; + var v = { + [t]: 0, + [u]: 1 + }; +} + +//// [computedPropertyNames8_ES5.js] +function f() { + var t; + var u; + var v = { + [t]: 0, + [u]: 1 + }; +} diff --git a/tests/baselines/reference/computedPropertyNames8_ES5.symbols b/tests/baselines/reference/computedPropertyNames8_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/computedPropertyNames8_ES5.symbols rename to tests/baselines/reference/computedPropertyNames8_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/computedPropertyNames8_ES5.types b/tests/baselines/reference/computedPropertyNames8_ES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/computedPropertyNames8_ES5.types rename to tests/baselines/reference/computedPropertyNames8_ES5(target=es2015).types diff --git a/tests/baselines/reference/computedPropertyNames8_ES5(target=es5).errors.txt b/tests/baselines/reference/computedPropertyNames8_ES5(target=es5).errors.txt new file mode 100644 index 0000000000000..a0e2cb036051a --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames8_ES5(target=es5).errors.txt @@ -0,0 +1,14 @@ +computedPropertyNames8_ES5.ts(5,9): error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'. + + +==== computedPropertyNames8_ES5.ts (1 errors) ==== + function f() { + var t!: T; + var u!: U; + var v = { + [t]: 0, + ~~~ +!!! error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'. + [u]: 1 + }; + } \ No newline at end of file diff --git a/tests/baselines/reference/computedPropertyNames8_ES5.js b/tests/baselines/reference/computedPropertyNames8_ES5(target=es5).js similarity index 100% rename from tests/baselines/reference/computedPropertyNames8_ES5.js rename to tests/baselines/reference/computedPropertyNames8_ES5(target=es5).js diff --git a/tests/baselines/reference/computedPropertyNames8_ES5(target=es5).symbols b/tests/baselines/reference/computedPropertyNames8_ES5(target=es5).symbols new file mode 100644 index 0000000000000..ebe17ea9a5801 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames8_ES5(target=es5).symbols @@ -0,0 +1,29 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames8_ES5.ts] //// + +=== computedPropertyNames8_ES5.ts === +function f() { +>f : Symbol(f, Decl(computedPropertyNames8_ES5.ts, 0, 0)) +>T : Symbol(T, Decl(computedPropertyNames8_ES5.ts, 0, 11)) +>U : Symbol(U, Decl(computedPropertyNames8_ES5.ts, 0, 13)) + + var t!: T; +>t : Symbol(t, Decl(computedPropertyNames8_ES5.ts, 1, 7)) +>T : Symbol(T, Decl(computedPropertyNames8_ES5.ts, 0, 11)) + + var u!: U; +>u : Symbol(u, Decl(computedPropertyNames8_ES5.ts, 2, 7)) +>U : Symbol(U, Decl(computedPropertyNames8_ES5.ts, 0, 13)) + + var v = { +>v : Symbol(v, Decl(computedPropertyNames8_ES5.ts, 3, 7)) + + [t]: 0, +>[t] : Symbol([t], Decl(computedPropertyNames8_ES5.ts, 3, 13)) +>t : Symbol(t, Decl(computedPropertyNames8_ES5.ts, 1, 7)) + + [u]: 1 +>[u] : Symbol([u], Decl(computedPropertyNames8_ES5.ts, 4, 15)) +>u : Symbol(u, Decl(computedPropertyNames8_ES5.ts, 2, 7)) + + }; +} diff --git a/tests/baselines/reference/computedPropertyNames8_ES5(target=es5).types b/tests/baselines/reference/computedPropertyNames8_ES5(target=es5).types new file mode 100644 index 0000000000000..3ed0395ef2657 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames8_ES5(target=es5).types @@ -0,0 +1,39 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames8_ES5.ts] //// + +=== computedPropertyNames8_ES5.ts === +function f() { +>f : () => void +> : ^ ^^ ^^^^^^^^^ ^^^^^^^^^^^ + + var t!: T; +>t : T +> : ^ + + var u!: U; +>u : U +> : ^ + + var v = { +>v : { [x: string]: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^ +>{ [t]: 0, [u]: 1 } : { [x: string]: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^ + + [t]: 0, +>[t] : number +> : ^^^^^^ +>t : T +> : ^ +>0 : 0 +> : ^ + + [u]: 1 +>[u] : number +> : ^^^^^^ +>u : U +> : ^ +>1 : 1 +> : ^ + + }; +} diff --git a/tests/baselines/reference/computedPropertyNames9_ES5.errors.txt b/tests/baselines/reference/computedPropertyNames9_ES5(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/computedPropertyNames9_ES5.errors.txt rename to tests/baselines/reference/computedPropertyNames9_ES5(target=es2015).errors.txt diff --git a/tests/baselines/reference/computedPropertyNames9_ES5(target=es2015).js b/tests/baselines/reference/computedPropertyNames9_ES5(target=es2015).js new file mode 100644 index 0000000000000..7a5ec5dd1ba49 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames9_ES5(target=es2015).js @@ -0,0 +1,21 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames9_ES5.ts] //// + +//// [computedPropertyNames9_ES5.ts] +function f(s: string): string; +function f(n: number): number; +function f(x: T): T; +function f(x): any { } + +var v = { + [f("")]: 0, + [f(0)]: 0, + [f(true)]: 0 +} + +//// [computedPropertyNames9_ES5.js] +function f(x) { } +var v = { + [f("")]: 0, + [f(0)]: 0, + [f(true)]: 0 +}; diff --git a/tests/baselines/reference/computedPropertyNames9_ES5.symbols b/tests/baselines/reference/computedPropertyNames9_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/computedPropertyNames9_ES5.symbols rename to tests/baselines/reference/computedPropertyNames9_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/computedPropertyNames9_ES5.types b/tests/baselines/reference/computedPropertyNames9_ES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/computedPropertyNames9_ES5.types rename to tests/baselines/reference/computedPropertyNames9_ES5(target=es2015).types diff --git a/tests/baselines/reference/computedPropertyNames9_ES5(target=es5).errors.txt b/tests/baselines/reference/computedPropertyNames9_ES5(target=es5).errors.txt new file mode 100644 index 0000000000000..e820861413655 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames9_ES5(target=es5).errors.txt @@ -0,0 +1,16 @@ +computedPropertyNames9_ES5.ts(9,5): error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'. + + +==== computedPropertyNames9_ES5.ts (1 errors) ==== + function f(s: string): string; + function f(n: number): number; + function f(x: T): T; + function f(x): any { } + + var v = { + [f("")]: 0, + [f(0)]: 0, + [f(true)]: 0 + ~~~~~~~~~ +!!! error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'. + } \ No newline at end of file diff --git a/tests/baselines/reference/computedPropertyNames9_ES5.js b/tests/baselines/reference/computedPropertyNames9_ES5(target=es5).js similarity index 100% rename from tests/baselines/reference/computedPropertyNames9_ES5.js rename to tests/baselines/reference/computedPropertyNames9_ES5(target=es5).js diff --git a/tests/baselines/reference/computedPropertyNames9_ES5(target=es5).symbols b/tests/baselines/reference/computedPropertyNames9_ES5(target=es5).symbols new file mode 100644 index 0000000000000..f80259263ed37 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames9_ES5(target=es5).symbols @@ -0,0 +1,37 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames9_ES5.ts] //// + +=== computedPropertyNames9_ES5.ts === +function f(s: string): string; +>f : Symbol(f, Decl(computedPropertyNames9_ES5.ts, 0, 0), Decl(computedPropertyNames9_ES5.ts, 0, 30), Decl(computedPropertyNames9_ES5.ts, 1, 30), Decl(computedPropertyNames9_ES5.ts, 2, 23)) +>s : Symbol(s, Decl(computedPropertyNames9_ES5.ts, 0, 11)) + +function f(n: number): number; +>f : Symbol(f, Decl(computedPropertyNames9_ES5.ts, 0, 0), Decl(computedPropertyNames9_ES5.ts, 0, 30), Decl(computedPropertyNames9_ES5.ts, 1, 30), Decl(computedPropertyNames9_ES5.ts, 2, 23)) +>n : Symbol(n, Decl(computedPropertyNames9_ES5.ts, 1, 11)) + +function f(x: T): T; +>f : Symbol(f, Decl(computedPropertyNames9_ES5.ts, 0, 0), Decl(computedPropertyNames9_ES5.ts, 0, 30), Decl(computedPropertyNames9_ES5.ts, 1, 30), Decl(computedPropertyNames9_ES5.ts, 2, 23)) +>T : Symbol(T, Decl(computedPropertyNames9_ES5.ts, 2, 11)) +>x : Symbol(x, Decl(computedPropertyNames9_ES5.ts, 2, 14)) +>T : Symbol(T, Decl(computedPropertyNames9_ES5.ts, 2, 11)) +>T : Symbol(T, Decl(computedPropertyNames9_ES5.ts, 2, 11)) + +function f(x): any { } +>f : Symbol(f, Decl(computedPropertyNames9_ES5.ts, 0, 0), Decl(computedPropertyNames9_ES5.ts, 0, 30), Decl(computedPropertyNames9_ES5.ts, 1, 30), Decl(computedPropertyNames9_ES5.ts, 2, 23)) +>x : Symbol(x, Decl(computedPropertyNames9_ES5.ts, 3, 11)) + +var v = { +>v : Symbol(v, Decl(computedPropertyNames9_ES5.ts, 5, 3)) + + [f("")]: 0, +>[f("")] : Symbol([f("")], Decl(computedPropertyNames9_ES5.ts, 5, 9)) +>f : Symbol(f, Decl(computedPropertyNames9_ES5.ts, 0, 0), Decl(computedPropertyNames9_ES5.ts, 0, 30), Decl(computedPropertyNames9_ES5.ts, 1, 30), Decl(computedPropertyNames9_ES5.ts, 2, 23)) + + [f(0)]: 0, +>[f(0)] : Symbol([f(0)], Decl(computedPropertyNames9_ES5.ts, 6, 15)) +>f : Symbol(f, Decl(computedPropertyNames9_ES5.ts, 0, 0), Decl(computedPropertyNames9_ES5.ts, 0, 30), Decl(computedPropertyNames9_ES5.ts, 1, 30), Decl(computedPropertyNames9_ES5.ts, 2, 23)) + + [f(true)]: 0 +>[f(true)] : Symbol([f(true)], Decl(computedPropertyNames9_ES5.ts, 7, 14)) +>f : Symbol(f, Decl(computedPropertyNames9_ES5.ts, 0, 0), Decl(computedPropertyNames9_ES5.ts, 0, 30), Decl(computedPropertyNames9_ES5.ts, 1, 30), Decl(computedPropertyNames9_ES5.ts, 2, 23)) +} diff --git a/tests/baselines/reference/computedPropertyNames9_ES5(target=es5).types b/tests/baselines/reference/computedPropertyNames9_ES5(target=es5).types new file mode 100644 index 0000000000000..a6307cdf10b54 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames9_ES5(target=es5).types @@ -0,0 +1,69 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames9_ES5.ts] //// + +=== computedPropertyNames9_ES5.ts === +function f(s: string): string; +>f : { (s: string): string; (n: number): number; (x: T): T; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ ^^ ^^ ^^^ ^^^ +>s : string +> : ^^^^^^ + +function f(n: number): number; +>f : { (s: string): string; (n: number): number; (x: T): T; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ ^^ ^^ ^^^ ^^^ +>n : number +> : ^^^^^^ + +function f(x: T): T; +>f : { (s: string): string; (n: number): number; (x: T): T; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ ^^ ^^ ^^^ ^^^ +>x : T +> : ^ + +function f(x): any { } +>f : { (s: string): string; (n: number): number; (x: T): T; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ ^^ ^^ ^^^ ^^^ +>x : any +> : ^^^ + +var v = { +>v : { [x: string]: number; [x: number]: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ [f("")]: 0, [f(0)]: 0, [f(true)]: 0} : { [x: string]: number; [x: number]: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + [f("")]: 0, +>[f("")] : number +> : ^^^^^^ +>f("") : string +> : ^^^^^^ +>f : { (s: string): string; (n: number): number; (x: T): T; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ ^^ ^^ ^^^ ^^^ +>"" : "" +> : ^^ +>0 : 0 +> : ^ + + [f(0)]: 0, +>[f(0)] : number +> : ^^^^^^ +>f(0) : number +> : ^^^^^^ +>f : { (s: string): string; (n: number): number; (x: T): T; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ ^^ ^^ ^^^ ^^^ +>0 : 0 +> : ^ +>0 : 0 +> : ^ + + [f(true)]: 0 +>[f(true)] : number +> : ^^^^^^ +>f(true) : true +> : ^^^^ +>f : { (s: string): string; (n: number): number; (x: T): T; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ ^^ ^^ ^^^ ^^^ +>true : true +> : ^^^^ +>0 : 0 +> : ^ +} diff --git a/tests/baselines/reference/computedPropertyNamesContextualType10_ES5.errors.txt b/tests/baselines/reference/computedPropertyNamesContextualType10_ES5(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/computedPropertyNamesContextualType10_ES5.errors.txt rename to tests/baselines/reference/computedPropertyNamesContextualType10_ES5(target=es2015).errors.txt diff --git a/tests/baselines/reference/computedPropertyNamesContextualType10_ES5(target=es2015).js b/tests/baselines/reference/computedPropertyNamesContextualType10_ES5(target=es2015).js new file mode 100644 index 0000000000000..9dc288d00a589 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNamesContextualType10_ES5(target=es2015).js @@ -0,0 +1,17 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType10_ES5.ts] //// + +//// [computedPropertyNamesContextualType10_ES5.ts] +interface I { + [s: number]: boolean; +} + +var o: I = { + [+"foo"]: "", + [+"bar"]: 0 +} + +//// [computedPropertyNamesContextualType10_ES5.js] +var o = { + [+"foo"]: "", + [+"bar"]: 0 +}; diff --git a/tests/baselines/reference/computedPropertyNamesContextualType10_ES5.symbols b/tests/baselines/reference/computedPropertyNamesContextualType10_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/computedPropertyNamesContextualType10_ES5.symbols rename to tests/baselines/reference/computedPropertyNamesContextualType10_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/computedPropertyNamesContextualType10_ES5.types b/tests/baselines/reference/computedPropertyNamesContextualType10_ES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/computedPropertyNamesContextualType10_ES5.types rename to tests/baselines/reference/computedPropertyNamesContextualType10_ES5(target=es2015).types diff --git a/tests/baselines/reference/computedPropertyNamesContextualType10_ES5(target=es5).errors.txt b/tests/baselines/reference/computedPropertyNamesContextualType10_ES5(target=es5).errors.txt new file mode 100644 index 0000000000000..9ba99607f12f9 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNamesContextualType10_ES5(target=es5).errors.txt @@ -0,0 +1,20 @@ +computedPropertyNamesContextualType10_ES5.ts(5,5): error TS2322: Type '{ [x: number]: string | number; }' is not assignable to type 'I'. + 'number' index signatures are incompatible. + Type 'string | number' is not assignable to type 'boolean'. + Type 'string' is not assignable to type 'boolean'. + + +==== computedPropertyNamesContextualType10_ES5.ts (1 errors) ==== + interface I { + [s: number]: boolean; + } + + var o: I = { + ~ +!!! error TS2322: Type '{ [x: number]: string | number; }' is not assignable to type 'I'. +!!! error TS2322: 'number' index signatures are incompatible. +!!! error TS2322: Type 'string | number' is not assignable to type 'boolean'. +!!! error TS2322: Type 'string' is not assignable to type 'boolean'. + [+"foo"]: "", + [+"bar"]: 0 + } \ No newline at end of file diff --git a/tests/baselines/reference/computedPropertyNamesContextualType10_ES5.js b/tests/baselines/reference/computedPropertyNamesContextualType10_ES5(target=es5).js similarity index 100% rename from tests/baselines/reference/computedPropertyNamesContextualType10_ES5.js rename to tests/baselines/reference/computedPropertyNamesContextualType10_ES5(target=es5).js diff --git a/tests/baselines/reference/computedPropertyNamesContextualType10_ES5(target=es5).symbols b/tests/baselines/reference/computedPropertyNamesContextualType10_ES5(target=es5).symbols new file mode 100644 index 0000000000000..7c1ae925dd5d9 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNamesContextualType10_ES5(target=es5).symbols @@ -0,0 +1,20 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType10_ES5.ts] //// + +=== computedPropertyNamesContextualType10_ES5.ts === +interface I { +>I : Symbol(I, Decl(computedPropertyNamesContextualType10_ES5.ts, 0, 0)) + + [s: number]: boolean; +>s : Symbol(s, Decl(computedPropertyNamesContextualType10_ES5.ts, 1, 5)) +} + +var o: I = { +>o : Symbol(o, Decl(computedPropertyNamesContextualType10_ES5.ts, 4, 3)) +>I : Symbol(I, Decl(computedPropertyNamesContextualType10_ES5.ts, 0, 0)) + + [+"foo"]: "", +>[+"foo"] : Symbol([+"foo"], Decl(computedPropertyNamesContextualType10_ES5.ts, 4, 12)) + + [+"bar"]: 0 +>[+"bar"] : Symbol([+"bar"], Decl(computedPropertyNamesContextualType10_ES5.ts, 5, 17)) +} diff --git a/tests/baselines/reference/computedPropertyNamesContextualType10_ES5(target=es5).types b/tests/baselines/reference/computedPropertyNamesContextualType10_ES5(target=es5).types new file mode 100644 index 0000000000000..61a30ed57039c --- /dev/null +++ b/tests/baselines/reference/computedPropertyNamesContextualType10_ES5(target=es5).types @@ -0,0 +1,35 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType10_ES5.ts] //// + +=== computedPropertyNamesContextualType10_ES5.ts === +interface I { + [s: number]: boolean; +>s : number +> : ^^^^^^ +} + +var o: I = { +>o : I +> : ^ +>{ [+"foo"]: "", [+"bar"]: 0} : { [x: number]: string | number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + [+"foo"]: "", +>[+"foo"] : string +> : ^^^^^^ +>+"foo" : number +> : ^^^^^^ +>"foo" : "foo" +> : ^^^^^ +>"" : "" +> : ^^ + + [+"bar"]: 0 +>[+"bar"] : number +> : ^^^^^^ +>+"bar" : number +> : ^^^^^^ +>"bar" : "bar" +> : ^^^^^ +>0 : 0 +> : ^ +} diff --git a/tests/baselines/reference/computedPropertyNamesContextualType1_ES5(target=es2015).js b/tests/baselines/reference/computedPropertyNamesContextualType1_ES5(target=es2015).js new file mode 100644 index 0000000000000..7bee1d8b0c882 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNamesContextualType1_ES5(target=es2015).js @@ -0,0 +1,18 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType1_ES5.ts] //// + +//// [computedPropertyNamesContextualType1_ES5.ts] +interface I { + [s: string]: (x: string) => number; + [s: number]: (x: any) => number; // Doesn't get hit +} + +var o: I = { + ["" + 0](y) { return y.length; }, + ["" + 1]: y => y.length +} + +//// [computedPropertyNamesContextualType1_ES5.js] +var o = { + ["" + 0](y) { return y.length; }, + ["" + 1]: y => y.length +}; diff --git a/tests/baselines/reference/computedPropertyNamesContextualType1_ES5.symbols b/tests/baselines/reference/computedPropertyNamesContextualType1_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/computedPropertyNamesContextualType1_ES5.symbols rename to tests/baselines/reference/computedPropertyNamesContextualType1_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/computedPropertyNamesContextualType1_ES5.types b/tests/baselines/reference/computedPropertyNamesContextualType1_ES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/computedPropertyNamesContextualType1_ES5.types rename to tests/baselines/reference/computedPropertyNamesContextualType1_ES5(target=es2015).types diff --git a/tests/baselines/reference/computedPropertyNamesContextualType1_ES5.js b/tests/baselines/reference/computedPropertyNamesContextualType1_ES5(target=es5).js similarity index 100% rename from tests/baselines/reference/computedPropertyNamesContextualType1_ES5.js rename to tests/baselines/reference/computedPropertyNamesContextualType1_ES5(target=es5).js diff --git a/tests/baselines/reference/computedPropertyNamesContextualType1_ES5(target=es5).symbols b/tests/baselines/reference/computedPropertyNamesContextualType1_ES5(target=es5).symbols new file mode 100644 index 0000000000000..8b4eb6dff650e --- /dev/null +++ b/tests/baselines/reference/computedPropertyNamesContextualType1_ES5(target=es5).symbols @@ -0,0 +1,33 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType1_ES5.ts] //// + +=== computedPropertyNamesContextualType1_ES5.ts === +interface I { +>I : Symbol(I, Decl(computedPropertyNamesContextualType1_ES5.ts, 0, 0)) + + [s: string]: (x: string) => number; +>s : Symbol(s, Decl(computedPropertyNamesContextualType1_ES5.ts, 1, 5)) +>x : Symbol(x, Decl(computedPropertyNamesContextualType1_ES5.ts, 1, 18)) + + [s: number]: (x: any) => number; // Doesn't get hit +>s : Symbol(s, Decl(computedPropertyNamesContextualType1_ES5.ts, 2, 5)) +>x : Symbol(x, Decl(computedPropertyNamesContextualType1_ES5.ts, 2, 18)) +} + +var o: I = { +>o : Symbol(o, Decl(computedPropertyNamesContextualType1_ES5.ts, 5, 3)) +>I : Symbol(I, Decl(computedPropertyNamesContextualType1_ES5.ts, 0, 0)) + + ["" + 0](y) { return y.length; }, +>["" + 0] : Symbol(["" + 0], Decl(computedPropertyNamesContextualType1_ES5.ts, 5, 12)) +>y : Symbol(y, Decl(computedPropertyNamesContextualType1_ES5.ts, 6, 13)) +>y.length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) +>y : Symbol(y, Decl(computedPropertyNamesContextualType1_ES5.ts, 6, 13)) +>length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) + + ["" + 1]: y => y.length +>["" + 1] : Symbol(["" + 1], Decl(computedPropertyNamesContextualType1_ES5.ts, 6, 37)) +>y : Symbol(y, Decl(computedPropertyNamesContextualType1_ES5.ts, 7, 13)) +>y.length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) +>y : Symbol(y, Decl(computedPropertyNamesContextualType1_ES5.ts, 7, 13)) +>length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) +} diff --git a/tests/baselines/reference/computedPropertyNamesContextualType1_ES5(target=es5).types b/tests/baselines/reference/computedPropertyNamesContextualType1_ES5(target=es5).types new file mode 100644 index 0000000000000..8cc985710adb9 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNamesContextualType1_ES5(target=es5).types @@ -0,0 +1,60 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType1_ES5.ts] //// + +=== computedPropertyNamesContextualType1_ES5.ts === +interface I { + [s: string]: (x: string) => number; +>s : string +> : ^^^^^^ +>x : string +> : ^^^^^^ + + [s: number]: (x: any) => number; // Doesn't get hit +>s : number +> : ^^^^^^ +>x : any +} + +var o: I = { +>o : I +> : ^ +>{ ["" + 0](y) { return y.length; }, ["" + 1]: y => y.length} : { [x: string]: (y: string) => number; } +> : ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ + + ["" + 0](y) { return y.length; }, +>["" + 0] : (y: string) => number +> : ^ ^^^^^^^^^^^^^^^^^^^ +>"" + 0 : string +> : ^^^^^^ +>"" : "" +> : ^^ +>0 : 0 +> : ^ +>y : string +> : ^^^^^^ +>y.length : number +> : ^^^^^^ +>y : string +> : ^^^^^^ +>length : number +> : ^^^^^^ + + ["" + 1]: y => y.length +>["" + 1] : (y: string) => number +> : ^ ^^^^^^^^^^^^^^^^^^^ +>"" + 1 : string +> : ^^^^^^ +>"" : "" +> : ^^ +>1 : 1 +> : ^ +>y => y.length : (y: string) => number +> : ^ ^^^^^^^^^^^^^^^^^^^ +>y : string +> : ^^^^^^ +>y.length : number +> : ^^^^^^ +>y : string +> : ^^^^^^ +>length : number +> : ^^^^^^ +} diff --git a/tests/baselines/reference/computedPropertyNamesContextualType2_ES5(target=es2015).js b/tests/baselines/reference/computedPropertyNamesContextualType2_ES5(target=es2015).js new file mode 100644 index 0000000000000..1b3267ddc7bf4 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNamesContextualType2_ES5(target=es2015).js @@ -0,0 +1,18 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType2_ES5.ts] //// + +//// [computedPropertyNamesContextualType2_ES5.ts] +interface I { + [s: string]: (x: any) => number; // Doesn't get hit + [s: number]: (x: string) => number; +} + +var o: I = { + [+"foo"](y) { return y.length; }, + [+"bar"]: y => y.length +} + +//// [computedPropertyNamesContextualType2_ES5.js] +var o = { + [+"foo"](y) { return y.length; }, + [+"bar"]: y => y.length +}; diff --git a/tests/baselines/reference/computedPropertyNamesContextualType2_ES5.symbols b/tests/baselines/reference/computedPropertyNamesContextualType2_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/computedPropertyNamesContextualType2_ES5.symbols rename to tests/baselines/reference/computedPropertyNamesContextualType2_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/computedPropertyNamesContextualType2_ES5.types b/tests/baselines/reference/computedPropertyNamesContextualType2_ES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/computedPropertyNamesContextualType2_ES5.types rename to tests/baselines/reference/computedPropertyNamesContextualType2_ES5(target=es2015).types diff --git a/tests/baselines/reference/computedPropertyNamesContextualType2_ES5.js b/tests/baselines/reference/computedPropertyNamesContextualType2_ES5(target=es5).js similarity index 100% rename from tests/baselines/reference/computedPropertyNamesContextualType2_ES5.js rename to tests/baselines/reference/computedPropertyNamesContextualType2_ES5(target=es5).js diff --git a/tests/baselines/reference/computedPropertyNamesContextualType2_ES5(target=es5).symbols b/tests/baselines/reference/computedPropertyNamesContextualType2_ES5(target=es5).symbols new file mode 100644 index 0000000000000..83a29b53654ef --- /dev/null +++ b/tests/baselines/reference/computedPropertyNamesContextualType2_ES5(target=es5).symbols @@ -0,0 +1,33 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType2_ES5.ts] //// + +=== computedPropertyNamesContextualType2_ES5.ts === +interface I { +>I : Symbol(I, Decl(computedPropertyNamesContextualType2_ES5.ts, 0, 0)) + + [s: string]: (x: any) => number; // Doesn't get hit +>s : Symbol(s, Decl(computedPropertyNamesContextualType2_ES5.ts, 1, 5)) +>x : Symbol(x, Decl(computedPropertyNamesContextualType2_ES5.ts, 1, 18)) + + [s: number]: (x: string) => number; +>s : Symbol(s, Decl(computedPropertyNamesContextualType2_ES5.ts, 2, 5)) +>x : Symbol(x, Decl(computedPropertyNamesContextualType2_ES5.ts, 2, 18)) +} + +var o: I = { +>o : Symbol(o, Decl(computedPropertyNamesContextualType2_ES5.ts, 5, 3)) +>I : Symbol(I, Decl(computedPropertyNamesContextualType2_ES5.ts, 0, 0)) + + [+"foo"](y) { return y.length; }, +>[+"foo"] : Symbol([+"foo"], Decl(computedPropertyNamesContextualType2_ES5.ts, 5, 12)) +>y : Symbol(y, Decl(computedPropertyNamesContextualType2_ES5.ts, 6, 13)) +>y.length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) +>y : Symbol(y, Decl(computedPropertyNamesContextualType2_ES5.ts, 6, 13)) +>length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) + + [+"bar"]: y => y.length +>[+"bar"] : Symbol([+"bar"], Decl(computedPropertyNamesContextualType2_ES5.ts, 6, 37)) +>y : Symbol(y, Decl(computedPropertyNamesContextualType2_ES5.ts, 7, 13)) +>y.length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) +>y : Symbol(y, Decl(computedPropertyNamesContextualType2_ES5.ts, 7, 13)) +>length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) +} diff --git a/tests/baselines/reference/computedPropertyNamesContextualType2_ES5(target=es5).types b/tests/baselines/reference/computedPropertyNamesContextualType2_ES5(target=es5).types new file mode 100644 index 0000000000000..9dcee1facb3ed --- /dev/null +++ b/tests/baselines/reference/computedPropertyNamesContextualType2_ES5(target=es5).types @@ -0,0 +1,56 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType2_ES5.ts] //// + +=== computedPropertyNamesContextualType2_ES5.ts === +interface I { + [s: string]: (x: any) => number; // Doesn't get hit +>s : string +> : ^^^^^^ +>x : any + + [s: number]: (x: string) => number; +>s : number +> : ^^^^^^ +>x : string +> : ^^^^^^ +} + +var o: I = { +>o : I +> : ^ +>{ [+"foo"](y) { return y.length; }, [+"bar"]: y => y.length} : { [x: number]: (y: string) => number; } +> : ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ + + [+"foo"](y) { return y.length; }, +>[+"foo"] : (y: string) => number +> : ^ ^^^^^^^^^^^^^^^^^^^ +>+"foo" : number +> : ^^^^^^ +>"foo" : "foo" +> : ^^^^^ +>y : string +> : ^^^^^^ +>y.length : number +> : ^^^^^^ +>y : string +> : ^^^^^^ +>length : number +> : ^^^^^^ + + [+"bar"]: y => y.length +>[+"bar"] : (y: string) => number +> : ^ ^^^^^^^^^^^^^^^^^^^ +>+"bar" : number +> : ^^^^^^ +>"bar" : "bar" +> : ^^^^^ +>y => y.length : (y: string) => number +> : ^ ^^^^^^^^^^^^^^^^^^^ +>y : string +> : ^^^^^^ +>y.length : number +> : ^^^^^^ +>y : string +> : ^^^^^^ +>length : number +> : ^^^^^^ +} diff --git a/tests/baselines/reference/computedPropertyNamesContextualType3_ES5(target=es2015).js b/tests/baselines/reference/computedPropertyNamesContextualType3_ES5(target=es2015).js new file mode 100644 index 0000000000000..f305c86190a2e --- /dev/null +++ b/tests/baselines/reference/computedPropertyNamesContextualType3_ES5(target=es2015).js @@ -0,0 +1,17 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType3_ES5.ts] //// + +//// [computedPropertyNamesContextualType3_ES5.ts] +interface I { + [s: string]: (x: string) => number; +} + +var o: I = { + [+"foo"](y) { return y.length; }, + [+"bar"]: y => y.length +} + +//// [computedPropertyNamesContextualType3_ES5.js] +var o = { + [+"foo"](y) { return y.length; }, + [+"bar"]: y => y.length +}; diff --git a/tests/baselines/reference/computedPropertyNamesContextualType3_ES5.symbols b/tests/baselines/reference/computedPropertyNamesContextualType3_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/computedPropertyNamesContextualType3_ES5.symbols rename to tests/baselines/reference/computedPropertyNamesContextualType3_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/computedPropertyNamesContextualType3_ES5.types b/tests/baselines/reference/computedPropertyNamesContextualType3_ES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/computedPropertyNamesContextualType3_ES5.types rename to tests/baselines/reference/computedPropertyNamesContextualType3_ES5(target=es2015).types diff --git a/tests/baselines/reference/computedPropertyNamesContextualType3_ES5.js b/tests/baselines/reference/computedPropertyNamesContextualType3_ES5(target=es5).js similarity index 100% rename from tests/baselines/reference/computedPropertyNamesContextualType3_ES5.js rename to tests/baselines/reference/computedPropertyNamesContextualType3_ES5(target=es5).js diff --git a/tests/baselines/reference/computedPropertyNamesContextualType3_ES5(target=es5).symbols b/tests/baselines/reference/computedPropertyNamesContextualType3_ES5(target=es5).symbols new file mode 100644 index 0000000000000..57ebec7ca7928 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNamesContextualType3_ES5(target=es5).symbols @@ -0,0 +1,29 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType3_ES5.ts] //// + +=== computedPropertyNamesContextualType3_ES5.ts === +interface I { +>I : Symbol(I, Decl(computedPropertyNamesContextualType3_ES5.ts, 0, 0)) + + [s: string]: (x: string) => number; +>s : Symbol(s, Decl(computedPropertyNamesContextualType3_ES5.ts, 1, 5)) +>x : Symbol(x, Decl(computedPropertyNamesContextualType3_ES5.ts, 1, 18)) +} + +var o: I = { +>o : Symbol(o, Decl(computedPropertyNamesContextualType3_ES5.ts, 4, 3)) +>I : Symbol(I, Decl(computedPropertyNamesContextualType3_ES5.ts, 0, 0)) + + [+"foo"](y) { return y.length; }, +>[+"foo"] : Symbol([+"foo"], Decl(computedPropertyNamesContextualType3_ES5.ts, 4, 12)) +>y : Symbol(y, Decl(computedPropertyNamesContextualType3_ES5.ts, 5, 13)) +>y.length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) +>y : Symbol(y, Decl(computedPropertyNamesContextualType3_ES5.ts, 5, 13)) +>length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) + + [+"bar"]: y => y.length +>[+"bar"] : Symbol([+"bar"], Decl(computedPropertyNamesContextualType3_ES5.ts, 5, 37)) +>y : Symbol(y, Decl(computedPropertyNamesContextualType3_ES5.ts, 6, 13)) +>y.length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) +>y : Symbol(y, Decl(computedPropertyNamesContextualType3_ES5.ts, 6, 13)) +>length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) +} diff --git a/tests/baselines/reference/computedPropertyNamesContextualType3_ES5(target=es5).types b/tests/baselines/reference/computedPropertyNamesContextualType3_ES5(target=es5).types new file mode 100644 index 0000000000000..f2a37cbd84b83 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNamesContextualType3_ES5(target=es5).types @@ -0,0 +1,51 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType3_ES5.ts] //// + +=== computedPropertyNamesContextualType3_ES5.ts === +interface I { + [s: string]: (x: string) => number; +>s : string +> : ^^^^^^ +>x : string +> : ^^^^^^ +} + +var o: I = { +>o : I +> : ^ +>{ [+"foo"](y) { return y.length; }, [+"bar"]: y => y.length} : { [x: number]: (y: string) => number; } +> : ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ + + [+"foo"](y) { return y.length; }, +>[+"foo"] : (y: string) => number +> : ^ ^^^^^^^^^^^^^^^^^^^ +>+"foo" : number +> : ^^^^^^ +>"foo" : "foo" +> : ^^^^^ +>y : string +> : ^^^^^^ +>y.length : number +> : ^^^^^^ +>y : string +> : ^^^^^^ +>length : number +> : ^^^^^^ + + [+"bar"]: y => y.length +>[+"bar"] : (y: string) => number +> : ^ ^^^^^^^^^^^^^^^^^^^ +>+"bar" : number +> : ^^^^^^ +>"bar" : "bar" +> : ^^^^^ +>y => y.length : (y: string) => number +> : ^ ^^^^^^^^^^^^^^^^^^^ +>y : string +> : ^^^^^^ +>y.length : number +> : ^^^^^^ +>y : string +> : ^^^^^^ +>length : number +> : ^^^^^^ +} diff --git a/tests/baselines/reference/computedPropertyNamesContextualType4_ES5(target=es2015).js b/tests/baselines/reference/computedPropertyNamesContextualType4_ES5(target=es2015).js new file mode 100644 index 0000000000000..c5abc8391bded --- /dev/null +++ b/tests/baselines/reference/computedPropertyNamesContextualType4_ES5(target=es2015).js @@ -0,0 +1,18 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType4_ES5.ts] //// + +//// [computedPropertyNamesContextualType4_ES5.ts] +interface I { + [s: string]: any; + [s: number]: any; +} + +var o: I = { + [""+"foo"]: "", + [""+"bar"]: 0 +} + +//// [computedPropertyNamesContextualType4_ES5.js] +var o = { + ["" + "foo"]: "", + ["" + "bar"]: 0 +}; diff --git a/tests/baselines/reference/computedPropertyNamesContextualType4_ES5.symbols b/tests/baselines/reference/computedPropertyNamesContextualType4_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/computedPropertyNamesContextualType4_ES5.symbols rename to tests/baselines/reference/computedPropertyNamesContextualType4_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/computedPropertyNamesContextualType4_ES5.types b/tests/baselines/reference/computedPropertyNamesContextualType4_ES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/computedPropertyNamesContextualType4_ES5.types rename to tests/baselines/reference/computedPropertyNamesContextualType4_ES5(target=es2015).types diff --git a/tests/baselines/reference/computedPropertyNamesContextualType4_ES5.js b/tests/baselines/reference/computedPropertyNamesContextualType4_ES5(target=es5).js similarity index 100% rename from tests/baselines/reference/computedPropertyNamesContextualType4_ES5.js rename to tests/baselines/reference/computedPropertyNamesContextualType4_ES5(target=es5).js diff --git a/tests/baselines/reference/computedPropertyNamesContextualType4_ES5(target=es5).symbols b/tests/baselines/reference/computedPropertyNamesContextualType4_ES5(target=es5).symbols new file mode 100644 index 0000000000000..2cbee7926c8b7 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNamesContextualType4_ES5(target=es5).symbols @@ -0,0 +1,23 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType4_ES5.ts] //// + +=== computedPropertyNamesContextualType4_ES5.ts === +interface I { +>I : Symbol(I, Decl(computedPropertyNamesContextualType4_ES5.ts, 0, 0)) + + [s: string]: any; +>s : Symbol(s, Decl(computedPropertyNamesContextualType4_ES5.ts, 1, 5)) + + [s: number]: any; +>s : Symbol(s, Decl(computedPropertyNamesContextualType4_ES5.ts, 2, 5)) +} + +var o: I = { +>o : Symbol(o, Decl(computedPropertyNamesContextualType4_ES5.ts, 5, 3)) +>I : Symbol(I, Decl(computedPropertyNamesContextualType4_ES5.ts, 0, 0)) + + [""+"foo"]: "", +>[""+"foo"] : Symbol([""+"foo"], Decl(computedPropertyNamesContextualType4_ES5.ts, 5, 12)) + + [""+"bar"]: 0 +>[""+"bar"] : Symbol([""+"bar"], Decl(computedPropertyNamesContextualType4_ES5.ts, 6, 19)) +} diff --git a/tests/baselines/reference/computedPropertyNamesContextualType4_ES5(target=es5).types b/tests/baselines/reference/computedPropertyNamesContextualType4_ES5(target=es5).types new file mode 100644 index 0000000000000..d07dcfae4c60d --- /dev/null +++ b/tests/baselines/reference/computedPropertyNamesContextualType4_ES5(target=es5).types @@ -0,0 +1,43 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType4_ES5.ts] //// + +=== computedPropertyNamesContextualType4_ES5.ts === +interface I { + [s: string]: any; +>s : string +> : ^^^^^^ + + [s: number]: any; +>s : number +> : ^^^^^^ +} + +var o: I = { +>o : I +> : ^ +>{ [""+"foo"]: "", [""+"bar"]: 0} : { [x: string]: string | number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + [""+"foo"]: "", +>[""+"foo"] : string +> : ^^^^^^ +>""+"foo" : string +> : ^^^^^^ +>"" : "" +> : ^^ +>"foo" : "foo" +> : ^^^^^ +>"" : "" +> : ^^ + + [""+"bar"]: 0 +>[""+"bar"] : number +> : ^^^^^^ +>""+"bar" : string +> : ^^^^^^ +>"" : "" +> : ^^ +>"bar" : "bar" +> : ^^^^^ +>0 : 0 +> : ^ +} diff --git a/tests/baselines/reference/computedPropertyNamesContextualType5_ES5(target=es2015).js b/tests/baselines/reference/computedPropertyNamesContextualType5_ES5(target=es2015).js new file mode 100644 index 0000000000000..5e2eab52a494b --- /dev/null +++ b/tests/baselines/reference/computedPropertyNamesContextualType5_ES5(target=es2015).js @@ -0,0 +1,18 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType5_ES5.ts] //// + +//// [computedPropertyNamesContextualType5_ES5.ts] +interface I { + [s: string]: any; + [s: number]: any; +} + +var o: I = { + [+"foo"]: "", + [+"bar"]: 0 +} + +//// [computedPropertyNamesContextualType5_ES5.js] +var o = { + [+"foo"]: "", + [+"bar"]: 0 +}; diff --git a/tests/baselines/reference/computedPropertyNamesContextualType5_ES5.symbols b/tests/baselines/reference/computedPropertyNamesContextualType5_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/computedPropertyNamesContextualType5_ES5.symbols rename to tests/baselines/reference/computedPropertyNamesContextualType5_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/computedPropertyNamesContextualType5_ES5.types b/tests/baselines/reference/computedPropertyNamesContextualType5_ES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/computedPropertyNamesContextualType5_ES5.types rename to tests/baselines/reference/computedPropertyNamesContextualType5_ES5(target=es2015).types diff --git a/tests/baselines/reference/computedPropertyNamesContextualType5_ES5.js b/tests/baselines/reference/computedPropertyNamesContextualType5_ES5(target=es5).js similarity index 100% rename from tests/baselines/reference/computedPropertyNamesContextualType5_ES5.js rename to tests/baselines/reference/computedPropertyNamesContextualType5_ES5(target=es5).js diff --git a/tests/baselines/reference/computedPropertyNamesContextualType5_ES5(target=es5).symbols b/tests/baselines/reference/computedPropertyNamesContextualType5_ES5(target=es5).symbols new file mode 100644 index 0000000000000..695404a99e0f1 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNamesContextualType5_ES5(target=es5).symbols @@ -0,0 +1,23 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType5_ES5.ts] //// + +=== computedPropertyNamesContextualType5_ES5.ts === +interface I { +>I : Symbol(I, Decl(computedPropertyNamesContextualType5_ES5.ts, 0, 0)) + + [s: string]: any; +>s : Symbol(s, Decl(computedPropertyNamesContextualType5_ES5.ts, 1, 5)) + + [s: number]: any; +>s : Symbol(s, Decl(computedPropertyNamesContextualType5_ES5.ts, 2, 5)) +} + +var o: I = { +>o : Symbol(o, Decl(computedPropertyNamesContextualType5_ES5.ts, 5, 3)) +>I : Symbol(I, Decl(computedPropertyNamesContextualType5_ES5.ts, 0, 0)) + + [+"foo"]: "", +>[+"foo"] : Symbol([+"foo"], Decl(computedPropertyNamesContextualType5_ES5.ts, 5, 12)) + + [+"bar"]: 0 +>[+"bar"] : Symbol([+"bar"], Decl(computedPropertyNamesContextualType5_ES5.ts, 6, 17)) +} diff --git a/tests/baselines/reference/computedPropertyNamesContextualType5_ES5(target=es5).types b/tests/baselines/reference/computedPropertyNamesContextualType5_ES5(target=es5).types new file mode 100644 index 0000000000000..6b7f32d96e14c --- /dev/null +++ b/tests/baselines/reference/computedPropertyNamesContextualType5_ES5(target=es5).types @@ -0,0 +1,39 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType5_ES5.ts] //// + +=== computedPropertyNamesContextualType5_ES5.ts === +interface I { + [s: string]: any; +>s : string +> : ^^^^^^ + + [s: number]: any; +>s : number +> : ^^^^^^ +} + +var o: I = { +>o : I +> : ^ +>{ [+"foo"]: "", [+"bar"]: 0} : { [x: number]: string | number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + [+"foo"]: "", +>[+"foo"] : string +> : ^^^^^^ +>+"foo" : number +> : ^^^^^^ +>"foo" : "foo" +> : ^^^^^ +>"" : "" +> : ^^ + + [+"bar"]: 0 +>[+"bar"] : number +> : ^^^^^^ +>+"bar" : number +> : ^^^^^^ +>"bar" : "bar" +> : ^^^^^ +>0 : 0 +> : ^ +} diff --git a/tests/baselines/reference/computedPropertyNamesContextualType6_ES5(target=es2015).js b/tests/baselines/reference/computedPropertyNamesContextualType6_ES5(target=es2015).js new file mode 100644 index 0000000000000..a1c682b00cda4 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNamesContextualType6_ES5(target=es2015).js @@ -0,0 +1,25 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType6_ES5.ts] //// + +//// [computedPropertyNamesContextualType6_ES5.ts] +interface I { + [s: string]: T; +} + +declare function foo(obj: I): T + +foo({ + p: "", + 0: () => { }, + ["hi" + "bye"]: true, + [0 + 1]: 0, + [+"hi"]: [0] +}); + +//// [computedPropertyNamesContextualType6_ES5.js] +foo({ + p: "", + 0: () => { }, + ["hi" + "bye"]: true, + [0 + 1]: 0, + [+"hi"]: [0] +}); diff --git a/tests/baselines/reference/computedPropertyNamesContextualType6_ES5.symbols b/tests/baselines/reference/computedPropertyNamesContextualType6_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/computedPropertyNamesContextualType6_ES5.symbols rename to tests/baselines/reference/computedPropertyNamesContextualType6_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/computedPropertyNamesContextualType6_ES5.types b/tests/baselines/reference/computedPropertyNamesContextualType6_ES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/computedPropertyNamesContextualType6_ES5.types rename to tests/baselines/reference/computedPropertyNamesContextualType6_ES5(target=es2015).types diff --git a/tests/baselines/reference/computedPropertyNamesContextualType6_ES5.js b/tests/baselines/reference/computedPropertyNamesContextualType6_ES5(target=es5).js similarity index 100% rename from tests/baselines/reference/computedPropertyNamesContextualType6_ES5.js rename to tests/baselines/reference/computedPropertyNamesContextualType6_ES5(target=es5).js diff --git a/tests/baselines/reference/computedPropertyNamesContextualType6_ES5(target=es5).symbols b/tests/baselines/reference/computedPropertyNamesContextualType6_ES5(target=es5).symbols new file mode 100644 index 0000000000000..b00b4dedd1152 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNamesContextualType6_ES5(target=es5).symbols @@ -0,0 +1,39 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType6_ES5.ts] //// + +=== computedPropertyNamesContextualType6_ES5.ts === +interface I { +>I : Symbol(I, Decl(computedPropertyNamesContextualType6_ES5.ts, 0, 0)) +>T : Symbol(T, Decl(computedPropertyNamesContextualType6_ES5.ts, 0, 12)) + + [s: string]: T; +>s : Symbol(s, Decl(computedPropertyNamesContextualType6_ES5.ts, 1, 5)) +>T : Symbol(T, Decl(computedPropertyNamesContextualType6_ES5.ts, 0, 12)) +} + +declare function foo(obj: I): T +>foo : Symbol(foo, Decl(computedPropertyNamesContextualType6_ES5.ts, 2, 1)) +>T : Symbol(T, Decl(computedPropertyNamesContextualType6_ES5.ts, 4, 21)) +>obj : Symbol(obj, Decl(computedPropertyNamesContextualType6_ES5.ts, 4, 24)) +>I : Symbol(I, Decl(computedPropertyNamesContextualType6_ES5.ts, 0, 0)) +>T : Symbol(T, Decl(computedPropertyNamesContextualType6_ES5.ts, 4, 21)) +>T : Symbol(T, Decl(computedPropertyNamesContextualType6_ES5.ts, 4, 21)) + +foo({ +>foo : Symbol(foo, Decl(computedPropertyNamesContextualType6_ES5.ts, 2, 1)) + + p: "", +>p : Symbol(p, Decl(computedPropertyNamesContextualType6_ES5.ts, 6, 5)) + + 0: () => { }, +>0 : Symbol(0, Decl(computedPropertyNamesContextualType6_ES5.ts, 7, 10)) + + ["hi" + "bye"]: true, +>["hi" + "bye"] : Symbol(["hi" + "bye"], Decl(computedPropertyNamesContextualType6_ES5.ts, 8, 17)) + + [0 + 1]: 0, +>[0 + 1] : Symbol([0 + 1], Decl(computedPropertyNamesContextualType6_ES5.ts, 9, 25)) + + [+"hi"]: [0] +>[+"hi"] : Symbol([+"hi"], Decl(computedPropertyNamesContextualType6_ES5.ts, 10, 15)) + +}); diff --git a/tests/baselines/reference/computedPropertyNamesContextualType6_ES5(target=es5).types b/tests/baselines/reference/computedPropertyNamesContextualType6_ES5(target=es5).types new file mode 100644 index 0000000000000..46a48f1958f3d --- /dev/null +++ b/tests/baselines/reference/computedPropertyNamesContextualType6_ES5(target=es5).types @@ -0,0 +1,72 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType6_ES5.ts] //// + +=== computedPropertyNamesContextualType6_ES5.ts === +interface I { + [s: string]: T; +>s : string +> : ^^^^^^ +} + +declare function foo(obj: I): T +>foo : (obj: I) => T +> : ^ ^^ ^^ ^^^^^ +>obj : I +> : ^^^^ + +foo({ +>foo({ p: "", 0: () => { }, ["hi" + "bye"]: true, [0 + 1]: 0, [+"hi"]: [0]}) : string | number | boolean | (() => void) | number[] +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>foo : (obj: I) => T +> : ^ ^^ ^^ ^^^^^ +>{ p: "", 0: () => { }, ["hi" + "bye"]: true, [0 + 1]: 0, [+"hi"]: [0]} : { [x: string]: string | number | true | (() => void) | number[]; [x: number]: number | (() => void) | number[]; p: string; 0: () => void; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + p: "", +>p : string +> : ^^^^^^ +>"" : "" +> : ^^ + + 0: () => { }, +>0 : () => void +> : ^^^^^^^^^^ +>() => { } : () => void +> : ^^^^^^^^^^ + + ["hi" + "bye"]: true, +>["hi" + "bye"] : true +> : ^^^^ +>"hi" + "bye" : string +> : ^^^^^^ +>"hi" : "hi" +> : ^^^^ +>"bye" : "bye" +> : ^^^^^ +>true : true +> : ^^^^ + + [0 + 1]: 0, +>[0 + 1] : number +> : ^^^^^^ +>0 + 1 : number +> : ^^^^^^ +>0 : 0 +> : ^ +>1 : 1 +> : ^ +>0 : 0 +> : ^ + + [+"hi"]: [0] +>[+"hi"] : number[] +> : ^^^^^^^^ +>+"hi" : number +> : ^^^^^^ +>"hi" : "hi" +> : ^^^^ +>[0] : number[] +> : ^^^^^^^^ +>0 : 0 +> : ^ + +}); diff --git a/tests/baselines/reference/computedPropertyNamesContextualType7_ES5(target=es2015).js b/tests/baselines/reference/computedPropertyNamesContextualType7_ES5(target=es2015).js new file mode 100644 index 0000000000000..f52ce37881e60 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNamesContextualType7_ES5(target=es2015).js @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType7_ES5.ts] //// + +//// [computedPropertyNamesContextualType7_ES5.ts] +interface I { + [n: number]: T; +} +interface J { + [s: string]: T; +} + +declare function foo(obj: I): T; +declare function g(obj: J): T; + +foo({ + 0: () => { }, + ["hi" + "bye"]: true, + [0 + 1]: 0, + [+"hi"]: [0] +}); + +g({ p: "" }); + + +//// [computedPropertyNamesContextualType7_ES5.js] +foo({ + 0: () => { }, + ["hi" + "bye"]: true, + [0 + 1]: 0, + [+"hi"]: [0] +}); +g({ p: "" }); diff --git a/tests/baselines/reference/computedPropertyNamesContextualType7_ES5.symbols b/tests/baselines/reference/computedPropertyNamesContextualType7_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/computedPropertyNamesContextualType7_ES5.symbols rename to tests/baselines/reference/computedPropertyNamesContextualType7_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/computedPropertyNamesContextualType7_ES5.types b/tests/baselines/reference/computedPropertyNamesContextualType7_ES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/computedPropertyNamesContextualType7_ES5.types rename to tests/baselines/reference/computedPropertyNamesContextualType7_ES5(target=es2015).types diff --git a/tests/baselines/reference/computedPropertyNamesContextualType7_ES5.js b/tests/baselines/reference/computedPropertyNamesContextualType7_ES5(target=es5).js similarity index 100% rename from tests/baselines/reference/computedPropertyNamesContextualType7_ES5.js rename to tests/baselines/reference/computedPropertyNamesContextualType7_ES5(target=es5).js diff --git a/tests/baselines/reference/computedPropertyNamesContextualType7_ES5(target=es5).symbols b/tests/baselines/reference/computedPropertyNamesContextualType7_ES5(target=es5).symbols new file mode 100644 index 0000000000000..e02fcf505596c --- /dev/null +++ b/tests/baselines/reference/computedPropertyNamesContextualType7_ES5(target=es5).symbols @@ -0,0 +1,57 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType7_ES5.ts] //// + +=== computedPropertyNamesContextualType7_ES5.ts === +interface I { +>I : Symbol(I, Decl(computedPropertyNamesContextualType7_ES5.ts, 0, 0)) +>T : Symbol(T, Decl(computedPropertyNamesContextualType7_ES5.ts, 0, 12)) + + [n: number]: T; +>n : Symbol(n, Decl(computedPropertyNamesContextualType7_ES5.ts, 1, 5)) +>T : Symbol(T, Decl(computedPropertyNamesContextualType7_ES5.ts, 0, 12)) +} +interface J { +>J : Symbol(J, Decl(computedPropertyNamesContextualType7_ES5.ts, 2, 1)) +>T : Symbol(T, Decl(computedPropertyNamesContextualType7_ES5.ts, 3, 12)) + + [s: string]: T; +>s : Symbol(s, Decl(computedPropertyNamesContextualType7_ES5.ts, 4, 5)) +>T : Symbol(T, Decl(computedPropertyNamesContextualType7_ES5.ts, 3, 12)) +} + +declare function foo(obj: I): T; +>foo : Symbol(foo, Decl(computedPropertyNamesContextualType7_ES5.ts, 5, 1)) +>T : Symbol(T, Decl(computedPropertyNamesContextualType7_ES5.ts, 7, 21)) +>obj : Symbol(obj, Decl(computedPropertyNamesContextualType7_ES5.ts, 7, 24)) +>I : Symbol(I, Decl(computedPropertyNamesContextualType7_ES5.ts, 0, 0)) +>T : Symbol(T, Decl(computedPropertyNamesContextualType7_ES5.ts, 7, 21)) +>T : Symbol(T, Decl(computedPropertyNamesContextualType7_ES5.ts, 7, 21)) + +declare function g(obj: J): T; +>g : Symbol(g, Decl(computedPropertyNamesContextualType7_ES5.ts, 7, 38)) +>T : Symbol(T, Decl(computedPropertyNamesContextualType7_ES5.ts, 8, 19)) +>obj : Symbol(obj, Decl(computedPropertyNamesContextualType7_ES5.ts, 8, 22)) +>J : Symbol(J, Decl(computedPropertyNamesContextualType7_ES5.ts, 2, 1)) +>T : Symbol(T, Decl(computedPropertyNamesContextualType7_ES5.ts, 8, 19)) +>T : Symbol(T, Decl(computedPropertyNamesContextualType7_ES5.ts, 8, 19)) + +foo({ +>foo : Symbol(foo, Decl(computedPropertyNamesContextualType7_ES5.ts, 5, 1)) + + 0: () => { }, +>0 : Symbol(0, Decl(computedPropertyNamesContextualType7_ES5.ts, 10, 5)) + + ["hi" + "bye"]: true, +>["hi" + "bye"] : Symbol(["hi" + "bye"], Decl(computedPropertyNamesContextualType7_ES5.ts, 11, 17)) + + [0 + 1]: 0, +>[0 + 1] : Symbol([0 + 1], Decl(computedPropertyNamesContextualType7_ES5.ts, 12, 25)) + + [+"hi"]: [0] +>[+"hi"] : Symbol([+"hi"], Decl(computedPropertyNamesContextualType7_ES5.ts, 13, 15)) + +}); + +g({ p: "" }); +>g : Symbol(g, Decl(computedPropertyNamesContextualType7_ES5.ts, 7, 38)) +>p : Symbol(p, Decl(computedPropertyNamesContextualType7_ES5.ts, 17, 3)) + diff --git a/tests/baselines/reference/computedPropertyNamesContextualType7_ES5(target=es5).types b/tests/baselines/reference/computedPropertyNamesContextualType7_ES5(target=es5).types new file mode 100644 index 0000000000000..a66a079a392cb --- /dev/null +++ b/tests/baselines/reference/computedPropertyNamesContextualType7_ES5(target=es5).types @@ -0,0 +1,90 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType7_ES5.ts] //// + +=== computedPropertyNamesContextualType7_ES5.ts === +interface I { + [n: number]: T; +>n : number +> : ^^^^^^ +} +interface J { + [s: string]: T; +>s : string +> : ^^^^^^ +} + +declare function foo(obj: I): T; +>foo : (obj: I) => T +> : ^ ^^ ^^ ^^^^^ +>obj : I +> : ^^^^ + +declare function g(obj: J): T; +>g : (obj: J) => T +> : ^ ^^ ^^ ^^^^^ +>obj : J +> : ^^^^ + +foo({ +>foo({ 0: () => { }, ["hi" + "bye"]: true, [0 + 1]: 0, [+"hi"]: [0]}) : number | (() => void) | number[] +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>foo : (obj: I) => T +> : ^ ^^ ^^ ^^^^^ +>{ 0: () => { }, ["hi" + "bye"]: true, [0 + 1]: 0, [+"hi"]: [0]} : { [x: string]: number | boolean | (() => void) | number[]; [x: number]: number | (() => void) | number[]; 0: () => void; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + 0: () => { }, +>0 : () => void +> : ^^^^^^^^^^ +>() => { } : () => void +> : ^^^^^^^^^^ + + ["hi" + "bye"]: true, +>["hi" + "bye"] : boolean +> : ^^^^^^^ +>"hi" + "bye" : string +> : ^^^^^^ +>"hi" : "hi" +> : ^^^^ +>"bye" : "bye" +> : ^^^^^ +>true : true +> : ^^^^ + + [0 + 1]: 0, +>[0 + 1] : number +> : ^^^^^^ +>0 + 1 : number +> : ^^^^^^ +>0 : 0 +> : ^ +>1 : 1 +> : ^ +>0 : 0 +> : ^ + + [+"hi"]: [0] +>[+"hi"] : number[] +> : ^^^^^^^^ +>+"hi" : number +> : ^^^^^^ +>"hi" : "hi" +> : ^^^^ +>[0] : number[] +> : ^^^^^^^^ +>0 : 0 +> : ^ + +}); + +g({ p: "" }); +>g({ p: "" }) : string +> : ^^^^^^ +>g : (obj: J) => T +> : ^ ^^ ^^ ^^^^^ +>{ p: "" } : { p: string; } +> : ^^^^^^^^^^^^^^ +>p : string +> : ^^^^^^ +>"" : "" +> : ^^ + diff --git a/tests/baselines/reference/computedPropertyNamesContextualType8_ES5.errors.txt b/tests/baselines/reference/computedPropertyNamesContextualType8_ES5(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/computedPropertyNamesContextualType8_ES5.errors.txt rename to tests/baselines/reference/computedPropertyNamesContextualType8_ES5(target=es2015).errors.txt diff --git a/tests/baselines/reference/computedPropertyNamesContextualType8_ES5(target=es2015).js b/tests/baselines/reference/computedPropertyNamesContextualType8_ES5(target=es2015).js new file mode 100644 index 0000000000000..fa17494272570 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNamesContextualType8_ES5(target=es2015).js @@ -0,0 +1,18 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType8_ES5.ts] //// + +//// [computedPropertyNamesContextualType8_ES5.ts] +interface I { + [s: string]: boolean; + [s: number]: boolean; +} + +var o: I = { + [""+"foo"]: "", + [""+"bar"]: 0 +} + +//// [computedPropertyNamesContextualType8_ES5.js] +var o = { + ["" + "foo"]: "", + ["" + "bar"]: 0 +}; diff --git a/tests/baselines/reference/computedPropertyNamesContextualType8_ES5.symbols b/tests/baselines/reference/computedPropertyNamesContextualType8_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/computedPropertyNamesContextualType8_ES5.symbols rename to tests/baselines/reference/computedPropertyNamesContextualType8_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/computedPropertyNamesContextualType8_ES5.types b/tests/baselines/reference/computedPropertyNamesContextualType8_ES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/computedPropertyNamesContextualType8_ES5.types rename to tests/baselines/reference/computedPropertyNamesContextualType8_ES5(target=es2015).types diff --git a/tests/baselines/reference/computedPropertyNamesContextualType8_ES5(target=es5).errors.txt b/tests/baselines/reference/computedPropertyNamesContextualType8_ES5(target=es5).errors.txt new file mode 100644 index 0000000000000..b6bab33df600f --- /dev/null +++ b/tests/baselines/reference/computedPropertyNamesContextualType8_ES5(target=es5).errors.txt @@ -0,0 +1,21 @@ +computedPropertyNamesContextualType8_ES5.ts(6,5): error TS2322: Type '{ [x: string]: string | number; }' is not assignable to type 'I'. + 'string' index signatures are incompatible. + Type 'string | number' is not assignable to type 'boolean'. + Type 'string' is not assignable to type 'boolean'. + + +==== computedPropertyNamesContextualType8_ES5.ts (1 errors) ==== + interface I { + [s: string]: boolean; + [s: number]: boolean; + } + + var o: I = { + ~ +!!! error TS2322: Type '{ [x: string]: string | number; }' is not assignable to type 'I'. +!!! error TS2322: 'string' index signatures are incompatible. +!!! error TS2322: Type 'string | number' is not assignable to type 'boolean'. +!!! error TS2322: Type 'string' is not assignable to type 'boolean'. + [""+"foo"]: "", + [""+"bar"]: 0 + } \ No newline at end of file diff --git a/tests/baselines/reference/computedPropertyNamesContextualType8_ES5.js b/tests/baselines/reference/computedPropertyNamesContextualType8_ES5(target=es5).js similarity index 100% rename from tests/baselines/reference/computedPropertyNamesContextualType8_ES5.js rename to tests/baselines/reference/computedPropertyNamesContextualType8_ES5(target=es5).js diff --git a/tests/baselines/reference/computedPropertyNamesContextualType8_ES5(target=es5).symbols b/tests/baselines/reference/computedPropertyNamesContextualType8_ES5(target=es5).symbols new file mode 100644 index 0000000000000..39a84537b105c --- /dev/null +++ b/tests/baselines/reference/computedPropertyNamesContextualType8_ES5(target=es5).symbols @@ -0,0 +1,23 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType8_ES5.ts] //// + +=== computedPropertyNamesContextualType8_ES5.ts === +interface I { +>I : Symbol(I, Decl(computedPropertyNamesContextualType8_ES5.ts, 0, 0)) + + [s: string]: boolean; +>s : Symbol(s, Decl(computedPropertyNamesContextualType8_ES5.ts, 1, 5)) + + [s: number]: boolean; +>s : Symbol(s, Decl(computedPropertyNamesContextualType8_ES5.ts, 2, 5)) +} + +var o: I = { +>o : Symbol(o, Decl(computedPropertyNamesContextualType8_ES5.ts, 5, 3)) +>I : Symbol(I, Decl(computedPropertyNamesContextualType8_ES5.ts, 0, 0)) + + [""+"foo"]: "", +>[""+"foo"] : Symbol([""+"foo"], Decl(computedPropertyNamesContextualType8_ES5.ts, 5, 12)) + + [""+"bar"]: 0 +>[""+"bar"] : Symbol([""+"bar"], Decl(computedPropertyNamesContextualType8_ES5.ts, 6, 19)) +} diff --git a/tests/baselines/reference/computedPropertyNamesContextualType8_ES5(target=es5).types b/tests/baselines/reference/computedPropertyNamesContextualType8_ES5(target=es5).types new file mode 100644 index 0000000000000..19b2f8f206895 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNamesContextualType8_ES5(target=es5).types @@ -0,0 +1,43 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType8_ES5.ts] //// + +=== computedPropertyNamesContextualType8_ES5.ts === +interface I { + [s: string]: boolean; +>s : string +> : ^^^^^^ + + [s: number]: boolean; +>s : number +> : ^^^^^^ +} + +var o: I = { +>o : I +> : ^ +>{ [""+"foo"]: "", [""+"bar"]: 0} : { [x: string]: string | number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + [""+"foo"]: "", +>[""+"foo"] : string +> : ^^^^^^ +>""+"foo" : string +> : ^^^^^^ +>"" : "" +> : ^^ +>"foo" : "foo" +> : ^^^^^ +>"" : "" +> : ^^ + + [""+"bar"]: 0 +>[""+"bar"] : number +> : ^^^^^^ +>""+"bar" : string +> : ^^^^^^ +>"" : "" +> : ^^ +>"bar" : "bar" +> : ^^^^^ +>0 : 0 +> : ^ +} diff --git a/tests/baselines/reference/computedPropertyNamesContextualType9_ES5.errors.txt b/tests/baselines/reference/computedPropertyNamesContextualType9_ES5(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/computedPropertyNamesContextualType9_ES5.errors.txt rename to tests/baselines/reference/computedPropertyNamesContextualType9_ES5(target=es2015).errors.txt diff --git a/tests/baselines/reference/computedPropertyNamesContextualType9_ES5(target=es2015).js b/tests/baselines/reference/computedPropertyNamesContextualType9_ES5(target=es2015).js new file mode 100644 index 0000000000000..a8800bb849295 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNamesContextualType9_ES5(target=es2015).js @@ -0,0 +1,18 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType9_ES5.ts] //// + +//// [computedPropertyNamesContextualType9_ES5.ts] +interface I { + [s: string]: boolean; + [s: number]: boolean; +} + +var o: I = { + [+"foo"]: "", + [+"bar"]: 0 +} + +//// [computedPropertyNamesContextualType9_ES5.js] +var o = { + [+"foo"]: "", + [+"bar"]: 0 +}; diff --git a/tests/baselines/reference/computedPropertyNamesContextualType9_ES5.symbols b/tests/baselines/reference/computedPropertyNamesContextualType9_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/computedPropertyNamesContextualType9_ES5.symbols rename to tests/baselines/reference/computedPropertyNamesContextualType9_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/computedPropertyNamesContextualType9_ES5.types b/tests/baselines/reference/computedPropertyNamesContextualType9_ES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/computedPropertyNamesContextualType9_ES5.types rename to tests/baselines/reference/computedPropertyNamesContextualType9_ES5(target=es2015).types diff --git a/tests/baselines/reference/computedPropertyNamesContextualType9_ES5(target=es5).errors.txt b/tests/baselines/reference/computedPropertyNamesContextualType9_ES5(target=es5).errors.txt new file mode 100644 index 0000000000000..bee561e2e2cd8 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNamesContextualType9_ES5(target=es5).errors.txt @@ -0,0 +1,21 @@ +computedPropertyNamesContextualType9_ES5.ts(6,5): error TS2322: Type '{ [x: number]: string | number; }' is not assignable to type 'I'. + 'number' and 'string' index signatures are incompatible. + Type 'string | number' is not assignable to type 'boolean'. + Type 'string' is not assignable to type 'boolean'. + + +==== computedPropertyNamesContextualType9_ES5.ts (1 errors) ==== + interface I { + [s: string]: boolean; + [s: number]: boolean; + } + + var o: I = { + ~ +!!! error TS2322: Type '{ [x: number]: string | number; }' is not assignable to type 'I'. +!!! error TS2322: 'number' and 'string' index signatures are incompatible. +!!! error TS2322: Type 'string | number' is not assignable to type 'boolean'. +!!! error TS2322: Type 'string' is not assignable to type 'boolean'. + [+"foo"]: "", + [+"bar"]: 0 + } \ No newline at end of file diff --git a/tests/baselines/reference/computedPropertyNamesContextualType9_ES5.js b/tests/baselines/reference/computedPropertyNamesContextualType9_ES5(target=es5).js similarity index 100% rename from tests/baselines/reference/computedPropertyNamesContextualType9_ES5.js rename to tests/baselines/reference/computedPropertyNamesContextualType9_ES5(target=es5).js diff --git a/tests/baselines/reference/computedPropertyNamesContextualType9_ES5(target=es5).symbols b/tests/baselines/reference/computedPropertyNamesContextualType9_ES5(target=es5).symbols new file mode 100644 index 0000000000000..fd30ec0f651c4 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNamesContextualType9_ES5(target=es5).symbols @@ -0,0 +1,23 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType9_ES5.ts] //// + +=== computedPropertyNamesContextualType9_ES5.ts === +interface I { +>I : Symbol(I, Decl(computedPropertyNamesContextualType9_ES5.ts, 0, 0)) + + [s: string]: boolean; +>s : Symbol(s, Decl(computedPropertyNamesContextualType9_ES5.ts, 1, 5)) + + [s: number]: boolean; +>s : Symbol(s, Decl(computedPropertyNamesContextualType9_ES5.ts, 2, 5)) +} + +var o: I = { +>o : Symbol(o, Decl(computedPropertyNamesContextualType9_ES5.ts, 5, 3)) +>I : Symbol(I, Decl(computedPropertyNamesContextualType9_ES5.ts, 0, 0)) + + [+"foo"]: "", +>[+"foo"] : Symbol([+"foo"], Decl(computedPropertyNamesContextualType9_ES5.ts, 5, 12)) + + [+"bar"]: 0 +>[+"bar"] : Symbol([+"bar"], Decl(computedPropertyNamesContextualType9_ES5.ts, 6, 17)) +} diff --git a/tests/baselines/reference/computedPropertyNamesContextualType9_ES5(target=es5).types b/tests/baselines/reference/computedPropertyNamesContextualType9_ES5(target=es5).types new file mode 100644 index 0000000000000..cba8d1bea50f1 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNamesContextualType9_ES5(target=es5).types @@ -0,0 +1,39 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType9_ES5.ts] //// + +=== computedPropertyNamesContextualType9_ES5.ts === +interface I { + [s: string]: boolean; +>s : string +> : ^^^^^^ + + [s: number]: boolean; +>s : number +> : ^^^^^^ +} + +var o: I = { +>o : I +> : ^ +>{ [+"foo"]: "", [+"bar"]: 0} : { [x: number]: string | number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + [+"foo"]: "", +>[+"foo"] : string +> : ^^^^^^ +>+"foo" : number +> : ^^^^^^ +>"foo" : "foo" +> : ^^^^^ +>"" : "" +> : ^^ + + [+"bar"]: 0 +>[+"bar"] : number +> : ^^^^^^ +>+"bar" : number +> : ^^^^^^ +>"bar" : "bar" +> : ^^^^^ +>0 : 0 +> : ^ +} diff --git a/tests/baselines/reference/computedPropertyNamesDeclarationEmit1_ES5(target=es2015).js b/tests/baselines/reference/computedPropertyNamesDeclarationEmit1_ES5(target=es2015).js new file mode 100644 index 0000000000000..1e68dfc072995 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNamesDeclarationEmit1_ES5(target=es2015).js @@ -0,0 +1,20 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit1_ES5.ts] //// + +//// [computedPropertyNamesDeclarationEmit1_ES5.ts] +class C { + ["" + ""]() { } + get ["" + ""]() { return 0; } + set ["" + ""](x) { } +} + +//// [computedPropertyNamesDeclarationEmit1_ES5.js] +class C { + ["" + ""]() { } + get ["" + ""]() { return 0; } + set ["" + ""](x) { } +} + + +//// [computedPropertyNamesDeclarationEmit1_ES5.d.ts] +declare class C { +} diff --git a/tests/baselines/reference/computedPropertyNamesDeclarationEmit1_ES5.symbols b/tests/baselines/reference/computedPropertyNamesDeclarationEmit1_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/computedPropertyNamesDeclarationEmit1_ES5.symbols rename to tests/baselines/reference/computedPropertyNamesDeclarationEmit1_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/computedPropertyNamesDeclarationEmit1_ES5.types b/tests/baselines/reference/computedPropertyNamesDeclarationEmit1_ES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/computedPropertyNamesDeclarationEmit1_ES5.types rename to tests/baselines/reference/computedPropertyNamesDeclarationEmit1_ES5(target=es2015).types diff --git a/tests/baselines/reference/computedPropertyNamesDeclarationEmit1_ES5.js b/tests/baselines/reference/computedPropertyNamesDeclarationEmit1_ES5(target=es5).js similarity index 100% rename from tests/baselines/reference/computedPropertyNamesDeclarationEmit1_ES5.js rename to tests/baselines/reference/computedPropertyNamesDeclarationEmit1_ES5(target=es5).js diff --git a/tests/baselines/reference/computedPropertyNamesDeclarationEmit1_ES5(target=es5).symbols b/tests/baselines/reference/computedPropertyNamesDeclarationEmit1_ES5(target=es5).symbols new file mode 100644 index 0000000000000..17adc43d40a97 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNamesDeclarationEmit1_ES5(target=es5).symbols @@ -0,0 +1,16 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit1_ES5.ts] //// + +=== computedPropertyNamesDeclarationEmit1_ES5.ts === +class C { +>C : Symbol(C, Decl(computedPropertyNamesDeclarationEmit1_ES5.ts, 0, 0)) + + ["" + ""]() { } +>["" + ""] : Symbol(C["\" + \""], Decl(computedPropertyNamesDeclarationEmit1_ES5.ts, 0, 9)) + + get ["" + ""]() { return 0; } +>["" + ""] : Symbol(C["\" + \""], Decl(computedPropertyNamesDeclarationEmit1_ES5.ts, 1, 19)) + + set ["" + ""](x) { } +>["" + ""] : Symbol(C["\" + \""], Decl(computedPropertyNamesDeclarationEmit1_ES5.ts, 2, 33)) +>x : Symbol(x, Decl(computedPropertyNamesDeclarationEmit1_ES5.ts, 3, 18)) +} diff --git a/tests/baselines/reference/computedPropertyNamesDeclarationEmit1_ES5(target=es5).types b/tests/baselines/reference/computedPropertyNamesDeclarationEmit1_ES5(target=es5).types new file mode 100644 index 0000000000000..fb1e92e98156e --- /dev/null +++ b/tests/baselines/reference/computedPropertyNamesDeclarationEmit1_ES5(target=es5).types @@ -0,0 +1,39 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit1_ES5.ts] //// + +=== computedPropertyNamesDeclarationEmit1_ES5.ts === +class C { +>C : C +> : ^ + + ["" + ""]() { } +>["" + ""] : () => void +> : ^^^^^^^^^^ +>"" + "" : string +> : ^^^^^^ +>"" : "" +> : ^^ +>"" : "" +> : ^^ + + get ["" + ""]() { return 0; } +>["" + ""] : number +> : ^^^^^^ +>"" + "" : string +> : ^^^^^^ +>"" : "" +> : ^^ +>"" : "" +> : ^^ +>0 : 0 +> : ^ + + set ["" + ""](x) { } +>["" + ""] : any +>"" + "" : string +> : ^^^^^^ +>"" : "" +> : ^^ +>"" : "" +> : ^^ +>x : any +} diff --git a/tests/baselines/reference/computedPropertyNamesDeclarationEmit2_ES5(target=es2015).js b/tests/baselines/reference/computedPropertyNamesDeclarationEmit2_ES5(target=es2015).js new file mode 100644 index 0000000000000..e4b4554dbc4cc --- /dev/null +++ b/tests/baselines/reference/computedPropertyNamesDeclarationEmit2_ES5(target=es2015).js @@ -0,0 +1,20 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit2_ES5.ts] //// + +//// [computedPropertyNamesDeclarationEmit2_ES5.ts] +class C { + static ["" + ""]() { } + static get ["" + ""]() { return 0; } + static set ["" + ""](x) { } +} + +//// [computedPropertyNamesDeclarationEmit2_ES5.js] +class C { + static ["" + ""]() { } + static get ["" + ""]() { return 0; } + static set ["" + ""](x) { } +} + + +//// [computedPropertyNamesDeclarationEmit2_ES5.d.ts] +declare class C { +} diff --git a/tests/baselines/reference/computedPropertyNamesDeclarationEmit2_ES5.symbols b/tests/baselines/reference/computedPropertyNamesDeclarationEmit2_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/computedPropertyNamesDeclarationEmit2_ES5.symbols rename to tests/baselines/reference/computedPropertyNamesDeclarationEmit2_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/computedPropertyNamesDeclarationEmit2_ES5.types b/tests/baselines/reference/computedPropertyNamesDeclarationEmit2_ES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/computedPropertyNamesDeclarationEmit2_ES5.types rename to tests/baselines/reference/computedPropertyNamesDeclarationEmit2_ES5(target=es2015).types diff --git a/tests/baselines/reference/computedPropertyNamesDeclarationEmit2_ES5.js b/tests/baselines/reference/computedPropertyNamesDeclarationEmit2_ES5(target=es5).js similarity index 100% rename from tests/baselines/reference/computedPropertyNamesDeclarationEmit2_ES5.js rename to tests/baselines/reference/computedPropertyNamesDeclarationEmit2_ES5(target=es5).js diff --git a/tests/baselines/reference/computedPropertyNamesDeclarationEmit2_ES5(target=es5).symbols b/tests/baselines/reference/computedPropertyNamesDeclarationEmit2_ES5(target=es5).symbols new file mode 100644 index 0000000000000..c256e2f6fb2ec --- /dev/null +++ b/tests/baselines/reference/computedPropertyNamesDeclarationEmit2_ES5(target=es5).symbols @@ -0,0 +1,16 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit2_ES5.ts] //// + +=== computedPropertyNamesDeclarationEmit2_ES5.ts === +class C { +>C : Symbol(C, Decl(computedPropertyNamesDeclarationEmit2_ES5.ts, 0, 0)) + + static ["" + ""]() { } +>["" + ""] : Symbol(C["\" + \""], Decl(computedPropertyNamesDeclarationEmit2_ES5.ts, 0, 9)) + + static get ["" + ""]() { return 0; } +>["" + ""] : Symbol(C["\" + \""], Decl(computedPropertyNamesDeclarationEmit2_ES5.ts, 1, 26)) + + static set ["" + ""](x) { } +>["" + ""] : Symbol(C["\" + \""], Decl(computedPropertyNamesDeclarationEmit2_ES5.ts, 2, 40)) +>x : Symbol(x, Decl(computedPropertyNamesDeclarationEmit2_ES5.ts, 3, 25)) +} diff --git a/tests/baselines/reference/computedPropertyNamesDeclarationEmit2_ES5(target=es5).types b/tests/baselines/reference/computedPropertyNamesDeclarationEmit2_ES5(target=es5).types new file mode 100644 index 0000000000000..21ef7eeb6f552 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNamesDeclarationEmit2_ES5(target=es5).types @@ -0,0 +1,39 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit2_ES5.ts] //// + +=== computedPropertyNamesDeclarationEmit2_ES5.ts === +class C { +>C : C +> : ^ + + static ["" + ""]() { } +>["" + ""] : () => void +> : ^^^^^^^^^^ +>"" + "" : string +> : ^^^^^^ +>"" : "" +> : ^^ +>"" : "" +> : ^^ + + static get ["" + ""]() { return 0; } +>["" + ""] : number +> : ^^^^^^ +>"" + "" : string +> : ^^^^^^ +>"" : "" +> : ^^ +>"" : "" +> : ^^ +>0 : 0 +> : ^ + + static set ["" + ""](x) { } +>["" + ""] : any +>"" + "" : string +> : ^^^^^^ +>"" : "" +> : ^^ +>"" : "" +> : ^^ +>x : any +} diff --git a/tests/baselines/reference/computedPropertyNamesDeclarationEmit3_ES5.errors.txt b/tests/baselines/reference/computedPropertyNamesDeclarationEmit3_ES5(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/computedPropertyNamesDeclarationEmit3_ES5.errors.txt rename to tests/baselines/reference/computedPropertyNamesDeclarationEmit3_ES5(target=es2015).errors.txt diff --git a/tests/baselines/reference/computedPropertyNamesDeclarationEmit3_ES5.js b/tests/baselines/reference/computedPropertyNamesDeclarationEmit3_ES5(target=es2015).js similarity index 100% rename from tests/baselines/reference/computedPropertyNamesDeclarationEmit3_ES5.js rename to tests/baselines/reference/computedPropertyNamesDeclarationEmit3_ES5(target=es2015).js diff --git a/tests/baselines/reference/computedPropertyNamesDeclarationEmit3_ES5.symbols b/tests/baselines/reference/computedPropertyNamesDeclarationEmit3_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/computedPropertyNamesDeclarationEmit3_ES5.symbols rename to tests/baselines/reference/computedPropertyNamesDeclarationEmit3_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/computedPropertyNamesDeclarationEmit3_ES5.types b/tests/baselines/reference/computedPropertyNamesDeclarationEmit3_ES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/computedPropertyNamesDeclarationEmit3_ES5.types rename to tests/baselines/reference/computedPropertyNamesDeclarationEmit3_ES5(target=es2015).types diff --git a/tests/baselines/reference/computedPropertyNamesDeclarationEmit3_ES5(target=es5).errors.txt b/tests/baselines/reference/computedPropertyNamesDeclarationEmit3_ES5(target=es5).errors.txt new file mode 100644 index 0000000000000..6d1a0d5205556 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNamesDeclarationEmit3_ES5(target=es5).errors.txt @@ -0,0 +1,9 @@ +computedPropertyNamesDeclarationEmit3_ES5.ts(2,5): error TS1169: A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type. + + +==== computedPropertyNamesDeclarationEmit3_ES5.ts (1 errors) ==== + interface I { + ["" + ""](): void; + ~~~~~~~~~ +!!! error TS1169: A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type. + } \ No newline at end of file diff --git a/tests/baselines/reference/computedPropertyNamesDeclarationEmit3_ES5(target=es5).js b/tests/baselines/reference/computedPropertyNamesDeclarationEmit3_ES5(target=es5).js new file mode 100644 index 0000000000000..856dd36b5d9da --- /dev/null +++ b/tests/baselines/reference/computedPropertyNamesDeclarationEmit3_ES5(target=es5).js @@ -0,0 +1,13 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit3_ES5.ts] //// + +//// [computedPropertyNamesDeclarationEmit3_ES5.ts] +interface I { + ["" + ""](): void; +} + +//// [computedPropertyNamesDeclarationEmit3_ES5.js] + + +//// [computedPropertyNamesDeclarationEmit3_ES5.d.ts] +interface I { +} diff --git a/tests/baselines/reference/computedPropertyNamesDeclarationEmit3_ES5(target=es5).symbols b/tests/baselines/reference/computedPropertyNamesDeclarationEmit3_ES5(target=es5).symbols new file mode 100644 index 0000000000000..14a9918fe87e8 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNamesDeclarationEmit3_ES5(target=es5).symbols @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit3_ES5.ts] //// + +=== computedPropertyNamesDeclarationEmit3_ES5.ts === +interface I { +>I : Symbol(I, Decl(computedPropertyNamesDeclarationEmit3_ES5.ts, 0, 0)) + + ["" + ""](): void; +>["" + ""] : Symbol(I["\" + \""], Decl(computedPropertyNamesDeclarationEmit3_ES5.ts, 0, 13)) +} diff --git a/tests/baselines/reference/computedPropertyNamesDeclarationEmit3_ES5(target=es5).types b/tests/baselines/reference/computedPropertyNamesDeclarationEmit3_ES5(target=es5).types new file mode 100644 index 0000000000000..50f7e2d6fbabc --- /dev/null +++ b/tests/baselines/reference/computedPropertyNamesDeclarationEmit3_ES5(target=es5).types @@ -0,0 +1,14 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit3_ES5.ts] //// + +=== computedPropertyNamesDeclarationEmit3_ES5.ts === +interface I { + ["" + ""](): void; +>["" + ""] : () => void +> : ^^^^^^ +>"" + "" : string +> : ^^^^^^ +>"" : "" +> : ^^ +>"" : "" +> : ^^ +} diff --git a/tests/baselines/reference/computedPropertyNamesDeclarationEmit4_ES5.errors.txt b/tests/baselines/reference/computedPropertyNamesDeclarationEmit4_ES5(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/computedPropertyNamesDeclarationEmit4_ES5.errors.txt rename to tests/baselines/reference/computedPropertyNamesDeclarationEmit4_ES5(target=es2015).errors.txt diff --git a/tests/baselines/reference/computedPropertyNamesDeclarationEmit4_ES5.js b/tests/baselines/reference/computedPropertyNamesDeclarationEmit4_ES5(target=es2015).js similarity index 100% rename from tests/baselines/reference/computedPropertyNamesDeclarationEmit4_ES5.js rename to tests/baselines/reference/computedPropertyNamesDeclarationEmit4_ES5(target=es2015).js diff --git a/tests/baselines/reference/computedPropertyNamesDeclarationEmit4_ES5.symbols b/tests/baselines/reference/computedPropertyNamesDeclarationEmit4_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/computedPropertyNamesDeclarationEmit4_ES5.symbols rename to tests/baselines/reference/computedPropertyNamesDeclarationEmit4_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/computedPropertyNamesDeclarationEmit4_ES5.types b/tests/baselines/reference/computedPropertyNamesDeclarationEmit4_ES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/computedPropertyNamesDeclarationEmit4_ES5.types rename to tests/baselines/reference/computedPropertyNamesDeclarationEmit4_ES5(target=es2015).types diff --git a/tests/baselines/reference/computedPropertyNamesDeclarationEmit4_ES5(target=es5).errors.txt b/tests/baselines/reference/computedPropertyNamesDeclarationEmit4_ES5(target=es5).errors.txt new file mode 100644 index 0000000000000..340c951c4ba22 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNamesDeclarationEmit4_ES5(target=es5).errors.txt @@ -0,0 +1,9 @@ +computedPropertyNamesDeclarationEmit4_ES5.ts(2,5): error TS1170: A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type. + + +==== computedPropertyNamesDeclarationEmit4_ES5.ts (1 errors) ==== + var v: { + ["" + ""](): void; + ~~~~~~~~~ +!!! error TS1170: A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type. + } \ No newline at end of file diff --git a/tests/baselines/reference/computedPropertyNamesDeclarationEmit4_ES5(target=es5).js b/tests/baselines/reference/computedPropertyNamesDeclarationEmit4_ES5(target=es5).js new file mode 100644 index 0000000000000..d55197324498e --- /dev/null +++ b/tests/baselines/reference/computedPropertyNamesDeclarationEmit4_ES5(target=es5).js @@ -0,0 +1,13 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit4_ES5.ts] //// + +//// [computedPropertyNamesDeclarationEmit4_ES5.ts] +var v: { + ["" + ""](): void; +} + +//// [computedPropertyNamesDeclarationEmit4_ES5.js] +var v; + + +//// [computedPropertyNamesDeclarationEmit4_ES5.d.ts] +declare var v: {}; diff --git a/tests/baselines/reference/computedPropertyNamesDeclarationEmit4_ES5(target=es5).symbols b/tests/baselines/reference/computedPropertyNamesDeclarationEmit4_ES5(target=es5).symbols new file mode 100644 index 0000000000000..c800a2d22e80e --- /dev/null +++ b/tests/baselines/reference/computedPropertyNamesDeclarationEmit4_ES5(target=es5).symbols @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit4_ES5.ts] //// + +=== computedPropertyNamesDeclarationEmit4_ES5.ts === +var v: { +>v : Symbol(v, Decl(computedPropertyNamesDeclarationEmit4_ES5.ts, 0, 3)) + + ["" + ""](): void; +>["" + ""] : Symbol(["" + ""], Decl(computedPropertyNamesDeclarationEmit4_ES5.ts, 0, 8)) +} diff --git a/tests/baselines/reference/computedPropertyNamesDeclarationEmit4_ES5(target=es5).types b/tests/baselines/reference/computedPropertyNamesDeclarationEmit4_ES5(target=es5).types new file mode 100644 index 0000000000000..580a3f9e07a1b --- /dev/null +++ b/tests/baselines/reference/computedPropertyNamesDeclarationEmit4_ES5(target=es5).types @@ -0,0 +1,17 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit4_ES5.ts] //// + +=== computedPropertyNamesDeclarationEmit4_ES5.ts === +var v: { +>v : {} +> : ^^ + + ["" + ""](): void; +>["" + ""] : () => void +> : ^^^^^^ +>"" + "" : string +> : ^^^^^^ +>"" : "" +> : ^^ +>"" : "" +> : ^^ +} diff --git a/tests/baselines/reference/computedPropertyNamesDeclarationEmit5_ES5(target=es2015).js b/tests/baselines/reference/computedPropertyNamesDeclarationEmit5_ES5(target=es2015).js new file mode 100644 index 0000000000000..5eaf8ede3475e --- /dev/null +++ b/tests/baselines/reference/computedPropertyNamesDeclarationEmit5_ES5(target=es2015).js @@ -0,0 +1,23 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit5_ES5.ts] //// + +//// [computedPropertyNamesDeclarationEmit5_ES5.ts] +var v = { + ["" + ""]: 0, + ["" + ""]() { }, + get ["" + ""]() { return 0; }, + set ["" + ""](x) { } +} + +//// [computedPropertyNamesDeclarationEmit5_ES5.js] +var v = { + ["" + ""]: 0, + ["" + ""]() { }, + get ["" + ""]() { return 0; }, + set ["" + ""](x) { } +}; + + +//// [computedPropertyNamesDeclarationEmit5_ES5.d.ts] +declare var v: { + [x: string]: any; +}; diff --git a/tests/baselines/reference/computedPropertyNamesDeclarationEmit5_ES5.symbols b/tests/baselines/reference/computedPropertyNamesDeclarationEmit5_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/computedPropertyNamesDeclarationEmit5_ES5.symbols rename to tests/baselines/reference/computedPropertyNamesDeclarationEmit5_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/computedPropertyNamesDeclarationEmit5_ES5.types b/tests/baselines/reference/computedPropertyNamesDeclarationEmit5_ES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/computedPropertyNamesDeclarationEmit5_ES5.types rename to tests/baselines/reference/computedPropertyNamesDeclarationEmit5_ES5(target=es2015).types diff --git a/tests/baselines/reference/computedPropertyNamesDeclarationEmit5_ES5.js b/tests/baselines/reference/computedPropertyNamesDeclarationEmit5_ES5(target=es5).js similarity index 100% rename from tests/baselines/reference/computedPropertyNamesDeclarationEmit5_ES5.js rename to tests/baselines/reference/computedPropertyNamesDeclarationEmit5_ES5(target=es5).js diff --git a/tests/baselines/reference/computedPropertyNamesDeclarationEmit5_ES5(target=es5).symbols b/tests/baselines/reference/computedPropertyNamesDeclarationEmit5_ES5(target=es5).symbols new file mode 100644 index 0000000000000..0f836a8c95821 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNamesDeclarationEmit5_ES5(target=es5).symbols @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit5_ES5.ts] //// + +=== computedPropertyNamesDeclarationEmit5_ES5.ts === +var v = { +>v : Symbol(v, Decl(computedPropertyNamesDeclarationEmit5_ES5.ts, 0, 3)) + + ["" + ""]: 0, +>["" + ""] : Symbol(["" + ""], Decl(computedPropertyNamesDeclarationEmit5_ES5.ts, 0, 9)) + + ["" + ""]() { }, +>["" + ""] : Symbol(["" + ""], Decl(computedPropertyNamesDeclarationEmit5_ES5.ts, 1, 17)) + + get ["" + ""]() { return 0; }, +>["" + ""] : Symbol(["" + ""], Decl(computedPropertyNamesDeclarationEmit5_ES5.ts, 2, 20)) + + set ["" + ""](x) { } +>["" + ""] : Symbol(["" + ""], Decl(computedPropertyNamesDeclarationEmit5_ES5.ts, 3, 34)) +>x : Symbol(x, Decl(computedPropertyNamesDeclarationEmit5_ES5.ts, 4, 18)) +} diff --git a/tests/baselines/reference/computedPropertyNamesDeclarationEmit5_ES5(target=es5).types b/tests/baselines/reference/computedPropertyNamesDeclarationEmit5_ES5(target=es5).types new file mode 100644 index 0000000000000..90710630222ef --- /dev/null +++ b/tests/baselines/reference/computedPropertyNamesDeclarationEmit5_ES5(target=es5).types @@ -0,0 +1,53 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit5_ES5.ts] //// + +=== computedPropertyNamesDeclarationEmit5_ES5.ts === +var v = { +>v : { [x: string]: any; } +> : ^^^^^^^^^^^^^^^^^^^^^ +>{ ["" + ""]: 0, ["" + ""]() { }, get ["" + ""]() { return 0; }, set ["" + ""](x) { }} : { [x: string]: any; } +> : ^^^^^^^^^^^^^^^^^^^^^ + + ["" + ""]: 0, +>["" + ""] : number +> : ^^^^^^ +>"" + "" : string +> : ^^^^^^ +>"" : "" +> : ^^ +>"" : "" +> : ^^ +>0 : 0 +> : ^ + + ["" + ""]() { }, +>["" + ""] : () => void +> : ^^^^^^^^^^ +>"" + "" : string +> : ^^^^^^ +>"" : "" +> : ^^ +>"" : "" +> : ^^ + + get ["" + ""]() { return 0; }, +>["" + ""] : number +> : ^^^^^^ +>"" + "" : string +> : ^^^^^^ +>"" : "" +> : ^^ +>"" : "" +> : ^^ +>0 : 0 +> : ^ + + set ["" + ""](x) { } +>["" + ""] : any +>"" + "" : string +> : ^^^^^^ +>"" : "" +> : ^^ +>"" : "" +> : ^^ +>x : any +} diff --git a/tests/baselines/reference/computedPropertyNamesDeclarationEmit6_ES5.errors.txt b/tests/baselines/reference/computedPropertyNamesDeclarationEmit6_ES5(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/computedPropertyNamesDeclarationEmit6_ES5.errors.txt rename to tests/baselines/reference/computedPropertyNamesDeclarationEmit6_ES5(target=es2015).errors.txt diff --git a/tests/baselines/reference/computedPropertyNamesDeclarationEmit6_ES5(target=es2015).js b/tests/baselines/reference/computedPropertyNamesDeclarationEmit6_ES5(target=es2015).js new file mode 100644 index 0000000000000..cba340d3951e5 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNamesDeclarationEmit6_ES5(target=es2015).js @@ -0,0 +1,26 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit6_ES5.ts] //// + +//// [computedPropertyNamesDeclarationEmit6_ES5.ts] +var v = { + [-1]: {}, + [+1]: {}, + [~1]: {}, + [!1]: {} +} + + +//// [computedPropertyNamesDeclarationEmit6_ES5.js] +var v = { + [-1]: {}, + [+1]: {}, + [~1]: {}, + [!1]: {} +}; + + +//// [computedPropertyNamesDeclarationEmit6_ES5.d.ts] +declare var v: { + [x: number]: {}; + [-1]: {}; + 1: {}; +}; diff --git a/tests/baselines/reference/computedPropertyNamesDeclarationEmit6_ES5.symbols b/tests/baselines/reference/computedPropertyNamesDeclarationEmit6_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/computedPropertyNamesDeclarationEmit6_ES5.symbols rename to tests/baselines/reference/computedPropertyNamesDeclarationEmit6_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/computedPropertyNamesDeclarationEmit6_ES5.types b/tests/baselines/reference/computedPropertyNamesDeclarationEmit6_ES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/computedPropertyNamesDeclarationEmit6_ES5.types rename to tests/baselines/reference/computedPropertyNamesDeclarationEmit6_ES5(target=es2015).types diff --git a/tests/baselines/reference/computedPropertyNamesDeclarationEmit6_ES5(target=es5).errors.txt b/tests/baselines/reference/computedPropertyNamesDeclarationEmit6_ES5(target=es5).errors.txt new file mode 100644 index 0000000000000..1abf280f1b818 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNamesDeclarationEmit6_ES5(target=es5).errors.txt @@ -0,0 +1,13 @@ +computedPropertyNamesDeclarationEmit6_ES5.ts(5,3): error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'. + + +==== computedPropertyNamesDeclarationEmit6_ES5.ts (1 errors) ==== + var v = { + [-1]: {}, + [+1]: {}, + [~1]: {}, + [!1]: {} + ~~~~ +!!! error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'. + } + \ No newline at end of file diff --git a/tests/baselines/reference/computedPropertyNamesDeclarationEmit6_ES5.js b/tests/baselines/reference/computedPropertyNamesDeclarationEmit6_ES5(target=es5).js similarity index 100% rename from tests/baselines/reference/computedPropertyNamesDeclarationEmit6_ES5.js rename to tests/baselines/reference/computedPropertyNamesDeclarationEmit6_ES5(target=es5).js diff --git a/tests/baselines/reference/computedPropertyNamesDeclarationEmit6_ES5(target=es5).symbols b/tests/baselines/reference/computedPropertyNamesDeclarationEmit6_ES5(target=es5).symbols new file mode 100644 index 0000000000000..2d6adf696ebfa --- /dev/null +++ b/tests/baselines/reference/computedPropertyNamesDeclarationEmit6_ES5(target=es5).symbols @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit6_ES5.ts] //// + +=== computedPropertyNamesDeclarationEmit6_ES5.ts === +var v = { +>v : Symbol(v, Decl(computedPropertyNamesDeclarationEmit6_ES5.ts, 0, 3)) + + [-1]: {}, +>[-1] : Symbol([-1], Decl(computedPropertyNamesDeclarationEmit6_ES5.ts, 0, 9)) + + [+1]: {}, +>[+1] : Symbol([+1], Decl(computedPropertyNamesDeclarationEmit6_ES5.ts, 1, 11)) + + [~1]: {}, +>[~1] : Symbol([~1], Decl(computedPropertyNamesDeclarationEmit6_ES5.ts, 2, 11)) + + [!1]: {} +>[!1] : Symbol([!1], Decl(computedPropertyNamesDeclarationEmit6_ES5.ts, 3, 11)) +} + diff --git a/tests/baselines/reference/computedPropertyNamesDeclarationEmit6_ES5(target=es5).types b/tests/baselines/reference/computedPropertyNamesDeclarationEmit6_ES5(target=es5).types new file mode 100644 index 0000000000000..158248b3dee4a --- /dev/null +++ b/tests/baselines/reference/computedPropertyNamesDeclarationEmit6_ES5(target=es5).types @@ -0,0 +1,50 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit6_ES5.ts] //// + +=== computedPropertyNamesDeclarationEmit6_ES5.ts === +var v = { +>v : { [x: number]: {}; [-1]: {}; 1: {}; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ [-1]: {}, [+1]: {}, [~1]: {}, [!1]: {}} : { [x: number]: {}; [-1]: {}; 1: {}; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + [-1]: {}, +>[-1] : {} +> : ^^ +>-1 : -1 +> : ^^ +>1 : 1 +> : ^ +>{} : {} +> : ^^ + + [+1]: {}, +>[+1] : {} +> : ^^ +>+1 : 1 +> : ^ +>1 : 1 +> : ^ +>{} : {} +> : ^^ + + [~1]: {}, +>[~1] : {} +> : ^^ +>~1 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>{} : {} +> : ^^ + + [!1]: {} +>[!1] : {} +> : ^^ +>!1 : boolean +> : ^^^^^^^ +>1 : 1 +> : ^ +>{} : {} +> : ^^ +} + diff --git a/tests/baselines/reference/computedPropertyNamesOnOverloads_ES5(target=es2015).js b/tests/baselines/reference/computedPropertyNamesOnOverloads_ES5(target=es2015).js new file mode 100644 index 0000000000000..993cb11ae4bd6 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNamesOnOverloads_ES5(target=es2015).js @@ -0,0 +1,17 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNamesOnOverloads_ES5.ts] //// + +//// [computedPropertyNamesOnOverloads_ES5.ts] +var methodName = "method"; +var accessorName = "accessor"; +class C { + [methodName](v: string); + [methodName](); + [methodName](v?: string) { } +} + +//// [computedPropertyNamesOnOverloads_ES5.js] +var methodName = "method"; +var accessorName = "accessor"; +class C { + [methodName](v) { } +} diff --git a/tests/baselines/reference/computedPropertyNamesOnOverloads_ES5.symbols b/tests/baselines/reference/computedPropertyNamesOnOverloads_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/computedPropertyNamesOnOverloads_ES5.symbols rename to tests/baselines/reference/computedPropertyNamesOnOverloads_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/computedPropertyNamesOnOverloads_ES5.types b/tests/baselines/reference/computedPropertyNamesOnOverloads_ES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/computedPropertyNamesOnOverloads_ES5.types rename to tests/baselines/reference/computedPropertyNamesOnOverloads_ES5(target=es2015).types diff --git a/tests/baselines/reference/computedPropertyNamesOnOverloads_ES5.js b/tests/baselines/reference/computedPropertyNamesOnOverloads_ES5(target=es5).js similarity index 100% rename from tests/baselines/reference/computedPropertyNamesOnOverloads_ES5.js rename to tests/baselines/reference/computedPropertyNamesOnOverloads_ES5(target=es5).js diff --git a/tests/baselines/reference/computedPropertyNamesOnOverloads_ES5(target=es5).symbols b/tests/baselines/reference/computedPropertyNamesOnOverloads_ES5(target=es5).symbols new file mode 100644 index 0000000000000..08bfdfeb34f54 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNamesOnOverloads_ES5(target=es5).symbols @@ -0,0 +1,26 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNamesOnOverloads_ES5.ts] //// + +=== computedPropertyNamesOnOverloads_ES5.ts === +var methodName = "method"; +>methodName : Symbol(methodName, Decl(computedPropertyNamesOnOverloads_ES5.ts, 0, 3)) + +var accessorName = "accessor"; +>accessorName : Symbol(accessorName, Decl(computedPropertyNamesOnOverloads_ES5.ts, 1, 3)) + +class C { +>C : Symbol(C, Decl(computedPropertyNamesOnOverloads_ES5.ts, 1, 30)) + + [methodName](v: string); +>[methodName] : Symbol(C[methodName], Decl(computedPropertyNamesOnOverloads_ES5.ts, 2, 9)) +>methodName : Symbol(methodName, Decl(computedPropertyNamesOnOverloads_ES5.ts, 0, 3)) +>v : Symbol(v, Decl(computedPropertyNamesOnOverloads_ES5.ts, 3, 17)) + + [methodName](); +>[methodName] : Symbol(C[methodName], Decl(computedPropertyNamesOnOverloads_ES5.ts, 3, 28)) +>methodName : Symbol(methodName, Decl(computedPropertyNamesOnOverloads_ES5.ts, 0, 3)) + + [methodName](v?: string) { } +>[methodName] : Symbol(C[methodName], Decl(computedPropertyNamesOnOverloads_ES5.ts, 4, 19)) +>methodName : Symbol(methodName, Decl(computedPropertyNamesOnOverloads_ES5.ts, 0, 3)) +>v : Symbol(v, Decl(computedPropertyNamesOnOverloads_ES5.ts, 5, 17)) +} diff --git a/tests/baselines/reference/computedPropertyNamesOnOverloads_ES5(target=es5).types b/tests/baselines/reference/computedPropertyNamesOnOverloads_ES5(target=es5).types new file mode 100644 index 0000000000000..8864b6411bb56 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNamesOnOverloads_ES5(target=es5).types @@ -0,0 +1,41 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNamesOnOverloads_ES5.ts] //// + +=== computedPropertyNamesOnOverloads_ES5.ts === +var methodName = "method"; +>methodName : string +> : ^^^^^^ +>"method" : "method" +> : ^^^^^^^^ + +var accessorName = "accessor"; +>accessorName : string +> : ^^^^^^ +>"accessor" : "accessor" +> : ^^^^^^^^^^ + +class C { +>C : C +> : ^ + + [methodName](v: string); +>[methodName] : (v: string) => any +> : ^ ^^ ^^^^^^^^ +>methodName : string +> : ^^^^^^ +>v : string +> : ^^^^^^ + + [methodName](); +>[methodName] : () => any +> : ^^^^^^^^^ +>methodName : string +> : ^^^^^^ + + [methodName](v?: string) { } +>[methodName] : (v?: string) => void +> : ^ ^^^ ^^^^^^^^^ +>methodName : string +> : ^^^^^^ +>v : string +> : ^^^^^^ +} diff --git a/tests/baselines/reference/computedPropertyNamesSourceMap1_ES5(target=es2015).js b/tests/baselines/reference/computedPropertyNamesSourceMap1_ES5(target=es2015).js new file mode 100644 index 0000000000000..cefb0f943b944 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNamesSourceMap1_ES5(target=es2015).js @@ -0,0 +1,22 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNamesSourceMap1_ES5.ts] //// + +//// [computedPropertyNamesSourceMap1_ES5.ts] +class C { + ["hello"]() { + debugger; + } + get ["goodbye"]() { + return 0; + } +} + +//// [computedPropertyNamesSourceMap1_ES5.js] +class C { + ["hello"]() { + debugger; + } + get ["goodbye"]() { + return 0; + } +} +//# sourceMappingURL=computedPropertyNamesSourceMap1_ES5.js.map \ No newline at end of file diff --git a/tests/baselines/reference/computedPropertyNamesSourceMap1_ES5(target=es2015).js.map b/tests/baselines/reference/computedPropertyNamesSourceMap1_ES5(target=es2015).js.map new file mode 100644 index 0000000000000..c7b54a5aa1155 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNamesSourceMap1_ES5(target=es2015).js.map @@ -0,0 +1,3 @@ +//// [computedPropertyNamesSourceMap1_ES5.js.map] +{"version":3,"file":"computedPropertyNamesSourceMap1_ES5.js","sourceRoot":"","sources":["computedPropertyNamesSourceMap1_ES5.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC;IACH,CAAC,OAAO,CAAC;QACL,QAAQ,CAAC;IACb,CAAC;IACD,IAAI,CAAC,SAAS,CAAC;QACjB,OAAO,CAAC,CAAC;IACP,CAAC;CACJ"} +//// https://sokra.github.io/source-map-visualization#base64,Y2xhc3MgQyB7DQogICAgWyJoZWxsbyJdKCkgew0KICAgICAgICBkZWJ1Z2dlcjsNCiAgICB9DQogICAgZ2V0IFsiZ29vZGJ5ZSJdKCkgew0KICAgICAgICByZXR1cm4gMDsNCiAgICB9DQp9DQovLyMgc291cmNlTWFwcGluZ1VSTD1jb21wdXRlZFByb3BlcnR5TmFtZXNTb3VyY2VNYXAxX0VTNS5qcy5tYXA=,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcHV0ZWRQcm9wZXJ0eU5hbWVzU291cmNlTWFwMV9FUzUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJjb21wdXRlZFByb3BlcnR5TmFtZXNTb3VyY2VNYXAxX0VTNS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQUM7SUFDSCxDQUFDLE9BQU8sQ0FBQztRQUNMLFFBQVEsQ0FBQztJQUNiLENBQUM7SUFDRCxJQUFJLENBQUMsU0FBUyxDQUFDO1FBQ2pCLE9BQU8sQ0FBQyxDQUFDO0lBQ1AsQ0FBQztDQUNKIn0=,Y2xhc3MgQyB7CiAgICBbImhlbGxvIl0oKSB7CiAgICAgICAgZGVidWdnZXI7CiAgICB9CiAgICBnZXQgWyJnb29kYnllIl0oKSB7CgkJcmV0dXJuIDA7CiAgICB9Cn0= diff --git a/tests/baselines/reference/computedPropertyNamesSourceMap1_ES5(target=es2015).sourcemap.txt b/tests/baselines/reference/computedPropertyNamesSourceMap1_ES5(target=es2015).sourcemap.txt new file mode 100644 index 0000000000000..61b0281382d5b --- /dev/null +++ b/tests/baselines/reference/computedPropertyNamesSourceMap1_ES5(target=es2015).sourcemap.txt @@ -0,0 +1,110 @@ +=================================================================== +JsFile: computedPropertyNamesSourceMap1_ES5.js +mapUrl: computedPropertyNamesSourceMap1_ES5.js.map +sourceRoot: +sources: computedPropertyNamesSourceMap1_ES5.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:computedPropertyNamesSourceMap1_ES5.js +sourceFile:computedPropertyNamesSourceMap1_ES5.ts +------------------------------------------------------------------- +>>>class C { +1 > +2 >^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^-> +1 > +2 >class +3 > C +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 7) Source(1, 7) + SourceIndex(0) +3 >Emitted(1, 8) Source(1, 8) + SourceIndex(0) +--- +>>> ["hello"]() { +1->^^^^ +2 > ^ +3 > ^^^^^^^ +4 > ^ +5 > ^^^^^-> +1-> { + > +2 > [ +3 > "hello" +4 > ] +1->Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 6) Source(2, 6) + SourceIndex(0) +3 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +--- +>>> debugger; +1->^^^^^^^^ +2 > ^^^^^^^^ +3 > ^ +1->() { + > +2 > debugger +3 > ; +1->Emitted(3, 9) Source(3, 9) + SourceIndex(0) +2 >Emitted(3, 17) Source(3, 17) + SourceIndex(0) +3 >Emitted(3, 18) Source(3, 18) + SourceIndex(0) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(4, 5) Source(4, 5) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 6) + SourceIndex(0) +--- +>>> get ["goodbye"]() { +1->^^^^ +2 > ^^^^ +3 > ^ +4 > ^^^^^^^^^ +5 > ^ +1-> + > +2 > get +3 > [ +4 > "goodbye" +5 > ] +1->Emitted(5, 5) Source(5, 5) + SourceIndex(0) +2 >Emitted(5, 9) Source(5, 9) + SourceIndex(0) +3 >Emitted(5, 10) Source(5, 10) + SourceIndex(0) +4 >Emitted(5, 19) Source(5, 19) + SourceIndex(0) +5 >Emitted(5, 20) Source(5, 20) + SourceIndex(0) +--- +>>> return 0; +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^ +1 >() { + > +2 > return +3 > 0 +4 > ; +1 >Emitted(6, 9) Source(6, 3) + SourceIndex(0) +2 >Emitted(6, 16) Source(6, 10) + SourceIndex(0) +3 >Emitted(6, 17) Source(6, 11) + SourceIndex(0) +4 >Emitted(6, 18) Source(6, 12) + SourceIndex(0) +--- +>>> } +1 >^^^^ +2 > ^ +1 > + > +2 > } +1 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) +2 >Emitted(7, 6) Source(7, 6) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(8, 2) Source(8, 2) + SourceIndex(0) +--- +>>>//# sourceMappingURL=computedPropertyNamesSourceMap1_ES5.js.map \ No newline at end of file diff --git a/tests/baselines/reference/computedPropertyNamesSourceMap1_ES5.symbols b/tests/baselines/reference/computedPropertyNamesSourceMap1_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/computedPropertyNamesSourceMap1_ES5.symbols rename to tests/baselines/reference/computedPropertyNamesSourceMap1_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/computedPropertyNamesSourceMap1_ES5.types b/tests/baselines/reference/computedPropertyNamesSourceMap1_ES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/computedPropertyNamesSourceMap1_ES5.types rename to tests/baselines/reference/computedPropertyNamesSourceMap1_ES5(target=es2015).types diff --git a/tests/baselines/reference/computedPropertyNamesSourceMap1_ES5.js b/tests/baselines/reference/computedPropertyNamesSourceMap1_ES5(target=es5).js similarity index 100% rename from tests/baselines/reference/computedPropertyNamesSourceMap1_ES5.js rename to tests/baselines/reference/computedPropertyNamesSourceMap1_ES5(target=es5).js diff --git a/tests/baselines/reference/computedPropertyNamesSourceMap1_ES5.js.map b/tests/baselines/reference/computedPropertyNamesSourceMap1_ES5(target=es5).js.map similarity index 100% rename from tests/baselines/reference/computedPropertyNamesSourceMap1_ES5.js.map rename to tests/baselines/reference/computedPropertyNamesSourceMap1_ES5(target=es5).js.map diff --git a/tests/baselines/reference/computedPropertyNamesSourceMap1_ES5.sourcemap.txt b/tests/baselines/reference/computedPropertyNamesSourceMap1_ES5(target=es5).sourcemap.txt similarity index 100% rename from tests/baselines/reference/computedPropertyNamesSourceMap1_ES5.sourcemap.txt rename to tests/baselines/reference/computedPropertyNamesSourceMap1_ES5(target=es5).sourcemap.txt diff --git a/tests/baselines/reference/computedPropertyNamesSourceMap1_ES5(target=es5).symbols b/tests/baselines/reference/computedPropertyNamesSourceMap1_ES5(target=es5).symbols new file mode 100644 index 0000000000000..6c5753ce114cc --- /dev/null +++ b/tests/baselines/reference/computedPropertyNamesSourceMap1_ES5(target=es5).symbols @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNamesSourceMap1_ES5.ts] //// + +=== computedPropertyNamesSourceMap1_ES5.ts === +class C { +>C : Symbol(C, Decl(computedPropertyNamesSourceMap1_ES5.ts, 0, 0)) + + ["hello"]() { +>["hello"] : Symbol(C["hello"], Decl(computedPropertyNamesSourceMap1_ES5.ts, 0, 9)) +>"hello" : Symbol(C["hello"], Decl(computedPropertyNamesSourceMap1_ES5.ts, 0, 9)) + + debugger; + } + get ["goodbye"]() { +>["goodbye"] : Symbol(C["goodbye"], Decl(computedPropertyNamesSourceMap1_ES5.ts, 3, 5)) +>"goodbye" : Symbol(C["goodbye"], Decl(computedPropertyNamesSourceMap1_ES5.ts, 3, 5)) + + return 0; + } +} diff --git a/tests/baselines/reference/computedPropertyNamesSourceMap1_ES5(target=es5).types b/tests/baselines/reference/computedPropertyNamesSourceMap1_ES5(target=es5).types new file mode 100644 index 0000000000000..53f51de43e271 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNamesSourceMap1_ES5(target=es5).types @@ -0,0 +1,26 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNamesSourceMap1_ES5.ts] //// + +=== computedPropertyNamesSourceMap1_ES5.ts === +class C { +>C : C +> : ^ + + ["hello"]() { +>["hello"] : () => void +> : ^^^^^^^^^^ +>"hello" : "hello" +> : ^^^^^^^ + + debugger; + } + get ["goodbye"]() { +>["goodbye"] : number +> : ^^^^^^ +>"goodbye" : "goodbye" +> : ^^^^^^^^^ + + return 0; +>0 : 0 +> : ^ + } +} diff --git a/tests/baselines/reference/computedPropertyNamesSourceMap2_ES5(target=es2015).js b/tests/baselines/reference/computedPropertyNamesSourceMap2_ES5(target=es2015).js new file mode 100644 index 0000000000000..2216e38e50466 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNamesSourceMap2_ES5(target=es2015).js @@ -0,0 +1,22 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNamesSourceMap2_ES5.ts] //// + +//// [computedPropertyNamesSourceMap2_ES5.ts] +var v = { + ["hello"]() { + debugger; + }, + get ["goodbye"]() { + return 0; + } +} + +//// [computedPropertyNamesSourceMap2_ES5.js] +var v = { + ["hello"]() { + debugger; + }, + get ["goodbye"]() { + return 0; + } +}; +//# sourceMappingURL=computedPropertyNamesSourceMap2_ES5.js.map \ No newline at end of file diff --git a/tests/baselines/reference/computedPropertyNamesSourceMap2_ES5(target=es2015).js.map b/tests/baselines/reference/computedPropertyNamesSourceMap2_ES5(target=es2015).js.map new file mode 100644 index 0000000000000..5907869bd9e58 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNamesSourceMap2_ES5(target=es2015).js.map @@ -0,0 +1,3 @@ +//// [computedPropertyNamesSourceMap2_ES5.js.map] +{"version":3,"file":"computedPropertyNamesSourceMap2_ES5.js","sourceRoot":"","sources":["computedPropertyNamesSourceMap2_ES5.ts"],"names":[],"mappings":"AAAA,IAAI,CAAC,GAAG;IACJ,CAAC,OAAO,CAAC;QACL,QAAQ,CAAC;IAChB,CAAC;IACE,IAAI,CAAC,SAAS,CAAC;QACjB,OAAO,CAAC,CAAC;IACV,CAAC;CACD,CAAA"} +//// https://sokra.github.io/source-map-visualization#base64,dmFyIHYgPSB7DQogICAgWyJoZWxsbyJdKCkgew0KICAgICAgICBkZWJ1Z2dlcjsNCiAgICB9LA0KICAgIGdldCBbImdvb2RieWUiXSgpIHsNCiAgICAgICAgcmV0dXJuIDA7DQogICAgfQ0KfTsNCi8vIyBzb3VyY2VNYXBwaW5nVVJMPWNvbXB1dGVkUHJvcGVydHlOYW1lc1NvdXJjZU1hcDJfRVM1LmpzLm1hcA==,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcHV0ZWRQcm9wZXJ0eU5hbWVzU291cmNlTWFwMl9FUzUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJjb21wdXRlZFByb3BlcnR5TmFtZXNTb3VyY2VNYXAyX0VTNS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxJQUFJLENBQUMsR0FBRztJQUNKLENBQUMsT0FBTyxDQUFDO1FBQ0wsUUFBUSxDQUFDO0lBQ2hCLENBQUM7SUFDRSxJQUFJLENBQUMsU0FBUyxDQUFDO1FBQ2pCLE9BQU8sQ0FBQyxDQUFDO0lBQ1YsQ0FBQztDQUNELENBQUEifQ==,dmFyIHYgPSB7CiAgICBbImhlbGxvIl0oKSB7CiAgICAgICAgZGVidWdnZXI7Cgl9LAogICAgZ2V0IFsiZ29vZGJ5ZSJdKCkgewoJCXJldHVybiAwOwoJfQp9 diff --git a/tests/baselines/reference/computedPropertyNamesSourceMap2_ES5(target=es2015).sourcemap.txt b/tests/baselines/reference/computedPropertyNamesSourceMap2_ES5(target=es2015).sourcemap.txt new file mode 100644 index 0000000000000..f82ceefe60685 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNamesSourceMap2_ES5(target=es2015).sourcemap.txt @@ -0,0 +1,116 @@ +=================================================================== +JsFile: computedPropertyNamesSourceMap2_ES5.js +mapUrl: computedPropertyNamesSourceMap2_ES5.js.map +sourceRoot: +sources: computedPropertyNamesSourceMap2_ES5.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:computedPropertyNamesSourceMap2_ES5.js +sourceFile:computedPropertyNamesSourceMap2_ES5.ts +------------------------------------------------------------------- +>>>var v = { +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^-> +1 > +2 >var +3 > v +4 > = +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(1, 5) + SourceIndex(0) +3 >Emitted(1, 6) Source(1, 6) + SourceIndex(0) +4 >Emitted(1, 9) Source(1, 9) + SourceIndex(0) +--- +>>> ["hello"]() { +1->^^^^ +2 > ^ +3 > ^^^^^^^ +4 > ^ +5 > ^^^^^-> +1->{ + > +2 > [ +3 > "hello" +4 > ] +1->Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 6) Source(2, 6) + SourceIndex(0) +3 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +--- +>>> debugger; +1->^^^^^^^^ +2 > ^^^^^^^^ +3 > ^ +1->() { + > +2 > debugger +3 > ; +1->Emitted(3, 9) Source(3, 9) + SourceIndex(0) +2 >Emitted(3, 17) Source(3, 17) + SourceIndex(0) +3 >Emitted(3, 18) Source(3, 18) + SourceIndex(0) +--- +>>> }, +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(4, 5) Source(4, 2) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 3) + SourceIndex(0) +--- +>>> get ["goodbye"]() { +1->^^^^ +2 > ^^^^ +3 > ^ +4 > ^^^^^^^^^ +5 > ^ +1->, + > +2 > get +3 > [ +4 > "goodbye" +5 > ] +1->Emitted(5, 5) Source(5, 5) + SourceIndex(0) +2 >Emitted(5, 9) Source(5, 9) + SourceIndex(0) +3 >Emitted(5, 10) Source(5, 10) + SourceIndex(0) +4 >Emitted(5, 19) Source(5, 19) + SourceIndex(0) +5 >Emitted(5, 20) Source(5, 20) + SourceIndex(0) +--- +>>> return 0; +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^ +1 >() { + > +2 > return +3 > 0 +4 > ; +1 >Emitted(6, 9) Source(6, 3) + SourceIndex(0) +2 >Emitted(6, 16) Source(6, 10) + SourceIndex(0) +3 >Emitted(6, 17) Source(6, 11) + SourceIndex(0) +4 >Emitted(6, 18) Source(6, 12) + SourceIndex(0) +--- +>>> } +1 >^^^^ +2 > ^ +1 > + > +2 > } +1 >Emitted(7, 5) Source(7, 2) + SourceIndex(0) +2 >Emitted(7, 6) Source(7, 3) + SourceIndex(0) +--- +>>>}; +1 >^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +2 > +1 >Emitted(8, 2) Source(8, 2) + SourceIndex(0) +2 >Emitted(8, 3) Source(8, 2) + SourceIndex(0) +--- +>>>//# sourceMappingURL=computedPropertyNamesSourceMap2_ES5.js.map \ No newline at end of file diff --git a/tests/baselines/reference/computedPropertyNamesSourceMap2_ES5.symbols b/tests/baselines/reference/computedPropertyNamesSourceMap2_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/computedPropertyNamesSourceMap2_ES5.symbols rename to tests/baselines/reference/computedPropertyNamesSourceMap2_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/computedPropertyNamesSourceMap2_ES5.types b/tests/baselines/reference/computedPropertyNamesSourceMap2_ES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/computedPropertyNamesSourceMap2_ES5.types rename to tests/baselines/reference/computedPropertyNamesSourceMap2_ES5(target=es2015).types diff --git a/tests/baselines/reference/computedPropertyNamesSourceMap2_ES5.js b/tests/baselines/reference/computedPropertyNamesSourceMap2_ES5(target=es5).js similarity index 100% rename from tests/baselines/reference/computedPropertyNamesSourceMap2_ES5.js rename to tests/baselines/reference/computedPropertyNamesSourceMap2_ES5(target=es5).js diff --git a/tests/baselines/reference/computedPropertyNamesSourceMap2_ES5.js.map b/tests/baselines/reference/computedPropertyNamesSourceMap2_ES5(target=es5).js.map similarity index 100% rename from tests/baselines/reference/computedPropertyNamesSourceMap2_ES5.js.map rename to tests/baselines/reference/computedPropertyNamesSourceMap2_ES5(target=es5).js.map diff --git a/tests/baselines/reference/computedPropertyNamesSourceMap2_ES5.sourcemap.txt b/tests/baselines/reference/computedPropertyNamesSourceMap2_ES5(target=es5).sourcemap.txt similarity index 100% rename from tests/baselines/reference/computedPropertyNamesSourceMap2_ES5.sourcemap.txt rename to tests/baselines/reference/computedPropertyNamesSourceMap2_ES5(target=es5).sourcemap.txt diff --git a/tests/baselines/reference/computedPropertyNamesSourceMap2_ES5(target=es5).symbols b/tests/baselines/reference/computedPropertyNamesSourceMap2_ES5(target=es5).symbols new file mode 100644 index 0000000000000..9c44e6c841f06 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNamesSourceMap2_ES5(target=es5).symbols @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNamesSourceMap2_ES5.ts] //// + +=== computedPropertyNamesSourceMap2_ES5.ts === +var v = { +>v : Symbol(v, Decl(computedPropertyNamesSourceMap2_ES5.ts, 0, 3)) + + ["hello"]() { +>["hello"] : Symbol(["hello"], Decl(computedPropertyNamesSourceMap2_ES5.ts, 0, 9)) +>"hello" : Symbol(["hello"], Decl(computedPropertyNamesSourceMap2_ES5.ts, 0, 9)) + + debugger; + }, + get ["goodbye"]() { +>["goodbye"] : Symbol(["goodbye"], Decl(computedPropertyNamesSourceMap2_ES5.ts, 3, 3)) +>"goodbye" : Symbol(["goodbye"], Decl(computedPropertyNamesSourceMap2_ES5.ts, 3, 3)) + + return 0; + } +} diff --git a/tests/baselines/reference/computedPropertyNamesSourceMap2_ES5(target=es5).types b/tests/baselines/reference/computedPropertyNamesSourceMap2_ES5(target=es5).types new file mode 100644 index 0000000000000..b5d80bd65290a --- /dev/null +++ b/tests/baselines/reference/computedPropertyNamesSourceMap2_ES5(target=es5).types @@ -0,0 +1,28 @@ +//// [tests/cases/conformance/es6/computedProperties/computedPropertyNamesSourceMap2_ES5.ts] //// + +=== computedPropertyNamesSourceMap2_ES5.ts === +var v = { +>v : { hello(): void; readonly goodbye: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ ["hello"]() { debugger; }, get ["goodbye"]() { return 0; }} : { hello(): void; readonly goodbye: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + ["hello"]() { +>["hello"] : () => void +> : ^^^^^^^^^^ +>"hello" : "hello" +> : ^^^^^^^ + + debugger; + }, + get ["goodbye"]() { +>["goodbye"] : number +> : ^^^^^^ +>"goodbye" : "goodbye" +> : ^^^^^^^^^ + + return 0; +>0 : 0 +> : ^ + } +} diff --git a/tests/baselines/reference/computerPropertiesInES5ShouldBeTransformed(target=es2015).js b/tests/baselines/reference/computerPropertiesInES5ShouldBeTransformed(target=es2015).js new file mode 100644 index 0000000000000..c595aa7eab959 --- /dev/null +++ b/tests/baselines/reference/computerPropertiesInES5ShouldBeTransformed(target=es2015).js @@ -0,0 +1,7 @@ +//// [tests/cases/compiler/computerPropertiesInES5ShouldBeTransformed.ts] //// + +//// [computerPropertiesInES5ShouldBeTransformed.ts] +const b = ({ [`key`]: renamed }) => renamed; + +//// [computerPropertiesInES5ShouldBeTransformed.js] +const b = ({ [`key`]: renamed }) => renamed; diff --git a/tests/baselines/reference/computerPropertiesInES5ShouldBeTransformed.symbols b/tests/baselines/reference/computerPropertiesInES5ShouldBeTransformed(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/computerPropertiesInES5ShouldBeTransformed.symbols rename to tests/baselines/reference/computerPropertiesInES5ShouldBeTransformed(target=es2015).symbols diff --git a/tests/baselines/reference/computerPropertiesInES5ShouldBeTransformed.types b/tests/baselines/reference/computerPropertiesInES5ShouldBeTransformed(target=es2015).types similarity index 100% rename from tests/baselines/reference/computerPropertiesInES5ShouldBeTransformed.types rename to tests/baselines/reference/computerPropertiesInES5ShouldBeTransformed(target=es2015).types diff --git a/tests/baselines/reference/computerPropertiesInES5ShouldBeTransformed.js b/tests/baselines/reference/computerPropertiesInES5ShouldBeTransformed(target=es5).js similarity index 100% rename from tests/baselines/reference/computerPropertiesInES5ShouldBeTransformed.js rename to tests/baselines/reference/computerPropertiesInES5ShouldBeTransformed(target=es5).js diff --git a/tests/baselines/reference/computerPropertiesInES5ShouldBeTransformed(target=es5).symbols b/tests/baselines/reference/computerPropertiesInES5ShouldBeTransformed(target=es5).symbols new file mode 100644 index 0000000000000..181deb638a993 --- /dev/null +++ b/tests/baselines/reference/computerPropertiesInES5ShouldBeTransformed(target=es5).symbols @@ -0,0 +1,9 @@ +//// [tests/cases/compiler/computerPropertiesInES5ShouldBeTransformed.ts] //// + +=== computerPropertiesInES5ShouldBeTransformed.ts === +const b = ({ [`key`]: renamed }) => renamed; +>b : Symbol(b, Decl(computerPropertiesInES5ShouldBeTransformed.ts, 0, 5)) +>`key` : Symbol(renamed, Decl(computerPropertiesInES5ShouldBeTransformed.ts, 0, 12)) +>renamed : Symbol(renamed, Decl(computerPropertiesInES5ShouldBeTransformed.ts, 0, 12)) +>renamed : Symbol(renamed, Decl(computerPropertiesInES5ShouldBeTransformed.ts, 0, 12)) + diff --git a/tests/baselines/reference/computerPropertiesInES5ShouldBeTransformed(target=es5).types b/tests/baselines/reference/computerPropertiesInES5ShouldBeTransformed(target=es5).types new file mode 100644 index 0000000000000..6f14599491ebf --- /dev/null +++ b/tests/baselines/reference/computerPropertiesInES5ShouldBeTransformed(target=es5).types @@ -0,0 +1,14 @@ +//// [tests/cases/compiler/computerPropertiesInES5ShouldBeTransformed.ts] //// + +=== computerPropertiesInES5ShouldBeTransformed.ts === +const b = ({ [`key`]: renamed }) => renamed; +>b : ({ [`key`]: renamed }: { key: any; }) => any +> : ^ ^^^^^^^^^^^^^^^^^^^^^^^ +>({ [`key`]: renamed }) => renamed : ({ [`key`]: renamed }: { key: any; }) => any +> : ^ ^^^^^^^^^^^^^^^^^^^^^^^ +>`key` : "key" +> : ^^^^^ +>renamed : any +> : ^^^ +>renamed : any + diff --git a/tests/baselines/reference/constDeclarations-es5(target=es2015).js b/tests/baselines/reference/constDeclarations-es5(target=es2015).js new file mode 100644 index 0000000000000..a6d2705865672 --- /dev/null +++ b/tests/baselines/reference/constDeclarations-es5(target=es2015).js @@ -0,0 +1,12 @@ +//// [tests/cases/compiler/constDeclarations-es5.ts] //// + +//// [constDeclarations-es5.ts] +const z7 = false; +const z8: number = 23; +const z9 = 0, z10 :string = "", z11 = null; + + +//// [constDeclarations-es5.js] +const z7 = false; +const z8 = 23; +const z9 = 0, z10 = "", z11 = null; diff --git a/tests/baselines/reference/constDeclarations-es5.symbols b/tests/baselines/reference/constDeclarations-es5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/constDeclarations-es5.symbols rename to tests/baselines/reference/constDeclarations-es5(target=es2015).symbols diff --git a/tests/baselines/reference/constDeclarations-es5.types b/tests/baselines/reference/constDeclarations-es5(target=es2015).types similarity index 100% rename from tests/baselines/reference/constDeclarations-es5.types rename to tests/baselines/reference/constDeclarations-es5(target=es2015).types diff --git a/tests/baselines/reference/constDeclarations-es5.js b/tests/baselines/reference/constDeclarations-es5(target=es5).js similarity index 100% rename from tests/baselines/reference/constDeclarations-es5.js rename to tests/baselines/reference/constDeclarations-es5(target=es5).js diff --git a/tests/baselines/reference/constDeclarations-es5(target=es5).symbols b/tests/baselines/reference/constDeclarations-es5(target=es5).symbols new file mode 100644 index 0000000000000..03bec3150ef0d --- /dev/null +++ b/tests/baselines/reference/constDeclarations-es5(target=es5).symbols @@ -0,0 +1,14 @@ +//// [tests/cases/compiler/constDeclarations-es5.ts] //// + +=== constDeclarations-es5.ts === +const z7 = false; +>z7 : Symbol(z7, Decl(constDeclarations-es5.ts, 0, 5)) + +const z8: number = 23; +>z8 : Symbol(z8, Decl(constDeclarations-es5.ts, 1, 5)) + +const z9 = 0, z10 :string = "", z11 = null; +>z9 : Symbol(z9, Decl(constDeclarations-es5.ts, 2, 5)) +>z10 : Symbol(z10, Decl(constDeclarations-es5.ts, 2, 13)) +>z11 : Symbol(z11, Decl(constDeclarations-es5.ts, 2, 31)) + diff --git a/tests/baselines/reference/constDeclarations-es5(target=es5).types b/tests/baselines/reference/constDeclarations-es5(target=es5).types new file mode 100644 index 0000000000000..cb068af0ec587 --- /dev/null +++ b/tests/baselines/reference/constDeclarations-es5(target=es5).types @@ -0,0 +1,26 @@ +//// [tests/cases/compiler/constDeclarations-es5.ts] //// + +=== constDeclarations-es5.ts === +const z7 = false; +>z7 : false +> : ^^^^^ +>false : false +> : ^^^^^ + +const z8: number = 23; +>z8 : number +> : ^^^^^^ +>23 : 23 +> : ^^ + +const z9 = 0, z10 :string = "", z11 = null; +>z9 : 0 +> : ^ +>0 : 0 +> : ^ +>z10 : string +> : ^^^^^^ +>"" : "" +> : ^^ +>z11 : any + diff --git a/tests/baselines/reference/constructorWithSuperAndPrologue.es5(target=es2015).js b/tests/baselines/reference/constructorWithSuperAndPrologue.es5(target=es2015).js new file mode 100644 index 0000000000000..f85416cd26f1d --- /dev/null +++ b/tests/baselines/reference/constructorWithSuperAndPrologue.es5(target=es2015).js @@ -0,0 +1,36 @@ +//// [tests/cases/compiler/constructorWithSuperAndPrologue.es5.ts] //// + +//// [constructorWithSuperAndPrologue.es5.ts] +// https://github.com/microsoft/TypeScript/issues/48761 +"use strict"; + +class A { + public constructor() { + console.log("A") + } +} + +class B extends A { + constructor() { + "ngInject"; + console.log("B") + super(); + } +} + + +//// [constructorWithSuperAndPrologue.es5.js] +// https://github.com/microsoft/TypeScript/issues/48761 +"use strict"; +class A { + constructor() { + console.log("A"); + } +} +class B extends A { + constructor() { + "ngInject"; + console.log("B"); + super(); + } +} diff --git a/tests/baselines/reference/constructorWithSuperAndPrologue.es5.symbols b/tests/baselines/reference/constructorWithSuperAndPrologue.es5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/constructorWithSuperAndPrologue.es5.symbols rename to tests/baselines/reference/constructorWithSuperAndPrologue.es5(target=es2015).symbols diff --git a/tests/baselines/reference/constructorWithSuperAndPrologue.es5.types b/tests/baselines/reference/constructorWithSuperAndPrologue.es5(target=es2015).types similarity index 100% rename from tests/baselines/reference/constructorWithSuperAndPrologue.es5.types rename to tests/baselines/reference/constructorWithSuperAndPrologue.es5(target=es2015).types diff --git a/tests/baselines/reference/constructorWithSuperAndPrologue.es5.js b/tests/baselines/reference/constructorWithSuperAndPrologue.es5(target=es5).js similarity index 100% rename from tests/baselines/reference/constructorWithSuperAndPrologue.es5.js rename to tests/baselines/reference/constructorWithSuperAndPrologue.es5(target=es5).js diff --git a/tests/baselines/reference/constructorWithSuperAndPrologue.es5(target=es5).symbols b/tests/baselines/reference/constructorWithSuperAndPrologue.es5(target=es5).symbols new file mode 100644 index 0000000000000..44b377841c94b --- /dev/null +++ b/tests/baselines/reference/constructorWithSuperAndPrologue.es5(target=es5).symbols @@ -0,0 +1,33 @@ +//// [tests/cases/compiler/constructorWithSuperAndPrologue.es5.ts] //// + +=== constructorWithSuperAndPrologue.es5.ts === +// https://github.com/microsoft/TypeScript/issues/48761 +"use strict"; + +class A { +>A : Symbol(A, Decl(constructorWithSuperAndPrologue.es5.ts, 1, 13)) + + public constructor() { + console.log("A") +>console.log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) +>console : Symbol(console, Decl(lib.dom.d.ts, --, --)) +>log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) + } +} + +class B extends A { +>B : Symbol(B, Decl(constructorWithSuperAndPrologue.es5.ts, 7, 1)) +>A : Symbol(A, Decl(constructorWithSuperAndPrologue.es5.ts, 1, 13)) + + constructor() { + "ngInject"; + console.log("B") +>console.log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) +>console : Symbol(console, Decl(lib.dom.d.ts, --, --)) +>log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) + + super(); +>super : Symbol(A, Decl(constructorWithSuperAndPrologue.es5.ts, 1, 13)) + } +} + diff --git a/tests/baselines/reference/constructorWithSuperAndPrologue.es5(target=es5).types b/tests/baselines/reference/constructorWithSuperAndPrologue.es5(target=es5).types new file mode 100644 index 0000000000000..30a76942116fb --- /dev/null +++ b/tests/baselines/reference/constructorWithSuperAndPrologue.es5(target=es5).types @@ -0,0 +1,58 @@ +//// [tests/cases/compiler/constructorWithSuperAndPrologue.es5.ts] //// + +=== constructorWithSuperAndPrologue.es5.ts === +// https://github.com/microsoft/TypeScript/issues/48761 +"use strict"; +>"use strict" : "use strict" +> : ^^^^^^^^^^^^ + +class A { +>A : A +> : ^ + + public constructor() { + console.log("A") +>console.log("A") : void +> : ^^^^ +>console.log : (...data: any[]) => void +> : ^^^^ ^^ ^^^^^ +>console : Console +> : ^^^^^^^ +>log : (...data: any[]) => void +> : ^^^^ ^^ ^^^^^ +>"A" : "A" +> : ^^^ + } +} + +class B extends A { +>B : B +> : ^ +>A : A +> : ^ + + constructor() { + "ngInject"; +>"ngInject" : "ngInject" +> : ^^^^^^^^^^ + + console.log("B") +>console.log("B") : void +> : ^^^^ +>console.log : (...data: any[]) => void +> : ^^^^ ^^ ^^^^^ +>console : Console +> : ^^^^^^^ +>log : (...data: any[]) => void +> : ^^^^ ^^ ^^^^^ +>"B" : "B" +> : ^^^ + + super(); +>super() : void +> : ^^^^ +>super : typeof A +> : ^^^^^^^^ + } +} + diff --git a/tests/baselines/reference/contextualExpressionTypecheckingDoesntBlowStack(target=es2015).js b/tests/baselines/reference/contextualExpressionTypecheckingDoesntBlowStack(target=es2015).js new file mode 100644 index 0000000000000..896b82697b95f --- /dev/null +++ b/tests/baselines/reference/contextualExpressionTypecheckingDoesntBlowStack(target=es2015).js @@ -0,0 +1,43 @@ +//// [tests/cases/compiler/contextualExpressionTypecheckingDoesntBlowStack.ts] //// + +//// [contextualExpressionTypecheckingDoesntBlowStack.ts] +// repro for: https://github.com/Microsoft/TypeScript/issues/23661 +export interface IValidationError { + message: string; +} + +export default class Operation { + validateParameters(parameterValues: any) : IValidationError[] | null { + let result: IValidationError[] | null = null; + for(const parameterLocation of Object.keys(parameterValues)) { + const parameter: any = (this as any).getParameter();; + const values = (this as any).getValues(); + + const innerResult = parameter.validate(values[parameter.oaParameter.name]); + if(innerResult && innerResult.length > 0) { + // Commenting out this line will fix the problem. + result = (result || []).concat(innerResult); + } + } + + return result; + } +} + +//// [contextualExpressionTypecheckingDoesntBlowStack.js] +export default class Operation { + validateParameters(parameterValues) { + let result = null; + for (const parameterLocation of Object.keys(parameterValues)) { + const parameter = this.getParameter(); + ; + const values = this.getValues(); + const innerResult = parameter.validate(values[parameter.oaParameter.name]); + if (innerResult && innerResult.length > 0) { + // Commenting out this line will fix the problem. + result = (result || []).concat(innerResult); + } + } + return result; + } +} diff --git a/tests/baselines/reference/contextualExpressionTypecheckingDoesntBlowStack.symbols b/tests/baselines/reference/contextualExpressionTypecheckingDoesntBlowStack(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/contextualExpressionTypecheckingDoesntBlowStack.symbols rename to tests/baselines/reference/contextualExpressionTypecheckingDoesntBlowStack(target=es2015).symbols diff --git a/tests/baselines/reference/contextualExpressionTypecheckingDoesntBlowStack.types b/tests/baselines/reference/contextualExpressionTypecheckingDoesntBlowStack(target=es2015).types similarity index 100% rename from tests/baselines/reference/contextualExpressionTypecheckingDoesntBlowStack.types rename to tests/baselines/reference/contextualExpressionTypecheckingDoesntBlowStack(target=es2015).types diff --git a/tests/baselines/reference/contextualExpressionTypecheckingDoesntBlowStack.js b/tests/baselines/reference/contextualExpressionTypecheckingDoesntBlowStack(target=es5).js similarity index 100% rename from tests/baselines/reference/contextualExpressionTypecheckingDoesntBlowStack.js rename to tests/baselines/reference/contextualExpressionTypecheckingDoesntBlowStack(target=es5).js diff --git a/tests/baselines/reference/contextualExpressionTypecheckingDoesntBlowStack(target=es5).symbols b/tests/baselines/reference/contextualExpressionTypecheckingDoesntBlowStack(target=es5).symbols new file mode 100644 index 0000000000000..25d5f72c9649c --- /dev/null +++ b/tests/baselines/reference/contextualExpressionTypecheckingDoesntBlowStack(target=es5).symbols @@ -0,0 +1,62 @@ +//// [tests/cases/compiler/contextualExpressionTypecheckingDoesntBlowStack.ts] //// + +=== contextualExpressionTypecheckingDoesntBlowStack.ts === +// repro for: https://github.com/Microsoft/TypeScript/issues/23661 +export interface IValidationError { +>IValidationError : Symbol(IValidationError, Decl(contextualExpressionTypecheckingDoesntBlowStack.ts, 0, 0)) + + message: string; +>message : Symbol(IValidationError.message, Decl(contextualExpressionTypecheckingDoesntBlowStack.ts, 1, 35)) +} + +export default class Operation { +>Operation : Symbol(Operation, Decl(contextualExpressionTypecheckingDoesntBlowStack.ts, 3, 1)) + + validateParameters(parameterValues: any) : IValidationError[] | null { +>validateParameters : Symbol(Operation.validateParameters, Decl(contextualExpressionTypecheckingDoesntBlowStack.ts, 5, 32)) +>parameterValues : Symbol(parameterValues, Decl(contextualExpressionTypecheckingDoesntBlowStack.ts, 6, 23)) +>IValidationError : Symbol(IValidationError, Decl(contextualExpressionTypecheckingDoesntBlowStack.ts, 0, 0)) + + let result: IValidationError[] | null = null; +>result : Symbol(result, Decl(contextualExpressionTypecheckingDoesntBlowStack.ts, 7, 11)) +>IValidationError : Symbol(IValidationError, Decl(contextualExpressionTypecheckingDoesntBlowStack.ts, 0, 0)) + + for(const parameterLocation of Object.keys(parameterValues)) { +>parameterLocation : Symbol(parameterLocation, Decl(contextualExpressionTypecheckingDoesntBlowStack.ts, 8, 17)) +>Object.keys : Symbol(ObjectConstructor.keys, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) +>Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>keys : Symbol(ObjectConstructor.keys, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) +>parameterValues : Symbol(parameterValues, Decl(contextualExpressionTypecheckingDoesntBlowStack.ts, 6, 23)) + + const parameter: any = (this as any).getParameter();; +>parameter : Symbol(parameter, Decl(contextualExpressionTypecheckingDoesntBlowStack.ts, 9, 17)) +>this : Symbol(Operation, Decl(contextualExpressionTypecheckingDoesntBlowStack.ts, 3, 1)) + + const values = (this as any).getValues(); +>values : Symbol(values, Decl(contextualExpressionTypecheckingDoesntBlowStack.ts, 10, 17)) +>this : Symbol(Operation, Decl(contextualExpressionTypecheckingDoesntBlowStack.ts, 3, 1)) + + const innerResult = parameter.validate(values[parameter.oaParameter.name]); +>innerResult : Symbol(innerResult, Decl(contextualExpressionTypecheckingDoesntBlowStack.ts, 12, 17)) +>parameter : Symbol(parameter, Decl(contextualExpressionTypecheckingDoesntBlowStack.ts, 9, 17)) +>values : Symbol(values, Decl(contextualExpressionTypecheckingDoesntBlowStack.ts, 10, 17)) +>parameter : Symbol(parameter, Decl(contextualExpressionTypecheckingDoesntBlowStack.ts, 9, 17)) + + if(innerResult && innerResult.length > 0) { +>innerResult : Symbol(innerResult, Decl(contextualExpressionTypecheckingDoesntBlowStack.ts, 12, 17)) +>innerResult : Symbol(innerResult, Decl(contextualExpressionTypecheckingDoesntBlowStack.ts, 12, 17)) + + // Commenting out this line will fix the problem. + result = (result || []).concat(innerResult); +>result : Symbol(result, Decl(contextualExpressionTypecheckingDoesntBlowStack.ts, 7, 11)) +>(result || []).concat : Symbol(Array.concat, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>result : Symbol(result, Decl(contextualExpressionTypecheckingDoesntBlowStack.ts, 7, 11)) +>concat : Symbol(Array.concat, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>innerResult : Symbol(innerResult, Decl(contextualExpressionTypecheckingDoesntBlowStack.ts, 12, 17)) + } + } + + return result; +>result : Symbol(result, Decl(contextualExpressionTypecheckingDoesntBlowStack.ts, 7, 11)) + } +} diff --git a/tests/baselines/reference/contextualExpressionTypecheckingDoesntBlowStack(target=es5).types b/tests/baselines/reference/contextualExpressionTypecheckingDoesntBlowStack(target=es5).types new file mode 100644 index 0000000000000..f9a158fc781e3 --- /dev/null +++ b/tests/baselines/reference/contextualExpressionTypecheckingDoesntBlowStack(target=es5).types @@ -0,0 +1,122 @@ +//// [tests/cases/compiler/contextualExpressionTypecheckingDoesntBlowStack.ts] //// + +=== contextualExpressionTypecheckingDoesntBlowStack.ts === +// repro for: https://github.com/Microsoft/TypeScript/issues/23661 +export interface IValidationError { + message: string; +>message : string +> : ^^^^^^ +} + +export default class Operation { +>Operation : Operation +> : ^^^^^^^^^ + + validateParameters(parameterValues: any) : IValidationError[] | null { +>validateParameters : (parameterValues: any) => IValidationError[] | null +> : ^ ^^ ^^^^^ +>parameterValues : any + + let result: IValidationError[] | null = null; +>result : IValidationError[] | null +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ + + for(const parameterLocation of Object.keys(parameterValues)) { +>parameterLocation : string +> : ^^^^^^ +>Object.keys(parameterValues) : string[] +> : ^^^^^^^^ +>Object.keys : { (o: object): string[]; (o: {}): string[]; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>Object : ObjectConstructor +> : ^^^^^^^^^^^^^^^^^ +>keys : { (o: object): string[]; (o: {}): string[]; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>parameterValues : any + + const parameter: any = (this as any).getParameter();; +>parameter : any +>(this as any).getParameter() : any +>(this as any).getParameter : any +>(this as any) : any +> : ^^^ +>this as any : any +>this : this +> : ^^^^ +>getParameter : any +> : ^^^ + + const values = (this as any).getValues(); +>values : any +>(this as any).getValues() : any +>(this as any).getValues : any +>(this as any) : any +> : ^^^ +>this as any : any +>this : this +> : ^^^^ +>getValues : any +> : ^^^ + + const innerResult = parameter.validate(values[parameter.oaParameter.name]); +>innerResult : any +>parameter.validate(values[parameter.oaParameter.name]) : any +>parameter.validate : any +>parameter : any +> : ^^^ +>validate : any +> : ^^^ +>values[parameter.oaParameter.name] : any +>values : any +>parameter.oaParameter.name : any +>parameter.oaParameter : any +> : ^^^ +>parameter : any +> : ^^^ +>oaParameter : any +> : ^^^ +>name : any +> : ^^^ + + if(innerResult && innerResult.length > 0) { +>innerResult && innerResult.length > 0 : any +>innerResult : any +>innerResult.length > 0 : boolean +> : ^^^^^^^ +>innerResult.length : any +>innerResult : any +> : ^^^ +>length : any +> : ^^^ +>0 : 0 +> : ^ + + // Commenting out this line will fix the problem. + result = (result || []).concat(innerResult); +>result = (result || []).concat(innerResult) : IValidationError[] +> : ^^^^^^^^^^^^^^^^^^ +>result : IValidationError[] | null +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>(result || []).concat(innerResult) : IValidationError[] +> : ^^^^^^^^^^^^^^^^^^ +>(result || []).concat : { (...items: ConcatArray[]): IValidationError[]; (...items: (IValidationError | ConcatArray)[]): IValidationError[]; } +> : ^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>(result || []) : IValidationError[] +> : ^^^^^^^^^^^^^^^^^^ +>result || [] : IValidationError[] +> : ^^^^^^^^^^^^^^^^^^ +>result : IValidationError[] | null +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>[] : never[] +> : ^^^^^^^ +>concat : { (...items: ConcatArray[]): IValidationError[]; (...items: (IValidationError | ConcatArray)[]): IValidationError[]; } +> : ^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>innerResult : any + } + } + + return result; +>result : IValidationError[] | null +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ + } +} diff --git a/tests/baselines/reference/continueInLoopsWithCapturedBlockScopedBindings1(target=es2015).js b/tests/baselines/reference/continueInLoopsWithCapturedBlockScopedBindings1(target=es2015).js new file mode 100644 index 0000000000000..230b631027c90 --- /dev/null +++ b/tests/baselines/reference/continueInLoopsWithCapturedBlockScopedBindings1(target=es2015).js @@ -0,0 +1,28 @@ +//// [tests/cases/compiler/continueInLoopsWithCapturedBlockScopedBindings1.ts] //// + +//// [continueInLoopsWithCapturedBlockScopedBindings1.ts] +function foo() { + for (const i of [0, 1]) { + if (i === 0) { + continue; + } + + // Trigger non-simple-loop emit + (() => { + return i; + })(); + } +} + +//// [continueInLoopsWithCapturedBlockScopedBindings1.js] +function foo() { + for (const i of [0, 1]) { + if (i === 0) { + continue; + } + // Trigger non-simple-loop emit + (() => { + return i; + })(); + } +} diff --git a/tests/baselines/reference/continueInLoopsWithCapturedBlockScopedBindings1.symbols b/tests/baselines/reference/continueInLoopsWithCapturedBlockScopedBindings1(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/continueInLoopsWithCapturedBlockScopedBindings1.symbols rename to tests/baselines/reference/continueInLoopsWithCapturedBlockScopedBindings1(target=es2015).symbols diff --git a/tests/baselines/reference/continueInLoopsWithCapturedBlockScopedBindings1.types b/tests/baselines/reference/continueInLoopsWithCapturedBlockScopedBindings1(target=es2015).types similarity index 100% rename from tests/baselines/reference/continueInLoopsWithCapturedBlockScopedBindings1.types rename to tests/baselines/reference/continueInLoopsWithCapturedBlockScopedBindings1(target=es2015).types diff --git a/tests/baselines/reference/continueInLoopsWithCapturedBlockScopedBindings1.js b/tests/baselines/reference/continueInLoopsWithCapturedBlockScopedBindings1(target=es5).js similarity index 100% rename from tests/baselines/reference/continueInLoopsWithCapturedBlockScopedBindings1.js rename to tests/baselines/reference/continueInLoopsWithCapturedBlockScopedBindings1(target=es5).js diff --git a/tests/baselines/reference/continueInLoopsWithCapturedBlockScopedBindings1(target=es5).symbols b/tests/baselines/reference/continueInLoopsWithCapturedBlockScopedBindings1(target=es5).symbols new file mode 100644 index 0000000000000..0ce940f436f3f --- /dev/null +++ b/tests/baselines/reference/continueInLoopsWithCapturedBlockScopedBindings1(target=es5).symbols @@ -0,0 +1,23 @@ +//// [tests/cases/compiler/continueInLoopsWithCapturedBlockScopedBindings1.ts] //// + +=== continueInLoopsWithCapturedBlockScopedBindings1.ts === +function foo() { +>foo : Symbol(foo, Decl(continueInLoopsWithCapturedBlockScopedBindings1.ts, 0, 0)) + + for (const i of [0, 1]) { +>i : Symbol(i, Decl(continueInLoopsWithCapturedBlockScopedBindings1.ts, 1, 14)) + + if (i === 0) { +>i : Symbol(i, Decl(continueInLoopsWithCapturedBlockScopedBindings1.ts, 1, 14)) + + continue; + } + + // Trigger non-simple-loop emit + (() => { + return i; +>i : Symbol(i, Decl(continueInLoopsWithCapturedBlockScopedBindings1.ts, 1, 14)) + + })(); + } +} diff --git a/tests/baselines/reference/continueInLoopsWithCapturedBlockScopedBindings1(target=es5).types b/tests/baselines/reference/continueInLoopsWithCapturedBlockScopedBindings1(target=es5).types new file mode 100644 index 0000000000000..c48578ef2bd88 --- /dev/null +++ b/tests/baselines/reference/continueInLoopsWithCapturedBlockScopedBindings1(target=es5).types @@ -0,0 +1,44 @@ +//// [tests/cases/compiler/continueInLoopsWithCapturedBlockScopedBindings1.ts] //// + +=== continueInLoopsWithCapturedBlockScopedBindings1.ts === +function foo() { +>foo : () => void +> : ^^^^^^^^^^ + + for (const i of [0, 1]) { +>i : number +> : ^^^^^^ +>[0, 1] : number[] +> : ^^^^^^^^ +>0 : 0 +> : ^ +>1 : 1 +> : ^ + + if (i === 0) { +>i === 0 : boolean +> : ^^^^^^^ +>i : number +> : ^^^^^^ +>0 : 0 +> : ^ + + continue; + } + + // Trigger non-simple-loop emit + (() => { +>(() => { return i; })() : number +> : ^^^^^^ +>(() => { return i; }) : () => number +> : ^^^^^^^^^^^^ +>() => { return i; } : () => number +> : ^^^^^^^^^^^^ + + return i; +>i : number +> : ^^^^^^ + + })(); + } +} diff --git a/tests/baselines/reference/convertClassExpressionToFunctionFromObjectProperty1(target=es2015).js b/tests/baselines/reference/convertClassExpressionToFunctionFromObjectProperty1(target=es2015).js new file mode 100644 index 0000000000000..9b4c268211123 --- /dev/null +++ b/tests/baselines/reference/convertClassExpressionToFunctionFromObjectProperty1(target=es2015).js @@ -0,0 +1,482 @@ +//// [tests/cases/compiler/convertClassExpressionToFunctionFromObjectProperty1.ts] //// + +//// [convertClassExpressionToFunctionFromObjectProperty1.ts] +const foo: any = {}; + +// properties +foo.x = class { + constructor () {} +} +foo.y = class { + constructor () {} +} + +// keywords +foo.break = class { + constructor () {} +} +foo.case = class { + constructor () {} +} +foo.catch = class { + constructor () {} +} +foo.class = class { + constructor () {} +} +foo.const = class { + constructor () {} +} +foo.continue = class { + constructor () {} +} +foo.debugger = class { + constructor () {} +} +foo.default = class { + constructor () {} +} +foo.delete = class { + constructor () {} +} +foo.do = class { + constructor () {} +} +foo.else = class { + constructor () {} +} +foo.enum = class { + constructor () {} +} +foo.export = class { + constructor () {} +} +foo.extends = class { + constructor () {} +} +foo.false = class { + constructor () {} +} +foo.finally = class { + constructor () {} +} +foo.for = class { + constructor () {} +} +foo.function = class { + constructor () {} +} +foo.if = class { + constructor () {} +} +foo.import = class { + constructor () {} +} +foo.in = class { + constructor () {} +} +foo.instanceof = class { + constructor () {} +} +foo.new = class { + constructor () {} +} +foo.null = class { + constructor () {} +} +foo.return = class { + constructor () {} +} +foo.super = class { + constructor () {} +} +foo.switch = class { + constructor () {} +} +foo.this = class { + constructor () {} +} +foo.throw = class { + constructor () {} +} +foo.true = class { + constructor () {} +} +foo.try = class { + constructor () {} +} +foo.typeof = class { + constructor () {} +} +foo.var = class { + constructor () {} +} +foo.void = class { + constructor () {} +} +foo.while = class { + constructor () {} +} +foo.with = class { + constructor () {} +} +foo.implements = class { + constructor () {} +} +foo.interface = class { + constructor () {} +} +foo.let = class { + constructor () {} +} +foo.package = class { + constructor () {} +} +foo.private = class { + constructor () {} +} +foo.protected = class { + constructor () {} +} +foo.public = class { + constructor () {} +} +foo.static = class { + constructor () {} +} +foo.yield = class { + constructor () {} +} +foo.abstract = class { + constructor () {} +} +foo.as = class { + constructor () {} +} +foo.asserts = class { + constructor () {} +} +foo.any = class { + constructor () {} +} +foo.async = class { + constructor () {} +} +foo.await = class { + constructor () {} +} +foo.boolean = class { + constructor () {} +} +foo.constructor = class { + constructor () {} +} +foo.declare = class { + constructor () {} +} +foo.get = class { + constructor () {} +} +foo.infer = class { + constructor () {} +} +foo.is = class { + constructor () {} +} +foo.keyof = class { + constructor () {} +} +foo.module = class { + constructor () {} +} +foo.namespace = class { + constructor () {} +} +foo.never = class { + constructor () {} +} +foo.readonly = class { + constructor () {} +} +foo.require = class { + constructor () {} +} +foo.number = class { + constructor () {} +} +foo.object = class { + constructor () {} +} +foo.set = class { + constructor () {} +} +foo.string = class { + constructor () {} +} +foo.symbol = class { + constructor () {} +} +foo.type = class { + constructor () {} +} +foo.undefined = class { + constructor () {} +} +foo.unique = class { + constructor () {} +} +foo.unknown = class { + constructor () {} +} +foo.from = class { + constructor () {} +} +foo.global = class { + constructor () {} +} +foo.bigint = class { + constructor () {} +} +foo.of = class { + constructor () {} +} + + +//// [convertClassExpressionToFunctionFromObjectProperty1.js] +const foo = {}; +// properties +foo.x = class { + constructor() { } +}; +foo.y = class { + constructor() { } +}; +// keywords +foo.break = class { + constructor() { } +}; +foo.case = class { + constructor() { } +}; +foo.catch = class { + constructor() { } +}; +foo.class = class { + constructor() { } +}; +foo.const = class { + constructor() { } +}; +foo.continue = class { + constructor() { } +}; +foo.debugger = class { + constructor() { } +}; +foo.default = class { + constructor() { } +}; +foo.delete = class { + constructor() { } +}; +foo.do = class { + constructor() { } +}; +foo.else = class { + constructor() { } +}; +foo.enum = class { + constructor() { } +}; +foo.export = class { + constructor() { } +}; +foo.extends = class { + constructor() { } +}; +foo.false = class { + constructor() { } +}; +foo.finally = class { + constructor() { } +}; +foo.for = class { + constructor() { } +}; +foo.function = class { + constructor() { } +}; +foo.if = class { + constructor() { } +}; +foo.import = class { + constructor() { } +}; +foo.in = class { + constructor() { } +}; +foo.instanceof = class { + constructor() { } +}; +foo.new = class { + constructor() { } +}; +foo.null = class { + constructor() { } +}; +foo.return = class { + constructor() { } +}; +foo.super = class { + constructor() { } +}; +foo.switch = class { + constructor() { } +}; +foo.this = class { + constructor() { } +}; +foo.throw = class { + constructor() { } +}; +foo.true = class { + constructor() { } +}; +foo.try = class { + constructor() { } +}; +foo.typeof = class { + constructor() { } +}; +foo.var = class { + constructor() { } +}; +foo.void = class { + constructor() { } +}; +foo.while = class { + constructor() { } +}; +foo.with = class { + constructor() { } +}; +foo.implements = class { + constructor() { } +}; +foo.interface = class { + constructor() { } +}; +foo.let = class { + constructor() { } +}; +foo.package = class { + constructor() { } +}; +foo.private = class { + constructor() { } +}; +foo.protected = class { + constructor() { } +}; +foo.public = class { + constructor() { } +}; +foo.static = class { + constructor() { } +}; +foo.yield = class { + constructor() { } +}; +foo.abstract = class { + constructor() { } +}; +foo.as = class { + constructor() { } +}; +foo.asserts = class { + constructor() { } +}; +foo.any = class { + constructor() { } +}; +foo.async = class { + constructor() { } +}; +foo.await = class { + constructor() { } +}; +foo.boolean = class { + constructor() { } +}; +foo.constructor = class { + constructor() { } +}; +foo.declare = class { + constructor() { } +}; +foo.get = class { + constructor() { } +}; +foo.infer = class { + constructor() { } +}; +foo.is = class { + constructor() { } +}; +foo.keyof = class { + constructor() { } +}; +foo.module = class { + constructor() { } +}; +foo.namespace = class { + constructor() { } +}; +foo.never = class { + constructor() { } +}; +foo.readonly = class { + constructor() { } +}; +foo.require = class { + constructor() { } +}; +foo.number = class { + constructor() { } +}; +foo.object = class { + constructor() { } +}; +foo.set = class { + constructor() { } +}; +foo.string = class { + constructor() { } +}; +foo.symbol = class { + constructor() { } +}; +foo.type = class { + constructor() { } +}; +foo.undefined = class { + constructor() { } +}; +foo.unique = class { + constructor() { } +}; +foo.unknown = class { + constructor() { } +}; +foo.from = class { + constructor() { } +}; +foo.global = class { + constructor() { } +}; +foo.bigint = class { + constructor() { } +}; +foo.of = class { + constructor() { } +}; diff --git a/tests/baselines/reference/convertClassExpressionToFunctionFromObjectProperty1.symbols b/tests/baselines/reference/convertClassExpressionToFunctionFromObjectProperty1(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/convertClassExpressionToFunctionFromObjectProperty1.symbols rename to tests/baselines/reference/convertClassExpressionToFunctionFromObjectProperty1(target=es2015).symbols diff --git a/tests/baselines/reference/convertClassExpressionToFunctionFromObjectProperty1.types b/tests/baselines/reference/convertClassExpressionToFunctionFromObjectProperty1(target=es2015).types similarity index 100% rename from tests/baselines/reference/convertClassExpressionToFunctionFromObjectProperty1.types rename to tests/baselines/reference/convertClassExpressionToFunctionFromObjectProperty1(target=es2015).types diff --git a/tests/baselines/reference/convertClassExpressionToFunctionFromObjectProperty1.js b/tests/baselines/reference/convertClassExpressionToFunctionFromObjectProperty1(target=es5).js similarity index 100% rename from tests/baselines/reference/convertClassExpressionToFunctionFromObjectProperty1.js rename to tests/baselines/reference/convertClassExpressionToFunctionFromObjectProperty1(target=es5).js diff --git a/tests/baselines/reference/convertClassExpressionToFunctionFromObjectProperty1(target=es5).symbols b/tests/baselines/reference/convertClassExpressionToFunctionFromObjectProperty1(target=es5).symbols new file mode 100644 index 0000000000000..bcc8d72ff3616 --- /dev/null +++ b/tests/baselines/reference/convertClassExpressionToFunctionFromObjectProperty1(target=es5).symbols @@ -0,0 +1,400 @@ +//// [tests/cases/compiler/convertClassExpressionToFunctionFromObjectProperty1.ts] //// + +=== convertClassExpressionToFunctionFromObjectProperty1.ts === +const foo: any = {}; +>foo : Symbol(foo, Decl(convertClassExpressionToFunctionFromObjectProperty1.ts, 0, 5)) + +// properties +foo.x = class { +>foo : Symbol(foo, Decl(convertClassExpressionToFunctionFromObjectProperty1.ts, 0, 5)) + + constructor () {} +} +foo.y = class { +>foo : Symbol(foo, Decl(convertClassExpressionToFunctionFromObjectProperty1.ts, 0, 5)) + + constructor () {} +} + +// keywords +foo.break = class { +>foo : Symbol(foo, Decl(convertClassExpressionToFunctionFromObjectProperty1.ts, 0, 5)) + + constructor () {} +} +foo.case = class { +>foo : Symbol(foo, Decl(convertClassExpressionToFunctionFromObjectProperty1.ts, 0, 5)) + + constructor () {} +} +foo.catch = class { +>foo : Symbol(foo, Decl(convertClassExpressionToFunctionFromObjectProperty1.ts, 0, 5)) + + constructor () {} +} +foo.class = class { +>foo : Symbol(foo, Decl(convertClassExpressionToFunctionFromObjectProperty1.ts, 0, 5)) + + constructor () {} +} +foo.const = class { +>foo : Symbol(foo, Decl(convertClassExpressionToFunctionFromObjectProperty1.ts, 0, 5)) + + constructor () {} +} +foo.continue = class { +>foo : Symbol(foo, Decl(convertClassExpressionToFunctionFromObjectProperty1.ts, 0, 5)) + + constructor () {} +} +foo.debugger = class { +>foo : Symbol(foo, Decl(convertClassExpressionToFunctionFromObjectProperty1.ts, 0, 5)) + + constructor () {} +} +foo.default = class { +>foo : Symbol(foo, Decl(convertClassExpressionToFunctionFromObjectProperty1.ts, 0, 5)) + + constructor () {} +} +foo.delete = class { +>foo : Symbol(foo, Decl(convertClassExpressionToFunctionFromObjectProperty1.ts, 0, 5)) + + constructor () {} +} +foo.do = class { +>foo : Symbol(foo, Decl(convertClassExpressionToFunctionFromObjectProperty1.ts, 0, 5)) + + constructor () {} +} +foo.else = class { +>foo : Symbol(foo, Decl(convertClassExpressionToFunctionFromObjectProperty1.ts, 0, 5)) + + constructor () {} +} +foo.enum = class { +>foo : Symbol(foo, Decl(convertClassExpressionToFunctionFromObjectProperty1.ts, 0, 5)) + + constructor () {} +} +foo.export = class { +>foo : Symbol(foo, Decl(convertClassExpressionToFunctionFromObjectProperty1.ts, 0, 5)) + + constructor () {} +} +foo.extends = class { +>foo : Symbol(foo, Decl(convertClassExpressionToFunctionFromObjectProperty1.ts, 0, 5)) + + constructor () {} +} +foo.false = class { +>foo : Symbol(foo, Decl(convertClassExpressionToFunctionFromObjectProperty1.ts, 0, 5)) + + constructor () {} +} +foo.finally = class { +>foo : Symbol(foo, Decl(convertClassExpressionToFunctionFromObjectProperty1.ts, 0, 5)) + + constructor () {} +} +foo.for = class { +>foo : Symbol(foo, Decl(convertClassExpressionToFunctionFromObjectProperty1.ts, 0, 5)) + + constructor () {} +} +foo.function = class { +>foo : Symbol(foo, Decl(convertClassExpressionToFunctionFromObjectProperty1.ts, 0, 5)) + + constructor () {} +} +foo.if = class { +>foo : Symbol(foo, Decl(convertClassExpressionToFunctionFromObjectProperty1.ts, 0, 5)) + + constructor () {} +} +foo.import = class { +>foo : Symbol(foo, Decl(convertClassExpressionToFunctionFromObjectProperty1.ts, 0, 5)) + + constructor () {} +} +foo.in = class { +>foo : Symbol(foo, Decl(convertClassExpressionToFunctionFromObjectProperty1.ts, 0, 5)) + + constructor () {} +} +foo.instanceof = class { +>foo : Symbol(foo, Decl(convertClassExpressionToFunctionFromObjectProperty1.ts, 0, 5)) + + constructor () {} +} +foo.new = class { +>foo : Symbol(foo, Decl(convertClassExpressionToFunctionFromObjectProperty1.ts, 0, 5)) + + constructor () {} +} +foo.null = class { +>foo : Symbol(foo, Decl(convertClassExpressionToFunctionFromObjectProperty1.ts, 0, 5)) + + constructor () {} +} +foo.return = class { +>foo : Symbol(foo, Decl(convertClassExpressionToFunctionFromObjectProperty1.ts, 0, 5)) + + constructor () {} +} +foo.super = class { +>foo : Symbol(foo, Decl(convertClassExpressionToFunctionFromObjectProperty1.ts, 0, 5)) + + constructor () {} +} +foo.switch = class { +>foo : Symbol(foo, Decl(convertClassExpressionToFunctionFromObjectProperty1.ts, 0, 5)) + + constructor () {} +} +foo.this = class { +>foo : Symbol(foo, Decl(convertClassExpressionToFunctionFromObjectProperty1.ts, 0, 5)) + + constructor () {} +} +foo.throw = class { +>foo : Symbol(foo, Decl(convertClassExpressionToFunctionFromObjectProperty1.ts, 0, 5)) + + constructor () {} +} +foo.true = class { +>foo : Symbol(foo, Decl(convertClassExpressionToFunctionFromObjectProperty1.ts, 0, 5)) + + constructor () {} +} +foo.try = class { +>foo : Symbol(foo, Decl(convertClassExpressionToFunctionFromObjectProperty1.ts, 0, 5)) + + constructor () {} +} +foo.typeof = class { +>foo : Symbol(foo, Decl(convertClassExpressionToFunctionFromObjectProperty1.ts, 0, 5)) + + constructor () {} +} +foo.var = class { +>foo : Symbol(foo, Decl(convertClassExpressionToFunctionFromObjectProperty1.ts, 0, 5)) + + constructor () {} +} +foo.void = class { +>foo : Symbol(foo, Decl(convertClassExpressionToFunctionFromObjectProperty1.ts, 0, 5)) + + constructor () {} +} +foo.while = class { +>foo : Symbol(foo, Decl(convertClassExpressionToFunctionFromObjectProperty1.ts, 0, 5)) + + constructor () {} +} +foo.with = class { +>foo : Symbol(foo, Decl(convertClassExpressionToFunctionFromObjectProperty1.ts, 0, 5)) + + constructor () {} +} +foo.implements = class { +>foo : Symbol(foo, Decl(convertClassExpressionToFunctionFromObjectProperty1.ts, 0, 5)) + + constructor () {} +} +foo.interface = class { +>foo : Symbol(foo, Decl(convertClassExpressionToFunctionFromObjectProperty1.ts, 0, 5)) + + constructor () {} +} +foo.let = class { +>foo : Symbol(foo, Decl(convertClassExpressionToFunctionFromObjectProperty1.ts, 0, 5)) + + constructor () {} +} +foo.package = class { +>foo : Symbol(foo, Decl(convertClassExpressionToFunctionFromObjectProperty1.ts, 0, 5)) + + constructor () {} +} +foo.private = class { +>foo : Symbol(foo, Decl(convertClassExpressionToFunctionFromObjectProperty1.ts, 0, 5)) + + constructor () {} +} +foo.protected = class { +>foo : Symbol(foo, Decl(convertClassExpressionToFunctionFromObjectProperty1.ts, 0, 5)) + + constructor () {} +} +foo.public = class { +>foo : Symbol(foo, Decl(convertClassExpressionToFunctionFromObjectProperty1.ts, 0, 5)) + + constructor () {} +} +foo.static = class { +>foo : Symbol(foo, Decl(convertClassExpressionToFunctionFromObjectProperty1.ts, 0, 5)) + + constructor () {} +} +foo.yield = class { +>foo : Symbol(foo, Decl(convertClassExpressionToFunctionFromObjectProperty1.ts, 0, 5)) + + constructor () {} +} +foo.abstract = class { +>foo : Symbol(foo, Decl(convertClassExpressionToFunctionFromObjectProperty1.ts, 0, 5)) + + constructor () {} +} +foo.as = class { +>foo : Symbol(foo, Decl(convertClassExpressionToFunctionFromObjectProperty1.ts, 0, 5)) + + constructor () {} +} +foo.asserts = class { +>foo : Symbol(foo, Decl(convertClassExpressionToFunctionFromObjectProperty1.ts, 0, 5)) + + constructor () {} +} +foo.any = class { +>foo : Symbol(foo, Decl(convertClassExpressionToFunctionFromObjectProperty1.ts, 0, 5)) + + constructor () {} +} +foo.async = class { +>foo : Symbol(foo, Decl(convertClassExpressionToFunctionFromObjectProperty1.ts, 0, 5)) + + constructor () {} +} +foo.await = class { +>foo : Symbol(foo, Decl(convertClassExpressionToFunctionFromObjectProperty1.ts, 0, 5)) + + constructor () {} +} +foo.boolean = class { +>foo : Symbol(foo, Decl(convertClassExpressionToFunctionFromObjectProperty1.ts, 0, 5)) + + constructor () {} +} +foo.constructor = class { +>foo : Symbol(foo, Decl(convertClassExpressionToFunctionFromObjectProperty1.ts, 0, 5)) + + constructor () {} +} +foo.declare = class { +>foo : Symbol(foo, Decl(convertClassExpressionToFunctionFromObjectProperty1.ts, 0, 5)) + + constructor () {} +} +foo.get = class { +>foo : Symbol(foo, Decl(convertClassExpressionToFunctionFromObjectProperty1.ts, 0, 5)) + + constructor () {} +} +foo.infer = class { +>foo : Symbol(foo, Decl(convertClassExpressionToFunctionFromObjectProperty1.ts, 0, 5)) + + constructor () {} +} +foo.is = class { +>foo : Symbol(foo, Decl(convertClassExpressionToFunctionFromObjectProperty1.ts, 0, 5)) + + constructor () {} +} +foo.keyof = class { +>foo : Symbol(foo, Decl(convertClassExpressionToFunctionFromObjectProperty1.ts, 0, 5)) + + constructor () {} +} +foo.module = class { +>foo : Symbol(foo, Decl(convertClassExpressionToFunctionFromObjectProperty1.ts, 0, 5)) + + constructor () {} +} +foo.namespace = class { +>foo : Symbol(foo, Decl(convertClassExpressionToFunctionFromObjectProperty1.ts, 0, 5)) + + constructor () {} +} +foo.never = class { +>foo : Symbol(foo, Decl(convertClassExpressionToFunctionFromObjectProperty1.ts, 0, 5)) + + constructor () {} +} +foo.readonly = class { +>foo : Symbol(foo, Decl(convertClassExpressionToFunctionFromObjectProperty1.ts, 0, 5)) + + constructor () {} +} +foo.require = class { +>foo : Symbol(foo, Decl(convertClassExpressionToFunctionFromObjectProperty1.ts, 0, 5)) + + constructor () {} +} +foo.number = class { +>foo : Symbol(foo, Decl(convertClassExpressionToFunctionFromObjectProperty1.ts, 0, 5)) + + constructor () {} +} +foo.object = class { +>foo : Symbol(foo, Decl(convertClassExpressionToFunctionFromObjectProperty1.ts, 0, 5)) + + constructor () {} +} +foo.set = class { +>foo : Symbol(foo, Decl(convertClassExpressionToFunctionFromObjectProperty1.ts, 0, 5)) + + constructor () {} +} +foo.string = class { +>foo : Symbol(foo, Decl(convertClassExpressionToFunctionFromObjectProperty1.ts, 0, 5)) + + constructor () {} +} +foo.symbol = class { +>foo : Symbol(foo, Decl(convertClassExpressionToFunctionFromObjectProperty1.ts, 0, 5)) + + constructor () {} +} +foo.type = class { +>foo : Symbol(foo, Decl(convertClassExpressionToFunctionFromObjectProperty1.ts, 0, 5)) + + constructor () {} +} +foo.undefined = class { +>foo : Symbol(foo, Decl(convertClassExpressionToFunctionFromObjectProperty1.ts, 0, 5)) + + constructor () {} +} +foo.unique = class { +>foo : Symbol(foo, Decl(convertClassExpressionToFunctionFromObjectProperty1.ts, 0, 5)) + + constructor () {} +} +foo.unknown = class { +>foo : Symbol(foo, Decl(convertClassExpressionToFunctionFromObjectProperty1.ts, 0, 5)) + + constructor () {} +} +foo.from = class { +>foo : Symbol(foo, Decl(convertClassExpressionToFunctionFromObjectProperty1.ts, 0, 5)) + + constructor () {} +} +foo.global = class { +>foo : Symbol(foo, Decl(convertClassExpressionToFunctionFromObjectProperty1.ts, 0, 5)) + + constructor () {} +} +foo.bigint = class { +>foo : Symbol(foo, Decl(convertClassExpressionToFunctionFromObjectProperty1.ts, 0, 5)) + + constructor () {} +} +foo.of = class { +>foo : Symbol(foo, Decl(convertClassExpressionToFunctionFromObjectProperty1.ts, 0, 5)) + + constructor () {} +} + diff --git a/tests/baselines/reference/convertClassExpressionToFunctionFromObjectProperty1(target=es5).types b/tests/baselines/reference/convertClassExpressionToFunctionFromObjectProperty1(target=es5).types new file mode 100644 index 0000000000000..808da6a78a79c --- /dev/null +++ b/tests/baselines/reference/convertClassExpressionToFunctionFromObjectProperty1(target=es5).types @@ -0,0 +1,1026 @@ +//// [tests/cases/compiler/convertClassExpressionToFunctionFromObjectProperty1.ts] //// + +=== convertClassExpressionToFunctionFromObjectProperty1.ts === +const foo: any = {}; +>foo : any +>{} : {} +> : ^^ + +// properties +foo.x = class { +>foo.x = class { constructor () {}} : typeof x +> : ^^^^^^^^ +>foo.x : any +>foo : any +> : ^^^ +>x : any +> : ^^^ +>class { constructor () {}} : typeof x +> : ^^^^^^^^ + + constructor () {} +} +foo.y = class { +>foo.y = class { constructor () {}} : typeof y +> : ^^^^^^^^ +>foo.y : any +>foo : any +> : ^^^ +>y : any +> : ^^^ +>class { constructor () {}} : typeof y +> : ^^^^^^^^ + + constructor () {} +} + +// keywords +foo.break = class { +>foo.break = class { constructor () {}} : typeof break +> : ^^^^^^^^^^^^ +>foo.break : any +>foo : any +> : ^^^ +>break : any +> : ^^^ +>class { constructor () {}} : typeof break +> : ^^^^^^^^^^^^ + + constructor () {} +} +foo.case = class { +>foo.case = class { constructor () {}} : typeof case +> : ^^^^^^^^^^^ +>foo.case : any +>foo : any +> : ^^^ +>case : any +> : ^^^ +>class { constructor () {}} : typeof case +> : ^^^^^^^^^^^ + + constructor () {} +} +foo.catch = class { +>foo.catch = class { constructor () {}} : typeof catch +> : ^^^^^^^^^^^^ +>foo.catch : any +>foo : any +> : ^^^ +>catch : any +> : ^^^ +>class { constructor () {}} : typeof catch +> : ^^^^^^^^^^^^ + + constructor () {} +} +foo.class = class { +>foo.class = class { constructor () {}} : typeof class +> : ^^^^^^^^^^^^ +>foo.class : any +>foo : any +> : ^^^ +>class : any +> : ^^^ +>class { constructor () {}} : typeof class +> : ^^^^^^^^^^^^ + + constructor () {} +} +foo.const = class { +>foo.const = class { constructor () {}} : typeof const +> : ^^^^^^^^^^^^ +>foo.const : any +>foo : any +> : ^^^ +>const : any +> : ^^^ +>class { constructor () {}} : typeof const +> : ^^^^^^^^^^^^ + + constructor () {} +} +foo.continue = class { +>foo.continue = class { constructor () {}} : typeof continue +> : ^^^^^^^^^^^^^^^ +>foo.continue : any +>foo : any +> : ^^^ +>continue : any +> : ^^^ +>class { constructor () {}} : typeof continue +> : ^^^^^^^^^^^^^^^ + + constructor () {} +} +foo.debugger = class { +>foo.debugger = class { constructor () {}} : typeof debugger +> : ^^^^^^^^^^^^^^^ +>foo.debugger : any +>foo : any +> : ^^^ +>debugger : any +> : ^^^ +>class { constructor () {}} : typeof debugger +> : ^^^^^^^^^^^^^^^ + + constructor () {} +} +foo.default = class { +>foo.default = class { constructor () {}} : typeof default +> : ^^^^^^^^^^^^^^ +>foo.default : any +>foo : any +> : ^^^ +>default : any +> : ^^^ +>class { constructor () {}} : typeof default +> : ^^^^^^^^^^^^^^ + + constructor () {} +} +foo.delete = class { +>foo.delete = class { constructor () {}} : typeof delete +> : ^^^^^^^^^^^^^ +>foo.delete : any +>foo : any +> : ^^^ +>delete : any +> : ^^^ +>class { constructor () {}} : typeof delete +> : ^^^^^^^^^^^^^ + + constructor () {} +} +foo.do = class { +>foo.do = class { constructor () {}} : typeof do +> : ^^^^^^^^^ +>foo.do : any +>foo : any +> : ^^^ +>do : any +> : ^^^ +>class { constructor () {}} : typeof do +> : ^^^^^^^^^ + + constructor () {} +} +foo.else = class { +>foo.else = class { constructor () {}} : typeof else +> : ^^^^^^^^^^^ +>foo.else : any +>foo : any +> : ^^^ +>else : any +> : ^^^ +>class { constructor () {}} : typeof else +> : ^^^^^^^^^^^ + + constructor () {} +} +foo.enum = class { +>foo.enum = class { constructor () {}} : typeof enum +> : ^^^^^^^^^^^ +>foo.enum : any +>foo : any +> : ^^^ +>enum : any +> : ^^^ +>class { constructor () {}} : typeof enum +> : ^^^^^^^^^^^ + + constructor () {} +} +foo.export = class { +>foo.export = class { constructor () {}} : typeof export +> : ^^^^^^^^^^^^^ +>foo.export : any +>foo : any +> : ^^^ +>export : any +> : ^^^ +>class { constructor () {}} : typeof export +> : ^^^^^^^^^^^^^ + + constructor () {} +} +foo.extends = class { +>foo.extends = class { constructor () {}} : typeof extends +> : ^^^^^^^^^^^^^^ +>foo.extends : any +>foo : any +> : ^^^ +>extends : any +> : ^^^ +>class { constructor () {}} : typeof extends +> : ^^^^^^^^^^^^^^ + + constructor () {} +} +foo.false = class { +>foo.false = class { constructor () {}} : typeof false +> : ^^^^^^^^^^^^ +>foo.false : any +>foo : any +> : ^^^ +>false : any +> : ^^^ +>class { constructor () {}} : typeof false +> : ^^^^^^^^^^^^ + + constructor () {} +} +foo.finally = class { +>foo.finally = class { constructor () {}} : typeof finally +> : ^^^^^^^^^^^^^^ +>foo.finally : any +>foo : any +> : ^^^ +>finally : any +> : ^^^ +>class { constructor () {}} : typeof finally +> : ^^^^^^^^^^^^^^ + + constructor () {} +} +foo.for = class { +>foo.for = class { constructor () {}} : typeof for +> : ^^^^^^^^^^ +>foo.for : any +>foo : any +> : ^^^ +>for : any +> : ^^^ +>class { constructor () {}} : typeof for +> : ^^^^^^^^^^ + + constructor () {} +} +foo.function = class { +>foo.function = class { constructor () {}} : typeof function +> : ^^^^^^^^^^^^^^^ +>foo.function : any +>foo : any +> : ^^^ +>function : any +> : ^^^ +>class { constructor () {}} : typeof function +> : ^^^^^^^^^^^^^^^ + + constructor () {} +} +foo.if = class { +>foo.if = class { constructor () {}} : typeof if +> : ^^^^^^^^^ +>foo.if : any +>foo : any +> : ^^^ +>if : any +> : ^^^ +>class { constructor () {}} : typeof if +> : ^^^^^^^^^ + + constructor () {} +} +foo.import = class { +>foo.import = class { constructor () {}} : typeof import +> : ^^^^^^^^^^^^^ +>foo.import : any +>foo : any +> : ^^^ +>import : any +> : ^^^ +>class { constructor () {}} : typeof import +> : ^^^^^^^^^^^^^ + + constructor () {} +} +foo.in = class { +>foo.in = class { constructor () {}} : typeof in +> : ^^^^^^^^^ +>foo.in : any +>foo : any +> : ^^^ +>in : any +> : ^^^ +>class { constructor () {}} : typeof in +> : ^^^^^^^^^ + + constructor () {} +} +foo.instanceof = class { +>foo.instanceof = class { constructor () {}} : typeof instanceof +> : ^^^^^^^^^^^^^^^^^ +>foo.instanceof : any +>foo : any +> : ^^^ +>instanceof : any +> : ^^^ +>class { constructor () {}} : typeof instanceof +> : ^^^^^^^^^^^^^^^^^ + + constructor () {} +} +foo.new = class { +>foo.new = class { constructor () {}} : typeof new +> : ^^^^^^^^^^ +>foo.new : any +>foo : any +> : ^^^ +>new : any +> : ^^^ +>class { constructor () {}} : typeof new +> : ^^^^^^^^^^ + + constructor () {} +} +foo.null = class { +>foo.null = class { constructor () {}} : typeof null +> : ^^^^^^^^^^^ +>foo.null : any +>foo : any +> : ^^^ +>null : any +> : ^^^ +>class { constructor () {}} : typeof null +> : ^^^^^^^^^^^ + + constructor () {} +} +foo.return = class { +>foo.return = class { constructor () {}} : typeof return +> : ^^^^^^^^^^^^^ +>foo.return : any +>foo : any +> : ^^^ +>return : any +> : ^^^ +>class { constructor () {}} : typeof return +> : ^^^^^^^^^^^^^ + + constructor () {} +} +foo.super = class { +>foo.super = class { constructor () {}} : typeof super +> : ^^^^^^^^^^^^ +>foo.super : any +>foo : any +> : ^^^ +>super : any +> : ^^^ +>class { constructor () {}} : typeof super +> : ^^^^^^^^^^^^ + + constructor () {} +} +foo.switch = class { +>foo.switch = class { constructor () {}} : typeof switch +> : ^^^^^^^^^^^^^ +>foo.switch : any +>foo : any +> : ^^^ +>switch : any +> : ^^^ +>class { constructor () {}} : typeof switch +> : ^^^^^^^^^^^^^ + + constructor () {} +} +foo.this = class { +>foo.this = class { constructor () {}} : typeof this +> : ^^^^^^^^^^^ +>foo.this : any +>foo : any +> : ^^^ +>this : any +> : ^^^ +>class { constructor () {}} : typeof this +> : ^^^^^^^^^^^ + + constructor () {} +} +foo.throw = class { +>foo.throw = class { constructor () {}} : typeof throw +> : ^^^^^^^^^^^^ +>foo.throw : any +>foo : any +> : ^^^ +>throw : any +> : ^^^ +>class { constructor () {}} : typeof throw +> : ^^^^^^^^^^^^ + + constructor () {} +} +foo.true = class { +>foo.true = class { constructor () {}} : typeof true +> : ^^^^^^^^^^^ +>foo.true : any +>foo : any +> : ^^^ +>true : any +> : ^^^ +>class { constructor () {}} : typeof true +> : ^^^^^^^^^^^ + + constructor () {} +} +foo.try = class { +>foo.try = class { constructor () {}} : typeof try +> : ^^^^^^^^^^ +>foo.try : any +>foo : any +> : ^^^ +>try : any +> : ^^^ +>class { constructor () {}} : typeof try +> : ^^^^^^^^^^ + + constructor () {} +} +foo.typeof = class { +>foo.typeof = class { constructor () {}} : typeof typeof +> : ^^^^^^^^^^^^^ +>foo.typeof : any +>foo : any +> : ^^^ +>typeof : any +> : ^^^ +>class { constructor () {}} : typeof typeof +> : ^^^^^^^^^^^^^ + + constructor () {} +} +foo.var = class { +>foo.var = class { constructor () {}} : typeof var +> : ^^^^^^^^^^ +>foo.var : any +>foo : any +> : ^^^ +>var : any +> : ^^^ +>class { constructor () {}} : typeof var +> : ^^^^^^^^^^ + + constructor () {} +} +foo.void = class { +>foo.void = class { constructor () {}} : typeof void +> : ^^^^^^^^^^^ +>foo.void : any +>foo : any +> : ^^^ +>void : any +> : ^^^ +>class { constructor () {}} : typeof void +> : ^^^^^^^^^^^ + + constructor () {} +} +foo.while = class { +>foo.while = class { constructor () {}} : typeof while +> : ^^^^^^^^^^^^ +>foo.while : any +>foo : any +> : ^^^ +>while : any +> : ^^^ +>class { constructor () {}} : typeof while +> : ^^^^^^^^^^^^ + + constructor () {} +} +foo.with = class { +>foo.with = class { constructor () {}} : typeof with +> : ^^^^^^^^^^^ +>foo.with : any +>foo : any +> : ^^^ +>with : any +> : ^^^ +>class { constructor () {}} : typeof with +> : ^^^^^^^^^^^ + + constructor () {} +} +foo.implements = class { +>foo.implements = class { constructor () {}} : typeof implements +> : ^^^^^^^^^^^^^^^^^ +>foo.implements : any +>foo : any +> : ^^^ +>implements : any +> : ^^^ +>class { constructor () {}} : typeof implements +> : ^^^^^^^^^^^^^^^^^ + + constructor () {} +} +foo.interface = class { +>foo.interface = class { constructor () {}} : typeof interface +> : ^^^^^^^^^^^^^^^^ +>foo.interface : any +>foo : any +> : ^^^ +>interface : any +> : ^^^ +>class { constructor () {}} : typeof interface +> : ^^^^^^^^^^^^^^^^ + + constructor () {} +} +foo.let = class { +>foo.let = class { constructor () {}} : typeof let +> : ^^^^^^^^^^ +>foo.let : any +>foo : any +> : ^^^ +>let : any +> : ^^^ +>class { constructor () {}} : typeof let +> : ^^^^^^^^^^ + + constructor () {} +} +foo.package = class { +>foo.package = class { constructor () {}} : typeof package +> : ^^^^^^^^^^^^^^ +>foo.package : any +>foo : any +> : ^^^ +>package : any +> : ^^^ +>class { constructor () {}} : typeof package +> : ^^^^^^^^^^^^^^ + + constructor () {} +} +foo.private = class { +>foo.private = class { constructor () {}} : typeof private +> : ^^^^^^^^^^^^^^ +>foo.private : any +>foo : any +> : ^^^ +>private : any +> : ^^^ +>class { constructor () {}} : typeof private +> : ^^^^^^^^^^^^^^ + + constructor () {} +} +foo.protected = class { +>foo.protected = class { constructor () {}} : typeof protected +> : ^^^^^^^^^^^^^^^^ +>foo.protected : any +>foo : any +> : ^^^ +>protected : any +> : ^^^ +>class { constructor () {}} : typeof protected +> : ^^^^^^^^^^^^^^^^ + + constructor () {} +} +foo.public = class { +>foo.public = class { constructor () {}} : typeof public +> : ^^^^^^^^^^^^^ +>foo.public : any +>foo : any +> : ^^^ +>public : any +> : ^^^ +>class { constructor () {}} : typeof public +> : ^^^^^^^^^^^^^ + + constructor () {} +} +foo.static = class { +>foo.static = class { constructor () {}} : typeof static +> : ^^^^^^^^^^^^^ +>foo.static : any +>foo : any +> : ^^^ +>static : any +> : ^^^ +>class { constructor () {}} : typeof static +> : ^^^^^^^^^^^^^ + + constructor () {} +} +foo.yield = class { +>foo.yield = class { constructor () {}} : typeof yield +> : ^^^^^^^^^^^^ +>foo.yield : any +>foo : any +> : ^^^ +>yield : any +> : ^^^ +>class { constructor () {}} : typeof yield +> : ^^^^^^^^^^^^ + + constructor () {} +} +foo.abstract = class { +>foo.abstract = class { constructor () {}} : typeof abstract +> : ^^^^^^^^^^^^^^^ +>foo.abstract : any +>foo : any +> : ^^^ +>abstract : any +> : ^^^ +>class { constructor () {}} : typeof abstract +> : ^^^^^^^^^^^^^^^ + + constructor () {} +} +foo.as = class { +>foo.as = class { constructor () {}} : typeof as +> : ^^^^^^^^^ +>foo.as : any +>foo : any +> : ^^^ +>as : any +> : ^^^ +>class { constructor () {}} : typeof as +> : ^^^^^^^^^ + + constructor () {} +} +foo.asserts = class { +>foo.asserts = class { constructor () {}} : typeof asserts +> : ^^^^^^^^^^^^^^ +>foo.asserts : any +>foo : any +> : ^^^ +>asserts : any +> : ^^^ +>class { constructor () {}} : typeof asserts +> : ^^^^^^^^^^^^^^ + + constructor () {} +} +foo.any = class { +>foo.any = class { constructor () {}} : typeof any +> : ^^^^^^^^^^ +>foo.any : any +>foo : any +> : ^^^ +>any : any +> : ^^^ +>class { constructor () {}} : typeof any +> : ^^^^^^^^^^ + + constructor () {} +} +foo.async = class { +>foo.async = class { constructor () {}} : typeof async +> : ^^^^^^^^^^^^ +>foo.async : any +>foo : any +> : ^^^ +>async : any +> : ^^^ +>class { constructor () {}} : typeof async +> : ^^^^^^^^^^^^ + + constructor () {} +} +foo.await = class { +>foo.await = class { constructor () {}} : typeof await +> : ^^^^^^^^^^^^ +>foo.await : any +>foo : any +> : ^^^ +>await : any +> : ^^^ +>class { constructor () {}} : typeof await +> : ^^^^^^^^^^^^ + + constructor () {} +} +foo.boolean = class { +>foo.boolean = class { constructor () {}} : typeof boolean +> : ^^^^^^^^^^^^^^ +>foo.boolean : any +>foo : any +> : ^^^ +>boolean : any +> : ^^^ +>class { constructor () {}} : typeof boolean +> : ^^^^^^^^^^^^^^ + + constructor () {} +} +foo.constructor = class { +>foo.constructor = class { constructor () {}} : typeof constructor +> : ^^^^^^^^^^^^^^^^^^ +>foo.constructor : any +>foo : any +> : ^^^ +>constructor : any +> : ^^^ +>class { constructor () {}} : typeof constructor +> : ^^^^^^^^^^^^^^^^^^ + + constructor () {} +} +foo.declare = class { +>foo.declare = class { constructor () {}} : typeof declare +> : ^^^^^^^^^^^^^^ +>foo.declare : any +>foo : any +> : ^^^ +>declare : any +> : ^^^ +>class { constructor () {}} : typeof declare +> : ^^^^^^^^^^^^^^ + + constructor () {} +} +foo.get = class { +>foo.get = class { constructor () {}} : typeof get +> : ^^^^^^^^^^ +>foo.get : any +>foo : any +> : ^^^ +>get : any +> : ^^^ +>class { constructor () {}} : typeof get +> : ^^^^^^^^^^ + + constructor () {} +} +foo.infer = class { +>foo.infer = class { constructor () {}} : typeof infer +> : ^^^^^^^^^^^^ +>foo.infer : any +>foo : any +> : ^^^ +>infer : any +> : ^^^ +>class { constructor () {}} : typeof infer +> : ^^^^^^^^^^^^ + + constructor () {} +} +foo.is = class { +>foo.is = class { constructor () {}} : typeof is +> : ^^^^^^^^^ +>foo.is : any +>foo : any +> : ^^^ +>is : any +> : ^^^ +>class { constructor () {}} : typeof is +> : ^^^^^^^^^ + + constructor () {} +} +foo.keyof = class { +>foo.keyof = class { constructor () {}} : typeof keyof +> : ^^^^^^^^^^^^ +>foo.keyof : any +>foo : any +> : ^^^ +>keyof : any +> : ^^^ +>class { constructor () {}} : typeof keyof +> : ^^^^^^^^^^^^ + + constructor () {} +} +foo.module = class { +>foo.module = class { constructor () {}} : typeof module +> : ^^^^^^^^^^^^^ +>foo.module : any +>foo : any +> : ^^^ +>module : any +> : ^^^ +>class { constructor () {}} : typeof module +> : ^^^^^^^^^^^^^ + + constructor () {} +} +foo.namespace = class { +>foo.namespace = class { constructor () {}} : typeof namespace +> : ^^^^^^^^^^^^^^^^ +>foo.namespace : any +>foo : any +> : ^^^ +>namespace : any +> : ^^^ +>class { constructor () {}} : typeof namespace +> : ^^^^^^^^^^^^^^^^ + + constructor () {} +} +foo.never = class { +>foo.never = class { constructor () {}} : typeof never +> : ^^^^^^^^^^^^ +>foo.never : any +>foo : any +> : ^^^ +>never : any +> : ^^^ +>class { constructor () {}} : typeof never +> : ^^^^^^^^^^^^ + + constructor () {} +} +foo.readonly = class { +>foo.readonly = class { constructor () {}} : typeof readonly +> : ^^^^^^^^^^^^^^^ +>foo.readonly : any +>foo : any +> : ^^^ +>readonly : any +> : ^^^ +>class { constructor () {}} : typeof readonly +> : ^^^^^^^^^^^^^^^ + + constructor () {} +} +foo.require = class { +>foo.require = class { constructor () {}} : typeof require +> : ^^^^^^^^^^^^^^ +>foo.require : any +>foo : any +> : ^^^ +>require : any +> : ^^^ +>class { constructor () {}} : typeof require +> : ^^^^^^^^^^^^^^ + + constructor () {} +} +foo.number = class { +>foo.number = class { constructor () {}} : typeof number +> : ^^^^^^^^^^^^^ +>foo.number : any +>foo : any +> : ^^^ +>number : any +> : ^^^ +>class { constructor () {}} : typeof number +> : ^^^^^^^^^^^^^ + + constructor () {} +} +foo.object = class { +>foo.object = class { constructor () {}} : typeof object +> : ^^^^^^^^^^^^^ +>foo.object : any +>foo : any +> : ^^^ +>object : any +> : ^^^ +>class { constructor () {}} : typeof object +> : ^^^^^^^^^^^^^ + + constructor () {} +} +foo.set = class { +>foo.set = class { constructor () {}} : typeof set +> : ^^^^^^^^^^ +>foo.set : any +>foo : any +> : ^^^ +>set : any +> : ^^^ +>class { constructor () {}} : typeof set +> : ^^^^^^^^^^ + + constructor () {} +} +foo.string = class { +>foo.string = class { constructor () {}} : typeof string +> : ^^^^^^^^^^^^^ +>foo.string : any +>foo : any +> : ^^^ +>string : any +> : ^^^ +>class { constructor () {}} : typeof string +> : ^^^^^^^^^^^^^ + + constructor () {} +} +foo.symbol = class { +>foo.symbol = class { constructor () {}} : typeof symbol +> : ^^^^^^^^^^^^^ +>foo.symbol : any +>foo : any +> : ^^^ +>symbol : any +> : ^^^ +>class { constructor () {}} : typeof symbol +> : ^^^^^^^^^^^^^ + + constructor () {} +} +foo.type = class { +>foo.type = class { constructor () {}} : typeof type +> : ^^^^^^^^^^^ +>foo.type : any +>foo : any +> : ^^^ +>type : any +> : ^^^ +>class { constructor () {}} : typeof type +> : ^^^^^^^^^^^ + + constructor () {} +} +foo.undefined = class { +>foo.undefined = class { constructor () {}} : typeof undefined +> : ^^^^^^^^^^^^^^^^ +>foo.undefined : any +>foo : any +> : ^^^ +>undefined : any +> : ^^^ +>class { constructor () {}} : typeof undefined +> : ^^^^^^^^^^^^^^^^ + + constructor () {} +} +foo.unique = class { +>foo.unique = class { constructor () {}} : typeof unique +> : ^^^^^^^^^^^^^ +>foo.unique : any +>foo : any +> : ^^^ +>unique : any +> : ^^^ +>class { constructor () {}} : typeof unique +> : ^^^^^^^^^^^^^ + + constructor () {} +} +foo.unknown = class { +>foo.unknown = class { constructor () {}} : typeof unknown +> : ^^^^^^^^^^^^^^ +>foo.unknown : any +>foo : any +> : ^^^ +>unknown : any +> : ^^^ +>class { constructor () {}} : typeof unknown +> : ^^^^^^^^^^^^^^ + + constructor () {} +} +foo.from = class { +>foo.from = class { constructor () {}} : typeof from +> : ^^^^^^^^^^^ +>foo.from : any +>foo : any +> : ^^^ +>from : any +> : ^^^ +>class { constructor () {}} : typeof from +> : ^^^^^^^^^^^ + + constructor () {} +} +foo.global = class { +>foo.global = class { constructor () {}} : typeof global +> : ^^^^^^^^^^^^^ +>foo.global : any +>foo : any +> : ^^^ +>global : any +> : ^^^ +>class { constructor () {}} : typeof global +> : ^^^^^^^^^^^^^ + + constructor () {} +} +foo.bigint = class { +>foo.bigint = class { constructor () {}} : typeof bigint +> : ^^^^^^^^^^^^^ +>foo.bigint : any +>foo : any +> : ^^^ +>bigint : any +> : ^^^ +>class { constructor () {}} : typeof bigint +> : ^^^^^^^^^^^^^ + + constructor () {} +} +foo.of = class { +>foo.of = class { constructor () {}} : typeof of +> : ^^^^^^^^^ +>foo.of : any +>foo : any +> : ^^^ +>of : any +> : ^^^ +>class { constructor () {}} : typeof of +> : ^^^^^^^^^ + + constructor () {} +} + diff --git a/tests/baselines/reference/convertClassExpressionToFunctionFromObjectProperty2(target=es2015).js b/tests/baselines/reference/convertClassExpressionToFunctionFromObjectProperty2(target=es2015).js new file mode 100644 index 0000000000000..563abf3dc193c --- /dev/null +++ b/tests/baselines/reference/convertClassExpressionToFunctionFromObjectProperty2(target=es2015).js @@ -0,0 +1,481 @@ +//// [tests/cases/compiler/convertClassExpressionToFunctionFromObjectProperty2.ts] //// + +//// [convertClassExpressionToFunctionFromObjectProperty2.ts] +({ + x: class { + constructor() { } + }, + y: class { + constructor() { } + }, + + // keywords + break: class { + constructor() { } + }, + case: class { + constructor() { } + }, + catch: class { + constructor() { } + }, + class: class { + constructor() { } + }, + const: class { + constructor() { } + }, + continue: class { + constructor() { } + }, + debugger: class { + constructor() { } + }, + default: class { + constructor() { } + }, + delete: class { + constructor() { } + }, + do: class { + constructor() { } + }, + else: class { + constructor() { } + }, + enum: class { + constructor() { } + }, + export: class { + constructor() { } + }, + extends: class { + constructor() { } + }, + false: class { + constructor() { } + }, + finally: class { + constructor() { } + }, + for: class { + constructor() { } + }, + function: class { + constructor() { } + }, + if: class { + constructor() { } + }, + import: class { + constructor() { } + }, + in: class { + constructor() { } + }, + instanceof: class { + constructor() { } + }, + new: class { + constructor() { } + }, + null: class { + constructor() { } + }, + return: class { + constructor() { } + }, + super: class { + constructor() { } + }, + switch: class { + constructor() { } + }, + this: class { + constructor() { } + }, + throw: class { + constructor() { } + }, + true: class { + constructor() { } + }, + try: class { + constructor() { } + }, + typeof: class { + constructor() { } + }, + var: class { + constructor() { } + }, + void: class { + constructor() { } + }, + while: class { + constructor() { } + }, + with: class { + constructor() { } + }, + implements: class { + constructor() { } + }, + interface: class { + constructor() { } + }, + let: class { + constructor() { } + }, + package: class { + constructor() { } + }, + private: class { + constructor() { } + }, + protected: class { + constructor() { } + }, + public: class { + constructor() { } + }, + static: class { + constructor() { } + }, + yield: class { + constructor() { } + }, + abstract: class { + constructor() { } + }, + as: class { + constructor() { } + }, + asserts: class { + constructor() { } + }, + any: class { + constructor() { } + }, + async: class { + constructor() { } + }, + await: class { + constructor() { } + }, + boolean: class { + constructor() { } + }, + constructor: class { + constructor() { } + }, + declare: class { + constructor() { } + }, + get: class { + constructor() { } + }, + infer: class { + constructor() { } + }, + is: class { + constructor() { } + }, + keyof: class { + constructor() { } + }, + module: class { + constructor() { } + }, + namespace: class { + constructor() { } + }, + never: class { + constructor() { } + }, + readonly: class { + constructor() { } + }, + require: class { + constructor() { } + }, + number: class { + constructor() { } + }, + object: class { + constructor() { } + }, + set: class { + constructor() { } + }, + string: class { + constructor() { } + }, + symbol: class { + constructor() { } + }, + type: class { + constructor() { } + }, + undefined: class { + constructor() { } + }, + unique: class { + constructor() { } + }, + unknown: class { + constructor() { } + }, + from: class { + constructor() { } + }, + global: class { + constructor() { } + }, + bigint: class { + constructor() { } + }, + of: class { + constructor() { } + } +}) + + +//// [convertClassExpressionToFunctionFromObjectProperty2.js] +({ + x: class { + constructor() { } + }, + y: class { + constructor() { } + }, + // keywords + break: class { + constructor() { } + }, + case: class { + constructor() { } + }, + catch: class { + constructor() { } + }, + class: class { + constructor() { } + }, + const: class { + constructor() { } + }, + continue: class { + constructor() { } + }, + debugger: class { + constructor() { } + }, + default: class { + constructor() { } + }, + delete: class { + constructor() { } + }, + do: class { + constructor() { } + }, + else: class { + constructor() { } + }, + enum: class { + constructor() { } + }, + export: class { + constructor() { } + }, + extends: class { + constructor() { } + }, + false: class { + constructor() { } + }, + finally: class { + constructor() { } + }, + for: class { + constructor() { } + }, + function: class { + constructor() { } + }, + if: class { + constructor() { } + }, + import: class { + constructor() { } + }, + in: class { + constructor() { } + }, + instanceof: class { + constructor() { } + }, + new: class { + constructor() { } + }, + null: class { + constructor() { } + }, + return: class { + constructor() { } + }, + super: class { + constructor() { } + }, + switch: class { + constructor() { } + }, + this: class { + constructor() { } + }, + throw: class { + constructor() { } + }, + true: class { + constructor() { } + }, + try: class { + constructor() { } + }, + typeof: class { + constructor() { } + }, + var: class { + constructor() { } + }, + void: class { + constructor() { } + }, + while: class { + constructor() { } + }, + with: class { + constructor() { } + }, + implements: class { + constructor() { } + }, + interface: class { + constructor() { } + }, + let: class { + constructor() { } + }, + package: class { + constructor() { } + }, + private: class { + constructor() { } + }, + protected: class { + constructor() { } + }, + public: class { + constructor() { } + }, + static: class { + constructor() { } + }, + yield: class { + constructor() { } + }, + abstract: class { + constructor() { } + }, + as: class { + constructor() { } + }, + asserts: class { + constructor() { } + }, + any: class { + constructor() { } + }, + async: class { + constructor() { } + }, + await: class { + constructor() { } + }, + boolean: class { + constructor() { } + }, + constructor: class { + constructor() { } + }, + declare: class { + constructor() { } + }, + get: class { + constructor() { } + }, + infer: class { + constructor() { } + }, + is: class { + constructor() { } + }, + keyof: class { + constructor() { } + }, + module: class { + constructor() { } + }, + namespace: class { + constructor() { } + }, + never: class { + constructor() { } + }, + readonly: class { + constructor() { } + }, + require: class { + constructor() { } + }, + number: class { + constructor() { } + }, + object: class { + constructor() { } + }, + set: class { + constructor() { } + }, + string: class { + constructor() { } + }, + symbol: class { + constructor() { } + }, + type: class { + constructor() { } + }, + undefined: class { + constructor() { } + }, + unique: class { + constructor() { } + }, + unknown: class { + constructor() { } + }, + from: class { + constructor() { } + }, + global: class { + constructor() { } + }, + bigint: class { + constructor() { } + }, + of: class { + constructor() { } + } +}); diff --git a/tests/baselines/reference/convertClassExpressionToFunctionFromObjectProperty2.symbols b/tests/baselines/reference/convertClassExpressionToFunctionFromObjectProperty2(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/convertClassExpressionToFunctionFromObjectProperty2.symbols rename to tests/baselines/reference/convertClassExpressionToFunctionFromObjectProperty2(target=es2015).symbols diff --git a/tests/baselines/reference/convertClassExpressionToFunctionFromObjectProperty2.types b/tests/baselines/reference/convertClassExpressionToFunctionFromObjectProperty2(target=es2015).types similarity index 100% rename from tests/baselines/reference/convertClassExpressionToFunctionFromObjectProperty2.types rename to tests/baselines/reference/convertClassExpressionToFunctionFromObjectProperty2(target=es2015).types diff --git a/tests/baselines/reference/convertClassExpressionToFunctionFromObjectProperty2.js b/tests/baselines/reference/convertClassExpressionToFunctionFromObjectProperty2(target=es5).js similarity index 100% rename from tests/baselines/reference/convertClassExpressionToFunctionFromObjectProperty2.js rename to tests/baselines/reference/convertClassExpressionToFunctionFromObjectProperty2(target=es5).js diff --git a/tests/baselines/reference/convertClassExpressionToFunctionFromObjectProperty2(target=es5).symbols b/tests/baselines/reference/convertClassExpressionToFunctionFromObjectProperty2(target=es5).symbols new file mode 100644 index 0000000000000..4587fec4fa7be --- /dev/null +++ b/tests/baselines/reference/convertClassExpressionToFunctionFromObjectProperty2(target=es5).symbols @@ -0,0 +1,398 @@ +//// [tests/cases/compiler/convertClassExpressionToFunctionFromObjectProperty2.ts] //// + +=== convertClassExpressionToFunctionFromObjectProperty2.ts === +({ + x: class { +>x : Symbol(x, Decl(convertClassExpressionToFunctionFromObjectProperty2.ts, 0, 2)) + + constructor() { } + }, + y: class { +>y : Symbol(y, Decl(convertClassExpressionToFunctionFromObjectProperty2.ts, 3, 6)) + + constructor() { } + }, + + // keywords + break: class { +>break : Symbol(break, Decl(convertClassExpressionToFunctionFromObjectProperty2.ts, 6, 6)) + + constructor() { } + }, + case: class { +>case : Symbol(case, Decl(convertClassExpressionToFunctionFromObjectProperty2.ts, 11, 6)) + + constructor() { } + }, + catch: class { +>catch : Symbol(catch, Decl(convertClassExpressionToFunctionFromObjectProperty2.ts, 14, 6)) + + constructor() { } + }, + class: class { +>class : Symbol(class, Decl(convertClassExpressionToFunctionFromObjectProperty2.ts, 17, 6)) + + constructor() { } + }, + const: class { +>const : Symbol(const, Decl(convertClassExpressionToFunctionFromObjectProperty2.ts, 20, 6)) + + constructor() { } + }, + continue: class { +>continue : Symbol(continue, Decl(convertClassExpressionToFunctionFromObjectProperty2.ts, 23, 6)) + + constructor() { } + }, + debugger: class { +>debugger : Symbol(debugger, Decl(convertClassExpressionToFunctionFromObjectProperty2.ts, 26, 6)) + + constructor() { } + }, + default: class { +>default : Symbol(default, Decl(convertClassExpressionToFunctionFromObjectProperty2.ts, 29, 6)) + + constructor() { } + }, + delete: class { +>delete : Symbol(delete, Decl(convertClassExpressionToFunctionFromObjectProperty2.ts, 32, 6)) + + constructor() { } + }, + do: class { +>do : Symbol(do, Decl(convertClassExpressionToFunctionFromObjectProperty2.ts, 35, 6)) + + constructor() { } + }, + else: class { +>else : Symbol(else, Decl(convertClassExpressionToFunctionFromObjectProperty2.ts, 38, 6)) + + constructor() { } + }, + enum: class { +>enum : Symbol(enum, Decl(convertClassExpressionToFunctionFromObjectProperty2.ts, 41, 6)) + + constructor() { } + }, + export: class { +>export : Symbol(export, Decl(convertClassExpressionToFunctionFromObjectProperty2.ts, 44, 6)) + + constructor() { } + }, + extends: class { +>extends : Symbol(extends, Decl(convertClassExpressionToFunctionFromObjectProperty2.ts, 47, 6)) + + constructor() { } + }, + false: class { +>false : Symbol(false, Decl(convertClassExpressionToFunctionFromObjectProperty2.ts, 50, 6)) + + constructor() { } + }, + finally: class { +>finally : Symbol(finally, Decl(convertClassExpressionToFunctionFromObjectProperty2.ts, 53, 6)) + + constructor() { } + }, + for: class { +>for : Symbol(for, Decl(convertClassExpressionToFunctionFromObjectProperty2.ts, 56, 6)) + + constructor() { } + }, + function: class { +>function : Symbol(function, Decl(convertClassExpressionToFunctionFromObjectProperty2.ts, 59, 6)) + + constructor() { } + }, + if: class { +>if : Symbol(if, Decl(convertClassExpressionToFunctionFromObjectProperty2.ts, 62, 6)) + + constructor() { } + }, + import: class { +>import : Symbol(import, Decl(convertClassExpressionToFunctionFromObjectProperty2.ts, 65, 6)) + + constructor() { } + }, + in: class { +>in : Symbol(in, Decl(convertClassExpressionToFunctionFromObjectProperty2.ts, 68, 6)) + + constructor() { } + }, + instanceof: class { +>instanceof : Symbol(instanceof, Decl(convertClassExpressionToFunctionFromObjectProperty2.ts, 71, 6)) + + constructor() { } + }, + new: class { +>new : Symbol(new, Decl(convertClassExpressionToFunctionFromObjectProperty2.ts, 74, 6)) + + constructor() { } + }, + null: class { +>null : Symbol(null, Decl(convertClassExpressionToFunctionFromObjectProperty2.ts, 77, 6)) + + constructor() { } + }, + return: class { +>return : Symbol(return, Decl(convertClassExpressionToFunctionFromObjectProperty2.ts, 80, 6)) + + constructor() { } + }, + super: class { +>super : Symbol(super, Decl(convertClassExpressionToFunctionFromObjectProperty2.ts, 83, 6)) + + constructor() { } + }, + switch: class { +>switch : Symbol(switch, Decl(convertClassExpressionToFunctionFromObjectProperty2.ts, 86, 6)) + + constructor() { } + }, + this: class { +>this : Symbol(this, Decl(convertClassExpressionToFunctionFromObjectProperty2.ts, 89, 6)) + + constructor() { } + }, + throw: class { +>throw : Symbol(throw, Decl(convertClassExpressionToFunctionFromObjectProperty2.ts, 92, 6)) + + constructor() { } + }, + true: class { +>true : Symbol(true, Decl(convertClassExpressionToFunctionFromObjectProperty2.ts, 95, 6)) + + constructor() { } + }, + try: class { +>try : Symbol(try, Decl(convertClassExpressionToFunctionFromObjectProperty2.ts, 98, 6)) + + constructor() { } + }, + typeof: class { +>typeof : Symbol(typeof, Decl(convertClassExpressionToFunctionFromObjectProperty2.ts, 101, 6)) + + constructor() { } + }, + var: class { +>var : Symbol(var, Decl(convertClassExpressionToFunctionFromObjectProperty2.ts, 104, 6)) + + constructor() { } + }, + void: class { +>void : Symbol(void, Decl(convertClassExpressionToFunctionFromObjectProperty2.ts, 107, 6)) + + constructor() { } + }, + while: class { +>while : Symbol(while, Decl(convertClassExpressionToFunctionFromObjectProperty2.ts, 110, 6)) + + constructor() { } + }, + with: class { +>with : Symbol(with, Decl(convertClassExpressionToFunctionFromObjectProperty2.ts, 113, 6)) + + constructor() { } + }, + implements: class { +>implements : Symbol(implements, Decl(convertClassExpressionToFunctionFromObjectProperty2.ts, 116, 6)) + + constructor() { } + }, + interface: class { +>interface : Symbol(interface, Decl(convertClassExpressionToFunctionFromObjectProperty2.ts, 119, 6)) + + constructor() { } + }, + let: class { +>let : Symbol(let, Decl(convertClassExpressionToFunctionFromObjectProperty2.ts, 122, 6)) + + constructor() { } + }, + package: class { +>package : Symbol(package, Decl(convertClassExpressionToFunctionFromObjectProperty2.ts, 125, 6)) + + constructor() { } + }, + private: class { +>private : Symbol(private, Decl(convertClassExpressionToFunctionFromObjectProperty2.ts, 128, 6)) + + constructor() { } + }, + protected: class { +>protected : Symbol(protected, Decl(convertClassExpressionToFunctionFromObjectProperty2.ts, 131, 6)) + + constructor() { } + }, + public: class { +>public : Symbol(public, Decl(convertClassExpressionToFunctionFromObjectProperty2.ts, 134, 6)) + + constructor() { } + }, + static: class { +>static : Symbol(static, Decl(convertClassExpressionToFunctionFromObjectProperty2.ts, 137, 6)) + + constructor() { } + }, + yield: class { +>yield : Symbol(yield, Decl(convertClassExpressionToFunctionFromObjectProperty2.ts, 140, 6)) + + constructor() { } + }, + abstract: class { +>abstract : Symbol(abstract, Decl(convertClassExpressionToFunctionFromObjectProperty2.ts, 143, 6)) + + constructor() { } + }, + as: class { +>as : Symbol(as, Decl(convertClassExpressionToFunctionFromObjectProperty2.ts, 146, 6)) + + constructor() { } + }, + asserts: class { +>asserts : Symbol(asserts, Decl(convertClassExpressionToFunctionFromObjectProperty2.ts, 149, 6)) + + constructor() { } + }, + any: class { +>any : Symbol(any, Decl(convertClassExpressionToFunctionFromObjectProperty2.ts, 152, 6)) + + constructor() { } + }, + async: class { +>async : Symbol(async, Decl(convertClassExpressionToFunctionFromObjectProperty2.ts, 155, 6)) + + constructor() { } + }, + await: class { +>await : Symbol(await, Decl(convertClassExpressionToFunctionFromObjectProperty2.ts, 158, 6)) + + constructor() { } + }, + boolean: class { +>boolean : Symbol(boolean, Decl(convertClassExpressionToFunctionFromObjectProperty2.ts, 161, 6)) + + constructor() { } + }, + constructor: class { +>constructor : Symbol(constructor, Decl(convertClassExpressionToFunctionFromObjectProperty2.ts, 164, 6)) + + constructor() { } + }, + declare: class { +>declare : Symbol(declare, Decl(convertClassExpressionToFunctionFromObjectProperty2.ts, 167, 6)) + + constructor() { } + }, + get: class { +>get : Symbol(get, Decl(convertClassExpressionToFunctionFromObjectProperty2.ts, 170, 6)) + + constructor() { } + }, + infer: class { +>infer : Symbol(infer, Decl(convertClassExpressionToFunctionFromObjectProperty2.ts, 173, 6)) + + constructor() { } + }, + is: class { +>is : Symbol(is, Decl(convertClassExpressionToFunctionFromObjectProperty2.ts, 176, 6)) + + constructor() { } + }, + keyof: class { +>keyof : Symbol(keyof, Decl(convertClassExpressionToFunctionFromObjectProperty2.ts, 179, 6)) + + constructor() { } + }, + module: class { +>module : Symbol(module, Decl(convertClassExpressionToFunctionFromObjectProperty2.ts, 182, 6)) + + constructor() { } + }, + namespace: class { +>namespace : Symbol(namespace, Decl(convertClassExpressionToFunctionFromObjectProperty2.ts, 185, 6)) + + constructor() { } + }, + never: class { +>never : Symbol(never, Decl(convertClassExpressionToFunctionFromObjectProperty2.ts, 188, 6)) + + constructor() { } + }, + readonly: class { +>readonly : Symbol(readonly, Decl(convertClassExpressionToFunctionFromObjectProperty2.ts, 191, 6)) + + constructor() { } + }, + require: class { +>require : Symbol(require, Decl(convertClassExpressionToFunctionFromObjectProperty2.ts, 194, 6)) + + constructor() { } + }, + number: class { +>number : Symbol(number, Decl(convertClassExpressionToFunctionFromObjectProperty2.ts, 197, 6)) + + constructor() { } + }, + object: class { +>object : Symbol(object, Decl(convertClassExpressionToFunctionFromObjectProperty2.ts, 200, 6)) + + constructor() { } + }, + set: class { +>set : Symbol(set, Decl(convertClassExpressionToFunctionFromObjectProperty2.ts, 203, 6)) + + constructor() { } + }, + string: class { +>string : Symbol(string, Decl(convertClassExpressionToFunctionFromObjectProperty2.ts, 206, 6)) + + constructor() { } + }, + symbol: class { +>symbol : Symbol(symbol, Decl(convertClassExpressionToFunctionFromObjectProperty2.ts, 209, 6)) + + constructor() { } + }, + type: class { +>type : Symbol(type, Decl(convertClassExpressionToFunctionFromObjectProperty2.ts, 212, 6)) + + constructor() { } + }, + undefined: class { +>undefined : Symbol(undefined, Decl(convertClassExpressionToFunctionFromObjectProperty2.ts, 215, 6)) + + constructor() { } + }, + unique: class { +>unique : Symbol(unique, Decl(convertClassExpressionToFunctionFromObjectProperty2.ts, 218, 6)) + + constructor() { } + }, + unknown: class { +>unknown : Symbol(unknown, Decl(convertClassExpressionToFunctionFromObjectProperty2.ts, 221, 6)) + + constructor() { } + }, + from: class { +>from : Symbol(from, Decl(convertClassExpressionToFunctionFromObjectProperty2.ts, 224, 6)) + + constructor() { } + }, + global: class { +>global : Symbol(global, Decl(convertClassExpressionToFunctionFromObjectProperty2.ts, 227, 6)) + + constructor() { } + }, + bigint: class { +>bigint : Symbol(bigint, Decl(convertClassExpressionToFunctionFromObjectProperty2.ts, 230, 6)) + + constructor() { } + }, + of: class { +>of : Symbol(of, Decl(convertClassExpressionToFunctionFromObjectProperty2.ts, 233, 6)) + + constructor() { } + } +}) + diff --git a/tests/baselines/reference/convertClassExpressionToFunctionFromObjectProperty2(target=es5).types b/tests/baselines/reference/convertClassExpressionToFunctionFromObjectProperty2(target=es5).types new file mode 100644 index 0000000000000..65ca767d48955 --- /dev/null +++ b/tests/baselines/reference/convertClassExpressionToFunctionFromObjectProperty2(target=es5).types @@ -0,0 +1,637 @@ +//// [tests/cases/compiler/convertClassExpressionToFunctionFromObjectProperty2.ts] //// + +=== convertClassExpressionToFunctionFromObjectProperty2.ts === +({ +>({ x: class { constructor() { } }, y: class { constructor() { } }, // keywords break: class { constructor() { } }, case: class { constructor() { } }, catch: class { constructor() { } }, class: class { constructor() { } }, const: class { constructor() { } }, continue: class { constructor() { } }, debugger: class { constructor() { } }, default: class { constructor() { } }, delete: class { constructor() { } }, do: class { constructor() { } }, else: class { constructor() { } }, enum: class { constructor() { } }, export: class { constructor() { } }, extends: class { constructor() { } }, false: class { constructor() { } }, finally: class { constructor() { } }, for: class { constructor() { } }, function: class { constructor() { } }, if: class { constructor() { } }, import: class { constructor() { } }, in: class { constructor() { } }, instanceof: class { constructor() { } }, new: class { constructor() { } }, null: class { constructor() { } }, return: class { constructor() { } }, super: class { constructor() { } }, switch: class { constructor() { } }, this: class { constructor() { } }, throw: class { constructor() { } }, true: class { constructor() { } }, try: class { constructor() { } }, typeof: class { constructor() { } }, var: class { constructor() { } }, void: class { constructor() { } }, while: class { constructor() { } }, with: class { constructor() { } }, implements: class { constructor() { } }, interface: class { constructor() { } }, let: class { constructor() { } }, package: class { constructor() { } }, private: class { constructor() { } }, protected: class { constructor() { } }, public: class { constructor() { } }, static: class { constructor() { } }, yield: class { constructor() { } }, abstract: class { constructor() { } }, as: class { constructor() { } }, asserts: class { constructor() { } }, any: class { constructor() { } }, async: class { constructor() { } }, await: class { constructor() { } }, boolean: class { constructor() { } }, constructor: class { constructor() { } }, declare: class { constructor() { } }, get: class { constructor() { } }, infer: class { constructor() { } }, is: class { constructor() { } }, keyof: class { constructor() { } }, module: class { constructor() { } }, namespace: class { constructor() { } }, never: class { constructor() { } }, readonly: class { constructor() { } }, require: class { constructor() { } }, number: class { constructor() { } }, object: class { constructor() { } }, set: class { constructor() { } }, string: class { constructor() { } }, symbol: class { constructor() { } }, type: class { constructor() { } }, undefined: class { constructor() { } }, unique: class { constructor() { } }, unknown: class { constructor() { } }, from: class { constructor() { } }, global: class { constructor() { } }, bigint: class { constructor() { } }, of: class { constructor() { } }}) : { x: typeof x; y: typeof y; break: typeof break; case: typeof case; catch: typeof catch; class: typeof class; const: typeof const; continue: typeof continue; debugger: typeof debugger; default: typeof default; delete: typeof delete; do: typeof do; else: typeof else; enum: typeof enum; export: typeof export; extends: typeof extends; false: typeof false; finally: typeof finally; for: typeof for; function: typeof function; if: typeof if; import: typeof import; in: typeof in; instanceof: typeof instanceof; new: typeof new; null: typeof null; return: typeof return; super: typeof super; switch: typeof switch; this: typeof this; throw: typeof throw; true: typeof true; try: typeof try; typeof: typeof typeof; var: typeof var; void: typeof void; while: typeof while; with: typeof with; implements: typeof implements; interface: typeof interface; let: typeof let; package: typeof package; private: typeof private; protected: typeof protected; public: typeof public; static: typeof static; yield: typeof yield; abstract: typeof abstract; as: typeof as; asserts: typeof asserts; any: typeof any; async: typeof async; await: typeof await; boolean: typeof boolean; constructor: typeof constructor; declare: typeof declare; get: typeof get; infer: typeof infer; is: typeof is; keyof: typeof keyof; module: typeof module; namespace: typeof namespace; never: typeof never; readonly: typeof readonly; require: typeof require; number: typeof number; object: typeof object; set: typeof set; string: typeof string; symbol: typeof symbol; type: typeof type; undefined: typeof undefined; unique: typeof unique; unknown: typeof unknown; from: typeof from; global: typeof global; bigint: typeof bigint; of: typeof of; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ x: class { constructor() { } }, y: class { constructor() { } }, // keywords break: class { constructor() { } }, case: class { constructor() { } }, catch: class { constructor() { } }, class: class { constructor() { } }, const: class { constructor() { } }, continue: class { constructor() { } }, debugger: class { constructor() { } }, default: class { constructor() { } }, delete: class { constructor() { } }, do: class { constructor() { } }, else: class { constructor() { } }, enum: class { constructor() { } }, export: class { constructor() { } }, extends: class { constructor() { } }, false: class { constructor() { } }, finally: class { constructor() { } }, for: class { constructor() { } }, function: class { constructor() { } }, if: class { constructor() { } }, import: class { constructor() { } }, in: class { constructor() { } }, instanceof: class { constructor() { } }, new: class { constructor() { } }, null: class { constructor() { } }, return: class { constructor() { } }, super: class { constructor() { } }, switch: class { constructor() { } }, this: class { constructor() { } }, throw: class { constructor() { } }, true: class { constructor() { } }, try: class { constructor() { } }, typeof: class { constructor() { } }, var: class { constructor() { } }, void: class { constructor() { } }, while: class { constructor() { } }, with: class { constructor() { } }, implements: class { constructor() { } }, interface: class { constructor() { } }, let: class { constructor() { } }, package: class { constructor() { } }, private: class { constructor() { } }, protected: class { constructor() { } }, public: class { constructor() { } }, static: class { constructor() { } }, yield: class { constructor() { } }, abstract: class { constructor() { } }, as: class { constructor() { } }, asserts: class { constructor() { } }, any: class { constructor() { } }, async: class { constructor() { } }, await: class { constructor() { } }, boolean: class { constructor() { } }, constructor: class { constructor() { } }, declare: class { constructor() { } }, get: class { constructor() { } }, infer: class { constructor() { } }, is: class { constructor() { } }, keyof: class { constructor() { } }, module: class { constructor() { } }, namespace: class { constructor() { } }, never: class { constructor() { } }, readonly: class { constructor() { } }, require: class { constructor() { } }, number: class { constructor() { } }, object: class { constructor() { } }, set: class { constructor() { } }, string: class { constructor() { } }, symbol: class { constructor() { } }, type: class { constructor() { } }, undefined: class { constructor() { } }, unique: class { constructor() { } }, unknown: class { constructor() { } }, from: class { constructor() { } }, global: class { constructor() { } }, bigint: class { constructor() { } }, of: class { constructor() { } }} : { x: typeof x; y: typeof y; break: typeof break; case: typeof case; catch: typeof catch; class: typeof class; const: typeof const; continue: typeof continue; debugger: typeof debugger; default: typeof default; delete: typeof delete; do: typeof do; else: typeof else; enum: typeof enum; export: typeof export; extends: typeof extends; false: typeof false; finally: typeof finally; for: typeof for; function: typeof function; if: typeof if; import: typeof import; in: typeof in; instanceof: typeof instanceof; new: typeof new; null: typeof null; return: typeof return; super: typeof super; switch: typeof switch; this: typeof this; throw: typeof throw; true: typeof true; try: typeof try; typeof: typeof typeof; var: typeof var; void: typeof void; while: typeof while; with: typeof with; implements: typeof implements; interface: typeof interface; let: typeof let; package: typeof package; private: typeof private; protected: typeof protected; public: typeof public; static: typeof static; yield: typeof yield; abstract: typeof abstract; as: typeof as; asserts: typeof asserts; any: typeof any; async: typeof async; await: typeof await; boolean: typeof boolean; constructor: typeof constructor; declare: typeof declare; get: typeof get; infer: typeof infer; is: typeof is; keyof: typeof keyof; module: typeof module; namespace: typeof namespace; never: typeof never; readonly: typeof readonly; require: typeof require; number: typeof number; object: typeof object; set: typeof set; string: typeof string; symbol: typeof symbol; type: typeof type; undefined: typeof undefined; unique: typeof unique; unknown: typeof unknown; from: typeof from; global: typeof global; bigint: typeof bigint; of: typeof of; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + x: class { +>x : typeof x +> : ^^^^^^^^ +>class { constructor() { } } : typeof x +> : ^^^^^^^^ + + constructor() { } + }, + y: class { +>y : typeof y +> : ^^^^^^^^ +>class { constructor() { } } : typeof y +> : ^^^^^^^^ + + constructor() { } + }, + + // keywords + break: class { +>break : typeof break +> : ^^^^^^^^^^^^ +>class { constructor() { } } : typeof break +> : ^^^^^^^^^^^^ + + constructor() { } + }, + case: class { +>case : typeof case +> : ^^^^^^^^^^^ +>class { constructor() { } } : typeof case +> : ^^^^^^^^^^^ + + constructor() { } + }, + catch: class { +>catch : typeof catch +> : ^^^^^^^^^^^^ +>class { constructor() { } } : typeof catch +> : ^^^^^^^^^^^^ + + constructor() { } + }, + class: class { +>class : typeof class +> : ^^^^^^^^^^^^ +>class { constructor() { } } : typeof class +> : ^^^^^^^^^^^^ + + constructor() { } + }, + const: class { +>const : typeof const +> : ^^^^^^^^^^^^ +>class { constructor() { } } : typeof const +> : ^^^^^^^^^^^^ + + constructor() { } + }, + continue: class { +>continue : typeof continue +> : ^^^^^^^^^^^^^^^ +>class { constructor() { } } : typeof continue +> : ^^^^^^^^^^^^^^^ + + constructor() { } + }, + debugger: class { +>debugger : typeof debugger +> : ^^^^^^^^^^^^^^^ +>class { constructor() { } } : typeof debugger +> : ^^^^^^^^^^^^^^^ + + constructor() { } + }, + default: class { +>default : typeof default +> : ^^^^^^^^^^^^^^ +>class { constructor() { } } : typeof default +> : ^^^^^^^^^^^^^^ + + constructor() { } + }, + delete: class { +>delete : typeof delete +> : ^^^^^^^^^^^^^ +>class { constructor() { } } : typeof delete +> : ^^^^^^^^^^^^^ + + constructor() { } + }, + do: class { +>do : typeof do +> : ^^^^^^^^^ +>class { constructor() { } } : typeof do +> : ^^^^^^^^^ + + constructor() { } + }, + else: class { +>else : typeof else +> : ^^^^^^^^^^^ +>class { constructor() { } } : typeof else +> : ^^^^^^^^^^^ + + constructor() { } + }, + enum: class { +>enum : typeof enum +> : ^^^^^^^^^^^ +>class { constructor() { } } : typeof enum +> : ^^^^^^^^^^^ + + constructor() { } + }, + export: class { +>export : typeof export +> : ^^^^^^^^^^^^^ +>class { constructor() { } } : typeof export +> : ^^^^^^^^^^^^^ + + constructor() { } + }, + extends: class { +>extends : typeof extends +> : ^^^^^^^^^^^^^^ +>class { constructor() { } } : typeof extends +> : ^^^^^^^^^^^^^^ + + constructor() { } + }, + false: class { +>false : typeof false +> : ^^^^^^^^^^^^ +>class { constructor() { } } : typeof false +> : ^^^^^^^^^^^^ + + constructor() { } + }, + finally: class { +>finally : typeof finally +> : ^^^^^^^^^^^^^^ +>class { constructor() { } } : typeof finally +> : ^^^^^^^^^^^^^^ + + constructor() { } + }, + for: class { +>for : typeof for +> : ^^^^^^^^^^ +>class { constructor() { } } : typeof for +> : ^^^^^^^^^^ + + constructor() { } + }, + function: class { +>function : typeof function +> : ^^^^^^^^^^^^^^^ +>class { constructor() { } } : typeof function +> : ^^^^^^^^^^^^^^^ + + constructor() { } + }, + if: class { +>if : typeof if +> : ^^^^^^^^^ +>class { constructor() { } } : typeof if +> : ^^^^^^^^^ + + constructor() { } + }, + import: class { +>import : typeof import +> : ^^^^^^^^^^^^^ +>class { constructor() { } } : typeof import +> : ^^^^^^^^^^^^^ + + constructor() { } + }, + in: class { +>in : typeof in +> : ^^^^^^^^^ +>class { constructor() { } } : typeof in +> : ^^^^^^^^^ + + constructor() { } + }, + instanceof: class { +>instanceof : typeof instanceof +> : ^^^^^^^^^^^^^^^^^ +>class { constructor() { } } : typeof instanceof +> : ^^^^^^^^^^^^^^^^^ + + constructor() { } + }, + new: class { +>new : typeof new +> : ^^^^^^^^^^ +>class { constructor() { } } : typeof new +> : ^^^^^^^^^^ + + constructor() { } + }, + null: class { +>null : typeof null +> : ^^^^^^^^^^^ +>class { constructor() { } } : typeof null +> : ^^^^^^^^^^^ + + constructor() { } + }, + return: class { +>return : typeof return +> : ^^^^^^^^^^^^^ +>class { constructor() { } } : typeof return +> : ^^^^^^^^^^^^^ + + constructor() { } + }, + super: class { +>super : typeof super +> : ^^^^^^^^^^^^ +>class { constructor() { } } : typeof super +> : ^^^^^^^^^^^^ + + constructor() { } + }, + switch: class { +>switch : typeof switch +> : ^^^^^^^^^^^^^ +>class { constructor() { } } : typeof switch +> : ^^^^^^^^^^^^^ + + constructor() { } + }, + this: class { +>this : typeof this +> : ^^^^^^^^^^^ +>class { constructor() { } } : typeof this +> : ^^^^^^^^^^^ + + constructor() { } + }, + throw: class { +>throw : typeof throw +> : ^^^^^^^^^^^^ +>class { constructor() { } } : typeof throw +> : ^^^^^^^^^^^^ + + constructor() { } + }, + true: class { +>true : typeof true +> : ^^^^^^^^^^^ +>class { constructor() { } } : typeof true +> : ^^^^^^^^^^^ + + constructor() { } + }, + try: class { +>try : typeof try +> : ^^^^^^^^^^ +>class { constructor() { } } : typeof try +> : ^^^^^^^^^^ + + constructor() { } + }, + typeof: class { +>typeof : typeof typeof +> : ^^^^^^^^^^^^^ +>class { constructor() { } } : typeof typeof +> : ^^^^^^^^^^^^^ + + constructor() { } + }, + var: class { +>var : typeof var +> : ^^^^^^^^^^ +>class { constructor() { } } : typeof var +> : ^^^^^^^^^^ + + constructor() { } + }, + void: class { +>void : typeof void +> : ^^^^^^^^^^^ +>class { constructor() { } } : typeof void +> : ^^^^^^^^^^^ + + constructor() { } + }, + while: class { +>while : typeof while +> : ^^^^^^^^^^^^ +>class { constructor() { } } : typeof while +> : ^^^^^^^^^^^^ + + constructor() { } + }, + with: class { +>with : typeof with +> : ^^^^^^^^^^^ +>class { constructor() { } } : typeof with +> : ^^^^^^^^^^^ + + constructor() { } + }, + implements: class { +>implements : typeof implements +> : ^^^^^^^^^^^^^^^^^ +>class { constructor() { } } : typeof implements +> : ^^^^^^^^^^^^^^^^^ + + constructor() { } + }, + interface: class { +>interface : typeof interface +> : ^^^^^^^^^^^^^^^^ +>class { constructor() { } } : typeof interface +> : ^^^^^^^^^^^^^^^^ + + constructor() { } + }, + let: class { +>let : typeof let +> : ^^^^^^^^^^ +>class { constructor() { } } : typeof let +> : ^^^^^^^^^^ + + constructor() { } + }, + package: class { +>package : typeof package +> : ^^^^^^^^^^^^^^ +>class { constructor() { } } : typeof package +> : ^^^^^^^^^^^^^^ + + constructor() { } + }, + private: class { +>private : typeof private +> : ^^^^^^^^^^^^^^ +>class { constructor() { } } : typeof private +> : ^^^^^^^^^^^^^^ + + constructor() { } + }, + protected: class { +>protected : typeof protected +> : ^^^^^^^^^^^^^^^^ +>class { constructor() { } } : typeof protected +> : ^^^^^^^^^^^^^^^^ + + constructor() { } + }, + public: class { +>public : typeof public +> : ^^^^^^^^^^^^^ +>class { constructor() { } } : typeof public +> : ^^^^^^^^^^^^^ + + constructor() { } + }, + static: class { +>static : typeof static +> : ^^^^^^^^^^^^^ +>class { constructor() { } } : typeof static +> : ^^^^^^^^^^^^^ + + constructor() { } + }, + yield: class { +>yield : typeof yield +> : ^^^^^^^^^^^^ +>class { constructor() { } } : typeof yield +> : ^^^^^^^^^^^^ + + constructor() { } + }, + abstract: class { +>abstract : typeof abstract +> : ^^^^^^^^^^^^^^^ +>class { constructor() { } } : typeof abstract +> : ^^^^^^^^^^^^^^^ + + constructor() { } + }, + as: class { +>as : typeof as +> : ^^^^^^^^^ +>class { constructor() { } } : typeof as +> : ^^^^^^^^^ + + constructor() { } + }, + asserts: class { +>asserts : typeof asserts +> : ^^^^^^^^^^^^^^ +>class { constructor() { } } : typeof asserts +> : ^^^^^^^^^^^^^^ + + constructor() { } + }, + any: class { +>any : typeof any +> : ^^^^^^^^^^ +>class { constructor() { } } : typeof any +> : ^^^^^^^^^^ + + constructor() { } + }, + async: class { +>async : typeof async +> : ^^^^^^^^^^^^ +>class { constructor() { } } : typeof async +> : ^^^^^^^^^^^^ + + constructor() { } + }, + await: class { +>await : typeof await +> : ^^^^^^^^^^^^ +>class { constructor() { } } : typeof await +> : ^^^^^^^^^^^^ + + constructor() { } + }, + boolean: class { +>boolean : typeof boolean +> : ^^^^^^^^^^^^^^ +>class { constructor() { } } : typeof boolean +> : ^^^^^^^^^^^^^^ + + constructor() { } + }, + constructor: class { +>constructor : typeof constructor +> : ^^^^^^^^^^^^^^^^^^ +>class { constructor() { } } : typeof constructor +> : ^^^^^^^^^^^^^^^^^^ + + constructor() { } + }, + declare: class { +>declare : typeof declare +> : ^^^^^^^^^^^^^^ +>class { constructor() { } } : typeof declare +> : ^^^^^^^^^^^^^^ + + constructor() { } + }, + get: class { +>get : typeof get +> : ^^^^^^^^^^ +>class { constructor() { } } : typeof get +> : ^^^^^^^^^^ + + constructor() { } + }, + infer: class { +>infer : typeof infer +> : ^^^^^^^^^^^^ +>class { constructor() { } } : typeof infer +> : ^^^^^^^^^^^^ + + constructor() { } + }, + is: class { +>is : typeof is +> : ^^^^^^^^^ +>class { constructor() { } } : typeof is +> : ^^^^^^^^^ + + constructor() { } + }, + keyof: class { +>keyof : typeof keyof +> : ^^^^^^^^^^^^ +>class { constructor() { } } : typeof keyof +> : ^^^^^^^^^^^^ + + constructor() { } + }, + module: class { +>module : typeof module +> : ^^^^^^^^^^^^^ +>class { constructor() { } } : typeof module +> : ^^^^^^^^^^^^^ + + constructor() { } + }, + namespace: class { +>namespace : typeof namespace +> : ^^^^^^^^^^^^^^^^ +>class { constructor() { } } : typeof namespace +> : ^^^^^^^^^^^^^^^^ + + constructor() { } + }, + never: class { +>never : typeof never +> : ^^^^^^^^^^^^ +>class { constructor() { } } : typeof never +> : ^^^^^^^^^^^^ + + constructor() { } + }, + readonly: class { +>readonly : typeof readonly +> : ^^^^^^^^^^^^^^^ +>class { constructor() { } } : typeof readonly +> : ^^^^^^^^^^^^^^^ + + constructor() { } + }, + require: class { +>require : typeof require +> : ^^^^^^^^^^^^^^ +>class { constructor() { } } : typeof require +> : ^^^^^^^^^^^^^^ + + constructor() { } + }, + number: class { +>number : typeof number +> : ^^^^^^^^^^^^^ +>class { constructor() { } } : typeof number +> : ^^^^^^^^^^^^^ + + constructor() { } + }, + object: class { +>object : typeof object +> : ^^^^^^^^^^^^^ +>class { constructor() { } } : typeof object +> : ^^^^^^^^^^^^^ + + constructor() { } + }, + set: class { +>set : typeof set +> : ^^^^^^^^^^ +>class { constructor() { } } : typeof set +> : ^^^^^^^^^^ + + constructor() { } + }, + string: class { +>string : typeof string +> : ^^^^^^^^^^^^^ +>class { constructor() { } } : typeof string +> : ^^^^^^^^^^^^^ + + constructor() { } + }, + symbol: class { +>symbol : typeof symbol +> : ^^^^^^^^^^^^^ +>class { constructor() { } } : typeof symbol +> : ^^^^^^^^^^^^^ + + constructor() { } + }, + type: class { +>type : typeof type +> : ^^^^^^^^^^^ +>class { constructor() { } } : typeof type +> : ^^^^^^^^^^^ + + constructor() { } + }, + undefined: class { +>undefined : typeof undefined +> : ^^^^^^^^^^^^^^^^ +>class { constructor() { } } : typeof undefined +> : ^^^^^^^^^^^^^^^^ + + constructor() { } + }, + unique: class { +>unique : typeof unique +> : ^^^^^^^^^^^^^ +>class { constructor() { } } : typeof unique +> : ^^^^^^^^^^^^^ + + constructor() { } + }, + unknown: class { +>unknown : typeof unknown +> : ^^^^^^^^^^^^^^ +>class { constructor() { } } : typeof unknown +> : ^^^^^^^^^^^^^^ + + constructor() { } + }, + from: class { +>from : typeof from +> : ^^^^^^^^^^^ +>class { constructor() { } } : typeof from +> : ^^^^^^^^^^^ + + constructor() { } + }, + global: class { +>global : typeof global +> : ^^^^^^^^^^^^^ +>class { constructor() { } } : typeof global +> : ^^^^^^^^^^^^^ + + constructor() { } + }, + bigint: class { +>bigint : typeof bigint +> : ^^^^^^^^^^^^^ +>class { constructor() { } } : typeof bigint +> : ^^^^^^^^^^^^^ + + constructor() { } + }, + of: class { +>of : typeof of +> : ^^^^^^^^^ +>class { constructor() { } } : typeof of +> : ^^^^^^^^^ + + constructor() { } + } +}) + diff --git a/tests/baselines/reference/declFileAccessors(target=es2015).js b/tests/baselines/reference/declFileAccessors(target=es2015).js new file mode 100644 index 0000000000000..b6ca207f55290 --- /dev/null +++ b/tests/baselines/reference/declFileAccessors(target=es2015).js @@ -0,0 +1,250 @@ +//// [tests/cases/compiler/declFileAccessors.ts] //// + +//// [declFileAccessors_0.ts] +/** This is comment for c1*/ +export class c1 { + /** getter property*/ + public get p3() { + return 10; + } + /** setter property*/ + public set p3(/** this is value*/value: number) { + } + /** private getter property*/ + private get pp3() { + return 10; + } + /** private setter property*/ + private set pp3(/** this is value*/value: number) { + } + /** static getter property*/ + static get s3() { + return 10; + } + /** setter property*/ + static set s3( /** this is value*/value: number) { + } + public get nc_p3() { + return 10; + } + public set nc_p3(value: number) { + } + private get nc_pp3() { + return 10; + } + private set nc_pp3(value: number) { + } + static get nc_s3() { + return ""; + } + static set nc_s3(value: string) { + } + + // Only getter property + public get onlyGetter() { + return 10; + } + + // Only setter property + public set onlySetter(value: number) { + } +} + +//// [declFileAccessors_1.ts] +/** This is comment for c2 - the global class*/ +class c2 { + /** getter property*/ + public get p3() { + return 10; + } + /** setter property*/ + public set p3(/** this is value*/value: number) { + } + /** private getter property*/ + private get pp3() { + return 10; + } + /** private setter property*/ + private set pp3(/** this is value*/value: number) { + } + /** static getter property*/ + static get s3() { + return 10; + } + /** setter property*/ + static set s3( /** this is value*/value: number) { + } + public get nc_p3() { + return 10; + } + public set nc_p3(value: number) { + } + private get nc_pp3() { + return 10; + } + private set nc_pp3(value: number) { + } + static get nc_s3() { + return ""; + } + static set nc_s3(value: string) { + } + + // Only getter property + public get onlyGetter() { + return 10; + } + + // Only setter property + public set onlySetter(value: number) { + } +} + +//// [declFileAccessors_0.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.c1 = void 0; +/** This is comment for c1*/ +class c1 { + /** getter property*/ + get p3() { + return 10; + } + /** setter property*/ + set p3(/** this is value*/ value) { + } + /** private getter property*/ + get pp3() { + return 10; + } + /** private setter property*/ + set pp3(/** this is value*/ value) { + } + /** static getter property*/ + static get s3() { + return 10; + } + /** setter property*/ + static set s3(/** this is value*/ value) { + } + get nc_p3() { + return 10; + } + set nc_p3(value) { + } + get nc_pp3() { + return 10; + } + set nc_pp3(value) { + } + static get nc_s3() { + return ""; + } + static set nc_s3(value) { + } + // Only getter property + get onlyGetter() { + return 10; + } + // Only setter property + set onlySetter(value) { + } +} +exports.c1 = c1; +//// [declFileAccessors_1.js] +/** This is comment for c2 - the global class*/ +class c2 { + /** getter property*/ + get p3() { + return 10; + } + /** setter property*/ + set p3(/** this is value*/ value) { + } + /** private getter property*/ + get pp3() { + return 10; + } + /** private setter property*/ + set pp3(/** this is value*/ value) { + } + /** static getter property*/ + static get s3() { + return 10; + } + /** setter property*/ + static set s3(/** this is value*/ value) { + } + get nc_p3() { + return 10; + } + set nc_p3(value) { + } + get nc_pp3() { + return 10; + } + set nc_pp3(value) { + } + static get nc_s3() { + return ""; + } + static set nc_s3(value) { + } + // Only getter property + get onlyGetter() { + return 10; + } + // Only setter property + set onlySetter(value) { + } +} + + +//// [declFileAccessors_0.d.ts] +/** This is comment for c1*/ +export declare class c1 { + /** getter property*/ + get p3(): number; + /** setter property*/ + set p3(/** this is value*/ value: number); + /** private getter property*/ + private get pp3(); + /** private setter property*/ + private set pp3(value); + /** static getter property*/ + static get s3(): number; + /** setter property*/ + static set s3(/** this is value*/ value: number); + get nc_p3(): number; + set nc_p3(value: number); + private get nc_pp3(); + private set nc_pp3(value); + static get nc_s3(): string; + static set nc_s3(value: string); + get onlyGetter(): number; + set onlySetter(value: number); +} +//// [declFileAccessors_1.d.ts] +/** This is comment for c2 - the global class*/ +declare class c2 { + /** getter property*/ + get p3(): number; + /** setter property*/ + set p3(/** this is value*/ value: number); + /** private getter property*/ + private get pp3(); + /** private setter property*/ + private set pp3(value); + /** static getter property*/ + static get s3(): number; + /** setter property*/ + static set s3(/** this is value*/ value: number); + get nc_p3(): number; + set nc_p3(value: number); + private get nc_pp3(); + private set nc_pp3(value); + static get nc_s3(): string; + static set nc_s3(value: string); + get onlyGetter(): number; + set onlySetter(value: number); +} diff --git a/tests/baselines/reference/declFileAccessors.symbols b/tests/baselines/reference/declFileAccessors(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/declFileAccessors.symbols rename to tests/baselines/reference/declFileAccessors(target=es2015).symbols diff --git a/tests/baselines/reference/declFileAccessors.types b/tests/baselines/reference/declFileAccessors(target=es2015).types similarity index 100% rename from tests/baselines/reference/declFileAccessors.types rename to tests/baselines/reference/declFileAccessors(target=es2015).types diff --git a/tests/baselines/reference/declFileAccessors.js b/tests/baselines/reference/declFileAccessors(target=es5).js similarity index 100% rename from tests/baselines/reference/declFileAccessors.js rename to tests/baselines/reference/declFileAccessors(target=es5).js diff --git a/tests/baselines/reference/declFileAccessors(target=es5).symbols b/tests/baselines/reference/declFileAccessors(target=es5).symbols new file mode 100644 index 0000000000000..33819cfc02032 --- /dev/null +++ b/tests/baselines/reference/declFileAccessors(target=es5).symbols @@ -0,0 +1,161 @@ +//// [tests/cases/compiler/declFileAccessors.ts] //// + +=== declFileAccessors_0.ts === +/** This is comment for c1*/ +export class c1 { +>c1 : Symbol(c1, Decl(declFileAccessors_0.ts, 0, 0)) + + /** getter property*/ + public get p3() { +>p3 : Symbol(c1.p3, Decl(declFileAccessors_0.ts, 1, 17), Decl(declFileAccessors_0.ts, 5, 5)) + + return 10; + } + /** setter property*/ + public set p3(/** this is value*/value: number) { +>p3 : Symbol(c1.p3, Decl(declFileAccessors_0.ts, 1, 17), Decl(declFileAccessors_0.ts, 5, 5)) +>value : Symbol(value, Decl(declFileAccessors_0.ts, 7, 18)) + } + /** private getter property*/ + private get pp3() { +>pp3 : Symbol(c1.pp3, Decl(declFileAccessors_0.ts, 8, 5), Decl(declFileAccessors_0.ts, 12, 5)) + + return 10; + } + /** private setter property*/ + private set pp3(/** this is value*/value: number) { +>pp3 : Symbol(c1.pp3, Decl(declFileAccessors_0.ts, 8, 5), Decl(declFileAccessors_0.ts, 12, 5)) +>value : Symbol(value, Decl(declFileAccessors_0.ts, 14, 20)) + } + /** static getter property*/ + static get s3() { +>s3 : Symbol(c1.s3, Decl(declFileAccessors_0.ts, 15, 5), Decl(declFileAccessors_0.ts, 19, 5)) + + return 10; + } + /** setter property*/ + static set s3( /** this is value*/value: number) { +>s3 : Symbol(c1.s3, Decl(declFileAccessors_0.ts, 15, 5), Decl(declFileAccessors_0.ts, 19, 5)) +>value : Symbol(value, Decl(declFileAccessors_0.ts, 21, 18)) + } + public get nc_p3() { +>nc_p3 : Symbol(c1.nc_p3, Decl(declFileAccessors_0.ts, 22, 5), Decl(declFileAccessors_0.ts, 25, 5)) + + return 10; + } + public set nc_p3(value: number) { +>nc_p3 : Symbol(c1.nc_p3, Decl(declFileAccessors_0.ts, 22, 5), Decl(declFileAccessors_0.ts, 25, 5)) +>value : Symbol(value, Decl(declFileAccessors_0.ts, 26, 21)) + } + private get nc_pp3() { +>nc_pp3 : Symbol(c1.nc_pp3, Decl(declFileAccessors_0.ts, 27, 5), Decl(declFileAccessors_0.ts, 30, 5)) + + return 10; + } + private set nc_pp3(value: number) { +>nc_pp3 : Symbol(c1.nc_pp3, Decl(declFileAccessors_0.ts, 27, 5), Decl(declFileAccessors_0.ts, 30, 5)) +>value : Symbol(value, Decl(declFileAccessors_0.ts, 31, 23)) + } + static get nc_s3() { +>nc_s3 : Symbol(c1.nc_s3, Decl(declFileAccessors_0.ts, 32, 5), Decl(declFileAccessors_0.ts, 35, 5)) + + return ""; + } + static set nc_s3(value: string) { +>nc_s3 : Symbol(c1.nc_s3, Decl(declFileAccessors_0.ts, 32, 5), Decl(declFileAccessors_0.ts, 35, 5)) +>value : Symbol(value, Decl(declFileAccessors_0.ts, 36, 21)) + } + + // Only getter property + public get onlyGetter() { +>onlyGetter : Symbol(c1.onlyGetter, Decl(declFileAccessors_0.ts, 37, 5)) + + return 10; + } + + // Only setter property + public set onlySetter(value: number) { +>onlySetter : Symbol(c1.onlySetter, Decl(declFileAccessors_0.ts, 42, 5)) +>value : Symbol(value, Decl(declFileAccessors_0.ts, 45, 26)) + } +} + +=== declFileAccessors_1.ts === +/** This is comment for c2 - the global class*/ +class c2 { +>c2 : Symbol(c2, Decl(declFileAccessors_1.ts, 0, 0)) + + /** getter property*/ + public get p3() { +>p3 : Symbol(c2.p3, Decl(declFileAccessors_1.ts, 1, 10), Decl(declFileAccessors_1.ts, 5, 5)) + + return 10; + } + /** setter property*/ + public set p3(/** this is value*/value: number) { +>p3 : Symbol(c2.p3, Decl(declFileAccessors_1.ts, 1, 10), Decl(declFileAccessors_1.ts, 5, 5)) +>value : Symbol(value, Decl(declFileAccessors_1.ts, 7, 18)) + } + /** private getter property*/ + private get pp3() { +>pp3 : Symbol(c2.pp3, Decl(declFileAccessors_1.ts, 8, 5), Decl(declFileAccessors_1.ts, 12, 5)) + + return 10; + } + /** private setter property*/ + private set pp3(/** this is value*/value: number) { +>pp3 : Symbol(c2.pp3, Decl(declFileAccessors_1.ts, 8, 5), Decl(declFileAccessors_1.ts, 12, 5)) +>value : Symbol(value, Decl(declFileAccessors_1.ts, 14, 20)) + } + /** static getter property*/ + static get s3() { +>s3 : Symbol(c2.s3, Decl(declFileAccessors_1.ts, 15, 5), Decl(declFileAccessors_1.ts, 19, 5)) + + return 10; + } + /** setter property*/ + static set s3( /** this is value*/value: number) { +>s3 : Symbol(c2.s3, Decl(declFileAccessors_1.ts, 15, 5), Decl(declFileAccessors_1.ts, 19, 5)) +>value : Symbol(value, Decl(declFileAccessors_1.ts, 21, 18)) + } + public get nc_p3() { +>nc_p3 : Symbol(c2.nc_p3, Decl(declFileAccessors_1.ts, 22, 5), Decl(declFileAccessors_1.ts, 25, 5)) + + return 10; + } + public set nc_p3(value: number) { +>nc_p3 : Symbol(c2.nc_p3, Decl(declFileAccessors_1.ts, 22, 5), Decl(declFileAccessors_1.ts, 25, 5)) +>value : Symbol(value, Decl(declFileAccessors_1.ts, 26, 21)) + } + private get nc_pp3() { +>nc_pp3 : Symbol(c2.nc_pp3, Decl(declFileAccessors_1.ts, 27, 5), Decl(declFileAccessors_1.ts, 30, 5)) + + return 10; + } + private set nc_pp3(value: number) { +>nc_pp3 : Symbol(c2.nc_pp3, Decl(declFileAccessors_1.ts, 27, 5), Decl(declFileAccessors_1.ts, 30, 5)) +>value : Symbol(value, Decl(declFileAccessors_1.ts, 31, 23)) + } + static get nc_s3() { +>nc_s3 : Symbol(c2.nc_s3, Decl(declFileAccessors_1.ts, 32, 5), Decl(declFileAccessors_1.ts, 35, 5)) + + return ""; + } + static set nc_s3(value: string) { +>nc_s3 : Symbol(c2.nc_s3, Decl(declFileAccessors_1.ts, 32, 5), Decl(declFileAccessors_1.ts, 35, 5)) +>value : Symbol(value, Decl(declFileAccessors_1.ts, 36, 21)) + } + + // Only getter property + public get onlyGetter() { +>onlyGetter : Symbol(c2.onlyGetter, Decl(declFileAccessors_1.ts, 37, 5)) + + return 10; + } + + // Only setter property + public set onlySetter(value: number) { +>onlySetter : Symbol(c2.onlySetter, Decl(declFileAccessors_1.ts, 42, 5)) +>value : Symbol(value, Decl(declFileAccessors_1.ts, 45, 26)) + } +} diff --git a/tests/baselines/reference/declFileAccessors(target=es5).types b/tests/baselines/reference/declFileAccessors(target=es5).types new file mode 100644 index 0000000000000..74d3c794bf0e9 --- /dev/null +++ b/tests/baselines/reference/declFileAccessors(target=es5).types @@ -0,0 +1,233 @@ +//// [tests/cases/compiler/declFileAccessors.ts] //// + +=== declFileAccessors_0.ts === +/** This is comment for c1*/ +export class c1 { +>c1 : c1 +> : ^^ + + /** getter property*/ + public get p3() { +>p3 : number +> : ^^^^^^ + + return 10; +>10 : 10 +> : ^^ + } + /** setter property*/ + public set p3(/** this is value*/value: number) { +>p3 : number +> : ^^^^^^ +>value : number +> : ^^^^^^ + } + /** private getter property*/ + private get pp3() { +>pp3 : number +> : ^^^^^^ + + return 10; +>10 : 10 +> : ^^ + } + /** private setter property*/ + private set pp3(/** this is value*/value: number) { +>pp3 : number +> : ^^^^^^ +>value : number +> : ^^^^^^ + } + /** static getter property*/ + static get s3() { +>s3 : number +> : ^^^^^^ + + return 10; +>10 : 10 +> : ^^ + } + /** setter property*/ + static set s3( /** this is value*/value: number) { +>s3 : number +> : ^^^^^^ +>value : number +> : ^^^^^^ + } + public get nc_p3() { +>nc_p3 : number +> : ^^^^^^ + + return 10; +>10 : 10 +> : ^^ + } + public set nc_p3(value: number) { +>nc_p3 : number +> : ^^^^^^ +>value : number +> : ^^^^^^ + } + private get nc_pp3() { +>nc_pp3 : number +> : ^^^^^^ + + return 10; +>10 : 10 +> : ^^ + } + private set nc_pp3(value: number) { +>nc_pp3 : number +> : ^^^^^^ +>value : number +> : ^^^^^^ + } + static get nc_s3() { +>nc_s3 : string +> : ^^^^^^ + + return ""; +>"" : "" +> : ^^ + } + static set nc_s3(value: string) { +>nc_s3 : string +> : ^^^^^^ +>value : string +> : ^^^^^^ + } + + // Only getter property + public get onlyGetter() { +>onlyGetter : number +> : ^^^^^^ + + return 10; +>10 : 10 +> : ^^ + } + + // Only setter property + public set onlySetter(value: number) { +>onlySetter : number +> : ^^^^^^ +>value : number +> : ^^^^^^ + } +} + +=== declFileAccessors_1.ts === +/** This is comment for c2 - the global class*/ +class c2 { +>c2 : c2 +> : ^^ + + /** getter property*/ + public get p3() { +>p3 : number +> : ^^^^^^ + + return 10; +>10 : 10 +> : ^^ + } + /** setter property*/ + public set p3(/** this is value*/value: number) { +>p3 : number +> : ^^^^^^ +>value : number +> : ^^^^^^ + } + /** private getter property*/ + private get pp3() { +>pp3 : number +> : ^^^^^^ + + return 10; +>10 : 10 +> : ^^ + } + /** private setter property*/ + private set pp3(/** this is value*/value: number) { +>pp3 : number +> : ^^^^^^ +>value : number +> : ^^^^^^ + } + /** static getter property*/ + static get s3() { +>s3 : number +> : ^^^^^^ + + return 10; +>10 : 10 +> : ^^ + } + /** setter property*/ + static set s3( /** this is value*/value: number) { +>s3 : number +> : ^^^^^^ +>value : number +> : ^^^^^^ + } + public get nc_p3() { +>nc_p3 : number +> : ^^^^^^ + + return 10; +>10 : 10 +> : ^^ + } + public set nc_p3(value: number) { +>nc_p3 : number +> : ^^^^^^ +>value : number +> : ^^^^^^ + } + private get nc_pp3() { +>nc_pp3 : number +> : ^^^^^^ + + return 10; +>10 : 10 +> : ^^ + } + private set nc_pp3(value: number) { +>nc_pp3 : number +> : ^^^^^^ +>value : number +> : ^^^^^^ + } + static get nc_s3() { +>nc_s3 : string +> : ^^^^^^ + + return ""; +>"" : "" +> : ^^ + } + static set nc_s3(value: string) { +>nc_s3 : string +> : ^^^^^^ +>value : string +> : ^^^^^^ + } + + // Only getter property + public get onlyGetter() { +>onlyGetter : number +> : ^^^^^^ + + return 10; +>10 : 10 +> : ^^ + } + + // Only setter property + public set onlySetter(value: number) { +>onlySetter : number +> : ^^^^^^ +>value : number +> : ^^^^^^ + } +} diff --git a/tests/baselines/reference/declFileCallSignatures.js b/tests/baselines/reference/declFileCallSignatures(target=es2015).js similarity index 100% rename from tests/baselines/reference/declFileCallSignatures.js rename to tests/baselines/reference/declFileCallSignatures(target=es2015).js diff --git a/tests/baselines/reference/declFileCallSignatures.symbols b/tests/baselines/reference/declFileCallSignatures(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/declFileCallSignatures.symbols rename to tests/baselines/reference/declFileCallSignatures(target=es2015).symbols diff --git a/tests/baselines/reference/declFileCallSignatures.types b/tests/baselines/reference/declFileCallSignatures(target=es2015).types similarity index 100% rename from tests/baselines/reference/declFileCallSignatures.types rename to tests/baselines/reference/declFileCallSignatures(target=es2015).types diff --git a/tests/baselines/reference/declFileCallSignatures(target=es5).js b/tests/baselines/reference/declFileCallSignatures(target=es5).js new file mode 100644 index 0000000000000..a0a015591a980 --- /dev/null +++ b/tests/baselines/reference/declFileCallSignatures(target=es5).js @@ -0,0 +1,122 @@ +//// [tests/cases/compiler/declFileCallSignatures.ts] //// + +//// [declFileCallSignatures_0.ts] +export interface ICallSignature { + /** This comment should appear for foo*/ + (): string; +} + +export interface ICallSignatureWithParameters { + /** This is comment for function signature*/ + (/** this is comment about a*/a: string, + /** this is comment for b*/ + b: number): void; +} + +export interface ICallSignatureWithRestParameters { + (a: string, ...rests: string[]): string; +} + +export interface ICallSignatureWithOverloads { + (a: string): string; + (a: number): number; +} + +export interface ICallSignatureWithTypeParameters { + /** This comment should appear for foo*/ + (a: T): string; +} + +export interface ICallSignatureWithOwnTypeParametes { + (a: T): string; +} + +//// [declFileCallSignatures_1.ts] +interface IGlobalCallSignature { + /** This comment should appear for foo*/ + (): string; +} + +interface IGlobalCallSignatureWithParameters { + /** This is comment for function signature*/ + (/** this is comment about a*/a: string, + /** this is comment for b*/ + b: number): void; +} + +interface IGlobalCallSignatureWithRestParameters { + + (a: string, ...rests: string[]): string; + +} + +interface IGlobalCallSignatureWithOverloads { + (a: string): string; + (a: number): number; +} + +interface IGlobalCallSignatureWithTypeParameters { + /** This comment should appear for foo*/ + (a: T): string; +} + +interface IGlobalCallSignatureWithOwnTypeParametes { + (a: T): string; +} + +//// [declFileCallSignatures_0.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//// [declFileCallSignatures_1.js] + + +//// [declFileCallSignatures_0.d.ts] +export interface ICallSignature { + /** This comment should appear for foo*/ + (): string; +} +export interface ICallSignatureWithParameters { + /** This is comment for function signature*/ + (/** this is comment about a*/ a: string, + /** this is comment for b*/ + b: number): void; +} +export interface ICallSignatureWithRestParameters { + (a: string, ...rests: string[]): string; +} +export interface ICallSignatureWithOverloads { + (a: string): string; + (a: number): number; +} +export interface ICallSignatureWithTypeParameters { + /** This comment should appear for foo*/ + (a: T): string; +} +export interface ICallSignatureWithOwnTypeParametes { + (a: T): string; +} +//// [declFileCallSignatures_1.d.ts] +interface IGlobalCallSignature { + /** This comment should appear for foo*/ + (): string; +} +interface IGlobalCallSignatureWithParameters { + /** This is comment for function signature*/ + (/** this is comment about a*/ a: string, + /** this is comment for b*/ + b: number): void; +} +interface IGlobalCallSignatureWithRestParameters { + (a: string, ...rests: string[]): string; +} +interface IGlobalCallSignatureWithOverloads { + (a: string): string; + (a: number): number; +} +interface IGlobalCallSignatureWithTypeParameters { + /** This comment should appear for foo*/ + (a: T): string; +} +interface IGlobalCallSignatureWithOwnTypeParametes { + (a: T): string; +} diff --git a/tests/baselines/reference/declFileCallSignatures(target=es5).symbols b/tests/baselines/reference/declFileCallSignatures(target=es5).symbols new file mode 100644 index 0000000000000..4c3f8baff6d37 --- /dev/null +++ b/tests/baselines/reference/declFileCallSignatures(target=es5).symbols @@ -0,0 +1,118 @@ +//// [tests/cases/compiler/declFileCallSignatures.ts] //// + +=== declFileCallSignatures_0.ts === +export interface ICallSignature { +>ICallSignature : Symbol(ICallSignature, Decl(declFileCallSignatures_0.ts, 0, 0)) + + /** This comment should appear for foo*/ + (): string; +} + +export interface ICallSignatureWithParameters { +>ICallSignatureWithParameters : Symbol(ICallSignatureWithParameters, Decl(declFileCallSignatures_0.ts, 3, 1)) + + /** This is comment for function signature*/ + (/** this is comment about a*/a: string, +>a : Symbol(a, Decl(declFileCallSignatures_0.ts, 7, 5)) + + /** this is comment for b*/ + b: number): void; +>b : Symbol(b, Decl(declFileCallSignatures_0.ts, 7, 44)) +} + +export interface ICallSignatureWithRestParameters { +>ICallSignatureWithRestParameters : Symbol(ICallSignatureWithRestParameters, Decl(declFileCallSignatures_0.ts, 10, 1)) + + (a: string, ...rests: string[]): string; +>a : Symbol(a, Decl(declFileCallSignatures_0.ts, 13, 5)) +>rests : Symbol(rests, Decl(declFileCallSignatures_0.ts, 13, 15)) +} + +export interface ICallSignatureWithOverloads { +>ICallSignatureWithOverloads : Symbol(ICallSignatureWithOverloads, Decl(declFileCallSignatures_0.ts, 14, 1)) + + (a: string): string; +>a : Symbol(a, Decl(declFileCallSignatures_0.ts, 17, 5)) + + (a: number): number; +>a : Symbol(a, Decl(declFileCallSignatures_0.ts, 18, 5)) +} + +export interface ICallSignatureWithTypeParameters { +>ICallSignatureWithTypeParameters : Symbol(ICallSignatureWithTypeParameters, Decl(declFileCallSignatures_0.ts, 19, 1)) +>T : Symbol(T, Decl(declFileCallSignatures_0.ts, 21, 50)) + + /** This comment should appear for foo*/ + (a: T): string; +>a : Symbol(a, Decl(declFileCallSignatures_0.ts, 23, 5)) +>T : Symbol(T, Decl(declFileCallSignatures_0.ts, 21, 50)) +} + +export interface ICallSignatureWithOwnTypeParametes { +>ICallSignatureWithOwnTypeParametes : Symbol(ICallSignatureWithOwnTypeParametes, Decl(declFileCallSignatures_0.ts, 24, 1)) + + (a: T): string; +>T : Symbol(T, Decl(declFileCallSignatures_0.ts, 27, 5)) +>ICallSignature : Symbol(ICallSignature, Decl(declFileCallSignatures_0.ts, 0, 0)) +>a : Symbol(a, Decl(declFileCallSignatures_0.ts, 27, 31)) +>T : Symbol(T, Decl(declFileCallSignatures_0.ts, 27, 5)) +} + +=== declFileCallSignatures_1.ts === +interface IGlobalCallSignature { +>IGlobalCallSignature : Symbol(IGlobalCallSignature, Decl(declFileCallSignatures_1.ts, 0, 0)) + + /** This comment should appear for foo*/ + (): string; +} + +interface IGlobalCallSignatureWithParameters { +>IGlobalCallSignatureWithParameters : Symbol(IGlobalCallSignatureWithParameters, Decl(declFileCallSignatures_1.ts, 3, 1)) + + /** This is comment for function signature*/ + (/** this is comment about a*/a: string, +>a : Symbol(a, Decl(declFileCallSignatures_1.ts, 7, 5)) + + /** this is comment for b*/ + b: number): void; +>b : Symbol(b, Decl(declFileCallSignatures_1.ts, 7, 44)) +} + +interface IGlobalCallSignatureWithRestParameters { +>IGlobalCallSignatureWithRestParameters : Symbol(IGlobalCallSignatureWithRestParameters, Decl(declFileCallSignatures_1.ts, 10, 1)) + + (a: string, ...rests: string[]): string; +>a : Symbol(a, Decl(declFileCallSignatures_1.ts, 14, 5)) +>rests : Symbol(rests, Decl(declFileCallSignatures_1.ts, 14, 15)) + +} + +interface IGlobalCallSignatureWithOverloads { +>IGlobalCallSignatureWithOverloads : Symbol(IGlobalCallSignatureWithOverloads, Decl(declFileCallSignatures_1.ts, 16, 1)) + + (a: string): string; +>a : Symbol(a, Decl(declFileCallSignatures_1.ts, 19, 5)) + + (a: number): number; +>a : Symbol(a, Decl(declFileCallSignatures_1.ts, 20, 5)) +} + +interface IGlobalCallSignatureWithTypeParameters { +>IGlobalCallSignatureWithTypeParameters : Symbol(IGlobalCallSignatureWithTypeParameters, Decl(declFileCallSignatures_1.ts, 21, 1)) +>T : Symbol(T, Decl(declFileCallSignatures_1.ts, 23, 49)) + + /** This comment should appear for foo*/ + (a: T): string; +>a : Symbol(a, Decl(declFileCallSignatures_1.ts, 25, 5)) +>T : Symbol(T, Decl(declFileCallSignatures_1.ts, 23, 49)) +} + +interface IGlobalCallSignatureWithOwnTypeParametes { +>IGlobalCallSignatureWithOwnTypeParametes : Symbol(IGlobalCallSignatureWithOwnTypeParametes, Decl(declFileCallSignatures_1.ts, 26, 1)) + + (a: T): string; +>T : Symbol(T, Decl(declFileCallSignatures_1.ts, 29, 5)) +>IGlobalCallSignature : Symbol(IGlobalCallSignature, Decl(declFileCallSignatures_1.ts, 0, 0)) +>a : Symbol(a, Decl(declFileCallSignatures_1.ts, 29, 37)) +>T : Symbol(T, Decl(declFileCallSignatures_1.ts, 29, 5)) +} diff --git a/tests/baselines/reference/declFileCallSignatures(target=es5).types b/tests/baselines/reference/declFileCallSignatures(target=es5).types new file mode 100644 index 0000000000000..bc3fdbcb41d79 --- /dev/null +++ b/tests/baselines/reference/declFileCallSignatures(target=es5).types @@ -0,0 +1,101 @@ +//// [tests/cases/compiler/declFileCallSignatures.ts] //// + +=== declFileCallSignatures_0.ts === +export interface ICallSignature { + /** This comment should appear for foo*/ + (): string; +} + +export interface ICallSignatureWithParameters { + /** This is comment for function signature*/ + (/** this is comment about a*/a: string, +>a : string +> : ^^^^^^ + + /** this is comment for b*/ + b: number): void; +>b : number +> : ^^^^^^ +} + +export interface ICallSignatureWithRestParameters { + (a: string, ...rests: string[]): string; +>a : string +> : ^^^^^^ +>rests : string[] +> : ^^^^^^^^ +} + +export interface ICallSignatureWithOverloads { + (a: string): string; +>a : string +> : ^^^^^^ + + (a: number): number; +>a : number +> : ^^^^^^ +} + +export interface ICallSignatureWithTypeParameters { + /** This comment should appear for foo*/ + (a: T): string; +>a : T +> : ^ +} + +export interface ICallSignatureWithOwnTypeParametes { + (a: T): string; +>a : T +> : ^ +} + +=== declFileCallSignatures_1.ts === +interface IGlobalCallSignature { + /** This comment should appear for foo*/ + (): string; +} + +interface IGlobalCallSignatureWithParameters { + /** This is comment for function signature*/ + (/** this is comment about a*/a: string, +>a : string +> : ^^^^^^ + + /** this is comment for b*/ + b: number): void; +>b : number +> : ^^^^^^ +} + +interface IGlobalCallSignatureWithRestParameters { + + (a: string, ...rests: string[]): string; +>a : string +> : ^^^^^^ +>rests : string[] +> : ^^^^^^^^ + +} + +interface IGlobalCallSignatureWithOverloads { + (a: string): string; +>a : string +> : ^^^^^^ + + (a: number): number; +>a : number +> : ^^^^^^ +} + +interface IGlobalCallSignatureWithTypeParameters { + /** This comment should appear for foo*/ + (a: T): string; +>a : T +> : ^ +} + +interface IGlobalCallSignatureWithOwnTypeParametes { + (a: T): string; +>a : T +> : ^ +} diff --git a/tests/baselines/reference/declFileClassExtendsNull(target=es2015).js b/tests/baselines/reference/declFileClassExtendsNull(target=es2015).js new file mode 100644 index 0000000000000..56a0bad87ba35 --- /dev/null +++ b/tests/baselines/reference/declFileClassExtendsNull(target=es2015).js @@ -0,0 +1,14 @@ +//// [tests/cases/compiler/declFileClassExtendsNull.ts] //// + +//// [declFileClassExtendsNull.ts] +class ExtendsNull extends null { +} + +//// [declFileClassExtendsNull.js] +class ExtendsNull extends null { +} + + +//// [declFileClassExtendsNull.d.ts] +declare class ExtendsNull extends null { +} diff --git a/tests/baselines/reference/declFileClassExtendsNull.symbols b/tests/baselines/reference/declFileClassExtendsNull(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/declFileClassExtendsNull.symbols rename to tests/baselines/reference/declFileClassExtendsNull(target=es2015).symbols diff --git a/tests/baselines/reference/declFileClassExtendsNull.types b/tests/baselines/reference/declFileClassExtendsNull(target=es2015).types similarity index 100% rename from tests/baselines/reference/declFileClassExtendsNull.types rename to tests/baselines/reference/declFileClassExtendsNull(target=es2015).types diff --git a/tests/baselines/reference/declFileClassExtendsNull.js b/tests/baselines/reference/declFileClassExtendsNull(target=es5).js similarity index 100% rename from tests/baselines/reference/declFileClassExtendsNull.js rename to tests/baselines/reference/declFileClassExtendsNull(target=es5).js diff --git a/tests/baselines/reference/declFileClassExtendsNull(target=es5).symbols b/tests/baselines/reference/declFileClassExtendsNull(target=es5).symbols new file mode 100644 index 0000000000000..026af0e1f7f0f --- /dev/null +++ b/tests/baselines/reference/declFileClassExtendsNull(target=es5).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/compiler/declFileClassExtendsNull.ts] //// + +=== declFileClassExtendsNull.ts === +class ExtendsNull extends null { +>ExtendsNull : Symbol(ExtendsNull, Decl(declFileClassExtendsNull.ts, 0, 0)) +} diff --git a/tests/baselines/reference/declFileClassExtendsNull(target=es5).types b/tests/baselines/reference/declFileClassExtendsNull(target=es5).types new file mode 100644 index 0000000000000..935b37018931c --- /dev/null +++ b/tests/baselines/reference/declFileClassExtendsNull(target=es5).types @@ -0,0 +1,7 @@ +//// [tests/cases/compiler/declFileClassExtendsNull.ts] //// + +=== declFileClassExtendsNull.ts === +class ExtendsNull extends null { +>ExtendsNull : ExtendsNull +> : ^^^^^^^^^^^ +} diff --git a/tests/baselines/reference/declFileConstructSignatures.js b/tests/baselines/reference/declFileConstructSignatures(target=es2015).js similarity index 100% rename from tests/baselines/reference/declFileConstructSignatures.js rename to tests/baselines/reference/declFileConstructSignatures(target=es2015).js diff --git a/tests/baselines/reference/declFileConstructSignatures.symbols b/tests/baselines/reference/declFileConstructSignatures(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/declFileConstructSignatures.symbols rename to tests/baselines/reference/declFileConstructSignatures(target=es2015).symbols diff --git a/tests/baselines/reference/declFileConstructSignatures.types b/tests/baselines/reference/declFileConstructSignatures(target=es2015).types similarity index 100% rename from tests/baselines/reference/declFileConstructSignatures.types rename to tests/baselines/reference/declFileConstructSignatures(target=es2015).types diff --git a/tests/baselines/reference/declFileConstructSignatures(target=es5).js b/tests/baselines/reference/declFileConstructSignatures(target=es5).js new file mode 100644 index 0000000000000..f3b38442381fe --- /dev/null +++ b/tests/baselines/reference/declFileConstructSignatures(target=es5).js @@ -0,0 +1,122 @@ +//// [tests/cases/compiler/declFileConstructSignatures.ts] //// + +//// [declFileConstructSignatures_0.ts] +export interface IConstructSignature { + /** This comment should appear for foo*/ + new (): string; +} + +export interface IConstructSignatureWithParameters { + /** This is comment for function signature*/ + new (/** this is comment about a*/a: string, + /** this is comment for b*/ + b: number); +} + +export interface IConstructSignatureWithRestParameters { + new (a: string, ...rests: string[]): string; +} + +export interface IConstructSignatureWithOverloads { + new (a: string): string; + new (a: number): number; +} + +export interface IConstructSignatureWithTypeParameters { + /** This comment should appear for foo*/ + new (a: T): T; +} + +export interface IConstructSignatureWithOwnTypeParametes { + new (a: T): T; +} + +//// [declFileConstructSignatures_1.ts] +interface IGlobalConstructSignature { + /** This comment should appear for foo*/ + new (): string; +} + +interface IGlobalConstructSignatureWithParameters { + /** This is comment for function signature*/ + new (/** this is comment about a*/a: string, + /** this is comment for b*/ + b: number); +} + +interface IGlobalConstructSignatureWithRestParameters { + + new (a: string, ...rests: string[]): string; + +} + +interface IGlobalConstructSignatureWithOverloads { + new (a: string): string; + new (a: number): number; +} + +interface IGlobalConstructSignatureWithTypeParameters { + /** This comment should appear for foo*/ + new (a: T): T; +} + +interface IGlobalConstructSignatureWithOwnTypeParametes { + new (a: T): T; +} + +//// [declFileConstructSignatures_0.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//// [declFileConstructSignatures_1.js] + + +//// [declFileConstructSignatures_0.d.ts] +export interface IConstructSignature { + /** This comment should appear for foo*/ + new (): string; +} +export interface IConstructSignatureWithParameters { + /** This is comment for function signature*/ + new (/** this is comment about a*/ a: string, + /** this is comment for b*/ + b: number): any; +} +export interface IConstructSignatureWithRestParameters { + new (a: string, ...rests: string[]): string; +} +export interface IConstructSignatureWithOverloads { + new (a: string): string; + new (a: number): number; +} +export interface IConstructSignatureWithTypeParameters { + /** This comment should appear for foo*/ + new (a: T): T; +} +export interface IConstructSignatureWithOwnTypeParametes { + new (a: T): T; +} +//// [declFileConstructSignatures_1.d.ts] +interface IGlobalConstructSignature { + /** This comment should appear for foo*/ + new (): string; +} +interface IGlobalConstructSignatureWithParameters { + /** This is comment for function signature*/ + new (/** this is comment about a*/ a: string, + /** this is comment for b*/ + b: number): any; +} +interface IGlobalConstructSignatureWithRestParameters { + new (a: string, ...rests: string[]): string; +} +interface IGlobalConstructSignatureWithOverloads { + new (a: string): string; + new (a: number): number; +} +interface IGlobalConstructSignatureWithTypeParameters { + /** This comment should appear for foo*/ + new (a: T): T; +} +interface IGlobalConstructSignatureWithOwnTypeParametes { + new (a: T): T; +} diff --git a/tests/baselines/reference/declFileConstructSignatures(target=es5).symbols b/tests/baselines/reference/declFileConstructSignatures(target=es5).symbols new file mode 100644 index 0000000000000..a27080823a96e --- /dev/null +++ b/tests/baselines/reference/declFileConstructSignatures(target=es5).symbols @@ -0,0 +1,122 @@ +//// [tests/cases/compiler/declFileConstructSignatures.ts] //// + +=== declFileConstructSignatures_0.ts === +export interface IConstructSignature { +>IConstructSignature : Symbol(IConstructSignature, Decl(declFileConstructSignatures_0.ts, 0, 0)) + + /** This comment should appear for foo*/ + new (): string; +} + +export interface IConstructSignatureWithParameters { +>IConstructSignatureWithParameters : Symbol(IConstructSignatureWithParameters, Decl(declFileConstructSignatures_0.ts, 3, 1)) + + /** This is comment for function signature*/ + new (/** this is comment about a*/a: string, +>a : Symbol(a, Decl(declFileConstructSignatures_0.ts, 7, 9)) + + /** this is comment for b*/ + b: number); +>b : Symbol(b, Decl(declFileConstructSignatures_0.ts, 7, 48)) +} + +export interface IConstructSignatureWithRestParameters { +>IConstructSignatureWithRestParameters : Symbol(IConstructSignatureWithRestParameters, Decl(declFileConstructSignatures_0.ts, 10, 1)) + + new (a: string, ...rests: string[]): string; +>a : Symbol(a, Decl(declFileConstructSignatures_0.ts, 13, 9)) +>rests : Symbol(rests, Decl(declFileConstructSignatures_0.ts, 13, 19)) +} + +export interface IConstructSignatureWithOverloads { +>IConstructSignatureWithOverloads : Symbol(IConstructSignatureWithOverloads, Decl(declFileConstructSignatures_0.ts, 14, 1)) + + new (a: string): string; +>a : Symbol(a, Decl(declFileConstructSignatures_0.ts, 17, 9)) + + new (a: number): number; +>a : Symbol(a, Decl(declFileConstructSignatures_0.ts, 18, 9)) +} + +export interface IConstructSignatureWithTypeParameters { +>IConstructSignatureWithTypeParameters : Symbol(IConstructSignatureWithTypeParameters, Decl(declFileConstructSignatures_0.ts, 19, 1)) +>T : Symbol(T, Decl(declFileConstructSignatures_0.ts, 21, 55)) + + /** This comment should appear for foo*/ + new (a: T): T; +>a : Symbol(a, Decl(declFileConstructSignatures_0.ts, 23, 9)) +>T : Symbol(T, Decl(declFileConstructSignatures_0.ts, 21, 55)) +>T : Symbol(T, Decl(declFileConstructSignatures_0.ts, 21, 55)) +} + +export interface IConstructSignatureWithOwnTypeParametes { +>IConstructSignatureWithOwnTypeParametes : Symbol(IConstructSignatureWithOwnTypeParametes, Decl(declFileConstructSignatures_0.ts, 24, 1)) + + new (a: T): T; +>T : Symbol(T, Decl(declFileConstructSignatures_0.ts, 27, 9)) +>IConstructSignature : Symbol(IConstructSignature, Decl(declFileConstructSignatures_0.ts, 0, 0)) +>a : Symbol(a, Decl(declFileConstructSignatures_0.ts, 27, 40)) +>T : Symbol(T, Decl(declFileConstructSignatures_0.ts, 27, 9)) +>T : Symbol(T, Decl(declFileConstructSignatures_0.ts, 27, 9)) +} + +=== declFileConstructSignatures_1.ts === +interface IGlobalConstructSignature { +>IGlobalConstructSignature : Symbol(IGlobalConstructSignature, Decl(declFileConstructSignatures_1.ts, 0, 0)) + + /** This comment should appear for foo*/ + new (): string; +} + +interface IGlobalConstructSignatureWithParameters { +>IGlobalConstructSignatureWithParameters : Symbol(IGlobalConstructSignatureWithParameters, Decl(declFileConstructSignatures_1.ts, 3, 1)) + + /** This is comment for function signature*/ + new (/** this is comment about a*/a: string, +>a : Symbol(a, Decl(declFileConstructSignatures_1.ts, 7, 9)) + + /** this is comment for b*/ + b: number); +>b : Symbol(b, Decl(declFileConstructSignatures_1.ts, 7, 48)) +} + +interface IGlobalConstructSignatureWithRestParameters { +>IGlobalConstructSignatureWithRestParameters : Symbol(IGlobalConstructSignatureWithRestParameters, Decl(declFileConstructSignatures_1.ts, 10, 1)) + + new (a: string, ...rests: string[]): string; +>a : Symbol(a, Decl(declFileConstructSignatures_1.ts, 14, 9)) +>rests : Symbol(rests, Decl(declFileConstructSignatures_1.ts, 14, 19)) + +} + +interface IGlobalConstructSignatureWithOverloads { +>IGlobalConstructSignatureWithOverloads : Symbol(IGlobalConstructSignatureWithOverloads, Decl(declFileConstructSignatures_1.ts, 16, 1)) + + new (a: string): string; +>a : Symbol(a, Decl(declFileConstructSignatures_1.ts, 19, 9)) + + new (a: number): number; +>a : Symbol(a, Decl(declFileConstructSignatures_1.ts, 20, 9)) +} + +interface IGlobalConstructSignatureWithTypeParameters { +>IGlobalConstructSignatureWithTypeParameters : Symbol(IGlobalConstructSignatureWithTypeParameters, Decl(declFileConstructSignatures_1.ts, 21, 1)) +>T : Symbol(T, Decl(declFileConstructSignatures_1.ts, 23, 54)) + + /** This comment should appear for foo*/ + new (a: T): T; +>a : Symbol(a, Decl(declFileConstructSignatures_1.ts, 25, 9)) +>T : Symbol(T, Decl(declFileConstructSignatures_1.ts, 23, 54)) +>T : Symbol(T, Decl(declFileConstructSignatures_1.ts, 23, 54)) +} + +interface IGlobalConstructSignatureWithOwnTypeParametes { +>IGlobalConstructSignatureWithOwnTypeParametes : Symbol(IGlobalConstructSignatureWithOwnTypeParametes, Decl(declFileConstructSignatures_1.ts, 26, 1)) + + new (a: T): T; +>T : Symbol(T, Decl(declFileConstructSignatures_1.ts, 29, 9)) +>IGlobalConstructSignature : Symbol(IGlobalConstructSignature, Decl(declFileConstructSignatures_1.ts, 0, 0)) +>a : Symbol(a, Decl(declFileConstructSignatures_1.ts, 29, 46)) +>T : Symbol(T, Decl(declFileConstructSignatures_1.ts, 29, 9)) +>T : Symbol(T, Decl(declFileConstructSignatures_1.ts, 29, 9)) +} diff --git a/tests/baselines/reference/declFileConstructSignatures(target=es5).types b/tests/baselines/reference/declFileConstructSignatures(target=es5).types new file mode 100644 index 0000000000000..9c58f3745280c --- /dev/null +++ b/tests/baselines/reference/declFileConstructSignatures(target=es5).types @@ -0,0 +1,101 @@ +//// [tests/cases/compiler/declFileConstructSignatures.ts] //// + +=== declFileConstructSignatures_0.ts === +export interface IConstructSignature { + /** This comment should appear for foo*/ + new (): string; +} + +export interface IConstructSignatureWithParameters { + /** This is comment for function signature*/ + new (/** this is comment about a*/a: string, +>a : string +> : ^^^^^^ + + /** this is comment for b*/ + b: number); +>b : number +> : ^^^^^^ +} + +export interface IConstructSignatureWithRestParameters { + new (a: string, ...rests: string[]): string; +>a : string +> : ^^^^^^ +>rests : string[] +> : ^^^^^^^^ +} + +export interface IConstructSignatureWithOverloads { + new (a: string): string; +>a : string +> : ^^^^^^ + + new (a: number): number; +>a : number +> : ^^^^^^ +} + +export interface IConstructSignatureWithTypeParameters { + /** This comment should appear for foo*/ + new (a: T): T; +>a : T +> : ^ +} + +export interface IConstructSignatureWithOwnTypeParametes { + new (a: T): T; +>a : T +> : ^ +} + +=== declFileConstructSignatures_1.ts === +interface IGlobalConstructSignature { + /** This comment should appear for foo*/ + new (): string; +} + +interface IGlobalConstructSignatureWithParameters { + /** This is comment for function signature*/ + new (/** this is comment about a*/a: string, +>a : string +> : ^^^^^^ + + /** this is comment for b*/ + b: number); +>b : number +> : ^^^^^^ +} + +interface IGlobalConstructSignatureWithRestParameters { + + new (a: string, ...rests: string[]): string; +>a : string +> : ^^^^^^ +>rests : string[] +> : ^^^^^^^^ + +} + +interface IGlobalConstructSignatureWithOverloads { + new (a: string): string; +>a : string +> : ^^^^^^ + + new (a: number): number; +>a : number +> : ^^^^^^ +} + +interface IGlobalConstructSignatureWithTypeParameters { + /** This comment should appear for foo*/ + new (a: T): T; +>a : T +> : ^ +} + +interface IGlobalConstructSignatureWithOwnTypeParametes { + new (a: T): T; +>a : T +> : ^ +} diff --git a/tests/baselines/reference/declFileConstructors(target=es2015).js b/tests/baselines/reference/declFileConstructors(target=es2015).js new file mode 100644 index 0000000000000..702e6fdf74e61 --- /dev/null +++ b/tests/baselines/reference/declFileConstructors(target=es2015).js @@ -0,0 +1,265 @@ +//// [tests/cases/compiler/declFileConstructors.ts] //// + +//// [declFileConstructors_0.ts] +export class SimpleConstructor { + /** This comment should appear for foo*/ + constructor() { + } +} +export class ConstructorWithParameters { + /** This is comment for function signature*/ + constructor(/** this is comment about a*/a: string, + /** this is comment for b*/ + b: number) { + var d = a; + } +} + +export class ConstructorWithRestParamters { + constructor(a: string, ...rests: string[]) { + return a + rests.join(""); + } +} + +export class ConstructorWithOverloads { + constructor(a: string); + constructor(a: number); + constructor(a: any) { + } +} + +export class ConstructorWithPublicParameterProperty { + constructor(public x: string) { + } +} + +export class ConstructorWithPrivateParameterProperty { + constructor(private x: string) { + } +} + +export class ConstructorWithOptionalParameterProperty { + constructor(public x?: string) { + } +} + +export class ConstructorWithParameterInitializer { + constructor(public x = "hello") { + } +} + +//// [declFileConstructors_1.ts] +class GlobalSimpleConstructor { + /** This comment should appear for foo*/ + constructor() { + } +} +class GlobalConstructorWithParameters { + /** This is comment for function signature*/ + constructor(/** this is comment about a*/a: string, + /** this is comment for b*/ + b: number) { + var d = a; + } +} + +class GlobalConstructorWithRestParamters { + constructor(a: string, ...rests: string[]) { + return a + rests.join(""); + } +} + +class GlobalConstructorWithOverloads { + constructor(a: string); + constructor(a: number); + constructor(a: any) { + } +} + +class GlobalConstructorWithPublicParameterProperty { + constructor(public x: string) { + } +} + +class GlobalConstructorWithPrivateParameterProperty { + constructor(private x: string) { + } +} + +class GlobalConstructorWithOptionalParameterProperty { + constructor(public x?: string) { + } +} + +class GlobalConstructorWithParameterInitializer { + constructor(public x = "hello") { + } +} + +//// [declFileConstructors_0.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ConstructorWithParameterInitializer = exports.ConstructorWithOptionalParameterProperty = exports.ConstructorWithPrivateParameterProperty = exports.ConstructorWithPublicParameterProperty = exports.ConstructorWithOverloads = exports.ConstructorWithRestParamters = exports.ConstructorWithParameters = exports.SimpleConstructor = void 0; +class SimpleConstructor { + /** This comment should appear for foo*/ + constructor() { + } +} +exports.SimpleConstructor = SimpleConstructor; +class ConstructorWithParameters { + /** This is comment for function signature*/ + constructor(/** this is comment about a*/ a, + /** this is comment for b*/ + b) { + var d = a; + } +} +exports.ConstructorWithParameters = ConstructorWithParameters; +class ConstructorWithRestParamters { + constructor(a, ...rests) { + return a + rests.join(""); + } +} +exports.ConstructorWithRestParamters = ConstructorWithRestParamters; +class ConstructorWithOverloads { + constructor(a) { + } +} +exports.ConstructorWithOverloads = ConstructorWithOverloads; +class ConstructorWithPublicParameterProperty { + constructor(x) { + this.x = x; + } +} +exports.ConstructorWithPublicParameterProperty = ConstructorWithPublicParameterProperty; +class ConstructorWithPrivateParameterProperty { + constructor(x) { + this.x = x; + } +} +exports.ConstructorWithPrivateParameterProperty = ConstructorWithPrivateParameterProperty; +class ConstructorWithOptionalParameterProperty { + constructor(x) { + this.x = x; + } +} +exports.ConstructorWithOptionalParameterProperty = ConstructorWithOptionalParameterProperty; +class ConstructorWithParameterInitializer { + constructor(x = "hello") { + this.x = x; + } +} +exports.ConstructorWithParameterInitializer = ConstructorWithParameterInitializer; +//// [declFileConstructors_1.js] +class GlobalSimpleConstructor { + /** This comment should appear for foo*/ + constructor() { + } +} +class GlobalConstructorWithParameters { + /** This is comment for function signature*/ + constructor(/** this is comment about a*/ a, + /** this is comment for b*/ + b) { + var d = a; + } +} +class GlobalConstructorWithRestParamters { + constructor(a, ...rests) { + return a + rests.join(""); + } +} +class GlobalConstructorWithOverloads { + constructor(a) { + } +} +class GlobalConstructorWithPublicParameterProperty { + constructor(x) { + this.x = x; + } +} +class GlobalConstructorWithPrivateParameterProperty { + constructor(x) { + this.x = x; + } +} +class GlobalConstructorWithOptionalParameterProperty { + constructor(x) { + this.x = x; + } +} +class GlobalConstructorWithParameterInitializer { + constructor(x = "hello") { + this.x = x; + } +} + + +//// [declFileConstructors_0.d.ts] +export declare class SimpleConstructor { + /** This comment should appear for foo*/ + constructor(); +} +export declare class ConstructorWithParameters { + /** This is comment for function signature*/ + constructor(/** this is comment about a*/ a: string, + /** this is comment for b*/ + b: number); +} +export declare class ConstructorWithRestParamters { + constructor(a: string, ...rests: string[]); +} +export declare class ConstructorWithOverloads { + constructor(a: string); + constructor(a: number); +} +export declare class ConstructorWithPublicParameterProperty { + x: string; + constructor(x: string); +} +export declare class ConstructorWithPrivateParameterProperty { + private x; + constructor(x: string); +} +export declare class ConstructorWithOptionalParameterProperty { + x?: string; + constructor(x?: string); +} +export declare class ConstructorWithParameterInitializer { + x: string; + constructor(x?: string); +} +//// [declFileConstructors_1.d.ts] +declare class GlobalSimpleConstructor { + /** This comment should appear for foo*/ + constructor(); +} +declare class GlobalConstructorWithParameters { + /** This is comment for function signature*/ + constructor(/** this is comment about a*/ a: string, + /** this is comment for b*/ + b: number); +} +declare class GlobalConstructorWithRestParamters { + constructor(a: string, ...rests: string[]); +} +declare class GlobalConstructorWithOverloads { + constructor(a: string); + constructor(a: number); +} +declare class GlobalConstructorWithPublicParameterProperty { + x: string; + constructor(x: string); +} +declare class GlobalConstructorWithPrivateParameterProperty { + private x; + constructor(x: string); +} +declare class GlobalConstructorWithOptionalParameterProperty { + x?: string; + constructor(x?: string); +} +declare class GlobalConstructorWithParameterInitializer { + x: string; + constructor(x?: string); +} diff --git a/tests/baselines/reference/declFileConstructors.symbols b/tests/baselines/reference/declFileConstructors(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/declFileConstructors.symbols rename to tests/baselines/reference/declFileConstructors(target=es2015).symbols diff --git a/tests/baselines/reference/declFileConstructors.types b/tests/baselines/reference/declFileConstructors(target=es2015).types similarity index 100% rename from tests/baselines/reference/declFileConstructors.types rename to tests/baselines/reference/declFileConstructors(target=es2015).types diff --git a/tests/baselines/reference/declFileConstructors.js b/tests/baselines/reference/declFileConstructors(target=es5).js similarity index 100% rename from tests/baselines/reference/declFileConstructors.js rename to tests/baselines/reference/declFileConstructors(target=es5).js diff --git a/tests/baselines/reference/declFileConstructors(target=es5).symbols b/tests/baselines/reference/declFileConstructors(target=es5).symbols new file mode 100644 index 0000000000000..4ad92d2762724 --- /dev/null +++ b/tests/baselines/reference/declFileConstructors(target=es5).symbols @@ -0,0 +1,173 @@ +//// [tests/cases/compiler/declFileConstructors.ts] //// + +=== declFileConstructors_0.ts === +export class SimpleConstructor { +>SimpleConstructor : Symbol(SimpleConstructor, Decl(declFileConstructors_0.ts, 0, 0)) + + /** This comment should appear for foo*/ + constructor() { + } +} +export class ConstructorWithParameters { +>ConstructorWithParameters : Symbol(ConstructorWithParameters, Decl(declFileConstructors_0.ts, 4, 1)) + + /** This is comment for function signature*/ + constructor(/** this is comment about a*/a: string, +>a : Symbol(a, Decl(declFileConstructors_0.ts, 7, 16)) + + /** this is comment for b*/ + b: number) { +>b : Symbol(b, Decl(declFileConstructors_0.ts, 7, 55)) + + var d = a; +>d : Symbol(d, Decl(declFileConstructors_0.ts, 10, 11)) +>a : Symbol(a, Decl(declFileConstructors_0.ts, 7, 16)) + } +} + +export class ConstructorWithRestParamters { +>ConstructorWithRestParamters : Symbol(ConstructorWithRestParamters, Decl(declFileConstructors_0.ts, 12, 1)) + + constructor(a: string, ...rests: string[]) { +>a : Symbol(a, Decl(declFileConstructors_0.ts, 15, 16)) +>rests : Symbol(rests, Decl(declFileConstructors_0.ts, 15, 26)) + + return a + rests.join(""); +>a : Symbol(a, Decl(declFileConstructors_0.ts, 15, 16)) +>rests.join : Symbol(Array.join, Decl(lib.es5.d.ts, --, --)) +>rests : Symbol(rests, Decl(declFileConstructors_0.ts, 15, 26)) +>join : Symbol(Array.join, Decl(lib.es5.d.ts, --, --)) + } +} + +export class ConstructorWithOverloads { +>ConstructorWithOverloads : Symbol(ConstructorWithOverloads, Decl(declFileConstructors_0.ts, 18, 1)) + + constructor(a: string); +>a : Symbol(a, Decl(declFileConstructors_0.ts, 21, 16)) + + constructor(a: number); +>a : Symbol(a, Decl(declFileConstructors_0.ts, 22, 16)) + + constructor(a: any) { +>a : Symbol(a, Decl(declFileConstructors_0.ts, 23, 16)) + } +} + +export class ConstructorWithPublicParameterProperty { +>ConstructorWithPublicParameterProperty : Symbol(ConstructorWithPublicParameterProperty, Decl(declFileConstructors_0.ts, 25, 1)) + + constructor(public x: string) { +>x : Symbol(ConstructorWithPublicParameterProperty.x, Decl(declFileConstructors_0.ts, 28, 16)) + } +} + +export class ConstructorWithPrivateParameterProperty { +>ConstructorWithPrivateParameterProperty : Symbol(ConstructorWithPrivateParameterProperty, Decl(declFileConstructors_0.ts, 30, 1)) + + constructor(private x: string) { +>x : Symbol(ConstructorWithPrivateParameterProperty.x, Decl(declFileConstructors_0.ts, 33, 16)) + } +} + +export class ConstructorWithOptionalParameterProperty { +>ConstructorWithOptionalParameterProperty : Symbol(ConstructorWithOptionalParameterProperty, Decl(declFileConstructors_0.ts, 35, 1)) + + constructor(public x?: string) { +>x : Symbol(ConstructorWithOptionalParameterProperty.x, Decl(declFileConstructors_0.ts, 38, 16)) + } +} + +export class ConstructorWithParameterInitializer { +>ConstructorWithParameterInitializer : Symbol(ConstructorWithParameterInitializer, Decl(declFileConstructors_0.ts, 40, 1)) + + constructor(public x = "hello") { +>x : Symbol(ConstructorWithParameterInitializer.x, Decl(declFileConstructors_0.ts, 43, 16)) + } +} + +=== declFileConstructors_1.ts === +class GlobalSimpleConstructor { +>GlobalSimpleConstructor : Symbol(GlobalSimpleConstructor, Decl(declFileConstructors_1.ts, 0, 0)) + + /** This comment should appear for foo*/ + constructor() { + } +} +class GlobalConstructorWithParameters { +>GlobalConstructorWithParameters : Symbol(GlobalConstructorWithParameters, Decl(declFileConstructors_1.ts, 4, 1)) + + /** This is comment for function signature*/ + constructor(/** this is comment about a*/a: string, +>a : Symbol(a, Decl(declFileConstructors_1.ts, 7, 16)) + + /** this is comment for b*/ + b: number) { +>b : Symbol(b, Decl(declFileConstructors_1.ts, 7, 55)) + + var d = a; +>d : Symbol(d, Decl(declFileConstructors_1.ts, 10, 11)) +>a : Symbol(a, Decl(declFileConstructors_1.ts, 7, 16)) + } +} + +class GlobalConstructorWithRestParamters { +>GlobalConstructorWithRestParamters : Symbol(GlobalConstructorWithRestParamters, Decl(declFileConstructors_1.ts, 12, 1)) + + constructor(a: string, ...rests: string[]) { +>a : Symbol(a, Decl(declFileConstructors_1.ts, 15, 16)) +>rests : Symbol(rests, Decl(declFileConstructors_1.ts, 15, 26)) + + return a + rests.join(""); +>a : Symbol(a, Decl(declFileConstructors_1.ts, 15, 16)) +>rests.join : Symbol(Array.join, Decl(lib.es5.d.ts, --, --)) +>rests : Symbol(rests, Decl(declFileConstructors_1.ts, 15, 26)) +>join : Symbol(Array.join, Decl(lib.es5.d.ts, --, --)) + } +} + +class GlobalConstructorWithOverloads { +>GlobalConstructorWithOverloads : Symbol(GlobalConstructorWithOverloads, Decl(declFileConstructors_1.ts, 18, 1)) + + constructor(a: string); +>a : Symbol(a, Decl(declFileConstructors_1.ts, 21, 16)) + + constructor(a: number); +>a : Symbol(a, Decl(declFileConstructors_1.ts, 22, 16)) + + constructor(a: any) { +>a : Symbol(a, Decl(declFileConstructors_1.ts, 23, 16)) + } +} + +class GlobalConstructorWithPublicParameterProperty { +>GlobalConstructorWithPublicParameterProperty : Symbol(GlobalConstructorWithPublicParameterProperty, Decl(declFileConstructors_1.ts, 25, 1)) + + constructor(public x: string) { +>x : Symbol(GlobalConstructorWithPublicParameterProperty.x, Decl(declFileConstructors_1.ts, 28, 16)) + } +} + +class GlobalConstructorWithPrivateParameterProperty { +>GlobalConstructorWithPrivateParameterProperty : Symbol(GlobalConstructorWithPrivateParameterProperty, Decl(declFileConstructors_1.ts, 30, 1)) + + constructor(private x: string) { +>x : Symbol(GlobalConstructorWithPrivateParameterProperty.x, Decl(declFileConstructors_1.ts, 33, 16)) + } +} + +class GlobalConstructorWithOptionalParameterProperty { +>GlobalConstructorWithOptionalParameterProperty : Symbol(GlobalConstructorWithOptionalParameterProperty, Decl(declFileConstructors_1.ts, 35, 1)) + + constructor(public x?: string) { +>x : Symbol(GlobalConstructorWithOptionalParameterProperty.x, Decl(declFileConstructors_1.ts, 38, 16)) + } +} + +class GlobalConstructorWithParameterInitializer { +>GlobalConstructorWithParameterInitializer : Symbol(GlobalConstructorWithParameterInitializer, Decl(declFileConstructors_1.ts, 40, 1)) + + constructor(public x = "hello") { +>x : Symbol(GlobalConstructorWithParameterInitializer.x, Decl(declFileConstructors_1.ts, 43, 16)) + } +} diff --git a/tests/baselines/reference/declFileConstructors(target=es5).types b/tests/baselines/reference/declFileConstructors(target=es5).types new file mode 100644 index 0000000000000..87c70f851a3b7 --- /dev/null +++ b/tests/baselines/reference/declFileConstructors(target=es5).types @@ -0,0 +1,237 @@ +//// [tests/cases/compiler/declFileConstructors.ts] //// + +=== declFileConstructors_0.ts === +export class SimpleConstructor { +>SimpleConstructor : SimpleConstructor +> : ^^^^^^^^^^^^^^^^^ + + /** This comment should appear for foo*/ + constructor() { + } +} +export class ConstructorWithParameters { +>ConstructorWithParameters : ConstructorWithParameters +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ + + /** This is comment for function signature*/ + constructor(/** this is comment about a*/a: string, +>a : string +> : ^^^^^^ + + /** this is comment for b*/ + b: number) { +>b : number +> : ^^^^^^ + + var d = a; +>d : string +> : ^^^^^^ +>a : string +> : ^^^^^^ + } +} + +export class ConstructorWithRestParamters { +>ConstructorWithRestParamters : ConstructorWithRestParamters +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + constructor(a: string, ...rests: string[]) { +>a : string +> : ^^^^^^ +>rests : string[] +> : ^^^^^^^^ + + return a + rests.join(""); +>a + rests.join("") : string +> : ^^^^^^ +>a : string +> : ^^^^^^ +>rests.join("") : string +> : ^^^^^^ +>rests.join : (separator?: string) => string +> : ^ ^^^ ^^^^^ +>rests : string[] +> : ^^^^^^^^ +>join : (separator?: string) => string +> : ^ ^^^ ^^^^^ +>"" : "" +> : ^^ + } +} + +export class ConstructorWithOverloads { +>ConstructorWithOverloads : ConstructorWithOverloads +> : ^^^^^^^^^^^^^^^^^^^^^^^^ + + constructor(a: string); +>a : string +> : ^^^^^^ + + constructor(a: number); +>a : number +> : ^^^^^^ + + constructor(a: any) { +>a : any + } +} + +export class ConstructorWithPublicParameterProperty { +>ConstructorWithPublicParameterProperty : ConstructorWithPublicParameterProperty +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + constructor(public x: string) { +>x : string +> : ^^^^^^ + } +} + +export class ConstructorWithPrivateParameterProperty { +>ConstructorWithPrivateParameterProperty : ConstructorWithPrivateParameterProperty +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + constructor(private x: string) { +>x : string +> : ^^^^^^ + } +} + +export class ConstructorWithOptionalParameterProperty { +>ConstructorWithOptionalParameterProperty : ConstructorWithOptionalParameterProperty +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + constructor(public x?: string) { +>x : string +> : ^^^^^^ + } +} + +export class ConstructorWithParameterInitializer { +>ConstructorWithParameterInitializer : ConstructorWithParameterInitializer +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + constructor(public x = "hello") { +>x : string +> : ^^^^^^ +>"hello" : "hello" +> : ^^^^^^^ + } +} + +=== declFileConstructors_1.ts === +class GlobalSimpleConstructor { +>GlobalSimpleConstructor : GlobalSimpleConstructor +> : ^^^^^^^^^^^^^^^^^^^^^^^ + + /** This comment should appear for foo*/ + constructor() { + } +} +class GlobalConstructorWithParameters { +>GlobalConstructorWithParameters : GlobalConstructorWithParameters +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + /** This is comment for function signature*/ + constructor(/** this is comment about a*/a: string, +>a : string +> : ^^^^^^ + + /** this is comment for b*/ + b: number) { +>b : number +> : ^^^^^^ + + var d = a; +>d : string +> : ^^^^^^ +>a : string +> : ^^^^^^ + } +} + +class GlobalConstructorWithRestParamters { +>GlobalConstructorWithRestParamters : GlobalConstructorWithRestParamters +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + constructor(a: string, ...rests: string[]) { +>a : string +> : ^^^^^^ +>rests : string[] +> : ^^^^^^^^ + + return a + rests.join(""); +>a + rests.join("") : string +> : ^^^^^^ +>a : string +> : ^^^^^^ +>rests.join("") : string +> : ^^^^^^ +>rests.join : (separator?: string) => string +> : ^ ^^^ ^^^^^ +>rests : string[] +> : ^^^^^^^^ +>join : (separator?: string) => string +> : ^ ^^^ ^^^^^ +>"" : "" +> : ^^ + } +} + +class GlobalConstructorWithOverloads { +>GlobalConstructorWithOverloads : GlobalConstructorWithOverloads +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + constructor(a: string); +>a : string +> : ^^^^^^ + + constructor(a: number); +>a : number +> : ^^^^^^ + + constructor(a: any) { +>a : any + } +} + +class GlobalConstructorWithPublicParameterProperty { +>GlobalConstructorWithPublicParameterProperty : GlobalConstructorWithPublicParameterProperty +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + constructor(public x: string) { +>x : string +> : ^^^^^^ + } +} + +class GlobalConstructorWithPrivateParameterProperty { +>GlobalConstructorWithPrivateParameterProperty : GlobalConstructorWithPrivateParameterProperty +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + constructor(private x: string) { +>x : string +> : ^^^^^^ + } +} + +class GlobalConstructorWithOptionalParameterProperty { +>GlobalConstructorWithOptionalParameterProperty : GlobalConstructorWithOptionalParameterProperty +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + constructor(public x?: string) { +>x : string +> : ^^^^^^ + } +} + +class GlobalConstructorWithParameterInitializer { +>GlobalConstructorWithParameterInitializer : GlobalConstructorWithParameterInitializer +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + constructor(public x = "hello") { +>x : string +> : ^^^^^^ +>"hello" : "hello" +> : ^^^^^^^ + } +} diff --git a/tests/baselines/reference/declFileFunctions(target=es2015).js b/tests/baselines/reference/declFileFunctions(target=es2015).js new file mode 100644 index 0000000000000..6409d6c32ad60 --- /dev/null +++ b/tests/baselines/reference/declFileFunctions(target=es2015).js @@ -0,0 +1,178 @@ +//// [tests/cases/compiler/declFileFunctions.ts] //// + +//// [declFileFunctions_0.ts] +/** This comment should appear for foo*/ +export function foo() { +} +/** This is comment for function signature*/ +export function fooWithParameters(/** this is comment about a*/a: string, + /** this is comment for b*/ + b: number) { + var d = a; +} +export function fooWithRestParameters(a: string, ...rests: string[]) { + return a + rests.join(""); +} + +export function fooWithOverloads(a: string): string; +export function fooWithOverloads(a: number): number; +export function fooWithOverloads(a: any): any { + return a; +} + +export function fooWithSingleOverload(a: string): string; +export function fooWithSingleOverload(a: any) { + return a; +} + +export function fooWithTypePredicate(a: any): a is number { + return true; +} +export function fooWithTypePredicateAndMulitpleParams(a: any, b: any, c: any): a is number { + return true; +} +export function fooWithTypeTypePredicateAndGeneric(a: any): a is T { + return true; +} +export function fooWithTypeTypePredicateAndRestParam(a: any, ...rest): a is number { + return true; +} + +/** This comment should appear for nonExportedFoo*/ +function nonExportedFoo() { +} +/** This is comment for function signature*/ +function nonExportedFooWithParameters(/** this is comment about a*/a: string, + /** this is comment for b*/ + b: number) { + var d = a; +} +function nonExportedFooWithRestParameters(a: string, ...rests: string[]) { + return a + rests.join(""); +} + +function nonExportedFooWithOverloads(a: string): string; +function nonExportedFooWithOverloads(a: number): number; +function nonExportedFooWithOverloads(a: any): any { + return a; +} + +//// [declFileFunctions_1.ts] +/** This comment should appear for foo*/ +function globalfoo() { +} +/** This is comment for function signature*/ +function globalfooWithParameters(/** this is comment about a*/a: string, + /** this is comment for b*/ + b: number) { + var d = a; +} +function globalfooWithRestParameters(a: string, ...rests: string[]) { + return a + rests.join(""); +} +function globalfooWithOverloads(a: string): string; +function globalfooWithOverloads(a: number): number; +function globalfooWithOverloads(a: any): any { + return a; +} + +//// [declFileFunctions_0.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.foo = foo; +exports.fooWithParameters = fooWithParameters; +exports.fooWithRestParameters = fooWithRestParameters; +exports.fooWithOverloads = fooWithOverloads; +exports.fooWithSingleOverload = fooWithSingleOverload; +exports.fooWithTypePredicate = fooWithTypePredicate; +exports.fooWithTypePredicateAndMulitpleParams = fooWithTypePredicateAndMulitpleParams; +exports.fooWithTypeTypePredicateAndGeneric = fooWithTypeTypePredicateAndGeneric; +exports.fooWithTypeTypePredicateAndRestParam = fooWithTypeTypePredicateAndRestParam; +/** This comment should appear for foo*/ +function foo() { +} +/** This is comment for function signature*/ +function fooWithParameters(/** this is comment about a*/ a, +/** this is comment for b*/ +b) { + var d = a; +} +function fooWithRestParameters(a, ...rests) { + return a + rests.join(""); +} +function fooWithOverloads(a) { + return a; +} +function fooWithSingleOverload(a) { + return a; +} +function fooWithTypePredicate(a) { + return true; +} +function fooWithTypePredicateAndMulitpleParams(a, b, c) { + return true; +} +function fooWithTypeTypePredicateAndGeneric(a) { + return true; +} +function fooWithTypeTypePredicateAndRestParam(a, ...rest) { + return true; +} +/** This comment should appear for nonExportedFoo*/ +function nonExportedFoo() { +} +/** This is comment for function signature*/ +function nonExportedFooWithParameters(/** this is comment about a*/ a, +/** this is comment for b*/ +b) { + var d = a; +} +function nonExportedFooWithRestParameters(a, ...rests) { + return a + rests.join(""); +} +function nonExportedFooWithOverloads(a) { + return a; +} +//// [declFileFunctions_1.js] +/** This comment should appear for foo*/ +function globalfoo() { +} +/** This is comment for function signature*/ +function globalfooWithParameters(/** this is comment about a*/ a, +/** this is comment for b*/ +b) { + var d = a; +} +function globalfooWithRestParameters(a, ...rests) { + return a + rests.join(""); +} +function globalfooWithOverloads(a) { + return a; +} + + +//// [declFileFunctions_0.d.ts] +/** This comment should appear for foo*/ +export declare function foo(): void; +/** This is comment for function signature*/ +export declare function fooWithParameters(/** this is comment about a*/ a: string, +/** this is comment for b*/ +b: number): void; +export declare function fooWithRestParameters(a: string, ...rests: string[]): string; +export declare function fooWithOverloads(a: string): string; +export declare function fooWithOverloads(a: number): number; +export declare function fooWithSingleOverload(a: string): string; +export declare function fooWithTypePredicate(a: any): a is number; +export declare function fooWithTypePredicateAndMulitpleParams(a: any, b: any, c: any): a is number; +export declare function fooWithTypeTypePredicateAndGeneric(a: any): a is T; +export declare function fooWithTypeTypePredicateAndRestParam(a: any, ...rest: any[]): a is number; +//// [declFileFunctions_1.d.ts] +/** This comment should appear for foo*/ +declare function globalfoo(): void; +/** This is comment for function signature*/ +declare function globalfooWithParameters(/** this is comment about a*/ a: string, +/** this is comment for b*/ +b: number): void; +declare function globalfooWithRestParameters(a: string, ...rests: string[]): string; +declare function globalfooWithOverloads(a: string): string; +declare function globalfooWithOverloads(a: number): number; diff --git a/tests/baselines/reference/declFileFunctions.symbols b/tests/baselines/reference/declFileFunctions(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/declFileFunctions.symbols rename to tests/baselines/reference/declFileFunctions(target=es2015).symbols diff --git a/tests/baselines/reference/declFileFunctions.types b/tests/baselines/reference/declFileFunctions(target=es2015).types similarity index 100% rename from tests/baselines/reference/declFileFunctions.types rename to tests/baselines/reference/declFileFunctions(target=es2015).types diff --git a/tests/baselines/reference/declFileFunctions.js b/tests/baselines/reference/declFileFunctions(target=es5).js similarity index 100% rename from tests/baselines/reference/declFileFunctions.js rename to tests/baselines/reference/declFileFunctions(target=es5).js diff --git a/tests/baselines/reference/declFileFunctions(target=es5).symbols b/tests/baselines/reference/declFileFunctions(target=es5).symbols new file mode 100644 index 0000000000000..4d5febed8db2e --- /dev/null +++ b/tests/baselines/reference/declFileFunctions(target=es5).symbols @@ -0,0 +1,183 @@ +//// [tests/cases/compiler/declFileFunctions.ts] //// + +=== declFileFunctions_0.ts === +/** This comment should appear for foo*/ +export function foo() { +>foo : Symbol(foo, Decl(declFileFunctions_0.ts, 0, 0)) +} +/** This is comment for function signature*/ +export function fooWithParameters(/** this is comment about a*/a: string, +>fooWithParameters : Symbol(fooWithParameters, Decl(declFileFunctions_0.ts, 2, 1)) +>a : Symbol(a, Decl(declFileFunctions_0.ts, 4, 34)) + + /** this is comment for b*/ + b: number) { +>b : Symbol(b, Decl(declFileFunctions_0.ts, 4, 73)) + + var d = a; +>d : Symbol(d, Decl(declFileFunctions_0.ts, 7, 7)) +>a : Symbol(a, Decl(declFileFunctions_0.ts, 4, 34)) +} +export function fooWithRestParameters(a: string, ...rests: string[]) { +>fooWithRestParameters : Symbol(fooWithRestParameters, Decl(declFileFunctions_0.ts, 8, 1)) +>a : Symbol(a, Decl(declFileFunctions_0.ts, 9, 38)) +>rests : Symbol(rests, Decl(declFileFunctions_0.ts, 9, 48)) + + return a + rests.join(""); +>a : Symbol(a, Decl(declFileFunctions_0.ts, 9, 38)) +>rests.join : Symbol(Array.join, Decl(lib.es5.d.ts, --, --)) +>rests : Symbol(rests, Decl(declFileFunctions_0.ts, 9, 48)) +>join : Symbol(Array.join, Decl(lib.es5.d.ts, --, --)) +} + +export function fooWithOverloads(a: string): string; +>fooWithOverloads : Symbol(fooWithOverloads, Decl(declFileFunctions_0.ts, 11, 1), Decl(declFileFunctions_0.ts, 13, 52), Decl(declFileFunctions_0.ts, 14, 52)) +>a : Symbol(a, Decl(declFileFunctions_0.ts, 13, 33)) + +export function fooWithOverloads(a: number): number; +>fooWithOverloads : Symbol(fooWithOverloads, Decl(declFileFunctions_0.ts, 11, 1), Decl(declFileFunctions_0.ts, 13, 52), Decl(declFileFunctions_0.ts, 14, 52)) +>a : Symbol(a, Decl(declFileFunctions_0.ts, 14, 33)) + +export function fooWithOverloads(a: any): any { +>fooWithOverloads : Symbol(fooWithOverloads, Decl(declFileFunctions_0.ts, 11, 1), Decl(declFileFunctions_0.ts, 13, 52), Decl(declFileFunctions_0.ts, 14, 52)) +>a : Symbol(a, Decl(declFileFunctions_0.ts, 15, 33)) + + return a; +>a : Symbol(a, Decl(declFileFunctions_0.ts, 15, 33)) +} + +export function fooWithSingleOverload(a: string): string; +>fooWithSingleOverload : Symbol(fooWithSingleOverload, Decl(declFileFunctions_0.ts, 17, 1), Decl(declFileFunctions_0.ts, 19, 57)) +>a : Symbol(a, Decl(declFileFunctions_0.ts, 19, 38)) + +export function fooWithSingleOverload(a: any) { +>fooWithSingleOverload : Symbol(fooWithSingleOverload, Decl(declFileFunctions_0.ts, 17, 1), Decl(declFileFunctions_0.ts, 19, 57)) +>a : Symbol(a, Decl(declFileFunctions_0.ts, 20, 38)) + + return a; +>a : Symbol(a, Decl(declFileFunctions_0.ts, 20, 38)) +} + +export function fooWithTypePredicate(a: any): a is number { +>fooWithTypePredicate : Symbol(fooWithTypePredicate, Decl(declFileFunctions_0.ts, 22, 1)) +>a : Symbol(a, Decl(declFileFunctions_0.ts, 24, 37)) +>a : Symbol(a, Decl(declFileFunctions_0.ts, 24, 37)) + + return true; +} +export function fooWithTypePredicateAndMulitpleParams(a: any, b: any, c: any): a is number { +>fooWithTypePredicateAndMulitpleParams : Symbol(fooWithTypePredicateAndMulitpleParams, Decl(declFileFunctions_0.ts, 26, 1)) +>a : Symbol(a, Decl(declFileFunctions_0.ts, 27, 54)) +>b : Symbol(b, Decl(declFileFunctions_0.ts, 27, 61)) +>c : Symbol(c, Decl(declFileFunctions_0.ts, 27, 69)) +>a : Symbol(a, Decl(declFileFunctions_0.ts, 27, 54)) + + return true; +} +export function fooWithTypeTypePredicateAndGeneric(a: any): a is T { +>fooWithTypeTypePredicateAndGeneric : Symbol(fooWithTypeTypePredicateAndGeneric, Decl(declFileFunctions_0.ts, 29, 1)) +>T : Symbol(T, Decl(declFileFunctions_0.ts, 30, 51)) +>a : Symbol(a, Decl(declFileFunctions_0.ts, 30, 54)) +>a : Symbol(a, Decl(declFileFunctions_0.ts, 30, 54)) +>T : Symbol(T, Decl(declFileFunctions_0.ts, 30, 51)) + + return true; +} +export function fooWithTypeTypePredicateAndRestParam(a: any, ...rest): a is number { +>fooWithTypeTypePredicateAndRestParam : Symbol(fooWithTypeTypePredicateAndRestParam, Decl(declFileFunctions_0.ts, 32, 1)) +>a : Symbol(a, Decl(declFileFunctions_0.ts, 33, 53)) +>rest : Symbol(rest, Decl(declFileFunctions_0.ts, 33, 60)) +>a : Symbol(a, Decl(declFileFunctions_0.ts, 33, 53)) + + return true; +} + +/** This comment should appear for nonExportedFoo*/ +function nonExportedFoo() { +>nonExportedFoo : Symbol(nonExportedFoo, Decl(declFileFunctions_0.ts, 35, 1)) +} +/** This is comment for function signature*/ +function nonExportedFooWithParameters(/** this is comment about a*/a: string, +>nonExportedFooWithParameters : Symbol(nonExportedFooWithParameters, Decl(declFileFunctions_0.ts, 39, 1)) +>a : Symbol(a, Decl(declFileFunctions_0.ts, 41, 38)) + + /** this is comment for b*/ + b: number) { +>b : Symbol(b, Decl(declFileFunctions_0.ts, 41, 77)) + + var d = a; +>d : Symbol(d, Decl(declFileFunctions_0.ts, 44, 7)) +>a : Symbol(a, Decl(declFileFunctions_0.ts, 41, 38)) +} +function nonExportedFooWithRestParameters(a: string, ...rests: string[]) { +>nonExportedFooWithRestParameters : Symbol(nonExportedFooWithRestParameters, Decl(declFileFunctions_0.ts, 45, 1)) +>a : Symbol(a, Decl(declFileFunctions_0.ts, 46, 42)) +>rests : Symbol(rests, Decl(declFileFunctions_0.ts, 46, 52)) + + return a + rests.join(""); +>a : Symbol(a, Decl(declFileFunctions_0.ts, 46, 42)) +>rests.join : Symbol(Array.join, Decl(lib.es5.d.ts, --, --)) +>rests : Symbol(rests, Decl(declFileFunctions_0.ts, 46, 52)) +>join : Symbol(Array.join, Decl(lib.es5.d.ts, --, --)) +} + +function nonExportedFooWithOverloads(a: string): string; +>nonExportedFooWithOverloads : Symbol(nonExportedFooWithOverloads, Decl(declFileFunctions_0.ts, 48, 1), Decl(declFileFunctions_0.ts, 50, 56), Decl(declFileFunctions_0.ts, 51, 56)) +>a : Symbol(a, Decl(declFileFunctions_0.ts, 50, 37)) + +function nonExportedFooWithOverloads(a: number): number; +>nonExportedFooWithOverloads : Symbol(nonExportedFooWithOverloads, Decl(declFileFunctions_0.ts, 48, 1), Decl(declFileFunctions_0.ts, 50, 56), Decl(declFileFunctions_0.ts, 51, 56)) +>a : Symbol(a, Decl(declFileFunctions_0.ts, 51, 37)) + +function nonExportedFooWithOverloads(a: any): any { +>nonExportedFooWithOverloads : Symbol(nonExportedFooWithOverloads, Decl(declFileFunctions_0.ts, 48, 1), Decl(declFileFunctions_0.ts, 50, 56), Decl(declFileFunctions_0.ts, 51, 56)) +>a : Symbol(a, Decl(declFileFunctions_0.ts, 52, 37)) + + return a; +>a : Symbol(a, Decl(declFileFunctions_0.ts, 52, 37)) +} + +=== declFileFunctions_1.ts === +/** This comment should appear for foo*/ +function globalfoo() { +>globalfoo : Symbol(globalfoo, Decl(declFileFunctions_1.ts, 0, 0)) +} +/** This is comment for function signature*/ +function globalfooWithParameters(/** this is comment about a*/a: string, +>globalfooWithParameters : Symbol(globalfooWithParameters, Decl(declFileFunctions_1.ts, 2, 1)) +>a : Symbol(a, Decl(declFileFunctions_1.ts, 4, 33)) + + /** this is comment for b*/ + b: number) { +>b : Symbol(b, Decl(declFileFunctions_1.ts, 4, 72)) + + var d = a; +>d : Symbol(d, Decl(declFileFunctions_1.ts, 7, 7)) +>a : Symbol(a, Decl(declFileFunctions_1.ts, 4, 33)) +} +function globalfooWithRestParameters(a: string, ...rests: string[]) { +>globalfooWithRestParameters : Symbol(globalfooWithRestParameters, Decl(declFileFunctions_1.ts, 8, 1)) +>a : Symbol(a, Decl(declFileFunctions_1.ts, 9, 37)) +>rests : Symbol(rests, Decl(declFileFunctions_1.ts, 9, 47)) + + return a + rests.join(""); +>a : Symbol(a, Decl(declFileFunctions_1.ts, 9, 37)) +>rests.join : Symbol(Array.join, Decl(lib.es5.d.ts, --, --)) +>rests : Symbol(rests, Decl(declFileFunctions_1.ts, 9, 47)) +>join : Symbol(Array.join, Decl(lib.es5.d.ts, --, --)) +} +function globalfooWithOverloads(a: string): string; +>globalfooWithOverloads : Symbol(globalfooWithOverloads, Decl(declFileFunctions_1.ts, 11, 1), Decl(declFileFunctions_1.ts, 12, 51), Decl(declFileFunctions_1.ts, 13, 51)) +>a : Symbol(a, Decl(declFileFunctions_1.ts, 12, 32)) + +function globalfooWithOverloads(a: number): number; +>globalfooWithOverloads : Symbol(globalfooWithOverloads, Decl(declFileFunctions_1.ts, 11, 1), Decl(declFileFunctions_1.ts, 12, 51), Decl(declFileFunctions_1.ts, 13, 51)) +>a : Symbol(a, Decl(declFileFunctions_1.ts, 13, 32)) + +function globalfooWithOverloads(a: any): any { +>globalfooWithOverloads : Symbol(globalfooWithOverloads, Decl(declFileFunctions_1.ts, 11, 1), Decl(declFileFunctions_1.ts, 12, 51), Decl(declFileFunctions_1.ts, 13, 51)) +>a : Symbol(a, Decl(declFileFunctions_1.ts, 14, 32)) + + return a; +>a : Symbol(a, Decl(declFileFunctions_1.ts, 14, 32)) +} diff --git a/tests/baselines/reference/declFileFunctions(target=es5).types b/tests/baselines/reference/declFileFunctions(target=es5).types new file mode 100644 index 0000000000000..e9e108d197fc4 --- /dev/null +++ b/tests/baselines/reference/declFileFunctions(target=es5).types @@ -0,0 +1,265 @@ +//// [tests/cases/compiler/declFileFunctions.ts] //// + +=== declFileFunctions_0.ts === +/** This comment should appear for foo*/ +export function foo() { +>foo : () => void +> : ^^^^^^^^^^ +} +/** This is comment for function signature*/ +export function fooWithParameters(/** this is comment about a*/a: string, +>fooWithParameters : (a: string, b: number) => void +> : ^ ^^ ^^ ^^ ^^^^^^^^^ +>a : string +> : ^^^^^^ + + /** this is comment for b*/ + b: number) { +>b : number +> : ^^^^^^ + + var d = a; +>d : string +> : ^^^^^^ +>a : string +> : ^^^^^^ +} +export function fooWithRestParameters(a: string, ...rests: string[]) { +>fooWithRestParameters : (a: string, ...rests: string[]) => string +> : ^ ^^ ^^^^^ ^^ ^^^^^^^^^^^ +>a : string +> : ^^^^^^ +>rests : string[] +> : ^^^^^^^^ + + return a + rests.join(""); +>a + rests.join("") : string +> : ^^^^^^ +>a : string +> : ^^^^^^ +>rests.join("") : string +> : ^^^^^^ +>rests.join : (separator?: string) => string +> : ^ ^^^ ^^^^^ +>rests : string[] +> : ^^^^^^^^ +>join : (separator?: string) => string +> : ^ ^^^ ^^^^^ +>"" : "" +> : ^^ +} + +export function fooWithOverloads(a: string): string; +>fooWithOverloads : { (a: string): string; (a: number): number; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>a : string +> : ^^^^^^ + +export function fooWithOverloads(a: number): number; +>fooWithOverloads : { (a: string): string; (a: number): number; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>a : number +> : ^^^^^^ + +export function fooWithOverloads(a: any): any { +>fooWithOverloads : { (a: string): string; (a: number): number; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>a : any + + return a; +>a : any +} + +export function fooWithSingleOverload(a: string): string; +>fooWithSingleOverload : (a: string) => string +> : ^ ^^ ^^^^^ +>a : string +> : ^^^^^^ + +export function fooWithSingleOverload(a: any) { +>fooWithSingleOverload : (a: string) => string +> : ^ ^^ ^^^^^ +>a : any + + return a; +>a : any +} + +export function fooWithTypePredicate(a: any): a is number { +>fooWithTypePredicate : (a: any) => a is number +> : ^ ^^ ^^^^^ +>a : any + + return true; +>true : true +> : ^^^^ +} +export function fooWithTypePredicateAndMulitpleParams(a: any, b: any, c: any): a is number { +>fooWithTypePredicateAndMulitpleParams : (a: any, b: any, c: any) => a is number +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>a : any +>b : any +>c : any + + return true; +>true : true +> : ^^^^ +} +export function fooWithTypeTypePredicateAndGeneric(a: any): a is T { +>fooWithTypeTypePredicateAndGeneric : (a: any) => a is T +> : ^ ^^ ^^ ^^^^^ +>a : any + + return true; +>true : true +> : ^^^^ +} +export function fooWithTypeTypePredicateAndRestParam(a: any, ...rest): a is number { +>fooWithTypeTypePredicateAndRestParam : (a: any, ...rest: any[]) => a is number +> : ^ ^^ ^^^^^ ^^^^^^^^^^^^ +>a : any +>rest : any[] +> : ^^^^^ + + return true; +>true : true +> : ^^^^ +} + +/** This comment should appear for nonExportedFoo*/ +function nonExportedFoo() { +>nonExportedFoo : () => void +> : ^^^^^^^^^^ +} +/** This is comment for function signature*/ +function nonExportedFooWithParameters(/** this is comment about a*/a: string, +>nonExportedFooWithParameters : (a: string, b: number) => void +> : ^ ^^ ^^ ^^ ^^^^^^^^^ +>a : string +> : ^^^^^^ + + /** this is comment for b*/ + b: number) { +>b : number +> : ^^^^^^ + + var d = a; +>d : string +> : ^^^^^^ +>a : string +> : ^^^^^^ +} +function nonExportedFooWithRestParameters(a: string, ...rests: string[]) { +>nonExportedFooWithRestParameters : (a: string, ...rests: string[]) => string +> : ^ ^^ ^^^^^ ^^ ^^^^^^^^^^^ +>a : string +> : ^^^^^^ +>rests : string[] +> : ^^^^^^^^ + + return a + rests.join(""); +>a + rests.join("") : string +> : ^^^^^^ +>a : string +> : ^^^^^^ +>rests.join("") : string +> : ^^^^^^ +>rests.join : (separator?: string) => string +> : ^ ^^^ ^^^^^ +>rests : string[] +> : ^^^^^^^^ +>join : (separator?: string) => string +> : ^ ^^^ ^^^^^ +>"" : "" +> : ^^ +} + +function nonExportedFooWithOverloads(a: string): string; +>nonExportedFooWithOverloads : { (a: string): string; (a: number): number; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>a : string +> : ^^^^^^ + +function nonExportedFooWithOverloads(a: number): number; +>nonExportedFooWithOverloads : { (a: string): string; (a: number): number; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>a : number +> : ^^^^^^ + +function nonExportedFooWithOverloads(a: any): any { +>nonExportedFooWithOverloads : { (a: string): string; (a: number): number; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>a : any + + return a; +>a : any +} + +=== declFileFunctions_1.ts === +/** This comment should appear for foo*/ +function globalfoo() { +>globalfoo : () => void +> : ^^^^^^^^^^ +} +/** This is comment for function signature*/ +function globalfooWithParameters(/** this is comment about a*/a: string, +>globalfooWithParameters : (a: string, b: number) => void +> : ^ ^^ ^^ ^^ ^^^^^^^^^ +>a : string +> : ^^^^^^ + + /** this is comment for b*/ + b: number) { +>b : number +> : ^^^^^^ + + var d = a; +>d : string +> : ^^^^^^ +>a : string +> : ^^^^^^ +} +function globalfooWithRestParameters(a: string, ...rests: string[]) { +>globalfooWithRestParameters : (a: string, ...rests: string[]) => string +> : ^ ^^ ^^^^^ ^^ ^^^^^^^^^^^ +>a : string +> : ^^^^^^ +>rests : string[] +> : ^^^^^^^^ + + return a + rests.join(""); +>a + rests.join("") : string +> : ^^^^^^ +>a : string +> : ^^^^^^ +>rests.join("") : string +> : ^^^^^^ +>rests.join : (separator?: string) => string +> : ^ ^^^ ^^^^^ +>rests : string[] +> : ^^^^^^^^ +>join : (separator?: string) => string +> : ^ ^^^ ^^^^^ +>"" : "" +> : ^^ +} +function globalfooWithOverloads(a: string): string; +>globalfooWithOverloads : { (a: string): string; (a: number): number; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>a : string +> : ^^^^^^ + +function globalfooWithOverloads(a: number): number; +>globalfooWithOverloads : { (a: string): string; (a: number): number; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>a : number +> : ^^^^^^ + +function globalfooWithOverloads(a: any): any { +>globalfooWithOverloads : { (a: string): string; (a: number): number; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>a : any + + return a; +>a : any +} diff --git a/tests/baselines/reference/declFileIndexSignatures.js b/tests/baselines/reference/declFileIndexSignatures(target=es2015).js similarity index 100% rename from tests/baselines/reference/declFileIndexSignatures.js rename to tests/baselines/reference/declFileIndexSignatures(target=es2015).js diff --git a/tests/baselines/reference/declFileIndexSignatures.symbols b/tests/baselines/reference/declFileIndexSignatures(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/declFileIndexSignatures.symbols rename to tests/baselines/reference/declFileIndexSignatures(target=es2015).symbols diff --git a/tests/baselines/reference/declFileIndexSignatures.types b/tests/baselines/reference/declFileIndexSignatures(target=es2015).types similarity index 100% rename from tests/baselines/reference/declFileIndexSignatures.types rename to tests/baselines/reference/declFileIndexSignatures(target=es2015).types diff --git a/tests/baselines/reference/declFileIndexSignatures(target=es5).js b/tests/baselines/reference/declFileIndexSignatures(target=es5).js new file mode 100644 index 0000000000000..0282816e9d868 --- /dev/null +++ b/tests/baselines/reference/declFileIndexSignatures(target=es5).js @@ -0,0 +1,70 @@ +//// [tests/cases/compiler/declFileIndexSignatures.ts] //// + +//// [declFileIndexSignatures_0.ts] +export interface IStringIndexSignature { + [s: string]: string; +} +export interface INumberIndexSignature { + [n: number]: number; +} + +export interface IBothIndexSignature { + [s: string]: any; + [n: number]: number; +} + +export interface IIndexSignatureWithTypeParameter { + [a: string]: T; +} + +//// [declFileIndexSignatures_1.ts] +interface IGlobalStringIndexSignature { + [s: string]: string; +} +interface IGlobalNumberIndexSignature { + [n: number]: number; +} + +interface IGlobalBothIndexSignature { + [s: string]: any; + [n: number]: number; +} + +interface IGlobalIndexSignatureWithTypeParameter { + [a: string]: T; +} + +//// [declFileIndexSignatures_0.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//// [declFileIndexSignatures_1.js] + + +//// [declFileIndexSignatures_0.d.ts] +export interface IStringIndexSignature { + [s: string]: string; +} +export interface INumberIndexSignature { + [n: number]: number; +} +export interface IBothIndexSignature { + [s: string]: any; + [n: number]: number; +} +export interface IIndexSignatureWithTypeParameter { + [a: string]: T; +} +//// [declFileIndexSignatures_1.d.ts] +interface IGlobalStringIndexSignature { + [s: string]: string; +} +interface IGlobalNumberIndexSignature { + [n: number]: number; +} +interface IGlobalBothIndexSignature { + [s: string]: any; + [n: number]: number; +} +interface IGlobalIndexSignatureWithTypeParameter { + [a: string]: T; +} diff --git a/tests/baselines/reference/declFileIndexSignatures(target=es5).symbols b/tests/baselines/reference/declFileIndexSignatures(target=es5).symbols new file mode 100644 index 0000000000000..5804d29d61144 --- /dev/null +++ b/tests/baselines/reference/declFileIndexSignatures(target=es5).symbols @@ -0,0 +1,67 @@ +//// [tests/cases/compiler/declFileIndexSignatures.ts] //// + +=== declFileIndexSignatures_0.ts === +export interface IStringIndexSignature { +>IStringIndexSignature : Symbol(IStringIndexSignature, Decl(declFileIndexSignatures_0.ts, 0, 0)) + + [s: string]: string; +>s : Symbol(s, Decl(declFileIndexSignatures_0.ts, 1, 5)) +} +export interface INumberIndexSignature { +>INumberIndexSignature : Symbol(INumberIndexSignature, Decl(declFileIndexSignatures_0.ts, 2, 1)) + + [n: number]: number; +>n : Symbol(n, Decl(declFileIndexSignatures_0.ts, 4, 5)) +} + +export interface IBothIndexSignature { +>IBothIndexSignature : Symbol(IBothIndexSignature, Decl(declFileIndexSignatures_0.ts, 5, 1)) + + [s: string]: any; +>s : Symbol(s, Decl(declFileIndexSignatures_0.ts, 8, 5)) + + [n: number]: number; +>n : Symbol(n, Decl(declFileIndexSignatures_0.ts, 9, 5)) +} + +export interface IIndexSignatureWithTypeParameter { +>IIndexSignatureWithTypeParameter : Symbol(IIndexSignatureWithTypeParameter, Decl(declFileIndexSignatures_0.ts, 10, 1)) +>T : Symbol(T, Decl(declFileIndexSignatures_0.ts, 12, 50)) + + [a: string]: T; +>a : Symbol(a, Decl(declFileIndexSignatures_0.ts, 13, 5)) +>T : Symbol(T, Decl(declFileIndexSignatures_0.ts, 12, 50)) +} + +=== declFileIndexSignatures_1.ts === +interface IGlobalStringIndexSignature { +>IGlobalStringIndexSignature : Symbol(IGlobalStringIndexSignature, Decl(declFileIndexSignatures_1.ts, 0, 0)) + + [s: string]: string; +>s : Symbol(s, Decl(declFileIndexSignatures_1.ts, 1, 5)) +} +interface IGlobalNumberIndexSignature { +>IGlobalNumberIndexSignature : Symbol(IGlobalNumberIndexSignature, Decl(declFileIndexSignatures_1.ts, 2, 1)) + + [n: number]: number; +>n : Symbol(n, Decl(declFileIndexSignatures_1.ts, 4, 5)) +} + +interface IGlobalBothIndexSignature { +>IGlobalBothIndexSignature : Symbol(IGlobalBothIndexSignature, Decl(declFileIndexSignatures_1.ts, 5, 1)) + + [s: string]: any; +>s : Symbol(s, Decl(declFileIndexSignatures_1.ts, 8, 5)) + + [n: number]: number; +>n : Symbol(n, Decl(declFileIndexSignatures_1.ts, 9, 5)) +} + +interface IGlobalIndexSignatureWithTypeParameter { +>IGlobalIndexSignatureWithTypeParameter : Symbol(IGlobalIndexSignatureWithTypeParameter, Decl(declFileIndexSignatures_1.ts, 10, 1)) +>T : Symbol(T, Decl(declFileIndexSignatures_1.ts, 12, 49)) + + [a: string]: T; +>a : Symbol(a, Decl(declFileIndexSignatures_1.ts, 13, 5)) +>T : Symbol(T, Decl(declFileIndexSignatures_1.ts, 12, 49)) +} diff --git a/tests/baselines/reference/declFileIndexSignatures(target=es5).types b/tests/baselines/reference/declFileIndexSignatures(target=es5).types new file mode 100644 index 0000000000000..0fcda0f4a1040 --- /dev/null +++ b/tests/baselines/reference/declFileIndexSignatures(target=es5).types @@ -0,0 +1,57 @@ +//// [tests/cases/compiler/declFileIndexSignatures.ts] //// + +=== declFileIndexSignatures_0.ts === +export interface IStringIndexSignature { + [s: string]: string; +>s : string +> : ^^^^^^ +} +export interface INumberIndexSignature { + [n: number]: number; +>n : number +> : ^^^^^^ +} + +export interface IBothIndexSignature { + [s: string]: any; +>s : string +> : ^^^^^^ + + [n: number]: number; +>n : number +> : ^^^^^^ +} + +export interface IIndexSignatureWithTypeParameter { + [a: string]: T; +>a : string +> : ^^^^^^ +} + +=== declFileIndexSignatures_1.ts === +interface IGlobalStringIndexSignature { + [s: string]: string; +>s : string +> : ^^^^^^ +} +interface IGlobalNumberIndexSignature { + [n: number]: number; +>n : number +> : ^^^^^^ +} + +interface IGlobalBothIndexSignature { + [s: string]: any; +>s : string +> : ^^^^^^ + + [n: number]: number; +>n : number +> : ^^^^^^ +} + +interface IGlobalIndexSignatureWithTypeParameter { + [a: string]: T; +>a : string +> : ^^^^^^ +} diff --git a/tests/baselines/reference/declFileMethods(target=es2015).js b/tests/baselines/reference/declFileMethods(target=es2015).js new file mode 100644 index 0000000000000..d8b923f75069b --- /dev/null +++ b/tests/baselines/reference/declFileMethods(target=es2015).js @@ -0,0 +1,411 @@ +//// [tests/cases/compiler/declFileMethods.ts] //// + +//// [declFileMethods_0.ts] +export class c1 { + /** This comment should appear for foo*/ + public foo() { + } + /** This is comment for function signature*/ + public fooWithParameters(/** this is comment about a*/a: string, + /** this is comment for b*/ + b: number) { + var d = a; + } + public fooWithRestParameters(a: string, ...rests: string[]) { + return a + rests.join(""); + } + + public fooWithOverloads(a: string): string; + public fooWithOverloads(a: number): number; + public fooWithOverloads(a: any): any { + return a; + } + + + /** This comment should appear for privateFoo*/ + private privateFoo() { + } + /** This is comment for function signature*/ + private privateFooWithParameters(/** this is comment about a*/a: string, + /** this is comment for b*/ + b: number) { + var d = a; + } + private privateFooWithRestParameters(a: string, ...rests: string[]) { + return a + rests.join(""); + } + private privateFooWithOverloads(a: string): string; + private privateFooWithOverloads(a: number): number; + private privateFooWithOverloads(a: any): any { + return a; + } + + + /** This comment should appear for static foo*/ + static staticFoo() { + } + /** This is comment for function signature*/ + static staticFooWithParameters(/** this is comment about a*/a: string, + /** this is comment for b*/ + b: number) { + var d = a; + } + static staticFooWithRestParameters(a: string, ...rests: string[]) { + return a + rests.join(""); + } + static staticFooWithOverloads(a: string): string; + static staticFooWithOverloads(a: number): number; + static staticFooWithOverloads(a: any): any { + return a; + } + + + /** This comment should appear for privateStaticFoo*/ + private static privateStaticFoo() { + } + /** This is comment for function signature*/ + private static privateStaticFooWithParameters(/** this is comment about a*/a: string, + /** this is comment for b*/ + b: number) { + var d = a; + } + private static privateStaticFooWithRestParameters(a: string, ...rests: string[]) { + return a + rests.join(""); + } + private static privateStaticFooWithOverloads(a: string): string; + private static privateStaticFooWithOverloads(a: number): number; + private static privateStaticFooWithOverloads(a: any): any { + return a; + } +} + +export interface I1 { + /** This comment should appear for foo*/ + foo(): string; + + /** This is comment for function signature*/ + fooWithParameters(/** this is comment about a*/a: string, + /** this is comment for b*/ + b: number): void; + + fooWithRestParameters(a: string, ...rests: string[]): string; + + fooWithOverloads(a: string): string; + fooWithOverloads(a: number): number; +} + +//// [declFileMethods_1.ts] +class c2 { + /** This comment should appear for foo*/ + public foo() { + } + /** This is comment for function signature*/ + public fooWithParameters(/** this is comment about a*/a: string, + /** this is comment for b*/ + b: number) { + var d = a; + } + public fooWithRestParameters(a: string, ...rests: string[]) { + return a + rests.join(""); + } + + public fooWithOverloads(a: string): string; + public fooWithOverloads(a: number): number; + public fooWithOverloads(a: any): any { + return a; + } + + + /** This comment should appear for privateFoo*/ + private privateFoo() { + } + /** This is comment for function signature*/ + private privateFooWithParameters(/** this is comment about a*/a: string, + /** this is comment for b*/ + b: number) { + var d = a; + } + private privateFooWithRestParameters(a: string, ...rests: string[]) { + return a + rests.join(""); + } + private privateFooWithOverloads(a: string): string; + private privateFooWithOverloads(a: number): number; + private privateFooWithOverloads(a: any): any { + return a; + } + + + /** This comment should appear for static foo*/ + static staticFoo() { + } + /** This is comment for function signature*/ + static staticFooWithParameters(/** this is comment about a*/a: string, + /** this is comment for b*/ + b: number) { + var d = a; + } + static staticFooWithRestParameters(a: string, ...rests: string[]) { + return a + rests.join(""); + } + static staticFooWithOverloads(a: string): string; + static staticFooWithOverloads(a: number): number; + static staticFooWithOverloads(a: any): any { + return a; + } + + + /** This comment should appear for privateStaticFoo*/ + private static privateStaticFoo() { + } + /** This is comment for function signature*/ + private static privateStaticFooWithParameters(/** this is comment about a*/a: string, + /** this is comment for b*/ + b: number) { + var d = a; + } + private static privateStaticFooWithRestParameters(a: string, ...rests: string[]) { + return a + rests.join(""); + } + private static privateStaticFooWithOverloads(a: string): string; + private static privateStaticFooWithOverloads(a: number): number; + private static privateStaticFooWithOverloads(a: any): any { + return a; + } +} + +interface I2 { + /** This comment should appear for foo*/ + foo(): string; + + /** This is comment for function signature*/ + fooWithParameters(/** this is comment about a*/a: string, + /** this is comment for b*/ + b: number): void; + + fooWithRestParameters(a: string, ...rests: string[]): string; + + fooWithOverloads(a: string): string; + fooWithOverloads(a: number): number; +} + + +//// [declFileMethods_0.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.c1 = void 0; +class c1 { + /** This comment should appear for foo*/ + foo() { + } + /** This is comment for function signature*/ + fooWithParameters(/** this is comment about a*/ a, + /** this is comment for b*/ + b) { + var d = a; + } + fooWithRestParameters(a, ...rests) { + return a + rests.join(""); + } + fooWithOverloads(a) { + return a; + } + /** This comment should appear for privateFoo*/ + privateFoo() { + } + /** This is comment for function signature*/ + privateFooWithParameters(/** this is comment about a*/ a, + /** this is comment for b*/ + b) { + var d = a; + } + privateFooWithRestParameters(a, ...rests) { + return a + rests.join(""); + } + privateFooWithOverloads(a) { + return a; + } + /** This comment should appear for static foo*/ + static staticFoo() { + } + /** This is comment for function signature*/ + static staticFooWithParameters(/** this is comment about a*/ a, + /** this is comment for b*/ + b) { + var d = a; + } + static staticFooWithRestParameters(a, ...rests) { + return a + rests.join(""); + } + static staticFooWithOverloads(a) { + return a; + } + /** This comment should appear for privateStaticFoo*/ + static privateStaticFoo() { + } + /** This is comment for function signature*/ + static privateStaticFooWithParameters(/** this is comment about a*/ a, + /** this is comment for b*/ + b) { + var d = a; + } + static privateStaticFooWithRestParameters(a, ...rests) { + return a + rests.join(""); + } + static privateStaticFooWithOverloads(a) { + return a; + } +} +exports.c1 = c1; +//// [declFileMethods_1.js] +class c2 { + /** This comment should appear for foo*/ + foo() { + } + /** This is comment for function signature*/ + fooWithParameters(/** this is comment about a*/ a, + /** this is comment for b*/ + b) { + var d = a; + } + fooWithRestParameters(a, ...rests) { + return a + rests.join(""); + } + fooWithOverloads(a) { + return a; + } + /** This comment should appear for privateFoo*/ + privateFoo() { + } + /** This is comment for function signature*/ + privateFooWithParameters(/** this is comment about a*/ a, + /** this is comment for b*/ + b) { + var d = a; + } + privateFooWithRestParameters(a, ...rests) { + return a + rests.join(""); + } + privateFooWithOverloads(a) { + return a; + } + /** This comment should appear for static foo*/ + static staticFoo() { + } + /** This is comment for function signature*/ + static staticFooWithParameters(/** this is comment about a*/ a, + /** this is comment for b*/ + b) { + var d = a; + } + static staticFooWithRestParameters(a, ...rests) { + return a + rests.join(""); + } + static staticFooWithOverloads(a) { + return a; + } + /** This comment should appear for privateStaticFoo*/ + static privateStaticFoo() { + } + /** This is comment for function signature*/ + static privateStaticFooWithParameters(/** this is comment about a*/ a, + /** this is comment for b*/ + b) { + var d = a; + } + static privateStaticFooWithRestParameters(a, ...rests) { + return a + rests.join(""); + } + static privateStaticFooWithOverloads(a) { + return a; + } +} + + +//// [declFileMethods_0.d.ts] +export declare class c1 { + /** This comment should appear for foo*/ + foo(): void; + /** This is comment for function signature*/ + fooWithParameters(/** this is comment about a*/ a: string, + /** this is comment for b*/ + b: number): void; + fooWithRestParameters(a: string, ...rests: string[]): string; + fooWithOverloads(a: string): string; + fooWithOverloads(a: number): number; + /** This comment should appear for privateFoo*/ + private privateFoo; + /** This is comment for function signature*/ + private privateFooWithParameters; + private privateFooWithRestParameters; + private privateFooWithOverloads; + /** This comment should appear for static foo*/ + static staticFoo(): void; + /** This is comment for function signature*/ + static staticFooWithParameters(/** this is comment about a*/ a: string, + /** this is comment for b*/ + b: number): void; + static staticFooWithRestParameters(a: string, ...rests: string[]): string; + static staticFooWithOverloads(a: string): string; + static staticFooWithOverloads(a: number): number; + /** This comment should appear for privateStaticFoo*/ + private static privateStaticFoo; + /** This is comment for function signature*/ + private static privateStaticFooWithParameters; + private static privateStaticFooWithRestParameters; + private static privateStaticFooWithOverloads; +} +export interface I1 { + /** This comment should appear for foo*/ + foo(): string; + /** This is comment for function signature*/ + fooWithParameters(/** this is comment about a*/ a: string, + /** this is comment for b*/ + b: number): void; + fooWithRestParameters(a: string, ...rests: string[]): string; + fooWithOverloads(a: string): string; + fooWithOverloads(a: number): number; +} +//// [declFileMethods_1.d.ts] +declare class c2 { + /** This comment should appear for foo*/ + foo(): void; + /** This is comment for function signature*/ + fooWithParameters(/** this is comment about a*/ a: string, + /** this is comment for b*/ + b: number): void; + fooWithRestParameters(a: string, ...rests: string[]): string; + fooWithOverloads(a: string): string; + fooWithOverloads(a: number): number; + /** This comment should appear for privateFoo*/ + private privateFoo; + /** This is comment for function signature*/ + private privateFooWithParameters; + private privateFooWithRestParameters; + private privateFooWithOverloads; + /** This comment should appear for static foo*/ + static staticFoo(): void; + /** This is comment for function signature*/ + static staticFooWithParameters(/** this is comment about a*/ a: string, + /** this is comment for b*/ + b: number): void; + static staticFooWithRestParameters(a: string, ...rests: string[]): string; + static staticFooWithOverloads(a: string): string; + static staticFooWithOverloads(a: number): number; + /** This comment should appear for privateStaticFoo*/ + private static privateStaticFoo; + /** This is comment for function signature*/ + private static privateStaticFooWithParameters; + private static privateStaticFooWithRestParameters; + private static privateStaticFooWithOverloads; +} +interface I2 { + /** This comment should appear for foo*/ + foo(): string; + /** This is comment for function signature*/ + fooWithParameters(/** this is comment about a*/ a: string, + /** this is comment for b*/ + b: number): void; + fooWithRestParameters(a: string, ...rests: string[]): string; + fooWithOverloads(a: string): string; + fooWithOverloads(a: number): number; +} diff --git a/tests/baselines/reference/declFileMethods.symbols b/tests/baselines/reference/declFileMethods(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/declFileMethods.symbols rename to tests/baselines/reference/declFileMethods(target=es2015).symbols diff --git a/tests/baselines/reference/declFileMethods.types b/tests/baselines/reference/declFileMethods(target=es2015).types similarity index 100% rename from tests/baselines/reference/declFileMethods.types rename to tests/baselines/reference/declFileMethods(target=es2015).types diff --git a/tests/baselines/reference/declFileMethods.js b/tests/baselines/reference/declFileMethods(target=es5).js similarity index 100% rename from tests/baselines/reference/declFileMethods.js rename to tests/baselines/reference/declFileMethods(target=es5).js diff --git a/tests/baselines/reference/declFileMethods(target=es5).symbols b/tests/baselines/reference/declFileMethods(target=es5).symbols new file mode 100644 index 0000000000000..c2bab8d834d1b --- /dev/null +++ b/tests/baselines/reference/declFileMethods(target=es5).symbols @@ -0,0 +1,432 @@ +//// [tests/cases/compiler/declFileMethods.ts] //// + +=== declFileMethods_0.ts === +export class c1 { +>c1 : Symbol(c1, Decl(declFileMethods_0.ts, 0, 0)) + + /** This comment should appear for foo*/ + public foo() { +>foo : Symbol(c1.foo, Decl(declFileMethods_0.ts, 0, 17)) + } + /** This is comment for function signature*/ + public fooWithParameters(/** this is comment about a*/a: string, +>fooWithParameters : Symbol(c1.fooWithParameters, Decl(declFileMethods_0.ts, 3, 5)) +>a : Symbol(a, Decl(declFileMethods_0.ts, 5, 29)) + + /** this is comment for b*/ + b: number) { +>b : Symbol(b, Decl(declFileMethods_0.ts, 5, 68)) + + var d = a; +>d : Symbol(d, Decl(declFileMethods_0.ts, 8, 11)) +>a : Symbol(a, Decl(declFileMethods_0.ts, 5, 29)) + } + public fooWithRestParameters(a: string, ...rests: string[]) { +>fooWithRestParameters : Symbol(c1.fooWithRestParameters, Decl(declFileMethods_0.ts, 9, 5)) +>a : Symbol(a, Decl(declFileMethods_0.ts, 10, 33)) +>rests : Symbol(rests, Decl(declFileMethods_0.ts, 10, 43)) + + return a + rests.join(""); +>a : Symbol(a, Decl(declFileMethods_0.ts, 10, 33)) +>rests.join : Symbol(Array.join, Decl(lib.es5.d.ts, --, --)) +>rests : Symbol(rests, Decl(declFileMethods_0.ts, 10, 43)) +>join : Symbol(Array.join, Decl(lib.es5.d.ts, --, --)) + } + + public fooWithOverloads(a: string): string; +>fooWithOverloads : Symbol(c1.fooWithOverloads, Decl(declFileMethods_0.ts, 12, 5), Decl(declFileMethods_0.ts, 14, 47), Decl(declFileMethods_0.ts, 15, 47)) +>a : Symbol(a, Decl(declFileMethods_0.ts, 14, 28)) + + public fooWithOverloads(a: number): number; +>fooWithOverloads : Symbol(c1.fooWithOverloads, Decl(declFileMethods_0.ts, 12, 5), Decl(declFileMethods_0.ts, 14, 47), Decl(declFileMethods_0.ts, 15, 47)) +>a : Symbol(a, Decl(declFileMethods_0.ts, 15, 28)) + + public fooWithOverloads(a: any): any { +>fooWithOverloads : Symbol(c1.fooWithOverloads, Decl(declFileMethods_0.ts, 12, 5), Decl(declFileMethods_0.ts, 14, 47), Decl(declFileMethods_0.ts, 15, 47)) +>a : Symbol(a, Decl(declFileMethods_0.ts, 16, 28)) + + return a; +>a : Symbol(a, Decl(declFileMethods_0.ts, 16, 28)) + } + + + /** This comment should appear for privateFoo*/ + private privateFoo() { +>privateFoo : Symbol(c1.privateFoo, Decl(declFileMethods_0.ts, 18, 5)) + } + /** This is comment for function signature*/ + private privateFooWithParameters(/** this is comment about a*/a: string, +>privateFooWithParameters : Symbol(c1.privateFooWithParameters, Decl(declFileMethods_0.ts, 23, 5)) +>a : Symbol(a, Decl(declFileMethods_0.ts, 25, 37)) + + /** this is comment for b*/ + b: number) { +>b : Symbol(b, Decl(declFileMethods_0.ts, 25, 76)) + + var d = a; +>d : Symbol(d, Decl(declFileMethods_0.ts, 28, 11)) +>a : Symbol(a, Decl(declFileMethods_0.ts, 25, 37)) + } + private privateFooWithRestParameters(a: string, ...rests: string[]) { +>privateFooWithRestParameters : Symbol(c1.privateFooWithRestParameters, Decl(declFileMethods_0.ts, 29, 5)) +>a : Symbol(a, Decl(declFileMethods_0.ts, 30, 41)) +>rests : Symbol(rests, Decl(declFileMethods_0.ts, 30, 51)) + + return a + rests.join(""); +>a : Symbol(a, Decl(declFileMethods_0.ts, 30, 41)) +>rests.join : Symbol(Array.join, Decl(lib.es5.d.ts, --, --)) +>rests : Symbol(rests, Decl(declFileMethods_0.ts, 30, 51)) +>join : Symbol(Array.join, Decl(lib.es5.d.ts, --, --)) + } + private privateFooWithOverloads(a: string): string; +>privateFooWithOverloads : Symbol(c1.privateFooWithOverloads, Decl(declFileMethods_0.ts, 32, 5), Decl(declFileMethods_0.ts, 33, 55), Decl(declFileMethods_0.ts, 34, 55)) +>a : Symbol(a, Decl(declFileMethods_0.ts, 33, 36)) + + private privateFooWithOverloads(a: number): number; +>privateFooWithOverloads : Symbol(c1.privateFooWithOverloads, Decl(declFileMethods_0.ts, 32, 5), Decl(declFileMethods_0.ts, 33, 55), Decl(declFileMethods_0.ts, 34, 55)) +>a : Symbol(a, Decl(declFileMethods_0.ts, 34, 36)) + + private privateFooWithOverloads(a: any): any { +>privateFooWithOverloads : Symbol(c1.privateFooWithOverloads, Decl(declFileMethods_0.ts, 32, 5), Decl(declFileMethods_0.ts, 33, 55), Decl(declFileMethods_0.ts, 34, 55)) +>a : Symbol(a, Decl(declFileMethods_0.ts, 35, 36)) + + return a; +>a : Symbol(a, Decl(declFileMethods_0.ts, 35, 36)) + } + + + /** This comment should appear for static foo*/ + static staticFoo() { +>staticFoo : Symbol(c1.staticFoo, Decl(declFileMethods_0.ts, 37, 5)) + } + /** This is comment for function signature*/ + static staticFooWithParameters(/** this is comment about a*/a: string, +>staticFooWithParameters : Symbol(c1.staticFooWithParameters, Decl(declFileMethods_0.ts, 42, 5)) +>a : Symbol(a, Decl(declFileMethods_0.ts, 44, 35)) + + /** this is comment for b*/ + b: number) { +>b : Symbol(b, Decl(declFileMethods_0.ts, 44, 74)) + + var d = a; +>d : Symbol(d, Decl(declFileMethods_0.ts, 47, 11)) +>a : Symbol(a, Decl(declFileMethods_0.ts, 44, 35)) + } + static staticFooWithRestParameters(a: string, ...rests: string[]) { +>staticFooWithRestParameters : Symbol(c1.staticFooWithRestParameters, Decl(declFileMethods_0.ts, 48, 5)) +>a : Symbol(a, Decl(declFileMethods_0.ts, 49, 39)) +>rests : Symbol(rests, Decl(declFileMethods_0.ts, 49, 49)) + + return a + rests.join(""); +>a : Symbol(a, Decl(declFileMethods_0.ts, 49, 39)) +>rests.join : Symbol(Array.join, Decl(lib.es5.d.ts, --, --)) +>rests : Symbol(rests, Decl(declFileMethods_0.ts, 49, 49)) +>join : Symbol(Array.join, Decl(lib.es5.d.ts, --, --)) + } + static staticFooWithOverloads(a: string): string; +>staticFooWithOverloads : Symbol(c1.staticFooWithOverloads, Decl(declFileMethods_0.ts, 51, 5), Decl(declFileMethods_0.ts, 52, 53), Decl(declFileMethods_0.ts, 53, 53)) +>a : Symbol(a, Decl(declFileMethods_0.ts, 52, 34)) + + static staticFooWithOverloads(a: number): number; +>staticFooWithOverloads : Symbol(c1.staticFooWithOverloads, Decl(declFileMethods_0.ts, 51, 5), Decl(declFileMethods_0.ts, 52, 53), Decl(declFileMethods_0.ts, 53, 53)) +>a : Symbol(a, Decl(declFileMethods_0.ts, 53, 34)) + + static staticFooWithOverloads(a: any): any { +>staticFooWithOverloads : Symbol(c1.staticFooWithOverloads, Decl(declFileMethods_0.ts, 51, 5), Decl(declFileMethods_0.ts, 52, 53), Decl(declFileMethods_0.ts, 53, 53)) +>a : Symbol(a, Decl(declFileMethods_0.ts, 54, 34)) + + return a; +>a : Symbol(a, Decl(declFileMethods_0.ts, 54, 34)) + } + + + /** This comment should appear for privateStaticFoo*/ + private static privateStaticFoo() { +>privateStaticFoo : Symbol(c1.privateStaticFoo, Decl(declFileMethods_0.ts, 56, 5)) + } + /** This is comment for function signature*/ + private static privateStaticFooWithParameters(/** this is comment about a*/a: string, +>privateStaticFooWithParameters : Symbol(c1.privateStaticFooWithParameters, Decl(declFileMethods_0.ts, 61, 5)) +>a : Symbol(a, Decl(declFileMethods_0.ts, 63, 50)) + + /** this is comment for b*/ + b: number) { +>b : Symbol(b, Decl(declFileMethods_0.ts, 63, 89)) + + var d = a; +>d : Symbol(d, Decl(declFileMethods_0.ts, 66, 11)) +>a : Symbol(a, Decl(declFileMethods_0.ts, 63, 50)) + } + private static privateStaticFooWithRestParameters(a: string, ...rests: string[]) { +>privateStaticFooWithRestParameters : Symbol(c1.privateStaticFooWithRestParameters, Decl(declFileMethods_0.ts, 67, 5)) +>a : Symbol(a, Decl(declFileMethods_0.ts, 68, 54)) +>rests : Symbol(rests, Decl(declFileMethods_0.ts, 68, 64)) + + return a + rests.join(""); +>a : Symbol(a, Decl(declFileMethods_0.ts, 68, 54)) +>rests.join : Symbol(Array.join, Decl(lib.es5.d.ts, --, --)) +>rests : Symbol(rests, Decl(declFileMethods_0.ts, 68, 64)) +>join : Symbol(Array.join, Decl(lib.es5.d.ts, --, --)) + } + private static privateStaticFooWithOverloads(a: string): string; +>privateStaticFooWithOverloads : Symbol(c1.privateStaticFooWithOverloads, Decl(declFileMethods_0.ts, 70, 5), Decl(declFileMethods_0.ts, 71, 68), Decl(declFileMethods_0.ts, 72, 68)) +>a : Symbol(a, Decl(declFileMethods_0.ts, 71, 49)) + + private static privateStaticFooWithOverloads(a: number): number; +>privateStaticFooWithOverloads : Symbol(c1.privateStaticFooWithOverloads, Decl(declFileMethods_0.ts, 70, 5), Decl(declFileMethods_0.ts, 71, 68), Decl(declFileMethods_0.ts, 72, 68)) +>a : Symbol(a, Decl(declFileMethods_0.ts, 72, 49)) + + private static privateStaticFooWithOverloads(a: any): any { +>privateStaticFooWithOverloads : Symbol(c1.privateStaticFooWithOverloads, Decl(declFileMethods_0.ts, 70, 5), Decl(declFileMethods_0.ts, 71, 68), Decl(declFileMethods_0.ts, 72, 68)) +>a : Symbol(a, Decl(declFileMethods_0.ts, 73, 49)) + + return a; +>a : Symbol(a, Decl(declFileMethods_0.ts, 73, 49)) + } +} + +export interface I1 { +>I1 : Symbol(I1, Decl(declFileMethods_0.ts, 76, 1)) + + /** This comment should appear for foo*/ + foo(): string; +>foo : Symbol(I1.foo, Decl(declFileMethods_0.ts, 78, 21)) + + /** This is comment for function signature*/ + fooWithParameters(/** this is comment about a*/a: string, +>fooWithParameters : Symbol(I1.fooWithParameters, Decl(declFileMethods_0.ts, 80, 18)) +>a : Symbol(a, Decl(declFileMethods_0.ts, 83, 22)) + + /** this is comment for b*/ + b: number): void; +>b : Symbol(b, Decl(declFileMethods_0.ts, 83, 61)) + + fooWithRestParameters(a: string, ...rests: string[]): string; +>fooWithRestParameters : Symbol(I1.fooWithRestParameters, Decl(declFileMethods_0.ts, 85, 25)) +>a : Symbol(a, Decl(declFileMethods_0.ts, 87, 26)) +>rests : Symbol(rests, Decl(declFileMethods_0.ts, 87, 36)) + + fooWithOverloads(a: string): string; +>fooWithOverloads : Symbol(I1.fooWithOverloads, Decl(declFileMethods_0.ts, 87, 65), Decl(declFileMethods_0.ts, 89, 40)) +>a : Symbol(a, Decl(declFileMethods_0.ts, 89, 21)) + + fooWithOverloads(a: number): number; +>fooWithOverloads : Symbol(I1.fooWithOverloads, Decl(declFileMethods_0.ts, 87, 65), Decl(declFileMethods_0.ts, 89, 40)) +>a : Symbol(a, Decl(declFileMethods_0.ts, 90, 21)) +} + +=== declFileMethods_1.ts === +class c2 { +>c2 : Symbol(c2, Decl(declFileMethods_1.ts, 0, 0)) + + /** This comment should appear for foo*/ + public foo() { +>foo : Symbol(c2.foo, Decl(declFileMethods_1.ts, 0, 10)) + } + /** This is comment for function signature*/ + public fooWithParameters(/** this is comment about a*/a: string, +>fooWithParameters : Symbol(c2.fooWithParameters, Decl(declFileMethods_1.ts, 3, 5)) +>a : Symbol(a, Decl(declFileMethods_1.ts, 5, 29)) + + /** this is comment for b*/ + b: number) { +>b : Symbol(b, Decl(declFileMethods_1.ts, 5, 68)) + + var d = a; +>d : Symbol(d, Decl(declFileMethods_1.ts, 8, 11)) +>a : Symbol(a, Decl(declFileMethods_1.ts, 5, 29)) + } + public fooWithRestParameters(a: string, ...rests: string[]) { +>fooWithRestParameters : Symbol(c2.fooWithRestParameters, Decl(declFileMethods_1.ts, 9, 5)) +>a : Symbol(a, Decl(declFileMethods_1.ts, 10, 33)) +>rests : Symbol(rests, Decl(declFileMethods_1.ts, 10, 43)) + + return a + rests.join(""); +>a : Symbol(a, Decl(declFileMethods_1.ts, 10, 33)) +>rests.join : Symbol(Array.join, Decl(lib.es5.d.ts, --, --)) +>rests : Symbol(rests, Decl(declFileMethods_1.ts, 10, 43)) +>join : Symbol(Array.join, Decl(lib.es5.d.ts, --, --)) + } + + public fooWithOverloads(a: string): string; +>fooWithOverloads : Symbol(c2.fooWithOverloads, Decl(declFileMethods_1.ts, 12, 5), Decl(declFileMethods_1.ts, 14, 47), Decl(declFileMethods_1.ts, 15, 47)) +>a : Symbol(a, Decl(declFileMethods_1.ts, 14, 28)) + + public fooWithOverloads(a: number): number; +>fooWithOverloads : Symbol(c2.fooWithOverloads, Decl(declFileMethods_1.ts, 12, 5), Decl(declFileMethods_1.ts, 14, 47), Decl(declFileMethods_1.ts, 15, 47)) +>a : Symbol(a, Decl(declFileMethods_1.ts, 15, 28)) + + public fooWithOverloads(a: any): any { +>fooWithOverloads : Symbol(c2.fooWithOverloads, Decl(declFileMethods_1.ts, 12, 5), Decl(declFileMethods_1.ts, 14, 47), Decl(declFileMethods_1.ts, 15, 47)) +>a : Symbol(a, Decl(declFileMethods_1.ts, 16, 28)) + + return a; +>a : Symbol(a, Decl(declFileMethods_1.ts, 16, 28)) + } + + + /** This comment should appear for privateFoo*/ + private privateFoo() { +>privateFoo : Symbol(c2.privateFoo, Decl(declFileMethods_1.ts, 18, 5)) + } + /** This is comment for function signature*/ + private privateFooWithParameters(/** this is comment about a*/a: string, +>privateFooWithParameters : Symbol(c2.privateFooWithParameters, Decl(declFileMethods_1.ts, 23, 5)) +>a : Symbol(a, Decl(declFileMethods_1.ts, 25, 37)) + + /** this is comment for b*/ + b: number) { +>b : Symbol(b, Decl(declFileMethods_1.ts, 25, 76)) + + var d = a; +>d : Symbol(d, Decl(declFileMethods_1.ts, 28, 11)) +>a : Symbol(a, Decl(declFileMethods_1.ts, 25, 37)) + } + private privateFooWithRestParameters(a: string, ...rests: string[]) { +>privateFooWithRestParameters : Symbol(c2.privateFooWithRestParameters, Decl(declFileMethods_1.ts, 29, 5)) +>a : Symbol(a, Decl(declFileMethods_1.ts, 30, 41)) +>rests : Symbol(rests, Decl(declFileMethods_1.ts, 30, 51)) + + return a + rests.join(""); +>a : Symbol(a, Decl(declFileMethods_1.ts, 30, 41)) +>rests.join : Symbol(Array.join, Decl(lib.es5.d.ts, --, --)) +>rests : Symbol(rests, Decl(declFileMethods_1.ts, 30, 51)) +>join : Symbol(Array.join, Decl(lib.es5.d.ts, --, --)) + } + private privateFooWithOverloads(a: string): string; +>privateFooWithOverloads : Symbol(c2.privateFooWithOverloads, Decl(declFileMethods_1.ts, 32, 5), Decl(declFileMethods_1.ts, 33, 55), Decl(declFileMethods_1.ts, 34, 55)) +>a : Symbol(a, Decl(declFileMethods_1.ts, 33, 36)) + + private privateFooWithOverloads(a: number): number; +>privateFooWithOverloads : Symbol(c2.privateFooWithOverloads, Decl(declFileMethods_1.ts, 32, 5), Decl(declFileMethods_1.ts, 33, 55), Decl(declFileMethods_1.ts, 34, 55)) +>a : Symbol(a, Decl(declFileMethods_1.ts, 34, 36)) + + private privateFooWithOverloads(a: any): any { +>privateFooWithOverloads : Symbol(c2.privateFooWithOverloads, Decl(declFileMethods_1.ts, 32, 5), Decl(declFileMethods_1.ts, 33, 55), Decl(declFileMethods_1.ts, 34, 55)) +>a : Symbol(a, Decl(declFileMethods_1.ts, 35, 36)) + + return a; +>a : Symbol(a, Decl(declFileMethods_1.ts, 35, 36)) + } + + + /** This comment should appear for static foo*/ + static staticFoo() { +>staticFoo : Symbol(c2.staticFoo, Decl(declFileMethods_1.ts, 37, 5)) + } + /** This is comment for function signature*/ + static staticFooWithParameters(/** this is comment about a*/a: string, +>staticFooWithParameters : Symbol(c2.staticFooWithParameters, Decl(declFileMethods_1.ts, 42, 5)) +>a : Symbol(a, Decl(declFileMethods_1.ts, 44, 35)) + + /** this is comment for b*/ + b: number) { +>b : Symbol(b, Decl(declFileMethods_1.ts, 44, 74)) + + var d = a; +>d : Symbol(d, Decl(declFileMethods_1.ts, 47, 11)) +>a : Symbol(a, Decl(declFileMethods_1.ts, 44, 35)) + } + static staticFooWithRestParameters(a: string, ...rests: string[]) { +>staticFooWithRestParameters : Symbol(c2.staticFooWithRestParameters, Decl(declFileMethods_1.ts, 48, 5)) +>a : Symbol(a, Decl(declFileMethods_1.ts, 49, 39)) +>rests : Symbol(rests, Decl(declFileMethods_1.ts, 49, 49)) + + return a + rests.join(""); +>a : Symbol(a, Decl(declFileMethods_1.ts, 49, 39)) +>rests.join : Symbol(Array.join, Decl(lib.es5.d.ts, --, --)) +>rests : Symbol(rests, Decl(declFileMethods_1.ts, 49, 49)) +>join : Symbol(Array.join, Decl(lib.es5.d.ts, --, --)) + } + static staticFooWithOverloads(a: string): string; +>staticFooWithOverloads : Symbol(c2.staticFooWithOverloads, Decl(declFileMethods_1.ts, 51, 5), Decl(declFileMethods_1.ts, 52, 53), Decl(declFileMethods_1.ts, 53, 53)) +>a : Symbol(a, Decl(declFileMethods_1.ts, 52, 34)) + + static staticFooWithOverloads(a: number): number; +>staticFooWithOverloads : Symbol(c2.staticFooWithOverloads, Decl(declFileMethods_1.ts, 51, 5), Decl(declFileMethods_1.ts, 52, 53), Decl(declFileMethods_1.ts, 53, 53)) +>a : Symbol(a, Decl(declFileMethods_1.ts, 53, 34)) + + static staticFooWithOverloads(a: any): any { +>staticFooWithOverloads : Symbol(c2.staticFooWithOverloads, Decl(declFileMethods_1.ts, 51, 5), Decl(declFileMethods_1.ts, 52, 53), Decl(declFileMethods_1.ts, 53, 53)) +>a : Symbol(a, Decl(declFileMethods_1.ts, 54, 34)) + + return a; +>a : Symbol(a, Decl(declFileMethods_1.ts, 54, 34)) + } + + + /** This comment should appear for privateStaticFoo*/ + private static privateStaticFoo() { +>privateStaticFoo : Symbol(c2.privateStaticFoo, Decl(declFileMethods_1.ts, 56, 5)) + } + /** This is comment for function signature*/ + private static privateStaticFooWithParameters(/** this is comment about a*/a: string, +>privateStaticFooWithParameters : Symbol(c2.privateStaticFooWithParameters, Decl(declFileMethods_1.ts, 61, 5)) +>a : Symbol(a, Decl(declFileMethods_1.ts, 63, 50)) + + /** this is comment for b*/ + b: number) { +>b : Symbol(b, Decl(declFileMethods_1.ts, 63, 89)) + + var d = a; +>d : Symbol(d, Decl(declFileMethods_1.ts, 66, 11)) +>a : Symbol(a, Decl(declFileMethods_1.ts, 63, 50)) + } + private static privateStaticFooWithRestParameters(a: string, ...rests: string[]) { +>privateStaticFooWithRestParameters : Symbol(c2.privateStaticFooWithRestParameters, Decl(declFileMethods_1.ts, 67, 5)) +>a : Symbol(a, Decl(declFileMethods_1.ts, 68, 54)) +>rests : Symbol(rests, Decl(declFileMethods_1.ts, 68, 64)) + + return a + rests.join(""); +>a : Symbol(a, Decl(declFileMethods_1.ts, 68, 54)) +>rests.join : Symbol(Array.join, Decl(lib.es5.d.ts, --, --)) +>rests : Symbol(rests, Decl(declFileMethods_1.ts, 68, 64)) +>join : Symbol(Array.join, Decl(lib.es5.d.ts, --, --)) + } + private static privateStaticFooWithOverloads(a: string): string; +>privateStaticFooWithOverloads : Symbol(c2.privateStaticFooWithOverloads, Decl(declFileMethods_1.ts, 70, 5), Decl(declFileMethods_1.ts, 71, 68), Decl(declFileMethods_1.ts, 72, 68)) +>a : Symbol(a, Decl(declFileMethods_1.ts, 71, 49)) + + private static privateStaticFooWithOverloads(a: number): number; +>privateStaticFooWithOverloads : Symbol(c2.privateStaticFooWithOverloads, Decl(declFileMethods_1.ts, 70, 5), Decl(declFileMethods_1.ts, 71, 68), Decl(declFileMethods_1.ts, 72, 68)) +>a : Symbol(a, Decl(declFileMethods_1.ts, 72, 49)) + + private static privateStaticFooWithOverloads(a: any): any { +>privateStaticFooWithOverloads : Symbol(c2.privateStaticFooWithOverloads, Decl(declFileMethods_1.ts, 70, 5), Decl(declFileMethods_1.ts, 71, 68), Decl(declFileMethods_1.ts, 72, 68)) +>a : Symbol(a, Decl(declFileMethods_1.ts, 73, 49)) + + return a; +>a : Symbol(a, Decl(declFileMethods_1.ts, 73, 49)) + } +} + +interface I2 { +>I2 : Symbol(I2, Decl(declFileMethods_1.ts, 76, 1)) + + /** This comment should appear for foo*/ + foo(): string; +>foo : Symbol(I2.foo, Decl(declFileMethods_1.ts, 78, 14)) + + /** This is comment for function signature*/ + fooWithParameters(/** this is comment about a*/a: string, +>fooWithParameters : Symbol(I2.fooWithParameters, Decl(declFileMethods_1.ts, 80, 18)) +>a : Symbol(a, Decl(declFileMethods_1.ts, 83, 22)) + + /** this is comment for b*/ + b: number): void; +>b : Symbol(b, Decl(declFileMethods_1.ts, 83, 61)) + + fooWithRestParameters(a: string, ...rests: string[]): string; +>fooWithRestParameters : Symbol(I2.fooWithRestParameters, Decl(declFileMethods_1.ts, 85, 25)) +>a : Symbol(a, Decl(declFileMethods_1.ts, 87, 26)) +>rests : Symbol(rests, Decl(declFileMethods_1.ts, 87, 36)) + + fooWithOverloads(a: string): string; +>fooWithOverloads : Symbol(I2.fooWithOverloads, Decl(declFileMethods_1.ts, 87, 65), Decl(declFileMethods_1.ts, 89, 40)) +>a : Symbol(a, Decl(declFileMethods_1.ts, 89, 21)) + + fooWithOverloads(a: number): number; +>fooWithOverloads : Symbol(I2.fooWithOverloads, Decl(declFileMethods_1.ts, 87, 65), Decl(declFileMethods_1.ts, 89, 40)) +>a : Symbol(a, Decl(declFileMethods_1.ts, 90, 21)) +} + diff --git a/tests/baselines/reference/declFileMethods(target=es5).types b/tests/baselines/reference/declFileMethods(target=es5).types new file mode 100644 index 0000000000000..a99cfdc9e4c58 --- /dev/null +++ b/tests/baselines/reference/declFileMethods(target=es5).types @@ -0,0 +1,644 @@ +//// [tests/cases/compiler/declFileMethods.ts] //// + +=== declFileMethods_0.ts === +export class c1 { +>c1 : c1 +> : ^^ + + /** This comment should appear for foo*/ + public foo() { +>foo : () => void +> : ^^^^^^^^^^ + } + /** This is comment for function signature*/ + public fooWithParameters(/** this is comment about a*/a: string, +>fooWithParameters : (a: string, b: number) => void +> : ^ ^^ ^^ ^^ ^^^^^^^^^ +>a : string +> : ^^^^^^ + + /** this is comment for b*/ + b: number) { +>b : number +> : ^^^^^^ + + var d = a; +>d : string +> : ^^^^^^ +>a : string +> : ^^^^^^ + } + public fooWithRestParameters(a: string, ...rests: string[]) { +>fooWithRestParameters : (a: string, ...rests: string[]) => string +> : ^ ^^ ^^^^^ ^^ ^^^^^^^^^^^ +>a : string +> : ^^^^^^ +>rests : string[] +> : ^^^^^^^^ + + return a + rests.join(""); +>a + rests.join("") : string +> : ^^^^^^ +>a : string +> : ^^^^^^ +>rests.join("") : string +> : ^^^^^^ +>rests.join : (separator?: string) => string +> : ^ ^^^ ^^^^^ +>rests : string[] +> : ^^^^^^^^ +>join : (separator?: string) => string +> : ^ ^^^ ^^^^^ +>"" : "" +> : ^^ + } + + public fooWithOverloads(a: string): string; +>fooWithOverloads : { (a: string): string; (a: number): number; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>a : string +> : ^^^^^^ + + public fooWithOverloads(a: number): number; +>fooWithOverloads : { (a: string): string; (a: number): number; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>a : number +> : ^^^^^^ + + public fooWithOverloads(a: any): any { +>fooWithOverloads : { (a: string): string; (a: number): number; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>a : any + + return a; +>a : any + } + + + /** This comment should appear for privateFoo*/ + private privateFoo() { +>privateFoo : () => void +> : ^^^^^^^^^^ + } + /** This is comment for function signature*/ + private privateFooWithParameters(/** this is comment about a*/a: string, +>privateFooWithParameters : (a: string, b: number) => void +> : ^ ^^ ^^ ^^ ^^^^^^^^^ +>a : string +> : ^^^^^^ + + /** this is comment for b*/ + b: number) { +>b : number +> : ^^^^^^ + + var d = a; +>d : string +> : ^^^^^^ +>a : string +> : ^^^^^^ + } + private privateFooWithRestParameters(a: string, ...rests: string[]) { +>privateFooWithRestParameters : (a: string, ...rests: string[]) => string +> : ^ ^^ ^^^^^ ^^ ^^^^^^^^^^^ +>a : string +> : ^^^^^^ +>rests : string[] +> : ^^^^^^^^ + + return a + rests.join(""); +>a + rests.join("") : string +> : ^^^^^^ +>a : string +> : ^^^^^^ +>rests.join("") : string +> : ^^^^^^ +>rests.join : (separator?: string) => string +> : ^ ^^^ ^^^^^ +>rests : string[] +> : ^^^^^^^^ +>join : (separator?: string) => string +> : ^ ^^^ ^^^^^ +>"" : "" +> : ^^ + } + private privateFooWithOverloads(a: string): string; +>privateFooWithOverloads : { (a: string): string; (a: number): number; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>a : string +> : ^^^^^^ + + private privateFooWithOverloads(a: number): number; +>privateFooWithOverloads : { (a: string): string; (a: number): number; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>a : number +> : ^^^^^^ + + private privateFooWithOverloads(a: any): any { +>privateFooWithOverloads : { (a: string): string; (a: number): number; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>a : any + + return a; +>a : any + } + + + /** This comment should appear for static foo*/ + static staticFoo() { +>staticFoo : () => void +> : ^^^^^^^^^^ + } + /** This is comment for function signature*/ + static staticFooWithParameters(/** this is comment about a*/a: string, +>staticFooWithParameters : (a: string, b: number) => void +> : ^ ^^ ^^ ^^ ^^^^^^^^^ +>a : string +> : ^^^^^^ + + /** this is comment for b*/ + b: number) { +>b : number +> : ^^^^^^ + + var d = a; +>d : string +> : ^^^^^^ +>a : string +> : ^^^^^^ + } + static staticFooWithRestParameters(a: string, ...rests: string[]) { +>staticFooWithRestParameters : (a: string, ...rests: string[]) => string +> : ^ ^^ ^^^^^ ^^ ^^^^^^^^^^^ +>a : string +> : ^^^^^^ +>rests : string[] +> : ^^^^^^^^ + + return a + rests.join(""); +>a + rests.join("") : string +> : ^^^^^^ +>a : string +> : ^^^^^^ +>rests.join("") : string +> : ^^^^^^ +>rests.join : (separator?: string) => string +> : ^ ^^^ ^^^^^ +>rests : string[] +> : ^^^^^^^^ +>join : (separator?: string) => string +> : ^ ^^^ ^^^^^ +>"" : "" +> : ^^ + } + static staticFooWithOverloads(a: string): string; +>staticFooWithOverloads : { (a: string): string; (a: number): number; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>a : string +> : ^^^^^^ + + static staticFooWithOverloads(a: number): number; +>staticFooWithOverloads : { (a: string): string; (a: number): number; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>a : number +> : ^^^^^^ + + static staticFooWithOverloads(a: any): any { +>staticFooWithOverloads : { (a: string): string; (a: number): number; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>a : any + + return a; +>a : any + } + + + /** This comment should appear for privateStaticFoo*/ + private static privateStaticFoo() { +>privateStaticFoo : () => void +> : ^^^^^^^^^^ + } + /** This is comment for function signature*/ + private static privateStaticFooWithParameters(/** this is comment about a*/a: string, +>privateStaticFooWithParameters : (a: string, b: number) => void +> : ^ ^^ ^^ ^^ ^^^^^^^^^ +>a : string +> : ^^^^^^ + + /** this is comment for b*/ + b: number) { +>b : number +> : ^^^^^^ + + var d = a; +>d : string +> : ^^^^^^ +>a : string +> : ^^^^^^ + } + private static privateStaticFooWithRestParameters(a: string, ...rests: string[]) { +>privateStaticFooWithRestParameters : (a: string, ...rests: string[]) => string +> : ^ ^^ ^^^^^ ^^ ^^^^^^^^^^^ +>a : string +> : ^^^^^^ +>rests : string[] +> : ^^^^^^^^ + + return a + rests.join(""); +>a + rests.join("") : string +> : ^^^^^^ +>a : string +> : ^^^^^^ +>rests.join("") : string +> : ^^^^^^ +>rests.join : (separator?: string) => string +> : ^ ^^^ ^^^^^ +>rests : string[] +> : ^^^^^^^^ +>join : (separator?: string) => string +> : ^ ^^^ ^^^^^ +>"" : "" +> : ^^ + } + private static privateStaticFooWithOverloads(a: string): string; +>privateStaticFooWithOverloads : { (a: string): string; (a: number): number; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>a : string +> : ^^^^^^ + + private static privateStaticFooWithOverloads(a: number): number; +>privateStaticFooWithOverloads : { (a: string): string; (a: number): number; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>a : number +> : ^^^^^^ + + private static privateStaticFooWithOverloads(a: any): any { +>privateStaticFooWithOverloads : { (a: string): string; (a: number): number; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>a : any + + return a; +>a : any + } +} + +export interface I1 { + /** This comment should appear for foo*/ + foo(): string; +>foo : () => string +> : ^^^^^^ + + /** This is comment for function signature*/ + fooWithParameters(/** this is comment about a*/a: string, +>fooWithParameters : (a: string, b: number) => void +> : ^ ^^ ^^ ^^ ^^^^^ +>a : string +> : ^^^^^^ + + /** this is comment for b*/ + b: number): void; +>b : number +> : ^^^^^^ + + fooWithRestParameters(a: string, ...rests: string[]): string; +>fooWithRestParameters : (a: string, ...rests: string[]) => string +> : ^ ^^ ^^^^^ ^^ ^^^^^ +>a : string +> : ^^^^^^ +>rests : string[] +> : ^^^^^^^^ + + fooWithOverloads(a: string): string; +>fooWithOverloads : { (a: string): string; (a: number): number; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>a : string +> : ^^^^^^ + + fooWithOverloads(a: number): number; +>fooWithOverloads : { (a: string): string; (a: number): number; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>a : number +> : ^^^^^^ +} + +=== declFileMethods_1.ts === +class c2 { +>c2 : c2 +> : ^^ + + /** This comment should appear for foo*/ + public foo() { +>foo : () => void +> : ^^^^^^^^^^ + } + /** This is comment for function signature*/ + public fooWithParameters(/** this is comment about a*/a: string, +>fooWithParameters : (a: string, b: number) => void +> : ^ ^^ ^^ ^^ ^^^^^^^^^ +>a : string +> : ^^^^^^ + + /** this is comment for b*/ + b: number) { +>b : number +> : ^^^^^^ + + var d = a; +>d : string +> : ^^^^^^ +>a : string +> : ^^^^^^ + } + public fooWithRestParameters(a: string, ...rests: string[]) { +>fooWithRestParameters : (a: string, ...rests: string[]) => string +> : ^ ^^ ^^^^^ ^^ ^^^^^^^^^^^ +>a : string +> : ^^^^^^ +>rests : string[] +> : ^^^^^^^^ + + return a + rests.join(""); +>a + rests.join("") : string +> : ^^^^^^ +>a : string +> : ^^^^^^ +>rests.join("") : string +> : ^^^^^^ +>rests.join : (separator?: string) => string +> : ^ ^^^ ^^^^^ +>rests : string[] +> : ^^^^^^^^ +>join : (separator?: string) => string +> : ^ ^^^ ^^^^^ +>"" : "" +> : ^^ + } + + public fooWithOverloads(a: string): string; +>fooWithOverloads : { (a: string): string; (a: number): number; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>a : string +> : ^^^^^^ + + public fooWithOverloads(a: number): number; +>fooWithOverloads : { (a: string): string; (a: number): number; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>a : number +> : ^^^^^^ + + public fooWithOverloads(a: any): any { +>fooWithOverloads : { (a: string): string; (a: number): number; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>a : any + + return a; +>a : any + } + + + /** This comment should appear for privateFoo*/ + private privateFoo() { +>privateFoo : () => void +> : ^^^^^^^^^^ + } + /** This is comment for function signature*/ + private privateFooWithParameters(/** this is comment about a*/a: string, +>privateFooWithParameters : (a: string, b: number) => void +> : ^ ^^ ^^ ^^ ^^^^^^^^^ +>a : string +> : ^^^^^^ + + /** this is comment for b*/ + b: number) { +>b : number +> : ^^^^^^ + + var d = a; +>d : string +> : ^^^^^^ +>a : string +> : ^^^^^^ + } + private privateFooWithRestParameters(a: string, ...rests: string[]) { +>privateFooWithRestParameters : (a: string, ...rests: string[]) => string +> : ^ ^^ ^^^^^ ^^ ^^^^^^^^^^^ +>a : string +> : ^^^^^^ +>rests : string[] +> : ^^^^^^^^ + + return a + rests.join(""); +>a + rests.join("") : string +> : ^^^^^^ +>a : string +> : ^^^^^^ +>rests.join("") : string +> : ^^^^^^ +>rests.join : (separator?: string) => string +> : ^ ^^^ ^^^^^ +>rests : string[] +> : ^^^^^^^^ +>join : (separator?: string) => string +> : ^ ^^^ ^^^^^ +>"" : "" +> : ^^ + } + private privateFooWithOverloads(a: string): string; +>privateFooWithOverloads : { (a: string): string; (a: number): number; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>a : string +> : ^^^^^^ + + private privateFooWithOverloads(a: number): number; +>privateFooWithOverloads : { (a: string): string; (a: number): number; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>a : number +> : ^^^^^^ + + private privateFooWithOverloads(a: any): any { +>privateFooWithOverloads : { (a: string): string; (a: number): number; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>a : any + + return a; +>a : any + } + + + /** This comment should appear for static foo*/ + static staticFoo() { +>staticFoo : () => void +> : ^^^^^^^^^^ + } + /** This is comment for function signature*/ + static staticFooWithParameters(/** this is comment about a*/a: string, +>staticFooWithParameters : (a: string, b: number) => void +> : ^ ^^ ^^ ^^ ^^^^^^^^^ +>a : string +> : ^^^^^^ + + /** this is comment for b*/ + b: number) { +>b : number +> : ^^^^^^ + + var d = a; +>d : string +> : ^^^^^^ +>a : string +> : ^^^^^^ + } + static staticFooWithRestParameters(a: string, ...rests: string[]) { +>staticFooWithRestParameters : (a: string, ...rests: string[]) => string +> : ^ ^^ ^^^^^ ^^ ^^^^^^^^^^^ +>a : string +> : ^^^^^^ +>rests : string[] +> : ^^^^^^^^ + + return a + rests.join(""); +>a + rests.join("") : string +> : ^^^^^^ +>a : string +> : ^^^^^^ +>rests.join("") : string +> : ^^^^^^ +>rests.join : (separator?: string) => string +> : ^ ^^^ ^^^^^ +>rests : string[] +> : ^^^^^^^^ +>join : (separator?: string) => string +> : ^ ^^^ ^^^^^ +>"" : "" +> : ^^ + } + static staticFooWithOverloads(a: string): string; +>staticFooWithOverloads : { (a: string): string; (a: number): number; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>a : string +> : ^^^^^^ + + static staticFooWithOverloads(a: number): number; +>staticFooWithOverloads : { (a: string): string; (a: number): number; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>a : number +> : ^^^^^^ + + static staticFooWithOverloads(a: any): any { +>staticFooWithOverloads : { (a: string): string; (a: number): number; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>a : any + + return a; +>a : any + } + + + /** This comment should appear for privateStaticFoo*/ + private static privateStaticFoo() { +>privateStaticFoo : () => void +> : ^^^^^^^^^^ + } + /** This is comment for function signature*/ + private static privateStaticFooWithParameters(/** this is comment about a*/a: string, +>privateStaticFooWithParameters : (a: string, b: number) => void +> : ^ ^^ ^^ ^^ ^^^^^^^^^ +>a : string +> : ^^^^^^ + + /** this is comment for b*/ + b: number) { +>b : number +> : ^^^^^^ + + var d = a; +>d : string +> : ^^^^^^ +>a : string +> : ^^^^^^ + } + private static privateStaticFooWithRestParameters(a: string, ...rests: string[]) { +>privateStaticFooWithRestParameters : (a: string, ...rests: string[]) => string +> : ^ ^^ ^^^^^ ^^ ^^^^^^^^^^^ +>a : string +> : ^^^^^^ +>rests : string[] +> : ^^^^^^^^ + + return a + rests.join(""); +>a + rests.join("") : string +> : ^^^^^^ +>a : string +> : ^^^^^^ +>rests.join("") : string +> : ^^^^^^ +>rests.join : (separator?: string) => string +> : ^ ^^^ ^^^^^ +>rests : string[] +> : ^^^^^^^^ +>join : (separator?: string) => string +> : ^ ^^^ ^^^^^ +>"" : "" +> : ^^ + } + private static privateStaticFooWithOverloads(a: string): string; +>privateStaticFooWithOverloads : { (a: string): string; (a: number): number; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>a : string +> : ^^^^^^ + + private static privateStaticFooWithOverloads(a: number): number; +>privateStaticFooWithOverloads : { (a: string): string; (a: number): number; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>a : number +> : ^^^^^^ + + private static privateStaticFooWithOverloads(a: any): any { +>privateStaticFooWithOverloads : { (a: string): string; (a: number): number; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>a : any + + return a; +>a : any + } +} + +interface I2 { + /** This comment should appear for foo*/ + foo(): string; +>foo : () => string +> : ^^^^^^ + + /** This is comment for function signature*/ + fooWithParameters(/** this is comment about a*/a: string, +>fooWithParameters : (a: string, b: number) => void +> : ^ ^^ ^^ ^^ ^^^^^ +>a : string +> : ^^^^^^ + + /** this is comment for b*/ + b: number): void; +>b : number +> : ^^^^^^ + + fooWithRestParameters(a: string, ...rests: string[]): string; +>fooWithRestParameters : (a: string, ...rests: string[]) => string +> : ^ ^^ ^^^^^ ^^ ^^^^^ +>a : string +> : ^^^^^^ +>rests : string[] +> : ^^^^^^^^ + + fooWithOverloads(a: string): string; +>fooWithOverloads : { (a: string): string; (a: number): number; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>a : string +> : ^^^^^^ + + fooWithOverloads(a: number): number; +>fooWithOverloads : { (a: string): string; (a: number): number; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>a : number +> : ^^^^^^ +} + diff --git a/tests/baselines/reference/declFileObjectLiteralWithAccessors.js b/tests/baselines/reference/declFileObjectLiteralWithAccessors(target=es2015).js similarity index 100% rename from tests/baselines/reference/declFileObjectLiteralWithAccessors.js rename to tests/baselines/reference/declFileObjectLiteralWithAccessors(target=es2015).js diff --git a/tests/baselines/reference/declFileObjectLiteralWithAccessors.symbols b/tests/baselines/reference/declFileObjectLiteralWithAccessors(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/declFileObjectLiteralWithAccessors.symbols rename to tests/baselines/reference/declFileObjectLiteralWithAccessors(target=es2015).symbols diff --git a/tests/baselines/reference/declFileObjectLiteralWithAccessors.types b/tests/baselines/reference/declFileObjectLiteralWithAccessors(target=es2015).types similarity index 100% rename from tests/baselines/reference/declFileObjectLiteralWithAccessors.types rename to tests/baselines/reference/declFileObjectLiteralWithAccessors(target=es2015).types diff --git a/tests/baselines/reference/declFileObjectLiteralWithAccessors(target=es5).js b/tests/baselines/reference/declFileObjectLiteralWithAccessors(target=es5).js new file mode 100644 index 0000000000000..a0feaea61b7ed --- /dev/null +++ b/tests/baselines/reference/declFileObjectLiteralWithAccessors(target=es5).js @@ -0,0 +1,38 @@ +//// [tests/cases/compiler/declFileObjectLiteralWithAccessors.ts] //// + +//// [declFileObjectLiteralWithAccessors.ts] +function /*1*/makePoint(x: number) { + return { + b: 10, + get x() { return x; }, + set x(a: number) { this.b = a; } + }; +}; +var /*4*/point = makePoint(2); +var /*2*/x = point.x; +point./*3*/x = 30; + +//// [declFileObjectLiteralWithAccessors.js] +function makePoint(x) { + return { + b: 10, + get x() { return x; }, + set x(a) { this.b = a; } + }; +} +; +var /*4*/ point = makePoint(2); +var /*2*/ x = point.x; +point. /*3*/x = 30; + + +//// [declFileObjectLiteralWithAccessors.d.ts] +declare function makePoint(x: number): { + b: number; + x: number; +}; +declare var /*4*/ point: { + b: number; + x: number; +}; +declare var /*2*/ x: number; diff --git a/tests/baselines/reference/declFileObjectLiteralWithAccessors(target=es5).symbols b/tests/baselines/reference/declFileObjectLiteralWithAccessors(target=es5).symbols new file mode 100644 index 0000000000000..0e7fe1b0360f7 --- /dev/null +++ b/tests/baselines/reference/declFileObjectLiteralWithAccessors(target=es5).symbols @@ -0,0 +1,37 @@ +//// [tests/cases/compiler/declFileObjectLiteralWithAccessors.ts] //// + +=== declFileObjectLiteralWithAccessors.ts === +function /*1*/makePoint(x: number) { +>makePoint : Symbol(makePoint, Decl(declFileObjectLiteralWithAccessors.ts, 0, 0)) +>x : Symbol(x, Decl(declFileObjectLiteralWithAccessors.ts, 0, 24)) + + return { + b: 10, +>b : Symbol(b, Decl(declFileObjectLiteralWithAccessors.ts, 1, 12)) + + get x() { return x; }, +>x : Symbol(x, Decl(declFileObjectLiteralWithAccessors.ts, 2, 14), Decl(declFileObjectLiteralWithAccessors.ts, 3, 30)) +>x : Symbol(x, Decl(declFileObjectLiteralWithAccessors.ts, 0, 24)) + + set x(a: number) { this.b = a; } +>x : Symbol(x, Decl(declFileObjectLiteralWithAccessors.ts, 2, 14), Decl(declFileObjectLiteralWithAccessors.ts, 3, 30)) +>a : Symbol(a, Decl(declFileObjectLiteralWithAccessors.ts, 4, 14)) +>a : Symbol(a, Decl(declFileObjectLiteralWithAccessors.ts, 4, 14)) + + }; +}; +var /*4*/point = makePoint(2); +>point : Symbol(point, Decl(declFileObjectLiteralWithAccessors.ts, 7, 3)) +>makePoint : Symbol(makePoint, Decl(declFileObjectLiteralWithAccessors.ts, 0, 0)) + +var /*2*/x = point.x; +>x : Symbol(x, Decl(declFileObjectLiteralWithAccessors.ts, 8, 3)) +>point.x : Symbol(x, Decl(declFileObjectLiteralWithAccessors.ts, 2, 14), Decl(declFileObjectLiteralWithAccessors.ts, 3, 30)) +>point : Symbol(point, Decl(declFileObjectLiteralWithAccessors.ts, 7, 3)) +>x : Symbol(x, Decl(declFileObjectLiteralWithAccessors.ts, 2, 14), Decl(declFileObjectLiteralWithAccessors.ts, 3, 30)) + +point./*3*/x = 30; +>point./*3*/x : Symbol(x, Decl(declFileObjectLiteralWithAccessors.ts, 2, 14), Decl(declFileObjectLiteralWithAccessors.ts, 3, 30)) +>point : Symbol(point, Decl(declFileObjectLiteralWithAccessors.ts, 7, 3)) +>x : Symbol(x, Decl(declFileObjectLiteralWithAccessors.ts, 2, 14), Decl(declFileObjectLiteralWithAccessors.ts, 3, 30)) + diff --git a/tests/baselines/reference/declFileObjectLiteralWithAccessors(target=es5).types b/tests/baselines/reference/declFileObjectLiteralWithAccessors(target=es5).types new file mode 100644 index 0000000000000..5419544595676 --- /dev/null +++ b/tests/baselines/reference/declFileObjectLiteralWithAccessors(target=es5).types @@ -0,0 +1,74 @@ +//// [tests/cases/compiler/declFileObjectLiteralWithAccessors.ts] //// + +=== declFileObjectLiteralWithAccessors.ts === +function /*1*/makePoint(x: number) { +>makePoint : (x: number) => { b: number; x: number; } +> : ^ ^^ ^^^^^^^^^^^^^^^^^^^^^ ^^^ +>x : number +> : ^^^^^^ + + return { +>{ b: 10, get x() { return x; }, set x(a: number) { this.b = a; } } : { b: number; x: number; } +> : ^^^^^^^^^^^^^^^^ ^^^ + + b: 10, +>b : number +> : ^^^^^^ +>10 : 10 +> : ^^ + + get x() { return x; }, +>x : number +> : ^^^^^^ +>x : number +> : ^^^^^^ + + set x(a: number) { this.b = a; } +>x : number +> : ^^^^^^ +>a : number +> : ^^^^^^ +>this.b = a : number +> : ^^^^^^ +>this.b : any +>this : any +> : ^^^ +>b : any +> : ^^^ +>a : number +> : ^^^^^^ + + }; +}; +var /*4*/point = makePoint(2); +>point : { b: number; x: number; } +> : ^^^^^^^^^^^^^^^^ ^^^ +>makePoint(2) : { b: number; x: number; } +> : ^^^^^^^^^^^^^^^^ ^^^ +>makePoint : (x: number) => { b: number; x: number; } +> : ^ ^^ ^^^^^^^^^^^^^^^^^^^^^ ^^^ +>2 : 2 +> : ^ + +var /*2*/x = point.x; +>x : number +> : ^^^^^^ +>point.x : number +> : ^^^^^^ +>point : { b: number; x: number; } +> : ^^^^^^^^^^^^^^^^ ^^^ +>x : number +> : ^^^^^^ + +point./*3*/x = 30; +>point./*3*/x = 30 : 30 +> : ^^ +>point./*3*/x : number +> : ^^^^^^ +>point : { b: number; x: number; } +> : ^^^^^^^^^^^^^^^^ ^^^ +>x : number +> : ^^^^^^ +>30 : 30 +> : ^^ + diff --git a/tests/baselines/reference/declFileObjectLiteralWithOnlyGetter.js b/tests/baselines/reference/declFileObjectLiteralWithOnlyGetter(target=es2015).js similarity index 100% rename from tests/baselines/reference/declFileObjectLiteralWithOnlyGetter.js rename to tests/baselines/reference/declFileObjectLiteralWithOnlyGetter(target=es2015).js diff --git a/tests/baselines/reference/declFileObjectLiteralWithOnlyGetter.symbols b/tests/baselines/reference/declFileObjectLiteralWithOnlyGetter(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/declFileObjectLiteralWithOnlyGetter.symbols rename to tests/baselines/reference/declFileObjectLiteralWithOnlyGetter(target=es2015).symbols diff --git a/tests/baselines/reference/declFileObjectLiteralWithOnlyGetter.types b/tests/baselines/reference/declFileObjectLiteralWithOnlyGetter(target=es2015).types similarity index 100% rename from tests/baselines/reference/declFileObjectLiteralWithOnlyGetter.types rename to tests/baselines/reference/declFileObjectLiteralWithOnlyGetter(target=es2015).types diff --git a/tests/baselines/reference/declFileObjectLiteralWithOnlyGetter(target=es5).js b/tests/baselines/reference/declFileObjectLiteralWithOnlyGetter(target=es5).js new file mode 100644 index 0000000000000..379fd73856a90 --- /dev/null +++ b/tests/baselines/reference/declFileObjectLiteralWithOnlyGetter(target=es5).js @@ -0,0 +1,31 @@ +//// [tests/cases/compiler/declFileObjectLiteralWithOnlyGetter.ts] //// + +//// [declFileObjectLiteralWithOnlyGetter.ts] +function /*1*/makePoint(x: number) { + return { + get x() { return x; }, + }; +}; +var /*4*/point = makePoint(2); +var /*2*/x = point./*3*/x; + + +//// [declFileObjectLiteralWithOnlyGetter.js] +function makePoint(x) { + return { + get x() { return x; }, + }; +} +; +var /*4*/ point = makePoint(2); +var /*2*/ x = point. /*3*/x; + + +//// [declFileObjectLiteralWithOnlyGetter.d.ts] +declare function makePoint(x: number): { + readonly x: number; +}; +declare var /*4*/ point: { + readonly x: number; +}; +declare var /*2*/ x: number; diff --git a/tests/baselines/reference/declFileObjectLiteralWithOnlyGetter(target=es5).symbols b/tests/baselines/reference/declFileObjectLiteralWithOnlyGetter(target=es5).symbols new file mode 100644 index 0000000000000..3313ae3e3b6c0 --- /dev/null +++ b/tests/baselines/reference/declFileObjectLiteralWithOnlyGetter(target=es5).symbols @@ -0,0 +1,24 @@ +//// [tests/cases/compiler/declFileObjectLiteralWithOnlyGetter.ts] //// + +=== declFileObjectLiteralWithOnlyGetter.ts === +function /*1*/makePoint(x: number) { +>makePoint : Symbol(makePoint, Decl(declFileObjectLiteralWithOnlyGetter.ts, 0, 0)) +>x : Symbol(x, Decl(declFileObjectLiteralWithOnlyGetter.ts, 0, 24)) + + return { + get x() { return x; }, +>x : Symbol(x, Decl(declFileObjectLiteralWithOnlyGetter.ts, 1, 12)) +>x : Symbol(x, Decl(declFileObjectLiteralWithOnlyGetter.ts, 0, 24)) + + }; +}; +var /*4*/point = makePoint(2); +>point : Symbol(point, Decl(declFileObjectLiteralWithOnlyGetter.ts, 5, 3)) +>makePoint : Symbol(makePoint, Decl(declFileObjectLiteralWithOnlyGetter.ts, 0, 0)) + +var /*2*/x = point./*3*/x; +>x : Symbol(x, Decl(declFileObjectLiteralWithOnlyGetter.ts, 6, 3)) +>point./*3*/x : Symbol(x, Decl(declFileObjectLiteralWithOnlyGetter.ts, 1, 12)) +>point : Symbol(point, Decl(declFileObjectLiteralWithOnlyGetter.ts, 5, 3)) +>x : Symbol(x, Decl(declFileObjectLiteralWithOnlyGetter.ts, 1, 12)) + diff --git a/tests/baselines/reference/declFileObjectLiteralWithOnlyGetter(target=es5).types b/tests/baselines/reference/declFileObjectLiteralWithOnlyGetter(target=es5).types new file mode 100644 index 0000000000000..7eacb512da966 --- /dev/null +++ b/tests/baselines/reference/declFileObjectLiteralWithOnlyGetter(target=es5).types @@ -0,0 +1,41 @@ +//// [tests/cases/compiler/declFileObjectLiteralWithOnlyGetter.ts] //// + +=== declFileObjectLiteralWithOnlyGetter.ts === +function /*1*/makePoint(x: number) { +>makePoint : (x: number) => { readonly x: number; } +> : ^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>x : number +> : ^^^^^^ + + return { +>{ get x() { return x; }, } : { readonly x: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^ + + get x() { return x; }, +>x : number +> : ^^^^^^ +>x : number +> : ^^^^^^ + + }; +}; +var /*4*/point = makePoint(2); +>point : { readonly x: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>makePoint(2) : { readonly x: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>makePoint : (x: number) => { readonly x: number; } +> : ^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>2 : 2 +> : ^ + +var /*2*/x = point./*3*/x; +>x : number +> : ^^^^^^ +>point./*3*/x : number +> : ^^^^^^ +>point : { readonly x: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>x : number +> : ^^^^^^ + diff --git a/tests/baselines/reference/declFileObjectLiteralWithOnlySetter.js b/tests/baselines/reference/declFileObjectLiteralWithOnlySetter(target=es2015).js similarity index 100% rename from tests/baselines/reference/declFileObjectLiteralWithOnlySetter.js rename to tests/baselines/reference/declFileObjectLiteralWithOnlySetter(target=es2015).js diff --git a/tests/baselines/reference/declFileObjectLiteralWithOnlySetter.symbols b/tests/baselines/reference/declFileObjectLiteralWithOnlySetter(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/declFileObjectLiteralWithOnlySetter.symbols rename to tests/baselines/reference/declFileObjectLiteralWithOnlySetter(target=es2015).symbols diff --git a/tests/baselines/reference/declFileObjectLiteralWithOnlySetter.types b/tests/baselines/reference/declFileObjectLiteralWithOnlySetter(target=es2015).types similarity index 100% rename from tests/baselines/reference/declFileObjectLiteralWithOnlySetter.types rename to tests/baselines/reference/declFileObjectLiteralWithOnlySetter(target=es2015).types diff --git a/tests/baselines/reference/declFileObjectLiteralWithOnlySetter(target=es5).js b/tests/baselines/reference/declFileObjectLiteralWithOnlySetter(target=es5).js new file mode 100644 index 0000000000000..aa5d6bfa3e07f --- /dev/null +++ b/tests/baselines/reference/declFileObjectLiteralWithOnlySetter(target=es5).js @@ -0,0 +1,33 @@ +//// [tests/cases/compiler/declFileObjectLiteralWithOnlySetter.ts] //// + +//// [declFileObjectLiteralWithOnlySetter.ts] +function /*1*/makePoint(x: number) { + return { + b: 10, + set x(a: number) { this.b = a; } + }; +}; +var /*3*/point = makePoint(2); +point./*2*/x = 30; + +//// [declFileObjectLiteralWithOnlySetter.js] +function makePoint(x) { + return { + b: 10, + set x(a) { this.b = a; } + }; +} +; +var /*3*/ point = makePoint(2); +point. /*2*/x = 30; + + +//// [declFileObjectLiteralWithOnlySetter.d.ts] +declare function makePoint(x: number): { + b: number; + x: number; +}; +declare var /*3*/ point: { + b: number; + x: number; +}; diff --git a/tests/baselines/reference/declFileObjectLiteralWithOnlySetter(target=es5).symbols b/tests/baselines/reference/declFileObjectLiteralWithOnlySetter(target=es5).symbols new file mode 100644 index 0000000000000..85ce4f8e74103 --- /dev/null +++ b/tests/baselines/reference/declFileObjectLiteralWithOnlySetter(target=es5).symbols @@ -0,0 +1,27 @@ +//// [tests/cases/compiler/declFileObjectLiteralWithOnlySetter.ts] //// + +=== declFileObjectLiteralWithOnlySetter.ts === +function /*1*/makePoint(x: number) { +>makePoint : Symbol(makePoint, Decl(declFileObjectLiteralWithOnlySetter.ts, 0, 0)) +>x : Symbol(x, Decl(declFileObjectLiteralWithOnlySetter.ts, 0, 24)) + + return { + b: 10, +>b : Symbol(b, Decl(declFileObjectLiteralWithOnlySetter.ts, 1, 12)) + + set x(a: number) { this.b = a; } +>x : Symbol(x, Decl(declFileObjectLiteralWithOnlySetter.ts, 2, 14)) +>a : Symbol(a, Decl(declFileObjectLiteralWithOnlySetter.ts, 3, 14)) +>a : Symbol(a, Decl(declFileObjectLiteralWithOnlySetter.ts, 3, 14)) + + }; +}; +var /*3*/point = makePoint(2); +>point : Symbol(point, Decl(declFileObjectLiteralWithOnlySetter.ts, 6, 3)) +>makePoint : Symbol(makePoint, Decl(declFileObjectLiteralWithOnlySetter.ts, 0, 0)) + +point./*2*/x = 30; +>point./*2*/x : Symbol(x, Decl(declFileObjectLiteralWithOnlySetter.ts, 2, 14)) +>point : Symbol(point, Decl(declFileObjectLiteralWithOnlySetter.ts, 6, 3)) +>x : Symbol(x, Decl(declFileObjectLiteralWithOnlySetter.ts, 2, 14)) + diff --git a/tests/baselines/reference/declFileObjectLiteralWithOnlySetter(target=es5).types b/tests/baselines/reference/declFileObjectLiteralWithOnlySetter(target=es5).types new file mode 100644 index 0000000000000..f61fd90251cb2 --- /dev/null +++ b/tests/baselines/reference/declFileObjectLiteralWithOnlySetter(target=es5).types @@ -0,0 +1,58 @@ +//// [tests/cases/compiler/declFileObjectLiteralWithOnlySetter.ts] //// + +=== declFileObjectLiteralWithOnlySetter.ts === +function /*1*/makePoint(x: number) { +>makePoint : (x: number) => { b: number; x: number; } +> : ^ ^^ ^^^^^^^^^^^^^^^^^^^^^ ^^^ +>x : number +> : ^^^^^^ + + return { +>{ b: 10, set x(a: number) { this.b = a; } } : { b: number; x: number; } +> : ^^^^^^^^^^^^^^^^ ^^^ + + b: 10, +>b : number +> : ^^^^^^ +>10 : 10 +> : ^^ + + set x(a: number) { this.b = a; } +>x : number +> : ^^^^^^ +>a : number +> : ^^^^^^ +>this.b = a : number +> : ^^^^^^ +>this.b : any +>this : any +> : ^^^ +>b : any +> : ^^^ +>a : number +> : ^^^^^^ + + }; +}; +var /*3*/point = makePoint(2); +>point : { b: number; x: number; } +> : ^^^^^^^^^^^^^^^^ ^^^ +>makePoint(2) : { b: number; x: number; } +> : ^^^^^^^^^^^^^^^^ ^^^ +>makePoint : (x: number) => { b: number; x: number; } +> : ^ ^^ ^^^^^^^^^^^^^^^^^^^^^ ^^^ +>2 : 2 +> : ^ + +point./*2*/x = 30; +>point./*2*/x = 30 : 30 +> : ^^ +>point./*2*/x : number +> : ^^^^^^ +>point : { b: number; x: number; } +> : ^^^^^^^^^^^^^^^^ ^^^ +>x : number +> : ^^^^^^ +>30 : 30 +> : ^^ + diff --git a/tests/baselines/reference/declFilePrivateStatic(target=es2015).js b/tests/baselines/reference/declFilePrivateStatic(target=es2015).js new file mode 100644 index 0000000000000..381c592f21428 --- /dev/null +++ b/tests/baselines/reference/declFilePrivateStatic(target=es2015).js @@ -0,0 +1,41 @@ +//// [tests/cases/compiler/declFilePrivateStatic.ts] //// + +//// [declFilePrivateStatic.ts] +class C { + private static x = 1; + static y = 1; + + private static a() { } + static b() { } + + private static get c() { return 1; } + static get d() { return 1; } + + private static set e(v) { } + static set f(v) { } +} + +//// [declFilePrivateStatic.js] +class C { + static a() { } + static b() { } + static get c() { return 1; } + static get d() { return 1; } + static set e(v) { } + static set f(v) { } +} +C.x = 1; +C.y = 1; + + +//// [declFilePrivateStatic.d.ts] +declare class C { + private static x; + static y: number; + private static a; + static b(): void; + private static get c(); + static get d(): number; + private static set e(value); + static set f(v: any); +} diff --git a/tests/baselines/reference/declFilePrivateStatic.symbols b/tests/baselines/reference/declFilePrivateStatic(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/declFilePrivateStatic.symbols rename to tests/baselines/reference/declFilePrivateStatic(target=es2015).symbols diff --git a/tests/baselines/reference/declFilePrivateStatic.types b/tests/baselines/reference/declFilePrivateStatic(target=es2015).types similarity index 100% rename from tests/baselines/reference/declFilePrivateStatic.types rename to tests/baselines/reference/declFilePrivateStatic(target=es2015).types diff --git a/tests/baselines/reference/declFilePrivateStatic.js b/tests/baselines/reference/declFilePrivateStatic(target=es5).js similarity index 100% rename from tests/baselines/reference/declFilePrivateStatic.js rename to tests/baselines/reference/declFilePrivateStatic(target=es5).js diff --git a/tests/baselines/reference/declFilePrivateStatic(target=es5).symbols b/tests/baselines/reference/declFilePrivateStatic(target=es5).symbols new file mode 100644 index 0000000000000..37cf897225b92 --- /dev/null +++ b/tests/baselines/reference/declFilePrivateStatic(target=es5).symbols @@ -0,0 +1,32 @@ +//// [tests/cases/compiler/declFilePrivateStatic.ts] //// + +=== declFilePrivateStatic.ts === +class C { +>C : Symbol(C, Decl(declFilePrivateStatic.ts, 0, 0)) + + private static x = 1; +>x : Symbol(C.x, Decl(declFilePrivateStatic.ts, 0, 9)) + + static y = 1; +>y : Symbol(C.y, Decl(declFilePrivateStatic.ts, 1, 25)) + + private static a() { } +>a : Symbol(C.a, Decl(declFilePrivateStatic.ts, 2, 17)) + + static b() { } +>b : Symbol(C.b, Decl(declFilePrivateStatic.ts, 4, 26)) + + private static get c() { return 1; } +>c : Symbol(C.c, Decl(declFilePrivateStatic.ts, 5, 18)) + + static get d() { return 1; } +>d : Symbol(C.d, Decl(declFilePrivateStatic.ts, 7, 40)) + + private static set e(v) { } +>e : Symbol(C.e, Decl(declFilePrivateStatic.ts, 8, 32)) +>v : Symbol(v, Decl(declFilePrivateStatic.ts, 10, 25)) + + static set f(v) { } +>f : Symbol(C.f, Decl(declFilePrivateStatic.ts, 10, 31)) +>v : Symbol(v, Decl(declFilePrivateStatic.ts, 11, 17)) +} diff --git a/tests/baselines/reference/declFilePrivateStatic(target=es5).types b/tests/baselines/reference/declFilePrivateStatic(target=es5).types new file mode 100644 index 0000000000000..c8c1fce918863 --- /dev/null +++ b/tests/baselines/reference/declFilePrivateStatic(target=es5).types @@ -0,0 +1,47 @@ +//// [tests/cases/compiler/declFilePrivateStatic.ts] //// + +=== declFilePrivateStatic.ts === +class C { +>C : C +> : ^ + + private static x = 1; +>x : number +> : ^^^^^^ +>1 : 1 +> : ^ + + static y = 1; +>y : number +> : ^^^^^^ +>1 : 1 +> : ^ + + private static a() { } +>a : () => void +> : ^^^^^^^^^^ + + static b() { } +>b : () => void +> : ^^^^^^^^^^ + + private static get c() { return 1; } +>c : number +> : ^^^^^^ +>1 : 1 +> : ^ + + static get d() { return 1; } +>d : number +> : ^^^^^^ +>1 : 1 +> : ^ + + private static set e(v) { } +>e : any +>v : any + + static set f(v) { } +>f : any +>v : any +} diff --git a/tests/baselines/reference/declFileTypeAnnotationArrayType(target=es2015).js b/tests/baselines/reference/declFileTypeAnnotationArrayType(target=es2015).js new file mode 100644 index 0000000000000..b2da1d33585dc --- /dev/null +++ b/tests/baselines/reference/declFileTypeAnnotationArrayType(target=es2015).js @@ -0,0 +1,126 @@ +//// [tests/cases/compiler/declFileTypeAnnotationArrayType.ts] //// + +//// [declFileTypeAnnotationArrayType.ts] +class c { +} +namespace m { + export class c { + } + export class g { + } +} +class g { +} + +// Just the name +function foo(): c[] { + return [new c()]; +} +function foo2() { + return [new c()]; +} + +// Qualified name +function foo3(): m.c[] { + return [new m.c()]; +} +function foo4() { + return m.c; +} + +// Just the name with type arguments +function foo5(): g[] { + return [new g()]; +} +function foo6() { + return [new g()]; +} + +// Qualified name with type arguments +function foo7(): m.g[] { + return [new m.g()]; +} +function foo8() { + return [new m.g()]; +} + +// Array of function types +function foo9(): (()=>c)[] { + return [() => new c()]; +} +function foo10() { + return [() => new c()]; +} + +//// [declFileTypeAnnotationArrayType.js] +class c { +} +var m; +(function (m) { + class c { + } + m.c = c; + class g { + } + m.g = g; +})(m || (m = {})); +class g { +} +// Just the name +function foo() { + return [new c()]; +} +function foo2() { + return [new c()]; +} +// Qualified name +function foo3() { + return [new m.c()]; +} +function foo4() { + return m.c; +} +// Just the name with type arguments +function foo5() { + return [new g()]; +} +function foo6() { + return [new g()]; +} +// Qualified name with type arguments +function foo7() { + return [new m.g()]; +} +function foo8() { + return [new m.g()]; +} +// Array of function types +function foo9() { + return [() => new c()]; +} +function foo10() { + return [() => new c()]; +} + + +//// [declFileTypeAnnotationArrayType.d.ts] +declare class c { +} +declare namespace m { + class c { + } + class g { + } +} +declare class g { +} +declare function foo(): c[]; +declare function foo2(): c[]; +declare function foo3(): m.c[]; +declare function foo4(): typeof m.c; +declare function foo5(): g[]; +declare function foo6(): g[]; +declare function foo7(): m.g[]; +declare function foo8(): m.g[]; +declare function foo9(): (() => c)[]; +declare function foo10(): (() => c)[]; diff --git a/tests/baselines/reference/declFileTypeAnnotationArrayType.symbols b/tests/baselines/reference/declFileTypeAnnotationArrayType(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/declFileTypeAnnotationArrayType.symbols rename to tests/baselines/reference/declFileTypeAnnotationArrayType(target=es2015).symbols diff --git a/tests/baselines/reference/declFileTypeAnnotationArrayType.types b/tests/baselines/reference/declFileTypeAnnotationArrayType(target=es2015).types similarity index 100% rename from tests/baselines/reference/declFileTypeAnnotationArrayType.types rename to tests/baselines/reference/declFileTypeAnnotationArrayType(target=es2015).types diff --git a/tests/baselines/reference/declFileTypeAnnotationArrayType.js b/tests/baselines/reference/declFileTypeAnnotationArrayType(target=es5).js similarity index 100% rename from tests/baselines/reference/declFileTypeAnnotationArrayType.js rename to tests/baselines/reference/declFileTypeAnnotationArrayType(target=es5).js diff --git a/tests/baselines/reference/declFileTypeAnnotationArrayType(target=es5).symbols b/tests/baselines/reference/declFileTypeAnnotationArrayType(target=es5).symbols new file mode 100644 index 0000000000000..396b1e865a8fa --- /dev/null +++ b/tests/baselines/reference/declFileTypeAnnotationArrayType(target=es5).symbols @@ -0,0 +1,106 @@ +//// [tests/cases/compiler/declFileTypeAnnotationArrayType.ts] //// + +=== declFileTypeAnnotationArrayType.ts === +class c { +>c : Symbol(c, Decl(declFileTypeAnnotationArrayType.ts, 0, 0)) +} +namespace m { +>m : Symbol(m, Decl(declFileTypeAnnotationArrayType.ts, 1, 1)) + + export class c { +>c : Symbol(c, Decl(declFileTypeAnnotationArrayType.ts, 2, 13)) + } + export class g { +>g : Symbol(g, Decl(declFileTypeAnnotationArrayType.ts, 4, 5)) +>T : Symbol(T, Decl(declFileTypeAnnotationArrayType.ts, 5, 19)) + } +} +class g { +>g : Symbol(g, Decl(declFileTypeAnnotationArrayType.ts, 7, 1)) +>T : Symbol(T, Decl(declFileTypeAnnotationArrayType.ts, 8, 8)) +} + +// Just the name +function foo(): c[] { +>foo : Symbol(foo, Decl(declFileTypeAnnotationArrayType.ts, 9, 1)) +>c : Symbol(c, Decl(declFileTypeAnnotationArrayType.ts, 0, 0)) + + return [new c()]; +>c : Symbol(c, Decl(declFileTypeAnnotationArrayType.ts, 0, 0)) +} +function foo2() { +>foo2 : Symbol(foo2, Decl(declFileTypeAnnotationArrayType.ts, 14, 1)) + + return [new c()]; +>c : Symbol(c, Decl(declFileTypeAnnotationArrayType.ts, 0, 0)) +} + +// Qualified name +function foo3(): m.c[] { +>foo3 : Symbol(foo3, Decl(declFileTypeAnnotationArrayType.ts, 17, 1)) +>m : Symbol(m, Decl(declFileTypeAnnotationArrayType.ts, 1, 1)) +>c : Symbol(m.c, Decl(declFileTypeAnnotationArrayType.ts, 2, 13)) + + return [new m.c()]; +>m.c : Symbol(m.c, Decl(declFileTypeAnnotationArrayType.ts, 2, 13)) +>m : Symbol(m, Decl(declFileTypeAnnotationArrayType.ts, 1, 1)) +>c : Symbol(m.c, Decl(declFileTypeAnnotationArrayType.ts, 2, 13)) +} +function foo4() { +>foo4 : Symbol(foo4, Decl(declFileTypeAnnotationArrayType.ts, 22, 1)) + + return m.c; +>m.c : Symbol(m.c, Decl(declFileTypeAnnotationArrayType.ts, 2, 13)) +>m : Symbol(m, Decl(declFileTypeAnnotationArrayType.ts, 1, 1)) +>c : Symbol(m.c, Decl(declFileTypeAnnotationArrayType.ts, 2, 13)) +} + +// Just the name with type arguments +function foo5(): g[] { +>foo5 : Symbol(foo5, Decl(declFileTypeAnnotationArrayType.ts, 25, 1)) +>g : Symbol(g, Decl(declFileTypeAnnotationArrayType.ts, 7, 1)) + + return [new g()]; +>g : Symbol(g, Decl(declFileTypeAnnotationArrayType.ts, 7, 1)) +} +function foo6() { +>foo6 : Symbol(foo6, Decl(declFileTypeAnnotationArrayType.ts, 30, 1)) + + return [new g()]; +>g : Symbol(g, Decl(declFileTypeAnnotationArrayType.ts, 7, 1)) +} + +// Qualified name with type arguments +function foo7(): m.g[] { +>foo7 : Symbol(foo7, Decl(declFileTypeAnnotationArrayType.ts, 33, 1)) +>m : Symbol(m, Decl(declFileTypeAnnotationArrayType.ts, 1, 1)) +>g : Symbol(m.g, Decl(declFileTypeAnnotationArrayType.ts, 4, 5)) + + return [new m.g()]; +>m.g : Symbol(m.g, Decl(declFileTypeAnnotationArrayType.ts, 4, 5)) +>m : Symbol(m, Decl(declFileTypeAnnotationArrayType.ts, 1, 1)) +>g : Symbol(m.g, Decl(declFileTypeAnnotationArrayType.ts, 4, 5)) +} +function foo8() { +>foo8 : Symbol(foo8, Decl(declFileTypeAnnotationArrayType.ts, 38, 1)) + + return [new m.g()]; +>m.g : Symbol(m.g, Decl(declFileTypeAnnotationArrayType.ts, 4, 5)) +>m : Symbol(m, Decl(declFileTypeAnnotationArrayType.ts, 1, 1)) +>g : Symbol(m.g, Decl(declFileTypeAnnotationArrayType.ts, 4, 5)) +} + +// Array of function types +function foo9(): (()=>c)[] { +>foo9 : Symbol(foo9, Decl(declFileTypeAnnotationArrayType.ts, 41, 1)) +>c : Symbol(c, Decl(declFileTypeAnnotationArrayType.ts, 0, 0)) + + return [() => new c()]; +>c : Symbol(c, Decl(declFileTypeAnnotationArrayType.ts, 0, 0)) +} +function foo10() { +>foo10 : Symbol(foo10, Decl(declFileTypeAnnotationArrayType.ts, 46, 1)) + + return [() => new c()]; +>c : Symbol(c, Decl(declFileTypeAnnotationArrayType.ts, 0, 0)) +} diff --git a/tests/baselines/reference/declFileTypeAnnotationArrayType(target=es5).types b/tests/baselines/reference/declFileTypeAnnotationArrayType(target=es5).types new file mode 100644 index 0000000000000..cb613e13c655c --- /dev/null +++ b/tests/baselines/reference/declFileTypeAnnotationArrayType(target=es5).types @@ -0,0 +1,174 @@ +//// [tests/cases/compiler/declFileTypeAnnotationArrayType.ts] //// + +=== declFileTypeAnnotationArrayType.ts === +class c { +>c : c +> : ^ +} +namespace m { +>m : typeof m +> : ^^^^^^^^ + + export class c { +>c : c +> : ^ + } + export class g { +>g : g +> : ^^^^ + } +} +class g { +>g : g +> : ^^^^ +} + +// Just the name +function foo(): c[] { +>foo : () => c[] +> : ^^^^^^ + + return [new c()]; +>[new c()] : c[] +> : ^^^ +>new c() : c +> : ^ +>c : typeof c +> : ^^^^^^^^ +} +function foo2() { +>foo2 : () => c[] +> : ^^^^^^^^^ + + return [new c()]; +>[new c()] : c[] +> : ^^^ +>new c() : c +> : ^ +>c : typeof c +> : ^^^^^^^^ +} + +// Qualified name +function foo3(): m.c[] { +>foo3 : () => m.c[] +> : ^^^^^^ +>m : any +> : ^^^ + + return [new m.c()]; +>[new m.c()] : m.c[] +> : ^^^^^ +>new m.c() : m.c +> : ^^^ +>m.c : typeof m.c +> : ^^^^^^^^^^ +>m : typeof m +> : ^^^^^^^^ +>c : typeof m.c +> : ^^^^^^^^^^ +} +function foo4() { +>foo4 : () => typeof m.c +> : ^^^^^^^^^^^^^^^^ + + return m.c; +>m.c : typeof m.c +> : ^^^^^^^^^^ +>m : typeof m +> : ^^^^^^^^ +>c : typeof m.c +> : ^^^^^^^^^^ +} + +// Just the name with type arguments +function foo5(): g[] { +>foo5 : () => g[] +> : ^^^^^^ + + return [new g()]; +>[new g()] : g[] +> : ^^^^^^^^^^^ +>new g() : g +> : ^^^^^^^^^ +>g : typeof g +> : ^^^^^^^^ +} +function foo6() { +>foo6 : () => g[] +> : ^^^^^^^^^^^^^^^^^ + + return [new g()]; +>[new g()] : g[] +> : ^^^^^^^^^^^ +>new g() : g +> : ^^^^^^^^^ +>g : typeof g +> : ^^^^^^^^ +} + +// Qualified name with type arguments +function foo7(): m.g[] { +>foo7 : () => m.g[] +> : ^^^^^^ +>m : any +> : ^^^ + + return [new m.g()]; +>[new m.g()] : m.g[] +> : ^^^^^^^^^^^^^ +>new m.g() : m.g +> : ^^^^^^^^^^^ +>m.g : typeof m.g +> : ^^^^^^^^^^ +>m : typeof m +> : ^^^^^^^^ +>g : typeof m.g +> : ^^^^^^^^^^ +} +function foo8() { +>foo8 : () => m.g[] +> : ^^^^^^^^^^^^^^^^^^^ + + return [new m.g()]; +>[new m.g()] : m.g[] +> : ^^^^^^^^^^^^^ +>new m.g() : m.g +> : ^^^^^^^^^^^ +>m.g : typeof m.g +> : ^^^^^^^^^^ +>m : typeof m +> : ^^^^^^^^ +>g : typeof m.g +> : ^^^^^^^^^^ +} + +// Array of function types +function foo9(): (()=>c)[] { +>foo9 : () => (() => c)[] +> : ^^^^^^ + + return [() => new c()]; +>[() => new c()] : (() => c)[] +> : ^^^^^^^^^^^ +>() => new c() : () => c +> : ^^^^^^^ +>new c() : c +> : ^ +>c : typeof c +> : ^^^^^^^^ +} +function foo10() { +>foo10 : () => (() => c)[] +> : ^^^^^^^^^^^^^^^^^ + + return [() => new c()]; +>[() => new c()] : (() => c)[] +> : ^^^^^^^^^^^ +>() => new c() : () => c +> : ^^^^^^^ +>new c() : c +> : ^ +>c : typeof c +> : ^^^^^^^^ +} diff --git a/tests/baselines/reference/declFileTypeAnnotationBuiltInType.js b/tests/baselines/reference/declFileTypeAnnotationBuiltInType(target=es2015).js similarity index 100% rename from tests/baselines/reference/declFileTypeAnnotationBuiltInType.js rename to tests/baselines/reference/declFileTypeAnnotationBuiltInType(target=es2015).js diff --git a/tests/baselines/reference/declFileTypeAnnotationBuiltInType.symbols b/tests/baselines/reference/declFileTypeAnnotationBuiltInType(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/declFileTypeAnnotationBuiltInType.symbols rename to tests/baselines/reference/declFileTypeAnnotationBuiltInType(target=es2015).symbols diff --git a/tests/baselines/reference/declFileTypeAnnotationBuiltInType.types b/tests/baselines/reference/declFileTypeAnnotationBuiltInType(target=es2015).types similarity index 100% rename from tests/baselines/reference/declFileTypeAnnotationBuiltInType.types rename to tests/baselines/reference/declFileTypeAnnotationBuiltInType(target=es2015).types diff --git a/tests/baselines/reference/declFileTypeAnnotationBuiltInType(target=es5).js b/tests/baselines/reference/declFileTypeAnnotationBuiltInType(target=es5).js new file mode 100644 index 0000000000000..f81cd5bd69c5c --- /dev/null +++ b/tests/baselines/reference/declFileTypeAnnotationBuiltInType(target=es5).js @@ -0,0 +1,92 @@ +//// [tests/cases/compiler/declFileTypeAnnotationBuiltInType.ts] //// + +//// [declFileTypeAnnotationBuiltInType.ts] +// string +function foo(): string { + return ""; +} +function foo2() { + return ""; +} + +// number +function foo3(): number { + return 10; +} +function foo4() { + return 10; +} + +// boolean +function foo5(): boolean { + return true; +} +function foo6() { + return false; +} + +// void +function foo7(): void { + return; +} +function foo8() { + return; +} + +// any +function foo9(): any { + return undefined; +} +function foo10() { + return undefined; +} + +//// [declFileTypeAnnotationBuiltInType.js] +// string +function foo() { + return ""; +} +function foo2() { + return ""; +} +// number +function foo3() { + return 10; +} +function foo4() { + return 10; +} +// boolean +function foo5() { + return true; +} +function foo6() { + return false; +} +// void +function foo7() { + return; +} +function foo8() { + return; +} +// any +function foo9() { + return undefined; +} +function foo10() { + return undefined; +} + + +//// [declFileTypeAnnotationBuiltInType.d.ts] +declare function foo(): string; +declare function foo2(): string; +declare function foo3(): number; +declare function foo4(): number; +declare function foo5(): boolean; +declare function foo6(): boolean; +declare function foo7(): void; +declare function foo8(): void; +declare function foo9(): any; +declare function foo10(): any; diff --git a/tests/baselines/reference/declFileTypeAnnotationBuiltInType(target=es5).symbols b/tests/baselines/reference/declFileTypeAnnotationBuiltInType(target=es5).symbols new file mode 100644 index 0000000000000..44b65a0625667 --- /dev/null +++ b/tests/baselines/reference/declFileTypeAnnotationBuiltInType(target=es5).symbols @@ -0,0 +1,64 @@ +//// [tests/cases/compiler/declFileTypeAnnotationBuiltInType.ts] //// + +=== declFileTypeAnnotationBuiltInType.ts === +// string +function foo(): string { +>foo : Symbol(foo, Decl(declFileTypeAnnotationBuiltInType.ts, 0, 0)) + + return ""; +} +function foo2() { +>foo2 : Symbol(foo2, Decl(declFileTypeAnnotationBuiltInType.ts, 3, 1)) + + return ""; +} + +// number +function foo3(): number { +>foo3 : Symbol(foo3, Decl(declFileTypeAnnotationBuiltInType.ts, 6, 1)) + + return 10; +} +function foo4() { +>foo4 : Symbol(foo4, Decl(declFileTypeAnnotationBuiltInType.ts, 11, 1)) + + return 10; +} + +// boolean +function foo5(): boolean { +>foo5 : Symbol(foo5, Decl(declFileTypeAnnotationBuiltInType.ts, 14, 1)) + + return true; +} +function foo6() { +>foo6 : Symbol(foo6, Decl(declFileTypeAnnotationBuiltInType.ts, 19, 1)) + + return false; +} + +// void +function foo7(): void { +>foo7 : Symbol(foo7, Decl(declFileTypeAnnotationBuiltInType.ts, 22, 1)) + + return; +} +function foo8() { +>foo8 : Symbol(foo8, Decl(declFileTypeAnnotationBuiltInType.ts, 27, 1)) + + return; +} + +// any +function foo9(): any { +>foo9 : Symbol(foo9, Decl(declFileTypeAnnotationBuiltInType.ts, 30, 1)) + + return undefined; +>undefined : Symbol(undefined) +} +function foo10() { +>foo10 : Symbol(foo10, Decl(declFileTypeAnnotationBuiltInType.ts, 35, 1)) + + return undefined; +>undefined : Symbol(undefined) +} diff --git a/tests/baselines/reference/declFileTypeAnnotationBuiltInType(target=es5).types b/tests/baselines/reference/declFileTypeAnnotationBuiltInType(target=es5).types new file mode 100644 index 0000000000000..3fbdf55efb447 --- /dev/null +++ b/tests/baselines/reference/declFileTypeAnnotationBuiltInType(target=es5).types @@ -0,0 +1,88 @@ +//// [tests/cases/compiler/declFileTypeAnnotationBuiltInType.ts] //// + +=== declFileTypeAnnotationBuiltInType.ts === +// string +function foo(): string { +>foo : () => string +> : ^^^^^^ + + return ""; +>"" : "" +> : ^^ +} +function foo2() { +>foo2 : () => string +> : ^^^^^^^^^^^^ + + return ""; +>"" : "" +> : ^^ +} + +// number +function foo3(): number { +>foo3 : () => number +> : ^^^^^^ + + return 10; +>10 : 10 +> : ^^ +} +function foo4() { +>foo4 : () => number +> : ^^^^^^^^^^^^ + + return 10; +>10 : 10 +> : ^^ +} + +// boolean +function foo5(): boolean { +>foo5 : () => boolean +> : ^^^^^^ + + return true; +>true : true +> : ^^^^ +} +function foo6() { +>foo6 : () => boolean +> : ^^^^^^^^^^^^^ + + return false; +>false : false +> : ^^^^^ +} + +// void +function foo7(): void { +>foo7 : () => void +> : ^^^^^^ + + return; +} +function foo8() { +>foo8 : () => void +> : ^^^^^^^^^^ + + return; +} + +// any +function foo9(): any { +>foo9 : () => any +> : ^^^^^^ + + return undefined; +>undefined : undefined +> : ^^^^^^^^^ +} +function foo10() { +>foo10 : () => any +> : ^^^^^^^^^ + + return undefined; +>undefined : undefined +> : ^^^^^^^^^ +} diff --git a/tests/baselines/reference/declFileTypeAnnotationParenType.errors.txt b/tests/baselines/reference/declFileTypeAnnotationParenType(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/declFileTypeAnnotationParenType.errors.txt rename to tests/baselines/reference/declFileTypeAnnotationParenType(target=es2015).errors.txt diff --git a/tests/baselines/reference/declFileTypeAnnotationParenType(target=es2015).js b/tests/baselines/reference/declFileTypeAnnotationParenType(target=es2015).js new file mode 100644 index 0000000000000..4d2058bafcc7e --- /dev/null +++ b/tests/baselines/reference/declFileTypeAnnotationParenType(target=es2015).js @@ -0,0 +1,30 @@ +//// [tests/cases/compiler/declFileTypeAnnotationParenType.ts] //// + +//// [declFileTypeAnnotationParenType.ts] +class c { + private p: string; +} + +var x: (() => c)[] = [() => new c()]; +var y = [() => new c()]; + +var k: (() => c) | string = (() => new c()) || ""; +var l = (() => new c()) || ""; + +//// [declFileTypeAnnotationParenType.js] +class c { +} +var x = [() => new c()]; +var y = [() => new c()]; +var k = (() => new c()) || ""; +var l = (() => new c()) || ""; + + +//// [declFileTypeAnnotationParenType.d.ts] +declare class c { + private p; +} +declare var x: (() => c)[]; +declare var y: (() => c)[]; +declare var k: (() => c) | string; +declare var l: string | (() => c); diff --git a/tests/baselines/reference/declFileTypeAnnotationParenType.symbols b/tests/baselines/reference/declFileTypeAnnotationParenType(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/declFileTypeAnnotationParenType.symbols rename to tests/baselines/reference/declFileTypeAnnotationParenType(target=es2015).symbols diff --git a/tests/baselines/reference/declFileTypeAnnotationParenType.types b/tests/baselines/reference/declFileTypeAnnotationParenType(target=es2015).types similarity index 100% rename from tests/baselines/reference/declFileTypeAnnotationParenType.types rename to tests/baselines/reference/declFileTypeAnnotationParenType(target=es2015).types diff --git a/tests/baselines/reference/declFileTypeAnnotationParenType(target=es5).errors.txt b/tests/baselines/reference/declFileTypeAnnotationParenType(target=es5).errors.txt new file mode 100644 index 0000000000000..662ed01ca8883 --- /dev/null +++ b/tests/baselines/reference/declFileTypeAnnotationParenType(target=es5).errors.txt @@ -0,0 +1,18 @@ +declFileTypeAnnotationParenType.ts(8,29): error TS2872: This kind of expression is always truthy. +declFileTypeAnnotationParenType.ts(9,9): error TS2872: This kind of expression is always truthy. + + +==== declFileTypeAnnotationParenType.ts (2 errors) ==== + class c { + private p: string; + } + + var x: (() => c)[] = [() => new c()]; + var y = [() => new c()]; + + var k: (() => c) | string = (() => new c()) || ""; + ~~~~~~~~~~~~~~~ +!!! error TS2872: This kind of expression is always truthy. + var l = (() => new c()) || ""; + ~~~~~~~~~~~~~~~ +!!! error TS2872: This kind of expression is always truthy. \ No newline at end of file diff --git a/tests/baselines/reference/declFileTypeAnnotationParenType.js b/tests/baselines/reference/declFileTypeAnnotationParenType(target=es5).js similarity index 100% rename from tests/baselines/reference/declFileTypeAnnotationParenType.js rename to tests/baselines/reference/declFileTypeAnnotationParenType(target=es5).js diff --git a/tests/baselines/reference/declFileTypeAnnotationParenType(target=es5).symbols b/tests/baselines/reference/declFileTypeAnnotationParenType(target=es5).symbols new file mode 100644 index 0000000000000..1d2914eac7786 --- /dev/null +++ b/tests/baselines/reference/declFileTypeAnnotationParenType(target=es5).symbols @@ -0,0 +1,28 @@ +//// [tests/cases/compiler/declFileTypeAnnotationParenType.ts] //// + +=== declFileTypeAnnotationParenType.ts === +class c { +>c : Symbol(c, Decl(declFileTypeAnnotationParenType.ts, 0, 0)) + + private p: string; +>p : Symbol(c.p, Decl(declFileTypeAnnotationParenType.ts, 0, 9)) +} + +var x: (() => c)[] = [() => new c()]; +>x : Symbol(x, Decl(declFileTypeAnnotationParenType.ts, 4, 3)) +>c : Symbol(c, Decl(declFileTypeAnnotationParenType.ts, 0, 0)) +>c : Symbol(c, Decl(declFileTypeAnnotationParenType.ts, 0, 0)) + +var y = [() => new c()]; +>y : Symbol(y, Decl(declFileTypeAnnotationParenType.ts, 5, 3)) +>c : Symbol(c, Decl(declFileTypeAnnotationParenType.ts, 0, 0)) + +var k: (() => c) | string = (() => new c()) || ""; +>k : Symbol(k, Decl(declFileTypeAnnotationParenType.ts, 7, 3)) +>c : Symbol(c, Decl(declFileTypeAnnotationParenType.ts, 0, 0)) +>c : Symbol(c, Decl(declFileTypeAnnotationParenType.ts, 0, 0)) + +var l = (() => new c()) || ""; +>l : Symbol(l, Decl(declFileTypeAnnotationParenType.ts, 8, 3)) +>c : Symbol(c, Decl(declFileTypeAnnotationParenType.ts, 0, 0)) + diff --git a/tests/baselines/reference/declFileTypeAnnotationParenType(target=es5).types b/tests/baselines/reference/declFileTypeAnnotationParenType(target=es5).types new file mode 100644 index 0000000000000..96a33c2f33b4d --- /dev/null +++ b/tests/baselines/reference/declFileTypeAnnotationParenType(target=es5).types @@ -0,0 +1,68 @@ +//// [tests/cases/compiler/declFileTypeAnnotationParenType.ts] //// + +=== declFileTypeAnnotationParenType.ts === +class c { +>c : c +> : ^ + + private p: string; +>p : string +> : ^^^^^^ +} + +var x: (() => c)[] = [() => new c()]; +>x : (() => c)[] +> : ^^^^^^^ ^^^ +>[() => new c()] : (() => c)[] +> : ^^^^^^^^^^^ +>() => new c() : () => c +> : ^^^^^^^ +>new c() : c +> : ^ +>c : typeof c +> : ^^^^^^^^ + +var y = [() => new c()]; +>y : (() => c)[] +> : ^^^^^^^^^^^ +>[() => new c()] : (() => c)[] +> : ^^^^^^^^^^^ +>() => new c() : () => c +> : ^^^^^^^ +>new c() : c +> : ^ +>c : typeof c +> : ^^^^^^^^ + +var k: (() => c) | string = (() => new c()) || ""; +>k : string | (() => c) +> : ^^^^^^^^^^^^^^^^ ^ +>(() => new c()) || "" : "" | (() => c) +> : ^^^^^^^^^^^^^^ +>(() => new c()) : () => c +> : ^^^^^^^ +>() => new c() : () => c +> : ^^^^^^^ +>new c() : c +> : ^ +>c : typeof c +> : ^^^^^^^^ +>"" : "" +> : ^^ + +var l = (() => new c()) || ""; +>l : string | (() => c) +> : ^^^^^^^^^^^^^^^^^^ +>(() => new c()) || "" : "" | (() => c) +> : ^^^^^^^^^^^^^^ +>(() => new c()) : () => c +> : ^^^^^^^ +>() => new c() : () => c +> : ^^^^^^^ +>new c() : c +> : ^ +>c : typeof c +> : ^^^^^^^^ +>"" : "" +> : ^^ + diff --git a/tests/baselines/reference/declFileTypeAnnotationStringLiteral.js b/tests/baselines/reference/declFileTypeAnnotationStringLiteral(target=es2015).js similarity index 100% rename from tests/baselines/reference/declFileTypeAnnotationStringLiteral.js rename to tests/baselines/reference/declFileTypeAnnotationStringLiteral(target=es2015).js diff --git a/tests/baselines/reference/declFileTypeAnnotationStringLiteral.symbols b/tests/baselines/reference/declFileTypeAnnotationStringLiteral(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/declFileTypeAnnotationStringLiteral.symbols rename to tests/baselines/reference/declFileTypeAnnotationStringLiteral(target=es2015).symbols diff --git a/tests/baselines/reference/declFileTypeAnnotationStringLiteral.types b/tests/baselines/reference/declFileTypeAnnotationStringLiteral(target=es2015).types similarity index 100% rename from tests/baselines/reference/declFileTypeAnnotationStringLiteral.types rename to tests/baselines/reference/declFileTypeAnnotationStringLiteral(target=es2015).types diff --git a/tests/baselines/reference/declFileTypeAnnotationStringLiteral(target=es5).js b/tests/baselines/reference/declFileTypeAnnotationStringLiteral(target=es5).js new file mode 100644 index 0000000000000..2884be0a1e805 --- /dev/null +++ b/tests/baselines/reference/declFileTypeAnnotationStringLiteral(target=es5).js @@ -0,0 +1,27 @@ +//// [tests/cases/compiler/declFileTypeAnnotationStringLiteral.ts] //// + +//// [declFileTypeAnnotationStringLiteral.ts] +function foo(a: "hello"): number; +function foo(a: "name"): string; +function foo(a: string): string | number; +function foo(a: string): string | number { + if (a === "hello") { + return a.length; + } + + return a; +} + +//// [declFileTypeAnnotationStringLiteral.js] +function foo(a) { + if (a === "hello") { + return a.length; + } + return a; +} + + +//// [declFileTypeAnnotationStringLiteral.d.ts] +declare function foo(a: "hello"): number; +declare function foo(a: "name"): string; +declare function foo(a: string): string | number; diff --git a/tests/baselines/reference/declFileTypeAnnotationStringLiteral(target=es5).symbols b/tests/baselines/reference/declFileTypeAnnotationStringLiteral(target=es5).symbols new file mode 100644 index 0000000000000..83289d9ad8be2 --- /dev/null +++ b/tests/baselines/reference/declFileTypeAnnotationStringLiteral(target=es5).symbols @@ -0,0 +1,31 @@ +//// [tests/cases/compiler/declFileTypeAnnotationStringLiteral.ts] //// + +=== declFileTypeAnnotationStringLiteral.ts === +function foo(a: "hello"): number; +>foo : Symbol(foo, Decl(declFileTypeAnnotationStringLiteral.ts, 0, 0), Decl(declFileTypeAnnotationStringLiteral.ts, 0, 33), Decl(declFileTypeAnnotationStringLiteral.ts, 1, 32), Decl(declFileTypeAnnotationStringLiteral.ts, 2, 41)) +>a : Symbol(a, Decl(declFileTypeAnnotationStringLiteral.ts, 0, 13)) + +function foo(a: "name"): string; +>foo : Symbol(foo, Decl(declFileTypeAnnotationStringLiteral.ts, 0, 0), Decl(declFileTypeAnnotationStringLiteral.ts, 0, 33), Decl(declFileTypeAnnotationStringLiteral.ts, 1, 32), Decl(declFileTypeAnnotationStringLiteral.ts, 2, 41)) +>a : Symbol(a, Decl(declFileTypeAnnotationStringLiteral.ts, 1, 13)) + +function foo(a: string): string | number; +>foo : Symbol(foo, Decl(declFileTypeAnnotationStringLiteral.ts, 0, 0), Decl(declFileTypeAnnotationStringLiteral.ts, 0, 33), Decl(declFileTypeAnnotationStringLiteral.ts, 1, 32), Decl(declFileTypeAnnotationStringLiteral.ts, 2, 41)) +>a : Symbol(a, Decl(declFileTypeAnnotationStringLiteral.ts, 2, 13)) + +function foo(a: string): string | number { +>foo : Symbol(foo, Decl(declFileTypeAnnotationStringLiteral.ts, 0, 0), Decl(declFileTypeAnnotationStringLiteral.ts, 0, 33), Decl(declFileTypeAnnotationStringLiteral.ts, 1, 32), Decl(declFileTypeAnnotationStringLiteral.ts, 2, 41)) +>a : Symbol(a, Decl(declFileTypeAnnotationStringLiteral.ts, 3, 13)) + + if (a === "hello") { +>a : Symbol(a, Decl(declFileTypeAnnotationStringLiteral.ts, 3, 13)) + + return a.length; +>a.length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) +>a : Symbol(a, Decl(declFileTypeAnnotationStringLiteral.ts, 3, 13)) +>length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) + } + + return a; +>a : Symbol(a, Decl(declFileTypeAnnotationStringLiteral.ts, 3, 13)) +} diff --git a/tests/baselines/reference/declFileTypeAnnotationStringLiteral(target=es5).types b/tests/baselines/reference/declFileTypeAnnotationStringLiteral(target=es5).types new file mode 100644 index 0000000000000..7f1ba3daba4e5 --- /dev/null +++ b/tests/baselines/reference/declFileTypeAnnotationStringLiteral(target=es5).types @@ -0,0 +1,48 @@ +//// [tests/cases/compiler/declFileTypeAnnotationStringLiteral.ts] //// + +=== declFileTypeAnnotationStringLiteral.ts === +function foo(a: "hello"): number; +>foo : { (a: "hello"): number; (a: "name"): string; (a: string): string | number; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>a : "hello" +> : ^^^^^^^ + +function foo(a: "name"): string; +>foo : { (a: "hello"): number; (a: "name"): string; (a: string): string | number; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>a : "name" +> : ^^^^^^ + +function foo(a: string): string | number; +>foo : { (a: "hello"): number; (a: "name"): string; (a: string): string | number; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>a : string +> : ^^^^^^ + +function foo(a: string): string | number { +>foo : { (a: "hello"): number; (a: "name"): string; (a: string): string | number; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>a : string +> : ^^^^^^ + + if (a === "hello") { +>a === "hello" : boolean +> : ^^^^^^^ +>a : string +> : ^^^^^^ +>"hello" : "hello" +> : ^^^^^^^ + + return a.length; +>a.length : number +> : ^^^^^^ +>a : "hello" +> : ^^^^^^^ +>length : number +> : ^^^^^^ + } + + return a; +>a : string +> : ^^^^^^ +} diff --git a/tests/baselines/reference/declFileTypeAnnotationTupleType(target=es2015).js b/tests/baselines/reference/declFileTypeAnnotationTupleType(target=es2015).js new file mode 100644 index 0000000000000..e96c407cae58b --- /dev/null +++ b/tests/baselines/reference/declFileTypeAnnotationTupleType(target=es2015).js @@ -0,0 +1,57 @@ +//// [tests/cases/compiler/declFileTypeAnnotationTupleType.ts] //// + +//// [declFileTypeAnnotationTupleType.ts] +class c { +} +namespace m { + export class c { + } + export class g { + } +} +class g { +} + +// Just the name +var k: [c, m.c] = [new c(), new m.c()]; +var l = k; + +var x: [g, m.g, () => c] = [new g(), new m.g(), () => new c()]; +var y = x; + +//// [declFileTypeAnnotationTupleType.js] +class c { +} +var m; +(function (m) { + class c { + } + m.c = c; + class g { + } + m.g = g; +})(m || (m = {})); +class g { +} +// Just the name +var k = [new c(), new m.c()]; +var l = k; +var x = [new g(), new m.g(), () => new c()]; +var y = x; + + +//// [declFileTypeAnnotationTupleType.d.ts] +declare class c { +} +declare namespace m { + class c { + } + class g { + } +} +declare class g { +} +declare var k: [c, m.c]; +declare var l: [c, m.c]; +declare var x: [g, m.g, () => c]; +declare var y: [g, m.g, () => c]; diff --git a/tests/baselines/reference/declFileTypeAnnotationTupleType.symbols b/tests/baselines/reference/declFileTypeAnnotationTupleType(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/declFileTypeAnnotationTupleType.symbols rename to tests/baselines/reference/declFileTypeAnnotationTupleType(target=es2015).symbols diff --git a/tests/baselines/reference/declFileTypeAnnotationTupleType.types b/tests/baselines/reference/declFileTypeAnnotationTupleType(target=es2015).types similarity index 100% rename from tests/baselines/reference/declFileTypeAnnotationTupleType.types rename to tests/baselines/reference/declFileTypeAnnotationTupleType(target=es2015).types diff --git a/tests/baselines/reference/declFileTypeAnnotationTupleType.js b/tests/baselines/reference/declFileTypeAnnotationTupleType(target=es5).js similarity index 100% rename from tests/baselines/reference/declFileTypeAnnotationTupleType.js rename to tests/baselines/reference/declFileTypeAnnotationTupleType(target=es5).js diff --git a/tests/baselines/reference/declFileTypeAnnotationTupleType(target=es5).symbols b/tests/baselines/reference/declFileTypeAnnotationTupleType(target=es5).symbols new file mode 100644 index 0000000000000..0df1436e40b60 --- /dev/null +++ b/tests/baselines/reference/declFileTypeAnnotationTupleType(target=es5).symbols @@ -0,0 +1,53 @@ +//// [tests/cases/compiler/declFileTypeAnnotationTupleType.ts] //// + +=== declFileTypeAnnotationTupleType.ts === +class c { +>c : Symbol(c, Decl(declFileTypeAnnotationTupleType.ts, 0, 0)) +} +namespace m { +>m : Symbol(m, Decl(declFileTypeAnnotationTupleType.ts, 1, 1)) + + export class c { +>c : Symbol(c, Decl(declFileTypeAnnotationTupleType.ts, 2, 13)) + } + export class g { +>g : Symbol(g, Decl(declFileTypeAnnotationTupleType.ts, 4, 5)) +>T : Symbol(T, Decl(declFileTypeAnnotationTupleType.ts, 5, 19)) + } +} +class g { +>g : Symbol(g, Decl(declFileTypeAnnotationTupleType.ts, 7, 1)) +>T : Symbol(T, Decl(declFileTypeAnnotationTupleType.ts, 8, 8)) +} + +// Just the name +var k: [c, m.c] = [new c(), new m.c()]; +>k : Symbol(k, Decl(declFileTypeAnnotationTupleType.ts, 12, 3)) +>c : Symbol(c, Decl(declFileTypeAnnotationTupleType.ts, 0, 0)) +>m : Symbol(m, Decl(declFileTypeAnnotationTupleType.ts, 1, 1)) +>c : Symbol(m.c, Decl(declFileTypeAnnotationTupleType.ts, 2, 13)) +>c : Symbol(c, Decl(declFileTypeAnnotationTupleType.ts, 0, 0)) +>m.c : Symbol(m.c, Decl(declFileTypeAnnotationTupleType.ts, 2, 13)) +>m : Symbol(m, Decl(declFileTypeAnnotationTupleType.ts, 1, 1)) +>c : Symbol(m.c, Decl(declFileTypeAnnotationTupleType.ts, 2, 13)) + +var l = k; +>l : Symbol(l, Decl(declFileTypeAnnotationTupleType.ts, 13, 3)) +>k : Symbol(k, Decl(declFileTypeAnnotationTupleType.ts, 12, 3)) + +var x: [g, m.g, () => c] = [new g(), new m.g(), () => new c()]; +>x : Symbol(x, Decl(declFileTypeAnnotationTupleType.ts, 15, 3)) +>g : Symbol(g, Decl(declFileTypeAnnotationTupleType.ts, 7, 1)) +>m : Symbol(m, Decl(declFileTypeAnnotationTupleType.ts, 1, 1)) +>g : Symbol(m.g, Decl(declFileTypeAnnotationTupleType.ts, 4, 5)) +>c : Symbol(c, Decl(declFileTypeAnnotationTupleType.ts, 0, 0)) +>g : Symbol(g, Decl(declFileTypeAnnotationTupleType.ts, 7, 1)) +>m.g : Symbol(m.g, Decl(declFileTypeAnnotationTupleType.ts, 4, 5)) +>m : Symbol(m, Decl(declFileTypeAnnotationTupleType.ts, 1, 1)) +>g : Symbol(m.g, Decl(declFileTypeAnnotationTupleType.ts, 4, 5)) +>c : Symbol(c, Decl(declFileTypeAnnotationTupleType.ts, 0, 0)) + +var y = x; +>y : Symbol(y, Decl(declFileTypeAnnotationTupleType.ts, 16, 3)) +>x : Symbol(x, Decl(declFileTypeAnnotationTupleType.ts, 15, 3)) + diff --git a/tests/baselines/reference/declFileTypeAnnotationTupleType(target=es5).types b/tests/baselines/reference/declFileTypeAnnotationTupleType(target=es5).types new file mode 100644 index 0000000000000..7553647334253 --- /dev/null +++ b/tests/baselines/reference/declFileTypeAnnotationTupleType(target=es5).types @@ -0,0 +1,84 @@ +//// [tests/cases/compiler/declFileTypeAnnotationTupleType.ts] //// + +=== declFileTypeAnnotationTupleType.ts === +class c { +>c : c +> : ^ +} +namespace m { +>m : typeof m +> : ^^^^^^^^ + + export class c { +>c : c +> : ^ + } + export class g { +>g : g +> : ^^^^ + } +} +class g { +>g : g +> : ^^^^ +} + +// Just the name +var k: [c, m.c] = [new c(), new m.c()]; +>k : [c, m.c] +> : ^^^^^^^^ +>m : any +> : ^^^ +>[new c(), new m.c()] : [c, m.c] +> : ^^^^^^^^ +>new c() : c +> : ^ +>c : typeof c +> : ^^^^^^^^ +>new m.c() : m.c +> : ^^^ +>m.c : typeof m.c +> : ^^^^^^^^^^ +>m : typeof m +> : ^^^^^^^^ +>c : typeof m.c +> : ^^^^^^^^^^ + +var l = k; +>l : [c, m.c] +> : ^^^^^^^^ +>k : [c, m.c] +> : ^^^^^^^^ + +var x: [g, m.g, () => c] = [new g(), new m.g(), () => new c()]; +>x : [g, m.g, () => c] +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^ +>m : any +> : ^^^ +>[new g(), new m.g(), () => new c()] : [g, m.g, () => c] +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>new g() : g +> : ^^^^^^^^^ +>g : typeof g +> : ^^^^^^^^ +>new m.g() : m.g +> : ^^^^^^^^^^^ +>m.g : typeof m.g +> : ^^^^^^^^^^ +>m : typeof m +> : ^^^^^^^^ +>g : typeof m.g +> : ^^^^^^^^^^ +>() => new c() : () => c +> : ^^^^^^^ +>new c() : c +> : ^ +>c : typeof c +> : ^^^^^^^^ + +var y = x; +>y : [g, m.g, () => c] +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^ +>x : [g, m.g, () => c] +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^ + diff --git a/tests/baselines/reference/declFileTypeAnnotationTypeAlias(target=es2015).js b/tests/baselines/reference/declFileTypeAnnotationTypeAlias(target=es2015).js new file mode 100644 index 0000000000000..e1707ccf65b96 --- /dev/null +++ b/tests/baselines/reference/declFileTypeAnnotationTypeAlias(target=es2015).js @@ -0,0 +1,82 @@ +//// [tests/cases/compiler/declFileTypeAnnotationTypeAlias.ts] //// + +//// [declFileTypeAnnotationTypeAlias.ts] +namespace M { + export type Value = string | number | boolean; + export var x: Value; + + export class c { + } + + export type C = c; + + export namespace m { + export class c { + } + } + + export type MC = m.c; + + export type fc = () => c; +} + +interface Window { + someMethod(); +} + +namespace M { + export type W = Window | string; + export namespace N { + export class Window { } + export var p: W; + } +} + +//// [declFileTypeAnnotationTypeAlias.js] +var M; +(function (M) { + class c { + } + M.c = c; + let m; + (function (m) { + class c { + } + m.c = c; + })(m = M.m || (M.m = {})); +})(M || (M = {})); +(function (M) { + let N; + (function (N) { + class Window { + } + N.Window = Window; + })(N = M.N || (M.N = {})); +})(M || (M = {})); + + +//// [declFileTypeAnnotationTypeAlias.d.ts] +declare namespace M { + type Value = string | number | boolean; + var x: Value; + class c { + } + type C = c; + namespace m { + class c { + } + } + type MC = m.c; + type fc = () => c; +} +interface Window { + someMethod(): any; +} +declare namespace M { + type W = Window | string; + namespace N { + class Window { + } + var p: W; + } +} diff --git a/tests/baselines/reference/declFileTypeAnnotationTypeAlias.symbols b/tests/baselines/reference/declFileTypeAnnotationTypeAlias(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/declFileTypeAnnotationTypeAlias.symbols rename to tests/baselines/reference/declFileTypeAnnotationTypeAlias(target=es2015).symbols diff --git a/tests/baselines/reference/declFileTypeAnnotationTypeAlias.types b/tests/baselines/reference/declFileTypeAnnotationTypeAlias(target=es2015).types similarity index 100% rename from tests/baselines/reference/declFileTypeAnnotationTypeAlias.types rename to tests/baselines/reference/declFileTypeAnnotationTypeAlias(target=es2015).types diff --git a/tests/baselines/reference/declFileTypeAnnotationTypeAlias.js b/tests/baselines/reference/declFileTypeAnnotationTypeAlias(target=es5).js similarity index 100% rename from tests/baselines/reference/declFileTypeAnnotationTypeAlias.js rename to tests/baselines/reference/declFileTypeAnnotationTypeAlias(target=es5).js diff --git a/tests/baselines/reference/declFileTypeAnnotationTypeAlias(target=es5).symbols b/tests/baselines/reference/declFileTypeAnnotationTypeAlias(target=es5).symbols new file mode 100644 index 0000000000000..c06ac34a37bc1 --- /dev/null +++ b/tests/baselines/reference/declFileTypeAnnotationTypeAlias(target=es5).symbols @@ -0,0 +1,64 @@ +//// [tests/cases/compiler/declFileTypeAnnotationTypeAlias.ts] //// + +=== declFileTypeAnnotationTypeAlias.ts === +namespace M { +>M : Symbol(M, Decl(declFileTypeAnnotationTypeAlias.ts, 0, 0), Decl(declFileTypeAnnotationTypeAlias.ts, 21, 1)) + + export type Value = string | number | boolean; +>Value : Symbol(Value, Decl(declFileTypeAnnotationTypeAlias.ts, 0, 13)) + + export var x: Value; +>x : Symbol(x, Decl(declFileTypeAnnotationTypeAlias.ts, 2, 14)) +>Value : Symbol(Value, Decl(declFileTypeAnnotationTypeAlias.ts, 0, 13)) + + export class c { +>c : Symbol(c, Decl(declFileTypeAnnotationTypeAlias.ts, 2, 24)) + } + + export type C = c; +>C : Symbol(C, Decl(declFileTypeAnnotationTypeAlias.ts, 5, 5)) +>c : Symbol(c, Decl(declFileTypeAnnotationTypeAlias.ts, 2, 24)) + + export namespace m { +>m : Symbol(m, Decl(declFileTypeAnnotationTypeAlias.ts, 7, 22)) + + export class c { +>c : Symbol(c, Decl(declFileTypeAnnotationTypeAlias.ts, 9, 24)) + } + } + + export type MC = m.c; +>MC : Symbol(MC, Decl(declFileTypeAnnotationTypeAlias.ts, 12, 5)) +>m : Symbol(m, Decl(declFileTypeAnnotationTypeAlias.ts, 7, 22)) +>c : Symbol(m.c, Decl(declFileTypeAnnotationTypeAlias.ts, 9, 24)) + + export type fc = () => c; +>fc : Symbol(fc, Decl(declFileTypeAnnotationTypeAlias.ts, 14, 25)) +>c : Symbol(c, Decl(declFileTypeAnnotationTypeAlias.ts, 2, 24)) +} + +interface Window { +>Window : Symbol(Window, Decl(lib.dom.d.ts, --, --), Decl(lib.dom.d.ts, --, --), Decl(declFileTypeAnnotationTypeAlias.ts, 17, 1)) + + someMethod(); +>someMethod : Symbol(Window.someMethod, Decl(declFileTypeAnnotationTypeAlias.ts, 19, 18)) +} + +namespace M { +>M : Symbol(M, Decl(declFileTypeAnnotationTypeAlias.ts, 0, 0), Decl(declFileTypeAnnotationTypeAlias.ts, 21, 1)) + + export type W = Window | string; +>W : Symbol(W, Decl(declFileTypeAnnotationTypeAlias.ts, 23, 13)) +>Window : Symbol(Window, Decl(lib.dom.d.ts, --, --), Decl(lib.dom.d.ts, --, --), Decl(declFileTypeAnnotationTypeAlias.ts, 17, 1)) + + export namespace N { +>N : Symbol(N, Decl(declFileTypeAnnotationTypeAlias.ts, 24, 36)) + + export class Window { } +>Window : Symbol(Window, Decl(declFileTypeAnnotationTypeAlias.ts, 25, 24)) + + export var p: W; +>p : Symbol(p, Decl(declFileTypeAnnotationTypeAlias.ts, 27, 18)) +>W : Symbol(W, Decl(declFileTypeAnnotationTypeAlias.ts, 23, 13)) + } +} diff --git a/tests/baselines/reference/declFileTypeAnnotationTypeAlias(target=es5).types b/tests/baselines/reference/declFileTypeAnnotationTypeAlias(target=es5).types new file mode 100644 index 0000000000000..0c61e120155ad --- /dev/null +++ b/tests/baselines/reference/declFileTypeAnnotationTypeAlias(target=es5).types @@ -0,0 +1,72 @@ +//// [tests/cases/compiler/declFileTypeAnnotationTypeAlias.ts] //// + +=== declFileTypeAnnotationTypeAlias.ts === +namespace M { +>M : typeof M +> : ^^^^^^^^ + + export type Value = string | number | boolean; +>Value : Value +> : ^^^^^ + + export var x: Value; +>x : Value +> : ^^^^^ + + export class c { +>c : c +> : ^ + } + + export type C = c; +>C : c +> : ^ + + export namespace m { +>m : typeof m +> : ^^^^^^^^ + + export class c { +>c : c +> : ^ + } + } + + export type MC = m.c; +>MC : m.c +> : ^^^ +>m : any +> : ^^^ + + export type fc = () => c; +>fc : fc +> : ^^ +} + +interface Window { + someMethod(); +>someMethod : () => any +> : ^^^^^^^^^ +} + +namespace M { +>M : typeof M +> : ^^^^^^^^ + + export type W = Window | string; +>W : W +> : ^ + + export namespace N { +>N : typeof N +> : ^^^^^^^^ + + export class Window { } +>Window : Window +> : ^^^^^^ + + export var p: W; +>p : W +> : ^ + } +} diff --git a/tests/baselines/reference/declFileTypeAnnotationTypeLiteral(target=es2015).js b/tests/baselines/reference/declFileTypeAnnotationTypeLiteral(target=es2015).js new file mode 100644 index 0000000000000..de83a774ca278 --- /dev/null +++ b/tests/baselines/reference/declFileTypeAnnotationTypeLiteral(target=es2015).js @@ -0,0 +1,84 @@ +//// [tests/cases/compiler/declFileTypeAnnotationTypeLiteral.ts] //// + +//// [declFileTypeAnnotationTypeLiteral.ts] +class c { +} +class g { +} +namespace m { + export class c { + } +} + +// Object literal with everything +var x: { + // Call signatures + (a: number): c; + (a: string): g; + + // Construct signatures + new (a: number): c; + new (a: string): m.c; + + // Indexers + [n: number]: c; + [n: string]: c; + + // Properties + a: c; + b: g; + + // methods + m1(): g; + m2(a: string, b?: number, ...c: c[]): string; +}; + + +// Function type +var y: (a: string) => string; + +// constructor type +var z: new (a: string) => m.c; + +//// [declFileTypeAnnotationTypeLiteral.js] +class c { +} +class g { +} +var m; +(function (m) { + class c { + } + m.c = c; +})(m || (m = {})); +// Object literal with everything +var x; +// Function type +var y; +// constructor type +var z; + + +//// [declFileTypeAnnotationTypeLiteral.d.ts] +declare class c { +} +declare class g { +} +declare namespace m { + class c { + } +} +declare var x: { + (a: number): c; + (a: string): g; + new (a: number): c; + new (a: string): m.c; + [n: number]: c; + [n: string]: c; + a: c; + b: g; + m1(): g; + m2(a: string, b?: number, ...c: c[]): string; +}; +declare var y: (a: string) => string; +declare var z: new (a: string) => m.c; diff --git a/tests/baselines/reference/declFileTypeAnnotationTypeLiteral.symbols b/tests/baselines/reference/declFileTypeAnnotationTypeLiteral(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/declFileTypeAnnotationTypeLiteral.symbols rename to tests/baselines/reference/declFileTypeAnnotationTypeLiteral(target=es2015).symbols diff --git a/tests/baselines/reference/declFileTypeAnnotationTypeLiteral.types b/tests/baselines/reference/declFileTypeAnnotationTypeLiteral(target=es2015).types similarity index 100% rename from tests/baselines/reference/declFileTypeAnnotationTypeLiteral.types rename to tests/baselines/reference/declFileTypeAnnotationTypeLiteral(target=es2015).types diff --git a/tests/baselines/reference/declFileTypeAnnotationTypeLiteral.js b/tests/baselines/reference/declFileTypeAnnotationTypeLiteral(target=es5).js similarity index 100% rename from tests/baselines/reference/declFileTypeAnnotationTypeLiteral.js rename to tests/baselines/reference/declFileTypeAnnotationTypeLiteral(target=es5).js diff --git a/tests/baselines/reference/declFileTypeAnnotationTypeLiteral(target=es5).symbols b/tests/baselines/reference/declFileTypeAnnotationTypeLiteral(target=es5).symbols new file mode 100644 index 0000000000000..ca57b6085ece9 --- /dev/null +++ b/tests/baselines/reference/declFileTypeAnnotationTypeLiteral(target=es5).symbols @@ -0,0 +1,86 @@ +//// [tests/cases/compiler/declFileTypeAnnotationTypeLiteral.ts] //// + +=== declFileTypeAnnotationTypeLiteral.ts === +class c { +>c : Symbol(c, Decl(declFileTypeAnnotationTypeLiteral.ts, 0, 0)) +} +class g { +>g : Symbol(g, Decl(declFileTypeAnnotationTypeLiteral.ts, 1, 1)) +>T : Symbol(T, Decl(declFileTypeAnnotationTypeLiteral.ts, 2, 8)) +} +namespace m { +>m : Symbol(m, Decl(declFileTypeAnnotationTypeLiteral.ts, 3, 1)) + + export class c { +>c : Symbol(c, Decl(declFileTypeAnnotationTypeLiteral.ts, 4, 13)) + } +} + +// Object literal with everything +var x: { +>x : Symbol(x, Decl(declFileTypeAnnotationTypeLiteral.ts, 10, 3)) + + // Call signatures + (a: number): c; +>a : Symbol(a, Decl(declFileTypeAnnotationTypeLiteral.ts, 12, 5)) +>c : Symbol(c, Decl(declFileTypeAnnotationTypeLiteral.ts, 0, 0)) + + (a: string): g; +>a : Symbol(a, Decl(declFileTypeAnnotationTypeLiteral.ts, 13, 5)) +>g : Symbol(g, Decl(declFileTypeAnnotationTypeLiteral.ts, 1, 1)) + + // Construct signatures + new (a: number): c; +>a : Symbol(a, Decl(declFileTypeAnnotationTypeLiteral.ts, 16, 9)) +>c : Symbol(c, Decl(declFileTypeAnnotationTypeLiteral.ts, 0, 0)) + + new (a: string): m.c; +>a : Symbol(a, Decl(declFileTypeAnnotationTypeLiteral.ts, 17, 9)) +>m : Symbol(m, Decl(declFileTypeAnnotationTypeLiteral.ts, 3, 1)) +>c : Symbol(m.c, Decl(declFileTypeAnnotationTypeLiteral.ts, 4, 13)) + + // Indexers + [n: number]: c; +>n : Symbol(n, Decl(declFileTypeAnnotationTypeLiteral.ts, 20, 5)) +>c : Symbol(c, Decl(declFileTypeAnnotationTypeLiteral.ts, 0, 0)) + + [n: string]: c; +>n : Symbol(n, Decl(declFileTypeAnnotationTypeLiteral.ts, 21, 5)) +>c : Symbol(c, Decl(declFileTypeAnnotationTypeLiteral.ts, 0, 0)) + + // Properties + a: c; +>a : Symbol(a, Decl(declFileTypeAnnotationTypeLiteral.ts, 21, 19)) +>c : Symbol(c, Decl(declFileTypeAnnotationTypeLiteral.ts, 0, 0)) + + b: g; +>b : Symbol(b, Decl(declFileTypeAnnotationTypeLiteral.ts, 24, 9)) +>g : Symbol(g, Decl(declFileTypeAnnotationTypeLiteral.ts, 1, 1)) + + // methods + m1(): g; +>m1 : Symbol(m1, Decl(declFileTypeAnnotationTypeLiteral.ts, 25, 17)) +>g : Symbol(g, Decl(declFileTypeAnnotationTypeLiteral.ts, 1, 1)) + + m2(a: string, b?: number, ...c: c[]): string; +>m2 : Symbol(m2, Decl(declFileTypeAnnotationTypeLiteral.ts, 28, 20)) +>a : Symbol(a, Decl(declFileTypeAnnotationTypeLiteral.ts, 29, 7)) +>b : Symbol(b, Decl(declFileTypeAnnotationTypeLiteral.ts, 29, 17)) +>c : Symbol(c, Decl(declFileTypeAnnotationTypeLiteral.ts, 29, 29)) +>c : Symbol(c, Decl(declFileTypeAnnotationTypeLiteral.ts, 0, 0)) + +}; + + +// Function type +var y: (a: string) => string; +>y : Symbol(y, Decl(declFileTypeAnnotationTypeLiteral.ts, 34, 3)) +>a : Symbol(a, Decl(declFileTypeAnnotationTypeLiteral.ts, 34, 8)) + +// constructor type +var z: new (a: string) => m.c; +>z : Symbol(z, Decl(declFileTypeAnnotationTypeLiteral.ts, 37, 3)) +>a : Symbol(a, Decl(declFileTypeAnnotationTypeLiteral.ts, 37, 12)) +>m : Symbol(m, Decl(declFileTypeAnnotationTypeLiteral.ts, 3, 1)) +>c : Symbol(m.c, Decl(declFileTypeAnnotationTypeLiteral.ts, 4, 13)) + diff --git a/tests/baselines/reference/declFileTypeAnnotationTypeLiteral(target=es5).types b/tests/baselines/reference/declFileTypeAnnotationTypeLiteral(target=es5).types new file mode 100644 index 0000000000000..4ab9e6468ecf0 --- /dev/null +++ b/tests/baselines/reference/declFileTypeAnnotationTypeLiteral(target=es5).types @@ -0,0 +1,98 @@ +//// [tests/cases/compiler/declFileTypeAnnotationTypeLiteral.ts] //// + +=== declFileTypeAnnotationTypeLiteral.ts === +class c { +>c : c +> : ^ +} +class g { +>g : g +> : ^^^^ +} +namespace m { +>m : typeof m +> : ^^^^^^^^ + + export class c { +>c : c +> : ^ + } +} + +// Object literal with everything +var x: { +>x : { (a: number): c; (a: string): g; new (a: number): c; new (a: string): m.c; [n: number]: c; [n: string]: c; a: c; b: g; m1(): g; m2(a: string, b?: number, ...c: c[]): string; } +> : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^^^^^ ^^ ^^^ ^^^^^^^ ^^ ^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^ ^^^^^^^^ ^^^^^ ^^ ^^ ^^^ ^^^^^ ^^ ^^^ ^^^ + + // Call signatures + (a: number): c; +>a : number +> : ^^^^^^ + + (a: string): g; +>a : string +> : ^^^^^^ + + // Construct signatures + new (a: number): c; +>a : number +> : ^^^^^^ + + new (a: string): m.c; +>a : string +> : ^^^^^^ +>m : any +> : ^^^ + + // Indexers + [n: number]: c; +>n : number +> : ^^^^^^ + + [n: string]: c; +>n : string +> : ^^^^^^ + + // Properties + a: c; +>a : c +> : ^ + + b: g; +>b : g +> : ^^^^^^^^^ + + // methods + m1(): g; +>m1 : () => g +> : ^^^^^^ + + m2(a: string, b?: number, ...c: c[]): string; +>m2 : (a: string, b?: number, ...c: c[]) => string +> : ^ ^^ ^^ ^^^ ^^^^^ ^^ ^^^^^ +>a : string +> : ^^^^^^ +>b : number +> : ^^^^^^ +>c : c[] +> : ^^^ + +}; + + +// Function type +var y: (a: string) => string; +>y : (a: string) => string +> : ^ ^^ ^^^^^ +>a : string +> : ^^^^^^ + +// constructor type +var z: new (a: string) => m.c; +>z : new (a: string) => m.c +> : ^^^^^ ^^ ^^^^^ +>a : string +> : ^^^^^^ +>m : any +> : ^^^ + diff --git a/tests/baselines/reference/declFileTypeAnnotationTypeQuery(target=es2015).js b/tests/baselines/reference/declFileTypeAnnotationTypeQuery(target=es2015).js new file mode 100644 index 0000000000000..e21417d66d3bb --- /dev/null +++ b/tests/baselines/reference/declFileTypeAnnotationTypeQuery(target=es2015).js @@ -0,0 +1,109 @@ +//// [tests/cases/compiler/declFileTypeAnnotationTypeQuery.ts] //// + +//// [declFileTypeAnnotationTypeQuery.ts] +class c { +} +namespace m { + export class c { + } + export class g { + } +} +class g { +} + +// Just the name +function foo(): typeof c { + return c; +} +function foo2() { + return c; +} + +// Qualified name +function foo3(): typeof m.c { + return m.c; +} +function foo4() { + return m.c; +} + +// Just the name with type arguments +function foo5(): typeof g { + return g; +} +function foo6() { + return g; +} + +// Qualified name with type arguments +function foo7(): typeof m.g { + return m.g +} +function foo8() { + return m.g +} + +//// [declFileTypeAnnotationTypeQuery.js] +class c { +} +var m; +(function (m) { + class c { + } + m.c = c; + class g { + } + m.g = g; +})(m || (m = {})); +class g { +} +// Just the name +function foo() { + return c; +} +function foo2() { + return c; +} +// Qualified name +function foo3() { + return m.c; +} +function foo4() { + return m.c; +} +// Just the name with type arguments +function foo5() { + return g; +} +function foo6() { + return g; +} +// Qualified name with type arguments +function foo7() { + return m.g; +} +function foo8() { + return m.g; +} + + +//// [declFileTypeAnnotationTypeQuery.d.ts] +declare class c { +} +declare namespace m { + class c { + } + class g { + } +} +declare class g { +} +declare function foo(): typeof c; +declare function foo2(): typeof c; +declare function foo3(): typeof m.c; +declare function foo4(): typeof m.c; +declare function foo5(): typeof g; +declare function foo6(): typeof g; +declare function foo7(): typeof m.g; +declare function foo8(): typeof m.g; diff --git a/tests/baselines/reference/declFileTypeAnnotationTypeQuery.symbols b/tests/baselines/reference/declFileTypeAnnotationTypeQuery(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/declFileTypeAnnotationTypeQuery.symbols rename to tests/baselines/reference/declFileTypeAnnotationTypeQuery(target=es2015).symbols diff --git a/tests/baselines/reference/declFileTypeAnnotationTypeQuery.types b/tests/baselines/reference/declFileTypeAnnotationTypeQuery(target=es2015).types similarity index 100% rename from tests/baselines/reference/declFileTypeAnnotationTypeQuery.types rename to tests/baselines/reference/declFileTypeAnnotationTypeQuery(target=es2015).types diff --git a/tests/baselines/reference/declFileTypeAnnotationTypeQuery.js b/tests/baselines/reference/declFileTypeAnnotationTypeQuery(target=es5).js similarity index 100% rename from tests/baselines/reference/declFileTypeAnnotationTypeQuery.js rename to tests/baselines/reference/declFileTypeAnnotationTypeQuery(target=es5).js diff --git a/tests/baselines/reference/declFileTypeAnnotationTypeQuery(target=es5).symbols b/tests/baselines/reference/declFileTypeAnnotationTypeQuery(target=es5).symbols new file mode 100644 index 0000000000000..048f166238f48 --- /dev/null +++ b/tests/baselines/reference/declFileTypeAnnotationTypeQuery(target=es5).symbols @@ -0,0 +1,93 @@ +//// [tests/cases/compiler/declFileTypeAnnotationTypeQuery.ts] //// + +=== declFileTypeAnnotationTypeQuery.ts === +class c { +>c : Symbol(c, Decl(declFileTypeAnnotationTypeQuery.ts, 0, 0)) +} +namespace m { +>m : Symbol(m, Decl(declFileTypeAnnotationTypeQuery.ts, 1, 1)) + + export class c { +>c : Symbol(c, Decl(declFileTypeAnnotationTypeQuery.ts, 2, 13)) + } + export class g { +>g : Symbol(g, Decl(declFileTypeAnnotationTypeQuery.ts, 4, 5)) +>T : Symbol(T, Decl(declFileTypeAnnotationTypeQuery.ts, 5, 19)) + } +} +class g { +>g : Symbol(g, Decl(declFileTypeAnnotationTypeQuery.ts, 7, 1)) +>T : Symbol(T, Decl(declFileTypeAnnotationTypeQuery.ts, 8, 8)) +} + +// Just the name +function foo(): typeof c { +>foo : Symbol(foo, Decl(declFileTypeAnnotationTypeQuery.ts, 9, 1)) +>c : Symbol(c, Decl(declFileTypeAnnotationTypeQuery.ts, 0, 0)) + + return c; +>c : Symbol(c, Decl(declFileTypeAnnotationTypeQuery.ts, 0, 0)) +} +function foo2() { +>foo2 : Symbol(foo2, Decl(declFileTypeAnnotationTypeQuery.ts, 14, 1)) + + return c; +>c : Symbol(c, Decl(declFileTypeAnnotationTypeQuery.ts, 0, 0)) +} + +// Qualified name +function foo3(): typeof m.c { +>foo3 : Symbol(foo3, Decl(declFileTypeAnnotationTypeQuery.ts, 17, 1)) +>m.c : Symbol(m.c, Decl(declFileTypeAnnotationTypeQuery.ts, 2, 13)) +>m : Symbol(m, Decl(declFileTypeAnnotationTypeQuery.ts, 1, 1)) +>c : Symbol(m.c, Decl(declFileTypeAnnotationTypeQuery.ts, 2, 13)) + + return m.c; +>m.c : Symbol(m.c, Decl(declFileTypeAnnotationTypeQuery.ts, 2, 13)) +>m : Symbol(m, Decl(declFileTypeAnnotationTypeQuery.ts, 1, 1)) +>c : Symbol(m.c, Decl(declFileTypeAnnotationTypeQuery.ts, 2, 13)) +} +function foo4() { +>foo4 : Symbol(foo4, Decl(declFileTypeAnnotationTypeQuery.ts, 22, 1)) + + return m.c; +>m.c : Symbol(m.c, Decl(declFileTypeAnnotationTypeQuery.ts, 2, 13)) +>m : Symbol(m, Decl(declFileTypeAnnotationTypeQuery.ts, 1, 1)) +>c : Symbol(m.c, Decl(declFileTypeAnnotationTypeQuery.ts, 2, 13)) +} + +// Just the name with type arguments +function foo5(): typeof g { +>foo5 : Symbol(foo5, Decl(declFileTypeAnnotationTypeQuery.ts, 25, 1)) +>g : Symbol(g, Decl(declFileTypeAnnotationTypeQuery.ts, 7, 1)) + + return g; +>g : Symbol(g, Decl(declFileTypeAnnotationTypeQuery.ts, 7, 1)) +} +function foo6() { +>foo6 : Symbol(foo6, Decl(declFileTypeAnnotationTypeQuery.ts, 30, 1)) + + return g; +>g : Symbol(g, Decl(declFileTypeAnnotationTypeQuery.ts, 7, 1)) +} + +// Qualified name with type arguments +function foo7(): typeof m.g { +>foo7 : Symbol(foo7, Decl(declFileTypeAnnotationTypeQuery.ts, 33, 1)) +>m.g : Symbol(m.g, Decl(declFileTypeAnnotationTypeQuery.ts, 4, 5)) +>m : Symbol(m, Decl(declFileTypeAnnotationTypeQuery.ts, 1, 1)) +>g : Symbol(m.g, Decl(declFileTypeAnnotationTypeQuery.ts, 4, 5)) + + return m.g +>m.g : Symbol(m.g, Decl(declFileTypeAnnotationTypeQuery.ts, 4, 5)) +>m : Symbol(m, Decl(declFileTypeAnnotationTypeQuery.ts, 1, 1)) +>g : Symbol(m.g, Decl(declFileTypeAnnotationTypeQuery.ts, 4, 5)) +} +function foo8() { +>foo8 : Symbol(foo8, Decl(declFileTypeAnnotationTypeQuery.ts, 38, 1)) + + return m.g +>m.g : Symbol(m.g, Decl(declFileTypeAnnotationTypeQuery.ts, 4, 5)) +>m : Symbol(m, Decl(declFileTypeAnnotationTypeQuery.ts, 1, 1)) +>g : Symbol(m.g, Decl(declFileTypeAnnotationTypeQuery.ts, 4, 5)) +} diff --git a/tests/baselines/reference/declFileTypeAnnotationTypeQuery(target=es5).types b/tests/baselines/reference/declFileTypeAnnotationTypeQuery(target=es5).types new file mode 100644 index 0000000000000..3e6310e473ccb --- /dev/null +++ b/tests/baselines/reference/declFileTypeAnnotationTypeQuery(target=es5).types @@ -0,0 +1,128 @@ +//// [tests/cases/compiler/declFileTypeAnnotationTypeQuery.ts] //// + +=== declFileTypeAnnotationTypeQuery.ts === +class c { +>c : c +> : ^ +} +namespace m { +>m : typeof m +> : ^^^^^^^^ + + export class c { +>c : c +> : ^ + } + export class g { +>g : g +> : ^^^^ + } +} +class g { +>g : g +> : ^^^^ +} + +// Just the name +function foo(): typeof c { +>foo : () => typeof c +> : ^^^^^^ +>c : typeof c +> : ^^^^^^^^ + + return c; +>c : typeof c +> : ^^^^^^^^ +} +function foo2() { +>foo2 : () => typeof c +> : ^^^^^^^^^^^^^^ + + return c; +>c : typeof c +> : ^^^^^^^^ +} + +// Qualified name +function foo3(): typeof m.c { +>foo3 : () => typeof m.c +> : ^^^^^^ +>m.c : typeof m.c +> : ^^^^^^^^^^ +>m : typeof m +> : ^^^^^^^^ +>c : typeof m.c +> : ^^^^^^^^^^ + + return m.c; +>m.c : typeof m.c +> : ^^^^^^^^^^ +>m : typeof m +> : ^^^^^^^^ +>c : typeof m.c +> : ^^^^^^^^^^ +} +function foo4() { +>foo4 : () => typeof m.c +> : ^^^^^^^^^^^^^^^^ + + return m.c; +>m.c : typeof m.c +> : ^^^^^^^^^^ +>m : typeof m +> : ^^^^^^^^ +>c : typeof m.c +> : ^^^^^^^^^^ +} + +// Just the name with type arguments +function foo5(): typeof g { +>foo5 : () => typeof g +> : ^^^^^^ +>g : typeof g +> : ^^^^^^^^ + + return g; +>g : typeof g +> : ^^^^^^^^ +} +function foo6() { +>foo6 : () => typeof g +> : ^^^^^^^^^^^^^^ + + return g; +>g : typeof g +> : ^^^^^^^^ +} + +// Qualified name with type arguments +function foo7(): typeof m.g { +>foo7 : () => typeof m.g +> : ^^^^^^ +>m.g : typeof m.g +> : ^^^^^^^^^^ +>m : typeof m +> : ^^^^^^^^ +>g : typeof m.g +> : ^^^^^^^^^^ + + return m.g +>m.g : typeof m.g +> : ^^^^^^^^^^ +>m : typeof m +> : ^^^^^^^^ +>g : typeof m.g +> : ^^^^^^^^^^ +} +function foo8() { +>foo8 : () => typeof m.g +> : ^^^^^^^^^^^^^^^^ + + return m.g +>m.g : typeof m.g +> : ^^^^^^^^^^ +>m : typeof m +> : ^^^^^^^^ +>g : typeof m.g +> : ^^^^^^^^^^ +} diff --git a/tests/baselines/reference/declFileTypeAnnotationTypeReference(target=es2015).js b/tests/baselines/reference/declFileTypeAnnotationTypeReference(target=es2015).js new file mode 100644 index 0000000000000..1f294bc805c19 --- /dev/null +++ b/tests/baselines/reference/declFileTypeAnnotationTypeReference(target=es2015).js @@ -0,0 +1,109 @@ +//// [tests/cases/compiler/declFileTypeAnnotationTypeReference.ts] //// + +//// [declFileTypeAnnotationTypeReference.ts] +class c { +} +namespace m { + export class c { + } + export class g { + } +} +class g { +} + +// Just the name +function foo(): c { + return new c(); +} +function foo2() { + return new c(); +} + +// Qualified name +function foo3(): m.c { + return new m.c(); +} +function foo4() { + return new m.c(); +} + +// Just the name with type arguments +function foo5(): g { + return new g(); +} +function foo6() { + return new g(); +} + +// Qualified name with type arguments +function foo7(): m.g { + return new m.g(); +} +function foo8() { + return new m.g(); +} + +//// [declFileTypeAnnotationTypeReference.js] +class c { +} +var m; +(function (m) { + class c { + } + m.c = c; + class g { + } + m.g = g; +})(m || (m = {})); +class g { +} +// Just the name +function foo() { + return new c(); +} +function foo2() { + return new c(); +} +// Qualified name +function foo3() { + return new m.c(); +} +function foo4() { + return new m.c(); +} +// Just the name with type arguments +function foo5() { + return new g(); +} +function foo6() { + return new g(); +} +// Qualified name with type arguments +function foo7() { + return new m.g(); +} +function foo8() { + return new m.g(); +} + + +//// [declFileTypeAnnotationTypeReference.d.ts] +declare class c { +} +declare namespace m { + class c { + } + class g { + } +} +declare class g { +} +declare function foo(): c; +declare function foo2(): c; +declare function foo3(): m.c; +declare function foo4(): m.c; +declare function foo5(): g; +declare function foo6(): g; +declare function foo7(): m.g; +declare function foo8(): m.g; diff --git a/tests/baselines/reference/declFileTypeAnnotationTypeReference.symbols b/tests/baselines/reference/declFileTypeAnnotationTypeReference(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/declFileTypeAnnotationTypeReference.symbols rename to tests/baselines/reference/declFileTypeAnnotationTypeReference(target=es2015).symbols diff --git a/tests/baselines/reference/declFileTypeAnnotationTypeReference.types b/tests/baselines/reference/declFileTypeAnnotationTypeReference(target=es2015).types similarity index 100% rename from tests/baselines/reference/declFileTypeAnnotationTypeReference.types rename to tests/baselines/reference/declFileTypeAnnotationTypeReference(target=es2015).types diff --git a/tests/baselines/reference/declFileTypeAnnotationTypeReference.js b/tests/baselines/reference/declFileTypeAnnotationTypeReference(target=es5).js similarity index 100% rename from tests/baselines/reference/declFileTypeAnnotationTypeReference.js rename to tests/baselines/reference/declFileTypeAnnotationTypeReference(target=es5).js diff --git a/tests/baselines/reference/declFileTypeAnnotationTypeReference(target=es5).symbols b/tests/baselines/reference/declFileTypeAnnotationTypeReference(target=es5).symbols new file mode 100644 index 0000000000000..90e999a3b4692 --- /dev/null +++ b/tests/baselines/reference/declFileTypeAnnotationTypeReference(target=es5).symbols @@ -0,0 +1,91 @@ +//// [tests/cases/compiler/declFileTypeAnnotationTypeReference.ts] //// + +=== declFileTypeAnnotationTypeReference.ts === +class c { +>c : Symbol(c, Decl(declFileTypeAnnotationTypeReference.ts, 0, 0)) +} +namespace m { +>m : Symbol(m, Decl(declFileTypeAnnotationTypeReference.ts, 1, 1)) + + export class c { +>c : Symbol(c, Decl(declFileTypeAnnotationTypeReference.ts, 2, 13)) + } + export class g { +>g : Symbol(g, Decl(declFileTypeAnnotationTypeReference.ts, 4, 5)) +>T : Symbol(T, Decl(declFileTypeAnnotationTypeReference.ts, 5, 19)) + } +} +class g { +>g : Symbol(g, Decl(declFileTypeAnnotationTypeReference.ts, 7, 1)) +>T : Symbol(T, Decl(declFileTypeAnnotationTypeReference.ts, 8, 8)) +} + +// Just the name +function foo(): c { +>foo : Symbol(foo, Decl(declFileTypeAnnotationTypeReference.ts, 9, 1)) +>c : Symbol(c, Decl(declFileTypeAnnotationTypeReference.ts, 0, 0)) + + return new c(); +>c : Symbol(c, Decl(declFileTypeAnnotationTypeReference.ts, 0, 0)) +} +function foo2() { +>foo2 : Symbol(foo2, Decl(declFileTypeAnnotationTypeReference.ts, 14, 1)) + + return new c(); +>c : Symbol(c, Decl(declFileTypeAnnotationTypeReference.ts, 0, 0)) +} + +// Qualified name +function foo3(): m.c { +>foo3 : Symbol(foo3, Decl(declFileTypeAnnotationTypeReference.ts, 17, 1)) +>m : Symbol(m, Decl(declFileTypeAnnotationTypeReference.ts, 1, 1)) +>c : Symbol(m.c, Decl(declFileTypeAnnotationTypeReference.ts, 2, 13)) + + return new m.c(); +>m.c : Symbol(m.c, Decl(declFileTypeAnnotationTypeReference.ts, 2, 13)) +>m : Symbol(m, Decl(declFileTypeAnnotationTypeReference.ts, 1, 1)) +>c : Symbol(m.c, Decl(declFileTypeAnnotationTypeReference.ts, 2, 13)) +} +function foo4() { +>foo4 : Symbol(foo4, Decl(declFileTypeAnnotationTypeReference.ts, 22, 1)) + + return new m.c(); +>m.c : Symbol(m.c, Decl(declFileTypeAnnotationTypeReference.ts, 2, 13)) +>m : Symbol(m, Decl(declFileTypeAnnotationTypeReference.ts, 1, 1)) +>c : Symbol(m.c, Decl(declFileTypeAnnotationTypeReference.ts, 2, 13)) +} + +// Just the name with type arguments +function foo5(): g { +>foo5 : Symbol(foo5, Decl(declFileTypeAnnotationTypeReference.ts, 25, 1)) +>g : Symbol(g, Decl(declFileTypeAnnotationTypeReference.ts, 7, 1)) + + return new g(); +>g : Symbol(g, Decl(declFileTypeAnnotationTypeReference.ts, 7, 1)) +} +function foo6() { +>foo6 : Symbol(foo6, Decl(declFileTypeAnnotationTypeReference.ts, 30, 1)) + + return new g(); +>g : Symbol(g, Decl(declFileTypeAnnotationTypeReference.ts, 7, 1)) +} + +// Qualified name with type arguments +function foo7(): m.g { +>foo7 : Symbol(foo7, Decl(declFileTypeAnnotationTypeReference.ts, 33, 1)) +>m : Symbol(m, Decl(declFileTypeAnnotationTypeReference.ts, 1, 1)) +>g : Symbol(m.g, Decl(declFileTypeAnnotationTypeReference.ts, 4, 5)) + + return new m.g(); +>m.g : Symbol(m.g, Decl(declFileTypeAnnotationTypeReference.ts, 4, 5)) +>m : Symbol(m, Decl(declFileTypeAnnotationTypeReference.ts, 1, 1)) +>g : Symbol(m.g, Decl(declFileTypeAnnotationTypeReference.ts, 4, 5)) +} +function foo8() { +>foo8 : Symbol(foo8, Decl(declFileTypeAnnotationTypeReference.ts, 38, 1)) + + return new m.g(); +>m.g : Symbol(m.g, Decl(declFileTypeAnnotationTypeReference.ts, 4, 5)) +>m : Symbol(m, Decl(declFileTypeAnnotationTypeReference.ts, 1, 1)) +>g : Symbol(m.g, Decl(declFileTypeAnnotationTypeReference.ts, 4, 5)) +} diff --git a/tests/baselines/reference/declFileTypeAnnotationTypeReference(target=es5).types b/tests/baselines/reference/declFileTypeAnnotationTypeReference(target=es5).types new file mode 100644 index 0000000000000..5b0bbcfa49d00 --- /dev/null +++ b/tests/baselines/reference/declFileTypeAnnotationTypeReference(target=es5).types @@ -0,0 +1,132 @@ +//// [tests/cases/compiler/declFileTypeAnnotationTypeReference.ts] //// + +=== declFileTypeAnnotationTypeReference.ts === +class c { +>c : c +> : ^ +} +namespace m { +>m : typeof m +> : ^^^^^^^^ + + export class c { +>c : c +> : ^ + } + export class g { +>g : g +> : ^^^^ + } +} +class g { +>g : g +> : ^^^^ +} + +// Just the name +function foo(): c { +>foo : () => c +> : ^^^^^^ + + return new c(); +>new c() : c +> : ^ +>c : typeof c +> : ^^^^^^^^ +} +function foo2() { +>foo2 : () => c +> : ^^^^^^^ + + return new c(); +>new c() : c +> : ^ +>c : typeof c +> : ^^^^^^^^ +} + +// Qualified name +function foo3(): m.c { +>foo3 : () => m.c +> : ^^^^^^ +>m : any +> : ^^^ + + return new m.c(); +>new m.c() : m.c +> : ^^^ +>m.c : typeof m.c +> : ^^^^^^^^^^ +>m : typeof m +> : ^^^^^^^^ +>c : typeof m.c +> : ^^^^^^^^^^ +} +function foo4() { +>foo4 : () => m.c +> : ^^^^^^^^^ + + return new m.c(); +>new m.c() : m.c +> : ^^^ +>m.c : typeof m.c +> : ^^^^^^^^^^ +>m : typeof m +> : ^^^^^^^^ +>c : typeof m.c +> : ^^^^^^^^^^ +} + +// Just the name with type arguments +function foo5(): g { +>foo5 : () => g +> : ^^^^^^ + + return new g(); +>new g() : g +> : ^^^^^^^^^ +>g : typeof g +> : ^^^^^^^^ +} +function foo6() { +>foo6 : () => g +> : ^^^^^^^^^^^^^^^ + + return new g(); +>new g() : g +> : ^^^^^^^^^ +>g : typeof g +> : ^^^^^^^^ +} + +// Qualified name with type arguments +function foo7(): m.g { +>foo7 : () => m.g +> : ^^^^^^ +>m : any +> : ^^^ + + return new m.g(); +>new m.g() : m.g +> : ^^^^^^^^^^^ +>m.g : typeof m.g +> : ^^^^^^^^^^ +>m : typeof m +> : ^^^^^^^^ +>g : typeof m.g +> : ^^^^^^^^^^ +} +function foo8() { +>foo8 : () => m.g +> : ^^^^^^^^^^^^^^^^^ + + return new m.g(); +>new m.g() : m.g +> : ^^^^^^^^^^^ +>m.g : typeof m.g +> : ^^^^^^^^^^ +>m : typeof m +> : ^^^^^^^^ +>g : typeof m.g +> : ^^^^^^^^^^ +} diff --git a/tests/baselines/reference/declFileTypeAnnotationUnionType(target=es2015).js b/tests/baselines/reference/declFileTypeAnnotationUnionType(target=es2015).js new file mode 100644 index 0000000000000..fc4db32a5f0d7 --- /dev/null +++ b/tests/baselines/reference/declFileTypeAnnotationUnionType(target=es2015).js @@ -0,0 +1,81 @@ +//// [tests/cases/compiler/declFileTypeAnnotationUnionType.ts] //// + +//// [declFileTypeAnnotationUnionType.ts] +class c { + private p: string; +} +namespace m { + export class c { + private q: string; + } + export class g { + private r: string; + } +} +class g { + private s: string; +} + +// Just the name +var k: c | m.c = new c() || new m.c(); +var l = new c() || new m.c(); + +var x: g | m.g | (() => c) = new g() || new m.g() || (() => new c()); +var y = new g() || new m.g() || (() => new c()); + +//// [declFileTypeAnnotationUnionType.js] +class c { +} +var m; +(function (m) { + class c { + } + m.c = c; + class g { + } + m.g = g; +})(m || (m = {})); +class g { +} +// Just the name +var k = new c() || new m.c(); +var l = new c() || new m.c(); +var x = new g() || new m.g() || (() => new c()); +var y = new g() || new m.g() || (() => new c()); + + +//// [declFileTypeAnnotationUnionType.d.ts] +declare class c { + private p; +} +declare namespace m { + class c { + private q; + } + class g { + private r; + } +} +declare class g { + private s; +} +declare var k: c | m.c; +declare var l: c | m.c; +declare var x: g | m.g | (() => c); +declare var y: g | m.g | (() => c); + + +!!!! File declFileTypeAnnotationUnionType.d.ts differs from original emit in noCheck emit +//// [declFileTypeAnnotationUnionType.d.ts] +=================================================================== +--- Expected The full check baseline ++++ Actual with noCheck set +@@ -12,7 +12,7 @@ + declare class g { + private s; + } + declare var k: c | m.c; +-declare var l: c | m.c; ++declare var l: m.c | c; + declare var x: g | m.g | (() => c); + declare var y: g | m.g | (() => c); diff --git a/tests/baselines/reference/declFileTypeAnnotationUnionType.symbols b/tests/baselines/reference/declFileTypeAnnotationUnionType(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/declFileTypeAnnotationUnionType.symbols rename to tests/baselines/reference/declFileTypeAnnotationUnionType(target=es2015).symbols diff --git a/tests/baselines/reference/declFileTypeAnnotationUnionType.types b/tests/baselines/reference/declFileTypeAnnotationUnionType(target=es2015).types similarity index 100% rename from tests/baselines/reference/declFileTypeAnnotationUnionType.types rename to tests/baselines/reference/declFileTypeAnnotationUnionType(target=es2015).types diff --git a/tests/baselines/reference/declFileTypeAnnotationUnionType.js b/tests/baselines/reference/declFileTypeAnnotationUnionType(target=es5).js similarity index 100% rename from tests/baselines/reference/declFileTypeAnnotationUnionType.js rename to tests/baselines/reference/declFileTypeAnnotationUnionType(target=es5).js diff --git a/tests/baselines/reference/declFileTypeAnnotationUnionType(target=es5).symbols b/tests/baselines/reference/declFileTypeAnnotationUnionType(target=es5).symbols new file mode 100644 index 0000000000000..0193e6bb7cb1a --- /dev/null +++ b/tests/baselines/reference/declFileTypeAnnotationUnionType(target=es5).symbols @@ -0,0 +1,72 @@ +//// [tests/cases/compiler/declFileTypeAnnotationUnionType.ts] //// + +=== declFileTypeAnnotationUnionType.ts === +class c { +>c : Symbol(c, Decl(declFileTypeAnnotationUnionType.ts, 0, 0)) + + private p: string; +>p : Symbol(c.p, Decl(declFileTypeAnnotationUnionType.ts, 0, 9)) +} +namespace m { +>m : Symbol(m, Decl(declFileTypeAnnotationUnionType.ts, 2, 1)) + + export class c { +>c : Symbol(c, Decl(declFileTypeAnnotationUnionType.ts, 3, 13)) + + private q: string; +>q : Symbol(c.q, Decl(declFileTypeAnnotationUnionType.ts, 4, 20)) + } + export class g { +>g : Symbol(g, Decl(declFileTypeAnnotationUnionType.ts, 6, 5)) +>T : Symbol(T, Decl(declFileTypeAnnotationUnionType.ts, 7, 19)) + + private r: string; +>r : Symbol(g.r, Decl(declFileTypeAnnotationUnionType.ts, 7, 23)) + } +} +class g { +>g : Symbol(g, Decl(declFileTypeAnnotationUnionType.ts, 10, 1)) +>T : Symbol(T, Decl(declFileTypeAnnotationUnionType.ts, 11, 8)) + + private s: string; +>s : Symbol(g.s, Decl(declFileTypeAnnotationUnionType.ts, 11, 12)) +} + +// Just the name +var k: c | m.c = new c() || new m.c(); +>k : Symbol(k, Decl(declFileTypeAnnotationUnionType.ts, 16, 3)) +>c : Symbol(c, Decl(declFileTypeAnnotationUnionType.ts, 0, 0)) +>m : Symbol(m, Decl(declFileTypeAnnotationUnionType.ts, 2, 1)) +>c : Symbol(m.c, Decl(declFileTypeAnnotationUnionType.ts, 3, 13)) +>c : Symbol(c, Decl(declFileTypeAnnotationUnionType.ts, 0, 0)) +>m.c : Symbol(m.c, Decl(declFileTypeAnnotationUnionType.ts, 3, 13)) +>m : Symbol(m, Decl(declFileTypeAnnotationUnionType.ts, 2, 1)) +>c : Symbol(m.c, Decl(declFileTypeAnnotationUnionType.ts, 3, 13)) + +var l = new c() || new m.c(); +>l : Symbol(l, Decl(declFileTypeAnnotationUnionType.ts, 17, 3)) +>c : Symbol(c, Decl(declFileTypeAnnotationUnionType.ts, 0, 0)) +>m.c : Symbol(m.c, Decl(declFileTypeAnnotationUnionType.ts, 3, 13)) +>m : Symbol(m, Decl(declFileTypeAnnotationUnionType.ts, 2, 1)) +>c : Symbol(m.c, Decl(declFileTypeAnnotationUnionType.ts, 3, 13)) + +var x: g | m.g | (() => c) = new g() || new m.g() || (() => new c()); +>x : Symbol(x, Decl(declFileTypeAnnotationUnionType.ts, 19, 3)) +>g : Symbol(g, Decl(declFileTypeAnnotationUnionType.ts, 10, 1)) +>m : Symbol(m, Decl(declFileTypeAnnotationUnionType.ts, 2, 1)) +>g : Symbol(m.g, Decl(declFileTypeAnnotationUnionType.ts, 6, 5)) +>c : Symbol(c, Decl(declFileTypeAnnotationUnionType.ts, 0, 0)) +>g : Symbol(g, Decl(declFileTypeAnnotationUnionType.ts, 10, 1)) +>m.g : Symbol(m.g, Decl(declFileTypeAnnotationUnionType.ts, 6, 5)) +>m : Symbol(m, Decl(declFileTypeAnnotationUnionType.ts, 2, 1)) +>g : Symbol(m.g, Decl(declFileTypeAnnotationUnionType.ts, 6, 5)) +>c : Symbol(c, Decl(declFileTypeAnnotationUnionType.ts, 0, 0)) + +var y = new g() || new m.g() || (() => new c()); +>y : Symbol(y, Decl(declFileTypeAnnotationUnionType.ts, 20, 3)) +>g : Symbol(g, Decl(declFileTypeAnnotationUnionType.ts, 10, 1)) +>m.g : Symbol(m.g, Decl(declFileTypeAnnotationUnionType.ts, 6, 5)) +>m : Symbol(m, Decl(declFileTypeAnnotationUnionType.ts, 2, 1)) +>g : Symbol(m.g, Decl(declFileTypeAnnotationUnionType.ts, 6, 5)) +>c : Symbol(c, Decl(declFileTypeAnnotationUnionType.ts, 0, 0)) + diff --git a/tests/baselines/reference/declFileTypeAnnotationUnionType(target=es5).types b/tests/baselines/reference/declFileTypeAnnotationUnionType(target=es5).types new file mode 100644 index 0000000000000..9140b6b5be46f --- /dev/null +++ b/tests/baselines/reference/declFileTypeAnnotationUnionType(target=es5).types @@ -0,0 +1,138 @@ +//// [tests/cases/compiler/declFileTypeAnnotationUnionType.ts] //// + +=== declFileTypeAnnotationUnionType.ts === +class c { +>c : c +> : ^ + + private p: string; +>p : string +> : ^^^^^^ +} +namespace m { +>m : typeof m +> : ^^^^^^^^ + + export class c { +>c : c +> : ^ + + private q: string; +>q : string +> : ^^^^^^ + } + export class g { +>g : g +> : ^^^^ + + private r: string; +>r : string +> : ^^^^^^ + } +} +class g { +>g : g +> : ^^^^ + + private s: string; +>s : string +> : ^^^^^^ +} + +// Just the name +var k: c | m.c = new c() || new m.c(); +>k : c | m.c +> : ^^^^^^^ +>m : any +> : ^^^ +>new c() || new m.c() : c | m.c +> : ^^^^^^^ +>new c() : c +> : ^ +>c : typeof c +> : ^^^^^^^^ +>new m.c() : m.c +> : ^^^ +>m.c : typeof m.c +> : ^^^^^^^^^^ +>m : typeof m +> : ^^^^^^^^ +>c : typeof m.c +> : ^^^^^^^^^^ + +var l = new c() || new m.c(); +>l : c | m.c +> : ^^^^^^^ +>new c() || new m.c() : c | m.c +> : ^^^^^^^ +>new c() : c +> : ^ +>c : typeof c +> : ^^^^^^^^ +>new m.c() : m.c +> : ^^^ +>m.c : typeof m.c +> : ^^^^^^^^^^ +>m : typeof m +> : ^^^^^^^^ +>c : typeof m.c +> : ^^^^^^^^^^ + +var x: g | m.g | (() => c) = new g() || new m.g() || (() => new c()); +>x : g | m.g | (() => c) +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^ +>m : any +> : ^^^ +>new g() || new m.g() || (() => new c()) : g | m.g | (() => c) +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>new g() || new m.g() : g | m.g +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>new g() : g +> : ^^^^^^^^^ +>g : typeof g +> : ^^^^^^^^ +>new m.g() : m.g +> : ^^^^^^^^^^^ +>m.g : typeof m.g +> : ^^^^^^^^^^ +>m : typeof m +> : ^^^^^^^^ +>g : typeof m.g +> : ^^^^^^^^^^ +>(() => new c()) : () => c +> : ^^^^^^^ +>() => new c() : () => c +> : ^^^^^^^ +>new c() : c +> : ^ +>c : typeof c +> : ^^^^^^^^ + +var y = new g() || new m.g() || (() => new c()); +>y : g | m.g | (() => c) +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>new g() || new m.g() || (() => new c()) : g | m.g | (() => c) +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>new g() || new m.g() : g | m.g +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>new g() : g +> : ^^^^^^^^^ +>g : typeof g +> : ^^^^^^^^ +>new m.g() : m.g +> : ^^^^^^^^^^^ +>m.g : typeof m.g +> : ^^^^^^^^^^ +>m : typeof m +> : ^^^^^^^^ +>g : typeof m.g +> : ^^^^^^^^^^ +>(() => new c()) : () => c +> : ^^^^^^^ +>() => new c() : () => c +> : ^^^^^^^ +>new c() : c +> : ^ +>c : typeof c +> : ^^^^^^^^ + diff --git a/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorAccessors(target=es2015).js b/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorAccessors(target=es2015).js new file mode 100644 index 0000000000000..a3eb5e61ff378 --- /dev/null +++ b/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorAccessors(target=es2015).js @@ -0,0 +1,227 @@ +//// [tests/cases/compiler/declFileTypeAnnotationVisibilityErrorAccessors.ts] //// + +//// [declFileTypeAnnotationVisibilityErrorAccessors.ts] +namespace m { + class private1 { + } + + export class public1 { + } + + namespace m2 { + export class public2 { + } + } + + export class c { + // getter with annotation + get foo1(): private1 { + return; + } + + // getter without annotation + get foo2() { + return new private1(); + } + + // setter with annotation + set foo3(param: private1) { + } + + // Both - getter without annotation, setter with annotation + get foo4() { + return new private1(); + } + set foo4(param: private1) { + } + + // Both - with annotation + get foo5(): private1 { + return; + } + set foo5(param: private1) { + } + + // getter with annotation + get foo11(): public1 { + return; + } + + // getter without annotation + get foo12() { + return new public1(); + } + + // setter with annotation + set foo13(param: public1) { + } + + // Both - getter without annotation, setter with annotation + get foo14() { + return new public1(); + } + set foo14(param: public1) { + } + + // Both - with annotation + get foo15(): public1 { + return; + } + set foo15(param: public1) { + } + + // getter with annotation + get foo111(): m2.public2 { + return; + } + + // getter without annotation + get foo112() { + return new m2.public2(); + } + + // setter with annotation + set foo113(param: m2.public2) { + } + + // Both - getter without annotation, setter with annotation + get foo114() { + return new m2.public2(); + } + set foo114(param: m2.public2) { + } + + // Both - with annotation + get foo115(): m2.public2 { + return; + } + set foo115(param: m2.public2) { + } + } +} + + +//// [declFileTypeAnnotationVisibilityErrorAccessors.js] +var m; +(function (m) { + class private1 { + } + class public1 { + } + m.public1 = public1; + let m2; + (function (m2) { + class public2 { + } + m2.public2 = public2; + })(m2 || (m2 = {})); + class c { + // getter with annotation + get foo1() { + return; + } + // getter without annotation + get foo2() { + return new private1(); + } + // setter with annotation + set foo3(param) { + } + // Both - getter without annotation, setter with annotation + get foo4() { + return new private1(); + } + set foo4(param) { + } + // Both - with annotation + get foo5() { + return; + } + set foo5(param) { + } + // getter with annotation + get foo11() { + return; + } + // getter without annotation + get foo12() { + return new public1(); + } + // setter with annotation + set foo13(param) { + } + // Both - getter without annotation, setter with annotation + get foo14() { + return new public1(); + } + set foo14(param) { + } + // Both - with annotation + get foo15() { + return; + } + set foo15(param) { + } + // getter with annotation + get foo111() { + return; + } + // getter without annotation + get foo112() { + return new m2.public2(); + } + // setter with annotation + set foo113(param) { + } + // Both - getter without annotation, setter with annotation + get foo114() { + return new m2.public2(); + } + set foo114(param) { + } + // Both - with annotation + get foo115() { + return; + } + set foo115(param) { + } + } + m.c = c; +})(m || (m = {})); + + +//// [declFileTypeAnnotationVisibilityErrorAccessors.d.ts] +declare namespace m { + class private1 { + } + export class public1 { + } + namespace m2 { + class public2 { + } + } + export class c { + get foo1(): private1; + get foo2(): private1; + set foo3(param: private1); + get foo4(): private1; + set foo4(param: private1); + get foo5(): private1; + set foo5(param: private1); + get foo11(): public1; + get foo12(): public1; + set foo13(param: public1); + get foo14(): public1; + set foo14(param: public1); + get foo15(): public1; + set foo15(param: public1); + get foo111(): m2.public2; + get foo112(): m2.public2; + set foo113(param: m2.public2); + get foo114(): m2.public2; + set foo114(param: m2.public2); + get foo115(): m2.public2; + set foo115(param: m2.public2); + } + export {}; +} diff --git a/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorAccessors.symbols b/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorAccessors(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/declFileTypeAnnotationVisibilityErrorAccessors.symbols rename to tests/baselines/reference/declFileTypeAnnotationVisibilityErrorAccessors(target=es2015).symbols diff --git a/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorAccessors.types b/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorAccessors(target=es2015).types similarity index 100% rename from tests/baselines/reference/declFileTypeAnnotationVisibilityErrorAccessors.types rename to tests/baselines/reference/declFileTypeAnnotationVisibilityErrorAccessors(target=es2015).types diff --git a/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorAccessors.js b/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorAccessors(target=es5).js similarity index 100% rename from tests/baselines/reference/declFileTypeAnnotationVisibilityErrorAccessors.js rename to tests/baselines/reference/declFileTypeAnnotationVisibilityErrorAccessors(target=es5).js diff --git a/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorAccessors(target=es5).symbols b/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorAccessors(target=es5).symbols new file mode 100644 index 0000000000000..113d7ab8de654 --- /dev/null +++ b/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorAccessors(target=es5).symbols @@ -0,0 +1,183 @@ +//// [tests/cases/compiler/declFileTypeAnnotationVisibilityErrorAccessors.ts] //// + +=== declFileTypeAnnotationVisibilityErrorAccessors.ts === +namespace m { +>m : Symbol(m, Decl(declFileTypeAnnotationVisibilityErrorAccessors.ts, 0, 0)) + + class private1 { +>private1 : Symbol(private1, Decl(declFileTypeAnnotationVisibilityErrorAccessors.ts, 0, 13)) + } + + export class public1 { +>public1 : Symbol(public1, Decl(declFileTypeAnnotationVisibilityErrorAccessors.ts, 2, 5)) + } + + namespace m2 { +>m2 : Symbol(m2, Decl(declFileTypeAnnotationVisibilityErrorAccessors.ts, 5, 5)) + + export class public2 { +>public2 : Symbol(public2, Decl(declFileTypeAnnotationVisibilityErrorAccessors.ts, 7, 18)) + } + } + + export class c { +>c : Symbol(c, Decl(declFileTypeAnnotationVisibilityErrorAccessors.ts, 10, 5)) + + // getter with annotation + get foo1(): private1 { +>foo1 : Symbol(c.foo1, Decl(declFileTypeAnnotationVisibilityErrorAccessors.ts, 12, 20)) +>private1 : Symbol(private1, Decl(declFileTypeAnnotationVisibilityErrorAccessors.ts, 0, 13)) + + return; + } + + // getter without annotation + get foo2() { +>foo2 : Symbol(c.foo2, Decl(declFileTypeAnnotationVisibilityErrorAccessors.ts, 16, 9)) + + return new private1(); +>private1 : Symbol(private1, Decl(declFileTypeAnnotationVisibilityErrorAccessors.ts, 0, 13)) + } + + // setter with annotation + set foo3(param: private1) { +>foo3 : Symbol(c.foo3, Decl(declFileTypeAnnotationVisibilityErrorAccessors.ts, 21, 9)) +>param : Symbol(param, Decl(declFileTypeAnnotationVisibilityErrorAccessors.ts, 24, 17)) +>private1 : Symbol(private1, Decl(declFileTypeAnnotationVisibilityErrorAccessors.ts, 0, 13)) + } + + // Both - getter without annotation, setter with annotation + get foo4() { +>foo4 : Symbol(c.foo4, Decl(declFileTypeAnnotationVisibilityErrorAccessors.ts, 25, 9), Decl(declFileTypeAnnotationVisibilityErrorAccessors.ts, 30, 9)) + + return new private1(); +>private1 : Symbol(private1, Decl(declFileTypeAnnotationVisibilityErrorAccessors.ts, 0, 13)) + } + set foo4(param: private1) { +>foo4 : Symbol(c.foo4, Decl(declFileTypeAnnotationVisibilityErrorAccessors.ts, 25, 9), Decl(declFileTypeAnnotationVisibilityErrorAccessors.ts, 30, 9)) +>param : Symbol(param, Decl(declFileTypeAnnotationVisibilityErrorAccessors.ts, 31, 17)) +>private1 : Symbol(private1, Decl(declFileTypeAnnotationVisibilityErrorAccessors.ts, 0, 13)) + } + + // Both - with annotation + get foo5(): private1 { +>foo5 : Symbol(c.foo5, Decl(declFileTypeAnnotationVisibilityErrorAccessors.ts, 32, 9), Decl(declFileTypeAnnotationVisibilityErrorAccessors.ts, 37, 9)) +>private1 : Symbol(private1, Decl(declFileTypeAnnotationVisibilityErrorAccessors.ts, 0, 13)) + + return; + } + set foo5(param: private1) { +>foo5 : Symbol(c.foo5, Decl(declFileTypeAnnotationVisibilityErrorAccessors.ts, 32, 9), Decl(declFileTypeAnnotationVisibilityErrorAccessors.ts, 37, 9)) +>param : Symbol(param, Decl(declFileTypeAnnotationVisibilityErrorAccessors.ts, 38, 17)) +>private1 : Symbol(private1, Decl(declFileTypeAnnotationVisibilityErrorAccessors.ts, 0, 13)) + } + + // getter with annotation + get foo11(): public1 { +>foo11 : Symbol(c.foo11, Decl(declFileTypeAnnotationVisibilityErrorAccessors.ts, 39, 9)) +>public1 : Symbol(public1, Decl(declFileTypeAnnotationVisibilityErrorAccessors.ts, 2, 5)) + + return; + } + + // getter without annotation + get foo12() { +>foo12 : Symbol(c.foo12, Decl(declFileTypeAnnotationVisibilityErrorAccessors.ts, 44, 9)) + + return new public1(); +>public1 : Symbol(public1, Decl(declFileTypeAnnotationVisibilityErrorAccessors.ts, 2, 5)) + } + + // setter with annotation + set foo13(param: public1) { +>foo13 : Symbol(c.foo13, Decl(declFileTypeAnnotationVisibilityErrorAccessors.ts, 49, 9)) +>param : Symbol(param, Decl(declFileTypeAnnotationVisibilityErrorAccessors.ts, 52, 18)) +>public1 : Symbol(public1, Decl(declFileTypeAnnotationVisibilityErrorAccessors.ts, 2, 5)) + } + + // Both - getter without annotation, setter with annotation + get foo14() { +>foo14 : Symbol(c.foo14, Decl(declFileTypeAnnotationVisibilityErrorAccessors.ts, 53, 9), Decl(declFileTypeAnnotationVisibilityErrorAccessors.ts, 58, 9)) + + return new public1(); +>public1 : Symbol(public1, Decl(declFileTypeAnnotationVisibilityErrorAccessors.ts, 2, 5)) + } + set foo14(param: public1) { +>foo14 : Symbol(c.foo14, Decl(declFileTypeAnnotationVisibilityErrorAccessors.ts, 53, 9), Decl(declFileTypeAnnotationVisibilityErrorAccessors.ts, 58, 9)) +>param : Symbol(param, Decl(declFileTypeAnnotationVisibilityErrorAccessors.ts, 59, 18)) +>public1 : Symbol(public1, Decl(declFileTypeAnnotationVisibilityErrorAccessors.ts, 2, 5)) + } + + // Both - with annotation + get foo15(): public1 { +>foo15 : Symbol(c.foo15, Decl(declFileTypeAnnotationVisibilityErrorAccessors.ts, 60, 9), Decl(declFileTypeAnnotationVisibilityErrorAccessors.ts, 65, 9)) +>public1 : Symbol(public1, Decl(declFileTypeAnnotationVisibilityErrorAccessors.ts, 2, 5)) + + return; + } + set foo15(param: public1) { +>foo15 : Symbol(c.foo15, Decl(declFileTypeAnnotationVisibilityErrorAccessors.ts, 60, 9), Decl(declFileTypeAnnotationVisibilityErrorAccessors.ts, 65, 9)) +>param : Symbol(param, Decl(declFileTypeAnnotationVisibilityErrorAccessors.ts, 66, 18)) +>public1 : Symbol(public1, Decl(declFileTypeAnnotationVisibilityErrorAccessors.ts, 2, 5)) + } + + // getter with annotation + get foo111(): m2.public2 { +>foo111 : Symbol(c.foo111, Decl(declFileTypeAnnotationVisibilityErrorAccessors.ts, 67, 9)) +>m2 : Symbol(m2, Decl(declFileTypeAnnotationVisibilityErrorAccessors.ts, 5, 5)) +>public2 : Symbol(m2.public2, Decl(declFileTypeAnnotationVisibilityErrorAccessors.ts, 7, 18)) + + return; + } + + // getter without annotation + get foo112() { +>foo112 : Symbol(c.foo112, Decl(declFileTypeAnnotationVisibilityErrorAccessors.ts, 72, 9)) + + return new m2.public2(); +>m2.public2 : Symbol(m2.public2, Decl(declFileTypeAnnotationVisibilityErrorAccessors.ts, 7, 18)) +>m2 : Symbol(m2, Decl(declFileTypeAnnotationVisibilityErrorAccessors.ts, 5, 5)) +>public2 : Symbol(m2.public2, Decl(declFileTypeAnnotationVisibilityErrorAccessors.ts, 7, 18)) + } + + // setter with annotation + set foo113(param: m2.public2) { +>foo113 : Symbol(c.foo113, Decl(declFileTypeAnnotationVisibilityErrorAccessors.ts, 77, 9)) +>param : Symbol(param, Decl(declFileTypeAnnotationVisibilityErrorAccessors.ts, 80, 19)) +>m2 : Symbol(m2, Decl(declFileTypeAnnotationVisibilityErrorAccessors.ts, 5, 5)) +>public2 : Symbol(m2.public2, Decl(declFileTypeAnnotationVisibilityErrorAccessors.ts, 7, 18)) + } + + // Both - getter without annotation, setter with annotation + get foo114() { +>foo114 : Symbol(c.foo114, Decl(declFileTypeAnnotationVisibilityErrorAccessors.ts, 81, 9), Decl(declFileTypeAnnotationVisibilityErrorAccessors.ts, 86, 9)) + + return new m2.public2(); +>m2.public2 : Symbol(m2.public2, Decl(declFileTypeAnnotationVisibilityErrorAccessors.ts, 7, 18)) +>m2 : Symbol(m2, Decl(declFileTypeAnnotationVisibilityErrorAccessors.ts, 5, 5)) +>public2 : Symbol(m2.public2, Decl(declFileTypeAnnotationVisibilityErrorAccessors.ts, 7, 18)) + } + set foo114(param: m2.public2) { +>foo114 : Symbol(c.foo114, Decl(declFileTypeAnnotationVisibilityErrorAccessors.ts, 81, 9), Decl(declFileTypeAnnotationVisibilityErrorAccessors.ts, 86, 9)) +>param : Symbol(param, Decl(declFileTypeAnnotationVisibilityErrorAccessors.ts, 87, 19)) +>m2 : Symbol(m2, Decl(declFileTypeAnnotationVisibilityErrorAccessors.ts, 5, 5)) +>public2 : Symbol(m2.public2, Decl(declFileTypeAnnotationVisibilityErrorAccessors.ts, 7, 18)) + } + + // Both - with annotation + get foo115(): m2.public2 { +>foo115 : Symbol(c.foo115, Decl(declFileTypeAnnotationVisibilityErrorAccessors.ts, 88, 9), Decl(declFileTypeAnnotationVisibilityErrorAccessors.ts, 93, 9)) +>m2 : Symbol(m2, Decl(declFileTypeAnnotationVisibilityErrorAccessors.ts, 5, 5)) +>public2 : Symbol(m2.public2, Decl(declFileTypeAnnotationVisibilityErrorAccessors.ts, 7, 18)) + + return; + } + set foo115(param: m2.public2) { +>foo115 : Symbol(c.foo115, Decl(declFileTypeAnnotationVisibilityErrorAccessors.ts, 88, 9), Decl(declFileTypeAnnotationVisibilityErrorAccessors.ts, 93, 9)) +>param : Symbol(param, Decl(declFileTypeAnnotationVisibilityErrorAccessors.ts, 94, 19)) +>m2 : Symbol(m2, Decl(declFileTypeAnnotationVisibilityErrorAccessors.ts, 5, 5)) +>public2 : Symbol(m2.public2, Decl(declFileTypeAnnotationVisibilityErrorAccessors.ts, 7, 18)) + } + } +} + diff --git a/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorAccessors(target=es5).types b/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorAccessors(target=es5).types new file mode 100644 index 0000000000000..3c4fe70b3c0f3 --- /dev/null +++ b/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorAccessors(target=es5).types @@ -0,0 +1,231 @@ +//// [tests/cases/compiler/declFileTypeAnnotationVisibilityErrorAccessors.ts] //// + +=== declFileTypeAnnotationVisibilityErrorAccessors.ts === +namespace m { +>m : typeof m +> : ^^^^^^^^ + + class private1 { +>private1 : private1 +> : ^^^^^^^^ + } + + export class public1 { +>public1 : public1 +> : ^^^^^^^ + } + + namespace m2 { +>m2 : typeof m2 +> : ^^^^^^^^^ + + export class public2 { +>public2 : public2 +> : ^^^^^^^ + } + } + + export class c { +>c : c +> : ^ + + // getter with annotation + get foo1(): private1 { +>foo1 : private1 +> : ^^^^^^^^ + + return; + } + + // getter without annotation + get foo2() { +>foo2 : private1 +> : ^^^^^^^^ + + return new private1(); +>new private1() : private1 +> : ^^^^^^^^ +>private1 : typeof private1 +> : ^^^^^^^^^^^^^^^ + } + + // setter with annotation + set foo3(param: private1) { +>foo3 : private1 +> : ^^^^^^^^ +>param : private1 +> : ^^^^^^^^ + } + + // Both - getter without annotation, setter with annotation + get foo4() { +>foo4 : private1 +> : ^^^^^^^^ + + return new private1(); +>new private1() : private1 +> : ^^^^^^^^ +>private1 : typeof private1 +> : ^^^^^^^^^^^^^^^ + } + set foo4(param: private1) { +>foo4 : private1 +> : ^^^^^^^^ +>param : private1 +> : ^^^^^^^^ + } + + // Both - with annotation + get foo5(): private1 { +>foo5 : private1 +> : ^^^^^^^^ + + return; + } + set foo5(param: private1) { +>foo5 : private1 +> : ^^^^^^^^ +>param : private1 +> : ^^^^^^^^ + } + + // getter with annotation + get foo11(): public1 { +>foo11 : public1 +> : ^^^^^^^ + + return; + } + + // getter without annotation + get foo12() { +>foo12 : public1 +> : ^^^^^^^ + + return new public1(); +>new public1() : public1 +> : ^^^^^^^ +>public1 : typeof public1 +> : ^^^^^^^^^^^^^^ + } + + // setter with annotation + set foo13(param: public1) { +>foo13 : public1 +> : ^^^^^^^ +>param : public1 +> : ^^^^^^^ + } + + // Both - getter without annotation, setter with annotation + get foo14() { +>foo14 : public1 +> : ^^^^^^^ + + return new public1(); +>new public1() : public1 +> : ^^^^^^^ +>public1 : typeof public1 +> : ^^^^^^^^^^^^^^ + } + set foo14(param: public1) { +>foo14 : public1 +> : ^^^^^^^ +>param : public1 +> : ^^^^^^^ + } + + // Both - with annotation + get foo15(): public1 { +>foo15 : public1 +> : ^^^^^^^ + + return; + } + set foo15(param: public1) { +>foo15 : public1 +> : ^^^^^^^ +>param : public1 +> : ^^^^^^^ + } + + // getter with annotation + get foo111(): m2.public2 { +>foo111 : m2.public2 +> : ^^^^^^^^^^ +>m2 : any +> : ^^^ + + return; + } + + // getter without annotation + get foo112() { +>foo112 : m2.public2 +> : ^^^^^^^^^^ + + return new m2.public2(); +>new m2.public2() : m2.public2 +> : ^^^^^^^^^^ +>m2.public2 : typeof m2.public2 +> : ^^^^^^^^^^^^^^^^^ +>m2 : typeof m2 +> : ^^^^^^^^^ +>public2 : typeof m2.public2 +> : ^^^^^^^^^^^^^^^^^ + } + + // setter with annotation + set foo113(param: m2.public2) { +>foo113 : m2.public2 +> : ^^^^^^^^^^ +>param : m2.public2 +> : ^^^^^^^^^^ +>m2 : any +> : ^^^ + } + + // Both - getter without annotation, setter with annotation + get foo114() { +>foo114 : m2.public2 +> : ^^^^^^^^^^ + + return new m2.public2(); +>new m2.public2() : m2.public2 +> : ^^^^^^^^^^ +>m2.public2 : typeof m2.public2 +> : ^^^^^^^^^^^^^^^^^ +>m2 : typeof m2 +> : ^^^^^^^^^ +>public2 : typeof m2.public2 +> : ^^^^^^^^^^^^^^^^^ + } + set foo114(param: m2.public2) { +>foo114 : m2.public2 +> : ^^^^^^^^^^ +>param : m2.public2 +> : ^^^^^^^^^^ +>m2 : any +> : ^^^ + } + + // Both - with annotation + get foo115(): m2.public2 { +>foo115 : m2.public2 +> : ^^^^^^^^^^ +>m2 : any +> : ^^^ + + return; + } + set foo115(param: m2.public2) { +>foo115 : m2.public2 +> : ^^^^^^^^^^ +>param : m2.public2 +> : ^^^^^^^^^^ +>m2 : any +> : ^^^ + } + } +} + diff --git a/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorParameterOfFunction(target=es2015).js b/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorParameterOfFunction(target=es2015).js new file mode 100644 index 0000000000000..091906162df11 --- /dev/null +++ b/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorParameterOfFunction(target=es2015).js @@ -0,0 +1,114 @@ +//// [tests/cases/compiler/declFileTypeAnnotationVisibilityErrorParameterOfFunction.ts] //// + +//// [declFileTypeAnnotationVisibilityErrorParameterOfFunction.ts] +namespace m { + class private1 { + } + + export class public1 { + } + + // Directly using names from this module + function foo1(param: private1) { + } + function foo2(param = new private1()) { + } + + export function foo3(param : private1) { + } + export function foo4(param = new private1()) { + } + + function foo11(param: public1) { + } + function foo12(param = new public1()) { + } + + export function foo13(param: public1) { + } + export function foo14(param = new public1()) { + } + + namespace m2 { + export class public2 { + } + } + + function foo111(param: m2.public2) { + } + function foo112(param = new m2.public2()) { + } + + export function foo113(param: m2.public2) { + } + export function foo114(param = new m2.public2()) { + } +} + + +//// [declFileTypeAnnotationVisibilityErrorParameterOfFunction.js] +var m; +(function (m) { + class private1 { + } + class public1 { + } + m.public1 = public1; + // Directly using names from this module + function foo1(param) { + } + function foo2(param = new private1()) { + } + function foo3(param) { + } + m.foo3 = foo3; + function foo4(param = new private1()) { + } + m.foo4 = foo4; + function foo11(param) { + } + function foo12(param = new public1()) { + } + function foo13(param) { + } + m.foo13 = foo13; + function foo14(param = new public1()) { + } + m.foo14 = foo14; + let m2; + (function (m2) { + class public2 { + } + m2.public2 = public2; + })(m2 || (m2 = {})); + function foo111(param) { + } + function foo112(param = new m2.public2()) { + } + function foo113(param) { + } + m.foo113 = foo113; + function foo114(param = new m2.public2()) { + } + m.foo114 = foo114; +})(m || (m = {})); + + +//// [declFileTypeAnnotationVisibilityErrorParameterOfFunction.d.ts] +declare namespace m { + class private1 { + } + export class public1 { + } + export function foo3(param: private1): void; + export function foo4(param?: private1): void; + export function foo13(param: public1): void; + export function foo14(param?: public1): void; + namespace m2 { + class public2 { + } + } + export function foo113(param: m2.public2): void; + export function foo114(param?: m2.public2): void; + export {}; +} diff --git a/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorParameterOfFunction.symbols b/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorParameterOfFunction(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/declFileTypeAnnotationVisibilityErrorParameterOfFunction.symbols rename to tests/baselines/reference/declFileTypeAnnotationVisibilityErrorParameterOfFunction(target=es2015).symbols diff --git a/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorParameterOfFunction.types b/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorParameterOfFunction(target=es2015).types similarity index 100% rename from tests/baselines/reference/declFileTypeAnnotationVisibilityErrorParameterOfFunction.types rename to tests/baselines/reference/declFileTypeAnnotationVisibilityErrorParameterOfFunction(target=es2015).types diff --git a/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorParameterOfFunction.js b/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorParameterOfFunction(target=es5).js similarity index 100% rename from tests/baselines/reference/declFileTypeAnnotationVisibilityErrorParameterOfFunction.js rename to tests/baselines/reference/declFileTypeAnnotationVisibilityErrorParameterOfFunction(target=es5).js diff --git a/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorParameterOfFunction(target=es5).symbols b/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorParameterOfFunction(target=es5).symbols new file mode 100644 index 0000000000000..b1132430ac2bc --- /dev/null +++ b/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorParameterOfFunction(target=es5).symbols @@ -0,0 +1,96 @@ +//// [tests/cases/compiler/declFileTypeAnnotationVisibilityErrorParameterOfFunction.ts] //// + +=== declFileTypeAnnotationVisibilityErrorParameterOfFunction.ts === +namespace m { +>m : Symbol(m, Decl(declFileTypeAnnotationVisibilityErrorParameterOfFunction.ts, 0, 0)) + + class private1 { +>private1 : Symbol(private1, Decl(declFileTypeAnnotationVisibilityErrorParameterOfFunction.ts, 0, 13)) + } + + export class public1 { +>public1 : Symbol(public1, Decl(declFileTypeAnnotationVisibilityErrorParameterOfFunction.ts, 2, 5)) + } + + // Directly using names from this module + function foo1(param: private1) { +>foo1 : Symbol(foo1, Decl(declFileTypeAnnotationVisibilityErrorParameterOfFunction.ts, 5, 5)) +>param : Symbol(param, Decl(declFileTypeAnnotationVisibilityErrorParameterOfFunction.ts, 8, 18)) +>private1 : Symbol(private1, Decl(declFileTypeAnnotationVisibilityErrorParameterOfFunction.ts, 0, 13)) + } + function foo2(param = new private1()) { +>foo2 : Symbol(foo2, Decl(declFileTypeAnnotationVisibilityErrorParameterOfFunction.ts, 9, 5)) +>param : Symbol(param, Decl(declFileTypeAnnotationVisibilityErrorParameterOfFunction.ts, 10, 18)) +>private1 : Symbol(private1, Decl(declFileTypeAnnotationVisibilityErrorParameterOfFunction.ts, 0, 13)) + } + + export function foo3(param : private1) { +>foo3 : Symbol(foo3, Decl(declFileTypeAnnotationVisibilityErrorParameterOfFunction.ts, 11, 5)) +>param : Symbol(param, Decl(declFileTypeAnnotationVisibilityErrorParameterOfFunction.ts, 13, 25)) +>private1 : Symbol(private1, Decl(declFileTypeAnnotationVisibilityErrorParameterOfFunction.ts, 0, 13)) + } + export function foo4(param = new private1()) { +>foo4 : Symbol(foo4, Decl(declFileTypeAnnotationVisibilityErrorParameterOfFunction.ts, 14, 5)) +>param : Symbol(param, Decl(declFileTypeAnnotationVisibilityErrorParameterOfFunction.ts, 15, 25)) +>private1 : Symbol(private1, Decl(declFileTypeAnnotationVisibilityErrorParameterOfFunction.ts, 0, 13)) + } + + function foo11(param: public1) { +>foo11 : Symbol(foo11, Decl(declFileTypeAnnotationVisibilityErrorParameterOfFunction.ts, 16, 5)) +>param : Symbol(param, Decl(declFileTypeAnnotationVisibilityErrorParameterOfFunction.ts, 18, 19)) +>public1 : Symbol(public1, Decl(declFileTypeAnnotationVisibilityErrorParameterOfFunction.ts, 2, 5)) + } + function foo12(param = new public1()) { +>foo12 : Symbol(foo12, Decl(declFileTypeAnnotationVisibilityErrorParameterOfFunction.ts, 19, 5)) +>param : Symbol(param, Decl(declFileTypeAnnotationVisibilityErrorParameterOfFunction.ts, 20, 19)) +>public1 : Symbol(public1, Decl(declFileTypeAnnotationVisibilityErrorParameterOfFunction.ts, 2, 5)) + } + + export function foo13(param: public1) { +>foo13 : Symbol(foo13, Decl(declFileTypeAnnotationVisibilityErrorParameterOfFunction.ts, 21, 5)) +>param : Symbol(param, Decl(declFileTypeAnnotationVisibilityErrorParameterOfFunction.ts, 23, 26)) +>public1 : Symbol(public1, Decl(declFileTypeAnnotationVisibilityErrorParameterOfFunction.ts, 2, 5)) + } + export function foo14(param = new public1()) { +>foo14 : Symbol(foo14, Decl(declFileTypeAnnotationVisibilityErrorParameterOfFunction.ts, 24, 5)) +>param : Symbol(param, Decl(declFileTypeAnnotationVisibilityErrorParameterOfFunction.ts, 25, 26)) +>public1 : Symbol(public1, Decl(declFileTypeAnnotationVisibilityErrorParameterOfFunction.ts, 2, 5)) + } + + namespace m2 { +>m2 : Symbol(m2, Decl(declFileTypeAnnotationVisibilityErrorParameterOfFunction.ts, 26, 5)) + + export class public2 { +>public2 : Symbol(public2, Decl(declFileTypeAnnotationVisibilityErrorParameterOfFunction.ts, 28, 18)) + } + } + + function foo111(param: m2.public2) { +>foo111 : Symbol(foo111, Decl(declFileTypeAnnotationVisibilityErrorParameterOfFunction.ts, 31, 5)) +>param : Symbol(param, Decl(declFileTypeAnnotationVisibilityErrorParameterOfFunction.ts, 33, 20)) +>m2 : Symbol(m2, Decl(declFileTypeAnnotationVisibilityErrorParameterOfFunction.ts, 26, 5)) +>public2 : Symbol(m2.public2, Decl(declFileTypeAnnotationVisibilityErrorParameterOfFunction.ts, 28, 18)) + } + function foo112(param = new m2.public2()) { +>foo112 : Symbol(foo112, Decl(declFileTypeAnnotationVisibilityErrorParameterOfFunction.ts, 34, 5)) +>param : Symbol(param, Decl(declFileTypeAnnotationVisibilityErrorParameterOfFunction.ts, 35, 20)) +>m2.public2 : Symbol(m2.public2, Decl(declFileTypeAnnotationVisibilityErrorParameterOfFunction.ts, 28, 18)) +>m2 : Symbol(m2, Decl(declFileTypeAnnotationVisibilityErrorParameterOfFunction.ts, 26, 5)) +>public2 : Symbol(m2.public2, Decl(declFileTypeAnnotationVisibilityErrorParameterOfFunction.ts, 28, 18)) + } + + export function foo113(param: m2.public2) { +>foo113 : Symbol(foo113, Decl(declFileTypeAnnotationVisibilityErrorParameterOfFunction.ts, 36, 5)) +>param : Symbol(param, Decl(declFileTypeAnnotationVisibilityErrorParameterOfFunction.ts, 38, 27)) +>m2 : Symbol(m2, Decl(declFileTypeAnnotationVisibilityErrorParameterOfFunction.ts, 26, 5)) +>public2 : Symbol(m2.public2, Decl(declFileTypeAnnotationVisibilityErrorParameterOfFunction.ts, 28, 18)) + } + export function foo114(param = new m2.public2()) { +>foo114 : Symbol(foo114, Decl(declFileTypeAnnotationVisibilityErrorParameterOfFunction.ts, 39, 5)) +>param : Symbol(param, Decl(declFileTypeAnnotationVisibilityErrorParameterOfFunction.ts, 40, 27)) +>m2.public2 : Symbol(m2.public2, Decl(declFileTypeAnnotationVisibilityErrorParameterOfFunction.ts, 28, 18)) +>m2 : Symbol(m2, Decl(declFileTypeAnnotationVisibilityErrorParameterOfFunction.ts, 26, 5)) +>public2 : Symbol(m2.public2, Decl(declFileTypeAnnotationVisibilityErrorParameterOfFunction.ts, 28, 18)) + } +} + diff --git a/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorParameterOfFunction(target=es5).types b/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorParameterOfFunction(target=es5).types new file mode 100644 index 0000000000000..28c4b653656a5 --- /dev/null +++ b/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorParameterOfFunction(target=es5).types @@ -0,0 +1,143 @@ +//// [tests/cases/compiler/declFileTypeAnnotationVisibilityErrorParameterOfFunction.ts] //// + +=== declFileTypeAnnotationVisibilityErrorParameterOfFunction.ts === +namespace m { +>m : typeof m +> : ^^^^^^^^ + + class private1 { +>private1 : private1 +> : ^^^^^^^^ + } + + export class public1 { +>public1 : public1 +> : ^^^^^^^ + } + + // Directly using names from this module + function foo1(param: private1) { +>foo1 : (param: private1) => void +> : ^ ^^ ^^^^^^^^^ +>param : private1 +> : ^^^^^^^^ + } + function foo2(param = new private1()) { +>foo2 : (param?: private1) => void +> : ^ ^^^^^^^^^^^^^^^^^^^^ +>param : private1 +> : ^^^^^^^^ +>new private1() : private1 +> : ^^^^^^^^ +>private1 : typeof private1 +> : ^^^^^^^^^^^^^^^ + } + + export function foo3(param : private1) { +>foo3 : (param: private1) => void +> : ^ ^^ ^^^^^^^^^ +>param : private1 +> : ^^^^^^^^ + } + export function foo4(param = new private1()) { +>foo4 : (param?: private1) => void +> : ^ ^^^^^^^^^^^^^^^^^^^^ +>param : private1 +> : ^^^^^^^^ +>new private1() : private1 +> : ^^^^^^^^ +>private1 : typeof private1 +> : ^^^^^^^^^^^^^^^ + } + + function foo11(param: public1) { +>foo11 : (param: public1) => void +> : ^ ^^ ^^^^^^^^^ +>param : public1 +> : ^^^^^^^ + } + function foo12(param = new public1()) { +>foo12 : (param?: public1) => void +> : ^ ^^^^^^^^^^^^^^^^^^^ +>param : public1 +> : ^^^^^^^ +>new public1() : public1 +> : ^^^^^^^ +>public1 : typeof public1 +> : ^^^^^^^^^^^^^^ + } + + export function foo13(param: public1) { +>foo13 : (param: public1) => void +> : ^ ^^ ^^^^^^^^^ +>param : public1 +> : ^^^^^^^ + } + export function foo14(param = new public1()) { +>foo14 : (param?: public1) => void +> : ^ ^^^^^^^^^^^^^^^^^^^ +>param : public1 +> : ^^^^^^^ +>new public1() : public1 +> : ^^^^^^^ +>public1 : typeof public1 +> : ^^^^^^^^^^^^^^ + } + + namespace m2 { +>m2 : typeof m2 +> : ^^^^^^^^^ + + export class public2 { +>public2 : public2 +> : ^^^^^^^ + } + } + + function foo111(param: m2.public2) { +>foo111 : (param: m2.public2) => void +> : ^ ^^ ^^^^^^^^^ +>param : m2.public2 +> : ^^^^^^^^^^ +>m2 : any +> : ^^^ + } + function foo112(param = new m2.public2()) { +>foo112 : (param?: m2.public2) => void +> : ^ ^^^^^^^^^^^^^^^^^^^^^^ +>param : m2.public2 +> : ^^^^^^^^^^ +>new m2.public2() : m2.public2 +> : ^^^^^^^^^^ +>m2.public2 : typeof m2.public2 +> : ^^^^^^^^^^^^^^^^^ +>m2 : typeof m2 +> : ^^^^^^^^^ +>public2 : typeof m2.public2 +> : ^^^^^^^^^^^^^^^^^ + } + + export function foo113(param: m2.public2) { +>foo113 : (param: m2.public2) => void +> : ^ ^^ ^^^^^^^^^ +>param : m2.public2 +> : ^^^^^^^^^^ +>m2 : any +> : ^^^ + } + export function foo114(param = new m2.public2()) { +>foo114 : (param?: m2.public2) => void +> : ^ ^^^^^^^^^^^^^^^^^^^^^^ +>param : m2.public2 +> : ^^^^^^^^^^ +>new m2.public2() : m2.public2 +> : ^^^^^^^^^^ +>m2.public2 : typeof m2.public2 +> : ^^^^^^^^^^^^^^^^^ +>m2 : typeof m2 +> : ^^^^^^^^^ +>public2 : typeof m2.public2 +> : ^^^^^^^^^^^^^^^^^ + } +} + diff --git a/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorReturnTypeOfFunction(target=es2015).js b/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorReturnTypeOfFunction(target=es2015).js new file mode 100644 index 0000000000000..7c706c4740b78 --- /dev/null +++ b/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorReturnTypeOfFunction(target=es2015).js @@ -0,0 +1,138 @@ +//// [tests/cases/compiler/declFileTypeAnnotationVisibilityErrorReturnTypeOfFunction.ts] //// + +//// [declFileTypeAnnotationVisibilityErrorReturnTypeOfFunction.ts] +namespace m { + class private1 { + } + + export class public1 { + } + + // Directly using names from this module + function foo1(): private1 { + return; + } + function foo2() { + return new private1(); + } + + export function foo3(): private1 { + return; + } + export function foo4() { + return new private1(); + } + + function foo11(): public1 { + return; + } + function foo12() { + return new public1(); + } + + export function foo13(): public1 { + return; + } + export function foo14() { + return new public1(); + } + + namespace m2 { + export class public2 { + } + } + + function foo111(): m2.public2 { + return; + } + function foo112() { + return new m2.public2(); + } + + export function foo113(): m2.public2 { + return; + } + export function foo114() { + return new m2.public2(); + } +} + + +//// [declFileTypeAnnotationVisibilityErrorReturnTypeOfFunction.js] +var m; +(function (m) { + class private1 { + } + class public1 { + } + m.public1 = public1; + // Directly using names from this module + function foo1() { + return; + } + function foo2() { + return new private1(); + } + function foo3() { + return; + } + m.foo3 = foo3; + function foo4() { + return new private1(); + } + m.foo4 = foo4; + function foo11() { + return; + } + function foo12() { + return new public1(); + } + function foo13() { + return; + } + m.foo13 = foo13; + function foo14() { + return new public1(); + } + m.foo14 = foo14; + let m2; + (function (m2) { + class public2 { + } + m2.public2 = public2; + })(m2 || (m2 = {})); + function foo111() { + return; + } + function foo112() { + return new m2.public2(); + } + function foo113() { + return; + } + m.foo113 = foo113; + function foo114() { + return new m2.public2(); + } + m.foo114 = foo114; +})(m || (m = {})); + + +//// [declFileTypeAnnotationVisibilityErrorReturnTypeOfFunction.d.ts] +declare namespace m { + class private1 { + } + export class public1 { + } + export function foo3(): private1; + export function foo4(): private1; + export function foo13(): public1; + export function foo14(): public1; + namespace m2 { + class public2 { + } + } + export function foo113(): m2.public2; + export function foo114(): m2.public2; + export {}; +} diff --git a/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorReturnTypeOfFunction.symbols b/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorReturnTypeOfFunction(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/declFileTypeAnnotationVisibilityErrorReturnTypeOfFunction.symbols rename to tests/baselines/reference/declFileTypeAnnotationVisibilityErrorReturnTypeOfFunction(target=es2015).symbols diff --git a/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorReturnTypeOfFunction.types b/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorReturnTypeOfFunction(target=es2015).types similarity index 100% rename from tests/baselines/reference/declFileTypeAnnotationVisibilityErrorReturnTypeOfFunction.types rename to tests/baselines/reference/declFileTypeAnnotationVisibilityErrorReturnTypeOfFunction(target=es2015).types diff --git a/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorReturnTypeOfFunction.js b/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorReturnTypeOfFunction(target=es5).js similarity index 100% rename from tests/baselines/reference/declFileTypeAnnotationVisibilityErrorReturnTypeOfFunction.js rename to tests/baselines/reference/declFileTypeAnnotationVisibilityErrorReturnTypeOfFunction(target=es5).js diff --git a/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorReturnTypeOfFunction(target=es5).symbols b/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorReturnTypeOfFunction(target=es5).symbols new file mode 100644 index 0000000000000..86293aefe05fa --- /dev/null +++ b/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorReturnTypeOfFunction(target=es5).symbols @@ -0,0 +1,108 @@ +//// [tests/cases/compiler/declFileTypeAnnotationVisibilityErrorReturnTypeOfFunction.ts] //// + +=== declFileTypeAnnotationVisibilityErrorReturnTypeOfFunction.ts === +namespace m { +>m : Symbol(m, Decl(declFileTypeAnnotationVisibilityErrorReturnTypeOfFunction.ts, 0, 0)) + + class private1 { +>private1 : Symbol(private1, Decl(declFileTypeAnnotationVisibilityErrorReturnTypeOfFunction.ts, 0, 13)) + } + + export class public1 { +>public1 : Symbol(public1, Decl(declFileTypeAnnotationVisibilityErrorReturnTypeOfFunction.ts, 2, 5)) + } + + // Directly using names from this module + function foo1(): private1 { +>foo1 : Symbol(foo1, Decl(declFileTypeAnnotationVisibilityErrorReturnTypeOfFunction.ts, 5, 5)) +>private1 : Symbol(private1, Decl(declFileTypeAnnotationVisibilityErrorReturnTypeOfFunction.ts, 0, 13)) + + return; + } + function foo2() { +>foo2 : Symbol(foo2, Decl(declFileTypeAnnotationVisibilityErrorReturnTypeOfFunction.ts, 10, 5)) + + return new private1(); +>private1 : Symbol(private1, Decl(declFileTypeAnnotationVisibilityErrorReturnTypeOfFunction.ts, 0, 13)) + } + + export function foo3(): private1 { +>foo3 : Symbol(foo3, Decl(declFileTypeAnnotationVisibilityErrorReturnTypeOfFunction.ts, 13, 5)) +>private1 : Symbol(private1, Decl(declFileTypeAnnotationVisibilityErrorReturnTypeOfFunction.ts, 0, 13)) + + return; + } + export function foo4() { +>foo4 : Symbol(foo4, Decl(declFileTypeAnnotationVisibilityErrorReturnTypeOfFunction.ts, 17, 5)) + + return new private1(); +>private1 : Symbol(private1, Decl(declFileTypeAnnotationVisibilityErrorReturnTypeOfFunction.ts, 0, 13)) + } + + function foo11(): public1 { +>foo11 : Symbol(foo11, Decl(declFileTypeAnnotationVisibilityErrorReturnTypeOfFunction.ts, 20, 5)) +>public1 : Symbol(public1, Decl(declFileTypeAnnotationVisibilityErrorReturnTypeOfFunction.ts, 2, 5)) + + return; + } + function foo12() { +>foo12 : Symbol(foo12, Decl(declFileTypeAnnotationVisibilityErrorReturnTypeOfFunction.ts, 24, 5)) + + return new public1(); +>public1 : Symbol(public1, Decl(declFileTypeAnnotationVisibilityErrorReturnTypeOfFunction.ts, 2, 5)) + } + + export function foo13(): public1 { +>foo13 : Symbol(foo13, Decl(declFileTypeAnnotationVisibilityErrorReturnTypeOfFunction.ts, 27, 5)) +>public1 : Symbol(public1, Decl(declFileTypeAnnotationVisibilityErrorReturnTypeOfFunction.ts, 2, 5)) + + return; + } + export function foo14() { +>foo14 : Symbol(foo14, Decl(declFileTypeAnnotationVisibilityErrorReturnTypeOfFunction.ts, 31, 5)) + + return new public1(); +>public1 : Symbol(public1, Decl(declFileTypeAnnotationVisibilityErrorReturnTypeOfFunction.ts, 2, 5)) + } + + namespace m2 { +>m2 : Symbol(m2, Decl(declFileTypeAnnotationVisibilityErrorReturnTypeOfFunction.ts, 34, 5)) + + export class public2 { +>public2 : Symbol(public2, Decl(declFileTypeAnnotationVisibilityErrorReturnTypeOfFunction.ts, 36, 18)) + } + } + + function foo111(): m2.public2 { +>foo111 : Symbol(foo111, Decl(declFileTypeAnnotationVisibilityErrorReturnTypeOfFunction.ts, 39, 5)) +>m2 : Symbol(m2, Decl(declFileTypeAnnotationVisibilityErrorReturnTypeOfFunction.ts, 34, 5)) +>public2 : Symbol(m2.public2, Decl(declFileTypeAnnotationVisibilityErrorReturnTypeOfFunction.ts, 36, 18)) + + return; + } + function foo112() { +>foo112 : Symbol(foo112, Decl(declFileTypeAnnotationVisibilityErrorReturnTypeOfFunction.ts, 43, 5)) + + return new m2.public2(); +>m2.public2 : Symbol(m2.public2, Decl(declFileTypeAnnotationVisibilityErrorReturnTypeOfFunction.ts, 36, 18)) +>m2 : Symbol(m2, Decl(declFileTypeAnnotationVisibilityErrorReturnTypeOfFunction.ts, 34, 5)) +>public2 : Symbol(m2.public2, Decl(declFileTypeAnnotationVisibilityErrorReturnTypeOfFunction.ts, 36, 18)) + } + + export function foo113(): m2.public2 { +>foo113 : Symbol(foo113, Decl(declFileTypeAnnotationVisibilityErrorReturnTypeOfFunction.ts, 46, 5)) +>m2 : Symbol(m2, Decl(declFileTypeAnnotationVisibilityErrorReturnTypeOfFunction.ts, 34, 5)) +>public2 : Symbol(m2.public2, Decl(declFileTypeAnnotationVisibilityErrorReturnTypeOfFunction.ts, 36, 18)) + + return; + } + export function foo114() { +>foo114 : Symbol(foo114, Decl(declFileTypeAnnotationVisibilityErrorReturnTypeOfFunction.ts, 50, 5)) + + return new m2.public2(); +>m2.public2 : Symbol(m2.public2, Decl(declFileTypeAnnotationVisibilityErrorReturnTypeOfFunction.ts, 36, 18)) +>m2 : Symbol(m2, Decl(declFileTypeAnnotationVisibilityErrorReturnTypeOfFunction.ts, 34, 5)) +>public2 : Symbol(m2.public2, Decl(declFileTypeAnnotationVisibilityErrorReturnTypeOfFunction.ts, 36, 18)) + } +} + diff --git a/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorReturnTypeOfFunction(target=es5).types b/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorReturnTypeOfFunction(target=es5).types new file mode 100644 index 0000000000000..99b97c5c0d7b1 --- /dev/null +++ b/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorReturnTypeOfFunction(target=es5).types @@ -0,0 +1,143 @@ +//// [tests/cases/compiler/declFileTypeAnnotationVisibilityErrorReturnTypeOfFunction.ts] //// + +=== declFileTypeAnnotationVisibilityErrorReturnTypeOfFunction.ts === +namespace m { +>m : typeof m +> : ^^^^^^^^ + + class private1 { +>private1 : private1 +> : ^^^^^^^^ + } + + export class public1 { +>public1 : public1 +> : ^^^^^^^ + } + + // Directly using names from this module + function foo1(): private1 { +>foo1 : () => private1 +> : ^^^^^^ + + return; + } + function foo2() { +>foo2 : () => private1 +> : ^^^^^^^^^^^^^^ + + return new private1(); +>new private1() : private1 +> : ^^^^^^^^ +>private1 : typeof private1 +> : ^^^^^^^^^^^^^^^ + } + + export function foo3(): private1 { +>foo3 : () => private1 +> : ^^^^^^ + + return; + } + export function foo4() { +>foo4 : () => private1 +> : ^^^^^^^^^^^^^^ + + return new private1(); +>new private1() : private1 +> : ^^^^^^^^ +>private1 : typeof private1 +> : ^^^^^^^^^^^^^^^ + } + + function foo11(): public1 { +>foo11 : () => public1 +> : ^^^^^^ + + return; + } + function foo12() { +>foo12 : () => public1 +> : ^^^^^^^^^^^^^ + + return new public1(); +>new public1() : public1 +> : ^^^^^^^ +>public1 : typeof public1 +> : ^^^^^^^^^^^^^^ + } + + export function foo13(): public1 { +>foo13 : () => public1 +> : ^^^^^^ + + return; + } + export function foo14() { +>foo14 : () => public1 +> : ^^^^^^^^^^^^^ + + return new public1(); +>new public1() : public1 +> : ^^^^^^^ +>public1 : typeof public1 +> : ^^^^^^^^^^^^^^ + } + + namespace m2 { +>m2 : typeof m2 +> : ^^^^^^^^^ + + export class public2 { +>public2 : public2 +> : ^^^^^^^ + } + } + + function foo111(): m2.public2 { +>foo111 : () => m2.public2 +> : ^^^^^^ +>m2 : any +> : ^^^ + + return; + } + function foo112() { +>foo112 : () => m2.public2 +> : ^^^^^^^^^^^^^^^^ + + return new m2.public2(); +>new m2.public2() : m2.public2 +> : ^^^^^^^^^^ +>m2.public2 : typeof m2.public2 +> : ^^^^^^^^^^^^^^^^^ +>m2 : typeof m2 +> : ^^^^^^^^^ +>public2 : typeof m2.public2 +> : ^^^^^^^^^^^^^^^^^ + } + + export function foo113(): m2.public2 { +>foo113 : () => m2.public2 +> : ^^^^^^ +>m2 : any +> : ^^^ + + return; + } + export function foo114() { +>foo114 : () => m2.public2 +> : ^^^^^^^^^^^^^^^^ + + return new m2.public2(); +>new m2.public2() : m2.public2 +> : ^^^^^^^^^^ +>m2.public2 : typeof m2.public2 +> : ^^^^^^^^^^^^^^^^^ +>m2 : typeof m2 +> : ^^^^^^^^^ +>public2 : typeof m2.public2 +> : ^^^^^^^^^^^^^^^^^ + } +} + diff --git a/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorTypeAlias(target=es2015).js b/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorTypeAlias(target=es2015).js new file mode 100644 index 0000000000000..723db2c161d2f --- /dev/null +++ b/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorTypeAlias(target=es2015).js @@ -0,0 +1,113 @@ +//// [tests/cases/compiler/declFileTypeAnnotationVisibilityErrorTypeAlias.ts] //// + +//// [declFileTypeAnnotationVisibilityErrorTypeAlias.ts] +interface Window { + someMethod(); +} + +namespace M { + type W = Window | string; + export namespace N { + export class Window { } + export var p: W; // Should report error that W is private + } +} + +namespace M1 { + export type W = Window | string; + export namespace N { + export class Window { } + export var p: W; // No error + } +} + +namespace M2 { + class private1 { + } + class public1 { + } + namespace m3 { + export class public1 { + } + } + + type t1 = private1; + export type t2 = private1; // error + + type t11 = public1; + export type t12 = public1; + + type t111 = m3.public1; + export type t112 = m3.public1; // error +} + + +//// [declFileTypeAnnotationVisibilityErrorTypeAlias.js] +var M; +(function (M) { + let N; + (function (N) { + class Window { + } + N.Window = Window; + })(N = M.N || (M.N = {})); +})(M || (M = {})); +var M1; +(function (M1) { + let N; + (function (N) { + class Window { + } + N.Window = Window; + })(N = M1.N || (M1.N = {})); +})(M1 || (M1 = {})); +var M2; +(function (M2) { + class private1 { + } + class public1 { + } + let m3; + (function (m3) { + class public1 { + } + m3.public1 = public1; + })(m3 || (m3 = {})); +})(M2 || (M2 = {})); + + +//// [declFileTypeAnnotationVisibilityErrorTypeAlias.d.ts] +interface Window { + someMethod(): any; +} +declare namespace M { + type W = Window | string; + export namespace N { + class Window { + } + var p: W; + } + export {}; +} +declare namespace M1 { + type W = Window | string; + namespace N { + class Window { + } + var p: W; + } +} +declare namespace M2 { + class private1 { + } + class public1 { + } + namespace m3 { + class public1 { + } + } + export type t2 = private1; + export type t12 = public1; + export type t112 = m3.public1; + export {}; +} diff --git a/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorTypeAlias.symbols b/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorTypeAlias(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/declFileTypeAnnotationVisibilityErrorTypeAlias.symbols rename to tests/baselines/reference/declFileTypeAnnotationVisibilityErrorTypeAlias(target=es2015).symbols diff --git a/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorTypeAlias.types b/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorTypeAlias(target=es2015).types similarity index 100% rename from tests/baselines/reference/declFileTypeAnnotationVisibilityErrorTypeAlias.types rename to tests/baselines/reference/declFileTypeAnnotationVisibilityErrorTypeAlias(target=es2015).types diff --git a/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorTypeAlias.js b/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorTypeAlias(target=es5).js similarity index 100% rename from tests/baselines/reference/declFileTypeAnnotationVisibilityErrorTypeAlias.js rename to tests/baselines/reference/declFileTypeAnnotationVisibilityErrorTypeAlias(target=es5).js diff --git a/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorTypeAlias(target=es5).symbols b/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorTypeAlias(target=es5).symbols new file mode 100644 index 0000000000000..a1fe3ca1692c8 --- /dev/null +++ b/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorTypeAlias(target=es5).symbols @@ -0,0 +1,92 @@ +//// [tests/cases/compiler/declFileTypeAnnotationVisibilityErrorTypeAlias.ts] //// + +=== declFileTypeAnnotationVisibilityErrorTypeAlias.ts === +interface Window { +>Window : Symbol(Window, Decl(lib.dom.d.ts, --, --), Decl(lib.dom.d.ts, --, --), Decl(declFileTypeAnnotationVisibilityErrorTypeAlias.ts, 0, 0)) + + someMethod(); +>someMethod : Symbol(Window.someMethod, Decl(declFileTypeAnnotationVisibilityErrorTypeAlias.ts, 0, 18)) +} + +namespace M { +>M : Symbol(M, Decl(declFileTypeAnnotationVisibilityErrorTypeAlias.ts, 2, 1)) + + type W = Window | string; +>W : Symbol(W, Decl(declFileTypeAnnotationVisibilityErrorTypeAlias.ts, 4, 13)) +>Window : Symbol(Window, Decl(lib.dom.d.ts, --, --), Decl(lib.dom.d.ts, --, --), Decl(declFileTypeAnnotationVisibilityErrorTypeAlias.ts, 0, 0)) + + export namespace N { +>N : Symbol(N, Decl(declFileTypeAnnotationVisibilityErrorTypeAlias.ts, 5, 29)) + + export class Window { } +>Window : Symbol(Window, Decl(declFileTypeAnnotationVisibilityErrorTypeAlias.ts, 6, 24)) + + export var p: W; // Should report error that W is private +>p : Symbol(p, Decl(declFileTypeAnnotationVisibilityErrorTypeAlias.ts, 8, 18)) +>W : Symbol(W, Decl(declFileTypeAnnotationVisibilityErrorTypeAlias.ts, 4, 13)) + } +} + +namespace M1 { +>M1 : Symbol(M1, Decl(declFileTypeAnnotationVisibilityErrorTypeAlias.ts, 10, 1)) + + export type W = Window | string; +>W : Symbol(W, Decl(declFileTypeAnnotationVisibilityErrorTypeAlias.ts, 12, 14)) +>Window : Symbol(Window, Decl(lib.dom.d.ts, --, --), Decl(lib.dom.d.ts, --, --), Decl(declFileTypeAnnotationVisibilityErrorTypeAlias.ts, 0, 0)) + + export namespace N { +>N : Symbol(N, Decl(declFileTypeAnnotationVisibilityErrorTypeAlias.ts, 13, 36)) + + export class Window { } +>Window : Symbol(Window, Decl(declFileTypeAnnotationVisibilityErrorTypeAlias.ts, 14, 24)) + + export var p: W; // No error +>p : Symbol(p, Decl(declFileTypeAnnotationVisibilityErrorTypeAlias.ts, 16, 18)) +>W : Symbol(W, Decl(declFileTypeAnnotationVisibilityErrorTypeAlias.ts, 12, 14)) + } +} + +namespace M2 { +>M2 : Symbol(M2, Decl(declFileTypeAnnotationVisibilityErrorTypeAlias.ts, 18, 1)) + + class private1 { +>private1 : Symbol(private1, Decl(declFileTypeAnnotationVisibilityErrorTypeAlias.ts, 20, 14)) + } + class public1 { +>public1 : Symbol(public1, Decl(declFileTypeAnnotationVisibilityErrorTypeAlias.ts, 22, 5)) + } + namespace m3 { +>m3 : Symbol(m3, Decl(declFileTypeAnnotationVisibilityErrorTypeAlias.ts, 24, 5)) + + export class public1 { +>public1 : Symbol(public1, Decl(declFileTypeAnnotationVisibilityErrorTypeAlias.ts, 25, 18)) + } + } + + type t1 = private1; +>t1 : Symbol(t1, Decl(declFileTypeAnnotationVisibilityErrorTypeAlias.ts, 28, 5)) +>private1 : Symbol(private1, Decl(declFileTypeAnnotationVisibilityErrorTypeAlias.ts, 20, 14)) + + export type t2 = private1; // error +>t2 : Symbol(t2, Decl(declFileTypeAnnotationVisibilityErrorTypeAlias.ts, 30, 23)) +>private1 : Symbol(private1, Decl(declFileTypeAnnotationVisibilityErrorTypeAlias.ts, 20, 14)) + + type t11 = public1; +>t11 : Symbol(t11, Decl(declFileTypeAnnotationVisibilityErrorTypeAlias.ts, 31, 30)) +>public1 : Symbol(public1, Decl(declFileTypeAnnotationVisibilityErrorTypeAlias.ts, 22, 5)) + + export type t12 = public1; +>t12 : Symbol(t12, Decl(declFileTypeAnnotationVisibilityErrorTypeAlias.ts, 33, 23)) +>public1 : Symbol(public1, Decl(declFileTypeAnnotationVisibilityErrorTypeAlias.ts, 22, 5)) + + type t111 = m3.public1; +>t111 : Symbol(t111, Decl(declFileTypeAnnotationVisibilityErrorTypeAlias.ts, 34, 30)) +>m3 : Symbol(m3, Decl(declFileTypeAnnotationVisibilityErrorTypeAlias.ts, 24, 5)) +>public1 : Symbol(m3.public1, Decl(declFileTypeAnnotationVisibilityErrorTypeAlias.ts, 25, 18)) + + export type t112 = m3.public1; // error +>t112 : Symbol(t112, Decl(declFileTypeAnnotationVisibilityErrorTypeAlias.ts, 36, 27)) +>m3 : Symbol(m3, Decl(declFileTypeAnnotationVisibilityErrorTypeAlias.ts, 24, 5)) +>public1 : Symbol(m3.public1, Decl(declFileTypeAnnotationVisibilityErrorTypeAlias.ts, 25, 18)) +} + diff --git a/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorTypeAlias(target=es5).types b/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorTypeAlias(target=es5).types new file mode 100644 index 0000000000000..bd2d713a469e4 --- /dev/null +++ b/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorTypeAlias(target=es5).types @@ -0,0 +1,104 @@ +//// [tests/cases/compiler/declFileTypeAnnotationVisibilityErrorTypeAlias.ts] //// + +=== declFileTypeAnnotationVisibilityErrorTypeAlias.ts === +interface Window { + someMethod(); +>someMethod : () => any +> : ^^^^^^^^^ +} + +namespace M { +>M : typeof M +> : ^^^^^^^^ + + type W = Window | string; +>W : W +> : ^ + + export namespace N { +>N : typeof N +> : ^^^^^^^^ + + export class Window { } +>Window : Window +> : ^^^^^^ + + export var p: W; // Should report error that W is private +>p : W +> : ^ + } +} + +namespace M1 { +>M1 : typeof M1 +> : ^^^^^^^^^ + + export type W = Window | string; +>W : W +> : ^ + + export namespace N { +>N : typeof N +> : ^^^^^^^^ + + export class Window { } +>Window : Window +> : ^^^^^^ + + export var p: W; // No error +>p : W +> : ^ + } +} + +namespace M2 { +>M2 : typeof M2 +> : ^^^^^^^^^ + + class private1 { +>private1 : private1 +> : ^^^^^^^^ + } + class public1 { +>public1 : public1 +> : ^^^^^^^ + } + namespace m3 { +>m3 : typeof m3 +> : ^^^^^^^^^ + + export class public1 { +>public1 : public1 +> : ^^^^^^^ + } + } + + type t1 = private1; +>t1 : private1 +> : ^^^^^^^^ + + export type t2 = private1; // error +>t2 : private1 +> : ^^^^^^^^ + + type t11 = public1; +>t11 : public1 +> : ^^^^^^^ + + export type t12 = public1; +>t12 : public1 +> : ^^^^^^^ + + type t111 = m3.public1; +>t111 : m3.public1 +> : ^^^^^^^^^^ +>m3 : any +> : ^^^ + + export type t112 = m3.public1; // error +>t112 : m3.public1 +> : ^^^^^^^^^^ +>m3 : any +> : ^^^ +} + diff --git a/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorTypeLiteral(target=es2015).js b/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorTypeLiteral(target=es2015).js new file mode 100644 index 0000000000000..dc57bf6abd80b --- /dev/null +++ b/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorTypeLiteral(target=es2015).js @@ -0,0 +1,96 @@ +//// [tests/cases/compiler/declFileTypeAnnotationVisibilityErrorTypeLiteral.ts] //// + +//// [declFileTypeAnnotationVisibilityErrorTypeLiteral.ts] +namespace m { + class private1 { + } + namespace m2 { + export class public1 { + } + } + + export var x: { + x: private1; + y: m2.public1; + (): m2.public1[]; + method(): private1; + [n: number]: private1; + [s: string]: m2.public1; + }; + export var x2 = { + x: new private1(), + y: new m2.public1(), + method() { + return new private1(); + } + }; + export var x3 = x; + + // Function type + export var y: (a: private1) => m2.public1; + export var y2 = y; + + // constructor type + export var z: new (a: private1) => m2.public1; + export var z2 = z; +} + +//// [declFileTypeAnnotationVisibilityErrorTypeLiteral.js] +var m; +(function (m) { + class private1 { + } + let m2; + (function (m2) { + class public1 { + } + m2.public1 = public1; + })(m2 || (m2 = {})); + m.x2 = { + x: new private1(), + y: new m2.public1(), + method() { + return new private1(); + } + }; + m.x3 = m.x; + m.y2 = m.y; + m.z2 = m.z; +})(m || (m = {})); + + +//// [declFileTypeAnnotationVisibilityErrorTypeLiteral.d.ts] +declare namespace m { + class private1 { + } + namespace m2 { + class public1 { + } + } + export var x: { + x: private1; + y: m2.public1; + (): m2.public1[]; + method(): private1; + [n: number]: private1; + [s: string]: m2.public1; + }; + export var x2: { + x: private1; + y: m2.public1; + method(): private1; + }; + export var x3: { + (): m2.public1[]; + [n: number]: private1; + [s: string]: m2.public1; + x: private1; + y: m2.public1; + method(): private1; + }; + export var y: (a: private1) => m2.public1; + export var y2: (a: private1) => m2.public1; + export var z: new (a: private1) => m2.public1; + export var z2: new (a: private1) => m2.public1; + export {}; +} diff --git a/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorTypeLiteral.symbols b/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorTypeLiteral(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/declFileTypeAnnotationVisibilityErrorTypeLiteral.symbols rename to tests/baselines/reference/declFileTypeAnnotationVisibilityErrorTypeLiteral(target=es2015).symbols diff --git a/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorTypeLiteral.types b/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorTypeLiteral(target=es2015).types similarity index 100% rename from tests/baselines/reference/declFileTypeAnnotationVisibilityErrorTypeLiteral.types rename to tests/baselines/reference/declFileTypeAnnotationVisibilityErrorTypeLiteral(target=es2015).types diff --git a/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorTypeLiteral.js b/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorTypeLiteral(target=es5).js similarity index 100% rename from tests/baselines/reference/declFileTypeAnnotationVisibilityErrorTypeLiteral.js rename to tests/baselines/reference/declFileTypeAnnotationVisibilityErrorTypeLiteral(target=es5).js diff --git a/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorTypeLiteral(target=es5).symbols b/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorTypeLiteral(target=es5).symbols new file mode 100644 index 0000000000000..af402e9d0841e --- /dev/null +++ b/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorTypeLiteral(target=es5).symbols @@ -0,0 +1,95 @@ +//// [tests/cases/compiler/declFileTypeAnnotationVisibilityErrorTypeLiteral.ts] //// + +=== declFileTypeAnnotationVisibilityErrorTypeLiteral.ts === +namespace m { +>m : Symbol(m, Decl(declFileTypeAnnotationVisibilityErrorTypeLiteral.ts, 0, 0)) + + class private1 { +>private1 : Symbol(private1, Decl(declFileTypeAnnotationVisibilityErrorTypeLiteral.ts, 0, 13)) + } + namespace m2 { +>m2 : Symbol(m2, Decl(declFileTypeAnnotationVisibilityErrorTypeLiteral.ts, 2, 5)) + + export class public1 { +>public1 : Symbol(public1, Decl(declFileTypeAnnotationVisibilityErrorTypeLiteral.ts, 3, 18)) + } + } + + export var x: { +>x : Symbol(x, Decl(declFileTypeAnnotationVisibilityErrorTypeLiteral.ts, 8, 14)) + + x: private1; +>x : Symbol(x, Decl(declFileTypeAnnotationVisibilityErrorTypeLiteral.ts, 8, 19)) +>private1 : Symbol(private1, Decl(declFileTypeAnnotationVisibilityErrorTypeLiteral.ts, 0, 13)) + + y: m2.public1; +>y : Symbol(y, Decl(declFileTypeAnnotationVisibilityErrorTypeLiteral.ts, 9, 20)) +>m2 : Symbol(m2, Decl(declFileTypeAnnotationVisibilityErrorTypeLiteral.ts, 2, 5)) +>public1 : Symbol(m2.public1, Decl(declFileTypeAnnotationVisibilityErrorTypeLiteral.ts, 3, 18)) + + (): m2.public1[]; +>m2 : Symbol(m2, Decl(declFileTypeAnnotationVisibilityErrorTypeLiteral.ts, 2, 5)) +>public1 : Symbol(m2.public1, Decl(declFileTypeAnnotationVisibilityErrorTypeLiteral.ts, 3, 18)) + + method(): private1; +>method : Symbol(method, Decl(declFileTypeAnnotationVisibilityErrorTypeLiteral.ts, 11, 25)) +>private1 : Symbol(private1, Decl(declFileTypeAnnotationVisibilityErrorTypeLiteral.ts, 0, 13)) + + [n: number]: private1; +>n : Symbol(n, Decl(declFileTypeAnnotationVisibilityErrorTypeLiteral.ts, 13, 9)) +>private1 : Symbol(private1, Decl(declFileTypeAnnotationVisibilityErrorTypeLiteral.ts, 0, 13)) + + [s: string]: m2.public1; +>s : Symbol(s, Decl(declFileTypeAnnotationVisibilityErrorTypeLiteral.ts, 14, 9)) +>m2 : Symbol(m2, Decl(declFileTypeAnnotationVisibilityErrorTypeLiteral.ts, 2, 5)) +>public1 : Symbol(m2.public1, Decl(declFileTypeAnnotationVisibilityErrorTypeLiteral.ts, 3, 18)) + + }; + export var x2 = { +>x2 : Symbol(x2, Decl(declFileTypeAnnotationVisibilityErrorTypeLiteral.ts, 16, 14)) + + x: new private1(), +>x : Symbol(x, Decl(declFileTypeAnnotationVisibilityErrorTypeLiteral.ts, 16, 21)) +>private1 : Symbol(private1, Decl(declFileTypeAnnotationVisibilityErrorTypeLiteral.ts, 0, 13)) + + y: new m2.public1(), +>y : Symbol(y, Decl(declFileTypeAnnotationVisibilityErrorTypeLiteral.ts, 17, 26)) +>m2.public1 : Symbol(m2.public1, Decl(declFileTypeAnnotationVisibilityErrorTypeLiteral.ts, 3, 18)) +>m2 : Symbol(m2, Decl(declFileTypeAnnotationVisibilityErrorTypeLiteral.ts, 2, 5)) +>public1 : Symbol(m2.public1, Decl(declFileTypeAnnotationVisibilityErrorTypeLiteral.ts, 3, 18)) + + method() { +>method : Symbol(method, Decl(declFileTypeAnnotationVisibilityErrorTypeLiteral.ts, 18, 28)) + + return new private1(); +>private1 : Symbol(private1, Decl(declFileTypeAnnotationVisibilityErrorTypeLiteral.ts, 0, 13)) + } + }; + export var x3 = x; +>x3 : Symbol(x3, Decl(declFileTypeAnnotationVisibilityErrorTypeLiteral.ts, 23, 14)) +>x : Symbol(x, Decl(declFileTypeAnnotationVisibilityErrorTypeLiteral.ts, 8, 14)) + + // Function type + export var y: (a: private1) => m2.public1; +>y : Symbol(y, Decl(declFileTypeAnnotationVisibilityErrorTypeLiteral.ts, 26, 14)) +>a : Symbol(a, Decl(declFileTypeAnnotationVisibilityErrorTypeLiteral.ts, 26, 19)) +>private1 : Symbol(private1, Decl(declFileTypeAnnotationVisibilityErrorTypeLiteral.ts, 0, 13)) +>m2 : Symbol(m2, Decl(declFileTypeAnnotationVisibilityErrorTypeLiteral.ts, 2, 5)) +>public1 : Symbol(m2.public1, Decl(declFileTypeAnnotationVisibilityErrorTypeLiteral.ts, 3, 18)) + + export var y2 = y; +>y2 : Symbol(y2, Decl(declFileTypeAnnotationVisibilityErrorTypeLiteral.ts, 27, 14)) +>y : Symbol(y, Decl(declFileTypeAnnotationVisibilityErrorTypeLiteral.ts, 26, 14)) + + // constructor type + export var z: new (a: private1) => m2.public1; +>z : Symbol(z, Decl(declFileTypeAnnotationVisibilityErrorTypeLiteral.ts, 30, 14)) +>a : Symbol(a, Decl(declFileTypeAnnotationVisibilityErrorTypeLiteral.ts, 30, 23)) +>private1 : Symbol(private1, Decl(declFileTypeAnnotationVisibilityErrorTypeLiteral.ts, 0, 13)) +>m2 : Symbol(m2, Decl(declFileTypeAnnotationVisibilityErrorTypeLiteral.ts, 2, 5)) +>public1 : Symbol(m2.public1, Decl(declFileTypeAnnotationVisibilityErrorTypeLiteral.ts, 3, 18)) + + export var z2 = z; +>z2 : Symbol(z2, Decl(declFileTypeAnnotationVisibilityErrorTypeLiteral.ts, 31, 14)) +>z : Symbol(z, Decl(declFileTypeAnnotationVisibilityErrorTypeLiteral.ts, 30, 14)) +} diff --git a/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorTypeLiteral(target=es5).types b/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorTypeLiteral(target=es5).types new file mode 100644 index 0000000000000..1b13ddd93434d --- /dev/null +++ b/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorTypeLiteral(target=es5).types @@ -0,0 +1,127 @@ +//// [tests/cases/compiler/declFileTypeAnnotationVisibilityErrorTypeLiteral.ts] //// + +=== declFileTypeAnnotationVisibilityErrorTypeLiteral.ts === +namespace m { +>m : typeof m +> : ^^^^^^^^ + + class private1 { +>private1 : private1 +> : ^^^^^^^^ + } + namespace m2 { +>m2 : typeof m2 +> : ^^^^^^^^^ + + export class public1 { +>public1 : public1 +> : ^^^^^^^ + } + } + + export var x: { +>x : { (): m2.public1[]; [n: number]: private1; [s: string]: m2.public1; x: private1; y: m2.public1; method(): private1; } +> : ^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^ ^^^^^^^^^^^^ ^^^ + + x: private1; +>x : private1 +> : ^^^^^^^^ + + y: m2.public1; +>y : m2.public1 +> : ^^^^^^^^^^ +>m2 : any +> : ^^^ + + (): m2.public1[]; +>m2 : any +> : ^^^ + + method(): private1; +>method : () => private1 +> : ^^^^^^ + + [n: number]: private1; +>n : number +> : ^^^^^^ + + [s: string]: m2.public1; +>s : string +> : ^^^^^^ +>m2 : any +> : ^^^ + + }; + export var x2 = { +>x2 : { x: private1; y: m2.public1; method(): private1; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ x: new private1(), y: new m2.public1(), method() { return new private1(); } } : { x: private1; y: m2.public1; method(): private1; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + x: new private1(), +>x : private1 +> : ^^^^^^^^ +>new private1() : private1 +> : ^^^^^^^^ +>private1 : typeof private1 +> : ^^^^^^^^^^^^^^^ + + y: new m2.public1(), +>y : m2.public1 +> : ^^^^^^^^^^ +>new m2.public1() : m2.public1 +> : ^^^^^^^^^^ +>m2.public1 : typeof m2.public1 +> : ^^^^^^^^^^^^^^^^^ +>m2 : typeof m2 +> : ^^^^^^^^^ +>public1 : typeof m2.public1 +> : ^^^^^^^^^^^^^^^^^ + + method() { +>method : () => private1 +> : ^^^^^^^^^^^^^^ + + return new private1(); +>new private1() : private1 +> : ^^^^^^^^ +>private1 : typeof private1 +> : ^^^^^^^^^^^^^^^ + } + }; + export var x3 = x; +>x3 : { (): m2.public1[]; [n: number]: private1; [s: string]: m2.public1; x: private1; y: m2.public1; method(): private1; } +> : ^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^ ^^^^^^^^^^^^ ^^^ +>x : { (): m2.public1[]; [n: number]: private1; [s: string]: m2.public1; x: private1; y: m2.public1; method(): private1; } +> : ^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^ ^^^^^^^^^^^^ ^^^ + + // Function type + export var y: (a: private1) => m2.public1; +>y : (a: private1) => m2.public1 +> : ^ ^^ ^^^^^ +>a : private1 +> : ^^^^^^^^ +>m2 : any +> : ^^^ + + export var y2 = y; +>y2 : (a: private1) => m2.public1 +> : ^ ^^ ^^^^^ +>y : (a: private1) => m2.public1 +> : ^ ^^ ^^^^^ + + // constructor type + export var z: new (a: private1) => m2.public1; +>z : new (a: private1) => m2.public1 +> : ^^^^^ ^^ ^^^^^ +>a : private1 +> : ^^^^^^^^ +>m2 : any +> : ^^^ + + export var z2 = z; +>z2 : new (a: private1) => m2.public1 +> : ^^^^^ ^^ ^^^^^ +>z : new (a: private1) => m2.public1 +> : ^^^^^ ^^ ^^^^^ +} diff --git a/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorVariableDeclaration(target=es2015).js b/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorVariableDeclaration(target=es2015).js new file mode 100644 index 0000000000000..da28e0866e868 --- /dev/null +++ b/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorVariableDeclaration(target=es2015).js @@ -0,0 +1,81 @@ +//// [tests/cases/compiler/declFileTypeAnnotationVisibilityErrorVariableDeclaration.ts] //// + +//// [declFileTypeAnnotationVisibilityErrorVariableDeclaration.ts] +namespace m { + class private1 { + } + + export class public1 { + } + + // Directly using names from this module + var x: private1; + var y = new private1(); + + export var k: private1; + export var l = new private1(); + + var x2: public1; + var y2 = new public1(); + + export var k2: public1; + export var l2 = new public1(); + + namespace m2 { + export class public2 { + } + } + + var x3: m2.public2; + var y3 = new m2.public2(); + + export var k3: m2.public2; + export var l3 = new m2.public2(); +} + + +//// [declFileTypeAnnotationVisibilityErrorVariableDeclaration.js] +var m; +(function (m) { + class private1 { + } + class public1 { + } + m.public1 = public1; + // Directly using names from this module + var x; + var y = new private1(); + m.l = new private1(); + var x2; + var y2 = new public1(); + m.l2 = new public1(); + let m2; + (function (m2) { + class public2 { + } + m2.public2 = public2; + })(m2 || (m2 = {})); + var x3; + var y3 = new m2.public2(); + m.l3 = new m2.public2(); +})(m || (m = {})); + + +//// [declFileTypeAnnotationVisibilityErrorVariableDeclaration.d.ts] +declare namespace m { + class private1 { + } + export class public1 { + } + export var k: private1; + export var l: private1; + export var k2: public1; + export var l2: public1; + namespace m2 { + class public2 { + } + } + export var k3: m2.public2; + export var l3: m2.public2; + export {}; +} diff --git a/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorVariableDeclaration.symbols b/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorVariableDeclaration(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/declFileTypeAnnotationVisibilityErrorVariableDeclaration.symbols rename to tests/baselines/reference/declFileTypeAnnotationVisibilityErrorVariableDeclaration(target=es2015).symbols diff --git a/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorVariableDeclaration.types b/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorVariableDeclaration(target=es2015).types similarity index 100% rename from tests/baselines/reference/declFileTypeAnnotationVisibilityErrorVariableDeclaration.types rename to tests/baselines/reference/declFileTypeAnnotationVisibilityErrorVariableDeclaration(target=es2015).types diff --git a/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorVariableDeclaration.js b/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorVariableDeclaration(target=es5).js similarity index 100% rename from tests/baselines/reference/declFileTypeAnnotationVisibilityErrorVariableDeclaration.js rename to tests/baselines/reference/declFileTypeAnnotationVisibilityErrorVariableDeclaration(target=es5).js diff --git a/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorVariableDeclaration(target=es5).symbols b/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorVariableDeclaration(target=es5).symbols new file mode 100644 index 0000000000000..e36928749b2fa --- /dev/null +++ b/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorVariableDeclaration(target=es5).symbols @@ -0,0 +1,78 @@ +//// [tests/cases/compiler/declFileTypeAnnotationVisibilityErrorVariableDeclaration.ts] //// + +=== declFileTypeAnnotationVisibilityErrorVariableDeclaration.ts === +namespace m { +>m : Symbol(m, Decl(declFileTypeAnnotationVisibilityErrorVariableDeclaration.ts, 0, 0)) + + class private1 { +>private1 : Symbol(private1, Decl(declFileTypeAnnotationVisibilityErrorVariableDeclaration.ts, 0, 13)) + } + + export class public1 { +>public1 : Symbol(public1, Decl(declFileTypeAnnotationVisibilityErrorVariableDeclaration.ts, 2, 5)) + } + + // Directly using names from this module + var x: private1; +>x : Symbol(x, Decl(declFileTypeAnnotationVisibilityErrorVariableDeclaration.ts, 8, 7)) +>private1 : Symbol(private1, Decl(declFileTypeAnnotationVisibilityErrorVariableDeclaration.ts, 0, 13)) + + var y = new private1(); +>y : Symbol(y, Decl(declFileTypeAnnotationVisibilityErrorVariableDeclaration.ts, 9, 7)) +>private1 : Symbol(private1, Decl(declFileTypeAnnotationVisibilityErrorVariableDeclaration.ts, 0, 13)) + + export var k: private1; +>k : Symbol(k, Decl(declFileTypeAnnotationVisibilityErrorVariableDeclaration.ts, 11, 14)) +>private1 : Symbol(private1, Decl(declFileTypeAnnotationVisibilityErrorVariableDeclaration.ts, 0, 13)) + + export var l = new private1(); +>l : Symbol(l, Decl(declFileTypeAnnotationVisibilityErrorVariableDeclaration.ts, 12, 14)) +>private1 : Symbol(private1, Decl(declFileTypeAnnotationVisibilityErrorVariableDeclaration.ts, 0, 13)) + + var x2: public1; +>x2 : Symbol(x2, Decl(declFileTypeAnnotationVisibilityErrorVariableDeclaration.ts, 14, 7)) +>public1 : Symbol(public1, Decl(declFileTypeAnnotationVisibilityErrorVariableDeclaration.ts, 2, 5)) + + var y2 = new public1(); +>y2 : Symbol(y2, Decl(declFileTypeAnnotationVisibilityErrorVariableDeclaration.ts, 15, 7)) +>public1 : Symbol(public1, Decl(declFileTypeAnnotationVisibilityErrorVariableDeclaration.ts, 2, 5)) + + export var k2: public1; +>k2 : Symbol(k2, Decl(declFileTypeAnnotationVisibilityErrorVariableDeclaration.ts, 17, 14)) +>public1 : Symbol(public1, Decl(declFileTypeAnnotationVisibilityErrorVariableDeclaration.ts, 2, 5)) + + export var l2 = new public1(); +>l2 : Symbol(l2, Decl(declFileTypeAnnotationVisibilityErrorVariableDeclaration.ts, 18, 14)) +>public1 : Symbol(public1, Decl(declFileTypeAnnotationVisibilityErrorVariableDeclaration.ts, 2, 5)) + + namespace m2 { +>m2 : Symbol(m2, Decl(declFileTypeAnnotationVisibilityErrorVariableDeclaration.ts, 18, 34)) + + export class public2 { +>public2 : Symbol(public2, Decl(declFileTypeAnnotationVisibilityErrorVariableDeclaration.ts, 20, 18)) + } + } + + var x3: m2.public2; +>x3 : Symbol(x3, Decl(declFileTypeAnnotationVisibilityErrorVariableDeclaration.ts, 25, 7)) +>m2 : Symbol(m2, Decl(declFileTypeAnnotationVisibilityErrorVariableDeclaration.ts, 18, 34)) +>public2 : Symbol(m2.public2, Decl(declFileTypeAnnotationVisibilityErrorVariableDeclaration.ts, 20, 18)) + + var y3 = new m2.public2(); +>y3 : Symbol(y3, Decl(declFileTypeAnnotationVisibilityErrorVariableDeclaration.ts, 26, 7)) +>m2.public2 : Symbol(m2.public2, Decl(declFileTypeAnnotationVisibilityErrorVariableDeclaration.ts, 20, 18)) +>m2 : Symbol(m2, Decl(declFileTypeAnnotationVisibilityErrorVariableDeclaration.ts, 18, 34)) +>public2 : Symbol(m2.public2, Decl(declFileTypeAnnotationVisibilityErrorVariableDeclaration.ts, 20, 18)) + + export var k3: m2.public2; +>k3 : Symbol(k3, Decl(declFileTypeAnnotationVisibilityErrorVariableDeclaration.ts, 28, 14)) +>m2 : Symbol(m2, Decl(declFileTypeAnnotationVisibilityErrorVariableDeclaration.ts, 18, 34)) +>public2 : Symbol(m2.public2, Decl(declFileTypeAnnotationVisibilityErrorVariableDeclaration.ts, 20, 18)) + + export var l3 = new m2.public2(); +>l3 : Symbol(l3, Decl(declFileTypeAnnotationVisibilityErrorVariableDeclaration.ts, 29, 14)) +>m2.public2 : Symbol(m2.public2, Decl(declFileTypeAnnotationVisibilityErrorVariableDeclaration.ts, 20, 18)) +>m2 : Symbol(m2, Decl(declFileTypeAnnotationVisibilityErrorVariableDeclaration.ts, 18, 34)) +>public2 : Symbol(m2.public2, Decl(declFileTypeAnnotationVisibilityErrorVariableDeclaration.ts, 20, 18)) +} + diff --git a/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorVariableDeclaration(target=es5).types b/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorVariableDeclaration(target=es5).types new file mode 100644 index 0000000000000..8aa08dbcb627d --- /dev/null +++ b/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorVariableDeclaration(target=es5).types @@ -0,0 +1,113 @@ +//// [tests/cases/compiler/declFileTypeAnnotationVisibilityErrorVariableDeclaration.ts] //// + +=== declFileTypeAnnotationVisibilityErrorVariableDeclaration.ts === +namespace m { +>m : typeof m +> : ^^^^^^^^ + + class private1 { +>private1 : private1 +> : ^^^^^^^^ + } + + export class public1 { +>public1 : public1 +> : ^^^^^^^ + } + + // Directly using names from this module + var x: private1; +>x : private1 +> : ^^^^^^^^ + + var y = new private1(); +>y : private1 +> : ^^^^^^^^ +>new private1() : private1 +> : ^^^^^^^^ +>private1 : typeof private1 +> : ^^^^^^^^^^^^^^^ + + export var k: private1; +>k : private1 +> : ^^^^^^^^ + + export var l = new private1(); +>l : private1 +> : ^^^^^^^^ +>new private1() : private1 +> : ^^^^^^^^ +>private1 : typeof private1 +> : ^^^^^^^^^^^^^^^ + + var x2: public1; +>x2 : public1 +> : ^^^^^^^ + + var y2 = new public1(); +>y2 : public1 +> : ^^^^^^^ +>new public1() : public1 +> : ^^^^^^^ +>public1 : typeof public1 +> : ^^^^^^^^^^^^^^ + + export var k2: public1; +>k2 : public1 +> : ^^^^^^^ + + export var l2 = new public1(); +>l2 : public1 +> : ^^^^^^^ +>new public1() : public1 +> : ^^^^^^^ +>public1 : typeof public1 +> : ^^^^^^^^^^^^^^ + + namespace m2 { +>m2 : typeof m2 +> : ^^^^^^^^^ + + export class public2 { +>public2 : public2 +> : ^^^^^^^ + } + } + + var x3: m2.public2; +>x3 : m2.public2 +> : ^^^^^^^^^^ +>m2 : any +> : ^^^ + + var y3 = new m2.public2(); +>y3 : m2.public2 +> : ^^^^^^^^^^ +>new m2.public2() : m2.public2 +> : ^^^^^^^^^^ +>m2.public2 : typeof m2.public2 +> : ^^^^^^^^^^^^^^^^^ +>m2 : typeof m2 +> : ^^^^^^^^^ +>public2 : typeof m2.public2 +> : ^^^^^^^^^^^^^^^^^ + + export var k3: m2.public2; +>k3 : m2.public2 +> : ^^^^^^^^^^ +>m2 : any +> : ^^^ + + export var l3 = new m2.public2(); +>l3 : m2.public2 +> : ^^^^^^^^^^ +>new m2.public2() : m2.public2 +> : ^^^^^^^^^^ +>m2.public2 : typeof m2.public2 +> : ^^^^^^^^^^^^^^^^^ +>m2 : typeof m2 +> : ^^^^^^^^^ +>public2 : typeof m2.public2 +> : ^^^^^^^^^^^^^^^^^ +} + diff --git a/tests/baselines/reference/declarationEmitClassMemberNameConflict(target=es2015).js b/tests/baselines/reference/declarationEmitClassMemberNameConflict(target=es2015).js new file mode 100644 index 0000000000000..efbff9512ee60 --- /dev/null +++ b/tests/baselines/reference/declarationEmitClassMemberNameConflict(target=es2015).js @@ -0,0 +1,93 @@ +//// [tests/cases/compiler/declarationEmitClassMemberNameConflict.ts] //// + +//// [declarationEmitClassMemberNameConflict.ts] +export class C1 { + C1() { } // has to be the same as the class name + + bar() { + return function (t: typeof C1) { + }; + } +} + +export class C2 { + C2: any // has to be the same as the class name + + bar() { + return function (t: typeof C2) { + }; + } +} + +export class C3 { + get C3() { return 0; } // has to be the same as the class name + + bar() { + return function (t: typeof C3) { + }; + } +} + +export class C4 { + set C4(v) { } // has to be the same as the class name + + bar() { + return function (t: typeof C4) { + }; + } +} + +//// [declarationEmitClassMemberNameConflict.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.C4 = exports.C3 = exports.C2 = exports.C1 = void 0; +class C1 { + C1() { } // has to be the same as the class name + bar() { + return function (t) { + }; + } +} +exports.C1 = C1; +class C2 { + bar() { + return function (t) { + }; + } +} +exports.C2 = C2; +class C3 { + get C3() { return 0; } // has to be the same as the class name + bar() { + return function (t) { + }; + } +} +exports.C3 = C3; +class C4 { + set C4(v) { } // has to be the same as the class name + bar() { + return function (t) { + }; + } +} +exports.C4 = C4; + + +//// [declarationEmitClassMemberNameConflict.d.ts] +export declare class C1 { + C1(): void; + bar(): (t: typeof C1) => void; +} +export declare class C2 { + C2: any; + bar(): (t: typeof C2) => void; +} +export declare class C3 { + get C3(): number; + bar(): (t: typeof C3) => void; +} +export declare class C4 { + set C4(v: any); + bar(): (t: typeof C4) => void; +} diff --git a/tests/baselines/reference/declarationEmitClassMemberNameConflict.symbols b/tests/baselines/reference/declarationEmitClassMemberNameConflict(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/declarationEmitClassMemberNameConflict.symbols rename to tests/baselines/reference/declarationEmitClassMemberNameConflict(target=es2015).symbols diff --git a/tests/baselines/reference/declarationEmitClassMemberNameConflict.types b/tests/baselines/reference/declarationEmitClassMemberNameConflict(target=es2015).types similarity index 100% rename from tests/baselines/reference/declarationEmitClassMemberNameConflict.types rename to tests/baselines/reference/declarationEmitClassMemberNameConflict(target=es2015).types diff --git a/tests/baselines/reference/declarationEmitClassMemberNameConflict.js b/tests/baselines/reference/declarationEmitClassMemberNameConflict(target=es5).js similarity index 100% rename from tests/baselines/reference/declarationEmitClassMemberNameConflict.js rename to tests/baselines/reference/declarationEmitClassMemberNameConflict(target=es5).js diff --git a/tests/baselines/reference/declarationEmitClassMemberNameConflict(target=es5).symbols b/tests/baselines/reference/declarationEmitClassMemberNameConflict(target=es5).symbols new file mode 100644 index 0000000000000..3959c2b77aefc --- /dev/null +++ b/tests/baselines/reference/declarationEmitClassMemberNameConflict(target=es5).symbols @@ -0,0 +1,71 @@ +//// [tests/cases/compiler/declarationEmitClassMemberNameConflict.ts] //// + +=== declarationEmitClassMemberNameConflict.ts === +export class C1 { +>C1 : Symbol(C1, Decl(declarationEmitClassMemberNameConflict.ts, 0, 0)) + + C1() { } // has to be the same as the class name +>C1 : Symbol(C1.C1, Decl(declarationEmitClassMemberNameConflict.ts, 0, 17)) + + bar() { +>bar : Symbol(C1.bar, Decl(declarationEmitClassMemberNameConflict.ts, 1, 12)) + + return function (t: typeof C1) { +>t : Symbol(t, Decl(declarationEmitClassMemberNameConflict.ts, 4, 25)) +>C1 : Symbol(C1, Decl(declarationEmitClassMemberNameConflict.ts, 0, 0)) + + }; + } +} + +export class C2 { +>C2 : Symbol(C2, Decl(declarationEmitClassMemberNameConflict.ts, 7, 1)) + + C2: any // has to be the same as the class name +>C2 : Symbol(C2.C2, Decl(declarationEmitClassMemberNameConflict.ts, 9, 17)) + + bar() { +>bar : Symbol(C2.bar, Decl(declarationEmitClassMemberNameConflict.ts, 10, 11)) + + return function (t: typeof C2) { +>t : Symbol(t, Decl(declarationEmitClassMemberNameConflict.ts, 13, 25)) +>C2 : Symbol(C2, Decl(declarationEmitClassMemberNameConflict.ts, 7, 1)) + + }; + } +} + +export class C3 { +>C3 : Symbol(C3, Decl(declarationEmitClassMemberNameConflict.ts, 16, 1)) + + get C3() { return 0; } // has to be the same as the class name +>C3 : Symbol(C3.C3, Decl(declarationEmitClassMemberNameConflict.ts, 18, 17)) + + bar() { +>bar : Symbol(C3.bar, Decl(declarationEmitClassMemberNameConflict.ts, 19, 26)) + + return function (t: typeof C3) { +>t : Symbol(t, Decl(declarationEmitClassMemberNameConflict.ts, 22, 25)) +>C3 : Symbol(C3, Decl(declarationEmitClassMemberNameConflict.ts, 16, 1)) + + }; + } +} + +export class C4 { +>C4 : Symbol(C4, Decl(declarationEmitClassMemberNameConflict.ts, 25, 1)) + + set C4(v) { } // has to be the same as the class name +>C4 : Symbol(C4.C4, Decl(declarationEmitClassMemberNameConflict.ts, 27, 17)) +>v : Symbol(v, Decl(declarationEmitClassMemberNameConflict.ts, 28, 11)) + + bar() { +>bar : Symbol(C4.bar, Decl(declarationEmitClassMemberNameConflict.ts, 28, 17)) + + return function (t: typeof C4) { +>t : Symbol(t, Decl(declarationEmitClassMemberNameConflict.ts, 31, 25)) +>C4 : Symbol(C4, Decl(declarationEmitClassMemberNameConflict.ts, 25, 1)) + + }; + } +} diff --git a/tests/baselines/reference/declarationEmitClassMemberNameConflict(target=es5).types b/tests/baselines/reference/declarationEmitClassMemberNameConflict(target=es5).types new file mode 100644 index 0000000000000..5547bba484afb --- /dev/null +++ b/tests/baselines/reference/declarationEmitClassMemberNameConflict(target=es5).types @@ -0,0 +1,99 @@ +//// [tests/cases/compiler/declarationEmitClassMemberNameConflict.ts] //// + +=== declarationEmitClassMemberNameConflict.ts === +export class C1 { +>C1 : C1 +> : ^^ + + C1() { } // has to be the same as the class name +>C1 : () => void +> : ^^^^^^^^^^ + + bar() { +>bar : () => (t: typeof C1) => void +> : ^^^^^^^ ^^^^^^^^^ + + return function (t: typeof C1) { +>function (t: typeof C1) { } : (t: typeof C1) => void +> : ^ ^^ ^^^^^^^^^ +>t : typeof C1 +> : ^^^^^^^^^ +>C1 : typeof C1 +> : ^^^^^^^^^ + + }; + } +} + +export class C2 { +>C2 : C2 +> : ^^ + + C2: any // has to be the same as the class name +>C2 : any + + bar() { +>bar : () => (t: typeof C2) => void +> : ^^^^^^^ ^^^^^^^^^ + + return function (t: typeof C2) { +>function (t: typeof C2) { } : (t: typeof C2) => void +> : ^ ^^ ^^^^^^^^^ +>t : typeof C2 +> : ^^^^^^^^^ +>C2 : typeof C2 +> : ^^^^^^^^^ + + }; + } +} + +export class C3 { +>C3 : C3 +> : ^^ + + get C3() { return 0; } // has to be the same as the class name +>C3 : number +> : ^^^^^^ +>0 : 0 +> : ^ + + bar() { +>bar : () => (t: typeof C3) => void +> : ^^^^^^^ ^^^^^^^^^ + + return function (t: typeof C3) { +>function (t: typeof C3) { } : (t: typeof C3) => void +> : ^ ^^ ^^^^^^^^^ +>t : typeof C3 +> : ^^^^^^^^^ +>C3 : typeof C3 +> : ^^^^^^^^^ + + }; + } +} + +export class C4 { +>C4 : C4 +> : ^^ + + set C4(v) { } // has to be the same as the class name +>C4 : any +>v : any + + bar() { +>bar : () => (t: typeof C4) => void +> : ^^^^^^^ ^^^^^^^^^ + + return function (t: typeof C4) { +>function (t: typeof C4) { } : (t: typeof C4) => void +> : ^ ^^ ^^^^^^^^^ +>t : typeof C4 +> : ^^^^^^^^^ +>C4 : typeof C4 +> : ^^^^^^^^^ + + }; + } +} diff --git a/tests/baselines/reference/declarationEmitClassMemberNameConflict2(target=es2015).js b/tests/baselines/reference/declarationEmitClassMemberNameConflict2(target=es2015).js new file mode 100644 index 0000000000000..9eca0f9da8930 --- /dev/null +++ b/tests/baselines/reference/declarationEmitClassMemberNameConflict2(target=es2015).js @@ -0,0 +1,59 @@ +//// [tests/cases/compiler/declarationEmitClassMemberNameConflict2.ts] //// + +//// [declarationEmitClassMemberNameConflict2.ts] +const Bar = 'bar'; + +enum Hello { + World +} + +enum Hello1 { + World1 +} + +class Foo { + // Same names + string => OK + Bar = Bar; + + // Same names + enum => OK + Hello = Hello; + + // Different names + enum => OK + Hello2 = Hello1; +} + +//// [declarationEmitClassMemberNameConflict2.js] +const Bar = 'bar'; +var Hello; +(function (Hello) { + Hello[Hello["World"] = 0] = "World"; +})(Hello || (Hello = {})); +var Hello1; +(function (Hello1) { + Hello1[Hello1["World1"] = 0] = "World1"; +})(Hello1 || (Hello1 = {})); +class Foo { + constructor() { + // Same names + string => OK + this.Bar = Bar; + // Same names + enum => OK + this.Hello = Hello; + // Different names + enum => OK + this.Hello2 = Hello1; + } +} + + +//// [declarationEmitClassMemberNameConflict2.d.ts] +declare const Bar = "bar"; +declare enum Hello { + World = 0 +} +declare enum Hello1 { + World1 = 0 +} +declare class Foo { + Bar: string; + Hello: typeof Hello; + Hello2: typeof Hello1; +} diff --git a/tests/baselines/reference/declarationEmitClassMemberNameConflict2.symbols b/tests/baselines/reference/declarationEmitClassMemberNameConflict2(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/declarationEmitClassMemberNameConflict2.symbols rename to tests/baselines/reference/declarationEmitClassMemberNameConflict2(target=es2015).symbols diff --git a/tests/baselines/reference/declarationEmitClassMemberNameConflict2.types b/tests/baselines/reference/declarationEmitClassMemberNameConflict2(target=es2015).types similarity index 100% rename from tests/baselines/reference/declarationEmitClassMemberNameConflict2.types rename to tests/baselines/reference/declarationEmitClassMemberNameConflict2(target=es2015).types diff --git a/tests/baselines/reference/declarationEmitClassMemberNameConflict2.js b/tests/baselines/reference/declarationEmitClassMemberNameConflict2(target=es5).js similarity index 100% rename from tests/baselines/reference/declarationEmitClassMemberNameConflict2.js rename to tests/baselines/reference/declarationEmitClassMemberNameConflict2(target=es5).js diff --git a/tests/baselines/reference/declarationEmitClassMemberNameConflict2(target=es5).symbols b/tests/baselines/reference/declarationEmitClassMemberNameConflict2(target=es5).symbols new file mode 100644 index 0000000000000..87392703bfebe --- /dev/null +++ b/tests/baselines/reference/declarationEmitClassMemberNameConflict2(target=es5).symbols @@ -0,0 +1,38 @@ +//// [tests/cases/compiler/declarationEmitClassMemberNameConflict2.ts] //// + +=== declarationEmitClassMemberNameConflict2.ts === +const Bar = 'bar'; +>Bar : Symbol(Bar, Decl(declarationEmitClassMemberNameConflict2.ts, 0, 5)) + +enum Hello { +>Hello : Symbol(Hello, Decl(declarationEmitClassMemberNameConflict2.ts, 0, 18)) + + World +>World : Symbol(Hello.World, Decl(declarationEmitClassMemberNameConflict2.ts, 2, 12)) +} + +enum Hello1 { +>Hello1 : Symbol(Hello1, Decl(declarationEmitClassMemberNameConflict2.ts, 4, 1)) + + World1 +>World1 : Symbol(Hello1.World1, Decl(declarationEmitClassMemberNameConflict2.ts, 6, 13)) +} + +class Foo { +>Foo : Symbol(Foo, Decl(declarationEmitClassMemberNameConflict2.ts, 8, 1)) + + // Same names + string => OK + Bar = Bar; +>Bar : Symbol(Foo.Bar, Decl(declarationEmitClassMemberNameConflict2.ts, 10, 11)) +>Bar : Symbol(Bar, Decl(declarationEmitClassMemberNameConflict2.ts, 0, 5)) + + // Same names + enum => OK + Hello = Hello; +>Hello : Symbol(Foo.Hello, Decl(declarationEmitClassMemberNameConflict2.ts, 12, 14)) +>Hello : Symbol(Hello, Decl(declarationEmitClassMemberNameConflict2.ts, 0, 18)) + + // Different names + enum => OK + Hello2 = Hello1; +>Hello2 : Symbol(Foo.Hello2, Decl(declarationEmitClassMemberNameConflict2.ts, 15, 18)) +>Hello1 : Symbol(Hello1, Decl(declarationEmitClassMemberNameConflict2.ts, 4, 1)) +} diff --git a/tests/baselines/reference/declarationEmitClassMemberNameConflict2(target=es5).types b/tests/baselines/reference/declarationEmitClassMemberNameConflict2(target=es5).types new file mode 100644 index 0000000000000..83448ad6c37f6 --- /dev/null +++ b/tests/baselines/reference/declarationEmitClassMemberNameConflict2(target=es5).types @@ -0,0 +1,52 @@ +//// [tests/cases/compiler/declarationEmitClassMemberNameConflict2.ts] //// + +=== declarationEmitClassMemberNameConflict2.ts === +const Bar = 'bar'; +>Bar : "bar" +> : ^^^^^ +>'bar' : "bar" +> : ^^^^^ + +enum Hello { +>Hello : Hello +> : ^^^^^ + + World +>World : Hello.World +> : ^^^^^^^^^^^ +} + +enum Hello1 { +>Hello1 : Hello1 +> : ^^^^^^ + + World1 +>World1 : Hello1.World1 +> : ^^^^^^^^^^^^^ +} + +class Foo { +>Foo : Foo +> : ^^^ + + // Same names + string => OK + Bar = Bar; +>Bar : string +> : ^^^^^^ +>Bar : "bar" +> : ^^^^^ + + // Same names + enum => OK + Hello = Hello; +>Hello : typeof Hello +> : ^^^^^^^^^^^^ +>Hello : typeof Hello +> : ^^^^^^^^^^^^ + + // Different names + enum => OK + Hello2 = Hello1; +>Hello2 : typeof Hello1 +> : ^^^^^^^^^^^^^ +>Hello1 : typeof Hello1 +> : ^^^^^^^^^^^^^ +} diff --git a/tests/baselines/reference/declarationEmitClassPrivateConstructor(target=es2015).js b/tests/baselines/reference/declarationEmitClassPrivateConstructor(target=es2015).js new file mode 100644 index 0000000000000..d979a1439769a --- /dev/null +++ b/tests/baselines/reference/declarationEmitClassPrivateConstructor(target=es2015).js @@ -0,0 +1,70 @@ +//// [tests/cases/compiler/declarationEmitClassPrivateConstructor.ts] //// + +//// [declarationEmitClassPrivateConstructor.ts] +interface PrivateInterface { +} + +export class ExportedClass1 { + private constructor(data: PrivateInterface) { } +} + +export class ExportedClass2 { + private constructor(private data: PrivateInterface) { } +} + +export class ExportedClass3 { + private constructor(private data: PrivateInterface, private n: number) { } +} + +export class ExportedClass4 { + private constructor(private data: PrivateInterface, public n:number) { } +} + +//// [declarationEmitClassPrivateConstructor.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ExportedClass4 = exports.ExportedClass3 = exports.ExportedClass2 = exports.ExportedClass1 = void 0; +class ExportedClass1 { + constructor(data) { } +} +exports.ExportedClass1 = ExportedClass1; +class ExportedClass2 { + constructor(data) { + this.data = data; + } +} +exports.ExportedClass2 = ExportedClass2; +class ExportedClass3 { + constructor(data, n) { + this.data = data; + this.n = n; + } +} +exports.ExportedClass3 = ExportedClass3; +class ExportedClass4 { + constructor(data, n) { + this.data = data; + this.n = n; + } +} +exports.ExportedClass4 = ExportedClass4; + + +//// [declarationEmitClassPrivateConstructor.d.ts] +export declare class ExportedClass1 { + private constructor(); +} +export declare class ExportedClass2 { + private data; + private constructor(); +} +export declare class ExportedClass3 { + private data; + private n; + private constructor(); +} +export declare class ExportedClass4 { + private data; + n: number; + private constructor(); +} diff --git a/tests/baselines/reference/declarationEmitClassPrivateConstructor.symbols b/tests/baselines/reference/declarationEmitClassPrivateConstructor(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/declarationEmitClassPrivateConstructor.symbols rename to tests/baselines/reference/declarationEmitClassPrivateConstructor(target=es2015).symbols diff --git a/tests/baselines/reference/declarationEmitClassPrivateConstructor.types b/tests/baselines/reference/declarationEmitClassPrivateConstructor(target=es2015).types similarity index 100% rename from tests/baselines/reference/declarationEmitClassPrivateConstructor.types rename to tests/baselines/reference/declarationEmitClassPrivateConstructor(target=es2015).types diff --git a/tests/baselines/reference/declarationEmitClassPrivateConstructor.js b/tests/baselines/reference/declarationEmitClassPrivateConstructor(target=es5).js similarity index 100% rename from tests/baselines/reference/declarationEmitClassPrivateConstructor.js rename to tests/baselines/reference/declarationEmitClassPrivateConstructor(target=es5).js diff --git a/tests/baselines/reference/declarationEmitClassPrivateConstructor(target=es5).symbols b/tests/baselines/reference/declarationEmitClassPrivateConstructor(target=es5).symbols new file mode 100644 index 0000000000000..6ca54113327f2 --- /dev/null +++ b/tests/baselines/reference/declarationEmitClassPrivateConstructor(target=es5).symbols @@ -0,0 +1,40 @@ +//// [tests/cases/compiler/declarationEmitClassPrivateConstructor.ts] //// + +=== declarationEmitClassPrivateConstructor.ts === +interface PrivateInterface { +>PrivateInterface : Symbol(PrivateInterface, Decl(declarationEmitClassPrivateConstructor.ts, 0, 0)) +} + +export class ExportedClass1 { +>ExportedClass1 : Symbol(ExportedClass1, Decl(declarationEmitClassPrivateConstructor.ts, 1, 1)) + + private constructor(data: PrivateInterface) { } +>data : Symbol(data, Decl(declarationEmitClassPrivateConstructor.ts, 4, 24)) +>PrivateInterface : Symbol(PrivateInterface, Decl(declarationEmitClassPrivateConstructor.ts, 0, 0)) +} + +export class ExportedClass2 { +>ExportedClass2 : Symbol(ExportedClass2, Decl(declarationEmitClassPrivateConstructor.ts, 5, 1)) + + private constructor(private data: PrivateInterface) { } +>data : Symbol(ExportedClass2.data, Decl(declarationEmitClassPrivateConstructor.ts, 8, 24)) +>PrivateInterface : Symbol(PrivateInterface, Decl(declarationEmitClassPrivateConstructor.ts, 0, 0)) +} + +export class ExportedClass3 { +>ExportedClass3 : Symbol(ExportedClass3, Decl(declarationEmitClassPrivateConstructor.ts, 9, 1)) + + private constructor(private data: PrivateInterface, private n: number) { } +>data : Symbol(ExportedClass3.data, Decl(declarationEmitClassPrivateConstructor.ts, 12, 24)) +>PrivateInterface : Symbol(PrivateInterface, Decl(declarationEmitClassPrivateConstructor.ts, 0, 0)) +>n : Symbol(ExportedClass3.n, Decl(declarationEmitClassPrivateConstructor.ts, 12, 55)) +} + +export class ExportedClass4 { +>ExportedClass4 : Symbol(ExportedClass4, Decl(declarationEmitClassPrivateConstructor.ts, 13, 1)) + + private constructor(private data: PrivateInterface, public n:number) { } +>data : Symbol(ExportedClass4.data, Decl(declarationEmitClassPrivateConstructor.ts, 16, 24)) +>PrivateInterface : Symbol(PrivateInterface, Decl(declarationEmitClassPrivateConstructor.ts, 0, 0)) +>n : Symbol(ExportedClass4.n, Decl(declarationEmitClassPrivateConstructor.ts, 16, 55)) +} diff --git a/tests/baselines/reference/declarationEmitClassPrivateConstructor(target=es5).types b/tests/baselines/reference/declarationEmitClassPrivateConstructor(target=es5).types new file mode 100644 index 0000000000000..631908006e85a --- /dev/null +++ b/tests/baselines/reference/declarationEmitClassPrivateConstructor(target=es5).types @@ -0,0 +1,45 @@ +//// [tests/cases/compiler/declarationEmitClassPrivateConstructor.ts] //// + +=== declarationEmitClassPrivateConstructor.ts === +interface PrivateInterface { +} + +export class ExportedClass1 { +>ExportedClass1 : ExportedClass1 +> : ^^^^^^^^^^^^^^ + + private constructor(data: PrivateInterface) { } +>data : PrivateInterface +> : ^^^^^^^^^^^^^^^^ +} + +export class ExportedClass2 { +>ExportedClass2 : ExportedClass2 +> : ^^^^^^^^^^^^^^ + + private constructor(private data: PrivateInterface) { } +>data : PrivateInterface +> : ^^^^^^^^^^^^^^^^ +} + +export class ExportedClass3 { +>ExportedClass3 : ExportedClass3 +> : ^^^^^^^^^^^^^^ + + private constructor(private data: PrivateInterface, private n: number) { } +>data : PrivateInterface +> : ^^^^^^^^^^^^^^^^ +>n : number +> : ^^^^^^ +} + +export class ExportedClass4 { +>ExportedClass4 : ExportedClass4 +> : ^^^^^^^^^^^^^^ + + private constructor(private data: PrivateInterface, public n:number) { } +>data : PrivateInterface +> : ^^^^^^^^^^^^^^^^ +>n : number +> : ^^^^^^ +} diff --git a/tests/baselines/reference/declarationEmitClassPrivateConstructor2(target=es2015).js b/tests/baselines/reference/declarationEmitClassPrivateConstructor2(target=es2015).js new file mode 100644 index 0000000000000..5f3a6419a2da0 --- /dev/null +++ b/tests/baselines/reference/declarationEmitClassPrivateConstructor2(target=es2015).js @@ -0,0 +1,42 @@ +//// [tests/cases/compiler/declarationEmitClassPrivateConstructor2.ts] //// + +//// [declarationEmitClassPrivateConstructor2.ts] +interface PrivateInterface { +} + +export class ExportedClass1 { + private constructor(public data: PrivateInterface) { } +} + + +export class ExportedClass2 { + protected constructor(data: PrivateInterface) { } +} + +//// [declarationEmitClassPrivateConstructor2.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ExportedClass2 = exports.ExportedClass1 = void 0; +class ExportedClass1 { + constructor(data) { + this.data = data; + } +} +exports.ExportedClass1 = ExportedClass1; +class ExportedClass2 { + constructor(data) { } +} +exports.ExportedClass2 = ExportedClass2; + + +//// [declarationEmitClassPrivateConstructor2.d.ts] +interface PrivateInterface { +} +export declare class ExportedClass1 { + data: PrivateInterface; + private constructor(); +} +export declare class ExportedClass2 { + protected constructor(data: PrivateInterface); +} +export {}; diff --git a/tests/baselines/reference/declarationEmitClassPrivateConstructor2.symbols b/tests/baselines/reference/declarationEmitClassPrivateConstructor2(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/declarationEmitClassPrivateConstructor2.symbols rename to tests/baselines/reference/declarationEmitClassPrivateConstructor2(target=es2015).symbols diff --git a/tests/baselines/reference/declarationEmitClassPrivateConstructor2.types b/tests/baselines/reference/declarationEmitClassPrivateConstructor2(target=es2015).types similarity index 100% rename from tests/baselines/reference/declarationEmitClassPrivateConstructor2.types rename to tests/baselines/reference/declarationEmitClassPrivateConstructor2(target=es2015).types diff --git a/tests/baselines/reference/declarationEmitClassPrivateConstructor2.js b/tests/baselines/reference/declarationEmitClassPrivateConstructor2(target=es5).js similarity index 100% rename from tests/baselines/reference/declarationEmitClassPrivateConstructor2.js rename to tests/baselines/reference/declarationEmitClassPrivateConstructor2(target=es5).js diff --git a/tests/baselines/reference/declarationEmitClassPrivateConstructor2(target=es5).symbols b/tests/baselines/reference/declarationEmitClassPrivateConstructor2(target=es5).symbols new file mode 100644 index 0000000000000..2302399e3a1d9 --- /dev/null +++ b/tests/baselines/reference/declarationEmitClassPrivateConstructor2(target=es5).symbols @@ -0,0 +1,23 @@ +//// [tests/cases/compiler/declarationEmitClassPrivateConstructor2.ts] //// + +=== declarationEmitClassPrivateConstructor2.ts === +interface PrivateInterface { +>PrivateInterface : Symbol(PrivateInterface, Decl(declarationEmitClassPrivateConstructor2.ts, 0, 0)) +} + +export class ExportedClass1 { +>ExportedClass1 : Symbol(ExportedClass1, Decl(declarationEmitClassPrivateConstructor2.ts, 1, 1)) + + private constructor(public data: PrivateInterface) { } +>data : Symbol(ExportedClass1.data, Decl(declarationEmitClassPrivateConstructor2.ts, 4, 24)) +>PrivateInterface : Symbol(PrivateInterface, Decl(declarationEmitClassPrivateConstructor2.ts, 0, 0)) +} + + +export class ExportedClass2 { +>ExportedClass2 : Symbol(ExportedClass2, Decl(declarationEmitClassPrivateConstructor2.ts, 5, 1)) + + protected constructor(data: PrivateInterface) { } +>data : Symbol(data, Decl(declarationEmitClassPrivateConstructor2.ts, 9, 26)) +>PrivateInterface : Symbol(PrivateInterface, Decl(declarationEmitClassPrivateConstructor2.ts, 0, 0)) +} diff --git a/tests/baselines/reference/declarationEmitClassPrivateConstructor2(target=es5).types b/tests/baselines/reference/declarationEmitClassPrivateConstructor2(target=es5).types new file mode 100644 index 0000000000000..913f47554236d --- /dev/null +++ b/tests/baselines/reference/declarationEmitClassPrivateConstructor2(target=es5).types @@ -0,0 +1,24 @@ +//// [tests/cases/compiler/declarationEmitClassPrivateConstructor2.ts] //// + +=== declarationEmitClassPrivateConstructor2.ts === +interface PrivateInterface { +} + +export class ExportedClass1 { +>ExportedClass1 : ExportedClass1 +> : ^^^^^^^^^^^^^^ + + private constructor(public data: PrivateInterface) { } +>data : PrivateInterface +> : ^^^^^^^^^^^^^^^^ +} + + +export class ExportedClass2 { +>ExportedClass2 : ExportedClass2 +> : ^^^^^^^^^^^^^^ + + protected constructor(data: PrivateInterface) { } +>data : PrivateInterface +> : ^^^^^^^^^^^^^^^^ +} diff --git a/tests/baselines/reference/declarationEmitDetachedComment1(target=es2015).js b/tests/baselines/reference/declarationEmitDetachedComment1(target=es2015).js new file mode 100644 index 0000000000000..b9b04061660fc --- /dev/null +++ b/tests/baselines/reference/declarationEmitDetachedComment1(target=es2015).js @@ -0,0 +1,75 @@ +//// [tests/cases/compiler/declarationEmitDetachedComment1.ts] //// + +//// [test1.ts] +/*! Copyright 2015 MyCompany Inc. */ + +/** + * Hello class + */ +class Hello { + +} + +//// [test2.ts] +/* A comment at the top of the file. */ + +/** + * Hi class + */ +class Hi { + +} + +//// [test3.ts] +// A one-line comment at the top of the file. + +/** + * Hola class + */ +class Hola { + +} + + +//// [test1.js] +/*! Copyright 2015 MyCompany Inc. */ +/** + * Hello class + */ +class Hello { +} +//// [test2.js] +/* A comment at the top of the file. */ +/** + * Hi class + */ +class Hi { +} +//// [test3.js] +// A one-line comment at the top of the file. +/** + * Hola class + */ +class Hola { +} + + +//// [test1.d.ts] +/*! Copyright 2015 MyCompany Inc. */ +/** + * Hello class + */ +declare class Hello { +} +//// [test2.d.ts] +/** + * Hi class + */ +declare class Hi { +} +//// [test3.d.ts] +/** + * Hola class + */ +declare class Hola { +} diff --git a/tests/baselines/reference/declarationEmitDetachedComment1.symbols b/tests/baselines/reference/declarationEmitDetachedComment1(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/declarationEmitDetachedComment1.symbols rename to tests/baselines/reference/declarationEmitDetachedComment1(target=es2015).symbols diff --git a/tests/baselines/reference/declarationEmitDetachedComment1.types b/tests/baselines/reference/declarationEmitDetachedComment1(target=es2015).types similarity index 100% rename from tests/baselines/reference/declarationEmitDetachedComment1.types rename to tests/baselines/reference/declarationEmitDetachedComment1(target=es2015).types diff --git a/tests/baselines/reference/declarationEmitDetachedComment1.js b/tests/baselines/reference/declarationEmitDetachedComment1(target=es5).js similarity index 100% rename from tests/baselines/reference/declarationEmitDetachedComment1.js rename to tests/baselines/reference/declarationEmitDetachedComment1(target=es5).js diff --git a/tests/baselines/reference/declarationEmitDetachedComment1(target=es5).symbols b/tests/baselines/reference/declarationEmitDetachedComment1(target=es5).symbols new file mode 100644 index 0000000000000..f3419a3cdb716 --- /dev/null +++ b/tests/baselines/reference/declarationEmitDetachedComment1(target=es5).symbols @@ -0,0 +1,35 @@ +//// [tests/cases/compiler/declarationEmitDetachedComment1.ts] //// + +=== test1.ts === +/*! Copyright 2015 MyCompany Inc. */ + +/** + * Hello class + */ +class Hello { +>Hello : Symbol(Hello, Decl(test1.ts, 0, 0)) + +} + +=== test2.ts === +/* A comment at the top of the file. */ + +/** + * Hi class + */ +class Hi { +>Hi : Symbol(Hi, Decl(test2.ts, 0, 0)) + +} + +=== test3.ts === +// A one-line comment at the top of the file. + +/** + * Hola class + */ +class Hola { +>Hola : Symbol(Hola, Decl(test3.ts, 0, 0)) + +} + diff --git a/tests/baselines/reference/declarationEmitDetachedComment1(target=es5).types b/tests/baselines/reference/declarationEmitDetachedComment1(target=es5).types new file mode 100644 index 0000000000000..dd270d00fde0c --- /dev/null +++ b/tests/baselines/reference/declarationEmitDetachedComment1(target=es5).types @@ -0,0 +1,38 @@ +//// [tests/cases/compiler/declarationEmitDetachedComment1.ts] //// + +=== test1.ts === +/*! Copyright 2015 MyCompany Inc. */ + +/** + * Hello class + */ +class Hello { +>Hello : Hello +> : ^^^^^ + +} + +=== test2.ts === +/* A comment at the top of the file. */ + +/** + * Hi class + */ +class Hi { +>Hi : Hi +> : ^^ + +} + +=== test3.ts === +// A one-line comment at the top of the file. + +/** + * Hola class + */ +class Hola { +>Hola : Hola +> : ^^^^ + +} + diff --git a/tests/baselines/reference/declarationEmitDetachedComment2(target=es2015).js b/tests/baselines/reference/declarationEmitDetachedComment2(target=es2015).js new file mode 100644 index 0000000000000..0c6b49eb4a025 --- /dev/null +++ b/tests/baselines/reference/declarationEmitDetachedComment2(target=es2015).js @@ -0,0 +1,55 @@ +//// [tests/cases/compiler/declarationEmitDetachedComment2.ts] //// + +//// [test1.ts] +/*! Copyright 2015 MyCompany Inc. */ + +/** + * Hello class + */ +class Hello { + +} + +//// [test2.ts] +/* A comment at the top of the file. */ + +/** + * Hi class + */ +class Hi { + +} + +//// [test3.ts] +// A one-line comment at the top of the file. + +/** + * Hola class + */ +class Hola { + +} + + +//// [test1.js] +/*! Copyright 2015 MyCompany Inc. */ +class Hello { +} +//// [test2.js] +class Hi { +} +//// [test3.js] +class Hola { +} + + +//// [test1.d.ts] +/*! Copyright 2015 MyCompany Inc. */ +declare class Hello { +} +//// [test2.d.ts] +declare class Hi { +} +//// [test3.d.ts] +declare class Hola { +} diff --git a/tests/baselines/reference/declarationEmitDetachedComment2.symbols b/tests/baselines/reference/declarationEmitDetachedComment2(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/declarationEmitDetachedComment2.symbols rename to tests/baselines/reference/declarationEmitDetachedComment2(target=es2015).symbols diff --git a/tests/baselines/reference/declarationEmitDetachedComment2.types b/tests/baselines/reference/declarationEmitDetachedComment2(target=es2015).types similarity index 100% rename from tests/baselines/reference/declarationEmitDetachedComment2.types rename to tests/baselines/reference/declarationEmitDetachedComment2(target=es2015).types diff --git a/tests/baselines/reference/declarationEmitDetachedComment2.js b/tests/baselines/reference/declarationEmitDetachedComment2(target=es5).js similarity index 100% rename from tests/baselines/reference/declarationEmitDetachedComment2.js rename to tests/baselines/reference/declarationEmitDetachedComment2(target=es5).js diff --git a/tests/baselines/reference/declarationEmitDetachedComment2(target=es5).symbols b/tests/baselines/reference/declarationEmitDetachedComment2(target=es5).symbols new file mode 100644 index 0000000000000..b69bc8544c45c --- /dev/null +++ b/tests/baselines/reference/declarationEmitDetachedComment2(target=es5).symbols @@ -0,0 +1,35 @@ +//// [tests/cases/compiler/declarationEmitDetachedComment2.ts] //// + +=== test1.ts === +/*! Copyright 2015 MyCompany Inc. */ + +/** + * Hello class + */ +class Hello { +>Hello : Symbol(Hello, Decl(test1.ts, 0, 0)) + +} + +=== test2.ts === +/* A comment at the top of the file. */ + +/** + * Hi class + */ +class Hi { +>Hi : Symbol(Hi, Decl(test2.ts, 0, 0)) + +} + +=== test3.ts === +// A one-line comment at the top of the file. + +/** + * Hola class + */ +class Hola { +>Hola : Symbol(Hola, Decl(test3.ts, 0, 0)) + +} + diff --git a/tests/baselines/reference/declarationEmitDetachedComment2(target=es5).types b/tests/baselines/reference/declarationEmitDetachedComment2(target=es5).types new file mode 100644 index 0000000000000..86d5fac53b37f --- /dev/null +++ b/tests/baselines/reference/declarationEmitDetachedComment2(target=es5).types @@ -0,0 +1,38 @@ +//// [tests/cases/compiler/declarationEmitDetachedComment2.ts] //// + +=== test1.ts === +/*! Copyright 2015 MyCompany Inc. */ + +/** + * Hello class + */ +class Hello { +>Hello : Hello +> : ^^^^^ + +} + +=== test2.ts === +/* A comment at the top of the file. */ + +/** + * Hi class + */ +class Hi { +>Hi : Hi +> : ^^ + +} + +=== test3.ts === +// A one-line comment at the top of the file. + +/** + * Hola class + */ +class Hola { +>Hola : Hola +> : ^^^^ + +} + diff --git a/tests/baselines/reference/declarationEmitExportAssignment(target=es2015).js b/tests/baselines/reference/declarationEmitExportAssignment(target=es2015).js new file mode 100644 index 0000000000000..47e43bd44486a --- /dev/null +++ b/tests/baselines/reference/declarationEmitExportAssignment(target=es2015).js @@ -0,0 +1,32 @@ +//// [tests/cases/compiler/declarationEmitExportAssignment.ts] //// + +//// [utils.ts] +export function foo() { } +export function bar() { } +export interface Buzz { } + +//// [index.ts] +import {foo} from "./utils"; +export = foo; + +//// [utils.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.foo = foo; +exports.bar = bar; +function foo() { } +function bar() { } +//// [index.js] +"use strict"; +const utils_1 = require("./utils"); +module.exports = utils_1.foo; + + +//// [utils.d.ts] +export declare function foo(): void; +export declare function bar(): void; +export interface Buzz { +} +//// [index.d.ts] +import { foo } from "./utils"; +export = foo; diff --git a/tests/baselines/reference/declarationEmitExportAssignment.symbols b/tests/baselines/reference/declarationEmitExportAssignment(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/declarationEmitExportAssignment.symbols rename to tests/baselines/reference/declarationEmitExportAssignment(target=es2015).symbols diff --git a/tests/baselines/reference/declarationEmitExportAssignment.types b/tests/baselines/reference/declarationEmitExportAssignment(target=es2015).types similarity index 100% rename from tests/baselines/reference/declarationEmitExportAssignment.types rename to tests/baselines/reference/declarationEmitExportAssignment(target=es2015).types diff --git a/tests/baselines/reference/declarationEmitExportAssignment.js b/tests/baselines/reference/declarationEmitExportAssignment(target=es5).js similarity index 100% rename from tests/baselines/reference/declarationEmitExportAssignment.js rename to tests/baselines/reference/declarationEmitExportAssignment(target=es5).js diff --git a/tests/baselines/reference/declarationEmitExportAssignment(target=es5).symbols b/tests/baselines/reference/declarationEmitExportAssignment(target=es5).symbols new file mode 100644 index 0000000000000..766decd030ecf --- /dev/null +++ b/tests/baselines/reference/declarationEmitExportAssignment(target=es5).symbols @@ -0,0 +1,19 @@ +//// [tests/cases/compiler/declarationEmitExportAssignment.ts] //// + +=== utils.ts === +export function foo() { } +>foo : Symbol(foo, Decl(utils.ts, 0, 0)) + +export function bar() { } +>bar : Symbol(bar, Decl(utils.ts, 0, 25)) + +export interface Buzz { } +>Buzz : Symbol(Buzz, Decl(utils.ts, 1, 25)) + +=== index.ts === +import {foo} from "./utils"; +>foo : Symbol(foo, Decl(index.ts, 0, 8)) + +export = foo; +>foo : Symbol(foo, Decl(index.ts, 0, 8)) + diff --git a/tests/baselines/reference/declarationEmitExportAssignment(target=es5).types b/tests/baselines/reference/declarationEmitExportAssignment(target=es5).types new file mode 100644 index 0000000000000..dec7da1ab96d6 --- /dev/null +++ b/tests/baselines/reference/declarationEmitExportAssignment(target=es5).types @@ -0,0 +1,22 @@ +//// [tests/cases/compiler/declarationEmitExportAssignment.ts] //// + +=== utils.ts === +export function foo() { } +>foo : () => void +> : ^^^^^^^^^^ + +export function bar() { } +>bar : () => void +> : ^^^^^^^^^^ + +export interface Buzz { } + +=== index.ts === +import {foo} from "./utils"; +>foo : () => void +> : ^^^^^^^^^^ + +export = foo; +>foo : () => void +> : ^^^^^^^^^^ + diff --git a/tests/baselines/reference/declarationEmitExportDeclaration(target=es2015).js b/tests/baselines/reference/declarationEmitExportDeclaration(target=es2015).js new file mode 100644 index 0000000000000..f8e25185f2a0d --- /dev/null +++ b/tests/baselines/reference/declarationEmitExportDeclaration(target=es2015).js @@ -0,0 +1,39 @@ +//// [tests/cases/compiler/declarationEmitExportDeclaration.ts] //// + +//// [utils.ts] +export function foo() { } +export function bar() { } +export interface Buzz { } + +//// [index.ts] +import {foo, bar, Buzz} from "./utils"; + +foo(); +let obj: Buzz; +export {bar}; + +//// [utils.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.foo = foo; +exports.bar = bar; +function foo() { } +function bar() { } +//// [index.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.bar = void 0; +const utils_1 = require("./utils"); +Object.defineProperty(exports, "bar", { enumerable: true, get: function () { return utils_1.bar; } }); +(0, utils_1.foo)(); +let obj; + + +//// [utils.d.ts] +export declare function foo(): void; +export declare function bar(): void; +export interface Buzz { +} +//// [index.d.ts] +import { bar } from "./utils"; +export { bar }; diff --git a/tests/baselines/reference/declarationEmitExportDeclaration.symbols b/tests/baselines/reference/declarationEmitExportDeclaration(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/declarationEmitExportDeclaration.symbols rename to tests/baselines/reference/declarationEmitExportDeclaration(target=es2015).symbols diff --git a/tests/baselines/reference/declarationEmitExportDeclaration.types b/tests/baselines/reference/declarationEmitExportDeclaration(target=es2015).types similarity index 100% rename from tests/baselines/reference/declarationEmitExportDeclaration.types rename to tests/baselines/reference/declarationEmitExportDeclaration(target=es2015).types diff --git a/tests/baselines/reference/declarationEmitExportDeclaration.js b/tests/baselines/reference/declarationEmitExportDeclaration(target=es5).js similarity index 100% rename from tests/baselines/reference/declarationEmitExportDeclaration.js rename to tests/baselines/reference/declarationEmitExportDeclaration(target=es5).js diff --git a/tests/baselines/reference/declarationEmitExportDeclaration(target=es5).symbols b/tests/baselines/reference/declarationEmitExportDeclaration(target=es5).symbols new file mode 100644 index 0000000000000..a1554f83e8147 --- /dev/null +++ b/tests/baselines/reference/declarationEmitExportDeclaration(target=es5).symbols @@ -0,0 +1,28 @@ +//// [tests/cases/compiler/declarationEmitExportDeclaration.ts] //// + +=== utils.ts === +export function foo() { } +>foo : Symbol(foo, Decl(utils.ts, 0, 0)) + +export function bar() { } +>bar : Symbol(bar, Decl(utils.ts, 0, 25)) + +export interface Buzz { } +>Buzz : Symbol(Buzz, Decl(utils.ts, 1, 25)) + +=== index.ts === +import {foo, bar, Buzz} from "./utils"; +>foo : Symbol(foo, Decl(index.ts, 0, 8)) +>bar : Symbol(bar, Decl(index.ts, 0, 12)) +>Buzz : Symbol(Buzz, Decl(index.ts, 0, 17)) + +foo(); +>foo : Symbol(foo, Decl(index.ts, 0, 8)) + +let obj: Buzz; +>obj : Symbol(obj, Decl(index.ts, 3, 3)) +>Buzz : Symbol(Buzz, Decl(index.ts, 0, 17)) + +export {bar}; +>bar : Symbol(bar, Decl(index.ts, 4, 8)) + diff --git a/tests/baselines/reference/declarationEmitExportDeclaration(target=es5).types b/tests/baselines/reference/declarationEmitExportDeclaration(target=es5).types new file mode 100644 index 0000000000000..021ef92c8a310 --- /dev/null +++ b/tests/baselines/reference/declarationEmitExportDeclaration(target=es5).types @@ -0,0 +1,36 @@ +//// [tests/cases/compiler/declarationEmitExportDeclaration.ts] //// + +=== utils.ts === +export function foo() { } +>foo : () => void +> : ^^^^^^^^^^ + +export function bar() { } +>bar : () => void +> : ^^^^^^^^^^ + +export interface Buzz { } + +=== index.ts === +import {foo, bar, Buzz} from "./utils"; +>foo : () => void +> : ^^^^^^^^^^ +>bar : () => void +> : ^^^^^^^^^^ +>Buzz : any +> : ^^^ + +foo(); +>foo() : void +> : ^^^^ +>foo : () => void +> : ^^^^^^^^^^ + +let obj: Buzz; +>obj : Buzz +> : ^^^^ + +export {bar}; +>bar : () => void +> : ^^^^^^^^^^ + diff --git a/tests/baselines/reference/declarationEmitModuleWithScopeMarker.js b/tests/baselines/reference/declarationEmitModuleWithScopeMarker(target=es2015).js similarity index 100% rename from tests/baselines/reference/declarationEmitModuleWithScopeMarker.js rename to tests/baselines/reference/declarationEmitModuleWithScopeMarker(target=es2015).js diff --git a/tests/baselines/reference/declarationEmitModuleWithScopeMarker.symbols b/tests/baselines/reference/declarationEmitModuleWithScopeMarker(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/declarationEmitModuleWithScopeMarker.symbols rename to tests/baselines/reference/declarationEmitModuleWithScopeMarker(target=es2015).symbols diff --git a/tests/baselines/reference/declarationEmitModuleWithScopeMarker.types b/tests/baselines/reference/declarationEmitModuleWithScopeMarker(target=es2015).types similarity index 100% rename from tests/baselines/reference/declarationEmitModuleWithScopeMarker.types rename to tests/baselines/reference/declarationEmitModuleWithScopeMarker(target=es2015).types diff --git a/tests/baselines/reference/declarationEmitModuleWithScopeMarker(target=es5).js b/tests/baselines/reference/declarationEmitModuleWithScopeMarker(target=es5).js new file mode 100644 index 0000000000000..ca5eb29497f3a --- /dev/null +++ b/tests/baselines/reference/declarationEmitModuleWithScopeMarker(target=es5).js @@ -0,0 +1,27 @@ +//// [tests/cases/compiler/declarationEmitModuleWithScopeMarker.ts] //// + +//// [declarationEmitModuleWithScopeMarker.ts] +declare module "bar" { + var before: typeof func; + + export function normal(): void; + + export default function func(): typeof func; + + var after: typeof func; + + export {} +} + + +//// [declarationEmitModuleWithScopeMarker.js] + + +//// [declarationEmitModuleWithScopeMarker.d.ts] +declare module "bar" { + var before: typeof func; + export function normal(): void; + export default function func(): typeof func; + var after: typeof func; + export {}; +} diff --git a/tests/baselines/reference/declarationEmitModuleWithScopeMarker(target=es5).symbols b/tests/baselines/reference/declarationEmitModuleWithScopeMarker(target=es5).symbols new file mode 100644 index 0000000000000..faa7b460a15aa --- /dev/null +++ b/tests/baselines/reference/declarationEmitModuleWithScopeMarker(target=es5).symbols @@ -0,0 +1,24 @@ +//// [tests/cases/compiler/declarationEmitModuleWithScopeMarker.ts] //// + +=== declarationEmitModuleWithScopeMarker.ts === +declare module "bar" { +>"bar" : Symbol("bar", Decl(declarationEmitModuleWithScopeMarker.ts, 0, 0)) + + var before: typeof func; +>before : Symbol(before, Decl(declarationEmitModuleWithScopeMarker.ts, 1, 7)) +>func : Symbol(func, Decl(declarationEmitModuleWithScopeMarker.ts, 3, 35)) + + export function normal(): void; +>normal : Symbol(normal, Decl(declarationEmitModuleWithScopeMarker.ts, 1, 28)) + + export default function func(): typeof func; +>func : Symbol(func, Decl(declarationEmitModuleWithScopeMarker.ts, 3, 35)) +>func : Symbol(func, Decl(declarationEmitModuleWithScopeMarker.ts, 3, 35)) + + var after: typeof func; +>after : Symbol(after, Decl(declarationEmitModuleWithScopeMarker.ts, 7, 7)) +>func : Symbol(func, Decl(declarationEmitModuleWithScopeMarker.ts, 3, 35)) + + export {} +} + diff --git a/tests/baselines/reference/declarationEmitModuleWithScopeMarker(target=es5).types b/tests/baselines/reference/declarationEmitModuleWithScopeMarker(target=es5).types new file mode 100644 index 0000000000000..ee78f0ea0126c --- /dev/null +++ b/tests/baselines/reference/declarationEmitModuleWithScopeMarker(target=es5).types @@ -0,0 +1,32 @@ +//// [tests/cases/compiler/declarationEmitModuleWithScopeMarker.ts] //// + +=== declarationEmitModuleWithScopeMarker.ts === +declare module "bar" { +>"bar" : typeof import("bar") +> : ^^^^^^^^^^^^^^^^^^^^ + + var before: typeof func; +>before : () => typeof func +> : ^^^^^^ +>func : () => typeof func +> : ^^^^^^ + + export function normal(): void; +>normal : () => void +> : ^^^^^^ + + export default function func(): typeof func; +>func : () => typeof func +> : ^^^^^^ +>func : () => typeof func +> : ^^^^^^ + + var after: typeof func; +>after : () => typeof func +> : ^^^^^^ +>func : () => typeof func +> : ^^^^^^ + + export {} +} + diff --git a/tests/baselines/reference/declarationEmitPrefersPathKindBasedOnBundling.errors.txt b/tests/baselines/reference/declarationEmitPrefersPathKindBasedOnBundling(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/declarationEmitPrefersPathKindBasedOnBundling.errors.txt rename to tests/baselines/reference/declarationEmitPrefersPathKindBasedOnBundling(target=es2015).errors.txt diff --git a/tests/baselines/reference/declarationEmitPrefersPathKindBasedOnBundling(target=es2015).js b/tests/baselines/reference/declarationEmitPrefersPathKindBasedOnBundling(target=es2015).js new file mode 100644 index 0000000000000..20e048fc19102 --- /dev/null +++ b/tests/baselines/reference/declarationEmitPrefersPathKindBasedOnBundling(target=es2015).js @@ -0,0 +1,45 @@ +//// [tests/cases/compiler/declarationEmitPrefersPathKindBasedOnBundling.ts] //// + +//// [scalar.ts] +export interface Scalar { + (): string; + value: number; +} + +export function scalar(value: string): Scalar { + return null as any; +} +//// [spacing.ts] +import { scalar } from '../lib/operators/scalar'; + +export default { + get xs() { + return scalar("14px"); + } +}; + + +//// [scalar.js] +export function scalar(value) { + return null; +} +//// [spacing.js] +import { scalar } from '../lib/operators/scalar'; +export default { + get xs() { + return scalar("14px"); + } +}; + + +//// [scalar.d.ts] +export interface Scalar { + (): string; + value: number; +} +export declare function scalar(value: string): Scalar; +//// [spacing.d.ts] +declare const _default: { + readonly xs: import("../lib/operators/scalar").Scalar; +}; +export default _default; diff --git a/tests/baselines/reference/declarationEmitPrefersPathKindBasedOnBundling.symbols b/tests/baselines/reference/declarationEmitPrefersPathKindBasedOnBundling(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/declarationEmitPrefersPathKindBasedOnBundling.symbols rename to tests/baselines/reference/declarationEmitPrefersPathKindBasedOnBundling(target=es2015).symbols diff --git a/tests/baselines/reference/declarationEmitPrefersPathKindBasedOnBundling.types b/tests/baselines/reference/declarationEmitPrefersPathKindBasedOnBundling(target=es2015).types similarity index 100% rename from tests/baselines/reference/declarationEmitPrefersPathKindBasedOnBundling.types rename to tests/baselines/reference/declarationEmitPrefersPathKindBasedOnBundling(target=es2015).types diff --git a/tests/baselines/reference/declarationEmitPrefersPathKindBasedOnBundling(target=es5).errors.txt b/tests/baselines/reference/declarationEmitPrefersPathKindBasedOnBundling(target=es5).errors.txt new file mode 100644 index 0000000000000..b973b452e13b5 --- /dev/null +++ b/tests/baselines/reference/declarationEmitPrefersPathKindBasedOnBundling(target=es5).errors.txt @@ -0,0 +1,24 @@ +error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + Visit https://aka.ms/ts6 for migration information. + + +!!! error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5101: Visit https://aka.ms/ts6 for migration information. +==== src/lib/operators/scalar.ts (0 errors) ==== + export interface Scalar { + (): string; + value: number; + } + + export function scalar(value: string): Scalar { + return null as any; + } +==== src/settings/spacing.ts (0 errors) ==== + import { scalar } from '../lib/operators/scalar'; + + export default { + get xs() { + return scalar("14px"); + } + }; + \ No newline at end of file diff --git a/tests/baselines/reference/declarationEmitPrefersPathKindBasedOnBundling.js b/tests/baselines/reference/declarationEmitPrefersPathKindBasedOnBundling(target=es5).js similarity index 100% rename from tests/baselines/reference/declarationEmitPrefersPathKindBasedOnBundling.js rename to tests/baselines/reference/declarationEmitPrefersPathKindBasedOnBundling(target=es5).js diff --git a/tests/baselines/reference/declarationEmitPrefersPathKindBasedOnBundling(target=es5).symbols b/tests/baselines/reference/declarationEmitPrefersPathKindBasedOnBundling(target=es5).symbols new file mode 100644 index 0000000000000..c8a925c145e80 --- /dev/null +++ b/tests/baselines/reference/declarationEmitPrefersPathKindBasedOnBundling(target=es5).symbols @@ -0,0 +1,31 @@ +//// [tests/cases/compiler/declarationEmitPrefersPathKindBasedOnBundling.ts] //// + +=== src/lib/operators/scalar.ts === +export interface Scalar { +>Scalar : Symbol(Scalar, Decl(scalar.ts, 0, 0)) + + (): string; + value: number; +>value : Symbol(Scalar.value, Decl(scalar.ts, 1, 12)) +} + +export function scalar(value: string): Scalar { +>scalar : Symbol(scalar, Decl(scalar.ts, 3, 1)) +>value : Symbol(value, Decl(scalar.ts, 5, 23)) +>Scalar : Symbol(Scalar, Decl(scalar.ts, 0, 0)) + + return null as any; +} +=== src/settings/spacing.ts === +import { scalar } from '../lib/operators/scalar'; +>scalar : Symbol(scalar, Decl(spacing.ts, 0, 8)) + +export default { + get xs() { +>xs : Symbol(xs, Decl(spacing.ts, 2, 16)) + + return scalar("14px"); +>scalar : Symbol(scalar, Decl(spacing.ts, 0, 8)) + } +}; + diff --git a/tests/baselines/reference/declarationEmitPrefersPathKindBasedOnBundling(target=es5).types b/tests/baselines/reference/declarationEmitPrefersPathKindBasedOnBundling(target=es5).types new file mode 100644 index 0000000000000..9a755bff3fbe1 --- /dev/null +++ b/tests/baselines/reference/declarationEmitPrefersPathKindBasedOnBundling(target=es5).types @@ -0,0 +1,43 @@ +//// [tests/cases/compiler/declarationEmitPrefersPathKindBasedOnBundling.ts] //// + +=== src/lib/operators/scalar.ts === +export interface Scalar { + (): string; + value: number; +>value : number +> : ^^^^^^ +} + +export function scalar(value: string): Scalar { +>scalar : (value: string) => Scalar +> : ^ ^^ ^^^^^ +>value : string +> : ^^^^^^ + + return null as any; +>null as any : any +> : ^^^ +} +=== src/settings/spacing.ts === +import { scalar } from '../lib/operators/scalar'; +>scalar : (value: string) => import("src/lib/operators/scalar").Scalar +> : ^ ^^ ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^ + +export default { +>{ get xs() { return scalar("14px"); }} : { readonly xs: import("src/lib/operators/scalar").Scalar; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + get xs() { +>xs : import("src/lib/operators/scalar").Scalar +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + return scalar("14px"); +>scalar("14px") : import("src/lib/operators/scalar").Scalar +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>scalar : (value: string) => import("src/lib/operators/scalar").Scalar +> : ^ ^^ ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^ +>"14px" : "14px" +> : ^^^^^^ + } +}; + diff --git a/tests/baselines/reference/declarationEmitPrefersPathKindBasedOnBundling2.errors.txt b/tests/baselines/reference/declarationEmitPrefersPathKindBasedOnBundling2(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/declarationEmitPrefersPathKindBasedOnBundling2.errors.txt rename to tests/baselines/reference/declarationEmitPrefersPathKindBasedOnBundling2(target=es2015).errors.txt diff --git a/tests/baselines/reference/declarationEmitPrefersPathKindBasedOnBundling2.js b/tests/baselines/reference/declarationEmitPrefersPathKindBasedOnBundling2(target=es2015).js similarity index 100% rename from tests/baselines/reference/declarationEmitPrefersPathKindBasedOnBundling2.js rename to tests/baselines/reference/declarationEmitPrefersPathKindBasedOnBundling2(target=es2015).js diff --git a/tests/baselines/reference/declarationEmitPrefersPathKindBasedOnBundling2.symbols b/tests/baselines/reference/declarationEmitPrefersPathKindBasedOnBundling2(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/declarationEmitPrefersPathKindBasedOnBundling2.symbols rename to tests/baselines/reference/declarationEmitPrefersPathKindBasedOnBundling2(target=es2015).symbols diff --git a/tests/baselines/reference/declarationEmitPrefersPathKindBasedOnBundling2.types b/tests/baselines/reference/declarationEmitPrefersPathKindBasedOnBundling2(target=es2015).types similarity index 100% rename from tests/baselines/reference/declarationEmitPrefersPathKindBasedOnBundling2.types rename to tests/baselines/reference/declarationEmitPrefersPathKindBasedOnBundling2(target=es2015).types diff --git a/tests/baselines/reference/declarationEmitPrefersPathKindBasedOnBundling2(target=es5).errors.txt b/tests/baselines/reference/declarationEmitPrefersPathKindBasedOnBundling2(target=es5).errors.txt new file mode 100644 index 0000000000000..ffd31d2848ed2 --- /dev/null +++ b/tests/baselines/reference/declarationEmitPrefersPathKindBasedOnBundling2(target=es5).errors.txt @@ -0,0 +1,28 @@ +error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + Visit https://aka.ms/ts6 for migration information. +error TS5101: Option 'outFile' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5101: Visit https://aka.ms/ts6 for migration information. +!!! error TS5101: Option 'outFile' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== src/lib/operators/scalar.ts (0 errors) ==== + export interface Scalar { + (): string; + value: number; + } + + export function scalar(value: string): Scalar { + return null as any; + } +==== src/settings/spacing.ts (0 errors) ==== + import { scalar } from '../lib/operators/scalar'; + + export default { + get xs() { + return scalar("14px"); + } + }; + \ No newline at end of file diff --git a/tests/baselines/reference/declarationEmitPrefersPathKindBasedOnBundling2(target=es5).js b/tests/baselines/reference/declarationEmitPrefersPathKindBasedOnBundling2(target=es5).js new file mode 100644 index 0000000000000..21a1167f0bad7 --- /dev/null +++ b/tests/baselines/reference/declarationEmitPrefersPathKindBasedOnBundling2(target=es5).js @@ -0,0 +1,55 @@ +//// [tests/cases/compiler/declarationEmitPrefersPathKindBasedOnBundling2.ts] //// + +//// [scalar.ts] +export interface Scalar { + (): string; + value: number; +} + +export function scalar(value: string): Scalar { + return null as any; +} +//// [spacing.ts] +import { scalar } from '../lib/operators/scalar'; + +export default { + get xs() { + return scalar("14px"); + } +}; + + +//// [dist.js] +define("lib/operators/scalar", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.scalar = scalar; + function scalar(value) { + return null; + } +}); +define("settings/spacing", ["require", "exports", "lib/operators/scalar"], function (require, exports, scalar_1) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.default = { + get xs() { + return (0, scalar_1.scalar)("14px"); + } + }; +}); + + +//// [dist.d.ts] +declare module "lib/operators/scalar" { + export interface Scalar { + (): string; + value: number; + } + export function scalar(value: string): Scalar; +} +declare module "settings/spacing" { + const _default: { + readonly xs: import("lib/operators/scalar").Scalar; + }; + export default _default; +} diff --git a/tests/baselines/reference/declarationEmitPrefersPathKindBasedOnBundling2(target=es5).symbols b/tests/baselines/reference/declarationEmitPrefersPathKindBasedOnBundling2(target=es5).symbols new file mode 100644 index 0000000000000..9f73919c18da5 --- /dev/null +++ b/tests/baselines/reference/declarationEmitPrefersPathKindBasedOnBundling2(target=es5).symbols @@ -0,0 +1,31 @@ +//// [tests/cases/compiler/declarationEmitPrefersPathKindBasedOnBundling2.ts] //// + +=== src/lib/operators/scalar.ts === +export interface Scalar { +>Scalar : Symbol(Scalar, Decl(scalar.ts, 0, 0)) + + (): string; + value: number; +>value : Symbol(Scalar.value, Decl(scalar.ts, 1, 12)) +} + +export function scalar(value: string): Scalar { +>scalar : Symbol(scalar, Decl(scalar.ts, 3, 1)) +>value : Symbol(value, Decl(scalar.ts, 5, 23)) +>Scalar : Symbol(Scalar, Decl(scalar.ts, 0, 0)) + + return null as any; +} +=== src/settings/spacing.ts === +import { scalar } from '../lib/operators/scalar'; +>scalar : Symbol(scalar, Decl(spacing.ts, 0, 8)) + +export default { + get xs() { +>xs : Symbol(xs, Decl(spacing.ts, 2, 16)) + + return scalar("14px"); +>scalar : Symbol(scalar, Decl(spacing.ts, 0, 8)) + } +}; + diff --git a/tests/baselines/reference/declarationEmitPrefersPathKindBasedOnBundling2(target=es5).types b/tests/baselines/reference/declarationEmitPrefersPathKindBasedOnBundling2(target=es5).types new file mode 100644 index 0000000000000..317bce8a19b24 --- /dev/null +++ b/tests/baselines/reference/declarationEmitPrefersPathKindBasedOnBundling2(target=es5).types @@ -0,0 +1,43 @@ +//// [tests/cases/compiler/declarationEmitPrefersPathKindBasedOnBundling2.ts] //// + +=== src/lib/operators/scalar.ts === +export interface Scalar { + (): string; + value: number; +>value : number +> : ^^^^^^ +} + +export function scalar(value: string): Scalar { +>scalar : (value: string) => Scalar +> : ^ ^^ ^^^^^ +>value : string +> : ^^^^^^ + + return null as any; +>null as any : any +> : ^^^ +} +=== src/settings/spacing.ts === +import { scalar } from '../lib/operators/scalar'; +>scalar : (value: string) => import("src/lib/operators/scalar").Scalar +> : ^ ^^ ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^ + +export default { +>{ get xs() { return scalar("14px"); }} : { readonly xs: import("src/lib/operators/scalar").Scalar; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + get xs() { +>xs : import("src/lib/operators/scalar").Scalar +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + return scalar("14px"); +>scalar("14px") : import("src/lib/operators/scalar").Scalar +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>scalar : (value: string) => import("src/lib/operators/scalar").Scalar +> : ^ ^^ ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^ +>"14px" : "14px" +> : ^^^^^^ + } +}; + diff --git a/tests/baselines/reference/declarationEmitProtectedMembers(target=es2015).js b/tests/baselines/reference/declarationEmitProtectedMembers(target=es2015).js new file mode 100644 index 0000000000000..ea860c1137f3b --- /dev/null +++ b/tests/baselines/reference/declarationEmitProtectedMembers(target=es2015).js @@ -0,0 +1,122 @@ +//// [tests/cases/compiler/declarationEmitProtectedMembers.ts] //// + +//// [declarationEmitProtectedMembers.ts] +// Class with protected members +class C1 { + protected x: number; + + protected f() { + return this.x; + } + + protected set accessor(a: number) { } + protected get accessor() { return 0; } + + protected static sx: number; + + protected static sf() { + return this.sx; + } + + protected static set staticSetter(a: number) { } + protected static get staticGetter() { return 0; } +} + +// Derived class overriding protected members +class C2 extends C1 { + protected f() { + return super.f() + this.x; + } + protected static sf() { + return super.sf() + this.sx; + } +} + +// Derived class making protected members public +class C3 extends C2 { + x: number; + static sx: number; + f() { + return super.f(); + } + static sf() { + return super.sf(); + } + + static get staticGetter() { return 1; } +} + +// Protected properties in constructors +class C4 { + constructor(protected a: number, protected b) { } +} + +//// [declarationEmitProtectedMembers.js] +// Class with protected members +class C1 { + f() { + return this.x; + } + set accessor(a) { } + get accessor() { return 0; } + static sf() { + return this.sx; + } + static set staticSetter(a) { } + static get staticGetter() { return 0; } +} +// Derived class overriding protected members +class C2 extends C1 { + f() { + return super.f() + this.x; + } + static sf() { + return super.sf() + this.sx; + } +} +// Derived class making protected members public +class C3 extends C2 { + f() { + return super.f(); + } + static sf() { + return super.sf(); + } + static get staticGetter() { return 1; } +} +// Protected properties in constructors +class C4 { + constructor(a, b) { + this.a = a; + this.b = b; + } +} + + +//// [declarationEmitProtectedMembers.d.ts] +declare class C1 { + protected x: number; + protected f(): number; + protected set accessor(a: number); + protected get accessor(): number; + protected static sx: number; + protected static sf(): number; + protected static set staticSetter(a: number); + protected static get staticGetter(): number; +} +declare class C2 extends C1 { + protected f(): number; + protected static sf(): number; +} +declare class C3 extends C2 { + x: number; + static sx: number; + f(): number; + static sf(): number; + static get staticGetter(): number; +} +declare class C4 { + protected a: number; + protected b: any; + constructor(a: number, b: any); +} diff --git a/tests/baselines/reference/declarationEmitProtectedMembers.symbols b/tests/baselines/reference/declarationEmitProtectedMembers(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/declarationEmitProtectedMembers.symbols rename to tests/baselines/reference/declarationEmitProtectedMembers(target=es2015).symbols diff --git a/tests/baselines/reference/declarationEmitProtectedMembers.types b/tests/baselines/reference/declarationEmitProtectedMembers(target=es2015).types similarity index 100% rename from tests/baselines/reference/declarationEmitProtectedMembers.types rename to tests/baselines/reference/declarationEmitProtectedMembers(target=es2015).types diff --git a/tests/baselines/reference/declarationEmitProtectedMembers.js b/tests/baselines/reference/declarationEmitProtectedMembers(target=es5).js similarity index 100% rename from tests/baselines/reference/declarationEmitProtectedMembers.js rename to tests/baselines/reference/declarationEmitProtectedMembers(target=es5).js diff --git a/tests/baselines/reference/declarationEmitProtectedMembers(target=es5).symbols b/tests/baselines/reference/declarationEmitProtectedMembers(target=es5).symbols new file mode 100644 index 0000000000000..b80bd094dcd24 --- /dev/null +++ b/tests/baselines/reference/declarationEmitProtectedMembers(target=es5).symbols @@ -0,0 +1,115 @@ +//// [tests/cases/compiler/declarationEmitProtectedMembers.ts] //// + +=== declarationEmitProtectedMembers.ts === +// Class with protected members +class C1 { +>C1 : Symbol(C1, Decl(declarationEmitProtectedMembers.ts, 0, 0)) + + protected x: number; +>x : Symbol(C1.x, Decl(declarationEmitProtectedMembers.ts, 1, 10)) + + protected f() { +>f : Symbol(C1.f, Decl(declarationEmitProtectedMembers.ts, 2, 24)) + + return this.x; +>this.x : Symbol(C1.x, Decl(declarationEmitProtectedMembers.ts, 1, 10)) +>this : Symbol(C1, Decl(declarationEmitProtectedMembers.ts, 0, 0)) +>x : Symbol(C1.x, Decl(declarationEmitProtectedMembers.ts, 1, 10)) + } + + protected set accessor(a: number) { } +>accessor : Symbol(C1.accessor, Decl(declarationEmitProtectedMembers.ts, 6, 5), Decl(declarationEmitProtectedMembers.ts, 8, 41)) +>a : Symbol(a, Decl(declarationEmitProtectedMembers.ts, 8, 27)) + + protected get accessor() { return 0; } +>accessor : Symbol(C1.accessor, Decl(declarationEmitProtectedMembers.ts, 6, 5), Decl(declarationEmitProtectedMembers.ts, 8, 41)) + + protected static sx: number; +>sx : Symbol(C1.sx, Decl(declarationEmitProtectedMembers.ts, 9, 42)) + + protected static sf() { +>sf : Symbol(C1.sf, Decl(declarationEmitProtectedMembers.ts, 11, 32)) + + return this.sx; +>this.sx : Symbol(C1.sx, Decl(declarationEmitProtectedMembers.ts, 9, 42)) +>this : Symbol(C1, Decl(declarationEmitProtectedMembers.ts, 0, 0)) +>sx : Symbol(C1.sx, Decl(declarationEmitProtectedMembers.ts, 9, 42)) + } + + protected static set staticSetter(a: number) { } +>staticSetter : Symbol(C1.staticSetter, Decl(declarationEmitProtectedMembers.ts, 15, 5)) +>a : Symbol(a, Decl(declarationEmitProtectedMembers.ts, 17, 38)) + + protected static get staticGetter() { return 0; } +>staticGetter : Symbol(C1.staticGetter, Decl(declarationEmitProtectedMembers.ts, 17, 52)) +} + +// Derived class overriding protected members +class C2 extends C1 { +>C2 : Symbol(C2, Decl(declarationEmitProtectedMembers.ts, 19, 1)) +>C1 : Symbol(C1, Decl(declarationEmitProtectedMembers.ts, 0, 0)) + + protected f() { +>f : Symbol(C2.f, Decl(declarationEmitProtectedMembers.ts, 22, 21)) + + return super.f() + this.x; +>super.f : Symbol(C1.f, Decl(declarationEmitProtectedMembers.ts, 2, 24)) +>super : Symbol(C1, Decl(declarationEmitProtectedMembers.ts, 0, 0)) +>f : Symbol(C1.f, Decl(declarationEmitProtectedMembers.ts, 2, 24)) +>this.x : Symbol(C1.x, Decl(declarationEmitProtectedMembers.ts, 1, 10)) +>this : Symbol(C2, Decl(declarationEmitProtectedMembers.ts, 19, 1)) +>x : Symbol(C1.x, Decl(declarationEmitProtectedMembers.ts, 1, 10)) + } + protected static sf() { +>sf : Symbol(C2.sf, Decl(declarationEmitProtectedMembers.ts, 25, 5)) + + return super.sf() + this.sx; +>super.sf : Symbol(C1.sf, Decl(declarationEmitProtectedMembers.ts, 11, 32)) +>super : Symbol(C1, Decl(declarationEmitProtectedMembers.ts, 0, 0)) +>sf : Symbol(C1.sf, Decl(declarationEmitProtectedMembers.ts, 11, 32)) +>this.sx : Symbol(C1.sx, Decl(declarationEmitProtectedMembers.ts, 9, 42)) +>this : Symbol(C2, Decl(declarationEmitProtectedMembers.ts, 19, 1)) +>sx : Symbol(C1.sx, Decl(declarationEmitProtectedMembers.ts, 9, 42)) + } +} + +// Derived class making protected members public +class C3 extends C2 { +>C3 : Symbol(C3, Decl(declarationEmitProtectedMembers.ts, 29, 1)) +>C2 : Symbol(C2, Decl(declarationEmitProtectedMembers.ts, 19, 1)) + + x: number; +>x : Symbol(C3.x, Decl(declarationEmitProtectedMembers.ts, 32, 21)) + + static sx: number; +>sx : Symbol(C3.sx, Decl(declarationEmitProtectedMembers.ts, 33, 14)) + + f() { +>f : Symbol(C3.f, Decl(declarationEmitProtectedMembers.ts, 34, 22)) + + return super.f(); +>super.f : Symbol(C2.f, Decl(declarationEmitProtectedMembers.ts, 22, 21)) +>super : Symbol(C2, Decl(declarationEmitProtectedMembers.ts, 19, 1)) +>f : Symbol(C2.f, Decl(declarationEmitProtectedMembers.ts, 22, 21)) + } + static sf() { +>sf : Symbol(C3.sf, Decl(declarationEmitProtectedMembers.ts, 37, 5)) + + return super.sf(); +>super.sf : Symbol(C2.sf, Decl(declarationEmitProtectedMembers.ts, 25, 5)) +>super : Symbol(C2, Decl(declarationEmitProtectedMembers.ts, 19, 1)) +>sf : Symbol(C2.sf, Decl(declarationEmitProtectedMembers.ts, 25, 5)) + } + + static get staticGetter() { return 1; } +>staticGetter : Symbol(C3.staticGetter, Decl(declarationEmitProtectedMembers.ts, 40, 5)) +} + +// Protected properties in constructors +class C4 { +>C4 : Symbol(C4, Decl(declarationEmitProtectedMembers.ts, 43, 1)) + + constructor(protected a: number, protected b) { } +>a : Symbol(C4.a, Decl(declarationEmitProtectedMembers.ts, 47, 16)) +>b : Symbol(C4.b, Decl(declarationEmitProtectedMembers.ts, 47, 36)) +} diff --git a/tests/baselines/reference/declarationEmitProtectedMembers(target=es5).types b/tests/baselines/reference/declarationEmitProtectedMembers(target=es5).types new file mode 100644 index 0000000000000..8d5f29fb516b1 --- /dev/null +++ b/tests/baselines/reference/declarationEmitProtectedMembers(target=es5).types @@ -0,0 +1,181 @@ +//// [tests/cases/compiler/declarationEmitProtectedMembers.ts] //// + +=== declarationEmitProtectedMembers.ts === +// Class with protected members +class C1 { +>C1 : C1 +> : ^^ + + protected x: number; +>x : number +> : ^^^^^^ + + protected f() { +>f : () => number +> : ^^^^^^^^^^^^ + + return this.x; +>this.x : number +> : ^^^^^^ +>this : this +> : ^^^^ +>x : number +> : ^^^^^^ + } + + protected set accessor(a: number) { } +>accessor : number +> : ^^^^^^ +>a : number +> : ^^^^^^ + + protected get accessor() { return 0; } +>accessor : number +> : ^^^^^^ +>0 : 0 +> : ^ + + protected static sx: number; +>sx : number +> : ^^^^^^ + + protected static sf() { +>sf : () => number +> : ^^^^^^^^^^^^ + + return this.sx; +>this.sx : number +> : ^^^^^^ +>this : typeof C1 +> : ^^^^^^^^^ +>sx : number +> : ^^^^^^ + } + + protected static set staticSetter(a: number) { } +>staticSetter : number +> : ^^^^^^ +>a : number +> : ^^^^^^ + + protected static get staticGetter() { return 0; } +>staticGetter : number +> : ^^^^^^ +>0 : 0 +> : ^ +} + +// Derived class overriding protected members +class C2 extends C1 { +>C2 : C2 +> : ^^ +>C1 : C1 +> : ^^ + + protected f() { +>f : () => number +> : ^^^^^^^^^^^^ + + return super.f() + this.x; +>super.f() + this.x : number +> : ^^^^^^ +>super.f() : number +> : ^^^^^^ +>super.f : () => number +> : ^^^^^^^^^^^^ +>super : C1 +> : ^^ +>f : () => number +> : ^^^^^^^^^^^^ +>this.x : number +> : ^^^^^^ +>this : this +> : ^^^^ +>x : number +> : ^^^^^^ + } + protected static sf() { +>sf : () => number +> : ^^^^^^^^^^^^ + + return super.sf() + this.sx; +>super.sf() + this.sx : number +> : ^^^^^^ +>super.sf() : number +> : ^^^^^^ +>super.sf : () => number +> : ^^^^^^^^^^^^ +>super : typeof C1 +> : ^^^^^^^^^ +>sf : () => number +> : ^^^^^^^^^^^^ +>this.sx : number +> : ^^^^^^ +>this : typeof C2 +> : ^^^^^^^^^ +>sx : number +> : ^^^^^^ + } +} + +// Derived class making protected members public +class C3 extends C2 { +>C3 : C3 +> : ^^ +>C2 : C2 +> : ^^ + + x: number; +>x : number +> : ^^^^^^ + + static sx: number; +>sx : number +> : ^^^^^^ + + f() { +>f : () => number +> : ^^^^^^^^^^^^ + + return super.f(); +>super.f() : number +> : ^^^^^^ +>super.f : () => number +> : ^^^^^^^^^^^^ +>super : C2 +> : ^^ +>f : () => number +> : ^^^^^^^^^^^^ + } + static sf() { +>sf : () => number +> : ^^^^^^^^^^^^ + + return super.sf(); +>super.sf() : number +> : ^^^^^^ +>super.sf : () => number +> : ^^^^^^^^^^^^ +>super : typeof C2 +> : ^^^^^^^^^ +>sf : () => number +> : ^^^^^^^^^^^^ + } + + static get staticGetter() { return 1; } +>staticGetter : number +> : ^^^^^^ +>1 : 1 +> : ^ +} + +// Protected properties in constructors +class C4 { +>C4 : C4 +> : ^^ + + constructor(protected a: number, protected b) { } +>a : number +> : ^^^^^^ +>b : any +} diff --git a/tests/baselines/reference/declarationEmitSymlinkPaths(target=es2015).js b/tests/baselines/reference/declarationEmitSymlinkPaths(target=es2015).js new file mode 100644 index 0000000000000..96369a69b5507 --- /dev/null +++ b/tests/baselines/reference/declarationEmitSymlinkPaths(target=es2015).js @@ -0,0 +1,42 @@ +//// [tests/cases/compiler/declarationEmitSymlinkPaths.ts] //// + +//// [package.json] +{ + "name": "search", + "version": "0.0.1", + "main": "lib/index.js", + "types": "lib/index.d.ts", + "sideEffects": false +} +//// [index.d.ts] +export declare function test (a: () => T): () => T; +//// [NotificationAPIUtils.ts] +export type NotificationRequest = {}; +export type NotificationResponse = {}; +export function getNotification(): NotificationResponse { + return {}; +} +//// [NotificationStore.ts] +import { test } from "search/lib/index"; +import { getNotification } from "../API/NotificationAPIUtils"; + +export const NotificationScenario = test( + getNotification +); + +//// [NotificationAPIUtils.js] +export function getNotification() { + return {}; +} +//// [NotificationStore.js] +import { test } from "search/lib/index"; +import { getNotification } from "../API/NotificationAPIUtils"; +export const NotificationScenario = test(getNotification); + + +//// [NotificationAPIUtils.d.ts] +export type NotificationRequest = {}; +export type NotificationResponse = {}; +export declare function getNotification(): NotificationResponse; +//// [NotificationStore.d.ts] +export declare const NotificationScenario: () => import("../API/NotificationAPIUtils").NotificationResponse; diff --git a/tests/baselines/reference/declarationEmitSymlinkPaths.symbols b/tests/baselines/reference/declarationEmitSymlinkPaths(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/declarationEmitSymlinkPaths.symbols rename to tests/baselines/reference/declarationEmitSymlinkPaths(target=es2015).symbols diff --git a/tests/baselines/reference/declarationEmitSymlinkPaths.types b/tests/baselines/reference/declarationEmitSymlinkPaths(target=es2015).types similarity index 100% rename from tests/baselines/reference/declarationEmitSymlinkPaths.types rename to tests/baselines/reference/declarationEmitSymlinkPaths(target=es2015).types diff --git a/tests/baselines/reference/declarationEmitSymlinkPaths.js b/tests/baselines/reference/declarationEmitSymlinkPaths(target=es5).js similarity index 100% rename from tests/baselines/reference/declarationEmitSymlinkPaths.js rename to tests/baselines/reference/declarationEmitSymlinkPaths(target=es5).js diff --git a/tests/baselines/reference/declarationEmitSymlinkPaths(target=es5).symbols b/tests/baselines/reference/declarationEmitSymlinkPaths(target=es5).symbols new file mode 100644 index 0000000000000..e87a3124e024c --- /dev/null +++ b/tests/baselines/reference/declarationEmitSymlinkPaths(target=es5).symbols @@ -0,0 +1,38 @@ +//// [tests/cases/compiler/declarationEmitSymlinkPaths.ts] //// + +=== /packages/search/lib/index.d.ts === +export declare function test (a: () => T): () => T; +>test : Symbol(test, Decl(index.d.ts, 0, 0)) +>T : Symbol(T, Decl(index.d.ts, 0, 29)) +>a : Symbol(a, Decl(index.d.ts, 0, 33)) +>T : Symbol(T, Decl(index.d.ts, 0, 29)) +>T : Symbol(T, Decl(index.d.ts, 0, 29)) + +=== /packages/search-prefix/src/API/NotificationAPIUtils.ts === +export type NotificationRequest = {}; +>NotificationRequest : Symbol(NotificationRequest, Decl(NotificationAPIUtils.ts, 0, 0)) + +export type NotificationResponse = {}; +>NotificationResponse : Symbol(NotificationResponse, Decl(NotificationAPIUtils.ts, 0, 37)) + +export function getNotification(): NotificationResponse { +>getNotification : Symbol(getNotification, Decl(NotificationAPIUtils.ts, 1, 38)) +>NotificationResponse : Symbol(NotificationResponse, Decl(NotificationAPIUtils.ts, 0, 37)) + + return {}; +} +=== /packages/search-prefix/src/Store/NotificationStore.ts === +import { test } from "search/lib/index"; +>test : Symbol(test, Decl(NotificationStore.ts, 0, 8)) + +import { getNotification } from "../API/NotificationAPIUtils"; +>getNotification : Symbol(getNotification, Decl(NotificationStore.ts, 1, 8)) + +export const NotificationScenario = test( +>NotificationScenario : Symbol(NotificationScenario, Decl(NotificationStore.ts, 3, 12)) +>test : Symbol(test, Decl(NotificationStore.ts, 0, 8)) + + getNotification +>getNotification : Symbol(getNotification, Decl(NotificationStore.ts, 1, 8)) + +); diff --git a/tests/baselines/reference/declarationEmitSymlinkPaths(target=es5).types b/tests/baselines/reference/declarationEmitSymlinkPaths(target=es5).types new file mode 100644 index 0000000000000..cd404eacb0a32 --- /dev/null +++ b/tests/baselines/reference/declarationEmitSymlinkPaths(target=es5).types @@ -0,0 +1,48 @@ +//// [tests/cases/compiler/declarationEmitSymlinkPaths.ts] //// + +=== /packages/search/lib/index.d.ts === +export declare function test (a: () => T): () => T; +>test : (a: () => T) => () => T +> : ^ ^^ ^^ ^^^^^ +>a : () => T +> : ^^^^^^ + +=== /packages/search-prefix/src/API/NotificationAPIUtils.ts === +export type NotificationRequest = {}; +>NotificationRequest : NotificationRequest +> : ^^^^^^^^^^^^^^^^^^^ + +export type NotificationResponse = {}; +>NotificationResponse : NotificationResponse +> : ^^^^^^^^^^^^^^^^^^^^ + +export function getNotification(): NotificationResponse { +>getNotification : () => NotificationResponse +> : ^^^^^^ + + return {}; +>{} : {} +> : ^^ +} +=== /packages/search-prefix/src/Store/NotificationStore.ts === +import { test } from "search/lib/index"; +>test : (a: () => T) => () => T +> : ^ ^^ ^^ ^^^^^ + +import { getNotification } from "../API/NotificationAPIUtils"; +>getNotification : () => import("/packages/search-prefix/src/API/NotificationAPIUtils").NotificationResponse +> : ^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ + +export const NotificationScenario = test( +>NotificationScenario : () => import("/packages/search-prefix/src/API/NotificationAPIUtils").NotificationResponse +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>test( getNotification) : () => import("/packages/search-prefix/src/API/NotificationAPIUtils").NotificationResponse +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>test : (a: () => T) => () => T +> : ^ ^^ ^^ ^^^^^ + + getNotification +>getNotification : () => import("/packages/search-prefix/src/API/NotificationAPIUtils").NotificationResponse +> : ^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ + +); diff --git a/tests/baselines/reference/declarationEmitUnknownImport.errors.txt b/tests/baselines/reference/declarationEmitUnknownImport(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/declarationEmitUnknownImport.errors.txt rename to tests/baselines/reference/declarationEmitUnknownImport(target=es2015).errors.txt diff --git a/tests/baselines/reference/declarationEmitUnknownImport.js b/tests/baselines/reference/declarationEmitUnknownImport(target=es2015).js similarity index 100% rename from tests/baselines/reference/declarationEmitUnknownImport.js rename to tests/baselines/reference/declarationEmitUnknownImport(target=es2015).js diff --git a/tests/baselines/reference/declarationEmitUnknownImport.symbols b/tests/baselines/reference/declarationEmitUnknownImport(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/declarationEmitUnknownImport.symbols rename to tests/baselines/reference/declarationEmitUnknownImport(target=es2015).symbols diff --git a/tests/baselines/reference/declarationEmitUnknownImport.types b/tests/baselines/reference/declarationEmitUnknownImport(target=es2015).types similarity index 100% rename from tests/baselines/reference/declarationEmitUnknownImport.types rename to tests/baselines/reference/declarationEmitUnknownImport(target=es2015).types diff --git a/tests/baselines/reference/declarationEmitUnknownImport(target=es5).errors.txt b/tests/baselines/reference/declarationEmitUnknownImport(target=es5).errors.txt new file mode 100644 index 0000000000000..ffde8f5e80f21 --- /dev/null +++ b/tests/baselines/reference/declarationEmitUnknownImport(target=es5).errors.txt @@ -0,0 +1,14 @@ +declarationEmitUnknownImport.ts(1,1): error TS2303: Circular definition of import alias 'Foo'. +declarationEmitUnknownImport.ts(1,14): error TS2304: Cannot find name 'SomeNonExistingName'. +declarationEmitUnknownImport.ts(1,14): error TS2503: Cannot find namespace 'SomeNonExistingName'. + + +==== declarationEmitUnknownImport.ts (3 errors) ==== + import Foo = SomeNonExistingName + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2303: Circular definition of import alias 'Foo'. + ~~~~~~~~~~~~~~~~~~~ +!!! error TS2304: Cannot find name 'SomeNonExistingName'. + ~~~~~~~~~~~~~~~~~~~ +!!! error TS2503: Cannot find namespace 'SomeNonExistingName'. + export {Foo} \ No newline at end of file diff --git a/tests/baselines/reference/declarationEmitUnknownImport(target=es5).js b/tests/baselines/reference/declarationEmitUnknownImport(target=es5).js new file mode 100644 index 0000000000000..09d55a0d35c13 --- /dev/null +++ b/tests/baselines/reference/declarationEmitUnknownImport(target=es5).js @@ -0,0 +1,17 @@ +//// [tests/cases/compiler/declarationEmitUnknownImport.ts] //// + +//// [declarationEmitUnknownImport.ts] +import Foo = SomeNonExistingName +export {Foo} + +//// [declarationEmitUnknownImport.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Foo = void 0; +var Foo = SomeNonExistingName; +exports.Foo = Foo; + + +//// [declarationEmitUnknownImport.d.ts] +import Foo = SomeNonExistingName; +export { Foo }; diff --git a/tests/baselines/reference/declarationEmitUnknownImport(target=es5).symbols b/tests/baselines/reference/declarationEmitUnknownImport(target=es5).symbols new file mode 100644 index 0000000000000..ba615fd6e17f6 --- /dev/null +++ b/tests/baselines/reference/declarationEmitUnknownImport(target=es5).symbols @@ -0,0 +1,9 @@ +//// [tests/cases/compiler/declarationEmitUnknownImport.ts] //// + +=== declarationEmitUnknownImport.ts === +import Foo = SomeNonExistingName +>Foo : Symbol(Foo, Decl(declarationEmitUnknownImport.ts, 0, 0)) + +export {Foo} +>Foo : Symbol(Foo, Decl(declarationEmitUnknownImport.ts, 1, 8)) + diff --git a/tests/baselines/reference/declarationEmitUnknownImport(target=es5).types b/tests/baselines/reference/declarationEmitUnknownImport(target=es5).types new file mode 100644 index 0000000000000..08455e9f9983f --- /dev/null +++ b/tests/baselines/reference/declarationEmitUnknownImport(target=es5).types @@ -0,0 +1,13 @@ +//// [tests/cases/compiler/declarationEmitUnknownImport.ts] //// + +=== declarationEmitUnknownImport.ts === +import Foo = SomeNonExistingName +>Foo : any +> : ^^^ +>SomeNonExistingName : any +> : ^^^ + +export {Foo} +>Foo : any +> : ^^^ + diff --git a/tests/baselines/reference/declarationEmitUnknownImport2.errors.txt b/tests/baselines/reference/declarationEmitUnknownImport2(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/declarationEmitUnknownImport2.errors.txt rename to tests/baselines/reference/declarationEmitUnknownImport2(target=es2015).errors.txt diff --git a/tests/baselines/reference/declarationEmitUnknownImport2.js b/tests/baselines/reference/declarationEmitUnknownImport2(target=es2015).js similarity index 100% rename from tests/baselines/reference/declarationEmitUnknownImport2.js rename to tests/baselines/reference/declarationEmitUnknownImport2(target=es2015).js diff --git a/tests/baselines/reference/declarationEmitUnknownImport2.symbols b/tests/baselines/reference/declarationEmitUnknownImport2(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/declarationEmitUnknownImport2.symbols rename to tests/baselines/reference/declarationEmitUnknownImport2(target=es2015).symbols diff --git a/tests/baselines/reference/declarationEmitUnknownImport2.types b/tests/baselines/reference/declarationEmitUnknownImport2(target=es2015).types similarity index 100% rename from tests/baselines/reference/declarationEmitUnknownImport2.types rename to tests/baselines/reference/declarationEmitUnknownImport2(target=es2015).types diff --git a/tests/baselines/reference/declarationEmitUnknownImport2(target=es5).errors.txt b/tests/baselines/reference/declarationEmitUnknownImport2(target=es5).errors.txt new file mode 100644 index 0000000000000..37d7841f4b6b3 --- /dev/null +++ b/tests/baselines/reference/declarationEmitUnknownImport2(target=es5).errors.txt @@ -0,0 +1,20 @@ +declarationEmitUnknownImport2.ts(1,1): error TS2303: Circular definition of import alias 'Foo'. +declarationEmitUnknownImport2.ts(1,12): error TS1005: '=' expected. +declarationEmitUnknownImport2.ts(1,12): error TS2304: Cannot find name 'From'. +declarationEmitUnknownImport2.ts(1,12): error TS2503: Cannot find namespace 'From'. +declarationEmitUnknownImport2.ts(1,17): error TS1005: ';' expected. + + +==== declarationEmitUnknownImport2.ts (5 errors) ==== + import Foo From './Foo'; // Syntax error + ~~~~~~~~~~~~~~~ +!!! error TS2303: Circular definition of import alias 'Foo'. + ~~~~ +!!! error TS1005: '=' expected. + ~~~~ +!!! error TS2304: Cannot find name 'From'. + ~~~~ +!!! error TS2503: Cannot find namespace 'From'. + ~~~~~~~ +!!! error TS1005: ';' expected. + export default Foo \ No newline at end of file diff --git a/tests/baselines/reference/declarationEmitUnknownImport2(target=es5).js b/tests/baselines/reference/declarationEmitUnknownImport2(target=es5).js new file mode 100644 index 0000000000000..62350a39a0e3b --- /dev/null +++ b/tests/baselines/reference/declarationEmitUnknownImport2(target=es5).js @@ -0,0 +1,17 @@ +//// [tests/cases/compiler/declarationEmitUnknownImport2.ts] //// + +//// [declarationEmitUnknownImport2.ts] +import Foo From './Foo'; // Syntax error +export default Foo + +//// [declarationEmitUnknownImport2.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var Foo = From; +'./Foo'; // Syntax error +exports.default = Foo; + + +//// [declarationEmitUnknownImport2.d.ts] +import Foo = From; +export default Foo; diff --git a/tests/baselines/reference/declarationEmitUnknownImport2(target=es5).symbols b/tests/baselines/reference/declarationEmitUnknownImport2(target=es5).symbols new file mode 100644 index 0000000000000..db15c53303e9c --- /dev/null +++ b/tests/baselines/reference/declarationEmitUnknownImport2(target=es5).symbols @@ -0,0 +1,9 @@ +//// [tests/cases/compiler/declarationEmitUnknownImport2.ts] //// + +=== declarationEmitUnknownImport2.ts === +import Foo From './Foo'; // Syntax error +>Foo : Symbol(Foo, Decl(declarationEmitUnknownImport2.ts, 0, 0)) + +export default Foo +>Foo : Symbol(Foo, Decl(declarationEmitUnknownImport2.ts, 0, 0)) + diff --git a/tests/baselines/reference/declarationEmitUnknownImport2(target=es5).types b/tests/baselines/reference/declarationEmitUnknownImport2(target=es5).types new file mode 100644 index 0000000000000..c01cebf35e5fd --- /dev/null +++ b/tests/baselines/reference/declarationEmitUnknownImport2(target=es5).types @@ -0,0 +1,15 @@ +//// [tests/cases/compiler/declarationEmitUnknownImport2.ts] //// + +=== declarationEmitUnknownImport2.ts === +import Foo From './Foo'; // Syntax error +>Foo : any +> : ^^^ +>From : any +> : ^^^ +>'./Foo' : "./Foo" +> : ^^^^^^^ + +export default Foo +>Foo : any +> : ^^^ + diff --git a/tests/baselines/reference/declarationEmitUnnessesaryTypeReferenceNotAdded(target=es2015).js b/tests/baselines/reference/declarationEmitUnnessesaryTypeReferenceNotAdded(target=es2015).js new file mode 100644 index 0000000000000..af06008a1b86b --- /dev/null +++ b/tests/baselines/reference/declarationEmitUnnessesaryTypeReferenceNotAdded(target=es2015).js @@ -0,0 +1,46 @@ +//// [tests/cases/compiler/declarationEmitUnnessesaryTypeReferenceNotAdded.ts] //// + +//// [minimist.d.ts] +declare namespace thing { + interface ParsedArgs {} +} +declare function thing(x: any): thing.ParsedArgs; +export = thing; +//// [package.json] +{ + "name": "minimist", + "version": "0.0.1", + "types": "./minimist.d.ts" +} +//// [process.d.ts] +declare const thing: any; +export = thing; +//// [package.json] +{ + "name": "process", + "version": "0.0.1", + "types": "./process.d.ts" +} +//// [index.ts] +import minimist = require('minimist'); +import process = require('process'); + +export default function parseArgs(): minimist.ParsedArgs { + return minimist(process.argv.slice(2)); +} + + +//// [index.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = parseArgs; +const minimist = require("minimist"); +const process = require("process"); +function parseArgs() { + return minimist(process.argv.slice(2)); +} + + +//// [index.d.ts] +import minimist = require('minimist'); +export default function parseArgs(): minimist.ParsedArgs; diff --git a/tests/baselines/reference/declarationEmitUnnessesaryTypeReferenceNotAdded.symbols b/tests/baselines/reference/declarationEmitUnnessesaryTypeReferenceNotAdded(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/declarationEmitUnnessesaryTypeReferenceNotAdded.symbols rename to tests/baselines/reference/declarationEmitUnnessesaryTypeReferenceNotAdded(target=es2015).symbols diff --git a/tests/baselines/reference/declarationEmitUnnessesaryTypeReferenceNotAdded.types b/tests/baselines/reference/declarationEmitUnnessesaryTypeReferenceNotAdded(target=es2015).types similarity index 100% rename from tests/baselines/reference/declarationEmitUnnessesaryTypeReferenceNotAdded.types rename to tests/baselines/reference/declarationEmitUnnessesaryTypeReferenceNotAdded(target=es2015).types diff --git a/tests/baselines/reference/declarationEmitUnnessesaryTypeReferenceNotAdded.js b/tests/baselines/reference/declarationEmitUnnessesaryTypeReferenceNotAdded(target=es5).js similarity index 100% rename from tests/baselines/reference/declarationEmitUnnessesaryTypeReferenceNotAdded.js rename to tests/baselines/reference/declarationEmitUnnessesaryTypeReferenceNotAdded(target=es5).js diff --git a/tests/baselines/reference/declarationEmitUnnessesaryTypeReferenceNotAdded(target=es5).symbols b/tests/baselines/reference/declarationEmitUnnessesaryTypeReferenceNotAdded(target=es5).symbols new file mode 100644 index 0000000000000..99e305d071c17 --- /dev/null +++ b/tests/baselines/reference/declarationEmitUnnessesaryTypeReferenceNotAdded(target=es5).symbols @@ -0,0 +1,42 @@ +//// [tests/cases/compiler/declarationEmitUnnessesaryTypeReferenceNotAdded.ts] //// + +=== /index.ts === +import minimist = require('minimist'); +>minimist : Symbol(minimist, Decl(index.ts, 0, 0)) + +import process = require('process'); +>process : Symbol(process, Decl(index.ts, 0, 38)) + +export default function parseArgs(): minimist.ParsedArgs { +>parseArgs : Symbol(parseArgs, Decl(index.ts, 1, 36)) +>minimist : Symbol(minimist, Decl(index.ts, 0, 0)) +>ParsedArgs : Symbol(minimist.ParsedArgs, Decl(minimist.d.ts, 0, 25)) + + return minimist(process.argv.slice(2)); +>minimist : Symbol(minimist, Decl(index.ts, 0, 0)) +>process : Symbol(process, Decl(index.ts, 0, 38)) +} + +=== /node_modules/@types/minimist/minimist.d.ts === +declare namespace thing { +>thing : Symbol(thing, Decl(minimist.d.ts, 2, 1), Decl(minimist.d.ts, 0, 0)) + + interface ParsedArgs {} +>ParsedArgs : Symbol(ParsedArgs, Decl(minimist.d.ts, 0, 25)) +} +declare function thing(x: any): thing.ParsedArgs; +>thing : Symbol(thing, Decl(minimist.d.ts, 2, 1), Decl(minimist.d.ts, 0, 0)) +>x : Symbol(x, Decl(minimist.d.ts, 3, 23)) +>thing : Symbol(thing, Decl(minimist.d.ts, 2, 1), Decl(minimist.d.ts, 0, 0)) +>ParsedArgs : Symbol(thing.ParsedArgs, Decl(minimist.d.ts, 0, 25)) + +export = thing; +>thing : Symbol(thing, Decl(minimist.d.ts, 2, 1), Decl(minimist.d.ts, 0, 0)) + +=== /node_modules/@types/process/process.d.ts === +declare const thing: any; +>thing : Symbol(thing, Decl(process.d.ts, 0, 13)) + +export = thing; +>thing : Symbol(thing, Decl(process.d.ts, 0, 13)) + diff --git a/tests/baselines/reference/declarationEmitUnnessesaryTypeReferenceNotAdded(target=es5).types b/tests/baselines/reference/declarationEmitUnnessesaryTypeReferenceNotAdded(target=es5).types new file mode 100644 index 0000000000000..fe008688925eb --- /dev/null +++ b/tests/baselines/reference/declarationEmitUnnessesaryTypeReferenceNotAdded(target=es5).types @@ -0,0 +1,59 @@ +//// [tests/cases/compiler/declarationEmitUnnessesaryTypeReferenceNotAdded.ts] //// + +=== /index.ts === +import minimist = require('minimist'); +>minimist : (x: any) => minimist.ParsedArgs +> : ^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^ + +import process = require('process'); +>process : any +> : ^^^ + +export default function parseArgs(): minimist.ParsedArgs { +>parseArgs : () => minimist.ParsedArgs +> : ^^^^^^ +>minimist : any +> : ^^^ + + return minimist(process.argv.slice(2)); +>minimist(process.argv.slice(2)) : minimist.ParsedArgs +> : ^^^^^^^^^^^^^^^^^^^ +>minimist : (x: any) => minimist.ParsedArgs +> : ^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^ +>process.argv.slice(2) : any +>process.argv.slice : any +>process.argv : any +> : ^^^ +>process : any +> : ^^^ +>argv : any +> : ^^^ +>slice : any +> : ^^^ +>2 : 2 +> : ^ +} + +=== /node_modules/@types/minimist/minimist.d.ts === +declare namespace thing { + interface ParsedArgs {} +} +declare function thing(x: any): thing.ParsedArgs; +>thing : (x: any) => thing.ParsedArgs +> : ^ ^^ ^^^^^ +>x : any +>thing : any +> : ^^^ + +export = thing; +>thing : (x: any) => thing.ParsedArgs +> : ^ ^^ ^^^^^ + +=== /node_modules/@types/process/process.d.ts === +declare const thing: any; +>thing : any + +export = thing; +>thing : any +> : ^^^ + diff --git a/tests/baselines/reference/declarationEmitWithDefaultAsComputedName(target=es2015).js b/tests/baselines/reference/declarationEmitWithDefaultAsComputedName(target=es2015).js new file mode 100644 index 0000000000000..9ae1e21f16e7f --- /dev/null +++ b/tests/baselines/reference/declarationEmitWithDefaultAsComputedName(target=es2015).js @@ -0,0 +1,40 @@ +//// [tests/cases/compiler/declarationEmitWithDefaultAsComputedName.ts] //// + +//// [other.ts] +type Experiment = { + name: Name; +}; +declare const createExperiment: ( + options: Experiment +) => Experiment; +export default createExperiment({ + name: "foo" +}); + +//// [main.ts] +import other from "./other"; +export const obj = { + [other.name]: 1, +}; + +//// [other.js] +export default createExperiment({ + name: "foo" +}); +//// [main.js] +import other from "./other"; +export const obj = { + [other.name]: 1, +}; + + +//// [other.d.ts] +type Experiment = { + name: Name; +}; +declare const _default: Experiment<"foo">; +export default _default; +//// [main.d.ts] +export declare const obj: { + foo: number; +}; diff --git a/tests/baselines/reference/declarationEmitWithDefaultAsComputedName.symbols b/tests/baselines/reference/declarationEmitWithDefaultAsComputedName(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/declarationEmitWithDefaultAsComputedName.symbols rename to tests/baselines/reference/declarationEmitWithDefaultAsComputedName(target=es2015).symbols diff --git a/tests/baselines/reference/declarationEmitWithDefaultAsComputedName.types b/tests/baselines/reference/declarationEmitWithDefaultAsComputedName(target=es2015).types similarity index 100% rename from tests/baselines/reference/declarationEmitWithDefaultAsComputedName.types rename to tests/baselines/reference/declarationEmitWithDefaultAsComputedName(target=es2015).types diff --git a/tests/baselines/reference/declarationEmitWithDefaultAsComputedName.js b/tests/baselines/reference/declarationEmitWithDefaultAsComputedName(target=es5).js similarity index 100% rename from tests/baselines/reference/declarationEmitWithDefaultAsComputedName.js rename to tests/baselines/reference/declarationEmitWithDefaultAsComputedName(target=es5).js diff --git a/tests/baselines/reference/declarationEmitWithDefaultAsComputedName(target=es5).symbols b/tests/baselines/reference/declarationEmitWithDefaultAsComputedName(target=es5).symbols new file mode 100644 index 0000000000000..854cc3efeb341 --- /dev/null +++ b/tests/baselines/reference/declarationEmitWithDefaultAsComputedName(target=es5).symbols @@ -0,0 +1,47 @@ +//// [tests/cases/compiler/declarationEmitWithDefaultAsComputedName.ts] //// + +=== other.ts === +type Experiment = { +>Experiment : Symbol(Experiment, Decl(other.ts, 0, 0)) +>Name : Symbol(Name, Decl(other.ts, 0, 16)) + + name: Name; +>name : Symbol(name, Decl(other.ts, 0, 25)) +>Name : Symbol(Name, Decl(other.ts, 0, 16)) + +}; +declare const createExperiment: ( +>createExperiment : Symbol(createExperiment, Decl(other.ts, 3, 13)) +>Name : Symbol(Name, Decl(other.ts, 3, 33)) + + options: Experiment +>options : Symbol(options, Decl(other.ts, 3, 54)) +>Experiment : Symbol(Experiment, Decl(other.ts, 0, 0)) +>Name : Symbol(Name, Decl(other.ts, 3, 33)) + +) => Experiment; +>Experiment : Symbol(Experiment, Decl(other.ts, 0, 0)) +>Name : Symbol(Name, Decl(other.ts, 3, 33)) + +export default createExperiment({ +>createExperiment : Symbol(createExperiment, Decl(other.ts, 3, 13)) + + name: "foo" +>name : Symbol(name, Decl(other.ts, 6, 33)) + +}); + +=== main.ts === +import other from "./other"; +>other : Symbol(other, Decl(main.ts, 0, 6)) + +export const obj = { +>obj : Symbol(obj, Decl(main.ts, 1, 12)) + + [other.name]: 1, +>[other.name] : Symbol([other.name], Decl(main.ts, 1, 20)) +>other.name : Symbol(name, Decl(other.ts, 0, 25)) +>other : Symbol(other, Decl(main.ts, 0, 6)) +>name : Symbol(name, Decl(other.ts, 0, 25)) + +}; diff --git a/tests/baselines/reference/declarationEmitWithDefaultAsComputedName(target=es5).types b/tests/baselines/reference/declarationEmitWithDefaultAsComputedName(target=es5).types new file mode 100644 index 0000000000000..713456f1a3fd9 --- /dev/null +++ b/tests/baselines/reference/declarationEmitWithDefaultAsComputedName(target=es5).types @@ -0,0 +1,61 @@ +//// [tests/cases/compiler/declarationEmitWithDefaultAsComputedName.ts] //// + +=== other.ts === +type Experiment = { +>Experiment : Experiment +> : ^^^^^^^^^^^^^^^^ + + name: Name; +>name : Name +> : ^^^^ + +}; +declare const createExperiment: ( +>createExperiment : (options: Experiment) => Experiment +> : ^ ^^^^^^^^^ ^^ ^^ ^^^^^ + + options: Experiment +>options : Experiment +> : ^^^^^^^^^^^^^^^^ + +) => Experiment; +export default createExperiment({ +>createExperiment({ name: "foo"}) : Experiment<"foo"> +> : ^^^^^^^^^^^^^^^^^ +>createExperiment : (options: Experiment) => Experiment +> : ^ ^^^^^^^^^ ^^ ^^ ^^^^^ +>{ name: "foo"} : { name: "foo"; } +> : ^^^^^^^^^^^^^^^^ + + name: "foo" +>name : "foo" +> : ^^^^^ +>"foo" : "foo" +> : ^^^^^ + +}); + +=== main.ts === +import other from "./other"; +>other : { name: "foo"; } +> : ^^^^^^^^^^^^^^^^ + +export const obj = { +>obj : { foo: number; } +> : ^^^^^^^^^^^^^^^^ +>{ [other.name]: 1,} : { foo: number; } +> : ^^^^^^^^^^^^^^^^ + + [other.name]: 1, +>[other.name] : number +> : ^^^^^^ +>other.name : "foo" +> : ^^^^^ +>other : { name: "foo"; } +> : ^^^^^^^^^^^^^^^^ +>name : "foo" +> : ^^^^^ +>1 : 1 +> : ^ + +}; diff --git a/tests/baselines/reference/declarationEmitWithDefaultAsComputedName2(target=es2015).js b/tests/baselines/reference/declarationEmitWithDefaultAsComputedName2(target=es2015).js new file mode 100644 index 0000000000000..de6f20fe8291d --- /dev/null +++ b/tests/baselines/reference/declarationEmitWithDefaultAsComputedName2(target=es2015).js @@ -0,0 +1,40 @@ +//// [tests/cases/compiler/declarationEmitWithDefaultAsComputedName2.ts] //// + +//// [other.ts] +type Experiment = { + name: Name; +}; +declare const createExperiment: ( + options: Experiment +) => Experiment; +export default createExperiment({ + name: "foo" +}); + +//// [main.ts] +import * as other2 from "./other"; +export const obj = { + [other2.default.name]: 1 +}; + +//// [other.js] +export default createExperiment({ + name: "foo" +}); +//// [main.js] +import * as other2 from "./other"; +export const obj = { + [other2.default.name]: 1 +}; + + +//// [other.d.ts] +type Experiment = { + name: Name; +}; +declare const _default: Experiment<"foo">; +export default _default; +//// [main.d.ts] +export declare const obj: { + foo: number; +}; diff --git a/tests/baselines/reference/declarationEmitWithDefaultAsComputedName2.symbols b/tests/baselines/reference/declarationEmitWithDefaultAsComputedName2(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/declarationEmitWithDefaultAsComputedName2.symbols rename to tests/baselines/reference/declarationEmitWithDefaultAsComputedName2(target=es2015).symbols diff --git a/tests/baselines/reference/declarationEmitWithDefaultAsComputedName2.types b/tests/baselines/reference/declarationEmitWithDefaultAsComputedName2(target=es2015).types similarity index 100% rename from tests/baselines/reference/declarationEmitWithDefaultAsComputedName2.types rename to tests/baselines/reference/declarationEmitWithDefaultAsComputedName2(target=es2015).types diff --git a/tests/baselines/reference/declarationEmitWithDefaultAsComputedName2.js b/tests/baselines/reference/declarationEmitWithDefaultAsComputedName2(target=es5).js similarity index 100% rename from tests/baselines/reference/declarationEmitWithDefaultAsComputedName2.js rename to tests/baselines/reference/declarationEmitWithDefaultAsComputedName2(target=es5).js diff --git a/tests/baselines/reference/declarationEmitWithDefaultAsComputedName2(target=es5).symbols b/tests/baselines/reference/declarationEmitWithDefaultAsComputedName2(target=es5).symbols new file mode 100644 index 0000000000000..4f4067de2fd42 --- /dev/null +++ b/tests/baselines/reference/declarationEmitWithDefaultAsComputedName2(target=es5).symbols @@ -0,0 +1,49 @@ +//// [tests/cases/compiler/declarationEmitWithDefaultAsComputedName2.ts] //// + +=== other.ts === +type Experiment = { +>Experiment : Symbol(Experiment, Decl(other.ts, 0, 0)) +>Name : Symbol(Name, Decl(other.ts, 0, 16)) + + name: Name; +>name : Symbol(name, Decl(other.ts, 0, 25)) +>Name : Symbol(Name, Decl(other.ts, 0, 16)) + +}; +declare const createExperiment: ( +>createExperiment : Symbol(createExperiment, Decl(other.ts, 3, 13)) +>Name : Symbol(Name, Decl(other.ts, 3, 33)) + + options: Experiment +>options : Symbol(options, Decl(other.ts, 3, 54)) +>Experiment : Symbol(Experiment, Decl(other.ts, 0, 0)) +>Name : Symbol(Name, Decl(other.ts, 3, 33)) + +) => Experiment; +>Experiment : Symbol(Experiment, Decl(other.ts, 0, 0)) +>Name : Symbol(Name, Decl(other.ts, 3, 33)) + +export default createExperiment({ +>createExperiment : Symbol(createExperiment, Decl(other.ts, 3, 13)) + + name: "foo" +>name : Symbol(name, Decl(other.ts, 6, 33)) + +}); + +=== main.ts === +import * as other2 from "./other"; +>other2 : Symbol(other2, Decl(main.ts, 0, 6)) + +export const obj = { +>obj : Symbol(obj, Decl(main.ts, 1, 12)) + + [other2.default.name]: 1 +>[other2.default.name] : Symbol([other2.default.name], Decl(main.ts, 1, 20)) +>other2.default.name : Symbol(name, Decl(other.ts, 0, 25)) +>other2.default : Symbol(other2.default, Decl(other.ts, 5, 22)) +>other2 : Symbol(other2, Decl(main.ts, 0, 6)) +>default : Symbol(other2.default, Decl(other.ts, 5, 22)) +>name : Symbol(name, Decl(other.ts, 0, 25)) + +}; diff --git a/tests/baselines/reference/declarationEmitWithDefaultAsComputedName2(target=es5).types b/tests/baselines/reference/declarationEmitWithDefaultAsComputedName2(target=es5).types new file mode 100644 index 0000000000000..e5fff80e18a55 --- /dev/null +++ b/tests/baselines/reference/declarationEmitWithDefaultAsComputedName2(target=es5).types @@ -0,0 +1,65 @@ +//// [tests/cases/compiler/declarationEmitWithDefaultAsComputedName2.ts] //// + +=== other.ts === +type Experiment = { +>Experiment : Experiment +> : ^^^^^^^^^^^^^^^^ + + name: Name; +>name : Name +> : ^^^^ + +}; +declare const createExperiment: ( +>createExperiment : (options: Experiment) => Experiment +> : ^ ^^^^^^^^^ ^^ ^^ ^^^^^ + + options: Experiment +>options : Experiment +> : ^^^^^^^^^^^^^^^^ + +) => Experiment; +export default createExperiment({ +>createExperiment({ name: "foo"}) : Experiment<"foo"> +> : ^^^^^^^^^^^^^^^^^ +>createExperiment : (options: Experiment) => Experiment +> : ^ ^^^^^^^^^ ^^ ^^ ^^^^^ +>{ name: "foo"} : { name: "foo"; } +> : ^^^^^^^^^^^^^^^^ + + name: "foo" +>name : "foo" +> : ^^^^^ +>"foo" : "foo" +> : ^^^^^ + +}); + +=== main.ts === +import * as other2 from "./other"; +>other2 : typeof other2 +> : ^^^^^^^^^^^^^ + +export const obj = { +>obj : { foo: number; } +> : ^^^^^^^^^^^^^^^^ +>{ [other2.default.name]: 1} : { foo: number; } +> : ^^^^^^^^^^^^^^^^ + + [other2.default.name]: 1 +>[other2.default.name] : number +> : ^^^^^^ +>other2.default.name : "foo" +> : ^^^^^ +>other2.default : { name: "foo"; } +> : ^^^^^^^^^^^^^^^^ +>other2 : typeof other2 +> : ^^^^^^^^^^^^^ +>default : { name: "foo"; } +> : ^^^^^^^^^^^^^^^^ +>name : "foo" +> : ^^^^^ +>1 : 1 +> : ^ + +}; diff --git a/tests/baselines/reference/decoratedBlockScopedClass1(target=es2015).js b/tests/baselines/reference/decoratedBlockScopedClass1(target=es2015).js new file mode 100644 index 0000000000000..37c0509c7fe5e --- /dev/null +++ b/tests/baselines/reference/decoratedBlockScopedClass1(target=es2015).js @@ -0,0 +1,36 @@ +//// [tests/cases/conformance/decorators/class/decoratedBlockScopedClass1.ts] //// + +//// [a.ts] +function decorator() { + return (target: new (...args: any[]) => any) => {} +} + +@decorator() +class Foo { + public static func(): Foo { + return new Foo(); + } +} +Foo.func(); + + +//// [a.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var Foo_1; +function decorator() { + return (target) => { }; +} +let Foo = Foo_1 = class Foo { + static func() { + return new Foo_1(); + } +}; +Foo = Foo_1 = __decorate([ + decorator() +], Foo); +Foo.func(); diff --git a/tests/baselines/reference/decoratedBlockScopedClass1.symbols b/tests/baselines/reference/decoratedBlockScopedClass1(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/decoratedBlockScopedClass1.symbols rename to tests/baselines/reference/decoratedBlockScopedClass1(target=es2015).symbols diff --git a/tests/baselines/reference/decoratedBlockScopedClass1.types b/tests/baselines/reference/decoratedBlockScopedClass1(target=es2015).types similarity index 100% rename from tests/baselines/reference/decoratedBlockScopedClass1.types rename to tests/baselines/reference/decoratedBlockScopedClass1(target=es2015).types diff --git a/tests/baselines/reference/decoratedBlockScopedClass1.js b/tests/baselines/reference/decoratedBlockScopedClass1(target=es5).js similarity index 100% rename from tests/baselines/reference/decoratedBlockScopedClass1.js rename to tests/baselines/reference/decoratedBlockScopedClass1(target=es5).js diff --git a/tests/baselines/reference/decoratedBlockScopedClass1(target=es5).symbols b/tests/baselines/reference/decoratedBlockScopedClass1(target=es5).symbols new file mode 100644 index 0000000000000..b248e32797f3d --- /dev/null +++ b/tests/baselines/reference/decoratedBlockScopedClass1(target=es5).symbols @@ -0,0 +1,30 @@ +//// [tests/cases/conformance/decorators/class/decoratedBlockScopedClass1.ts] //// + +=== a.ts === +function decorator() { +>decorator : Symbol(decorator, Decl(a.ts, 0, 0)) + + return (target: new (...args: any[]) => any) => {} +>target : Symbol(target, Decl(a.ts, 1, 12)) +>args : Symbol(args, Decl(a.ts, 1, 25)) +} + +@decorator() +>decorator : Symbol(decorator, Decl(a.ts, 0, 0)) + +class Foo { +>Foo : Symbol(Foo, Decl(a.ts, 2, 1)) + + public static func(): Foo { +>func : Symbol(Foo.func, Decl(a.ts, 5, 11)) +>Foo : Symbol(Foo, Decl(a.ts, 2, 1)) + + return new Foo(); +>Foo : Symbol(Foo, Decl(a.ts, 2, 1)) + } +} +Foo.func(); +>Foo.func : Symbol(Foo.func, Decl(a.ts, 5, 11)) +>Foo : Symbol(Foo, Decl(a.ts, 2, 1)) +>func : Symbol(Foo.func, Decl(a.ts, 5, 11)) + diff --git a/tests/baselines/reference/decoratedBlockScopedClass1(target=es5).types b/tests/baselines/reference/decoratedBlockScopedClass1(target=es5).types new file mode 100644 index 0000000000000..641268c7bee86 --- /dev/null +++ b/tests/baselines/reference/decoratedBlockScopedClass1(target=es5).types @@ -0,0 +1,47 @@ +//// [tests/cases/conformance/decorators/class/decoratedBlockScopedClass1.ts] //// + +=== a.ts === +function decorator() { +>decorator : () => (target: new (...args: any[]) => any) => void +> : ^^^^^^^ ^^^^^^^^^ + + return (target: new (...args: any[]) => any) => {} +>(target: new (...args: any[]) => any) => {} : (target: new (...args: any[]) => any) => void +> : ^ ^^ ^^^^^^^^^ +>target : new (...args: any[]) => any +> : ^^^^^^^^ ^^ ^^^^^ +>args : any[] +> : ^^^^^ +} + +@decorator() +>decorator() : (target: new (...args: any[]) => any) => void +> : ^ ^^ ^^^^^^^^^ +>decorator : () => (target: new (...args: any[]) => any) => void +> : ^^^^^^^ ^^^^^^^^^ + +class Foo { +>Foo : Foo +> : ^^^ + + public static func(): Foo { +>func : () => Foo +> : ^^^^^^ + + return new Foo(); +>new Foo() : Foo +> : ^^^ +>Foo : typeof Foo +> : ^^^^^^^^^^ + } +} +Foo.func(); +>Foo.func() : Foo +> : ^^^ +>Foo.func : () => Foo +> : ^^^^^^ +>Foo : typeof Foo +> : ^^^^^^^^^^ +>func : () => Foo +> : ^^^^^^ + diff --git a/tests/baselines/reference/decoratedBlockScopedClass2(target=es2015).js b/tests/baselines/reference/decoratedBlockScopedClass2(target=es2015).js new file mode 100644 index 0000000000000..80961fb9fc225 --- /dev/null +++ b/tests/baselines/reference/decoratedBlockScopedClass2(target=es2015).js @@ -0,0 +1,42 @@ +//// [tests/cases/conformance/decorators/class/decoratedBlockScopedClass2.ts] //// + +//// [a.ts] +function decorator() { + return (target: new (...args: any[]) => any) => {} +} + +try { + @decorator() + class Foo { + public static func(): Foo { + return new Foo(); + } + } + Foo.func(); +} +catch (e) {} + + +//// [a.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var Foo_1; +function decorator() { + return (target) => { }; +} +try { + let Foo = Foo_1 = class Foo { + static func() { + return new Foo_1(); + } + }; + Foo = Foo_1 = __decorate([ + decorator() + ], Foo); + Foo.func(); +} +catch (e) { } diff --git a/tests/baselines/reference/decoratedBlockScopedClass2.symbols b/tests/baselines/reference/decoratedBlockScopedClass2(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/decoratedBlockScopedClass2.symbols rename to tests/baselines/reference/decoratedBlockScopedClass2(target=es2015).symbols diff --git a/tests/baselines/reference/decoratedBlockScopedClass2.types b/tests/baselines/reference/decoratedBlockScopedClass2(target=es2015).types similarity index 100% rename from tests/baselines/reference/decoratedBlockScopedClass2.types rename to tests/baselines/reference/decoratedBlockScopedClass2(target=es2015).types diff --git a/tests/baselines/reference/decoratedBlockScopedClass2.js b/tests/baselines/reference/decoratedBlockScopedClass2(target=es5).js similarity index 100% rename from tests/baselines/reference/decoratedBlockScopedClass2.js rename to tests/baselines/reference/decoratedBlockScopedClass2(target=es5).js diff --git a/tests/baselines/reference/decoratedBlockScopedClass2(target=es5).symbols b/tests/baselines/reference/decoratedBlockScopedClass2(target=es5).symbols new file mode 100644 index 0000000000000..787c5973d70d6 --- /dev/null +++ b/tests/baselines/reference/decoratedBlockScopedClass2(target=es5).symbols @@ -0,0 +1,34 @@ +//// [tests/cases/conformance/decorators/class/decoratedBlockScopedClass2.ts] //// + +=== a.ts === +function decorator() { +>decorator : Symbol(decorator, Decl(a.ts, 0, 0)) + + return (target: new (...args: any[]) => any) => {} +>target : Symbol(target, Decl(a.ts, 1, 12)) +>args : Symbol(args, Decl(a.ts, 1, 25)) +} + +try { + @decorator() +>decorator : Symbol(decorator, Decl(a.ts, 0, 0)) + + class Foo { +>Foo : Symbol(Foo, Decl(a.ts, 4, 5)) + + public static func(): Foo { +>func : Symbol(Foo.func, Decl(a.ts, 6, 15)) +>Foo : Symbol(Foo, Decl(a.ts, 4, 5)) + + return new Foo(); +>Foo : Symbol(Foo, Decl(a.ts, 4, 5)) + } + } + Foo.func(); +>Foo.func : Symbol(Foo.func, Decl(a.ts, 6, 15)) +>Foo : Symbol(Foo, Decl(a.ts, 4, 5)) +>func : Symbol(Foo.func, Decl(a.ts, 6, 15)) +} +catch (e) {} +>e : Symbol(e, Decl(a.ts, 13, 7)) + diff --git a/tests/baselines/reference/decoratedBlockScopedClass2(target=es5).types b/tests/baselines/reference/decoratedBlockScopedClass2(target=es5).types new file mode 100644 index 0000000000000..271242a6fa09e --- /dev/null +++ b/tests/baselines/reference/decoratedBlockScopedClass2(target=es5).types @@ -0,0 +1,51 @@ +//// [tests/cases/conformance/decorators/class/decoratedBlockScopedClass2.ts] //// + +=== a.ts === +function decorator() { +>decorator : () => (target: new (...args: any[]) => any) => void +> : ^^^^^^^ ^^^^^^^^^ + + return (target: new (...args: any[]) => any) => {} +>(target: new (...args: any[]) => any) => {} : (target: new (...args: any[]) => any) => void +> : ^ ^^ ^^^^^^^^^ +>target : new (...args: any[]) => any +> : ^^^^^^^^ ^^ ^^^^^ +>args : any[] +> : ^^^^^ +} + +try { + @decorator() +>decorator() : (target: new (...args: any[]) => any) => void +> : ^ ^^ ^^^^^^^^^ +>decorator : () => (target: new (...args: any[]) => any) => void +> : ^^^^^^^ ^^^^^^^^^ + + class Foo { +>Foo : Foo +> : ^^^ + + public static func(): Foo { +>func : () => Foo +> : ^^^^^^^^^ + + return new Foo(); +>new Foo() : Foo +> : ^^^ +>Foo : typeof Foo +> : ^^^^^^^^^^ + } + } + Foo.func(); +>Foo.func() : Foo +> : ^^^ +>Foo.func : () => Foo +> : ^^^^^^^^^ +>Foo : typeof Foo +> : ^^^^^^^^^^ +>func : () => Foo +> : ^^^^^^^^^ +} +catch (e) {} +>e : any + diff --git a/tests/baselines/reference/decoratedBlockScopedClass3(target=es2015).js b/tests/baselines/reference/decoratedBlockScopedClass3(target=es2015).js new file mode 100644 index 0000000000000..5327efd584a21 --- /dev/null +++ b/tests/baselines/reference/decoratedBlockScopedClass3(target=es2015).js @@ -0,0 +1,59 @@ +//// [tests/cases/conformance/decorators/class/decoratedBlockScopedClass3.ts] //// + +//// [a.ts] +function decorator() { + return (target: new (...args: any[]) => any) => {} +} + +@decorator() +class Foo { + public static func(): Foo { + return new Foo(); + } +} +Foo.func(); + +try { + @decorator() + class Foo { + public static func(): Foo { + return new Foo(); + } + } + Foo.func(); +} +catch (e) {} + + +//// [a.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var Foo_1, Foo_2; +function decorator() { + return (target) => { }; +} +let Foo = Foo_1 = class Foo { + static func() { + return new Foo_1(); + } +}; +Foo = Foo_1 = __decorate([ + decorator() +], Foo); +Foo.func(); +try { + let Foo = Foo_2 = class Foo { + static func() { + return new Foo_2(); + } + }; + Foo = Foo_2 = __decorate([ + decorator() + ], Foo); + Foo.func(); +} +catch (e) { } diff --git a/tests/baselines/reference/decoratedBlockScopedClass3.symbols b/tests/baselines/reference/decoratedBlockScopedClass3(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/decoratedBlockScopedClass3.symbols rename to tests/baselines/reference/decoratedBlockScopedClass3(target=es2015).symbols diff --git a/tests/baselines/reference/decoratedBlockScopedClass3.types b/tests/baselines/reference/decoratedBlockScopedClass3(target=es2015).types similarity index 100% rename from tests/baselines/reference/decoratedBlockScopedClass3.types rename to tests/baselines/reference/decoratedBlockScopedClass3(target=es2015).types diff --git a/tests/baselines/reference/decoratedBlockScopedClass3.js b/tests/baselines/reference/decoratedBlockScopedClass3(target=es5).js similarity index 100% rename from tests/baselines/reference/decoratedBlockScopedClass3.js rename to tests/baselines/reference/decoratedBlockScopedClass3(target=es5).js diff --git a/tests/baselines/reference/decoratedBlockScopedClass3(target=es5).symbols b/tests/baselines/reference/decoratedBlockScopedClass3(target=es5).symbols new file mode 100644 index 0000000000000..a75873f932ed5 --- /dev/null +++ b/tests/baselines/reference/decoratedBlockScopedClass3(target=es5).symbols @@ -0,0 +1,53 @@ +//// [tests/cases/conformance/decorators/class/decoratedBlockScopedClass3.ts] //// + +=== a.ts === +function decorator() { +>decorator : Symbol(decorator, Decl(a.ts, 0, 0)) + + return (target: new (...args: any[]) => any) => {} +>target : Symbol(target, Decl(a.ts, 1, 12)) +>args : Symbol(args, Decl(a.ts, 1, 25)) +} + +@decorator() +>decorator : Symbol(decorator, Decl(a.ts, 0, 0)) + +class Foo { +>Foo : Symbol(Foo, Decl(a.ts, 2, 1)) + + public static func(): Foo { +>func : Symbol(Foo.func, Decl(a.ts, 5, 11)) +>Foo : Symbol(Foo, Decl(a.ts, 2, 1)) + + return new Foo(); +>Foo : Symbol(Foo, Decl(a.ts, 2, 1)) + } +} +Foo.func(); +>Foo.func : Symbol(Foo.func, Decl(a.ts, 5, 11)) +>Foo : Symbol(Foo, Decl(a.ts, 2, 1)) +>func : Symbol(Foo.func, Decl(a.ts, 5, 11)) + +try { + @decorator() +>decorator : Symbol(decorator, Decl(a.ts, 0, 0)) + + class Foo { +>Foo : Symbol(Foo, Decl(a.ts, 12, 5)) + + public static func(): Foo { +>func : Symbol(Foo.func, Decl(a.ts, 14, 15)) +>Foo : Symbol(Foo, Decl(a.ts, 12, 5)) + + return new Foo(); +>Foo : Symbol(Foo, Decl(a.ts, 12, 5)) + } + } + Foo.func(); +>Foo.func : Symbol(Foo.func, Decl(a.ts, 14, 15)) +>Foo : Symbol(Foo, Decl(a.ts, 12, 5)) +>func : Symbol(Foo.func, Decl(a.ts, 14, 15)) +} +catch (e) {} +>e : Symbol(e, Decl(a.ts, 21, 7)) + diff --git a/tests/baselines/reference/decoratedBlockScopedClass3(target=es5).types b/tests/baselines/reference/decoratedBlockScopedClass3(target=es5).types new file mode 100644 index 0000000000000..5018dcd3677aa --- /dev/null +++ b/tests/baselines/reference/decoratedBlockScopedClass3(target=es5).types @@ -0,0 +1,82 @@ +//// [tests/cases/conformance/decorators/class/decoratedBlockScopedClass3.ts] //// + +=== a.ts === +function decorator() { +>decorator : () => (target: new (...args: any[]) => any) => void +> : ^^^^^^^ ^^^^^^^^^ + + return (target: new (...args: any[]) => any) => {} +>(target: new (...args: any[]) => any) => {} : (target: new (...args: any[]) => any) => void +> : ^ ^^ ^^^^^^^^^ +>target : new (...args: any[]) => any +> : ^^^^^^^^ ^^ ^^^^^ +>args : any[] +> : ^^^^^ +} + +@decorator() +>decorator() : (target: new (...args: any[]) => any) => void +> : ^ ^^ ^^^^^^^^^ +>decorator : () => (target: new (...args: any[]) => any) => void +> : ^^^^^^^ ^^^^^^^^^ + +class Foo { +>Foo : Foo +> : ^^^ + + public static func(): Foo { +>func : () => Foo +> : ^^^^^^ + + return new Foo(); +>new Foo() : Foo +> : ^^^ +>Foo : typeof Foo +> : ^^^^^^^^^^ + } +} +Foo.func(); +>Foo.func() : Foo +> : ^^^ +>Foo.func : () => Foo +> : ^^^^^^ +>Foo : typeof Foo +> : ^^^^^^^^^^ +>func : () => Foo +> : ^^^^^^ + +try { + @decorator() +>decorator() : (target: new (...args: any[]) => any) => void +> : ^ ^^ ^^^^^^^^^ +>decorator : () => (target: new (...args: any[]) => any) => void +> : ^^^^^^^ ^^^^^^^^^ + + class Foo { +>Foo : Foo +> : ^^^ + + public static func(): Foo { +>func : () => Foo +> : ^^^^^^^^^ + + return new Foo(); +>new Foo() : Foo +> : ^^^ +>Foo : typeof Foo +> : ^^^^^^^^^^ + } + } + Foo.func(); +>Foo.func() : Foo +> : ^^^ +>Foo.func : () => Foo +> : ^^^^^^^^^ +>Foo : typeof Foo +> : ^^^^^^^^^^ +>func : () => Foo +> : ^^^^^^^^^ +} +catch (e) {} +>e : any + diff --git a/tests/baselines/reference/decoratorChecksFunctionBodies.errors.txt b/tests/baselines/reference/decoratorChecksFunctionBodies(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/decoratorChecksFunctionBodies.errors.txt rename to tests/baselines/reference/decoratorChecksFunctionBodies(target=es2015).errors.txt diff --git a/tests/baselines/reference/decoratorChecksFunctionBodies(target=es2015).js b/tests/baselines/reference/decoratorChecksFunctionBodies(target=es2015).js new file mode 100644 index 0000000000000..b350043def6e7 --- /dev/null +++ b/tests/baselines/reference/decoratorChecksFunctionBodies(target=es2015).js @@ -0,0 +1,39 @@ +//// [tests/cases/conformance/decorators/class/decoratorChecksFunctionBodies.ts] //// + +//// [decoratorChecksFunctionBodies.ts] +// from #2971 +function func(s: string): void { +} + +class A { + @((x, p, d) => { + var a = 3; + func(a); + return d; + }) + m() { + + } +} + +//// [decoratorChecksFunctionBodies.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +// from #2971 +function func(s) { +} +class A { + m() { + } +} +__decorate([ + ((x, p, d) => { + var a = 3; + func(a); + return d; + }) +], A.prototype, "m", null); diff --git a/tests/baselines/reference/decoratorChecksFunctionBodies.symbols b/tests/baselines/reference/decoratorChecksFunctionBodies(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/decoratorChecksFunctionBodies.symbols rename to tests/baselines/reference/decoratorChecksFunctionBodies(target=es2015).symbols diff --git a/tests/baselines/reference/decoratorChecksFunctionBodies.types b/tests/baselines/reference/decoratorChecksFunctionBodies(target=es2015).types similarity index 100% rename from tests/baselines/reference/decoratorChecksFunctionBodies.types rename to tests/baselines/reference/decoratorChecksFunctionBodies(target=es2015).types diff --git a/tests/baselines/reference/decoratorChecksFunctionBodies(target=es5).errors.txt b/tests/baselines/reference/decoratorChecksFunctionBodies(target=es5).errors.txt new file mode 100644 index 0000000000000..50ab24953dc69 --- /dev/null +++ b/tests/baselines/reference/decoratorChecksFunctionBodies(target=es5).errors.txt @@ -0,0 +1,20 @@ +decoratorChecksFunctionBodies.ts(8,14): error TS2345: Argument of type 'number' is not assignable to parameter of type 'string'. + + +==== decoratorChecksFunctionBodies.ts (1 errors) ==== + // from #2971 + function func(s: string): void { + } + + class A { + @((x, p, d) => { + var a = 3; + func(a); + ~ +!!! error TS2345: Argument of type 'number' is not assignable to parameter of type 'string'. + return d; + }) + m() { + + } + } \ No newline at end of file diff --git a/tests/baselines/reference/decoratorChecksFunctionBodies.js b/tests/baselines/reference/decoratorChecksFunctionBodies(target=es5).js similarity index 100% rename from tests/baselines/reference/decoratorChecksFunctionBodies.js rename to tests/baselines/reference/decoratorChecksFunctionBodies(target=es5).js diff --git a/tests/baselines/reference/decoratorChecksFunctionBodies(target=es5).symbols b/tests/baselines/reference/decoratorChecksFunctionBodies(target=es5).symbols new file mode 100644 index 0000000000000..2492d64d57bb8 --- /dev/null +++ b/tests/baselines/reference/decoratorChecksFunctionBodies(target=es5).symbols @@ -0,0 +1,33 @@ +//// [tests/cases/conformance/decorators/class/decoratorChecksFunctionBodies.ts] //// + +=== decoratorChecksFunctionBodies.ts === +// from #2971 +function func(s: string): void { +>func : Symbol(func, Decl(decoratorChecksFunctionBodies.ts, 0, 0)) +>s : Symbol(s, Decl(decoratorChecksFunctionBodies.ts, 1, 14)) +} + +class A { +>A : Symbol(A, Decl(decoratorChecksFunctionBodies.ts, 2, 1)) + + @((x, p, d) => { +>x : Symbol(x, Decl(decoratorChecksFunctionBodies.ts, 5, 7)) +>p : Symbol(p, Decl(decoratorChecksFunctionBodies.ts, 5, 9)) +>d : Symbol(d, Decl(decoratorChecksFunctionBodies.ts, 5, 12)) + + var a = 3; +>a : Symbol(a, Decl(decoratorChecksFunctionBodies.ts, 6, 11)) + + func(a); +>func : Symbol(func, Decl(decoratorChecksFunctionBodies.ts, 0, 0)) +>a : Symbol(a, Decl(decoratorChecksFunctionBodies.ts, 6, 11)) + + return d; +>d : Symbol(d, Decl(decoratorChecksFunctionBodies.ts, 5, 12)) + + }) + m() { +>m : Symbol(A.m, Decl(decoratorChecksFunctionBodies.ts, 4, 9)) + + } +} diff --git a/tests/baselines/reference/decoratorChecksFunctionBodies(target=es5).types b/tests/baselines/reference/decoratorChecksFunctionBodies(target=es5).types new file mode 100644 index 0000000000000..c17c4f2a3c943 --- /dev/null +++ b/tests/baselines/reference/decoratorChecksFunctionBodies(target=es5).types @@ -0,0 +1,52 @@ +//// [tests/cases/conformance/decorators/class/decoratorChecksFunctionBodies.ts] //// + +=== decoratorChecksFunctionBodies.ts === +// from #2971 +function func(s: string): void { +>func : (s: string) => void +> : ^ ^^ ^^^^^ +>s : string +> : ^^^^^^ +} + +class A { +>A : A +> : ^ + + @((x, p, d) => { +>((x, p, d) => { var a = 3; func(a); return d; }) : (x: A, p: "m", d: TypedPropertyDescriptor<() => void>) => TypedPropertyDescriptor<() => void> +> : ^ ^^^^^ ^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>(x, p, d) => { var a = 3; func(a); return d; } : (x: A, p: "m", d: TypedPropertyDescriptor<() => void>) => TypedPropertyDescriptor<() => void> +> : ^ ^^^^^ ^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>x : A +> : ^ +>p : "m" +> : ^^^ +>d : TypedPropertyDescriptor<() => void> +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + var a = 3; +>a : number +> : ^^^^^^ +>3 : 3 +> : ^ + + func(a); +>func(a) : void +> : ^^^^ +>func : (s: string) => void +> : ^ ^^ ^^^^^ +>a : number +> : ^^^^^^ + + return d; +>d : TypedPropertyDescriptor<() => void> +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + }) + m() { +>m : () => void +> : ^^^^^^^^^^ + + } +} diff --git a/tests/baselines/reference/decoratorInstantiateModulesInFunctionBodies(target=es2015).js b/tests/baselines/reference/decoratorInstantiateModulesInFunctionBodies(target=es2015).js new file mode 100644 index 0000000000000..8ae8b35bbaed3 --- /dev/null +++ b/tests/baselines/reference/decoratorInstantiateModulesInFunctionBodies(target=es2015).js @@ -0,0 +1,51 @@ +//// [tests/cases/conformance/decorators/class/decoratorInstantiateModulesInFunctionBodies.ts] //// + +//// [a.ts] +// from #3108 +export var test = 'abc'; + +//// [b.ts] +import { test } from './a'; + +function filter(handler: any) { + return function (target: any, propertyKey: string) { + // ... + }; +} + +class Wat { + @filter(() => test == 'abc') + static whatever() { + // ... + } +} + +//// [a.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.test = void 0; +// from #3108 +exports.test = 'abc'; +//// [b.js] +"use strict"; +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const a_1 = require("./a"); +function filter(handler) { + return function (target, propertyKey) { + // ... + }; +} +class Wat { + static whatever() { + // ... + } +} +__decorate([ + filter(() => a_1.test == 'abc') +], Wat, "whatever", null); diff --git a/tests/baselines/reference/decoratorInstantiateModulesInFunctionBodies.symbols b/tests/baselines/reference/decoratorInstantiateModulesInFunctionBodies(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/decoratorInstantiateModulesInFunctionBodies.symbols rename to tests/baselines/reference/decoratorInstantiateModulesInFunctionBodies(target=es2015).symbols diff --git a/tests/baselines/reference/decoratorInstantiateModulesInFunctionBodies.types b/tests/baselines/reference/decoratorInstantiateModulesInFunctionBodies(target=es2015).types similarity index 100% rename from tests/baselines/reference/decoratorInstantiateModulesInFunctionBodies.types rename to tests/baselines/reference/decoratorInstantiateModulesInFunctionBodies(target=es2015).types diff --git a/tests/baselines/reference/decoratorInstantiateModulesInFunctionBodies.js b/tests/baselines/reference/decoratorInstantiateModulesInFunctionBodies(target=es5).js similarity index 100% rename from tests/baselines/reference/decoratorInstantiateModulesInFunctionBodies.js rename to tests/baselines/reference/decoratorInstantiateModulesInFunctionBodies(target=es5).js diff --git a/tests/baselines/reference/decoratorInstantiateModulesInFunctionBodies(target=es5).symbols b/tests/baselines/reference/decoratorInstantiateModulesInFunctionBodies(target=es5).symbols new file mode 100644 index 0000000000000..cd252aebe10f0 --- /dev/null +++ b/tests/baselines/reference/decoratorInstantiateModulesInFunctionBodies(target=es5).symbols @@ -0,0 +1,36 @@ +//// [tests/cases/conformance/decorators/class/decoratorInstantiateModulesInFunctionBodies.ts] //// + +=== a.ts === +// from #3108 +export var test = 'abc'; +>test : Symbol(test, Decl(a.ts, 1, 10)) + +=== b.ts === +import { test } from './a'; +>test : Symbol(test, Decl(b.ts, 0, 8)) + +function filter(handler: any) { +>filter : Symbol(filter, Decl(b.ts, 0, 27)) +>handler : Symbol(handler, Decl(b.ts, 2, 16)) + + return function (target: any, propertyKey: string) { +>target : Symbol(target, Decl(b.ts, 3, 21)) +>propertyKey : Symbol(propertyKey, Decl(b.ts, 3, 33)) + + // ... + }; +} + +class Wat { +>Wat : Symbol(Wat, Decl(b.ts, 6, 1)) + + @filter(() => test == 'abc') +>filter : Symbol(filter, Decl(b.ts, 0, 27)) +>test : Symbol(test, Decl(b.ts, 0, 8)) + + static whatever() { +>whatever : Symbol(Wat.whatever, Decl(b.ts, 8, 11)) + + // ... + } +} diff --git a/tests/baselines/reference/decoratorInstantiateModulesInFunctionBodies(target=es5).types b/tests/baselines/reference/decoratorInstantiateModulesInFunctionBodies(target=es5).types new file mode 100644 index 0000000000000..a060963cd35b3 --- /dev/null +++ b/tests/baselines/reference/decoratorInstantiateModulesInFunctionBodies(target=es5).types @@ -0,0 +1,56 @@ +//// [tests/cases/conformance/decorators/class/decoratorInstantiateModulesInFunctionBodies.ts] //// + +=== a.ts === +// from #3108 +export var test = 'abc'; +>test : string +> : ^^^^^^ +>'abc' : "abc" +> : ^^^^^ + +=== b.ts === +import { test } from './a'; +>test : string +> : ^^^^^^ + +function filter(handler: any) { +>filter : (handler: any) => (target: any, propertyKey: string) => void +> : ^ ^^ ^^^^^^ ^^ ^^^^^^^^^ +>handler : any + + return function (target: any, propertyKey: string) { +>function (target: any, propertyKey: string) { // ... } : (target: any, propertyKey: string) => void +> : ^ ^^ ^^ ^^ ^^^^^^^^^ +>target : any +>propertyKey : string +> : ^^^^^^ + + // ... + }; +} + +class Wat { +>Wat : Wat +> : ^^^ + + @filter(() => test == 'abc') +>filter(() => test == 'abc') : (target: any, propertyKey: string) => void +> : ^ ^^ ^^ ^^ ^^^^^^^^^ +>filter : (handler: any) => (target: any, propertyKey: string) => void +> : ^ ^^ ^^^^^^ ^^ ^^^^^^^^^ +>() => test == 'abc' : () => boolean +> : ^^^^^^^^^^^^^ +>test == 'abc' : boolean +> : ^^^^^^^ +>test : string +> : ^^^^^^ +>'abc' : "abc" +> : ^^^^^ + + static whatever() { +>whatever : () => void +> : ^^^^^^^^^^ + + // ... + } +} diff --git a/tests/baselines/reference/decoratorMetadata(target=es2015).js b/tests/baselines/reference/decoratorMetadata(target=es2015).js new file mode 100644 index 0000000000000..9de767c494c18 --- /dev/null +++ b/tests/baselines/reference/decoratorMetadata(target=es2015).js @@ -0,0 +1,59 @@ +//// [tests/cases/conformance/decorators/decoratorMetadata.ts] //// + +//// [service.ts] +export default class Service { +} +//// [component.ts] +import Service from "./service"; + +declare var decorator: any; + +@decorator +class MyComponent { + constructor(public Service: Service) { + } + + @decorator + method(x: this) { + } +} + +//// [service.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +class Service { +} +exports.default = Service; +//// [component.js] +"use strict"; +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const service_1 = __importDefault(require("./service")); +let MyComponent = class MyComponent { + constructor(Service) { + this.Service = Service; + } + method(x) { + } +}; +__decorate([ + decorator, + __metadata("design:type", Function), + __metadata("design:paramtypes", [Object]), + __metadata("design:returntype", void 0) +], MyComponent.prototype, "method", null); +MyComponent = __decorate([ + decorator, + __metadata("design:paramtypes", [service_1.default]) +], MyComponent); diff --git a/tests/baselines/reference/decoratorMetadata.symbols b/tests/baselines/reference/decoratorMetadata(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/decoratorMetadata.symbols rename to tests/baselines/reference/decoratorMetadata(target=es2015).symbols diff --git a/tests/baselines/reference/decoratorMetadata.types b/tests/baselines/reference/decoratorMetadata(target=es2015).types similarity index 100% rename from tests/baselines/reference/decoratorMetadata.types rename to tests/baselines/reference/decoratorMetadata(target=es2015).types diff --git a/tests/baselines/reference/decoratorMetadata.js b/tests/baselines/reference/decoratorMetadata(target=es5).js similarity index 100% rename from tests/baselines/reference/decoratorMetadata.js rename to tests/baselines/reference/decoratorMetadata(target=es5).js diff --git a/tests/baselines/reference/decoratorMetadata(target=es5).symbols b/tests/baselines/reference/decoratorMetadata(target=es5).symbols new file mode 100644 index 0000000000000..41b75178897dd --- /dev/null +++ b/tests/baselines/reference/decoratorMetadata(target=es5).symbols @@ -0,0 +1,32 @@ +//// [tests/cases/conformance/decorators/decoratorMetadata.ts] //// + +=== service.ts === +export default class Service { +>Service : Symbol(Service, Decl(service.ts, 0, 0)) +} +=== component.ts === +import Service from "./service"; +>Service : Symbol(Service, Decl(component.ts, 0, 6)) + +declare var decorator: any; +>decorator : Symbol(decorator, Decl(component.ts, 2, 11)) + +@decorator +>decorator : Symbol(decorator, Decl(component.ts, 2, 11)) + +class MyComponent { +>MyComponent : Symbol(MyComponent, Decl(component.ts, 2, 27)) + + constructor(public Service: Service) { +>Service : Symbol(MyComponent.Service, Decl(component.ts, 6, 16)) +>Service : Symbol(Service, Decl(component.ts, 0, 6)) + } + + @decorator +>decorator : Symbol(decorator, Decl(component.ts, 2, 11)) + + method(x: this) { +>method : Symbol(MyComponent.method, Decl(component.ts, 7, 5)) +>x : Symbol(x, Decl(component.ts, 10, 11)) + } +} diff --git a/tests/baselines/reference/decoratorMetadata(target=es5).types b/tests/baselines/reference/decoratorMetadata(target=es5).types new file mode 100644 index 0000000000000..a7e9a49536863 --- /dev/null +++ b/tests/baselines/reference/decoratorMetadata(target=es5).types @@ -0,0 +1,37 @@ +//// [tests/cases/conformance/decorators/decoratorMetadata.ts] //// + +=== service.ts === +export default class Service { +>Service : Service +> : ^^^^^^^ +} +=== component.ts === +import Service from "./service"; +>Service : typeof Service +> : ^^^^^^^^^^^^^^ + +declare var decorator: any; +>decorator : any + +@decorator +>decorator : any + +class MyComponent { +>MyComponent : MyComponent +> : ^^^^^^^^^^^ + + constructor(public Service: Service) { +>Service : Service +> : ^^^^^^^ + } + + @decorator +>decorator : any + + method(x: this) { +>method : (x: this) => void +> : ^ ^^ ^^^^^^^^^ +>x : this +> : ^^^^ + } +} diff --git a/tests/baselines/reference/decoratorMetadata-jsdoc.errors.txt b/tests/baselines/reference/decoratorMetadata-jsdoc(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/decoratorMetadata-jsdoc.errors.txt rename to tests/baselines/reference/decoratorMetadata-jsdoc(target=es2015).errors.txt diff --git a/tests/baselines/reference/decoratorMetadata-jsdoc(target=es2015).js b/tests/baselines/reference/decoratorMetadata-jsdoc(target=es2015).js new file mode 100644 index 0000000000000..6a5f69aed91e2 --- /dev/null +++ b/tests/baselines/reference/decoratorMetadata-jsdoc(target=es2015).js @@ -0,0 +1,38 @@ +//// [tests/cases/conformance/decorators/decoratorMetadata-jsdoc.ts] //// + +//// [decoratorMetadata-jsdoc.ts] +declare var decorator: any; + +class X { + @decorator() + a?: string?; + @decorator() + b?: string!; + @decorator() + c?: *; +} + +//// [decoratorMetadata-jsdoc.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; +class X { +} +__decorate([ + decorator(), + __metadata("design:type", String) +], X.prototype, "a", void 0); +__decorate([ + decorator(), + __metadata("design:type", String) +], X.prototype, "b", void 0); +__decorate([ + decorator(), + __metadata("design:type", Object) +], X.prototype, "c", void 0); diff --git a/tests/baselines/reference/decoratorMetadata-jsdoc.symbols b/tests/baselines/reference/decoratorMetadata-jsdoc(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/decoratorMetadata-jsdoc.symbols rename to tests/baselines/reference/decoratorMetadata-jsdoc(target=es2015).symbols diff --git a/tests/baselines/reference/decoratorMetadata-jsdoc.types b/tests/baselines/reference/decoratorMetadata-jsdoc(target=es2015).types similarity index 100% rename from tests/baselines/reference/decoratorMetadata-jsdoc.types rename to tests/baselines/reference/decoratorMetadata-jsdoc(target=es2015).types diff --git a/tests/baselines/reference/decoratorMetadata-jsdoc(target=es5).errors.txt b/tests/baselines/reference/decoratorMetadata-jsdoc(target=es5).errors.txt new file mode 100644 index 0000000000000..b38d8ebf6e86e --- /dev/null +++ b/tests/baselines/reference/decoratorMetadata-jsdoc(target=es5).errors.txt @@ -0,0 +1,22 @@ +decoratorMetadata-jsdoc.ts(5,9): error TS17019: '?' at the end of a type is not valid TypeScript syntax. Did you mean to write 'string'? +decoratorMetadata-jsdoc.ts(7,9): error TS17019: '!' at the end of a type is not valid TypeScript syntax. Did you mean to write 'string'? +decoratorMetadata-jsdoc.ts(9,9): error TS8020: JSDoc types can only be used inside documentation comments. + + +==== decoratorMetadata-jsdoc.ts (3 errors) ==== + declare var decorator: any; + + class X { + @decorator() + a?: string?; + ~~~~~~~ +!!! error TS17019: '?' at the end of a type is not valid TypeScript syntax. Did you mean to write 'string'? + @decorator() + b?: string!; + ~~~~~~~ +!!! error TS17019: '!' at the end of a type is not valid TypeScript syntax. Did you mean to write 'string'? + @decorator() + c?: *; + ~ +!!! error TS8020: JSDoc types can only be used inside documentation comments. + } \ No newline at end of file diff --git a/tests/baselines/reference/decoratorMetadata-jsdoc.js b/tests/baselines/reference/decoratorMetadata-jsdoc(target=es5).js similarity index 100% rename from tests/baselines/reference/decoratorMetadata-jsdoc.js rename to tests/baselines/reference/decoratorMetadata-jsdoc(target=es5).js diff --git a/tests/baselines/reference/decoratorMetadata-jsdoc(target=es5).symbols b/tests/baselines/reference/decoratorMetadata-jsdoc(target=es5).symbols new file mode 100644 index 0000000000000..2113ea970e5a9 --- /dev/null +++ b/tests/baselines/reference/decoratorMetadata-jsdoc(target=es5).symbols @@ -0,0 +1,27 @@ +//// [tests/cases/conformance/decorators/decoratorMetadata-jsdoc.ts] //// + +=== decoratorMetadata-jsdoc.ts === +declare var decorator: any; +>decorator : Symbol(decorator, Decl(decoratorMetadata-jsdoc.ts, 0, 11)) + +class X { +>X : Symbol(X, Decl(decoratorMetadata-jsdoc.ts, 0, 27)) + + @decorator() +>decorator : Symbol(decorator, Decl(decoratorMetadata-jsdoc.ts, 0, 11)) + + a?: string?; +>a : Symbol(X.a, Decl(decoratorMetadata-jsdoc.ts, 2, 9)) + + @decorator() +>decorator : Symbol(decorator, Decl(decoratorMetadata-jsdoc.ts, 0, 11)) + + b?: string!; +>b : Symbol(X.b, Decl(decoratorMetadata-jsdoc.ts, 4, 16)) + + @decorator() +>decorator : Symbol(decorator, Decl(decoratorMetadata-jsdoc.ts, 0, 11)) + + c?: *; +>c : Symbol(X.c, Decl(decoratorMetadata-jsdoc.ts, 6, 16)) +} diff --git a/tests/baselines/reference/decoratorMetadata-jsdoc(target=es5).types b/tests/baselines/reference/decoratorMetadata-jsdoc(target=es5).types new file mode 100644 index 0000000000000..9e8f59e00a34a --- /dev/null +++ b/tests/baselines/reference/decoratorMetadata-jsdoc(target=es5).types @@ -0,0 +1,41 @@ +//// [tests/cases/conformance/decorators/decoratorMetadata-jsdoc.ts] //// + +=== decoratorMetadata-jsdoc.ts === +declare var decorator: any; +>decorator : any +> : ^^^ + +class X { +>X : X +> : ^ + + @decorator() +>decorator() : any +> : ^^^ +>decorator : any +> : ^^^ + + a?: string?; +>a : string +> : ^^^^^^ + + @decorator() +>decorator() : any +> : ^^^ +>decorator : any +> : ^^^ + + b?: string!; +>b : string +> : ^^^^^^ + + @decorator() +>decorator() : any +> : ^^^ +>decorator : any +> : ^^^ + + c?: *; +>c : any +> : ^^^ +} diff --git a/tests/baselines/reference/decoratorMetadataForMethodWithNoReturnTypeAnnotation01(target=es2015).js b/tests/baselines/reference/decoratorMetadataForMethodWithNoReturnTypeAnnotation01(target=es2015).js new file mode 100644 index 0000000000000..c84c4c97d0b56 --- /dev/null +++ b/tests/baselines/reference/decoratorMetadataForMethodWithNoReturnTypeAnnotation01(target=es2015).js @@ -0,0 +1,30 @@ +//// [tests/cases/compiler/decoratorMetadataForMethodWithNoReturnTypeAnnotation01.ts] //// + +//// [decoratorMetadataForMethodWithNoReturnTypeAnnotation01.ts] +declare var decorator: any; + +class MyClass { + constructor(test: string, test2: number) { + + } + + @decorator + doSomething() { + + } +} + + +//// [decoratorMetadataForMethodWithNoReturnTypeAnnotation01.js] +class MyClass { + constructor(test, test2) { + } + doSomething() { + } +} +__decorate([ + decorator, + __metadata("design:type", Function), + __metadata("design:paramtypes", []), + __metadata("design:returntype", void 0) +], MyClass.prototype, "doSomething", null); diff --git a/tests/baselines/reference/decoratorMetadataForMethodWithNoReturnTypeAnnotation01.symbols b/tests/baselines/reference/decoratorMetadataForMethodWithNoReturnTypeAnnotation01(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/decoratorMetadataForMethodWithNoReturnTypeAnnotation01.symbols rename to tests/baselines/reference/decoratorMetadataForMethodWithNoReturnTypeAnnotation01(target=es2015).symbols diff --git a/tests/baselines/reference/decoratorMetadataForMethodWithNoReturnTypeAnnotation01.types b/tests/baselines/reference/decoratorMetadataForMethodWithNoReturnTypeAnnotation01(target=es2015).types similarity index 100% rename from tests/baselines/reference/decoratorMetadataForMethodWithNoReturnTypeAnnotation01.types rename to tests/baselines/reference/decoratorMetadataForMethodWithNoReturnTypeAnnotation01(target=es2015).types diff --git a/tests/baselines/reference/decoratorMetadataForMethodWithNoReturnTypeAnnotation01.js b/tests/baselines/reference/decoratorMetadataForMethodWithNoReturnTypeAnnotation01(target=es5).js similarity index 100% rename from tests/baselines/reference/decoratorMetadataForMethodWithNoReturnTypeAnnotation01.js rename to tests/baselines/reference/decoratorMetadataForMethodWithNoReturnTypeAnnotation01(target=es5).js diff --git a/tests/baselines/reference/decoratorMetadataForMethodWithNoReturnTypeAnnotation01(target=es5).symbols b/tests/baselines/reference/decoratorMetadataForMethodWithNoReturnTypeAnnotation01(target=es5).symbols new file mode 100644 index 0000000000000..ec0e0d803de8b --- /dev/null +++ b/tests/baselines/reference/decoratorMetadataForMethodWithNoReturnTypeAnnotation01(target=es5).symbols @@ -0,0 +1,24 @@ +//// [tests/cases/compiler/decoratorMetadataForMethodWithNoReturnTypeAnnotation01.ts] //// + +=== decoratorMetadataForMethodWithNoReturnTypeAnnotation01.ts === +declare var decorator: any; +>decorator : Symbol(decorator, Decl(decoratorMetadataForMethodWithNoReturnTypeAnnotation01.ts, 0, 11)) + +class MyClass { +>MyClass : Symbol(MyClass, Decl(decoratorMetadataForMethodWithNoReturnTypeAnnotation01.ts, 0, 27)) + + constructor(test: string, test2: number) { +>test : Symbol(test, Decl(decoratorMetadataForMethodWithNoReturnTypeAnnotation01.ts, 3, 16)) +>test2 : Symbol(test2, Decl(decoratorMetadataForMethodWithNoReturnTypeAnnotation01.ts, 3, 29)) + + } + + @decorator +>decorator : Symbol(decorator, Decl(decoratorMetadataForMethodWithNoReturnTypeAnnotation01.ts, 0, 11)) + + doSomething() { +>doSomething : Symbol(MyClass.doSomething, Decl(decoratorMetadataForMethodWithNoReturnTypeAnnotation01.ts, 5, 5)) + + } +} + diff --git a/tests/baselines/reference/decoratorMetadataForMethodWithNoReturnTypeAnnotation01(target=es5).types b/tests/baselines/reference/decoratorMetadataForMethodWithNoReturnTypeAnnotation01(target=es5).types new file mode 100644 index 0000000000000..6ff8c81acd589 --- /dev/null +++ b/tests/baselines/reference/decoratorMetadataForMethodWithNoReturnTypeAnnotation01(target=es5).types @@ -0,0 +1,28 @@ +//// [tests/cases/compiler/decoratorMetadataForMethodWithNoReturnTypeAnnotation01.ts] //// + +=== decoratorMetadataForMethodWithNoReturnTypeAnnotation01.ts === +declare var decorator: any; +>decorator : any + +class MyClass { +>MyClass : MyClass +> : ^^^^^^^ + + constructor(test: string, test2: number) { +>test : string +> : ^^^^^^ +>test2 : number +> : ^^^^^^ + + } + + @decorator +>decorator : any + + doSomething() { +>doSomething : () => void +> : ^^^^^^^^^^ + + } +} + diff --git a/tests/baselines/reference/decoratorMetadataOnInferredType(target=es2015).js b/tests/baselines/reference/decoratorMetadataOnInferredType(target=es2015).js new file mode 100644 index 0000000000000..886705d5450a7 --- /dev/null +++ b/tests/baselines/reference/decoratorMetadataOnInferredType(target=es2015).js @@ -0,0 +1,39 @@ +//// [tests/cases/compiler/decoratorMetadataOnInferredType.ts] //// + +//// [decoratorMetadataOnInferredType.ts] +declare var console: { + log(msg: string): void; +}; + +class A { + constructor() { console.log('new A'); } +} + +function decorator(target: Object, propertyKey: string) { +} + +export class B { + @decorator + x = new A(); +} + + +//// [decoratorMetadataOnInferredType.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.B = void 0; +class A { + constructor() { console.log('new A'); } +} +function decorator(target, propertyKey) { +} +class B { + constructor() { + this.x = new A(); + } +} +exports.B = B; +__decorate([ + decorator, + __metadata("design:type", Object) +], B.prototype, "x", void 0); diff --git a/tests/baselines/reference/decoratorMetadataOnInferredType.symbols b/tests/baselines/reference/decoratorMetadataOnInferredType(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/decoratorMetadataOnInferredType.symbols rename to tests/baselines/reference/decoratorMetadataOnInferredType(target=es2015).symbols diff --git a/tests/baselines/reference/decoratorMetadataOnInferredType.types b/tests/baselines/reference/decoratorMetadataOnInferredType(target=es2015).types similarity index 100% rename from tests/baselines/reference/decoratorMetadataOnInferredType.types rename to tests/baselines/reference/decoratorMetadataOnInferredType(target=es2015).types diff --git a/tests/baselines/reference/decoratorMetadataOnInferredType.js b/tests/baselines/reference/decoratorMetadataOnInferredType(target=es5).js similarity index 100% rename from tests/baselines/reference/decoratorMetadataOnInferredType.js rename to tests/baselines/reference/decoratorMetadataOnInferredType(target=es5).js diff --git a/tests/baselines/reference/decoratorMetadataOnInferredType(target=es5).symbols b/tests/baselines/reference/decoratorMetadataOnInferredType(target=es5).symbols new file mode 100644 index 0000000000000..d065eadf7344b --- /dev/null +++ b/tests/baselines/reference/decoratorMetadataOnInferredType(target=es5).symbols @@ -0,0 +1,39 @@ +//// [tests/cases/compiler/decoratorMetadataOnInferredType.ts] //// + +=== decoratorMetadataOnInferredType.ts === +declare var console: { +>console : Symbol(console, Decl(decoratorMetadataOnInferredType.ts, 0, 11)) + + log(msg: string): void; +>log : Symbol(log, Decl(decoratorMetadataOnInferredType.ts, 0, 22)) +>msg : Symbol(msg, Decl(decoratorMetadataOnInferredType.ts, 1, 8)) + +}; + +class A { +>A : Symbol(A, Decl(decoratorMetadataOnInferredType.ts, 2, 2)) + + constructor() { console.log('new A'); } +>console.log : Symbol(log, Decl(decoratorMetadataOnInferredType.ts, 0, 22)) +>console : Symbol(console, Decl(decoratorMetadataOnInferredType.ts, 0, 11)) +>log : Symbol(log, Decl(decoratorMetadataOnInferredType.ts, 0, 22)) +} + +function decorator(target: Object, propertyKey: string) { +>decorator : Symbol(decorator, Decl(decoratorMetadataOnInferredType.ts, 6, 1)) +>target : Symbol(target, Decl(decoratorMetadataOnInferredType.ts, 8, 19)) +>Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>propertyKey : Symbol(propertyKey, Decl(decoratorMetadataOnInferredType.ts, 8, 34)) +} + +export class B { +>B : Symbol(B, Decl(decoratorMetadataOnInferredType.ts, 9, 1)) + + @decorator +>decorator : Symbol(decorator, Decl(decoratorMetadataOnInferredType.ts, 6, 1)) + + x = new A(); +>x : Symbol(B.x, Decl(decoratorMetadataOnInferredType.ts, 11, 16)) +>A : Symbol(A, Decl(decoratorMetadataOnInferredType.ts, 2, 2)) +} + diff --git a/tests/baselines/reference/decoratorMetadataOnInferredType(target=es5).types b/tests/baselines/reference/decoratorMetadataOnInferredType(target=es5).types new file mode 100644 index 0000000000000..1805985fa8dd3 --- /dev/null +++ b/tests/baselines/reference/decoratorMetadataOnInferredType(target=es5).types @@ -0,0 +1,58 @@ +//// [tests/cases/compiler/decoratorMetadataOnInferredType.ts] //// + +=== decoratorMetadataOnInferredType.ts === +declare var console: { +>console : { log(msg: string): void; } +> : ^^^^^^ ^^ ^^^ ^^^ + + log(msg: string): void; +>log : (msg: string) => void +> : ^ ^^ ^^^^^ +>msg : string +> : ^^^^^^ + +}; + +class A { +>A : A +> : ^ + + constructor() { console.log('new A'); } +>console.log('new A') : void +> : ^^^^ +>console.log : (msg: string) => void +> : ^ ^^ ^^^^^ +>console : { log(msg: string): void; } +> : ^^^^^^ ^^ ^^^ ^^^ +>log : (msg: string) => void +> : ^ ^^ ^^^^^ +>'new A' : "new A" +> : ^^^^^^^ +} + +function decorator(target: Object, propertyKey: string) { +>decorator : (target: Object, propertyKey: string) => void +> : ^ ^^ ^^ ^^ ^^^^^^^^^ +>target : Object +> : ^^^^^^ +>propertyKey : string +> : ^^^^^^ +} + +export class B { +>B : B +> : ^ + + @decorator +>decorator : (target: Object, propertyKey: string) => void +> : ^ ^^ ^^ ^^ ^^^^^^^^^ + + x = new A(); +>x : A +> : ^ +>new A() : A +> : ^ +>A : typeof A +> : ^^^^^^^^ +} + diff --git a/tests/baselines/reference/decoratorMetadataRestParameterWithImportedType(target=es2015).js b/tests/baselines/reference/decoratorMetadataRestParameterWithImportedType(target=es2015).js new file mode 100644 index 0000000000000..21e2dd30312d6 --- /dev/null +++ b/tests/baselines/reference/decoratorMetadataRestParameterWithImportedType(target=es2015).js @@ -0,0 +1,86 @@ +//// [tests/cases/compiler/decoratorMetadataRestParameterWithImportedType.ts] //// + +//// [aux.ts] +export class SomeClass { + field: string; +} + +//// [aux1.ts] +export class SomeClass1 { + field: string; +} + +//// [aux2.ts] +export class SomeClass2 { + field: string; +} +//// [main.ts] +import { SomeClass } from './aux'; +import { SomeClass1 } from './aux1'; + +function annotation(): ClassDecorator { + return (target: any): void => { }; +} + +function annotation1(): MethodDecorator { + return (target: any): void => { }; +} + +@annotation() +export class ClassA { + array: SomeClass[]; + + constructor(...init: SomeClass[]) { + this.array = init; + } + + @annotation1() + foo(... args: SomeClass1[]) { + } +} + +//// [aux.js] +export class SomeClass { +} +//// [aux1.js] +export class SomeClass1 { +} +//// [aux2.js] +export class SomeClass2 { +} +//// [main.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; +import { SomeClass } from './aux'; +import { SomeClass1 } from './aux1'; +function annotation() { + return (target) => { }; +} +function annotation1() { + return (target) => { }; +} +let ClassA = class ClassA { + constructor(...init) { + this.array = init; + } + foo(...args) { + } +}; +__decorate([ + annotation1(), + __metadata("design:type", Function), + __metadata("design:paramtypes", [SomeClass1]), + __metadata("design:returntype", void 0) +], ClassA.prototype, "foo", null); +ClassA = __decorate([ + annotation(), + __metadata("design:paramtypes", [SomeClass]) +], ClassA); +export { ClassA }; diff --git a/tests/baselines/reference/decoratorMetadataRestParameterWithImportedType.symbols b/tests/baselines/reference/decoratorMetadataRestParameterWithImportedType(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/decoratorMetadataRestParameterWithImportedType.symbols rename to tests/baselines/reference/decoratorMetadataRestParameterWithImportedType(target=es2015).symbols diff --git a/tests/baselines/reference/decoratorMetadataRestParameterWithImportedType.types b/tests/baselines/reference/decoratorMetadataRestParameterWithImportedType(target=es2015).types similarity index 100% rename from tests/baselines/reference/decoratorMetadataRestParameterWithImportedType.types rename to tests/baselines/reference/decoratorMetadataRestParameterWithImportedType(target=es2015).types diff --git a/tests/baselines/reference/decoratorMetadataRestParameterWithImportedType.js b/tests/baselines/reference/decoratorMetadataRestParameterWithImportedType(target=es5).js similarity index 100% rename from tests/baselines/reference/decoratorMetadataRestParameterWithImportedType.js rename to tests/baselines/reference/decoratorMetadataRestParameterWithImportedType(target=es5).js diff --git a/tests/baselines/reference/decoratorMetadataRestParameterWithImportedType(target=es5).symbols b/tests/baselines/reference/decoratorMetadataRestParameterWithImportedType(target=es5).symbols new file mode 100644 index 0000000000000..b2d1b15ada2ae --- /dev/null +++ b/tests/baselines/reference/decoratorMetadataRestParameterWithImportedType(target=es5).symbols @@ -0,0 +1,78 @@ +//// [tests/cases/compiler/decoratorMetadataRestParameterWithImportedType.ts] //// + +=== aux.ts === +export class SomeClass { +>SomeClass : Symbol(SomeClass, Decl(aux.ts, 0, 0)) + + field: string; +>field : Symbol(SomeClass.field, Decl(aux.ts, 0, 24)) +} + +=== aux1.ts === +export class SomeClass1 { +>SomeClass1 : Symbol(SomeClass1, Decl(aux1.ts, 0, 0)) + + field: string; +>field : Symbol(SomeClass1.field, Decl(aux1.ts, 0, 25)) +} + +=== aux2.ts === +export class SomeClass2 { +>SomeClass2 : Symbol(SomeClass2, Decl(aux2.ts, 0, 0)) + + field: string; +>field : Symbol(SomeClass2.field, Decl(aux2.ts, 0, 25)) +} +=== main.ts === +import { SomeClass } from './aux'; +>SomeClass : Symbol(SomeClass, Decl(main.ts, 0, 8)) + +import { SomeClass1 } from './aux1'; +>SomeClass1 : Symbol(SomeClass1, Decl(main.ts, 1, 8)) + +function annotation(): ClassDecorator { +>annotation : Symbol(annotation, Decl(main.ts, 1, 36)) +>ClassDecorator : Symbol(ClassDecorator, Decl(lib.decorators.legacy.d.ts, --, --)) + + return (target: any): void => { }; +>target : Symbol(target, Decl(main.ts, 4, 12)) +} + +function annotation1(): MethodDecorator { +>annotation1 : Symbol(annotation1, Decl(main.ts, 5, 1)) +>MethodDecorator : Symbol(MethodDecorator, Decl(lib.decorators.legacy.d.ts, --, --)) + + return (target: any): void => { }; +>target : Symbol(target, Decl(main.ts, 8, 12)) +} + +@annotation() +>annotation : Symbol(annotation, Decl(main.ts, 1, 36)) + +export class ClassA { +>ClassA : Symbol(ClassA, Decl(main.ts, 9, 1)) + + array: SomeClass[]; +>array : Symbol(ClassA.array, Decl(main.ts, 12, 21)) +>SomeClass : Symbol(SomeClass, Decl(main.ts, 0, 8)) + + constructor(...init: SomeClass[]) { +>init : Symbol(init, Decl(main.ts, 15, 16)) +>SomeClass : Symbol(SomeClass, Decl(main.ts, 0, 8)) + + this.array = init; +>this.array : Symbol(ClassA.array, Decl(main.ts, 12, 21)) +>this : Symbol(ClassA, Decl(main.ts, 9, 1)) +>array : Symbol(ClassA.array, Decl(main.ts, 12, 21)) +>init : Symbol(init, Decl(main.ts, 15, 16)) + } + + @annotation1() +>annotation1 : Symbol(annotation1, Decl(main.ts, 5, 1)) + + foo(... args: SomeClass1[]) { +>foo : Symbol(ClassA.foo, Decl(main.ts, 17, 5)) +>args : Symbol(args, Decl(main.ts, 20, 8)) +>SomeClass1 : Symbol(SomeClass1, Decl(main.ts, 1, 8)) + } +} diff --git a/tests/baselines/reference/decoratorMetadataRestParameterWithImportedType(target=es5).types b/tests/baselines/reference/decoratorMetadataRestParameterWithImportedType(target=es5).types new file mode 100644 index 0000000000000..039c11ddb3b9d --- /dev/null +++ b/tests/baselines/reference/decoratorMetadataRestParameterWithImportedType(target=es5).types @@ -0,0 +1,104 @@ +//// [tests/cases/compiler/decoratorMetadataRestParameterWithImportedType.ts] //// + +=== aux.ts === +export class SomeClass { +>SomeClass : SomeClass +> : ^^^^^^^^^ + + field: string; +>field : string +> : ^^^^^^ +} + +=== aux1.ts === +export class SomeClass1 { +>SomeClass1 : SomeClass1 +> : ^^^^^^^^^^ + + field: string; +>field : string +> : ^^^^^^ +} + +=== aux2.ts === +export class SomeClass2 { +>SomeClass2 : SomeClass2 +> : ^^^^^^^^^^ + + field: string; +>field : string +> : ^^^^^^ +} +=== main.ts === +import { SomeClass } from './aux'; +>SomeClass : typeof SomeClass +> : ^^^^^^^^^^^^^^^^ + +import { SomeClass1 } from './aux1'; +>SomeClass1 : typeof SomeClass1 +> : ^^^^^^^^^^^^^^^^^ + +function annotation(): ClassDecorator { +>annotation : () => ClassDecorator +> : ^^^^^^ + + return (target: any): void => { }; +>(target: any): void => { } : (target: any) => void +> : ^ ^^ ^^^^^ +>target : any +} + +function annotation1(): MethodDecorator { +>annotation1 : () => MethodDecorator +> : ^^^^^^ + + return (target: any): void => { }; +>(target: any): void => { } : (target: any) => void +> : ^ ^^ ^^^^^ +>target : any +} + +@annotation() +>annotation() : ClassDecorator +> : ^^^^^^^^^^^^^^ +>annotation : () => ClassDecorator +> : ^^^^^^ + +export class ClassA { +>ClassA : ClassA +> : ^^^^^^ + + array: SomeClass[]; +>array : SomeClass[] +> : ^^^^^^^^^^^ + + constructor(...init: SomeClass[]) { +>init : SomeClass[] +> : ^^^^^^^^^^^ + + this.array = init; +>this.array = init : SomeClass[] +> : ^^^^^^^^^^^ +>this.array : SomeClass[] +> : ^^^^^^^^^^^ +>this : this +> : ^^^^ +>array : SomeClass[] +> : ^^^^^^^^^^^ +>init : SomeClass[] +> : ^^^^^^^^^^^ + } + + @annotation1() +>annotation1() : MethodDecorator +> : ^^^^^^^^^^^^^^^ +>annotation1 : () => MethodDecorator +> : ^^^^^^ + + foo(... args: SomeClass1[]) { +>foo : (...args: SomeClass1[]) => void +> : ^^^^ ^^ ^^^^^^^^^ +>args : SomeClass1[] +> : ^^^^^^^^^^^^ + } +} diff --git a/tests/baselines/reference/decoratorMetadataWithConstructorType(target=es2015).js b/tests/baselines/reference/decoratorMetadataWithConstructorType(target=es2015).js new file mode 100644 index 0000000000000..fbf9efd89616b --- /dev/null +++ b/tests/baselines/reference/decoratorMetadataWithConstructorType(target=es2015).js @@ -0,0 +1,39 @@ +//// [tests/cases/compiler/decoratorMetadataWithConstructorType.ts] //// + +//// [decoratorMetadataWithConstructorType.ts] +declare var console: { + log(msg: string): void; +}; + +class A { + constructor() { console.log('new A'); } +} + +function decorator(target: Object, propertyKey: string) { +} + +export class B { + @decorator + x: A = new A(); +} + + +//// [decoratorMetadataWithConstructorType.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.B = void 0; +class A { + constructor() { console.log('new A'); } +} +function decorator(target, propertyKey) { +} +class B { + constructor() { + this.x = new A(); + } +} +exports.B = B; +__decorate([ + decorator, + __metadata("design:type", A) +], B.prototype, "x", void 0); diff --git a/tests/baselines/reference/decoratorMetadataWithConstructorType.symbols b/tests/baselines/reference/decoratorMetadataWithConstructorType(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/decoratorMetadataWithConstructorType.symbols rename to tests/baselines/reference/decoratorMetadataWithConstructorType(target=es2015).symbols diff --git a/tests/baselines/reference/decoratorMetadataWithConstructorType.types b/tests/baselines/reference/decoratorMetadataWithConstructorType(target=es2015).types similarity index 100% rename from tests/baselines/reference/decoratorMetadataWithConstructorType.types rename to tests/baselines/reference/decoratorMetadataWithConstructorType(target=es2015).types diff --git a/tests/baselines/reference/decoratorMetadataWithConstructorType.js b/tests/baselines/reference/decoratorMetadataWithConstructorType(target=es5).js similarity index 100% rename from tests/baselines/reference/decoratorMetadataWithConstructorType.js rename to tests/baselines/reference/decoratorMetadataWithConstructorType(target=es5).js diff --git a/tests/baselines/reference/decoratorMetadataWithConstructorType(target=es5).symbols b/tests/baselines/reference/decoratorMetadataWithConstructorType(target=es5).symbols new file mode 100644 index 0000000000000..9f6521aa021a1 --- /dev/null +++ b/tests/baselines/reference/decoratorMetadataWithConstructorType(target=es5).symbols @@ -0,0 +1,40 @@ +//// [tests/cases/compiler/decoratorMetadataWithConstructorType.ts] //// + +=== decoratorMetadataWithConstructorType.ts === +declare var console: { +>console : Symbol(console, Decl(decoratorMetadataWithConstructorType.ts, 0, 11)) + + log(msg: string): void; +>log : Symbol(log, Decl(decoratorMetadataWithConstructorType.ts, 0, 22)) +>msg : Symbol(msg, Decl(decoratorMetadataWithConstructorType.ts, 1, 8)) + +}; + +class A { +>A : Symbol(A, Decl(decoratorMetadataWithConstructorType.ts, 2, 2)) + + constructor() { console.log('new A'); } +>console.log : Symbol(log, Decl(decoratorMetadataWithConstructorType.ts, 0, 22)) +>console : Symbol(console, Decl(decoratorMetadataWithConstructorType.ts, 0, 11)) +>log : Symbol(log, Decl(decoratorMetadataWithConstructorType.ts, 0, 22)) +} + +function decorator(target: Object, propertyKey: string) { +>decorator : Symbol(decorator, Decl(decoratorMetadataWithConstructorType.ts, 6, 1)) +>target : Symbol(target, Decl(decoratorMetadataWithConstructorType.ts, 8, 19)) +>Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>propertyKey : Symbol(propertyKey, Decl(decoratorMetadataWithConstructorType.ts, 8, 34)) +} + +export class B { +>B : Symbol(B, Decl(decoratorMetadataWithConstructorType.ts, 9, 1)) + + @decorator +>decorator : Symbol(decorator, Decl(decoratorMetadataWithConstructorType.ts, 6, 1)) + + x: A = new A(); +>x : Symbol(B.x, Decl(decoratorMetadataWithConstructorType.ts, 11, 16)) +>A : Symbol(A, Decl(decoratorMetadataWithConstructorType.ts, 2, 2)) +>A : Symbol(A, Decl(decoratorMetadataWithConstructorType.ts, 2, 2)) +} + diff --git a/tests/baselines/reference/decoratorMetadataWithConstructorType(target=es5).types b/tests/baselines/reference/decoratorMetadataWithConstructorType(target=es5).types new file mode 100644 index 0000000000000..30ac58e52bd2a --- /dev/null +++ b/tests/baselines/reference/decoratorMetadataWithConstructorType(target=es5).types @@ -0,0 +1,58 @@ +//// [tests/cases/compiler/decoratorMetadataWithConstructorType.ts] //// + +=== decoratorMetadataWithConstructorType.ts === +declare var console: { +>console : { log(msg: string): void; } +> : ^^^^^^ ^^ ^^^ ^^^ + + log(msg: string): void; +>log : (msg: string) => void +> : ^ ^^ ^^^^^ +>msg : string +> : ^^^^^^ + +}; + +class A { +>A : A +> : ^ + + constructor() { console.log('new A'); } +>console.log('new A') : void +> : ^^^^ +>console.log : (msg: string) => void +> : ^ ^^ ^^^^^ +>console : { log(msg: string): void; } +> : ^^^^^^ ^^ ^^^ ^^^ +>log : (msg: string) => void +> : ^ ^^ ^^^^^ +>'new A' : "new A" +> : ^^^^^^^ +} + +function decorator(target: Object, propertyKey: string) { +>decorator : (target: Object, propertyKey: string) => void +> : ^ ^^ ^^ ^^ ^^^^^^^^^ +>target : Object +> : ^^^^^^ +>propertyKey : string +> : ^^^^^^ +} + +export class B { +>B : B +> : ^ + + @decorator +>decorator : (target: Object, propertyKey: string) => void +> : ^ ^^ ^^ ^^ ^^^^^^^^^ + + x: A = new A(); +>x : A +> : ^ +>new A() : A +> : ^ +>A : typeof A +> : ^^^^^^^^ +} + diff --git a/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision(target=es2015).js b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision(target=es2015).js new file mode 100644 index 0000000000000..55563b87fabfb --- /dev/null +++ b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision(target=es2015).js @@ -0,0 +1,53 @@ +//// [tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision.ts] //// + +//// [db.ts] +export class db { + public doSomething() { + } +} + +//// [service.ts] +import {db} from './db'; +function someDecorator(target) { + return target; +} +@someDecorator +class MyClass { + db: db; + + constructor(db: db) { + this.db = db; + this.db.doSomething(); + } +} +export {MyClass}; + + +//// [db.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.db = void 0; +class db { + doSomething() { + } +} +exports.db = db; +//// [service.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MyClass = void 0; +const db_1 = require("./db"); +function someDecorator(target) { + return target; +} +let MyClass = class MyClass { + constructor(db) { + this.db = db; + this.db.doSomething(); + } +}; +exports.MyClass = MyClass; +exports.MyClass = MyClass = __decorate([ + someDecorator, + __metadata("design:paramtypes", [db_1.db]) +], MyClass); diff --git a/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision.symbols b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision.symbols rename to tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision(target=es2015).symbols diff --git a/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision.types b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision(target=es2015).types similarity index 100% rename from tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision.types rename to tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision(target=es2015).types diff --git a/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision.js b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision(target=es5).js similarity index 100% rename from tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision.js rename to tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision(target=es5).js diff --git a/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision(target=es5).symbols b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision(target=es5).symbols new file mode 100644 index 0000000000000..d0989c82a0c93 --- /dev/null +++ b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision(target=es5).symbols @@ -0,0 +1,53 @@ +//// [tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision.ts] //// + +=== db.ts === +export class db { +>db : Symbol(db, Decl(db.ts, 0, 0)) + + public doSomething() { +>doSomething : Symbol(db.doSomething, Decl(db.ts, 0, 17)) + } +} + +=== service.ts === +import {db} from './db'; +>db : Symbol(db, Decl(service.ts, 0, 8)) + +function someDecorator(target) { +>someDecorator : Symbol(someDecorator, Decl(service.ts, 0, 24)) +>target : Symbol(target, Decl(service.ts, 1, 23)) + + return target; +>target : Symbol(target, Decl(service.ts, 1, 23)) +} +@someDecorator +>someDecorator : Symbol(someDecorator, Decl(service.ts, 0, 24)) + +class MyClass { +>MyClass : Symbol(MyClass, Decl(service.ts, 3, 1)) + + db: db; +>db : Symbol(MyClass.db, Decl(service.ts, 5, 15)) +>db : Symbol(db, Decl(service.ts, 0, 8)) + + constructor(db: db) { +>db : Symbol(db, Decl(service.ts, 8, 16)) +>db : Symbol(db, Decl(service.ts, 0, 8)) + + this.db = db; +>this.db : Symbol(MyClass.db, Decl(service.ts, 5, 15)) +>this : Symbol(MyClass, Decl(service.ts, 3, 1)) +>db : Symbol(MyClass.db, Decl(service.ts, 5, 15)) +>db : Symbol(db, Decl(service.ts, 8, 16)) + + this.db.doSomething(); +>this.db.doSomething : Symbol(db.doSomething, Decl(db.ts, 0, 17)) +>this.db : Symbol(MyClass.db, Decl(service.ts, 5, 15)) +>this : Symbol(MyClass, Decl(service.ts, 3, 1)) +>db : Symbol(MyClass.db, Decl(service.ts, 5, 15)) +>doSomething : Symbol(db.doSomething, Decl(db.ts, 0, 17)) + } +} +export {MyClass}; +>MyClass : Symbol(MyClass, Decl(service.ts, 13, 8)) + diff --git a/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision(target=es5).types b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision(target=es5).types new file mode 100644 index 0000000000000..42cbbe0667ed2 --- /dev/null +++ b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision(target=es5).types @@ -0,0 +1,73 @@ +//// [tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision.ts] //// + +=== db.ts === +export class db { +>db : db +> : ^^ + + public doSomething() { +>doSomething : () => void +> : ^^^^^^^^^^ + } +} + +=== service.ts === +import {db} from './db'; +>db : typeof db +> : ^^^^^^^^^ + +function someDecorator(target) { +>someDecorator : (target: any) => any +> : ^ ^^^^^^^^^^^^^ +>target : any + + return target; +>target : any +} +@someDecorator +>someDecorator : (target: any) => any +> : ^ ^^^^^^^^^^^^^ + +class MyClass { +>MyClass : MyClass +> : ^^^^^^^ + + db: db; +>db : db +> : ^^ + + constructor(db: db) { +>db : db +> : ^^ + + this.db = db; +>this.db = db : db +> : ^^ +>this.db : db +> : ^^ +>this : this +> : ^^^^ +>db : db +> : ^^ +>db : db +> : ^^ + + this.db.doSomething(); +>this.db.doSomething() : void +> : ^^^^ +>this.db.doSomething : () => void +> : ^^^^^^^^^^ +>this.db : db +> : ^^ +>this : this +> : ^^^^ +>db : db +> : ^^ +>doSomething : () => void +> : ^^^^^^^^^^ + } +} +export {MyClass}; +>MyClass : typeof MyClass +> : ^^^^^^^^^^^^^^ + diff --git a/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision2(target=es2015).js b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision2(target=es2015).js new file mode 100644 index 0000000000000..ac4ba3b37b7a3 --- /dev/null +++ b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision2(target=es2015).js @@ -0,0 +1,53 @@ +//// [tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision2.ts] //// + +//// [db.ts] +export class db { + public doSomething() { + } +} + +//// [service.ts] +import {db as Database} from './db'; +function someDecorator(target) { + return target; +} +@someDecorator +class MyClass { + db: Database; + + constructor(db: Database) { // no collision + this.db = db; + this.db.doSomething(); + } +} +export {MyClass}; + + +//// [db.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.db = void 0; +class db { + doSomething() { + } +} +exports.db = db; +//// [service.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MyClass = void 0; +const db_1 = require("./db"); +function someDecorator(target) { + return target; +} +let MyClass = class MyClass { + constructor(db) { + this.db = db; + this.db.doSomething(); + } +}; +exports.MyClass = MyClass; +exports.MyClass = MyClass = __decorate([ + someDecorator, + __metadata("design:paramtypes", [db_1.db]) +], MyClass); diff --git a/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision2.symbols b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision2(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision2.symbols rename to tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision2(target=es2015).symbols diff --git a/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision2.types b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision2(target=es2015).types similarity index 100% rename from tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision2.types rename to tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision2(target=es2015).types diff --git a/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision2.js b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision2(target=es5).js similarity index 100% rename from tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision2.js rename to tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision2(target=es5).js diff --git a/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision2(target=es5).symbols b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision2(target=es5).symbols new file mode 100644 index 0000000000000..8745996b29937 --- /dev/null +++ b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision2(target=es5).symbols @@ -0,0 +1,54 @@ +//// [tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision2.ts] //// + +=== db.ts === +export class db { +>db : Symbol(db, Decl(db.ts, 0, 0)) + + public doSomething() { +>doSomething : Symbol(db.doSomething, Decl(db.ts, 0, 17)) + } +} + +=== service.ts === +import {db as Database} from './db'; +>db : Symbol(Database, Decl(db.ts, 0, 0)) +>Database : Symbol(Database, Decl(service.ts, 0, 8)) + +function someDecorator(target) { +>someDecorator : Symbol(someDecorator, Decl(service.ts, 0, 36)) +>target : Symbol(target, Decl(service.ts, 1, 23)) + + return target; +>target : Symbol(target, Decl(service.ts, 1, 23)) +} +@someDecorator +>someDecorator : Symbol(someDecorator, Decl(service.ts, 0, 36)) + +class MyClass { +>MyClass : Symbol(MyClass, Decl(service.ts, 3, 1)) + + db: Database; +>db : Symbol(MyClass.db, Decl(service.ts, 5, 15)) +>Database : Symbol(Database, Decl(service.ts, 0, 8)) + + constructor(db: Database) { // no collision +>db : Symbol(db, Decl(service.ts, 8, 16)) +>Database : Symbol(Database, Decl(service.ts, 0, 8)) + + this.db = db; +>this.db : Symbol(MyClass.db, Decl(service.ts, 5, 15)) +>this : Symbol(MyClass, Decl(service.ts, 3, 1)) +>db : Symbol(MyClass.db, Decl(service.ts, 5, 15)) +>db : Symbol(db, Decl(service.ts, 8, 16)) + + this.db.doSomething(); +>this.db.doSomething : Symbol(Database.doSomething, Decl(db.ts, 0, 17)) +>this.db : Symbol(MyClass.db, Decl(service.ts, 5, 15)) +>this : Symbol(MyClass, Decl(service.ts, 3, 1)) +>db : Symbol(MyClass.db, Decl(service.ts, 5, 15)) +>doSomething : Symbol(Database.doSomething, Decl(db.ts, 0, 17)) + } +} +export {MyClass}; +>MyClass : Symbol(MyClass, Decl(service.ts, 13, 8)) + diff --git a/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision2(target=es5).types b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision2(target=es5).types new file mode 100644 index 0000000000000..95c9a2e1754e7 --- /dev/null +++ b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision2(target=es5).types @@ -0,0 +1,75 @@ +//// [tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision2.ts] //// + +=== db.ts === +export class db { +>db : db +> : ^^ + + public doSomething() { +>doSomething : () => void +> : ^^^^^^^^^^ + } +} + +=== service.ts === +import {db as Database} from './db'; +>db : typeof Database +> : ^^^^^^^^^^^^^^^ +>Database : typeof Database +> : ^^^^^^^^^^^^^^^ + +function someDecorator(target) { +>someDecorator : (target: any) => any +> : ^ ^^^^^^^^^^^^^ +>target : any + + return target; +>target : any +} +@someDecorator +>someDecorator : (target: any) => any +> : ^ ^^^^^^^^^^^^^ + +class MyClass { +>MyClass : MyClass +> : ^^^^^^^ + + db: Database; +>db : Database +> : ^^^^^^^^ + + constructor(db: Database) { // no collision +>db : Database +> : ^^^^^^^^ + + this.db = db; +>this.db = db : Database +> : ^^^^^^^^ +>this.db : Database +> : ^^^^^^^^ +>this : this +> : ^^^^ +>db : Database +> : ^^^^^^^^ +>db : Database +> : ^^^^^^^^ + + this.db.doSomething(); +>this.db.doSomething() : void +> : ^^^^ +>this.db.doSomething : () => void +> : ^^^^^^^^^^ +>this.db : Database +> : ^^^^^^^^ +>this : this +> : ^^^^ +>db : Database +> : ^^^^^^^^ +>doSomething : () => void +> : ^^^^^^^^^^ + } +} +export {MyClass}; +>MyClass : typeof MyClass +> : ^^^^^^^^^^^^^^ + diff --git a/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision3(target=es2015).js b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision3(target=es2015).js new file mode 100644 index 0000000000000..fc23e4c6603de --- /dev/null +++ b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision3(target=es2015).js @@ -0,0 +1,53 @@ +//// [tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision3.ts] //// + +//// [db.ts] +export class db { + public doSomething() { + } +} + +//// [service.ts] +import db = require('./db'); +function someDecorator(target) { + return target; +} +@someDecorator +class MyClass { + db: db.db; + + constructor(db: db.db) { // collision with namespace of external module db + this.db = db; + this.db.doSomething(); + } +} +export {MyClass}; + + +//// [db.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.db = void 0; +class db { + doSomething() { + } +} +exports.db = db; +//// [service.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MyClass = void 0; +const db = require("./db"); +function someDecorator(target) { + return target; +} +let MyClass = class MyClass { + constructor(db) { + this.db = db; + this.db.doSomething(); + } +}; +exports.MyClass = MyClass; +exports.MyClass = MyClass = __decorate([ + someDecorator, + __metadata("design:paramtypes", [db.db]) +], MyClass); diff --git a/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision3.symbols b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision3(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision3.symbols rename to tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision3(target=es2015).symbols diff --git a/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision3.types b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision3(target=es2015).types similarity index 100% rename from tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision3.types rename to tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision3(target=es2015).types diff --git a/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision3.js b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision3(target=es5).js similarity index 100% rename from tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision3.js rename to tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision3(target=es5).js diff --git a/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision3(target=es5).symbols b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision3(target=es5).symbols new file mode 100644 index 0000000000000..1bc697f0dfca9 --- /dev/null +++ b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision3(target=es5).symbols @@ -0,0 +1,55 @@ +//// [tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision3.ts] //// + +=== service.ts === +import db = require('./db'); +>db : Symbol(db, Decl(service.ts, 0, 0)) + +function someDecorator(target) { +>someDecorator : Symbol(someDecorator, Decl(service.ts, 0, 28)) +>target : Symbol(target, Decl(service.ts, 1, 23)) + + return target; +>target : Symbol(target, Decl(service.ts, 1, 23)) +} +@someDecorator +>someDecorator : Symbol(someDecorator, Decl(service.ts, 0, 28)) + +class MyClass { +>MyClass : Symbol(MyClass, Decl(service.ts, 3, 1)) + + db: db.db; +>db : Symbol(MyClass.db, Decl(service.ts, 5, 15)) +>db : Symbol(db, Decl(service.ts, 0, 0)) +>db : Symbol(db.db, Decl(db.ts, 0, 0)) + + constructor(db: db.db) { // collision with namespace of external module db +>db : Symbol(db, Decl(service.ts, 8, 16)) +>db : Symbol(db, Decl(service.ts, 0, 0)) +>db : Symbol(db.db, Decl(db.ts, 0, 0)) + + this.db = db; +>this.db : Symbol(MyClass.db, Decl(service.ts, 5, 15)) +>this : Symbol(MyClass, Decl(service.ts, 3, 1)) +>db : Symbol(MyClass.db, Decl(service.ts, 5, 15)) +>db : Symbol(db, Decl(service.ts, 8, 16)) + + this.db.doSomething(); +>this.db.doSomething : Symbol(db.db.doSomething, Decl(db.ts, 0, 17)) +>this.db : Symbol(MyClass.db, Decl(service.ts, 5, 15)) +>this : Symbol(MyClass, Decl(service.ts, 3, 1)) +>db : Symbol(MyClass.db, Decl(service.ts, 5, 15)) +>doSomething : Symbol(db.db.doSomething, Decl(db.ts, 0, 17)) + } +} +export {MyClass}; +>MyClass : Symbol(MyClass, Decl(service.ts, 13, 8)) + +=== db.ts === +export class db { +>db : Symbol(db, Decl(db.ts, 0, 0)) + + public doSomething() { +>doSomething : Symbol(db.doSomething, Decl(db.ts, 0, 17)) + } +} + diff --git a/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision3(target=es5).types b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision3(target=es5).types new file mode 100644 index 0000000000000..3689995d560e6 --- /dev/null +++ b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision3(target=es5).types @@ -0,0 +1,77 @@ +//// [tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision3.ts] //// + +=== service.ts === +import db = require('./db'); +>db : typeof db +> : ^^^^^^^^^ + +function someDecorator(target) { +>someDecorator : (target: any) => any +> : ^ ^^^^^^^^^^^^^ +>target : any + + return target; +>target : any +} +@someDecorator +>someDecorator : (target: any) => any +> : ^ ^^^^^^^^^^^^^ + +class MyClass { +>MyClass : MyClass +> : ^^^^^^^ + + db: db.db; +>db : db.db +> : ^^^^^ +>db : any +> : ^^^ + + constructor(db: db.db) { // collision with namespace of external module db +>db : db.db +> : ^^^^^ +>db : any +> : ^^^ + + this.db = db; +>this.db = db : db.db +> : ^^^^^ +>this.db : db.db +> : ^^^^^ +>this : this +> : ^^^^ +>db : db.db +> : ^^^^^ +>db : db.db +> : ^^^^^ + + this.db.doSomething(); +>this.db.doSomething() : void +> : ^^^^ +>this.db.doSomething : () => void +> : ^^^^^^^^^^ +>this.db : db.db +> : ^^^^^ +>this : this +> : ^^^^ +>db : db.db +> : ^^^^^ +>doSomething : () => void +> : ^^^^^^^^^^ + } +} +export {MyClass}; +>MyClass : typeof MyClass +> : ^^^^^^^^^^^^^^ + +=== db.ts === +export class db { +>db : db +> : ^^ + + public doSomething() { +>doSomething : () => void +> : ^^^^^^^^^^ + } +} + diff --git a/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision4.errors.txt b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision4(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision4.errors.txt rename to tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision4(target=es2015).errors.txt diff --git a/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision4(target=es2015).js b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision4(target=es2015).js new file mode 100644 index 0000000000000..c54e3fc2d0e1f --- /dev/null +++ b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision4(target=es2015).js @@ -0,0 +1,54 @@ +//// [tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision4.ts] //// + +//// [db.ts] +export class db { + public doSomething() { + } +} + +//// [service.ts] +import db from './db'; // error no default export +function someDecorator(target) { + return target; +} +@someDecorator +class MyClass { + db: db.db; + + constructor(db: db.db) { + this.db = db; + this.db.doSomething(); + } +} +export {MyClass}; + + +//// [db.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.db = void 0; +class db { + doSomething() { + } +} +exports.db = db; +//// [service.js] +"use strict"; +var _a; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MyClass = void 0; +const db_1 = __importDefault(require("./db")); // error no default export +function someDecorator(target) { + return target; +} +let MyClass = class MyClass { + constructor(db) { + this.db = db; + this.db.doSomething(); + } +}; +exports.MyClass = MyClass; +exports.MyClass = MyClass = __decorate([ + someDecorator, + __metadata("design:paramtypes", [typeof (_a = typeof db_1.default !== "undefined" && db_1.default.db) === "function" ? _a : Object]) +], MyClass); diff --git a/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision4.symbols b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision4(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision4.symbols rename to tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision4(target=es2015).symbols diff --git a/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision4.types b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision4(target=es2015).types similarity index 100% rename from tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision4.types rename to tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision4(target=es2015).types diff --git a/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision4(target=es5).errors.txt b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision4(target=es5).errors.txt new file mode 100644 index 0000000000000..2a76c2fb070e0 --- /dev/null +++ b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision4(target=es5).errors.txt @@ -0,0 +1,27 @@ +service.ts(1,8): error TS2613: Module '"db"' has no default export. Did you mean to use 'import { db } from "db"' instead? + + +==== db.ts (0 errors) ==== + export class db { + public doSomething() { + } + } + +==== service.ts (1 errors) ==== + import db from './db'; // error no default export + ~~ +!!! error TS2613: Module '"db"' has no default export. Did you mean to use 'import { db } from "db"' instead? + function someDecorator(target) { + return target; + } + @someDecorator + class MyClass { + db: db.db; + + constructor(db: db.db) { + this.db = db; + this.db.doSomething(); + } + } + export {MyClass}; + \ No newline at end of file diff --git a/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision4.js b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision4(target=es5).js similarity index 100% rename from tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision4.js rename to tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision4(target=es5).js diff --git a/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision4(target=es5).symbols b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision4(target=es5).symbols new file mode 100644 index 0000000000000..a357dd0811f2e --- /dev/null +++ b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision4(target=es5).symbols @@ -0,0 +1,53 @@ +//// [tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision4.ts] //// + +=== db.ts === +export class db { +>db : Symbol(db, Decl(db.ts, 0, 0)) + + public doSomething() { +>doSomething : Symbol(db.doSomething, Decl(db.ts, 0, 17)) + } +} + +=== service.ts === +import db from './db'; // error no default export +>db : Symbol(db, Decl(service.ts, 0, 6)) + +function someDecorator(target) { +>someDecorator : Symbol(someDecorator, Decl(service.ts, 0, 22)) +>target : Symbol(target, Decl(service.ts, 1, 23)) + + return target; +>target : Symbol(target, Decl(service.ts, 1, 23)) +} +@someDecorator +>someDecorator : Symbol(someDecorator, Decl(service.ts, 0, 22)) + +class MyClass { +>MyClass : Symbol(MyClass, Decl(service.ts, 3, 1)) + + db: db.db; +>db : Symbol(MyClass.db, Decl(service.ts, 5, 15)) +>db : Symbol(db, Decl(service.ts, 0, 6)) +>db : Symbol(db.db) + + constructor(db: db.db) { +>db : Symbol(db, Decl(service.ts, 8, 16)) +>db : Symbol(db, Decl(service.ts, 0, 6)) +>db : Symbol(db.db) + + this.db = db; +>this.db : Symbol(MyClass.db, Decl(service.ts, 5, 15)) +>this : Symbol(MyClass, Decl(service.ts, 3, 1)) +>db : Symbol(MyClass.db, Decl(service.ts, 5, 15)) +>db : Symbol(db, Decl(service.ts, 8, 16)) + + this.db.doSomething(); +>this.db : Symbol(MyClass.db, Decl(service.ts, 5, 15)) +>this : Symbol(MyClass, Decl(service.ts, 3, 1)) +>db : Symbol(MyClass.db, Decl(service.ts, 5, 15)) + } +} +export {MyClass}; +>MyClass : Symbol(MyClass, Decl(service.ts, 13, 8)) + diff --git a/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision4(target=es5).types b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision4(target=es5).types new file mode 100644 index 0000000000000..ab1b5d1ea36a2 --- /dev/null +++ b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision4(target=es5).types @@ -0,0 +1,79 @@ +//// [tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision4.ts] //// + +=== db.ts === +export class db { +>db : db +> : ^^ + + public doSomething() { +>doSomething : () => void +> : ^^^^^^^^^^ + } +} + +=== service.ts === +import db from './db'; // error no default export +>db : any +> : ^^^ + +function someDecorator(target) { +>someDecorator : (target: any) => any +> : ^ ^^^^^^^^^^^^^ +>target : any +> : ^^^ + + return target; +>target : any +> : ^^^ +} +@someDecorator +>someDecorator : (target: any) => any +> : ^ ^^^^^^^^^^^^^ + +class MyClass { +>MyClass : MyClass +> : ^^^^^^^ + + db: db.db; +>db : db.db +> : ^^^^^ +>db : any +> : ^^^ + + constructor(db: db.db) { +>db : db.db +> : ^^^^^ +>db : any +> : ^^^ + + this.db = db; +>this.db = db : db.db +> : ^^^^^ +>this.db : db.db +> : ^^^^^ +>this : this +> : ^^^^ +>db : db.db +> : ^^^^^ +>db : db.db +> : ^^^^^ + + this.db.doSomething(); +>this.db.doSomething() : any +> : ^^^ +>this.db.doSomething : any +> : ^^^ +>this.db : db.db +> : ^^^^^ +>this : this +> : ^^^^ +>db : db.db +> : ^^^^^ +>doSomething : any +> : ^^^ + } +} +export {MyClass}; +>MyClass : typeof MyClass +> : ^^^^^^^^^^^^^^ + diff --git a/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision5(target=es2015).js b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision5(target=es2015).js new file mode 100644 index 0000000000000..f1f8861b1fe89 --- /dev/null +++ b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision5(target=es2015).js @@ -0,0 +1,52 @@ +//// [tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision5.ts] //// + +//// [db.ts] +export default class db { + public doSomething() { + } +} + +//// [service.ts] +import db from './db'; +function someDecorator(target) { + return target; +} +@someDecorator +class MyClass { + db: db; + + constructor(db: db) { // collision + this.db = db; + this.db.doSomething(); + } +} +export {MyClass}; + + +//// [db.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +class db { + doSomething() { + } +} +exports.default = db; +//// [service.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MyClass = void 0; +const db_1 = __importDefault(require("./db")); +function someDecorator(target) { + return target; +} +let MyClass = class MyClass { + constructor(db) { + this.db = db; + this.db.doSomething(); + } +}; +exports.MyClass = MyClass; +exports.MyClass = MyClass = __decorate([ + someDecorator, + __metadata("design:paramtypes", [db_1.default]) +], MyClass); diff --git a/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision5.symbols b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision5.symbols rename to tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision5(target=es2015).symbols diff --git a/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision5.types b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision5(target=es2015).types similarity index 100% rename from tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision5.types rename to tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision5(target=es2015).types diff --git a/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision5.js b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision5(target=es5).js similarity index 100% rename from tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision5.js rename to tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision5(target=es5).js diff --git a/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision5(target=es5).symbols b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision5(target=es5).symbols new file mode 100644 index 0000000000000..f8cdae6a3324f --- /dev/null +++ b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision5(target=es5).symbols @@ -0,0 +1,53 @@ +//// [tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision5.ts] //// + +=== db.ts === +export default class db { +>db : Symbol(db, Decl(db.ts, 0, 0)) + + public doSomething() { +>doSomething : Symbol(db.doSomething, Decl(db.ts, 0, 25)) + } +} + +=== service.ts === +import db from './db'; +>db : Symbol(db, Decl(service.ts, 0, 6)) + +function someDecorator(target) { +>someDecorator : Symbol(someDecorator, Decl(service.ts, 0, 22)) +>target : Symbol(target, Decl(service.ts, 1, 23)) + + return target; +>target : Symbol(target, Decl(service.ts, 1, 23)) +} +@someDecorator +>someDecorator : Symbol(someDecorator, Decl(service.ts, 0, 22)) + +class MyClass { +>MyClass : Symbol(MyClass, Decl(service.ts, 3, 1)) + + db: db; +>db : Symbol(MyClass.db, Decl(service.ts, 5, 15)) +>db : Symbol(db, Decl(service.ts, 0, 6)) + + constructor(db: db) { // collision +>db : Symbol(db, Decl(service.ts, 8, 16)) +>db : Symbol(db, Decl(service.ts, 0, 6)) + + this.db = db; +>this.db : Symbol(MyClass.db, Decl(service.ts, 5, 15)) +>this : Symbol(MyClass, Decl(service.ts, 3, 1)) +>db : Symbol(MyClass.db, Decl(service.ts, 5, 15)) +>db : Symbol(db, Decl(service.ts, 8, 16)) + + this.db.doSomething(); +>this.db.doSomething : Symbol(db.doSomething, Decl(db.ts, 0, 25)) +>this.db : Symbol(MyClass.db, Decl(service.ts, 5, 15)) +>this : Symbol(MyClass, Decl(service.ts, 3, 1)) +>db : Symbol(MyClass.db, Decl(service.ts, 5, 15)) +>doSomething : Symbol(db.doSomething, Decl(db.ts, 0, 25)) + } +} +export {MyClass}; +>MyClass : Symbol(MyClass, Decl(service.ts, 13, 8)) + diff --git a/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision5(target=es5).types b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision5(target=es5).types new file mode 100644 index 0000000000000..904662ff2c65a --- /dev/null +++ b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision5(target=es5).types @@ -0,0 +1,73 @@ +//// [tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision5.ts] //// + +=== db.ts === +export default class db { +>db : db +> : ^^ + + public doSomething() { +>doSomething : () => void +> : ^^^^^^^^^^ + } +} + +=== service.ts === +import db from './db'; +>db : typeof db +> : ^^^^^^^^^ + +function someDecorator(target) { +>someDecorator : (target: any) => any +> : ^ ^^^^^^^^^^^^^ +>target : any + + return target; +>target : any +} +@someDecorator +>someDecorator : (target: any) => any +> : ^ ^^^^^^^^^^^^^ + +class MyClass { +>MyClass : MyClass +> : ^^^^^^^ + + db: db; +>db : db +> : ^^ + + constructor(db: db) { // collision +>db : db +> : ^^ + + this.db = db; +>this.db = db : db +> : ^^ +>this.db : db +> : ^^ +>this : this +> : ^^^^ +>db : db +> : ^^ +>db : db +> : ^^ + + this.db.doSomething(); +>this.db.doSomething() : void +> : ^^^^ +>this.db.doSomething : () => void +> : ^^^^^^^^^^ +>this.db : db +> : ^^ +>this : this +> : ^^^^ +>db : db +> : ^^ +>doSomething : () => void +> : ^^^^^^^^^^ + } +} +export {MyClass}; +>MyClass : typeof MyClass +> : ^^^^^^^^^^^^^^ + diff --git a/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision6(target=es2015).js b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision6(target=es2015).js new file mode 100644 index 0000000000000..b84f59d2321ce --- /dev/null +++ b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision6(target=es2015).js @@ -0,0 +1,52 @@ +//// [tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision6.ts] //// + +//// [db.ts] +export default class db { + public doSomething() { + } +} + +//// [service.ts] +import database from './db'; +function someDecorator(target) { + return target; +} +@someDecorator +class MyClass { + db: database; + + constructor(db: database) { // no collision + this.db = db; + this.db.doSomething(); + } +} +export {MyClass}; + + +//// [db.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +class db { + doSomething() { + } +} +exports.default = db; +//// [service.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MyClass = void 0; +const db_1 = __importDefault(require("./db")); +function someDecorator(target) { + return target; +} +let MyClass = class MyClass { + constructor(db) { + this.db = db; + this.db.doSomething(); + } +}; +exports.MyClass = MyClass; +exports.MyClass = MyClass = __decorate([ + someDecorator, + __metadata("design:paramtypes", [db_1.default]) +], MyClass); diff --git a/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision6.symbols b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision6(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision6.symbols rename to tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision6(target=es2015).symbols diff --git a/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision6.types b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision6(target=es2015).types similarity index 100% rename from tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision6.types rename to tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision6(target=es2015).types diff --git a/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision6.js b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision6(target=es5).js similarity index 100% rename from tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision6.js rename to tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision6(target=es5).js diff --git a/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision6(target=es5).symbols b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision6(target=es5).symbols new file mode 100644 index 0000000000000..ee31a5a74ccc2 --- /dev/null +++ b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision6(target=es5).symbols @@ -0,0 +1,53 @@ +//// [tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision6.ts] //// + +=== db.ts === +export default class db { +>db : Symbol(db, Decl(db.ts, 0, 0)) + + public doSomething() { +>doSomething : Symbol(db.doSomething, Decl(db.ts, 0, 25)) + } +} + +=== service.ts === +import database from './db'; +>database : Symbol(database, Decl(service.ts, 0, 6)) + +function someDecorator(target) { +>someDecorator : Symbol(someDecorator, Decl(service.ts, 0, 28)) +>target : Symbol(target, Decl(service.ts, 1, 23)) + + return target; +>target : Symbol(target, Decl(service.ts, 1, 23)) +} +@someDecorator +>someDecorator : Symbol(someDecorator, Decl(service.ts, 0, 28)) + +class MyClass { +>MyClass : Symbol(MyClass, Decl(service.ts, 3, 1)) + + db: database; +>db : Symbol(MyClass.db, Decl(service.ts, 5, 15)) +>database : Symbol(database, Decl(service.ts, 0, 6)) + + constructor(db: database) { // no collision +>db : Symbol(db, Decl(service.ts, 8, 16)) +>database : Symbol(database, Decl(service.ts, 0, 6)) + + this.db = db; +>this.db : Symbol(MyClass.db, Decl(service.ts, 5, 15)) +>this : Symbol(MyClass, Decl(service.ts, 3, 1)) +>db : Symbol(MyClass.db, Decl(service.ts, 5, 15)) +>db : Symbol(db, Decl(service.ts, 8, 16)) + + this.db.doSomething(); +>this.db.doSomething : Symbol(database.doSomething, Decl(db.ts, 0, 25)) +>this.db : Symbol(MyClass.db, Decl(service.ts, 5, 15)) +>this : Symbol(MyClass, Decl(service.ts, 3, 1)) +>db : Symbol(MyClass.db, Decl(service.ts, 5, 15)) +>doSomething : Symbol(database.doSomething, Decl(db.ts, 0, 25)) + } +} +export {MyClass}; +>MyClass : Symbol(MyClass, Decl(service.ts, 13, 8)) + diff --git a/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision6(target=es5).types b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision6(target=es5).types new file mode 100644 index 0000000000000..558cf75322dab --- /dev/null +++ b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision6(target=es5).types @@ -0,0 +1,73 @@ +//// [tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision6.ts] //// + +=== db.ts === +export default class db { +>db : db +> : ^^ + + public doSomething() { +>doSomething : () => void +> : ^^^^^^^^^^ + } +} + +=== service.ts === +import database from './db'; +>database : typeof database +> : ^^^^^^^^^^^^^^^ + +function someDecorator(target) { +>someDecorator : (target: any) => any +> : ^ ^^^^^^^^^^^^^ +>target : any + + return target; +>target : any +} +@someDecorator +>someDecorator : (target: any) => any +> : ^ ^^^^^^^^^^^^^ + +class MyClass { +>MyClass : MyClass +> : ^^^^^^^ + + db: database; +>db : database +> : ^^^^^^^^ + + constructor(db: database) { // no collision +>db : database +> : ^^^^^^^^ + + this.db = db; +>this.db = db : database +> : ^^^^^^^^ +>this.db : database +> : ^^^^^^^^ +>this : this +> : ^^^^ +>db : database +> : ^^^^^^^^ +>db : database +> : ^^^^^^^^ + + this.db.doSomething(); +>this.db.doSomething() : void +> : ^^^^ +>this.db.doSomething : () => void +> : ^^^^^^^^^^ +>this.db : database +> : ^^^^^^^^ +>this : this +> : ^^^^ +>db : database +> : ^^^^^^^^ +>doSomething : () => void +> : ^^^^^^^^^^ + } +} +export {MyClass}; +>MyClass : typeof MyClass +> : ^^^^^^^^^^^^^^ + diff --git a/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision7.errors.txt b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision7(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision7.errors.txt rename to tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision7(target=es2015).errors.txt diff --git a/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision7(target=es2015).js b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision7(target=es2015).js new file mode 100644 index 0000000000000..b31903d4e2f74 --- /dev/null +++ b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision7(target=es2015).js @@ -0,0 +1,53 @@ +//// [tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision7.ts] //// + +//// [db.ts] +export default class db { + public doSomething() { + } +} + +//// [service.ts] +import db from './db'; +function someDecorator(target) { + return target; +} +@someDecorator +class MyClass { + db: db.db; //error + + constructor(db: db.db) { // error + this.db = db; + this.db.doSomething(); + } +} +export {MyClass}; + + +//// [db.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +class db { + doSomething() { + } +} +exports.default = db; +//// [service.js] +"use strict"; +var _a; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MyClass = void 0; +const db_1 = __importDefault(require("./db")); +function someDecorator(target) { + return target; +} +let MyClass = class MyClass { + constructor(db) { + this.db = db; + this.db.doSomething(); + } +}; +exports.MyClass = MyClass; +exports.MyClass = MyClass = __decorate([ + someDecorator, + __metadata("design:paramtypes", [typeof (_a = typeof db_1.default !== "undefined" && db_1.default.db) === "function" ? _a : Object]) +], MyClass); diff --git a/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision7.symbols b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision7(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision7.symbols rename to tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision7(target=es2015).symbols diff --git a/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision7.types b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision7(target=es2015).types similarity index 100% rename from tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision7.types rename to tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision7(target=es2015).types diff --git a/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision7(target=es5).errors.txt b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision7(target=es5).errors.txt new file mode 100644 index 0000000000000..cce125d2fb0f9 --- /dev/null +++ b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision7(target=es5).errors.txt @@ -0,0 +1,30 @@ +service.ts(7,9): error TS2702: 'db' only refers to a type, but is being used as a namespace here. +service.ts(9,21): error TS2702: 'db' only refers to a type, but is being used as a namespace here. + + +==== db.ts (0 errors) ==== + export default class db { + public doSomething() { + } + } + +==== service.ts (2 errors) ==== + import db from './db'; + function someDecorator(target) { + return target; + } + @someDecorator + class MyClass { + db: db.db; //error + ~~ +!!! error TS2702: 'db' only refers to a type, but is being used as a namespace here. + + constructor(db: db.db) { // error + ~~ +!!! error TS2702: 'db' only refers to a type, but is being used as a namespace here. + this.db = db; + this.db.doSomething(); + } + } + export {MyClass}; + \ No newline at end of file diff --git a/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision7.js b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision7(target=es5).js similarity index 100% rename from tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision7.js rename to tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision7(target=es5).js diff --git a/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision7(target=es5).symbols b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision7(target=es5).symbols new file mode 100644 index 0000000000000..e5e7f445ecb2a --- /dev/null +++ b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision7(target=es5).symbols @@ -0,0 +1,53 @@ +//// [tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision7.ts] //// + +=== db.ts === +export default class db { +>db : Symbol(db, Decl(db.ts, 0, 0)) + + public doSomething() { +>doSomething : Symbol(db.doSomething, Decl(db.ts, 0, 25)) + } +} + +=== service.ts === +import db from './db'; +>db : Symbol(db, Decl(service.ts, 0, 6)) + +function someDecorator(target) { +>someDecorator : Symbol(someDecorator, Decl(service.ts, 0, 22)) +>target : Symbol(target, Decl(service.ts, 1, 23)) + + return target; +>target : Symbol(target, Decl(service.ts, 1, 23)) +} +@someDecorator +>someDecorator : Symbol(someDecorator, Decl(service.ts, 0, 22)) + +class MyClass { +>MyClass : Symbol(MyClass, Decl(service.ts, 3, 1)) + + db: db.db; //error +>db : Symbol(MyClass.db, Decl(service.ts, 5, 15)) +>db : Symbol(db) +>db : Symbol(db.db) + + constructor(db: db.db) { // error +>db : Symbol(db, Decl(service.ts, 8, 16)) +>db : Symbol(db) +>db : Symbol(db.db) + + this.db = db; +>this.db : Symbol(MyClass.db, Decl(service.ts, 5, 15)) +>this : Symbol(MyClass, Decl(service.ts, 3, 1)) +>db : Symbol(MyClass.db, Decl(service.ts, 5, 15)) +>db : Symbol(db, Decl(service.ts, 8, 16)) + + this.db.doSomething(); +>this.db : Symbol(MyClass.db, Decl(service.ts, 5, 15)) +>this : Symbol(MyClass, Decl(service.ts, 3, 1)) +>db : Symbol(MyClass.db, Decl(service.ts, 5, 15)) + } +} +export {MyClass}; +>MyClass : Symbol(MyClass, Decl(service.ts, 13, 8)) + diff --git a/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision7(target=es5).types b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision7(target=es5).types new file mode 100644 index 0000000000000..c7b41713bff79 --- /dev/null +++ b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision7(target=es5).types @@ -0,0 +1,79 @@ +//// [tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision7.ts] //// + +=== db.ts === +export default class db { +>db : db +> : ^^ + + public doSomething() { +>doSomething : () => void +> : ^^^^^^^^^^ + } +} + +=== service.ts === +import db from './db'; +>db : typeof db +> : ^^^^^^^^^ + +function someDecorator(target) { +>someDecorator : (target: any) => any +> : ^ ^^^^^^^^^^^^^ +>target : any +> : ^^^ + + return target; +>target : any +> : ^^^ +} +@someDecorator +>someDecorator : (target: any) => any +> : ^ ^^^^^^^^^^^^^ + +class MyClass { +>MyClass : MyClass +> : ^^^^^^^ + + db: db.db; //error +>db : db.db +> : ^^^^^ +>db : any +> : ^^^ + + constructor(db: db.db) { // error +>db : db.db +> : ^^^^^ +>db : any +> : ^^^ + + this.db = db; +>this.db = db : db.db +> : ^^^^^ +>this.db : db.db +> : ^^^^^ +>this : this +> : ^^^^ +>db : db.db +> : ^^^^^ +>db : db.db +> : ^^^^^ + + this.db.doSomething(); +>this.db.doSomething() : any +> : ^^^ +>this.db.doSomething : any +> : ^^^ +>this.db : db.db +> : ^^^^^ +>this : this +> : ^^^^ +>db : db.db +> : ^^^^^ +>doSomething : any +> : ^^^ + } +} +export {MyClass}; +>MyClass : typeof MyClass +> : ^^^^^^^^^^^^^^ + diff --git a/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision8(target=es2015).js b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision8(target=es2015).js new file mode 100644 index 0000000000000..773cec62a78ac --- /dev/null +++ b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision8(target=es2015).js @@ -0,0 +1,53 @@ +//// [tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision8.ts] //// + +//// [db.ts] +export class db { + public doSomething() { + } +} + +//// [service.ts] +import database = require('./db'); +function someDecorator(target) { + return target; +} +@someDecorator +class MyClass { + db: database.db; + + constructor(db: database.db) { // no collision + this.db = db; + this.db.doSomething(); + } +} +export {MyClass}; + + +//// [db.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.db = void 0; +class db { + doSomething() { + } +} +exports.db = db; +//// [service.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MyClass = void 0; +const database = require("./db"); +function someDecorator(target) { + return target; +} +let MyClass = class MyClass { + constructor(db) { + this.db = db; + this.db.doSomething(); + } +}; +exports.MyClass = MyClass; +exports.MyClass = MyClass = __decorate([ + someDecorator, + __metadata("design:paramtypes", [database.db]) +], MyClass); diff --git a/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision8.symbols b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision8(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision8.symbols rename to tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision8(target=es2015).symbols diff --git a/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision8.types b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision8(target=es2015).types similarity index 100% rename from tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision8.types rename to tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision8(target=es2015).types diff --git a/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision8.js b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision8(target=es5).js similarity index 100% rename from tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision8.js rename to tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision8(target=es5).js diff --git a/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision8(target=es5).symbols b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision8(target=es5).symbols new file mode 100644 index 0000000000000..d84c8b5751c90 --- /dev/null +++ b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision8(target=es5).symbols @@ -0,0 +1,55 @@ +//// [tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision8.ts] //// + +=== service.ts === +import database = require('./db'); +>database : Symbol(database, Decl(service.ts, 0, 0)) + +function someDecorator(target) { +>someDecorator : Symbol(someDecorator, Decl(service.ts, 0, 34)) +>target : Symbol(target, Decl(service.ts, 1, 23)) + + return target; +>target : Symbol(target, Decl(service.ts, 1, 23)) +} +@someDecorator +>someDecorator : Symbol(someDecorator, Decl(service.ts, 0, 34)) + +class MyClass { +>MyClass : Symbol(MyClass, Decl(service.ts, 3, 1)) + + db: database.db; +>db : Symbol(MyClass.db, Decl(service.ts, 5, 15)) +>database : Symbol(database, Decl(service.ts, 0, 0)) +>db : Symbol(database.db, Decl(db.ts, 0, 0)) + + constructor(db: database.db) { // no collision +>db : Symbol(db, Decl(service.ts, 8, 16)) +>database : Symbol(database, Decl(service.ts, 0, 0)) +>db : Symbol(database.db, Decl(db.ts, 0, 0)) + + this.db = db; +>this.db : Symbol(MyClass.db, Decl(service.ts, 5, 15)) +>this : Symbol(MyClass, Decl(service.ts, 3, 1)) +>db : Symbol(MyClass.db, Decl(service.ts, 5, 15)) +>db : Symbol(db, Decl(service.ts, 8, 16)) + + this.db.doSomething(); +>this.db.doSomething : Symbol(database.db.doSomething, Decl(db.ts, 0, 17)) +>this.db : Symbol(MyClass.db, Decl(service.ts, 5, 15)) +>this : Symbol(MyClass, Decl(service.ts, 3, 1)) +>db : Symbol(MyClass.db, Decl(service.ts, 5, 15)) +>doSomething : Symbol(database.db.doSomething, Decl(db.ts, 0, 17)) + } +} +export {MyClass}; +>MyClass : Symbol(MyClass, Decl(service.ts, 13, 8)) + +=== db.ts === +export class db { +>db : Symbol(db, Decl(db.ts, 0, 0)) + + public doSomething() { +>doSomething : Symbol(db.doSomething, Decl(db.ts, 0, 17)) + } +} + diff --git a/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision8(target=es5).types b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision8(target=es5).types new file mode 100644 index 0000000000000..01ec7d466daff --- /dev/null +++ b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision8(target=es5).types @@ -0,0 +1,77 @@ +//// [tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision8.ts] //// + +=== service.ts === +import database = require('./db'); +>database : typeof database +> : ^^^^^^^^^^^^^^^ + +function someDecorator(target) { +>someDecorator : (target: any) => any +> : ^ ^^^^^^^^^^^^^ +>target : any + + return target; +>target : any +} +@someDecorator +>someDecorator : (target: any) => any +> : ^ ^^^^^^^^^^^^^ + +class MyClass { +>MyClass : MyClass +> : ^^^^^^^ + + db: database.db; +>db : database.db +> : ^^^^^^^^^^^ +>database : any +> : ^^^ + + constructor(db: database.db) { // no collision +>db : database.db +> : ^^^^^^^^^^^ +>database : any +> : ^^^ + + this.db = db; +>this.db = db : database.db +> : ^^^^^^^^^^^ +>this.db : database.db +> : ^^^^^^^^^^^ +>this : this +> : ^^^^ +>db : database.db +> : ^^^^^^^^^^^ +>db : database.db +> : ^^^^^^^^^^^ + + this.db.doSomething(); +>this.db.doSomething() : void +> : ^^^^ +>this.db.doSomething : () => void +> : ^^^^^^^^^^ +>this.db : database.db +> : ^^^^^^^^^^^ +>this : this +> : ^^^^ +>db : database.db +> : ^^^^^^^^^^^ +>doSomething : () => void +> : ^^^^^^^^^^ + } +} +export {MyClass}; +>MyClass : typeof MyClass +> : ^^^^^^^^^^^^^^ + +=== db.ts === +export class db { +>db : db +> : ^^ + + public doSomething() { +>doSomething : () => void +> : ^^^^^^^^^^ + } +} + diff --git a/tests/baselines/reference/decoratorMetadataWithTypeOnlyImport(target=es2015).js b/tests/baselines/reference/decoratorMetadataWithTypeOnlyImport(target=es2015).js new file mode 100644 index 0000000000000..59ade577d9463 --- /dev/null +++ b/tests/baselines/reference/decoratorMetadataWithTypeOnlyImport(target=es2015).js @@ -0,0 +1,56 @@ +//// [tests/cases/conformance/decorators/decoratorMetadataWithTypeOnlyImport.ts] //// + +//// [service.ts] +export class Service { +} +//// [component.ts] +import type { Service } from "./service"; + +declare var decorator: any; + +@decorator +class MyComponent { + constructor(public Service: Service) { + } + + @decorator + method(x: this) { + } +} + +//// [service.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Service = void 0; +class Service { +} +exports.Service = Service; +//// [component.js] +"use strict"; +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +let MyComponent = class MyComponent { + constructor(Service) { + this.Service = Service; + } + method(x) { + } +}; +__decorate([ + decorator, + __metadata("design:type", Function), + __metadata("design:paramtypes", [Object]), + __metadata("design:returntype", void 0) +], MyComponent.prototype, "method", null); +MyComponent = __decorate([ + decorator, + __metadata("design:paramtypes", [Function]) +], MyComponent); diff --git a/tests/baselines/reference/decoratorMetadataWithTypeOnlyImport.symbols b/tests/baselines/reference/decoratorMetadataWithTypeOnlyImport(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/decoratorMetadataWithTypeOnlyImport.symbols rename to tests/baselines/reference/decoratorMetadataWithTypeOnlyImport(target=es2015).symbols diff --git a/tests/baselines/reference/decoratorMetadataWithTypeOnlyImport.types b/tests/baselines/reference/decoratorMetadataWithTypeOnlyImport(target=es2015).types similarity index 100% rename from tests/baselines/reference/decoratorMetadataWithTypeOnlyImport.types rename to tests/baselines/reference/decoratorMetadataWithTypeOnlyImport(target=es2015).types diff --git a/tests/baselines/reference/decoratorMetadataWithTypeOnlyImport.js b/tests/baselines/reference/decoratorMetadataWithTypeOnlyImport(target=es5).js similarity index 100% rename from tests/baselines/reference/decoratorMetadataWithTypeOnlyImport.js rename to tests/baselines/reference/decoratorMetadataWithTypeOnlyImport(target=es5).js diff --git a/tests/baselines/reference/decoratorMetadataWithTypeOnlyImport(target=es5).symbols b/tests/baselines/reference/decoratorMetadataWithTypeOnlyImport(target=es5).symbols new file mode 100644 index 0000000000000..a729a3216a1c7 --- /dev/null +++ b/tests/baselines/reference/decoratorMetadataWithTypeOnlyImport(target=es5).symbols @@ -0,0 +1,32 @@ +//// [tests/cases/conformance/decorators/decoratorMetadataWithTypeOnlyImport.ts] //// + +=== service.ts === +export class Service { +>Service : Symbol(Service, Decl(service.ts, 0, 0)) +} +=== component.ts === +import type { Service } from "./service"; +>Service : Symbol(Service, Decl(component.ts, 0, 13)) + +declare var decorator: any; +>decorator : Symbol(decorator, Decl(component.ts, 2, 11)) + +@decorator +>decorator : Symbol(decorator, Decl(component.ts, 2, 11)) + +class MyComponent { +>MyComponent : Symbol(MyComponent, Decl(component.ts, 2, 27)) + + constructor(public Service: Service) { +>Service : Symbol(MyComponent.Service, Decl(component.ts, 6, 16)) +>Service : Symbol(Service, Decl(component.ts, 0, 13)) + } + + @decorator +>decorator : Symbol(decorator, Decl(component.ts, 2, 11)) + + method(x: this) { +>method : Symbol(MyComponent.method, Decl(component.ts, 7, 5)) +>x : Symbol(x, Decl(component.ts, 10, 11)) + } +} diff --git a/tests/baselines/reference/decoratorMetadataWithTypeOnlyImport(target=es5).types b/tests/baselines/reference/decoratorMetadataWithTypeOnlyImport(target=es5).types new file mode 100644 index 0000000000000..9500d17427675 --- /dev/null +++ b/tests/baselines/reference/decoratorMetadataWithTypeOnlyImport(target=es5).types @@ -0,0 +1,37 @@ +//// [tests/cases/conformance/decorators/decoratorMetadataWithTypeOnlyImport.ts] //// + +=== service.ts === +export class Service { +>Service : Service +> : ^^^^^^^ +} +=== component.ts === +import type { Service } from "./service"; +>Service : Service +> : ^^^^^^^ + +declare var decorator: any; +>decorator : any + +@decorator +>decorator : any + +class MyComponent { +>MyComponent : MyComponent +> : ^^^^^^^^^^^ + + constructor(public Service: Service) { +>Service : Service +> : ^^^^^^^ + } + + @decorator +>decorator : any + + method(x: this) { +>method : (x: this) => void +> : ^ ^^ ^^^^^^^^^ +>x : this +> : ^^^^ + } +} diff --git a/tests/baselines/reference/decoratorOnClass1(target=es2015).js b/tests/baselines/reference/decoratorOnClass1(target=es2015).js new file mode 100644 index 0000000000000..29cb48bba2361 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClass1(target=es2015).js @@ -0,0 +1,21 @@ +//// [tests/cases/conformance/decorators/class/decoratorOnClass1.ts] //// + +//// [decoratorOnClass1.ts] +declare function dec(target: T): T; + +@dec +class C { +} + +//// [decoratorOnClass1.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +let C = class C { +}; +C = __decorate([ + dec +], C); diff --git a/tests/baselines/reference/decoratorOnClass1.symbols b/tests/baselines/reference/decoratorOnClass1(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/decoratorOnClass1.symbols rename to tests/baselines/reference/decoratorOnClass1(target=es2015).symbols diff --git a/tests/baselines/reference/decoratorOnClass1.types b/tests/baselines/reference/decoratorOnClass1(target=es2015).types similarity index 100% rename from tests/baselines/reference/decoratorOnClass1.types rename to tests/baselines/reference/decoratorOnClass1(target=es2015).types diff --git a/tests/baselines/reference/decoratorOnClass1.js b/tests/baselines/reference/decoratorOnClass1(target=es5).js similarity index 100% rename from tests/baselines/reference/decoratorOnClass1.js rename to tests/baselines/reference/decoratorOnClass1(target=es5).js diff --git a/tests/baselines/reference/decoratorOnClass1(target=es5).symbols b/tests/baselines/reference/decoratorOnClass1(target=es5).symbols new file mode 100644 index 0000000000000..1896c7b695e53 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClass1(target=es5).symbols @@ -0,0 +1,16 @@ +//// [tests/cases/conformance/decorators/class/decoratorOnClass1.ts] //// + +=== decoratorOnClass1.ts === +declare function dec(target: T): T; +>dec : Symbol(dec, Decl(decoratorOnClass1.ts, 0, 0)) +>T : Symbol(T, Decl(decoratorOnClass1.ts, 0, 21)) +>target : Symbol(target, Decl(decoratorOnClass1.ts, 0, 24)) +>T : Symbol(T, Decl(decoratorOnClass1.ts, 0, 21)) +>T : Symbol(T, Decl(decoratorOnClass1.ts, 0, 21)) + +@dec +>dec : Symbol(dec, Decl(decoratorOnClass1.ts, 0, 0)) + +class C { +>C : Symbol(C, Decl(decoratorOnClass1.ts, 0, 38)) +} diff --git a/tests/baselines/reference/decoratorOnClass1(target=es5).types b/tests/baselines/reference/decoratorOnClass1(target=es5).types new file mode 100644 index 0000000000000..f8a3cc7d8c45f --- /dev/null +++ b/tests/baselines/reference/decoratorOnClass1(target=es5).types @@ -0,0 +1,17 @@ +//// [tests/cases/conformance/decorators/class/decoratorOnClass1.ts] //// + +=== decoratorOnClass1.ts === +declare function dec(target: T): T; +>dec : (target: T) => T +> : ^ ^^ ^^ ^^^^^ +>target : T +> : ^ + +@dec +>dec : (target: T) => T +> : ^ ^^ ^^ ^^^^^ + +class C { +>C : C +> : ^ +} diff --git a/tests/baselines/reference/decoratorOnClass2(target=es2015).js b/tests/baselines/reference/decoratorOnClass2(target=es2015).js new file mode 100644 index 0000000000000..172324643a4bf --- /dev/null +++ b/tests/baselines/reference/decoratorOnClass2(target=es2015).js @@ -0,0 +1,25 @@ +//// [tests/cases/conformance/decorators/class/decoratorOnClass2.ts] //// + +//// [decoratorOnClass2.ts] +declare function dec(target: T): T; + +@dec +export class C { +} + +//// [decoratorOnClass2.js] +"use strict"; +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.C = void 0; +let C = class C { +}; +exports.C = C; +exports.C = C = __decorate([ + dec +], C); diff --git a/tests/baselines/reference/decoratorOnClass2.symbols b/tests/baselines/reference/decoratorOnClass2(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/decoratorOnClass2.symbols rename to tests/baselines/reference/decoratorOnClass2(target=es2015).symbols diff --git a/tests/baselines/reference/decoratorOnClass2.types b/tests/baselines/reference/decoratorOnClass2(target=es2015).types similarity index 100% rename from tests/baselines/reference/decoratorOnClass2.types rename to tests/baselines/reference/decoratorOnClass2(target=es2015).types diff --git a/tests/baselines/reference/decoratorOnClass2.js b/tests/baselines/reference/decoratorOnClass2(target=es5).js similarity index 100% rename from tests/baselines/reference/decoratorOnClass2.js rename to tests/baselines/reference/decoratorOnClass2(target=es5).js diff --git a/tests/baselines/reference/decoratorOnClass2(target=es5).symbols b/tests/baselines/reference/decoratorOnClass2(target=es5).symbols new file mode 100644 index 0000000000000..b8eeb1a00001f --- /dev/null +++ b/tests/baselines/reference/decoratorOnClass2(target=es5).symbols @@ -0,0 +1,16 @@ +//// [tests/cases/conformance/decorators/class/decoratorOnClass2.ts] //// + +=== decoratorOnClass2.ts === +declare function dec(target: T): T; +>dec : Symbol(dec, Decl(decoratorOnClass2.ts, 0, 0)) +>T : Symbol(T, Decl(decoratorOnClass2.ts, 0, 21)) +>target : Symbol(target, Decl(decoratorOnClass2.ts, 0, 24)) +>T : Symbol(T, Decl(decoratorOnClass2.ts, 0, 21)) +>T : Symbol(T, Decl(decoratorOnClass2.ts, 0, 21)) + +@dec +>dec : Symbol(dec, Decl(decoratorOnClass2.ts, 0, 0)) + +export class C { +>C : Symbol(C, Decl(decoratorOnClass2.ts, 0, 38)) +} diff --git a/tests/baselines/reference/decoratorOnClass2(target=es5).types b/tests/baselines/reference/decoratorOnClass2(target=es5).types new file mode 100644 index 0000000000000..f6918b5e68474 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClass2(target=es5).types @@ -0,0 +1,17 @@ +//// [tests/cases/conformance/decorators/class/decoratorOnClass2.ts] //// + +=== decoratorOnClass2.ts === +declare function dec(target: T): T; +>dec : (target: T) => T +> : ^ ^^ ^^ ^^^^^ +>target : T +> : ^ + +@dec +>dec : (target: T) => T +> : ^ ^^ ^^ ^^^^^ + +export class C { +>C : C +> : ^ +} diff --git a/tests/baselines/reference/decoratorOnClass3(target=es2015).js b/tests/baselines/reference/decoratorOnClass3(target=es2015).js new file mode 100644 index 0000000000000..2d9eaa878354a --- /dev/null +++ b/tests/baselines/reference/decoratorOnClass3(target=es2015).js @@ -0,0 +1,26 @@ +//// [tests/cases/conformance/decorators/class/decoratorOnClass3.ts] //// + +//// [decoratorOnClass3.ts] +declare function dec(target: T): T; + +export +@dec +class C { +} + +//// [decoratorOnClass3.js] +"use strict"; +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.C = void 0; +let C = class C { +}; +exports.C = C; +exports.C = C = __decorate([ + dec +], C); diff --git a/tests/baselines/reference/decoratorOnClass3.symbols b/tests/baselines/reference/decoratorOnClass3(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/decoratorOnClass3.symbols rename to tests/baselines/reference/decoratorOnClass3(target=es2015).symbols diff --git a/tests/baselines/reference/decoratorOnClass3.types b/tests/baselines/reference/decoratorOnClass3(target=es2015).types similarity index 100% rename from tests/baselines/reference/decoratorOnClass3.types rename to tests/baselines/reference/decoratorOnClass3(target=es2015).types diff --git a/tests/baselines/reference/decoratorOnClass3.js b/tests/baselines/reference/decoratorOnClass3(target=es5).js similarity index 100% rename from tests/baselines/reference/decoratorOnClass3.js rename to tests/baselines/reference/decoratorOnClass3(target=es5).js diff --git a/tests/baselines/reference/decoratorOnClass3(target=es5).symbols b/tests/baselines/reference/decoratorOnClass3(target=es5).symbols new file mode 100644 index 0000000000000..0f7b9291fa473 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClass3(target=es5).symbols @@ -0,0 +1,17 @@ +//// [tests/cases/conformance/decorators/class/decoratorOnClass3.ts] //// + +=== decoratorOnClass3.ts === +declare function dec(target: T): T; +>dec : Symbol(dec, Decl(decoratorOnClass3.ts, 0, 0)) +>T : Symbol(T, Decl(decoratorOnClass3.ts, 0, 21)) +>target : Symbol(target, Decl(decoratorOnClass3.ts, 0, 24)) +>T : Symbol(T, Decl(decoratorOnClass3.ts, 0, 21)) +>T : Symbol(T, Decl(decoratorOnClass3.ts, 0, 21)) + +export +@dec +>dec : Symbol(dec, Decl(decoratorOnClass3.ts, 0, 0)) + +class C { +>C : Symbol(C, Decl(decoratorOnClass3.ts, 0, 38)) +} diff --git a/tests/baselines/reference/decoratorOnClass3(target=es5).types b/tests/baselines/reference/decoratorOnClass3(target=es5).types new file mode 100644 index 0000000000000..3977458b522c6 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClass3(target=es5).types @@ -0,0 +1,18 @@ +//// [tests/cases/conformance/decorators/class/decoratorOnClass3.ts] //// + +=== decoratorOnClass3.ts === +declare function dec(target: T): T; +>dec : (target: T) => T +> : ^ ^^ ^^ ^^^^^ +>target : T +> : ^ + +export +@dec +>dec : (target: T) => T +> : ^ ^^ ^^ ^^^^^ + +class C { +>C : C +> : ^ +} diff --git a/tests/baselines/reference/decoratorOnClass4(target=es2015).js b/tests/baselines/reference/decoratorOnClass4(target=es2015).js new file mode 100644 index 0000000000000..7c2fc8f2a2c86 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClass4(target=es2015).js @@ -0,0 +1,21 @@ +//// [tests/cases/conformance/decorators/class/decoratorOnClass4.ts] //// + +//// [decoratorOnClass4.ts] +declare function dec(): (target: T) => T; + +@dec() +class C { +} + +//// [decoratorOnClass4.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +let C = class C { +}; +C = __decorate([ + dec() +], C); diff --git a/tests/baselines/reference/decoratorOnClass4.symbols b/tests/baselines/reference/decoratorOnClass4(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/decoratorOnClass4.symbols rename to tests/baselines/reference/decoratorOnClass4(target=es2015).symbols diff --git a/tests/baselines/reference/decoratorOnClass4.types b/tests/baselines/reference/decoratorOnClass4(target=es2015).types similarity index 100% rename from tests/baselines/reference/decoratorOnClass4.types rename to tests/baselines/reference/decoratorOnClass4(target=es2015).types diff --git a/tests/baselines/reference/decoratorOnClass4.js b/tests/baselines/reference/decoratorOnClass4(target=es5).js similarity index 100% rename from tests/baselines/reference/decoratorOnClass4.js rename to tests/baselines/reference/decoratorOnClass4(target=es5).js diff --git a/tests/baselines/reference/decoratorOnClass4(target=es5).symbols b/tests/baselines/reference/decoratorOnClass4(target=es5).symbols new file mode 100644 index 0000000000000..2851fc2acfba1 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClass4(target=es5).symbols @@ -0,0 +1,16 @@ +//// [tests/cases/conformance/decorators/class/decoratorOnClass4.ts] //// + +=== decoratorOnClass4.ts === +declare function dec(): (target: T) => T; +>dec : Symbol(dec, Decl(decoratorOnClass4.ts, 0, 0)) +>T : Symbol(T, Decl(decoratorOnClass4.ts, 0, 25)) +>target : Symbol(target, Decl(decoratorOnClass4.ts, 0, 28)) +>T : Symbol(T, Decl(decoratorOnClass4.ts, 0, 25)) +>T : Symbol(T, Decl(decoratorOnClass4.ts, 0, 25)) + +@dec() +>dec : Symbol(dec, Decl(decoratorOnClass4.ts, 0, 0)) + +class C { +>C : Symbol(C, Decl(decoratorOnClass4.ts, 0, 44)) +} diff --git a/tests/baselines/reference/decoratorOnClass4(target=es5).types b/tests/baselines/reference/decoratorOnClass4(target=es5).types new file mode 100644 index 0000000000000..dc7a752902f3a --- /dev/null +++ b/tests/baselines/reference/decoratorOnClass4(target=es5).types @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/decorators/class/decoratorOnClass4.ts] //// + +=== decoratorOnClass4.ts === +declare function dec(): (target: T) => T; +>dec : () => (target: T) => T +> : ^^^^^^ +>target : T +> : ^ + +@dec() +>dec() : (target: T) => T +> : ^ ^^ ^^ ^^^^^ +>dec : () => (target: T) => T +> : ^^^^^^ + +class C { +>C : C +> : ^ +} diff --git a/tests/baselines/reference/decoratorOnClass5(target=es2015).js b/tests/baselines/reference/decoratorOnClass5(target=es2015).js new file mode 100644 index 0000000000000..88650cf4e97dd --- /dev/null +++ b/tests/baselines/reference/decoratorOnClass5(target=es2015).js @@ -0,0 +1,21 @@ +//// [tests/cases/conformance/decorators/class/decoratorOnClass5.ts] //// + +//// [decoratorOnClass5.ts] +declare function dec(): (target: T) => T; + +@dec() +class C { +} + +//// [decoratorOnClass5.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +let C = class C { +}; +C = __decorate([ + dec() +], C); diff --git a/tests/baselines/reference/decoratorOnClass5.symbols b/tests/baselines/reference/decoratorOnClass5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/decoratorOnClass5.symbols rename to tests/baselines/reference/decoratorOnClass5(target=es2015).symbols diff --git a/tests/baselines/reference/decoratorOnClass5.types b/tests/baselines/reference/decoratorOnClass5(target=es2015).types similarity index 100% rename from tests/baselines/reference/decoratorOnClass5.types rename to tests/baselines/reference/decoratorOnClass5(target=es2015).types diff --git a/tests/baselines/reference/decoratorOnClass5.js b/tests/baselines/reference/decoratorOnClass5(target=es5).js similarity index 100% rename from tests/baselines/reference/decoratorOnClass5.js rename to tests/baselines/reference/decoratorOnClass5(target=es5).js diff --git a/tests/baselines/reference/decoratorOnClass5(target=es5).symbols b/tests/baselines/reference/decoratorOnClass5(target=es5).symbols new file mode 100644 index 0000000000000..821005d79ea6d --- /dev/null +++ b/tests/baselines/reference/decoratorOnClass5(target=es5).symbols @@ -0,0 +1,16 @@ +//// [tests/cases/conformance/decorators/class/decoratorOnClass5.ts] //// + +=== decoratorOnClass5.ts === +declare function dec(): (target: T) => T; +>dec : Symbol(dec, Decl(decoratorOnClass5.ts, 0, 0)) +>T : Symbol(T, Decl(decoratorOnClass5.ts, 0, 25)) +>target : Symbol(target, Decl(decoratorOnClass5.ts, 0, 28)) +>T : Symbol(T, Decl(decoratorOnClass5.ts, 0, 25)) +>T : Symbol(T, Decl(decoratorOnClass5.ts, 0, 25)) + +@dec() +>dec : Symbol(dec, Decl(decoratorOnClass5.ts, 0, 0)) + +class C { +>C : Symbol(C, Decl(decoratorOnClass5.ts, 0, 44)) +} diff --git a/tests/baselines/reference/decoratorOnClass5(target=es5).types b/tests/baselines/reference/decoratorOnClass5(target=es5).types new file mode 100644 index 0000000000000..a0ec8903b6956 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClass5(target=es5).types @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/decorators/class/decoratorOnClass5.ts] //// + +=== decoratorOnClass5.ts === +declare function dec(): (target: T) => T; +>dec : () => (target: T) => T +> : ^^^^^^ +>target : T +> : ^ + +@dec() +>dec() : (target: T) => T +> : ^ ^^ ^^ ^^^^^ +>dec : () => (target: T) => T +> : ^^^^^^ + +class C { +>C : C +> : ^ +} diff --git a/tests/baselines/reference/decoratorOnClass8.errors.txt b/tests/baselines/reference/decoratorOnClass8(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/decoratorOnClass8.errors.txt rename to tests/baselines/reference/decoratorOnClass8(target=es2015).errors.txt diff --git a/tests/baselines/reference/decoratorOnClass8(target=es2015).js b/tests/baselines/reference/decoratorOnClass8(target=es2015).js new file mode 100644 index 0000000000000..396ce1451fd4a --- /dev/null +++ b/tests/baselines/reference/decoratorOnClass8(target=es2015).js @@ -0,0 +1,21 @@ +//// [tests/cases/conformance/decorators/class/decoratorOnClass8.ts] //// + +//// [decoratorOnClass8.ts] +declare function dec(): (target: Function, paramIndex: number) => void; + +@dec() +class C { +} + +//// [decoratorOnClass8.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +let C = class C { +}; +C = __decorate([ + dec() +], C); diff --git a/tests/baselines/reference/decoratorOnClass8.symbols b/tests/baselines/reference/decoratorOnClass8(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/decoratorOnClass8.symbols rename to tests/baselines/reference/decoratorOnClass8(target=es2015).symbols diff --git a/tests/baselines/reference/decoratorOnClass8.types b/tests/baselines/reference/decoratorOnClass8(target=es2015).types similarity index 100% rename from tests/baselines/reference/decoratorOnClass8.types rename to tests/baselines/reference/decoratorOnClass8(target=es2015).types diff --git a/tests/baselines/reference/decoratorOnClass8(target=es5).errors.txt b/tests/baselines/reference/decoratorOnClass8(target=es5).errors.txt new file mode 100644 index 0000000000000..bac1886c5d472 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClass8(target=es5).errors.txt @@ -0,0 +1,14 @@ +decoratorOnClass8.ts(3,1): error TS1238: Unable to resolve signature of class decorator when called as an expression. + The runtime will invoke the decorator with 1 arguments, but the decorator expects 2. + + +==== decoratorOnClass8.ts (1 errors) ==== + declare function dec(): (target: Function, paramIndex: number) => void; + + @dec() + ~~~~~~ +!!! error TS1238: Unable to resolve signature of class decorator when called as an expression. +!!! error TS1238: The runtime will invoke the decorator with 1 arguments, but the decorator expects 2. +!!! related TS6210 decoratorOnClass8.ts:1:44: An argument for 'paramIndex' was not provided. + class C { + } \ No newline at end of file diff --git a/tests/baselines/reference/decoratorOnClass8.js b/tests/baselines/reference/decoratorOnClass8(target=es5).js similarity index 100% rename from tests/baselines/reference/decoratorOnClass8.js rename to tests/baselines/reference/decoratorOnClass8(target=es5).js diff --git a/tests/baselines/reference/decoratorOnClass8(target=es5).symbols b/tests/baselines/reference/decoratorOnClass8(target=es5).symbols new file mode 100644 index 0000000000000..a2c14d931e5c7 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClass8(target=es5).symbols @@ -0,0 +1,15 @@ +//// [tests/cases/conformance/decorators/class/decoratorOnClass8.ts] //// + +=== decoratorOnClass8.ts === +declare function dec(): (target: Function, paramIndex: number) => void; +>dec : Symbol(dec, Decl(decoratorOnClass8.ts, 0, 0)) +>target : Symbol(target, Decl(decoratorOnClass8.ts, 0, 25)) +>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>paramIndex : Symbol(paramIndex, Decl(decoratorOnClass8.ts, 0, 42)) + +@dec() +>dec : Symbol(dec, Decl(decoratorOnClass8.ts, 0, 0)) + +class C { +>C : Symbol(C, Decl(decoratorOnClass8.ts, 0, 71)) +} diff --git a/tests/baselines/reference/decoratorOnClass8(target=es5).types b/tests/baselines/reference/decoratorOnClass8(target=es5).types new file mode 100644 index 0000000000000..7a41cd10c6f5a --- /dev/null +++ b/tests/baselines/reference/decoratorOnClass8(target=es5).types @@ -0,0 +1,21 @@ +//// [tests/cases/conformance/decorators/class/decoratorOnClass8.ts] //// + +=== decoratorOnClass8.ts === +declare function dec(): (target: Function, paramIndex: number) => void; +>dec : () => (target: Function, paramIndex: number) => void +> : ^^^^^^ +>target : Function +> : ^^^^^^^^ +>paramIndex : number +> : ^^^^^^ + +@dec() +>dec() : (target: Function, paramIndex: number) => void +> : ^ ^^ ^^ ^^ ^^^^^ +>dec : () => (target: Function, paramIndex: number) => void +> : ^^^^^^ + +class C { +>C : C +> : ^ +} diff --git a/tests/baselines/reference/decoratorOnClass9(target=es2015).js b/tests/baselines/reference/decoratorOnClass9(target=es2015).js new file mode 100644 index 0000000000000..4ce1087506922 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClass9(target=es2015).js @@ -0,0 +1,38 @@ +//// [tests/cases/conformance/decorators/class/decoratorOnClass9.ts] //// + +//// [decoratorOnClass9.ts] +declare var dec: any; + +class A {} + +// https://github.com/Microsoft/TypeScript/issues/16417 +@dec +class B extends A { + static x = 1; + static y = B.x; + m() { + return B.x; + } +} + +//// [decoratorOnClass9.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var B_1; +class A { +} +// https://github.com/Microsoft/TypeScript/issues/16417 +let B = B_1 = class B extends A { + m() { + return B_1.x; + } +}; +B.x = 1; +B.y = B_1.x; +B = B_1 = __decorate([ + dec +], B); diff --git a/tests/baselines/reference/decoratorOnClass9.symbols b/tests/baselines/reference/decoratorOnClass9(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/decoratorOnClass9.symbols rename to tests/baselines/reference/decoratorOnClass9(target=es2015).symbols diff --git a/tests/baselines/reference/decoratorOnClass9.types b/tests/baselines/reference/decoratorOnClass9(target=es2015).types similarity index 100% rename from tests/baselines/reference/decoratorOnClass9.types rename to tests/baselines/reference/decoratorOnClass9(target=es2015).types diff --git a/tests/baselines/reference/decoratorOnClass9.js b/tests/baselines/reference/decoratorOnClass9(target=es5).js similarity index 100% rename from tests/baselines/reference/decoratorOnClass9.js rename to tests/baselines/reference/decoratorOnClass9(target=es5).js diff --git a/tests/baselines/reference/decoratorOnClass9(target=es5).symbols b/tests/baselines/reference/decoratorOnClass9(target=es5).symbols new file mode 100644 index 0000000000000..8d31203101baa --- /dev/null +++ b/tests/baselines/reference/decoratorOnClass9(target=es5).symbols @@ -0,0 +1,35 @@ +//// [tests/cases/conformance/decorators/class/decoratorOnClass9.ts] //// + +=== decoratorOnClass9.ts === +declare var dec: any; +>dec : Symbol(dec, Decl(decoratorOnClass9.ts, 0, 11)) + +class A {} +>A : Symbol(A, Decl(decoratorOnClass9.ts, 0, 21)) + +// https://github.com/Microsoft/TypeScript/issues/16417 +@dec +>dec : Symbol(dec, Decl(decoratorOnClass9.ts, 0, 11)) + +class B extends A { +>B : Symbol(B, Decl(decoratorOnClass9.ts, 2, 10)) +>A : Symbol(A, Decl(decoratorOnClass9.ts, 0, 21)) + + static x = 1; +>x : Symbol(B.x, Decl(decoratorOnClass9.ts, 6, 19)) + + static y = B.x; +>y : Symbol(B.y, Decl(decoratorOnClass9.ts, 7, 17)) +>B.x : Symbol(B.x, Decl(decoratorOnClass9.ts, 6, 19)) +>B : Symbol(B, Decl(decoratorOnClass9.ts, 2, 10)) +>x : Symbol(B.x, Decl(decoratorOnClass9.ts, 6, 19)) + + m() { +>m : Symbol(B.m, Decl(decoratorOnClass9.ts, 8, 19)) + + return B.x; +>B.x : Symbol(B.x, Decl(decoratorOnClass9.ts, 6, 19)) +>B : Symbol(B, Decl(decoratorOnClass9.ts, 2, 10)) +>x : Symbol(B.x, Decl(decoratorOnClass9.ts, 6, 19)) + } +} diff --git a/tests/baselines/reference/decoratorOnClass9(target=es5).types b/tests/baselines/reference/decoratorOnClass9(target=es5).types new file mode 100644 index 0000000000000..4046ae2c002bf --- /dev/null +++ b/tests/baselines/reference/decoratorOnClass9(target=es5).types @@ -0,0 +1,49 @@ +//// [tests/cases/conformance/decorators/class/decoratorOnClass9.ts] //// + +=== decoratorOnClass9.ts === +declare var dec: any; +>dec : any + +class A {} +>A : A +> : ^ + +// https://github.com/Microsoft/TypeScript/issues/16417 +@dec +>dec : any + +class B extends A { +>B : B +> : ^ +>A : A +> : ^ + + static x = 1; +>x : number +> : ^^^^^^ +>1 : 1 +> : ^ + + static y = B.x; +>y : number +> : ^^^^^^ +>B.x : number +> : ^^^^^^ +>B : typeof B +> : ^^^^^^^^ +>x : number +> : ^^^^^^ + + m() { +>m : () => number +> : ^^^^^^^^^^^^ + + return B.x; +>B.x : number +> : ^^^^^^ +>B : typeof B +> : ^^^^^^^^ +>x : number +> : ^^^^^^ + } +} diff --git a/tests/baselines/reference/decoratorOnClassAccessor1(target=es2015).js b/tests/baselines/reference/decoratorOnClassAccessor1(target=es2015).js new file mode 100644 index 0000000000000..77eb77eb49571 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassAccessor1(target=es2015).js @@ -0,0 +1,22 @@ +//// [tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor1.ts] //// + +//// [decoratorOnClassAccessor1.ts] +declare function dec(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor; + +class C { + @dec get accessor() { return 1; } +} + +//// [decoratorOnClassAccessor1.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +class C { + get accessor() { return 1; } +} +__decorate([ + dec +], C.prototype, "accessor", null); diff --git a/tests/baselines/reference/decoratorOnClassAccessor1.symbols b/tests/baselines/reference/decoratorOnClassAccessor1(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/decoratorOnClassAccessor1.symbols rename to tests/baselines/reference/decoratorOnClassAccessor1(target=es2015).symbols diff --git a/tests/baselines/reference/decoratorOnClassAccessor1.types b/tests/baselines/reference/decoratorOnClassAccessor1(target=es2015).types similarity index 100% rename from tests/baselines/reference/decoratorOnClassAccessor1.types rename to tests/baselines/reference/decoratorOnClassAccessor1(target=es2015).types diff --git a/tests/baselines/reference/decoratorOnClassAccessor1.js b/tests/baselines/reference/decoratorOnClassAccessor1(target=es5).js similarity index 100% rename from tests/baselines/reference/decoratorOnClassAccessor1.js rename to tests/baselines/reference/decoratorOnClassAccessor1(target=es5).js diff --git a/tests/baselines/reference/decoratorOnClassAccessor1(target=es5).symbols b/tests/baselines/reference/decoratorOnClassAccessor1(target=es5).symbols new file mode 100644 index 0000000000000..4b2dcf1016961 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassAccessor1(target=es5).symbols @@ -0,0 +1,21 @@ +//// [tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor1.ts] //// + +=== decoratorOnClassAccessor1.ts === +declare function dec(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor; +>dec : Symbol(dec, Decl(decoratorOnClassAccessor1.ts, 0, 0)) +>T : Symbol(T, Decl(decoratorOnClassAccessor1.ts, 0, 21)) +>target : Symbol(target, Decl(decoratorOnClassAccessor1.ts, 0, 24)) +>propertyKey : Symbol(propertyKey, Decl(decoratorOnClassAccessor1.ts, 0, 36)) +>descriptor : Symbol(descriptor, Decl(decoratorOnClassAccessor1.ts, 0, 57)) +>TypedPropertyDescriptor : Symbol(TypedPropertyDescriptor, Decl(lib.es5.d.ts, --, --)) +>T : Symbol(T, Decl(decoratorOnClassAccessor1.ts, 0, 21)) +>TypedPropertyDescriptor : Symbol(TypedPropertyDescriptor, Decl(lib.es5.d.ts, --, --)) +>T : Symbol(T, Decl(decoratorOnClassAccessor1.ts, 0, 21)) + +class C { +>C : Symbol(C, Decl(decoratorOnClassAccessor1.ts, 0, 126)) + + @dec get accessor() { return 1; } +>dec : Symbol(dec, Decl(decoratorOnClassAccessor1.ts, 0, 0)) +>accessor : Symbol(C.accessor, Decl(decoratorOnClassAccessor1.ts, 2, 9)) +} diff --git a/tests/baselines/reference/decoratorOnClassAccessor1(target=es5).types b/tests/baselines/reference/decoratorOnClassAccessor1(target=es5).types new file mode 100644 index 0000000000000..b146bc412a043 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassAccessor1(target=es5).types @@ -0,0 +1,24 @@ +//// [tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor1.ts] //// + +=== decoratorOnClassAccessor1.ts === +declare function dec(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor; +>dec : (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor +> : ^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>target : any +>propertyKey : string +> : ^^^^^^ +>descriptor : TypedPropertyDescriptor +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^ + +class C { +>C : C +> : ^ + + @dec get accessor() { return 1; } +>dec : (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor +> : ^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>accessor : number +> : ^^^^^^ +>1 : 1 +> : ^ +} diff --git a/tests/baselines/reference/decoratorOnClassAccessor2(target=es2015).js b/tests/baselines/reference/decoratorOnClassAccessor2(target=es2015).js new file mode 100644 index 0000000000000..53bd52766408b --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassAccessor2(target=es2015).js @@ -0,0 +1,22 @@ +//// [tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor2.ts] //// + +//// [decoratorOnClassAccessor2.ts] +declare function dec(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor; + +class C { + @dec public get accessor() { return 1; } +} + +//// [decoratorOnClassAccessor2.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +class C { + get accessor() { return 1; } +} +__decorate([ + dec +], C.prototype, "accessor", null); diff --git a/tests/baselines/reference/decoratorOnClassAccessor2.symbols b/tests/baselines/reference/decoratorOnClassAccessor2(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/decoratorOnClassAccessor2.symbols rename to tests/baselines/reference/decoratorOnClassAccessor2(target=es2015).symbols diff --git a/tests/baselines/reference/decoratorOnClassAccessor2.types b/tests/baselines/reference/decoratorOnClassAccessor2(target=es2015).types similarity index 100% rename from tests/baselines/reference/decoratorOnClassAccessor2.types rename to tests/baselines/reference/decoratorOnClassAccessor2(target=es2015).types diff --git a/tests/baselines/reference/decoratorOnClassAccessor2.js b/tests/baselines/reference/decoratorOnClassAccessor2(target=es5).js similarity index 100% rename from tests/baselines/reference/decoratorOnClassAccessor2.js rename to tests/baselines/reference/decoratorOnClassAccessor2(target=es5).js diff --git a/tests/baselines/reference/decoratorOnClassAccessor2(target=es5).symbols b/tests/baselines/reference/decoratorOnClassAccessor2(target=es5).symbols new file mode 100644 index 0000000000000..a09536d9fd571 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassAccessor2(target=es5).symbols @@ -0,0 +1,21 @@ +//// [tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor2.ts] //// + +=== decoratorOnClassAccessor2.ts === +declare function dec(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor; +>dec : Symbol(dec, Decl(decoratorOnClassAccessor2.ts, 0, 0)) +>T : Symbol(T, Decl(decoratorOnClassAccessor2.ts, 0, 21)) +>target : Symbol(target, Decl(decoratorOnClassAccessor2.ts, 0, 24)) +>propertyKey : Symbol(propertyKey, Decl(decoratorOnClassAccessor2.ts, 0, 36)) +>descriptor : Symbol(descriptor, Decl(decoratorOnClassAccessor2.ts, 0, 57)) +>TypedPropertyDescriptor : Symbol(TypedPropertyDescriptor, Decl(lib.es5.d.ts, --, --)) +>T : Symbol(T, Decl(decoratorOnClassAccessor2.ts, 0, 21)) +>TypedPropertyDescriptor : Symbol(TypedPropertyDescriptor, Decl(lib.es5.d.ts, --, --)) +>T : Symbol(T, Decl(decoratorOnClassAccessor2.ts, 0, 21)) + +class C { +>C : Symbol(C, Decl(decoratorOnClassAccessor2.ts, 0, 126)) + + @dec public get accessor() { return 1; } +>dec : Symbol(dec, Decl(decoratorOnClassAccessor2.ts, 0, 0)) +>accessor : Symbol(C.accessor, Decl(decoratorOnClassAccessor2.ts, 2, 9)) +} diff --git a/tests/baselines/reference/decoratorOnClassAccessor2(target=es5).types b/tests/baselines/reference/decoratorOnClassAccessor2(target=es5).types new file mode 100644 index 0000000000000..7d55b72ce0e7b --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassAccessor2(target=es5).types @@ -0,0 +1,24 @@ +//// [tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor2.ts] //// + +=== decoratorOnClassAccessor2.ts === +declare function dec(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor; +>dec : (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor +> : ^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>target : any +>propertyKey : string +> : ^^^^^^ +>descriptor : TypedPropertyDescriptor +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^ + +class C { +>C : C +> : ^ + + @dec public get accessor() { return 1; } +>dec : (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor +> : ^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>accessor : number +> : ^^^^^^ +>1 : 1 +> : ^ +} diff --git a/tests/baselines/reference/decoratorOnClassAccessor3.errors.txt b/tests/baselines/reference/decoratorOnClassAccessor3(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/decoratorOnClassAccessor3.errors.txt rename to tests/baselines/reference/decoratorOnClassAccessor3(target=es2015).errors.txt diff --git a/tests/baselines/reference/decoratorOnClassAccessor3(target=es2015).js b/tests/baselines/reference/decoratorOnClassAccessor3(target=es2015).js new file mode 100644 index 0000000000000..081982d81a671 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassAccessor3(target=es2015).js @@ -0,0 +1,22 @@ +//// [tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor3.ts] //// + +//// [decoratorOnClassAccessor3.ts] +declare function dec(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor; + +class C { + public @dec get accessor() { return 1; } +} + +//// [decoratorOnClassAccessor3.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +class C { + get accessor() { return 1; } +} +__decorate([ + dec +], C.prototype, "accessor", null); diff --git a/tests/baselines/reference/decoratorOnClassAccessor3.symbols b/tests/baselines/reference/decoratorOnClassAccessor3(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/decoratorOnClassAccessor3.symbols rename to tests/baselines/reference/decoratorOnClassAccessor3(target=es2015).symbols diff --git a/tests/baselines/reference/decoratorOnClassAccessor3.types b/tests/baselines/reference/decoratorOnClassAccessor3(target=es2015).types similarity index 100% rename from tests/baselines/reference/decoratorOnClassAccessor3.types rename to tests/baselines/reference/decoratorOnClassAccessor3(target=es2015).types diff --git a/tests/baselines/reference/decoratorOnClassAccessor3(target=es5).errors.txt b/tests/baselines/reference/decoratorOnClassAccessor3(target=es5).errors.txt new file mode 100644 index 0000000000000..74101534f6dd2 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassAccessor3(target=es5).errors.txt @@ -0,0 +1,11 @@ +decoratorOnClassAccessor3.ts(4,12): error TS1436: Decorators must precede the name and all keywords of property declarations. + + +==== decoratorOnClassAccessor3.ts (1 errors) ==== + declare function dec(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor; + + class C { + public @dec get accessor() { return 1; } + ~ +!!! error TS1436: Decorators must precede the name and all keywords of property declarations. + } \ No newline at end of file diff --git a/tests/baselines/reference/decoratorOnClassAccessor3.js b/tests/baselines/reference/decoratorOnClassAccessor3(target=es5).js similarity index 100% rename from tests/baselines/reference/decoratorOnClassAccessor3.js rename to tests/baselines/reference/decoratorOnClassAccessor3(target=es5).js diff --git a/tests/baselines/reference/decoratorOnClassAccessor3(target=es5).symbols b/tests/baselines/reference/decoratorOnClassAccessor3(target=es5).symbols new file mode 100644 index 0000000000000..2e830c7ac6e8b --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassAccessor3(target=es5).symbols @@ -0,0 +1,22 @@ +//// [tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor3.ts] //// + +=== decoratorOnClassAccessor3.ts === +declare function dec(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor; +>dec : Symbol(dec, Decl(decoratorOnClassAccessor3.ts, 0, 0)) +>T : Symbol(T, Decl(decoratorOnClassAccessor3.ts, 0, 21)) +>target : Symbol(target, Decl(decoratorOnClassAccessor3.ts, 0, 24)) +>propertyKey : Symbol(propertyKey, Decl(decoratorOnClassAccessor3.ts, 0, 36)) +>descriptor : Symbol(descriptor, Decl(decoratorOnClassAccessor3.ts, 0, 57)) +>TypedPropertyDescriptor : Symbol(TypedPropertyDescriptor, Decl(lib.es5.d.ts, --, --)) +>T : Symbol(T, Decl(decoratorOnClassAccessor3.ts, 0, 21)) +>TypedPropertyDescriptor : Symbol(TypedPropertyDescriptor, Decl(lib.es5.d.ts, --, --)) +>T : Symbol(T, Decl(decoratorOnClassAccessor3.ts, 0, 21)) + +class C { +>C : Symbol(C, Decl(decoratorOnClassAccessor3.ts, 0, 126)) + + public @dec get accessor() { return 1; } +>public : Symbol(C.public, Decl(decoratorOnClassAccessor3.ts, 2, 9)) +>dec : Symbol(dec, Decl(decoratorOnClassAccessor3.ts, 0, 0)) +>accessor : Symbol(C.accessor, Decl(decoratorOnClassAccessor3.ts, 3, 10)) +} diff --git a/tests/baselines/reference/decoratorOnClassAccessor3(target=es5).types b/tests/baselines/reference/decoratorOnClassAccessor3(target=es5).types new file mode 100644 index 0000000000000..8f6c918194090 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassAccessor3(target=es5).types @@ -0,0 +1,27 @@ +//// [tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor3.ts] //// + +=== decoratorOnClassAccessor3.ts === +declare function dec(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor; +>dec : (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor +> : ^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>target : any +> : ^^^ +>propertyKey : string +> : ^^^^^^ +>descriptor : TypedPropertyDescriptor +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^ + +class C { +>C : C +> : ^ + + public @dec get accessor() { return 1; } +>public : any +> : ^^^ +>dec : (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor +> : ^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>accessor : number +> : ^^^^^^ +>1 : 1 +> : ^ +} diff --git a/tests/baselines/reference/decoratorOnClassAccessor4(target=es2015).js b/tests/baselines/reference/decoratorOnClassAccessor4(target=es2015).js new file mode 100644 index 0000000000000..7e6ba343c1b63 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassAccessor4(target=es2015).js @@ -0,0 +1,22 @@ +//// [tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor4.ts] //// + +//// [decoratorOnClassAccessor4.ts] +declare function dec(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor; + +class C { + @dec set accessor(value: number) { } +} + +//// [decoratorOnClassAccessor4.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +class C { + set accessor(value) { } +} +__decorate([ + dec +], C.prototype, "accessor", null); diff --git a/tests/baselines/reference/decoratorOnClassAccessor4.symbols b/tests/baselines/reference/decoratorOnClassAccessor4(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/decoratorOnClassAccessor4.symbols rename to tests/baselines/reference/decoratorOnClassAccessor4(target=es2015).symbols diff --git a/tests/baselines/reference/decoratorOnClassAccessor4.types b/tests/baselines/reference/decoratorOnClassAccessor4(target=es2015).types similarity index 100% rename from tests/baselines/reference/decoratorOnClassAccessor4.types rename to tests/baselines/reference/decoratorOnClassAccessor4(target=es2015).types diff --git a/tests/baselines/reference/decoratorOnClassAccessor4.js b/tests/baselines/reference/decoratorOnClassAccessor4(target=es5).js similarity index 100% rename from tests/baselines/reference/decoratorOnClassAccessor4.js rename to tests/baselines/reference/decoratorOnClassAccessor4(target=es5).js diff --git a/tests/baselines/reference/decoratorOnClassAccessor4(target=es5).symbols b/tests/baselines/reference/decoratorOnClassAccessor4(target=es5).symbols new file mode 100644 index 0000000000000..ae97169ac61c4 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassAccessor4(target=es5).symbols @@ -0,0 +1,22 @@ +//// [tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor4.ts] //// + +=== decoratorOnClassAccessor4.ts === +declare function dec(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor; +>dec : Symbol(dec, Decl(decoratorOnClassAccessor4.ts, 0, 0)) +>T : Symbol(T, Decl(decoratorOnClassAccessor4.ts, 0, 21)) +>target : Symbol(target, Decl(decoratorOnClassAccessor4.ts, 0, 24)) +>propertyKey : Symbol(propertyKey, Decl(decoratorOnClassAccessor4.ts, 0, 36)) +>descriptor : Symbol(descriptor, Decl(decoratorOnClassAccessor4.ts, 0, 57)) +>TypedPropertyDescriptor : Symbol(TypedPropertyDescriptor, Decl(lib.es5.d.ts, --, --)) +>T : Symbol(T, Decl(decoratorOnClassAccessor4.ts, 0, 21)) +>TypedPropertyDescriptor : Symbol(TypedPropertyDescriptor, Decl(lib.es5.d.ts, --, --)) +>T : Symbol(T, Decl(decoratorOnClassAccessor4.ts, 0, 21)) + +class C { +>C : Symbol(C, Decl(decoratorOnClassAccessor4.ts, 0, 126)) + + @dec set accessor(value: number) { } +>dec : Symbol(dec, Decl(decoratorOnClassAccessor4.ts, 0, 0)) +>accessor : Symbol(C.accessor, Decl(decoratorOnClassAccessor4.ts, 2, 9)) +>value : Symbol(value, Decl(decoratorOnClassAccessor4.ts, 3, 22)) +} diff --git a/tests/baselines/reference/decoratorOnClassAccessor4(target=es5).types b/tests/baselines/reference/decoratorOnClassAccessor4(target=es5).types new file mode 100644 index 0000000000000..daa22e15d5f5d --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassAccessor4(target=es5).types @@ -0,0 +1,24 @@ +//// [tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor4.ts] //// + +=== decoratorOnClassAccessor4.ts === +declare function dec(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor; +>dec : (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor +> : ^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>target : any +>propertyKey : string +> : ^^^^^^ +>descriptor : TypedPropertyDescriptor +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^ + +class C { +>C : C +> : ^ + + @dec set accessor(value: number) { } +>dec : (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor +> : ^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>accessor : number +> : ^^^^^^ +>value : number +> : ^^^^^^ +} diff --git a/tests/baselines/reference/decoratorOnClassAccessor5(target=es2015).js b/tests/baselines/reference/decoratorOnClassAccessor5(target=es2015).js new file mode 100644 index 0000000000000..4fe1649d5fd97 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassAccessor5(target=es2015).js @@ -0,0 +1,22 @@ +//// [tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor5.ts] //// + +//// [decoratorOnClassAccessor5.ts] +declare function dec(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor; + +class C { + @dec public set accessor(value: number) { } +} + +//// [decoratorOnClassAccessor5.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +class C { + set accessor(value) { } +} +__decorate([ + dec +], C.prototype, "accessor", null); diff --git a/tests/baselines/reference/decoratorOnClassAccessor5.symbols b/tests/baselines/reference/decoratorOnClassAccessor5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/decoratorOnClassAccessor5.symbols rename to tests/baselines/reference/decoratorOnClassAccessor5(target=es2015).symbols diff --git a/tests/baselines/reference/decoratorOnClassAccessor5.types b/tests/baselines/reference/decoratorOnClassAccessor5(target=es2015).types similarity index 100% rename from tests/baselines/reference/decoratorOnClassAccessor5.types rename to tests/baselines/reference/decoratorOnClassAccessor5(target=es2015).types diff --git a/tests/baselines/reference/decoratorOnClassAccessor5.js b/tests/baselines/reference/decoratorOnClassAccessor5(target=es5).js similarity index 100% rename from tests/baselines/reference/decoratorOnClassAccessor5.js rename to tests/baselines/reference/decoratorOnClassAccessor5(target=es5).js diff --git a/tests/baselines/reference/decoratorOnClassAccessor5(target=es5).symbols b/tests/baselines/reference/decoratorOnClassAccessor5(target=es5).symbols new file mode 100644 index 0000000000000..2902525618479 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassAccessor5(target=es5).symbols @@ -0,0 +1,22 @@ +//// [tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor5.ts] //// + +=== decoratorOnClassAccessor5.ts === +declare function dec(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor; +>dec : Symbol(dec, Decl(decoratorOnClassAccessor5.ts, 0, 0)) +>T : Symbol(T, Decl(decoratorOnClassAccessor5.ts, 0, 21)) +>target : Symbol(target, Decl(decoratorOnClassAccessor5.ts, 0, 24)) +>propertyKey : Symbol(propertyKey, Decl(decoratorOnClassAccessor5.ts, 0, 36)) +>descriptor : Symbol(descriptor, Decl(decoratorOnClassAccessor5.ts, 0, 57)) +>TypedPropertyDescriptor : Symbol(TypedPropertyDescriptor, Decl(lib.es5.d.ts, --, --)) +>T : Symbol(T, Decl(decoratorOnClassAccessor5.ts, 0, 21)) +>TypedPropertyDescriptor : Symbol(TypedPropertyDescriptor, Decl(lib.es5.d.ts, --, --)) +>T : Symbol(T, Decl(decoratorOnClassAccessor5.ts, 0, 21)) + +class C { +>C : Symbol(C, Decl(decoratorOnClassAccessor5.ts, 0, 126)) + + @dec public set accessor(value: number) { } +>dec : Symbol(dec, Decl(decoratorOnClassAccessor5.ts, 0, 0)) +>accessor : Symbol(C.accessor, Decl(decoratorOnClassAccessor5.ts, 2, 9)) +>value : Symbol(value, Decl(decoratorOnClassAccessor5.ts, 3, 29)) +} diff --git a/tests/baselines/reference/decoratorOnClassAccessor5(target=es5).types b/tests/baselines/reference/decoratorOnClassAccessor5(target=es5).types new file mode 100644 index 0000000000000..a107b6e668e3b --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassAccessor5(target=es5).types @@ -0,0 +1,24 @@ +//// [tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor5.ts] //// + +=== decoratorOnClassAccessor5.ts === +declare function dec(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor; +>dec : (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor +> : ^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>target : any +>propertyKey : string +> : ^^^^^^ +>descriptor : TypedPropertyDescriptor +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^ + +class C { +>C : C +> : ^ + + @dec public set accessor(value: number) { } +>dec : (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor +> : ^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>accessor : number +> : ^^^^^^ +>value : number +> : ^^^^^^ +} diff --git a/tests/baselines/reference/decoratorOnClassAccessor6.errors.txt b/tests/baselines/reference/decoratorOnClassAccessor6(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/decoratorOnClassAccessor6.errors.txt rename to tests/baselines/reference/decoratorOnClassAccessor6(target=es2015).errors.txt diff --git a/tests/baselines/reference/decoratorOnClassAccessor6(target=es2015).js b/tests/baselines/reference/decoratorOnClassAccessor6(target=es2015).js new file mode 100644 index 0000000000000..5c137c3bda745 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassAccessor6(target=es2015).js @@ -0,0 +1,22 @@ +//// [tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor6.ts] //// + +//// [decoratorOnClassAccessor6.ts] +declare function dec(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor; + +class C { + public @dec set accessor(value: number) { } +} + +//// [decoratorOnClassAccessor6.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +class C { + set accessor(value) { } +} +__decorate([ + dec +], C.prototype, "accessor", null); diff --git a/tests/baselines/reference/decoratorOnClassAccessor6.symbols b/tests/baselines/reference/decoratorOnClassAccessor6(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/decoratorOnClassAccessor6.symbols rename to tests/baselines/reference/decoratorOnClassAccessor6(target=es2015).symbols diff --git a/tests/baselines/reference/decoratorOnClassAccessor6.types b/tests/baselines/reference/decoratorOnClassAccessor6(target=es2015).types similarity index 100% rename from tests/baselines/reference/decoratorOnClassAccessor6.types rename to tests/baselines/reference/decoratorOnClassAccessor6(target=es2015).types diff --git a/tests/baselines/reference/decoratorOnClassAccessor6(target=es5).errors.txt b/tests/baselines/reference/decoratorOnClassAccessor6(target=es5).errors.txt new file mode 100644 index 0000000000000..52f8c3efceaeb --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassAccessor6(target=es5).errors.txt @@ -0,0 +1,11 @@ +decoratorOnClassAccessor6.ts(4,12): error TS1436: Decorators must precede the name and all keywords of property declarations. + + +==== decoratorOnClassAccessor6.ts (1 errors) ==== + declare function dec(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor; + + class C { + public @dec set accessor(value: number) { } + ~ +!!! error TS1436: Decorators must precede the name and all keywords of property declarations. + } \ No newline at end of file diff --git a/tests/baselines/reference/decoratorOnClassAccessor6.js b/tests/baselines/reference/decoratorOnClassAccessor6(target=es5).js similarity index 100% rename from tests/baselines/reference/decoratorOnClassAccessor6.js rename to tests/baselines/reference/decoratorOnClassAccessor6(target=es5).js diff --git a/tests/baselines/reference/decoratorOnClassAccessor6(target=es5).symbols b/tests/baselines/reference/decoratorOnClassAccessor6(target=es5).symbols new file mode 100644 index 0000000000000..cc6f7dce58d93 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassAccessor6(target=es5).symbols @@ -0,0 +1,23 @@ +//// [tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor6.ts] //// + +=== decoratorOnClassAccessor6.ts === +declare function dec(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor; +>dec : Symbol(dec, Decl(decoratorOnClassAccessor6.ts, 0, 0)) +>T : Symbol(T, Decl(decoratorOnClassAccessor6.ts, 0, 21)) +>target : Symbol(target, Decl(decoratorOnClassAccessor6.ts, 0, 24)) +>propertyKey : Symbol(propertyKey, Decl(decoratorOnClassAccessor6.ts, 0, 36)) +>descriptor : Symbol(descriptor, Decl(decoratorOnClassAccessor6.ts, 0, 57)) +>TypedPropertyDescriptor : Symbol(TypedPropertyDescriptor, Decl(lib.es5.d.ts, --, --)) +>T : Symbol(T, Decl(decoratorOnClassAccessor6.ts, 0, 21)) +>TypedPropertyDescriptor : Symbol(TypedPropertyDescriptor, Decl(lib.es5.d.ts, --, --)) +>T : Symbol(T, Decl(decoratorOnClassAccessor6.ts, 0, 21)) + +class C { +>C : Symbol(C, Decl(decoratorOnClassAccessor6.ts, 0, 126)) + + public @dec set accessor(value: number) { } +>public : Symbol(C.public, Decl(decoratorOnClassAccessor6.ts, 2, 9)) +>dec : Symbol(dec, Decl(decoratorOnClassAccessor6.ts, 0, 0)) +>accessor : Symbol(C.accessor, Decl(decoratorOnClassAccessor6.ts, 3, 10)) +>value : Symbol(value, Decl(decoratorOnClassAccessor6.ts, 3, 29)) +} diff --git a/tests/baselines/reference/decoratorOnClassAccessor6(target=es5).types b/tests/baselines/reference/decoratorOnClassAccessor6(target=es5).types new file mode 100644 index 0000000000000..a2c52716ba39a --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassAccessor6(target=es5).types @@ -0,0 +1,27 @@ +//// [tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor6.ts] //// + +=== decoratorOnClassAccessor6.ts === +declare function dec(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor; +>dec : (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor +> : ^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>target : any +> : ^^^ +>propertyKey : string +> : ^^^^^^ +>descriptor : TypedPropertyDescriptor +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^ + +class C { +>C : C +> : ^ + + public @dec set accessor(value: number) { } +>public : any +> : ^^^ +>dec : (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor +> : ^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>accessor : number +> : ^^^^^^ +>value : number +> : ^^^^^^ +} diff --git a/tests/baselines/reference/decoratorOnClassAccessor7.errors.txt b/tests/baselines/reference/decoratorOnClassAccessor7(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/decoratorOnClassAccessor7.errors.txt rename to tests/baselines/reference/decoratorOnClassAccessor7(target=es2015).errors.txt diff --git a/tests/baselines/reference/decoratorOnClassAccessor7(target=es2015).js b/tests/baselines/reference/decoratorOnClassAccessor7(target=es2015).js new file mode 100644 index 0000000000000..079c3c96ee01e --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassAccessor7(target=es2015).js @@ -0,0 +1,85 @@ +//// [tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor7.ts] //// + +//// [decoratorOnClassAccessor7.ts] +declare function dec1(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor; +declare function dec2(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor; + +class A { + @dec1 get x() { return 0; } + set x(value: number) { } +} + +class B { + get x() { return 0; } + @dec2 set x(value: number) { } +} + +class C { + @dec1 set x(value: number) { } + get x() { return 0; } +} + +class D { + set x(value: number) { } + @dec2 get x() { return 0; } +} + +class E { + @dec1 get x() { return 0; } + @dec2 set x(value: number) { } +} + +class F { + @dec1 set x(value: number) { } + @dec2 get x() { return 0; } +} + +//// [decoratorOnClassAccessor7.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +class A { + get x() { return 0; } + set x(value) { } +} +__decorate([ + dec1 +], A.prototype, "x", null); +class B { + get x() { return 0; } + set x(value) { } +} +__decorate([ + dec2 +], B.prototype, "x", null); +class C { + set x(value) { } + get x() { return 0; } +} +__decorate([ + dec1 +], C.prototype, "x", null); +class D { + set x(value) { } + get x() { return 0; } +} +__decorate([ + dec2 +], D.prototype, "x", null); +class E { + get x() { return 0; } + set x(value) { } +} +__decorate([ + dec1 +], E.prototype, "x", null); +class F { + set x(value) { } + get x() { return 0; } +} +__decorate([ + dec1 +], F.prototype, "x", null); diff --git a/tests/baselines/reference/decoratorOnClassAccessor7.symbols b/tests/baselines/reference/decoratorOnClassAccessor7(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/decoratorOnClassAccessor7.symbols rename to tests/baselines/reference/decoratorOnClassAccessor7(target=es2015).symbols diff --git a/tests/baselines/reference/decoratorOnClassAccessor7.types b/tests/baselines/reference/decoratorOnClassAccessor7(target=es2015).types similarity index 100% rename from tests/baselines/reference/decoratorOnClassAccessor7.types rename to tests/baselines/reference/decoratorOnClassAccessor7(target=es2015).types diff --git a/tests/baselines/reference/decoratorOnClassAccessor7(target=es5).errors.txt b/tests/baselines/reference/decoratorOnClassAccessor7(target=es5).errors.txt new file mode 100644 index 0000000000000..119918052cd8d --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassAccessor7(target=es5).errors.txt @@ -0,0 +1,41 @@ +decoratorOnClassAccessor7.ts(26,5): error TS1207: Decorators cannot be applied to multiple get/set accessors of the same name. +decoratorOnClassAccessor7.ts(31,5): error TS1207: Decorators cannot be applied to multiple get/set accessors of the same name. + + +==== decoratorOnClassAccessor7.ts (2 errors) ==== + declare function dec1(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor; + declare function dec2(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor; + + class A { + @dec1 get x() { return 0; } + set x(value: number) { } + } + + class B { + get x() { return 0; } + @dec2 set x(value: number) { } + } + + class C { + @dec1 set x(value: number) { } + get x() { return 0; } + } + + class D { + set x(value: number) { } + @dec2 get x() { return 0; } + } + + class E { + @dec1 get x() { return 0; } + @dec2 set x(value: number) { } + ~ +!!! error TS1207: Decorators cannot be applied to multiple get/set accessors of the same name. + } + + class F { + @dec1 set x(value: number) { } + @dec2 get x() { return 0; } + ~ +!!! error TS1207: Decorators cannot be applied to multiple get/set accessors of the same name. + } \ No newline at end of file diff --git a/tests/baselines/reference/decoratorOnClassAccessor7.js b/tests/baselines/reference/decoratorOnClassAccessor7(target=es5).js similarity index 100% rename from tests/baselines/reference/decoratorOnClassAccessor7.js rename to tests/baselines/reference/decoratorOnClassAccessor7(target=es5).js diff --git a/tests/baselines/reference/decoratorOnClassAccessor7(target=es5).symbols b/tests/baselines/reference/decoratorOnClassAccessor7(target=es5).symbols new file mode 100644 index 0000000000000..8abcc406b5b4f --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassAccessor7(target=es5).symbols @@ -0,0 +1,98 @@ +//// [tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor7.ts] //// + +=== decoratorOnClassAccessor7.ts === +declare function dec1(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor; +>dec1 : Symbol(dec1, Decl(decoratorOnClassAccessor7.ts, 0, 0)) +>T : Symbol(T, Decl(decoratorOnClassAccessor7.ts, 0, 22)) +>target : Symbol(target, Decl(decoratorOnClassAccessor7.ts, 0, 25)) +>propertyKey : Symbol(propertyKey, Decl(decoratorOnClassAccessor7.ts, 0, 37)) +>descriptor : Symbol(descriptor, Decl(decoratorOnClassAccessor7.ts, 0, 58)) +>TypedPropertyDescriptor : Symbol(TypedPropertyDescriptor, Decl(lib.es5.d.ts, --, --)) +>T : Symbol(T, Decl(decoratorOnClassAccessor7.ts, 0, 22)) +>TypedPropertyDescriptor : Symbol(TypedPropertyDescriptor, Decl(lib.es5.d.ts, --, --)) +>T : Symbol(T, Decl(decoratorOnClassAccessor7.ts, 0, 22)) + +declare function dec2(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor; +>dec2 : Symbol(dec2, Decl(decoratorOnClassAccessor7.ts, 0, 127)) +>T : Symbol(T, Decl(decoratorOnClassAccessor7.ts, 1, 22)) +>target : Symbol(target, Decl(decoratorOnClassAccessor7.ts, 1, 25)) +>propertyKey : Symbol(propertyKey, Decl(decoratorOnClassAccessor7.ts, 1, 37)) +>descriptor : Symbol(descriptor, Decl(decoratorOnClassAccessor7.ts, 1, 58)) +>TypedPropertyDescriptor : Symbol(TypedPropertyDescriptor, Decl(lib.es5.d.ts, --, --)) +>T : Symbol(T, Decl(decoratorOnClassAccessor7.ts, 1, 22)) +>TypedPropertyDescriptor : Symbol(TypedPropertyDescriptor, Decl(lib.es5.d.ts, --, --)) +>T : Symbol(T, Decl(decoratorOnClassAccessor7.ts, 1, 22)) + +class A { +>A : Symbol(A, Decl(decoratorOnClassAccessor7.ts, 1, 127)) + + @dec1 get x() { return 0; } +>dec1 : Symbol(dec1, Decl(decoratorOnClassAccessor7.ts, 0, 0)) +>x : Symbol(A.x, Decl(decoratorOnClassAccessor7.ts, 3, 9), Decl(decoratorOnClassAccessor7.ts, 4, 31)) + + set x(value: number) { } +>x : Symbol(A.x, Decl(decoratorOnClassAccessor7.ts, 3, 9), Decl(decoratorOnClassAccessor7.ts, 4, 31)) +>value : Symbol(value, Decl(decoratorOnClassAccessor7.ts, 5, 10)) +} + +class B { +>B : Symbol(B, Decl(decoratorOnClassAccessor7.ts, 6, 1)) + + get x() { return 0; } +>x : Symbol(B.x, Decl(decoratorOnClassAccessor7.ts, 8, 9), Decl(decoratorOnClassAccessor7.ts, 9, 25)) + + @dec2 set x(value: number) { } +>dec2 : Symbol(dec2, Decl(decoratorOnClassAccessor7.ts, 0, 127)) +>x : Symbol(B.x, Decl(decoratorOnClassAccessor7.ts, 8, 9), Decl(decoratorOnClassAccessor7.ts, 9, 25)) +>value : Symbol(value, Decl(decoratorOnClassAccessor7.ts, 10, 16)) +} + +class C { +>C : Symbol(C, Decl(decoratorOnClassAccessor7.ts, 11, 1)) + + @dec1 set x(value: number) { } +>dec1 : Symbol(dec1, Decl(decoratorOnClassAccessor7.ts, 0, 0)) +>x : Symbol(C.x, Decl(decoratorOnClassAccessor7.ts, 13, 9), Decl(decoratorOnClassAccessor7.ts, 14, 34)) +>value : Symbol(value, Decl(decoratorOnClassAccessor7.ts, 14, 16)) + + get x() { return 0; } +>x : Symbol(C.x, Decl(decoratorOnClassAccessor7.ts, 13, 9), Decl(decoratorOnClassAccessor7.ts, 14, 34)) +} + +class D { +>D : Symbol(D, Decl(decoratorOnClassAccessor7.ts, 16, 1)) + + set x(value: number) { } +>x : Symbol(D.x, Decl(decoratorOnClassAccessor7.ts, 18, 9), Decl(decoratorOnClassAccessor7.ts, 19, 28)) +>value : Symbol(value, Decl(decoratorOnClassAccessor7.ts, 19, 10)) + + @dec2 get x() { return 0; } +>dec2 : Symbol(dec2, Decl(decoratorOnClassAccessor7.ts, 0, 127)) +>x : Symbol(D.x, Decl(decoratorOnClassAccessor7.ts, 18, 9), Decl(decoratorOnClassAccessor7.ts, 19, 28)) +} + +class E { +>E : Symbol(E, Decl(decoratorOnClassAccessor7.ts, 21, 1)) + + @dec1 get x() { return 0; } +>dec1 : Symbol(dec1, Decl(decoratorOnClassAccessor7.ts, 0, 0)) +>x : Symbol(E.x, Decl(decoratorOnClassAccessor7.ts, 23, 9), Decl(decoratorOnClassAccessor7.ts, 24, 31)) + + @dec2 set x(value: number) { } +>dec2 : Symbol(dec2, Decl(decoratorOnClassAccessor7.ts, 0, 127)) +>x : Symbol(E.x, Decl(decoratorOnClassAccessor7.ts, 23, 9), Decl(decoratorOnClassAccessor7.ts, 24, 31)) +>value : Symbol(value, Decl(decoratorOnClassAccessor7.ts, 25, 16)) +} + +class F { +>F : Symbol(F, Decl(decoratorOnClassAccessor7.ts, 26, 1)) + + @dec1 set x(value: number) { } +>dec1 : Symbol(dec1, Decl(decoratorOnClassAccessor7.ts, 0, 0)) +>x : Symbol(F.x, Decl(decoratorOnClassAccessor7.ts, 28, 9), Decl(decoratorOnClassAccessor7.ts, 29, 34)) +>value : Symbol(value, Decl(decoratorOnClassAccessor7.ts, 29, 16)) + + @dec2 get x() { return 0; } +>dec2 : Symbol(dec2, Decl(decoratorOnClassAccessor7.ts, 0, 127)) +>x : Symbol(F.x, Decl(decoratorOnClassAccessor7.ts, 28, 9), Decl(decoratorOnClassAccessor7.ts, 29, 34)) +} diff --git a/tests/baselines/reference/decoratorOnClassAccessor7(target=es5).types b/tests/baselines/reference/decoratorOnClassAccessor7(target=es5).types new file mode 100644 index 0000000000000..5f8cf8f015c47 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassAccessor7(target=es5).types @@ -0,0 +1,140 @@ +//// [tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor7.ts] //// + +=== decoratorOnClassAccessor7.ts === +declare function dec1(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor; +>dec1 : (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor +> : ^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>target : any +> : ^^^ +>propertyKey : string +> : ^^^^^^ +>descriptor : TypedPropertyDescriptor +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^ + +declare function dec2(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor; +>dec2 : (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor +> : ^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>target : any +> : ^^^ +>propertyKey : string +> : ^^^^^^ +>descriptor : TypedPropertyDescriptor +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^ + +class A { +>A : A +> : ^ + + @dec1 get x() { return 0; } +>dec1 : (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor +> : ^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>x : number +> : ^^^^^^ +>0 : 0 +> : ^ + + set x(value: number) { } +>x : number +> : ^^^^^^ +>value : number +> : ^^^^^^ +} + +class B { +>B : B +> : ^ + + get x() { return 0; } +>x : number +> : ^^^^^^ +>0 : 0 +> : ^ + + @dec2 set x(value: number) { } +>dec2 : (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor +> : ^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>x : number +> : ^^^^^^ +>value : number +> : ^^^^^^ +} + +class C { +>C : C +> : ^ + + @dec1 set x(value: number) { } +>dec1 : (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor +> : ^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>x : number +> : ^^^^^^ +>value : number +> : ^^^^^^ + + get x() { return 0; } +>x : number +> : ^^^^^^ +>0 : 0 +> : ^ +} + +class D { +>D : D +> : ^ + + set x(value: number) { } +>x : number +> : ^^^^^^ +>value : number +> : ^^^^^^ + + @dec2 get x() { return 0; } +>dec2 : (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor +> : ^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>x : number +> : ^^^^^^ +>0 : 0 +> : ^ +} + +class E { +>E : E +> : ^ + + @dec1 get x() { return 0; } +>dec1 : (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor +> : ^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>x : number +> : ^^^^^^ +>0 : 0 +> : ^ + + @dec2 set x(value: number) { } +>dec2 : (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor +> : ^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>x : number +> : ^^^^^^ +>value : number +> : ^^^^^^ +} + +class F { +>F : F +> : ^ + + @dec1 set x(value: number) { } +>dec1 : (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor +> : ^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>x : number +> : ^^^^^^ +>value : number +> : ^^^^^^ + + @dec2 get x() { return 0; } +>dec2 : (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor +> : ^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>x : number +> : ^^^^^^ +>0 : 0 +> : ^ +} diff --git a/tests/baselines/reference/decoratorOnClassAccessor8(target=es2015).js b/tests/baselines/reference/decoratorOnClassAccessor8(target=es2015).js new file mode 100644 index 0000000000000..6ca4a9e286f64 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassAccessor8(target=es2015).js @@ -0,0 +1,95 @@ +//// [tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor8.ts] //// + +//// [decoratorOnClassAccessor8.ts] +declare function dec(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor; + +class A { + @dec get x() { return 0; } + set x(value: number) { } +} + +class B { + get x() { return 0; } + @dec set x(value: number) { } +} + +class C { + @dec set x(value: number) { } + get x() { return 0; } +} + +class D { + set x(value: number) { } + @dec get x() { return 0; } +} + +class E { + @dec get x() { return 0; } +} + +class F { + @dec set x(value: number) { } +} + +//// [decoratorOnClassAccessor8.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; +class A { + get x() { return 0; } + set x(value) { } +} +__decorate([ + dec, + __metadata("design:type", Number), + __metadata("design:paramtypes", [Number]) +], A.prototype, "x", null); +class B { + get x() { return 0; } + set x(value) { } +} +__decorate([ + dec, + __metadata("design:type", Number), + __metadata("design:paramtypes", [Number]) +], B.prototype, "x", null); +class C { + set x(value) { } + get x() { return 0; } +} +__decorate([ + dec, + __metadata("design:type", Number), + __metadata("design:paramtypes", [Number]) +], C.prototype, "x", null); +class D { + set x(value) { } + get x() { return 0; } +} +__decorate([ + dec, + __metadata("design:type", Number), + __metadata("design:paramtypes", [Number]) +], D.prototype, "x", null); +class E { + get x() { return 0; } +} +__decorate([ + dec, + __metadata("design:type", Object), + __metadata("design:paramtypes", []) +], E.prototype, "x", null); +class F { + set x(value) { } +} +__decorate([ + dec, + __metadata("design:type", Number), + __metadata("design:paramtypes", [Number]) +], F.prototype, "x", null); diff --git a/tests/baselines/reference/decoratorOnClassAccessor8.symbols b/tests/baselines/reference/decoratorOnClassAccessor8(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/decoratorOnClassAccessor8.symbols rename to tests/baselines/reference/decoratorOnClassAccessor8(target=es2015).symbols diff --git a/tests/baselines/reference/decoratorOnClassAccessor8.types b/tests/baselines/reference/decoratorOnClassAccessor8(target=es2015).types similarity index 100% rename from tests/baselines/reference/decoratorOnClassAccessor8.types rename to tests/baselines/reference/decoratorOnClassAccessor8(target=es2015).types diff --git a/tests/baselines/reference/decoratorOnClassAccessor8.js b/tests/baselines/reference/decoratorOnClassAccessor8(target=es5).js similarity index 100% rename from tests/baselines/reference/decoratorOnClassAccessor8.js rename to tests/baselines/reference/decoratorOnClassAccessor8(target=es5).js diff --git a/tests/baselines/reference/decoratorOnClassAccessor8(target=es5).symbols b/tests/baselines/reference/decoratorOnClassAccessor8(target=es5).symbols new file mode 100644 index 0000000000000..f1090799a164e --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassAccessor8(target=es5).symbols @@ -0,0 +1,78 @@ +//// [tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor8.ts] //// + +=== decoratorOnClassAccessor8.ts === +declare function dec(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor; +>dec : Symbol(dec, Decl(decoratorOnClassAccessor8.ts, 0, 0)) +>T : Symbol(T, Decl(decoratorOnClassAccessor8.ts, 0, 21)) +>target : Symbol(target, Decl(decoratorOnClassAccessor8.ts, 0, 24)) +>propertyKey : Symbol(propertyKey, Decl(decoratorOnClassAccessor8.ts, 0, 36)) +>descriptor : Symbol(descriptor, Decl(decoratorOnClassAccessor8.ts, 0, 57)) +>TypedPropertyDescriptor : Symbol(TypedPropertyDescriptor, Decl(lib.es5.d.ts, --, --)) +>T : Symbol(T, Decl(decoratorOnClassAccessor8.ts, 0, 21)) +>TypedPropertyDescriptor : Symbol(TypedPropertyDescriptor, Decl(lib.es5.d.ts, --, --)) +>T : Symbol(T, Decl(decoratorOnClassAccessor8.ts, 0, 21)) + +class A { +>A : Symbol(A, Decl(decoratorOnClassAccessor8.ts, 0, 126)) + + @dec get x() { return 0; } +>dec : Symbol(dec, Decl(decoratorOnClassAccessor8.ts, 0, 0)) +>x : Symbol(A.x, Decl(decoratorOnClassAccessor8.ts, 2, 9), Decl(decoratorOnClassAccessor8.ts, 3, 30)) + + set x(value: number) { } +>x : Symbol(A.x, Decl(decoratorOnClassAccessor8.ts, 2, 9), Decl(decoratorOnClassAccessor8.ts, 3, 30)) +>value : Symbol(value, Decl(decoratorOnClassAccessor8.ts, 4, 10)) +} + +class B { +>B : Symbol(B, Decl(decoratorOnClassAccessor8.ts, 5, 1)) + + get x() { return 0; } +>x : Symbol(B.x, Decl(decoratorOnClassAccessor8.ts, 7, 9), Decl(decoratorOnClassAccessor8.ts, 8, 25)) + + @dec set x(value: number) { } +>dec : Symbol(dec, Decl(decoratorOnClassAccessor8.ts, 0, 0)) +>x : Symbol(B.x, Decl(decoratorOnClassAccessor8.ts, 7, 9), Decl(decoratorOnClassAccessor8.ts, 8, 25)) +>value : Symbol(value, Decl(decoratorOnClassAccessor8.ts, 9, 15)) +} + +class C { +>C : Symbol(C, Decl(decoratorOnClassAccessor8.ts, 10, 1)) + + @dec set x(value: number) { } +>dec : Symbol(dec, Decl(decoratorOnClassAccessor8.ts, 0, 0)) +>x : Symbol(C.x, Decl(decoratorOnClassAccessor8.ts, 12, 9), Decl(decoratorOnClassAccessor8.ts, 13, 33)) +>value : Symbol(value, Decl(decoratorOnClassAccessor8.ts, 13, 15)) + + get x() { return 0; } +>x : Symbol(C.x, Decl(decoratorOnClassAccessor8.ts, 12, 9), Decl(decoratorOnClassAccessor8.ts, 13, 33)) +} + +class D { +>D : Symbol(D, Decl(decoratorOnClassAccessor8.ts, 15, 1)) + + set x(value: number) { } +>x : Symbol(D.x, Decl(decoratorOnClassAccessor8.ts, 17, 9), Decl(decoratorOnClassAccessor8.ts, 18, 28)) +>value : Symbol(value, Decl(decoratorOnClassAccessor8.ts, 18, 10)) + + @dec get x() { return 0; } +>dec : Symbol(dec, Decl(decoratorOnClassAccessor8.ts, 0, 0)) +>x : Symbol(D.x, Decl(decoratorOnClassAccessor8.ts, 17, 9), Decl(decoratorOnClassAccessor8.ts, 18, 28)) +} + +class E { +>E : Symbol(E, Decl(decoratorOnClassAccessor8.ts, 20, 1)) + + @dec get x() { return 0; } +>dec : Symbol(dec, Decl(decoratorOnClassAccessor8.ts, 0, 0)) +>x : Symbol(E.x, Decl(decoratorOnClassAccessor8.ts, 22, 9)) +} + +class F { +>F : Symbol(F, Decl(decoratorOnClassAccessor8.ts, 24, 1)) + + @dec set x(value: number) { } +>dec : Symbol(dec, Decl(decoratorOnClassAccessor8.ts, 0, 0)) +>x : Symbol(F.x, Decl(decoratorOnClassAccessor8.ts, 26, 9)) +>value : Symbol(value, Decl(decoratorOnClassAccessor8.ts, 27, 15)) +} diff --git a/tests/baselines/reference/decoratorOnClassAccessor8(target=es5).types b/tests/baselines/reference/decoratorOnClassAccessor8(target=es5).types new file mode 100644 index 0000000000000..c6588ff39715e --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassAccessor8(target=es5).types @@ -0,0 +1,113 @@ +//// [tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor8.ts] //// + +=== decoratorOnClassAccessor8.ts === +declare function dec(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor; +>dec : (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor +> : ^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>target : any +>propertyKey : string +> : ^^^^^^ +>descriptor : TypedPropertyDescriptor +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^ + +class A { +>A : A +> : ^ + + @dec get x() { return 0; } +>dec : (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor +> : ^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>x : number +> : ^^^^^^ +>0 : 0 +> : ^ + + set x(value: number) { } +>x : number +> : ^^^^^^ +>value : number +> : ^^^^^^ +} + +class B { +>B : B +> : ^ + + get x() { return 0; } +>x : number +> : ^^^^^^ +>0 : 0 +> : ^ + + @dec set x(value: number) { } +>dec : (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor +> : ^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>x : number +> : ^^^^^^ +>value : number +> : ^^^^^^ +} + +class C { +>C : C +> : ^ + + @dec set x(value: number) { } +>dec : (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor +> : ^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>x : number +> : ^^^^^^ +>value : number +> : ^^^^^^ + + get x() { return 0; } +>x : number +> : ^^^^^^ +>0 : 0 +> : ^ +} + +class D { +>D : D +> : ^ + + set x(value: number) { } +>x : number +> : ^^^^^^ +>value : number +> : ^^^^^^ + + @dec get x() { return 0; } +>dec : (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor +> : ^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>x : number +> : ^^^^^^ +>0 : 0 +> : ^ +} + +class E { +>E : E +> : ^ + + @dec get x() { return 0; } +>dec : (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor +> : ^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>x : number +> : ^^^^^^ +>0 : 0 +> : ^ +} + +class F { +>F : F +> : ^ + + @dec set x(value: number) { } +>dec : (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor +> : ^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>x : number +> : ^^^^^^ +>value : number +> : ^^^^^^ +} diff --git a/tests/baselines/reference/decoratorOnClassConstructor1.errors.txt b/tests/baselines/reference/decoratorOnClassConstructor1(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/decoratorOnClassConstructor1.errors.txt rename to tests/baselines/reference/decoratorOnClassConstructor1(target=es2015).errors.txt diff --git a/tests/baselines/reference/decoratorOnClassConstructor1(target=es2015).js b/tests/baselines/reference/decoratorOnClassConstructor1(target=es2015).js new file mode 100644 index 0000000000000..128c336ecbc3d --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassConstructor1(target=es2015).js @@ -0,0 +1,13 @@ +//// [tests/cases/conformance/decorators/class/constructor/decoratorOnClassConstructor1.ts] //// + +//// [decoratorOnClassConstructor1.ts] +declare function dec(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor; + +class C { + @dec constructor() {} +} + +//// [decoratorOnClassConstructor1.js] +class C { + constructor() { } +} diff --git a/tests/baselines/reference/decoratorOnClassConstructor1.symbols b/tests/baselines/reference/decoratorOnClassConstructor1(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/decoratorOnClassConstructor1.symbols rename to tests/baselines/reference/decoratorOnClassConstructor1(target=es2015).symbols diff --git a/tests/baselines/reference/decoratorOnClassConstructor1.types b/tests/baselines/reference/decoratorOnClassConstructor1(target=es2015).types similarity index 100% rename from tests/baselines/reference/decoratorOnClassConstructor1.types rename to tests/baselines/reference/decoratorOnClassConstructor1(target=es2015).types diff --git a/tests/baselines/reference/decoratorOnClassConstructor1(target=es5).errors.txt b/tests/baselines/reference/decoratorOnClassConstructor1(target=es5).errors.txt new file mode 100644 index 0000000000000..08feee6fe0a19 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassConstructor1(target=es5).errors.txt @@ -0,0 +1,11 @@ +decoratorOnClassConstructor1.ts(4,5): error TS1206: Decorators are not valid here. + + +==== decoratorOnClassConstructor1.ts (1 errors) ==== + declare function dec(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor; + + class C { + @dec constructor() {} + ~ +!!! error TS1206: Decorators are not valid here. + } \ No newline at end of file diff --git a/tests/baselines/reference/decoratorOnClassConstructor1.js b/tests/baselines/reference/decoratorOnClassConstructor1(target=es5).js similarity index 100% rename from tests/baselines/reference/decoratorOnClassConstructor1.js rename to tests/baselines/reference/decoratorOnClassConstructor1(target=es5).js diff --git a/tests/baselines/reference/decoratorOnClassConstructor1(target=es5).symbols b/tests/baselines/reference/decoratorOnClassConstructor1(target=es5).symbols new file mode 100644 index 0000000000000..15fd34bff2357 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassConstructor1(target=es5).symbols @@ -0,0 +1,20 @@ +//// [tests/cases/conformance/decorators/class/constructor/decoratorOnClassConstructor1.ts] //// + +=== decoratorOnClassConstructor1.ts === +declare function dec(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor; +>dec : Symbol(dec, Decl(decoratorOnClassConstructor1.ts, 0, 0)) +>T : Symbol(T, Decl(decoratorOnClassConstructor1.ts, 0, 21)) +>target : Symbol(target, Decl(decoratorOnClassConstructor1.ts, 0, 24)) +>propertyKey : Symbol(propertyKey, Decl(decoratorOnClassConstructor1.ts, 0, 36)) +>descriptor : Symbol(descriptor, Decl(decoratorOnClassConstructor1.ts, 0, 57)) +>TypedPropertyDescriptor : Symbol(TypedPropertyDescriptor, Decl(lib.es5.d.ts, --, --)) +>T : Symbol(T, Decl(decoratorOnClassConstructor1.ts, 0, 21)) +>TypedPropertyDescriptor : Symbol(TypedPropertyDescriptor, Decl(lib.es5.d.ts, --, --)) +>T : Symbol(T, Decl(decoratorOnClassConstructor1.ts, 0, 21)) + +class C { +>C : Symbol(C, Decl(decoratorOnClassConstructor1.ts, 0, 126)) + + @dec constructor() {} +>dec : Symbol(dec, Decl(decoratorOnClassConstructor1.ts, 0, 0)) +} diff --git a/tests/baselines/reference/decoratorOnClassConstructor1(target=es5).types b/tests/baselines/reference/decoratorOnClassConstructor1(target=es5).types new file mode 100644 index 0000000000000..5b1df948c5609 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassConstructor1(target=es5).types @@ -0,0 +1,21 @@ +//// [tests/cases/conformance/decorators/class/constructor/decoratorOnClassConstructor1.ts] //// + +=== decoratorOnClassConstructor1.ts === +declare function dec(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor; +>dec : (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor +> : ^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>target : any +> : ^^^ +>propertyKey : string +> : ^^^^^^ +>descriptor : TypedPropertyDescriptor +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^ + +class C { +>C : C +> : ^ + + @dec constructor() {} +>dec : (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor +> : ^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +} diff --git a/tests/baselines/reference/decoratorOnClassConstructor2.errors.txt b/tests/baselines/reference/decoratorOnClassConstructor2(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/decoratorOnClassConstructor2.errors.txt rename to tests/baselines/reference/decoratorOnClassConstructor2(target=es2015).errors.txt diff --git a/tests/baselines/reference/decoratorOnClassConstructor2(target=es2015).js b/tests/baselines/reference/decoratorOnClassConstructor2(target=es2015).js new file mode 100644 index 0000000000000..e147604ad77a7 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassConstructor2(target=es2015).js @@ -0,0 +1,48 @@ +//// [tests/cases/conformance/decorators/class/constructor/decoratorOnClassConstructor2.ts] //// + +//// [0.ts] +export class base { } +export function foo(target: Object, propertyKey: string | symbol, parameterIndex: number) { } + +//// [2.ts] +import {base} from "./0.ts" +import {foo} from "./0.ts" +export class C extends base{ + constructor(@foo prop: any) { + super(); + } +} + +//// [0.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.base = void 0; +exports.foo = foo; +class base { +} +exports.base = base; +function foo(target, propertyKey, parameterIndex) { } +//// [2.js] +"use strict"; +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __param = (this && this.__param) || function (paramIndex, decorator) { + return function (target, key) { decorator(target, key, paramIndex); } +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.C = void 0; +const _0_ts_1 = require("./0.ts"); +const _0_ts_2 = require("./0.ts"); +let C = class C extends _0_ts_1.base { + constructor(prop) { + super(); + } +}; +exports.C = C; +exports.C = C = __decorate([ + __param(0, _0_ts_2.foo) +], C); diff --git a/tests/baselines/reference/decoratorOnClassConstructor2.symbols b/tests/baselines/reference/decoratorOnClassConstructor2(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/decoratorOnClassConstructor2.symbols rename to tests/baselines/reference/decoratorOnClassConstructor2(target=es2015).symbols diff --git a/tests/baselines/reference/decoratorOnClassConstructor2.types b/tests/baselines/reference/decoratorOnClassConstructor2(target=es2015).types similarity index 100% rename from tests/baselines/reference/decoratorOnClassConstructor2.types rename to tests/baselines/reference/decoratorOnClassConstructor2(target=es2015).types diff --git a/tests/baselines/reference/decoratorOnClassConstructor2(target=es5).errors.txt b/tests/baselines/reference/decoratorOnClassConstructor2(target=es5).errors.txt new file mode 100644 index 0000000000000..29b7d220837cb --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassConstructor2(target=es5).errors.txt @@ -0,0 +1,20 @@ +2.ts(1,20): error TS5097: An import path can only end with a '.ts' extension when 'allowImportingTsExtensions' is enabled. +2.ts(2,19): error TS5097: An import path can only end with a '.ts' extension when 'allowImportingTsExtensions' is enabled. + + +==== 0.ts (0 errors) ==== + export class base { } + export function foo(target: Object, propertyKey: string | symbol, parameterIndex: number) { } + +==== 2.ts (2 errors) ==== + import {base} from "./0.ts" + ~~~~~~~~ +!!! error TS5097: An import path can only end with a '.ts' extension when 'allowImportingTsExtensions' is enabled. + import {foo} from "./0.ts" + ~~~~~~~~ +!!! error TS5097: An import path can only end with a '.ts' extension when 'allowImportingTsExtensions' is enabled. + export class C extends base{ + constructor(@foo prop: any) { + super(); + } + } \ No newline at end of file diff --git a/tests/baselines/reference/decoratorOnClassConstructor2.js b/tests/baselines/reference/decoratorOnClassConstructor2(target=es5).js similarity index 100% rename from tests/baselines/reference/decoratorOnClassConstructor2.js rename to tests/baselines/reference/decoratorOnClassConstructor2(target=es5).js diff --git a/tests/baselines/reference/decoratorOnClassConstructor2(target=es5).symbols b/tests/baselines/reference/decoratorOnClassConstructor2(target=es5).symbols new file mode 100644 index 0000000000000..23477af72d1e3 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassConstructor2(target=es5).symbols @@ -0,0 +1,32 @@ +//// [tests/cases/conformance/decorators/class/constructor/decoratorOnClassConstructor2.ts] //// + +=== 0.ts === +export class base { } +>base : Symbol(base, Decl(0.ts, 0, 0)) + +export function foo(target: Object, propertyKey: string | symbol, parameterIndex: number) { } +>foo : Symbol(foo, Decl(0.ts, 0, 21)) +>target : Symbol(target, Decl(0.ts, 1, 20)) +>Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>propertyKey : Symbol(propertyKey, Decl(0.ts, 1, 35)) +>parameterIndex : Symbol(parameterIndex, Decl(0.ts, 1, 65)) + +=== 2.ts === +import {base} from "./0.ts" +>base : Symbol(base, Decl(2.ts, 0, 8)) + +import {foo} from "./0.ts" +>foo : Symbol(foo, Decl(2.ts, 1, 8)) + +export class C extends base{ +>C : Symbol(C, Decl(2.ts, 1, 26)) +>base : Symbol(base, Decl(2.ts, 0, 8)) + + constructor(@foo prop: any) { +>foo : Symbol(foo, Decl(2.ts, 1, 8)) +>prop : Symbol(prop, Decl(2.ts, 3, 16)) + + super(); +>super : Symbol(base, Decl(0.ts, 0, 0)) + } +} diff --git a/tests/baselines/reference/decoratorOnClassConstructor2(target=es5).types b/tests/baselines/reference/decoratorOnClassConstructor2(target=es5).types new file mode 100644 index 0000000000000..77b5df11d8e28 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassConstructor2(target=es5).types @@ -0,0 +1,45 @@ +//// [tests/cases/conformance/decorators/class/constructor/decoratorOnClassConstructor2.ts] //// + +=== 0.ts === +export class base { } +>base : base +> : ^^^^ + +export function foo(target: Object, propertyKey: string | symbol, parameterIndex: number) { } +>foo : (target: Object, propertyKey: string | symbol, parameterIndex: number) => void +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^^^^^ +>target : Object +> : ^^^^^^ +>propertyKey : string | symbol +> : ^^^^^^^^^^^^^^^ +>parameterIndex : number +> : ^^^^^^ + +=== 2.ts === +import {base} from "./0.ts" +>base : typeof base +> : ^^^^^^^^^^^ + +import {foo} from "./0.ts" +>foo : (target: Object, propertyKey: string | symbol, parameterIndex: number) => void +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^^^^^ + +export class C extends base{ +>C : C +> : ^ +>base : base +> : ^^^^ + + constructor(@foo prop: any) { +>foo : (target: Object, propertyKey: string | symbol, parameterIndex: number) => void +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^^^^^ +>prop : any +> : ^^^ + + super(); +>super() : void +> : ^^^^ +>super : typeof base +> : ^^^^^^^^^^^ + } +} diff --git a/tests/baselines/reference/decoratorOnClassConstructor3(target=es2015).js b/tests/baselines/reference/decoratorOnClassConstructor3(target=es2015).js new file mode 100644 index 0000000000000..4007ee3f9ba7b --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassConstructor3(target=es2015).js @@ -0,0 +1,51 @@ +//// [tests/cases/conformance/decorators/class/constructor/decoratorOnClassConstructor3.ts] //// + +//// [0.ts] +export class base { } +export function foo(target: Object, propertyKey: string | symbol, parameterIndex: number) { } + +//// [2.ts] +import {base} from "./0" +import {foo} from "./0" + +/* Comment on the Class Declaration */ +export class C extends base{ + constructor(@foo prop: any) { + super(); + } +} + +//// [0.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.base = void 0; +exports.foo = foo; +class base { +} +exports.base = base; +function foo(target, propertyKey, parameterIndex) { } +//// [2.js] +"use strict"; +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __param = (this && this.__param) || function (paramIndex, decorator) { + return function (target, key) { decorator(target, key, paramIndex); } +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.C = void 0; +const _0_1 = require("./0"); +const _0_2 = require("./0"); +/* Comment on the Class Declaration */ +let C = class C extends _0_1.base { + constructor(prop) { + super(); + } +}; +exports.C = C; +exports.C = C = __decorate([ + __param(0, _0_2.foo) +], C); diff --git a/tests/baselines/reference/decoratorOnClassConstructor3.symbols b/tests/baselines/reference/decoratorOnClassConstructor3(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/decoratorOnClassConstructor3.symbols rename to tests/baselines/reference/decoratorOnClassConstructor3(target=es2015).symbols diff --git a/tests/baselines/reference/decoratorOnClassConstructor3.types b/tests/baselines/reference/decoratorOnClassConstructor3(target=es2015).types similarity index 100% rename from tests/baselines/reference/decoratorOnClassConstructor3.types rename to tests/baselines/reference/decoratorOnClassConstructor3(target=es2015).types diff --git a/tests/baselines/reference/decoratorOnClassConstructor3.js b/tests/baselines/reference/decoratorOnClassConstructor3(target=es5).js similarity index 100% rename from tests/baselines/reference/decoratorOnClassConstructor3.js rename to tests/baselines/reference/decoratorOnClassConstructor3(target=es5).js diff --git a/tests/baselines/reference/decoratorOnClassConstructor3(target=es5).symbols b/tests/baselines/reference/decoratorOnClassConstructor3(target=es5).symbols new file mode 100644 index 0000000000000..eca538308aeae --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassConstructor3(target=es5).symbols @@ -0,0 +1,33 @@ +//// [tests/cases/conformance/decorators/class/constructor/decoratorOnClassConstructor3.ts] //// + +=== 0.ts === +export class base { } +>base : Symbol(base, Decl(0.ts, 0, 0)) + +export function foo(target: Object, propertyKey: string | symbol, parameterIndex: number) { } +>foo : Symbol(foo, Decl(0.ts, 0, 21)) +>target : Symbol(target, Decl(0.ts, 1, 20)) +>Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>propertyKey : Symbol(propertyKey, Decl(0.ts, 1, 35)) +>parameterIndex : Symbol(parameterIndex, Decl(0.ts, 1, 65)) + +=== 2.ts === +import {base} from "./0" +>base : Symbol(base, Decl(2.ts, 0, 8)) + +import {foo} from "./0" +>foo : Symbol(foo, Decl(2.ts, 1, 8)) + +/* Comment on the Class Declaration */ +export class C extends base{ +>C : Symbol(C, Decl(2.ts, 1, 23)) +>base : Symbol(base, Decl(2.ts, 0, 8)) + + constructor(@foo prop: any) { +>foo : Symbol(foo, Decl(2.ts, 1, 8)) +>prop : Symbol(prop, Decl(2.ts, 5, 16)) + + super(); +>super : Symbol(base, Decl(0.ts, 0, 0)) + } +} diff --git a/tests/baselines/reference/decoratorOnClassConstructor3(target=es5).types b/tests/baselines/reference/decoratorOnClassConstructor3(target=es5).types new file mode 100644 index 0000000000000..6b0e4816e6298 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassConstructor3(target=es5).types @@ -0,0 +1,45 @@ +//// [tests/cases/conformance/decorators/class/constructor/decoratorOnClassConstructor3.ts] //// + +=== 0.ts === +export class base { } +>base : base +> : ^^^^ + +export function foo(target: Object, propertyKey: string | symbol, parameterIndex: number) { } +>foo : (target: Object, propertyKey: string | symbol, parameterIndex: number) => void +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^^^^^ +>target : Object +> : ^^^^^^ +>propertyKey : string | symbol +> : ^^^^^^^^^^^^^^^ +>parameterIndex : number +> : ^^^^^^ + +=== 2.ts === +import {base} from "./0" +>base : typeof base +> : ^^^^^^^^^^^ + +import {foo} from "./0" +>foo : (target: Object, propertyKey: string | symbol, parameterIndex: number) => void +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^^^^^ + +/* Comment on the Class Declaration */ +export class C extends base{ +>C : C +> : ^ +>base : base +> : ^^^^ + + constructor(@foo prop: any) { +>foo : (target: Object, propertyKey: string | symbol, parameterIndex: number) => void +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^^^^^ +>prop : any + + super(); +>super() : void +> : ^^^^ +>super : typeof base +> : ^^^^^^^^^^^ + } +} diff --git a/tests/baselines/reference/decoratorOnClassConstructor4(target=es2015).js b/tests/baselines/reference/decoratorOnClassConstructor4(target=es2015).js new file mode 100644 index 0000000000000..a47b9b0cff229 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassConstructor4(target=es2015).js @@ -0,0 +1,45 @@ +//// [tests/cases/conformance/decorators/class/constructor/decoratorOnClassConstructor4.ts] //// + +//// [decoratorOnClassConstructor4.ts] +declare var dec: any; + +@dec +class A { +} + +@dec +class B { + constructor(x: number) {} +} + +@dec +class C extends A { +} + +//// [decoratorOnClassConstructor4.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; +let A = class A { +}; +A = __decorate([ + dec +], A); +let B = class B { + constructor(x) { } +}; +B = __decorate([ + dec, + __metadata("design:paramtypes", [Number]) +], B); +let C = class C extends A { +}; +C = __decorate([ + dec +], C); diff --git a/tests/baselines/reference/decoratorOnClassConstructor4.symbols b/tests/baselines/reference/decoratorOnClassConstructor4(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/decoratorOnClassConstructor4.symbols rename to tests/baselines/reference/decoratorOnClassConstructor4(target=es2015).symbols diff --git a/tests/baselines/reference/decoratorOnClassConstructor4.types b/tests/baselines/reference/decoratorOnClassConstructor4(target=es2015).types similarity index 100% rename from tests/baselines/reference/decoratorOnClassConstructor4.types rename to tests/baselines/reference/decoratorOnClassConstructor4(target=es2015).types diff --git a/tests/baselines/reference/decoratorOnClassConstructor4.js b/tests/baselines/reference/decoratorOnClassConstructor4(target=es5).js similarity index 100% rename from tests/baselines/reference/decoratorOnClassConstructor4.js rename to tests/baselines/reference/decoratorOnClassConstructor4(target=es5).js diff --git a/tests/baselines/reference/decoratorOnClassConstructor4(target=es5).symbols b/tests/baselines/reference/decoratorOnClassConstructor4(target=es5).symbols new file mode 100644 index 0000000000000..2e723c6ac2678 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassConstructor4(target=es5).symbols @@ -0,0 +1,30 @@ +//// [tests/cases/conformance/decorators/class/constructor/decoratorOnClassConstructor4.ts] //// + +=== decoratorOnClassConstructor4.ts === +declare var dec: any; +>dec : Symbol(dec, Decl(decoratorOnClassConstructor4.ts, 0, 11)) + +@dec +>dec : Symbol(dec, Decl(decoratorOnClassConstructor4.ts, 0, 11)) + +class A { +>A : Symbol(A, Decl(decoratorOnClassConstructor4.ts, 0, 21)) +} + +@dec +>dec : Symbol(dec, Decl(decoratorOnClassConstructor4.ts, 0, 11)) + +class B { +>B : Symbol(B, Decl(decoratorOnClassConstructor4.ts, 4, 1)) + + constructor(x: number) {} +>x : Symbol(x, Decl(decoratorOnClassConstructor4.ts, 8, 16)) +} + +@dec +>dec : Symbol(dec, Decl(decoratorOnClassConstructor4.ts, 0, 11)) + +class C extends A { +>C : Symbol(C, Decl(decoratorOnClassConstructor4.ts, 9, 1)) +>A : Symbol(A, Decl(decoratorOnClassConstructor4.ts, 0, 21)) +} diff --git a/tests/baselines/reference/decoratorOnClassConstructor4(target=es5).types b/tests/baselines/reference/decoratorOnClassConstructor4(target=es5).types new file mode 100644 index 0000000000000..e74d0f38a34d8 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassConstructor4(target=es5).types @@ -0,0 +1,35 @@ +//// [tests/cases/conformance/decorators/class/constructor/decoratorOnClassConstructor4.ts] //// + +=== decoratorOnClassConstructor4.ts === +declare var dec: any; +>dec : any + +@dec +>dec : any + +class A { +>A : A +> : ^ +} + +@dec +>dec : any + +class B { +>B : B +> : ^ + + constructor(x: number) {} +>x : number +> : ^^^^^^ +} + +@dec +>dec : any + +class C extends A { +>C : C +> : ^ +>A : A +> : ^ +} diff --git a/tests/baselines/reference/decoratorOnClassConstructorParameter1(target=es2015).js b/tests/baselines/reference/decoratorOnClassConstructorParameter1(target=es2015).js new file mode 100644 index 0000000000000..8da70f859a499 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassConstructorParameter1(target=es2015).js @@ -0,0 +1,25 @@ +//// [tests/cases/conformance/decorators/class/constructor/parameter/decoratorOnClassConstructorParameter1.ts] //// + +//// [decoratorOnClassConstructorParameter1.ts] +declare function dec(target: Function, propertyKey: string | symbol, parameterIndex: number): void; + +class C { + constructor(@dec p: number) {} +} + +//// [decoratorOnClassConstructorParameter1.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __param = (this && this.__param) || function (paramIndex, decorator) { + return function (target, key) { decorator(target, key, paramIndex); } +}; +let C = class C { + constructor(p) { } +}; +C = __decorate([ + __param(0, dec) +], C); diff --git a/tests/baselines/reference/decoratorOnClassConstructorParameter1.symbols b/tests/baselines/reference/decoratorOnClassConstructorParameter1(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/decoratorOnClassConstructorParameter1.symbols rename to tests/baselines/reference/decoratorOnClassConstructorParameter1(target=es2015).symbols diff --git a/tests/baselines/reference/decoratorOnClassConstructorParameter1.types b/tests/baselines/reference/decoratorOnClassConstructorParameter1(target=es2015).types similarity index 100% rename from tests/baselines/reference/decoratorOnClassConstructorParameter1.types rename to tests/baselines/reference/decoratorOnClassConstructorParameter1(target=es2015).types diff --git a/tests/baselines/reference/decoratorOnClassConstructorParameter1.js b/tests/baselines/reference/decoratorOnClassConstructorParameter1(target=es5).js similarity index 100% rename from tests/baselines/reference/decoratorOnClassConstructorParameter1.js rename to tests/baselines/reference/decoratorOnClassConstructorParameter1(target=es5).js diff --git a/tests/baselines/reference/decoratorOnClassConstructorParameter1(target=es5).symbols b/tests/baselines/reference/decoratorOnClassConstructorParameter1(target=es5).symbols new file mode 100644 index 0000000000000..3b9f17a90ebca --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassConstructorParameter1(target=es5).symbols @@ -0,0 +1,17 @@ +//// [tests/cases/conformance/decorators/class/constructor/parameter/decoratorOnClassConstructorParameter1.ts] //// + +=== decoratorOnClassConstructorParameter1.ts === +declare function dec(target: Function, propertyKey: string | symbol, parameterIndex: number): void; +>dec : Symbol(dec, Decl(decoratorOnClassConstructorParameter1.ts, 0, 0)) +>target : Symbol(target, Decl(decoratorOnClassConstructorParameter1.ts, 0, 21)) +>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>propertyKey : Symbol(propertyKey, Decl(decoratorOnClassConstructorParameter1.ts, 0, 38)) +>parameterIndex : Symbol(parameterIndex, Decl(decoratorOnClassConstructorParameter1.ts, 0, 68)) + +class C { +>C : Symbol(C, Decl(decoratorOnClassConstructorParameter1.ts, 0, 99)) + + constructor(@dec p: number) {} +>dec : Symbol(dec, Decl(decoratorOnClassConstructorParameter1.ts, 0, 0)) +>p : Symbol(p, Decl(decoratorOnClassConstructorParameter1.ts, 3, 16)) +} diff --git a/tests/baselines/reference/decoratorOnClassConstructorParameter1(target=es5).types b/tests/baselines/reference/decoratorOnClassConstructorParameter1(target=es5).types new file mode 100644 index 0000000000000..e257ceacbd290 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassConstructorParameter1(target=es5).types @@ -0,0 +1,23 @@ +//// [tests/cases/conformance/decorators/class/constructor/parameter/decoratorOnClassConstructorParameter1.ts] //// + +=== decoratorOnClassConstructorParameter1.ts === +declare function dec(target: Function, propertyKey: string | symbol, parameterIndex: number): void; +>dec : (target: Function, propertyKey: string | symbol, parameterIndex: number) => void +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>target : Function +> : ^^^^^^^^ +>propertyKey : string | symbol +> : ^^^^^^^^^^^^^^^ +>parameterIndex : number +> : ^^^^^^ + +class C { +>C : C +> : ^ + + constructor(@dec p: number) {} +>dec : (target: Function, propertyKey: string | symbol, parameterIndex: number) => void +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>p : number +> : ^^^^^^ +} diff --git a/tests/baselines/reference/decoratorOnClassConstructorParameter4.errors.txt b/tests/baselines/reference/decoratorOnClassConstructorParameter4(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/decoratorOnClassConstructorParameter4.errors.txt rename to tests/baselines/reference/decoratorOnClassConstructorParameter4(target=es2015).errors.txt diff --git a/tests/baselines/reference/decoratorOnClassConstructorParameter4(target=es2015).js b/tests/baselines/reference/decoratorOnClassConstructorParameter4(target=es2015).js new file mode 100644 index 0000000000000..d91c86a334c40 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassConstructorParameter4(target=es2015).js @@ -0,0 +1,25 @@ +//// [tests/cases/conformance/decorators/class/constructor/parameter/decoratorOnClassConstructorParameter4.ts] //// + +//// [decoratorOnClassConstructorParameter4.ts] +declare function dec(target: Function, propertyKey: string | symbol, parameterIndex: number): void; + +class C { + constructor(public @dec p: number) {} +} + +//// [decoratorOnClassConstructorParameter4.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __param = (this && this.__param) || function (paramIndex, decorator) { + return function (target, key) { decorator(target, key, paramIndex); } +}; +let C = class C { + constructor(public, p) { } +}; +C = __decorate([ + __param(1, dec) +], C); diff --git a/tests/baselines/reference/decoratorOnClassConstructorParameter4.symbols b/tests/baselines/reference/decoratorOnClassConstructorParameter4(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/decoratorOnClassConstructorParameter4.symbols rename to tests/baselines/reference/decoratorOnClassConstructorParameter4(target=es2015).symbols diff --git a/tests/baselines/reference/decoratorOnClassConstructorParameter4.types b/tests/baselines/reference/decoratorOnClassConstructorParameter4(target=es2015).types similarity index 100% rename from tests/baselines/reference/decoratorOnClassConstructorParameter4.types rename to tests/baselines/reference/decoratorOnClassConstructorParameter4(target=es2015).types diff --git a/tests/baselines/reference/decoratorOnClassConstructorParameter4(target=es5).errors.txt b/tests/baselines/reference/decoratorOnClassConstructorParameter4(target=es5).errors.txt new file mode 100644 index 0000000000000..4647d3f842d98 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassConstructorParameter4(target=es5).errors.txt @@ -0,0 +1,11 @@ +decoratorOnClassConstructorParameter4.ts(4,24): error TS1005: ',' expected. + + +==== decoratorOnClassConstructorParameter4.ts (1 errors) ==== + declare function dec(target: Function, propertyKey: string | symbol, parameterIndex: number): void; + + class C { + constructor(public @dec p: number) {} + ~ +!!! error TS1005: ',' expected. + } \ No newline at end of file diff --git a/tests/baselines/reference/decoratorOnClassConstructorParameter4.js b/tests/baselines/reference/decoratorOnClassConstructorParameter4(target=es5).js similarity index 100% rename from tests/baselines/reference/decoratorOnClassConstructorParameter4.js rename to tests/baselines/reference/decoratorOnClassConstructorParameter4(target=es5).js diff --git a/tests/baselines/reference/decoratorOnClassConstructorParameter4(target=es5).symbols b/tests/baselines/reference/decoratorOnClassConstructorParameter4(target=es5).symbols new file mode 100644 index 0000000000000..8abd80e2e19ea --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassConstructorParameter4(target=es5).symbols @@ -0,0 +1,18 @@ +//// [tests/cases/conformance/decorators/class/constructor/parameter/decoratorOnClassConstructorParameter4.ts] //// + +=== decoratorOnClassConstructorParameter4.ts === +declare function dec(target: Function, propertyKey: string | symbol, parameterIndex: number): void; +>dec : Symbol(dec, Decl(decoratorOnClassConstructorParameter4.ts, 0, 0)) +>target : Symbol(target, Decl(decoratorOnClassConstructorParameter4.ts, 0, 21)) +>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>propertyKey : Symbol(propertyKey, Decl(decoratorOnClassConstructorParameter4.ts, 0, 38)) +>parameterIndex : Symbol(parameterIndex, Decl(decoratorOnClassConstructorParameter4.ts, 0, 68)) + +class C { +>C : Symbol(C, Decl(decoratorOnClassConstructorParameter4.ts, 0, 99)) + + constructor(public @dec p: number) {} +>public : Symbol(public, Decl(decoratorOnClassConstructorParameter4.ts, 3, 16)) +>dec : Symbol(dec, Decl(decoratorOnClassConstructorParameter4.ts, 0, 0)) +>p : Symbol(p, Decl(decoratorOnClassConstructorParameter4.ts, 3, 22)) +} diff --git a/tests/baselines/reference/decoratorOnClassConstructorParameter4(target=es5).types b/tests/baselines/reference/decoratorOnClassConstructorParameter4(target=es5).types new file mode 100644 index 0000000000000..44e1fb6734215 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassConstructorParameter4(target=es5).types @@ -0,0 +1,25 @@ +//// [tests/cases/conformance/decorators/class/constructor/parameter/decoratorOnClassConstructorParameter4.ts] //// + +=== decoratorOnClassConstructorParameter4.ts === +declare function dec(target: Function, propertyKey: string | symbol, parameterIndex: number): void; +>dec : (target: Function, propertyKey: string | symbol, parameterIndex: number) => void +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>target : Function +> : ^^^^^^^^ +>propertyKey : string | symbol +> : ^^^^^^^^^^^^^^^ +>parameterIndex : number +> : ^^^^^^ + +class C { +>C : C +> : ^ + + constructor(public @dec p: number) {} +>public : any +> : ^^^ +>dec : (target: Function, propertyKey: string | symbol, parameterIndex: number) => void +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>p : number +> : ^^^^^^ +} diff --git a/tests/baselines/reference/decoratorOnClassMethod1(target=es2015).js b/tests/baselines/reference/decoratorOnClassMethod1(target=es2015).js new file mode 100644 index 0000000000000..7d095980e4762 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassMethod1(target=es2015).js @@ -0,0 +1,22 @@ +//// [tests/cases/conformance/decorators/class/method/decoratorOnClassMethod1.ts] //// + +//// [decoratorOnClassMethod1.ts] +declare function dec(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor; + +class C { + @dec method() {} +} + +//// [decoratorOnClassMethod1.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +class C { + method() { } +} +__decorate([ + dec +], C.prototype, "method", null); diff --git a/tests/baselines/reference/decoratorOnClassMethod1.symbols b/tests/baselines/reference/decoratorOnClassMethod1(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/decoratorOnClassMethod1.symbols rename to tests/baselines/reference/decoratorOnClassMethod1(target=es2015).symbols diff --git a/tests/baselines/reference/decoratorOnClassMethod1.types b/tests/baselines/reference/decoratorOnClassMethod1(target=es2015).types similarity index 100% rename from tests/baselines/reference/decoratorOnClassMethod1.types rename to tests/baselines/reference/decoratorOnClassMethod1(target=es2015).types diff --git a/tests/baselines/reference/decoratorOnClassMethod1.js b/tests/baselines/reference/decoratorOnClassMethod1(target=es5).js similarity index 100% rename from tests/baselines/reference/decoratorOnClassMethod1.js rename to tests/baselines/reference/decoratorOnClassMethod1(target=es5).js diff --git a/tests/baselines/reference/decoratorOnClassMethod1(target=es5).symbols b/tests/baselines/reference/decoratorOnClassMethod1(target=es5).symbols new file mode 100644 index 0000000000000..d89a2e5292724 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassMethod1(target=es5).symbols @@ -0,0 +1,21 @@ +//// [tests/cases/conformance/decorators/class/method/decoratorOnClassMethod1.ts] //// + +=== decoratorOnClassMethod1.ts === +declare function dec(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor; +>dec : Symbol(dec, Decl(decoratorOnClassMethod1.ts, 0, 0)) +>T : Symbol(T, Decl(decoratorOnClassMethod1.ts, 0, 21)) +>target : Symbol(target, Decl(decoratorOnClassMethod1.ts, 0, 24)) +>propertyKey : Symbol(propertyKey, Decl(decoratorOnClassMethod1.ts, 0, 36)) +>descriptor : Symbol(descriptor, Decl(decoratorOnClassMethod1.ts, 0, 57)) +>TypedPropertyDescriptor : Symbol(TypedPropertyDescriptor, Decl(lib.es5.d.ts, --, --)) +>T : Symbol(T, Decl(decoratorOnClassMethod1.ts, 0, 21)) +>TypedPropertyDescriptor : Symbol(TypedPropertyDescriptor, Decl(lib.es5.d.ts, --, --)) +>T : Symbol(T, Decl(decoratorOnClassMethod1.ts, 0, 21)) + +class C { +>C : Symbol(C, Decl(decoratorOnClassMethod1.ts, 0, 126)) + + @dec method() {} +>dec : Symbol(dec, Decl(decoratorOnClassMethod1.ts, 0, 0)) +>method : Symbol(C.method, Decl(decoratorOnClassMethod1.ts, 2, 9)) +} diff --git a/tests/baselines/reference/decoratorOnClassMethod1(target=es5).types b/tests/baselines/reference/decoratorOnClassMethod1(target=es5).types new file mode 100644 index 0000000000000..07d1adb73abf7 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassMethod1(target=es5).types @@ -0,0 +1,22 @@ +//// [tests/cases/conformance/decorators/class/method/decoratorOnClassMethod1.ts] //// + +=== decoratorOnClassMethod1.ts === +declare function dec(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor; +>dec : (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor +> : ^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>target : any +>propertyKey : string +> : ^^^^^^ +>descriptor : TypedPropertyDescriptor +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^ + +class C { +>C : C +> : ^ + + @dec method() {} +>dec : (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor +> : ^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>method : () => void +> : ^^^^^^^^^^ +} diff --git a/tests/baselines/reference/decoratorOnClassMethod10.errors.txt b/tests/baselines/reference/decoratorOnClassMethod10(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/decoratorOnClassMethod10.errors.txt rename to tests/baselines/reference/decoratorOnClassMethod10(target=es2015).errors.txt diff --git a/tests/baselines/reference/decoratorOnClassMethod10(target=es2015).js b/tests/baselines/reference/decoratorOnClassMethod10(target=es2015).js new file mode 100644 index 0000000000000..7cbcb02aef69e --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassMethod10(target=es2015).js @@ -0,0 +1,22 @@ +//// [tests/cases/conformance/decorators/class/method/decoratorOnClassMethod10.ts] //// + +//// [decoratorOnClassMethod10.ts] +declare function dec(target: Function, paramIndex: number): void; + +class C { + @dec method() {} +} + +//// [decoratorOnClassMethod10.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +class C { + method() { } +} +__decorate([ + dec +], C.prototype, "method", null); diff --git a/tests/baselines/reference/decoratorOnClassMethod10.symbols b/tests/baselines/reference/decoratorOnClassMethod10(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/decoratorOnClassMethod10.symbols rename to tests/baselines/reference/decoratorOnClassMethod10(target=es2015).symbols diff --git a/tests/baselines/reference/decoratorOnClassMethod10.types b/tests/baselines/reference/decoratorOnClassMethod10(target=es2015).types similarity index 100% rename from tests/baselines/reference/decoratorOnClassMethod10.types rename to tests/baselines/reference/decoratorOnClassMethod10(target=es2015).types diff --git a/tests/baselines/reference/decoratorOnClassMethod10(target=es5).errors.txt b/tests/baselines/reference/decoratorOnClassMethod10(target=es5).errors.txt new file mode 100644 index 0000000000000..2d46e3785d335 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassMethod10(target=es5).errors.txt @@ -0,0 +1,15 @@ +decoratorOnClassMethod10.ts(4,6): error TS1241: Unable to resolve signature of method decorator when called as an expression. + Argument of type 'C' is not assignable to parameter of type 'Function'. + Type 'C' is missing the following properties from type 'Function': apply, call, bind, prototype, and 5 more. + + +==== decoratorOnClassMethod10.ts (1 errors) ==== + declare function dec(target: Function, paramIndex: number): void; + + class C { + @dec method() {} + ~~~ +!!! error TS1241: Unable to resolve signature of method decorator when called as an expression. +!!! error TS1241: Argument of type 'C' is not assignable to parameter of type 'Function'. +!!! error TS1241: Type 'C' is missing the following properties from type 'Function': apply, call, bind, prototype, and 5 more. + } \ No newline at end of file diff --git a/tests/baselines/reference/decoratorOnClassMethod10.js b/tests/baselines/reference/decoratorOnClassMethod10(target=es5).js similarity index 100% rename from tests/baselines/reference/decoratorOnClassMethod10.js rename to tests/baselines/reference/decoratorOnClassMethod10(target=es5).js diff --git a/tests/baselines/reference/decoratorOnClassMethod10(target=es5).symbols b/tests/baselines/reference/decoratorOnClassMethod10(target=es5).symbols new file mode 100644 index 0000000000000..3853613afa56e --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassMethod10(target=es5).symbols @@ -0,0 +1,16 @@ +//// [tests/cases/conformance/decorators/class/method/decoratorOnClassMethod10.ts] //// + +=== decoratorOnClassMethod10.ts === +declare function dec(target: Function, paramIndex: number): void; +>dec : Symbol(dec, Decl(decoratorOnClassMethod10.ts, 0, 0)) +>target : Symbol(target, Decl(decoratorOnClassMethod10.ts, 0, 21)) +>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>paramIndex : Symbol(paramIndex, Decl(decoratorOnClassMethod10.ts, 0, 38)) + +class C { +>C : Symbol(C, Decl(decoratorOnClassMethod10.ts, 0, 65)) + + @dec method() {} +>dec : Symbol(dec, Decl(decoratorOnClassMethod10.ts, 0, 0)) +>method : Symbol(C.method, Decl(decoratorOnClassMethod10.ts, 2, 9)) +} diff --git a/tests/baselines/reference/decoratorOnClassMethod10(target=es5).types b/tests/baselines/reference/decoratorOnClassMethod10(target=es5).types new file mode 100644 index 0000000000000..3bba717f8d292 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassMethod10(target=es5).types @@ -0,0 +1,21 @@ +//// [tests/cases/conformance/decorators/class/method/decoratorOnClassMethod10.ts] //// + +=== decoratorOnClassMethod10.ts === +declare function dec(target: Function, paramIndex: number): void; +>dec : (target: Function, paramIndex: number) => void +> : ^ ^^ ^^ ^^ ^^^^^ +>target : Function +> : ^^^^^^^^ +>paramIndex : number +> : ^^^^^^ + +class C { +>C : C +> : ^ + + @dec method() {} +>dec : (target: Function, paramIndex: number) => void +> : ^ ^^ ^^ ^^ ^^^^^ +>method : () => void +> : ^^^^^^^^^^ +} diff --git a/tests/baselines/reference/decoratorOnClassMethod11.errors.txt b/tests/baselines/reference/decoratorOnClassMethod11(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/decoratorOnClassMethod11.errors.txt rename to tests/baselines/reference/decoratorOnClassMethod11(target=es2015).errors.txt diff --git a/tests/baselines/reference/decoratorOnClassMethod11(target=es2015).js b/tests/baselines/reference/decoratorOnClassMethod11(target=es2015).js new file mode 100644 index 0000000000000..ed3558b571f98 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassMethod11(target=es2015).js @@ -0,0 +1,29 @@ +//// [tests/cases/conformance/decorators/class/method/decoratorOnClassMethod11.ts] //// + +//// [decoratorOnClassMethod11.ts] +namespace M { + class C { + decorator(target: Object, key: string): void { } + + @(this.decorator) + method() { } + } +} + +//// [decoratorOnClassMethod11.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var M; +(function (M) { + class C { + decorator(target, key) { } + method() { } + } + __decorate([ + (this.decorator) + ], C.prototype, "method", null); +})(M || (M = {})); diff --git a/tests/baselines/reference/decoratorOnClassMethod11.symbols b/tests/baselines/reference/decoratorOnClassMethod11(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/decoratorOnClassMethod11.symbols rename to tests/baselines/reference/decoratorOnClassMethod11(target=es2015).symbols diff --git a/tests/baselines/reference/decoratorOnClassMethod11.types b/tests/baselines/reference/decoratorOnClassMethod11(target=es2015).types similarity index 100% rename from tests/baselines/reference/decoratorOnClassMethod11.types rename to tests/baselines/reference/decoratorOnClassMethod11(target=es2015).types diff --git a/tests/baselines/reference/decoratorOnClassMethod11(target=es5).errors.txt b/tests/baselines/reference/decoratorOnClassMethod11(target=es5).errors.txt new file mode 100644 index 0000000000000..dd19010f0ca5d --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassMethod11(target=es5).errors.txt @@ -0,0 +1,14 @@ +decoratorOnClassMethod11.ts(5,11): error TS2331: 'this' cannot be referenced in a module or namespace body. + + +==== decoratorOnClassMethod11.ts (1 errors) ==== + namespace M { + class C { + decorator(target: Object, key: string): void { } + + @(this.decorator) + ~~~~ +!!! error TS2331: 'this' cannot be referenced in a module or namespace body. + method() { } + } + } \ No newline at end of file diff --git a/tests/baselines/reference/decoratorOnClassMethod11.js b/tests/baselines/reference/decoratorOnClassMethod11(target=es5).js similarity index 100% rename from tests/baselines/reference/decoratorOnClassMethod11.js rename to tests/baselines/reference/decoratorOnClassMethod11(target=es5).js diff --git a/tests/baselines/reference/decoratorOnClassMethod11(target=es5).symbols b/tests/baselines/reference/decoratorOnClassMethod11(target=es5).symbols new file mode 100644 index 0000000000000..e047c855ae7f5 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassMethod11(target=es5).symbols @@ -0,0 +1,20 @@ +//// [tests/cases/conformance/decorators/class/method/decoratorOnClassMethod11.ts] //// + +=== decoratorOnClassMethod11.ts === +namespace M { +>M : Symbol(M, Decl(decoratorOnClassMethod11.ts, 0, 0)) + + class C { +>C : Symbol(C, Decl(decoratorOnClassMethod11.ts, 0, 13)) + + decorator(target: Object, key: string): void { } +>decorator : Symbol(C.decorator, Decl(decoratorOnClassMethod11.ts, 1, 13)) +>target : Symbol(target, Decl(decoratorOnClassMethod11.ts, 2, 18)) +>Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>key : Symbol(key, Decl(decoratorOnClassMethod11.ts, 2, 33)) + + @(this.decorator) + method() { } +>method : Symbol(C.method, Decl(decoratorOnClassMethod11.ts, 2, 56)) + } +} diff --git a/tests/baselines/reference/decoratorOnClassMethod11(target=es5).types b/tests/baselines/reference/decoratorOnClassMethod11(target=es5).types new file mode 100644 index 0000000000000..01cdb62db564c --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassMethod11(target=es5).types @@ -0,0 +1,34 @@ +//// [tests/cases/conformance/decorators/class/method/decoratorOnClassMethod11.ts] //// + +=== decoratorOnClassMethod11.ts === +namespace M { +>M : typeof M +> : ^^^^^^^^ + + class C { +>C : C +> : ^ + + decorator(target: Object, key: string): void { } +>decorator : (target: Object, key: string) => void +> : ^ ^^ ^^ ^^ ^^^^^ +>target : Object +> : ^^^^^^ +>key : string +> : ^^^^^^ + + @(this.decorator) +>(this.decorator) : any +> : ^^^ +>this.decorator : any +> : ^^^ +>this : any +> : ^^^ +>decorator : any +> : ^^^ + + method() { } +>method : () => void +> : ^^^^^^^^^^ + } +} diff --git a/tests/baselines/reference/decoratorOnClassMethod12.errors.txt b/tests/baselines/reference/decoratorOnClassMethod12(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/decoratorOnClassMethod12.errors.txt rename to tests/baselines/reference/decoratorOnClassMethod12(target=es2015).errors.txt diff --git a/tests/baselines/reference/decoratorOnClassMethod12(target=es2015).js b/tests/baselines/reference/decoratorOnClassMethod12(target=es2015).js new file mode 100644 index 0000000000000..0c6d6f9e43568 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassMethod12(target=es2015).js @@ -0,0 +1,32 @@ +//// [tests/cases/conformance/decorators/class/method/decoratorOnClassMethod12.ts] //// + +//// [decoratorOnClassMethod12.ts] +namespace M { + class S { + decorator(target: Object, key: string): void { } + } + class C extends S { + @(super.decorator) + method() { } + } +} + +//// [decoratorOnClassMethod12.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var M; +(function (M) { + class S { + decorator(target, key) { } + } + class C extends S { + method() { } + } + __decorate([ + (super.decorator) + ], C.prototype, "method", null); +})(M || (M = {})); diff --git a/tests/baselines/reference/decoratorOnClassMethod12.symbols b/tests/baselines/reference/decoratorOnClassMethod12(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/decoratorOnClassMethod12.symbols rename to tests/baselines/reference/decoratorOnClassMethod12(target=es2015).symbols diff --git a/tests/baselines/reference/decoratorOnClassMethod12.types b/tests/baselines/reference/decoratorOnClassMethod12(target=es2015).types similarity index 100% rename from tests/baselines/reference/decoratorOnClassMethod12.types rename to tests/baselines/reference/decoratorOnClassMethod12(target=es2015).types diff --git a/tests/baselines/reference/decoratorOnClassMethod12(target=es5).errors.txt b/tests/baselines/reference/decoratorOnClassMethod12(target=es5).errors.txt new file mode 100644 index 0000000000000..4bb4d1c959243 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassMethod12(target=es5).errors.txt @@ -0,0 +1,15 @@ +decoratorOnClassMethod12.ts(6,11): error TS2660: 'super' can only be referenced in members of derived classes or object literal expressions. + + +==== decoratorOnClassMethod12.ts (1 errors) ==== + namespace M { + class S { + decorator(target: Object, key: string): void { } + } + class C extends S { + @(super.decorator) + ~~~~~ +!!! error TS2660: 'super' can only be referenced in members of derived classes or object literal expressions. + method() { } + } + } \ No newline at end of file diff --git a/tests/baselines/reference/decoratorOnClassMethod12.js b/tests/baselines/reference/decoratorOnClassMethod12(target=es5).js similarity index 100% rename from tests/baselines/reference/decoratorOnClassMethod12.js rename to tests/baselines/reference/decoratorOnClassMethod12(target=es5).js diff --git a/tests/baselines/reference/decoratorOnClassMethod12(target=es5).symbols b/tests/baselines/reference/decoratorOnClassMethod12(target=es5).symbols new file mode 100644 index 0000000000000..f4c5a3b45e582 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassMethod12(target=es5).symbols @@ -0,0 +1,24 @@ +//// [tests/cases/conformance/decorators/class/method/decoratorOnClassMethod12.ts] //// + +=== decoratorOnClassMethod12.ts === +namespace M { +>M : Symbol(M, Decl(decoratorOnClassMethod12.ts, 0, 0)) + + class S { +>S : Symbol(S, Decl(decoratorOnClassMethod12.ts, 0, 13)) + + decorator(target: Object, key: string): void { } +>decorator : Symbol(S.decorator, Decl(decoratorOnClassMethod12.ts, 1, 13)) +>target : Symbol(target, Decl(decoratorOnClassMethod12.ts, 2, 18)) +>Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>key : Symbol(key, Decl(decoratorOnClassMethod12.ts, 2, 33)) + } + class C extends S { +>C : Symbol(C, Decl(decoratorOnClassMethod12.ts, 3, 5)) +>S : Symbol(S, Decl(decoratorOnClassMethod12.ts, 0, 13)) + + @(super.decorator) + method() { } +>method : Symbol(C.method, Decl(decoratorOnClassMethod12.ts, 4, 23)) + } +} diff --git a/tests/baselines/reference/decoratorOnClassMethod12(target=es5).types b/tests/baselines/reference/decoratorOnClassMethod12(target=es5).types new file mode 100644 index 0000000000000..8fcb02d1ad91b --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassMethod12(target=es5).types @@ -0,0 +1,40 @@ +//// [tests/cases/conformance/decorators/class/method/decoratorOnClassMethod12.ts] //// + +=== decoratorOnClassMethod12.ts === +namespace M { +>M : typeof M +> : ^^^^^^^^ + + class S { +>S : S +> : ^ + + decorator(target: Object, key: string): void { } +>decorator : (target: Object, key: string) => void +> : ^ ^^ ^^ ^^ ^^^^^ +>target : Object +> : ^^^^^^ +>key : string +> : ^^^^^^ + } + class C extends S { +>C : C +> : ^ +>S : S +> : ^ + + @(super.decorator) +>(super.decorator) : any +> : ^^^ +>super.decorator : any +> : ^^^ +>super : any +> : ^^^ +>decorator : any +> : ^^^ + + method() { } +>method : () => void +> : ^^^^^^^^^^ + } +} diff --git a/tests/baselines/reference/decoratorOnClassMethod2(target=es2015).js b/tests/baselines/reference/decoratorOnClassMethod2(target=es2015).js new file mode 100644 index 0000000000000..b5e8f8eb93165 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassMethod2(target=es2015).js @@ -0,0 +1,22 @@ +//// [tests/cases/conformance/decorators/class/method/decoratorOnClassMethod2.ts] //// + +//// [decoratorOnClassMethod2.ts] +declare function dec(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor; + +class C { + @dec public method() {} +} + +//// [decoratorOnClassMethod2.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +class C { + method() { } +} +__decorate([ + dec +], C.prototype, "method", null); diff --git a/tests/baselines/reference/decoratorOnClassMethod2.symbols b/tests/baselines/reference/decoratorOnClassMethod2(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/decoratorOnClassMethod2.symbols rename to tests/baselines/reference/decoratorOnClassMethod2(target=es2015).symbols diff --git a/tests/baselines/reference/decoratorOnClassMethod2.types b/tests/baselines/reference/decoratorOnClassMethod2(target=es2015).types similarity index 100% rename from tests/baselines/reference/decoratorOnClassMethod2.types rename to tests/baselines/reference/decoratorOnClassMethod2(target=es2015).types diff --git a/tests/baselines/reference/decoratorOnClassMethod2.js b/tests/baselines/reference/decoratorOnClassMethod2(target=es5).js similarity index 100% rename from tests/baselines/reference/decoratorOnClassMethod2.js rename to tests/baselines/reference/decoratorOnClassMethod2(target=es5).js diff --git a/tests/baselines/reference/decoratorOnClassMethod2(target=es5).symbols b/tests/baselines/reference/decoratorOnClassMethod2(target=es5).symbols new file mode 100644 index 0000000000000..c173112bc117d --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassMethod2(target=es5).symbols @@ -0,0 +1,21 @@ +//// [tests/cases/conformance/decorators/class/method/decoratorOnClassMethod2.ts] //// + +=== decoratorOnClassMethod2.ts === +declare function dec(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor; +>dec : Symbol(dec, Decl(decoratorOnClassMethod2.ts, 0, 0)) +>T : Symbol(T, Decl(decoratorOnClassMethod2.ts, 0, 21)) +>target : Symbol(target, Decl(decoratorOnClassMethod2.ts, 0, 24)) +>propertyKey : Symbol(propertyKey, Decl(decoratorOnClassMethod2.ts, 0, 36)) +>descriptor : Symbol(descriptor, Decl(decoratorOnClassMethod2.ts, 0, 57)) +>TypedPropertyDescriptor : Symbol(TypedPropertyDescriptor, Decl(lib.es5.d.ts, --, --)) +>T : Symbol(T, Decl(decoratorOnClassMethod2.ts, 0, 21)) +>TypedPropertyDescriptor : Symbol(TypedPropertyDescriptor, Decl(lib.es5.d.ts, --, --)) +>T : Symbol(T, Decl(decoratorOnClassMethod2.ts, 0, 21)) + +class C { +>C : Symbol(C, Decl(decoratorOnClassMethod2.ts, 0, 126)) + + @dec public method() {} +>dec : Symbol(dec, Decl(decoratorOnClassMethod2.ts, 0, 0)) +>method : Symbol(C.method, Decl(decoratorOnClassMethod2.ts, 2, 9)) +} diff --git a/tests/baselines/reference/decoratorOnClassMethod2(target=es5).types b/tests/baselines/reference/decoratorOnClassMethod2(target=es5).types new file mode 100644 index 0000000000000..b72f9cb9b335e --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassMethod2(target=es5).types @@ -0,0 +1,22 @@ +//// [tests/cases/conformance/decorators/class/method/decoratorOnClassMethod2.ts] //// + +=== decoratorOnClassMethod2.ts === +declare function dec(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor; +>dec : (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor +> : ^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>target : any +>propertyKey : string +> : ^^^^^^ +>descriptor : TypedPropertyDescriptor +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^ + +class C { +>C : C +> : ^ + + @dec public method() {} +>dec : (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor +> : ^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>method : () => void +> : ^^^^^^^^^^ +} diff --git a/tests/baselines/reference/decoratorOnClassMethod3.errors.txt b/tests/baselines/reference/decoratorOnClassMethod3(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/decoratorOnClassMethod3.errors.txt rename to tests/baselines/reference/decoratorOnClassMethod3(target=es2015).errors.txt diff --git a/tests/baselines/reference/decoratorOnClassMethod3(target=es2015).js b/tests/baselines/reference/decoratorOnClassMethod3(target=es2015).js new file mode 100644 index 0000000000000..b4467f7989baf --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassMethod3(target=es2015).js @@ -0,0 +1,22 @@ +//// [tests/cases/conformance/decorators/class/method/decoratorOnClassMethod3.ts] //// + +//// [decoratorOnClassMethod3.ts] +declare function dec(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor; + +class C { + public @dec method() {} +} + +//// [decoratorOnClassMethod3.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +class C { + method() { } +} +__decorate([ + dec +], C.prototype, "method", null); diff --git a/tests/baselines/reference/decoratorOnClassMethod3.symbols b/tests/baselines/reference/decoratorOnClassMethod3(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/decoratorOnClassMethod3.symbols rename to tests/baselines/reference/decoratorOnClassMethod3(target=es2015).symbols diff --git a/tests/baselines/reference/decoratorOnClassMethod3.types b/tests/baselines/reference/decoratorOnClassMethod3(target=es2015).types similarity index 100% rename from tests/baselines/reference/decoratorOnClassMethod3.types rename to tests/baselines/reference/decoratorOnClassMethod3(target=es2015).types diff --git a/tests/baselines/reference/decoratorOnClassMethod3(target=es5).errors.txt b/tests/baselines/reference/decoratorOnClassMethod3(target=es5).errors.txt new file mode 100644 index 0000000000000..9308996bc1bd6 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassMethod3(target=es5).errors.txt @@ -0,0 +1,11 @@ +decoratorOnClassMethod3.ts(4,12): error TS1436: Decorators must precede the name and all keywords of property declarations. + + +==== decoratorOnClassMethod3.ts (1 errors) ==== + declare function dec(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor; + + class C { + public @dec method() {} + ~ +!!! error TS1436: Decorators must precede the name and all keywords of property declarations. + } \ No newline at end of file diff --git a/tests/baselines/reference/decoratorOnClassMethod3.js b/tests/baselines/reference/decoratorOnClassMethod3(target=es5).js similarity index 100% rename from tests/baselines/reference/decoratorOnClassMethod3.js rename to tests/baselines/reference/decoratorOnClassMethod3(target=es5).js diff --git a/tests/baselines/reference/decoratorOnClassMethod3(target=es5).symbols b/tests/baselines/reference/decoratorOnClassMethod3(target=es5).symbols new file mode 100644 index 0000000000000..5045459dcc421 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassMethod3(target=es5).symbols @@ -0,0 +1,22 @@ +//// [tests/cases/conformance/decorators/class/method/decoratorOnClassMethod3.ts] //// + +=== decoratorOnClassMethod3.ts === +declare function dec(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor; +>dec : Symbol(dec, Decl(decoratorOnClassMethod3.ts, 0, 0)) +>T : Symbol(T, Decl(decoratorOnClassMethod3.ts, 0, 21)) +>target : Symbol(target, Decl(decoratorOnClassMethod3.ts, 0, 24)) +>propertyKey : Symbol(propertyKey, Decl(decoratorOnClassMethod3.ts, 0, 36)) +>descriptor : Symbol(descriptor, Decl(decoratorOnClassMethod3.ts, 0, 57)) +>TypedPropertyDescriptor : Symbol(TypedPropertyDescriptor, Decl(lib.es5.d.ts, --, --)) +>T : Symbol(T, Decl(decoratorOnClassMethod3.ts, 0, 21)) +>TypedPropertyDescriptor : Symbol(TypedPropertyDescriptor, Decl(lib.es5.d.ts, --, --)) +>T : Symbol(T, Decl(decoratorOnClassMethod3.ts, 0, 21)) + +class C { +>C : Symbol(C, Decl(decoratorOnClassMethod3.ts, 0, 126)) + + public @dec method() {} +>public : Symbol(C.public, Decl(decoratorOnClassMethod3.ts, 2, 9)) +>dec : Symbol(dec, Decl(decoratorOnClassMethod3.ts, 0, 0)) +>method : Symbol(C.method, Decl(decoratorOnClassMethod3.ts, 3, 10)) +} diff --git a/tests/baselines/reference/decoratorOnClassMethod3(target=es5).types b/tests/baselines/reference/decoratorOnClassMethod3(target=es5).types new file mode 100644 index 0000000000000..b866616236f50 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassMethod3(target=es5).types @@ -0,0 +1,25 @@ +//// [tests/cases/conformance/decorators/class/method/decoratorOnClassMethod3.ts] //// + +=== decoratorOnClassMethod3.ts === +declare function dec(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor; +>dec : (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor +> : ^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>target : any +> : ^^^ +>propertyKey : string +> : ^^^^^^ +>descriptor : TypedPropertyDescriptor +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^ + +class C { +>C : C +> : ^ + + public @dec method() {} +>public : any +> : ^^^ +>dec : (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor +> : ^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>method : () => void +> : ^^^^^^^^^^ +} diff --git a/tests/baselines/reference/decoratorOnClassMethod8.errors.txt b/tests/baselines/reference/decoratorOnClassMethod8(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/decoratorOnClassMethod8.errors.txt rename to tests/baselines/reference/decoratorOnClassMethod8(target=es2015).errors.txt diff --git a/tests/baselines/reference/decoratorOnClassMethod8(target=es2015).js b/tests/baselines/reference/decoratorOnClassMethod8(target=es2015).js new file mode 100644 index 0000000000000..ee0877f075869 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassMethod8(target=es2015).js @@ -0,0 +1,22 @@ +//// [tests/cases/conformance/decorators/class/method/decoratorOnClassMethod8.ts] //// + +//// [decoratorOnClassMethod8.ts] +declare function dec(target: T): T; + +class C { + @dec method() {} +} + +//// [decoratorOnClassMethod8.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +class C { + method() { } +} +__decorate([ + dec +], C.prototype, "method", null); diff --git a/tests/baselines/reference/decoratorOnClassMethod8.symbols b/tests/baselines/reference/decoratorOnClassMethod8(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/decoratorOnClassMethod8.symbols rename to tests/baselines/reference/decoratorOnClassMethod8(target=es2015).symbols diff --git a/tests/baselines/reference/decoratorOnClassMethod8.types b/tests/baselines/reference/decoratorOnClassMethod8(target=es2015).types similarity index 100% rename from tests/baselines/reference/decoratorOnClassMethod8.types rename to tests/baselines/reference/decoratorOnClassMethod8(target=es2015).types diff --git a/tests/baselines/reference/decoratorOnClassMethod8(target=es5).errors.txt b/tests/baselines/reference/decoratorOnClassMethod8(target=es5).errors.txt new file mode 100644 index 0000000000000..1ca9f7a2ed7a5 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassMethod8(target=es5).errors.txt @@ -0,0 +1,16 @@ +decoratorOnClassMethod8.ts(4,6): error TS1241: Unable to resolve signature of method decorator when called as an expression. + The runtime will invoke the decorator with 3 arguments, but the decorator expects 1. +decoratorOnClassMethod8.ts(4,6): error TS1270: Decorator function return type 'C' is not assignable to type 'void | TypedPropertyDescriptor<() => void>'. + + +==== decoratorOnClassMethod8.ts (2 errors) ==== + declare function dec(target: T): T; + + class C { + @dec method() {} + ~~~ +!!! error TS1241: Unable to resolve signature of method decorator when called as an expression. +!!! error TS1241: The runtime will invoke the decorator with 3 arguments, but the decorator expects 1. + ~~~ +!!! error TS1270: Decorator function return type 'C' is not assignable to type 'void | TypedPropertyDescriptor<() => void>'. + } \ No newline at end of file diff --git a/tests/baselines/reference/decoratorOnClassMethod8.js b/tests/baselines/reference/decoratorOnClassMethod8(target=es5).js similarity index 100% rename from tests/baselines/reference/decoratorOnClassMethod8.js rename to tests/baselines/reference/decoratorOnClassMethod8(target=es5).js diff --git a/tests/baselines/reference/decoratorOnClassMethod8(target=es5).symbols b/tests/baselines/reference/decoratorOnClassMethod8(target=es5).symbols new file mode 100644 index 0000000000000..a196038e546cc --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassMethod8(target=es5).symbols @@ -0,0 +1,17 @@ +//// [tests/cases/conformance/decorators/class/method/decoratorOnClassMethod8.ts] //// + +=== decoratorOnClassMethod8.ts === +declare function dec(target: T): T; +>dec : Symbol(dec, Decl(decoratorOnClassMethod8.ts, 0, 0)) +>T : Symbol(T, Decl(decoratorOnClassMethod8.ts, 0, 21)) +>target : Symbol(target, Decl(decoratorOnClassMethod8.ts, 0, 24)) +>T : Symbol(T, Decl(decoratorOnClassMethod8.ts, 0, 21)) +>T : Symbol(T, Decl(decoratorOnClassMethod8.ts, 0, 21)) + +class C { +>C : Symbol(C, Decl(decoratorOnClassMethod8.ts, 0, 38)) + + @dec method() {} +>dec : Symbol(dec, Decl(decoratorOnClassMethod8.ts, 0, 0)) +>method : Symbol(C.method, Decl(decoratorOnClassMethod8.ts, 2, 9)) +} diff --git a/tests/baselines/reference/decoratorOnClassMethod8(target=es5).types b/tests/baselines/reference/decoratorOnClassMethod8(target=es5).types new file mode 100644 index 0000000000000..c06dd92684a9e --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassMethod8(target=es5).types @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/decorators/class/method/decoratorOnClassMethod8.ts] //// + +=== decoratorOnClassMethod8.ts === +declare function dec(target: T): T; +>dec : (target: T) => T +> : ^ ^^ ^^ ^^^^^ +>target : T +> : ^ + +class C { +>C : C +> : ^ + + @dec method() {} +>dec : (target: T) => T +> : ^ ^^ ^^ ^^^^^ +>method : () => void +> : ^^^^^^^^^^ +} diff --git a/tests/baselines/reference/decoratorOnClassMethodOverload1.errors.txt b/tests/baselines/reference/decoratorOnClassMethodOverload1(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/decoratorOnClassMethodOverload1.errors.txt rename to tests/baselines/reference/decoratorOnClassMethodOverload1(target=es2015).errors.txt diff --git a/tests/baselines/reference/decoratorOnClassMethodOverload1(target=es2015).js b/tests/baselines/reference/decoratorOnClassMethodOverload1(target=es2015).js new file mode 100644 index 0000000000000..1310d4e46a5da --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassMethodOverload1(target=es2015).js @@ -0,0 +1,15 @@ +//// [tests/cases/conformance/decorators/class/method/decoratorOnClassMethodOverload1.ts] //// + +//// [decoratorOnClassMethodOverload1.ts] +declare function dec(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor; + +class C { + @dec + method() + method() { } +} + +//// [decoratorOnClassMethodOverload1.js] +class C { + method() { } +} diff --git a/tests/baselines/reference/decoratorOnClassMethodOverload1.symbols b/tests/baselines/reference/decoratorOnClassMethodOverload1(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/decoratorOnClassMethodOverload1.symbols rename to tests/baselines/reference/decoratorOnClassMethodOverload1(target=es2015).symbols diff --git a/tests/baselines/reference/decoratorOnClassMethodOverload1.types b/tests/baselines/reference/decoratorOnClassMethodOverload1(target=es2015).types similarity index 100% rename from tests/baselines/reference/decoratorOnClassMethodOverload1.types rename to tests/baselines/reference/decoratorOnClassMethodOverload1(target=es2015).types diff --git a/tests/baselines/reference/decoratorOnClassMethodOverload1(target=es5).errors.txt b/tests/baselines/reference/decoratorOnClassMethodOverload1(target=es5).errors.txt new file mode 100644 index 0000000000000..b9a38933d729a --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassMethodOverload1(target=es5).errors.txt @@ -0,0 +1,13 @@ +decoratorOnClassMethodOverload1.ts(4,5): error TS1249: A decorator can only decorate a method implementation, not an overload. + + +==== decoratorOnClassMethodOverload1.ts (1 errors) ==== + declare function dec(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor; + + class C { + @dec + ~ +!!! error TS1249: A decorator can only decorate a method implementation, not an overload. + method() + method() { } + } \ No newline at end of file diff --git a/tests/baselines/reference/decoratorOnClassMethodOverload1.js b/tests/baselines/reference/decoratorOnClassMethodOverload1(target=es5).js similarity index 100% rename from tests/baselines/reference/decoratorOnClassMethodOverload1.js rename to tests/baselines/reference/decoratorOnClassMethodOverload1(target=es5).js diff --git a/tests/baselines/reference/decoratorOnClassMethodOverload1(target=es5).symbols b/tests/baselines/reference/decoratorOnClassMethodOverload1(target=es5).symbols new file mode 100644 index 0000000000000..276b6a343ef0d --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassMethodOverload1(target=es5).symbols @@ -0,0 +1,26 @@ +//// [tests/cases/conformance/decorators/class/method/decoratorOnClassMethodOverload1.ts] //// + +=== decoratorOnClassMethodOverload1.ts === +declare function dec(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor; +>dec : Symbol(dec, Decl(decoratorOnClassMethodOverload1.ts, 0, 0)) +>T : Symbol(T, Decl(decoratorOnClassMethodOverload1.ts, 0, 21)) +>target : Symbol(target, Decl(decoratorOnClassMethodOverload1.ts, 0, 24)) +>propertyKey : Symbol(propertyKey, Decl(decoratorOnClassMethodOverload1.ts, 0, 36)) +>descriptor : Symbol(descriptor, Decl(decoratorOnClassMethodOverload1.ts, 0, 57)) +>TypedPropertyDescriptor : Symbol(TypedPropertyDescriptor, Decl(lib.es5.d.ts, --, --)) +>T : Symbol(T, Decl(decoratorOnClassMethodOverload1.ts, 0, 21)) +>TypedPropertyDescriptor : Symbol(TypedPropertyDescriptor, Decl(lib.es5.d.ts, --, --)) +>T : Symbol(T, Decl(decoratorOnClassMethodOverload1.ts, 0, 21)) + +class C { +>C : Symbol(C, Decl(decoratorOnClassMethodOverload1.ts, 0, 126)) + + @dec +>dec : Symbol(dec, Decl(decoratorOnClassMethodOverload1.ts, 0, 0)) + + method() +>method : Symbol(C.method, Decl(decoratorOnClassMethodOverload1.ts, 2, 9), Decl(decoratorOnClassMethodOverload1.ts, 4, 12)) + + method() { } +>method : Symbol(C.method, Decl(decoratorOnClassMethodOverload1.ts, 2, 9), Decl(decoratorOnClassMethodOverload1.ts, 4, 12)) +} diff --git a/tests/baselines/reference/decoratorOnClassMethodOverload1(target=es5).types b/tests/baselines/reference/decoratorOnClassMethodOverload1(target=es5).types new file mode 100644 index 0000000000000..93640dbfafa32 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassMethodOverload1(target=es5).types @@ -0,0 +1,29 @@ +//// [tests/cases/conformance/decorators/class/method/decoratorOnClassMethodOverload1.ts] //// + +=== decoratorOnClassMethodOverload1.ts === +declare function dec(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor; +>dec : (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor +> : ^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>target : any +> : ^^^ +>propertyKey : string +> : ^^^^^^ +>descriptor : TypedPropertyDescriptor +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^ + +class C { +>C : C +> : ^ + + @dec +>dec : (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor +> : ^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ + + method() +>method : () => any +> : ^^^^^^^^^ + + method() { } +>method : () => any +> : ^^^^^^^^^ +} diff --git a/tests/baselines/reference/decoratorOnClassMethodOverload2(target=es2015).js b/tests/baselines/reference/decoratorOnClassMethodOverload2(target=es2015).js new file mode 100644 index 0000000000000..325875d3e94ce --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassMethodOverload2(target=es2015).js @@ -0,0 +1,24 @@ +//// [tests/cases/conformance/decorators/class/method/decoratorOnClassMethodOverload2.ts] //// + +//// [decoratorOnClassMethodOverload2.ts] +declare function dec(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor; + +class C { + method() + @dec + method() { } +} + +//// [decoratorOnClassMethodOverload2.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +class C { + method() { } +} +__decorate([ + dec +], C.prototype, "method", null); diff --git a/tests/baselines/reference/decoratorOnClassMethodOverload2.symbols b/tests/baselines/reference/decoratorOnClassMethodOverload2(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/decoratorOnClassMethodOverload2.symbols rename to tests/baselines/reference/decoratorOnClassMethodOverload2(target=es2015).symbols diff --git a/tests/baselines/reference/decoratorOnClassMethodOverload2.types b/tests/baselines/reference/decoratorOnClassMethodOverload2(target=es2015).types similarity index 100% rename from tests/baselines/reference/decoratorOnClassMethodOverload2.types rename to tests/baselines/reference/decoratorOnClassMethodOverload2(target=es2015).types diff --git a/tests/baselines/reference/decoratorOnClassMethodOverload2.js b/tests/baselines/reference/decoratorOnClassMethodOverload2(target=es5).js similarity index 100% rename from tests/baselines/reference/decoratorOnClassMethodOverload2.js rename to tests/baselines/reference/decoratorOnClassMethodOverload2(target=es5).js diff --git a/tests/baselines/reference/decoratorOnClassMethodOverload2(target=es5).symbols b/tests/baselines/reference/decoratorOnClassMethodOverload2(target=es5).symbols new file mode 100644 index 0000000000000..9651f5ee5076c --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassMethodOverload2(target=es5).symbols @@ -0,0 +1,26 @@ +//// [tests/cases/conformance/decorators/class/method/decoratorOnClassMethodOverload2.ts] //// + +=== decoratorOnClassMethodOverload2.ts === +declare function dec(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor; +>dec : Symbol(dec, Decl(decoratorOnClassMethodOverload2.ts, 0, 0)) +>T : Symbol(T, Decl(decoratorOnClassMethodOverload2.ts, 0, 21)) +>target : Symbol(target, Decl(decoratorOnClassMethodOverload2.ts, 0, 24)) +>propertyKey : Symbol(propertyKey, Decl(decoratorOnClassMethodOverload2.ts, 0, 36)) +>descriptor : Symbol(descriptor, Decl(decoratorOnClassMethodOverload2.ts, 0, 57)) +>TypedPropertyDescriptor : Symbol(TypedPropertyDescriptor, Decl(lib.es5.d.ts, --, --)) +>T : Symbol(T, Decl(decoratorOnClassMethodOverload2.ts, 0, 21)) +>TypedPropertyDescriptor : Symbol(TypedPropertyDescriptor, Decl(lib.es5.d.ts, --, --)) +>T : Symbol(T, Decl(decoratorOnClassMethodOverload2.ts, 0, 21)) + +class C { +>C : Symbol(C, Decl(decoratorOnClassMethodOverload2.ts, 0, 126)) + + method() +>method : Symbol(C.method, Decl(decoratorOnClassMethodOverload2.ts, 2, 9), Decl(decoratorOnClassMethodOverload2.ts, 3, 12)) + + @dec +>dec : Symbol(dec, Decl(decoratorOnClassMethodOverload2.ts, 0, 0)) + + method() { } +>method : Symbol(C.method, Decl(decoratorOnClassMethodOverload2.ts, 2, 9), Decl(decoratorOnClassMethodOverload2.ts, 3, 12)) +} diff --git a/tests/baselines/reference/decoratorOnClassMethodOverload2(target=es5).types b/tests/baselines/reference/decoratorOnClassMethodOverload2(target=es5).types new file mode 100644 index 0000000000000..c827ee33ff9f6 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassMethodOverload2(target=es5).types @@ -0,0 +1,28 @@ +//// [tests/cases/conformance/decorators/class/method/decoratorOnClassMethodOverload2.ts] //// + +=== decoratorOnClassMethodOverload2.ts === +declare function dec(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor; +>dec : (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor +> : ^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>target : any +>propertyKey : string +> : ^^^^^^ +>descriptor : TypedPropertyDescriptor +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^ + +class C { +>C : C +> : ^ + + method() +>method : () => any +> : ^^^^^^^^^ + + @dec +>dec : (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor +> : ^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ + + method() { } +>method : () => any +> : ^^^^^^^^^ +} diff --git a/tests/baselines/reference/decoratorOnClassMethodParameter1(target=es2015).js b/tests/baselines/reference/decoratorOnClassMethodParameter1(target=es2015).js new file mode 100644 index 0000000000000..67af2e93a3a7b --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassMethodParameter1(target=es2015).js @@ -0,0 +1,25 @@ +//// [tests/cases/conformance/decorators/class/method/parameter/decoratorOnClassMethodParameter1.ts] //// + +//// [decoratorOnClassMethodParameter1.ts] +declare function dec(target: Object, propertyKey: string | symbol, parameterIndex: number): void; + +class C { + method(@dec p: number) {} +} + +//// [decoratorOnClassMethodParameter1.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __param = (this && this.__param) || function (paramIndex, decorator) { + return function (target, key) { decorator(target, key, paramIndex); } +}; +class C { + method(p) { } +} +__decorate([ + __param(0, dec) +], C.prototype, "method", null); diff --git a/tests/baselines/reference/decoratorOnClassMethodParameter1.symbols b/tests/baselines/reference/decoratorOnClassMethodParameter1(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/decoratorOnClassMethodParameter1.symbols rename to tests/baselines/reference/decoratorOnClassMethodParameter1(target=es2015).symbols diff --git a/tests/baselines/reference/decoratorOnClassMethodParameter1.types b/tests/baselines/reference/decoratorOnClassMethodParameter1(target=es2015).types similarity index 100% rename from tests/baselines/reference/decoratorOnClassMethodParameter1.types rename to tests/baselines/reference/decoratorOnClassMethodParameter1(target=es2015).types diff --git a/tests/baselines/reference/decoratorOnClassMethodParameter1.js b/tests/baselines/reference/decoratorOnClassMethodParameter1(target=es5).js similarity index 100% rename from tests/baselines/reference/decoratorOnClassMethodParameter1.js rename to tests/baselines/reference/decoratorOnClassMethodParameter1(target=es5).js diff --git a/tests/baselines/reference/decoratorOnClassMethodParameter1(target=es5).symbols b/tests/baselines/reference/decoratorOnClassMethodParameter1(target=es5).symbols new file mode 100644 index 0000000000000..d10d727ed57f1 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassMethodParameter1(target=es5).symbols @@ -0,0 +1,18 @@ +//// [tests/cases/conformance/decorators/class/method/parameter/decoratorOnClassMethodParameter1.ts] //// + +=== decoratorOnClassMethodParameter1.ts === +declare function dec(target: Object, propertyKey: string | symbol, parameterIndex: number): void; +>dec : Symbol(dec, Decl(decoratorOnClassMethodParameter1.ts, 0, 0)) +>target : Symbol(target, Decl(decoratorOnClassMethodParameter1.ts, 0, 21)) +>Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>propertyKey : Symbol(propertyKey, Decl(decoratorOnClassMethodParameter1.ts, 0, 36)) +>parameterIndex : Symbol(parameterIndex, Decl(decoratorOnClassMethodParameter1.ts, 0, 66)) + +class C { +>C : Symbol(C, Decl(decoratorOnClassMethodParameter1.ts, 0, 97)) + + method(@dec p: number) {} +>method : Symbol(C.method, Decl(decoratorOnClassMethodParameter1.ts, 2, 9)) +>dec : Symbol(dec, Decl(decoratorOnClassMethodParameter1.ts, 0, 0)) +>p : Symbol(p, Decl(decoratorOnClassMethodParameter1.ts, 3, 11)) +} diff --git a/tests/baselines/reference/decoratorOnClassMethodParameter1(target=es5).types b/tests/baselines/reference/decoratorOnClassMethodParameter1(target=es5).types new file mode 100644 index 0000000000000..21e18e383aaf4 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassMethodParameter1(target=es5).types @@ -0,0 +1,25 @@ +//// [tests/cases/conformance/decorators/class/method/parameter/decoratorOnClassMethodParameter1.ts] //// + +=== decoratorOnClassMethodParameter1.ts === +declare function dec(target: Object, propertyKey: string | symbol, parameterIndex: number): void; +>dec : (target: Object, propertyKey: string | symbol, parameterIndex: number) => void +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>target : Object +> : ^^^^^^ +>propertyKey : string | symbol +> : ^^^^^^^^^^^^^^^ +>parameterIndex : number +> : ^^^^^^ + +class C { +>C : C +> : ^ + + method(@dec p: number) {} +>method : (p: number) => void +> : ^ ^^ ^^^^^^^^^ +>dec : (target: Object, propertyKey: string | symbol, parameterIndex: number) => void +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>p : number +> : ^^^^^^ +} diff --git a/tests/baselines/reference/decoratorOnClassMethodParameter2(target=es2015).js b/tests/baselines/reference/decoratorOnClassMethodParameter2(target=es2015).js new file mode 100644 index 0000000000000..dd6ed290ef9f9 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassMethodParameter2(target=es2015).js @@ -0,0 +1,25 @@ +//// [tests/cases/conformance/decorators/class/method/parameter/decoratorOnClassMethodParameter2.ts] //// + +//// [decoratorOnClassMethodParameter2.ts] +declare function dec(target: Object, propertyKey: string | symbol, parameterIndex: number): void; + +class C { + method(this: C, @dec p: number) {} +} + +//// [decoratorOnClassMethodParameter2.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __param = (this && this.__param) || function (paramIndex, decorator) { + return function (target, key) { decorator(target, key, paramIndex); } +}; +class C { + method(p) { } +} +__decorate([ + __param(0, dec) +], C.prototype, "method", null); diff --git a/tests/baselines/reference/decoratorOnClassMethodParameter2.symbols b/tests/baselines/reference/decoratorOnClassMethodParameter2(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/decoratorOnClassMethodParameter2.symbols rename to tests/baselines/reference/decoratorOnClassMethodParameter2(target=es2015).symbols diff --git a/tests/baselines/reference/decoratorOnClassMethodParameter2.types b/tests/baselines/reference/decoratorOnClassMethodParameter2(target=es2015).types similarity index 100% rename from tests/baselines/reference/decoratorOnClassMethodParameter2.types rename to tests/baselines/reference/decoratorOnClassMethodParameter2(target=es2015).types diff --git a/tests/baselines/reference/decoratorOnClassMethodParameter2.js b/tests/baselines/reference/decoratorOnClassMethodParameter2(target=es5).js similarity index 100% rename from tests/baselines/reference/decoratorOnClassMethodParameter2.js rename to tests/baselines/reference/decoratorOnClassMethodParameter2(target=es5).js diff --git a/tests/baselines/reference/decoratorOnClassMethodParameter2(target=es5).symbols b/tests/baselines/reference/decoratorOnClassMethodParameter2(target=es5).symbols new file mode 100644 index 0000000000000..42dcd4e10e4b9 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassMethodParameter2(target=es5).symbols @@ -0,0 +1,20 @@ +//// [tests/cases/conformance/decorators/class/method/parameter/decoratorOnClassMethodParameter2.ts] //// + +=== decoratorOnClassMethodParameter2.ts === +declare function dec(target: Object, propertyKey: string | symbol, parameterIndex: number): void; +>dec : Symbol(dec, Decl(decoratorOnClassMethodParameter2.ts, 0, 0)) +>target : Symbol(target, Decl(decoratorOnClassMethodParameter2.ts, 0, 21)) +>Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>propertyKey : Symbol(propertyKey, Decl(decoratorOnClassMethodParameter2.ts, 0, 36)) +>parameterIndex : Symbol(parameterIndex, Decl(decoratorOnClassMethodParameter2.ts, 0, 66)) + +class C { +>C : Symbol(C, Decl(decoratorOnClassMethodParameter2.ts, 0, 97)) + + method(this: C, @dec p: number) {} +>method : Symbol(C.method, Decl(decoratorOnClassMethodParameter2.ts, 2, 9)) +>this : Symbol(this, Decl(decoratorOnClassMethodParameter2.ts, 3, 11)) +>C : Symbol(C, Decl(decoratorOnClassMethodParameter2.ts, 0, 97)) +>dec : Symbol(dec, Decl(decoratorOnClassMethodParameter2.ts, 0, 0)) +>p : Symbol(p, Decl(decoratorOnClassMethodParameter2.ts, 3, 19)) +} diff --git a/tests/baselines/reference/decoratorOnClassMethodParameter2(target=es5).types b/tests/baselines/reference/decoratorOnClassMethodParameter2(target=es5).types new file mode 100644 index 0000000000000..79dee8e4883a5 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassMethodParameter2(target=es5).types @@ -0,0 +1,27 @@ +//// [tests/cases/conformance/decorators/class/method/parameter/decoratorOnClassMethodParameter2.ts] //// + +=== decoratorOnClassMethodParameter2.ts === +declare function dec(target: Object, propertyKey: string | symbol, parameterIndex: number): void; +>dec : (target: Object, propertyKey: string | symbol, parameterIndex: number) => void +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>target : Object +> : ^^^^^^ +>propertyKey : string | symbol +> : ^^^^^^^^^^^^^^^ +>parameterIndex : number +> : ^^^^^^ + +class C { +>C : C +> : ^ + + method(this: C, @dec p: number) {} +>method : (this: C, p: number) => void +> : ^ ^^ ^^ ^^ ^^^^^^^^^ +>this : C +> : ^ +>dec : (target: Object, propertyKey: string | symbol, parameterIndex: number) => void +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>p : number +> : ^^^^^^ +} diff --git a/tests/baselines/reference/decoratorOnClassMethodThisParameter.errors.txt b/tests/baselines/reference/decoratorOnClassMethodThisParameter(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/decoratorOnClassMethodThisParameter.errors.txt rename to tests/baselines/reference/decoratorOnClassMethodThisParameter(target=es2015).errors.txt diff --git a/tests/baselines/reference/decoratorOnClassMethodThisParameter(target=es2015).js b/tests/baselines/reference/decoratorOnClassMethodThisParameter(target=es2015).js new file mode 100644 index 0000000000000..3101bf64f4b88 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassMethodThisParameter(target=es2015).js @@ -0,0 +1,32 @@ +//// [tests/cases/conformance/decorators/class/method/parameter/decoratorOnClassMethodThisParameter.ts] //// + +//// [decoratorOnClassMethodThisParameter.ts] +declare function dec(target: Object, propertyKey: string | symbol, parameterIndex: number): void; + +class C { + method(@dec this: C) {} +} + +class C2 { + method(@dec allowed: C2, @dec this: C2) {} +} + +//// [decoratorOnClassMethodThisParameter.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __param = (this && this.__param) || function (paramIndex, decorator) { + return function (target, key) { decorator(target, key, paramIndex); } +}; +class C { + method() { } +} +class C2 { + method(allowed) { } +} +__decorate([ + __param(0, dec) +], C2.prototype, "method", null); diff --git a/tests/baselines/reference/decoratorOnClassMethodThisParameter.symbols b/tests/baselines/reference/decoratorOnClassMethodThisParameter(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/decoratorOnClassMethodThisParameter.symbols rename to tests/baselines/reference/decoratorOnClassMethodThisParameter(target=es2015).symbols diff --git a/tests/baselines/reference/decoratorOnClassMethodThisParameter.types b/tests/baselines/reference/decoratorOnClassMethodThisParameter(target=es2015).types similarity index 100% rename from tests/baselines/reference/decoratorOnClassMethodThisParameter.types rename to tests/baselines/reference/decoratorOnClassMethodThisParameter(target=es2015).types diff --git a/tests/baselines/reference/decoratorOnClassMethodThisParameter(target=es5).errors.txt b/tests/baselines/reference/decoratorOnClassMethodThisParameter(target=es5).errors.txt new file mode 100644 index 0000000000000..597bb186bb3b9 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassMethodThisParameter(target=es5).errors.txt @@ -0,0 +1,21 @@ +decoratorOnClassMethodThisParameter.ts(4,12): error TS1433: Neither decorators nor modifiers may be applied to 'this' parameters. +decoratorOnClassMethodThisParameter.ts(8,29): error TS1433: Neither decorators nor modifiers may be applied to 'this' parameters. +decoratorOnClassMethodThisParameter.ts(8,30): error TS2680: A 'this' parameter must be the first parameter. + + +==== decoratorOnClassMethodThisParameter.ts (3 errors) ==== + declare function dec(target: Object, propertyKey: string | symbol, parameterIndex: number): void; + + class C { + method(@dec this: C) {} + ~~~~ +!!! error TS1433: Neither decorators nor modifiers may be applied to 'this' parameters. + } + + class C2 { + method(@dec allowed: C2, @dec this: C2) {} + ~~~~~ +!!! error TS1433: Neither decorators nor modifiers may be applied to 'this' parameters. + ~~~~~~~~~~~~~ +!!! error TS2680: A 'this' parameter must be the first parameter. + } \ No newline at end of file diff --git a/tests/baselines/reference/decoratorOnClassMethodThisParameter.js b/tests/baselines/reference/decoratorOnClassMethodThisParameter(target=es5).js similarity index 100% rename from tests/baselines/reference/decoratorOnClassMethodThisParameter.js rename to tests/baselines/reference/decoratorOnClassMethodThisParameter(target=es5).js diff --git a/tests/baselines/reference/decoratorOnClassMethodThisParameter(target=es5).symbols b/tests/baselines/reference/decoratorOnClassMethodThisParameter(target=es5).symbols new file mode 100644 index 0000000000000..a19c89c6495a0 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassMethodThisParameter(target=es5).symbols @@ -0,0 +1,32 @@ +//// [tests/cases/conformance/decorators/class/method/parameter/decoratorOnClassMethodThisParameter.ts] //// + +=== decoratorOnClassMethodThisParameter.ts === +declare function dec(target: Object, propertyKey: string | symbol, parameterIndex: number): void; +>dec : Symbol(dec, Decl(decoratorOnClassMethodThisParameter.ts, 0, 0)) +>target : Symbol(target, Decl(decoratorOnClassMethodThisParameter.ts, 0, 21)) +>Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>propertyKey : Symbol(propertyKey, Decl(decoratorOnClassMethodThisParameter.ts, 0, 36)) +>parameterIndex : Symbol(parameterIndex, Decl(decoratorOnClassMethodThisParameter.ts, 0, 66)) + +class C { +>C : Symbol(C, Decl(decoratorOnClassMethodThisParameter.ts, 0, 97)) + + method(@dec this: C) {} +>method : Symbol(C.method, Decl(decoratorOnClassMethodThisParameter.ts, 2, 9)) +>dec : Symbol(dec, Decl(decoratorOnClassMethodThisParameter.ts, 0, 0)) +>this : Symbol(this, Decl(decoratorOnClassMethodThisParameter.ts, 3, 11)) +>C : Symbol(C, Decl(decoratorOnClassMethodThisParameter.ts, 0, 97)) +} + +class C2 { +>C2 : Symbol(C2, Decl(decoratorOnClassMethodThisParameter.ts, 4, 1)) + + method(@dec allowed: C2, @dec this: C2) {} +>method : Symbol(C2.method, Decl(decoratorOnClassMethodThisParameter.ts, 6, 10)) +>dec : Symbol(dec, Decl(decoratorOnClassMethodThisParameter.ts, 0, 0)) +>allowed : Symbol(allowed, Decl(decoratorOnClassMethodThisParameter.ts, 7, 11)) +>C2 : Symbol(C2, Decl(decoratorOnClassMethodThisParameter.ts, 4, 1)) +>dec : Symbol(dec, Decl(decoratorOnClassMethodThisParameter.ts, 0, 0)) +>this : Symbol(this, Decl(decoratorOnClassMethodThisParameter.ts, 7, 28)) +>C2 : Symbol(C2, Decl(decoratorOnClassMethodThisParameter.ts, 4, 1)) +} diff --git a/tests/baselines/reference/decoratorOnClassMethodThisParameter(target=es5).types b/tests/baselines/reference/decoratorOnClassMethodThisParameter(target=es5).types new file mode 100644 index 0000000000000..8428c47c51176 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassMethodThisParameter(target=es5).types @@ -0,0 +1,42 @@ +//// [tests/cases/conformance/decorators/class/method/parameter/decoratorOnClassMethodThisParameter.ts] //// + +=== decoratorOnClassMethodThisParameter.ts === +declare function dec(target: Object, propertyKey: string | symbol, parameterIndex: number): void; +>dec : (target: Object, propertyKey: string | symbol, parameterIndex: number) => void +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>target : Object +> : ^^^^^^ +>propertyKey : string | symbol +> : ^^^^^^^^^^^^^^^ +>parameterIndex : number +> : ^^^^^^ + +class C { +>C : C +> : ^ + + method(@dec this: C) {} +>method : (this: C) => void +> : ^ ^^ ^^^^^^^^^ +>dec : (target: Object, propertyKey: string | symbol, parameterIndex: number) => void +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>this : C +> : ^ +} + +class C2 { +>C2 : C2 +> : ^^ + + method(@dec allowed: C2, @dec this: C2) {} +>method : (allowed: C2, this: C2) => void +> : ^ ^^ ^^ ^^ ^^^^^^^^^ +>dec : (target: Object, propertyKey: string | symbol, parameterIndex: number) => void +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>allowed : C2 +> : ^^ +>dec : (target: Object, propertyKey: string | symbol, parameterIndex: number) => void +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>this : C2 +> : ^^ +} diff --git a/tests/baselines/reference/decoratorOnClassProperty1(target=es2015).js b/tests/baselines/reference/decoratorOnClassProperty1(target=es2015).js new file mode 100644 index 0000000000000..0674d7b412c78 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassProperty1(target=es2015).js @@ -0,0 +1,21 @@ +//// [tests/cases/conformance/decorators/class/property/decoratorOnClassProperty1.ts] //// + +//// [decoratorOnClassProperty1.ts] +declare function dec(target: any, propertyKey: string): void; + +class C { + @dec prop; +} + +//// [decoratorOnClassProperty1.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +class C { +} +__decorate([ + dec +], C.prototype, "prop", void 0); diff --git a/tests/baselines/reference/decoratorOnClassProperty1.symbols b/tests/baselines/reference/decoratorOnClassProperty1(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/decoratorOnClassProperty1.symbols rename to tests/baselines/reference/decoratorOnClassProperty1(target=es2015).symbols diff --git a/tests/baselines/reference/decoratorOnClassProperty1.types b/tests/baselines/reference/decoratorOnClassProperty1(target=es2015).types similarity index 100% rename from tests/baselines/reference/decoratorOnClassProperty1.types rename to tests/baselines/reference/decoratorOnClassProperty1(target=es2015).types diff --git a/tests/baselines/reference/decoratorOnClassProperty1.js b/tests/baselines/reference/decoratorOnClassProperty1(target=es5).js similarity index 100% rename from tests/baselines/reference/decoratorOnClassProperty1.js rename to tests/baselines/reference/decoratorOnClassProperty1(target=es5).js diff --git a/tests/baselines/reference/decoratorOnClassProperty1(target=es5).symbols b/tests/baselines/reference/decoratorOnClassProperty1(target=es5).symbols new file mode 100644 index 0000000000000..2be21356665a5 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassProperty1(target=es5).symbols @@ -0,0 +1,15 @@ +//// [tests/cases/conformance/decorators/class/property/decoratorOnClassProperty1.ts] //// + +=== decoratorOnClassProperty1.ts === +declare function dec(target: any, propertyKey: string): void; +>dec : Symbol(dec, Decl(decoratorOnClassProperty1.ts, 0, 0)) +>target : Symbol(target, Decl(decoratorOnClassProperty1.ts, 0, 21)) +>propertyKey : Symbol(propertyKey, Decl(decoratorOnClassProperty1.ts, 0, 33)) + +class C { +>C : Symbol(C, Decl(decoratorOnClassProperty1.ts, 0, 61)) + + @dec prop; +>dec : Symbol(dec, Decl(decoratorOnClassProperty1.ts, 0, 0)) +>prop : Symbol(C.prop, Decl(decoratorOnClassProperty1.ts, 2, 9)) +} diff --git a/tests/baselines/reference/decoratorOnClassProperty1(target=es5).types b/tests/baselines/reference/decoratorOnClassProperty1(target=es5).types new file mode 100644 index 0000000000000..766cca25f17ee --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassProperty1(target=es5).types @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/decorators/class/property/decoratorOnClassProperty1.ts] //// + +=== decoratorOnClassProperty1.ts === +declare function dec(target: any, propertyKey: string): void; +>dec : (target: any, propertyKey: string) => void +> : ^ ^^ ^^ ^^ ^^^^^ +>target : any +>propertyKey : string +> : ^^^^^^ + +class C { +>C : C +> : ^ + + @dec prop; +>dec : (target: any, propertyKey: string) => void +> : ^ ^^ ^^ ^^ ^^^^^ +>prop : any +} diff --git a/tests/baselines/reference/decoratorOnClassProperty10(target=es2015).js b/tests/baselines/reference/decoratorOnClassProperty10(target=es2015).js new file mode 100644 index 0000000000000..3d6988e0890b5 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassProperty10(target=es2015).js @@ -0,0 +1,21 @@ +//// [tests/cases/conformance/decorators/class/property/decoratorOnClassProperty10.ts] //// + +//// [decoratorOnClassProperty10.ts] +declare function dec(): (target: any, propertyKey: string) => void; + +class C { + @dec() prop; +} + +//// [decoratorOnClassProperty10.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +class C { +} +__decorate([ + dec() +], C.prototype, "prop", void 0); diff --git a/tests/baselines/reference/decoratorOnClassProperty10.symbols b/tests/baselines/reference/decoratorOnClassProperty10(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/decoratorOnClassProperty10.symbols rename to tests/baselines/reference/decoratorOnClassProperty10(target=es2015).symbols diff --git a/tests/baselines/reference/decoratorOnClassProperty10.types b/tests/baselines/reference/decoratorOnClassProperty10(target=es2015).types similarity index 100% rename from tests/baselines/reference/decoratorOnClassProperty10.types rename to tests/baselines/reference/decoratorOnClassProperty10(target=es2015).types diff --git a/tests/baselines/reference/decoratorOnClassProperty10.js b/tests/baselines/reference/decoratorOnClassProperty10(target=es5).js similarity index 100% rename from tests/baselines/reference/decoratorOnClassProperty10.js rename to tests/baselines/reference/decoratorOnClassProperty10(target=es5).js diff --git a/tests/baselines/reference/decoratorOnClassProperty10(target=es5).symbols b/tests/baselines/reference/decoratorOnClassProperty10(target=es5).symbols new file mode 100644 index 0000000000000..2f6c2a9b2464b --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassProperty10(target=es5).symbols @@ -0,0 +1,16 @@ +//// [tests/cases/conformance/decorators/class/property/decoratorOnClassProperty10.ts] //// + +=== decoratorOnClassProperty10.ts === +declare function dec(): (target: any, propertyKey: string) => void; +>dec : Symbol(dec, Decl(decoratorOnClassProperty10.ts, 0, 0)) +>T : Symbol(T, Decl(decoratorOnClassProperty10.ts, 0, 25)) +>target : Symbol(target, Decl(decoratorOnClassProperty10.ts, 0, 28)) +>propertyKey : Symbol(propertyKey, Decl(decoratorOnClassProperty10.ts, 0, 40)) + +class C { +>C : Symbol(C, Decl(decoratorOnClassProperty10.ts, 0, 70)) + + @dec() prop; +>dec : Symbol(dec, Decl(decoratorOnClassProperty10.ts, 0, 0)) +>prop : Symbol(C.prop, Decl(decoratorOnClassProperty10.ts, 2, 9)) +} diff --git a/tests/baselines/reference/decoratorOnClassProperty10(target=es5).types b/tests/baselines/reference/decoratorOnClassProperty10(target=es5).types new file mode 100644 index 0000000000000..4fef3c452dad5 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassProperty10(target=es5).types @@ -0,0 +1,21 @@ +//// [tests/cases/conformance/decorators/class/property/decoratorOnClassProperty10.ts] //// + +=== decoratorOnClassProperty10.ts === +declare function dec(): (target: any, propertyKey: string) => void; +>dec : () => (target: any, propertyKey: string) => void +> : ^^^^^^ +>target : any +>propertyKey : string +> : ^^^^^^ + +class C { +>C : C +> : ^ + + @dec() prop; +>dec() : (target: any, propertyKey: string) => void +> : ^ ^^ ^^ ^^ ^^ ^^^^^ +>dec : () => (target: any, propertyKey: string) => void +> : ^^^^^^ +>prop : any +} diff --git a/tests/baselines/reference/decoratorOnClassProperty11.errors.txt b/tests/baselines/reference/decoratorOnClassProperty11(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/decoratorOnClassProperty11.errors.txt rename to tests/baselines/reference/decoratorOnClassProperty11(target=es2015).errors.txt diff --git a/tests/baselines/reference/decoratorOnClassProperty11(target=es2015).js b/tests/baselines/reference/decoratorOnClassProperty11(target=es2015).js new file mode 100644 index 0000000000000..b866c71b932ce --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassProperty11(target=es2015).js @@ -0,0 +1,21 @@ +//// [tests/cases/conformance/decorators/class/property/decoratorOnClassProperty11.ts] //// + +//// [decoratorOnClassProperty11.ts] +declare function dec(): (target: any, propertyKey: string) => void; + +class C { + @dec prop; +} + +//// [decoratorOnClassProperty11.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +class C { +} +__decorate([ + dec +], C.prototype, "prop", void 0); diff --git a/tests/baselines/reference/decoratorOnClassProperty11.symbols b/tests/baselines/reference/decoratorOnClassProperty11(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/decoratorOnClassProperty11.symbols rename to tests/baselines/reference/decoratorOnClassProperty11(target=es2015).symbols diff --git a/tests/baselines/reference/decoratorOnClassProperty11.types b/tests/baselines/reference/decoratorOnClassProperty11(target=es2015).types similarity index 100% rename from tests/baselines/reference/decoratorOnClassProperty11.types rename to tests/baselines/reference/decoratorOnClassProperty11(target=es2015).types diff --git a/tests/baselines/reference/decoratorOnClassProperty11(target=es5).errors.txt b/tests/baselines/reference/decoratorOnClassProperty11(target=es5).errors.txt new file mode 100644 index 0000000000000..73f85631821f8 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassProperty11(target=es5).errors.txt @@ -0,0 +1,11 @@ +decoratorOnClassProperty11.ts(4,5): error TS1329: 'dec' accepts too few arguments to be used as a decorator here. Did you mean to call it first and write '@dec()'? + + +==== decoratorOnClassProperty11.ts (1 errors) ==== + declare function dec(): (target: any, propertyKey: string) => void; + + class C { + @dec prop; + ~~~~ +!!! error TS1329: 'dec' accepts too few arguments to be used as a decorator here. Did you mean to call it first and write '@dec()'? + } \ No newline at end of file diff --git a/tests/baselines/reference/decoratorOnClassProperty11.js b/tests/baselines/reference/decoratorOnClassProperty11(target=es5).js similarity index 100% rename from tests/baselines/reference/decoratorOnClassProperty11.js rename to tests/baselines/reference/decoratorOnClassProperty11(target=es5).js diff --git a/tests/baselines/reference/decoratorOnClassProperty11(target=es5).symbols b/tests/baselines/reference/decoratorOnClassProperty11(target=es5).symbols new file mode 100644 index 0000000000000..cbe58a38f50bf --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassProperty11(target=es5).symbols @@ -0,0 +1,16 @@ +//// [tests/cases/conformance/decorators/class/property/decoratorOnClassProperty11.ts] //// + +=== decoratorOnClassProperty11.ts === +declare function dec(): (target: any, propertyKey: string) => void; +>dec : Symbol(dec, Decl(decoratorOnClassProperty11.ts, 0, 0)) +>T : Symbol(T, Decl(decoratorOnClassProperty11.ts, 0, 25)) +>target : Symbol(target, Decl(decoratorOnClassProperty11.ts, 0, 28)) +>propertyKey : Symbol(propertyKey, Decl(decoratorOnClassProperty11.ts, 0, 40)) + +class C { +>C : Symbol(C, Decl(decoratorOnClassProperty11.ts, 0, 70)) + + @dec prop; +>dec : Symbol(dec, Decl(decoratorOnClassProperty11.ts, 0, 0)) +>prop : Symbol(C.prop, Decl(decoratorOnClassProperty11.ts, 2, 9)) +} diff --git a/tests/baselines/reference/decoratorOnClassProperty11(target=es5).types b/tests/baselines/reference/decoratorOnClassProperty11(target=es5).types new file mode 100644 index 0000000000000..64d0902eea9af --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassProperty11(target=es5).types @@ -0,0 +1,21 @@ +//// [tests/cases/conformance/decorators/class/property/decoratorOnClassProperty11.ts] //// + +=== decoratorOnClassProperty11.ts === +declare function dec(): (target: any, propertyKey: string) => void; +>dec : () => (target: any, propertyKey: string) => void +> : ^^^^^^ +>target : any +> : ^^^ +>propertyKey : string +> : ^^^^^^ + +class C { +>C : C +> : ^ + + @dec prop; +>dec : () => (target: any, propertyKey: string) => void +> : ^^^^^^ +>prop : any +> : ^^^ +} diff --git a/tests/baselines/reference/decoratorOnClassProperty12(target=es2015).js b/tests/baselines/reference/decoratorOnClassProperty12(target=es2015).js new file mode 100644 index 0000000000000..7390e476d809c --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassProperty12(target=es2015).js @@ -0,0 +1,27 @@ +//// [tests/cases/conformance/decorators/class/property/decoratorOnClassProperty12.ts] //// + +//// [decoratorOnClassProperty12.ts] +declare function dec(): (target: any, propertyKey: string) => void; + +class A { + @dec() + foo: `${string}` +} + + +//// [decoratorOnClassProperty12.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; +class A { +} +__decorate([ + dec(), + __metadata("design:type", String) +], A.prototype, "foo", void 0); diff --git a/tests/baselines/reference/decoratorOnClassProperty12.symbols b/tests/baselines/reference/decoratorOnClassProperty12(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/decoratorOnClassProperty12.symbols rename to tests/baselines/reference/decoratorOnClassProperty12(target=es2015).symbols diff --git a/tests/baselines/reference/decoratorOnClassProperty12.types b/tests/baselines/reference/decoratorOnClassProperty12(target=es2015).types similarity index 100% rename from tests/baselines/reference/decoratorOnClassProperty12.types rename to tests/baselines/reference/decoratorOnClassProperty12(target=es2015).types diff --git a/tests/baselines/reference/decoratorOnClassProperty12.js b/tests/baselines/reference/decoratorOnClassProperty12(target=es5).js similarity index 100% rename from tests/baselines/reference/decoratorOnClassProperty12.js rename to tests/baselines/reference/decoratorOnClassProperty12(target=es5).js diff --git a/tests/baselines/reference/decoratorOnClassProperty12(target=es5).symbols b/tests/baselines/reference/decoratorOnClassProperty12(target=es5).symbols new file mode 100644 index 0000000000000..3c45e7ae6df00 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassProperty12(target=es5).symbols @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/decorators/class/property/decoratorOnClassProperty12.ts] //// + +=== decoratorOnClassProperty12.ts === +declare function dec(): (target: any, propertyKey: string) => void; +>dec : Symbol(dec, Decl(decoratorOnClassProperty12.ts, 0, 0)) +>T : Symbol(T, Decl(decoratorOnClassProperty12.ts, 0, 25)) +>target : Symbol(target, Decl(decoratorOnClassProperty12.ts, 0, 28)) +>propertyKey : Symbol(propertyKey, Decl(decoratorOnClassProperty12.ts, 0, 40)) + +class A { +>A : Symbol(A, Decl(decoratorOnClassProperty12.ts, 0, 70)) + + @dec() +>dec : Symbol(dec, Decl(decoratorOnClassProperty12.ts, 0, 0)) + + foo: `${string}` +>foo : Symbol(A.foo, Decl(decoratorOnClassProperty12.ts, 2, 9)) +} + diff --git a/tests/baselines/reference/decoratorOnClassProperty12(target=es5).types b/tests/baselines/reference/decoratorOnClassProperty12(target=es5).types new file mode 100644 index 0000000000000..0c18f8712b401 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassProperty12(target=es5).types @@ -0,0 +1,25 @@ +//// [tests/cases/conformance/decorators/class/property/decoratorOnClassProperty12.ts] //// + +=== decoratorOnClassProperty12.ts === +declare function dec(): (target: any, propertyKey: string) => void; +>dec : () => (target: any, propertyKey: string) => void +> : ^^^^^^ +>target : any +>propertyKey : string +> : ^^^^^^ + +class A { +>A : A +> : ^ + + @dec() +>dec() : (target: any, propertyKey: string) => void +> : ^ ^^ ^^ ^^ ^^ ^^^^^ +>dec : () => (target: any, propertyKey: string) => void +> : ^^^^^^ + + foo: `${string}` +>foo : string +> : ^^^^^^ +} + diff --git a/tests/baselines/reference/decoratorOnClassProperty2(target=es2015).js b/tests/baselines/reference/decoratorOnClassProperty2(target=es2015).js new file mode 100644 index 0000000000000..f82ff19e353a0 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassProperty2(target=es2015).js @@ -0,0 +1,21 @@ +//// [tests/cases/conformance/decorators/class/property/decoratorOnClassProperty2.ts] //// + +//// [decoratorOnClassProperty2.ts] +declare function dec(target: any, propertyKey: string): void; + +class C { + @dec public prop; +} + +//// [decoratorOnClassProperty2.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +class C { +} +__decorate([ + dec +], C.prototype, "prop", void 0); diff --git a/tests/baselines/reference/decoratorOnClassProperty2.symbols b/tests/baselines/reference/decoratorOnClassProperty2(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/decoratorOnClassProperty2.symbols rename to tests/baselines/reference/decoratorOnClassProperty2(target=es2015).symbols diff --git a/tests/baselines/reference/decoratorOnClassProperty2.types b/tests/baselines/reference/decoratorOnClassProperty2(target=es2015).types similarity index 100% rename from tests/baselines/reference/decoratorOnClassProperty2.types rename to tests/baselines/reference/decoratorOnClassProperty2(target=es2015).types diff --git a/tests/baselines/reference/decoratorOnClassProperty2.js b/tests/baselines/reference/decoratorOnClassProperty2(target=es5).js similarity index 100% rename from tests/baselines/reference/decoratorOnClassProperty2.js rename to tests/baselines/reference/decoratorOnClassProperty2(target=es5).js diff --git a/tests/baselines/reference/decoratorOnClassProperty2(target=es5).symbols b/tests/baselines/reference/decoratorOnClassProperty2(target=es5).symbols new file mode 100644 index 0000000000000..8104b056ef824 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassProperty2(target=es5).symbols @@ -0,0 +1,15 @@ +//// [tests/cases/conformance/decorators/class/property/decoratorOnClassProperty2.ts] //// + +=== decoratorOnClassProperty2.ts === +declare function dec(target: any, propertyKey: string): void; +>dec : Symbol(dec, Decl(decoratorOnClassProperty2.ts, 0, 0)) +>target : Symbol(target, Decl(decoratorOnClassProperty2.ts, 0, 21)) +>propertyKey : Symbol(propertyKey, Decl(decoratorOnClassProperty2.ts, 0, 33)) + +class C { +>C : Symbol(C, Decl(decoratorOnClassProperty2.ts, 0, 61)) + + @dec public prop; +>dec : Symbol(dec, Decl(decoratorOnClassProperty2.ts, 0, 0)) +>prop : Symbol(C.prop, Decl(decoratorOnClassProperty2.ts, 2, 9)) +} diff --git a/tests/baselines/reference/decoratorOnClassProperty2(target=es5).types b/tests/baselines/reference/decoratorOnClassProperty2(target=es5).types new file mode 100644 index 0000000000000..d471e0728d13f --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassProperty2(target=es5).types @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/decorators/class/property/decoratorOnClassProperty2.ts] //// + +=== decoratorOnClassProperty2.ts === +declare function dec(target: any, propertyKey: string): void; +>dec : (target: any, propertyKey: string) => void +> : ^ ^^ ^^ ^^ ^^^^^ +>target : any +>propertyKey : string +> : ^^^^^^ + +class C { +>C : C +> : ^ + + @dec public prop; +>dec : (target: any, propertyKey: string) => void +> : ^ ^^ ^^ ^^ ^^^^^ +>prop : any +} diff --git a/tests/baselines/reference/decoratorOnClassProperty3.errors.txt b/tests/baselines/reference/decoratorOnClassProperty3(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/decoratorOnClassProperty3.errors.txt rename to tests/baselines/reference/decoratorOnClassProperty3(target=es2015).errors.txt diff --git a/tests/baselines/reference/decoratorOnClassProperty3(target=es2015).js b/tests/baselines/reference/decoratorOnClassProperty3(target=es2015).js new file mode 100644 index 0000000000000..240ee0916a39f --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassProperty3(target=es2015).js @@ -0,0 +1,21 @@ +//// [tests/cases/conformance/decorators/class/property/decoratorOnClassProperty3.ts] //// + +//// [decoratorOnClassProperty3.ts] +declare function dec(target: any, propertyKey: string): void; + +class C { + public @dec prop; +} + +//// [decoratorOnClassProperty3.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +class C { +} +__decorate([ + dec +], C.prototype, "prop", void 0); diff --git a/tests/baselines/reference/decoratorOnClassProperty3.symbols b/tests/baselines/reference/decoratorOnClassProperty3(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/decoratorOnClassProperty3.symbols rename to tests/baselines/reference/decoratorOnClassProperty3(target=es2015).symbols diff --git a/tests/baselines/reference/decoratorOnClassProperty3.types b/tests/baselines/reference/decoratorOnClassProperty3(target=es2015).types similarity index 100% rename from tests/baselines/reference/decoratorOnClassProperty3.types rename to tests/baselines/reference/decoratorOnClassProperty3(target=es2015).types diff --git a/tests/baselines/reference/decoratorOnClassProperty3(target=es5).errors.txt b/tests/baselines/reference/decoratorOnClassProperty3(target=es5).errors.txt new file mode 100644 index 0000000000000..50fcb82285b9a --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassProperty3(target=es5).errors.txt @@ -0,0 +1,11 @@ +decoratorOnClassProperty3.ts(4,12): error TS1436: Decorators must precede the name and all keywords of property declarations. + + +==== decoratorOnClassProperty3.ts (1 errors) ==== + declare function dec(target: any, propertyKey: string): void; + + class C { + public @dec prop; + ~ +!!! error TS1436: Decorators must precede the name and all keywords of property declarations. + } \ No newline at end of file diff --git a/tests/baselines/reference/decoratorOnClassProperty3.js b/tests/baselines/reference/decoratorOnClassProperty3(target=es5).js similarity index 100% rename from tests/baselines/reference/decoratorOnClassProperty3.js rename to tests/baselines/reference/decoratorOnClassProperty3(target=es5).js diff --git a/tests/baselines/reference/decoratorOnClassProperty3(target=es5).symbols b/tests/baselines/reference/decoratorOnClassProperty3(target=es5).symbols new file mode 100644 index 0000000000000..5828b5ebf40f1 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassProperty3(target=es5).symbols @@ -0,0 +1,16 @@ +//// [tests/cases/conformance/decorators/class/property/decoratorOnClassProperty3.ts] //// + +=== decoratorOnClassProperty3.ts === +declare function dec(target: any, propertyKey: string): void; +>dec : Symbol(dec, Decl(decoratorOnClassProperty3.ts, 0, 0)) +>target : Symbol(target, Decl(decoratorOnClassProperty3.ts, 0, 21)) +>propertyKey : Symbol(propertyKey, Decl(decoratorOnClassProperty3.ts, 0, 33)) + +class C { +>C : Symbol(C, Decl(decoratorOnClassProperty3.ts, 0, 61)) + + public @dec prop; +>public : Symbol(C.public, Decl(decoratorOnClassProperty3.ts, 2, 9)) +>dec : Symbol(dec, Decl(decoratorOnClassProperty3.ts, 0, 0)) +>prop : Symbol(C.prop, Decl(decoratorOnClassProperty3.ts, 3, 10)) +} diff --git a/tests/baselines/reference/decoratorOnClassProperty3(target=es5).types b/tests/baselines/reference/decoratorOnClassProperty3(target=es5).types new file mode 100644 index 0000000000000..7cbe00b280ca2 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassProperty3(target=es5).types @@ -0,0 +1,23 @@ +//// [tests/cases/conformance/decorators/class/property/decoratorOnClassProperty3.ts] //// + +=== decoratorOnClassProperty3.ts === +declare function dec(target: any, propertyKey: string): void; +>dec : (target: any, propertyKey: string) => void +> : ^ ^^ ^^ ^^ ^^^^^ +>target : any +> : ^^^ +>propertyKey : string +> : ^^^^^^ + +class C { +>C : C +> : ^ + + public @dec prop; +>public : any +> : ^^^ +>dec : (target: any, propertyKey: string) => void +> : ^ ^^ ^^ ^^ ^^^^^ +>prop : any +> : ^^^ +} diff --git a/tests/baselines/reference/decoratorOnClassProperty6.errors.txt b/tests/baselines/reference/decoratorOnClassProperty6(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/decoratorOnClassProperty6.errors.txt rename to tests/baselines/reference/decoratorOnClassProperty6(target=es2015).errors.txt diff --git a/tests/baselines/reference/decoratorOnClassProperty6(target=es2015).js b/tests/baselines/reference/decoratorOnClassProperty6(target=es2015).js new file mode 100644 index 0000000000000..d2b6580681d45 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassProperty6(target=es2015).js @@ -0,0 +1,21 @@ +//// [tests/cases/conformance/decorators/class/property/decoratorOnClassProperty6.ts] //// + +//// [decoratorOnClassProperty6.ts] +declare function dec(target: Function): void; + +class C { + @dec prop; +} + +//// [decoratorOnClassProperty6.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +class C { +} +__decorate([ + dec +], C.prototype, "prop", void 0); diff --git a/tests/baselines/reference/decoratorOnClassProperty6.symbols b/tests/baselines/reference/decoratorOnClassProperty6(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/decoratorOnClassProperty6.symbols rename to tests/baselines/reference/decoratorOnClassProperty6(target=es2015).symbols diff --git a/tests/baselines/reference/decoratorOnClassProperty6.types b/tests/baselines/reference/decoratorOnClassProperty6(target=es2015).types similarity index 100% rename from tests/baselines/reference/decoratorOnClassProperty6.types rename to tests/baselines/reference/decoratorOnClassProperty6(target=es2015).types diff --git a/tests/baselines/reference/decoratorOnClassProperty6(target=es5).errors.txt b/tests/baselines/reference/decoratorOnClassProperty6(target=es5).errors.txt new file mode 100644 index 0000000000000..81048644fd0f6 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassProperty6(target=es5).errors.txt @@ -0,0 +1,13 @@ +decoratorOnClassProperty6.ts(4,6): error TS1240: Unable to resolve signature of property decorator when called as an expression. + The runtime will invoke the decorator with 2 arguments, but the decorator expects 1. + + +==== decoratorOnClassProperty6.ts (1 errors) ==== + declare function dec(target: Function): void; + + class C { + @dec prop; + ~~~ +!!! error TS1240: Unable to resolve signature of property decorator when called as an expression. +!!! error TS1240: The runtime will invoke the decorator with 2 arguments, but the decorator expects 1. + } \ No newline at end of file diff --git a/tests/baselines/reference/decoratorOnClassProperty6.js b/tests/baselines/reference/decoratorOnClassProperty6(target=es5).js similarity index 100% rename from tests/baselines/reference/decoratorOnClassProperty6.js rename to tests/baselines/reference/decoratorOnClassProperty6(target=es5).js diff --git a/tests/baselines/reference/decoratorOnClassProperty6(target=es5).symbols b/tests/baselines/reference/decoratorOnClassProperty6(target=es5).symbols new file mode 100644 index 0000000000000..6617e0b0250fc --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassProperty6(target=es5).symbols @@ -0,0 +1,15 @@ +//// [tests/cases/conformance/decorators/class/property/decoratorOnClassProperty6.ts] //// + +=== decoratorOnClassProperty6.ts === +declare function dec(target: Function): void; +>dec : Symbol(dec, Decl(decoratorOnClassProperty6.ts, 0, 0)) +>target : Symbol(target, Decl(decoratorOnClassProperty6.ts, 0, 21)) +>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + +class C { +>C : Symbol(C, Decl(decoratorOnClassProperty6.ts, 0, 45)) + + @dec prop; +>dec : Symbol(dec, Decl(decoratorOnClassProperty6.ts, 0, 0)) +>prop : Symbol(C.prop, Decl(decoratorOnClassProperty6.ts, 2, 9)) +} diff --git a/tests/baselines/reference/decoratorOnClassProperty6(target=es5).types b/tests/baselines/reference/decoratorOnClassProperty6(target=es5).types new file mode 100644 index 0000000000000..c146b9b6461d3 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassProperty6(target=es5).types @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/decorators/class/property/decoratorOnClassProperty6.ts] //// + +=== decoratorOnClassProperty6.ts === +declare function dec(target: Function): void; +>dec : (target: Function) => void +> : ^ ^^ ^^^^^ +>target : Function +> : ^^^^^^^^ + +class C { +>C : C +> : ^ + + @dec prop; +>dec : (target: Function) => void +> : ^ ^^ ^^^^^ +>prop : any +> : ^^^ +} diff --git a/tests/baselines/reference/decoratorOnClassProperty7.errors.txt b/tests/baselines/reference/decoratorOnClassProperty7(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/decoratorOnClassProperty7.errors.txt rename to tests/baselines/reference/decoratorOnClassProperty7(target=es2015).errors.txt diff --git a/tests/baselines/reference/decoratorOnClassProperty7(target=es2015).js b/tests/baselines/reference/decoratorOnClassProperty7(target=es2015).js new file mode 100644 index 0000000000000..3ccfd882d077f --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassProperty7(target=es2015).js @@ -0,0 +1,21 @@ +//// [tests/cases/conformance/decorators/class/property/decoratorOnClassProperty7.ts] //// + +//// [decoratorOnClassProperty7.ts] +declare function dec(target: Function, propertyKey: string | symbol, paramIndex: number): void; + +class C { + @dec prop; +} + +//// [decoratorOnClassProperty7.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +class C { +} +__decorate([ + dec +], C.prototype, "prop", void 0); diff --git a/tests/baselines/reference/decoratorOnClassProperty7.symbols b/tests/baselines/reference/decoratorOnClassProperty7(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/decoratorOnClassProperty7.symbols rename to tests/baselines/reference/decoratorOnClassProperty7(target=es2015).symbols diff --git a/tests/baselines/reference/decoratorOnClassProperty7.types b/tests/baselines/reference/decoratorOnClassProperty7(target=es2015).types similarity index 100% rename from tests/baselines/reference/decoratorOnClassProperty7.types rename to tests/baselines/reference/decoratorOnClassProperty7(target=es2015).types diff --git a/tests/baselines/reference/decoratorOnClassProperty7(target=es5).errors.txt b/tests/baselines/reference/decoratorOnClassProperty7(target=es5).errors.txt new file mode 100644 index 0000000000000..d81423a074b18 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassProperty7(target=es5).errors.txt @@ -0,0 +1,14 @@ +decoratorOnClassProperty7.ts(4,5): error TS1240: Unable to resolve signature of property decorator when called as an expression. + The runtime will invoke the decorator with 2 arguments, but the decorator expects 3. + + +==== decoratorOnClassProperty7.ts (1 errors) ==== + declare function dec(target: Function, propertyKey: string | symbol, paramIndex: number): void; + + class C { + @dec prop; + ~~~~ +!!! error TS1240: Unable to resolve signature of property decorator when called as an expression. +!!! error TS1240: The runtime will invoke the decorator with 2 arguments, but the decorator expects 3. +!!! related TS6210 decoratorOnClassProperty7.ts:1:70: An argument for 'paramIndex' was not provided. + } \ No newline at end of file diff --git a/tests/baselines/reference/decoratorOnClassProperty7.js b/tests/baselines/reference/decoratorOnClassProperty7(target=es5).js similarity index 100% rename from tests/baselines/reference/decoratorOnClassProperty7.js rename to tests/baselines/reference/decoratorOnClassProperty7(target=es5).js diff --git a/tests/baselines/reference/decoratorOnClassProperty7(target=es5).symbols b/tests/baselines/reference/decoratorOnClassProperty7(target=es5).symbols new file mode 100644 index 0000000000000..d7b89c8bd06d5 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassProperty7(target=es5).symbols @@ -0,0 +1,17 @@ +//// [tests/cases/conformance/decorators/class/property/decoratorOnClassProperty7.ts] //// + +=== decoratorOnClassProperty7.ts === +declare function dec(target: Function, propertyKey: string | symbol, paramIndex: number): void; +>dec : Symbol(dec, Decl(decoratorOnClassProperty7.ts, 0, 0)) +>target : Symbol(target, Decl(decoratorOnClassProperty7.ts, 0, 21)) +>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>propertyKey : Symbol(propertyKey, Decl(decoratorOnClassProperty7.ts, 0, 38)) +>paramIndex : Symbol(paramIndex, Decl(decoratorOnClassProperty7.ts, 0, 68)) + +class C { +>C : Symbol(C, Decl(decoratorOnClassProperty7.ts, 0, 95)) + + @dec prop; +>dec : Symbol(dec, Decl(decoratorOnClassProperty7.ts, 0, 0)) +>prop : Symbol(C.prop, Decl(decoratorOnClassProperty7.ts, 2, 9)) +} diff --git a/tests/baselines/reference/decoratorOnClassProperty7(target=es5).types b/tests/baselines/reference/decoratorOnClassProperty7(target=es5).types new file mode 100644 index 0000000000000..8f18540446132 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassProperty7(target=es5).types @@ -0,0 +1,23 @@ +//// [tests/cases/conformance/decorators/class/property/decoratorOnClassProperty7.ts] //// + +=== decoratorOnClassProperty7.ts === +declare function dec(target: Function, propertyKey: string | symbol, paramIndex: number): void; +>dec : (target: Function, propertyKey: string | symbol, paramIndex: number) => void +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>target : Function +> : ^^^^^^^^ +>propertyKey : string | symbol +> : ^^^^^^^^^^^^^^^ +>paramIndex : number +> : ^^^^^^ + +class C { +>C : C +> : ^ + + @dec prop; +>dec : (target: Function, propertyKey: string | symbol, paramIndex: number) => void +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>prop : any +> : ^^^ +} diff --git a/tests/baselines/reference/decoratorWithNegativeLiteralTypeNoCrash(target=es2015).js b/tests/baselines/reference/decoratorWithNegativeLiteralTypeNoCrash(target=es2015).js new file mode 100644 index 0000000000000..9ccae3a416500 --- /dev/null +++ b/tests/baselines/reference/decoratorWithNegativeLiteralTypeNoCrash(target=es2015).js @@ -0,0 +1,29 @@ +//// [tests/cases/compiler/decoratorWithNegativeLiteralTypeNoCrash.ts] //// + +//// [decoratorWithNegativeLiteralTypeNoCrash.ts] +class A { + @decorator + public field1: -1 = -1; +} +function decorator(target: any, field: any) {} + +//// [decoratorWithNegativeLiteralTypeNoCrash.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; +class A { + constructor() { + this.field1 = -1; + } +} +__decorate([ + decorator, + __metadata("design:type", Number) +], A.prototype, "field1", void 0); +function decorator(target, field) { } diff --git a/tests/baselines/reference/decoratorWithNegativeLiteralTypeNoCrash.symbols b/tests/baselines/reference/decoratorWithNegativeLiteralTypeNoCrash(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/decoratorWithNegativeLiteralTypeNoCrash.symbols rename to tests/baselines/reference/decoratorWithNegativeLiteralTypeNoCrash(target=es2015).symbols diff --git a/tests/baselines/reference/decoratorWithNegativeLiteralTypeNoCrash.types b/tests/baselines/reference/decoratorWithNegativeLiteralTypeNoCrash(target=es2015).types similarity index 100% rename from tests/baselines/reference/decoratorWithNegativeLiteralTypeNoCrash.types rename to tests/baselines/reference/decoratorWithNegativeLiteralTypeNoCrash(target=es2015).types diff --git a/tests/baselines/reference/decoratorWithNegativeLiteralTypeNoCrash.js b/tests/baselines/reference/decoratorWithNegativeLiteralTypeNoCrash(target=es5).js similarity index 100% rename from tests/baselines/reference/decoratorWithNegativeLiteralTypeNoCrash.js rename to tests/baselines/reference/decoratorWithNegativeLiteralTypeNoCrash(target=es5).js diff --git a/tests/baselines/reference/decoratorWithNegativeLiteralTypeNoCrash(target=es5).symbols b/tests/baselines/reference/decoratorWithNegativeLiteralTypeNoCrash(target=es5).symbols new file mode 100644 index 0000000000000..c76ac5b15ea31 --- /dev/null +++ b/tests/baselines/reference/decoratorWithNegativeLiteralTypeNoCrash(target=es5).symbols @@ -0,0 +1,17 @@ +//// [tests/cases/compiler/decoratorWithNegativeLiteralTypeNoCrash.ts] //// + +=== decoratorWithNegativeLiteralTypeNoCrash.ts === +class A { +>A : Symbol(A, Decl(decoratorWithNegativeLiteralTypeNoCrash.ts, 0, 0)) + + @decorator +>decorator : Symbol(decorator, Decl(decoratorWithNegativeLiteralTypeNoCrash.ts, 3, 1)) + + public field1: -1 = -1; +>field1 : Symbol(A.field1, Decl(decoratorWithNegativeLiteralTypeNoCrash.ts, 0, 9)) +} +function decorator(target: any, field: any) {} +>decorator : Symbol(decorator, Decl(decoratorWithNegativeLiteralTypeNoCrash.ts, 3, 1)) +>target : Symbol(target, Decl(decoratorWithNegativeLiteralTypeNoCrash.ts, 4, 19)) +>field : Symbol(field, Decl(decoratorWithNegativeLiteralTypeNoCrash.ts, 4, 31)) + diff --git a/tests/baselines/reference/decoratorWithNegativeLiteralTypeNoCrash(target=es5).types b/tests/baselines/reference/decoratorWithNegativeLiteralTypeNoCrash(target=es5).types new file mode 100644 index 0000000000000..9e32aedb683e4 --- /dev/null +++ b/tests/baselines/reference/decoratorWithNegativeLiteralTypeNoCrash(target=es5).types @@ -0,0 +1,29 @@ +//// [tests/cases/compiler/decoratorWithNegativeLiteralTypeNoCrash.ts] //// + +=== decoratorWithNegativeLiteralTypeNoCrash.ts === +class A { +>A : A +> : ^ + + @decorator +>decorator : (target: any, field: any) => void +> : ^ ^^ ^^ ^^ ^^^^^^^^^ + + public field1: -1 = -1; +>field1 : -1 +> : ^^ +>-1 : -1 +> : ^^ +>1 : 1 +> : ^ +>-1 : -1 +> : ^^ +>1 : 1 +> : ^ +} +function decorator(target: any, field: any) {} +>decorator : (target: any, field: any) => void +> : ^ ^^ ^^ ^^ ^^^^^^^^^ +>target : any +>field : any + diff --git a/tests/baselines/reference/defaultExportWithOverloads01(target=es2015).js b/tests/baselines/reference/defaultExportWithOverloads01(target=es2015).js new file mode 100644 index 0000000000000..e033a5a5bddb3 --- /dev/null +++ b/tests/baselines/reference/defaultExportWithOverloads01(target=es2015).js @@ -0,0 +1,14 @@ +//// [tests/cases/conformance/es6/modules/defaultExportWithOverloads01.ts] //// + +//// [defaultExportWithOverloads01.ts] +export default function f(); +export default function f(x: string); +export default function f(...args: any[]) { +} + +//// [defaultExportWithOverloads01.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = f; +function f(...args) { +} diff --git a/tests/baselines/reference/defaultExportWithOverloads01.symbols b/tests/baselines/reference/defaultExportWithOverloads01(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/defaultExportWithOverloads01.symbols rename to tests/baselines/reference/defaultExportWithOverloads01(target=es2015).symbols diff --git a/tests/baselines/reference/defaultExportWithOverloads01.types b/tests/baselines/reference/defaultExportWithOverloads01(target=es2015).types similarity index 100% rename from tests/baselines/reference/defaultExportWithOverloads01.types rename to tests/baselines/reference/defaultExportWithOverloads01(target=es2015).types diff --git a/tests/baselines/reference/defaultExportWithOverloads01.js b/tests/baselines/reference/defaultExportWithOverloads01(target=es5).js similarity index 100% rename from tests/baselines/reference/defaultExportWithOverloads01.js rename to tests/baselines/reference/defaultExportWithOverloads01(target=es5).js diff --git a/tests/baselines/reference/defaultExportWithOverloads01(target=es5).symbols b/tests/baselines/reference/defaultExportWithOverloads01(target=es5).symbols new file mode 100644 index 0000000000000..ff5cc17194f9d --- /dev/null +++ b/tests/baselines/reference/defaultExportWithOverloads01(target=es5).symbols @@ -0,0 +1,14 @@ +//// [tests/cases/conformance/es6/modules/defaultExportWithOverloads01.ts] //// + +=== defaultExportWithOverloads01.ts === +export default function f(); +>f : Symbol(f, Decl(defaultExportWithOverloads01.ts, 0, 0), Decl(defaultExportWithOverloads01.ts, 0, 28), Decl(defaultExportWithOverloads01.ts, 1, 37)) + +export default function f(x: string); +>f : Symbol(f, Decl(defaultExportWithOverloads01.ts, 0, 0), Decl(defaultExportWithOverloads01.ts, 0, 28), Decl(defaultExportWithOverloads01.ts, 1, 37)) +>x : Symbol(x, Decl(defaultExportWithOverloads01.ts, 1, 26)) + +export default function f(...args: any[]) { +>f : Symbol(f, Decl(defaultExportWithOverloads01.ts, 0, 0), Decl(defaultExportWithOverloads01.ts, 0, 28), Decl(defaultExportWithOverloads01.ts, 1, 37)) +>args : Symbol(args, Decl(defaultExportWithOverloads01.ts, 2, 26)) +} diff --git a/tests/baselines/reference/defaultExportWithOverloads01(target=es5).types b/tests/baselines/reference/defaultExportWithOverloads01(target=es5).types new file mode 100644 index 0000000000000..54c5595f1ca9b --- /dev/null +++ b/tests/baselines/reference/defaultExportWithOverloads01(target=es5).types @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/es6/modules/defaultExportWithOverloads01.ts] //// + +=== defaultExportWithOverloads01.ts === +export default function f(); +>f : { (): any; (x: string): any; } +> : ^^^^^^^^^^^^ ^^ ^^^^^^^^^ + +export default function f(x: string); +>f : { (): any; (x: string): any; } +> : ^^^^^^^^^^^^ ^^ ^^^^^^^^^ +>x : string +> : ^^^^^^ + +export default function f(...args: any[]) { +>f : { (): any; (x: string): any; } +> : ^^^^^^^^^^^^ ^^ ^^^^^^^^^ +>args : any[] +> : ^^^^^ +} diff --git a/tests/baselines/reference/defaultExportsCannotMerge01.errors.txt b/tests/baselines/reference/defaultExportsCannotMerge01(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/defaultExportsCannotMerge01.errors.txt rename to tests/baselines/reference/defaultExportsCannotMerge01(target=es2015).errors.txt diff --git a/tests/baselines/reference/defaultExportsCannotMerge01(target=es2015).js b/tests/baselines/reference/defaultExportsCannotMerge01(target=es2015).js new file mode 100644 index 0000000000000..da58267ce1471 --- /dev/null +++ b/tests/baselines/reference/defaultExportsCannotMerge01(target=es2015).js @@ -0,0 +1,54 @@ +//// [tests/cases/conformance/es6/modules/defaultExportsCannotMerge01.ts] //// + +//// [m1.ts] +export default function Decl() { + return 0; +} + +export interface Decl { + p1: number; + p2: number; +} + +export namespace Decl { + export var x = 10; + export var y = 20; + + interface I { + } +} + +//// [m2.ts] +import Entity from "m1" + +Entity(); + +var x: Entity; +var y: Entity.I; + +Entity.x; +Entity.y; + +//// [m1.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = Decl; +function Decl() { + return 0; +} +(function (Decl) { + Decl.x = 10; + Decl.y = 20; +})(Decl || (Decl = {})); +//// [m2.js] +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const m1_1 = __importDefault(require("m1")); +(0, m1_1.default)(); +var x; +var y; +m1_1.default.x; +m1_1.default.y; diff --git a/tests/baselines/reference/defaultExportsCannotMerge01.symbols b/tests/baselines/reference/defaultExportsCannotMerge01(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/defaultExportsCannotMerge01.symbols rename to tests/baselines/reference/defaultExportsCannotMerge01(target=es2015).symbols diff --git a/tests/baselines/reference/defaultExportsCannotMerge01.types b/tests/baselines/reference/defaultExportsCannotMerge01(target=es2015).types similarity index 100% rename from tests/baselines/reference/defaultExportsCannotMerge01.types rename to tests/baselines/reference/defaultExportsCannotMerge01(target=es2015).types diff --git a/tests/baselines/reference/defaultExportsCannotMerge01(target=es5).errors.txt b/tests/baselines/reference/defaultExportsCannotMerge01(target=es5).errors.txt new file mode 100644 index 0000000000000..03b907776ba7c --- /dev/null +++ b/tests/baselines/reference/defaultExportsCannotMerge01(target=es5).errors.txt @@ -0,0 +1,39 @@ +m1.ts(1,25): error TS2652: Merged declaration 'Decl' cannot include a default export declaration. Consider adding a separate 'export default Decl' declaration instead. +m1.ts(10,18): error TS2652: Merged declaration 'Decl' cannot include a default export declaration. Consider adding a separate 'export default Decl' declaration instead. +m2.ts(1,20): error TS2307: Cannot find module 'm1' or its corresponding type declarations. + + +==== m1.ts (2 errors) ==== + export default function Decl() { + ~~~~ +!!! error TS2652: Merged declaration 'Decl' cannot include a default export declaration. Consider adding a separate 'export default Decl' declaration instead. + return 0; + } + + export interface Decl { + p1: number; + p2: number; + } + + export namespace Decl { + ~~~~ +!!! error TS2652: Merged declaration 'Decl' cannot include a default export declaration. Consider adding a separate 'export default Decl' declaration instead. + export var x = 10; + export var y = 20; + + interface I { + } + } + +==== m2.ts (1 errors) ==== + import Entity from "m1" + ~~~~ +!!! error TS2307: Cannot find module 'm1' or its corresponding type declarations. + + Entity(); + + var x: Entity; + var y: Entity.I; + + Entity.x; + Entity.y; \ No newline at end of file diff --git a/tests/baselines/reference/defaultExportsCannotMerge01.js b/tests/baselines/reference/defaultExportsCannotMerge01(target=es5).js similarity index 100% rename from tests/baselines/reference/defaultExportsCannotMerge01.js rename to tests/baselines/reference/defaultExportsCannotMerge01(target=es5).js diff --git a/tests/baselines/reference/defaultExportsCannotMerge01(target=es5).symbols b/tests/baselines/reference/defaultExportsCannotMerge01(target=es5).symbols new file mode 100644 index 0000000000000..4ff4a578f6092 --- /dev/null +++ b/tests/baselines/reference/defaultExportsCannotMerge01(target=es5).symbols @@ -0,0 +1,55 @@ +//// [tests/cases/conformance/es6/modules/defaultExportsCannotMerge01.ts] //// + +=== m1.ts === +export default function Decl() { +>Decl : Symbol(Decl, Decl(m1.ts, 0, 0)) + + return 0; +} + +export interface Decl { +>Decl : Symbol(Decl, Decl(m1.ts, 2, 1), Decl(m1.ts, 7, 1)) + + p1: number; +>p1 : Symbol(Decl.p1, Decl(m1.ts, 4, 23)) + + p2: number; +>p2 : Symbol(Decl.p2, Decl(m1.ts, 5, 15)) +} + +export namespace Decl { +>Decl : Symbol(Decl, Decl(m1.ts, 2, 1), Decl(m1.ts, 7, 1)) + + export var x = 10; +>x : Symbol(x, Decl(m1.ts, 10, 14)) + + export var y = 20; +>y : Symbol(y, Decl(m1.ts, 11, 14)) + + interface I { +>I : Symbol(I, Decl(m1.ts, 11, 22)) + } +} + +=== m2.ts === +import Entity from "m1" +>Entity : Symbol(Entity, Decl(m2.ts, 0, 6)) + +Entity(); +>Entity : Symbol(Entity, Decl(m2.ts, 0, 6)) + +var x: Entity; +>x : Symbol(x, Decl(m2.ts, 4, 3)) +>Entity : Symbol(Entity, Decl(m2.ts, 0, 6)) + +var y: Entity.I; +>y : Symbol(y, Decl(m2.ts, 5, 3)) +>Entity : Symbol(Entity, Decl(m2.ts, 0, 6)) +>I : Symbol(Entity.I) + +Entity.x; +>Entity : Symbol(Entity, Decl(m2.ts, 0, 6)) + +Entity.y; +>Entity : Symbol(Entity, Decl(m2.ts, 0, 6)) + diff --git a/tests/baselines/reference/defaultExportsCannotMerge01(target=es5).types b/tests/baselines/reference/defaultExportsCannotMerge01(target=es5).types new file mode 100644 index 0000000000000..713421343ad36 --- /dev/null +++ b/tests/baselines/reference/defaultExportsCannotMerge01(target=es5).types @@ -0,0 +1,79 @@ +//// [tests/cases/conformance/es6/modules/defaultExportsCannotMerge01.ts] //// + +=== m1.ts === +export default function Decl() { +>Decl : () => number +> : ^^^^^^^^^^^^ + + return 0; +>0 : 0 +> : ^ +} + +export interface Decl { + p1: number; +>p1 : number +> : ^^^^^^ + + p2: number; +>p2 : number +> : ^^^^^^ +} + +export namespace Decl { +>Decl : typeof Decl +> : ^^^^^^^^^^^ + + export var x = 10; +>x : number +> : ^^^^^^ +>10 : 10 +> : ^^ + + export var y = 20; +>y : number +> : ^^^^^^ +>20 : 20 +> : ^^ + + interface I { + } +} + +=== m2.ts === +import Entity from "m1" +>Entity : any +> : ^^^ + +Entity(); +>Entity() : any +> : ^^^ +>Entity : any +> : ^^^ + +var x: Entity; +>x : Entity +> : ^^^^^^ + +var y: Entity.I; +>y : Entity.I +> : ^^^^^^^^ +>Entity : any +> : ^^^ + +Entity.x; +>Entity.x : any +> : ^^^ +>Entity : any +> : ^^^ +>x : any +> : ^^^ + +Entity.y; +>Entity.y : any +> : ^^^ +>Entity : any +> : ^^^ +>y : any +> : ^^^ + diff --git a/tests/baselines/reference/defaultExportsCannotMerge02.errors.txt b/tests/baselines/reference/defaultExportsCannotMerge02(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/defaultExportsCannotMerge02.errors.txt rename to tests/baselines/reference/defaultExportsCannotMerge02(target=es2015).errors.txt diff --git a/tests/baselines/reference/defaultExportsCannotMerge02(target=es2015).js b/tests/baselines/reference/defaultExportsCannotMerge02(target=es2015).js new file mode 100644 index 0000000000000..32a56fbed8103 --- /dev/null +++ b/tests/baselines/reference/defaultExportsCannotMerge02(target=es2015).js @@ -0,0 +1,44 @@ +//// [tests/cases/conformance/es6/modules/defaultExportsCannotMerge02.ts] //// + +//// [m1.ts] +export default class Decl { +} + +export interface Decl { + p1: number; + p2: number; +} + +export namespace Decl { + interface I { + } +} + +//// [m2.ts] +import Entity from "m1" + +Entity(); + +var x: Entity; +var y: Entity.I; +var z = new Entity(); +var sum = z.p1 + z.p2 + +//// [m1.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +class Decl { +} +exports.default = Decl; +//// [m2.js] +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const m1_1 = __importDefault(require("m1")); +(0, m1_1.default)(); +var x; +var y; +var z = new m1_1.default(); +var sum = z.p1 + z.p2; diff --git a/tests/baselines/reference/defaultExportsCannotMerge02.symbols b/tests/baselines/reference/defaultExportsCannotMerge02(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/defaultExportsCannotMerge02.symbols rename to tests/baselines/reference/defaultExportsCannotMerge02(target=es2015).symbols diff --git a/tests/baselines/reference/defaultExportsCannotMerge02.types b/tests/baselines/reference/defaultExportsCannotMerge02(target=es2015).types similarity index 100% rename from tests/baselines/reference/defaultExportsCannotMerge02.types rename to tests/baselines/reference/defaultExportsCannotMerge02(target=es2015).types diff --git a/tests/baselines/reference/defaultExportsCannotMerge02(target=es5).errors.txt b/tests/baselines/reference/defaultExportsCannotMerge02(target=es5).errors.txt new file mode 100644 index 0000000000000..c5beac6d30822 --- /dev/null +++ b/tests/baselines/reference/defaultExportsCannotMerge02(target=es5).errors.txt @@ -0,0 +1,34 @@ +m1.ts(1,22): error TS2652: Merged declaration 'Decl' cannot include a default export declaration. Consider adding a separate 'export default Decl' declaration instead. +m1.ts(4,18): error TS2652: Merged declaration 'Decl' cannot include a default export declaration. Consider adding a separate 'export default Decl' declaration instead. +m2.ts(1,20): error TS2307: Cannot find module 'm1' or its corresponding type declarations. + + +==== m1.ts (2 errors) ==== + export default class Decl { + ~~~~ +!!! error TS2652: Merged declaration 'Decl' cannot include a default export declaration. Consider adding a separate 'export default Decl' declaration instead. + } + + export interface Decl { + ~~~~ +!!! error TS2652: Merged declaration 'Decl' cannot include a default export declaration. Consider adding a separate 'export default Decl' declaration instead. + p1: number; + p2: number; + } + + export namespace Decl { + interface I { + } + } + +==== m2.ts (1 errors) ==== + import Entity from "m1" + ~~~~ +!!! error TS2307: Cannot find module 'm1' or its corresponding type declarations. + + Entity(); + + var x: Entity; + var y: Entity.I; + var z = new Entity(); + var sum = z.p1 + z.p2 \ No newline at end of file diff --git a/tests/baselines/reference/defaultExportsCannotMerge02.js b/tests/baselines/reference/defaultExportsCannotMerge02(target=es5).js similarity index 100% rename from tests/baselines/reference/defaultExportsCannotMerge02.js rename to tests/baselines/reference/defaultExportsCannotMerge02(target=es5).js diff --git a/tests/baselines/reference/defaultExportsCannotMerge02(target=es5).symbols b/tests/baselines/reference/defaultExportsCannotMerge02(target=es5).symbols new file mode 100644 index 0000000000000..2dedd5fd349dc --- /dev/null +++ b/tests/baselines/reference/defaultExportsCannotMerge02(target=es5).symbols @@ -0,0 +1,50 @@ +//// [tests/cases/conformance/es6/modules/defaultExportsCannotMerge02.ts] //// + +=== m1.ts === +export default class Decl { +>Decl : Symbol(Decl, Decl(m1.ts, 0, 0)) +} + +export interface Decl { +>Decl : Symbol(Decl, Decl(m1.ts, 1, 1), Decl(m1.ts, 6, 1)) + + p1: number; +>p1 : Symbol(Decl.p1, Decl(m1.ts, 3, 23)) + + p2: number; +>p2 : Symbol(Decl.p2, Decl(m1.ts, 4, 15)) +} + +export namespace Decl { +>Decl : Symbol(Decl, Decl(m1.ts, 1, 1), Decl(m1.ts, 6, 1)) + + interface I { +>I : Symbol(I, Decl(m1.ts, 8, 23)) + } +} + +=== m2.ts === +import Entity from "m1" +>Entity : Symbol(Entity, Decl(m2.ts, 0, 6)) + +Entity(); +>Entity : Symbol(Entity, Decl(m2.ts, 0, 6)) + +var x: Entity; +>x : Symbol(x, Decl(m2.ts, 4, 3)) +>Entity : Symbol(Entity, Decl(m2.ts, 0, 6)) + +var y: Entity.I; +>y : Symbol(y, Decl(m2.ts, 5, 3)) +>Entity : Symbol(Entity, Decl(m2.ts, 0, 6)) +>I : Symbol(Entity.I) + +var z = new Entity(); +>z : Symbol(z, Decl(m2.ts, 6, 3)) +>Entity : Symbol(Entity, Decl(m2.ts, 0, 6)) + +var sum = z.p1 + z.p2 +>sum : Symbol(sum, Decl(m2.ts, 7, 3)) +>z : Symbol(z, Decl(m2.ts, 6, 3)) +>z : Symbol(z, Decl(m2.ts, 6, 3)) + diff --git a/tests/baselines/reference/defaultExportsCannotMerge02(target=es5).types b/tests/baselines/reference/defaultExportsCannotMerge02(target=es5).types new file mode 100644 index 0000000000000..75f02b6f4e813 --- /dev/null +++ b/tests/baselines/reference/defaultExportsCannotMerge02(target=es5).types @@ -0,0 +1,70 @@ +//// [tests/cases/conformance/es6/modules/defaultExportsCannotMerge02.ts] //// + +=== m1.ts === +export default class Decl { +>Decl : Decl +> : ^^^^ +} + +export interface Decl { + p1: number; +>p1 : number +> : ^^^^^^ + + p2: number; +>p2 : number +> : ^^^^^^ +} + +export namespace Decl { + interface I { + } +} + +=== m2.ts === +import Entity from "m1" +>Entity : any +> : ^^^ + +Entity(); +>Entity() : any +> : ^^^ +>Entity : any +> : ^^^ + +var x: Entity; +>x : Entity +> : ^^^^^^ + +var y: Entity.I; +>y : Entity.I +> : ^^^^^^^^ +>Entity : any +> : ^^^ + +var z = new Entity(); +>z : any +> : ^^^ +>new Entity() : any +> : ^^^ +>Entity : any +> : ^^^ + +var sum = z.p1 + z.p2 +>sum : any +> : ^^^ +>z.p1 + z.p2 : any +> : ^^^ +>z.p1 : any +> : ^^^ +>z : any +> : ^^^ +>p1 : any +> : ^^^ +>z.p2 : any +> : ^^^ +>z : any +> : ^^^ +>p2 : any +> : ^^^ + diff --git a/tests/baselines/reference/defaultExportsCannotMerge03.errors.txt b/tests/baselines/reference/defaultExportsCannotMerge03(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/defaultExportsCannotMerge03.errors.txt rename to tests/baselines/reference/defaultExportsCannotMerge03(target=es2015).errors.txt diff --git a/tests/baselines/reference/defaultExportsCannotMerge03(target=es2015).js b/tests/baselines/reference/defaultExportsCannotMerge03(target=es2015).js new file mode 100644 index 0000000000000..91aefd147dec0 --- /dev/null +++ b/tests/baselines/reference/defaultExportsCannotMerge03(target=es2015).js @@ -0,0 +1,44 @@ +//// [tests/cases/conformance/es6/modules/defaultExportsCannotMerge03.ts] //// + +//// [m1.ts] +export default class Decl { +} + +interface Decl { + p1: number; + p2: number; +} + +namespace Decl { + interface I { + } +} + +//// [m2.ts] +import Entity from "m1" + +Entity(); + +var x: Entity; +var y: Entity.I; +var z = new Entity(); +var sum = z.p1 + z.p2 + +//// [m1.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +class Decl { +} +exports.default = Decl; +//// [m2.js] +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const m1_1 = __importDefault(require("m1")); +(0, m1_1.default)(); +var x; +var y; +var z = new m1_1.default(); +var sum = z.p1 + z.p2; diff --git a/tests/baselines/reference/defaultExportsCannotMerge03.symbols b/tests/baselines/reference/defaultExportsCannotMerge03(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/defaultExportsCannotMerge03.symbols rename to tests/baselines/reference/defaultExportsCannotMerge03(target=es2015).symbols diff --git a/tests/baselines/reference/defaultExportsCannotMerge03.types b/tests/baselines/reference/defaultExportsCannotMerge03(target=es2015).types similarity index 100% rename from tests/baselines/reference/defaultExportsCannotMerge03.types rename to tests/baselines/reference/defaultExportsCannotMerge03(target=es2015).types diff --git a/tests/baselines/reference/defaultExportsCannotMerge03(target=es5).errors.txt b/tests/baselines/reference/defaultExportsCannotMerge03(target=es5).errors.txt new file mode 100644 index 0000000000000..60b510fbd39c2 --- /dev/null +++ b/tests/baselines/reference/defaultExportsCannotMerge03(target=es5).errors.txt @@ -0,0 +1,34 @@ +m1.ts(1,22): error TS2652: Merged declaration 'Decl' cannot include a default export declaration. Consider adding a separate 'export default Decl' declaration instead. +m1.ts(4,11): error TS2652: Merged declaration 'Decl' cannot include a default export declaration. Consider adding a separate 'export default Decl' declaration instead. +m2.ts(1,20): error TS2307: Cannot find module 'm1' or its corresponding type declarations. + + +==== m1.ts (2 errors) ==== + export default class Decl { + ~~~~ +!!! error TS2652: Merged declaration 'Decl' cannot include a default export declaration. Consider adding a separate 'export default Decl' declaration instead. + } + + interface Decl { + ~~~~ +!!! error TS2652: Merged declaration 'Decl' cannot include a default export declaration. Consider adding a separate 'export default Decl' declaration instead. + p1: number; + p2: number; + } + + namespace Decl { + interface I { + } + } + +==== m2.ts (1 errors) ==== + import Entity from "m1" + ~~~~ +!!! error TS2307: Cannot find module 'm1' or its corresponding type declarations. + + Entity(); + + var x: Entity; + var y: Entity.I; + var z = new Entity(); + var sum = z.p1 + z.p2 \ No newline at end of file diff --git a/tests/baselines/reference/defaultExportsCannotMerge03.js b/tests/baselines/reference/defaultExportsCannotMerge03(target=es5).js similarity index 100% rename from tests/baselines/reference/defaultExportsCannotMerge03.js rename to tests/baselines/reference/defaultExportsCannotMerge03(target=es5).js diff --git a/tests/baselines/reference/defaultExportsCannotMerge03(target=es5).symbols b/tests/baselines/reference/defaultExportsCannotMerge03(target=es5).symbols new file mode 100644 index 0000000000000..77969f61e9e33 --- /dev/null +++ b/tests/baselines/reference/defaultExportsCannotMerge03(target=es5).symbols @@ -0,0 +1,50 @@ +//// [tests/cases/conformance/es6/modules/defaultExportsCannotMerge03.ts] //// + +=== m1.ts === +export default class Decl { +>Decl : Symbol(Decl, Decl(m1.ts, 0, 0)) +} + +interface Decl { +>Decl : Symbol(Decl, Decl(m1.ts, 0, 0), Decl(m1.ts, 1, 1), Decl(m1.ts, 6, 1)) + + p1: number; +>p1 : Symbol(Decl.p1, Decl(m1.ts, 3, 16)) + + p2: number; +>p2 : Symbol(Decl.p2, Decl(m1.ts, 4, 15)) +} + +namespace Decl { +>Decl : Symbol(Decl, Decl(m1.ts, 0, 0), Decl(m1.ts, 1, 1), Decl(m1.ts, 6, 1)) + + interface I { +>I : Symbol(I, Decl(m1.ts, 8, 16)) + } +} + +=== m2.ts === +import Entity from "m1" +>Entity : Symbol(Entity, Decl(m2.ts, 0, 6)) + +Entity(); +>Entity : Symbol(Entity, Decl(m2.ts, 0, 6)) + +var x: Entity; +>x : Symbol(x, Decl(m2.ts, 4, 3)) +>Entity : Symbol(Entity, Decl(m2.ts, 0, 6)) + +var y: Entity.I; +>y : Symbol(y, Decl(m2.ts, 5, 3)) +>Entity : Symbol(Entity, Decl(m2.ts, 0, 6)) +>I : Symbol(Entity.I) + +var z = new Entity(); +>z : Symbol(z, Decl(m2.ts, 6, 3)) +>Entity : Symbol(Entity, Decl(m2.ts, 0, 6)) + +var sum = z.p1 + z.p2 +>sum : Symbol(sum, Decl(m2.ts, 7, 3)) +>z : Symbol(z, Decl(m2.ts, 6, 3)) +>z : Symbol(z, Decl(m2.ts, 6, 3)) + diff --git a/tests/baselines/reference/defaultExportsCannotMerge03(target=es5).types b/tests/baselines/reference/defaultExportsCannotMerge03(target=es5).types new file mode 100644 index 0000000000000..964023afed7ac --- /dev/null +++ b/tests/baselines/reference/defaultExportsCannotMerge03(target=es5).types @@ -0,0 +1,70 @@ +//// [tests/cases/conformance/es6/modules/defaultExportsCannotMerge03.ts] //// + +=== m1.ts === +export default class Decl { +>Decl : Decl +> : ^^^^ +} + +interface Decl { + p1: number; +>p1 : number +> : ^^^^^^ + + p2: number; +>p2 : number +> : ^^^^^^ +} + +namespace Decl { + interface I { + } +} + +=== m2.ts === +import Entity from "m1" +>Entity : any +> : ^^^ + +Entity(); +>Entity() : any +> : ^^^ +>Entity : any +> : ^^^ + +var x: Entity; +>x : Entity +> : ^^^^^^ + +var y: Entity.I; +>y : Entity.I +> : ^^^^^^^^ +>Entity : any +> : ^^^ + +var z = new Entity(); +>z : any +> : ^^^ +>new Entity() : any +> : ^^^ +>Entity : any +> : ^^^ + +var sum = z.p1 + z.p2 +>sum : any +> : ^^^ +>z.p1 + z.p2 : any +> : ^^^ +>z.p1 : any +> : ^^^ +>z : any +> : ^^^ +>p1 : any +> : ^^^ +>z.p2 : any +> : ^^^ +>z : any +> : ^^^ +>p2 : any +> : ^^^ + diff --git a/tests/baselines/reference/defaultExportsCannotMerge04.errors.txt b/tests/baselines/reference/defaultExportsCannotMerge04(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/defaultExportsCannotMerge04.errors.txt rename to tests/baselines/reference/defaultExportsCannotMerge04(target=es2015).errors.txt diff --git a/tests/baselines/reference/defaultExportsCannotMerge04.js b/tests/baselines/reference/defaultExportsCannotMerge04(target=es2015).js similarity index 100% rename from tests/baselines/reference/defaultExportsCannotMerge04.js rename to tests/baselines/reference/defaultExportsCannotMerge04(target=es2015).js diff --git a/tests/baselines/reference/defaultExportsCannotMerge04.symbols b/tests/baselines/reference/defaultExportsCannotMerge04(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/defaultExportsCannotMerge04.symbols rename to tests/baselines/reference/defaultExportsCannotMerge04(target=es2015).symbols diff --git a/tests/baselines/reference/defaultExportsCannotMerge04.types b/tests/baselines/reference/defaultExportsCannotMerge04(target=es2015).types similarity index 100% rename from tests/baselines/reference/defaultExportsCannotMerge04.types rename to tests/baselines/reference/defaultExportsCannotMerge04(target=es2015).types diff --git a/tests/baselines/reference/defaultExportsCannotMerge04(target=es5).errors.txt b/tests/baselines/reference/defaultExportsCannotMerge04(target=es5).errors.txt new file mode 100644 index 0000000000000..0eb8ad763fcfb --- /dev/null +++ b/tests/baselines/reference/defaultExportsCannotMerge04(target=es5).errors.txt @@ -0,0 +1,27 @@ +defaultExportsCannotMerge04.ts(1,25): error TS2652: Merged declaration 'Foo' cannot include a default export declaration. Consider adding a separate 'export default Foo' declaration instead. +defaultExportsCannotMerge04.ts(4,11): error TS2652: Merged declaration 'Foo' cannot include a default export declaration. Consider adding a separate 'export default Foo' declaration instead. +defaultExportsCannotMerge04.ts(8,11): error TS2395: Individual declarations in merged declaration 'Foo' must be all exported or all local. +defaultExportsCannotMerge04.ts(11,18): error TS2395: Individual declarations in merged declaration 'Foo' must be all exported or all local. + + +==== defaultExportsCannotMerge04.ts (4 errors) ==== + export default function Foo() { + ~~~ +!!! error TS2652: Merged declaration 'Foo' cannot include a default export declaration. Consider adding a separate 'export default Foo' declaration instead. + } + + namespace Foo { + ~~~ +!!! error TS2652: Merged declaration 'Foo' cannot include a default export declaration. Consider adding a separate 'export default Foo' declaration instead. + export var x; + } + + interface Foo { + ~~~ +!!! error TS2395: Individual declarations in merged declaration 'Foo' must be all exported or all local. + } + + export interface Foo { + ~~~ +!!! error TS2395: Individual declarations in merged declaration 'Foo' must be all exported or all local. + } \ No newline at end of file diff --git a/tests/baselines/reference/defaultExportsCannotMerge04(target=es5).js b/tests/baselines/reference/defaultExportsCannotMerge04(target=es5).js new file mode 100644 index 0000000000000..21a972584437e --- /dev/null +++ b/tests/baselines/reference/defaultExportsCannotMerge04(target=es5).js @@ -0,0 +1,24 @@ +//// [tests/cases/conformance/es6/modules/defaultExportsCannotMerge04.ts] //// + +//// [defaultExportsCannotMerge04.ts] +export default function Foo() { +} + +namespace Foo { + export var x; +} + +interface Foo { +} + +export interface Foo { +} + +//// [defaultExportsCannotMerge04.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = Foo; +function Foo() { +} +(function (Foo) { +})(exports.Foo || (exports.Foo = {})); diff --git a/tests/baselines/reference/defaultExportsCannotMerge04(target=es5).symbols b/tests/baselines/reference/defaultExportsCannotMerge04(target=es5).symbols new file mode 100644 index 0000000000000..943c1e8527136 --- /dev/null +++ b/tests/baselines/reference/defaultExportsCannotMerge04(target=es5).symbols @@ -0,0 +1,21 @@ +//// [tests/cases/conformance/es6/modules/defaultExportsCannotMerge04.ts] //// + +=== defaultExportsCannotMerge04.ts === +export default function Foo() { +>Foo : Symbol(Foo, Decl(defaultExportsCannotMerge04.ts, 0, 0)) +} + +namespace Foo { +>Foo : Symbol(Foo, Decl(defaultExportsCannotMerge04.ts, 0, 0), Decl(defaultExportsCannotMerge04.ts, 1, 1), Decl(defaultExportsCannotMerge04.ts, 5, 1), Decl(defaultExportsCannotMerge04.ts, 8, 1)) + + export var x; +>x : Symbol(x, Decl(defaultExportsCannotMerge04.ts, 4, 14)) +} + +interface Foo { +>Foo : Symbol(Foo, Decl(defaultExportsCannotMerge04.ts, 0, 0), Decl(defaultExportsCannotMerge04.ts, 1, 1), Decl(defaultExportsCannotMerge04.ts, 5, 1), Decl(defaultExportsCannotMerge04.ts, 8, 1)) +} + +export interface Foo { +>Foo : Symbol(Foo, Decl(defaultExportsCannotMerge04.ts, 8, 1)) +} diff --git a/tests/baselines/reference/defaultExportsCannotMerge04(target=es5).types b/tests/baselines/reference/defaultExportsCannotMerge04(target=es5).types new file mode 100644 index 0000000000000..6f67635a16776 --- /dev/null +++ b/tests/baselines/reference/defaultExportsCannotMerge04(target=es5).types @@ -0,0 +1,22 @@ +//// [tests/cases/conformance/es6/modules/defaultExportsCannotMerge04.ts] //// + +=== defaultExportsCannotMerge04.ts === +export default function Foo() { +>Foo : () => void +> : ^^^^^^^^^^ +} + +namespace Foo { +>Foo : typeof Foo +> : ^^^^^^^^^^ + + export var x; +>x : any +> : ^^^ +} + +interface Foo { +} + +export interface Foo { +} diff --git a/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01(target=es2015).js b/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01(target=es2015).js new file mode 100644 index 0000000000000..8eb704282657d --- /dev/null +++ b/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01(target=es2015).js @@ -0,0 +1,67 @@ +//// [tests/cases/compiler/derivedClassConstructorWithExplicitReturns01.ts] //// + +//// [derivedClassConstructorWithExplicitReturns01.ts] +class C { + cProp = 10; + + foo() { return "this never gets used."; } + + constructor(value: number) { + return { + cProp: value, + foo() { + return "well this looks kinda C-ish."; + } + } + } +} + +class D extends C { + dProp = () => this; + + constructor(a = 100) { + super(a); + + if (Math.random() < 0.5) { + "You win!" + return { + cProp: 1, + dProp: () => this, + foo() { return "You win!!!!!" } + }; + } + else + return null; + } +} + +//// [derivedClassConstructorWithExplicitReturns01.js] +class C { + foo() { return "this never gets used."; } + constructor(value) { + this.cProp = 10; + return { + cProp: value, + foo() { + return "well this looks kinda C-ish."; + } + }; + } +} +class D extends C { + constructor(a = 100) { + super(a); + this.dProp = () => this; + if (Math.random() < 0.5) { + "You win!"; + return { + cProp: 1, + dProp: () => this, + foo() { return "You win!!!!!"; } + }; + } + else + return null; + } +} +//# sourceMappingURL=derivedClassConstructorWithExplicitReturns01.js.map \ No newline at end of file diff --git a/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01(target=es2015).js.map b/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01(target=es2015).js.map new file mode 100644 index 0000000000000..8beb9e2742076 --- /dev/null +++ b/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01(target=es2015).js.map @@ -0,0 +1,3 @@ +//// [derivedClassConstructorWithExplicitReturns01.js.map] +{"version":3,"file":"derivedClassConstructorWithExplicitReturns01.js","sourceRoot":"","sources":["derivedClassConstructorWithExplicitReturns01.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC;IAGH,GAAG,KAAK,OAAO,uBAAuB,CAAC,CAAC,CAAC;IAEzC,YAAY,KAAa;QAJzB,UAAK,GAAG,EAAE,CAAC;QAKP,OAAO;YACH,KAAK,EAAE,KAAK;YACZ,GAAG;gBACC,OAAO,8BAA8B,CAAC;YAC1C,CAAC;SACJ,CAAA;IACL,CAAC;CACJ;AAED,MAAM,CAAE,SAAQ,CAAC;IAGb,YAAY,CAAC,GAAG,GAAG;QACf,KAAK,CAAC,CAAC,CAAC,CAAC;QAHb,UAAK,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC;QAKf,IAAI,IAAI,CAAC,MAAM,EAAE,GAAG,GAAG,EAAE,CAAC;YACtB,UAAU,CAAA;YACV,OAAO;gBACH,KAAK,EAAE,CAAC;gBACR,KAAK,EAAE,GAAG,EAAE,CAAC,IAAI;gBACjB,GAAG,KAAK,OAAO,cAAc,CAAA,CAAC,CAAC;aAClC,CAAC;QACN,CAAC;;YAEG,OAAO,IAAI,CAAC;IACpB,CAAC;CACJ"} +//// https://sokra.github.io/source-map-visualization#base64,Y2xhc3MgQyB7DQogICAgZm9vKCkgeyByZXR1cm4gInRoaXMgbmV2ZXIgZ2V0cyB1c2VkLiI7IH0NCiAgICBjb25zdHJ1Y3Rvcih2YWx1ZSkgew0KICAgICAgICB0aGlzLmNQcm9wID0gMTA7DQogICAgICAgIHJldHVybiB7DQogICAgICAgICAgICBjUHJvcDogdmFsdWUsDQogICAgICAgICAgICBmb28oKSB7DQogICAgICAgICAgICAgICAgcmV0dXJuICJ3ZWxsIHRoaXMgbG9va3Mga2luZGEgQy1pc2guIjsNCiAgICAgICAgICAgIH0NCiAgICAgICAgfTsNCiAgICB9DQp9DQpjbGFzcyBEIGV4dGVuZHMgQyB7DQogICAgY29uc3RydWN0b3IoYSA9IDEwMCkgew0KICAgICAgICBzdXBlcihhKTsNCiAgICAgICAgdGhpcy5kUHJvcCA9ICgpID0+IHRoaXM7DQogICAgICAgIGlmIChNYXRoLnJhbmRvbSgpIDwgMC41KSB7DQogICAgICAgICAgICAiWW91IHdpbiEiOw0KICAgICAgICAgICAgcmV0dXJuIHsNCiAgICAgICAgICAgICAgICBjUHJvcDogMSwNCiAgICAgICAgICAgICAgICBkUHJvcDogKCkgPT4gdGhpcywNCiAgICAgICAgICAgICAgICBmb28oKSB7IHJldHVybiAiWW91IHdpbiEhISEhIjsgfQ0KICAgICAgICAgICAgfTsNCiAgICAgICAgfQ0KICAgICAgICBlbHNlDQogICAgICAgICAgICByZXR1cm4gbnVsbDsNCiAgICB9DQp9DQovLyMgc291cmNlTWFwcGluZ1VSTD1kZXJpdmVkQ2xhc3NDb25zdHJ1Y3RvcldpdGhFeHBsaWNpdFJldHVybnMwMS5qcy5tYXA=,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVyaXZlZENsYXNzQ29uc3RydWN0b3JXaXRoRXhwbGljaXRSZXR1cm5zMDEuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkZXJpdmVkQ2xhc3NDb25zdHJ1Y3RvcldpdGhFeHBsaWNpdFJldHVybnMwMS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQUM7SUFHSCxHQUFHLEtBQUssT0FBTyx1QkFBdUIsQ0FBQyxDQUFDLENBQUM7SUFFekMsWUFBWSxLQUFhO1FBSnpCLFVBQUssR0FBRyxFQUFFLENBQUM7UUFLUCxPQUFPO1lBQ0gsS0FBSyxFQUFFLEtBQUs7WUFDWixHQUFHO2dCQUNDLE9BQU8sOEJBQThCLENBQUM7WUFDMUMsQ0FBQztTQUNKLENBQUE7SUFDTCxDQUFDO0NBQ0o7QUFFRCxNQUFNLENBQUUsU0FBUSxDQUFDO0lBR2IsWUFBWSxDQUFDLEdBQUcsR0FBRztRQUNmLEtBQUssQ0FBQyxDQUFDLENBQUMsQ0FBQztRQUhiLFVBQUssR0FBRyxHQUFHLEVBQUUsQ0FBQyxJQUFJLENBQUM7UUFLZixJQUFJLElBQUksQ0FBQyxNQUFNLEVBQUUsR0FBRyxHQUFHLEVBQUUsQ0FBQztZQUN0QixVQUFVLENBQUE7WUFDVixPQUFPO2dCQUNILEtBQUssRUFBRSxDQUFDO2dCQUNSLEtBQUssRUFBRSxHQUFHLEVBQUUsQ0FBQyxJQUFJO2dCQUNqQixHQUFHLEtBQUssT0FBTyxjQUFjLENBQUEsQ0FBQyxDQUFDO2FBQ2xDLENBQUM7UUFDTixDQUFDOztZQUVHLE9BQU8sSUFBSSxDQUFDO0lBQ3BCLENBQUM7Q0FDSiJ9,Y2xhc3MgQyB7CiAgICBjUHJvcCA9IDEwOwoKICAgIGZvbygpIHsgcmV0dXJuICJ0aGlzIG5ldmVyIGdldHMgdXNlZC4iOyB9CgogICAgY29uc3RydWN0b3IodmFsdWU6IG51bWJlcikgewogICAgICAgIHJldHVybiB7CiAgICAgICAgICAgIGNQcm9wOiB2YWx1ZSwKICAgICAgICAgICAgZm9vKCkgewogICAgICAgICAgICAgICAgcmV0dXJuICJ3ZWxsIHRoaXMgbG9va3Mga2luZGEgQy1pc2guIjsKICAgICAgICAgICAgfQogICAgICAgIH0KICAgIH0KfQoKY2xhc3MgRCBleHRlbmRzIEMgewogICAgZFByb3AgPSAoKSA9PiB0aGlzOwoKICAgIGNvbnN0cnVjdG9yKGEgPSAxMDApIHsKICAgICAgICBzdXBlcihhKTsKCiAgICAgICAgaWYgKE1hdGgucmFuZG9tKCkgPCAwLjUpIHsKICAgICAgICAgICAgIllvdSB3aW4hIgogICAgICAgICAgICByZXR1cm4gewogICAgICAgICAgICAgICAgY1Byb3A6IDEsCiAgICAgICAgICAgICAgICBkUHJvcDogKCkgPT4gdGhpcywKICAgICAgICAgICAgICAgIGZvbygpIHsgcmV0dXJuICJZb3Ugd2luISEhISEiIH0KICAgICAgICAgICAgfTsKICAgICAgICB9CiAgICAgICAgZWxzZQogICAgICAgICAgICByZXR1cm4gbnVsbDsKICAgIH0KfQ== diff --git a/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01(target=es2015).sourcemap.txt b/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01(target=es2015).sourcemap.txt new file mode 100644 index 0000000000000..52d619b035498 --- /dev/null +++ b/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01(target=es2015).sourcemap.txt @@ -0,0 +1,439 @@ +=================================================================== +JsFile: derivedClassConstructorWithExplicitReturns01.js +mapUrl: derivedClassConstructorWithExplicitReturns01.js.map +sourceRoot: +sources: derivedClassConstructorWithExplicitReturns01.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:derivedClassConstructorWithExplicitReturns01.js +sourceFile:derivedClassConstructorWithExplicitReturns01.ts +------------------------------------------------------------------- +>>>class C { +1 > +2 >^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >class +3 > C +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 7) Source(1, 7) + SourceIndex(0) +3 >Emitted(1, 8) Source(1, 8) + SourceIndex(0) +--- +>>> foo() { return "this never gets used."; } +1->^^^^ +2 > ^^^ +3 > ^^^^^ +4 > ^^^^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^ +6 > ^ +7 > ^ +8 > ^ +1-> { + > cProp = 10; + > + > +2 > foo +3 > () { +4 > return +5 > "this never gets used." +6 > ; +7 > +8 > } +1->Emitted(2, 5) Source(4, 5) + SourceIndex(0) +2 >Emitted(2, 8) Source(4, 8) + SourceIndex(0) +3 >Emitted(2, 13) Source(4, 13) + SourceIndex(0) +4 >Emitted(2, 20) Source(4, 20) + SourceIndex(0) +5 >Emitted(2, 43) Source(4, 43) + SourceIndex(0) +6 >Emitted(2, 44) Source(4, 44) + SourceIndex(0) +7 >Emitted(2, 45) Source(4, 45) + SourceIndex(0) +8 >Emitted(2, 46) Source(4, 46) + SourceIndex(0) +--- +>>> constructor(value) { +1 >^^^^ +2 > ^^^^^^^^^^^^ +3 > ^^^^^ +4 > ^^^^-> +1 > + > + > +2 > constructor( +3 > value: number +1 >Emitted(3, 5) Source(6, 5) + SourceIndex(0) +2 >Emitted(3, 17) Source(6, 17) + SourceIndex(0) +3 >Emitted(3, 22) Source(6, 30) + SourceIndex(0) +--- +>>> this.cProp = 10; +1->^^^^^^^^ +2 > ^^^^^^^^^^ +3 > ^^^ +4 > ^^ +5 > ^ +1-> +2 > cProp +3 > = +4 > 10 +5 > ; +1->Emitted(4, 9) Source(2, 5) + SourceIndex(0) +2 >Emitted(4, 19) Source(2, 10) + SourceIndex(0) +3 >Emitted(4, 22) Source(2, 13) + SourceIndex(0) +4 >Emitted(4, 24) Source(2, 15) + SourceIndex(0) +5 >Emitted(4, 25) Source(2, 16) + SourceIndex(0) +--- +>>> return { +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^-> +1 > + > + > foo() { return "this never gets used."; } + > + > constructor(value: number) { + > +2 > return +1 >Emitted(5, 9) Source(7, 9) + SourceIndex(0) +2 >Emitted(5, 16) Source(7, 16) + SourceIndex(0) +--- +>>> cProp: value, +1->^^^^^^^^^^^^ +2 > ^^^^^ +3 > ^^ +4 > ^^^^^ +1->{ + > +2 > cProp +3 > : +4 > value +1->Emitted(6, 13) Source(8, 13) + SourceIndex(0) +2 >Emitted(6, 18) Source(8, 18) + SourceIndex(0) +3 >Emitted(6, 20) Source(8, 20) + SourceIndex(0) +4 >Emitted(6, 25) Source(8, 25) + SourceIndex(0) +--- +>>> foo() { +1 >^^^^^^^^^^^^ +2 > ^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >, + > +2 > foo +1 >Emitted(7, 13) Source(9, 13) + SourceIndex(0) +2 >Emitted(7, 16) Source(9, 16) + SourceIndex(0) +--- +>>> return "well this looks kinda C-ish."; +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "well this looks kinda C-ish." +4 > ; +1->Emitted(8, 17) Source(10, 17) + SourceIndex(0) +2 >Emitted(8, 24) Source(10, 24) + SourceIndex(0) +3 >Emitted(8, 54) Source(10, 54) + SourceIndex(0) +4 >Emitted(8, 55) Source(10, 55) + SourceIndex(0) +--- +>>> } +1 >^^^^^^^^^^^^ +2 > ^ +1 > + > +2 > } +1 >Emitted(9, 13) Source(11, 13) + SourceIndex(0) +2 >Emitted(9, 14) Source(11, 14) + SourceIndex(0) +--- +>>> }; +1 >^^^^^^^^^ +2 > ^ +1 > + > } +2 > +1 >Emitted(10, 10) Source(12, 10) + SourceIndex(0) +2 >Emitted(10, 11) Source(12, 10) + SourceIndex(0) +--- +>>> } +1 >^^^^ +2 > ^ +1 > + > +2 > } +1 >Emitted(11, 5) Source(13, 5) + SourceIndex(0) +2 >Emitted(11, 6) Source(13, 6) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(12, 2) Source(14, 2) + SourceIndex(0) +--- +>>>class D extends C { +1-> +2 >^^^^^^ +3 > ^ +4 > ^^^^^^^^^ +5 > ^ +6 > ^^^^^^^^^^-> +1-> + > + > +2 >class +3 > D +4 > extends +5 > C +1->Emitted(13, 1) Source(16, 1) + SourceIndex(0) +2 >Emitted(13, 7) Source(16, 7) + SourceIndex(0) +3 >Emitted(13, 8) Source(16, 9) + SourceIndex(0) +4 >Emitted(13, 17) Source(16, 17) + SourceIndex(0) +5 >Emitted(13, 18) Source(16, 18) + SourceIndex(0) +--- +>>> constructor(a = 100) { +1->^^^^ +2 > ^^^^^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^^ +1-> { + > dProp = () => this; + > + > +2 > constructor( +3 > a +4 > = +5 > 100 +1->Emitted(14, 5) Source(19, 5) + SourceIndex(0) +2 >Emitted(14, 17) Source(19, 17) + SourceIndex(0) +3 >Emitted(14, 18) Source(19, 18) + SourceIndex(0) +4 >Emitted(14, 21) Source(19, 21) + SourceIndex(0) +5 >Emitted(14, 24) Source(19, 24) + SourceIndex(0) +--- +>>> super(a); +1 >^^^^^^^^ +2 > ^^^^^ +3 > ^ +4 > ^ +5 > ^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^-> +1 >) { + > +2 > super +3 > ( +4 > a +5 > ) +6 > ; +1 >Emitted(15, 9) Source(20, 9) + SourceIndex(0) +2 >Emitted(15, 14) Source(20, 14) + SourceIndex(0) +3 >Emitted(15, 15) Source(20, 15) + SourceIndex(0) +4 >Emitted(15, 16) Source(20, 16) + SourceIndex(0) +5 >Emitted(15, 17) Source(20, 17) + SourceIndex(0) +6 >Emitted(15, 18) Source(20, 18) + SourceIndex(0) +--- +>>> this.dProp = () => this; +1->^^^^^^^^ +2 > ^^^^^^^^^^ +3 > ^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^ +8 > ^ +9 > ^^^-> +1-> +2 > dProp +3 > = +4 > () +5 > => +6 > +7 > this +8 > ; +1->Emitted(16, 9) Source(17, 5) + SourceIndex(0) +2 >Emitted(16, 19) Source(17, 10) + SourceIndex(0) +3 >Emitted(16, 22) Source(17, 13) + SourceIndex(0) +4 >Emitted(16, 25) Source(17, 16) + SourceIndex(0) +5 >Emitted(16, 27) Source(17, 18) + SourceIndex(0) +6 >Emitted(16, 28) Source(17, 19) + SourceIndex(0) +7 >Emitted(16, 32) Source(17, 23) + SourceIndex(0) +8 >Emitted(16, 33) Source(17, 24) + SourceIndex(0) +--- +>>> if (Math.random() < 0.5) { +1->^^^^^^^^ +2 > ^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^ +6 > ^^ +7 > ^^^ +8 > ^^^ +9 > ^^ +10> ^ +1-> + > + > constructor(a = 100) { + > super(a); + > + > +2 > if ( +3 > Math +4 > . +5 > random +6 > () +7 > < +8 > 0.5 +9 > ) +10> { +1->Emitted(17, 9) Source(22, 9) + SourceIndex(0) +2 >Emitted(17, 13) Source(22, 13) + SourceIndex(0) +3 >Emitted(17, 17) Source(22, 17) + SourceIndex(0) +4 >Emitted(17, 18) Source(22, 18) + SourceIndex(0) +5 >Emitted(17, 24) Source(22, 24) + SourceIndex(0) +6 >Emitted(17, 26) Source(22, 26) + SourceIndex(0) +7 >Emitted(17, 29) Source(22, 29) + SourceIndex(0) +8 >Emitted(17, 32) Source(22, 32) + SourceIndex(0) +9 >Emitted(17, 34) Source(22, 34) + SourceIndex(0) +10>Emitted(17, 35) Source(22, 35) + SourceIndex(0) +--- +>>> "You win!"; +1 >^^^^^^^^^^^^ +2 > ^^^^^^^^^^ +3 > ^ +1 > + > +2 > "You win!" +3 > +1 >Emitted(18, 13) Source(23, 13) + SourceIndex(0) +2 >Emitted(18, 23) Source(23, 23) + SourceIndex(0) +3 >Emitted(18, 24) Source(23, 23) + SourceIndex(0) +--- +>>> return { +1 >^^^^^^^^^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^-> +1 > + > +2 > return +1 >Emitted(19, 13) Source(24, 13) + SourceIndex(0) +2 >Emitted(19, 20) Source(24, 20) + SourceIndex(0) +--- +>>> cProp: 1, +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1->{ + > +2 > cProp +3 > : +4 > 1 +1->Emitted(20, 17) Source(25, 17) + SourceIndex(0) +2 >Emitted(20, 22) Source(25, 22) + SourceIndex(0) +3 >Emitted(20, 24) Source(25, 24) + SourceIndex(0) +4 >Emitted(20, 25) Source(25, 25) + SourceIndex(0) +--- +>>> dProp: () => this, +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^ +3 > ^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^ +8 > ^^^^^^^^^^^^^^^^-> +1->, + > +2 > dProp +3 > : +4 > () +5 > => +6 > +7 > this +1->Emitted(21, 17) Source(26, 17) + SourceIndex(0) +2 >Emitted(21, 22) Source(26, 22) + SourceIndex(0) +3 >Emitted(21, 24) Source(26, 24) + SourceIndex(0) +4 >Emitted(21, 27) Source(26, 27) + SourceIndex(0) +5 >Emitted(21, 29) Source(26, 29) + SourceIndex(0) +6 >Emitted(21, 30) Source(26, 30) + SourceIndex(0) +7 >Emitted(21, 34) Source(26, 34) + SourceIndex(0) +--- +>>> foo() { return "You win!!!!!"; } +1->^^^^^^^^^^^^^^^^ +2 > ^^^ +3 > ^^^^^ +4 > ^^^^^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +7 > ^ +8 > ^ +1->, + > +2 > foo +3 > () { +4 > return +5 > "You win!!!!!" +6 > +7 > +8 > } +1->Emitted(22, 17) Source(27, 17) + SourceIndex(0) +2 >Emitted(22, 20) Source(27, 20) + SourceIndex(0) +3 >Emitted(22, 25) Source(27, 25) + SourceIndex(0) +4 >Emitted(22, 32) Source(27, 32) + SourceIndex(0) +5 >Emitted(22, 46) Source(27, 46) + SourceIndex(0) +6 >Emitted(22, 47) Source(27, 46) + SourceIndex(0) +7 >Emitted(22, 48) Source(27, 47) + SourceIndex(0) +8 >Emitted(22, 49) Source(27, 48) + SourceIndex(0) +--- +>>> }; +1 >^^^^^^^^^^^^^ +2 > ^ +1 > + > } +2 > ; +1 >Emitted(23, 14) Source(28, 14) + SourceIndex(0) +2 >Emitted(23, 15) Source(28, 15) + SourceIndex(0) +--- +>>> } +1 >^^^^^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(24, 9) Source(29, 9) + SourceIndex(0) +2 >Emitted(24, 10) Source(29, 10) + SourceIndex(0) +--- +>>> else +>>> return null; +1->^^^^^^^^^^^^ +2 > ^^^^^^^ +3 > ^^^^ +4 > ^ +1-> + > else + > +2 > return +3 > null +4 > ; +1->Emitted(26, 13) Source(31, 13) + SourceIndex(0) +2 >Emitted(26, 20) Source(31, 20) + SourceIndex(0) +3 >Emitted(26, 24) Source(31, 24) + SourceIndex(0) +4 >Emitted(26, 25) Source(31, 25) + SourceIndex(0) +--- +>>> } +1 >^^^^ +2 > ^ +1 > + > +2 > } +1 >Emitted(27, 5) Source(32, 5) + SourceIndex(0) +2 >Emitted(27, 6) Source(32, 6) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(28, 2) Source(33, 2) + SourceIndex(0) +--- +>>>//# sourceMappingURL=derivedClassConstructorWithExplicitReturns01.js.map \ No newline at end of file diff --git a/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01.symbols b/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/derivedClassConstructorWithExplicitReturns01.symbols rename to tests/baselines/reference/derivedClassConstructorWithExplicitReturns01(target=es2015).symbols diff --git a/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01.types b/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01(target=es2015).types similarity index 100% rename from tests/baselines/reference/derivedClassConstructorWithExplicitReturns01.types rename to tests/baselines/reference/derivedClassConstructorWithExplicitReturns01(target=es2015).types diff --git a/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01.js b/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01(target=es5).js similarity index 100% rename from tests/baselines/reference/derivedClassConstructorWithExplicitReturns01.js rename to tests/baselines/reference/derivedClassConstructorWithExplicitReturns01(target=es5).js diff --git a/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01.js.map b/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01(target=es5).js.map similarity index 100% rename from tests/baselines/reference/derivedClassConstructorWithExplicitReturns01.js.map rename to tests/baselines/reference/derivedClassConstructorWithExplicitReturns01(target=es5).js.map diff --git a/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01.sourcemap.txt b/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01(target=es5).sourcemap.txt similarity index 100% rename from tests/baselines/reference/derivedClassConstructorWithExplicitReturns01.sourcemap.txt rename to tests/baselines/reference/derivedClassConstructorWithExplicitReturns01(target=es5).sourcemap.txt diff --git a/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01(target=es5).symbols b/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01(target=es5).symbols new file mode 100644 index 0000000000000..02c83309ab0ef --- /dev/null +++ b/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01(target=es5).symbols @@ -0,0 +1,67 @@ +//// [tests/cases/compiler/derivedClassConstructorWithExplicitReturns01.ts] //// + +=== derivedClassConstructorWithExplicitReturns01.ts === +class C { +>C : Symbol(C, Decl(derivedClassConstructorWithExplicitReturns01.ts, 0, 0)) + + cProp = 10; +>cProp : Symbol(C.cProp, Decl(derivedClassConstructorWithExplicitReturns01.ts, 0, 9)) + + foo() { return "this never gets used."; } +>foo : Symbol(C.foo, Decl(derivedClassConstructorWithExplicitReturns01.ts, 1, 15)) + + constructor(value: number) { +>value : Symbol(value, Decl(derivedClassConstructorWithExplicitReturns01.ts, 5, 16)) + + return { + cProp: value, +>cProp : Symbol(cProp, Decl(derivedClassConstructorWithExplicitReturns01.ts, 6, 16)) +>value : Symbol(value, Decl(derivedClassConstructorWithExplicitReturns01.ts, 5, 16)) + + foo() { +>foo : Symbol(foo, Decl(derivedClassConstructorWithExplicitReturns01.ts, 7, 25)) + + return "well this looks kinda C-ish."; + } + } + } +} + +class D extends C { +>D : Symbol(D, Decl(derivedClassConstructorWithExplicitReturns01.ts, 13, 1)) +>C : Symbol(C, Decl(derivedClassConstructorWithExplicitReturns01.ts, 0, 0)) + + dProp = () => this; +>dProp : Symbol(D.dProp, Decl(derivedClassConstructorWithExplicitReturns01.ts, 15, 19)) +>this : Symbol(D, Decl(derivedClassConstructorWithExplicitReturns01.ts, 13, 1)) + + constructor(a = 100) { +>a : Symbol(a, Decl(derivedClassConstructorWithExplicitReturns01.ts, 18, 16)) + + super(a); +>super : Symbol(C, Decl(derivedClassConstructorWithExplicitReturns01.ts, 0, 0)) +>a : Symbol(a, Decl(derivedClassConstructorWithExplicitReturns01.ts, 18, 16)) + + if (Math.random() < 0.5) { +>Math.random : Symbol(Math.random, Decl(lib.es5.d.ts, --, --)) +>Math : Symbol(Math, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>random : Symbol(Math.random, Decl(lib.es5.d.ts, --, --)) + + "You win!" + return { + cProp: 1, +>cProp : Symbol(cProp, Decl(derivedClassConstructorWithExplicitReturns01.ts, 23, 20)) + + dProp: () => this, +>dProp : Symbol(dProp, Decl(derivedClassConstructorWithExplicitReturns01.ts, 24, 25)) +>this : Symbol(D, Decl(derivedClassConstructorWithExplicitReturns01.ts, 13, 1)) + + foo() { return "You win!!!!!" } +>foo : Symbol(foo, Decl(derivedClassConstructorWithExplicitReturns01.ts, 25, 34)) + + }; + } + else + return null; + } +} diff --git a/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01(target=es5).types b/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01(target=es5).types new file mode 100644 index 0000000000000..7c5eebffee248 --- /dev/null +++ b/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01(target=es5).types @@ -0,0 +1,121 @@ +//// [tests/cases/compiler/derivedClassConstructorWithExplicitReturns01.ts] //// + +=== derivedClassConstructorWithExplicitReturns01.ts === +class C { +>C : C +> : ^ + + cProp = 10; +>cProp : number +> : ^^^^^^ +>10 : 10 +> : ^^ + + foo() { return "this never gets used."; } +>foo : () => string +> : ^^^^^^^^^^^^ +>"this never gets used." : "this never gets used." +> : ^^^^^^^^^^^^^^^^^^^^^^^ + + constructor(value: number) { +>value : number +> : ^^^^^^ + + return { +>{ cProp: value, foo() { return "well this looks kinda C-ish."; } } : { cProp: number; foo(): string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + cProp: value, +>cProp : number +> : ^^^^^^ +>value : number +> : ^^^^^^ + + foo() { +>foo : () => string +> : ^^^^^^^^^^^^ + + return "well this looks kinda C-ish."; +>"well this looks kinda C-ish." : "well this looks kinda C-ish." +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + } + } + } +} + +class D extends C { +>D : D +> : ^ +>C : C +> : ^ + + dProp = () => this; +>dProp : () => this +> : ^^^^^^^^^^ +>() => this : () => this +> : ^^^^^^^^^^ +>this : this +> : ^^^^ + + constructor(a = 100) { +>a : number +> : ^^^^^^ +>100 : 100 +> : ^^^ + + super(a); +>super(a) : void +> : ^^^^ +>super : typeof C +> : ^^^^^^^^ +>a : number +> : ^^^^^^ + + if (Math.random() < 0.5) { +>Math.random() < 0.5 : boolean +> : ^^^^^^^ +>Math.random() : number +> : ^^^^^^ +>Math.random : () => number +> : ^^^^^^ +>Math : Math +> : ^^^^ +>random : () => number +> : ^^^^^^ +>0.5 : 0.5 +> : ^^^ + + "You win!" +>"You win!" : "You win!" +> : ^^^^^^^^^^ + + return { +>{ cProp: 1, dProp: () => this, foo() { return "You win!!!!!" } } : { cProp: number; dProp: () => this; foo(): string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + cProp: 1, +>cProp : number +> : ^^^^^^ +>1 : 1 +> : ^ + + dProp: () => this, +>dProp : () => this +> : ^^^^^^^^^^ +>() => this : () => this +> : ^^^^^^^^^^ +>this : this +> : ^^^^ + + foo() { return "You win!!!!!" } +>foo : () => string +> : ^^^^^^^^^^^^ +>"You win!!!!!" : "You win!!!!!" +> : ^^^^^^^^^^^^^^ + + }; + } + else + return null; + } +} diff --git a/tests/baselines/reference/derivedClassOverridesProtectedMembers(target=es2015).js b/tests/baselines/reference/derivedClassOverridesProtectedMembers(target=es2015).js new file mode 100644 index 0000000000000..fe46afafd19ec --- /dev/null +++ b/tests/baselines/reference/derivedClassOverridesProtectedMembers(target=es2015).js @@ -0,0 +1,60 @@ +//// [tests/cases/conformance/classes/members/inheritanceAndOverriding/derivedClassOverridesProtectedMembers.ts] //// + +//// [derivedClassOverridesProtectedMembers.ts] +var x: { foo: string; } +var y: { foo: string; bar: string; } + +class Base { + protected a: typeof x; + protected b(a: typeof x) { } + protected get c() { return x; } + protected set c(v: typeof x) { } + protected d: (a: typeof x) => void; + + protected static r: typeof x; + protected static s(a: typeof x) { } + protected static get t() { return x; } + protected static set t(v: typeof x) { } + protected static u: (a: typeof x) => void; + + constructor(a: typeof x) { } +} + +class Derived extends Base { + protected a: typeof y; + protected b(a: typeof y) { } + protected get c() { return y; } + protected set c(v: typeof y) { } + protected d: (a: typeof y) => void; + + protected static r: typeof y; + protected static s(a: typeof y) { } + protected static get t() { return y; } + protected static set t(a: typeof y) { } + protected static u: (a: typeof y) => void; + + constructor(a: typeof y) { super(x) } +} + + +//// [derivedClassOverridesProtectedMembers.js] +var x; +var y; +class Base { + b(a) { } + get c() { return x; } + set c(v) { } + static s(a) { } + static get t() { return x; } + static set t(v) { } + constructor(a) { } +} +class Derived extends Base { + b(a) { } + get c() { return y; } + set c(v) { } + static s(a) { } + static get t() { return y; } + static set t(a) { } + constructor(a) { super(x); } +} diff --git a/tests/baselines/reference/derivedClassOverridesProtectedMembers.symbols b/tests/baselines/reference/derivedClassOverridesProtectedMembers(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/derivedClassOverridesProtectedMembers.symbols rename to tests/baselines/reference/derivedClassOverridesProtectedMembers(target=es2015).symbols diff --git a/tests/baselines/reference/derivedClassOverridesProtectedMembers.types b/tests/baselines/reference/derivedClassOverridesProtectedMembers(target=es2015).types similarity index 100% rename from tests/baselines/reference/derivedClassOverridesProtectedMembers.types rename to tests/baselines/reference/derivedClassOverridesProtectedMembers(target=es2015).types diff --git a/tests/baselines/reference/derivedClassOverridesProtectedMembers.js b/tests/baselines/reference/derivedClassOverridesProtectedMembers(target=es5).js similarity index 100% rename from tests/baselines/reference/derivedClassOverridesProtectedMembers.js rename to tests/baselines/reference/derivedClassOverridesProtectedMembers(target=es5).js diff --git a/tests/baselines/reference/derivedClassOverridesProtectedMembers(target=es5).symbols b/tests/baselines/reference/derivedClassOverridesProtectedMembers(target=es5).symbols new file mode 100644 index 0000000000000..79c1a3632c92b --- /dev/null +++ b/tests/baselines/reference/derivedClassOverridesProtectedMembers(target=es5).symbols @@ -0,0 +1,123 @@ +//// [tests/cases/conformance/classes/members/inheritanceAndOverriding/derivedClassOverridesProtectedMembers.ts] //// + +=== derivedClassOverridesProtectedMembers.ts === +var x: { foo: string; } +>x : Symbol(x, Decl(derivedClassOverridesProtectedMembers.ts, 0, 3)) +>foo : Symbol(foo, Decl(derivedClassOverridesProtectedMembers.ts, 0, 8)) + +var y: { foo: string; bar: string; } +>y : Symbol(y, Decl(derivedClassOverridesProtectedMembers.ts, 1, 3)) +>foo : Symbol(foo, Decl(derivedClassOverridesProtectedMembers.ts, 1, 8)) +>bar : Symbol(bar, Decl(derivedClassOverridesProtectedMembers.ts, 1, 21)) + +class Base { +>Base : Symbol(Base, Decl(derivedClassOverridesProtectedMembers.ts, 1, 36)) + + protected a: typeof x; +>a : Symbol(Base.a, Decl(derivedClassOverridesProtectedMembers.ts, 3, 12)) +>x : Symbol(x, Decl(derivedClassOverridesProtectedMembers.ts, 0, 3)) + + protected b(a: typeof x) { } +>b : Symbol(Base.b, Decl(derivedClassOverridesProtectedMembers.ts, 4, 26)) +>a : Symbol(a, Decl(derivedClassOverridesProtectedMembers.ts, 5, 16)) +>x : Symbol(x, Decl(derivedClassOverridesProtectedMembers.ts, 0, 3)) + + protected get c() { return x; } +>c : Symbol(Base.c, Decl(derivedClassOverridesProtectedMembers.ts, 5, 32), Decl(derivedClassOverridesProtectedMembers.ts, 6, 35)) +>x : Symbol(x, Decl(derivedClassOverridesProtectedMembers.ts, 0, 3)) + + protected set c(v: typeof x) { } +>c : Symbol(Base.c, Decl(derivedClassOverridesProtectedMembers.ts, 5, 32), Decl(derivedClassOverridesProtectedMembers.ts, 6, 35)) +>v : Symbol(v, Decl(derivedClassOverridesProtectedMembers.ts, 7, 20)) +>x : Symbol(x, Decl(derivedClassOverridesProtectedMembers.ts, 0, 3)) + + protected d: (a: typeof x) => void; +>d : Symbol(Base.d, Decl(derivedClassOverridesProtectedMembers.ts, 7, 36)) +>a : Symbol(a, Decl(derivedClassOverridesProtectedMembers.ts, 8, 18)) +>x : Symbol(x, Decl(derivedClassOverridesProtectedMembers.ts, 0, 3)) + + protected static r: typeof x; +>r : Symbol(Base.r, Decl(derivedClassOverridesProtectedMembers.ts, 8, 39)) +>x : Symbol(x, Decl(derivedClassOverridesProtectedMembers.ts, 0, 3)) + + protected static s(a: typeof x) { } +>s : Symbol(Base.s, Decl(derivedClassOverridesProtectedMembers.ts, 10, 33)) +>a : Symbol(a, Decl(derivedClassOverridesProtectedMembers.ts, 11, 23)) +>x : Symbol(x, Decl(derivedClassOverridesProtectedMembers.ts, 0, 3)) + + protected static get t() { return x; } +>t : Symbol(Base.t, Decl(derivedClassOverridesProtectedMembers.ts, 11, 39), Decl(derivedClassOverridesProtectedMembers.ts, 12, 42)) +>x : Symbol(x, Decl(derivedClassOverridesProtectedMembers.ts, 0, 3)) + + protected static set t(v: typeof x) { } +>t : Symbol(Base.t, Decl(derivedClassOverridesProtectedMembers.ts, 11, 39), Decl(derivedClassOverridesProtectedMembers.ts, 12, 42)) +>v : Symbol(v, Decl(derivedClassOverridesProtectedMembers.ts, 13, 27)) +>x : Symbol(x, Decl(derivedClassOverridesProtectedMembers.ts, 0, 3)) + + protected static u: (a: typeof x) => void; +>u : Symbol(Base.u, Decl(derivedClassOverridesProtectedMembers.ts, 13, 43)) +>a : Symbol(a, Decl(derivedClassOverridesProtectedMembers.ts, 14, 25)) +>x : Symbol(x, Decl(derivedClassOverridesProtectedMembers.ts, 0, 3)) + + constructor(a: typeof x) { } +>a : Symbol(a, Decl(derivedClassOverridesProtectedMembers.ts, 16, 16)) +>x : Symbol(x, Decl(derivedClassOverridesProtectedMembers.ts, 0, 3)) +} + +class Derived extends Base { +>Derived : Symbol(Derived, Decl(derivedClassOverridesProtectedMembers.ts, 17, 1)) +>Base : Symbol(Base, Decl(derivedClassOverridesProtectedMembers.ts, 1, 36)) + + protected a: typeof y; +>a : Symbol(Derived.a, Decl(derivedClassOverridesProtectedMembers.ts, 19, 28)) +>y : Symbol(y, Decl(derivedClassOverridesProtectedMembers.ts, 1, 3)) + + protected b(a: typeof y) { } +>b : Symbol(Derived.b, Decl(derivedClassOverridesProtectedMembers.ts, 20, 26)) +>a : Symbol(a, Decl(derivedClassOverridesProtectedMembers.ts, 21, 16)) +>y : Symbol(y, Decl(derivedClassOverridesProtectedMembers.ts, 1, 3)) + + protected get c() { return y; } +>c : Symbol(Derived.c, Decl(derivedClassOverridesProtectedMembers.ts, 21, 32), Decl(derivedClassOverridesProtectedMembers.ts, 22, 35)) +>y : Symbol(y, Decl(derivedClassOverridesProtectedMembers.ts, 1, 3)) + + protected set c(v: typeof y) { } +>c : Symbol(Derived.c, Decl(derivedClassOverridesProtectedMembers.ts, 21, 32), Decl(derivedClassOverridesProtectedMembers.ts, 22, 35)) +>v : Symbol(v, Decl(derivedClassOverridesProtectedMembers.ts, 23, 20)) +>y : Symbol(y, Decl(derivedClassOverridesProtectedMembers.ts, 1, 3)) + + protected d: (a: typeof y) => void; +>d : Symbol(Derived.d, Decl(derivedClassOverridesProtectedMembers.ts, 23, 36)) +>a : Symbol(a, Decl(derivedClassOverridesProtectedMembers.ts, 24, 18)) +>y : Symbol(y, Decl(derivedClassOverridesProtectedMembers.ts, 1, 3)) + + protected static r: typeof y; +>r : Symbol(Derived.r, Decl(derivedClassOverridesProtectedMembers.ts, 24, 39)) +>y : Symbol(y, Decl(derivedClassOverridesProtectedMembers.ts, 1, 3)) + + protected static s(a: typeof y) { } +>s : Symbol(Derived.s, Decl(derivedClassOverridesProtectedMembers.ts, 26, 33)) +>a : Symbol(a, Decl(derivedClassOverridesProtectedMembers.ts, 27, 23)) +>y : Symbol(y, Decl(derivedClassOverridesProtectedMembers.ts, 1, 3)) + + protected static get t() { return y; } +>t : Symbol(Derived.t, Decl(derivedClassOverridesProtectedMembers.ts, 27, 39), Decl(derivedClassOverridesProtectedMembers.ts, 28, 42)) +>y : Symbol(y, Decl(derivedClassOverridesProtectedMembers.ts, 1, 3)) + + protected static set t(a: typeof y) { } +>t : Symbol(Derived.t, Decl(derivedClassOverridesProtectedMembers.ts, 27, 39), Decl(derivedClassOverridesProtectedMembers.ts, 28, 42)) +>a : Symbol(a, Decl(derivedClassOverridesProtectedMembers.ts, 29, 27)) +>y : Symbol(y, Decl(derivedClassOverridesProtectedMembers.ts, 1, 3)) + + protected static u: (a: typeof y) => void; +>u : Symbol(Derived.u, Decl(derivedClassOverridesProtectedMembers.ts, 29, 43)) +>a : Symbol(a, Decl(derivedClassOverridesProtectedMembers.ts, 30, 25)) +>y : Symbol(y, Decl(derivedClassOverridesProtectedMembers.ts, 1, 3)) + + constructor(a: typeof y) { super(x) } +>a : Symbol(a, Decl(derivedClassOverridesProtectedMembers.ts, 32, 16)) +>y : Symbol(y, Decl(derivedClassOverridesProtectedMembers.ts, 1, 3)) +>super : Symbol(Base, Decl(derivedClassOverridesProtectedMembers.ts, 1, 36)) +>x : Symbol(x, Decl(derivedClassOverridesProtectedMembers.ts, 0, 3)) +} + diff --git a/tests/baselines/reference/derivedClassOverridesProtectedMembers(target=es5).types b/tests/baselines/reference/derivedClassOverridesProtectedMembers(target=es5).types new file mode 100644 index 0000000000000..7603e765cc998 --- /dev/null +++ b/tests/baselines/reference/derivedClassOverridesProtectedMembers(target=es5).types @@ -0,0 +1,191 @@ +//// [tests/cases/conformance/classes/members/inheritanceAndOverriding/derivedClassOverridesProtectedMembers.ts] //// + +=== derivedClassOverridesProtectedMembers.ts === +var x: { foo: string; } +>x : { foo: string; } +> : ^^^^^^^ ^^^ +>foo : string +> : ^^^^^^ + +var y: { foo: string; bar: string; } +>y : { foo: string; bar: string; } +> : ^^^^^^^ ^^^^^^^ ^^^ +>foo : string +> : ^^^^^^ +>bar : string +> : ^^^^^^ + +class Base { +>Base : Base +> : ^^^^ + + protected a: typeof x; +>a : { foo: string; } +> : ^^^^^^^ ^^^ +>x : { foo: string; } +> : ^^^^^^^ ^^^ + + protected b(a: typeof x) { } +>b : (a: typeof x) => void +> : ^ ^^ ^^^^^^^^^ +>a : { foo: string; } +> : ^^^^^^^ ^^^ +>x : { foo: string; } +> : ^^^^^^^ ^^^ + + protected get c() { return x; } +>c : { foo: string; } +> : ^^^^^^^ ^^^ +>x : { foo: string; } +> : ^^^^^^^ ^^^ + + protected set c(v: typeof x) { } +>c : { foo: string; } +> : ^^^^^^^ ^^^ +>v : { foo: string; } +> : ^^^^^^^ ^^^ +>x : { foo: string; } +> : ^^^^^^^ ^^^ + + protected d: (a: typeof x) => void; +>d : (a: typeof x) => void +> : ^ ^^ ^^^^^ +>a : { foo: string; } +> : ^^^^^^^ ^^^ +>x : { foo: string; } +> : ^^^^^^^ ^^^ + + protected static r: typeof x; +>r : { foo: string; } +> : ^^^^^^^ ^^^ +>x : { foo: string; } +> : ^^^^^^^ ^^^ + + protected static s(a: typeof x) { } +>s : (a: typeof x) => void +> : ^ ^^ ^^^^^^^^^ +>a : { foo: string; } +> : ^^^^^^^ ^^^ +>x : { foo: string; } +> : ^^^^^^^ ^^^ + + protected static get t() { return x; } +>t : { foo: string; } +> : ^^^^^^^ ^^^ +>x : { foo: string; } +> : ^^^^^^^ ^^^ + + protected static set t(v: typeof x) { } +>t : { foo: string; } +> : ^^^^^^^ ^^^ +>v : { foo: string; } +> : ^^^^^^^ ^^^ +>x : { foo: string; } +> : ^^^^^^^ ^^^ + + protected static u: (a: typeof x) => void; +>u : (a: typeof x) => void +> : ^ ^^ ^^^^^ +>a : { foo: string; } +> : ^^^^^^^ ^^^ +>x : { foo: string; } +> : ^^^^^^^ ^^^ + + constructor(a: typeof x) { } +>a : { foo: string; } +> : ^^^^^^^ ^^^ +>x : { foo: string; } +> : ^^^^^^^ ^^^ +} + +class Derived extends Base { +>Derived : Derived +> : ^^^^^^^ +>Base : Base +> : ^^^^ + + protected a: typeof y; +>a : { foo: string; bar: string; } +> : ^^^^^^^ ^^^^^^^ ^^^ +>y : { foo: string; bar: string; } +> : ^^^^^^^ ^^^^^^^ ^^^ + + protected b(a: typeof y) { } +>b : (a: typeof y) => void +> : ^ ^^ ^^^^^^^^^ +>a : { foo: string; bar: string; } +> : ^^^^^^^ ^^^^^^^ ^^^ +>y : { foo: string; bar: string; } +> : ^^^^^^^ ^^^^^^^ ^^^ + + protected get c() { return y; } +>c : { foo: string; bar: string; } +> : ^^^^^^^ ^^^^^^^ ^^^ +>y : { foo: string; bar: string; } +> : ^^^^^^^ ^^^^^^^ ^^^ + + protected set c(v: typeof y) { } +>c : { foo: string; bar: string; } +> : ^^^^^^^ ^^^^^^^ ^^^ +>v : { foo: string; bar: string; } +> : ^^^^^^^ ^^^^^^^ ^^^ +>y : { foo: string; bar: string; } +> : ^^^^^^^ ^^^^^^^ ^^^ + + protected d: (a: typeof y) => void; +>d : (a: typeof y) => void +> : ^ ^^ ^^^^^ +>a : { foo: string; bar: string; } +> : ^^^^^^^ ^^^^^^^ ^^^ +>y : { foo: string; bar: string; } +> : ^^^^^^^ ^^^^^^^ ^^^ + + protected static r: typeof y; +>r : { foo: string; bar: string; } +> : ^^^^^^^ ^^^^^^^ ^^^ +>y : { foo: string; bar: string; } +> : ^^^^^^^ ^^^^^^^ ^^^ + + protected static s(a: typeof y) { } +>s : (a: typeof y) => void +> : ^ ^^ ^^^^^^^^^ +>a : { foo: string; bar: string; } +> : ^^^^^^^ ^^^^^^^ ^^^ +>y : { foo: string; bar: string; } +> : ^^^^^^^ ^^^^^^^ ^^^ + + protected static get t() { return y; } +>t : { foo: string; bar: string; } +> : ^^^^^^^ ^^^^^^^ ^^^ +>y : { foo: string; bar: string; } +> : ^^^^^^^ ^^^^^^^ ^^^ + + protected static set t(a: typeof y) { } +>t : { foo: string; bar: string; } +> : ^^^^^^^ ^^^^^^^ ^^^ +>a : { foo: string; bar: string; } +> : ^^^^^^^ ^^^^^^^ ^^^ +>y : { foo: string; bar: string; } +> : ^^^^^^^ ^^^^^^^ ^^^ + + protected static u: (a: typeof y) => void; +>u : (a: typeof y) => void +> : ^ ^^ ^^^^^ +>a : { foo: string; bar: string; } +> : ^^^^^^^ ^^^^^^^ ^^^ +>y : { foo: string; bar: string; } +> : ^^^^^^^ ^^^^^^^ ^^^ + + constructor(a: typeof y) { super(x) } +>a : { foo: string; bar: string; } +> : ^^^^^^^ ^^^^^^^ ^^^ +>y : { foo: string; bar: string; } +> : ^^^^^^^ ^^^^^^^ ^^^ +>super(x) : void +> : ^^^^ +>super : typeof Base +> : ^^^^^^^^^^^ +>x : { foo: string; } +> : ^^^^^^^ ^^^ +} + diff --git a/tests/baselines/reference/derivedClassOverridesProtectedMembers2(target=es2015).js b/tests/baselines/reference/derivedClassOverridesProtectedMembers2(target=es2015).js new file mode 100644 index 0000000000000..ae38afb4e1b09 --- /dev/null +++ b/tests/baselines/reference/derivedClassOverridesProtectedMembers2(target=es2015).js @@ -0,0 +1,107 @@ +//// [tests/cases/conformance/classes/members/inheritanceAndOverriding/derivedClassOverridesProtectedMembers2.ts] //// + +//// [derivedClassOverridesProtectedMembers2.ts] +var x: { foo: string; } +var y: { foo: string; bar: string; } + +class Base { + protected a: typeof x; + protected b(a: typeof x) { } + protected get c() { return x; } + protected set c(v: typeof x) { } + protected d: (a: typeof x) => void ; + + protected static r: typeof x; + protected static s(a: typeof x) { } + protected static get t() { return x; } + protected static set t(v: typeof x) { } + protected static u: (a: typeof x) => void ; + +constructor(a: typeof x) { } +} + +// Increase visibility of all protected members to public +class Derived extends Base { + a: typeof y; + b(a: typeof y) { } + get c() { return y; } + set c(v: typeof y) { } + d: (a: typeof y) => void; + + static r: typeof y; + static s(a: typeof y) { } + static get t() { return y; } + static set t(a: typeof y) { } + static u: (a: typeof y) => void; + + constructor(a: typeof y) { super(a); } +} + +var d: Derived = new Derived(y); +var r1 = d.a; +var r2 = d.b(y); +var r3 = d.c; +var r3a = d.d; +d.c = y; +var r4 = Derived.r; +var r5 = Derived.s(y); +var r6 = Derived.t; +var r6a = Derived.u; +Derived.t = y; + +class Base2 { + [i: string]: Object; + [i: number]: typeof x; +} + +class Derived2 extends Base2 { + [i: string]: typeof x; + [i: number]: typeof y; +} + +var d2: Derived2; +var r7 = d2['']; +var r8 = d2[1]; + + + +//// [derivedClassOverridesProtectedMembers2.js] +var x; +var y; +class Base { + b(a) { } + get c() { return x; } + set c(v) { } + static s(a) { } + static get t() { return x; } + static set t(v) { } + constructor(a) { } +} +// Increase visibility of all protected members to public +class Derived extends Base { + b(a) { } + get c() { return y; } + set c(v) { } + static s(a) { } + static get t() { return y; } + static set t(a) { } + constructor(a) { super(a); } +} +var d = new Derived(y); +var r1 = d.a; +var r2 = d.b(y); +var r3 = d.c; +var r3a = d.d; +d.c = y; +var r4 = Derived.r; +var r5 = Derived.s(y); +var r6 = Derived.t; +var r6a = Derived.u; +Derived.t = y; +class Base2 { +} +class Derived2 extends Base2 { +} +var d2; +var r7 = d2['']; +var r8 = d2[1]; diff --git a/tests/baselines/reference/derivedClassOverridesProtectedMembers2.symbols b/tests/baselines/reference/derivedClassOverridesProtectedMembers2(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/derivedClassOverridesProtectedMembers2.symbols rename to tests/baselines/reference/derivedClassOverridesProtectedMembers2(target=es2015).symbols diff --git a/tests/baselines/reference/derivedClassOverridesProtectedMembers2.types b/tests/baselines/reference/derivedClassOverridesProtectedMembers2(target=es2015).types similarity index 100% rename from tests/baselines/reference/derivedClassOverridesProtectedMembers2.types rename to tests/baselines/reference/derivedClassOverridesProtectedMembers2(target=es2015).types diff --git a/tests/baselines/reference/derivedClassOverridesProtectedMembers2.js b/tests/baselines/reference/derivedClassOverridesProtectedMembers2(target=es5).js similarity index 100% rename from tests/baselines/reference/derivedClassOverridesProtectedMembers2.js rename to tests/baselines/reference/derivedClassOverridesProtectedMembers2(target=es5).js diff --git a/tests/baselines/reference/derivedClassOverridesProtectedMembers2(target=es5).symbols b/tests/baselines/reference/derivedClassOverridesProtectedMembers2(target=es5).symbols new file mode 100644 index 0000000000000..2633adf962228 --- /dev/null +++ b/tests/baselines/reference/derivedClassOverridesProtectedMembers2(target=es5).symbols @@ -0,0 +1,230 @@ +//// [tests/cases/conformance/classes/members/inheritanceAndOverriding/derivedClassOverridesProtectedMembers2.ts] //// + +=== derivedClassOverridesProtectedMembers2.ts === +var x: { foo: string; } +>x : Symbol(x, Decl(derivedClassOverridesProtectedMembers2.ts, 0, 3)) +>foo : Symbol(foo, Decl(derivedClassOverridesProtectedMembers2.ts, 0, 8)) + +var y: { foo: string; bar: string; } +>y : Symbol(y, Decl(derivedClassOverridesProtectedMembers2.ts, 1, 3)) +>foo : Symbol(foo, Decl(derivedClassOverridesProtectedMembers2.ts, 1, 8)) +>bar : Symbol(bar, Decl(derivedClassOverridesProtectedMembers2.ts, 1, 21)) + +class Base { +>Base : Symbol(Base, Decl(derivedClassOverridesProtectedMembers2.ts, 1, 36)) + + protected a: typeof x; +>a : Symbol(Base.a, Decl(derivedClassOverridesProtectedMembers2.ts, 3, 12)) +>x : Symbol(x, Decl(derivedClassOverridesProtectedMembers2.ts, 0, 3)) + + protected b(a: typeof x) { } +>b : Symbol(Base.b, Decl(derivedClassOverridesProtectedMembers2.ts, 4, 26)) +>a : Symbol(a, Decl(derivedClassOverridesProtectedMembers2.ts, 5, 16)) +>x : Symbol(x, Decl(derivedClassOverridesProtectedMembers2.ts, 0, 3)) + + protected get c() { return x; } +>c : Symbol(Base.c, Decl(derivedClassOverridesProtectedMembers2.ts, 5, 32), Decl(derivedClassOverridesProtectedMembers2.ts, 6, 35)) +>x : Symbol(x, Decl(derivedClassOverridesProtectedMembers2.ts, 0, 3)) + + protected set c(v: typeof x) { } +>c : Symbol(Base.c, Decl(derivedClassOverridesProtectedMembers2.ts, 5, 32), Decl(derivedClassOverridesProtectedMembers2.ts, 6, 35)) +>v : Symbol(v, Decl(derivedClassOverridesProtectedMembers2.ts, 7, 20)) +>x : Symbol(x, Decl(derivedClassOverridesProtectedMembers2.ts, 0, 3)) + + protected d: (a: typeof x) => void ; +>d : Symbol(Base.d, Decl(derivedClassOverridesProtectedMembers2.ts, 7, 36)) +>a : Symbol(a, Decl(derivedClassOverridesProtectedMembers2.ts, 8, 18)) +>x : Symbol(x, Decl(derivedClassOverridesProtectedMembers2.ts, 0, 3)) + + protected static r: typeof x; +>r : Symbol(Base.r, Decl(derivedClassOverridesProtectedMembers2.ts, 8, 40)) +>x : Symbol(x, Decl(derivedClassOverridesProtectedMembers2.ts, 0, 3)) + + protected static s(a: typeof x) { } +>s : Symbol(Base.s, Decl(derivedClassOverridesProtectedMembers2.ts, 10, 33)) +>a : Symbol(a, Decl(derivedClassOverridesProtectedMembers2.ts, 11, 23)) +>x : Symbol(x, Decl(derivedClassOverridesProtectedMembers2.ts, 0, 3)) + + protected static get t() { return x; } +>t : Symbol(Base.t, Decl(derivedClassOverridesProtectedMembers2.ts, 11, 39), Decl(derivedClassOverridesProtectedMembers2.ts, 12, 42)) +>x : Symbol(x, Decl(derivedClassOverridesProtectedMembers2.ts, 0, 3)) + + protected static set t(v: typeof x) { } +>t : Symbol(Base.t, Decl(derivedClassOverridesProtectedMembers2.ts, 11, 39), Decl(derivedClassOverridesProtectedMembers2.ts, 12, 42)) +>v : Symbol(v, Decl(derivedClassOverridesProtectedMembers2.ts, 13, 27)) +>x : Symbol(x, Decl(derivedClassOverridesProtectedMembers2.ts, 0, 3)) + + protected static u: (a: typeof x) => void ; +>u : Symbol(Base.u, Decl(derivedClassOverridesProtectedMembers2.ts, 13, 43)) +>a : Symbol(a, Decl(derivedClassOverridesProtectedMembers2.ts, 14, 25)) +>x : Symbol(x, Decl(derivedClassOverridesProtectedMembers2.ts, 0, 3)) + +constructor(a: typeof x) { } +>a : Symbol(a, Decl(derivedClassOverridesProtectedMembers2.ts, 16, 12)) +>x : Symbol(x, Decl(derivedClassOverridesProtectedMembers2.ts, 0, 3)) +} + +// Increase visibility of all protected members to public +class Derived extends Base { +>Derived : Symbol(Derived, Decl(derivedClassOverridesProtectedMembers2.ts, 17, 1)) +>Base : Symbol(Base, Decl(derivedClassOverridesProtectedMembers2.ts, 1, 36)) + + a: typeof y; +>a : Symbol(Derived.a, Decl(derivedClassOverridesProtectedMembers2.ts, 20, 28)) +>y : Symbol(y, Decl(derivedClassOverridesProtectedMembers2.ts, 1, 3)) + + b(a: typeof y) { } +>b : Symbol(Derived.b, Decl(derivedClassOverridesProtectedMembers2.ts, 21, 16)) +>a : Symbol(a, Decl(derivedClassOverridesProtectedMembers2.ts, 22, 6)) +>y : Symbol(y, Decl(derivedClassOverridesProtectedMembers2.ts, 1, 3)) + + get c() { return y; } +>c : Symbol(Derived.c, Decl(derivedClassOverridesProtectedMembers2.ts, 22, 22), Decl(derivedClassOverridesProtectedMembers2.ts, 23, 25)) +>y : Symbol(y, Decl(derivedClassOverridesProtectedMembers2.ts, 1, 3)) + + set c(v: typeof y) { } +>c : Symbol(Derived.c, Decl(derivedClassOverridesProtectedMembers2.ts, 22, 22), Decl(derivedClassOverridesProtectedMembers2.ts, 23, 25)) +>v : Symbol(v, Decl(derivedClassOverridesProtectedMembers2.ts, 24, 10)) +>y : Symbol(y, Decl(derivedClassOverridesProtectedMembers2.ts, 1, 3)) + + d: (a: typeof y) => void; +>d : Symbol(Derived.d, Decl(derivedClassOverridesProtectedMembers2.ts, 24, 26)) +>a : Symbol(a, Decl(derivedClassOverridesProtectedMembers2.ts, 25, 8)) +>y : Symbol(y, Decl(derivedClassOverridesProtectedMembers2.ts, 1, 3)) + + static r: typeof y; +>r : Symbol(Derived.r, Decl(derivedClassOverridesProtectedMembers2.ts, 25, 29)) +>y : Symbol(y, Decl(derivedClassOverridesProtectedMembers2.ts, 1, 3)) + + static s(a: typeof y) { } +>s : Symbol(Derived.s, Decl(derivedClassOverridesProtectedMembers2.ts, 27, 23)) +>a : Symbol(a, Decl(derivedClassOverridesProtectedMembers2.ts, 28, 13)) +>y : Symbol(y, Decl(derivedClassOverridesProtectedMembers2.ts, 1, 3)) + + static get t() { return y; } +>t : Symbol(Derived.t, Decl(derivedClassOverridesProtectedMembers2.ts, 28, 29), Decl(derivedClassOverridesProtectedMembers2.ts, 29, 32)) +>y : Symbol(y, Decl(derivedClassOverridesProtectedMembers2.ts, 1, 3)) + + static set t(a: typeof y) { } +>t : Symbol(Derived.t, Decl(derivedClassOverridesProtectedMembers2.ts, 28, 29), Decl(derivedClassOverridesProtectedMembers2.ts, 29, 32)) +>a : Symbol(a, Decl(derivedClassOverridesProtectedMembers2.ts, 30, 17)) +>y : Symbol(y, Decl(derivedClassOverridesProtectedMembers2.ts, 1, 3)) + + static u: (a: typeof y) => void; +>u : Symbol(Derived.u, Decl(derivedClassOverridesProtectedMembers2.ts, 30, 33)) +>a : Symbol(a, Decl(derivedClassOverridesProtectedMembers2.ts, 31, 15)) +>y : Symbol(y, Decl(derivedClassOverridesProtectedMembers2.ts, 1, 3)) + + constructor(a: typeof y) { super(a); } +>a : Symbol(a, Decl(derivedClassOverridesProtectedMembers2.ts, 33, 16)) +>y : Symbol(y, Decl(derivedClassOverridesProtectedMembers2.ts, 1, 3)) +>super : Symbol(Base, Decl(derivedClassOverridesProtectedMembers2.ts, 1, 36)) +>a : Symbol(a, Decl(derivedClassOverridesProtectedMembers2.ts, 33, 16)) +} + +var d: Derived = new Derived(y); +>d : Symbol(d, Decl(derivedClassOverridesProtectedMembers2.ts, 36, 3)) +>Derived : Symbol(Derived, Decl(derivedClassOverridesProtectedMembers2.ts, 17, 1)) +>Derived : Symbol(Derived, Decl(derivedClassOverridesProtectedMembers2.ts, 17, 1)) +>y : Symbol(y, Decl(derivedClassOverridesProtectedMembers2.ts, 1, 3)) + +var r1 = d.a; +>r1 : Symbol(r1, Decl(derivedClassOverridesProtectedMembers2.ts, 37, 3)) +>d.a : Symbol(Derived.a, Decl(derivedClassOverridesProtectedMembers2.ts, 20, 28)) +>d : Symbol(d, Decl(derivedClassOverridesProtectedMembers2.ts, 36, 3)) +>a : Symbol(Derived.a, Decl(derivedClassOverridesProtectedMembers2.ts, 20, 28)) + +var r2 = d.b(y); +>r2 : Symbol(r2, Decl(derivedClassOverridesProtectedMembers2.ts, 38, 3)) +>d.b : Symbol(Derived.b, Decl(derivedClassOverridesProtectedMembers2.ts, 21, 16)) +>d : Symbol(d, Decl(derivedClassOverridesProtectedMembers2.ts, 36, 3)) +>b : Symbol(Derived.b, Decl(derivedClassOverridesProtectedMembers2.ts, 21, 16)) +>y : Symbol(y, Decl(derivedClassOverridesProtectedMembers2.ts, 1, 3)) + +var r3 = d.c; +>r3 : Symbol(r3, Decl(derivedClassOverridesProtectedMembers2.ts, 39, 3)) +>d.c : Symbol(Derived.c, Decl(derivedClassOverridesProtectedMembers2.ts, 22, 22), Decl(derivedClassOverridesProtectedMembers2.ts, 23, 25)) +>d : Symbol(d, Decl(derivedClassOverridesProtectedMembers2.ts, 36, 3)) +>c : Symbol(Derived.c, Decl(derivedClassOverridesProtectedMembers2.ts, 22, 22), Decl(derivedClassOverridesProtectedMembers2.ts, 23, 25)) + +var r3a = d.d; +>r3a : Symbol(r3a, Decl(derivedClassOverridesProtectedMembers2.ts, 40, 3)) +>d.d : Symbol(Derived.d, Decl(derivedClassOverridesProtectedMembers2.ts, 24, 26)) +>d : Symbol(d, Decl(derivedClassOverridesProtectedMembers2.ts, 36, 3)) +>d : Symbol(Derived.d, Decl(derivedClassOverridesProtectedMembers2.ts, 24, 26)) + +d.c = y; +>d.c : Symbol(Derived.c, Decl(derivedClassOverridesProtectedMembers2.ts, 22, 22), Decl(derivedClassOverridesProtectedMembers2.ts, 23, 25)) +>d : Symbol(d, Decl(derivedClassOverridesProtectedMembers2.ts, 36, 3)) +>c : Symbol(Derived.c, Decl(derivedClassOverridesProtectedMembers2.ts, 22, 22), Decl(derivedClassOverridesProtectedMembers2.ts, 23, 25)) +>y : Symbol(y, Decl(derivedClassOverridesProtectedMembers2.ts, 1, 3)) + +var r4 = Derived.r; +>r4 : Symbol(r4, Decl(derivedClassOverridesProtectedMembers2.ts, 42, 3)) +>Derived.r : Symbol(Derived.r, Decl(derivedClassOverridesProtectedMembers2.ts, 25, 29)) +>Derived : Symbol(Derived, Decl(derivedClassOverridesProtectedMembers2.ts, 17, 1)) +>r : Symbol(Derived.r, Decl(derivedClassOverridesProtectedMembers2.ts, 25, 29)) + +var r5 = Derived.s(y); +>r5 : Symbol(r5, Decl(derivedClassOverridesProtectedMembers2.ts, 43, 3)) +>Derived.s : Symbol(Derived.s, Decl(derivedClassOverridesProtectedMembers2.ts, 27, 23)) +>Derived : Symbol(Derived, Decl(derivedClassOverridesProtectedMembers2.ts, 17, 1)) +>s : Symbol(Derived.s, Decl(derivedClassOverridesProtectedMembers2.ts, 27, 23)) +>y : Symbol(y, Decl(derivedClassOverridesProtectedMembers2.ts, 1, 3)) + +var r6 = Derived.t; +>r6 : Symbol(r6, Decl(derivedClassOverridesProtectedMembers2.ts, 44, 3)) +>Derived.t : Symbol(Derived.t, Decl(derivedClassOverridesProtectedMembers2.ts, 28, 29), Decl(derivedClassOverridesProtectedMembers2.ts, 29, 32)) +>Derived : Symbol(Derived, Decl(derivedClassOverridesProtectedMembers2.ts, 17, 1)) +>t : Symbol(Derived.t, Decl(derivedClassOverridesProtectedMembers2.ts, 28, 29), Decl(derivedClassOverridesProtectedMembers2.ts, 29, 32)) + +var r6a = Derived.u; +>r6a : Symbol(r6a, Decl(derivedClassOverridesProtectedMembers2.ts, 45, 3)) +>Derived.u : Symbol(Derived.u, Decl(derivedClassOverridesProtectedMembers2.ts, 30, 33)) +>Derived : Symbol(Derived, Decl(derivedClassOverridesProtectedMembers2.ts, 17, 1)) +>u : Symbol(Derived.u, Decl(derivedClassOverridesProtectedMembers2.ts, 30, 33)) + +Derived.t = y; +>Derived.t : Symbol(Derived.t, Decl(derivedClassOverridesProtectedMembers2.ts, 28, 29), Decl(derivedClassOverridesProtectedMembers2.ts, 29, 32)) +>Derived : Symbol(Derived, Decl(derivedClassOverridesProtectedMembers2.ts, 17, 1)) +>t : Symbol(Derived.t, Decl(derivedClassOverridesProtectedMembers2.ts, 28, 29), Decl(derivedClassOverridesProtectedMembers2.ts, 29, 32)) +>y : Symbol(y, Decl(derivedClassOverridesProtectedMembers2.ts, 1, 3)) + +class Base2 { +>Base2 : Symbol(Base2, Decl(derivedClassOverridesProtectedMembers2.ts, 46, 14)) + + [i: string]: Object; +>i : Symbol(i, Decl(derivedClassOverridesProtectedMembers2.ts, 49, 5)) +>Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) + + [i: number]: typeof x; +>i : Symbol(i, Decl(derivedClassOverridesProtectedMembers2.ts, 50, 5)) +>x : Symbol(x, Decl(derivedClassOverridesProtectedMembers2.ts, 0, 3)) +} + +class Derived2 extends Base2 { +>Derived2 : Symbol(Derived2, Decl(derivedClassOverridesProtectedMembers2.ts, 51, 1)) +>Base2 : Symbol(Base2, Decl(derivedClassOverridesProtectedMembers2.ts, 46, 14)) + + [i: string]: typeof x; +>i : Symbol(i, Decl(derivedClassOverridesProtectedMembers2.ts, 54, 5)) +>x : Symbol(x, Decl(derivedClassOverridesProtectedMembers2.ts, 0, 3)) + + [i: number]: typeof y; +>i : Symbol(i, Decl(derivedClassOverridesProtectedMembers2.ts, 55, 5)) +>y : Symbol(y, Decl(derivedClassOverridesProtectedMembers2.ts, 1, 3)) +} + +var d2: Derived2; +>d2 : Symbol(d2, Decl(derivedClassOverridesProtectedMembers2.ts, 58, 3)) +>Derived2 : Symbol(Derived2, Decl(derivedClassOverridesProtectedMembers2.ts, 51, 1)) + +var r7 = d2['']; +>r7 : Symbol(r7, Decl(derivedClassOverridesProtectedMembers2.ts, 59, 3)) +>d2 : Symbol(d2, Decl(derivedClassOverridesProtectedMembers2.ts, 58, 3)) + +var r8 = d2[1]; +>r8 : Symbol(r8, Decl(derivedClassOverridesProtectedMembers2.ts, 60, 3)) +>d2 : Symbol(d2, Decl(derivedClassOverridesProtectedMembers2.ts, 58, 3)) + + diff --git a/tests/baselines/reference/derivedClassOverridesProtectedMembers2(target=es5).types b/tests/baselines/reference/derivedClassOverridesProtectedMembers2(target=es5).types new file mode 100644 index 0000000000000..6f707b8aaee38 --- /dev/null +++ b/tests/baselines/reference/derivedClassOverridesProtectedMembers2(target=es5).types @@ -0,0 +1,373 @@ +//// [tests/cases/conformance/classes/members/inheritanceAndOverriding/derivedClassOverridesProtectedMembers2.ts] //// + +=== derivedClassOverridesProtectedMembers2.ts === +var x: { foo: string; } +>x : { foo: string; } +> : ^^^^^^^ ^^^ +>foo : string +> : ^^^^^^ + +var y: { foo: string; bar: string; } +>y : { foo: string; bar: string; } +> : ^^^^^^^ ^^^^^^^ ^^^ +>foo : string +> : ^^^^^^ +>bar : string +> : ^^^^^^ + +class Base { +>Base : Base +> : ^^^^ + + protected a: typeof x; +>a : { foo: string; } +> : ^^^^^^^ ^^^ +>x : { foo: string; } +> : ^^^^^^^ ^^^ + + protected b(a: typeof x) { } +>b : (a: typeof x) => void +> : ^ ^^ ^^^^^^^^^ +>a : { foo: string; } +> : ^^^^^^^ ^^^ +>x : { foo: string; } +> : ^^^^^^^ ^^^ + + protected get c() { return x; } +>c : { foo: string; } +> : ^^^^^^^ ^^^ +>x : { foo: string; } +> : ^^^^^^^ ^^^ + + protected set c(v: typeof x) { } +>c : { foo: string; } +> : ^^^^^^^ ^^^ +>v : { foo: string; } +> : ^^^^^^^ ^^^ +>x : { foo: string; } +> : ^^^^^^^ ^^^ + + protected d: (a: typeof x) => void ; +>d : (a: typeof x) => void +> : ^ ^^ ^^^^^ +>a : { foo: string; } +> : ^^^^^^^ ^^^ +>x : { foo: string; } +> : ^^^^^^^ ^^^ + + protected static r: typeof x; +>r : { foo: string; } +> : ^^^^^^^ ^^^ +>x : { foo: string; } +> : ^^^^^^^ ^^^ + + protected static s(a: typeof x) { } +>s : (a: typeof x) => void +> : ^ ^^ ^^^^^^^^^ +>a : { foo: string; } +> : ^^^^^^^ ^^^ +>x : { foo: string; } +> : ^^^^^^^ ^^^ + + protected static get t() { return x; } +>t : { foo: string; } +> : ^^^^^^^ ^^^ +>x : { foo: string; } +> : ^^^^^^^ ^^^ + + protected static set t(v: typeof x) { } +>t : { foo: string; } +> : ^^^^^^^ ^^^ +>v : { foo: string; } +> : ^^^^^^^ ^^^ +>x : { foo: string; } +> : ^^^^^^^ ^^^ + + protected static u: (a: typeof x) => void ; +>u : (a: typeof x) => void +> : ^ ^^ ^^^^^ +>a : { foo: string; } +> : ^^^^^^^ ^^^ +>x : { foo: string; } +> : ^^^^^^^ ^^^ + +constructor(a: typeof x) { } +>a : { foo: string; } +> : ^^^^^^^ ^^^ +>x : { foo: string; } +> : ^^^^^^^ ^^^ +} + +// Increase visibility of all protected members to public +class Derived extends Base { +>Derived : Derived +> : ^^^^^^^ +>Base : Base +> : ^^^^ + + a: typeof y; +>a : { foo: string; bar: string; } +> : ^^^^^^^ ^^^^^^^ ^^^ +>y : { foo: string; bar: string; } +> : ^^^^^^^ ^^^^^^^ ^^^ + + b(a: typeof y) { } +>b : (a: typeof y) => void +> : ^ ^^ ^^^^^^^^^ +>a : { foo: string; bar: string; } +> : ^^^^^^^ ^^^^^^^ ^^^ +>y : { foo: string; bar: string; } +> : ^^^^^^^ ^^^^^^^ ^^^ + + get c() { return y; } +>c : { foo: string; bar: string; } +> : ^^^^^^^ ^^^^^^^ ^^^ +>y : { foo: string; bar: string; } +> : ^^^^^^^ ^^^^^^^ ^^^ + + set c(v: typeof y) { } +>c : { foo: string; bar: string; } +> : ^^^^^^^ ^^^^^^^ ^^^ +>v : { foo: string; bar: string; } +> : ^^^^^^^ ^^^^^^^ ^^^ +>y : { foo: string; bar: string; } +> : ^^^^^^^ ^^^^^^^ ^^^ + + d: (a: typeof y) => void; +>d : (a: typeof y) => void +> : ^ ^^ ^^^^^ +>a : { foo: string; bar: string; } +> : ^^^^^^^ ^^^^^^^ ^^^ +>y : { foo: string; bar: string; } +> : ^^^^^^^ ^^^^^^^ ^^^ + + static r: typeof y; +>r : { foo: string; bar: string; } +> : ^^^^^^^ ^^^^^^^ ^^^ +>y : { foo: string; bar: string; } +> : ^^^^^^^ ^^^^^^^ ^^^ + + static s(a: typeof y) { } +>s : (a: typeof y) => void +> : ^ ^^ ^^^^^^^^^ +>a : { foo: string; bar: string; } +> : ^^^^^^^ ^^^^^^^ ^^^ +>y : { foo: string; bar: string; } +> : ^^^^^^^ ^^^^^^^ ^^^ + + static get t() { return y; } +>t : { foo: string; bar: string; } +> : ^^^^^^^ ^^^^^^^ ^^^ +>y : { foo: string; bar: string; } +> : ^^^^^^^ ^^^^^^^ ^^^ + + static set t(a: typeof y) { } +>t : { foo: string; bar: string; } +> : ^^^^^^^ ^^^^^^^ ^^^ +>a : { foo: string; bar: string; } +> : ^^^^^^^ ^^^^^^^ ^^^ +>y : { foo: string; bar: string; } +> : ^^^^^^^ ^^^^^^^ ^^^ + + static u: (a: typeof y) => void; +>u : (a: typeof y) => void +> : ^ ^^ ^^^^^ +>a : { foo: string; bar: string; } +> : ^^^^^^^ ^^^^^^^ ^^^ +>y : { foo: string; bar: string; } +> : ^^^^^^^ ^^^^^^^ ^^^ + + constructor(a: typeof y) { super(a); } +>a : { foo: string; bar: string; } +> : ^^^^^^^ ^^^^^^^ ^^^ +>y : { foo: string; bar: string; } +> : ^^^^^^^ ^^^^^^^ ^^^ +>super(a) : void +> : ^^^^ +>super : typeof Base +> : ^^^^^^^^^^^ +>a : { foo: string; bar: string; } +> : ^^^^^^^ ^^^^^^^ ^^^ +} + +var d: Derived = new Derived(y); +>d : Derived +> : ^^^^^^^ +>new Derived(y) : Derived +> : ^^^^^^^ +>Derived : typeof Derived +> : ^^^^^^^^^^^^^^ +>y : { foo: string; bar: string; } +> : ^^^^^^^ ^^^^^^^ ^^^ + +var r1 = d.a; +>r1 : { foo: string; bar: string; } +> : ^^^^^^^ ^^^^^^^ ^^^ +>d.a : { foo: string; bar: string; } +> : ^^^^^^^ ^^^^^^^ ^^^ +>d : Derived +> : ^^^^^^^ +>a : { foo: string; bar: string; } +> : ^^^^^^^ ^^^^^^^ ^^^ + +var r2 = d.b(y); +>r2 : void +> : ^^^^ +>d.b(y) : void +> : ^^^^ +>d.b : (a: typeof y) => void +> : ^ ^^ ^^^^^^^^^ +>d : Derived +> : ^^^^^^^ +>b : (a: typeof y) => void +> : ^ ^^ ^^^^^^^^^ +>y : { foo: string; bar: string; } +> : ^^^^^^^ ^^^^^^^ ^^^ + +var r3 = d.c; +>r3 : { foo: string; bar: string; } +> : ^^^^^^^ ^^^^^^^ ^^^ +>d.c : { foo: string; bar: string; } +> : ^^^^^^^ ^^^^^^^ ^^^ +>d : Derived +> : ^^^^^^^ +>c : { foo: string; bar: string; } +> : ^^^^^^^ ^^^^^^^ ^^^ + +var r3a = d.d; +>r3a : (a: typeof y) => void +> : ^ ^^ ^^^^^ +>d.d : (a: typeof y) => void +> : ^ ^^ ^^^^^ +>d : Derived +> : ^^^^^^^ +>d : (a: typeof y) => void +> : ^ ^^ ^^^^^ + +d.c = y; +>d.c = y : { foo: string; bar: string; } +> : ^^^^^^^ ^^^^^^^ ^^^ +>d.c : { foo: string; bar: string; } +> : ^^^^^^^ ^^^^^^^ ^^^ +>d : Derived +> : ^^^^^^^ +>c : { foo: string; bar: string; } +> : ^^^^^^^ ^^^^^^^ ^^^ +>y : { foo: string; bar: string; } +> : ^^^^^^^ ^^^^^^^ ^^^ + +var r4 = Derived.r; +>r4 : { foo: string; bar: string; } +> : ^^^^^^^ ^^^^^^^ ^^^ +>Derived.r : { foo: string; bar: string; } +> : ^^^^^^^ ^^^^^^^ ^^^ +>Derived : typeof Derived +> : ^^^^^^^^^^^^^^ +>r : { foo: string; bar: string; } +> : ^^^^^^^ ^^^^^^^ ^^^ + +var r5 = Derived.s(y); +>r5 : void +> : ^^^^ +>Derived.s(y) : void +> : ^^^^ +>Derived.s : (a: typeof y) => void +> : ^ ^^ ^^^^^^^^^ +>Derived : typeof Derived +> : ^^^^^^^^^^^^^^ +>s : (a: typeof y) => void +> : ^ ^^ ^^^^^^^^^ +>y : { foo: string; bar: string; } +> : ^^^^^^^ ^^^^^^^ ^^^ + +var r6 = Derived.t; +>r6 : { foo: string; bar: string; } +> : ^^^^^^^ ^^^^^^^ ^^^ +>Derived.t : { foo: string; bar: string; } +> : ^^^^^^^ ^^^^^^^ ^^^ +>Derived : typeof Derived +> : ^^^^^^^^^^^^^^ +>t : { foo: string; bar: string; } +> : ^^^^^^^ ^^^^^^^ ^^^ + +var r6a = Derived.u; +>r6a : (a: typeof y) => void +> : ^ ^^ ^^^^^ +>Derived.u : (a: typeof y) => void +> : ^ ^^ ^^^^^ +>Derived : typeof Derived +> : ^^^^^^^^^^^^^^ +>u : (a: typeof y) => void +> : ^ ^^ ^^^^^ + +Derived.t = y; +>Derived.t = y : { foo: string; bar: string; } +> : ^^^^^^^ ^^^^^^^ ^^^ +>Derived.t : { foo: string; bar: string; } +> : ^^^^^^^ ^^^^^^^ ^^^ +>Derived : typeof Derived +> : ^^^^^^^^^^^^^^ +>t : { foo: string; bar: string; } +> : ^^^^^^^ ^^^^^^^ ^^^ +>y : { foo: string; bar: string; } +> : ^^^^^^^ ^^^^^^^ ^^^ + +class Base2 { +>Base2 : Base2 +> : ^^^^^ + + [i: string]: Object; +>i : string +> : ^^^^^^ + + [i: number]: typeof x; +>i : number +> : ^^^^^^ +>x : { foo: string; } +> : ^^^^^^^ ^^^ +} + +class Derived2 extends Base2 { +>Derived2 : Derived2 +> : ^^^^^^^^ +>Base2 : Base2 +> : ^^^^^ + + [i: string]: typeof x; +>i : string +> : ^^^^^^ +>x : { foo: string; } +> : ^^^^^^^ ^^^ + + [i: number]: typeof y; +>i : number +> : ^^^^^^ +>y : { foo: string; bar: string; } +> : ^^^^^^^ ^^^^^^^ ^^^ +} + +var d2: Derived2; +>d2 : Derived2 +> : ^^^^^^^^ + +var r7 = d2['']; +>r7 : { foo: string; } +> : ^^^^^^^ ^^^ +>d2[''] : { foo: string; } +> : ^^^^^^^ ^^^ +>d2 : Derived2 +> : ^^^^^^^^ +>'' : "" +> : ^^ + +var r8 = d2[1]; +>r8 : { foo: string; bar: string; } +> : ^^^^^^^ ^^^^^^^ ^^^ +>d2[1] : { foo: string; bar: string; } +> : ^^^^^^^ ^^^^^^^ ^^^ +>d2 : Derived2 +> : ^^^^^^^^ +>1 : 1 +> : ^ + + diff --git a/tests/baselines/reference/derivedClassOverridesProtectedMembers3.errors.txt b/tests/baselines/reference/derivedClassOverridesProtectedMembers3(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/derivedClassOverridesProtectedMembers3.errors.txt rename to tests/baselines/reference/derivedClassOverridesProtectedMembers3(target=es2015).errors.txt diff --git a/tests/baselines/reference/derivedClassOverridesProtectedMembers3(target=es2015).js b/tests/baselines/reference/derivedClassOverridesProtectedMembers3(target=es2015).js new file mode 100644 index 0000000000000..2ff09b1c3d563 --- /dev/null +++ b/tests/baselines/reference/derivedClassOverridesProtectedMembers3(target=es2015).js @@ -0,0 +1,124 @@ +//// [tests/cases/conformance/classes/members/inheritanceAndOverriding/derivedClassOverridesProtectedMembers3.ts] //// + +//// [derivedClassOverridesProtectedMembers3.ts] +var x: { foo: string; } +var y: { foo: string; bar: string; } + +class Base { + a: typeof x; + b(a: typeof x) { } + get c() { return x; } + set c(v: typeof x) { } + d: (a: typeof x) => void; + + static r: typeof x; + static s(a: typeof x) { } + static get t() { return x; } + static set t(v: typeof x) { } + static u: (a: typeof x) => void; + + constructor(a: typeof x) {} +} + +// Errors +// decrease visibility of all public members to protected +class Derived1 extends Base { + protected a: typeof x; + constructor(a: typeof x) { super(a); } +} + +class Derived2 extends Base { + protected b(a: typeof x) { } + constructor(a: typeof x) { super(a); } +} + +class Derived3 extends Base { + protected get c() { return x; } + constructor(a: typeof x) { super(a); } +} + +class Derived4 extends Base { + protected set c(v: typeof x) { } + constructor(a: typeof x) { super(a); } +} + +class Derived5 extends Base { + protected d: (a: typeof x) => void ; + constructor(a: typeof x) { super(a); } +} + +class Derived6 extends Base { + protected static r: typeof x; + constructor(a: typeof x) { super(a); } +} + +class Derived7 extends Base { + protected static s(a: typeof x) { } + constructor(a: typeof x) { super(a); } +} + +class Derived8 extends Base { + protected static get t() { return x; } + constructor(a: typeof x) { super(a); } +} + +class Derived9 extends Base { + protected static set t(v: typeof x) { } + constructor(a: typeof x) { super(a); } +} + +class Derived10 extends Base { + protected static u: (a: typeof x) => void ; + constructor(a: typeof x) { super(a); } +} + +//// [derivedClassOverridesProtectedMembers3.js] +var x; +var y; +class Base { + b(a) { } + get c() { return x; } + set c(v) { } + static s(a) { } + static get t() { return x; } + static set t(v) { } + constructor(a) { } +} +// Errors +// decrease visibility of all public members to protected +class Derived1 extends Base { + constructor(a) { super(a); } +} +class Derived2 extends Base { + b(a) { } + constructor(a) { super(a); } +} +class Derived3 extends Base { + get c() { return x; } + constructor(a) { super(a); } +} +class Derived4 extends Base { + set c(v) { } + constructor(a) { super(a); } +} +class Derived5 extends Base { + constructor(a) { super(a); } +} +class Derived6 extends Base { + constructor(a) { super(a); } +} +class Derived7 extends Base { + static s(a) { } + constructor(a) { super(a); } +} +class Derived8 extends Base { + static get t() { return x; } + constructor(a) { super(a); } +} +class Derived9 extends Base { + static set t(v) { } + constructor(a) { super(a); } +} +class Derived10 extends Base { + constructor(a) { super(a); } +} diff --git a/tests/baselines/reference/derivedClassOverridesProtectedMembers3.symbols b/tests/baselines/reference/derivedClassOverridesProtectedMembers3(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/derivedClassOverridesProtectedMembers3.symbols rename to tests/baselines/reference/derivedClassOverridesProtectedMembers3(target=es2015).symbols diff --git a/tests/baselines/reference/derivedClassOverridesProtectedMembers3.types b/tests/baselines/reference/derivedClassOverridesProtectedMembers3(target=es2015).types similarity index 100% rename from tests/baselines/reference/derivedClassOverridesProtectedMembers3.types rename to tests/baselines/reference/derivedClassOverridesProtectedMembers3(target=es2015).types diff --git a/tests/baselines/reference/derivedClassOverridesProtectedMembers3(target=es5).errors.txt b/tests/baselines/reference/derivedClassOverridesProtectedMembers3(target=es5).errors.txt new file mode 100644 index 0000000000000..4bae5907f7ee6 --- /dev/null +++ b/tests/baselines/reference/derivedClassOverridesProtectedMembers3(target=es5).errors.txt @@ -0,0 +1,123 @@ +derivedClassOverridesProtectedMembers3.ts(22,7): error TS2415: Class 'Derived1' incorrectly extends base class 'Base'. + Property 'a' is protected in type 'Derived1' but public in type 'Base'. +derivedClassOverridesProtectedMembers3.ts(27,7): error TS2415: Class 'Derived2' incorrectly extends base class 'Base'. + Property 'b' is protected in type 'Derived2' but public in type 'Base'. +derivedClassOverridesProtectedMembers3.ts(32,7): error TS2415: Class 'Derived3' incorrectly extends base class 'Base'. + Property 'c' is protected in type 'Derived3' but public in type 'Base'. +derivedClassOverridesProtectedMembers3.ts(37,7): error TS2415: Class 'Derived4' incorrectly extends base class 'Base'. + Property 'c' is protected in type 'Derived4' but public in type 'Base'. +derivedClassOverridesProtectedMembers3.ts(42,7): error TS2415: Class 'Derived5' incorrectly extends base class 'Base'. + Property 'd' is protected in type 'Derived5' but public in type 'Base'. +derivedClassOverridesProtectedMembers3.ts(47,7): error TS2417: Class static side 'typeof Derived6' incorrectly extends base class static side 'typeof Base'. + Property 'r' is protected in type 'typeof Derived6' but public in type 'typeof Base'. +derivedClassOverridesProtectedMembers3.ts(52,7): error TS2417: Class static side 'typeof Derived7' incorrectly extends base class static side 'typeof Base'. + Property 's' is protected in type 'typeof Derived7' but public in type 'typeof Base'. +derivedClassOverridesProtectedMembers3.ts(57,7): error TS2417: Class static side 'typeof Derived8' incorrectly extends base class static side 'typeof Base'. + Property 't' is protected in type 'typeof Derived8' but public in type 'typeof Base'. +derivedClassOverridesProtectedMembers3.ts(62,7): error TS2417: Class static side 'typeof Derived9' incorrectly extends base class static side 'typeof Base'. + Property 't' is protected in type 'typeof Derived9' but public in type 'typeof Base'. +derivedClassOverridesProtectedMembers3.ts(67,7): error TS2417: Class static side 'typeof Derived10' incorrectly extends base class static side 'typeof Base'. + Property 'u' is protected in type 'typeof Derived10' but public in type 'typeof Base'. + + +==== derivedClassOverridesProtectedMembers3.ts (10 errors) ==== + var x: { foo: string; } + var y: { foo: string; bar: string; } + + class Base { + a: typeof x; + b(a: typeof x) { } + get c() { return x; } + set c(v: typeof x) { } + d: (a: typeof x) => void; + + static r: typeof x; + static s(a: typeof x) { } + static get t() { return x; } + static set t(v: typeof x) { } + static u: (a: typeof x) => void; + + constructor(a: typeof x) {} + } + + // Errors + // decrease visibility of all public members to protected + class Derived1 extends Base { + ~~~~~~~~ +!!! error TS2415: Class 'Derived1' incorrectly extends base class 'Base'. +!!! error TS2415: Property 'a' is protected in type 'Derived1' but public in type 'Base'. + protected a: typeof x; + constructor(a: typeof x) { super(a); } + } + + class Derived2 extends Base { + ~~~~~~~~ +!!! error TS2415: Class 'Derived2' incorrectly extends base class 'Base'. +!!! error TS2415: Property 'b' is protected in type 'Derived2' but public in type 'Base'. + protected b(a: typeof x) { } + constructor(a: typeof x) { super(a); } + } + + class Derived3 extends Base { + ~~~~~~~~ +!!! error TS2415: Class 'Derived3' incorrectly extends base class 'Base'. +!!! error TS2415: Property 'c' is protected in type 'Derived3' but public in type 'Base'. + protected get c() { return x; } + constructor(a: typeof x) { super(a); } + } + + class Derived4 extends Base { + ~~~~~~~~ +!!! error TS2415: Class 'Derived4' incorrectly extends base class 'Base'. +!!! error TS2415: Property 'c' is protected in type 'Derived4' but public in type 'Base'. + protected set c(v: typeof x) { } + constructor(a: typeof x) { super(a); } + } + + class Derived5 extends Base { + ~~~~~~~~ +!!! error TS2415: Class 'Derived5' incorrectly extends base class 'Base'. +!!! error TS2415: Property 'd' is protected in type 'Derived5' but public in type 'Base'. + protected d: (a: typeof x) => void ; + constructor(a: typeof x) { super(a); } + } + + class Derived6 extends Base { + ~~~~~~~~ +!!! error TS2417: Class static side 'typeof Derived6' incorrectly extends base class static side 'typeof Base'. +!!! error TS2417: Property 'r' is protected in type 'typeof Derived6' but public in type 'typeof Base'. + protected static r: typeof x; + constructor(a: typeof x) { super(a); } + } + + class Derived7 extends Base { + ~~~~~~~~ +!!! error TS2417: Class static side 'typeof Derived7' incorrectly extends base class static side 'typeof Base'. +!!! error TS2417: Property 's' is protected in type 'typeof Derived7' but public in type 'typeof Base'. + protected static s(a: typeof x) { } + constructor(a: typeof x) { super(a); } + } + + class Derived8 extends Base { + ~~~~~~~~ +!!! error TS2417: Class static side 'typeof Derived8' incorrectly extends base class static side 'typeof Base'. +!!! error TS2417: Property 't' is protected in type 'typeof Derived8' but public in type 'typeof Base'. + protected static get t() { return x; } + constructor(a: typeof x) { super(a); } + } + + class Derived9 extends Base { + ~~~~~~~~ +!!! error TS2417: Class static side 'typeof Derived9' incorrectly extends base class static side 'typeof Base'. +!!! error TS2417: Property 't' is protected in type 'typeof Derived9' but public in type 'typeof Base'. + protected static set t(v: typeof x) { } + constructor(a: typeof x) { super(a); } + } + + class Derived10 extends Base { + ~~~~~~~~~ +!!! error TS2417: Class static side 'typeof Derived10' incorrectly extends base class static side 'typeof Base'. +!!! error TS2417: Property 'u' is protected in type 'typeof Derived10' but public in type 'typeof Base'. + protected static u: (a: typeof x) => void ; + constructor(a: typeof x) { super(a); } + } \ No newline at end of file diff --git a/tests/baselines/reference/derivedClassOverridesProtectedMembers3.js b/tests/baselines/reference/derivedClassOverridesProtectedMembers3(target=es5).js similarity index 100% rename from tests/baselines/reference/derivedClassOverridesProtectedMembers3.js rename to tests/baselines/reference/derivedClassOverridesProtectedMembers3(target=es5).js diff --git a/tests/baselines/reference/derivedClassOverridesProtectedMembers3(target=es5).symbols b/tests/baselines/reference/derivedClassOverridesProtectedMembers3(target=es5).symbols new file mode 100644 index 0000000000000..1e29a0a22ef85 --- /dev/null +++ b/tests/baselines/reference/derivedClassOverridesProtectedMembers3(target=es5).symbols @@ -0,0 +1,223 @@ +//// [tests/cases/conformance/classes/members/inheritanceAndOverriding/derivedClassOverridesProtectedMembers3.ts] //// + +=== derivedClassOverridesProtectedMembers3.ts === +var x: { foo: string; } +>x : Symbol(x, Decl(derivedClassOverridesProtectedMembers3.ts, 0, 3)) +>foo : Symbol(foo, Decl(derivedClassOverridesProtectedMembers3.ts, 0, 8)) + +var y: { foo: string; bar: string; } +>y : Symbol(y, Decl(derivedClassOverridesProtectedMembers3.ts, 1, 3)) +>foo : Symbol(foo, Decl(derivedClassOverridesProtectedMembers3.ts, 1, 8)) +>bar : Symbol(bar, Decl(derivedClassOverridesProtectedMembers3.ts, 1, 21)) + +class Base { +>Base : Symbol(Base, Decl(derivedClassOverridesProtectedMembers3.ts, 1, 36)) + + a: typeof x; +>a : Symbol(Base.a, Decl(derivedClassOverridesProtectedMembers3.ts, 3, 12)) +>x : Symbol(x, Decl(derivedClassOverridesProtectedMembers3.ts, 0, 3)) + + b(a: typeof x) { } +>b : Symbol(Base.b, Decl(derivedClassOverridesProtectedMembers3.ts, 4, 16)) +>a : Symbol(a, Decl(derivedClassOverridesProtectedMembers3.ts, 5, 6)) +>x : Symbol(x, Decl(derivedClassOverridesProtectedMembers3.ts, 0, 3)) + + get c() { return x; } +>c : Symbol(Base.c, Decl(derivedClassOverridesProtectedMembers3.ts, 5, 22), Decl(derivedClassOverridesProtectedMembers3.ts, 6, 25)) +>x : Symbol(x, Decl(derivedClassOverridesProtectedMembers3.ts, 0, 3)) + + set c(v: typeof x) { } +>c : Symbol(Base.c, Decl(derivedClassOverridesProtectedMembers3.ts, 5, 22), Decl(derivedClassOverridesProtectedMembers3.ts, 6, 25)) +>v : Symbol(v, Decl(derivedClassOverridesProtectedMembers3.ts, 7, 10)) +>x : Symbol(x, Decl(derivedClassOverridesProtectedMembers3.ts, 0, 3)) + + d: (a: typeof x) => void; +>d : Symbol(Base.d, Decl(derivedClassOverridesProtectedMembers3.ts, 7, 26)) +>a : Symbol(a, Decl(derivedClassOverridesProtectedMembers3.ts, 8, 8)) +>x : Symbol(x, Decl(derivedClassOverridesProtectedMembers3.ts, 0, 3)) + + static r: typeof x; +>r : Symbol(Base.r, Decl(derivedClassOverridesProtectedMembers3.ts, 8, 29)) +>x : Symbol(x, Decl(derivedClassOverridesProtectedMembers3.ts, 0, 3)) + + static s(a: typeof x) { } +>s : Symbol(Base.s, Decl(derivedClassOverridesProtectedMembers3.ts, 10, 23)) +>a : Symbol(a, Decl(derivedClassOverridesProtectedMembers3.ts, 11, 13)) +>x : Symbol(x, Decl(derivedClassOverridesProtectedMembers3.ts, 0, 3)) + + static get t() { return x; } +>t : Symbol(Base.t, Decl(derivedClassOverridesProtectedMembers3.ts, 11, 29), Decl(derivedClassOverridesProtectedMembers3.ts, 12, 32)) +>x : Symbol(x, Decl(derivedClassOverridesProtectedMembers3.ts, 0, 3)) + + static set t(v: typeof x) { } +>t : Symbol(Base.t, Decl(derivedClassOverridesProtectedMembers3.ts, 11, 29), Decl(derivedClassOverridesProtectedMembers3.ts, 12, 32)) +>v : Symbol(v, Decl(derivedClassOverridesProtectedMembers3.ts, 13, 17)) +>x : Symbol(x, Decl(derivedClassOverridesProtectedMembers3.ts, 0, 3)) + + static u: (a: typeof x) => void; +>u : Symbol(Base.u, Decl(derivedClassOverridesProtectedMembers3.ts, 13, 33)) +>a : Symbol(a, Decl(derivedClassOverridesProtectedMembers3.ts, 14, 15)) +>x : Symbol(x, Decl(derivedClassOverridesProtectedMembers3.ts, 0, 3)) + + constructor(a: typeof x) {} +>a : Symbol(a, Decl(derivedClassOverridesProtectedMembers3.ts, 16, 16)) +>x : Symbol(x, Decl(derivedClassOverridesProtectedMembers3.ts, 0, 3)) +} + +// Errors +// decrease visibility of all public members to protected +class Derived1 extends Base { +>Derived1 : Symbol(Derived1, Decl(derivedClassOverridesProtectedMembers3.ts, 17, 1)) +>Base : Symbol(Base, Decl(derivedClassOverridesProtectedMembers3.ts, 1, 36)) + + protected a: typeof x; +>a : Symbol(Derived1.a, Decl(derivedClassOverridesProtectedMembers3.ts, 21, 29)) +>x : Symbol(x, Decl(derivedClassOverridesProtectedMembers3.ts, 0, 3)) + + constructor(a: typeof x) { super(a); } +>a : Symbol(a, Decl(derivedClassOverridesProtectedMembers3.ts, 23, 16)) +>x : Symbol(x, Decl(derivedClassOverridesProtectedMembers3.ts, 0, 3)) +>super : Symbol(Base, Decl(derivedClassOverridesProtectedMembers3.ts, 1, 36)) +>a : Symbol(a, Decl(derivedClassOverridesProtectedMembers3.ts, 23, 16)) +} + +class Derived2 extends Base { +>Derived2 : Symbol(Derived2, Decl(derivedClassOverridesProtectedMembers3.ts, 24, 1)) +>Base : Symbol(Base, Decl(derivedClassOverridesProtectedMembers3.ts, 1, 36)) + + protected b(a: typeof x) { } +>b : Symbol(Derived2.b, Decl(derivedClassOverridesProtectedMembers3.ts, 26, 29)) +>a : Symbol(a, Decl(derivedClassOverridesProtectedMembers3.ts, 27, 16)) +>x : Symbol(x, Decl(derivedClassOverridesProtectedMembers3.ts, 0, 3)) + + constructor(a: typeof x) { super(a); } +>a : Symbol(a, Decl(derivedClassOverridesProtectedMembers3.ts, 28, 16)) +>x : Symbol(x, Decl(derivedClassOverridesProtectedMembers3.ts, 0, 3)) +>super : Symbol(Base, Decl(derivedClassOverridesProtectedMembers3.ts, 1, 36)) +>a : Symbol(a, Decl(derivedClassOverridesProtectedMembers3.ts, 28, 16)) +} + +class Derived3 extends Base { +>Derived3 : Symbol(Derived3, Decl(derivedClassOverridesProtectedMembers3.ts, 29, 1)) +>Base : Symbol(Base, Decl(derivedClassOverridesProtectedMembers3.ts, 1, 36)) + + protected get c() { return x; } +>c : Symbol(Derived3.c, Decl(derivedClassOverridesProtectedMembers3.ts, 31, 29)) +>x : Symbol(x, Decl(derivedClassOverridesProtectedMembers3.ts, 0, 3)) + + constructor(a: typeof x) { super(a); } +>a : Symbol(a, Decl(derivedClassOverridesProtectedMembers3.ts, 33, 16)) +>x : Symbol(x, Decl(derivedClassOverridesProtectedMembers3.ts, 0, 3)) +>super : Symbol(Base, Decl(derivedClassOverridesProtectedMembers3.ts, 1, 36)) +>a : Symbol(a, Decl(derivedClassOverridesProtectedMembers3.ts, 33, 16)) +} + +class Derived4 extends Base { +>Derived4 : Symbol(Derived4, Decl(derivedClassOverridesProtectedMembers3.ts, 34, 1)) +>Base : Symbol(Base, Decl(derivedClassOverridesProtectedMembers3.ts, 1, 36)) + + protected set c(v: typeof x) { } +>c : Symbol(Derived4.c, Decl(derivedClassOverridesProtectedMembers3.ts, 36, 29)) +>v : Symbol(v, Decl(derivedClassOverridesProtectedMembers3.ts, 37, 20)) +>x : Symbol(x, Decl(derivedClassOverridesProtectedMembers3.ts, 0, 3)) + + constructor(a: typeof x) { super(a); } +>a : Symbol(a, Decl(derivedClassOverridesProtectedMembers3.ts, 38, 16)) +>x : Symbol(x, Decl(derivedClassOverridesProtectedMembers3.ts, 0, 3)) +>super : Symbol(Base, Decl(derivedClassOverridesProtectedMembers3.ts, 1, 36)) +>a : Symbol(a, Decl(derivedClassOverridesProtectedMembers3.ts, 38, 16)) +} + +class Derived5 extends Base { +>Derived5 : Symbol(Derived5, Decl(derivedClassOverridesProtectedMembers3.ts, 39, 1)) +>Base : Symbol(Base, Decl(derivedClassOverridesProtectedMembers3.ts, 1, 36)) + + protected d: (a: typeof x) => void ; +>d : Symbol(Derived5.d, Decl(derivedClassOverridesProtectedMembers3.ts, 41, 29)) +>a : Symbol(a, Decl(derivedClassOverridesProtectedMembers3.ts, 42, 18)) +>x : Symbol(x, Decl(derivedClassOverridesProtectedMembers3.ts, 0, 3)) + + constructor(a: typeof x) { super(a); } +>a : Symbol(a, Decl(derivedClassOverridesProtectedMembers3.ts, 43, 16)) +>x : Symbol(x, Decl(derivedClassOverridesProtectedMembers3.ts, 0, 3)) +>super : Symbol(Base, Decl(derivedClassOverridesProtectedMembers3.ts, 1, 36)) +>a : Symbol(a, Decl(derivedClassOverridesProtectedMembers3.ts, 43, 16)) +} + +class Derived6 extends Base { +>Derived6 : Symbol(Derived6, Decl(derivedClassOverridesProtectedMembers3.ts, 44, 1)) +>Base : Symbol(Base, Decl(derivedClassOverridesProtectedMembers3.ts, 1, 36)) + + protected static r: typeof x; +>r : Symbol(Derived6.r, Decl(derivedClassOverridesProtectedMembers3.ts, 46, 29)) +>x : Symbol(x, Decl(derivedClassOverridesProtectedMembers3.ts, 0, 3)) + + constructor(a: typeof x) { super(a); } +>a : Symbol(a, Decl(derivedClassOverridesProtectedMembers3.ts, 48, 16)) +>x : Symbol(x, Decl(derivedClassOverridesProtectedMembers3.ts, 0, 3)) +>super : Symbol(Base, Decl(derivedClassOverridesProtectedMembers3.ts, 1, 36)) +>a : Symbol(a, Decl(derivedClassOverridesProtectedMembers3.ts, 48, 16)) +} + +class Derived7 extends Base { +>Derived7 : Symbol(Derived7, Decl(derivedClassOverridesProtectedMembers3.ts, 49, 1)) +>Base : Symbol(Base, Decl(derivedClassOverridesProtectedMembers3.ts, 1, 36)) + + protected static s(a: typeof x) { } +>s : Symbol(Derived7.s, Decl(derivedClassOverridesProtectedMembers3.ts, 51, 29)) +>a : Symbol(a, Decl(derivedClassOverridesProtectedMembers3.ts, 52, 23)) +>x : Symbol(x, Decl(derivedClassOverridesProtectedMembers3.ts, 0, 3)) + + constructor(a: typeof x) { super(a); } +>a : Symbol(a, Decl(derivedClassOverridesProtectedMembers3.ts, 53, 16)) +>x : Symbol(x, Decl(derivedClassOverridesProtectedMembers3.ts, 0, 3)) +>super : Symbol(Base, Decl(derivedClassOverridesProtectedMembers3.ts, 1, 36)) +>a : Symbol(a, Decl(derivedClassOverridesProtectedMembers3.ts, 53, 16)) +} + +class Derived8 extends Base { +>Derived8 : Symbol(Derived8, Decl(derivedClassOverridesProtectedMembers3.ts, 54, 1)) +>Base : Symbol(Base, Decl(derivedClassOverridesProtectedMembers3.ts, 1, 36)) + + protected static get t() { return x; } +>t : Symbol(Derived8.t, Decl(derivedClassOverridesProtectedMembers3.ts, 56, 29)) +>x : Symbol(x, Decl(derivedClassOverridesProtectedMembers3.ts, 0, 3)) + + constructor(a: typeof x) { super(a); } +>a : Symbol(a, Decl(derivedClassOverridesProtectedMembers3.ts, 58, 16)) +>x : Symbol(x, Decl(derivedClassOverridesProtectedMembers3.ts, 0, 3)) +>super : Symbol(Base, Decl(derivedClassOverridesProtectedMembers3.ts, 1, 36)) +>a : Symbol(a, Decl(derivedClassOverridesProtectedMembers3.ts, 58, 16)) +} + +class Derived9 extends Base { +>Derived9 : Symbol(Derived9, Decl(derivedClassOverridesProtectedMembers3.ts, 59, 1)) +>Base : Symbol(Base, Decl(derivedClassOverridesProtectedMembers3.ts, 1, 36)) + + protected static set t(v: typeof x) { } +>t : Symbol(Derived9.t, Decl(derivedClassOverridesProtectedMembers3.ts, 61, 29)) +>v : Symbol(v, Decl(derivedClassOverridesProtectedMembers3.ts, 62, 27)) +>x : Symbol(x, Decl(derivedClassOverridesProtectedMembers3.ts, 0, 3)) + + constructor(a: typeof x) { super(a); } +>a : Symbol(a, Decl(derivedClassOverridesProtectedMembers3.ts, 63, 16)) +>x : Symbol(x, Decl(derivedClassOverridesProtectedMembers3.ts, 0, 3)) +>super : Symbol(Base, Decl(derivedClassOverridesProtectedMembers3.ts, 1, 36)) +>a : Symbol(a, Decl(derivedClassOverridesProtectedMembers3.ts, 63, 16)) +} + +class Derived10 extends Base { +>Derived10 : Symbol(Derived10, Decl(derivedClassOverridesProtectedMembers3.ts, 64, 1)) +>Base : Symbol(Base, Decl(derivedClassOverridesProtectedMembers3.ts, 1, 36)) + + protected static u: (a: typeof x) => void ; +>u : Symbol(Derived10.u, Decl(derivedClassOverridesProtectedMembers3.ts, 66, 30)) +>a : Symbol(a, Decl(derivedClassOverridesProtectedMembers3.ts, 67, 25)) +>x : Symbol(x, Decl(derivedClassOverridesProtectedMembers3.ts, 0, 3)) + + constructor(a: typeof x) { super(a); } +>a : Symbol(a, Decl(derivedClassOverridesProtectedMembers3.ts, 68, 16)) +>x : Symbol(x, Decl(derivedClassOverridesProtectedMembers3.ts, 0, 3)) +>super : Symbol(Base, Decl(derivedClassOverridesProtectedMembers3.ts, 1, 36)) +>a : Symbol(a, Decl(derivedClassOverridesProtectedMembers3.ts, 68, 16)) +} diff --git a/tests/baselines/reference/derivedClassOverridesProtectedMembers3(target=es5).types b/tests/baselines/reference/derivedClassOverridesProtectedMembers3(target=es5).types new file mode 100644 index 0000000000000..aa4409a7b9dc6 --- /dev/null +++ b/tests/baselines/reference/derivedClassOverridesProtectedMembers3(target=es5).types @@ -0,0 +1,363 @@ +//// [tests/cases/conformance/classes/members/inheritanceAndOverriding/derivedClassOverridesProtectedMembers3.ts] //// + +=== derivedClassOverridesProtectedMembers3.ts === +var x: { foo: string; } +>x : { foo: string; } +> : ^^^^^^^ ^^^ +>foo : string +> : ^^^^^^ + +var y: { foo: string; bar: string; } +>y : { foo: string; bar: string; } +> : ^^^^^^^ ^^^^^^^ ^^^ +>foo : string +> : ^^^^^^ +>bar : string +> : ^^^^^^ + +class Base { +>Base : Base +> : ^^^^ + + a: typeof x; +>a : { foo: string; } +> : ^^^^^^^ ^^^ +>x : { foo: string; } +> : ^^^^^^^ ^^^ + + b(a: typeof x) { } +>b : (a: typeof x) => void +> : ^ ^^ ^^^^^^^^^ +>a : { foo: string; } +> : ^^^^^^^ ^^^ +>x : { foo: string; } +> : ^^^^^^^ ^^^ + + get c() { return x; } +>c : { foo: string; } +> : ^^^^^^^ ^^^ +>x : { foo: string; } +> : ^^^^^^^ ^^^ + + set c(v: typeof x) { } +>c : { foo: string; } +> : ^^^^^^^ ^^^ +>v : { foo: string; } +> : ^^^^^^^ ^^^ +>x : { foo: string; } +> : ^^^^^^^ ^^^ + + d: (a: typeof x) => void; +>d : (a: typeof x) => void +> : ^ ^^ ^^^^^ +>a : { foo: string; } +> : ^^^^^^^ ^^^ +>x : { foo: string; } +> : ^^^^^^^ ^^^ + + static r: typeof x; +>r : { foo: string; } +> : ^^^^^^^ ^^^ +>x : { foo: string; } +> : ^^^^^^^ ^^^ + + static s(a: typeof x) { } +>s : (a: typeof x) => void +> : ^ ^^ ^^^^^^^^^ +>a : { foo: string; } +> : ^^^^^^^ ^^^ +>x : { foo: string; } +> : ^^^^^^^ ^^^ + + static get t() { return x; } +>t : { foo: string; } +> : ^^^^^^^ ^^^ +>x : { foo: string; } +> : ^^^^^^^ ^^^ + + static set t(v: typeof x) { } +>t : { foo: string; } +> : ^^^^^^^ ^^^ +>v : { foo: string; } +> : ^^^^^^^ ^^^ +>x : { foo: string; } +> : ^^^^^^^ ^^^ + + static u: (a: typeof x) => void; +>u : (a: typeof x) => void +> : ^ ^^ ^^^^^ +>a : { foo: string; } +> : ^^^^^^^ ^^^ +>x : { foo: string; } +> : ^^^^^^^ ^^^ + + constructor(a: typeof x) {} +>a : { foo: string; } +> : ^^^^^^^ ^^^ +>x : { foo: string; } +> : ^^^^^^^ ^^^ +} + +// Errors +// decrease visibility of all public members to protected +class Derived1 extends Base { +>Derived1 : Derived1 +> : ^^^^^^^^ +>Base : Base +> : ^^^^ + + protected a: typeof x; +>a : { foo: string; } +> : ^^^^^^^ ^^^ +>x : { foo: string; } +> : ^^^^^^^ ^^^ + + constructor(a: typeof x) { super(a); } +>a : { foo: string; } +> : ^^^^^^^ ^^^ +>x : { foo: string; } +> : ^^^^^^^ ^^^ +>super(a) : void +> : ^^^^ +>super : typeof Base +> : ^^^^^^^^^^^ +>a : { foo: string; } +> : ^^^^^^^ ^^^ +} + +class Derived2 extends Base { +>Derived2 : Derived2 +> : ^^^^^^^^ +>Base : Base +> : ^^^^ + + protected b(a: typeof x) { } +>b : (a: typeof x) => void +> : ^ ^^ ^^^^^^^^^ +>a : { foo: string; } +> : ^^^^^^^ ^^^ +>x : { foo: string; } +> : ^^^^^^^ ^^^ + + constructor(a: typeof x) { super(a); } +>a : { foo: string; } +> : ^^^^^^^ ^^^ +>x : { foo: string; } +> : ^^^^^^^ ^^^ +>super(a) : void +> : ^^^^ +>super : typeof Base +> : ^^^^^^^^^^^ +>a : { foo: string; } +> : ^^^^^^^ ^^^ +} + +class Derived3 extends Base { +>Derived3 : Derived3 +> : ^^^^^^^^ +>Base : Base +> : ^^^^ + + protected get c() { return x; } +>c : { foo: string; } +> : ^^^^^^^ ^^^ +>x : { foo: string; } +> : ^^^^^^^ ^^^ + + constructor(a: typeof x) { super(a); } +>a : { foo: string; } +> : ^^^^^^^ ^^^ +>x : { foo: string; } +> : ^^^^^^^ ^^^ +>super(a) : void +> : ^^^^ +>super : typeof Base +> : ^^^^^^^^^^^ +>a : { foo: string; } +> : ^^^^^^^ ^^^ +} + +class Derived4 extends Base { +>Derived4 : Derived4 +> : ^^^^^^^^ +>Base : Base +> : ^^^^ + + protected set c(v: typeof x) { } +>c : { foo: string; } +> : ^^^^^^^ ^^^ +>v : { foo: string; } +> : ^^^^^^^ ^^^ +>x : { foo: string; } +> : ^^^^^^^ ^^^ + + constructor(a: typeof x) { super(a); } +>a : { foo: string; } +> : ^^^^^^^ ^^^ +>x : { foo: string; } +> : ^^^^^^^ ^^^ +>super(a) : void +> : ^^^^ +>super : typeof Base +> : ^^^^^^^^^^^ +>a : { foo: string; } +> : ^^^^^^^ ^^^ +} + +class Derived5 extends Base { +>Derived5 : Derived5 +> : ^^^^^^^^ +>Base : Base +> : ^^^^ + + protected d: (a: typeof x) => void ; +>d : (a: typeof x) => void +> : ^ ^^ ^^^^^ +>a : { foo: string; } +> : ^^^^^^^ ^^^ +>x : { foo: string; } +> : ^^^^^^^ ^^^ + + constructor(a: typeof x) { super(a); } +>a : { foo: string; } +> : ^^^^^^^ ^^^ +>x : { foo: string; } +> : ^^^^^^^ ^^^ +>super(a) : void +> : ^^^^ +>super : typeof Base +> : ^^^^^^^^^^^ +>a : { foo: string; } +> : ^^^^^^^ ^^^ +} + +class Derived6 extends Base { +>Derived6 : Derived6 +> : ^^^^^^^^ +>Base : Base +> : ^^^^ + + protected static r: typeof x; +>r : { foo: string; } +> : ^^^^^^^ ^^^ +>x : { foo: string; } +> : ^^^^^^^ ^^^ + + constructor(a: typeof x) { super(a); } +>a : { foo: string; } +> : ^^^^^^^ ^^^ +>x : { foo: string; } +> : ^^^^^^^ ^^^ +>super(a) : void +> : ^^^^ +>super : typeof Base +> : ^^^^^^^^^^^ +>a : { foo: string; } +> : ^^^^^^^ ^^^ +} + +class Derived7 extends Base { +>Derived7 : Derived7 +> : ^^^^^^^^ +>Base : Base +> : ^^^^ + + protected static s(a: typeof x) { } +>s : (a: typeof x) => void +> : ^ ^^ ^^^^^^^^^ +>a : { foo: string; } +> : ^^^^^^^ ^^^ +>x : { foo: string; } +> : ^^^^^^^ ^^^ + + constructor(a: typeof x) { super(a); } +>a : { foo: string; } +> : ^^^^^^^ ^^^ +>x : { foo: string; } +> : ^^^^^^^ ^^^ +>super(a) : void +> : ^^^^ +>super : typeof Base +> : ^^^^^^^^^^^ +>a : { foo: string; } +> : ^^^^^^^ ^^^ +} + +class Derived8 extends Base { +>Derived8 : Derived8 +> : ^^^^^^^^ +>Base : Base +> : ^^^^ + + protected static get t() { return x; } +>t : { foo: string; } +> : ^^^^^^^ ^^^ +>x : { foo: string; } +> : ^^^^^^^ ^^^ + + constructor(a: typeof x) { super(a); } +>a : { foo: string; } +> : ^^^^^^^ ^^^ +>x : { foo: string; } +> : ^^^^^^^ ^^^ +>super(a) : void +> : ^^^^ +>super : typeof Base +> : ^^^^^^^^^^^ +>a : { foo: string; } +> : ^^^^^^^ ^^^ +} + +class Derived9 extends Base { +>Derived9 : Derived9 +> : ^^^^^^^^ +>Base : Base +> : ^^^^ + + protected static set t(v: typeof x) { } +>t : { foo: string; } +> : ^^^^^^^ ^^^ +>v : { foo: string; } +> : ^^^^^^^ ^^^ +>x : { foo: string; } +> : ^^^^^^^ ^^^ + + constructor(a: typeof x) { super(a); } +>a : { foo: string; } +> : ^^^^^^^ ^^^ +>x : { foo: string; } +> : ^^^^^^^ ^^^ +>super(a) : void +> : ^^^^ +>super : typeof Base +> : ^^^^^^^^^^^ +>a : { foo: string; } +> : ^^^^^^^ ^^^ +} + +class Derived10 extends Base { +>Derived10 : Derived10 +> : ^^^^^^^^^ +>Base : Base +> : ^^^^ + + protected static u: (a: typeof x) => void ; +>u : (a: typeof x) => void +> : ^ ^^ ^^^^^ +>a : { foo: string; } +> : ^^^^^^^ ^^^ +>x : { foo: string; } +> : ^^^^^^^ ^^^ + + constructor(a: typeof x) { super(a); } +>a : { foo: string; } +> : ^^^^^^^ ^^^ +>x : { foo: string; } +> : ^^^^^^^ ^^^ +>super(a) : void +> : ^^^^ +>super : typeof Base +> : ^^^^^^^^^^^ +>a : { foo: string; } +> : ^^^^^^^ ^^^ +} diff --git a/tests/baselines/reference/derivedClassSuperProperties(target=es2015).errors.txt b/tests/baselines/reference/derivedClassSuperProperties(target=es2015).errors.txt new file mode 100644 index 0000000000000..aeda29650974d --- /dev/null +++ b/tests/baselines/reference/derivedClassSuperProperties(target=es2015).errors.txt @@ -0,0 +1,542 @@ +derivedClassSuperProperties.ts(11,5): error TS2376: A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers. +derivedClassSuperProperties.ts(12,9): error TS17011: 'super' must be called before accessing a property of 'super' in the constructor of a derived class. +derivedClassSuperProperties.ts(19,5): error TS2376: A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers. +derivedClassSuperProperties.ts(20,9): error TS17011: 'super' must be called before accessing a property of 'super' in the constructor of a derived class. +derivedClassSuperProperties.ts(20,32): error TS17009: 'super' must be called before accessing 'this' in the constructor of a derived class. +derivedClassSuperProperties.ts(27,5): error TS2376: A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers. +derivedClassSuperProperties.ts(28,9): error TS17011: 'super' must be called before accessing a property of 'super' in the constructor of a derived class. +derivedClassSuperProperties.ts(29,15): error TS17009: 'super' must be called before accessing 'this' in the constructor of a derived class. +derivedClassSuperProperties.ts(35,5): error TS2376: A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers. +derivedClassSuperProperties.ts(36,9): error TS17011: 'super' must be called before accessing a property of 'super' in the constructor of a derived class. +derivedClassSuperProperties.ts(36,32): error TS17009: 'super' must be called before accessing 'this' in the constructor of a derived class. +derivedClassSuperProperties.ts(37,15): error TS17009: 'super' must be called before accessing 'this' in the constructor of a derived class. +derivedClassSuperProperties.ts(52,15): error TS17009: 'super' must be called before accessing 'this' in the constructor of a derived class. +derivedClassSuperProperties.ts(68,15): error TS17009: 'super' must be called before accessing 'this' in the constructor of a derived class. +derivedClassSuperProperties.ts(91,5): error TS2376: A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers. +derivedClassSuperProperties.ts(92,19): error TS17009: 'super' must be called before accessing 'this' in the constructor of a derived class. +derivedClassSuperProperties.ts(101,5): error TS2376: A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers. +derivedClassSuperProperties.ts(103,23): error TS17009: 'super' must be called before accessing 'this' in the constructor of a derived class. +derivedClassSuperProperties.ts(115,23): error TS17009: 'super' must be called before accessing 'this' in the constructor of a derived class. +derivedClassSuperProperties.ts(162,5): error TS2376: A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers. +derivedClassSuperProperties.ts(163,9): error TS17009: 'super' must be called before accessing 'this' in the constructor of a derived class. +derivedClassSuperProperties.ts(195,5): error TS2376: A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers. +derivedClassSuperProperties.ts(196,34): error TS17009: 'super' must be called before accessing 'this' in the constructor of a derived class. +derivedClassSuperProperties.ts(230,5): error TS2376: A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers. +derivedClassSuperProperties.ts(231,35): error TS17009: 'super' must be called before accessing 'this' in the constructor of a derived class. +derivedClassSuperProperties.ts(281,5): error TS2376: A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers. +derivedClassSuperProperties.ts(284,18): error TS17009: 'super' must be called before accessing 'this' in the constructor of a derived class. +derivedClassSuperProperties.ts(287,18): error TS17009: 'super' must be called before accessing 'this' in the constructor of a derived class. +derivedClassSuperProperties.ts(313,5): error TS2376: A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers. +derivedClassSuperProperties.ts(315,19): error TS17009: 'super' must be called before accessing 'this' in the constructor of a derived class. +derivedClassSuperProperties.ts(323,5): error TS2376: A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers. +derivedClassSuperProperties.ts(325,14): error TS17009: 'super' must be called before accessing 'this' in the constructor of a derived class. +derivedClassSuperProperties.ts(349,17): error TS2401: A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers. +derivedClassSuperProperties.ts(355,20): error TS1345: An expression of type 'void' cannot be tested for truthiness. +derivedClassSuperProperties.ts(355,20): error TS2401: A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers. +derivedClassSuperProperties.ts(361,23): error TS2401: A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers. +derivedClassSuperProperties.ts(367,21): error TS2401: A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers. +derivedClassSuperProperties.ts(373,29): error TS2401: A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers. +derivedClassSuperProperties.ts(373,29): error TS2488: Type 'void' must have a '[Symbol.iterator]()' method that returns an iterator. +derivedClassSuperProperties.ts(379,20): error TS1345: An expression of type 'void' cannot be tested for truthiness. +derivedClassSuperProperties.ts(379,20): error TS2401: A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers. +derivedClassSuperProperties.ts(385,26): error TS1345: An expression of type 'void' cannot be tested for truthiness. +derivedClassSuperProperties.ts(385,26): error TS2401: A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers. +derivedClassSuperProperties.ts(391,17): error TS1345: An expression of type 'void' cannot be tested for truthiness. +derivedClassSuperProperties.ts(391,17): error TS2401: A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers. +derivedClassSuperProperties.ts(397,21): error TS2401: A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers. + + +==== derivedClassSuperProperties.ts (46 errors) ==== + declare const decorate: any; + + class Base { + constructor(a?) { } + + receivesAnything(param?) { } + } + + class Derived1 extends Base { + prop = true; + constructor() { + ~~~~~~~~~~~ +!!! error TS2376: A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers. + super.receivesAnything(); + ~~~~~ +!!! error TS17011: 'super' must be called before accessing a property of 'super' in the constructor of a derived class. + super(); + } + } + + class Derived2 extends Base { + prop = true; + constructor() { + ~~~~~~~~~~~ +!!! error TS2376: A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers. + super.receivesAnything(this); + ~~~~~ +!!! error TS17011: 'super' must be called before accessing a property of 'super' in the constructor of a derived class. + ~~~~ +!!! error TS17009: 'super' must be called before accessing 'this' in the constructor of a derived class. + super(); + } + } + + class Derived3 extends Base { + prop = true; + constructor() { + ~~~~~~~~~~~ +!!! error TS2376: A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers. + super.receivesAnything(); + ~~~~~ +!!! error TS17011: 'super' must be called before accessing a property of 'super' in the constructor of a derived class. + super(this); + ~~~~ +!!! error TS17009: 'super' must be called before accessing 'this' in the constructor of a derived class. + } + } + + class Derived4 extends Base { + prop = true; + constructor() { + ~~~~~~~~~~~ +!!! error TS2376: A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers. + super.receivesAnything(this); + ~~~~~ +!!! error TS17011: 'super' must be called before accessing a property of 'super' in the constructor of a derived class. + ~~~~ +!!! error TS17009: 'super' must be called before accessing 'this' in the constructor of a derived class. + super(this); + ~~~~ +!!! error TS17009: 'super' must be called before accessing 'this' in the constructor of a derived class. + } + } + + class Derived5 extends Base { + prop = true; + constructor() { + super(); + super.receivesAnything(); + } + } + + class Derived6 extends Base { + prop = true; + constructor() { + super(this); + ~~~~ +!!! error TS17009: 'super' must be called before accessing 'this' in the constructor of a derived class. + super.receivesAnything(); + } + } + + class Derived7 extends Base { + prop = true; + constructor() { + super(); + super.receivesAnything(this); + } + } + + class Derived8 extends Base { + prop = true; + constructor() { + super(this); + ~~~~ +!!! error TS17009: 'super' must be called before accessing 'this' in the constructor of a derived class. + super.receivesAnything(this); + } + } + + class DerivedWithArrowFunction extends Base { + prop = true; + constructor() { + (() => this)(); + super(); + } + } + + class DerivedWithArrowFunctionParameter extends Base { + prop = true; + constructor() { + const lambda = (param = this) => {}; + super(); + } + } + + class DerivedWithDecoratorOnClass extends Base { + prop = true; + constructor() { + ~~~~~~~~~~~ +!!! error TS2376: A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers. + @decorate(this) + ~~~~ +!!! error TS17009: 'super' must be called before accessing 'this' in the constructor of a derived class. + class InnerClass { } + + super(); + } + } + + class DerivedWithDecoratorOnClassMethod extends Base { + prop = true; + constructor() { + ~~~~~~~~~~~ +!!! error TS2376: A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers. + class InnerClass { + @decorate(this) + ~~~~ +!!! error TS17009: 'super' must be called before accessing 'this' in the constructor of a derived class. + innerMethod() { } + } + + super(); + } + } + + class DerivedWithDecoratorOnClassProperty extends Base { + prop = true; + constructor() { + class InnerClass { + @decorate(this) + ~~~~ +!!! error TS17009: 'super' must be called before accessing 'this' in the constructor of a derived class. + innerProp = true; + } + + super(); + } + } + + class DerivedWithFunctionDeclaration extends Base { + prop = true; + constructor() { + function declaration() { + return this; + } + super(); + } + } + + class DerivedWithFunctionDeclarationAndThisParam extends Base { + prop = true; + constructor() { + function declaration(param = this) { + return param; + } + super(); + } + } + + class DerivedWithFunctionExpression extends Base { + prop = true; + constructor() { + (function () { + return this; + })(); + super(); + } + } + + class DerivedWithParenthesis extends Base { + prop = true; + constructor() { + (super()); + } + } + + class DerivedWithParenthesisAfterStatement extends Base { + prop = true; + constructor() { + ~~~~~~~~~~~ +!!! error TS2376: A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers. + this.prop; + ~~~~ +!!! error TS17009: 'super' must be called before accessing 'this' in the constructor of a derived class. + (super()); + } + } + + class DerivedWithParenthesisBeforeStatement extends Base { + prop = true; + constructor() { + (super()); + this.prop; + } + } + + class DerivedWithClassDeclaration extends Base { + prop = true; + constructor() { + class InnerClass { + private method() { + return this; + } + private property = 7; + constructor() { + this.property; + this.method(); + } + } + super(); + } + } + + class DerivedWithClassDeclarationExtendingMember extends Base { + memberClass = class { }; + constructor() { + ~~~~~~~~~~~ +!!! error TS2376: A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers. + class InnerClass extends this.memberClass { + ~~~~ +!!! error TS17009: 'super' must be called before accessing 'this' in the constructor of a derived class. + private method() { + return this; + } + private property = 7; + constructor() { + super(); + this.property; + this.method(); + } + } + super(); + } + } + + class DerivedWithClassExpression extends Base { + prop = true; + constructor() { + console.log(class { + private method() { + return this; + } + private property = 7; + constructor() { + this.property; + this.method(); + } + }); + super(); + } + } + + class DerivedWithClassExpressionExtendingMember extends Base { + memberClass = class { }; + constructor() { + ~~~~~~~~~~~ +!!! error TS2376: A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers. + console.log(class extends this.memberClass { }); + ~~~~ +!!! error TS17009: 'super' must be called before accessing 'this' in the constructor of a derived class. + super(); + } + } + + class DerivedWithDerivedClassExpression extends Base { + prop = true; + constructor() { + console.log(class extends Base { + constructor() { + super(); + } + public foo() { + return this; + } + public bar = () => this; + }); + super(); + } + } + + class DerivedWithNewDerivedClassExpression extends Base { + prop = true; + constructor() { + console.log(new class extends Base { + constructor() { + super(); + } + }()); + super(); + } + } + + class DerivedWithObjectAccessors extends Base { + prop = true; + constructor() { + const obj = { + get prop() { + return true; + }, + set prop(param) { + this._prop = param; + } + }; + super(); + } + } + + class DerivedWithObjectAccessorsUsingThisInKeys extends Base { + propName = "prop"; + constructor() { + ~~~~~~~~~~~ +!!! error TS2376: A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers. + const obj = { + _prop: "prop", + get [this.propName]() { + ~~~~ +!!! error TS17009: 'super' must be called before accessing 'this' in the constructor of a derived class. + return true; + }, + set [this.propName](param) { + ~~~~ +!!! error TS17009: 'super' must be called before accessing 'this' in the constructor of a derived class. + this._prop = param; + } + }; + super(); + } + } + + class DerivedWithObjectAccessorsUsingThisInBodies extends Base { + propName = "prop"; + constructor() { + const obj = { + _prop: "prop", + get prop() { + return this._prop; + }, + set prop(param) { + this._prop = param; + } + }; + super(); + } + } + + class DerivedWithObjectComputedPropertyBody extends Base { + propName = "prop"; + constructor() { + ~~~~~~~~~~~ +!!! error TS2376: A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers. + const obj = { + prop: this.propName, + ~~~~ +!!! error TS17009: 'super' must be called before accessing 'this' in the constructor of a derived class. + }; + super(); + } + } + + class DerivedWithObjectComputedPropertyName extends Base { + propName = "prop"; + constructor() { + ~~~~~~~~~~~ +!!! error TS2376: A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers. + const obj = { + [this.propName]: true, + ~~~~ +!!! error TS17009: 'super' must be called before accessing 'this' in the constructor of a derived class. + }; + super(); + } + } + + class DerivedWithObjectMethod extends Base { + prop = true; + constructor() { + const obj = { + getProp() { + return this; + }, + }; + super(); + } + } + + let a, b; + + const DerivedWithLoops = [ + class extends Base { + prop = true; + constructor() { + for(super();;) {} + ~~~~~~~ +!!! error TS2401: A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers. + } + }, + class extends Base { + prop = true; + constructor() { + for(a; super();) {} + ~~~~~~~ +!!! error TS1345: An expression of type 'void' cannot be tested for truthiness. + ~~~~~~~ +!!! error TS2401: A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers. + } + }, + class extends Base { + prop = true; + constructor() { + for(a; b; super()) {} + ~~~~~~~ +!!! error TS2401: A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers. + } + }, + class extends Base { + prop = true; + constructor() { + for(; ; super()) { break; } + ~~~~~~~ +!!! error TS2401: A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers. + } + }, + class extends Base { + prop = true; + constructor() { + for (const x of super()) {} + ~~~~~~~ +!!! error TS2401: A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers. + ~~~~~~~ +!!! error TS2488: Type 'void' must have a '[Symbol.iterator]()' method that returns an iterator. + } + }, + class extends Base { + prop = true; + constructor() { + while (super()) {} + ~~~~~~~ +!!! error TS1345: An expression of type 'void' cannot be tested for truthiness. + ~~~~~~~ +!!! error TS2401: A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers. + } + }, + class extends Base { + prop = true; + constructor() { + do {} while (super()); + ~~~~~~~ +!!! error TS1345: An expression of type 'void' cannot be tested for truthiness. + ~~~~~~~ +!!! error TS2401: A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers. + } + }, + class extends Base { + prop = true; + constructor() { + if (super()) {} + ~~~~~~~ +!!! error TS1345: An expression of type 'void' cannot be tested for truthiness. + ~~~~~~~ +!!! error TS2401: A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers. + } + }, + class extends Base { + prop = true; + constructor() { + switch (super()) {} + ~~~~~~~ +!!! error TS2401: A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers. + } + }, + ] + \ No newline at end of file diff --git a/tests/baselines/reference/derivedClassSuperProperties(target=es2015).js b/tests/baselines/reference/derivedClassSuperProperties(target=es2015).js new file mode 100644 index 0000000000000..80859dbca418f --- /dev/null +++ b/tests/baselines/reference/derivedClassSuperProperties(target=es2015).js @@ -0,0 +1,788 @@ +//// [tests/cases/conformance/classes/constructorDeclarations/superCalls/derivedClassSuperProperties.ts] //// + +//// [derivedClassSuperProperties.ts] +declare const decorate: any; + +class Base { + constructor(a?) { } + + receivesAnything(param?) { } +} + +class Derived1 extends Base { + prop = true; + constructor() { + super.receivesAnything(); + super(); + } +} + +class Derived2 extends Base { + prop = true; + constructor() { + super.receivesAnything(this); + super(); + } +} + +class Derived3 extends Base { + prop = true; + constructor() { + super.receivesAnything(); + super(this); + } +} + +class Derived4 extends Base { + prop = true; + constructor() { + super.receivesAnything(this); + super(this); + } +} + +class Derived5 extends Base { + prop = true; + constructor() { + super(); + super.receivesAnything(); + } +} + +class Derived6 extends Base { + prop = true; + constructor() { + super(this); + super.receivesAnything(); + } +} + +class Derived7 extends Base { + prop = true; + constructor() { + super(); + super.receivesAnything(this); + } +} + +class Derived8 extends Base { + prop = true; + constructor() { + super(this); + super.receivesAnything(this); + } +} + +class DerivedWithArrowFunction extends Base { + prop = true; + constructor() { + (() => this)(); + super(); + } +} + +class DerivedWithArrowFunctionParameter extends Base { + prop = true; + constructor() { + const lambda = (param = this) => {}; + super(); + } +} + +class DerivedWithDecoratorOnClass extends Base { + prop = true; + constructor() { + @decorate(this) + class InnerClass { } + + super(); + } +} + +class DerivedWithDecoratorOnClassMethod extends Base { + prop = true; + constructor() { + class InnerClass { + @decorate(this) + innerMethod() { } + } + + super(); + } +} + +class DerivedWithDecoratorOnClassProperty extends Base { + prop = true; + constructor() { + class InnerClass { + @decorate(this) + innerProp = true; + } + + super(); + } +} + +class DerivedWithFunctionDeclaration extends Base { + prop = true; + constructor() { + function declaration() { + return this; + } + super(); + } +} + +class DerivedWithFunctionDeclarationAndThisParam extends Base { + prop = true; + constructor() { + function declaration(param = this) { + return param; + } + super(); + } +} + +class DerivedWithFunctionExpression extends Base { + prop = true; + constructor() { + (function () { + return this; + })(); + super(); + } +} + +class DerivedWithParenthesis extends Base { + prop = true; + constructor() { + (super()); + } +} + +class DerivedWithParenthesisAfterStatement extends Base { + prop = true; + constructor() { + this.prop; + (super()); + } +} + +class DerivedWithParenthesisBeforeStatement extends Base { + prop = true; + constructor() { + (super()); + this.prop; + } +} + +class DerivedWithClassDeclaration extends Base { + prop = true; + constructor() { + class InnerClass { + private method() { + return this; + } + private property = 7; + constructor() { + this.property; + this.method(); + } + } + super(); + } +} + +class DerivedWithClassDeclarationExtendingMember extends Base { + memberClass = class { }; + constructor() { + class InnerClass extends this.memberClass { + private method() { + return this; + } + private property = 7; + constructor() { + super(); + this.property; + this.method(); + } + } + super(); + } +} + +class DerivedWithClassExpression extends Base { + prop = true; + constructor() { + console.log(class { + private method() { + return this; + } + private property = 7; + constructor() { + this.property; + this.method(); + } + }); + super(); + } +} + +class DerivedWithClassExpressionExtendingMember extends Base { + memberClass = class { }; + constructor() { + console.log(class extends this.memberClass { }); + super(); + } +} + +class DerivedWithDerivedClassExpression extends Base { + prop = true; + constructor() { + console.log(class extends Base { + constructor() { + super(); + } + public foo() { + return this; + } + public bar = () => this; + }); + super(); + } +} + +class DerivedWithNewDerivedClassExpression extends Base { + prop = true; + constructor() { + console.log(new class extends Base { + constructor() { + super(); + } + }()); + super(); + } +} + +class DerivedWithObjectAccessors extends Base { + prop = true; + constructor() { + const obj = { + get prop() { + return true; + }, + set prop(param) { + this._prop = param; + } + }; + super(); + } +} + +class DerivedWithObjectAccessorsUsingThisInKeys extends Base { + propName = "prop"; + constructor() { + const obj = { + _prop: "prop", + get [this.propName]() { + return true; + }, + set [this.propName](param) { + this._prop = param; + } + }; + super(); + } +} + +class DerivedWithObjectAccessorsUsingThisInBodies extends Base { + propName = "prop"; + constructor() { + const obj = { + _prop: "prop", + get prop() { + return this._prop; + }, + set prop(param) { + this._prop = param; + } + }; + super(); + } +} + +class DerivedWithObjectComputedPropertyBody extends Base { + propName = "prop"; + constructor() { + const obj = { + prop: this.propName, + }; + super(); + } +} + +class DerivedWithObjectComputedPropertyName extends Base { + propName = "prop"; + constructor() { + const obj = { + [this.propName]: true, + }; + super(); + } +} + +class DerivedWithObjectMethod extends Base { + prop = true; + constructor() { + const obj = { + getProp() { + return this; + }, + }; + super(); + } +} + +let a, b; + +const DerivedWithLoops = [ + class extends Base { + prop = true; + constructor() { + for(super();;) {} + } + }, + class extends Base { + prop = true; + constructor() { + for(a; super();) {} + } + }, + class extends Base { + prop = true; + constructor() { + for(a; b; super()) {} + } + }, + class extends Base { + prop = true; + constructor() { + for(; ; super()) { break; } + } + }, + class extends Base { + prop = true; + constructor() { + for (const x of super()) {} + } + }, + class extends Base { + prop = true; + constructor() { + while (super()) {} + } + }, + class extends Base { + prop = true; + constructor() { + do {} while (super()); + } + }, + class extends Base { + prop = true; + constructor() { + if (super()) {} + } + }, + class extends Base { + prop = true; + constructor() { + switch (super()) {} + } + }, +] + + +//// [derivedClassSuperProperties.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +class Base { + constructor(a) { } + receivesAnything(param) { } +} +class Derived1 extends Base { + constructor() { + super.receivesAnything(); + super(); + this.prop = true; + } +} +class Derived2 extends Base { + constructor() { + super.receivesAnything(this); + super(); + this.prop = true; + } +} +class Derived3 extends Base { + constructor() { + super.receivesAnything(); + super(this); + this.prop = true; + } +} +class Derived4 extends Base { + constructor() { + super.receivesAnything(this); + super(this); + this.prop = true; + } +} +class Derived5 extends Base { + constructor() { + super(); + this.prop = true; + super.receivesAnything(); + } +} +class Derived6 extends Base { + constructor() { + super(this); + this.prop = true; + super.receivesAnything(); + } +} +class Derived7 extends Base { + constructor() { + super(); + this.prop = true; + super.receivesAnything(this); + } +} +class Derived8 extends Base { + constructor() { + super(this); + this.prop = true; + super.receivesAnything(this); + } +} +class DerivedWithArrowFunction extends Base { + constructor() { + (() => this)(); + super(); + this.prop = true; + } +} +class DerivedWithArrowFunctionParameter extends Base { + constructor() { + const lambda = (param = this) => { }; + super(); + this.prop = true; + } +} +class DerivedWithDecoratorOnClass extends Base { + constructor() { + let InnerClass = class InnerClass { + }; + InnerClass = __decorate([ + decorate(this) + ], InnerClass); + super(); + this.prop = true; + } +} +class DerivedWithDecoratorOnClassMethod extends Base { + constructor() { + class InnerClass { + innerMethod() { } + } + __decorate([ + decorate(this) + ], InnerClass.prototype, "innerMethod", null); + super(); + this.prop = true; + } +} +class DerivedWithDecoratorOnClassProperty extends Base { + constructor() { + class InnerClass { + constructor() { + this.innerProp = true; + } + } + __decorate([ + decorate(this) + ], InnerClass.prototype, "innerProp", void 0); + super(); + this.prop = true; + } +} +class DerivedWithFunctionDeclaration extends Base { + constructor() { + function declaration() { + return this; + } + super(); + this.prop = true; + } +} +class DerivedWithFunctionDeclarationAndThisParam extends Base { + constructor() { + function declaration(param = this) { + return param; + } + super(); + this.prop = true; + } +} +class DerivedWithFunctionExpression extends Base { + constructor() { + (function () { + return this; + })(); + super(); + this.prop = true; + } +} +class DerivedWithParenthesis extends Base { + constructor() { + (super()); + this.prop = true; + } +} +class DerivedWithParenthesisAfterStatement extends Base { + constructor() { + this.prop; + (super()); + this.prop = true; + } +} +class DerivedWithParenthesisBeforeStatement extends Base { + constructor() { + (super()); + this.prop = true; + this.prop; + } +} +class DerivedWithClassDeclaration extends Base { + constructor() { + class InnerClass { + method() { + return this; + } + constructor() { + this.property = 7; + this.property; + this.method(); + } + } + super(); + this.prop = true; + } +} +class DerivedWithClassDeclarationExtendingMember extends Base { + constructor() { + class InnerClass extends this.memberClass { + method() { + return this; + } + constructor() { + super(); + this.property = 7; + this.property; + this.method(); + } + } + super(); + this.memberClass = class { + }; + } +} +class DerivedWithClassExpression extends Base { + constructor() { + console.log(class { + method() { + return this; + } + constructor() { + this.property = 7; + this.property; + this.method(); + } + }); + super(); + this.prop = true; + } +} +class DerivedWithClassExpressionExtendingMember extends Base { + constructor() { + console.log(class extends this.memberClass { + }); + super(); + this.memberClass = class { + }; + } +} +class DerivedWithDerivedClassExpression extends Base { + constructor() { + console.log(class extends Base { + constructor() { + super(); + this.bar = () => this; + } + foo() { + return this; + } + }); + super(); + this.prop = true; + } +} +class DerivedWithNewDerivedClassExpression extends Base { + constructor() { + console.log(new class extends Base { + constructor() { + super(); + } + }()); + super(); + this.prop = true; + } +} +class DerivedWithObjectAccessors extends Base { + constructor() { + const obj = { + get prop() { + return true; + }, + set prop(param) { + this._prop = param; + } + }; + super(); + this.prop = true; + } +} +class DerivedWithObjectAccessorsUsingThisInKeys extends Base { + constructor() { + const obj = { + _prop: "prop", + get [this.propName]() { + return true; + }, + set [this.propName](param) { + this._prop = param; + } + }; + super(); + this.propName = "prop"; + } +} +class DerivedWithObjectAccessorsUsingThisInBodies extends Base { + constructor() { + const obj = { + _prop: "prop", + get prop() { + return this._prop; + }, + set prop(param) { + this._prop = param; + } + }; + super(); + this.propName = "prop"; + } +} +class DerivedWithObjectComputedPropertyBody extends Base { + constructor() { + const obj = { + prop: this.propName, + }; + super(); + this.propName = "prop"; + } +} +class DerivedWithObjectComputedPropertyName extends Base { + constructor() { + const obj = { + [this.propName]: true, + }; + super(); + this.propName = "prop"; + } +} +class DerivedWithObjectMethod extends Base { + constructor() { + const obj = { + getProp() { + return this; + }, + }; + super(); + this.prop = true; + } +} +let a, b; +const DerivedWithLoops = [ + class extends Base { + constructor() { + this.prop = true; + for (super();;) { } + } + }, + class extends Base { + constructor() { + this.prop = true; + for (a; super();) { } + } + }, + class extends Base { + constructor() { + this.prop = true; + for (a; b; super()) { } + } + }, + class extends Base { + constructor() { + this.prop = true; + for (;; super()) { + break; + } + } + }, + class extends Base { + constructor() { + this.prop = true; + for (const x of super()) { } + } + }, + class extends Base { + constructor() { + this.prop = true; + while (super()) { } + } + }, + class extends Base { + constructor() { + this.prop = true; + do { } while (super()); + } + }, + class extends Base { + constructor() { + this.prop = true; + if (super()) { } + } + }, + class extends Base { + constructor() { + this.prop = true; + switch (super()) { + } + } + }, +]; diff --git a/tests/baselines/reference/derivedClassSuperProperties.symbols b/tests/baselines/reference/derivedClassSuperProperties(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/derivedClassSuperProperties.symbols rename to tests/baselines/reference/derivedClassSuperProperties(target=es2015).symbols diff --git a/tests/baselines/reference/derivedClassSuperProperties.types b/tests/baselines/reference/derivedClassSuperProperties(target=es2015).types similarity index 100% rename from tests/baselines/reference/derivedClassSuperProperties.types rename to tests/baselines/reference/derivedClassSuperProperties(target=es2015).types diff --git a/tests/baselines/reference/derivedClassSuperProperties.errors.txt b/tests/baselines/reference/derivedClassSuperProperties(target=es5).errors.txt similarity index 100% rename from tests/baselines/reference/derivedClassSuperProperties.errors.txt rename to tests/baselines/reference/derivedClassSuperProperties(target=es5).errors.txt diff --git a/tests/baselines/reference/derivedClassSuperProperties.js b/tests/baselines/reference/derivedClassSuperProperties(target=es5).js similarity index 100% rename from tests/baselines/reference/derivedClassSuperProperties.js rename to tests/baselines/reference/derivedClassSuperProperties(target=es5).js diff --git a/tests/baselines/reference/derivedClassSuperProperties(target=es5).symbols b/tests/baselines/reference/derivedClassSuperProperties(target=es5).symbols new file mode 100644 index 0000000000000..3119dc88af7d5 --- /dev/null +++ b/tests/baselines/reference/derivedClassSuperProperties(target=es5).symbols @@ -0,0 +1,851 @@ +//// [tests/cases/conformance/classes/constructorDeclarations/superCalls/derivedClassSuperProperties.ts] //// + +=== derivedClassSuperProperties.ts === +declare const decorate: any; +>decorate : Symbol(decorate, Decl(derivedClassSuperProperties.ts, 0, 13)) + +class Base { +>Base : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) + + constructor(a?) { } +>a : Symbol(a, Decl(derivedClassSuperProperties.ts, 3, 16)) + + receivesAnything(param?) { } +>receivesAnything : Symbol(Base.receivesAnything, Decl(derivedClassSuperProperties.ts, 3, 23)) +>param : Symbol(param, Decl(derivedClassSuperProperties.ts, 5, 21)) +} + +class Derived1 extends Base { +>Derived1 : Symbol(Derived1, Decl(derivedClassSuperProperties.ts, 6, 1)) +>Base : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) + + prop = true; +>prop : Symbol(Derived1.prop, Decl(derivedClassSuperProperties.ts, 8, 29)) + + constructor() { + super.receivesAnything(); +>super.receivesAnything : Symbol(Base.receivesAnything, Decl(derivedClassSuperProperties.ts, 3, 23)) +>super : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) +>receivesAnything : Symbol(Base.receivesAnything, Decl(derivedClassSuperProperties.ts, 3, 23)) + + super(); +>super : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) + } +} + +class Derived2 extends Base { +>Derived2 : Symbol(Derived2, Decl(derivedClassSuperProperties.ts, 14, 1)) +>Base : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) + + prop = true; +>prop : Symbol(Derived2.prop, Decl(derivedClassSuperProperties.ts, 16, 29)) + + constructor() { + super.receivesAnything(this); +>super.receivesAnything : Symbol(Base.receivesAnything, Decl(derivedClassSuperProperties.ts, 3, 23)) +>super : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) +>receivesAnything : Symbol(Base.receivesAnything, Decl(derivedClassSuperProperties.ts, 3, 23)) +>this : Symbol(Derived2, Decl(derivedClassSuperProperties.ts, 14, 1)) + + super(); +>super : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) + } +} + +class Derived3 extends Base { +>Derived3 : Symbol(Derived3, Decl(derivedClassSuperProperties.ts, 22, 1)) +>Base : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) + + prop = true; +>prop : Symbol(Derived3.prop, Decl(derivedClassSuperProperties.ts, 24, 29)) + + constructor() { + super.receivesAnything(); +>super.receivesAnything : Symbol(Base.receivesAnything, Decl(derivedClassSuperProperties.ts, 3, 23)) +>super : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) +>receivesAnything : Symbol(Base.receivesAnything, Decl(derivedClassSuperProperties.ts, 3, 23)) + + super(this); +>super : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) +>this : Symbol(Derived3, Decl(derivedClassSuperProperties.ts, 22, 1)) + } +} + +class Derived4 extends Base { +>Derived4 : Symbol(Derived4, Decl(derivedClassSuperProperties.ts, 30, 1)) +>Base : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) + + prop = true; +>prop : Symbol(Derived4.prop, Decl(derivedClassSuperProperties.ts, 32, 29)) + + constructor() { + super.receivesAnything(this); +>super.receivesAnything : Symbol(Base.receivesAnything, Decl(derivedClassSuperProperties.ts, 3, 23)) +>super : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) +>receivesAnything : Symbol(Base.receivesAnything, Decl(derivedClassSuperProperties.ts, 3, 23)) +>this : Symbol(Derived4, Decl(derivedClassSuperProperties.ts, 30, 1)) + + super(this); +>super : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) +>this : Symbol(Derived4, Decl(derivedClassSuperProperties.ts, 30, 1)) + } +} + +class Derived5 extends Base { +>Derived5 : Symbol(Derived5, Decl(derivedClassSuperProperties.ts, 38, 1)) +>Base : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) + + prop = true; +>prop : Symbol(Derived5.prop, Decl(derivedClassSuperProperties.ts, 40, 29)) + + constructor() { + super(); +>super : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) + + super.receivesAnything(); +>super.receivesAnything : Symbol(Base.receivesAnything, Decl(derivedClassSuperProperties.ts, 3, 23)) +>super : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) +>receivesAnything : Symbol(Base.receivesAnything, Decl(derivedClassSuperProperties.ts, 3, 23)) + } +} + +class Derived6 extends Base { +>Derived6 : Symbol(Derived6, Decl(derivedClassSuperProperties.ts, 46, 1)) +>Base : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) + + prop = true; +>prop : Symbol(Derived6.prop, Decl(derivedClassSuperProperties.ts, 48, 29)) + + constructor() { + super(this); +>super : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) +>this : Symbol(Derived6, Decl(derivedClassSuperProperties.ts, 46, 1)) + + super.receivesAnything(); +>super.receivesAnything : Symbol(Base.receivesAnything, Decl(derivedClassSuperProperties.ts, 3, 23)) +>super : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) +>receivesAnything : Symbol(Base.receivesAnything, Decl(derivedClassSuperProperties.ts, 3, 23)) + } +} + +class Derived7 extends Base { +>Derived7 : Symbol(Derived7, Decl(derivedClassSuperProperties.ts, 54, 1)) +>Base : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) + + prop = true; +>prop : Symbol(Derived7.prop, Decl(derivedClassSuperProperties.ts, 56, 29)) + + constructor() { + super(); +>super : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) + + super.receivesAnything(this); +>super.receivesAnything : Symbol(Base.receivesAnything, Decl(derivedClassSuperProperties.ts, 3, 23)) +>super : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) +>receivesAnything : Symbol(Base.receivesAnything, Decl(derivedClassSuperProperties.ts, 3, 23)) +>this : Symbol(Derived7, Decl(derivedClassSuperProperties.ts, 54, 1)) + } +} + +class Derived8 extends Base { +>Derived8 : Symbol(Derived8, Decl(derivedClassSuperProperties.ts, 62, 1)) +>Base : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) + + prop = true; +>prop : Symbol(Derived8.prop, Decl(derivedClassSuperProperties.ts, 64, 29)) + + constructor() { + super(this); +>super : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) +>this : Symbol(Derived8, Decl(derivedClassSuperProperties.ts, 62, 1)) + + super.receivesAnything(this); +>super.receivesAnything : Symbol(Base.receivesAnything, Decl(derivedClassSuperProperties.ts, 3, 23)) +>super : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) +>receivesAnything : Symbol(Base.receivesAnything, Decl(derivedClassSuperProperties.ts, 3, 23)) +>this : Symbol(Derived8, Decl(derivedClassSuperProperties.ts, 62, 1)) + } +} + +class DerivedWithArrowFunction extends Base { +>DerivedWithArrowFunction : Symbol(DerivedWithArrowFunction, Decl(derivedClassSuperProperties.ts, 70, 1)) +>Base : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) + + prop = true; +>prop : Symbol(DerivedWithArrowFunction.prop, Decl(derivedClassSuperProperties.ts, 72, 45)) + + constructor() { + (() => this)(); +>this : Symbol(DerivedWithArrowFunction, Decl(derivedClassSuperProperties.ts, 70, 1)) + + super(); +>super : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) + } +} + +class DerivedWithArrowFunctionParameter extends Base { +>DerivedWithArrowFunctionParameter : Symbol(DerivedWithArrowFunctionParameter, Decl(derivedClassSuperProperties.ts, 78, 1)) +>Base : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) + + prop = true; +>prop : Symbol(DerivedWithArrowFunctionParameter.prop, Decl(derivedClassSuperProperties.ts, 80, 54)) + + constructor() { + const lambda = (param = this) => {}; +>lambda : Symbol(lambda, Decl(derivedClassSuperProperties.ts, 83, 13)) +>param : Symbol(param, Decl(derivedClassSuperProperties.ts, 83, 24)) +>this : Symbol(DerivedWithArrowFunctionParameter, Decl(derivedClassSuperProperties.ts, 78, 1)) + + super(); +>super : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) + } +} + +class DerivedWithDecoratorOnClass extends Base { +>DerivedWithDecoratorOnClass : Symbol(DerivedWithDecoratorOnClass, Decl(derivedClassSuperProperties.ts, 86, 1)) +>Base : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) + + prop = true; +>prop : Symbol(DerivedWithDecoratorOnClass.prop, Decl(derivedClassSuperProperties.ts, 88, 48)) + + constructor() { + @decorate(this) +>decorate : Symbol(decorate, Decl(derivedClassSuperProperties.ts, 0, 13)) +>this : Symbol(DerivedWithDecoratorOnClass, Decl(derivedClassSuperProperties.ts, 86, 1)) + + class InnerClass { } +>InnerClass : Symbol(InnerClass, Decl(derivedClassSuperProperties.ts, 90, 19)) + + super(); +>super : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) + } +} + +class DerivedWithDecoratorOnClassMethod extends Base { +>DerivedWithDecoratorOnClassMethod : Symbol(DerivedWithDecoratorOnClassMethod, Decl(derivedClassSuperProperties.ts, 96, 1)) +>Base : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) + + prop = true; +>prop : Symbol(DerivedWithDecoratorOnClassMethod.prop, Decl(derivedClassSuperProperties.ts, 98, 54)) + + constructor() { + class InnerClass { +>InnerClass : Symbol(InnerClass, Decl(derivedClassSuperProperties.ts, 100, 19)) + + @decorate(this) +>decorate : Symbol(decorate, Decl(derivedClassSuperProperties.ts, 0, 13)) +>this : Symbol(DerivedWithDecoratorOnClassMethod, Decl(derivedClassSuperProperties.ts, 96, 1)) + + innerMethod() { } +>innerMethod : Symbol(InnerClass.innerMethod, Decl(derivedClassSuperProperties.ts, 101, 26)) + } + + super(); +>super : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) + } +} + +class DerivedWithDecoratorOnClassProperty extends Base { +>DerivedWithDecoratorOnClassProperty : Symbol(DerivedWithDecoratorOnClassProperty, Decl(derivedClassSuperProperties.ts, 108, 1)) +>Base : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) + + prop = true; +>prop : Symbol(DerivedWithDecoratorOnClassProperty.prop, Decl(derivedClassSuperProperties.ts, 110, 56)) + + constructor() { + class InnerClass { +>InnerClass : Symbol(InnerClass, Decl(derivedClassSuperProperties.ts, 112, 19)) + + @decorate(this) +>decorate : Symbol(decorate, Decl(derivedClassSuperProperties.ts, 0, 13)) +>this : Symbol(DerivedWithDecoratorOnClassProperty, Decl(derivedClassSuperProperties.ts, 108, 1)) + + innerProp = true; +>innerProp : Symbol(InnerClass.innerProp, Decl(derivedClassSuperProperties.ts, 113, 26)) + } + + super(); +>super : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) + } +} + +class DerivedWithFunctionDeclaration extends Base { +>DerivedWithFunctionDeclaration : Symbol(DerivedWithFunctionDeclaration, Decl(derivedClassSuperProperties.ts, 120, 1)) +>Base : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) + + prop = true; +>prop : Symbol(DerivedWithFunctionDeclaration.prop, Decl(derivedClassSuperProperties.ts, 122, 51)) + + constructor() { + function declaration() { +>declaration : Symbol(declaration, Decl(derivedClassSuperProperties.ts, 124, 19)) + + return this; + } + super(); +>super : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) + } +} + +class DerivedWithFunctionDeclarationAndThisParam extends Base { +>DerivedWithFunctionDeclarationAndThisParam : Symbol(DerivedWithFunctionDeclarationAndThisParam, Decl(derivedClassSuperProperties.ts, 130, 1)) +>Base : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) + + prop = true; +>prop : Symbol(DerivedWithFunctionDeclarationAndThisParam.prop, Decl(derivedClassSuperProperties.ts, 132, 63)) + + constructor() { + function declaration(param = this) { +>declaration : Symbol(declaration, Decl(derivedClassSuperProperties.ts, 134, 19)) +>param : Symbol(param, Decl(derivedClassSuperProperties.ts, 135, 29)) + + return param; +>param : Symbol(param, Decl(derivedClassSuperProperties.ts, 135, 29)) + } + super(); +>super : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) + } +} + +class DerivedWithFunctionExpression extends Base { +>DerivedWithFunctionExpression : Symbol(DerivedWithFunctionExpression, Decl(derivedClassSuperProperties.ts, 140, 1)) +>Base : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) + + prop = true; +>prop : Symbol(DerivedWithFunctionExpression.prop, Decl(derivedClassSuperProperties.ts, 142, 50)) + + constructor() { + (function () { + return this; + })(); + super(); +>super : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) + } +} + +class DerivedWithParenthesis extends Base { +>DerivedWithParenthesis : Symbol(DerivedWithParenthesis, Decl(derivedClassSuperProperties.ts, 150, 1)) +>Base : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) + + prop = true; +>prop : Symbol(DerivedWithParenthesis.prop, Decl(derivedClassSuperProperties.ts, 152, 43)) + + constructor() { + (super()); +>super : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) + } +} + +class DerivedWithParenthesisAfterStatement extends Base { +>DerivedWithParenthesisAfterStatement : Symbol(DerivedWithParenthesisAfterStatement, Decl(derivedClassSuperProperties.ts, 157, 1)) +>Base : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) + + prop = true; +>prop : Symbol(DerivedWithParenthesisAfterStatement.prop, Decl(derivedClassSuperProperties.ts, 159, 57)) + + constructor() { + this.prop; +>this.prop : Symbol(DerivedWithParenthesisAfterStatement.prop, Decl(derivedClassSuperProperties.ts, 159, 57)) +>this : Symbol(DerivedWithParenthesisAfterStatement, Decl(derivedClassSuperProperties.ts, 157, 1)) +>prop : Symbol(DerivedWithParenthesisAfterStatement.prop, Decl(derivedClassSuperProperties.ts, 159, 57)) + + (super()); +>super : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) + } +} + +class DerivedWithParenthesisBeforeStatement extends Base { +>DerivedWithParenthesisBeforeStatement : Symbol(DerivedWithParenthesisBeforeStatement, Decl(derivedClassSuperProperties.ts, 165, 1)) +>Base : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) + + prop = true; +>prop : Symbol(DerivedWithParenthesisBeforeStatement.prop, Decl(derivedClassSuperProperties.ts, 167, 58)) + + constructor() { + (super()); +>super : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) + + this.prop; +>this.prop : Symbol(DerivedWithParenthesisBeforeStatement.prop, Decl(derivedClassSuperProperties.ts, 167, 58)) +>this : Symbol(DerivedWithParenthesisBeforeStatement, Decl(derivedClassSuperProperties.ts, 165, 1)) +>prop : Symbol(DerivedWithParenthesisBeforeStatement.prop, Decl(derivedClassSuperProperties.ts, 167, 58)) + } +} + +class DerivedWithClassDeclaration extends Base { +>DerivedWithClassDeclaration : Symbol(DerivedWithClassDeclaration, Decl(derivedClassSuperProperties.ts, 173, 1)) +>Base : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) + + prop = true; +>prop : Symbol(DerivedWithClassDeclaration.prop, Decl(derivedClassSuperProperties.ts, 175, 48)) + + constructor() { + class InnerClass { +>InnerClass : Symbol(InnerClass, Decl(derivedClassSuperProperties.ts, 177, 19)) + + private method() { +>method : Symbol(InnerClass.method, Decl(derivedClassSuperProperties.ts, 178, 26)) + + return this; +>this : Symbol(InnerClass, Decl(derivedClassSuperProperties.ts, 177, 19)) + } + private property = 7; +>property : Symbol(InnerClass.property, Decl(derivedClassSuperProperties.ts, 181, 13)) + + constructor() { + this.property; +>this.property : Symbol(InnerClass.property, Decl(derivedClassSuperProperties.ts, 181, 13)) +>this : Symbol(InnerClass, Decl(derivedClassSuperProperties.ts, 177, 19)) +>property : Symbol(InnerClass.property, Decl(derivedClassSuperProperties.ts, 181, 13)) + + this.method(); +>this.method : Symbol(InnerClass.method, Decl(derivedClassSuperProperties.ts, 178, 26)) +>this : Symbol(InnerClass, Decl(derivedClassSuperProperties.ts, 177, 19)) +>method : Symbol(InnerClass.method, Decl(derivedClassSuperProperties.ts, 178, 26)) + } + } + super(); +>super : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) + } +} + +class DerivedWithClassDeclarationExtendingMember extends Base { +>DerivedWithClassDeclarationExtendingMember : Symbol(DerivedWithClassDeclarationExtendingMember, Decl(derivedClassSuperProperties.ts, 190, 1)) +>Base : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) + + memberClass = class { }; +>memberClass : Symbol(DerivedWithClassDeclarationExtendingMember.memberClass, Decl(derivedClassSuperProperties.ts, 192, 63)) + + constructor() { + class InnerClass extends this.memberClass { +>InnerClass : Symbol(InnerClass, Decl(derivedClassSuperProperties.ts, 194, 19)) +>this.memberClass : Symbol(DerivedWithClassDeclarationExtendingMember.memberClass, Decl(derivedClassSuperProperties.ts, 192, 63)) +>this : Symbol(DerivedWithClassDeclarationExtendingMember, Decl(derivedClassSuperProperties.ts, 190, 1)) +>memberClass : Symbol(DerivedWithClassDeclarationExtendingMember.memberClass, Decl(derivedClassSuperProperties.ts, 192, 63)) + + private method() { +>method : Symbol(InnerClass.method, Decl(derivedClassSuperProperties.ts, 195, 51)) + + return this; +>this : Symbol(InnerClass, Decl(derivedClassSuperProperties.ts, 194, 19)) + } + private property = 7; +>property : Symbol(InnerClass.property, Decl(derivedClassSuperProperties.ts, 198, 13)) + + constructor() { + super(); +>super : Symbol((Anonymous class), Decl(derivedClassSuperProperties.ts, 193, 17)) + + this.property; +>this.property : Symbol(InnerClass.property, Decl(derivedClassSuperProperties.ts, 198, 13)) +>this : Symbol(InnerClass, Decl(derivedClassSuperProperties.ts, 194, 19)) +>property : Symbol(InnerClass.property, Decl(derivedClassSuperProperties.ts, 198, 13)) + + this.method(); +>this.method : Symbol(InnerClass.method, Decl(derivedClassSuperProperties.ts, 195, 51)) +>this : Symbol(InnerClass, Decl(derivedClassSuperProperties.ts, 194, 19)) +>method : Symbol(InnerClass.method, Decl(derivedClassSuperProperties.ts, 195, 51)) + } + } + super(); +>super : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) + } +} + +class DerivedWithClassExpression extends Base { +>DerivedWithClassExpression : Symbol(DerivedWithClassExpression, Decl(derivedClassSuperProperties.ts, 208, 1)) +>Base : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) + + prop = true; +>prop : Symbol(DerivedWithClassExpression.prop, Decl(derivedClassSuperProperties.ts, 210, 47)) + + constructor() { + console.log(class { +>console.log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) +>console : Symbol(console, Decl(lib.dom.d.ts, --, --)) +>log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) + + private method() { +>method : Symbol((Anonymous class).method, Decl(derivedClassSuperProperties.ts, 213, 27)) + + return this; +>this : Symbol((Anonymous class), Decl(derivedClassSuperProperties.ts, 213, 20)) + } + private property = 7; +>property : Symbol((Anonymous class).property, Decl(derivedClassSuperProperties.ts, 216, 13)) + + constructor() { + this.property; +>this.property : Symbol((Anonymous class).property, Decl(derivedClassSuperProperties.ts, 216, 13)) +>this : Symbol((Anonymous class), Decl(derivedClassSuperProperties.ts, 213, 20)) +>property : Symbol((Anonymous class).property, Decl(derivedClassSuperProperties.ts, 216, 13)) + + this.method(); +>this.method : Symbol((Anonymous class).method, Decl(derivedClassSuperProperties.ts, 213, 27)) +>this : Symbol((Anonymous class), Decl(derivedClassSuperProperties.ts, 213, 20)) +>method : Symbol((Anonymous class).method, Decl(derivedClassSuperProperties.ts, 213, 27)) + } + }); + super(); +>super : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) + } +} + +class DerivedWithClassExpressionExtendingMember extends Base { +>DerivedWithClassExpressionExtendingMember : Symbol(DerivedWithClassExpressionExtendingMember, Decl(derivedClassSuperProperties.ts, 225, 1)) +>Base : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) + + memberClass = class { }; +>memberClass : Symbol(DerivedWithClassExpressionExtendingMember.memberClass, Decl(derivedClassSuperProperties.ts, 227, 62)) + + constructor() { + console.log(class extends this.memberClass { }); +>console.log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) +>console : Symbol(console, Decl(lib.dom.d.ts, --, --)) +>log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) +>this.memberClass : Symbol(DerivedWithClassExpressionExtendingMember.memberClass, Decl(derivedClassSuperProperties.ts, 227, 62)) +>this : Symbol(DerivedWithClassExpressionExtendingMember, Decl(derivedClassSuperProperties.ts, 225, 1)) +>memberClass : Symbol(DerivedWithClassExpressionExtendingMember.memberClass, Decl(derivedClassSuperProperties.ts, 227, 62)) + + super(); +>super : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) + } +} + +class DerivedWithDerivedClassExpression extends Base { +>DerivedWithDerivedClassExpression : Symbol(DerivedWithDerivedClassExpression, Decl(derivedClassSuperProperties.ts, 233, 1)) +>Base : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) + + prop = true; +>prop : Symbol(DerivedWithDerivedClassExpression.prop, Decl(derivedClassSuperProperties.ts, 235, 54)) + + constructor() { + console.log(class extends Base { +>console.log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) +>console : Symbol(console, Decl(lib.dom.d.ts, --, --)) +>log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) +>Base : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) + + constructor() { + super(); +>super : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) + } + public foo() { +>foo : Symbol((Anonymous class).foo, Decl(derivedClassSuperProperties.ts, 241, 13)) + + return this; +>this : Symbol((Anonymous class), Decl(derivedClassSuperProperties.ts, 238, 20)) + } + public bar = () => this; +>bar : Symbol((Anonymous class).bar, Decl(derivedClassSuperProperties.ts, 244, 13)) +>this : Symbol((Anonymous class), Decl(derivedClassSuperProperties.ts, 238, 20)) + + }); + super(); +>super : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) + } +} + +class DerivedWithNewDerivedClassExpression extends Base { +>DerivedWithNewDerivedClassExpression : Symbol(DerivedWithNewDerivedClassExpression, Decl(derivedClassSuperProperties.ts, 249, 1)) +>Base : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) + + prop = true; +>prop : Symbol(DerivedWithNewDerivedClassExpression.prop, Decl(derivedClassSuperProperties.ts, 251, 57)) + + constructor() { + console.log(new class extends Base { +>console.log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) +>console : Symbol(console, Decl(lib.dom.d.ts, --, --)) +>log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) +>Base : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) + + constructor() { + super(); +>super : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) + } + }()); + super(); +>super : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) + } +} + +class DerivedWithObjectAccessors extends Base { +>DerivedWithObjectAccessors : Symbol(DerivedWithObjectAccessors, Decl(derivedClassSuperProperties.ts, 261, 1)) +>Base : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) + + prop = true; +>prop : Symbol(DerivedWithObjectAccessors.prop, Decl(derivedClassSuperProperties.ts, 263, 47)) + + constructor() { + const obj = { +>obj : Symbol(obj, Decl(derivedClassSuperProperties.ts, 266, 13)) + + get prop() { +>prop : Symbol(prop, Decl(derivedClassSuperProperties.ts, 266, 21), Decl(derivedClassSuperProperties.ts, 269, 14)) + + return true; + }, + set prop(param) { +>prop : Symbol(prop, Decl(derivedClassSuperProperties.ts, 266, 21), Decl(derivedClassSuperProperties.ts, 269, 14)) +>param : Symbol(param, Decl(derivedClassSuperProperties.ts, 270, 21)) + + this._prop = param; +>param : Symbol(param, Decl(derivedClassSuperProperties.ts, 270, 21)) + } + }; + super(); +>super : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) + } +} + +class DerivedWithObjectAccessorsUsingThisInKeys extends Base { +>DerivedWithObjectAccessorsUsingThisInKeys : Symbol(DerivedWithObjectAccessorsUsingThisInKeys, Decl(derivedClassSuperProperties.ts, 276, 1)) +>Base : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) + + propName = "prop"; +>propName : Symbol(DerivedWithObjectAccessorsUsingThisInKeys.propName, Decl(derivedClassSuperProperties.ts, 278, 62)) + + constructor() { + const obj = { +>obj : Symbol(obj, Decl(derivedClassSuperProperties.ts, 281, 13)) + + _prop: "prop", +>_prop : Symbol(_prop, Decl(derivedClassSuperProperties.ts, 281, 21)) + + get [this.propName]() { +>[this.propName] : Symbol([this.propName], Decl(derivedClassSuperProperties.ts, 282, 26)) +>this.propName : Symbol(DerivedWithObjectAccessorsUsingThisInKeys.propName, Decl(derivedClassSuperProperties.ts, 278, 62)) +>this : Symbol(DerivedWithObjectAccessorsUsingThisInKeys, Decl(derivedClassSuperProperties.ts, 276, 1)) +>propName : Symbol(DerivedWithObjectAccessorsUsingThisInKeys.propName, Decl(derivedClassSuperProperties.ts, 278, 62)) + + return true; + }, + set [this.propName](param) { +>[this.propName] : Symbol([this.propName], Decl(derivedClassSuperProperties.ts, 285, 14)) +>this.propName : Symbol(DerivedWithObjectAccessorsUsingThisInKeys.propName, Decl(derivedClassSuperProperties.ts, 278, 62)) +>this : Symbol(DerivedWithObjectAccessorsUsingThisInKeys, Decl(derivedClassSuperProperties.ts, 276, 1)) +>propName : Symbol(DerivedWithObjectAccessorsUsingThisInKeys.propName, Decl(derivedClassSuperProperties.ts, 278, 62)) +>param : Symbol(param, Decl(derivedClassSuperProperties.ts, 286, 32)) + + this._prop = param; +>param : Symbol(param, Decl(derivedClassSuperProperties.ts, 286, 32)) + } + }; + super(); +>super : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) + } +} + +class DerivedWithObjectAccessorsUsingThisInBodies extends Base { +>DerivedWithObjectAccessorsUsingThisInBodies : Symbol(DerivedWithObjectAccessorsUsingThisInBodies, Decl(derivedClassSuperProperties.ts, 292, 1)) +>Base : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) + + propName = "prop"; +>propName : Symbol(DerivedWithObjectAccessorsUsingThisInBodies.propName, Decl(derivedClassSuperProperties.ts, 294, 64)) + + constructor() { + const obj = { +>obj : Symbol(obj, Decl(derivedClassSuperProperties.ts, 297, 13)) + + _prop: "prop", +>_prop : Symbol(_prop, Decl(derivedClassSuperProperties.ts, 297, 21)) + + get prop() { +>prop : Symbol(prop, Decl(derivedClassSuperProperties.ts, 298, 26), Decl(derivedClassSuperProperties.ts, 301, 14)) + + return this._prop; + }, + set prop(param) { +>prop : Symbol(prop, Decl(derivedClassSuperProperties.ts, 298, 26), Decl(derivedClassSuperProperties.ts, 301, 14)) +>param : Symbol(param, Decl(derivedClassSuperProperties.ts, 302, 21)) + + this._prop = param; +>param : Symbol(param, Decl(derivedClassSuperProperties.ts, 302, 21)) + } + }; + super(); +>super : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) + } +} + +class DerivedWithObjectComputedPropertyBody extends Base { +>DerivedWithObjectComputedPropertyBody : Symbol(DerivedWithObjectComputedPropertyBody, Decl(derivedClassSuperProperties.ts, 308, 1)) +>Base : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) + + propName = "prop"; +>propName : Symbol(DerivedWithObjectComputedPropertyBody.propName, Decl(derivedClassSuperProperties.ts, 310, 58)) + + constructor() { + const obj = { +>obj : Symbol(obj, Decl(derivedClassSuperProperties.ts, 313, 13)) + + prop: this.propName, +>prop : Symbol(prop, Decl(derivedClassSuperProperties.ts, 313, 21)) +>this.propName : Symbol(DerivedWithObjectComputedPropertyBody.propName, Decl(derivedClassSuperProperties.ts, 310, 58)) +>this : Symbol(DerivedWithObjectComputedPropertyBody, Decl(derivedClassSuperProperties.ts, 308, 1)) +>propName : Symbol(DerivedWithObjectComputedPropertyBody.propName, Decl(derivedClassSuperProperties.ts, 310, 58)) + + }; + super(); +>super : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) + } +} + +class DerivedWithObjectComputedPropertyName extends Base { +>DerivedWithObjectComputedPropertyName : Symbol(DerivedWithObjectComputedPropertyName, Decl(derivedClassSuperProperties.ts, 318, 1)) +>Base : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) + + propName = "prop"; +>propName : Symbol(DerivedWithObjectComputedPropertyName.propName, Decl(derivedClassSuperProperties.ts, 320, 58)) + + constructor() { + const obj = { +>obj : Symbol(obj, Decl(derivedClassSuperProperties.ts, 323, 13)) + + [this.propName]: true, +>[this.propName] : Symbol([this.propName], Decl(derivedClassSuperProperties.ts, 323, 21)) +>this.propName : Symbol(DerivedWithObjectComputedPropertyName.propName, Decl(derivedClassSuperProperties.ts, 320, 58)) +>this : Symbol(DerivedWithObjectComputedPropertyName, Decl(derivedClassSuperProperties.ts, 318, 1)) +>propName : Symbol(DerivedWithObjectComputedPropertyName.propName, Decl(derivedClassSuperProperties.ts, 320, 58)) + + }; + super(); +>super : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) + } +} + +class DerivedWithObjectMethod extends Base { +>DerivedWithObjectMethod : Symbol(DerivedWithObjectMethod, Decl(derivedClassSuperProperties.ts, 328, 1)) +>Base : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) + + prop = true; +>prop : Symbol(DerivedWithObjectMethod.prop, Decl(derivedClassSuperProperties.ts, 330, 44)) + + constructor() { + const obj = { +>obj : Symbol(obj, Decl(derivedClassSuperProperties.ts, 333, 13)) + + getProp() { +>getProp : Symbol(getProp, Decl(derivedClassSuperProperties.ts, 333, 21)) + + return this; + }, + }; + super(); +>super : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) + } +} + +let a, b; +>a : Symbol(a, Decl(derivedClassSuperProperties.ts, 342, 3)) +>b : Symbol(b, Decl(derivedClassSuperProperties.ts, 342, 6)) + +const DerivedWithLoops = [ +>DerivedWithLoops : Symbol(DerivedWithLoops, Decl(derivedClassSuperProperties.ts, 344, 5)) + + class extends Base { +>Base : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) + + prop = true; +>prop : Symbol((Anonymous class).prop, Decl(derivedClassSuperProperties.ts, 345, 24)) + + constructor() { + for(super();;) {} +>super : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) + } + }, + class extends Base { +>Base : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) + + prop = true; +>prop : Symbol((Anonymous class).prop, Decl(derivedClassSuperProperties.ts, 351, 24)) + + constructor() { + for(a; super();) {} +>a : Symbol(a, Decl(derivedClassSuperProperties.ts, 342, 3)) +>super : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) + } + }, + class extends Base { +>Base : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) + + prop = true; +>prop : Symbol((Anonymous class).prop, Decl(derivedClassSuperProperties.ts, 357, 24)) + + constructor() { + for(a; b; super()) {} +>a : Symbol(a, Decl(derivedClassSuperProperties.ts, 342, 3)) +>b : Symbol(b, Decl(derivedClassSuperProperties.ts, 342, 6)) +>super : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) + } + }, + class extends Base { +>Base : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) + + prop = true; +>prop : Symbol((Anonymous class).prop, Decl(derivedClassSuperProperties.ts, 363, 24)) + + constructor() { + for(; ; super()) { break; } +>super : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) + } + }, + class extends Base { +>Base : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) + + prop = true; +>prop : Symbol((Anonymous class).prop, Decl(derivedClassSuperProperties.ts, 369, 24)) + + constructor() { + for (const x of super()) {} +>x : Symbol(x, Decl(derivedClassSuperProperties.ts, 372, 22)) +>super : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) + } + }, + class extends Base { +>Base : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) + + prop = true; +>prop : Symbol((Anonymous class).prop, Decl(derivedClassSuperProperties.ts, 375, 24)) + + constructor() { + while (super()) {} +>super : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) + } + }, + class extends Base { +>Base : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) + + prop = true; +>prop : Symbol((Anonymous class).prop, Decl(derivedClassSuperProperties.ts, 381, 24)) + + constructor() { + do {} while (super()); +>super : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) + } + }, + class extends Base { +>Base : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) + + prop = true; +>prop : Symbol((Anonymous class).prop, Decl(derivedClassSuperProperties.ts, 387, 24)) + + constructor() { + if (super()) {} +>super : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) + } + }, + class extends Base { +>Base : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) + + prop = true; +>prop : Symbol((Anonymous class).prop, Decl(derivedClassSuperProperties.ts, 393, 24)) + + constructor() { + switch (super()) {} +>super : Symbol(Base, Decl(derivedClassSuperProperties.ts, 0, 28)) + } + }, +] + diff --git a/tests/baselines/reference/derivedClassSuperProperties(target=es5).types b/tests/baselines/reference/derivedClassSuperProperties(target=es5).types new file mode 100644 index 0000000000000..746334a3170e5 --- /dev/null +++ b/tests/baselines/reference/derivedClassSuperProperties(target=es5).types @@ -0,0 +1,1490 @@ +//// [tests/cases/conformance/classes/constructorDeclarations/superCalls/derivedClassSuperProperties.ts] //// + +=== derivedClassSuperProperties.ts === +declare const decorate: any; +>decorate : any +> : ^^^ + +class Base { +>Base : Base +> : ^^^^ + + constructor(a?) { } +>a : any +> : ^^^ + + receivesAnything(param?) { } +>receivesAnything : (param?: any) => void +> : ^ ^^^^^^^^^^^^^^^ +>param : any +> : ^^^ +} + +class Derived1 extends Base { +>Derived1 : Derived1 +> : ^^^^^^^^ +>Base : Base +> : ^^^^ + + prop = true; +>prop : boolean +> : ^^^^^^^ +>true : true +> : ^^^^ + + constructor() { + super.receivesAnything(); +>super.receivesAnything() : void +> : ^^^^ +>super.receivesAnything : (param?: any) => void +> : ^ ^^^^^^^^^^^^^^^ +>super : Base +> : ^^^^ +>receivesAnything : (param?: any) => void +> : ^ ^^^^^^^^^^^^^^^ + + super(); +>super() : void +> : ^^^^ +>super : typeof Base +> : ^^^^^^^^^^^ + } +} + +class Derived2 extends Base { +>Derived2 : Derived2 +> : ^^^^^^^^ +>Base : Base +> : ^^^^ + + prop = true; +>prop : boolean +> : ^^^^^^^ +>true : true +> : ^^^^ + + constructor() { + super.receivesAnything(this); +>super.receivesAnything(this) : void +> : ^^^^ +>super.receivesAnything : (param?: any) => void +> : ^ ^^^^^^^^^^^^^^^ +>super : Base +> : ^^^^ +>receivesAnything : (param?: any) => void +> : ^ ^^^^^^^^^^^^^^^ +>this : this +> : ^^^^ + + super(); +>super() : void +> : ^^^^ +>super : typeof Base +> : ^^^^^^^^^^^ + } +} + +class Derived3 extends Base { +>Derived3 : Derived3 +> : ^^^^^^^^ +>Base : Base +> : ^^^^ + + prop = true; +>prop : boolean +> : ^^^^^^^ +>true : true +> : ^^^^ + + constructor() { + super.receivesAnything(); +>super.receivesAnything() : void +> : ^^^^ +>super.receivesAnything : (param?: any) => void +> : ^ ^^^^^^^^^^^^^^^ +>super : Base +> : ^^^^ +>receivesAnything : (param?: any) => void +> : ^ ^^^^^^^^^^^^^^^ + + super(this); +>super(this) : void +> : ^^^^ +>super : typeof Base +> : ^^^^^^^^^^^ +>this : this +> : ^^^^ + } +} + +class Derived4 extends Base { +>Derived4 : Derived4 +> : ^^^^^^^^ +>Base : Base +> : ^^^^ + + prop = true; +>prop : boolean +> : ^^^^^^^ +>true : true +> : ^^^^ + + constructor() { + super.receivesAnything(this); +>super.receivesAnything(this) : void +> : ^^^^ +>super.receivesAnything : (param?: any) => void +> : ^ ^^^^^^^^^^^^^^^ +>super : Base +> : ^^^^ +>receivesAnything : (param?: any) => void +> : ^ ^^^^^^^^^^^^^^^ +>this : this +> : ^^^^ + + super(this); +>super(this) : void +> : ^^^^ +>super : typeof Base +> : ^^^^^^^^^^^ +>this : this +> : ^^^^ + } +} + +class Derived5 extends Base { +>Derived5 : Derived5 +> : ^^^^^^^^ +>Base : Base +> : ^^^^ + + prop = true; +>prop : boolean +> : ^^^^^^^ +>true : true +> : ^^^^ + + constructor() { + super(); +>super() : void +> : ^^^^ +>super : typeof Base +> : ^^^^^^^^^^^ + + super.receivesAnything(); +>super.receivesAnything() : void +> : ^^^^ +>super.receivesAnything : (param?: any) => void +> : ^ ^^^^^^^^^^^^^^^ +>super : Base +> : ^^^^ +>receivesAnything : (param?: any) => void +> : ^ ^^^^^^^^^^^^^^^ + } +} + +class Derived6 extends Base { +>Derived6 : Derived6 +> : ^^^^^^^^ +>Base : Base +> : ^^^^ + + prop = true; +>prop : boolean +> : ^^^^^^^ +>true : true +> : ^^^^ + + constructor() { + super(this); +>super(this) : void +> : ^^^^ +>super : typeof Base +> : ^^^^^^^^^^^ +>this : this +> : ^^^^ + + super.receivesAnything(); +>super.receivesAnything() : void +> : ^^^^ +>super.receivesAnything : (param?: any) => void +> : ^ ^^^^^^^^^^^^^^^ +>super : Base +> : ^^^^ +>receivesAnything : (param?: any) => void +> : ^ ^^^^^^^^^^^^^^^ + } +} + +class Derived7 extends Base { +>Derived7 : Derived7 +> : ^^^^^^^^ +>Base : Base +> : ^^^^ + + prop = true; +>prop : boolean +> : ^^^^^^^ +>true : true +> : ^^^^ + + constructor() { + super(); +>super() : void +> : ^^^^ +>super : typeof Base +> : ^^^^^^^^^^^ + + super.receivesAnything(this); +>super.receivesAnything(this) : void +> : ^^^^ +>super.receivesAnything : (param?: any) => void +> : ^ ^^^^^^^^^^^^^^^ +>super : Base +> : ^^^^ +>receivesAnything : (param?: any) => void +> : ^ ^^^^^^^^^^^^^^^ +>this : this +> : ^^^^ + } +} + +class Derived8 extends Base { +>Derived8 : Derived8 +> : ^^^^^^^^ +>Base : Base +> : ^^^^ + + prop = true; +>prop : boolean +> : ^^^^^^^ +>true : true +> : ^^^^ + + constructor() { + super(this); +>super(this) : void +> : ^^^^ +>super : typeof Base +> : ^^^^^^^^^^^ +>this : this +> : ^^^^ + + super.receivesAnything(this); +>super.receivesAnything(this) : void +> : ^^^^ +>super.receivesAnything : (param?: any) => void +> : ^ ^^^^^^^^^^^^^^^ +>super : Base +> : ^^^^ +>receivesAnything : (param?: any) => void +> : ^ ^^^^^^^^^^^^^^^ +>this : this +> : ^^^^ + } +} + +class DerivedWithArrowFunction extends Base { +>DerivedWithArrowFunction : DerivedWithArrowFunction +> : ^^^^^^^^^^^^^^^^^^^^^^^^ +>Base : Base +> : ^^^^ + + prop = true; +>prop : boolean +> : ^^^^^^^ +>true : true +> : ^^^^ + + constructor() { + (() => this)(); +>(() => this)() : this +> : ^^^^ +>(() => this) : () => this +> : ^^^^^^^^^^ +>() => this : () => this +> : ^^^^^^^^^^ +>this : this +> : ^^^^ + + super(); +>super() : void +> : ^^^^ +>super : typeof Base +> : ^^^^^^^^^^^ + } +} + +class DerivedWithArrowFunctionParameter extends Base { +>DerivedWithArrowFunctionParameter : DerivedWithArrowFunctionParameter +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>Base : Base +> : ^^^^ + + prop = true; +>prop : boolean +> : ^^^^^^^ +>true : true +> : ^^^^ + + constructor() { + const lambda = (param = this) => {}; +>lambda : (param?: this) => void +> : ^ ^^^^^^^^^^^^^^^^ +>(param = this) => {} : (param?: this) => void +> : ^ ^^^^^^^^^^^^^^^^ +>param : this +> : ^^^^ +>this : this +> : ^^^^ + + super(); +>super() : void +> : ^^^^ +>super : typeof Base +> : ^^^^^^^^^^^ + } +} + +class DerivedWithDecoratorOnClass extends Base { +>DerivedWithDecoratorOnClass : DerivedWithDecoratorOnClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>Base : Base +> : ^^^^ + + prop = true; +>prop : boolean +> : ^^^^^^^ +>true : true +> : ^^^^ + + constructor() { + @decorate(this) +>decorate(this) : any +> : ^^^ +>decorate : any +> : ^^^ +>this : this +> : ^^^^ + + class InnerClass { } +>InnerClass : InnerClass +> : ^^^^^^^^^^ + + super(); +>super() : void +> : ^^^^ +>super : typeof Base +> : ^^^^^^^^^^^ + } +} + +class DerivedWithDecoratorOnClassMethod extends Base { +>DerivedWithDecoratorOnClassMethod : DerivedWithDecoratorOnClassMethod +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>Base : Base +> : ^^^^ + + prop = true; +>prop : boolean +> : ^^^^^^^ +>true : true +> : ^^^^ + + constructor() { + class InnerClass { +>InnerClass : InnerClass +> : ^^^^^^^^^^ + + @decorate(this) +>decorate(this) : any +> : ^^^ +>decorate : any +> : ^^^ +>this : this +> : ^^^^ + + innerMethod() { } +>innerMethod : () => void +> : ^^^^^^^^^^ + } + + super(); +>super() : void +> : ^^^^ +>super : typeof Base +> : ^^^^^^^^^^^ + } +} + +class DerivedWithDecoratorOnClassProperty extends Base { +>DerivedWithDecoratorOnClassProperty : DerivedWithDecoratorOnClassProperty +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>Base : Base +> : ^^^^ + + prop = true; +>prop : boolean +> : ^^^^^^^ +>true : true +> : ^^^^ + + constructor() { + class InnerClass { +>InnerClass : InnerClass +> : ^^^^^^^^^^ + + @decorate(this) +>decorate(this) : any +> : ^^^ +>decorate : any +> : ^^^ +>this : this +> : ^^^^ + + innerProp = true; +>innerProp : boolean +> : ^^^^^^^ +>true : true +> : ^^^^ + } + + super(); +>super() : void +> : ^^^^ +>super : typeof Base +> : ^^^^^^^^^^^ + } +} + +class DerivedWithFunctionDeclaration extends Base { +>DerivedWithFunctionDeclaration : DerivedWithFunctionDeclaration +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>Base : Base +> : ^^^^ + + prop = true; +>prop : boolean +> : ^^^^^^^ +>true : true +> : ^^^^ + + constructor() { + function declaration() { +>declaration : () => any +> : ^^^^^^^^^ + + return this; +>this : any +> : ^^^ + } + super(); +>super() : void +> : ^^^^ +>super : typeof Base +> : ^^^^^^^^^^^ + } +} + +class DerivedWithFunctionDeclarationAndThisParam extends Base { +>DerivedWithFunctionDeclarationAndThisParam : DerivedWithFunctionDeclarationAndThisParam +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>Base : Base +> : ^^^^ + + prop = true; +>prop : boolean +> : ^^^^^^^ +>true : true +> : ^^^^ + + constructor() { + function declaration(param = this) { +>declaration : (param?: any) => any +> : ^ ^^^^^^^^^^^^^^ +>param : any +> : ^^^ +>this : any +> : ^^^ + + return param; +>param : any +> : ^^^ + } + super(); +>super() : void +> : ^^^^ +>super : typeof Base +> : ^^^^^^^^^^^ + } +} + +class DerivedWithFunctionExpression extends Base { +>DerivedWithFunctionExpression : DerivedWithFunctionExpression +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>Base : Base +> : ^^^^ + + prop = true; +>prop : boolean +> : ^^^^^^^ +>true : true +> : ^^^^ + + constructor() { + (function () { +>(function () { return this; })() : any +> : ^^^ +>(function () { return this; }) : () => any +> : ^^^^^^^^^ +>function () { return this; } : () => any +> : ^^^^^^^^^ + + return this; +>this : any +> : ^^^ + + })(); + super(); +>super() : void +> : ^^^^ +>super : typeof Base +> : ^^^^^^^^^^^ + } +} + +class DerivedWithParenthesis extends Base { +>DerivedWithParenthesis : DerivedWithParenthesis +> : ^^^^^^^^^^^^^^^^^^^^^^ +>Base : Base +> : ^^^^ + + prop = true; +>prop : boolean +> : ^^^^^^^ +>true : true +> : ^^^^ + + constructor() { + (super()); +>(super()) : void +> : ^^^^ +>super() : void +> : ^^^^ +>super : typeof Base +> : ^^^^^^^^^^^ + } +} + +class DerivedWithParenthesisAfterStatement extends Base { +>DerivedWithParenthesisAfterStatement : DerivedWithParenthesisAfterStatement +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>Base : Base +> : ^^^^ + + prop = true; +>prop : boolean +> : ^^^^^^^ +>true : true +> : ^^^^ + + constructor() { + this.prop; +>this.prop : boolean +> : ^^^^^^^ +>this : this +> : ^^^^ +>prop : boolean +> : ^^^^^^^ + + (super()); +>(super()) : void +> : ^^^^ +>super() : void +> : ^^^^ +>super : typeof Base +> : ^^^^^^^^^^^ + } +} + +class DerivedWithParenthesisBeforeStatement extends Base { +>DerivedWithParenthesisBeforeStatement : DerivedWithParenthesisBeforeStatement +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>Base : Base +> : ^^^^ + + prop = true; +>prop : boolean +> : ^^^^^^^ +>true : true +> : ^^^^ + + constructor() { + (super()); +>(super()) : void +> : ^^^^ +>super() : void +> : ^^^^ +>super : typeof Base +> : ^^^^^^^^^^^ + + this.prop; +>this.prop : boolean +> : ^^^^^^^ +>this : this +> : ^^^^ +>prop : boolean +> : ^^^^^^^ + } +} + +class DerivedWithClassDeclaration extends Base { +>DerivedWithClassDeclaration : DerivedWithClassDeclaration +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>Base : Base +> : ^^^^ + + prop = true; +>prop : boolean +> : ^^^^^^^ +>true : true +> : ^^^^ + + constructor() { + class InnerClass { +>InnerClass : InnerClass +> : ^^^^^^^^^^ + + private method() { +>method : () => this +> : ^^^^^^^^^^ + + return this; +>this : this +> : ^^^^ + } + private property = 7; +>property : number +> : ^^^^^^ +>7 : 7 +> : ^ + + constructor() { + this.property; +>this.property : number +> : ^^^^^^ +>this : this +> : ^^^^ +>property : number +> : ^^^^^^ + + this.method(); +>this.method() : this +> : ^^^^ +>this.method : () => this +> : ^^^^^^^^^^ +>this : this +> : ^^^^ +>method : () => this +> : ^^^^^^^^^^ + } + } + super(); +>super() : void +> : ^^^^ +>super : typeof Base +> : ^^^^^^^^^^^ + } +} + +class DerivedWithClassDeclarationExtendingMember extends Base { +>DerivedWithClassDeclarationExtendingMember : DerivedWithClassDeclarationExtendingMember +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>Base : Base +> : ^^^^ + + memberClass = class { }; +>memberClass : typeof (Anonymous class) +> : ^^^^^^^^^^^^^^^^^^^^^^^^ +>class { } : typeof (Anonymous class) +> : ^^^^^^^^^^^^^^^^^^^^^^^^ + + constructor() { + class InnerClass extends this.memberClass { +>InnerClass : InnerClass +> : ^^^^^^^^^^ +>this.memberClass : (Anonymous class) +> : ^^^^^^^^^^^^^^^^^ +>this : this +> : ^^^^ +>memberClass : typeof (Anonymous class) +> : ^^^^^^^^^^^^^^^^^^^^^^^^ + + private method() { +>method : () => this +> : ^^^^^^^^^^ + + return this; +>this : this +> : ^^^^ + } + private property = 7; +>property : number +> : ^^^^^^ +>7 : 7 +> : ^ + + constructor() { + super(); +>super() : void +> : ^^^^ +>super : typeof (Anonymous class) +> : ^^^^^^^^^^^^^^^^^^^^^^^^ + + this.property; +>this.property : number +> : ^^^^^^ +>this : this +> : ^^^^ +>property : number +> : ^^^^^^ + + this.method(); +>this.method() : this +> : ^^^^ +>this.method : () => this +> : ^^^^^^^^^^ +>this : this +> : ^^^^ +>method : () => this +> : ^^^^^^^^^^ + } + } + super(); +>super() : void +> : ^^^^ +>super : typeof Base +> : ^^^^^^^^^^^ + } +} + +class DerivedWithClassExpression extends Base { +>DerivedWithClassExpression : DerivedWithClassExpression +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^ +>Base : Base +> : ^^^^ + + prop = true; +>prop : boolean +> : ^^^^^^^ +>true : true +> : ^^^^ + + constructor() { + console.log(class { +>console.log(class { private method() { return this; } private property = 7; constructor() { this.property; this.method(); } }) : void +> : ^^^^ +>console.log : (...data: any[]) => void +> : ^^^^ ^^ ^^^^^ +>console : Console +> : ^^^^^^^ +>log : (...data: any[]) => void +> : ^^^^ ^^ ^^^^^ +>class { private method() { return this; } private property = 7; constructor() { this.property; this.method(); } } : typeof (Anonymous class) +> : ^^^^^^^^^^^^^^^^^^^^^^^^ + + private method() { +>method : () => this +> : ^^^^^^^^^^ + + return this; +>this : this +> : ^^^^ + } + private property = 7; +>property : number +> : ^^^^^^ +>7 : 7 +> : ^ + + constructor() { + this.property; +>this.property : number +> : ^^^^^^ +>this : this +> : ^^^^ +>property : number +> : ^^^^^^ + + this.method(); +>this.method() : this +> : ^^^^ +>this.method : () => this +> : ^^^^^^^^^^ +>this : this +> : ^^^^ +>method : () => this +> : ^^^^^^^^^^ + } + }); + super(); +>super() : void +> : ^^^^ +>super : typeof Base +> : ^^^^^^^^^^^ + } +} + +class DerivedWithClassExpressionExtendingMember extends Base { +>DerivedWithClassExpressionExtendingMember : DerivedWithClassExpressionExtendingMember +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>Base : Base +> : ^^^^ + + memberClass = class { }; +>memberClass : typeof (Anonymous class) +> : ^^^^^^^^^^^^^^^^^^^^^^^^ +>class { } : typeof (Anonymous class) +> : ^^^^^^^^^^^^^^^^^^^^^^^^ + + constructor() { + console.log(class extends this.memberClass { }); +>console.log(class extends this.memberClass { }) : void +> : ^^^^ +>console.log : (...data: any[]) => void +> : ^^^^ ^^ ^^^^^ +>console : Console +> : ^^^^^^^ +>log : (...data: any[]) => void +> : ^^^^ ^^ ^^^^^ +>class extends this.memberClass { } : typeof (Anonymous class) +> : ^^^^^^^^^^^^^^^^^^^^^^^^ +>this.memberClass : (Anonymous class) +> : ^^^^^^^^^^^^^^^^^ +>this : this +> : ^^^^ +>memberClass : typeof (Anonymous class) +> : ^^^^^^^^^^^^^^^^^^^^^^^^ + + super(); +>super() : void +> : ^^^^ +>super : typeof Base +> : ^^^^^^^^^^^ + } +} + +class DerivedWithDerivedClassExpression extends Base { +>DerivedWithDerivedClassExpression : DerivedWithDerivedClassExpression +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>Base : Base +> : ^^^^ + + prop = true; +>prop : boolean +> : ^^^^^^^ +>true : true +> : ^^^^ + + constructor() { + console.log(class extends Base { +>console.log(class extends Base { constructor() { super(); } public foo() { return this; } public bar = () => this; }) : void +> : ^^^^ +>console.log : (...data: any[]) => void +> : ^^^^ ^^ ^^^^^ +>console : Console +> : ^^^^^^^ +>log : (...data: any[]) => void +> : ^^^^ ^^ ^^^^^ +>class extends Base { constructor() { super(); } public foo() { return this; } public bar = () => this; } : typeof (Anonymous class) +> : ^^^^^^^^^^^^^^^^^^^^^^^^ +>Base : Base +> : ^^^^ + + constructor() { + super(); +>super() : void +> : ^^^^ +>super : typeof Base +> : ^^^^^^^^^^^ + } + public foo() { +>foo : () => this +> : ^^^^^^^^^^ + + return this; +>this : this +> : ^^^^ + } + public bar = () => this; +>bar : () => this +> : ^^^^^^^^^^ +>() => this : () => this +> : ^^^^^^^^^^ +>this : this +> : ^^^^ + + }); + super(); +>super() : void +> : ^^^^ +>super : typeof Base +> : ^^^^^^^^^^^ + } +} + +class DerivedWithNewDerivedClassExpression extends Base { +>DerivedWithNewDerivedClassExpression : DerivedWithNewDerivedClassExpression +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>Base : Base +> : ^^^^ + + prop = true; +>prop : boolean +> : ^^^^^^^ +>true : true +> : ^^^^ + + constructor() { + console.log(new class extends Base { +>console.log(new class extends Base { constructor() { super(); } }()) : void +> : ^^^^ +>console.log : (...data: any[]) => void +> : ^^^^ ^^ ^^^^^ +>console : Console +> : ^^^^^^^ +>log : (...data: any[]) => void +> : ^^^^ ^^ ^^^^^ +>new class extends Base { constructor() { super(); } }() : (Anonymous class) +> : ^^^^^^^^^^^^^^^^^ +>class extends Base { constructor() { super(); } } : typeof (Anonymous class) +> : ^^^^^^^^^^^^^^^^^^^^^^^^ +>Base : Base +> : ^^^^ + + constructor() { + super(); +>super() : void +> : ^^^^ +>super : typeof Base +> : ^^^^^^^^^^^ + } + }()); + super(); +>super() : void +> : ^^^^ +>super : typeof Base +> : ^^^^^^^^^^^ + } +} + +class DerivedWithObjectAccessors extends Base { +>DerivedWithObjectAccessors : DerivedWithObjectAccessors +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^ +>Base : Base +> : ^^^^ + + prop = true; +>prop : boolean +> : ^^^^^^^ +>true : true +> : ^^^^ + + constructor() { + const obj = { +>obj : { prop: boolean; } +> : ^^^^^^^^^^^^^^^^^^ +>{ get prop() { return true; }, set prop(param) { this._prop = param; } } : { prop: boolean; } +> : ^^^^^^^^^^^^^^^^^^ + + get prop() { +>prop : boolean +> : ^^^^^^^ + + return true; +>true : true +> : ^^^^ + + }, + set prop(param) { +>prop : boolean +> : ^^^^^^^ +>param : boolean +> : ^^^^^^^ + + this._prop = param; +>this._prop = param : boolean +> : ^^^^^^^ +>this._prop : any +> : ^^^ +>this : any +> : ^^^ +>_prop : any +> : ^^^ +>param : boolean +> : ^^^^^^^ + } + }; + super(); +>super() : void +> : ^^^^ +>super : typeof Base +> : ^^^^^^^^^^^ + } +} + +class DerivedWithObjectAccessorsUsingThisInKeys extends Base { +>DerivedWithObjectAccessorsUsingThisInKeys : DerivedWithObjectAccessorsUsingThisInKeys +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>Base : Base +> : ^^^^ + + propName = "prop"; +>propName : string +> : ^^^^^^ +>"prop" : "prop" +> : ^^^^^^ + + constructor() { + const obj = { +>obj : { [x: string]: any; _prop: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ _prop: "prop", get [this.propName]() { return true; }, set [this.propName](param) { this._prop = param; } } : { [x: string]: any; _prop: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + _prop: "prop", +>_prop : string +> : ^^^^^^ +>"prop" : "prop" +> : ^^^^^^ + + get [this.propName]() { +>[this.propName] : boolean +> : ^^^^^^^ +>this.propName : string +> : ^^^^^^ +>this : this +> : ^^^^ +>propName : string +> : ^^^^^^ + + return true; +>true : true +> : ^^^^ + + }, + set [this.propName](param) { +>[this.propName] : any +> : ^^^ +>this.propName : string +> : ^^^^^^ +>this : this +> : ^^^^ +>propName : string +> : ^^^^^^ +>param : any +> : ^^^ + + this._prop = param; +>this._prop = param : any +> : ^^^ +>this._prop : any +> : ^^^ +>this : any +> : ^^^ +>_prop : any +> : ^^^ +>param : any +> : ^^^ + } + }; + super(); +>super() : void +> : ^^^^ +>super : typeof Base +> : ^^^^^^^^^^^ + } +} + +class DerivedWithObjectAccessorsUsingThisInBodies extends Base { +>DerivedWithObjectAccessorsUsingThisInBodies : DerivedWithObjectAccessorsUsingThisInBodies +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>Base : Base +> : ^^^^ + + propName = "prop"; +>propName : string +> : ^^^^^^ +>"prop" : "prop" +> : ^^^^^^ + + constructor() { + const obj = { +>obj : { _prop: string; prop: any; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ _prop: "prop", get prop() { return this._prop; }, set prop(param) { this._prop = param; } } : { _prop: string; prop: any; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + _prop: "prop", +>_prop : string +> : ^^^^^^ +>"prop" : "prop" +> : ^^^^^^ + + get prop() { +>prop : any +> : ^^^ + + return this._prop; +>this._prop : any +> : ^^^ +>this : any +> : ^^^ +>_prop : any +> : ^^^ + + }, + set prop(param) { +>prop : any +> : ^^^ +>param : any +> : ^^^ + + this._prop = param; +>this._prop = param : any +> : ^^^ +>this._prop : any +> : ^^^ +>this : any +> : ^^^ +>_prop : any +> : ^^^ +>param : any +> : ^^^ + } + }; + super(); +>super() : void +> : ^^^^ +>super : typeof Base +> : ^^^^^^^^^^^ + } +} + +class DerivedWithObjectComputedPropertyBody extends Base { +>DerivedWithObjectComputedPropertyBody : DerivedWithObjectComputedPropertyBody +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>Base : Base +> : ^^^^ + + propName = "prop"; +>propName : string +> : ^^^^^^ +>"prop" : "prop" +> : ^^^^^^ + + constructor() { + const obj = { +>obj : { prop: string; } +> : ^^^^^^^^^^^^^^^^^ +>{ prop: this.propName, } : { prop: string; } +> : ^^^^^^^^^^^^^^^^^ + + prop: this.propName, +>prop : string +> : ^^^^^^ +>this.propName : string +> : ^^^^^^ +>this : this +> : ^^^^ +>propName : string +> : ^^^^^^ + + }; + super(); +>super() : void +> : ^^^^ +>super : typeof Base +> : ^^^^^^^^^^^ + } +} + +class DerivedWithObjectComputedPropertyName extends Base { +>DerivedWithObjectComputedPropertyName : DerivedWithObjectComputedPropertyName +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>Base : Base +> : ^^^^ + + propName = "prop"; +>propName : string +> : ^^^^^^ +>"prop" : "prop" +> : ^^^^^^ + + constructor() { + const obj = { +>obj : { [x: string]: boolean; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ [this.propName]: true, } : { [x: string]: boolean; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ + + [this.propName]: true, +>[this.propName] : boolean +> : ^^^^^^^ +>this.propName : string +> : ^^^^^^ +>this : this +> : ^^^^ +>propName : string +> : ^^^^^^ +>true : true +> : ^^^^ + + }; + super(); +>super() : void +> : ^^^^ +>super : typeof Base +> : ^^^^^^^^^^^ + } +} + +class DerivedWithObjectMethod extends Base { +>DerivedWithObjectMethod : DerivedWithObjectMethod +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>Base : Base +> : ^^^^ + + prop = true; +>prop : boolean +> : ^^^^^^^ +>true : true +> : ^^^^ + + constructor() { + const obj = { +>obj : { getProp(): any; } +> : ^^^^^^^^^^^^^^^^^^^ +>{ getProp() { return this; }, } : { getProp(): any; } +> : ^^^^^^^^^^^^^^^^^^^ + + getProp() { +>getProp : () => any +> : ^^^^^^^^^ + + return this; +>this : any +> : ^^^ + + }, + }; + super(); +>super() : void +> : ^^^^ +>super : typeof Base +> : ^^^^^^^^^^^ + } +} + +let a, b; +>a : any +> : ^^^ +>b : any +> : ^^^ + +const DerivedWithLoops = [ +>DerivedWithLoops : (typeof (Anonymous class))[] +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>[ class extends Base { prop = true; constructor() { for(super();;) {} } }, class extends Base { prop = true; constructor() { for(a; super();) {} } }, class extends Base { prop = true; constructor() { for(a; b; super()) {} } }, class extends Base { prop = true; constructor() { for(; ; super()) { break; } } }, class extends Base { prop = true; constructor() { for (const x of super()) {} } }, class extends Base { prop = true; constructor() { while (super()) {} } }, class extends Base { prop = true; constructor() { do {} while (super()); } }, class extends Base { prop = true; constructor() { if (super()) {} } }, class extends Base { prop = true; constructor() { switch (super()) {} } },] : (typeof (Anonymous class))[] +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + class extends Base { +>class extends Base { prop = true; constructor() { for(super();;) {} } } : typeof (Anonymous class) +> : ^^^^^^^^^^^^^^^^^^^^^^^^ +>Base : Base +> : ^^^^ + + prop = true; +>prop : boolean +> : ^^^^^^^ +>true : true +> : ^^^^ + + constructor() { + for(super();;) {} +>super() : void +> : ^^^^ +>super : typeof Base +> : ^^^^^^^^^^^ + } + }, + class extends Base { +>class extends Base { prop = true; constructor() { for(a; super();) {} } } : typeof (Anonymous class) +> : ^^^^^^^^^^^^^^^^^^^^^^^^ +>Base : Base +> : ^^^^ + + prop = true; +>prop : boolean +> : ^^^^^^^ +>true : true +> : ^^^^ + + constructor() { + for(a; super();) {} +>a : any +> : ^^^ +>super() : void +> : ^^^^ +>super : typeof Base +> : ^^^^^^^^^^^ + } + }, + class extends Base { +>class extends Base { prop = true; constructor() { for(a; b; super()) {} } } : typeof (Anonymous class) +> : ^^^^^^^^^^^^^^^^^^^^^^^^ +>Base : Base +> : ^^^^ + + prop = true; +>prop : boolean +> : ^^^^^^^ +>true : true +> : ^^^^ + + constructor() { + for(a; b; super()) {} +>a : any +> : ^^^ +>b : any +> : ^^^ +>super() : void +> : ^^^^ +>super : typeof Base +> : ^^^^^^^^^^^ + } + }, + class extends Base { +>class extends Base { prop = true; constructor() { for(; ; super()) { break; } } } : typeof (Anonymous class) +> : ^^^^^^^^^^^^^^^^^^^^^^^^ +>Base : Base +> : ^^^^ + + prop = true; +>prop : boolean +> : ^^^^^^^ +>true : true +> : ^^^^ + + constructor() { + for(; ; super()) { break; } +>super() : void +> : ^^^^ +>super : typeof Base +> : ^^^^^^^^^^^ + } + }, + class extends Base { +>class extends Base { prop = true; constructor() { for (const x of super()) {} } } : typeof (Anonymous class) +> : ^^^^^^^^^^^^^^^^^^^^^^^^ +>Base : Base +> : ^^^^ + + prop = true; +>prop : boolean +> : ^^^^^^^ +>true : true +> : ^^^^ + + constructor() { + for (const x of super()) {} +>x : any +> : ^^^ +>super() : void +> : ^^^^ +>super : typeof Base +> : ^^^^^^^^^^^ + } + }, + class extends Base { +>class extends Base { prop = true; constructor() { while (super()) {} } } : typeof (Anonymous class) +> : ^^^^^^^^^^^^^^^^^^^^^^^^ +>Base : Base +> : ^^^^ + + prop = true; +>prop : boolean +> : ^^^^^^^ +>true : true +> : ^^^^ + + constructor() { + while (super()) {} +>super() : void +> : ^^^^ +>super : typeof Base +> : ^^^^^^^^^^^ + } + }, + class extends Base { +>class extends Base { prop = true; constructor() { do {} while (super()); } } : typeof (Anonymous class) +> : ^^^^^^^^^^^^^^^^^^^^^^^^ +>Base : Base +> : ^^^^ + + prop = true; +>prop : boolean +> : ^^^^^^^ +>true : true +> : ^^^^ + + constructor() { + do {} while (super()); +>super() : void +> : ^^^^ +>super : typeof Base +> : ^^^^^^^^^^^ + } + }, + class extends Base { +>class extends Base { prop = true; constructor() { if (super()) {} } } : typeof (Anonymous class) +> : ^^^^^^^^^^^^^^^^^^^^^^^^ +>Base : Base +> : ^^^^ + + prop = true; +>prop : boolean +> : ^^^^^^^ +>true : true +> : ^^^^ + + constructor() { + if (super()) {} +>super() : void +> : ^^^^ +>super : typeof Base +> : ^^^^^^^^^^^ + } + }, + class extends Base { +>class extends Base { prop = true; constructor() { switch (super()) {} } } : typeof (Anonymous class) +> : ^^^^^^^^^^^^^^^^^^^^^^^^ +>Base : Base +> : ^^^^ + + prop = true; +>prop : boolean +> : ^^^^^^^ +>true : true +> : ^^^^ + + constructor() { + switch (super()) {} +>super() : void +> : ^^^^ +>super : typeof Base +> : ^^^^^^^^^^^ + } + }, +] + diff --git a/tests/baselines/reference/derivedClassSuperStatementPosition.errors.txt b/tests/baselines/reference/derivedClassSuperStatementPosition(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/derivedClassSuperStatementPosition.errors.txt rename to tests/baselines/reference/derivedClassSuperStatementPosition(target=es2015).errors.txt diff --git a/tests/baselines/reference/derivedClassSuperStatementPosition(target=es2015).js b/tests/baselines/reference/derivedClassSuperStatementPosition(target=es2015).js new file mode 100644 index 0000000000000..ca053ffffc929 --- /dev/null +++ b/tests/baselines/reference/derivedClassSuperStatementPosition(target=es2015).js @@ -0,0 +1,185 @@ +//// [tests/cases/conformance/classes/constructorDeclarations/superCalls/derivedClassSuperStatementPosition.ts] //// + +//// [derivedClassSuperStatementPosition.ts] +class DerivedBasic extends Object { + prop = 1; + constructor() { + super(); + } +} + +class DerivedAfterParameterDefault extends Object { + x1: boolean; + x2: boolean; + constructor(x = false) { + this.x1 = x; + super(x); + this.x2 = x; + } +} + +class DerivedAfterRestParameter extends Object { + x1: boolean[]; + x2: boolean[]; + constructor(...x: boolean[]) { + this.x1 = x; + super(x); + this.x2 = x; + } +} + +class DerivedComments extends Object { + x: any; + constructor() { + // c1 + console.log(); // c2 + // c3 + super(); // c4 + // c5 + this.x = null; // c6 + // c7 + } +} + +class DerivedCommentsInvalidThis extends Object { + x: any; + constructor() { + // c0 + this; + // c1 + console.log(); // c2 + // c3 + super(); // c4 + // c5 + this.x = null; // c6 + // c7 + } +} + +class DerivedInConditional extends Object { + prop = 1; + constructor() { + Math.random() + ? super(1) + : super(0); + } +} + +class DerivedInIf extends Object { + prop = 1; + constructor() { + if (Math.random()) { + super(1); + } + else { + super(0); + } + } +} + +class DerivedInBlockWithProperties extends Object { + prop = 1; + constructor(private paramProp = 2) { + { + super(); + } + } +} + +class DerivedInConditionalWithProperties extends Object { + prop = 1; + constructor(private paramProp = 2) { + if (Math.random()) { + super(1); + } else { + super(0); + } + } +} + + +//// [derivedClassSuperStatementPosition.js] +class DerivedBasic extends Object { + constructor() { + super(); + this.prop = 1; + } +} +class DerivedAfterParameterDefault extends Object { + constructor(x = false) { + this.x1 = x; + super(x); + this.x2 = x; + } +} +class DerivedAfterRestParameter extends Object { + constructor(...x) { + this.x1 = x; + super(x); + this.x2 = x; + } +} +class DerivedComments extends Object { + constructor() { + // c1 + console.log(); // c2 + // c3 + super(); // c4 + // c5 + this.x = null; // c6 + // c7 + } +} +class DerivedCommentsInvalidThis extends Object { + constructor() { + // c0 + this; + // c1 + console.log(); // c2 + // c3 + super(); // c4 + // c5 + this.x = null; // c6 + // c7 + } +} +class DerivedInConditional extends Object { + constructor() { + this.prop = 1; + Math.random() + ? super(1) + : super(0); + } +} +class DerivedInIf extends Object { + constructor() { + this.prop = 1; + if (Math.random()) { + super(1); + } + else { + super(0); + } + } +} +class DerivedInBlockWithProperties extends Object { + constructor(paramProp = 2) { + this.paramProp = paramProp; + this.prop = 1; + { + super(); + } + } +} +class DerivedInConditionalWithProperties extends Object { + constructor(paramProp = 2) { + this.paramProp = paramProp; + this.prop = 1; + if (Math.random()) { + super(1); + } + else { + super(0); + } + } +} diff --git a/tests/baselines/reference/derivedClassSuperStatementPosition.symbols b/tests/baselines/reference/derivedClassSuperStatementPosition(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/derivedClassSuperStatementPosition.symbols rename to tests/baselines/reference/derivedClassSuperStatementPosition(target=es2015).symbols diff --git a/tests/baselines/reference/derivedClassSuperStatementPosition.types b/tests/baselines/reference/derivedClassSuperStatementPosition(target=es2015).types similarity index 100% rename from tests/baselines/reference/derivedClassSuperStatementPosition.types rename to tests/baselines/reference/derivedClassSuperStatementPosition(target=es2015).types diff --git a/tests/baselines/reference/derivedClassSuperStatementPosition(target=es5).errors.txt b/tests/baselines/reference/derivedClassSuperStatementPosition(target=es5).errors.txt new file mode 100644 index 0000000000000..bf989a9ccf881 --- /dev/null +++ b/tests/baselines/reference/derivedClassSuperStatementPosition(target=es5).errors.txt @@ -0,0 +1,120 @@ +derivedClassSuperStatementPosition.ts(12,9): error TS17009: 'super' must be called before accessing 'this' in the constructor of a derived class. +derivedClassSuperStatementPosition.ts(22,9): error TS17009: 'super' must be called before accessing 'this' in the constructor of a derived class. +derivedClassSuperStatementPosition.ts(45,9): error TS17009: 'super' must be called before accessing 'this' in the constructor of a derived class. +derivedClassSuperStatementPosition.ts(60,15): error TS2401: A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers. +derivedClassSuperStatementPosition.ts(69,13): error TS2401: A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers. +derivedClassSuperStatementPosition.ts(81,13): error TS2401: A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers. +derivedClassSuperStatementPosition.ts(90,13): error TS2401: A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers. + + +==== derivedClassSuperStatementPosition.ts (7 errors) ==== + class DerivedBasic extends Object { + prop = 1; + constructor() { + super(); + } + } + + class DerivedAfterParameterDefault extends Object { + x1: boolean; + x2: boolean; + constructor(x = false) { + this.x1 = x; + ~~~~ +!!! error TS17009: 'super' must be called before accessing 'this' in the constructor of a derived class. + super(x); + this.x2 = x; + } + } + + class DerivedAfterRestParameter extends Object { + x1: boolean[]; + x2: boolean[]; + constructor(...x: boolean[]) { + this.x1 = x; + ~~~~ +!!! error TS17009: 'super' must be called before accessing 'this' in the constructor of a derived class. + super(x); + this.x2 = x; + } + } + + class DerivedComments extends Object { + x: any; + constructor() { + // c1 + console.log(); // c2 + // c3 + super(); // c4 + // c5 + this.x = null; // c6 + // c7 + } + } + + class DerivedCommentsInvalidThis extends Object { + x: any; + constructor() { + // c0 + this; + ~~~~ +!!! error TS17009: 'super' must be called before accessing 'this' in the constructor of a derived class. + // c1 + console.log(); // c2 + // c3 + super(); // c4 + // c5 + this.x = null; // c6 + // c7 + } + } + + class DerivedInConditional extends Object { + prop = 1; + constructor() { + Math.random() + ? super(1) + ~~~~~~~~ +!!! error TS2401: A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers. + : super(0); + } + } + + class DerivedInIf extends Object { + prop = 1; + constructor() { + if (Math.random()) { + super(1); + ~~~~~~~~ +!!! error TS2401: A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers. + } + else { + super(0); + } + } + } + + class DerivedInBlockWithProperties extends Object { + prop = 1; + constructor(private paramProp = 2) { + { + super(); + ~~~~~~~ +!!! error TS2401: A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers. + } + } + } + + class DerivedInConditionalWithProperties extends Object { + prop = 1; + constructor(private paramProp = 2) { + if (Math.random()) { + super(1); + ~~~~~~~~ +!!! error TS2401: A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers. + } else { + super(0); + } + } + } + \ No newline at end of file diff --git a/tests/baselines/reference/derivedClassSuperStatementPosition.js b/tests/baselines/reference/derivedClassSuperStatementPosition(target=es5).js similarity index 100% rename from tests/baselines/reference/derivedClassSuperStatementPosition.js rename to tests/baselines/reference/derivedClassSuperStatementPosition(target=es5).js diff --git a/tests/baselines/reference/derivedClassSuperStatementPosition(target=es5).symbols b/tests/baselines/reference/derivedClassSuperStatementPosition(target=es5).symbols new file mode 100644 index 0000000000000..a1e0384b47da5 --- /dev/null +++ b/tests/baselines/reference/derivedClassSuperStatementPosition(target=es5).symbols @@ -0,0 +1,223 @@ +//// [tests/cases/conformance/classes/constructorDeclarations/superCalls/derivedClassSuperStatementPosition.ts] //// + +=== derivedClassSuperStatementPosition.ts === +class DerivedBasic extends Object { +>DerivedBasic : Symbol(DerivedBasic, Decl(derivedClassSuperStatementPosition.ts, 0, 0)) +>Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) + + prop = 1; +>prop : Symbol(DerivedBasic.prop, Decl(derivedClassSuperStatementPosition.ts, 0, 35)) + + constructor() { + super(); +>super : Symbol(ObjectConstructor, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) + } +} + +class DerivedAfterParameterDefault extends Object { +>DerivedAfterParameterDefault : Symbol(DerivedAfterParameterDefault, Decl(derivedClassSuperStatementPosition.ts, 5, 1)) +>Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) + + x1: boolean; +>x1 : Symbol(DerivedAfterParameterDefault.x1, Decl(derivedClassSuperStatementPosition.ts, 7, 51)) + + x2: boolean; +>x2 : Symbol(DerivedAfterParameterDefault.x2, Decl(derivedClassSuperStatementPosition.ts, 8, 16)) + + constructor(x = false) { +>x : Symbol(x, Decl(derivedClassSuperStatementPosition.ts, 10, 16)) + + this.x1 = x; +>this.x1 : Symbol(DerivedAfterParameterDefault.x1, Decl(derivedClassSuperStatementPosition.ts, 7, 51)) +>this : Symbol(DerivedAfterParameterDefault, Decl(derivedClassSuperStatementPosition.ts, 5, 1)) +>x1 : Symbol(DerivedAfterParameterDefault.x1, Decl(derivedClassSuperStatementPosition.ts, 7, 51)) +>x : Symbol(x, Decl(derivedClassSuperStatementPosition.ts, 10, 16)) + + super(x); +>super : Symbol(ObjectConstructor, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) +>x : Symbol(x, Decl(derivedClassSuperStatementPosition.ts, 10, 16)) + + this.x2 = x; +>this.x2 : Symbol(DerivedAfterParameterDefault.x2, Decl(derivedClassSuperStatementPosition.ts, 8, 16)) +>this : Symbol(DerivedAfterParameterDefault, Decl(derivedClassSuperStatementPosition.ts, 5, 1)) +>x2 : Symbol(DerivedAfterParameterDefault.x2, Decl(derivedClassSuperStatementPosition.ts, 8, 16)) +>x : Symbol(x, Decl(derivedClassSuperStatementPosition.ts, 10, 16)) + } +} + +class DerivedAfterRestParameter extends Object { +>DerivedAfterRestParameter : Symbol(DerivedAfterRestParameter, Decl(derivedClassSuperStatementPosition.ts, 15, 1)) +>Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) + + x1: boolean[]; +>x1 : Symbol(DerivedAfterRestParameter.x1, Decl(derivedClassSuperStatementPosition.ts, 17, 48)) + + x2: boolean[]; +>x2 : Symbol(DerivedAfterRestParameter.x2, Decl(derivedClassSuperStatementPosition.ts, 18, 18)) + + constructor(...x: boolean[]) { +>x : Symbol(x, Decl(derivedClassSuperStatementPosition.ts, 20, 16)) + + this.x1 = x; +>this.x1 : Symbol(DerivedAfterRestParameter.x1, Decl(derivedClassSuperStatementPosition.ts, 17, 48)) +>this : Symbol(DerivedAfterRestParameter, Decl(derivedClassSuperStatementPosition.ts, 15, 1)) +>x1 : Symbol(DerivedAfterRestParameter.x1, Decl(derivedClassSuperStatementPosition.ts, 17, 48)) +>x : Symbol(x, Decl(derivedClassSuperStatementPosition.ts, 20, 16)) + + super(x); +>super : Symbol(ObjectConstructor, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) +>x : Symbol(x, Decl(derivedClassSuperStatementPosition.ts, 20, 16)) + + this.x2 = x; +>this.x2 : Symbol(DerivedAfterRestParameter.x2, Decl(derivedClassSuperStatementPosition.ts, 18, 18)) +>this : Symbol(DerivedAfterRestParameter, Decl(derivedClassSuperStatementPosition.ts, 15, 1)) +>x2 : Symbol(DerivedAfterRestParameter.x2, Decl(derivedClassSuperStatementPosition.ts, 18, 18)) +>x : Symbol(x, Decl(derivedClassSuperStatementPosition.ts, 20, 16)) + } +} + +class DerivedComments extends Object { +>DerivedComments : Symbol(DerivedComments, Decl(derivedClassSuperStatementPosition.ts, 25, 1)) +>Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) + + x: any; +>x : Symbol(DerivedComments.x, Decl(derivedClassSuperStatementPosition.ts, 27, 38)) + + constructor() { + // c1 + console.log(); // c2 +>console.log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) +>console : Symbol(console, Decl(lib.dom.d.ts, --, --)) +>log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) + + // c3 + super(); // c4 +>super : Symbol(ObjectConstructor, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) + + // c5 + this.x = null; // c6 +>this.x : Symbol(DerivedComments.x, Decl(derivedClassSuperStatementPosition.ts, 27, 38)) +>this : Symbol(DerivedComments, Decl(derivedClassSuperStatementPosition.ts, 25, 1)) +>x : Symbol(DerivedComments.x, Decl(derivedClassSuperStatementPosition.ts, 27, 38)) + + // c7 + } +} + +class DerivedCommentsInvalidThis extends Object { +>DerivedCommentsInvalidThis : Symbol(DerivedCommentsInvalidThis, Decl(derivedClassSuperStatementPosition.ts, 38, 1)) +>Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) + + x: any; +>x : Symbol(DerivedCommentsInvalidThis.x, Decl(derivedClassSuperStatementPosition.ts, 40, 49)) + + constructor() { + // c0 + this; +>this : Symbol(DerivedCommentsInvalidThis, Decl(derivedClassSuperStatementPosition.ts, 38, 1)) + + // c1 + console.log(); // c2 +>console.log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) +>console : Symbol(console, Decl(lib.dom.d.ts, --, --)) +>log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) + + // c3 + super(); // c4 +>super : Symbol(ObjectConstructor, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) + + // c5 + this.x = null; // c6 +>this.x : Symbol(DerivedCommentsInvalidThis.x, Decl(derivedClassSuperStatementPosition.ts, 40, 49)) +>this : Symbol(DerivedCommentsInvalidThis, Decl(derivedClassSuperStatementPosition.ts, 38, 1)) +>x : Symbol(DerivedCommentsInvalidThis.x, Decl(derivedClassSuperStatementPosition.ts, 40, 49)) + + // c7 + } +} + +class DerivedInConditional extends Object { +>DerivedInConditional : Symbol(DerivedInConditional, Decl(derivedClassSuperStatementPosition.ts, 53, 1)) +>Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) + + prop = 1; +>prop : Symbol(DerivedInConditional.prop, Decl(derivedClassSuperStatementPosition.ts, 55, 43)) + + constructor() { + Math.random() +>Math.random : Symbol(Math.random, Decl(lib.es5.d.ts, --, --)) +>Math : Symbol(Math, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>random : Symbol(Math.random, Decl(lib.es5.d.ts, --, --)) + + ? super(1) +>super : Symbol(ObjectConstructor, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) + + : super(0); +>super : Symbol(ObjectConstructor, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) + } +} + +class DerivedInIf extends Object { +>DerivedInIf : Symbol(DerivedInIf, Decl(derivedClassSuperStatementPosition.ts, 62, 1)) +>Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) + + prop = 1; +>prop : Symbol(DerivedInIf.prop, Decl(derivedClassSuperStatementPosition.ts, 64, 34)) + + constructor() { + if (Math.random()) { +>Math.random : Symbol(Math.random, Decl(lib.es5.d.ts, --, --)) +>Math : Symbol(Math, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>random : Symbol(Math.random, Decl(lib.es5.d.ts, --, --)) + + super(1); +>super : Symbol(ObjectConstructor, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) + } + else { + super(0); +>super : Symbol(ObjectConstructor, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) + } + } +} + +class DerivedInBlockWithProperties extends Object { +>DerivedInBlockWithProperties : Symbol(DerivedInBlockWithProperties, Decl(derivedClassSuperStatementPosition.ts, 74, 1)) +>Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) + + prop = 1; +>prop : Symbol(DerivedInBlockWithProperties.prop, Decl(derivedClassSuperStatementPosition.ts, 76, 51)) + + constructor(private paramProp = 2) { +>paramProp : Symbol(DerivedInBlockWithProperties.paramProp, Decl(derivedClassSuperStatementPosition.ts, 78, 16)) + { + super(); +>super : Symbol(ObjectConstructor, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) + } + } +} + +class DerivedInConditionalWithProperties extends Object { +>DerivedInConditionalWithProperties : Symbol(DerivedInConditionalWithProperties, Decl(derivedClassSuperStatementPosition.ts, 83, 1)) +>Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) + + prop = 1; +>prop : Symbol(DerivedInConditionalWithProperties.prop, Decl(derivedClassSuperStatementPosition.ts, 85, 57)) + + constructor(private paramProp = 2) { +>paramProp : Symbol(DerivedInConditionalWithProperties.paramProp, Decl(derivedClassSuperStatementPosition.ts, 87, 16)) + + if (Math.random()) { +>Math.random : Symbol(Math.random, Decl(lib.es5.d.ts, --, --)) +>Math : Symbol(Math, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>random : Symbol(Math.random, Decl(lib.es5.d.ts, --, --)) + + super(1); +>super : Symbol(ObjectConstructor, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) + + } else { + super(0); +>super : Symbol(ObjectConstructor, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) + } + } +} + diff --git a/tests/baselines/reference/derivedClassSuperStatementPosition(target=es5).types b/tests/baselines/reference/derivedClassSuperStatementPosition(target=es5).types new file mode 100644 index 0000000000000..926e4433bd9c1 --- /dev/null +++ b/tests/baselines/reference/derivedClassSuperStatementPosition(target=es5).types @@ -0,0 +1,384 @@ +//// [tests/cases/conformance/classes/constructorDeclarations/superCalls/derivedClassSuperStatementPosition.ts] //// + +=== derivedClassSuperStatementPosition.ts === +class DerivedBasic extends Object { +>DerivedBasic : DerivedBasic +> : ^^^^^^^^^^^^ +>Object : Object +> : ^^^^^^ + + prop = 1; +>prop : number +> : ^^^^^^ +>1 : 1 +> : ^ + + constructor() { + super(); +>super() : void +> : ^^^^ +>super : ObjectConstructor +> : ^^^^^^^^^^^^^^^^^ + } +} + +class DerivedAfterParameterDefault extends Object { +>DerivedAfterParameterDefault : DerivedAfterParameterDefault +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>Object : Object +> : ^^^^^^ + + x1: boolean; +>x1 : boolean +> : ^^^^^^^ + + x2: boolean; +>x2 : boolean +> : ^^^^^^^ + + constructor(x = false) { +>x : boolean +> : ^^^^^^^ +>false : false +> : ^^^^^ + + this.x1 = x; +>this.x1 = x : boolean +> : ^^^^^^^ +>this.x1 : boolean +> : ^^^^^^^ +>this : this +> : ^^^^ +>x1 : boolean +> : ^^^^^^^ +>x : boolean +> : ^^^^^^^ + + super(x); +>super(x) : void +> : ^^^^ +>super : ObjectConstructor +> : ^^^^^^^^^^^^^^^^^ +>x : boolean +> : ^^^^^^^ + + this.x2 = x; +>this.x2 = x : boolean +> : ^^^^^^^ +>this.x2 : boolean +> : ^^^^^^^ +>this : this +> : ^^^^ +>x2 : boolean +> : ^^^^^^^ +>x : boolean +> : ^^^^^^^ + } +} + +class DerivedAfterRestParameter extends Object { +>DerivedAfterRestParameter : DerivedAfterRestParameter +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>Object : Object +> : ^^^^^^ + + x1: boolean[]; +>x1 : boolean[] +> : ^^^^^^^^^ + + x2: boolean[]; +>x2 : boolean[] +> : ^^^^^^^^^ + + constructor(...x: boolean[]) { +>x : boolean[] +> : ^^^^^^^^^ + + this.x1 = x; +>this.x1 = x : boolean[] +> : ^^^^^^^^^ +>this.x1 : boolean[] +> : ^^^^^^^^^ +>this : this +> : ^^^^ +>x1 : boolean[] +> : ^^^^^^^^^ +>x : boolean[] +> : ^^^^^^^^^ + + super(x); +>super(x) : void +> : ^^^^ +>super : ObjectConstructor +> : ^^^^^^^^^^^^^^^^^ +>x : boolean[] +> : ^^^^^^^^^ + + this.x2 = x; +>this.x2 = x : boolean[] +> : ^^^^^^^^^ +>this.x2 : boolean[] +> : ^^^^^^^^^ +>this : this +> : ^^^^ +>x2 : boolean[] +> : ^^^^^^^^^ +>x : boolean[] +> : ^^^^^^^^^ + } +} + +class DerivedComments extends Object { +>DerivedComments : DerivedComments +> : ^^^^^^^^^^^^^^^ +>Object : Object +> : ^^^^^^ + + x: any; +>x : any +> : ^^^ + + constructor() { + // c1 + console.log(); // c2 +>console.log() : void +> : ^^^^ +>console.log : (...data: any[]) => void +> : ^^^^ ^^ ^^^^^ +>console : Console +> : ^^^^^^^ +>log : (...data: any[]) => void +> : ^^^^ ^^ ^^^^^ + + // c3 + super(); // c4 +>super() : void +> : ^^^^ +>super : ObjectConstructor +> : ^^^^^^^^^^^^^^^^^ + + // c5 + this.x = null; // c6 +>this.x = null : null +> : ^^^^ +>this.x : any +> : ^^^ +>this : this +> : ^^^^ +>x : any +> : ^^^ + + // c7 + } +} + +class DerivedCommentsInvalidThis extends Object { +>DerivedCommentsInvalidThis : DerivedCommentsInvalidThis +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^ +>Object : Object +> : ^^^^^^ + + x: any; +>x : any +> : ^^^ + + constructor() { + // c0 + this; +>this : this +> : ^^^^ + + // c1 + console.log(); // c2 +>console.log() : void +> : ^^^^ +>console.log : (...data: any[]) => void +> : ^^^^ ^^ ^^^^^ +>console : Console +> : ^^^^^^^ +>log : (...data: any[]) => void +> : ^^^^ ^^ ^^^^^ + + // c3 + super(); // c4 +>super() : void +> : ^^^^ +>super : ObjectConstructor +> : ^^^^^^^^^^^^^^^^^ + + // c5 + this.x = null; // c6 +>this.x = null : null +> : ^^^^ +>this.x : any +> : ^^^ +>this : this +> : ^^^^ +>x : any +> : ^^^ + + // c7 + } +} + +class DerivedInConditional extends Object { +>DerivedInConditional : DerivedInConditional +> : ^^^^^^^^^^^^^^^^^^^^ +>Object : Object +> : ^^^^^^ + + prop = 1; +>prop : number +> : ^^^^^^ +>1 : 1 +> : ^ + + constructor() { + Math.random() +>Math.random() ? super(1) : super(0) : void +> : ^^^^ +>Math.random() : number +> : ^^^^^^ +>Math.random : () => number +> : ^^^^^^ +>Math : Math +> : ^^^^ +>random : () => number +> : ^^^^^^ + + ? super(1) +>super(1) : void +> : ^^^^ +>super : ObjectConstructor +> : ^^^^^^^^^^^^^^^^^ +>1 : 1 +> : ^ + + : super(0); +>super(0) : void +> : ^^^^ +>super : ObjectConstructor +> : ^^^^^^^^^^^^^^^^^ +>0 : 0 +> : ^ + } +} + +class DerivedInIf extends Object { +>DerivedInIf : DerivedInIf +> : ^^^^^^^^^^^ +>Object : Object +> : ^^^^^^ + + prop = 1; +>prop : number +> : ^^^^^^ +>1 : 1 +> : ^ + + constructor() { + if (Math.random()) { +>Math.random() : number +> : ^^^^^^ +>Math.random : () => number +> : ^^^^^^ +>Math : Math +> : ^^^^ +>random : () => number +> : ^^^^^^ + + super(1); +>super(1) : void +> : ^^^^ +>super : ObjectConstructor +> : ^^^^^^^^^^^^^^^^^ +>1 : 1 +> : ^ + } + else { + super(0); +>super(0) : void +> : ^^^^ +>super : ObjectConstructor +> : ^^^^^^^^^^^^^^^^^ +>0 : 0 +> : ^ + } + } +} + +class DerivedInBlockWithProperties extends Object { +>DerivedInBlockWithProperties : DerivedInBlockWithProperties +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>Object : Object +> : ^^^^^^ + + prop = 1; +>prop : number +> : ^^^^^^ +>1 : 1 +> : ^ + + constructor(private paramProp = 2) { +>paramProp : number +> : ^^^^^^ +>2 : 2 +> : ^ + { + super(); +>super() : void +> : ^^^^ +>super : ObjectConstructor +> : ^^^^^^^^^^^^^^^^^ + } + } +} + +class DerivedInConditionalWithProperties extends Object { +>DerivedInConditionalWithProperties : DerivedInConditionalWithProperties +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>Object : Object +> : ^^^^^^ + + prop = 1; +>prop : number +> : ^^^^^^ +>1 : 1 +> : ^ + + constructor(private paramProp = 2) { +>paramProp : number +> : ^^^^^^ +>2 : 2 +> : ^ + + if (Math.random()) { +>Math.random() : number +> : ^^^^^^ +>Math.random : () => number +> : ^^^^^^ +>Math : Math +> : ^^^^ +>random : () => number +> : ^^^^^^ + + super(1); +>super(1) : void +> : ^^^^ +>super : ObjectConstructor +> : ^^^^^^^^^^^^^^^^^ +>1 : 1 +> : ^ + + } else { + super(0); +>super(0) : void +> : ^^^^ +>super : ObjectConstructor +> : ^^^^^^^^^^^^^^^^^ +>0 : 0 +> : ^ + } + } +} + diff --git a/tests/baselines/reference/derivedClassWithPrivateInstanceShadowingProtectedInstance.errors.txt b/tests/baselines/reference/derivedClassWithPrivateInstanceShadowingProtectedInstance(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/derivedClassWithPrivateInstanceShadowingProtectedInstance.errors.txt rename to tests/baselines/reference/derivedClassWithPrivateInstanceShadowingProtectedInstance(target=es2015).errors.txt diff --git a/tests/baselines/reference/derivedClassWithPrivateInstanceShadowingProtectedInstance(target=es2015).js b/tests/baselines/reference/derivedClassWithPrivateInstanceShadowingProtectedInstance(target=es2015).js new file mode 100644 index 0000000000000..b403f2a1f06b9 --- /dev/null +++ b/tests/baselines/reference/derivedClassWithPrivateInstanceShadowingProtectedInstance(target=es2015).js @@ -0,0 +1,41 @@ +//// [tests/cases/conformance/classes/members/inheritanceAndOverriding/derivedClassWithPrivateInstanceShadowingProtectedInstance.ts] //// + +//// [derivedClassWithPrivateInstanceShadowingProtectedInstance.ts] +class Base { + protected x: string; + protected fn(): string { + return ''; + } + + protected get a() { return 1; } + protected set a(v) { } +} + +// error, not a subtype +class Derived extends Base { + private x: string; + private fn(): string { + return ''; + } + + private get a() { return 1; } + private set a(v) { } +} + + +//// [derivedClassWithPrivateInstanceShadowingProtectedInstance.js] +class Base { + fn() { + return ''; + } + get a() { return 1; } + set a(v) { } +} +// error, not a subtype +class Derived extends Base { + fn() { + return ''; + } + get a() { return 1; } + set a(v) { } +} diff --git a/tests/baselines/reference/derivedClassWithPrivateInstanceShadowingProtectedInstance.symbols b/tests/baselines/reference/derivedClassWithPrivateInstanceShadowingProtectedInstance(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/derivedClassWithPrivateInstanceShadowingProtectedInstance.symbols rename to tests/baselines/reference/derivedClassWithPrivateInstanceShadowingProtectedInstance(target=es2015).symbols diff --git a/tests/baselines/reference/derivedClassWithPrivateInstanceShadowingProtectedInstance.types b/tests/baselines/reference/derivedClassWithPrivateInstanceShadowingProtectedInstance(target=es2015).types similarity index 100% rename from tests/baselines/reference/derivedClassWithPrivateInstanceShadowingProtectedInstance.types rename to tests/baselines/reference/derivedClassWithPrivateInstanceShadowingProtectedInstance(target=es2015).types diff --git a/tests/baselines/reference/derivedClassWithPrivateInstanceShadowingProtectedInstance(target=es5).errors.txt b/tests/baselines/reference/derivedClassWithPrivateInstanceShadowingProtectedInstance(target=es5).errors.txt new file mode 100644 index 0000000000000..3e3e363541c6b --- /dev/null +++ b/tests/baselines/reference/derivedClassWithPrivateInstanceShadowingProtectedInstance(target=es5).errors.txt @@ -0,0 +1,29 @@ +derivedClassWithPrivateInstanceShadowingProtectedInstance.ts(12,7): error TS2415: Class 'Derived' incorrectly extends base class 'Base'. + Property 'x' is private in type 'Derived' but not in type 'Base'. + + +==== derivedClassWithPrivateInstanceShadowingProtectedInstance.ts (1 errors) ==== + class Base { + protected x: string; + protected fn(): string { + return ''; + } + + protected get a() { return 1; } + protected set a(v) { } + } + + // error, not a subtype + class Derived extends Base { + ~~~~~~~ +!!! error TS2415: Class 'Derived' incorrectly extends base class 'Base'. +!!! error TS2415: Property 'x' is private in type 'Derived' but not in type 'Base'. + private x: string; + private fn(): string { + return ''; + } + + private get a() { return 1; } + private set a(v) { } + } + \ No newline at end of file diff --git a/tests/baselines/reference/derivedClassWithPrivateInstanceShadowingProtectedInstance.js b/tests/baselines/reference/derivedClassWithPrivateInstanceShadowingProtectedInstance(target=es5).js similarity index 100% rename from tests/baselines/reference/derivedClassWithPrivateInstanceShadowingProtectedInstance.js rename to tests/baselines/reference/derivedClassWithPrivateInstanceShadowingProtectedInstance(target=es5).js diff --git a/tests/baselines/reference/derivedClassWithPrivateInstanceShadowingProtectedInstance(target=es5).symbols b/tests/baselines/reference/derivedClassWithPrivateInstanceShadowingProtectedInstance(target=es5).symbols new file mode 100644 index 0000000000000..79d38990deea8 --- /dev/null +++ b/tests/baselines/reference/derivedClassWithPrivateInstanceShadowingProtectedInstance(target=es5).symbols @@ -0,0 +1,45 @@ +//// [tests/cases/conformance/classes/members/inheritanceAndOverriding/derivedClassWithPrivateInstanceShadowingProtectedInstance.ts] //// + +=== derivedClassWithPrivateInstanceShadowingProtectedInstance.ts === +class Base { +>Base : Symbol(Base, Decl(derivedClassWithPrivateInstanceShadowingProtectedInstance.ts, 0, 0)) + + protected x: string; +>x : Symbol(Base.x, Decl(derivedClassWithPrivateInstanceShadowingProtectedInstance.ts, 0, 12)) + + protected fn(): string { +>fn : Symbol(Base.fn, Decl(derivedClassWithPrivateInstanceShadowingProtectedInstance.ts, 1, 24)) + + return ''; + } + + protected get a() { return 1; } +>a : Symbol(Base.a, Decl(derivedClassWithPrivateInstanceShadowingProtectedInstance.ts, 4, 5), Decl(derivedClassWithPrivateInstanceShadowingProtectedInstance.ts, 6, 35)) + + protected set a(v) { } +>a : Symbol(Base.a, Decl(derivedClassWithPrivateInstanceShadowingProtectedInstance.ts, 4, 5), Decl(derivedClassWithPrivateInstanceShadowingProtectedInstance.ts, 6, 35)) +>v : Symbol(v, Decl(derivedClassWithPrivateInstanceShadowingProtectedInstance.ts, 7, 20)) +} + +// error, not a subtype +class Derived extends Base { +>Derived : Symbol(Derived, Decl(derivedClassWithPrivateInstanceShadowingProtectedInstance.ts, 8, 1)) +>Base : Symbol(Base, Decl(derivedClassWithPrivateInstanceShadowingProtectedInstance.ts, 0, 0)) + + private x: string; +>x : Symbol(Derived.x, Decl(derivedClassWithPrivateInstanceShadowingProtectedInstance.ts, 11, 28)) + + private fn(): string { +>fn : Symbol(Derived.fn, Decl(derivedClassWithPrivateInstanceShadowingProtectedInstance.ts, 12, 22)) + + return ''; + } + + private get a() { return 1; } +>a : Symbol(Derived.a, Decl(derivedClassWithPrivateInstanceShadowingProtectedInstance.ts, 15, 5), Decl(derivedClassWithPrivateInstanceShadowingProtectedInstance.ts, 17, 33)) + + private set a(v) { } +>a : Symbol(Derived.a, Decl(derivedClassWithPrivateInstanceShadowingProtectedInstance.ts, 15, 5), Decl(derivedClassWithPrivateInstanceShadowingProtectedInstance.ts, 17, 33)) +>v : Symbol(v, Decl(derivedClassWithPrivateInstanceShadowingProtectedInstance.ts, 18, 18)) +} + diff --git a/tests/baselines/reference/derivedClassWithPrivateInstanceShadowingProtectedInstance(target=es5).types b/tests/baselines/reference/derivedClassWithPrivateInstanceShadowingProtectedInstance(target=es5).types new file mode 100644 index 0000000000000..53d53c52e002b --- /dev/null +++ b/tests/baselines/reference/derivedClassWithPrivateInstanceShadowingProtectedInstance(target=es5).types @@ -0,0 +1,66 @@ +//// [tests/cases/conformance/classes/members/inheritanceAndOverriding/derivedClassWithPrivateInstanceShadowingProtectedInstance.ts] //// + +=== derivedClassWithPrivateInstanceShadowingProtectedInstance.ts === +class Base { +>Base : Base +> : ^^^^ + + protected x: string; +>x : string +> : ^^^^^^ + + protected fn(): string { +>fn : () => string +> : ^^^^^^ + + return ''; +>'' : "" +> : ^^ + } + + protected get a() { return 1; } +>a : number +> : ^^^^^^ +>1 : 1 +> : ^ + + protected set a(v) { } +>a : number +> : ^^^^^^ +>v : number +> : ^^^^^^ +} + +// error, not a subtype +class Derived extends Base { +>Derived : Derived +> : ^^^^^^^ +>Base : Base +> : ^^^^ + + private x: string; +>x : string +> : ^^^^^^ + + private fn(): string { +>fn : () => string +> : ^^^^^^ + + return ''; +>'' : "" +> : ^^ + } + + private get a() { return 1; } +>a : number +> : ^^^^^^ +>1 : 1 +> : ^ + + private set a(v) { } +>a : number +> : ^^^^^^ +>v : number +> : ^^^^^^ +} + diff --git a/tests/baselines/reference/derivedClassWithPrivateStaticShadowingProtectedStatic.errors.txt b/tests/baselines/reference/derivedClassWithPrivateStaticShadowingProtectedStatic(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/derivedClassWithPrivateStaticShadowingProtectedStatic.errors.txt rename to tests/baselines/reference/derivedClassWithPrivateStaticShadowingProtectedStatic(target=es2015).errors.txt diff --git a/tests/baselines/reference/derivedClassWithPrivateStaticShadowingProtectedStatic(target=es2015).js b/tests/baselines/reference/derivedClassWithPrivateStaticShadowingProtectedStatic(target=es2015).js new file mode 100644 index 0000000000000..f6b979b116697 --- /dev/null +++ b/tests/baselines/reference/derivedClassWithPrivateStaticShadowingProtectedStatic(target=es2015).js @@ -0,0 +1,40 @@ +//// [tests/cases/conformance/classes/members/inheritanceAndOverriding/derivedClassWithPrivateStaticShadowingProtectedStatic.ts] //// + +//// [derivedClassWithPrivateStaticShadowingProtectedStatic.ts] +class Base { + protected static x: string; + protected static fn(): string { + return ''; + } + + protected static get a() { return 1; } + protected static set a(v) { } +} + +// should be error +class Derived extends Base { + private static x: string; + private static fn(): string { + return ''; + } + + private static get a() { return 1; } + private static set a(v) { } +} + +//// [derivedClassWithPrivateStaticShadowingProtectedStatic.js] +class Base { + static fn() { + return ''; + } + static get a() { return 1; } + static set a(v) { } +} +// should be error +class Derived extends Base { + static fn() { + return ''; + } + static get a() { return 1; } + static set a(v) { } +} diff --git a/tests/baselines/reference/derivedClassWithPrivateStaticShadowingProtectedStatic.symbols b/tests/baselines/reference/derivedClassWithPrivateStaticShadowingProtectedStatic(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/derivedClassWithPrivateStaticShadowingProtectedStatic.symbols rename to tests/baselines/reference/derivedClassWithPrivateStaticShadowingProtectedStatic(target=es2015).symbols diff --git a/tests/baselines/reference/derivedClassWithPrivateStaticShadowingProtectedStatic.types b/tests/baselines/reference/derivedClassWithPrivateStaticShadowingProtectedStatic(target=es2015).types similarity index 100% rename from tests/baselines/reference/derivedClassWithPrivateStaticShadowingProtectedStatic.types rename to tests/baselines/reference/derivedClassWithPrivateStaticShadowingProtectedStatic(target=es2015).types diff --git a/tests/baselines/reference/derivedClassWithPrivateStaticShadowingProtectedStatic(target=es5).errors.txt b/tests/baselines/reference/derivedClassWithPrivateStaticShadowingProtectedStatic(target=es5).errors.txt new file mode 100644 index 0000000000000..aefed7ccd01b9 --- /dev/null +++ b/tests/baselines/reference/derivedClassWithPrivateStaticShadowingProtectedStatic(target=es5).errors.txt @@ -0,0 +1,28 @@ +derivedClassWithPrivateStaticShadowingProtectedStatic.ts(12,7): error TS2417: Class static side 'typeof Derived' incorrectly extends base class static side 'typeof Base'. + Property 'x' is private in type 'typeof Derived' but not in type 'typeof Base'. + + +==== derivedClassWithPrivateStaticShadowingProtectedStatic.ts (1 errors) ==== + class Base { + protected static x: string; + protected static fn(): string { + return ''; + } + + protected static get a() { return 1; } + protected static set a(v) { } + } + + // should be error + class Derived extends Base { + ~~~~~~~ +!!! error TS2417: Class static side 'typeof Derived' incorrectly extends base class static side 'typeof Base'. +!!! error TS2417: Property 'x' is private in type 'typeof Derived' but not in type 'typeof Base'. + private static x: string; + private static fn(): string { + return ''; + } + + private static get a() { return 1; } + private static set a(v) { } + } \ No newline at end of file diff --git a/tests/baselines/reference/derivedClassWithPrivateStaticShadowingProtectedStatic.js b/tests/baselines/reference/derivedClassWithPrivateStaticShadowingProtectedStatic(target=es5).js similarity index 100% rename from tests/baselines/reference/derivedClassWithPrivateStaticShadowingProtectedStatic.js rename to tests/baselines/reference/derivedClassWithPrivateStaticShadowingProtectedStatic(target=es5).js diff --git a/tests/baselines/reference/derivedClassWithPrivateStaticShadowingProtectedStatic(target=es5).symbols b/tests/baselines/reference/derivedClassWithPrivateStaticShadowingProtectedStatic(target=es5).symbols new file mode 100644 index 0000000000000..eefec4bdb6c22 --- /dev/null +++ b/tests/baselines/reference/derivedClassWithPrivateStaticShadowingProtectedStatic(target=es5).symbols @@ -0,0 +1,44 @@ +//// [tests/cases/conformance/classes/members/inheritanceAndOverriding/derivedClassWithPrivateStaticShadowingProtectedStatic.ts] //// + +=== derivedClassWithPrivateStaticShadowingProtectedStatic.ts === +class Base { +>Base : Symbol(Base, Decl(derivedClassWithPrivateStaticShadowingProtectedStatic.ts, 0, 0)) + + protected static x: string; +>x : Symbol(Base.x, Decl(derivedClassWithPrivateStaticShadowingProtectedStatic.ts, 0, 12)) + + protected static fn(): string { +>fn : Symbol(Base.fn, Decl(derivedClassWithPrivateStaticShadowingProtectedStatic.ts, 1, 31)) + + return ''; + } + + protected static get a() { return 1; } +>a : Symbol(Base.a, Decl(derivedClassWithPrivateStaticShadowingProtectedStatic.ts, 4, 5), Decl(derivedClassWithPrivateStaticShadowingProtectedStatic.ts, 6, 42)) + + protected static set a(v) { } +>a : Symbol(Base.a, Decl(derivedClassWithPrivateStaticShadowingProtectedStatic.ts, 4, 5), Decl(derivedClassWithPrivateStaticShadowingProtectedStatic.ts, 6, 42)) +>v : Symbol(v, Decl(derivedClassWithPrivateStaticShadowingProtectedStatic.ts, 7, 27)) +} + +// should be error +class Derived extends Base { +>Derived : Symbol(Derived, Decl(derivedClassWithPrivateStaticShadowingProtectedStatic.ts, 8, 1)) +>Base : Symbol(Base, Decl(derivedClassWithPrivateStaticShadowingProtectedStatic.ts, 0, 0)) + + private static x: string; +>x : Symbol(Derived.x, Decl(derivedClassWithPrivateStaticShadowingProtectedStatic.ts, 11, 28)) + + private static fn(): string { +>fn : Symbol(Derived.fn, Decl(derivedClassWithPrivateStaticShadowingProtectedStatic.ts, 12, 29)) + + return ''; + } + + private static get a() { return 1; } +>a : Symbol(Derived.a, Decl(derivedClassWithPrivateStaticShadowingProtectedStatic.ts, 15, 5), Decl(derivedClassWithPrivateStaticShadowingProtectedStatic.ts, 17, 40)) + + private static set a(v) { } +>a : Symbol(Derived.a, Decl(derivedClassWithPrivateStaticShadowingProtectedStatic.ts, 15, 5), Decl(derivedClassWithPrivateStaticShadowingProtectedStatic.ts, 17, 40)) +>v : Symbol(v, Decl(derivedClassWithPrivateStaticShadowingProtectedStatic.ts, 18, 25)) +} diff --git a/tests/baselines/reference/derivedClassWithPrivateStaticShadowingProtectedStatic(target=es5).types b/tests/baselines/reference/derivedClassWithPrivateStaticShadowingProtectedStatic(target=es5).types new file mode 100644 index 0000000000000..bc7c83ca8fe95 --- /dev/null +++ b/tests/baselines/reference/derivedClassWithPrivateStaticShadowingProtectedStatic(target=es5).types @@ -0,0 +1,65 @@ +//// [tests/cases/conformance/classes/members/inheritanceAndOverriding/derivedClassWithPrivateStaticShadowingProtectedStatic.ts] //// + +=== derivedClassWithPrivateStaticShadowingProtectedStatic.ts === +class Base { +>Base : Base +> : ^^^^ + + protected static x: string; +>x : string +> : ^^^^^^ + + protected static fn(): string { +>fn : () => string +> : ^^^^^^ + + return ''; +>'' : "" +> : ^^ + } + + protected static get a() { return 1; } +>a : number +> : ^^^^^^ +>1 : 1 +> : ^ + + protected static set a(v) { } +>a : number +> : ^^^^^^ +>v : number +> : ^^^^^^ +} + +// should be error +class Derived extends Base { +>Derived : Derived +> : ^^^^^^^ +>Base : Base +> : ^^^^ + + private static x: string; +>x : string +> : ^^^^^^ + + private static fn(): string { +>fn : () => string +> : ^^^^^^ + + return ''; +>'' : "" +> : ^^ + } + + private static get a() { return 1; } +>a : number +> : ^^^^^^ +>1 : 1 +> : ^ + + private static set a(v) { } +>a : number +> : ^^^^^^ +>v : number +> : ^^^^^^ +} diff --git a/tests/baselines/reference/destructuringArrayBindingPatternAndAssignment4(target=es2015).errors.txt b/tests/baselines/reference/destructuringArrayBindingPatternAndAssignment4(target=es2015).errors.txt new file mode 100644 index 0000000000000..2501eb11dda9c --- /dev/null +++ b/tests/baselines/reference/destructuringArrayBindingPatternAndAssignment4(target=es2015).errors.txt @@ -0,0 +1,12 @@ +destructuringArrayBindingPatternAndAssignment4.ts(5,7): error TS2488: Type 'number[] | null' must have a '[Symbol.iterator]()' method that returns an iterator. + + +==== destructuringArrayBindingPatternAndAssignment4.ts (1 errors) ==== + // #35497 + + + declare const data: number[] | null; + const [value] = data; // Error + ~~~~~~~ +!!! error TS2488: Type 'number[] | null' must have a '[Symbol.iterator]()' method that returns an iterator. + \ No newline at end of file diff --git a/tests/baselines/reference/destructuringArrayBindingPatternAndAssignment4(target=es2015).js b/tests/baselines/reference/destructuringArrayBindingPatternAndAssignment4(target=es2015).js new file mode 100644 index 0000000000000..a8d7f94dd89c2 --- /dev/null +++ b/tests/baselines/reference/destructuringArrayBindingPatternAndAssignment4(target=es2015).js @@ -0,0 +1,14 @@ +//// [tests/cases/conformance/es6/destructuring/destructuringArrayBindingPatternAndAssignment4.ts] //// + +//// [destructuringArrayBindingPatternAndAssignment4.ts] +// #35497 + + +declare const data: number[] | null; +const [value] = data; // Error + + +//// [destructuringArrayBindingPatternAndAssignment4.js] +"use strict"; +// #35497 +const [value] = data; // Error diff --git a/tests/baselines/reference/destructuringArrayBindingPatternAndAssignment4.symbols b/tests/baselines/reference/destructuringArrayBindingPatternAndAssignment4(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/destructuringArrayBindingPatternAndAssignment4.symbols rename to tests/baselines/reference/destructuringArrayBindingPatternAndAssignment4(target=es2015).symbols diff --git a/tests/baselines/reference/destructuringArrayBindingPatternAndAssignment4.types b/tests/baselines/reference/destructuringArrayBindingPatternAndAssignment4(target=es2015).types similarity index 100% rename from tests/baselines/reference/destructuringArrayBindingPatternAndAssignment4.types rename to tests/baselines/reference/destructuringArrayBindingPatternAndAssignment4(target=es2015).types diff --git a/tests/baselines/reference/destructuringArrayBindingPatternAndAssignment4.errors.txt b/tests/baselines/reference/destructuringArrayBindingPatternAndAssignment4(target=es5).errors.txt similarity index 100% rename from tests/baselines/reference/destructuringArrayBindingPatternAndAssignment4.errors.txt rename to tests/baselines/reference/destructuringArrayBindingPatternAndAssignment4(target=es5).errors.txt diff --git a/tests/baselines/reference/destructuringArrayBindingPatternAndAssignment4.js b/tests/baselines/reference/destructuringArrayBindingPatternAndAssignment4(target=es5).js similarity index 100% rename from tests/baselines/reference/destructuringArrayBindingPatternAndAssignment4.js rename to tests/baselines/reference/destructuringArrayBindingPatternAndAssignment4(target=es5).js diff --git a/tests/baselines/reference/destructuringArrayBindingPatternAndAssignment4(target=es5).symbols b/tests/baselines/reference/destructuringArrayBindingPatternAndAssignment4(target=es5).symbols new file mode 100644 index 0000000000000..0cf3f1fb1dcc6 --- /dev/null +++ b/tests/baselines/reference/destructuringArrayBindingPatternAndAssignment4(target=es5).symbols @@ -0,0 +1,13 @@ +//// [tests/cases/conformance/es6/destructuring/destructuringArrayBindingPatternAndAssignment4.ts] //// + +=== destructuringArrayBindingPatternAndAssignment4.ts === +// #35497 + + +declare const data: number[] | null; +>data : Symbol(data, Decl(destructuringArrayBindingPatternAndAssignment4.ts, 3, 13)) + +const [value] = data; // Error +>value : Symbol(value, Decl(destructuringArrayBindingPatternAndAssignment4.ts, 4, 7)) +>data : Symbol(data, Decl(destructuringArrayBindingPatternAndAssignment4.ts, 3, 13)) + diff --git a/tests/baselines/reference/destructuringArrayBindingPatternAndAssignment4(target=es5).types b/tests/baselines/reference/destructuringArrayBindingPatternAndAssignment4(target=es5).types new file mode 100644 index 0000000000000..7a3c436c77314 --- /dev/null +++ b/tests/baselines/reference/destructuringArrayBindingPatternAndAssignment4(target=es5).types @@ -0,0 +1,16 @@ +//// [tests/cases/conformance/es6/destructuring/destructuringArrayBindingPatternAndAssignment4.ts] //// + +=== destructuringArrayBindingPatternAndAssignment4.ts === +// #35497 + + +declare const data: number[] | null; +>data : number[] | null +> : ^^^^^^^^^^^^^^^ + +const [value] = data; // Error +>value : any +> : ^^^ +>data : number[] | null +> : ^^^^^^^^^^^^^^^ + diff --git a/tests/baselines/reference/destructuringParameterDeclaration3ES5iterable.errors.txt b/tests/baselines/reference/destructuringParameterDeclaration3ES5iterable(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/destructuringParameterDeclaration3ES5iterable.errors.txt rename to tests/baselines/reference/destructuringParameterDeclaration3ES5iterable(target=es2015).errors.txt diff --git a/tests/baselines/reference/destructuringParameterDeclaration3ES5iterable(target=es2015).js b/tests/baselines/reference/destructuringParameterDeclaration3ES5iterable(target=es2015).js new file mode 100644 index 0000000000000..e80685c3249d9 --- /dev/null +++ b/tests/baselines/reference/destructuringParameterDeclaration3ES5iterable(target=es2015).js @@ -0,0 +1,81 @@ +//// [tests/cases/conformance/es6/destructuring/destructuringParameterDeclaration3ES5iterable.ts] //// + +//// [destructuringParameterDeclaration3ES5iterable.ts] +// If the parameter is a rest parameter, the parameter type is any[] +// A type annotation for a rest parameter must denote an array type. + +// RestParameter: +// ... Identifier TypeAnnotation(opt) + +type arrayString = Array +type someArray = Array | number[]; +type stringOrNumArray = Array; + +function a1(...x: (number|string)[]) { } +function a2(...a) { } +function a3(...a: Array) { } +function a4(...a: arrayString) { } +function a5(...a: stringOrNumArray) { } +function a9([a, b, [[c]]]) { } +function a10([a, b, [[c]], ...x]) { } +function a11([a, b, c, ...x]: number[]) { } + + +var array = [1, 2, 3]; +var array2 = [true, false, "hello"]; +a2([...array]); +a1(...array); + +a9([1, 2, [["string"]], false, true]); // Parameter type is [any, any, [[any]]] + +a10([1, 2, [["string"]], false, true]); // Parameter type is any[] +a10([1, 2, 3, false, true]); // Parameter type is any[] +a10([1, 2]); // Parameter type is any[] +a11([1, 2]); // Parameter type is number[] + +// Rest parameter with generic +function foo(...a: T[]) { } +foo("hello", 1, 2); +foo("hello", "world"); + +enum E { a, b } +const enum E1 { a, b } +function foo1(...a: T[]) { } +foo1(1, 2, 3, E.a); +foo1(1, 2, 3, E1.a, E.b); + + + + +//// [destructuringParameterDeclaration3ES5iterable.js] +// If the parameter is a rest parameter, the parameter type is any[] +// A type annotation for a rest parameter must denote an array type. +function a1(...x) { } +function a2(...a) { } +function a3(...a) { } +function a4(...a) { } +function a5(...a) { } +function a9([a, b, [[c]]]) { } +function a10([a, b, [[c]], ...x]) { } +function a11([a, b, c, ...x]) { } +var array = [1, 2, 3]; +var array2 = [true, false, "hello"]; +a2([...array]); +a1(...array); +a9([1, 2, [["string"]], false, true]); // Parameter type is [any, any, [[any]]] +a10([1, 2, [["string"]], false, true]); // Parameter type is any[] +a10([1, 2, 3, false, true]); // Parameter type is any[] +a10([1, 2]); // Parameter type is any[] +a11([1, 2]); // Parameter type is number[] +// Rest parameter with generic +function foo(...a) { } +foo("hello", 1, 2); +foo("hello", "world"); +var E; +(function (E) { + E[E["a"] = 0] = "a"; + E[E["b"] = 1] = "b"; +})(E || (E = {})); +function foo1(...a) { } +foo1(1, 2, 3, E.a); +foo1(1, 2, 3, 0 /* E1.a */, E.b); diff --git a/tests/baselines/reference/destructuringParameterDeclaration3ES5iterable.symbols b/tests/baselines/reference/destructuringParameterDeclaration3ES5iterable(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/destructuringParameterDeclaration3ES5iterable.symbols rename to tests/baselines/reference/destructuringParameterDeclaration3ES5iterable(target=es2015).symbols diff --git a/tests/baselines/reference/destructuringParameterDeclaration3ES5iterable.types b/tests/baselines/reference/destructuringParameterDeclaration3ES5iterable(target=es2015).types similarity index 100% rename from tests/baselines/reference/destructuringParameterDeclaration3ES5iterable.types rename to tests/baselines/reference/destructuringParameterDeclaration3ES5iterable(target=es2015).types diff --git a/tests/baselines/reference/destructuringParameterDeclaration3ES5iterable(target=es5).errors.txt b/tests/baselines/reference/destructuringParameterDeclaration3ES5iterable(target=es5).errors.txt new file mode 100644 index 0000000000000..3d2a00a310a3a --- /dev/null +++ b/tests/baselines/reference/destructuringParameterDeclaration3ES5iterable(target=es5).errors.txt @@ -0,0 +1,61 @@ +destructuringParameterDeclaration3ES5iterable.ts(26,4): error TS2345: Argument of type '[number, number, [[string]], boolean, boolean]' is not assignable to parameter of type '[any, any, [[any]]]'. + Source has 5 element(s) but target allows only 3. +destructuringParameterDeclaration3ES5iterable.ts(29,12): error TS2322: Type 'number' is not assignable to type '[[any]]'. +destructuringParameterDeclaration3ES5iterable.ts(30,5): error TS2345: Argument of type '[number, number]' is not assignable to parameter of type '[any, any, [[any]], ...any[]]'. + Source has 2 element(s) but target requires 3. + + +==== destructuringParameterDeclaration3ES5iterable.ts (3 errors) ==== + // If the parameter is a rest parameter, the parameter type is any[] + // A type annotation for a rest parameter must denote an array type. + + // RestParameter: + // ... Identifier TypeAnnotation(opt) + + type arrayString = Array + type someArray = Array | number[]; + type stringOrNumArray = Array; + + function a1(...x: (number|string)[]) { } + function a2(...a) { } + function a3(...a: Array) { } + function a4(...a: arrayString) { } + function a5(...a: stringOrNumArray) { } + function a9([a, b, [[c]]]) { } + function a10([a, b, [[c]], ...x]) { } + function a11([a, b, c, ...x]: number[]) { } + + + var array = [1, 2, 3]; + var array2 = [true, false, "hello"]; + a2([...array]); + a1(...array); + + a9([1, 2, [["string"]], false, true]); // Parameter type is [any, any, [[any]]] + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2345: Argument of type '[number, number, [[string]], boolean, boolean]' is not assignable to parameter of type '[any, any, [[any]]]'. +!!! error TS2345: Source has 5 element(s) but target allows only 3. + + a10([1, 2, [["string"]], false, true]); // Parameter type is any[] + a10([1, 2, 3, false, true]); // Parameter type is any[] + ~ +!!! error TS2322: Type 'number' is not assignable to type '[[any]]'. + a10([1, 2]); // Parameter type is any[] + ~~~~~~ +!!! error TS2345: Argument of type '[number, number]' is not assignable to parameter of type '[any, any, [[any]], ...any[]]'. +!!! error TS2345: Source has 2 element(s) but target requires 3. + a11([1, 2]); // Parameter type is number[] + + // Rest parameter with generic + function foo(...a: T[]) { } + foo("hello", 1, 2); + foo("hello", "world"); + + enum E { a, b } + const enum E1 { a, b } + function foo1(...a: T[]) { } + foo1(1, 2, 3, E.a); + foo1(1, 2, 3, E1.a, E.b); + + + \ No newline at end of file diff --git a/tests/baselines/reference/destructuringParameterDeclaration3ES5iterable.js b/tests/baselines/reference/destructuringParameterDeclaration3ES5iterable(target=es5).js similarity index 100% rename from tests/baselines/reference/destructuringParameterDeclaration3ES5iterable.js rename to tests/baselines/reference/destructuringParameterDeclaration3ES5iterable(target=es5).js diff --git a/tests/baselines/reference/destructuringParameterDeclaration3ES5iterable(target=es5).symbols b/tests/baselines/reference/destructuringParameterDeclaration3ES5iterable(target=es5).symbols new file mode 100644 index 0000000000000..4cec32eff4f0a --- /dev/null +++ b/tests/baselines/reference/destructuringParameterDeclaration3ES5iterable(target=es5).symbols @@ -0,0 +1,146 @@ +//// [tests/cases/conformance/es6/destructuring/destructuringParameterDeclaration3ES5iterable.ts] //// + +=== destructuringParameterDeclaration3ES5iterable.ts === +// If the parameter is a rest parameter, the parameter type is any[] +// A type annotation for a rest parameter must denote an array type. + +// RestParameter: +// ... Identifier TypeAnnotation(opt) + +type arrayString = Array +>arrayString : Symbol(arrayString, Decl(destructuringParameterDeclaration3ES5iterable.ts, 0, 0)) +>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>String : Symbol(String, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --) ... and 1 more) + +type someArray = Array | number[]; +>someArray : Symbol(someArray, Decl(destructuringParameterDeclaration3ES5iterable.ts, 6, 32)) +>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>String : Symbol(String, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --) ... and 1 more) + +type stringOrNumArray = Array; +>stringOrNumArray : Symbol(stringOrNumArray, Decl(destructuringParameterDeclaration3ES5iterable.ts, 7, 42)) +>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>String : Symbol(String, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --) ... and 1 more) +>Number : Symbol(Number, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) + +function a1(...x: (number|string)[]) { } +>a1 : Symbol(a1, Decl(destructuringParameterDeclaration3ES5iterable.ts, 8, 45)) +>x : Symbol(x, Decl(destructuringParameterDeclaration3ES5iterable.ts, 10, 12)) + +function a2(...a) { } +>a2 : Symbol(a2, Decl(destructuringParameterDeclaration3ES5iterable.ts, 10, 40)) +>a : Symbol(a, Decl(destructuringParameterDeclaration3ES5iterable.ts, 11, 12)) + +function a3(...a: Array) { } +>a3 : Symbol(a3, Decl(destructuringParameterDeclaration3ES5iterable.ts, 11, 21)) +>a : Symbol(a, Decl(destructuringParameterDeclaration3ES5iterable.ts, 12, 12)) +>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>String : Symbol(String, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --) ... and 1 more) + +function a4(...a: arrayString) { } +>a4 : Symbol(a4, Decl(destructuringParameterDeclaration3ES5iterable.ts, 12, 36)) +>a : Symbol(a, Decl(destructuringParameterDeclaration3ES5iterable.ts, 13, 12)) +>arrayString : Symbol(arrayString, Decl(destructuringParameterDeclaration3ES5iterable.ts, 0, 0)) + +function a5(...a: stringOrNumArray) { } +>a5 : Symbol(a5, Decl(destructuringParameterDeclaration3ES5iterable.ts, 13, 34)) +>a : Symbol(a, Decl(destructuringParameterDeclaration3ES5iterable.ts, 14, 12)) +>stringOrNumArray : Symbol(stringOrNumArray, Decl(destructuringParameterDeclaration3ES5iterable.ts, 7, 42)) + +function a9([a, b, [[c]]]) { } +>a9 : Symbol(a9, Decl(destructuringParameterDeclaration3ES5iterable.ts, 14, 39)) +>a : Symbol(a, Decl(destructuringParameterDeclaration3ES5iterable.ts, 15, 13)) +>b : Symbol(b, Decl(destructuringParameterDeclaration3ES5iterable.ts, 15, 15)) +>c : Symbol(c, Decl(destructuringParameterDeclaration3ES5iterable.ts, 15, 21)) + +function a10([a, b, [[c]], ...x]) { } +>a10 : Symbol(a10, Decl(destructuringParameterDeclaration3ES5iterable.ts, 15, 30)) +>a : Symbol(a, Decl(destructuringParameterDeclaration3ES5iterable.ts, 16, 14)) +>b : Symbol(b, Decl(destructuringParameterDeclaration3ES5iterable.ts, 16, 16)) +>c : Symbol(c, Decl(destructuringParameterDeclaration3ES5iterable.ts, 16, 22)) +>x : Symbol(x, Decl(destructuringParameterDeclaration3ES5iterable.ts, 16, 26)) + +function a11([a, b, c, ...x]: number[]) { } +>a11 : Symbol(a11, Decl(destructuringParameterDeclaration3ES5iterable.ts, 16, 37)) +>a : Symbol(a, Decl(destructuringParameterDeclaration3ES5iterable.ts, 17, 14)) +>b : Symbol(b, Decl(destructuringParameterDeclaration3ES5iterable.ts, 17, 16)) +>c : Symbol(c, Decl(destructuringParameterDeclaration3ES5iterable.ts, 17, 19)) +>x : Symbol(x, Decl(destructuringParameterDeclaration3ES5iterable.ts, 17, 22)) + + +var array = [1, 2, 3]; +>array : Symbol(array, Decl(destructuringParameterDeclaration3ES5iterable.ts, 20, 3)) + +var array2 = [true, false, "hello"]; +>array2 : Symbol(array2, Decl(destructuringParameterDeclaration3ES5iterable.ts, 21, 3)) + +a2([...array]); +>a2 : Symbol(a2, Decl(destructuringParameterDeclaration3ES5iterable.ts, 10, 40)) +>array : Symbol(array, Decl(destructuringParameterDeclaration3ES5iterable.ts, 20, 3)) + +a1(...array); +>a1 : Symbol(a1, Decl(destructuringParameterDeclaration3ES5iterable.ts, 8, 45)) +>array : Symbol(array, Decl(destructuringParameterDeclaration3ES5iterable.ts, 20, 3)) + +a9([1, 2, [["string"]], false, true]); // Parameter type is [any, any, [[any]]] +>a9 : Symbol(a9, Decl(destructuringParameterDeclaration3ES5iterable.ts, 14, 39)) + +a10([1, 2, [["string"]], false, true]); // Parameter type is any[] +>a10 : Symbol(a10, Decl(destructuringParameterDeclaration3ES5iterable.ts, 15, 30)) + +a10([1, 2, 3, false, true]); // Parameter type is any[] +>a10 : Symbol(a10, Decl(destructuringParameterDeclaration3ES5iterable.ts, 15, 30)) + +a10([1, 2]); // Parameter type is any[] +>a10 : Symbol(a10, Decl(destructuringParameterDeclaration3ES5iterable.ts, 15, 30)) + +a11([1, 2]); // Parameter type is number[] +>a11 : Symbol(a11, Decl(destructuringParameterDeclaration3ES5iterable.ts, 16, 37)) + +// Rest parameter with generic +function foo(...a: T[]) { } +>foo : Symbol(foo, Decl(destructuringParameterDeclaration3ES5iterable.ts, 30, 12)) +>T : Symbol(T, Decl(destructuringParameterDeclaration3ES5iterable.ts, 33, 13)) +>a : Symbol(a, Decl(destructuringParameterDeclaration3ES5iterable.ts, 33, 16)) +>T : Symbol(T, Decl(destructuringParameterDeclaration3ES5iterable.ts, 33, 13)) + +foo("hello", 1, 2); +>foo : Symbol(foo, Decl(destructuringParameterDeclaration3ES5iterable.ts, 30, 12)) + +foo("hello", "world"); +>foo : Symbol(foo, Decl(destructuringParameterDeclaration3ES5iterable.ts, 30, 12)) + +enum E { a, b } +>E : Symbol(E, Decl(destructuringParameterDeclaration3ES5iterable.ts, 35, 22)) +>a : Symbol(E.a, Decl(destructuringParameterDeclaration3ES5iterable.ts, 37, 8)) +>b : Symbol(E.b, Decl(destructuringParameterDeclaration3ES5iterable.ts, 37, 11)) + +const enum E1 { a, b } +>E1 : Symbol(E1, Decl(destructuringParameterDeclaration3ES5iterable.ts, 37, 15)) +>a : Symbol(E1.a, Decl(destructuringParameterDeclaration3ES5iterable.ts, 38, 15)) +>b : Symbol(E1.b, Decl(destructuringParameterDeclaration3ES5iterable.ts, 38, 18)) + +function foo1(...a: T[]) { } +>foo1 : Symbol(foo1, Decl(destructuringParameterDeclaration3ES5iterable.ts, 38, 22)) +>T : Symbol(T, Decl(destructuringParameterDeclaration3ES5iterable.ts, 39, 14)) +>Number : Symbol(Number, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>a : Symbol(a, Decl(destructuringParameterDeclaration3ES5iterable.ts, 39, 32)) +>T : Symbol(T, Decl(destructuringParameterDeclaration3ES5iterable.ts, 39, 14)) + +foo1(1, 2, 3, E.a); +>foo1 : Symbol(foo1, Decl(destructuringParameterDeclaration3ES5iterable.ts, 38, 22)) +>E.a : Symbol(E.a, Decl(destructuringParameterDeclaration3ES5iterable.ts, 37, 8)) +>E : Symbol(E, Decl(destructuringParameterDeclaration3ES5iterable.ts, 35, 22)) +>a : Symbol(E.a, Decl(destructuringParameterDeclaration3ES5iterable.ts, 37, 8)) + +foo1(1, 2, 3, E1.a, E.b); +>foo1 : Symbol(foo1, Decl(destructuringParameterDeclaration3ES5iterable.ts, 38, 22)) +>E1.a : Symbol(E1.a, Decl(destructuringParameterDeclaration3ES5iterable.ts, 38, 15)) +>E1 : Symbol(E1, Decl(destructuringParameterDeclaration3ES5iterable.ts, 37, 15)) +>a : Symbol(E1.a, Decl(destructuringParameterDeclaration3ES5iterable.ts, 38, 15)) +>E.b : Symbol(E.b, Decl(destructuringParameterDeclaration3ES5iterable.ts, 37, 11)) +>E : Symbol(E, Decl(destructuringParameterDeclaration3ES5iterable.ts, 35, 22)) +>b : Symbol(E.b, Decl(destructuringParameterDeclaration3ES5iterable.ts, 37, 11)) + + + diff --git a/tests/baselines/reference/destructuringParameterDeclaration3ES5iterable(target=es5).types b/tests/baselines/reference/destructuringParameterDeclaration3ES5iterable(target=es5).types new file mode 100644 index 0000000000000..64c5edb5740f4 --- /dev/null +++ b/tests/baselines/reference/destructuringParameterDeclaration3ES5iterable(target=es5).types @@ -0,0 +1,313 @@ +//// [tests/cases/conformance/es6/destructuring/destructuringParameterDeclaration3ES5iterable.ts] //// + +=== destructuringParameterDeclaration3ES5iterable.ts === +// If the parameter is a rest parameter, the parameter type is any[] +// A type annotation for a rest parameter must denote an array type. + +// RestParameter: +// ... Identifier TypeAnnotation(opt) + +type arrayString = Array +>arrayString : arrayString +> : ^^^^^^^^^^^ + +type someArray = Array | number[]; +>someArray : someArray +> : ^^^^^^^^^ + +type stringOrNumArray = Array; +>stringOrNumArray : stringOrNumArray +> : ^^^^^^^^^^^^^^^^ + +function a1(...x: (number|string)[]) { } +>a1 : (...x: (number | string)[]) => void +> : ^^^^ ^^ ^^^^^^^^^ +>x : (string | number)[] +> : ^^^^^^^^^^^^^^^^^^^ + +function a2(...a) { } +>a2 : (...a: any[]) => void +> : ^^^^ ^^^^^^^^^^^^^^^^ +>a : any[] +> : ^^^^^ + +function a3(...a: Array) { } +>a3 : (...a: Array) => void +> : ^^^^ ^^ ^^^^^^^^^ +>a : String[] +> : ^^^^^^^^ + +function a4(...a: arrayString) { } +>a4 : (...a: arrayString) => void +> : ^^^^ ^^ ^^^^^^^^^ +>a : arrayString +> : ^^^^^^^^^^^ + +function a5(...a: stringOrNumArray) { } +>a5 : (...a: stringOrNumArray) => void +> : ^^^^ ^^ ^^^^^^^^^ +>a : stringOrNumArray +> : ^^^^^^^^^^^^^^^^ + +function a9([a, b, [[c]]]) { } +>a9 : ([a, b, [[c]]]: [any, any, [[any]]]) => void +> : ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>a : any +> : ^^^ +>b : any +> : ^^^ +>c : any +> : ^^^ + +function a10([a, b, [[c]], ...x]) { } +>a10 : ([a, b, [[c]], ...x]: [any, any, [[any]], ...any[]]) => void +> : ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>a : any +> : ^^^ +>b : any +> : ^^^ +>c : any +> : ^^^ +>x : any[] +> : ^^^^^ + +function a11([a, b, c, ...x]: number[]) { } +>a11 : ([a, b, c, ...x]: number[]) => void +> : ^ ^^ ^^^^^^^^^ +>a : number +> : ^^^^^^ +>b : number +> : ^^^^^^ +>c : number +> : ^^^^^^ +>x : number[] +> : ^^^^^^^^ + + +var array = [1, 2, 3]; +>array : number[] +> : ^^^^^^^^ +>[1, 2, 3] : number[] +> : ^^^^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ +>3 : 3 +> : ^ + +var array2 = [true, false, "hello"]; +>array2 : (string | boolean)[] +> : ^^^^^^^^^^^^^^^^^^^^ +>[true, false, "hello"] : (string | boolean)[] +> : ^^^^^^^^^^^^^^^^^^^^ +>true : true +> : ^^^^ +>false : false +> : ^^^^^ +>"hello" : "hello" +> : ^^^^^^^ + +a2([...array]); +>a2([...array]) : void +> : ^^^^ +>a2 : (...a: any[]) => void +> : ^^^^ ^^^^^^^^^^^^^^^^ +>[...array] : number[] +> : ^^^^^^^^ +>...array : number +> : ^^^^^^ +>array : number[] +> : ^^^^^^^^ + +a1(...array); +>a1(...array) : void +> : ^^^^ +>a1 : (...x: (number | string)[]) => void +> : ^^^^ ^^ ^^^^^^^^^ +>...array : number +> : ^^^^^^ +>array : number[] +> : ^^^^^^^^ + +a9([1, 2, [["string"]], false, true]); // Parameter type is [any, any, [[any]]] +>a9([1, 2, [["string"]], false, true]) : void +> : ^^^^ +>a9 : ([a, b, [[c]]]: [any, any, [[any]]]) => void +> : ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>[1, 2, [["string"]], false, true] : [number, number, [[string]], boolean, boolean] +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ +>[["string"]] : [[string]] +> : ^^^^^^^^^^ +>["string"] : [string] +> : ^^^^^^^^ +>"string" : "string" +> : ^^^^^^^^ +>false : false +> : ^^^^^ +>true : true +> : ^^^^ + +a10([1, 2, [["string"]], false, true]); // Parameter type is any[] +>a10([1, 2, [["string"]], false, true]) : void +> : ^^^^ +>a10 : ([a, b, [[c]], ...x]: [any, any, [[any]], ...any[]]) => void +> : ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>[1, 2, [["string"]], false, true] : [number, number, [[string]], boolean, boolean] +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ +>[["string"]] : [[string]] +> : ^^^^^^^^^^ +>["string"] : [string] +> : ^^^^^^^^ +>"string" : "string" +> : ^^^^^^^^ +>false : false +> : ^^^^^ +>true : true +> : ^^^^ + +a10([1, 2, 3, false, true]); // Parameter type is any[] +>a10([1, 2, 3, false, true]) : void +> : ^^^^ +>a10 : ([a, b, [[c]], ...x]: [any, any, [[any]], ...any[]]) => void +> : ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>[1, 2, 3, false, true] : [number, number, number, boolean, boolean] +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ +>3 : 3 +> : ^ +>false : false +> : ^^^^^ +>true : true +> : ^^^^ + +a10([1, 2]); // Parameter type is any[] +>a10([1, 2]) : void +> : ^^^^ +>a10 : ([a, b, [[c]], ...x]: [any, any, [[any]], ...any[]]) => void +> : ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>[1, 2] : [number, number] +> : ^^^^^^^^^^^^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ + +a11([1, 2]); // Parameter type is number[] +>a11([1, 2]) : void +> : ^^^^ +>a11 : ([a, b, c, ...x]: number[]) => void +> : ^ ^^ ^^^^^^^^^ +>[1, 2] : number[] +> : ^^^^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ + +// Rest parameter with generic +function foo(...a: T[]) { } +>foo : (...a: T[]) => void +> : ^ ^^^^^ ^^ ^^^^^^^^^ +>a : T[] +> : ^^^ + +foo("hello", 1, 2); +>foo("hello", 1, 2) : void +> : ^^^^ +>foo : (...a: T[]) => void +> : ^ ^^^^^ ^^ ^^^^^^^^^ +>"hello" : "hello" +> : ^^^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ + +foo("hello", "world"); +>foo("hello", "world") : void +> : ^^^^ +>foo : (...a: T[]) => void +> : ^ ^^^^^ ^^ ^^^^^^^^^ +>"hello" : "hello" +> : ^^^^^^^ +>"world" : "world" +> : ^^^^^^^ + +enum E { a, b } +>E : E +> : ^ +>a : E.a +> : ^^^ +>b : E.b +> : ^^^ + +const enum E1 { a, b } +>E1 : E1 +> : ^^ +>a : E1.a +> : ^^^^ +>b : E1.b +> : ^^^^ + +function foo1(...a: T[]) { } +>foo1 : (...a: T[]) => void +> : ^ ^^^^^^^^^ ^^^^^ ^^ ^^^^^^^^^ +>a : T[] +> : ^^^ + +foo1(1, 2, 3, E.a); +>foo1(1, 2, 3, E.a) : void +> : ^^^^ +>foo1 : (...a: T[]) => void +> : ^ ^^^^^^^^^ ^^^^^ ^^ ^^^^^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ +>3 : 3 +> : ^ +>E.a : E.a +> : ^^^ +>E : typeof E +> : ^^^^^^^^ +>a : E.a +> : ^^^ + +foo1(1, 2, 3, E1.a, E.b); +>foo1(1, 2, 3, E1.a, E.b) : void +> : ^^^^ +>foo1 : (...a: T[]) => void +> : ^ ^^^^^^^^^ ^^^^^ ^^ ^^^^^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ +>3 : 3 +> : ^ +>E1.a : E1.a +> : ^^^^ +>E1 : typeof E1 +> : ^^^^^^^^^ +>a : E1.a +> : ^^^^ +>E.b : E.b +> : ^^^ +>E : typeof E +> : ^^^^^^^^ +>b : E.b +> : ^^^ + + + diff --git a/tests/baselines/reference/destructuringParameterDeclaration7ES5(target=es2015).js b/tests/baselines/reference/destructuringParameterDeclaration7ES5(target=es2015).js new file mode 100644 index 0000000000000..f94a377dfbff7 --- /dev/null +++ b/tests/baselines/reference/destructuringParameterDeclaration7ES5(target=es2015).js @@ -0,0 +1,22 @@ +//// [tests/cases/conformance/es6/destructuring/destructuringParameterDeclaration7ES5.ts] //// + +//// [destructuringParameterDeclaration7ES5.ts] +interface ISomething { + foo: string, + bar: string +} + +function foo({}, {foo, bar}: ISomething) {} + +function baz([], {foo, bar}: ISomething) {} + +function one([], {}) {} + +function two([], [a, b, c]: number[]) {} + + +//// [destructuringParameterDeclaration7ES5.js] +function foo({}, { foo, bar }) { } +function baz([], { foo, bar }) { } +function one([], {}) { } +function two([], [a, b, c]) { } diff --git a/tests/baselines/reference/destructuringParameterDeclaration7ES5.symbols b/tests/baselines/reference/destructuringParameterDeclaration7ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/destructuringParameterDeclaration7ES5.symbols rename to tests/baselines/reference/destructuringParameterDeclaration7ES5(target=es2015).symbols diff --git a/tests/baselines/reference/destructuringParameterDeclaration7ES5(target=es2015).types b/tests/baselines/reference/destructuringParameterDeclaration7ES5(target=es2015).types new file mode 100644 index 0000000000000..76c61e05c63c4 --- /dev/null +++ b/tests/baselines/reference/destructuringParameterDeclaration7ES5(target=es2015).types @@ -0,0 +1,43 @@ +//// [tests/cases/conformance/es6/destructuring/destructuringParameterDeclaration7ES5.ts] //// + +=== destructuringParameterDeclaration7ES5.ts === +interface ISomething { + foo: string, +>foo : string +> : ^^^^^^ + + bar: string +>bar : string +> : ^^^^^^ +} + +function foo({}, {foo, bar}: ISomething) {} +>foo : ({}: {}, { foo, bar }: ISomething) => void +> : ^ ^^^^^^ ^^ ^^^^^^^^^ +>foo : string +> : ^^^^^^ +>bar : string +> : ^^^^^^ + +function baz([], {foo, bar}: ISomething) {} +>baz : ([]: Iterable, { foo, bar }: ISomething) => void +> : ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^ ^^^^^^^^^ +>foo : string +> : ^^^^^^ +>bar : string +> : ^^^^^^ + +function one([], {}) {} +>one : ([]: Iterable, {}: {}) => void +> : ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ + +function two([], [a, b, c]: number[]) {} +>two : ([]: Iterable, [a, b, c]: number[]) => void +> : ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^ ^^^^^^^^^ +>a : number +> : ^^^^^^ +>b : number +> : ^^^^^^ +>c : number +> : ^^^^^^ + diff --git a/tests/baselines/reference/destructuringParameterDeclaration7ES5.js b/tests/baselines/reference/destructuringParameterDeclaration7ES5(target=es5).js similarity index 100% rename from tests/baselines/reference/destructuringParameterDeclaration7ES5.js rename to tests/baselines/reference/destructuringParameterDeclaration7ES5(target=es5).js diff --git a/tests/baselines/reference/destructuringParameterDeclaration7ES5(target=es5).symbols b/tests/baselines/reference/destructuringParameterDeclaration7ES5(target=es5).symbols new file mode 100644 index 0000000000000..6eb82c2d6d23c --- /dev/null +++ b/tests/baselines/reference/destructuringParameterDeclaration7ES5(target=es5).symbols @@ -0,0 +1,34 @@ +//// [tests/cases/conformance/es6/destructuring/destructuringParameterDeclaration7ES5.ts] //// + +=== destructuringParameterDeclaration7ES5.ts === +interface ISomething { +>ISomething : Symbol(ISomething, Decl(destructuringParameterDeclaration7ES5.ts, 0, 0)) + + foo: string, +>foo : Symbol(ISomething.foo, Decl(destructuringParameterDeclaration7ES5.ts, 0, 22)) + + bar: string +>bar : Symbol(ISomething.bar, Decl(destructuringParameterDeclaration7ES5.ts, 1, 16)) +} + +function foo({}, {foo, bar}: ISomething) {} +>foo : Symbol(foo, Decl(destructuringParameterDeclaration7ES5.ts, 3, 1)) +>foo : Symbol(foo, Decl(destructuringParameterDeclaration7ES5.ts, 5, 18)) +>bar : Symbol(bar, Decl(destructuringParameterDeclaration7ES5.ts, 5, 22)) +>ISomething : Symbol(ISomething, Decl(destructuringParameterDeclaration7ES5.ts, 0, 0)) + +function baz([], {foo, bar}: ISomething) {} +>baz : Symbol(baz, Decl(destructuringParameterDeclaration7ES5.ts, 5, 43)) +>foo : Symbol(foo, Decl(destructuringParameterDeclaration7ES5.ts, 7, 18)) +>bar : Symbol(bar, Decl(destructuringParameterDeclaration7ES5.ts, 7, 22)) +>ISomething : Symbol(ISomething, Decl(destructuringParameterDeclaration7ES5.ts, 0, 0)) + +function one([], {}) {} +>one : Symbol(one, Decl(destructuringParameterDeclaration7ES5.ts, 7, 43)) + +function two([], [a, b, c]: number[]) {} +>two : Symbol(two, Decl(destructuringParameterDeclaration7ES5.ts, 9, 23)) +>a : Symbol(a, Decl(destructuringParameterDeclaration7ES5.ts, 11, 18)) +>b : Symbol(b, Decl(destructuringParameterDeclaration7ES5.ts, 11, 20)) +>c : Symbol(c, Decl(destructuringParameterDeclaration7ES5.ts, 11, 23)) + diff --git a/tests/baselines/reference/destructuringParameterDeclaration7ES5.types b/tests/baselines/reference/destructuringParameterDeclaration7ES5(target=es5).types similarity index 100% rename from tests/baselines/reference/destructuringParameterDeclaration7ES5.types rename to tests/baselines/reference/destructuringParameterDeclaration7ES5(target=es5).types diff --git a/tests/baselines/reference/destructuringParameterDeclaration7ES5iterable(target=es2015).js b/tests/baselines/reference/destructuringParameterDeclaration7ES5iterable(target=es2015).js new file mode 100644 index 0000000000000..aa2fc43853fb0 --- /dev/null +++ b/tests/baselines/reference/destructuringParameterDeclaration7ES5iterable(target=es2015).js @@ -0,0 +1,22 @@ +//// [tests/cases/conformance/es6/destructuring/destructuringParameterDeclaration7ES5iterable.ts] //// + +//// [destructuringParameterDeclaration7ES5iterable.ts] +interface ISomething { + foo: string, + bar: string +} + +function foo({}, {foo, bar}: ISomething) {} + +function baz([], {foo, bar}: ISomething) {} + +function one([], {}) {} + +function two([], [a, b, c]: number[]) {} + + +//// [destructuringParameterDeclaration7ES5iterable.js] +function foo({}, { foo, bar }) { } +function baz([], { foo, bar }) { } +function one([], {}) { } +function two([], [a, b, c]) { } diff --git a/tests/baselines/reference/destructuringParameterDeclaration7ES5iterable.symbols b/tests/baselines/reference/destructuringParameterDeclaration7ES5iterable(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/destructuringParameterDeclaration7ES5iterable.symbols rename to tests/baselines/reference/destructuringParameterDeclaration7ES5iterable(target=es2015).symbols diff --git a/tests/baselines/reference/destructuringParameterDeclaration7ES5iterable(target=es2015).types b/tests/baselines/reference/destructuringParameterDeclaration7ES5iterable(target=es2015).types new file mode 100644 index 0000000000000..1b9c3444c4089 --- /dev/null +++ b/tests/baselines/reference/destructuringParameterDeclaration7ES5iterable(target=es2015).types @@ -0,0 +1,43 @@ +//// [tests/cases/conformance/es6/destructuring/destructuringParameterDeclaration7ES5iterable.ts] //// + +=== destructuringParameterDeclaration7ES5iterable.ts === +interface ISomething { + foo: string, +>foo : string +> : ^^^^^^ + + bar: string +>bar : string +> : ^^^^^^ +} + +function foo({}, {foo, bar}: ISomething) {} +>foo : ({}: {}, { foo, bar }: ISomething) => void +> : ^ ^^^^^^ ^^ ^^^^^^^^^ +>foo : string +> : ^^^^^^ +>bar : string +> : ^^^^^^ + +function baz([], {foo, bar}: ISomething) {} +>baz : ([]: Iterable, { foo, bar }: ISomething) => void +> : ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^ ^^^^^^^^^ +>foo : string +> : ^^^^^^ +>bar : string +> : ^^^^^^ + +function one([], {}) {} +>one : ([]: Iterable, {}: {}) => void +> : ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ + +function two([], [a, b, c]: number[]) {} +>two : ([]: Iterable, [a, b, c]: number[]) => void +> : ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^ ^^^^^^^^^ +>a : number +> : ^^^^^^ +>b : number +> : ^^^^^^ +>c : number +> : ^^^^^^ + diff --git a/tests/baselines/reference/destructuringParameterDeclaration7ES5iterable.js b/tests/baselines/reference/destructuringParameterDeclaration7ES5iterable(target=es5).js similarity index 100% rename from tests/baselines/reference/destructuringParameterDeclaration7ES5iterable.js rename to tests/baselines/reference/destructuringParameterDeclaration7ES5iterable(target=es5).js diff --git a/tests/baselines/reference/destructuringParameterDeclaration7ES5iterable(target=es5).symbols b/tests/baselines/reference/destructuringParameterDeclaration7ES5iterable(target=es5).symbols new file mode 100644 index 0000000000000..6662a963079d5 --- /dev/null +++ b/tests/baselines/reference/destructuringParameterDeclaration7ES5iterable(target=es5).symbols @@ -0,0 +1,34 @@ +//// [tests/cases/conformance/es6/destructuring/destructuringParameterDeclaration7ES5iterable.ts] //// + +=== destructuringParameterDeclaration7ES5iterable.ts === +interface ISomething { +>ISomething : Symbol(ISomething, Decl(destructuringParameterDeclaration7ES5iterable.ts, 0, 0)) + + foo: string, +>foo : Symbol(ISomething.foo, Decl(destructuringParameterDeclaration7ES5iterable.ts, 0, 22)) + + bar: string +>bar : Symbol(ISomething.bar, Decl(destructuringParameterDeclaration7ES5iterable.ts, 1, 16)) +} + +function foo({}, {foo, bar}: ISomething) {} +>foo : Symbol(foo, Decl(destructuringParameterDeclaration7ES5iterable.ts, 3, 1)) +>foo : Symbol(foo, Decl(destructuringParameterDeclaration7ES5iterable.ts, 5, 18)) +>bar : Symbol(bar, Decl(destructuringParameterDeclaration7ES5iterable.ts, 5, 22)) +>ISomething : Symbol(ISomething, Decl(destructuringParameterDeclaration7ES5iterable.ts, 0, 0)) + +function baz([], {foo, bar}: ISomething) {} +>baz : Symbol(baz, Decl(destructuringParameterDeclaration7ES5iterable.ts, 5, 43)) +>foo : Symbol(foo, Decl(destructuringParameterDeclaration7ES5iterable.ts, 7, 18)) +>bar : Symbol(bar, Decl(destructuringParameterDeclaration7ES5iterable.ts, 7, 22)) +>ISomething : Symbol(ISomething, Decl(destructuringParameterDeclaration7ES5iterable.ts, 0, 0)) + +function one([], {}) {} +>one : Symbol(one, Decl(destructuringParameterDeclaration7ES5iterable.ts, 7, 43)) + +function two([], [a, b, c]: number[]) {} +>two : Symbol(two, Decl(destructuringParameterDeclaration7ES5iterable.ts, 9, 23)) +>a : Symbol(a, Decl(destructuringParameterDeclaration7ES5iterable.ts, 11, 18)) +>b : Symbol(b, Decl(destructuringParameterDeclaration7ES5iterable.ts, 11, 20)) +>c : Symbol(c, Decl(destructuringParameterDeclaration7ES5iterable.ts, 11, 23)) + diff --git a/tests/baselines/reference/destructuringParameterDeclaration7ES5iterable.types b/tests/baselines/reference/destructuringParameterDeclaration7ES5iterable(target=es5).types similarity index 100% rename from tests/baselines/reference/destructuringParameterDeclaration7ES5iterable.types rename to tests/baselines/reference/destructuringParameterDeclaration7ES5iterable(target=es5).types diff --git a/tests/baselines/reference/destructuringReassignsRightHandSide(target=es2015).js b/tests/baselines/reference/destructuringReassignsRightHandSide(target=es2015).js new file mode 100644 index 0000000000000..9d7e8cbcf2975 --- /dev/null +++ b/tests/baselines/reference/destructuringReassignsRightHandSide(target=es2015).js @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/es6/destructuring/destructuringReassignsRightHandSide.ts] //// + +//// [destructuringReassignsRightHandSide.ts] +var foo: any = { foo: 1, bar: 2 }; +var bar: any; + +// reassignment in destructuring pattern +({ foo, bar } = foo); + +// reassignment in subsequent var +var { foo, baz } = foo; + +//// [destructuringReassignsRightHandSide.js] +var foo = { foo: 1, bar: 2 }; +var bar; +// reassignment in destructuring pattern +({ foo, bar } = foo); +// reassignment in subsequent var +var { foo, baz } = foo; diff --git a/tests/baselines/reference/destructuringReassignsRightHandSide.symbols b/tests/baselines/reference/destructuringReassignsRightHandSide(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/destructuringReassignsRightHandSide.symbols rename to tests/baselines/reference/destructuringReassignsRightHandSide(target=es2015).symbols diff --git a/tests/baselines/reference/destructuringReassignsRightHandSide.types b/tests/baselines/reference/destructuringReassignsRightHandSide(target=es2015).types similarity index 100% rename from tests/baselines/reference/destructuringReassignsRightHandSide.types rename to tests/baselines/reference/destructuringReassignsRightHandSide(target=es2015).types diff --git a/tests/baselines/reference/destructuringReassignsRightHandSide.js b/tests/baselines/reference/destructuringReassignsRightHandSide(target=es5).js similarity index 100% rename from tests/baselines/reference/destructuringReassignsRightHandSide.js rename to tests/baselines/reference/destructuringReassignsRightHandSide(target=es5).js diff --git a/tests/baselines/reference/destructuringReassignsRightHandSide(target=es5).symbols b/tests/baselines/reference/destructuringReassignsRightHandSide(target=es5).symbols new file mode 100644 index 0000000000000..f303b8966e281 --- /dev/null +++ b/tests/baselines/reference/destructuringReassignsRightHandSide(target=es5).symbols @@ -0,0 +1,23 @@ +//// [tests/cases/conformance/es6/destructuring/destructuringReassignsRightHandSide.ts] //// + +=== destructuringReassignsRightHandSide.ts === +var foo: any = { foo: 1, bar: 2 }; +>foo : Symbol(foo, Decl(destructuringReassignsRightHandSide.ts, 0, 3), Decl(destructuringReassignsRightHandSide.ts, 7, 5)) +>foo : Symbol(foo, Decl(destructuringReassignsRightHandSide.ts, 0, 16)) +>bar : Symbol(bar, Decl(destructuringReassignsRightHandSide.ts, 0, 24)) + +var bar: any; +>bar : Symbol(bar, Decl(destructuringReassignsRightHandSide.ts, 1, 3)) + +// reassignment in destructuring pattern +({ foo, bar } = foo); +>foo : Symbol(foo, Decl(destructuringReassignsRightHandSide.ts, 4, 2)) +>bar : Symbol(bar, Decl(destructuringReassignsRightHandSide.ts, 4, 7)) +>foo : Symbol(foo, Decl(destructuringReassignsRightHandSide.ts, 0, 3), Decl(destructuringReassignsRightHandSide.ts, 7, 5)) + +// reassignment in subsequent var +var { foo, baz } = foo; +>foo : Symbol(foo, Decl(destructuringReassignsRightHandSide.ts, 0, 3), Decl(destructuringReassignsRightHandSide.ts, 7, 5)) +>baz : Symbol(baz, Decl(destructuringReassignsRightHandSide.ts, 7, 10)) +>foo : Symbol(foo, Decl(destructuringReassignsRightHandSide.ts, 0, 3), Decl(destructuringReassignsRightHandSide.ts, 7, 5)) + diff --git a/tests/baselines/reference/destructuringReassignsRightHandSide(target=es5).types b/tests/baselines/reference/destructuringReassignsRightHandSide(target=es5).types new file mode 100644 index 0000000000000..be01d68117502 --- /dev/null +++ b/tests/baselines/reference/destructuringReassignsRightHandSide(target=es5).types @@ -0,0 +1,37 @@ +//// [tests/cases/conformance/es6/destructuring/destructuringReassignsRightHandSide.ts] //// + +=== destructuringReassignsRightHandSide.ts === +var foo: any = { foo: 1, bar: 2 }; +>foo : any +>{ foo: 1, bar: 2 } : { foo: number; bar: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>foo : number +> : ^^^^^^ +>1 : 1 +> : ^ +>bar : number +> : ^^^^^^ +>2 : 2 +> : ^ + +var bar: any; +>bar : any + +// reassignment in destructuring pattern +({ foo, bar } = foo); +>({ foo, bar } = foo) : any +>{ foo, bar } = foo : any +>{ foo, bar } : { foo: any; bar: any; } +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>foo : any +>bar : any +>foo : any + +// reassignment in subsequent var +var { foo, baz } = foo; +>foo : any +> : ^^^ +>baz : any +> : ^^^ +>foo : any + diff --git a/tests/baselines/reference/destructuringTypeAssertionsES5_1.errors.txt b/tests/baselines/reference/destructuringTypeAssertionsES5_1(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/destructuringTypeAssertionsES5_1.errors.txt rename to tests/baselines/reference/destructuringTypeAssertionsES5_1(target=es2015).errors.txt diff --git a/tests/baselines/reference/destructuringTypeAssertionsES5_1(target=es2015).js b/tests/baselines/reference/destructuringTypeAssertionsES5_1(target=es2015).js new file mode 100644 index 0000000000000..d2efa4fadd6d9 --- /dev/null +++ b/tests/baselines/reference/destructuringTypeAssertionsES5_1(target=es2015).js @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_1.ts] //// + +//// [destructuringTypeAssertionsES5_1.ts] +var { x } = foo(); + +//// [destructuringTypeAssertionsES5_1.js] +var { x } = foo(); diff --git a/tests/baselines/reference/destructuringTypeAssertionsES5_1.symbols b/tests/baselines/reference/destructuringTypeAssertionsES5_1(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/destructuringTypeAssertionsES5_1.symbols rename to tests/baselines/reference/destructuringTypeAssertionsES5_1(target=es2015).symbols diff --git a/tests/baselines/reference/destructuringTypeAssertionsES5_1.types b/tests/baselines/reference/destructuringTypeAssertionsES5_1(target=es2015).types similarity index 100% rename from tests/baselines/reference/destructuringTypeAssertionsES5_1.types rename to tests/baselines/reference/destructuringTypeAssertionsES5_1(target=es2015).types diff --git a/tests/baselines/reference/destructuringTypeAssertionsES5_1(target=es5).errors.txt b/tests/baselines/reference/destructuringTypeAssertionsES5_1(target=es5).errors.txt new file mode 100644 index 0000000000000..338c228208d07 --- /dev/null +++ b/tests/baselines/reference/destructuringTypeAssertionsES5_1(target=es5).errors.txt @@ -0,0 +1,7 @@ +destructuringTypeAssertionsES5_1.ts(1,18): error TS2304: Cannot find name 'foo'. + + +==== destructuringTypeAssertionsES5_1.ts (1 errors) ==== + var { x } = foo(); + ~~~ +!!! error TS2304: Cannot find name 'foo'. \ No newline at end of file diff --git a/tests/baselines/reference/destructuringTypeAssertionsES5_1.js b/tests/baselines/reference/destructuringTypeAssertionsES5_1(target=es5).js similarity index 100% rename from tests/baselines/reference/destructuringTypeAssertionsES5_1.js rename to tests/baselines/reference/destructuringTypeAssertionsES5_1(target=es5).js diff --git a/tests/baselines/reference/destructuringTypeAssertionsES5_1(target=es5).symbols b/tests/baselines/reference/destructuringTypeAssertionsES5_1(target=es5).symbols new file mode 100644 index 0000000000000..759edffb3f2e1 --- /dev/null +++ b/tests/baselines/reference/destructuringTypeAssertionsES5_1(target=es5).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_1.ts] //// + +=== destructuringTypeAssertionsES5_1.ts === +var { x } = foo(); +>x : Symbol(x, Decl(destructuringTypeAssertionsES5_1.ts, 0, 5)) + diff --git a/tests/baselines/reference/destructuringTypeAssertionsES5_1(target=es5).types b/tests/baselines/reference/destructuringTypeAssertionsES5_1(target=es5).types new file mode 100644 index 0000000000000..e8c59a9a1bc0b --- /dev/null +++ b/tests/baselines/reference/destructuringTypeAssertionsES5_1(target=es5).types @@ -0,0 +1,13 @@ +//// [tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_1.ts] //// + +=== destructuringTypeAssertionsES5_1.ts === +var { x } = foo(); +>x : any +> : ^^^ +>foo() : any +> : ^^^ +>foo() : any +> : ^^^ +>foo : any +> : ^^^ + diff --git a/tests/baselines/reference/destructuringTypeAssertionsES5_2.errors.txt b/tests/baselines/reference/destructuringTypeAssertionsES5_2(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/destructuringTypeAssertionsES5_2.errors.txt rename to tests/baselines/reference/destructuringTypeAssertionsES5_2(target=es2015).errors.txt diff --git a/tests/baselines/reference/destructuringTypeAssertionsES5_2(target=es2015).js b/tests/baselines/reference/destructuringTypeAssertionsES5_2(target=es2015).js new file mode 100644 index 0000000000000..9eff2aaa1503c --- /dev/null +++ b/tests/baselines/reference/destructuringTypeAssertionsES5_2(target=es2015).js @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_2.ts] //// + +//// [destructuringTypeAssertionsES5_2.ts] +var { x } = (foo()); + +//// [destructuringTypeAssertionsES5_2.js] +var { x } = foo(); diff --git a/tests/baselines/reference/destructuringTypeAssertionsES5_2.symbols b/tests/baselines/reference/destructuringTypeAssertionsES5_2(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/destructuringTypeAssertionsES5_2.symbols rename to tests/baselines/reference/destructuringTypeAssertionsES5_2(target=es2015).symbols diff --git a/tests/baselines/reference/destructuringTypeAssertionsES5_2.types b/tests/baselines/reference/destructuringTypeAssertionsES5_2(target=es2015).types similarity index 100% rename from tests/baselines/reference/destructuringTypeAssertionsES5_2.types rename to tests/baselines/reference/destructuringTypeAssertionsES5_2(target=es2015).types diff --git a/tests/baselines/reference/destructuringTypeAssertionsES5_2(target=es5).errors.txt b/tests/baselines/reference/destructuringTypeAssertionsES5_2(target=es5).errors.txt new file mode 100644 index 0000000000000..69bb1ad29880e --- /dev/null +++ b/tests/baselines/reference/destructuringTypeAssertionsES5_2(target=es5).errors.txt @@ -0,0 +1,7 @@ +destructuringTypeAssertionsES5_2.ts(1,19): error TS2304: Cannot find name 'foo'. + + +==== destructuringTypeAssertionsES5_2.ts (1 errors) ==== + var { x } = (foo()); + ~~~ +!!! error TS2304: Cannot find name 'foo'. \ No newline at end of file diff --git a/tests/baselines/reference/destructuringTypeAssertionsES5_2.js b/tests/baselines/reference/destructuringTypeAssertionsES5_2(target=es5).js similarity index 100% rename from tests/baselines/reference/destructuringTypeAssertionsES5_2.js rename to tests/baselines/reference/destructuringTypeAssertionsES5_2(target=es5).js diff --git a/tests/baselines/reference/destructuringTypeAssertionsES5_2(target=es5).symbols b/tests/baselines/reference/destructuringTypeAssertionsES5_2(target=es5).symbols new file mode 100644 index 0000000000000..ad6c48a4ea967 --- /dev/null +++ b/tests/baselines/reference/destructuringTypeAssertionsES5_2(target=es5).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_2.ts] //// + +=== destructuringTypeAssertionsES5_2.ts === +var { x } = (foo()); +>x : Symbol(x, Decl(destructuringTypeAssertionsES5_2.ts, 0, 5)) + diff --git a/tests/baselines/reference/destructuringTypeAssertionsES5_2(target=es5).types b/tests/baselines/reference/destructuringTypeAssertionsES5_2(target=es5).types new file mode 100644 index 0000000000000..a42388c1278d5 --- /dev/null +++ b/tests/baselines/reference/destructuringTypeAssertionsES5_2(target=es5).types @@ -0,0 +1,15 @@ +//// [tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_2.ts] //// + +=== destructuringTypeAssertionsES5_2.ts === +var { x } = (foo()); +>x : any +> : ^^^ +>(foo()) : any +> : ^^^ +>foo() : any +> : ^^^ +>foo() : any +> : ^^^ +>foo : any +> : ^^^ + diff --git a/tests/baselines/reference/destructuringTypeAssertionsES5_3.errors.txt b/tests/baselines/reference/destructuringTypeAssertionsES5_3(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/destructuringTypeAssertionsES5_3.errors.txt rename to tests/baselines/reference/destructuringTypeAssertionsES5_3(target=es2015).errors.txt diff --git a/tests/baselines/reference/destructuringTypeAssertionsES5_3(target=es2015).js b/tests/baselines/reference/destructuringTypeAssertionsES5_3(target=es2015).js new file mode 100644 index 0000000000000..ec0d30b5683f4 --- /dev/null +++ b/tests/baselines/reference/destructuringTypeAssertionsES5_3(target=es2015).js @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_3.ts] //// + +//// [destructuringTypeAssertionsES5_3.ts] +var { x } = (foo()); + +//// [destructuringTypeAssertionsES5_3.js] +var { x } = (foo()); diff --git a/tests/baselines/reference/destructuringTypeAssertionsES5_3.symbols b/tests/baselines/reference/destructuringTypeAssertionsES5_3(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/destructuringTypeAssertionsES5_3.symbols rename to tests/baselines/reference/destructuringTypeAssertionsES5_3(target=es2015).symbols diff --git a/tests/baselines/reference/destructuringTypeAssertionsES5_3.types b/tests/baselines/reference/destructuringTypeAssertionsES5_3(target=es2015).types similarity index 100% rename from tests/baselines/reference/destructuringTypeAssertionsES5_3.types rename to tests/baselines/reference/destructuringTypeAssertionsES5_3(target=es2015).types diff --git a/tests/baselines/reference/destructuringTypeAssertionsES5_3(target=es5).errors.txt b/tests/baselines/reference/destructuringTypeAssertionsES5_3(target=es5).errors.txt new file mode 100644 index 0000000000000..711fffb77bcc1 --- /dev/null +++ b/tests/baselines/reference/destructuringTypeAssertionsES5_3(target=es5).errors.txt @@ -0,0 +1,7 @@ +destructuringTypeAssertionsES5_3.ts(1,19): error TS2304: Cannot find name 'foo'. + + +==== destructuringTypeAssertionsES5_3.ts (1 errors) ==== + var { x } = (foo()); + ~~~ +!!! error TS2304: Cannot find name 'foo'. \ No newline at end of file diff --git a/tests/baselines/reference/destructuringTypeAssertionsES5_3.js b/tests/baselines/reference/destructuringTypeAssertionsES5_3(target=es5).js similarity index 100% rename from tests/baselines/reference/destructuringTypeAssertionsES5_3.js rename to tests/baselines/reference/destructuringTypeAssertionsES5_3(target=es5).js diff --git a/tests/baselines/reference/destructuringTypeAssertionsES5_3(target=es5).symbols b/tests/baselines/reference/destructuringTypeAssertionsES5_3(target=es5).symbols new file mode 100644 index 0000000000000..c9d2cc2c585ec --- /dev/null +++ b/tests/baselines/reference/destructuringTypeAssertionsES5_3(target=es5).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_3.ts] //// + +=== destructuringTypeAssertionsES5_3.ts === +var { x } = (foo()); +>x : Symbol(x, Decl(destructuringTypeAssertionsES5_3.ts, 0, 5)) + diff --git a/tests/baselines/reference/destructuringTypeAssertionsES5_3(target=es5).types b/tests/baselines/reference/destructuringTypeAssertionsES5_3(target=es5).types new file mode 100644 index 0000000000000..5ca7815b32db0 --- /dev/null +++ b/tests/baselines/reference/destructuringTypeAssertionsES5_3(target=es5).types @@ -0,0 +1,15 @@ +//// [tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_3.ts] //// + +=== destructuringTypeAssertionsES5_3.ts === +var { x } = (foo()); +>x : any +> : ^^^ +>(foo()) : any +> : ^^^ +>(foo()) : any +> : ^^^ +>foo() : any +> : ^^^ +>foo : any +> : ^^^ + diff --git a/tests/baselines/reference/destructuringTypeAssertionsES5_4.errors.txt b/tests/baselines/reference/destructuringTypeAssertionsES5_4(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/destructuringTypeAssertionsES5_4.errors.txt rename to tests/baselines/reference/destructuringTypeAssertionsES5_4(target=es2015).errors.txt diff --git a/tests/baselines/reference/destructuringTypeAssertionsES5_4(target=es2015).js b/tests/baselines/reference/destructuringTypeAssertionsES5_4(target=es2015).js new file mode 100644 index 0000000000000..58d77bee8f38b --- /dev/null +++ b/tests/baselines/reference/destructuringTypeAssertionsES5_4(target=es2015).js @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_4.ts] //// + +//// [destructuringTypeAssertionsES5_4.ts] +var { x } = foo(); + +//// [destructuringTypeAssertionsES5_4.js] +var { x } = foo(); diff --git a/tests/baselines/reference/destructuringTypeAssertionsES5_4.symbols b/tests/baselines/reference/destructuringTypeAssertionsES5_4(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/destructuringTypeAssertionsES5_4.symbols rename to tests/baselines/reference/destructuringTypeAssertionsES5_4(target=es2015).symbols diff --git a/tests/baselines/reference/destructuringTypeAssertionsES5_4.types b/tests/baselines/reference/destructuringTypeAssertionsES5_4(target=es2015).types similarity index 100% rename from tests/baselines/reference/destructuringTypeAssertionsES5_4.types rename to tests/baselines/reference/destructuringTypeAssertionsES5_4(target=es2015).types diff --git a/tests/baselines/reference/destructuringTypeAssertionsES5_4(target=es5).errors.txt b/tests/baselines/reference/destructuringTypeAssertionsES5_4(target=es5).errors.txt new file mode 100644 index 0000000000000..e099359414cc8 --- /dev/null +++ b/tests/baselines/reference/destructuringTypeAssertionsES5_4(target=es5).errors.txt @@ -0,0 +1,7 @@ +destructuringTypeAssertionsES5_4.ts(1,23): error TS2304: Cannot find name 'foo'. + + +==== destructuringTypeAssertionsES5_4.ts (1 errors) ==== + var { x } = foo(); + ~~~ +!!! error TS2304: Cannot find name 'foo'. \ No newline at end of file diff --git a/tests/baselines/reference/destructuringTypeAssertionsES5_4.js b/tests/baselines/reference/destructuringTypeAssertionsES5_4(target=es5).js similarity index 100% rename from tests/baselines/reference/destructuringTypeAssertionsES5_4.js rename to tests/baselines/reference/destructuringTypeAssertionsES5_4(target=es5).js diff --git a/tests/baselines/reference/destructuringTypeAssertionsES5_4(target=es5).symbols b/tests/baselines/reference/destructuringTypeAssertionsES5_4(target=es5).symbols new file mode 100644 index 0000000000000..74413b8589da0 --- /dev/null +++ b/tests/baselines/reference/destructuringTypeAssertionsES5_4(target=es5).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_4.ts] //// + +=== destructuringTypeAssertionsES5_4.ts === +var { x } = foo(); +>x : Symbol(x, Decl(destructuringTypeAssertionsES5_4.ts, 0, 5)) + diff --git a/tests/baselines/reference/destructuringTypeAssertionsES5_4(target=es5).types b/tests/baselines/reference/destructuringTypeAssertionsES5_4(target=es5).types new file mode 100644 index 0000000000000..c332348768bca --- /dev/null +++ b/tests/baselines/reference/destructuringTypeAssertionsES5_4(target=es5).types @@ -0,0 +1,15 @@ +//// [tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_4.ts] //// + +=== destructuringTypeAssertionsES5_4.ts === +var { x } = foo(); +>x : any +> : ^^^ +>foo() : any +> : ^^^ +>foo() : any +> : ^^^ +>foo() : any +> : ^^^ +>foo : any +> : ^^^ + diff --git a/tests/baselines/reference/destructuringTypeAssertionsES5_5(target=es2015).js b/tests/baselines/reference/destructuringTypeAssertionsES5_5(target=es2015).js new file mode 100644 index 0000000000000..1fb5466b938db --- /dev/null +++ b/tests/baselines/reference/destructuringTypeAssertionsES5_5(target=es2015).js @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_5.ts] //// + +//// [destructuringTypeAssertionsES5_5.ts] +var { x } = 0; + +//// [destructuringTypeAssertionsES5_5.js] +var { x } = 0; diff --git a/tests/baselines/reference/destructuringTypeAssertionsES5_5.symbols b/tests/baselines/reference/destructuringTypeAssertionsES5_5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/destructuringTypeAssertionsES5_5.symbols rename to tests/baselines/reference/destructuringTypeAssertionsES5_5(target=es2015).symbols diff --git a/tests/baselines/reference/destructuringTypeAssertionsES5_5.types b/tests/baselines/reference/destructuringTypeAssertionsES5_5(target=es2015).types similarity index 100% rename from tests/baselines/reference/destructuringTypeAssertionsES5_5.types rename to tests/baselines/reference/destructuringTypeAssertionsES5_5(target=es2015).types diff --git a/tests/baselines/reference/destructuringTypeAssertionsES5_5.js b/tests/baselines/reference/destructuringTypeAssertionsES5_5(target=es5).js similarity index 100% rename from tests/baselines/reference/destructuringTypeAssertionsES5_5.js rename to tests/baselines/reference/destructuringTypeAssertionsES5_5(target=es5).js diff --git a/tests/baselines/reference/destructuringTypeAssertionsES5_5(target=es5).symbols b/tests/baselines/reference/destructuringTypeAssertionsES5_5(target=es5).symbols new file mode 100644 index 0000000000000..e8274d97c1744 --- /dev/null +++ b/tests/baselines/reference/destructuringTypeAssertionsES5_5(target=es5).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_5.ts] //// + +=== destructuringTypeAssertionsES5_5.ts === +var { x } = 0; +>x : Symbol(x, Decl(destructuringTypeAssertionsES5_5.ts, 0, 5)) + diff --git a/tests/baselines/reference/destructuringTypeAssertionsES5_5(target=es5).types b/tests/baselines/reference/destructuringTypeAssertionsES5_5(target=es5).types new file mode 100644 index 0000000000000..5abc2c7775ac8 --- /dev/null +++ b/tests/baselines/reference/destructuringTypeAssertionsES5_5(target=es5).types @@ -0,0 +1,10 @@ +//// [tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_5.ts] //// + +=== destructuringTypeAssertionsES5_5.ts === +var { x } = 0; +>x : any +> : ^^^ +>0 : any +>0 : 0 +> : ^ + diff --git a/tests/baselines/reference/destructuringTypeAssertionsES5_6.errors.txt b/tests/baselines/reference/destructuringTypeAssertionsES5_6(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/destructuringTypeAssertionsES5_6.errors.txt rename to tests/baselines/reference/destructuringTypeAssertionsES5_6(target=es2015).errors.txt diff --git a/tests/baselines/reference/destructuringTypeAssertionsES5_6(target=es2015).js b/tests/baselines/reference/destructuringTypeAssertionsES5_6(target=es2015).js new file mode 100644 index 0000000000000..4d74b8f559855 --- /dev/null +++ b/tests/baselines/reference/destructuringTypeAssertionsES5_6(target=es2015).js @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_6.ts] //// + +//// [destructuringTypeAssertionsES5_6.ts] +var { x } = new Foo; + +//// [destructuringTypeAssertionsES5_6.js] +var { x } = new Foo; diff --git a/tests/baselines/reference/destructuringTypeAssertionsES5_6.symbols b/tests/baselines/reference/destructuringTypeAssertionsES5_6(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/destructuringTypeAssertionsES5_6.symbols rename to tests/baselines/reference/destructuringTypeAssertionsES5_6(target=es2015).symbols diff --git a/tests/baselines/reference/destructuringTypeAssertionsES5_6.types b/tests/baselines/reference/destructuringTypeAssertionsES5_6(target=es2015).types similarity index 100% rename from tests/baselines/reference/destructuringTypeAssertionsES5_6.types rename to tests/baselines/reference/destructuringTypeAssertionsES5_6(target=es2015).types diff --git a/tests/baselines/reference/destructuringTypeAssertionsES5_6(target=es5).errors.txt b/tests/baselines/reference/destructuringTypeAssertionsES5_6(target=es5).errors.txt new file mode 100644 index 0000000000000..a46b81469d87b --- /dev/null +++ b/tests/baselines/reference/destructuringTypeAssertionsES5_6(target=es5).errors.txt @@ -0,0 +1,7 @@ +destructuringTypeAssertionsES5_6.ts(1,22): error TS2304: Cannot find name 'Foo'. + + +==== destructuringTypeAssertionsES5_6.ts (1 errors) ==== + var { x } = new Foo; + ~~~ +!!! error TS2304: Cannot find name 'Foo'. \ No newline at end of file diff --git a/tests/baselines/reference/destructuringTypeAssertionsES5_6.js b/tests/baselines/reference/destructuringTypeAssertionsES5_6(target=es5).js similarity index 100% rename from tests/baselines/reference/destructuringTypeAssertionsES5_6.js rename to tests/baselines/reference/destructuringTypeAssertionsES5_6(target=es5).js diff --git a/tests/baselines/reference/destructuringTypeAssertionsES5_6(target=es5).symbols b/tests/baselines/reference/destructuringTypeAssertionsES5_6(target=es5).symbols new file mode 100644 index 0000000000000..d5dfde5520daf --- /dev/null +++ b/tests/baselines/reference/destructuringTypeAssertionsES5_6(target=es5).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_6.ts] //// + +=== destructuringTypeAssertionsES5_6.ts === +var { x } = new Foo; +>x : Symbol(x, Decl(destructuringTypeAssertionsES5_6.ts, 0, 5)) + diff --git a/tests/baselines/reference/destructuringTypeAssertionsES5_6(target=es5).types b/tests/baselines/reference/destructuringTypeAssertionsES5_6(target=es5).types new file mode 100644 index 0000000000000..2b1f986a030df --- /dev/null +++ b/tests/baselines/reference/destructuringTypeAssertionsES5_6(target=es5).types @@ -0,0 +1,13 @@ +//// [tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_6.ts] //// + +=== destructuringTypeAssertionsES5_6.ts === +var { x } = new Foo; +>x : any +> : ^^^ +>new Foo : any +> : ^^^ +>new Foo : any +> : ^^^ +>Foo : any +> : ^^^ + diff --git a/tests/baselines/reference/destructuringTypeAssertionsES5_7.errors.txt b/tests/baselines/reference/destructuringTypeAssertionsES5_7(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/destructuringTypeAssertionsES5_7.errors.txt rename to tests/baselines/reference/destructuringTypeAssertionsES5_7(target=es2015).errors.txt diff --git a/tests/baselines/reference/destructuringTypeAssertionsES5_7(target=es2015).js b/tests/baselines/reference/destructuringTypeAssertionsES5_7(target=es2015).js new file mode 100644 index 0000000000000..1a95404ec9870 --- /dev/null +++ b/tests/baselines/reference/destructuringTypeAssertionsES5_7(target=es2015).js @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_7.ts] //// + +//// [destructuringTypeAssertionsES5_7.ts] +var { x } = new Foo; + +//// [destructuringTypeAssertionsES5_7.js] +var { x } = new Foo; diff --git a/tests/baselines/reference/destructuringTypeAssertionsES5_7.symbols b/tests/baselines/reference/destructuringTypeAssertionsES5_7(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/destructuringTypeAssertionsES5_7.symbols rename to tests/baselines/reference/destructuringTypeAssertionsES5_7(target=es2015).symbols diff --git a/tests/baselines/reference/destructuringTypeAssertionsES5_7.types b/tests/baselines/reference/destructuringTypeAssertionsES5_7(target=es2015).types similarity index 100% rename from tests/baselines/reference/destructuringTypeAssertionsES5_7.types rename to tests/baselines/reference/destructuringTypeAssertionsES5_7(target=es2015).types diff --git a/tests/baselines/reference/destructuringTypeAssertionsES5_7(target=es5).errors.txt b/tests/baselines/reference/destructuringTypeAssertionsES5_7(target=es5).errors.txt new file mode 100644 index 0000000000000..92d5d44e89b8d --- /dev/null +++ b/tests/baselines/reference/destructuringTypeAssertionsES5_7(target=es5).errors.txt @@ -0,0 +1,7 @@ +destructuringTypeAssertionsES5_7.ts(1,27): error TS2304: Cannot find name 'Foo'. + + +==== destructuringTypeAssertionsES5_7.ts (1 errors) ==== + var { x } = new Foo; + ~~~ +!!! error TS2304: Cannot find name 'Foo'. \ No newline at end of file diff --git a/tests/baselines/reference/destructuringTypeAssertionsES5_7.js b/tests/baselines/reference/destructuringTypeAssertionsES5_7(target=es5).js similarity index 100% rename from tests/baselines/reference/destructuringTypeAssertionsES5_7.js rename to tests/baselines/reference/destructuringTypeAssertionsES5_7(target=es5).js diff --git a/tests/baselines/reference/destructuringTypeAssertionsES5_7(target=es5).symbols b/tests/baselines/reference/destructuringTypeAssertionsES5_7(target=es5).symbols new file mode 100644 index 0000000000000..2e63bd05a7587 --- /dev/null +++ b/tests/baselines/reference/destructuringTypeAssertionsES5_7(target=es5).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_7.ts] //// + +=== destructuringTypeAssertionsES5_7.ts === +var { x } = new Foo; +>x : Symbol(x, Decl(destructuringTypeAssertionsES5_7.ts, 0, 5)) + diff --git a/tests/baselines/reference/destructuringTypeAssertionsES5_7(target=es5).types b/tests/baselines/reference/destructuringTypeAssertionsES5_7(target=es5).types new file mode 100644 index 0000000000000..52dde21c180e9 --- /dev/null +++ b/tests/baselines/reference/destructuringTypeAssertionsES5_7(target=es5).types @@ -0,0 +1,15 @@ +//// [tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_7.ts] //// + +=== destructuringTypeAssertionsES5_7.ts === +var { x } = new Foo; +>x : any +> : ^^^ +>new Foo : any +> : ^^^ +>new Foo : any +> : ^^^ +>new Foo : any +> : ^^^ +>Foo : any +> : ^^^ + diff --git a/tests/baselines/reference/divergentAccessorsTypes3(target=es2015).js b/tests/baselines/reference/divergentAccessorsTypes3(target=es2015).js new file mode 100644 index 0000000000000..3383a63244790 --- /dev/null +++ b/tests/baselines/reference/divergentAccessorsTypes3(target=es2015).js @@ -0,0 +1,76 @@ +//// [tests/cases/compiler/divergentAccessorsTypes3.ts] //// + +//// [divergentAccessorsTypes3.ts] +class One { + get prop1(): string { return ""; } + set prop1(s: string | number) { } + + get prop2(): string { return ""; } + set prop2(s: string | number) { } + + prop3: number; + + get prop4(): string { return ""; } + set prop4(s: string | number) { } +} + +class Two { + get prop1(): string { return ""; } + set prop1(s: string | number) { } + + get prop2(): string { return ""; } + set prop2(s: string) { } + + get prop3(): string { return ""; } + set prop3(s: string | boolean) { } + + get prop4(): string { return ""; } + set prop4(s: string | boolean) { } +} + +declare const u1: One|Two; + +u1.prop1 = 42; +u1.prop1 = "hello"; + +u1.prop2 = 42; +u1.prop2 = "hello"; + +u1.prop3 = 42; +u1.prop3 = "hello"; +u1.prop3 = true; + +u1.prop4 = 42; +u1.prop4 = "hello"; +u1.prop4 = true; + + +//// [divergentAccessorsTypes3.js] +class One { + get prop1() { return ""; } + set prop1(s) { } + get prop2() { return ""; } + set prop2(s) { } + get prop4() { return ""; } + set prop4(s) { } +} +class Two { + get prop1() { return ""; } + set prop1(s) { } + get prop2() { return ""; } + set prop2(s) { } + get prop3() { return ""; } + set prop3(s) { } + get prop4() { return ""; } + set prop4(s) { } +} +u1.prop1 = 42; +u1.prop1 = "hello"; +u1.prop2 = 42; +u1.prop2 = "hello"; +u1.prop3 = 42; +u1.prop3 = "hello"; +u1.prop3 = true; +u1.prop4 = 42; +u1.prop4 = "hello"; +u1.prop4 = true; diff --git a/tests/baselines/reference/divergentAccessorsTypes3.symbols b/tests/baselines/reference/divergentAccessorsTypes3(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/divergentAccessorsTypes3.symbols rename to tests/baselines/reference/divergentAccessorsTypes3(target=es2015).symbols diff --git a/tests/baselines/reference/divergentAccessorsTypes3.types b/tests/baselines/reference/divergentAccessorsTypes3(target=es2015).types similarity index 100% rename from tests/baselines/reference/divergentAccessorsTypes3.types rename to tests/baselines/reference/divergentAccessorsTypes3(target=es2015).types diff --git a/tests/baselines/reference/divergentAccessorsTypes3.js b/tests/baselines/reference/divergentAccessorsTypes3(target=es5).js similarity index 100% rename from tests/baselines/reference/divergentAccessorsTypes3.js rename to tests/baselines/reference/divergentAccessorsTypes3(target=es5).js diff --git a/tests/baselines/reference/divergentAccessorsTypes3(target=es5).symbols b/tests/baselines/reference/divergentAccessorsTypes3(target=es5).symbols new file mode 100644 index 0000000000000..2a08530f9eb53 --- /dev/null +++ b/tests/baselines/reference/divergentAccessorsTypes3(target=es5).symbols @@ -0,0 +1,118 @@ +//// [tests/cases/compiler/divergentAccessorsTypes3.ts] //// + +=== divergentAccessorsTypes3.ts === +class One { +>One : Symbol(One, Decl(divergentAccessorsTypes3.ts, 0, 0)) + + get prop1(): string { return ""; } +>prop1 : Symbol(One.prop1, Decl(divergentAccessorsTypes3.ts, 0, 11), Decl(divergentAccessorsTypes3.ts, 1, 36)) + + set prop1(s: string | number) { } +>prop1 : Symbol(One.prop1, Decl(divergentAccessorsTypes3.ts, 0, 11), Decl(divergentAccessorsTypes3.ts, 1, 36)) +>s : Symbol(s, Decl(divergentAccessorsTypes3.ts, 2, 12)) + + get prop2(): string { return ""; } +>prop2 : Symbol(One.prop2, Decl(divergentAccessorsTypes3.ts, 2, 35), Decl(divergentAccessorsTypes3.ts, 4, 36)) + + set prop2(s: string | number) { } +>prop2 : Symbol(One.prop2, Decl(divergentAccessorsTypes3.ts, 2, 35), Decl(divergentAccessorsTypes3.ts, 4, 36)) +>s : Symbol(s, Decl(divergentAccessorsTypes3.ts, 5, 12)) + + prop3: number; +>prop3 : Symbol(One.prop3, Decl(divergentAccessorsTypes3.ts, 5, 35)) + + get prop4(): string { return ""; } +>prop4 : Symbol(One.prop4, Decl(divergentAccessorsTypes3.ts, 7, 16), Decl(divergentAccessorsTypes3.ts, 9, 36)) + + set prop4(s: string | number) { } +>prop4 : Symbol(One.prop4, Decl(divergentAccessorsTypes3.ts, 7, 16), Decl(divergentAccessorsTypes3.ts, 9, 36)) +>s : Symbol(s, Decl(divergentAccessorsTypes3.ts, 10, 12)) +} + +class Two { +>Two : Symbol(Two, Decl(divergentAccessorsTypes3.ts, 11, 1)) + + get prop1(): string { return ""; } +>prop1 : Symbol(Two.prop1, Decl(divergentAccessorsTypes3.ts, 13, 11), Decl(divergentAccessorsTypes3.ts, 14, 36)) + + set prop1(s: string | number) { } +>prop1 : Symbol(Two.prop1, Decl(divergentAccessorsTypes3.ts, 13, 11), Decl(divergentAccessorsTypes3.ts, 14, 36)) +>s : Symbol(s, Decl(divergentAccessorsTypes3.ts, 15, 12)) + + get prop2(): string { return ""; } +>prop2 : Symbol(Two.prop2, Decl(divergentAccessorsTypes3.ts, 15, 35), Decl(divergentAccessorsTypes3.ts, 17, 36)) + + set prop2(s: string) { } +>prop2 : Symbol(Two.prop2, Decl(divergentAccessorsTypes3.ts, 15, 35), Decl(divergentAccessorsTypes3.ts, 17, 36)) +>s : Symbol(s, Decl(divergentAccessorsTypes3.ts, 18, 12)) + + get prop3(): string { return ""; } +>prop3 : Symbol(Two.prop3, Decl(divergentAccessorsTypes3.ts, 18, 26), Decl(divergentAccessorsTypes3.ts, 20, 36)) + + set prop3(s: string | boolean) { } +>prop3 : Symbol(Two.prop3, Decl(divergentAccessorsTypes3.ts, 18, 26), Decl(divergentAccessorsTypes3.ts, 20, 36)) +>s : Symbol(s, Decl(divergentAccessorsTypes3.ts, 21, 12)) + + get prop4(): string { return ""; } +>prop4 : Symbol(Two.prop4, Decl(divergentAccessorsTypes3.ts, 21, 36), Decl(divergentAccessorsTypes3.ts, 23, 36)) + + set prop4(s: string | boolean) { } +>prop4 : Symbol(Two.prop4, Decl(divergentAccessorsTypes3.ts, 21, 36), Decl(divergentAccessorsTypes3.ts, 23, 36)) +>s : Symbol(s, Decl(divergentAccessorsTypes3.ts, 24, 12)) +} + +declare const u1: One|Two; +>u1 : Symbol(u1, Decl(divergentAccessorsTypes3.ts, 27, 13)) +>One : Symbol(One, Decl(divergentAccessorsTypes3.ts, 0, 0)) +>Two : Symbol(Two, Decl(divergentAccessorsTypes3.ts, 11, 1)) + +u1.prop1 = 42; +>u1.prop1 : Symbol(prop1, Decl(divergentAccessorsTypes3.ts, 0, 11), Decl(divergentAccessorsTypes3.ts, 1, 36), Decl(divergentAccessorsTypes3.ts, 13, 11), Decl(divergentAccessorsTypes3.ts, 14, 36)) +>u1 : Symbol(u1, Decl(divergentAccessorsTypes3.ts, 27, 13)) +>prop1 : Symbol(prop1, Decl(divergentAccessorsTypes3.ts, 0, 11), Decl(divergentAccessorsTypes3.ts, 1, 36), Decl(divergentAccessorsTypes3.ts, 13, 11), Decl(divergentAccessorsTypes3.ts, 14, 36)) + +u1.prop1 = "hello"; +>u1.prop1 : Symbol(prop1, Decl(divergentAccessorsTypes3.ts, 0, 11), Decl(divergentAccessorsTypes3.ts, 1, 36), Decl(divergentAccessorsTypes3.ts, 13, 11), Decl(divergentAccessorsTypes3.ts, 14, 36)) +>u1 : Symbol(u1, Decl(divergentAccessorsTypes3.ts, 27, 13)) +>prop1 : Symbol(prop1, Decl(divergentAccessorsTypes3.ts, 0, 11), Decl(divergentAccessorsTypes3.ts, 1, 36), Decl(divergentAccessorsTypes3.ts, 13, 11), Decl(divergentAccessorsTypes3.ts, 14, 36)) + +u1.prop2 = 42; +>u1.prop2 : Symbol(prop2, Decl(divergentAccessorsTypes3.ts, 2, 35), Decl(divergentAccessorsTypes3.ts, 4, 36), Decl(divergentAccessorsTypes3.ts, 15, 35), Decl(divergentAccessorsTypes3.ts, 17, 36)) +>u1 : Symbol(u1, Decl(divergentAccessorsTypes3.ts, 27, 13)) +>prop2 : Symbol(prop2, Decl(divergentAccessorsTypes3.ts, 2, 35), Decl(divergentAccessorsTypes3.ts, 4, 36), Decl(divergentAccessorsTypes3.ts, 15, 35), Decl(divergentAccessorsTypes3.ts, 17, 36)) + +u1.prop2 = "hello"; +>u1.prop2 : Symbol(prop2, Decl(divergentAccessorsTypes3.ts, 2, 35), Decl(divergentAccessorsTypes3.ts, 4, 36), Decl(divergentAccessorsTypes3.ts, 15, 35), Decl(divergentAccessorsTypes3.ts, 17, 36)) +>u1 : Symbol(u1, Decl(divergentAccessorsTypes3.ts, 27, 13)) +>prop2 : Symbol(prop2, Decl(divergentAccessorsTypes3.ts, 2, 35), Decl(divergentAccessorsTypes3.ts, 4, 36), Decl(divergentAccessorsTypes3.ts, 15, 35), Decl(divergentAccessorsTypes3.ts, 17, 36)) + +u1.prop3 = 42; +>u1.prop3 : Symbol(prop3, Decl(divergentAccessorsTypes3.ts, 5, 35), Decl(divergentAccessorsTypes3.ts, 18, 26), Decl(divergentAccessorsTypes3.ts, 20, 36)) +>u1 : Symbol(u1, Decl(divergentAccessorsTypes3.ts, 27, 13)) +>prop3 : Symbol(prop3, Decl(divergentAccessorsTypes3.ts, 5, 35), Decl(divergentAccessorsTypes3.ts, 18, 26), Decl(divergentAccessorsTypes3.ts, 20, 36)) + +u1.prop3 = "hello"; +>u1.prop3 : Symbol(prop3, Decl(divergentAccessorsTypes3.ts, 5, 35), Decl(divergentAccessorsTypes3.ts, 18, 26), Decl(divergentAccessorsTypes3.ts, 20, 36)) +>u1 : Symbol(u1, Decl(divergentAccessorsTypes3.ts, 27, 13)) +>prop3 : Symbol(prop3, Decl(divergentAccessorsTypes3.ts, 5, 35), Decl(divergentAccessorsTypes3.ts, 18, 26), Decl(divergentAccessorsTypes3.ts, 20, 36)) + +u1.prop3 = true; +>u1.prop3 : Symbol(prop3, Decl(divergentAccessorsTypes3.ts, 5, 35), Decl(divergentAccessorsTypes3.ts, 18, 26), Decl(divergentAccessorsTypes3.ts, 20, 36)) +>u1 : Symbol(u1, Decl(divergentAccessorsTypes3.ts, 27, 13)) +>prop3 : Symbol(prop3, Decl(divergentAccessorsTypes3.ts, 5, 35), Decl(divergentAccessorsTypes3.ts, 18, 26), Decl(divergentAccessorsTypes3.ts, 20, 36)) + +u1.prop4 = 42; +>u1.prop4 : Symbol(prop4, Decl(divergentAccessorsTypes3.ts, 7, 16), Decl(divergentAccessorsTypes3.ts, 9, 36), Decl(divergentAccessorsTypes3.ts, 21, 36), Decl(divergentAccessorsTypes3.ts, 23, 36)) +>u1 : Symbol(u1, Decl(divergentAccessorsTypes3.ts, 27, 13)) +>prop4 : Symbol(prop4, Decl(divergentAccessorsTypes3.ts, 7, 16), Decl(divergentAccessorsTypes3.ts, 9, 36), Decl(divergentAccessorsTypes3.ts, 21, 36), Decl(divergentAccessorsTypes3.ts, 23, 36)) + +u1.prop4 = "hello"; +>u1.prop4 : Symbol(prop4, Decl(divergentAccessorsTypes3.ts, 7, 16), Decl(divergentAccessorsTypes3.ts, 9, 36), Decl(divergentAccessorsTypes3.ts, 21, 36), Decl(divergentAccessorsTypes3.ts, 23, 36)) +>u1 : Symbol(u1, Decl(divergentAccessorsTypes3.ts, 27, 13)) +>prop4 : Symbol(prop4, Decl(divergentAccessorsTypes3.ts, 7, 16), Decl(divergentAccessorsTypes3.ts, 9, 36), Decl(divergentAccessorsTypes3.ts, 21, 36), Decl(divergentAccessorsTypes3.ts, 23, 36)) + +u1.prop4 = true; +>u1.prop4 : Symbol(prop4, Decl(divergentAccessorsTypes3.ts, 7, 16), Decl(divergentAccessorsTypes3.ts, 9, 36), Decl(divergentAccessorsTypes3.ts, 21, 36), Decl(divergentAccessorsTypes3.ts, 23, 36)) +>u1 : Symbol(u1, Decl(divergentAccessorsTypes3.ts, 27, 13)) +>prop4 : Symbol(prop4, Decl(divergentAccessorsTypes3.ts, 7, 16), Decl(divergentAccessorsTypes3.ts, 9, 36), Decl(divergentAccessorsTypes3.ts, 21, 36), Decl(divergentAccessorsTypes3.ts, 23, 36)) + diff --git a/tests/baselines/reference/divergentAccessorsTypes3(target=es5).types b/tests/baselines/reference/divergentAccessorsTypes3(target=es5).types new file mode 100644 index 0000000000000..b8e3ed2ecd9eb --- /dev/null +++ b/tests/baselines/reference/divergentAccessorsTypes3(target=es5).types @@ -0,0 +1,225 @@ +//// [tests/cases/compiler/divergentAccessorsTypes3.ts] //// + +=== divergentAccessorsTypes3.ts === +class One { +>One : One +> : ^^^ + + get prop1(): string { return ""; } +>prop1 : string +> : ^^^^^^ +>"" : "" +> : ^^ + + set prop1(s: string | number) { } +>prop1 : string +> : ^^^^^^ +>s : string | number +> : ^^^^^^^^^^^^^^^ + + get prop2(): string { return ""; } +>prop2 : string +> : ^^^^^^ +>"" : "" +> : ^^ + + set prop2(s: string | number) { } +>prop2 : string +> : ^^^^^^ +>s : string | number +> : ^^^^^^^^^^^^^^^ + + prop3: number; +>prop3 : number +> : ^^^^^^ + + get prop4(): string { return ""; } +>prop4 : string +> : ^^^^^^ +>"" : "" +> : ^^ + + set prop4(s: string | number) { } +>prop4 : string +> : ^^^^^^ +>s : string | number +> : ^^^^^^^^^^^^^^^ +} + +class Two { +>Two : Two +> : ^^^ + + get prop1(): string { return ""; } +>prop1 : string +> : ^^^^^^ +>"" : "" +> : ^^ + + set prop1(s: string | number) { } +>prop1 : string +> : ^^^^^^ +>s : string | number +> : ^^^^^^^^^^^^^^^ + + get prop2(): string { return ""; } +>prop2 : string +> : ^^^^^^ +>"" : "" +> : ^^ + + set prop2(s: string) { } +>prop2 : string +> : ^^^^^^ +>s : string +> : ^^^^^^ + + get prop3(): string { return ""; } +>prop3 : string +> : ^^^^^^ +>"" : "" +> : ^^ + + set prop3(s: string | boolean) { } +>prop3 : string +> : ^^^^^^ +>s : string | boolean +> : ^^^^^^^^^^^^^^^^ + + get prop4(): string { return ""; } +>prop4 : string +> : ^^^^^^ +>"" : "" +> : ^^ + + set prop4(s: string | boolean) { } +>prop4 : string +> : ^^^^^^ +>s : string | boolean +> : ^^^^^^^^^^^^^^^^ +} + +declare const u1: One|Two; +>u1 : One | Two +> : ^^^^^^^^^ + +u1.prop1 = 42; +>u1.prop1 = 42 : 42 +> : ^^ +>u1.prop1 : string | number +> : ^^^^^^^^^^^^^^^ +>u1 : One | Two +> : ^^^^^^^^^ +>prop1 : string | number +> : ^^^^^^^^^^^^^^^ +>42 : 42 +> : ^^ + +u1.prop1 = "hello"; +>u1.prop1 = "hello" : "hello" +> : ^^^^^^^ +>u1.prop1 : string | number +> : ^^^^^^^^^^^^^^^ +>u1 : One | Two +> : ^^^^^^^^^ +>prop1 : string | number +> : ^^^^^^^^^^^^^^^ +>"hello" : "hello" +> : ^^^^^^^ + +u1.prop2 = 42; +>u1.prop2 = 42 : 42 +> : ^^ +>u1.prop2 : string | number +> : ^^^^^^^^^^^^^^^ +>u1 : One | Two +> : ^^^^^^^^^ +>prop2 : string | number +> : ^^^^^^^^^^^^^^^ +>42 : 42 +> : ^^ + +u1.prop2 = "hello"; +>u1.prop2 = "hello" : "hello" +> : ^^^^^^^ +>u1.prop2 : string | number +> : ^^^^^^^^^^^^^^^ +>u1 : One | Two +> : ^^^^^^^^^ +>prop2 : string | number +> : ^^^^^^^^^^^^^^^ +>"hello" : "hello" +> : ^^^^^^^ + +u1.prop3 = 42; +>u1.prop3 = 42 : 42 +> : ^^ +>u1.prop3 : string | number | boolean +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>u1 : One | Two +> : ^^^^^^^^^ +>prop3 : string | number | boolean +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>42 : 42 +> : ^^ + +u1.prop3 = "hello"; +>u1.prop3 = "hello" : "hello" +> : ^^^^^^^ +>u1.prop3 : string | number | boolean +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>u1 : One | Two +> : ^^^^^^^^^ +>prop3 : string | number | boolean +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>"hello" : "hello" +> : ^^^^^^^ + +u1.prop3 = true; +>u1.prop3 = true : true +> : ^^^^ +>u1.prop3 : string | number | boolean +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>u1 : One | Two +> : ^^^^^^^^^ +>prop3 : string | number | boolean +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>true : true +> : ^^^^ + +u1.prop4 = 42; +>u1.prop4 = 42 : 42 +> : ^^ +>u1.prop4 : string | number | boolean +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>u1 : One | Two +> : ^^^^^^^^^ +>prop4 : string | number | boolean +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>42 : 42 +> : ^^ + +u1.prop4 = "hello"; +>u1.prop4 = "hello" : "hello" +> : ^^^^^^^ +>u1.prop4 : string | number | boolean +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>u1 : One | Two +> : ^^^^^^^^^ +>prop4 : string | number | boolean +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>"hello" : "hello" +> : ^^^^^^^ + +u1.prop4 = true; +>u1.prop4 = true : true +> : ^^^^ +>u1.prop4 : string | number | boolean +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>u1 : One | Two +> : ^^^^^^^^^ +>prop4 : string | number | boolean +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>true : true +> : ^^^^ + diff --git a/tests/baselines/reference/divergentAccessorsTypes4.errors.txt b/tests/baselines/reference/divergentAccessorsTypes4(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/divergentAccessorsTypes4.errors.txt rename to tests/baselines/reference/divergentAccessorsTypes4(target=es2015).errors.txt diff --git a/tests/baselines/reference/divergentAccessorsTypes4(target=es2015).js b/tests/baselines/reference/divergentAccessorsTypes4(target=es2015).js new file mode 100644 index 0000000000000..c9651a099474d --- /dev/null +++ b/tests/baselines/reference/divergentAccessorsTypes4(target=es2015).js @@ -0,0 +1,55 @@ +//// [tests/cases/compiler/divergentAccessorsTypes4.ts] //// + +//// [divergentAccessorsTypes4.ts] +class One { + get prop1(): string { return ""; } + set prop1(s: string | number) { } + + prop2: number; +} + +class Two { + get prop1(): "hello" { return "hello"; } + set prop1(s: "hello" | number) { } + + get prop2(): string { return ""; } + set prop2(s: string | 42) { } + +} + +declare const i: One & Two; + +// "hello" +i.prop1; +// number | "hello" +i.prop1 = 42; +i.prop1 = "hello"; + +// never +i.prop2; +// 42 +i.prop2 = 42; +i.prop2 = "hello"; // error + + +//// [divergentAccessorsTypes4.js] +class One { + get prop1() { return ""; } + set prop1(s) { } +} +class Two { + get prop1() { return "hello"; } + set prop1(s) { } + get prop2() { return ""; } + set prop2(s) { } +} +// "hello" +i.prop1; +// number | "hello" +i.prop1 = 42; +i.prop1 = "hello"; +// never +i.prop2; +// 42 +i.prop2 = 42; +i.prop2 = "hello"; // error diff --git a/tests/baselines/reference/divergentAccessorsTypes4.symbols b/tests/baselines/reference/divergentAccessorsTypes4(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/divergentAccessorsTypes4.symbols rename to tests/baselines/reference/divergentAccessorsTypes4(target=es2015).symbols diff --git a/tests/baselines/reference/divergentAccessorsTypes4.types b/tests/baselines/reference/divergentAccessorsTypes4(target=es2015).types similarity index 100% rename from tests/baselines/reference/divergentAccessorsTypes4.types rename to tests/baselines/reference/divergentAccessorsTypes4(target=es2015).types diff --git a/tests/baselines/reference/divergentAccessorsTypes4(target=es5).errors.txt b/tests/baselines/reference/divergentAccessorsTypes4(target=es5).errors.txt new file mode 100644 index 0000000000000..bd3bed24204ac --- /dev/null +++ b/tests/baselines/reference/divergentAccessorsTypes4(target=es5).errors.txt @@ -0,0 +1,36 @@ +divergentAccessorsTypes4.ts(29,1): error TS2322: Type '"hello"' is not assignable to type '42'. + + +==== divergentAccessorsTypes4.ts (1 errors) ==== + class One { + get prop1(): string { return ""; } + set prop1(s: string | number) { } + + prop2: number; + } + + class Two { + get prop1(): "hello" { return "hello"; } + set prop1(s: "hello" | number) { } + + get prop2(): string { return ""; } + set prop2(s: string | 42) { } + + } + + declare const i: One & Two; + + // "hello" + i.prop1; + // number | "hello" + i.prop1 = 42; + i.prop1 = "hello"; + + // never + i.prop2; + // 42 + i.prop2 = 42; + i.prop2 = "hello"; // error + ~~~~~~~ +!!! error TS2322: Type '"hello"' is not assignable to type '42'. + \ No newline at end of file diff --git a/tests/baselines/reference/divergentAccessorsTypes4.js b/tests/baselines/reference/divergentAccessorsTypes4(target=es5).js similarity index 100% rename from tests/baselines/reference/divergentAccessorsTypes4.js rename to tests/baselines/reference/divergentAccessorsTypes4(target=es5).js diff --git a/tests/baselines/reference/divergentAccessorsTypes4(target=es5).symbols b/tests/baselines/reference/divergentAccessorsTypes4(target=es5).symbols new file mode 100644 index 0000000000000..cb645cea8a6e5 --- /dev/null +++ b/tests/baselines/reference/divergentAccessorsTypes4(target=es5).symbols @@ -0,0 +1,75 @@ +//// [tests/cases/compiler/divergentAccessorsTypes4.ts] //// + +=== divergentAccessorsTypes4.ts === +class One { +>One : Symbol(One, Decl(divergentAccessorsTypes4.ts, 0, 0)) + + get prop1(): string { return ""; } +>prop1 : Symbol(One.prop1, Decl(divergentAccessorsTypes4.ts, 0, 11), Decl(divergentAccessorsTypes4.ts, 1, 36)) + + set prop1(s: string | number) { } +>prop1 : Symbol(One.prop1, Decl(divergentAccessorsTypes4.ts, 0, 11), Decl(divergentAccessorsTypes4.ts, 1, 36)) +>s : Symbol(s, Decl(divergentAccessorsTypes4.ts, 2, 12)) + + prop2: number; +>prop2 : Symbol(One.prop2, Decl(divergentAccessorsTypes4.ts, 2, 35)) +} + +class Two { +>Two : Symbol(Two, Decl(divergentAccessorsTypes4.ts, 5, 1)) + + get prop1(): "hello" { return "hello"; } +>prop1 : Symbol(Two.prop1, Decl(divergentAccessorsTypes4.ts, 7, 11), Decl(divergentAccessorsTypes4.ts, 8, 42)) + + set prop1(s: "hello" | number) { } +>prop1 : Symbol(Two.prop1, Decl(divergentAccessorsTypes4.ts, 7, 11), Decl(divergentAccessorsTypes4.ts, 8, 42)) +>s : Symbol(s, Decl(divergentAccessorsTypes4.ts, 9, 12)) + + get prop2(): string { return ""; } +>prop2 : Symbol(Two.prop2, Decl(divergentAccessorsTypes4.ts, 9, 36), Decl(divergentAccessorsTypes4.ts, 11, 36)) + + set prop2(s: string | 42) { } +>prop2 : Symbol(Two.prop2, Decl(divergentAccessorsTypes4.ts, 9, 36), Decl(divergentAccessorsTypes4.ts, 11, 36)) +>s : Symbol(s, Decl(divergentAccessorsTypes4.ts, 12, 12)) + +} + +declare const i: One & Two; +>i : Symbol(i, Decl(divergentAccessorsTypes4.ts, 16, 13)) +>One : Symbol(One, Decl(divergentAccessorsTypes4.ts, 0, 0)) +>Two : Symbol(Two, Decl(divergentAccessorsTypes4.ts, 5, 1)) + +// "hello" +i.prop1; +>i.prop1 : Symbol(prop1, Decl(divergentAccessorsTypes4.ts, 0, 11), Decl(divergentAccessorsTypes4.ts, 1, 36), Decl(divergentAccessorsTypes4.ts, 7, 11), Decl(divergentAccessorsTypes4.ts, 8, 42)) +>i : Symbol(i, Decl(divergentAccessorsTypes4.ts, 16, 13)) +>prop1 : Symbol(prop1, Decl(divergentAccessorsTypes4.ts, 0, 11), Decl(divergentAccessorsTypes4.ts, 1, 36), Decl(divergentAccessorsTypes4.ts, 7, 11), Decl(divergentAccessorsTypes4.ts, 8, 42)) + +// number | "hello" +i.prop1 = 42; +>i.prop1 : Symbol(prop1, Decl(divergentAccessorsTypes4.ts, 0, 11), Decl(divergentAccessorsTypes4.ts, 1, 36), Decl(divergentAccessorsTypes4.ts, 7, 11), Decl(divergentAccessorsTypes4.ts, 8, 42)) +>i : Symbol(i, Decl(divergentAccessorsTypes4.ts, 16, 13)) +>prop1 : Symbol(prop1, Decl(divergentAccessorsTypes4.ts, 0, 11), Decl(divergentAccessorsTypes4.ts, 1, 36), Decl(divergentAccessorsTypes4.ts, 7, 11), Decl(divergentAccessorsTypes4.ts, 8, 42)) + +i.prop1 = "hello"; +>i.prop1 : Symbol(prop1, Decl(divergentAccessorsTypes4.ts, 0, 11), Decl(divergentAccessorsTypes4.ts, 1, 36), Decl(divergentAccessorsTypes4.ts, 7, 11), Decl(divergentAccessorsTypes4.ts, 8, 42)) +>i : Symbol(i, Decl(divergentAccessorsTypes4.ts, 16, 13)) +>prop1 : Symbol(prop1, Decl(divergentAccessorsTypes4.ts, 0, 11), Decl(divergentAccessorsTypes4.ts, 1, 36), Decl(divergentAccessorsTypes4.ts, 7, 11), Decl(divergentAccessorsTypes4.ts, 8, 42)) + +// never +i.prop2; +>i.prop2 : Symbol(prop2, Decl(divergentAccessorsTypes4.ts, 2, 35), Decl(divergentAccessorsTypes4.ts, 9, 36), Decl(divergentAccessorsTypes4.ts, 11, 36)) +>i : Symbol(i, Decl(divergentAccessorsTypes4.ts, 16, 13)) +>prop2 : Symbol(prop2, Decl(divergentAccessorsTypes4.ts, 2, 35), Decl(divergentAccessorsTypes4.ts, 9, 36), Decl(divergentAccessorsTypes4.ts, 11, 36)) + +// 42 +i.prop2 = 42; +>i.prop2 : Symbol(prop2, Decl(divergentAccessorsTypes4.ts, 2, 35), Decl(divergentAccessorsTypes4.ts, 9, 36), Decl(divergentAccessorsTypes4.ts, 11, 36)) +>i : Symbol(i, Decl(divergentAccessorsTypes4.ts, 16, 13)) +>prop2 : Symbol(prop2, Decl(divergentAccessorsTypes4.ts, 2, 35), Decl(divergentAccessorsTypes4.ts, 9, 36), Decl(divergentAccessorsTypes4.ts, 11, 36)) + +i.prop2 = "hello"; // error +>i.prop2 : Symbol(prop2, Decl(divergentAccessorsTypes4.ts, 2, 35), Decl(divergentAccessorsTypes4.ts, 9, 36), Decl(divergentAccessorsTypes4.ts, 11, 36)) +>i : Symbol(i, Decl(divergentAccessorsTypes4.ts, 16, 13)) +>prop2 : Symbol(prop2, Decl(divergentAccessorsTypes4.ts, 2, 35), Decl(divergentAccessorsTypes4.ts, 9, 36), Decl(divergentAccessorsTypes4.ts, 11, 36)) + diff --git a/tests/baselines/reference/divergentAccessorsTypes4(target=es5).types b/tests/baselines/reference/divergentAccessorsTypes4(target=es5).types new file mode 100644 index 0000000000000..3b2d673d9f158 --- /dev/null +++ b/tests/baselines/reference/divergentAccessorsTypes4(target=es5).types @@ -0,0 +1,126 @@ +//// [tests/cases/compiler/divergentAccessorsTypes4.ts] //// + +=== divergentAccessorsTypes4.ts === +class One { +>One : One +> : ^^^ + + get prop1(): string { return ""; } +>prop1 : string +> : ^^^^^^ +>"" : "" +> : ^^ + + set prop1(s: string | number) { } +>prop1 : string +> : ^^^^^^ +>s : string | number +> : ^^^^^^^^^^^^^^^ + + prop2: number; +>prop2 : number +> : ^^^^^^ +} + +class Two { +>Two : Two +> : ^^^ + + get prop1(): "hello" { return "hello"; } +>prop1 : "hello" +> : ^^^^^^^ +>"hello" : "hello" +> : ^^^^^^^ + + set prop1(s: "hello" | number) { } +>prop1 : "hello" +> : ^^^^^^^ +>s : number | "hello" +> : ^^^^^^^^^^^^^^^^ + + get prop2(): string { return ""; } +>prop2 : string +> : ^^^^^^ +>"" : "" +> : ^^ + + set prop2(s: string | 42) { } +>prop2 : string +> : ^^^^^^ +>s : string | 42 +> : ^^^^^^^^^^^ + +} + +declare const i: One & Two; +>i : One & Two +> : ^^^^^^^^^ + +// "hello" +i.prop1; +>i.prop1 : "hello" +> : ^^^^^^^ +>i : One & Two +> : ^^^^^^^^^ +>prop1 : "hello" +> : ^^^^^^^ + +// number | "hello" +i.prop1 = 42; +>i.prop1 = 42 : 42 +> : ^^ +>i.prop1 : number | "hello" +> : ^^^^^^^^^^^^^^^^ +>i : One & Two +> : ^^^^^^^^^ +>prop1 : number | "hello" +> : ^^^^^^^^^^^^^^^^ +>42 : 42 +> : ^^ + +i.prop1 = "hello"; +>i.prop1 = "hello" : "hello" +> : ^^^^^^^ +>i.prop1 : number | "hello" +> : ^^^^^^^^^^^^^^^^ +>i : One & Two +> : ^^^^^^^^^ +>prop1 : number | "hello" +> : ^^^^^^^^^^^^^^^^ +>"hello" : "hello" +> : ^^^^^^^ + +// never +i.prop2; +>i.prop2 : never +> : ^^^^^ +>i : One & Two +> : ^^^^^^^^^ +>prop2 : never +> : ^^^^^ + +// 42 +i.prop2 = 42; +>i.prop2 = 42 : 42 +> : ^^ +>i.prop2 : 42 +> : ^^ +>i : One & Two +> : ^^^^^^^^^ +>prop2 : 42 +> : ^^ +>42 : 42 +> : ^^ + +i.prop2 = "hello"; // error +>i.prop2 = "hello" : "hello" +> : ^^^^^^^ +>i.prop2 : 42 +> : ^^ +>i : One & Two +> : ^^^^^^^^^ +>prop2 : 42 +> : ^^ +>"hello" : "hello" +> : ^^^^^^^ + diff --git a/tests/baselines/reference/divergentAccessorsTypes5.errors.txt b/tests/baselines/reference/divergentAccessorsTypes5(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/divergentAccessorsTypes5.errors.txt rename to tests/baselines/reference/divergentAccessorsTypes5(target=es2015).errors.txt diff --git a/tests/baselines/reference/divergentAccessorsTypes5(target=es2015).js b/tests/baselines/reference/divergentAccessorsTypes5(target=es2015).js new file mode 100644 index 0000000000000..fe21f5f1bb962 --- /dev/null +++ b/tests/baselines/reference/divergentAccessorsTypes5(target=es2015).js @@ -0,0 +1,66 @@ +//// [tests/cases/compiler/divergentAccessorsTypes5.ts] //// + +//// [divergentAccessorsTypes5.ts] +// Not really different from divergentAccessorsTypes4.ts, +// but goes through the deferred type code + +class One { + get prop1(): string { return ""; } + set prop1(s: string | number) { } + + prop2: number; +} + +class Two { + get prop1(): "hello" { return "hello"; } + set prop1(s: "hello" | number) { } + + get prop2(): string { return ""; } + set prop2(s: string | 42) { } + +} + +class Three { + get prop1(): "hello" { return "hello"; } + set prop1(s: "hello" | boolean) { } + + get prop2(): string { return ""; } + set prop2(s: string | number | boolean) { } +} + +declare const i: One & Two & Three; + +// "hello" +i.prop1 = 42; // error +i.prop1 = "hello"; + +// 42 +i.prop2 = 42; +i.prop2 = "hello"; // error + + +//// [divergentAccessorsTypes5.js] +// Not really different from divergentAccessorsTypes4.ts, +// but goes through the deferred type code +class One { + get prop1() { return ""; } + set prop1(s) { } +} +class Two { + get prop1() { return "hello"; } + set prop1(s) { } + get prop2() { return ""; } + set prop2(s) { } +} +class Three { + get prop1() { return "hello"; } + set prop1(s) { } + get prop2() { return ""; } + set prop2(s) { } +} +// "hello" +i.prop1 = 42; // error +i.prop1 = "hello"; +// 42 +i.prop2 = 42; +i.prop2 = "hello"; // error diff --git a/tests/baselines/reference/divergentAccessorsTypes5.symbols b/tests/baselines/reference/divergentAccessorsTypes5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/divergentAccessorsTypes5.symbols rename to tests/baselines/reference/divergentAccessorsTypes5(target=es2015).symbols diff --git a/tests/baselines/reference/divergentAccessorsTypes5.types b/tests/baselines/reference/divergentAccessorsTypes5(target=es2015).types similarity index 100% rename from tests/baselines/reference/divergentAccessorsTypes5.types rename to tests/baselines/reference/divergentAccessorsTypes5(target=es2015).types diff --git a/tests/baselines/reference/divergentAccessorsTypes5(target=es5).errors.txt b/tests/baselines/reference/divergentAccessorsTypes5(target=es5).errors.txt new file mode 100644 index 0000000000000..00b77b09e9cd4 --- /dev/null +++ b/tests/baselines/reference/divergentAccessorsTypes5(target=es5).errors.txt @@ -0,0 +1,46 @@ +divergentAccessorsTypes5.ts(31,1): error TS2322: Type '42' is not assignable to type '"hello"'. +divergentAccessorsTypes5.ts(36,1): error TS2322: Type '"hello"' is not assignable to type '42'. + + +==== divergentAccessorsTypes5.ts (2 errors) ==== + // Not really different from divergentAccessorsTypes4.ts, + // but goes through the deferred type code + + class One { + get prop1(): string { return ""; } + set prop1(s: string | number) { } + + prop2: number; + } + + class Two { + get prop1(): "hello" { return "hello"; } + set prop1(s: "hello" | number) { } + + get prop2(): string { return ""; } + set prop2(s: string | 42) { } + + } + + class Three { + get prop1(): "hello" { return "hello"; } + set prop1(s: "hello" | boolean) { } + + get prop2(): string { return ""; } + set prop2(s: string | number | boolean) { } + } + + declare const i: One & Two & Three; + + // "hello" + i.prop1 = 42; // error + ~~~~~~~ +!!! error TS2322: Type '42' is not assignable to type '"hello"'. + i.prop1 = "hello"; + + // 42 + i.prop2 = 42; + i.prop2 = "hello"; // error + ~~~~~~~ +!!! error TS2322: Type '"hello"' is not assignable to type '42'. + \ No newline at end of file diff --git a/tests/baselines/reference/divergentAccessorsTypes5.js b/tests/baselines/reference/divergentAccessorsTypes5(target=es5).js similarity index 100% rename from tests/baselines/reference/divergentAccessorsTypes5.js rename to tests/baselines/reference/divergentAccessorsTypes5(target=es5).js diff --git a/tests/baselines/reference/divergentAccessorsTypes5(target=es5).symbols b/tests/baselines/reference/divergentAccessorsTypes5(target=es5).symbols new file mode 100644 index 0000000000000..b1df2dfb25939 --- /dev/null +++ b/tests/baselines/reference/divergentAccessorsTypes5(target=es5).symbols @@ -0,0 +1,85 @@ +//// [tests/cases/compiler/divergentAccessorsTypes5.ts] //// + +=== divergentAccessorsTypes5.ts === +// Not really different from divergentAccessorsTypes4.ts, +// but goes through the deferred type code + +class One { +>One : Symbol(One, Decl(divergentAccessorsTypes5.ts, 0, 0)) + + get prop1(): string { return ""; } +>prop1 : Symbol(One.prop1, Decl(divergentAccessorsTypes5.ts, 3, 11), Decl(divergentAccessorsTypes5.ts, 4, 36)) + + set prop1(s: string | number) { } +>prop1 : Symbol(One.prop1, Decl(divergentAccessorsTypes5.ts, 3, 11), Decl(divergentAccessorsTypes5.ts, 4, 36)) +>s : Symbol(s, Decl(divergentAccessorsTypes5.ts, 5, 12)) + + prop2: number; +>prop2 : Symbol(One.prop2, Decl(divergentAccessorsTypes5.ts, 5, 35)) +} + +class Two { +>Two : Symbol(Two, Decl(divergentAccessorsTypes5.ts, 8, 1)) + + get prop1(): "hello" { return "hello"; } +>prop1 : Symbol(Two.prop1, Decl(divergentAccessorsTypes5.ts, 10, 11), Decl(divergentAccessorsTypes5.ts, 11, 42)) + + set prop1(s: "hello" | number) { } +>prop1 : Symbol(Two.prop1, Decl(divergentAccessorsTypes5.ts, 10, 11), Decl(divergentAccessorsTypes5.ts, 11, 42)) +>s : Symbol(s, Decl(divergentAccessorsTypes5.ts, 12, 12)) + + get prop2(): string { return ""; } +>prop2 : Symbol(Two.prop2, Decl(divergentAccessorsTypes5.ts, 12, 36), Decl(divergentAccessorsTypes5.ts, 14, 36)) + + set prop2(s: string | 42) { } +>prop2 : Symbol(Two.prop2, Decl(divergentAccessorsTypes5.ts, 12, 36), Decl(divergentAccessorsTypes5.ts, 14, 36)) +>s : Symbol(s, Decl(divergentAccessorsTypes5.ts, 15, 12)) + +} + +class Three { +>Three : Symbol(Three, Decl(divergentAccessorsTypes5.ts, 17, 1)) + + get prop1(): "hello" { return "hello"; } +>prop1 : Symbol(Three.prop1, Decl(divergentAccessorsTypes5.ts, 19, 13), Decl(divergentAccessorsTypes5.ts, 20, 42)) + + set prop1(s: "hello" | boolean) { } +>prop1 : Symbol(Three.prop1, Decl(divergentAccessorsTypes5.ts, 19, 13), Decl(divergentAccessorsTypes5.ts, 20, 42)) +>s : Symbol(s, Decl(divergentAccessorsTypes5.ts, 21, 12)) + + get prop2(): string { return ""; } +>prop2 : Symbol(Three.prop2, Decl(divergentAccessorsTypes5.ts, 21, 37), Decl(divergentAccessorsTypes5.ts, 23, 36)) + + set prop2(s: string | number | boolean) { } +>prop2 : Symbol(Three.prop2, Decl(divergentAccessorsTypes5.ts, 21, 37), Decl(divergentAccessorsTypes5.ts, 23, 36)) +>s : Symbol(s, Decl(divergentAccessorsTypes5.ts, 24, 12)) +} + +declare const i: One & Two & Three; +>i : Symbol(i, Decl(divergentAccessorsTypes5.ts, 27, 13)) +>One : Symbol(One, Decl(divergentAccessorsTypes5.ts, 0, 0)) +>Two : Symbol(Two, Decl(divergentAccessorsTypes5.ts, 8, 1)) +>Three : Symbol(Three, Decl(divergentAccessorsTypes5.ts, 17, 1)) + +// "hello" +i.prop1 = 42; // error +>i.prop1 : Symbol(prop1, Decl(divergentAccessorsTypes5.ts, 3, 11), Decl(divergentAccessorsTypes5.ts, 4, 36), Decl(divergentAccessorsTypes5.ts, 10, 11), Decl(divergentAccessorsTypes5.ts, 11, 42), Decl(divergentAccessorsTypes5.ts, 19, 13) ... and 1 more) +>i : Symbol(i, Decl(divergentAccessorsTypes5.ts, 27, 13)) +>prop1 : Symbol(prop1, Decl(divergentAccessorsTypes5.ts, 3, 11), Decl(divergentAccessorsTypes5.ts, 4, 36), Decl(divergentAccessorsTypes5.ts, 10, 11), Decl(divergentAccessorsTypes5.ts, 11, 42), Decl(divergentAccessorsTypes5.ts, 19, 13) ... and 1 more) + +i.prop1 = "hello"; +>i.prop1 : Symbol(prop1, Decl(divergentAccessorsTypes5.ts, 3, 11), Decl(divergentAccessorsTypes5.ts, 4, 36), Decl(divergentAccessorsTypes5.ts, 10, 11), Decl(divergentAccessorsTypes5.ts, 11, 42), Decl(divergentAccessorsTypes5.ts, 19, 13) ... and 1 more) +>i : Symbol(i, Decl(divergentAccessorsTypes5.ts, 27, 13)) +>prop1 : Symbol(prop1, Decl(divergentAccessorsTypes5.ts, 3, 11), Decl(divergentAccessorsTypes5.ts, 4, 36), Decl(divergentAccessorsTypes5.ts, 10, 11), Decl(divergentAccessorsTypes5.ts, 11, 42), Decl(divergentAccessorsTypes5.ts, 19, 13) ... and 1 more) + +// 42 +i.prop2 = 42; +>i.prop2 : Symbol(prop2, Decl(divergentAccessorsTypes5.ts, 5, 35), Decl(divergentAccessorsTypes5.ts, 12, 36), Decl(divergentAccessorsTypes5.ts, 14, 36), Decl(divergentAccessorsTypes5.ts, 21, 37), Decl(divergentAccessorsTypes5.ts, 23, 36)) +>i : Symbol(i, Decl(divergentAccessorsTypes5.ts, 27, 13)) +>prop2 : Symbol(prop2, Decl(divergentAccessorsTypes5.ts, 5, 35), Decl(divergentAccessorsTypes5.ts, 12, 36), Decl(divergentAccessorsTypes5.ts, 14, 36), Decl(divergentAccessorsTypes5.ts, 21, 37), Decl(divergentAccessorsTypes5.ts, 23, 36)) + +i.prop2 = "hello"; // error +>i.prop2 : Symbol(prop2, Decl(divergentAccessorsTypes5.ts, 5, 35), Decl(divergentAccessorsTypes5.ts, 12, 36), Decl(divergentAccessorsTypes5.ts, 14, 36), Decl(divergentAccessorsTypes5.ts, 21, 37), Decl(divergentAccessorsTypes5.ts, 23, 36)) +>i : Symbol(i, Decl(divergentAccessorsTypes5.ts, 27, 13)) +>prop2 : Symbol(prop2, Decl(divergentAccessorsTypes5.ts, 5, 35), Decl(divergentAccessorsTypes5.ts, 12, 36), Decl(divergentAccessorsTypes5.ts, 14, 36), Decl(divergentAccessorsTypes5.ts, 21, 37), Decl(divergentAccessorsTypes5.ts, 23, 36)) + diff --git a/tests/baselines/reference/divergentAccessorsTypes5(target=es5).types b/tests/baselines/reference/divergentAccessorsTypes5(target=es5).types new file mode 100644 index 0000000000000..b3b386c49a8ed --- /dev/null +++ b/tests/baselines/reference/divergentAccessorsTypes5(target=es5).types @@ -0,0 +1,140 @@ +//// [tests/cases/compiler/divergentAccessorsTypes5.ts] //// + +=== divergentAccessorsTypes5.ts === +// Not really different from divergentAccessorsTypes4.ts, +// but goes through the deferred type code + +class One { +>One : One +> : ^^^ + + get prop1(): string { return ""; } +>prop1 : string +> : ^^^^^^ +>"" : "" +> : ^^ + + set prop1(s: string | number) { } +>prop1 : string +> : ^^^^^^ +>s : string | number +> : ^^^^^^^^^^^^^^^ + + prop2: number; +>prop2 : number +> : ^^^^^^ +} + +class Two { +>Two : Two +> : ^^^ + + get prop1(): "hello" { return "hello"; } +>prop1 : "hello" +> : ^^^^^^^ +>"hello" : "hello" +> : ^^^^^^^ + + set prop1(s: "hello" | number) { } +>prop1 : "hello" +> : ^^^^^^^ +>s : number | "hello" +> : ^^^^^^^^^^^^^^^^ + + get prop2(): string { return ""; } +>prop2 : string +> : ^^^^^^ +>"" : "" +> : ^^ + + set prop2(s: string | 42) { } +>prop2 : string +> : ^^^^^^ +>s : string | 42 +> : ^^^^^^^^^^^ + +} + +class Three { +>Three : Three +> : ^^^^^ + + get prop1(): "hello" { return "hello"; } +>prop1 : "hello" +> : ^^^^^^^ +>"hello" : "hello" +> : ^^^^^^^ + + set prop1(s: "hello" | boolean) { } +>prop1 : "hello" +> : ^^^^^^^ +>s : boolean | "hello" +> : ^^^^^^^^^^^^^^^^^ + + get prop2(): string { return ""; } +>prop2 : string +> : ^^^^^^ +>"" : "" +> : ^^ + + set prop2(s: string | number | boolean) { } +>prop2 : string +> : ^^^^^^ +>s : string | number | boolean +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +} + +declare const i: One & Two & Three; +>i : One & Two & Three +> : ^^^^^^^^^^^^^^^^^ + +// "hello" +i.prop1 = 42; // error +>i.prop1 = 42 : 42 +> : ^^ +>i.prop1 : "hello" +> : ^^^^^^^ +>i : One & Two & Three +> : ^^^^^^^^^^^^^^^^^ +>prop1 : "hello" +> : ^^^^^^^ +>42 : 42 +> : ^^ + +i.prop1 = "hello"; +>i.prop1 = "hello" : "hello" +> : ^^^^^^^ +>i.prop1 : "hello" +> : ^^^^^^^ +>i : One & Two & Three +> : ^^^^^^^^^^^^^^^^^ +>prop1 : "hello" +> : ^^^^^^^ +>"hello" : "hello" +> : ^^^^^^^ + +// 42 +i.prop2 = 42; +>i.prop2 = 42 : 42 +> : ^^ +>i.prop2 : 42 +> : ^^ +>i : One & Two & Three +> : ^^^^^^^^^^^^^^^^^ +>prop2 : 42 +> : ^^ +>42 : 42 +> : ^^ + +i.prop2 = "hello"; // error +>i.prop2 = "hello" : "hello" +> : ^^^^^^^ +>i.prop2 : 42 +> : ^^ +>i : One & Two & Three +> : ^^^^^^^^^^^^^^^^^ +>prop2 : 42 +> : ^^ +>"hello" : "hello" +> : ^^^^^^^ + diff --git a/tests/baselines/reference/doNotElaborateAssignabilityToTypeParameters.errors.txt b/tests/baselines/reference/doNotElaborateAssignabilityToTypeParameters(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/doNotElaborateAssignabilityToTypeParameters.errors.txt rename to tests/baselines/reference/doNotElaborateAssignabilityToTypeParameters(target=es2015).errors.txt diff --git a/tests/baselines/reference/doNotElaborateAssignabilityToTypeParameters(target=es2015).js b/tests/baselines/reference/doNotElaborateAssignabilityToTypeParameters(target=es2015).js new file mode 100644 index 0000000000000..61d38be6a4ef2 --- /dev/null +++ b/tests/baselines/reference/doNotElaborateAssignabilityToTypeParameters(target=es2015).js @@ -0,0 +1,32 @@ +//// [tests/cases/compiler/doNotElaborateAssignabilityToTypeParameters.ts] //// + +//// [doNotElaborateAssignabilityToTypeParameters.ts] +async function foo(x: T): Promise { + let yaddable = await getXOrYadda(x); + return yaddable; +} + +interface Yadda { + stuff: string, + things: string, +} + +declare function getXOrYadda(x: T): T | Yadda; + + +//// [doNotElaborateAssignabilityToTypeParameters.js] +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +function foo(x) { + return __awaiter(this, void 0, void 0, function* () { + let yaddable = yield getXOrYadda(x); + return yaddable; + }); +} diff --git a/tests/baselines/reference/doNotElaborateAssignabilityToTypeParameters.symbols b/tests/baselines/reference/doNotElaborateAssignabilityToTypeParameters(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/doNotElaborateAssignabilityToTypeParameters.symbols rename to tests/baselines/reference/doNotElaborateAssignabilityToTypeParameters(target=es2015).symbols diff --git a/tests/baselines/reference/doNotElaborateAssignabilityToTypeParameters.types b/tests/baselines/reference/doNotElaborateAssignabilityToTypeParameters(target=es2015).types similarity index 100% rename from tests/baselines/reference/doNotElaborateAssignabilityToTypeParameters.types rename to tests/baselines/reference/doNotElaborateAssignabilityToTypeParameters(target=es2015).types diff --git a/tests/baselines/reference/doNotElaborateAssignabilityToTypeParameters(target=es5).errors.txt b/tests/baselines/reference/doNotElaborateAssignabilityToTypeParameters(target=es5).errors.txt new file mode 100644 index 0000000000000..6974d3cd5bdd2 --- /dev/null +++ b/tests/baselines/reference/doNotElaborateAssignabilityToTypeParameters(target=es5).errors.txt @@ -0,0 +1,20 @@ +doNotElaborateAssignabilityToTypeParameters.ts(3,3): error TS2322: Type 'Yadda | Awaited' is not assignable to type 'T'. + 'T' could be instantiated with an arbitrary type which could be unrelated to 'Yadda | Awaited'. + + +==== doNotElaborateAssignabilityToTypeParameters.ts (1 errors) ==== + async function foo(x: T): Promise { + let yaddable = await getXOrYadda(x); + return yaddable; + ~~~~~~ +!!! error TS2322: Type 'Yadda | Awaited' is not assignable to type 'T'. +!!! error TS2322: 'T' could be instantiated with an arbitrary type which could be unrelated to 'Yadda | Awaited'. + } + + interface Yadda { + stuff: string, + things: string, + } + + declare function getXOrYadda(x: T): T | Yadda; + \ No newline at end of file diff --git a/tests/baselines/reference/doNotElaborateAssignabilityToTypeParameters.js b/tests/baselines/reference/doNotElaborateAssignabilityToTypeParameters(target=es5).js similarity index 100% rename from tests/baselines/reference/doNotElaborateAssignabilityToTypeParameters.js rename to tests/baselines/reference/doNotElaborateAssignabilityToTypeParameters(target=es5).js diff --git a/tests/baselines/reference/doNotElaborateAssignabilityToTypeParameters(target=es5).symbols b/tests/baselines/reference/doNotElaborateAssignabilityToTypeParameters(target=es5).symbols new file mode 100644 index 0000000000000..d0357976ba3d3 --- /dev/null +++ b/tests/baselines/reference/doNotElaborateAssignabilityToTypeParameters(target=es5).symbols @@ -0,0 +1,38 @@ +//// [tests/cases/compiler/doNotElaborateAssignabilityToTypeParameters.ts] //// + +=== doNotElaborateAssignabilityToTypeParameters.ts === +async function foo(x: T): Promise { +>foo : Symbol(foo, Decl(doNotElaborateAssignabilityToTypeParameters.ts, 0, 0)) +>T : Symbol(T, Decl(doNotElaborateAssignabilityToTypeParameters.ts, 0, 19)) +>x : Symbol(x, Decl(doNotElaborateAssignabilityToTypeParameters.ts, 0, 22)) +>T : Symbol(T, Decl(doNotElaborateAssignabilityToTypeParameters.ts, 0, 19)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>T : Symbol(T, Decl(doNotElaborateAssignabilityToTypeParameters.ts, 0, 19)) + + let yaddable = await getXOrYadda(x); +>yaddable : Symbol(yaddable, Decl(doNotElaborateAssignabilityToTypeParameters.ts, 1, 5)) +>getXOrYadda : Symbol(getXOrYadda, Decl(doNotElaborateAssignabilityToTypeParameters.ts, 8, 1)) +>x : Symbol(x, Decl(doNotElaborateAssignabilityToTypeParameters.ts, 0, 22)) + + return yaddable; +>yaddable : Symbol(yaddable, Decl(doNotElaborateAssignabilityToTypeParameters.ts, 1, 5)) +} + +interface Yadda { +>Yadda : Symbol(Yadda, Decl(doNotElaborateAssignabilityToTypeParameters.ts, 3, 1)) + + stuff: string, +>stuff : Symbol(Yadda.stuff, Decl(doNotElaborateAssignabilityToTypeParameters.ts, 5, 17)) + + things: string, +>things : Symbol(Yadda.things, Decl(doNotElaborateAssignabilityToTypeParameters.ts, 6, 16)) +} + +declare function getXOrYadda(x: T): T | Yadda; +>getXOrYadda : Symbol(getXOrYadda, Decl(doNotElaborateAssignabilityToTypeParameters.ts, 8, 1)) +>T : Symbol(T, Decl(doNotElaborateAssignabilityToTypeParameters.ts, 10, 29)) +>x : Symbol(x, Decl(doNotElaborateAssignabilityToTypeParameters.ts, 10, 32)) +>T : Symbol(T, Decl(doNotElaborateAssignabilityToTypeParameters.ts, 10, 29)) +>T : Symbol(T, Decl(doNotElaborateAssignabilityToTypeParameters.ts, 10, 29)) +>Yadda : Symbol(Yadda, Decl(doNotElaborateAssignabilityToTypeParameters.ts, 3, 1)) + diff --git a/tests/baselines/reference/doNotElaborateAssignabilityToTypeParameters(target=es5).types b/tests/baselines/reference/doNotElaborateAssignabilityToTypeParameters(target=es5).types new file mode 100644 index 0000000000000..4a5a6a9b6a47c --- /dev/null +++ b/tests/baselines/reference/doNotElaborateAssignabilityToTypeParameters(target=es5).types @@ -0,0 +1,42 @@ +//// [tests/cases/compiler/doNotElaborateAssignabilityToTypeParameters.ts] //// + +=== doNotElaborateAssignabilityToTypeParameters.ts === +async function foo(x: T): Promise { +>foo : (x: T) => Promise +> : ^ ^^ ^^ ^^^^^ +>x : T +> : ^ + + let yaddable = await getXOrYadda(x); +>yaddable : Yadda | Awaited +> : ^^^^^^^^^^^^^^^^^^ +>await getXOrYadda(x) : Yadda | Awaited +> : ^^^^^^^^^^^^^^^^^^ +>getXOrYadda(x) : T | Yadda +> : ^^^^^^^^^ +>getXOrYadda : (x: T_1) => T_1 | Yadda +> : ^^^^^^ ^^ ^^^^^ +>x : T +> : ^ + + return yaddable; +>yaddable : Yadda | Awaited +> : ^^^^^^^^^^^^^^^^^^ +} + +interface Yadda { + stuff: string, +>stuff : string +> : ^^^^^^ + + things: string, +>things : string +> : ^^^^^^ +} + +declare function getXOrYadda(x: T): T | Yadda; +>getXOrYadda : (x: T) => T | Yadda +> : ^ ^^ ^^ ^^^^^ +>x : T +> : ^ + diff --git a/tests/baselines/reference/downlevelLetConst12.errors.txt b/tests/baselines/reference/downlevelLetConst12(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/downlevelLetConst12.errors.txt rename to tests/baselines/reference/downlevelLetConst12(target=es2015).errors.txt diff --git a/tests/baselines/reference/downlevelLetConst12(target=es2015).js b/tests/baselines/reference/downlevelLetConst12(target=es2015).js new file mode 100644 index 0000000000000..8ee5d7f9baa6e --- /dev/null +++ b/tests/baselines/reference/downlevelLetConst12(target=es2015).js @@ -0,0 +1,23 @@ +//// [tests/cases/compiler/downlevelLetConst12.ts] //// + +//// [downlevelLetConst12.ts] +'use strict' +// top level let\const should not be renamed +let foo; +const bar = 1; + +let [baz] = []; +let {a: baz2} = { a: 1 }; + +const [baz3] = [] +const {a: baz4} = { a: 1 }; + +//// [downlevelLetConst12.js] +'use strict'; +// top level let\const should not be renamed +let foo; +const bar = 1; +let [baz] = []; +let { a: baz2 } = { a: 1 }; +const [baz3] = []; +const { a: baz4 } = { a: 1 }; diff --git a/tests/baselines/reference/downlevelLetConst12.symbols b/tests/baselines/reference/downlevelLetConst12(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/downlevelLetConst12.symbols rename to tests/baselines/reference/downlevelLetConst12(target=es2015).symbols diff --git a/tests/baselines/reference/downlevelLetConst12.types b/tests/baselines/reference/downlevelLetConst12(target=es2015).types similarity index 100% rename from tests/baselines/reference/downlevelLetConst12.types rename to tests/baselines/reference/downlevelLetConst12(target=es2015).types diff --git a/tests/baselines/reference/downlevelLetConst12(target=es5).errors.txt b/tests/baselines/reference/downlevelLetConst12(target=es5).errors.txt new file mode 100644 index 0000000000000..f19a853934514 --- /dev/null +++ b/tests/baselines/reference/downlevelLetConst12(target=es5).errors.txt @@ -0,0 +1,19 @@ +downlevelLetConst12.ts(6,6): error TS2493: Tuple type '[]' of length '0' has no element at index '0'. +downlevelLetConst12.ts(9,8): error TS2493: Tuple type '[]' of length '0' has no element at index '0'. + + +==== downlevelLetConst12.ts (2 errors) ==== + 'use strict' + // top level let\const should not be renamed + let foo; + const bar = 1; + + let [baz] = []; + ~~~ +!!! error TS2493: Tuple type '[]' of length '0' has no element at index '0'. + let {a: baz2} = { a: 1 }; + + const [baz3] = [] + ~~~~ +!!! error TS2493: Tuple type '[]' of length '0' has no element at index '0'. + const {a: baz4} = { a: 1 }; \ No newline at end of file diff --git a/tests/baselines/reference/downlevelLetConst12.js b/tests/baselines/reference/downlevelLetConst12(target=es5).js similarity index 100% rename from tests/baselines/reference/downlevelLetConst12.js rename to tests/baselines/reference/downlevelLetConst12(target=es5).js diff --git a/tests/baselines/reference/downlevelLetConst12(target=es5).symbols b/tests/baselines/reference/downlevelLetConst12(target=es5).symbols new file mode 100644 index 0000000000000..385508d460872 --- /dev/null +++ b/tests/baselines/reference/downlevelLetConst12(target=es5).symbols @@ -0,0 +1,27 @@ +//// [tests/cases/compiler/downlevelLetConst12.ts] //// + +=== downlevelLetConst12.ts === +'use strict' +// top level let\const should not be renamed +let foo; +>foo : Symbol(foo, Decl(downlevelLetConst12.ts, 2, 3)) + +const bar = 1; +>bar : Symbol(bar, Decl(downlevelLetConst12.ts, 3, 5)) + +let [baz] = []; +>baz : Symbol(baz, Decl(downlevelLetConst12.ts, 5, 5)) + +let {a: baz2} = { a: 1 }; +>a : Symbol(a, Decl(downlevelLetConst12.ts, 6, 17)) +>baz2 : Symbol(baz2, Decl(downlevelLetConst12.ts, 6, 5)) +>a : Symbol(a, Decl(downlevelLetConst12.ts, 6, 17)) + +const [baz3] = [] +>baz3 : Symbol(baz3, Decl(downlevelLetConst12.ts, 8, 7)) + +const {a: baz4} = { a: 1 }; +>a : Symbol(a, Decl(downlevelLetConst12.ts, 9, 19)) +>baz4 : Symbol(baz4, Decl(downlevelLetConst12.ts, 9, 7)) +>a : Symbol(a, Decl(downlevelLetConst12.ts, 9, 19)) + diff --git a/tests/baselines/reference/downlevelLetConst12(target=es5).types b/tests/baselines/reference/downlevelLetConst12(target=es5).types new file mode 100644 index 0000000000000..77195e04118c9 --- /dev/null +++ b/tests/baselines/reference/downlevelLetConst12(target=es5).types @@ -0,0 +1,54 @@ +//// [tests/cases/compiler/downlevelLetConst12.ts] //// + +=== downlevelLetConst12.ts === +'use strict' +>'use strict' : "use strict" +> : ^^^^^^^^^^^^ + +// top level let\const should not be renamed +let foo; +>foo : any +> : ^^^ + +const bar = 1; +>bar : 1 +> : ^ +>1 : 1 +> : ^ + +let [baz] = []; +>baz : undefined +> : ^^^^^^^^^ +>[] : [] +> : ^^ + +let {a: baz2} = { a: 1 }; +>a : any +> : ^^^ +>baz2 : number +> : ^^^^^^ +>{ a: 1 } : { a: number; } +> : ^^^^^^^^^^^^^^ +>a : number +> : ^^^^^^ +>1 : 1 +> : ^ + +const [baz3] = [] +>baz3 : undefined +> : ^^^^^^^^^ +>[] : [] +> : ^^ + +const {a: baz4} = { a: 1 }; +>a : any +> : ^^^ +>baz4 : number +> : ^^^^^^ +>{ a: 1 } : { a: number; } +> : ^^^^^^^^^^^^^^ +>a : number +> : ^^^^^^ +>1 : 1 +> : ^ + diff --git a/tests/baselines/reference/downlevelLetConst13.js b/tests/baselines/reference/downlevelLetConst13(target=es2015).js similarity index 100% rename from tests/baselines/reference/downlevelLetConst13.js rename to tests/baselines/reference/downlevelLetConst13(target=es2015).js diff --git a/tests/baselines/reference/downlevelLetConst13.symbols b/tests/baselines/reference/downlevelLetConst13(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/downlevelLetConst13.symbols rename to tests/baselines/reference/downlevelLetConst13(target=es2015).symbols diff --git a/tests/baselines/reference/downlevelLetConst13.types b/tests/baselines/reference/downlevelLetConst13(target=es2015).types similarity index 100% rename from tests/baselines/reference/downlevelLetConst13.types rename to tests/baselines/reference/downlevelLetConst13(target=es2015).types diff --git a/tests/baselines/reference/downlevelLetConst13(target=es5).js b/tests/baselines/reference/downlevelLetConst13(target=es5).js new file mode 100644 index 0000000000000..41595a46ac11a --- /dev/null +++ b/tests/baselines/reference/downlevelLetConst13(target=es5).js @@ -0,0 +1,42 @@ +//// [tests/cases/compiler/downlevelLetConst13.ts] //// + +//// [downlevelLetConst13.ts] +'use strict' +// exported let\const bindings should not be renamed + +export let foo = 10; +export const bar = "123" +export let [bar1] = [1]; +export const [bar2] = [2]; +export let {a: bar3} = { a: 1 }; +export const {a: bar4} = { a: 1 }; + +export namespace M { + export let baz = 100; + export const baz2 = true; + export let [bar5] = [1]; + export const [bar6] = [2]; + export let {a: bar7} = { a: 1 }; + export const {a: bar8} = { a: 1 }; +} + +//// [downlevelLetConst13.js] +'use strict'; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.M = exports.bar4 = exports.bar3 = exports.bar2 = exports.bar1 = exports.bar = exports.foo = void 0; +// exported let\const bindings should not be renamed +exports.foo = 10; +exports.bar = "123"; +exports.bar1 = [1][0]; +exports.bar2 = [2][0]; +exports.bar3 = { a: 1 }.a; +exports.bar4 = { a: 1 }.a; +var M; +(function (M) { + M.baz = 100; + M.baz2 = true; + M.bar5 = [1][0]; + M.bar6 = [2][0]; + M.bar7 = { a: 1 }.a; + M.bar8 = { a: 1 }.a; +})(M || (exports.M = M = {})); diff --git a/tests/baselines/reference/downlevelLetConst13(target=es5).symbols b/tests/baselines/reference/downlevelLetConst13(target=es5).symbols new file mode 100644 index 0000000000000..feff5dcd653cd --- /dev/null +++ b/tests/baselines/reference/downlevelLetConst13(target=es5).symbols @@ -0,0 +1,53 @@ +//// [tests/cases/compiler/downlevelLetConst13.ts] //// + +=== downlevelLetConst13.ts === +'use strict' +// exported let\const bindings should not be renamed + +export let foo = 10; +>foo : Symbol(foo, Decl(downlevelLetConst13.ts, 3, 10)) + +export const bar = "123" +>bar : Symbol(bar, Decl(downlevelLetConst13.ts, 4, 12)) + +export let [bar1] = [1]; +>bar1 : Symbol(bar1, Decl(downlevelLetConst13.ts, 5, 12)) + +export const [bar2] = [2]; +>bar2 : Symbol(bar2, Decl(downlevelLetConst13.ts, 6, 14)) + +export let {a: bar3} = { a: 1 }; +>a : Symbol(a, Decl(downlevelLetConst13.ts, 7, 24)) +>bar3 : Symbol(bar3, Decl(downlevelLetConst13.ts, 7, 12)) +>a : Symbol(a, Decl(downlevelLetConst13.ts, 7, 24)) + +export const {a: bar4} = { a: 1 }; +>a : Symbol(a, Decl(downlevelLetConst13.ts, 8, 26)) +>bar4 : Symbol(bar4, Decl(downlevelLetConst13.ts, 8, 14)) +>a : Symbol(a, Decl(downlevelLetConst13.ts, 8, 26)) + +export namespace M { +>M : Symbol(M, Decl(downlevelLetConst13.ts, 8, 34)) + + export let baz = 100; +>baz : Symbol(baz, Decl(downlevelLetConst13.ts, 11, 14)) + + export const baz2 = true; +>baz2 : Symbol(baz2, Decl(downlevelLetConst13.ts, 12, 16)) + + export let [bar5] = [1]; +>bar5 : Symbol(bar5, Decl(downlevelLetConst13.ts, 13, 16)) + + export const [bar6] = [2]; +>bar6 : Symbol(bar6, Decl(downlevelLetConst13.ts, 14, 18)) + + export let {a: bar7} = { a: 1 }; +>a : Symbol(a, Decl(downlevelLetConst13.ts, 15, 28)) +>bar7 : Symbol(bar7, Decl(downlevelLetConst13.ts, 15, 16)) +>a : Symbol(a, Decl(downlevelLetConst13.ts, 15, 28)) + + export const {a: bar8} = { a: 1 }; +>a : Symbol(a, Decl(downlevelLetConst13.ts, 16, 30)) +>bar8 : Symbol(bar8, Decl(downlevelLetConst13.ts, 16, 18)) +>a : Symbol(a, Decl(downlevelLetConst13.ts, 16, 30)) +} diff --git a/tests/baselines/reference/downlevelLetConst13(target=es5).types b/tests/baselines/reference/downlevelLetConst13(target=es5).types new file mode 100644 index 0000000000000..40f20e82d2e07 --- /dev/null +++ b/tests/baselines/reference/downlevelLetConst13(target=es5).types @@ -0,0 +1,117 @@ +//// [tests/cases/compiler/downlevelLetConst13.ts] //// + +=== downlevelLetConst13.ts === +'use strict' +>'use strict' : "use strict" +> : ^^^^^^^^^^^^ + +// exported let\const bindings should not be renamed + +export let foo = 10; +>foo : number +> : ^^^^^^ +>10 : 10 +> : ^^ + +export const bar = "123" +>bar : "123" +> : ^^^^^ +>"123" : "123" +> : ^^^^^ + +export let [bar1] = [1]; +>bar1 : number +> : ^^^^^^ +>[1] : [number] +> : ^^^^^^^^ +>1 : 1 +> : ^ + +export const [bar2] = [2]; +>bar2 : number +> : ^^^^^^ +>[2] : [number] +> : ^^^^^^^^ +>2 : 2 +> : ^ + +export let {a: bar3} = { a: 1 }; +>a : any +> : ^^^ +>bar3 : number +> : ^^^^^^ +>{ a: 1 } : { a: number; } +> : ^^^^^^^^^^^^^^ +>a : number +> : ^^^^^^ +>1 : 1 +> : ^ + +export const {a: bar4} = { a: 1 }; +>a : any +> : ^^^ +>bar4 : number +> : ^^^^^^ +>{ a: 1 } : { a: number; } +> : ^^^^^^^^^^^^^^ +>a : number +> : ^^^^^^ +>1 : 1 +> : ^ + +export namespace M { +>M : typeof M +> : ^^^^^^^^ + + export let baz = 100; +>baz : number +> : ^^^^^^ +>100 : 100 +> : ^^^ + + export const baz2 = true; +>baz2 : true +> : ^^^^ +>true : true +> : ^^^^ + + export let [bar5] = [1]; +>bar5 : number +> : ^^^^^^ +>[1] : [number] +> : ^^^^^^^^ +>1 : 1 +> : ^ + + export const [bar6] = [2]; +>bar6 : number +> : ^^^^^^ +>[2] : [number] +> : ^^^^^^^^ +>2 : 2 +> : ^ + + export let {a: bar7} = { a: 1 }; +>a : any +> : ^^^ +>bar7 : number +> : ^^^^^^ +>{ a: 1 } : { a: number; } +> : ^^^^^^^^^^^^^^ +>a : number +> : ^^^^^^ +>1 : 1 +> : ^ + + export const {a: bar8} = { a: 1 }; +>a : any +> : ^^^ +>bar8 : number +> : ^^^^^^ +>{ a: 1 } : { a: number; } +> : ^^^^^^^^^^^^^^ +>a : number +> : ^^^^^^ +>1 : 1 +> : ^ +} diff --git a/tests/baselines/reference/downlevelLetConst14(target=es2015).js b/tests/baselines/reference/downlevelLetConst14(target=es2015).js new file mode 100644 index 0000000000000..ec285a8dce82f --- /dev/null +++ b/tests/baselines/reference/downlevelLetConst14(target=es2015).js @@ -0,0 +1,109 @@ +//// [tests/cases/compiler/downlevelLetConst14.ts] //// + +//// [downlevelLetConst14.ts] +'use strict' +declare function use(a: any); + +var x = 10; +var z0, z1, z2, z3; +{ + let x = 20; + use(x); + + let [z0] = [1]; + use(z0); + let [z1] = [1] + use(z1); + let {a: z2} = { a: 1 }; + use(z2); + let {a: z3} = { a: 1 }; + use(z3); +} +use(x); +use(z0); +use(z1); +use(z2); +use(z3); +var z6; +var y = true; +{ + let y = ""; + let [z6] = [true] + { + let y = 1; + let {a: z6} = {a: 1} + use(y); + use(z6); + } + use(y); + use(z6); +} +use(y); +use(z6); + +var z = false; +var z5 = 1; +{ + let z = ""; + let [z5] = [5]; + { + let _z = 1; + let {a: _z5} = { a: 1 }; + // try to step on generated name + use(_z); + } + use(z); +} +use(y); + +//// [downlevelLetConst14.js] +'use strict'; +var x = 10; +var z0, z1, z2, z3; +{ + let x = 20; + use(x); + let [z0] = [1]; + use(z0); + let [z1] = [1]; + use(z1); + let { a: z2 } = { a: 1 }; + use(z2); + let { a: z3 } = { a: 1 }; + use(z3); +} +use(x); +use(z0); +use(z1); +use(z2); +use(z3); +var z6; +var y = true; +{ + let y = ""; + let [z6] = [true]; + { + let y = 1; + let { a: z6 } = { a: 1 }; + use(y); + use(z6); + } + use(y); + use(z6); +} +use(y); +use(z6); +var z = false; +var z5 = 1; +{ + let z = ""; + let [z5] = [5]; + { + let _z = 1; + let { a: _z5 } = { a: 1 }; + // try to step on generated name + use(_z); + } + use(z); +} +use(y); diff --git a/tests/baselines/reference/downlevelLetConst14.symbols b/tests/baselines/reference/downlevelLetConst14(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/downlevelLetConst14.symbols rename to tests/baselines/reference/downlevelLetConst14(target=es2015).symbols diff --git a/tests/baselines/reference/downlevelLetConst14.types b/tests/baselines/reference/downlevelLetConst14(target=es2015).types similarity index 100% rename from tests/baselines/reference/downlevelLetConst14.types rename to tests/baselines/reference/downlevelLetConst14(target=es2015).types diff --git a/tests/baselines/reference/downlevelLetConst14.js b/tests/baselines/reference/downlevelLetConst14(target=es5).js similarity index 100% rename from tests/baselines/reference/downlevelLetConst14.js rename to tests/baselines/reference/downlevelLetConst14(target=es5).js diff --git a/tests/baselines/reference/downlevelLetConst14(target=es5).symbols b/tests/baselines/reference/downlevelLetConst14(target=es5).symbols new file mode 100644 index 0000000000000..d3a67e98927de --- /dev/null +++ b/tests/baselines/reference/downlevelLetConst14(target=es5).symbols @@ -0,0 +1,153 @@ +//// [tests/cases/compiler/downlevelLetConst14.ts] //// + +=== downlevelLetConst14.ts === +'use strict' +declare function use(a: any); +>use : Symbol(use, Decl(downlevelLetConst14.ts, 0, 12)) +>a : Symbol(a, Decl(downlevelLetConst14.ts, 1, 21)) + +var x = 10; +>x : Symbol(x, Decl(downlevelLetConst14.ts, 3, 3)) + +var z0, z1, z2, z3; +>z0 : Symbol(z0, Decl(downlevelLetConst14.ts, 4, 3)) +>z1 : Symbol(z1, Decl(downlevelLetConst14.ts, 4, 7)) +>z2 : Symbol(z2, Decl(downlevelLetConst14.ts, 4, 11)) +>z3 : Symbol(z3, Decl(downlevelLetConst14.ts, 4, 15)) +{ + let x = 20; +>x : Symbol(x, Decl(downlevelLetConst14.ts, 6, 7)) + + use(x); +>use : Symbol(use, Decl(downlevelLetConst14.ts, 0, 12)) +>x : Symbol(x, Decl(downlevelLetConst14.ts, 6, 7)) + + let [z0] = [1]; +>z0 : Symbol(z0, Decl(downlevelLetConst14.ts, 9, 9)) + + use(z0); +>use : Symbol(use, Decl(downlevelLetConst14.ts, 0, 12)) +>z0 : Symbol(z0, Decl(downlevelLetConst14.ts, 9, 9)) + + let [z1] = [1] +>z1 : Symbol(z1, Decl(downlevelLetConst14.ts, 11, 9)) + + use(z1); +>use : Symbol(use, Decl(downlevelLetConst14.ts, 0, 12)) +>z1 : Symbol(z1, Decl(downlevelLetConst14.ts, 11, 9)) + + let {a: z2} = { a: 1 }; +>a : Symbol(a, Decl(downlevelLetConst14.ts, 13, 19)) +>z2 : Symbol(z2, Decl(downlevelLetConst14.ts, 13, 9)) +>a : Symbol(a, Decl(downlevelLetConst14.ts, 13, 19)) + + use(z2); +>use : Symbol(use, Decl(downlevelLetConst14.ts, 0, 12)) +>z2 : Symbol(z2, Decl(downlevelLetConst14.ts, 13, 9)) + + let {a: z3} = { a: 1 }; +>a : Symbol(a, Decl(downlevelLetConst14.ts, 15, 19)) +>z3 : Symbol(z3, Decl(downlevelLetConst14.ts, 15, 9)) +>a : Symbol(a, Decl(downlevelLetConst14.ts, 15, 19)) + + use(z3); +>use : Symbol(use, Decl(downlevelLetConst14.ts, 0, 12)) +>z3 : Symbol(z3, Decl(downlevelLetConst14.ts, 15, 9)) +} +use(x); +>use : Symbol(use, Decl(downlevelLetConst14.ts, 0, 12)) +>x : Symbol(x, Decl(downlevelLetConst14.ts, 3, 3)) + +use(z0); +>use : Symbol(use, Decl(downlevelLetConst14.ts, 0, 12)) +>z0 : Symbol(z0, Decl(downlevelLetConst14.ts, 4, 3)) + +use(z1); +>use : Symbol(use, Decl(downlevelLetConst14.ts, 0, 12)) +>z1 : Symbol(z1, Decl(downlevelLetConst14.ts, 4, 7)) + +use(z2); +>use : Symbol(use, Decl(downlevelLetConst14.ts, 0, 12)) +>z2 : Symbol(z2, Decl(downlevelLetConst14.ts, 4, 11)) + +use(z3); +>use : Symbol(use, Decl(downlevelLetConst14.ts, 0, 12)) +>z3 : Symbol(z3, Decl(downlevelLetConst14.ts, 4, 15)) + +var z6; +>z6 : Symbol(z6, Decl(downlevelLetConst14.ts, 23, 3)) + +var y = true; +>y : Symbol(y, Decl(downlevelLetConst14.ts, 24, 3)) +{ + let y = ""; +>y : Symbol(y, Decl(downlevelLetConst14.ts, 26, 7)) + + let [z6] = [true] +>z6 : Symbol(z6, Decl(downlevelLetConst14.ts, 27, 9)) + { + let y = 1; +>y : Symbol(y, Decl(downlevelLetConst14.ts, 29, 11)) + + let {a: z6} = {a: 1} +>a : Symbol(a, Decl(downlevelLetConst14.ts, 30, 23)) +>z6 : Symbol(z6, Decl(downlevelLetConst14.ts, 30, 13)) +>a : Symbol(a, Decl(downlevelLetConst14.ts, 30, 23)) + + use(y); +>use : Symbol(use, Decl(downlevelLetConst14.ts, 0, 12)) +>y : Symbol(y, Decl(downlevelLetConst14.ts, 29, 11)) + + use(z6); +>use : Symbol(use, Decl(downlevelLetConst14.ts, 0, 12)) +>z6 : Symbol(z6, Decl(downlevelLetConst14.ts, 30, 13)) + } + use(y); +>use : Symbol(use, Decl(downlevelLetConst14.ts, 0, 12)) +>y : Symbol(y, Decl(downlevelLetConst14.ts, 26, 7)) + + use(z6); +>use : Symbol(use, Decl(downlevelLetConst14.ts, 0, 12)) +>z6 : Symbol(z6, Decl(downlevelLetConst14.ts, 27, 9)) +} +use(y); +>use : Symbol(use, Decl(downlevelLetConst14.ts, 0, 12)) +>y : Symbol(y, Decl(downlevelLetConst14.ts, 24, 3)) + +use(z6); +>use : Symbol(use, Decl(downlevelLetConst14.ts, 0, 12)) +>z6 : Symbol(z6, Decl(downlevelLetConst14.ts, 23, 3)) + +var z = false; +>z : Symbol(z, Decl(downlevelLetConst14.ts, 40, 3)) + +var z5 = 1; +>z5 : Symbol(z5, Decl(downlevelLetConst14.ts, 41, 3)) +{ + let z = ""; +>z : Symbol(z, Decl(downlevelLetConst14.ts, 43, 7)) + + let [z5] = [5]; +>z5 : Symbol(z5, Decl(downlevelLetConst14.ts, 44, 9)) + { + let _z = 1; +>_z : Symbol(_z, Decl(downlevelLetConst14.ts, 46, 11)) + + let {a: _z5} = { a: 1 }; +>a : Symbol(a, Decl(downlevelLetConst14.ts, 47, 24)) +>_z5 : Symbol(_z5, Decl(downlevelLetConst14.ts, 47, 13)) +>a : Symbol(a, Decl(downlevelLetConst14.ts, 47, 24)) + + // try to step on generated name + use(_z); +>use : Symbol(use, Decl(downlevelLetConst14.ts, 0, 12)) +>_z : Symbol(_z, Decl(downlevelLetConst14.ts, 46, 11)) + } + use(z); +>use : Symbol(use, Decl(downlevelLetConst14.ts, 0, 12)) +>z : Symbol(z, Decl(downlevelLetConst14.ts, 43, 7)) +} +use(y); +>use : Symbol(use, Decl(downlevelLetConst14.ts, 0, 12)) +>y : Symbol(y, Decl(downlevelLetConst14.ts, 24, 3)) + diff --git a/tests/baselines/reference/downlevelLetConst14(target=es5).types b/tests/baselines/reference/downlevelLetConst14(target=es5).types new file mode 100644 index 0000000000000..56dd340727ea2 --- /dev/null +++ b/tests/baselines/reference/downlevelLetConst14(target=es5).types @@ -0,0 +1,284 @@ +//// [tests/cases/compiler/downlevelLetConst14.ts] //// + +=== downlevelLetConst14.ts === +'use strict' +>'use strict' : "use strict" +> : ^^^^^^^^^^^^ + +declare function use(a: any); +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>a : any + +var x = 10; +>x : number +> : ^^^^^^ +>10 : 10 +> : ^^ + +var z0, z1, z2, z3; +>z0 : any +>z1 : any +>z2 : any +>z3 : any +{ + let x = 20; +>x : number +> : ^^^^^^ +>20 : 20 +> : ^^ + + use(x); +>use(x) : any +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>x : number +> : ^^^^^^ + + let [z0] = [1]; +>z0 : number +> : ^^^^^^ +>[1] : [number] +> : ^^^^^^^^ +>1 : 1 +> : ^ + + use(z0); +>use(z0) : any +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>z0 : number +> : ^^^^^^ + + let [z1] = [1] +>z1 : number +> : ^^^^^^ +>[1] : [number] +> : ^^^^^^^^ +>1 : 1 +> : ^ + + use(z1); +>use(z1) : any +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>z1 : number +> : ^^^^^^ + + let {a: z2} = { a: 1 }; +>a : any +> : ^^^ +>z2 : number +> : ^^^^^^ +>{ a: 1 } : { a: number; } +> : ^^^^^^^^^^^^^^ +>a : number +> : ^^^^^^ +>1 : 1 +> : ^ + + use(z2); +>use(z2) : any +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>z2 : number +> : ^^^^^^ + + let {a: z3} = { a: 1 }; +>a : any +> : ^^^ +>z3 : number +> : ^^^^^^ +>{ a: 1 } : { a: number; } +> : ^^^^^^^^^^^^^^ +>a : number +> : ^^^^^^ +>1 : 1 +> : ^ + + use(z3); +>use(z3) : any +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>z3 : number +> : ^^^^^^ +} +use(x); +>use(x) : any +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>x : number +> : ^^^^^^ + +use(z0); +>use(z0) : any +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>z0 : any + +use(z1); +>use(z1) : any +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>z1 : any + +use(z2); +>use(z2) : any +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>z2 : any + +use(z3); +>use(z3) : any +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>z3 : any + +var z6; +>z6 : any + +var y = true; +>y : boolean +> : ^^^^^^^ +>true : true +> : ^^^^ +{ + let y = ""; +>y : string +> : ^^^^^^ +>"" : "" +> : ^^ + + let [z6] = [true] +>z6 : boolean +> : ^^^^^^^ +>[true] : [boolean] +> : ^^^^^^^^^ +>true : true +> : ^^^^ + { + let y = 1; +>y : number +> : ^^^^^^ +>1 : 1 +> : ^ + + let {a: z6} = {a: 1} +>a : any +> : ^^^ +>z6 : number +> : ^^^^^^ +>{a: 1} : { a: number; } +> : ^^^^^^^^^^^^^^ +>a : number +> : ^^^^^^ +>1 : 1 +> : ^ + + use(y); +>use(y) : any +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>y : number +> : ^^^^^^ + + use(z6); +>use(z6) : any +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>z6 : number +> : ^^^^^^ + } + use(y); +>use(y) : any +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>y : string +> : ^^^^^^ + + use(z6); +>use(z6) : any +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>z6 : boolean +> : ^^^^^^^ +} +use(y); +>use(y) : any +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>y : true +> : ^^^^ + +use(z6); +>use(z6) : any +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>z6 : any + +var z = false; +>z : boolean +> : ^^^^^^^ +>false : false +> : ^^^^^ + +var z5 = 1; +>z5 : number +> : ^^^^^^ +>1 : 1 +> : ^ +{ + let z = ""; +>z : string +> : ^^^^^^ +>"" : "" +> : ^^ + + let [z5] = [5]; +>z5 : number +> : ^^^^^^ +>[5] : [number] +> : ^^^^^^^^ +>5 : 5 +> : ^ + { + let _z = 1; +>_z : number +> : ^^^^^^ +>1 : 1 +> : ^ + + let {a: _z5} = { a: 1 }; +>a : any +> : ^^^ +>_z5 : number +> : ^^^^^^ +>{ a: 1 } : { a: number; } +> : ^^^^^^^^^^^^^^ +>a : number +> : ^^^^^^ +>1 : 1 +> : ^ + + // try to step on generated name + use(_z); +>use(_z) : any +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>_z : number +> : ^^^^^^ + } + use(z); +>use(z) : any +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>z : string +> : ^^^^^^ +} +use(y); +>use(y) : any +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>y : true +> : ^^^^ + diff --git a/tests/baselines/reference/downlevelLetConst15(target=es2015).js b/tests/baselines/reference/downlevelLetConst15(target=es2015).js new file mode 100644 index 0000000000000..286fd54a541f7 --- /dev/null +++ b/tests/baselines/reference/downlevelLetConst15(target=es2015).js @@ -0,0 +1,109 @@ +//// [tests/cases/compiler/downlevelLetConst15.ts] //// + +//// [downlevelLetConst15.ts] +'use strict' +declare function use(a: any); + +var x = 10; +var z0, z1, z2, z3; +{ + const x = 20; + use(x); + + const [z0] = [1]; + use(z0); + const [{a: z1}] = [{a: 1}] + use(z1); + const {a: z2} = { a: 1 }; + use(z2); + const {a: {b: z3}} = { a: {b: 1} }; + use(z3); +} +use(x); +use(z0); +use(z1); +use(z2); +use(z3); +var z6; +var y = true; +{ + const y = ""; + const [z6] = [true] + { + const y = 1; + const {a: z6} = { a: 1 } + use(y); + use(z6); + } + use(y); + use(z6); +} +use(y); +use(z6); + +var z = false; +var z5 = 1; +{ + const z = ""; + const [z5] = [5]; + { + const _z = 1; + const {a: _z5} = { a: 1 }; + // try to step on generated name + use(_z); + } + use(z); +} +use(y); + +//// [downlevelLetConst15.js] +'use strict'; +var x = 10; +var z0, z1, z2, z3; +{ + const x = 20; + use(x); + const [z0] = [1]; + use(z0); + const [{ a: z1 }] = [{ a: 1 }]; + use(z1); + const { a: z2 } = { a: 1 }; + use(z2); + const { a: { b: z3 } } = { a: { b: 1 } }; + use(z3); +} +use(x); +use(z0); +use(z1); +use(z2); +use(z3); +var z6; +var y = true; +{ + const y = ""; + const [z6] = [true]; + { + const y = 1; + const { a: z6 } = { a: 1 }; + use(y); + use(z6); + } + use(y); + use(z6); +} +use(y); +use(z6); +var z = false; +var z5 = 1; +{ + const z = ""; + const [z5] = [5]; + { + const _z = 1; + const { a: _z5 } = { a: 1 }; + // try to step on generated name + use(_z); + } + use(z); +} +use(y); diff --git a/tests/baselines/reference/downlevelLetConst15.symbols b/tests/baselines/reference/downlevelLetConst15(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/downlevelLetConst15.symbols rename to tests/baselines/reference/downlevelLetConst15(target=es2015).symbols diff --git a/tests/baselines/reference/downlevelLetConst15.types b/tests/baselines/reference/downlevelLetConst15(target=es2015).types similarity index 100% rename from tests/baselines/reference/downlevelLetConst15.types rename to tests/baselines/reference/downlevelLetConst15(target=es2015).types diff --git a/tests/baselines/reference/downlevelLetConst15.js b/tests/baselines/reference/downlevelLetConst15(target=es5).js similarity index 100% rename from tests/baselines/reference/downlevelLetConst15.js rename to tests/baselines/reference/downlevelLetConst15(target=es5).js diff --git a/tests/baselines/reference/downlevelLetConst15(target=es5).symbols b/tests/baselines/reference/downlevelLetConst15(target=es5).symbols new file mode 100644 index 0000000000000..a592302e40a44 --- /dev/null +++ b/tests/baselines/reference/downlevelLetConst15(target=es5).symbols @@ -0,0 +1,157 @@ +//// [tests/cases/compiler/downlevelLetConst15.ts] //// + +=== downlevelLetConst15.ts === +'use strict' +declare function use(a: any); +>use : Symbol(use, Decl(downlevelLetConst15.ts, 0, 12)) +>a : Symbol(a, Decl(downlevelLetConst15.ts, 1, 21)) + +var x = 10; +>x : Symbol(x, Decl(downlevelLetConst15.ts, 3, 3)) + +var z0, z1, z2, z3; +>z0 : Symbol(z0, Decl(downlevelLetConst15.ts, 4, 3)) +>z1 : Symbol(z1, Decl(downlevelLetConst15.ts, 4, 7)) +>z2 : Symbol(z2, Decl(downlevelLetConst15.ts, 4, 11)) +>z3 : Symbol(z3, Decl(downlevelLetConst15.ts, 4, 15)) +{ + const x = 20; +>x : Symbol(x, Decl(downlevelLetConst15.ts, 6, 9)) + + use(x); +>use : Symbol(use, Decl(downlevelLetConst15.ts, 0, 12)) +>x : Symbol(x, Decl(downlevelLetConst15.ts, 6, 9)) + + const [z0] = [1]; +>z0 : Symbol(z0, Decl(downlevelLetConst15.ts, 9, 11)) + + use(z0); +>use : Symbol(use, Decl(downlevelLetConst15.ts, 0, 12)) +>z0 : Symbol(z0, Decl(downlevelLetConst15.ts, 9, 11)) + + const [{a: z1}] = [{a: 1}] +>a : Symbol(a, Decl(downlevelLetConst15.ts, 11, 24)) +>z1 : Symbol(z1, Decl(downlevelLetConst15.ts, 11, 12)) +>a : Symbol(a, Decl(downlevelLetConst15.ts, 11, 24)) + + use(z1); +>use : Symbol(use, Decl(downlevelLetConst15.ts, 0, 12)) +>z1 : Symbol(z1, Decl(downlevelLetConst15.ts, 11, 12)) + + const {a: z2} = { a: 1 }; +>a : Symbol(a, Decl(downlevelLetConst15.ts, 13, 21)) +>z2 : Symbol(z2, Decl(downlevelLetConst15.ts, 13, 11)) +>a : Symbol(a, Decl(downlevelLetConst15.ts, 13, 21)) + + use(z2); +>use : Symbol(use, Decl(downlevelLetConst15.ts, 0, 12)) +>z2 : Symbol(z2, Decl(downlevelLetConst15.ts, 13, 11)) + + const {a: {b: z3}} = { a: {b: 1} }; +>a : Symbol(a, Decl(downlevelLetConst15.ts, 15, 26)) +>b : Symbol(b, Decl(downlevelLetConst15.ts, 15, 31)) +>z3 : Symbol(z3, Decl(downlevelLetConst15.ts, 15, 15)) +>a : Symbol(a, Decl(downlevelLetConst15.ts, 15, 26)) +>b : Symbol(b, Decl(downlevelLetConst15.ts, 15, 31)) + + use(z3); +>use : Symbol(use, Decl(downlevelLetConst15.ts, 0, 12)) +>z3 : Symbol(z3, Decl(downlevelLetConst15.ts, 15, 15)) +} +use(x); +>use : Symbol(use, Decl(downlevelLetConst15.ts, 0, 12)) +>x : Symbol(x, Decl(downlevelLetConst15.ts, 3, 3)) + +use(z0); +>use : Symbol(use, Decl(downlevelLetConst15.ts, 0, 12)) +>z0 : Symbol(z0, Decl(downlevelLetConst15.ts, 4, 3)) + +use(z1); +>use : Symbol(use, Decl(downlevelLetConst15.ts, 0, 12)) +>z1 : Symbol(z1, Decl(downlevelLetConst15.ts, 4, 7)) + +use(z2); +>use : Symbol(use, Decl(downlevelLetConst15.ts, 0, 12)) +>z2 : Symbol(z2, Decl(downlevelLetConst15.ts, 4, 11)) + +use(z3); +>use : Symbol(use, Decl(downlevelLetConst15.ts, 0, 12)) +>z3 : Symbol(z3, Decl(downlevelLetConst15.ts, 4, 15)) + +var z6; +>z6 : Symbol(z6, Decl(downlevelLetConst15.ts, 23, 3)) + +var y = true; +>y : Symbol(y, Decl(downlevelLetConst15.ts, 24, 3)) +{ + const y = ""; +>y : Symbol(y, Decl(downlevelLetConst15.ts, 26, 9)) + + const [z6] = [true] +>z6 : Symbol(z6, Decl(downlevelLetConst15.ts, 27, 11)) + { + const y = 1; +>y : Symbol(y, Decl(downlevelLetConst15.ts, 29, 13)) + + const {a: z6} = { a: 1 } +>a : Symbol(a, Decl(downlevelLetConst15.ts, 30, 25)) +>z6 : Symbol(z6, Decl(downlevelLetConst15.ts, 30, 15)) +>a : Symbol(a, Decl(downlevelLetConst15.ts, 30, 25)) + + use(y); +>use : Symbol(use, Decl(downlevelLetConst15.ts, 0, 12)) +>y : Symbol(y, Decl(downlevelLetConst15.ts, 29, 13)) + + use(z6); +>use : Symbol(use, Decl(downlevelLetConst15.ts, 0, 12)) +>z6 : Symbol(z6, Decl(downlevelLetConst15.ts, 30, 15)) + } + use(y); +>use : Symbol(use, Decl(downlevelLetConst15.ts, 0, 12)) +>y : Symbol(y, Decl(downlevelLetConst15.ts, 26, 9)) + + use(z6); +>use : Symbol(use, Decl(downlevelLetConst15.ts, 0, 12)) +>z6 : Symbol(z6, Decl(downlevelLetConst15.ts, 27, 11)) +} +use(y); +>use : Symbol(use, Decl(downlevelLetConst15.ts, 0, 12)) +>y : Symbol(y, Decl(downlevelLetConst15.ts, 24, 3)) + +use(z6); +>use : Symbol(use, Decl(downlevelLetConst15.ts, 0, 12)) +>z6 : Symbol(z6, Decl(downlevelLetConst15.ts, 23, 3)) + +var z = false; +>z : Symbol(z, Decl(downlevelLetConst15.ts, 40, 3)) + +var z5 = 1; +>z5 : Symbol(z5, Decl(downlevelLetConst15.ts, 41, 3)) +{ + const z = ""; +>z : Symbol(z, Decl(downlevelLetConst15.ts, 43, 9)) + + const [z5] = [5]; +>z5 : Symbol(z5, Decl(downlevelLetConst15.ts, 44, 11)) + { + const _z = 1; +>_z : Symbol(_z, Decl(downlevelLetConst15.ts, 46, 13)) + + const {a: _z5} = { a: 1 }; +>a : Symbol(a, Decl(downlevelLetConst15.ts, 47, 26)) +>_z5 : Symbol(_z5, Decl(downlevelLetConst15.ts, 47, 15)) +>a : Symbol(a, Decl(downlevelLetConst15.ts, 47, 26)) + + // try to step on generated name + use(_z); +>use : Symbol(use, Decl(downlevelLetConst15.ts, 0, 12)) +>_z : Symbol(_z, Decl(downlevelLetConst15.ts, 46, 13)) + } + use(z); +>use : Symbol(use, Decl(downlevelLetConst15.ts, 0, 12)) +>z : Symbol(z, Decl(downlevelLetConst15.ts, 43, 9)) +} +use(y); +>use : Symbol(use, Decl(downlevelLetConst15.ts, 0, 12)) +>y : Symbol(y, Decl(downlevelLetConst15.ts, 24, 3)) + diff --git a/tests/baselines/reference/downlevelLetConst15(target=es5).types b/tests/baselines/reference/downlevelLetConst15(target=es5).types new file mode 100644 index 0000000000000..d9db80cf386a7 --- /dev/null +++ b/tests/baselines/reference/downlevelLetConst15(target=es5).types @@ -0,0 +1,296 @@ +//// [tests/cases/compiler/downlevelLetConst15.ts] //// + +=== downlevelLetConst15.ts === +'use strict' +>'use strict' : "use strict" +> : ^^^^^^^^^^^^ + +declare function use(a: any); +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>a : any + +var x = 10; +>x : number +> : ^^^^^^ +>10 : 10 +> : ^^ + +var z0, z1, z2, z3; +>z0 : any +>z1 : any +>z2 : any +>z3 : any +{ + const x = 20; +>x : 20 +> : ^^ +>20 : 20 +> : ^^ + + use(x); +>use(x) : any +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>x : 20 +> : ^^ + + const [z0] = [1]; +>z0 : number +> : ^^^^^^ +>[1] : [number] +> : ^^^^^^^^ +>1 : 1 +> : ^ + + use(z0); +>use(z0) : any +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>z0 : number +> : ^^^^^^ + + const [{a: z1}] = [{a: 1}] +>a : any +> : ^^^ +>z1 : number +> : ^^^^^^ +>[{a: 1}] : [{ a: number; }] +> : ^^^^^^^^^^^^^^^^ +>{a: 1} : { a: number; } +> : ^^^^^^^^^^^^^^ +>a : number +> : ^^^^^^ +>1 : 1 +> : ^ + + use(z1); +>use(z1) : any +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>z1 : number +> : ^^^^^^ + + const {a: z2} = { a: 1 }; +>a : any +> : ^^^ +>z2 : number +> : ^^^^^^ +>{ a: 1 } : { a: number; } +> : ^^^^^^^^^^^^^^ +>a : number +> : ^^^^^^ +>1 : 1 +> : ^ + + use(z2); +>use(z2) : any +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>z2 : number +> : ^^^^^^ + + const {a: {b: z3}} = { a: {b: 1} }; +>a : any +> : ^^^ +>b : any +> : ^^^ +>z3 : number +> : ^^^^^^ +>{ a: {b: 1} } : { a: { b: number; }; } +> : ^^^^^^^^^^^^^^^^^^^^^^ +>a : { b: number; } +> : ^^^^^^^^^^^^^^ +>{b: 1} : { b: number; } +> : ^^^^^^^^^^^^^^ +>b : number +> : ^^^^^^ +>1 : 1 +> : ^ + + use(z3); +>use(z3) : any +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>z3 : number +> : ^^^^^^ +} +use(x); +>use(x) : any +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>x : number +> : ^^^^^^ + +use(z0); +>use(z0) : any +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>z0 : any + +use(z1); +>use(z1) : any +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>z1 : any + +use(z2); +>use(z2) : any +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>z2 : any + +use(z3); +>use(z3) : any +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>z3 : any + +var z6; +>z6 : any + +var y = true; +>y : boolean +> : ^^^^^^^ +>true : true +> : ^^^^ +{ + const y = ""; +>y : "" +> : ^^ +>"" : "" +> : ^^ + + const [z6] = [true] +>z6 : boolean +> : ^^^^^^^ +>[true] : [boolean] +> : ^^^^^^^^^ +>true : true +> : ^^^^ + { + const y = 1; +>y : 1 +> : ^ +>1 : 1 +> : ^ + + const {a: z6} = { a: 1 } +>a : any +> : ^^^ +>z6 : number +> : ^^^^^^ +>{ a: 1 } : { a: number; } +> : ^^^^^^^^^^^^^^ +>a : number +> : ^^^^^^ +>1 : 1 +> : ^ + + use(y); +>use(y) : any +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>y : 1 +> : ^ + + use(z6); +>use(z6) : any +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>z6 : number +> : ^^^^^^ + } + use(y); +>use(y) : any +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>y : "" +> : ^^ + + use(z6); +>use(z6) : any +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>z6 : boolean +> : ^^^^^^^ +} +use(y); +>use(y) : any +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>y : true +> : ^^^^ + +use(z6); +>use(z6) : any +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>z6 : any + +var z = false; +>z : boolean +> : ^^^^^^^ +>false : false +> : ^^^^^ + +var z5 = 1; +>z5 : number +> : ^^^^^^ +>1 : 1 +> : ^ +{ + const z = ""; +>z : "" +> : ^^ +>"" : "" +> : ^^ + + const [z5] = [5]; +>z5 : number +> : ^^^^^^ +>[5] : [number] +> : ^^^^^^^^ +>5 : 5 +> : ^ + { + const _z = 1; +>_z : 1 +> : ^ +>1 : 1 +> : ^ + + const {a: _z5} = { a: 1 }; +>a : any +> : ^^^ +>_z5 : number +> : ^^^^^^ +>{ a: 1 } : { a: number; } +> : ^^^^^^^^^^^^^^ +>a : number +> : ^^^^^^ +>1 : 1 +> : ^ + + // try to step on generated name + use(_z); +>use(_z) : any +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>_z : 1 +> : ^ + } + use(z); +>use(z) : any +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>z : "" +> : ^^ +} +use(y); +>use(y) : any +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>y : true +> : ^^^^ + diff --git a/tests/baselines/reference/downlevelLetConst16(target=es2015).errors.txt b/tests/baselines/reference/downlevelLetConst16(target=es2015).errors.txt new file mode 100644 index 0000000000000..2365e70b2e3ff --- /dev/null +++ b/tests/baselines/reference/downlevelLetConst16(target=es2015).errors.txt @@ -0,0 +1,248 @@ +downlevelLetConst16.ts(151,15): error TS2493: Tuple type '[]' of length '0' has no element at index '0'. +downlevelLetConst16.ts(164,17): error TS2493: Tuple type '[]' of length '0' has no element at index '0'. +downlevelLetConst16.ts(195,14): error TS2488: Type 'undefined' must have a '[Symbol.iterator]()' method that returns an iterator. +downlevelLetConst16.ts(202,15): error TS2339: Property 'a' does not exist on type 'undefined'. +downlevelLetConst16.ts(216,16): error TS2488: Type 'undefined' must have a '[Symbol.iterator]()' method that returns an iterator. +downlevelLetConst16.ts(223,17): error TS2339: Property 'a' does not exist on type 'undefined'. + + +==== downlevelLetConst16.ts (6 errors) ==== + 'use strict' + + declare function use(a: any); + + var x = 10; + var y; + var z; + use(x); + use(y); + use(z); + function foo1() { + let x = 1; + use(x); + let [y] = [1]; + use(y); + let {a: z} = {a: 1}; + use(z); + } + + function foo2() { + { + let x = 1; + use(x); + let [y] = [1]; + use(y); + let {a: z} = { a: 1 }; + use(z); + } + use(x); + } + + class A { + m1() { + let x = 1; + use(x); + let [y] = [1]; + use(y); + let {a: z} = { a: 1 }; + use(z); + } + m2() { + { + let x = 1; + use(x); + let [y] = [1]; + use(y); + let {a: z} = { a: 1 }; + use(z); + } + use(x); + } + + } + + class B { + m1() { + const x = 1; + use(x); + const [y] = [1]; + use(y); + const {a: z} = { a: 1 }; + use(z); + + } + m2() { + { + const x = 1; + use(x); + const [y] = [1]; + use(y); + const {a: z} = { a: 1 }; + use(z); + + } + use(x); + } + } + + function bar1() { + const x = 1; + use(x); + const [y] = [1]; + use(y); + const {a: z} = { a: 1 }; + use(z); + } + + function bar2() { + { + const x = 1; + use(x); + const [y] = [1]; + use(y); + const {a: z} = { a: 1 }; + use(z); + + } + use(x); + } + + namespace M1 { + let x = 1; + use(x); + let [y] = [1]; + use(y); + let {a: z} = { a: 1 }; + use(z); + } + + namespace M2 { + { + let x = 1; + use(x); + let [y] = [1]; + use(y); + let {a: z} = { a: 1 }; + use(z); + } + use(x); + } + + namespace M3 { + const x = 1; + use(x); + const [y] = [1]; + use(y); + const {a: z} = { a: 1 }; + use(z); + + } + + namespace M4 { + { + const x = 1; + use(x); + const [y] = [1]; + use(y); + const {a: z} = { a: 1 }; + use(z); + + } + use(x); + use(y); + use(z); + } + + function foo3() { + for (let x; ;) { + use(x); + } + for (let [y] = []; ;) { + ~ +!!! error TS2493: Tuple type '[]' of length '0' has no element at index '0'. + use(y); + } + for (let {a: z} = {a: 1}; ;) { + use(z); + } + use(x); + } + + function foo4() { + for (const x = 1; ;) { + use(x); + } + for (const [y] = []; ;) { + ~ +!!! error TS2493: Tuple type '[]' of length '0' has no element at index '0'. + use(y); + } + for (const {a: z} = { a: 1 }; ;) { + use(z); + } + use(x); + } + + function foo5() { + for (let x in []) { + use(x); + } + use(x); + } + + function foo6() { + for (const x in []) { + use(x); + } + use(x); + } + + function foo7() { + for (let x of []) { + use(x); + } + use(x); + } + + function foo8() { + for (let [x] of []) { + ~~~ +!!! error TS2488: Type 'undefined' must have a '[Symbol.iterator]()' method that returns an iterator. + use(x); + } + use(x); + } + + function foo9() { + for (let {a: x} of []) { + ~ +!!! error TS2339: Property 'a' does not exist on type 'undefined'. + use(x); + } + use(x); + } + + function foo10() { + for (const x of []) { + use(x); + } + use(x); + } + + function foo11() { + for (const [x] of []) { + ~~~ +!!! error TS2488: Type 'undefined' must have a '[Symbol.iterator]()' method that returns an iterator. + use(x); + } + use(x); + } + + function foo12() { + for (const {a: x} of []) { + ~ +!!! error TS2339: Property 'a' does not exist on type 'undefined'. + use(x); + } + use(x); + } \ No newline at end of file diff --git a/tests/baselines/reference/downlevelLetConst16(target=es2015).js b/tests/baselines/reference/downlevelLetConst16(target=es2015).js new file mode 100644 index 0000000000000..c3a34fd8eed0c --- /dev/null +++ b/tests/baselines/reference/downlevelLetConst16(target=es2015).js @@ -0,0 +1,435 @@ +//// [tests/cases/compiler/downlevelLetConst16.ts] //// + +//// [downlevelLetConst16.ts] +'use strict' + +declare function use(a: any); + +var x = 10; +var y; +var z; +use(x); +use(y); +use(z); +function foo1() { + let x = 1; + use(x); + let [y] = [1]; + use(y); + let {a: z} = {a: 1}; + use(z); +} + +function foo2() { + { + let x = 1; + use(x); + let [y] = [1]; + use(y); + let {a: z} = { a: 1 }; + use(z); + } + use(x); +} + +class A { + m1() { + let x = 1; + use(x); + let [y] = [1]; + use(y); + let {a: z} = { a: 1 }; + use(z); + } + m2() { + { + let x = 1; + use(x); + let [y] = [1]; + use(y); + let {a: z} = { a: 1 }; + use(z); + } + use(x); + } + +} + +class B { + m1() { + const x = 1; + use(x); + const [y] = [1]; + use(y); + const {a: z} = { a: 1 }; + use(z); + + } + m2() { + { + const x = 1; + use(x); + const [y] = [1]; + use(y); + const {a: z} = { a: 1 }; + use(z); + + } + use(x); + } +} + +function bar1() { + const x = 1; + use(x); + const [y] = [1]; + use(y); + const {a: z} = { a: 1 }; + use(z); +} + +function bar2() { + { + const x = 1; + use(x); + const [y] = [1]; + use(y); + const {a: z} = { a: 1 }; + use(z); + + } + use(x); +} + +namespace M1 { + let x = 1; + use(x); + let [y] = [1]; + use(y); + let {a: z} = { a: 1 }; + use(z); +} + +namespace M2 { + { + let x = 1; + use(x); + let [y] = [1]; + use(y); + let {a: z} = { a: 1 }; + use(z); + } + use(x); +} + +namespace M3 { + const x = 1; + use(x); + const [y] = [1]; + use(y); + const {a: z} = { a: 1 }; + use(z); + +} + +namespace M4 { + { + const x = 1; + use(x); + const [y] = [1]; + use(y); + const {a: z} = { a: 1 }; + use(z); + + } + use(x); + use(y); + use(z); +} + +function foo3() { + for (let x; ;) { + use(x); + } + for (let [y] = []; ;) { + use(y); + } + for (let {a: z} = {a: 1}; ;) { + use(z); + } + use(x); +} + +function foo4() { + for (const x = 1; ;) { + use(x); + } + for (const [y] = []; ;) { + use(y); + } + for (const {a: z} = { a: 1 }; ;) { + use(z); + } + use(x); +} + +function foo5() { + for (let x in []) { + use(x); + } + use(x); +} + +function foo6() { + for (const x in []) { + use(x); + } + use(x); +} + +function foo7() { + for (let x of []) { + use(x); + } + use(x); +} + +function foo8() { + for (let [x] of []) { + use(x); + } + use(x); +} + +function foo9() { + for (let {a: x} of []) { + use(x); + } + use(x); +} + +function foo10() { + for (const x of []) { + use(x); + } + use(x); +} + +function foo11() { + for (const [x] of []) { + use(x); + } + use(x); +} + +function foo12() { + for (const {a: x} of []) { + use(x); + } + use(x); +} + +//// [downlevelLetConst16.js] +'use strict'; +var x = 10; +var y; +var z; +use(x); +use(y); +use(z); +function foo1() { + let x = 1; + use(x); + let [y] = [1]; + use(y); + let { a: z } = { a: 1 }; + use(z); +} +function foo2() { + { + let x = 1; + use(x); + let [y] = [1]; + use(y); + let { a: z } = { a: 1 }; + use(z); + } + use(x); +} +class A { + m1() { + let x = 1; + use(x); + let [y] = [1]; + use(y); + let { a: z } = { a: 1 }; + use(z); + } + m2() { + { + let x = 1; + use(x); + let [y] = [1]; + use(y); + let { a: z } = { a: 1 }; + use(z); + } + use(x); + } +} +class B { + m1() { + const x = 1; + use(x); + const [y] = [1]; + use(y); + const { a: z } = { a: 1 }; + use(z); + } + m2() { + { + const x = 1; + use(x); + const [y] = [1]; + use(y); + const { a: z } = { a: 1 }; + use(z); + } + use(x); + } +} +function bar1() { + const x = 1; + use(x); + const [y] = [1]; + use(y); + const { a: z } = { a: 1 }; + use(z); +} +function bar2() { + { + const x = 1; + use(x); + const [y] = [1]; + use(y); + const { a: z } = { a: 1 }; + use(z); + } + use(x); +} +var M1; +(function (M1) { + let x = 1; + use(x); + let [y] = [1]; + use(y); + let { a: z } = { a: 1 }; + use(z); +})(M1 || (M1 = {})); +var M2; +(function (M2) { + { + let x = 1; + use(x); + let [y] = [1]; + use(y); + let { a: z } = { a: 1 }; + use(z); + } + use(x); +})(M2 || (M2 = {})); +var M3; +(function (M3) { + const x = 1; + use(x); + const [y] = [1]; + use(y); + const { a: z } = { a: 1 }; + use(z); +})(M3 || (M3 = {})); +var M4; +(function (M4) { + { + const x = 1; + use(x); + const [y] = [1]; + use(y); + const { a: z } = { a: 1 }; + use(z); + } + use(x); + use(y); + use(z); +})(M4 || (M4 = {})); +function foo3() { + for (let x;;) { + use(x); + } + for (let [y] = [];;) { + use(y); + } + for (let { a: z } = { a: 1 };;) { + use(z); + } + use(x); +} +function foo4() { + for (const x = 1;;) { + use(x); + } + for (const [y] = [];;) { + use(y); + } + for (const { a: z } = { a: 1 };;) { + use(z); + } + use(x); +} +function foo5() { + for (let x in []) { + use(x); + } + use(x); +} +function foo6() { + for (const x in []) { + use(x); + } + use(x); +} +function foo7() { + for (let x of []) { + use(x); + } + use(x); +} +function foo8() { + for (let [x] of []) { + use(x); + } + use(x); +} +function foo9() { + for (let { a: x } of []) { + use(x); + } + use(x); +} +function foo10() { + for (const x of []) { + use(x); + } + use(x); +} +function foo11() { + for (const [x] of []) { + use(x); + } + use(x); +} +function foo12() { + for (const { a: x } of []) { + use(x); + } + use(x); +} diff --git a/tests/baselines/reference/downlevelLetConst16.symbols b/tests/baselines/reference/downlevelLetConst16(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/downlevelLetConst16.symbols rename to tests/baselines/reference/downlevelLetConst16(target=es2015).symbols diff --git a/tests/baselines/reference/downlevelLetConst16.types b/tests/baselines/reference/downlevelLetConst16(target=es2015).types similarity index 100% rename from tests/baselines/reference/downlevelLetConst16.types rename to tests/baselines/reference/downlevelLetConst16(target=es2015).types diff --git a/tests/baselines/reference/downlevelLetConst16.errors.txt b/tests/baselines/reference/downlevelLetConst16(target=es5).errors.txt similarity index 100% rename from tests/baselines/reference/downlevelLetConst16.errors.txt rename to tests/baselines/reference/downlevelLetConst16(target=es5).errors.txt diff --git a/tests/baselines/reference/downlevelLetConst16.js b/tests/baselines/reference/downlevelLetConst16(target=es5).js similarity index 100% rename from tests/baselines/reference/downlevelLetConst16.js rename to tests/baselines/reference/downlevelLetConst16(target=es5).js diff --git a/tests/baselines/reference/downlevelLetConst16(target=es5).symbols b/tests/baselines/reference/downlevelLetConst16(target=es5).symbols new file mode 100644 index 0000000000000..12377de81cd50 --- /dev/null +++ b/tests/baselines/reference/downlevelLetConst16(target=es5).symbols @@ -0,0 +1,579 @@ +//// [tests/cases/compiler/downlevelLetConst16.ts] //// + +=== downlevelLetConst16.ts === +'use strict' + +declare function use(a: any); +>use : Symbol(use, Decl(downlevelLetConst16.ts, 0, 12)) +>a : Symbol(a, Decl(downlevelLetConst16.ts, 2, 21)) + +var x = 10; +>x : Symbol(x, Decl(downlevelLetConst16.ts, 4, 3)) + +var y; +>y : Symbol(y, Decl(downlevelLetConst16.ts, 5, 3)) + +var z; +>z : Symbol(z, Decl(downlevelLetConst16.ts, 6, 3)) + +use(x); +>use : Symbol(use, Decl(downlevelLetConst16.ts, 0, 12)) +>x : Symbol(x, Decl(downlevelLetConst16.ts, 4, 3)) + +use(y); +>use : Symbol(use, Decl(downlevelLetConst16.ts, 0, 12)) +>y : Symbol(y, Decl(downlevelLetConst16.ts, 5, 3)) + +use(z); +>use : Symbol(use, Decl(downlevelLetConst16.ts, 0, 12)) +>z : Symbol(z, Decl(downlevelLetConst16.ts, 6, 3)) + +function foo1() { +>foo1 : Symbol(foo1, Decl(downlevelLetConst16.ts, 9, 7)) + + let x = 1; +>x : Symbol(x, Decl(downlevelLetConst16.ts, 11, 7)) + + use(x); +>use : Symbol(use, Decl(downlevelLetConst16.ts, 0, 12)) +>x : Symbol(x, Decl(downlevelLetConst16.ts, 11, 7)) + + let [y] = [1]; +>y : Symbol(y, Decl(downlevelLetConst16.ts, 13, 9)) + + use(y); +>use : Symbol(use, Decl(downlevelLetConst16.ts, 0, 12)) +>y : Symbol(y, Decl(downlevelLetConst16.ts, 13, 9)) + + let {a: z} = {a: 1}; +>a : Symbol(a, Decl(downlevelLetConst16.ts, 15, 18)) +>z : Symbol(z, Decl(downlevelLetConst16.ts, 15, 9)) +>a : Symbol(a, Decl(downlevelLetConst16.ts, 15, 18)) + + use(z); +>use : Symbol(use, Decl(downlevelLetConst16.ts, 0, 12)) +>z : Symbol(z, Decl(downlevelLetConst16.ts, 15, 9)) +} + +function foo2() { +>foo2 : Symbol(foo2, Decl(downlevelLetConst16.ts, 17, 1)) + { + let x = 1; +>x : Symbol(x, Decl(downlevelLetConst16.ts, 21, 11)) + + use(x); +>use : Symbol(use, Decl(downlevelLetConst16.ts, 0, 12)) +>x : Symbol(x, Decl(downlevelLetConst16.ts, 21, 11)) + + let [y] = [1]; +>y : Symbol(y, Decl(downlevelLetConst16.ts, 23, 13)) + + use(y); +>use : Symbol(use, Decl(downlevelLetConst16.ts, 0, 12)) +>y : Symbol(y, Decl(downlevelLetConst16.ts, 23, 13)) + + let {a: z} = { a: 1 }; +>a : Symbol(a, Decl(downlevelLetConst16.ts, 25, 22)) +>z : Symbol(z, Decl(downlevelLetConst16.ts, 25, 13)) +>a : Symbol(a, Decl(downlevelLetConst16.ts, 25, 22)) + + use(z); +>use : Symbol(use, Decl(downlevelLetConst16.ts, 0, 12)) +>z : Symbol(z, Decl(downlevelLetConst16.ts, 25, 13)) + } + use(x); +>use : Symbol(use, Decl(downlevelLetConst16.ts, 0, 12)) +>x : Symbol(x, Decl(downlevelLetConst16.ts, 4, 3)) +} + +class A { +>A : Symbol(A, Decl(downlevelLetConst16.ts, 29, 1)) + + m1() { +>m1 : Symbol(A.m1, Decl(downlevelLetConst16.ts, 31, 9)) + + let x = 1; +>x : Symbol(x, Decl(downlevelLetConst16.ts, 33, 11)) + + use(x); +>use : Symbol(use, Decl(downlevelLetConst16.ts, 0, 12)) +>x : Symbol(x, Decl(downlevelLetConst16.ts, 33, 11)) + + let [y] = [1]; +>y : Symbol(y, Decl(downlevelLetConst16.ts, 35, 13)) + + use(y); +>use : Symbol(use, Decl(downlevelLetConst16.ts, 0, 12)) +>y : Symbol(y, Decl(downlevelLetConst16.ts, 35, 13)) + + let {a: z} = { a: 1 }; +>a : Symbol(a, Decl(downlevelLetConst16.ts, 37, 22)) +>z : Symbol(z, Decl(downlevelLetConst16.ts, 37, 13)) +>a : Symbol(a, Decl(downlevelLetConst16.ts, 37, 22)) + + use(z); +>use : Symbol(use, Decl(downlevelLetConst16.ts, 0, 12)) +>z : Symbol(z, Decl(downlevelLetConst16.ts, 37, 13)) + } + m2() { +>m2 : Symbol(A.m2, Decl(downlevelLetConst16.ts, 39, 5)) + { + let x = 1; +>x : Symbol(x, Decl(downlevelLetConst16.ts, 42, 15)) + + use(x); +>use : Symbol(use, Decl(downlevelLetConst16.ts, 0, 12)) +>x : Symbol(x, Decl(downlevelLetConst16.ts, 42, 15)) + + let [y] = [1]; +>y : Symbol(y, Decl(downlevelLetConst16.ts, 44, 17)) + + use(y); +>use : Symbol(use, Decl(downlevelLetConst16.ts, 0, 12)) +>y : Symbol(y, Decl(downlevelLetConst16.ts, 44, 17)) + + let {a: z} = { a: 1 }; +>a : Symbol(a, Decl(downlevelLetConst16.ts, 46, 26)) +>z : Symbol(z, Decl(downlevelLetConst16.ts, 46, 17)) +>a : Symbol(a, Decl(downlevelLetConst16.ts, 46, 26)) + + use(z); +>use : Symbol(use, Decl(downlevelLetConst16.ts, 0, 12)) +>z : Symbol(z, Decl(downlevelLetConst16.ts, 46, 17)) + } + use(x); +>use : Symbol(use, Decl(downlevelLetConst16.ts, 0, 12)) +>x : Symbol(x, Decl(downlevelLetConst16.ts, 4, 3)) + } + +} + +class B { +>B : Symbol(B, Decl(downlevelLetConst16.ts, 52, 1)) + + m1() { +>m1 : Symbol(B.m1, Decl(downlevelLetConst16.ts, 54, 9)) + + const x = 1; +>x : Symbol(x, Decl(downlevelLetConst16.ts, 56, 13)) + + use(x); +>use : Symbol(use, Decl(downlevelLetConst16.ts, 0, 12)) +>x : Symbol(x, Decl(downlevelLetConst16.ts, 56, 13)) + + const [y] = [1]; +>y : Symbol(y, Decl(downlevelLetConst16.ts, 58, 15)) + + use(y); +>use : Symbol(use, Decl(downlevelLetConst16.ts, 0, 12)) +>y : Symbol(y, Decl(downlevelLetConst16.ts, 58, 15)) + + const {a: z} = { a: 1 }; +>a : Symbol(a, Decl(downlevelLetConst16.ts, 60, 24)) +>z : Symbol(z, Decl(downlevelLetConst16.ts, 60, 15)) +>a : Symbol(a, Decl(downlevelLetConst16.ts, 60, 24)) + + use(z); +>use : Symbol(use, Decl(downlevelLetConst16.ts, 0, 12)) +>z : Symbol(z, Decl(downlevelLetConst16.ts, 60, 15)) + + } + m2() { +>m2 : Symbol(B.m2, Decl(downlevelLetConst16.ts, 63, 5)) + { + const x = 1; +>x : Symbol(x, Decl(downlevelLetConst16.ts, 66, 17)) + + use(x); +>use : Symbol(use, Decl(downlevelLetConst16.ts, 0, 12)) +>x : Symbol(x, Decl(downlevelLetConst16.ts, 66, 17)) + + const [y] = [1]; +>y : Symbol(y, Decl(downlevelLetConst16.ts, 68, 19)) + + use(y); +>use : Symbol(use, Decl(downlevelLetConst16.ts, 0, 12)) +>y : Symbol(y, Decl(downlevelLetConst16.ts, 68, 19)) + + const {a: z} = { a: 1 }; +>a : Symbol(a, Decl(downlevelLetConst16.ts, 70, 28)) +>z : Symbol(z, Decl(downlevelLetConst16.ts, 70, 19)) +>a : Symbol(a, Decl(downlevelLetConst16.ts, 70, 28)) + + use(z); +>use : Symbol(use, Decl(downlevelLetConst16.ts, 0, 12)) +>z : Symbol(z, Decl(downlevelLetConst16.ts, 70, 19)) + + } + use(x); +>use : Symbol(use, Decl(downlevelLetConst16.ts, 0, 12)) +>x : Symbol(x, Decl(downlevelLetConst16.ts, 4, 3)) + } +} + +function bar1() { +>bar1 : Symbol(bar1, Decl(downlevelLetConst16.ts, 76, 1)) + + const x = 1; +>x : Symbol(x, Decl(downlevelLetConst16.ts, 79, 9)) + + use(x); +>use : Symbol(use, Decl(downlevelLetConst16.ts, 0, 12)) +>x : Symbol(x, Decl(downlevelLetConst16.ts, 79, 9)) + + const [y] = [1]; +>y : Symbol(y, Decl(downlevelLetConst16.ts, 81, 11)) + + use(y); +>use : Symbol(use, Decl(downlevelLetConst16.ts, 0, 12)) +>y : Symbol(y, Decl(downlevelLetConst16.ts, 81, 11)) + + const {a: z} = { a: 1 }; +>a : Symbol(a, Decl(downlevelLetConst16.ts, 83, 20)) +>z : Symbol(z, Decl(downlevelLetConst16.ts, 83, 11)) +>a : Symbol(a, Decl(downlevelLetConst16.ts, 83, 20)) + + use(z); +>use : Symbol(use, Decl(downlevelLetConst16.ts, 0, 12)) +>z : Symbol(z, Decl(downlevelLetConst16.ts, 83, 11)) +} + +function bar2() { +>bar2 : Symbol(bar2, Decl(downlevelLetConst16.ts, 85, 1)) + { + const x = 1; +>x : Symbol(x, Decl(downlevelLetConst16.ts, 89, 13)) + + use(x); +>use : Symbol(use, Decl(downlevelLetConst16.ts, 0, 12)) +>x : Symbol(x, Decl(downlevelLetConst16.ts, 89, 13)) + + const [y] = [1]; +>y : Symbol(y, Decl(downlevelLetConst16.ts, 91, 15)) + + use(y); +>use : Symbol(use, Decl(downlevelLetConst16.ts, 0, 12)) +>y : Symbol(y, Decl(downlevelLetConst16.ts, 91, 15)) + + const {a: z} = { a: 1 }; +>a : Symbol(a, Decl(downlevelLetConst16.ts, 93, 24)) +>z : Symbol(z, Decl(downlevelLetConst16.ts, 93, 15)) +>a : Symbol(a, Decl(downlevelLetConst16.ts, 93, 24)) + + use(z); +>use : Symbol(use, Decl(downlevelLetConst16.ts, 0, 12)) +>z : Symbol(z, Decl(downlevelLetConst16.ts, 93, 15)) + + } + use(x); +>use : Symbol(use, Decl(downlevelLetConst16.ts, 0, 12)) +>x : Symbol(x, Decl(downlevelLetConst16.ts, 4, 3)) +} + +namespace M1 { +>M1 : Symbol(M1, Decl(downlevelLetConst16.ts, 98, 1)) + + let x = 1; +>x : Symbol(x, Decl(downlevelLetConst16.ts, 101, 7)) + + use(x); +>use : Symbol(use, Decl(downlevelLetConst16.ts, 0, 12)) +>x : Symbol(x, Decl(downlevelLetConst16.ts, 101, 7)) + + let [y] = [1]; +>y : Symbol(y, Decl(downlevelLetConst16.ts, 103, 9)) + + use(y); +>use : Symbol(use, Decl(downlevelLetConst16.ts, 0, 12)) +>y : Symbol(y, Decl(downlevelLetConst16.ts, 103, 9)) + + let {a: z} = { a: 1 }; +>a : Symbol(a, Decl(downlevelLetConst16.ts, 105, 18)) +>z : Symbol(z, Decl(downlevelLetConst16.ts, 105, 9)) +>a : Symbol(a, Decl(downlevelLetConst16.ts, 105, 18)) + + use(z); +>use : Symbol(use, Decl(downlevelLetConst16.ts, 0, 12)) +>z : Symbol(z, Decl(downlevelLetConst16.ts, 105, 9)) +} + +namespace M2 { +>M2 : Symbol(M2, Decl(downlevelLetConst16.ts, 107, 1)) + { + let x = 1; +>x : Symbol(x, Decl(downlevelLetConst16.ts, 111, 11)) + + use(x); +>use : Symbol(use, Decl(downlevelLetConst16.ts, 0, 12)) +>x : Symbol(x, Decl(downlevelLetConst16.ts, 111, 11)) + + let [y] = [1]; +>y : Symbol(y, Decl(downlevelLetConst16.ts, 113, 13)) + + use(y); +>use : Symbol(use, Decl(downlevelLetConst16.ts, 0, 12)) +>y : Symbol(y, Decl(downlevelLetConst16.ts, 113, 13)) + + let {a: z} = { a: 1 }; +>a : Symbol(a, Decl(downlevelLetConst16.ts, 115, 22)) +>z : Symbol(z, Decl(downlevelLetConst16.ts, 115, 13)) +>a : Symbol(a, Decl(downlevelLetConst16.ts, 115, 22)) + + use(z); +>use : Symbol(use, Decl(downlevelLetConst16.ts, 0, 12)) +>z : Symbol(z, Decl(downlevelLetConst16.ts, 115, 13)) + } + use(x); +>use : Symbol(use, Decl(downlevelLetConst16.ts, 0, 12)) +>x : Symbol(x, Decl(downlevelLetConst16.ts, 4, 3)) +} + +namespace M3 { +>M3 : Symbol(M3, Decl(downlevelLetConst16.ts, 119, 1)) + + const x = 1; +>x : Symbol(x, Decl(downlevelLetConst16.ts, 122, 9)) + + use(x); +>use : Symbol(use, Decl(downlevelLetConst16.ts, 0, 12)) +>x : Symbol(x, Decl(downlevelLetConst16.ts, 122, 9)) + + const [y] = [1]; +>y : Symbol(y, Decl(downlevelLetConst16.ts, 124, 11)) + + use(y); +>use : Symbol(use, Decl(downlevelLetConst16.ts, 0, 12)) +>y : Symbol(y, Decl(downlevelLetConst16.ts, 124, 11)) + + const {a: z} = { a: 1 }; +>a : Symbol(a, Decl(downlevelLetConst16.ts, 126, 20)) +>z : Symbol(z, Decl(downlevelLetConst16.ts, 126, 11)) +>a : Symbol(a, Decl(downlevelLetConst16.ts, 126, 20)) + + use(z); +>use : Symbol(use, Decl(downlevelLetConst16.ts, 0, 12)) +>z : Symbol(z, Decl(downlevelLetConst16.ts, 126, 11)) + +} + +namespace M4 { +>M4 : Symbol(M4, Decl(downlevelLetConst16.ts, 129, 1)) + { + const x = 1; +>x : Symbol(x, Decl(downlevelLetConst16.ts, 133, 13)) + + use(x); +>use : Symbol(use, Decl(downlevelLetConst16.ts, 0, 12)) +>x : Symbol(x, Decl(downlevelLetConst16.ts, 133, 13)) + + const [y] = [1]; +>y : Symbol(y, Decl(downlevelLetConst16.ts, 135, 15)) + + use(y); +>use : Symbol(use, Decl(downlevelLetConst16.ts, 0, 12)) +>y : Symbol(y, Decl(downlevelLetConst16.ts, 135, 15)) + + const {a: z} = { a: 1 }; +>a : Symbol(a, Decl(downlevelLetConst16.ts, 137, 24)) +>z : Symbol(z, Decl(downlevelLetConst16.ts, 137, 15)) +>a : Symbol(a, Decl(downlevelLetConst16.ts, 137, 24)) + + use(z); +>use : Symbol(use, Decl(downlevelLetConst16.ts, 0, 12)) +>z : Symbol(z, Decl(downlevelLetConst16.ts, 137, 15)) + + } + use(x); +>use : Symbol(use, Decl(downlevelLetConst16.ts, 0, 12)) +>x : Symbol(x, Decl(downlevelLetConst16.ts, 4, 3)) + + use(y); +>use : Symbol(use, Decl(downlevelLetConst16.ts, 0, 12)) +>y : Symbol(y, Decl(downlevelLetConst16.ts, 5, 3)) + + use(z); +>use : Symbol(use, Decl(downlevelLetConst16.ts, 0, 12)) +>z : Symbol(z, Decl(downlevelLetConst16.ts, 6, 3)) +} + +function foo3() { +>foo3 : Symbol(foo3, Decl(downlevelLetConst16.ts, 144, 1)) + + for (let x; ;) { +>x : Symbol(x, Decl(downlevelLetConst16.ts, 147, 12)) + + use(x); +>use : Symbol(use, Decl(downlevelLetConst16.ts, 0, 12)) +>x : Symbol(x, Decl(downlevelLetConst16.ts, 147, 12)) + } + for (let [y] = []; ;) { +>y : Symbol(y, Decl(downlevelLetConst16.ts, 150, 14)) + + use(y); +>use : Symbol(use, Decl(downlevelLetConst16.ts, 0, 12)) +>y : Symbol(y, Decl(downlevelLetConst16.ts, 150, 14)) + } + for (let {a: z} = {a: 1}; ;) { +>a : Symbol(a, Decl(downlevelLetConst16.ts, 153, 23)) +>z : Symbol(z, Decl(downlevelLetConst16.ts, 153, 14)) +>a : Symbol(a, Decl(downlevelLetConst16.ts, 153, 23)) + + use(z); +>use : Symbol(use, Decl(downlevelLetConst16.ts, 0, 12)) +>z : Symbol(z, Decl(downlevelLetConst16.ts, 153, 14)) + } + use(x); +>use : Symbol(use, Decl(downlevelLetConst16.ts, 0, 12)) +>x : Symbol(x, Decl(downlevelLetConst16.ts, 4, 3)) +} + +function foo4() { +>foo4 : Symbol(foo4, Decl(downlevelLetConst16.ts, 157, 1)) + + for (const x = 1; ;) { +>x : Symbol(x, Decl(downlevelLetConst16.ts, 160, 14)) + + use(x); +>use : Symbol(use, Decl(downlevelLetConst16.ts, 0, 12)) +>x : Symbol(x, Decl(downlevelLetConst16.ts, 160, 14)) + } + for (const [y] = []; ;) { +>y : Symbol(y, Decl(downlevelLetConst16.ts, 163, 16)) + + use(y); +>use : Symbol(use, Decl(downlevelLetConst16.ts, 0, 12)) +>y : Symbol(y, Decl(downlevelLetConst16.ts, 163, 16)) + } + for (const {a: z} = { a: 1 }; ;) { +>a : Symbol(a, Decl(downlevelLetConst16.ts, 166, 25)) +>z : Symbol(z, Decl(downlevelLetConst16.ts, 166, 16)) +>a : Symbol(a, Decl(downlevelLetConst16.ts, 166, 25)) + + use(z); +>use : Symbol(use, Decl(downlevelLetConst16.ts, 0, 12)) +>z : Symbol(z, Decl(downlevelLetConst16.ts, 166, 16)) + } + use(x); +>use : Symbol(use, Decl(downlevelLetConst16.ts, 0, 12)) +>x : Symbol(x, Decl(downlevelLetConst16.ts, 4, 3)) +} + +function foo5() { +>foo5 : Symbol(foo5, Decl(downlevelLetConst16.ts, 170, 1)) + + for (let x in []) { +>x : Symbol(x, Decl(downlevelLetConst16.ts, 173, 12)) + + use(x); +>use : Symbol(use, Decl(downlevelLetConst16.ts, 0, 12)) +>x : Symbol(x, Decl(downlevelLetConst16.ts, 173, 12)) + } + use(x); +>use : Symbol(use, Decl(downlevelLetConst16.ts, 0, 12)) +>x : Symbol(x, Decl(downlevelLetConst16.ts, 4, 3)) +} + +function foo6() { +>foo6 : Symbol(foo6, Decl(downlevelLetConst16.ts, 177, 1)) + + for (const x in []) { +>x : Symbol(x, Decl(downlevelLetConst16.ts, 180, 14)) + + use(x); +>use : Symbol(use, Decl(downlevelLetConst16.ts, 0, 12)) +>x : Symbol(x, Decl(downlevelLetConst16.ts, 180, 14)) + } + use(x); +>use : Symbol(use, Decl(downlevelLetConst16.ts, 0, 12)) +>x : Symbol(x, Decl(downlevelLetConst16.ts, 4, 3)) +} + +function foo7() { +>foo7 : Symbol(foo7, Decl(downlevelLetConst16.ts, 184, 1)) + + for (let x of []) { +>x : Symbol(x, Decl(downlevelLetConst16.ts, 187, 12)) + + use(x); +>use : Symbol(use, Decl(downlevelLetConst16.ts, 0, 12)) +>x : Symbol(x, Decl(downlevelLetConst16.ts, 187, 12)) + } + use(x); +>use : Symbol(use, Decl(downlevelLetConst16.ts, 0, 12)) +>x : Symbol(x, Decl(downlevelLetConst16.ts, 4, 3)) +} + +function foo8() { +>foo8 : Symbol(foo8, Decl(downlevelLetConst16.ts, 191, 1)) + + for (let [x] of []) { +>x : Symbol(x, Decl(downlevelLetConst16.ts, 194, 14)) + + use(x); +>use : Symbol(use, Decl(downlevelLetConst16.ts, 0, 12)) +>x : Symbol(x, Decl(downlevelLetConst16.ts, 194, 14)) + } + use(x); +>use : Symbol(use, Decl(downlevelLetConst16.ts, 0, 12)) +>x : Symbol(x, Decl(downlevelLetConst16.ts, 4, 3)) +} + +function foo9() { +>foo9 : Symbol(foo9, Decl(downlevelLetConst16.ts, 198, 1)) + + for (let {a: x} of []) { +>x : Symbol(x, Decl(downlevelLetConst16.ts, 201, 14)) + + use(x); +>use : Symbol(use, Decl(downlevelLetConst16.ts, 0, 12)) +>x : Symbol(x, Decl(downlevelLetConst16.ts, 201, 14)) + } + use(x); +>use : Symbol(use, Decl(downlevelLetConst16.ts, 0, 12)) +>x : Symbol(x, Decl(downlevelLetConst16.ts, 4, 3)) +} + +function foo10() { +>foo10 : Symbol(foo10, Decl(downlevelLetConst16.ts, 205, 1)) + + for (const x of []) { +>x : Symbol(x, Decl(downlevelLetConst16.ts, 208, 14)) + + use(x); +>use : Symbol(use, Decl(downlevelLetConst16.ts, 0, 12)) +>x : Symbol(x, Decl(downlevelLetConst16.ts, 208, 14)) + } + use(x); +>use : Symbol(use, Decl(downlevelLetConst16.ts, 0, 12)) +>x : Symbol(x, Decl(downlevelLetConst16.ts, 4, 3)) +} + +function foo11() { +>foo11 : Symbol(foo11, Decl(downlevelLetConst16.ts, 212, 1)) + + for (const [x] of []) { +>x : Symbol(x, Decl(downlevelLetConst16.ts, 215, 16)) + + use(x); +>use : Symbol(use, Decl(downlevelLetConst16.ts, 0, 12)) +>x : Symbol(x, Decl(downlevelLetConst16.ts, 215, 16)) + } + use(x); +>use : Symbol(use, Decl(downlevelLetConst16.ts, 0, 12)) +>x : Symbol(x, Decl(downlevelLetConst16.ts, 4, 3)) +} + +function foo12() { +>foo12 : Symbol(foo12, Decl(downlevelLetConst16.ts, 219, 1)) + + for (const {a: x} of []) { +>x : Symbol(x, Decl(downlevelLetConst16.ts, 222, 16)) + + use(x); +>use : Symbol(use, Decl(downlevelLetConst16.ts, 0, 12)) +>x : Symbol(x, Decl(downlevelLetConst16.ts, 222, 16)) + } + use(x); +>use : Symbol(use, Decl(downlevelLetConst16.ts, 0, 12)) +>x : Symbol(x, Decl(downlevelLetConst16.ts, 4, 3)) +} diff --git a/tests/baselines/reference/downlevelLetConst16(target=es5).types b/tests/baselines/reference/downlevelLetConst16(target=es5).types new file mode 100644 index 0000000000000..95777611fb721 --- /dev/null +++ b/tests/baselines/reference/downlevelLetConst16(target=es5).types @@ -0,0 +1,1128 @@ +//// [tests/cases/compiler/downlevelLetConst16.ts] //// + +=== downlevelLetConst16.ts === +'use strict' +>'use strict' : "use strict" +> : ^^^^^^^^^^^^ + +declare function use(a: any); +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>a : any +> : ^^^ + +var x = 10; +>x : number +> : ^^^^^^ +>10 : 10 +> : ^^ + +var y; +>y : any +> : ^^^ + +var z; +>z : any +> : ^^^ + +use(x); +>use(x) : any +> : ^^^ +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>x : number +> : ^^^^^^ + +use(y); +>use(y) : any +> : ^^^ +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>y : any +> : ^^^ + +use(z); +>use(z) : any +> : ^^^ +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>z : any +> : ^^^ + +function foo1() { +>foo1 : () => void +> : ^^^^^^^^^^ + + let x = 1; +>x : number +> : ^^^^^^ +>1 : 1 +> : ^ + + use(x); +>use(x) : any +> : ^^^ +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>x : number +> : ^^^^^^ + + let [y] = [1]; +>y : number +> : ^^^^^^ +>[1] : [number] +> : ^^^^^^^^ +>1 : 1 +> : ^ + + use(y); +>use(y) : any +> : ^^^ +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>y : number +> : ^^^^^^ + + let {a: z} = {a: 1}; +>a : any +> : ^^^ +>z : number +> : ^^^^^^ +>{a: 1} : { a: number; } +> : ^^^^^^^^^^^^^^ +>a : number +> : ^^^^^^ +>1 : 1 +> : ^ + + use(z); +>use(z) : any +> : ^^^ +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>z : number +> : ^^^^^^ +} + +function foo2() { +>foo2 : () => void +> : ^^^^^^^^^^ + { + let x = 1; +>x : number +> : ^^^^^^ +>1 : 1 +> : ^ + + use(x); +>use(x) : any +> : ^^^ +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>x : number +> : ^^^^^^ + + let [y] = [1]; +>y : number +> : ^^^^^^ +>[1] : [number] +> : ^^^^^^^^ +>1 : 1 +> : ^ + + use(y); +>use(y) : any +> : ^^^ +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>y : number +> : ^^^^^^ + + let {a: z} = { a: 1 }; +>a : any +> : ^^^ +>z : number +> : ^^^^^^ +>{ a: 1 } : { a: number; } +> : ^^^^^^^^^^^^^^ +>a : number +> : ^^^^^^ +>1 : 1 +> : ^ + + use(z); +>use(z) : any +> : ^^^ +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>z : number +> : ^^^^^^ + } + use(x); +>use(x) : any +> : ^^^ +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>x : number +> : ^^^^^^ +} + +class A { +>A : A +> : ^ + + m1() { +>m1 : () => void +> : ^^^^^^^^^^ + + let x = 1; +>x : number +> : ^^^^^^ +>1 : 1 +> : ^ + + use(x); +>use(x) : any +> : ^^^ +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>x : number +> : ^^^^^^ + + let [y] = [1]; +>y : number +> : ^^^^^^ +>[1] : [number] +> : ^^^^^^^^ +>1 : 1 +> : ^ + + use(y); +>use(y) : any +> : ^^^ +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>y : number +> : ^^^^^^ + + let {a: z} = { a: 1 }; +>a : any +> : ^^^ +>z : number +> : ^^^^^^ +>{ a: 1 } : { a: number; } +> : ^^^^^^^^^^^^^^ +>a : number +> : ^^^^^^ +>1 : 1 +> : ^ + + use(z); +>use(z) : any +> : ^^^ +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>z : number +> : ^^^^^^ + } + m2() { +>m2 : () => void +> : ^^^^^^^^^^ + { + let x = 1; +>x : number +> : ^^^^^^ +>1 : 1 +> : ^ + + use(x); +>use(x) : any +> : ^^^ +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>x : number +> : ^^^^^^ + + let [y] = [1]; +>y : number +> : ^^^^^^ +>[1] : [number] +> : ^^^^^^^^ +>1 : 1 +> : ^ + + use(y); +>use(y) : any +> : ^^^ +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>y : number +> : ^^^^^^ + + let {a: z} = { a: 1 }; +>a : any +> : ^^^ +>z : number +> : ^^^^^^ +>{ a: 1 } : { a: number; } +> : ^^^^^^^^^^^^^^ +>a : number +> : ^^^^^^ +>1 : 1 +> : ^ + + use(z); +>use(z) : any +> : ^^^ +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>z : number +> : ^^^^^^ + } + use(x); +>use(x) : any +> : ^^^ +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>x : number +> : ^^^^^^ + } + +} + +class B { +>B : B +> : ^ + + m1() { +>m1 : () => void +> : ^^^^^^^^^^ + + const x = 1; +>x : 1 +> : ^ +>1 : 1 +> : ^ + + use(x); +>use(x) : any +> : ^^^ +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>x : 1 +> : ^ + + const [y] = [1]; +>y : number +> : ^^^^^^ +>[1] : [number] +> : ^^^^^^^^ +>1 : 1 +> : ^ + + use(y); +>use(y) : any +> : ^^^ +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>y : number +> : ^^^^^^ + + const {a: z} = { a: 1 }; +>a : any +> : ^^^ +>z : number +> : ^^^^^^ +>{ a: 1 } : { a: number; } +> : ^^^^^^^^^^^^^^ +>a : number +> : ^^^^^^ +>1 : 1 +> : ^ + + use(z); +>use(z) : any +> : ^^^ +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>z : number +> : ^^^^^^ + + } + m2() { +>m2 : () => void +> : ^^^^^^^^^^ + { + const x = 1; +>x : 1 +> : ^ +>1 : 1 +> : ^ + + use(x); +>use(x) : any +> : ^^^ +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>x : 1 +> : ^ + + const [y] = [1]; +>y : number +> : ^^^^^^ +>[1] : [number] +> : ^^^^^^^^ +>1 : 1 +> : ^ + + use(y); +>use(y) : any +> : ^^^ +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>y : number +> : ^^^^^^ + + const {a: z} = { a: 1 }; +>a : any +> : ^^^ +>z : number +> : ^^^^^^ +>{ a: 1 } : { a: number; } +> : ^^^^^^^^^^^^^^ +>a : number +> : ^^^^^^ +>1 : 1 +> : ^ + + use(z); +>use(z) : any +> : ^^^ +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>z : number +> : ^^^^^^ + + } + use(x); +>use(x) : any +> : ^^^ +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>x : number +> : ^^^^^^ + } +} + +function bar1() { +>bar1 : () => void +> : ^^^^^^^^^^ + + const x = 1; +>x : 1 +> : ^ +>1 : 1 +> : ^ + + use(x); +>use(x) : any +> : ^^^ +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>x : 1 +> : ^ + + const [y] = [1]; +>y : number +> : ^^^^^^ +>[1] : [number] +> : ^^^^^^^^ +>1 : 1 +> : ^ + + use(y); +>use(y) : any +> : ^^^ +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>y : number +> : ^^^^^^ + + const {a: z} = { a: 1 }; +>a : any +> : ^^^ +>z : number +> : ^^^^^^ +>{ a: 1 } : { a: number; } +> : ^^^^^^^^^^^^^^ +>a : number +> : ^^^^^^ +>1 : 1 +> : ^ + + use(z); +>use(z) : any +> : ^^^ +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>z : number +> : ^^^^^^ +} + +function bar2() { +>bar2 : () => void +> : ^^^^^^^^^^ + { + const x = 1; +>x : 1 +> : ^ +>1 : 1 +> : ^ + + use(x); +>use(x) : any +> : ^^^ +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>x : 1 +> : ^ + + const [y] = [1]; +>y : number +> : ^^^^^^ +>[1] : [number] +> : ^^^^^^^^ +>1 : 1 +> : ^ + + use(y); +>use(y) : any +> : ^^^ +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>y : number +> : ^^^^^^ + + const {a: z} = { a: 1 }; +>a : any +> : ^^^ +>z : number +> : ^^^^^^ +>{ a: 1 } : { a: number; } +> : ^^^^^^^^^^^^^^ +>a : number +> : ^^^^^^ +>1 : 1 +> : ^ + + use(z); +>use(z) : any +> : ^^^ +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>z : number +> : ^^^^^^ + + } + use(x); +>use(x) : any +> : ^^^ +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>x : number +> : ^^^^^^ +} + +namespace M1 { +>M1 : typeof M1 +> : ^^^^^^^^^ + + let x = 1; +>x : number +> : ^^^^^^ +>1 : 1 +> : ^ + + use(x); +>use(x) : any +> : ^^^ +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>x : number +> : ^^^^^^ + + let [y] = [1]; +>y : number +> : ^^^^^^ +>[1] : [number] +> : ^^^^^^^^ +>1 : 1 +> : ^ + + use(y); +>use(y) : any +> : ^^^ +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>y : number +> : ^^^^^^ + + let {a: z} = { a: 1 }; +>a : any +> : ^^^ +>z : number +> : ^^^^^^ +>{ a: 1 } : { a: number; } +> : ^^^^^^^^^^^^^^ +>a : number +> : ^^^^^^ +>1 : 1 +> : ^ + + use(z); +>use(z) : any +> : ^^^ +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>z : number +> : ^^^^^^ +} + +namespace M2 { +>M2 : typeof M2 +> : ^^^^^^^^^ + { + let x = 1; +>x : number +> : ^^^^^^ +>1 : 1 +> : ^ + + use(x); +>use(x) : any +> : ^^^ +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>x : number +> : ^^^^^^ + + let [y] = [1]; +>y : number +> : ^^^^^^ +>[1] : [number] +> : ^^^^^^^^ +>1 : 1 +> : ^ + + use(y); +>use(y) : any +> : ^^^ +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>y : number +> : ^^^^^^ + + let {a: z} = { a: 1 }; +>a : any +> : ^^^ +>z : number +> : ^^^^^^ +>{ a: 1 } : { a: number; } +> : ^^^^^^^^^^^^^^ +>a : number +> : ^^^^^^ +>1 : 1 +> : ^ + + use(z); +>use(z) : any +> : ^^^ +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>z : number +> : ^^^^^^ + } + use(x); +>use(x) : any +> : ^^^ +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>x : number +> : ^^^^^^ +} + +namespace M3 { +>M3 : typeof M3 +> : ^^^^^^^^^ + + const x = 1; +>x : 1 +> : ^ +>1 : 1 +> : ^ + + use(x); +>use(x) : any +> : ^^^ +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>x : 1 +> : ^ + + const [y] = [1]; +>y : number +> : ^^^^^^ +>[1] : [number] +> : ^^^^^^^^ +>1 : 1 +> : ^ + + use(y); +>use(y) : any +> : ^^^ +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>y : number +> : ^^^^^^ + + const {a: z} = { a: 1 }; +>a : any +> : ^^^ +>z : number +> : ^^^^^^ +>{ a: 1 } : { a: number; } +> : ^^^^^^^^^^^^^^ +>a : number +> : ^^^^^^ +>1 : 1 +> : ^ + + use(z); +>use(z) : any +> : ^^^ +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>z : number +> : ^^^^^^ + +} + +namespace M4 { +>M4 : typeof M4 +> : ^^^^^^^^^ + { + const x = 1; +>x : 1 +> : ^ +>1 : 1 +> : ^ + + use(x); +>use(x) : any +> : ^^^ +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>x : 1 +> : ^ + + const [y] = [1]; +>y : number +> : ^^^^^^ +>[1] : [number] +> : ^^^^^^^^ +>1 : 1 +> : ^ + + use(y); +>use(y) : any +> : ^^^ +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>y : number +> : ^^^^^^ + + const {a: z} = { a: 1 }; +>a : any +> : ^^^ +>z : number +> : ^^^^^^ +>{ a: 1 } : { a: number; } +> : ^^^^^^^^^^^^^^ +>a : number +> : ^^^^^^ +>1 : 1 +> : ^ + + use(z); +>use(z) : any +> : ^^^ +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>z : number +> : ^^^^^^ + + } + use(x); +>use(x) : any +> : ^^^ +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>x : number +> : ^^^^^^ + + use(y); +>use(y) : any +> : ^^^ +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>y : any +> : ^^^ + + use(z); +>use(z) : any +> : ^^^ +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>z : any +> : ^^^ +} + +function foo3() { +>foo3 : () => void +> : ^^^^^^^^^^ + + for (let x; ;) { +>x : any +> : ^^^ + + use(x); +>use(x) : any +> : ^^^ +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>x : any +> : ^^^ + } + for (let [y] = []; ;) { +>y : undefined +> : ^^^^^^^^^ +>[] : [] +> : ^^ + + use(y); +>use(y) : any +> : ^^^ +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>y : undefined +> : ^^^^^^^^^ + } + for (let {a: z} = {a: 1}; ;) { +>a : any +> : ^^^ +>z : number +> : ^^^^^^ +>{a: 1} : { a: number; } +> : ^^^^^^^^^^^^^^ +>a : number +> : ^^^^^^ +>1 : 1 +> : ^ + + use(z); +>use(z) : any +> : ^^^ +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>z : number +> : ^^^^^^ + } + use(x); +>use(x) : any +> : ^^^ +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>x : number +> : ^^^^^^ +} + +function foo4() { +>foo4 : () => void +> : ^^^^^^^^^^ + + for (const x = 1; ;) { +>x : 1 +> : ^ +>1 : 1 +> : ^ + + use(x); +>use(x) : any +> : ^^^ +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>x : 1 +> : ^ + } + for (const [y] = []; ;) { +>y : undefined +> : ^^^^^^^^^ +>[] : [] +> : ^^ + + use(y); +>use(y) : any +> : ^^^ +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>y : undefined +> : ^^^^^^^^^ + } + for (const {a: z} = { a: 1 }; ;) { +>a : any +> : ^^^ +>z : number +> : ^^^^^^ +>{ a: 1 } : { a: number; } +> : ^^^^^^^^^^^^^^ +>a : number +> : ^^^^^^ +>1 : 1 +> : ^ + + use(z); +>use(z) : any +> : ^^^ +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>z : number +> : ^^^^^^ + } + use(x); +>use(x) : any +> : ^^^ +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>x : number +> : ^^^^^^ +} + +function foo5() { +>foo5 : () => void +> : ^^^^^^^^^^ + + for (let x in []) { +>x : string +> : ^^^^^^ +>[] : undefined[] +> : ^^^^^^^^^^^ + + use(x); +>use(x) : any +> : ^^^ +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>x : string +> : ^^^^^^ + } + use(x); +>use(x) : any +> : ^^^ +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>x : number +> : ^^^^^^ +} + +function foo6() { +>foo6 : () => void +> : ^^^^^^^^^^ + + for (const x in []) { +>x : string +> : ^^^^^^ +>[] : undefined[] +> : ^^^^^^^^^^^ + + use(x); +>use(x) : any +> : ^^^ +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>x : string +> : ^^^^^^ + } + use(x); +>use(x) : any +> : ^^^ +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>x : number +> : ^^^^^^ +} + +function foo7() { +>foo7 : () => void +> : ^^^^^^^^^^ + + for (let x of []) { +>x : any +> : ^^^ +>[] : undefined[] +> : ^^^^^^^^^^^ + + use(x); +>use(x) : any +> : ^^^ +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>x : any +> : ^^^ + } + use(x); +>use(x) : any +> : ^^^ +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>x : number +> : ^^^^^^ +} + +function foo8() { +>foo8 : () => void +> : ^^^^^^^^^^ + + for (let [x] of []) { +>x : any +> : ^^^ +>[] : undefined[] +> : ^^^^^^^^^^^ + + use(x); +>use(x) : any +> : ^^^ +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>x : any +> : ^^^ + } + use(x); +>use(x) : any +> : ^^^ +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>x : number +> : ^^^^^^ +} + +function foo9() { +>foo9 : () => void +> : ^^^^^^^^^^ + + for (let {a: x} of []) { +>a : any +> : ^^^ +>x : any +> : ^^^ +>[] : undefined[] +> : ^^^^^^^^^^^ + + use(x); +>use(x) : any +> : ^^^ +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>x : any +> : ^^^ + } + use(x); +>use(x) : any +> : ^^^ +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>x : number +> : ^^^^^^ +} + +function foo10() { +>foo10 : () => void +> : ^^^^^^^^^^ + + for (const x of []) { +>x : any +> : ^^^ +>[] : undefined[] +> : ^^^^^^^^^^^ + + use(x); +>use(x) : any +> : ^^^ +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>x : any +> : ^^^ + } + use(x); +>use(x) : any +> : ^^^ +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>x : number +> : ^^^^^^ +} + +function foo11() { +>foo11 : () => void +> : ^^^^^^^^^^ + + for (const [x] of []) { +>x : any +> : ^^^ +>[] : undefined[] +> : ^^^^^^^^^^^ + + use(x); +>use(x) : any +> : ^^^ +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>x : any +> : ^^^ + } + use(x); +>use(x) : any +> : ^^^ +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>x : number +> : ^^^^^^ +} + +function foo12() { +>foo12 : () => void +> : ^^^^^^^^^^ + + for (const {a: x} of []) { +>a : any +> : ^^^ +>x : any +> : ^^^ +>[] : undefined[] +> : ^^^^^^^^^^^ + + use(x); +>use(x) : any +> : ^^^ +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>x : any +> : ^^^ + } + use(x); +>use(x) : any +> : ^^^ +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>x : number +> : ^^^^^^ +} diff --git a/tests/baselines/reference/downlevelLetConst17(target=es2015).js b/tests/baselines/reference/downlevelLetConst17(target=es2015).js new file mode 100644 index 0000000000000..7c23e936a10a6 --- /dev/null +++ b/tests/baselines/reference/downlevelLetConst17(target=es2015).js @@ -0,0 +1,124 @@ +//// [tests/cases/compiler/downlevelLetConst17.ts] //// + +//// [downlevelLetConst17.ts] +'use strict' + +declare function use(a: any); + +var x; +for (let x = 10; ;) { + use(x); +} +use(x); + +for (const x = 10; ;) { + use(x); +} + +for (; ;) { + let x = 10; + use(x); + x = 1; +} + +for (; ;) { + const x = 10; + use(x); +} + +for (let x; ;) { + use(x); + x = 1; +} + +for (; ;) { + let x; + use(x); + x = 1; +} + +while (true) { + let x; + use(x); +} + +while (true) { + const x = true; + use(x); +} + +do { + let x; + use(x); +} while (true); + +do { + let x; + use(x); +} while (true); + +for (let x in []) { + use(x); +} + +for (const x in []) { + use(x); +} + +for (const x of []) { + use(x); +} + +//// [downlevelLetConst17.js] +'use strict'; +var x; +for (let x = 10;;) { + use(x); +} +use(x); +for (const x = 10;;) { + use(x); +} +for (;;) { + let x = 10; + use(x); + x = 1; +} +for (;;) { + const x = 10; + use(x); +} +for (let x;;) { + use(x); + x = 1; +} +for (;;) { + let x; + use(x); + x = 1; +} +while (true) { + let x; + use(x); +} +while (true) { + const x = true; + use(x); +} +do { + let x; + use(x); +} while (true); +do { + let x; + use(x); +} while (true); +for (let x in []) { + use(x); +} +for (const x in []) { + use(x); +} +for (const x of []) { + use(x); +} diff --git a/tests/baselines/reference/downlevelLetConst17.symbols b/tests/baselines/reference/downlevelLetConst17(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/downlevelLetConst17.symbols rename to tests/baselines/reference/downlevelLetConst17(target=es2015).symbols diff --git a/tests/baselines/reference/downlevelLetConst17.types b/tests/baselines/reference/downlevelLetConst17(target=es2015).types similarity index 100% rename from tests/baselines/reference/downlevelLetConst17.types rename to tests/baselines/reference/downlevelLetConst17(target=es2015).types diff --git a/tests/baselines/reference/downlevelLetConst17.js b/tests/baselines/reference/downlevelLetConst17(target=es5).js similarity index 100% rename from tests/baselines/reference/downlevelLetConst17.js rename to tests/baselines/reference/downlevelLetConst17(target=es5).js diff --git a/tests/baselines/reference/downlevelLetConst17(target=es5).symbols b/tests/baselines/reference/downlevelLetConst17(target=es5).symbols new file mode 100644 index 0000000000000..86938f536bd52 --- /dev/null +++ b/tests/baselines/reference/downlevelLetConst17(target=es5).symbols @@ -0,0 +1,136 @@ +//// [tests/cases/compiler/downlevelLetConst17.ts] //// + +=== downlevelLetConst17.ts === +'use strict' + +declare function use(a: any); +>use : Symbol(use, Decl(downlevelLetConst17.ts, 0, 12)) +>a : Symbol(a, Decl(downlevelLetConst17.ts, 2, 21)) + +var x; +>x : Symbol(x, Decl(downlevelLetConst17.ts, 4, 3)) + +for (let x = 10; ;) { +>x : Symbol(x, Decl(downlevelLetConst17.ts, 5, 8)) + + use(x); +>use : Symbol(use, Decl(downlevelLetConst17.ts, 0, 12)) +>x : Symbol(x, Decl(downlevelLetConst17.ts, 5, 8)) +} +use(x); +>use : Symbol(use, Decl(downlevelLetConst17.ts, 0, 12)) +>x : Symbol(x, Decl(downlevelLetConst17.ts, 4, 3)) + +for (const x = 10; ;) { +>x : Symbol(x, Decl(downlevelLetConst17.ts, 10, 10)) + + use(x); +>use : Symbol(use, Decl(downlevelLetConst17.ts, 0, 12)) +>x : Symbol(x, Decl(downlevelLetConst17.ts, 10, 10)) +} + +for (; ;) { + let x = 10; +>x : Symbol(x, Decl(downlevelLetConst17.ts, 15, 7)) + + use(x); +>use : Symbol(use, Decl(downlevelLetConst17.ts, 0, 12)) +>x : Symbol(x, Decl(downlevelLetConst17.ts, 15, 7)) + + x = 1; +>x : Symbol(x, Decl(downlevelLetConst17.ts, 15, 7)) +} + +for (; ;) { + const x = 10; +>x : Symbol(x, Decl(downlevelLetConst17.ts, 21, 9)) + + use(x); +>use : Symbol(use, Decl(downlevelLetConst17.ts, 0, 12)) +>x : Symbol(x, Decl(downlevelLetConst17.ts, 21, 9)) +} + +for (let x; ;) { +>x : Symbol(x, Decl(downlevelLetConst17.ts, 25, 8)) + + use(x); +>use : Symbol(use, Decl(downlevelLetConst17.ts, 0, 12)) +>x : Symbol(x, Decl(downlevelLetConst17.ts, 25, 8)) + + x = 1; +>x : Symbol(x, Decl(downlevelLetConst17.ts, 25, 8)) +} + +for (; ;) { + let x; +>x : Symbol(x, Decl(downlevelLetConst17.ts, 31, 7)) + + use(x); +>use : Symbol(use, Decl(downlevelLetConst17.ts, 0, 12)) +>x : Symbol(x, Decl(downlevelLetConst17.ts, 31, 7)) + + x = 1; +>x : Symbol(x, Decl(downlevelLetConst17.ts, 31, 7)) +} + +while (true) { + let x; +>x : Symbol(x, Decl(downlevelLetConst17.ts, 37, 7)) + + use(x); +>use : Symbol(use, Decl(downlevelLetConst17.ts, 0, 12)) +>x : Symbol(x, Decl(downlevelLetConst17.ts, 37, 7)) +} + +while (true) { + const x = true; +>x : Symbol(x, Decl(downlevelLetConst17.ts, 42, 9)) + + use(x); +>use : Symbol(use, Decl(downlevelLetConst17.ts, 0, 12)) +>x : Symbol(x, Decl(downlevelLetConst17.ts, 42, 9)) +} + +do { + let x; +>x : Symbol(x, Decl(downlevelLetConst17.ts, 47, 7)) + + use(x); +>use : Symbol(use, Decl(downlevelLetConst17.ts, 0, 12)) +>x : Symbol(x, Decl(downlevelLetConst17.ts, 47, 7)) + +} while (true); + +do { + let x; +>x : Symbol(x, Decl(downlevelLetConst17.ts, 52, 7)) + + use(x); +>use : Symbol(use, Decl(downlevelLetConst17.ts, 0, 12)) +>x : Symbol(x, Decl(downlevelLetConst17.ts, 52, 7)) + +} while (true); + +for (let x in []) { +>x : Symbol(x, Decl(downlevelLetConst17.ts, 56, 8)) + + use(x); +>use : Symbol(use, Decl(downlevelLetConst17.ts, 0, 12)) +>x : Symbol(x, Decl(downlevelLetConst17.ts, 56, 8)) +} + +for (const x in []) { +>x : Symbol(x, Decl(downlevelLetConst17.ts, 60, 10)) + + use(x); +>use : Symbol(use, Decl(downlevelLetConst17.ts, 0, 12)) +>x : Symbol(x, Decl(downlevelLetConst17.ts, 60, 10)) +} + +for (const x of []) { +>x : Symbol(x, Decl(downlevelLetConst17.ts, 64, 10)) + + use(x); +>use : Symbol(use, Decl(downlevelLetConst17.ts, 0, 12)) +>x : Symbol(x, Decl(downlevelLetConst17.ts, 64, 10)) +} diff --git a/tests/baselines/reference/downlevelLetConst17(target=es5).types b/tests/baselines/reference/downlevelLetConst17(target=es5).types new file mode 100644 index 0000000000000..1e6193638c4c5 --- /dev/null +++ b/tests/baselines/reference/downlevelLetConst17(target=es5).types @@ -0,0 +1,220 @@ +//// [tests/cases/compiler/downlevelLetConst17.ts] //// + +=== downlevelLetConst17.ts === +'use strict' +>'use strict' : "use strict" +> : ^^^^^^^^^^^^ + +declare function use(a: any); +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>a : any + +var x; +>x : any + +for (let x = 10; ;) { +>x : number +> : ^^^^^^ +>10 : 10 +> : ^^ + + use(x); +>use(x) : any +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>x : number +> : ^^^^^^ +} +use(x); +>use(x) : any +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>x : any + +for (const x = 10; ;) { +>x : 10 +> : ^^ +>10 : 10 +> : ^^ + + use(x); +>use(x) : any +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>x : 10 +> : ^^ +} + +for (; ;) { + let x = 10; +>x : number +> : ^^^^^^ +>10 : 10 +> : ^^ + + use(x); +>use(x) : any +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>x : number +> : ^^^^^^ + + x = 1; +>x = 1 : 1 +> : ^ +>x : number +> : ^^^^^^ +>1 : 1 +> : ^ +} + +for (; ;) { + const x = 10; +>x : 10 +> : ^^ +>10 : 10 +> : ^^ + + use(x); +>use(x) : any +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>x : 10 +> : ^^ +} + +for (let x; ;) { +>x : any + + use(x); +>use(x) : any +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>x : any + + x = 1; +>x = 1 : 1 +> : ^ +>x : any +>1 : 1 +> : ^ +} + +for (; ;) { + let x; +>x : any + + use(x); +>use(x) : any +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>x : any + + x = 1; +>x = 1 : 1 +> : ^ +>x : any +>1 : 1 +> : ^ +} + +while (true) { +>true : true +> : ^^^^ + + let x; +>x : any + + use(x); +>use(x) : any +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>x : any +} + +while (true) { +>true : true +> : ^^^^ + + const x = true; +>x : true +> : ^^^^ +>true : true +> : ^^^^ + + use(x); +>use(x) : any +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>x : true +> : ^^^^ +} + +do { + let x; +>x : any + + use(x); +>use(x) : any +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>x : any + +} while (true); +>true : true +> : ^^^^ + +do { + let x; +>x : any + + use(x); +>use(x) : any +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>x : any + +} while (true); +>true : true +> : ^^^^ + +for (let x in []) { +>x : string +> : ^^^^^^ +>[] : undefined[] +> : ^^^^^^^^^^^ + + use(x); +>use(x) : any +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>x : string +> : ^^^^^^ +} + +for (const x in []) { +>x : string +> : ^^^^^^ +>[] : undefined[] +> : ^^^^^^^^^^^ + + use(x); +>use(x) : any +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>x : string +> : ^^^^^^ +} + +for (const x of []) { +>x : any +>[] : undefined[] +> : ^^^^^^^^^^^ + + use(x); +>use(x) : any +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>x : any +} diff --git a/tests/baselines/reference/downlevelLetConst18(target=es2015).js b/tests/baselines/reference/downlevelLetConst18(target=es2015).js new file mode 100644 index 0000000000000..984215033a932 --- /dev/null +++ b/tests/baselines/reference/downlevelLetConst18(target=es2015).js @@ -0,0 +1,59 @@ +//// [tests/cases/compiler/downlevelLetConst18.ts] //// + +//// [downlevelLetConst18.ts] +'use strict' + +for (let x; ;) { + function foo() { x }; +} + +for (let x; ;) { + function foo1() { x }; +} + +for (let x; ;) { + (() => { x })(); +} + +for (const x = 1; ;) { + (() => { x })(); +} + +for (let x; ;) { + ({ foo() { x }}) +} + +for (let x; ;) { + ({ get foo() { return x } }) +} + +for (let x; ;) { + ({ set foo(v) { x } }) +} + + +//// [downlevelLetConst18.js] +'use strict'; +for (let x;;) { + function foo() { x; } + ; +} +for (let x;;) { + function foo1() { x; } + ; +} +for (let x;;) { + (() => { x; })(); +} +for (const x = 1;;) { + (() => { x; })(); +} +for (let x;;) { + ({ foo() { x; } }); +} +for (let x;;) { + ({ get foo() { return x; } }); +} +for (let x;;) { + ({ set foo(v) { x; } }); +} diff --git a/tests/baselines/reference/downlevelLetConst18.symbols b/tests/baselines/reference/downlevelLetConst18(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/downlevelLetConst18.symbols rename to tests/baselines/reference/downlevelLetConst18(target=es2015).symbols diff --git a/tests/baselines/reference/downlevelLetConst18(target=es2015).types b/tests/baselines/reference/downlevelLetConst18(target=es2015).types new file mode 100644 index 0000000000000..0794966a9d03a --- /dev/null +++ b/tests/baselines/reference/downlevelLetConst18(target=es2015).types @@ -0,0 +1,93 @@ +//// [tests/cases/compiler/downlevelLetConst18.ts] //// + +=== downlevelLetConst18.ts === +'use strict' +>'use strict' : "use strict" +> : ^^^^^^^^^^^^ + +for (let x; ;) { +>x : any + + function foo() { x }; +>foo : () => void +> : ^^^^^^^^^^ +>x : any +} + +for (let x; ;) { +>x : any + + function foo1() { x }; +>foo1 : () => void +> : ^^^^^^^^^^ +>x : any +} + +for (let x; ;) { +>x : any + + (() => { x })(); +>(() => { x })() : never +> : ^^^^^ +>(() => { x }) : () => never +> : ^^^^^^^^^^^ +>() => { x } : () => never +> : ^^^^^^^^^^^ +>x : any +} + +for (const x = 1; ;) { +>x : 1 +> : ^ +>1 : 1 +> : ^ + + (() => { x })(); +>(() => { x })() : never +> : ^^^^^ +>(() => { x }) : () => never +> : ^^^^^^^^^^^ +>() => { x } : () => never +> : ^^^^^^^^^^^ +>x : 1 +> : ^ +} + +for (let x; ;) { +>x : any + + ({ foo() { x }}) +>({ foo() { x }}) : { foo(): void; } +> : ^^^^^^^^^^^^^^^^ +>{ foo() { x }} : { foo(): void; } +> : ^^^^^^^^^^^^^^^^ +>foo : () => void +> : ^^^^^^^^^^ +>x : any +} + +for (let x; ;) { +>x : any + + ({ get foo() { return x } }) +>({ get foo() { return x } }) : { readonly foo: any; } +> : ^^^^^^^^^^^^^^^^^^^^^^ +>{ get foo() { return x } } : { readonly foo: any; } +> : ^^^^^^^^^^^^^^^^^^^^^^ +>foo : any +>x : any +} + +for (let x; ;) { +>x : any + + ({ set foo(v) { x } }) +>({ set foo(v) { x } }) : { foo: any; } +> : ^^^^^^^^^^^^^ +>{ set foo(v) { x } } : { foo: any; } +> : ^^^^^^^^^^^^^ +>foo : any +>v : any +>x : any +} + diff --git a/tests/baselines/reference/downlevelLetConst18.errors.txt b/tests/baselines/reference/downlevelLetConst18(target=es5).errors.txt similarity index 100% rename from tests/baselines/reference/downlevelLetConst18.errors.txt rename to tests/baselines/reference/downlevelLetConst18(target=es5).errors.txt diff --git a/tests/baselines/reference/downlevelLetConst18.js b/tests/baselines/reference/downlevelLetConst18(target=es5).js similarity index 100% rename from tests/baselines/reference/downlevelLetConst18.js rename to tests/baselines/reference/downlevelLetConst18(target=es5).js diff --git a/tests/baselines/reference/downlevelLetConst18(target=es5).symbols b/tests/baselines/reference/downlevelLetConst18(target=es5).symbols new file mode 100644 index 0000000000000..d8f023f6ddeef --- /dev/null +++ b/tests/baselines/reference/downlevelLetConst18(target=es5).symbols @@ -0,0 +1,60 @@ +//// [tests/cases/compiler/downlevelLetConst18.ts] //// + +=== downlevelLetConst18.ts === +'use strict' + +for (let x; ;) { +>x : Symbol(x, Decl(downlevelLetConst18.ts, 2, 8)) + + function foo() { x }; +>foo : Symbol(foo, Decl(downlevelLetConst18.ts, 2, 16)) +>x : Symbol(x, Decl(downlevelLetConst18.ts, 2, 8)) +} + +for (let x; ;) { +>x : Symbol(x, Decl(downlevelLetConst18.ts, 6, 8)) + + function foo1() { x }; +>foo1 : Symbol(foo1, Decl(downlevelLetConst18.ts, 6, 16)) +>x : Symbol(x, Decl(downlevelLetConst18.ts, 6, 8)) +} + +for (let x; ;) { +>x : Symbol(x, Decl(downlevelLetConst18.ts, 10, 8)) + + (() => { x })(); +>x : Symbol(x, Decl(downlevelLetConst18.ts, 10, 8)) +} + +for (const x = 1; ;) { +>x : Symbol(x, Decl(downlevelLetConst18.ts, 14, 10)) + + (() => { x })(); +>x : Symbol(x, Decl(downlevelLetConst18.ts, 14, 10)) +} + +for (let x; ;) { +>x : Symbol(x, Decl(downlevelLetConst18.ts, 18, 8)) + + ({ foo() { x }}) +>foo : Symbol(foo, Decl(downlevelLetConst18.ts, 19, 6)) +>x : Symbol(x, Decl(downlevelLetConst18.ts, 18, 8)) +} + +for (let x; ;) { +>x : Symbol(x, Decl(downlevelLetConst18.ts, 22, 8)) + + ({ get foo() { return x } }) +>foo : Symbol(foo, Decl(downlevelLetConst18.ts, 23, 6)) +>x : Symbol(x, Decl(downlevelLetConst18.ts, 22, 8)) +} + +for (let x; ;) { +>x : Symbol(x, Decl(downlevelLetConst18.ts, 26, 8)) + + ({ set foo(v) { x } }) +>foo : Symbol(foo, Decl(downlevelLetConst18.ts, 27, 6)) +>v : Symbol(v, Decl(downlevelLetConst18.ts, 27, 15)) +>x : Symbol(x, Decl(downlevelLetConst18.ts, 26, 8)) +} + diff --git a/tests/baselines/reference/downlevelLetConst18.types b/tests/baselines/reference/downlevelLetConst18(target=es5).types similarity index 100% rename from tests/baselines/reference/downlevelLetConst18.types rename to tests/baselines/reference/downlevelLetConst18(target=es5).types diff --git a/tests/baselines/reference/duplicateIdentifierBindingElementInParameterDeclaration1.errors.txt b/tests/baselines/reference/duplicateIdentifierBindingElementInParameterDeclaration1(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/duplicateIdentifierBindingElementInParameterDeclaration1.errors.txt rename to tests/baselines/reference/duplicateIdentifierBindingElementInParameterDeclaration1(target=es2015).errors.txt diff --git a/tests/baselines/reference/duplicateIdentifierBindingElementInParameterDeclaration1(target=es2015).js b/tests/baselines/reference/duplicateIdentifierBindingElementInParameterDeclaration1(target=es2015).js new file mode 100644 index 0000000000000..ab2556b7c3556 --- /dev/null +++ b/tests/baselines/reference/duplicateIdentifierBindingElementInParameterDeclaration1(target=es2015).js @@ -0,0 +1,21 @@ +//// [tests/cases/compiler/duplicateIdentifierBindingElementInParameterDeclaration1.ts] //// + +//// [duplicateIdentifierBindingElementInParameterDeclaration1.ts] +function f0(a, [a, [b]], {b}) { } +function f1([a, a]) { } +function f2({b}, {b}) { } +function f3([c,[c],[[c]]]) { } +function f4({d, d:{d}}) { } +function f5({e, e: {e}}, {e}, [d,e, [[e]]], ...e) { } +function f6([f, ...f]) { } +function f7(a, func = (a) => { return 1 }) { } // not error + +//// [duplicateIdentifierBindingElementInParameterDeclaration1.js] +function f0(a, [a, [b]], { b }) { } +function f1([a, a]) { } +function f2({ b }, { b }) { } +function f3([c, [c], [[c]]]) { } +function f4({ d, d: { d } }) { } +function f5({ e, e: { e } }, { e }, [d, e, [[e]]], ...e) { } +function f6([f, ...f]) { } +function f7(a, func = (a) => { return 1; }) { } // not error diff --git a/tests/baselines/reference/duplicateIdentifierBindingElementInParameterDeclaration1.symbols b/tests/baselines/reference/duplicateIdentifierBindingElementInParameterDeclaration1(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/duplicateIdentifierBindingElementInParameterDeclaration1.symbols rename to tests/baselines/reference/duplicateIdentifierBindingElementInParameterDeclaration1(target=es2015).symbols diff --git a/tests/baselines/reference/duplicateIdentifierBindingElementInParameterDeclaration1.types b/tests/baselines/reference/duplicateIdentifierBindingElementInParameterDeclaration1(target=es2015).types similarity index 100% rename from tests/baselines/reference/duplicateIdentifierBindingElementInParameterDeclaration1.types rename to tests/baselines/reference/duplicateIdentifierBindingElementInParameterDeclaration1(target=es2015).types diff --git a/tests/baselines/reference/duplicateIdentifierBindingElementInParameterDeclaration1(target=es5).errors.txt b/tests/baselines/reference/duplicateIdentifierBindingElementInParameterDeclaration1(target=es5).errors.txt new file mode 100644 index 0000000000000..257093fbca179 --- /dev/null +++ b/tests/baselines/reference/duplicateIdentifierBindingElementInParameterDeclaration1(target=es5).errors.txt @@ -0,0 +1,74 @@ +duplicateIdentifierBindingElementInParameterDeclaration1.ts(1,13): error TS2300: Duplicate identifier 'a'. +duplicateIdentifierBindingElementInParameterDeclaration1.ts(1,17): error TS2300: Duplicate identifier 'a'. +duplicateIdentifierBindingElementInParameterDeclaration1.ts(1,21): error TS2300: Duplicate identifier 'b'. +duplicateIdentifierBindingElementInParameterDeclaration1.ts(1,27): error TS2300: Duplicate identifier 'b'. +duplicateIdentifierBindingElementInParameterDeclaration1.ts(2,14): error TS2300: Duplicate identifier 'a'. +duplicateIdentifierBindingElementInParameterDeclaration1.ts(2,17): error TS2300: Duplicate identifier 'a'. +duplicateIdentifierBindingElementInParameterDeclaration1.ts(3,14): error TS2300: Duplicate identifier 'b'. +duplicateIdentifierBindingElementInParameterDeclaration1.ts(3,19): error TS2300: Duplicate identifier 'b'. +duplicateIdentifierBindingElementInParameterDeclaration1.ts(4,14): error TS2300: Duplicate identifier 'c'. +duplicateIdentifierBindingElementInParameterDeclaration1.ts(4,17): error TS2300: Duplicate identifier 'c'. +duplicateIdentifierBindingElementInParameterDeclaration1.ts(4,22): error TS2300: Duplicate identifier 'c'. +duplicateIdentifierBindingElementInParameterDeclaration1.ts(5,14): error TS2300: Duplicate identifier 'd'. +duplicateIdentifierBindingElementInParameterDeclaration1.ts(5,20): error TS2300: Duplicate identifier 'd'. +duplicateIdentifierBindingElementInParameterDeclaration1.ts(6,14): error TS2300: Duplicate identifier 'e'. +duplicateIdentifierBindingElementInParameterDeclaration1.ts(6,21): error TS2300: Duplicate identifier 'e'. +duplicateIdentifierBindingElementInParameterDeclaration1.ts(6,27): error TS2300: Duplicate identifier 'e'. +duplicateIdentifierBindingElementInParameterDeclaration1.ts(6,34): error TS2300: Duplicate identifier 'e'. +duplicateIdentifierBindingElementInParameterDeclaration1.ts(6,39): error TS2300: Duplicate identifier 'e'. +duplicateIdentifierBindingElementInParameterDeclaration1.ts(6,48): error TS2300: Duplicate identifier 'e'. +duplicateIdentifierBindingElementInParameterDeclaration1.ts(7,14): error TS2300: Duplicate identifier 'f'. +duplicateIdentifierBindingElementInParameterDeclaration1.ts(7,20): error TS2300: Duplicate identifier 'f'. + + +==== duplicateIdentifierBindingElementInParameterDeclaration1.ts (21 errors) ==== + function f0(a, [a, [b]], {b}) { } + ~ +!!! error TS2300: Duplicate identifier 'a'. + ~ +!!! error TS2300: Duplicate identifier 'a'. + ~ +!!! error TS2300: Duplicate identifier 'b'. + ~ +!!! error TS2300: Duplicate identifier 'b'. + function f1([a, a]) { } + ~ +!!! error TS2300: Duplicate identifier 'a'. + ~ +!!! error TS2300: Duplicate identifier 'a'. + function f2({b}, {b}) { } + ~ +!!! error TS2300: Duplicate identifier 'b'. + ~ +!!! error TS2300: Duplicate identifier 'b'. + function f3([c,[c],[[c]]]) { } + ~ +!!! error TS2300: Duplicate identifier 'c'. + ~ +!!! error TS2300: Duplicate identifier 'c'. + ~ +!!! error TS2300: Duplicate identifier 'c'. + function f4({d, d:{d}}) { } + ~ +!!! error TS2300: Duplicate identifier 'd'. + ~ +!!! error TS2300: Duplicate identifier 'd'. + function f5({e, e: {e}}, {e}, [d,e, [[e]]], ...e) { } + ~ +!!! error TS2300: Duplicate identifier 'e'. + ~ +!!! error TS2300: Duplicate identifier 'e'. + ~ +!!! error TS2300: Duplicate identifier 'e'. + ~ +!!! error TS2300: Duplicate identifier 'e'. + ~ +!!! error TS2300: Duplicate identifier 'e'. + ~ +!!! error TS2300: Duplicate identifier 'e'. + function f6([f, ...f]) { } + ~ +!!! error TS2300: Duplicate identifier 'f'. + ~ +!!! error TS2300: Duplicate identifier 'f'. + function f7(a, func = (a) => { return 1 }) { } // not error \ No newline at end of file diff --git a/tests/baselines/reference/duplicateIdentifierBindingElementInParameterDeclaration1.js b/tests/baselines/reference/duplicateIdentifierBindingElementInParameterDeclaration1(target=es5).js similarity index 100% rename from tests/baselines/reference/duplicateIdentifierBindingElementInParameterDeclaration1.js rename to tests/baselines/reference/duplicateIdentifierBindingElementInParameterDeclaration1(target=es5).js diff --git a/tests/baselines/reference/duplicateIdentifierBindingElementInParameterDeclaration1(target=es5).symbols b/tests/baselines/reference/duplicateIdentifierBindingElementInParameterDeclaration1(target=es5).symbols new file mode 100644 index 0000000000000..242c36ba98fb5 --- /dev/null +++ b/tests/baselines/reference/duplicateIdentifierBindingElementInParameterDeclaration1(target=es5).symbols @@ -0,0 +1,54 @@ +//// [tests/cases/compiler/duplicateIdentifierBindingElementInParameterDeclaration1.ts] //// + +=== duplicateIdentifierBindingElementInParameterDeclaration1.ts === +function f0(a, [a, [b]], {b}) { } +>f0 : Symbol(f0, Decl(duplicateIdentifierBindingElementInParameterDeclaration1.ts, 0, 0)) +>a : Symbol(a, Decl(duplicateIdentifierBindingElementInParameterDeclaration1.ts, 0, 12)) +>a : Symbol(a, Decl(duplicateIdentifierBindingElementInParameterDeclaration1.ts, 0, 16)) +>b : Symbol(b, Decl(duplicateIdentifierBindingElementInParameterDeclaration1.ts, 0, 20)) +>b : Symbol(b, Decl(duplicateIdentifierBindingElementInParameterDeclaration1.ts, 0, 26)) + +function f1([a, a]) { } +>f1 : Symbol(f1, Decl(duplicateIdentifierBindingElementInParameterDeclaration1.ts, 0, 33)) +>a : Symbol(a, Decl(duplicateIdentifierBindingElementInParameterDeclaration1.ts, 1, 13)) +>a : Symbol(a, Decl(duplicateIdentifierBindingElementInParameterDeclaration1.ts, 1, 15)) + +function f2({b}, {b}) { } +>f2 : Symbol(f2, Decl(duplicateIdentifierBindingElementInParameterDeclaration1.ts, 1, 23)) +>b : Symbol(b, Decl(duplicateIdentifierBindingElementInParameterDeclaration1.ts, 2, 13)) +>b : Symbol(b, Decl(duplicateIdentifierBindingElementInParameterDeclaration1.ts, 2, 18)) + +function f3([c,[c],[[c]]]) { } +>f3 : Symbol(f3, Decl(duplicateIdentifierBindingElementInParameterDeclaration1.ts, 2, 25)) +>c : Symbol(c, Decl(duplicateIdentifierBindingElementInParameterDeclaration1.ts, 3, 13)) +>c : Symbol(c, Decl(duplicateIdentifierBindingElementInParameterDeclaration1.ts, 3, 16)) +>c : Symbol(c, Decl(duplicateIdentifierBindingElementInParameterDeclaration1.ts, 3, 21)) + +function f4({d, d:{d}}) { } +>f4 : Symbol(f4, Decl(duplicateIdentifierBindingElementInParameterDeclaration1.ts, 3, 30)) +>d : Symbol(d, Decl(duplicateIdentifierBindingElementInParameterDeclaration1.ts, 4, 13)) +>d : Symbol(d) +>d : Symbol(d, Decl(duplicateIdentifierBindingElementInParameterDeclaration1.ts, 4, 19)) + +function f5({e, e: {e}}, {e}, [d,e, [[e]]], ...e) { } +>f5 : Symbol(f5, Decl(duplicateIdentifierBindingElementInParameterDeclaration1.ts, 4, 27)) +>e : Symbol(e, Decl(duplicateIdentifierBindingElementInParameterDeclaration1.ts, 5, 13)) +>e : Symbol(e) +>e : Symbol(e, Decl(duplicateIdentifierBindingElementInParameterDeclaration1.ts, 5, 20)) +>e : Symbol(e, Decl(duplicateIdentifierBindingElementInParameterDeclaration1.ts, 5, 26)) +>d : Symbol(d, Decl(duplicateIdentifierBindingElementInParameterDeclaration1.ts, 5, 31)) +>e : Symbol(e, Decl(duplicateIdentifierBindingElementInParameterDeclaration1.ts, 5, 33)) +>e : Symbol(e, Decl(duplicateIdentifierBindingElementInParameterDeclaration1.ts, 5, 38)) +>e : Symbol(e, Decl(duplicateIdentifierBindingElementInParameterDeclaration1.ts, 5, 43)) + +function f6([f, ...f]) { } +>f6 : Symbol(f6, Decl(duplicateIdentifierBindingElementInParameterDeclaration1.ts, 5, 53)) +>f : Symbol(f, Decl(duplicateIdentifierBindingElementInParameterDeclaration1.ts, 6, 13)) +>f : Symbol(f, Decl(duplicateIdentifierBindingElementInParameterDeclaration1.ts, 6, 15)) + +function f7(a, func = (a) => { return 1 }) { } // not error +>f7 : Symbol(f7, Decl(duplicateIdentifierBindingElementInParameterDeclaration1.ts, 6, 26)) +>a : Symbol(a, Decl(duplicateIdentifierBindingElementInParameterDeclaration1.ts, 7, 12)) +>func : Symbol(func, Decl(duplicateIdentifierBindingElementInParameterDeclaration1.ts, 7, 14)) +>a : Symbol(a, Decl(duplicateIdentifierBindingElementInParameterDeclaration1.ts, 7, 23)) + diff --git a/tests/baselines/reference/duplicateIdentifierBindingElementInParameterDeclaration1(target=es5).types b/tests/baselines/reference/duplicateIdentifierBindingElementInParameterDeclaration1(target=es5).types new file mode 100644 index 0000000000000..0428b2813d9a4 --- /dev/null +++ b/tests/baselines/reference/duplicateIdentifierBindingElementInParameterDeclaration1(target=es5).types @@ -0,0 +1,93 @@ +//// [tests/cases/compiler/duplicateIdentifierBindingElementInParameterDeclaration1.ts] //// + +=== duplicateIdentifierBindingElementInParameterDeclaration1.ts === +function f0(a, [a, [b]], {b}) { } +>f0 : (a: any, [a, [b]]: [any, [any]], { b }: { b: any; }) => void +> : ^ ^^^^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ +>a : any +> : ^^^ +>a : any +> : ^^^ +>b : any +> : ^^^ +>b : any +> : ^^^ + +function f1([a, a]) { } +>f1 : ([a, a]: [any, any]) => void +> : ^ ^^^^^^^^^^^^^^^^^^^^^ +>a : any +> : ^^^ +>a : any +> : ^^^ + +function f2({b}, {b}) { } +>f2 : ({ b }: { b: any; }, { b }: { b: any; }) => void +> : ^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ +>b : any +> : ^^^ +>b : any +> : ^^^ + +function f3([c,[c],[[c]]]) { } +>f3 : ([c, [c], [[c]]]: [any, [any], [[any]]]) => void +> : ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>c : any +> : ^^^ +>c : any +> : ^^^ +>c : any +> : ^^^ + +function f4({d, d:{d}}) { } +>f4 : ({ d, d: { d } }: { d: { d: any; }; }) => void +> : ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>d : { d: any; } +> : ^^^^^^^^^^^ +>d : any +> : ^^^ +>d : any +> : ^^^ + +function f5({e, e: {e}}, {e}, [d,e, [[e]]], ...e) { } +>f5 : ({ e, e: { e } }: { e: { e: any; }; }, { e }: { e: any; }, [d, e, [[e]]]: [any, any, [[any]]], ...e: any[]) => void +> : ^ ^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ +>e : { e: any; } +> : ^^^^^^^^^^^ +>e : any +> : ^^^ +>e : any +> : ^^^ +>e : any +> : ^^^ +>d : any +> : ^^^ +>e : any +> : ^^^ +>e : any +> : ^^^ +>e : any[] +> : ^^^^^ + +function f6([f, ...f]) { } +>f6 : ([f, ...f]: [any, ...any[]]) => void +> : ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ +>f : any +> : ^^^ +>f : any[] +> : ^^^^^ + +function f7(a, func = (a) => { return 1 }) { } // not error +>f7 : (a: any, func?: (a: any) => number) => void +> : ^ ^^^^^^^ ^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ +>a : any +> : ^^^ +>func : (a: any) => number +> : ^ ^^^^^^^^^^^^^^^^ +>(a) => { return 1 } : (a: any) => number +> : ^ ^^^^^^^^^^^^^^^^ +>a : any +> : ^^^ +>1 : 1 +> : ^ + diff --git a/tests/baselines/reference/duplicateIdentifierBindingElementInParameterDeclaration2.errors.txt b/tests/baselines/reference/duplicateIdentifierBindingElementInParameterDeclaration2(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/duplicateIdentifierBindingElementInParameterDeclaration2.errors.txt rename to tests/baselines/reference/duplicateIdentifierBindingElementInParameterDeclaration2(target=es2015).errors.txt diff --git a/tests/baselines/reference/duplicateIdentifierBindingElementInParameterDeclaration2(target=es2015).js b/tests/baselines/reference/duplicateIdentifierBindingElementInParameterDeclaration2(target=es2015).js new file mode 100644 index 0000000000000..2acfb7c3f0b36 --- /dev/null +++ b/tests/baselines/reference/duplicateIdentifierBindingElementInParameterDeclaration2(target=es2015).js @@ -0,0 +1,23 @@ +//// [tests/cases/compiler/duplicateIdentifierBindingElementInParameterDeclaration2.ts] //// + +//// [duplicateIdentifierBindingElementInParameterDeclaration2.ts] +"use strict" +function f0(a, [a, [b]], {b}) { } +function f1([a, a]) { } +function f2({b}, {b}) { } +function f3([c, [c], [[c]]]) { } +function f4({d, d: {d}}) { } +function f5({e, e: {e}}, {e}, [d, e, [[e]]], ...e) { } +function f6([f, ...f]) { } +function f7(a, func = (a) => { return 1 }){ } // not error + +//// [duplicateIdentifierBindingElementInParameterDeclaration2.js] +"use strict"; +function f0(a, [a, [b]], { b }) { } +function f1([a, a]) { } +function f2({ b }, { b }) { } +function f3([c, [c], [[c]]]) { } +function f4({ d, d: { d } }) { } +function f5({ e, e: { e } }, { e }, [d, e, [[e]]], ...e) { } +function f6([f, ...f]) { } +function f7(a, func = (a) => { return 1; }) { } // not error diff --git a/tests/baselines/reference/duplicateIdentifierBindingElementInParameterDeclaration2.symbols b/tests/baselines/reference/duplicateIdentifierBindingElementInParameterDeclaration2(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/duplicateIdentifierBindingElementInParameterDeclaration2.symbols rename to tests/baselines/reference/duplicateIdentifierBindingElementInParameterDeclaration2(target=es2015).symbols diff --git a/tests/baselines/reference/duplicateIdentifierBindingElementInParameterDeclaration2.types b/tests/baselines/reference/duplicateIdentifierBindingElementInParameterDeclaration2(target=es2015).types similarity index 100% rename from tests/baselines/reference/duplicateIdentifierBindingElementInParameterDeclaration2.types rename to tests/baselines/reference/duplicateIdentifierBindingElementInParameterDeclaration2(target=es2015).types diff --git a/tests/baselines/reference/duplicateIdentifierBindingElementInParameterDeclaration2(target=es5).errors.txt b/tests/baselines/reference/duplicateIdentifierBindingElementInParameterDeclaration2(target=es5).errors.txt new file mode 100644 index 0000000000000..5fab1bc40caef --- /dev/null +++ b/tests/baselines/reference/duplicateIdentifierBindingElementInParameterDeclaration2(target=es5).errors.txt @@ -0,0 +1,75 @@ +duplicateIdentifierBindingElementInParameterDeclaration2.ts(2,13): error TS2300: Duplicate identifier 'a'. +duplicateIdentifierBindingElementInParameterDeclaration2.ts(2,17): error TS2300: Duplicate identifier 'a'. +duplicateIdentifierBindingElementInParameterDeclaration2.ts(2,21): error TS2300: Duplicate identifier 'b'. +duplicateIdentifierBindingElementInParameterDeclaration2.ts(2,27): error TS2300: Duplicate identifier 'b'. +duplicateIdentifierBindingElementInParameterDeclaration2.ts(3,14): error TS2300: Duplicate identifier 'a'. +duplicateIdentifierBindingElementInParameterDeclaration2.ts(3,17): error TS2300: Duplicate identifier 'a'. +duplicateIdentifierBindingElementInParameterDeclaration2.ts(4,14): error TS2300: Duplicate identifier 'b'. +duplicateIdentifierBindingElementInParameterDeclaration2.ts(4,19): error TS2300: Duplicate identifier 'b'. +duplicateIdentifierBindingElementInParameterDeclaration2.ts(5,14): error TS2300: Duplicate identifier 'c'. +duplicateIdentifierBindingElementInParameterDeclaration2.ts(5,18): error TS2300: Duplicate identifier 'c'. +duplicateIdentifierBindingElementInParameterDeclaration2.ts(5,24): error TS2300: Duplicate identifier 'c'. +duplicateIdentifierBindingElementInParameterDeclaration2.ts(6,14): error TS2300: Duplicate identifier 'd'. +duplicateIdentifierBindingElementInParameterDeclaration2.ts(6,21): error TS2300: Duplicate identifier 'd'. +duplicateIdentifierBindingElementInParameterDeclaration2.ts(7,14): error TS2300: Duplicate identifier 'e'. +duplicateIdentifierBindingElementInParameterDeclaration2.ts(7,21): error TS2300: Duplicate identifier 'e'. +duplicateIdentifierBindingElementInParameterDeclaration2.ts(7,27): error TS2300: Duplicate identifier 'e'. +duplicateIdentifierBindingElementInParameterDeclaration2.ts(7,35): error TS2300: Duplicate identifier 'e'. +duplicateIdentifierBindingElementInParameterDeclaration2.ts(7,40): error TS2300: Duplicate identifier 'e'. +duplicateIdentifierBindingElementInParameterDeclaration2.ts(7,49): error TS2300: Duplicate identifier 'e'. +duplicateIdentifierBindingElementInParameterDeclaration2.ts(8,14): error TS2300: Duplicate identifier 'f'. +duplicateIdentifierBindingElementInParameterDeclaration2.ts(8,20): error TS2300: Duplicate identifier 'f'. + + +==== duplicateIdentifierBindingElementInParameterDeclaration2.ts (21 errors) ==== + "use strict" + function f0(a, [a, [b]], {b}) { } + ~ +!!! error TS2300: Duplicate identifier 'a'. + ~ +!!! error TS2300: Duplicate identifier 'a'. + ~ +!!! error TS2300: Duplicate identifier 'b'. + ~ +!!! error TS2300: Duplicate identifier 'b'. + function f1([a, a]) { } + ~ +!!! error TS2300: Duplicate identifier 'a'. + ~ +!!! error TS2300: Duplicate identifier 'a'. + function f2({b}, {b}) { } + ~ +!!! error TS2300: Duplicate identifier 'b'. + ~ +!!! error TS2300: Duplicate identifier 'b'. + function f3([c, [c], [[c]]]) { } + ~ +!!! error TS2300: Duplicate identifier 'c'. + ~ +!!! error TS2300: Duplicate identifier 'c'. + ~ +!!! error TS2300: Duplicate identifier 'c'. + function f4({d, d: {d}}) { } + ~ +!!! error TS2300: Duplicate identifier 'd'. + ~ +!!! error TS2300: Duplicate identifier 'd'. + function f5({e, e: {e}}, {e}, [d, e, [[e]]], ...e) { } + ~ +!!! error TS2300: Duplicate identifier 'e'. + ~ +!!! error TS2300: Duplicate identifier 'e'. + ~ +!!! error TS2300: Duplicate identifier 'e'. + ~ +!!! error TS2300: Duplicate identifier 'e'. + ~ +!!! error TS2300: Duplicate identifier 'e'. + ~ +!!! error TS2300: Duplicate identifier 'e'. + function f6([f, ...f]) { } + ~ +!!! error TS2300: Duplicate identifier 'f'. + ~ +!!! error TS2300: Duplicate identifier 'f'. + function f7(a, func = (a) => { return 1 }){ } // not error \ No newline at end of file diff --git a/tests/baselines/reference/duplicateIdentifierBindingElementInParameterDeclaration2.js b/tests/baselines/reference/duplicateIdentifierBindingElementInParameterDeclaration2(target=es5).js similarity index 100% rename from tests/baselines/reference/duplicateIdentifierBindingElementInParameterDeclaration2.js rename to tests/baselines/reference/duplicateIdentifierBindingElementInParameterDeclaration2(target=es5).js diff --git a/tests/baselines/reference/duplicateIdentifierBindingElementInParameterDeclaration2(target=es5).symbols b/tests/baselines/reference/duplicateIdentifierBindingElementInParameterDeclaration2(target=es5).symbols new file mode 100644 index 0000000000000..7498df8f7646d --- /dev/null +++ b/tests/baselines/reference/duplicateIdentifierBindingElementInParameterDeclaration2(target=es5).symbols @@ -0,0 +1,55 @@ +//// [tests/cases/compiler/duplicateIdentifierBindingElementInParameterDeclaration2.ts] //// + +=== duplicateIdentifierBindingElementInParameterDeclaration2.ts === +"use strict" +function f0(a, [a, [b]], {b}) { } +>f0 : Symbol(f0, Decl(duplicateIdentifierBindingElementInParameterDeclaration2.ts, 0, 12)) +>a : Symbol(a, Decl(duplicateIdentifierBindingElementInParameterDeclaration2.ts, 1, 12)) +>a : Symbol(a, Decl(duplicateIdentifierBindingElementInParameterDeclaration2.ts, 1, 16)) +>b : Symbol(b, Decl(duplicateIdentifierBindingElementInParameterDeclaration2.ts, 1, 20)) +>b : Symbol(b, Decl(duplicateIdentifierBindingElementInParameterDeclaration2.ts, 1, 26)) + +function f1([a, a]) { } +>f1 : Symbol(f1, Decl(duplicateIdentifierBindingElementInParameterDeclaration2.ts, 1, 33)) +>a : Symbol(a, Decl(duplicateIdentifierBindingElementInParameterDeclaration2.ts, 2, 13)) +>a : Symbol(a, Decl(duplicateIdentifierBindingElementInParameterDeclaration2.ts, 2, 15)) + +function f2({b}, {b}) { } +>f2 : Symbol(f2, Decl(duplicateIdentifierBindingElementInParameterDeclaration2.ts, 2, 23)) +>b : Symbol(b, Decl(duplicateIdentifierBindingElementInParameterDeclaration2.ts, 3, 13)) +>b : Symbol(b, Decl(duplicateIdentifierBindingElementInParameterDeclaration2.ts, 3, 18)) + +function f3([c, [c], [[c]]]) { } +>f3 : Symbol(f3, Decl(duplicateIdentifierBindingElementInParameterDeclaration2.ts, 3, 25)) +>c : Symbol(c, Decl(duplicateIdentifierBindingElementInParameterDeclaration2.ts, 4, 13)) +>c : Symbol(c, Decl(duplicateIdentifierBindingElementInParameterDeclaration2.ts, 4, 17)) +>c : Symbol(c, Decl(duplicateIdentifierBindingElementInParameterDeclaration2.ts, 4, 23)) + +function f4({d, d: {d}}) { } +>f4 : Symbol(f4, Decl(duplicateIdentifierBindingElementInParameterDeclaration2.ts, 4, 32)) +>d : Symbol(d, Decl(duplicateIdentifierBindingElementInParameterDeclaration2.ts, 5, 13)) +>d : Symbol(d) +>d : Symbol(d, Decl(duplicateIdentifierBindingElementInParameterDeclaration2.ts, 5, 20)) + +function f5({e, e: {e}}, {e}, [d, e, [[e]]], ...e) { } +>f5 : Symbol(f5, Decl(duplicateIdentifierBindingElementInParameterDeclaration2.ts, 5, 28)) +>e : Symbol(e, Decl(duplicateIdentifierBindingElementInParameterDeclaration2.ts, 6, 13)) +>e : Symbol(e) +>e : Symbol(e, Decl(duplicateIdentifierBindingElementInParameterDeclaration2.ts, 6, 20)) +>e : Symbol(e, Decl(duplicateIdentifierBindingElementInParameterDeclaration2.ts, 6, 26)) +>d : Symbol(d, Decl(duplicateIdentifierBindingElementInParameterDeclaration2.ts, 6, 31)) +>e : Symbol(e, Decl(duplicateIdentifierBindingElementInParameterDeclaration2.ts, 6, 33)) +>e : Symbol(e, Decl(duplicateIdentifierBindingElementInParameterDeclaration2.ts, 6, 39)) +>e : Symbol(e, Decl(duplicateIdentifierBindingElementInParameterDeclaration2.ts, 6, 44)) + +function f6([f, ...f]) { } +>f6 : Symbol(f6, Decl(duplicateIdentifierBindingElementInParameterDeclaration2.ts, 6, 54)) +>f : Symbol(f, Decl(duplicateIdentifierBindingElementInParameterDeclaration2.ts, 7, 13)) +>f : Symbol(f, Decl(duplicateIdentifierBindingElementInParameterDeclaration2.ts, 7, 15)) + +function f7(a, func = (a) => { return 1 }){ } // not error +>f7 : Symbol(f7, Decl(duplicateIdentifierBindingElementInParameterDeclaration2.ts, 7, 26)) +>a : Symbol(a, Decl(duplicateIdentifierBindingElementInParameterDeclaration2.ts, 8, 12)) +>func : Symbol(func, Decl(duplicateIdentifierBindingElementInParameterDeclaration2.ts, 8, 14)) +>a : Symbol(a, Decl(duplicateIdentifierBindingElementInParameterDeclaration2.ts, 8, 23)) + diff --git a/tests/baselines/reference/duplicateIdentifierBindingElementInParameterDeclaration2(target=es5).types b/tests/baselines/reference/duplicateIdentifierBindingElementInParameterDeclaration2(target=es5).types new file mode 100644 index 0000000000000..5d86eb8582f97 --- /dev/null +++ b/tests/baselines/reference/duplicateIdentifierBindingElementInParameterDeclaration2(target=es5).types @@ -0,0 +1,97 @@ +//// [tests/cases/compiler/duplicateIdentifierBindingElementInParameterDeclaration2.ts] //// + +=== duplicateIdentifierBindingElementInParameterDeclaration2.ts === +"use strict" +>"use strict" : "use strict" +> : ^^^^^^^^^^^^ + +function f0(a, [a, [b]], {b}) { } +>f0 : (a: any, [a, [b]]: [any, [any]], { b }: { b: any; }) => void +> : ^ ^^^^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ +>a : any +> : ^^^ +>a : any +> : ^^^ +>b : any +> : ^^^ +>b : any +> : ^^^ + +function f1([a, a]) { } +>f1 : ([a, a]: [any, any]) => void +> : ^ ^^^^^^^^^^^^^^^^^^^^^ +>a : any +> : ^^^ +>a : any +> : ^^^ + +function f2({b}, {b}) { } +>f2 : ({ b }: { b: any; }, { b }: { b: any; }) => void +> : ^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ +>b : any +> : ^^^ +>b : any +> : ^^^ + +function f3([c, [c], [[c]]]) { } +>f3 : ([c, [c], [[c]]]: [any, [any], [[any]]]) => void +> : ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>c : any +> : ^^^ +>c : any +> : ^^^ +>c : any +> : ^^^ + +function f4({d, d: {d}}) { } +>f4 : ({ d, d: { d } }: { d: { d: any; }; }) => void +> : ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>d : { d: any; } +> : ^^^^^^^^^^^ +>d : any +> : ^^^ +>d : any +> : ^^^ + +function f5({e, e: {e}}, {e}, [d, e, [[e]]], ...e) { } +>f5 : ({ e, e: { e } }: { e: { e: any; }; }, { e }: { e: any; }, [d, e, [[e]]]: [any, any, [[any]]], ...e: any[]) => void +> : ^ ^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ +>e : { e: any; } +> : ^^^^^^^^^^^ +>e : any +> : ^^^ +>e : any +> : ^^^ +>e : any +> : ^^^ +>d : any +> : ^^^ +>e : any +> : ^^^ +>e : any +> : ^^^ +>e : any[] +> : ^^^^^ + +function f6([f, ...f]) { } +>f6 : ([f, ...f]: [any, ...any[]]) => void +> : ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ +>f : any +> : ^^^ +>f : any[] +> : ^^^^^ + +function f7(a, func = (a) => { return 1 }){ } // not error +>f7 : (a: any, func?: (a: any) => number) => void +> : ^ ^^^^^^^ ^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ +>a : any +> : ^^^ +>func : (a: any) => number +> : ^ ^^^^^^^^^^^^^^^^ +>(a) => { return 1 } : (a: any) => number +> : ^ ^^^^^^^^^^^^^^^^ +>a : any +> : ^^^ +>1 : 1 +> : ^ + diff --git a/tests/baselines/reference/duplicateObjectLiteralProperty.errors.txt b/tests/baselines/reference/duplicateObjectLiteralProperty(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/duplicateObjectLiteralProperty.errors.txt rename to tests/baselines/reference/duplicateObjectLiteralProperty(target=es2015).errors.txt diff --git a/tests/baselines/reference/duplicateObjectLiteralProperty.js b/tests/baselines/reference/duplicateObjectLiteralProperty(target=es2015).js similarity index 100% rename from tests/baselines/reference/duplicateObjectLiteralProperty.js rename to tests/baselines/reference/duplicateObjectLiteralProperty(target=es2015).js diff --git a/tests/baselines/reference/duplicateObjectLiteralProperty.symbols b/tests/baselines/reference/duplicateObjectLiteralProperty(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/duplicateObjectLiteralProperty.symbols rename to tests/baselines/reference/duplicateObjectLiteralProperty(target=es2015).symbols diff --git a/tests/baselines/reference/duplicateObjectLiteralProperty.types b/tests/baselines/reference/duplicateObjectLiteralProperty(target=es2015).types similarity index 100% rename from tests/baselines/reference/duplicateObjectLiteralProperty.types rename to tests/baselines/reference/duplicateObjectLiteralProperty(target=es2015).types diff --git a/tests/baselines/reference/duplicateObjectLiteralProperty(target=es5).errors.txt b/tests/baselines/reference/duplicateObjectLiteralProperty(target=es5).errors.txt new file mode 100644 index 0000000000000..f1413963a9b2a --- /dev/null +++ b/tests/baselines/reference/duplicateObjectLiteralProperty(target=es5).errors.txt @@ -0,0 +1,45 @@ +duplicateObjectLiteralProperty.ts(4,5): error TS1117: An object literal cannot have multiple properties with the same name. +duplicateObjectLiteralProperty.ts(5,5): error TS1117: An object literal cannot have multiple properties with the same name. +duplicateObjectLiteralProperty.ts(6,5): error TS1117: An object literal cannot have multiple properties with the same name. +duplicateObjectLiteralProperty.ts(8,9): error TS1117: An object literal cannot have multiple properties with the same name. +duplicateObjectLiteralProperty.ts(14,9): error TS2300: Duplicate identifier 'a'. +duplicateObjectLiteralProperty.ts(15,9): error TS2300: Duplicate identifier 'a'. +duplicateObjectLiteralProperty.ts(16,9): error TS1118: An object literal cannot have multiple get/set accessors with the same name. +duplicateObjectLiteralProperty.ts(16,9): error TS2300: Duplicate identifier 'a'. + + +==== duplicateObjectLiteralProperty.ts (8 errors) ==== + var x = { + a: 1, + b: true, // OK + a: 56, // Duplicate + ~ +!!! error TS1117: An object literal cannot have multiple properties with the same name. + \u0061: "ss", // Duplicate + ~~~~~~ +!!! error TS1117: An object literal cannot have multiple properties with the same name. + a: { + ~ +!!! error TS1117: An object literal cannot have multiple properties with the same name. + c: 1, + "c": 56, // Duplicate + ~~~ +!!! error TS1117: An object literal cannot have multiple properties with the same name. + } + }; + + + var y = { + get a() { return 0; }, + ~ +!!! error TS2300: Duplicate identifier 'a'. + set a(v: number) { }, + ~ +!!! error TS2300: Duplicate identifier 'a'. + get a() { return 0; } + ~ +!!! error TS1118: An object literal cannot have multiple get/set accessors with the same name. + ~ +!!! error TS2300: Duplicate identifier 'a'. + }; + \ No newline at end of file diff --git a/tests/baselines/reference/duplicateObjectLiteralProperty(target=es5).js b/tests/baselines/reference/duplicateObjectLiteralProperty(target=es5).js new file mode 100644 index 0000000000000..c4b2b29293d78 --- /dev/null +++ b/tests/baselines/reference/duplicateObjectLiteralProperty(target=es5).js @@ -0,0 +1,38 @@ +//// [tests/cases/compiler/duplicateObjectLiteralProperty.ts] //// + +//// [duplicateObjectLiteralProperty.ts] +var x = { + a: 1, + b: true, // OK + a: 56, // Duplicate + \u0061: "ss", // Duplicate + a: { + c: 1, + "c": 56, // Duplicate + } +}; + + +var y = { + get a() { return 0; }, + set a(v: number) { }, + get a() { return 0; } +}; + + +//// [duplicateObjectLiteralProperty.js] +var x = { + a: 1, + b: true, // OK + a: 56, // Duplicate + \u0061: "ss", // Duplicate + a: { + c: 1, + "c": 56, // Duplicate + } +}; +var y = { + get a() { return 0; }, + set a(v) { }, + get a() { return 0; } +}; diff --git a/tests/baselines/reference/duplicateObjectLiteralProperty(target=es5).symbols b/tests/baselines/reference/duplicateObjectLiteralProperty(target=es5).symbols new file mode 100644 index 0000000000000..e8bd19bc8b354 --- /dev/null +++ b/tests/baselines/reference/duplicateObjectLiteralProperty(target=es5).symbols @@ -0,0 +1,45 @@ +//// [tests/cases/compiler/duplicateObjectLiteralProperty.ts] //// + +=== duplicateObjectLiteralProperty.ts === +var x = { +>x : Symbol(x, Decl(duplicateObjectLiteralProperty.ts, 0, 3)) + + a: 1, +>a : Symbol(a, Decl(duplicateObjectLiteralProperty.ts, 0, 9), Decl(duplicateObjectLiteralProperty.ts, 2, 12), Decl(duplicateObjectLiteralProperty.ts, 3, 10), Decl(duplicateObjectLiteralProperty.ts, 4, 17)) + + b: true, // OK +>b : Symbol(b, Decl(duplicateObjectLiteralProperty.ts, 1, 9)) + + a: 56, // Duplicate +>a : Symbol(a, Decl(duplicateObjectLiteralProperty.ts, 0, 9), Decl(duplicateObjectLiteralProperty.ts, 2, 12), Decl(duplicateObjectLiteralProperty.ts, 3, 10), Decl(duplicateObjectLiteralProperty.ts, 4, 17)) + + \u0061: "ss", // Duplicate +>\u0061 : Symbol(a, Decl(duplicateObjectLiteralProperty.ts, 0, 9), Decl(duplicateObjectLiteralProperty.ts, 2, 12), Decl(duplicateObjectLiteralProperty.ts, 3, 10), Decl(duplicateObjectLiteralProperty.ts, 4, 17)) + + a: { +>a : Symbol(a, Decl(duplicateObjectLiteralProperty.ts, 0, 9), Decl(duplicateObjectLiteralProperty.ts, 2, 12), Decl(duplicateObjectLiteralProperty.ts, 3, 10), Decl(duplicateObjectLiteralProperty.ts, 4, 17)) + + c: 1, +>c : Symbol(c, Decl(duplicateObjectLiteralProperty.ts, 5, 8), Decl(duplicateObjectLiteralProperty.ts, 6, 13)) + + "c": 56, // Duplicate +>"c" : Symbol(c, Decl(duplicateObjectLiteralProperty.ts, 5, 8), Decl(duplicateObjectLiteralProperty.ts, 6, 13)) + } +}; + + +var y = { +>y : Symbol(y, Decl(duplicateObjectLiteralProperty.ts, 12, 3)) + + get a() { return 0; }, +>a : Symbol(a, Decl(duplicateObjectLiteralProperty.ts, 12, 9), Decl(duplicateObjectLiteralProperty.ts, 13, 26)) + + set a(v: number) { }, +>a : Symbol(a, Decl(duplicateObjectLiteralProperty.ts, 12, 9), Decl(duplicateObjectLiteralProperty.ts, 13, 26)) +>v : Symbol(v, Decl(duplicateObjectLiteralProperty.ts, 14, 10)) + + get a() { return 0; } +>a : Symbol(a, Decl(duplicateObjectLiteralProperty.ts, 14, 25)) + +}; + diff --git a/tests/baselines/reference/duplicateObjectLiteralProperty(target=es5).types b/tests/baselines/reference/duplicateObjectLiteralProperty(target=es5).types new file mode 100644 index 0000000000000..208b46b2fe38c --- /dev/null +++ b/tests/baselines/reference/duplicateObjectLiteralProperty(target=es5).types @@ -0,0 +1,80 @@ +//// [tests/cases/compiler/duplicateObjectLiteralProperty.ts] //// + +=== duplicateObjectLiteralProperty.ts === +var x = { +>x : { a: { c: number; }; b: boolean; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ a: 1, b: true, // OK a: 56, // Duplicate \u0061: "ss", // Duplicate a: { c: 1, "c": 56, // Duplicate }} : { a: { c: number; }; b: boolean; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + a: 1, +>a : number +> : ^^^^^^ +>1 : 1 +> : ^ + + b: true, // OK +>b : boolean +> : ^^^^^^^ +>true : true +> : ^^^^ + + a: 56, // Duplicate +>a : number +> : ^^^^^^ +>56 : 56 +> : ^^ + + \u0061: "ss", // Duplicate +>\u0061 : number +> : ^^^^^^ +>"ss" : "ss" +> : ^^^^ + + a: { +>a : number +> : ^^^^^^ +>{ c: 1, "c": 56, // Duplicate } : { c: number; } +> : ^^^^^^^^^^^^^^ + + c: 1, +>c : number +> : ^^^^^^ +>1 : 1 +> : ^ + + "c": 56, // Duplicate +>"c" : number +> : ^^^^^^ +>56 : 56 +> : ^^ + } +}; + + +var y = { +>y : { readonly a: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>{ get a() { return 0; }, set a(v: number) { }, get a() { return 0; }} : { readonly a: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^ + + get a() { return 0; }, +>a : number +> : ^^^^^^ +>0 : 0 +> : ^ + + set a(v: number) { }, +>a : number +> : ^^^^^^ +>v : number +> : ^^^^^^ + + get a() { return 0; } +>a : number +> : ^^^^^^ +>0 : 0 +> : ^ + +}; + diff --git a/tests/baselines/reference/dynamicImportWithNestedThis_es5.errors.txt b/tests/baselines/reference/dynamicImportWithNestedThis_es5(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/dynamicImportWithNestedThis_es5.errors.txt rename to tests/baselines/reference/dynamicImportWithNestedThis_es5(target=es2015).errors.txt diff --git a/tests/baselines/reference/dynamicImportWithNestedThis_es5(target=es2015).js b/tests/baselines/reference/dynamicImportWithNestedThis_es5(target=es2015).js new file mode 100644 index 0000000000000..93c2874cd035a --- /dev/null +++ b/tests/baselines/reference/dynamicImportWithNestedThis_es5(target=es2015).js @@ -0,0 +1,73 @@ +//// [tests/cases/compiler/dynamicImportWithNestedThis_es5.ts] //// + +//// [dynamicImportWithNestedThis_es5.ts] +// https://github.com/Microsoft/TypeScript/issues/17564 +class C { + private _path = './other'; + + dynamic() { + return import(this._path); + } +} + +const c = new C(); +c.dynamic(); + +//// [dynamicImportWithNestedThis_es5.js] +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +(function (factory) { + if (typeof module === "object" && typeof module.exports === "object") { + var v = factory(require, exports); + if (v !== undefined) module.exports = v; + } + else if (typeof define === "function" && define.amd) { + define(["require", "exports"], factory); + } +})(function (require, exports) { + "use strict"; + var __syncRequire = typeof module === "object" && typeof module.exports === "object"; + // https://github.com/Microsoft/TypeScript/issues/17564 + class C { + constructor() { + this._path = './other'; + } + dynamic() { + var _a; + return _a = this._path, __syncRequire ? Promise.resolve().then(() => __importStar(require(_a))) : new Promise((resolve_1, reject_1) => { require([_a], resolve_1, reject_1); }).then(__importStar); + } + } + const c = new C(); + c.dynamic(); +}); diff --git a/tests/baselines/reference/dynamicImportWithNestedThis_es5.symbols b/tests/baselines/reference/dynamicImportWithNestedThis_es5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/dynamicImportWithNestedThis_es5.symbols rename to tests/baselines/reference/dynamicImportWithNestedThis_es5(target=es2015).symbols diff --git a/tests/baselines/reference/dynamicImportWithNestedThis_es5.types b/tests/baselines/reference/dynamicImportWithNestedThis_es5(target=es2015).types similarity index 100% rename from tests/baselines/reference/dynamicImportWithNestedThis_es5.types rename to tests/baselines/reference/dynamicImportWithNestedThis_es5(target=es2015).types diff --git a/tests/baselines/reference/dynamicImportWithNestedThis_es5(target=es5).errors.txt b/tests/baselines/reference/dynamicImportWithNestedThis_es5(target=es5).errors.txt new file mode 100644 index 0000000000000..dc99f48efb5e0 --- /dev/null +++ b/tests/baselines/reference/dynamicImportWithNestedThis_es5(target=es5).errors.txt @@ -0,0 +1,16 @@ +error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== dynamicImportWithNestedThis_es5.ts (0 errors) ==== + // https://github.com/Microsoft/TypeScript/issues/17564 + class C { + private _path = './other'; + + dynamic() { + return import(this._path); + } + } + + const c = new C(); + c.dynamic(); \ No newline at end of file diff --git a/tests/baselines/reference/dynamicImportWithNestedThis_es5.js b/tests/baselines/reference/dynamicImportWithNestedThis_es5(target=es5).js similarity index 100% rename from tests/baselines/reference/dynamicImportWithNestedThis_es5.js rename to tests/baselines/reference/dynamicImportWithNestedThis_es5(target=es5).js diff --git a/tests/baselines/reference/dynamicImportWithNestedThis_es5(target=es5).symbols b/tests/baselines/reference/dynamicImportWithNestedThis_es5(target=es5).symbols new file mode 100644 index 0000000000000..047ef626a4844 --- /dev/null +++ b/tests/baselines/reference/dynamicImportWithNestedThis_es5(target=es5).symbols @@ -0,0 +1,29 @@ +//// [tests/cases/compiler/dynamicImportWithNestedThis_es5.ts] //// + +=== dynamicImportWithNestedThis_es5.ts === +// https://github.com/Microsoft/TypeScript/issues/17564 +class C { +>C : Symbol(C, Decl(dynamicImportWithNestedThis_es5.ts, 0, 0)) + + private _path = './other'; +>_path : Symbol(C._path, Decl(dynamicImportWithNestedThis_es5.ts, 1, 9)) + + dynamic() { +>dynamic : Symbol(C.dynamic, Decl(dynamicImportWithNestedThis_es5.ts, 2, 27)) + + return import(this._path); +>this._path : Symbol(C._path, Decl(dynamicImportWithNestedThis_es5.ts, 1, 9)) +>this : Symbol(C, Decl(dynamicImportWithNestedThis_es5.ts, 0, 0)) +>_path : Symbol(C._path, Decl(dynamicImportWithNestedThis_es5.ts, 1, 9)) + } +} + +const c = new C(); +>c : Symbol(c, Decl(dynamicImportWithNestedThis_es5.ts, 9, 5)) +>C : Symbol(C, Decl(dynamicImportWithNestedThis_es5.ts, 0, 0)) + +c.dynamic(); +>c.dynamic : Symbol(C.dynamic, Decl(dynamicImportWithNestedThis_es5.ts, 2, 27)) +>c : Symbol(c, Decl(dynamicImportWithNestedThis_es5.ts, 9, 5)) +>dynamic : Symbol(C.dynamic, Decl(dynamicImportWithNestedThis_es5.ts, 2, 27)) + diff --git a/tests/baselines/reference/dynamicImportWithNestedThis_es5(target=es5).types b/tests/baselines/reference/dynamicImportWithNestedThis_es5(target=es5).types new file mode 100644 index 0000000000000..e2407b5a6faad --- /dev/null +++ b/tests/baselines/reference/dynamicImportWithNestedThis_es5(target=es5).types @@ -0,0 +1,48 @@ +//// [tests/cases/compiler/dynamicImportWithNestedThis_es5.ts] //// + +=== dynamicImportWithNestedThis_es5.ts === +// https://github.com/Microsoft/TypeScript/issues/17564 +class C { +>C : C +> : ^ + + private _path = './other'; +>_path : string +> : ^^^^^^ +>'./other' : "./other" +> : ^^^^^^^^^ + + dynamic() { +>dynamic : () => Promise +> : ^^^^^^^^^^^^^^^^^^ + + return import(this._path); +>import(this._path) : Promise +> : ^^^^^^^^^^^^ +>this._path : string +> : ^^^^^^ +>this : this +> : ^^^^ +>_path : string +> : ^^^^^^ + } +} + +const c = new C(); +>c : C +> : ^ +>new C() : C +> : ^ +>C : typeof C +> : ^^^^^^^^ + +c.dynamic(); +>c.dynamic() : Promise +> : ^^^^^^^^^^^^ +>c.dynamic : () => Promise +> : ^^^^^^^^^^^^^^^^^^ +>c : C +> : ^ +>dynamic : () => Promise +> : ^^^^^^^^^^^^^^^^^^ + diff --git a/tests/baselines/reference/emitAccessExpressionOfCastedObjectLiteralExpressionInArrowFunctionES5(target=es2015).js b/tests/baselines/reference/emitAccessExpressionOfCastedObjectLiteralExpressionInArrowFunctionES5(target=es2015).js new file mode 100644 index 0000000000000..fb88052a8e31a --- /dev/null +++ b/tests/baselines/reference/emitAccessExpressionOfCastedObjectLiteralExpressionInArrowFunctionES5(target=es2015).js @@ -0,0 +1,9 @@ +//// [tests/cases/compiler/emitAccessExpressionOfCastedObjectLiteralExpressionInArrowFunctionES5.ts] //// + +//// [emitAccessExpressionOfCastedObjectLiteralExpressionInArrowFunctionES5.ts] +(x) => ({ "1": "one", "2": "two" } as { [key: string]: string })[x]; +(x) => ({ "1": "one", "2": "two" } as { [key: string]: string }).x; + +//// [emitAccessExpressionOfCastedObjectLiteralExpressionInArrowFunctionES5.js] +(x) => ({ "1": "one", "2": "two" }[x]); +(x) => ({ "1": "one", "2": "two" }.x); diff --git a/tests/baselines/reference/emitAccessExpressionOfCastedObjectLiteralExpressionInArrowFunctionES5.symbols b/tests/baselines/reference/emitAccessExpressionOfCastedObjectLiteralExpressionInArrowFunctionES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/emitAccessExpressionOfCastedObjectLiteralExpressionInArrowFunctionES5.symbols rename to tests/baselines/reference/emitAccessExpressionOfCastedObjectLiteralExpressionInArrowFunctionES5(target=es2015).symbols diff --git a/tests/baselines/reference/emitAccessExpressionOfCastedObjectLiteralExpressionInArrowFunctionES5.types b/tests/baselines/reference/emitAccessExpressionOfCastedObjectLiteralExpressionInArrowFunctionES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/emitAccessExpressionOfCastedObjectLiteralExpressionInArrowFunctionES5.types rename to tests/baselines/reference/emitAccessExpressionOfCastedObjectLiteralExpressionInArrowFunctionES5(target=es2015).types diff --git a/tests/baselines/reference/emitAccessExpressionOfCastedObjectLiteralExpressionInArrowFunctionES5.js b/tests/baselines/reference/emitAccessExpressionOfCastedObjectLiteralExpressionInArrowFunctionES5(target=es5).js similarity index 100% rename from tests/baselines/reference/emitAccessExpressionOfCastedObjectLiteralExpressionInArrowFunctionES5.js rename to tests/baselines/reference/emitAccessExpressionOfCastedObjectLiteralExpressionInArrowFunctionES5(target=es5).js diff --git a/tests/baselines/reference/emitAccessExpressionOfCastedObjectLiteralExpressionInArrowFunctionES5(target=es5).symbols b/tests/baselines/reference/emitAccessExpressionOfCastedObjectLiteralExpressionInArrowFunctionES5(target=es5).symbols new file mode 100644 index 0000000000000..6028fdc709c3d --- /dev/null +++ b/tests/baselines/reference/emitAccessExpressionOfCastedObjectLiteralExpressionInArrowFunctionES5(target=es5).symbols @@ -0,0 +1,18 @@ +//// [tests/cases/compiler/emitAccessExpressionOfCastedObjectLiteralExpressionInArrowFunctionES5.ts] //// + +=== emitAccessExpressionOfCastedObjectLiteralExpressionInArrowFunctionES5.ts === +(x) => ({ "1": "one", "2": "two" } as { [key: string]: string })[x]; +>x : Symbol(x, Decl(emitAccessExpressionOfCastedObjectLiteralExpressionInArrowFunctionES5.ts, 0, 1)) +>"1" : Symbol("1", Decl(emitAccessExpressionOfCastedObjectLiteralExpressionInArrowFunctionES5.ts, 0, 9)) +>"2" : Symbol("2", Decl(emitAccessExpressionOfCastedObjectLiteralExpressionInArrowFunctionES5.ts, 0, 21)) +>key : Symbol(key, Decl(emitAccessExpressionOfCastedObjectLiteralExpressionInArrowFunctionES5.ts, 0, 41)) +>x : Symbol(x, Decl(emitAccessExpressionOfCastedObjectLiteralExpressionInArrowFunctionES5.ts, 0, 1)) + +(x) => ({ "1": "one", "2": "two" } as { [key: string]: string }).x; +>x : Symbol(x, Decl(emitAccessExpressionOfCastedObjectLiteralExpressionInArrowFunctionES5.ts, 1, 1)) +>({ "1": "one", "2": "two" } as { [key: string]: string }).x : Symbol(__index, Decl(emitAccessExpressionOfCastedObjectLiteralExpressionInArrowFunctionES5.ts, 1, 39)) +>"1" : Symbol("1", Decl(emitAccessExpressionOfCastedObjectLiteralExpressionInArrowFunctionES5.ts, 1, 9)) +>"2" : Symbol("2", Decl(emitAccessExpressionOfCastedObjectLiteralExpressionInArrowFunctionES5.ts, 1, 21)) +>key : Symbol(key, Decl(emitAccessExpressionOfCastedObjectLiteralExpressionInArrowFunctionES5.ts, 1, 41)) +>x : Symbol(__index, Decl(emitAccessExpressionOfCastedObjectLiteralExpressionInArrowFunctionES5.ts, 1, 39)) + diff --git a/tests/baselines/reference/emitAccessExpressionOfCastedObjectLiteralExpressionInArrowFunctionES5(target=es5).types b/tests/baselines/reference/emitAccessExpressionOfCastedObjectLiteralExpressionInArrowFunctionES5(target=es5).types new file mode 100644 index 0000000000000..a0f0cb11f93f6 --- /dev/null +++ b/tests/baselines/reference/emitAccessExpressionOfCastedObjectLiteralExpressionInArrowFunctionES5(target=es5).types @@ -0,0 +1,52 @@ +//// [tests/cases/compiler/emitAccessExpressionOfCastedObjectLiteralExpressionInArrowFunctionES5.ts] //// + +=== emitAccessExpressionOfCastedObjectLiteralExpressionInArrowFunctionES5.ts === +(x) => ({ "1": "one", "2": "two" } as { [key: string]: string })[x]; +>(x) => ({ "1": "one", "2": "two" } as { [key: string]: string })[x] : (x: any) => string +> : ^ ^^^^^^^^^^^^^^^^ +>x : any +>({ "1": "one", "2": "two" } as { [key: string]: string })[x] : string +> : ^^^^^^ +>({ "1": "one", "2": "two" } as { [key: string]: string }) : { [key: string]: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ "1": "one", "2": "two" } as { [key: string]: string } : { [key: string]: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ "1": "one", "2": "two" } : { "1": string; "2": string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>"1" : string +> : ^^^^^^ +>"one" : "one" +> : ^^^^^ +>"2" : string +> : ^^^^^^ +>"two" : "two" +> : ^^^^^ +>key : string +> : ^^^^^^ +>x : any + +(x) => ({ "1": "one", "2": "two" } as { [key: string]: string }).x; +>(x) => ({ "1": "one", "2": "two" } as { [key: string]: string }).x : (x: any) => string +> : ^ ^^^^^^^^^^^^^^^^ +>x : any +>({ "1": "one", "2": "two" } as { [key: string]: string }).x : string +> : ^^^^^^ +>({ "1": "one", "2": "two" } as { [key: string]: string }) : { [key: string]: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ "1": "one", "2": "two" } as { [key: string]: string } : { [key: string]: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ "1": "one", "2": "two" } : { "1": string; "2": string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>"1" : string +> : ^^^^^^ +>"one" : "one" +> : ^^^^^ +>"2" : string +> : ^^^^^^ +>"two" : "two" +> : ^^^^^ +>key : string +> : ^^^^^^ +>x : string +> : ^^^^^^ + diff --git a/tests/baselines/reference/emitArrowFunction(target=es2015).js b/tests/baselines/reference/emitArrowFunction(target=es2015).js new file mode 100644 index 0000000000000..fec63650ae977 --- /dev/null +++ b/tests/baselines/reference/emitArrowFunction(target=es2015).js @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/es6/arrowFunction/emitArrowFunction.ts] //// + +//// [emitArrowFunction.ts] +var f1 = () => { } +var f2 = (x: string, y: string) => { } +var f3 = (x: string, y: number, ...rest) => { } +var f4 = (x: string, y: number, z = 10) => { } +function foo(func: () => boolean) { } +foo(() => true); +foo(() => { return false; }); + +//// [emitArrowFunction.js] +var f1 = () => { }; +var f2 = (x, y) => { }; +var f3 = (x, y, ...rest) => { }; +var f4 = (x, y, z = 10) => { }; +function foo(func) { } +foo(() => true); +foo(() => { return false; }); diff --git a/tests/baselines/reference/emitArrowFunction.symbols b/tests/baselines/reference/emitArrowFunction(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/emitArrowFunction.symbols rename to tests/baselines/reference/emitArrowFunction(target=es2015).symbols diff --git a/tests/baselines/reference/emitArrowFunction.types b/tests/baselines/reference/emitArrowFunction(target=es2015).types similarity index 100% rename from tests/baselines/reference/emitArrowFunction.types rename to tests/baselines/reference/emitArrowFunction(target=es2015).types diff --git a/tests/baselines/reference/emitArrowFunction.js b/tests/baselines/reference/emitArrowFunction(target=es5).js similarity index 100% rename from tests/baselines/reference/emitArrowFunction.js rename to tests/baselines/reference/emitArrowFunction(target=es5).js diff --git a/tests/baselines/reference/emitArrowFunction(target=es5).symbols b/tests/baselines/reference/emitArrowFunction(target=es5).symbols new file mode 100644 index 0000000000000..470907adb9e31 --- /dev/null +++ b/tests/baselines/reference/emitArrowFunction(target=es5).symbols @@ -0,0 +1,33 @@ +//// [tests/cases/conformance/es6/arrowFunction/emitArrowFunction.ts] //// + +=== emitArrowFunction.ts === +var f1 = () => { } +>f1 : Symbol(f1, Decl(emitArrowFunction.ts, 0, 3)) + +var f2 = (x: string, y: string) => { } +>f2 : Symbol(f2, Decl(emitArrowFunction.ts, 1, 3)) +>x : Symbol(x, Decl(emitArrowFunction.ts, 1, 10)) +>y : Symbol(y, Decl(emitArrowFunction.ts, 1, 20)) + +var f3 = (x: string, y: number, ...rest) => { } +>f3 : Symbol(f3, Decl(emitArrowFunction.ts, 2, 3)) +>x : Symbol(x, Decl(emitArrowFunction.ts, 2, 10)) +>y : Symbol(y, Decl(emitArrowFunction.ts, 2, 20)) +>rest : Symbol(rest, Decl(emitArrowFunction.ts, 2, 31)) + +var f4 = (x: string, y: number, z = 10) => { } +>f4 : Symbol(f4, Decl(emitArrowFunction.ts, 3, 3)) +>x : Symbol(x, Decl(emitArrowFunction.ts, 3, 10)) +>y : Symbol(y, Decl(emitArrowFunction.ts, 3, 20)) +>z : Symbol(z, Decl(emitArrowFunction.ts, 3, 31)) + +function foo(func: () => boolean) { } +>foo : Symbol(foo, Decl(emitArrowFunction.ts, 3, 46)) +>func : Symbol(func, Decl(emitArrowFunction.ts, 4, 13)) + +foo(() => true); +>foo : Symbol(foo, Decl(emitArrowFunction.ts, 3, 46)) + +foo(() => { return false; }); +>foo : Symbol(foo, Decl(emitArrowFunction.ts, 3, 46)) + diff --git a/tests/baselines/reference/emitArrowFunction(target=es5).types b/tests/baselines/reference/emitArrowFunction(target=es5).types new file mode 100644 index 0000000000000..15aa95ac5b724 --- /dev/null +++ b/tests/baselines/reference/emitArrowFunction(target=es5).types @@ -0,0 +1,71 @@ +//// [tests/cases/conformance/es6/arrowFunction/emitArrowFunction.ts] //// + +=== emitArrowFunction.ts === +var f1 = () => { } +>f1 : () => void +> : ^^^^^^^^^^ +>() => { } : () => void +> : ^^^^^^^^^^ + +var f2 = (x: string, y: string) => { } +>f2 : (x: string, y: string) => void +> : ^ ^^ ^^ ^^ ^^^^^^^^^ +>(x: string, y: string) => { } : (x: string, y: string) => void +> : ^ ^^ ^^ ^^ ^^^^^^^^^ +>x : string +> : ^^^^^^ +>y : string +> : ^^^^^^ + +var f3 = (x: string, y: number, ...rest) => { } +>f3 : (x: string, y: number, ...rest: any[]) => void +> : ^ ^^ ^^ ^^ ^^^^^ ^^^^^^^^^^^^^^^^ +>(x: string, y: number, ...rest) => { } : (x: string, y: number, ...rest: any[]) => void +> : ^ ^^ ^^ ^^ ^^^^^ ^^^^^^^^^^^^^^^^ +>x : string +> : ^^^^^^ +>y : number +> : ^^^^^^ +>rest : any[] +> : ^^^^^ + +var f4 = (x: string, y: number, z = 10) => { } +>f4 : (x: string, y: number, z?: number) => void +> : ^ ^^ ^^ ^^ ^^ ^^^^^^^^^^^^^^^^^^ +>(x: string, y: number, z = 10) => { } : (x: string, y: number, z?: number) => void +> : ^ ^^ ^^ ^^ ^^ ^^^^^^^^^^^^^^^^^^ +>x : string +> : ^^^^^^ +>y : number +> : ^^^^^^ +>z : number +> : ^^^^^^ +>10 : 10 +> : ^^ + +function foo(func: () => boolean) { } +>foo : (func: () => boolean) => void +> : ^ ^^ ^^^^^^^^^ +>func : () => boolean +> : ^^^^^^ + +foo(() => true); +>foo(() => true) : void +> : ^^^^ +>foo : (func: () => boolean) => void +> : ^ ^^ ^^^^^^^^^ +>() => true : () => true +> : ^^^^^^^^^^ +>true : true +> : ^^^^ + +foo(() => { return false; }); +>foo(() => { return false; }) : void +> : ^^^^ +>foo : (func: () => boolean) => void +> : ^ ^^ ^^^^^^^^^ +>() => { return false; } : () => false +> : ^^^^^^^^^^^ +>false : false +> : ^^^^^ + diff --git a/tests/baselines/reference/emitArrowFunctionAsIs(target=es2015).js b/tests/baselines/reference/emitArrowFunctionAsIs(target=es2015).js new file mode 100644 index 0000000000000..a948fba3e582b --- /dev/null +++ b/tests/baselines/reference/emitArrowFunctionAsIs(target=es2015).js @@ -0,0 +1,12 @@ +//// [tests/cases/conformance/es6/arrowFunction/emitArrowFunctionAsIs.ts] //// + +//// [emitArrowFunctionAsIs.ts] +var arrow1 = a => { }; +var arrow2 = (a) => { }; + +var arrow3 = (a, b) => { }; + +//// [emitArrowFunctionAsIs.js] +var arrow1 = a => { }; +var arrow2 = (a) => { }; +var arrow3 = (a, b) => { }; diff --git a/tests/baselines/reference/emitArrowFunctionAsIs.symbols b/tests/baselines/reference/emitArrowFunctionAsIs(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/emitArrowFunctionAsIs.symbols rename to tests/baselines/reference/emitArrowFunctionAsIs(target=es2015).symbols diff --git a/tests/baselines/reference/emitArrowFunctionAsIs.types b/tests/baselines/reference/emitArrowFunctionAsIs(target=es2015).types similarity index 100% rename from tests/baselines/reference/emitArrowFunctionAsIs.types rename to tests/baselines/reference/emitArrowFunctionAsIs(target=es2015).types diff --git a/tests/baselines/reference/emitArrowFunctionAsIs.js b/tests/baselines/reference/emitArrowFunctionAsIs(target=es5).js similarity index 100% rename from tests/baselines/reference/emitArrowFunctionAsIs.js rename to tests/baselines/reference/emitArrowFunctionAsIs(target=es5).js diff --git a/tests/baselines/reference/emitArrowFunctionAsIs(target=es5).symbols b/tests/baselines/reference/emitArrowFunctionAsIs(target=es5).symbols new file mode 100644 index 0000000000000..32cb8ce9df8de --- /dev/null +++ b/tests/baselines/reference/emitArrowFunctionAsIs(target=es5).symbols @@ -0,0 +1,16 @@ +//// [tests/cases/conformance/es6/arrowFunction/emitArrowFunctionAsIs.ts] //// + +=== emitArrowFunctionAsIs.ts === +var arrow1 = a => { }; +>arrow1 : Symbol(arrow1, Decl(emitArrowFunctionAsIs.ts, 0, 3)) +>a : Symbol(a, Decl(emitArrowFunctionAsIs.ts, 0, 12)) + +var arrow2 = (a) => { }; +>arrow2 : Symbol(arrow2, Decl(emitArrowFunctionAsIs.ts, 1, 3)) +>a : Symbol(a, Decl(emitArrowFunctionAsIs.ts, 1, 14)) + +var arrow3 = (a, b) => { }; +>arrow3 : Symbol(arrow3, Decl(emitArrowFunctionAsIs.ts, 3, 3)) +>a : Symbol(a, Decl(emitArrowFunctionAsIs.ts, 3, 14)) +>b : Symbol(b, Decl(emitArrowFunctionAsIs.ts, 3, 16)) + diff --git a/tests/baselines/reference/emitArrowFunctionAsIs(target=es5).types b/tests/baselines/reference/emitArrowFunctionAsIs(target=es5).types new file mode 100644 index 0000000000000..3ce8ec6390b9e --- /dev/null +++ b/tests/baselines/reference/emitArrowFunctionAsIs(target=es5).types @@ -0,0 +1,25 @@ +//// [tests/cases/conformance/es6/arrowFunction/emitArrowFunctionAsIs.ts] //// + +=== emitArrowFunctionAsIs.ts === +var arrow1 = a => { }; +>arrow1 : (a: any) => void +> : ^ ^^^^^^^^^^^^^^ +>a => { } : (a: any) => void +> : ^ ^^^^^^^^^^^^^^ +>a : any + +var arrow2 = (a) => { }; +>arrow2 : (a: any) => void +> : ^ ^^^^^^^^^^^^^^ +>(a) => { } : (a: any) => void +> : ^ ^^^^^^^^^^^^^^ +>a : any + +var arrow3 = (a, b) => { }; +>arrow3 : (a: any, b: any) => void +> : ^ ^^^^^^^ ^^^^^^^^^^^^^^ +>(a, b) => { } : (a: any, b: any) => void +> : ^ ^^^^^^^ ^^^^^^^^^^^^^^ +>a : any +>b : any + diff --git a/tests/baselines/reference/emitArrowFunctionThisCapturing.errors.txt b/tests/baselines/reference/emitArrowFunctionThisCapturing(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/emitArrowFunctionThisCapturing.errors.txt rename to tests/baselines/reference/emitArrowFunctionThisCapturing(target=es2015).errors.txt diff --git a/tests/baselines/reference/emitArrowFunctionThisCapturing(target=es2015).js b/tests/baselines/reference/emitArrowFunctionThisCapturing(target=es2015).js new file mode 100644 index 0000000000000..5a97b988f08a7 --- /dev/null +++ b/tests/baselines/reference/emitArrowFunctionThisCapturing(target=es2015).js @@ -0,0 +1,30 @@ +//// [tests/cases/conformance/es6/arrowFunction/emitArrowFunctionThisCapturing.ts] //// + +//// [emitArrowFunctionThisCapturing.ts] +var f1 = () => { + this.age = 10 +}; + +var f2 = (x: string) => { + this.name = x +} + +function foo(func: () => boolean) { } +foo(() => { + this.age = 100; + return true; +}); + + +//// [emitArrowFunctionThisCapturing.js] +var f1 = () => { + this.age = 10; +}; +var f2 = (x) => { + this.name = x; +}; +function foo(func) { } +foo(() => { + this.age = 100; + return true; +}); diff --git a/tests/baselines/reference/emitArrowFunctionThisCapturing.symbols b/tests/baselines/reference/emitArrowFunctionThisCapturing(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/emitArrowFunctionThisCapturing.symbols rename to tests/baselines/reference/emitArrowFunctionThisCapturing(target=es2015).symbols diff --git a/tests/baselines/reference/emitArrowFunctionThisCapturing.types b/tests/baselines/reference/emitArrowFunctionThisCapturing(target=es2015).types similarity index 100% rename from tests/baselines/reference/emitArrowFunctionThisCapturing.types rename to tests/baselines/reference/emitArrowFunctionThisCapturing(target=es2015).types diff --git a/tests/baselines/reference/emitArrowFunctionThisCapturing(target=es5).errors.txt b/tests/baselines/reference/emitArrowFunctionThisCapturing(target=es5).errors.txt new file mode 100644 index 0000000000000..990064af053a1 --- /dev/null +++ b/tests/baselines/reference/emitArrowFunctionThisCapturing(target=es5).errors.txt @@ -0,0 +1,20 @@ +emitArrowFunctionThisCapturing.ts(6,10): error TS2339: Property 'name' does not exist on type 'typeof globalThis'. + + +==== emitArrowFunctionThisCapturing.ts (1 errors) ==== + var f1 = () => { + this.age = 10 + }; + + var f2 = (x: string) => { + this.name = x + ~~~~ +!!! error TS2339: Property 'name' does not exist on type 'typeof globalThis'. + } + + function foo(func: () => boolean) { } + foo(() => { + this.age = 100; + return true; + }); + \ No newline at end of file diff --git a/tests/baselines/reference/emitArrowFunctionThisCapturing.js b/tests/baselines/reference/emitArrowFunctionThisCapturing(target=es5).js similarity index 100% rename from tests/baselines/reference/emitArrowFunctionThisCapturing.js rename to tests/baselines/reference/emitArrowFunctionThisCapturing(target=es5).js diff --git a/tests/baselines/reference/emitArrowFunctionThisCapturing(target=es5).symbols b/tests/baselines/reference/emitArrowFunctionThisCapturing(target=es5).symbols new file mode 100644 index 0000000000000..13d5b7554babf --- /dev/null +++ b/tests/baselines/reference/emitArrowFunctionThisCapturing(target=es5).symbols @@ -0,0 +1,33 @@ +//// [tests/cases/conformance/es6/arrowFunction/emitArrowFunctionThisCapturing.ts] //// + +=== emitArrowFunctionThisCapturing.ts === +var f1 = () => { +>f1 : Symbol(f1, Decl(emitArrowFunctionThisCapturing.ts, 0, 3)) + + this.age = 10 +>this : Symbol(globalThis) + +}; + +var f2 = (x: string) => { +>f2 : Symbol(f2, Decl(emitArrowFunctionThisCapturing.ts, 4, 3)) +>x : Symbol(x, Decl(emitArrowFunctionThisCapturing.ts, 4, 10)) + + this.name = x +>this : Symbol(globalThis) +>x : Symbol(x, Decl(emitArrowFunctionThisCapturing.ts, 4, 10)) +} + +function foo(func: () => boolean) { } +>foo : Symbol(foo, Decl(emitArrowFunctionThisCapturing.ts, 6, 1)) +>func : Symbol(func, Decl(emitArrowFunctionThisCapturing.ts, 8, 13)) + +foo(() => { +>foo : Symbol(foo, Decl(emitArrowFunctionThisCapturing.ts, 6, 1)) + + this.age = 100; +>this : Symbol(globalThis) + + return true; +}); + diff --git a/tests/baselines/reference/emitArrowFunctionThisCapturing(target=es5).types b/tests/baselines/reference/emitArrowFunctionThisCapturing(target=es5).types new file mode 100644 index 0000000000000..cb3f33a06e415 --- /dev/null +++ b/tests/baselines/reference/emitArrowFunctionThisCapturing(target=es5).types @@ -0,0 +1,76 @@ +//// [tests/cases/conformance/es6/arrowFunction/emitArrowFunctionThisCapturing.ts] //// + +=== emitArrowFunctionThisCapturing.ts === +var f1 = () => { +>f1 : () => void +> : ^^^^^^^^^^ +>() => { this.age = 10} : () => void +> : ^^^^^^^^^^ + + this.age = 10 +>this.age = 10 : 10 +> : ^^ +>this.age : any +> : ^^^ +>this : typeof globalThis +> : ^^^^^^^^^^^^^^^^^ +>age : any +> : ^^^ +>10 : 10 +> : ^^ + +}; + +var f2 = (x: string) => { +>f2 : (x: string) => void +> : ^ ^^ ^^^^^^^^^ +>(x: string) => { this.name = x} : (x: string) => void +> : ^ ^^ ^^^^^^^^^ +>x : string +> : ^^^^^^ + + this.name = x +>this.name = x : string +> : ^^^^^^ +>this.name : any +> : ^^^ +>this : typeof globalThis +> : ^^^^^^^^^^^^^^^^^ +>name : any +> : ^^^ +>x : string +> : ^^^^^^ +} + +function foo(func: () => boolean) { } +>foo : (func: () => boolean) => void +> : ^ ^^ ^^^^^^^^^ +>func : () => boolean +> : ^^^^^^ + +foo(() => { +>foo(() => { this.age = 100; return true;}) : void +> : ^^^^ +>foo : (func: () => boolean) => void +> : ^ ^^ ^^^^^^^^^ +>() => { this.age = 100; return true;} : () => true +> : ^^^^^^^^^^ + + this.age = 100; +>this.age = 100 : 100 +> : ^^^ +>this.age : any +> : ^^^ +>this : typeof globalThis +> : ^^^^^^^^^^^^^^^^^ +>age : any +> : ^^^ +>100 : 100 +> : ^^^ + + return true; +>true : true +> : ^^^^ + +}); + diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments01(target=es2015).errors.txt b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments01(target=es2015).errors.txt new file mode 100644 index 0000000000000..94d9dbd86bea7 --- /dev/null +++ b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments01(target=es2015).errors.txt @@ -0,0 +1,40 @@ +emitArrowFunctionWhenUsingArguments01.ts(2,15): error TS2304: Cannot find name 'arguments'. +emitArrowFunctionWhenUsingArguments01.ts(19,15): error TS2304: Cannot find name 'arguments'. + + +==== emitArrowFunctionWhenUsingArguments01.ts (2 errors) ==== + var a = () => { + var arg = arguments[0]; // error + ~~~~~~~~~ +!!! error TS2304: Cannot find name 'arguments'. + } + + var b = function () { + var a = () => { + var arg = arguments[0]; // error + } + } + + function baz() { + () => { + var arg = arguments[0]; + } + } + + function foo(inputFunc: () => void) { } + foo(() => { + var arg = arguments[0]; // error + ~~~~~~~~~ +!!! error TS2304: Cannot find name 'arguments'. + }); + + function bar() { + var arg = arguments[0]; // no error + } + + + () => { + function foo() { + var arg = arguments[0]; // no error + } + } \ No newline at end of file diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments01(target=es2015).js b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments01(target=es2015).js new file mode 100644 index 0000000000000..94fa1d7d39424 --- /dev/null +++ b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments01(target=es2015).js @@ -0,0 +1,61 @@ +//// [tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments01.ts] //// + +//// [emitArrowFunctionWhenUsingArguments01.ts] +var a = () => { + var arg = arguments[0]; // error +} + +var b = function () { + var a = () => { + var arg = arguments[0]; // error + } +} + +function baz() { + () => { + var arg = arguments[0]; + } +} + +function foo(inputFunc: () => void) { } +foo(() => { + var arg = arguments[0]; // error +}); + +function bar() { + var arg = arguments[0]; // no error +} + + +() => { + function foo() { + var arg = arguments[0]; // no error + } +} + +//// [emitArrowFunctionWhenUsingArguments01.js] +var a = () => { + var arg = arguments[0]; // error +}; +var b = function () { + var a = () => { + var arg = arguments[0]; // error + }; +}; +function baz() { + () => { + var arg = arguments[0]; + }; +} +function foo(inputFunc) { } +foo(() => { + var arg = arguments[0]; // error +}); +function bar() { + var arg = arguments[0]; // no error +} +() => { + function foo() { + var arg = arguments[0]; // no error + } +}; diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments01(target=es2015).symbols b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments01(target=es2015).symbols new file mode 100644 index 0000000000000..57738e423082b --- /dev/null +++ b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments01(target=es2015).symbols @@ -0,0 +1,62 @@ +//// [tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments01.ts] //// + +=== emitArrowFunctionWhenUsingArguments01.ts === +var a = () => { +>a : Symbol(a, Decl(emitArrowFunctionWhenUsingArguments01.ts, 0, 3)) + + var arg = arguments[0]; // error +>arg : Symbol(arg, Decl(emitArrowFunctionWhenUsingArguments01.ts, 1, 7)) +} + +var b = function () { +>b : Symbol(b, Decl(emitArrowFunctionWhenUsingArguments01.ts, 4, 3)) + + var a = () => { +>a : Symbol(a, Decl(emitArrowFunctionWhenUsingArguments01.ts, 5, 7)) + + var arg = arguments[0]; // error +>arg : Symbol(arg, Decl(emitArrowFunctionWhenUsingArguments01.ts, 6, 11)) +>arguments : Symbol(arguments) + } +} + +function baz() { +>baz : Symbol(baz, Decl(emitArrowFunctionWhenUsingArguments01.ts, 8, 1)) + + () => { + var arg = arguments[0]; +>arg : Symbol(arg, Decl(emitArrowFunctionWhenUsingArguments01.ts, 12, 5)) +>arguments : Symbol(arguments) + } +} + +function foo(inputFunc: () => void) { } +>foo : Symbol(foo, Decl(emitArrowFunctionWhenUsingArguments01.ts, 14, 1)) +>inputFunc : Symbol(inputFunc, Decl(emitArrowFunctionWhenUsingArguments01.ts, 16, 13)) + +foo(() => { +>foo : Symbol(foo, Decl(emitArrowFunctionWhenUsingArguments01.ts, 14, 1)) + + var arg = arguments[0]; // error +>arg : Symbol(arg, Decl(emitArrowFunctionWhenUsingArguments01.ts, 18, 7)) + +}); + +function bar() { +>bar : Symbol(bar, Decl(emitArrowFunctionWhenUsingArguments01.ts, 19, 3)) + + var arg = arguments[0]; // no error +>arg : Symbol(arg, Decl(emitArrowFunctionWhenUsingArguments01.ts, 22, 7)) +>arguments : Symbol(arguments) +} + + +() => { + function foo() { +>foo : Symbol(foo, Decl(emitArrowFunctionWhenUsingArguments01.ts, 26, 7)) + + var arg = arguments[0]; // no error +>arg : Symbol(arg, Decl(emitArrowFunctionWhenUsingArguments01.ts, 28, 5)) +>arguments : Symbol(arguments) + } +} diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments01(target=es2015).types b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments01(target=es2015).types new file mode 100644 index 0000000000000..6c3d1858f02ec --- /dev/null +++ b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments01(target=es2015).types @@ -0,0 +1,125 @@ +//// [tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments01.ts] //// + +=== emitArrowFunctionWhenUsingArguments01.ts === +var a = () => { +>a : () => void +> : ^^^^^^^^^^ +>() => { var arg = arguments[0]; // error} : () => void +> : ^^^^^^^^^^ + + var arg = arguments[0]; // error +>arg : any +> : ^^^ +>arguments[0] : any +> : ^^^ +>arguments : any +> : ^^^ +>0 : 0 +> : ^ +} + +var b = function () { +>b : () => void +> : ^^^^^^^^^^ +>function () { var a = () => { var arg = arguments[0]; // error }} : () => void +> : ^^^^^^^^^^ + + var a = () => { +>a : () => void +> : ^^^^^^^^^^ +>() => { var arg = arguments[0]; // error } : () => void +> : ^^^^^^^^^^ + + var arg = arguments[0]; // error +>arg : any +> : ^^^ +>arguments[0] : any +> : ^^^ +>arguments : IArguments +> : ^^^^^^^^^^ +>0 : 0 +> : ^ + } +} + +function baz() { +>baz : () => void +> : ^^^^^^^^^^ + + () => { +>() => { var arg = arguments[0]; } : () => void +> : ^^^^^^^^^^ + + var arg = arguments[0]; +>arg : any +> : ^^^ +>arguments[0] : any +> : ^^^ +>arguments : IArguments +> : ^^^^^^^^^^ +>0 : 0 +> : ^ + } +} + +function foo(inputFunc: () => void) { } +>foo : (inputFunc: () => void) => void +> : ^ ^^ ^^^^^^^^^ +>inputFunc : () => void +> : ^^^^^^ + +foo(() => { +>foo(() => { var arg = arguments[0]; // error}) : void +> : ^^^^ +>foo : (inputFunc: () => void) => void +> : ^ ^^ ^^^^^^^^^ +>() => { var arg = arguments[0]; // error} : () => void +> : ^^^^^^^^^^ + + var arg = arguments[0]; // error +>arg : any +> : ^^^ +>arguments[0] : any +> : ^^^ +>arguments : any +> : ^^^ +>0 : 0 +> : ^ + +}); + +function bar() { +>bar : () => void +> : ^^^^^^^^^^ + + var arg = arguments[0]; // no error +>arg : any +> : ^^^ +>arguments[0] : any +> : ^^^ +>arguments : IArguments +> : ^^^^^^^^^^ +>0 : 0 +> : ^ +} + + +() => { +>() => { function foo() { var arg = arguments[0]; // no error }} : () => void +> : ^^^^^^^^^^ + + function foo() { +>foo : () => void +> : ^^^^^^^^^^ + + var arg = arguments[0]; // no error +>arg : any +> : ^^^ +>arguments[0] : any +> : ^^^ +>arguments : IArguments +> : ^^^^^^^^^^ +>0 : 0 +> : ^ + } +} diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments01.errors.txt b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments01(target=es5).errors.txt similarity index 100% rename from tests/baselines/reference/emitArrowFunctionWhenUsingArguments01.errors.txt rename to tests/baselines/reference/emitArrowFunctionWhenUsingArguments01(target=es5).errors.txt diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments01.js b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments01(target=es5).js similarity index 100% rename from tests/baselines/reference/emitArrowFunctionWhenUsingArguments01.js rename to tests/baselines/reference/emitArrowFunctionWhenUsingArguments01(target=es5).js diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments01.symbols b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments01(target=es5).symbols similarity index 100% rename from tests/baselines/reference/emitArrowFunctionWhenUsingArguments01.symbols rename to tests/baselines/reference/emitArrowFunctionWhenUsingArguments01(target=es5).symbols diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments01.types b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments01(target=es5).types similarity index 100% rename from tests/baselines/reference/emitArrowFunctionWhenUsingArguments01.types rename to tests/baselines/reference/emitArrowFunctionWhenUsingArguments01(target=es5).types diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments02(target=es2015).errors.txt b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments02(target=es2015).errors.txt new file mode 100644 index 0000000000000..cf09790eb8c97 --- /dev/null +++ b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments02(target=es2015).errors.txt @@ -0,0 +1,7 @@ +emitArrowFunctionWhenUsingArguments02.ts(1,15): error TS2304: Cannot find name 'arguments'. + + +==== emitArrowFunctionWhenUsingArguments02.ts (1 errors) ==== + var a = () => arguments; + ~~~~~~~~~ +!!! error TS2304: Cannot find name 'arguments'. \ No newline at end of file diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments02(target=es2015).js b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments02(target=es2015).js new file mode 100644 index 0000000000000..02fa80384338b --- /dev/null +++ b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments02(target=es2015).js @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments02.ts] //// + +//// [emitArrowFunctionWhenUsingArguments02.ts] +var a = () => arguments; + +//// [emitArrowFunctionWhenUsingArguments02.js] +var a = () => arguments; diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments02(target=es2015).symbols b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments02(target=es2015).symbols new file mode 100644 index 0000000000000..525d7f19a9a66 --- /dev/null +++ b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments02(target=es2015).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments02.ts] //// + +=== emitArrowFunctionWhenUsingArguments02.ts === +var a = () => arguments; +>a : Symbol(a, Decl(emitArrowFunctionWhenUsingArguments02.ts, 0, 3)) + diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments02(target=es2015).types b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments02(target=es2015).types new file mode 100644 index 0000000000000..50c575b6e4896 --- /dev/null +++ b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments02(target=es2015).types @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments02.ts] //// + +=== emitArrowFunctionWhenUsingArguments02.ts === +var a = () => arguments; +>a : () => any +> : ^^^^^^^^^ +>() => arguments : () => any +> : ^^^^^^^^^ +>arguments : any +> : ^^^ + diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments02.errors.txt b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments02(target=es5).errors.txt similarity index 100% rename from tests/baselines/reference/emitArrowFunctionWhenUsingArguments02.errors.txt rename to tests/baselines/reference/emitArrowFunctionWhenUsingArguments02(target=es5).errors.txt diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments02.js b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments02(target=es5).js similarity index 100% rename from tests/baselines/reference/emitArrowFunctionWhenUsingArguments02.js rename to tests/baselines/reference/emitArrowFunctionWhenUsingArguments02(target=es5).js diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments02.symbols b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments02(target=es5).symbols similarity index 100% rename from tests/baselines/reference/emitArrowFunctionWhenUsingArguments02.symbols rename to tests/baselines/reference/emitArrowFunctionWhenUsingArguments02(target=es5).symbols diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments02.types b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments02(target=es5).types similarity index 100% rename from tests/baselines/reference/emitArrowFunctionWhenUsingArguments02.types rename to tests/baselines/reference/emitArrowFunctionWhenUsingArguments02(target=es5).types diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments03(target=es2015).js b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments03(target=es2015).js new file mode 100644 index 0000000000000..2f4e914f53e4f --- /dev/null +++ b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments03(target=es2015).js @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments03.ts] //// + +//// [emitArrowFunctionWhenUsingArguments03.ts] +var arguments; +var a = () => arguments; + +//// [emitArrowFunctionWhenUsingArguments03.js] +var arguments; +var a = () => arguments; diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments03(target=es2015).symbols b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments03(target=es2015).symbols new file mode 100644 index 0000000000000..e54b9ef5bd414 --- /dev/null +++ b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments03(target=es2015).symbols @@ -0,0 +1,10 @@ +//// [tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments03.ts] //// + +=== emitArrowFunctionWhenUsingArguments03.ts === +var arguments; +>arguments : Symbol(arguments, Decl(emitArrowFunctionWhenUsingArguments03.ts, 0, 3)) + +var a = () => arguments; +>a : Symbol(a, Decl(emitArrowFunctionWhenUsingArguments03.ts, 1, 3)) +>arguments : Symbol(arguments, Decl(emitArrowFunctionWhenUsingArguments03.ts, 0, 3)) + diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments03(target=es2015).types b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments03(target=es2015).types new file mode 100644 index 0000000000000..bbce51d986fa7 --- /dev/null +++ b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments03(target=es2015).types @@ -0,0 +1,13 @@ +//// [tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments03.ts] //// + +=== emitArrowFunctionWhenUsingArguments03.ts === +var arguments; +>arguments : any + +var a = () => arguments; +>a : () => any +> : ^^^^^^^^^ +>() => arguments : () => any +> : ^^^^^^^^^ +>arguments : any + diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments03.errors.txt b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments03(target=es5).errors.txt similarity index 100% rename from tests/baselines/reference/emitArrowFunctionWhenUsingArguments03.errors.txt rename to tests/baselines/reference/emitArrowFunctionWhenUsingArguments03(target=es5).errors.txt diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments03.js b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments03(target=es5).js similarity index 100% rename from tests/baselines/reference/emitArrowFunctionWhenUsingArguments03.js rename to tests/baselines/reference/emitArrowFunctionWhenUsingArguments03(target=es5).js diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments03.symbols b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments03(target=es5).symbols similarity index 100% rename from tests/baselines/reference/emitArrowFunctionWhenUsingArguments03.symbols rename to tests/baselines/reference/emitArrowFunctionWhenUsingArguments03(target=es5).symbols diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments03.types b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments03(target=es5).types similarity index 100% rename from tests/baselines/reference/emitArrowFunctionWhenUsingArguments03.types rename to tests/baselines/reference/emitArrowFunctionWhenUsingArguments03(target=es5).types diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments04(target=es2015).js b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments04(target=es2015).js new file mode 100644 index 0000000000000..58bab00c79850 --- /dev/null +++ b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments04(target=es2015).js @@ -0,0 +1,13 @@ +//// [tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments04.ts] //// + +//// [emitArrowFunctionWhenUsingArguments04.ts] +function f() { + var arguments; + var a = () => arguments; +} + +//// [emitArrowFunctionWhenUsingArguments04.js] +function f() { + var arguments; + var a = () => arguments; +} diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments04(target=es2015).symbols b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments04(target=es2015).symbols new file mode 100644 index 0000000000000..1b2fc7cf3feba --- /dev/null +++ b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments04(target=es2015).symbols @@ -0,0 +1,13 @@ +//// [tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments04.ts] //// + +=== emitArrowFunctionWhenUsingArguments04.ts === +function f() { +>f : Symbol(f, Decl(emitArrowFunctionWhenUsingArguments04.ts, 0, 0)) + + var arguments; +>arguments : Symbol(arguments, Decl(emitArrowFunctionWhenUsingArguments04.ts, 1, 7)) + + var a = () => arguments; +>a : Symbol(a, Decl(emitArrowFunctionWhenUsingArguments04.ts, 2, 7)) +>arguments : Symbol(arguments, Decl(emitArrowFunctionWhenUsingArguments04.ts, 1, 7)) +} diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments04(target=es2015).types b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments04(target=es2015).types new file mode 100644 index 0000000000000..f19ab5dbcf9fd --- /dev/null +++ b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments04(target=es2015).types @@ -0,0 +1,17 @@ +//// [tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments04.ts] //// + +=== emitArrowFunctionWhenUsingArguments04.ts === +function f() { +>f : () => void +> : ^^^^^^^^^^ + + var arguments; +>arguments : any + + var a = () => arguments; +>a : () => any +> : ^^^^^^^^^ +>() => arguments : () => any +> : ^^^^^^^^^ +>arguments : any +} diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments04.errors.txt b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments04(target=es5).errors.txt similarity index 100% rename from tests/baselines/reference/emitArrowFunctionWhenUsingArguments04.errors.txt rename to tests/baselines/reference/emitArrowFunctionWhenUsingArguments04(target=es5).errors.txt diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments04.js b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments04(target=es5).js similarity index 100% rename from tests/baselines/reference/emitArrowFunctionWhenUsingArguments04.js rename to tests/baselines/reference/emitArrowFunctionWhenUsingArguments04(target=es5).js diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments04.symbols b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments04(target=es5).symbols similarity index 100% rename from tests/baselines/reference/emitArrowFunctionWhenUsingArguments04.symbols rename to tests/baselines/reference/emitArrowFunctionWhenUsingArguments04(target=es5).symbols diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments04.types b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments04(target=es5).types similarity index 100% rename from tests/baselines/reference/emitArrowFunctionWhenUsingArguments04.types rename to tests/baselines/reference/emitArrowFunctionWhenUsingArguments04(target=es5).types diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments05(target=es2015).js b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments05(target=es2015).js new file mode 100644 index 0000000000000..40a8871a27ebb --- /dev/null +++ b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments05(target=es2015).js @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments05.ts] //// + +//// [emitArrowFunctionWhenUsingArguments05.ts] +function f(arguments) { + var a = () => arguments; +} + +//// [emitArrowFunctionWhenUsingArguments05.js] +function f(arguments) { + var a = () => arguments; +} diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments05(target=es2015).symbols b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments05(target=es2015).symbols new file mode 100644 index 0000000000000..254d7203b21f2 --- /dev/null +++ b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments05(target=es2015).symbols @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments05.ts] //// + +=== emitArrowFunctionWhenUsingArguments05.ts === +function f(arguments) { +>f : Symbol(f, Decl(emitArrowFunctionWhenUsingArguments05.ts, 0, 0)) +>arguments : Symbol(arguments, Decl(emitArrowFunctionWhenUsingArguments05.ts, 0, 11)) + + var a = () => arguments; +>a : Symbol(a, Decl(emitArrowFunctionWhenUsingArguments05.ts, 1, 7)) +>arguments : Symbol(arguments, Decl(emitArrowFunctionWhenUsingArguments05.ts, 0, 11)) +} diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments05(target=es2015).types b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments05(target=es2015).types new file mode 100644 index 0000000000000..6cd5c153831b4 --- /dev/null +++ b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments05(target=es2015).types @@ -0,0 +1,15 @@ +//// [tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments05.ts] //// + +=== emitArrowFunctionWhenUsingArguments05.ts === +function f(arguments) { +>f : (arguments: any) => void +> : ^ ^^^^^^^^^^^^^^ +>arguments : any + + var a = () => arguments; +>a : () => any +> : ^^^^^^^^^ +>() => arguments : () => any +> : ^^^^^^^^^ +>arguments : any +} diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments05.errors.txt b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments05(target=es5).errors.txt similarity index 100% rename from tests/baselines/reference/emitArrowFunctionWhenUsingArguments05.errors.txt rename to tests/baselines/reference/emitArrowFunctionWhenUsingArguments05(target=es5).errors.txt diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments05.js b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments05(target=es5).js similarity index 100% rename from tests/baselines/reference/emitArrowFunctionWhenUsingArguments05.js rename to tests/baselines/reference/emitArrowFunctionWhenUsingArguments05(target=es5).js diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments05.symbols b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments05(target=es5).symbols similarity index 100% rename from tests/baselines/reference/emitArrowFunctionWhenUsingArguments05.symbols rename to tests/baselines/reference/emitArrowFunctionWhenUsingArguments05(target=es5).symbols diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments05.types b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments05(target=es5).types similarity index 100% rename from tests/baselines/reference/emitArrowFunctionWhenUsingArguments05.types rename to tests/baselines/reference/emitArrowFunctionWhenUsingArguments05(target=es5).types diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments06(target=es2015).js b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments06(target=es2015).js new file mode 100644 index 0000000000000..93ab665ea5d62 --- /dev/null +++ b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments06(target=es2015).js @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments06.ts] //// + +//// [emitArrowFunctionWhenUsingArguments06.ts] +function f(arguments) { + var a = () => () => arguments; +} + +//// [emitArrowFunctionWhenUsingArguments06.js] +function f(arguments) { + var a = () => () => arguments; +} diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments06(target=es2015).symbols b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments06(target=es2015).symbols new file mode 100644 index 0000000000000..b9bf50b481ae3 --- /dev/null +++ b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments06(target=es2015).symbols @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments06.ts] //// + +=== emitArrowFunctionWhenUsingArguments06.ts === +function f(arguments) { +>f : Symbol(f, Decl(emitArrowFunctionWhenUsingArguments06.ts, 0, 0)) +>arguments : Symbol(arguments, Decl(emitArrowFunctionWhenUsingArguments06.ts, 0, 11)) + + var a = () => () => arguments; +>a : Symbol(a, Decl(emitArrowFunctionWhenUsingArguments06.ts, 1, 7)) +>arguments : Symbol(arguments, Decl(emitArrowFunctionWhenUsingArguments06.ts, 0, 11)) +} diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments06(target=es2015).types b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments06(target=es2015).types new file mode 100644 index 0000000000000..6fbcc94be2cdc --- /dev/null +++ b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments06(target=es2015).types @@ -0,0 +1,17 @@ +//// [tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments06.ts] //// + +=== emitArrowFunctionWhenUsingArguments06.ts === +function f(arguments) { +>f : (arguments: any) => void +> : ^ ^^^^^^^^^^^^^^ +>arguments : any + + var a = () => () => arguments; +>a : () => () => any +> : ^^^^^^^^^^^^^^^ +>() => () => arguments : () => () => any +> : ^^^^^^^^^^^^^^^ +>() => arguments : () => any +> : ^^^^^^^^^ +>arguments : any +} diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments06.errors.txt b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments06(target=es5).errors.txt similarity index 100% rename from tests/baselines/reference/emitArrowFunctionWhenUsingArguments06.errors.txt rename to tests/baselines/reference/emitArrowFunctionWhenUsingArguments06(target=es5).errors.txt diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments06.js b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments06(target=es5).js similarity index 100% rename from tests/baselines/reference/emitArrowFunctionWhenUsingArguments06.js rename to tests/baselines/reference/emitArrowFunctionWhenUsingArguments06(target=es5).js diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments06.symbols b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments06(target=es5).symbols similarity index 100% rename from tests/baselines/reference/emitArrowFunctionWhenUsingArguments06.symbols rename to tests/baselines/reference/emitArrowFunctionWhenUsingArguments06(target=es5).symbols diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments06.types b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments06(target=es5).types similarity index 100% rename from tests/baselines/reference/emitArrowFunctionWhenUsingArguments06.types rename to tests/baselines/reference/emitArrowFunctionWhenUsingArguments06(target=es5).types diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments07(target=es2015).js b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments07(target=es2015).js new file mode 100644 index 0000000000000..8371f0eca726c --- /dev/null +++ b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments07(target=es2015).js @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments07.ts] //// + +//// [emitArrowFunctionWhenUsingArguments07.ts] +function f(arguments) { + var a = (arguments) => () => arguments; +} + +//// [emitArrowFunctionWhenUsingArguments07.js] +function f(arguments) { + var a = (arguments) => () => arguments; +} diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments07(target=es2015).symbols b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments07(target=es2015).symbols new file mode 100644 index 0000000000000..bbfaf7221f80b --- /dev/null +++ b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments07(target=es2015).symbols @@ -0,0 +1,12 @@ +//// [tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments07.ts] //// + +=== emitArrowFunctionWhenUsingArguments07.ts === +function f(arguments) { +>f : Symbol(f, Decl(emitArrowFunctionWhenUsingArguments07.ts, 0, 0)) +>arguments : Symbol(arguments, Decl(emitArrowFunctionWhenUsingArguments07.ts, 0, 11)) + + var a = (arguments) => () => arguments; +>a : Symbol(a, Decl(emitArrowFunctionWhenUsingArguments07.ts, 1, 7)) +>arguments : Symbol(arguments, Decl(emitArrowFunctionWhenUsingArguments07.ts, 1, 13)) +>arguments : Symbol(arguments, Decl(emitArrowFunctionWhenUsingArguments07.ts, 1, 13)) +} diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments07(target=es2015).types b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments07(target=es2015).types new file mode 100644 index 0000000000000..3b67ce8002417 --- /dev/null +++ b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments07(target=es2015).types @@ -0,0 +1,18 @@ +//// [tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments07.ts] //// + +=== emitArrowFunctionWhenUsingArguments07.ts === +function f(arguments) { +>f : (arguments: any) => void +> : ^ ^^^^^^^^^^^^^^ +>arguments : any + + var a = (arguments) => () => arguments; +>a : (arguments: any) => () => any +> : ^ ^^^^^^^^^^^^^^^^^^^ +>(arguments) => () => arguments : (arguments: any) => () => any +> : ^ ^^^^^^^^^^^^^^^^^^^ +>arguments : any +>() => arguments : () => any +> : ^^^^^^^^^ +>arguments : any +} diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments07.errors.txt b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments07(target=es5).errors.txt similarity index 100% rename from tests/baselines/reference/emitArrowFunctionWhenUsingArguments07.errors.txt rename to tests/baselines/reference/emitArrowFunctionWhenUsingArguments07(target=es5).errors.txt diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments07.js b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments07(target=es5).js similarity index 100% rename from tests/baselines/reference/emitArrowFunctionWhenUsingArguments07.js rename to tests/baselines/reference/emitArrowFunctionWhenUsingArguments07(target=es5).js diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments07.symbols b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments07(target=es5).symbols similarity index 100% rename from tests/baselines/reference/emitArrowFunctionWhenUsingArguments07.symbols rename to tests/baselines/reference/emitArrowFunctionWhenUsingArguments07(target=es5).symbols diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments07.types b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments07(target=es5).types similarity index 100% rename from tests/baselines/reference/emitArrowFunctionWhenUsingArguments07.types rename to tests/baselines/reference/emitArrowFunctionWhenUsingArguments07(target=es5).types diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments08(target=es2015).js b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments08(target=es2015).js new file mode 100644 index 0000000000000..750d98ae7853b --- /dev/null +++ b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments08(target=es2015).js @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments08.ts] //// + +//// [emitArrowFunctionWhenUsingArguments08.ts] +function f(arguments) { + var a = () => (arguments) => arguments; +} + +//// [emitArrowFunctionWhenUsingArguments08.js] +function f(arguments) { + var a = () => (arguments) => arguments; +} diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments08.symbols b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments08(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/emitArrowFunctionWhenUsingArguments08.symbols rename to tests/baselines/reference/emitArrowFunctionWhenUsingArguments08(target=es2015).symbols diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments08.types b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments08(target=es2015).types similarity index 100% rename from tests/baselines/reference/emitArrowFunctionWhenUsingArguments08.types rename to tests/baselines/reference/emitArrowFunctionWhenUsingArguments08(target=es2015).types diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments08.js b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments08(target=es5).js similarity index 100% rename from tests/baselines/reference/emitArrowFunctionWhenUsingArguments08.js rename to tests/baselines/reference/emitArrowFunctionWhenUsingArguments08(target=es5).js diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments08(target=es5).symbols b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments08(target=es5).symbols new file mode 100644 index 0000000000000..b06a65d46f817 --- /dev/null +++ b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments08(target=es5).symbols @@ -0,0 +1,12 @@ +//// [tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments08.ts] //// + +=== emitArrowFunctionWhenUsingArguments08.ts === +function f(arguments) { +>f : Symbol(f, Decl(emitArrowFunctionWhenUsingArguments08.ts, 0, 0)) +>arguments : Symbol(arguments, Decl(emitArrowFunctionWhenUsingArguments08.ts, 0, 11)) + + var a = () => (arguments) => arguments; +>a : Symbol(a, Decl(emitArrowFunctionWhenUsingArguments08.ts, 1, 7)) +>arguments : Symbol(arguments, Decl(emitArrowFunctionWhenUsingArguments08.ts, 1, 19)) +>arguments : Symbol(arguments, Decl(emitArrowFunctionWhenUsingArguments08.ts, 1, 19)) +} diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments08(target=es5).types b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments08(target=es5).types new file mode 100644 index 0000000000000..b47b22daec481 --- /dev/null +++ b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments08(target=es5).types @@ -0,0 +1,18 @@ +//// [tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments08.ts] //// + +=== emitArrowFunctionWhenUsingArguments08.ts === +function f(arguments) { +>f : (arguments: any) => void +> : ^ ^^^^^^^^^^^^^^ +>arguments : any + + var a = () => (arguments) => arguments; +>a : () => (arguments: any) => any +> : ^^^^^^^ ^^^^^^^^^^^ +>() => (arguments) => arguments : () => (arguments: any) => any +> : ^^^^^^^ ^^^^^^^^^^^ +>(arguments) => arguments : (arguments: any) => any +> : ^ ^^^^^^^^^^^^^ +>arguments : any +>arguments : any +} diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments09(target=es2015).js b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments09(target=es2015).js new file mode 100644 index 0000000000000..33e4f14d1385d --- /dev/null +++ b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments09(target=es2015).js @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments09.ts] //// + +//// [emitArrowFunctionWhenUsingArguments09.ts] +function f(_arguments) { + var a = () => () => arguments; +} + +//// [emitArrowFunctionWhenUsingArguments09.js] +function f(_arguments) { + var a = () => () => arguments; +} diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments09.symbols b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments09(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/emitArrowFunctionWhenUsingArguments09.symbols rename to tests/baselines/reference/emitArrowFunctionWhenUsingArguments09(target=es2015).symbols diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments09(target=es2015).types b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments09(target=es2015).types new file mode 100644 index 0000000000000..7dda31a5e9555 --- /dev/null +++ b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments09(target=es2015).types @@ -0,0 +1,18 @@ +//// [tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments09.ts] //// + +=== emitArrowFunctionWhenUsingArguments09.ts === +function f(_arguments) { +>f : (_arguments: any) => void +> : ^ ^^^^^^^^^^^^^^ +>_arguments : any + + var a = () => () => arguments; +>a : () => () => IArguments +> : ^^^^^^^^^^^^^^^^^^^^^^ +>() => () => arguments : () => () => IArguments +> : ^^^^^^^^^^^^^^^^^^^^^^ +>() => arguments : () => IArguments +> : ^^^^^^^^^^^^^^^^ +>arguments : IArguments +> : ^^^^^^^^^^ +} diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments09.errors.txt b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments09(target=es5).errors.txt similarity index 100% rename from tests/baselines/reference/emitArrowFunctionWhenUsingArguments09.errors.txt rename to tests/baselines/reference/emitArrowFunctionWhenUsingArguments09(target=es5).errors.txt diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments09.js b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments09(target=es5).js similarity index 100% rename from tests/baselines/reference/emitArrowFunctionWhenUsingArguments09.js rename to tests/baselines/reference/emitArrowFunctionWhenUsingArguments09(target=es5).js diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments09(target=es5).symbols b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments09(target=es5).symbols new file mode 100644 index 0000000000000..1eceab8fe1eea --- /dev/null +++ b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments09(target=es5).symbols @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments09.ts] //// + +=== emitArrowFunctionWhenUsingArguments09.ts === +function f(_arguments) { +>f : Symbol(f, Decl(emitArrowFunctionWhenUsingArguments09.ts, 0, 0)) +>_arguments : Symbol(_arguments, Decl(emitArrowFunctionWhenUsingArguments09.ts, 0, 11)) + + var a = () => () => arguments; +>a : Symbol(a, Decl(emitArrowFunctionWhenUsingArguments09.ts, 1, 7)) +>arguments : Symbol(arguments) +} diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments09.types b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments09(target=es5).types similarity index 100% rename from tests/baselines/reference/emitArrowFunctionWhenUsingArguments09.types rename to tests/baselines/reference/emitArrowFunctionWhenUsingArguments09(target=es5).types diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments10(target=es2015).js b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments10(target=es2015).js new file mode 100644 index 0000000000000..0ccae4da3e3d2 --- /dev/null +++ b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments10(target=es2015).js @@ -0,0 +1,13 @@ +//// [tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments10.ts] //// + +//// [emitArrowFunctionWhenUsingArguments10.ts] +function f() { + var _arguments = 10; + var a = () => () => arguments; +} + +//// [emitArrowFunctionWhenUsingArguments10.js] +function f() { + var _arguments = 10; + var a = () => () => arguments; +} diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments10.symbols b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments10(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/emitArrowFunctionWhenUsingArguments10.symbols rename to tests/baselines/reference/emitArrowFunctionWhenUsingArguments10(target=es2015).symbols diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments10.types b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments10(target=es2015).types similarity index 100% rename from tests/baselines/reference/emitArrowFunctionWhenUsingArguments10.types rename to tests/baselines/reference/emitArrowFunctionWhenUsingArguments10(target=es2015).types diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments10.errors.txt b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments10(target=es5).errors.txt similarity index 100% rename from tests/baselines/reference/emitArrowFunctionWhenUsingArguments10.errors.txt rename to tests/baselines/reference/emitArrowFunctionWhenUsingArguments10(target=es5).errors.txt diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments10.js b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments10(target=es5).js similarity index 100% rename from tests/baselines/reference/emitArrowFunctionWhenUsingArguments10.js rename to tests/baselines/reference/emitArrowFunctionWhenUsingArguments10(target=es5).js diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments10(target=es5).symbols b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments10(target=es5).symbols new file mode 100644 index 0000000000000..e8dde15e97ebe --- /dev/null +++ b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments10(target=es5).symbols @@ -0,0 +1,13 @@ +//// [tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments10.ts] //// + +=== emitArrowFunctionWhenUsingArguments10.ts === +function f() { +>f : Symbol(f, Decl(emitArrowFunctionWhenUsingArguments10.ts, 0, 0)) + + var _arguments = 10; +>_arguments : Symbol(_arguments, Decl(emitArrowFunctionWhenUsingArguments10.ts, 1, 7)) + + var a = () => () => arguments; +>a : Symbol(a, Decl(emitArrowFunctionWhenUsingArguments10.ts, 2, 7)) +>arguments : Symbol(arguments) +} diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments10(target=es5).types b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments10(target=es5).types new file mode 100644 index 0000000000000..de109eb0a2a79 --- /dev/null +++ b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments10(target=es5).types @@ -0,0 +1,23 @@ +//// [tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments10.ts] //// + +=== emitArrowFunctionWhenUsingArguments10.ts === +function f() { +>f : () => void +> : ^^^^^^^^^^ + + var _arguments = 10; +>_arguments : number +> : ^^^^^^ +>10 : 10 +> : ^^ + + var a = () => () => arguments; +>a : () => () => IArguments +> : ^^^^^^^^^^^^^^^^^^^^^^ +>() => () => arguments : () => () => IArguments +> : ^^^^^^^^^^^^^^^^^^^^^^ +>() => arguments : () => IArguments +> : ^^^^^^^^^^^^^^^^ +>arguments : IArguments +> : ^^^^^^^^^^ +} diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments11(target=es2015).js b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments11(target=es2015).js new file mode 100644 index 0000000000000..d6919f26aa88e --- /dev/null +++ b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments11(target=es2015).js @@ -0,0 +1,13 @@ +//// [tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments11.ts] //// + +//// [emitArrowFunctionWhenUsingArguments11.ts] +function f(arguments) { + var _arguments = 10; + var a = () => () => arguments; +} + +//// [emitArrowFunctionWhenUsingArguments11.js] +function f(arguments) { + var _arguments = 10; + var a = () => () => arguments; +} diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments11(target=es2015).symbols b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments11(target=es2015).symbols new file mode 100644 index 0000000000000..96debf73c8304 --- /dev/null +++ b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments11(target=es2015).symbols @@ -0,0 +1,14 @@ +//// [tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments11.ts] //// + +=== emitArrowFunctionWhenUsingArguments11.ts === +function f(arguments) { +>f : Symbol(f, Decl(emitArrowFunctionWhenUsingArguments11.ts, 0, 0)) +>arguments : Symbol(arguments, Decl(emitArrowFunctionWhenUsingArguments11.ts, 0, 11)) + + var _arguments = 10; +>_arguments : Symbol(_arguments, Decl(emitArrowFunctionWhenUsingArguments11.ts, 1, 7)) + + var a = () => () => arguments; +>a : Symbol(a, Decl(emitArrowFunctionWhenUsingArguments11.ts, 2, 7)) +>arguments : Symbol(arguments, Decl(emitArrowFunctionWhenUsingArguments11.ts, 0, 11)) +} diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments11(target=es2015).types b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments11(target=es2015).types new file mode 100644 index 0000000000000..e273761aeea90 --- /dev/null +++ b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments11(target=es2015).types @@ -0,0 +1,23 @@ +//// [tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments11.ts] //// + +=== emitArrowFunctionWhenUsingArguments11.ts === +function f(arguments) { +>f : (arguments: any) => void +> : ^ ^^^^^^^^^^^^^^ +>arguments : any + + var _arguments = 10; +>_arguments : number +> : ^^^^^^ +>10 : 10 +> : ^^ + + var a = () => () => arguments; +>a : () => () => any +> : ^^^^^^^^^^^^^^^ +>() => () => arguments : () => () => any +> : ^^^^^^^^^^^^^^^ +>() => arguments : () => any +> : ^^^^^^^^^ +>arguments : any +} diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments11.errors.txt b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments11(target=es5).errors.txt similarity index 100% rename from tests/baselines/reference/emitArrowFunctionWhenUsingArguments11.errors.txt rename to tests/baselines/reference/emitArrowFunctionWhenUsingArguments11(target=es5).errors.txt diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments11.js b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments11(target=es5).js similarity index 100% rename from tests/baselines/reference/emitArrowFunctionWhenUsingArguments11.js rename to tests/baselines/reference/emitArrowFunctionWhenUsingArguments11(target=es5).js diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments11.symbols b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments11(target=es5).symbols similarity index 100% rename from tests/baselines/reference/emitArrowFunctionWhenUsingArguments11.symbols rename to tests/baselines/reference/emitArrowFunctionWhenUsingArguments11(target=es5).symbols diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments11.types b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments11(target=es5).types similarity index 100% rename from tests/baselines/reference/emitArrowFunctionWhenUsingArguments11.types rename to tests/baselines/reference/emitArrowFunctionWhenUsingArguments11(target=es5).types diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments12(target=es2015).errors.txt b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments12(target=es2015).errors.txt new file mode 100644 index 0000000000000..ac04a75538d93 --- /dev/null +++ b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments12(target=es2015).errors.txt @@ -0,0 +1,11 @@ +emitArrowFunctionWhenUsingArguments12.ts(2,7): error TS1210: Code contained in a class is evaluated in JavaScript's strict mode which does not allow this use of 'arguments'. For more information, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode. + + +==== emitArrowFunctionWhenUsingArguments12.ts (1 errors) ==== + class C { + f(arguments) { + ~~~~~~~~~ +!!! error TS1210: Code contained in a class is evaluated in JavaScript's strict mode which does not allow this use of 'arguments'. For more information, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode. + var a = () => arguments; + } + } \ No newline at end of file diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments12(target=es2015).js b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments12(target=es2015).js new file mode 100644 index 0000000000000..de013b2e50b13 --- /dev/null +++ b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments12(target=es2015).js @@ -0,0 +1,15 @@ +//// [tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments12.ts] //// + +//// [emitArrowFunctionWhenUsingArguments12.ts] +class C { + f(arguments) { + var a = () => arguments; + } +} + +//// [emitArrowFunctionWhenUsingArguments12.js] +class C { + f(arguments) { + var a = () => arguments; + } +} diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments12(target=es2015).symbols b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments12(target=es2015).symbols new file mode 100644 index 0000000000000..69807522f1799 --- /dev/null +++ b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments12(target=es2015).symbols @@ -0,0 +1,15 @@ +//// [tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments12.ts] //// + +=== emitArrowFunctionWhenUsingArguments12.ts === +class C { +>C : Symbol(C, Decl(emitArrowFunctionWhenUsingArguments12.ts, 0, 0)) + + f(arguments) { +>f : Symbol(C.f, Decl(emitArrowFunctionWhenUsingArguments12.ts, 0, 9)) +>arguments : Symbol(arguments, Decl(emitArrowFunctionWhenUsingArguments12.ts, 1, 6)) + + var a = () => arguments; +>a : Symbol(a, Decl(emitArrowFunctionWhenUsingArguments12.ts, 2, 11)) +>arguments : Symbol(arguments, Decl(emitArrowFunctionWhenUsingArguments12.ts, 1, 6)) + } +} diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments12(target=es2015).types b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments12(target=es2015).types new file mode 100644 index 0000000000000..40ce11eb65f02 --- /dev/null +++ b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments12(target=es2015).types @@ -0,0 +1,22 @@ +//// [tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments12.ts] //// + +=== emitArrowFunctionWhenUsingArguments12.ts === +class C { +>C : C +> : ^ + + f(arguments) { +>f : (arguments: any) => void +> : ^ ^^^^^^^^^^^^^^ +>arguments : any +> : ^^^ + + var a = () => arguments; +>a : () => any +> : ^^^^^^^^^ +>() => arguments : () => any +> : ^^^^^^^^^ +>arguments : any +> : ^^^ + } +} diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments12.errors.txt b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments12(target=es5).errors.txt similarity index 100% rename from tests/baselines/reference/emitArrowFunctionWhenUsingArguments12.errors.txt rename to tests/baselines/reference/emitArrowFunctionWhenUsingArguments12(target=es5).errors.txt diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments12.js b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments12(target=es5).js similarity index 100% rename from tests/baselines/reference/emitArrowFunctionWhenUsingArguments12.js rename to tests/baselines/reference/emitArrowFunctionWhenUsingArguments12(target=es5).js diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments12.symbols b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments12(target=es5).symbols similarity index 100% rename from tests/baselines/reference/emitArrowFunctionWhenUsingArguments12.symbols rename to tests/baselines/reference/emitArrowFunctionWhenUsingArguments12(target=es5).symbols diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments12.types b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments12(target=es5).types similarity index 100% rename from tests/baselines/reference/emitArrowFunctionWhenUsingArguments12.types rename to tests/baselines/reference/emitArrowFunctionWhenUsingArguments12(target=es5).types diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments13(target=es2015).js b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments13(target=es2015).js new file mode 100644 index 0000000000000..5ca8028ea71b2 --- /dev/null +++ b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments13(target=es2015).js @@ -0,0 +1,13 @@ +//// [tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments13.ts] //// + +//// [emitArrowFunctionWhenUsingArguments13.ts] +function f() { + var _arguments = 10; + var a = (arguments) => () => _arguments; +} + +//// [emitArrowFunctionWhenUsingArguments13.js] +function f() { + var _arguments = 10; + var a = (arguments) => () => _arguments; +} diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments13.symbols b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments13(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/emitArrowFunctionWhenUsingArguments13.symbols rename to tests/baselines/reference/emitArrowFunctionWhenUsingArguments13(target=es2015).symbols diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments13.types b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments13(target=es2015).types similarity index 100% rename from tests/baselines/reference/emitArrowFunctionWhenUsingArguments13.types rename to tests/baselines/reference/emitArrowFunctionWhenUsingArguments13(target=es2015).types diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments13.js b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments13(target=es5).js similarity index 100% rename from tests/baselines/reference/emitArrowFunctionWhenUsingArguments13.js rename to tests/baselines/reference/emitArrowFunctionWhenUsingArguments13(target=es5).js diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments13(target=es5).symbols b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments13(target=es5).symbols new file mode 100644 index 0000000000000..c326e772a4203 --- /dev/null +++ b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments13(target=es5).symbols @@ -0,0 +1,14 @@ +//// [tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments13.ts] //// + +=== emitArrowFunctionWhenUsingArguments13.ts === +function f() { +>f : Symbol(f, Decl(emitArrowFunctionWhenUsingArguments13.ts, 0, 0)) + + var _arguments = 10; +>_arguments : Symbol(_arguments, Decl(emitArrowFunctionWhenUsingArguments13.ts, 1, 7)) + + var a = (arguments) => () => _arguments; +>a : Symbol(a, Decl(emitArrowFunctionWhenUsingArguments13.ts, 2, 7)) +>arguments : Symbol(arguments, Decl(emitArrowFunctionWhenUsingArguments13.ts, 2, 13)) +>_arguments : Symbol(_arguments, Decl(emitArrowFunctionWhenUsingArguments13.ts, 1, 7)) +} diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments13(target=es5).types b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments13(target=es5).types new file mode 100644 index 0000000000000..6de9462639006 --- /dev/null +++ b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments13(target=es5).types @@ -0,0 +1,24 @@ +//// [tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments13.ts] //// + +=== emitArrowFunctionWhenUsingArguments13.ts === +function f() { +>f : () => void +> : ^^^^^^^^^^ + + var _arguments = 10; +>_arguments : number +> : ^^^^^^ +>10 : 10 +> : ^^ + + var a = (arguments) => () => _arguments; +>a : (arguments: any) => () => number +> : ^ ^^^^^^^^^^^^^^^^^^^^^^ +>(arguments) => () => _arguments : (arguments: any) => () => number +> : ^ ^^^^^^^^^^^^^^^^^^^^^^ +>arguments : any +>() => _arguments : () => number +> : ^^^^^^^^^^^^ +>_arguments : number +> : ^^^^^^ +} diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments14(target=es2015).js b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments14(target=es2015).js new file mode 100644 index 0000000000000..4150c6c440a08 --- /dev/null +++ b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments14(target=es2015).js @@ -0,0 +1,17 @@ +//// [tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments14.ts] //// + +//// [emitArrowFunctionWhenUsingArguments14.ts] +function f() { + if (Math.random()) { + const arguments = 100; + return () => arguments; + } +} + +//// [emitArrowFunctionWhenUsingArguments14.js] +function f() { + if (Math.random()) { + const arguments = 100; + return () => arguments; + } +} diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments14(target=es2015).symbols b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments14(target=es2015).symbols new file mode 100644 index 0000000000000..790f5dc7a16d2 --- /dev/null +++ b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments14(target=es2015).symbols @@ -0,0 +1,18 @@ +//// [tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments14.ts] //// + +=== emitArrowFunctionWhenUsingArguments14.ts === +function f() { +>f : Symbol(f, Decl(emitArrowFunctionWhenUsingArguments14.ts, 0, 0)) + + if (Math.random()) { +>Math.random : Symbol(Math.random, Decl(lib.es5.d.ts, --, --)) +>Math : Symbol(Math, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>random : Symbol(Math.random, Decl(lib.es5.d.ts, --, --)) + + const arguments = 100; +>arguments : Symbol(arguments, Decl(emitArrowFunctionWhenUsingArguments14.ts, 2, 13)) + + return () => arguments; +>arguments : Symbol(arguments, Decl(emitArrowFunctionWhenUsingArguments14.ts, 2, 13)) + } +} diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments14(target=es2015).types b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments14(target=es2015).types new file mode 100644 index 0000000000000..63f66daca2a4b --- /dev/null +++ b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments14(target=es2015).types @@ -0,0 +1,30 @@ +//// [tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments14.ts] //// + +=== emitArrowFunctionWhenUsingArguments14.ts === +function f() { +>f : () => () => number +> : ^^^^^^^^^^^^^^^^^^ + + if (Math.random()) { +>Math.random() : number +> : ^^^^^^ +>Math.random : () => number +> : ^^^^^^ +>Math : Math +> : ^^^^ +>random : () => number +> : ^^^^^^ + + const arguments = 100; +>arguments : 100 +> : ^^^ +>100 : 100 +> : ^^^ + + return () => arguments; +>() => arguments : () => number +> : ^^^^^^^^^^^^ +>arguments : 100 +> : ^^^ + } +} diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments14.errors.txt b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments14(target=es5).errors.txt similarity index 100% rename from tests/baselines/reference/emitArrowFunctionWhenUsingArguments14.errors.txt rename to tests/baselines/reference/emitArrowFunctionWhenUsingArguments14(target=es5).errors.txt diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments14.js b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments14(target=es5).js similarity index 100% rename from tests/baselines/reference/emitArrowFunctionWhenUsingArguments14.js rename to tests/baselines/reference/emitArrowFunctionWhenUsingArguments14(target=es5).js diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments14.symbols b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments14(target=es5).symbols similarity index 100% rename from tests/baselines/reference/emitArrowFunctionWhenUsingArguments14.symbols rename to tests/baselines/reference/emitArrowFunctionWhenUsingArguments14(target=es5).symbols diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments14.types b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments14(target=es5).types similarity index 100% rename from tests/baselines/reference/emitArrowFunctionWhenUsingArguments14.types rename to tests/baselines/reference/emitArrowFunctionWhenUsingArguments14(target=es5).types diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments15(target=es2015).js b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments15(target=es2015).js new file mode 100644 index 0000000000000..3c7ae3d1d047d --- /dev/null +++ b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments15(target=es2015).js @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments15.ts] //// + +//// [emitArrowFunctionWhenUsingArguments15.ts] +function f() { + var arguments = "hello"; + if (Math.random()) { + const arguments = 100; + return () => arguments; + } +} + +//// [emitArrowFunctionWhenUsingArguments15.js] +function f() { + var arguments = "hello"; + if (Math.random()) { + const arguments = 100; + return () => arguments; + } +} diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments15(target=es2015).symbols b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments15(target=es2015).symbols new file mode 100644 index 0000000000000..e7792c1e733c7 --- /dev/null +++ b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments15(target=es2015).symbols @@ -0,0 +1,21 @@ +//// [tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments15.ts] //// + +=== emitArrowFunctionWhenUsingArguments15.ts === +function f() { +>f : Symbol(f, Decl(emitArrowFunctionWhenUsingArguments15.ts, 0, 0)) + + var arguments = "hello"; +>arguments : Symbol(arguments, Decl(emitArrowFunctionWhenUsingArguments15.ts, 1, 7)) + + if (Math.random()) { +>Math.random : Symbol(Math.random, Decl(lib.es5.d.ts, --, --)) +>Math : Symbol(Math, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>random : Symbol(Math.random, Decl(lib.es5.d.ts, --, --)) + + const arguments = 100; +>arguments : Symbol(arguments, Decl(emitArrowFunctionWhenUsingArguments15.ts, 3, 13)) + + return () => arguments; +>arguments : Symbol(arguments, Decl(emitArrowFunctionWhenUsingArguments15.ts, 3, 13)) + } +} diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments15(target=es2015).types b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments15(target=es2015).types new file mode 100644 index 0000000000000..c83d8ca35e8b5 --- /dev/null +++ b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments15(target=es2015).types @@ -0,0 +1,36 @@ +//// [tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments15.ts] //// + +=== emitArrowFunctionWhenUsingArguments15.ts === +function f() { +>f : () => () => number +> : ^^^^^^^^^^^^^^^^^^ + + var arguments = "hello"; +>arguments : string +> : ^^^^^^ +>"hello" : "hello" +> : ^^^^^^^ + + if (Math.random()) { +>Math.random() : number +> : ^^^^^^ +>Math.random : () => number +> : ^^^^^^ +>Math : Math +> : ^^^^ +>random : () => number +> : ^^^^^^ + + const arguments = 100; +>arguments : 100 +> : ^^^ +>100 : 100 +> : ^^^ + + return () => arguments; +>() => arguments : () => number +> : ^^^^^^^^^^^^ +>arguments : 100 +> : ^^^ + } +} diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments15.errors.txt b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments15(target=es5).errors.txt similarity index 100% rename from tests/baselines/reference/emitArrowFunctionWhenUsingArguments15.errors.txt rename to tests/baselines/reference/emitArrowFunctionWhenUsingArguments15(target=es5).errors.txt diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments15.js b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments15(target=es5).js similarity index 100% rename from tests/baselines/reference/emitArrowFunctionWhenUsingArguments15.js rename to tests/baselines/reference/emitArrowFunctionWhenUsingArguments15(target=es5).js diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments15.symbols b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments15(target=es5).symbols similarity index 100% rename from tests/baselines/reference/emitArrowFunctionWhenUsingArguments15.symbols rename to tests/baselines/reference/emitArrowFunctionWhenUsingArguments15(target=es5).symbols diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments15.types b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments15(target=es5).types similarity index 100% rename from tests/baselines/reference/emitArrowFunctionWhenUsingArguments15.types rename to tests/baselines/reference/emitArrowFunctionWhenUsingArguments15(target=es5).types diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments16(target=es2015).js b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments16(target=es2015).js new file mode 100644 index 0000000000000..5ac3f2f5b157a --- /dev/null +++ b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments16(target=es2015).js @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments16.ts] //// + +//// [emitArrowFunctionWhenUsingArguments16.ts] +function f() { + var arguments = "hello"; + if (Math.random()) { + return () => arguments[0]; + } + var arguments = "world"; +} + +//// [emitArrowFunctionWhenUsingArguments16.js] +function f() { + var arguments = "hello"; + if (Math.random()) { + return () => arguments[0]; + } + var arguments = "world"; +} diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments16(target=es2015).symbols b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments16(target=es2015).symbols new file mode 100644 index 0000000000000..03ff76ba6952b --- /dev/null +++ b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments16(target=es2015).symbols @@ -0,0 +1,20 @@ +//// [tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments16.ts] //// + +=== emitArrowFunctionWhenUsingArguments16.ts === +function f() { +>f : Symbol(f, Decl(emitArrowFunctionWhenUsingArguments16.ts, 0, 0)) + + var arguments = "hello"; +>arguments : Symbol(arguments, Decl(emitArrowFunctionWhenUsingArguments16.ts, 1, 7), Decl(emitArrowFunctionWhenUsingArguments16.ts, 5, 7)) + + if (Math.random()) { +>Math.random : Symbol(Math.random, Decl(lib.es5.d.ts, --, --)) +>Math : Symbol(Math, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>random : Symbol(Math.random, Decl(lib.es5.d.ts, --, --)) + + return () => arguments[0]; +>arguments : Symbol(arguments, Decl(emitArrowFunctionWhenUsingArguments16.ts, 1, 7), Decl(emitArrowFunctionWhenUsingArguments16.ts, 5, 7)) + } + var arguments = "world"; +>arguments : Symbol(arguments, Decl(emitArrowFunctionWhenUsingArguments16.ts, 1, 7), Decl(emitArrowFunctionWhenUsingArguments16.ts, 5, 7)) +} diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments16(target=es2015).types b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments16(target=es2015).types new file mode 100644 index 0000000000000..780601d9fc530 --- /dev/null +++ b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments16(target=es2015).types @@ -0,0 +1,39 @@ +//// [tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments16.ts] //// + +=== emitArrowFunctionWhenUsingArguments16.ts === +function f() { +>f : () => () => string +> : ^^^^^^^^^^^^^^^^^^ + + var arguments = "hello"; +>arguments : string +> : ^^^^^^ +>"hello" : "hello" +> : ^^^^^^^ + + if (Math.random()) { +>Math.random() : number +> : ^^^^^^ +>Math.random : () => number +> : ^^^^^^ +>Math : Math +> : ^^^^ +>random : () => number +> : ^^^^^^ + + return () => arguments[0]; +>() => arguments[0] : () => string +> : ^^^^^^^^^^^^ +>arguments[0] : string +> : ^^^^^^ +>arguments : string +> : ^^^^^^ +>0 : 0 +> : ^ + } + var arguments = "world"; +>arguments : string +> : ^^^^^^ +>"world" : "world" +> : ^^^^^^^ +} diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments16.errors.txt b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments16(target=es5).errors.txt similarity index 100% rename from tests/baselines/reference/emitArrowFunctionWhenUsingArguments16.errors.txt rename to tests/baselines/reference/emitArrowFunctionWhenUsingArguments16(target=es5).errors.txt diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments16.js b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments16(target=es5).js similarity index 100% rename from tests/baselines/reference/emitArrowFunctionWhenUsingArguments16.js rename to tests/baselines/reference/emitArrowFunctionWhenUsingArguments16(target=es5).js diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments16.symbols b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments16(target=es5).symbols similarity index 100% rename from tests/baselines/reference/emitArrowFunctionWhenUsingArguments16.symbols rename to tests/baselines/reference/emitArrowFunctionWhenUsingArguments16(target=es5).symbols diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments16.types b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments16(target=es5).types similarity index 100% rename from tests/baselines/reference/emitArrowFunctionWhenUsingArguments16.types rename to tests/baselines/reference/emitArrowFunctionWhenUsingArguments16(target=es5).types diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments17(target=es2015).js b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments17(target=es2015).js new file mode 100644 index 0000000000000..e64cdc282d316 --- /dev/null +++ b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments17(target=es2015).js @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments17.ts] //// + +//// [emitArrowFunctionWhenUsingArguments17.ts] +function f() { + var { arguments } = { arguments: "hello" }; + if (Math.random()) { + return () => arguments[0]; + } + var arguments = "world"; +} + +//// [emitArrowFunctionWhenUsingArguments17.js] +function f() { + var { arguments } = { arguments: "hello" }; + if (Math.random()) { + return () => arguments[0]; + } + var arguments = "world"; +} diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments17(target=es2015).symbols b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments17(target=es2015).symbols new file mode 100644 index 0000000000000..afab9d24135d9 --- /dev/null +++ b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments17(target=es2015).symbols @@ -0,0 +1,21 @@ +//// [tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments17.ts] //// + +=== emitArrowFunctionWhenUsingArguments17.ts === +function f() { +>f : Symbol(f, Decl(emitArrowFunctionWhenUsingArguments17.ts, 0, 0)) + + var { arguments } = { arguments: "hello" }; +>arguments : Symbol(arguments, Decl(emitArrowFunctionWhenUsingArguments17.ts, 1, 9), Decl(emitArrowFunctionWhenUsingArguments17.ts, 5, 7)) +>arguments : Symbol(arguments, Decl(emitArrowFunctionWhenUsingArguments17.ts, 1, 25)) + + if (Math.random()) { +>Math.random : Symbol(Math.random, Decl(lib.es5.d.ts, --, --)) +>Math : Symbol(Math, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>random : Symbol(Math.random, Decl(lib.es5.d.ts, --, --)) + + return () => arguments[0]; +>arguments : Symbol(arguments, Decl(emitArrowFunctionWhenUsingArguments17.ts, 1, 9), Decl(emitArrowFunctionWhenUsingArguments17.ts, 5, 7)) + } + var arguments = "world"; +>arguments : Symbol(arguments, Decl(emitArrowFunctionWhenUsingArguments17.ts, 1, 9), Decl(emitArrowFunctionWhenUsingArguments17.ts, 5, 7)) +} diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments17(target=es2015).types b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments17(target=es2015).types new file mode 100644 index 0000000000000..08520075773a1 --- /dev/null +++ b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments17(target=es2015).types @@ -0,0 +1,43 @@ +//// [tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments17.ts] //// + +=== emitArrowFunctionWhenUsingArguments17.ts === +function f() { +>f : () => () => string +> : ^^^^^^^^^^^^^^^^^^ + + var { arguments } = { arguments: "hello" }; +>arguments : string +> : ^^^^^^ +>{ arguments: "hello" } : { arguments: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^ +>arguments : string +> : ^^^^^^ +>"hello" : "hello" +> : ^^^^^^^ + + if (Math.random()) { +>Math.random() : number +> : ^^^^^^ +>Math.random : () => number +> : ^^^^^^ +>Math : Math +> : ^^^^ +>random : () => number +> : ^^^^^^ + + return () => arguments[0]; +>() => arguments[0] : () => string +> : ^^^^^^^^^^^^ +>arguments[0] : string +> : ^^^^^^ +>arguments : string +> : ^^^^^^ +>0 : 0 +> : ^ + } + var arguments = "world"; +>arguments : string +> : ^^^^^^ +>"world" : "world" +> : ^^^^^^^ +} diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments17.errors.txt b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments17(target=es5).errors.txt similarity index 100% rename from tests/baselines/reference/emitArrowFunctionWhenUsingArguments17.errors.txt rename to tests/baselines/reference/emitArrowFunctionWhenUsingArguments17(target=es5).errors.txt diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments17.js b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments17(target=es5).js similarity index 100% rename from tests/baselines/reference/emitArrowFunctionWhenUsingArguments17.js rename to tests/baselines/reference/emitArrowFunctionWhenUsingArguments17(target=es5).js diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments17.symbols b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments17(target=es5).symbols similarity index 100% rename from tests/baselines/reference/emitArrowFunctionWhenUsingArguments17.symbols rename to tests/baselines/reference/emitArrowFunctionWhenUsingArguments17(target=es5).symbols diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments17.types b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments17(target=es5).types similarity index 100% rename from tests/baselines/reference/emitArrowFunctionWhenUsingArguments17.types rename to tests/baselines/reference/emitArrowFunctionWhenUsingArguments17(target=es5).types diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments18(target=es2015).js b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments18(target=es2015).js new file mode 100644 index 0000000000000..1acf66d7ea184 --- /dev/null +++ b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments18(target=es2015).js @@ -0,0 +1,17 @@ +//// [tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments18.ts] //// + +//// [emitArrowFunctionWhenUsingArguments18.ts] +function f() { + var { arguments: args } = { arguments }; + if (Math.random()) { + return () => arguments; + } +} + +//// [emitArrowFunctionWhenUsingArguments18.js] +function f() { + var { arguments: args } = { arguments }; + if (Math.random()) { + return () => arguments; + } +} diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments18.symbols b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments18(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/emitArrowFunctionWhenUsingArguments18.symbols rename to tests/baselines/reference/emitArrowFunctionWhenUsingArguments18(target=es2015).symbols diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments18.types b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments18(target=es2015).types similarity index 100% rename from tests/baselines/reference/emitArrowFunctionWhenUsingArguments18.types rename to tests/baselines/reference/emitArrowFunctionWhenUsingArguments18(target=es2015).types diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments18.errors.txt b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments18(target=es5).errors.txt similarity index 100% rename from tests/baselines/reference/emitArrowFunctionWhenUsingArguments18.errors.txt rename to tests/baselines/reference/emitArrowFunctionWhenUsingArguments18(target=es5).errors.txt diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments18.js b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments18(target=es5).js similarity index 100% rename from tests/baselines/reference/emitArrowFunctionWhenUsingArguments18.js rename to tests/baselines/reference/emitArrowFunctionWhenUsingArguments18(target=es5).js diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments18(target=es5).symbols b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments18(target=es5).symbols new file mode 100644 index 0000000000000..fdd25c7f141b7 --- /dev/null +++ b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments18(target=es5).symbols @@ -0,0 +1,20 @@ +//// [tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments18.ts] //// + +=== emitArrowFunctionWhenUsingArguments18.ts === +function f() { +>f : Symbol(f, Decl(emitArrowFunctionWhenUsingArguments18.ts, 0, 0)) + + var { arguments: args } = { arguments }; +>arguments : Symbol(arguments, Decl(emitArrowFunctionWhenUsingArguments18.ts, 1, 31)) +>args : Symbol(args, Decl(emitArrowFunctionWhenUsingArguments18.ts, 1, 9)) +>arguments : Symbol(arguments, Decl(emitArrowFunctionWhenUsingArguments18.ts, 1, 31)) + + if (Math.random()) { +>Math.random : Symbol(Math.random, Decl(lib.es5.d.ts, --, --)) +>Math : Symbol(Math, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>random : Symbol(Math.random, Decl(lib.es5.d.ts, --, --)) + + return () => arguments; +>arguments : Symbol(arguments) + } +} diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments18(target=es5).types b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments18(target=es5).types new file mode 100644 index 0000000000000..1a611fccce889 --- /dev/null +++ b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments18(target=es5).types @@ -0,0 +1,34 @@ +//// [tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments18.ts] //// + +=== emitArrowFunctionWhenUsingArguments18.ts === +function f() { +>f : () => () => IArguments +> : ^^^^^^^^^^^^^^^^^^^^^^ + + var { arguments: args } = { arguments }; +>arguments : any +> : ^^^ +>args : IArguments +> : ^^^^^^^^^^ +>{ arguments } : { arguments: IArguments; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^ +>arguments : IArguments +> : ^^^^^^^^^^ + + if (Math.random()) { +>Math.random() : number +> : ^^^^^^ +>Math.random : () => number +> : ^^^^^^ +>Math : Math +> : ^^^^ +>random : () => number +> : ^^^^^^ + + return () => arguments; +>() => arguments : () => IArguments +> : ^^^^^^^^^^^^^^^^ +>arguments : IArguments +> : ^^^^^^^^^^ + } +} diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments19(target=es2015).js b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments19(target=es2015).js new file mode 100644 index 0000000000000..b40be9afa8bbe --- /dev/null +++ b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments19(target=es2015).js @@ -0,0 +1,30 @@ +//// [tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments19.ts] //// + +//// [emitArrowFunctionWhenUsingArguments19.ts] +function f() { + function g() { + var _arguments = 10; // No capture in 'g', so no conflict. + function h() { + var capture = () => arguments; // Should trigger an '_arguments' capture into function 'h' + foo(_arguments); // Error as this does not resolve to the user defined '_arguments' + } + } + + function foo(x: any) { + return 100; + } +} + +//// [emitArrowFunctionWhenUsingArguments19.js] +function f() { + function g() { + var _arguments = 10; // No capture in 'g', so no conflict. + function h() { + var capture = () => arguments; // Should trigger an '_arguments' capture into function 'h' + foo(_arguments); // Error as this does not resolve to the user defined '_arguments' + } + } + function foo(x) { + return 100; + } +} diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments19.symbols b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments19(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/emitArrowFunctionWhenUsingArguments19.symbols rename to tests/baselines/reference/emitArrowFunctionWhenUsingArguments19(target=es2015).symbols diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments19(target=es2015).types b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments19(target=es2015).types new file mode 100644 index 0000000000000..1f273f66ff688 --- /dev/null +++ b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments19(target=es2015).types @@ -0,0 +1,49 @@ +//// [tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments19.ts] //// + +=== emitArrowFunctionWhenUsingArguments19.ts === +function f() { +>f : () => void +> : ^^^^^^^^^^ + + function g() { +>g : () => void +> : ^^^^^^^^^^ + + var _arguments = 10; // No capture in 'g', so no conflict. +>_arguments : number +> : ^^^^^^ +>10 : 10 +> : ^^ + + function h() { +>h : () => void +> : ^^^^^^^^^^ + + var capture = () => arguments; // Should trigger an '_arguments' capture into function 'h' +>capture : () => IArguments +> : ^^^^^^^^^^^^^^^^ +>() => arguments : () => IArguments +> : ^^^^^^^^^^^^^^^^ +>arguments : IArguments +> : ^^^^^^^^^^ + + foo(_arguments); // Error as this does not resolve to the user defined '_arguments' +>foo(_arguments) : number +> : ^^^^^^ +>foo : (x: any) => number +> : ^ ^^ ^^^^^^^^^^^ +>_arguments : number +> : ^^^^^^ + } + } + + function foo(x: any) { +>foo : (x: any) => number +> : ^ ^^ ^^^^^^^^^^^ +>x : any + + return 100; +>100 : 100 +> : ^^^ + } +} diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments19.errors.txt b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments19(target=es5).errors.txt similarity index 100% rename from tests/baselines/reference/emitArrowFunctionWhenUsingArguments19.errors.txt rename to tests/baselines/reference/emitArrowFunctionWhenUsingArguments19(target=es5).errors.txt diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments19.js b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments19(target=es5).js similarity index 100% rename from tests/baselines/reference/emitArrowFunctionWhenUsingArguments19.js rename to tests/baselines/reference/emitArrowFunctionWhenUsingArguments19(target=es5).js diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments19(target=es5).symbols b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments19(target=es5).symbols new file mode 100644 index 0000000000000..aeb776431943c --- /dev/null +++ b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments19(target=es5).symbols @@ -0,0 +1,32 @@ +//// [tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments19.ts] //// + +=== emitArrowFunctionWhenUsingArguments19.ts === +function f() { +>f : Symbol(f, Decl(emitArrowFunctionWhenUsingArguments19.ts, 0, 0)) + + function g() { +>g : Symbol(g, Decl(emitArrowFunctionWhenUsingArguments19.ts, 0, 14)) + + var _arguments = 10; // No capture in 'g', so no conflict. +>_arguments : Symbol(_arguments, Decl(emitArrowFunctionWhenUsingArguments19.ts, 2, 11)) + + function h() { +>h : Symbol(h, Decl(emitArrowFunctionWhenUsingArguments19.ts, 2, 28)) + + var capture = () => arguments; // Should trigger an '_arguments' capture into function 'h' +>capture : Symbol(capture, Decl(emitArrowFunctionWhenUsingArguments19.ts, 4, 15)) +>arguments : Symbol(arguments) + + foo(_arguments); // Error as this does not resolve to the user defined '_arguments' +>foo : Symbol(foo, Decl(emitArrowFunctionWhenUsingArguments19.ts, 7, 5)) +>_arguments : Symbol(_arguments, Decl(emitArrowFunctionWhenUsingArguments19.ts, 2, 11)) + } + } + + function foo(x: any) { +>foo : Symbol(foo, Decl(emitArrowFunctionWhenUsingArguments19.ts, 7, 5)) +>x : Symbol(x, Decl(emitArrowFunctionWhenUsingArguments19.ts, 9, 17)) + + return 100; + } +} diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments19.types b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments19(target=es5).types similarity index 100% rename from tests/baselines/reference/emitArrowFunctionWhenUsingArguments19.types rename to tests/baselines/reference/emitArrowFunctionWhenUsingArguments19(target=es5).types diff --git a/tests/baselines/reference/emitArrowFunctionsAsIs(target=es2015).js b/tests/baselines/reference/emitArrowFunctionsAsIs(target=es2015).js new file mode 100644 index 0000000000000..6feb13709dbd1 --- /dev/null +++ b/tests/baselines/reference/emitArrowFunctionsAsIs(target=es2015).js @@ -0,0 +1,12 @@ +//// [tests/cases/conformance/es6/arrowFunction/emitArrowFunctionsAsIs.ts] //// + +//// [emitArrowFunctionsAsIs.ts] +var arrow1 = a => { }; +var arrow2 = (a) => { }; + +var arrow3 = (a, b) => { }; + +//// [emitArrowFunctionsAsIs.js] +var arrow1 = a => { }; +var arrow2 = (a) => { }; +var arrow3 = (a, b) => { }; diff --git a/tests/baselines/reference/emitArrowFunctionsAsIs.symbols b/tests/baselines/reference/emitArrowFunctionsAsIs(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/emitArrowFunctionsAsIs.symbols rename to tests/baselines/reference/emitArrowFunctionsAsIs(target=es2015).symbols diff --git a/tests/baselines/reference/emitArrowFunctionsAsIs.types b/tests/baselines/reference/emitArrowFunctionsAsIs(target=es2015).types similarity index 100% rename from tests/baselines/reference/emitArrowFunctionsAsIs.types rename to tests/baselines/reference/emitArrowFunctionsAsIs(target=es2015).types diff --git a/tests/baselines/reference/emitArrowFunctionsAsIs.js b/tests/baselines/reference/emitArrowFunctionsAsIs(target=es5).js similarity index 100% rename from tests/baselines/reference/emitArrowFunctionsAsIs.js rename to tests/baselines/reference/emitArrowFunctionsAsIs(target=es5).js diff --git a/tests/baselines/reference/emitArrowFunctionsAsIs(target=es5).symbols b/tests/baselines/reference/emitArrowFunctionsAsIs(target=es5).symbols new file mode 100644 index 0000000000000..c07287ef4f258 --- /dev/null +++ b/tests/baselines/reference/emitArrowFunctionsAsIs(target=es5).symbols @@ -0,0 +1,16 @@ +//// [tests/cases/conformance/es6/arrowFunction/emitArrowFunctionsAsIs.ts] //// + +=== emitArrowFunctionsAsIs.ts === +var arrow1 = a => { }; +>arrow1 : Symbol(arrow1, Decl(emitArrowFunctionsAsIs.ts, 0, 3)) +>a : Symbol(a, Decl(emitArrowFunctionsAsIs.ts, 0, 12)) + +var arrow2 = (a) => { }; +>arrow2 : Symbol(arrow2, Decl(emitArrowFunctionsAsIs.ts, 1, 3)) +>a : Symbol(a, Decl(emitArrowFunctionsAsIs.ts, 1, 14)) + +var arrow3 = (a, b) => { }; +>arrow3 : Symbol(arrow3, Decl(emitArrowFunctionsAsIs.ts, 3, 3)) +>a : Symbol(a, Decl(emitArrowFunctionsAsIs.ts, 3, 14)) +>b : Symbol(b, Decl(emitArrowFunctionsAsIs.ts, 3, 16)) + diff --git a/tests/baselines/reference/emitArrowFunctionsAsIs(target=es5).types b/tests/baselines/reference/emitArrowFunctionsAsIs(target=es5).types new file mode 100644 index 0000000000000..5678d984ab426 --- /dev/null +++ b/tests/baselines/reference/emitArrowFunctionsAsIs(target=es5).types @@ -0,0 +1,25 @@ +//// [tests/cases/conformance/es6/arrowFunction/emitArrowFunctionsAsIs.ts] //// + +=== emitArrowFunctionsAsIs.ts === +var arrow1 = a => { }; +>arrow1 : (a: any) => void +> : ^ ^^^^^^^^^^^^^^ +>a => { } : (a: any) => void +> : ^ ^^^^^^^^^^^^^^ +>a : any + +var arrow2 = (a) => { }; +>arrow2 : (a: any) => void +> : ^ ^^^^^^^^^^^^^^ +>(a) => { } : (a: any) => void +> : ^ ^^^^^^^^^^^^^^ +>a : any + +var arrow3 = (a, b) => { }; +>arrow3 : (a: any, b: any) => void +> : ^ ^^^^^^^ ^^^^^^^^^^^^^^ +>(a, b) => { } : (a: any, b: any) => void +> : ^ ^^^^^^^ ^^^^^^^^^^^^^^ +>a : any +>b : any + diff --git a/tests/baselines/reference/emitBundleWithPrologueDirectives1.errors.txt b/tests/baselines/reference/emitBundleWithPrologueDirectives1(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/emitBundleWithPrologueDirectives1.errors.txt rename to tests/baselines/reference/emitBundleWithPrologueDirectives1(target=es2015).errors.txt diff --git a/tests/baselines/reference/emitBundleWithPrologueDirectives1(target=es2015).js b/tests/baselines/reference/emitBundleWithPrologueDirectives1(target=es2015).js new file mode 100644 index 0000000000000..db9a97049063b --- /dev/null +++ b/tests/baselines/reference/emitBundleWithPrologueDirectives1(target=es2015).js @@ -0,0 +1,22 @@ +//// [tests/cases/compiler/emitBundleWithPrologueDirectives1.ts] //// + +//// [test.ts] +/* Detached Comment */ + +// Class Doo Comment +export class Doo {} +class Scooby extends Doo {} + +//// [outFile.js] +/* Detached Comment */ +define("test", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.Doo = void 0; + // Class Doo Comment + class Doo { + } + exports.Doo = Doo; + class Scooby extends Doo { + } +}); diff --git a/tests/baselines/reference/emitBundleWithPrologueDirectives1.symbols b/tests/baselines/reference/emitBundleWithPrologueDirectives1(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/emitBundleWithPrologueDirectives1.symbols rename to tests/baselines/reference/emitBundleWithPrologueDirectives1(target=es2015).symbols diff --git a/tests/baselines/reference/emitBundleWithPrologueDirectives1.types b/tests/baselines/reference/emitBundleWithPrologueDirectives1(target=es2015).types similarity index 100% rename from tests/baselines/reference/emitBundleWithPrologueDirectives1.types rename to tests/baselines/reference/emitBundleWithPrologueDirectives1(target=es2015).types diff --git a/tests/baselines/reference/emitBundleWithPrologueDirectives1(target=es5).errors.txt b/tests/baselines/reference/emitBundleWithPrologueDirectives1(target=es5).errors.txt new file mode 100644 index 0000000000000..2b0a50bc548e6 --- /dev/null +++ b/tests/baselines/reference/emitBundleWithPrologueDirectives1(target=es5).errors.txt @@ -0,0 +1,12 @@ +error TS5101: Option 'outFile' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5101: Option 'outFile' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== test.ts (0 errors) ==== + /* Detached Comment */ + + // Class Doo Comment + export class Doo {} + class Scooby extends Doo {} \ No newline at end of file diff --git a/tests/baselines/reference/emitBundleWithPrologueDirectives1.js b/tests/baselines/reference/emitBundleWithPrologueDirectives1(target=es5).js similarity index 100% rename from tests/baselines/reference/emitBundleWithPrologueDirectives1.js rename to tests/baselines/reference/emitBundleWithPrologueDirectives1(target=es5).js diff --git a/tests/baselines/reference/emitBundleWithPrologueDirectives1(target=es5).symbols b/tests/baselines/reference/emitBundleWithPrologueDirectives1(target=es5).symbols new file mode 100644 index 0000000000000..2ad20be5361c8 --- /dev/null +++ b/tests/baselines/reference/emitBundleWithPrologueDirectives1(target=es5).symbols @@ -0,0 +1,13 @@ +//// [tests/cases/compiler/emitBundleWithPrologueDirectives1.ts] //// + +=== test.ts === +/* Detached Comment */ + +// Class Doo Comment +export class Doo {} +>Doo : Symbol(Doo, Decl(test.ts, 0, 0)) + +class Scooby extends Doo {} +>Scooby : Symbol(Scooby, Decl(test.ts, 3, 19)) +>Doo : Symbol(Doo, Decl(test.ts, 0, 0)) + diff --git a/tests/baselines/reference/emitBundleWithPrologueDirectives1(target=es5).types b/tests/baselines/reference/emitBundleWithPrologueDirectives1(target=es5).types new file mode 100644 index 0000000000000..d2b989e6c99e2 --- /dev/null +++ b/tests/baselines/reference/emitBundleWithPrologueDirectives1(target=es5).types @@ -0,0 +1,16 @@ +//// [tests/cases/compiler/emitBundleWithPrologueDirectives1.ts] //// + +=== test.ts === +/* Detached Comment */ + +// Class Doo Comment +export class Doo {} +>Doo : Doo +> : ^^^ + +class Scooby extends Doo {} +>Scooby : Scooby +> : ^^^^^^ +>Doo : Doo +> : ^^^ + diff --git a/tests/baselines/reference/emitBundleWithShebang1.errors.txt b/tests/baselines/reference/emitBundleWithShebang1(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/emitBundleWithShebang1.errors.txt rename to tests/baselines/reference/emitBundleWithShebang1(target=es2015).errors.txt diff --git a/tests/baselines/reference/emitBundleWithShebang1(target=es2015).js b/tests/baselines/reference/emitBundleWithShebang1(target=es2015).js new file mode 100644 index 0000000000000..169d852a47f9d --- /dev/null +++ b/tests/baselines/reference/emitBundleWithShebang1(target=es2015).js @@ -0,0 +1,13 @@ +//// [tests/cases/compiler/emitBundleWithShebang1.ts] //// + +//// [emitBundleWithShebang1.ts] +#!/usr/bin/env gjs +class Doo {} +class Scooby extends Doo {} + +//// [outFile.js] +#!/usr/bin/env gjs +class Doo { +} +class Scooby extends Doo { +} diff --git a/tests/baselines/reference/emitBundleWithShebang1.symbols b/tests/baselines/reference/emitBundleWithShebang1(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/emitBundleWithShebang1.symbols rename to tests/baselines/reference/emitBundleWithShebang1(target=es2015).symbols diff --git a/tests/baselines/reference/emitBundleWithShebang1.types b/tests/baselines/reference/emitBundleWithShebang1(target=es2015).types similarity index 100% rename from tests/baselines/reference/emitBundleWithShebang1.types rename to tests/baselines/reference/emitBundleWithShebang1(target=es2015).types diff --git a/tests/baselines/reference/emitBundleWithShebang1(target=es5).errors.txt b/tests/baselines/reference/emitBundleWithShebang1(target=es5).errors.txt new file mode 100644 index 0000000000000..01ca1d3ba8974 --- /dev/null +++ b/tests/baselines/reference/emitBundleWithShebang1(target=es5).errors.txt @@ -0,0 +1,10 @@ +error TS5101: Option 'outFile' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5101: Option 'outFile' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== emitBundleWithShebang1.ts (0 errors) ==== + #!/usr/bin/env gjs + class Doo {} + class Scooby extends Doo {} \ No newline at end of file diff --git a/tests/baselines/reference/emitBundleWithShebang1.js b/tests/baselines/reference/emitBundleWithShebang1(target=es5).js similarity index 100% rename from tests/baselines/reference/emitBundleWithShebang1.js rename to tests/baselines/reference/emitBundleWithShebang1(target=es5).js diff --git a/tests/baselines/reference/emitBundleWithShebang1(target=es5).symbols b/tests/baselines/reference/emitBundleWithShebang1(target=es5).symbols new file mode 100644 index 0000000000000..fa5635abb638a --- /dev/null +++ b/tests/baselines/reference/emitBundleWithShebang1(target=es5).symbols @@ -0,0 +1,11 @@ +//// [tests/cases/compiler/emitBundleWithShebang1.ts] //// + +=== emitBundleWithShebang1.ts === +#!/usr/bin/env gjs +class Doo {} +>Doo : Symbol(Doo, Decl(emitBundleWithShebang1.ts, 0, 0)) + +class Scooby extends Doo {} +>Scooby : Symbol(Scooby, Decl(emitBundleWithShebang1.ts, 1, 12)) +>Doo : Symbol(Doo, Decl(emitBundleWithShebang1.ts, 0, 0)) + diff --git a/tests/baselines/reference/emitBundleWithShebang1(target=es5).types b/tests/baselines/reference/emitBundleWithShebang1(target=es5).types new file mode 100644 index 0000000000000..df049fc9b2cdb --- /dev/null +++ b/tests/baselines/reference/emitBundleWithShebang1(target=es5).types @@ -0,0 +1,14 @@ +//// [tests/cases/compiler/emitBundleWithShebang1.ts] //// + +=== emitBundleWithShebang1.ts === +#!/usr/bin/env gjs +class Doo {} +>Doo : Doo +> : ^^^ + +class Scooby extends Doo {} +>Scooby : Scooby +> : ^^^^^^ +>Doo : Doo +> : ^^^ + diff --git a/tests/baselines/reference/emitBundleWithShebang2.errors.txt b/tests/baselines/reference/emitBundleWithShebang2(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/emitBundleWithShebang2.errors.txt rename to tests/baselines/reference/emitBundleWithShebang2(target=es2015).errors.txt diff --git a/tests/baselines/reference/emitBundleWithShebang2(target=es2015).js b/tests/baselines/reference/emitBundleWithShebang2(target=es2015).js new file mode 100644 index 0000000000000..5102825af2ed9 --- /dev/null +++ b/tests/baselines/reference/emitBundleWithShebang2(target=es2015).js @@ -0,0 +1,22 @@ +//// [tests/cases/compiler/emitBundleWithShebang2.ts] //// + +//// [test.ts] +#!/usr/bin/env gjs +class Doo {} +class Scooby extends Doo {} + +//// [test2.ts] +#!/usr/bin/env js +class Dood {} +class Scoobyd extends Dood {} + +//// [outFile.js] +#!/usr/bin/env gjs +class Doo { +} +class Scooby extends Doo { +} +class Dood { +} +class Scoobyd extends Dood { +} diff --git a/tests/baselines/reference/emitBundleWithShebang2.symbols b/tests/baselines/reference/emitBundleWithShebang2(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/emitBundleWithShebang2.symbols rename to tests/baselines/reference/emitBundleWithShebang2(target=es2015).symbols diff --git a/tests/baselines/reference/emitBundleWithShebang2.types b/tests/baselines/reference/emitBundleWithShebang2(target=es2015).types similarity index 100% rename from tests/baselines/reference/emitBundleWithShebang2.types rename to tests/baselines/reference/emitBundleWithShebang2(target=es2015).types diff --git a/tests/baselines/reference/emitBundleWithShebang2(target=es5).errors.txt b/tests/baselines/reference/emitBundleWithShebang2(target=es5).errors.txt new file mode 100644 index 0000000000000..11b1812fa3224 --- /dev/null +++ b/tests/baselines/reference/emitBundleWithShebang2(target=es5).errors.txt @@ -0,0 +1,15 @@ +error TS5101: Option 'outFile' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5101: Option 'outFile' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== test.ts (0 errors) ==== + #!/usr/bin/env gjs + class Doo {} + class Scooby extends Doo {} + +==== test2.ts (0 errors) ==== + #!/usr/bin/env js + class Dood {} + class Scoobyd extends Dood {} \ No newline at end of file diff --git a/tests/baselines/reference/emitBundleWithShebang2.js b/tests/baselines/reference/emitBundleWithShebang2(target=es5).js similarity index 100% rename from tests/baselines/reference/emitBundleWithShebang2.js rename to tests/baselines/reference/emitBundleWithShebang2(target=es5).js diff --git a/tests/baselines/reference/emitBundleWithShebang2(target=es5).symbols b/tests/baselines/reference/emitBundleWithShebang2(target=es5).symbols new file mode 100644 index 0000000000000..10a40cbe45bf1 --- /dev/null +++ b/tests/baselines/reference/emitBundleWithShebang2(target=es5).symbols @@ -0,0 +1,20 @@ +//// [tests/cases/compiler/emitBundleWithShebang2.ts] //// + +=== test.ts === +#!/usr/bin/env gjs +class Doo {} +>Doo : Symbol(Doo, Decl(test.ts, 0, 0)) + +class Scooby extends Doo {} +>Scooby : Symbol(Scooby, Decl(test.ts, 1, 12)) +>Doo : Symbol(Doo, Decl(test.ts, 0, 0)) + +=== test2.ts === +#!/usr/bin/env js +class Dood {} +>Dood : Symbol(Dood, Decl(test2.ts, 0, 0)) + +class Scoobyd extends Dood {} +>Scoobyd : Symbol(Scoobyd, Decl(test2.ts, 1, 13)) +>Dood : Symbol(Dood, Decl(test2.ts, 0, 0)) + diff --git a/tests/baselines/reference/emitBundleWithShebang2(target=es5).types b/tests/baselines/reference/emitBundleWithShebang2(target=es5).types new file mode 100644 index 0000000000000..7114f51720245 --- /dev/null +++ b/tests/baselines/reference/emitBundleWithShebang2(target=es5).types @@ -0,0 +1,26 @@ +//// [tests/cases/compiler/emitBundleWithShebang2.ts] //// + +=== test.ts === +#!/usr/bin/env gjs +class Doo {} +>Doo : Doo +> : ^^^ + +class Scooby extends Doo {} +>Scooby : Scooby +> : ^^^^^^ +>Doo : Doo +> : ^^^ + +=== test2.ts === +#!/usr/bin/env js +class Dood {} +>Dood : Dood +> : ^^^^ + +class Scoobyd extends Dood {} +>Scoobyd : Scoobyd +> : ^^^^^^^ +>Dood : Dood +> : ^^^^ + diff --git a/tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives1.errors.txt b/tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives1(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives1.errors.txt rename to tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives1(target=es2015).errors.txt diff --git a/tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives1(target=es2015).js b/tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives1(target=es2015).js new file mode 100644 index 0000000000000..43d2a542e52da --- /dev/null +++ b/tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives1(target=es2015).js @@ -0,0 +1,15 @@ +//// [tests/cases/compiler/emitBundleWithShebangAndPrologueDirectives1.ts] //// + +//// [test.ts] +#!/usr/bin/env gjs +"use strict" +class Doo {} +class Scooby extends Doo {} + +//// [outFile.js] +#!/usr/bin/env gjs +"use strict"; +class Doo { +} +class Scooby extends Doo { +} diff --git a/tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives1.symbols b/tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives1(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives1.symbols rename to tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives1(target=es2015).symbols diff --git a/tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives1.types b/tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives1(target=es2015).types similarity index 100% rename from tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives1.types rename to tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives1(target=es2015).types diff --git a/tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives1(target=es5).errors.txt b/tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives1(target=es5).errors.txt new file mode 100644 index 0000000000000..1997915181d7c --- /dev/null +++ b/tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives1(target=es5).errors.txt @@ -0,0 +1,11 @@ +error TS5101: Option 'outFile' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5101: Option 'outFile' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== test.ts (0 errors) ==== + #!/usr/bin/env gjs + "use strict" + class Doo {} + class Scooby extends Doo {} \ No newline at end of file diff --git a/tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives1.js b/tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives1(target=es5).js similarity index 100% rename from tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives1.js rename to tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives1(target=es5).js diff --git a/tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives1(target=es5).symbols b/tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives1(target=es5).symbols new file mode 100644 index 0000000000000..66cc2ce9accdd --- /dev/null +++ b/tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives1(target=es5).symbols @@ -0,0 +1,12 @@ +//// [tests/cases/compiler/emitBundleWithShebangAndPrologueDirectives1.ts] //// + +=== test.ts === +#!/usr/bin/env gjs +"use strict" +class Doo {} +>Doo : Symbol(Doo, Decl(test.ts, 1, 12)) + +class Scooby extends Doo {} +>Scooby : Symbol(Scooby, Decl(test.ts, 2, 12)) +>Doo : Symbol(Doo, Decl(test.ts, 1, 12)) + diff --git a/tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives1(target=es5).types b/tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives1(target=es5).types new file mode 100644 index 0000000000000..467c5e2007ba4 --- /dev/null +++ b/tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives1(target=es5).types @@ -0,0 +1,18 @@ +//// [tests/cases/compiler/emitBundleWithShebangAndPrologueDirectives1.ts] //// + +=== test.ts === +#!/usr/bin/env gjs +"use strict" +>"use strict" : "use strict" +> : ^^^^^^^^^^^^ + +class Doo {} +>Doo : Doo +> : ^^^ + +class Scooby extends Doo {} +>Scooby : Scooby +> : ^^^^^^ +>Doo : Doo +> : ^^^ + diff --git a/tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives2.errors.txt b/tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives2(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives2.errors.txt rename to tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives2(target=es2015).errors.txt diff --git a/tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives2(target=es2015).js b/tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives2(target=es2015).js new file mode 100644 index 0000000000000..395e137b412ac --- /dev/null +++ b/tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives2(target=es2015).js @@ -0,0 +1,27 @@ +//// [tests/cases/compiler/emitBundleWithShebangAndPrologueDirectives2.ts] //// + +//// [test.ts] +#!/usr/bin/env gjs +"use strict" +class Doo {} +class Scooby extends Doo {} + +//// [test1.ts] +#!/usr/bin/env gjs +"use strict" +"Another prologue" +class Dood {} +class Scoobyd extends Dood {} + +//// [outFile.js] +#!/usr/bin/env gjs +"use strict"; +"Another prologue"; +class Doo { +} +class Scooby extends Doo { +} +class Dood { +} +class Scoobyd extends Dood { +} diff --git a/tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives2.symbols b/tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives2(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives2.symbols rename to tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives2(target=es2015).symbols diff --git a/tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives2.types b/tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives2(target=es2015).types similarity index 100% rename from tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives2.types rename to tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives2(target=es2015).types diff --git a/tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives2(target=es5).errors.txt b/tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives2(target=es5).errors.txt new file mode 100644 index 0000000000000..d78e0bd69f794 --- /dev/null +++ b/tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives2(target=es5).errors.txt @@ -0,0 +1,18 @@ +error TS5101: Option 'outFile' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5101: Option 'outFile' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== test.ts (0 errors) ==== + #!/usr/bin/env gjs + "use strict" + class Doo {} + class Scooby extends Doo {} + +==== test1.ts (0 errors) ==== + #!/usr/bin/env gjs + "use strict" + "Another prologue" + class Dood {} + class Scoobyd extends Dood {} \ No newline at end of file diff --git a/tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives2.js b/tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives2(target=es5).js similarity index 100% rename from tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives2.js rename to tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives2(target=es5).js diff --git a/tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives2(target=es5).symbols b/tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives2(target=es5).symbols new file mode 100644 index 0000000000000..8fb77b412f8c1 --- /dev/null +++ b/tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives2(target=es5).symbols @@ -0,0 +1,23 @@ +//// [tests/cases/compiler/emitBundleWithShebangAndPrologueDirectives2.ts] //// + +=== test.ts === +#!/usr/bin/env gjs +"use strict" +class Doo {} +>Doo : Symbol(Doo, Decl(test.ts, 1, 12)) + +class Scooby extends Doo {} +>Scooby : Symbol(Scooby, Decl(test.ts, 2, 12)) +>Doo : Symbol(Doo, Decl(test.ts, 1, 12)) + +=== test1.ts === +#!/usr/bin/env gjs +"use strict" +"Another prologue" +class Dood {} +>Dood : Symbol(Dood, Decl(test1.ts, 2, 18)) + +class Scoobyd extends Dood {} +>Scoobyd : Symbol(Scoobyd, Decl(test1.ts, 3, 13)) +>Dood : Symbol(Dood, Decl(test1.ts, 2, 18)) + diff --git a/tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives2(target=es5).types b/tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives2(target=es5).types new file mode 100644 index 0000000000000..75e41ab48306c --- /dev/null +++ b/tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives2(target=es5).types @@ -0,0 +1,38 @@ +//// [tests/cases/compiler/emitBundleWithShebangAndPrologueDirectives2.ts] //// + +=== test.ts === +#!/usr/bin/env gjs +"use strict" +>"use strict" : "use strict" +> : ^^^^^^^^^^^^ + +class Doo {} +>Doo : Doo +> : ^^^ + +class Scooby extends Doo {} +>Scooby : Scooby +> : ^^^^^^ +>Doo : Doo +> : ^^^ + +=== test1.ts === +#!/usr/bin/env gjs +"use strict" +>"use strict" : "use strict" +> : ^^^^^^^^^^^^ + +"Another prologue" +>"Another prologue" : "Another prologue" +> : ^^^^^^^^^^^^^^^^^^ + +class Dood {} +>Dood : Dood +> : ^^^^ + +class Scoobyd extends Dood {} +>Scoobyd : Scoobyd +> : ^^^^^^^ +>Dood : Dood +> : ^^^^ + diff --git a/tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS1.js b/tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS1(target=es2015).js similarity index 100% rename from tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS1.js rename to tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS1(target=es2015).js diff --git a/tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS1.symbols b/tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS1(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS1.symbols rename to tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS1(target=es2015).symbols diff --git a/tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS1.types b/tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS1(target=es2015).types similarity index 100% rename from tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS1.types rename to tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS1(target=es2015).types diff --git a/tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS1(target=es5).js b/tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS1(target=es5).js new file mode 100644 index 0000000000000..122b6b79b5ce8 --- /dev/null +++ b/tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS1(target=es5).js @@ -0,0 +1,33 @@ +//// [tests/cases/conformance/es7/exponentiationOperator/emitCompoundExponentiationAssignmentWithIndexingOnLHS1.ts] //// + +//// [emitCompoundExponentiationAssignmentWithIndexingOnLHS1.ts] +var array0 = [1, 2, 3] +var i0 = 0; +array0[++i0] **= 2; + +var array1 = [1, 2, 3] +var i1 = 0; +array1[++i1] **= array1[++i1] **= 2; + +var array2 = [1, 2, 3] +var i2 = 0; +array2[++i2] **= array2[++i2] ** 2; + +var array3 = [2, 2, 3]; +var j0 = 0, j1 = 1; +array3[j0++] **= array3[j1++] **= array3[j0++] **= 1; + +//// [emitCompoundExponentiationAssignmentWithIndexingOnLHS1.js] +var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p; +var array0 = [1, 2, 3]; +var i0 = 0; +(_a = array0)[_b = ++i0] = Math.pow(_a[_b], 2); +var array1 = [1, 2, 3]; +var i1 = 0; +(_e = array1)[_f = ++i1] = Math.pow(_e[_f], (_c = array1)[_d = ++i1] = Math.pow(_c[_d], 2)); +var array2 = [1, 2, 3]; +var i2 = 0; +(_g = array2)[_h = ++i2] = Math.pow(_g[_h], Math.pow(array2[++i2], 2)); +var array3 = [2, 2, 3]; +var j0 = 0, j1 = 1; +(_o = array3)[_p = j0++] = Math.pow(_o[_p], (_l = array3)[_m = j1++] = Math.pow(_l[_m], (_j = array3)[_k = j0++] = Math.pow(_j[_k], 1))); diff --git a/tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS1(target=es5).symbols b/tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS1(target=es5).symbols new file mode 100644 index 0000000000000..45bc1313aba67 --- /dev/null +++ b/tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS1(target=es5).symbols @@ -0,0 +1,52 @@ +//// [tests/cases/conformance/es7/exponentiationOperator/emitCompoundExponentiationAssignmentWithIndexingOnLHS1.ts] //// + +=== emitCompoundExponentiationAssignmentWithIndexingOnLHS1.ts === +var array0 = [1, 2, 3] +>array0 : Symbol(array0, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS1.ts, 0, 3)) + +var i0 = 0; +>i0 : Symbol(i0, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS1.ts, 1, 3)) + +array0[++i0] **= 2; +>array0 : Symbol(array0, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS1.ts, 0, 3)) +>i0 : Symbol(i0, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS1.ts, 1, 3)) + +var array1 = [1, 2, 3] +>array1 : Symbol(array1, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS1.ts, 4, 3)) + +var i1 = 0; +>i1 : Symbol(i1, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS1.ts, 5, 3)) + +array1[++i1] **= array1[++i1] **= 2; +>array1 : Symbol(array1, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS1.ts, 4, 3)) +>i1 : Symbol(i1, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS1.ts, 5, 3)) +>array1 : Symbol(array1, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS1.ts, 4, 3)) +>i1 : Symbol(i1, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS1.ts, 5, 3)) + +var array2 = [1, 2, 3] +>array2 : Symbol(array2, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS1.ts, 8, 3)) + +var i2 = 0; +>i2 : Symbol(i2, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS1.ts, 9, 3)) + +array2[++i2] **= array2[++i2] ** 2; +>array2 : Symbol(array2, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS1.ts, 8, 3)) +>i2 : Symbol(i2, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS1.ts, 9, 3)) +>array2 : Symbol(array2, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS1.ts, 8, 3)) +>i2 : Symbol(i2, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS1.ts, 9, 3)) + +var array3 = [2, 2, 3]; +>array3 : Symbol(array3, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS1.ts, 12, 3)) + +var j0 = 0, j1 = 1; +>j0 : Symbol(j0, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS1.ts, 13, 3)) +>j1 : Symbol(j1, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS1.ts, 13, 11)) + +array3[j0++] **= array3[j1++] **= array3[j0++] **= 1; +>array3 : Symbol(array3, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS1.ts, 12, 3)) +>j0 : Symbol(j0, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS1.ts, 13, 3)) +>array3 : Symbol(array3, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS1.ts, 12, 3)) +>j1 : Symbol(j1, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS1.ts, 13, 11)) +>array3 : Symbol(array3, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS1.ts, 12, 3)) +>j0 : Symbol(j0, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS1.ts, 13, 3)) + diff --git a/tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS1(target=es5).types b/tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS1(target=es5).types new file mode 100644 index 0000000000000..bb3d6f68c6f1d --- /dev/null +++ b/tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS1(target=es5).types @@ -0,0 +1,175 @@ +//// [tests/cases/conformance/es7/exponentiationOperator/emitCompoundExponentiationAssignmentWithIndexingOnLHS1.ts] //// + +=== emitCompoundExponentiationAssignmentWithIndexingOnLHS1.ts === +var array0 = [1, 2, 3] +>array0 : number[] +> : ^^^^^^^^ +>[1, 2, 3] : number[] +> : ^^^^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ +>3 : 3 +> : ^ + +var i0 = 0; +>i0 : number +> : ^^^^^^ +>0 : 0 +> : ^ + +array0[++i0] **= 2; +>array0[++i0] **= 2 : number +> : ^^^^^^ +>array0[++i0] : number +> : ^^^^^^ +>array0 : number[] +> : ^^^^^^^^ +>++i0 : number +> : ^^^^^^ +>i0 : number +> : ^^^^^^ +>2 : 2 +> : ^ + +var array1 = [1, 2, 3] +>array1 : number[] +> : ^^^^^^^^ +>[1, 2, 3] : number[] +> : ^^^^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ +>3 : 3 +> : ^ + +var i1 = 0; +>i1 : number +> : ^^^^^^ +>0 : 0 +> : ^ + +array1[++i1] **= array1[++i1] **= 2; +>array1[++i1] **= array1[++i1] **= 2 : number +> : ^^^^^^ +>array1[++i1] : number +> : ^^^^^^ +>array1 : number[] +> : ^^^^^^^^ +>++i1 : number +> : ^^^^^^ +>i1 : number +> : ^^^^^^ +>array1[++i1] **= 2 : number +> : ^^^^^^ +>array1[++i1] : number +> : ^^^^^^ +>array1 : number[] +> : ^^^^^^^^ +>++i1 : number +> : ^^^^^^ +>i1 : number +> : ^^^^^^ +>2 : 2 +> : ^ + +var array2 = [1, 2, 3] +>array2 : number[] +> : ^^^^^^^^ +>[1, 2, 3] : number[] +> : ^^^^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ +>3 : 3 +> : ^ + +var i2 = 0; +>i2 : number +> : ^^^^^^ +>0 : 0 +> : ^ + +array2[++i2] **= array2[++i2] ** 2; +>array2[++i2] **= array2[++i2] ** 2 : number +> : ^^^^^^ +>array2[++i2] : number +> : ^^^^^^ +>array2 : number[] +> : ^^^^^^^^ +>++i2 : number +> : ^^^^^^ +>i2 : number +> : ^^^^^^ +>array2[++i2] ** 2 : number +> : ^^^^^^ +>array2[++i2] : number +> : ^^^^^^ +>array2 : number[] +> : ^^^^^^^^ +>++i2 : number +> : ^^^^^^ +>i2 : number +> : ^^^^^^ +>2 : 2 +> : ^ + +var array3 = [2, 2, 3]; +>array3 : number[] +> : ^^^^^^^^ +>[2, 2, 3] : number[] +> : ^^^^^^^^ +>2 : 2 +> : ^ +>2 : 2 +> : ^ +>3 : 3 +> : ^ + +var j0 = 0, j1 = 1; +>j0 : number +> : ^^^^^^ +>0 : 0 +> : ^ +>j1 : number +> : ^^^^^^ +>1 : 1 +> : ^ + +array3[j0++] **= array3[j1++] **= array3[j0++] **= 1; +>array3[j0++] **= array3[j1++] **= array3[j0++] **= 1 : number +> : ^^^^^^ +>array3[j0++] : number +> : ^^^^^^ +>array3 : number[] +> : ^^^^^^^^ +>j0++ : number +> : ^^^^^^ +>j0 : number +> : ^^^^^^ +>array3[j1++] **= array3[j0++] **= 1 : number +> : ^^^^^^ +>array3[j1++] : number +> : ^^^^^^ +>array3 : number[] +> : ^^^^^^^^ +>j1++ : number +> : ^^^^^^ +>j1 : number +> : ^^^^^^ +>array3[j0++] **= 1 : number +> : ^^^^^^ +>array3[j0++] : number +> : ^^^^^^ +>array3 : number[] +> : ^^^^^^^^ +>j0++ : number +> : ^^^^^^ +>j0 : number +> : ^^^^^^ +>1 : 1 +> : ^ + diff --git a/tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS2.js b/tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS2(target=es2015).js similarity index 100% rename from tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS2.js rename to tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS2(target=es2015).js diff --git a/tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS2.symbols b/tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS2(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS2.symbols rename to tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS2(target=es2015).symbols diff --git a/tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS2.types b/tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS2(target=es2015).types similarity index 100% rename from tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS2.types rename to tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS2(target=es2015).types diff --git a/tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS2(target=es5).js b/tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS2(target=es5).js new file mode 100644 index 0000000000000..8a01ab1bb266b --- /dev/null +++ b/tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS2(target=es5).js @@ -0,0 +1,28 @@ +//// [tests/cases/conformance/es7/exponentiationOperator/emitCompoundExponentiationAssignmentWithIndexingOnLHS2.ts] //// + +//// [emitCompoundExponentiationAssignmentWithIndexingOnLHS2.ts] +var globalCounter = 0; +function foo() { + globalCounter += 1; + return { 0: 2 }; +} +foo()[0] **= foo()[0]; +var result_foo1 = foo()[0] **= foo()[0]; +foo()[0] **= foo()[0] **= 2; +var result_foo2 = foo()[0] **= foo()[0] **= 2; +foo()[0] **= foo()[0] ** 2; +var result_foo3 = foo()[0] **= foo()[0] ** 2; + +//// [emitCompoundExponentiationAssignmentWithIndexingOnLHS2.js] +var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r; +var globalCounter = 0; +function foo() { + globalCounter += 1; + return { 0: 2 }; +} +(_a = foo())[_b = 0] = Math.pow(_a[_b], foo()[0]); +var result_foo1 = (_c = foo())[_d = 0] = Math.pow(_c[_d], foo()[0]); +(_g = foo())[_h = 0] = Math.pow(_g[_h], (_e = foo())[_f = 0] = Math.pow(_e[_f], 2)); +var result_foo2 = (_l = foo())[_m = 0] = Math.pow(_l[_m], (_j = foo())[_k = 0] = Math.pow(_j[_k], 2)); +(_o = foo())[_p = 0] = Math.pow(_o[_p], Math.pow(foo()[0], 2)); +var result_foo3 = (_q = foo())[_r = 0] = Math.pow(_q[_r], Math.pow(foo()[0], 2)); diff --git a/tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS2(target=es5).symbols b/tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS2(target=es5).symbols new file mode 100644 index 0000000000000..9559922847f1c --- /dev/null +++ b/tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS2(target=es5).symbols @@ -0,0 +1,54 @@ +//// [tests/cases/conformance/es7/exponentiationOperator/emitCompoundExponentiationAssignmentWithIndexingOnLHS2.ts] //// + +=== emitCompoundExponentiationAssignmentWithIndexingOnLHS2.ts === +var globalCounter = 0; +>globalCounter : Symbol(globalCounter, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS2.ts, 0, 3)) + +function foo() { +>foo : Symbol(foo, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS2.ts, 0, 22)) + + globalCounter += 1; +>globalCounter : Symbol(globalCounter, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS2.ts, 0, 3)) + + return { 0: 2 }; +>0 : Symbol(0, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS2.ts, 3, 12)) +} +foo()[0] **= foo()[0]; +>foo : Symbol(foo, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS2.ts, 0, 22)) +>0 : Symbol(0, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS2.ts, 3, 12)) +>foo : Symbol(foo, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS2.ts, 0, 22)) +>0 : Symbol(0, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS2.ts, 3, 12)) + +var result_foo1 = foo()[0] **= foo()[0]; +>result_foo1 : Symbol(result_foo1, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS2.ts, 6, 3)) +>foo : Symbol(foo, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS2.ts, 0, 22)) +>0 : Symbol(0, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS2.ts, 3, 12)) +>foo : Symbol(foo, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS2.ts, 0, 22)) +>0 : Symbol(0, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS2.ts, 3, 12)) + +foo()[0] **= foo()[0] **= 2; +>foo : Symbol(foo, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS2.ts, 0, 22)) +>0 : Symbol(0, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS2.ts, 3, 12)) +>foo : Symbol(foo, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS2.ts, 0, 22)) +>0 : Symbol(0, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS2.ts, 3, 12)) + +var result_foo2 = foo()[0] **= foo()[0] **= 2; +>result_foo2 : Symbol(result_foo2, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS2.ts, 8, 3)) +>foo : Symbol(foo, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS2.ts, 0, 22)) +>0 : Symbol(0, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS2.ts, 3, 12)) +>foo : Symbol(foo, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS2.ts, 0, 22)) +>0 : Symbol(0, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS2.ts, 3, 12)) + +foo()[0] **= foo()[0] ** 2; +>foo : Symbol(foo, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS2.ts, 0, 22)) +>0 : Symbol(0, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS2.ts, 3, 12)) +>foo : Symbol(foo, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS2.ts, 0, 22)) +>0 : Symbol(0, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS2.ts, 3, 12)) + +var result_foo3 = foo()[0] **= foo()[0] ** 2; +>result_foo3 : Symbol(result_foo3, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS2.ts, 10, 3)) +>foo : Symbol(foo, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS2.ts, 0, 22)) +>0 : Symbol(0, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS2.ts, 3, 12)) +>foo : Symbol(foo, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS2.ts, 0, 22)) +>0 : Symbol(0, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS2.ts, 3, 12)) + diff --git a/tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS2(target=es5).types b/tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS2(target=es5).types new file mode 100644 index 0000000000000..941124f060814 --- /dev/null +++ b/tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS2(target=es5).types @@ -0,0 +1,171 @@ +//// [tests/cases/conformance/es7/exponentiationOperator/emitCompoundExponentiationAssignmentWithIndexingOnLHS2.ts] //// + +=== emitCompoundExponentiationAssignmentWithIndexingOnLHS2.ts === +var globalCounter = 0; +>globalCounter : number +> : ^^^^^^ +>0 : 0 +> : ^ + +function foo() { +>foo : () => { 0: number; } +> : ^^^^^^^^^^^^^^^^^^^^ + + globalCounter += 1; +>globalCounter += 1 : number +> : ^^^^^^ +>globalCounter : number +> : ^^^^^^ +>1 : 1 +> : ^ + + return { 0: 2 }; +>{ 0: 2 } : { 0: number; } +> : ^^^^^^^^^^^^^^ +>0 : number +> : ^^^^^^ +>2 : 2 +> : ^ +} +foo()[0] **= foo()[0]; +>foo()[0] **= foo()[0] : number +> : ^^^^^^ +>foo()[0] : number +> : ^^^^^^ +>foo() : { 0: number; } +> : ^^^^^^^^^^^^^^ +>foo : () => { 0: number; } +> : ^^^^^^^^^^^^^^^^^^^^ +>0 : 0 +> : ^ +>foo()[0] : number +> : ^^^^^^ +>foo() : { 0: number; } +> : ^^^^^^^^^^^^^^ +>foo : () => { 0: number; } +> : ^^^^^^^^^^^^^^^^^^^^ +>0 : 0 +> : ^ + +var result_foo1 = foo()[0] **= foo()[0]; +>result_foo1 : number +> : ^^^^^^ +>foo()[0] **= foo()[0] : number +> : ^^^^^^ +>foo()[0] : number +> : ^^^^^^ +>foo() : { 0: number; } +> : ^^^^^^^^^^^^^^ +>foo : () => { 0: number; } +> : ^^^^^^^^^^^^^^^^^^^^ +>0 : 0 +> : ^ +>foo()[0] : number +> : ^^^^^^ +>foo() : { 0: number; } +> : ^^^^^^^^^^^^^^ +>foo : () => { 0: number; } +> : ^^^^^^^^^^^^^^^^^^^^ +>0 : 0 +> : ^ + +foo()[0] **= foo()[0] **= 2; +>foo()[0] **= foo()[0] **= 2 : number +> : ^^^^^^ +>foo()[0] : number +> : ^^^^^^ +>foo() : { 0: number; } +> : ^^^^^^^^^^^^^^ +>foo : () => { 0: number; } +> : ^^^^^^^^^^^^^^^^^^^^ +>0 : 0 +> : ^ +>foo()[0] **= 2 : number +> : ^^^^^^ +>foo()[0] : number +> : ^^^^^^ +>foo() : { 0: number; } +> : ^^^^^^^^^^^^^^ +>foo : () => { 0: number; } +> : ^^^^^^^^^^^^^^^^^^^^ +>0 : 0 +> : ^ +>2 : 2 +> : ^ + +var result_foo2 = foo()[0] **= foo()[0] **= 2; +>result_foo2 : number +> : ^^^^^^ +>foo()[0] **= foo()[0] **= 2 : number +> : ^^^^^^ +>foo()[0] : number +> : ^^^^^^ +>foo() : { 0: number; } +> : ^^^^^^^^^^^^^^ +>foo : () => { 0: number; } +> : ^^^^^^^^^^^^^^^^^^^^ +>0 : 0 +> : ^ +>foo()[0] **= 2 : number +> : ^^^^^^ +>foo()[0] : number +> : ^^^^^^ +>foo() : { 0: number; } +> : ^^^^^^^^^^^^^^ +>foo : () => { 0: number; } +> : ^^^^^^^^^^^^^^^^^^^^ +>0 : 0 +> : ^ +>2 : 2 +> : ^ + +foo()[0] **= foo()[0] ** 2; +>foo()[0] **= foo()[0] ** 2 : number +> : ^^^^^^ +>foo()[0] : number +> : ^^^^^^ +>foo() : { 0: number; } +> : ^^^^^^^^^^^^^^ +>foo : () => { 0: number; } +> : ^^^^^^^^^^^^^^^^^^^^ +>0 : 0 +> : ^ +>foo()[0] ** 2 : number +> : ^^^^^^ +>foo()[0] : number +> : ^^^^^^ +>foo() : { 0: number; } +> : ^^^^^^^^^^^^^^ +>foo : () => { 0: number; } +> : ^^^^^^^^^^^^^^^^^^^^ +>0 : 0 +> : ^ +>2 : 2 +> : ^ + +var result_foo3 = foo()[0] **= foo()[0] ** 2; +>result_foo3 : number +> : ^^^^^^ +>foo()[0] **= foo()[0] ** 2 : number +> : ^^^^^^ +>foo()[0] : number +> : ^^^^^^ +>foo() : { 0: number; } +> : ^^^^^^^^^^^^^^ +>foo : () => { 0: number; } +> : ^^^^^^^^^^^^^^^^^^^^ +>0 : 0 +> : ^ +>foo()[0] ** 2 : number +> : ^^^^^^ +>foo()[0] : number +> : ^^^^^^ +>foo() : { 0: number; } +> : ^^^^^^^^^^^^^^ +>foo : () => { 0: number; } +> : ^^^^^^^^^^^^^^^^^^^^ +>0 : 0 +> : ^ +>2 : 2 +> : ^ + diff --git a/tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS3.js b/tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS3(target=es2015).js similarity index 100% rename from tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS3.js rename to tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS3(target=es2015).js diff --git a/tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS3.symbols b/tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS3(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS3.symbols rename to tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS3(target=es2015).symbols diff --git a/tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS3.types b/tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS3(target=es2015).types similarity index 100% rename from tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS3.types rename to tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS3(target=es2015).types diff --git a/tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS3(target=es5).js b/tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS3(target=es5).js new file mode 100644 index 0000000000000..8bdebc055dbac --- /dev/null +++ b/tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS3(target=es5).js @@ -0,0 +1,30 @@ +//// [tests/cases/conformance/es7/exponentiationOperator/emitCompoundExponentiationAssignmentWithIndexingOnLHS3.ts] //// + +//// [emitCompoundExponentiationAssignmentWithIndexingOnLHS3.ts] +var object = { + _0: 2, + get 0() { + return this._0; + }, + set 0(x: number) { + this._0 = x; + }, +} +object[0] **= object[0]; +object[0] **= object[0] **= 2; +object[0] **= object[0] ** 2; + +//// [emitCompoundExponentiationAssignmentWithIndexingOnLHS3.js] +var _a, _b, _c, _d, _e, _f, _g, _h; +var object = { + _0: 2, + get 0() { + return this._0; + }, + set 0(x) { + this._0 = x; + }, +}; +(_a = object)[_b = 0] = Math.pow(_a[_b], object[0]); +(_e = object)[_f = 0] = Math.pow(_e[_f], (_c = object)[_d = 0] = Math.pow(_c[_d], 2)); +(_g = object)[_h = 0] = Math.pow(_g[_h], Math.pow(object[0], 2)); diff --git a/tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS3(target=es5).symbols b/tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS3(target=es5).symbols new file mode 100644 index 0000000000000..a8754ea8fd5fa --- /dev/null +++ b/tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS3(target=es5).symbols @@ -0,0 +1,41 @@ +//// [tests/cases/conformance/es7/exponentiationOperator/emitCompoundExponentiationAssignmentWithIndexingOnLHS3.ts] //// + +=== emitCompoundExponentiationAssignmentWithIndexingOnLHS3.ts === +var object = { +>object : Symbol(object, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS3.ts, 0, 3)) + + _0: 2, +>_0 : Symbol(_0, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS3.ts, 0, 14)) + + get 0() { +>0 : Symbol(0, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS3.ts, 1, 10), Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS3.ts, 4, 6)) + + return this._0; + }, + set 0(x: number) { +>0 : Symbol(0, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS3.ts, 1, 10), Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS3.ts, 4, 6)) +>x : Symbol(x, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS3.ts, 5, 10)) + + this._0 = x; +>x : Symbol(x, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS3.ts, 5, 10)) + + }, +} +object[0] **= object[0]; +>object : Symbol(object, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS3.ts, 0, 3)) +>0 : Symbol(0, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS3.ts, 1, 10), Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS3.ts, 4, 6)) +>object : Symbol(object, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS3.ts, 0, 3)) +>0 : Symbol(0, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS3.ts, 1, 10), Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS3.ts, 4, 6)) + +object[0] **= object[0] **= 2; +>object : Symbol(object, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS3.ts, 0, 3)) +>0 : Symbol(0, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS3.ts, 1, 10), Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS3.ts, 4, 6)) +>object : Symbol(object, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS3.ts, 0, 3)) +>0 : Symbol(0, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS3.ts, 1, 10), Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS3.ts, 4, 6)) + +object[0] **= object[0] ** 2; +>object : Symbol(object, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS3.ts, 0, 3)) +>0 : Symbol(0, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS3.ts, 1, 10), Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS3.ts, 4, 6)) +>object : Symbol(object, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS3.ts, 0, 3)) +>0 : Symbol(0, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS3.ts, 1, 10), Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS3.ts, 4, 6)) + diff --git a/tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS3(target=es5).types b/tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS3(target=es5).types new file mode 100644 index 0000000000000..7914ebe5ffb7e --- /dev/null +++ b/tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS3(target=es5).types @@ -0,0 +1,102 @@ +//// [tests/cases/conformance/es7/exponentiationOperator/emitCompoundExponentiationAssignmentWithIndexingOnLHS3.ts] //// + +=== emitCompoundExponentiationAssignmentWithIndexingOnLHS3.ts === +var object = { +>object : { _0: number; 0: number; } +> : ^^^^^^^^^^^^^^^^^ ^^^ +>{ _0: 2, get 0() { return this._0; }, set 0(x: number) { this._0 = x; },} : { _0: number; 0: number; } +> : ^^^^^^^^^^^^^^^^^ ^^^ + + _0: 2, +>_0 : number +> : ^^^^^^ +>2 : 2 +> : ^ + + get 0() { +>0 : number +> : ^^^^^^ + + return this._0; +>this._0 : any +>this : any +> : ^^^ +>_0 : any +> : ^^^ + + }, + set 0(x: number) { +>0 : number +> : ^^^^^^ +>x : number +> : ^^^^^^ + + this._0 = x; +>this._0 = x : number +> : ^^^^^^ +>this._0 : any +>this : any +> : ^^^ +>_0 : any +> : ^^^ +>x : number +> : ^^^^^^ + + }, +} +object[0] **= object[0]; +>object[0] **= object[0] : number +> : ^^^^^^ +>object[0] : number +> : ^^^^^^ +>object : { _0: number; 0: number; } +> : ^^^^^^^^^^^^^^^^^ ^^^ +>0 : 0 +> : ^ +>object[0] : number +> : ^^^^^^ +>object : { _0: number; 0: number; } +> : ^^^^^^^^^^^^^^^^^ ^^^ +>0 : 0 +> : ^ + +object[0] **= object[0] **= 2; +>object[0] **= object[0] **= 2 : number +> : ^^^^^^ +>object[0] : number +> : ^^^^^^ +>object : { _0: number; 0: number; } +> : ^^^^^^^^^^^^^^^^^ ^^^ +>0 : 0 +> : ^ +>object[0] **= 2 : number +> : ^^^^^^ +>object[0] : number +> : ^^^^^^ +>object : { _0: number; 0: number; } +> : ^^^^^^^^^^^^^^^^^ ^^^ +>0 : 0 +> : ^ +>2 : 2 +> : ^ + +object[0] **= object[0] ** 2; +>object[0] **= object[0] ** 2 : number +> : ^^^^^^ +>object[0] : number +> : ^^^^^^ +>object : { _0: number; 0: number; } +> : ^^^^^^^^^^^^^^^^^ ^^^ +>0 : 0 +> : ^ +>object[0] ** 2 : number +> : ^^^^^^ +>object[0] : number +> : ^^^^^^ +>object : { _0: number; 0: number; } +> : ^^^^^^^^^^^^^^^^^ ^^^ +>0 : 0 +> : ^ +>2 : 2 +> : ^ + diff --git a/tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS4(target=es2015).js b/tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS4(target=es2015).js new file mode 100644 index 0000000000000..6389f96d2ecde --- /dev/null +++ b/tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS4(target=es2015).js @@ -0,0 +1,30 @@ +//// [tests/cases/conformance/es7/exponentiationOperator/emitCompoundExponentiationAssignmentWithIndexingOnLHS4.ts] //// + +//// [emitCompoundExponentiationAssignmentWithIndexingOnLHS4.ts] +var globalCounter = 0; +function incrementIdx(max: number) { + globalCounter += 1; + let idx = Math.floor(Math.random() * max); + return idx; +} + +var array1 = [1, 2, 3, 4, 5]; + +array1[incrementIdx(array1.length)] **= 3; + +array1[incrementIdx(array1.length)] **= array1[incrementIdx(array1.length)] **= 2; + +array1[incrementIdx(array1.length)] **= array1[incrementIdx(array1.length)] ** 2; + +//// [emitCompoundExponentiationAssignmentWithIndexingOnLHS4.js] +var _a, _b, _c, _d, _e, _f, _g, _h; +var globalCounter = 0; +function incrementIdx(max) { + globalCounter += 1; + let idx = Math.floor(Math.random() * max); + return idx; +} +var array1 = [1, 2, 3, 4, 5]; +(_a = array1)[_b = incrementIdx(array1.length)] = Math.pow(_a[_b], 3); +(_e = array1)[_f = incrementIdx(array1.length)] = Math.pow(_e[_f], (_c = array1)[_d = incrementIdx(array1.length)] = Math.pow(_c[_d], 2)); +(_g = array1)[_h = incrementIdx(array1.length)] = Math.pow(_g[_h], Math.pow(array1[incrementIdx(array1.length)], 2)); diff --git a/tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS4.symbols b/tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS4(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS4.symbols rename to tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS4(target=es2015).symbols diff --git a/tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS4.types b/tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS4(target=es2015).types similarity index 100% rename from tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS4.types rename to tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS4(target=es2015).types diff --git a/tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS4.js b/tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS4(target=es5).js similarity index 100% rename from tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS4.js rename to tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS4(target=es5).js diff --git a/tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS4(target=es5).symbols b/tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS4(target=es5).symbols new file mode 100644 index 0000000000000..124e0c13487ce --- /dev/null +++ b/tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS4(target=es5).symbols @@ -0,0 +1,61 @@ +//// [tests/cases/conformance/es7/exponentiationOperator/emitCompoundExponentiationAssignmentWithIndexingOnLHS4.ts] //// + +=== emitCompoundExponentiationAssignmentWithIndexingOnLHS4.ts === +var globalCounter = 0; +>globalCounter : Symbol(globalCounter, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS4.ts, 0, 3)) + +function incrementIdx(max: number) { +>incrementIdx : Symbol(incrementIdx, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS4.ts, 0, 22)) +>max : Symbol(max, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS4.ts, 1, 22)) + + globalCounter += 1; +>globalCounter : Symbol(globalCounter, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS4.ts, 0, 3)) + + let idx = Math.floor(Math.random() * max); +>idx : Symbol(idx, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS4.ts, 3, 7)) +>Math.floor : Symbol(Math.floor, Decl(lib.es5.d.ts, --, --)) +>Math : Symbol(Math, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>floor : Symbol(Math.floor, Decl(lib.es5.d.ts, --, --)) +>Math.random : Symbol(Math.random, Decl(lib.es5.d.ts, --, --)) +>Math : Symbol(Math, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>random : Symbol(Math.random, Decl(lib.es5.d.ts, --, --)) +>max : Symbol(max, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS4.ts, 1, 22)) + + return idx; +>idx : Symbol(idx, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS4.ts, 3, 7)) +} + +var array1 = [1, 2, 3, 4, 5]; +>array1 : Symbol(array1, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS4.ts, 7, 3)) + +array1[incrementIdx(array1.length)] **= 3; +>array1 : Symbol(array1, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS4.ts, 7, 3)) +>incrementIdx : Symbol(incrementIdx, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS4.ts, 0, 22)) +>array1.length : Symbol(Array.length, Decl(lib.es5.d.ts, --, --)) +>array1 : Symbol(array1, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS4.ts, 7, 3)) +>length : Symbol(Array.length, Decl(lib.es5.d.ts, --, --)) + +array1[incrementIdx(array1.length)] **= array1[incrementIdx(array1.length)] **= 2; +>array1 : Symbol(array1, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS4.ts, 7, 3)) +>incrementIdx : Symbol(incrementIdx, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS4.ts, 0, 22)) +>array1.length : Symbol(Array.length, Decl(lib.es5.d.ts, --, --)) +>array1 : Symbol(array1, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS4.ts, 7, 3)) +>length : Symbol(Array.length, Decl(lib.es5.d.ts, --, --)) +>array1 : Symbol(array1, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS4.ts, 7, 3)) +>incrementIdx : Symbol(incrementIdx, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS4.ts, 0, 22)) +>array1.length : Symbol(Array.length, Decl(lib.es5.d.ts, --, --)) +>array1 : Symbol(array1, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS4.ts, 7, 3)) +>length : Symbol(Array.length, Decl(lib.es5.d.ts, --, --)) + +array1[incrementIdx(array1.length)] **= array1[incrementIdx(array1.length)] ** 2; +>array1 : Symbol(array1, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS4.ts, 7, 3)) +>incrementIdx : Symbol(incrementIdx, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS4.ts, 0, 22)) +>array1.length : Symbol(Array.length, Decl(lib.es5.d.ts, --, --)) +>array1 : Symbol(array1, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS4.ts, 7, 3)) +>length : Symbol(Array.length, Decl(lib.es5.d.ts, --, --)) +>array1 : Symbol(array1, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS4.ts, 7, 3)) +>incrementIdx : Symbol(incrementIdx, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS4.ts, 0, 22)) +>array1.length : Symbol(Array.length, Decl(lib.es5.d.ts, --, --)) +>array1 : Symbol(array1, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS4.ts, 7, 3)) +>length : Symbol(Array.length, Decl(lib.es5.d.ts, --, --)) + diff --git a/tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS4(target=es5).types b/tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS4(target=es5).types new file mode 100644 index 0000000000000..8be37fcccbfa1 --- /dev/null +++ b/tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS4(target=es5).types @@ -0,0 +1,160 @@ +//// [tests/cases/conformance/es7/exponentiationOperator/emitCompoundExponentiationAssignmentWithIndexingOnLHS4.ts] //// + +=== emitCompoundExponentiationAssignmentWithIndexingOnLHS4.ts === +var globalCounter = 0; +>globalCounter : number +> : ^^^^^^ +>0 : 0 +> : ^ + +function incrementIdx(max: number) { +>incrementIdx : (max: number) => number +> : ^ ^^ ^^^^^^^^^^^ +>max : number +> : ^^^^^^ + + globalCounter += 1; +>globalCounter += 1 : number +> : ^^^^^^ +>globalCounter : number +> : ^^^^^^ +>1 : 1 +> : ^ + + let idx = Math.floor(Math.random() * max); +>idx : number +> : ^^^^^^ +>Math.floor(Math.random() * max) : number +> : ^^^^^^ +>Math.floor : (x: number) => number +> : ^ ^^ ^^^^^ +>Math : Math +> : ^^^^ +>floor : (x: number) => number +> : ^ ^^ ^^^^^ +>Math.random() * max : number +> : ^^^^^^ +>Math.random() : number +> : ^^^^^^ +>Math.random : () => number +> : ^^^^^^ +>Math : Math +> : ^^^^ +>random : () => number +> : ^^^^^^ +>max : number +> : ^^^^^^ + + return idx; +>idx : number +> : ^^^^^^ +} + +var array1 = [1, 2, 3, 4, 5]; +>array1 : number[] +> : ^^^^^^^^ +>[1, 2, 3, 4, 5] : number[] +> : ^^^^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ +>3 : 3 +> : ^ +>4 : 4 +> : ^ +>5 : 5 +> : ^ + +array1[incrementIdx(array1.length)] **= 3; +>array1[incrementIdx(array1.length)] **= 3 : number +> : ^^^^^^ +>array1[incrementIdx(array1.length)] : number +> : ^^^^^^ +>array1 : number[] +> : ^^^^^^^^ +>incrementIdx(array1.length) : number +> : ^^^^^^ +>incrementIdx : (max: number) => number +> : ^ ^^ ^^^^^^^^^^^ +>array1.length : number +> : ^^^^^^ +>array1 : number[] +> : ^^^^^^^^ +>length : number +> : ^^^^^^ +>3 : 3 +> : ^ + +array1[incrementIdx(array1.length)] **= array1[incrementIdx(array1.length)] **= 2; +>array1[incrementIdx(array1.length)] **= array1[incrementIdx(array1.length)] **= 2 : number +> : ^^^^^^ +>array1[incrementIdx(array1.length)] : number +> : ^^^^^^ +>array1 : number[] +> : ^^^^^^^^ +>incrementIdx(array1.length) : number +> : ^^^^^^ +>incrementIdx : (max: number) => number +> : ^ ^^ ^^^^^^^^^^^ +>array1.length : number +> : ^^^^^^ +>array1 : number[] +> : ^^^^^^^^ +>length : number +> : ^^^^^^ +>array1[incrementIdx(array1.length)] **= 2 : number +> : ^^^^^^ +>array1[incrementIdx(array1.length)] : number +> : ^^^^^^ +>array1 : number[] +> : ^^^^^^^^ +>incrementIdx(array1.length) : number +> : ^^^^^^ +>incrementIdx : (max: number) => number +> : ^ ^^ ^^^^^^^^^^^ +>array1.length : number +> : ^^^^^^ +>array1 : number[] +> : ^^^^^^^^ +>length : number +> : ^^^^^^ +>2 : 2 +> : ^ + +array1[incrementIdx(array1.length)] **= array1[incrementIdx(array1.length)] ** 2; +>array1[incrementIdx(array1.length)] **= array1[incrementIdx(array1.length)] ** 2 : number +> : ^^^^^^ +>array1[incrementIdx(array1.length)] : number +> : ^^^^^^ +>array1 : number[] +> : ^^^^^^^^ +>incrementIdx(array1.length) : number +> : ^^^^^^ +>incrementIdx : (max: number) => number +> : ^ ^^ ^^^^^^^^^^^ +>array1.length : number +> : ^^^^^^ +>array1 : number[] +> : ^^^^^^^^ +>length : number +> : ^^^^^^ +>array1[incrementIdx(array1.length)] ** 2 : number +> : ^^^^^^ +>array1[incrementIdx(array1.length)] : number +> : ^^^^^^ +>array1 : number[] +> : ^^^^^^^^ +>incrementIdx(array1.length) : number +> : ^^^^^^ +>incrementIdx : (max: number) => number +> : ^ ^^ ^^^^^^^^^^^ +>array1.length : number +> : ^^^^^^ +>array1 : number[] +> : ^^^^^^^^ +>length : number +> : ^^^^^^ +>2 : 2 +> : ^ + diff --git a/tests/baselines/reference/emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1.js b/tests/baselines/reference/emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1(target=es2015).js similarity index 100% rename from tests/baselines/reference/emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1.js rename to tests/baselines/reference/emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1(target=es2015).js diff --git a/tests/baselines/reference/emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1.symbols b/tests/baselines/reference/emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1.symbols rename to tests/baselines/reference/emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1(target=es2015).symbols diff --git a/tests/baselines/reference/emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1.types b/tests/baselines/reference/emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1(target=es2015).types similarity index 100% rename from tests/baselines/reference/emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1.types rename to tests/baselines/reference/emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1(target=es2015).types diff --git a/tests/baselines/reference/emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1(target=es5).js b/tests/baselines/reference/emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1(target=es5).js new file mode 100644 index 0000000000000..fe715bdef41f0 --- /dev/null +++ b/tests/baselines/reference/emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1(target=es5).js @@ -0,0 +1,28 @@ +//// [tests/cases/conformance/es7/exponentiationOperator/emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1.ts] //// + +//// [emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1.ts] +var globalCounter = 0; +function foo() { + globalCounter += 1; + return { prop: 2 }; +} +foo().prop **= 2; +var result0 = foo().prop **= 2; +foo().prop **= foo().prop **= 2; +var result1 = foo().prop **= foo().prop **= 2; +foo().prop **= foo().prop ** 2; +var result2 = foo().prop **= foo().prop ** 2; + +//// [emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1.js] +var _a, _b, _c, _d, _e, _f, _g, _h; +var globalCounter = 0; +function foo() { + globalCounter += 1; + return { prop: 2 }; +} +(_a = foo()).prop = Math.pow(_a.prop, 2); +var result0 = (_b = foo()).prop = Math.pow(_b.prop, 2); +(_d = foo()).prop = Math.pow(_d.prop, (_c = foo()).prop = Math.pow(_c.prop, 2)); +var result1 = (_f = foo()).prop = Math.pow(_f.prop, (_e = foo()).prop = Math.pow(_e.prop, 2)); +(_g = foo()).prop = Math.pow(_g.prop, Math.pow(foo().prop, 2)); +var result2 = (_h = foo()).prop = Math.pow(_h.prop, Math.pow(foo().prop, 2)); diff --git a/tests/baselines/reference/emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1(target=es5).symbols b/tests/baselines/reference/emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1(target=es5).symbols new file mode 100644 index 0000000000000..934bc258e62c9 --- /dev/null +++ b/tests/baselines/reference/emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1(target=es5).symbols @@ -0,0 +1,60 @@ +//// [tests/cases/conformance/es7/exponentiationOperator/emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1.ts] //// + +=== emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1.ts === +var globalCounter = 0; +>globalCounter : Symbol(globalCounter, Decl(emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1.ts, 0, 3)) + +function foo() { +>foo : Symbol(foo, Decl(emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1.ts, 0, 22)) + + globalCounter += 1; +>globalCounter : Symbol(globalCounter, Decl(emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1.ts, 0, 3)) + + return { prop: 2 }; +>prop : Symbol(prop, Decl(emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1.ts, 3, 12)) +} +foo().prop **= 2; +>foo().prop : Symbol(prop, Decl(emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1.ts, 3, 12)) +>foo : Symbol(foo, Decl(emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1.ts, 0, 22)) +>prop : Symbol(prop, Decl(emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1.ts, 3, 12)) + +var result0 = foo().prop **= 2; +>result0 : Symbol(result0, Decl(emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1.ts, 6, 3)) +>foo().prop : Symbol(prop, Decl(emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1.ts, 3, 12)) +>foo : Symbol(foo, Decl(emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1.ts, 0, 22)) +>prop : Symbol(prop, Decl(emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1.ts, 3, 12)) + +foo().prop **= foo().prop **= 2; +>foo().prop : Symbol(prop, Decl(emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1.ts, 3, 12)) +>foo : Symbol(foo, Decl(emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1.ts, 0, 22)) +>prop : Symbol(prop, Decl(emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1.ts, 3, 12)) +>foo().prop : Symbol(prop, Decl(emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1.ts, 3, 12)) +>foo : Symbol(foo, Decl(emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1.ts, 0, 22)) +>prop : Symbol(prop, Decl(emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1.ts, 3, 12)) + +var result1 = foo().prop **= foo().prop **= 2; +>result1 : Symbol(result1, Decl(emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1.ts, 8, 3)) +>foo().prop : Symbol(prop, Decl(emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1.ts, 3, 12)) +>foo : Symbol(foo, Decl(emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1.ts, 0, 22)) +>prop : Symbol(prop, Decl(emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1.ts, 3, 12)) +>foo().prop : Symbol(prop, Decl(emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1.ts, 3, 12)) +>foo : Symbol(foo, Decl(emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1.ts, 0, 22)) +>prop : Symbol(prop, Decl(emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1.ts, 3, 12)) + +foo().prop **= foo().prop ** 2; +>foo().prop : Symbol(prop, Decl(emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1.ts, 3, 12)) +>foo : Symbol(foo, Decl(emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1.ts, 0, 22)) +>prop : Symbol(prop, Decl(emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1.ts, 3, 12)) +>foo().prop : Symbol(prop, Decl(emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1.ts, 3, 12)) +>foo : Symbol(foo, Decl(emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1.ts, 0, 22)) +>prop : Symbol(prop, Decl(emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1.ts, 3, 12)) + +var result2 = foo().prop **= foo().prop ** 2; +>result2 : Symbol(result2, Decl(emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1.ts, 10, 3)) +>foo().prop : Symbol(prop, Decl(emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1.ts, 3, 12)) +>foo : Symbol(foo, Decl(emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1.ts, 0, 22)) +>prop : Symbol(prop, Decl(emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1.ts, 3, 12)) +>foo().prop : Symbol(prop, Decl(emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1.ts, 3, 12)) +>foo : Symbol(foo, Decl(emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1.ts, 0, 22)) +>prop : Symbol(prop, Decl(emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1.ts, 3, 12)) + diff --git a/tests/baselines/reference/emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1(target=es5).types b/tests/baselines/reference/emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1(target=es5).types new file mode 100644 index 0000000000000..180c2f6c8db3b --- /dev/null +++ b/tests/baselines/reference/emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1(target=es5).types @@ -0,0 +1,159 @@ +//// [tests/cases/conformance/es7/exponentiationOperator/emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1.ts] //// + +=== emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1.ts === +var globalCounter = 0; +>globalCounter : number +> : ^^^^^^ +>0 : 0 +> : ^ + +function foo() { +>foo : () => { prop: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^ + + globalCounter += 1; +>globalCounter += 1 : number +> : ^^^^^^ +>globalCounter : number +> : ^^^^^^ +>1 : 1 +> : ^ + + return { prop: 2 }; +>{ prop: 2 } : { prop: number; } +> : ^^^^^^^^^^^^^^^^^ +>prop : number +> : ^^^^^^ +>2 : 2 +> : ^ +} +foo().prop **= 2; +>foo().prop **= 2 : number +> : ^^^^^^ +>foo().prop : number +> : ^^^^^^ +>foo() : { prop: number; } +> : ^^^^^^^^^^^^^^^^^ +>foo : () => { prop: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>prop : number +> : ^^^^^^ +>2 : 2 +> : ^ + +var result0 = foo().prop **= 2; +>result0 : number +> : ^^^^^^ +>foo().prop **= 2 : number +> : ^^^^^^ +>foo().prop : number +> : ^^^^^^ +>foo() : { prop: number; } +> : ^^^^^^^^^^^^^^^^^ +>foo : () => { prop: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>prop : number +> : ^^^^^^ +>2 : 2 +> : ^ + +foo().prop **= foo().prop **= 2; +>foo().prop **= foo().prop **= 2 : number +> : ^^^^^^ +>foo().prop : number +> : ^^^^^^ +>foo() : { prop: number; } +> : ^^^^^^^^^^^^^^^^^ +>foo : () => { prop: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>prop : number +> : ^^^^^^ +>foo().prop **= 2 : number +> : ^^^^^^ +>foo().prop : number +> : ^^^^^^ +>foo() : { prop: number; } +> : ^^^^^^^^^^^^^^^^^ +>foo : () => { prop: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>prop : number +> : ^^^^^^ +>2 : 2 +> : ^ + +var result1 = foo().prop **= foo().prop **= 2; +>result1 : number +> : ^^^^^^ +>foo().prop **= foo().prop **= 2 : number +> : ^^^^^^ +>foo().prop : number +> : ^^^^^^ +>foo() : { prop: number; } +> : ^^^^^^^^^^^^^^^^^ +>foo : () => { prop: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>prop : number +> : ^^^^^^ +>foo().prop **= 2 : number +> : ^^^^^^ +>foo().prop : number +> : ^^^^^^ +>foo() : { prop: number; } +> : ^^^^^^^^^^^^^^^^^ +>foo : () => { prop: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>prop : number +> : ^^^^^^ +>2 : 2 +> : ^ + +foo().prop **= foo().prop ** 2; +>foo().prop **= foo().prop ** 2 : number +> : ^^^^^^ +>foo().prop : number +> : ^^^^^^ +>foo() : { prop: number; } +> : ^^^^^^^^^^^^^^^^^ +>foo : () => { prop: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>prop : number +> : ^^^^^^ +>foo().prop ** 2 : number +> : ^^^^^^ +>foo().prop : number +> : ^^^^^^ +>foo() : { prop: number; } +> : ^^^^^^^^^^^^^^^^^ +>foo : () => { prop: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>prop : number +> : ^^^^^^ +>2 : 2 +> : ^ + +var result2 = foo().prop **= foo().prop ** 2; +>result2 : number +> : ^^^^^^ +>foo().prop **= foo().prop ** 2 : number +> : ^^^^^^ +>foo().prop : number +> : ^^^^^^ +>foo() : { prop: number; } +> : ^^^^^^^^^^^^^^^^^ +>foo : () => { prop: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>prop : number +> : ^^^^^^ +>foo().prop ** 2 : number +> : ^^^^^^ +>foo().prop : number +> : ^^^^^^ +>foo() : { prop: number; } +> : ^^^^^^^^^^^^^^^^^ +>foo : () => { prop: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>prop : number +> : ^^^^^^ +>2 : 2 +> : ^ + diff --git a/tests/baselines/reference/emitCompoundExponentiationOperator1.js b/tests/baselines/reference/emitCompoundExponentiationOperator1(target=es2015).js similarity index 100% rename from tests/baselines/reference/emitCompoundExponentiationOperator1.js rename to tests/baselines/reference/emitCompoundExponentiationOperator1(target=es2015).js diff --git a/tests/baselines/reference/emitCompoundExponentiationOperator1.symbols b/tests/baselines/reference/emitCompoundExponentiationOperator1(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/emitCompoundExponentiationOperator1.symbols rename to tests/baselines/reference/emitCompoundExponentiationOperator1(target=es2015).symbols diff --git a/tests/baselines/reference/emitCompoundExponentiationOperator1.types b/tests/baselines/reference/emitCompoundExponentiationOperator1(target=es2015).types similarity index 100% rename from tests/baselines/reference/emitCompoundExponentiationOperator1.types rename to tests/baselines/reference/emitCompoundExponentiationOperator1(target=es2015).types diff --git a/tests/baselines/reference/emitCompoundExponentiationOperator1(target=es5).js b/tests/baselines/reference/emitCompoundExponentiationOperator1(target=es5).js new file mode 100644 index 0000000000000..548f5799bec8e --- /dev/null +++ b/tests/baselines/reference/emitCompoundExponentiationOperator1(target=es5).js @@ -0,0 +1,44 @@ +//// [tests/cases/conformance/es7/exponentiationOperator/emitCompoundExponentiationOperator1.ts] //// + +//// [emitCompoundExponentiationOperator1.ts] +var comp: number; + +comp **= 1; +comp **= comp ** comp; +comp **= comp ** comp ** 2; +comp **= comp ** comp + 2; +comp **= comp ** comp - 2; +comp **= comp ** comp * 2; +comp **= comp ** comp / 2; +comp **= comp ** comp % 2; +comp **= (comp - 2) ** 5; +comp **= (comp + 2) ** 5; +comp **= (comp * 2) ** 5; +comp **= (comp / 2) ** 5; +comp **= (comp % 2) ** 5; +comp **= comp ** (5 + 2); +comp **= comp ** (5 - 2); +comp **= comp ** (5 * 2); +comp **= comp ** (5 / 2); +comp **= comp ** (5 % 2); + +//// [emitCompoundExponentiationOperator1.js] +var comp; +comp = Math.pow(comp, 1); +comp = Math.pow(comp, Math.pow(comp, comp)); +comp = Math.pow(comp, Math.pow(comp, Math.pow(comp, 2))); +comp = Math.pow(comp, Math.pow(comp, comp) + 2); +comp = Math.pow(comp, Math.pow(comp, comp) - 2); +comp = Math.pow(comp, Math.pow(comp, comp) * 2); +comp = Math.pow(comp, Math.pow(comp, comp) / 2); +comp = Math.pow(comp, Math.pow(comp, comp) % 2); +comp = Math.pow(comp, Math.pow((comp - 2), 5)); +comp = Math.pow(comp, Math.pow((comp + 2), 5)); +comp = Math.pow(comp, Math.pow((comp * 2), 5)); +comp = Math.pow(comp, Math.pow((comp / 2), 5)); +comp = Math.pow(comp, Math.pow((comp % 2), 5)); +comp = Math.pow(comp, Math.pow(comp, (5 + 2))); +comp = Math.pow(comp, Math.pow(comp, (5 - 2))); +comp = Math.pow(comp, Math.pow(comp, (5 * 2))); +comp = Math.pow(comp, Math.pow(comp, (5 / 2))); +comp = Math.pow(comp, Math.pow(comp, (5 % 2))); diff --git a/tests/baselines/reference/emitCompoundExponentiationOperator1(target=es5).symbols b/tests/baselines/reference/emitCompoundExponentiationOperator1(target=es5).symbols new file mode 100644 index 0000000000000..6bea792aa649a --- /dev/null +++ b/tests/baselines/reference/emitCompoundExponentiationOperator1(target=es5).symbols @@ -0,0 +1,84 @@ +//// [tests/cases/conformance/es7/exponentiationOperator/emitCompoundExponentiationOperator1.ts] //// + +=== emitCompoundExponentiationOperator1.ts === +var comp: number; +>comp : Symbol(comp, Decl(emitCompoundExponentiationOperator1.ts, 0, 3)) + +comp **= 1; +>comp : Symbol(comp, Decl(emitCompoundExponentiationOperator1.ts, 0, 3)) + +comp **= comp ** comp; +>comp : Symbol(comp, Decl(emitCompoundExponentiationOperator1.ts, 0, 3)) +>comp : Symbol(comp, Decl(emitCompoundExponentiationOperator1.ts, 0, 3)) +>comp : Symbol(comp, Decl(emitCompoundExponentiationOperator1.ts, 0, 3)) + +comp **= comp ** comp ** 2; +>comp : Symbol(comp, Decl(emitCompoundExponentiationOperator1.ts, 0, 3)) +>comp : Symbol(comp, Decl(emitCompoundExponentiationOperator1.ts, 0, 3)) +>comp : Symbol(comp, Decl(emitCompoundExponentiationOperator1.ts, 0, 3)) + +comp **= comp ** comp + 2; +>comp : Symbol(comp, Decl(emitCompoundExponentiationOperator1.ts, 0, 3)) +>comp : Symbol(comp, Decl(emitCompoundExponentiationOperator1.ts, 0, 3)) +>comp : Symbol(comp, Decl(emitCompoundExponentiationOperator1.ts, 0, 3)) + +comp **= comp ** comp - 2; +>comp : Symbol(comp, Decl(emitCompoundExponentiationOperator1.ts, 0, 3)) +>comp : Symbol(comp, Decl(emitCompoundExponentiationOperator1.ts, 0, 3)) +>comp : Symbol(comp, Decl(emitCompoundExponentiationOperator1.ts, 0, 3)) + +comp **= comp ** comp * 2; +>comp : Symbol(comp, Decl(emitCompoundExponentiationOperator1.ts, 0, 3)) +>comp : Symbol(comp, Decl(emitCompoundExponentiationOperator1.ts, 0, 3)) +>comp : Symbol(comp, Decl(emitCompoundExponentiationOperator1.ts, 0, 3)) + +comp **= comp ** comp / 2; +>comp : Symbol(comp, Decl(emitCompoundExponentiationOperator1.ts, 0, 3)) +>comp : Symbol(comp, Decl(emitCompoundExponentiationOperator1.ts, 0, 3)) +>comp : Symbol(comp, Decl(emitCompoundExponentiationOperator1.ts, 0, 3)) + +comp **= comp ** comp % 2; +>comp : Symbol(comp, Decl(emitCompoundExponentiationOperator1.ts, 0, 3)) +>comp : Symbol(comp, Decl(emitCompoundExponentiationOperator1.ts, 0, 3)) +>comp : Symbol(comp, Decl(emitCompoundExponentiationOperator1.ts, 0, 3)) + +comp **= (comp - 2) ** 5; +>comp : Symbol(comp, Decl(emitCompoundExponentiationOperator1.ts, 0, 3)) +>comp : Symbol(comp, Decl(emitCompoundExponentiationOperator1.ts, 0, 3)) + +comp **= (comp + 2) ** 5; +>comp : Symbol(comp, Decl(emitCompoundExponentiationOperator1.ts, 0, 3)) +>comp : Symbol(comp, Decl(emitCompoundExponentiationOperator1.ts, 0, 3)) + +comp **= (comp * 2) ** 5; +>comp : Symbol(comp, Decl(emitCompoundExponentiationOperator1.ts, 0, 3)) +>comp : Symbol(comp, Decl(emitCompoundExponentiationOperator1.ts, 0, 3)) + +comp **= (comp / 2) ** 5; +>comp : Symbol(comp, Decl(emitCompoundExponentiationOperator1.ts, 0, 3)) +>comp : Symbol(comp, Decl(emitCompoundExponentiationOperator1.ts, 0, 3)) + +comp **= (comp % 2) ** 5; +>comp : Symbol(comp, Decl(emitCompoundExponentiationOperator1.ts, 0, 3)) +>comp : Symbol(comp, Decl(emitCompoundExponentiationOperator1.ts, 0, 3)) + +comp **= comp ** (5 + 2); +>comp : Symbol(comp, Decl(emitCompoundExponentiationOperator1.ts, 0, 3)) +>comp : Symbol(comp, Decl(emitCompoundExponentiationOperator1.ts, 0, 3)) + +comp **= comp ** (5 - 2); +>comp : Symbol(comp, Decl(emitCompoundExponentiationOperator1.ts, 0, 3)) +>comp : Symbol(comp, Decl(emitCompoundExponentiationOperator1.ts, 0, 3)) + +comp **= comp ** (5 * 2); +>comp : Symbol(comp, Decl(emitCompoundExponentiationOperator1.ts, 0, 3)) +>comp : Symbol(comp, Decl(emitCompoundExponentiationOperator1.ts, 0, 3)) + +comp **= comp ** (5 / 2); +>comp : Symbol(comp, Decl(emitCompoundExponentiationOperator1.ts, 0, 3)) +>comp : Symbol(comp, Decl(emitCompoundExponentiationOperator1.ts, 0, 3)) + +comp **= comp ** (5 % 2); +>comp : Symbol(comp, Decl(emitCompoundExponentiationOperator1.ts, 0, 3)) +>comp : Symbol(comp, Decl(emitCompoundExponentiationOperator1.ts, 0, 3)) + diff --git a/tests/baselines/reference/emitCompoundExponentiationOperator1(target=es5).types b/tests/baselines/reference/emitCompoundExponentiationOperator1(target=es5).types new file mode 100644 index 0000000000000..f56a195dfdf37 --- /dev/null +++ b/tests/baselines/reference/emitCompoundExponentiationOperator1(target=es5).types @@ -0,0 +1,303 @@ +//// [tests/cases/conformance/es7/exponentiationOperator/emitCompoundExponentiationOperator1.ts] //// + +=== emitCompoundExponentiationOperator1.ts === +var comp: number; +>comp : number +> : ^^^^^^ + +comp **= 1; +>comp **= 1 : number +> : ^^^^^^ +>comp : number +> : ^^^^^^ +>1 : 1 +> : ^ + +comp **= comp ** comp; +>comp **= comp ** comp : number +> : ^^^^^^ +>comp : number +> : ^^^^^^ +>comp ** comp : number +> : ^^^^^^ +>comp : number +> : ^^^^^^ +>comp : number +> : ^^^^^^ + +comp **= comp ** comp ** 2; +>comp **= comp ** comp ** 2 : number +> : ^^^^^^ +>comp : number +> : ^^^^^^ +>comp ** comp ** 2 : number +> : ^^^^^^ +>comp : number +> : ^^^^^^ +>comp ** 2 : number +> : ^^^^^^ +>comp : number +> : ^^^^^^ +>2 : 2 +> : ^ + +comp **= comp ** comp + 2; +>comp **= comp ** comp + 2 : number +> : ^^^^^^ +>comp : number +> : ^^^^^^ +>comp ** comp + 2 : number +> : ^^^^^^ +>comp ** comp : number +> : ^^^^^^ +>comp : number +> : ^^^^^^ +>comp : number +> : ^^^^^^ +>2 : 2 +> : ^ + +comp **= comp ** comp - 2; +>comp **= comp ** comp - 2 : number +> : ^^^^^^ +>comp : number +> : ^^^^^^ +>comp ** comp - 2 : number +> : ^^^^^^ +>comp ** comp : number +> : ^^^^^^ +>comp : number +> : ^^^^^^ +>comp : number +> : ^^^^^^ +>2 : 2 +> : ^ + +comp **= comp ** comp * 2; +>comp **= comp ** comp * 2 : number +> : ^^^^^^ +>comp : number +> : ^^^^^^ +>comp ** comp * 2 : number +> : ^^^^^^ +>comp ** comp : number +> : ^^^^^^ +>comp : number +> : ^^^^^^ +>comp : number +> : ^^^^^^ +>2 : 2 +> : ^ + +comp **= comp ** comp / 2; +>comp **= comp ** comp / 2 : number +> : ^^^^^^ +>comp : number +> : ^^^^^^ +>comp ** comp / 2 : number +> : ^^^^^^ +>comp ** comp : number +> : ^^^^^^ +>comp : number +> : ^^^^^^ +>comp : number +> : ^^^^^^ +>2 : 2 +> : ^ + +comp **= comp ** comp % 2; +>comp **= comp ** comp % 2 : number +> : ^^^^^^ +>comp : number +> : ^^^^^^ +>comp ** comp % 2 : number +> : ^^^^^^ +>comp ** comp : number +> : ^^^^^^ +>comp : number +> : ^^^^^^ +>comp : number +> : ^^^^^^ +>2 : 2 +> : ^ + +comp **= (comp - 2) ** 5; +>comp **= (comp - 2) ** 5 : number +> : ^^^^^^ +>comp : number +> : ^^^^^^ +>(comp - 2) ** 5 : number +> : ^^^^^^ +>(comp - 2) : number +> : ^^^^^^ +>comp - 2 : number +> : ^^^^^^ +>comp : number +> : ^^^^^^ +>2 : 2 +> : ^ +>5 : 5 +> : ^ + +comp **= (comp + 2) ** 5; +>comp **= (comp + 2) ** 5 : number +> : ^^^^^^ +>comp : number +> : ^^^^^^ +>(comp + 2) ** 5 : number +> : ^^^^^^ +>(comp + 2) : number +> : ^^^^^^ +>comp + 2 : number +> : ^^^^^^ +>comp : number +> : ^^^^^^ +>2 : 2 +> : ^ +>5 : 5 +> : ^ + +comp **= (comp * 2) ** 5; +>comp **= (comp * 2) ** 5 : number +> : ^^^^^^ +>comp : number +> : ^^^^^^ +>(comp * 2) ** 5 : number +> : ^^^^^^ +>(comp * 2) : number +> : ^^^^^^ +>comp * 2 : number +> : ^^^^^^ +>comp : number +> : ^^^^^^ +>2 : 2 +> : ^ +>5 : 5 +> : ^ + +comp **= (comp / 2) ** 5; +>comp **= (comp / 2) ** 5 : number +> : ^^^^^^ +>comp : number +> : ^^^^^^ +>(comp / 2) ** 5 : number +> : ^^^^^^ +>(comp / 2) : number +> : ^^^^^^ +>comp / 2 : number +> : ^^^^^^ +>comp : number +> : ^^^^^^ +>2 : 2 +> : ^ +>5 : 5 +> : ^ + +comp **= (comp % 2) ** 5; +>comp **= (comp % 2) ** 5 : number +> : ^^^^^^ +>comp : number +> : ^^^^^^ +>(comp % 2) ** 5 : number +> : ^^^^^^ +>(comp % 2) : number +> : ^^^^^^ +>comp % 2 : number +> : ^^^^^^ +>comp : number +> : ^^^^^^ +>2 : 2 +> : ^ +>5 : 5 +> : ^ + +comp **= comp ** (5 + 2); +>comp **= comp ** (5 + 2) : number +> : ^^^^^^ +>comp : number +> : ^^^^^^ +>comp ** (5 + 2) : number +> : ^^^^^^ +>comp : number +> : ^^^^^^ +>(5 + 2) : number +> : ^^^^^^ +>5 + 2 : number +> : ^^^^^^ +>5 : 5 +> : ^ +>2 : 2 +> : ^ + +comp **= comp ** (5 - 2); +>comp **= comp ** (5 - 2) : number +> : ^^^^^^ +>comp : number +> : ^^^^^^ +>comp ** (5 - 2) : number +> : ^^^^^^ +>comp : number +> : ^^^^^^ +>(5 - 2) : number +> : ^^^^^^ +>5 - 2 : number +> : ^^^^^^ +>5 : 5 +> : ^ +>2 : 2 +> : ^ + +comp **= comp ** (5 * 2); +>comp **= comp ** (5 * 2) : number +> : ^^^^^^ +>comp : number +> : ^^^^^^ +>comp ** (5 * 2) : number +> : ^^^^^^ +>comp : number +> : ^^^^^^ +>(5 * 2) : number +> : ^^^^^^ +>5 * 2 : number +> : ^^^^^^ +>5 : 5 +> : ^ +>2 : 2 +> : ^ + +comp **= comp ** (5 / 2); +>comp **= comp ** (5 / 2) : number +> : ^^^^^^ +>comp : number +> : ^^^^^^ +>comp ** (5 / 2) : number +> : ^^^^^^ +>comp : number +> : ^^^^^^ +>(5 / 2) : number +> : ^^^^^^ +>5 / 2 : number +> : ^^^^^^ +>5 : 5 +> : ^ +>2 : 2 +> : ^ + +comp **= comp ** (5 % 2); +>comp **= comp ** (5 % 2) : number +> : ^^^^^^ +>comp : number +> : ^^^^^^ +>comp ** (5 % 2) : number +> : ^^^^^^ +>comp : number +> : ^^^^^^ +>(5 % 2) : number +> : ^^^^^^ +>5 % 2 : number +> : ^^^^^^ +>5 : 5 +> : ^ +>2 : 2 +> : ^ + diff --git a/tests/baselines/reference/emitCompoundExponentiationOperator2.js b/tests/baselines/reference/emitCompoundExponentiationOperator2(target=es2015).js similarity index 100% rename from tests/baselines/reference/emitCompoundExponentiationOperator2.js rename to tests/baselines/reference/emitCompoundExponentiationOperator2(target=es2015).js diff --git a/tests/baselines/reference/emitCompoundExponentiationOperator2.symbols b/tests/baselines/reference/emitCompoundExponentiationOperator2(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/emitCompoundExponentiationOperator2.symbols rename to tests/baselines/reference/emitCompoundExponentiationOperator2(target=es2015).symbols diff --git a/tests/baselines/reference/emitCompoundExponentiationOperator2.types b/tests/baselines/reference/emitCompoundExponentiationOperator2(target=es2015).types similarity index 100% rename from tests/baselines/reference/emitCompoundExponentiationOperator2.types rename to tests/baselines/reference/emitCompoundExponentiationOperator2(target=es2015).types diff --git a/tests/baselines/reference/emitCompoundExponentiationOperator2(target=es5).js b/tests/baselines/reference/emitCompoundExponentiationOperator2(target=es5).js new file mode 100644 index 0000000000000..b2b51634f6087 --- /dev/null +++ b/tests/baselines/reference/emitCompoundExponentiationOperator2(target=es5).js @@ -0,0 +1,48 @@ +//// [tests/cases/conformance/es7/exponentiationOperator/emitCompoundExponentiationOperator2.ts] //// + +//// [emitCompoundExponentiationOperator2.ts] +var comp: number; + +comp **= 1; +comp **= comp **= 1; +comp **= comp **= 1 + 2; +comp **= comp **= 1 - 2; +comp **= comp **= 1 * 2; +comp **= comp **= 1 / 2; + +comp **= comp **= (1 + 2); +comp **= comp **= (1 - 2); +comp **= comp **= (1 * 2); +comp **= comp **= (1 / 2); + +comp **= comp **= 1 + 2 ** 3; +comp **= comp **= 1 - 2 ** 4; +comp **= comp **= 1 * 2 ** 5; +comp **= comp **= 1 / 2 ** 6; + +comp **= comp **= (1 + 2) ** 3; +comp **= comp **= (1 - 2) ** 4; +comp **= comp **= (1 * 2) ** 5; +comp **= comp **= (1 / 2) ** 6; + + +//// [emitCompoundExponentiationOperator2.js] +var comp; +comp = Math.pow(comp, 1); +comp = Math.pow(comp, comp = Math.pow(comp, 1)); +comp = Math.pow(comp, comp = Math.pow(comp, 1 + 2)); +comp = Math.pow(comp, comp = Math.pow(comp, 1 - 2)); +comp = Math.pow(comp, comp = Math.pow(comp, 1 * 2)); +comp = Math.pow(comp, comp = Math.pow(comp, 1 / 2)); +comp = Math.pow(comp, comp = Math.pow(comp, (1 + 2))); +comp = Math.pow(comp, comp = Math.pow(comp, (1 - 2))); +comp = Math.pow(comp, comp = Math.pow(comp, (1 * 2))); +comp = Math.pow(comp, comp = Math.pow(comp, (1 / 2))); +comp = Math.pow(comp, comp = Math.pow(comp, 1 + Math.pow(2, 3))); +comp = Math.pow(comp, comp = Math.pow(comp, 1 - Math.pow(2, 4))); +comp = Math.pow(comp, comp = Math.pow(comp, 1 * Math.pow(2, 5))); +comp = Math.pow(comp, comp = Math.pow(comp, 1 / Math.pow(2, 6))); +comp = Math.pow(comp, comp = Math.pow(comp, Math.pow((1 + 2), 3))); +comp = Math.pow(comp, comp = Math.pow(comp, Math.pow((1 - 2), 4))); +comp = Math.pow(comp, comp = Math.pow(comp, Math.pow((1 * 2), 5))); +comp = Math.pow(comp, comp = Math.pow(comp, Math.pow((1 / 2), 6))); diff --git a/tests/baselines/reference/emitCompoundExponentiationOperator2(target=es5).symbols b/tests/baselines/reference/emitCompoundExponentiationOperator2(target=es5).symbols new file mode 100644 index 0000000000000..6deaa25012e9f --- /dev/null +++ b/tests/baselines/reference/emitCompoundExponentiationOperator2(target=es5).symbols @@ -0,0 +1,77 @@ +//// [tests/cases/conformance/es7/exponentiationOperator/emitCompoundExponentiationOperator2.ts] //// + +=== emitCompoundExponentiationOperator2.ts === +var comp: number; +>comp : Symbol(comp, Decl(emitCompoundExponentiationOperator2.ts, 0, 3)) + +comp **= 1; +>comp : Symbol(comp, Decl(emitCompoundExponentiationOperator2.ts, 0, 3)) + +comp **= comp **= 1; +>comp : Symbol(comp, Decl(emitCompoundExponentiationOperator2.ts, 0, 3)) +>comp : Symbol(comp, Decl(emitCompoundExponentiationOperator2.ts, 0, 3)) + +comp **= comp **= 1 + 2; +>comp : Symbol(comp, Decl(emitCompoundExponentiationOperator2.ts, 0, 3)) +>comp : Symbol(comp, Decl(emitCompoundExponentiationOperator2.ts, 0, 3)) + +comp **= comp **= 1 - 2; +>comp : Symbol(comp, Decl(emitCompoundExponentiationOperator2.ts, 0, 3)) +>comp : Symbol(comp, Decl(emitCompoundExponentiationOperator2.ts, 0, 3)) + +comp **= comp **= 1 * 2; +>comp : Symbol(comp, Decl(emitCompoundExponentiationOperator2.ts, 0, 3)) +>comp : Symbol(comp, Decl(emitCompoundExponentiationOperator2.ts, 0, 3)) + +comp **= comp **= 1 / 2; +>comp : Symbol(comp, Decl(emitCompoundExponentiationOperator2.ts, 0, 3)) +>comp : Symbol(comp, Decl(emitCompoundExponentiationOperator2.ts, 0, 3)) + +comp **= comp **= (1 + 2); +>comp : Symbol(comp, Decl(emitCompoundExponentiationOperator2.ts, 0, 3)) +>comp : Symbol(comp, Decl(emitCompoundExponentiationOperator2.ts, 0, 3)) + +comp **= comp **= (1 - 2); +>comp : Symbol(comp, Decl(emitCompoundExponentiationOperator2.ts, 0, 3)) +>comp : Symbol(comp, Decl(emitCompoundExponentiationOperator2.ts, 0, 3)) + +comp **= comp **= (1 * 2); +>comp : Symbol(comp, Decl(emitCompoundExponentiationOperator2.ts, 0, 3)) +>comp : Symbol(comp, Decl(emitCompoundExponentiationOperator2.ts, 0, 3)) + +comp **= comp **= (1 / 2); +>comp : Symbol(comp, Decl(emitCompoundExponentiationOperator2.ts, 0, 3)) +>comp : Symbol(comp, Decl(emitCompoundExponentiationOperator2.ts, 0, 3)) + +comp **= comp **= 1 + 2 ** 3; +>comp : Symbol(comp, Decl(emitCompoundExponentiationOperator2.ts, 0, 3)) +>comp : Symbol(comp, Decl(emitCompoundExponentiationOperator2.ts, 0, 3)) + +comp **= comp **= 1 - 2 ** 4; +>comp : Symbol(comp, Decl(emitCompoundExponentiationOperator2.ts, 0, 3)) +>comp : Symbol(comp, Decl(emitCompoundExponentiationOperator2.ts, 0, 3)) + +comp **= comp **= 1 * 2 ** 5; +>comp : Symbol(comp, Decl(emitCompoundExponentiationOperator2.ts, 0, 3)) +>comp : Symbol(comp, Decl(emitCompoundExponentiationOperator2.ts, 0, 3)) + +comp **= comp **= 1 / 2 ** 6; +>comp : Symbol(comp, Decl(emitCompoundExponentiationOperator2.ts, 0, 3)) +>comp : Symbol(comp, Decl(emitCompoundExponentiationOperator2.ts, 0, 3)) + +comp **= comp **= (1 + 2) ** 3; +>comp : Symbol(comp, Decl(emitCompoundExponentiationOperator2.ts, 0, 3)) +>comp : Symbol(comp, Decl(emitCompoundExponentiationOperator2.ts, 0, 3)) + +comp **= comp **= (1 - 2) ** 4; +>comp : Symbol(comp, Decl(emitCompoundExponentiationOperator2.ts, 0, 3)) +>comp : Symbol(comp, Decl(emitCompoundExponentiationOperator2.ts, 0, 3)) + +comp **= comp **= (1 * 2) ** 5; +>comp : Symbol(comp, Decl(emitCompoundExponentiationOperator2.ts, 0, 3)) +>comp : Symbol(comp, Decl(emitCompoundExponentiationOperator2.ts, 0, 3)) + +comp **= comp **= (1 / 2) ** 6; +>comp : Symbol(comp, Decl(emitCompoundExponentiationOperator2.ts, 0, 3)) +>comp : Symbol(comp, Decl(emitCompoundExponentiationOperator2.ts, 0, 3)) + diff --git a/tests/baselines/reference/emitCompoundExponentiationOperator2(target=es5).types b/tests/baselines/reference/emitCompoundExponentiationOperator2(target=es5).types new file mode 100644 index 0000000000000..5388eec7799db --- /dev/null +++ b/tests/baselines/reference/emitCompoundExponentiationOperator2(target=es5).types @@ -0,0 +1,331 @@ +//// [tests/cases/conformance/es7/exponentiationOperator/emitCompoundExponentiationOperator2.ts] //// + +=== emitCompoundExponentiationOperator2.ts === +var comp: number; +>comp : number +> : ^^^^^^ + +comp **= 1; +>comp **= 1 : number +> : ^^^^^^ +>comp : number +> : ^^^^^^ +>1 : 1 +> : ^ + +comp **= comp **= 1; +>comp **= comp **= 1 : number +> : ^^^^^^ +>comp : number +> : ^^^^^^ +>comp **= 1 : number +> : ^^^^^^ +>comp : number +> : ^^^^^^ +>1 : 1 +> : ^ + +comp **= comp **= 1 + 2; +>comp **= comp **= 1 + 2 : number +> : ^^^^^^ +>comp : number +> : ^^^^^^ +>comp **= 1 + 2 : number +> : ^^^^^^ +>comp : number +> : ^^^^^^ +>1 + 2 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ + +comp **= comp **= 1 - 2; +>comp **= comp **= 1 - 2 : number +> : ^^^^^^ +>comp : number +> : ^^^^^^ +>comp **= 1 - 2 : number +> : ^^^^^^ +>comp : number +> : ^^^^^^ +>1 - 2 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ + +comp **= comp **= 1 * 2; +>comp **= comp **= 1 * 2 : number +> : ^^^^^^ +>comp : number +> : ^^^^^^ +>comp **= 1 * 2 : number +> : ^^^^^^ +>comp : number +> : ^^^^^^ +>1 * 2 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ + +comp **= comp **= 1 / 2; +>comp **= comp **= 1 / 2 : number +> : ^^^^^^ +>comp : number +> : ^^^^^^ +>comp **= 1 / 2 : number +> : ^^^^^^ +>comp : number +> : ^^^^^^ +>1 / 2 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ + +comp **= comp **= (1 + 2); +>comp **= comp **= (1 + 2) : number +> : ^^^^^^ +>comp : number +> : ^^^^^^ +>comp **= (1 + 2) : number +> : ^^^^^^ +>comp : number +> : ^^^^^^ +>(1 + 2) : number +> : ^^^^^^ +>1 + 2 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ + +comp **= comp **= (1 - 2); +>comp **= comp **= (1 - 2) : number +> : ^^^^^^ +>comp : number +> : ^^^^^^ +>comp **= (1 - 2) : number +> : ^^^^^^ +>comp : number +> : ^^^^^^ +>(1 - 2) : number +> : ^^^^^^ +>1 - 2 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ + +comp **= comp **= (1 * 2); +>comp **= comp **= (1 * 2) : number +> : ^^^^^^ +>comp : number +> : ^^^^^^ +>comp **= (1 * 2) : number +> : ^^^^^^ +>comp : number +> : ^^^^^^ +>(1 * 2) : number +> : ^^^^^^ +>1 * 2 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ + +comp **= comp **= (1 / 2); +>comp **= comp **= (1 / 2) : number +> : ^^^^^^ +>comp : number +> : ^^^^^^ +>comp **= (1 / 2) : number +> : ^^^^^^ +>comp : number +> : ^^^^^^ +>(1 / 2) : number +> : ^^^^^^ +>1 / 2 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ + +comp **= comp **= 1 + 2 ** 3; +>comp **= comp **= 1 + 2 ** 3 : number +> : ^^^^^^ +>comp : number +> : ^^^^^^ +>comp **= 1 + 2 ** 3 : number +> : ^^^^^^ +>comp : number +> : ^^^^^^ +>1 + 2 ** 3 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>2 ** 3 : number +> : ^^^^^^ +>2 : 2 +> : ^ +>3 : 3 +> : ^ + +comp **= comp **= 1 - 2 ** 4; +>comp **= comp **= 1 - 2 ** 4 : number +> : ^^^^^^ +>comp : number +> : ^^^^^^ +>comp **= 1 - 2 ** 4 : number +> : ^^^^^^ +>comp : number +> : ^^^^^^ +>1 - 2 ** 4 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>2 ** 4 : number +> : ^^^^^^ +>2 : 2 +> : ^ +>4 : 4 +> : ^ + +comp **= comp **= 1 * 2 ** 5; +>comp **= comp **= 1 * 2 ** 5 : number +> : ^^^^^^ +>comp : number +> : ^^^^^^ +>comp **= 1 * 2 ** 5 : number +> : ^^^^^^ +>comp : number +> : ^^^^^^ +>1 * 2 ** 5 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>2 ** 5 : number +> : ^^^^^^ +>2 : 2 +> : ^ +>5 : 5 +> : ^ + +comp **= comp **= 1 / 2 ** 6; +>comp **= comp **= 1 / 2 ** 6 : number +> : ^^^^^^ +>comp : number +> : ^^^^^^ +>comp **= 1 / 2 ** 6 : number +> : ^^^^^^ +>comp : number +> : ^^^^^^ +>1 / 2 ** 6 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>2 ** 6 : number +> : ^^^^^^ +>2 : 2 +> : ^ +>6 : 6 +> : ^ + +comp **= comp **= (1 + 2) ** 3; +>comp **= comp **= (1 + 2) ** 3 : number +> : ^^^^^^ +>comp : number +> : ^^^^^^ +>comp **= (1 + 2) ** 3 : number +> : ^^^^^^ +>comp : number +> : ^^^^^^ +>(1 + 2) ** 3 : number +> : ^^^^^^ +>(1 + 2) : number +> : ^^^^^^ +>1 + 2 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ +>3 : 3 +> : ^ + +comp **= comp **= (1 - 2) ** 4; +>comp **= comp **= (1 - 2) ** 4 : number +> : ^^^^^^ +>comp : number +> : ^^^^^^ +>comp **= (1 - 2) ** 4 : number +> : ^^^^^^ +>comp : number +> : ^^^^^^ +>(1 - 2) ** 4 : number +> : ^^^^^^ +>(1 - 2) : number +> : ^^^^^^ +>1 - 2 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ +>4 : 4 +> : ^ + +comp **= comp **= (1 * 2) ** 5; +>comp **= comp **= (1 * 2) ** 5 : number +> : ^^^^^^ +>comp : number +> : ^^^^^^ +>comp **= (1 * 2) ** 5 : number +> : ^^^^^^ +>comp : number +> : ^^^^^^ +>(1 * 2) ** 5 : number +> : ^^^^^^ +>(1 * 2) : number +> : ^^^^^^ +>1 * 2 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ +>5 : 5 +> : ^ + +comp **= comp **= (1 / 2) ** 6; +>comp **= comp **= (1 / 2) ** 6 : number +> : ^^^^^^ +>comp : number +> : ^^^^^^ +>comp **= (1 / 2) ** 6 : number +> : ^^^^^^ +>comp : number +> : ^^^^^^ +>(1 / 2) ** 6 : number +> : ^^^^^^ +>(1 / 2) : number +> : ^^^^^^ +>1 / 2 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ +>6 : 6 +> : ^ + diff --git a/tests/baselines/reference/emitDecoratorMetadata_object(target=es2015).js b/tests/baselines/reference/emitDecoratorMetadata_object(target=es2015).js new file mode 100644 index 0000000000000..019f06ec66b90 --- /dev/null +++ b/tests/baselines/reference/emitDecoratorMetadata_object(target=es2015).js @@ -0,0 +1,38 @@ +//// [tests/cases/compiler/emitDecoratorMetadata_object.ts] //// + +//// [emitDecoratorMetadata_object.ts] +declare const MyClassDecorator: ClassDecorator; +declare const MyMethodDecorator: MethodDecorator; + +@MyClassDecorator +class A { + constructor(hi: object) {} + @MyMethodDecorator + method(there: object) {} +} + + +//// [emitDecoratorMetadata_object.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; +let A = class A { + constructor(hi) { } + method(there) { } +}; +__decorate([ + MyMethodDecorator, + __metadata("design:type", Function), + __metadata("design:paramtypes", [Object]), + __metadata("design:returntype", void 0) +], A.prototype, "method", null); +A = __decorate([ + MyClassDecorator, + __metadata("design:paramtypes", [Object]) +], A); diff --git a/tests/baselines/reference/emitDecoratorMetadata_object.symbols b/tests/baselines/reference/emitDecoratorMetadata_object(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/emitDecoratorMetadata_object.symbols rename to tests/baselines/reference/emitDecoratorMetadata_object(target=es2015).symbols diff --git a/tests/baselines/reference/emitDecoratorMetadata_object.types b/tests/baselines/reference/emitDecoratorMetadata_object(target=es2015).types similarity index 100% rename from tests/baselines/reference/emitDecoratorMetadata_object.types rename to tests/baselines/reference/emitDecoratorMetadata_object(target=es2015).types diff --git a/tests/baselines/reference/emitDecoratorMetadata_object.js b/tests/baselines/reference/emitDecoratorMetadata_object(target=es5).js similarity index 100% rename from tests/baselines/reference/emitDecoratorMetadata_object.js rename to tests/baselines/reference/emitDecoratorMetadata_object(target=es5).js diff --git a/tests/baselines/reference/emitDecoratorMetadata_object(target=es5).symbols b/tests/baselines/reference/emitDecoratorMetadata_object(target=es5).symbols new file mode 100644 index 0000000000000..ff4a5ce61ef7b --- /dev/null +++ b/tests/baselines/reference/emitDecoratorMetadata_object(target=es5).symbols @@ -0,0 +1,28 @@ +//// [tests/cases/compiler/emitDecoratorMetadata_object.ts] //// + +=== emitDecoratorMetadata_object.ts === +declare const MyClassDecorator: ClassDecorator; +>MyClassDecorator : Symbol(MyClassDecorator, Decl(emitDecoratorMetadata_object.ts, 0, 13)) +>ClassDecorator : Symbol(ClassDecorator, Decl(lib.decorators.legacy.d.ts, --, --)) + +declare const MyMethodDecorator: MethodDecorator; +>MyMethodDecorator : Symbol(MyMethodDecorator, Decl(emitDecoratorMetadata_object.ts, 1, 13)) +>MethodDecorator : Symbol(MethodDecorator, Decl(lib.decorators.legacy.d.ts, --, --)) + +@MyClassDecorator +>MyClassDecorator : Symbol(MyClassDecorator, Decl(emitDecoratorMetadata_object.ts, 0, 13)) + +class A { +>A : Symbol(A, Decl(emitDecoratorMetadata_object.ts, 1, 49)) + + constructor(hi: object) {} +>hi : Symbol(hi, Decl(emitDecoratorMetadata_object.ts, 5, 16)) + + @MyMethodDecorator +>MyMethodDecorator : Symbol(MyMethodDecorator, Decl(emitDecoratorMetadata_object.ts, 1, 13)) + + method(there: object) {} +>method : Symbol(A.method, Decl(emitDecoratorMetadata_object.ts, 5, 30)) +>there : Symbol(there, Decl(emitDecoratorMetadata_object.ts, 7, 11)) +} + diff --git a/tests/baselines/reference/emitDecoratorMetadata_object(target=es5).types b/tests/baselines/reference/emitDecoratorMetadata_object(target=es5).types new file mode 100644 index 0000000000000..4a10ec926dd32 --- /dev/null +++ b/tests/baselines/reference/emitDecoratorMetadata_object(target=es5).types @@ -0,0 +1,34 @@ +//// [tests/cases/compiler/emitDecoratorMetadata_object.ts] //// + +=== emitDecoratorMetadata_object.ts === +declare const MyClassDecorator: ClassDecorator; +>MyClassDecorator : ClassDecorator +> : ^^^^^^^^^^^^^^ + +declare const MyMethodDecorator: MethodDecorator; +>MyMethodDecorator : MethodDecorator +> : ^^^^^^^^^^^^^^^ + +@MyClassDecorator +>MyClassDecorator : ClassDecorator +> : ^^^^^^^^^^^^^^ + +class A { +>A : A +> : ^ + + constructor(hi: object) {} +>hi : object +> : ^^^^^^ + + @MyMethodDecorator +>MyMethodDecorator : MethodDecorator +> : ^^^^^^^^^^^^^^^ + + method(there: object) {} +>method : (there: object) => void +> : ^ ^^ ^^^^^^^^^ +>there : object +> : ^^^^^^ +} + diff --git a/tests/baselines/reference/emitDecoratorMetadata_restArgs(target=es2015).js b/tests/baselines/reference/emitDecoratorMetadata_restArgs(target=es2015).js new file mode 100644 index 0000000000000..59d81c22c744d --- /dev/null +++ b/tests/baselines/reference/emitDecoratorMetadata_restArgs(target=es2015).js @@ -0,0 +1,59 @@ +//// [tests/cases/compiler/emitDecoratorMetadata_restArgs.ts] //// + +//// [emitDecoratorMetadata_restArgs.ts] +declare const MyClassDecorator: ClassDecorator; +declare const MyMethodDecorator: MethodDecorator; + +@MyClassDecorator +class A { + constructor(...args) {} + @MyMethodDecorator + method(...args) {} +} + +@MyClassDecorator +class B { + constructor(...args: number[]) {} + @MyMethodDecorator + method(this: this, ...args: string[]) {} +} + + +//// [emitDecoratorMetadata_restArgs.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; +let A = class A { + constructor(...args) { } + method(...args) { } +}; +__decorate([ + MyMethodDecorator, + __metadata("design:type", Function), + __metadata("design:paramtypes", [Object]), + __metadata("design:returntype", void 0) +], A.prototype, "method", null); +A = __decorate([ + MyClassDecorator, + __metadata("design:paramtypes", [Object]) +], A); +let B = class B { + constructor(...args) { } + method(...args) { } +}; +__decorate([ + MyMethodDecorator, + __metadata("design:type", Function), + __metadata("design:paramtypes", [String]), + __metadata("design:returntype", void 0) +], B.prototype, "method", null); +B = __decorate([ + MyClassDecorator, + __metadata("design:paramtypes", [Number]) +], B); diff --git a/tests/baselines/reference/emitDecoratorMetadata_restArgs.symbols b/tests/baselines/reference/emitDecoratorMetadata_restArgs(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/emitDecoratorMetadata_restArgs.symbols rename to tests/baselines/reference/emitDecoratorMetadata_restArgs(target=es2015).symbols diff --git a/tests/baselines/reference/emitDecoratorMetadata_restArgs.types b/tests/baselines/reference/emitDecoratorMetadata_restArgs(target=es2015).types similarity index 100% rename from tests/baselines/reference/emitDecoratorMetadata_restArgs.types rename to tests/baselines/reference/emitDecoratorMetadata_restArgs(target=es2015).types diff --git a/tests/baselines/reference/emitDecoratorMetadata_restArgs.js b/tests/baselines/reference/emitDecoratorMetadata_restArgs(target=es5).js similarity index 100% rename from tests/baselines/reference/emitDecoratorMetadata_restArgs.js rename to tests/baselines/reference/emitDecoratorMetadata_restArgs(target=es5).js diff --git a/tests/baselines/reference/emitDecoratorMetadata_restArgs(target=es5).symbols b/tests/baselines/reference/emitDecoratorMetadata_restArgs(target=es5).symbols new file mode 100644 index 0000000000000..db3126a9eebf6 --- /dev/null +++ b/tests/baselines/reference/emitDecoratorMetadata_restArgs(target=es5).symbols @@ -0,0 +1,46 @@ +//// [tests/cases/compiler/emitDecoratorMetadata_restArgs.ts] //// + +=== emitDecoratorMetadata_restArgs.ts === +declare const MyClassDecorator: ClassDecorator; +>MyClassDecorator : Symbol(MyClassDecorator, Decl(emitDecoratorMetadata_restArgs.ts, 0, 13)) +>ClassDecorator : Symbol(ClassDecorator, Decl(lib.decorators.legacy.d.ts, --, --)) + +declare const MyMethodDecorator: MethodDecorator; +>MyMethodDecorator : Symbol(MyMethodDecorator, Decl(emitDecoratorMetadata_restArgs.ts, 1, 13)) +>MethodDecorator : Symbol(MethodDecorator, Decl(lib.decorators.legacy.d.ts, --, --)) + +@MyClassDecorator +>MyClassDecorator : Symbol(MyClassDecorator, Decl(emitDecoratorMetadata_restArgs.ts, 0, 13)) + +class A { +>A : Symbol(A, Decl(emitDecoratorMetadata_restArgs.ts, 1, 49)) + + constructor(...args) {} +>args : Symbol(args, Decl(emitDecoratorMetadata_restArgs.ts, 5, 16)) + + @MyMethodDecorator +>MyMethodDecorator : Symbol(MyMethodDecorator, Decl(emitDecoratorMetadata_restArgs.ts, 1, 13)) + + method(...args) {} +>method : Symbol(A.method, Decl(emitDecoratorMetadata_restArgs.ts, 5, 27)) +>args : Symbol(args, Decl(emitDecoratorMetadata_restArgs.ts, 7, 11)) +} + +@MyClassDecorator +>MyClassDecorator : Symbol(MyClassDecorator, Decl(emitDecoratorMetadata_restArgs.ts, 0, 13)) + +class B { +>B : Symbol(B, Decl(emitDecoratorMetadata_restArgs.ts, 8, 1)) + + constructor(...args: number[]) {} +>args : Symbol(args, Decl(emitDecoratorMetadata_restArgs.ts, 12, 16)) + + @MyMethodDecorator +>MyMethodDecorator : Symbol(MyMethodDecorator, Decl(emitDecoratorMetadata_restArgs.ts, 1, 13)) + + method(this: this, ...args: string[]) {} +>method : Symbol(B.method, Decl(emitDecoratorMetadata_restArgs.ts, 12, 37)) +>this : Symbol(this, Decl(emitDecoratorMetadata_restArgs.ts, 14, 11)) +>args : Symbol(args, Decl(emitDecoratorMetadata_restArgs.ts, 14, 22)) +} + diff --git a/tests/baselines/reference/emitDecoratorMetadata_restArgs(target=es5).types b/tests/baselines/reference/emitDecoratorMetadata_restArgs(target=es5).types new file mode 100644 index 0000000000000..148fb8ecb8b33 --- /dev/null +++ b/tests/baselines/reference/emitDecoratorMetadata_restArgs(target=es5).types @@ -0,0 +1,59 @@ +//// [tests/cases/compiler/emitDecoratorMetadata_restArgs.ts] //// + +=== emitDecoratorMetadata_restArgs.ts === +declare const MyClassDecorator: ClassDecorator; +>MyClassDecorator : ClassDecorator +> : ^^^^^^^^^^^^^^ + +declare const MyMethodDecorator: MethodDecorator; +>MyMethodDecorator : MethodDecorator +> : ^^^^^^^^^^^^^^^ + +@MyClassDecorator +>MyClassDecorator : ClassDecorator +> : ^^^^^^^^^^^^^^ + +class A { +>A : A +> : ^ + + constructor(...args) {} +>args : any[] +> : ^^^^^ + + @MyMethodDecorator +>MyMethodDecorator : MethodDecorator +> : ^^^^^^^^^^^^^^^ + + method(...args) {} +>method : (...args: any[]) => void +> : ^^^^ ^^^^^^^^^^^^^^^^ +>args : any[] +> : ^^^^^ +} + +@MyClassDecorator +>MyClassDecorator : ClassDecorator +> : ^^^^^^^^^^^^^^ + +class B { +>B : B +> : ^ + + constructor(...args: number[]) {} +>args : number[] +> : ^^^^^^^^ + + @MyMethodDecorator +>MyMethodDecorator : MethodDecorator +> : ^^^^^^^^^^^^^^^ + + method(this: this, ...args: string[]) {} +>method : (this: this, ...args: string[]) => void +> : ^ ^^ ^^^^^ ^^ ^^^^^^^^^ +>this : this +> : ^^^^ +>args : string[] +> : ^^^^^^^^ +} + diff --git a/tests/baselines/reference/emitDefaultParametersFunction(target=es2015).js b/tests/baselines/reference/emitDefaultParametersFunction(target=es2015).js new file mode 100644 index 0000000000000..1dec03d49d0f4 --- /dev/null +++ b/tests/baselines/reference/emitDefaultParametersFunction(target=es2015).js @@ -0,0 +1,13 @@ +//// [tests/cases/conformance/es6/defaultParameters/emitDefaultParametersFunction.ts] //// + +//// [emitDefaultParametersFunction.ts] +function foo(x: string, y = 10) { } +function baz(x: string, y = 5, ...rest) { } +function bar(y = 10) { } +function bar1(y = 10, ...rest) { } + +//// [emitDefaultParametersFunction.js] +function foo(x, y = 10) { } +function baz(x, y = 5, ...rest) { } +function bar(y = 10) { } +function bar1(y = 10, ...rest) { } diff --git a/tests/baselines/reference/emitDefaultParametersFunction.symbols b/tests/baselines/reference/emitDefaultParametersFunction(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/emitDefaultParametersFunction.symbols rename to tests/baselines/reference/emitDefaultParametersFunction(target=es2015).symbols diff --git a/tests/baselines/reference/emitDefaultParametersFunction.types b/tests/baselines/reference/emitDefaultParametersFunction(target=es2015).types similarity index 100% rename from tests/baselines/reference/emitDefaultParametersFunction.types rename to tests/baselines/reference/emitDefaultParametersFunction(target=es2015).types diff --git a/tests/baselines/reference/emitDefaultParametersFunction.js b/tests/baselines/reference/emitDefaultParametersFunction(target=es5).js similarity index 100% rename from tests/baselines/reference/emitDefaultParametersFunction.js rename to tests/baselines/reference/emitDefaultParametersFunction(target=es5).js diff --git a/tests/baselines/reference/emitDefaultParametersFunction(target=es5).symbols b/tests/baselines/reference/emitDefaultParametersFunction(target=es5).symbols new file mode 100644 index 0000000000000..cf780baf0941e --- /dev/null +++ b/tests/baselines/reference/emitDefaultParametersFunction(target=es5).symbols @@ -0,0 +1,23 @@ +//// [tests/cases/conformance/es6/defaultParameters/emitDefaultParametersFunction.ts] //// + +=== emitDefaultParametersFunction.ts === +function foo(x: string, y = 10) { } +>foo : Symbol(foo, Decl(emitDefaultParametersFunction.ts, 0, 0)) +>x : Symbol(x, Decl(emitDefaultParametersFunction.ts, 0, 13)) +>y : Symbol(y, Decl(emitDefaultParametersFunction.ts, 0, 23)) + +function baz(x: string, y = 5, ...rest) { } +>baz : Symbol(baz, Decl(emitDefaultParametersFunction.ts, 0, 35)) +>x : Symbol(x, Decl(emitDefaultParametersFunction.ts, 1, 13)) +>y : Symbol(y, Decl(emitDefaultParametersFunction.ts, 1, 23)) +>rest : Symbol(rest, Decl(emitDefaultParametersFunction.ts, 1, 30)) + +function bar(y = 10) { } +>bar : Symbol(bar, Decl(emitDefaultParametersFunction.ts, 1, 43)) +>y : Symbol(y, Decl(emitDefaultParametersFunction.ts, 2, 13)) + +function bar1(y = 10, ...rest) { } +>bar1 : Symbol(bar1, Decl(emitDefaultParametersFunction.ts, 2, 24)) +>y : Symbol(y, Decl(emitDefaultParametersFunction.ts, 3, 14)) +>rest : Symbol(rest, Decl(emitDefaultParametersFunction.ts, 3, 21)) + diff --git a/tests/baselines/reference/emitDefaultParametersFunction(target=es5).types b/tests/baselines/reference/emitDefaultParametersFunction(target=es5).types new file mode 100644 index 0000000000000..a10ed9f7b260f --- /dev/null +++ b/tests/baselines/reference/emitDefaultParametersFunction(target=es5).types @@ -0,0 +1,43 @@ +//// [tests/cases/conformance/es6/defaultParameters/emitDefaultParametersFunction.ts] //// + +=== emitDefaultParametersFunction.ts === +function foo(x: string, y = 10) { } +>foo : (x: string, y?: number) => void +> : ^ ^^ ^^ ^^^^^^^^^^^^^^^^^^ +>x : string +> : ^^^^^^ +>y : number +> : ^^^^^^ +>10 : 10 +> : ^^ + +function baz(x: string, y = 5, ...rest) { } +>baz : (x: string, y?: number, ...rest: any[]) => void +> : ^ ^^ ^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ +>x : string +> : ^^^^^^ +>y : number +> : ^^^^^^ +>5 : 5 +> : ^ +>rest : any[] +> : ^^^^^ + +function bar(y = 10) { } +>bar : (y?: number) => void +> : ^ ^^^^^^^^^^^^^^^^^^ +>y : number +> : ^^^^^^ +>10 : 10 +> : ^^ + +function bar1(y = 10, ...rest) { } +>bar1 : (y?: number, ...rest: any[]) => void +> : ^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ +>y : number +> : ^^^^^^ +>10 : 10 +> : ^^ +>rest : any[] +> : ^^^^^ + diff --git a/tests/baselines/reference/emitDefaultParametersFunctionExpression(target=es2015).js b/tests/baselines/reference/emitDefaultParametersFunctionExpression(target=es2015).js new file mode 100644 index 0000000000000..b914e91e21da6 --- /dev/null +++ b/tests/baselines/reference/emitDefaultParametersFunctionExpression(target=es2015).js @@ -0,0 +1,21 @@ +//// [tests/cases/conformance/es6/defaultParameters/emitDefaultParametersFunctionExpression.ts] //// + +//// [emitDefaultParametersFunctionExpression.ts] +var lambda1 = (y = "hello") => { } +var lambda2 = (x: number, y = "hello") => { } +var lambda3 = (x: number, y = "hello", ...rest) => { } +var lambda4 = (y = "hello", ...rest) => { } + +var x = function (str = "hello", ...rest) { } +var y = (function (num = 10, boo = false, ...rest) { })() +var z = (function (num: number, boo = false, ...rest) { })(10) + + +//// [emitDefaultParametersFunctionExpression.js] +var lambda1 = (y = "hello") => { }; +var lambda2 = (x, y = "hello") => { }; +var lambda3 = (x, y = "hello", ...rest) => { }; +var lambda4 = (y = "hello", ...rest) => { }; +var x = function (str = "hello", ...rest) { }; +var y = (function (num = 10, boo = false, ...rest) { })(); +var z = (function (num, boo = false, ...rest) { })(10); diff --git a/tests/baselines/reference/emitDefaultParametersFunctionExpression.symbols b/tests/baselines/reference/emitDefaultParametersFunctionExpression(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/emitDefaultParametersFunctionExpression.symbols rename to tests/baselines/reference/emitDefaultParametersFunctionExpression(target=es2015).symbols diff --git a/tests/baselines/reference/emitDefaultParametersFunctionExpression.types b/tests/baselines/reference/emitDefaultParametersFunctionExpression(target=es2015).types similarity index 100% rename from tests/baselines/reference/emitDefaultParametersFunctionExpression.types rename to tests/baselines/reference/emitDefaultParametersFunctionExpression(target=es2015).types diff --git a/tests/baselines/reference/emitDefaultParametersFunctionExpression.js b/tests/baselines/reference/emitDefaultParametersFunctionExpression(target=es5).js similarity index 100% rename from tests/baselines/reference/emitDefaultParametersFunctionExpression.js rename to tests/baselines/reference/emitDefaultParametersFunctionExpression(target=es5).js diff --git a/tests/baselines/reference/emitDefaultParametersFunctionExpression(target=es5).symbols b/tests/baselines/reference/emitDefaultParametersFunctionExpression(target=es5).symbols new file mode 100644 index 0000000000000..109a00c8c00b4 --- /dev/null +++ b/tests/baselines/reference/emitDefaultParametersFunctionExpression(target=es5).symbols @@ -0,0 +1,40 @@ +//// [tests/cases/conformance/es6/defaultParameters/emitDefaultParametersFunctionExpression.ts] //// + +=== emitDefaultParametersFunctionExpression.ts === +var lambda1 = (y = "hello") => { } +>lambda1 : Symbol(lambda1, Decl(emitDefaultParametersFunctionExpression.ts, 0, 3)) +>y : Symbol(y, Decl(emitDefaultParametersFunctionExpression.ts, 0, 15)) + +var lambda2 = (x: number, y = "hello") => { } +>lambda2 : Symbol(lambda2, Decl(emitDefaultParametersFunctionExpression.ts, 1, 3)) +>x : Symbol(x, Decl(emitDefaultParametersFunctionExpression.ts, 1, 15)) +>y : Symbol(y, Decl(emitDefaultParametersFunctionExpression.ts, 1, 25)) + +var lambda3 = (x: number, y = "hello", ...rest) => { } +>lambda3 : Symbol(lambda3, Decl(emitDefaultParametersFunctionExpression.ts, 2, 3)) +>x : Symbol(x, Decl(emitDefaultParametersFunctionExpression.ts, 2, 15)) +>y : Symbol(y, Decl(emitDefaultParametersFunctionExpression.ts, 2, 25)) +>rest : Symbol(rest, Decl(emitDefaultParametersFunctionExpression.ts, 2, 38)) + +var lambda4 = (y = "hello", ...rest) => { } +>lambda4 : Symbol(lambda4, Decl(emitDefaultParametersFunctionExpression.ts, 3, 3)) +>y : Symbol(y, Decl(emitDefaultParametersFunctionExpression.ts, 3, 15)) +>rest : Symbol(rest, Decl(emitDefaultParametersFunctionExpression.ts, 3, 27)) + +var x = function (str = "hello", ...rest) { } +>x : Symbol(x, Decl(emitDefaultParametersFunctionExpression.ts, 5, 3)) +>str : Symbol(str, Decl(emitDefaultParametersFunctionExpression.ts, 5, 18)) +>rest : Symbol(rest, Decl(emitDefaultParametersFunctionExpression.ts, 5, 32)) + +var y = (function (num = 10, boo = false, ...rest) { })() +>y : Symbol(y, Decl(emitDefaultParametersFunctionExpression.ts, 6, 3)) +>num : Symbol(num, Decl(emitDefaultParametersFunctionExpression.ts, 6, 19)) +>boo : Symbol(boo, Decl(emitDefaultParametersFunctionExpression.ts, 6, 28)) +>rest : Symbol(rest, Decl(emitDefaultParametersFunctionExpression.ts, 6, 41)) + +var z = (function (num: number, boo = false, ...rest) { })(10) +>z : Symbol(z, Decl(emitDefaultParametersFunctionExpression.ts, 7, 3)) +>num : Symbol(num, Decl(emitDefaultParametersFunctionExpression.ts, 7, 19)) +>boo : Symbol(boo, Decl(emitDefaultParametersFunctionExpression.ts, 7, 31)) +>rest : Symbol(rest, Decl(emitDefaultParametersFunctionExpression.ts, 7, 44)) + diff --git a/tests/baselines/reference/emitDefaultParametersFunctionExpression(target=es5).types b/tests/baselines/reference/emitDefaultParametersFunctionExpression(target=es5).types new file mode 100644 index 0000000000000..4763f9b825354 --- /dev/null +++ b/tests/baselines/reference/emitDefaultParametersFunctionExpression(target=es5).types @@ -0,0 +1,103 @@ +//// [tests/cases/conformance/es6/defaultParameters/emitDefaultParametersFunctionExpression.ts] //// + +=== emitDefaultParametersFunctionExpression.ts === +var lambda1 = (y = "hello") => { } +>lambda1 : (y?: string) => void +> : ^ ^^^^^^^^^^^^^^^^^^ +>(y = "hello") => { } : (y?: string) => void +> : ^ ^^^^^^^^^^^^^^^^^^ +>y : string +> : ^^^^^^ +>"hello" : "hello" +> : ^^^^^^^ + +var lambda2 = (x: number, y = "hello") => { } +>lambda2 : (x: number, y?: string) => void +> : ^ ^^ ^^ ^^^^^^^^^^^^^^^^^^ +>(x: number, y = "hello") => { } : (x: number, y?: string) => void +> : ^ ^^ ^^ ^^^^^^^^^^^^^^^^^^ +>x : number +> : ^^^^^^ +>y : string +> : ^^^^^^ +>"hello" : "hello" +> : ^^^^^^^ + +var lambda3 = (x: number, y = "hello", ...rest) => { } +>lambda3 : (x: number, y?: string, ...rest: any[]) => void +> : ^ ^^ ^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ +>(x: number, y = "hello", ...rest) => { } : (x: number, y?: string, ...rest: any[]) => void +> : ^ ^^ ^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ +>x : number +> : ^^^^^^ +>y : string +> : ^^^^^^ +>"hello" : "hello" +> : ^^^^^^^ +>rest : any[] +> : ^^^^^ + +var lambda4 = (y = "hello", ...rest) => { } +>lambda4 : (y?: string, ...rest: any[]) => void +> : ^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ +>(y = "hello", ...rest) => { } : (y?: string, ...rest: any[]) => void +> : ^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ +>y : string +> : ^^^^^^ +>"hello" : "hello" +> : ^^^^^^^ +>rest : any[] +> : ^^^^^ + +var x = function (str = "hello", ...rest) { } +>x : (str?: string, ...rest: any[]) => void +> : ^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ +>function (str = "hello", ...rest) { } : (str?: string, ...rest: any[]) => void +> : ^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ +>str : string +> : ^^^^^^ +>"hello" : "hello" +> : ^^^^^^^ +>rest : any[] +> : ^^^^^ + +var y = (function (num = 10, boo = false, ...rest) { })() +>y : void +> : ^^^^ +>(function (num = 10, boo = false, ...rest) { })() : void +> : ^^^^ +>(function (num = 10, boo = false, ...rest) { }) : (num?: number, boo?: boolean) => void +> : ^ ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ +>function (num = 10, boo = false, ...rest) { } : (num?: number, boo?: boolean) => void +> : ^ ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ +>num : number +> : ^^^^^^ +>10 : 10 +> : ^^ +>boo : boolean +> : ^^^^^^^ +>false : false +> : ^^^^^ +>rest : [] +> : ^^ + +var z = (function (num: number, boo = false, ...rest) { })(10) +>z : void +> : ^^^^ +>(function (num: number, boo = false, ...rest) { })(10) : void +> : ^^^^ +>(function (num: number, boo = false, ...rest) { }) : (num: number, boo?: boolean) => void +> : ^ ^^ ^^ ^^^^^^^^^^^^^^^^^^^ +>function (num: number, boo = false, ...rest) { } : (num: number, boo?: boolean) => void +> : ^ ^^ ^^ ^^^^^^^^^^^^^^^^^^^ +>num : number +> : ^^^^^^ +>boo : boolean +> : ^^^^^^^ +>false : false +> : ^^^^^ +>rest : [] +> : ^^ +>10 : 10 +> : ^^ + diff --git a/tests/baselines/reference/emitDefaultParametersFunctionProperty(target=es2015).js b/tests/baselines/reference/emitDefaultParametersFunctionProperty(target=es2015).js new file mode 100644 index 0000000000000..778428f329765 --- /dev/null +++ b/tests/baselines/reference/emitDefaultParametersFunctionProperty(target=es2015).js @@ -0,0 +1,18 @@ +//// [tests/cases/conformance/es6/defaultParameters/emitDefaultParametersFunctionProperty.ts] //// + +//// [emitDefaultParametersFunctionProperty.ts] +var obj2 = { + func1(y = 10, ...rest) { }, + func2(x = "hello") { }, + func3(x: string, z: number, y = "hello") { }, + func4(x: string, z: number, y = "hello", ...rest) { }, +} + + +//// [emitDefaultParametersFunctionProperty.js] +var obj2 = { + func1(y = 10, ...rest) { }, + func2(x = "hello") { }, + func3(x, z, y = "hello") { }, + func4(x, z, y = "hello", ...rest) { }, +}; diff --git a/tests/baselines/reference/emitDefaultParametersFunctionProperty.symbols b/tests/baselines/reference/emitDefaultParametersFunctionProperty(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/emitDefaultParametersFunctionProperty.symbols rename to tests/baselines/reference/emitDefaultParametersFunctionProperty(target=es2015).symbols diff --git a/tests/baselines/reference/emitDefaultParametersFunctionProperty.types b/tests/baselines/reference/emitDefaultParametersFunctionProperty(target=es2015).types similarity index 100% rename from tests/baselines/reference/emitDefaultParametersFunctionProperty.types rename to tests/baselines/reference/emitDefaultParametersFunctionProperty(target=es2015).types diff --git a/tests/baselines/reference/emitDefaultParametersFunctionProperty.js b/tests/baselines/reference/emitDefaultParametersFunctionProperty(target=es5).js similarity index 100% rename from tests/baselines/reference/emitDefaultParametersFunctionProperty.js rename to tests/baselines/reference/emitDefaultParametersFunctionProperty(target=es5).js diff --git a/tests/baselines/reference/emitDefaultParametersFunctionProperty(target=es5).symbols b/tests/baselines/reference/emitDefaultParametersFunctionProperty(target=es5).symbols new file mode 100644 index 0000000000000..df714394e26d0 --- /dev/null +++ b/tests/baselines/reference/emitDefaultParametersFunctionProperty(target=es5).symbols @@ -0,0 +1,29 @@ +//// [tests/cases/conformance/es6/defaultParameters/emitDefaultParametersFunctionProperty.ts] //// + +=== emitDefaultParametersFunctionProperty.ts === +var obj2 = { +>obj2 : Symbol(obj2, Decl(emitDefaultParametersFunctionProperty.ts, 0, 3)) + + func1(y = 10, ...rest) { }, +>func1 : Symbol(func1, Decl(emitDefaultParametersFunctionProperty.ts, 0, 12)) +>y : Symbol(y, Decl(emitDefaultParametersFunctionProperty.ts, 1, 10)) +>rest : Symbol(rest, Decl(emitDefaultParametersFunctionProperty.ts, 1, 17)) + + func2(x = "hello") { }, +>func2 : Symbol(func2, Decl(emitDefaultParametersFunctionProperty.ts, 1, 31)) +>x : Symbol(x, Decl(emitDefaultParametersFunctionProperty.ts, 2, 10)) + + func3(x: string, z: number, y = "hello") { }, +>func3 : Symbol(func3, Decl(emitDefaultParametersFunctionProperty.ts, 2, 27)) +>x : Symbol(x, Decl(emitDefaultParametersFunctionProperty.ts, 3, 10)) +>z : Symbol(z, Decl(emitDefaultParametersFunctionProperty.ts, 3, 20)) +>y : Symbol(y, Decl(emitDefaultParametersFunctionProperty.ts, 3, 31)) + + func4(x: string, z: number, y = "hello", ...rest) { }, +>func4 : Symbol(func4, Decl(emitDefaultParametersFunctionProperty.ts, 3, 49)) +>x : Symbol(x, Decl(emitDefaultParametersFunctionProperty.ts, 4, 10)) +>z : Symbol(z, Decl(emitDefaultParametersFunctionProperty.ts, 4, 20)) +>y : Symbol(y, Decl(emitDefaultParametersFunctionProperty.ts, 4, 31)) +>rest : Symbol(rest, Decl(emitDefaultParametersFunctionProperty.ts, 4, 44)) +} + diff --git a/tests/baselines/reference/emitDefaultParametersFunctionProperty(target=es5).types b/tests/baselines/reference/emitDefaultParametersFunctionProperty(target=es5).types new file mode 100644 index 0000000000000..cf042e39ad46c --- /dev/null +++ b/tests/baselines/reference/emitDefaultParametersFunctionProperty(target=es5).types @@ -0,0 +1,54 @@ +//// [tests/cases/conformance/es6/defaultParameters/emitDefaultParametersFunctionProperty.ts] //// + +=== emitDefaultParametersFunctionProperty.ts === +var obj2 = { +>obj2 : { func1(y?: number, ...rest: any[]): void; func2(x?: string): void; func3(x: string, z: number, y?: string): void; func4(x: string, z: number, y?: string, ...rest: any[]): void; } +> : ^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^ ^^ ^^ ^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^ ^^ ^^ ^^ ^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ +>{ func1(y = 10, ...rest) { }, func2(x = "hello") { }, func3(x: string, z: number, y = "hello") { }, func4(x: string, z: number, y = "hello", ...rest) { },} : { func1(y?: number, ...rest: any[]): void; func2(x?: string): void; func3(x: string, z: number, y?: string): void; func4(x: string, z: number, y?: string, ...rest: any[]): void; } +> : ^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^ ^^ ^^ ^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^ ^^ ^^ ^^ ^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ + + func1(y = 10, ...rest) { }, +>func1 : (y?: number, ...rest: any[]) => void +> : ^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ +>y : number +> : ^^^^^^ +>10 : 10 +> : ^^ +>rest : any[] +> : ^^^^^ + + func2(x = "hello") { }, +>func2 : (x?: string) => void +> : ^ ^^^^^^^^^^^^^^^^^^ +>x : string +> : ^^^^^^ +>"hello" : "hello" +> : ^^^^^^^ + + func3(x: string, z: number, y = "hello") { }, +>func3 : (x: string, z: number, y?: string) => void +> : ^ ^^ ^^ ^^ ^^ ^^^^^^^^^^^^^^^^^^ +>x : string +> : ^^^^^^ +>z : number +> : ^^^^^^ +>y : string +> : ^^^^^^ +>"hello" : "hello" +> : ^^^^^^^ + + func4(x: string, z: number, y = "hello", ...rest) { }, +>func4 : (x: string, z: number, y?: string, ...rest: any[]) => void +> : ^ ^^ ^^ ^^ ^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ +>x : string +> : ^^^^^^ +>z : number +> : ^^^^^^ +>y : string +> : ^^^^^^ +>"hello" : "hello" +> : ^^^^^^^ +>rest : any[] +> : ^^^^^ +} + diff --git a/tests/baselines/reference/emitDefaultParametersMethod(target=es2015).js b/tests/baselines/reference/emitDefaultParametersMethod(target=es2015).js new file mode 100644 index 0000000000000..979b9955b1c02 --- /dev/null +++ b/tests/baselines/reference/emitDefaultParametersMethod(target=es2015).js @@ -0,0 +1,35 @@ +//// [tests/cases/conformance/es6/defaultParameters/emitDefaultParametersMethod.ts] //// + +//// [emitDefaultParametersMethod.ts] +class C { + constructor(t: boolean, z: string, x: number, y = "hello") { } + + public foo(x: string, t = false) { } + public foo1(x: string, t = false, ...rest) { } + public bar(t = false) { } + public boo(t = false, ...rest) { } +} + +class D { + constructor(y = "hello") { } +} + +class E { + constructor(y = "hello", ...rest) { } +} + + +//// [emitDefaultParametersMethod.js] +class C { + constructor(t, z, x, y = "hello") { } + foo(x, t = false) { } + foo1(x, t = false, ...rest) { } + bar(t = false) { } + boo(t = false, ...rest) { } +} +class D { + constructor(y = "hello") { } +} +class E { + constructor(y = "hello", ...rest) { } +} diff --git a/tests/baselines/reference/emitDefaultParametersMethod.symbols b/tests/baselines/reference/emitDefaultParametersMethod(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/emitDefaultParametersMethod.symbols rename to tests/baselines/reference/emitDefaultParametersMethod(target=es2015).symbols diff --git a/tests/baselines/reference/emitDefaultParametersMethod.types b/tests/baselines/reference/emitDefaultParametersMethod(target=es2015).types similarity index 100% rename from tests/baselines/reference/emitDefaultParametersMethod.types rename to tests/baselines/reference/emitDefaultParametersMethod(target=es2015).types diff --git a/tests/baselines/reference/emitDefaultParametersMethod.js b/tests/baselines/reference/emitDefaultParametersMethod(target=es5).js similarity index 100% rename from tests/baselines/reference/emitDefaultParametersMethod.js rename to tests/baselines/reference/emitDefaultParametersMethod(target=es5).js diff --git a/tests/baselines/reference/emitDefaultParametersMethod(target=es5).symbols b/tests/baselines/reference/emitDefaultParametersMethod(target=es5).symbols new file mode 100644 index 0000000000000..bd89fe2487c85 --- /dev/null +++ b/tests/baselines/reference/emitDefaultParametersMethod(target=es5).symbols @@ -0,0 +1,48 @@ +//// [tests/cases/conformance/es6/defaultParameters/emitDefaultParametersMethod.ts] //// + +=== emitDefaultParametersMethod.ts === +class C { +>C : Symbol(C, Decl(emitDefaultParametersMethod.ts, 0, 0)) + + constructor(t: boolean, z: string, x: number, y = "hello") { } +>t : Symbol(t, Decl(emitDefaultParametersMethod.ts, 1, 16)) +>z : Symbol(z, Decl(emitDefaultParametersMethod.ts, 1, 27)) +>x : Symbol(x, Decl(emitDefaultParametersMethod.ts, 1, 38)) +>y : Symbol(y, Decl(emitDefaultParametersMethod.ts, 1, 49)) + + public foo(x: string, t = false) { } +>foo : Symbol(C.foo, Decl(emitDefaultParametersMethod.ts, 1, 66)) +>x : Symbol(x, Decl(emitDefaultParametersMethod.ts, 3, 15)) +>t : Symbol(t, Decl(emitDefaultParametersMethod.ts, 3, 25)) + + public foo1(x: string, t = false, ...rest) { } +>foo1 : Symbol(C.foo1, Decl(emitDefaultParametersMethod.ts, 3, 40)) +>x : Symbol(x, Decl(emitDefaultParametersMethod.ts, 4, 16)) +>t : Symbol(t, Decl(emitDefaultParametersMethod.ts, 4, 26)) +>rest : Symbol(rest, Decl(emitDefaultParametersMethod.ts, 4, 37)) + + public bar(t = false) { } +>bar : Symbol(C.bar, Decl(emitDefaultParametersMethod.ts, 4, 50)) +>t : Symbol(t, Decl(emitDefaultParametersMethod.ts, 5, 15)) + + public boo(t = false, ...rest) { } +>boo : Symbol(C.boo, Decl(emitDefaultParametersMethod.ts, 5, 29)) +>t : Symbol(t, Decl(emitDefaultParametersMethod.ts, 6, 15)) +>rest : Symbol(rest, Decl(emitDefaultParametersMethod.ts, 6, 25)) +} + +class D { +>D : Symbol(D, Decl(emitDefaultParametersMethod.ts, 7, 1)) + + constructor(y = "hello") { } +>y : Symbol(y, Decl(emitDefaultParametersMethod.ts, 10, 16)) +} + +class E { +>E : Symbol(E, Decl(emitDefaultParametersMethod.ts, 11, 1)) + + constructor(y = "hello", ...rest) { } +>y : Symbol(y, Decl(emitDefaultParametersMethod.ts, 14, 16)) +>rest : Symbol(rest, Decl(emitDefaultParametersMethod.ts, 14, 28)) +} + diff --git a/tests/baselines/reference/emitDefaultParametersMethod(target=es5).types b/tests/baselines/reference/emitDefaultParametersMethod(target=es5).types new file mode 100644 index 0000000000000..b8899c8bdb131 --- /dev/null +++ b/tests/baselines/reference/emitDefaultParametersMethod(target=es5).types @@ -0,0 +1,84 @@ +//// [tests/cases/conformance/es6/defaultParameters/emitDefaultParametersMethod.ts] //// + +=== emitDefaultParametersMethod.ts === +class C { +>C : C +> : ^ + + constructor(t: boolean, z: string, x: number, y = "hello") { } +>t : boolean +> : ^^^^^^^ +>z : string +> : ^^^^^^ +>x : number +> : ^^^^^^ +>y : string +> : ^^^^^^ +>"hello" : "hello" +> : ^^^^^^^ + + public foo(x: string, t = false) { } +>foo : (x: string, t?: boolean) => void +> : ^ ^^ ^^ ^^^^^^^^^^^^^^^^^^^ +>x : string +> : ^^^^^^ +>t : boolean +> : ^^^^^^^ +>false : false +> : ^^^^^ + + public foo1(x: string, t = false, ...rest) { } +>foo1 : (x: string, t?: boolean, ...rest: any[]) => void +> : ^ ^^ ^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ +>x : string +> : ^^^^^^ +>t : boolean +> : ^^^^^^^ +>false : false +> : ^^^^^ +>rest : any[] +> : ^^^^^ + + public bar(t = false) { } +>bar : (t?: boolean) => void +> : ^ ^^^^^^^^^^^^^^^^^^^ +>t : boolean +> : ^^^^^^^ +>false : false +> : ^^^^^ + + public boo(t = false, ...rest) { } +>boo : (t?: boolean, ...rest: any[]) => void +> : ^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ +>t : boolean +> : ^^^^^^^ +>false : false +> : ^^^^^ +>rest : any[] +> : ^^^^^ +} + +class D { +>D : D +> : ^ + + constructor(y = "hello") { } +>y : string +> : ^^^^^^ +>"hello" : "hello" +> : ^^^^^^^ +} + +class E { +>E : E +> : ^ + + constructor(y = "hello", ...rest) { } +>y : string +> : ^^^^^^ +>"hello" : "hello" +> : ^^^^^^^ +>rest : any[] +> : ^^^^^ +} + diff --git a/tests/baselines/reference/emitExponentiationOperator1.js b/tests/baselines/reference/emitExponentiationOperator1(target=es2015).js similarity index 100% rename from tests/baselines/reference/emitExponentiationOperator1.js rename to tests/baselines/reference/emitExponentiationOperator1(target=es2015).js diff --git a/tests/baselines/reference/emitExponentiationOperator1.symbols b/tests/baselines/reference/emitExponentiationOperator1(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/emitExponentiationOperator1.symbols rename to tests/baselines/reference/emitExponentiationOperator1(target=es2015).symbols diff --git a/tests/baselines/reference/emitExponentiationOperator1.types b/tests/baselines/reference/emitExponentiationOperator1(target=es2015).types similarity index 100% rename from tests/baselines/reference/emitExponentiationOperator1.types rename to tests/baselines/reference/emitExponentiationOperator1(target=es2015).types diff --git a/tests/baselines/reference/emitExponentiationOperator1(target=es5).js b/tests/baselines/reference/emitExponentiationOperator1(target=es5).js new file mode 100644 index 0000000000000..9ed295fe4f7cf --- /dev/null +++ b/tests/baselines/reference/emitExponentiationOperator1(target=es5).js @@ -0,0 +1,63 @@ +//// [tests/cases/conformance/es7/exponentiationOperator/emitExponentiationOperator1.ts] //// + +//// [emitExponentiationOperator1.ts] +1 ** -2; +1 ** 2; +(-1) ** 2 +1 ** 2 ** 3; +1 ** 2 ** -3; +1 ** -(2 ** 3); +(-(1 ** 2)) ** 3; +(-(1 ** 2)) ** -3; + +1 ** 2 + 3; +1 ** 2 - 3; +1 ** 2 * 3; +1 ** 2 / 3; +1 ** 2 % 3; + +1 ** -2 + 3; +1 ** -2 - 3; +1 ** -2 * 3; +1 ** -2 / 3; +1 ** -2 % 3; + +2 + 3 ** 3; +2 - 3 ** 3; +2 * 3 ** 3; +2 / 3 ** 3; +2 % 3 ** 3; + +(2 + 3) ** 4; +(2 - 3) ** 4; +(2 * 3) ** 4; +(2 / 3) ** 4; + +//// [emitExponentiationOperator1.js] +Math.pow(1, -2); +Math.pow(1, 2); +Math.pow((-1), 2); +Math.pow(1, Math.pow(2, 3)); +Math.pow(1, Math.pow(2, -3)); +Math.pow(1, -(Math.pow(2, 3))); +Math.pow((-(Math.pow(1, 2))), 3); +Math.pow((-(Math.pow(1, 2))), -3); +Math.pow(1, 2) + 3; +Math.pow(1, 2) - 3; +Math.pow(1, 2) * 3; +Math.pow(1, 2) / 3; +Math.pow(1, 2) % 3; +Math.pow(1, -2) + 3; +Math.pow(1, -2) - 3; +Math.pow(1, -2) * 3; +Math.pow(1, -2) / 3; +Math.pow(1, -2) % 3; +2 + Math.pow(3, 3); +2 - Math.pow(3, 3); +2 * Math.pow(3, 3); +2 / Math.pow(3, 3); +2 % Math.pow(3, 3); +Math.pow((2 + 3), 4); +Math.pow((2 - 3), 4); +Math.pow((2 * 3), 4); +Math.pow((2 / 3), 4); diff --git a/tests/baselines/reference/emitExponentiationOperator1(target=es5).symbols b/tests/baselines/reference/emitExponentiationOperator1(target=es5).symbols new file mode 100644 index 0000000000000..8f2106f725ff1 --- /dev/null +++ b/tests/baselines/reference/emitExponentiationOperator1(target=es5).symbols @@ -0,0 +1,35 @@ +//// [tests/cases/conformance/es7/exponentiationOperator/emitExponentiationOperator1.ts] //// + +=== emitExponentiationOperator1.ts === + +1 ** -2; +1 ** 2; +(-1) ** 2 +1 ** 2 ** 3; +1 ** 2 ** -3; +1 ** -(2 ** 3); +(-(1 ** 2)) ** 3; +(-(1 ** 2)) ** -3; + +1 ** 2 + 3; +1 ** 2 - 3; +1 ** 2 * 3; +1 ** 2 / 3; +1 ** 2 % 3; + +1 ** -2 + 3; +1 ** -2 - 3; +1 ** -2 * 3; +1 ** -2 / 3; +1 ** -2 % 3; + +2 + 3 ** 3; +2 - 3 ** 3; +2 * 3 ** 3; +2 / 3 ** 3; +2 % 3 ** 3; + +(2 + 3) ** 4; +(2 - 3) ** 4; +(2 * 3) ** 4; +(2 / 3) ** 4; diff --git a/tests/baselines/reference/emitExponentiationOperator1(target=es5).types b/tests/baselines/reference/emitExponentiationOperator1(target=es5).types new file mode 100644 index 0000000000000..889440cf21c63 --- /dev/null +++ b/tests/baselines/reference/emitExponentiationOperator1(target=es5).types @@ -0,0 +1,359 @@ +//// [tests/cases/conformance/es7/exponentiationOperator/emitExponentiationOperator1.ts] //// + +=== emitExponentiationOperator1.ts === +1 ** -2; +>1 ** -2 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>-2 : -2 +> : ^^ +>2 : 2 +> : ^ + +1 ** 2; +>1 ** 2 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ + +(-1) ** 2 +>(-1) ** 2 : number +> : ^^^^^^ +>(-1) : -1 +> : ^^ +>-1 : -1 +> : ^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ + +1 ** 2 ** 3; +>1 ** 2 ** 3 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>2 ** 3 : number +> : ^^^^^^ +>2 : 2 +> : ^ +>3 : 3 +> : ^ + +1 ** 2 ** -3; +>1 ** 2 ** -3 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>2 ** -3 : number +> : ^^^^^^ +>2 : 2 +> : ^ +>-3 : -3 +> : ^^ +>3 : 3 +> : ^ + +1 ** -(2 ** 3); +>1 ** -(2 ** 3) : number +> : ^^^^^^ +>1 : 1 +> : ^ +>-(2 ** 3) : number +> : ^^^^^^ +>(2 ** 3) : number +> : ^^^^^^ +>2 ** 3 : number +> : ^^^^^^ +>2 : 2 +> : ^ +>3 : 3 +> : ^ + +(-(1 ** 2)) ** 3; +>(-(1 ** 2)) ** 3 : number +> : ^^^^^^ +>(-(1 ** 2)) : number +> : ^^^^^^ +>-(1 ** 2) : number +> : ^^^^^^ +>(1 ** 2) : number +> : ^^^^^^ +>1 ** 2 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ +>3 : 3 +> : ^ + +(-(1 ** 2)) ** -3; +>(-(1 ** 2)) ** -3 : number +> : ^^^^^^ +>(-(1 ** 2)) : number +> : ^^^^^^ +>-(1 ** 2) : number +> : ^^^^^^ +>(1 ** 2) : number +> : ^^^^^^ +>1 ** 2 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ +>-3 : -3 +> : ^^ +>3 : 3 +> : ^ + +1 ** 2 + 3; +>1 ** 2 + 3 : number +> : ^^^^^^ +>1 ** 2 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ +>3 : 3 +> : ^ + +1 ** 2 - 3; +>1 ** 2 - 3 : number +> : ^^^^^^ +>1 ** 2 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ +>3 : 3 +> : ^ + +1 ** 2 * 3; +>1 ** 2 * 3 : number +> : ^^^^^^ +>1 ** 2 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ +>3 : 3 +> : ^ + +1 ** 2 / 3; +>1 ** 2 / 3 : number +> : ^^^^^^ +>1 ** 2 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ +>3 : 3 +> : ^ + +1 ** 2 % 3; +>1 ** 2 % 3 : number +> : ^^^^^^ +>1 ** 2 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ +>3 : 3 +> : ^ + +1 ** -2 + 3; +>1 ** -2 + 3 : number +> : ^^^^^^ +>1 ** -2 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>-2 : -2 +> : ^^ +>2 : 2 +> : ^ +>3 : 3 +> : ^ + +1 ** -2 - 3; +>1 ** -2 - 3 : number +> : ^^^^^^ +>1 ** -2 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>-2 : -2 +> : ^^ +>2 : 2 +> : ^ +>3 : 3 +> : ^ + +1 ** -2 * 3; +>1 ** -2 * 3 : number +> : ^^^^^^ +>1 ** -2 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>-2 : -2 +> : ^^ +>2 : 2 +> : ^ +>3 : 3 +> : ^ + +1 ** -2 / 3; +>1 ** -2 / 3 : number +> : ^^^^^^ +>1 ** -2 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>-2 : -2 +> : ^^ +>2 : 2 +> : ^ +>3 : 3 +> : ^ + +1 ** -2 % 3; +>1 ** -2 % 3 : number +> : ^^^^^^ +>1 ** -2 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>-2 : -2 +> : ^^ +>2 : 2 +> : ^ +>3 : 3 +> : ^ + +2 + 3 ** 3; +>2 + 3 ** 3 : number +> : ^^^^^^ +>2 : 2 +> : ^ +>3 ** 3 : number +> : ^^^^^^ +>3 : 3 +> : ^ +>3 : 3 +> : ^ + +2 - 3 ** 3; +>2 - 3 ** 3 : number +> : ^^^^^^ +>2 : 2 +> : ^ +>3 ** 3 : number +> : ^^^^^^ +>3 : 3 +> : ^ +>3 : 3 +> : ^ + +2 * 3 ** 3; +>2 * 3 ** 3 : number +> : ^^^^^^ +>2 : 2 +> : ^ +>3 ** 3 : number +> : ^^^^^^ +>3 : 3 +> : ^ +>3 : 3 +> : ^ + +2 / 3 ** 3; +>2 / 3 ** 3 : number +> : ^^^^^^ +>2 : 2 +> : ^ +>3 ** 3 : number +> : ^^^^^^ +>3 : 3 +> : ^ +>3 : 3 +> : ^ + +2 % 3 ** 3; +>2 % 3 ** 3 : number +> : ^^^^^^ +>2 : 2 +> : ^ +>3 ** 3 : number +> : ^^^^^^ +>3 : 3 +> : ^ +>3 : 3 +> : ^ + +(2 + 3) ** 4; +>(2 + 3) ** 4 : number +> : ^^^^^^ +>(2 + 3) : number +> : ^^^^^^ +>2 + 3 : number +> : ^^^^^^ +>2 : 2 +> : ^ +>3 : 3 +> : ^ +>4 : 4 +> : ^ + +(2 - 3) ** 4; +>(2 - 3) ** 4 : number +> : ^^^^^^ +>(2 - 3) : number +> : ^^^^^^ +>2 - 3 : number +> : ^^^^^^ +>2 : 2 +> : ^ +>3 : 3 +> : ^ +>4 : 4 +> : ^ + +(2 * 3) ** 4; +>(2 * 3) ** 4 : number +> : ^^^^^^ +>(2 * 3) : number +> : ^^^^^^ +>2 * 3 : number +> : ^^^^^^ +>2 : 2 +> : ^ +>3 : 3 +> : ^ +>4 : 4 +> : ^ + +(2 / 3) ** 4; +>(2 / 3) ** 4 : number +> : ^^^^^^ +>(2 / 3) : number +> : ^^^^^^ +>2 / 3 : number +> : ^^^^^^ +>2 : 2 +> : ^ +>3 : 3 +> : ^ +>4 : 4 +> : ^ + diff --git a/tests/baselines/reference/emitExponentiationOperator2.js b/tests/baselines/reference/emitExponentiationOperator2(target=es2015).js similarity index 100% rename from tests/baselines/reference/emitExponentiationOperator2.js rename to tests/baselines/reference/emitExponentiationOperator2(target=es2015).js diff --git a/tests/baselines/reference/emitExponentiationOperator2.symbols b/tests/baselines/reference/emitExponentiationOperator2(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/emitExponentiationOperator2.symbols rename to tests/baselines/reference/emitExponentiationOperator2(target=es2015).symbols diff --git a/tests/baselines/reference/emitExponentiationOperator2.types b/tests/baselines/reference/emitExponentiationOperator2(target=es2015).types similarity index 100% rename from tests/baselines/reference/emitExponentiationOperator2.types rename to tests/baselines/reference/emitExponentiationOperator2(target=es2015).types diff --git a/tests/baselines/reference/emitExponentiationOperator2(target=es5).js b/tests/baselines/reference/emitExponentiationOperator2(target=es5).js new file mode 100644 index 0000000000000..750f0768c277d --- /dev/null +++ b/tests/baselines/reference/emitExponentiationOperator2(target=es5).js @@ -0,0 +1,105 @@ +//// [tests/cases/conformance/es7/exponentiationOperator/emitExponentiationOperator2.ts] //// + +//// [emitExponentiationOperator2.ts] +var temp = 10; + +++temp ** 3; +--temp ** 3; +temp++ ** 3; +temp-- ** 3; +--temp + temp ** 3; +--temp - temp ** 3; +--temp * temp ** 3; +--temp / temp ** 3; +--temp % temp ** 3; +temp-- ** 3; +temp++ ** 3; +temp-- ** -temp; +temp++ ** +temp; + +temp-- + temp ** 3; +temp-- - temp ** 3; +temp-- * temp ** 3; +temp-- / temp ** 3; +temp-- % temp ** 3; + +--temp + 2 ** 3; +--temp - 2 ** 3; +--temp * 2 ** 3; +--temp / 2 ** 3; +--temp % 2 ** 3; + +++temp + 2 ** 3; +++temp - 2 ** 3; +++temp * 2 ** 3; +++temp / 2 ** 3; + +3 ** ++temp; +3 ** --temp; +3 ** temp++; +3 ** temp--; + +3 ** ++temp ** 2; +3 ** --temp ** 2; +3 ** temp++ ** 2; +3 ** temp-- ** 2; + +3 ** ++temp + 2; +3 ** ++temp - 2; +3 ** ++temp * 2; +3 ** ++temp / 2; +3 ** ++temp % 2; + +3 ** --temp + 2; +3 ** --temp - 2; +3 ** --temp * 2; +3 ** --temp / 2; +3 ** --temp % 2; + +//// [emitExponentiationOperator2.js] +var temp = 10; +Math.pow(++temp, 3); +Math.pow(--temp, 3); +Math.pow(temp++, 3); +Math.pow(temp--, 3); +--temp + Math.pow(temp, 3); +--temp - Math.pow(temp, 3); +--temp * Math.pow(temp, 3); +--temp / Math.pow(temp, 3); +--temp % Math.pow(temp, 3); +Math.pow(temp--, 3); +Math.pow(temp++, 3); +Math.pow(temp--, -temp); +Math.pow(temp++, +temp); +temp-- + Math.pow(temp, 3); +temp-- - Math.pow(temp, 3); +temp-- * Math.pow(temp, 3); +temp-- / Math.pow(temp, 3); +temp-- % Math.pow(temp, 3); +--temp + Math.pow(2, 3); +--temp - Math.pow(2, 3); +--temp * Math.pow(2, 3); +--temp / Math.pow(2, 3); +--temp % Math.pow(2, 3); +++temp + Math.pow(2, 3); +++temp - Math.pow(2, 3); +++temp * Math.pow(2, 3); +++temp / Math.pow(2, 3); +Math.pow(3, ++temp); +Math.pow(3, --temp); +Math.pow(3, temp++); +Math.pow(3, temp--); +Math.pow(3, Math.pow(++temp, 2)); +Math.pow(3, Math.pow(--temp, 2)); +Math.pow(3, Math.pow(temp++, 2)); +Math.pow(3, Math.pow(temp--, 2)); +Math.pow(3, ++temp) + 2; +Math.pow(3, ++temp) - 2; +Math.pow(3, ++temp) * 2; +Math.pow(3, ++temp) / 2; +Math.pow(3, ++temp) % 2; +Math.pow(3, --temp) + 2; +Math.pow(3, --temp) - 2; +Math.pow(3, --temp) * 2; +Math.pow(3, --temp) / 2; +Math.pow(3, --temp) % 2; diff --git a/tests/baselines/reference/emitExponentiationOperator2(target=es5).symbols b/tests/baselines/reference/emitExponentiationOperator2(target=es5).symbols new file mode 100644 index 0000000000000..6fc47bbc322b1 --- /dev/null +++ b/tests/baselines/reference/emitExponentiationOperator2(target=es5).symbols @@ -0,0 +1,153 @@ +//// [tests/cases/conformance/es7/exponentiationOperator/emitExponentiationOperator2.ts] //// + +=== emitExponentiationOperator2.ts === +var temp = 10; +>temp : Symbol(temp, Decl(emitExponentiationOperator2.ts, 0, 3)) + +++temp ** 3; +>temp : Symbol(temp, Decl(emitExponentiationOperator2.ts, 0, 3)) + +--temp ** 3; +>temp : Symbol(temp, Decl(emitExponentiationOperator2.ts, 0, 3)) + +temp++ ** 3; +>temp : Symbol(temp, Decl(emitExponentiationOperator2.ts, 0, 3)) + +temp-- ** 3; +>temp : Symbol(temp, Decl(emitExponentiationOperator2.ts, 0, 3)) + +--temp + temp ** 3; +>temp : Symbol(temp, Decl(emitExponentiationOperator2.ts, 0, 3)) +>temp : Symbol(temp, Decl(emitExponentiationOperator2.ts, 0, 3)) + +--temp - temp ** 3; +>temp : Symbol(temp, Decl(emitExponentiationOperator2.ts, 0, 3)) +>temp : Symbol(temp, Decl(emitExponentiationOperator2.ts, 0, 3)) + +--temp * temp ** 3; +>temp : Symbol(temp, Decl(emitExponentiationOperator2.ts, 0, 3)) +>temp : Symbol(temp, Decl(emitExponentiationOperator2.ts, 0, 3)) + +--temp / temp ** 3; +>temp : Symbol(temp, Decl(emitExponentiationOperator2.ts, 0, 3)) +>temp : Symbol(temp, Decl(emitExponentiationOperator2.ts, 0, 3)) + +--temp % temp ** 3; +>temp : Symbol(temp, Decl(emitExponentiationOperator2.ts, 0, 3)) +>temp : Symbol(temp, Decl(emitExponentiationOperator2.ts, 0, 3)) + +temp-- ** 3; +>temp : Symbol(temp, Decl(emitExponentiationOperator2.ts, 0, 3)) + +temp++ ** 3; +>temp : Symbol(temp, Decl(emitExponentiationOperator2.ts, 0, 3)) + +temp-- ** -temp; +>temp : Symbol(temp, Decl(emitExponentiationOperator2.ts, 0, 3)) +>temp : Symbol(temp, Decl(emitExponentiationOperator2.ts, 0, 3)) + +temp++ ** +temp; +>temp : Symbol(temp, Decl(emitExponentiationOperator2.ts, 0, 3)) +>temp : Symbol(temp, Decl(emitExponentiationOperator2.ts, 0, 3)) + +temp-- + temp ** 3; +>temp : Symbol(temp, Decl(emitExponentiationOperator2.ts, 0, 3)) +>temp : Symbol(temp, Decl(emitExponentiationOperator2.ts, 0, 3)) + +temp-- - temp ** 3; +>temp : Symbol(temp, Decl(emitExponentiationOperator2.ts, 0, 3)) +>temp : Symbol(temp, Decl(emitExponentiationOperator2.ts, 0, 3)) + +temp-- * temp ** 3; +>temp : Symbol(temp, Decl(emitExponentiationOperator2.ts, 0, 3)) +>temp : Symbol(temp, Decl(emitExponentiationOperator2.ts, 0, 3)) + +temp-- / temp ** 3; +>temp : Symbol(temp, Decl(emitExponentiationOperator2.ts, 0, 3)) +>temp : Symbol(temp, Decl(emitExponentiationOperator2.ts, 0, 3)) + +temp-- % temp ** 3; +>temp : Symbol(temp, Decl(emitExponentiationOperator2.ts, 0, 3)) +>temp : Symbol(temp, Decl(emitExponentiationOperator2.ts, 0, 3)) + +--temp + 2 ** 3; +>temp : Symbol(temp, Decl(emitExponentiationOperator2.ts, 0, 3)) + +--temp - 2 ** 3; +>temp : Symbol(temp, Decl(emitExponentiationOperator2.ts, 0, 3)) + +--temp * 2 ** 3; +>temp : Symbol(temp, Decl(emitExponentiationOperator2.ts, 0, 3)) + +--temp / 2 ** 3; +>temp : Symbol(temp, Decl(emitExponentiationOperator2.ts, 0, 3)) + +--temp % 2 ** 3; +>temp : Symbol(temp, Decl(emitExponentiationOperator2.ts, 0, 3)) + +++temp + 2 ** 3; +>temp : Symbol(temp, Decl(emitExponentiationOperator2.ts, 0, 3)) + +++temp - 2 ** 3; +>temp : Symbol(temp, Decl(emitExponentiationOperator2.ts, 0, 3)) + +++temp * 2 ** 3; +>temp : Symbol(temp, Decl(emitExponentiationOperator2.ts, 0, 3)) + +++temp / 2 ** 3; +>temp : Symbol(temp, Decl(emitExponentiationOperator2.ts, 0, 3)) + +3 ** ++temp; +>temp : Symbol(temp, Decl(emitExponentiationOperator2.ts, 0, 3)) + +3 ** --temp; +>temp : Symbol(temp, Decl(emitExponentiationOperator2.ts, 0, 3)) + +3 ** temp++; +>temp : Symbol(temp, Decl(emitExponentiationOperator2.ts, 0, 3)) + +3 ** temp--; +>temp : Symbol(temp, Decl(emitExponentiationOperator2.ts, 0, 3)) + +3 ** ++temp ** 2; +>temp : Symbol(temp, Decl(emitExponentiationOperator2.ts, 0, 3)) + +3 ** --temp ** 2; +>temp : Symbol(temp, Decl(emitExponentiationOperator2.ts, 0, 3)) + +3 ** temp++ ** 2; +>temp : Symbol(temp, Decl(emitExponentiationOperator2.ts, 0, 3)) + +3 ** temp-- ** 2; +>temp : Symbol(temp, Decl(emitExponentiationOperator2.ts, 0, 3)) + +3 ** ++temp + 2; +>temp : Symbol(temp, Decl(emitExponentiationOperator2.ts, 0, 3)) + +3 ** ++temp - 2; +>temp : Symbol(temp, Decl(emitExponentiationOperator2.ts, 0, 3)) + +3 ** ++temp * 2; +>temp : Symbol(temp, Decl(emitExponentiationOperator2.ts, 0, 3)) + +3 ** ++temp / 2; +>temp : Symbol(temp, Decl(emitExponentiationOperator2.ts, 0, 3)) + +3 ** ++temp % 2; +>temp : Symbol(temp, Decl(emitExponentiationOperator2.ts, 0, 3)) + +3 ** --temp + 2; +>temp : Symbol(temp, Decl(emitExponentiationOperator2.ts, 0, 3)) + +3 ** --temp - 2; +>temp : Symbol(temp, Decl(emitExponentiationOperator2.ts, 0, 3)) + +3 ** --temp * 2; +>temp : Symbol(temp, Decl(emitExponentiationOperator2.ts, 0, 3)) + +3 ** --temp / 2; +>temp : Symbol(temp, Decl(emitExponentiationOperator2.ts, 0, 3)) + +3 ** --temp % 2; +>temp : Symbol(temp, Decl(emitExponentiationOperator2.ts, 0, 3)) + diff --git a/tests/baselines/reference/emitExponentiationOperator2(target=es5).types b/tests/baselines/reference/emitExponentiationOperator2(target=es5).types new file mode 100644 index 0000000000000..b8672b852d39e --- /dev/null +++ b/tests/baselines/reference/emitExponentiationOperator2(target=es5).types @@ -0,0 +1,595 @@ +//// [tests/cases/conformance/es7/exponentiationOperator/emitExponentiationOperator2.ts] //// + +=== emitExponentiationOperator2.ts === +var temp = 10; +>temp : number +> : ^^^^^^ +>10 : 10 +> : ^^ + +++temp ** 3; +>++temp ** 3 : number +> : ^^^^^^ +>++temp : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>3 : 3 +> : ^ + +--temp ** 3; +>--temp ** 3 : number +> : ^^^^^^ +>--temp : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>3 : 3 +> : ^ + +temp++ ** 3; +>temp++ ** 3 : number +> : ^^^^^^ +>temp++ : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>3 : 3 +> : ^ + +temp-- ** 3; +>temp-- ** 3 : number +> : ^^^^^^ +>temp-- : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>3 : 3 +> : ^ + +--temp + temp ** 3; +>--temp + temp ** 3 : number +> : ^^^^^^ +>--temp : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>temp ** 3 : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>3 : 3 +> : ^ + +--temp - temp ** 3; +>--temp - temp ** 3 : number +> : ^^^^^^ +>--temp : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>temp ** 3 : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>3 : 3 +> : ^ + +--temp * temp ** 3; +>--temp * temp ** 3 : number +> : ^^^^^^ +>--temp : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>temp ** 3 : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>3 : 3 +> : ^ + +--temp / temp ** 3; +>--temp / temp ** 3 : number +> : ^^^^^^ +>--temp : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>temp ** 3 : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>3 : 3 +> : ^ + +--temp % temp ** 3; +>--temp % temp ** 3 : number +> : ^^^^^^ +>--temp : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>temp ** 3 : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>3 : 3 +> : ^ + +temp-- ** 3; +>temp-- ** 3 : number +> : ^^^^^^ +>temp-- : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>3 : 3 +> : ^ + +temp++ ** 3; +>temp++ ** 3 : number +> : ^^^^^^ +>temp++ : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>3 : 3 +> : ^ + +temp-- ** -temp; +>temp-- ** -temp : number +> : ^^^^^^ +>temp-- : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>-temp : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ + +temp++ ** +temp; +>temp++ ** +temp : number +> : ^^^^^^ +>temp++ : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>+temp : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ + +temp-- + temp ** 3; +>temp-- + temp ** 3 : number +> : ^^^^^^ +>temp-- : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>temp ** 3 : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>3 : 3 +> : ^ + +temp-- - temp ** 3; +>temp-- - temp ** 3 : number +> : ^^^^^^ +>temp-- : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>temp ** 3 : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>3 : 3 +> : ^ + +temp-- * temp ** 3; +>temp-- * temp ** 3 : number +> : ^^^^^^ +>temp-- : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>temp ** 3 : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>3 : 3 +> : ^ + +temp-- / temp ** 3; +>temp-- / temp ** 3 : number +> : ^^^^^^ +>temp-- : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>temp ** 3 : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>3 : 3 +> : ^ + +temp-- % temp ** 3; +>temp-- % temp ** 3 : number +> : ^^^^^^ +>temp-- : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>temp ** 3 : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>3 : 3 +> : ^ + +--temp + 2 ** 3; +>--temp + 2 ** 3 : number +> : ^^^^^^ +>--temp : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>2 ** 3 : number +> : ^^^^^^ +>2 : 2 +> : ^ +>3 : 3 +> : ^ + +--temp - 2 ** 3; +>--temp - 2 ** 3 : number +> : ^^^^^^ +>--temp : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>2 ** 3 : number +> : ^^^^^^ +>2 : 2 +> : ^ +>3 : 3 +> : ^ + +--temp * 2 ** 3; +>--temp * 2 ** 3 : number +> : ^^^^^^ +>--temp : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>2 ** 3 : number +> : ^^^^^^ +>2 : 2 +> : ^ +>3 : 3 +> : ^ + +--temp / 2 ** 3; +>--temp / 2 ** 3 : number +> : ^^^^^^ +>--temp : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>2 ** 3 : number +> : ^^^^^^ +>2 : 2 +> : ^ +>3 : 3 +> : ^ + +--temp % 2 ** 3; +>--temp % 2 ** 3 : number +> : ^^^^^^ +>--temp : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>2 ** 3 : number +> : ^^^^^^ +>2 : 2 +> : ^ +>3 : 3 +> : ^ + +++temp + 2 ** 3; +>++temp + 2 ** 3 : number +> : ^^^^^^ +>++temp : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>2 ** 3 : number +> : ^^^^^^ +>2 : 2 +> : ^ +>3 : 3 +> : ^ + +++temp - 2 ** 3; +>++temp - 2 ** 3 : number +> : ^^^^^^ +>++temp : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>2 ** 3 : number +> : ^^^^^^ +>2 : 2 +> : ^ +>3 : 3 +> : ^ + +++temp * 2 ** 3; +>++temp * 2 ** 3 : number +> : ^^^^^^ +>++temp : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>2 ** 3 : number +> : ^^^^^^ +>2 : 2 +> : ^ +>3 : 3 +> : ^ + +++temp / 2 ** 3; +>++temp / 2 ** 3 : number +> : ^^^^^^ +>++temp : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>2 ** 3 : number +> : ^^^^^^ +>2 : 2 +> : ^ +>3 : 3 +> : ^ + +3 ** ++temp; +>3 ** ++temp : number +> : ^^^^^^ +>3 : 3 +> : ^ +>++temp : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ + +3 ** --temp; +>3 ** --temp : number +> : ^^^^^^ +>3 : 3 +> : ^ +>--temp : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ + +3 ** temp++; +>3 ** temp++ : number +> : ^^^^^^ +>3 : 3 +> : ^ +>temp++ : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ + +3 ** temp--; +>3 ** temp-- : number +> : ^^^^^^ +>3 : 3 +> : ^ +>temp-- : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ + +3 ** ++temp ** 2; +>3 ** ++temp ** 2 : number +> : ^^^^^^ +>3 : 3 +> : ^ +>++temp ** 2 : number +> : ^^^^^^ +>++temp : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>2 : 2 +> : ^ + +3 ** --temp ** 2; +>3 ** --temp ** 2 : number +> : ^^^^^^ +>3 : 3 +> : ^ +>--temp ** 2 : number +> : ^^^^^^ +>--temp : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>2 : 2 +> : ^ + +3 ** temp++ ** 2; +>3 ** temp++ ** 2 : number +> : ^^^^^^ +>3 : 3 +> : ^ +>temp++ ** 2 : number +> : ^^^^^^ +>temp++ : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>2 : 2 +> : ^ + +3 ** temp-- ** 2; +>3 ** temp-- ** 2 : number +> : ^^^^^^ +>3 : 3 +> : ^ +>temp-- ** 2 : number +> : ^^^^^^ +>temp-- : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>2 : 2 +> : ^ + +3 ** ++temp + 2; +>3 ** ++temp + 2 : number +> : ^^^^^^ +>3 ** ++temp : number +> : ^^^^^^ +>3 : 3 +> : ^ +>++temp : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>2 : 2 +> : ^ + +3 ** ++temp - 2; +>3 ** ++temp - 2 : number +> : ^^^^^^ +>3 ** ++temp : number +> : ^^^^^^ +>3 : 3 +> : ^ +>++temp : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>2 : 2 +> : ^ + +3 ** ++temp * 2; +>3 ** ++temp * 2 : number +> : ^^^^^^ +>3 ** ++temp : number +> : ^^^^^^ +>3 : 3 +> : ^ +>++temp : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>2 : 2 +> : ^ + +3 ** ++temp / 2; +>3 ** ++temp / 2 : number +> : ^^^^^^ +>3 ** ++temp : number +> : ^^^^^^ +>3 : 3 +> : ^ +>++temp : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>2 : 2 +> : ^ + +3 ** ++temp % 2; +>3 ** ++temp % 2 : number +> : ^^^^^^ +>3 ** ++temp : number +> : ^^^^^^ +>3 : 3 +> : ^ +>++temp : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>2 : 2 +> : ^ + +3 ** --temp + 2; +>3 ** --temp + 2 : number +> : ^^^^^^ +>3 ** --temp : number +> : ^^^^^^ +>3 : 3 +> : ^ +>--temp : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>2 : 2 +> : ^ + +3 ** --temp - 2; +>3 ** --temp - 2 : number +> : ^^^^^^ +>3 ** --temp : number +> : ^^^^^^ +>3 : 3 +> : ^ +>--temp : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>2 : 2 +> : ^ + +3 ** --temp * 2; +>3 ** --temp * 2 : number +> : ^^^^^^ +>3 ** --temp : number +> : ^^^^^^ +>3 : 3 +> : ^ +>--temp : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>2 : 2 +> : ^ + +3 ** --temp / 2; +>3 ** --temp / 2 : number +> : ^^^^^^ +>3 ** --temp : number +> : ^^^^^^ +>3 : 3 +> : ^ +>--temp : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>2 : 2 +> : ^ + +3 ** --temp % 2; +>3 ** --temp % 2 : number +> : ^^^^^^ +>3 ** --temp : number +> : ^^^^^^ +>3 : 3 +> : ^ +>--temp : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>2 : 2 +> : ^ + diff --git a/tests/baselines/reference/emitExponentiationOperator3.js b/tests/baselines/reference/emitExponentiationOperator3(target=es2015).js similarity index 100% rename from tests/baselines/reference/emitExponentiationOperator3.js rename to tests/baselines/reference/emitExponentiationOperator3(target=es2015).js diff --git a/tests/baselines/reference/emitExponentiationOperator3.symbols b/tests/baselines/reference/emitExponentiationOperator3(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/emitExponentiationOperator3.symbols rename to tests/baselines/reference/emitExponentiationOperator3(target=es2015).symbols diff --git a/tests/baselines/reference/emitExponentiationOperator3.types b/tests/baselines/reference/emitExponentiationOperator3(target=es2015).types similarity index 100% rename from tests/baselines/reference/emitExponentiationOperator3.types rename to tests/baselines/reference/emitExponentiationOperator3(target=es2015).types diff --git a/tests/baselines/reference/emitExponentiationOperator3(target=es5).js b/tests/baselines/reference/emitExponentiationOperator3(target=es5).js new file mode 100644 index 0000000000000..962bbf293a981 --- /dev/null +++ b/tests/baselines/reference/emitExponentiationOperator3(target=es5).js @@ -0,0 +1,79 @@ +//// [tests/cases/conformance/es7/exponentiationOperator/emitExponentiationOperator3.ts] //// + +//// [emitExponentiationOperator3.ts] +var temp = 10; + +(-++temp) ** 3; +(+--temp) ** 3; +(-temp++) ** 3; +(+temp--) ** 3; +(-(1 ** ++temp)) ** 3; +(-(1 ** --temp)) ** 3; +(-(1 ** temp++)) ** 3; +(-(1 ** temp--)) ** 3; + +(-3) ** temp++; +(-3) ** temp--; +(-3) ** ++temp; +(-3) ** --temp; +(+3) ** temp++; +(+3) ** temp--; +(+3) ** ++temp; +(+3) ** --temp; +(-3) ** temp++ ** 2; +(-3) ** temp-- ** 2; +(-3) ** ++temp ** 2; +(-3) ** --temp ** 2; +(+3) ** temp++ ** 2; +(+3) ** temp-- ** 2; +(+3) ** ++temp ** 2; +(+3) ** --temp ** 2; + +3 ** -temp++; +3 ** -temp--; +3 ** -++temp; +3 ** +--temp; +3 ** (-temp++) ** 2; +3 ** (-temp--) ** 2; +3 ** (+temp++) ** 2; +3 ** (+temp--) ** 2; +3 ** (-++temp) ** 2; +3 ** (+--temp) ** 2; + + +//// [emitExponentiationOperator3.js] +var temp = 10; +Math.pow((-++temp), 3); +Math.pow((+--temp), 3); +Math.pow((-temp++), 3); +Math.pow((+temp--), 3); +Math.pow((-(Math.pow(1, ++temp))), 3); +Math.pow((-(Math.pow(1, --temp))), 3); +Math.pow((-(Math.pow(1, temp++))), 3); +Math.pow((-(Math.pow(1, temp--))), 3); +Math.pow((-3), temp++); +Math.pow((-3), temp--); +Math.pow((-3), ++temp); +Math.pow((-3), --temp); +Math.pow((+3), temp++); +Math.pow((+3), temp--); +Math.pow((+3), ++temp); +Math.pow((+3), --temp); +Math.pow((-3), Math.pow(temp++, 2)); +Math.pow((-3), Math.pow(temp--, 2)); +Math.pow((-3), Math.pow(++temp, 2)); +Math.pow((-3), Math.pow(--temp, 2)); +Math.pow((+3), Math.pow(temp++, 2)); +Math.pow((+3), Math.pow(temp--, 2)); +Math.pow((+3), Math.pow(++temp, 2)); +Math.pow((+3), Math.pow(--temp, 2)); +Math.pow(3, -temp++); +Math.pow(3, -temp--); +Math.pow(3, -++temp); +Math.pow(3, +--temp); +Math.pow(3, Math.pow((-temp++), 2)); +Math.pow(3, Math.pow((-temp--), 2)); +Math.pow(3, Math.pow((+temp++), 2)); +Math.pow(3, Math.pow((+temp--), 2)); +Math.pow(3, Math.pow((-++temp), 2)); +Math.pow(3, Math.pow((+--temp), 2)); diff --git a/tests/baselines/reference/emitExponentiationOperator3(target=es5).symbols b/tests/baselines/reference/emitExponentiationOperator3(target=es5).symbols new file mode 100644 index 0000000000000..56ea5d0d3f3d0 --- /dev/null +++ b/tests/baselines/reference/emitExponentiationOperator3(target=es5).symbols @@ -0,0 +1,108 @@ +//// [tests/cases/conformance/es7/exponentiationOperator/emitExponentiationOperator3.ts] //// + +=== emitExponentiationOperator3.ts === +var temp = 10; +>temp : Symbol(temp, Decl(emitExponentiationOperator3.ts, 0, 3)) + +(-++temp) ** 3; +>temp : Symbol(temp, Decl(emitExponentiationOperator3.ts, 0, 3)) + +(+--temp) ** 3; +>temp : Symbol(temp, Decl(emitExponentiationOperator3.ts, 0, 3)) + +(-temp++) ** 3; +>temp : Symbol(temp, Decl(emitExponentiationOperator3.ts, 0, 3)) + +(+temp--) ** 3; +>temp : Symbol(temp, Decl(emitExponentiationOperator3.ts, 0, 3)) + +(-(1 ** ++temp)) ** 3; +>temp : Symbol(temp, Decl(emitExponentiationOperator3.ts, 0, 3)) + +(-(1 ** --temp)) ** 3; +>temp : Symbol(temp, Decl(emitExponentiationOperator3.ts, 0, 3)) + +(-(1 ** temp++)) ** 3; +>temp : Symbol(temp, Decl(emitExponentiationOperator3.ts, 0, 3)) + +(-(1 ** temp--)) ** 3; +>temp : Symbol(temp, Decl(emitExponentiationOperator3.ts, 0, 3)) + +(-3) ** temp++; +>temp : Symbol(temp, Decl(emitExponentiationOperator3.ts, 0, 3)) + +(-3) ** temp--; +>temp : Symbol(temp, Decl(emitExponentiationOperator3.ts, 0, 3)) + +(-3) ** ++temp; +>temp : Symbol(temp, Decl(emitExponentiationOperator3.ts, 0, 3)) + +(-3) ** --temp; +>temp : Symbol(temp, Decl(emitExponentiationOperator3.ts, 0, 3)) + +(+3) ** temp++; +>temp : Symbol(temp, Decl(emitExponentiationOperator3.ts, 0, 3)) + +(+3) ** temp--; +>temp : Symbol(temp, Decl(emitExponentiationOperator3.ts, 0, 3)) + +(+3) ** ++temp; +>temp : Symbol(temp, Decl(emitExponentiationOperator3.ts, 0, 3)) + +(+3) ** --temp; +>temp : Symbol(temp, Decl(emitExponentiationOperator3.ts, 0, 3)) + +(-3) ** temp++ ** 2; +>temp : Symbol(temp, Decl(emitExponentiationOperator3.ts, 0, 3)) + +(-3) ** temp-- ** 2; +>temp : Symbol(temp, Decl(emitExponentiationOperator3.ts, 0, 3)) + +(-3) ** ++temp ** 2; +>temp : Symbol(temp, Decl(emitExponentiationOperator3.ts, 0, 3)) + +(-3) ** --temp ** 2; +>temp : Symbol(temp, Decl(emitExponentiationOperator3.ts, 0, 3)) + +(+3) ** temp++ ** 2; +>temp : Symbol(temp, Decl(emitExponentiationOperator3.ts, 0, 3)) + +(+3) ** temp-- ** 2; +>temp : Symbol(temp, Decl(emitExponentiationOperator3.ts, 0, 3)) + +(+3) ** ++temp ** 2; +>temp : Symbol(temp, Decl(emitExponentiationOperator3.ts, 0, 3)) + +(+3) ** --temp ** 2; +>temp : Symbol(temp, Decl(emitExponentiationOperator3.ts, 0, 3)) + +3 ** -temp++; +>temp : Symbol(temp, Decl(emitExponentiationOperator3.ts, 0, 3)) + +3 ** -temp--; +>temp : Symbol(temp, Decl(emitExponentiationOperator3.ts, 0, 3)) + +3 ** -++temp; +>temp : Symbol(temp, Decl(emitExponentiationOperator3.ts, 0, 3)) + +3 ** +--temp; +>temp : Symbol(temp, Decl(emitExponentiationOperator3.ts, 0, 3)) + +3 ** (-temp++) ** 2; +>temp : Symbol(temp, Decl(emitExponentiationOperator3.ts, 0, 3)) + +3 ** (-temp--) ** 2; +>temp : Symbol(temp, Decl(emitExponentiationOperator3.ts, 0, 3)) + +3 ** (+temp++) ** 2; +>temp : Symbol(temp, Decl(emitExponentiationOperator3.ts, 0, 3)) + +3 ** (+temp--) ** 2; +>temp : Symbol(temp, Decl(emitExponentiationOperator3.ts, 0, 3)) + +3 ** (-++temp) ** 2; +>temp : Symbol(temp, Decl(emitExponentiationOperator3.ts, 0, 3)) + +3 ** (+--temp) ** 2; +>temp : Symbol(temp, Decl(emitExponentiationOperator3.ts, 0, 3)) + diff --git a/tests/baselines/reference/emitExponentiationOperator3(target=es5).types b/tests/baselines/reference/emitExponentiationOperator3(target=es5).types new file mode 100644 index 0000000000000..2afbbb398a0e4 --- /dev/null +++ b/tests/baselines/reference/emitExponentiationOperator3(target=es5).types @@ -0,0 +1,557 @@ +//// [tests/cases/conformance/es7/exponentiationOperator/emitExponentiationOperator3.ts] //// + +=== emitExponentiationOperator3.ts === +var temp = 10; +>temp : number +> : ^^^^^^ +>10 : 10 +> : ^^ + +(-++temp) ** 3; +>(-++temp) ** 3 : number +> : ^^^^^^ +>(-++temp) : number +> : ^^^^^^ +>-++temp : number +> : ^^^^^^ +>++temp : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>3 : 3 +> : ^ + +(+--temp) ** 3; +>(+--temp) ** 3 : number +> : ^^^^^^ +>(+--temp) : number +> : ^^^^^^ +>+--temp : number +> : ^^^^^^ +>--temp : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>3 : 3 +> : ^ + +(-temp++) ** 3; +>(-temp++) ** 3 : number +> : ^^^^^^ +>(-temp++) : number +> : ^^^^^^ +>-temp++ : number +> : ^^^^^^ +>temp++ : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>3 : 3 +> : ^ + +(+temp--) ** 3; +>(+temp--) ** 3 : number +> : ^^^^^^ +>(+temp--) : number +> : ^^^^^^ +>+temp-- : number +> : ^^^^^^ +>temp-- : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>3 : 3 +> : ^ + +(-(1 ** ++temp)) ** 3; +>(-(1 ** ++temp)) ** 3 : number +> : ^^^^^^ +>(-(1 ** ++temp)) : number +> : ^^^^^^ +>-(1 ** ++temp) : number +> : ^^^^^^ +>(1 ** ++temp) : number +> : ^^^^^^ +>1 ** ++temp : number +> : ^^^^^^ +>1 : 1 +> : ^ +>++temp : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>3 : 3 +> : ^ + +(-(1 ** --temp)) ** 3; +>(-(1 ** --temp)) ** 3 : number +> : ^^^^^^ +>(-(1 ** --temp)) : number +> : ^^^^^^ +>-(1 ** --temp) : number +> : ^^^^^^ +>(1 ** --temp) : number +> : ^^^^^^ +>1 ** --temp : number +> : ^^^^^^ +>1 : 1 +> : ^ +>--temp : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>3 : 3 +> : ^ + +(-(1 ** temp++)) ** 3; +>(-(1 ** temp++)) ** 3 : number +> : ^^^^^^ +>(-(1 ** temp++)) : number +> : ^^^^^^ +>-(1 ** temp++) : number +> : ^^^^^^ +>(1 ** temp++) : number +> : ^^^^^^ +>1 ** temp++ : number +> : ^^^^^^ +>1 : 1 +> : ^ +>temp++ : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>3 : 3 +> : ^ + +(-(1 ** temp--)) ** 3; +>(-(1 ** temp--)) ** 3 : number +> : ^^^^^^ +>(-(1 ** temp--)) : number +> : ^^^^^^ +>-(1 ** temp--) : number +> : ^^^^^^ +>(1 ** temp--) : number +> : ^^^^^^ +>1 ** temp-- : number +> : ^^^^^^ +>1 : 1 +> : ^ +>temp-- : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>3 : 3 +> : ^ + +(-3) ** temp++; +>(-3) ** temp++ : number +> : ^^^^^^ +>(-3) : -3 +> : ^^ +>-3 : -3 +> : ^^ +>3 : 3 +> : ^ +>temp++ : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ + +(-3) ** temp--; +>(-3) ** temp-- : number +> : ^^^^^^ +>(-3) : -3 +> : ^^ +>-3 : -3 +> : ^^ +>3 : 3 +> : ^ +>temp-- : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ + +(-3) ** ++temp; +>(-3) ** ++temp : number +> : ^^^^^^ +>(-3) : -3 +> : ^^ +>-3 : -3 +> : ^^ +>3 : 3 +> : ^ +>++temp : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ + +(-3) ** --temp; +>(-3) ** --temp : number +> : ^^^^^^ +>(-3) : -3 +> : ^^ +>-3 : -3 +> : ^^ +>3 : 3 +> : ^ +>--temp : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ + +(+3) ** temp++; +>(+3) ** temp++ : number +> : ^^^^^^ +>(+3) : 3 +> : ^ +>+3 : 3 +> : ^ +>3 : 3 +> : ^ +>temp++ : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ + +(+3) ** temp--; +>(+3) ** temp-- : number +> : ^^^^^^ +>(+3) : 3 +> : ^ +>+3 : 3 +> : ^ +>3 : 3 +> : ^ +>temp-- : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ + +(+3) ** ++temp; +>(+3) ** ++temp : number +> : ^^^^^^ +>(+3) : 3 +> : ^ +>+3 : 3 +> : ^ +>3 : 3 +> : ^ +>++temp : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ + +(+3) ** --temp; +>(+3) ** --temp : number +> : ^^^^^^ +>(+3) : 3 +> : ^ +>+3 : 3 +> : ^ +>3 : 3 +> : ^ +>--temp : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ + +(-3) ** temp++ ** 2; +>(-3) ** temp++ ** 2 : number +> : ^^^^^^ +>(-3) : -3 +> : ^^ +>-3 : -3 +> : ^^ +>3 : 3 +> : ^ +>temp++ ** 2 : number +> : ^^^^^^ +>temp++ : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>2 : 2 +> : ^ + +(-3) ** temp-- ** 2; +>(-3) ** temp-- ** 2 : number +> : ^^^^^^ +>(-3) : -3 +> : ^^ +>-3 : -3 +> : ^^ +>3 : 3 +> : ^ +>temp-- ** 2 : number +> : ^^^^^^ +>temp-- : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>2 : 2 +> : ^ + +(-3) ** ++temp ** 2; +>(-3) ** ++temp ** 2 : number +> : ^^^^^^ +>(-3) : -3 +> : ^^ +>-3 : -3 +> : ^^ +>3 : 3 +> : ^ +>++temp ** 2 : number +> : ^^^^^^ +>++temp : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>2 : 2 +> : ^ + +(-3) ** --temp ** 2; +>(-3) ** --temp ** 2 : number +> : ^^^^^^ +>(-3) : -3 +> : ^^ +>-3 : -3 +> : ^^ +>3 : 3 +> : ^ +>--temp ** 2 : number +> : ^^^^^^ +>--temp : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>2 : 2 +> : ^ + +(+3) ** temp++ ** 2; +>(+3) ** temp++ ** 2 : number +> : ^^^^^^ +>(+3) : 3 +> : ^ +>+3 : 3 +> : ^ +>3 : 3 +> : ^ +>temp++ ** 2 : number +> : ^^^^^^ +>temp++ : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>2 : 2 +> : ^ + +(+3) ** temp-- ** 2; +>(+3) ** temp-- ** 2 : number +> : ^^^^^^ +>(+3) : 3 +> : ^ +>+3 : 3 +> : ^ +>3 : 3 +> : ^ +>temp-- ** 2 : number +> : ^^^^^^ +>temp-- : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>2 : 2 +> : ^ + +(+3) ** ++temp ** 2; +>(+3) ** ++temp ** 2 : number +> : ^^^^^^ +>(+3) : 3 +> : ^ +>+3 : 3 +> : ^ +>3 : 3 +> : ^ +>++temp ** 2 : number +> : ^^^^^^ +>++temp : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>2 : 2 +> : ^ + +(+3) ** --temp ** 2; +>(+3) ** --temp ** 2 : number +> : ^^^^^^ +>(+3) : 3 +> : ^ +>+3 : 3 +> : ^ +>3 : 3 +> : ^ +>--temp ** 2 : number +> : ^^^^^^ +>--temp : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>2 : 2 +> : ^ + +3 ** -temp++; +>3 ** -temp++ : number +> : ^^^^^^ +>3 : 3 +> : ^ +>-temp++ : number +> : ^^^^^^ +>temp++ : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ + +3 ** -temp--; +>3 ** -temp-- : number +> : ^^^^^^ +>3 : 3 +> : ^ +>-temp-- : number +> : ^^^^^^ +>temp-- : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ + +3 ** -++temp; +>3 ** -++temp : number +> : ^^^^^^ +>3 : 3 +> : ^ +>-++temp : number +> : ^^^^^^ +>++temp : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ + +3 ** +--temp; +>3 ** +--temp : number +> : ^^^^^^ +>3 : 3 +> : ^ +>+--temp : number +> : ^^^^^^ +>--temp : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ + +3 ** (-temp++) ** 2; +>3 ** (-temp++) ** 2 : number +> : ^^^^^^ +>3 : 3 +> : ^ +>(-temp++) ** 2 : number +> : ^^^^^^ +>(-temp++) : number +> : ^^^^^^ +>-temp++ : number +> : ^^^^^^ +>temp++ : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>2 : 2 +> : ^ + +3 ** (-temp--) ** 2; +>3 ** (-temp--) ** 2 : number +> : ^^^^^^ +>3 : 3 +> : ^ +>(-temp--) ** 2 : number +> : ^^^^^^ +>(-temp--) : number +> : ^^^^^^ +>-temp-- : number +> : ^^^^^^ +>temp-- : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>2 : 2 +> : ^ + +3 ** (+temp++) ** 2; +>3 ** (+temp++) ** 2 : number +> : ^^^^^^ +>3 : 3 +> : ^ +>(+temp++) ** 2 : number +> : ^^^^^^ +>(+temp++) : number +> : ^^^^^^ +>+temp++ : number +> : ^^^^^^ +>temp++ : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>2 : 2 +> : ^ + +3 ** (+temp--) ** 2; +>3 ** (+temp--) ** 2 : number +> : ^^^^^^ +>3 : 3 +> : ^ +>(+temp--) ** 2 : number +> : ^^^^^^ +>(+temp--) : number +> : ^^^^^^ +>+temp-- : number +> : ^^^^^^ +>temp-- : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>2 : 2 +> : ^ + +3 ** (-++temp) ** 2; +>3 ** (-++temp) ** 2 : number +> : ^^^^^^ +>3 : 3 +> : ^ +>(-++temp) ** 2 : number +> : ^^^^^^ +>(-++temp) : number +> : ^^^^^^ +>-++temp : number +> : ^^^^^^ +>++temp : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>2 : 2 +> : ^ + +3 ** (+--temp) ** 2; +>3 ** (+--temp) ** 2 : number +> : ^^^^^^ +>3 : 3 +> : ^ +>(+--temp) ** 2 : number +> : ^^^^^^ +>(+--temp) : number +> : ^^^^^^ +>+--temp : number +> : ^^^^^^ +>--temp : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>2 : 2 +> : ^ + diff --git a/tests/baselines/reference/emitExponentiationOperator4.errors.txt b/tests/baselines/reference/emitExponentiationOperator4(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/emitExponentiationOperator4.errors.txt rename to tests/baselines/reference/emitExponentiationOperator4(target=es2015).errors.txt diff --git a/tests/baselines/reference/emitExponentiationOperator4.js b/tests/baselines/reference/emitExponentiationOperator4(target=es2015).js similarity index 100% rename from tests/baselines/reference/emitExponentiationOperator4.js rename to tests/baselines/reference/emitExponentiationOperator4(target=es2015).js diff --git a/tests/baselines/reference/emitExponentiationOperator4.symbols b/tests/baselines/reference/emitExponentiationOperator4(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/emitExponentiationOperator4.symbols rename to tests/baselines/reference/emitExponentiationOperator4(target=es2015).symbols diff --git a/tests/baselines/reference/emitExponentiationOperator4.types b/tests/baselines/reference/emitExponentiationOperator4(target=es2015).types similarity index 100% rename from tests/baselines/reference/emitExponentiationOperator4.types rename to tests/baselines/reference/emitExponentiationOperator4(target=es2015).types diff --git a/tests/baselines/reference/emitExponentiationOperator4(target=es5).errors.txt b/tests/baselines/reference/emitExponentiationOperator4(target=es5).errors.txt new file mode 100644 index 0000000000000..445e4f01637b7 --- /dev/null +++ b/tests/baselines/reference/emitExponentiationOperator4(target=es5).errors.txt @@ -0,0 +1,70 @@ +emitExponentiationOperator4.ts(14,1): error TS2532: Object is possibly 'undefined'. +emitExponentiationOperator4.ts(15,1): error TS2532: Object is possibly 'undefined'. +emitExponentiationOperator4.ts(16,1): error TS2532: Object is possibly 'undefined'. +emitExponentiationOperator4.ts(17,1): error TS2532: Object is possibly 'undefined'. +emitExponentiationOperator4.ts(18,1): error TS2532: Object is possibly 'undefined'. +emitExponentiationOperator4.ts(21,6): error TS2532: Object is possibly 'undefined'. +emitExponentiationOperator4.ts(22,6): error TS2532: Object is possibly 'undefined'. +emitExponentiationOperator4.ts(23,6): error TS2532: Object is possibly 'undefined'. +emitExponentiationOperator4.ts(24,6): error TS2532: Object is possibly 'undefined'. +emitExponentiationOperator4.ts(25,6): error TS2532: Object is possibly 'undefined'. + + +==== emitExponentiationOperator4.ts (10 errors) ==== + var temp: any; + + (temp) ** 3; + (--temp) ** 3; + (++temp) ** 3; + (temp--) ** 3; + (temp++) ** 3; + + 1 ** (--temp) ** 3; + 1 ** (++temp) ** 3; + 1 ** (temp--) ** 3; + 1 ** (temp++) ** 3; + + (void --temp) ** 3; + ~~~~~~~~~~~~~ +!!! error TS2532: Object is possibly 'undefined'. + (void temp--) ** 3; + ~~~~~~~~~~~~~ +!!! error TS2532: Object is possibly 'undefined'. + (void 3) ** 4; + ~~~~~~~~ +!!! error TS2532: Object is possibly 'undefined'. + (void temp++) ** 4; + ~~~~~~~~~~~~~ +!!! error TS2532: Object is possibly 'undefined'. + (void temp--) ** 4; + ~~~~~~~~~~~~~ +!!! error TS2532: Object is possibly 'undefined'. + + + 1 ** (void --temp) ** 3; + ~~~~~~~~~~~~~ +!!! error TS2532: Object is possibly 'undefined'. + 1 ** (void temp--) ** 3; + ~~~~~~~~~~~~~ +!!! error TS2532: Object is possibly 'undefined'. + 1 ** (void 3) ** 4; + ~~~~~~~~ +!!! error TS2532: Object is possibly 'undefined'. + 1 ** (void temp++) ** 4; + ~~~~~~~~~~~~~ +!!! error TS2532: Object is possibly 'undefined'. + 1 ** (void temp--) ** 4; + ~~~~~~~~~~~~~ +!!! error TS2532: Object is possibly 'undefined'. + + (~ --temp) ** 3; + (~ temp--) ** 3; + (~ 3) ** 4; + (~ temp++) ** 4; + (~ temp--) ** 4; + + 1 ** (~ --temp) ** 3; + 1 ** (~ temp--) ** 3; + 1 ** (~ 3) ** 4; + 1 ** (~ temp++) ** 4; + 1 ** (~ temp--) ** 4; \ No newline at end of file diff --git a/tests/baselines/reference/emitExponentiationOperator4(target=es5).js b/tests/baselines/reference/emitExponentiationOperator4(target=es5).js new file mode 100644 index 0000000000000..89e1b81d04dbd --- /dev/null +++ b/tests/baselines/reference/emitExponentiationOperator4(target=es5).js @@ -0,0 +1,72 @@ +//// [tests/cases/conformance/es7/exponentiationOperator/emitExponentiationOperator4.ts] //// + +//// [emitExponentiationOperator4.ts] +var temp: any; + +(temp) ** 3; +(--temp) ** 3; +(++temp) ** 3; +(temp--) ** 3; +(temp++) ** 3; + +1 ** (--temp) ** 3; +1 ** (++temp) ** 3; +1 ** (temp--) ** 3; +1 ** (temp++) ** 3; + +(void --temp) ** 3; +(void temp--) ** 3; +(void 3) ** 4; +(void temp++) ** 4; +(void temp--) ** 4; + + +1 ** (void --temp) ** 3; +1 ** (void temp--) ** 3; +1 ** (void 3) ** 4; +1 ** (void temp++) ** 4; +1 ** (void temp--) ** 4; + +(~ --temp) ** 3; +(~ temp--) ** 3; +(~ 3) ** 4; +(~ temp++) ** 4; +(~ temp--) ** 4; + +1 ** (~ --temp) ** 3; +1 ** (~ temp--) ** 3; +1 ** (~ 3) ** 4; +1 ** (~ temp++) ** 4; +1 ** (~ temp--) ** 4; + +//// [emitExponentiationOperator4.js] +var temp; +Math.pow(temp, 3); +Math.pow(--temp, 3); +Math.pow(++temp, 3); +Math.pow(temp--, 3); +Math.pow(temp++, 3); +Math.pow(1, Math.pow(--temp, 3)); +Math.pow(1, Math.pow(++temp, 3)); +Math.pow(1, Math.pow(temp--, 3)); +Math.pow(1, Math.pow(temp++, 3)); +Math.pow((void --temp), 3); +Math.pow((void temp--), 3); +Math.pow((void 3), 4); +Math.pow((void temp++), 4); +Math.pow((void temp--), 4); +Math.pow(1, Math.pow((void --temp), 3)); +Math.pow(1, Math.pow((void temp--), 3)); +Math.pow(1, Math.pow((void 3), 4)); +Math.pow(1, Math.pow((void temp++), 4)); +Math.pow(1, Math.pow((void temp--), 4)); +Math.pow((~--temp), 3); +Math.pow((~temp--), 3); +Math.pow((~3), 4); +Math.pow((~temp++), 4); +Math.pow((~temp--), 4); +Math.pow(1, Math.pow((~--temp), 3)); +Math.pow(1, Math.pow((~temp--), 3)); +Math.pow(1, Math.pow((~3), 4)); +Math.pow(1, Math.pow((~temp++), 4)); +Math.pow(1, Math.pow((~temp--), 4)); diff --git a/tests/baselines/reference/emitExponentiationOperator4(target=es5).symbols b/tests/baselines/reference/emitExponentiationOperator4(target=es5).symbols new file mode 100644 index 0000000000000..cc0915a34144e --- /dev/null +++ b/tests/baselines/reference/emitExponentiationOperator4(target=es5).symbols @@ -0,0 +1,86 @@ +//// [tests/cases/conformance/es7/exponentiationOperator/emitExponentiationOperator4.ts] //// + +=== emitExponentiationOperator4.ts === +var temp: any; +>temp : Symbol(temp, Decl(emitExponentiationOperator4.ts, 0, 3)) + +(temp) ** 3; +>temp : Symbol(temp, Decl(emitExponentiationOperator4.ts, 0, 3)) + +(--temp) ** 3; +>temp : Symbol(temp, Decl(emitExponentiationOperator4.ts, 0, 3)) + +(++temp) ** 3; +>temp : Symbol(temp, Decl(emitExponentiationOperator4.ts, 0, 3)) + +(temp--) ** 3; +>temp : Symbol(temp, Decl(emitExponentiationOperator4.ts, 0, 3)) + +(temp++) ** 3; +>temp : Symbol(temp, Decl(emitExponentiationOperator4.ts, 0, 3)) + +1 ** (--temp) ** 3; +>temp : Symbol(temp, Decl(emitExponentiationOperator4.ts, 0, 3)) + +1 ** (++temp) ** 3; +>temp : Symbol(temp, Decl(emitExponentiationOperator4.ts, 0, 3)) + +1 ** (temp--) ** 3; +>temp : Symbol(temp, Decl(emitExponentiationOperator4.ts, 0, 3)) + +1 ** (temp++) ** 3; +>temp : Symbol(temp, Decl(emitExponentiationOperator4.ts, 0, 3)) + +(void --temp) ** 3; +>temp : Symbol(temp, Decl(emitExponentiationOperator4.ts, 0, 3)) + +(void temp--) ** 3; +>temp : Symbol(temp, Decl(emitExponentiationOperator4.ts, 0, 3)) + +(void 3) ** 4; +(void temp++) ** 4; +>temp : Symbol(temp, Decl(emitExponentiationOperator4.ts, 0, 3)) + +(void temp--) ** 4; +>temp : Symbol(temp, Decl(emitExponentiationOperator4.ts, 0, 3)) + + +1 ** (void --temp) ** 3; +>temp : Symbol(temp, Decl(emitExponentiationOperator4.ts, 0, 3)) + +1 ** (void temp--) ** 3; +>temp : Symbol(temp, Decl(emitExponentiationOperator4.ts, 0, 3)) + +1 ** (void 3) ** 4; +1 ** (void temp++) ** 4; +>temp : Symbol(temp, Decl(emitExponentiationOperator4.ts, 0, 3)) + +1 ** (void temp--) ** 4; +>temp : Symbol(temp, Decl(emitExponentiationOperator4.ts, 0, 3)) + +(~ --temp) ** 3; +>temp : Symbol(temp, Decl(emitExponentiationOperator4.ts, 0, 3)) + +(~ temp--) ** 3; +>temp : Symbol(temp, Decl(emitExponentiationOperator4.ts, 0, 3)) + +(~ 3) ** 4; +(~ temp++) ** 4; +>temp : Symbol(temp, Decl(emitExponentiationOperator4.ts, 0, 3)) + +(~ temp--) ** 4; +>temp : Symbol(temp, Decl(emitExponentiationOperator4.ts, 0, 3)) + +1 ** (~ --temp) ** 3; +>temp : Symbol(temp, Decl(emitExponentiationOperator4.ts, 0, 3)) + +1 ** (~ temp--) ** 3; +>temp : Symbol(temp, Decl(emitExponentiationOperator4.ts, 0, 3)) + +1 ** (~ 3) ** 4; +1 ** (~ temp++) ** 4; +>temp : Symbol(temp, Decl(emitExponentiationOperator4.ts, 0, 3)) + +1 ** (~ temp--) ** 4; +>temp : Symbol(temp, Decl(emitExponentiationOperator4.ts, 0, 3)) + diff --git a/tests/baselines/reference/emitExponentiationOperator4(target=es5).types b/tests/baselines/reference/emitExponentiationOperator4(target=es5).types new file mode 100644 index 0000000000000..513499383d8bc --- /dev/null +++ b/tests/baselines/reference/emitExponentiationOperator4(target=es5).types @@ -0,0 +1,460 @@ +//// [tests/cases/conformance/es7/exponentiationOperator/emitExponentiationOperator4.ts] //// + +=== emitExponentiationOperator4.ts === +var temp: any; +>temp : any +> : ^^^ + +(temp) ** 3; +>(temp) ** 3 : number +> : ^^^^^^ +>(temp) : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>temp : any +> : ^^^ +>3 : 3 +> : ^ + +(--temp) ** 3; +>(--temp) ** 3 : number +> : ^^^^^^ +>(--temp) : number +> : ^^^^^^ +>--temp : number +> : ^^^^^^ +>--temp : number +> : ^^^^^^ +>temp : any +> : ^^^ +>3 : 3 +> : ^ + +(++temp) ** 3; +>(++temp) ** 3 : number +> : ^^^^^^ +>(++temp) : number +> : ^^^^^^ +>++temp : number +> : ^^^^^^ +>++temp : number +> : ^^^^^^ +>temp : any +> : ^^^ +>3 : 3 +> : ^ + +(temp--) ** 3; +>(temp--) ** 3 : number +> : ^^^^^^ +>(temp--) : number +> : ^^^^^^ +>temp-- : number +> : ^^^^^^ +>temp-- : number +> : ^^^^^^ +>temp : any +> : ^^^ +>3 : 3 +> : ^ + +(temp++) ** 3; +>(temp++) ** 3 : number +> : ^^^^^^ +>(temp++) : number +> : ^^^^^^ +>temp++ : number +> : ^^^^^^ +>temp++ : number +> : ^^^^^^ +>temp : any +> : ^^^ +>3 : 3 +> : ^ + +1 ** (--temp) ** 3; +>1 ** (--temp) ** 3 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>(--temp) ** 3 : number +> : ^^^^^^ +>(--temp) : number +> : ^^^^^^ +>--temp : number +> : ^^^^^^ +>--temp : number +> : ^^^^^^ +>temp : any +> : ^^^ +>3 : 3 +> : ^ + +1 ** (++temp) ** 3; +>1 ** (++temp) ** 3 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>(++temp) ** 3 : number +> : ^^^^^^ +>(++temp) : number +> : ^^^^^^ +>++temp : number +> : ^^^^^^ +>++temp : number +> : ^^^^^^ +>temp : any +> : ^^^ +>3 : 3 +> : ^ + +1 ** (temp--) ** 3; +>1 ** (temp--) ** 3 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>(temp--) ** 3 : number +> : ^^^^^^ +>(temp--) : number +> : ^^^^^^ +>temp-- : number +> : ^^^^^^ +>temp-- : number +> : ^^^^^^ +>temp : any +> : ^^^ +>3 : 3 +> : ^ + +1 ** (temp++) ** 3; +>1 ** (temp++) ** 3 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>(temp++) ** 3 : number +> : ^^^^^^ +>(temp++) : number +> : ^^^^^^ +>temp++ : number +> : ^^^^^^ +>temp++ : number +> : ^^^^^^ +>temp : any +> : ^^^ +>3 : 3 +> : ^ + +(void --temp) ** 3; +>(void --temp) ** 3 : number +> : ^^^^^^ +>(void --temp) : undefined +> : ^^^^^^^^^ +>void --temp : undefined +> : ^^^^^^^^^ +>--temp : number +> : ^^^^^^ +>temp : any +> : ^^^ +>3 : 3 +> : ^ + +(void temp--) ** 3; +>(void temp--) ** 3 : number +> : ^^^^^^ +>(void temp--) : undefined +> : ^^^^^^^^^ +>void temp-- : undefined +> : ^^^^^^^^^ +>temp-- : number +> : ^^^^^^ +>temp : any +> : ^^^ +>3 : 3 +> : ^ + +(void 3) ** 4; +>(void 3) ** 4 : number +> : ^^^^^^ +>(void 3) : undefined +> : ^^^^^^^^^ +>void 3 : undefined +> : ^^^^^^^^^ +>3 : 3 +> : ^ +>4 : 4 +> : ^ + +(void temp++) ** 4; +>(void temp++) ** 4 : number +> : ^^^^^^ +>(void temp++) : undefined +> : ^^^^^^^^^ +>void temp++ : undefined +> : ^^^^^^^^^ +>temp++ : number +> : ^^^^^^ +>temp : any +> : ^^^ +>4 : 4 +> : ^ + +(void temp--) ** 4; +>(void temp--) ** 4 : number +> : ^^^^^^ +>(void temp--) : undefined +> : ^^^^^^^^^ +>void temp-- : undefined +> : ^^^^^^^^^ +>temp-- : number +> : ^^^^^^ +>temp : any +> : ^^^ +>4 : 4 +> : ^ + + +1 ** (void --temp) ** 3; +>1 ** (void --temp) ** 3 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>(void --temp) ** 3 : number +> : ^^^^^^ +>(void --temp) : undefined +> : ^^^^^^^^^ +>void --temp : undefined +> : ^^^^^^^^^ +>--temp : number +> : ^^^^^^ +>temp : any +> : ^^^ +>3 : 3 +> : ^ + +1 ** (void temp--) ** 3; +>1 ** (void temp--) ** 3 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>(void temp--) ** 3 : number +> : ^^^^^^ +>(void temp--) : undefined +> : ^^^^^^^^^ +>void temp-- : undefined +> : ^^^^^^^^^ +>temp-- : number +> : ^^^^^^ +>temp : any +> : ^^^ +>3 : 3 +> : ^ + +1 ** (void 3) ** 4; +>1 ** (void 3) ** 4 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>(void 3) ** 4 : number +> : ^^^^^^ +>(void 3) : undefined +> : ^^^^^^^^^ +>void 3 : undefined +> : ^^^^^^^^^ +>3 : 3 +> : ^ +>4 : 4 +> : ^ + +1 ** (void temp++) ** 4; +>1 ** (void temp++) ** 4 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>(void temp++) ** 4 : number +> : ^^^^^^ +>(void temp++) : undefined +> : ^^^^^^^^^ +>void temp++ : undefined +> : ^^^^^^^^^ +>temp++ : number +> : ^^^^^^ +>temp : any +> : ^^^ +>4 : 4 +> : ^ + +1 ** (void temp--) ** 4; +>1 ** (void temp--) ** 4 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>(void temp--) ** 4 : number +> : ^^^^^^ +>(void temp--) : undefined +> : ^^^^^^^^^ +>void temp-- : undefined +> : ^^^^^^^^^ +>temp-- : number +> : ^^^^^^ +>temp : any +> : ^^^ +>4 : 4 +> : ^ + +(~ --temp) ** 3; +>(~ --temp) ** 3 : number +> : ^^^^^^ +>(~ --temp) : number +> : ^^^^^^ +>~ --temp : number +> : ^^^^^^ +>--temp : number +> : ^^^^^^ +>temp : any +> : ^^^ +>3 : 3 +> : ^ + +(~ temp--) ** 3; +>(~ temp--) ** 3 : number +> : ^^^^^^ +>(~ temp--) : number +> : ^^^^^^ +>~ temp-- : number +> : ^^^^^^ +>temp-- : number +> : ^^^^^^ +>temp : any +> : ^^^ +>3 : 3 +> : ^ + +(~ 3) ** 4; +>(~ 3) ** 4 : number +> : ^^^^^^ +>(~ 3) : number +> : ^^^^^^ +>~ 3 : number +> : ^^^^^^ +>3 : 3 +> : ^ +>4 : 4 +> : ^ + +(~ temp++) ** 4; +>(~ temp++) ** 4 : number +> : ^^^^^^ +>(~ temp++) : number +> : ^^^^^^ +>~ temp++ : number +> : ^^^^^^ +>temp++ : number +> : ^^^^^^ +>temp : any +> : ^^^ +>4 : 4 +> : ^ + +(~ temp--) ** 4; +>(~ temp--) ** 4 : number +> : ^^^^^^ +>(~ temp--) : number +> : ^^^^^^ +>~ temp-- : number +> : ^^^^^^ +>temp-- : number +> : ^^^^^^ +>temp : any +> : ^^^ +>4 : 4 +> : ^ + +1 ** (~ --temp) ** 3; +>1 ** (~ --temp) ** 3 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>(~ --temp) ** 3 : number +> : ^^^^^^ +>(~ --temp) : number +> : ^^^^^^ +>~ --temp : number +> : ^^^^^^ +>--temp : number +> : ^^^^^^ +>temp : any +> : ^^^ +>3 : 3 +> : ^ + +1 ** (~ temp--) ** 3; +>1 ** (~ temp--) ** 3 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>(~ temp--) ** 3 : number +> : ^^^^^^ +>(~ temp--) : number +> : ^^^^^^ +>~ temp-- : number +> : ^^^^^^ +>temp-- : number +> : ^^^^^^ +>temp : any +> : ^^^ +>3 : 3 +> : ^ + +1 ** (~ 3) ** 4; +>1 ** (~ 3) ** 4 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>(~ 3) ** 4 : number +> : ^^^^^^ +>(~ 3) : number +> : ^^^^^^ +>~ 3 : number +> : ^^^^^^ +>3 : 3 +> : ^ +>4 : 4 +> : ^ + +1 ** (~ temp++) ** 4; +>1 ** (~ temp++) ** 4 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>(~ temp++) ** 4 : number +> : ^^^^^^ +>(~ temp++) : number +> : ^^^^^^ +>~ temp++ : number +> : ^^^^^^ +>temp++ : number +> : ^^^^^^ +>temp : any +> : ^^^ +>4 : 4 +> : ^ + +1 ** (~ temp--) ** 4; +>1 ** (~ temp--) ** 4 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>(~ temp--) ** 4 : number +> : ^^^^^^ +>(~ temp--) : number +> : ^^^^^^ +>~ temp-- : number +> : ^^^^^^ +>temp-- : number +> : ^^^^^^ +>temp : any +> : ^^^ +>4 : 4 +> : ^ + diff --git a/tests/baselines/reference/emitExponentiationOperatorInTempalteString4(target=es2015).js b/tests/baselines/reference/emitExponentiationOperatorInTempalteString4(target=es2015).js new file mode 100644 index 0000000000000..1c927528a12a4 --- /dev/null +++ b/tests/baselines/reference/emitExponentiationOperatorInTempalteString4(target=es2015).js @@ -0,0 +1,54 @@ +//// [tests/cases/conformance/es7/exponentiationOperator/emitExponentiationOperatorInTempalteString4.ts] //// + +//// [emitExponentiationOperatorInTempalteString4.ts] +var t1 = 10; +var t2 = 10; +var s; + +// With TemplateTail +`${t1 ** -t2} world`; +`${(-t1) ** t2 - t1} world`; +`${(-++t1) ** t2 - t1} world`; +`${(-t1++) ** t2 - t1} world`; +`${(~t1) ** t2 ** --t1 } world`; +`${typeof (t1 ** t2 ** t1) } world`; + +// TempateHead & TemplateTail are empt +`${t1 ** -t2} hello world ${t1 ** -t2}`; +`${(-t1) ** t2 - t1} hello world ${(-t1) ** t2 - t1}`; +`${(-++t1) ** t2 - t1} hello world ${t1 ** (-++t1) **- t1}`; +`${(-t1++) ** t2 - t1} hello world ${t2 ** (-t1++) ** - t1}`; +`${(~t1) ** t2 ** --t1 } hello world ${(~t1) ** t2 ** --t1 }`; +`${typeof (t1 ** t2 ** t1)} hello world ${typeof (t1 ** t2 ** t1)}`; + +// With templateHead +`hello ${(-t1) ** t2 - t1}`; +`hello ${(-++t1) ** t2 - t1}`; +`hello ${(-t1++) ** t2 - t1}`; +`hello ${(~t1) ** t2 ** --t1 }`; +`hello ${typeof (t1 ** t2 ** t1)}`; + +//// [emitExponentiationOperatorInTempalteString4.js] +var t1 = 10; +var t2 = 10; +var s; +// With TemplateTail +`${Math.pow(t1, -t2)} world`; +`${Math.pow((-t1), t2) - t1} world`; +`${Math.pow((-++t1), t2) - t1} world`; +`${Math.pow((-t1++), t2) - t1} world`; +`${Math.pow((~t1), Math.pow(t2, --t1))} world`; +`${typeof (Math.pow(t1, Math.pow(t2, t1)))} world`; +// TempateHead & TemplateTail are empt +`${Math.pow(t1, -t2)} hello world ${Math.pow(t1, -t2)}`; +`${Math.pow((-t1), t2) - t1} hello world ${Math.pow((-t1), t2) - t1}`; +`${Math.pow((-++t1), t2) - t1} hello world ${Math.pow(t1, Math.pow((-++t1), -t1))}`; +`${Math.pow((-t1++), t2) - t1} hello world ${Math.pow(t2, Math.pow((-t1++), -t1))}`; +`${Math.pow((~t1), Math.pow(t2, --t1))} hello world ${Math.pow((~t1), Math.pow(t2, --t1))}`; +`${typeof (Math.pow(t1, Math.pow(t2, t1)))} hello world ${typeof (Math.pow(t1, Math.pow(t2, t1)))}`; +// With templateHead +`hello ${Math.pow((-t1), t2) - t1}`; +`hello ${Math.pow((-++t1), t2) - t1}`; +`hello ${Math.pow((-t1++), t2) - t1}`; +`hello ${Math.pow((~t1), Math.pow(t2, --t1))}`; +`hello ${typeof (Math.pow(t1, Math.pow(t2, t1)))}`; diff --git a/tests/baselines/reference/emitExponentiationOperatorInTempalteString4.symbols b/tests/baselines/reference/emitExponentiationOperatorInTempalteString4(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/emitExponentiationOperatorInTempalteString4.symbols rename to tests/baselines/reference/emitExponentiationOperatorInTempalteString4(target=es2015).symbols diff --git a/tests/baselines/reference/emitExponentiationOperatorInTempalteString4.types b/tests/baselines/reference/emitExponentiationOperatorInTempalteString4(target=es2015).types similarity index 100% rename from tests/baselines/reference/emitExponentiationOperatorInTempalteString4.types rename to tests/baselines/reference/emitExponentiationOperatorInTempalteString4(target=es2015).types diff --git a/tests/baselines/reference/emitExponentiationOperatorInTempalteString4.js b/tests/baselines/reference/emitExponentiationOperatorInTempalteString4(target=es5).js similarity index 100% rename from tests/baselines/reference/emitExponentiationOperatorInTempalteString4.js rename to tests/baselines/reference/emitExponentiationOperatorInTempalteString4(target=es5).js diff --git a/tests/baselines/reference/emitExponentiationOperatorInTempalteString4(target=es5).symbols b/tests/baselines/reference/emitExponentiationOperatorInTempalteString4(target=es5).symbols new file mode 100644 index 0000000000000..ce18835068338 --- /dev/null +++ b/tests/baselines/reference/emitExponentiationOperatorInTempalteString4(target=es5).symbols @@ -0,0 +1,115 @@ +//// [tests/cases/conformance/es7/exponentiationOperator/emitExponentiationOperatorInTempalteString4.ts] //// + +=== emitExponentiationOperatorInTempalteString4.ts === +var t1 = 10; +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4.ts, 0, 3)) + +var t2 = 10; +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTempalteString4.ts, 1, 3)) + +var s; +>s : Symbol(s, Decl(emitExponentiationOperatorInTempalteString4.ts, 2, 3)) + +// With TemplateTail +`${t1 ** -t2} world`; +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTempalteString4.ts, 1, 3)) + +`${(-t1) ** t2 - t1} world`; +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTempalteString4.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4.ts, 0, 3)) + +`${(-++t1) ** t2 - t1} world`; +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTempalteString4.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4.ts, 0, 3)) + +`${(-t1++) ** t2 - t1} world`; +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTempalteString4.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4.ts, 0, 3)) + +`${(~t1) ** t2 ** --t1 } world`; +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTempalteString4.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4.ts, 0, 3)) + +`${typeof (t1 ** t2 ** t1) } world`; +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTempalteString4.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4.ts, 0, 3)) + +// TempateHead & TemplateTail are empt +`${t1 ** -t2} hello world ${t1 ** -t2}`; +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTempalteString4.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTempalteString4.ts, 1, 3)) + +`${(-t1) ** t2 - t1} hello world ${(-t1) ** t2 - t1}`; +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTempalteString4.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4.ts, 0, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTempalteString4.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4.ts, 0, 3)) + +`${(-++t1) ** t2 - t1} hello world ${t1 ** (-++t1) **- t1}`; +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTempalteString4.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4.ts, 0, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4.ts, 0, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4.ts, 0, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4.ts, 0, 3)) + +`${(-t1++) ** t2 - t1} hello world ${t2 ** (-t1++) ** - t1}`; +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTempalteString4.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTempalteString4.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4.ts, 0, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4.ts, 0, 3)) + +`${(~t1) ** t2 ** --t1 } hello world ${(~t1) ** t2 ** --t1 }`; +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTempalteString4.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4.ts, 0, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTempalteString4.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4.ts, 0, 3)) + +`${typeof (t1 ** t2 ** t1)} hello world ${typeof (t1 ** t2 ** t1)}`; +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTempalteString4.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4.ts, 0, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTempalteString4.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4.ts, 0, 3)) + +// With templateHead +`hello ${(-t1) ** t2 - t1}`; +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTempalteString4.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4.ts, 0, 3)) + +`hello ${(-++t1) ** t2 - t1}`; +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTempalteString4.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4.ts, 0, 3)) + +`hello ${(-t1++) ** t2 - t1}`; +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTempalteString4.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4.ts, 0, 3)) + +`hello ${(~t1) ** t2 ** --t1 }`; +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTempalteString4.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4.ts, 0, 3)) + +`hello ${typeof (t1 ** t2 ** t1)}`; +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTempalteString4.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTempalteString4.ts, 0, 3)) + diff --git a/tests/baselines/reference/emitExponentiationOperatorInTempalteString4(target=es5).types b/tests/baselines/reference/emitExponentiationOperatorInTempalteString4(target=es5).types new file mode 100644 index 0000000000000..185654b2bcf0d --- /dev/null +++ b/tests/baselines/reference/emitExponentiationOperatorInTempalteString4(target=es5).types @@ -0,0 +1,421 @@ +//// [tests/cases/conformance/es7/exponentiationOperator/emitExponentiationOperatorInTempalteString4.ts] //// + +=== emitExponentiationOperatorInTempalteString4.ts === +var t1 = 10; +>t1 : number +> : ^^^^^^ +>10 : 10 +> : ^^ + +var t2 = 10; +>t2 : number +> : ^^^^^^ +>10 : 10 +> : ^^ + +var s; +>s : any + +// With TemplateTail +`${t1 ** -t2} world`; +>`${t1 ** -t2} world` : string +> : ^^^^^^ +>t1 ** -t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>-t2 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ + +`${(-t1) ** t2 - t1} world`; +>`${(-t1) ** t2 - t1} world` : string +> : ^^^^^^ +>(-t1) ** t2 - t1 : number +> : ^^^^^^ +>(-t1) ** t2 : number +> : ^^^^^^ +>(-t1) : number +> : ^^^^^^ +>-t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`${(-++t1) ** t2 - t1} world`; +>`${(-++t1) ** t2 - t1} world` : string +> : ^^^^^^ +>(-++t1) ** t2 - t1 : number +> : ^^^^^^ +>(-++t1) ** t2 : number +> : ^^^^^^ +>(-++t1) : number +> : ^^^^^^ +>-++t1 : number +> : ^^^^^^ +>++t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`${(-t1++) ** t2 - t1} world`; +>`${(-t1++) ** t2 - t1} world` : string +> : ^^^^^^ +>(-t1++) ** t2 - t1 : number +> : ^^^^^^ +>(-t1++) ** t2 : number +> : ^^^^^^ +>(-t1++) : number +> : ^^^^^^ +>-t1++ : number +> : ^^^^^^ +>t1++ : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`${(~t1) ** t2 ** --t1 } world`; +>`${(~t1) ** t2 ** --t1 } world` : string +> : ^^^^^^ +>(~t1) ** t2 ** --t1 : number +> : ^^^^^^ +>(~t1) : number +> : ^^^^^^ +>~t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** --t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>--t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`${typeof (t1 ** t2 ** t1) } world`; +>`${typeof (t1 ** t2 ** t1) } world` : string +> : ^^^^^^ +>typeof (t1 ** t2 ** t1) : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>(t1 ** t2 ** t1) : number +> : ^^^^^^ +>t1 ** t2 ** t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +// TempateHead & TemplateTail are empt +`${t1 ** -t2} hello world ${t1 ** -t2}`; +>`${t1 ** -t2} hello world ${t1 ** -t2}` : string +> : ^^^^^^ +>t1 ** -t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>-t2 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 ** -t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>-t2 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ + +`${(-t1) ** t2 - t1} hello world ${(-t1) ** t2 - t1}`; +>`${(-t1) ** t2 - t1} hello world ${(-t1) ** t2 - t1}` : string +> : ^^^^^^ +>(-t1) ** t2 - t1 : number +> : ^^^^^^ +>(-t1) ** t2 : number +> : ^^^^^^ +>(-t1) : number +> : ^^^^^^ +>-t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>(-t1) ** t2 - t1 : number +> : ^^^^^^ +>(-t1) ** t2 : number +> : ^^^^^^ +>(-t1) : number +> : ^^^^^^ +>-t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`${(-++t1) ** t2 - t1} hello world ${t1 ** (-++t1) **- t1}`; +>`${(-++t1) ** t2 - t1} hello world ${t1 ** (-++t1) **- t1}` : string +> : ^^^^^^ +>(-++t1) ** t2 - t1 : number +> : ^^^^^^ +>(-++t1) ** t2 : number +> : ^^^^^^ +>(-++t1) : number +> : ^^^^^^ +>-++t1 : number +> : ^^^^^^ +>++t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t1 ** (-++t1) **- t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>(-++t1) **- t1 : number +> : ^^^^^^ +>(-++t1) : number +> : ^^^^^^ +>-++t1 : number +> : ^^^^^^ +>++t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>- t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`${(-t1++) ** t2 - t1} hello world ${t2 ** (-t1++) ** - t1}`; +>`${(-t1++) ** t2 - t1} hello world ${t2 ** (-t1++) ** - t1}` : string +> : ^^^^^^ +>(-t1++) ** t2 - t1 : number +> : ^^^^^^ +>(-t1++) ** t2 : number +> : ^^^^^^ +>(-t1++) : number +> : ^^^^^^ +>-t1++ : number +> : ^^^^^^ +>t1++ : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** (-t1++) ** - t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>(-t1++) ** - t1 : number +> : ^^^^^^ +>(-t1++) : number +> : ^^^^^^ +>-t1++ : number +> : ^^^^^^ +>t1++ : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>- t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`${(~t1) ** t2 ** --t1 } hello world ${(~t1) ** t2 ** --t1 }`; +>`${(~t1) ** t2 ** --t1 } hello world ${(~t1) ** t2 ** --t1 }` : string +> : ^^^^^^ +>(~t1) ** t2 ** --t1 : number +> : ^^^^^^ +>(~t1) : number +> : ^^^^^^ +>~t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** --t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>--t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>(~t1) ** t2 ** --t1 : number +> : ^^^^^^ +>(~t1) : number +> : ^^^^^^ +>~t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** --t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>--t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`${typeof (t1 ** t2 ** t1)} hello world ${typeof (t1 ** t2 ** t1)}`; +>`${typeof (t1 ** t2 ** t1)} hello world ${typeof (t1 ** t2 ** t1)}` : string +> : ^^^^^^ +>typeof (t1 ** t2 ** t1) : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>(t1 ** t2 ** t1) : number +> : ^^^^^^ +>t1 ** t2 ** t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>typeof (t1 ** t2 ** t1) : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>(t1 ** t2 ** t1) : number +> : ^^^^^^ +>t1 ** t2 ** t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +// With templateHead +`hello ${(-t1) ** t2 - t1}`; +>`hello ${(-t1) ** t2 - t1}` : string +> : ^^^^^^ +>(-t1) ** t2 - t1 : number +> : ^^^^^^ +>(-t1) ** t2 : number +> : ^^^^^^ +>(-t1) : number +> : ^^^^^^ +>-t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`hello ${(-++t1) ** t2 - t1}`; +>`hello ${(-++t1) ** t2 - t1}` : string +> : ^^^^^^ +>(-++t1) ** t2 - t1 : number +> : ^^^^^^ +>(-++t1) ** t2 : number +> : ^^^^^^ +>(-++t1) : number +> : ^^^^^^ +>-++t1 : number +> : ^^^^^^ +>++t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`hello ${(-t1++) ** t2 - t1}`; +>`hello ${(-t1++) ** t2 - t1}` : string +> : ^^^^^^ +>(-t1++) ** t2 - t1 : number +> : ^^^^^^ +>(-t1++) ** t2 : number +> : ^^^^^^ +>(-t1++) : number +> : ^^^^^^ +>-t1++ : number +> : ^^^^^^ +>t1++ : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`hello ${(~t1) ** t2 ** --t1 }`; +>`hello ${(~t1) ** t2 ** --t1 }` : string +> : ^^^^^^ +>(~t1) ** t2 ** --t1 : number +> : ^^^^^^ +>(~t1) : number +> : ^^^^^^ +>~t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** --t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>--t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`hello ${typeof (t1 ** t2 ** t1)}`; +>`hello ${typeof (t1 ** t2 ** t1)}` : string +> : ^^^^^^ +>typeof (t1 ** t2 ** t1) : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>(t1 ** t2 ** t1) : number +> : ^^^^^^ +>t1 ** t2 ** t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + diff --git a/tests/baselines/reference/emitExponentiationOperatorInTemplateString1(target=es2015).js b/tests/baselines/reference/emitExponentiationOperatorInTemplateString1(target=es2015).js new file mode 100644 index 0000000000000..1bfac8e63dd49 --- /dev/null +++ b/tests/baselines/reference/emitExponentiationOperatorInTemplateString1(target=es2015).js @@ -0,0 +1,54 @@ +//// [tests/cases/conformance/es7/exponentiationOperator/emitExponentiationOperatorInTemplateString1.ts] //// + +//// [emitExponentiationOperatorInTemplateString1.ts] +var t1 = 10; +var t2 = 10; +var s; + +// TempateHead & TemplateTail are empty +`${t1 ** t2}`; +`${t1 ** t2 ** t1}`; +`${t1 + t2 ** t1}`; +`${t1 ** t2 + t1}`; +`${t1 + t2 ** t2 + t1 }`; +`${typeof (t1 ** t2 ** t1) }`; +`${1 + typeof (t1 ** t2 ** t1) }`; + +`${t1 ** t2}${t1 ** t2}`; +`${t1 ** t2 ** t1}${t1 ** t2 ** t1}`; +`${t1 + t2 ** t1}${t1 + t2 ** t1}`; +`${t1 ** t2 + t1}${t1 ** t2 + t1}`; +`${t1 + t2 ** t2 + t1}${t1 + t2 ** t2 + t1}`; +`${typeof (t1 ** t2 ** t1)}${typeof (t1 ** t2 ** t1)}`; + +`${t1 ** t2} hello world ${t1 ** t2}`; +`${t1 ** t2 ** t1} hello world ${t1 ** t2 ** t1}`; +`${t1 + t2 ** t1} hello world ${t1 + t2 ** t1}`; +`${t1 ** t2 + t1} hello world ${t1 ** t2 + t1}`; +`${t1 + t2 ** t2 + t1} hello world ${t1 + t2 ** t2 + t1}`; +`${typeof (t1 ** t2 ** t1) } hello world ${typeof (t1 ** t2 ** t1) }`; + +//// [emitExponentiationOperatorInTemplateString1.js] +var t1 = 10; +var t2 = 10; +var s; +// TempateHead & TemplateTail are empty +`${Math.pow(t1, t2)}`; +`${Math.pow(t1, Math.pow(t2, t1))}`; +`${t1 + Math.pow(t2, t1)}`; +`${Math.pow(t1, t2) + t1}`; +`${t1 + Math.pow(t2, t2) + t1}`; +`${typeof (Math.pow(t1, Math.pow(t2, t1)))}`; +`${1 + typeof (Math.pow(t1, Math.pow(t2, t1)))}`; +`${Math.pow(t1, t2)}${Math.pow(t1, t2)}`; +`${Math.pow(t1, Math.pow(t2, t1))}${Math.pow(t1, Math.pow(t2, t1))}`; +`${t1 + Math.pow(t2, t1)}${t1 + Math.pow(t2, t1)}`; +`${Math.pow(t1, t2) + t1}${Math.pow(t1, t2) + t1}`; +`${t1 + Math.pow(t2, t2) + t1}${t1 + Math.pow(t2, t2) + t1}`; +`${typeof (Math.pow(t1, Math.pow(t2, t1)))}${typeof (Math.pow(t1, Math.pow(t2, t1)))}`; +`${Math.pow(t1, t2)} hello world ${Math.pow(t1, t2)}`; +`${Math.pow(t1, Math.pow(t2, t1))} hello world ${Math.pow(t1, Math.pow(t2, t1))}`; +`${t1 + Math.pow(t2, t1)} hello world ${t1 + Math.pow(t2, t1)}`; +`${Math.pow(t1, t2) + t1} hello world ${Math.pow(t1, t2) + t1}`; +`${t1 + Math.pow(t2, t2) + t1} hello world ${t1 + Math.pow(t2, t2) + t1}`; +`${typeof (Math.pow(t1, Math.pow(t2, t1)))} hello world ${typeof (Math.pow(t1, Math.pow(t2, t1)))}`; diff --git a/tests/baselines/reference/emitExponentiationOperatorInTemplateString1.symbols b/tests/baselines/reference/emitExponentiationOperatorInTemplateString1(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/emitExponentiationOperatorInTemplateString1.symbols rename to tests/baselines/reference/emitExponentiationOperatorInTemplateString1(target=es2015).symbols diff --git a/tests/baselines/reference/emitExponentiationOperatorInTemplateString1.types b/tests/baselines/reference/emitExponentiationOperatorInTemplateString1(target=es2015).types similarity index 100% rename from tests/baselines/reference/emitExponentiationOperatorInTemplateString1.types rename to tests/baselines/reference/emitExponentiationOperatorInTemplateString1(target=es2015).types diff --git a/tests/baselines/reference/emitExponentiationOperatorInTemplateString1.js b/tests/baselines/reference/emitExponentiationOperatorInTemplateString1(target=es5).js similarity index 100% rename from tests/baselines/reference/emitExponentiationOperatorInTemplateString1.js rename to tests/baselines/reference/emitExponentiationOperatorInTemplateString1(target=es5).js diff --git a/tests/baselines/reference/emitExponentiationOperatorInTemplateString1(target=es5).symbols b/tests/baselines/reference/emitExponentiationOperatorInTemplateString1(target=es5).symbols new file mode 100644 index 0000000000000..e96514b4df4be --- /dev/null +++ b/tests/baselines/reference/emitExponentiationOperatorInTemplateString1(target=es5).symbols @@ -0,0 +1,144 @@ +//// [tests/cases/conformance/es7/exponentiationOperator/emitExponentiationOperatorInTemplateString1.ts] //// + +=== emitExponentiationOperatorInTemplateString1.ts === +var t1 = 10; +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString1.ts, 0, 3)) + +var t2 = 10; +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString1.ts, 1, 3)) + +var s; +>s : Symbol(s, Decl(emitExponentiationOperatorInTemplateString1.ts, 2, 3)) + +// TempateHead & TemplateTail are empty +`${t1 ** t2}`; +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString1.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString1.ts, 1, 3)) + +`${t1 ** t2 ** t1}`; +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString1.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString1.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString1.ts, 0, 3)) + +`${t1 + t2 ** t1}`; +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString1.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString1.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString1.ts, 0, 3)) + +`${t1 ** t2 + t1}`; +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString1.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString1.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString1.ts, 0, 3)) + +`${t1 + t2 ** t2 + t1 }`; +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString1.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString1.ts, 1, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString1.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString1.ts, 0, 3)) + +`${typeof (t1 ** t2 ** t1) }`; +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString1.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString1.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString1.ts, 0, 3)) + +`${1 + typeof (t1 ** t2 ** t1) }`; +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString1.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString1.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString1.ts, 0, 3)) + +`${t1 ** t2}${t1 ** t2}`; +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString1.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString1.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString1.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString1.ts, 1, 3)) + +`${t1 ** t2 ** t1}${t1 ** t2 ** t1}`; +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString1.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString1.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString1.ts, 0, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString1.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString1.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString1.ts, 0, 3)) + +`${t1 + t2 ** t1}${t1 + t2 ** t1}`; +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString1.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString1.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString1.ts, 0, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString1.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString1.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString1.ts, 0, 3)) + +`${t1 ** t2 + t1}${t1 ** t2 + t1}`; +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString1.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString1.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString1.ts, 0, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString1.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString1.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString1.ts, 0, 3)) + +`${t1 + t2 ** t2 + t1}${t1 + t2 ** t2 + t1}`; +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString1.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString1.ts, 1, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString1.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString1.ts, 0, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString1.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString1.ts, 1, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString1.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString1.ts, 0, 3)) + +`${typeof (t1 ** t2 ** t1)}${typeof (t1 ** t2 ** t1)}`; +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString1.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString1.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString1.ts, 0, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString1.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString1.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString1.ts, 0, 3)) + +`${t1 ** t2} hello world ${t1 ** t2}`; +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString1.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString1.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString1.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString1.ts, 1, 3)) + +`${t1 ** t2 ** t1} hello world ${t1 ** t2 ** t1}`; +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString1.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString1.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString1.ts, 0, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString1.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString1.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString1.ts, 0, 3)) + +`${t1 + t2 ** t1} hello world ${t1 + t2 ** t1}`; +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString1.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString1.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString1.ts, 0, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString1.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString1.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString1.ts, 0, 3)) + +`${t1 ** t2 + t1} hello world ${t1 ** t2 + t1}`; +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString1.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString1.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString1.ts, 0, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString1.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString1.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString1.ts, 0, 3)) + +`${t1 + t2 ** t2 + t1} hello world ${t1 + t2 ** t2 + t1}`; +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString1.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString1.ts, 1, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString1.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString1.ts, 0, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString1.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString1.ts, 1, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString1.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString1.ts, 0, 3)) + +`${typeof (t1 ** t2 ** t1) } hello world ${typeof (t1 ** t2 ** t1) }`; +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString1.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString1.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString1.ts, 0, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString1.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString1.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString1.ts, 0, 3)) + diff --git a/tests/baselines/reference/emitExponentiationOperatorInTemplateString1(target=es5).types b/tests/baselines/reference/emitExponentiationOperatorInTemplateString1(target=es5).types new file mode 100644 index 0000000000000..53639a2bd03f0 --- /dev/null +++ b/tests/baselines/reference/emitExponentiationOperatorInTemplateString1(target=es5).types @@ -0,0 +1,433 @@ +//// [tests/cases/conformance/es7/exponentiationOperator/emitExponentiationOperatorInTemplateString1.ts] //// + +=== emitExponentiationOperatorInTemplateString1.ts === +var t1 = 10; +>t1 : number +> : ^^^^^^ +>10 : 10 +> : ^^ + +var t2 = 10; +>t2 : number +> : ^^^^^^ +>10 : 10 +> : ^^ + +var s; +>s : any + +// TempateHead & TemplateTail are empty +`${t1 ** t2}`; +>`${t1 ** t2}` : string +> : ^^^^^^ +>t1 ** t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ + +`${t1 ** t2 ** t1}`; +>`${t1 ** t2 ** t1}` : string +> : ^^^^^^ +>t1 ** t2 ** t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`${t1 + t2 ** t1}`; +>`${t1 + t2 ** t1}` : string +> : ^^^^^^ +>t1 + t2 ** t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`${t1 ** t2 + t1}`; +>`${t1 ** t2 + t1}` : string +> : ^^^^^^ +>t1 ** t2 + t1 : number +> : ^^^^^^ +>t1 ** t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`${t1 + t2 ** t2 + t1 }`; +>`${t1 + t2 ** t2 + t1 }` : string +> : ^^^^^^ +>t1 + t2 ** t2 + t1 : number +> : ^^^^^^ +>t1 + t2 ** t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t2 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`${typeof (t1 ** t2 ** t1) }`; +>`${typeof (t1 ** t2 ** t1) }` : string +> : ^^^^^^ +>typeof (t1 ** t2 ** t1) : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>(t1 ** t2 ** t1) : number +> : ^^^^^^ +>t1 ** t2 ** t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`${1 + typeof (t1 ** t2 ** t1) }`; +>`${1 + typeof (t1 ** t2 ** t1) }` : string +> : ^^^^^^ +>1 + typeof (t1 ** t2 ** t1) : string +> : ^^^^^^ +>1 : 1 +> : ^ +>typeof (t1 ** t2 ** t1) : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>(t1 ** t2 ** t1) : number +> : ^^^^^^ +>t1 ** t2 ** t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`${t1 ** t2}${t1 ** t2}`; +>`${t1 ** t2}${t1 ** t2}` : string +> : ^^^^^^ +>t1 ** t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 ** t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ + +`${t1 ** t2 ** t1}${t1 ** t2 ** t1}`; +>`${t1 ** t2 ** t1}${t1 ** t2 ** t1}` : string +> : ^^^^^^ +>t1 ** t2 ** t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t1 ** t2 ** t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`${t1 + t2 ** t1}${t1 + t2 ** t1}`; +>`${t1 + t2 ** t1}${t1 + t2 ** t1}` : string +> : ^^^^^^ +>t1 + t2 ** t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t1 + t2 ** t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`${t1 ** t2 + t1}${t1 ** t2 + t1}`; +>`${t1 ** t2 + t1}${t1 ** t2 + t1}` : string +> : ^^^^^^ +>t1 ** t2 + t1 : number +> : ^^^^^^ +>t1 ** t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t1 ** t2 + t1 : number +> : ^^^^^^ +>t1 ** t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`${t1 + t2 ** t2 + t1}${t1 + t2 ** t2 + t1}`; +>`${t1 + t2 ** t2 + t1}${t1 + t2 ** t2 + t1}` : string +> : ^^^^^^ +>t1 + t2 ** t2 + t1 : number +> : ^^^^^^ +>t1 + t2 ** t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t2 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t1 + t2 ** t2 + t1 : number +> : ^^^^^^ +>t1 + t2 ** t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t2 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`${typeof (t1 ** t2 ** t1)}${typeof (t1 ** t2 ** t1)}`; +>`${typeof (t1 ** t2 ** t1)}${typeof (t1 ** t2 ** t1)}` : string +> : ^^^^^^ +>typeof (t1 ** t2 ** t1) : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>(t1 ** t2 ** t1) : number +> : ^^^^^^ +>t1 ** t2 ** t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>typeof (t1 ** t2 ** t1) : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>(t1 ** t2 ** t1) : number +> : ^^^^^^ +>t1 ** t2 ** t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`${t1 ** t2} hello world ${t1 ** t2}`; +>`${t1 ** t2} hello world ${t1 ** t2}` : string +> : ^^^^^^ +>t1 ** t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 ** t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ + +`${t1 ** t2 ** t1} hello world ${t1 ** t2 ** t1}`; +>`${t1 ** t2 ** t1} hello world ${t1 ** t2 ** t1}` : string +> : ^^^^^^ +>t1 ** t2 ** t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t1 ** t2 ** t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`${t1 + t2 ** t1} hello world ${t1 + t2 ** t1}`; +>`${t1 + t2 ** t1} hello world ${t1 + t2 ** t1}` : string +> : ^^^^^^ +>t1 + t2 ** t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t1 + t2 ** t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`${t1 ** t2 + t1} hello world ${t1 ** t2 + t1}`; +>`${t1 ** t2 + t1} hello world ${t1 ** t2 + t1}` : string +> : ^^^^^^ +>t1 ** t2 + t1 : number +> : ^^^^^^ +>t1 ** t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t1 ** t2 + t1 : number +> : ^^^^^^ +>t1 ** t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`${t1 + t2 ** t2 + t1} hello world ${t1 + t2 ** t2 + t1}`; +>`${t1 + t2 ** t2 + t1} hello world ${t1 + t2 ** t2 + t1}` : string +> : ^^^^^^ +>t1 + t2 ** t2 + t1 : number +> : ^^^^^^ +>t1 + t2 ** t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t2 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t1 + t2 ** t2 + t1 : number +> : ^^^^^^ +>t1 + t2 ** t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t2 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`${typeof (t1 ** t2 ** t1) } hello world ${typeof (t1 ** t2 ** t1) }`; +>`${typeof (t1 ** t2 ** t1) } hello world ${typeof (t1 ** t2 ** t1) }` : string +> : ^^^^^^ +>typeof (t1 ** t2 ** t1) : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>(t1 ** t2 ** t1) : number +> : ^^^^^^ +>t1 ** t2 ** t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>typeof (t1 ** t2 ** t1) : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>(t1 ** t2 ** t1) : number +> : ^^^^^^ +>t1 ** t2 ** t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + diff --git a/tests/baselines/reference/emitExponentiationOperatorInTemplateString2(target=es2015).js b/tests/baselines/reference/emitExponentiationOperatorInTemplateString2(target=es2015).js new file mode 100644 index 0000000000000..a6c75521ce707 --- /dev/null +++ b/tests/baselines/reference/emitExponentiationOperatorInTemplateString2(target=es2015).js @@ -0,0 +1,54 @@ +//// [tests/cases/conformance/es7/exponentiationOperator/emitExponentiationOperatorInTemplateString2.ts] //// + +//// [emitExponentiationOperatorInTemplateString2.ts] +var t1 = 10; +var t2 = 10; +var s; + +// With templateHead +`hello ${t1 ** t2}`; +`hello ${t1 ** t2 ** t1}`; +`hello ${t1 + t2 ** t1}`; +`hello ${t1 ** t2 + t1}`; +`hello ${t1 + t2 ** t2 + t1 }`; +`hello ${typeof (t1 ** t2 ** t1) }`; +`hello ${1 + typeof (t1 ** t2 ** t1) }`; + +`hello ${t1 ** t2}${t1 ** t2}`; +`hello ${t1 ** t2 ** t1}${t1 ** t2 ** t1}`; +`hello ${t1 + t2 ** t1}${t1 + t2 ** t1}`; +`hello ${t1 ** t2 + t1}${t1 ** t2 + t1}`; +`hello ${t1 + t2 ** t2 + t1}${t1 + t2 ** t2 + t1}`; +`hello ${typeof (t1 ** t2 ** t1) }${typeof (t1 ** t2 ** t1) }`; + +`hello ${t1 ** t2} hello world ${t1 ** t2}`; +`hello ${t1 ** t2 ** t1} hello world ${t1 ** t2 ** t1}`; +`hello ${t1 + t2 ** t1} hello world ${t1 + t2 ** t1}`; +`hello ${t1 ** t2 + t1} hello world ${t1 ** t2 + t1}`; +`hello ${t1 + t2 ** t2 + t1} hello world ${t1 + t2 ** t2 + t1}`; +`hello ${typeof (t1 ** t2 ** t1) } hello world ${typeof (t1 ** t2 ** t1) }`; + +//// [emitExponentiationOperatorInTemplateString2.js] +var t1 = 10; +var t2 = 10; +var s; +// With templateHead +`hello ${Math.pow(t1, t2)}`; +`hello ${Math.pow(t1, Math.pow(t2, t1))}`; +`hello ${t1 + Math.pow(t2, t1)}`; +`hello ${Math.pow(t1, t2) + t1}`; +`hello ${t1 + Math.pow(t2, t2) + t1}`; +`hello ${typeof (Math.pow(t1, Math.pow(t2, t1)))}`; +`hello ${1 + typeof (Math.pow(t1, Math.pow(t2, t1)))}`; +`hello ${Math.pow(t1, t2)}${Math.pow(t1, t2)}`; +`hello ${Math.pow(t1, Math.pow(t2, t1))}${Math.pow(t1, Math.pow(t2, t1))}`; +`hello ${t1 + Math.pow(t2, t1)}${t1 + Math.pow(t2, t1)}`; +`hello ${Math.pow(t1, t2) + t1}${Math.pow(t1, t2) + t1}`; +`hello ${t1 + Math.pow(t2, t2) + t1}${t1 + Math.pow(t2, t2) + t1}`; +`hello ${typeof (Math.pow(t1, Math.pow(t2, t1)))}${typeof (Math.pow(t1, Math.pow(t2, t1)))}`; +`hello ${Math.pow(t1, t2)} hello world ${Math.pow(t1, t2)}`; +`hello ${Math.pow(t1, Math.pow(t2, t1))} hello world ${Math.pow(t1, Math.pow(t2, t1))}`; +`hello ${t1 + Math.pow(t2, t1)} hello world ${t1 + Math.pow(t2, t1)}`; +`hello ${Math.pow(t1, t2) + t1} hello world ${Math.pow(t1, t2) + t1}`; +`hello ${t1 + Math.pow(t2, t2) + t1} hello world ${t1 + Math.pow(t2, t2) + t1}`; +`hello ${typeof (Math.pow(t1, Math.pow(t2, t1)))} hello world ${typeof (Math.pow(t1, Math.pow(t2, t1)))}`; diff --git a/tests/baselines/reference/emitExponentiationOperatorInTemplateString2.symbols b/tests/baselines/reference/emitExponentiationOperatorInTemplateString2(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/emitExponentiationOperatorInTemplateString2.symbols rename to tests/baselines/reference/emitExponentiationOperatorInTemplateString2(target=es2015).symbols diff --git a/tests/baselines/reference/emitExponentiationOperatorInTemplateString2.types b/tests/baselines/reference/emitExponentiationOperatorInTemplateString2(target=es2015).types similarity index 100% rename from tests/baselines/reference/emitExponentiationOperatorInTemplateString2.types rename to tests/baselines/reference/emitExponentiationOperatorInTemplateString2(target=es2015).types diff --git a/tests/baselines/reference/emitExponentiationOperatorInTemplateString2.js b/tests/baselines/reference/emitExponentiationOperatorInTemplateString2(target=es5).js similarity index 100% rename from tests/baselines/reference/emitExponentiationOperatorInTemplateString2.js rename to tests/baselines/reference/emitExponentiationOperatorInTemplateString2(target=es5).js diff --git a/tests/baselines/reference/emitExponentiationOperatorInTemplateString2(target=es5).symbols b/tests/baselines/reference/emitExponentiationOperatorInTemplateString2(target=es5).symbols new file mode 100644 index 0000000000000..1c1500fd8f853 --- /dev/null +++ b/tests/baselines/reference/emitExponentiationOperatorInTemplateString2(target=es5).symbols @@ -0,0 +1,144 @@ +//// [tests/cases/conformance/es7/exponentiationOperator/emitExponentiationOperatorInTemplateString2.ts] //// + +=== emitExponentiationOperatorInTemplateString2.ts === +var t1 = 10; +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString2.ts, 0, 3)) + +var t2 = 10; +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString2.ts, 1, 3)) + +var s; +>s : Symbol(s, Decl(emitExponentiationOperatorInTemplateString2.ts, 2, 3)) + +// With templateHead +`hello ${t1 ** t2}`; +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString2.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString2.ts, 1, 3)) + +`hello ${t1 ** t2 ** t1}`; +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString2.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString2.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString2.ts, 0, 3)) + +`hello ${t1 + t2 ** t1}`; +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString2.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString2.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString2.ts, 0, 3)) + +`hello ${t1 ** t2 + t1}`; +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString2.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString2.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString2.ts, 0, 3)) + +`hello ${t1 + t2 ** t2 + t1 }`; +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString2.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString2.ts, 1, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString2.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString2.ts, 0, 3)) + +`hello ${typeof (t1 ** t2 ** t1) }`; +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString2.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString2.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString2.ts, 0, 3)) + +`hello ${1 + typeof (t1 ** t2 ** t1) }`; +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString2.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString2.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString2.ts, 0, 3)) + +`hello ${t1 ** t2}${t1 ** t2}`; +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString2.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString2.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString2.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString2.ts, 1, 3)) + +`hello ${t1 ** t2 ** t1}${t1 ** t2 ** t1}`; +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString2.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString2.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString2.ts, 0, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString2.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString2.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString2.ts, 0, 3)) + +`hello ${t1 + t2 ** t1}${t1 + t2 ** t1}`; +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString2.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString2.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString2.ts, 0, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString2.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString2.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString2.ts, 0, 3)) + +`hello ${t1 ** t2 + t1}${t1 ** t2 + t1}`; +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString2.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString2.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString2.ts, 0, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString2.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString2.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString2.ts, 0, 3)) + +`hello ${t1 + t2 ** t2 + t1}${t1 + t2 ** t2 + t1}`; +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString2.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString2.ts, 1, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString2.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString2.ts, 0, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString2.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString2.ts, 1, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString2.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString2.ts, 0, 3)) + +`hello ${typeof (t1 ** t2 ** t1) }${typeof (t1 ** t2 ** t1) }`; +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString2.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString2.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString2.ts, 0, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString2.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString2.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString2.ts, 0, 3)) + +`hello ${t1 ** t2} hello world ${t1 ** t2}`; +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString2.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString2.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString2.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString2.ts, 1, 3)) + +`hello ${t1 ** t2 ** t1} hello world ${t1 ** t2 ** t1}`; +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString2.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString2.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString2.ts, 0, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString2.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString2.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString2.ts, 0, 3)) + +`hello ${t1 + t2 ** t1} hello world ${t1 + t2 ** t1}`; +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString2.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString2.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString2.ts, 0, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString2.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString2.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString2.ts, 0, 3)) + +`hello ${t1 ** t2 + t1} hello world ${t1 ** t2 + t1}`; +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString2.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString2.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString2.ts, 0, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString2.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString2.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString2.ts, 0, 3)) + +`hello ${t1 + t2 ** t2 + t1} hello world ${t1 + t2 ** t2 + t1}`; +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString2.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString2.ts, 1, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString2.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString2.ts, 0, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString2.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString2.ts, 1, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString2.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString2.ts, 0, 3)) + +`hello ${typeof (t1 ** t2 ** t1) } hello world ${typeof (t1 ** t2 ** t1) }`; +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString2.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString2.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString2.ts, 0, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString2.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString2.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString2.ts, 0, 3)) + diff --git a/tests/baselines/reference/emitExponentiationOperatorInTemplateString2(target=es5).types b/tests/baselines/reference/emitExponentiationOperatorInTemplateString2(target=es5).types new file mode 100644 index 0000000000000..354b32ac18e63 --- /dev/null +++ b/tests/baselines/reference/emitExponentiationOperatorInTemplateString2(target=es5).types @@ -0,0 +1,433 @@ +//// [tests/cases/conformance/es7/exponentiationOperator/emitExponentiationOperatorInTemplateString2.ts] //// + +=== emitExponentiationOperatorInTemplateString2.ts === +var t1 = 10; +>t1 : number +> : ^^^^^^ +>10 : 10 +> : ^^ + +var t2 = 10; +>t2 : number +> : ^^^^^^ +>10 : 10 +> : ^^ + +var s; +>s : any + +// With templateHead +`hello ${t1 ** t2}`; +>`hello ${t1 ** t2}` : string +> : ^^^^^^ +>t1 ** t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ + +`hello ${t1 ** t2 ** t1}`; +>`hello ${t1 ** t2 ** t1}` : string +> : ^^^^^^ +>t1 ** t2 ** t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`hello ${t1 + t2 ** t1}`; +>`hello ${t1 + t2 ** t1}` : string +> : ^^^^^^ +>t1 + t2 ** t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`hello ${t1 ** t2 + t1}`; +>`hello ${t1 ** t2 + t1}` : string +> : ^^^^^^ +>t1 ** t2 + t1 : number +> : ^^^^^^ +>t1 ** t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`hello ${t1 + t2 ** t2 + t1 }`; +>`hello ${t1 + t2 ** t2 + t1 }` : string +> : ^^^^^^ +>t1 + t2 ** t2 + t1 : number +> : ^^^^^^ +>t1 + t2 ** t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t2 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`hello ${typeof (t1 ** t2 ** t1) }`; +>`hello ${typeof (t1 ** t2 ** t1) }` : string +> : ^^^^^^ +>typeof (t1 ** t2 ** t1) : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>(t1 ** t2 ** t1) : number +> : ^^^^^^ +>t1 ** t2 ** t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`hello ${1 + typeof (t1 ** t2 ** t1) }`; +>`hello ${1 + typeof (t1 ** t2 ** t1) }` : string +> : ^^^^^^ +>1 + typeof (t1 ** t2 ** t1) : string +> : ^^^^^^ +>1 : 1 +> : ^ +>typeof (t1 ** t2 ** t1) : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>(t1 ** t2 ** t1) : number +> : ^^^^^^ +>t1 ** t2 ** t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`hello ${t1 ** t2}${t1 ** t2}`; +>`hello ${t1 ** t2}${t1 ** t2}` : string +> : ^^^^^^ +>t1 ** t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 ** t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ + +`hello ${t1 ** t2 ** t1}${t1 ** t2 ** t1}`; +>`hello ${t1 ** t2 ** t1}${t1 ** t2 ** t1}` : string +> : ^^^^^^ +>t1 ** t2 ** t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t1 ** t2 ** t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`hello ${t1 + t2 ** t1}${t1 + t2 ** t1}`; +>`hello ${t1 + t2 ** t1}${t1 + t2 ** t1}` : string +> : ^^^^^^ +>t1 + t2 ** t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t1 + t2 ** t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`hello ${t1 ** t2 + t1}${t1 ** t2 + t1}`; +>`hello ${t1 ** t2 + t1}${t1 ** t2 + t1}` : string +> : ^^^^^^ +>t1 ** t2 + t1 : number +> : ^^^^^^ +>t1 ** t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t1 ** t2 + t1 : number +> : ^^^^^^ +>t1 ** t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`hello ${t1 + t2 ** t2 + t1}${t1 + t2 ** t2 + t1}`; +>`hello ${t1 + t2 ** t2 + t1}${t1 + t2 ** t2 + t1}` : string +> : ^^^^^^ +>t1 + t2 ** t2 + t1 : number +> : ^^^^^^ +>t1 + t2 ** t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t2 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t1 + t2 ** t2 + t1 : number +> : ^^^^^^ +>t1 + t2 ** t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t2 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`hello ${typeof (t1 ** t2 ** t1) }${typeof (t1 ** t2 ** t1) }`; +>`hello ${typeof (t1 ** t2 ** t1) }${typeof (t1 ** t2 ** t1) }` : string +> : ^^^^^^ +>typeof (t1 ** t2 ** t1) : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>(t1 ** t2 ** t1) : number +> : ^^^^^^ +>t1 ** t2 ** t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>typeof (t1 ** t2 ** t1) : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>(t1 ** t2 ** t1) : number +> : ^^^^^^ +>t1 ** t2 ** t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`hello ${t1 ** t2} hello world ${t1 ** t2}`; +>`hello ${t1 ** t2} hello world ${t1 ** t2}` : string +> : ^^^^^^ +>t1 ** t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 ** t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ + +`hello ${t1 ** t2 ** t1} hello world ${t1 ** t2 ** t1}`; +>`hello ${t1 ** t2 ** t1} hello world ${t1 ** t2 ** t1}` : string +> : ^^^^^^ +>t1 ** t2 ** t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t1 ** t2 ** t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`hello ${t1 + t2 ** t1} hello world ${t1 + t2 ** t1}`; +>`hello ${t1 + t2 ** t1} hello world ${t1 + t2 ** t1}` : string +> : ^^^^^^ +>t1 + t2 ** t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t1 + t2 ** t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`hello ${t1 ** t2 + t1} hello world ${t1 ** t2 + t1}`; +>`hello ${t1 ** t2 + t1} hello world ${t1 ** t2 + t1}` : string +> : ^^^^^^ +>t1 ** t2 + t1 : number +> : ^^^^^^ +>t1 ** t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t1 ** t2 + t1 : number +> : ^^^^^^ +>t1 ** t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`hello ${t1 + t2 ** t2 + t1} hello world ${t1 + t2 ** t2 + t1}`; +>`hello ${t1 + t2 ** t2 + t1} hello world ${t1 + t2 ** t2 + t1}` : string +> : ^^^^^^ +>t1 + t2 ** t2 + t1 : number +> : ^^^^^^ +>t1 + t2 ** t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t2 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t1 + t2 ** t2 + t1 : number +> : ^^^^^^ +>t1 + t2 ** t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t2 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`hello ${typeof (t1 ** t2 ** t1) } hello world ${typeof (t1 ** t2 ** t1) }`; +>`hello ${typeof (t1 ** t2 ** t1) } hello world ${typeof (t1 ** t2 ** t1) }` : string +> : ^^^^^^ +>typeof (t1 ** t2 ** t1) : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>(t1 ** t2 ** t1) : number +> : ^^^^^^ +>t1 ** t2 ** t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>typeof (t1 ** t2 ** t1) : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>(t1 ** t2 ** t1) : number +> : ^^^^^^ +>t1 ** t2 ** t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + diff --git a/tests/baselines/reference/emitExponentiationOperatorInTemplateString3(target=es2015).js b/tests/baselines/reference/emitExponentiationOperatorInTemplateString3(target=es2015).js new file mode 100644 index 0000000000000..17de1af1684b3 --- /dev/null +++ b/tests/baselines/reference/emitExponentiationOperatorInTemplateString3(target=es2015).js @@ -0,0 +1,55 @@ +//// [tests/cases/conformance/es7/exponentiationOperator/emitExponentiationOperatorInTemplateString3.ts] //// + +//// [emitExponentiationOperatorInTemplateString3.ts] +var t1 = 10; +var t2 = 10; +var s; + +// With TemplateTail +`${t1 ** t2} world`; +`${t1 ** t2 ** t1} world`; +`${t1 + t2 ** t1} world`; +`${t1 ** t2 + t1} world`; +`${t1 + t2 ** t2 + t1 } world`; +`${typeof (t1 ** t2 ** t1) } world`; +`${1 + typeof (t1 ** t2 ** t1) } world`; + +`${t1 ** t2}${t1 ** t2} world`; +`${t1 ** t2 ** t1}${t1 ** t2 ** t1} world`; +`${t1 + t2 ** t1}${t1 + t2 ** t1} world`; +`${t1 ** t2 + t1}${t1 ** t2 + t1} world`; +`${t1 + t2 ** t2 + t1}${t1 + t2 ** t2 + t1} world`; +`${typeof (t1 ** t2 ** t1) }${typeof (t1 ** t2 ** t1) } world`; + +`${t1 ** t2} hello world ${t1 ** t2} !!`; +`${t1 ** t2 ** t1} hello world ${t1 ** t2 ** t1} !!`; +`${t1 + t2 ** t1} hello world ${t1 + t2 ** t1} !!`; +`${t1 ** t2 + t1} hello world ${t1 ** t2 + t1} !!`; +`${t1 + t2 ** t2 + t1} hello world ${t1 + t2 ** t2 + t1} !!`; +`${typeof (t1 ** t2 ** t1) } hello world ${typeof (t1 ** t2 ** t1)} !!`; + + +//// [emitExponentiationOperatorInTemplateString3.js] +var t1 = 10; +var t2 = 10; +var s; +// With TemplateTail +`${Math.pow(t1, t2)} world`; +`${Math.pow(t1, Math.pow(t2, t1))} world`; +`${t1 + Math.pow(t2, t1)} world`; +`${Math.pow(t1, t2) + t1} world`; +`${t1 + Math.pow(t2, t2) + t1} world`; +`${typeof (Math.pow(t1, Math.pow(t2, t1)))} world`; +`${1 + typeof (Math.pow(t1, Math.pow(t2, t1)))} world`; +`${Math.pow(t1, t2)}${Math.pow(t1, t2)} world`; +`${Math.pow(t1, Math.pow(t2, t1))}${Math.pow(t1, Math.pow(t2, t1))} world`; +`${t1 + Math.pow(t2, t1)}${t1 + Math.pow(t2, t1)} world`; +`${Math.pow(t1, t2) + t1}${Math.pow(t1, t2) + t1} world`; +`${t1 + Math.pow(t2, t2) + t1}${t1 + Math.pow(t2, t2) + t1} world`; +`${typeof (Math.pow(t1, Math.pow(t2, t1)))}${typeof (Math.pow(t1, Math.pow(t2, t1)))} world`; +`${Math.pow(t1, t2)} hello world ${Math.pow(t1, t2)} !!`; +`${Math.pow(t1, Math.pow(t2, t1))} hello world ${Math.pow(t1, Math.pow(t2, t1))} !!`; +`${t1 + Math.pow(t2, t1)} hello world ${t1 + Math.pow(t2, t1)} !!`; +`${Math.pow(t1, t2) + t1} hello world ${Math.pow(t1, t2) + t1} !!`; +`${t1 + Math.pow(t2, t2) + t1} hello world ${t1 + Math.pow(t2, t2) + t1} !!`; +`${typeof (Math.pow(t1, Math.pow(t2, t1)))} hello world ${typeof (Math.pow(t1, Math.pow(t2, t1)))} !!`; diff --git a/tests/baselines/reference/emitExponentiationOperatorInTemplateString3.symbols b/tests/baselines/reference/emitExponentiationOperatorInTemplateString3(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/emitExponentiationOperatorInTemplateString3.symbols rename to tests/baselines/reference/emitExponentiationOperatorInTemplateString3(target=es2015).symbols diff --git a/tests/baselines/reference/emitExponentiationOperatorInTemplateString3.types b/tests/baselines/reference/emitExponentiationOperatorInTemplateString3(target=es2015).types similarity index 100% rename from tests/baselines/reference/emitExponentiationOperatorInTemplateString3.types rename to tests/baselines/reference/emitExponentiationOperatorInTemplateString3(target=es2015).types diff --git a/tests/baselines/reference/emitExponentiationOperatorInTemplateString3.js b/tests/baselines/reference/emitExponentiationOperatorInTemplateString3(target=es5).js similarity index 100% rename from tests/baselines/reference/emitExponentiationOperatorInTemplateString3.js rename to tests/baselines/reference/emitExponentiationOperatorInTemplateString3(target=es5).js diff --git a/tests/baselines/reference/emitExponentiationOperatorInTemplateString3(target=es5).symbols b/tests/baselines/reference/emitExponentiationOperatorInTemplateString3(target=es5).symbols new file mode 100644 index 0000000000000..bac221a59732b --- /dev/null +++ b/tests/baselines/reference/emitExponentiationOperatorInTemplateString3(target=es5).symbols @@ -0,0 +1,144 @@ +//// [tests/cases/conformance/es7/exponentiationOperator/emitExponentiationOperatorInTemplateString3.ts] //// + +=== emitExponentiationOperatorInTemplateString3.ts === +var t1 = 10; +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString3.ts, 0, 3)) + +var t2 = 10; +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString3.ts, 1, 3)) + +var s; +>s : Symbol(s, Decl(emitExponentiationOperatorInTemplateString3.ts, 2, 3)) + +// With TemplateTail +`${t1 ** t2} world`; +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString3.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString3.ts, 1, 3)) + +`${t1 ** t2 ** t1} world`; +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString3.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString3.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString3.ts, 0, 3)) + +`${t1 + t2 ** t1} world`; +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString3.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString3.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString3.ts, 0, 3)) + +`${t1 ** t2 + t1} world`; +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString3.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString3.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString3.ts, 0, 3)) + +`${t1 + t2 ** t2 + t1 } world`; +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString3.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString3.ts, 1, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString3.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString3.ts, 0, 3)) + +`${typeof (t1 ** t2 ** t1) } world`; +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString3.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString3.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString3.ts, 0, 3)) + +`${1 + typeof (t1 ** t2 ** t1) } world`; +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString3.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString3.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString3.ts, 0, 3)) + +`${t1 ** t2}${t1 ** t2} world`; +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString3.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString3.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString3.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString3.ts, 1, 3)) + +`${t1 ** t2 ** t1}${t1 ** t2 ** t1} world`; +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString3.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString3.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString3.ts, 0, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString3.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString3.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString3.ts, 0, 3)) + +`${t1 + t2 ** t1}${t1 + t2 ** t1} world`; +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString3.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString3.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString3.ts, 0, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString3.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString3.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString3.ts, 0, 3)) + +`${t1 ** t2 + t1}${t1 ** t2 + t1} world`; +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString3.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString3.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString3.ts, 0, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString3.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString3.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString3.ts, 0, 3)) + +`${t1 + t2 ** t2 + t1}${t1 + t2 ** t2 + t1} world`; +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString3.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString3.ts, 1, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString3.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString3.ts, 0, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString3.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString3.ts, 1, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString3.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString3.ts, 0, 3)) + +`${typeof (t1 ** t2 ** t1) }${typeof (t1 ** t2 ** t1) } world`; +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString3.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString3.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString3.ts, 0, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString3.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString3.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString3.ts, 0, 3)) + +`${t1 ** t2} hello world ${t1 ** t2} !!`; +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString3.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString3.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString3.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString3.ts, 1, 3)) + +`${t1 ** t2 ** t1} hello world ${t1 ** t2 ** t1} !!`; +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString3.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString3.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString3.ts, 0, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString3.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString3.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString3.ts, 0, 3)) + +`${t1 + t2 ** t1} hello world ${t1 + t2 ** t1} !!`; +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString3.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString3.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString3.ts, 0, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString3.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString3.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString3.ts, 0, 3)) + +`${t1 ** t2 + t1} hello world ${t1 ** t2 + t1} !!`; +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString3.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString3.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString3.ts, 0, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString3.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString3.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString3.ts, 0, 3)) + +`${t1 + t2 ** t2 + t1} hello world ${t1 + t2 ** t2 + t1} !!`; +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString3.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString3.ts, 1, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString3.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString3.ts, 0, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString3.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString3.ts, 1, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString3.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString3.ts, 0, 3)) + +`${typeof (t1 ** t2 ** t1) } hello world ${typeof (t1 ** t2 ** t1)} !!`; +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString3.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString3.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString3.ts, 0, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString3.ts, 0, 3)) +>t2 : Symbol(t2, Decl(emitExponentiationOperatorInTemplateString3.ts, 1, 3)) +>t1 : Symbol(t1, Decl(emitExponentiationOperatorInTemplateString3.ts, 0, 3)) + diff --git a/tests/baselines/reference/emitExponentiationOperatorInTemplateString3(target=es5).types b/tests/baselines/reference/emitExponentiationOperatorInTemplateString3(target=es5).types new file mode 100644 index 0000000000000..14a034f787084 --- /dev/null +++ b/tests/baselines/reference/emitExponentiationOperatorInTemplateString3(target=es5).types @@ -0,0 +1,433 @@ +//// [tests/cases/conformance/es7/exponentiationOperator/emitExponentiationOperatorInTemplateString3.ts] //// + +=== emitExponentiationOperatorInTemplateString3.ts === +var t1 = 10; +>t1 : number +> : ^^^^^^ +>10 : 10 +> : ^^ + +var t2 = 10; +>t2 : number +> : ^^^^^^ +>10 : 10 +> : ^^ + +var s; +>s : any + +// With TemplateTail +`${t1 ** t2} world`; +>`${t1 ** t2} world` : string +> : ^^^^^^ +>t1 ** t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ + +`${t1 ** t2 ** t1} world`; +>`${t1 ** t2 ** t1} world` : string +> : ^^^^^^ +>t1 ** t2 ** t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`${t1 + t2 ** t1} world`; +>`${t1 + t2 ** t1} world` : string +> : ^^^^^^ +>t1 + t2 ** t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`${t1 ** t2 + t1} world`; +>`${t1 ** t2 + t1} world` : string +> : ^^^^^^ +>t1 ** t2 + t1 : number +> : ^^^^^^ +>t1 ** t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`${t1 + t2 ** t2 + t1 } world`; +>`${t1 + t2 ** t2 + t1 } world` : string +> : ^^^^^^ +>t1 + t2 ** t2 + t1 : number +> : ^^^^^^ +>t1 + t2 ** t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t2 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`${typeof (t1 ** t2 ** t1) } world`; +>`${typeof (t1 ** t2 ** t1) } world` : string +> : ^^^^^^ +>typeof (t1 ** t2 ** t1) : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>(t1 ** t2 ** t1) : number +> : ^^^^^^ +>t1 ** t2 ** t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`${1 + typeof (t1 ** t2 ** t1) } world`; +>`${1 + typeof (t1 ** t2 ** t1) } world` : string +> : ^^^^^^ +>1 + typeof (t1 ** t2 ** t1) : string +> : ^^^^^^ +>1 : 1 +> : ^ +>typeof (t1 ** t2 ** t1) : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>(t1 ** t2 ** t1) : number +> : ^^^^^^ +>t1 ** t2 ** t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`${t1 ** t2}${t1 ** t2} world`; +>`${t1 ** t2}${t1 ** t2} world` : string +> : ^^^^^^ +>t1 ** t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 ** t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ + +`${t1 ** t2 ** t1}${t1 ** t2 ** t1} world`; +>`${t1 ** t2 ** t1}${t1 ** t2 ** t1} world` : string +> : ^^^^^^ +>t1 ** t2 ** t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t1 ** t2 ** t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`${t1 + t2 ** t1}${t1 + t2 ** t1} world`; +>`${t1 + t2 ** t1}${t1 + t2 ** t1} world` : string +> : ^^^^^^ +>t1 + t2 ** t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t1 + t2 ** t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`${t1 ** t2 + t1}${t1 ** t2 + t1} world`; +>`${t1 ** t2 + t1}${t1 ** t2 + t1} world` : string +> : ^^^^^^ +>t1 ** t2 + t1 : number +> : ^^^^^^ +>t1 ** t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t1 ** t2 + t1 : number +> : ^^^^^^ +>t1 ** t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`${t1 + t2 ** t2 + t1}${t1 + t2 ** t2 + t1} world`; +>`${t1 + t2 ** t2 + t1}${t1 + t2 ** t2 + t1} world` : string +> : ^^^^^^ +>t1 + t2 ** t2 + t1 : number +> : ^^^^^^ +>t1 + t2 ** t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t2 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t1 + t2 ** t2 + t1 : number +> : ^^^^^^ +>t1 + t2 ** t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t2 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`${typeof (t1 ** t2 ** t1) }${typeof (t1 ** t2 ** t1) } world`; +>`${typeof (t1 ** t2 ** t1) }${typeof (t1 ** t2 ** t1) } world` : string +> : ^^^^^^ +>typeof (t1 ** t2 ** t1) : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>(t1 ** t2 ** t1) : number +> : ^^^^^^ +>t1 ** t2 ** t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>typeof (t1 ** t2 ** t1) : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>(t1 ** t2 ** t1) : number +> : ^^^^^^ +>t1 ** t2 ** t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`${t1 ** t2} hello world ${t1 ** t2} !!`; +>`${t1 ** t2} hello world ${t1 ** t2} !!` : string +> : ^^^^^^ +>t1 ** t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 ** t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ + +`${t1 ** t2 ** t1} hello world ${t1 ** t2 ** t1} !!`; +>`${t1 ** t2 ** t1} hello world ${t1 ** t2 ** t1} !!` : string +> : ^^^^^^ +>t1 ** t2 ** t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t1 ** t2 ** t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`${t1 + t2 ** t1} hello world ${t1 + t2 ** t1} !!`; +>`${t1 + t2 ** t1} hello world ${t1 + t2 ** t1} !!` : string +> : ^^^^^^ +>t1 + t2 ** t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t1 + t2 ** t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`${t1 ** t2 + t1} hello world ${t1 ** t2 + t1} !!`; +>`${t1 ** t2 + t1} hello world ${t1 ** t2 + t1} !!` : string +> : ^^^^^^ +>t1 ** t2 + t1 : number +> : ^^^^^^ +>t1 ** t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t1 ** t2 + t1 : number +> : ^^^^^^ +>t1 ** t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`${t1 + t2 ** t2 + t1} hello world ${t1 + t2 ** t2 + t1} !!`; +>`${t1 + t2 ** t2 + t1} hello world ${t1 + t2 ** t2 + t1} !!` : string +> : ^^^^^^ +>t1 + t2 ** t2 + t1 : number +> : ^^^^^^ +>t1 + t2 ** t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t2 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t1 + t2 ** t2 + t1 : number +> : ^^^^^^ +>t1 + t2 ** t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t2 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`${typeof (t1 ** t2 ** t1) } hello world ${typeof (t1 ** t2 ** t1)} !!`; +>`${typeof (t1 ** t2 ** t1) } hello world ${typeof (t1 ** t2 ** t1)} !!` : string +> : ^^^^^^ +>typeof (t1 ** t2 ** t1) : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>(t1 ** t2 ** t1) : number +> : ^^^^^^ +>t1 ** t2 ** t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>typeof (t1 ** t2 ** t1) : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>(t1 ** t2 ** t1) : number +> : ^^^^^^ +>t1 ** t2 ** t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + diff --git a/tests/baselines/reference/emitRestParametersFunction(target=es2015).js b/tests/baselines/reference/emitRestParametersFunction(target=es2015).js new file mode 100644 index 0000000000000..5f2d5f2ab1f2d --- /dev/null +++ b/tests/baselines/reference/emitRestParametersFunction(target=es2015).js @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/es6/restParameters/emitRestParametersFunction.ts] //// + +//// [emitRestParametersFunction.ts] +function bar(...rest) { } +function foo(x: number, y: string, ...rest) { } + +//// [emitRestParametersFunction.js] +function bar(...rest) { } +function foo(x, y, ...rest) { } diff --git a/tests/baselines/reference/emitRestParametersFunction.symbols b/tests/baselines/reference/emitRestParametersFunction(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/emitRestParametersFunction.symbols rename to tests/baselines/reference/emitRestParametersFunction(target=es2015).symbols diff --git a/tests/baselines/reference/emitRestParametersFunction.types b/tests/baselines/reference/emitRestParametersFunction(target=es2015).types similarity index 100% rename from tests/baselines/reference/emitRestParametersFunction.types rename to tests/baselines/reference/emitRestParametersFunction(target=es2015).types diff --git a/tests/baselines/reference/emitRestParametersFunction.js b/tests/baselines/reference/emitRestParametersFunction(target=es5).js similarity index 100% rename from tests/baselines/reference/emitRestParametersFunction.js rename to tests/baselines/reference/emitRestParametersFunction(target=es5).js diff --git a/tests/baselines/reference/emitRestParametersFunction(target=es5).symbols b/tests/baselines/reference/emitRestParametersFunction(target=es5).symbols new file mode 100644 index 0000000000000..cc6c3fa7cf90d --- /dev/null +++ b/tests/baselines/reference/emitRestParametersFunction(target=es5).symbols @@ -0,0 +1,13 @@ +//// [tests/cases/conformance/es6/restParameters/emitRestParametersFunction.ts] //// + +=== emitRestParametersFunction.ts === +function bar(...rest) { } +>bar : Symbol(bar, Decl(emitRestParametersFunction.ts, 0, 0)) +>rest : Symbol(rest, Decl(emitRestParametersFunction.ts, 0, 13)) + +function foo(x: number, y: string, ...rest) { } +>foo : Symbol(foo, Decl(emitRestParametersFunction.ts, 0, 25)) +>x : Symbol(x, Decl(emitRestParametersFunction.ts, 1, 13)) +>y : Symbol(y, Decl(emitRestParametersFunction.ts, 1, 23)) +>rest : Symbol(rest, Decl(emitRestParametersFunction.ts, 1, 34)) + diff --git a/tests/baselines/reference/emitRestParametersFunction(target=es5).types b/tests/baselines/reference/emitRestParametersFunction(target=es5).types new file mode 100644 index 0000000000000..5da03d7d700c9 --- /dev/null +++ b/tests/baselines/reference/emitRestParametersFunction(target=es5).types @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/es6/restParameters/emitRestParametersFunction.ts] //// + +=== emitRestParametersFunction.ts === +function bar(...rest) { } +>bar : (...rest: any[]) => void +> : ^^^^ ^^^^^^^^^^^^^^^^ +>rest : any[] +> : ^^^^^ + +function foo(x: number, y: string, ...rest) { } +>foo : (x: number, y: string, ...rest: any[]) => void +> : ^ ^^ ^^ ^^ ^^^^^ ^^^^^^^^^^^^^^^^ +>x : number +> : ^^^^^^ +>y : string +> : ^^^^^^ +>rest : any[] +> : ^^^^^ + diff --git a/tests/baselines/reference/emitRestParametersFunctionExpression(target=es2015).js b/tests/baselines/reference/emitRestParametersFunctionExpression(target=es2015).js new file mode 100644 index 0000000000000..ee95a162437cb --- /dev/null +++ b/tests/baselines/reference/emitRestParametersFunctionExpression(target=es2015).js @@ -0,0 +1,14 @@ +//// [tests/cases/conformance/es6/restParameters/emitRestParametersFunctionExpression.ts] //// + +//// [emitRestParametersFunctionExpression.ts] +var funcExp = (...rest) => { } +var funcExp1 = (X: number, ...rest) => { } +var funcExp2 = function (...rest) { } +var funcExp3 = (function (...rest) { })() + + +//// [emitRestParametersFunctionExpression.js] +var funcExp = (...rest) => { }; +var funcExp1 = (X, ...rest) => { }; +var funcExp2 = function (...rest) { }; +var funcExp3 = (function (...rest) { })(); diff --git a/tests/baselines/reference/emitRestParametersFunctionExpression.symbols b/tests/baselines/reference/emitRestParametersFunctionExpression(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/emitRestParametersFunctionExpression.symbols rename to tests/baselines/reference/emitRestParametersFunctionExpression(target=es2015).symbols diff --git a/tests/baselines/reference/emitRestParametersFunctionExpression.types b/tests/baselines/reference/emitRestParametersFunctionExpression(target=es2015).types similarity index 100% rename from tests/baselines/reference/emitRestParametersFunctionExpression.types rename to tests/baselines/reference/emitRestParametersFunctionExpression(target=es2015).types diff --git a/tests/baselines/reference/emitRestParametersFunctionExpression.js b/tests/baselines/reference/emitRestParametersFunctionExpression(target=es5).js similarity index 100% rename from tests/baselines/reference/emitRestParametersFunctionExpression.js rename to tests/baselines/reference/emitRestParametersFunctionExpression(target=es5).js diff --git a/tests/baselines/reference/emitRestParametersFunctionExpression(target=es5).symbols b/tests/baselines/reference/emitRestParametersFunctionExpression(target=es5).symbols new file mode 100644 index 0000000000000..62c33ff0f3bd6 --- /dev/null +++ b/tests/baselines/reference/emitRestParametersFunctionExpression(target=es5).symbols @@ -0,0 +1,20 @@ +//// [tests/cases/conformance/es6/restParameters/emitRestParametersFunctionExpression.ts] //// + +=== emitRestParametersFunctionExpression.ts === +var funcExp = (...rest) => { } +>funcExp : Symbol(funcExp, Decl(emitRestParametersFunctionExpression.ts, 0, 3)) +>rest : Symbol(rest, Decl(emitRestParametersFunctionExpression.ts, 0, 15)) + +var funcExp1 = (X: number, ...rest) => { } +>funcExp1 : Symbol(funcExp1, Decl(emitRestParametersFunctionExpression.ts, 1, 3)) +>X : Symbol(X, Decl(emitRestParametersFunctionExpression.ts, 1, 16)) +>rest : Symbol(rest, Decl(emitRestParametersFunctionExpression.ts, 1, 26)) + +var funcExp2 = function (...rest) { } +>funcExp2 : Symbol(funcExp2, Decl(emitRestParametersFunctionExpression.ts, 2, 3)) +>rest : Symbol(rest, Decl(emitRestParametersFunctionExpression.ts, 2, 25)) + +var funcExp3 = (function (...rest) { })() +>funcExp3 : Symbol(funcExp3, Decl(emitRestParametersFunctionExpression.ts, 3, 3)) +>rest : Symbol(rest, Decl(emitRestParametersFunctionExpression.ts, 3, 26)) + diff --git a/tests/baselines/reference/emitRestParametersFunctionExpression(target=es5).types b/tests/baselines/reference/emitRestParametersFunctionExpression(target=es5).types new file mode 100644 index 0000000000000..927068234dc9f --- /dev/null +++ b/tests/baselines/reference/emitRestParametersFunctionExpression(target=es5).types @@ -0,0 +1,41 @@ +//// [tests/cases/conformance/es6/restParameters/emitRestParametersFunctionExpression.ts] //// + +=== emitRestParametersFunctionExpression.ts === +var funcExp = (...rest) => { } +>funcExp : (...rest: any[]) => void +> : ^^^^ ^^^^^^^^^^^^^^^^ +>(...rest) => { } : (...rest: any[]) => void +> : ^^^^ ^^^^^^^^^^^^^^^^ +>rest : any[] +> : ^^^^^ + +var funcExp1 = (X: number, ...rest) => { } +>funcExp1 : (X: number, ...rest: any[]) => void +> : ^ ^^ ^^^^^ ^^^^^^^^^^^^^^^^ +>(X: number, ...rest) => { } : (X: number, ...rest: any[]) => void +> : ^ ^^ ^^^^^ ^^^^^^^^^^^^^^^^ +>X : number +> : ^^^^^^ +>rest : any[] +> : ^^^^^ + +var funcExp2 = function (...rest) { } +>funcExp2 : (...rest: any[]) => void +> : ^^^^ ^^^^^^^^^^^^^^^^ +>function (...rest) { } : (...rest: any[]) => void +> : ^^^^ ^^^^^^^^^^^^^^^^ +>rest : any[] +> : ^^^^^ + +var funcExp3 = (function (...rest) { })() +>funcExp3 : void +> : ^^^^ +>(function (...rest) { })() : void +> : ^^^^ +>(function (...rest) { }) : () => void +> : ^^^^^^^^^^ +>function (...rest) { } : () => void +> : ^^^^^^^^^^ +>rest : [] +> : ^^ + diff --git a/tests/baselines/reference/emitRestParametersFunctionProperty(target=es2015).js b/tests/baselines/reference/emitRestParametersFunctionProperty(target=es2015).js new file mode 100644 index 0000000000000..5b70da167a5fe --- /dev/null +++ b/tests/baselines/reference/emitRestParametersFunctionProperty(target=es2015).js @@ -0,0 +1,16 @@ +//// [tests/cases/conformance/es6/restParameters/emitRestParametersFunctionProperty.ts] //// + +//// [emitRestParametersFunctionProperty.ts] +var obj: { + func1: (...rest) => void +} + +var obj2 = { + func(...rest) { } +} + +//// [emitRestParametersFunctionProperty.js] +var obj; +var obj2 = { + func(...rest) { } +}; diff --git a/tests/baselines/reference/emitRestParametersFunctionProperty.symbols b/tests/baselines/reference/emitRestParametersFunctionProperty(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/emitRestParametersFunctionProperty.symbols rename to tests/baselines/reference/emitRestParametersFunctionProperty(target=es2015).symbols diff --git a/tests/baselines/reference/emitRestParametersFunctionProperty.types b/tests/baselines/reference/emitRestParametersFunctionProperty(target=es2015).types similarity index 100% rename from tests/baselines/reference/emitRestParametersFunctionProperty.types rename to tests/baselines/reference/emitRestParametersFunctionProperty(target=es2015).types diff --git a/tests/baselines/reference/emitRestParametersFunctionProperty.js b/tests/baselines/reference/emitRestParametersFunctionProperty(target=es5).js similarity index 100% rename from tests/baselines/reference/emitRestParametersFunctionProperty.js rename to tests/baselines/reference/emitRestParametersFunctionProperty(target=es5).js diff --git a/tests/baselines/reference/emitRestParametersFunctionProperty(target=es5).symbols b/tests/baselines/reference/emitRestParametersFunctionProperty(target=es5).symbols new file mode 100644 index 0000000000000..c5ade5f7d7658 --- /dev/null +++ b/tests/baselines/reference/emitRestParametersFunctionProperty(target=es5).symbols @@ -0,0 +1,18 @@ +//// [tests/cases/conformance/es6/restParameters/emitRestParametersFunctionProperty.ts] //// + +=== emitRestParametersFunctionProperty.ts === +var obj: { +>obj : Symbol(obj, Decl(emitRestParametersFunctionProperty.ts, 0, 3)) + + func1: (...rest) => void +>func1 : Symbol(func1, Decl(emitRestParametersFunctionProperty.ts, 0, 10)) +>rest : Symbol(rest, Decl(emitRestParametersFunctionProperty.ts, 1, 12)) +} + +var obj2 = { +>obj2 : Symbol(obj2, Decl(emitRestParametersFunctionProperty.ts, 4, 3)) + + func(...rest) { } +>func : Symbol(func, Decl(emitRestParametersFunctionProperty.ts, 4, 12)) +>rest : Symbol(rest, Decl(emitRestParametersFunctionProperty.ts, 5, 9)) +} diff --git a/tests/baselines/reference/emitRestParametersFunctionProperty(target=es5).types b/tests/baselines/reference/emitRestParametersFunctionProperty(target=es5).types new file mode 100644 index 0000000000000..4b179ff9e85aa --- /dev/null +++ b/tests/baselines/reference/emitRestParametersFunctionProperty(target=es5).types @@ -0,0 +1,26 @@ +//// [tests/cases/conformance/es6/restParameters/emitRestParametersFunctionProperty.ts] //// + +=== emitRestParametersFunctionProperty.ts === +var obj: { +>obj : { func1: (...rest: any) => void; } +> : ^^^^^^^^^ ^^^ ^^^ + + func1: (...rest) => void +>func1 : (...rest: any[]) => void +> : ^^^^ ^^^^^^^^^^^^ +>rest : any[] +> : ^^^^^ +} + +var obj2 = { +>obj2 : { func(...rest: any[]): void; } +> : ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ +>{ func(...rest) { }} : { func(...rest: any[]): void; } +> : ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ + + func(...rest) { } +>func : (...rest: any[]) => void +> : ^^^^ ^^^^^^^^^^^^^^^^ +>rest : any[] +> : ^^^^^ +} diff --git a/tests/baselines/reference/emitRestParametersMethod(target=es2015).js b/tests/baselines/reference/emitRestParametersMethod(target=es2015).js new file mode 100644 index 0000000000000..5b71fd8221509 --- /dev/null +++ b/tests/baselines/reference/emitRestParametersMethod(target=es2015).js @@ -0,0 +1,28 @@ +//// [tests/cases/conformance/es6/restParameters/emitRestParametersMethod.ts] //// + +//// [emitRestParametersMethod.ts] +class C { + constructor(name: string, ...rest) { } + + public bar(...rest) { } + public foo(x: number, ...rest) { } +} + +class D { + constructor(...rest) { } + + public bar(...rest) { } + public foo(x: number, ...rest) { } +} + +//// [emitRestParametersMethod.js] +class C { + constructor(name, ...rest) { } + bar(...rest) { } + foo(x, ...rest) { } +} +class D { + constructor(...rest) { } + bar(...rest) { } + foo(x, ...rest) { } +} diff --git a/tests/baselines/reference/emitRestParametersMethod.symbols b/tests/baselines/reference/emitRestParametersMethod(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/emitRestParametersMethod.symbols rename to tests/baselines/reference/emitRestParametersMethod(target=es2015).symbols diff --git a/tests/baselines/reference/emitRestParametersMethod.types b/tests/baselines/reference/emitRestParametersMethod(target=es2015).types similarity index 100% rename from tests/baselines/reference/emitRestParametersMethod.types rename to tests/baselines/reference/emitRestParametersMethod(target=es2015).types diff --git a/tests/baselines/reference/emitRestParametersMethod.js b/tests/baselines/reference/emitRestParametersMethod(target=es5).js similarity index 100% rename from tests/baselines/reference/emitRestParametersMethod.js rename to tests/baselines/reference/emitRestParametersMethod(target=es5).js diff --git a/tests/baselines/reference/emitRestParametersMethod(target=es5).symbols b/tests/baselines/reference/emitRestParametersMethod(target=es5).symbols new file mode 100644 index 0000000000000..bff2341baabe1 --- /dev/null +++ b/tests/baselines/reference/emitRestParametersMethod(target=es5).symbols @@ -0,0 +1,35 @@ +//// [tests/cases/conformance/es6/restParameters/emitRestParametersMethod.ts] //// + +=== emitRestParametersMethod.ts === +class C { +>C : Symbol(C, Decl(emitRestParametersMethod.ts, 0, 0)) + + constructor(name: string, ...rest) { } +>name : Symbol(name, Decl(emitRestParametersMethod.ts, 1, 16)) +>rest : Symbol(rest, Decl(emitRestParametersMethod.ts, 1, 29)) + + public bar(...rest) { } +>bar : Symbol(C.bar, Decl(emitRestParametersMethod.ts, 1, 42)) +>rest : Symbol(rest, Decl(emitRestParametersMethod.ts, 3, 15)) + + public foo(x: number, ...rest) { } +>foo : Symbol(C.foo, Decl(emitRestParametersMethod.ts, 3, 27)) +>x : Symbol(x, Decl(emitRestParametersMethod.ts, 4, 15)) +>rest : Symbol(rest, Decl(emitRestParametersMethod.ts, 4, 25)) +} + +class D { +>D : Symbol(D, Decl(emitRestParametersMethod.ts, 5, 1)) + + constructor(...rest) { } +>rest : Symbol(rest, Decl(emitRestParametersMethod.ts, 8, 16)) + + public bar(...rest) { } +>bar : Symbol(D.bar, Decl(emitRestParametersMethod.ts, 8, 28)) +>rest : Symbol(rest, Decl(emitRestParametersMethod.ts, 10, 15)) + + public foo(x: number, ...rest) { } +>foo : Symbol(D.foo, Decl(emitRestParametersMethod.ts, 10, 27)) +>x : Symbol(x, Decl(emitRestParametersMethod.ts, 11, 15)) +>rest : Symbol(rest, Decl(emitRestParametersMethod.ts, 11, 25)) +} diff --git a/tests/baselines/reference/emitRestParametersMethod(target=es5).types b/tests/baselines/reference/emitRestParametersMethod(target=es5).types new file mode 100644 index 0000000000000..6241d26179ed9 --- /dev/null +++ b/tests/baselines/reference/emitRestParametersMethod(target=es5).types @@ -0,0 +1,50 @@ +//// [tests/cases/conformance/es6/restParameters/emitRestParametersMethod.ts] //// + +=== emitRestParametersMethod.ts === +class C { +>C : C +> : ^ + + constructor(name: string, ...rest) { } +>name : string +> : ^^^^^^ +>rest : any[] +> : ^^^^^ + + public bar(...rest) { } +>bar : (...rest: any[]) => void +> : ^^^^ ^^^^^^^^^^^^^^^^ +>rest : any[] +> : ^^^^^ + + public foo(x: number, ...rest) { } +>foo : (x: number, ...rest: any[]) => void +> : ^ ^^ ^^^^^ ^^^^^^^^^^^^^^^^ +>x : number +> : ^^^^^^ +>rest : any[] +> : ^^^^^ +} + +class D { +>D : D +> : ^ + + constructor(...rest) { } +>rest : any[] +> : ^^^^^ + + public bar(...rest) { } +>bar : (...rest: any[]) => void +> : ^^^^ ^^^^^^^^^^^^^^^^ +>rest : any[] +> : ^^^^^ + + public foo(x: number, ...rest) { } +>foo : (x: number, ...rest: any[]) => void +> : ^ ^^ ^^^^^ ^^^^^^^^^^^^^^^^ +>x : number +> : ^^^^^^ +>rest : any[] +> : ^^^^^ +} diff --git a/tests/baselines/reference/emitThisInObjectLiteralGetter(target=es2015).js b/tests/baselines/reference/emitThisInObjectLiteralGetter(target=es2015).js new file mode 100644 index 0000000000000..828cedf64b3a6 --- /dev/null +++ b/tests/baselines/reference/emitThisInObjectLiteralGetter(target=es2015).js @@ -0,0 +1,16 @@ +//// [tests/cases/compiler/emitThisInObjectLiteralGetter.ts] //// + +//// [emitThisInObjectLiteralGetter.ts] +const example = { + get foo() { + return item => this.bar(item); + } +}; + + +//// [emitThisInObjectLiteralGetter.js] +const example = { + get foo() { + return item => this.bar(item); + } +}; diff --git a/tests/baselines/reference/emitThisInObjectLiteralGetter.symbols b/tests/baselines/reference/emitThisInObjectLiteralGetter(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/emitThisInObjectLiteralGetter.symbols rename to tests/baselines/reference/emitThisInObjectLiteralGetter(target=es2015).symbols diff --git a/tests/baselines/reference/emitThisInObjectLiteralGetter.types b/tests/baselines/reference/emitThisInObjectLiteralGetter(target=es2015).types similarity index 100% rename from tests/baselines/reference/emitThisInObjectLiteralGetter.types rename to tests/baselines/reference/emitThisInObjectLiteralGetter(target=es2015).types diff --git a/tests/baselines/reference/emitThisInObjectLiteralGetter.js b/tests/baselines/reference/emitThisInObjectLiteralGetter(target=es5).js similarity index 100% rename from tests/baselines/reference/emitThisInObjectLiteralGetter.js rename to tests/baselines/reference/emitThisInObjectLiteralGetter(target=es5).js diff --git a/tests/baselines/reference/emitThisInObjectLiteralGetter(target=es5).symbols b/tests/baselines/reference/emitThisInObjectLiteralGetter(target=es5).symbols new file mode 100644 index 0000000000000..6f599a5cab7bd --- /dev/null +++ b/tests/baselines/reference/emitThisInObjectLiteralGetter(target=es5).symbols @@ -0,0 +1,15 @@ +//// [tests/cases/compiler/emitThisInObjectLiteralGetter.ts] //// + +=== emitThisInObjectLiteralGetter.ts === +const example = { +>example : Symbol(example, Decl(emitThisInObjectLiteralGetter.ts, 0, 5)) + + get foo() { +>foo : Symbol(foo, Decl(emitThisInObjectLiteralGetter.ts, 0, 17)) + + return item => this.bar(item); +>item : Symbol(item, Decl(emitThisInObjectLiteralGetter.ts, 2, 14)) +>item : Symbol(item, Decl(emitThisInObjectLiteralGetter.ts, 2, 14)) + } +}; + diff --git a/tests/baselines/reference/emitThisInObjectLiteralGetter(target=es5).types b/tests/baselines/reference/emitThisInObjectLiteralGetter(target=es5).types new file mode 100644 index 0000000000000..9b6084af63471 --- /dev/null +++ b/tests/baselines/reference/emitThisInObjectLiteralGetter(target=es5).types @@ -0,0 +1,27 @@ +//// [tests/cases/compiler/emitThisInObjectLiteralGetter.ts] //// + +=== emitThisInObjectLiteralGetter.ts === +const example = { +>example : { readonly foo: (item: any) => any; } +> : ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ +>{ get foo() { return item => this.bar(item); }} : { readonly foo: (item: any) => any; } +> : ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ + + get foo() { +>foo : (item: any) => any +> : ^ ^^^^^^^^^^^^^ + + return item => this.bar(item); +>item => this.bar(item) : (item: any) => any +> : ^ ^^^^^^^^^^^^^ +>item : any +>this.bar(item) : any +>this.bar : any +>this : any +> : ^^^ +>bar : any +> : ^^^ +>item : any + } +}; + diff --git a/tests/baselines/reference/emitter.asyncGenerators.classMethods.es5(target=es2015).js b/tests/baselines/reference/emitter.asyncGenerators.classMethods.es5(target=es2015).js new file mode 100644 index 0000000000000..1f3c979593917 --- /dev/null +++ b/tests/baselines/reference/emitter.asyncGenerators.classMethods.es5(target=es2015).js @@ -0,0 +1,282 @@ +//// [tests/cases/conformance/emitter/es5/asyncGenerators/emitter.asyncGenerators.classMethods.es5.ts] //// + +//// [C1.ts] +class C1 { + async * f() { + } +} +//// [C2.ts] +class C2 { + async * f() { + const x = yield; + } +} +//// [C3.ts] +class C3 { + async * f() { + const x = yield 1; + } +} +//// [C4.ts] +class C4 { + async * f() { + const x = yield* [1]; + } +} +//// [C5.ts] +class C5 { + async * f() { + const x = yield* (async function*() { yield 1; })(); + } +} +//// [C6.ts] +class C6 { + async * f() { + const x = await 1; + } +} +//// [C7.ts] +class C7 { + async * f() { + return 1; + } +} +//// [C8.ts] +class C8 { + g() { + } + async * f() { + this.g(); + } +} +//// [C9.ts] +class B9 { + g() {} +} +class C9 extends B9 { + async * f() { + super.g(); + } +} + + +//// [C1.js] +var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); } +var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } +}; +class C1 { + f() { + return __asyncGenerator(this, arguments, function* f_1() { + }); + } +} +//// [C2.js] +var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); } +var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } +}; +class C2 { + f() { + return __asyncGenerator(this, arguments, function* f_1() { + const x = yield yield __await(void 0); + }); + } +} +//// [C3.js] +var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); } +var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } +}; +class C3 { + f() { + return __asyncGenerator(this, arguments, function* f_1() { + const x = yield yield __await(1); + }); + } +} +//// [C4.js] +var __asyncValues = (this && this.__asyncValues) || function (o) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var m = o[Symbol.asyncIterator], i; + return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); + function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } + function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } +}; +var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); } +var __asyncDelegator = (this && this.__asyncDelegator) || function (o) { + var i, p; + return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; + function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; } +}; +var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } +}; +class C4 { + f() { + return __asyncGenerator(this, arguments, function* f_1() { + const x = yield __await(yield* __asyncDelegator(__asyncValues([1]))); + }); + } +} +//// [C5.js] +var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); } +var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } +}; +var __asyncValues = (this && this.__asyncValues) || function (o) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var m = o[Symbol.asyncIterator], i; + return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); + function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } + function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } +}; +var __asyncDelegator = (this && this.__asyncDelegator) || function (o) { + var i, p; + return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; + function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; } +}; +class C5 { + f() { + return __asyncGenerator(this, arguments, function* f_1() { + const x = yield __await(yield* __asyncDelegator(__asyncValues((function () { return __asyncGenerator(this, arguments, function* () { yield yield __await(1); }); })()))); + }); + } +} +//// [C6.js] +var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); } +var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } +}; +class C6 { + f() { + return __asyncGenerator(this, arguments, function* f_1() { + const x = yield __await(1); + }); + } +} +//// [C7.js] +var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); } +var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } +}; +class C7 { + f() { + return __asyncGenerator(this, arguments, function* f_1() { + return yield __await(1); + }); + } +} +//// [C8.js] +var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); } +var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } +}; +class C8 { + g() { + } + f() { + return __asyncGenerator(this, arguments, function* f_1() { + this.g(); + }); + } +} +//// [C9.js] +var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); } +var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } +}; +class B9 { + g() { } +} +class C9 extends B9 { + f() { + const _super = Object.create(null, { + g: { get: () => super.g } + }); + return __asyncGenerator(this, arguments, function* f_1() { + _super.g.call(this); + }); + } +} diff --git a/tests/baselines/reference/emitter.asyncGenerators.classMethods.es5.symbols b/tests/baselines/reference/emitter.asyncGenerators.classMethods.es5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/emitter.asyncGenerators.classMethods.es5.symbols rename to tests/baselines/reference/emitter.asyncGenerators.classMethods.es5(target=es2015).symbols diff --git a/tests/baselines/reference/emitter.asyncGenerators.classMethods.es5.types b/tests/baselines/reference/emitter.asyncGenerators.classMethods.es5(target=es2015).types similarity index 100% rename from tests/baselines/reference/emitter.asyncGenerators.classMethods.es5.types rename to tests/baselines/reference/emitter.asyncGenerators.classMethods.es5(target=es2015).types diff --git a/tests/baselines/reference/emitter.asyncGenerators.classMethods.es5.js b/tests/baselines/reference/emitter.asyncGenerators.classMethods.es5(target=es5).js similarity index 100% rename from tests/baselines/reference/emitter.asyncGenerators.classMethods.es5.js rename to tests/baselines/reference/emitter.asyncGenerators.classMethods.es5(target=es5).js diff --git a/tests/baselines/reference/emitter.asyncGenerators.classMethods.es5(target=es5).symbols b/tests/baselines/reference/emitter.asyncGenerators.classMethods.es5(target=es5).symbols new file mode 100644 index 0000000000000..abda152f83051 --- /dev/null +++ b/tests/baselines/reference/emitter.asyncGenerators.classMethods.es5(target=es5).symbols @@ -0,0 +1,112 @@ +//// [tests/cases/conformance/emitter/es5/asyncGenerators/emitter.asyncGenerators.classMethods.es5.ts] //// + +=== C1.ts === +class C1 { +>C1 : Symbol(C1, Decl(C1.ts, 0, 0)) + + async * f() { +>f : Symbol(C1.f, Decl(C1.ts, 0, 10)) + } +} +=== C2.ts === +class C2 { +>C2 : Symbol(C2, Decl(C2.ts, 0, 0)) + + async * f() { +>f : Symbol(C2.f, Decl(C2.ts, 0, 10)) + + const x = yield; +>x : Symbol(x, Decl(C2.ts, 2, 13)) + } +} +=== C3.ts === +class C3 { +>C3 : Symbol(C3, Decl(C3.ts, 0, 0)) + + async * f() { +>f : Symbol(C3.f, Decl(C3.ts, 0, 10)) + + const x = yield 1; +>x : Symbol(x, Decl(C3.ts, 2, 13)) + } +} +=== C4.ts === +class C4 { +>C4 : Symbol(C4, Decl(C4.ts, 0, 0)) + + async * f() { +>f : Symbol(C4.f, Decl(C4.ts, 0, 10)) + + const x = yield* [1]; +>x : Symbol(x, Decl(C4.ts, 2, 13)) + } +} +=== C5.ts === +class C5 { +>C5 : Symbol(C5, Decl(C5.ts, 0, 0)) + + async * f() { +>f : Symbol(C5.f, Decl(C5.ts, 0, 10)) + + const x = yield* (async function*() { yield 1; })(); +>x : Symbol(x, Decl(C5.ts, 2, 13)) + } +} +=== C6.ts === +class C6 { +>C6 : Symbol(C6, Decl(C6.ts, 0, 0)) + + async * f() { +>f : Symbol(C6.f, Decl(C6.ts, 0, 10)) + + const x = await 1; +>x : Symbol(x, Decl(C6.ts, 2, 13)) + } +} +=== C7.ts === +class C7 { +>C7 : Symbol(C7, Decl(C7.ts, 0, 0)) + + async * f() { +>f : Symbol(C7.f, Decl(C7.ts, 0, 10)) + + return 1; + } +} +=== C8.ts === +class C8 { +>C8 : Symbol(C8, Decl(C8.ts, 0, 0)) + + g() { +>g : Symbol(C8.g, Decl(C8.ts, 0, 10)) + } + async * f() { +>f : Symbol(C8.f, Decl(C8.ts, 2, 5)) + + this.g(); +>this.g : Symbol(C8.g, Decl(C8.ts, 0, 10)) +>this : Symbol(C8, Decl(C8.ts, 0, 0)) +>g : Symbol(C8.g, Decl(C8.ts, 0, 10)) + } +} +=== C9.ts === +class B9 { +>B9 : Symbol(B9, Decl(C9.ts, 0, 0)) + + g() {} +>g : Symbol(B9.g, Decl(C9.ts, 0, 10)) +} +class C9 extends B9 { +>C9 : Symbol(C9, Decl(C9.ts, 2, 1)) +>B9 : Symbol(B9, Decl(C9.ts, 0, 0)) + + async * f() { +>f : Symbol(C9.f, Decl(C9.ts, 3, 21)) + + super.g(); +>super.g : Symbol(B9.g, Decl(C9.ts, 0, 10)) +>super : Symbol(B9, Decl(C9.ts, 0, 0)) +>g : Symbol(B9.g, Decl(C9.ts, 0, 10)) + } +} + diff --git a/tests/baselines/reference/emitter.asyncGenerators.classMethods.es5(target=es5).types b/tests/baselines/reference/emitter.asyncGenerators.classMethods.es5(target=es5).types new file mode 100644 index 0000000000000..b11c7c75fa475 --- /dev/null +++ b/tests/baselines/reference/emitter.asyncGenerators.classMethods.es5(target=es5).types @@ -0,0 +1,172 @@ +//// [tests/cases/conformance/emitter/es5/asyncGenerators/emitter.asyncGenerators.classMethods.es5.ts] //// + +=== C1.ts === +class C1 { +>C1 : C1 +> : ^^ + + async * f() { +>f : () => AsyncGenerator +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + } +} +=== C2.ts === +class C2 { +>C2 : C2 +> : ^^ + + async * f() { +>f : () => AsyncGenerator +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + const x = yield; +>x : any +>yield : any + } +} +=== C3.ts === +class C3 { +>C3 : C3 +> : ^^ + + async * f() { +>f : () => AsyncGenerator +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + const x = yield 1; +>x : any +>yield 1 : any +>1 : 1 +> : ^ + } +} +=== C4.ts === +class C4 { +>C4 : C4 +> : ^^ + + async * f() { +>f : () => AsyncGenerator +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + const x = yield* [1]; +>x : any +>yield* [1] : any +>[1] : number[] +> : ^^^^^^^^ +>1 : 1 +> : ^ + } +} +=== C5.ts === +class C5 { +>C5 : C5 +> : ^^ + + async * f() { +>f : () => AsyncGenerator +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + const x = yield* (async function*() { yield 1; })(); +>x : void +> : ^^^^ +>yield* (async function*() { yield 1; })() : void +> : ^^^^ +>(async function*() { yield 1; })() : AsyncGenerator +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>(async function*() { yield 1; }) : () => AsyncGenerator +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>async function*() { yield 1; } : () => AsyncGenerator +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>yield 1 : any +>1 : 1 +> : ^ + } +} +=== C6.ts === +class C6 { +>C6 : C6 +> : ^^ + + async * f() { +>f : () => AsyncGenerator +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + const x = await 1; +>x : 1 +> : ^ +>await 1 : 1 +> : ^ +>1 : 1 +> : ^ + } +} +=== C7.ts === +class C7 { +>C7 : C7 +> : ^^ + + async * f() { +>f : () => AsyncGenerator +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + return 1; +>1 : 1 +> : ^ + } +} +=== C8.ts === +class C8 { +>C8 : C8 +> : ^^ + + g() { +>g : () => void +> : ^^^^^^^^^^ + } + async * f() { +>f : () => AsyncGenerator +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + this.g(); +>this.g() : void +> : ^^^^ +>this.g : () => void +> : ^^^^^^^^^^ +>this : this +> : ^^^^ +>g : () => void +> : ^^^^^^^^^^ + } +} +=== C9.ts === +class B9 { +>B9 : B9 +> : ^^ + + g() {} +>g : () => void +> : ^^^^^^^^^^ +} +class C9 extends B9 { +>C9 : C9 +> : ^^ +>B9 : B9 +> : ^^ + + async * f() { +>f : () => AsyncGenerator +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + super.g(); +>super.g() : void +> : ^^^^ +>super.g : () => void +> : ^^^^^^^^^^ +>super : B9 +> : ^^ +>g : () => void +> : ^^^^^^^^^^ + } +} + diff --git a/tests/baselines/reference/emitter.asyncGenerators.functionDeclarations.es5(target=es2015).js b/tests/baselines/reference/emitter.asyncGenerators.functionDeclarations.es5(target=es2015).js new file mode 100644 index 0000000000000..fd56ad962e917 --- /dev/null +++ b/tests/baselines/reference/emitter.asyncGenerators.functionDeclarations.es5(target=es2015).js @@ -0,0 +1,187 @@ +//// [tests/cases/conformance/emitter/es5/asyncGenerators/emitter.asyncGenerators.functionDeclarations.es5.ts] //// + +//// [F1.ts] +async function * f1() { +} +//// [F2.ts] +async function * f2() { + const x = yield; +} +//// [F3.ts] +async function * f3() { + const x = yield 1; +} +//// [F4.ts] +async function * f4() { + const x = yield* [1]; +} +//// [F5.ts] +async function * f5() { + const x = yield* (async function*() { yield 1; })(); +} +//// [F6.ts] +async function * f6() { + const x = await 1; +} +//// [F7.ts] +async function * f7() { + return 1; +} + + +//// [F1.js] +var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); } +var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } +}; +function f1() { + return __asyncGenerator(this, arguments, function* f1_1() { + }); +} +//// [F2.js] +var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); } +var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } +}; +function f2() { + return __asyncGenerator(this, arguments, function* f2_1() { + const x = yield yield __await(void 0); + }); +} +//// [F3.js] +var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); } +var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } +}; +function f3() { + return __asyncGenerator(this, arguments, function* f3_1() { + const x = yield yield __await(1); + }); +} +//// [F4.js] +var __asyncValues = (this && this.__asyncValues) || function (o) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var m = o[Symbol.asyncIterator], i; + return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); + function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } + function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } +}; +var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); } +var __asyncDelegator = (this && this.__asyncDelegator) || function (o) { + var i, p; + return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; + function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; } +}; +var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } +}; +function f4() { + return __asyncGenerator(this, arguments, function* f4_1() { + const x = yield __await(yield* __asyncDelegator(__asyncValues([1]))); + }); +} +//// [F5.js] +var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); } +var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } +}; +var __asyncValues = (this && this.__asyncValues) || function (o) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var m = o[Symbol.asyncIterator], i; + return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); + function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } + function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } +}; +var __asyncDelegator = (this && this.__asyncDelegator) || function (o) { + var i, p; + return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; + function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; } +}; +function f5() { + return __asyncGenerator(this, arguments, function* f5_1() { + const x = yield __await(yield* __asyncDelegator(__asyncValues((function () { return __asyncGenerator(this, arguments, function* () { yield yield __await(1); }); })()))); + }); +} +//// [F6.js] +var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); } +var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } +}; +function f6() { + return __asyncGenerator(this, arguments, function* f6_1() { + const x = yield __await(1); + }); +} +//// [F7.js] +var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); } +var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } +}; +function f7() { + return __asyncGenerator(this, arguments, function* f7_1() { + return yield __await(1); + }); +} diff --git a/tests/baselines/reference/emitter.asyncGenerators.functionDeclarations.es5.symbols b/tests/baselines/reference/emitter.asyncGenerators.functionDeclarations.es5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/emitter.asyncGenerators.functionDeclarations.es5.symbols rename to tests/baselines/reference/emitter.asyncGenerators.functionDeclarations.es5(target=es2015).symbols diff --git a/tests/baselines/reference/emitter.asyncGenerators.functionDeclarations.es5.types b/tests/baselines/reference/emitter.asyncGenerators.functionDeclarations.es5(target=es2015).types similarity index 100% rename from tests/baselines/reference/emitter.asyncGenerators.functionDeclarations.es5.types rename to tests/baselines/reference/emitter.asyncGenerators.functionDeclarations.es5(target=es2015).types diff --git a/tests/baselines/reference/emitter.asyncGenerators.functionDeclarations.es5.js b/tests/baselines/reference/emitter.asyncGenerators.functionDeclarations.es5(target=es5).js similarity index 100% rename from tests/baselines/reference/emitter.asyncGenerators.functionDeclarations.es5.js rename to tests/baselines/reference/emitter.asyncGenerators.functionDeclarations.es5(target=es5).js diff --git a/tests/baselines/reference/emitter.asyncGenerators.functionDeclarations.es5(target=es5).symbols b/tests/baselines/reference/emitter.asyncGenerators.functionDeclarations.es5(target=es5).symbols new file mode 100644 index 0000000000000..ac81b3699d488 --- /dev/null +++ b/tests/baselines/reference/emitter.asyncGenerators.functionDeclarations.es5(target=es5).symbols @@ -0,0 +1,48 @@ +//// [tests/cases/conformance/emitter/es5/asyncGenerators/emitter.asyncGenerators.functionDeclarations.es5.ts] //// + +=== F1.ts === +async function * f1() { +>f1 : Symbol(f1, Decl(F1.ts, 0, 0)) +} +=== F2.ts === +async function * f2() { +>f2 : Symbol(f2, Decl(F2.ts, 0, 0)) + + const x = yield; +>x : Symbol(x, Decl(F2.ts, 1, 9)) +} +=== F3.ts === +async function * f3() { +>f3 : Symbol(f3, Decl(F3.ts, 0, 0)) + + const x = yield 1; +>x : Symbol(x, Decl(F3.ts, 1, 9)) +} +=== F4.ts === +async function * f4() { +>f4 : Symbol(f4, Decl(F4.ts, 0, 0)) + + const x = yield* [1]; +>x : Symbol(x, Decl(F4.ts, 1, 9)) +} +=== F5.ts === +async function * f5() { +>f5 : Symbol(f5, Decl(F5.ts, 0, 0)) + + const x = yield* (async function*() { yield 1; })(); +>x : Symbol(x, Decl(F5.ts, 1, 9)) +} +=== F6.ts === +async function * f6() { +>f6 : Symbol(f6, Decl(F6.ts, 0, 0)) + + const x = await 1; +>x : Symbol(x, Decl(F6.ts, 1, 9)) +} +=== F7.ts === +async function * f7() { +>f7 : Symbol(f7, Decl(F7.ts, 0, 0)) + + return 1; +} + diff --git a/tests/baselines/reference/emitter.asyncGenerators.functionDeclarations.es5(target=es5).types b/tests/baselines/reference/emitter.asyncGenerators.functionDeclarations.es5(target=es5).types new file mode 100644 index 0000000000000..3489a92210c5e --- /dev/null +++ b/tests/baselines/reference/emitter.asyncGenerators.functionDeclarations.es5(target=es5).types @@ -0,0 +1,83 @@ +//// [tests/cases/conformance/emitter/es5/asyncGenerators/emitter.asyncGenerators.functionDeclarations.es5.ts] //// + +=== F1.ts === +async function * f1() { +>f1 : () => AsyncGenerator +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +} +=== F2.ts === +async function * f2() { +>f2 : () => AsyncGenerator +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + const x = yield; +>x : any +>yield : any +} +=== F3.ts === +async function * f3() { +>f3 : () => AsyncGenerator +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + const x = yield 1; +>x : any +>yield 1 : any +>1 : 1 +> : ^ +} +=== F4.ts === +async function * f4() { +>f4 : () => AsyncGenerator +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + const x = yield* [1]; +>x : any +>yield* [1] : any +>[1] : number[] +> : ^^^^^^^^ +>1 : 1 +> : ^ +} +=== F5.ts === +async function * f5() { +>f5 : () => AsyncGenerator +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + const x = yield* (async function*() { yield 1; })(); +>x : void +> : ^^^^ +>yield* (async function*() { yield 1; })() : void +> : ^^^^ +>(async function*() { yield 1; })() : AsyncGenerator +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>(async function*() { yield 1; }) : () => AsyncGenerator +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>async function*() { yield 1; } : () => AsyncGenerator +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>yield 1 : any +>1 : 1 +> : ^ +} +=== F6.ts === +async function * f6() { +>f6 : () => AsyncGenerator +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + const x = await 1; +>x : 1 +> : ^ +>await 1 : 1 +> : ^ +>1 : 1 +> : ^ +} +=== F7.ts === +async function * f7() { +>f7 : () => AsyncGenerator +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + return 1; +>1 : 1 +> : ^ +} + diff --git a/tests/baselines/reference/emitter.asyncGenerators.functionExpressions.es5(target=es2015).js b/tests/baselines/reference/emitter.asyncGenerators.functionExpressions.es5(target=es2015).js new file mode 100644 index 0000000000000..2891ae8e91416 --- /dev/null +++ b/tests/baselines/reference/emitter.asyncGenerators.functionExpressions.es5(target=es2015).js @@ -0,0 +1,187 @@ +//// [tests/cases/conformance/emitter/es5/asyncGenerators/emitter.asyncGenerators.functionExpressions.es5.ts] //// + +//// [F1.ts] +const f1 = async function * () { +} +//// [F2.ts] +const f2 = async function * () { + const x = yield; +} +//// [F3.ts] +const f3 = async function * () { + const x = yield 1; +} +//// [F4.ts] +const f4 = async function * () { + const x = yield* [1]; +} +//// [F5.ts] +const f5 = async function * () { + const x = yield* (async function*() { yield 1; })(); +} +//// [F6.ts] +const f6 = async function * () { + const x = await 1; +} +//// [F7.ts] +const f7 = async function * () { + return 1; +} + + +//// [F1.js] +var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); } +var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } +}; +const f1 = function () { + return __asyncGenerator(this, arguments, function* () { + }); +}; +//// [F2.js] +var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); } +var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } +}; +const f2 = function () { + return __asyncGenerator(this, arguments, function* () { + const x = yield yield __await(void 0); + }); +}; +//// [F3.js] +var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); } +var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } +}; +const f3 = function () { + return __asyncGenerator(this, arguments, function* () { + const x = yield yield __await(1); + }); +}; +//// [F4.js] +var __asyncValues = (this && this.__asyncValues) || function (o) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var m = o[Symbol.asyncIterator], i; + return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); + function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } + function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } +}; +var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); } +var __asyncDelegator = (this && this.__asyncDelegator) || function (o) { + var i, p; + return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; + function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; } +}; +var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } +}; +const f4 = function () { + return __asyncGenerator(this, arguments, function* () { + const x = yield __await(yield* __asyncDelegator(__asyncValues([1]))); + }); +}; +//// [F5.js] +var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); } +var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } +}; +var __asyncValues = (this && this.__asyncValues) || function (o) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var m = o[Symbol.asyncIterator], i; + return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); + function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } + function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } +}; +var __asyncDelegator = (this && this.__asyncDelegator) || function (o) { + var i, p; + return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; + function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; } +}; +const f5 = function () { + return __asyncGenerator(this, arguments, function* () { + const x = yield __await(yield* __asyncDelegator(__asyncValues((function () { return __asyncGenerator(this, arguments, function* () { yield yield __await(1); }); })()))); + }); +}; +//// [F6.js] +var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); } +var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } +}; +const f6 = function () { + return __asyncGenerator(this, arguments, function* () { + const x = yield __await(1); + }); +}; +//// [F7.js] +var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); } +var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } +}; +const f7 = function () { + return __asyncGenerator(this, arguments, function* () { + return yield __await(1); + }); +}; diff --git a/tests/baselines/reference/emitter.asyncGenerators.functionExpressions.es5.symbols b/tests/baselines/reference/emitter.asyncGenerators.functionExpressions.es5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/emitter.asyncGenerators.functionExpressions.es5.symbols rename to tests/baselines/reference/emitter.asyncGenerators.functionExpressions.es5(target=es2015).symbols diff --git a/tests/baselines/reference/emitter.asyncGenerators.functionExpressions.es5.types b/tests/baselines/reference/emitter.asyncGenerators.functionExpressions.es5(target=es2015).types similarity index 100% rename from tests/baselines/reference/emitter.asyncGenerators.functionExpressions.es5.types rename to tests/baselines/reference/emitter.asyncGenerators.functionExpressions.es5(target=es2015).types diff --git a/tests/baselines/reference/emitter.asyncGenerators.functionExpressions.es5.js b/tests/baselines/reference/emitter.asyncGenerators.functionExpressions.es5(target=es5).js similarity index 100% rename from tests/baselines/reference/emitter.asyncGenerators.functionExpressions.es5.js rename to tests/baselines/reference/emitter.asyncGenerators.functionExpressions.es5(target=es5).js diff --git a/tests/baselines/reference/emitter.asyncGenerators.functionExpressions.es5(target=es5).symbols b/tests/baselines/reference/emitter.asyncGenerators.functionExpressions.es5(target=es5).symbols new file mode 100644 index 0000000000000..4a65c3d53542c --- /dev/null +++ b/tests/baselines/reference/emitter.asyncGenerators.functionExpressions.es5(target=es5).symbols @@ -0,0 +1,48 @@ +//// [tests/cases/conformance/emitter/es5/asyncGenerators/emitter.asyncGenerators.functionExpressions.es5.ts] //// + +=== F1.ts === +const f1 = async function * () { +>f1 : Symbol(f1, Decl(F1.ts, 0, 5)) +} +=== F2.ts === +const f2 = async function * () { +>f2 : Symbol(f2, Decl(F2.ts, 0, 5)) + + const x = yield; +>x : Symbol(x, Decl(F2.ts, 1, 9)) +} +=== F3.ts === +const f3 = async function * () { +>f3 : Symbol(f3, Decl(F3.ts, 0, 5)) + + const x = yield 1; +>x : Symbol(x, Decl(F3.ts, 1, 9)) +} +=== F4.ts === +const f4 = async function * () { +>f4 : Symbol(f4, Decl(F4.ts, 0, 5)) + + const x = yield* [1]; +>x : Symbol(x, Decl(F4.ts, 1, 9)) +} +=== F5.ts === +const f5 = async function * () { +>f5 : Symbol(f5, Decl(F5.ts, 0, 5)) + + const x = yield* (async function*() { yield 1; })(); +>x : Symbol(x, Decl(F5.ts, 1, 9)) +} +=== F6.ts === +const f6 = async function * () { +>f6 : Symbol(f6, Decl(F6.ts, 0, 5)) + + const x = await 1; +>x : Symbol(x, Decl(F6.ts, 1, 9)) +} +=== F7.ts === +const f7 = async function * () { +>f7 : Symbol(f7, Decl(F7.ts, 0, 5)) + + return 1; +} + diff --git a/tests/baselines/reference/emitter.asyncGenerators.functionExpressions.es5(target=es5).types b/tests/baselines/reference/emitter.asyncGenerators.functionExpressions.es5(target=es5).types new file mode 100644 index 0000000000000..ff2dc953caf2b --- /dev/null +++ b/tests/baselines/reference/emitter.asyncGenerators.functionExpressions.es5(target=es5).types @@ -0,0 +1,97 @@ +//// [tests/cases/conformance/emitter/es5/asyncGenerators/emitter.asyncGenerators.functionExpressions.es5.ts] //// + +=== F1.ts === +const f1 = async function * () { +>f1 : () => AsyncGenerator +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>async function * () {} : () => AsyncGenerator +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +} +=== F2.ts === +const f2 = async function * () { +>f2 : () => AsyncGenerator +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>async function * () { const x = yield;} : () => AsyncGenerator +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + const x = yield; +>x : any +>yield : any +} +=== F3.ts === +const f3 = async function * () { +>f3 : () => AsyncGenerator +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>async function * () { const x = yield 1;} : () => AsyncGenerator +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + const x = yield 1; +>x : any +>yield 1 : any +>1 : 1 +> : ^ +} +=== F4.ts === +const f4 = async function * () { +>f4 : () => AsyncGenerator +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>async function * () { const x = yield* [1];} : () => AsyncGenerator +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + const x = yield* [1]; +>x : any +>yield* [1] : any +>[1] : number[] +> : ^^^^^^^^ +>1 : 1 +> : ^ +} +=== F5.ts === +const f5 = async function * () { +>f5 : () => AsyncGenerator +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>async function * () { const x = yield* (async function*() { yield 1; })();} : () => AsyncGenerator +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + const x = yield* (async function*() { yield 1; })(); +>x : void +> : ^^^^ +>yield* (async function*() { yield 1; })() : void +> : ^^^^ +>(async function*() { yield 1; })() : AsyncGenerator +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>(async function*() { yield 1; }) : () => AsyncGenerator +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>async function*() { yield 1; } : () => AsyncGenerator +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>yield 1 : any +>1 : 1 +> : ^ +} +=== F6.ts === +const f6 = async function * () { +>f6 : () => AsyncGenerator +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>async function * () { const x = await 1;} : () => AsyncGenerator +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + const x = await 1; +>x : 1 +> : ^ +>await 1 : 1 +> : ^ +>1 : 1 +> : ^ +} +=== F7.ts === +const f7 = async function * () { +>f7 : () => AsyncGenerator +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>async function * () { return 1;} : () => AsyncGenerator +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + return 1; +>1 : 1 +> : ^ +} + diff --git a/tests/baselines/reference/emitter.asyncGenerators.objectLiteralMethods.es5(target=es2015).js b/tests/baselines/reference/emitter.asyncGenerators.objectLiteralMethods.es5(target=es2015).js new file mode 100644 index 0000000000000..9af6b6d99cd43 --- /dev/null +++ b/tests/baselines/reference/emitter.asyncGenerators.objectLiteralMethods.es5(target=es2015).js @@ -0,0 +1,215 @@ +//// [tests/cases/conformance/emitter/es5/asyncGenerators/emitter.asyncGenerators.objectLiteralMethods.es5.ts] //// + +//// [O1.ts] +const o1 = { + async * f() { + } +} +//// [O2.ts] +const o2 = { + async * f() { + const x = yield; + } +} +//// [O3.ts] +const o3 = { + async * f() { + const x = yield 1; + } +} +//// [O4.ts] +const o4 = { + async * f() { + const x = yield* [1]; + } +} +//// [O5.ts] +const o5 = { + async * f() { + const x = yield* (async function*() { yield 1; })(); + } +} +//// [O6.ts] +const o6 = { + async * f() { + const x = await 1; + } +} +//// [O7.ts] +const o7 = { + async * f() { + return 1; + } +} + + +//// [O1.js] +var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); } +var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } +}; +const o1 = { + f() { + return __asyncGenerator(this, arguments, function* f_1() { + }); + } +}; +//// [O2.js] +var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); } +var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } +}; +const o2 = { + f() { + return __asyncGenerator(this, arguments, function* f_1() { + const x = yield yield __await(void 0); + }); + } +}; +//// [O3.js] +var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); } +var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } +}; +const o3 = { + f() { + return __asyncGenerator(this, arguments, function* f_1() { + const x = yield yield __await(1); + }); + } +}; +//// [O4.js] +var __asyncValues = (this && this.__asyncValues) || function (o) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var m = o[Symbol.asyncIterator], i; + return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); + function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } + function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } +}; +var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); } +var __asyncDelegator = (this && this.__asyncDelegator) || function (o) { + var i, p; + return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; + function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; } +}; +var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } +}; +const o4 = { + f() { + return __asyncGenerator(this, arguments, function* f_1() { + const x = yield __await(yield* __asyncDelegator(__asyncValues([1]))); + }); + } +}; +//// [O5.js] +var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); } +var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } +}; +var __asyncValues = (this && this.__asyncValues) || function (o) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var m = o[Symbol.asyncIterator], i; + return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); + function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } + function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } +}; +var __asyncDelegator = (this && this.__asyncDelegator) || function (o) { + var i, p; + return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; + function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; } +}; +const o5 = { + f() { + return __asyncGenerator(this, arguments, function* f_1() { + const x = yield __await(yield* __asyncDelegator(__asyncValues((function () { return __asyncGenerator(this, arguments, function* () { yield yield __await(1); }); })()))); + }); + } +}; +//// [O6.js] +var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); } +var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } +}; +const o6 = { + f() { + return __asyncGenerator(this, arguments, function* f_1() { + const x = yield __await(1); + }); + } +}; +//// [O7.js] +var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); } +var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } +}; +const o7 = { + f() { + return __asyncGenerator(this, arguments, function* f_1() { + return yield __await(1); + }); + } +}; diff --git a/tests/baselines/reference/emitter.asyncGenerators.objectLiteralMethods.es5.symbols b/tests/baselines/reference/emitter.asyncGenerators.objectLiteralMethods.es5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/emitter.asyncGenerators.objectLiteralMethods.es5.symbols rename to tests/baselines/reference/emitter.asyncGenerators.objectLiteralMethods.es5(target=es2015).symbols diff --git a/tests/baselines/reference/emitter.asyncGenerators.objectLiteralMethods.es5.types b/tests/baselines/reference/emitter.asyncGenerators.objectLiteralMethods.es5(target=es2015).types similarity index 100% rename from tests/baselines/reference/emitter.asyncGenerators.objectLiteralMethods.es5.types rename to tests/baselines/reference/emitter.asyncGenerators.objectLiteralMethods.es5(target=es2015).types diff --git a/tests/baselines/reference/emitter.asyncGenerators.objectLiteralMethods.es5.js b/tests/baselines/reference/emitter.asyncGenerators.objectLiteralMethods.es5(target=es5).js similarity index 100% rename from tests/baselines/reference/emitter.asyncGenerators.objectLiteralMethods.es5.js rename to tests/baselines/reference/emitter.asyncGenerators.objectLiteralMethods.es5(target=es5).js diff --git a/tests/baselines/reference/emitter.asyncGenerators.objectLiteralMethods.es5(target=es5).symbols b/tests/baselines/reference/emitter.asyncGenerators.objectLiteralMethods.es5(target=es5).symbols new file mode 100644 index 0000000000000..d5f215e6a3560 --- /dev/null +++ b/tests/baselines/reference/emitter.asyncGenerators.objectLiteralMethods.es5(target=es5).symbols @@ -0,0 +1,76 @@ +//// [tests/cases/conformance/emitter/es5/asyncGenerators/emitter.asyncGenerators.objectLiteralMethods.es5.ts] //// + +=== O1.ts === +const o1 = { +>o1 : Symbol(o1, Decl(O1.ts, 0, 5)) + + async * f() { +>f : Symbol(f, Decl(O1.ts, 0, 12)) + } +} +=== O2.ts === +const o2 = { +>o2 : Symbol(o2, Decl(O2.ts, 0, 5)) + + async * f() { +>f : Symbol(f, Decl(O2.ts, 0, 12)) + + const x = yield; +>x : Symbol(x, Decl(O2.ts, 2, 13)) + } +} +=== O3.ts === +const o3 = { +>o3 : Symbol(o3, Decl(O3.ts, 0, 5)) + + async * f() { +>f : Symbol(f, Decl(O3.ts, 0, 12)) + + const x = yield 1; +>x : Symbol(x, Decl(O3.ts, 2, 13)) + } +} +=== O4.ts === +const o4 = { +>o4 : Symbol(o4, Decl(O4.ts, 0, 5)) + + async * f() { +>f : Symbol(f, Decl(O4.ts, 0, 12)) + + const x = yield* [1]; +>x : Symbol(x, Decl(O4.ts, 2, 13)) + } +} +=== O5.ts === +const o5 = { +>o5 : Symbol(o5, Decl(O5.ts, 0, 5)) + + async * f() { +>f : Symbol(f, Decl(O5.ts, 0, 12)) + + const x = yield* (async function*() { yield 1; })(); +>x : Symbol(x, Decl(O5.ts, 2, 13)) + } +} +=== O6.ts === +const o6 = { +>o6 : Symbol(o6, Decl(O6.ts, 0, 5)) + + async * f() { +>f : Symbol(f, Decl(O6.ts, 0, 12)) + + const x = await 1; +>x : Symbol(x, Decl(O6.ts, 2, 13)) + } +} +=== O7.ts === +const o7 = { +>o7 : Symbol(o7, Decl(O7.ts, 0, 5)) + + async * f() { +>f : Symbol(f, Decl(O7.ts, 0, 12)) + + return 1; + } +} + diff --git a/tests/baselines/reference/emitter.asyncGenerators.objectLiteralMethods.es5(target=es5).types b/tests/baselines/reference/emitter.asyncGenerators.objectLiteralMethods.es5(target=es5).types new file mode 100644 index 0000000000000..3ffdf9a74569a --- /dev/null +++ b/tests/baselines/reference/emitter.asyncGenerators.objectLiteralMethods.es5(target=es5).types @@ -0,0 +1,132 @@ +//// [tests/cases/conformance/emitter/es5/asyncGenerators/emitter.asyncGenerators.objectLiteralMethods.es5.ts] //// + +=== O1.ts === +const o1 = { +>o1 : { f(): AsyncGenerator; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ async * f() { }} : { f(): AsyncGenerator; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + async * f() { +>f : () => AsyncGenerator +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + } +} +=== O2.ts === +const o2 = { +>o2 : { f(): AsyncGenerator; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ async * f() { const x = yield; }} : { f(): AsyncGenerator; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + async * f() { +>f : () => AsyncGenerator +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + const x = yield; +>x : any +>yield : any + } +} +=== O3.ts === +const o3 = { +>o3 : { f(): AsyncGenerator; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ async * f() { const x = yield 1; }} : { f(): AsyncGenerator; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + async * f() { +>f : () => AsyncGenerator +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + const x = yield 1; +>x : any +>yield 1 : any +>1 : 1 +> : ^ + } +} +=== O4.ts === +const o4 = { +>o4 : { f(): AsyncGenerator; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ async * f() { const x = yield* [1]; }} : { f(): AsyncGenerator; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + async * f() { +>f : () => AsyncGenerator +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + const x = yield* [1]; +>x : any +>yield* [1] : any +>[1] : number[] +> : ^^^^^^^^ +>1 : 1 +> : ^ + } +} +=== O5.ts === +const o5 = { +>o5 : { f(): AsyncGenerator; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ async * f() { const x = yield* (async function*() { yield 1; })(); }} : { f(): AsyncGenerator; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + async * f() { +>f : () => AsyncGenerator +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + const x = yield* (async function*() { yield 1; })(); +>x : void +> : ^^^^ +>yield* (async function*() { yield 1; })() : void +> : ^^^^ +>(async function*() { yield 1; })() : AsyncGenerator +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>(async function*() { yield 1; }) : () => AsyncGenerator +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>async function*() { yield 1; } : () => AsyncGenerator +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>yield 1 : any +>1 : 1 +> : ^ + } +} +=== O6.ts === +const o6 = { +>o6 : { f(): AsyncGenerator; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ async * f() { const x = await 1; }} : { f(): AsyncGenerator; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + async * f() { +>f : () => AsyncGenerator +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + const x = await 1; +>x : 1 +> : ^ +>await 1 : 1 +> : ^ +>1 : 1 +> : ^ + } +} +=== O7.ts === +const o7 = { +>o7 : { f(): AsyncGenerator; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ async * f() { return 1; }} : { f(): AsyncGenerator; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + async * f() { +>f : () => AsyncGenerator +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + return 1; +>1 : 1 +> : ^ + } +} + diff --git a/tests/baselines/reference/emptyAssignmentPatterns01_ES5(target=es2015).js b/tests/baselines/reference/emptyAssignmentPatterns01_ES5(target=es2015).js new file mode 100644 index 0000000000000..57e5548a502ba --- /dev/null +++ b/tests/baselines/reference/emptyAssignmentPatterns01_ES5(target=es2015).js @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/es6/destructuring/emptyAssignmentPatterns01_ES5.ts] //// + +//// [emptyAssignmentPatterns01_ES5.ts] +var a: any; + +({} = a); +([] = a); + +var [,] = [1,2]; + +//// [emptyAssignmentPatterns01_ES5.js] +var a; +({} = a); +([] = a); +var [,] = [1, 2]; + + +//// [emptyAssignmentPatterns01_ES5.d.ts] +declare var a: any; diff --git a/tests/baselines/reference/emptyAssignmentPatterns01_ES5.symbols b/tests/baselines/reference/emptyAssignmentPatterns01_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/emptyAssignmentPatterns01_ES5.symbols rename to tests/baselines/reference/emptyAssignmentPatterns01_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/emptyAssignmentPatterns01_ES5.types b/tests/baselines/reference/emptyAssignmentPatterns01_ES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/emptyAssignmentPatterns01_ES5.types rename to tests/baselines/reference/emptyAssignmentPatterns01_ES5(target=es2015).types diff --git a/tests/baselines/reference/emptyAssignmentPatterns01_ES5.js b/tests/baselines/reference/emptyAssignmentPatterns01_ES5(target=es5).js similarity index 100% rename from tests/baselines/reference/emptyAssignmentPatterns01_ES5.js rename to tests/baselines/reference/emptyAssignmentPatterns01_ES5(target=es5).js diff --git a/tests/baselines/reference/emptyAssignmentPatterns01_ES5(target=es5).symbols b/tests/baselines/reference/emptyAssignmentPatterns01_ES5(target=es5).symbols new file mode 100644 index 0000000000000..6194f137bfa6e --- /dev/null +++ b/tests/baselines/reference/emptyAssignmentPatterns01_ES5(target=es5).symbols @@ -0,0 +1,13 @@ +//// [tests/cases/conformance/es6/destructuring/emptyAssignmentPatterns01_ES5.ts] //// + +=== emptyAssignmentPatterns01_ES5.ts === +var a: any; +>a : Symbol(a, Decl(emptyAssignmentPatterns01_ES5.ts, 0, 3)) + +({} = a); +>a : Symbol(a, Decl(emptyAssignmentPatterns01_ES5.ts, 0, 3)) + +([] = a); +>a : Symbol(a, Decl(emptyAssignmentPatterns01_ES5.ts, 0, 3)) + +var [,] = [1,2]; diff --git a/tests/baselines/reference/emptyAssignmentPatterns01_ES5(target=es5).types b/tests/baselines/reference/emptyAssignmentPatterns01_ES5(target=es5).types new file mode 100644 index 0000000000000..0d1700916dfcc --- /dev/null +++ b/tests/baselines/reference/emptyAssignmentPatterns01_ES5(target=es5).types @@ -0,0 +1,30 @@ +//// [tests/cases/conformance/es6/destructuring/emptyAssignmentPatterns01_ES5.ts] //// + +=== emptyAssignmentPatterns01_ES5.ts === +var a: any; +>a : any + +({} = a); +>({} = a) : any +>{} = a : any +>{} : {} +> : ^^ +>a : any + +([] = a); +>([] = a) : any +>[] = a : any +>[] : [] +> : ^^ +>a : any + +var [,] = [1,2]; +> : undefined +> : ^^^^^^^^^ +>[1,2] : [number, number] +> : ^^^^^^^^^^^^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ + diff --git a/tests/baselines/reference/emptyAssignmentPatterns01_ES5iterable(target=es2015).js b/tests/baselines/reference/emptyAssignmentPatterns01_ES5iterable(target=es2015).js new file mode 100644 index 0000000000000..ecd82a0598178 --- /dev/null +++ b/tests/baselines/reference/emptyAssignmentPatterns01_ES5iterable(target=es2015).js @@ -0,0 +1,16 @@ +//// [tests/cases/conformance/es6/destructuring/emptyAssignmentPatterns01_ES5iterable.ts] //// + +//// [emptyAssignmentPatterns01_ES5iterable.ts] +var a: any; + +({} = a); +([] = a); + +//// [emptyAssignmentPatterns01_ES5iterable.js] +var a; +({} = a); +([] = a); + + +//// [emptyAssignmentPatterns01_ES5iterable.d.ts] +declare var a: any; diff --git a/tests/baselines/reference/emptyAssignmentPatterns01_ES5iterable.symbols b/tests/baselines/reference/emptyAssignmentPatterns01_ES5iterable(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/emptyAssignmentPatterns01_ES5iterable.symbols rename to tests/baselines/reference/emptyAssignmentPatterns01_ES5iterable(target=es2015).symbols diff --git a/tests/baselines/reference/emptyAssignmentPatterns01_ES5iterable.types b/tests/baselines/reference/emptyAssignmentPatterns01_ES5iterable(target=es2015).types similarity index 100% rename from tests/baselines/reference/emptyAssignmentPatterns01_ES5iterable.types rename to tests/baselines/reference/emptyAssignmentPatterns01_ES5iterable(target=es2015).types diff --git a/tests/baselines/reference/emptyAssignmentPatterns01_ES5iterable.js b/tests/baselines/reference/emptyAssignmentPatterns01_ES5iterable(target=es5).js similarity index 100% rename from tests/baselines/reference/emptyAssignmentPatterns01_ES5iterable.js rename to tests/baselines/reference/emptyAssignmentPatterns01_ES5iterable(target=es5).js diff --git a/tests/baselines/reference/emptyAssignmentPatterns01_ES5iterable(target=es5).symbols b/tests/baselines/reference/emptyAssignmentPatterns01_ES5iterable(target=es5).symbols new file mode 100644 index 0000000000000..5d488a005648c --- /dev/null +++ b/tests/baselines/reference/emptyAssignmentPatterns01_ES5iterable(target=es5).symbols @@ -0,0 +1,12 @@ +//// [tests/cases/conformance/es6/destructuring/emptyAssignmentPatterns01_ES5iterable.ts] //// + +=== emptyAssignmentPatterns01_ES5iterable.ts === +var a: any; +>a : Symbol(a, Decl(emptyAssignmentPatterns01_ES5iterable.ts, 0, 3)) + +({} = a); +>a : Symbol(a, Decl(emptyAssignmentPatterns01_ES5iterable.ts, 0, 3)) + +([] = a); +>a : Symbol(a, Decl(emptyAssignmentPatterns01_ES5iterable.ts, 0, 3)) + diff --git a/tests/baselines/reference/emptyAssignmentPatterns01_ES5iterable(target=es5).types b/tests/baselines/reference/emptyAssignmentPatterns01_ES5iterable(target=es5).types new file mode 100644 index 0000000000000..d0ab4075e0bb0 --- /dev/null +++ b/tests/baselines/reference/emptyAssignmentPatterns01_ES5iterable(target=es5).types @@ -0,0 +1,20 @@ +//// [tests/cases/conformance/es6/destructuring/emptyAssignmentPatterns01_ES5iterable.ts] //// + +=== emptyAssignmentPatterns01_ES5iterable.ts === +var a: any; +>a : any + +({} = a); +>({} = a) : any +>{} = a : any +>{} : {} +> : ^^ +>a : any + +([] = a); +>([] = a) : any +>[] = a : any +>[] : [] +> : ^^ +>a : any + diff --git a/tests/baselines/reference/emptyAssignmentPatterns02_ES5(target=es2015).js b/tests/baselines/reference/emptyAssignmentPatterns02_ES5(target=es2015).js new file mode 100644 index 0000000000000..4e160912ef713 --- /dev/null +++ b/tests/baselines/reference/emptyAssignmentPatterns02_ES5(target=es2015).js @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/es6/destructuring/emptyAssignmentPatterns02_ES5.ts] //// + +//// [emptyAssignmentPatterns02_ES5.ts] +var a: any; +let x, y, z, a1, a2, a3; + +({} = { x, y, z } = a); +([] = [ a1, a2, a3] = a); + +//// [emptyAssignmentPatterns02_ES5.js] +var a; +let x, y, z, a1, a2, a3; +({} = { x, y, z } = a); +([] = [a1, a2, a3] = a); + + +//// [emptyAssignmentPatterns02_ES5.d.ts] +declare var a: any; +declare let x: any, y: any, z: any, a1: any, a2: any, a3: any; diff --git a/tests/baselines/reference/emptyAssignmentPatterns02_ES5.symbols b/tests/baselines/reference/emptyAssignmentPatterns02_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/emptyAssignmentPatterns02_ES5.symbols rename to tests/baselines/reference/emptyAssignmentPatterns02_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/emptyAssignmentPatterns02_ES5.types b/tests/baselines/reference/emptyAssignmentPatterns02_ES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/emptyAssignmentPatterns02_ES5.types rename to tests/baselines/reference/emptyAssignmentPatterns02_ES5(target=es2015).types diff --git a/tests/baselines/reference/emptyAssignmentPatterns02_ES5.js b/tests/baselines/reference/emptyAssignmentPatterns02_ES5(target=es5).js similarity index 100% rename from tests/baselines/reference/emptyAssignmentPatterns02_ES5.js rename to tests/baselines/reference/emptyAssignmentPatterns02_ES5(target=es5).js diff --git a/tests/baselines/reference/emptyAssignmentPatterns02_ES5(target=es5).symbols b/tests/baselines/reference/emptyAssignmentPatterns02_ES5(target=es5).symbols new file mode 100644 index 0000000000000..71a1f8599571e --- /dev/null +++ b/tests/baselines/reference/emptyAssignmentPatterns02_ES5(target=es5).symbols @@ -0,0 +1,26 @@ +//// [tests/cases/conformance/es6/destructuring/emptyAssignmentPatterns02_ES5.ts] //// + +=== emptyAssignmentPatterns02_ES5.ts === +var a: any; +>a : Symbol(a, Decl(emptyAssignmentPatterns02_ES5.ts, 0, 3)) + +let x, y, z, a1, a2, a3; +>x : Symbol(x, Decl(emptyAssignmentPatterns02_ES5.ts, 1, 3)) +>y : Symbol(y, Decl(emptyAssignmentPatterns02_ES5.ts, 1, 6)) +>z : Symbol(z, Decl(emptyAssignmentPatterns02_ES5.ts, 1, 9)) +>a1 : Symbol(a1, Decl(emptyAssignmentPatterns02_ES5.ts, 1, 12)) +>a2 : Symbol(a2, Decl(emptyAssignmentPatterns02_ES5.ts, 1, 16)) +>a3 : Symbol(a3, Decl(emptyAssignmentPatterns02_ES5.ts, 1, 20)) + +({} = { x, y, z } = a); +>x : Symbol(x, Decl(emptyAssignmentPatterns02_ES5.ts, 3, 7)) +>y : Symbol(y, Decl(emptyAssignmentPatterns02_ES5.ts, 3, 10)) +>z : Symbol(z, Decl(emptyAssignmentPatterns02_ES5.ts, 3, 13)) +>a : Symbol(a, Decl(emptyAssignmentPatterns02_ES5.ts, 0, 3)) + +([] = [ a1, a2, a3] = a); +>a1 : Symbol(a1, Decl(emptyAssignmentPatterns02_ES5.ts, 1, 12)) +>a2 : Symbol(a2, Decl(emptyAssignmentPatterns02_ES5.ts, 1, 16)) +>a3 : Symbol(a3, Decl(emptyAssignmentPatterns02_ES5.ts, 1, 20)) +>a : Symbol(a, Decl(emptyAssignmentPatterns02_ES5.ts, 0, 3)) + diff --git a/tests/baselines/reference/emptyAssignmentPatterns02_ES5(target=es5).types b/tests/baselines/reference/emptyAssignmentPatterns02_ES5(target=es5).types new file mode 100644 index 0000000000000..c6d4ee7d5d56e --- /dev/null +++ b/tests/baselines/reference/emptyAssignmentPatterns02_ES5(target=es5).types @@ -0,0 +1,40 @@ +//// [tests/cases/conformance/es6/destructuring/emptyAssignmentPatterns02_ES5.ts] //// + +=== emptyAssignmentPatterns02_ES5.ts === +var a: any; +>a : any + +let x, y, z, a1, a2, a3; +>x : any +>y : any +>z : any +>a1 : any +>a2 : any +>a3 : any + +({} = { x, y, z } = a); +>({} = { x, y, z } = a) : any +>{} = { x, y, z } = a : any +>{} : {} +> : ^^ +>{ x, y, z } = a : any +>{ x, y, z } : { x: any; y: any; z: any; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>x : any +>y : any +>z : any +>a : any + +([] = [ a1, a2, a3] = a); +>([] = [ a1, a2, a3] = a) : any +>[] = [ a1, a2, a3] = a : any +>[] : [] +> : ^^ +>[ a1, a2, a3] = a : any +>[ a1, a2, a3] : [any, any, any] +> : ^^^^^^^^^^^^^^^ +>a1 : any +>a2 : any +>a3 : any +>a : any + diff --git a/tests/baselines/reference/emptyAssignmentPatterns02_ES5iterable(target=es2015).js b/tests/baselines/reference/emptyAssignmentPatterns02_ES5iterable(target=es2015).js new file mode 100644 index 0000000000000..cd2c709db0cf7 --- /dev/null +++ b/tests/baselines/reference/emptyAssignmentPatterns02_ES5iterable(target=es2015).js @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/es6/destructuring/emptyAssignmentPatterns02_ES5iterable.ts] //// + +//// [emptyAssignmentPatterns02_ES5iterable.ts] +var a: any; +let x, y, z, a1, a2, a3; + +({} = { x, y, z } = a); +([] = [ a1, a2, a3] = a); + +//// [emptyAssignmentPatterns02_ES5iterable.js] +var a; +let x, y, z, a1, a2, a3; +({} = { x, y, z } = a); +([] = [a1, a2, a3] = a); + + +//// [emptyAssignmentPatterns02_ES5iterable.d.ts] +declare var a: any; +declare let x: any, y: any, z: any, a1: any, a2: any, a3: any; diff --git a/tests/baselines/reference/emptyAssignmentPatterns02_ES5iterable.symbols b/tests/baselines/reference/emptyAssignmentPatterns02_ES5iterable(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/emptyAssignmentPatterns02_ES5iterable.symbols rename to tests/baselines/reference/emptyAssignmentPatterns02_ES5iterable(target=es2015).symbols diff --git a/tests/baselines/reference/emptyAssignmentPatterns02_ES5iterable.types b/tests/baselines/reference/emptyAssignmentPatterns02_ES5iterable(target=es2015).types similarity index 100% rename from tests/baselines/reference/emptyAssignmentPatterns02_ES5iterable.types rename to tests/baselines/reference/emptyAssignmentPatterns02_ES5iterable(target=es2015).types diff --git a/tests/baselines/reference/emptyAssignmentPatterns02_ES5iterable.js b/tests/baselines/reference/emptyAssignmentPatterns02_ES5iterable(target=es5).js similarity index 100% rename from tests/baselines/reference/emptyAssignmentPatterns02_ES5iterable.js rename to tests/baselines/reference/emptyAssignmentPatterns02_ES5iterable(target=es5).js diff --git a/tests/baselines/reference/emptyAssignmentPatterns02_ES5iterable(target=es5).symbols b/tests/baselines/reference/emptyAssignmentPatterns02_ES5iterable(target=es5).symbols new file mode 100644 index 0000000000000..d73c429d809dd --- /dev/null +++ b/tests/baselines/reference/emptyAssignmentPatterns02_ES5iterable(target=es5).symbols @@ -0,0 +1,26 @@ +//// [tests/cases/conformance/es6/destructuring/emptyAssignmentPatterns02_ES5iterable.ts] //// + +=== emptyAssignmentPatterns02_ES5iterable.ts === +var a: any; +>a : Symbol(a, Decl(emptyAssignmentPatterns02_ES5iterable.ts, 0, 3)) + +let x, y, z, a1, a2, a3; +>x : Symbol(x, Decl(emptyAssignmentPatterns02_ES5iterable.ts, 1, 3)) +>y : Symbol(y, Decl(emptyAssignmentPatterns02_ES5iterable.ts, 1, 6)) +>z : Symbol(z, Decl(emptyAssignmentPatterns02_ES5iterable.ts, 1, 9)) +>a1 : Symbol(a1, Decl(emptyAssignmentPatterns02_ES5iterable.ts, 1, 12)) +>a2 : Symbol(a2, Decl(emptyAssignmentPatterns02_ES5iterable.ts, 1, 16)) +>a3 : Symbol(a3, Decl(emptyAssignmentPatterns02_ES5iterable.ts, 1, 20)) + +({} = { x, y, z } = a); +>x : Symbol(x, Decl(emptyAssignmentPatterns02_ES5iterable.ts, 3, 7)) +>y : Symbol(y, Decl(emptyAssignmentPatterns02_ES5iterable.ts, 3, 10)) +>z : Symbol(z, Decl(emptyAssignmentPatterns02_ES5iterable.ts, 3, 13)) +>a : Symbol(a, Decl(emptyAssignmentPatterns02_ES5iterable.ts, 0, 3)) + +([] = [ a1, a2, a3] = a); +>a1 : Symbol(a1, Decl(emptyAssignmentPatterns02_ES5iterable.ts, 1, 12)) +>a2 : Symbol(a2, Decl(emptyAssignmentPatterns02_ES5iterable.ts, 1, 16)) +>a3 : Symbol(a3, Decl(emptyAssignmentPatterns02_ES5iterable.ts, 1, 20)) +>a : Symbol(a, Decl(emptyAssignmentPatterns02_ES5iterable.ts, 0, 3)) + diff --git a/tests/baselines/reference/emptyAssignmentPatterns02_ES5iterable(target=es5).types b/tests/baselines/reference/emptyAssignmentPatterns02_ES5iterable(target=es5).types new file mode 100644 index 0000000000000..5f60d84bd2010 --- /dev/null +++ b/tests/baselines/reference/emptyAssignmentPatterns02_ES5iterable(target=es5).types @@ -0,0 +1,40 @@ +//// [tests/cases/conformance/es6/destructuring/emptyAssignmentPatterns02_ES5iterable.ts] //// + +=== emptyAssignmentPatterns02_ES5iterable.ts === +var a: any; +>a : any + +let x, y, z, a1, a2, a3; +>x : any +>y : any +>z : any +>a1 : any +>a2 : any +>a3 : any + +({} = { x, y, z } = a); +>({} = { x, y, z } = a) : any +>{} = { x, y, z } = a : any +>{} : {} +> : ^^ +>{ x, y, z } = a : any +>{ x, y, z } : { x: any; y: any; z: any; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>x : any +>y : any +>z : any +>a : any + +([] = [ a1, a2, a3] = a); +>([] = [ a1, a2, a3] = a) : any +>[] = [ a1, a2, a3] = a : any +>[] : [] +> : ^^ +>[ a1, a2, a3] = a : any +>[ a1, a2, a3] : [any, any, any] +> : ^^^^^^^^^^^^^^^ +>a1 : any +>a2 : any +>a3 : any +>a : any + diff --git a/tests/baselines/reference/emptyAssignmentPatterns03_ES5(target=es2015).js b/tests/baselines/reference/emptyAssignmentPatterns03_ES5(target=es2015).js new file mode 100644 index 0000000000000..04d352896fb73 --- /dev/null +++ b/tests/baselines/reference/emptyAssignmentPatterns03_ES5(target=es2015).js @@ -0,0 +1,16 @@ +//// [tests/cases/conformance/es6/destructuring/emptyAssignmentPatterns03_ES5.ts] //// + +//// [emptyAssignmentPatterns03_ES5.ts] +var a: any; + +({} = {} = a); +([] = [] = a); + +//// [emptyAssignmentPatterns03_ES5.js] +var a; +({} = {} = a); +([] = [] = a); + + +//// [emptyAssignmentPatterns03_ES5.d.ts] +declare var a: any; diff --git a/tests/baselines/reference/emptyAssignmentPatterns03_ES5.symbols b/tests/baselines/reference/emptyAssignmentPatterns03_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/emptyAssignmentPatterns03_ES5.symbols rename to tests/baselines/reference/emptyAssignmentPatterns03_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/emptyAssignmentPatterns03_ES5.types b/tests/baselines/reference/emptyAssignmentPatterns03_ES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/emptyAssignmentPatterns03_ES5.types rename to tests/baselines/reference/emptyAssignmentPatterns03_ES5(target=es2015).types diff --git a/tests/baselines/reference/emptyAssignmentPatterns03_ES5.js b/tests/baselines/reference/emptyAssignmentPatterns03_ES5(target=es5).js similarity index 100% rename from tests/baselines/reference/emptyAssignmentPatterns03_ES5.js rename to tests/baselines/reference/emptyAssignmentPatterns03_ES5(target=es5).js diff --git a/tests/baselines/reference/emptyAssignmentPatterns03_ES5(target=es5).symbols b/tests/baselines/reference/emptyAssignmentPatterns03_ES5(target=es5).symbols new file mode 100644 index 0000000000000..6e0f2fd501313 --- /dev/null +++ b/tests/baselines/reference/emptyAssignmentPatterns03_ES5(target=es5).symbols @@ -0,0 +1,12 @@ +//// [tests/cases/conformance/es6/destructuring/emptyAssignmentPatterns03_ES5.ts] //// + +=== emptyAssignmentPatterns03_ES5.ts === +var a: any; +>a : Symbol(a, Decl(emptyAssignmentPatterns03_ES5.ts, 0, 3)) + +({} = {} = a); +>a : Symbol(a, Decl(emptyAssignmentPatterns03_ES5.ts, 0, 3)) + +([] = [] = a); +>a : Symbol(a, Decl(emptyAssignmentPatterns03_ES5.ts, 0, 3)) + diff --git a/tests/baselines/reference/emptyAssignmentPatterns03_ES5(target=es5).types b/tests/baselines/reference/emptyAssignmentPatterns03_ES5(target=es5).types new file mode 100644 index 0000000000000..de0db100512bb --- /dev/null +++ b/tests/baselines/reference/emptyAssignmentPatterns03_ES5(target=es5).types @@ -0,0 +1,26 @@ +//// [tests/cases/conformance/es6/destructuring/emptyAssignmentPatterns03_ES5.ts] //// + +=== emptyAssignmentPatterns03_ES5.ts === +var a: any; +>a : any + +({} = {} = a); +>({} = {} = a) : any +>{} = {} = a : any +>{} : {} +> : ^^ +>{} = a : any +>{} : {} +> : ^^ +>a : any + +([] = [] = a); +>([] = [] = a) : any +>[] = [] = a : any +>[] : [] +> : ^^ +>[] = a : any +>[] : [] +> : ^^ +>a : any + diff --git a/tests/baselines/reference/emptyAssignmentPatterns03_ES5iterable(target=es2015).js b/tests/baselines/reference/emptyAssignmentPatterns03_ES5iterable(target=es2015).js new file mode 100644 index 0000000000000..e06ef900dccd4 --- /dev/null +++ b/tests/baselines/reference/emptyAssignmentPatterns03_ES5iterable(target=es2015).js @@ -0,0 +1,16 @@ +//// [tests/cases/conformance/es6/destructuring/emptyAssignmentPatterns03_ES5iterable.ts] //// + +//// [emptyAssignmentPatterns03_ES5iterable.ts] +var a: any; + +({} = {} = a); +([] = [] = a); + +//// [emptyAssignmentPatterns03_ES5iterable.js] +var a; +({} = {} = a); +([] = [] = a); + + +//// [emptyAssignmentPatterns03_ES5iterable.d.ts] +declare var a: any; diff --git a/tests/baselines/reference/emptyAssignmentPatterns03_ES5iterable.symbols b/tests/baselines/reference/emptyAssignmentPatterns03_ES5iterable(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/emptyAssignmentPatterns03_ES5iterable.symbols rename to tests/baselines/reference/emptyAssignmentPatterns03_ES5iterable(target=es2015).symbols diff --git a/tests/baselines/reference/emptyAssignmentPatterns03_ES5iterable.types b/tests/baselines/reference/emptyAssignmentPatterns03_ES5iterable(target=es2015).types similarity index 100% rename from tests/baselines/reference/emptyAssignmentPatterns03_ES5iterable.types rename to tests/baselines/reference/emptyAssignmentPatterns03_ES5iterable(target=es2015).types diff --git a/tests/baselines/reference/emptyAssignmentPatterns03_ES5iterable.js b/tests/baselines/reference/emptyAssignmentPatterns03_ES5iterable(target=es5).js similarity index 100% rename from tests/baselines/reference/emptyAssignmentPatterns03_ES5iterable.js rename to tests/baselines/reference/emptyAssignmentPatterns03_ES5iterable(target=es5).js diff --git a/tests/baselines/reference/emptyAssignmentPatterns03_ES5iterable(target=es5).symbols b/tests/baselines/reference/emptyAssignmentPatterns03_ES5iterable(target=es5).symbols new file mode 100644 index 0000000000000..83d02d139fc9f --- /dev/null +++ b/tests/baselines/reference/emptyAssignmentPatterns03_ES5iterable(target=es5).symbols @@ -0,0 +1,12 @@ +//// [tests/cases/conformance/es6/destructuring/emptyAssignmentPatterns03_ES5iterable.ts] //// + +=== emptyAssignmentPatterns03_ES5iterable.ts === +var a: any; +>a : Symbol(a, Decl(emptyAssignmentPatterns03_ES5iterable.ts, 0, 3)) + +({} = {} = a); +>a : Symbol(a, Decl(emptyAssignmentPatterns03_ES5iterable.ts, 0, 3)) + +([] = [] = a); +>a : Symbol(a, Decl(emptyAssignmentPatterns03_ES5iterable.ts, 0, 3)) + diff --git a/tests/baselines/reference/emptyAssignmentPatterns03_ES5iterable(target=es5).types b/tests/baselines/reference/emptyAssignmentPatterns03_ES5iterable(target=es5).types new file mode 100644 index 0000000000000..5e179ddffd63a --- /dev/null +++ b/tests/baselines/reference/emptyAssignmentPatterns03_ES5iterable(target=es5).types @@ -0,0 +1,26 @@ +//// [tests/cases/conformance/es6/destructuring/emptyAssignmentPatterns03_ES5iterable.ts] //// + +=== emptyAssignmentPatterns03_ES5iterable.ts === +var a: any; +>a : any + +({} = {} = a); +>({} = {} = a) : any +>{} = {} = a : any +>{} : {} +> : ^^ +>{} = a : any +>{} : {} +> : ^^ +>a : any + +([] = [] = a); +>([] = [] = a) : any +>[] = [] = a : any +>[] : [] +> : ^^ +>[] = a : any +>[] : [] +> : ^^ +>a : any + diff --git a/tests/baselines/reference/emptyAssignmentPatterns04_ES5(target=es2015).js b/tests/baselines/reference/emptyAssignmentPatterns04_ES5(target=es2015).js new file mode 100644 index 0000000000000..104b80de24589 --- /dev/null +++ b/tests/baselines/reference/emptyAssignmentPatterns04_ES5(target=es2015).js @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/es6/destructuring/emptyAssignmentPatterns04_ES5.ts] //// + +//// [emptyAssignmentPatterns04_ES5.ts] +var a: any; +let x, y, z, a1, a2, a3; + +({ x, y, z } = {} = a); +([ a1, a2, a3] = [] = a); + +//// [emptyAssignmentPatterns04_ES5.js] +var a; +let x, y, z, a1, a2, a3; +({ x, y, z } = {} = a); +([a1, a2, a3] = [] = a); + + +//// [emptyAssignmentPatterns04_ES5.d.ts] +declare var a: any; +declare let x: any, y: any, z: any, a1: any, a2: any, a3: any; diff --git a/tests/baselines/reference/emptyAssignmentPatterns04_ES5.symbols b/tests/baselines/reference/emptyAssignmentPatterns04_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/emptyAssignmentPatterns04_ES5.symbols rename to tests/baselines/reference/emptyAssignmentPatterns04_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/emptyAssignmentPatterns04_ES5.types b/tests/baselines/reference/emptyAssignmentPatterns04_ES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/emptyAssignmentPatterns04_ES5.types rename to tests/baselines/reference/emptyAssignmentPatterns04_ES5(target=es2015).types diff --git a/tests/baselines/reference/emptyAssignmentPatterns04_ES5.js b/tests/baselines/reference/emptyAssignmentPatterns04_ES5(target=es5).js similarity index 100% rename from tests/baselines/reference/emptyAssignmentPatterns04_ES5.js rename to tests/baselines/reference/emptyAssignmentPatterns04_ES5(target=es5).js diff --git a/tests/baselines/reference/emptyAssignmentPatterns04_ES5(target=es5).symbols b/tests/baselines/reference/emptyAssignmentPatterns04_ES5(target=es5).symbols new file mode 100644 index 0000000000000..916bc6b86e95f --- /dev/null +++ b/tests/baselines/reference/emptyAssignmentPatterns04_ES5(target=es5).symbols @@ -0,0 +1,26 @@ +//// [tests/cases/conformance/es6/destructuring/emptyAssignmentPatterns04_ES5.ts] //// + +=== emptyAssignmentPatterns04_ES5.ts === +var a: any; +>a : Symbol(a, Decl(emptyAssignmentPatterns04_ES5.ts, 0, 3)) + +let x, y, z, a1, a2, a3; +>x : Symbol(x, Decl(emptyAssignmentPatterns04_ES5.ts, 1, 3)) +>y : Symbol(y, Decl(emptyAssignmentPatterns04_ES5.ts, 1, 6)) +>z : Symbol(z, Decl(emptyAssignmentPatterns04_ES5.ts, 1, 9)) +>a1 : Symbol(a1, Decl(emptyAssignmentPatterns04_ES5.ts, 1, 12)) +>a2 : Symbol(a2, Decl(emptyAssignmentPatterns04_ES5.ts, 1, 16)) +>a3 : Symbol(a3, Decl(emptyAssignmentPatterns04_ES5.ts, 1, 20)) + +({ x, y, z } = {} = a); +>x : Symbol(x, Decl(emptyAssignmentPatterns04_ES5.ts, 3, 2)) +>y : Symbol(y, Decl(emptyAssignmentPatterns04_ES5.ts, 3, 5)) +>z : Symbol(z, Decl(emptyAssignmentPatterns04_ES5.ts, 3, 8)) +>a : Symbol(a, Decl(emptyAssignmentPatterns04_ES5.ts, 0, 3)) + +([ a1, a2, a3] = [] = a); +>a1 : Symbol(a1, Decl(emptyAssignmentPatterns04_ES5.ts, 1, 12)) +>a2 : Symbol(a2, Decl(emptyAssignmentPatterns04_ES5.ts, 1, 16)) +>a3 : Symbol(a3, Decl(emptyAssignmentPatterns04_ES5.ts, 1, 20)) +>a : Symbol(a, Decl(emptyAssignmentPatterns04_ES5.ts, 0, 3)) + diff --git a/tests/baselines/reference/emptyAssignmentPatterns04_ES5(target=es5).types b/tests/baselines/reference/emptyAssignmentPatterns04_ES5(target=es5).types new file mode 100644 index 0000000000000..575356ee42416 --- /dev/null +++ b/tests/baselines/reference/emptyAssignmentPatterns04_ES5(target=es5).types @@ -0,0 +1,40 @@ +//// [tests/cases/conformance/es6/destructuring/emptyAssignmentPatterns04_ES5.ts] //// + +=== emptyAssignmentPatterns04_ES5.ts === +var a: any; +>a : any + +let x, y, z, a1, a2, a3; +>x : any +>y : any +>z : any +>a1 : any +>a2 : any +>a3 : any + +({ x, y, z } = {} = a); +>({ x, y, z } = {} = a) : any +>{ x, y, z } = {} = a : any +>{ x, y, z } : { x: any; y: any; z: any; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>x : any +>y : any +>z : any +>{} = a : any +>{} : {} +> : ^^ +>a : any + +([ a1, a2, a3] = [] = a); +>([ a1, a2, a3] = [] = a) : any +>[ a1, a2, a3] = [] = a : any +>[ a1, a2, a3] : [any, any, any] +> : ^^^^^^^^^^^^^^^ +>a1 : any +>a2 : any +>a3 : any +>[] = a : any +>[] : [] +> : ^^ +>a : any + diff --git a/tests/baselines/reference/emptyAssignmentPatterns04_ES5iterable(target=es2015).js b/tests/baselines/reference/emptyAssignmentPatterns04_ES5iterable(target=es2015).js new file mode 100644 index 0000000000000..72dcaf97a547c --- /dev/null +++ b/tests/baselines/reference/emptyAssignmentPatterns04_ES5iterable(target=es2015).js @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/es6/destructuring/emptyAssignmentPatterns04_ES5iterable.ts] //// + +//// [emptyAssignmentPatterns04_ES5iterable.ts] +var a: any; +let x, y, z, a1, a2, a3; + +({ x, y, z } = {} = a); +([ a1, a2, a3] = [] = a); + +//// [emptyAssignmentPatterns04_ES5iterable.js] +var a; +let x, y, z, a1, a2, a3; +({ x, y, z } = {} = a); +([a1, a2, a3] = [] = a); + + +//// [emptyAssignmentPatterns04_ES5iterable.d.ts] +declare var a: any; +declare let x: any, y: any, z: any, a1: any, a2: any, a3: any; diff --git a/tests/baselines/reference/emptyAssignmentPatterns04_ES5iterable.symbols b/tests/baselines/reference/emptyAssignmentPatterns04_ES5iterable(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/emptyAssignmentPatterns04_ES5iterable.symbols rename to tests/baselines/reference/emptyAssignmentPatterns04_ES5iterable(target=es2015).symbols diff --git a/tests/baselines/reference/emptyAssignmentPatterns04_ES5iterable.types b/tests/baselines/reference/emptyAssignmentPatterns04_ES5iterable(target=es2015).types similarity index 100% rename from tests/baselines/reference/emptyAssignmentPatterns04_ES5iterable.types rename to tests/baselines/reference/emptyAssignmentPatterns04_ES5iterable(target=es2015).types diff --git a/tests/baselines/reference/emptyAssignmentPatterns04_ES5iterable.js b/tests/baselines/reference/emptyAssignmentPatterns04_ES5iterable(target=es5).js similarity index 100% rename from tests/baselines/reference/emptyAssignmentPatterns04_ES5iterable.js rename to tests/baselines/reference/emptyAssignmentPatterns04_ES5iterable(target=es5).js diff --git a/tests/baselines/reference/emptyAssignmentPatterns04_ES5iterable(target=es5).symbols b/tests/baselines/reference/emptyAssignmentPatterns04_ES5iterable(target=es5).symbols new file mode 100644 index 0000000000000..696162e321a30 --- /dev/null +++ b/tests/baselines/reference/emptyAssignmentPatterns04_ES5iterable(target=es5).symbols @@ -0,0 +1,26 @@ +//// [tests/cases/conformance/es6/destructuring/emptyAssignmentPatterns04_ES5iterable.ts] //// + +=== emptyAssignmentPatterns04_ES5iterable.ts === +var a: any; +>a : Symbol(a, Decl(emptyAssignmentPatterns04_ES5iterable.ts, 0, 3)) + +let x, y, z, a1, a2, a3; +>x : Symbol(x, Decl(emptyAssignmentPatterns04_ES5iterable.ts, 1, 3)) +>y : Symbol(y, Decl(emptyAssignmentPatterns04_ES5iterable.ts, 1, 6)) +>z : Symbol(z, Decl(emptyAssignmentPatterns04_ES5iterable.ts, 1, 9)) +>a1 : Symbol(a1, Decl(emptyAssignmentPatterns04_ES5iterable.ts, 1, 12)) +>a2 : Symbol(a2, Decl(emptyAssignmentPatterns04_ES5iterable.ts, 1, 16)) +>a3 : Symbol(a3, Decl(emptyAssignmentPatterns04_ES5iterable.ts, 1, 20)) + +({ x, y, z } = {} = a); +>x : Symbol(x, Decl(emptyAssignmentPatterns04_ES5iterable.ts, 3, 2)) +>y : Symbol(y, Decl(emptyAssignmentPatterns04_ES5iterable.ts, 3, 5)) +>z : Symbol(z, Decl(emptyAssignmentPatterns04_ES5iterable.ts, 3, 8)) +>a : Symbol(a, Decl(emptyAssignmentPatterns04_ES5iterable.ts, 0, 3)) + +([ a1, a2, a3] = [] = a); +>a1 : Symbol(a1, Decl(emptyAssignmentPatterns04_ES5iterable.ts, 1, 12)) +>a2 : Symbol(a2, Decl(emptyAssignmentPatterns04_ES5iterable.ts, 1, 16)) +>a3 : Symbol(a3, Decl(emptyAssignmentPatterns04_ES5iterable.ts, 1, 20)) +>a : Symbol(a, Decl(emptyAssignmentPatterns04_ES5iterable.ts, 0, 3)) + diff --git a/tests/baselines/reference/emptyAssignmentPatterns04_ES5iterable(target=es5).types b/tests/baselines/reference/emptyAssignmentPatterns04_ES5iterable(target=es5).types new file mode 100644 index 0000000000000..54f80a5d12806 --- /dev/null +++ b/tests/baselines/reference/emptyAssignmentPatterns04_ES5iterable(target=es5).types @@ -0,0 +1,40 @@ +//// [tests/cases/conformance/es6/destructuring/emptyAssignmentPatterns04_ES5iterable.ts] //// + +=== emptyAssignmentPatterns04_ES5iterable.ts === +var a: any; +>a : any + +let x, y, z, a1, a2, a3; +>x : any +>y : any +>z : any +>a1 : any +>a2 : any +>a3 : any + +({ x, y, z } = {} = a); +>({ x, y, z } = {} = a) : any +>{ x, y, z } = {} = a : any +>{ x, y, z } : { x: any; y: any; z: any; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>x : any +>y : any +>z : any +>{} = a : any +>{} : {} +> : ^^ +>a : any + +([ a1, a2, a3] = [] = a); +>([ a1, a2, a3] = [] = a) : any +>[ a1, a2, a3] = [] = a : any +>[ a1, a2, a3] : [any, any, any] +> : ^^^^^^^^^^^^^^^ +>a1 : any +>a2 : any +>a3 : any +>[] = a : any +>[] : [] +> : ^^ +>a : any + diff --git a/tests/baselines/reference/emptyFile-declaration.js b/tests/baselines/reference/emptyFile-declaration(target=es2015).js similarity index 100% rename from tests/baselines/reference/emptyFile-declaration.js rename to tests/baselines/reference/emptyFile-declaration(target=es2015).js diff --git a/tests/baselines/reference/emptyFile-declaration.symbols b/tests/baselines/reference/emptyFile-declaration(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/emptyFile-declaration.symbols rename to tests/baselines/reference/emptyFile-declaration(target=es2015).symbols diff --git a/tests/baselines/reference/emptyFile-declaration.types b/tests/baselines/reference/emptyFile-declaration(target=es2015).types similarity index 100% rename from tests/baselines/reference/emptyFile-declaration.types rename to tests/baselines/reference/emptyFile-declaration(target=es2015).types diff --git a/tests/baselines/reference/emptyFile-declaration(target=es5).js b/tests/baselines/reference/emptyFile-declaration(target=es5).js new file mode 100644 index 0000000000000..0a7a22bace23a --- /dev/null +++ b/tests/baselines/reference/emptyFile-declaration(target=es5).js @@ -0,0 +1,9 @@ +//// [tests/cases/compiler/emptyFile-declaration.ts] //// + +//// [emptyFile-declaration.ts] + + +//// [emptyFile-declaration.js] + + +//// [emptyFile-declaration.d.ts] diff --git a/tests/baselines/reference/emptyFile-declaration(target=es5).symbols b/tests/baselines/reference/emptyFile-declaration(target=es5).symbols new file mode 100644 index 0000000000000..cf5fafaf0f6d0 --- /dev/null +++ b/tests/baselines/reference/emptyFile-declaration(target=es5).symbols @@ -0,0 +1,4 @@ +//// [tests/cases/compiler/emptyFile-declaration.ts] //// + +=== emptyFile-declaration.ts === + diff --git a/tests/baselines/reference/emptyFile-declaration(target=es5).types b/tests/baselines/reference/emptyFile-declaration(target=es5).types new file mode 100644 index 0000000000000..cf5fafaf0f6d0 --- /dev/null +++ b/tests/baselines/reference/emptyFile-declaration(target=es5).types @@ -0,0 +1,4 @@ +//// [tests/cases/compiler/emptyFile-declaration.ts] //// + +=== emptyFile-declaration.ts === + diff --git a/tests/baselines/reference/emptyFile-souremap.js b/tests/baselines/reference/emptyFile-souremap(target=es2015).js similarity index 100% rename from tests/baselines/reference/emptyFile-souremap.js rename to tests/baselines/reference/emptyFile-souremap(target=es2015).js diff --git a/tests/baselines/reference/emptyFile-souremap.js.map b/tests/baselines/reference/emptyFile-souremap(target=es2015).js.map similarity index 100% rename from tests/baselines/reference/emptyFile-souremap.js.map rename to tests/baselines/reference/emptyFile-souremap(target=es2015).js.map diff --git a/tests/baselines/reference/emptyFile-souremap.sourcemap.txt b/tests/baselines/reference/emptyFile-souremap(target=es2015).sourcemap.txt similarity index 100% rename from tests/baselines/reference/emptyFile-souremap.sourcemap.txt rename to tests/baselines/reference/emptyFile-souremap(target=es2015).sourcemap.txt diff --git a/tests/baselines/reference/emptyFile-souremap.symbols b/tests/baselines/reference/emptyFile-souremap(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/emptyFile-souremap.symbols rename to tests/baselines/reference/emptyFile-souremap(target=es2015).symbols diff --git a/tests/baselines/reference/emptyFile-souremap.types b/tests/baselines/reference/emptyFile-souremap(target=es2015).types similarity index 100% rename from tests/baselines/reference/emptyFile-souremap.types rename to tests/baselines/reference/emptyFile-souremap(target=es2015).types diff --git a/tests/baselines/reference/emptyFile-souremap(target=es5).js b/tests/baselines/reference/emptyFile-souremap(target=es5).js new file mode 100644 index 0000000000000..be3bbb703020b --- /dev/null +++ b/tests/baselines/reference/emptyFile-souremap(target=es5).js @@ -0,0 +1,7 @@ +//// [tests/cases/compiler/emptyFile-souremap.ts] //// + +//// [emptyFile-souremap.ts] + + +//// [emptyFile-souremap.js] +//# sourceMappingURL=emptyFile-souremap.js.map \ No newline at end of file diff --git a/tests/baselines/reference/emptyFile-souremap(target=es5).js.map b/tests/baselines/reference/emptyFile-souremap(target=es5).js.map new file mode 100644 index 0000000000000..11d6b10140628 --- /dev/null +++ b/tests/baselines/reference/emptyFile-souremap(target=es5).js.map @@ -0,0 +1,3 @@ +//// [emptyFile-souremap.js.map] +{"version":3,"file":"emptyFile-souremap.js","sourceRoot":"","sources":["emptyFile-souremap.ts"],"names":[],"mappings":""} +//// https://sokra.github.io/source-map-visualization#base64,Ly8jIHNvdXJjZU1hcHBpbmdVUkw9ZW1wdHlGaWxlLXNvdXJlbWFwLmpzLm1hcA==,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW1wdHlGaWxlLXNvdXJlbWFwLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZW1wdHlGaWxlLXNvdXJlbWFwLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIifQ==, diff --git a/tests/baselines/reference/emptyFile-souremap(target=es5).sourcemap.txt b/tests/baselines/reference/emptyFile-souremap(target=es5).sourcemap.txt new file mode 100644 index 0000000000000..a1e1d5d5ac57f --- /dev/null +++ b/tests/baselines/reference/emptyFile-souremap(target=es5).sourcemap.txt @@ -0,0 +1,7 @@ +=================================================================== +JsFile: emptyFile-souremap.js +mapUrl: emptyFile-souremap.js.map +sourceRoot: +sources: emptyFile-souremap.ts +=================================================================== +>>>//# sourceMappingURL=emptyFile-souremap.js.map \ No newline at end of file diff --git a/tests/baselines/reference/emptyFile-souremap(target=es5).symbols b/tests/baselines/reference/emptyFile-souremap(target=es5).symbols new file mode 100644 index 0000000000000..7aaa6db02dafc --- /dev/null +++ b/tests/baselines/reference/emptyFile-souremap(target=es5).symbols @@ -0,0 +1,4 @@ +//// [tests/cases/compiler/emptyFile-souremap.ts] //// + +=== emptyFile-souremap.ts === + diff --git a/tests/baselines/reference/emptyFile-souremap(target=es5).types b/tests/baselines/reference/emptyFile-souremap(target=es5).types new file mode 100644 index 0000000000000..7aaa6db02dafc --- /dev/null +++ b/tests/baselines/reference/emptyFile-souremap(target=es5).types @@ -0,0 +1,4 @@ +//// [tests/cases/compiler/emptyFile-souremap.ts] //// + +=== emptyFile-souremap.ts === + diff --git a/tests/baselines/reference/emptyVariableDeclarationBindingPatterns01_ES5(target=es2015).js b/tests/baselines/reference/emptyVariableDeclarationBindingPatterns01_ES5(target=es2015).js new file mode 100644 index 0000000000000..36e44f3f9eb78 --- /dev/null +++ b/tests/baselines/reference/emptyVariableDeclarationBindingPatterns01_ES5(target=es2015).js @@ -0,0 +1,88 @@ +//// [tests/cases/conformance/es6/destructuring/emptyVariableDeclarationBindingPatterns01_ES5.ts] //// + +//// [emptyVariableDeclarationBindingPatterns01_ES5.ts] +(function () { + var a: any; + + var {} = a; + let {} = a; + const {} = a; + + var [] = a; + let [] = a; + const [] = a; + + var {} = a, [] = a; + let {} = a, [] = a; + const {} = a, [] = a; + + var { p1: {}, p2: [] } = a; + let { p1: {}, p2: [] } = a; + const { p1: {}, p2: [] } = a; + + for (var {} = {}, {} = {}; false; void 0) { + } + + function f({} = a, [] = a, { p: {} = a} = a) { + return ({} = a, [] = a, { p: {} = a } = a) => a; + } +})(); + +(function () { + const ns: number[][] = []; + + for (var {} of ns) { + } + + for (let {} of ns) { + } + + for (const {} of ns) { + } + + for (var [] of ns) { + } + + for (let [] of ns) { + } + + for (const [] of ns) { + } +})(); + +//// [emptyVariableDeclarationBindingPatterns01_ES5.js] +(function () { + var a; + var {} = a; + let {} = a; + const {} = a; + var [] = a; + let [] = a; + const [] = a; + var {} = a, [] = a; + let {} = a, [] = a; + const {} = a, [] = a; + var { p1: {}, p2: [] } = a; + let { p1: {}, p2: [] } = a; + const { p1: {}, p2: [] } = a; + for (var {} = {}, {} = {}; false; void 0) { + } + function f({} = a, [] = a, { p: {} = a } = a) { + return ({} = a, [] = a, { p: {} = a } = a) => a; + } +})(); +(function () { + const ns = []; + for (var {} of ns) { + } + for (let {} of ns) { + } + for (const {} of ns) { + } + for (var [] of ns) { + } + for (let [] of ns) { + } + for (const [] of ns) { + } +})(); diff --git a/tests/baselines/reference/emptyVariableDeclarationBindingPatterns01_ES5.symbols b/tests/baselines/reference/emptyVariableDeclarationBindingPatterns01_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/emptyVariableDeclarationBindingPatterns01_ES5.symbols rename to tests/baselines/reference/emptyVariableDeclarationBindingPatterns01_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/emptyVariableDeclarationBindingPatterns01_ES5.types b/tests/baselines/reference/emptyVariableDeclarationBindingPatterns01_ES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/emptyVariableDeclarationBindingPatterns01_ES5.types rename to tests/baselines/reference/emptyVariableDeclarationBindingPatterns01_ES5(target=es2015).types diff --git a/tests/baselines/reference/emptyVariableDeclarationBindingPatterns01_ES5.js b/tests/baselines/reference/emptyVariableDeclarationBindingPatterns01_ES5(target=es5).js similarity index 100% rename from tests/baselines/reference/emptyVariableDeclarationBindingPatterns01_ES5.js rename to tests/baselines/reference/emptyVariableDeclarationBindingPatterns01_ES5(target=es5).js diff --git a/tests/baselines/reference/emptyVariableDeclarationBindingPatterns01_ES5(target=es5).symbols b/tests/baselines/reference/emptyVariableDeclarationBindingPatterns01_ES5(target=es5).symbols new file mode 100644 index 0000000000000..bc876de230318 --- /dev/null +++ b/tests/baselines/reference/emptyVariableDeclarationBindingPatterns01_ES5(target=es5).symbols @@ -0,0 +1,93 @@ +//// [tests/cases/conformance/es6/destructuring/emptyVariableDeclarationBindingPatterns01_ES5.ts] //// + +=== emptyVariableDeclarationBindingPatterns01_ES5.ts === +(function () { + var a: any; +>a : Symbol(a, Decl(emptyVariableDeclarationBindingPatterns01_ES5.ts, 1, 7)) + + var {} = a; +>a : Symbol(a, Decl(emptyVariableDeclarationBindingPatterns01_ES5.ts, 1, 7)) + + let {} = a; +>a : Symbol(a, Decl(emptyVariableDeclarationBindingPatterns01_ES5.ts, 1, 7)) + + const {} = a; +>a : Symbol(a, Decl(emptyVariableDeclarationBindingPatterns01_ES5.ts, 1, 7)) + + var [] = a; +>a : Symbol(a, Decl(emptyVariableDeclarationBindingPatterns01_ES5.ts, 1, 7)) + + let [] = a; +>a : Symbol(a, Decl(emptyVariableDeclarationBindingPatterns01_ES5.ts, 1, 7)) + + const [] = a; +>a : Symbol(a, Decl(emptyVariableDeclarationBindingPatterns01_ES5.ts, 1, 7)) + + var {} = a, [] = a; +>a : Symbol(a, Decl(emptyVariableDeclarationBindingPatterns01_ES5.ts, 1, 7)) +>a : Symbol(a, Decl(emptyVariableDeclarationBindingPatterns01_ES5.ts, 1, 7)) + + let {} = a, [] = a; +>a : Symbol(a, Decl(emptyVariableDeclarationBindingPatterns01_ES5.ts, 1, 7)) +>a : Symbol(a, Decl(emptyVariableDeclarationBindingPatterns01_ES5.ts, 1, 7)) + + const {} = a, [] = a; +>a : Symbol(a, Decl(emptyVariableDeclarationBindingPatterns01_ES5.ts, 1, 7)) +>a : Symbol(a, Decl(emptyVariableDeclarationBindingPatterns01_ES5.ts, 1, 7)) + + var { p1: {}, p2: [] } = a; +>a : Symbol(a, Decl(emptyVariableDeclarationBindingPatterns01_ES5.ts, 1, 7)) + + let { p1: {}, p2: [] } = a; +>a : Symbol(a, Decl(emptyVariableDeclarationBindingPatterns01_ES5.ts, 1, 7)) + + const { p1: {}, p2: [] } = a; +>a : Symbol(a, Decl(emptyVariableDeclarationBindingPatterns01_ES5.ts, 1, 7)) + + for (var {} = {}, {} = {}; false; void 0) { + } + + function f({} = a, [] = a, { p: {} = a} = a) { +>f : Symbol(f, Decl(emptyVariableDeclarationBindingPatterns01_ES5.ts, 20, 5)) +>a : Symbol(a, Decl(emptyVariableDeclarationBindingPatterns01_ES5.ts, 1, 7)) +>a : Symbol(a, Decl(emptyVariableDeclarationBindingPatterns01_ES5.ts, 1, 7)) +>a : Symbol(a, Decl(emptyVariableDeclarationBindingPatterns01_ES5.ts, 1, 7)) +>a : Symbol(a, Decl(emptyVariableDeclarationBindingPatterns01_ES5.ts, 1, 7)) + + return ({} = a, [] = a, { p: {} = a } = a) => a; +>a : Symbol(a, Decl(emptyVariableDeclarationBindingPatterns01_ES5.ts, 1, 7)) +>a : Symbol(a, Decl(emptyVariableDeclarationBindingPatterns01_ES5.ts, 1, 7)) +>a : Symbol(a, Decl(emptyVariableDeclarationBindingPatterns01_ES5.ts, 1, 7)) +>a : Symbol(a, Decl(emptyVariableDeclarationBindingPatterns01_ES5.ts, 1, 7)) +>a : Symbol(a, Decl(emptyVariableDeclarationBindingPatterns01_ES5.ts, 1, 7)) + } +})(); + +(function () { + const ns: number[][] = []; +>ns : Symbol(ns, Decl(emptyVariableDeclarationBindingPatterns01_ES5.ts, 28, 9)) + + for (var {} of ns) { +>ns : Symbol(ns, Decl(emptyVariableDeclarationBindingPatterns01_ES5.ts, 28, 9)) + } + + for (let {} of ns) { +>ns : Symbol(ns, Decl(emptyVariableDeclarationBindingPatterns01_ES5.ts, 28, 9)) + } + + for (const {} of ns) { +>ns : Symbol(ns, Decl(emptyVariableDeclarationBindingPatterns01_ES5.ts, 28, 9)) + } + + for (var [] of ns) { +>ns : Symbol(ns, Decl(emptyVariableDeclarationBindingPatterns01_ES5.ts, 28, 9)) + } + + for (let [] of ns) { +>ns : Symbol(ns, Decl(emptyVariableDeclarationBindingPatterns01_ES5.ts, 28, 9)) + } + + for (const [] of ns) { +>ns : Symbol(ns, Decl(emptyVariableDeclarationBindingPatterns01_ES5.ts, 28, 9)) + } +})(); diff --git a/tests/baselines/reference/emptyVariableDeclarationBindingPatterns01_ES5(target=es5).types b/tests/baselines/reference/emptyVariableDeclarationBindingPatterns01_ES5(target=es5).types new file mode 100644 index 0000000000000..a4bab08e9d589 --- /dev/null +++ b/tests/baselines/reference/emptyVariableDeclarationBindingPatterns01_ES5(target=es5).types @@ -0,0 +1,147 @@ +//// [tests/cases/conformance/es6/destructuring/emptyVariableDeclarationBindingPatterns01_ES5.ts] //// + +=== emptyVariableDeclarationBindingPatterns01_ES5.ts === +(function () { +>(function () { var a: any; var {} = a; let {} = a; const {} = a; var [] = a; let [] = a; const [] = a; var {} = a, [] = a; let {} = a, [] = a; const {} = a, [] = a; var { p1: {}, p2: [] } = a; let { p1: {}, p2: [] } = a; const { p1: {}, p2: [] } = a; for (var {} = {}, {} = {}; false; void 0) { } function f({} = a, [] = a, { p: {} = a} = a) { return ({} = a, [] = a, { p: {} = a } = a) => a; }})() : void +> : ^^^^ +>(function () { var a: any; var {} = a; let {} = a; const {} = a; var [] = a; let [] = a; const [] = a; var {} = a, [] = a; let {} = a, [] = a; const {} = a, [] = a; var { p1: {}, p2: [] } = a; let { p1: {}, p2: [] } = a; const { p1: {}, p2: [] } = a; for (var {} = {}, {} = {}; false; void 0) { } function f({} = a, [] = a, { p: {} = a} = a) { return ({} = a, [] = a, { p: {} = a } = a) => a; }}) : () => void +> : ^^^^^^^^^^ +>function () { var a: any; var {} = a; let {} = a; const {} = a; var [] = a; let [] = a; const [] = a; var {} = a, [] = a; let {} = a, [] = a; const {} = a, [] = a; var { p1: {}, p2: [] } = a; let { p1: {}, p2: [] } = a; const { p1: {}, p2: [] } = a; for (var {} = {}, {} = {}; false; void 0) { } function f({} = a, [] = a, { p: {} = a} = a) { return ({} = a, [] = a, { p: {} = a } = a) => a; }} : () => void +> : ^^^^^^^^^^ + + var a: any; +>a : any + + var {} = a; +>a : any + + let {} = a; +>a : any + + const {} = a; +>a : any + + var [] = a; +>a : any + + let [] = a; +>a : any + + const [] = a; +>a : any + + var {} = a, [] = a; +>a : any +>a : any + + let {} = a, [] = a; +>a : any +>a : any + + const {} = a, [] = a; +>a : any +>a : any + + var { p1: {}, p2: [] } = a; +>p1 : any +> : ^^^ +>p2 : any +> : ^^^ +>a : any + + let { p1: {}, p2: [] } = a; +>p1 : any +> : ^^^ +>p2 : any +> : ^^^ +>a : any + + const { p1: {}, p2: [] } = a; +>p1 : any +> : ^^^ +>p2 : any +> : ^^^ +>a : any + + for (var {} = {}, {} = {}; false; void 0) { +>{} : {} +> : ^^ +>{} : {} +> : ^^ +>false : false +> : ^^^^^ +>void 0 : undefined +> : ^^^^^^^^^ +>0 : 0 +> : ^ + } + + function f({} = a, [] = a, { p: {} = a} = a) { +>f : ({}?: any, []?: any, { p: {} }?: any) => ({}?: any, []?: any, { p: {} }?: any) => any +> : ^ ^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^^^^^ +>a : any +>a : any +>p : any +> : ^^^ +>a : any +> : ^^^ +>a : any + + return ({} = a, [] = a, { p: {} = a } = a) => a; +>({} = a, [] = a, { p: {} = a } = a) => a : ({}?: any, []?: any, { p: {} }?: any) => any +> : ^ ^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^^^^^ +>a : any +>a : any +>p : any +> : ^^^ +>a : any +> : ^^^ +>a : any +>a : any + } +})(); + +(function () { +>(function () { const ns: number[][] = []; for (var {} of ns) { } for (let {} of ns) { } for (const {} of ns) { } for (var [] of ns) { } for (let [] of ns) { } for (const [] of ns) { }})() : void +> : ^^^^ +>(function () { const ns: number[][] = []; for (var {} of ns) { } for (let {} of ns) { } for (const {} of ns) { } for (var [] of ns) { } for (let [] of ns) { } for (const [] of ns) { }}) : () => void +> : ^^^^^^^^^^ +>function () { const ns: number[][] = []; for (var {} of ns) { } for (let {} of ns) { } for (const {} of ns) { } for (var [] of ns) { } for (let [] of ns) { } for (const [] of ns) { }} : () => void +> : ^^^^^^^^^^ + + const ns: number[][] = []; +>ns : number[][] +> : ^^^^^^^^^^ +>[] : undefined[] +> : ^^^^^^^^^^^ + + for (var {} of ns) { +>ns : number[][] +> : ^^^^^^^^^^ + } + + for (let {} of ns) { +>ns : number[][] +> : ^^^^^^^^^^ + } + + for (const {} of ns) { +>ns : number[][] +> : ^^^^^^^^^^ + } + + for (var [] of ns) { +>ns : number[][] +> : ^^^^^^^^^^ + } + + for (let [] of ns) { +>ns : number[][] +> : ^^^^^^^^^^ + } + + for (const [] of ns) { +>ns : number[][] +> : ^^^^^^^^^^ + } +})(); diff --git a/tests/baselines/reference/emptyVariableDeclarationBindingPatterns01_ES5iterable(target=es2015).js b/tests/baselines/reference/emptyVariableDeclarationBindingPatterns01_ES5iterable(target=es2015).js new file mode 100644 index 0000000000000..5248484904ca5 --- /dev/null +++ b/tests/baselines/reference/emptyVariableDeclarationBindingPatterns01_ES5iterable(target=es2015).js @@ -0,0 +1,88 @@ +//// [tests/cases/conformance/es6/destructuring/emptyVariableDeclarationBindingPatterns01_ES5iterable.ts] //// + +//// [emptyVariableDeclarationBindingPatterns01_ES5iterable.ts] +(function () { + var a: any; + + var {} = a; + let {} = a; + const {} = a; + + var [] = a; + let [] = a; + const [] = a; + + var {} = a, [] = a; + let {} = a, [] = a; + const {} = a, [] = a; + + var { p1: {}, p2: [] } = a; + let { p1: {}, p2: [] } = a; + const { p1: {}, p2: [] } = a; + + for (var {} = {}, {} = {}; false; void 0) { + } + + function f({} = a, [] = a, { p: {} = a} = a) { + return ({} = a, [] = a, { p: {} = a } = a) => a; + } +})(); + +(function () { + const ns: number[][] = []; + + for (var {} of ns) { + } + + for (let {} of ns) { + } + + for (const {} of ns) { + } + + for (var [] of ns) { + } + + for (let [] of ns) { + } + + for (const [] of ns) { + } +})(); + +//// [emptyVariableDeclarationBindingPatterns01_ES5iterable.js] +(function () { + var a; + var {} = a; + let {} = a; + const {} = a; + var [] = a; + let [] = a; + const [] = a; + var {} = a, [] = a; + let {} = a, [] = a; + const {} = a, [] = a; + var { p1: {}, p2: [] } = a; + let { p1: {}, p2: [] } = a; + const { p1: {}, p2: [] } = a; + for (var {} = {}, {} = {}; false; void 0) { + } + function f({} = a, [] = a, { p: {} = a } = a) { + return ({} = a, [] = a, { p: {} = a } = a) => a; + } +})(); +(function () { + const ns = []; + for (var {} of ns) { + } + for (let {} of ns) { + } + for (const {} of ns) { + } + for (var [] of ns) { + } + for (let [] of ns) { + } + for (const [] of ns) { + } +})(); diff --git a/tests/baselines/reference/emptyVariableDeclarationBindingPatterns01_ES5iterable.symbols b/tests/baselines/reference/emptyVariableDeclarationBindingPatterns01_ES5iterable(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/emptyVariableDeclarationBindingPatterns01_ES5iterable.symbols rename to tests/baselines/reference/emptyVariableDeclarationBindingPatterns01_ES5iterable(target=es2015).symbols diff --git a/tests/baselines/reference/emptyVariableDeclarationBindingPatterns01_ES5iterable.types b/tests/baselines/reference/emptyVariableDeclarationBindingPatterns01_ES5iterable(target=es2015).types similarity index 100% rename from tests/baselines/reference/emptyVariableDeclarationBindingPatterns01_ES5iterable.types rename to tests/baselines/reference/emptyVariableDeclarationBindingPatterns01_ES5iterable(target=es2015).types diff --git a/tests/baselines/reference/emptyVariableDeclarationBindingPatterns01_ES5iterable.js b/tests/baselines/reference/emptyVariableDeclarationBindingPatterns01_ES5iterable(target=es5).js similarity index 100% rename from tests/baselines/reference/emptyVariableDeclarationBindingPatterns01_ES5iterable.js rename to tests/baselines/reference/emptyVariableDeclarationBindingPatterns01_ES5iterable(target=es5).js diff --git a/tests/baselines/reference/emptyVariableDeclarationBindingPatterns01_ES5iterable(target=es5).symbols b/tests/baselines/reference/emptyVariableDeclarationBindingPatterns01_ES5iterable(target=es5).symbols new file mode 100644 index 0000000000000..99ed4d5911f1c --- /dev/null +++ b/tests/baselines/reference/emptyVariableDeclarationBindingPatterns01_ES5iterable(target=es5).symbols @@ -0,0 +1,93 @@ +//// [tests/cases/conformance/es6/destructuring/emptyVariableDeclarationBindingPatterns01_ES5iterable.ts] //// + +=== emptyVariableDeclarationBindingPatterns01_ES5iterable.ts === +(function () { + var a: any; +>a : Symbol(a, Decl(emptyVariableDeclarationBindingPatterns01_ES5iterable.ts, 1, 7)) + + var {} = a; +>a : Symbol(a, Decl(emptyVariableDeclarationBindingPatterns01_ES5iterable.ts, 1, 7)) + + let {} = a; +>a : Symbol(a, Decl(emptyVariableDeclarationBindingPatterns01_ES5iterable.ts, 1, 7)) + + const {} = a; +>a : Symbol(a, Decl(emptyVariableDeclarationBindingPatterns01_ES5iterable.ts, 1, 7)) + + var [] = a; +>a : Symbol(a, Decl(emptyVariableDeclarationBindingPatterns01_ES5iterable.ts, 1, 7)) + + let [] = a; +>a : Symbol(a, Decl(emptyVariableDeclarationBindingPatterns01_ES5iterable.ts, 1, 7)) + + const [] = a; +>a : Symbol(a, Decl(emptyVariableDeclarationBindingPatterns01_ES5iterable.ts, 1, 7)) + + var {} = a, [] = a; +>a : Symbol(a, Decl(emptyVariableDeclarationBindingPatterns01_ES5iterable.ts, 1, 7)) +>a : Symbol(a, Decl(emptyVariableDeclarationBindingPatterns01_ES5iterable.ts, 1, 7)) + + let {} = a, [] = a; +>a : Symbol(a, Decl(emptyVariableDeclarationBindingPatterns01_ES5iterable.ts, 1, 7)) +>a : Symbol(a, Decl(emptyVariableDeclarationBindingPatterns01_ES5iterable.ts, 1, 7)) + + const {} = a, [] = a; +>a : Symbol(a, Decl(emptyVariableDeclarationBindingPatterns01_ES5iterable.ts, 1, 7)) +>a : Symbol(a, Decl(emptyVariableDeclarationBindingPatterns01_ES5iterable.ts, 1, 7)) + + var { p1: {}, p2: [] } = a; +>a : Symbol(a, Decl(emptyVariableDeclarationBindingPatterns01_ES5iterable.ts, 1, 7)) + + let { p1: {}, p2: [] } = a; +>a : Symbol(a, Decl(emptyVariableDeclarationBindingPatterns01_ES5iterable.ts, 1, 7)) + + const { p1: {}, p2: [] } = a; +>a : Symbol(a, Decl(emptyVariableDeclarationBindingPatterns01_ES5iterable.ts, 1, 7)) + + for (var {} = {}, {} = {}; false; void 0) { + } + + function f({} = a, [] = a, { p: {} = a} = a) { +>f : Symbol(f, Decl(emptyVariableDeclarationBindingPatterns01_ES5iterable.ts, 20, 5)) +>a : Symbol(a, Decl(emptyVariableDeclarationBindingPatterns01_ES5iterable.ts, 1, 7)) +>a : Symbol(a, Decl(emptyVariableDeclarationBindingPatterns01_ES5iterable.ts, 1, 7)) +>a : Symbol(a, Decl(emptyVariableDeclarationBindingPatterns01_ES5iterable.ts, 1, 7)) +>a : Symbol(a, Decl(emptyVariableDeclarationBindingPatterns01_ES5iterable.ts, 1, 7)) + + return ({} = a, [] = a, { p: {} = a } = a) => a; +>a : Symbol(a, Decl(emptyVariableDeclarationBindingPatterns01_ES5iterable.ts, 1, 7)) +>a : Symbol(a, Decl(emptyVariableDeclarationBindingPatterns01_ES5iterable.ts, 1, 7)) +>a : Symbol(a, Decl(emptyVariableDeclarationBindingPatterns01_ES5iterable.ts, 1, 7)) +>a : Symbol(a, Decl(emptyVariableDeclarationBindingPatterns01_ES5iterable.ts, 1, 7)) +>a : Symbol(a, Decl(emptyVariableDeclarationBindingPatterns01_ES5iterable.ts, 1, 7)) + } +})(); + +(function () { + const ns: number[][] = []; +>ns : Symbol(ns, Decl(emptyVariableDeclarationBindingPatterns01_ES5iterable.ts, 28, 9)) + + for (var {} of ns) { +>ns : Symbol(ns, Decl(emptyVariableDeclarationBindingPatterns01_ES5iterable.ts, 28, 9)) + } + + for (let {} of ns) { +>ns : Symbol(ns, Decl(emptyVariableDeclarationBindingPatterns01_ES5iterable.ts, 28, 9)) + } + + for (const {} of ns) { +>ns : Symbol(ns, Decl(emptyVariableDeclarationBindingPatterns01_ES5iterable.ts, 28, 9)) + } + + for (var [] of ns) { +>ns : Symbol(ns, Decl(emptyVariableDeclarationBindingPatterns01_ES5iterable.ts, 28, 9)) + } + + for (let [] of ns) { +>ns : Symbol(ns, Decl(emptyVariableDeclarationBindingPatterns01_ES5iterable.ts, 28, 9)) + } + + for (const [] of ns) { +>ns : Symbol(ns, Decl(emptyVariableDeclarationBindingPatterns01_ES5iterable.ts, 28, 9)) + } +})(); diff --git a/tests/baselines/reference/emptyVariableDeclarationBindingPatterns01_ES5iterable(target=es5).types b/tests/baselines/reference/emptyVariableDeclarationBindingPatterns01_ES5iterable(target=es5).types new file mode 100644 index 0000000000000..1f5357158a96d --- /dev/null +++ b/tests/baselines/reference/emptyVariableDeclarationBindingPatterns01_ES5iterable(target=es5).types @@ -0,0 +1,147 @@ +//// [tests/cases/conformance/es6/destructuring/emptyVariableDeclarationBindingPatterns01_ES5iterable.ts] //// + +=== emptyVariableDeclarationBindingPatterns01_ES5iterable.ts === +(function () { +>(function () { var a: any; var {} = a; let {} = a; const {} = a; var [] = a; let [] = a; const [] = a; var {} = a, [] = a; let {} = a, [] = a; const {} = a, [] = a; var { p1: {}, p2: [] } = a; let { p1: {}, p2: [] } = a; const { p1: {}, p2: [] } = a; for (var {} = {}, {} = {}; false; void 0) { } function f({} = a, [] = a, { p: {} = a} = a) { return ({} = a, [] = a, { p: {} = a } = a) => a; }})() : void +> : ^^^^ +>(function () { var a: any; var {} = a; let {} = a; const {} = a; var [] = a; let [] = a; const [] = a; var {} = a, [] = a; let {} = a, [] = a; const {} = a, [] = a; var { p1: {}, p2: [] } = a; let { p1: {}, p2: [] } = a; const { p1: {}, p2: [] } = a; for (var {} = {}, {} = {}; false; void 0) { } function f({} = a, [] = a, { p: {} = a} = a) { return ({} = a, [] = a, { p: {} = a } = a) => a; }}) : () => void +> : ^^^^^^^^^^ +>function () { var a: any; var {} = a; let {} = a; const {} = a; var [] = a; let [] = a; const [] = a; var {} = a, [] = a; let {} = a, [] = a; const {} = a, [] = a; var { p1: {}, p2: [] } = a; let { p1: {}, p2: [] } = a; const { p1: {}, p2: [] } = a; for (var {} = {}, {} = {}; false; void 0) { } function f({} = a, [] = a, { p: {} = a} = a) { return ({} = a, [] = a, { p: {} = a } = a) => a; }} : () => void +> : ^^^^^^^^^^ + + var a: any; +>a : any + + var {} = a; +>a : any + + let {} = a; +>a : any + + const {} = a; +>a : any + + var [] = a; +>a : any + + let [] = a; +>a : any + + const [] = a; +>a : any + + var {} = a, [] = a; +>a : any +>a : any + + let {} = a, [] = a; +>a : any +>a : any + + const {} = a, [] = a; +>a : any +>a : any + + var { p1: {}, p2: [] } = a; +>p1 : any +> : ^^^ +>p2 : any +> : ^^^ +>a : any + + let { p1: {}, p2: [] } = a; +>p1 : any +> : ^^^ +>p2 : any +> : ^^^ +>a : any + + const { p1: {}, p2: [] } = a; +>p1 : any +> : ^^^ +>p2 : any +> : ^^^ +>a : any + + for (var {} = {}, {} = {}; false; void 0) { +>{} : {} +> : ^^ +>{} : {} +> : ^^ +>false : false +> : ^^^^^ +>void 0 : undefined +> : ^^^^^^^^^ +>0 : 0 +> : ^ + } + + function f({} = a, [] = a, { p: {} = a} = a) { +>f : ({}?: any, []?: any, { p: {} }?: any) => ({}?: any, []?: any, { p: {} }?: any) => any +> : ^ ^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^^^^^ +>a : any +>a : any +>p : any +> : ^^^ +>a : any +> : ^^^ +>a : any + + return ({} = a, [] = a, { p: {} = a } = a) => a; +>({} = a, [] = a, { p: {} = a } = a) => a : ({}?: any, []?: any, { p: {} }?: any) => any +> : ^ ^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^^^^^ +>a : any +>a : any +>p : any +> : ^^^ +>a : any +> : ^^^ +>a : any +>a : any + } +})(); + +(function () { +>(function () { const ns: number[][] = []; for (var {} of ns) { } for (let {} of ns) { } for (const {} of ns) { } for (var [] of ns) { } for (let [] of ns) { } for (const [] of ns) { }})() : void +> : ^^^^ +>(function () { const ns: number[][] = []; for (var {} of ns) { } for (let {} of ns) { } for (const {} of ns) { } for (var [] of ns) { } for (let [] of ns) { } for (const [] of ns) { }}) : () => void +> : ^^^^^^^^^^ +>function () { const ns: number[][] = []; for (var {} of ns) { } for (let {} of ns) { } for (const {} of ns) { } for (var [] of ns) { } for (let [] of ns) { } for (const [] of ns) { }} : () => void +> : ^^^^^^^^^^ + + const ns: number[][] = []; +>ns : number[][] +> : ^^^^^^^^^^ +>[] : undefined[] +> : ^^^^^^^^^^^ + + for (var {} of ns) { +>ns : number[][] +> : ^^^^^^^^^^ + } + + for (let {} of ns) { +>ns : number[][] +> : ^^^^^^^^^^ + } + + for (const {} of ns) { +>ns : number[][] +> : ^^^^^^^^^^ + } + + for (var [] of ns) { +>ns : number[][] +> : ^^^^^^^^^^ + } + + for (let [] of ns) { +>ns : number[][] +> : ^^^^^^^^^^ + } + + for (const [] of ns) { +>ns : number[][] +> : ^^^^^^^^^^ + } +})(); diff --git a/tests/baselines/reference/emptyVariableDeclarationBindingPatterns02_ES5.errors.txt b/tests/baselines/reference/emptyVariableDeclarationBindingPatterns02_ES5(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/emptyVariableDeclarationBindingPatterns02_ES5.errors.txt rename to tests/baselines/reference/emptyVariableDeclarationBindingPatterns02_ES5(target=es2015).errors.txt diff --git a/tests/baselines/reference/emptyVariableDeclarationBindingPatterns02_ES5(target=es2015).js b/tests/baselines/reference/emptyVariableDeclarationBindingPatterns02_ES5(target=es2015).js new file mode 100644 index 0000000000000..391920815baa5 --- /dev/null +++ b/tests/baselines/reference/emptyVariableDeclarationBindingPatterns02_ES5(target=es2015).js @@ -0,0 +1,25 @@ +//// [tests/cases/conformance/es6/destructuring/emptyVariableDeclarationBindingPatterns02_ES5.ts] //// + +//// [emptyVariableDeclarationBindingPatterns02_ES5.ts] +(function () { + var {}; + let {}; + const {}; + + var []; + let []; + const []; +})(); + +//// [emptyVariableDeclarationBindingPatterns02_ES5.js] +(function () { + var {}; + let {}; + const {}; + var []; + let []; + const []; +})(); + + +//// [emptyVariableDeclarationBindingPatterns02_ES5.d.ts] diff --git a/tests/baselines/reference/emptyVariableDeclarationBindingPatterns02_ES5.symbols b/tests/baselines/reference/emptyVariableDeclarationBindingPatterns02_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/emptyVariableDeclarationBindingPatterns02_ES5.symbols rename to tests/baselines/reference/emptyVariableDeclarationBindingPatterns02_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/emptyVariableDeclarationBindingPatterns02_ES5.types b/tests/baselines/reference/emptyVariableDeclarationBindingPatterns02_ES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/emptyVariableDeclarationBindingPatterns02_ES5.types rename to tests/baselines/reference/emptyVariableDeclarationBindingPatterns02_ES5(target=es2015).types diff --git a/tests/baselines/reference/emptyVariableDeclarationBindingPatterns02_ES5(target=es5).errors.txt b/tests/baselines/reference/emptyVariableDeclarationBindingPatterns02_ES5(target=es5).errors.txt new file mode 100644 index 0000000000000..40e96efa387af --- /dev/null +++ b/tests/baselines/reference/emptyVariableDeclarationBindingPatterns02_ES5(target=es5).errors.txt @@ -0,0 +1,30 @@ +emptyVariableDeclarationBindingPatterns02_ES5.ts(2,9): error TS1182: A destructuring declaration must have an initializer. +emptyVariableDeclarationBindingPatterns02_ES5.ts(3,9): error TS1182: A destructuring declaration must have an initializer. +emptyVariableDeclarationBindingPatterns02_ES5.ts(4,11): error TS1182: A destructuring declaration must have an initializer. +emptyVariableDeclarationBindingPatterns02_ES5.ts(6,9): error TS1182: A destructuring declaration must have an initializer. +emptyVariableDeclarationBindingPatterns02_ES5.ts(7,9): error TS1182: A destructuring declaration must have an initializer. +emptyVariableDeclarationBindingPatterns02_ES5.ts(8,11): error TS1182: A destructuring declaration must have an initializer. + + +==== emptyVariableDeclarationBindingPatterns02_ES5.ts (6 errors) ==== + (function () { + var {}; + ~~ +!!! error TS1182: A destructuring declaration must have an initializer. + let {}; + ~~ +!!! error TS1182: A destructuring declaration must have an initializer. + const {}; + ~~ +!!! error TS1182: A destructuring declaration must have an initializer. + + var []; + ~~ +!!! error TS1182: A destructuring declaration must have an initializer. + let []; + ~~ +!!! error TS1182: A destructuring declaration must have an initializer. + const []; + ~~ +!!! error TS1182: A destructuring declaration must have an initializer. + })(); \ No newline at end of file diff --git a/tests/baselines/reference/emptyVariableDeclarationBindingPatterns02_ES5.js b/tests/baselines/reference/emptyVariableDeclarationBindingPatterns02_ES5(target=es5).js similarity index 100% rename from tests/baselines/reference/emptyVariableDeclarationBindingPatterns02_ES5.js rename to tests/baselines/reference/emptyVariableDeclarationBindingPatterns02_ES5(target=es5).js diff --git a/tests/baselines/reference/emptyVariableDeclarationBindingPatterns02_ES5(target=es5).symbols b/tests/baselines/reference/emptyVariableDeclarationBindingPatterns02_ES5(target=es5).symbols new file mode 100644 index 0000000000000..0d0a2581a3b17 --- /dev/null +++ b/tests/baselines/reference/emptyVariableDeclarationBindingPatterns02_ES5(target=es5).symbols @@ -0,0 +1,13 @@ +//// [tests/cases/conformance/es6/destructuring/emptyVariableDeclarationBindingPatterns02_ES5.ts] //// + +=== emptyVariableDeclarationBindingPatterns02_ES5.ts === + +(function () { + var {}; + let {}; + const {}; + + var []; + let []; + const []; +})(); diff --git a/tests/baselines/reference/emptyVariableDeclarationBindingPatterns02_ES5(target=es5).types b/tests/baselines/reference/emptyVariableDeclarationBindingPatterns02_ES5(target=es5).types new file mode 100644 index 0000000000000..df660660e436c --- /dev/null +++ b/tests/baselines/reference/emptyVariableDeclarationBindingPatterns02_ES5(target=es5).types @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/es6/destructuring/emptyVariableDeclarationBindingPatterns02_ES5.ts] //// + +=== emptyVariableDeclarationBindingPatterns02_ES5.ts === +(function () { +>(function () { var {}; let {}; const {}; var []; let []; const [];})() : void +> : ^^^^ +>(function () { var {}; let {}; const {}; var []; let []; const [];}) : () => void +> : ^^^^^^^^^^ +>function () { var {}; let {}; const {}; var []; let []; const [];} : () => void +> : ^^^^^^^^^^ + + var {}; + let {}; + const {}; + + var []; + let []; + const []; +})(); diff --git a/tests/baselines/reference/emptyVariableDeclarationBindingPatterns02_ES5iterable.errors.txt b/tests/baselines/reference/emptyVariableDeclarationBindingPatterns02_ES5iterable(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/emptyVariableDeclarationBindingPatterns02_ES5iterable.errors.txt rename to tests/baselines/reference/emptyVariableDeclarationBindingPatterns02_ES5iterable(target=es2015).errors.txt diff --git a/tests/baselines/reference/emptyVariableDeclarationBindingPatterns02_ES5iterable(target=es2015).js b/tests/baselines/reference/emptyVariableDeclarationBindingPatterns02_ES5iterable(target=es2015).js new file mode 100644 index 0000000000000..c719c770dca0b --- /dev/null +++ b/tests/baselines/reference/emptyVariableDeclarationBindingPatterns02_ES5iterable(target=es2015).js @@ -0,0 +1,25 @@ +//// [tests/cases/conformance/es6/destructuring/emptyVariableDeclarationBindingPatterns02_ES5iterable.ts] //// + +//// [emptyVariableDeclarationBindingPatterns02_ES5iterable.ts] +(function () { + var {}; + let {}; + const {}; + + var []; + let []; + const []; +})(); + +//// [emptyVariableDeclarationBindingPatterns02_ES5iterable.js] +(function () { + var {}; + let {}; + const {}; + var []; + let []; + const []; +})(); + + +//// [emptyVariableDeclarationBindingPatterns02_ES5iterable.d.ts] diff --git a/tests/baselines/reference/emptyVariableDeclarationBindingPatterns02_ES5iterable.symbols b/tests/baselines/reference/emptyVariableDeclarationBindingPatterns02_ES5iterable(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/emptyVariableDeclarationBindingPatterns02_ES5iterable.symbols rename to tests/baselines/reference/emptyVariableDeclarationBindingPatterns02_ES5iterable(target=es2015).symbols diff --git a/tests/baselines/reference/emptyVariableDeclarationBindingPatterns02_ES5iterable.types b/tests/baselines/reference/emptyVariableDeclarationBindingPatterns02_ES5iterable(target=es2015).types similarity index 100% rename from tests/baselines/reference/emptyVariableDeclarationBindingPatterns02_ES5iterable.types rename to tests/baselines/reference/emptyVariableDeclarationBindingPatterns02_ES5iterable(target=es2015).types diff --git a/tests/baselines/reference/emptyVariableDeclarationBindingPatterns02_ES5iterable(target=es5).errors.txt b/tests/baselines/reference/emptyVariableDeclarationBindingPatterns02_ES5iterable(target=es5).errors.txt new file mode 100644 index 0000000000000..2ab84a97c0991 --- /dev/null +++ b/tests/baselines/reference/emptyVariableDeclarationBindingPatterns02_ES5iterable(target=es5).errors.txt @@ -0,0 +1,30 @@ +emptyVariableDeclarationBindingPatterns02_ES5iterable.ts(2,9): error TS1182: A destructuring declaration must have an initializer. +emptyVariableDeclarationBindingPatterns02_ES5iterable.ts(3,9): error TS1182: A destructuring declaration must have an initializer. +emptyVariableDeclarationBindingPatterns02_ES5iterable.ts(4,11): error TS1182: A destructuring declaration must have an initializer. +emptyVariableDeclarationBindingPatterns02_ES5iterable.ts(6,9): error TS1182: A destructuring declaration must have an initializer. +emptyVariableDeclarationBindingPatterns02_ES5iterable.ts(7,9): error TS1182: A destructuring declaration must have an initializer. +emptyVariableDeclarationBindingPatterns02_ES5iterable.ts(8,11): error TS1182: A destructuring declaration must have an initializer. + + +==== emptyVariableDeclarationBindingPatterns02_ES5iterable.ts (6 errors) ==== + (function () { + var {}; + ~~ +!!! error TS1182: A destructuring declaration must have an initializer. + let {}; + ~~ +!!! error TS1182: A destructuring declaration must have an initializer. + const {}; + ~~ +!!! error TS1182: A destructuring declaration must have an initializer. + + var []; + ~~ +!!! error TS1182: A destructuring declaration must have an initializer. + let []; + ~~ +!!! error TS1182: A destructuring declaration must have an initializer. + const []; + ~~ +!!! error TS1182: A destructuring declaration must have an initializer. + })(); \ No newline at end of file diff --git a/tests/baselines/reference/emptyVariableDeclarationBindingPatterns02_ES5iterable.js b/tests/baselines/reference/emptyVariableDeclarationBindingPatterns02_ES5iterable(target=es5).js similarity index 100% rename from tests/baselines/reference/emptyVariableDeclarationBindingPatterns02_ES5iterable.js rename to tests/baselines/reference/emptyVariableDeclarationBindingPatterns02_ES5iterable(target=es5).js diff --git a/tests/baselines/reference/emptyVariableDeclarationBindingPatterns02_ES5iterable(target=es5).symbols b/tests/baselines/reference/emptyVariableDeclarationBindingPatterns02_ES5iterable(target=es5).symbols new file mode 100644 index 0000000000000..0cc47dcfaa7dc --- /dev/null +++ b/tests/baselines/reference/emptyVariableDeclarationBindingPatterns02_ES5iterable(target=es5).symbols @@ -0,0 +1,13 @@ +//// [tests/cases/conformance/es6/destructuring/emptyVariableDeclarationBindingPatterns02_ES5iterable.ts] //// + +=== emptyVariableDeclarationBindingPatterns02_ES5iterable.ts === + +(function () { + var {}; + let {}; + const {}; + + var []; + let []; + const []; +})(); diff --git a/tests/baselines/reference/emptyVariableDeclarationBindingPatterns02_ES5iterable(target=es5).types b/tests/baselines/reference/emptyVariableDeclarationBindingPatterns02_ES5iterable(target=es5).types new file mode 100644 index 0000000000000..b17cc42464be2 --- /dev/null +++ b/tests/baselines/reference/emptyVariableDeclarationBindingPatterns02_ES5iterable(target=es5).types @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/es6/destructuring/emptyVariableDeclarationBindingPatterns02_ES5iterable.ts] //// + +=== emptyVariableDeclarationBindingPatterns02_ES5iterable.ts === +(function () { +>(function () { var {}; let {}; const {}; var []; let []; const [];})() : void +> : ^^^^ +>(function () { var {}; let {}; const {}; var []; let []; const [];}) : () => void +> : ^^^^^^^^^^ +>function () { var {}; let {}; const {}; var []; let []; const [];} : () => void +> : ^^^^^^^^^^ + + var {}; + let {}; + const {}; + + var []; + let []; + const []; +})(); diff --git a/tests/baselines/reference/errorsOnImportedSymbol.errors.txt b/tests/baselines/reference/errorsOnImportedSymbol(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/errorsOnImportedSymbol.errors.txt rename to tests/baselines/reference/errorsOnImportedSymbol(target=es2015).errors.txt diff --git a/tests/baselines/reference/errorsOnImportedSymbol.js b/tests/baselines/reference/errorsOnImportedSymbol(target=es2015).js similarity index 100% rename from tests/baselines/reference/errorsOnImportedSymbol.js rename to tests/baselines/reference/errorsOnImportedSymbol(target=es2015).js diff --git a/tests/baselines/reference/errorsOnImportedSymbol.symbols b/tests/baselines/reference/errorsOnImportedSymbol(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/errorsOnImportedSymbol.symbols rename to tests/baselines/reference/errorsOnImportedSymbol(target=es2015).symbols diff --git a/tests/baselines/reference/errorsOnImportedSymbol.types b/tests/baselines/reference/errorsOnImportedSymbol(target=es2015).types similarity index 100% rename from tests/baselines/reference/errorsOnImportedSymbol.types rename to tests/baselines/reference/errorsOnImportedSymbol(target=es2015).types diff --git a/tests/baselines/reference/errorsOnImportedSymbol(target=es5).errors.txt b/tests/baselines/reference/errorsOnImportedSymbol(target=es5).errors.txt new file mode 100644 index 0000000000000..aad16bdae01bd --- /dev/null +++ b/tests/baselines/reference/errorsOnImportedSymbol(target=es5).errors.txt @@ -0,0 +1,21 @@ +errorsOnImportedSymbol_1.ts(2,13): error TS2693: 'Sammy' only refers to a type, but is being used as a value here. +errorsOnImportedSymbol_1.ts(3,9): error TS2693: 'Sammy' only refers to a type, but is being used as a value here. + + +==== errorsOnImportedSymbol_1.ts (2 errors) ==== + import Sammy = require("./errorsOnImportedSymbol_0"); + var x = new Sammy.Sammy(); + ~~~~~ +!!! error TS2693: 'Sammy' only refers to a type, but is being used as a value here. + var y = Sammy.Sammy(); + ~~~~~ +!!! error TS2693: 'Sammy' only refers to a type, but is being used as a value here. + + +==== errorsOnImportedSymbol_0.ts (0 errors) ==== + interface Sammy { + new (): any; + (): number; + } + export = Sammy; + \ No newline at end of file diff --git a/tests/baselines/reference/errorsOnImportedSymbol(target=es5).js b/tests/baselines/reference/errorsOnImportedSymbol(target=es5).js new file mode 100644 index 0000000000000..2d784b04d6558 --- /dev/null +++ b/tests/baselines/reference/errorsOnImportedSymbol(target=es5).js @@ -0,0 +1,24 @@ +//// [tests/cases/compiler/errorsOnImportedSymbol.ts] //// + +//// [errorsOnImportedSymbol_0.ts] +interface Sammy { + new (): any; + (): number; +} +export = Sammy; + +//// [errorsOnImportedSymbol_1.ts] +import Sammy = require("./errorsOnImportedSymbol_0"); +var x = new Sammy.Sammy(); +var y = Sammy.Sammy(); + + + +//// [errorsOnImportedSymbol_0.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//// [errorsOnImportedSymbol_1.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var x = new Sammy.Sammy(); +var y = Sammy.Sammy(); diff --git a/tests/baselines/reference/errorsOnImportedSymbol(target=es5).symbols b/tests/baselines/reference/errorsOnImportedSymbol(target=es5).symbols new file mode 100644 index 0000000000000..6d179a72173d1 --- /dev/null +++ b/tests/baselines/reference/errorsOnImportedSymbol(target=es5).symbols @@ -0,0 +1,23 @@ +//// [tests/cases/compiler/errorsOnImportedSymbol.ts] //// + +=== errorsOnImportedSymbol_1.ts === +import Sammy = require("./errorsOnImportedSymbol_0"); +>Sammy : Symbol(Sammy, Decl(errorsOnImportedSymbol_1.ts, 0, 0)) + +var x = new Sammy.Sammy(); +>x : Symbol(x, Decl(errorsOnImportedSymbol_1.ts, 1, 3)) + +var y = Sammy.Sammy(); +>y : Symbol(y, Decl(errorsOnImportedSymbol_1.ts, 2, 3)) + + +=== errorsOnImportedSymbol_0.ts === +interface Sammy { +>Sammy : Symbol(Sammy, Decl(errorsOnImportedSymbol_0.ts, 0, 0)) + + new (): any; + (): number; +} +export = Sammy; +>Sammy : Symbol(Sammy, Decl(errorsOnImportedSymbol_0.ts, 0, 0)) + diff --git a/tests/baselines/reference/errorsOnImportedSymbol(target=es5).types b/tests/baselines/reference/errorsOnImportedSymbol(target=es5).types new file mode 100644 index 0000000000000..93727ecfa05ed --- /dev/null +++ b/tests/baselines/reference/errorsOnImportedSymbol(target=es5).types @@ -0,0 +1,41 @@ +//// [tests/cases/compiler/errorsOnImportedSymbol.ts] //// + +=== errorsOnImportedSymbol_1.ts === +import Sammy = require("./errorsOnImportedSymbol_0"); +>Sammy : any +> : ^^^ + +var x = new Sammy.Sammy(); +>x : any +> : ^^^ +>new Sammy.Sammy() : any +> : ^^^ +>Sammy.Sammy : any +> : ^^^ +>Sammy : any +> : ^^^ +>Sammy : any +> : ^^^ + +var y = Sammy.Sammy(); +>y : any +> : ^^^ +>Sammy.Sammy() : any +> : ^^^ +>Sammy.Sammy : any +> : ^^^ +>Sammy : any +> : ^^^ +>Sammy : any +> : ^^^ + + +=== errorsOnImportedSymbol_0.ts === +interface Sammy { + new (): any; + (): number; +} +export = Sammy; +>Sammy : Sammy +> : ^^^^^ + diff --git a/tests/baselines/reference/es5-amd.errors.txt b/tests/baselines/reference/es5-amd(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/es5-amd.errors.txt rename to tests/baselines/reference/es5-amd(target=es2015).errors.txt diff --git a/tests/baselines/reference/es5-amd(target=es2015).js b/tests/baselines/reference/es5-amd(target=es2015).js new file mode 100644 index 0000000000000..fa1bb7d092287 --- /dev/null +++ b/tests/baselines/reference/es5-amd(target=es2015).js @@ -0,0 +1,24 @@ +//// [tests/cases/compiler/es5-amd.ts] //// + +//// [es5-amd.ts] +class A +{ + constructor () + { + + } + + public B() + { + return 42; + } +} + +//// [es5-amd.js] +class A { + constructor() { + } + B() { + return 42; + } +} diff --git a/tests/baselines/reference/es5-amd.symbols b/tests/baselines/reference/es5-amd(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es5-amd.symbols rename to tests/baselines/reference/es5-amd(target=es2015).symbols diff --git a/tests/baselines/reference/es5-amd.types b/tests/baselines/reference/es5-amd(target=es2015).types similarity index 100% rename from tests/baselines/reference/es5-amd.types rename to tests/baselines/reference/es5-amd(target=es2015).types diff --git a/tests/baselines/reference/es5-amd(target=es5).errors.txt b/tests/baselines/reference/es5-amd(target=es5).errors.txt new file mode 100644 index 0000000000000..894e40177a85b --- /dev/null +++ b/tests/baselines/reference/es5-amd(target=es5).errors.txt @@ -0,0 +1,17 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== es5-amd.ts (0 errors) ==== + class A + { + constructor () + { + + } + + public B() + { + return 42; + } + } \ No newline at end of file diff --git a/tests/baselines/reference/es5-amd.js b/tests/baselines/reference/es5-amd(target=es5).js similarity index 100% rename from tests/baselines/reference/es5-amd.js rename to tests/baselines/reference/es5-amd(target=es5).js diff --git a/tests/baselines/reference/es5-amd(target=es5).symbols b/tests/baselines/reference/es5-amd(target=es5).symbols new file mode 100644 index 0000000000000..57b5e6f87c615 --- /dev/null +++ b/tests/baselines/reference/es5-amd(target=es5).symbols @@ -0,0 +1,17 @@ +//// [tests/cases/compiler/es5-amd.ts] //// + +=== es5-amd.ts === +class A +>A : Symbol(A, Decl(es5-amd.ts, 0, 0)) +{ + constructor () + { + + } + + public B() +>B : Symbol(A.B, Decl(es5-amd.ts, 5, 5)) + { + return 42; + } +} diff --git a/tests/baselines/reference/es5-amd(target=es5).types b/tests/baselines/reference/es5-amd(target=es5).types new file mode 100644 index 0000000000000..d63c862a93088 --- /dev/null +++ b/tests/baselines/reference/es5-amd(target=es5).types @@ -0,0 +1,21 @@ +//// [tests/cases/compiler/es5-amd.ts] //// + +=== es5-amd.ts === +class A +>A : A +> : ^ +{ + constructor () + { + + } + + public B() +>B : () => number +> : ^^^^^^^^^^^^ + { + return 42; +>42 : 42 +> : ^^ + } +} diff --git a/tests/baselines/reference/es5-asyncFunction(target=es2015).js b/tests/baselines/reference/es5-asyncFunction(target=es2015).js new file mode 100644 index 0000000000000..249d9c9754ef3 --- /dev/null +++ b/tests/baselines/reference/es5-asyncFunction(target=es2015).js @@ -0,0 +1,31 @@ +//// [tests/cases/compiler/es5-asyncFunction.ts] //// + +//// [es5-asyncFunction.ts] +declare var x; + +async function empty() { +} + +async function singleAwait() { + await x; +} + +//// [es5-asyncFunction.js] +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +function empty() { + return __awaiter(this, void 0, void 0, function* () { + }); +} +function singleAwait() { + return __awaiter(this, void 0, void 0, function* () { + yield x; + }); +} diff --git a/tests/baselines/reference/es5-asyncFunction.symbols b/tests/baselines/reference/es5-asyncFunction(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es5-asyncFunction.symbols rename to tests/baselines/reference/es5-asyncFunction(target=es2015).symbols diff --git a/tests/baselines/reference/es5-asyncFunction.types b/tests/baselines/reference/es5-asyncFunction(target=es2015).types similarity index 100% rename from tests/baselines/reference/es5-asyncFunction.types rename to tests/baselines/reference/es5-asyncFunction(target=es2015).types diff --git a/tests/baselines/reference/es5-asyncFunction.js b/tests/baselines/reference/es5-asyncFunction(target=es5).js similarity index 100% rename from tests/baselines/reference/es5-asyncFunction.js rename to tests/baselines/reference/es5-asyncFunction(target=es5).js diff --git a/tests/baselines/reference/es5-asyncFunction(target=es5).symbols b/tests/baselines/reference/es5-asyncFunction(target=es5).symbols new file mode 100644 index 0000000000000..90213ffc9ff51 --- /dev/null +++ b/tests/baselines/reference/es5-asyncFunction(target=es5).symbols @@ -0,0 +1,16 @@ +//// [tests/cases/compiler/es5-asyncFunction.ts] //// + +=== es5-asyncFunction.ts === +declare var x; +>x : Symbol(x, Decl(es5-asyncFunction.ts, 0, 11)) + +async function empty() { +>empty : Symbol(empty, Decl(es5-asyncFunction.ts, 0, 14)) +} + +async function singleAwait() { +>singleAwait : Symbol(singleAwait, Decl(es5-asyncFunction.ts, 3, 1)) + + await x; +>x : Symbol(x, Decl(es5-asyncFunction.ts, 0, 11)) +} diff --git a/tests/baselines/reference/es5-asyncFunction(target=es5).types b/tests/baselines/reference/es5-asyncFunction(target=es5).types new file mode 100644 index 0000000000000..9e2beb2582bd2 --- /dev/null +++ b/tests/baselines/reference/es5-asyncFunction(target=es5).types @@ -0,0 +1,19 @@ +//// [tests/cases/compiler/es5-asyncFunction.ts] //// + +=== es5-asyncFunction.ts === +declare var x; +>x : any + +async function empty() { +>empty : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ +} + +async function singleAwait() { +>singleAwait : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + await x; +>await x : any +>x : any +} diff --git a/tests/baselines/reference/es5-asyncFunctionArrayLiterals(target=es2015).js b/tests/baselines/reference/es5-asyncFunctionArrayLiterals(target=es2015).js new file mode 100644 index 0000000000000..20025376121a3 --- /dev/null +++ b/tests/baselines/reference/es5-asyncFunctionArrayLiterals(target=es2015).js @@ -0,0 +1,78 @@ +//// [tests/cases/compiler/es5-asyncFunctionArrayLiterals.ts] //// + +//// [es5-asyncFunctionArrayLiterals.ts] +declare var x, y, z, a; + +async function arrayLiteral0() { + x = [await y, z]; +} + +async function arrayLiteral1() { + x = [y, await z]; +} + +async function arrayLiteral2() { + x = [...(await y), z]; +} + +async function arrayLiteral3() { + x = [...y, await z]; +} + +async function arrayLiteral4() { + x = [await y, ...z]; +} + +async function arrayLiteral5() { + x = [y, ...(await z)]; +} + +async function arrayLiteral6() { + x = [y, await z, a]; +} + +async function arrayLiteral7() { + x = [await y, z, await a]; +} + +//// [es5-asyncFunctionArrayLiterals.js] +function arrayLiteral0() { + return __awaiter(this, void 0, void 0, function* () { + x = [yield y, z]; + }); +} +function arrayLiteral1() { + return __awaiter(this, void 0, void 0, function* () { + x = [y, yield z]; + }); +} +function arrayLiteral2() { + return __awaiter(this, void 0, void 0, function* () { + x = [...(yield y), z]; + }); +} +function arrayLiteral3() { + return __awaiter(this, void 0, void 0, function* () { + x = [...y, yield z]; + }); +} +function arrayLiteral4() { + return __awaiter(this, void 0, void 0, function* () { + x = [yield y, ...z]; + }); +} +function arrayLiteral5() { + return __awaiter(this, void 0, void 0, function* () { + x = [y, ...(yield z)]; + }); +} +function arrayLiteral6() { + return __awaiter(this, void 0, void 0, function* () { + x = [y, yield z, a]; + }); +} +function arrayLiteral7() { + return __awaiter(this, void 0, void 0, function* () { + x = [yield y, z, yield a]; + }); +} diff --git a/tests/baselines/reference/es5-asyncFunctionArrayLiterals.symbols b/tests/baselines/reference/es5-asyncFunctionArrayLiterals(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es5-asyncFunctionArrayLiterals.symbols rename to tests/baselines/reference/es5-asyncFunctionArrayLiterals(target=es2015).symbols diff --git a/tests/baselines/reference/es5-asyncFunctionArrayLiterals.types b/tests/baselines/reference/es5-asyncFunctionArrayLiterals(target=es2015).types similarity index 100% rename from tests/baselines/reference/es5-asyncFunctionArrayLiterals.types rename to tests/baselines/reference/es5-asyncFunctionArrayLiterals(target=es2015).types diff --git a/tests/baselines/reference/es5-asyncFunctionArrayLiterals.js b/tests/baselines/reference/es5-asyncFunctionArrayLiterals(target=es5).js similarity index 100% rename from tests/baselines/reference/es5-asyncFunctionArrayLiterals.js rename to tests/baselines/reference/es5-asyncFunctionArrayLiterals(target=es5).js diff --git a/tests/baselines/reference/es5-asyncFunctionArrayLiterals(target=es5).symbols b/tests/baselines/reference/es5-asyncFunctionArrayLiterals(target=es5).symbols new file mode 100644 index 0000000000000..c51553dbcc709 --- /dev/null +++ b/tests/baselines/reference/es5-asyncFunctionArrayLiterals(target=es5).symbols @@ -0,0 +1,82 @@ +//// [tests/cases/compiler/es5-asyncFunctionArrayLiterals.ts] //// + +=== es5-asyncFunctionArrayLiterals.ts === +declare var x, y, z, a; +>x : Symbol(x, Decl(es5-asyncFunctionArrayLiterals.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionArrayLiterals.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionArrayLiterals.ts, 0, 17)) +>a : Symbol(a, Decl(es5-asyncFunctionArrayLiterals.ts, 0, 20)) + +async function arrayLiteral0() { +>arrayLiteral0 : Symbol(arrayLiteral0, Decl(es5-asyncFunctionArrayLiterals.ts, 0, 23)) + + x = [await y, z]; +>x : Symbol(x, Decl(es5-asyncFunctionArrayLiterals.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionArrayLiterals.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionArrayLiterals.ts, 0, 17)) +} + +async function arrayLiteral1() { +>arrayLiteral1 : Symbol(arrayLiteral1, Decl(es5-asyncFunctionArrayLiterals.ts, 4, 1)) + + x = [y, await z]; +>x : Symbol(x, Decl(es5-asyncFunctionArrayLiterals.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionArrayLiterals.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionArrayLiterals.ts, 0, 17)) +} + +async function arrayLiteral2() { +>arrayLiteral2 : Symbol(arrayLiteral2, Decl(es5-asyncFunctionArrayLiterals.ts, 8, 1)) + + x = [...(await y), z]; +>x : Symbol(x, Decl(es5-asyncFunctionArrayLiterals.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionArrayLiterals.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionArrayLiterals.ts, 0, 17)) +} + +async function arrayLiteral3() { +>arrayLiteral3 : Symbol(arrayLiteral3, Decl(es5-asyncFunctionArrayLiterals.ts, 12, 1)) + + x = [...y, await z]; +>x : Symbol(x, Decl(es5-asyncFunctionArrayLiterals.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionArrayLiterals.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionArrayLiterals.ts, 0, 17)) +} + +async function arrayLiteral4() { +>arrayLiteral4 : Symbol(arrayLiteral4, Decl(es5-asyncFunctionArrayLiterals.ts, 16, 1)) + + x = [await y, ...z]; +>x : Symbol(x, Decl(es5-asyncFunctionArrayLiterals.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionArrayLiterals.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionArrayLiterals.ts, 0, 17)) +} + +async function arrayLiteral5() { +>arrayLiteral5 : Symbol(arrayLiteral5, Decl(es5-asyncFunctionArrayLiterals.ts, 20, 1)) + + x = [y, ...(await z)]; +>x : Symbol(x, Decl(es5-asyncFunctionArrayLiterals.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionArrayLiterals.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionArrayLiterals.ts, 0, 17)) +} + +async function arrayLiteral6() { +>arrayLiteral6 : Symbol(arrayLiteral6, Decl(es5-asyncFunctionArrayLiterals.ts, 24, 1)) + + x = [y, await z, a]; +>x : Symbol(x, Decl(es5-asyncFunctionArrayLiterals.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionArrayLiterals.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionArrayLiterals.ts, 0, 17)) +>a : Symbol(a, Decl(es5-asyncFunctionArrayLiterals.ts, 0, 20)) +} + +async function arrayLiteral7() { +>arrayLiteral7 : Symbol(arrayLiteral7, Decl(es5-asyncFunctionArrayLiterals.ts, 28, 1)) + + x = [await y, z, await a]; +>x : Symbol(x, Decl(es5-asyncFunctionArrayLiterals.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionArrayLiterals.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionArrayLiterals.ts, 0, 17)) +>a : Symbol(a, Decl(es5-asyncFunctionArrayLiterals.ts, 0, 20)) +} diff --git a/tests/baselines/reference/es5-asyncFunctionArrayLiterals(target=es5).types b/tests/baselines/reference/es5-asyncFunctionArrayLiterals(target=es5).types new file mode 100644 index 0000000000000..9ebab0a63a5f4 --- /dev/null +++ b/tests/baselines/reference/es5-asyncFunctionArrayLiterals(target=es5).types @@ -0,0 +1,137 @@ +//// [tests/cases/compiler/es5-asyncFunctionArrayLiterals.ts] //// + +=== es5-asyncFunctionArrayLiterals.ts === +declare var x, y, z, a; +>x : any +>y : any +>z : any +>a : any + +async function arrayLiteral0() { +>arrayLiteral0 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + x = [await y, z]; +>x = [await y, z] : any[] +> : ^^^^^ +>x : any +>[await y, z] : any[] +> : ^^^^^ +>await y : any +>y : any +>z : any +} + +async function arrayLiteral1() { +>arrayLiteral1 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + x = [y, await z]; +>x = [y, await z] : any[] +> : ^^^^^ +>x : any +>[y, await z] : any[] +> : ^^^^^ +>y : any +>await z : any +>z : any +} + +async function arrayLiteral2() { +>arrayLiteral2 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + x = [...(await y), z]; +>x = [...(await y), z] : any[] +> : ^^^^^ +>x : any +>[...(await y), z] : any[] +> : ^^^^^ +>...(await y) : any +>(await y) : any +>await y : any +>y : any +>z : any +} + +async function arrayLiteral3() { +>arrayLiteral3 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + x = [...y, await z]; +>x = [...y, await z] : any[] +> : ^^^^^ +>x : any +>[...y, await z] : any[] +> : ^^^^^ +>...y : any +>y : any +>await z : any +>z : any +} + +async function arrayLiteral4() { +>arrayLiteral4 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + x = [await y, ...z]; +>x = [await y, ...z] : any[] +> : ^^^^^ +>x : any +>[await y, ...z] : any[] +> : ^^^^^ +>await y : any +>y : any +>...z : any +>z : any +} + +async function arrayLiteral5() { +>arrayLiteral5 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + x = [y, ...(await z)]; +>x = [y, ...(await z)] : any[] +> : ^^^^^ +>x : any +>[y, ...(await z)] : any[] +> : ^^^^^ +>y : any +>...(await z) : any +>(await z) : any +>await z : any +>z : any +} + +async function arrayLiteral6() { +>arrayLiteral6 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + x = [y, await z, a]; +>x = [y, await z, a] : any[] +> : ^^^^^ +>x : any +>[y, await z, a] : any[] +> : ^^^^^ +>y : any +>await z : any +>z : any +>a : any +} + +async function arrayLiteral7() { +>arrayLiteral7 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + x = [await y, z, await a]; +>x = [await y, z, await a] : any[] +> : ^^^^^ +>x : any +>[await y, z, await a] : any[] +> : ^^^^^ +>await y : any +>y : any +>z : any +>await a : any +>a : any +} diff --git a/tests/baselines/reference/es5-asyncFunctionBinaryExpressions(target=es2015).js b/tests/baselines/reference/es5-asyncFunctionBinaryExpressions(target=es2015).js new file mode 100644 index 0000000000000..a3cf356733269 --- /dev/null +++ b/tests/baselines/reference/es5-asyncFunctionBinaryExpressions(target=es2015).js @@ -0,0 +1,278 @@ +//// [tests/cases/compiler/es5-asyncFunctionBinaryExpressions.ts] //// + +//// [es5-asyncFunctionBinaryExpressions.ts] +declare var x, y, z, a, b, c; + +async function binaryPlus0() { + (await x) + y; +} + +async function binaryPlus1() { + x + await y; +} + +async function binaryLogicalAnd0() { + (await x) && y; +} + +async function binaryLogicalAnd1() { + x && await y; +} + +async function binaryAssignment0() { + x = await y; +} + +async function binaryAssignment1() { + x.a = await y; +} + +async function binaryAssignment2() { + x.a.b = await y; +} + +async function binaryAssignment3() { + x[z] = await y; +} + +async function binaryAssignment4() { + x[z].b = await y; +} + +async function binaryAssignment5() { + x.a[z] = await y; +} + +async function binaryAssignment6() { + (await x).a = y; +} + +async function binaryAssignment7() { + (await x.a).b = y; +} + +async function binaryAssignment8() { + (await x)[z] = y; +} + +async function binaryAssignment9() { + x[await z] = y; +} + +async function binaryAssignment10() { + x[await z].b = y; +} + +async function binaryAssignment11() { + (await x[z]).b = y; +} + +async function binaryAssignment12() { + x.a[await z] = y; +} + +async function binaryAssignment13() { + (await x.a)[z] = y; +} + +async function binaryCompoundAssignment0() { + x += await y; +} + +async function binaryCompoundAssignment1() { + x.a += await y; +} + +async function binaryCompoundAssignment2() { + x[a] += await y; +} + +async function binaryCompoundAssignment3() { + (await x).a += y; +} + +async function binaryCompoundAssignment4() { + (await x)[a] += y; +} + +async function binaryCompoundAssignment5() { + x[await a] += y; +} + +async function binaryCompoundAssignment6() { + (await x).a += await y; +} + +async function binaryCompoundAssignment7() { + (await x)[a] += await y; +} + +async function binaryCompoundAssignment8() { + x[await a] += await y; +} + +async function binaryExponentiation() { + (await x) ** y; + x ** await y; +} + +async function binaryComma0() { + return (await x), y; +} + +async function binaryComma1(): Promise { + return x, await y; +} + +//// [es5-asyncFunctionBinaryExpressions.js] +function binaryPlus0() { + return __awaiter(this, void 0, void 0, function* () { + (yield x) + y; + }); +} +function binaryPlus1() { + return __awaiter(this, void 0, void 0, function* () { + x + (yield y); + }); +} +function binaryLogicalAnd0() { + return __awaiter(this, void 0, void 0, function* () { + (yield x) && y; + }); +} +function binaryLogicalAnd1() { + return __awaiter(this, void 0, void 0, function* () { + x && (yield y); + }); +} +function binaryAssignment0() { + return __awaiter(this, void 0, void 0, function* () { + x = yield y; + }); +} +function binaryAssignment1() { + return __awaiter(this, void 0, void 0, function* () { + x.a = yield y; + }); +} +function binaryAssignment2() { + return __awaiter(this, void 0, void 0, function* () { + x.a.b = yield y; + }); +} +function binaryAssignment3() { + return __awaiter(this, void 0, void 0, function* () { + x[z] = yield y; + }); +} +function binaryAssignment4() { + return __awaiter(this, void 0, void 0, function* () { + x[z].b = yield y; + }); +} +function binaryAssignment5() { + return __awaiter(this, void 0, void 0, function* () { + x.a[z] = yield y; + }); +} +function binaryAssignment6() { + return __awaiter(this, void 0, void 0, function* () { + (yield x).a = y; + }); +} +function binaryAssignment7() { + return __awaiter(this, void 0, void 0, function* () { + (yield x.a).b = y; + }); +} +function binaryAssignment8() { + return __awaiter(this, void 0, void 0, function* () { + (yield x)[z] = y; + }); +} +function binaryAssignment9() { + return __awaiter(this, void 0, void 0, function* () { + x[yield z] = y; + }); +} +function binaryAssignment10() { + return __awaiter(this, void 0, void 0, function* () { + x[yield z].b = y; + }); +} +function binaryAssignment11() { + return __awaiter(this, void 0, void 0, function* () { + (yield x[z]).b = y; + }); +} +function binaryAssignment12() { + return __awaiter(this, void 0, void 0, function* () { + x.a[yield z] = y; + }); +} +function binaryAssignment13() { + return __awaiter(this, void 0, void 0, function* () { + (yield x.a)[z] = y; + }); +} +function binaryCompoundAssignment0() { + return __awaiter(this, void 0, void 0, function* () { + x += yield y; + }); +} +function binaryCompoundAssignment1() { + return __awaiter(this, void 0, void 0, function* () { + x.a += yield y; + }); +} +function binaryCompoundAssignment2() { + return __awaiter(this, void 0, void 0, function* () { + x[a] += yield y; + }); +} +function binaryCompoundAssignment3() { + return __awaiter(this, void 0, void 0, function* () { + (yield x).a += y; + }); +} +function binaryCompoundAssignment4() { + return __awaiter(this, void 0, void 0, function* () { + (yield x)[a] += y; + }); +} +function binaryCompoundAssignment5() { + return __awaiter(this, void 0, void 0, function* () { + x[yield a] += y; + }); +} +function binaryCompoundAssignment6() { + return __awaiter(this, void 0, void 0, function* () { + (yield x).a += yield y; + }); +} +function binaryCompoundAssignment7() { + return __awaiter(this, void 0, void 0, function* () { + (yield x)[a] += yield y; + }); +} +function binaryCompoundAssignment8() { + return __awaiter(this, void 0, void 0, function* () { + x[yield a] += yield y; + }); +} +function binaryExponentiation() { + return __awaiter(this, void 0, void 0, function* () { + Math.pow((yield x), y); + Math.pow(x, yield y); + }); +} +function binaryComma0() { + return __awaiter(this, void 0, void 0, function* () { + return (yield x), y; + }); +} +function binaryComma1() { + return __awaiter(this, void 0, void 0, function* () { + return x, yield y; + }); +} diff --git a/tests/baselines/reference/es5-asyncFunctionBinaryExpressions.symbols b/tests/baselines/reference/es5-asyncFunctionBinaryExpressions(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es5-asyncFunctionBinaryExpressions.symbols rename to tests/baselines/reference/es5-asyncFunctionBinaryExpressions(target=es2015).symbols diff --git a/tests/baselines/reference/es5-asyncFunctionBinaryExpressions.types b/tests/baselines/reference/es5-asyncFunctionBinaryExpressions(target=es2015).types similarity index 100% rename from tests/baselines/reference/es5-asyncFunctionBinaryExpressions.types rename to tests/baselines/reference/es5-asyncFunctionBinaryExpressions(target=es2015).types diff --git a/tests/baselines/reference/es5-asyncFunctionBinaryExpressions.js b/tests/baselines/reference/es5-asyncFunctionBinaryExpressions(target=es5).js similarity index 100% rename from tests/baselines/reference/es5-asyncFunctionBinaryExpressions.js rename to tests/baselines/reference/es5-asyncFunctionBinaryExpressions(target=es5).js diff --git a/tests/baselines/reference/es5-asyncFunctionBinaryExpressions(target=es5).symbols b/tests/baselines/reference/es5-asyncFunctionBinaryExpressions(target=es5).symbols new file mode 100644 index 0000000000000..82a16efa4159e --- /dev/null +++ b/tests/baselines/reference/es5-asyncFunctionBinaryExpressions(target=es5).symbols @@ -0,0 +1,269 @@ +//// [tests/cases/compiler/es5-asyncFunctionBinaryExpressions.ts] //// + +=== es5-asyncFunctionBinaryExpressions.ts === +declare var x, y, z, a, b, c; +>x : Symbol(x, Decl(es5-asyncFunctionBinaryExpressions.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionBinaryExpressions.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionBinaryExpressions.ts, 0, 17)) +>a : Symbol(a, Decl(es5-asyncFunctionBinaryExpressions.ts, 0, 20)) +>b : Symbol(b, Decl(es5-asyncFunctionBinaryExpressions.ts, 0, 23)) +>c : Symbol(c, Decl(es5-asyncFunctionBinaryExpressions.ts, 0, 26)) + +async function binaryPlus0() { +>binaryPlus0 : Symbol(binaryPlus0, Decl(es5-asyncFunctionBinaryExpressions.ts, 0, 29)) + + (await x) + y; +>x : Symbol(x, Decl(es5-asyncFunctionBinaryExpressions.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionBinaryExpressions.ts, 0, 14)) +} + +async function binaryPlus1() { +>binaryPlus1 : Symbol(binaryPlus1, Decl(es5-asyncFunctionBinaryExpressions.ts, 4, 1)) + + x + await y; +>x : Symbol(x, Decl(es5-asyncFunctionBinaryExpressions.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionBinaryExpressions.ts, 0, 14)) +} + +async function binaryLogicalAnd0() { +>binaryLogicalAnd0 : Symbol(binaryLogicalAnd0, Decl(es5-asyncFunctionBinaryExpressions.ts, 8, 1)) + + (await x) && y; +>x : Symbol(x, Decl(es5-asyncFunctionBinaryExpressions.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionBinaryExpressions.ts, 0, 14)) +} + +async function binaryLogicalAnd1() { +>binaryLogicalAnd1 : Symbol(binaryLogicalAnd1, Decl(es5-asyncFunctionBinaryExpressions.ts, 12, 1)) + + x && await y; +>x : Symbol(x, Decl(es5-asyncFunctionBinaryExpressions.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionBinaryExpressions.ts, 0, 14)) +} + +async function binaryAssignment0() { +>binaryAssignment0 : Symbol(binaryAssignment0, Decl(es5-asyncFunctionBinaryExpressions.ts, 16, 1)) + + x = await y; +>x : Symbol(x, Decl(es5-asyncFunctionBinaryExpressions.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionBinaryExpressions.ts, 0, 14)) +} + +async function binaryAssignment1() { +>binaryAssignment1 : Symbol(binaryAssignment1, Decl(es5-asyncFunctionBinaryExpressions.ts, 20, 1)) + + x.a = await y; +>x : Symbol(x, Decl(es5-asyncFunctionBinaryExpressions.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionBinaryExpressions.ts, 0, 14)) +} + +async function binaryAssignment2() { +>binaryAssignment2 : Symbol(binaryAssignment2, Decl(es5-asyncFunctionBinaryExpressions.ts, 24, 1)) + + x.a.b = await y; +>x : Symbol(x, Decl(es5-asyncFunctionBinaryExpressions.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionBinaryExpressions.ts, 0, 14)) +} + +async function binaryAssignment3() { +>binaryAssignment3 : Symbol(binaryAssignment3, Decl(es5-asyncFunctionBinaryExpressions.ts, 28, 1)) + + x[z] = await y; +>x : Symbol(x, Decl(es5-asyncFunctionBinaryExpressions.ts, 0, 11)) +>z : Symbol(z, Decl(es5-asyncFunctionBinaryExpressions.ts, 0, 17)) +>y : Symbol(y, Decl(es5-asyncFunctionBinaryExpressions.ts, 0, 14)) +} + +async function binaryAssignment4() { +>binaryAssignment4 : Symbol(binaryAssignment4, Decl(es5-asyncFunctionBinaryExpressions.ts, 32, 1)) + + x[z].b = await y; +>x : Symbol(x, Decl(es5-asyncFunctionBinaryExpressions.ts, 0, 11)) +>z : Symbol(z, Decl(es5-asyncFunctionBinaryExpressions.ts, 0, 17)) +>y : Symbol(y, Decl(es5-asyncFunctionBinaryExpressions.ts, 0, 14)) +} + +async function binaryAssignment5() { +>binaryAssignment5 : Symbol(binaryAssignment5, Decl(es5-asyncFunctionBinaryExpressions.ts, 36, 1)) + + x.a[z] = await y; +>x : Symbol(x, Decl(es5-asyncFunctionBinaryExpressions.ts, 0, 11)) +>z : Symbol(z, Decl(es5-asyncFunctionBinaryExpressions.ts, 0, 17)) +>y : Symbol(y, Decl(es5-asyncFunctionBinaryExpressions.ts, 0, 14)) +} + +async function binaryAssignment6() { +>binaryAssignment6 : Symbol(binaryAssignment6, Decl(es5-asyncFunctionBinaryExpressions.ts, 40, 1)) + + (await x).a = y; +>x : Symbol(x, Decl(es5-asyncFunctionBinaryExpressions.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionBinaryExpressions.ts, 0, 14)) +} + +async function binaryAssignment7() { +>binaryAssignment7 : Symbol(binaryAssignment7, Decl(es5-asyncFunctionBinaryExpressions.ts, 44, 1)) + + (await x.a).b = y; +>x : Symbol(x, Decl(es5-asyncFunctionBinaryExpressions.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionBinaryExpressions.ts, 0, 14)) +} + +async function binaryAssignment8() { +>binaryAssignment8 : Symbol(binaryAssignment8, Decl(es5-asyncFunctionBinaryExpressions.ts, 48, 1)) + + (await x)[z] = y; +>x : Symbol(x, Decl(es5-asyncFunctionBinaryExpressions.ts, 0, 11)) +>z : Symbol(z, Decl(es5-asyncFunctionBinaryExpressions.ts, 0, 17)) +>y : Symbol(y, Decl(es5-asyncFunctionBinaryExpressions.ts, 0, 14)) +} + +async function binaryAssignment9() { +>binaryAssignment9 : Symbol(binaryAssignment9, Decl(es5-asyncFunctionBinaryExpressions.ts, 52, 1)) + + x[await z] = y; +>x : Symbol(x, Decl(es5-asyncFunctionBinaryExpressions.ts, 0, 11)) +>z : Symbol(z, Decl(es5-asyncFunctionBinaryExpressions.ts, 0, 17)) +>y : Symbol(y, Decl(es5-asyncFunctionBinaryExpressions.ts, 0, 14)) +} + +async function binaryAssignment10() { +>binaryAssignment10 : Symbol(binaryAssignment10, Decl(es5-asyncFunctionBinaryExpressions.ts, 56, 1)) + + x[await z].b = y; +>x : Symbol(x, Decl(es5-asyncFunctionBinaryExpressions.ts, 0, 11)) +>z : Symbol(z, Decl(es5-asyncFunctionBinaryExpressions.ts, 0, 17)) +>y : Symbol(y, Decl(es5-asyncFunctionBinaryExpressions.ts, 0, 14)) +} + +async function binaryAssignment11() { +>binaryAssignment11 : Symbol(binaryAssignment11, Decl(es5-asyncFunctionBinaryExpressions.ts, 60, 1)) + + (await x[z]).b = y; +>x : Symbol(x, Decl(es5-asyncFunctionBinaryExpressions.ts, 0, 11)) +>z : Symbol(z, Decl(es5-asyncFunctionBinaryExpressions.ts, 0, 17)) +>y : Symbol(y, Decl(es5-asyncFunctionBinaryExpressions.ts, 0, 14)) +} + +async function binaryAssignment12() { +>binaryAssignment12 : Symbol(binaryAssignment12, Decl(es5-asyncFunctionBinaryExpressions.ts, 64, 1)) + + x.a[await z] = y; +>x : Symbol(x, Decl(es5-asyncFunctionBinaryExpressions.ts, 0, 11)) +>z : Symbol(z, Decl(es5-asyncFunctionBinaryExpressions.ts, 0, 17)) +>y : Symbol(y, Decl(es5-asyncFunctionBinaryExpressions.ts, 0, 14)) +} + +async function binaryAssignment13() { +>binaryAssignment13 : Symbol(binaryAssignment13, Decl(es5-asyncFunctionBinaryExpressions.ts, 68, 1)) + + (await x.a)[z] = y; +>x : Symbol(x, Decl(es5-asyncFunctionBinaryExpressions.ts, 0, 11)) +>z : Symbol(z, Decl(es5-asyncFunctionBinaryExpressions.ts, 0, 17)) +>y : Symbol(y, Decl(es5-asyncFunctionBinaryExpressions.ts, 0, 14)) +} + +async function binaryCompoundAssignment0() { +>binaryCompoundAssignment0 : Symbol(binaryCompoundAssignment0, Decl(es5-asyncFunctionBinaryExpressions.ts, 72, 1)) + + x += await y; +>x : Symbol(x, Decl(es5-asyncFunctionBinaryExpressions.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionBinaryExpressions.ts, 0, 14)) +} + +async function binaryCompoundAssignment1() { +>binaryCompoundAssignment1 : Symbol(binaryCompoundAssignment1, Decl(es5-asyncFunctionBinaryExpressions.ts, 76, 1)) + + x.a += await y; +>x : Symbol(x, Decl(es5-asyncFunctionBinaryExpressions.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionBinaryExpressions.ts, 0, 14)) +} + +async function binaryCompoundAssignment2() { +>binaryCompoundAssignment2 : Symbol(binaryCompoundAssignment2, Decl(es5-asyncFunctionBinaryExpressions.ts, 80, 1)) + + x[a] += await y; +>x : Symbol(x, Decl(es5-asyncFunctionBinaryExpressions.ts, 0, 11)) +>a : Symbol(a, Decl(es5-asyncFunctionBinaryExpressions.ts, 0, 20)) +>y : Symbol(y, Decl(es5-asyncFunctionBinaryExpressions.ts, 0, 14)) +} + +async function binaryCompoundAssignment3() { +>binaryCompoundAssignment3 : Symbol(binaryCompoundAssignment3, Decl(es5-asyncFunctionBinaryExpressions.ts, 84, 1)) + + (await x).a += y; +>x : Symbol(x, Decl(es5-asyncFunctionBinaryExpressions.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionBinaryExpressions.ts, 0, 14)) +} + +async function binaryCompoundAssignment4() { +>binaryCompoundAssignment4 : Symbol(binaryCompoundAssignment4, Decl(es5-asyncFunctionBinaryExpressions.ts, 88, 1)) + + (await x)[a] += y; +>x : Symbol(x, Decl(es5-asyncFunctionBinaryExpressions.ts, 0, 11)) +>a : Symbol(a, Decl(es5-asyncFunctionBinaryExpressions.ts, 0, 20)) +>y : Symbol(y, Decl(es5-asyncFunctionBinaryExpressions.ts, 0, 14)) +} + +async function binaryCompoundAssignment5() { +>binaryCompoundAssignment5 : Symbol(binaryCompoundAssignment5, Decl(es5-asyncFunctionBinaryExpressions.ts, 92, 1)) + + x[await a] += y; +>x : Symbol(x, Decl(es5-asyncFunctionBinaryExpressions.ts, 0, 11)) +>a : Symbol(a, Decl(es5-asyncFunctionBinaryExpressions.ts, 0, 20)) +>y : Symbol(y, Decl(es5-asyncFunctionBinaryExpressions.ts, 0, 14)) +} + +async function binaryCompoundAssignment6() { +>binaryCompoundAssignment6 : Symbol(binaryCompoundAssignment6, Decl(es5-asyncFunctionBinaryExpressions.ts, 96, 1)) + + (await x).a += await y; +>x : Symbol(x, Decl(es5-asyncFunctionBinaryExpressions.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionBinaryExpressions.ts, 0, 14)) +} + +async function binaryCompoundAssignment7() { +>binaryCompoundAssignment7 : Symbol(binaryCompoundAssignment7, Decl(es5-asyncFunctionBinaryExpressions.ts, 100, 1)) + + (await x)[a] += await y; +>x : Symbol(x, Decl(es5-asyncFunctionBinaryExpressions.ts, 0, 11)) +>a : Symbol(a, Decl(es5-asyncFunctionBinaryExpressions.ts, 0, 20)) +>y : Symbol(y, Decl(es5-asyncFunctionBinaryExpressions.ts, 0, 14)) +} + +async function binaryCompoundAssignment8() { +>binaryCompoundAssignment8 : Symbol(binaryCompoundAssignment8, Decl(es5-asyncFunctionBinaryExpressions.ts, 104, 1)) + + x[await a] += await y; +>x : Symbol(x, Decl(es5-asyncFunctionBinaryExpressions.ts, 0, 11)) +>a : Symbol(a, Decl(es5-asyncFunctionBinaryExpressions.ts, 0, 20)) +>y : Symbol(y, Decl(es5-asyncFunctionBinaryExpressions.ts, 0, 14)) +} + +async function binaryExponentiation() { +>binaryExponentiation : Symbol(binaryExponentiation, Decl(es5-asyncFunctionBinaryExpressions.ts, 108, 1)) + + (await x) ** y; +>x : Symbol(x, Decl(es5-asyncFunctionBinaryExpressions.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionBinaryExpressions.ts, 0, 14)) + + x ** await y; +>x : Symbol(x, Decl(es5-asyncFunctionBinaryExpressions.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionBinaryExpressions.ts, 0, 14)) +} + +async function binaryComma0() { +>binaryComma0 : Symbol(binaryComma0, Decl(es5-asyncFunctionBinaryExpressions.ts, 113, 1)) + + return (await x), y; +>x : Symbol(x, Decl(es5-asyncFunctionBinaryExpressions.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionBinaryExpressions.ts, 0, 14)) +} + +async function binaryComma1(): Promise { +>binaryComma1 : Symbol(binaryComma1, Decl(es5-asyncFunctionBinaryExpressions.ts, 117, 1)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) + + return x, await y; +>x : Symbol(x, Decl(es5-asyncFunctionBinaryExpressions.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionBinaryExpressions.ts, 0, 14)) +} diff --git a/tests/baselines/reference/es5-asyncFunctionBinaryExpressions(target=es5).types b/tests/baselines/reference/es5-asyncFunctionBinaryExpressions(target=es5).types new file mode 100644 index 0000000000000..b21da2df5acf4 --- /dev/null +++ b/tests/baselines/reference/es5-asyncFunctionBinaryExpressions(target=es5).types @@ -0,0 +1,452 @@ +//// [tests/cases/compiler/es5-asyncFunctionBinaryExpressions.ts] //// + +=== es5-asyncFunctionBinaryExpressions.ts === +declare var x, y, z, a, b, c; +>x : any +>y : any +>z : any +>a : any +>b : any +>c : any + +async function binaryPlus0() { +>binaryPlus0 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + (await x) + y; +>(await x) + y : any +>(await x) : any +>await x : any +>x : any +>y : any +} + +async function binaryPlus1() { +>binaryPlus1 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + x + await y; +>x + await y : any +>x : any +>await y : any +>y : any +} + +async function binaryLogicalAnd0() { +>binaryLogicalAnd0 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + (await x) && y; +>(await x) && y : any +>(await x) : any +>await x : any +>x : any +>y : any +} + +async function binaryLogicalAnd1() { +>binaryLogicalAnd1 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + x && await y; +>x && await y : any +>x : any +>await y : any +>y : any +} + +async function binaryAssignment0() { +>binaryAssignment0 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + x = await y; +>x = await y : any +>x : any +>await y : any +>y : any +} + +async function binaryAssignment1() { +>binaryAssignment1 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + x.a = await y; +>x.a = await y : any +>x.a : any +>x : any +> : ^^^ +>a : any +> : ^^^ +>await y : any +>y : any +} + +async function binaryAssignment2() { +>binaryAssignment2 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + x.a.b = await y; +>x.a.b = await y : any +>x.a.b : any +>x.a : any +> : ^^^ +>x : any +> : ^^^ +>a : any +> : ^^^ +>b : any +> : ^^^ +>await y : any +>y : any +} + +async function binaryAssignment3() { +>binaryAssignment3 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + x[z] = await y; +>x[z] = await y : any +>x[z] : any +>x : any +>z : any +>await y : any +>y : any +} + +async function binaryAssignment4() { +>binaryAssignment4 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + x[z].b = await y; +>x[z].b = await y : any +>x[z].b : any +>x[z] : any +> : ^^^ +>x : any +>z : any +>b : any +> : ^^^ +>await y : any +>y : any +} + +async function binaryAssignment5() { +>binaryAssignment5 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + x.a[z] = await y; +>x.a[z] = await y : any +>x.a[z] : any +>x.a : any +>x : any +> : ^^^ +>a : any +> : ^^^ +>z : any +>await y : any +>y : any +} + +async function binaryAssignment6() { +>binaryAssignment6 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + (await x).a = y; +>(await x).a = y : any +>(await x).a : any +>(await x) : any +> : ^^^ +>await x : any +>x : any +>a : any +> : ^^^ +>y : any +} + +async function binaryAssignment7() { +>binaryAssignment7 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + (await x.a).b = y; +>(await x.a).b = y : any +>(await x.a).b : any +>(await x.a) : any +> : ^^^ +>await x.a : any +>x.a : any +>x : any +> : ^^^ +>a : any +> : ^^^ +>b : any +> : ^^^ +>y : any +} + +async function binaryAssignment8() { +>binaryAssignment8 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + (await x)[z] = y; +>(await x)[z] = y : any +>(await x)[z] : any +>(await x) : any +>await x : any +>x : any +>z : any +>y : any +} + +async function binaryAssignment9() { +>binaryAssignment9 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + x[await z] = y; +>x[await z] = y : any +>x[await z] : any +>x : any +>await z : any +>z : any +>y : any +} + +async function binaryAssignment10() { +>binaryAssignment10 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + x[await z].b = y; +>x[await z].b = y : any +>x[await z].b : any +>x[await z] : any +> : ^^^ +>x : any +>await z : any +>z : any +>b : any +> : ^^^ +>y : any +} + +async function binaryAssignment11() { +>binaryAssignment11 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + (await x[z]).b = y; +>(await x[z]).b = y : any +>(await x[z]).b : any +>(await x[z]) : any +> : ^^^ +>await x[z] : any +>x[z] : any +>x : any +>z : any +>b : any +> : ^^^ +>y : any +} + +async function binaryAssignment12() { +>binaryAssignment12 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + x.a[await z] = y; +>x.a[await z] = y : any +>x.a[await z] : any +>x.a : any +>x : any +> : ^^^ +>a : any +> : ^^^ +>await z : any +>z : any +>y : any +} + +async function binaryAssignment13() { +>binaryAssignment13 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + (await x.a)[z] = y; +>(await x.a)[z] = y : any +>(await x.a)[z] : any +>(await x.a) : any +>await x.a : any +>x.a : any +>x : any +> : ^^^ +>a : any +> : ^^^ +>z : any +>y : any +} + +async function binaryCompoundAssignment0() { +>binaryCompoundAssignment0 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + x += await y; +>x += await y : any +>x : any +>await y : any +>y : any +} + +async function binaryCompoundAssignment1() { +>binaryCompoundAssignment1 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + x.a += await y; +>x.a += await y : any +>x.a : any +>x : any +> : ^^^ +>a : any +> : ^^^ +>await y : any +>y : any +} + +async function binaryCompoundAssignment2() { +>binaryCompoundAssignment2 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + x[a] += await y; +>x[a] += await y : any +>x[a] : any +>x : any +>a : any +>await y : any +>y : any +} + +async function binaryCompoundAssignment3() { +>binaryCompoundAssignment3 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + (await x).a += y; +>(await x).a += y : any +>(await x).a : any +>(await x) : any +> : ^^^ +>await x : any +>x : any +>a : any +> : ^^^ +>y : any +} + +async function binaryCompoundAssignment4() { +>binaryCompoundAssignment4 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + (await x)[a] += y; +>(await x)[a] += y : any +>(await x)[a] : any +>(await x) : any +>await x : any +>x : any +>a : any +>y : any +} + +async function binaryCompoundAssignment5() { +>binaryCompoundAssignment5 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + x[await a] += y; +>x[await a] += y : any +>x[await a] : any +>x : any +>await a : any +>a : any +>y : any +} + +async function binaryCompoundAssignment6() { +>binaryCompoundAssignment6 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + (await x).a += await y; +>(await x).a += await y : any +>(await x).a : any +>(await x) : any +> : ^^^ +>await x : any +>x : any +>a : any +> : ^^^ +>await y : any +>y : any +} + +async function binaryCompoundAssignment7() { +>binaryCompoundAssignment7 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + (await x)[a] += await y; +>(await x)[a] += await y : any +>(await x)[a] : any +>(await x) : any +>await x : any +>x : any +>a : any +>await y : any +>y : any +} + +async function binaryCompoundAssignment8() { +>binaryCompoundAssignment8 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + x[await a] += await y; +>x[await a] += await y : any +>x[await a] : any +>x : any +>await a : any +>a : any +>await y : any +>y : any +} + +async function binaryExponentiation() { +>binaryExponentiation : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + (await x) ** y; +>(await x) ** y : number +> : ^^^^^^ +>(await x) : any +>await x : any +>x : any +>y : any + + x ** await y; +>x ** await y : number +> : ^^^^^^ +>x : any +>await y : any +>y : any +} + +async function binaryComma0() { +>binaryComma0 : () => Promise +> : ^^^^^^^^^^^^^^^^^^ + + return (await x), y; +>(await x), y : any +>(await x) : any +>await x : any +>x : any +>y : any +} + +async function binaryComma1(): Promise { +>binaryComma1 : () => Promise +> : ^^^^^^ + + return x, await y; +>x, await y : any +>x : any +>await y : any +>y : any +} diff --git a/tests/baselines/reference/es5-asyncFunctionCallExpressions(target=es2015).js b/tests/baselines/reference/es5-asyncFunctionCallExpressions(target=es2015).js new file mode 100644 index 0000000000000..40d232e130cf6 --- /dev/null +++ b/tests/baselines/reference/es5-asyncFunctionCallExpressions(target=es2015).js @@ -0,0 +1,196 @@ +//// [tests/cases/compiler/es5-asyncFunctionCallExpressions.ts] //// + +//// [es5-asyncFunctionCallExpressions.ts] +declare var x, y, z, a, b, c; + +async function callExpression0() { + await x(y, z); +} + +async function callExpression1() { + (await x)(y, z); +} + +async function callExpression2() { + x(await y, z); +} + +async function callExpression3() { + x(y, await z); +} + +async function callExpression4() { + await x(...y, z); +} + +async function callExpression5() { + (await x)(...y, z); +} + +async function callExpression6() { + x(...(await y), z); +} + +async function callExpression7() { + x(...y, await z); +} + +async function callExpression8() { + x(await y, ...z); +} + +async function callExpression9() { + x(y, ...(await z)); +} + +async function callExpression10() { + await x.a(y, z); +} + +async function callExpression11() { + (await x.a)(y, z); +} + +async function callExpression12() { + (await x).a(y, z); +} + +async function callExpression13() { + x.a(await y, z); +} + +async function callExpression14() { + x.a(y, await z); +} + +async function callExpression15() { + await x[a](y, z); +} + +async function callExpression16() { + (await x[a])(y, z); +} + +async function callExpression17() { + (await x)[a](y, z); +} + +async function callExpression18() { + x[await a](y, z); +} + +async function callExpression19() { + x[a](await y, z); +} + +async function callExpression20() { + x[a](y, await z); +} + + +//// [es5-asyncFunctionCallExpressions.js] +function callExpression0() { + return __awaiter(this, void 0, void 0, function* () { + yield x(y, z); + }); +} +function callExpression1() { + return __awaiter(this, void 0, void 0, function* () { + (yield x)(y, z); + }); +} +function callExpression2() { + return __awaiter(this, void 0, void 0, function* () { + x(yield y, z); + }); +} +function callExpression3() { + return __awaiter(this, void 0, void 0, function* () { + x(y, yield z); + }); +} +function callExpression4() { + return __awaiter(this, void 0, void 0, function* () { + yield x(...y, z); + }); +} +function callExpression5() { + return __awaiter(this, void 0, void 0, function* () { + (yield x)(...y, z); + }); +} +function callExpression6() { + return __awaiter(this, void 0, void 0, function* () { + x(...(yield y), z); + }); +} +function callExpression7() { + return __awaiter(this, void 0, void 0, function* () { + x(...y, yield z); + }); +} +function callExpression8() { + return __awaiter(this, void 0, void 0, function* () { + x(yield y, ...z); + }); +} +function callExpression9() { + return __awaiter(this, void 0, void 0, function* () { + x(y, ...(yield z)); + }); +} +function callExpression10() { + return __awaiter(this, void 0, void 0, function* () { + yield x.a(y, z); + }); +} +function callExpression11() { + return __awaiter(this, void 0, void 0, function* () { + (yield x.a)(y, z); + }); +} +function callExpression12() { + return __awaiter(this, void 0, void 0, function* () { + (yield x).a(y, z); + }); +} +function callExpression13() { + return __awaiter(this, void 0, void 0, function* () { + x.a(yield y, z); + }); +} +function callExpression14() { + return __awaiter(this, void 0, void 0, function* () { + x.a(y, yield z); + }); +} +function callExpression15() { + return __awaiter(this, void 0, void 0, function* () { + yield x[a](y, z); + }); +} +function callExpression16() { + return __awaiter(this, void 0, void 0, function* () { + (yield x[a])(y, z); + }); +} +function callExpression17() { + return __awaiter(this, void 0, void 0, function* () { + (yield x)[a](y, z); + }); +} +function callExpression18() { + return __awaiter(this, void 0, void 0, function* () { + x[yield a](y, z); + }); +} +function callExpression19() { + return __awaiter(this, void 0, void 0, function* () { + x[a](yield y, z); + }); +} +function callExpression20() { + return __awaiter(this, void 0, void 0, function* () { + x[a](y, yield z); + }); +} diff --git a/tests/baselines/reference/es5-asyncFunctionCallExpressions.symbols b/tests/baselines/reference/es5-asyncFunctionCallExpressions(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es5-asyncFunctionCallExpressions.symbols rename to tests/baselines/reference/es5-asyncFunctionCallExpressions(target=es2015).symbols diff --git a/tests/baselines/reference/es5-asyncFunctionCallExpressions.types b/tests/baselines/reference/es5-asyncFunctionCallExpressions(target=es2015).types similarity index 100% rename from tests/baselines/reference/es5-asyncFunctionCallExpressions.types rename to tests/baselines/reference/es5-asyncFunctionCallExpressions(target=es2015).types diff --git a/tests/baselines/reference/es5-asyncFunctionCallExpressions.js b/tests/baselines/reference/es5-asyncFunctionCallExpressions(target=es5).js similarity index 100% rename from tests/baselines/reference/es5-asyncFunctionCallExpressions.js rename to tests/baselines/reference/es5-asyncFunctionCallExpressions(target=es5).js diff --git a/tests/baselines/reference/es5-asyncFunctionCallExpressions(target=es5).symbols b/tests/baselines/reference/es5-asyncFunctionCallExpressions(target=es5).symbols new file mode 100644 index 0000000000000..e643151e355a8 --- /dev/null +++ b/tests/baselines/reference/es5-asyncFunctionCallExpressions(target=es5).symbols @@ -0,0 +1,206 @@ +//// [tests/cases/compiler/es5-asyncFunctionCallExpressions.ts] //// + +=== es5-asyncFunctionCallExpressions.ts === +declare var x, y, z, a, b, c; +>x : Symbol(x, Decl(es5-asyncFunctionCallExpressions.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionCallExpressions.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionCallExpressions.ts, 0, 17)) +>a : Symbol(a, Decl(es5-asyncFunctionCallExpressions.ts, 0, 20)) +>b : Symbol(b, Decl(es5-asyncFunctionCallExpressions.ts, 0, 23)) +>c : Symbol(c, Decl(es5-asyncFunctionCallExpressions.ts, 0, 26)) + +async function callExpression0() { +>callExpression0 : Symbol(callExpression0, Decl(es5-asyncFunctionCallExpressions.ts, 0, 29)) + + await x(y, z); +>x : Symbol(x, Decl(es5-asyncFunctionCallExpressions.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionCallExpressions.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionCallExpressions.ts, 0, 17)) +} + +async function callExpression1() { +>callExpression1 : Symbol(callExpression1, Decl(es5-asyncFunctionCallExpressions.ts, 4, 1)) + + (await x)(y, z); +>x : Symbol(x, Decl(es5-asyncFunctionCallExpressions.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionCallExpressions.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionCallExpressions.ts, 0, 17)) +} + +async function callExpression2() { +>callExpression2 : Symbol(callExpression2, Decl(es5-asyncFunctionCallExpressions.ts, 8, 1)) + + x(await y, z); +>x : Symbol(x, Decl(es5-asyncFunctionCallExpressions.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionCallExpressions.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionCallExpressions.ts, 0, 17)) +} + +async function callExpression3() { +>callExpression3 : Symbol(callExpression3, Decl(es5-asyncFunctionCallExpressions.ts, 12, 1)) + + x(y, await z); +>x : Symbol(x, Decl(es5-asyncFunctionCallExpressions.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionCallExpressions.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionCallExpressions.ts, 0, 17)) +} + +async function callExpression4() { +>callExpression4 : Symbol(callExpression4, Decl(es5-asyncFunctionCallExpressions.ts, 16, 1)) + + await x(...y, z); +>x : Symbol(x, Decl(es5-asyncFunctionCallExpressions.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionCallExpressions.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionCallExpressions.ts, 0, 17)) +} + +async function callExpression5() { +>callExpression5 : Symbol(callExpression5, Decl(es5-asyncFunctionCallExpressions.ts, 20, 1)) + + (await x)(...y, z); +>x : Symbol(x, Decl(es5-asyncFunctionCallExpressions.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionCallExpressions.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionCallExpressions.ts, 0, 17)) +} + +async function callExpression6() { +>callExpression6 : Symbol(callExpression6, Decl(es5-asyncFunctionCallExpressions.ts, 24, 1)) + + x(...(await y), z); +>x : Symbol(x, Decl(es5-asyncFunctionCallExpressions.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionCallExpressions.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionCallExpressions.ts, 0, 17)) +} + +async function callExpression7() { +>callExpression7 : Symbol(callExpression7, Decl(es5-asyncFunctionCallExpressions.ts, 28, 1)) + + x(...y, await z); +>x : Symbol(x, Decl(es5-asyncFunctionCallExpressions.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionCallExpressions.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionCallExpressions.ts, 0, 17)) +} + +async function callExpression8() { +>callExpression8 : Symbol(callExpression8, Decl(es5-asyncFunctionCallExpressions.ts, 32, 1)) + + x(await y, ...z); +>x : Symbol(x, Decl(es5-asyncFunctionCallExpressions.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionCallExpressions.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionCallExpressions.ts, 0, 17)) +} + +async function callExpression9() { +>callExpression9 : Symbol(callExpression9, Decl(es5-asyncFunctionCallExpressions.ts, 36, 1)) + + x(y, ...(await z)); +>x : Symbol(x, Decl(es5-asyncFunctionCallExpressions.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionCallExpressions.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionCallExpressions.ts, 0, 17)) +} + +async function callExpression10() { +>callExpression10 : Symbol(callExpression10, Decl(es5-asyncFunctionCallExpressions.ts, 40, 1)) + + await x.a(y, z); +>x : Symbol(x, Decl(es5-asyncFunctionCallExpressions.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionCallExpressions.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionCallExpressions.ts, 0, 17)) +} + +async function callExpression11() { +>callExpression11 : Symbol(callExpression11, Decl(es5-asyncFunctionCallExpressions.ts, 44, 1)) + + (await x.a)(y, z); +>x : Symbol(x, Decl(es5-asyncFunctionCallExpressions.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionCallExpressions.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionCallExpressions.ts, 0, 17)) +} + +async function callExpression12() { +>callExpression12 : Symbol(callExpression12, Decl(es5-asyncFunctionCallExpressions.ts, 48, 1)) + + (await x).a(y, z); +>x : Symbol(x, Decl(es5-asyncFunctionCallExpressions.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionCallExpressions.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionCallExpressions.ts, 0, 17)) +} + +async function callExpression13() { +>callExpression13 : Symbol(callExpression13, Decl(es5-asyncFunctionCallExpressions.ts, 52, 1)) + + x.a(await y, z); +>x : Symbol(x, Decl(es5-asyncFunctionCallExpressions.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionCallExpressions.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionCallExpressions.ts, 0, 17)) +} + +async function callExpression14() { +>callExpression14 : Symbol(callExpression14, Decl(es5-asyncFunctionCallExpressions.ts, 56, 1)) + + x.a(y, await z); +>x : Symbol(x, Decl(es5-asyncFunctionCallExpressions.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionCallExpressions.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionCallExpressions.ts, 0, 17)) +} + +async function callExpression15() { +>callExpression15 : Symbol(callExpression15, Decl(es5-asyncFunctionCallExpressions.ts, 60, 1)) + + await x[a](y, z); +>x : Symbol(x, Decl(es5-asyncFunctionCallExpressions.ts, 0, 11)) +>a : Symbol(a, Decl(es5-asyncFunctionCallExpressions.ts, 0, 20)) +>y : Symbol(y, Decl(es5-asyncFunctionCallExpressions.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionCallExpressions.ts, 0, 17)) +} + +async function callExpression16() { +>callExpression16 : Symbol(callExpression16, Decl(es5-asyncFunctionCallExpressions.ts, 64, 1)) + + (await x[a])(y, z); +>x : Symbol(x, Decl(es5-asyncFunctionCallExpressions.ts, 0, 11)) +>a : Symbol(a, Decl(es5-asyncFunctionCallExpressions.ts, 0, 20)) +>y : Symbol(y, Decl(es5-asyncFunctionCallExpressions.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionCallExpressions.ts, 0, 17)) +} + +async function callExpression17() { +>callExpression17 : Symbol(callExpression17, Decl(es5-asyncFunctionCallExpressions.ts, 68, 1)) + + (await x)[a](y, z); +>x : Symbol(x, Decl(es5-asyncFunctionCallExpressions.ts, 0, 11)) +>a : Symbol(a, Decl(es5-asyncFunctionCallExpressions.ts, 0, 20)) +>y : Symbol(y, Decl(es5-asyncFunctionCallExpressions.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionCallExpressions.ts, 0, 17)) +} + +async function callExpression18() { +>callExpression18 : Symbol(callExpression18, Decl(es5-asyncFunctionCallExpressions.ts, 72, 1)) + + x[await a](y, z); +>x : Symbol(x, Decl(es5-asyncFunctionCallExpressions.ts, 0, 11)) +>a : Symbol(a, Decl(es5-asyncFunctionCallExpressions.ts, 0, 20)) +>y : Symbol(y, Decl(es5-asyncFunctionCallExpressions.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionCallExpressions.ts, 0, 17)) +} + +async function callExpression19() { +>callExpression19 : Symbol(callExpression19, Decl(es5-asyncFunctionCallExpressions.ts, 76, 1)) + + x[a](await y, z); +>x : Symbol(x, Decl(es5-asyncFunctionCallExpressions.ts, 0, 11)) +>a : Symbol(a, Decl(es5-asyncFunctionCallExpressions.ts, 0, 20)) +>y : Symbol(y, Decl(es5-asyncFunctionCallExpressions.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionCallExpressions.ts, 0, 17)) +} + +async function callExpression20() { +>callExpression20 : Symbol(callExpression20, Decl(es5-asyncFunctionCallExpressions.ts, 80, 1)) + + x[a](y, await z); +>x : Symbol(x, Decl(es5-asyncFunctionCallExpressions.ts, 0, 11)) +>a : Symbol(a, Decl(es5-asyncFunctionCallExpressions.ts, 0, 20)) +>y : Symbol(y, Decl(es5-asyncFunctionCallExpressions.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionCallExpressions.ts, 0, 17)) +} + diff --git a/tests/baselines/reference/es5-asyncFunctionCallExpressions(target=es5).types b/tests/baselines/reference/es5-asyncFunctionCallExpressions(target=es5).types new file mode 100644 index 0000000000000..0d49240591a42 --- /dev/null +++ b/tests/baselines/reference/es5-asyncFunctionCallExpressions(target=es5).types @@ -0,0 +1,309 @@ +//// [tests/cases/compiler/es5-asyncFunctionCallExpressions.ts] //// + +=== es5-asyncFunctionCallExpressions.ts === +declare var x, y, z, a, b, c; +>x : any +>y : any +>z : any +>a : any +>b : any +>c : any + +async function callExpression0() { +>callExpression0 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + await x(y, z); +>await x(y, z) : any +>x(y, z) : any +>x : any +>y : any +>z : any +} + +async function callExpression1() { +>callExpression1 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + (await x)(y, z); +>(await x)(y, z) : any +>(await x) : any +>await x : any +>x : any +>y : any +>z : any +} + +async function callExpression2() { +>callExpression2 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + x(await y, z); +>x(await y, z) : any +>x : any +>await y : any +>y : any +>z : any +} + +async function callExpression3() { +>callExpression3 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + x(y, await z); +>x(y, await z) : any +>x : any +>y : any +>await z : any +>z : any +} + +async function callExpression4() { +>callExpression4 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + await x(...y, z); +>await x(...y, z) : any +>x(...y, z) : any +>x : any +>...y : any +>y : any +>z : any +} + +async function callExpression5() { +>callExpression5 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + (await x)(...y, z); +>(await x)(...y, z) : any +>(await x) : any +>await x : any +>x : any +>...y : any +>y : any +>z : any +} + +async function callExpression6() { +>callExpression6 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + x(...(await y), z); +>x(...(await y), z) : any +>x : any +>...(await y) : any +>(await y) : any +>await y : any +>y : any +>z : any +} + +async function callExpression7() { +>callExpression7 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + x(...y, await z); +>x(...y, await z) : any +>x : any +>...y : any +>y : any +>await z : any +>z : any +} + +async function callExpression8() { +>callExpression8 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + x(await y, ...z); +>x(await y, ...z) : any +>x : any +>await y : any +>y : any +>...z : any +>z : any +} + +async function callExpression9() { +>callExpression9 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + x(y, ...(await z)); +>x(y, ...(await z)) : any +>x : any +>y : any +>...(await z) : any +>(await z) : any +>await z : any +>z : any +} + +async function callExpression10() { +>callExpression10 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + await x.a(y, z); +>await x.a(y, z) : any +>x.a(y, z) : any +>x.a : any +>x : any +> : ^^^ +>a : any +> : ^^^ +>y : any +>z : any +} + +async function callExpression11() { +>callExpression11 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + (await x.a)(y, z); +>(await x.a)(y, z) : any +>(await x.a) : any +>await x.a : any +>x.a : any +>x : any +> : ^^^ +>a : any +> : ^^^ +>y : any +>z : any +} + +async function callExpression12() { +>callExpression12 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + (await x).a(y, z); +>(await x).a(y, z) : any +>(await x).a : any +>(await x) : any +> : ^^^ +>await x : any +>x : any +>a : any +> : ^^^ +>y : any +>z : any +} + +async function callExpression13() { +>callExpression13 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + x.a(await y, z); +>x.a(await y, z) : any +>x.a : any +>x : any +> : ^^^ +>a : any +> : ^^^ +>await y : any +>y : any +>z : any +} + +async function callExpression14() { +>callExpression14 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + x.a(y, await z); +>x.a(y, await z) : any +>x.a : any +>x : any +> : ^^^ +>a : any +> : ^^^ +>y : any +>await z : any +>z : any +} + +async function callExpression15() { +>callExpression15 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + await x[a](y, z); +>await x[a](y, z) : any +>x[a](y, z) : any +>x[a] : any +>x : any +>a : any +>y : any +>z : any +} + +async function callExpression16() { +>callExpression16 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + (await x[a])(y, z); +>(await x[a])(y, z) : any +>(await x[a]) : any +>await x[a] : any +>x[a] : any +>x : any +>a : any +>y : any +>z : any +} + +async function callExpression17() { +>callExpression17 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + (await x)[a](y, z); +>(await x)[a](y, z) : any +>(await x)[a] : any +>(await x) : any +>await x : any +>x : any +>a : any +>y : any +>z : any +} + +async function callExpression18() { +>callExpression18 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + x[await a](y, z); +>x[await a](y, z) : any +>x[await a] : any +>x : any +>await a : any +>a : any +>y : any +>z : any +} + +async function callExpression19() { +>callExpression19 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + x[a](await y, z); +>x[a](await y, z) : any +>x[a] : any +>x : any +>a : any +>await y : any +>y : any +>z : any +} + +async function callExpression20() { +>callExpression20 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + x[a](y, await z); +>x[a](y, await z) : any +>x[a] : any +>x : any +>a : any +>y : any +>await z : any +>z : any +} + diff --git a/tests/baselines/reference/es5-asyncFunctionConditionals(target=es2015).js b/tests/baselines/reference/es5-asyncFunctionConditionals(target=es2015).js new file mode 100644 index 0000000000000..4a5ea0cda4bb6 --- /dev/null +++ b/tests/baselines/reference/es5-asyncFunctionConditionals(target=es2015).js @@ -0,0 +1,33 @@ +//// [tests/cases/compiler/es5-asyncFunctionConditionals.ts] //// + +//// [es5-asyncFunctionConditionals.ts] +declare var x, y, z, a, b, c; + +async function conditional0() { + a = (await x) ? y : z; +} + +async function conditional1() { + a = x ? await y : z; +} + +async function conditional2() { + a = x ? y : await z; +} + +//// [es5-asyncFunctionConditionals.js] +function conditional0() { + return __awaiter(this, void 0, void 0, function* () { + a = (yield x) ? y : z; + }); +} +function conditional1() { + return __awaiter(this, void 0, void 0, function* () { + a = x ? yield y : z; + }); +} +function conditional2() { + return __awaiter(this, void 0, void 0, function* () { + a = x ? y : yield z; + }); +} diff --git a/tests/baselines/reference/es5-asyncFunctionConditionals.symbols b/tests/baselines/reference/es5-asyncFunctionConditionals(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es5-asyncFunctionConditionals.symbols rename to tests/baselines/reference/es5-asyncFunctionConditionals(target=es2015).symbols diff --git a/tests/baselines/reference/es5-asyncFunctionConditionals.types b/tests/baselines/reference/es5-asyncFunctionConditionals(target=es2015).types similarity index 100% rename from tests/baselines/reference/es5-asyncFunctionConditionals.types rename to tests/baselines/reference/es5-asyncFunctionConditionals(target=es2015).types diff --git a/tests/baselines/reference/es5-asyncFunctionConditionals.js b/tests/baselines/reference/es5-asyncFunctionConditionals(target=es5).js similarity index 100% rename from tests/baselines/reference/es5-asyncFunctionConditionals.js rename to tests/baselines/reference/es5-asyncFunctionConditionals(target=es5).js diff --git a/tests/baselines/reference/es5-asyncFunctionConditionals(target=es5).symbols b/tests/baselines/reference/es5-asyncFunctionConditionals(target=es5).symbols new file mode 100644 index 0000000000000..19ed5035e6df2 --- /dev/null +++ b/tests/baselines/reference/es5-asyncFunctionConditionals(target=es5).symbols @@ -0,0 +1,40 @@ +//// [tests/cases/compiler/es5-asyncFunctionConditionals.ts] //// + +=== es5-asyncFunctionConditionals.ts === +declare var x, y, z, a, b, c; +>x : Symbol(x, Decl(es5-asyncFunctionConditionals.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionConditionals.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionConditionals.ts, 0, 17)) +>a : Symbol(a, Decl(es5-asyncFunctionConditionals.ts, 0, 20)) +>b : Symbol(b, Decl(es5-asyncFunctionConditionals.ts, 0, 23)) +>c : Symbol(c, Decl(es5-asyncFunctionConditionals.ts, 0, 26)) + +async function conditional0() { +>conditional0 : Symbol(conditional0, Decl(es5-asyncFunctionConditionals.ts, 0, 29)) + + a = (await x) ? y : z; +>a : Symbol(a, Decl(es5-asyncFunctionConditionals.ts, 0, 20)) +>x : Symbol(x, Decl(es5-asyncFunctionConditionals.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionConditionals.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionConditionals.ts, 0, 17)) +} + +async function conditional1() { +>conditional1 : Symbol(conditional1, Decl(es5-asyncFunctionConditionals.ts, 4, 1)) + + a = x ? await y : z; +>a : Symbol(a, Decl(es5-asyncFunctionConditionals.ts, 0, 20)) +>x : Symbol(x, Decl(es5-asyncFunctionConditionals.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionConditionals.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionConditionals.ts, 0, 17)) +} + +async function conditional2() { +>conditional2 : Symbol(conditional2, Decl(es5-asyncFunctionConditionals.ts, 8, 1)) + + a = x ? y : await z; +>a : Symbol(a, Decl(es5-asyncFunctionConditionals.ts, 0, 20)) +>x : Symbol(x, Decl(es5-asyncFunctionConditionals.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionConditionals.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionConditionals.ts, 0, 17)) +} diff --git a/tests/baselines/reference/es5-asyncFunctionConditionals(target=es5).types b/tests/baselines/reference/es5-asyncFunctionConditionals(target=es5).types new file mode 100644 index 0000000000000..1c3f14a13f24c --- /dev/null +++ b/tests/baselines/reference/es5-asyncFunctionConditionals(target=es5).types @@ -0,0 +1,53 @@ +//// [tests/cases/compiler/es5-asyncFunctionConditionals.ts] //// + +=== es5-asyncFunctionConditionals.ts === +declare var x, y, z, a, b, c; +>x : any +>y : any +>z : any +>a : any +>b : any +>c : any + +async function conditional0() { +>conditional0 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + a = (await x) ? y : z; +>a = (await x) ? y : z : any +>a : any +>(await x) ? y : z : any +>(await x) : any +>await x : any +>x : any +>y : any +>z : any +} + +async function conditional1() { +>conditional1 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + a = x ? await y : z; +>a = x ? await y : z : any +>a : any +>x ? await y : z : any +>x : any +>await y : any +>y : any +>z : any +} + +async function conditional2() { +>conditional2 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + a = x ? y : await z; +>a = x ? y : await z : any +>a : any +>x ? y : await z : any +>x : any +>y : any +>await z : any +>z : any +} diff --git a/tests/baselines/reference/es5-asyncFunctionDoStatements(target=es2015).js b/tests/baselines/reference/es5-asyncFunctionDoStatements(target=es2015).js new file mode 100644 index 0000000000000..9c19b7c9c8816 --- /dev/null +++ b/tests/baselines/reference/es5-asyncFunctionDoStatements(target=es2015).js @@ -0,0 +1,227 @@ +//// [tests/cases/compiler/es5-asyncFunctionDoStatements.ts] //// + +//// [es5-asyncFunctionDoStatements.ts] +declare var x, y, z, a, b, c; + +async function doStatement0() { + do { x; } while (y); +} + +async function doStatement1() { + do { await x; } while (y); +} + +async function doStatement2() { + do { x; } while (await y); +} + +async function doStatement3() { + do { continue; } while (y); +} + +async function doStatement4() { + do { await x; continue; } while (y); +} + +async function doStatement5() { + do { if (1) continue; await x; } while (y); +} + +async function doStatement6() { + do { continue; } while (await y); +} + +async function doStatement7() { + A: do { continue A; } while (y); +} + +async function doStatement8() { + B: do { await x; continue B; } while (y); +} + +async function doStatement9() { + C: do { if (1) continue C; await x; } while (y); +} + +async function doStatement10() { + D: do { continue D; } while (await y); +} + +async function doStatement11() { + do { break; } while (y); +} + +async function doStatement12() { + do { await x; break; } while (y); +} + +async function doStatement13() { + do { if (1) break; await x; } while (y); +} + +async function doStatement14() { + do { break; } while (await y); +} + +async function doStatement15() { + E: do { break E; } while (y); +} + +async function doStatement16() { + F: do { await x; break F; } while (y); +} + +async function doStatement17() { + G: do { if (1) break G; await x; } while (y); +} + +async function doStatement18() { + H: do { break H; } while (await y); +} + +//// [es5-asyncFunctionDoStatements.js] +function doStatement0() { + return __awaiter(this, void 0, void 0, function* () { + do { + x; + } while (y); + }); +} +function doStatement1() { + return __awaiter(this, void 0, void 0, function* () { + do { + yield x; + } while (y); + }); +} +function doStatement2() { + return __awaiter(this, void 0, void 0, function* () { + do { + x; + } while (yield y); + }); +} +function doStatement3() { + return __awaiter(this, void 0, void 0, function* () { + do { + continue; + } while (y); + }); +} +function doStatement4() { + return __awaiter(this, void 0, void 0, function* () { + do { + yield x; + continue; + } while (y); + }); +} +function doStatement5() { + return __awaiter(this, void 0, void 0, function* () { + do { + if (1) + continue; + yield x; + } while (y); + }); +} +function doStatement6() { + return __awaiter(this, void 0, void 0, function* () { + do { + continue; + } while (yield y); + }); +} +function doStatement7() { + return __awaiter(this, void 0, void 0, function* () { + A: do { + continue A; + } while (y); + }); +} +function doStatement8() { + return __awaiter(this, void 0, void 0, function* () { + B: do { + yield x; + continue B; + } while (y); + }); +} +function doStatement9() { + return __awaiter(this, void 0, void 0, function* () { + C: do { + if (1) + continue C; + yield x; + } while (y); + }); +} +function doStatement10() { + return __awaiter(this, void 0, void 0, function* () { + D: do { + continue D; + } while (yield y); + }); +} +function doStatement11() { + return __awaiter(this, void 0, void 0, function* () { + do { + break; + } while (y); + }); +} +function doStatement12() { + return __awaiter(this, void 0, void 0, function* () { + do { + yield x; + break; + } while (y); + }); +} +function doStatement13() { + return __awaiter(this, void 0, void 0, function* () { + do { + if (1) + break; + yield x; + } while (y); + }); +} +function doStatement14() { + return __awaiter(this, void 0, void 0, function* () { + do { + break; + } while (yield y); + }); +} +function doStatement15() { + return __awaiter(this, void 0, void 0, function* () { + E: do { + break E; + } while (y); + }); +} +function doStatement16() { + return __awaiter(this, void 0, void 0, function* () { + F: do { + yield x; + break F; + } while (y); + }); +} +function doStatement17() { + return __awaiter(this, void 0, void 0, function* () { + G: do { + if (1) + break G; + yield x; + } while (y); + }); +} +function doStatement18() { + return __awaiter(this, void 0, void 0, function* () { + H: do { + break H; + } while (yield y); + }); +} diff --git a/tests/baselines/reference/es5-asyncFunctionDoStatements.symbols b/tests/baselines/reference/es5-asyncFunctionDoStatements(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es5-asyncFunctionDoStatements.symbols rename to tests/baselines/reference/es5-asyncFunctionDoStatements(target=es2015).symbols diff --git a/tests/baselines/reference/es5-asyncFunctionDoStatements.types b/tests/baselines/reference/es5-asyncFunctionDoStatements(target=es2015).types similarity index 100% rename from tests/baselines/reference/es5-asyncFunctionDoStatements.types rename to tests/baselines/reference/es5-asyncFunctionDoStatements(target=es2015).types diff --git a/tests/baselines/reference/es5-asyncFunctionDoStatements.js b/tests/baselines/reference/es5-asyncFunctionDoStatements(target=es5).js similarity index 100% rename from tests/baselines/reference/es5-asyncFunctionDoStatements.js rename to tests/baselines/reference/es5-asyncFunctionDoStatements(target=es5).js diff --git a/tests/baselines/reference/es5-asyncFunctionDoStatements(target=es5).symbols b/tests/baselines/reference/es5-asyncFunctionDoStatements(target=es5).symbols new file mode 100644 index 0000000000000..4ca5b146275ba --- /dev/null +++ b/tests/baselines/reference/es5-asyncFunctionDoStatements(target=es5).symbols @@ -0,0 +1,154 @@ +//// [tests/cases/compiler/es5-asyncFunctionDoStatements.ts] //// + +=== es5-asyncFunctionDoStatements.ts === +declare var x, y, z, a, b, c; +>x : Symbol(x, Decl(es5-asyncFunctionDoStatements.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionDoStatements.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionDoStatements.ts, 0, 17)) +>a : Symbol(a, Decl(es5-asyncFunctionDoStatements.ts, 0, 20)) +>b : Symbol(b, Decl(es5-asyncFunctionDoStatements.ts, 0, 23)) +>c : Symbol(c, Decl(es5-asyncFunctionDoStatements.ts, 0, 26)) + +async function doStatement0() { +>doStatement0 : Symbol(doStatement0, Decl(es5-asyncFunctionDoStatements.ts, 0, 29)) + + do { x; } while (y); +>x : Symbol(x, Decl(es5-asyncFunctionDoStatements.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionDoStatements.ts, 0, 14)) +} + +async function doStatement1() { +>doStatement1 : Symbol(doStatement1, Decl(es5-asyncFunctionDoStatements.ts, 4, 1)) + + do { await x; } while (y); +>x : Symbol(x, Decl(es5-asyncFunctionDoStatements.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionDoStatements.ts, 0, 14)) +} + +async function doStatement2() { +>doStatement2 : Symbol(doStatement2, Decl(es5-asyncFunctionDoStatements.ts, 8, 1)) + + do { x; } while (await y); +>x : Symbol(x, Decl(es5-asyncFunctionDoStatements.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionDoStatements.ts, 0, 14)) +} + +async function doStatement3() { +>doStatement3 : Symbol(doStatement3, Decl(es5-asyncFunctionDoStatements.ts, 12, 1)) + + do { continue; } while (y); +>y : Symbol(y, Decl(es5-asyncFunctionDoStatements.ts, 0, 14)) +} + +async function doStatement4() { +>doStatement4 : Symbol(doStatement4, Decl(es5-asyncFunctionDoStatements.ts, 16, 1)) + + do { await x; continue; } while (y); +>x : Symbol(x, Decl(es5-asyncFunctionDoStatements.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionDoStatements.ts, 0, 14)) +} + +async function doStatement5() { +>doStatement5 : Symbol(doStatement5, Decl(es5-asyncFunctionDoStatements.ts, 20, 1)) + + do { if (1) continue; await x; } while (y); +>x : Symbol(x, Decl(es5-asyncFunctionDoStatements.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionDoStatements.ts, 0, 14)) +} + +async function doStatement6() { +>doStatement6 : Symbol(doStatement6, Decl(es5-asyncFunctionDoStatements.ts, 24, 1)) + + do { continue; } while (await y); +>y : Symbol(y, Decl(es5-asyncFunctionDoStatements.ts, 0, 14)) +} + +async function doStatement7() { +>doStatement7 : Symbol(doStatement7, Decl(es5-asyncFunctionDoStatements.ts, 28, 1)) + + A: do { continue A; } while (y); +>y : Symbol(y, Decl(es5-asyncFunctionDoStatements.ts, 0, 14)) +} + +async function doStatement8() { +>doStatement8 : Symbol(doStatement8, Decl(es5-asyncFunctionDoStatements.ts, 32, 1)) + + B: do { await x; continue B; } while (y); +>x : Symbol(x, Decl(es5-asyncFunctionDoStatements.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionDoStatements.ts, 0, 14)) +} + +async function doStatement9() { +>doStatement9 : Symbol(doStatement9, Decl(es5-asyncFunctionDoStatements.ts, 36, 1)) + + C: do { if (1) continue C; await x; } while (y); +>x : Symbol(x, Decl(es5-asyncFunctionDoStatements.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionDoStatements.ts, 0, 14)) +} + +async function doStatement10() { +>doStatement10 : Symbol(doStatement10, Decl(es5-asyncFunctionDoStatements.ts, 40, 1)) + + D: do { continue D; } while (await y); +>y : Symbol(y, Decl(es5-asyncFunctionDoStatements.ts, 0, 14)) +} + +async function doStatement11() { +>doStatement11 : Symbol(doStatement11, Decl(es5-asyncFunctionDoStatements.ts, 44, 1)) + + do { break; } while (y); +>y : Symbol(y, Decl(es5-asyncFunctionDoStatements.ts, 0, 14)) +} + +async function doStatement12() { +>doStatement12 : Symbol(doStatement12, Decl(es5-asyncFunctionDoStatements.ts, 48, 1)) + + do { await x; break; } while (y); +>x : Symbol(x, Decl(es5-asyncFunctionDoStatements.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionDoStatements.ts, 0, 14)) +} + +async function doStatement13() { +>doStatement13 : Symbol(doStatement13, Decl(es5-asyncFunctionDoStatements.ts, 52, 1)) + + do { if (1) break; await x; } while (y); +>x : Symbol(x, Decl(es5-asyncFunctionDoStatements.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionDoStatements.ts, 0, 14)) +} + +async function doStatement14() { +>doStatement14 : Symbol(doStatement14, Decl(es5-asyncFunctionDoStatements.ts, 56, 1)) + + do { break; } while (await y); +>y : Symbol(y, Decl(es5-asyncFunctionDoStatements.ts, 0, 14)) +} + +async function doStatement15() { +>doStatement15 : Symbol(doStatement15, Decl(es5-asyncFunctionDoStatements.ts, 60, 1)) + + E: do { break E; } while (y); +>y : Symbol(y, Decl(es5-asyncFunctionDoStatements.ts, 0, 14)) +} + +async function doStatement16() { +>doStatement16 : Symbol(doStatement16, Decl(es5-asyncFunctionDoStatements.ts, 64, 1)) + + F: do { await x; break F; } while (y); +>x : Symbol(x, Decl(es5-asyncFunctionDoStatements.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionDoStatements.ts, 0, 14)) +} + +async function doStatement17() { +>doStatement17 : Symbol(doStatement17, Decl(es5-asyncFunctionDoStatements.ts, 68, 1)) + + G: do { if (1) break G; await x; } while (y); +>x : Symbol(x, Decl(es5-asyncFunctionDoStatements.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionDoStatements.ts, 0, 14)) +} + +async function doStatement18() { +>doStatement18 : Symbol(doStatement18, Decl(es5-asyncFunctionDoStatements.ts, 72, 1)) + + H: do { break H; } while (await y); +>y : Symbol(y, Decl(es5-asyncFunctionDoStatements.ts, 0, 14)) +} diff --git a/tests/baselines/reference/es5-asyncFunctionDoStatements(target=es5).types b/tests/baselines/reference/es5-asyncFunctionDoStatements(target=es5).types new file mode 100644 index 0000000000000..b4f3d6abb27c1 --- /dev/null +++ b/tests/baselines/reference/es5-asyncFunctionDoStatements(target=es5).types @@ -0,0 +1,227 @@ +//// [tests/cases/compiler/es5-asyncFunctionDoStatements.ts] //// + +=== es5-asyncFunctionDoStatements.ts === +declare var x, y, z, a, b, c; +>x : any +>y : any +>z : any +>a : any +>b : any +>c : any + +async function doStatement0() { +>doStatement0 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + do { x; } while (y); +>x : any +>y : any +} + +async function doStatement1() { +>doStatement1 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + do { await x; } while (y); +>await x : any +>x : any +>y : any +} + +async function doStatement2() { +>doStatement2 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + do { x; } while (await y); +>x : any +>await y : any +>y : any +} + +async function doStatement3() { +>doStatement3 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + do { continue; } while (y); +>y : any +} + +async function doStatement4() { +>doStatement4 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + do { await x; continue; } while (y); +>await x : any +>x : any +>y : any +} + +async function doStatement5() { +>doStatement5 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + do { if (1) continue; await x; } while (y); +>1 : 1 +> : ^ +>await x : any +>x : any +>y : any +} + +async function doStatement6() { +>doStatement6 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + do { continue; } while (await y); +>await y : any +>y : any +} + +async function doStatement7() { +>doStatement7 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + A: do { continue A; } while (y); +>A : any +> : ^^^ +>A : any +> : ^^^ +>y : any +} + +async function doStatement8() { +>doStatement8 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + B: do { await x; continue B; } while (y); +>B : any +> : ^^^ +>await x : any +>x : any +>B : any +> : ^^^ +>y : any +} + +async function doStatement9() { +>doStatement9 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + C: do { if (1) continue C; await x; } while (y); +>C : any +> : ^^^ +>1 : 1 +> : ^ +>C : any +> : ^^^ +>await x : any +>x : any +>y : any +} + +async function doStatement10() { +>doStatement10 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + D: do { continue D; } while (await y); +>D : any +> : ^^^ +>D : any +> : ^^^ +>await y : any +>y : any +} + +async function doStatement11() { +>doStatement11 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + do { break; } while (y); +>y : any +} + +async function doStatement12() { +>doStatement12 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + do { await x; break; } while (y); +>await x : any +>x : any +>y : any +} + +async function doStatement13() { +>doStatement13 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + do { if (1) break; await x; } while (y); +>1 : 1 +> : ^ +>await x : any +>x : any +>y : any +} + +async function doStatement14() { +>doStatement14 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + do { break; } while (await y); +>await y : any +>y : any +} + +async function doStatement15() { +>doStatement15 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + E: do { break E; } while (y); +>E : any +> : ^^^ +>E : any +> : ^^^ +>y : any +} + +async function doStatement16() { +>doStatement16 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + F: do { await x; break F; } while (y); +>F : any +> : ^^^ +>await x : any +>x : any +>F : any +> : ^^^ +>y : any +} + +async function doStatement17() { +>doStatement17 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + G: do { if (1) break G; await x; } while (y); +>G : any +> : ^^^ +>1 : 1 +> : ^ +>G : any +> : ^^^ +>await x : any +>x : any +>y : any +} + +async function doStatement18() { +>doStatement18 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + H: do { break H; } while (await y); +>H : any +> : ^^^ +>H : any +> : ^^^ +>await y : any +>y : any +} diff --git a/tests/baselines/reference/es5-asyncFunctionElementAccess(target=es2015).js b/tests/baselines/reference/es5-asyncFunctionElementAccess(target=es2015).js new file mode 100644 index 0000000000000..6b73b7978ae6d --- /dev/null +++ b/tests/baselines/reference/es5-asyncFunctionElementAccess(target=es2015).js @@ -0,0 +1,34 @@ +//// [tests/cases/compiler/es5-asyncFunctionElementAccess.ts] //// + +//// [es5-asyncFunctionElementAccess.ts] +declare var x, y, z, a, b, c; + +async function elementAccess0() { + z = await x[y]; +} + +async function elementAccess1() { + z = (await x)[y]; +} + +async function elementAccess2() { + z = x[await y]; +} + + +//// [es5-asyncFunctionElementAccess.js] +function elementAccess0() { + return __awaiter(this, void 0, void 0, function* () { + z = yield x[y]; + }); +} +function elementAccess1() { + return __awaiter(this, void 0, void 0, function* () { + z = (yield x)[y]; + }); +} +function elementAccess2() { + return __awaiter(this, void 0, void 0, function* () { + z = x[yield y]; + }); +} diff --git a/tests/baselines/reference/es5-asyncFunctionElementAccess.symbols b/tests/baselines/reference/es5-asyncFunctionElementAccess(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es5-asyncFunctionElementAccess.symbols rename to tests/baselines/reference/es5-asyncFunctionElementAccess(target=es2015).symbols diff --git a/tests/baselines/reference/es5-asyncFunctionElementAccess.types b/tests/baselines/reference/es5-asyncFunctionElementAccess(target=es2015).types similarity index 100% rename from tests/baselines/reference/es5-asyncFunctionElementAccess.types rename to tests/baselines/reference/es5-asyncFunctionElementAccess(target=es2015).types diff --git a/tests/baselines/reference/es5-asyncFunctionElementAccess.js b/tests/baselines/reference/es5-asyncFunctionElementAccess(target=es5).js similarity index 100% rename from tests/baselines/reference/es5-asyncFunctionElementAccess.js rename to tests/baselines/reference/es5-asyncFunctionElementAccess(target=es5).js diff --git a/tests/baselines/reference/es5-asyncFunctionElementAccess(target=es5).symbols b/tests/baselines/reference/es5-asyncFunctionElementAccess(target=es5).symbols new file mode 100644 index 0000000000000..719d06175bef8 --- /dev/null +++ b/tests/baselines/reference/es5-asyncFunctionElementAccess(target=es5).symbols @@ -0,0 +1,38 @@ +//// [tests/cases/compiler/es5-asyncFunctionElementAccess.ts] //// + +=== es5-asyncFunctionElementAccess.ts === +declare var x, y, z, a, b, c; +>x : Symbol(x, Decl(es5-asyncFunctionElementAccess.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionElementAccess.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionElementAccess.ts, 0, 17)) +>a : Symbol(a, Decl(es5-asyncFunctionElementAccess.ts, 0, 20)) +>b : Symbol(b, Decl(es5-asyncFunctionElementAccess.ts, 0, 23)) +>c : Symbol(c, Decl(es5-asyncFunctionElementAccess.ts, 0, 26)) + +async function elementAccess0() { +>elementAccess0 : Symbol(elementAccess0, Decl(es5-asyncFunctionElementAccess.ts, 0, 29)) + + z = await x[y]; +>z : Symbol(z, Decl(es5-asyncFunctionElementAccess.ts, 0, 17)) +>x : Symbol(x, Decl(es5-asyncFunctionElementAccess.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionElementAccess.ts, 0, 14)) +} + +async function elementAccess1() { +>elementAccess1 : Symbol(elementAccess1, Decl(es5-asyncFunctionElementAccess.ts, 4, 1)) + + z = (await x)[y]; +>z : Symbol(z, Decl(es5-asyncFunctionElementAccess.ts, 0, 17)) +>x : Symbol(x, Decl(es5-asyncFunctionElementAccess.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionElementAccess.ts, 0, 14)) +} + +async function elementAccess2() { +>elementAccess2 : Symbol(elementAccess2, Decl(es5-asyncFunctionElementAccess.ts, 8, 1)) + + z = x[await y]; +>z : Symbol(z, Decl(es5-asyncFunctionElementAccess.ts, 0, 17)) +>x : Symbol(x, Decl(es5-asyncFunctionElementAccess.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionElementAccess.ts, 0, 14)) +} + diff --git a/tests/baselines/reference/es5-asyncFunctionElementAccess(target=es5).types b/tests/baselines/reference/es5-asyncFunctionElementAccess(target=es5).types new file mode 100644 index 0000000000000..f3d3ffae3daa2 --- /dev/null +++ b/tests/baselines/reference/es5-asyncFunctionElementAccess(target=es5).types @@ -0,0 +1,51 @@ +//// [tests/cases/compiler/es5-asyncFunctionElementAccess.ts] //// + +=== es5-asyncFunctionElementAccess.ts === +declare var x, y, z, a, b, c; +>x : any +>y : any +>z : any +>a : any +>b : any +>c : any + +async function elementAccess0() { +>elementAccess0 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + z = await x[y]; +>z = await x[y] : any +>z : any +>await x[y] : any +>x[y] : any +>x : any +>y : any +} + +async function elementAccess1() { +>elementAccess1 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + z = (await x)[y]; +>z = (await x)[y] : any +>z : any +>(await x)[y] : any +>(await x) : any +>await x : any +>x : any +>y : any +} + +async function elementAccess2() { +>elementAccess2 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + z = x[await y]; +>z = x[await y] : any +>z : any +>x[await y] : any +>x : any +>await y : any +>y : any +} + diff --git a/tests/baselines/reference/es5-asyncFunctionForInStatements(target=es2015).js b/tests/baselines/reference/es5-asyncFunctionForInStatements(target=es2015).js new file mode 100644 index 0000000000000..d626402530381 --- /dev/null +++ b/tests/baselines/reference/es5-asyncFunctionForInStatements(target=es2015).js @@ -0,0 +1,105 @@ +//// [tests/cases/compiler/es5-asyncFunctionForInStatements.ts] //// + +//// [es5-asyncFunctionForInStatements.ts] +declare var x, y, z, a, b, c; + +async function forInStatement0() { + for (x in y) { z; } +} + +async function forInStatement1() { + for (x in await y) { z; } +} + +async function forInStatement2() { + for (x in y) { await z; } +} + +async function forInStatement3() { + for ((await x).a in y) { z; } +} + +async function forInStatement4() { + for (x.a in await y) { z; } +} + +async function forInStatement5() { + for (x.a in y) { await z; } +} + +async function forInStatement6() { + for (var a in y) { z; } +} + +async function forInStatement7() { + for (var b in await y) { z; } +} + +async function forInStatement8() { + for (var c in y) { await z; } +} + +//// [es5-asyncFunctionForInStatements.js] +function forInStatement0() { + return __awaiter(this, void 0, void 0, function* () { + for (x in y) { + z; + } + }); +} +function forInStatement1() { + return __awaiter(this, void 0, void 0, function* () { + for (x in yield y) { + z; + } + }); +} +function forInStatement2() { + return __awaiter(this, void 0, void 0, function* () { + for (x in y) { + yield z; + } + }); +} +function forInStatement3() { + return __awaiter(this, void 0, void 0, function* () { + for ((yield x).a in y) { + z; + } + }); +} +function forInStatement4() { + return __awaiter(this, void 0, void 0, function* () { + for (x.a in yield y) { + z; + } + }); +} +function forInStatement5() { + return __awaiter(this, void 0, void 0, function* () { + for (x.a in y) { + yield z; + } + }); +} +function forInStatement6() { + return __awaiter(this, void 0, void 0, function* () { + for (var a in y) { + z; + } + }); +} +function forInStatement7() { + return __awaiter(this, void 0, void 0, function* () { + for (var b in yield y) { + z; + } + }); +} +function forInStatement8() { + return __awaiter(this, void 0, void 0, function* () { + for (var c in y) { + yield z; + } + }); +} diff --git a/tests/baselines/reference/es5-asyncFunctionForInStatements.symbols b/tests/baselines/reference/es5-asyncFunctionForInStatements(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es5-asyncFunctionForInStatements.symbols rename to tests/baselines/reference/es5-asyncFunctionForInStatements(target=es2015).symbols diff --git a/tests/baselines/reference/es5-asyncFunctionForInStatements.types b/tests/baselines/reference/es5-asyncFunctionForInStatements(target=es2015).types similarity index 100% rename from tests/baselines/reference/es5-asyncFunctionForInStatements.types rename to tests/baselines/reference/es5-asyncFunctionForInStatements(target=es2015).types diff --git a/tests/baselines/reference/es5-asyncFunctionForInStatements.js b/tests/baselines/reference/es5-asyncFunctionForInStatements(target=es5).js similarity index 100% rename from tests/baselines/reference/es5-asyncFunctionForInStatements.js rename to tests/baselines/reference/es5-asyncFunctionForInStatements(target=es5).js diff --git a/tests/baselines/reference/es5-asyncFunctionForInStatements(target=es5).symbols b/tests/baselines/reference/es5-asyncFunctionForInStatements(target=es5).symbols new file mode 100644 index 0000000000000..0fc038e7af638 --- /dev/null +++ b/tests/baselines/reference/es5-asyncFunctionForInStatements(target=es5).symbols @@ -0,0 +1,91 @@ +//// [tests/cases/compiler/es5-asyncFunctionForInStatements.ts] //// + +=== es5-asyncFunctionForInStatements.ts === +declare var x, y, z, a, b, c; +>x : Symbol(x, Decl(es5-asyncFunctionForInStatements.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionForInStatements.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionForInStatements.ts, 0, 17)) +>a : Symbol(a, Decl(es5-asyncFunctionForInStatements.ts, 0, 20)) +>b : Symbol(b, Decl(es5-asyncFunctionForInStatements.ts, 0, 23)) +>c : Symbol(c, Decl(es5-asyncFunctionForInStatements.ts, 0, 26)) + +async function forInStatement0() { +>forInStatement0 : Symbol(forInStatement0, Decl(es5-asyncFunctionForInStatements.ts, 0, 29)) + + for (x in y) { z; } +>x : Symbol(x, Decl(es5-asyncFunctionForInStatements.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionForInStatements.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionForInStatements.ts, 0, 17)) +} + +async function forInStatement1() { +>forInStatement1 : Symbol(forInStatement1, Decl(es5-asyncFunctionForInStatements.ts, 4, 1)) + + for (x in await y) { z; } +>x : Symbol(x, Decl(es5-asyncFunctionForInStatements.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionForInStatements.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionForInStatements.ts, 0, 17)) +} + +async function forInStatement2() { +>forInStatement2 : Symbol(forInStatement2, Decl(es5-asyncFunctionForInStatements.ts, 8, 1)) + + for (x in y) { await z; } +>x : Symbol(x, Decl(es5-asyncFunctionForInStatements.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionForInStatements.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionForInStatements.ts, 0, 17)) +} + +async function forInStatement3() { +>forInStatement3 : Symbol(forInStatement3, Decl(es5-asyncFunctionForInStatements.ts, 12, 1)) + + for ((await x).a in y) { z; } +>x : Symbol(x, Decl(es5-asyncFunctionForInStatements.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionForInStatements.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionForInStatements.ts, 0, 17)) +} + +async function forInStatement4() { +>forInStatement4 : Symbol(forInStatement4, Decl(es5-asyncFunctionForInStatements.ts, 16, 1)) + + for (x.a in await y) { z; } +>x : Symbol(x, Decl(es5-asyncFunctionForInStatements.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionForInStatements.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionForInStatements.ts, 0, 17)) +} + +async function forInStatement5() { +>forInStatement5 : Symbol(forInStatement5, Decl(es5-asyncFunctionForInStatements.ts, 20, 1)) + + for (x.a in y) { await z; } +>x : Symbol(x, Decl(es5-asyncFunctionForInStatements.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionForInStatements.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionForInStatements.ts, 0, 17)) +} + +async function forInStatement6() { +>forInStatement6 : Symbol(forInStatement6, Decl(es5-asyncFunctionForInStatements.ts, 24, 1)) + + for (var a in y) { z; } +>a : Symbol(a, Decl(es5-asyncFunctionForInStatements.ts, 27, 12)) +>y : Symbol(y, Decl(es5-asyncFunctionForInStatements.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionForInStatements.ts, 0, 17)) +} + +async function forInStatement7() { +>forInStatement7 : Symbol(forInStatement7, Decl(es5-asyncFunctionForInStatements.ts, 28, 1)) + + for (var b in await y) { z; } +>b : Symbol(b, Decl(es5-asyncFunctionForInStatements.ts, 31, 12)) +>y : Symbol(y, Decl(es5-asyncFunctionForInStatements.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionForInStatements.ts, 0, 17)) +} + +async function forInStatement8() { +>forInStatement8 : Symbol(forInStatement8, Decl(es5-asyncFunctionForInStatements.ts, 32, 1)) + + for (var c in y) { await z; } +>c : Symbol(c, Decl(es5-asyncFunctionForInStatements.ts, 35, 12)) +>y : Symbol(y, Decl(es5-asyncFunctionForInStatements.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionForInStatements.ts, 0, 17)) +} diff --git a/tests/baselines/reference/es5-asyncFunctionForInStatements(target=es5).types b/tests/baselines/reference/es5-asyncFunctionForInStatements(target=es5).types new file mode 100644 index 0000000000000..9502f29de7c45 --- /dev/null +++ b/tests/baselines/reference/es5-asyncFunctionForInStatements(target=es5).types @@ -0,0 +1,123 @@ +//// [tests/cases/compiler/es5-asyncFunctionForInStatements.ts] //// + +=== es5-asyncFunctionForInStatements.ts === +declare var x, y, z, a, b, c; +>x : any +>y : any +>z : any +>a : any +>b : any +>c : any + +async function forInStatement0() { +>forInStatement0 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + for (x in y) { z; } +>x : any +>y : any +>z : any +} + +async function forInStatement1() { +>forInStatement1 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + for (x in await y) { z; } +>x : any +>await y : any +>y : any +>z : any +} + +async function forInStatement2() { +>forInStatement2 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + for (x in y) { await z; } +>x : any +>y : any +>await z : any +>z : any +} + +async function forInStatement3() { +>forInStatement3 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + for ((await x).a in y) { z; } +>(await x).a : any +>(await x) : any +> : ^^^ +>await x : any +>x : any +>a : any +> : ^^^ +>y : any +>z : any +} + +async function forInStatement4() { +>forInStatement4 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + for (x.a in await y) { z; } +>x.a : any +>x : any +> : ^^^ +>a : any +> : ^^^ +>await y : any +>y : any +>z : any +} + +async function forInStatement5() { +>forInStatement5 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + for (x.a in y) { await z; } +>x.a : any +>x : any +> : ^^^ +>a : any +> : ^^^ +>y : any +>await z : any +>z : any +} + +async function forInStatement6() { +>forInStatement6 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + for (var a in y) { z; } +>a : string +> : ^^^^^^ +>y : any +>z : any +} + +async function forInStatement7() { +>forInStatement7 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + for (var b in await y) { z; } +>b : string +> : ^^^^^^ +>await y : any +>y : any +>z : any +} + +async function forInStatement8() { +>forInStatement8 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + for (var c in y) { await z; } +>c : string +> : ^^^^^^ +>y : any +>await z : any +>z : any +} diff --git a/tests/baselines/reference/es5-asyncFunctionForOfStatements(target=es2015).js b/tests/baselines/reference/es5-asyncFunctionForOfStatements(target=es2015).js new file mode 100644 index 0000000000000..402ae9dd690b1 --- /dev/null +++ b/tests/baselines/reference/es5-asyncFunctionForOfStatements(target=es2015).js @@ -0,0 +1,215 @@ +//// [tests/cases/compiler/es5-asyncFunctionForOfStatements.ts] //// + +//// [es5-asyncFunctionForOfStatements.ts] +declare var x, y, z, a, b, c; + +async function forOfStatement0() { + for (x of y) { z; } +} + +async function forOfStatement1() { + for (x of await y) { z; } +} + +async function forOfStatement2() { + for (x of y) { await z; } +} + +async function forOfStatement3() { + for ((await x).a of y) { z; } +} + +async function forOfStatement4() { + for (x.a of await y) { z; } +} + +async function forOfStatement5() { + for (x.a of y) { await z; } +} + +async function forOfStatement6() { + for (var b of y) { z; } +} + +async function forOfStatement7() { + for (var c of await y) { z; } +} + +async function forOfStatement8() { + for (var d of y) { await z; } +} + +async function forOfStatement9() { + for ([x] of await y) { z; } +} + +async function forOfStatement10() { + for ([x] of y) { await z; } +} + +async function forOfStatement11() { + for ([x = await a] of y) { z; } +} + +async function forOfStatement12() { + for ([x = a] of await y) { z; } +} + +async function forOfStatement13() { + for ([x = a] of y) { await z; } +} + +async function forOfStatement14() { + for ({ x } of await y) { z; } +} + +async function forOfStatement15() { + for ({ x } of y) { await z; } +} + +async function forOfStatement16() { + for ({ x = await a } of y) { z; } +} + +async function forOfStatement17() { + for ({ x = a } of await y) { z; } +} + +async function forOfStatement18() { + for ({ x = a } of y) { await z; } +} + +//// [es5-asyncFunctionForOfStatements.js] +function forOfStatement0() { + return __awaiter(this, void 0, void 0, function* () { + for (x of y) { + z; + } + }); +} +function forOfStatement1() { + return __awaiter(this, void 0, void 0, function* () { + for (x of yield y) { + z; + } + }); +} +function forOfStatement2() { + return __awaiter(this, void 0, void 0, function* () { + for (x of y) { + yield z; + } + }); +} +function forOfStatement3() { + return __awaiter(this, void 0, void 0, function* () { + for ((yield x).a of y) { + z; + } + }); +} +function forOfStatement4() { + return __awaiter(this, void 0, void 0, function* () { + for (x.a of yield y) { + z; + } + }); +} +function forOfStatement5() { + return __awaiter(this, void 0, void 0, function* () { + for (x.a of y) { + yield z; + } + }); +} +function forOfStatement6() { + return __awaiter(this, void 0, void 0, function* () { + for (var b of y) { + z; + } + }); +} +function forOfStatement7() { + return __awaiter(this, void 0, void 0, function* () { + for (var c of yield y) { + z; + } + }); +} +function forOfStatement8() { + return __awaiter(this, void 0, void 0, function* () { + for (var d of y) { + yield z; + } + }); +} +function forOfStatement9() { + return __awaiter(this, void 0, void 0, function* () { + for ([x] of yield y) { + z; + } + }); +} +function forOfStatement10() { + return __awaiter(this, void 0, void 0, function* () { + for ([x] of y) { + yield z; + } + }); +} +function forOfStatement11() { + return __awaiter(this, void 0, void 0, function* () { + for ([x = yield a] of y) { + z; + } + }); +} +function forOfStatement12() { + return __awaiter(this, void 0, void 0, function* () { + for ([x = a] of yield y) { + z; + } + }); +} +function forOfStatement13() { + return __awaiter(this, void 0, void 0, function* () { + for ([x = a] of y) { + yield z; + } + }); +} +function forOfStatement14() { + return __awaiter(this, void 0, void 0, function* () { + for ({ x } of yield y) { + z; + } + }); +} +function forOfStatement15() { + return __awaiter(this, void 0, void 0, function* () { + for ({ x } of y) { + yield z; + } + }); +} +function forOfStatement16() { + return __awaiter(this, void 0, void 0, function* () { + for ({ x = yield a } of y) { + z; + } + }); +} +function forOfStatement17() { + return __awaiter(this, void 0, void 0, function* () { + for ({ x = a } of yield y) { + z; + } + }); +} +function forOfStatement18() { + return __awaiter(this, void 0, void 0, function* () { + for ({ x = a } of y) { + yield z; + } + }); +} diff --git a/tests/baselines/reference/es5-asyncFunctionForOfStatements.symbols b/tests/baselines/reference/es5-asyncFunctionForOfStatements(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es5-asyncFunctionForOfStatements.symbols rename to tests/baselines/reference/es5-asyncFunctionForOfStatements(target=es2015).symbols diff --git a/tests/baselines/reference/es5-asyncFunctionForOfStatements.types b/tests/baselines/reference/es5-asyncFunctionForOfStatements(target=es2015).types similarity index 100% rename from tests/baselines/reference/es5-asyncFunctionForOfStatements.types rename to tests/baselines/reference/es5-asyncFunctionForOfStatements(target=es2015).types diff --git a/tests/baselines/reference/es5-asyncFunctionForOfStatements.js b/tests/baselines/reference/es5-asyncFunctionForOfStatements(target=es5).js similarity index 100% rename from tests/baselines/reference/es5-asyncFunctionForOfStatements.js rename to tests/baselines/reference/es5-asyncFunctionForOfStatements(target=es5).js diff --git a/tests/baselines/reference/es5-asyncFunctionForOfStatements(target=es5).symbols b/tests/baselines/reference/es5-asyncFunctionForOfStatements(target=es5).symbols new file mode 100644 index 0000000000000..044d2d95e013c --- /dev/null +++ b/tests/baselines/reference/es5-asyncFunctionForOfStatements(target=es5).symbols @@ -0,0 +1,187 @@ +//// [tests/cases/compiler/es5-asyncFunctionForOfStatements.ts] //// + +=== es5-asyncFunctionForOfStatements.ts === +declare var x, y, z, a, b, c; +>x : Symbol(x, Decl(es5-asyncFunctionForOfStatements.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionForOfStatements.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionForOfStatements.ts, 0, 17)) +>a : Symbol(a, Decl(es5-asyncFunctionForOfStatements.ts, 0, 20)) +>b : Symbol(b, Decl(es5-asyncFunctionForOfStatements.ts, 0, 23)) +>c : Symbol(c, Decl(es5-asyncFunctionForOfStatements.ts, 0, 26)) + +async function forOfStatement0() { +>forOfStatement0 : Symbol(forOfStatement0, Decl(es5-asyncFunctionForOfStatements.ts, 0, 29)) + + for (x of y) { z; } +>x : Symbol(x, Decl(es5-asyncFunctionForOfStatements.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionForOfStatements.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionForOfStatements.ts, 0, 17)) +} + +async function forOfStatement1() { +>forOfStatement1 : Symbol(forOfStatement1, Decl(es5-asyncFunctionForOfStatements.ts, 4, 1)) + + for (x of await y) { z; } +>x : Symbol(x, Decl(es5-asyncFunctionForOfStatements.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionForOfStatements.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionForOfStatements.ts, 0, 17)) +} + +async function forOfStatement2() { +>forOfStatement2 : Symbol(forOfStatement2, Decl(es5-asyncFunctionForOfStatements.ts, 8, 1)) + + for (x of y) { await z; } +>x : Symbol(x, Decl(es5-asyncFunctionForOfStatements.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionForOfStatements.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionForOfStatements.ts, 0, 17)) +} + +async function forOfStatement3() { +>forOfStatement3 : Symbol(forOfStatement3, Decl(es5-asyncFunctionForOfStatements.ts, 12, 1)) + + for ((await x).a of y) { z; } +>x : Symbol(x, Decl(es5-asyncFunctionForOfStatements.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionForOfStatements.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionForOfStatements.ts, 0, 17)) +} + +async function forOfStatement4() { +>forOfStatement4 : Symbol(forOfStatement4, Decl(es5-asyncFunctionForOfStatements.ts, 16, 1)) + + for (x.a of await y) { z; } +>x : Symbol(x, Decl(es5-asyncFunctionForOfStatements.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionForOfStatements.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionForOfStatements.ts, 0, 17)) +} + +async function forOfStatement5() { +>forOfStatement5 : Symbol(forOfStatement5, Decl(es5-asyncFunctionForOfStatements.ts, 20, 1)) + + for (x.a of y) { await z; } +>x : Symbol(x, Decl(es5-asyncFunctionForOfStatements.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionForOfStatements.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionForOfStatements.ts, 0, 17)) +} + +async function forOfStatement6() { +>forOfStatement6 : Symbol(forOfStatement6, Decl(es5-asyncFunctionForOfStatements.ts, 24, 1)) + + for (var b of y) { z; } +>b : Symbol(b, Decl(es5-asyncFunctionForOfStatements.ts, 27, 12)) +>y : Symbol(y, Decl(es5-asyncFunctionForOfStatements.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionForOfStatements.ts, 0, 17)) +} + +async function forOfStatement7() { +>forOfStatement7 : Symbol(forOfStatement7, Decl(es5-asyncFunctionForOfStatements.ts, 28, 1)) + + for (var c of await y) { z; } +>c : Symbol(c, Decl(es5-asyncFunctionForOfStatements.ts, 31, 12)) +>y : Symbol(y, Decl(es5-asyncFunctionForOfStatements.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionForOfStatements.ts, 0, 17)) +} + +async function forOfStatement8() { +>forOfStatement8 : Symbol(forOfStatement8, Decl(es5-asyncFunctionForOfStatements.ts, 32, 1)) + + for (var d of y) { await z; } +>d : Symbol(d, Decl(es5-asyncFunctionForOfStatements.ts, 35, 12)) +>y : Symbol(y, Decl(es5-asyncFunctionForOfStatements.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionForOfStatements.ts, 0, 17)) +} + +async function forOfStatement9() { +>forOfStatement9 : Symbol(forOfStatement9, Decl(es5-asyncFunctionForOfStatements.ts, 36, 1)) + + for ([x] of await y) { z; } +>x : Symbol(x, Decl(es5-asyncFunctionForOfStatements.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionForOfStatements.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionForOfStatements.ts, 0, 17)) +} + +async function forOfStatement10() { +>forOfStatement10 : Symbol(forOfStatement10, Decl(es5-asyncFunctionForOfStatements.ts, 40, 1)) + + for ([x] of y) { await z; } +>x : Symbol(x, Decl(es5-asyncFunctionForOfStatements.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionForOfStatements.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionForOfStatements.ts, 0, 17)) +} + +async function forOfStatement11() { +>forOfStatement11 : Symbol(forOfStatement11, Decl(es5-asyncFunctionForOfStatements.ts, 44, 1)) + + for ([x = await a] of y) { z; } +>x : Symbol(x, Decl(es5-asyncFunctionForOfStatements.ts, 0, 11)) +>a : Symbol(a, Decl(es5-asyncFunctionForOfStatements.ts, 0, 20)) +>y : Symbol(y, Decl(es5-asyncFunctionForOfStatements.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionForOfStatements.ts, 0, 17)) +} + +async function forOfStatement12() { +>forOfStatement12 : Symbol(forOfStatement12, Decl(es5-asyncFunctionForOfStatements.ts, 48, 1)) + + for ([x = a] of await y) { z; } +>x : Symbol(x, Decl(es5-asyncFunctionForOfStatements.ts, 0, 11)) +>a : Symbol(a, Decl(es5-asyncFunctionForOfStatements.ts, 0, 20)) +>y : Symbol(y, Decl(es5-asyncFunctionForOfStatements.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionForOfStatements.ts, 0, 17)) +} + +async function forOfStatement13() { +>forOfStatement13 : Symbol(forOfStatement13, Decl(es5-asyncFunctionForOfStatements.ts, 52, 1)) + + for ([x = a] of y) { await z; } +>x : Symbol(x, Decl(es5-asyncFunctionForOfStatements.ts, 0, 11)) +>a : Symbol(a, Decl(es5-asyncFunctionForOfStatements.ts, 0, 20)) +>y : Symbol(y, Decl(es5-asyncFunctionForOfStatements.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionForOfStatements.ts, 0, 17)) +} + +async function forOfStatement14() { +>forOfStatement14 : Symbol(forOfStatement14, Decl(es5-asyncFunctionForOfStatements.ts, 56, 1)) + + for ({ x } of await y) { z; } +>x : Symbol(x, Decl(es5-asyncFunctionForOfStatements.ts, 59, 10)) +>y : Symbol(y, Decl(es5-asyncFunctionForOfStatements.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionForOfStatements.ts, 0, 17)) +} + +async function forOfStatement15() { +>forOfStatement15 : Symbol(forOfStatement15, Decl(es5-asyncFunctionForOfStatements.ts, 60, 1)) + + for ({ x } of y) { await z; } +>x : Symbol(x, Decl(es5-asyncFunctionForOfStatements.ts, 63, 10)) +>y : Symbol(y, Decl(es5-asyncFunctionForOfStatements.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionForOfStatements.ts, 0, 17)) +} + +async function forOfStatement16() { +>forOfStatement16 : Symbol(forOfStatement16, Decl(es5-asyncFunctionForOfStatements.ts, 64, 1)) + + for ({ x = await a } of y) { z; } +>x : Symbol(x, Decl(es5-asyncFunctionForOfStatements.ts, 67, 10)) +>a : Symbol(a, Decl(es5-asyncFunctionForOfStatements.ts, 0, 20)) +>y : Symbol(y, Decl(es5-asyncFunctionForOfStatements.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionForOfStatements.ts, 0, 17)) +} + +async function forOfStatement17() { +>forOfStatement17 : Symbol(forOfStatement17, Decl(es5-asyncFunctionForOfStatements.ts, 68, 1)) + + for ({ x = a } of await y) { z; } +>x : Symbol(x, Decl(es5-asyncFunctionForOfStatements.ts, 71, 10)) +>a : Symbol(a, Decl(es5-asyncFunctionForOfStatements.ts, 0, 20)) +>y : Symbol(y, Decl(es5-asyncFunctionForOfStatements.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionForOfStatements.ts, 0, 17)) +} + +async function forOfStatement18() { +>forOfStatement18 : Symbol(forOfStatement18, Decl(es5-asyncFunctionForOfStatements.ts, 72, 1)) + + for ({ x = a } of y) { await z; } +>x : Symbol(x, Decl(es5-asyncFunctionForOfStatements.ts, 75, 10)) +>a : Symbol(a, Decl(es5-asyncFunctionForOfStatements.ts, 0, 20)) +>y : Symbol(y, Decl(es5-asyncFunctionForOfStatements.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionForOfStatements.ts, 0, 17)) +} diff --git a/tests/baselines/reference/es5-asyncFunctionForOfStatements(target=es5).types b/tests/baselines/reference/es5-asyncFunctionForOfStatements(target=es5).types new file mode 100644 index 0000000000000..36d5bd8785260 --- /dev/null +++ b/tests/baselines/reference/es5-asyncFunctionForOfStatements(target=es5).types @@ -0,0 +1,259 @@ +//// [tests/cases/compiler/es5-asyncFunctionForOfStatements.ts] //// + +=== es5-asyncFunctionForOfStatements.ts === +declare var x, y, z, a, b, c; +>x : any +>y : any +>z : any +>a : any +>b : any +>c : any + +async function forOfStatement0() { +>forOfStatement0 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + for (x of y) { z; } +>x : any +>y : any +>z : any +} + +async function forOfStatement1() { +>forOfStatement1 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + for (x of await y) { z; } +>x : any +>await y : any +>y : any +>z : any +} + +async function forOfStatement2() { +>forOfStatement2 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + for (x of y) { await z; } +>x : any +>y : any +>await z : any +>z : any +} + +async function forOfStatement3() { +>forOfStatement3 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + for ((await x).a of y) { z; } +>(await x).a : any +>(await x) : any +> : ^^^ +>await x : any +>x : any +>a : any +> : ^^^ +>y : any +>z : any +} + +async function forOfStatement4() { +>forOfStatement4 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + for (x.a of await y) { z; } +>x.a : any +>x : any +> : ^^^ +>a : any +> : ^^^ +>await y : any +>y : any +>z : any +} + +async function forOfStatement5() { +>forOfStatement5 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + for (x.a of y) { await z; } +>x.a : any +>x : any +> : ^^^ +>a : any +> : ^^^ +>y : any +>await z : any +>z : any +} + +async function forOfStatement6() { +>forOfStatement6 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + for (var b of y) { z; } +>b : any +>y : any +>z : any +} + +async function forOfStatement7() { +>forOfStatement7 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + for (var c of await y) { z; } +>c : any +>await y : any +>y : any +>z : any +} + +async function forOfStatement8() { +>forOfStatement8 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + for (var d of y) { await z; } +>d : any +>y : any +>await z : any +>z : any +} + +async function forOfStatement9() { +>forOfStatement9 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + for ([x] of await y) { z; } +>[x] : [any] +> : ^^^^^ +>x : any +>await y : any +>y : any +>z : any +} + +async function forOfStatement10() { +>forOfStatement10 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + for ([x] of y) { await z; } +>[x] : [any] +> : ^^^^^ +>x : any +>y : any +>await z : any +>z : any +} + +async function forOfStatement11() { +>forOfStatement11 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + for ([x = await a] of y) { z; } +>[x = await a] : [any] +> : ^^^^^ +>x = await a : any +>x : any +>await a : any +>a : any +>y : any +>z : any +} + +async function forOfStatement12() { +>forOfStatement12 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + for ([x = a] of await y) { z; } +>[x = a] : [any] +> : ^^^^^ +>x = a : any +>x : any +>a : any +>await y : any +>y : any +>z : any +} + +async function forOfStatement13() { +>forOfStatement13 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + for ([x = a] of y) { await z; } +>[x = a] : [any] +> : ^^^^^ +>x = a : any +>x : any +>a : any +>y : any +>await z : any +>z : any +} + +async function forOfStatement14() { +>forOfStatement14 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + for ({ x } of await y) { z; } +>{ x } : { x: any; } +> : ^^^^^^^^^^^ +>x : any +>await y : any +>y : any +>z : any +} + +async function forOfStatement15() { +>forOfStatement15 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + for ({ x } of y) { await z; } +>{ x } : { x: any; } +> : ^^^^^^^^^^^ +>x : any +>y : any +>await z : any +>z : any +} + +async function forOfStatement16() { +>forOfStatement16 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + for ({ x = await a } of y) { z; } +>{ x = await a } : { x?: any; } +> : ^^^^^^^^^^^^ +>x : any +>await a : any +>a : any +>y : any +>z : any +} + +async function forOfStatement17() { +>forOfStatement17 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + for ({ x = a } of await y) { z; } +>{ x = a } : { x?: any; } +> : ^^^^^^^^^^^^ +>x : any +>a : any +>await y : any +>y : any +>z : any +} + +async function forOfStatement18() { +>forOfStatement18 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + for ({ x = a } of y) { await z; } +>{ x = a } : { x?: any; } +> : ^^^^^^^^^^^^ +>x : any +>a : any +>y : any +>await z : any +>z : any +} diff --git a/tests/baselines/reference/es5-asyncFunctionForStatements(target=es2015).js b/tests/baselines/reference/es5-asyncFunctionForStatements(target=es2015).js new file mode 100644 index 0000000000000..9ef597574aab9 --- /dev/null +++ b/tests/baselines/reference/es5-asyncFunctionForStatements(target=es2015).js @@ -0,0 +1,83 @@ +//// [tests/cases/compiler/es5-asyncFunctionForStatements.ts] //// + +//// [es5-asyncFunctionForStatements.ts] +declare var x, y, z, a, b, c; + +async function forStatement0() { + for (x; y; z) { a; } +} + +async function forStatement1() { + for (await x; y; z) { a; } +} + +async function forStatement2() { + for (x; await y; z) { a; } +} + +async function forStatement3() { + for (x; y; await z) { a; } +} + +async function forStatement4() { + for (x; y; z) { await a; } +} + +async function forStatement5() { + for (var b; y; z) { a; } +} + +async function forStatement6() { + for (var c = x; y; z) { a; } +} + +//// [es5-asyncFunctionForStatements.js] +function forStatement0() { + return __awaiter(this, void 0, void 0, function* () { + for (x; y; z) { + a; + } + }); +} +function forStatement1() { + return __awaiter(this, void 0, void 0, function* () { + for (yield x; y; z) { + a; + } + }); +} +function forStatement2() { + return __awaiter(this, void 0, void 0, function* () { + for (x; yield y; z) { + a; + } + }); +} +function forStatement3() { + return __awaiter(this, void 0, void 0, function* () { + for (x; y; yield z) { + a; + } + }); +} +function forStatement4() { + return __awaiter(this, void 0, void 0, function* () { + for (x; y; z) { + yield a; + } + }); +} +function forStatement5() { + return __awaiter(this, void 0, void 0, function* () { + for (var b; y; z) { + a; + } + }); +} +function forStatement6() { + return __awaiter(this, void 0, void 0, function* () { + for (var c = x; y; z) { + a; + } + }); +} diff --git a/tests/baselines/reference/es5-asyncFunctionForStatements.symbols b/tests/baselines/reference/es5-asyncFunctionForStatements(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es5-asyncFunctionForStatements.symbols rename to tests/baselines/reference/es5-asyncFunctionForStatements(target=es2015).symbols diff --git a/tests/baselines/reference/es5-asyncFunctionForStatements.types b/tests/baselines/reference/es5-asyncFunctionForStatements(target=es2015).types similarity index 100% rename from tests/baselines/reference/es5-asyncFunctionForStatements.types rename to tests/baselines/reference/es5-asyncFunctionForStatements(target=es2015).types diff --git a/tests/baselines/reference/es5-asyncFunctionForStatements.js b/tests/baselines/reference/es5-asyncFunctionForStatements(target=es5).js similarity index 100% rename from tests/baselines/reference/es5-asyncFunctionForStatements.js rename to tests/baselines/reference/es5-asyncFunctionForStatements(target=es5).js diff --git a/tests/baselines/reference/es5-asyncFunctionForStatements(target=es5).symbols b/tests/baselines/reference/es5-asyncFunctionForStatements(target=es5).symbols new file mode 100644 index 0000000000000..8c350051ad2cc --- /dev/null +++ b/tests/baselines/reference/es5-asyncFunctionForStatements(target=es5).symbols @@ -0,0 +1,81 @@ +//// [tests/cases/compiler/es5-asyncFunctionForStatements.ts] //// + +=== es5-asyncFunctionForStatements.ts === +declare var x, y, z, a, b, c; +>x : Symbol(x, Decl(es5-asyncFunctionForStatements.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionForStatements.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionForStatements.ts, 0, 17)) +>a : Symbol(a, Decl(es5-asyncFunctionForStatements.ts, 0, 20)) +>b : Symbol(b, Decl(es5-asyncFunctionForStatements.ts, 0, 23)) +>c : Symbol(c, Decl(es5-asyncFunctionForStatements.ts, 0, 26)) + +async function forStatement0() { +>forStatement0 : Symbol(forStatement0, Decl(es5-asyncFunctionForStatements.ts, 0, 29)) + + for (x; y; z) { a; } +>x : Symbol(x, Decl(es5-asyncFunctionForStatements.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionForStatements.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionForStatements.ts, 0, 17)) +>a : Symbol(a, Decl(es5-asyncFunctionForStatements.ts, 0, 20)) +} + +async function forStatement1() { +>forStatement1 : Symbol(forStatement1, Decl(es5-asyncFunctionForStatements.ts, 4, 1)) + + for (await x; y; z) { a; } +>x : Symbol(x, Decl(es5-asyncFunctionForStatements.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionForStatements.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionForStatements.ts, 0, 17)) +>a : Symbol(a, Decl(es5-asyncFunctionForStatements.ts, 0, 20)) +} + +async function forStatement2() { +>forStatement2 : Symbol(forStatement2, Decl(es5-asyncFunctionForStatements.ts, 8, 1)) + + for (x; await y; z) { a; } +>x : Symbol(x, Decl(es5-asyncFunctionForStatements.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionForStatements.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionForStatements.ts, 0, 17)) +>a : Symbol(a, Decl(es5-asyncFunctionForStatements.ts, 0, 20)) +} + +async function forStatement3() { +>forStatement3 : Symbol(forStatement3, Decl(es5-asyncFunctionForStatements.ts, 12, 1)) + + for (x; y; await z) { a; } +>x : Symbol(x, Decl(es5-asyncFunctionForStatements.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionForStatements.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionForStatements.ts, 0, 17)) +>a : Symbol(a, Decl(es5-asyncFunctionForStatements.ts, 0, 20)) +} + +async function forStatement4() { +>forStatement4 : Symbol(forStatement4, Decl(es5-asyncFunctionForStatements.ts, 16, 1)) + + for (x; y; z) { await a; } +>x : Symbol(x, Decl(es5-asyncFunctionForStatements.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionForStatements.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionForStatements.ts, 0, 17)) +>a : Symbol(a, Decl(es5-asyncFunctionForStatements.ts, 0, 20)) +} + +async function forStatement5() { +>forStatement5 : Symbol(forStatement5, Decl(es5-asyncFunctionForStatements.ts, 20, 1)) + + for (var b; y; z) { a; } +>b : Symbol(b, Decl(es5-asyncFunctionForStatements.ts, 23, 12)) +>y : Symbol(y, Decl(es5-asyncFunctionForStatements.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionForStatements.ts, 0, 17)) +>a : Symbol(a, Decl(es5-asyncFunctionForStatements.ts, 0, 20)) +} + +async function forStatement6() { +>forStatement6 : Symbol(forStatement6, Decl(es5-asyncFunctionForStatements.ts, 24, 1)) + + for (var c = x; y; z) { a; } +>c : Symbol(c, Decl(es5-asyncFunctionForStatements.ts, 27, 12)) +>x : Symbol(x, Decl(es5-asyncFunctionForStatements.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionForStatements.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionForStatements.ts, 0, 17)) +>a : Symbol(a, Decl(es5-asyncFunctionForStatements.ts, 0, 20)) +} diff --git a/tests/baselines/reference/es5-asyncFunctionForStatements(target=es5).types b/tests/baselines/reference/es5-asyncFunctionForStatements(target=es5).types new file mode 100644 index 0000000000000..f6d2f235a6c4e --- /dev/null +++ b/tests/baselines/reference/es5-asyncFunctionForStatements(target=es5).types @@ -0,0 +1,92 @@ +//// [tests/cases/compiler/es5-asyncFunctionForStatements.ts] //// + +=== es5-asyncFunctionForStatements.ts === +declare var x, y, z, a, b, c; +>x : any +>y : any +>z : any +>a : any +>b : any +>c : any + +async function forStatement0() { +>forStatement0 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + for (x; y; z) { a; } +>x : any +>y : any +>z : any +>a : any +} + +async function forStatement1() { +>forStatement1 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + for (await x; y; z) { a; } +>await x : any +>x : any +>y : any +>z : any +>a : any +} + +async function forStatement2() { +>forStatement2 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + for (x; await y; z) { a; } +>x : any +>await y : any +>y : any +>z : any +>a : any +} + +async function forStatement3() { +>forStatement3 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + for (x; y; await z) { a; } +>x : any +>y : any +>await z : any +>z : any +>a : any +} + +async function forStatement4() { +>forStatement4 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + for (x; y; z) { await a; } +>x : any +>y : any +>z : any +>await a : any +>a : any +} + +async function forStatement5() { +>forStatement5 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + for (var b; y; z) { a; } +>b : any +>y : any +>z : any +>a : any +} + +async function forStatement6() { +>forStatement6 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + for (var c = x; y; z) { a; } +>c : any +>x : any +>y : any +>z : any +>a : any +} diff --git a/tests/baselines/reference/es5-asyncFunctionHoisting(target=es2015).js b/tests/baselines/reference/es5-asyncFunctionHoisting(target=es2015).js new file mode 100644 index 0000000000000..4b412202704d1 --- /dev/null +++ b/tests/baselines/reference/es5-asyncFunctionHoisting(target=es2015).js @@ -0,0 +1,92 @@ +//// [tests/cases/compiler/es5-asyncFunctionHoisting.ts] //// + +//// [es5-asyncFunctionHoisting.ts] +declare var y; + +async function hoisting() { + var a0, a1 = 1; + function z() { + var b0, b1 = 1; + } + + if (true) { + var c0, c1 = 1; + } + + for (var a = 0; y;) { + + } + + for (var b in y) { + + } + + for (var c of y) { + + } +} + +async function hoistingWithAwait() { + var a0, a1 = 1; + + function z() { + var b0, b1 = 1; + } + + await 0; + + if (true) { + var c0, c1 = 1; + } + + for (var a = 0; y;) { + + } + + for (var b in y) { + + } + + for (var c of y) { + + } +} + + + +//// [es5-asyncFunctionHoisting.js] +function hoisting() { + return __awaiter(this, void 0, void 0, function* () { + var a0, a1 = 1; + function z() { + var b0, b1 = 1; + } + if (true) { + var c0, c1 = 1; + } + for (var a = 0; y;) { + } + for (var b in y) { + } + for (var c of y) { + } + }); +} +function hoistingWithAwait() { + return __awaiter(this, void 0, void 0, function* () { + var a0, a1 = 1; + function z() { + var b0, b1 = 1; + } + yield 0; + if (true) { + var c0, c1 = 1; + } + for (var a = 0; y;) { + } + for (var b in y) { + } + for (var c of y) { + } + }); +} diff --git a/tests/baselines/reference/es5-asyncFunctionHoisting.symbols b/tests/baselines/reference/es5-asyncFunctionHoisting(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es5-asyncFunctionHoisting.symbols rename to tests/baselines/reference/es5-asyncFunctionHoisting(target=es2015).symbols diff --git a/tests/baselines/reference/es5-asyncFunctionHoisting.types b/tests/baselines/reference/es5-asyncFunctionHoisting(target=es2015).types similarity index 100% rename from tests/baselines/reference/es5-asyncFunctionHoisting.types rename to tests/baselines/reference/es5-asyncFunctionHoisting(target=es2015).types diff --git a/tests/baselines/reference/es5-asyncFunctionHoisting.js b/tests/baselines/reference/es5-asyncFunctionHoisting(target=es5).js similarity index 100% rename from tests/baselines/reference/es5-asyncFunctionHoisting.js rename to tests/baselines/reference/es5-asyncFunctionHoisting(target=es5).js diff --git a/tests/baselines/reference/es5-asyncFunctionHoisting(target=es5).symbols b/tests/baselines/reference/es5-asyncFunctionHoisting(target=es5).symbols new file mode 100644 index 0000000000000..e249487a018d1 --- /dev/null +++ b/tests/baselines/reference/es5-asyncFunctionHoisting(target=es5).symbols @@ -0,0 +1,89 @@ +//// [tests/cases/compiler/es5-asyncFunctionHoisting.ts] //// + +=== es5-asyncFunctionHoisting.ts === +declare var y; +>y : Symbol(y, Decl(es5-asyncFunctionHoisting.ts, 0, 11)) + +async function hoisting() { +>hoisting : Symbol(hoisting, Decl(es5-asyncFunctionHoisting.ts, 0, 14)) + + var a0, a1 = 1; +>a0 : Symbol(a0, Decl(es5-asyncFunctionHoisting.ts, 3, 7)) +>a1 : Symbol(a1, Decl(es5-asyncFunctionHoisting.ts, 3, 11)) + + function z() { +>z : Symbol(z, Decl(es5-asyncFunctionHoisting.ts, 3, 19)) + + var b0, b1 = 1; +>b0 : Symbol(b0, Decl(es5-asyncFunctionHoisting.ts, 5, 11)) +>b1 : Symbol(b1, Decl(es5-asyncFunctionHoisting.ts, 5, 15)) + } + + if (true) { + var c0, c1 = 1; +>c0 : Symbol(c0, Decl(es5-asyncFunctionHoisting.ts, 9, 11)) +>c1 : Symbol(c1, Decl(es5-asyncFunctionHoisting.ts, 9, 15)) + } + + for (var a = 0; y;) { +>a : Symbol(a, Decl(es5-asyncFunctionHoisting.ts, 12, 12)) +>y : Symbol(y, Decl(es5-asyncFunctionHoisting.ts, 0, 11)) + + } + + for (var b in y) { +>b : Symbol(b, Decl(es5-asyncFunctionHoisting.ts, 16, 12)) +>y : Symbol(y, Decl(es5-asyncFunctionHoisting.ts, 0, 11)) + + } + + for (var c of y) { +>c : Symbol(c, Decl(es5-asyncFunctionHoisting.ts, 20, 12)) +>y : Symbol(y, Decl(es5-asyncFunctionHoisting.ts, 0, 11)) + + } +} + +async function hoistingWithAwait() { +>hoistingWithAwait : Symbol(hoistingWithAwait, Decl(es5-asyncFunctionHoisting.ts, 23, 1)) + + var a0, a1 = 1; +>a0 : Symbol(a0, Decl(es5-asyncFunctionHoisting.ts, 26, 7)) +>a1 : Symbol(a1, Decl(es5-asyncFunctionHoisting.ts, 26, 11)) + + function z() { +>z : Symbol(z, Decl(es5-asyncFunctionHoisting.ts, 26, 19)) + + var b0, b1 = 1; +>b0 : Symbol(b0, Decl(es5-asyncFunctionHoisting.ts, 29, 11)) +>b1 : Symbol(b1, Decl(es5-asyncFunctionHoisting.ts, 29, 15)) + } + + await 0; + + if (true) { + var c0, c1 = 1; +>c0 : Symbol(c0, Decl(es5-asyncFunctionHoisting.ts, 35, 11)) +>c1 : Symbol(c1, Decl(es5-asyncFunctionHoisting.ts, 35, 15)) + } + + for (var a = 0; y;) { +>a : Symbol(a, Decl(es5-asyncFunctionHoisting.ts, 38, 12)) +>y : Symbol(y, Decl(es5-asyncFunctionHoisting.ts, 0, 11)) + + } + + for (var b in y) { +>b : Symbol(b, Decl(es5-asyncFunctionHoisting.ts, 42, 12)) +>y : Symbol(y, Decl(es5-asyncFunctionHoisting.ts, 0, 11)) + + } + + for (var c of y) { +>c : Symbol(c, Decl(es5-asyncFunctionHoisting.ts, 46, 12)) +>y : Symbol(y, Decl(es5-asyncFunctionHoisting.ts, 0, 11)) + + } +} + + diff --git a/tests/baselines/reference/es5-asyncFunctionHoisting(target=es5).types b/tests/baselines/reference/es5-asyncFunctionHoisting(target=es5).types new file mode 100644 index 0000000000000..e51f7b65bde28 --- /dev/null +++ b/tests/baselines/reference/es5-asyncFunctionHoisting(target=es5).types @@ -0,0 +1,129 @@ +//// [tests/cases/compiler/es5-asyncFunctionHoisting.ts] //// + +=== es5-asyncFunctionHoisting.ts === +declare var y; +>y : any + +async function hoisting() { +>hoisting : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + var a0, a1 = 1; +>a0 : any +>a1 : number +> : ^^^^^^ +>1 : 1 +> : ^ + + function z() { +>z : () => void +> : ^^^^^^^^^^ + + var b0, b1 = 1; +>b0 : any +>b1 : number +> : ^^^^^^ +>1 : 1 +> : ^ + } + + if (true) { +>true : true +> : ^^^^ + + var c0, c1 = 1; +>c0 : any +>c1 : number +> : ^^^^^^ +>1 : 1 +> : ^ + } + + for (var a = 0; y;) { +>a : number +> : ^^^^^^ +>0 : 0 +> : ^ +>y : any + + } + + for (var b in y) { +>b : string +> : ^^^^^^ +>y : any + + } + + for (var c of y) { +>c : any +>y : any + + } +} + +async function hoistingWithAwait() { +>hoistingWithAwait : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + var a0, a1 = 1; +>a0 : any +>a1 : number +> : ^^^^^^ +>1 : 1 +> : ^ + + function z() { +>z : () => void +> : ^^^^^^^^^^ + + var b0, b1 = 1; +>b0 : any +>b1 : number +> : ^^^^^^ +>1 : 1 +> : ^ + } + + await 0; +>await 0 : 0 +> : ^ +>0 : 0 +> : ^ + + if (true) { +>true : true +> : ^^^^ + + var c0, c1 = 1; +>c0 : any +>c1 : number +> : ^^^^^^ +>1 : 1 +> : ^ + } + + for (var a = 0; y;) { +>a : number +> : ^^^^^^ +>0 : 0 +> : ^ +>y : any + + } + + for (var b in y) { +>b : string +> : ^^^^^^ +>y : any + + } + + for (var c of y) { +>c : any +>y : any + + } +} + + diff --git a/tests/baselines/reference/es5-asyncFunctionIfStatements(target=es2015).js b/tests/baselines/reference/es5-asyncFunctionIfStatements(target=es2015).js new file mode 100644 index 0000000000000..e1a6e2eb97c85 --- /dev/null +++ b/tests/baselines/reference/es5-asyncFunctionIfStatements(target=es2015).js @@ -0,0 +1,48 @@ +//// [tests/cases/compiler/es5-asyncFunctionIfStatements.ts] //// + +//// [es5-asyncFunctionIfStatements.ts] +declare var x, y, z, a, b, c; + +async function ifStatement1() { + if (await x) { y; } else { z; } +} + +async function ifStatement2() { + if (x) { await y; } else { z; } +} + +async function ifStatement3() { + if (x) { y; } else { await z; } +} + +//// [es5-asyncFunctionIfStatements.js] +function ifStatement1() { + return __awaiter(this, void 0, void 0, function* () { + if (yield x) { + y; + } + else { + z; + } + }); +} +function ifStatement2() { + return __awaiter(this, void 0, void 0, function* () { + if (x) { + yield y; + } + else { + z; + } + }); +} +function ifStatement3() { + return __awaiter(this, void 0, void 0, function* () { + if (x) { + y; + } + else { + yield z; + } + }); +} diff --git a/tests/baselines/reference/es5-asyncFunctionIfStatements.symbols b/tests/baselines/reference/es5-asyncFunctionIfStatements(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es5-asyncFunctionIfStatements.symbols rename to tests/baselines/reference/es5-asyncFunctionIfStatements(target=es2015).symbols diff --git a/tests/baselines/reference/es5-asyncFunctionIfStatements.types b/tests/baselines/reference/es5-asyncFunctionIfStatements(target=es2015).types similarity index 100% rename from tests/baselines/reference/es5-asyncFunctionIfStatements.types rename to tests/baselines/reference/es5-asyncFunctionIfStatements(target=es2015).types diff --git a/tests/baselines/reference/es5-asyncFunctionIfStatements.js b/tests/baselines/reference/es5-asyncFunctionIfStatements(target=es5).js similarity index 100% rename from tests/baselines/reference/es5-asyncFunctionIfStatements.js rename to tests/baselines/reference/es5-asyncFunctionIfStatements(target=es5).js diff --git a/tests/baselines/reference/es5-asyncFunctionIfStatements(target=es5).symbols b/tests/baselines/reference/es5-asyncFunctionIfStatements(target=es5).symbols new file mode 100644 index 0000000000000..b997319c89c08 --- /dev/null +++ b/tests/baselines/reference/es5-asyncFunctionIfStatements(target=es5).symbols @@ -0,0 +1,37 @@ +//// [tests/cases/compiler/es5-asyncFunctionIfStatements.ts] //// + +=== es5-asyncFunctionIfStatements.ts === +declare var x, y, z, a, b, c; +>x : Symbol(x, Decl(es5-asyncFunctionIfStatements.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionIfStatements.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionIfStatements.ts, 0, 17)) +>a : Symbol(a, Decl(es5-asyncFunctionIfStatements.ts, 0, 20)) +>b : Symbol(b, Decl(es5-asyncFunctionIfStatements.ts, 0, 23)) +>c : Symbol(c, Decl(es5-asyncFunctionIfStatements.ts, 0, 26)) + +async function ifStatement1() { +>ifStatement1 : Symbol(ifStatement1, Decl(es5-asyncFunctionIfStatements.ts, 0, 29)) + + if (await x) { y; } else { z; } +>x : Symbol(x, Decl(es5-asyncFunctionIfStatements.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionIfStatements.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionIfStatements.ts, 0, 17)) +} + +async function ifStatement2() { +>ifStatement2 : Symbol(ifStatement2, Decl(es5-asyncFunctionIfStatements.ts, 4, 1)) + + if (x) { await y; } else { z; } +>x : Symbol(x, Decl(es5-asyncFunctionIfStatements.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionIfStatements.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionIfStatements.ts, 0, 17)) +} + +async function ifStatement3() { +>ifStatement3 : Symbol(ifStatement3, Decl(es5-asyncFunctionIfStatements.ts, 8, 1)) + + if (x) { y; } else { await z; } +>x : Symbol(x, Decl(es5-asyncFunctionIfStatements.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionIfStatements.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionIfStatements.ts, 0, 17)) +} diff --git a/tests/baselines/reference/es5-asyncFunctionIfStatements(target=es5).types b/tests/baselines/reference/es5-asyncFunctionIfStatements(target=es5).types new file mode 100644 index 0000000000000..0790974d32456 --- /dev/null +++ b/tests/baselines/reference/es5-asyncFunctionIfStatements(target=es5).types @@ -0,0 +1,43 @@ +//// [tests/cases/compiler/es5-asyncFunctionIfStatements.ts] //// + +=== es5-asyncFunctionIfStatements.ts === +declare var x, y, z, a, b, c; +>x : any +>y : any +>z : any +>a : any +>b : any +>c : any + +async function ifStatement1() { +>ifStatement1 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + if (await x) { y; } else { z; } +>await x : any +>x : any +>y : any +>z : any +} + +async function ifStatement2() { +>ifStatement2 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + if (x) { await y; } else { z; } +>x : any +>await y : any +>y : any +>z : any +} + +async function ifStatement3() { +>ifStatement3 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + if (x) { y; } else { await z; } +>x : any +>y : any +>await z : any +>z : any +} diff --git a/tests/baselines/reference/es5-asyncFunctionLongObjectLiteral(target=es2015).js b/tests/baselines/reference/es5-asyncFunctionLongObjectLiteral(target=es2015).js new file mode 100644 index 0000000000000..2fb3cb9c667e0 --- /dev/null +++ b/tests/baselines/reference/es5-asyncFunctionLongObjectLiteral(target=es2015).js @@ -0,0 +1,65 @@ +//// [tests/cases/compiler/es5-asyncFunctionLongObjectLiteral.ts] //// + +//// [es5-asyncFunctionLongObjectLiteral.ts] +// the generated code from both should be similar + +const fooShort = async () => { + return { + a: await Promise.resolve(0), + b: await Promise.resolve(1), + c: await Promise.resolve(2), + d: await Promise.resolve(3), + e: await Promise.resolve(4), + }; +} + +const fooLong = async () => { + return { + a: await Promise.resolve(0), + b: await Promise.resolve(1), + c: await Promise.resolve(2), + d: await Promise.resolve(3), + e: await Promise.resolve(4), + f: await Promise.resolve(5), + g: await Promise.resolve(6), + h: await Promise.resolve(7), + i: await Promise.resolve(8), + j: await Promise.resolve(9), + }; +} + + +//// [es5-asyncFunctionLongObjectLiteral.js] +// the generated code from both should be similar +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +const fooShort = () => __awaiter(this, void 0, void 0, function* () { + return { + a: yield Promise.resolve(0), + b: yield Promise.resolve(1), + c: yield Promise.resolve(2), + d: yield Promise.resolve(3), + e: yield Promise.resolve(4), + }; +}); +const fooLong = () => __awaiter(this, void 0, void 0, function* () { + return { + a: yield Promise.resolve(0), + b: yield Promise.resolve(1), + c: yield Promise.resolve(2), + d: yield Promise.resolve(3), + e: yield Promise.resolve(4), + f: yield Promise.resolve(5), + g: yield Promise.resolve(6), + h: yield Promise.resolve(7), + i: yield Promise.resolve(8), + j: yield Promise.resolve(9), + }; +}); diff --git a/tests/baselines/reference/es5-asyncFunctionLongObjectLiteral.symbols b/tests/baselines/reference/es5-asyncFunctionLongObjectLiteral(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es5-asyncFunctionLongObjectLiteral.symbols rename to tests/baselines/reference/es5-asyncFunctionLongObjectLiteral(target=es2015).symbols diff --git a/tests/baselines/reference/es5-asyncFunctionLongObjectLiteral.types b/tests/baselines/reference/es5-asyncFunctionLongObjectLiteral(target=es2015).types similarity index 100% rename from tests/baselines/reference/es5-asyncFunctionLongObjectLiteral.types rename to tests/baselines/reference/es5-asyncFunctionLongObjectLiteral(target=es2015).types diff --git a/tests/baselines/reference/es5-asyncFunctionLongObjectLiteral.js b/tests/baselines/reference/es5-asyncFunctionLongObjectLiteral(target=es5).js similarity index 100% rename from tests/baselines/reference/es5-asyncFunctionLongObjectLiteral.js rename to tests/baselines/reference/es5-asyncFunctionLongObjectLiteral(target=es5).js diff --git a/tests/baselines/reference/es5-asyncFunctionLongObjectLiteral(target=es5).symbols b/tests/baselines/reference/es5-asyncFunctionLongObjectLiteral(target=es5).symbols new file mode 100644 index 0000000000000..ab21148dbbe32 --- /dev/null +++ b/tests/baselines/reference/es5-asyncFunctionLongObjectLiteral(target=es5).symbols @@ -0,0 +1,109 @@ +//// [tests/cases/compiler/es5-asyncFunctionLongObjectLiteral.ts] //// + +=== es5-asyncFunctionLongObjectLiteral.ts === +// the generated code from both should be similar + +const fooShort = async () => { +>fooShort : Symbol(fooShort, Decl(es5-asyncFunctionLongObjectLiteral.ts, 2, 5)) + + return { + a: await Promise.resolve(0), +>a : Symbol(a, Decl(es5-asyncFunctionLongObjectLiteral.ts, 3, 12)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) + + b: await Promise.resolve(1), +>b : Symbol(b, Decl(es5-asyncFunctionLongObjectLiteral.ts, 4, 36)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) + + c: await Promise.resolve(2), +>c : Symbol(c, Decl(es5-asyncFunctionLongObjectLiteral.ts, 5, 36)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) + + d: await Promise.resolve(3), +>d : Symbol(d, Decl(es5-asyncFunctionLongObjectLiteral.ts, 6, 36)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) + + e: await Promise.resolve(4), +>e : Symbol(e, Decl(es5-asyncFunctionLongObjectLiteral.ts, 7, 36)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) + + }; +} + +const fooLong = async () => { +>fooLong : Symbol(fooLong, Decl(es5-asyncFunctionLongObjectLiteral.ts, 12, 5)) + + return { + a: await Promise.resolve(0), +>a : Symbol(a, Decl(es5-asyncFunctionLongObjectLiteral.ts, 13, 12)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) + + b: await Promise.resolve(1), +>b : Symbol(b, Decl(es5-asyncFunctionLongObjectLiteral.ts, 14, 36)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) + + c: await Promise.resolve(2), +>c : Symbol(c, Decl(es5-asyncFunctionLongObjectLiteral.ts, 15, 36)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) + + d: await Promise.resolve(3), +>d : Symbol(d, Decl(es5-asyncFunctionLongObjectLiteral.ts, 16, 36)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) + + e: await Promise.resolve(4), +>e : Symbol(e, Decl(es5-asyncFunctionLongObjectLiteral.ts, 17, 36)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) + + f: await Promise.resolve(5), +>f : Symbol(f, Decl(es5-asyncFunctionLongObjectLiteral.ts, 18, 36)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) + + g: await Promise.resolve(6), +>g : Symbol(g, Decl(es5-asyncFunctionLongObjectLiteral.ts, 19, 36)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) + + h: await Promise.resolve(7), +>h : Symbol(h, Decl(es5-asyncFunctionLongObjectLiteral.ts, 20, 36)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) + + i: await Promise.resolve(8), +>i : Symbol(i, Decl(es5-asyncFunctionLongObjectLiteral.ts, 21, 36)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) + + j: await Promise.resolve(9), +>j : Symbol(j, Decl(es5-asyncFunctionLongObjectLiteral.ts, 22, 36)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) + + }; +} + diff --git a/tests/baselines/reference/es5-asyncFunctionLongObjectLiteral(target=es5).types b/tests/baselines/reference/es5-asyncFunctionLongObjectLiteral(target=es5).types new file mode 100644 index 0000000000000..f748106248d0e --- /dev/null +++ b/tests/baselines/reference/es5-asyncFunctionLongObjectLiteral(target=es5).types @@ -0,0 +1,271 @@ +//// [tests/cases/compiler/es5-asyncFunctionLongObjectLiteral.ts] //// + +=== es5-asyncFunctionLongObjectLiteral.ts === +// the generated code from both should be similar + +const fooShort = async () => { +>fooShort : () => Promise<{ a: number; b: number; c: number; d: number; e: number; }> +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>async () => { return { a: await Promise.resolve(0), b: await Promise.resolve(1), c: await Promise.resolve(2), d: await Promise.resolve(3), e: await Promise.resolve(4), };} : () => Promise<{ a: number; b: number; c: number; d: number; e: number; }> +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + return { +>{ a: await Promise.resolve(0), b: await Promise.resolve(1), c: await Promise.resolve(2), d: await Promise.resolve(3), e: await Promise.resolve(4), } : { a: number; b: number; c: number; d: number; e: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + a: await Promise.resolve(0), +>a : number +> : ^^^^^^ +>await Promise.resolve(0) : number +> : ^^^^^^ +>Promise.resolve(0) : Promise +> : ^^^^^^^^^^^^^^^ +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^ ^^ ^^^ ^^^ +>Promise : PromiseConstructor +> : ^^^^^^^^^^^^^^^^^^ +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^ ^^ ^^^ ^^^ +>0 : 0 +> : ^ + + b: await Promise.resolve(1), +>b : number +> : ^^^^^^ +>await Promise.resolve(1) : number +> : ^^^^^^ +>Promise.resolve(1) : Promise +> : ^^^^^^^^^^^^^^^ +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^ ^^ ^^^ ^^^ +>Promise : PromiseConstructor +> : ^^^^^^^^^^^^^^^^^^ +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^ ^^ ^^^ ^^^ +>1 : 1 +> : ^ + + c: await Promise.resolve(2), +>c : number +> : ^^^^^^ +>await Promise.resolve(2) : number +> : ^^^^^^ +>Promise.resolve(2) : Promise +> : ^^^^^^^^^^^^^^^ +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^ ^^ ^^^ ^^^ +>Promise : PromiseConstructor +> : ^^^^^^^^^^^^^^^^^^ +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^ ^^ ^^^ ^^^ +>2 : 2 +> : ^ + + d: await Promise.resolve(3), +>d : number +> : ^^^^^^ +>await Promise.resolve(3) : number +> : ^^^^^^ +>Promise.resolve(3) : Promise +> : ^^^^^^^^^^^^^^^ +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^ ^^ ^^^ ^^^ +>Promise : PromiseConstructor +> : ^^^^^^^^^^^^^^^^^^ +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^ ^^ ^^^ ^^^ +>3 : 3 +> : ^ + + e: await Promise.resolve(4), +>e : number +> : ^^^^^^ +>await Promise.resolve(4) : number +> : ^^^^^^ +>Promise.resolve(4) : Promise +> : ^^^^^^^^^^^^^^^ +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^ ^^ ^^^ ^^^ +>Promise : PromiseConstructor +> : ^^^^^^^^^^^^^^^^^^ +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^ ^^ ^^^ ^^^ +>4 : 4 +> : ^ + + }; +} + +const fooLong = async () => { +>fooLong : () => Promise<{ a: number; b: number; c: number; d: number; e: number; f: number; g: number; h: number; i: number; j: number; }> +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>async () => { return { a: await Promise.resolve(0), b: await Promise.resolve(1), c: await Promise.resolve(2), d: await Promise.resolve(3), e: await Promise.resolve(4), f: await Promise.resolve(5), g: await Promise.resolve(6), h: await Promise.resolve(7), i: await Promise.resolve(8), j: await Promise.resolve(9), };} : () => Promise<{ a: number; b: number; c: number; d: number; e: number; f: number; g: number; h: number; i: number; j: number; }> +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + return { +>{ a: await Promise.resolve(0), b: await Promise.resolve(1), c: await Promise.resolve(2), d: await Promise.resolve(3), e: await Promise.resolve(4), f: await Promise.resolve(5), g: await Promise.resolve(6), h: await Promise.resolve(7), i: await Promise.resolve(8), j: await Promise.resolve(9), } : { a: number; b: number; c: number; d: number; e: number; f: number; g: number; h: number; i: number; j: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + a: await Promise.resolve(0), +>a : number +> : ^^^^^^ +>await Promise.resolve(0) : number +> : ^^^^^^ +>Promise.resolve(0) : Promise +> : ^^^^^^^^^^^^^^^ +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^ ^^ ^^^ ^^^ +>Promise : PromiseConstructor +> : ^^^^^^^^^^^^^^^^^^ +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^ ^^ ^^^ ^^^ +>0 : 0 +> : ^ + + b: await Promise.resolve(1), +>b : number +> : ^^^^^^ +>await Promise.resolve(1) : number +> : ^^^^^^ +>Promise.resolve(1) : Promise +> : ^^^^^^^^^^^^^^^ +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^ ^^ ^^^ ^^^ +>Promise : PromiseConstructor +> : ^^^^^^^^^^^^^^^^^^ +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^ ^^ ^^^ ^^^ +>1 : 1 +> : ^ + + c: await Promise.resolve(2), +>c : number +> : ^^^^^^ +>await Promise.resolve(2) : number +> : ^^^^^^ +>Promise.resolve(2) : Promise +> : ^^^^^^^^^^^^^^^ +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^ ^^ ^^^ ^^^ +>Promise : PromiseConstructor +> : ^^^^^^^^^^^^^^^^^^ +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^ ^^ ^^^ ^^^ +>2 : 2 +> : ^ + + d: await Promise.resolve(3), +>d : number +> : ^^^^^^ +>await Promise.resolve(3) : number +> : ^^^^^^ +>Promise.resolve(3) : Promise +> : ^^^^^^^^^^^^^^^ +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^ ^^ ^^^ ^^^ +>Promise : PromiseConstructor +> : ^^^^^^^^^^^^^^^^^^ +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^ ^^ ^^^ ^^^ +>3 : 3 +> : ^ + + e: await Promise.resolve(4), +>e : number +> : ^^^^^^ +>await Promise.resolve(4) : number +> : ^^^^^^ +>Promise.resolve(4) : Promise +> : ^^^^^^^^^^^^^^^ +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^ ^^ ^^^ ^^^ +>Promise : PromiseConstructor +> : ^^^^^^^^^^^^^^^^^^ +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^ ^^ ^^^ ^^^ +>4 : 4 +> : ^ + + f: await Promise.resolve(5), +>f : number +> : ^^^^^^ +>await Promise.resolve(5) : number +> : ^^^^^^ +>Promise.resolve(5) : Promise +> : ^^^^^^^^^^^^^^^ +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^ ^^ ^^^ ^^^ +>Promise : PromiseConstructor +> : ^^^^^^^^^^^^^^^^^^ +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^ ^^ ^^^ ^^^ +>5 : 5 +> : ^ + + g: await Promise.resolve(6), +>g : number +> : ^^^^^^ +>await Promise.resolve(6) : number +> : ^^^^^^ +>Promise.resolve(6) : Promise +> : ^^^^^^^^^^^^^^^ +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^ ^^ ^^^ ^^^ +>Promise : PromiseConstructor +> : ^^^^^^^^^^^^^^^^^^ +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^ ^^ ^^^ ^^^ +>6 : 6 +> : ^ + + h: await Promise.resolve(7), +>h : number +> : ^^^^^^ +>await Promise.resolve(7) : number +> : ^^^^^^ +>Promise.resolve(7) : Promise +> : ^^^^^^^^^^^^^^^ +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^ ^^ ^^^ ^^^ +>Promise : PromiseConstructor +> : ^^^^^^^^^^^^^^^^^^ +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^ ^^ ^^^ ^^^ +>7 : 7 +> : ^ + + i: await Promise.resolve(8), +>i : number +> : ^^^^^^ +>await Promise.resolve(8) : number +> : ^^^^^^ +>Promise.resolve(8) : Promise +> : ^^^^^^^^^^^^^^^ +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^ ^^ ^^^ ^^^ +>Promise : PromiseConstructor +> : ^^^^^^^^^^^^^^^^^^ +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^ ^^ ^^^ ^^^ +>8 : 8 +> : ^ + + j: await Promise.resolve(9), +>j : number +> : ^^^^^^ +>await Promise.resolve(9) : number +> : ^^^^^^ +>Promise.resolve(9) : Promise +> : ^^^^^^^^^^^^^^^ +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^ ^^ ^^^ ^^^ +>Promise : PromiseConstructor +> : ^^^^^^^^^^^^^^^^^^ +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^ ^^ ^^^ ^^^ +>9 : 9 +> : ^ + + }; +} + diff --git a/tests/baselines/reference/es5-asyncFunctionNestedLoops(target=es2015).js b/tests/baselines/reference/es5-asyncFunctionNestedLoops(target=es2015).js new file mode 100644 index 0000000000000..7afa8b249a0e6 --- /dev/null +++ b/tests/baselines/reference/es5-asyncFunctionNestedLoops(target=es2015).js @@ -0,0 +1,31 @@ +//// [tests/cases/compiler/es5-asyncFunctionNestedLoops.ts] //// + +//// [es5-asyncFunctionNestedLoops.ts] +declare var x, y, z, a, b, c; + +async function nestedLoops() { + A: while (x) { + await y; + while (z) { + continue A; + } + while (a) { + continue; + } + } +} + +//// [es5-asyncFunctionNestedLoops.js] +function nestedLoops() { + return __awaiter(this, void 0, void 0, function* () { + A: while (x) { + yield y; + while (z) { + continue A; + } + while (a) { + continue; + } + } + }); +} diff --git a/tests/baselines/reference/es5-asyncFunctionNestedLoops.symbols b/tests/baselines/reference/es5-asyncFunctionNestedLoops(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es5-asyncFunctionNestedLoops.symbols rename to tests/baselines/reference/es5-asyncFunctionNestedLoops(target=es2015).symbols diff --git a/tests/baselines/reference/es5-asyncFunctionNestedLoops.types b/tests/baselines/reference/es5-asyncFunctionNestedLoops(target=es2015).types similarity index 100% rename from tests/baselines/reference/es5-asyncFunctionNestedLoops.types rename to tests/baselines/reference/es5-asyncFunctionNestedLoops(target=es2015).types diff --git a/tests/baselines/reference/es5-asyncFunctionNestedLoops.js b/tests/baselines/reference/es5-asyncFunctionNestedLoops(target=es5).js similarity index 100% rename from tests/baselines/reference/es5-asyncFunctionNestedLoops.js rename to tests/baselines/reference/es5-asyncFunctionNestedLoops(target=es5).js diff --git a/tests/baselines/reference/es5-asyncFunctionNestedLoops(target=es5).symbols b/tests/baselines/reference/es5-asyncFunctionNestedLoops(target=es5).symbols new file mode 100644 index 0000000000000..26820ace8a23c --- /dev/null +++ b/tests/baselines/reference/es5-asyncFunctionNestedLoops(target=es5).symbols @@ -0,0 +1,32 @@ +//// [tests/cases/compiler/es5-asyncFunctionNestedLoops.ts] //// + +=== es5-asyncFunctionNestedLoops.ts === +declare var x, y, z, a, b, c; +>x : Symbol(x, Decl(es5-asyncFunctionNestedLoops.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionNestedLoops.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionNestedLoops.ts, 0, 17)) +>a : Symbol(a, Decl(es5-asyncFunctionNestedLoops.ts, 0, 20)) +>b : Symbol(b, Decl(es5-asyncFunctionNestedLoops.ts, 0, 23)) +>c : Symbol(c, Decl(es5-asyncFunctionNestedLoops.ts, 0, 26)) + +async function nestedLoops() { +>nestedLoops : Symbol(nestedLoops, Decl(es5-asyncFunctionNestedLoops.ts, 0, 29)) + + A: while (x) { +>x : Symbol(x, Decl(es5-asyncFunctionNestedLoops.ts, 0, 11)) + + await y; +>y : Symbol(y, Decl(es5-asyncFunctionNestedLoops.ts, 0, 14)) + + while (z) { +>z : Symbol(z, Decl(es5-asyncFunctionNestedLoops.ts, 0, 17)) + + continue A; + } + while (a) { +>a : Symbol(a, Decl(es5-asyncFunctionNestedLoops.ts, 0, 20)) + + continue; + } + } +} diff --git a/tests/baselines/reference/es5-asyncFunctionNestedLoops(target=es5).types b/tests/baselines/reference/es5-asyncFunctionNestedLoops(target=es5).types new file mode 100644 index 0000000000000..2aa38df5d1d7c --- /dev/null +++ b/tests/baselines/reference/es5-asyncFunctionNestedLoops(target=es5).types @@ -0,0 +1,38 @@ +//// [tests/cases/compiler/es5-asyncFunctionNestedLoops.ts] //// + +=== es5-asyncFunctionNestedLoops.ts === +declare var x, y, z, a, b, c; +>x : any +>y : any +>z : any +>a : any +>b : any +>c : any + +async function nestedLoops() { +>nestedLoops : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + A: while (x) { +>A : any +> : ^^^ +>x : any + + await y; +>await y : any +>y : any + + while (z) { +>z : any + + continue A; +>A : any +> : ^^^ + } + while (a) { +>a : any + + continue; + } + } +} diff --git a/tests/baselines/reference/es5-asyncFunctionNewExpressions(target=es2015).js b/tests/baselines/reference/es5-asyncFunctionNewExpressions(target=es2015).js new file mode 100644 index 0000000000000..285125d2d1478 --- /dev/null +++ b/tests/baselines/reference/es5-asyncFunctionNewExpressions(target=es2015).js @@ -0,0 +1,195 @@ +//// [tests/cases/compiler/es5-asyncFunctionNewExpressions.ts] //// + +//// [es5-asyncFunctionNewExpressions.ts] +declare var x, y, z, a, b, c; + +async function newExpression0() { + await new x(y, z); +} + +async function newExpression1() { + new (await x)(y, z); +} + +async function newExpression2() { + new x(await y, z); +} + +async function newExpression3() { + new x(y, await z); +} + +async function newExpression4() { + await new x(...y, z); +} + +async function newExpression5() { + new (await x)(...y, z); +} + +async function newExpression6() { + new x(...(await y), z); +} + +async function newExpression7() { + new x(...y, await z); +} + +async function newExpression8() { + new x(await y, ...z); +} + +async function newExpression9() { + new x(y, ...(await z)); +} + +async function newExpression10() { + await new x.a(y, z); +} + +async function newExpression11() { + new (await x.a)(y, z); +} + +async function newExpression12() { + new (await x).a(y, z); +} + +async function newExpression13() { + new x.a(await y, z); +} + +async function newExpression14() { + new x.a(y, await z); +} + +async function newExpression15() { + await new x[a](y, z); +} + +async function newExpression16() { + new (await x[a])(y, z); +} + +async function newExpression17() { + new (await x)[a](y, z); +} + +async function newExpression18() { + new x[await a](y, z); +} + +async function newExpression19() { + new x[a](await y, z); +} + +async function newExpression20() { + new x[a](y, await z); +} + +//// [es5-asyncFunctionNewExpressions.js] +function newExpression0() { + return __awaiter(this, void 0, void 0, function* () { + yield new x(y, z); + }); +} +function newExpression1() { + return __awaiter(this, void 0, void 0, function* () { + new (yield x)(y, z); + }); +} +function newExpression2() { + return __awaiter(this, void 0, void 0, function* () { + new x(yield y, z); + }); +} +function newExpression3() { + return __awaiter(this, void 0, void 0, function* () { + new x(y, yield z); + }); +} +function newExpression4() { + return __awaiter(this, void 0, void 0, function* () { + yield new x(...y, z); + }); +} +function newExpression5() { + return __awaiter(this, void 0, void 0, function* () { + new (yield x)(...y, z); + }); +} +function newExpression6() { + return __awaiter(this, void 0, void 0, function* () { + new x(...(yield y), z); + }); +} +function newExpression7() { + return __awaiter(this, void 0, void 0, function* () { + new x(...y, yield z); + }); +} +function newExpression8() { + return __awaiter(this, void 0, void 0, function* () { + new x(yield y, ...z); + }); +} +function newExpression9() { + return __awaiter(this, void 0, void 0, function* () { + new x(y, ...(yield z)); + }); +} +function newExpression10() { + return __awaiter(this, void 0, void 0, function* () { + yield new x.a(y, z); + }); +} +function newExpression11() { + return __awaiter(this, void 0, void 0, function* () { + new (yield x.a)(y, z); + }); +} +function newExpression12() { + return __awaiter(this, void 0, void 0, function* () { + new (yield x).a(y, z); + }); +} +function newExpression13() { + return __awaiter(this, void 0, void 0, function* () { + new x.a(yield y, z); + }); +} +function newExpression14() { + return __awaiter(this, void 0, void 0, function* () { + new x.a(y, yield z); + }); +} +function newExpression15() { + return __awaiter(this, void 0, void 0, function* () { + yield new x[a](y, z); + }); +} +function newExpression16() { + return __awaiter(this, void 0, void 0, function* () { + new (yield x[a])(y, z); + }); +} +function newExpression17() { + return __awaiter(this, void 0, void 0, function* () { + new (yield x)[a](y, z); + }); +} +function newExpression18() { + return __awaiter(this, void 0, void 0, function* () { + new x[yield a](y, z); + }); +} +function newExpression19() { + return __awaiter(this, void 0, void 0, function* () { + new x[a](yield y, z); + }); +} +function newExpression20() { + return __awaiter(this, void 0, void 0, function* () { + new x[a](y, yield z); + }); +} diff --git a/tests/baselines/reference/es5-asyncFunctionNewExpressions.symbols b/tests/baselines/reference/es5-asyncFunctionNewExpressions(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es5-asyncFunctionNewExpressions.symbols rename to tests/baselines/reference/es5-asyncFunctionNewExpressions(target=es2015).symbols diff --git a/tests/baselines/reference/es5-asyncFunctionNewExpressions.types b/tests/baselines/reference/es5-asyncFunctionNewExpressions(target=es2015).types similarity index 100% rename from tests/baselines/reference/es5-asyncFunctionNewExpressions.types rename to tests/baselines/reference/es5-asyncFunctionNewExpressions(target=es2015).types diff --git a/tests/baselines/reference/es5-asyncFunctionNewExpressions.js b/tests/baselines/reference/es5-asyncFunctionNewExpressions(target=es5).js similarity index 100% rename from tests/baselines/reference/es5-asyncFunctionNewExpressions.js rename to tests/baselines/reference/es5-asyncFunctionNewExpressions(target=es5).js diff --git a/tests/baselines/reference/es5-asyncFunctionNewExpressions(target=es5).symbols b/tests/baselines/reference/es5-asyncFunctionNewExpressions(target=es5).symbols new file mode 100644 index 0000000000000..7bf97b4066454 --- /dev/null +++ b/tests/baselines/reference/es5-asyncFunctionNewExpressions(target=es5).symbols @@ -0,0 +1,205 @@ +//// [tests/cases/compiler/es5-asyncFunctionNewExpressions.ts] //// + +=== es5-asyncFunctionNewExpressions.ts === +declare var x, y, z, a, b, c; +>x : Symbol(x, Decl(es5-asyncFunctionNewExpressions.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionNewExpressions.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionNewExpressions.ts, 0, 17)) +>a : Symbol(a, Decl(es5-asyncFunctionNewExpressions.ts, 0, 20)) +>b : Symbol(b, Decl(es5-asyncFunctionNewExpressions.ts, 0, 23)) +>c : Symbol(c, Decl(es5-asyncFunctionNewExpressions.ts, 0, 26)) + +async function newExpression0() { +>newExpression0 : Symbol(newExpression0, Decl(es5-asyncFunctionNewExpressions.ts, 0, 29)) + + await new x(y, z); +>x : Symbol(x, Decl(es5-asyncFunctionNewExpressions.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionNewExpressions.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionNewExpressions.ts, 0, 17)) +} + +async function newExpression1() { +>newExpression1 : Symbol(newExpression1, Decl(es5-asyncFunctionNewExpressions.ts, 4, 1)) + + new (await x)(y, z); +>x : Symbol(x, Decl(es5-asyncFunctionNewExpressions.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionNewExpressions.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionNewExpressions.ts, 0, 17)) +} + +async function newExpression2() { +>newExpression2 : Symbol(newExpression2, Decl(es5-asyncFunctionNewExpressions.ts, 8, 1)) + + new x(await y, z); +>x : Symbol(x, Decl(es5-asyncFunctionNewExpressions.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionNewExpressions.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionNewExpressions.ts, 0, 17)) +} + +async function newExpression3() { +>newExpression3 : Symbol(newExpression3, Decl(es5-asyncFunctionNewExpressions.ts, 12, 1)) + + new x(y, await z); +>x : Symbol(x, Decl(es5-asyncFunctionNewExpressions.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionNewExpressions.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionNewExpressions.ts, 0, 17)) +} + +async function newExpression4() { +>newExpression4 : Symbol(newExpression4, Decl(es5-asyncFunctionNewExpressions.ts, 16, 1)) + + await new x(...y, z); +>x : Symbol(x, Decl(es5-asyncFunctionNewExpressions.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionNewExpressions.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionNewExpressions.ts, 0, 17)) +} + +async function newExpression5() { +>newExpression5 : Symbol(newExpression5, Decl(es5-asyncFunctionNewExpressions.ts, 20, 1)) + + new (await x)(...y, z); +>x : Symbol(x, Decl(es5-asyncFunctionNewExpressions.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionNewExpressions.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionNewExpressions.ts, 0, 17)) +} + +async function newExpression6() { +>newExpression6 : Symbol(newExpression6, Decl(es5-asyncFunctionNewExpressions.ts, 24, 1)) + + new x(...(await y), z); +>x : Symbol(x, Decl(es5-asyncFunctionNewExpressions.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionNewExpressions.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionNewExpressions.ts, 0, 17)) +} + +async function newExpression7() { +>newExpression7 : Symbol(newExpression7, Decl(es5-asyncFunctionNewExpressions.ts, 28, 1)) + + new x(...y, await z); +>x : Symbol(x, Decl(es5-asyncFunctionNewExpressions.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionNewExpressions.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionNewExpressions.ts, 0, 17)) +} + +async function newExpression8() { +>newExpression8 : Symbol(newExpression8, Decl(es5-asyncFunctionNewExpressions.ts, 32, 1)) + + new x(await y, ...z); +>x : Symbol(x, Decl(es5-asyncFunctionNewExpressions.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionNewExpressions.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionNewExpressions.ts, 0, 17)) +} + +async function newExpression9() { +>newExpression9 : Symbol(newExpression9, Decl(es5-asyncFunctionNewExpressions.ts, 36, 1)) + + new x(y, ...(await z)); +>x : Symbol(x, Decl(es5-asyncFunctionNewExpressions.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionNewExpressions.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionNewExpressions.ts, 0, 17)) +} + +async function newExpression10() { +>newExpression10 : Symbol(newExpression10, Decl(es5-asyncFunctionNewExpressions.ts, 40, 1)) + + await new x.a(y, z); +>x : Symbol(x, Decl(es5-asyncFunctionNewExpressions.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionNewExpressions.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionNewExpressions.ts, 0, 17)) +} + +async function newExpression11() { +>newExpression11 : Symbol(newExpression11, Decl(es5-asyncFunctionNewExpressions.ts, 44, 1)) + + new (await x.a)(y, z); +>x : Symbol(x, Decl(es5-asyncFunctionNewExpressions.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionNewExpressions.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionNewExpressions.ts, 0, 17)) +} + +async function newExpression12() { +>newExpression12 : Symbol(newExpression12, Decl(es5-asyncFunctionNewExpressions.ts, 48, 1)) + + new (await x).a(y, z); +>x : Symbol(x, Decl(es5-asyncFunctionNewExpressions.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionNewExpressions.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionNewExpressions.ts, 0, 17)) +} + +async function newExpression13() { +>newExpression13 : Symbol(newExpression13, Decl(es5-asyncFunctionNewExpressions.ts, 52, 1)) + + new x.a(await y, z); +>x : Symbol(x, Decl(es5-asyncFunctionNewExpressions.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionNewExpressions.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionNewExpressions.ts, 0, 17)) +} + +async function newExpression14() { +>newExpression14 : Symbol(newExpression14, Decl(es5-asyncFunctionNewExpressions.ts, 56, 1)) + + new x.a(y, await z); +>x : Symbol(x, Decl(es5-asyncFunctionNewExpressions.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionNewExpressions.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionNewExpressions.ts, 0, 17)) +} + +async function newExpression15() { +>newExpression15 : Symbol(newExpression15, Decl(es5-asyncFunctionNewExpressions.ts, 60, 1)) + + await new x[a](y, z); +>x : Symbol(x, Decl(es5-asyncFunctionNewExpressions.ts, 0, 11)) +>a : Symbol(a, Decl(es5-asyncFunctionNewExpressions.ts, 0, 20)) +>y : Symbol(y, Decl(es5-asyncFunctionNewExpressions.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionNewExpressions.ts, 0, 17)) +} + +async function newExpression16() { +>newExpression16 : Symbol(newExpression16, Decl(es5-asyncFunctionNewExpressions.ts, 64, 1)) + + new (await x[a])(y, z); +>x : Symbol(x, Decl(es5-asyncFunctionNewExpressions.ts, 0, 11)) +>a : Symbol(a, Decl(es5-asyncFunctionNewExpressions.ts, 0, 20)) +>y : Symbol(y, Decl(es5-asyncFunctionNewExpressions.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionNewExpressions.ts, 0, 17)) +} + +async function newExpression17() { +>newExpression17 : Symbol(newExpression17, Decl(es5-asyncFunctionNewExpressions.ts, 68, 1)) + + new (await x)[a](y, z); +>x : Symbol(x, Decl(es5-asyncFunctionNewExpressions.ts, 0, 11)) +>a : Symbol(a, Decl(es5-asyncFunctionNewExpressions.ts, 0, 20)) +>y : Symbol(y, Decl(es5-asyncFunctionNewExpressions.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionNewExpressions.ts, 0, 17)) +} + +async function newExpression18() { +>newExpression18 : Symbol(newExpression18, Decl(es5-asyncFunctionNewExpressions.ts, 72, 1)) + + new x[await a](y, z); +>x : Symbol(x, Decl(es5-asyncFunctionNewExpressions.ts, 0, 11)) +>a : Symbol(a, Decl(es5-asyncFunctionNewExpressions.ts, 0, 20)) +>y : Symbol(y, Decl(es5-asyncFunctionNewExpressions.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionNewExpressions.ts, 0, 17)) +} + +async function newExpression19() { +>newExpression19 : Symbol(newExpression19, Decl(es5-asyncFunctionNewExpressions.ts, 76, 1)) + + new x[a](await y, z); +>x : Symbol(x, Decl(es5-asyncFunctionNewExpressions.ts, 0, 11)) +>a : Symbol(a, Decl(es5-asyncFunctionNewExpressions.ts, 0, 20)) +>y : Symbol(y, Decl(es5-asyncFunctionNewExpressions.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionNewExpressions.ts, 0, 17)) +} + +async function newExpression20() { +>newExpression20 : Symbol(newExpression20, Decl(es5-asyncFunctionNewExpressions.ts, 80, 1)) + + new x[a](y, await z); +>x : Symbol(x, Decl(es5-asyncFunctionNewExpressions.ts, 0, 11)) +>a : Symbol(a, Decl(es5-asyncFunctionNewExpressions.ts, 0, 20)) +>y : Symbol(y, Decl(es5-asyncFunctionNewExpressions.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionNewExpressions.ts, 0, 17)) +} diff --git a/tests/baselines/reference/es5-asyncFunctionNewExpressions(target=es5).types b/tests/baselines/reference/es5-asyncFunctionNewExpressions(target=es5).types new file mode 100644 index 0000000000000..5bc8b358a23be --- /dev/null +++ b/tests/baselines/reference/es5-asyncFunctionNewExpressions(target=es5).types @@ -0,0 +1,308 @@ +//// [tests/cases/compiler/es5-asyncFunctionNewExpressions.ts] //// + +=== es5-asyncFunctionNewExpressions.ts === +declare var x, y, z, a, b, c; +>x : any +>y : any +>z : any +>a : any +>b : any +>c : any + +async function newExpression0() { +>newExpression0 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + await new x(y, z); +>await new x(y, z) : any +>new x(y, z) : any +>x : any +>y : any +>z : any +} + +async function newExpression1() { +>newExpression1 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + new (await x)(y, z); +>new (await x)(y, z) : any +>(await x) : any +>await x : any +>x : any +>y : any +>z : any +} + +async function newExpression2() { +>newExpression2 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + new x(await y, z); +>new x(await y, z) : any +>x : any +>await y : any +>y : any +>z : any +} + +async function newExpression3() { +>newExpression3 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + new x(y, await z); +>new x(y, await z) : any +>x : any +>y : any +>await z : any +>z : any +} + +async function newExpression4() { +>newExpression4 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + await new x(...y, z); +>await new x(...y, z) : any +>new x(...y, z) : any +>x : any +>...y : any +>y : any +>z : any +} + +async function newExpression5() { +>newExpression5 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + new (await x)(...y, z); +>new (await x)(...y, z) : any +>(await x) : any +>await x : any +>x : any +>...y : any +>y : any +>z : any +} + +async function newExpression6() { +>newExpression6 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + new x(...(await y), z); +>new x(...(await y), z) : any +>x : any +>...(await y) : any +>(await y) : any +>await y : any +>y : any +>z : any +} + +async function newExpression7() { +>newExpression7 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + new x(...y, await z); +>new x(...y, await z) : any +>x : any +>...y : any +>y : any +>await z : any +>z : any +} + +async function newExpression8() { +>newExpression8 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + new x(await y, ...z); +>new x(await y, ...z) : any +>x : any +>await y : any +>y : any +>...z : any +>z : any +} + +async function newExpression9() { +>newExpression9 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + new x(y, ...(await z)); +>new x(y, ...(await z)) : any +>x : any +>y : any +>...(await z) : any +>(await z) : any +>await z : any +>z : any +} + +async function newExpression10() { +>newExpression10 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + await new x.a(y, z); +>await new x.a(y, z) : any +>new x.a(y, z) : any +>x.a : any +>x : any +> : ^^^ +>a : any +> : ^^^ +>y : any +>z : any +} + +async function newExpression11() { +>newExpression11 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + new (await x.a)(y, z); +>new (await x.a)(y, z) : any +>(await x.a) : any +>await x.a : any +>x.a : any +>x : any +> : ^^^ +>a : any +> : ^^^ +>y : any +>z : any +} + +async function newExpression12() { +>newExpression12 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + new (await x).a(y, z); +>new (await x).a(y, z) : any +>(await x).a : any +>(await x) : any +> : ^^^ +>await x : any +>x : any +>a : any +> : ^^^ +>y : any +>z : any +} + +async function newExpression13() { +>newExpression13 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + new x.a(await y, z); +>new x.a(await y, z) : any +>x.a : any +>x : any +> : ^^^ +>a : any +> : ^^^ +>await y : any +>y : any +>z : any +} + +async function newExpression14() { +>newExpression14 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + new x.a(y, await z); +>new x.a(y, await z) : any +>x.a : any +>x : any +> : ^^^ +>a : any +> : ^^^ +>y : any +>await z : any +>z : any +} + +async function newExpression15() { +>newExpression15 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + await new x[a](y, z); +>await new x[a](y, z) : any +>new x[a](y, z) : any +>x[a] : any +>x : any +>a : any +>y : any +>z : any +} + +async function newExpression16() { +>newExpression16 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + new (await x[a])(y, z); +>new (await x[a])(y, z) : any +>(await x[a]) : any +>await x[a] : any +>x[a] : any +>x : any +>a : any +>y : any +>z : any +} + +async function newExpression17() { +>newExpression17 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + new (await x)[a](y, z); +>new (await x)[a](y, z) : any +>(await x)[a] : any +>(await x) : any +>await x : any +>x : any +>a : any +>y : any +>z : any +} + +async function newExpression18() { +>newExpression18 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + new x[await a](y, z); +>new x[await a](y, z) : any +>x[await a] : any +>x : any +>await a : any +>a : any +>y : any +>z : any +} + +async function newExpression19() { +>newExpression19 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + new x[a](await y, z); +>new x[a](await y, z) : any +>x[a] : any +>x : any +>a : any +>await y : any +>y : any +>z : any +} + +async function newExpression20() { +>newExpression20 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + new x[a](y, await z); +>new x[a](y, await z) : any +>x[a] : any +>x : any +>a : any +>y : any +>await z : any +>z : any +} diff --git a/tests/baselines/reference/es5-asyncFunctionObjectLiterals(target=es2015).js b/tests/baselines/reference/es5-asyncFunctionObjectLiterals(target=es2015).js new file mode 100644 index 0000000000000..2ba65e0e743ae --- /dev/null +++ b/tests/baselines/reference/es5-asyncFunctionObjectLiterals(target=es2015).js @@ -0,0 +1,111 @@ +//// [tests/cases/compiler/es5-asyncFunctionObjectLiterals.ts] //// + +//// [es5-asyncFunctionObjectLiterals.ts] +declare var x, y, z, a, b, c; + +async function objectLiteral0() { + x = { + a: await y, + b: z + }; +} + +async function objectLiteral1() { + x = { + a: y, + b: await z + }; +} + +async function objectLiteral2() { + x = { + [await a]: y, + b: z + }; +} + +async function objectLiteral3() { + x = { + [a]: await y, + b: z + }; +} + +async function objectLiteral4() { + x = { + a: await y, + [b]: z + }; +} + +async function objectLiteral5() { + x = { + a: y, + [await b]: z + }; +} + +async function objectLiteral6() { + x = { + a: y, + [b]: await z + }; +} + +//// [es5-asyncFunctionObjectLiterals.js] +function objectLiteral0() { + return __awaiter(this, void 0, void 0, function* () { + x = { + a: yield y, + b: z + }; + }); +} +function objectLiteral1() { + return __awaiter(this, void 0, void 0, function* () { + x = { + a: y, + b: yield z + }; + }); +} +function objectLiteral2() { + return __awaiter(this, void 0, void 0, function* () { + x = { + [yield a]: y, + b: z + }; + }); +} +function objectLiteral3() { + return __awaiter(this, void 0, void 0, function* () { + x = { + [a]: yield y, + b: z + }; + }); +} +function objectLiteral4() { + return __awaiter(this, void 0, void 0, function* () { + x = { + a: yield y, + [b]: z + }; + }); +} +function objectLiteral5() { + return __awaiter(this, void 0, void 0, function* () { + x = { + a: y, + [yield b]: z + }; + }); +} +function objectLiteral6() { + return __awaiter(this, void 0, void 0, function* () { + x = { + a: y, + [b]: yield z + }; + }); +} diff --git a/tests/baselines/reference/es5-asyncFunctionObjectLiterals.symbols b/tests/baselines/reference/es5-asyncFunctionObjectLiterals(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es5-asyncFunctionObjectLiterals.symbols rename to tests/baselines/reference/es5-asyncFunctionObjectLiterals(target=es2015).symbols diff --git a/tests/baselines/reference/es5-asyncFunctionObjectLiterals.types b/tests/baselines/reference/es5-asyncFunctionObjectLiterals(target=es2015).types similarity index 100% rename from tests/baselines/reference/es5-asyncFunctionObjectLiterals.types rename to tests/baselines/reference/es5-asyncFunctionObjectLiterals(target=es2015).types diff --git a/tests/baselines/reference/es5-asyncFunctionObjectLiterals.js b/tests/baselines/reference/es5-asyncFunctionObjectLiterals(target=es5).js similarity index 100% rename from tests/baselines/reference/es5-asyncFunctionObjectLiterals.js rename to tests/baselines/reference/es5-asyncFunctionObjectLiterals(target=es5).js diff --git a/tests/baselines/reference/es5-asyncFunctionObjectLiterals(target=es5).symbols b/tests/baselines/reference/es5-asyncFunctionObjectLiterals(target=es5).symbols new file mode 100644 index 0000000000000..b9406833f8a9c --- /dev/null +++ b/tests/baselines/reference/es5-asyncFunctionObjectLiterals(target=es5).symbols @@ -0,0 +1,134 @@ +//// [tests/cases/compiler/es5-asyncFunctionObjectLiterals.ts] //// + +=== es5-asyncFunctionObjectLiterals.ts === +declare var x, y, z, a, b, c; +>x : Symbol(x, Decl(es5-asyncFunctionObjectLiterals.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionObjectLiterals.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionObjectLiterals.ts, 0, 17)) +>a : Symbol(a, Decl(es5-asyncFunctionObjectLiterals.ts, 0, 20)) +>b : Symbol(b, Decl(es5-asyncFunctionObjectLiterals.ts, 0, 23)) +>c : Symbol(c, Decl(es5-asyncFunctionObjectLiterals.ts, 0, 26)) + +async function objectLiteral0() { +>objectLiteral0 : Symbol(objectLiteral0, Decl(es5-asyncFunctionObjectLiterals.ts, 0, 29)) + + x = { +>x : Symbol(x, Decl(es5-asyncFunctionObjectLiterals.ts, 0, 11)) + + a: await y, +>a : Symbol(a, Decl(es5-asyncFunctionObjectLiterals.ts, 3, 9)) +>y : Symbol(y, Decl(es5-asyncFunctionObjectLiterals.ts, 0, 14)) + + b: z +>b : Symbol(b, Decl(es5-asyncFunctionObjectLiterals.ts, 4, 19)) +>z : Symbol(z, Decl(es5-asyncFunctionObjectLiterals.ts, 0, 17)) + + }; +} + +async function objectLiteral1() { +>objectLiteral1 : Symbol(objectLiteral1, Decl(es5-asyncFunctionObjectLiterals.ts, 7, 1)) + + x = { +>x : Symbol(x, Decl(es5-asyncFunctionObjectLiterals.ts, 0, 11)) + + a: y, +>a : Symbol(a, Decl(es5-asyncFunctionObjectLiterals.ts, 10, 9)) +>y : Symbol(y, Decl(es5-asyncFunctionObjectLiterals.ts, 0, 14)) + + b: await z +>b : Symbol(b, Decl(es5-asyncFunctionObjectLiterals.ts, 11, 13)) +>z : Symbol(z, Decl(es5-asyncFunctionObjectLiterals.ts, 0, 17)) + + }; +} + +async function objectLiteral2() { +>objectLiteral2 : Symbol(objectLiteral2, Decl(es5-asyncFunctionObjectLiterals.ts, 14, 1)) + + x = { +>x : Symbol(x, Decl(es5-asyncFunctionObjectLiterals.ts, 0, 11)) + + [await a]: y, +>[await a] : Symbol([await a], Decl(es5-asyncFunctionObjectLiterals.ts, 17, 9)) +>a : Symbol(a, Decl(es5-asyncFunctionObjectLiterals.ts, 0, 20)) +>y : Symbol(y, Decl(es5-asyncFunctionObjectLiterals.ts, 0, 14)) + + b: z +>b : Symbol(b, Decl(es5-asyncFunctionObjectLiterals.ts, 18, 21)) +>z : Symbol(z, Decl(es5-asyncFunctionObjectLiterals.ts, 0, 17)) + + }; +} + +async function objectLiteral3() { +>objectLiteral3 : Symbol(objectLiteral3, Decl(es5-asyncFunctionObjectLiterals.ts, 21, 1)) + + x = { +>x : Symbol(x, Decl(es5-asyncFunctionObjectLiterals.ts, 0, 11)) + + [a]: await y, +>[a] : Symbol([a], Decl(es5-asyncFunctionObjectLiterals.ts, 24, 9)) +>a : Symbol(a, Decl(es5-asyncFunctionObjectLiterals.ts, 0, 20)) +>y : Symbol(y, Decl(es5-asyncFunctionObjectLiterals.ts, 0, 14)) + + b: z +>b : Symbol(b, Decl(es5-asyncFunctionObjectLiterals.ts, 25, 21)) +>z : Symbol(z, Decl(es5-asyncFunctionObjectLiterals.ts, 0, 17)) + + }; +} + +async function objectLiteral4() { +>objectLiteral4 : Symbol(objectLiteral4, Decl(es5-asyncFunctionObjectLiterals.ts, 28, 1)) + + x = { +>x : Symbol(x, Decl(es5-asyncFunctionObjectLiterals.ts, 0, 11)) + + a: await y, +>a : Symbol(a, Decl(es5-asyncFunctionObjectLiterals.ts, 31, 9)) +>y : Symbol(y, Decl(es5-asyncFunctionObjectLiterals.ts, 0, 14)) + + [b]: z +>[b] : Symbol([b], Decl(es5-asyncFunctionObjectLiterals.ts, 32, 19)) +>b : Symbol(b, Decl(es5-asyncFunctionObjectLiterals.ts, 0, 23)) +>z : Symbol(z, Decl(es5-asyncFunctionObjectLiterals.ts, 0, 17)) + + }; +} + +async function objectLiteral5() { +>objectLiteral5 : Symbol(objectLiteral5, Decl(es5-asyncFunctionObjectLiterals.ts, 35, 1)) + + x = { +>x : Symbol(x, Decl(es5-asyncFunctionObjectLiterals.ts, 0, 11)) + + a: y, +>a : Symbol(a, Decl(es5-asyncFunctionObjectLiterals.ts, 38, 9)) +>y : Symbol(y, Decl(es5-asyncFunctionObjectLiterals.ts, 0, 14)) + + [await b]: z +>[await b] : Symbol([await b], Decl(es5-asyncFunctionObjectLiterals.ts, 39, 13)) +>b : Symbol(b, Decl(es5-asyncFunctionObjectLiterals.ts, 0, 23)) +>z : Symbol(z, Decl(es5-asyncFunctionObjectLiterals.ts, 0, 17)) + + }; +} + +async function objectLiteral6() { +>objectLiteral6 : Symbol(objectLiteral6, Decl(es5-asyncFunctionObjectLiterals.ts, 42, 1)) + + x = { +>x : Symbol(x, Decl(es5-asyncFunctionObjectLiterals.ts, 0, 11)) + + a: y, +>a : Symbol(a, Decl(es5-asyncFunctionObjectLiterals.ts, 45, 9)) +>y : Symbol(y, Decl(es5-asyncFunctionObjectLiterals.ts, 0, 14)) + + [b]: await z +>[b] : Symbol([b], Decl(es5-asyncFunctionObjectLiterals.ts, 46, 13)) +>b : Symbol(b, Decl(es5-asyncFunctionObjectLiterals.ts, 0, 23)) +>z : Symbol(z, Decl(es5-asyncFunctionObjectLiterals.ts, 0, 17)) + + }; +} diff --git a/tests/baselines/reference/es5-asyncFunctionObjectLiterals(target=es5).types b/tests/baselines/reference/es5-asyncFunctionObjectLiterals(target=es5).types new file mode 100644 index 0000000000000..5440253681124 --- /dev/null +++ b/tests/baselines/reference/es5-asyncFunctionObjectLiterals(target=es5).types @@ -0,0 +1,176 @@ +//// [tests/cases/compiler/es5-asyncFunctionObjectLiterals.ts] //// + +=== es5-asyncFunctionObjectLiterals.ts === +declare var x, y, z, a, b, c; +>x : any +>y : any +>z : any +>a : any +>b : any +>c : any + +async function objectLiteral0() { +>objectLiteral0 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + x = { +>x = { a: await y, b: z } : { a: any; b: any; } +> : ^^^^^^^^^^^^^^^^^^^ +>x : any +>{ a: await y, b: z } : { a: any; b: any; } +> : ^^^^^^^^^^^^^^^^^^^ + + a: await y, +>a : any +>await y : any +>y : any + + b: z +>b : any +>z : any + + }; +} + +async function objectLiteral1() { +>objectLiteral1 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + x = { +>x = { a: y, b: await z } : { a: any; b: any; } +> : ^^^^^^^^^^^^^^^^^^^ +>x : any +>{ a: y, b: await z } : { a: any; b: any; } +> : ^^^^^^^^^^^^^^^^^^^ + + a: y, +>a : any +>y : any + + b: await z +>b : any +>await z : any +>z : any + + }; +} + +async function objectLiteral2() { +>objectLiteral2 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + x = { +>x = { [await a]: y, b: z } : { [x: number]: any; b: any; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>x : any +>{ [await a]: y, b: z } : { [x: number]: any; b: any; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + [await a]: y, +>[await a] : any +>await a : any +>a : any +>y : any + + b: z +>b : any +>z : any + + }; +} + +async function objectLiteral3() { +>objectLiteral3 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + x = { +>x = { [a]: await y, b: z } : { [a]: any; b: any; } +> : ^^ ^^^ ^^^^^^^^^^ +>x : any +>{ [a]: await y, b: z } : { [a]: any; b: any; } +> : ^^ ^^^ ^^^^^^^^^^ + + [a]: await y, +>[a] : any +>a : any +>await y : any +>y : any + + b: z +>b : any +>z : any + + }; +} + +async function objectLiteral4() { +>objectLiteral4 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + x = { +>x = { a: await y, [b]: z } : { [b]: any; a: any; } +> : ^^ ^^^ ^^^^^^^^^^ +>x : any +>{ a: await y, [b]: z } : { [b]: any; a: any; } +> : ^^ ^^^ ^^^^^^^^^^ + + a: await y, +>a : any +>await y : any +>y : any + + [b]: z +>[b] : any +>b : any +>z : any + + }; +} + +async function objectLiteral5() { +>objectLiteral5 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + x = { +>x = { a: y, [await b]: z } : { [x: number]: any; a: any; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>x : any +>{ a: y, [await b]: z } : { [x: number]: any; a: any; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + a: y, +>a : any +>y : any + + [await b]: z +>[await b] : any +>await b : any +>b : any +>z : any + + }; +} + +async function objectLiteral6() { +>objectLiteral6 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + x = { +>x = { a: y, [b]: await z } : { [b]: any; a: any; } +> : ^^ ^^^ ^^^^^^^^^^ +>x : any +>{ a: y, [b]: await z } : { [b]: any; a: any; } +> : ^^ ^^^ ^^^^^^^^^^ + + a: y, +>a : any +>y : any + + [b]: await z +>[b] : any +>b : any +>await z : any +>z : any + + }; +} diff --git a/tests/baselines/reference/es5-asyncFunctionPropertyAccess(target=es2015).js b/tests/baselines/reference/es5-asyncFunctionPropertyAccess(target=es2015).js new file mode 100644 index 0000000000000..d54d5de94b873 --- /dev/null +++ b/tests/baselines/reference/es5-asyncFunctionPropertyAccess(target=es2015).js @@ -0,0 +1,33 @@ +//// [tests/cases/compiler/es5-asyncFunctionPropertyAccess.ts] //// + +//// [es5-asyncFunctionPropertyAccess.ts] +declare var x, y, z, a, b, c; + +async function propertyAccess0() { + y = await x.a; +} + +async function propertyAccess1() { + y = (await x).a; +} + +async function callExpression0() { + await x(y, z); +} + +//// [es5-asyncFunctionPropertyAccess.js] +function propertyAccess0() { + return __awaiter(this, void 0, void 0, function* () { + y = yield x.a; + }); +} +function propertyAccess1() { + return __awaiter(this, void 0, void 0, function* () { + y = (yield x).a; + }); +} +function callExpression0() { + return __awaiter(this, void 0, void 0, function* () { + yield x(y, z); + }); +} diff --git a/tests/baselines/reference/es5-asyncFunctionPropertyAccess.symbols b/tests/baselines/reference/es5-asyncFunctionPropertyAccess(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es5-asyncFunctionPropertyAccess.symbols rename to tests/baselines/reference/es5-asyncFunctionPropertyAccess(target=es2015).symbols diff --git a/tests/baselines/reference/es5-asyncFunctionPropertyAccess.types b/tests/baselines/reference/es5-asyncFunctionPropertyAccess(target=es2015).types similarity index 100% rename from tests/baselines/reference/es5-asyncFunctionPropertyAccess.types rename to tests/baselines/reference/es5-asyncFunctionPropertyAccess(target=es2015).types diff --git a/tests/baselines/reference/es5-asyncFunctionPropertyAccess.js b/tests/baselines/reference/es5-asyncFunctionPropertyAccess(target=es5).js similarity index 100% rename from tests/baselines/reference/es5-asyncFunctionPropertyAccess.js rename to tests/baselines/reference/es5-asyncFunctionPropertyAccess(target=es5).js diff --git a/tests/baselines/reference/es5-asyncFunctionPropertyAccess(target=es5).symbols b/tests/baselines/reference/es5-asyncFunctionPropertyAccess(target=es5).symbols new file mode 100644 index 0000000000000..92554cdf201c6 --- /dev/null +++ b/tests/baselines/reference/es5-asyncFunctionPropertyAccess(target=es5).symbols @@ -0,0 +1,35 @@ +//// [tests/cases/compiler/es5-asyncFunctionPropertyAccess.ts] //// + +=== es5-asyncFunctionPropertyAccess.ts === +declare var x, y, z, a, b, c; +>x : Symbol(x, Decl(es5-asyncFunctionPropertyAccess.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionPropertyAccess.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionPropertyAccess.ts, 0, 17)) +>a : Symbol(a, Decl(es5-asyncFunctionPropertyAccess.ts, 0, 20)) +>b : Symbol(b, Decl(es5-asyncFunctionPropertyAccess.ts, 0, 23)) +>c : Symbol(c, Decl(es5-asyncFunctionPropertyAccess.ts, 0, 26)) + +async function propertyAccess0() { +>propertyAccess0 : Symbol(propertyAccess0, Decl(es5-asyncFunctionPropertyAccess.ts, 0, 29)) + + y = await x.a; +>y : Symbol(y, Decl(es5-asyncFunctionPropertyAccess.ts, 0, 14)) +>x : Symbol(x, Decl(es5-asyncFunctionPropertyAccess.ts, 0, 11)) +} + +async function propertyAccess1() { +>propertyAccess1 : Symbol(propertyAccess1, Decl(es5-asyncFunctionPropertyAccess.ts, 4, 1)) + + y = (await x).a; +>y : Symbol(y, Decl(es5-asyncFunctionPropertyAccess.ts, 0, 14)) +>x : Symbol(x, Decl(es5-asyncFunctionPropertyAccess.ts, 0, 11)) +} + +async function callExpression0() { +>callExpression0 : Symbol(callExpression0, Decl(es5-asyncFunctionPropertyAccess.ts, 8, 1)) + + await x(y, z); +>x : Symbol(x, Decl(es5-asyncFunctionPropertyAccess.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionPropertyAccess.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionPropertyAccess.ts, 0, 17)) +} diff --git a/tests/baselines/reference/es5-asyncFunctionPropertyAccess(target=es5).types b/tests/baselines/reference/es5-asyncFunctionPropertyAccess(target=es5).types new file mode 100644 index 0000000000000..fa213e5ec03b5 --- /dev/null +++ b/tests/baselines/reference/es5-asyncFunctionPropertyAccess(target=es5).types @@ -0,0 +1,53 @@ +//// [tests/cases/compiler/es5-asyncFunctionPropertyAccess.ts] //// + +=== es5-asyncFunctionPropertyAccess.ts === +declare var x, y, z, a, b, c; +>x : any +>y : any +>z : any +>a : any +>b : any +>c : any + +async function propertyAccess0() { +>propertyAccess0 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + y = await x.a; +>y = await x.a : any +>y : any +>await x.a : any +>x.a : any +>x : any +> : ^^^ +>a : any +> : ^^^ +} + +async function propertyAccess1() { +>propertyAccess1 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + y = (await x).a; +>y = (await x).a : any +>y : any +>(await x).a : any +>(await x) : any +> : ^^^ +>await x : any +>x : any +>a : any +> : ^^^ +} + +async function callExpression0() { +>callExpression0 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + await x(y, z); +>await x(y, z) : any +>x(y, z) : any +>x : any +>y : any +>z : any +} diff --git a/tests/baselines/reference/es5-asyncFunctionReturnStatements(target=es2015).js b/tests/baselines/reference/es5-asyncFunctionReturnStatements(target=es2015).js new file mode 100644 index 0000000000000..e215f5633c807 --- /dev/null +++ b/tests/baselines/reference/es5-asyncFunctionReturnStatements(target=es2015).js @@ -0,0 +1,68 @@ +//// [tests/cases/compiler/es5-asyncFunctionReturnStatements.ts] //// + +//// [es5-asyncFunctionReturnStatements.ts] +declare var x, y, z, a, b, c; + +async function returnStatement0(): Promise { + return; +} + +async function returnStatement1(): Promise { + return x; +} + +async function returnStatement2(): Promise { + return await x; +} + +async function returnStatement3(): Promise { + { return; } +} + +async function returnStatement4(): Promise { + await x; + { return; } +} + +async function returnStatement5(): Promise{ + { return await x; } +} + +//// [es5-asyncFunctionReturnStatements.js] +function returnStatement0() { + return __awaiter(this, void 0, void 0, function* () { + return; + }); +} +function returnStatement1() { + return __awaiter(this, void 0, void 0, function* () { + return x; + }); +} +function returnStatement2() { + return __awaiter(this, void 0, void 0, function* () { + return yield x; + }); +} +function returnStatement3() { + return __awaiter(this, void 0, void 0, function* () { + { + return; + } + }); +} +function returnStatement4() { + return __awaiter(this, void 0, void 0, function* () { + yield x; + { + return; + } + }); +} +function returnStatement5() { + return __awaiter(this, void 0, void 0, function* () { + { + return yield x; + } + }); +} diff --git a/tests/baselines/reference/es5-asyncFunctionReturnStatements.symbols b/tests/baselines/reference/es5-asyncFunctionReturnStatements(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es5-asyncFunctionReturnStatements.symbols rename to tests/baselines/reference/es5-asyncFunctionReturnStatements(target=es2015).symbols diff --git a/tests/baselines/reference/es5-asyncFunctionReturnStatements.types b/tests/baselines/reference/es5-asyncFunctionReturnStatements(target=es2015).types similarity index 100% rename from tests/baselines/reference/es5-asyncFunctionReturnStatements.types rename to tests/baselines/reference/es5-asyncFunctionReturnStatements(target=es2015).types diff --git a/tests/baselines/reference/es5-asyncFunctionReturnStatements.js b/tests/baselines/reference/es5-asyncFunctionReturnStatements(target=es5).js similarity index 100% rename from tests/baselines/reference/es5-asyncFunctionReturnStatements.js rename to tests/baselines/reference/es5-asyncFunctionReturnStatements(target=es5).js diff --git a/tests/baselines/reference/es5-asyncFunctionReturnStatements(target=es5).symbols b/tests/baselines/reference/es5-asyncFunctionReturnStatements(target=es5).symbols new file mode 100644 index 0000000000000..8e3e3de19eeb6 --- /dev/null +++ b/tests/baselines/reference/es5-asyncFunctionReturnStatements(target=es5).symbols @@ -0,0 +1,58 @@ +//// [tests/cases/compiler/es5-asyncFunctionReturnStatements.ts] //// + +=== es5-asyncFunctionReturnStatements.ts === +declare var x, y, z, a, b, c; +>x : Symbol(x, Decl(es5-asyncFunctionReturnStatements.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionReturnStatements.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionReturnStatements.ts, 0, 17)) +>a : Symbol(a, Decl(es5-asyncFunctionReturnStatements.ts, 0, 20)) +>b : Symbol(b, Decl(es5-asyncFunctionReturnStatements.ts, 0, 23)) +>c : Symbol(c, Decl(es5-asyncFunctionReturnStatements.ts, 0, 26)) + +async function returnStatement0(): Promise { +>returnStatement0 : Symbol(returnStatement0, Decl(es5-asyncFunctionReturnStatements.ts, 0, 29)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) + + return; +} + +async function returnStatement1(): Promise { +>returnStatement1 : Symbol(returnStatement1, Decl(es5-asyncFunctionReturnStatements.ts, 4, 1)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) + + return x; +>x : Symbol(x, Decl(es5-asyncFunctionReturnStatements.ts, 0, 11)) +} + +async function returnStatement2(): Promise { +>returnStatement2 : Symbol(returnStatement2, Decl(es5-asyncFunctionReturnStatements.ts, 8, 1)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) + + return await x; +>x : Symbol(x, Decl(es5-asyncFunctionReturnStatements.ts, 0, 11)) +} + +async function returnStatement3(): Promise { +>returnStatement3 : Symbol(returnStatement3, Decl(es5-asyncFunctionReturnStatements.ts, 12, 1)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) + + { return; } +} + +async function returnStatement4(): Promise { +>returnStatement4 : Symbol(returnStatement4, Decl(es5-asyncFunctionReturnStatements.ts, 16, 1)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) + + await x; +>x : Symbol(x, Decl(es5-asyncFunctionReturnStatements.ts, 0, 11)) + + { return; } +} + +async function returnStatement5(): Promise{ +>returnStatement5 : Symbol(returnStatement5, Decl(es5-asyncFunctionReturnStatements.ts, 21, 1)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) + + { return await x; } +>x : Symbol(x, Decl(es5-asyncFunctionReturnStatements.ts, 0, 11)) +} diff --git a/tests/baselines/reference/es5-asyncFunctionReturnStatements(target=es5).types b/tests/baselines/reference/es5-asyncFunctionReturnStatements(target=es5).types new file mode 100644 index 0000000000000..225b01e2688a1 --- /dev/null +++ b/tests/baselines/reference/es5-asyncFunctionReturnStatements(target=es5).types @@ -0,0 +1,61 @@ +//// [tests/cases/compiler/es5-asyncFunctionReturnStatements.ts] //// + +=== es5-asyncFunctionReturnStatements.ts === +declare var x, y, z, a, b, c; +>x : any +>y : any +>z : any +>a : any +>b : any +>c : any + +async function returnStatement0(): Promise { +>returnStatement0 : () => Promise +> : ^^^^^^ + + return; +} + +async function returnStatement1(): Promise { +>returnStatement1 : () => Promise +> : ^^^^^^ + + return x; +>x : any +} + +async function returnStatement2(): Promise { +>returnStatement2 : () => Promise +> : ^^^^^^ + + return await x; +>await x : any +>x : any +} + +async function returnStatement3(): Promise { +>returnStatement3 : () => Promise +> : ^^^^^^ + + { return; } +} + +async function returnStatement4(): Promise { +>returnStatement4 : () => Promise +> : ^^^^^^ + + await x; +>await x : any +>x : any + + { return; } +} + +async function returnStatement5(): Promise{ +>returnStatement5 : () => Promise +> : ^^^^^^ + + { return await x; } +>await x : any +>x : any +} diff --git a/tests/baselines/reference/es5-asyncFunctionSwitchStatements(target=es2015).js b/tests/baselines/reference/es5-asyncFunctionSwitchStatements(target=es2015).js new file mode 100644 index 0000000000000..9a35eeaaa6e6b --- /dev/null +++ b/tests/baselines/reference/es5-asyncFunctionSwitchStatements(target=es2015).js @@ -0,0 +1,187 @@ +//// [tests/cases/compiler/es5-asyncFunctionSwitchStatements.ts] //// + +//// [es5-asyncFunctionSwitchStatements.ts] +declare var x, y, z, a, b, c; + +async function switchStatement0() { + switch (x) { + case y: a; break; + default: b; break; + } +} + +async function switchStatement1() { + switch (await x) { + case y: a; break; + default: b; break; + } +} + +async function switchStatement2() { + switch (x) { + case await y: a; break; + default: b; break; + } +} + +async function switchStatement3() { + switch (x) { + case y: await a; break; + default: b; break; + } +} + +async function switchStatement4() { + switch (x) { + case y: a; break; + default: await b; break; + } +} + +async function switchStatement5() { + switch (x) { + case y: a; break; + case await z: b; break; + } +} + +async function switchStatement6() { + switch (x) { + default: c; break; + case await y: a; break; + case z: b; break; + } +} + +async function switchStatement7() { + switch (x) { + default: c; break; + case y: a; break; + case await z: b; break; + } +} + +async function switchStatement8() { + switch (x) { + default: c; + case y: a; break; + case await z: b; break; + } +} + +//// [es5-asyncFunctionSwitchStatements.js] +function switchStatement0() { + return __awaiter(this, void 0, void 0, function* () { + switch (x) { + case y: + a; + break; + default: + b; + break; + } + }); +} +function switchStatement1() { + return __awaiter(this, void 0, void 0, function* () { + switch (yield x) { + case y: + a; + break; + default: + b; + break; + } + }); +} +function switchStatement2() { + return __awaiter(this, void 0, void 0, function* () { + switch (x) { + case yield y: + a; + break; + default: + b; + break; + } + }); +} +function switchStatement3() { + return __awaiter(this, void 0, void 0, function* () { + switch (x) { + case y: + yield a; + break; + default: + b; + break; + } + }); +} +function switchStatement4() { + return __awaiter(this, void 0, void 0, function* () { + switch (x) { + case y: + a; + break; + default: + yield b; + break; + } + }); +} +function switchStatement5() { + return __awaiter(this, void 0, void 0, function* () { + switch (x) { + case y: + a; + break; + case yield z: + b; + break; + } + }); +} +function switchStatement6() { + return __awaiter(this, void 0, void 0, function* () { + switch (x) { + default: + c; + break; + case yield y: + a; + break; + case z: + b; + break; + } + }); +} +function switchStatement7() { + return __awaiter(this, void 0, void 0, function* () { + switch (x) { + default: + c; + break; + case y: + a; + break; + case yield z: + b; + break; + } + }); +} +function switchStatement8() { + return __awaiter(this, void 0, void 0, function* () { + switch (x) { + default: c; + case y: + a; + break; + case yield z: + b; + break; + } + }); +} diff --git a/tests/baselines/reference/es5-asyncFunctionSwitchStatements.symbols b/tests/baselines/reference/es5-asyncFunctionSwitchStatements(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es5-asyncFunctionSwitchStatements.symbols rename to tests/baselines/reference/es5-asyncFunctionSwitchStatements(target=es2015).symbols diff --git a/tests/baselines/reference/es5-asyncFunctionSwitchStatements.types b/tests/baselines/reference/es5-asyncFunctionSwitchStatements(target=es2015).types similarity index 100% rename from tests/baselines/reference/es5-asyncFunctionSwitchStatements.types rename to tests/baselines/reference/es5-asyncFunctionSwitchStatements(target=es2015).types diff --git a/tests/baselines/reference/es5-asyncFunctionSwitchStatements.js b/tests/baselines/reference/es5-asyncFunctionSwitchStatements(target=es5).js similarity index 100% rename from tests/baselines/reference/es5-asyncFunctionSwitchStatements.js rename to tests/baselines/reference/es5-asyncFunctionSwitchStatements(target=es5).js diff --git a/tests/baselines/reference/es5-asyncFunctionSwitchStatements(target=es5).symbols b/tests/baselines/reference/es5-asyncFunctionSwitchStatements(target=es5).symbols new file mode 100644 index 0000000000000..aca228e956b2e --- /dev/null +++ b/tests/baselines/reference/es5-asyncFunctionSwitchStatements(target=es5).symbols @@ -0,0 +1,158 @@ +//// [tests/cases/compiler/es5-asyncFunctionSwitchStatements.ts] //// + +=== es5-asyncFunctionSwitchStatements.ts === +declare var x, y, z, a, b, c; +>x : Symbol(x, Decl(es5-asyncFunctionSwitchStatements.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionSwitchStatements.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionSwitchStatements.ts, 0, 17)) +>a : Symbol(a, Decl(es5-asyncFunctionSwitchStatements.ts, 0, 20)) +>b : Symbol(b, Decl(es5-asyncFunctionSwitchStatements.ts, 0, 23)) +>c : Symbol(c, Decl(es5-asyncFunctionSwitchStatements.ts, 0, 26)) + +async function switchStatement0() { +>switchStatement0 : Symbol(switchStatement0, Decl(es5-asyncFunctionSwitchStatements.ts, 0, 29)) + + switch (x) { +>x : Symbol(x, Decl(es5-asyncFunctionSwitchStatements.ts, 0, 11)) + + case y: a; break; +>y : Symbol(y, Decl(es5-asyncFunctionSwitchStatements.ts, 0, 14)) +>a : Symbol(a, Decl(es5-asyncFunctionSwitchStatements.ts, 0, 20)) + + default: b; break; +>b : Symbol(b, Decl(es5-asyncFunctionSwitchStatements.ts, 0, 23)) + } +} + +async function switchStatement1() { +>switchStatement1 : Symbol(switchStatement1, Decl(es5-asyncFunctionSwitchStatements.ts, 7, 1)) + + switch (await x) { +>x : Symbol(x, Decl(es5-asyncFunctionSwitchStatements.ts, 0, 11)) + + case y: a; break; +>y : Symbol(y, Decl(es5-asyncFunctionSwitchStatements.ts, 0, 14)) +>a : Symbol(a, Decl(es5-asyncFunctionSwitchStatements.ts, 0, 20)) + + default: b; break; +>b : Symbol(b, Decl(es5-asyncFunctionSwitchStatements.ts, 0, 23)) + } +} + +async function switchStatement2() { +>switchStatement2 : Symbol(switchStatement2, Decl(es5-asyncFunctionSwitchStatements.ts, 14, 1)) + + switch (x) { +>x : Symbol(x, Decl(es5-asyncFunctionSwitchStatements.ts, 0, 11)) + + case await y: a; break; +>y : Symbol(y, Decl(es5-asyncFunctionSwitchStatements.ts, 0, 14)) +>a : Symbol(a, Decl(es5-asyncFunctionSwitchStatements.ts, 0, 20)) + + default: b; break; +>b : Symbol(b, Decl(es5-asyncFunctionSwitchStatements.ts, 0, 23)) + } +} + +async function switchStatement3() { +>switchStatement3 : Symbol(switchStatement3, Decl(es5-asyncFunctionSwitchStatements.ts, 21, 1)) + + switch (x) { +>x : Symbol(x, Decl(es5-asyncFunctionSwitchStatements.ts, 0, 11)) + + case y: await a; break; +>y : Symbol(y, Decl(es5-asyncFunctionSwitchStatements.ts, 0, 14)) +>a : Symbol(a, Decl(es5-asyncFunctionSwitchStatements.ts, 0, 20)) + + default: b; break; +>b : Symbol(b, Decl(es5-asyncFunctionSwitchStatements.ts, 0, 23)) + } +} + +async function switchStatement4() { +>switchStatement4 : Symbol(switchStatement4, Decl(es5-asyncFunctionSwitchStatements.ts, 28, 1)) + + switch (x) { +>x : Symbol(x, Decl(es5-asyncFunctionSwitchStatements.ts, 0, 11)) + + case y: a; break; +>y : Symbol(y, Decl(es5-asyncFunctionSwitchStatements.ts, 0, 14)) +>a : Symbol(a, Decl(es5-asyncFunctionSwitchStatements.ts, 0, 20)) + + default: await b; break; +>b : Symbol(b, Decl(es5-asyncFunctionSwitchStatements.ts, 0, 23)) + } +} + +async function switchStatement5() { +>switchStatement5 : Symbol(switchStatement5, Decl(es5-asyncFunctionSwitchStatements.ts, 35, 1)) + + switch (x) { +>x : Symbol(x, Decl(es5-asyncFunctionSwitchStatements.ts, 0, 11)) + + case y: a; break; +>y : Symbol(y, Decl(es5-asyncFunctionSwitchStatements.ts, 0, 14)) +>a : Symbol(a, Decl(es5-asyncFunctionSwitchStatements.ts, 0, 20)) + + case await z: b; break; +>z : Symbol(z, Decl(es5-asyncFunctionSwitchStatements.ts, 0, 17)) +>b : Symbol(b, Decl(es5-asyncFunctionSwitchStatements.ts, 0, 23)) + } +} + +async function switchStatement6() { +>switchStatement6 : Symbol(switchStatement6, Decl(es5-asyncFunctionSwitchStatements.ts, 42, 1)) + + switch (x) { +>x : Symbol(x, Decl(es5-asyncFunctionSwitchStatements.ts, 0, 11)) + + default: c; break; +>c : Symbol(c, Decl(es5-asyncFunctionSwitchStatements.ts, 0, 26)) + + case await y: a; break; +>y : Symbol(y, Decl(es5-asyncFunctionSwitchStatements.ts, 0, 14)) +>a : Symbol(a, Decl(es5-asyncFunctionSwitchStatements.ts, 0, 20)) + + case z: b; break; +>z : Symbol(z, Decl(es5-asyncFunctionSwitchStatements.ts, 0, 17)) +>b : Symbol(b, Decl(es5-asyncFunctionSwitchStatements.ts, 0, 23)) + } +} + +async function switchStatement7() { +>switchStatement7 : Symbol(switchStatement7, Decl(es5-asyncFunctionSwitchStatements.ts, 50, 1)) + + switch (x) { +>x : Symbol(x, Decl(es5-asyncFunctionSwitchStatements.ts, 0, 11)) + + default: c; break; +>c : Symbol(c, Decl(es5-asyncFunctionSwitchStatements.ts, 0, 26)) + + case y: a; break; +>y : Symbol(y, Decl(es5-asyncFunctionSwitchStatements.ts, 0, 14)) +>a : Symbol(a, Decl(es5-asyncFunctionSwitchStatements.ts, 0, 20)) + + case await z: b; break; +>z : Symbol(z, Decl(es5-asyncFunctionSwitchStatements.ts, 0, 17)) +>b : Symbol(b, Decl(es5-asyncFunctionSwitchStatements.ts, 0, 23)) + } +} + +async function switchStatement8() { +>switchStatement8 : Symbol(switchStatement8, Decl(es5-asyncFunctionSwitchStatements.ts, 58, 1)) + + switch (x) { +>x : Symbol(x, Decl(es5-asyncFunctionSwitchStatements.ts, 0, 11)) + + default: c; +>c : Symbol(c, Decl(es5-asyncFunctionSwitchStatements.ts, 0, 26)) + + case y: a; break; +>y : Symbol(y, Decl(es5-asyncFunctionSwitchStatements.ts, 0, 14)) +>a : Symbol(a, Decl(es5-asyncFunctionSwitchStatements.ts, 0, 20)) + + case await z: b; break; +>z : Symbol(z, Decl(es5-asyncFunctionSwitchStatements.ts, 0, 17)) +>b : Symbol(b, Decl(es5-asyncFunctionSwitchStatements.ts, 0, 23)) + } +} diff --git a/tests/baselines/reference/es5-asyncFunctionSwitchStatements(target=es5).types b/tests/baselines/reference/es5-asyncFunctionSwitchStatements(target=es5).types new file mode 100644 index 0000000000000..ddb82e016d8c5 --- /dev/null +++ b/tests/baselines/reference/es5-asyncFunctionSwitchStatements(target=es5).types @@ -0,0 +1,175 @@ +//// [tests/cases/compiler/es5-asyncFunctionSwitchStatements.ts] //// + +=== es5-asyncFunctionSwitchStatements.ts === +declare var x, y, z, a, b, c; +>x : any +>y : any +>z : any +>a : any +>b : any +>c : any + +async function switchStatement0() { +>switchStatement0 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + switch (x) { +>x : any + + case y: a; break; +>y : any +>a : any + + default: b; break; +>b : any + } +} + +async function switchStatement1() { +>switchStatement1 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + switch (await x) { +>await x : any +>x : any + + case y: a; break; +>y : any +>a : any + + default: b; break; +>b : any + } +} + +async function switchStatement2() { +>switchStatement2 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + switch (x) { +>x : any + + case await y: a; break; +>await y : any +>y : any +>a : any + + default: b; break; +>b : any + } +} + +async function switchStatement3() { +>switchStatement3 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + switch (x) { +>x : any + + case y: await a; break; +>y : any +>await a : any +>a : any + + default: b; break; +>b : any + } +} + +async function switchStatement4() { +>switchStatement4 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + switch (x) { +>x : any + + case y: a; break; +>y : any +>a : any + + default: await b; break; +>await b : any +>b : any + } +} + +async function switchStatement5() { +>switchStatement5 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + switch (x) { +>x : any + + case y: a; break; +>y : any +>a : any + + case await z: b; break; +>await z : any +>z : any +>b : any + } +} + +async function switchStatement6() { +>switchStatement6 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + switch (x) { +>x : any + + default: c; break; +>c : any + + case await y: a; break; +>await y : any +>y : any +>a : any + + case z: b; break; +>z : any +>b : any + } +} + +async function switchStatement7() { +>switchStatement7 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + switch (x) { +>x : any + + default: c; break; +>c : any + + case y: a; break; +>y : any +>a : any + + case await z: b; break; +>await z : any +>z : any +>b : any + } +} + +async function switchStatement8() { +>switchStatement8 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + switch (x) { +>x : any + + default: c; +>c : any + + case y: a; break; +>y : any +>a : any + + case await z: b; break; +>await z : any +>z : any +>b : any + } +} diff --git a/tests/baselines/reference/es5-asyncFunctionTryStatements(target=es2015).js b/tests/baselines/reference/es5-asyncFunctionTryStatements(target=es2015).js new file mode 100644 index 0000000000000..96868533cfcb7 --- /dev/null +++ b/tests/baselines/reference/es5-asyncFunctionTryStatements(target=es2015).js @@ -0,0 +1,260 @@ +//// [tests/cases/compiler/es5-asyncFunctionTryStatements.ts] //// + +//// [es5-asyncFunctionTryStatements.ts] +declare var x: any, y: any, z: any, a: any, b: any, c: any; + +async function tryCatch0() { + var x: any, y: any; + try { + x; + } + catch (e) { + y; + } +} + +async function tryCatch1() { + var x: any, y: any; + try { + await x; + } + catch (e) { + y; + } +} + +async function tryCatch2() { + var x: any, y: any; + try { + x; + } + catch (e) { + await y; + } +} + +async function tryCatch3(): Promise { + var x: any, y: any; + try { + await x; + } + catch (e) { + return () => e; + } +} +async function tryFinally0() { + var x: any, y: any; + try { + x; + } + finally { + y; + } +} + +async function tryFinally1() { + var x: any, y: any; + try { + await x; + } + finally { + y; + } +} + +async function tryFinally2() { + var x: any, y: any; + try { + x; + } + finally { + await y; + } +} + +async function tryCatchFinally0() { + var x: any, y: any, z: any; + try { + x; + } + catch (e) { + y; + } + finally { + z; + } +} + +async function tryCatchFinally1() { + var x: any, y: any, z: any; + try { + await x; + } + catch (e) { + y; + } + finally { + z; + } +} + +async function tryCatchFinally2() { + var x: any, y: any, z: any; + try { + x; + } + catch (e) { + await y; + } + finally { + z; + } +} + +async function tryCatchFinally3() { + var x: any, y: any, z: any; + try { + x; + } + catch (e) { + y; + } + finally { + await z; + } +} + +//// [es5-asyncFunctionTryStatements.js] +function tryCatch0() { + return __awaiter(this, void 0, void 0, function* () { + var x, y; + try { + x; + } + catch (e) { + y; + } + }); +} +function tryCatch1() { + return __awaiter(this, void 0, void 0, function* () { + var x, y; + try { + yield x; + } + catch (e) { + y; + } + }); +} +function tryCatch2() { + return __awaiter(this, void 0, void 0, function* () { + var x, y; + try { + x; + } + catch (e) { + yield y; + } + }); +} +function tryCatch3() { + return __awaiter(this, void 0, void 0, function* () { + var x, y; + try { + yield x; + } + catch (e) { + return () => e; + } + }); +} +function tryFinally0() { + return __awaiter(this, void 0, void 0, function* () { + var x, y; + try { + x; + } + finally { + y; + } + }); +} +function tryFinally1() { + return __awaiter(this, void 0, void 0, function* () { + var x, y; + try { + yield x; + } + finally { + y; + } + }); +} +function tryFinally2() { + return __awaiter(this, void 0, void 0, function* () { + var x, y; + try { + x; + } + finally { + yield y; + } + }); +} +function tryCatchFinally0() { + return __awaiter(this, void 0, void 0, function* () { + var x, y, z; + try { + x; + } + catch (e) { + y; + } + finally { + z; + } + }); +} +function tryCatchFinally1() { + return __awaiter(this, void 0, void 0, function* () { + var x, y, z; + try { + yield x; + } + catch (e) { + y; + } + finally { + z; + } + }); +} +function tryCatchFinally2() { + return __awaiter(this, void 0, void 0, function* () { + var x, y, z; + try { + x; + } + catch (e) { + yield y; + } + finally { + z; + } + }); +} +function tryCatchFinally3() { + return __awaiter(this, void 0, void 0, function* () { + var x, y, z; + try { + x; + } + catch (e) { + y; + } + finally { + yield z; + } + }); +} diff --git a/tests/baselines/reference/es5-asyncFunctionTryStatements.symbols b/tests/baselines/reference/es5-asyncFunctionTryStatements(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es5-asyncFunctionTryStatements.symbols rename to tests/baselines/reference/es5-asyncFunctionTryStatements(target=es2015).symbols diff --git a/tests/baselines/reference/es5-asyncFunctionTryStatements.types b/tests/baselines/reference/es5-asyncFunctionTryStatements(target=es2015).types similarity index 100% rename from tests/baselines/reference/es5-asyncFunctionTryStatements.types rename to tests/baselines/reference/es5-asyncFunctionTryStatements(target=es2015).types diff --git a/tests/baselines/reference/es5-asyncFunctionTryStatements.js b/tests/baselines/reference/es5-asyncFunctionTryStatements(target=es5).js similarity index 100% rename from tests/baselines/reference/es5-asyncFunctionTryStatements.js rename to tests/baselines/reference/es5-asyncFunctionTryStatements(target=es5).js diff --git a/tests/baselines/reference/es5-asyncFunctionTryStatements(target=es5).symbols b/tests/baselines/reference/es5-asyncFunctionTryStatements(target=es5).symbols new file mode 100644 index 0000000000000..eabbac1a03227 --- /dev/null +++ b/tests/baselines/reference/es5-asyncFunctionTryStatements(target=es5).symbols @@ -0,0 +1,234 @@ +//// [tests/cases/compiler/es5-asyncFunctionTryStatements.ts] //// + +=== es5-asyncFunctionTryStatements.ts === +declare var x: any, y: any, z: any, a: any, b: any, c: any; +>x : Symbol(x, Decl(es5-asyncFunctionTryStatements.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionTryStatements.ts, 0, 19)) +>z : Symbol(z, Decl(es5-asyncFunctionTryStatements.ts, 0, 27)) +>a : Symbol(a, Decl(es5-asyncFunctionTryStatements.ts, 0, 35)) +>b : Symbol(b, Decl(es5-asyncFunctionTryStatements.ts, 0, 43)) +>c : Symbol(c, Decl(es5-asyncFunctionTryStatements.ts, 0, 51)) + +async function tryCatch0() { +>tryCatch0 : Symbol(tryCatch0, Decl(es5-asyncFunctionTryStatements.ts, 0, 59)) + + var x: any, y: any; +>x : Symbol(x, Decl(es5-asyncFunctionTryStatements.ts, 3, 7)) +>y : Symbol(y, Decl(es5-asyncFunctionTryStatements.ts, 3, 15)) + + try { + x; +>x : Symbol(x, Decl(es5-asyncFunctionTryStatements.ts, 3, 7)) + } + catch (e) { +>e : Symbol(e, Decl(es5-asyncFunctionTryStatements.ts, 7, 11)) + + y; +>y : Symbol(y, Decl(es5-asyncFunctionTryStatements.ts, 3, 15)) + } +} + +async function tryCatch1() { +>tryCatch1 : Symbol(tryCatch1, Decl(es5-asyncFunctionTryStatements.ts, 10, 1)) + + var x: any, y: any; +>x : Symbol(x, Decl(es5-asyncFunctionTryStatements.ts, 13, 7)) +>y : Symbol(y, Decl(es5-asyncFunctionTryStatements.ts, 13, 15)) + + try { + await x; +>x : Symbol(x, Decl(es5-asyncFunctionTryStatements.ts, 13, 7)) + } + catch (e) { +>e : Symbol(e, Decl(es5-asyncFunctionTryStatements.ts, 17, 11)) + + y; +>y : Symbol(y, Decl(es5-asyncFunctionTryStatements.ts, 13, 15)) + } +} + +async function tryCatch2() { +>tryCatch2 : Symbol(tryCatch2, Decl(es5-asyncFunctionTryStatements.ts, 20, 1)) + + var x: any, y: any; +>x : Symbol(x, Decl(es5-asyncFunctionTryStatements.ts, 23, 7)) +>y : Symbol(y, Decl(es5-asyncFunctionTryStatements.ts, 23, 15)) + + try { + x; +>x : Symbol(x, Decl(es5-asyncFunctionTryStatements.ts, 23, 7)) + } + catch (e) { +>e : Symbol(e, Decl(es5-asyncFunctionTryStatements.ts, 27, 11)) + + await y; +>y : Symbol(y, Decl(es5-asyncFunctionTryStatements.ts, 23, 15)) + } +} + +async function tryCatch3(): Promise { +>tryCatch3 : Symbol(tryCatch3, Decl(es5-asyncFunctionTryStatements.ts, 30, 1)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) + + var x: any, y: any; +>x : Symbol(x, Decl(es5-asyncFunctionTryStatements.ts, 33, 7)) +>y : Symbol(y, Decl(es5-asyncFunctionTryStatements.ts, 33, 15)) + + try { + await x; +>x : Symbol(x, Decl(es5-asyncFunctionTryStatements.ts, 33, 7)) + } + catch (e) { +>e : Symbol(e, Decl(es5-asyncFunctionTryStatements.ts, 37, 11)) + + return () => e; +>e : Symbol(e, Decl(es5-asyncFunctionTryStatements.ts, 37, 11)) + } +} +async function tryFinally0() { +>tryFinally0 : Symbol(tryFinally0, Decl(es5-asyncFunctionTryStatements.ts, 40, 1)) + + var x: any, y: any; +>x : Symbol(x, Decl(es5-asyncFunctionTryStatements.ts, 42, 7)) +>y : Symbol(y, Decl(es5-asyncFunctionTryStatements.ts, 42, 15)) + + try { + x; +>x : Symbol(x, Decl(es5-asyncFunctionTryStatements.ts, 42, 7)) + } + finally { + y; +>y : Symbol(y, Decl(es5-asyncFunctionTryStatements.ts, 42, 15)) + } +} + +async function tryFinally1() { +>tryFinally1 : Symbol(tryFinally1, Decl(es5-asyncFunctionTryStatements.ts, 49, 1)) + + var x: any, y: any; +>x : Symbol(x, Decl(es5-asyncFunctionTryStatements.ts, 52, 7)) +>y : Symbol(y, Decl(es5-asyncFunctionTryStatements.ts, 52, 15)) + + try { + await x; +>x : Symbol(x, Decl(es5-asyncFunctionTryStatements.ts, 52, 7)) + } + finally { + y; +>y : Symbol(y, Decl(es5-asyncFunctionTryStatements.ts, 52, 15)) + } +} + +async function tryFinally2() { +>tryFinally2 : Symbol(tryFinally2, Decl(es5-asyncFunctionTryStatements.ts, 59, 1)) + + var x: any, y: any; +>x : Symbol(x, Decl(es5-asyncFunctionTryStatements.ts, 62, 7)) +>y : Symbol(y, Decl(es5-asyncFunctionTryStatements.ts, 62, 15)) + + try { + x; +>x : Symbol(x, Decl(es5-asyncFunctionTryStatements.ts, 62, 7)) + } + finally { + await y; +>y : Symbol(y, Decl(es5-asyncFunctionTryStatements.ts, 62, 15)) + } +} + +async function tryCatchFinally0() { +>tryCatchFinally0 : Symbol(tryCatchFinally0, Decl(es5-asyncFunctionTryStatements.ts, 69, 1)) + + var x: any, y: any, z: any; +>x : Symbol(x, Decl(es5-asyncFunctionTryStatements.ts, 72, 7)) +>y : Symbol(y, Decl(es5-asyncFunctionTryStatements.ts, 72, 15)) +>z : Symbol(z, Decl(es5-asyncFunctionTryStatements.ts, 72, 23)) + + try { + x; +>x : Symbol(x, Decl(es5-asyncFunctionTryStatements.ts, 72, 7)) + } + catch (e) { +>e : Symbol(e, Decl(es5-asyncFunctionTryStatements.ts, 76, 11)) + + y; +>y : Symbol(y, Decl(es5-asyncFunctionTryStatements.ts, 72, 15)) + } + finally { + z; +>z : Symbol(z, Decl(es5-asyncFunctionTryStatements.ts, 72, 23)) + } +} + +async function tryCatchFinally1() { +>tryCatchFinally1 : Symbol(tryCatchFinally1, Decl(es5-asyncFunctionTryStatements.ts, 82, 1)) + + var x: any, y: any, z: any; +>x : Symbol(x, Decl(es5-asyncFunctionTryStatements.ts, 85, 7)) +>y : Symbol(y, Decl(es5-asyncFunctionTryStatements.ts, 85, 15)) +>z : Symbol(z, Decl(es5-asyncFunctionTryStatements.ts, 85, 23)) + + try { + await x; +>x : Symbol(x, Decl(es5-asyncFunctionTryStatements.ts, 85, 7)) + } + catch (e) { +>e : Symbol(e, Decl(es5-asyncFunctionTryStatements.ts, 89, 11)) + + y; +>y : Symbol(y, Decl(es5-asyncFunctionTryStatements.ts, 85, 15)) + } + finally { + z; +>z : Symbol(z, Decl(es5-asyncFunctionTryStatements.ts, 85, 23)) + } +} + +async function tryCatchFinally2() { +>tryCatchFinally2 : Symbol(tryCatchFinally2, Decl(es5-asyncFunctionTryStatements.ts, 95, 1)) + + var x: any, y: any, z: any; +>x : Symbol(x, Decl(es5-asyncFunctionTryStatements.ts, 98, 7)) +>y : Symbol(y, Decl(es5-asyncFunctionTryStatements.ts, 98, 15)) +>z : Symbol(z, Decl(es5-asyncFunctionTryStatements.ts, 98, 23)) + + try { + x; +>x : Symbol(x, Decl(es5-asyncFunctionTryStatements.ts, 98, 7)) + } + catch (e) { +>e : Symbol(e, Decl(es5-asyncFunctionTryStatements.ts, 102, 11)) + + await y; +>y : Symbol(y, Decl(es5-asyncFunctionTryStatements.ts, 98, 15)) + } + finally { + z; +>z : Symbol(z, Decl(es5-asyncFunctionTryStatements.ts, 98, 23)) + } +} + +async function tryCatchFinally3() { +>tryCatchFinally3 : Symbol(tryCatchFinally3, Decl(es5-asyncFunctionTryStatements.ts, 108, 1)) + + var x: any, y: any, z: any; +>x : Symbol(x, Decl(es5-asyncFunctionTryStatements.ts, 111, 7)) +>y : Symbol(y, Decl(es5-asyncFunctionTryStatements.ts, 111, 15)) +>z : Symbol(z, Decl(es5-asyncFunctionTryStatements.ts, 111, 23)) + + try { + x; +>x : Symbol(x, Decl(es5-asyncFunctionTryStatements.ts, 111, 7)) + } + catch (e) { +>e : Symbol(e, Decl(es5-asyncFunctionTryStatements.ts, 115, 11)) + + y; +>y : Symbol(y, Decl(es5-asyncFunctionTryStatements.ts, 111, 15)) + } + finally { + await z; +>z : Symbol(z, Decl(es5-asyncFunctionTryStatements.ts, 111, 23)) + } +} diff --git a/tests/baselines/reference/es5-asyncFunctionTryStatements(target=es5).types b/tests/baselines/reference/es5-asyncFunctionTryStatements(target=es5).types new file mode 100644 index 0000000000000..9a66d6208571d --- /dev/null +++ b/tests/baselines/reference/es5-asyncFunctionTryStatements(target=es5).types @@ -0,0 +1,253 @@ +//// [tests/cases/compiler/es5-asyncFunctionTryStatements.ts] //// + +=== es5-asyncFunctionTryStatements.ts === +declare var x: any, y: any, z: any, a: any, b: any, c: any; +>x : any +>y : any +>z : any +>a : any +>b : any +>c : any + +async function tryCatch0() { +>tryCatch0 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + var x: any, y: any; +>x : any +>y : any + + try { + x; +>x : any + } + catch (e) { +>e : any + + y; +>y : any + } +} + +async function tryCatch1() { +>tryCatch1 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + var x: any, y: any; +>x : any +>y : any + + try { + await x; +>await x : any +>x : any + } + catch (e) { +>e : any + + y; +>y : any + } +} + +async function tryCatch2() { +>tryCatch2 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + var x: any, y: any; +>x : any +>y : any + + try { + x; +>x : any + } + catch (e) { +>e : any + + await y; +>await y : any +>y : any + } +} + +async function tryCatch3(): Promise { +>tryCatch3 : () => Promise +> : ^^^^^^ + + var x: any, y: any; +>x : any +>y : any + + try { + await x; +>await x : any +>x : any + } + catch (e) { +>e : any + + return () => e; +>() => e : () => any +> : ^^^^^^^^^ +>e : any + } +} +async function tryFinally0() { +>tryFinally0 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + var x: any, y: any; +>x : any +>y : any + + try { + x; +>x : any + } + finally { + y; +>y : any + } +} + +async function tryFinally1() { +>tryFinally1 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + var x: any, y: any; +>x : any +>y : any + + try { + await x; +>await x : any +>x : any + } + finally { + y; +>y : any + } +} + +async function tryFinally2() { +>tryFinally2 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + var x: any, y: any; +>x : any +>y : any + + try { + x; +>x : any + } + finally { + await y; +>await y : any +>y : any + } +} + +async function tryCatchFinally0() { +>tryCatchFinally0 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + var x: any, y: any, z: any; +>x : any +>y : any +>z : any + + try { + x; +>x : any + } + catch (e) { +>e : any + + y; +>y : any + } + finally { + z; +>z : any + } +} + +async function tryCatchFinally1() { +>tryCatchFinally1 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + var x: any, y: any, z: any; +>x : any +>y : any +>z : any + + try { + await x; +>await x : any +>x : any + } + catch (e) { +>e : any + + y; +>y : any + } + finally { + z; +>z : any + } +} + +async function tryCatchFinally2() { +>tryCatchFinally2 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + var x: any, y: any, z: any; +>x : any +>y : any +>z : any + + try { + x; +>x : any + } + catch (e) { +>e : any + + await y; +>await y : any +>y : any + } + finally { + z; +>z : any + } +} + +async function tryCatchFinally3() { +>tryCatchFinally3 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + var x: any, y: any, z: any; +>x : any +>y : any +>z : any + + try { + x; +>x : any + } + catch (e) { +>e : any + + y; +>y : any + } + finally { + await z; +>await z : any +>z : any + } +} diff --git a/tests/baselines/reference/es5-asyncFunctionWhileStatements(target=es2015).js b/tests/baselines/reference/es5-asyncFunctionWhileStatements(target=es2015).js new file mode 100644 index 0000000000000..387f3c62b3c5e --- /dev/null +++ b/tests/baselines/reference/es5-asyncFunctionWhileStatements(target=es2015).js @@ -0,0 +1,227 @@ +//// [tests/cases/compiler/es5-asyncFunctionWhileStatements.ts] //// + +//// [es5-asyncFunctionWhileStatements.ts] +declare var x, y, z, a, b, c; + +async function whileStatement0() { + while (x) { y; } +} + +async function whileStatement1() { + while (await x) { y; } +} + +async function whileStatement2() { + while (x) { await y; } +} + +async function whileStatement3() { + while (x) { continue; } +} + +async function whileStatement4() { + while (await x) { continue; } +} + +async function whileStatement5() { + while (x) { await y; continue; } +} + +async function whileStatement6() { + while (x) { if (1) continue; await y; } +} + +async function whileStatement7() { + A: while (x) { continue A; } +} + +async function whileStatement8() { + B: while (await x) { continue B; } +} + +async function whileStatement9() { + C: while (x) { await y; continue C; } +} + +async function whileStatement10() { + D: while (x) { if (1) continue D; await y; } +} + +async function whileStatement11() { + while (x) { break; } +} + +async function whileStatement12() { + while (await x) { break; } +} + +async function whileStatement13() { + while (x) { await y; break; } +} + +async function whileStatement14() { + while (x) { if (1) break; await y; } +} + +async function whileStatement15() { + E: while (x) { break E; } +} + +async function whileStatement16() { + F: while (await x) { break F; } +} + +async function whileStatement17() { + G: while (x) { await y; break G; } +} + +async function whileStatement18() { + H: while (x) { if (1) break H; await y; } +} + +//// [es5-asyncFunctionWhileStatements.js] +function whileStatement0() { + return __awaiter(this, void 0, void 0, function* () { + while (x) { + y; + } + }); +} +function whileStatement1() { + return __awaiter(this, void 0, void 0, function* () { + while (yield x) { + y; + } + }); +} +function whileStatement2() { + return __awaiter(this, void 0, void 0, function* () { + while (x) { + yield y; + } + }); +} +function whileStatement3() { + return __awaiter(this, void 0, void 0, function* () { + while (x) { + continue; + } + }); +} +function whileStatement4() { + return __awaiter(this, void 0, void 0, function* () { + while (yield x) { + continue; + } + }); +} +function whileStatement5() { + return __awaiter(this, void 0, void 0, function* () { + while (x) { + yield y; + continue; + } + }); +} +function whileStatement6() { + return __awaiter(this, void 0, void 0, function* () { + while (x) { + if (1) + continue; + yield y; + } + }); +} +function whileStatement7() { + return __awaiter(this, void 0, void 0, function* () { + A: while (x) { + continue A; + } + }); +} +function whileStatement8() { + return __awaiter(this, void 0, void 0, function* () { + B: while (yield x) { + continue B; + } + }); +} +function whileStatement9() { + return __awaiter(this, void 0, void 0, function* () { + C: while (x) { + yield y; + continue C; + } + }); +} +function whileStatement10() { + return __awaiter(this, void 0, void 0, function* () { + D: while (x) { + if (1) + continue D; + yield y; + } + }); +} +function whileStatement11() { + return __awaiter(this, void 0, void 0, function* () { + while (x) { + break; + } + }); +} +function whileStatement12() { + return __awaiter(this, void 0, void 0, function* () { + while (yield x) { + break; + } + }); +} +function whileStatement13() { + return __awaiter(this, void 0, void 0, function* () { + while (x) { + yield y; + break; + } + }); +} +function whileStatement14() { + return __awaiter(this, void 0, void 0, function* () { + while (x) { + if (1) + break; + yield y; + } + }); +} +function whileStatement15() { + return __awaiter(this, void 0, void 0, function* () { + E: while (x) { + break E; + } + }); +} +function whileStatement16() { + return __awaiter(this, void 0, void 0, function* () { + F: while (yield x) { + break F; + } + }); +} +function whileStatement17() { + return __awaiter(this, void 0, void 0, function* () { + G: while (x) { + yield y; + break G; + } + }); +} +function whileStatement18() { + return __awaiter(this, void 0, void 0, function* () { + H: while (x) { + if (1) + break H; + yield y; + } + }); +} diff --git a/tests/baselines/reference/es5-asyncFunctionWhileStatements.symbols b/tests/baselines/reference/es5-asyncFunctionWhileStatements(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es5-asyncFunctionWhileStatements.symbols rename to tests/baselines/reference/es5-asyncFunctionWhileStatements(target=es2015).symbols diff --git a/tests/baselines/reference/es5-asyncFunctionWhileStatements.types b/tests/baselines/reference/es5-asyncFunctionWhileStatements(target=es2015).types similarity index 100% rename from tests/baselines/reference/es5-asyncFunctionWhileStatements.types rename to tests/baselines/reference/es5-asyncFunctionWhileStatements(target=es2015).types diff --git a/tests/baselines/reference/es5-asyncFunctionWhileStatements.js b/tests/baselines/reference/es5-asyncFunctionWhileStatements(target=es5).js similarity index 100% rename from tests/baselines/reference/es5-asyncFunctionWhileStatements.js rename to tests/baselines/reference/es5-asyncFunctionWhileStatements(target=es5).js diff --git a/tests/baselines/reference/es5-asyncFunctionWhileStatements(target=es5).symbols b/tests/baselines/reference/es5-asyncFunctionWhileStatements(target=es5).symbols new file mode 100644 index 0000000000000..769e085df1292 --- /dev/null +++ b/tests/baselines/reference/es5-asyncFunctionWhileStatements(target=es5).symbols @@ -0,0 +1,154 @@ +//// [tests/cases/compiler/es5-asyncFunctionWhileStatements.ts] //// + +=== es5-asyncFunctionWhileStatements.ts === +declare var x, y, z, a, b, c; +>x : Symbol(x, Decl(es5-asyncFunctionWhileStatements.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionWhileStatements.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionWhileStatements.ts, 0, 17)) +>a : Symbol(a, Decl(es5-asyncFunctionWhileStatements.ts, 0, 20)) +>b : Symbol(b, Decl(es5-asyncFunctionWhileStatements.ts, 0, 23)) +>c : Symbol(c, Decl(es5-asyncFunctionWhileStatements.ts, 0, 26)) + +async function whileStatement0() { +>whileStatement0 : Symbol(whileStatement0, Decl(es5-asyncFunctionWhileStatements.ts, 0, 29)) + + while (x) { y; } +>x : Symbol(x, Decl(es5-asyncFunctionWhileStatements.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionWhileStatements.ts, 0, 14)) +} + +async function whileStatement1() { +>whileStatement1 : Symbol(whileStatement1, Decl(es5-asyncFunctionWhileStatements.ts, 4, 1)) + + while (await x) { y; } +>x : Symbol(x, Decl(es5-asyncFunctionWhileStatements.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionWhileStatements.ts, 0, 14)) +} + +async function whileStatement2() { +>whileStatement2 : Symbol(whileStatement2, Decl(es5-asyncFunctionWhileStatements.ts, 8, 1)) + + while (x) { await y; } +>x : Symbol(x, Decl(es5-asyncFunctionWhileStatements.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionWhileStatements.ts, 0, 14)) +} + +async function whileStatement3() { +>whileStatement3 : Symbol(whileStatement3, Decl(es5-asyncFunctionWhileStatements.ts, 12, 1)) + + while (x) { continue; } +>x : Symbol(x, Decl(es5-asyncFunctionWhileStatements.ts, 0, 11)) +} + +async function whileStatement4() { +>whileStatement4 : Symbol(whileStatement4, Decl(es5-asyncFunctionWhileStatements.ts, 16, 1)) + + while (await x) { continue; } +>x : Symbol(x, Decl(es5-asyncFunctionWhileStatements.ts, 0, 11)) +} + +async function whileStatement5() { +>whileStatement5 : Symbol(whileStatement5, Decl(es5-asyncFunctionWhileStatements.ts, 20, 1)) + + while (x) { await y; continue; } +>x : Symbol(x, Decl(es5-asyncFunctionWhileStatements.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionWhileStatements.ts, 0, 14)) +} + +async function whileStatement6() { +>whileStatement6 : Symbol(whileStatement6, Decl(es5-asyncFunctionWhileStatements.ts, 24, 1)) + + while (x) { if (1) continue; await y; } +>x : Symbol(x, Decl(es5-asyncFunctionWhileStatements.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionWhileStatements.ts, 0, 14)) +} + +async function whileStatement7() { +>whileStatement7 : Symbol(whileStatement7, Decl(es5-asyncFunctionWhileStatements.ts, 28, 1)) + + A: while (x) { continue A; } +>x : Symbol(x, Decl(es5-asyncFunctionWhileStatements.ts, 0, 11)) +} + +async function whileStatement8() { +>whileStatement8 : Symbol(whileStatement8, Decl(es5-asyncFunctionWhileStatements.ts, 32, 1)) + + B: while (await x) { continue B; } +>x : Symbol(x, Decl(es5-asyncFunctionWhileStatements.ts, 0, 11)) +} + +async function whileStatement9() { +>whileStatement9 : Symbol(whileStatement9, Decl(es5-asyncFunctionWhileStatements.ts, 36, 1)) + + C: while (x) { await y; continue C; } +>x : Symbol(x, Decl(es5-asyncFunctionWhileStatements.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionWhileStatements.ts, 0, 14)) +} + +async function whileStatement10() { +>whileStatement10 : Symbol(whileStatement10, Decl(es5-asyncFunctionWhileStatements.ts, 40, 1)) + + D: while (x) { if (1) continue D; await y; } +>x : Symbol(x, Decl(es5-asyncFunctionWhileStatements.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionWhileStatements.ts, 0, 14)) +} + +async function whileStatement11() { +>whileStatement11 : Symbol(whileStatement11, Decl(es5-asyncFunctionWhileStatements.ts, 44, 1)) + + while (x) { break; } +>x : Symbol(x, Decl(es5-asyncFunctionWhileStatements.ts, 0, 11)) +} + +async function whileStatement12() { +>whileStatement12 : Symbol(whileStatement12, Decl(es5-asyncFunctionWhileStatements.ts, 48, 1)) + + while (await x) { break; } +>x : Symbol(x, Decl(es5-asyncFunctionWhileStatements.ts, 0, 11)) +} + +async function whileStatement13() { +>whileStatement13 : Symbol(whileStatement13, Decl(es5-asyncFunctionWhileStatements.ts, 52, 1)) + + while (x) { await y; break; } +>x : Symbol(x, Decl(es5-asyncFunctionWhileStatements.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionWhileStatements.ts, 0, 14)) +} + +async function whileStatement14() { +>whileStatement14 : Symbol(whileStatement14, Decl(es5-asyncFunctionWhileStatements.ts, 56, 1)) + + while (x) { if (1) break; await y; } +>x : Symbol(x, Decl(es5-asyncFunctionWhileStatements.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionWhileStatements.ts, 0, 14)) +} + +async function whileStatement15() { +>whileStatement15 : Symbol(whileStatement15, Decl(es5-asyncFunctionWhileStatements.ts, 60, 1)) + + E: while (x) { break E; } +>x : Symbol(x, Decl(es5-asyncFunctionWhileStatements.ts, 0, 11)) +} + +async function whileStatement16() { +>whileStatement16 : Symbol(whileStatement16, Decl(es5-asyncFunctionWhileStatements.ts, 64, 1)) + + F: while (await x) { break F; } +>x : Symbol(x, Decl(es5-asyncFunctionWhileStatements.ts, 0, 11)) +} + +async function whileStatement17() { +>whileStatement17 : Symbol(whileStatement17, Decl(es5-asyncFunctionWhileStatements.ts, 68, 1)) + + G: while (x) { await y; break G; } +>x : Symbol(x, Decl(es5-asyncFunctionWhileStatements.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionWhileStatements.ts, 0, 14)) +} + +async function whileStatement18() { +>whileStatement18 : Symbol(whileStatement18, Decl(es5-asyncFunctionWhileStatements.ts, 72, 1)) + + H: while (x) { if (1) break H; await y; } +>x : Symbol(x, Decl(es5-asyncFunctionWhileStatements.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionWhileStatements.ts, 0, 14)) +} diff --git a/tests/baselines/reference/es5-asyncFunctionWhileStatements(target=es5).types b/tests/baselines/reference/es5-asyncFunctionWhileStatements(target=es5).types new file mode 100644 index 0000000000000..11405662cd6b5 --- /dev/null +++ b/tests/baselines/reference/es5-asyncFunctionWhileStatements(target=es5).types @@ -0,0 +1,227 @@ +//// [tests/cases/compiler/es5-asyncFunctionWhileStatements.ts] //// + +=== es5-asyncFunctionWhileStatements.ts === +declare var x, y, z, a, b, c; +>x : any +>y : any +>z : any +>a : any +>b : any +>c : any + +async function whileStatement0() { +>whileStatement0 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + while (x) { y; } +>x : any +>y : any +} + +async function whileStatement1() { +>whileStatement1 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + while (await x) { y; } +>await x : any +>x : any +>y : any +} + +async function whileStatement2() { +>whileStatement2 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + while (x) { await y; } +>x : any +>await y : any +>y : any +} + +async function whileStatement3() { +>whileStatement3 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + while (x) { continue; } +>x : any +} + +async function whileStatement4() { +>whileStatement4 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + while (await x) { continue; } +>await x : any +>x : any +} + +async function whileStatement5() { +>whileStatement5 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + while (x) { await y; continue; } +>x : any +>await y : any +>y : any +} + +async function whileStatement6() { +>whileStatement6 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + while (x) { if (1) continue; await y; } +>x : any +>1 : 1 +> : ^ +>await y : any +>y : any +} + +async function whileStatement7() { +>whileStatement7 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + A: while (x) { continue A; } +>A : any +> : ^^^ +>x : any +>A : any +> : ^^^ +} + +async function whileStatement8() { +>whileStatement8 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + B: while (await x) { continue B; } +>B : any +> : ^^^ +>await x : any +>x : any +>B : any +> : ^^^ +} + +async function whileStatement9() { +>whileStatement9 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + C: while (x) { await y; continue C; } +>C : any +> : ^^^ +>x : any +>await y : any +>y : any +>C : any +> : ^^^ +} + +async function whileStatement10() { +>whileStatement10 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + D: while (x) { if (1) continue D; await y; } +>D : any +> : ^^^ +>x : any +>1 : 1 +> : ^ +>D : any +> : ^^^ +>await y : any +>y : any +} + +async function whileStatement11() { +>whileStatement11 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + while (x) { break; } +>x : any +} + +async function whileStatement12() { +>whileStatement12 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + while (await x) { break; } +>await x : any +>x : any +} + +async function whileStatement13() { +>whileStatement13 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + while (x) { await y; break; } +>x : any +>await y : any +>y : any +} + +async function whileStatement14() { +>whileStatement14 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + while (x) { if (1) break; await y; } +>x : any +>1 : 1 +> : ^ +>await y : any +>y : any +} + +async function whileStatement15() { +>whileStatement15 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + E: while (x) { break E; } +>E : any +> : ^^^ +>x : any +>E : any +> : ^^^ +} + +async function whileStatement16() { +>whileStatement16 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + F: while (await x) { break F; } +>F : any +> : ^^^ +>await x : any +>x : any +>F : any +> : ^^^ +} + +async function whileStatement17() { +>whileStatement17 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + G: while (x) { await y; break G; } +>G : any +> : ^^^ +>x : any +>await y : any +>y : any +>G : any +> : ^^^ +} + +async function whileStatement18() { +>whileStatement18 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + H: while (x) { if (1) break H; await y; } +>H : any +> : ^^^ +>x : any +>1 : 1 +> : ^ +>H : any +> : ^^^ +>await y : any +>y : any +} diff --git a/tests/baselines/reference/es5-asyncFunctionWithStatements.errors.txt b/tests/baselines/reference/es5-asyncFunctionWithStatements(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/es5-asyncFunctionWithStatements.errors.txt rename to tests/baselines/reference/es5-asyncFunctionWithStatements(target=es2015).errors.txt diff --git a/tests/baselines/reference/es5-asyncFunctionWithStatements(target=es2015).js b/tests/baselines/reference/es5-asyncFunctionWithStatements(target=es2015).js new file mode 100644 index 0000000000000..4f6e75aeff5ed --- /dev/null +++ b/tests/baselines/reference/es5-asyncFunctionWithStatements(target=es2015).js @@ -0,0 +1,70 @@ +//// [tests/cases/compiler/es5-asyncFunctionWithStatements.ts] //// + +//// [es5-asyncFunctionWithStatements.ts] +declare var x, y, z, a, b, c; + +async function withStatement0() { + with (x) { + y; + } +} + +async function withStatement1() { + with (await x) { + y; + } +} + +async function withStatement2() { + with (x) { + a; + await y; + b; + } +} + +async function withStatement3() { + with (x) { + with (z) { + a; + await y; + b; + } + } +} + +//// [es5-asyncFunctionWithStatements.js] +function withStatement0() { + return __awaiter(this, void 0, void 0, function* () { + with (x) { + y; + } + }); +} +function withStatement1() { + return __awaiter(this, void 0, void 0, function* () { + with (yield x) { + y; + } + }); +} +function withStatement2() { + return __awaiter(this, void 0, void 0, function* () { + with (x) { + a; + yield y; + b; + } + }); +} +function withStatement3() { + return __awaiter(this, void 0, void 0, function* () { + with (x) { + with (z) { + a; + yield y; + b; + } + } + }); +} diff --git a/tests/baselines/reference/es5-asyncFunctionWithStatements.symbols b/tests/baselines/reference/es5-asyncFunctionWithStatements(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es5-asyncFunctionWithStatements.symbols rename to tests/baselines/reference/es5-asyncFunctionWithStatements(target=es2015).symbols diff --git a/tests/baselines/reference/es5-asyncFunctionWithStatements.types b/tests/baselines/reference/es5-asyncFunctionWithStatements(target=es2015).types similarity index 100% rename from tests/baselines/reference/es5-asyncFunctionWithStatements.types rename to tests/baselines/reference/es5-asyncFunctionWithStatements(target=es2015).types diff --git a/tests/baselines/reference/es5-asyncFunctionWithStatements(target=es5).errors.txt b/tests/baselines/reference/es5-asyncFunctionWithStatements(target=es5).errors.txt new file mode 100644 index 0000000000000..b1245d7c46e27 --- /dev/null +++ b/tests/baselines/reference/es5-asyncFunctionWithStatements(target=es5).errors.txt @@ -0,0 +1,58 @@ +es5-asyncFunctionWithStatements.ts(4,5): error TS1300: 'with' statements are not allowed in an async function block. +es5-asyncFunctionWithStatements.ts(4,5): error TS2410: The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'. +es5-asyncFunctionWithStatements.ts(10,5): error TS1300: 'with' statements are not allowed in an async function block. +es5-asyncFunctionWithStatements.ts(10,5): error TS2410: The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'. +es5-asyncFunctionWithStatements.ts(16,5): error TS1300: 'with' statements are not allowed in an async function block. +es5-asyncFunctionWithStatements.ts(16,5): error TS2410: The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'. +es5-asyncFunctionWithStatements.ts(24,5): error TS1300: 'with' statements are not allowed in an async function block. +es5-asyncFunctionWithStatements.ts(24,5): error TS2410: The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'. + + +==== es5-asyncFunctionWithStatements.ts (8 errors) ==== + declare var x, y, z, a, b, c; + + async function withStatement0() { + with (x) { + ~~~~ +!!! error TS1300: 'with' statements are not allowed in an async function block. + ~~~~~~~~ +!!! error TS2410: The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'. + y; + } + } + + async function withStatement1() { + with (await x) { + ~~~~ +!!! error TS1300: 'with' statements are not allowed in an async function block. + ~~~~~~~~~~~~~~ +!!! error TS2410: The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'. + y; + } + } + + async function withStatement2() { + with (x) { + ~~~~ +!!! error TS1300: 'with' statements are not allowed in an async function block. + ~~~~~~~~ +!!! error TS2410: The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'. + a; + await y; + b; + } + } + + async function withStatement3() { + with (x) { + ~~~~ +!!! error TS1300: 'with' statements are not allowed in an async function block. + ~~~~~~~~ +!!! error TS2410: The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'. + with (z) { + a; + await y; + b; + } + } + } \ No newline at end of file diff --git a/tests/baselines/reference/es5-asyncFunctionWithStatements.js b/tests/baselines/reference/es5-asyncFunctionWithStatements(target=es5).js similarity index 100% rename from tests/baselines/reference/es5-asyncFunctionWithStatements.js rename to tests/baselines/reference/es5-asyncFunctionWithStatements(target=es5).js diff --git a/tests/baselines/reference/es5-asyncFunctionWithStatements(target=es5).symbols b/tests/baselines/reference/es5-asyncFunctionWithStatements(target=es5).symbols new file mode 100644 index 0000000000000..13a98479a6dbb --- /dev/null +++ b/tests/baselines/reference/es5-asyncFunctionWithStatements(target=es5).symbols @@ -0,0 +1,56 @@ +//// [tests/cases/compiler/es5-asyncFunctionWithStatements.ts] //// + +=== es5-asyncFunctionWithStatements.ts === +declare var x, y, z, a, b, c; +>x : Symbol(x, Decl(es5-asyncFunctionWithStatements.ts, 0, 11)) +>y : Symbol(y, Decl(es5-asyncFunctionWithStatements.ts, 0, 14)) +>z : Symbol(z, Decl(es5-asyncFunctionWithStatements.ts, 0, 17)) +>a : Symbol(a, Decl(es5-asyncFunctionWithStatements.ts, 0, 20)) +>b : Symbol(b, Decl(es5-asyncFunctionWithStatements.ts, 0, 23)) +>c : Symbol(c, Decl(es5-asyncFunctionWithStatements.ts, 0, 26)) + +async function withStatement0() { +>withStatement0 : Symbol(withStatement0, Decl(es5-asyncFunctionWithStatements.ts, 0, 29)) + + with (x) { +>x : Symbol(x, Decl(es5-asyncFunctionWithStatements.ts, 0, 11)) + + y; + } +} + +async function withStatement1() { +>withStatement1 : Symbol(withStatement1, Decl(es5-asyncFunctionWithStatements.ts, 6, 1)) + + with (await x) { +>x : Symbol(x, Decl(es5-asyncFunctionWithStatements.ts, 0, 11)) + + y; + } +} + +async function withStatement2() { +>withStatement2 : Symbol(withStatement2, Decl(es5-asyncFunctionWithStatements.ts, 12, 1)) + + with (x) { +>x : Symbol(x, Decl(es5-asyncFunctionWithStatements.ts, 0, 11)) + + a; + await y; + b; + } +} + +async function withStatement3() { +>withStatement3 : Symbol(withStatement3, Decl(es5-asyncFunctionWithStatements.ts, 20, 1)) + + with (x) { +>x : Symbol(x, Decl(es5-asyncFunctionWithStatements.ts, 0, 11)) + + with (z) { + a; + await y; + b; + } + } +} diff --git a/tests/baselines/reference/es5-asyncFunctionWithStatements(target=es5).types b/tests/baselines/reference/es5-asyncFunctionWithStatements(target=es5).types new file mode 100644 index 0000000000000..cc171bfdef044 --- /dev/null +++ b/tests/baselines/reference/es5-asyncFunctionWithStatements(target=es5).types @@ -0,0 +1,99 @@ +//// [tests/cases/compiler/es5-asyncFunctionWithStatements.ts] //// + +=== es5-asyncFunctionWithStatements.ts === +declare var x, y, z, a, b, c; +>x : any +> : ^^^ +>y : any +> : ^^^ +>z : any +> : ^^^ +>a : any +> : ^^^ +>b : any +> : ^^^ +>c : any +> : ^^^ + +async function withStatement0() { +>withStatement0 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + with (x) { +>x : any +> : ^^^ + + y; +>y : any +> : ^^^ + } +} + +async function withStatement1() { +>withStatement1 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + with (await x) { +>await x : any +> : ^^^ +>x : any +> : ^^^ + + y; +>y : any +> : ^^^ + } +} + +async function withStatement2() { +>withStatement2 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + with (x) { +>x : any +> : ^^^ + + a; +>a : any +> : ^^^ + + await y; +>await y : any +> : ^^^ +>y : any +> : ^^^ + + b; +>b : any +> : ^^^ + } +} + +async function withStatement3() { +>withStatement3 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + with (x) { +>x : any +> : ^^^ + + with (z) { +>z : any +> : ^^^ + + a; +>a : any +> : ^^^ + + await y; +>await y : any +> : ^^^ +>y : any +> : ^^^ + + b; +>b : any +> : ^^^ + } + } +} diff --git a/tests/baselines/reference/es5-commonjs(target=es2015).js b/tests/baselines/reference/es5-commonjs(target=es2015).js new file mode 100644 index 0000000000000..b1a57daed00d9 --- /dev/null +++ b/tests/baselines/reference/es5-commonjs(target=es2015).js @@ -0,0 +1,28 @@ +//// [tests/cases/compiler/es5-commonjs.ts] //// + +//// [es5-commonjs.ts] +export default class A +{ + constructor () + { + + } + + public B() + { + return 42; + } +} + + +//// [es5-commonjs.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +class A { + constructor() { + } + B() { + return 42; + } +} +exports.default = A; diff --git a/tests/baselines/reference/es5-commonjs.symbols b/tests/baselines/reference/es5-commonjs(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es5-commonjs.symbols rename to tests/baselines/reference/es5-commonjs(target=es2015).symbols diff --git a/tests/baselines/reference/es5-commonjs.types b/tests/baselines/reference/es5-commonjs(target=es2015).types similarity index 100% rename from tests/baselines/reference/es5-commonjs.types rename to tests/baselines/reference/es5-commonjs(target=es2015).types diff --git a/tests/baselines/reference/es5-commonjs.js b/tests/baselines/reference/es5-commonjs(target=es5).js similarity index 100% rename from tests/baselines/reference/es5-commonjs.js rename to tests/baselines/reference/es5-commonjs(target=es5).js diff --git a/tests/baselines/reference/es5-commonjs(target=es5).symbols b/tests/baselines/reference/es5-commonjs(target=es5).symbols new file mode 100644 index 0000000000000..3f7fc460cf008 --- /dev/null +++ b/tests/baselines/reference/es5-commonjs(target=es5).symbols @@ -0,0 +1,18 @@ +//// [tests/cases/compiler/es5-commonjs.ts] //// + +=== es5-commonjs.ts === +export default class A +>A : Symbol(A, Decl(es5-commonjs.ts, 0, 0)) +{ + constructor () + { + + } + + public B() +>B : Symbol(A.B, Decl(es5-commonjs.ts, 5, 5)) + { + return 42; + } +} + diff --git a/tests/baselines/reference/es5-commonjs(target=es5).types b/tests/baselines/reference/es5-commonjs(target=es5).types new file mode 100644 index 0000000000000..59923834f34d2 --- /dev/null +++ b/tests/baselines/reference/es5-commonjs(target=es5).types @@ -0,0 +1,22 @@ +//// [tests/cases/compiler/es5-commonjs.ts] //// + +=== es5-commonjs.ts === +export default class A +>A : A +> : ^ +{ + constructor () + { + + } + + public B() +>B : () => number +> : ^^^^^^^^^^^^ + { + return 42; +>42 : 42 +> : ^^ + } +} + diff --git a/tests/baselines/reference/es5-commonjs2.js b/tests/baselines/reference/es5-commonjs2(target=es2015).js similarity index 100% rename from tests/baselines/reference/es5-commonjs2.js rename to tests/baselines/reference/es5-commonjs2(target=es2015).js diff --git a/tests/baselines/reference/es5-commonjs2.symbols b/tests/baselines/reference/es5-commonjs2(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es5-commonjs2.symbols rename to tests/baselines/reference/es5-commonjs2(target=es2015).symbols diff --git a/tests/baselines/reference/es5-commonjs2.types b/tests/baselines/reference/es5-commonjs2(target=es2015).types similarity index 100% rename from tests/baselines/reference/es5-commonjs2.types rename to tests/baselines/reference/es5-commonjs2(target=es2015).types diff --git a/tests/baselines/reference/es5-commonjs2(target=es5).js b/tests/baselines/reference/es5-commonjs2(target=es5).js new file mode 100644 index 0000000000000..7bed889e42c9d --- /dev/null +++ b/tests/baselines/reference/es5-commonjs2(target=es5).js @@ -0,0 +1,10 @@ +//// [tests/cases/compiler/es5-commonjs2.ts] //// + +//// [es5-commonjs2.ts] +export default 1; + + +//// [es5-commonjs2.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = 1; diff --git a/tests/baselines/reference/es5-commonjs2(target=es5).symbols b/tests/baselines/reference/es5-commonjs2(target=es5).symbols new file mode 100644 index 0000000000000..57f54fd4211d2 --- /dev/null +++ b/tests/baselines/reference/es5-commonjs2(target=es5).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/compiler/es5-commonjs2.ts] //// + +=== es5-commonjs2.ts === + +export default 1; + diff --git a/tests/baselines/reference/es5-commonjs2(target=es5).types b/tests/baselines/reference/es5-commonjs2(target=es5).types new file mode 100644 index 0000000000000..57f54fd4211d2 --- /dev/null +++ b/tests/baselines/reference/es5-commonjs2(target=es5).types @@ -0,0 +1,6 @@ +//// [tests/cases/compiler/es5-commonjs2.ts] //// + +=== es5-commonjs2.ts === + +export default 1; + diff --git a/tests/baselines/reference/es5-commonjs3.errors.txt b/tests/baselines/reference/es5-commonjs3(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/es5-commonjs3.errors.txt rename to tests/baselines/reference/es5-commonjs3(target=es2015).errors.txt diff --git a/tests/baselines/reference/es5-commonjs3.js b/tests/baselines/reference/es5-commonjs3(target=es2015).js similarity index 100% rename from tests/baselines/reference/es5-commonjs3.js rename to tests/baselines/reference/es5-commonjs3(target=es2015).js diff --git a/tests/baselines/reference/es5-commonjs3.symbols b/tests/baselines/reference/es5-commonjs3(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es5-commonjs3.symbols rename to tests/baselines/reference/es5-commonjs3(target=es2015).symbols diff --git a/tests/baselines/reference/es5-commonjs3.types b/tests/baselines/reference/es5-commonjs3(target=es2015).types similarity index 100% rename from tests/baselines/reference/es5-commonjs3.types rename to tests/baselines/reference/es5-commonjs3(target=es2015).types diff --git a/tests/baselines/reference/es5-commonjs3(target=es5).errors.txt b/tests/baselines/reference/es5-commonjs3(target=es5).errors.txt new file mode 100644 index 0000000000000..c1033f1d6bd2c --- /dev/null +++ b/tests/baselines/reference/es5-commonjs3(target=es5).errors.txt @@ -0,0 +1,9 @@ +es5-commonjs3.ts(2,12): error TS1216: Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules. + + +==== es5-commonjs3.ts (1 errors) ==== + export default "test"; + export var __esModule = 1; + ~~~~~~~~~~ +!!! error TS1216: Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules. + \ No newline at end of file diff --git a/tests/baselines/reference/es5-commonjs3(target=es5).js b/tests/baselines/reference/es5-commonjs3(target=es5).js new file mode 100644 index 0000000000000..06816fdea8baa --- /dev/null +++ b/tests/baselines/reference/es5-commonjs3(target=es5).js @@ -0,0 +1,13 @@ +//// [tests/cases/compiler/es5-commonjs3.ts] //// + +//// [es5-commonjs3.ts] +export default "test"; +export var __esModule = 1; + + +//// [es5-commonjs3.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.__esModule = void 0; +exports.default = "test"; +exports.__esModule = 1; diff --git a/tests/baselines/reference/es5-commonjs3(target=es5).symbols b/tests/baselines/reference/es5-commonjs3(target=es5).symbols new file mode 100644 index 0000000000000..2a8e50ba3bde6 --- /dev/null +++ b/tests/baselines/reference/es5-commonjs3(target=es5).symbols @@ -0,0 +1,7 @@ +//// [tests/cases/compiler/es5-commonjs3.ts] //// + +=== es5-commonjs3.ts === +export default "test"; +export var __esModule = 1; +>__esModule : Symbol(__esModule, Decl(es5-commonjs3.ts, 1, 10)) + diff --git a/tests/baselines/reference/es5-commonjs3(target=es5).types b/tests/baselines/reference/es5-commonjs3(target=es5).types new file mode 100644 index 0000000000000..ab8d3a14fd877 --- /dev/null +++ b/tests/baselines/reference/es5-commonjs3(target=es5).types @@ -0,0 +1,10 @@ +//// [tests/cases/compiler/es5-commonjs3.ts] //// + +=== es5-commonjs3.ts === +export default "test"; +export var __esModule = 1; +>__esModule : number +> : ^^^^^^ +>1 : 1 +> : ^ + diff --git a/tests/baselines/reference/es5-commonjs4.errors.txt b/tests/baselines/reference/es5-commonjs4(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/es5-commonjs4.errors.txt rename to tests/baselines/reference/es5-commonjs4(target=es2015).errors.txt diff --git a/tests/baselines/reference/es5-commonjs4(target=es2015).js b/tests/baselines/reference/es5-commonjs4(target=es2015).js new file mode 100644 index 0000000000000..5b580357cffb2 --- /dev/null +++ b/tests/baselines/reference/es5-commonjs4(target=es2015).js @@ -0,0 +1,31 @@ +//// [tests/cases/compiler/es5-commonjs4.ts] //// + +//// [es5-commonjs4.ts] +export default class A +{ + constructor () + { + + } + + public B() + { + return 42; + } +} +export var __esModule = 1; + + +//// [es5-commonjs4.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.__esModule = void 0; +class A { + constructor() { + } + B() { + return 42; + } +} +exports.default = A; +exports.__esModule = 1; diff --git a/tests/baselines/reference/es5-commonjs4.symbols b/tests/baselines/reference/es5-commonjs4(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es5-commonjs4.symbols rename to tests/baselines/reference/es5-commonjs4(target=es2015).symbols diff --git a/tests/baselines/reference/es5-commonjs4.types b/tests/baselines/reference/es5-commonjs4(target=es2015).types similarity index 100% rename from tests/baselines/reference/es5-commonjs4.types rename to tests/baselines/reference/es5-commonjs4(target=es2015).types diff --git a/tests/baselines/reference/es5-commonjs4(target=es5).errors.txt b/tests/baselines/reference/es5-commonjs4(target=es5).errors.txt new file mode 100644 index 0000000000000..d5b48cbb11c81 --- /dev/null +++ b/tests/baselines/reference/es5-commonjs4(target=es5).errors.txt @@ -0,0 +1,20 @@ +es5-commonjs4.ts(13,12): error TS1216: Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules. + + +==== es5-commonjs4.ts (1 errors) ==== + export default class A + { + constructor () + { + + } + + public B() + { + return 42; + } + } + export var __esModule = 1; + ~~~~~~~~~~ +!!! error TS1216: Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules. + \ No newline at end of file diff --git a/tests/baselines/reference/es5-commonjs4.js b/tests/baselines/reference/es5-commonjs4(target=es5).js similarity index 100% rename from tests/baselines/reference/es5-commonjs4.js rename to tests/baselines/reference/es5-commonjs4(target=es5).js diff --git a/tests/baselines/reference/es5-commonjs4(target=es5).symbols b/tests/baselines/reference/es5-commonjs4(target=es5).symbols new file mode 100644 index 0000000000000..c09e7c1c5bd2b --- /dev/null +++ b/tests/baselines/reference/es5-commonjs4(target=es5).symbols @@ -0,0 +1,20 @@ +//// [tests/cases/compiler/es5-commonjs4.ts] //// + +=== es5-commonjs4.ts === +export default class A +>A : Symbol(A, Decl(es5-commonjs4.ts, 0, 0)) +{ + constructor () + { + + } + + public B() +>B : Symbol(A.B, Decl(es5-commonjs4.ts, 5, 5)) + { + return 42; + } +} +export var __esModule = 1; +>__esModule : Symbol(__esModule, Decl(es5-commonjs4.ts, 12, 10)) + diff --git a/tests/baselines/reference/es5-commonjs4(target=es5).types b/tests/baselines/reference/es5-commonjs4(target=es5).types new file mode 100644 index 0000000000000..c3bad27274ffa --- /dev/null +++ b/tests/baselines/reference/es5-commonjs4(target=es5).types @@ -0,0 +1,27 @@ +//// [tests/cases/compiler/es5-commonjs4.ts] //// + +=== es5-commonjs4.ts === +export default class A +>A : A +> : ^ +{ + constructor () + { + + } + + public B() +>B : () => number +> : ^^^^^^^^^^^^ + { + return 42; +>42 : 42 +> : ^^ + } +} +export var __esModule = 1; +>__esModule : number +> : ^^^^^^ +>1 : 1 +> : ^ + diff --git a/tests/baselines/reference/es5-commonjs5.js b/tests/baselines/reference/es5-commonjs5(target=es2015).js similarity index 100% rename from tests/baselines/reference/es5-commonjs5.js rename to tests/baselines/reference/es5-commonjs5(target=es2015).js diff --git a/tests/baselines/reference/es5-commonjs5.symbols b/tests/baselines/reference/es5-commonjs5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es5-commonjs5.symbols rename to tests/baselines/reference/es5-commonjs5(target=es2015).symbols diff --git a/tests/baselines/reference/es5-commonjs5.types b/tests/baselines/reference/es5-commonjs5(target=es2015).types similarity index 100% rename from tests/baselines/reference/es5-commonjs5.types rename to tests/baselines/reference/es5-commonjs5(target=es2015).types diff --git a/tests/baselines/reference/es5-commonjs5(target=es5).js b/tests/baselines/reference/es5-commonjs5(target=es5).js new file mode 100644 index 0000000000000..4afa6326de608 --- /dev/null +++ b/tests/baselines/reference/es5-commonjs5(target=es5).js @@ -0,0 +1,15 @@ +//// [tests/cases/compiler/es5-commonjs5.ts] //// + +//// [es5-commonjs5.ts] +export default function () { + return "test"; +} + + +//// [es5-commonjs5.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = default_1; +function default_1() { + return "test"; +} diff --git a/tests/baselines/reference/es5-commonjs5(target=es5).symbols b/tests/baselines/reference/es5-commonjs5(target=es5).symbols new file mode 100644 index 0000000000000..66d334b20e5b0 --- /dev/null +++ b/tests/baselines/reference/es5-commonjs5(target=es5).symbols @@ -0,0 +1,8 @@ +//// [tests/cases/compiler/es5-commonjs5.ts] //// + +=== es5-commonjs5.ts === + +export default function () { + return "test"; +} + diff --git a/tests/baselines/reference/es5-commonjs5(target=es5).types b/tests/baselines/reference/es5-commonjs5(target=es5).types new file mode 100644 index 0000000000000..e0a2cc44bd722 --- /dev/null +++ b/tests/baselines/reference/es5-commonjs5(target=es5).types @@ -0,0 +1,9 @@ +//// [tests/cases/compiler/es5-commonjs5.ts] //// + +=== es5-commonjs5.ts === +export default function () { + return "test"; +>"test" : "test" +> : ^^^^^^ +} + diff --git a/tests/baselines/reference/es5-commonjs6.js b/tests/baselines/reference/es5-commonjs6(target=es2015).js similarity index 100% rename from tests/baselines/reference/es5-commonjs6.js rename to tests/baselines/reference/es5-commonjs6(target=es2015).js diff --git a/tests/baselines/reference/es5-commonjs6.symbols b/tests/baselines/reference/es5-commonjs6(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es5-commonjs6.symbols rename to tests/baselines/reference/es5-commonjs6(target=es2015).symbols diff --git a/tests/baselines/reference/es5-commonjs6.types b/tests/baselines/reference/es5-commonjs6(target=es2015).types similarity index 100% rename from tests/baselines/reference/es5-commonjs6.types rename to tests/baselines/reference/es5-commonjs6(target=es2015).types diff --git a/tests/baselines/reference/es5-commonjs6(target=es5).js b/tests/baselines/reference/es5-commonjs6(target=es5).js new file mode 100644 index 0000000000000..7394b9ab1f93f --- /dev/null +++ b/tests/baselines/reference/es5-commonjs6(target=es5).js @@ -0,0 +1,12 @@ +//// [tests/cases/compiler/es5-commonjs6.ts] //// + +//// [es5-commonjs6.ts] +export default "test"; +var __esModule = 1; + + +//// [es5-commonjs6.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = "test"; +var __esModule = 1; diff --git a/tests/baselines/reference/es5-commonjs6(target=es5).symbols b/tests/baselines/reference/es5-commonjs6(target=es5).symbols new file mode 100644 index 0000000000000..8ec4f4b77fe64 --- /dev/null +++ b/tests/baselines/reference/es5-commonjs6(target=es5).symbols @@ -0,0 +1,7 @@ +//// [tests/cases/compiler/es5-commonjs6.ts] //// + +=== es5-commonjs6.ts === +export default "test"; +var __esModule = 1; +>__esModule : Symbol(__esModule, Decl(es5-commonjs6.ts, 1, 3)) + diff --git a/tests/baselines/reference/es5-commonjs6(target=es5).types b/tests/baselines/reference/es5-commonjs6(target=es5).types new file mode 100644 index 0000000000000..e92f03041824a --- /dev/null +++ b/tests/baselines/reference/es5-commonjs6(target=es5).types @@ -0,0 +1,10 @@ +//// [tests/cases/compiler/es5-commonjs6.ts] //// + +=== es5-commonjs6.ts === +export default "test"; +var __esModule = 1; +>__esModule : number +> : ^^^^^^ +>1 : 1 +> : ^ + diff --git a/tests/baselines/reference/es5-commonjs7.symbols b/tests/baselines/reference/es5-commonjs7(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es5-commonjs7.symbols rename to tests/baselines/reference/es5-commonjs7(target=es2015).symbols diff --git a/tests/baselines/reference/es5-commonjs7.types b/tests/baselines/reference/es5-commonjs7(target=es2015).types similarity index 100% rename from tests/baselines/reference/es5-commonjs7.types rename to tests/baselines/reference/es5-commonjs7(target=es2015).types diff --git a/tests/baselines/reference/es5-commonjs7(target=es5).symbols b/tests/baselines/reference/es5-commonjs7(target=es5).symbols new file mode 100644 index 0000000000000..ed879bfce8066 --- /dev/null +++ b/tests/baselines/reference/es5-commonjs7(target=es5).symbols @@ -0,0 +1,9 @@ +//// [tests/cases/compiler/es5-commonjs7.ts] //// + +=== test.d.ts === +export default undefined; +>undefined : Symbol(undefined) + +export var __esModule; +>__esModule : Symbol(__esModule, Decl(test.d.ts, 1, 10)) + diff --git a/tests/baselines/reference/es5-commonjs7(target=es5).types b/tests/baselines/reference/es5-commonjs7(target=es5).types new file mode 100644 index 0000000000000..ef1c0b94bb99c --- /dev/null +++ b/tests/baselines/reference/es5-commonjs7(target=es5).types @@ -0,0 +1,10 @@ +//// [tests/cases/compiler/es5-commonjs7.ts] //// + +=== test.d.ts === +export default undefined; +>undefined : undefined +> : ^^^^^^^^^ + +export var __esModule; +>__esModule : any + diff --git a/tests/baselines/reference/es5-commonjs8.symbols b/tests/baselines/reference/es5-commonjs8(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es5-commonjs8.symbols rename to tests/baselines/reference/es5-commonjs8(target=es2015).symbols diff --git a/tests/baselines/reference/es5-commonjs8.types b/tests/baselines/reference/es5-commonjs8(target=es2015).types similarity index 100% rename from tests/baselines/reference/es5-commonjs8.types rename to tests/baselines/reference/es5-commonjs8(target=es2015).types diff --git a/tests/baselines/reference/es5-commonjs8(target=es5).symbols b/tests/baselines/reference/es5-commonjs8(target=es5).symbols new file mode 100644 index 0000000000000..c3ff6ae441dda --- /dev/null +++ b/tests/baselines/reference/es5-commonjs8(target=es5).symbols @@ -0,0 +1,7 @@ +//// [tests/cases/compiler/es5-commonjs8.ts] //// + +=== es5-commonjs8.ts === +export default "test"; +export var __esModule = 1; +>__esModule : Symbol(__esModule, Decl(es5-commonjs8.ts, 1, 10)) + diff --git a/tests/baselines/reference/es5-commonjs8(target=es5).types b/tests/baselines/reference/es5-commonjs8(target=es5).types new file mode 100644 index 0000000000000..8e9ee84ef1cbe --- /dev/null +++ b/tests/baselines/reference/es5-commonjs8(target=es5).types @@ -0,0 +1,10 @@ +//// [tests/cases/compiler/es5-commonjs8.ts] //// + +=== es5-commonjs8.ts === +export default "test"; +export var __esModule = 1; +>__esModule : number +> : ^^^^^^ +>1 : 1 +> : ^ + diff --git a/tests/baselines/reference/es5-declaration-amd.errors.txt b/tests/baselines/reference/es5-declaration-amd(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/es5-declaration-amd.errors.txt rename to tests/baselines/reference/es5-declaration-amd(target=es2015).errors.txt diff --git a/tests/baselines/reference/es5-declaration-amd(target=es2015).js b/tests/baselines/reference/es5-declaration-amd(target=es2015).js new file mode 100644 index 0000000000000..f553fe39909a8 --- /dev/null +++ b/tests/baselines/reference/es5-declaration-amd(target=es2015).js @@ -0,0 +1,31 @@ +//// [tests/cases/compiler/es5-declaration-amd.ts] //// + +//// [es5-declaration-amd.ts] +class A +{ + constructor () + { + + } + + public B() + { + return 42; + } +} + +//// [es5-declaration-amd.js] +class A { + constructor() { + } + B() { + return 42; + } +} + + +//// [es5-declaration-amd.d.ts] +declare class A { + constructor(); + B(): number; +} diff --git a/tests/baselines/reference/es5-declaration-amd.symbols b/tests/baselines/reference/es5-declaration-amd(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es5-declaration-amd.symbols rename to tests/baselines/reference/es5-declaration-amd(target=es2015).symbols diff --git a/tests/baselines/reference/es5-declaration-amd.types b/tests/baselines/reference/es5-declaration-amd(target=es2015).types similarity index 100% rename from tests/baselines/reference/es5-declaration-amd.types rename to tests/baselines/reference/es5-declaration-amd(target=es2015).types diff --git a/tests/baselines/reference/es5-declaration-amd(target=es5).errors.txt b/tests/baselines/reference/es5-declaration-amd(target=es5).errors.txt new file mode 100644 index 0000000000000..3fe9c569c8803 --- /dev/null +++ b/tests/baselines/reference/es5-declaration-amd(target=es5).errors.txt @@ -0,0 +1,17 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== es5-declaration-amd.ts (0 errors) ==== + class A + { + constructor () + { + + } + + public B() + { + return 42; + } + } \ No newline at end of file diff --git a/tests/baselines/reference/es5-declaration-amd.js b/tests/baselines/reference/es5-declaration-amd(target=es5).js similarity index 100% rename from tests/baselines/reference/es5-declaration-amd.js rename to tests/baselines/reference/es5-declaration-amd(target=es5).js diff --git a/tests/baselines/reference/es5-declaration-amd(target=es5).symbols b/tests/baselines/reference/es5-declaration-amd(target=es5).symbols new file mode 100644 index 0000000000000..b059325729676 --- /dev/null +++ b/tests/baselines/reference/es5-declaration-amd(target=es5).symbols @@ -0,0 +1,17 @@ +//// [tests/cases/compiler/es5-declaration-amd.ts] //// + +=== es5-declaration-amd.ts === +class A +>A : Symbol(A, Decl(es5-declaration-amd.ts, 0, 0)) +{ + constructor () + { + + } + + public B() +>B : Symbol(A.B, Decl(es5-declaration-amd.ts, 5, 5)) + { + return 42; + } +} diff --git a/tests/baselines/reference/es5-declaration-amd(target=es5).types b/tests/baselines/reference/es5-declaration-amd(target=es5).types new file mode 100644 index 0000000000000..d129b698529a5 --- /dev/null +++ b/tests/baselines/reference/es5-declaration-amd(target=es5).types @@ -0,0 +1,21 @@ +//// [tests/cases/compiler/es5-declaration-amd.ts] //// + +=== es5-declaration-amd.ts === +class A +>A : A +> : ^ +{ + constructor () + { + + } + + public B() +>B : () => number +> : ^^^^^^^^^^^^ + { + return 42; +>42 : 42 +> : ^^ + } +} diff --git a/tests/baselines/reference/es5-importHelpersAsyncFunctions(target=es2015).js b/tests/baselines/reference/es5-importHelpersAsyncFunctions(target=es2015).js new file mode 100644 index 0000000000000..8b72880ab0264 --- /dev/null +++ b/tests/baselines/reference/es5-importHelpersAsyncFunctions(target=es2015).js @@ -0,0 +1,42 @@ +//// [tests/cases/compiler/es5-importHelpersAsyncFunctions.ts] //// + +//// [external.ts] +export async function foo() { +} + +//// [script.ts] +async function foo() { +} + +//// [index.d.ts] +export declare function __extends(d: Function, b: Function): void; +export declare function __assign(t: any, ...sources: any[]): any; +export declare function __decorate(decorators: Function[], target: any, key?: string | symbol, desc?: any): any; +export declare function __param(paramIndex: number, decorator: Function): Function; +export declare function __metadata(metadataKey: any, metadataValue: any): Function; +export declare function __awaiter(thisArg: any, _arguments: any, P: Function, generator: Function): any; +export declare function __generator(body: Function): any; + +//// [external.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.foo = foo; +const tslib_1 = require("tslib"); +function foo() { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + }); +} +//// [script.js] +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +function foo() { + return __awaiter(this, void 0, void 0, function* () { + }); +} diff --git a/tests/baselines/reference/es5-importHelpersAsyncFunctions.symbols b/tests/baselines/reference/es5-importHelpersAsyncFunctions(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es5-importHelpersAsyncFunctions.symbols rename to tests/baselines/reference/es5-importHelpersAsyncFunctions(target=es2015).symbols diff --git a/tests/baselines/reference/es5-importHelpersAsyncFunctions.types b/tests/baselines/reference/es5-importHelpersAsyncFunctions(target=es2015).types similarity index 100% rename from tests/baselines/reference/es5-importHelpersAsyncFunctions.types rename to tests/baselines/reference/es5-importHelpersAsyncFunctions(target=es2015).types diff --git a/tests/baselines/reference/es5-importHelpersAsyncFunctions.js b/tests/baselines/reference/es5-importHelpersAsyncFunctions(target=es5).js similarity index 100% rename from tests/baselines/reference/es5-importHelpersAsyncFunctions.js rename to tests/baselines/reference/es5-importHelpersAsyncFunctions(target=es5).js diff --git a/tests/baselines/reference/es5-importHelpersAsyncFunctions(target=es5).symbols b/tests/baselines/reference/es5-importHelpersAsyncFunctions(target=es5).symbols new file mode 100644 index 0000000000000..5781f210fb6c1 --- /dev/null +++ b/tests/baselines/reference/es5-importHelpersAsyncFunctions(target=es5).symbols @@ -0,0 +1,60 @@ +//// [tests/cases/compiler/es5-importHelpersAsyncFunctions.ts] //// + +=== external.ts === +export async function foo() { +>foo : Symbol(foo, Decl(external.ts, 0, 0)) +} + +=== script.ts === +async function foo() { +>foo : Symbol(foo, Decl(script.ts, 0, 0)) +} + +=== node_modules/tslib/index.d.ts === +export declare function __extends(d: Function, b: Function): void; +>__extends : Symbol(__extends, Decl(index.d.ts, 0, 0)) +>d : Symbol(d, Decl(index.d.ts, 0, 34)) +>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>b : Symbol(b, Decl(index.d.ts, 0, 46)) +>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) + +export declare function __assign(t: any, ...sources: any[]): any; +>__assign : Symbol(__assign, Decl(index.d.ts, 0, 66)) +>t : Symbol(t, Decl(index.d.ts, 1, 33)) +>sources : Symbol(sources, Decl(index.d.ts, 1, 40)) + +export declare function __decorate(decorators: Function[], target: any, key?: string | symbol, desc?: any): any; +>__decorate : Symbol(__decorate, Decl(index.d.ts, 1, 65)) +>decorators : Symbol(decorators, Decl(index.d.ts, 2, 35)) +>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>target : Symbol(target, Decl(index.d.ts, 2, 58)) +>key : Symbol(key, Decl(index.d.ts, 2, 71)) +>desc : Symbol(desc, Decl(index.d.ts, 2, 94)) + +export declare function __param(paramIndex: number, decorator: Function): Function; +>__param : Symbol(__param, Decl(index.d.ts, 2, 112)) +>paramIndex : Symbol(paramIndex, Decl(index.d.ts, 3, 32)) +>decorator : Symbol(decorator, Decl(index.d.ts, 3, 51)) +>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) + +export declare function __metadata(metadataKey: any, metadataValue: any): Function; +>__metadata : Symbol(__metadata, Decl(index.d.ts, 3, 83)) +>metadataKey : Symbol(metadataKey, Decl(index.d.ts, 4, 35)) +>metadataValue : Symbol(metadataValue, Decl(index.d.ts, 4, 52)) +>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) + +export declare function __awaiter(thisArg: any, _arguments: any, P: Function, generator: Function): any; +>__awaiter : Symbol(__awaiter, Decl(index.d.ts, 4, 83)) +>thisArg : Symbol(thisArg, Decl(index.d.ts, 5, 34)) +>_arguments : Symbol(_arguments, Decl(index.d.ts, 5, 47)) +>P : Symbol(P, Decl(index.d.ts, 5, 64)) +>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>generator : Symbol(generator, Decl(index.d.ts, 5, 77)) +>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) + +export declare function __generator(body: Function): any; +>__generator : Symbol(__generator, Decl(index.d.ts, 5, 104)) +>body : Symbol(body, Decl(index.d.ts, 6, 36)) +>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) + diff --git a/tests/baselines/reference/es5-importHelpersAsyncFunctions(target=es5).types b/tests/baselines/reference/es5-importHelpersAsyncFunctions(target=es5).types new file mode 100644 index 0000000000000..6a5b209059eb6 --- /dev/null +++ b/tests/baselines/reference/es5-importHelpersAsyncFunctions(target=es5).types @@ -0,0 +1,70 @@ +//// [tests/cases/compiler/es5-importHelpersAsyncFunctions.ts] //// + +=== external.ts === +export async function foo() { +>foo : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ +} + +=== script.ts === +async function foo() { +>foo : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ +} + +=== node_modules/tslib/index.d.ts === +export declare function __extends(d: Function, b: Function): void; +>__extends : (d: Function, b: Function) => void +> : ^ ^^ ^^ ^^ ^^^^^ +>d : Function +> : ^^^^^^^^ +>b : Function +> : ^^^^^^^^ + +export declare function __assign(t: any, ...sources: any[]): any; +>__assign : (t: any, ...sources: any[]) => any +> : ^ ^^ ^^^^^ ^^ ^^^^^ +>t : any +>sources : any[] +> : ^^^^^ + +export declare function __decorate(decorators: Function[], target: any, key?: string | symbol, desc?: any): any; +>__decorate : (decorators: Function[], target: any, key?: string | symbol, desc?: any) => any +> : ^ ^^ ^^ ^^ ^^ ^^^ ^^ ^^^ ^^^^^ +>decorators : Function[] +> : ^^^^^^^^^^ +>target : any +>key : string | symbol +> : ^^^^^^^^^^^^^^^ +>desc : any + +export declare function __param(paramIndex: number, decorator: Function): Function; +>__param : (paramIndex: number, decorator: Function) => Function +> : ^ ^^ ^^ ^^ ^^^^^ +>paramIndex : number +> : ^^^^^^ +>decorator : Function +> : ^^^^^^^^ + +export declare function __metadata(metadataKey: any, metadataValue: any): Function; +>__metadata : (metadataKey: any, metadataValue: any) => Function +> : ^ ^^ ^^ ^^ ^^^^^ +>metadataKey : any +>metadataValue : any + +export declare function __awaiter(thisArg: any, _arguments: any, P: Function, generator: Function): any; +>__awaiter : (thisArg: any, _arguments: any, P: Function, generator: Function) => any +> : ^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>thisArg : any +>_arguments : any +>P : Function +> : ^^^^^^^^ +>generator : Function +> : ^^^^^^^^ + +export declare function __generator(body: Function): any; +>__generator : (body: Function) => any +> : ^ ^^ ^^^^^ +>body : Function +> : ^^^^^^^^ + diff --git a/tests/baselines/reference/es5-oldStyleOctalLiteralInEnums.errors.txt b/tests/baselines/reference/es5-oldStyleOctalLiteralInEnums(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/es5-oldStyleOctalLiteralInEnums.errors.txt rename to tests/baselines/reference/es5-oldStyleOctalLiteralInEnums(target=es2015).errors.txt diff --git a/tests/baselines/reference/es5-oldStyleOctalLiteralInEnums.js b/tests/baselines/reference/es5-oldStyleOctalLiteralInEnums(target=es2015).js similarity index 100% rename from tests/baselines/reference/es5-oldStyleOctalLiteralInEnums.js rename to tests/baselines/reference/es5-oldStyleOctalLiteralInEnums(target=es2015).js diff --git a/tests/baselines/reference/es5-oldStyleOctalLiteralInEnums.symbols b/tests/baselines/reference/es5-oldStyleOctalLiteralInEnums(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es5-oldStyleOctalLiteralInEnums.symbols rename to tests/baselines/reference/es5-oldStyleOctalLiteralInEnums(target=es2015).symbols diff --git a/tests/baselines/reference/es5-oldStyleOctalLiteralInEnums.types b/tests/baselines/reference/es5-oldStyleOctalLiteralInEnums(target=es2015).types similarity index 100% rename from tests/baselines/reference/es5-oldStyleOctalLiteralInEnums.types rename to tests/baselines/reference/es5-oldStyleOctalLiteralInEnums(target=es2015).types diff --git a/tests/baselines/reference/es5-oldStyleOctalLiteralInEnums(target=es5).errors.txt b/tests/baselines/reference/es5-oldStyleOctalLiteralInEnums(target=es5).errors.txt new file mode 100644 index 0000000000000..116b3b0dc059d --- /dev/null +++ b/tests/baselines/reference/es5-oldStyleOctalLiteralInEnums(target=es5).errors.txt @@ -0,0 +1,13 @@ +es5-oldStyleOctalLiteralInEnums.ts(2,7): error TS1121: Octal literals are not allowed. Use the syntax '-0o1'. +es5-oldStyleOctalLiteralInEnums.ts(3,7): error TS1121: Octal literals are not allowed. Use the syntax '0o2'. + + +==== es5-oldStyleOctalLiteralInEnums.ts (2 errors) ==== + enum E { + x = -01, + ~~~ +!!! error TS1121: Octal literals are not allowed. Use the syntax '-0o1'. + y = 02, + ~~ +!!! error TS1121: Octal literals are not allowed. Use the syntax '0o2'. + } \ No newline at end of file diff --git a/tests/baselines/reference/es5-oldStyleOctalLiteralInEnums(target=es5).js b/tests/baselines/reference/es5-oldStyleOctalLiteralInEnums(target=es5).js new file mode 100644 index 0000000000000..55c3d7800a147 --- /dev/null +++ b/tests/baselines/reference/es5-oldStyleOctalLiteralInEnums(target=es5).js @@ -0,0 +1,14 @@ +//// [tests/cases/compiler/es5-oldStyleOctalLiteralInEnums.ts] //// + +//// [es5-oldStyleOctalLiteralInEnums.ts] +enum E { + x = -01, + y = 02, +} + +//// [es5-oldStyleOctalLiteralInEnums.js] +var E; +(function (E) { + E[E["x"] = -1] = "x"; + E[E["y"] = 2] = "y"; +})(E || (E = {})); diff --git a/tests/baselines/reference/es5-oldStyleOctalLiteralInEnums(target=es5).symbols b/tests/baselines/reference/es5-oldStyleOctalLiteralInEnums(target=es5).symbols new file mode 100644 index 0000000000000..df586177ee402 --- /dev/null +++ b/tests/baselines/reference/es5-oldStyleOctalLiteralInEnums(target=es5).symbols @@ -0,0 +1,12 @@ +//// [tests/cases/compiler/es5-oldStyleOctalLiteralInEnums.ts] //// + +=== es5-oldStyleOctalLiteralInEnums.ts === +enum E { +>E : Symbol(E, Decl(es5-oldStyleOctalLiteralInEnums.ts, 0, 0)) + + x = -01, +>x : Symbol(E.x, Decl(es5-oldStyleOctalLiteralInEnums.ts, 0, 8)) + + y = 02, +>y : Symbol(E.y, Decl(es5-oldStyleOctalLiteralInEnums.ts, 1, 10)) +} diff --git a/tests/baselines/reference/es5-oldStyleOctalLiteralInEnums(target=es5).types b/tests/baselines/reference/es5-oldStyleOctalLiteralInEnums(target=es5).types new file mode 100644 index 0000000000000..b3b0b9f7b2c3f --- /dev/null +++ b/tests/baselines/reference/es5-oldStyleOctalLiteralInEnums(target=es5).types @@ -0,0 +1,21 @@ +//// [tests/cases/compiler/es5-oldStyleOctalLiteralInEnums.ts] //// + +=== es5-oldStyleOctalLiteralInEnums.ts === +enum E { +>E : E +> : ^ + + x = -01, +>x : E.x +> : ^^^ +>-01 : -1 +> : ^^ +>01 : 1 +> : ^ + + y = 02, +>y : E.y +> : ^^^ +>02 : 2 +> : ^ +} diff --git a/tests/baselines/reference/es5-souremap-amd.errors.txt b/tests/baselines/reference/es5-souremap-amd(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/es5-souremap-amd.errors.txt rename to tests/baselines/reference/es5-souremap-amd(target=es2015).errors.txt diff --git a/tests/baselines/reference/es5-souremap-amd(target=es2015).js b/tests/baselines/reference/es5-souremap-amd(target=es2015).js new file mode 100644 index 0000000000000..22bc25eef9282 --- /dev/null +++ b/tests/baselines/reference/es5-souremap-amd(target=es2015).js @@ -0,0 +1,25 @@ +//// [tests/cases/compiler/es5-souremap-amd.ts] //// + +//// [es5-souremap-amd.ts] +class A +{ + constructor () + { + + } + + public B() + { + return 42; + } +} + +//// [es5-souremap-amd.js] +class A { + constructor() { + } + B() { + return 42; + } +} +//# sourceMappingURL=es5-souremap-amd.js.map \ No newline at end of file diff --git a/tests/baselines/reference/es5-souremap-amd(target=es2015).js.map b/tests/baselines/reference/es5-souremap-amd(target=es2015).js.map new file mode 100644 index 0000000000000..a3290845d2996 --- /dev/null +++ b/tests/baselines/reference/es5-souremap-amd(target=es2015).js.map @@ -0,0 +1,3 @@ +//// [es5-souremap-amd.js.map] +{"version":3,"file":"es5-souremap-amd.js","sourceRoot":"","sources":["es5-souremap-amd.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC;IAEH;IAGA,CAAC;IAEM,CAAC;QAEJ,OAAO,EAAE,CAAC;IACd,CAAC;CACJ"} +//// https://sokra.github.io/source-map-visualization#base64,Y2xhc3MgQSB7DQogICAgY29uc3RydWN0b3IoKSB7DQogICAgfQ0KICAgIEIoKSB7DQogICAgICAgIHJldHVybiA0MjsNCiAgICB9DQp9DQovLyMgc291cmNlTWFwcGluZ1VSTD1lczUtc291cmVtYXAtYW1kLmpzLm1hcA==,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXM1LXNvdXJlbWFwLWFtZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImVzNS1zb3VyZW1hcC1hbWQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxDQUFDO0lBRUg7SUFHQSxDQUFDO0lBRU0sQ0FBQztRQUVKLE9BQU8sRUFBRSxDQUFDO0lBQ2QsQ0FBQztDQUNKIn0=,Y2xhc3MgQQp7CiAgICBjb25zdHJ1Y3RvciAoKQogICAgewoKICAgIH0KCiAgICBwdWJsaWMgQigpCiAgICB7CiAgICAgICAgcmV0dXJuIDQyOwogICAgfQp9 diff --git a/tests/baselines/reference/es5-souremap-amd(target=es2015).sourcemap.txt b/tests/baselines/reference/es5-souremap-amd(target=es2015).sourcemap.txt new file mode 100644 index 0000000000000..135d10ebfe9ec --- /dev/null +++ b/tests/baselines/reference/es5-souremap-amd(target=es2015).sourcemap.txt @@ -0,0 +1,86 @@ +=================================================================== +JsFile: es5-souremap-amd.js +mapUrl: es5-souremap-amd.js.map +sourceRoot: +sources: es5-souremap-amd.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:es5-souremap-amd.js +sourceFile:es5-souremap-amd.ts +------------------------------------------------------------------- +>>>class A { +1 > +2 >^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^-> +1 > +2 >class +3 > A +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 7) Source(1, 7) + SourceIndex(0) +3 >Emitted(1, 8) Source(1, 8) + SourceIndex(0) +--- +>>> constructor() { +1->^^^^ +2 > ^^-> +1-> + >{ + > +1->Emitted(2, 5) Source(3, 5) + SourceIndex(0) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^-> +1->constructor () + > { + > + > +2 > } +1->Emitted(3, 5) Source(6, 5) + SourceIndex(0) +2 >Emitted(3, 6) Source(6, 6) + SourceIndex(0) +--- +>>> B() { +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^-> +1-> + > + > public +2 > B +1->Emitted(4, 5) Source(8, 12) + SourceIndex(0) +2 >Emitted(4, 6) Source(8, 13) + SourceIndex(0) +--- +>>> return 42; +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^^ +4 > ^ +1->() + > { + > +2 > return +3 > 42 +4 > ; +1->Emitted(5, 9) Source(10, 9) + SourceIndex(0) +2 >Emitted(5, 16) Source(10, 16) + SourceIndex(0) +3 >Emitted(5, 18) Source(10, 18) + SourceIndex(0) +4 >Emitted(5, 19) Source(10, 19) + SourceIndex(0) +--- +>>> } +1 >^^^^ +2 > ^ +1 > + > +2 > } +1 >Emitted(6, 5) Source(11, 5) + SourceIndex(0) +2 >Emitted(6, 6) Source(11, 6) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(12, 2) + SourceIndex(0) +--- +>>>//# sourceMappingURL=es5-souremap-amd.js.map \ No newline at end of file diff --git a/tests/baselines/reference/es5-souremap-amd.symbols b/tests/baselines/reference/es5-souremap-amd(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es5-souremap-amd.symbols rename to tests/baselines/reference/es5-souremap-amd(target=es2015).symbols diff --git a/tests/baselines/reference/es5-souremap-amd.types b/tests/baselines/reference/es5-souremap-amd(target=es2015).types similarity index 100% rename from tests/baselines/reference/es5-souremap-amd.types rename to tests/baselines/reference/es5-souremap-amd(target=es2015).types diff --git a/tests/baselines/reference/es5-souremap-amd(target=es5).errors.txt b/tests/baselines/reference/es5-souremap-amd(target=es5).errors.txt new file mode 100644 index 0000000000000..93608b3b5a9e3 --- /dev/null +++ b/tests/baselines/reference/es5-souremap-amd(target=es5).errors.txt @@ -0,0 +1,17 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== es5-souremap-amd.ts (0 errors) ==== + class A + { + constructor () + { + + } + + public B() + { + return 42; + } + } \ No newline at end of file diff --git a/tests/baselines/reference/es5-souremap-amd.js b/tests/baselines/reference/es5-souremap-amd(target=es5).js similarity index 100% rename from tests/baselines/reference/es5-souremap-amd.js rename to tests/baselines/reference/es5-souremap-amd(target=es5).js diff --git a/tests/baselines/reference/es5-souremap-amd.js.map b/tests/baselines/reference/es5-souremap-amd(target=es5).js.map similarity index 100% rename from tests/baselines/reference/es5-souremap-amd.js.map rename to tests/baselines/reference/es5-souremap-amd(target=es5).js.map diff --git a/tests/baselines/reference/es5-souremap-amd.sourcemap.txt b/tests/baselines/reference/es5-souremap-amd(target=es5).sourcemap.txt similarity index 100% rename from tests/baselines/reference/es5-souremap-amd.sourcemap.txt rename to tests/baselines/reference/es5-souremap-amd(target=es5).sourcemap.txt diff --git a/tests/baselines/reference/es5-souremap-amd(target=es5).symbols b/tests/baselines/reference/es5-souremap-amd(target=es5).symbols new file mode 100644 index 0000000000000..0a51918f9c3cb --- /dev/null +++ b/tests/baselines/reference/es5-souremap-amd(target=es5).symbols @@ -0,0 +1,17 @@ +//// [tests/cases/compiler/es5-souremap-amd.ts] //// + +=== es5-souremap-amd.ts === +class A +>A : Symbol(A, Decl(es5-souremap-amd.ts, 0, 0)) +{ + constructor () + { + + } + + public B() +>B : Symbol(A.B, Decl(es5-souremap-amd.ts, 5, 5)) + { + return 42; + } +} diff --git a/tests/baselines/reference/es5-souremap-amd(target=es5).types b/tests/baselines/reference/es5-souremap-amd(target=es5).types new file mode 100644 index 0000000000000..da8b3b1ee39e3 --- /dev/null +++ b/tests/baselines/reference/es5-souremap-amd(target=es5).types @@ -0,0 +1,21 @@ +//// [tests/cases/compiler/es5-souremap-amd.ts] //// + +=== es5-souremap-amd.ts === +class A +>A : A +> : ^ +{ + constructor () + { + + } + + public B() +>B : () => number +> : ^^^^^^^^^^^^ + { + return 42; +>42 : 42 +> : ^^ + } +} diff --git a/tests/baselines/reference/es5-system.errors.txt b/tests/baselines/reference/es5-system(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/es5-system.errors.txt rename to tests/baselines/reference/es5-system(target=es2015).errors.txt diff --git a/tests/baselines/reference/es5-system(target=es2015).js b/tests/baselines/reference/es5-system(target=es2015).js new file mode 100644 index 0000000000000..0d0722c5a5780 --- /dev/null +++ b/tests/baselines/reference/es5-system(target=es2015).js @@ -0,0 +1,36 @@ +//// [tests/cases/compiler/es5-system.ts] //// + +//// [es5-system.ts] +export default class A +{ + constructor () + { + + } + + public B() + { + return 42; + } +} + + +//// [es5-system.js] +System.register([], function (exports_1, context_1) { + "use strict"; + var A; + var __moduleName = context_1 && context_1.id; + return { + setters: [], + execute: function () { + A = class A { + constructor() { + } + B() { + return 42; + } + }; + exports_1("default", A); + } + }; +}); diff --git a/tests/baselines/reference/es5-system.symbols b/tests/baselines/reference/es5-system(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es5-system.symbols rename to tests/baselines/reference/es5-system(target=es2015).symbols diff --git a/tests/baselines/reference/es5-system.types b/tests/baselines/reference/es5-system(target=es2015).types similarity index 100% rename from tests/baselines/reference/es5-system.types rename to tests/baselines/reference/es5-system(target=es2015).types diff --git a/tests/baselines/reference/es5-system(target=es5).errors.txt b/tests/baselines/reference/es5-system(target=es5).errors.txt new file mode 100644 index 0000000000000..06a0b65c67577 --- /dev/null +++ b/tests/baselines/reference/es5-system(target=es5).errors.txt @@ -0,0 +1,18 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== es5-system.ts (0 errors) ==== + export default class A + { + constructor () + { + + } + + public B() + { + return 42; + } + } + \ No newline at end of file diff --git a/tests/baselines/reference/es5-system.js b/tests/baselines/reference/es5-system(target=es5).js similarity index 100% rename from tests/baselines/reference/es5-system.js rename to tests/baselines/reference/es5-system(target=es5).js diff --git a/tests/baselines/reference/es5-system(target=es5).symbols b/tests/baselines/reference/es5-system(target=es5).symbols new file mode 100644 index 0000000000000..83b587eaf0f41 --- /dev/null +++ b/tests/baselines/reference/es5-system(target=es5).symbols @@ -0,0 +1,18 @@ +//// [tests/cases/compiler/es5-system.ts] //// + +=== es5-system.ts === +export default class A +>A : Symbol(A, Decl(es5-system.ts, 0, 0)) +{ + constructor () + { + + } + + public B() +>B : Symbol(A.B, Decl(es5-system.ts, 5, 5)) + { + return 42; + } +} + diff --git a/tests/baselines/reference/es5-system(target=es5).types b/tests/baselines/reference/es5-system(target=es5).types new file mode 100644 index 0000000000000..4b8f196a162a6 --- /dev/null +++ b/tests/baselines/reference/es5-system(target=es5).types @@ -0,0 +1,22 @@ +//// [tests/cases/compiler/es5-system.ts] //// + +=== es5-system.ts === +export default class A +>A : A +> : ^ +{ + constructor () + { + + } + + public B() +>B : () => number +> : ^^^^^^^^^^^^ + { + return 42; +>42 : 42 +> : ^^ + } +} + diff --git a/tests/baselines/reference/es5-system2.errors.txt b/tests/baselines/reference/es5-system2(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/es5-system2.errors.txt rename to tests/baselines/reference/es5-system2(target=es2015).errors.txt diff --git a/tests/baselines/reference/es5-system2.js b/tests/baselines/reference/es5-system2(target=es2015).js similarity index 100% rename from tests/baselines/reference/es5-system2.js rename to tests/baselines/reference/es5-system2(target=es2015).js diff --git a/tests/baselines/reference/es5-system2.symbols b/tests/baselines/reference/es5-system2(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es5-system2.symbols rename to tests/baselines/reference/es5-system2(target=es2015).symbols diff --git a/tests/baselines/reference/es5-system2.types b/tests/baselines/reference/es5-system2(target=es2015).types similarity index 100% rename from tests/baselines/reference/es5-system2.types rename to tests/baselines/reference/es5-system2(target=es2015).types diff --git a/tests/baselines/reference/es5-system2(target=es5).errors.txt b/tests/baselines/reference/es5-system2(target=es5).errors.txt new file mode 100644 index 0000000000000..83ae01c4962f9 --- /dev/null +++ b/tests/baselines/reference/es5-system2(target=es5).errors.txt @@ -0,0 +1,6 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== es5-system2.ts (0 errors) ==== + export var __esModule = 1; \ No newline at end of file diff --git a/tests/baselines/reference/es5-system2(target=es5).js b/tests/baselines/reference/es5-system2(target=es5).js new file mode 100644 index 0000000000000..b4e4441d9b39c --- /dev/null +++ b/tests/baselines/reference/es5-system2(target=es5).js @@ -0,0 +1,17 @@ +//// [tests/cases/compiler/es5-system2.ts] //// + +//// [es5-system2.ts] +export var __esModule = 1; + +//// [es5-system2.js] +System.register([], function (exports_1, context_1) { + "use strict"; + var __esModule; + var __moduleName = context_1 && context_1.id; + return { + setters: [], + execute: function () { + exports_1("__esModule", __esModule = 1); + } + }; +}); diff --git a/tests/baselines/reference/es5-system2(target=es5).symbols b/tests/baselines/reference/es5-system2(target=es5).symbols new file mode 100644 index 0000000000000..331ad42881df5 --- /dev/null +++ b/tests/baselines/reference/es5-system2(target=es5).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/compiler/es5-system2.ts] //// + +=== es5-system2.ts === +export var __esModule = 1; +>__esModule : Symbol(__esModule, Decl(es5-system2.ts, 0, 10)) + diff --git a/tests/baselines/reference/es5-system2(target=es5).types b/tests/baselines/reference/es5-system2(target=es5).types new file mode 100644 index 0000000000000..1bbf3a48a9621 --- /dev/null +++ b/tests/baselines/reference/es5-system2(target=es5).types @@ -0,0 +1,9 @@ +//// [tests/cases/compiler/es5-system2.ts] //// + +=== es5-system2.ts === +export var __esModule = 1; +>__esModule : number +> : ^^^^^^ +>1 : 1 +> : ^ + diff --git a/tests/baselines/reference/es5-umd.errors.txt b/tests/baselines/reference/es5-umd(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/es5-umd.errors.txt rename to tests/baselines/reference/es5-umd(target=es2015).errors.txt diff --git a/tests/baselines/reference/es5-umd(target=es2015).js b/tests/baselines/reference/es5-umd(target=es2015).js new file mode 100644 index 0000000000000..94cef49e52251 --- /dev/null +++ b/tests/baselines/reference/es5-umd(target=es2015).js @@ -0,0 +1,25 @@ +//// [tests/cases/compiler/es5-umd.ts] //// + +//// [es5-umd.ts] +class A +{ + constructor () + { + + } + + public B() + { + return 42; + } +} + + +//// [es5-umd.js] +class A { + constructor() { + } + B() { + return 42; + } +} diff --git a/tests/baselines/reference/es5-umd.symbols b/tests/baselines/reference/es5-umd(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es5-umd.symbols rename to tests/baselines/reference/es5-umd(target=es2015).symbols diff --git a/tests/baselines/reference/es5-umd.types b/tests/baselines/reference/es5-umd(target=es2015).types similarity index 100% rename from tests/baselines/reference/es5-umd.types rename to tests/baselines/reference/es5-umd(target=es2015).types diff --git a/tests/baselines/reference/es5-umd(target=es5).errors.txt b/tests/baselines/reference/es5-umd(target=es5).errors.txt new file mode 100644 index 0000000000000..be610e68b84f1 --- /dev/null +++ b/tests/baselines/reference/es5-umd(target=es5).errors.txt @@ -0,0 +1,18 @@ +error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== es5-umd.ts (0 errors) ==== + class A + { + constructor () + { + + } + + public B() + { + return 42; + } + } + \ No newline at end of file diff --git a/tests/baselines/reference/es5-umd.js b/tests/baselines/reference/es5-umd(target=es5).js similarity index 100% rename from tests/baselines/reference/es5-umd.js rename to tests/baselines/reference/es5-umd(target=es5).js diff --git a/tests/baselines/reference/es5-umd(target=es5).symbols b/tests/baselines/reference/es5-umd(target=es5).symbols new file mode 100644 index 0000000000000..62b9773fa52dc --- /dev/null +++ b/tests/baselines/reference/es5-umd(target=es5).symbols @@ -0,0 +1,18 @@ +//// [tests/cases/compiler/es5-umd.ts] //// + +=== es5-umd.ts === +class A +>A : Symbol(A, Decl(es5-umd.ts, 0, 0)) +{ + constructor () + { + + } + + public B() +>B : Symbol(A.B, Decl(es5-umd.ts, 5, 5)) + { + return 42; + } +} + diff --git a/tests/baselines/reference/es5-umd(target=es5).types b/tests/baselines/reference/es5-umd(target=es5).types new file mode 100644 index 0000000000000..c45d35ace7a4d --- /dev/null +++ b/tests/baselines/reference/es5-umd(target=es5).types @@ -0,0 +1,22 @@ +//// [tests/cases/compiler/es5-umd.ts] //// + +=== es5-umd.ts === +class A +>A : A +> : ^ +{ + constructor () + { + + } + + public B() +>B : () => number +> : ^^^^^^^^^^^^ + { + return 42; +>42 : 42 +> : ^^ + } +} + diff --git a/tests/baselines/reference/es5-umd2.errors.txt b/tests/baselines/reference/es5-umd2(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/es5-umd2.errors.txt rename to tests/baselines/reference/es5-umd2(target=es2015).errors.txt diff --git a/tests/baselines/reference/es5-umd2(target=es2015).js b/tests/baselines/reference/es5-umd2(target=es2015).js new file mode 100644 index 0000000000000..e2b45abe119fc --- /dev/null +++ b/tests/baselines/reference/es5-umd2(target=es2015).js @@ -0,0 +1,39 @@ +//// [tests/cases/compiler/es5-umd2.ts] //// + +//// [es5-umd2.ts] +export class A +{ + constructor () + { + + } + + public B() + { + return 42; + } +} + + +//// [es5-umd2.js] +(function (factory) { + if (typeof module === "object" && typeof module.exports === "object") { + var v = factory(require, exports); + if (v !== undefined) module.exports = v; + } + else if (typeof define === "function" && define.amd) { + define(["require", "exports"], factory); + } +})(function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.A = void 0; + class A { + constructor() { + } + B() { + return 42; + } + } + exports.A = A; +}); diff --git a/tests/baselines/reference/es5-umd2.symbols b/tests/baselines/reference/es5-umd2(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es5-umd2.symbols rename to tests/baselines/reference/es5-umd2(target=es2015).symbols diff --git a/tests/baselines/reference/es5-umd2.types b/tests/baselines/reference/es5-umd2(target=es2015).types similarity index 100% rename from tests/baselines/reference/es5-umd2.types rename to tests/baselines/reference/es5-umd2(target=es2015).types diff --git a/tests/baselines/reference/es5-umd2(target=es5).errors.txt b/tests/baselines/reference/es5-umd2(target=es5).errors.txt new file mode 100644 index 0000000000000..e4bde504f3a15 --- /dev/null +++ b/tests/baselines/reference/es5-umd2(target=es5).errors.txt @@ -0,0 +1,18 @@ +error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== es5-umd2.ts (0 errors) ==== + export class A + { + constructor () + { + + } + + public B() + { + return 42; + } + } + \ No newline at end of file diff --git a/tests/baselines/reference/es5-umd2.js b/tests/baselines/reference/es5-umd2(target=es5).js similarity index 100% rename from tests/baselines/reference/es5-umd2.js rename to tests/baselines/reference/es5-umd2(target=es5).js diff --git a/tests/baselines/reference/es5-umd2(target=es5).symbols b/tests/baselines/reference/es5-umd2(target=es5).symbols new file mode 100644 index 0000000000000..44c8985589539 --- /dev/null +++ b/tests/baselines/reference/es5-umd2(target=es5).symbols @@ -0,0 +1,18 @@ +//// [tests/cases/compiler/es5-umd2.ts] //// + +=== es5-umd2.ts === +export class A +>A : Symbol(A, Decl(es5-umd2.ts, 0, 0)) +{ + constructor () + { + + } + + public B() +>B : Symbol(A.B, Decl(es5-umd2.ts, 5, 5)) + { + return 42; + } +} + diff --git a/tests/baselines/reference/es5-umd2(target=es5).types b/tests/baselines/reference/es5-umd2(target=es5).types new file mode 100644 index 0000000000000..2a81da91b37e5 --- /dev/null +++ b/tests/baselines/reference/es5-umd2(target=es5).types @@ -0,0 +1,22 @@ +//// [tests/cases/compiler/es5-umd2.ts] //// + +=== es5-umd2.ts === +export class A +>A : A +> : ^ +{ + constructor () + { + + } + + public B() +>B : () => number +> : ^^^^^^^^^^^^ + { + return 42; +>42 : 42 +> : ^^ + } +} + diff --git a/tests/baselines/reference/es5-umd3.errors.txt b/tests/baselines/reference/es5-umd3(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/es5-umd3.errors.txt rename to tests/baselines/reference/es5-umd3(target=es2015).errors.txt diff --git a/tests/baselines/reference/es5-umd3(target=es2015).js b/tests/baselines/reference/es5-umd3(target=es2015).js new file mode 100644 index 0000000000000..c73845e5b92d8 --- /dev/null +++ b/tests/baselines/reference/es5-umd3(target=es2015).js @@ -0,0 +1,38 @@ +//// [tests/cases/compiler/es5-umd3.ts] //// + +//// [es5-umd3.ts] +export default class A +{ + constructor () + { + + } + + public B() + { + return 42; + } +} + + +//// [es5-umd3.js] +(function (factory) { + if (typeof module === "object" && typeof module.exports === "object") { + var v = factory(require, exports); + if (v !== undefined) module.exports = v; + } + else if (typeof define === "function" && define.amd) { + define(["require", "exports"], factory); + } +})(function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + class A { + constructor() { + } + B() { + return 42; + } + } + exports.default = A; +}); diff --git a/tests/baselines/reference/es5-umd3.symbols b/tests/baselines/reference/es5-umd3(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es5-umd3.symbols rename to tests/baselines/reference/es5-umd3(target=es2015).symbols diff --git a/tests/baselines/reference/es5-umd3.types b/tests/baselines/reference/es5-umd3(target=es2015).types similarity index 100% rename from tests/baselines/reference/es5-umd3.types rename to tests/baselines/reference/es5-umd3(target=es2015).types diff --git a/tests/baselines/reference/es5-umd3(target=es5).errors.txt b/tests/baselines/reference/es5-umd3(target=es5).errors.txt new file mode 100644 index 0000000000000..ce88775497f94 --- /dev/null +++ b/tests/baselines/reference/es5-umd3(target=es5).errors.txt @@ -0,0 +1,18 @@ +error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== es5-umd3.ts (0 errors) ==== + export default class A + { + constructor () + { + + } + + public B() + { + return 42; + } + } + \ No newline at end of file diff --git a/tests/baselines/reference/es5-umd3.js b/tests/baselines/reference/es5-umd3(target=es5).js similarity index 100% rename from tests/baselines/reference/es5-umd3.js rename to tests/baselines/reference/es5-umd3(target=es5).js diff --git a/tests/baselines/reference/es5-umd3(target=es5).symbols b/tests/baselines/reference/es5-umd3(target=es5).symbols new file mode 100644 index 0000000000000..080bdccf9cb61 --- /dev/null +++ b/tests/baselines/reference/es5-umd3(target=es5).symbols @@ -0,0 +1,18 @@ +//// [tests/cases/compiler/es5-umd3.ts] //// + +=== es5-umd3.ts === +export default class A +>A : Symbol(A, Decl(es5-umd3.ts, 0, 0)) +{ + constructor () + { + + } + + public B() +>B : Symbol(A.B, Decl(es5-umd3.ts, 5, 5)) + { + return 42; + } +} + diff --git a/tests/baselines/reference/es5-umd3(target=es5).types b/tests/baselines/reference/es5-umd3(target=es5).types new file mode 100644 index 0000000000000..d0b392105d28a --- /dev/null +++ b/tests/baselines/reference/es5-umd3(target=es5).types @@ -0,0 +1,22 @@ +//// [tests/cases/compiler/es5-umd3.ts] //// + +=== es5-umd3.ts === +export default class A +>A : A +> : ^ +{ + constructor () + { + + } + + public B() +>B : () => number +> : ^^^^^^^^^^^^ + { + return 42; +>42 : 42 +> : ^^ + } +} + diff --git a/tests/baselines/reference/es5-umd4.errors.txt b/tests/baselines/reference/es5-umd4(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/es5-umd4.errors.txt rename to tests/baselines/reference/es5-umd4(target=es2015).errors.txt diff --git a/tests/baselines/reference/es5-umd4(target=es2015).js b/tests/baselines/reference/es5-umd4(target=es2015).js new file mode 100644 index 0000000000000..76795d637770e --- /dev/null +++ b/tests/baselines/reference/es5-umd4(target=es2015).js @@ -0,0 +1,39 @@ +//// [tests/cases/compiler/es5-umd4.ts] //// + +//// [es5-umd4.ts] +class A +{ + constructor () + { + + } + + public B() + { + return 42; + } +} + +export = A; + + +//// [es5-umd4.js] +(function (factory) { + if (typeof module === "object" && typeof module.exports === "object") { + var v = factory(require, exports); + if (v !== undefined) module.exports = v; + } + else if (typeof define === "function" && define.amd) { + define(["require", "exports"], factory); + } +})(function (require, exports) { + "use strict"; + class A { + constructor() { + } + B() { + return 42; + } + } + return A; +}); diff --git a/tests/baselines/reference/es5-umd4.symbols b/tests/baselines/reference/es5-umd4(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es5-umd4.symbols rename to tests/baselines/reference/es5-umd4(target=es2015).symbols diff --git a/tests/baselines/reference/es5-umd4.types b/tests/baselines/reference/es5-umd4(target=es2015).types similarity index 100% rename from tests/baselines/reference/es5-umd4.types rename to tests/baselines/reference/es5-umd4(target=es2015).types diff --git a/tests/baselines/reference/es5-umd4(target=es5).errors.txt b/tests/baselines/reference/es5-umd4(target=es5).errors.txt new file mode 100644 index 0000000000000..2f87d8562faf1 --- /dev/null +++ b/tests/baselines/reference/es5-umd4(target=es5).errors.txt @@ -0,0 +1,20 @@ +error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== es5-umd4.ts (0 errors) ==== + class A + { + constructor () + { + + } + + public B() + { + return 42; + } + } + + export = A; + \ No newline at end of file diff --git a/tests/baselines/reference/es5-umd4.js b/tests/baselines/reference/es5-umd4(target=es5).js similarity index 100% rename from tests/baselines/reference/es5-umd4.js rename to tests/baselines/reference/es5-umd4(target=es5).js diff --git a/tests/baselines/reference/es5-umd4(target=es5).symbols b/tests/baselines/reference/es5-umd4(target=es5).symbols new file mode 100644 index 0000000000000..c1ba362920fb7 --- /dev/null +++ b/tests/baselines/reference/es5-umd4(target=es5).symbols @@ -0,0 +1,21 @@ +//// [tests/cases/compiler/es5-umd4.ts] //// + +=== es5-umd4.ts === +class A +>A : Symbol(A, Decl(es5-umd4.ts, 0, 0)) +{ + constructor () + { + + } + + public B() +>B : Symbol(A.B, Decl(es5-umd4.ts, 5, 5)) + { + return 42; + } +} + +export = A; +>A : Symbol(A, Decl(es5-umd4.ts, 0, 0)) + diff --git a/tests/baselines/reference/es5-umd4(target=es5).types b/tests/baselines/reference/es5-umd4(target=es5).types new file mode 100644 index 0000000000000..0c26bd070fb2d --- /dev/null +++ b/tests/baselines/reference/es5-umd4(target=es5).types @@ -0,0 +1,26 @@ +//// [tests/cases/compiler/es5-umd4.ts] //// + +=== es5-umd4.ts === +class A +>A : A +> : ^ +{ + constructor () + { + + } + + public B() +>B : () => number +> : ^^^^^^^^^^^^ + { + return 42; +>42 : 42 +> : ^^ + } +} + +export = A; +>A : A +> : ^ + diff --git a/tests/baselines/reference/es5-yieldFunctionObjectLiterals(target=es2015).js b/tests/baselines/reference/es5-yieldFunctionObjectLiterals(target=es2015).js new file mode 100644 index 0000000000000..a37425c853524 --- /dev/null +++ b/tests/baselines/reference/es5-yieldFunctionObjectLiterals(target=es2015).js @@ -0,0 +1,120 @@ +//// [tests/cases/compiler/es5-yieldFunctionObjectLiterals.ts] //// + +//// [es5-yieldFunctionObjectLiterals.ts] +// mainly to verify indentation of emitted code + +function g() { return "g"; } + +function* objectLiteral1() { + const x = { + a: 1, + b: yield 2, + c: 3, + } +} + +function* objectLiteral2() { + const x = { + a: 1, + [g()]: yield 2, + c: 3, + } +} + +function* objectLiteral3() { + const x = { + a: 1, + b: yield 2, + [g()]: 3, + c: 4, + } +} + +function* objectLiteral4() { + const x = { + a: 1, + [g()]: 2, + b: yield 3, + c: 4, + } +} + +function* objectLiteral5() { + const x = { + a: 1, + [g()]: yield 2, + c: 4, + } +} + +function* objectLiteral6() { + const x = { + a: 1, + [yield]: 2, + c: 4, + } +} + +function* objectLiteral7() { + const x = { + a: 1, + [yield]: yield 2, + c: 4, + } +} + + +//// [es5-yieldFunctionObjectLiterals.js] +// mainly to verify indentation of emitted code +function g() { return "g"; } +function* objectLiteral1() { + const x = { + a: 1, + b: yield 2, + c: 3, + }; +} +function* objectLiteral2() { + const x = { + a: 1, + [g()]: yield 2, + c: 3, + }; +} +function* objectLiteral3() { + const x = { + a: 1, + b: yield 2, + [g()]: 3, + c: 4, + }; +} +function* objectLiteral4() { + const x = { + a: 1, + [g()]: 2, + b: yield 3, + c: 4, + }; +} +function* objectLiteral5() { + const x = { + a: 1, + [g()]: yield 2, + c: 4, + }; +} +function* objectLiteral6() { + const x = { + a: 1, + [yield]: 2, + c: 4, + }; +} +function* objectLiteral7() { + const x = { + a: 1, + [yield]: yield 2, + c: 4, + }; +} diff --git a/tests/baselines/reference/es5-yieldFunctionObjectLiterals.symbols b/tests/baselines/reference/es5-yieldFunctionObjectLiterals(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es5-yieldFunctionObjectLiterals.symbols rename to tests/baselines/reference/es5-yieldFunctionObjectLiterals(target=es2015).symbols diff --git a/tests/baselines/reference/es5-yieldFunctionObjectLiterals.types b/tests/baselines/reference/es5-yieldFunctionObjectLiterals(target=es2015).types similarity index 100% rename from tests/baselines/reference/es5-yieldFunctionObjectLiterals.types rename to tests/baselines/reference/es5-yieldFunctionObjectLiterals(target=es2015).types diff --git a/tests/baselines/reference/es5-yieldFunctionObjectLiterals.js b/tests/baselines/reference/es5-yieldFunctionObjectLiterals(target=es5).js similarity index 100% rename from tests/baselines/reference/es5-yieldFunctionObjectLiterals.js rename to tests/baselines/reference/es5-yieldFunctionObjectLiterals(target=es5).js diff --git a/tests/baselines/reference/es5-yieldFunctionObjectLiterals(target=es5).symbols b/tests/baselines/reference/es5-yieldFunctionObjectLiterals(target=es5).symbols new file mode 100644 index 0000000000000..cc11c6b838d3c --- /dev/null +++ b/tests/baselines/reference/es5-yieldFunctionObjectLiterals(target=es5).symbols @@ -0,0 +1,137 @@ +//// [tests/cases/compiler/es5-yieldFunctionObjectLiterals.ts] //// + +=== es5-yieldFunctionObjectLiterals.ts === +// mainly to verify indentation of emitted code + +function g() { return "g"; } +>g : Symbol(g, Decl(es5-yieldFunctionObjectLiterals.ts, 0, 0)) + +function* objectLiteral1() { +>objectLiteral1 : Symbol(objectLiteral1, Decl(es5-yieldFunctionObjectLiterals.ts, 2, 28)) + + const x = { +>x : Symbol(x, Decl(es5-yieldFunctionObjectLiterals.ts, 5, 9)) + + a: 1, +>a : Symbol(a, Decl(es5-yieldFunctionObjectLiterals.ts, 5, 15)) + + b: yield 2, +>b : Symbol(b, Decl(es5-yieldFunctionObjectLiterals.ts, 6, 13)) + + c: 3, +>c : Symbol(c, Decl(es5-yieldFunctionObjectLiterals.ts, 7, 19)) + } +} + +function* objectLiteral2() { +>objectLiteral2 : Symbol(objectLiteral2, Decl(es5-yieldFunctionObjectLiterals.ts, 10, 1)) + + const x = { +>x : Symbol(x, Decl(es5-yieldFunctionObjectLiterals.ts, 13, 9)) + + a: 1, +>a : Symbol(a, Decl(es5-yieldFunctionObjectLiterals.ts, 13, 15)) + + [g()]: yield 2, +>[g()] : Symbol([g()], Decl(es5-yieldFunctionObjectLiterals.ts, 14, 13)) +>g : Symbol(g, Decl(es5-yieldFunctionObjectLiterals.ts, 0, 0)) + + c: 3, +>c : Symbol(c, Decl(es5-yieldFunctionObjectLiterals.ts, 15, 23)) + } +} + +function* objectLiteral3() { +>objectLiteral3 : Symbol(objectLiteral3, Decl(es5-yieldFunctionObjectLiterals.ts, 18, 1)) + + const x = { +>x : Symbol(x, Decl(es5-yieldFunctionObjectLiterals.ts, 21, 9)) + + a: 1, +>a : Symbol(a, Decl(es5-yieldFunctionObjectLiterals.ts, 21, 15)) + + b: yield 2, +>b : Symbol(b, Decl(es5-yieldFunctionObjectLiterals.ts, 22, 13)) + + [g()]: 3, +>[g()] : Symbol([g()], Decl(es5-yieldFunctionObjectLiterals.ts, 23, 19)) +>g : Symbol(g, Decl(es5-yieldFunctionObjectLiterals.ts, 0, 0)) + + c: 4, +>c : Symbol(c, Decl(es5-yieldFunctionObjectLiterals.ts, 24, 17)) + } +} + +function* objectLiteral4() { +>objectLiteral4 : Symbol(objectLiteral4, Decl(es5-yieldFunctionObjectLiterals.ts, 27, 1)) + + const x = { +>x : Symbol(x, Decl(es5-yieldFunctionObjectLiterals.ts, 30, 9)) + + a: 1, +>a : Symbol(a, Decl(es5-yieldFunctionObjectLiterals.ts, 30, 15)) + + [g()]: 2, +>[g()] : Symbol([g()], Decl(es5-yieldFunctionObjectLiterals.ts, 31, 13)) +>g : Symbol(g, Decl(es5-yieldFunctionObjectLiterals.ts, 0, 0)) + + b: yield 3, +>b : Symbol(b, Decl(es5-yieldFunctionObjectLiterals.ts, 32, 17)) + + c: 4, +>c : Symbol(c, Decl(es5-yieldFunctionObjectLiterals.ts, 33, 19)) + } +} + +function* objectLiteral5() { +>objectLiteral5 : Symbol(objectLiteral5, Decl(es5-yieldFunctionObjectLiterals.ts, 36, 1)) + + const x = { +>x : Symbol(x, Decl(es5-yieldFunctionObjectLiterals.ts, 39, 9)) + + a: 1, +>a : Symbol(a, Decl(es5-yieldFunctionObjectLiterals.ts, 39, 15)) + + [g()]: yield 2, +>[g()] : Symbol([g()], Decl(es5-yieldFunctionObjectLiterals.ts, 40, 13)) +>g : Symbol(g, Decl(es5-yieldFunctionObjectLiterals.ts, 0, 0)) + + c: 4, +>c : Symbol(c, Decl(es5-yieldFunctionObjectLiterals.ts, 41, 23)) + } +} + +function* objectLiteral6() { +>objectLiteral6 : Symbol(objectLiteral6, Decl(es5-yieldFunctionObjectLiterals.ts, 44, 1)) + + const x = { +>x : Symbol(x, Decl(es5-yieldFunctionObjectLiterals.ts, 47, 9)) + + a: 1, +>a : Symbol(a, Decl(es5-yieldFunctionObjectLiterals.ts, 47, 15)) + + [yield]: 2, +>[yield] : Symbol([yield], Decl(es5-yieldFunctionObjectLiterals.ts, 48, 13)) + + c: 4, +>c : Symbol(c, Decl(es5-yieldFunctionObjectLiterals.ts, 49, 19)) + } +} + +function* objectLiteral7() { +>objectLiteral7 : Symbol(objectLiteral7, Decl(es5-yieldFunctionObjectLiterals.ts, 52, 1)) + + const x = { +>x : Symbol(x, Decl(es5-yieldFunctionObjectLiterals.ts, 55, 9)) + + a: 1, +>a : Symbol(a, Decl(es5-yieldFunctionObjectLiterals.ts, 55, 15)) + + [yield]: yield 2, +>[yield] : Symbol([yield], Decl(es5-yieldFunctionObjectLiterals.ts, 56, 13)) + + c: 4, +>c : Symbol(c, Decl(es5-yieldFunctionObjectLiterals.ts, 57, 25)) + } +} + diff --git a/tests/baselines/reference/es5-yieldFunctionObjectLiterals(target=es5).types b/tests/baselines/reference/es5-yieldFunctionObjectLiterals(target=es5).types new file mode 100644 index 0000000000000..3194aa1e6c266 --- /dev/null +++ b/tests/baselines/reference/es5-yieldFunctionObjectLiterals(target=es5).types @@ -0,0 +1,251 @@ +//// [tests/cases/compiler/es5-yieldFunctionObjectLiterals.ts] //// + +=== es5-yieldFunctionObjectLiterals.ts === +// mainly to verify indentation of emitted code + +function g() { return "g"; } +>g : () => string +> : ^^^^^^^^^^^^ +>"g" : "g" +> : ^^^ + +function* objectLiteral1() { +>objectLiteral1 : () => Generator +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + const x = { +>x : { a: number; b: any; c: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ a: 1, b: yield 2, c: 3, } : { a: number; b: any; c: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + a: 1, +>a : number +> : ^^^^^^ +>1 : 1 +> : ^ + + b: yield 2, +>b : any +>yield 2 : any +>2 : 2 +> : ^ + + c: 3, +>c : number +> : ^^^^^^ +>3 : 3 +> : ^ + } +} + +function* objectLiteral2() { +>objectLiteral2 : () => Generator +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + const x = { +>x : { [x: string]: any; a: number; c: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ a: 1, [g()]: yield 2, c: 3, } : { [x: string]: any; a: number; c: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + a: 1, +>a : number +> : ^^^^^^ +>1 : 1 +> : ^ + + [g()]: yield 2, +>[g()] : any +>g() : string +> : ^^^^^^ +>g : () => string +> : ^^^^^^^^^^^^ +>yield 2 : any +>2 : 2 +> : ^ + + c: 3, +>c : number +> : ^^^^^^ +>3 : 3 +> : ^ + } +} + +function* objectLiteral3() { +>objectLiteral3 : () => Generator +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + const x = { +>x : { [x: string]: any; a: number; b: any; c: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ a: 1, b: yield 2, [g()]: 3, c: 4, } : { [x: string]: any; a: number; b: any; c: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + a: 1, +>a : number +> : ^^^^^^ +>1 : 1 +> : ^ + + b: yield 2, +>b : any +>yield 2 : any +>2 : 2 +> : ^ + + [g()]: 3, +>[g()] : number +> : ^^^^^^ +>g() : string +> : ^^^^^^ +>g : () => string +> : ^^^^^^^^^^^^ +>3 : 3 +> : ^ + + c: 4, +>c : number +> : ^^^^^^ +>4 : 4 +> : ^ + } +} + +function* objectLiteral4() { +>objectLiteral4 : () => Generator +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + const x = { +>x : { [x: string]: any; a: number; b: any; c: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ a: 1, [g()]: 2, b: yield 3, c: 4, } : { [x: string]: any; a: number; b: any; c: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + a: 1, +>a : number +> : ^^^^^^ +>1 : 1 +> : ^ + + [g()]: 2, +>[g()] : number +> : ^^^^^^ +>g() : string +> : ^^^^^^ +>g : () => string +> : ^^^^^^^^^^^^ +>2 : 2 +> : ^ + + b: yield 3, +>b : any +>yield 3 : any +>3 : 3 +> : ^ + + c: 4, +>c : number +> : ^^^^^^ +>4 : 4 +> : ^ + } +} + +function* objectLiteral5() { +>objectLiteral5 : () => Generator +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + const x = { +>x : { [x: string]: any; a: number; c: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ a: 1, [g()]: yield 2, c: 4, } : { [x: string]: any; a: number; c: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + a: 1, +>a : number +> : ^^^^^^ +>1 : 1 +> : ^ + + [g()]: yield 2, +>[g()] : any +>g() : string +> : ^^^^^^ +>g : () => string +> : ^^^^^^^^^^^^ +>yield 2 : any +>2 : 2 +> : ^ + + c: 4, +>c : number +> : ^^^^^^ +>4 : 4 +> : ^ + } +} + +function* objectLiteral6() { +>objectLiteral6 : () => Generator +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + const x = { +>x : { [x: number]: number; a: number; c: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ a: 1, [yield]: 2, c: 4, } : { [x: number]: number; a: number; c: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + a: 1, +>a : number +> : ^^^^^^ +>1 : 1 +> : ^ + + [yield]: 2, +>[yield] : number +> : ^^^^^^ +>yield : any +>2 : 2 +> : ^ + + c: 4, +>c : number +> : ^^^^^^ +>4 : 4 +> : ^ + } +} + +function* objectLiteral7() { +>objectLiteral7 : () => Generator +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + const x = { +>x : { [x: number]: any; a: number; c: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ a: 1, [yield]: yield 2, c: 4, } : { [x: number]: any; a: number; c: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + a: 1, +>a : number +> : ^^^^^^ +>1 : 1 +> : ^ + + [yield]: yield 2, +>[yield] : any +>yield : any +>yield 2 : any +>2 : 2 +> : ^ + + c: 4, +>c : number +> : ^^^^^^ +>4 : 4 +> : ^ + } +} + diff --git a/tests/baselines/reference/es5ExportDefaultClassDeclaration(target=es2015).js b/tests/baselines/reference/es5ExportDefaultClassDeclaration(target=es2015).js new file mode 100644 index 0000000000000..895d9df894b10 --- /dev/null +++ b/tests/baselines/reference/es5ExportDefaultClassDeclaration(target=es2015).js @@ -0,0 +1,21 @@ +//// [tests/cases/compiler/es5ExportDefaultClassDeclaration.ts] //// + +//// [es5ExportDefaultClassDeclaration.ts] +export default class C { + method() { } +} + + +//// [es5ExportDefaultClassDeclaration.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +class C { + method() { } +} +exports.default = C; + + +//// [es5ExportDefaultClassDeclaration.d.ts] +export default class C { + method(): void; +} diff --git a/tests/baselines/reference/es5ExportDefaultClassDeclaration.symbols b/tests/baselines/reference/es5ExportDefaultClassDeclaration(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es5ExportDefaultClassDeclaration.symbols rename to tests/baselines/reference/es5ExportDefaultClassDeclaration(target=es2015).symbols diff --git a/tests/baselines/reference/es5ExportDefaultClassDeclaration.types b/tests/baselines/reference/es5ExportDefaultClassDeclaration(target=es2015).types similarity index 100% rename from tests/baselines/reference/es5ExportDefaultClassDeclaration.types rename to tests/baselines/reference/es5ExportDefaultClassDeclaration(target=es2015).types diff --git a/tests/baselines/reference/es5ExportDefaultClassDeclaration.js b/tests/baselines/reference/es5ExportDefaultClassDeclaration(target=es5).js similarity index 100% rename from tests/baselines/reference/es5ExportDefaultClassDeclaration.js rename to tests/baselines/reference/es5ExportDefaultClassDeclaration(target=es5).js diff --git a/tests/baselines/reference/es5ExportDefaultClassDeclaration(target=es5).symbols b/tests/baselines/reference/es5ExportDefaultClassDeclaration(target=es5).symbols new file mode 100644 index 0000000000000..1cf035329f744 --- /dev/null +++ b/tests/baselines/reference/es5ExportDefaultClassDeclaration(target=es5).symbols @@ -0,0 +1,10 @@ +//// [tests/cases/compiler/es5ExportDefaultClassDeclaration.ts] //// + +=== es5ExportDefaultClassDeclaration.ts === +export default class C { +>C : Symbol(C, Decl(es5ExportDefaultClassDeclaration.ts, 0, 0)) + + method() { } +>method : Symbol(C.method, Decl(es5ExportDefaultClassDeclaration.ts, 0, 24)) +} + diff --git a/tests/baselines/reference/es5ExportDefaultClassDeclaration(target=es5).types b/tests/baselines/reference/es5ExportDefaultClassDeclaration(target=es5).types new file mode 100644 index 0000000000000..2697a9c5312fd --- /dev/null +++ b/tests/baselines/reference/es5ExportDefaultClassDeclaration(target=es5).types @@ -0,0 +1,12 @@ +//// [tests/cases/compiler/es5ExportDefaultClassDeclaration.ts] //// + +=== es5ExportDefaultClassDeclaration.ts === +export default class C { +>C : C +> : ^ + + method() { } +>method : () => void +> : ^^^^^^^^^^ +} + diff --git a/tests/baselines/reference/es5ExportDefaultClassDeclaration2(target=es2015).js b/tests/baselines/reference/es5ExportDefaultClassDeclaration2(target=es2015).js new file mode 100644 index 0000000000000..f2717d4a121de --- /dev/null +++ b/tests/baselines/reference/es5ExportDefaultClassDeclaration2(target=es2015).js @@ -0,0 +1,21 @@ +//// [tests/cases/compiler/es5ExportDefaultClassDeclaration2.ts] //// + +//// [es5ExportDefaultClassDeclaration2.ts] +export default class { + method() { } +} + + +//// [es5ExportDefaultClassDeclaration2.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +class default_1 { + method() { } +} +exports.default = default_1; + + +//// [es5ExportDefaultClassDeclaration2.d.ts] +export default class { + method(): void; +} diff --git a/tests/baselines/reference/es5ExportDefaultClassDeclaration2.symbols b/tests/baselines/reference/es5ExportDefaultClassDeclaration2(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es5ExportDefaultClassDeclaration2.symbols rename to tests/baselines/reference/es5ExportDefaultClassDeclaration2(target=es2015).symbols diff --git a/tests/baselines/reference/es5ExportDefaultClassDeclaration2.types b/tests/baselines/reference/es5ExportDefaultClassDeclaration2(target=es2015).types similarity index 100% rename from tests/baselines/reference/es5ExportDefaultClassDeclaration2.types rename to tests/baselines/reference/es5ExportDefaultClassDeclaration2(target=es2015).types diff --git a/tests/baselines/reference/es5ExportDefaultClassDeclaration2.js b/tests/baselines/reference/es5ExportDefaultClassDeclaration2(target=es5).js similarity index 100% rename from tests/baselines/reference/es5ExportDefaultClassDeclaration2.js rename to tests/baselines/reference/es5ExportDefaultClassDeclaration2(target=es5).js diff --git a/tests/baselines/reference/es5ExportDefaultClassDeclaration2(target=es5).symbols b/tests/baselines/reference/es5ExportDefaultClassDeclaration2(target=es5).symbols new file mode 100644 index 0000000000000..bf847d94c46e3 --- /dev/null +++ b/tests/baselines/reference/es5ExportDefaultClassDeclaration2(target=es5).symbols @@ -0,0 +1,8 @@ +//// [tests/cases/compiler/es5ExportDefaultClassDeclaration2.ts] //// + +=== es5ExportDefaultClassDeclaration2.ts === +export default class { + method() { } +>method : Symbol(default.method, Decl(es5ExportDefaultClassDeclaration2.ts, 0, 22)) +} + diff --git a/tests/baselines/reference/es5ExportDefaultClassDeclaration2(target=es5).types b/tests/baselines/reference/es5ExportDefaultClassDeclaration2(target=es5).types new file mode 100644 index 0000000000000..621c803eb9639 --- /dev/null +++ b/tests/baselines/reference/es5ExportDefaultClassDeclaration2(target=es5).types @@ -0,0 +1,9 @@ +//// [tests/cases/compiler/es5ExportDefaultClassDeclaration2.ts] //// + +=== es5ExportDefaultClassDeclaration2.ts === +export default class { + method() { } +>method : () => void +> : ^^^^^^^^^^ +} + diff --git a/tests/baselines/reference/es5ExportDefaultClassDeclaration3.errors.txt b/tests/baselines/reference/es5ExportDefaultClassDeclaration3(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/es5ExportDefaultClassDeclaration3.errors.txt rename to tests/baselines/reference/es5ExportDefaultClassDeclaration3(target=es2015).errors.txt diff --git a/tests/baselines/reference/es5ExportDefaultClassDeclaration3(target=es2015).js b/tests/baselines/reference/es5ExportDefaultClassDeclaration3(target=es2015).js new file mode 100644 index 0000000000000..439e4b5448c09 --- /dev/null +++ b/tests/baselines/reference/es5ExportDefaultClassDeclaration3(target=es2015).js @@ -0,0 +1,35 @@ +//// [tests/cases/compiler/es5ExportDefaultClassDeclaration3.ts] //// + +//// [es5ExportDefaultClassDeclaration3.ts] +var before: C = new C(); + +export default class C { + method(): C { + return new C(); + } +} + +var after: C = new C(); + +var t: typeof C = C; + + + +//// [es5ExportDefaultClassDeclaration3.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var before = new C(); +class C { + method() { + return new C(); + } +} +exports.default = C; +var after = new C(); +var t = C; + + +//// [es5ExportDefaultClassDeclaration3.d.ts] +export default class C { + method(): C; +} diff --git a/tests/baselines/reference/es5ExportDefaultClassDeclaration3.symbols b/tests/baselines/reference/es5ExportDefaultClassDeclaration3(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es5ExportDefaultClassDeclaration3.symbols rename to tests/baselines/reference/es5ExportDefaultClassDeclaration3(target=es2015).symbols diff --git a/tests/baselines/reference/es5ExportDefaultClassDeclaration3.types b/tests/baselines/reference/es5ExportDefaultClassDeclaration3(target=es2015).types similarity index 100% rename from tests/baselines/reference/es5ExportDefaultClassDeclaration3.types rename to tests/baselines/reference/es5ExportDefaultClassDeclaration3(target=es2015).types diff --git a/tests/baselines/reference/es5ExportDefaultClassDeclaration3(target=es5).errors.txt b/tests/baselines/reference/es5ExportDefaultClassDeclaration3(target=es5).errors.txt new file mode 100644 index 0000000000000..142be62f29ec4 --- /dev/null +++ b/tests/baselines/reference/es5ExportDefaultClassDeclaration3(target=es5).errors.txt @@ -0,0 +1,20 @@ +es5ExportDefaultClassDeclaration3.ts(1,21): error TS2449: Class 'C' used before its declaration. + + +==== es5ExportDefaultClassDeclaration3.ts (1 errors) ==== + var before: C = new C(); + ~ +!!! error TS2449: Class 'C' used before its declaration. +!!! related TS2728 es5ExportDefaultClassDeclaration3.ts:3:22: 'C' is declared here. + + export default class C { + method(): C { + return new C(); + } + } + + var after: C = new C(); + + var t: typeof C = C; + + \ No newline at end of file diff --git a/tests/baselines/reference/es5ExportDefaultClassDeclaration3.js b/tests/baselines/reference/es5ExportDefaultClassDeclaration3(target=es5).js similarity index 100% rename from tests/baselines/reference/es5ExportDefaultClassDeclaration3.js rename to tests/baselines/reference/es5ExportDefaultClassDeclaration3(target=es5).js diff --git a/tests/baselines/reference/es5ExportDefaultClassDeclaration3(target=es5).symbols b/tests/baselines/reference/es5ExportDefaultClassDeclaration3(target=es5).symbols new file mode 100644 index 0000000000000..8257a6a020a34 --- /dev/null +++ b/tests/baselines/reference/es5ExportDefaultClassDeclaration3(target=es5).symbols @@ -0,0 +1,31 @@ +//// [tests/cases/compiler/es5ExportDefaultClassDeclaration3.ts] //// + +=== es5ExportDefaultClassDeclaration3.ts === +var before: C = new C(); +>before : Symbol(before, Decl(es5ExportDefaultClassDeclaration3.ts, 0, 3)) +>C : Symbol(C, Decl(es5ExportDefaultClassDeclaration3.ts, 0, 24)) +>C : Symbol(C, Decl(es5ExportDefaultClassDeclaration3.ts, 0, 24)) + +export default class C { +>C : Symbol(C, Decl(es5ExportDefaultClassDeclaration3.ts, 0, 24)) + + method(): C { +>method : Symbol(C.method, Decl(es5ExportDefaultClassDeclaration3.ts, 2, 24)) +>C : Symbol(C, Decl(es5ExportDefaultClassDeclaration3.ts, 0, 24)) + + return new C(); +>C : Symbol(C, Decl(es5ExportDefaultClassDeclaration3.ts, 0, 24)) + } +} + +var after: C = new C(); +>after : Symbol(after, Decl(es5ExportDefaultClassDeclaration3.ts, 8, 3)) +>C : Symbol(C, Decl(es5ExportDefaultClassDeclaration3.ts, 0, 24)) +>C : Symbol(C, Decl(es5ExportDefaultClassDeclaration3.ts, 0, 24)) + +var t: typeof C = C; +>t : Symbol(t, Decl(es5ExportDefaultClassDeclaration3.ts, 10, 3)) +>C : Symbol(C, Decl(es5ExportDefaultClassDeclaration3.ts, 0, 24)) +>C : Symbol(C, Decl(es5ExportDefaultClassDeclaration3.ts, 0, 24)) + + diff --git a/tests/baselines/reference/es5ExportDefaultClassDeclaration3(target=es5).types b/tests/baselines/reference/es5ExportDefaultClassDeclaration3(target=es5).types new file mode 100644 index 0000000000000..3921189da8305 --- /dev/null +++ b/tests/baselines/reference/es5ExportDefaultClassDeclaration3(target=es5).types @@ -0,0 +1,44 @@ +//// [tests/cases/compiler/es5ExportDefaultClassDeclaration3.ts] //// + +=== es5ExportDefaultClassDeclaration3.ts === +var before: C = new C(); +>before : C +> : ^ +>new C() : C +> : ^ +>C : typeof C +> : ^^^^^^^^ + +export default class C { +>C : C +> : ^ + + method(): C { +>method : () => C +> : ^^^^^^ + + return new C(); +>new C() : C +> : ^ +>C : typeof C +> : ^^^^^^^^ + } +} + +var after: C = new C(); +>after : C +> : ^ +>new C() : C +> : ^ +>C : typeof C +> : ^^^^^^^^ + +var t: typeof C = C; +>t : typeof C +> : ^^^^^^^^ +>C : typeof C +> : ^^^^^^^^ +>C : typeof C +> : ^^^^^^^^ + + diff --git a/tests/baselines/reference/es5ExportDefaultClassDeclaration4.js b/tests/baselines/reference/es5ExportDefaultClassDeclaration4(target=es2015).js similarity index 100% rename from tests/baselines/reference/es5ExportDefaultClassDeclaration4.js rename to tests/baselines/reference/es5ExportDefaultClassDeclaration4(target=es2015).js diff --git a/tests/baselines/reference/es5ExportDefaultClassDeclaration4.symbols b/tests/baselines/reference/es5ExportDefaultClassDeclaration4(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es5ExportDefaultClassDeclaration4.symbols rename to tests/baselines/reference/es5ExportDefaultClassDeclaration4(target=es2015).symbols diff --git a/tests/baselines/reference/es5ExportDefaultClassDeclaration4.types b/tests/baselines/reference/es5ExportDefaultClassDeclaration4(target=es2015).types similarity index 100% rename from tests/baselines/reference/es5ExportDefaultClassDeclaration4.types rename to tests/baselines/reference/es5ExportDefaultClassDeclaration4(target=es2015).types diff --git a/tests/baselines/reference/es5ExportDefaultClassDeclaration4(target=es5).js b/tests/baselines/reference/es5ExportDefaultClassDeclaration4(target=es5).js new file mode 100644 index 0000000000000..626dc74842636 --- /dev/null +++ b/tests/baselines/reference/es5ExportDefaultClassDeclaration4(target=es5).js @@ -0,0 +1,29 @@ +//// [tests/cases/compiler/es5ExportDefaultClassDeclaration4.ts] //// + +//// [es5ExportDefaultClassDeclaration4.ts] +declare module "foo" { + export var before: C; + + export default class C { + method(): C; + } + + export var after: C; + + export var t: typeof C; +} + + + +//// [es5ExportDefaultClassDeclaration4.js] + + +//// [es5ExportDefaultClassDeclaration4.d.ts] +declare module "foo" { + var before: C; + export default class C { + method(): C; + } + var after: C; + var t: typeof C; +} diff --git a/tests/baselines/reference/es5ExportDefaultClassDeclaration4(target=es5).symbols b/tests/baselines/reference/es5ExportDefaultClassDeclaration4(target=es5).symbols new file mode 100644 index 0000000000000..22662eac09694 --- /dev/null +++ b/tests/baselines/reference/es5ExportDefaultClassDeclaration4(target=es5).symbols @@ -0,0 +1,28 @@ +//// [tests/cases/compiler/es5ExportDefaultClassDeclaration4.ts] //// + +=== es5ExportDefaultClassDeclaration4.ts === +declare module "foo" { +>"foo" : Symbol("foo", Decl(es5ExportDefaultClassDeclaration4.ts, 0, 0)) + + export var before: C; +>before : Symbol(before, Decl(es5ExportDefaultClassDeclaration4.ts, 1, 14)) +>C : Symbol(C, Decl(es5ExportDefaultClassDeclaration4.ts, 1, 25)) + + export default class C { +>C : Symbol(C, Decl(es5ExportDefaultClassDeclaration4.ts, 1, 25)) + + method(): C; +>method : Symbol(C.method, Decl(es5ExportDefaultClassDeclaration4.ts, 3, 28)) +>C : Symbol(C, Decl(es5ExportDefaultClassDeclaration4.ts, 1, 25)) + } + + export var after: C; +>after : Symbol(after, Decl(es5ExportDefaultClassDeclaration4.ts, 7, 14)) +>C : Symbol(C, Decl(es5ExportDefaultClassDeclaration4.ts, 1, 25)) + + export var t: typeof C; +>t : Symbol(t, Decl(es5ExportDefaultClassDeclaration4.ts, 9, 14)) +>C : Symbol(C, Decl(es5ExportDefaultClassDeclaration4.ts, 1, 25)) +} + + diff --git a/tests/baselines/reference/es5ExportDefaultClassDeclaration4(target=es5).types b/tests/baselines/reference/es5ExportDefaultClassDeclaration4(target=es5).types new file mode 100644 index 0000000000000..b4f9d32075730 --- /dev/null +++ b/tests/baselines/reference/es5ExportDefaultClassDeclaration4(target=es5).types @@ -0,0 +1,32 @@ +//// [tests/cases/compiler/es5ExportDefaultClassDeclaration4.ts] //// + +=== es5ExportDefaultClassDeclaration4.ts === +declare module "foo" { +>"foo" : typeof import("foo") +> : ^^^^^^^^^^^^^^^^^^^^ + + export var before: C; +>before : C +> : ^ + + export default class C { +>C : C +> : ^ + + method(): C; +>method : () => C +> : ^^^^^^ + } + + export var after: C; +>after : C +> : ^ + + export var t: typeof C; +>t : typeof C +> : ^^^^^^^^ +>C : typeof C +> : ^^^^^^^^ +} + + diff --git a/tests/baselines/reference/es5ExportDefaultExpression.js b/tests/baselines/reference/es5ExportDefaultExpression(target=es2015).js similarity index 100% rename from tests/baselines/reference/es5ExportDefaultExpression.js rename to tests/baselines/reference/es5ExportDefaultExpression(target=es2015).js diff --git a/tests/baselines/reference/es5ExportDefaultExpression.symbols b/tests/baselines/reference/es5ExportDefaultExpression(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es5ExportDefaultExpression.symbols rename to tests/baselines/reference/es5ExportDefaultExpression(target=es2015).symbols diff --git a/tests/baselines/reference/es5ExportDefaultExpression.types b/tests/baselines/reference/es5ExportDefaultExpression(target=es2015).types similarity index 100% rename from tests/baselines/reference/es5ExportDefaultExpression.types rename to tests/baselines/reference/es5ExportDefaultExpression(target=es2015).types diff --git a/tests/baselines/reference/es5ExportDefaultExpression(target=es5).js b/tests/baselines/reference/es5ExportDefaultExpression(target=es5).js new file mode 100644 index 0000000000000..2f7c3a0734e6d --- /dev/null +++ b/tests/baselines/reference/es5ExportDefaultExpression(target=es5).js @@ -0,0 +1,15 @@ +//// [tests/cases/compiler/es5ExportDefaultExpression.ts] //// + +//// [es5ExportDefaultExpression.ts] +export default (1 + 2); + + +//// [es5ExportDefaultExpression.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = (1 + 2); + + +//// [es5ExportDefaultExpression.d.ts] +declare const _default: number; +export default _default; diff --git a/tests/baselines/reference/es5ExportDefaultExpression(target=es5).symbols b/tests/baselines/reference/es5ExportDefaultExpression(target=es5).symbols new file mode 100644 index 0000000000000..d6d1e3fca7703 --- /dev/null +++ b/tests/baselines/reference/es5ExportDefaultExpression(target=es5).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/compiler/es5ExportDefaultExpression.ts] //// + +=== es5ExportDefaultExpression.ts === + +export default (1 + 2); + diff --git a/tests/baselines/reference/es5ExportDefaultExpression(target=es5).types b/tests/baselines/reference/es5ExportDefaultExpression(target=es5).types new file mode 100644 index 0000000000000..889ff772de1fd --- /dev/null +++ b/tests/baselines/reference/es5ExportDefaultExpression(target=es5).types @@ -0,0 +1,13 @@ +//// [tests/cases/compiler/es5ExportDefaultExpression.ts] //// + +=== es5ExportDefaultExpression.ts === +export default (1 + 2); +>(1 + 2) : number +> : ^^^^^^ +>1 + 2 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ + diff --git a/tests/baselines/reference/es5ExportDefaultFunctionDeclaration.js b/tests/baselines/reference/es5ExportDefaultFunctionDeclaration(target=es2015).js similarity index 100% rename from tests/baselines/reference/es5ExportDefaultFunctionDeclaration.js rename to tests/baselines/reference/es5ExportDefaultFunctionDeclaration(target=es2015).js diff --git a/tests/baselines/reference/es5ExportDefaultFunctionDeclaration.symbols b/tests/baselines/reference/es5ExportDefaultFunctionDeclaration(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es5ExportDefaultFunctionDeclaration.symbols rename to tests/baselines/reference/es5ExportDefaultFunctionDeclaration(target=es2015).symbols diff --git a/tests/baselines/reference/es5ExportDefaultFunctionDeclaration.types b/tests/baselines/reference/es5ExportDefaultFunctionDeclaration(target=es2015).types similarity index 100% rename from tests/baselines/reference/es5ExportDefaultFunctionDeclaration.types rename to tests/baselines/reference/es5ExportDefaultFunctionDeclaration(target=es2015).types diff --git a/tests/baselines/reference/es5ExportDefaultFunctionDeclaration(target=es5).js b/tests/baselines/reference/es5ExportDefaultFunctionDeclaration(target=es5).js new file mode 100644 index 0000000000000..a6582c641ff7a --- /dev/null +++ b/tests/baselines/reference/es5ExportDefaultFunctionDeclaration(target=es5).js @@ -0,0 +1,15 @@ +//// [tests/cases/compiler/es5ExportDefaultFunctionDeclaration.ts] //// + +//// [es5ExportDefaultFunctionDeclaration.ts] +export default function f() { } + + +//// [es5ExportDefaultFunctionDeclaration.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = f; +function f() { } + + +//// [es5ExportDefaultFunctionDeclaration.d.ts] +export default function f(): void; diff --git a/tests/baselines/reference/es5ExportDefaultFunctionDeclaration(target=es5).symbols b/tests/baselines/reference/es5ExportDefaultFunctionDeclaration(target=es5).symbols new file mode 100644 index 0000000000000..84cd7cadb02de --- /dev/null +++ b/tests/baselines/reference/es5ExportDefaultFunctionDeclaration(target=es5).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/compiler/es5ExportDefaultFunctionDeclaration.ts] //// + +=== es5ExportDefaultFunctionDeclaration.ts === +export default function f() { } +>f : Symbol(f, Decl(es5ExportDefaultFunctionDeclaration.ts, 0, 0)) + diff --git a/tests/baselines/reference/es5ExportDefaultFunctionDeclaration(target=es5).types b/tests/baselines/reference/es5ExportDefaultFunctionDeclaration(target=es5).types new file mode 100644 index 0000000000000..5068dfbac2648 --- /dev/null +++ b/tests/baselines/reference/es5ExportDefaultFunctionDeclaration(target=es5).types @@ -0,0 +1,7 @@ +//// [tests/cases/compiler/es5ExportDefaultFunctionDeclaration.ts] //// + +=== es5ExportDefaultFunctionDeclaration.ts === +export default function f() { } +>f : () => void +> : ^^^^^^^^^^ + diff --git a/tests/baselines/reference/es5ExportDefaultFunctionDeclaration2.js b/tests/baselines/reference/es5ExportDefaultFunctionDeclaration2(target=es2015).js similarity index 100% rename from tests/baselines/reference/es5ExportDefaultFunctionDeclaration2.js rename to tests/baselines/reference/es5ExportDefaultFunctionDeclaration2(target=es2015).js diff --git a/tests/baselines/reference/es5ExportDefaultFunctionDeclaration2.symbols b/tests/baselines/reference/es5ExportDefaultFunctionDeclaration2(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es5ExportDefaultFunctionDeclaration2.symbols rename to tests/baselines/reference/es5ExportDefaultFunctionDeclaration2(target=es2015).symbols diff --git a/tests/baselines/reference/es5ExportDefaultFunctionDeclaration2.types b/tests/baselines/reference/es5ExportDefaultFunctionDeclaration2(target=es2015).types similarity index 100% rename from tests/baselines/reference/es5ExportDefaultFunctionDeclaration2.types rename to tests/baselines/reference/es5ExportDefaultFunctionDeclaration2(target=es2015).types diff --git a/tests/baselines/reference/es5ExportDefaultFunctionDeclaration2(target=es5).js b/tests/baselines/reference/es5ExportDefaultFunctionDeclaration2(target=es5).js new file mode 100644 index 0000000000000..6da9432cdb18e --- /dev/null +++ b/tests/baselines/reference/es5ExportDefaultFunctionDeclaration2(target=es5).js @@ -0,0 +1,15 @@ +//// [tests/cases/compiler/es5ExportDefaultFunctionDeclaration2.ts] //// + +//// [es5ExportDefaultFunctionDeclaration2.ts] +export default function () { } + + +//// [es5ExportDefaultFunctionDeclaration2.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = default_1; +function default_1() { } + + +//// [es5ExportDefaultFunctionDeclaration2.d.ts] +export default function (): void; diff --git a/tests/baselines/reference/es5ExportDefaultFunctionDeclaration2(target=es5).symbols b/tests/baselines/reference/es5ExportDefaultFunctionDeclaration2(target=es5).symbols new file mode 100644 index 0000000000000..57692741cd712 --- /dev/null +++ b/tests/baselines/reference/es5ExportDefaultFunctionDeclaration2(target=es5).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/compiler/es5ExportDefaultFunctionDeclaration2.ts] //// + +=== es5ExportDefaultFunctionDeclaration2.ts === + +export default function () { } + diff --git a/tests/baselines/reference/es5ExportDefaultFunctionDeclaration2(target=es5).types b/tests/baselines/reference/es5ExportDefaultFunctionDeclaration2(target=es5).types new file mode 100644 index 0000000000000..57692741cd712 --- /dev/null +++ b/tests/baselines/reference/es5ExportDefaultFunctionDeclaration2(target=es5).types @@ -0,0 +1,6 @@ +//// [tests/cases/compiler/es5ExportDefaultFunctionDeclaration2.ts] //// + +=== es5ExportDefaultFunctionDeclaration2.ts === + +export default function () { } + diff --git a/tests/baselines/reference/es5ExportDefaultFunctionDeclaration3.js b/tests/baselines/reference/es5ExportDefaultFunctionDeclaration3(target=es2015).js similarity index 100% rename from tests/baselines/reference/es5ExportDefaultFunctionDeclaration3.js rename to tests/baselines/reference/es5ExportDefaultFunctionDeclaration3(target=es2015).js diff --git a/tests/baselines/reference/es5ExportDefaultFunctionDeclaration3.symbols b/tests/baselines/reference/es5ExportDefaultFunctionDeclaration3(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es5ExportDefaultFunctionDeclaration3.symbols rename to tests/baselines/reference/es5ExportDefaultFunctionDeclaration3(target=es2015).symbols diff --git a/tests/baselines/reference/es5ExportDefaultFunctionDeclaration3.types b/tests/baselines/reference/es5ExportDefaultFunctionDeclaration3(target=es2015).types similarity index 100% rename from tests/baselines/reference/es5ExportDefaultFunctionDeclaration3.types rename to tests/baselines/reference/es5ExportDefaultFunctionDeclaration3(target=es2015).types diff --git a/tests/baselines/reference/es5ExportDefaultFunctionDeclaration3(target=es5).js b/tests/baselines/reference/es5ExportDefaultFunctionDeclaration3(target=es5).js new file mode 100644 index 0000000000000..c40155845eb58 --- /dev/null +++ b/tests/baselines/reference/es5ExportDefaultFunctionDeclaration3(target=es5).js @@ -0,0 +1,24 @@ +//// [tests/cases/compiler/es5ExportDefaultFunctionDeclaration3.ts] //// + +//// [es5ExportDefaultFunctionDeclaration3.ts] +var before: typeof func = func(); + +export default function func(): typeof func { + return func; +} + +var after: typeof func = func(); + +//// [es5ExportDefaultFunctionDeclaration3.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = func; +var before = func(); +function func() { + return func; +} +var after = func(); + + +//// [es5ExportDefaultFunctionDeclaration3.d.ts] +export default function func(): typeof func; diff --git a/tests/baselines/reference/es5ExportDefaultFunctionDeclaration3(target=es5).symbols b/tests/baselines/reference/es5ExportDefaultFunctionDeclaration3(target=es5).symbols new file mode 100644 index 0000000000000..0f4030e8f064f --- /dev/null +++ b/tests/baselines/reference/es5ExportDefaultFunctionDeclaration3(target=es5).symbols @@ -0,0 +1,21 @@ +//// [tests/cases/compiler/es5ExportDefaultFunctionDeclaration3.ts] //// + +=== es5ExportDefaultFunctionDeclaration3.ts === +var before: typeof func = func(); +>before : Symbol(before, Decl(es5ExportDefaultFunctionDeclaration3.ts, 0, 3)) +>func : Symbol(func, Decl(es5ExportDefaultFunctionDeclaration3.ts, 0, 33)) +>func : Symbol(func, Decl(es5ExportDefaultFunctionDeclaration3.ts, 0, 33)) + +export default function func(): typeof func { +>func : Symbol(func, Decl(es5ExportDefaultFunctionDeclaration3.ts, 0, 33)) +>func : Symbol(func, Decl(es5ExportDefaultFunctionDeclaration3.ts, 0, 33)) + + return func; +>func : Symbol(func, Decl(es5ExportDefaultFunctionDeclaration3.ts, 0, 33)) +} + +var after: typeof func = func(); +>after : Symbol(after, Decl(es5ExportDefaultFunctionDeclaration3.ts, 6, 3)) +>func : Symbol(func, Decl(es5ExportDefaultFunctionDeclaration3.ts, 0, 33)) +>func : Symbol(func, Decl(es5ExportDefaultFunctionDeclaration3.ts, 0, 33)) + diff --git a/tests/baselines/reference/es5ExportDefaultFunctionDeclaration3(target=es5).types b/tests/baselines/reference/es5ExportDefaultFunctionDeclaration3(target=es5).types new file mode 100644 index 0000000000000..eafe9231ab4f5 --- /dev/null +++ b/tests/baselines/reference/es5ExportDefaultFunctionDeclaration3(target=es5).types @@ -0,0 +1,34 @@ +//// [tests/cases/compiler/es5ExportDefaultFunctionDeclaration3.ts] //// + +=== es5ExportDefaultFunctionDeclaration3.ts === +var before: typeof func = func(); +>before : () => typeof func +> : ^^^^^^ +>func : () => typeof func +> : ^^^^^^ +>func() : () => typeof func +> : ^^^^^^ +>func : () => typeof func +> : ^^^^^^ + +export default function func(): typeof func { +>func : () => typeof func +> : ^^^^^^ +>func : () => typeof func +> : ^^^^^^ + + return func; +>func : () => typeof func +> : ^^^^^^ +} + +var after: typeof func = func(); +>after : () => typeof func +> : ^^^^^^ +>func : () => typeof func +> : ^^^^^^ +>func() : () => typeof func +> : ^^^^^^ +>func : () => typeof func +> : ^^^^^^ + diff --git a/tests/baselines/reference/es5ExportDefaultFunctionDeclaration4.js b/tests/baselines/reference/es5ExportDefaultFunctionDeclaration4(target=es2015).js similarity index 100% rename from tests/baselines/reference/es5ExportDefaultFunctionDeclaration4.js rename to tests/baselines/reference/es5ExportDefaultFunctionDeclaration4(target=es2015).js diff --git a/tests/baselines/reference/es5ExportDefaultFunctionDeclaration4.symbols b/tests/baselines/reference/es5ExportDefaultFunctionDeclaration4(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es5ExportDefaultFunctionDeclaration4.symbols rename to tests/baselines/reference/es5ExportDefaultFunctionDeclaration4(target=es2015).symbols diff --git a/tests/baselines/reference/es5ExportDefaultFunctionDeclaration4.types b/tests/baselines/reference/es5ExportDefaultFunctionDeclaration4(target=es2015).types similarity index 100% rename from tests/baselines/reference/es5ExportDefaultFunctionDeclaration4.types rename to tests/baselines/reference/es5ExportDefaultFunctionDeclaration4(target=es2015).types diff --git a/tests/baselines/reference/es5ExportDefaultFunctionDeclaration4(target=es5).js b/tests/baselines/reference/es5ExportDefaultFunctionDeclaration4(target=es5).js new file mode 100644 index 0000000000000..075581be5acf5 --- /dev/null +++ b/tests/baselines/reference/es5ExportDefaultFunctionDeclaration4(target=es5).js @@ -0,0 +1,20 @@ +//// [tests/cases/compiler/es5ExportDefaultFunctionDeclaration4.ts] //// + +//// [es5ExportDefaultFunctionDeclaration4.ts] +declare module "bar" { + var before: typeof func; + + export default function func(): typeof func; + + var after: typeof func; +} + +//// [es5ExportDefaultFunctionDeclaration4.js] + + +//// [es5ExportDefaultFunctionDeclaration4.d.ts] +declare module "bar" { + var before: typeof func; + export default function func(): typeof func; + var after: typeof func; +} diff --git a/tests/baselines/reference/es5ExportDefaultFunctionDeclaration4(target=es5).symbols b/tests/baselines/reference/es5ExportDefaultFunctionDeclaration4(target=es5).symbols new file mode 100644 index 0000000000000..be64cf114edb2 --- /dev/null +++ b/tests/baselines/reference/es5ExportDefaultFunctionDeclaration4(target=es5).symbols @@ -0,0 +1,18 @@ +//// [tests/cases/compiler/es5ExportDefaultFunctionDeclaration4.ts] //// + +=== es5ExportDefaultFunctionDeclaration4.ts === +declare module "bar" { +>"bar" : Symbol("bar", Decl(es5ExportDefaultFunctionDeclaration4.ts, 0, 0)) + + var before: typeof func; +>before : Symbol(before, Decl(es5ExportDefaultFunctionDeclaration4.ts, 1, 7)) +>func : Symbol(func, Decl(es5ExportDefaultFunctionDeclaration4.ts, 1, 28)) + + export default function func(): typeof func; +>func : Symbol(func, Decl(es5ExportDefaultFunctionDeclaration4.ts, 1, 28)) +>func : Symbol(func, Decl(es5ExportDefaultFunctionDeclaration4.ts, 1, 28)) + + var after: typeof func; +>after : Symbol(after, Decl(es5ExportDefaultFunctionDeclaration4.ts, 5, 7)) +>func : Symbol(func, Decl(es5ExportDefaultFunctionDeclaration4.ts, 1, 28)) +} diff --git a/tests/baselines/reference/es5ExportDefaultFunctionDeclaration4(target=es5).types b/tests/baselines/reference/es5ExportDefaultFunctionDeclaration4(target=es5).types new file mode 100644 index 0000000000000..780a7ff18a755 --- /dev/null +++ b/tests/baselines/reference/es5ExportDefaultFunctionDeclaration4(target=es5).types @@ -0,0 +1,25 @@ +//// [tests/cases/compiler/es5ExportDefaultFunctionDeclaration4.ts] //// + +=== es5ExportDefaultFunctionDeclaration4.ts === +declare module "bar" { +>"bar" : typeof import("bar") +> : ^^^^^^^^^^^^^^^^^^^^ + + var before: typeof func; +>before : () => typeof func +> : ^^^^^^ +>func : () => typeof func +> : ^^^^^^ + + export default function func(): typeof func; +>func : () => typeof func +> : ^^^^^^ +>func : () => typeof func +> : ^^^^^^ + + var after: typeof func; +>after : () => typeof func +> : ^^^^^^ +>func : () => typeof func +> : ^^^^^^ +} diff --git a/tests/baselines/reference/es5ExportDefaultIdentifier.js b/tests/baselines/reference/es5ExportDefaultIdentifier(target=es2015).js similarity index 100% rename from tests/baselines/reference/es5ExportDefaultIdentifier.js rename to tests/baselines/reference/es5ExportDefaultIdentifier(target=es2015).js diff --git a/tests/baselines/reference/es5ExportDefaultIdentifier.symbols b/tests/baselines/reference/es5ExportDefaultIdentifier(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es5ExportDefaultIdentifier.symbols rename to tests/baselines/reference/es5ExportDefaultIdentifier(target=es2015).symbols diff --git a/tests/baselines/reference/es5ExportDefaultIdentifier.types b/tests/baselines/reference/es5ExportDefaultIdentifier(target=es2015).types similarity index 100% rename from tests/baselines/reference/es5ExportDefaultIdentifier.types rename to tests/baselines/reference/es5ExportDefaultIdentifier(target=es2015).types diff --git a/tests/baselines/reference/es5ExportDefaultIdentifier(target=es5).js b/tests/baselines/reference/es5ExportDefaultIdentifier(target=es5).js new file mode 100644 index 0000000000000..d1fc5447611e2 --- /dev/null +++ b/tests/baselines/reference/es5ExportDefaultIdentifier(target=es5).js @@ -0,0 +1,19 @@ +//// [tests/cases/compiler/es5ExportDefaultIdentifier.ts] //// + +//// [es5ExportDefaultIdentifier.ts] +export function f() { } + +export default f; + + +//// [es5ExportDefaultIdentifier.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.f = f; +function f() { } +exports.default = f; + + +//// [es5ExportDefaultIdentifier.d.ts] +export declare function f(): void; +export default f; diff --git a/tests/baselines/reference/es5ExportDefaultIdentifier(target=es5).symbols b/tests/baselines/reference/es5ExportDefaultIdentifier(target=es5).symbols new file mode 100644 index 0000000000000..e577ca1d70569 --- /dev/null +++ b/tests/baselines/reference/es5ExportDefaultIdentifier(target=es5).symbols @@ -0,0 +1,9 @@ +//// [tests/cases/compiler/es5ExportDefaultIdentifier.ts] //// + +=== es5ExportDefaultIdentifier.ts === +export function f() { } +>f : Symbol(f, Decl(es5ExportDefaultIdentifier.ts, 0, 0)) + +export default f; +>f : Symbol(f, Decl(es5ExportDefaultIdentifier.ts, 0, 0)) + diff --git a/tests/baselines/reference/es5ExportDefaultIdentifier(target=es5).types b/tests/baselines/reference/es5ExportDefaultIdentifier(target=es5).types new file mode 100644 index 0000000000000..3fac9b41b7d55 --- /dev/null +++ b/tests/baselines/reference/es5ExportDefaultIdentifier(target=es5).types @@ -0,0 +1,11 @@ +//// [tests/cases/compiler/es5ExportDefaultIdentifier.ts] //// + +=== es5ExportDefaultIdentifier.ts === +export function f() { } +>f : () => void +> : ^^^^^^^^^^ + +export default f; +>f : () => void +> : ^^^^^^^^^^ + diff --git a/tests/baselines/reference/es5ExportEquals.errors.txt b/tests/baselines/reference/es5ExportEquals(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/es5ExportEquals.errors.txt rename to tests/baselines/reference/es5ExportEquals(target=es2015).errors.txt diff --git a/tests/baselines/reference/es5ExportEquals.js b/tests/baselines/reference/es5ExportEquals(target=es2015).js similarity index 100% rename from tests/baselines/reference/es5ExportEquals.js rename to tests/baselines/reference/es5ExportEquals(target=es2015).js diff --git a/tests/baselines/reference/es5ExportEquals.symbols b/tests/baselines/reference/es5ExportEquals(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es5ExportEquals.symbols rename to tests/baselines/reference/es5ExportEquals(target=es2015).symbols diff --git a/tests/baselines/reference/es5ExportEquals.types b/tests/baselines/reference/es5ExportEquals(target=es2015).types similarity index 100% rename from tests/baselines/reference/es5ExportEquals.types rename to tests/baselines/reference/es5ExportEquals(target=es2015).types diff --git a/tests/baselines/reference/es5ExportEquals(target=es5).errors.txt b/tests/baselines/reference/es5ExportEquals(target=es5).errors.txt new file mode 100644 index 0000000000000..c91f31d27c2b1 --- /dev/null +++ b/tests/baselines/reference/es5ExportEquals(target=es5).errors.txt @@ -0,0 +1,10 @@ +es5ExportEquals.ts(3,1): error TS2309: An export assignment cannot be used in a module with other exported elements. + + +==== es5ExportEquals.ts (1 errors) ==== + export function f() { } + + export = f; + ~~~~~~~~~~~ +!!! error TS2309: An export assignment cannot be used in a module with other exported elements. + \ No newline at end of file diff --git a/tests/baselines/reference/es5ExportEquals(target=es5).js b/tests/baselines/reference/es5ExportEquals(target=es5).js new file mode 100644 index 0000000000000..575e10c548277 --- /dev/null +++ b/tests/baselines/reference/es5ExportEquals(target=es5).js @@ -0,0 +1,17 @@ +//// [tests/cases/compiler/es5ExportEquals.ts] //// + +//// [es5ExportEquals.ts] +export function f() { } + +export = f; + + +//// [es5ExportEquals.js] +"use strict"; +function f() { } +module.exports = f; + + +//// [es5ExportEquals.d.ts] +export declare function f(): void; +export = f; diff --git a/tests/baselines/reference/es5ExportEquals(target=es5).symbols b/tests/baselines/reference/es5ExportEquals(target=es5).symbols new file mode 100644 index 0000000000000..1d6b444509f66 --- /dev/null +++ b/tests/baselines/reference/es5ExportEquals(target=es5).symbols @@ -0,0 +1,9 @@ +//// [tests/cases/compiler/es5ExportEquals.ts] //// + +=== es5ExportEquals.ts === +export function f() { } +>f : Symbol(f, Decl(es5ExportEquals.ts, 0, 0)) + +export = f; +>f : Symbol(f, Decl(es5ExportEquals.ts, 0, 0)) + diff --git a/tests/baselines/reference/es5ExportEquals(target=es5).types b/tests/baselines/reference/es5ExportEquals(target=es5).types new file mode 100644 index 0000000000000..26a3900de8ad6 --- /dev/null +++ b/tests/baselines/reference/es5ExportEquals(target=es5).types @@ -0,0 +1,11 @@ +//// [tests/cases/compiler/es5ExportEquals.ts] //// + +=== es5ExportEquals.ts === +export function f() { } +>f : typeof f +> : ^^^^^^^^ + +export = f; +>f : typeof f +> : ^^^^^^^^ + diff --git a/tests/baselines/reference/es5ExportEqualsDts(target=es2015).js b/tests/baselines/reference/es5ExportEqualsDts(target=es2015).js new file mode 100644 index 0000000000000..cb7ff692d89e1 --- /dev/null +++ b/tests/baselines/reference/es5ExportEqualsDts(target=es2015).js @@ -0,0 +1,36 @@ +//// [tests/cases/compiler/es5ExportEqualsDts.ts] //// + +//// [es5ExportEqualsDts.ts] +class A { + foo() { + var aVal: A.B; + return aVal; + } +} + +namespace A { + export interface B { } +} + +export = A + +//// [es5ExportEqualsDts.js] +"use strict"; +class A { + foo() { + var aVal; + return aVal; + } +} +module.exports = A; + + +//// [es5ExportEqualsDts.d.ts] +declare class A { + foo(): A.B; +} +declare namespace A { + interface B { + } +} +export = A; diff --git a/tests/baselines/reference/es5ExportEqualsDts.symbols b/tests/baselines/reference/es5ExportEqualsDts(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es5ExportEqualsDts.symbols rename to tests/baselines/reference/es5ExportEqualsDts(target=es2015).symbols diff --git a/tests/baselines/reference/es5ExportEqualsDts.types b/tests/baselines/reference/es5ExportEqualsDts(target=es2015).types similarity index 100% rename from tests/baselines/reference/es5ExportEqualsDts.types rename to tests/baselines/reference/es5ExportEqualsDts(target=es2015).types diff --git a/tests/baselines/reference/es5ExportEqualsDts.js b/tests/baselines/reference/es5ExportEqualsDts(target=es5).js similarity index 100% rename from tests/baselines/reference/es5ExportEqualsDts.js rename to tests/baselines/reference/es5ExportEqualsDts(target=es5).js diff --git a/tests/baselines/reference/es5ExportEqualsDts(target=es5).symbols b/tests/baselines/reference/es5ExportEqualsDts(target=es5).symbols new file mode 100644 index 0000000000000..7ed6986e62a26 --- /dev/null +++ b/tests/baselines/reference/es5ExportEqualsDts(target=es5).symbols @@ -0,0 +1,29 @@ +//// [tests/cases/compiler/es5ExportEqualsDts.ts] //// + +=== es5ExportEqualsDts.ts === +class A { +>A : Symbol(A, Decl(es5ExportEqualsDts.ts, 0, 0), Decl(es5ExportEqualsDts.ts, 5, 1)) + + foo() { +>foo : Symbol(A.foo, Decl(es5ExportEqualsDts.ts, 0, 9)) + + var aVal: A.B; +>aVal : Symbol(aVal, Decl(es5ExportEqualsDts.ts, 2, 11)) +>A : Symbol(A, Decl(es5ExportEqualsDts.ts, 0, 0), Decl(es5ExportEqualsDts.ts, 5, 1)) +>B : Symbol(A.B, Decl(es5ExportEqualsDts.ts, 7, 13)) + + return aVal; +>aVal : Symbol(aVal, Decl(es5ExportEqualsDts.ts, 2, 11)) + } +} + +namespace A { +>A : Symbol(A, Decl(es5ExportEqualsDts.ts, 0, 0), Decl(es5ExportEqualsDts.ts, 5, 1)) + + export interface B { } +>B : Symbol(B, Decl(es5ExportEqualsDts.ts, 7, 13)) +} + +export = A +>A : Symbol(A, Decl(es5ExportEqualsDts.ts, 0, 0), Decl(es5ExportEqualsDts.ts, 5, 1)) + diff --git a/tests/baselines/reference/es5ExportEqualsDts(target=es5).types b/tests/baselines/reference/es5ExportEqualsDts(target=es5).types new file mode 100644 index 0000000000000..b4168d3b70446 --- /dev/null +++ b/tests/baselines/reference/es5ExportEqualsDts(target=es5).types @@ -0,0 +1,31 @@ +//// [tests/cases/compiler/es5ExportEqualsDts.ts] //// + +=== es5ExportEqualsDts.ts === +class A { +>A : A +> : ^ + + foo() { +>foo : () => A.B +> : ^^^^^^^^^ + + var aVal: A.B; +>aVal : A.B +> : ^^^ +>A : any +> : ^^^ + + return aVal; +>aVal : A.B +> : ^^^ + } +} + +namespace A { + export interface B { } +} + +export = A +>A : A +> : ^ + diff --git a/tests/baselines/reference/es5ModuleInternalNamedImports.errors.txt b/tests/baselines/reference/es5ModuleInternalNamedImports(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/es5ModuleInternalNamedImports.errors.txt rename to tests/baselines/reference/es5ModuleInternalNamedImports(target=es2015).errors.txt diff --git a/tests/baselines/reference/es5ModuleInternalNamedImports(target=es2015).js b/tests/baselines/reference/es5ModuleInternalNamedImports(target=es2015).js new file mode 100644 index 0000000000000..640e222db79ee --- /dev/null +++ b/tests/baselines/reference/es5ModuleInternalNamedImports(target=es2015).js @@ -0,0 +1,66 @@ +//// [tests/cases/compiler/es5ModuleInternalNamedImports.ts] //// + +//// [es5ModuleInternalNamedImports.ts] +export namespace M { + // variable + export var M_V = 0; + // interface + export interface M_I { } + //calss + export class M_C { } + // instantiated module + export namespace M_M { var x; } + // uninstantiated module + export namespace M_MU { } + // function + export function M_F() { } + // enum + export enum M_E { } + // type + export type M_T = number; + // alias + export import M_A = M_M; + + // Reexports + export {M_V as v}; + export {M_I as i}; + export {M_C as c}; + export {M_M as m}; + export {M_MU as mu}; + export {M_F as f}; + export {M_E as e}; + export {M_A as a}; + import * as M2 from "M2"; + import M4 from "M4"; + export import M5 = require("M5"); +} +import M3 from "M3"; + + +//// [es5ModuleInternalNamedImports.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.M = void 0; +var M; +(function (M) { + // variable + M.M_V = 0; + //calss + class M_C { + } + M.M_C = M_C; + // instantiated module + let M_M; + (function (M_M) { + var x; + })(M_M = M.M_M || (M.M_M = {})); + // function + function M_F() { } + M.M_F = M_F; + // enum + let M_E; + (function (M_E) { + })(M_E = M.M_E || (M.M_E = {})); + // alias + M.M_A = M_M; +})(M || (exports.M = M = {})); diff --git a/tests/baselines/reference/es5ModuleInternalNamedImports.symbols b/tests/baselines/reference/es5ModuleInternalNamedImports(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es5ModuleInternalNamedImports.symbols rename to tests/baselines/reference/es5ModuleInternalNamedImports(target=es2015).symbols diff --git a/tests/baselines/reference/es5ModuleInternalNamedImports.types b/tests/baselines/reference/es5ModuleInternalNamedImports(target=es2015).types similarity index 100% rename from tests/baselines/reference/es5ModuleInternalNamedImports.types rename to tests/baselines/reference/es5ModuleInternalNamedImports(target=es2015).types diff --git a/tests/baselines/reference/es5ModuleInternalNamedImports(target=es5).errors.txt b/tests/baselines/reference/es5ModuleInternalNamedImports(target=es5).errors.txt new file mode 100644 index 0000000000000..869e875cf83cd --- /dev/null +++ b/tests/baselines/reference/es5ModuleInternalNamedImports(target=es5).errors.txt @@ -0,0 +1,74 @@ +es5ModuleInternalNamedImports.ts(22,5): error TS1194: Export declarations are not permitted in a namespace. +es5ModuleInternalNamedImports.ts(23,5): error TS1194: Export declarations are not permitted in a namespace. +es5ModuleInternalNamedImports.ts(24,5): error TS1194: Export declarations are not permitted in a namespace. +es5ModuleInternalNamedImports.ts(25,5): error TS1194: Export declarations are not permitted in a namespace. +es5ModuleInternalNamedImports.ts(26,5): error TS1194: Export declarations are not permitted in a namespace. +es5ModuleInternalNamedImports.ts(27,5): error TS1194: Export declarations are not permitted in a namespace. +es5ModuleInternalNamedImports.ts(28,5): error TS1194: Export declarations are not permitted in a namespace. +es5ModuleInternalNamedImports.ts(29,5): error TS1194: Export declarations are not permitted in a namespace. +es5ModuleInternalNamedImports.ts(30,25): error TS1147: Import declarations in a namespace cannot reference a module. +es5ModuleInternalNamedImports.ts(31,20): error TS1147: Import declarations in a namespace cannot reference a module. +es5ModuleInternalNamedImports.ts(32,32): error TS1147: Import declarations in a namespace cannot reference a module. +es5ModuleInternalNamedImports.ts(34,16): error TS2307: Cannot find module 'M3' or its corresponding type declarations. + + +==== es5ModuleInternalNamedImports.ts (12 errors) ==== + export namespace M { + // variable + export var M_V = 0; + // interface + export interface M_I { } + //calss + export class M_C { } + // instantiated module + export namespace M_M { var x; } + // uninstantiated module + export namespace M_MU { } + // function + export function M_F() { } + // enum + export enum M_E { } + // type + export type M_T = number; + // alias + export import M_A = M_M; + + // Reexports + export {M_V as v}; + ~~~~~~~~~~~~~~~~~~ +!!! error TS1194: Export declarations are not permitted in a namespace. + export {M_I as i}; + ~~~~~~~~~~~~~~~~~~ +!!! error TS1194: Export declarations are not permitted in a namespace. + export {M_C as c}; + ~~~~~~~~~~~~~~~~~~ +!!! error TS1194: Export declarations are not permitted in a namespace. + export {M_M as m}; + ~~~~~~~~~~~~~~~~~~ +!!! error TS1194: Export declarations are not permitted in a namespace. + export {M_MU as mu}; + ~~~~~~~~~~~~~~~~~~~~ +!!! error TS1194: Export declarations are not permitted in a namespace. + export {M_F as f}; + ~~~~~~~~~~~~~~~~~~ +!!! error TS1194: Export declarations are not permitted in a namespace. + export {M_E as e}; + ~~~~~~~~~~~~~~~~~~ +!!! error TS1194: Export declarations are not permitted in a namespace. + export {M_A as a}; + ~~~~~~~~~~~~~~~~~~ +!!! error TS1194: Export declarations are not permitted in a namespace. + import * as M2 from "M2"; + ~~~~ +!!! error TS1147: Import declarations in a namespace cannot reference a module. + import M4 from "M4"; + ~~~~ +!!! error TS1147: Import declarations in a namespace cannot reference a module. + export import M5 = require("M5"); + ~~~~ +!!! error TS1147: Import declarations in a namespace cannot reference a module. + } + import M3 from "M3"; + ~~~~ +!!! error TS2307: Cannot find module 'M3' or its corresponding type declarations. + \ No newline at end of file diff --git a/tests/baselines/reference/es5ModuleInternalNamedImports.js b/tests/baselines/reference/es5ModuleInternalNamedImports(target=es5).js similarity index 100% rename from tests/baselines/reference/es5ModuleInternalNamedImports.js rename to tests/baselines/reference/es5ModuleInternalNamedImports(target=es5).js diff --git a/tests/baselines/reference/es5ModuleInternalNamedImports(target=es5).symbols b/tests/baselines/reference/es5ModuleInternalNamedImports(target=es5).symbols new file mode 100644 index 0000000000000..314422061d419 --- /dev/null +++ b/tests/baselines/reference/es5ModuleInternalNamedImports(target=es5).symbols @@ -0,0 +1,89 @@ +//// [tests/cases/compiler/es5ModuleInternalNamedImports.ts] //// + +=== es5ModuleInternalNamedImports.ts === +export namespace M { +>M : Symbol(M, Decl(es5ModuleInternalNamedImports.ts, 0, 0)) + + // variable + export var M_V = 0; +>M_V : Symbol(M_V, Decl(es5ModuleInternalNamedImports.ts, 2, 14)) + + // interface + export interface M_I { } +>M_I : Symbol(M_I, Decl(es5ModuleInternalNamedImports.ts, 2, 23)) + + //calss + export class M_C { } +>M_C : Symbol(M_C, Decl(es5ModuleInternalNamedImports.ts, 4, 28)) + + // instantiated module + export namespace M_M { var x; } +>M_M : Symbol(M_M, Decl(es5ModuleInternalNamedImports.ts, 6, 24)) +>x : Symbol(x, Decl(es5ModuleInternalNamedImports.ts, 8, 30)) + + // uninstantiated module + export namespace M_MU { } +>M_MU : Symbol(M_MU, Decl(es5ModuleInternalNamedImports.ts, 8, 35)) + + // function + export function M_F() { } +>M_F : Symbol(M_F, Decl(es5ModuleInternalNamedImports.ts, 10, 29)) + + // enum + export enum M_E { } +>M_E : Symbol(M_E, Decl(es5ModuleInternalNamedImports.ts, 12, 29)) + + // type + export type M_T = number; +>M_T : Symbol(M_T, Decl(es5ModuleInternalNamedImports.ts, 14, 23)) + + // alias + export import M_A = M_M; +>M_A : Symbol(M_A, Decl(es5ModuleInternalNamedImports.ts, 16, 29)) +>M_M : Symbol(M_M, Decl(es5ModuleInternalNamedImports.ts, 6, 24)) + + // Reexports + export {M_V as v}; +>M_V : Symbol(M_V, Decl(es5ModuleInternalNamedImports.ts, 2, 14)) +>v : Symbol(v, Decl(es5ModuleInternalNamedImports.ts, 21, 12)) + + export {M_I as i}; +>M_I : Symbol(M_I, Decl(es5ModuleInternalNamedImports.ts, 2, 23)) +>i : Symbol(i, Decl(es5ModuleInternalNamedImports.ts, 22, 12)) + + export {M_C as c}; +>M_C : Symbol(M_C, Decl(es5ModuleInternalNamedImports.ts, 4, 28)) +>c : Symbol(c, Decl(es5ModuleInternalNamedImports.ts, 23, 12)) + + export {M_M as m}; +>M_M : Symbol(M_M, Decl(es5ModuleInternalNamedImports.ts, 6, 24)) +>m : Symbol(m, Decl(es5ModuleInternalNamedImports.ts, 24, 12)) + + export {M_MU as mu}; +>M_MU : Symbol(M_MU, Decl(es5ModuleInternalNamedImports.ts, 8, 35)) +>mu : Symbol(mu, Decl(es5ModuleInternalNamedImports.ts, 25, 12)) + + export {M_F as f}; +>M_F : Symbol(M_F, Decl(es5ModuleInternalNamedImports.ts, 10, 29)) +>f : Symbol(f, Decl(es5ModuleInternalNamedImports.ts, 26, 12)) + + export {M_E as e}; +>M_E : Symbol(M_E, Decl(es5ModuleInternalNamedImports.ts, 12, 29)) +>e : Symbol(e, Decl(es5ModuleInternalNamedImports.ts, 27, 12)) + + export {M_A as a}; +>M_A : Symbol(M_A, Decl(es5ModuleInternalNamedImports.ts, 16, 29)) +>a : Symbol(a, Decl(es5ModuleInternalNamedImports.ts, 28, 12)) + + import * as M2 from "M2"; +>M2 : Symbol(M2, Decl(es5ModuleInternalNamedImports.ts, 29, 10)) + + import M4 from "M4"; +>M4 : Symbol(M4, Decl(es5ModuleInternalNamedImports.ts, 30, 10)) + + export import M5 = require("M5"); +>M5 : Symbol(M5, Decl(es5ModuleInternalNamedImports.ts, 30, 24)) +} +import M3 from "M3"; +>M3 : Symbol(M3, Decl(es5ModuleInternalNamedImports.ts, 33, 6)) + diff --git a/tests/baselines/reference/es5ModuleInternalNamedImports(target=es5).types b/tests/baselines/reference/es5ModuleInternalNamedImports(target=es5).types new file mode 100644 index 0000000000000..7aafad5faddad --- /dev/null +++ b/tests/baselines/reference/es5ModuleInternalNamedImports(target=es5).types @@ -0,0 +1,117 @@ +//// [tests/cases/compiler/es5ModuleInternalNamedImports.ts] //// + +=== es5ModuleInternalNamedImports.ts === +export namespace M { +>M : typeof M +> : ^^^^^^^^ + + // variable + export var M_V = 0; +>M_V : number +> : ^^^^^^ +>0 : 0 +> : ^ + + // interface + export interface M_I { } + //calss + export class M_C { } +>M_C : M_C +> : ^^^ + + // instantiated module + export namespace M_M { var x; } +>M_M : typeof M_M +> : ^^^^^^^^^^ +>x : any +> : ^^^ + + // uninstantiated module + export namespace M_MU { } + // function + export function M_F() { } +>M_F : () => void +> : ^^^^^^^^^^ + + // enum + export enum M_E { } +>M_E : M_E +> : ^^^ + + // type + export type M_T = number; +>M_T : number +> : ^^^^^^ + + // alias + export import M_A = M_M; +>M_A : typeof M_M +> : ^^^^^^^^^^ +>M_M : typeof M_M +> : ^^^^^^^^^^ + + // Reexports + export {M_V as v}; +>M_V : number +> : ^^^^^^ +>v : number +> : ^^^^^^ + + export {M_I as i}; +>M_I : any +> : ^^^ +>i : any +> : ^^^ + + export {M_C as c}; +>M_C : typeof M_C +> : ^^^^^^^^^^ +>c : typeof M_C +> : ^^^^^^^^^^ + + export {M_M as m}; +>M_M : typeof M_M +> : ^^^^^^^^^^ +>m : typeof M_M +> : ^^^^^^^^^^ + + export {M_MU as mu}; +>M_MU : any +> : ^^^ +>mu : any +> : ^^^ + + export {M_F as f}; +>M_F : () => void +> : ^^^^^^^^^^ +>f : () => void +> : ^^^^^^^^^^ + + export {M_E as e}; +>M_E : typeof M_E +> : ^^^^^^^^^^ +>e : typeof M_E +> : ^^^^^^^^^^ + + export {M_A as a}; +>M_A : typeof M_M +> : ^^^^^^^^^^ +>a : typeof M_M +> : ^^^^^^^^^^ + + import * as M2 from "M2"; +>M2 : any +> : ^^^ + + import M4 from "M4"; +>M4 : any +> : ^^^ + + export import M5 = require("M5"); +>M5 : any +> : ^^^ +} +import M3 from "M3"; +>M3 : any +> : ^^^ + diff --git a/tests/baselines/reference/es5ModuleWithModuleGenAmd.errors.txt b/tests/baselines/reference/es5ModuleWithModuleGenAmd(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/es5ModuleWithModuleGenAmd.errors.txt rename to tests/baselines/reference/es5ModuleWithModuleGenAmd(target=es2015).errors.txt diff --git a/tests/baselines/reference/es5ModuleWithModuleGenAmd(target=es2015).js b/tests/baselines/reference/es5ModuleWithModuleGenAmd(target=es2015).js new file mode 100644 index 0000000000000..fa72d846124eb --- /dev/null +++ b/tests/baselines/reference/es5ModuleWithModuleGenAmd(target=es2015).js @@ -0,0 +1,29 @@ +//// [tests/cases/compiler/es5ModuleWithModuleGenAmd.ts] //// + +//// [es5ModuleWithModuleGenAmd.ts] +export class A +{ + constructor () + { + } + + public B() + { + return 42; + } +} + +//// [es5ModuleWithModuleGenAmd.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.A = void 0; + class A { + constructor() { + } + B() { + return 42; + } + } + exports.A = A; +}); diff --git a/tests/baselines/reference/es5ModuleWithModuleGenAmd.symbols b/tests/baselines/reference/es5ModuleWithModuleGenAmd(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es5ModuleWithModuleGenAmd.symbols rename to tests/baselines/reference/es5ModuleWithModuleGenAmd(target=es2015).symbols diff --git a/tests/baselines/reference/es5ModuleWithModuleGenAmd.types b/tests/baselines/reference/es5ModuleWithModuleGenAmd(target=es2015).types similarity index 100% rename from tests/baselines/reference/es5ModuleWithModuleGenAmd.types rename to tests/baselines/reference/es5ModuleWithModuleGenAmd(target=es2015).types diff --git a/tests/baselines/reference/es5ModuleWithModuleGenAmd(target=es5).errors.txt b/tests/baselines/reference/es5ModuleWithModuleGenAmd(target=es5).errors.txt new file mode 100644 index 0000000000000..3e6978b3c6df0 --- /dev/null +++ b/tests/baselines/reference/es5ModuleWithModuleGenAmd(target=es5).errors.txt @@ -0,0 +1,16 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== es5ModuleWithModuleGenAmd.ts (0 errors) ==== + export class A + { + constructor () + { + } + + public B() + { + return 42; + } + } \ No newline at end of file diff --git a/tests/baselines/reference/es5ModuleWithModuleGenAmd.js b/tests/baselines/reference/es5ModuleWithModuleGenAmd(target=es5).js similarity index 100% rename from tests/baselines/reference/es5ModuleWithModuleGenAmd.js rename to tests/baselines/reference/es5ModuleWithModuleGenAmd(target=es5).js diff --git a/tests/baselines/reference/es5ModuleWithModuleGenAmd(target=es5).symbols b/tests/baselines/reference/es5ModuleWithModuleGenAmd(target=es5).symbols new file mode 100644 index 0000000000000..0d57c0727fdcb --- /dev/null +++ b/tests/baselines/reference/es5ModuleWithModuleGenAmd(target=es5).symbols @@ -0,0 +1,16 @@ +//// [tests/cases/compiler/es5ModuleWithModuleGenAmd.ts] //// + +=== es5ModuleWithModuleGenAmd.ts === +export class A +>A : Symbol(A, Decl(es5ModuleWithModuleGenAmd.ts, 0, 0)) +{ + constructor () + { + } + + public B() +>B : Symbol(A.B, Decl(es5ModuleWithModuleGenAmd.ts, 4, 5)) + { + return 42; + } +} diff --git a/tests/baselines/reference/es5ModuleWithModuleGenAmd(target=es5).types b/tests/baselines/reference/es5ModuleWithModuleGenAmd(target=es5).types new file mode 100644 index 0000000000000..56988d292ac19 --- /dev/null +++ b/tests/baselines/reference/es5ModuleWithModuleGenAmd(target=es5).types @@ -0,0 +1,20 @@ +//// [tests/cases/compiler/es5ModuleWithModuleGenAmd.ts] //// + +=== es5ModuleWithModuleGenAmd.ts === +export class A +>A : A +> : ^ +{ + constructor () + { + } + + public B() +>B : () => number +> : ^^^^^^^^^^^^ + { + return 42; +>42 : 42 +> : ^^ + } +} diff --git a/tests/baselines/reference/es5ModuleWithModuleGenCommonjs(target=es2015).js b/tests/baselines/reference/es5ModuleWithModuleGenCommonjs(target=es2015).js new file mode 100644 index 0000000000000..c051bbf196917 --- /dev/null +++ b/tests/baselines/reference/es5ModuleWithModuleGenCommonjs(target=es2015).js @@ -0,0 +1,27 @@ +//// [tests/cases/compiler/es5ModuleWithModuleGenCommonjs.ts] //// + +//// [es5ModuleWithModuleGenCommonjs.ts] +export class A +{ + constructor () + { + } + + public B() + { + return 42; + } +} + +//// [es5ModuleWithModuleGenCommonjs.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.A = void 0; +class A { + constructor() { + } + B() { + return 42; + } +} +exports.A = A; diff --git a/tests/baselines/reference/es5ModuleWithModuleGenCommonjs.symbols b/tests/baselines/reference/es5ModuleWithModuleGenCommonjs(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es5ModuleWithModuleGenCommonjs.symbols rename to tests/baselines/reference/es5ModuleWithModuleGenCommonjs(target=es2015).symbols diff --git a/tests/baselines/reference/es5ModuleWithModuleGenCommonjs.types b/tests/baselines/reference/es5ModuleWithModuleGenCommonjs(target=es2015).types similarity index 100% rename from tests/baselines/reference/es5ModuleWithModuleGenCommonjs.types rename to tests/baselines/reference/es5ModuleWithModuleGenCommonjs(target=es2015).types diff --git a/tests/baselines/reference/es5ModuleWithModuleGenCommonjs.js b/tests/baselines/reference/es5ModuleWithModuleGenCommonjs(target=es5).js similarity index 100% rename from tests/baselines/reference/es5ModuleWithModuleGenCommonjs.js rename to tests/baselines/reference/es5ModuleWithModuleGenCommonjs(target=es5).js diff --git a/tests/baselines/reference/es5ModuleWithModuleGenCommonjs(target=es5).symbols b/tests/baselines/reference/es5ModuleWithModuleGenCommonjs(target=es5).symbols new file mode 100644 index 0000000000000..ed79a41bae001 --- /dev/null +++ b/tests/baselines/reference/es5ModuleWithModuleGenCommonjs(target=es5).symbols @@ -0,0 +1,16 @@ +//// [tests/cases/compiler/es5ModuleWithModuleGenCommonjs.ts] //// + +=== es5ModuleWithModuleGenCommonjs.ts === +export class A +>A : Symbol(A, Decl(es5ModuleWithModuleGenCommonjs.ts, 0, 0)) +{ + constructor () + { + } + + public B() +>B : Symbol(A.B, Decl(es5ModuleWithModuleGenCommonjs.ts, 4, 5)) + { + return 42; + } +} diff --git a/tests/baselines/reference/es5ModuleWithModuleGenCommonjs(target=es5).types b/tests/baselines/reference/es5ModuleWithModuleGenCommonjs(target=es5).types new file mode 100644 index 0000000000000..3626e35fac48e --- /dev/null +++ b/tests/baselines/reference/es5ModuleWithModuleGenCommonjs(target=es5).types @@ -0,0 +1,20 @@ +//// [tests/cases/compiler/es5ModuleWithModuleGenCommonjs.ts] //// + +=== es5ModuleWithModuleGenCommonjs.ts === +export class A +>A : A +> : ^ +{ + constructor () + { + } + + public B() +>B : () => number +> : ^^^^^^^^^^^^ + { + return 42; +>42 : 42 +> : ^^ + } +} diff --git a/tests/baselines/reference/es5ModuleWithoutModuleGenTarget(target=es2015).js b/tests/baselines/reference/es5ModuleWithoutModuleGenTarget(target=es2015).js new file mode 100644 index 0000000000000..359bc67038757 --- /dev/null +++ b/tests/baselines/reference/es5ModuleWithoutModuleGenTarget(target=es2015).js @@ -0,0 +1,23 @@ +//// [tests/cases/compiler/es5ModuleWithoutModuleGenTarget.ts] //// + +//// [es5ModuleWithoutModuleGenTarget.ts] +export class A +{ + constructor () + { + } + + public B() + { + return 42; + } +} + +//// [es5ModuleWithoutModuleGenTarget.js] +export class A { + constructor() { + } + B() { + return 42; + } +} diff --git a/tests/baselines/reference/es5ModuleWithoutModuleGenTarget.symbols b/tests/baselines/reference/es5ModuleWithoutModuleGenTarget(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es5ModuleWithoutModuleGenTarget.symbols rename to tests/baselines/reference/es5ModuleWithoutModuleGenTarget(target=es2015).symbols diff --git a/tests/baselines/reference/es5ModuleWithoutModuleGenTarget.types b/tests/baselines/reference/es5ModuleWithoutModuleGenTarget(target=es2015).types similarity index 100% rename from tests/baselines/reference/es5ModuleWithoutModuleGenTarget.types rename to tests/baselines/reference/es5ModuleWithoutModuleGenTarget(target=es2015).types diff --git a/tests/baselines/reference/es5ModuleWithoutModuleGenTarget.js b/tests/baselines/reference/es5ModuleWithoutModuleGenTarget(target=es5).js similarity index 100% rename from tests/baselines/reference/es5ModuleWithoutModuleGenTarget.js rename to tests/baselines/reference/es5ModuleWithoutModuleGenTarget(target=es5).js diff --git a/tests/baselines/reference/es5ModuleWithoutModuleGenTarget(target=es5).symbols b/tests/baselines/reference/es5ModuleWithoutModuleGenTarget(target=es5).symbols new file mode 100644 index 0000000000000..e63582463cbd4 --- /dev/null +++ b/tests/baselines/reference/es5ModuleWithoutModuleGenTarget(target=es5).symbols @@ -0,0 +1,16 @@ +//// [tests/cases/compiler/es5ModuleWithoutModuleGenTarget.ts] //// + +=== es5ModuleWithoutModuleGenTarget.ts === +export class A +>A : Symbol(A, Decl(es5ModuleWithoutModuleGenTarget.ts, 0, 0)) +{ + constructor () + { + } + + public B() +>B : Symbol(A.B, Decl(es5ModuleWithoutModuleGenTarget.ts, 4, 5)) + { + return 42; + } +} diff --git a/tests/baselines/reference/es5ModuleWithoutModuleGenTarget(target=es5).types b/tests/baselines/reference/es5ModuleWithoutModuleGenTarget(target=es5).types new file mode 100644 index 0000000000000..4ae09928dbc81 --- /dev/null +++ b/tests/baselines/reference/es5ModuleWithoutModuleGenTarget(target=es5).types @@ -0,0 +1,20 @@ +//// [tests/cases/compiler/es5ModuleWithoutModuleGenTarget.ts] //// + +=== es5ModuleWithoutModuleGenTarget.ts === +export class A +>A : A +> : ^ +{ + constructor () + { + } + + public B() +>B : () => number +> : ^^^^^^^^^^^^ + { + return 42; +>42 : 42 +> : ^^ + } +} diff --git a/tests/baselines/reference/es5SetterparameterDestructuringNotElided(target=es2015).js b/tests/baselines/reference/es5SetterparameterDestructuringNotElided(target=es2015).js new file mode 100644 index 0000000000000..b35d7585f7bc4 --- /dev/null +++ b/tests/baselines/reference/es5SetterparameterDestructuringNotElided(target=es2015).js @@ -0,0 +1,17 @@ +//// [tests/cases/compiler/es5SetterparameterDestructuringNotElided.ts] //// + +//// [es5SetterparameterDestructuringNotElided.ts] +const foo = { + set foo([start, end]: [any, any]) { + void start; + void end; + }, +}; + +//// [es5SetterparameterDestructuringNotElided.js] +const foo = { + set foo([start, end]) { + void start; + void end; + }, +}; diff --git a/tests/baselines/reference/es5SetterparameterDestructuringNotElided.symbols b/tests/baselines/reference/es5SetterparameterDestructuringNotElided(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es5SetterparameterDestructuringNotElided.symbols rename to tests/baselines/reference/es5SetterparameterDestructuringNotElided(target=es2015).symbols diff --git a/tests/baselines/reference/es5SetterparameterDestructuringNotElided.types b/tests/baselines/reference/es5SetterparameterDestructuringNotElided(target=es2015).types similarity index 100% rename from tests/baselines/reference/es5SetterparameterDestructuringNotElided.types rename to tests/baselines/reference/es5SetterparameterDestructuringNotElided(target=es2015).types diff --git a/tests/baselines/reference/es5SetterparameterDestructuringNotElided.js b/tests/baselines/reference/es5SetterparameterDestructuringNotElided(target=es5).js similarity index 100% rename from tests/baselines/reference/es5SetterparameterDestructuringNotElided.js rename to tests/baselines/reference/es5SetterparameterDestructuringNotElided(target=es5).js diff --git a/tests/baselines/reference/es5SetterparameterDestructuringNotElided(target=es5).symbols b/tests/baselines/reference/es5SetterparameterDestructuringNotElided(target=es5).symbols new file mode 100644 index 0000000000000..b6671d5590dd4 --- /dev/null +++ b/tests/baselines/reference/es5SetterparameterDestructuringNotElided(target=es5).symbols @@ -0,0 +1,19 @@ +//// [tests/cases/compiler/es5SetterparameterDestructuringNotElided.ts] //// + +=== es5SetterparameterDestructuringNotElided.ts === +const foo = { +>foo : Symbol(foo, Decl(es5SetterparameterDestructuringNotElided.ts, 0, 5)) + + set foo([start, end]: [any, any]) { +>foo : Symbol(foo, Decl(es5SetterparameterDestructuringNotElided.ts, 0, 13)) +>start : Symbol(start, Decl(es5SetterparameterDestructuringNotElided.ts, 1, 13)) +>end : Symbol(end, Decl(es5SetterparameterDestructuringNotElided.ts, 1, 19)) + + void start; +>start : Symbol(start, Decl(es5SetterparameterDestructuringNotElided.ts, 1, 13)) + + void end; +>end : Symbol(end, Decl(es5SetterparameterDestructuringNotElided.ts, 1, 19)) + + }, +}; diff --git a/tests/baselines/reference/es5SetterparameterDestructuringNotElided(target=es5).types b/tests/baselines/reference/es5SetterparameterDestructuringNotElided(target=es5).types new file mode 100644 index 0000000000000..5558386aff4a6 --- /dev/null +++ b/tests/baselines/reference/es5SetterparameterDestructuringNotElided(target=es5).types @@ -0,0 +1,29 @@ +//// [tests/cases/compiler/es5SetterparameterDestructuringNotElided.ts] //// + +=== es5SetterparameterDestructuringNotElided.ts === +const foo = { +>foo : { foo: [any, any]; } +> : ^^^^^^^ ^^^ +>{ set foo([start, end]: [any, any]) { void start; void end; },} : { foo: [any, any]; } +> : ^^^^^^^ ^^^ + + set foo([start, end]: [any, any]) { +>foo : [any, any] +> : ^^^^^^^^^^ +>start : any +> : ^^^ +>end : any +> : ^^^ + + void start; +>void start : undefined +> : ^^^^^^^^^ +>start : any + + void end; +>void end : undefined +> : ^^^^^^^^^ +>end : any + + }, +}; diff --git a/tests/baselines/reference/es5andes6module(target=es2015).js b/tests/baselines/reference/es5andes6module(target=es2015).js new file mode 100644 index 0000000000000..fc8d23a2930cb --- /dev/null +++ b/tests/baselines/reference/es5andes6module(target=es2015).js @@ -0,0 +1,25 @@ +//// [tests/cases/compiler/es5andes6module.ts] //// + +//// [es5andes6module.ts] +export default class A +{ + constructor () + { + + } + + public B() + { + return 42; + } +} + + +//// [es5andes6module.js] +export default class A { + constructor() { + } + B() { + return 42; + } +} diff --git a/tests/baselines/reference/es5andes6module.symbols b/tests/baselines/reference/es5andes6module(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es5andes6module.symbols rename to tests/baselines/reference/es5andes6module(target=es2015).symbols diff --git a/tests/baselines/reference/es5andes6module.types b/tests/baselines/reference/es5andes6module(target=es2015).types similarity index 100% rename from tests/baselines/reference/es5andes6module.types rename to tests/baselines/reference/es5andes6module(target=es2015).types diff --git a/tests/baselines/reference/es5andes6module.js b/tests/baselines/reference/es5andes6module(target=es5).js similarity index 100% rename from tests/baselines/reference/es5andes6module.js rename to tests/baselines/reference/es5andes6module(target=es5).js diff --git a/tests/baselines/reference/es5andes6module(target=es5).symbols b/tests/baselines/reference/es5andes6module(target=es5).symbols new file mode 100644 index 0000000000000..d29f0067b7bad --- /dev/null +++ b/tests/baselines/reference/es5andes6module(target=es5).symbols @@ -0,0 +1,18 @@ +//// [tests/cases/compiler/es5andes6module.ts] //// + +=== es5andes6module.ts === +export default class A +>A : Symbol(A, Decl(es5andes6module.ts, 0, 0)) +{ + constructor () + { + + } + + public B() +>B : Symbol(A.B, Decl(es5andes6module.ts, 5, 5)) + { + return 42; + } +} + diff --git a/tests/baselines/reference/es5andes6module(target=es5).types b/tests/baselines/reference/es5andes6module(target=es5).types new file mode 100644 index 0000000000000..136acd8706e6f --- /dev/null +++ b/tests/baselines/reference/es5andes6module(target=es5).types @@ -0,0 +1,22 @@ +//// [tests/cases/compiler/es5andes6module.ts] //// + +=== es5andes6module.ts === +export default class A +>A : A +> : ^ +{ + constructor () + { + + } + + public B() +>B : () => number +> : ^^^^^^^^^^^^ + { + return 42; +>42 : 42 +> : ^^ + } +} + diff --git a/tests/baselines/reference/es6ExportAllInEs5(target=es2015).js b/tests/baselines/reference/es6ExportAllInEs5(target=es2015).js new file mode 100644 index 0000000000000..e04d79ecbc09b --- /dev/null +++ b/tests/baselines/reference/es6ExportAllInEs5(target=es2015).js @@ -0,0 +1,62 @@ +//// [tests/cases/compiler/es6ExportAllInEs5.ts] //// + +//// [server.ts] +export class c { +} +export interface i { +} +export namespace m { + export var x = 10; +} +export var x = 10; +export namespace uninstantiated { +} + +//// [client.ts] +export * from "./server"; + +//// [server.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.x = exports.m = exports.c = void 0; +class c { +} +exports.c = c; +var m; +(function (m) { + m.x = 10; +})(m || (exports.m = m = {})); +exports.x = 10; +//// [client.js] +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(require("./server"), exports); + + +//// [server.d.ts] +export declare class c { +} +export interface i { +} +export declare namespace m { + var x: number; +} +export declare var x: number; +export declare namespace uninstantiated { +} +//// [client.d.ts] +export * from "./server"; diff --git a/tests/baselines/reference/es6ExportAllInEs5.symbols b/tests/baselines/reference/es6ExportAllInEs5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es6ExportAllInEs5.symbols rename to tests/baselines/reference/es6ExportAllInEs5(target=es2015).symbols diff --git a/tests/baselines/reference/es6ExportAllInEs5.types b/tests/baselines/reference/es6ExportAllInEs5(target=es2015).types similarity index 100% rename from tests/baselines/reference/es6ExportAllInEs5.types rename to tests/baselines/reference/es6ExportAllInEs5(target=es2015).types diff --git a/tests/baselines/reference/es6ExportAllInEs5.js b/tests/baselines/reference/es6ExportAllInEs5(target=es5).js similarity index 100% rename from tests/baselines/reference/es6ExportAllInEs5.js rename to tests/baselines/reference/es6ExportAllInEs5(target=es5).js diff --git a/tests/baselines/reference/es6ExportAllInEs5(target=es5).symbols b/tests/baselines/reference/es6ExportAllInEs5(target=es5).symbols new file mode 100644 index 0000000000000..c70c4328fa85b --- /dev/null +++ b/tests/baselines/reference/es6ExportAllInEs5(target=es5).symbols @@ -0,0 +1,25 @@ +//// [tests/cases/compiler/es6ExportAllInEs5.ts] //// + +=== server.ts === +export class c { +>c : Symbol(c, Decl(server.ts, 0, 0)) +} +export interface i { +>i : Symbol(i, Decl(server.ts, 1, 1)) +} +export namespace m { +>m : Symbol(m, Decl(server.ts, 3, 1)) + + export var x = 10; +>x : Symbol(x, Decl(server.ts, 5, 14)) +} +export var x = 10; +>x : Symbol(x, Decl(server.ts, 7, 10)) + +export namespace uninstantiated { +>uninstantiated : Symbol(uninstantiated, Decl(server.ts, 7, 18)) +} + +=== client.ts === + +export * from "./server"; diff --git a/tests/baselines/reference/es6ExportAllInEs5(target=es5).types b/tests/baselines/reference/es6ExportAllInEs5(target=es5).types new file mode 100644 index 0000000000000..25d7c9d56d570 --- /dev/null +++ b/tests/baselines/reference/es6ExportAllInEs5(target=es5).types @@ -0,0 +1,31 @@ +//// [tests/cases/compiler/es6ExportAllInEs5.ts] //// + +=== server.ts === +export class c { +>c : c +> : ^ +} +export interface i { +} +export namespace m { +>m : typeof m +> : ^^^^^^^^ + + export var x = 10; +>x : number +> : ^^^^^^ +>10 : 10 +> : ^^ +} +export var x = 10; +>x : number +> : ^^^^^^ +>10 : 10 +> : ^^ + +export namespace uninstantiated { +} + +=== client.ts === + +export * from "./server"; diff --git a/tests/baselines/reference/es6ExportClauseInEs5(target=es2015).js b/tests/baselines/reference/es6ExportClauseInEs5(target=es2015).js new file mode 100644 index 0000000000000..c3af88b7480f1 --- /dev/null +++ b/tests/baselines/reference/es6ExportClauseInEs5(target=es2015).js @@ -0,0 +1,51 @@ +//// [tests/cases/compiler/es6ExportClauseInEs5.ts] //// + +//// [server.ts] +class c { +} +interface i { +} +namespace m { + export var x = 10; +} +var x = 10; +namespace uninstantiated { +} +export { c }; +export { c as c2 }; +export { i, m as instantiatedModule }; +export { uninstantiated }; +export { x }; + +//// [server.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.x = exports.instantiatedModule = exports.c2 = exports.c = void 0; +class c { +} +exports.c = c; +exports.c2 = c; +var m; +(function (m) { + m.x = 10; +})(m || (exports.instantiatedModule = m = {})); +var x = 10; +exports.x = x; + + +//// [server.d.ts] +declare class c { +} +interface i { +} +declare namespace m { + var x: number; +} +declare var x: number; +declare namespace uninstantiated { +} +export { c }; +export { c as c2 }; +export { i, m as instantiatedModule }; +export { uninstantiated }; +export { x }; diff --git a/tests/baselines/reference/es6ExportClauseInEs5.symbols b/tests/baselines/reference/es6ExportClauseInEs5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es6ExportClauseInEs5.symbols rename to tests/baselines/reference/es6ExportClauseInEs5(target=es2015).symbols diff --git a/tests/baselines/reference/es6ExportClauseInEs5.types b/tests/baselines/reference/es6ExportClauseInEs5(target=es2015).types similarity index 100% rename from tests/baselines/reference/es6ExportClauseInEs5.types rename to tests/baselines/reference/es6ExportClauseInEs5(target=es2015).types diff --git a/tests/baselines/reference/es6ExportClauseInEs5.js b/tests/baselines/reference/es6ExportClauseInEs5(target=es5).js similarity index 100% rename from tests/baselines/reference/es6ExportClauseInEs5.js rename to tests/baselines/reference/es6ExportClauseInEs5(target=es5).js diff --git a/tests/baselines/reference/es6ExportClauseInEs5(target=es5).symbols b/tests/baselines/reference/es6ExportClauseInEs5(target=es5).symbols new file mode 100644 index 0000000000000..38655337378df --- /dev/null +++ b/tests/baselines/reference/es6ExportClauseInEs5(target=es5).symbols @@ -0,0 +1,39 @@ +//// [tests/cases/compiler/es6ExportClauseInEs5.ts] //// + +=== server.ts === +class c { +>c : Symbol(c, Decl(server.ts, 0, 0)) +} +interface i { +>i : Symbol(i, Decl(server.ts, 1, 1)) +} +namespace m { +>m : Symbol(m, Decl(server.ts, 3, 1)) + + export var x = 10; +>x : Symbol(x, Decl(server.ts, 5, 14)) +} +var x = 10; +>x : Symbol(x, Decl(server.ts, 7, 3)) + +namespace uninstantiated { +>uninstantiated : Symbol(uninstantiated, Decl(server.ts, 7, 11)) +} +export { c }; +>c : Symbol(c, Decl(server.ts, 10, 8)) + +export { c as c2 }; +>c : Symbol(c, Decl(server.ts, 0, 0)) +>c2 : Symbol(c2, Decl(server.ts, 11, 8)) + +export { i, m as instantiatedModule }; +>i : Symbol(i, Decl(server.ts, 12, 8)) +>m : Symbol(m, Decl(server.ts, 3, 1)) +>instantiatedModule : Symbol(instantiatedModule, Decl(server.ts, 12, 11)) + +export { uninstantiated }; +>uninstantiated : Symbol(uninstantiated, Decl(server.ts, 13, 8)) + +export { x }; +>x : Symbol(x, Decl(server.ts, 14, 8)) + diff --git a/tests/baselines/reference/es6ExportClauseInEs5(target=es5).types b/tests/baselines/reference/es6ExportClauseInEs5(target=es5).types new file mode 100644 index 0000000000000..d9958dcc12609 --- /dev/null +++ b/tests/baselines/reference/es6ExportClauseInEs5(target=es5).types @@ -0,0 +1,53 @@ +//// [tests/cases/compiler/es6ExportClauseInEs5.ts] //// + +=== server.ts === +class c { +>c : c +> : ^ +} +interface i { +} +namespace m { +>m : typeof m +> : ^^^^^^^^ + + export var x = 10; +>x : number +> : ^^^^^^ +>10 : 10 +> : ^^ +} +var x = 10; +>x : number +> : ^^^^^^ +>10 : 10 +> : ^^ + +namespace uninstantiated { +} +export { c }; +>c : typeof c +> : ^^^^^^^^ + +export { c as c2 }; +>c : typeof c +> : ^^^^^^^^ +>c2 : typeof c +> : ^^^^^^^^ + +export { i, m as instantiatedModule }; +>i : any +> : ^^^ +>m : typeof m +> : ^^^^^^^^ +>instantiatedModule : typeof m +> : ^^^^^^^^ + +export { uninstantiated }; +>uninstantiated : any +> : ^^^ + +export { x }; +>x : number +> : ^^^^^^ + diff --git a/tests/baselines/reference/es6ExportClauseWithAssignmentInEs5.js b/tests/baselines/reference/es6ExportClauseWithAssignmentInEs5(target=es2015).js similarity index 100% rename from tests/baselines/reference/es6ExportClauseWithAssignmentInEs5.js rename to tests/baselines/reference/es6ExportClauseWithAssignmentInEs5(target=es2015).js diff --git a/tests/baselines/reference/es6ExportClauseWithAssignmentInEs5.symbols b/tests/baselines/reference/es6ExportClauseWithAssignmentInEs5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es6ExportClauseWithAssignmentInEs5.symbols rename to tests/baselines/reference/es6ExportClauseWithAssignmentInEs5(target=es2015).symbols diff --git a/tests/baselines/reference/es6ExportClauseWithAssignmentInEs5.types b/tests/baselines/reference/es6ExportClauseWithAssignmentInEs5(target=es2015).types similarity index 100% rename from tests/baselines/reference/es6ExportClauseWithAssignmentInEs5.types rename to tests/baselines/reference/es6ExportClauseWithAssignmentInEs5(target=es2015).types diff --git a/tests/baselines/reference/es6ExportClauseWithAssignmentInEs5(target=es5).js b/tests/baselines/reference/es6ExportClauseWithAssignmentInEs5(target=es5).js new file mode 100644 index 0000000000000..922e255eb8b64 --- /dev/null +++ b/tests/baselines/reference/es6ExportClauseWithAssignmentInEs5(target=es5).js @@ -0,0 +1,39 @@ +//// [tests/cases/compiler/es6ExportClauseWithAssignmentInEs5.ts] //// + +//// [server.ts] +var foo = 2; +foo = 3; + +var baz = 3; +baz = 4; + +var buzz = 10; +buzz += 3; + +var bizz = 8; +bizz++; // compiles to exports.bizz = (bizz++, bizz) +bizz--; // similarly +++bizz; // compiles to exports.bizz = ++bizz + +export { foo, baz, baz as quux, buzz, bizz }; + + +//// [server.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.bizz = exports.buzz = exports.quux = exports.baz = exports.foo = void 0; +var foo = 2; +exports.foo = foo; +exports.foo = foo = 3; +var baz = 3; +exports.baz = baz; +exports.quux = baz; +exports.quux = exports.baz = baz = 4; +var buzz = 10; +exports.buzz = buzz; +exports.buzz = buzz += 3; +var bizz = 8; +exports.bizz = bizz; +exports.bizz = (bizz++, bizz); // compiles to exports.bizz = (bizz++, bizz) +exports.bizz = (bizz--, bizz); // similarly +exports.bizz = ++bizz; // compiles to exports.bizz = ++bizz diff --git a/tests/baselines/reference/es6ExportClauseWithAssignmentInEs5(target=es5).symbols b/tests/baselines/reference/es6ExportClauseWithAssignmentInEs5(target=es5).symbols new file mode 100644 index 0000000000000..199690892272f --- /dev/null +++ b/tests/baselines/reference/es6ExportClauseWithAssignmentInEs5(target=es5).symbols @@ -0,0 +1,41 @@ +//// [tests/cases/compiler/es6ExportClauseWithAssignmentInEs5.ts] //// + +=== server.ts === +var foo = 2; +>foo : Symbol(foo, Decl(server.ts, 0, 3)) + +foo = 3; +>foo : Symbol(foo, Decl(server.ts, 0, 3)) + +var baz = 3; +>baz : Symbol(baz, Decl(server.ts, 3, 3)) + +baz = 4; +>baz : Symbol(baz, Decl(server.ts, 3, 3)) + +var buzz = 10; +>buzz : Symbol(buzz, Decl(server.ts, 6, 3)) + +buzz += 3; +>buzz : Symbol(buzz, Decl(server.ts, 6, 3)) + +var bizz = 8; +>bizz : Symbol(bizz, Decl(server.ts, 9, 3)) + +bizz++; // compiles to exports.bizz = (bizz++, bizz) +>bizz : Symbol(bizz, Decl(server.ts, 9, 3)) + +bizz--; // similarly +>bizz : Symbol(bizz, Decl(server.ts, 9, 3)) + +++bizz; // compiles to exports.bizz = ++bizz +>bizz : Symbol(bizz, Decl(server.ts, 9, 3)) + +export { foo, baz, baz as quux, buzz, bizz }; +>foo : Symbol(foo, Decl(server.ts, 14, 8)) +>baz : Symbol(baz, Decl(server.ts, 14, 13)) +>baz : Symbol(baz, Decl(server.ts, 3, 3)) +>quux : Symbol(quux, Decl(server.ts, 14, 18)) +>buzz : Symbol(buzz, Decl(server.ts, 14, 31)) +>bizz : Symbol(bizz, Decl(server.ts, 14, 37)) + diff --git a/tests/baselines/reference/es6ExportClauseWithAssignmentInEs5(target=es5).types b/tests/baselines/reference/es6ExportClauseWithAssignmentInEs5(target=es5).types new file mode 100644 index 0000000000000..c9dde324ff1fd --- /dev/null +++ b/tests/baselines/reference/es6ExportClauseWithAssignmentInEs5(target=es5).types @@ -0,0 +1,83 @@ +//// [tests/cases/compiler/es6ExportClauseWithAssignmentInEs5.ts] //// + +=== server.ts === +var foo = 2; +>foo : number +> : ^^^^^^ +>2 : 2 +> : ^ + +foo = 3; +>foo = 3 : 3 +> : ^ +>foo : number +> : ^^^^^^ +>3 : 3 +> : ^ + +var baz = 3; +>baz : number +> : ^^^^^^ +>3 : 3 +> : ^ + +baz = 4; +>baz = 4 : 4 +> : ^ +>baz : number +> : ^^^^^^ +>4 : 4 +> : ^ + +var buzz = 10; +>buzz : number +> : ^^^^^^ +>10 : 10 +> : ^^ + +buzz += 3; +>buzz += 3 : number +> : ^^^^^^ +>buzz : number +> : ^^^^^^ +>3 : 3 +> : ^ + +var bizz = 8; +>bizz : number +> : ^^^^^^ +>8 : 8 +> : ^ + +bizz++; // compiles to exports.bizz = (bizz++, bizz) +>bizz++ : number +> : ^^^^^^ +>bizz : number +> : ^^^^^^ + +bizz--; // similarly +>bizz-- : number +> : ^^^^^^ +>bizz : number +> : ^^^^^^ + +++bizz; // compiles to exports.bizz = ++bizz +>++bizz : number +> : ^^^^^^ +>bizz : number +> : ^^^^^^ + +export { foo, baz, baz as quux, buzz, bizz }; +>foo : number +> : ^^^^^^ +>baz : number +> : ^^^^^^ +>baz : number +> : ^^^^^^ +>quux : number +> : ^^^^^^ +>buzz : number +> : ^^^^^^ +>bizz : number +> : ^^^^^^ + diff --git a/tests/baselines/reference/es6ExportClauseWithoutModuleSpecifierInEs5(target=es2015).js b/tests/baselines/reference/es6ExportClauseWithoutModuleSpecifierInEs5(target=es2015).js new file mode 100644 index 0000000000000..5db8f2065e124 --- /dev/null +++ b/tests/baselines/reference/es6ExportClauseWithoutModuleSpecifierInEs5(target=es2015).js @@ -0,0 +1,64 @@ +//// [tests/cases/compiler/es6ExportClauseWithoutModuleSpecifierInEs5.ts] //// + +//// [server.ts] +export class c { +} +export interface i { +} +export namespace m { + export var x = 10; +} +export var x = 10; +export namespace uninstantiated { +} + +//// [client.ts] +export { c } from "./server"; +export { c as c2 } from "./server"; +export { i, m as instantiatedModule } from "./server"; +export { uninstantiated } from "./server"; +export { x } from "./server"; + +//// [server.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.x = exports.m = exports.c = void 0; +class c { +} +exports.c = c; +var m; +(function (m) { + m.x = 10; +})(m || (exports.m = m = {})); +exports.x = 10; +//// [client.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.x = exports.instantiatedModule = exports.c2 = exports.c = void 0; +var server_1 = require("./server"); +Object.defineProperty(exports, "c", { enumerable: true, get: function () { return server_1.c; } }); +var server_2 = require("./server"); +Object.defineProperty(exports, "c2", { enumerable: true, get: function () { return server_2.c; } }); +var server_3 = require("./server"); +Object.defineProperty(exports, "instantiatedModule", { enumerable: true, get: function () { return server_3.m; } }); +var server_4 = require("./server"); +Object.defineProperty(exports, "x", { enumerable: true, get: function () { return server_4.x; } }); + + +//// [server.d.ts] +export declare class c { +} +export interface i { +} +export declare namespace m { + var x: number; +} +export declare var x: number; +export declare namespace uninstantiated { +} +//// [client.d.ts] +export { c } from "./server"; +export { c as c2 } from "./server"; +export { i, m as instantiatedModule } from "./server"; +export { uninstantiated } from "./server"; +export { x } from "./server"; diff --git a/tests/baselines/reference/es6ExportClauseWithoutModuleSpecifierInEs5.symbols b/tests/baselines/reference/es6ExportClauseWithoutModuleSpecifierInEs5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es6ExportClauseWithoutModuleSpecifierInEs5.symbols rename to tests/baselines/reference/es6ExportClauseWithoutModuleSpecifierInEs5(target=es2015).symbols diff --git a/tests/baselines/reference/es6ExportClauseWithoutModuleSpecifierInEs5.types b/tests/baselines/reference/es6ExportClauseWithoutModuleSpecifierInEs5(target=es2015).types similarity index 100% rename from tests/baselines/reference/es6ExportClauseWithoutModuleSpecifierInEs5.types rename to tests/baselines/reference/es6ExportClauseWithoutModuleSpecifierInEs5(target=es2015).types diff --git a/tests/baselines/reference/es6ExportClauseWithoutModuleSpecifierInEs5.js b/tests/baselines/reference/es6ExportClauseWithoutModuleSpecifierInEs5(target=es5).js similarity index 100% rename from tests/baselines/reference/es6ExportClauseWithoutModuleSpecifierInEs5.js rename to tests/baselines/reference/es6ExportClauseWithoutModuleSpecifierInEs5(target=es5).js diff --git a/tests/baselines/reference/es6ExportClauseWithoutModuleSpecifierInEs5(target=es5).symbols b/tests/baselines/reference/es6ExportClauseWithoutModuleSpecifierInEs5(target=es5).symbols new file mode 100644 index 0000000000000..99e6cb5844305 --- /dev/null +++ b/tests/baselines/reference/es6ExportClauseWithoutModuleSpecifierInEs5(target=es5).symbols @@ -0,0 +1,41 @@ +//// [tests/cases/compiler/es6ExportClauseWithoutModuleSpecifierInEs5.ts] //// + +=== server.ts === +export class c { +>c : Symbol(c, Decl(server.ts, 0, 0)) +} +export interface i { +>i : Symbol(i, Decl(server.ts, 1, 1)) +} +export namespace m { +>m : Symbol(m, Decl(server.ts, 3, 1)) + + export var x = 10; +>x : Symbol(x, Decl(server.ts, 5, 14)) +} +export var x = 10; +>x : Symbol(x, Decl(server.ts, 7, 10)) + +export namespace uninstantiated { +>uninstantiated : Symbol(uninstantiated, Decl(server.ts, 7, 18)) +} + +=== client.ts === +export { c } from "./server"; +>c : Symbol(c, Decl(client.ts, 0, 8)) + +export { c as c2 } from "./server"; +>c : Symbol(c, Decl(server.ts, 0, 0)) +>c2 : Symbol(c2, Decl(client.ts, 1, 8)) + +export { i, m as instantiatedModule } from "./server"; +>i : Symbol(i, Decl(client.ts, 2, 8)) +>m : Symbol(m, Decl(server.ts, 3, 1)) +>instantiatedModule : Symbol(instantiatedModule, Decl(client.ts, 2, 11)) + +export { uninstantiated } from "./server"; +>uninstantiated : Symbol(uninstantiated, Decl(client.ts, 3, 8)) + +export { x } from "./server"; +>x : Symbol(x, Decl(client.ts, 4, 8)) + diff --git a/tests/baselines/reference/es6ExportClauseWithoutModuleSpecifierInEs5(target=es5).types b/tests/baselines/reference/es6ExportClauseWithoutModuleSpecifierInEs5(target=es5).types new file mode 100644 index 0000000000000..5abe03e681ded --- /dev/null +++ b/tests/baselines/reference/es6ExportClauseWithoutModuleSpecifierInEs5(target=es5).types @@ -0,0 +1,55 @@ +//// [tests/cases/compiler/es6ExportClauseWithoutModuleSpecifierInEs5.ts] //// + +=== server.ts === +export class c { +>c : c +> : ^ +} +export interface i { +} +export namespace m { +>m : typeof m +> : ^^^^^^^^ + + export var x = 10; +>x : number +> : ^^^^^^ +>10 : 10 +> : ^^ +} +export var x = 10; +>x : number +> : ^^^^^^ +>10 : 10 +> : ^^ + +export namespace uninstantiated { +} + +=== client.ts === +export { c } from "./server"; +>c : typeof import("server").c +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ + +export { c as c2 } from "./server"; +>c : typeof import("server").c +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>c2 : typeof import("server").c +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ + +export { i, m as instantiatedModule } from "./server"; +>i : any +> : ^^^ +>m : typeof import("server").m +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>instantiatedModule : typeof import("server").m +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ + +export { uninstantiated } from "./server"; +>uninstantiated : any +> : ^^^ + +export { x } from "./server"; +>x : number +> : ^^^^^^ + diff --git a/tests/baselines/reference/es6ImportDefaultBindingAmd.errors.txt b/tests/baselines/reference/es6ImportDefaultBindingAmd(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/es6ImportDefaultBindingAmd.errors.txt rename to tests/baselines/reference/es6ImportDefaultBindingAmd(target=es2015).errors.txt diff --git a/tests/baselines/reference/es6ImportDefaultBindingAmd.js b/tests/baselines/reference/es6ImportDefaultBindingAmd(target=es2015).js similarity index 100% rename from tests/baselines/reference/es6ImportDefaultBindingAmd.js rename to tests/baselines/reference/es6ImportDefaultBindingAmd(target=es2015).js diff --git a/tests/baselines/reference/es6ImportDefaultBindingAmd.symbols b/tests/baselines/reference/es6ImportDefaultBindingAmd(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es6ImportDefaultBindingAmd.symbols rename to tests/baselines/reference/es6ImportDefaultBindingAmd(target=es2015).symbols diff --git a/tests/baselines/reference/es6ImportDefaultBindingAmd.types b/tests/baselines/reference/es6ImportDefaultBindingAmd(target=es2015).types similarity index 100% rename from tests/baselines/reference/es6ImportDefaultBindingAmd.types rename to tests/baselines/reference/es6ImportDefaultBindingAmd(target=es2015).types diff --git a/tests/baselines/reference/es6ImportDefaultBindingAmd(target=es5).errors.txt b/tests/baselines/reference/es6ImportDefaultBindingAmd(target=es5).errors.txt new file mode 100644 index 0000000000000..9ccf2ad6667b6 --- /dev/null +++ b/tests/baselines/reference/es6ImportDefaultBindingAmd(target=es5).errors.txt @@ -0,0 +1,13 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== es6ImportDefaultBindingAmd_0.ts (0 errors) ==== + var a = 10; + export default a; + +==== es6ImportDefaultBindingAmd_1.ts (0 errors) ==== + import defaultBinding from "es6ImportDefaultBindingAmd_0"; + var x = defaultBinding; + import defaultBinding2 from "es6ImportDefaultBindingAmd_0"; // elide this import since defaultBinding2 is not used + \ No newline at end of file diff --git a/tests/baselines/reference/es6ImportDefaultBindingAmd(target=es5).js b/tests/baselines/reference/es6ImportDefaultBindingAmd(target=es5).js new file mode 100644 index 0000000000000..ac5fbfe777f27 --- /dev/null +++ b/tests/baselines/reference/es6ImportDefaultBindingAmd(target=es5).js @@ -0,0 +1,36 @@ +//// [tests/cases/compiler/es6ImportDefaultBindingAmd.ts] //// + +//// [es6ImportDefaultBindingAmd_0.ts] +var a = 10; +export default a; + +//// [es6ImportDefaultBindingAmd_1.ts] +import defaultBinding from "es6ImportDefaultBindingAmd_0"; +var x = defaultBinding; +import defaultBinding2 from "es6ImportDefaultBindingAmd_0"; // elide this import since defaultBinding2 is not used + + +//// [es6ImportDefaultBindingAmd_0.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var a = 10; + exports.default = a; +}); +//// [es6ImportDefaultBindingAmd_1.js] +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +define(["require", "exports", "es6ImportDefaultBindingAmd_0"], function (require, exports, es6ImportDefaultBindingAmd_0_1) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + es6ImportDefaultBindingAmd_0_1 = __importDefault(es6ImportDefaultBindingAmd_0_1); + var x = es6ImportDefaultBindingAmd_0_1.default; +}); + + +//// [es6ImportDefaultBindingAmd_0.d.ts] +declare var a: number; +export default a; +//// [es6ImportDefaultBindingAmd_1.d.ts] +export {}; diff --git a/tests/baselines/reference/es6ImportDefaultBindingAmd(target=es5).symbols b/tests/baselines/reference/es6ImportDefaultBindingAmd(target=es5).symbols new file mode 100644 index 0000000000000..f9325f53ccb9b --- /dev/null +++ b/tests/baselines/reference/es6ImportDefaultBindingAmd(target=es5).symbols @@ -0,0 +1,20 @@ +//// [tests/cases/compiler/es6ImportDefaultBindingAmd.ts] //// + +=== es6ImportDefaultBindingAmd_0.ts === +var a = 10; +>a : Symbol(a, Decl(es6ImportDefaultBindingAmd_0.ts, 0, 3)) + +export default a; +>a : Symbol(a, Decl(es6ImportDefaultBindingAmd_0.ts, 0, 3)) + +=== es6ImportDefaultBindingAmd_1.ts === +import defaultBinding from "es6ImportDefaultBindingAmd_0"; +>defaultBinding : Symbol(defaultBinding, Decl(es6ImportDefaultBindingAmd_1.ts, 0, 6)) + +var x = defaultBinding; +>x : Symbol(x, Decl(es6ImportDefaultBindingAmd_1.ts, 1, 3)) +>defaultBinding : Symbol(defaultBinding, Decl(es6ImportDefaultBindingAmd_1.ts, 0, 6)) + +import defaultBinding2 from "es6ImportDefaultBindingAmd_0"; // elide this import since defaultBinding2 is not used +>defaultBinding2 : Symbol(defaultBinding2, Decl(es6ImportDefaultBindingAmd_1.ts, 2, 6)) + diff --git a/tests/baselines/reference/es6ImportDefaultBindingAmd(target=es5).types b/tests/baselines/reference/es6ImportDefaultBindingAmd(target=es5).types new file mode 100644 index 0000000000000..e90fcd38ba9e3 --- /dev/null +++ b/tests/baselines/reference/es6ImportDefaultBindingAmd(target=es5).types @@ -0,0 +1,28 @@ +//// [tests/cases/compiler/es6ImportDefaultBindingAmd.ts] //// + +=== es6ImportDefaultBindingAmd_0.ts === +var a = 10; +>a : number +> : ^^^^^^ +>10 : 10 +> : ^^ + +export default a; +>a : number +> : ^^^^^^ + +=== es6ImportDefaultBindingAmd_1.ts === +import defaultBinding from "es6ImportDefaultBindingAmd_0"; +>defaultBinding : number +> : ^^^^^^ + +var x = defaultBinding; +>x : number +> : ^^^^^^ +>defaultBinding : number +> : ^^^^^^ + +import defaultBinding2 from "es6ImportDefaultBindingAmd_0"; // elide this import since defaultBinding2 is not used +>defaultBinding2 : number +> : ^^^^^^ + diff --git a/tests/baselines/reference/es6ImportDefaultBindingDts(target=es2015).js b/tests/baselines/reference/es6ImportDefaultBindingDts(target=es2015).js new file mode 100644 index 0000000000000..4b8a2bd012fce --- /dev/null +++ b/tests/baselines/reference/es6ImportDefaultBindingDts(target=es2015).js @@ -0,0 +1,36 @@ +//// [tests/cases/compiler/es6ImportDefaultBindingDts.ts] //// + +//// [server.ts] +class c { } +export default c; + +//// [client.ts] +import defaultBinding from "./server"; +export var x = new defaultBinding(); +import defaultBinding2 from "./server"; // elide this import since defaultBinding2 is not used + + +//// [server.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +class c { +} +exports.default = c; +//// [client.js] +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.x = void 0; +const server_1 = __importDefault(require("./server")); +exports.x = new server_1.default(); + + +//// [server.d.ts] +declare class c { +} +export default c; +//// [client.d.ts] +import defaultBinding from "./server"; +export declare var x: defaultBinding; diff --git a/tests/baselines/reference/es6ImportDefaultBindingDts.symbols b/tests/baselines/reference/es6ImportDefaultBindingDts(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es6ImportDefaultBindingDts.symbols rename to tests/baselines/reference/es6ImportDefaultBindingDts(target=es2015).symbols diff --git a/tests/baselines/reference/es6ImportDefaultBindingDts.types b/tests/baselines/reference/es6ImportDefaultBindingDts(target=es2015).types similarity index 100% rename from tests/baselines/reference/es6ImportDefaultBindingDts.types rename to tests/baselines/reference/es6ImportDefaultBindingDts(target=es2015).types diff --git a/tests/baselines/reference/es6ImportDefaultBindingDts.js b/tests/baselines/reference/es6ImportDefaultBindingDts(target=es5).js similarity index 100% rename from tests/baselines/reference/es6ImportDefaultBindingDts.js rename to tests/baselines/reference/es6ImportDefaultBindingDts(target=es5).js diff --git a/tests/baselines/reference/es6ImportDefaultBindingDts(target=es5).symbols b/tests/baselines/reference/es6ImportDefaultBindingDts(target=es5).symbols new file mode 100644 index 0000000000000..b1f8d8d0413bc --- /dev/null +++ b/tests/baselines/reference/es6ImportDefaultBindingDts(target=es5).symbols @@ -0,0 +1,20 @@ +//// [tests/cases/compiler/es6ImportDefaultBindingDts.ts] //// + +=== server.ts === +class c { } +>c : Symbol(c, Decl(server.ts, 0, 0)) + +export default c; +>c : Symbol(c, Decl(server.ts, 0, 0)) + +=== client.ts === +import defaultBinding from "./server"; +>defaultBinding : Symbol(defaultBinding, Decl(client.ts, 0, 6)) + +export var x = new defaultBinding(); +>x : Symbol(x, Decl(client.ts, 1, 10)) +>defaultBinding : Symbol(defaultBinding, Decl(client.ts, 0, 6)) + +import defaultBinding2 from "./server"; // elide this import since defaultBinding2 is not used +>defaultBinding2 : Symbol(defaultBinding2, Decl(client.ts, 2, 6)) + diff --git a/tests/baselines/reference/es6ImportDefaultBindingDts(target=es5).types b/tests/baselines/reference/es6ImportDefaultBindingDts(target=es5).types new file mode 100644 index 0000000000000..3efe8d8a7ccfe --- /dev/null +++ b/tests/baselines/reference/es6ImportDefaultBindingDts(target=es5).types @@ -0,0 +1,28 @@ +//// [tests/cases/compiler/es6ImportDefaultBindingDts.ts] //// + +=== server.ts === +class c { } +>c : c +> : ^ + +export default c; +>c : c +> : ^ + +=== client.ts === +import defaultBinding from "./server"; +>defaultBinding : typeof defaultBinding +> : ^^^^^^^^^^^^^^^^^^^^^ + +export var x = new defaultBinding(); +>x : defaultBinding +> : ^^^^^^^^^^^^^^ +>new defaultBinding() : defaultBinding +> : ^^^^^^^^^^^^^^ +>defaultBinding : typeof defaultBinding +> : ^^^^^^^^^^^^^^^^^^^^^ + +import defaultBinding2 from "./server"; // elide this import since defaultBinding2 is not used +>defaultBinding2 : typeof defaultBinding +> : ^^^^^^^^^^^^^^^^^^^^^ + diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1InEs5.errors.txt b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1InEs5(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1InEs5.errors.txt rename to tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1InEs5(target=es2015).errors.txt diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1InEs5(target=es2015).js b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1InEs5(target=es2015).js new file mode 100644 index 0000000000000..f74530ac8483b --- /dev/null +++ b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1InEs5(target=es2015).js @@ -0,0 +1,51 @@ +//// [tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1InEs5.ts] //// + +//// [es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0.ts] +var a = 10; +export default a; + +//// [es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.ts] +import defaultBinding1, { } from "./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"; +var x: number = defaultBinding1; +import defaultBinding2, { a } from "./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"; +var x: number = defaultBinding2; +import defaultBinding3, { a as b } from "./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"; +var x: number = defaultBinding3; +import defaultBinding4, { x, a as y } from "./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"; +var x: number = defaultBinding4; +import defaultBinding5, { x as z, } from "./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"; +var x: number = defaultBinding5; +import defaultBinding6, { m, } from "./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"; +var x: number = defaultBinding6; + + +//// [es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var a = 10; +exports.default = a; +//// [es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.js] +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_1 = __importDefault(require("./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0")); +var x = es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_1.default; +const es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_2 = __importDefault(require("./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0")); +var x = es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_2.default; +const es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_3 = __importDefault(require("./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0")); +var x = es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_3.default; +const es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_4 = __importDefault(require("./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0")); +var x = es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_4.default; +const es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_5 = __importDefault(require("./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0")); +var x = es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_5.default; +const es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_6 = __importDefault(require("./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0")); +var x = es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_6.default; + + +//// [es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0.d.ts] +declare var a: number; +export default a; +//// [es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.d.ts] +export {}; diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1InEs5.symbols b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1InEs5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1InEs5.symbols rename to tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1InEs5(target=es2015).symbols diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1InEs5.types b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1InEs5(target=es2015).types similarity index 100% rename from tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1InEs5.types rename to tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1InEs5(target=es2015).types diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1InEs5(target=es5).errors.txt b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1InEs5(target=es5).errors.txt new file mode 100644 index 0000000000000..e6add639aa461 --- /dev/null +++ b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1InEs5(target=es5).errors.txt @@ -0,0 +1,38 @@ +es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.ts(3,27): error TS2614: Module '"./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"' has no exported member 'a'. Did you mean to use 'import a from "./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"' instead? +es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.ts(5,27): error TS2614: Module '"./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"' has no exported member 'a'. Did you mean to use 'import a from "./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"' instead? +es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.ts(7,27): error TS2614: Module '"./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"' has no exported member 'x'. Did you mean to use 'import x from "./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"' instead? +es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.ts(7,30): error TS2614: Module '"./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"' has no exported member 'a'. Did you mean to use 'import a from "./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"' instead? +es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.ts(9,27): error TS2614: Module '"./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"' has no exported member 'x'. Did you mean to use 'import x from "./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"' instead? +es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.ts(11,27): error TS2614: Module '"./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"' has no exported member 'm'. Did you mean to use 'import m from "./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"' instead? + + +==== es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0.ts (0 errors) ==== + var a = 10; + export default a; + +==== es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.ts (6 errors) ==== + import defaultBinding1, { } from "./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"; + var x: number = defaultBinding1; + import defaultBinding2, { a } from "./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"; + ~ +!!! error TS2614: Module '"./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"' has no exported member 'a'. Did you mean to use 'import a from "./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"' instead? + var x: number = defaultBinding2; + import defaultBinding3, { a as b } from "./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"; + ~ +!!! error TS2614: Module '"./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"' has no exported member 'a'. Did you mean to use 'import a from "./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"' instead? + var x: number = defaultBinding3; + import defaultBinding4, { x, a as y } from "./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"; + ~ +!!! error TS2614: Module '"./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"' has no exported member 'x'. Did you mean to use 'import x from "./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"' instead? + ~ +!!! error TS2614: Module '"./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"' has no exported member 'a'. Did you mean to use 'import a from "./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"' instead? + var x: number = defaultBinding4; + import defaultBinding5, { x as z, } from "./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"; + ~ +!!! error TS2614: Module '"./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"' has no exported member 'x'. Did you mean to use 'import x from "./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"' instead? + var x: number = defaultBinding5; + import defaultBinding6, { m, } from "./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"; + ~ +!!! error TS2614: Module '"./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"' has no exported member 'm'. Did you mean to use 'import m from "./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"' instead? + var x: number = defaultBinding6; + \ No newline at end of file diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1InEs5.js b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1InEs5(target=es5).js similarity index 100% rename from tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1InEs5.js rename to tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1InEs5(target=es5).js diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1InEs5(target=es5).symbols b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1InEs5(target=es5).symbols new file mode 100644 index 0000000000000..8cb99e5185cb1 --- /dev/null +++ b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1InEs5(target=es5).symbols @@ -0,0 +1,58 @@ +//// [tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1InEs5.ts] //// + +=== es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0.ts === +var a = 10; +>a : Symbol(a, Decl(es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0.ts, 0, 3)) + +export default a; +>a : Symbol(a, Decl(es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0.ts, 0, 3)) + +=== es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.ts === +import defaultBinding1, { } from "./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"; +>defaultBinding1 : Symbol(defaultBinding1, Decl(es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.ts, 0, 6)) + +var x: number = defaultBinding1; +>x : Symbol(x, Decl(es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.ts, 1, 3), Decl(es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.ts, 3, 3), Decl(es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.ts, 5, 3), Decl(es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.ts, 6, 25), Decl(es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.ts, 7, 3) ... and 2 more) +>defaultBinding1 : Symbol(defaultBinding1, Decl(es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.ts, 0, 6)) + +import defaultBinding2, { a } from "./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"; +>defaultBinding2 : Symbol(defaultBinding2, Decl(es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.ts, 2, 6)) +>a : Symbol(a, Decl(es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.ts, 2, 25)) + +var x: number = defaultBinding2; +>x : Symbol(x, Decl(es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.ts, 1, 3), Decl(es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.ts, 3, 3), Decl(es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.ts, 5, 3), Decl(es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.ts, 6, 25), Decl(es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.ts, 7, 3) ... and 2 more) +>defaultBinding2 : Symbol(defaultBinding2, Decl(es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.ts, 2, 6)) + +import defaultBinding3, { a as b } from "./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"; +>defaultBinding3 : Symbol(defaultBinding3, Decl(es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.ts, 4, 6)) +>b : Symbol(b, Decl(es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.ts, 4, 25)) + +var x: number = defaultBinding3; +>x : Symbol(x, Decl(es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.ts, 1, 3), Decl(es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.ts, 3, 3), Decl(es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.ts, 5, 3), Decl(es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.ts, 6, 25), Decl(es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.ts, 7, 3) ... and 2 more) +>defaultBinding3 : Symbol(defaultBinding3, Decl(es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.ts, 4, 6)) + +import defaultBinding4, { x, a as y } from "./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"; +>defaultBinding4 : Symbol(defaultBinding4, Decl(es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.ts, 6, 6)) +>x : Symbol(x, Decl(es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.ts, 1, 3), Decl(es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.ts, 3, 3), Decl(es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.ts, 5, 3), Decl(es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.ts, 6, 25), Decl(es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.ts, 7, 3) ... and 2 more) +>y : Symbol(y, Decl(es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.ts, 6, 28)) + +var x: number = defaultBinding4; +>x : Symbol(x, Decl(es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.ts, 1, 3), Decl(es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.ts, 3, 3), Decl(es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.ts, 5, 3), Decl(es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.ts, 6, 25), Decl(es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.ts, 7, 3) ... and 2 more) +>defaultBinding4 : Symbol(defaultBinding4, Decl(es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.ts, 6, 6)) + +import defaultBinding5, { x as z, } from "./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"; +>defaultBinding5 : Symbol(defaultBinding5, Decl(es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.ts, 8, 6)) +>z : Symbol(z, Decl(es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.ts, 8, 25)) + +var x: number = defaultBinding5; +>x : Symbol(x, Decl(es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.ts, 1, 3), Decl(es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.ts, 3, 3), Decl(es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.ts, 5, 3), Decl(es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.ts, 6, 25), Decl(es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.ts, 7, 3) ... and 2 more) +>defaultBinding5 : Symbol(defaultBinding5, Decl(es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.ts, 8, 6)) + +import defaultBinding6, { m, } from "./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"; +>defaultBinding6 : Symbol(defaultBinding6, Decl(es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.ts, 10, 6)) +>m : Symbol(m, Decl(es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.ts, 10, 25)) + +var x: number = defaultBinding6; +>x : Symbol(x, Decl(es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.ts, 1, 3), Decl(es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.ts, 3, 3), Decl(es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.ts, 5, 3), Decl(es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.ts, 6, 25), Decl(es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.ts, 7, 3) ... and 2 more) +>defaultBinding6 : Symbol(defaultBinding6, Decl(es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.ts, 10, 6)) + diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1InEs5(target=es5).types b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1InEs5(target=es5).types new file mode 100644 index 0000000000000..fd83b1de4f1ce --- /dev/null +++ b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1InEs5(target=es5).types @@ -0,0 +1,92 @@ +//// [tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1InEs5.ts] //// + +=== es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0.ts === +var a = 10; +>a : number +> : ^^^^^^ +>10 : 10 +> : ^^ + +export default a; +>a : number +> : ^^^^^^ + +=== es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.ts === +import defaultBinding1, { } from "./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"; +>defaultBinding1 : number +> : ^^^^^^ + +var x: number = defaultBinding1; +>x : number +> : ^^^^^^ +>defaultBinding1 : number +> : ^^^^^^ + +import defaultBinding2, { a } from "./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"; +>defaultBinding2 : number +> : ^^^^^^ +>a : any +> : ^^^ + +var x: number = defaultBinding2; +>x : number +> : ^^^^^^ +>defaultBinding2 : number +> : ^^^^^^ + +import defaultBinding3, { a as b } from "./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"; +>defaultBinding3 : number +> : ^^^^^^ +>a : any +> : ^^^ +>b : any +> : ^^^ + +var x: number = defaultBinding3; +>x : number +> : ^^^^^^ +>defaultBinding3 : number +> : ^^^^^^ + +import defaultBinding4, { x, a as y } from "./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"; +>defaultBinding4 : number +> : ^^^^^^ +>x : number +> : ^^^^^^ +>a : any +> : ^^^ +>y : any +> : ^^^ + +var x: number = defaultBinding4; +>x : number +> : ^^^^^^ +>defaultBinding4 : number +> : ^^^^^^ + +import defaultBinding5, { x as z, } from "./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"; +>defaultBinding5 : number +> : ^^^^^^ +>x : any +> : ^^^ +>z : any +> : ^^^ + +var x: number = defaultBinding5; +>x : number +> : ^^^^^^ +>defaultBinding5 : number +> : ^^^^^^ + +import defaultBinding6, { m, } from "./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"; +>defaultBinding6 : number +> : ^^^^^^ +>m : any +> : ^^^ + +var x: number = defaultBinding6; +>x : number +> : ^^^^^^ +>defaultBinding6 : number +> : ^^^^^^ + diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1WithExport.errors.txt b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1WithExport(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1WithExport.errors.txt rename to tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1WithExport(target=es2015).errors.txt diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1WithExport(target=es2015).js b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1WithExport(target=es2015).js new file mode 100644 index 0000000000000..8edf88f12636a --- /dev/null +++ b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1WithExport(target=es2015).js @@ -0,0 +1,57 @@ +//// [tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1WithExport.ts] //// + +//// [server.ts] +var a = 10; +export default a; + +//// [client.ts] +export import defaultBinding1, { } from "./server"; +export var x1: number = defaultBinding1; +export import defaultBinding2, { a } from "./server"; +export var x1: number = defaultBinding2; +export import defaultBinding3, { a as b } from "./server"; +export var x1: number = defaultBinding3; +export import defaultBinding4, { x, a as y } from "./server"; +export var x1: number = defaultBinding4; +export import defaultBinding5, { x as z, } from "./server"; +export var x1: number = defaultBinding5; +export import defaultBinding6, { m, } from "./server"; +export var x1: number = defaultBinding6; + + +//// [server.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var a = 10; +exports.default = a; +//// [client.js] +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.x1 = void 0; +const server_1 = __importDefault(require("./server")); +exports.x1 = server_1.default; +const server_2 = __importDefault(require("./server")); +exports.x1 = server_2.default; +const server_3 = __importDefault(require("./server")); +exports.x1 = server_3.default; +const server_4 = __importDefault(require("./server")); +exports.x1 = server_4.default; +const server_5 = __importDefault(require("./server")); +exports.x1 = server_5.default; +const server_6 = __importDefault(require("./server")); +exports.x1 = server_6.default; + + +//// [server.d.ts] +declare var a: number; +export default a; +//// [client.d.ts] +export declare var x1: number; +export declare var x1: number; +export declare var x1: number; +export declare var x1: number; +export declare var x1: number; +export declare var x1: number; diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1WithExport.symbols b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1WithExport(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1WithExport.symbols rename to tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1WithExport(target=es2015).symbols diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1WithExport.types b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1WithExport(target=es2015).types similarity index 100% rename from tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1WithExport.types rename to tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1WithExport(target=es2015).types diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1WithExport(target=es5).errors.txt b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1WithExport(target=es5).errors.txt new file mode 100644 index 0000000000000..2a3a69590565d --- /dev/null +++ b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1WithExport(target=es5).errors.txt @@ -0,0 +1,74 @@ +client.ts(1,1): error TS1191: An import declaration cannot have modifiers. +client.ts(2,12): error TS2323: Cannot redeclare exported variable 'x1'. +client.ts(3,1): error TS1191: An import declaration cannot have modifiers. +client.ts(3,34): error TS2614: Module '"./server"' has no exported member 'a'. Did you mean to use 'import a from "./server"' instead? +client.ts(4,12): error TS2323: Cannot redeclare exported variable 'x1'. +client.ts(5,1): error TS1191: An import declaration cannot have modifiers. +client.ts(5,34): error TS2614: Module '"./server"' has no exported member 'a'. Did you mean to use 'import a from "./server"' instead? +client.ts(6,12): error TS2323: Cannot redeclare exported variable 'x1'. +client.ts(7,1): error TS1191: An import declaration cannot have modifiers. +client.ts(7,34): error TS2614: Module '"./server"' has no exported member 'x'. Did you mean to use 'import x from "./server"' instead? +client.ts(7,37): error TS2614: Module '"./server"' has no exported member 'a'. Did you mean to use 'import a from "./server"' instead? +client.ts(8,12): error TS2323: Cannot redeclare exported variable 'x1'. +client.ts(9,1): error TS1191: An import declaration cannot have modifiers. +client.ts(9,34): error TS2614: Module '"./server"' has no exported member 'x'. Did you mean to use 'import x from "./server"' instead? +client.ts(10,12): error TS2323: Cannot redeclare exported variable 'x1'. +client.ts(11,1): error TS1191: An import declaration cannot have modifiers. +client.ts(11,34): error TS2614: Module '"./server"' has no exported member 'm'. Did you mean to use 'import m from "./server"' instead? +client.ts(12,12): error TS2323: Cannot redeclare exported variable 'x1'. + + +==== server.ts (0 errors) ==== + var a = 10; + export default a; + +==== client.ts (18 errors) ==== + export import defaultBinding1, { } from "./server"; + ~~~~~~ +!!! error TS1191: An import declaration cannot have modifiers. + export var x1: number = defaultBinding1; + ~~ +!!! error TS2323: Cannot redeclare exported variable 'x1'. + export import defaultBinding2, { a } from "./server"; + ~~~~~~ +!!! error TS1191: An import declaration cannot have modifiers. + ~ +!!! error TS2614: Module '"./server"' has no exported member 'a'. Did you mean to use 'import a from "./server"' instead? + export var x1: number = defaultBinding2; + ~~ +!!! error TS2323: Cannot redeclare exported variable 'x1'. + export import defaultBinding3, { a as b } from "./server"; + ~~~~~~ +!!! error TS1191: An import declaration cannot have modifiers. + ~ +!!! error TS2614: Module '"./server"' has no exported member 'a'. Did you mean to use 'import a from "./server"' instead? + export var x1: number = defaultBinding3; + ~~ +!!! error TS2323: Cannot redeclare exported variable 'x1'. + export import defaultBinding4, { x, a as y } from "./server"; + ~~~~~~ +!!! error TS1191: An import declaration cannot have modifiers. + ~ +!!! error TS2614: Module '"./server"' has no exported member 'x'. Did you mean to use 'import x from "./server"' instead? + ~ +!!! error TS2614: Module '"./server"' has no exported member 'a'. Did you mean to use 'import a from "./server"' instead? + export var x1: number = defaultBinding4; + ~~ +!!! error TS2323: Cannot redeclare exported variable 'x1'. + export import defaultBinding5, { x as z, } from "./server"; + ~~~~~~ +!!! error TS1191: An import declaration cannot have modifiers. + ~ +!!! error TS2614: Module '"./server"' has no exported member 'x'. Did you mean to use 'import x from "./server"' instead? + export var x1: number = defaultBinding5; + ~~ +!!! error TS2323: Cannot redeclare exported variable 'x1'. + export import defaultBinding6, { m, } from "./server"; + ~~~~~~ +!!! error TS1191: An import declaration cannot have modifiers. + ~ +!!! error TS2614: Module '"./server"' has no exported member 'm'. Did you mean to use 'import m from "./server"' instead? + export var x1: number = defaultBinding6; + ~~ +!!! error TS2323: Cannot redeclare exported variable 'x1'. + \ No newline at end of file diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1WithExport.js b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1WithExport(target=es5).js similarity index 100% rename from tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1WithExport.js rename to tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1WithExport(target=es5).js diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1WithExport(target=es5).symbols b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1WithExport(target=es5).symbols new file mode 100644 index 0000000000000..866208f198c37 --- /dev/null +++ b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1WithExport(target=es5).symbols @@ -0,0 +1,58 @@ +//// [tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1WithExport.ts] //// + +=== server.ts === +var a = 10; +>a : Symbol(a, Decl(server.ts, 0, 3)) + +export default a; +>a : Symbol(a, Decl(server.ts, 0, 3)) + +=== client.ts === +export import defaultBinding1, { } from "./server"; +>defaultBinding1 : Symbol(defaultBinding1, Decl(client.ts, 0, 13)) + +export var x1: number = defaultBinding1; +>x1 : Symbol(x1, Decl(client.ts, 1, 10), Decl(client.ts, 3, 10), Decl(client.ts, 5, 10), Decl(client.ts, 7, 10), Decl(client.ts, 9, 10) ... and 1 more) +>defaultBinding1 : Symbol(defaultBinding1, Decl(client.ts, 0, 13)) + +export import defaultBinding2, { a } from "./server"; +>defaultBinding2 : Symbol(defaultBinding2, Decl(client.ts, 2, 13)) +>a : Symbol(a, Decl(client.ts, 2, 32)) + +export var x1: number = defaultBinding2; +>x1 : Symbol(x1, Decl(client.ts, 1, 10), Decl(client.ts, 3, 10), Decl(client.ts, 5, 10), Decl(client.ts, 7, 10), Decl(client.ts, 9, 10) ... and 1 more) +>defaultBinding2 : Symbol(defaultBinding2, Decl(client.ts, 2, 13)) + +export import defaultBinding3, { a as b } from "./server"; +>defaultBinding3 : Symbol(defaultBinding3, Decl(client.ts, 4, 13)) +>b : Symbol(b, Decl(client.ts, 4, 32)) + +export var x1: number = defaultBinding3; +>x1 : Symbol(x1, Decl(client.ts, 1, 10), Decl(client.ts, 3, 10), Decl(client.ts, 5, 10), Decl(client.ts, 7, 10), Decl(client.ts, 9, 10) ... and 1 more) +>defaultBinding3 : Symbol(defaultBinding3, Decl(client.ts, 4, 13)) + +export import defaultBinding4, { x, a as y } from "./server"; +>defaultBinding4 : Symbol(defaultBinding4, Decl(client.ts, 6, 13)) +>x : Symbol(x, Decl(client.ts, 6, 32)) +>y : Symbol(y, Decl(client.ts, 6, 35)) + +export var x1: number = defaultBinding4; +>x1 : Symbol(x1, Decl(client.ts, 1, 10), Decl(client.ts, 3, 10), Decl(client.ts, 5, 10), Decl(client.ts, 7, 10), Decl(client.ts, 9, 10) ... and 1 more) +>defaultBinding4 : Symbol(defaultBinding4, Decl(client.ts, 6, 13)) + +export import defaultBinding5, { x as z, } from "./server"; +>defaultBinding5 : Symbol(defaultBinding5, Decl(client.ts, 8, 13)) +>z : Symbol(z, Decl(client.ts, 8, 32)) + +export var x1: number = defaultBinding5; +>x1 : Symbol(x1, Decl(client.ts, 1, 10), Decl(client.ts, 3, 10), Decl(client.ts, 5, 10), Decl(client.ts, 7, 10), Decl(client.ts, 9, 10) ... and 1 more) +>defaultBinding5 : Symbol(defaultBinding5, Decl(client.ts, 8, 13)) + +export import defaultBinding6, { m, } from "./server"; +>defaultBinding6 : Symbol(defaultBinding6, Decl(client.ts, 10, 13)) +>m : Symbol(m, Decl(client.ts, 10, 32)) + +export var x1: number = defaultBinding6; +>x1 : Symbol(x1, Decl(client.ts, 1, 10), Decl(client.ts, 3, 10), Decl(client.ts, 5, 10), Decl(client.ts, 7, 10), Decl(client.ts, 9, 10) ... and 1 more) +>defaultBinding6 : Symbol(defaultBinding6, Decl(client.ts, 10, 13)) + diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1WithExport(target=es5).types b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1WithExport(target=es5).types new file mode 100644 index 0000000000000..63d808e64207d --- /dev/null +++ b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1WithExport(target=es5).types @@ -0,0 +1,92 @@ +//// [tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1WithExport.ts] //// + +=== server.ts === +var a = 10; +>a : number +> : ^^^^^^ +>10 : 10 +> : ^^ + +export default a; +>a : number +> : ^^^^^^ + +=== client.ts === +export import defaultBinding1, { } from "./server"; +>defaultBinding1 : number +> : ^^^^^^ + +export var x1: number = defaultBinding1; +>x1 : number +> : ^^^^^^ +>defaultBinding1 : number +> : ^^^^^^ + +export import defaultBinding2, { a } from "./server"; +>defaultBinding2 : number +> : ^^^^^^ +>a : any +> : ^^^ + +export var x1: number = defaultBinding2; +>x1 : number +> : ^^^^^^ +>defaultBinding2 : number +> : ^^^^^^ + +export import defaultBinding3, { a as b } from "./server"; +>defaultBinding3 : number +> : ^^^^^^ +>a : any +> : ^^^ +>b : any +> : ^^^ + +export var x1: number = defaultBinding3; +>x1 : number +> : ^^^^^^ +>defaultBinding3 : number +> : ^^^^^^ + +export import defaultBinding4, { x, a as y } from "./server"; +>defaultBinding4 : number +> : ^^^^^^ +>x : any +> : ^^^ +>a : any +> : ^^^ +>y : any +> : ^^^ + +export var x1: number = defaultBinding4; +>x1 : number +> : ^^^^^^ +>defaultBinding4 : number +> : ^^^^^^ + +export import defaultBinding5, { x as z, } from "./server"; +>defaultBinding5 : number +> : ^^^^^^ +>x : any +> : ^^^ +>z : any +> : ^^^ + +export var x1: number = defaultBinding5; +>x1 : number +> : ^^^^^^ +>defaultBinding5 : number +> : ^^^^^^ + +export import defaultBinding6, { m, } from "./server"; +>defaultBinding6 : number +> : ^^^^^^ +>m : any +> : ^^^ + +export var x1: number = defaultBinding6; +>x1 : number +> : ^^^^^^ +>defaultBinding6 : number +> : ^^^^^^ + diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportDts1.errors.txt b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportDts1(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportDts1.errors.txt rename to tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportDts1(target=es2015).errors.txt diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportDts1(target=es2015).js b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportDts1(target=es2015).js new file mode 100644 index 0000000000000..34840ec432f0a --- /dev/null +++ b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportDts1(target=es2015).js @@ -0,0 +1,59 @@ +//// [tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportDts1.ts] //// + +//// [server.ts] +class a { } +export default a; + +//// [client.ts] +import defaultBinding1, { } from "./server"; +export var x1 = new defaultBinding1(); +import defaultBinding2, { a } from "./server"; +export var x2 = new defaultBinding2(); +import defaultBinding3, { a as b } from "./server"; +export var x3 = new defaultBinding3(); +import defaultBinding4, { x, a as y } from "./server"; +export var x4 = new defaultBinding4(); +import defaultBinding5, { x as z, } from "./server"; +export var x5 = new defaultBinding5(); +import defaultBinding6, { m, } from "./server"; +export var x6 = new defaultBinding6(); + +//// [server.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +class a { +} +exports.default = a; +//// [client.js] +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.x6 = exports.x5 = exports.x4 = exports.x3 = exports.x2 = exports.x1 = void 0; +const server_1 = __importDefault(require("./server")); +exports.x1 = new server_1.default(); +const server_2 = __importDefault(require("./server")); +exports.x2 = new server_2.default(); +const server_3 = __importDefault(require("./server")); +exports.x3 = new server_3.default(); +const server_4 = __importDefault(require("./server")); +exports.x4 = new server_4.default(); +const server_5 = __importDefault(require("./server")); +exports.x5 = new server_5.default(); +const server_6 = __importDefault(require("./server")); +exports.x6 = new server_6.default(); + + +//// [server.d.ts] +declare class a { +} +export default a; +//// [client.d.ts] +import defaultBinding1 from "./server"; +export declare var x1: defaultBinding1; +export declare var x2: defaultBinding1; +export declare var x3: defaultBinding1; +export declare var x4: defaultBinding1; +export declare var x5: defaultBinding1; +export declare var x6: defaultBinding1; diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportDts1.symbols b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportDts1(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportDts1.symbols rename to tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportDts1(target=es2015).symbols diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportDts1.types b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportDts1(target=es2015).types similarity index 100% rename from tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportDts1.types rename to tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportDts1(target=es2015).types diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportDts1(target=es5).errors.txt b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportDts1(target=es5).errors.txt new file mode 100644 index 0000000000000..e3ab9d8099817 --- /dev/null +++ b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportDts1(target=es5).errors.txt @@ -0,0 +1,37 @@ +client.ts(3,27): error TS2614: Module '"./server"' has no exported member 'a'. Did you mean to use 'import a from "./server"' instead? +client.ts(5,27): error TS2614: Module '"./server"' has no exported member 'a'. Did you mean to use 'import a from "./server"' instead? +client.ts(7,27): error TS2614: Module '"./server"' has no exported member 'x'. Did you mean to use 'import x from "./server"' instead? +client.ts(7,30): error TS2614: Module '"./server"' has no exported member 'a'. Did you mean to use 'import a from "./server"' instead? +client.ts(9,27): error TS2614: Module '"./server"' has no exported member 'x'. Did you mean to use 'import x from "./server"' instead? +client.ts(11,27): error TS2614: Module '"./server"' has no exported member 'm'. Did you mean to use 'import m from "./server"' instead? + + +==== server.ts (0 errors) ==== + class a { } + export default a; + +==== client.ts (6 errors) ==== + import defaultBinding1, { } from "./server"; + export var x1 = new defaultBinding1(); + import defaultBinding2, { a } from "./server"; + ~ +!!! error TS2614: Module '"./server"' has no exported member 'a'. Did you mean to use 'import a from "./server"' instead? + export var x2 = new defaultBinding2(); + import defaultBinding3, { a as b } from "./server"; + ~ +!!! error TS2614: Module '"./server"' has no exported member 'a'. Did you mean to use 'import a from "./server"' instead? + export var x3 = new defaultBinding3(); + import defaultBinding4, { x, a as y } from "./server"; + ~ +!!! error TS2614: Module '"./server"' has no exported member 'x'. Did you mean to use 'import x from "./server"' instead? + ~ +!!! error TS2614: Module '"./server"' has no exported member 'a'. Did you mean to use 'import a from "./server"' instead? + export var x4 = new defaultBinding4(); + import defaultBinding5, { x as z, } from "./server"; + ~ +!!! error TS2614: Module '"./server"' has no exported member 'x'. Did you mean to use 'import x from "./server"' instead? + export var x5 = new defaultBinding5(); + import defaultBinding6, { m, } from "./server"; + ~ +!!! error TS2614: Module '"./server"' has no exported member 'm'. Did you mean to use 'import m from "./server"' instead? + export var x6 = new defaultBinding6(); \ No newline at end of file diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportDts1.js b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportDts1(target=es5).js similarity index 100% rename from tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportDts1.js rename to tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportDts1(target=es5).js diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportDts1(target=es5).symbols b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportDts1(target=es5).symbols new file mode 100644 index 0000000000000..aa04c5c930abb --- /dev/null +++ b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportDts1(target=es5).symbols @@ -0,0 +1,58 @@ +//// [tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportDts1.ts] //// + +=== server.ts === +class a { } +>a : Symbol(a, Decl(server.ts, 0, 0)) + +export default a; +>a : Symbol(a, Decl(server.ts, 0, 0)) + +=== client.ts === +import defaultBinding1, { } from "./server"; +>defaultBinding1 : Symbol(defaultBinding1, Decl(client.ts, 0, 6)) + +export var x1 = new defaultBinding1(); +>x1 : Symbol(x1, Decl(client.ts, 1, 10)) +>defaultBinding1 : Symbol(defaultBinding1, Decl(client.ts, 0, 6)) + +import defaultBinding2, { a } from "./server"; +>defaultBinding2 : Symbol(defaultBinding2, Decl(client.ts, 2, 6)) +>a : Symbol(a, Decl(client.ts, 2, 25)) + +export var x2 = new defaultBinding2(); +>x2 : Symbol(x2, Decl(client.ts, 3, 10)) +>defaultBinding2 : Symbol(defaultBinding2, Decl(client.ts, 2, 6)) + +import defaultBinding3, { a as b } from "./server"; +>defaultBinding3 : Symbol(defaultBinding3, Decl(client.ts, 4, 6)) +>b : Symbol(b, Decl(client.ts, 4, 25)) + +export var x3 = new defaultBinding3(); +>x3 : Symbol(x3, Decl(client.ts, 5, 10)) +>defaultBinding3 : Symbol(defaultBinding3, Decl(client.ts, 4, 6)) + +import defaultBinding4, { x, a as y } from "./server"; +>defaultBinding4 : Symbol(defaultBinding4, Decl(client.ts, 6, 6)) +>x : Symbol(x, Decl(client.ts, 6, 25)) +>y : Symbol(y, Decl(client.ts, 6, 28)) + +export var x4 = new defaultBinding4(); +>x4 : Symbol(x4, Decl(client.ts, 7, 10)) +>defaultBinding4 : Symbol(defaultBinding4, Decl(client.ts, 6, 6)) + +import defaultBinding5, { x as z, } from "./server"; +>defaultBinding5 : Symbol(defaultBinding5, Decl(client.ts, 8, 6)) +>z : Symbol(z, Decl(client.ts, 8, 25)) + +export var x5 = new defaultBinding5(); +>x5 : Symbol(x5, Decl(client.ts, 9, 10)) +>defaultBinding5 : Symbol(defaultBinding5, Decl(client.ts, 8, 6)) + +import defaultBinding6, { m, } from "./server"; +>defaultBinding6 : Symbol(defaultBinding6, Decl(client.ts, 10, 6)) +>m : Symbol(m, Decl(client.ts, 10, 25)) + +export var x6 = new defaultBinding6(); +>x6 : Symbol(x6, Decl(client.ts, 11, 10)) +>defaultBinding6 : Symbol(defaultBinding6, Decl(client.ts, 10, 6)) + diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportDts1(target=es5).types b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportDts1(target=es5).types new file mode 100644 index 0000000000000..fdcd899572194 --- /dev/null +++ b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportDts1(target=es5).types @@ -0,0 +1,102 @@ +//// [tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportDts1.ts] //// + +=== server.ts === +class a { } +>a : a +> : ^ + +export default a; +>a : a +> : ^ + +=== client.ts === +import defaultBinding1, { } from "./server"; +>defaultBinding1 : typeof defaultBinding1 +> : ^^^^^^^^^^^^^^^^^^^^^^ + +export var x1 = new defaultBinding1(); +>x1 : defaultBinding1 +> : ^^^^^^^^^^^^^^^ +>new defaultBinding1() : defaultBinding1 +> : ^^^^^^^^^^^^^^^ +>defaultBinding1 : typeof defaultBinding1 +> : ^^^^^^^^^^^^^^^^^^^^^^ + +import defaultBinding2, { a } from "./server"; +>defaultBinding2 : typeof defaultBinding1 +> : ^^^^^^^^^^^^^^^^^^^^^^ +>a : any +> : ^^^ + +export var x2 = new defaultBinding2(); +>x2 : defaultBinding1 +> : ^^^^^^^^^^^^^^^ +>new defaultBinding2() : defaultBinding1 +> : ^^^^^^^^^^^^^^^ +>defaultBinding2 : typeof defaultBinding1 +> : ^^^^^^^^^^^^^^^^^^^^^^ + +import defaultBinding3, { a as b } from "./server"; +>defaultBinding3 : typeof defaultBinding1 +> : ^^^^^^^^^^^^^^^^^^^^^^ +>a : any +> : ^^^ +>b : any +> : ^^^ + +export var x3 = new defaultBinding3(); +>x3 : defaultBinding1 +> : ^^^^^^^^^^^^^^^ +>new defaultBinding3() : defaultBinding1 +> : ^^^^^^^^^^^^^^^ +>defaultBinding3 : typeof defaultBinding1 +> : ^^^^^^^^^^^^^^^^^^^^^^ + +import defaultBinding4, { x, a as y } from "./server"; +>defaultBinding4 : typeof defaultBinding1 +> : ^^^^^^^^^^^^^^^^^^^^^^ +>x : any +> : ^^^ +>a : any +> : ^^^ +>y : any +> : ^^^ + +export var x4 = new defaultBinding4(); +>x4 : defaultBinding1 +> : ^^^^^^^^^^^^^^^ +>new defaultBinding4() : defaultBinding1 +> : ^^^^^^^^^^^^^^^ +>defaultBinding4 : typeof defaultBinding1 +> : ^^^^^^^^^^^^^^^^^^^^^^ + +import defaultBinding5, { x as z, } from "./server"; +>defaultBinding5 : typeof defaultBinding1 +> : ^^^^^^^^^^^^^^^^^^^^^^ +>x : any +> : ^^^ +>z : any +> : ^^^ + +export var x5 = new defaultBinding5(); +>x5 : defaultBinding1 +> : ^^^^^^^^^^^^^^^ +>new defaultBinding5() : defaultBinding1 +> : ^^^^^^^^^^^^^^^ +>defaultBinding5 : typeof defaultBinding1 +> : ^^^^^^^^^^^^^^^^^^^^^^ + +import defaultBinding6, { m, } from "./server"; +>defaultBinding6 : typeof defaultBinding1 +> : ^^^^^^^^^^^^^^^^^^^^^^ +>m : any +> : ^^^ + +export var x6 = new defaultBinding6(); +>x6 : defaultBinding1 +> : ^^^^^^^^^^^^^^^ +>new defaultBinding6() : defaultBinding1 +> : ^^^^^^^^^^^^^^^ +>defaultBinding6 : typeof defaultBinding1 +> : ^^^^^^^^^^^^^^^^^^^^^^ + diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportInEs5.errors.txt b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportInEs5(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportInEs5.errors.txt rename to tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportInEs5(target=es2015).errors.txt diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportInEs5(target=es2015).js b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportInEs5(target=es2015).js new file mode 100644 index 0000000000000..2dfc20cb7c9dc --- /dev/null +++ b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportInEs5(target=es2015).js @@ -0,0 +1,51 @@ +//// [tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5.ts] //// + +//// [es6ImportDefaultBindingFollowedWithNamedImportInEs5_0.ts] +export var a = 10; +export var x = a; +export var m = a; + +//// [es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts] +import defaultBinding1, { } from "./es6ImportDefaultBindingFollowedWithNamedImportInEs5_0"; +import defaultBinding2, { a } from "./es6ImportDefaultBindingFollowedWithNamedImportInEs5_0"; +var x1: number = a; +import defaultBinding3, { a as b } from "./es6ImportDefaultBindingFollowedWithNamedImportInEs5_0"; +var x1: number = b; +import defaultBinding4, { x, a as y } from "./es6ImportDefaultBindingFollowedWithNamedImportInEs5_0"; +var x1: number = x; +var x1: number = y; +import defaultBinding5, { x as z, } from "./es6ImportDefaultBindingFollowedWithNamedImportInEs5_0"; +var x1: number = z; +import defaultBinding6, { m, } from "./es6ImportDefaultBindingFollowedWithNamedImportInEs5_0"; +var x1: number = m; + + +//// [es6ImportDefaultBindingFollowedWithNamedImportInEs5_0.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.m = exports.x = exports.a = void 0; +exports.a = 10; +exports.x = exports.a; +exports.m = exports.a; +//// [es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const es6ImportDefaultBindingFollowedWithNamedImportInEs5_0_1 = require("./es6ImportDefaultBindingFollowedWithNamedImportInEs5_0"); +var x1 = es6ImportDefaultBindingFollowedWithNamedImportInEs5_0_1.a; +const es6ImportDefaultBindingFollowedWithNamedImportInEs5_0_2 = require("./es6ImportDefaultBindingFollowedWithNamedImportInEs5_0"); +var x1 = es6ImportDefaultBindingFollowedWithNamedImportInEs5_0_2.a; +const es6ImportDefaultBindingFollowedWithNamedImportInEs5_0_3 = require("./es6ImportDefaultBindingFollowedWithNamedImportInEs5_0"); +var x1 = es6ImportDefaultBindingFollowedWithNamedImportInEs5_0_3.x; +var x1 = es6ImportDefaultBindingFollowedWithNamedImportInEs5_0_3.a; +const es6ImportDefaultBindingFollowedWithNamedImportInEs5_0_4 = require("./es6ImportDefaultBindingFollowedWithNamedImportInEs5_0"); +var x1 = es6ImportDefaultBindingFollowedWithNamedImportInEs5_0_4.x; +const es6ImportDefaultBindingFollowedWithNamedImportInEs5_0_5 = require("./es6ImportDefaultBindingFollowedWithNamedImportInEs5_0"); +var x1 = es6ImportDefaultBindingFollowedWithNamedImportInEs5_0_5.m; + + +//// [es6ImportDefaultBindingFollowedWithNamedImportInEs5_0.d.ts] +export declare var a: number; +export declare var x: number; +export declare var m: number; +//// [es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.d.ts] +export {}; diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportInEs5.symbols b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportInEs5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportInEs5.symbols rename to tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportInEs5(target=es2015).symbols diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportInEs5.types b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportInEs5(target=es2015).types similarity index 100% rename from tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportInEs5.types rename to tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportInEs5(target=es2015).types diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportInEs5(target=es5).errors.txt b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportInEs5(target=es5).errors.txt new file mode 100644 index 0000000000000..1b19987c9e577 --- /dev/null +++ b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportInEs5(target=es5).errors.txt @@ -0,0 +1,39 @@ +es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts(1,8): error TS1192: Module '"es6ImportDefaultBindingFollowedWithNamedImportInEs5_0"' has no default export. +es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts(2,8): error TS1192: Module '"es6ImportDefaultBindingFollowedWithNamedImportInEs5_0"' has no default export. +es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts(4,8): error TS1192: Module '"es6ImportDefaultBindingFollowedWithNamedImportInEs5_0"' has no default export. +es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts(6,8): error TS1192: Module '"es6ImportDefaultBindingFollowedWithNamedImportInEs5_0"' has no default export. +es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts(9,8): error TS1192: Module '"es6ImportDefaultBindingFollowedWithNamedImportInEs5_0"' has no default export. +es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts(11,8): error TS1192: Module '"es6ImportDefaultBindingFollowedWithNamedImportInEs5_0"' has no default export. + + +==== es6ImportDefaultBindingFollowedWithNamedImportInEs5_0.ts (0 errors) ==== + export var a = 10; + export var x = a; + export var m = a; + +==== es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts (6 errors) ==== + import defaultBinding1, { } from "./es6ImportDefaultBindingFollowedWithNamedImportInEs5_0"; + ~~~~~~~~~~~~~~~ +!!! error TS1192: Module '"es6ImportDefaultBindingFollowedWithNamedImportInEs5_0"' has no default export. + import defaultBinding2, { a } from "./es6ImportDefaultBindingFollowedWithNamedImportInEs5_0"; + ~~~~~~~~~~~~~~~ +!!! error TS1192: Module '"es6ImportDefaultBindingFollowedWithNamedImportInEs5_0"' has no default export. + var x1: number = a; + import defaultBinding3, { a as b } from "./es6ImportDefaultBindingFollowedWithNamedImportInEs5_0"; + ~~~~~~~~~~~~~~~ +!!! error TS1192: Module '"es6ImportDefaultBindingFollowedWithNamedImportInEs5_0"' has no default export. + var x1: number = b; + import defaultBinding4, { x, a as y } from "./es6ImportDefaultBindingFollowedWithNamedImportInEs5_0"; + ~~~~~~~~~~~~~~~ +!!! error TS1192: Module '"es6ImportDefaultBindingFollowedWithNamedImportInEs5_0"' has no default export. + var x1: number = x; + var x1: number = y; + import defaultBinding5, { x as z, } from "./es6ImportDefaultBindingFollowedWithNamedImportInEs5_0"; + ~~~~~~~~~~~~~~~ +!!! error TS1192: Module '"es6ImportDefaultBindingFollowedWithNamedImportInEs5_0"' has no default export. + var x1: number = z; + import defaultBinding6, { m, } from "./es6ImportDefaultBindingFollowedWithNamedImportInEs5_0"; + ~~~~~~~~~~~~~~~ +!!! error TS1192: Module '"es6ImportDefaultBindingFollowedWithNamedImportInEs5_0"' has no default export. + var x1: number = m; + \ No newline at end of file diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportInEs5.js b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportInEs5(target=es5).js similarity index 100% rename from tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportInEs5.js rename to tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportInEs5(target=es5).js diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportInEs5(target=es5).symbols b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportInEs5(target=es5).symbols new file mode 100644 index 0000000000000..b0f77846c2270 --- /dev/null +++ b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportInEs5(target=es5).symbols @@ -0,0 +1,66 @@ +//// [tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5.ts] //// + +=== es6ImportDefaultBindingFollowedWithNamedImportInEs5_0.ts === +export var a = 10; +>a : Symbol(a, Decl(es6ImportDefaultBindingFollowedWithNamedImportInEs5_0.ts, 0, 10)) + +export var x = a; +>x : Symbol(x, Decl(es6ImportDefaultBindingFollowedWithNamedImportInEs5_0.ts, 1, 10)) +>a : Symbol(a, Decl(es6ImportDefaultBindingFollowedWithNamedImportInEs5_0.ts, 0, 10)) + +export var m = a; +>m : Symbol(m, Decl(es6ImportDefaultBindingFollowedWithNamedImportInEs5_0.ts, 2, 10)) +>a : Symbol(a, Decl(es6ImportDefaultBindingFollowedWithNamedImportInEs5_0.ts, 0, 10)) + +=== es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts === +import defaultBinding1, { } from "./es6ImportDefaultBindingFollowedWithNamedImportInEs5_0"; +>defaultBinding1 : Symbol(defaultBinding1, Decl(es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts, 0, 6)) + +import defaultBinding2, { a } from "./es6ImportDefaultBindingFollowedWithNamedImportInEs5_0"; +>defaultBinding2 : Symbol(defaultBinding2, Decl(es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts, 1, 6)) +>a : Symbol(a, Decl(es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts, 1, 25)) + +var x1: number = a; +>x1 : Symbol(x1, Decl(es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts, 2, 3), Decl(es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts, 4, 3), Decl(es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts, 6, 3), Decl(es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts, 7, 3), Decl(es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts, 9, 3) ... and 1 more) +>a : Symbol(a, Decl(es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts, 1, 25)) + +import defaultBinding3, { a as b } from "./es6ImportDefaultBindingFollowedWithNamedImportInEs5_0"; +>defaultBinding3 : Symbol(defaultBinding3, Decl(es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts, 3, 6)) +>a : Symbol(a, Decl(es6ImportDefaultBindingFollowedWithNamedImportInEs5_0.ts, 0, 10)) +>b : Symbol(b, Decl(es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts, 3, 25)) + +var x1: number = b; +>x1 : Symbol(x1, Decl(es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts, 2, 3), Decl(es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts, 4, 3), Decl(es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts, 6, 3), Decl(es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts, 7, 3), Decl(es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts, 9, 3) ... and 1 more) +>b : Symbol(b, Decl(es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts, 3, 25)) + +import defaultBinding4, { x, a as y } from "./es6ImportDefaultBindingFollowedWithNamedImportInEs5_0"; +>defaultBinding4 : Symbol(defaultBinding4, Decl(es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts, 5, 6)) +>x : Symbol(x, Decl(es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts, 5, 25)) +>a : Symbol(a, Decl(es6ImportDefaultBindingFollowedWithNamedImportInEs5_0.ts, 0, 10)) +>y : Symbol(y, Decl(es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts, 5, 28)) + +var x1: number = x; +>x1 : Symbol(x1, Decl(es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts, 2, 3), Decl(es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts, 4, 3), Decl(es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts, 6, 3), Decl(es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts, 7, 3), Decl(es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts, 9, 3) ... and 1 more) +>x : Symbol(x, Decl(es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts, 5, 25)) + +var x1: number = y; +>x1 : Symbol(x1, Decl(es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts, 2, 3), Decl(es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts, 4, 3), Decl(es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts, 6, 3), Decl(es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts, 7, 3), Decl(es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts, 9, 3) ... and 1 more) +>y : Symbol(y, Decl(es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts, 5, 28)) + +import defaultBinding5, { x as z, } from "./es6ImportDefaultBindingFollowedWithNamedImportInEs5_0"; +>defaultBinding5 : Symbol(defaultBinding5, Decl(es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts, 8, 6)) +>x : Symbol(x, Decl(es6ImportDefaultBindingFollowedWithNamedImportInEs5_0.ts, 1, 10)) +>z : Symbol(z, Decl(es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts, 8, 25)) + +var x1: number = z; +>x1 : Symbol(x1, Decl(es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts, 2, 3), Decl(es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts, 4, 3), Decl(es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts, 6, 3), Decl(es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts, 7, 3), Decl(es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts, 9, 3) ... and 1 more) +>z : Symbol(z, Decl(es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts, 8, 25)) + +import defaultBinding6, { m, } from "./es6ImportDefaultBindingFollowedWithNamedImportInEs5_0"; +>defaultBinding6 : Symbol(defaultBinding6, Decl(es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts, 10, 6)) +>m : Symbol(m, Decl(es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts, 10, 25)) + +var x1: number = m; +>x1 : Symbol(x1, Decl(es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts, 2, 3), Decl(es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts, 4, 3), Decl(es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts, 6, 3), Decl(es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts, 7, 3), Decl(es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts, 9, 3) ... and 1 more) +>m : Symbol(m, Decl(es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts, 10, 25)) + diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportInEs5(target=es5).types b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportInEs5(target=es5).types new file mode 100644 index 0000000000000..8232de684420b --- /dev/null +++ b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportInEs5(target=es5).types @@ -0,0 +1,100 @@ +//// [tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5.ts] //// + +=== es6ImportDefaultBindingFollowedWithNamedImportInEs5_0.ts === +export var a = 10; +>a : number +> : ^^^^^^ +>10 : 10 +> : ^^ + +export var x = a; +>x : number +> : ^^^^^^ +>a : number +> : ^^^^^^ + +export var m = a; +>m : number +> : ^^^^^^ +>a : number +> : ^^^^^^ + +=== es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts === +import defaultBinding1, { } from "./es6ImportDefaultBindingFollowedWithNamedImportInEs5_0"; +>defaultBinding1 : any +> : ^^^ + +import defaultBinding2, { a } from "./es6ImportDefaultBindingFollowedWithNamedImportInEs5_0"; +>defaultBinding2 : any +> : ^^^ +>a : number +> : ^^^^^^ + +var x1: number = a; +>x1 : number +> : ^^^^^^ +>a : number +> : ^^^^^^ + +import defaultBinding3, { a as b } from "./es6ImportDefaultBindingFollowedWithNamedImportInEs5_0"; +>defaultBinding3 : any +> : ^^^ +>a : number +> : ^^^^^^ +>b : number +> : ^^^^^^ + +var x1: number = b; +>x1 : number +> : ^^^^^^ +>b : number +> : ^^^^^^ + +import defaultBinding4, { x, a as y } from "./es6ImportDefaultBindingFollowedWithNamedImportInEs5_0"; +>defaultBinding4 : any +> : ^^^ +>x : number +> : ^^^^^^ +>a : number +> : ^^^^^^ +>y : number +> : ^^^^^^ + +var x1: number = x; +>x1 : number +> : ^^^^^^ +>x : number +> : ^^^^^^ + +var x1: number = y; +>x1 : number +> : ^^^^^^ +>y : number +> : ^^^^^^ + +import defaultBinding5, { x as z, } from "./es6ImportDefaultBindingFollowedWithNamedImportInEs5_0"; +>defaultBinding5 : any +> : ^^^ +>x : number +> : ^^^^^^ +>z : number +> : ^^^^^^ + +var x1: number = z; +>x1 : number +> : ^^^^^^ +>z : number +> : ^^^^^^ + +import defaultBinding6, { m, } from "./es6ImportDefaultBindingFollowedWithNamedImportInEs5_0"; +>defaultBinding6 : any +> : ^^^ +>m : number +> : ^^^^^^ + +var x1: number = m; +>x1 : number +> : ^^^^^^ +>m : number +> : ^^^^^^ + diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportWithExport.errors.txt b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportWithExport(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportWithExport.errors.txt rename to tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportWithExport(target=es2015).errors.txt diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportWithExport(target=es2015).js b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportWithExport(target=es2015).js new file mode 100644 index 0000000000000..6f1755491afda --- /dev/null +++ b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportWithExport(target=es2015).js @@ -0,0 +1,61 @@ +//// [tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportWithExport.ts] //// + +//// [server.ts] +export var a = 10; +export var x = a; +export var m = a; +export default {}; + +//// [client.ts] +export import defaultBinding1, { } from "./server"; +export import defaultBinding2, { a } from "./server"; +export var x1: number = a; +export import defaultBinding3, { a as b } from "./server"; +export var x1: number = b; +export import defaultBinding4, { x, a as y } from "./server"; +export var x1: number = x; +export var x1: number = y; +export import defaultBinding5, { x as z, } from "./server"; +export var x1: number = z; +export import defaultBinding6, { m, } from "./server"; +export var x1: number = m; + + +//// [server.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.m = exports.x = exports.a = void 0; +exports.a = 10; +exports.x = exports.a; +exports.m = exports.a; +exports.default = {}; +//// [client.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.x1 = void 0; +const server_1 = require("./server"); +exports.x1 = server_1.a; +const server_2 = require("./server"); +exports.x1 = server_2.a; +const server_3 = require("./server"); +exports.x1 = server_3.x; +exports.x1 = server_3.a; +const server_4 = require("./server"); +exports.x1 = server_4.x; +const server_5 = require("./server"); +exports.x1 = server_5.m; + + +//// [server.d.ts] +export declare var a: number; +export declare var x: number; +export declare var m: number; +declare const _default: {}; +export default _default; +//// [client.d.ts] +export declare var x1: number; +export declare var x1: number; +export declare var x1: number; +export declare var x1: number; +export declare var x1: number; +export declare var x1: number; diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportWithExport.symbols b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportWithExport(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportWithExport.symbols rename to tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportWithExport(target=es2015).symbols diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportWithExport.types b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportWithExport(target=es2015).types similarity index 100% rename from tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportWithExport.types rename to tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportWithExport(target=es2015).types diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportWithExport(target=es5).errors.txt b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportWithExport(target=es5).errors.txt new file mode 100644 index 0000000000000..08261f24e767f --- /dev/null +++ b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportWithExport(target=es5).errors.txt @@ -0,0 +1,58 @@ +client.ts(1,1): error TS1191: An import declaration cannot have modifiers. +client.ts(2,1): error TS1191: An import declaration cannot have modifiers. +client.ts(3,12): error TS2323: Cannot redeclare exported variable 'x1'. +client.ts(4,1): error TS1191: An import declaration cannot have modifiers. +client.ts(5,12): error TS2323: Cannot redeclare exported variable 'x1'. +client.ts(6,1): error TS1191: An import declaration cannot have modifiers. +client.ts(7,12): error TS2323: Cannot redeclare exported variable 'x1'. +client.ts(8,12): error TS2323: Cannot redeclare exported variable 'x1'. +client.ts(9,1): error TS1191: An import declaration cannot have modifiers. +client.ts(10,12): error TS2323: Cannot redeclare exported variable 'x1'. +client.ts(11,1): error TS1191: An import declaration cannot have modifiers. +client.ts(12,12): error TS2323: Cannot redeclare exported variable 'x1'. + + +==== server.ts (0 errors) ==== + export var a = 10; + export var x = a; + export var m = a; + export default {}; + +==== client.ts (12 errors) ==== + export import defaultBinding1, { } from "./server"; + ~~~~~~ +!!! error TS1191: An import declaration cannot have modifiers. + export import defaultBinding2, { a } from "./server"; + ~~~~~~ +!!! error TS1191: An import declaration cannot have modifiers. + export var x1: number = a; + ~~ +!!! error TS2323: Cannot redeclare exported variable 'x1'. + export import defaultBinding3, { a as b } from "./server"; + ~~~~~~ +!!! error TS1191: An import declaration cannot have modifiers. + export var x1: number = b; + ~~ +!!! error TS2323: Cannot redeclare exported variable 'x1'. + export import defaultBinding4, { x, a as y } from "./server"; + ~~~~~~ +!!! error TS1191: An import declaration cannot have modifiers. + export var x1: number = x; + ~~ +!!! error TS2323: Cannot redeclare exported variable 'x1'. + export var x1: number = y; + ~~ +!!! error TS2323: Cannot redeclare exported variable 'x1'. + export import defaultBinding5, { x as z, } from "./server"; + ~~~~~~ +!!! error TS1191: An import declaration cannot have modifiers. + export var x1: number = z; + ~~ +!!! error TS2323: Cannot redeclare exported variable 'x1'. + export import defaultBinding6, { m, } from "./server"; + ~~~~~~ +!!! error TS1191: An import declaration cannot have modifiers. + export var x1: number = m; + ~~ +!!! error TS2323: Cannot redeclare exported variable 'x1'. + \ No newline at end of file diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportWithExport.js b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportWithExport(target=es5).js similarity index 100% rename from tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportWithExport.js rename to tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportWithExport(target=es5).js diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportWithExport(target=es5).symbols b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportWithExport(target=es5).symbols new file mode 100644 index 0000000000000..35bbfb8c42413 --- /dev/null +++ b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportWithExport(target=es5).symbols @@ -0,0 +1,68 @@ +//// [tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportWithExport.ts] //// + +=== server.ts === +export var a = 10; +>a : Symbol(a, Decl(server.ts, 0, 10)) + +export var x = a; +>x : Symbol(x, Decl(server.ts, 1, 10)) +>a : Symbol(a, Decl(server.ts, 0, 10)) + +export var m = a; +>m : Symbol(m, Decl(server.ts, 2, 10)) +>a : Symbol(a, Decl(server.ts, 0, 10)) + +export default {}; + +=== client.ts === +export import defaultBinding1, { } from "./server"; +>defaultBinding1 : Symbol(defaultBinding1, Decl(client.ts, 0, 13)) + +export import defaultBinding2, { a } from "./server"; +>defaultBinding2 : Symbol(defaultBinding2, Decl(client.ts, 1, 13)) +>a : Symbol(a, Decl(client.ts, 1, 32)) + +export var x1: number = a; +>x1 : Symbol(x1, Decl(client.ts, 2, 10), Decl(client.ts, 4, 10), Decl(client.ts, 6, 10), Decl(client.ts, 7, 10), Decl(client.ts, 9, 10) ... and 1 more) +>a : Symbol(a, Decl(client.ts, 1, 32)) + +export import defaultBinding3, { a as b } from "./server"; +>defaultBinding3 : Symbol(defaultBinding3, Decl(client.ts, 3, 13)) +>a : Symbol(a, Decl(server.ts, 0, 10)) +>b : Symbol(b, Decl(client.ts, 3, 32)) + +export var x1: number = b; +>x1 : Symbol(x1, Decl(client.ts, 2, 10), Decl(client.ts, 4, 10), Decl(client.ts, 6, 10), Decl(client.ts, 7, 10), Decl(client.ts, 9, 10) ... and 1 more) +>b : Symbol(b, Decl(client.ts, 3, 32)) + +export import defaultBinding4, { x, a as y } from "./server"; +>defaultBinding4 : Symbol(defaultBinding4, Decl(client.ts, 5, 13)) +>x : Symbol(x, Decl(client.ts, 5, 32)) +>a : Symbol(a, Decl(server.ts, 0, 10)) +>y : Symbol(y, Decl(client.ts, 5, 35)) + +export var x1: number = x; +>x1 : Symbol(x1, Decl(client.ts, 2, 10), Decl(client.ts, 4, 10), Decl(client.ts, 6, 10), Decl(client.ts, 7, 10), Decl(client.ts, 9, 10) ... and 1 more) +>x : Symbol(x, Decl(client.ts, 5, 32)) + +export var x1: number = y; +>x1 : Symbol(x1, Decl(client.ts, 2, 10), Decl(client.ts, 4, 10), Decl(client.ts, 6, 10), Decl(client.ts, 7, 10), Decl(client.ts, 9, 10) ... and 1 more) +>y : Symbol(y, Decl(client.ts, 5, 35)) + +export import defaultBinding5, { x as z, } from "./server"; +>defaultBinding5 : Symbol(defaultBinding5, Decl(client.ts, 8, 13)) +>x : Symbol(x, Decl(server.ts, 1, 10)) +>z : Symbol(z, Decl(client.ts, 8, 32)) + +export var x1: number = z; +>x1 : Symbol(x1, Decl(client.ts, 2, 10), Decl(client.ts, 4, 10), Decl(client.ts, 6, 10), Decl(client.ts, 7, 10), Decl(client.ts, 9, 10) ... and 1 more) +>z : Symbol(z, Decl(client.ts, 8, 32)) + +export import defaultBinding6, { m, } from "./server"; +>defaultBinding6 : Symbol(defaultBinding6, Decl(client.ts, 10, 13)) +>m : Symbol(m, Decl(client.ts, 10, 32)) + +export var x1: number = m; +>x1 : Symbol(x1, Decl(client.ts, 2, 10), Decl(client.ts, 4, 10), Decl(client.ts, 6, 10), Decl(client.ts, 7, 10), Decl(client.ts, 9, 10) ... and 1 more) +>m : Symbol(m, Decl(client.ts, 10, 32)) + diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportWithExport(target=es5).types b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportWithExport(target=es5).types new file mode 100644 index 0000000000000..cfac0a86f6d93 --- /dev/null +++ b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportWithExport(target=es5).types @@ -0,0 +1,104 @@ +//// [tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportWithExport.ts] //// + +=== server.ts === +export var a = 10; +>a : number +> : ^^^^^^ +>10 : 10 +> : ^^ + +export var x = a; +>x : number +> : ^^^^^^ +>a : number +> : ^^^^^^ + +export var m = a; +>m : number +> : ^^^^^^ +>a : number +> : ^^^^^^ + +export default {}; +>{} : {} +> : ^^ + +=== client.ts === +export import defaultBinding1, { } from "./server"; +>defaultBinding1 : {} +> : ^^ + +export import defaultBinding2, { a } from "./server"; +>defaultBinding2 : {} +> : ^^ +>a : number +> : ^^^^^^ + +export var x1: number = a; +>x1 : number +> : ^^^^^^ +>a : number +> : ^^^^^^ + +export import defaultBinding3, { a as b } from "./server"; +>defaultBinding3 : {} +> : ^^ +>a : number +> : ^^^^^^ +>b : number +> : ^^^^^^ + +export var x1: number = b; +>x1 : number +> : ^^^^^^ +>b : number +> : ^^^^^^ + +export import defaultBinding4, { x, a as y } from "./server"; +>defaultBinding4 : {} +> : ^^ +>x : number +> : ^^^^^^ +>a : number +> : ^^^^^^ +>y : number +> : ^^^^^^ + +export var x1: number = x; +>x1 : number +> : ^^^^^^ +>x : number +> : ^^^^^^ + +export var x1: number = y; +>x1 : number +> : ^^^^^^ +>y : number +> : ^^^^^^ + +export import defaultBinding5, { x as z, } from "./server"; +>defaultBinding5 : {} +> : ^^ +>x : number +> : ^^^^^^ +>z : number +> : ^^^^^^ + +export var x1: number = z; +>x1 : number +> : ^^^^^^ +>z : number +> : ^^^^^^ + +export import defaultBinding6, { m, } from "./server"; +>defaultBinding6 : {} +> : ^^ +>m : number +> : ^^^^^^ + +export var x1: number = m; +>x1 : number +> : ^^^^^^ +>m : number +> : ^^^^^^ + diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1InEs5(target=es2015).js b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1InEs5(target=es2015).js new file mode 100644 index 0000000000000..67f80174cdbed --- /dev/null +++ b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1InEs5(target=es2015).js @@ -0,0 +1,30 @@ +//// [tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding1InEs5.ts] //// + +//// [es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0.ts] +var a = 10; +export default a; + +//// [es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_1.ts] +import defaultBinding, * as nameSpaceBinding from "./es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0"; +var x: number = defaultBinding; + +//// [es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var a = 10; +exports.default = a; +//// [es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_1.js] +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0_1 = __importDefault(require("./es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0")); +var x = es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0_1.default; + + +//// [es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0.d.ts] +declare var a: number; +export default a; +//// [es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_1.d.ts] +export {}; diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1InEs5.symbols b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1InEs5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1InEs5.symbols rename to tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1InEs5(target=es2015).symbols diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1InEs5.types b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1InEs5(target=es2015).types similarity index 100% rename from tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1InEs5.types rename to tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1InEs5(target=es2015).types diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1InEs5.js b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1InEs5(target=es5).js similarity index 100% rename from tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1InEs5.js rename to tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1InEs5(target=es5).js diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1InEs5(target=es5).symbols b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1InEs5(target=es5).symbols new file mode 100644 index 0000000000000..a91a42eb1c6d7 --- /dev/null +++ b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1InEs5(target=es5).symbols @@ -0,0 +1,18 @@ +//// [tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding1InEs5.ts] //// + +=== es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0.ts === +var a = 10; +>a : Symbol(a, Decl(es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0.ts, 0, 3)) + +export default a; +>a : Symbol(a, Decl(es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0.ts, 0, 3)) + +=== es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_1.ts === +import defaultBinding, * as nameSpaceBinding from "./es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0"; +>defaultBinding : Symbol(defaultBinding, Decl(es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_1.ts, 0, 6)) +>nameSpaceBinding : Symbol(nameSpaceBinding, Decl(es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_1.ts, 0, 22)) + +var x: number = defaultBinding; +>x : Symbol(x, Decl(es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_1.ts, 1, 3)) +>defaultBinding : Symbol(defaultBinding, Decl(es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_1.ts, 0, 6)) + diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1InEs5(target=es5).types b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1InEs5(target=es5).types new file mode 100644 index 0000000000000..1dd48dfd1af4a --- /dev/null +++ b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1InEs5(target=es5).types @@ -0,0 +1,26 @@ +//// [tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding1InEs5.ts] //// + +=== es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0.ts === +var a = 10; +>a : number +> : ^^^^^^ +>10 : 10 +> : ^^ + +export default a; +>a : number +> : ^^^^^^ + +=== es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_1.ts === +import defaultBinding, * as nameSpaceBinding from "./es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0"; +>defaultBinding : number +> : ^^^^^^ +>nameSpaceBinding : typeof nameSpaceBinding +> : ^^^^^^^^^^^^^^^^^^^^^^^ + +var x: number = defaultBinding; +>x : number +> : ^^^^^^ +>defaultBinding : number +> : ^^^^^^ + diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1WithExport.errors.txt b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1WithExport(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1WithExport.errors.txt rename to tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1WithExport(target=es2015).errors.txt diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1WithExport.js b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1WithExport(target=es2015).js similarity index 100% rename from tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1WithExport.js rename to tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1WithExport(target=es2015).js diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1WithExport.symbols b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1WithExport(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1WithExport.symbols rename to tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1WithExport(target=es2015).symbols diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1WithExport.types b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1WithExport(target=es2015).types similarity index 100% rename from tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1WithExport.types rename to tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1WithExport(target=es2015).types diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1WithExport(target=es5).errors.txt b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1WithExport(target=es5).errors.txt new file mode 100644 index 0000000000000..2c71ce2555eb4 --- /dev/null +++ b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1WithExport(target=es5).errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +client.ts(1,1): error TS1191: An import declaration cannot have modifiers. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== server.ts (0 errors) ==== + var a = 10; + export default a; + +==== client.ts (1 errors) ==== + export import defaultBinding, * as nameSpaceBinding from "./server"; + ~~~~~~ +!!! error TS1191: An import declaration cannot have modifiers. + export var x: number = defaultBinding; \ No newline at end of file diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1WithExport(target=es5).js b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1WithExport(target=es5).js new file mode 100644 index 0000000000000..816d4b5fb898d --- /dev/null +++ b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1WithExport(target=es5).js @@ -0,0 +1,35 @@ +//// [tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding1WithExport.ts] //// + +//// [server.ts] +var a = 10; +export default a; + +//// [client.ts] +export import defaultBinding, * as nameSpaceBinding from "./server"; +export var x: number = defaultBinding; + +//// [server.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var a = 10; + exports.default = a; +}); +//// [client.js] +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +define(["require", "exports", "./server"], function (require, exports, server_1) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = void 0; + server_1 = __importDefault(server_1); + exports.x = server_1.default; +}); + + +//// [server.d.ts] +declare var a: number; +export default a; +//// [client.d.ts] +export declare var x: number; diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1WithExport(target=es5).symbols b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1WithExport(target=es5).symbols new file mode 100644 index 0000000000000..42acdc7dd56b0 --- /dev/null +++ b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1WithExport(target=es5).symbols @@ -0,0 +1,18 @@ +//// [tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding1WithExport.ts] //// + +=== server.ts === +var a = 10; +>a : Symbol(a, Decl(server.ts, 0, 3)) + +export default a; +>a : Symbol(a, Decl(server.ts, 0, 3)) + +=== client.ts === +export import defaultBinding, * as nameSpaceBinding from "./server"; +>defaultBinding : Symbol(defaultBinding, Decl(client.ts, 0, 13)) +>nameSpaceBinding : Symbol(nameSpaceBinding, Decl(client.ts, 0, 29)) + +export var x: number = defaultBinding; +>x : Symbol(x, Decl(client.ts, 1, 10)) +>defaultBinding : Symbol(defaultBinding, Decl(client.ts, 0, 13)) + diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1WithExport(target=es5).types b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1WithExport(target=es5).types new file mode 100644 index 0000000000000..580e9301d1434 --- /dev/null +++ b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1WithExport(target=es5).types @@ -0,0 +1,26 @@ +//// [tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding1WithExport.ts] //// + +=== server.ts === +var a = 10; +>a : number +> : ^^^^^^ +>10 : 10 +> : ^^ + +export default a; +>a : number +> : ^^^^^^ + +=== client.ts === +export import defaultBinding, * as nameSpaceBinding from "./server"; +>defaultBinding : number +> : ^^^^^^ +>nameSpaceBinding : typeof nameSpaceBinding +> : ^^^^^^^^^^^^^^^^^^^^^^^ + +export var x: number = defaultBinding; +>x : number +> : ^^^^^^ +>defaultBinding : number +> : ^^^^^^ + diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingDts1.errors.txt b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingDts1(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingDts1.errors.txt rename to tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingDts1(target=es2015).errors.txt diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingDts1(target=es2015).js b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingDts1(target=es2015).js new file mode 100644 index 0000000000000..7861e152969e6 --- /dev/null +++ b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingDts1(target=es2015).js @@ -0,0 +1,38 @@ +//// [tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBindingDts1.ts] //// + +//// [server.ts] +class a { } +export default a; + +//// [client.ts] +import defaultBinding, * as nameSpaceBinding from "./server"; +export var x = new defaultBinding(); + +//// [server.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + class a { + } + exports.default = a; +}); +//// [client.js] +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +define(["require", "exports", "./server"], function (require, exports, server_1) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = void 0; + server_1 = __importDefault(server_1); + exports.x = new server_1.default(); +}); + + +//// [server.d.ts] +declare class a { +} +export default a; +//// [client.d.ts] +import defaultBinding from "./server"; +export declare var x: defaultBinding; diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingDts1.symbols b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingDts1(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingDts1.symbols rename to tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingDts1(target=es2015).symbols diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingDts1.types b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingDts1(target=es2015).types similarity index 100% rename from tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingDts1.types rename to tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingDts1(target=es2015).types diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingDts1(target=es5).errors.txt b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingDts1(target=es5).errors.txt new file mode 100644 index 0000000000000..273d72455a1ac --- /dev/null +++ b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingDts1(target=es5).errors.txt @@ -0,0 +1,11 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== server.ts (0 errors) ==== + class a { } + export default a; + +==== client.ts (0 errors) ==== + import defaultBinding, * as nameSpaceBinding from "./server"; + export var x = new defaultBinding(); \ No newline at end of file diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingDts1.js b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingDts1(target=es5).js similarity index 100% rename from tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingDts1.js rename to tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingDts1(target=es5).js diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingDts1(target=es5).symbols b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingDts1(target=es5).symbols new file mode 100644 index 0000000000000..6227c06b0ee62 --- /dev/null +++ b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingDts1(target=es5).symbols @@ -0,0 +1,18 @@ +//// [tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBindingDts1.ts] //// + +=== server.ts === +class a { } +>a : Symbol(a, Decl(server.ts, 0, 0)) + +export default a; +>a : Symbol(a, Decl(server.ts, 0, 0)) + +=== client.ts === +import defaultBinding, * as nameSpaceBinding from "./server"; +>defaultBinding : Symbol(defaultBinding, Decl(client.ts, 0, 6)) +>nameSpaceBinding : Symbol(nameSpaceBinding, Decl(client.ts, 0, 22)) + +export var x = new defaultBinding(); +>x : Symbol(x, Decl(client.ts, 1, 10)) +>defaultBinding : Symbol(defaultBinding, Decl(client.ts, 0, 6)) + diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingDts1(target=es5).types b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingDts1(target=es5).types new file mode 100644 index 0000000000000..0a5070ab4ec70 --- /dev/null +++ b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingDts1(target=es5).types @@ -0,0 +1,26 @@ +//// [tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBindingDts1.ts] //// + +=== server.ts === +class a { } +>a : a +> : ^ + +export default a; +>a : a +> : ^ + +=== client.ts === +import defaultBinding, * as nameSpaceBinding from "./server"; +>defaultBinding : typeof defaultBinding +> : ^^^^^^^^^^^^^^^^^^^^^ +>nameSpaceBinding : typeof nameSpaceBinding +> : ^^^^^^^^^^^^^^^^^^^^^^^ + +export var x = new defaultBinding(); +>x : defaultBinding +> : ^^^^^^^^^^^^^^ +>new defaultBinding() : defaultBinding +> : ^^^^^^^^^^^^^^ +>defaultBinding : typeof defaultBinding +> : ^^^^^^^^^^^^^^^^^^^^^ + diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5.errors.txt b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5.errors.txt rename to tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5(target=es2015).errors.txt diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5(target=es2015).js b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5(target=es2015).js new file mode 100644 index 0000000000000..bd4309d548f55 --- /dev/null +++ b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5(target=es2015).js @@ -0,0 +1,58 @@ +//// [tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5.ts] //// + +//// [es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0.ts] +export var a = 10; + +//// [es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_1.ts] +import defaultBinding, * as nameSpaceBinding from "./es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0"; +var x: number = nameSpaceBinding.a; + +//// [es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = 10; +//// [es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_1.js] +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +const nameSpaceBinding = __importStar(require("./es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0")); +var x = nameSpaceBinding.a; + + +//// [es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0.d.ts] +export declare var a: number; +//// [es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_1.d.ts] +export {}; diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5.symbols b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5.symbols rename to tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5(target=es2015).symbols diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5.types b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5(target=es2015).types similarity index 100% rename from tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5.types rename to tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5(target=es2015).types diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5(target=es5).errors.txt b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5(target=es5).errors.txt new file mode 100644 index 0000000000000..f3ffd2efcce38 --- /dev/null +++ b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5(target=es5).errors.txt @@ -0,0 +1,11 @@ +es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_1.ts(1,8): error TS1192: Module '"es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0"' has no default export. + + +==== es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0.ts (0 errors) ==== + export var a = 10; + +==== es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_1.ts (1 errors) ==== + import defaultBinding, * as nameSpaceBinding from "./es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0"; + ~~~~~~~~~~~~~~ +!!! error TS1192: Module '"es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0"' has no default export. + var x: number = nameSpaceBinding.a; \ No newline at end of file diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5.js b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5(target=es5).js similarity index 100% rename from tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5.js rename to tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5(target=es5).js diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5(target=es5).symbols b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5(target=es5).symbols new file mode 100644 index 0000000000000..302dcd297ec35 --- /dev/null +++ b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5(target=es5).symbols @@ -0,0 +1,17 @@ +//// [tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5.ts] //// + +=== es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0.ts === +export var a = 10; +>a : Symbol(a, Decl(es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0.ts, 0, 10)) + +=== es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_1.ts === +import defaultBinding, * as nameSpaceBinding from "./es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0"; +>defaultBinding : Symbol(defaultBinding, Decl(es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_1.ts, 0, 6)) +>nameSpaceBinding : Symbol(nameSpaceBinding, Decl(es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_1.ts, 0, 22)) + +var x: number = nameSpaceBinding.a; +>x : Symbol(x, Decl(es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_1.ts, 1, 3)) +>nameSpaceBinding.a : Symbol(nameSpaceBinding.a, Decl(es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0.ts, 0, 10)) +>nameSpaceBinding : Symbol(nameSpaceBinding, Decl(es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_1.ts, 0, 22)) +>a : Symbol(nameSpaceBinding.a, Decl(es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0.ts, 0, 10)) + diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5(target=es5).types b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5(target=es5).types new file mode 100644 index 0000000000000..d36a756f20dce --- /dev/null +++ b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5(target=es5).types @@ -0,0 +1,26 @@ +//// [tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5.ts] //// + +=== es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0.ts === +export var a = 10; +>a : number +> : ^^^^^^ +>10 : 10 +> : ^^ + +=== es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_1.ts === +import defaultBinding, * as nameSpaceBinding from "./es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0"; +>defaultBinding : any +> : ^^^ +>nameSpaceBinding : typeof nameSpaceBinding +> : ^^^^^^^^^^^^^^^^^^^^^^^ + +var x: number = nameSpaceBinding.a; +>x : number +> : ^^^^^^ +>nameSpaceBinding.a : number +> : ^^^^^^ +>nameSpaceBinding : typeof nameSpaceBinding +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>a : number +> : ^^^^^^ + diff --git a/tests/baselines/reference/es6ImportDefaultBindingInEs5.js b/tests/baselines/reference/es6ImportDefaultBindingInEs5(target=es2015).js similarity index 100% rename from tests/baselines/reference/es6ImportDefaultBindingInEs5.js rename to tests/baselines/reference/es6ImportDefaultBindingInEs5(target=es2015).js diff --git a/tests/baselines/reference/es6ImportDefaultBindingInEs5.symbols b/tests/baselines/reference/es6ImportDefaultBindingInEs5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es6ImportDefaultBindingInEs5.symbols rename to tests/baselines/reference/es6ImportDefaultBindingInEs5(target=es2015).symbols diff --git a/tests/baselines/reference/es6ImportDefaultBindingInEs5.types b/tests/baselines/reference/es6ImportDefaultBindingInEs5(target=es2015).types similarity index 100% rename from tests/baselines/reference/es6ImportDefaultBindingInEs5.types rename to tests/baselines/reference/es6ImportDefaultBindingInEs5(target=es2015).types diff --git a/tests/baselines/reference/es6ImportDefaultBindingInEs5(target=es5).js b/tests/baselines/reference/es6ImportDefaultBindingInEs5(target=es5).js new file mode 100644 index 0000000000000..a6175197d8eb4 --- /dev/null +++ b/tests/baselines/reference/es6ImportDefaultBindingInEs5(target=es5).js @@ -0,0 +1,23 @@ +//// [tests/cases/compiler/es6ImportDefaultBindingInEs5.ts] //// + +//// [es6ImportDefaultBindingInEs5_0.ts] +var a = 10; +export = a; + +//// [es6ImportDefaultBindingInEs5_1.ts] +import defaultBinding from "./es6ImportDefaultBindingInEs5_0"; + +//// [es6ImportDefaultBindingInEs5_0.js] +"use strict"; +var a = 10; +module.exports = a; +//// [es6ImportDefaultBindingInEs5_1.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + + +//// [es6ImportDefaultBindingInEs5_0.d.ts] +declare var a: number; +export = a; +//// [es6ImportDefaultBindingInEs5_1.d.ts] +export {}; diff --git a/tests/baselines/reference/es6ImportDefaultBindingInEs5(target=es5).symbols b/tests/baselines/reference/es6ImportDefaultBindingInEs5(target=es5).symbols new file mode 100644 index 0000000000000..481a417c59e79 --- /dev/null +++ b/tests/baselines/reference/es6ImportDefaultBindingInEs5(target=es5).symbols @@ -0,0 +1,13 @@ +//// [tests/cases/compiler/es6ImportDefaultBindingInEs5.ts] //// + +=== es6ImportDefaultBindingInEs5_0.ts === +var a = 10; +>a : Symbol(a, Decl(es6ImportDefaultBindingInEs5_0.ts, 0, 3)) + +export = a; +>a : Symbol(a, Decl(es6ImportDefaultBindingInEs5_0.ts, 0, 3)) + +=== es6ImportDefaultBindingInEs5_1.ts === +import defaultBinding from "./es6ImportDefaultBindingInEs5_0"; +>defaultBinding : Symbol(defaultBinding, Decl(es6ImportDefaultBindingInEs5_1.ts, 0, 6)) + diff --git a/tests/baselines/reference/es6ImportDefaultBindingInEs5(target=es5).types b/tests/baselines/reference/es6ImportDefaultBindingInEs5(target=es5).types new file mode 100644 index 0000000000000..cf3593391cda9 --- /dev/null +++ b/tests/baselines/reference/es6ImportDefaultBindingInEs5(target=es5).types @@ -0,0 +1,18 @@ +//// [tests/cases/compiler/es6ImportDefaultBindingInEs5.ts] //// + +=== es6ImportDefaultBindingInEs5_0.ts === +var a = 10; +>a : number +> : ^^^^^^ +>10 : 10 +> : ^^ + +export = a; +>a : number +> : ^^^^^^ + +=== es6ImportDefaultBindingInEs5_1.ts === +import defaultBinding from "./es6ImportDefaultBindingInEs5_0"; +>defaultBinding : number +> : ^^^^^^ + diff --git a/tests/baselines/reference/es6ImportDefaultBindingMergeErrors.errors.txt b/tests/baselines/reference/es6ImportDefaultBindingMergeErrors(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/es6ImportDefaultBindingMergeErrors.errors.txt rename to tests/baselines/reference/es6ImportDefaultBindingMergeErrors(target=es2015).errors.txt diff --git a/tests/baselines/reference/es6ImportDefaultBindingMergeErrors(target=es2015).js b/tests/baselines/reference/es6ImportDefaultBindingMergeErrors(target=es2015).js new file mode 100644 index 0000000000000..eeb5bbcd12e94 --- /dev/null +++ b/tests/baselines/reference/es6ImportDefaultBindingMergeErrors(target=es2015).js @@ -0,0 +1,31 @@ +//// [tests/cases/compiler/es6ImportDefaultBindingMergeErrors.ts] //// + +//// [es6ImportDefaultBindingMergeErrors_0.ts] +var a = 10; +export default a; + +//// [es6ImportDefaultBindingMergeErrors_1.ts] +import defaultBinding from "./es6ImportDefaultBindingMergeErrors_0"; +interface defaultBinding { // This is ok +} +var x = defaultBinding; +import defaultBinding2 from "./es6ImportDefaultBindingMergeErrors_0"; // Should be error +var defaultBinding2 = "hello world"; +import defaultBinding3 from "./es6ImportDefaultBindingMergeErrors_0"; // Should be error +import defaultBinding3 from "./es6ImportDefaultBindingMergeErrors_0"; // SHould be error + + +//// [es6ImportDefaultBindingMergeErrors_0.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var a = 10; +exports.default = a; +//// [es6ImportDefaultBindingMergeErrors_1.js] +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const es6ImportDefaultBindingMergeErrors_0_1 = __importDefault(require("./es6ImportDefaultBindingMergeErrors_0")); +var x = es6ImportDefaultBindingMergeErrors_0_1.default; +var defaultBinding2 = "hello world"; diff --git a/tests/baselines/reference/es6ImportDefaultBindingMergeErrors.symbols b/tests/baselines/reference/es6ImportDefaultBindingMergeErrors(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es6ImportDefaultBindingMergeErrors.symbols rename to tests/baselines/reference/es6ImportDefaultBindingMergeErrors(target=es2015).symbols diff --git a/tests/baselines/reference/es6ImportDefaultBindingMergeErrors.types b/tests/baselines/reference/es6ImportDefaultBindingMergeErrors(target=es2015).types similarity index 100% rename from tests/baselines/reference/es6ImportDefaultBindingMergeErrors.types rename to tests/baselines/reference/es6ImportDefaultBindingMergeErrors(target=es2015).types diff --git a/tests/baselines/reference/es6ImportDefaultBindingMergeErrors(target=es5).errors.txt b/tests/baselines/reference/es6ImportDefaultBindingMergeErrors(target=es5).errors.txt new file mode 100644 index 0000000000000..45134d3cdb552 --- /dev/null +++ b/tests/baselines/reference/es6ImportDefaultBindingMergeErrors(target=es5).errors.txt @@ -0,0 +1,25 @@ +es6ImportDefaultBindingMergeErrors_1.ts(5,8): error TS2440: Import declaration conflicts with local declaration of 'defaultBinding2'. +es6ImportDefaultBindingMergeErrors_1.ts(7,8): error TS2300: Duplicate identifier 'defaultBinding3'. +es6ImportDefaultBindingMergeErrors_1.ts(8,8): error TS2300: Duplicate identifier 'defaultBinding3'. + + +==== es6ImportDefaultBindingMergeErrors_0.ts (0 errors) ==== + var a = 10; + export default a; + +==== es6ImportDefaultBindingMergeErrors_1.ts (3 errors) ==== + import defaultBinding from "./es6ImportDefaultBindingMergeErrors_0"; + interface defaultBinding { // This is ok + } + var x = defaultBinding; + import defaultBinding2 from "./es6ImportDefaultBindingMergeErrors_0"; // Should be error + ~~~~~~~~~~~~~~~ +!!! error TS2440: Import declaration conflicts with local declaration of 'defaultBinding2'. + var defaultBinding2 = "hello world"; + import defaultBinding3 from "./es6ImportDefaultBindingMergeErrors_0"; // Should be error + ~~~~~~~~~~~~~~~ +!!! error TS2300: Duplicate identifier 'defaultBinding3'. + import defaultBinding3 from "./es6ImportDefaultBindingMergeErrors_0"; // SHould be error + ~~~~~~~~~~~~~~~ +!!! error TS2300: Duplicate identifier 'defaultBinding3'. + \ No newline at end of file diff --git a/tests/baselines/reference/es6ImportDefaultBindingMergeErrors.js b/tests/baselines/reference/es6ImportDefaultBindingMergeErrors(target=es5).js similarity index 100% rename from tests/baselines/reference/es6ImportDefaultBindingMergeErrors.js rename to tests/baselines/reference/es6ImportDefaultBindingMergeErrors(target=es5).js diff --git a/tests/baselines/reference/es6ImportDefaultBindingMergeErrors(target=es5).symbols b/tests/baselines/reference/es6ImportDefaultBindingMergeErrors(target=es5).symbols new file mode 100644 index 0000000000000..d2fdf2bd8c3fa --- /dev/null +++ b/tests/baselines/reference/es6ImportDefaultBindingMergeErrors(target=es5).symbols @@ -0,0 +1,32 @@ +//// [tests/cases/compiler/es6ImportDefaultBindingMergeErrors.ts] //// + +=== es6ImportDefaultBindingMergeErrors_0.ts === +var a = 10; +>a : Symbol(a, Decl(es6ImportDefaultBindingMergeErrors_0.ts, 0, 3)) + +export default a; +>a : Symbol(a, Decl(es6ImportDefaultBindingMergeErrors_0.ts, 0, 3)) + +=== es6ImportDefaultBindingMergeErrors_1.ts === +import defaultBinding from "./es6ImportDefaultBindingMergeErrors_0"; +>defaultBinding : Symbol(defaultBinding, Decl(es6ImportDefaultBindingMergeErrors_1.ts, 0, 6), Decl(es6ImportDefaultBindingMergeErrors_1.ts, 0, 68)) + +interface defaultBinding { // This is ok +>defaultBinding : Symbol(defaultBinding, Decl(es6ImportDefaultBindingMergeErrors_1.ts, 0, 6), Decl(es6ImportDefaultBindingMergeErrors_1.ts, 0, 68)) +} +var x = defaultBinding; +>x : Symbol(x, Decl(es6ImportDefaultBindingMergeErrors_1.ts, 3, 3)) +>defaultBinding : Symbol(defaultBinding, Decl(es6ImportDefaultBindingMergeErrors_1.ts, 0, 6), Decl(es6ImportDefaultBindingMergeErrors_1.ts, 0, 68)) + +import defaultBinding2 from "./es6ImportDefaultBindingMergeErrors_0"; // Should be error +>defaultBinding2 : Symbol(defaultBinding2, Decl(es6ImportDefaultBindingMergeErrors_1.ts, 4, 6), Decl(es6ImportDefaultBindingMergeErrors_1.ts, 5, 3)) + +var defaultBinding2 = "hello world"; +>defaultBinding2 : Symbol(defaultBinding2, Decl(es6ImportDefaultBindingMergeErrors_1.ts, 4, 6), Decl(es6ImportDefaultBindingMergeErrors_1.ts, 5, 3)) + +import defaultBinding3 from "./es6ImportDefaultBindingMergeErrors_0"; // Should be error +>defaultBinding3 : Symbol(defaultBinding3, Decl(es6ImportDefaultBindingMergeErrors_1.ts, 6, 6)) + +import defaultBinding3 from "./es6ImportDefaultBindingMergeErrors_0"; // SHould be error +>defaultBinding3 : Symbol(defaultBinding3, Decl(es6ImportDefaultBindingMergeErrors_1.ts, 7, 6)) + diff --git a/tests/baselines/reference/es6ImportDefaultBindingMergeErrors(target=es5).types b/tests/baselines/reference/es6ImportDefaultBindingMergeErrors(target=es5).types new file mode 100644 index 0000000000000..a2a9aa87dc8c2 --- /dev/null +++ b/tests/baselines/reference/es6ImportDefaultBindingMergeErrors(target=es5).types @@ -0,0 +1,44 @@ +//// [tests/cases/compiler/es6ImportDefaultBindingMergeErrors.ts] //// + +=== es6ImportDefaultBindingMergeErrors_0.ts === +var a = 10; +>a : number +> : ^^^^^^ +>10 : 10 +> : ^^ + +export default a; +>a : number +> : ^^^^^^ + +=== es6ImportDefaultBindingMergeErrors_1.ts === +import defaultBinding from "./es6ImportDefaultBindingMergeErrors_0"; +>defaultBinding : number +> : ^^^^^^ + +interface defaultBinding { // This is ok +} +var x = defaultBinding; +>x : number +> : ^^^^^^ +>defaultBinding : number +> : ^^^^^^ + +import defaultBinding2 from "./es6ImportDefaultBindingMergeErrors_0"; // Should be error +>defaultBinding2 : string +> : ^^^^^^ + +var defaultBinding2 = "hello world"; +>defaultBinding2 : string +> : ^^^^^^ +>"hello world" : "hello world" +> : ^^^^^^^^^^^^^ + +import defaultBinding3 from "./es6ImportDefaultBindingMergeErrors_0"; // Should be error +>defaultBinding3 : number +> : ^^^^^^ + +import defaultBinding3 from "./es6ImportDefaultBindingMergeErrors_0"; // SHould be error +>defaultBinding3 : number +> : ^^^^^^ + diff --git a/tests/baselines/reference/es6ImportDefaultBindingWithExport.errors.txt b/tests/baselines/reference/es6ImportDefaultBindingWithExport(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/es6ImportDefaultBindingWithExport.errors.txt rename to tests/baselines/reference/es6ImportDefaultBindingWithExport(target=es2015).errors.txt diff --git a/tests/baselines/reference/es6ImportDefaultBindingWithExport(target=es2015).js b/tests/baselines/reference/es6ImportDefaultBindingWithExport(target=es2015).js new file mode 100644 index 0000000000000..0eabd86f4ecfb --- /dev/null +++ b/tests/baselines/reference/es6ImportDefaultBindingWithExport(target=es2015).js @@ -0,0 +1,32 @@ +//// [tests/cases/compiler/es6ImportDefaultBindingWithExport.ts] //// + +//// [server.ts] +var a = 10; +export default a; + +//// [client.ts] +export import defaultBinding from "./server"; +export var x = defaultBinding; +export import defaultBinding2 from "./server"; // non referenced + +//// [server.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var a = 10; +exports.default = a; +//// [client.js] +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.x = void 0; +const server_1 = __importDefault(require("./server")); +exports.x = server_1.default; + + +//// [server.d.ts] +declare var a: number; +export default a; +//// [client.d.ts] +export declare var x: number; diff --git a/tests/baselines/reference/es6ImportDefaultBindingWithExport.symbols b/tests/baselines/reference/es6ImportDefaultBindingWithExport(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es6ImportDefaultBindingWithExport.symbols rename to tests/baselines/reference/es6ImportDefaultBindingWithExport(target=es2015).symbols diff --git a/tests/baselines/reference/es6ImportDefaultBindingWithExport.types b/tests/baselines/reference/es6ImportDefaultBindingWithExport(target=es2015).types similarity index 100% rename from tests/baselines/reference/es6ImportDefaultBindingWithExport.types rename to tests/baselines/reference/es6ImportDefaultBindingWithExport(target=es2015).types diff --git a/tests/baselines/reference/es6ImportDefaultBindingWithExport(target=es5).errors.txt b/tests/baselines/reference/es6ImportDefaultBindingWithExport(target=es5).errors.txt new file mode 100644 index 0000000000000..de33de8cdad2c --- /dev/null +++ b/tests/baselines/reference/es6ImportDefaultBindingWithExport(target=es5).errors.txt @@ -0,0 +1,16 @@ +client.ts(1,1): error TS1191: An import declaration cannot have modifiers. +client.ts(3,1): error TS1191: An import declaration cannot have modifiers. + + +==== server.ts (0 errors) ==== + var a = 10; + export default a; + +==== client.ts (2 errors) ==== + export import defaultBinding from "./server"; + ~~~~~~ +!!! error TS1191: An import declaration cannot have modifiers. + export var x = defaultBinding; + export import defaultBinding2 from "./server"; // non referenced + ~~~~~~ +!!! error TS1191: An import declaration cannot have modifiers. \ No newline at end of file diff --git a/tests/baselines/reference/es6ImportDefaultBindingWithExport.js b/tests/baselines/reference/es6ImportDefaultBindingWithExport(target=es5).js similarity index 100% rename from tests/baselines/reference/es6ImportDefaultBindingWithExport.js rename to tests/baselines/reference/es6ImportDefaultBindingWithExport(target=es5).js diff --git a/tests/baselines/reference/es6ImportDefaultBindingWithExport(target=es5).symbols b/tests/baselines/reference/es6ImportDefaultBindingWithExport(target=es5).symbols new file mode 100644 index 0000000000000..6090e8d56e169 --- /dev/null +++ b/tests/baselines/reference/es6ImportDefaultBindingWithExport(target=es5).symbols @@ -0,0 +1,20 @@ +//// [tests/cases/compiler/es6ImportDefaultBindingWithExport.ts] //// + +=== server.ts === +var a = 10; +>a : Symbol(a, Decl(server.ts, 0, 3)) + +export default a; +>a : Symbol(a, Decl(server.ts, 0, 3)) + +=== client.ts === +export import defaultBinding from "./server"; +>defaultBinding : Symbol(defaultBinding, Decl(client.ts, 0, 13)) + +export var x = defaultBinding; +>x : Symbol(x, Decl(client.ts, 1, 10)) +>defaultBinding : Symbol(defaultBinding, Decl(client.ts, 0, 13)) + +export import defaultBinding2 from "./server"; // non referenced +>defaultBinding2 : Symbol(defaultBinding2, Decl(client.ts, 2, 13)) + diff --git a/tests/baselines/reference/es6ImportDefaultBindingWithExport(target=es5).types b/tests/baselines/reference/es6ImportDefaultBindingWithExport(target=es5).types new file mode 100644 index 0000000000000..5d4a3cab7045c --- /dev/null +++ b/tests/baselines/reference/es6ImportDefaultBindingWithExport(target=es5).types @@ -0,0 +1,28 @@ +//// [tests/cases/compiler/es6ImportDefaultBindingWithExport.ts] //// + +=== server.ts === +var a = 10; +>a : number +> : ^^^^^^ +>10 : 10 +> : ^^ + +export default a; +>a : number +> : ^^^^^^ + +=== client.ts === +export import defaultBinding from "./server"; +>defaultBinding : number +> : ^^^^^^ + +export var x = defaultBinding; +>x : number +> : ^^^^^^ +>defaultBinding : number +> : ^^^^^^ + +export import defaultBinding2 from "./server"; // non referenced +>defaultBinding2 : number +> : ^^^^^^ + diff --git a/tests/baselines/reference/es6ImportNameSpaceImportInEs5(target=es2015).js b/tests/baselines/reference/es6ImportNameSpaceImportInEs5(target=es2015).js new file mode 100644 index 0000000000000..dff81d3ee38bf --- /dev/null +++ b/tests/baselines/reference/es6ImportNameSpaceImportInEs5(target=es2015).js @@ -0,0 +1,60 @@ +//// [tests/cases/compiler/es6ImportNameSpaceImportInEs5.ts] //// + +//// [es6ImportNameSpaceImportInEs5_0.ts] +export var a = 10; + +//// [es6ImportNameSpaceImportInEs5_1.ts] +import * as nameSpaceBinding from "./es6ImportNameSpaceImportInEs5_0"; +var x = nameSpaceBinding.a; +import * as nameSpaceBinding2 from "./es6ImportNameSpaceImportInEs5_0"; // elide this + + +//// [es6ImportNameSpaceImportInEs5_0.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = 10; +//// [es6ImportNameSpaceImportInEs5_1.js] +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +const nameSpaceBinding = __importStar(require("./es6ImportNameSpaceImportInEs5_0")); +var x = nameSpaceBinding.a; + + +//// [es6ImportNameSpaceImportInEs5_0.d.ts] +export declare var a: number; +//// [es6ImportNameSpaceImportInEs5_1.d.ts] +export {}; diff --git a/tests/baselines/reference/es6ImportNameSpaceImportInEs5.symbols b/tests/baselines/reference/es6ImportNameSpaceImportInEs5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es6ImportNameSpaceImportInEs5.symbols rename to tests/baselines/reference/es6ImportNameSpaceImportInEs5(target=es2015).symbols diff --git a/tests/baselines/reference/es6ImportNameSpaceImportInEs5.types b/tests/baselines/reference/es6ImportNameSpaceImportInEs5(target=es2015).types similarity index 100% rename from tests/baselines/reference/es6ImportNameSpaceImportInEs5.types rename to tests/baselines/reference/es6ImportNameSpaceImportInEs5(target=es2015).types diff --git a/tests/baselines/reference/es6ImportNameSpaceImportInEs5.js b/tests/baselines/reference/es6ImportNameSpaceImportInEs5(target=es5).js similarity index 100% rename from tests/baselines/reference/es6ImportNameSpaceImportInEs5.js rename to tests/baselines/reference/es6ImportNameSpaceImportInEs5(target=es5).js diff --git a/tests/baselines/reference/es6ImportNameSpaceImportInEs5(target=es5).symbols b/tests/baselines/reference/es6ImportNameSpaceImportInEs5(target=es5).symbols new file mode 100644 index 0000000000000..b994759362376 --- /dev/null +++ b/tests/baselines/reference/es6ImportNameSpaceImportInEs5(target=es5).symbols @@ -0,0 +1,19 @@ +//// [tests/cases/compiler/es6ImportNameSpaceImportInEs5.ts] //// + +=== es6ImportNameSpaceImportInEs5_0.ts === +export var a = 10; +>a : Symbol(a, Decl(es6ImportNameSpaceImportInEs5_0.ts, 0, 10)) + +=== es6ImportNameSpaceImportInEs5_1.ts === +import * as nameSpaceBinding from "./es6ImportNameSpaceImportInEs5_0"; +>nameSpaceBinding : Symbol(nameSpaceBinding, Decl(es6ImportNameSpaceImportInEs5_1.ts, 0, 6)) + +var x = nameSpaceBinding.a; +>x : Symbol(x, Decl(es6ImportNameSpaceImportInEs5_1.ts, 1, 3)) +>nameSpaceBinding.a : Symbol(nameSpaceBinding.a, Decl(es6ImportNameSpaceImportInEs5_0.ts, 0, 10)) +>nameSpaceBinding : Symbol(nameSpaceBinding, Decl(es6ImportNameSpaceImportInEs5_1.ts, 0, 6)) +>a : Symbol(nameSpaceBinding.a, Decl(es6ImportNameSpaceImportInEs5_0.ts, 0, 10)) + +import * as nameSpaceBinding2 from "./es6ImportNameSpaceImportInEs5_0"; // elide this +>nameSpaceBinding2 : Symbol(nameSpaceBinding2, Decl(es6ImportNameSpaceImportInEs5_1.ts, 2, 6)) + diff --git a/tests/baselines/reference/es6ImportNameSpaceImportInEs5(target=es5).types b/tests/baselines/reference/es6ImportNameSpaceImportInEs5(target=es5).types new file mode 100644 index 0000000000000..86189309c3152 --- /dev/null +++ b/tests/baselines/reference/es6ImportNameSpaceImportInEs5(target=es5).types @@ -0,0 +1,28 @@ +//// [tests/cases/compiler/es6ImportNameSpaceImportInEs5.ts] //// + +=== es6ImportNameSpaceImportInEs5_0.ts === +export var a = 10; +>a : number +> : ^^^^^^ +>10 : 10 +> : ^^ + +=== es6ImportNameSpaceImportInEs5_1.ts === +import * as nameSpaceBinding from "./es6ImportNameSpaceImportInEs5_0"; +>nameSpaceBinding : typeof nameSpaceBinding +> : ^^^^^^^^^^^^^^^^^^^^^^^ + +var x = nameSpaceBinding.a; +>x : number +> : ^^^^^^ +>nameSpaceBinding.a : number +> : ^^^^^^ +>nameSpaceBinding : typeof nameSpaceBinding +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>a : number +> : ^^^^^^ + +import * as nameSpaceBinding2 from "./es6ImportNameSpaceImportInEs5_0"; // elide this +>nameSpaceBinding2 : typeof nameSpaceBinding +> : ^^^^^^^^^^^^^^^^^^^^^^^ + diff --git a/tests/baselines/reference/es6ImportNameSpaceImportMergeErrors.errors.txt b/tests/baselines/reference/es6ImportNameSpaceImportMergeErrors(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/es6ImportNameSpaceImportMergeErrors.errors.txt rename to tests/baselines/reference/es6ImportNameSpaceImportMergeErrors(target=es2015).errors.txt diff --git a/tests/baselines/reference/es6ImportNameSpaceImportMergeErrors.js b/tests/baselines/reference/es6ImportNameSpaceImportMergeErrors(target=es2015).js similarity index 100% rename from tests/baselines/reference/es6ImportNameSpaceImportMergeErrors.js rename to tests/baselines/reference/es6ImportNameSpaceImportMergeErrors(target=es2015).js diff --git a/tests/baselines/reference/es6ImportNameSpaceImportMergeErrors.symbols b/tests/baselines/reference/es6ImportNameSpaceImportMergeErrors(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es6ImportNameSpaceImportMergeErrors.symbols rename to tests/baselines/reference/es6ImportNameSpaceImportMergeErrors(target=es2015).symbols diff --git a/tests/baselines/reference/es6ImportNameSpaceImportMergeErrors.types b/tests/baselines/reference/es6ImportNameSpaceImportMergeErrors(target=es2015).types similarity index 100% rename from tests/baselines/reference/es6ImportNameSpaceImportMergeErrors.types rename to tests/baselines/reference/es6ImportNameSpaceImportMergeErrors(target=es2015).types diff --git a/tests/baselines/reference/es6ImportNameSpaceImportMergeErrors(target=es5).errors.txt b/tests/baselines/reference/es6ImportNameSpaceImportMergeErrors(target=es5).errors.txt new file mode 100644 index 0000000000000..f0993ca019c1c --- /dev/null +++ b/tests/baselines/reference/es6ImportNameSpaceImportMergeErrors(target=es5).errors.txt @@ -0,0 +1,24 @@ +es6ImportNameSpaceImportMergeErrors_1.ts(4,13): error TS2300: Duplicate identifier 'nameSpaceBinding1'. +es6ImportNameSpaceImportMergeErrors_1.ts(5,13): error TS2300: Duplicate identifier 'nameSpaceBinding1'. +es6ImportNameSpaceImportMergeErrors_1.ts(7,13): error TS2440: Import declaration conflicts with local declaration of 'nameSpaceBinding3'. + + +==== es6ImportNameSpaceImportMergeErrors_0.ts (0 errors) ==== + export var a = 10; + +==== es6ImportNameSpaceImportMergeErrors_1.ts (3 errors) ==== + import * as nameSpaceBinding from "./es6ImportNameSpaceImportMergeErrors_0"; + interface nameSpaceBinding { } // this should be ok + + import * as nameSpaceBinding1 from "./es6ImportNameSpaceImportMergeErrors_0"; // should be error + ~~~~~~~~~~~~~~~~~ +!!! error TS2300: Duplicate identifier 'nameSpaceBinding1'. + import * as nameSpaceBinding1 from "./es6ImportNameSpaceImportMergeErrors_0"; // should be error + ~~~~~~~~~~~~~~~~~ +!!! error TS2300: Duplicate identifier 'nameSpaceBinding1'. + + import * as nameSpaceBinding3 from "./es6ImportNameSpaceImportMergeErrors_0"; // should be error + ~~~~~~~~~~~~~~~~~ +!!! error TS2440: Import declaration conflicts with local declaration of 'nameSpaceBinding3'. + var nameSpaceBinding3 = 10; + \ No newline at end of file diff --git a/tests/baselines/reference/es6ImportNameSpaceImportMergeErrors(target=es5).js b/tests/baselines/reference/es6ImportNameSpaceImportMergeErrors(target=es5).js new file mode 100644 index 0000000000000..ef579d573fc58 --- /dev/null +++ b/tests/baselines/reference/es6ImportNameSpaceImportMergeErrors(target=es5).js @@ -0,0 +1,25 @@ +//// [tests/cases/compiler/es6ImportNameSpaceImportMergeErrors.ts] //// + +//// [es6ImportNameSpaceImportMergeErrors_0.ts] +export var a = 10; + +//// [es6ImportNameSpaceImportMergeErrors_1.ts] +import * as nameSpaceBinding from "./es6ImportNameSpaceImportMergeErrors_0"; +interface nameSpaceBinding { } // this should be ok + +import * as nameSpaceBinding1 from "./es6ImportNameSpaceImportMergeErrors_0"; // should be error +import * as nameSpaceBinding1 from "./es6ImportNameSpaceImportMergeErrors_0"; // should be error + +import * as nameSpaceBinding3 from "./es6ImportNameSpaceImportMergeErrors_0"; // should be error +var nameSpaceBinding3 = 10; + + +//// [es6ImportNameSpaceImportMergeErrors_0.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = 10; +//// [es6ImportNameSpaceImportMergeErrors_1.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var nameSpaceBinding3 = 10; diff --git a/tests/baselines/reference/es6ImportNameSpaceImportMergeErrors(target=es5).symbols b/tests/baselines/reference/es6ImportNameSpaceImportMergeErrors(target=es5).symbols new file mode 100644 index 0000000000000..c91521dae380f --- /dev/null +++ b/tests/baselines/reference/es6ImportNameSpaceImportMergeErrors(target=es5).symbols @@ -0,0 +1,25 @@ +//// [tests/cases/compiler/es6ImportNameSpaceImportMergeErrors.ts] //// + +=== es6ImportNameSpaceImportMergeErrors_0.ts === +export var a = 10; +>a : Symbol(a, Decl(es6ImportNameSpaceImportMergeErrors_0.ts, 0, 10)) + +=== es6ImportNameSpaceImportMergeErrors_1.ts === +import * as nameSpaceBinding from "./es6ImportNameSpaceImportMergeErrors_0"; +>nameSpaceBinding : Symbol(nameSpaceBinding, Decl(es6ImportNameSpaceImportMergeErrors_1.ts, 0, 6), Decl(es6ImportNameSpaceImportMergeErrors_1.ts, 0, 76)) + +interface nameSpaceBinding { } // this should be ok +>nameSpaceBinding : Symbol(nameSpaceBinding, Decl(es6ImportNameSpaceImportMergeErrors_1.ts, 0, 6), Decl(es6ImportNameSpaceImportMergeErrors_1.ts, 0, 76)) + +import * as nameSpaceBinding1 from "./es6ImportNameSpaceImportMergeErrors_0"; // should be error +>nameSpaceBinding1 : Symbol(nameSpaceBinding1, Decl(es6ImportNameSpaceImportMergeErrors_1.ts, 3, 6)) + +import * as nameSpaceBinding1 from "./es6ImportNameSpaceImportMergeErrors_0"; // should be error +>nameSpaceBinding1 : Symbol(nameSpaceBinding1, Decl(es6ImportNameSpaceImportMergeErrors_1.ts, 4, 6)) + +import * as nameSpaceBinding3 from "./es6ImportNameSpaceImportMergeErrors_0"; // should be error +>nameSpaceBinding3 : Symbol(nameSpaceBinding3, Decl(es6ImportNameSpaceImportMergeErrors_1.ts, 6, 6), Decl(es6ImportNameSpaceImportMergeErrors_1.ts, 7, 3)) + +var nameSpaceBinding3 = 10; +>nameSpaceBinding3 : Symbol(nameSpaceBinding3, Decl(es6ImportNameSpaceImportMergeErrors_1.ts, 6, 6), Decl(es6ImportNameSpaceImportMergeErrors_1.ts, 7, 3)) + diff --git a/tests/baselines/reference/es6ImportNameSpaceImportMergeErrors(target=es5).types b/tests/baselines/reference/es6ImportNameSpaceImportMergeErrors(target=es5).types new file mode 100644 index 0000000000000..295c0c9f2fa37 --- /dev/null +++ b/tests/baselines/reference/es6ImportNameSpaceImportMergeErrors(target=es5).types @@ -0,0 +1,34 @@ +//// [tests/cases/compiler/es6ImportNameSpaceImportMergeErrors.ts] //// + +=== es6ImportNameSpaceImportMergeErrors_0.ts === +export var a = 10; +>a : number +> : ^^^^^^ +>10 : 10 +> : ^^ + +=== es6ImportNameSpaceImportMergeErrors_1.ts === +import * as nameSpaceBinding from "./es6ImportNameSpaceImportMergeErrors_0"; +>nameSpaceBinding : typeof nameSpaceBinding +> : ^^^^^^^^^^^^^^^^^^^^^^^ + +interface nameSpaceBinding { } // this should be ok + +import * as nameSpaceBinding1 from "./es6ImportNameSpaceImportMergeErrors_0"; // should be error +>nameSpaceBinding1 : typeof nameSpaceBinding +> : ^^^^^^^^^^^^^^^^^^^^^^^ + +import * as nameSpaceBinding1 from "./es6ImportNameSpaceImportMergeErrors_0"; // should be error +>nameSpaceBinding1 : typeof nameSpaceBinding +> : ^^^^^^^^^^^^^^^^^^^^^^^ + +import * as nameSpaceBinding3 from "./es6ImportNameSpaceImportMergeErrors_0"; // should be error +>nameSpaceBinding3 : number +> : ^^^^^^ + +var nameSpaceBinding3 = 10; +>nameSpaceBinding3 : number +> : ^^^^^^ +>10 : 10 +> : ^^ + diff --git a/tests/baselines/reference/es6ImportNameSpaceImportNoNamedExports.js b/tests/baselines/reference/es6ImportNameSpaceImportNoNamedExports(target=es2015).js similarity index 100% rename from tests/baselines/reference/es6ImportNameSpaceImportNoNamedExports.js rename to tests/baselines/reference/es6ImportNameSpaceImportNoNamedExports(target=es2015).js diff --git a/tests/baselines/reference/es6ImportNameSpaceImportNoNamedExports.symbols b/tests/baselines/reference/es6ImportNameSpaceImportNoNamedExports(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es6ImportNameSpaceImportNoNamedExports.symbols rename to tests/baselines/reference/es6ImportNameSpaceImportNoNamedExports(target=es2015).symbols diff --git a/tests/baselines/reference/es6ImportNameSpaceImportNoNamedExports.types b/tests/baselines/reference/es6ImportNameSpaceImportNoNamedExports(target=es2015).types similarity index 100% rename from tests/baselines/reference/es6ImportNameSpaceImportNoNamedExports.types rename to tests/baselines/reference/es6ImportNameSpaceImportNoNamedExports(target=es2015).types diff --git a/tests/baselines/reference/es6ImportNameSpaceImportNoNamedExports(target=es5).js b/tests/baselines/reference/es6ImportNameSpaceImportNoNamedExports(target=es5).js new file mode 100644 index 0000000000000..760a4a9682818 --- /dev/null +++ b/tests/baselines/reference/es6ImportNameSpaceImportNoNamedExports(target=es5).js @@ -0,0 +1,16 @@ +//// [tests/cases/compiler/es6ImportNameSpaceImportNoNamedExports.ts] //// + +//// [es6ImportNameSpaceImportNoNamedExports_0.ts] +var a = 10; +export = a; + +//// [es6ImportNameSpaceImportNoNamedExports_1.ts] +import * as nameSpaceBinding from "./es6ImportNameSpaceImportNoNamedExports_0"; // error + +//// [es6ImportNameSpaceImportNoNamedExports_0.js] +"use strict"; +var a = 10; +module.exports = a; +//// [es6ImportNameSpaceImportNoNamedExports_1.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/tests/baselines/reference/es6ImportNameSpaceImportNoNamedExports(target=es5).symbols b/tests/baselines/reference/es6ImportNameSpaceImportNoNamedExports(target=es5).symbols new file mode 100644 index 0000000000000..f290da920b51d --- /dev/null +++ b/tests/baselines/reference/es6ImportNameSpaceImportNoNamedExports(target=es5).symbols @@ -0,0 +1,13 @@ +//// [tests/cases/compiler/es6ImportNameSpaceImportNoNamedExports.ts] //// + +=== es6ImportNameSpaceImportNoNamedExports_0.ts === +var a = 10; +>a : Symbol(a, Decl(es6ImportNameSpaceImportNoNamedExports_0.ts, 0, 3)) + +export = a; +>a : Symbol(a, Decl(es6ImportNameSpaceImportNoNamedExports_0.ts, 0, 3)) + +=== es6ImportNameSpaceImportNoNamedExports_1.ts === +import * as nameSpaceBinding from "./es6ImportNameSpaceImportNoNamedExports_0"; // error +>nameSpaceBinding : Symbol(nameSpaceBinding, Decl(es6ImportNameSpaceImportNoNamedExports_1.ts, 0, 6)) + diff --git a/tests/baselines/reference/es6ImportNameSpaceImportNoNamedExports(target=es5).types b/tests/baselines/reference/es6ImportNameSpaceImportNoNamedExports(target=es5).types new file mode 100644 index 0000000000000..3599420666e7e --- /dev/null +++ b/tests/baselines/reference/es6ImportNameSpaceImportNoNamedExports(target=es5).types @@ -0,0 +1,18 @@ +//// [tests/cases/compiler/es6ImportNameSpaceImportNoNamedExports.ts] //// + +=== es6ImportNameSpaceImportNoNamedExports_0.ts === +var a = 10; +>a : number +> : ^^^^^^ +>10 : 10 +> : ^^ + +export = a; +>a : number +> : ^^^^^^ + +=== es6ImportNameSpaceImportNoNamedExports_1.ts === +import * as nameSpaceBinding from "./es6ImportNameSpaceImportNoNamedExports_0"; // error +>nameSpaceBinding : number +> : ^^^^^^ + diff --git a/tests/baselines/reference/es6ImportNamedImportInEs5(target=es2015).js b/tests/baselines/reference/es6ImportNamedImportInEs5(target=es2015).js new file mode 100644 index 0000000000000..abad631c7543f --- /dev/null +++ b/tests/baselines/reference/es6ImportNamedImportInEs5(target=es2015).js @@ -0,0 +1,91 @@ +//// [tests/cases/compiler/es6ImportNamedImportInEs5.ts] //// + +//// [es6ImportNamedImportInEs5_0.ts] +export var a = 10; +export var x = a; +export var m = a; +export var a1 = 10; +export var x1 = 10; +export var z1 = 10; +export var z2 = 10; +export var aaaa = 10; + +//// [es6ImportNamedImportInEs5_1.ts] +import { } from "./es6ImportNamedImportInEs5_0"; +import { a } from "./es6ImportNamedImportInEs5_0"; +var xxxx = a; +import { a as b } from "./es6ImportNamedImportInEs5_0"; +var xxxx = b; +import { x, a as y } from "./es6ImportNamedImportInEs5_0"; +var xxxx = x; +var xxxx = y; +import { x as z, } from "./es6ImportNamedImportInEs5_0"; +var xxxx = z; +import { m, } from "./es6ImportNamedImportInEs5_0"; +var xxxx = m; +import { a1, x1 } from "./es6ImportNamedImportInEs5_0"; +var xxxx = a1; +var xxxx = x1; +import { a1 as a11, x1 as x11 } from "./es6ImportNamedImportInEs5_0"; +var xxxx = a11; +var xxxx = x11; +import { z1 } from "./es6ImportNamedImportInEs5_0"; +var z111 = z1; +import { z2 as z3 } from "./es6ImportNamedImportInEs5_0"; +var z2 = z3; // z2 shouldn't give redeclare error + +// These are elided +import { aaaa } from "./es6ImportNamedImportInEs5_0"; +// These are elided +import { aaaa as bbbb } from "./es6ImportNamedImportInEs5_0"; + + +//// [es6ImportNamedImportInEs5_0.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.aaaa = exports.z2 = exports.z1 = exports.x1 = exports.a1 = exports.m = exports.x = exports.a = void 0; +exports.a = 10; +exports.x = exports.a; +exports.m = exports.a; +exports.a1 = 10; +exports.x1 = 10; +exports.z1 = 10; +exports.z2 = 10; +exports.aaaa = 10; +//// [es6ImportNamedImportInEs5_1.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const es6ImportNamedImportInEs5_0_1 = require("./es6ImportNamedImportInEs5_0"); +var xxxx = es6ImportNamedImportInEs5_0_1.a; +const es6ImportNamedImportInEs5_0_2 = require("./es6ImportNamedImportInEs5_0"); +var xxxx = es6ImportNamedImportInEs5_0_2.a; +const es6ImportNamedImportInEs5_0_3 = require("./es6ImportNamedImportInEs5_0"); +var xxxx = es6ImportNamedImportInEs5_0_3.x; +var xxxx = es6ImportNamedImportInEs5_0_3.a; +const es6ImportNamedImportInEs5_0_4 = require("./es6ImportNamedImportInEs5_0"); +var xxxx = es6ImportNamedImportInEs5_0_4.x; +const es6ImportNamedImportInEs5_0_5 = require("./es6ImportNamedImportInEs5_0"); +var xxxx = es6ImportNamedImportInEs5_0_5.m; +const es6ImportNamedImportInEs5_0_6 = require("./es6ImportNamedImportInEs5_0"); +var xxxx = es6ImportNamedImportInEs5_0_6.a1; +var xxxx = es6ImportNamedImportInEs5_0_6.x1; +const es6ImportNamedImportInEs5_0_7 = require("./es6ImportNamedImportInEs5_0"); +var xxxx = es6ImportNamedImportInEs5_0_7.a1; +var xxxx = es6ImportNamedImportInEs5_0_7.x1; +const es6ImportNamedImportInEs5_0_8 = require("./es6ImportNamedImportInEs5_0"); +var z111 = es6ImportNamedImportInEs5_0_8.z1; +const es6ImportNamedImportInEs5_0_9 = require("./es6ImportNamedImportInEs5_0"); +var z2 = es6ImportNamedImportInEs5_0_9.z2; // z2 shouldn't give redeclare error + + +//// [es6ImportNamedImportInEs5_0.d.ts] +export declare var a: number; +export declare var x: number; +export declare var m: number; +export declare var a1: number; +export declare var x1: number; +export declare var z1: number; +export declare var z2: number; +export declare var aaaa: number; +//// [es6ImportNamedImportInEs5_1.d.ts] +export {}; diff --git a/tests/baselines/reference/es6ImportNamedImportInEs5.symbols b/tests/baselines/reference/es6ImportNamedImportInEs5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es6ImportNamedImportInEs5.symbols rename to tests/baselines/reference/es6ImportNamedImportInEs5(target=es2015).symbols diff --git a/tests/baselines/reference/es6ImportNamedImportInEs5.types b/tests/baselines/reference/es6ImportNamedImportInEs5(target=es2015).types similarity index 100% rename from tests/baselines/reference/es6ImportNamedImportInEs5.types rename to tests/baselines/reference/es6ImportNamedImportInEs5(target=es2015).types diff --git a/tests/baselines/reference/es6ImportNamedImportInEs5.js b/tests/baselines/reference/es6ImportNamedImportInEs5(target=es5).js similarity index 100% rename from tests/baselines/reference/es6ImportNamedImportInEs5.js rename to tests/baselines/reference/es6ImportNamedImportInEs5(target=es5).js diff --git a/tests/baselines/reference/es6ImportNamedImportInEs5(target=es5).symbols b/tests/baselines/reference/es6ImportNamedImportInEs5(target=es5).symbols new file mode 100644 index 0000000000000..10fa64e7d2b12 --- /dev/null +++ b/tests/baselines/reference/es6ImportNamedImportInEs5(target=es5).symbols @@ -0,0 +1,124 @@ +//// [tests/cases/compiler/es6ImportNamedImportInEs5.ts] //// + +=== es6ImportNamedImportInEs5_0.ts === +export var a = 10; +>a : Symbol(a, Decl(es6ImportNamedImportInEs5_0.ts, 0, 10)) + +export var x = a; +>x : Symbol(x, Decl(es6ImportNamedImportInEs5_0.ts, 1, 10)) +>a : Symbol(a, Decl(es6ImportNamedImportInEs5_0.ts, 0, 10)) + +export var m = a; +>m : Symbol(m, Decl(es6ImportNamedImportInEs5_0.ts, 2, 10)) +>a : Symbol(a, Decl(es6ImportNamedImportInEs5_0.ts, 0, 10)) + +export var a1 = 10; +>a1 : Symbol(a1, Decl(es6ImportNamedImportInEs5_0.ts, 3, 10)) + +export var x1 = 10; +>x1 : Symbol(x1, Decl(es6ImportNamedImportInEs5_0.ts, 4, 10)) + +export var z1 = 10; +>z1 : Symbol(z1, Decl(es6ImportNamedImportInEs5_0.ts, 5, 10)) + +export var z2 = 10; +>z2 : Symbol(z2, Decl(es6ImportNamedImportInEs5_0.ts, 6, 10)) + +export var aaaa = 10; +>aaaa : Symbol(aaaa, Decl(es6ImportNamedImportInEs5_0.ts, 7, 10)) + +=== es6ImportNamedImportInEs5_1.ts === +import { } from "./es6ImportNamedImportInEs5_0"; +import { a } from "./es6ImportNamedImportInEs5_0"; +>a : Symbol(a, Decl(es6ImportNamedImportInEs5_1.ts, 1, 8)) + +var xxxx = a; +>xxxx : Symbol(xxxx, Decl(es6ImportNamedImportInEs5_1.ts, 2, 3), Decl(es6ImportNamedImportInEs5_1.ts, 4, 3), Decl(es6ImportNamedImportInEs5_1.ts, 6, 3), Decl(es6ImportNamedImportInEs5_1.ts, 7, 3), Decl(es6ImportNamedImportInEs5_1.ts, 9, 3) ... and 5 more) +>a : Symbol(a, Decl(es6ImportNamedImportInEs5_1.ts, 1, 8)) + +import { a as b } from "./es6ImportNamedImportInEs5_0"; +>a : Symbol(a, Decl(es6ImportNamedImportInEs5_0.ts, 0, 10)) +>b : Symbol(b, Decl(es6ImportNamedImportInEs5_1.ts, 3, 8)) + +var xxxx = b; +>xxxx : Symbol(xxxx, Decl(es6ImportNamedImportInEs5_1.ts, 2, 3), Decl(es6ImportNamedImportInEs5_1.ts, 4, 3), Decl(es6ImportNamedImportInEs5_1.ts, 6, 3), Decl(es6ImportNamedImportInEs5_1.ts, 7, 3), Decl(es6ImportNamedImportInEs5_1.ts, 9, 3) ... and 5 more) +>b : Symbol(b, Decl(es6ImportNamedImportInEs5_1.ts, 3, 8)) + +import { x, a as y } from "./es6ImportNamedImportInEs5_0"; +>x : Symbol(x, Decl(es6ImportNamedImportInEs5_1.ts, 5, 8)) +>a : Symbol(a, Decl(es6ImportNamedImportInEs5_0.ts, 0, 10)) +>y : Symbol(y, Decl(es6ImportNamedImportInEs5_1.ts, 5, 11)) + +var xxxx = x; +>xxxx : Symbol(xxxx, Decl(es6ImportNamedImportInEs5_1.ts, 2, 3), Decl(es6ImportNamedImportInEs5_1.ts, 4, 3), Decl(es6ImportNamedImportInEs5_1.ts, 6, 3), Decl(es6ImportNamedImportInEs5_1.ts, 7, 3), Decl(es6ImportNamedImportInEs5_1.ts, 9, 3) ... and 5 more) +>x : Symbol(x, Decl(es6ImportNamedImportInEs5_1.ts, 5, 8)) + +var xxxx = y; +>xxxx : Symbol(xxxx, Decl(es6ImportNamedImportInEs5_1.ts, 2, 3), Decl(es6ImportNamedImportInEs5_1.ts, 4, 3), Decl(es6ImportNamedImportInEs5_1.ts, 6, 3), Decl(es6ImportNamedImportInEs5_1.ts, 7, 3), Decl(es6ImportNamedImportInEs5_1.ts, 9, 3) ... and 5 more) +>y : Symbol(y, Decl(es6ImportNamedImportInEs5_1.ts, 5, 11)) + +import { x as z, } from "./es6ImportNamedImportInEs5_0"; +>x : Symbol(x, Decl(es6ImportNamedImportInEs5_0.ts, 1, 10)) +>z : Symbol(z, Decl(es6ImportNamedImportInEs5_1.ts, 8, 8)) + +var xxxx = z; +>xxxx : Symbol(xxxx, Decl(es6ImportNamedImportInEs5_1.ts, 2, 3), Decl(es6ImportNamedImportInEs5_1.ts, 4, 3), Decl(es6ImportNamedImportInEs5_1.ts, 6, 3), Decl(es6ImportNamedImportInEs5_1.ts, 7, 3), Decl(es6ImportNamedImportInEs5_1.ts, 9, 3) ... and 5 more) +>z : Symbol(z, Decl(es6ImportNamedImportInEs5_1.ts, 8, 8)) + +import { m, } from "./es6ImportNamedImportInEs5_0"; +>m : Symbol(m, Decl(es6ImportNamedImportInEs5_1.ts, 10, 8)) + +var xxxx = m; +>xxxx : Symbol(xxxx, Decl(es6ImportNamedImportInEs5_1.ts, 2, 3), Decl(es6ImportNamedImportInEs5_1.ts, 4, 3), Decl(es6ImportNamedImportInEs5_1.ts, 6, 3), Decl(es6ImportNamedImportInEs5_1.ts, 7, 3), Decl(es6ImportNamedImportInEs5_1.ts, 9, 3) ... and 5 more) +>m : Symbol(m, Decl(es6ImportNamedImportInEs5_1.ts, 10, 8)) + +import { a1, x1 } from "./es6ImportNamedImportInEs5_0"; +>a1 : Symbol(a1, Decl(es6ImportNamedImportInEs5_1.ts, 12, 8)) +>x1 : Symbol(x1, Decl(es6ImportNamedImportInEs5_1.ts, 12, 12)) + +var xxxx = a1; +>xxxx : Symbol(xxxx, Decl(es6ImportNamedImportInEs5_1.ts, 2, 3), Decl(es6ImportNamedImportInEs5_1.ts, 4, 3), Decl(es6ImportNamedImportInEs5_1.ts, 6, 3), Decl(es6ImportNamedImportInEs5_1.ts, 7, 3), Decl(es6ImportNamedImportInEs5_1.ts, 9, 3) ... and 5 more) +>a1 : Symbol(a1, Decl(es6ImportNamedImportInEs5_1.ts, 12, 8)) + +var xxxx = x1; +>xxxx : Symbol(xxxx, Decl(es6ImportNamedImportInEs5_1.ts, 2, 3), Decl(es6ImportNamedImportInEs5_1.ts, 4, 3), Decl(es6ImportNamedImportInEs5_1.ts, 6, 3), Decl(es6ImportNamedImportInEs5_1.ts, 7, 3), Decl(es6ImportNamedImportInEs5_1.ts, 9, 3) ... and 5 more) +>x1 : Symbol(x1, Decl(es6ImportNamedImportInEs5_1.ts, 12, 12)) + +import { a1 as a11, x1 as x11 } from "./es6ImportNamedImportInEs5_0"; +>a1 : Symbol(a1, Decl(es6ImportNamedImportInEs5_0.ts, 3, 10)) +>a11 : Symbol(a11, Decl(es6ImportNamedImportInEs5_1.ts, 15, 8)) +>x1 : Symbol(x1, Decl(es6ImportNamedImportInEs5_0.ts, 4, 10)) +>x11 : Symbol(x11, Decl(es6ImportNamedImportInEs5_1.ts, 15, 19)) + +var xxxx = a11; +>xxxx : Symbol(xxxx, Decl(es6ImportNamedImportInEs5_1.ts, 2, 3), Decl(es6ImportNamedImportInEs5_1.ts, 4, 3), Decl(es6ImportNamedImportInEs5_1.ts, 6, 3), Decl(es6ImportNamedImportInEs5_1.ts, 7, 3), Decl(es6ImportNamedImportInEs5_1.ts, 9, 3) ... and 5 more) +>a11 : Symbol(a11, Decl(es6ImportNamedImportInEs5_1.ts, 15, 8)) + +var xxxx = x11; +>xxxx : Symbol(xxxx, Decl(es6ImportNamedImportInEs5_1.ts, 2, 3), Decl(es6ImportNamedImportInEs5_1.ts, 4, 3), Decl(es6ImportNamedImportInEs5_1.ts, 6, 3), Decl(es6ImportNamedImportInEs5_1.ts, 7, 3), Decl(es6ImportNamedImportInEs5_1.ts, 9, 3) ... and 5 more) +>x11 : Symbol(x11, Decl(es6ImportNamedImportInEs5_1.ts, 15, 19)) + +import { z1 } from "./es6ImportNamedImportInEs5_0"; +>z1 : Symbol(z1, Decl(es6ImportNamedImportInEs5_1.ts, 18, 8)) + +var z111 = z1; +>z111 : Symbol(z111, Decl(es6ImportNamedImportInEs5_1.ts, 19, 3)) +>z1 : Symbol(z1, Decl(es6ImportNamedImportInEs5_1.ts, 18, 8)) + +import { z2 as z3 } from "./es6ImportNamedImportInEs5_0"; +>z2 : Symbol(z3, Decl(es6ImportNamedImportInEs5_0.ts, 6, 10)) +>z3 : Symbol(z3, Decl(es6ImportNamedImportInEs5_1.ts, 20, 8)) + +var z2 = z3; // z2 shouldn't give redeclare error +>z2 : Symbol(z2, Decl(es6ImportNamedImportInEs5_1.ts, 21, 3)) +>z3 : Symbol(z3, Decl(es6ImportNamedImportInEs5_1.ts, 20, 8)) + +// These are elided +import { aaaa } from "./es6ImportNamedImportInEs5_0"; +>aaaa : Symbol(aaaa, Decl(es6ImportNamedImportInEs5_1.ts, 24, 8)) + +// These are elided +import { aaaa as bbbb } from "./es6ImportNamedImportInEs5_0"; +>aaaa : Symbol(aaaa, Decl(es6ImportNamedImportInEs5_0.ts, 7, 10)) +>bbbb : Symbol(bbbb, Decl(es6ImportNamedImportInEs5_1.ts, 26, 8)) + diff --git a/tests/baselines/reference/es6ImportNamedImportInEs5(target=es5).types b/tests/baselines/reference/es6ImportNamedImportInEs5(target=es5).types new file mode 100644 index 0000000000000..f722374b51e5a --- /dev/null +++ b/tests/baselines/reference/es6ImportNamedImportInEs5(target=es5).types @@ -0,0 +1,191 @@ +//// [tests/cases/compiler/es6ImportNamedImportInEs5.ts] //// + +=== es6ImportNamedImportInEs5_0.ts === +export var a = 10; +>a : number +> : ^^^^^^ +>10 : 10 +> : ^^ + +export var x = a; +>x : number +> : ^^^^^^ +>a : number +> : ^^^^^^ + +export var m = a; +>m : number +> : ^^^^^^ +>a : number +> : ^^^^^^ + +export var a1 = 10; +>a1 : number +> : ^^^^^^ +>10 : 10 +> : ^^ + +export var x1 = 10; +>x1 : number +> : ^^^^^^ +>10 : 10 +> : ^^ + +export var z1 = 10; +>z1 : number +> : ^^^^^^ +>10 : 10 +> : ^^ + +export var z2 = 10; +>z2 : number +> : ^^^^^^ +>10 : 10 +> : ^^ + +export var aaaa = 10; +>aaaa : number +> : ^^^^^^ +>10 : 10 +> : ^^ + +=== es6ImportNamedImportInEs5_1.ts === +import { } from "./es6ImportNamedImportInEs5_0"; +import { a } from "./es6ImportNamedImportInEs5_0"; +>a : number +> : ^^^^^^ + +var xxxx = a; +>xxxx : number +> : ^^^^^^ +>a : number +> : ^^^^^^ + +import { a as b } from "./es6ImportNamedImportInEs5_0"; +>a : number +> : ^^^^^^ +>b : number +> : ^^^^^^ + +var xxxx = b; +>xxxx : number +> : ^^^^^^ +>b : number +> : ^^^^^^ + +import { x, a as y } from "./es6ImportNamedImportInEs5_0"; +>x : number +> : ^^^^^^ +>a : number +> : ^^^^^^ +>y : number +> : ^^^^^^ + +var xxxx = x; +>xxxx : number +> : ^^^^^^ +>x : number +> : ^^^^^^ + +var xxxx = y; +>xxxx : number +> : ^^^^^^ +>y : number +> : ^^^^^^ + +import { x as z, } from "./es6ImportNamedImportInEs5_0"; +>x : number +> : ^^^^^^ +>z : number +> : ^^^^^^ + +var xxxx = z; +>xxxx : number +> : ^^^^^^ +>z : number +> : ^^^^^^ + +import { m, } from "./es6ImportNamedImportInEs5_0"; +>m : number +> : ^^^^^^ + +var xxxx = m; +>xxxx : number +> : ^^^^^^ +>m : number +> : ^^^^^^ + +import { a1, x1 } from "./es6ImportNamedImportInEs5_0"; +>a1 : number +> : ^^^^^^ +>x1 : number +> : ^^^^^^ + +var xxxx = a1; +>xxxx : number +> : ^^^^^^ +>a1 : number +> : ^^^^^^ + +var xxxx = x1; +>xxxx : number +> : ^^^^^^ +>x1 : number +> : ^^^^^^ + +import { a1 as a11, x1 as x11 } from "./es6ImportNamedImportInEs5_0"; +>a1 : number +> : ^^^^^^ +>a11 : number +> : ^^^^^^ +>x1 : number +> : ^^^^^^ +>x11 : number +> : ^^^^^^ + +var xxxx = a11; +>xxxx : number +> : ^^^^^^ +>a11 : number +> : ^^^^^^ + +var xxxx = x11; +>xxxx : number +> : ^^^^^^ +>x11 : number +> : ^^^^^^ + +import { z1 } from "./es6ImportNamedImportInEs5_0"; +>z1 : number +> : ^^^^^^ + +var z111 = z1; +>z111 : number +> : ^^^^^^ +>z1 : number +> : ^^^^^^ + +import { z2 as z3 } from "./es6ImportNamedImportInEs5_0"; +>z2 : number +> : ^^^^^^ +>z3 : number +> : ^^^^^^ + +var z2 = z3; // z2 shouldn't give redeclare error +>z2 : number +> : ^^^^^^ +>z3 : number +> : ^^^^^^ + +// These are elided +import { aaaa } from "./es6ImportNamedImportInEs5_0"; +>aaaa : number +> : ^^^^^^ + +// These are elided +import { aaaa as bbbb } from "./es6ImportNamedImportInEs5_0"; +>aaaa : number +> : ^^^^^^ +>bbbb : number +> : ^^^^^^ + diff --git a/tests/baselines/reference/es6ImportNamedImportNoNamedExports.errors.txt b/tests/baselines/reference/es6ImportNamedImportNoNamedExports(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/es6ImportNamedImportNoNamedExports.errors.txt rename to tests/baselines/reference/es6ImportNamedImportNoNamedExports(target=es2015).errors.txt diff --git a/tests/baselines/reference/es6ImportNamedImportNoNamedExports.js b/tests/baselines/reference/es6ImportNamedImportNoNamedExports(target=es2015).js similarity index 100% rename from tests/baselines/reference/es6ImportNamedImportNoNamedExports.js rename to tests/baselines/reference/es6ImportNamedImportNoNamedExports(target=es2015).js diff --git a/tests/baselines/reference/es6ImportNamedImportNoNamedExports.symbols b/tests/baselines/reference/es6ImportNamedImportNoNamedExports(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es6ImportNamedImportNoNamedExports.symbols rename to tests/baselines/reference/es6ImportNamedImportNoNamedExports(target=es2015).symbols diff --git a/tests/baselines/reference/es6ImportNamedImportNoNamedExports.types b/tests/baselines/reference/es6ImportNamedImportNoNamedExports(target=es2015).types similarity index 100% rename from tests/baselines/reference/es6ImportNamedImportNoNamedExports.types rename to tests/baselines/reference/es6ImportNamedImportNoNamedExports(target=es2015).types diff --git a/tests/baselines/reference/es6ImportNamedImportNoNamedExports(target=es5).errors.txt b/tests/baselines/reference/es6ImportNamedImportNoNamedExports(target=es5).errors.txt new file mode 100644 index 0000000000000..da972d070ea8b --- /dev/null +++ b/tests/baselines/reference/es6ImportNamedImportNoNamedExports(target=es5).errors.txt @@ -0,0 +1,15 @@ +es6ImportNamedImportNoNamedExports_1.ts(1,10): error TS2616: 'a' can only be imported by using 'import a = require("./es6ImportNamedImportNoNamedExports_0")' or a default import. +es6ImportNamedImportNoNamedExports_1.ts(2,10): error TS2616: 'a' can only be imported by using 'import a = require("./es6ImportNamedImportNoNamedExports_0")' or a default import. + + +==== es6ImportNamedImportNoNamedExports_0.ts (0 errors) ==== + var a = 10; + export = a; + +==== es6ImportNamedImportNoNamedExports_1.ts (2 errors) ==== + import { a } from "./es6ImportNamedImportNoNamedExports_0"; + ~ +!!! error TS2616: 'a' can only be imported by using 'import a = require("./es6ImportNamedImportNoNamedExports_0")' or a default import. + import { a as x } from "./es6ImportNamedImportNoNamedExports_0"; + ~ +!!! error TS2616: 'a' can only be imported by using 'import a = require("./es6ImportNamedImportNoNamedExports_0")' or a default import. \ No newline at end of file diff --git a/tests/baselines/reference/es6ImportNamedImportNoNamedExports(target=es5).js b/tests/baselines/reference/es6ImportNamedImportNoNamedExports(target=es5).js new file mode 100644 index 0000000000000..ea0d398355ec8 --- /dev/null +++ b/tests/baselines/reference/es6ImportNamedImportNoNamedExports(target=es5).js @@ -0,0 +1,17 @@ +//// [tests/cases/compiler/es6ImportNamedImportNoNamedExports.ts] //// + +//// [es6ImportNamedImportNoNamedExports_0.ts] +var a = 10; +export = a; + +//// [es6ImportNamedImportNoNamedExports_1.ts] +import { a } from "./es6ImportNamedImportNoNamedExports_0"; +import { a as x } from "./es6ImportNamedImportNoNamedExports_0"; + +//// [es6ImportNamedImportNoNamedExports_0.js] +"use strict"; +var a = 10; +module.exports = a; +//// [es6ImportNamedImportNoNamedExports_1.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/tests/baselines/reference/es6ImportNamedImportNoNamedExports(target=es5).symbols b/tests/baselines/reference/es6ImportNamedImportNoNamedExports(target=es5).symbols new file mode 100644 index 0000000000000..dbd6e85b4c1f2 --- /dev/null +++ b/tests/baselines/reference/es6ImportNamedImportNoNamedExports(target=es5).symbols @@ -0,0 +1,16 @@ +//// [tests/cases/compiler/es6ImportNamedImportNoNamedExports.ts] //// + +=== es6ImportNamedImportNoNamedExports_0.ts === +var a = 10; +>a : Symbol(a, Decl(es6ImportNamedImportNoNamedExports_0.ts, 0, 3)) + +export = a; +>a : Symbol(a, Decl(es6ImportNamedImportNoNamedExports_0.ts, 0, 3)) + +=== es6ImportNamedImportNoNamedExports_1.ts === +import { a } from "./es6ImportNamedImportNoNamedExports_0"; +>a : Symbol(a, Decl(es6ImportNamedImportNoNamedExports_1.ts, 0, 8)) + +import { a as x } from "./es6ImportNamedImportNoNamedExports_0"; +>x : Symbol(x, Decl(es6ImportNamedImportNoNamedExports_1.ts, 1, 8)) + diff --git a/tests/baselines/reference/es6ImportNamedImportNoNamedExports(target=es5).types b/tests/baselines/reference/es6ImportNamedImportNoNamedExports(target=es5).types new file mode 100644 index 0000000000000..3e5f15003ca9b --- /dev/null +++ b/tests/baselines/reference/es6ImportNamedImportNoNamedExports(target=es5).types @@ -0,0 +1,24 @@ +//// [tests/cases/compiler/es6ImportNamedImportNoNamedExports.ts] //// + +=== es6ImportNamedImportNoNamedExports_0.ts === +var a = 10; +>a : number +> : ^^^^^^ +>10 : 10 +> : ^^ + +export = a; +>a : number +> : ^^^^^^ + +=== es6ImportNamedImportNoNamedExports_1.ts === +import { a } from "./es6ImportNamedImportNoNamedExports_0"; +>a : any +> : ^^^ + +import { a as x } from "./es6ImportNamedImportNoNamedExports_0"; +>a : any +> : ^^^ +>x : any +> : ^^^ + diff --git a/tests/baselines/reference/es6ImportWithoutFromClauseInEs5.errors.txt b/tests/baselines/reference/es6ImportWithoutFromClauseInEs5(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/es6ImportWithoutFromClauseInEs5.errors.txt rename to tests/baselines/reference/es6ImportWithoutFromClauseInEs5(target=es2015).errors.txt diff --git a/tests/baselines/reference/es6ImportWithoutFromClauseInEs5.js b/tests/baselines/reference/es6ImportWithoutFromClauseInEs5(target=es2015).js similarity index 100% rename from tests/baselines/reference/es6ImportWithoutFromClauseInEs5.js rename to tests/baselines/reference/es6ImportWithoutFromClauseInEs5(target=es2015).js diff --git a/tests/baselines/reference/es6ImportWithoutFromClauseInEs5.symbols b/tests/baselines/reference/es6ImportWithoutFromClauseInEs5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es6ImportWithoutFromClauseInEs5.symbols rename to tests/baselines/reference/es6ImportWithoutFromClauseInEs5(target=es2015).symbols diff --git a/tests/baselines/reference/es6ImportWithoutFromClauseInEs5.types b/tests/baselines/reference/es6ImportWithoutFromClauseInEs5(target=es2015).types similarity index 100% rename from tests/baselines/reference/es6ImportWithoutFromClauseInEs5.types rename to tests/baselines/reference/es6ImportWithoutFromClauseInEs5(target=es2015).types diff --git a/tests/baselines/reference/es6ImportWithoutFromClauseInEs5(target=es5).errors.txt b/tests/baselines/reference/es6ImportWithoutFromClauseInEs5(target=es5).errors.txt new file mode 100644 index 0000000000000..18251d4b9c34b --- /dev/null +++ b/tests/baselines/reference/es6ImportWithoutFromClauseInEs5(target=es5).errors.txt @@ -0,0 +1,10 @@ +es6ImportWithoutFromClauseInEs5_1.ts(1,8): error TS2882: Cannot find module or type declarations for side-effect import of 'es6ImportWithoutFromClauseInEs5_0'. + + +==== es6ImportWithoutFromClauseInEs5_0.ts (0 errors) ==== + export var a = 10; + +==== es6ImportWithoutFromClauseInEs5_1.ts (1 errors) ==== + import "es6ImportWithoutFromClauseInEs5_0"; + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2882: Cannot find module or type declarations for side-effect import of 'es6ImportWithoutFromClauseInEs5_0'. \ No newline at end of file diff --git a/tests/baselines/reference/es6ImportWithoutFromClauseInEs5(target=es5).js b/tests/baselines/reference/es6ImportWithoutFromClauseInEs5(target=es5).js new file mode 100644 index 0000000000000..c7801d09eb977 --- /dev/null +++ b/tests/baselines/reference/es6ImportWithoutFromClauseInEs5(target=es5).js @@ -0,0 +1,23 @@ +//// [tests/cases/compiler/es6ImportWithoutFromClauseInEs5.ts] //// + +//// [es6ImportWithoutFromClauseInEs5_0.ts] +export var a = 10; + +//// [es6ImportWithoutFromClauseInEs5_1.ts] +import "es6ImportWithoutFromClauseInEs5_0"; + +//// [es6ImportWithoutFromClauseInEs5_0.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.a = void 0; +exports.a = 10; +//// [es6ImportWithoutFromClauseInEs5_1.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +require("es6ImportWithoutFromClauseInEs5_0"); + + +//// [es6ImportWithoutFromClauseInEs5_0.d.ts] +export declare var a: number; +//// [es6ImportWithoutFromClauseInEs5_1.d.ts] +import "es6ImportWithoutFromClauseInEs5_0"; diff --git a/tests/baselines/reference/es6ImportWithoutFromClauseInEs5(target=es5).symbols b/tests/baselines/reference/es6ImportWithoutFromClauseInEs5(target=es5).symbols new file mode 100644 index 0000000000000..db2585591fb4d --- /dev/null +++ b/tests/baselines/reference/es6ImportWithoutFromClauseInEs5(target=es5).symbols @@ -0,0 +1,9 @@ +//// [tests/cases/compiler/es6ImportWithoutFromClauseInEs5.ts] //// + +=== es6ImportWithoutFromClauseInEs5_0.ts === +export var a = 10; +>a : Symbol(a, Decl(es6ImportWithoutFromClauseInEs5_0.ts, 0, 10)) + +=== es6ImportWithoutFromClauseInEs5_1.ts === + +import "es6ImportWithoutFromClauseInEs5_0"; diff --git a/tests/baselines/reference/es6ImportWithoutFromClauseInEs5(target=es5).types b/tests/baselines/reference/es6ImportWithoutFromClauseInEs5(target=es5).types new file mode 100644 index 0000000000000..d8b3669d713af --- /dev/null +++ b/tests/baselines/reference/es6ImportWithoutFromClauseInEs5(target=es5).types @@ -0,0 +1,12 @@ +//// [tests/cases/compiler/es6ImportWithoutFromClauseInEs5.ts] //// + +=== es6ImportWithoutFromClauseInEs5_0.ts === +export var a = 10; +>a : number +> : ^^^^^^ +>10 : 10 +> : ^^ + +=== es6ImportWithoutFromClauseInEs5_1.ts === + +import "es6ImportWithoutFromClauseInEs5_0"; diff --git a/tests/baselines/reference/es6modulekindExportClassNameWithObject(target=es2015).js b/tests/baselines/reference/es6modulekindExportClassNameWithObject(target=es2015).js new file mode 100644 index 0000000000000..26298b877706d --- /dev/null +++ b/tests/baselines/reference/es6modulekindExportClassNameWithObject(target=es2015).js @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/externalModules/es6/es6modulekindExportClassNameWithObject.ts] //// + +//// [es6modulekindExportClassNameWithObject.ts] +export class Object {} + + +//// [es6modulekindExportClassNameWithObject.js] +export class Object { +} diff --git a/tests/baselines/reference/es6modulekindExportClassNameWithObject.symbols b/tests/baselines/reference/es6modulekindExportClassNameWithObject(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es6modulekindExportClassNameWithObject.symbols rename to tests/baselines/reference/es6modulekindExportClassNameWithObject(target=es2015).symbols diff --git a/tests/baselines/reference/es6modulekindExportClassNameWithObject.types b/tests/baselines/reference/es6modulekindExportClassNameWithObject(target=es2015).types similarity index 100% rename from tests/baselines/reference/es6modulekindExportClassNameWithObject.types rename to tests/baselines/reference/es6modulekindExportClassNameWithObject(target=es2015).types diff --git a/tests/baselines/reference/es6modulekindExportClassNameWithObject.js b/tests/baselines/reference/es6modulekindExportClassNameWithObject(target=es5).js similarity index 100% rename from tests/baselines/reference/es6modulekindExportClassNameWithObject.js rename to tests/baselines/reference/es6modulekindExportClassNameWithObject(target=es5).js diff --git a/tests/baselines/reference/es6modulekindExportClassNameWithObject(target=es5).symbols b/tests/baselines/reference/es6modulekindExportClassNameWithObject(target=es5).symbols new file mode 100644 index 0000000000000..0ae1dc75a85e5 --- /dev/null +++ b/tests/baselines/reference/es6modulekindExportClassNameWithObject(target=es5).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/externalModules/es6/es6modulekindExportClassNameWithObject.ts] //// + +=== es6modulekindExportClassNameWithObject.ts === +export class Object {} +>Object : Symbol(Object, Decl(es6modulekindExportClassNameWithObject.ts, 0, 0)) + diff --git a/tests/baselines/reference/es6modulekindExportClassNameWithObject(target=es5).types b/tests/baselines/reference/es6modulekindExportClassNameWithObject(target=es5).types new file mode 100644 index 0000000000000..8c726f7748ffa --- /dev/null +++ b/tests/baselines/reference/es6modulekindExportClassNameWithObject(target=es5).types @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/externalModules/es6/es6modulekindExportClassNameWithObject.ts] //// + +=== es6modulekindExportClassNameWithObject.ts === +export class Object {} +>Object : Object +> : ^^^^^^ + diff --git a/tests/baselines/reference/es6modulekindWithES5Target(target=es2015).js b/tests/baselines/reference/es6modulekindWithES5Target(target=es2015).js new file mode 100644 index 0000000000000..72e66f40ce0fd --- /dev/null +++ b/tests/baselines/reference/es6modulekindWithES5Target(target=es2015).js @@ -0,0 +1,53 @@ +//// [tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target.ts] //// + +//// [es6modulekindWithES5Target.ts] +export class C { + static s = 0; + p = 1; + method() { } +} +export { C as C2 }; + +declare function foo(...args: any[]): any; +@foo +export class D { + static s = 0; + p = 1; + method() { } +} +export { D as D2 }; + +class E { } +export {E}; + + +//// [es6modulekindWithES5Target.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +export class C { + constructor() { + this.p = 1; + } + method() { } +} +C.s = 0; +export { C as C2 }; +let D = class D { + constructor() { + this.p = 1; + } + method() { } +}; +D.s = 0; +D = __decorate([ + foo +], D); +export { D }; +export { D as D2 }; +class E { +} +export { E }; diff --git a/tests/baselines/reference/es6modulekindWithES5Target.symbols b/tests/baselines/reference/es6modulekindWithES5Target(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es6modulekindWithES5Target.symbols rename to tests/baselines/reference/es6modulekindWithES5Target(target=es2015).symbols diff --git a/tests/baselines/reference/es6modulekindWithES5Target.types b/tests/baselines/reference/es6modulekindWithES5Target(target=es2015).types similarity index 100% rename from tests/baselines/reference/es6modulekindWithES5Target.types rename to tests/baselines/reference/es6modulekindWithES5Target(target=es2015).types diff --git a/tests/baselines/reference/es6modulekindWithES5Target.js b/tests/baselines/reference/es6modulekindWithES5Target(target=es5).js similarity index 100% rename from tests/baselines/reference/es6modulekindWithES5Target.js rename to tests/baselines/reference/es6modulekindWithES5Target(target=es5).js diff --git a/tests/baselines/reference/es6modulekindWithES5Target(target=es5).symbols b/tests/baselines/reference/es6modulekindWithES5Target(target=es5).symbols new file mode 100644 index 0000000000000..82f1ab8b0bca5 --- /dev/null +++ b/tests/baselines/reference/es6modulekindWithES5Target(target=es5).symbols @@ -0,0 +1,48 @@ +//// [tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target.ts] //// + +=== es6modulekindWithES5Target.ts === +export class C { +>C : Symbol(C, Decl(es6modulekindWithES5Target.ts, 0, 0)) + + static s = 0; +>s : Symbol(C.s, Decl(es6modulekindWithES5Target.ts, 0, 16)) + + p = 1; +>p : Symbol(C.p, Decl(es6modulekindWithES5Target.ts, 1, 17)) + + method() { } +>method : Symbol(C.method, Decl(es6modulekindWithES5Target.ts, 2, 10)) +} +export { C as C2 }; +>C : Symbol(C, Decl(es6modulekindWithES5Target.ts, 0, 0)) +>C2 : Symbol(C2, Decl(es6modulekindWithES5Target.ts, 5, 8)) + +declare function foo(...args: any[]): any; +>foo : Symbol(foo, Decl(es6modulekindWithES5Target.ts, 5, 19)) +>args : Symbol(args, Decl(es6modulekindWithES5Target.ts, 7, 21)) + +@foo +>foo : Symbol(foo, Decl(es6modulekindWithES5Target.ts, 5, 19)) + +export class D { +>D : Symbol(D, Decl(es6modulekindWithES5Target.ts, 7, 42)) + + static s = 0; +>s : Symbol(D.s, Decl(es6modulekindWithES5Target.ts, 9, 16)) + + p = 1; +>p : Symbol(D.p, Decl(es6modulekindWithES5Target.ts, 10, 17)) + + method() { } +>method : Symbol(D.method, Decl(es6modulekindWithES5Target.ts, 11, 10)) +} +export { D as D2 }; +>D : Symbol(D, Decl(es6modulekindWithES5Target.ts, 7, 42)) +>D2 : Symbol(D2, Decl(es6modulekindWithES5Target.ts, 14, 8)) + +class E { } +>E : Symbol(E, Decl(es6modulekindWithES5Target.ts, 14, 19)) + +export {E}; +>E : Symbol(E, Decl(es6modulekindWithES5Target.ts, 17, 8)) + diff --git a/tests/baselines/reference/es6modulekindWithES5Target(target=es5).types b/tests/baselines/reference/es6modulekindWithES5Target(target=es5).types new file mode 100644 index 0000000000000..18c9759025361 --- /dev/null +++ b/tests/baselines/reference/es6modulekindWithES5Target(target=es5).types @@ -0,0 +1,73 @@ +//// [tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target.ts] //// + +=== es6modulekindWithES5Target.ts === +export class C { +>C : C +> : ^ + + static s = 0; +>s : number +> : ^^^^^^ +>0 : 0 +> : ^ + + p = 1; +>p : number +> : ^^^^^^ +>1 : 1 +> : ^ + + method() { } +>method : () => void +> : ^^^^^^^^^^ +} +export { C as C2 }; +>C : typeof C +> : ^^^^^^^^ +>C2 : typeof C +> : ^^^^^^^^ + +declare function foo(...args: any[]): any; +>foo : (...args: any[]) => any +> : ^^^^ ^^ ^^^^^ +>args : any[] +> : ^^^^^ + +@foo +>foo : (...args: any[]) => any +> : ^^^^ ^^ ^^^^^ + +export class D { +>D : D +> : ^ + + static s = 0; +>s : number +> : ^^^^^^ +>0 : 0 +> : ^ + + p = 1; +>p : number +> : ^^^^^^ +>1 : 1 +> : ^ + + method() { } +>method : () => void +> : ^^^^^^^^^^ +} +export { D as D2 }; +>D : typeof D +> : ^^^^^^^^ +>D2 : typeof D +> : ^^^^^^^^ + +class E { } +>E : E +> : ^ + +export {E}; +>E : typeof E +> : ^^^^^^^^ + diff --git a/tests/baselines/reference/es6modulekindWithES5Target10.errors.txt b/tests/baselines/reference/es6modulekindWithES5Target10(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/es6modulekindWithES5Target10.errors.txt rename to tests/baselines/reference/es6modulekindWithES5Target10(target=es2015).errors.txt diff --git a/tests/baselines/reference/es6modulekindWithES5Target10.js b/tests/baselines/reference/es6modulekindWithES5Target10(target=es2015).js similarity index 100% rename from tests/baselines/reference/es6modulekindWithES5Target10.js rename to tests/baselines/reference/es6modulekindWithES5Target10(target=es2015).js diff --git a/tests/baselines/reference/es6modulekindWithES5Target10.symbols b/tests/baselines/reference/es6modulekindWithES5Target10(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es6modulekindWithES5Target10.symbols rename to tests/baselines/reference/es6modulekindWithES5Target10(target=es2015).symbols diff --git a/tests/baselines/reference/es6modulekindWithES5Target10.types b/tests/baselines/reference/es6modulekindWithES5Target10(target=es2015).types similarity index 100% rename from tests/baselines/reference/es6modulekindWithES5Target10.types rename to tests/baselines/reference/es6modulekindWithES5Target10(target=es2015).types diff --git a/tests/baselines/reference/es6modulekindWithES5Target10(target=es5).errors.txt b/tests/baselines/reference/es6modulekindWithES5Target10(target=es5).errors.txt new file mode 100644 index 0000000000000..8b45346535972 --- /dev/null +++ b/tests/baselines/reference/es6modulekindWithES5Target10(target=es5).errors.txt @@ -0,0 +1,18 @@ +es6modulekindWithES5Target10.ts(1,1): error TS1202: Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead. +es6modulekindWithES5Target10.ts(1,20): error TS2307: Cannot find module 'mod' or its corresponding type declarations. +es6modulekindWithES5Target10.ts(6,1): error TS1203: Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead. + + +==== es6modulekindWithES5Target10.ts (3 errors) ==== + import i = require("mod"); // Error; + ~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS1202: Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead. + ~~~~~ +!!! error TS2307: Cannot find module 'mod' or its corresponding type declarations. + + + namespace N { + } + export = N; // Error + ~~~~~~~~~~~ +!!! error TS1203: Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead. \ No newline at end of file diff --git a/tests/baselines/reference/es6modulekindWithES5Target10(target=es5).js b/tests/baselines/reference/es6modulekindWithES5Target10(target=es5).js new file mode 100644 index 0000000000000..76f2be82bdb85 --- /dev/null +++ b/tests/baselines/reference/es6modulekindWithES5Target10(target=es5).js @@ -0,0 +1,12 @@ +//// [tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target10.ts] //// + +//// [es6modulekindWithES5Target10.ts] +import i = require("mod"); // Error; + + +namespace N { +} +export = N; // Error + +//// [es6modulekindWithES5Target10.js] +export {}; diff --git a/tests/baselines/reference/es6modulekindWithES5Target10(target=es5).symbols b/tests/baselines/reference/es6modulekindWithES5Target10(target=es5).symbols new file mode 100644 index 0000000000000..839e0ac265e1d --- /dev/null +++ b/tests/baselines/reference/es6modulekindWithES5Target10(target=es5).symbols @@ -0,0 +1,13 @@ +//// [tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target10.ts] //// + +=== es6modulekindWithES5Target10.ts === +import i = require("mod"); // Error; +>i : Symbol(i, Decl(es6modulekindWithES5Target10.ts, 0, 0)) + + +namespace N { +>N : Symbol(N, Decl(es6modulekindWithES5Target10.ts, 0, 26)) +} +export = N; // Error +>N : Symbol(N, Decl(es6modulekindWithES5Target10.ts, 0, 26)) + diff --git a/tests/baselines/reference/es6modulekindWithES5Target10(target=es5).types b/tests/baselines/reference/es6modulekindWithES5Target10(target=es5).types new file mode 100644 index 0000000000000..35c0aa0f07abd --- /dev/null +++ b/tests/baselines/reference/es6modulekindWithES5Target10(target=es5).types @@ -0,0 +1,14 @@ +//// [tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target10.ts] //// + +=== es6modulekindWithES5Target10.ts === +import i = require("mod"); // Error; +>i : any +> : ^^^ + + +namespace N { +} +export = N; // Error +>N : any +> : ^^^ + diff --git a/tests/baselines/reference/es6modulekindWithES5Target11(target=es2015).js b/tests/baselines/reference/es6modulekindWithES5Target11(target=es2015).js new file mode 100644 index 0000000000000..ca6b75ca50f62 --- /dev/null +++ b/tests/baselines/reference/es6modulekindWithES5Target11(target=es2015).js @@ -0,0 +1,32 @@ +//// [tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target11.ts] //// + +//// [es6modulekindWithES5Target11.ts] +declare function foo(...args: any[]): any; +@foo +export default class C { + static x() { return C.y; } + static y = 1 + p = 1; + method() { } +} + +//// [es6modulekindWithES5Target11.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var C_1; +let C = C_1 = class C { + constructor() { + this.p = 1; + } + static x() { return C_1.y; } + method() { } +}; +C.y = 1; +C = C_1 = __decorate([ + foo +], C); +export default C; diff --git a/tests/baselines/reference/es6modulekindWithES5Target11.symbols b/tests/baselines/reference/es6modulekindWithES5Target11(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es6modulekindWithES5Target11.symbols rename to tests/baselines/reference/es6modulekindWithES5Target11(target=es2015).symbols diff --git a/tests/baselines/reference/es6modulekindWithES5Target11.types b/tests/baselines/reference/es6modulekindWithES5Target11(target=es2015).types similarity index 100% rename from tests/baselines/reference/es6modulekindWithES5Target11.types rename to tests/baselines/reference/es6modulekindWithES5Target11(target=es2015).types diff --git a/tests/baselines/reference/es6modulekindWithES5Target11.js b/tests/baselines/reference/es6modulekindWithES5Target11(target=es5).js similarity index 100% rename from tests/baselines/reference/es6modulekindWithES5Target11.js rename to tests/baselines/reference/es6modulekindWithES5Target11(target=es5).js diff --git a/tests/baselines/reference/es6modulekindWithES5Target11(target=es5).symbols b/tests/baselines/reference/es6modulekindWithES5Target11(target=es5).symbols new file mode 100644 index 0000000000000..36b889b28c5d1 --- /dev/null +++ b/tests/baselines/reference/es6modulekindWithES5Target11(target=es5).symbols @@ -0,0 +1,28 @@ +//// [tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target11.ts] //// + +=== es6modulekindWithES5Target11.ts === +declare function foo(...args: any[]): any; +>foo : Symbol(foo, Decl(es6modulekindWithES5Target11.ts, 0, 0)) +>args : Symbol(args, Decl(es6modulekindWithES5Target11.ts, 0, 21)) + +@foo +>foo : Symbol(foo, Decl(es6modulekindWithES5Target11.ts, 0, 0)) + +export default class C { +>C : Symbol(C, Decl(es6modulekindWithES5Target11.ts, 0, 42)) + + static x() { return C.y; } +>x : Symbol(C.x, Decl(es6modulekindWithES5Target11.ts, 2, 24)) +>C.y : Symbol(C.y, Decl(es6modulekindWithES5Target11.ts, 3, 30)) +>C : Symbol(C, Decl(es6modulekindWithES5Target11.ts, 0, 42)) +>y : Symbol(C.y, Decl(es6modulekindWithES5Target11.ts, 3, 30)) + + static y = 1 +>y : Symbol(C.y, Decl(es6modulekindWithES5Target11.ts, 3, 30)) + + p = 1; +>p : Symbol(C.p, Decl(es6modulekindWithES5Target11.ts, 4, 16)) + + method() { } +>method : Symbol(C.method, Decl(es6modulekindWithES5Target11.ts, 5, 10)) +} diff --git a/tests/baselines/reference/es6modulekindWithES5Target11(target=es5).types b/tests/baselines/reference/es6modulekindWithES5Target11(target=es5).types new file mode 100644 index 0000000000000..2ea1183b8781f --- /dev/null +++ b/tests/baselines/reference/es6modulekindWithES5Target11(target=es5).types @@ -0,0 +1,43 @@ +//// [tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target11.ts] //// + +=== es6modulekindWithES5Target11.ts === +declare function foo(...args: any[]): any; +>foo : (...args: any[]) => any +> : ^^^^ ^^ ^^^^^ +>args : any[] +> : ^^^^^ + +@foo +>foo : (...args: any[]) => any +> : ^^^^ ^^ ^^^^^ + +export default class C { +>C : C +> : ^ + + static x() { return C.y; } +>x : () => number +> : ^^^^^^^^^^^^ +>C.y : number +> : ^^^^^^ +>C : typeof C +> : ^^^^^^^^ +>y : number +> : ^^^^^^ + + static y = 1 +>y : number +> : ^^^^^^ +>1 : 1 +> : ^ + + p = 1; +>p : number +> : ^^^^^^ +>1 : 1 +> : ^ + + method() { } +>method : () => void +> : ^^^^^^^^^^ +} diff --git a/tests/baselines/reference/es6modulekindWithES5Target12(target=es2015).js b/tests/baselines/reference/es6modulekindWithES5Target12(target=es2015).js new file mode 100644 index 0000000000000..4f9942621b4f4 --- /dev/null +++ b/tests/baselines/reference/es6modulekindWithES5Target12(target=es2015).js @@ -0,0 +1,68 @@ +//// [tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target12.ts] //// + +//// [es6modulekindWithES5Target12.ts] +export class C { +} + +export namespace C { + export const x = 1; +} + +export enum E { + w = 1 +} + +export enum E { + x = 2 +} + +export namespace E { + export const y = 1; +} + +export namespace E { + export const z = 1; +} + +export namespace N { +} + +export namespace N { + export const x = 1; +} + +export function F() { +} + +export namespace F { + export const x = 1; +} + +//// [es6modulekindWithES5Target12.js] +export class C { +} +(function (C) { + C.x = 1; +})(C || (C = {})); +export var E; +(function (E) { + E[E["w"] = 1] = "w"; +})(E || (E = {})); +(function (E) { + E[E["x"] = 2] = "x"; +})(E || (E = {})); +(function (E) { + E.y = 1; +})(E || (E = {})); +(function (E) { + E.z = 1; +})(E || (E = {})); +export var N; +(function (N) { + N.x = 1; +})(N || (N = {})); +export function F() { +} +(function (F) { + F.x = 1; +})(F || (F = {})); diff --git a/tests/baselines/reference/es6modulekindWithES5Target12.symbols b/tests/baselines/reference/es6modulekindWithES5Target12(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es6modulekindWithES5Target12.symbols rename to tests/baselines/reference/es6modulekindWithES5Target12(target=es2015).symbols diff --git a/tests/baselines/reference/es6modulekindWithES5Target12.types b/tests/baselines/reference/es6modulekindWithES5Target12(target=es2015).types similarity index 100% rename from tests/baselines/reference/es6modulekindWithES5Target12.types rename to tests/baselines/reference/es6modulekindWithES5Target12(target=es2015).types diff --git a/tests/baselines/reference/es6modulekindWithES5Target12.js b/tests/baselines/reference/es6modulekindWithES5Target12(target=es5).js similarity index 100% rename from tests/baselines/reference/es6modulekindWithES5Target12.js rename to tests/baselines/reference/es6modulekindWithES5Target12(target=es5).js diff --git a/tests/baselines/reference/es6modulekindWithES5Target12(target=es5).symbols b/tests/baselines/reference/es6modulekindWithES5Target12(target=es5).symbols new file mode 100644 index 0000000000000..b7bb970bf0b96 --- /dev/null +++ b/tests/baselines/reference/es6modulekindWithES5Target12(target=es5).symbols @@ -0,0 +1,63 @@ +//// [tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target12.ts] //// + +=== es6modulekindWithES5Target12.ts === +export class C { +>C : Symbol(C, Decl(es6modulekindWithES5Target12.ts, 0, 0), Decl(es6modulekindWithES5Target12.ts, 1, 1)) +} + +export namespace C { +>C : Symbol(C, Decl(es6modulekindWithES5Target12.ts, 0, 0), Decl(es6modulekindWithES5Target12.ts, 1, 1)) + + export const x = 1; +>x : Symbol(x, Decl(es6modulekindWithES5Target12.ts, 4, 16)) +} + +export enum E { +>E : Symbol(E, Decl(es6modulekindWithES5Target12.ts, 5, 1), Decl(es6modulekindWithES5Target12.ts, 9, 1), Decl(es6modulekindWithES5Target12.ts, 13, 1), Decl(es6modulekindWithES5Target12.ts, 17, 1)) + + w = 1 +>w : Symbol(E.w, Decl(es6modulekindWithES5Target12.ts, 7, 15)) +} + +export enum E { +>E : Symbol(E, Decl(es6modulekindWithES5Target12.ts, 5, 1), Decl(es6modulekindWithES5Target12.ts, 9, 1), Decl(es6modulekindWithES5Target12.ts, 13, 1), Decl(es6modulekindWithES5Target12.ts, 17, 1)) + + x = 2 +>x : Symbol(E.x, Decl(es6modulekindWithES5Target12.ts, 11, 15)) +} + +export namespace E { +>E : Symbol(E, Decl(es6modulekindWithES5Target12.ts, 5, 1), Decl(es6modulekindWithES5Target12.ts, 9, 1), Decl(es6modulekindWithES5Target12.ts, 13, 1), Decl(es6modulekindWithES5Target12.ts, 17, 1)) + + export const y = 1; +>y : Symbol(y, Decl(es6modulekindWithES5Target12.ts, 16, 16)) +} + +export namespace E { +>E : Symbol(E, Decl(es6modulekindWithES5Target12.ts, 5, 1), Decl(es6modulekindWithES5Target12.ts, 9, 1), Decl(es6modulekindWithES5Target12.ts, 13, 1), Decl(es6modulekindWithES5Target12.ts, 17, 1)) + + export const z = 1; +>z : Symbol(z, Decl(es6modulekindWithES5Target12.ts, 20, 16)) +} + +export namespace N { +>N : Symbol(N, Decl(es6modulekindWithES5Target12.ts, 21, 1), Decl(es6modulekindWithES5Target12.ts, 24, 1)) +} + +export namespace N { +>N : Symbol(N, Decl(es6modulekindWithES5Target12.ts, 21, 1), Decl(es6modulekindWithES5Target12.ts, 24, 1)) + + export const x = 1; +>x : Symbol(x, Decl(es6modulekindWithES5Target12.ts, 27, 16)) +} + +export function F() { +>F : Symbol(F, Decl(es6modulekindWithES5Target12.ts, 28, 1), Decl(es6modulekindWithES5Target12.ts, 31, 1)) +} + +export namespace F { +>F : Symbol(F, Decl(es6modulekindWithES5Target12.ts, 28, 1), Decl(es6modulekindWithES5Target12.ts, 31, 1)) + + export const x = 1; +>x : Symbol(x, Decl(es6modulekindWithES5Target12.ts, 34, 16)) +} diff --git a/tests/baselines/reference/es6modulekindWithES5Target12(target=es5).types b/tests/baselines/reference/es6modulekindWithES5Target12(target=es5).types new file mode 100644 index 0000000000000..0ae2a847f5f97 --- /dev/null +++ b/tests/baselines/reference/es6modulekindWithES5Target12(target=es5).types @@ -0,0 +1,92 @@ +//// [tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target12.ts] //// + +=== es6modulekindWithES5Target12.ts === +export class C { +>C : C +> : ^ +} + +export namespace C { +>C : typeof C +> : ^^^^^^^^ + + export const x = 1; +>x : 1 +> : ^ +>1 : 1 +> : ^ +} + +export enum E { +>E : E +> : ^ + + w = 1 +>w : E.w +> : ^^^ +>1 : 1 +> : ^ +} + +export enum E { +>E : E +> : ^ + + x = 2 +>x : E.x +> : ^^^ +>2 : 2 +> : ^ +} + +export namespace E { +>E : typeof E +> : ^^^^^^^^ + + export const y = 1; +>y : 1 +> : ^ +>1 : 1 +> : ^ +} + +export namespace E { +>E : typeof E +> : ^^^^^^^^ + + export const z = 1; +>z : 1 +> : ^ +>1 : 1 +> : ^ +} + +export namespace N { +} + +export namespace N { +>N : typeof N +> : ^^^^^^^^ + + export const x = 1; +>x : 1 +> : ^ +>1 : 1 +> : ^ +} + +export function F() { +>F : typeof F +> : ^^^^^^^^ +} + +export namespace F { +>F : typeof F +> : ^^^^^^^^ + + export const x = 1; +>x : 1 +> : ^ +>1 : 1 +> : ^ +} diff --git a/tests/baselines/reference/es6modulekindWithES5Target2(target=es2015).js b/tests/baselines/reference/es6modulekindWithES5Target2(target=es2015).js new file mode 100644 index 0000000000000..33dd24b6b3e00 --- /dev/null +++ b/tests/baselines/reference/es6modulekindWithES5Target2(target=es2015).js @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target2.ts] //// + +//// [es6modulekindWithES5Target2.ts] +export default class C { + static s = 0; + p = 1; + method() { } +} + + +//// [es6modulekindWithES5Target2.js] +class C { + constructor() { + this.p = 1; + } + method() { } +} +C.s = 0; +export default C; diff --git a/tests/baselines/reference/es6modulekindWithES5Target2.symbols b/tests/baselines/reference/es6modulekindWithES5Target2(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es6modulekindWithES5Target2.symbols rename to tests/baselines/reference/es6modulekindWithES5Target2(target=es2015).symbols diff --git a/tests/baselines/reference/es6modulekindWithES5Target2.types b/tests/baselines/reference/es6modulekindWithES5Target2(target=es2015).types similarity index 100% rename from tests/baselines/reference/es6modulekindWithES5Target2.types rename to tests/baselines/reference/es6modulekindWithES5Target2(target=es2015).types diff --git a/tests/baselines/reference/es6modulekindWithES5Target2.js b/tests/baselines/reference/es6modulekindWithES5Target2(target=es5).js similarity index 100% rename from tests/baselines/reference/es6modulekindWithES5Target2.js rename to tests/baselines/reference/es6modulekindWithES5Target2(target=es5).js diff --git a/tests/baselines/reference/es6modulekindWithES5Target2(target=es5).symbols b/tests/baselines/reference/es6modulekindWithES5Target2(target=es5).symbols new file mode 100644 index 0000000000000..17270668d33ad --- /dev/null +++ b/tests/baselines/reference/es6modulekindWithES5Target2(target=es5).symbols @@ -0,0 +1,16 @@ +//// [tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target2.ts] //// + +=== es6modulekindWithES5Target2.ts === +export default class C { +>C : Symbol(C, Decl(es6modulekindWithES5Target2.ts, 0, 0)) + + static s = 0; +>s : Symbol(C.s, Decl(es6modulekindWithES5Target2.ts, 0, 24)) + + p = 1; +>p : Symbol(C.p, Decl(es6modulekindWithES5Target2.ts, 1, 17)) + + method() { } +>method : Symbol(C.method, Decl(es6modulekindWithES5Target2.ts, 2, 10)) +} + diff --git a/tests/baselines/reference/es6modulekindWithES5Target2(target=es5).types b/tests/baselines/reference/es6modulekindWithES5Target2(target=es5).types new file mode 100644 index 0000000000000..d496d389fbe5f --- /dev/null +++ b/tests/baselines/reference/es6modulekindWithES5Target2(target=es5).types @@ -0,0 +1,24 @@ +//// [tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target2.ts] //// + +=== es6modulekindWithES5Target2.ts === +export default class C { +>C : C +> : ^ + + static s = 0; +>s : number +> : ^^^^^^ +>0 : 0 +> : ^ + + p = 1; +>p : number +> : ^^^^^^ +>1 : 1 +> : ^ + + method() { } +>method : () => void +> : ^^^^^^^^^^ +} + diff --git a/tests/baselines/reference/es6modulekindWithES5Target3(target=es2015).js b/tests/baselines/reference/es6modulekindWithES5Target3(target=es2015).js new file mode 100644 index 0000000000000..f6130ed21e482 --- /dev/null +++ b/tests/baselines/reference/es6modulekindWithES5Target3(target=es2015).js @@ -0,0 +1,29 @@ +//// [tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target3.ts] //// + +//// [es6modulekindWithES5Target3.ts] +declare function foo(...args: any[]): any; +@foo +export default class D { + static s = 0; + p = 1; + method() { } +} + +//// [es6modulekindWithES5Target3.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +let D = class D { + constructor() { + this.p = 1; + } + method() { } +}; +D.s = 0; +D = __decorate([ + foo +], D); +export default D; diff --git a/tests/baselines/reference/es6modulekindWithES5Target3.symbols b/tests/baselines/reference/es6modulekindWithES5Target3(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es6modulekindWithES5Target3.symbols rename to tests/baselines/reference/es6modulekindWithES5Target3(target=es2015).symbols diff --git a/tests/baselines/reference/es6modulekindWithES5Target3.types b/tests/baselines/reference/es6modulekindWithES5Target3(target=es2015).types similarity index 100% rename from tests/baselines/reference/es6modulekindWithES5Target3.types rename to tests/baselines/reference/es6modulekindWithES5Target3(target=es2015).types diff --git a/tests/baselines/reference/es6modulekindWithES5Target3.js b/tests/baselines/reference/es6modulekindWithES5Target3(target=es5).js similarity index 100% rename from tests/baselines/reference/es6modulekindWithES5Target3.js rename to tests/baselines/reference/es6modulekindWithES5Target3(target=es5).js diff --git a/tests/baselines/reference/es6modulekindWithES5Target3(target=es5).symbols b/tests/baselines/reference/es6modulekindWithES5Target3(target=es5).symbols new file mode 100644 index 0000000000000..bcab6a9a6b4a1 --- /dev/null +++ b/tests/baselines/reference/es6modulekindWithES5Target3(target=es5).symbols @@ -0,0 +1,22 @@ +//// [tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target3.ts] //// + +=== es6modulekindWithES5Target3.ts === +declare function foo(...args: any[]): any; +>foo : Symbol(foo, Decl(es6modulekindWithES5Target3.ts, 0, 0)) +>args : Symbol(args, Decl(es6modulekindWithES5Target3.ts, 0, 21)) + +@foo +>foo : Symbol(foo, Decl(es6modulekindWithES5Target3.ts, 0, 0)) + +export default class D { +>D : Symbol(D, Decl(es6modulekindWithES5Target3.ts, 0, 42)) + + static s = 0; +>s : Symbol(D.s, Decl(es6modulekindWithES5Target3.ts, 2, 24)) + + p = 1; +>p : Symbol(D.p, Decl(es6modulekindWithES5Target3.ts, 3, 17)) + + method() { } +>method : Symbol(D.method, Decl(es6modulekindWithES5Target3.ts, 4, 10)) +} diff --git a/tests/baselines/reference/es6modulekindWithES5Target3(target=es5).types b/tests/baselines/reference/es6modulekindWithES5Target3(target=es5).types new file mode 100644 index 0000000000000..9ae61ca799f15 --- /dev/null +++ b/tests/baselines/reference/es6modulekindWithES5Target3(target=es5).types @@ -0,0 +1,33 @@ +//// [tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target3.ts] //// + +=== es6modulekindWithES5Target3.ts === +declare function foo(...args: any[]): any; +>foo : (...args: any[]) => any +> : ^^^^ ^^ ^^^^^ +>args : any[] +> : ^^^^^ + +@foo +>foo : (...args: any[]) => any +> : ^^^^ ^^ ^^^^^ + +export default class D { +>D : D +> : ^ + + static s = 0; +>s : number +> : ^^^^^^ +>0 : 0 +> : ^ + + p = 1; +>p : number +> : ^^^^^^ +>1 : 1 +> : ^ + + method() { } +>method : () => void +> : ^^^^^^^^^^ +} diff --git a/tests/baselines/reference/es6modulekindWithES5Target4(target=es2015).js b/tests/baselines/reference/es6modulekindWithES5Target4(target=es2015).js new file mode 100644 index 0000000000000..8e4889f79a64c --- /dev/null +++ b/tests/baselines/reference/es6modulekindWithES5Target4(target=es2015).js @@ -0,0 +1,10 @@ +//// [tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target4.ts] //// + +//// [es6modulekindWithES5Target4.ts] +class E { } +export default E; + +//// [es6modulekindWithES5Target4.js] +class E { +} +export default E; diff --git a/tests/baselines/reference/es6modulekindWithES5Target4.symbols b/tests/baselines/reference/es6modulekindWithES5Target4(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es6modulekindWithES5Target4.symbols rename to tests/baselines/reference/es6modulekindWithES5Target4(target=es2015).symbols diff --git a/tests/baselines/reference/es6modulekindWithES5Target4.types b/tests/baselines/reference/es6modulekindWithES5Target4(target=es2015).types similarity index 100% rename from tests/baselines/reference/es6modulekindWithES5Target4.types rename to tests/baselines/reference/es6modulekindWithES5Target4(target=es2015).types diff --git a/tests/baselines/reference/es6modulekindWithES5Target4.js b/tests/baselines/reference/es6modulekindWithES5Target4(target=es5).js similarity index 100% rename from tests/baselines/reference/es6modulekindWithES5Target4.js rename to tests/baselines/reference/es6modulekindWithES5Target4(target=es5).js diff --git a/tests/baselines/reference/es6modulekindWithES5Target4(target=es5).symbols b/tests/baselines/reference/es6modulekindWithES5Target4(target=es5).symbols new file mode 100644 index 0000000000000..4451f15e56126 --- /dev/null +++ b/tests/baselines/reference/es6modulekindWithES5Target4(target=es5).symbols @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target4.ts] //// + +=== es6modulekindWithES5Target4.ts === +class E { } +>E : Symbol(E, Decl(es6modulekindWithES5Target4.ts, 0, 0)) + +export default E; +>E : Symbol(E, Decl(es6modulekindWithES5Target4.ts, 0, 0)) + diff --git a/tests/baselines/reference/es6modulekindWithES5Target4(target=es5).types b/tests/baselines/reference/es6modulekindWithES5Target4(target=es5).types new file mode 100644 index 0000000000000..cefb56e4e6ee4 --- /dev/null +++ b/tests/baselines/reference/es6modulekindWithES5Target4(target=es5).types @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target4.ts] //// + +=== es6modulekindWithES5Target4.ts === +class E { } +>E : E +> : ^ + +export default E; +>E : E +> : ^ + diff --git a/tests/baselines/reference/es6modulekindWithES5Target5.js b/tests/baselines/reference/es6modulekindWithES5Target5(target=es2015).js similarity index 100% rename from tests/baselines/reference/es6modulekindWithES5Target5.js rename to tests/baselines/reference/es6modulekindWithES5Target5(target=es2015).js diff --git a/tests/baselines/reference/es6modulekindWithES5Target5.symbols b/tests/baselines/reference/es6modulekindWithES5Target5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es6modulekindWithES5Target5.symbols rename to tests/baselines/reference/es6modulekindWithES5Target5(target=es2015).symbols diff --git a/tests/baselines/reference/es6modulekindWithES5Target5.types b/tests/baselines/reference/es6modulekindWithES5Target5(target=es2015).types similarity index 100% rename from tests/baselines/reference/es6modulekindWithES5Target5.types rename to tests/baselines/reference/es6modulekindWithES5Target5(target=es2015).types diff --git a/tests/baselines/reference/es6modulekindWithES5Target5(target=es5).js b/tests/baselines/reference/es6modulekindWithES5Target5(target=es5).js new file mode 100644 index 0000000000000..8dbb5a022100b --- /dev/null +++ b/tests/baselines/reference/es6modulekindWithES5Target5(target=es5).js @@ -0,0 +1,20 @@ +//// [tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target5.ts] //// + +//// [es6modulekindWithES5Target5.ts] +export enum E1 { + value1 +} + +export const enum E2 { + value1 +} + +//// [es6modulekindWithES5Target5.js] +export var E1; +(function (E1) { + E1[E1["value1"] = 0] = "value1"; +})(E1 || (E1 = {})); +export var E2; +(function (E2) { + E2[E2["value1"] = 0] = "value1"; +})(E2 || (E2 = {})); diff --git a/tests/baselines/reference/es6modulekindWithES5Target5(target=es5).symbols b/tests/baselines/reference/es6modulekindWithES5Target5(target=es5).symbols new file mode 100644 index 0000000000000..7149effb20bfb --- /dev/null +++ b/tests/baselines/reference/es6modulekindWithES5Target5(target=es5).symbols @@ -0,0 +1,16 @@ +//// [tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target5.ts] //// + +=== es6modulekindWithES5Target5.ts === +export enum E1 { +>E1 : Symbol(E1, Decl(es6modulekindWithES5Target5.ts, 0, 0)) + + value1 +>value1 : Symbol(E1.value1, Decl(es6modulekindWithES5Target5.ts, 0, 16)) +} + +export const enum E2 { +>E2 : Symbol(E2, Decl(es6modulekindWithES5Target5.ts, 2, 1)) + + value1 +>value1 : Symbol(E2.value1, Decl(es6modulekindWithES5Target5.ts, 4, 22)) +} diff --git a/tests/baselines/reference/es6modulekindWithES5Target5(target=es5).types b/tests/baselines/reference/es6modulekindWithES5Target5(target=es5).types new file mode 100644 index 0000000000000..eacc704f2ecd6 --- /dev/null +++ b/tests/baselines/reference/es6modulekindWithES5Target5(target=es5).types @@ -0,0 +1,20 @@ +//// [tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target5.ts] //// + +=== es6modulekindWithES5Target5.ts === +export enum E1 { +>E1 : E1 +> : ^^ + + value1 +>value1 : E1.value1 +> : ^^^^^^^^^ +} + +export const enum E2 { +>E2 : E2 +> : ^^ + + value1 +>value1 : E2.value1 +> : ^^^^^^^^^ +} diff --git a/tests/baselines/reference/es6modulekindWithES5Target6(target=es2015).js b/tests/baselines/reference/es6modulekindWithES5Target6(target=es2015).js new file mode 100644 index 0000000000000..24aa9f3fc1916 --- /dev/null +++ b/tests/baselines/reference/es6modulekindWithES5Target6(target=es2015).js @@ -0,0 +1,20 @@ +//// [tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target6.ts] //// + +//// [es6modulekindWithES5Target6.ts] +export function f1(d = 0) { +} + +export function f2(...arg) { +} + +export default function f3(d = 0) { +} + + +//// [es6modulekindWithES5Target6.js] +export function f1(d = 0) { +} +export function f2(...arg) { +} +export default function f3(d = 0) { +} diff --git a/tests/baselines/reference/es6modulekindWithES5Target6.symbols b/tests/baselines/reference/es6modulekindWithES5Target6(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es6modulekindWithES5Target6.symbols rename to tests/baselines/reference/es6modulekindWithES5Target6(target=es2015).symbols diff --git a/tests/baselines/reference/es6modulekindWithES5Target6.types b/tests/baselines/reference/es6modulekindWithES5Target6(target=es2015).types similarity index 100% rename from tests/baselines/reference/es6modulekindWithES5Target6.types rename to tests/baselines/reference/es6modulekindWithES5Target6(target=es2015).types diff --git a/tests/baselines/reference/es6modulekindWithES5Target6.js b/tests/baselines/reference/es6modulekindWithES5Target6(target=es5).js similarity index 100% rename from tests/baselines/reference/es6modulekindWithES5Target6.js rename to tests/baselines/reference/es6modulekindWithES5Target6(target=es5).js diff --git a/tests/baselines/reference/es6modulekindWithES5Target6(target=es5).symbols b/tests/baselines/reference/es6modulekindWithES5Target6(target=es5).symbols new file mode 100644 index 0000000000000..635e4d011cda3 --- /dev/null +++ b/tests/baselines/reference/es6modulekindWithES5Target6(target=es5).symbols @@ -0,0 +1,18 @@ +//// [tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target6.ts] //// + +=== es6modulekindWithES5Target6.ts === +export function f1(d = 0) { +>f1 : Symbol(f1, Decl(es6modulekindWithES5Target6.ts, 0, 0)) +>d : Symbol(d, Decl(es6modulekindWithES5Target6.ts, 0, 19)) +} + +export function f2(...arg) { +>f2 : Symbol(f2, Decl(es6modulekindWithES5Target6.ts, 1, 1)) +>arg : Symbol(arg, Decl(es6modulekindWithES5Target6.ts, 3, 19)) +} + +export default function f3(d = 0) { +>f3 : Symbol(f3, Decl(es6modulekindWithES5Target6.ts, 4, 1)) +>d : Symbol(d, Decl(es6modulekindWithES5Target6.ts, 6, 27)) +} + diff --git a/tests/baselines/reference/es6modulekindWithES5Target6(target=es5).types b/tests/baselines/reference/es6modulekindWithES5Target6(target=es5).types new file mode 100644 index 0000000000000..15f77b2b125ea --- /dev/null +++ b/tests/baselines/reference/es6modulekindWithES5Target6(target=es5).types @@ -0,0 +1,28 @@ +//// [tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target6.ts] //// + +=== es6modulekindWithES5Target6.ts === +export function f1(d = 0) { +>f1 : (d?: number) => void +> : ^ ^^^^^^^^^^^^^^^^^^ +>d : number +> : ^^^^^^ +>0 : 0 +> : ^ +} + +export function f2(...arg) { +>f2 : (...arg: any[]) => void +> : ^^^^ ^^^^^^^^^^^^^^^^ +>arg : any[] +> : ^^^^^ +} + +export default function f3(d = 0) { +>f3 : (d?: number) => void +> : ^ ^^^^^^^^^^^^^^^^^^ +>d : number +> : ^^^^^^ +>0 : 0 +> : ^ +} + diff --git a/tests/baselines/reference/es6modulekindWithES5Target7.js b/tests/baselines/reference/es6modulekindWithES5Target7(target=es2015).js similarity index 100% rename from tests/baselines/reference/es6modulekindWithES5Target7.js rename to tests/baselines/reference/es6modulekindWithES5Target7(target=es2015).js diff --git a/tests/baselines/reference/es6modulekindWithES5Target7.symbols b/tests/baselines/reference/es6modulekindWithES5Target7(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es6modulekindWithES5Target7.symbols rename to tests/baselines/reference/es6modulekindWithES5Target7(target=es2015).symbols diff --git a/tests/baselines/reference/es6modulekindWithES5Target7.types b/tests/baselines/reference/es6modulekindWithES5Target7(target=es2015).types similarity index 100% rename from tests/baselines/reference/es6modulekindWithES5Target7.types rename to tests/baselines/reference/es6modulekindWithES5Target7(target=es2015).types diff --git a/tests/baselines/reference/es6modulekindWithES5Target7(target=es5).js b/tests/baselines/reference/es6modulekindWithES5Target7(target=es5).js new file mode 100644 index 0000000000000..b36af98a3a637 --- /dev/null +++ b/tests/baselines/reference/es6modulekindWithES5Target7(target=es5).js @@ -0,0 +1,17 @@ +//// [tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target7.ts] //// + +//// [es6modulekindWithES5Target7.ts] +export namespace N { + var x = 0; +} + +export namespace N2 { + export interface I { } +} + + +//// [es6modulekindWithES5Target7.js] +export var N; +(function (N) { + var x = 0; +})(N || (N = {})); diff --git a/tests/baselines/reference/es6modulekindWithES5Target7(target=es5).symbols b/tests/baselines/reference/es6modulekindWithES5Target7(target=es5).symbols new file mode 100644 index 0000000000000..0ed258741dea9 --- /dev/null +++ b/tests/baselines/reference/es6modulekindWithES5Target7(target=es5).symbols @@ -0,0 +1,17 @@ +//// [tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target7.ts] //// + +=== es6modulekindWithES5Target7.ts === +export namespace N { +>N : Symbol(N, Decl(es6modulekindWithES5Target7.ts, 0, 0)) + + var x = 0; +>x : Symbol(x, Decl(es6modulekindWithES5Target7.ts, 1, 7)) +} + +export namespace N2 { +>N2 : Symbol(N2, Decl(es6modulekindWithES5Target7.ts, 2, 1)) + + export interface I { } +>I : Symbol(I, Decl(es6modulekindWithES5Target7.ts, 4, 21)) +} + diff --git a/tests/baselines/reference/es6modulekindWithES5Target7(target=es5).types b/tests/baselines/reference/es6modulekindWithES5Target7(target=es5).types new file mode 100644 index 0000000000000..2bcf14bec36c7 --- /dev/null +++ b/tests/baselines/reference/es6modulekindWithES5Target7(target=es5).types @@ -0,0 +1,18 @@ +//// [tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target7.ts] //// + +=== es6modulekindWithES5Target7.ts === +export namespace N { +>N : typeof N +> : ^^^^^^^^ + + var x = 0; +>x : number +> : ^^^^^^ +>0 : 0 +> : ^ +} + +export namespace N2 { + export interface I { } +} + diff --git a/tests/baselines/reference/es6modulekindWithES5Target8(target=es2015).js b/tests/baselines/reference/es6modulekindWithES5Target8(target=es2015).js new file mode 100644 index 0000000000000..888b1d5f83344 --- /dev/null +++ b/tests/baselines/reference/es6modulekindWithES5Target8(target=es2015).js @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target8.ts] //// + +//// [es6modulekindWithES5Target8.ts] +export const c = 0; +export let l = 1; + +//// [es6modulekindWithES5Target8.js] +export const c = 0; +export let l = 1; diff --git a/tests/baselines/reference/es6modulekindWithES5Target8.symbols b/tests/baselines/reference/es6modulekindWithES5Target8(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es6modulekindWithES5Target8.symbols rename to tests/baselines/reference/es6modulekindWithES5Target8(target=es2015).symbols diff --git a/tests/baselines/reference/es6modulekindWithES5Target8.types b/tests/baselines/reference/es6modulekindWithES5Target8(target=es2015).types similarity index 100% rename from tests/baselines/reference/es6modulekindWithES5Target8.types rename to tests/baselines/reference/es6modulekindWithES5Target8(target=es2015).types diff --git a/tests/baselines/reference/es6modulekindWithES5Target8.js b/tests/baselines/reference/es6modulekindWithES5Target8(target=es5).js similarity index 100% rename from tests/baselines/reference/es6modulekindWithES5Target8.js rename to tests/baselines/reference/es6modulekindWithES5Target8(target=es5).js diff --git a/tests/baselines/reference/es6modulekindWithES5Target8(target=es5).symbols b/tests/baselines/reference/es6modulekindWithES5Target8(target=es5).symbols new file mode 100644 index 0000000000000..f694db23c8830 --- /dev/null +++ b/tests/baselines/reference/es6modulekindWithES5Target8(target=es5).symbols @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target8.ts] //// + +=== es6modulekindWithES5Target8.ts === +export const c = 0; +>c : Symbol(c, Decl(es6modulekindWithES5Target8.ts, 0, 12)) + +export let l = 1; +>l : Symbol(l, Decl(es6modulekindWithES5Target8.ts, 1, 10)) + diff --git a/tests/baselines/reference/es6modulekindWithES5Target8(target=es5).types b/tests/baselines/reference/es6modulekindWithES5Target8(target=es5).types new file mode 100644 index 0000000000000..2c271b1c139c4 --- /dev/null +++ b/tests/baselines/reference/es6modulekindWithES5Target8(target=es5).types @@ -0,0 +1,15 @@ +//// [tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target8.ts] //// + +=== es6modulekindWithES5Target8.ts === +export const c = 0; +>c : 0 +> : ^ +>0 : 0 +> : ^ + +export let l = 1; +>l : number +> : ^^^^^^ +>1 : 1 +> : ^ + diff --git a/tests/baselines/reference/es6modulekindWithES5Target9.errors.txt b/tests/baselines/reference/es6modulekindWithES5Target9(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/es6modulekindWithES5Target9.errors.txt rename to tests/baselines/reference/es6modulekindWithES5Target9(target=es2015).errors.txt diff --git a/tests/baselines/reference/es6modulekindWithES5Target9.js b/tests/baselines/reference/es6modulekindWithES5Target9(target=es2015).js similarity index 100% rename from tests/baselines/reference/es6modulekindWithES5Target9.js rename to tests/baselines/reference/es6modulekindWithES5Target9(target=es2015).js diff --git a/tests/baselines/reference/es6modulekindWithES5Target9.symbols b/tests/baselines/reference/es6modulekindWithES5Target9(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/es6modulekindWithES5Target9.symbols rename to tests/baselines/reference/es6modulekindWithES5Target9(target=es2015).symbols diff --git a/tests/baselines/reference/es6modulekindWithES5Target9.types b/tests/baselines/reference/es6modulekindWithES5Target9(target=es2015).types similarity index 100% rename from tests/baselines/reference/es6modulekindWithES5Target9.types rename to tests/baselines/reference/es6modulekindWithES5Target9(target=es2015).types diff --git a/tests/baselines/reference/es6modulekindWithES5Target9(target=es5).errors.txt b/tests/baselines/reference/es6modulekindWithES5Target9(target=es5).errors.txt new file mode 100644 index 0000000000000..7753787618825 --- /dev/null +++ b/tests/baselines/reference/es6modulekindWithES5Target9(target=es5).errors.txt @@ -0,0 +1,36 @@ +es6modulekindWithES5Target9.ts(1,15): error TS2307: Cannot find module 'mod' or its corresponding type declarations. +es6modulekindWithES5Target9.ts(3,17): error TS2307: Cannot find module 'mod' or its corresponding type declarations. +es6modulekindWithES5Target9.ts(5,20): error TS2307: Cannot find module 'mod' or its corresponding type declarations. +es6modulekindWithES5Target9.ts(13,15): error TS2307: Cannot find module 'mod' or its corresponding type declarations. +es6modulekindWithES5Target9.ts(15,17): error TS2307: Cannot find module 'mod' or its corresponding type declarations. + + +==== es6modulekindWithES5Target9.ts (5 errors) ==== + import d from "mod"; + ~~~~~ +!!! error TS2307: Cannot find module 'mod' or its corresponding type declarations. + + import {a} from "mod"; + ~~~~~ +!!! error TS2307: Cannot find module 'mod' or its corresponding type declarations. + + import * as M from "mod"; + ~~~~~ +!!! error TS2307: Cannot find module 'mod' or its corresponding type declarations. + + export {a}; + + export {M}; + + export {d}; + + export * from "mod"; + ~~~~~ +!!! error TS2307: Cannot find module 'mod' or its corresponding type declarations. + + export {b} from "mod" + ~~~~~ +!!! error TS2307: Cannot find module 'mod' or its corresponding type declarations. + + export default d; + \ No newline at end of file diff --git a/tests/baselines/reference/es6modulekindWithES5Target9(target=es5).js b/tests/baselines/reference/es6modulekindWithES5Target9(target=es5).js new file mode 100644 index 0000000000000..b4ecc346c8f23 --- /dev/null +++ b/tests/baselines/reference/es6modulekindWithES5Target9(target=es5).js @@ -0,0 +1,32 @@ +//// [tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target9.ts] //// + +//// [es6modulekindWithES5Target9.ts] +import d from "mod"; + +import {a} from "mod"; + +import * as M from "mod"; + +export {a}; + +export {M}; + +export {d}; + +export * from "mod"; + +export {b} from "mod" + +export default d; + + +//// [es6modulekindWithES5Target9.js] +import d from "mod"; +import { a } from "mod"; +import * as M from "mod"; +export { a }; +export { M }; +export { d }; +export * from "mod"; +export { b } from "mod"; +export default d; diff --git a/tests/baselines/reference/es6modulekindWithES5Target9(target=es5).symbols b/tests/baselines/reference/es6modulekindWithES5Target9(target=es5).symbols new file mode 100644 index 0000000000000..653c60f0dabe4 --- /dev/null +++ b/tests/baselines/reference/es6modulekindWithES5Target9(target=es5).symbols @@ -0,0 +1,29 @@ +//// [tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target9.ts] //// + +=== es6modulekindWithES5Target9.ts === +import d from "mod"; +>d : Symbol(d, Decl(es6modulekindWithES5Target9.ts, 0, 6)) + +import {a} from "mod"; +>a : Symbol(a, Decl(es6modulekindWithES5Target9.ts, 2, 8)) + +import * as M from "mod"; +>M : Symbol(M, Decl(es6modulekindWithES5Target9.ts, 4, 6)) + +export {a}; +>a : Symbol(a, Decl(es6modulekindWithES5Target9.ts, 6, 8)) + +export {M}; +>M : Symbol(M, Decl(es6modulekindWithES5Target9.ts, 8, 8)) + +export {d}; +>d : Symbol(d, Decl(es6modulekindWithES5Target9.ts, 10, 8)) + +export * from "mod"; + +export {b} from "mod" +>b : Symbol(b, Decl(es6modulekindWithES5Target9.ts, 14, 8)) + +export default d; +>d : Symbol(d, Decl(es6modulekindWithES5Target9.ts, 0, 6)) + diff --git a/tests/baselines/reference/es6modulekindWithES5Target9(target=es5).types b/tests/baselines/reference/es6modulekindWithES5Target9(target=es5).types new file mode 100644 index 0000000000000..44beb49de3711 --- /dev/null +++ b/tests/baselines/reference/es6modulekindWithES5Target9(target=es5).types @@ -0,0 +1,37 @@ +//// [tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target9.ts] //// + +=== es6modulekindWithES5Target9.ts === +import d from "mod"; +>d : any +> : ^^^ + +import {a} from "mod"; +>a : any +> : ^^^ + +import * as M from "mod"; +>M : any +> : ^^^ + +export {a}; +>a : any +> : ^^^ + +export {M}; +>M : any +> : ^^^ + +export {d}; +>d : any +> : ^^^ + +export * from "mod"; + +export {b} from "mod" +>b : any +> : ^^^ + +export default d; +>d : any +> : ^^^ + diff --git a/tests/baselines/reference/esDecorators-classDeclaration-classThisReference.es5(target=es2015).js b/tests/baselines/reference/esDecorators-classDeclaration-classThisReference.es5(target=es2015).js new file mode 100644 index 0000000000000..e913ff0771e47 --- /dev/null +++ b/tests/baselines/reference/esDecorators-classDeclaration-classThisReference.es5(target=es2015).js @@ -0,0 +1,40 @@ +//// [tests/cases/conformance/esDecorators/classDeclaration/classThisReference/esDecorators-classDeclaration-classThisReference.es5.ts] //// + +//// [esDecorators-classDeclaration-classThisReference.es5.ts] +declare let dec: any; + +@dec +class C { + static { this; } + static x: any = this; + static m() { this; } + static get g() { return this; } +} + + +//// [esDecorators-classDeclaration-classThisReference.es5.js] +let C = (() => { + let _classDecorators = [dec]; + let _classDescriptor; + let _classExtraInitializers = []; + let _classThis; + var C = _classThis = class { + static m() { this; } + static get g() { return this; } + }; + __setFunctionName(_classThis, "C"); + (() => { + const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0; + __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers); + C = _classThis = _classDescriptor.value; + if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata }); + })(); + (() => { + _classThis; + })(); + _classThis.x = _classThis; + (() => { + __runInitializers(_classThis, _classExtraInitializers); + })(); + return C = _classThis; +})(); diff --git a/tests/baselines/reference/esDecorators-classDeclaration-classThisReference.es5.js b/tests/baselines/reference/esDecorators-classDeclaration-classThisReference.es5(target=es5).js similarity index 100% rename from tests/baselines/reference/esDecorators-classDeclaration-classThisReference.es5.js rename to tests/baselines/reference/esDecorators-classDeclaration-classThisReference.es5(target=es5).js diff --git a/tests/baselines/reference/esModuleInteropWithExportStar(target=es2015).js b/tests/baselines/reference/esModuleInteropWithExportStar(target=es2015).js new file mode 100644 index 0000000000000..c8043988099a0 --- /dev/null +++ b/tests/baselines/reference/esModuleInteropWithExportStar(target=es2015).js @@ -0,0 +1,20 @@ +//// [tests/cases/compiler/esModuleInteropWithExportStar.ts] //// + +//// [fs.d.ts] +export const x: number; +//// [mjts.ts] +import * as fs from "./fs"; + +fs; + +export * from "./fs"; +export {x} from "./fs"; +export {x as y} from "./fs"; + + +//// [mjts.js] +import * as fs from "./fs"; +fs; +export * from "./fs"; +export { x } from "./fs"; +export { x as y } from "./fs"; diff --git a/tests/baselines/reference/esModuleInteropWithExportStar.symbols b/tests/baselines/reference/esModuleInteropWithExportStar(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/esModuleInteropWithExportStar.symbols rename to tests/baselines/reference/esModuleInteropWithExportStar(target=es2015).symbols diff --git a/tests/baselines/reference/esModuleInteropWithExportStar.types b/tests/baselines/reference/esModuleInteropWithExportStar(target=es2015).types similarity index 100% rename from tests/baselines/reference/esModuleInteropWithExportStar.types rename to tests/baselines/reference/esModuleInteropWithExportStar(target=es2015).types diff --git a/tests/baselines/reference/esModuleInteropWithExportStar.js b/tests/baselines/reference/esModuleInteropWithExportStar(target=es5).js similarity index 100% rename from tests/baselines/reference/esModuleInteropWithExportStar.js rename to tests/baselines/reference/esModuleInteropWithExportStar(target=es5).js diff --git a/tests/baselines/reference/esModuleInteropWithExportStar(target=es5).symbols b/tests/baselines/reference/esModuleInteropWithExportStar(target=es5).symbols new file mode 100644 index 0000000000000..5a534253e0d05 --- /dev/null +++ b/tests/baselines/reference/esModuleInteropWithExportStar(target=es5).symbols @@ -0,0 +1,21 @@ +//// [tests/cases/compiler/esModuleInteropWithExportStar.ts] //// + +=== fs.d.ts === +export const x: number; +>x : Symbol(x, Decl(fs.d.ts, 0, 12)) + +=== mjts.ts === +import * as fs from "./fs"; +>fs : Symbol(fs, Decl(mjts.ts, 0, 6)) + +fs; +>fs : Symbol(fs, Decl(mjts.ts, 0, 6)) + +export * from "./fs"; +export {x} from "./fs"; +>x : Symbol(x, Decl(mjts.ts, 5, 8)) + +export {x as y} from "./fs"; +>x : Symbol(fs.x, Decl(fs.d.ts, 0, 12)) +>y : Symbol(y, Decl(mjts.ts, 6, 8)) + diff --git a/tests/baselines/reference/esModuleInteropWithExportStar(target=es5).types b/tests/baselines/reference/esModuleInteropWithExportStar(target=es5).types new file mode 100644 index 0000000000000..aab09d9e8a1f1 --- /dev/null +++ b/tests/baselines/reference/esModuleInteropWithExportStar(target=es5).types @@ -0,0 +1,27 @@ +//// [tests/cases/compiler/esModuleInteropWithExportStar.ts] //// + +=== fs.d.ts === +export const x: number; +>x : number +> : ^^^^^^ + +=== mjts.ts === +import * as fs from "./fs"; +>fs : typeof fs +> : ^^^^^^^^^ + +fs; +>fs : typeof fs +> : ^^^^^^^^^ + +export * from "./fs"; +export {x} from "./fs"; +>x : number +> : ^^^^^^ + +export {x as y} from "./fs"; +>x : number +> : ^^^^^^ +>y : number +> : ^^^^^^ + diff --git a/tests/baselines/reference/esnextmodulekindWithES5Target(target=es2015).js b/tests/baselines/reference/esnextmodulekindWithES5Target(target=es2015).js new file mode 100644 index 0000000000000..31331dbc95b84 --- /dev/null +++ b/tests/baselines/reference/esnextmodulekindWithES5Target(target=es2015).js @@ -0,0 +1,53 @@ +//// [tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target.ts] //// + +//// [esnextmodulekindWithES5Target.ts] +export class C { + static s = 0; + p = 1; + method() { } +} +export { C as C2 }; + +declare function foo(...args: any[]): any; +@foo +export class D { + static s = 0; + p = 1; + method() { } +} +export { D as D2 }; + +class E { } +export {E}; + + +//// [esnextmodulekindWithES5Target.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +export class C { + constructor() { + this.p = 1; + } + method() { } +} +C.s = 0; +export { C as C2 }; +let D = class D { + constructor() { + this.p = 1; + } + method() { } +}; +D.s = 0; +D = __decorate([ + foo +], D); +export { D }; +export { D as D2 }; +class E { +} +export { E }; diff --git a/tests/baselines/reference/esnextmodulekindWithES5Target.symbols b/tests/baselines/reference/esnextmodulekindWithES5Target(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/esnextmodulekindWithES5Target.symbols rename to tests/baselines/reference/esnextmodulekindWithES5Target(target=es2015).symbols diff --git a/tests/baselines/reference/esnextmodulekindWithES5Target.types b/tests/baselines/reference/esnextmodulekindWithES5Target(target=es2015).types similarity index 100% rename from tests/baselines/reference/esnextmodulekindWithES5Target.types rename to tests/baselines/reference/esnextmodulekindWithES5Target(target=es2015).types diff --git a/tests/baselines/reference/esnextmodulekindWithES5Target.js b/tests/baselines/reference/esnextmodulekindWithES5Target(target=es5).js similarity index 100% rename from tests/baselines/reference/esnextmodulekindWithES5Target.js rename to tests/baselines/reference/esnextmodulekindWithES5Target(target=es5).js diff --git a/tests/baselines/reference/esnextmodulekindWithES5Target(target=es5).symbols b/tests/baselines/reference/esnextmodulekindWithES5Target(target=es5).symbols new file mode 100644 index 0000000000000..032500b10b8d6 --- /dev/null +++ b/tests/baselines/reference/esnextmodulekindWithES5Target(target=es5).symbols @@ -0,0 +1,48 @@ +//// [tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target.ts] //// + +=== esnextmodulekindWithES5Target.ts === +export class C { +>C : Symbol(C, Decl(esnextmodulekindWithES5Target.ts, 0, 0)) + + static s = 0; +>s : Symbol(C.s, Decl(esnextmodulekindWithES5Target.ts, 0, 16)) + + p = 1; +>p : Symbol(C.p, Decl(esnextmodulekindWithES5Target.ts, 1, 17)) + + method() { } +>method : Symbol(C.method, Decl(esnextmodulekindWithES5Target.ts, 2, 10)) +} +export { C as C2 }; +>C : Symbol(C, Decl(esnextmodulekindWithES5Target.ts, 0, 0)) +>C2 : Symbol(C2, Decl(esnextmodulekindWithES5Target.ts, 5, 8)) + +declare function foo(...args: any[]): any; +>foo : Symbol(foo, Decl(esnextmodulekindWithES5Target.ts, 5, 19)) +>args : Symbol(args, Decl(esnextmodulekindWithES5Target.ts, 7, 21)) + +@foo +>foo : Symbol(foo, Decl(esnextmodulekindWithES5Target.ts, 5, 19)) + +export class D { +>D : Symbol(D, Decl(esnextmodulekindWithES5Target.ts, 7, 42)) + + static s = 0; +>s : Symbol(D.s, Decl(esnextmodulekindWithES5Target.ts, 9, 16)) + + p = 1; +>p : Symbol(D.p, Decl(esnextmodulekindWithES5Target.ts, 10, 17)) + + method() { } +>method : Symbol(D.method, Decl(esnextmodulekindWithES5Target.ts, 11, 10)) +} +export { D as D2 }; +>D : Symbol(D, Decl(esnextmodulekindWithES5Target.ts, 7, 42)) +>D2 : Symbol(D2, Decl(esnextmodulekindWithES5Target.ts, 14, 8)) + +class E { } +>E : Symbol(E, Decl(esnextmodulekindWithES5Target.ts, 14, 19)) + +export {E}; +>E : Symbol(E, Decl(esnextmodulekindWithES5Target.ts, 17, 8)) + diff --git a/tests/baselines/reference/esnextmodulekindWithES5Target(target=es5).types b/tests/baselines/reference/esnextmodulekindWithES5Target(target=es5).types new file mode 100644 index 0000000000000..5cd5a5032fb6b --- /dev/null +++ b/tests/baselines/reference/esnextmodulekindWithES5Target(target=es5).types @@ -0,0 +1,73 @@ +//// [tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target.ts] //// + +=== esnextmodulekindWithES5Target.ts === +export class C { +>C : C +> : ^ + + static s = 0; +>s : number +> : ^^^^^^ +>0 : 0 +> : ^ + + p = 1; +>p : number +> : ^^^^^^ +>1 : 1 +> : ^ + + method() { } +>method : () => void +> : ^^^^^^^^^^ +} +export { C as C2 }; +>C : typeof C +> : ^^^^^^^^ +>C2 : typeof C +> : ^^^^^^^^ + +declare function foo(...args: any[]): any; +>foo : (...args: any[]) => any +> : ^^^^ ^^ ^^^^^ +>args : any[] +> : ^^^^^ + +@foo +>foo : (...args: any[]) => any +> : ^^^^ ^^ ^^^^^ + +export class D { +>D : D +> : ^ + + static s = 0; +>s : number +> : ^^^^^^ +>0 : 0 +> : ^ + + p = 1; +>p : number +> : ^^^^^^ +>1 : 1 +> : ^ + + method() { } +>method : () => void +> : ^^^^^^^^^^ +} +export { D as D2 }; +>D : typeof D +> : ^^^^^^^^ +>D2 : typeof D +> : ^^^^^^^^ + +class E { } +>E : E +> : ^ + +export {E}; +>E : typeof E +> : ^^^^^^^^ + diff --git a/tests/baselines/reference/esnextmodulekindWithES5Target10.errors.txt b/tests/baselines/reference/esnextmodulekindWithES5Target10(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/esnextmodulekindWithES5Target10.errors.txt rename to tests/baselines/reference/esnextmodulekindWithES5Target10(target=es2015).errors.txt diff --git a/tests/baselines/reference/esnextmodulekindWithES5Target10.js b/tests/baselines/reference/esnextmodulekindWithES5Target10(target=es2015).js similarity index 100% rename from tests/baselines/reference/esnextmodulekindWithES5Target10.js rename to tests/baselines/reference/esnextmodulekindWithES5Target10(target=es2015).js diff --git a/tests/baselines/reference/esnextmodulekindWithES5Target10.symbols b/tests/baselines/reference/esnextmodulekindWithES5Target10(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/esnextmodulekindWithES5Target10.symbols rename to tests/baselines/reference/esnextmodulekindWithES5Target10(target=es2015).symbols diff --git a/tests/baselines/reference/esnextmodulekindWithES5Target10.types b/tests/baselines/reference/esnextmodulekindWithES5Target10(target=es2015).types similarity index 100% rename from tests/baselines/reference/esnextmodulekindWithES5Target10.types rename to tests/baselines/reference/esnextmodulekindWithES5Target10(target=es2015).types diff --git a/tests/baselines/reference/esnextmodulekindWithES5Target10(target=es5).errors.txt b/tests/baselines/reference/esnextmodulekindWithES5Target10(target=es5).errors.txt new file mode 100644 index 0000000000000..6d6f0ee1c7f09 --- /dev/null +++ b/tests/baselines/reference/esnextmodulekindWithES5Target10(target=es5).errors.txt @@ -0,0 +1,18 @@ +esnextmodulekindWithES5Target10.ts(1,1): error TS1202: Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead. +esnextmodulekindWithES5Target10.ts(1,20): error TS2307: Cannot find module 'mod' or its corresponding type declarations. +esnextmodulekindWithES5Target10.ts(6,1): error TS1203: Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead. + + +==== esnextmodulekindWithES5Target10.ts (3 errors) ==== + import i = require("mod"); // Error; + ~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS1202: Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead. + ~~~~~ +!!! error TS2307: Cannot find module 'mod' or its corresponding type declarations. + + + namespace N { + } + export = N; // Error + ~~~~~~~~~~~ +!!! error TS1203: Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead. \ No newline at end of file diff --git a/tests/baselines/reference/esnextmodulekindWithES5Target10(target=es5).js b/tests/baselines/reference/esnextmodulekindWithES5Target10(target=es5).js new file mode 100644 index 0000000000000..04af9db9f94b6 --- /dev/null +++ b/tests/baselines/reference/esnextmodulekindWithES5Target10(target=es5).js @@ -0,0 +1,12 @@ +//// [tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target10.ts] //// + +//// [esnextmodulekindWithES5Target10.ts] +import i = require("mod"); // Error; + + +namespace N { +} +export = N; // Error + +//// [esnextmodulekindWithES5Target10.js] +export {}; diff --git a/tests/baselines/reference/esnextmodulekindWithES5Target10(target=es5).symbols b/tests/baselines/reference/esnextmodulekindWithES5Target10(target=es5).symbols new file mode 100644 index 0000000000000..f4ce10b67b58a --- /dev/null +++ b/tests/baselines/reference/esnextmodulekindWithES5Target10(target=es5).symbols @@ -0,0 +1,13 @@ +//// [tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target10.ts] //// + +=== esnextmodulekindWithES5Target10.ts === +import i = require("mod"); // Error; +>i : Symbol(i, Decl(esnextmodulekindWithES5Target10.ts, 0, 0)) + + +namespace N { +>N : Symbol(N, Decl(esnextmodulekindWithES5Target10.ts, 0, 26)) +} +export = N; // Error +>N : Symbol(N, Decl(esnextmodulekindWithES5Target10.ts, 0, 26)) + diff --git a/tests/baselines/reference/esnextmodulekindWithES5Target10(target=es5).types b/tests/baselines/reference/esnextmodulekindWithES5Target10(target=es5).types new file mode 100644 index 0000000000000..4e74bda1479c0 --- /dev/null +++ b/tests/baselines/reference/esnextmodulekindWithES5Target10(target=es5).types @@ -0,0 +1,14 @@ +//// [tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target10.ts] //// + +=== esnextmodulekindWithES5Target10.ts === +import i = require("mod"); // Error; +>i : any +> : ^^^ + + +namespace N { +} +export = N; // Error +>N : any +> : ^^^ + diff --git a/tests/baselines/reference/esnextmodulekindWithES5Target11(target=es2015).js b/tests/baselines/reference/esnextmodulekindWithES5Target11(target=es2015).js new file mode 100644 index 0000000000000..7302830a7af9d --- /dev/null +++ b/tests/baselines/reference/esnextmodulekindWithES5Target11(target=es2015).js @@ -0,0 +1,32 @@ +//// [tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target11.ts] //// + +//// [esnextmodulekindWithES5Target11.ts] +declare function foo(...args: any[]): any; +@foo +export default class C { + static x() { return C.y; } + static y = 1 + p = 1; + method() { } +} + +//// [esnextmodulekindWithES5Target11.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var C_1; +let C = C_1 = class C { + constructor() { + this.p = 1; + } + static x() { return C_1.y; } + method() { } +}; +C.y = 1; +C = C_1 = __decorate([ + foo +], C); +export default C; diff --git a/tests/baselines/reference/esnextmodulekindWithES5Target11.symbols b/tests/baselines/reference/esnextmodulekindWithES5Target11(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/esnextmodulekindWithES5Target11.symbols rename to tests/baselines/reference/esnextmodulekindWithES5Target11(target=es2015).symbols diff --git a/tests/baselines/reference/esnextmodulekindWithES5Target11.types b/tests/baselines/reference/esnextmodulekindWithES5Target11(target=es2015).types similarity index 100% rename from tests/baselines/reference/esnextmodulekindWithES5Target11.types rename to tests/baselines/reference/esnextmodulekindWithES5Target11(target=es2015).types diff --git a/tests/baselines/reference/esnextmodulekindWithES5Target11.js b/tests/baselines/reference/esnextmodulekindWithES5Target11(target=es5).js similarity index 100% rename from tests/baselines/reference/esnextmodulekindWithES5Target11.js rename to tests/baselines/reference/esnextmodulekindWithES5Target11(target=es5).js diff --git a/tests/baselines/reference/esnextmodulekindWithES5Target11(target=es5).symbols b/tests/baselines/reference/esnextmodulekindWithES5Target11(target=es5).symbols new file mode 100644 index 0000000000000..e98a5b6401877 --- /dev/null +++ b/tests/baselines/reference/esnextmodulekindWithES5Target11(target=es5).symbols @@ -0,0 +1,28 @@ +//// [tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target11.ts] //// + +=== esnextmodulekindWithES5Target11.ts === +declare function foo(...args: any[]): any; +>foo : Symbol(foo, Decl(esnextmodulekindWithES5Target11.ts, 0, 0)) +>args : Symbol(args, Decl(esnextmodulekindWithES5Target11.ts, 0, 21)) + +@foo +>foo : Symbol(foo, Decl(esnextmodulekindWithES5Target11.ts, 0, 0)) + +export default class C { +>C : Symbol(C, Decl(esnextmodulekindWithES5Target11.ts, 0, 42)) + + static x() { return C.y; } +>x : Symbol(C.x, Decl(esnextmodulekindWithES5Target11.ts, 2, 24)) +>C.y : Symbol(C.y, Decl(esnextmodulekindWithES5Target11.ts, 3, 30)) +>C : Symbol(C, Decl(esnextmodulekindWithES5Target11.ts, 0, 42)) +>y : Symbol(C.y, Decl(esnextmodulekindWithES5Target11.ts, 3, 30)) + + static y = 1 +>y : Symbol(C.y, Decl(esnextmodulekindWithES5Target11.ts, 3, 30)) + + p = 1; +>p : Symbol(C.p, Decl(esnextmodulekindWithES5Target11.ts, 4, 16)) + + method() { } +>method : Symbol(C.method, Decl(esnextmodulekindWithES5Target11.ts, 5, 10)) +} diff --git a/tests/baselines/reference/esnextmodulekindWithES5Target11(target=es5).types b/tests/baselines/reference/esnextmodulekindWithES5Target11(target=es5).types new file mode 100644 index 0000000000000..2fab10f702960 --- /dev/null +++ b/tests/baselines/reference/esnextmodulekindWithES5Target11(target=es5).types @@ -0,0 +1,43 @@ +//// [tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target11.ts] //// + +=== esnextmodulekindWithES5Target11.ts === +declare function foo(...args: any[]): any; +>foo : (...args: any[]) => any +> : ^^^^ ^^ ^^^^^ +>args : any[] +> : ^^^^^ + +@foo +>foo : (...args: any[]) => any +> : ^^^^ ^^ ^^^^^ + +export default class C { +>C : C +> : ^ + + static x() { return C.y; } +>x : () => number +> : ^^^^^^^^^^^^ +>C.y : number +> : ^^^^^^ +>C : typeof C +> : ^^^^^^^^ +>y : number +> : ^^^^^^ + + static y = 1 +>y : number +> : ^^^^^^ +>1 : 1 +> : ^ + + p = 1; +>p : number +> : ^^^^^^ +>1 : 1 +> : ^ + + method() { } +>method : () => void +> : ^^^^^^^^^^ +} diff --git a/tests/baselines/reference/esnextmodulekindWithES5Target12(target=es2015).js b/tests/baselines/reference/esnextmodulekindWithES5Target12(target=es2015).js new file mode 100644 index 0000000000000..f239bcd8e7b2c --- /dev/null +++ b/tests/baselines/reference/esnextmodulekindWithES5Target12(target=es2015).js @@ -0,0 +1,68 @@ +//// [tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target12.ts] //// + +//// [esnextmodulekindWithES5Target12.ts] +export class C { +} + +export namespace C { + export const x = 1; +} + +export enum E { + w = 1 +} + +export enum E { + x = 2 +} + +export namespace E { + export const y = 1; +} + +export namespace E { + export const z = 1; +} + +export namespace N { +} + +export namespace N { + export const x = 1; +} + +export function F() { +} + +export namespace F { + export const x = 1; +} + +//// [esnextmodulekindWithES5Target12.js] +export class C { +} +(function (C) { + C.x = 1; +})(C || (C = {})); +export var E; +(function (E) { + E[E["w"] = 1] = "w"; +})(E || (E = {})); +(function (E) { + E[E["x"] = 2] = "x"; +})(E || (E = {})); +(function (E) { + E.y = 1; +})(E || (E = {})); +(function (E) { + E.z = 1; +})(E || (E = {})); +export var N; +(function (N) { + N.x = 1; +})(N || (N = {})); +export function F() { +} +(function (F) { + F.x = 1; +})(F || (F = {})); diff --git a/tests/baselines/reference/esnextmodulekindWithES5Target12.symbols b/tests/baselines/reference/esnextmodulekindWithES5Target12(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/esnextmodulekindWithES5Target12.symbols rename to tests/baselines/reference/esnextmodulekindWithES5Target12(target=es2015).symbols diff --git a/tests/baselines/reference/esnextmodulekindWithES5Target12.types b/tests/baselines/reference/esnextmodulekindWithES5Target12(target=es2015).types similarity index 100% rename from tests/baselines/reference/esnextmodulekindWithES5Target12.types rename to tests/baselines/reference/esnextmodulekindWithES5Target12(target=es2015).types diff --git a/tests/baselines/reference/esnextmodulekindWithES5Target12.js b/tests/baselines/reference/esnextmodulekindWithES5Target12(target=es5).js similarity index 100% rename from tests/baselines/reference/esnextmodulekindWithES5Target12.js rename to tests/baselines/reference/esnextmodulekindWithES5Target12(target=es5).js diff --git a/tests/baselines/reference/esnextmodulekindWithES5Target12(target=es5).symbols b/tests/baselines/reference/esnextmodulekindWithES5Target12(target=es5).symbols new file mode 100644 index 0000000000000..312784c377e67 --- /dev/null +++ b/tests/baselines/reference/esnextmodulekindWithES5Target12(target=es5).symbols @@ -0,0 +1,63 @@ +//// [tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target12.ts] //// + +=== esnextmodulekindWithES5Target12.ts === +export class C { +>C : Symbol(C, Decl(esnextmodulekindWithES5Target12.ts, 0, 0), Decl(esnextmodulekindWithES5Target12.ts, 1, 1)) +} + +export namespace C { +>C : Symbol(C, Decl(esnextmodulekindWithES5Target12.ts, 0, 0), Decl(esnextmodulekindWithES5Target12.ts, 1, 1)) + + export const x = 1; +>x : Symbol(x, Decl(esnextmodulekindWithES5Target12.ts, 4, 16)) +} + +export enum E { +>E : Symbol(E, Decl(esnextmodulekindWithES5Target12.ts, 5, 1), Decl(esnextmodulekindWithES5Target12.ts, 9, 1), Decl(esnextmodulekindWithES5Target12.ts, 13, 1), Decl(esnextmodulekindWithES5Target12.ts, 17, 1)) + + w = 1 +>w : Symbol(E.w, Decl(esnextmodulekindWithES5Target12.ts, 7, 15)) +} + +export enum E { +>E : Symbol(E, Decl(esnextmodulekindWithES5Target12.ts, 5, 1), Decl(esnextmodulekindWithES5Target12.ts, 9, 1), Decl(esnextmodulekindWithES5Target12.ts, 13, 1), Decl(esnextmodulekindWithES5Target12.ts, 17, 1)) + + x = 2 +>x : Symbol(E.x, Decl(esnextmodulekindWithES5Target12.ts, 11, 15)) +} + +export namespace E { +>E : Symbol(E, Decl(esnextmodulekindWithES5Target12.ts, 5, 1), Decl(esnextmodulekindWithES5Target12.ts, 9, 1), Decl(esnextmodulekindWithES5Target12.ts, 13, 1), Decl(esnextmodulekindWithES5Target12.ts, 17, 1)) + + export const y = 1; +>y : Symbol(y, Decl(esnextmodulekindWithES5Target12.ts, 16, 16)) +} + +export namespace E { +>E : Symbol(E, Decl(esnextmodulekindWithES5Target12.ts, 5, 1), Decl(esnextmodulekindWithES5Target12.ts, 9, 1), Decl(esnextmodulekindWithES5Target12.ts, 13, 1), Decl(esnextmodulekindWithES5Target12.ts, 17, 1)) + + export const z = 1; +>z : Symbol(z, Decl(esnextmodulekindWithES5Target12.ts, 20, 16)) +} + +export namespace N { +>N : Symbol(N, Decl(esnextmodulekindWithES5Target12.ts, 21, 1), Decl(esnextmodulekindWithES5Target12.ts, 24, 1)) +} + +export namespace N { +>N : Symbol(N, Decl(esnextmodulekindWithES5Target12.ts, 21, 1), Decl(esnextmodulekindWithES5Target12.ts, 24, 1)) + + export const x = 1; +>x : Symbol(x, Decl(esnextmodulekindWithES5Target12.ts, 27, 16)) +} + +export function F() { +>F : Symbol(F, Decl(esnextmodulekindWithES5Target12.ts, 28, 1), Decl(esnextmodulekindWithES5Target12.ts, 31, 1)) +} + +export namespace F { +>F : Symbol(F, Decl(esnextmodulekindWithES5Target12.ts, 28, 1), Decl(esnextmodulekindWithES5Target12.ts, 31, 1)) + + export const x = 1; +>x : Symbol(x, Decl(esnextmodulekindWithES5Target12.ts, 34, 16)) +} diff --git a/tests/baselines/reference/esnextmodulekindWithES5Target12(target=es5).types b/tests/baselines/reference/esnextmodulekindWithES5Target12(target=es5).types new file mode 100644 index 0000000000000..12485b963a8af --- /dev/null +++ b/tests/baselines/reference/esnextmodulekindWithES5Target12(target=es5).types @@ -0,0 +1,92 @@ +//// [tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target12.ts] //// + +=== esnextmodulekindWithES5Target12.ts === +export class C { +>C : C +> : ^ +} + +export namespace C { +>C : typeof C +> : ^^^^^^^^ + + export const x = 1; +>x : 1 +> : ^ +>1 : 1 +> : ^ +} + +export enum E { +>E : E +> : ^ + + w = 1 +>w : E.w +> : ^^^ +>1 : 1 +> : ^ +} + +export enum E { +>E : E +> : ^ + + x = 2 +>x : E.x +> : ^^^ +>2 : 2 +> : ^ +} + +export namespace E { +>E : typeof E +> : ^^^^^^^^ + + export const y = 1; +>y : 1 +> : ^ +>1 : 1 +> : ^ +} + +export namespace E { +>E : typeof E +> : ^^^^^^^^ + + export const z = 1; +>z : 1 +> : ^ +>1 : 1 +> : ^ +} + +export namespace N { +} + +export namespace N { +>N : typeof N +> : ^^^^^^^^ + + export const x = 1; +>x : 1 +> : ^ +>1 : 1 +> : ^ +} + +export function F() { +>F : typeof F +> : ^^^^^^^^ +} + +export namespace F { +>F : typeof F +> : ^^^^^^^^ + + export const x = 1; +>x : 1 +> : ^ +>1 : 1 +> : ^ +} diff --git a/tests/baselines/reference/esnextmodulekindWithES5Target2(target=es2015).js b/tests/baselines/reference/esnextmodulekindWithES5Target2(target=es2015).js new file mode 100644 index 0000000000000..de55ce8409b3a --- /dev/null +++ b/tests/baselines/reference/esnextmodulekindWithES5Target2(target=es2015).js @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target2.ts] //// + +//// [esnextmodulekindWithES5Target2.ts] +export default class C { + static s = 0; + p = 1; + method() { } +} + + +//// [esnextmodulekindWithES5Target2.js] +class C { + constructor() { + this.p = 1; + } + method() { } +} +C.s = 0; +export default C; diff --git a/tests/baselines/reference/esnextmodulekindWithES5Target2.symbols b/tests/baselines/reference/esnextmodulekindWithES5Target2(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/esnextmodulekindWithES5Target2.symbols rename to tests/baselines/reference/esnextmodulekindWithES5Target2(target=es2015).symbols diff --git a/tests/baselines/reference/esnextmodulekindWithES5Target2.types b/tests/baselines/reference/esnextmodulekindWithES5Target2(target=es2015).types similarity index 100% rename from tests/baselines/reference/esnextmodulekindWithES5Target2.types rename to tests/baselines/reference/esnextmodulekindWithES5Target2(target=es2015).types diff --git a/tests/baselines/reference/esnextmodulekindWithES5Target2.js b/tests/baselines/reference/esnextmodulekindWithES5Target2(target=es5).js similarity index 100% rename from tests/baselines/reference/esnextmodulekindWithES5Target2.js rename to tests/baselines/reference/esnextmodulekindWithES5Target2(target=es5).js diff --git a/tests/baselines/reference/esnextmodulekindWithES5Target2(target=es5).symbols b/tests/baselines/reference/esnextmodulekindWithES5Target2(target=es5).symbols new file mode 100644 index 0000000000000..b3c5641240459 --- /dev/null +++ b/tests/baselines/reference/esnextmodulekindWithES5Target2(target=es5).symbols @@ -0,0 +1,16 @@ +//// [tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target2.ts] //// + +=== esnextmodulekindWithES5Target2.ts === +export default class C { +>C : Symbol(C, Decl(esnextmodulekindWithES5Target2.ts, 0, 0)) + + static s = 0; +>s : Symbol(C.s, Decl(esnextmodulekindWithES5Target2.ts, 0, 24)) + + p = 1; +>p : Symbol(C.p, Decl(esnextmodulekindWithES5Target2.ts, 1, 17)) + + method() { } +>method : Symbol(C.method, Decl(esnextmodulekindWithES5Target2.ts, 2, 10)) +} + diff --git a/tests/baselines/reference/esnextmodulekindWithES5Target2(target=es5).types b/tests/baselines/reference/esnextmodulekindWithES5Target2(target=es5).types new file mode 100644 index 0000000000000..b5ed9a60fe9e1 --- /dev/null +++ b/tests/baselines/reference/esnextmodulekindWithES5Target2(target=es5).types @@ -0,0 +1,24 @@ +//// [tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target2.ts] //// + +=== esnextmodulekindWithES5Target2.ts === +export default class C { +>C : C +> : ^ + + static s = 0; +>s : number +> : ^^^^^^ +>0 : 0 +> : ^ + + p = 1; +>p : number +> : ^^^^^^ +>1 : 1 +> : ^ + + method() { } +>method : () => void +> : ^^^^^^^^^^ +} + diff --git a/tests/baselines/reference/esnextmodulekindWithES5Target3(target=es2015).js b/tests/baselines/reference/esnextmodulekindWithES5Target3(target=es2015).js new file mode 100644 index 0000000000000..e2a0e50ccd3c6 --- /dev/null +++ b/tests/baselines/reference/esnextmodulekindWithES5Target3(target=es2015).js @@ -0,0 +1,29 @@ +//// [tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target3.ts] //// + +//// [esnextmodulekindWithES5Target3.ts] +declare function foo(...args: any[]): any; +@foo +export default class D { + static s = 0; + p = 1; + method() { } +} + +//// [esnextmodulekindWithES5Target3.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +let D = class D { + constructor() { + this.p = 1; + } + method() { } +}; +D.s = 0; +D = __decorate([ + foo +], D); +export default D; diff --git a/tests/baselines/reference/esnextmodulekindWithES5Target3.symbols b/tests/baselines/reference/esnextmodulekindWithES5Target3(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/esnextmodulekindWithES5Target3.symbols rename to tests/baselines/reference/esnextmodulekindWithES5Target3(target=es2015).symbols diff --git a/tests/baselines/reference/esnextmodulekindWithES5Target3.types b/tests/baselines/reference/esnextmodulekindWithES5Target3(target=es2015).types similarity index 100% rename from tests/baselines/reference/esnextmodulekindWithES5Target3.types rename to tests/baselines/reference/esnextmodulekindWithES5Target3(target=es2015).types diff --git a/tests/baselines/reference/esnextmodulekindWithES5Target3.js b/tests/baselines/reference/esnextmodulekindWithES5Target3(target=es5).js similarity index 100% rename from tests/baselines/reference/esnextmodulekindWithES5Target3.js rename to tests/baselines/reference/esnextmodulekindWithES5Target3(target=es5).js diff --git a/tests/baselines/reference/esnextmodulekindWithES5Target3(target=es5).symbols b/tests/baselines/reference/esnextmodulekindWithES5Target3(target=es5).symbols new file mode 100644 index 0000000000000..67466a5a9c114 --- /dev/null +++ b/tests/baselines/reference/esnextmodulekindWithES5Target3(target=es5).symbols @@ -0,0 +1,22 @@ +//// [tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target3.ts] //// + +=== esnextmodulekindWithES5Target3.ts === +declare function foo(...args: any[]): any; +>foo : Symbol(foo, Decl(esnextmodulekindWithES5Target3.ts, 0, 0)) +>args : Symbol(args, Decl(esnextmodulekindWithES5Target3.ts, 0, 21)) + +@foo +>foo : Symbol(foo, Decl(esnextmodulekindWithES5Target3.ts, 0, 0)) + +export default class D { +>D : Symbol(D, Decl(esnextmodulekindWithES5Target3.ts, 0, 42)) + + static s = 0; +>s : Symbol(D.s, Decl(esnextmodulekindWithES5Target3.ts, 2, 24)) + + p = 1; +>p : Symbol(D.p, Decl(esnextmodulekindWithES5Target3.ts, 3, 17)) + + method() { } +>method : Symbol(D.method, Decl(esnextmodulekindWithES5Target3.ts, 4, 10)) +} diff --git a/tests/baselines/reference/esnextmodulekindWithES5Target3(target=es5).types b/tests/baselines/reference/esnextmodulekindWithES5Target3(target=es5).types new file mode 100644 index 0000000000000..896b8f05d72b5 --- /dev/null +++ b/tests/baselines/reference/esnextmodulekindWithES5Target3(target=es5).types @@ -0,0 +1,33 @@ +//// [tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target3.ts] //// + +=== esnextmodulekindWithES5Target3.ts === +declare function foo(...args: any[]): any; +>foo : (...args: any[]) => any +> : ^^^^ ^^ ^^^^^ +>args : any[] +> : ^^^^^ + +@foo +>foo : (...args: any[]) => any +> : ^^^^ ^^ ^^^^^ + +export default class D { +>D : D +> : ^ + + static s = 0; +>s : number +> : ^^^^^^ +>0 : 0 +> : ^ + + p = 1; +>p : number +> : ^^^^^^ +>1 : 1 +> : ^ + + method() { } +>method : () => void +> : ^^^^^^^^^^ +} diff --git a/tests/baselines/reference/esnextmodulekindWithES5Target4(target=es2015).js b/tests/baselines/reference/esnextmodulekindWithES5Target4(target=es2015).js new file mode 100644 index 0000000000000..c9991b1cbb3c4 --- /dev/null +++ b/tests/baselines/reference/esnextmodulekindWithES5Target4(target=es2015).js @@ -0,0 +1,10 @@ +//// [tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target4.ts] //// + +//// [esnextmodulekindWithES5Target4.ts] +class E { } +export default E; + +//// [esnextmodulekindWithES5Target4.js] +class E { +} +export default E; diff --git a/tests/baselines/reference/esnextmodulekindWithES5Target4.symbols b/tests/baselines/reference/esnextmodulekindWithES5Target4(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/esnextmodulekindWithES5Target4.symbols rename to tests/baselines/reference/esnextmodulekindWithES5Target4(target=es2015).symbols diff --git a/tests/baselines/reference/esnextmodulekindWithES5Target4.types b/tests/baselines/reference/esnextmodulekindWithES5Target4(target=es2015).types similarity index 100% rename from tests/baselines/reference/esnextmodulekindWithES5Target4.types rename to tests/baselines/reference/esnextmodulekindWithES5Target4(target=es2015).types diff --git a/tests/baselines/reference/esnextmodulekindWithES5Target4.js b/tests/baselines/reference/esnextmodulekindWithES5Target4(target=es5).js similarity index 100% rename from tests/baselines/reference/esnextmodulekindWithES5Target4.js rename to tests/baselines/reference/esnextmodulekindWithES5Target4(target=es5).js diff --git a/tests/baselines/reference/esnextmodulekindWithES5Target4(target=es5).symbols b/tests/baselines/reference/esnextmodulekindWithES5Target4(target=es5).symbols new file mode 100644 index 0000000000000..8a2b16eea8772 --- /dev/null +++ b/tests/baselines/reference/esnextmodulekindWithES5Target4(target=es5).symbols @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target4.ts] //// + +=== esnextmodulekindWithES5Target4.ts === +class E { } +>E : Symbol(E, Decl(esnextmodulekindWithES5Target4.ts, 0, 0)) + +export default E; +>E : Symbol(E, Decl(esnextmodulekindWithES5Target4.ts, 0, 0)) + diff --git a/tests/baselines/reference/esnextmodulekindWithES5Target4(target=es5).types b/tests/baselines/reference/esnextmodulekindWithES5Target4(target=es5).types new file mode 100644 index 0000000000000..f5a4d64e90139 --- /dev/null +++ b/tests/baselines/reference/esnextmodulekindWithES5Target4(target=es5).types @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target4.ts] //// + +=== esnextmodulekindWithES5Target4.ts === +class E { } +>E : E +> : ^ + +export default E; +>E : E +> : ^ + diff --git a/tests/baselines/reference/esnextmodulekindWithES5Target5.js b/tests/baselines/reference/esnextmodulekindWithES5Target5(target=es2015).js similarity index 100% rename from tests/baselines/reference/esnextmodulekindWithES5Target5.js rename to tests/baselines/reference/esnextmodulekindWithES5Target5(target=es2015).js diff --git a/tests/baselines/reference/esnextmodulekindWithES5Target5.symbols b/tests/baselines/reference/esnextmodulekindWithES5Target5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/esnextmodulekindWithES5Target5.symbols rename to tests/baselines/reference/esnextmodulekindWithES5Target5(target=es2015).symbols diff --git a/tests/baselines/reference/esnextmodulekindWithES5Target5.types b/tests/baselines/reference/esnextmodulekindWithES5Target5(target=es2015).types similarity index 100% rename from tests/baselines/reference/esnextmodulekindWithES5Target5.types rename to tests/baselines/reference/esnextmodulekindWithES5Target5(target=es2015).types diff --git a/tests/baselines/reference/esnextmodulekindWithES5Target5(target=es5).js b/tests/baselines/reference/esnextmodulekindWithES5Target5(target=es5).js new file mode 100644 index 0000000000000..edc9897d8c586 --- /dev/null +++ b/tests/baselines/reference/esnextmodulekindWithES5Target5(target=es5).js @@ -0,0 +1,20 @@ +//// [tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target5.ts] //// + +//// [esnextmodulekindWithES5Target5.ts] +export enum E1 { + value1 +} + +export const enum E2 { + value1 +} + +//// [esnextmodulekindWithES5Target5.js] +export var E1; +(function (E1) { + E1[E1["value1"] = 0] = "value1"; +})(E1 || (E1 = {})); +export var E2; +(function (E2) { + E2[E2["value1"] = 0] = "value1"; +})(E2 || (E2 = {})); diff --git a/tests/baselines/reference/esnextmodulekindWithES5Target5(target=es5).symbols b/tests/baselines/reference/esnextmodulekindWithES5Target5(target=es5).symbols new file mode 100644 index 0000000000000..58bc179f2c2a5 --- /dev/null +++ b/tests/baselines/reference/esnextmodulekindWithES5Target5(target=es5).symbols @@ -0,0 +1,16 @@ +//// [tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target5.ts] //// + +=== esnextmodulekindWithES5Target5.ts === +export enum E1 { +>E1 : Symbol(E1, Decl(esnextmodulekindWithES5Target5.ts, 0, 0)) + + value1 +>value1 : Symbol(E1.value1, Decl(esnextmodulekindWithES5Target5.ts, 0, 16)) +} + +export const enum E2 { +>E2 : Symbol(E2, Decl(esnextmodulekindWithES5Target5.ts, 2, 1)) + + value1 +>value1 : Symbol(E2.value1, Decl(esnextmodulekindWithES5Target5.ts, 4, 22)) +} diff --git a/tests/baselines/reference/esnextmodulekindWithES5Target5(target=es5).types b/tests/baselines/reference/esnextmodulekindWithES5Target5(target=es5).types new file mode 100644 index 0000000000000..ae58c7b566400 --- /dev/null +++ b/tests/baselines/reference/esnextmodulekindWithES5Target5(target=es5).types @@ -0,0 +1,20 @@ +//// [tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target5.ts] //// + +=== esnextmodulekindWithES5Target5.ts === +export enum E1 { +>E1 : E1 +> : ^^ + + value1 +>value1 : E1.value1 +> : ^^^^^^^^^ +} + +export const enum E2 { +>E2 : E2 +> : ^^ + + value1 +>value1 : E2.value1 +> : ^^^^^^^^^ +} diff --git a/tests/baselines/reference/esnextmodulekindWithES5Target6(target=es2015).js b/tests/baselines/reference/esnextmodulekindWithES5Target6(target=es2015).js new file mode 100644 index 0000000000000..61c2dce166f2e --- /dev/null +++ b/tests/baselines/reference/esnextmodulekindWithES5Target6(target=es2015).js @@ -0,0 +1,20 @@ +//// [tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target6.ts] //// + +//// [esnextmodulekindWithES5Target6.ts] +export function f1(d = 0) { +} + +export function f2(...arg) { +} + +export default function f3(d = 0) { +} + + +//// [esnextmodulekindWithES5Target6.js] +export function f1(d = 0) { +} +export function f2(...arg) { +} +export default function f3(d = 0) { +} diff --git a/tests/baselines/reference/esnextmodulekindWithES5Target6.symbols b/tests/baselines/reference/esnextmodulekindWithES5Target6(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/esnextmodulekindWithES5Target6.symbols rename to tests/baselines/reference/esnextmodulekindWithES5Target6(target=es2015).symbols diff --git a/tests/baselines/reference/esnextmodulekindWithES5Target6.types b/tests/baselines/reference/esnextmodulekindWithES5Target6(target=es2015).types similarity index 100% rename from tests/baselines/reference/esnextmodulekindWithES5Target6.types rename to tests/baselines/reference/esnextmodulekindWithES5Target6(target=es2015).types diff --git a/tests/baselines/reference/esnextmodulekindWithES5Target6.js b/tests/baselines/reference/esnextmodulekindWithES5Target6(target=es5).js similarity index 100% rename from tests/baselines/reference/esnextmodulekindWithES5Target6.js rename to tests/baselines/reference/esnextmodulekindWithES5Target6(target=es5).js diff --git a/tests/baselines/reference/esnextmodulekindWithES5Target6(target=es5).symbols b/tests/baselines/reference/esnextmodulekindWithES5Target6(target=es5).symbols new file mode 100644 index 0000000000000..a6d7072ad35d5 --- /dev/null +++ b/tests/baselines/reference/esnextmodulekindWithES5Target6(target=es5).symbols @@ -0,0 +1,18 @@ +//// [tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target6.ts] //// + +=== esnextmodulekindWithES5Target6.ts === +export function f1(d = 0) { +>f1 : Symbol(f1, Decl(esnextmodulekindWithES5Target6.ts, 0, 0)) +>d : Symbol(d, Decl(esnextmodulekindWithES5Target6.ts, 0, 19)) +} + +export function f2(...arg) { +>f2 : Symbol(f2, Decl(esnextmodulekindWithES5Target6.ts, 1, 1)) +>arg : Symbol(arg, Decl(esnextmodulekindWithES5Target6.ts, 3, 19)) +} + +export default function f3(d = 0) { +>f3 : Symbol(f3, Decl(esnextmodulekindWithES5Target6.ts, 4, 1)) +>d : Symbol(d, Decl(esnextmodulekindWithES5Target6.ts, 6, 27)) +} + diff --git a/tests/baselines/reference/esnextmodulekindWithES5Target6(target=es5).types b/tests/baselines/reference/esnextmodulekindWithES5Target6(target=es5).types new file mode 100644 index 0000000000000..22d0bf92f10c2 --- /dev/null +++ b/tests/baselines/reference/esnextmodulekindWithES5Target6(target=es5).types @@ -0,0 +1,28 @@ +//// [tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target6.ts] //// + +=== esnextmodulekindWithES5Target6.ts === +export function f1(d = 0) { +>f1 : (d?: number) => void +> : ^ ^^^^^^^^^^^^^^^^^^ +>d : number +> : ^^^^^^ +>0 : 0 +> : ^ +} + +export function f2(...arg) { +>f2 : (...arg: any[]) => void +> : ^^^^ ^^^^^^^^^^^^^^^^ +>arg : any[] +> : ^^^^^ +} + +export default function f3(d = 0) { +>f3 : (d?: number) => void +> : ^ ^^^^^^^^^^^^^^^^^^ +>d : number +> : ^^^^^^ +>0 : 0 +> : ^ +} + diff --git a/tests/baselines/reference/esnextmodulekindWithES5Target7.js b/tests/baselines/reference/esnextmodulekindWithES5Target7(target=es2015).js similarity index 100% rename from tests/baselines/reference/esnextmodulekindWithES5Target7.js rename to tests/baselines/reference/esnextmodulekindWithES5Target7(target=es2015).js diff --git a/tests/baselines/reference/esnextmodulekindWithES5Target7.symbols b/tests/baselines/reference/esnextmodulekindWithES5Target7(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/esnextmodulekindWithES5Target7.symbols rename to tests/baselines/reference/esnextmodulekindWithES5Target7(target=es2015).symbols diff --git a/tests/baselines/reference/esnextmodulekindWithES5Target7.types b/tests/baselines/reference/esnextmodulekindWithES5Target7(target=es2015).types similarity index 100% rename from tests/baselines/reference/esnextmodulekindWithES5Target7.types rename to tests/baselines/reference/esnextmodulekindWithES5Target7(target=es2015).types diff --git a/tests/baselines/reference/esnextmodulekindWithES5Target7(target=es5).js b/tests/baselines/reference/esnextmodulekindWithES5Target7(target=es5).js new file mode 100644 index 0000000000000..d3a414093f5ad --- /dev/null +++ b/tests/baselines/reference/esnextmodulekindWithES5Target7(target=es5).js @@ -0,0 +1,17 @@ +//// [tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target7.ts] //// + +//// [esnextmodulekindWithES5Target7.ts] +export namespace N { + var x = 0; +} + +export namespace N2 { + export interface I { } +} + + +//// [esnextmodulekindWithES5Target7.js] +export var N; +(function (N) { + var x = 0; +})(N || (N = {})); diff --git a/tests/baselines/reference/esnextmodulekindWithES5Target7(target=es5).symbols b/tests/baselines/reference/esnextmodulekindWithES5Target7(target=es5).symbols new file mode 100644 index 0000000000000..888ebf2915532 --- /dev/null +++ b/tests/baselines/reference/esnextmodulekindWithES5Target7(target=es5).symbols @@ -0,0 +1,17 @@ +//// [tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target7.ts] //// + +=== esnextmodulekindWithES5Target7.ts === +export namespace N { +>N : Symbol(N, Decl(esnextmodulekindWithES5Target7.ts, 0, 0)) + + var x = 0; +>x : Symbol(x, Decl(esnextmodulekindWithES5Target7.ts, 1, 7)) +} + +export namespace N2 { +>N2 : Symbol(N2, Decl(esnextmodulekindWithES5Target7.ts, 2, 1)) + + export interface I { } +>I : Symbol(I, Decl(esnextmodulekindWithES5Target7.ts, 4, 21)) +} + diff --git a/tests/baselines/reference/esnextmodulekindWithES5Target7(target=es5).types b/tests/baselines/reference/esnextmodulekindWithES5Target7(target=es5).types new file mode 100644 index 0000000000000..0fffb4e82b430 --- /dev/null +++ b/tests/baselines/reference/esnextmodulekindWithES5Target7(target=es5).types @@ -0,0 +1,18 @@ +//// [tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target7.ts] //// + +=== esnextmodulekindWithES5Target7.ts === +export namespace N { +>N : typeof N +> : ^^^^^^^^ + + var x = 0; +>x : number +> : ^^^^^^ +>0 : 0 +> : ^ +} + +export namespace N2 { + export interface I { } +} + diff --git a/tests/baselines/reference/esnextmodulekindWithES5Target8(target=es2015).js b/tests/baselines/reference/esnextmodulekindWithES5Target8(target=es2015).js new file mode 100644 index 0000000000000..4ac067a3d520a --- /dev/null +++ b/tests/baselines/reference/esnextmodulekindWithES5Target8(target=es2015).js @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target8.ts] //// + +//// [esnextmodulekindWithES5Target8.ts] +export const c = 0; +export let l = 1; + +//// [esnextmodulekindWithES5Target8.js] +export const c = 0; +export let l = 1; diff --git a/tests/baselines/reference/esnextmodulekindWithES5Target8.symbols b/tests/baselines/reference/esnextmodulekindWithES5Target8(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/esnextmodulekindWithES5Target8.symbols rename to tests/baselines/reference/esnextmodulekindWithES5Target8(target=es2015).symbols diff --git a/tests/baselines/reference/esnextmodulekindWithES5Target8.types b/tests/baselines/reference/esnextmodulekindWithES5Target8(target=es2015).types similarity index 100% rename from tests/baselines/reference/esnextmodulekindWithES5Target8.types rename to tests/baselines/reference/esnextmodulekindWithES5Target8(target=es2015).types diff --git a/tests/baselines/reference/esnextmodulekindWithES5Target8.js b/tests/baselines/reference/esnextmodulekindWithES5Target8(target=es5).js similarity index 100% rename from tests/baselines/reference/esnextmodulekindWithES5Target8.js rename to tests/baselines/reference/esnextmodulekindWithES5Target8(target=es5).js diff --git a/tests/baselines/reference/esnextmodulekindWithES5Target8(target=es5).symbols b/tests/baselines/reference/esnextmodulekindWithES5Target8(target=es5).symbols new file mode 100644 index 0000000000000..d8acf58ad367c --- /dev/null +++ b/tests/baselines/reference/esnextmodulekindWithES5Target8(target=es5).symbols @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target8.ts] //// + +=== esnextmodulekindWithES5Target8.ts === +export const c = 0; +>c : Symbol(c, Decl(esnextmodulekindWithES5Target8.ts, 0, 12)) + +export let l = 1; +>l : Symbol(l, Decl(esnextmodulekindWithES5Target8.ts, 1, 10)) + diff --git a/tests/baselines/reference/esnextmodulekindWithES5Target8(target=es5).types b/tests/baselines/reference/esnextmodulekindWithES5Target8(target=es5).types new file mode 100644 index 0000000000000..775c5e9d8ee9a --- /dev/null +++ b/tests/baselines/reference/esnextmodulekindWithES5Target8(target=es5).types @@ -0,0 +1,15 @@ +//// [tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target8.ts] //// + +=== esnextmodulekindWithES5Target8.ts === +export const c = 0; +>c : 0 +> : ^ +>0 : 0 +> : ^ + +export let l = 1; +>l : number +> : ^^^^^^ +>1 : 1 +> : ^ + diff --git a/tests/baselines/reference/esnextmodulekindWithES5Target9.errors.txt b/tests/baselines/reference/esnextmodulekindWithES5Target9(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/esnextmodulekindWithES5Target9.errors.txt rename to tests/baselines/reference/esnextmodulekindWithES5Target9(target=es2015).errors.txt diff --git a/tests/baselines/reference/esnextmodulekindWithES5Target9.js b/tests/baselines/reference/esnextmodulekindWithES5Target9(target=es2015).js similarity index 100% rename from tests/baselines/reference/esnextmodulekindWithES5Target9.js rename to tests/baselines/reference/esnextmodulekindWithES5Target9(target=es2015).js diff --git a/tests/baselines/reference/esnextmodulekindWithES5Target9.symbols b/tests/baselines/reference/esnextmodulekindWithES5Target9(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/esnextmodulekindWithES5Target9.symbols rename to tests/baselines/reference/esnextmodulekindWithES5Target9(target=es2015).symbols diff --git a/tests/baselines/reference/esnextmodulekindWithES5Target9.types b/tests/baselines/reference/esnextmodulekindWithES5Target9(target=es2015).types similarity index 100% rename from tests/baselines/reference/esnextmodulekindWithES5Target9.types rename to tests/baselines/reference/esnextmodulekindWithES5Target9(target=es2015).types diff --git a/tests/baselines/reference/esnextmodulekindWithES5Target9(target=es5).errors.txt b/tests/baselines/reference/esnextmodulekindWithES5Target9(target=es5).errors.txt new file mode 100644 index 0000000000000..191ac8fdf02ea --- /dev/null +++ b/tests/baselines/reference/esnextmodulekindWithES5Target9(target=es5).errors.txt @@ -0,0 +1,36 @@ +esnextmodulekindWithES5Target9.ts(1,15): error TS2307: Cannot find module 'mod' or its corresponding type declarations. +esnextmodulekindWithES5Target9.ts(3,17): error TS2307: Cannot find module 'mod' or its corresponding type declarations. +esnextmodulekindWithES5Target9.ts(5,20): error TS2307: Cannot find module 'mod' or its corresponding type declarations. +esnextmodulekindWithES5Target9.ts(13,15): error TS2307: Cannot find module 'mod' or its corresponding type declarations. +esnextmodulekindWithES5Target9.ts(15,17): error TS2307: Cannot find module 'mod' or its corresponding type declarations. + + +==== esnextmodulekindWithES5Target9.ts (5 errors) ==== + import d from "mod"; + ~~~~~ +!!! error TS2307: Cannot find module 'mod' or its corresponding type declarations. + + import {a} from "mod"; + ~~~~~ +!!! error TS2307: Cannot find module 'mod' or its corresponding type declarations. + + import * as M from "mod"; + ~~~~~ +!!! error TS2307: Cannot find module 'mod' or its corresponding type declarations. + + export {a}; + + export {M}; + + export {d}; + + export * from "mod"; + ~~~~~ +!!! error TS2307: Cannot find module 'mod' or its corresponding type declarations. + + export {b} from "mod" + ~~~~~ +!!! error TS2307: Cannot find module 'mod' or its corresponding type declarations. + + export default d; + \ No newline at end of file diff --git a/tests/baselines/reference/esnextmodulekindWithES5Target9(target=es5).js b/tests/baselines/reference/esnextmodulekindWithES5Target9(target=es5).js new file mode 100644 index 0000000000000..368a318c93596 --- /dev/null +++ b/tests/baselines/reference/esnextmodulekindWithES5Target9(target=es5).js @@ -0,0 +1,32 @@ +//// [tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target9.ts] //// + +//// [esnextmodulekindWithES5Target9.ts] +import d from "mod"; + +import {a} from "mod"; + +import * as M from "mod"; + +export {a}; + +export {M}; + +export {d}; + +export * from "mod"; + +export {b} from "mod" + +export default d; + + +//// [esnextmodulekindWithES5Target9.js] +import d from "mod"; +import { a } from "mod"; +import * as M from "mod"; +export { a }; +export { M }; +export { d }; +export * from "mod"; +export { b } from "mod"; +export default d; diff --git a/tests/baselines/reference/esnextmodulekindWithES5Target9(target=es5).symbols b/tests/baselines/reference/esnextmodulekindWithES5Target9(target=es5).symbols new file mode 100644 index 0000000000000..b73253b68fd7d --- /dev/null +++ b/tests/baselines/reference/esnextmodulekindWithES5Target9(target=es5).symbols @@ -0,0 +1,29 @@ +//// [tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target9.ts] //// + +=== esnextmodulekindWithES5Target9.ts === +import d from "mod"; +>d : Symbol(d, Decl(esnextmodulekindWithES5Target9.ts, 0, 6)) + +import {a} from "mod"; +>a : Symbol(a, Decl(esnextmodulekindWithES5Target9.ts, 2, 8)) + +import * as M from "mod"; +>M : Symbol(M, Decl(esnextmodulekindWithES5Target9.ts, 4, 6)) + +export {a}; +>a : Symbol(a, Decl(esnextmodulekindWithES5Target9.ts, 6, 8)) + +export {M}; +>M : Symbol(M, Decl(esnextmodulekindWithES5Target9.ts, 8, 8)) + +export {d}; +>d : Symbol(d, Decl(esnextmodulekindWithES5Target9.ts, 10, 8)) + +export * from "mod"; + +export {b} from "mod" +>b : Symbol(b, Decl(esnextmodulekindWithES5Target9.ts, 14, 8)) + +export default d; +>d : Symbol(d, Decl(esnextmodulekindWithES5Target9.ts, 0, 6)) + diff --git a/tests/baselines/reference/esnextmodulekindWithES5Target9(target=es5).types b/tests/baselines/reference/esnextmodulekindWithES5Target9(target=es5).types new file mode 100644 index 0000000000000..231e300217b18 --- /dev/null +++ b/tests/baselines/reference/esnextmodulekindWithES5Target9(target=es5).types @@ -0,0 +1,37 @@ +//// [tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target9.ts] //// + +=== esnextmodulekindWithES5Target9.ts === +import d from "mod"; +>d : any +> : ^^^ + +import {a} from "mod"; +>a : any +> : ^^^ + +import * as M from "mod"; +>M : any +> : ^^^ + +export {a}; +>a : any +> : ^^^ + +export {M}; +>M : any +> : ^^^ + +export {d}; +>d : any +> : ^^^ + +export * from "mod"; + +export {b} from "mod" +>b : any +> : ^^^ + +export default d; +>d : any +> : ^^^ + diff --git a/tests/baselines/reference/exnextmodulekindExportClassNameWithObject(target=es2015).js b/tests/baselines/reference/exnextmodulekindExportClassNameWithObject(target=es2015).js new file mode 100644 index 0000000000000..36956fe214ba7 --- /dev/null +++ b/tests/baselines/reference/exnextmodulekindExportClassNameWithObject(target=es2015).js @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/externalModules/esnext/exnextmodulekindExportClassNameWithObject.ts] //// + +//// [exnextmodulekindExportClassNameWithObject.ts] +export class Object {} + + +//// [exnextmodulekindExportClassNameWithObject.js] +export class Object { +} diff --git a/tests/baselines/reference/exnextmodulekindExportClassNameWithObject.symbols b/tests/baselines/reference/exnextmodulekindExportClassNameWithObject(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/exnextmodulekindExportClassNameWithObject.symbols rename to tests/baselines/reference/exnextmodulekindExportClassNameWithObject(target=es2015).symbols diff --git a/tests/baselines/reference/exnextmodulekindExportClassNameWithObject.types b/tests/baselines/reference/exnextmodulekindExportClassNameWithObject(target=es2015).types similarity index 100% rename from tests/baselines/reference/exnextmodulekindExportClassNameWithObject.types rename to tests/baselines/reference/exnextmodulekindExportClassNameWithObject(target=es2015).types diff --git a/tests/baselines/reference/exnextmodulekindExportClassNameWithObject.js b/tests/baselines/reference/exnextmodulekindExportClassNameWithObject(target=es5).js similarity index 100% rename from tests/baselines/reference/exnextmodulekindExportClassNameWithObject.js rename to tests/baselines/reference/exnextmodulekindExportClassNameWithObject(target=es5).js diff --git a/tests/baselines/reference/exnextmodulekindExportClassNameWithObject(target=es5).symbols b/tests/baselines/reference/exnextmodulekindExportClassNameWithObject(target=es5).symbols new file mode 100644 index 0000000000000..f4dd040efbaee --- /dev/null +++ b/tests/baselines/reference/exnextmodulekindExportClassNameWithObject(target=es5).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/externalModules/esnext/exnextmodulekindExportClassNameWithObject.ts] //// + +=== exnextmodulekindExportClassNameWithObject.ts === +export class Object {} +>Object : Symbol(Object, Decl(exnextmodulekindExportClassNameWithObject.ts, 0, 0)) + diff --git a/tests/baselines/reference/exnextmodulekindExportClassNameWithObject(target=es5).types b/tests/baselines/reference/exnextmodulekindExportClassNameWithObject(target=es5).types new file mode 100644 index 0000000000000..0a1fead1f2553 --- /dev/null +++ b/tests/baselines/reference/exnextmodulekindExportClassNameWithObject(target=es5).types @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/externalModules/esnext/exnextmodulekindExportClassNameWithObject.ts] //// + +=== exnextmodulekindExportClassNameWithObject.ts === +export class Object {} +>Object : Object +> : ^^^^^^ + diff --git a/tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError1.errors.txt b/tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError1(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError1.errors.txt rename to tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError1(target=es2015).errors.txt diff --git a/tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError1(target=es2015).js b/tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError1(target=es2015).js new file mode 100644 index 0000000000000..279053e696d12 --- /dev/null +++ b/tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError1(target=es2015).js @@ -0,0 +1,54 @@ +//// [tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts] //// + +//// [exponentiationOperatorInTemplateStringWithSyntaxError1.ts] +var t1 = 10; +var t2 = 10; +var s; + +// Error: early syntax error using ES7 SimpleUnaryExpression on left-hand side without () +// TempateHead & TemplateTail are empty +`${1 + typeof t1 ** t2 ** t1}`; +`${-t1 ** t2 - t1}`; +`${-++t1 ** t2 - t1}`; +`${-t1++ ** t2 - t1}`; +`${!t1 ** t2 ** --t1 }`; +`${typeof t1 ** t2 ** t1}`; + +`${-t1 ** t2 - t1}${-t1 ** t2 - t1}`; +`${-++t1 ** t2 - t1}${-++t1 ** t2 - t1}`; +`${-t1++ ** t2 - t1}${-t1++ ** t2 - t1}`; +`${!t1 ** t2 ** --t1 }${!t1 ** t2 ** --t1 }`; +`${typeof t1 ** t2 ** t1}${typeof t1 ** t2 ** t1}`; +`${1 + typeof t1 ** t2 ** t1}${1 + typeof t1 ** t2 ** t1}`; + +`${-t1 ** t2 - t1} hello world ${-t1 ** t2 - t1}`; +`${-++t1 ** t2 - t1} hello world ${-++t1 ** t2 - t1}`; +`${-t1++ ** t2 - t1} hello world ${-t1++ ** t2 - t1}`; +`${!t1 ** t2 ** --t1 } hello world ${!t1 ** t2 ** --t1 }`; +`${typeof t1 ** t2 ** t1} hello world ${typeof t1 ** t2 ** t1}`; +`${1 + typeof t1 ** t2 ** t1} hello world ${1 + typeof t1 ** t2 ** t1}`; + +//// [exponentiationOperatorInTemplateStringWithSyntaxError1.js] +var t1 = 10; +var t2 = 10; +var s; +// Error: early syntax error using ES7 SimpleUnaryExpression on left-hand side without () +// TempateHead & TemplateTail are empty +`${1 + Math.pow(typeof t1, Math.pow(t2, t1))}`; +`${Math.pow(-t1, t2) - t1}`; +`${Math.pow(-++t1, t2) - t1}`; +`${Math.pow(-t1++, t2) - t1}`; +`${Math.pow(!t1, Math.pow(t2, --t1))}`; +`${Math.pow(typeof t1, Math.pow(t2, t1))}`; +`${Math.pow(-t1, t2) - t1}${Math.pow(-t1, t2) - t1}`; +`${Math.pow(-++t1, t2) - t1}${Math.pow(-++t1, t2) - t1}`; +`${Math.pow(-t1++, t2) - t1}${Math.pow(-t1++, t2) - t1}`; +`${Math.pow(!t1, Math.pow(t2, --t1))}${Math.pow(!t1, Math.pow(t2, --t1))}`; +`${Math.pow(typeof t1, Math.pow(t2, t1))}${Math.pow(typeof t1, Math.pow(t2, t1))}`; +`${1 + Math.pow(typeof t1, Math.pow(t2, t1))}${1 + Math.pow(typeof t1, Math.pow(t2, t1))}`; +`${Math.pow(-t1, t2) - t1} hello world ${Math.pow(-t1, t2) - t1}`; +`${Math.pow(-++t1, t2) - t1} hello world ${Math.pow(-++t1, t2) - t1}`; +`${Math.pow(-t1++, t2) - t1} hello world ${Math.pow(-t1++, t2) - t1}`; +`${Math.pow(!t1, Math.pow(t2, --t1))} hello world ${Math.pow(!t1, Math.pow(t2, --t1))}`; +`${Math.pow(typeof t1, Math.pow(t2, t1))} hello world ${Math.pow(typeof t1, Math.pow(t2, t1))}`; +`${1 + Math.pow(typeof t1, Math.pow(t2, t1))} hello world ${1 + Math.pow(typeof t1, Math.pow(t2, t1))}`; diff --git a/tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError1.symbols b/tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError1(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError1.symbols rename to tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError1(target=es2015).symbols diff --git a/tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError1.types b/tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError1(target=es2015).types similarity index 100% rename from tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError1.types rename to tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError1(target=es2015).types diff --git a/tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError1(target=es5).errors.txt b/tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError1(target=es5).errors.txt new file mode 100644 index 0000000000000..42b2be991f19e --- /dev/null +++ b/tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError1(target=es5).errors.txt @@ -0,0 +1,164 @@ +exponentiationOperatorInTemplateStringWithSyntaxError1.ts(7,8): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +exponentiationOperatorInTemplateStringWithSyntaxError1.ts(7,8): error TS17006: An unary expression with the 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError1.ts(8,4): error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError1.ts(9,4): error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError1.ts(10,4): error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError1.ts(11,4): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +exponentiationOperatorInTemplateStringWithSyntaxError1.ts(11,4): error TS17006: An unary expression with the '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError1.ts(12,4): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +exponentiationOperatorInTemplateStringWithSyntaxError1.ts(12,4): error TS17006: An unary expression with the 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError1.ts(14,4): error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError1.ts(14,21): error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError1.ts(15,4): error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError1.ts(15,23): error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError1.ts(16,4): error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError1.ts(16,23): error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError1.ts(17,4): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +exponentiationOperatorInTemplateStringWithSyntaxError1.ts(17,4): error TS17006: An unary expression with the '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError1.ts(17,25): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +exponentiationOperatorInTemplateStringWithSyntaxError1.ts(17,25): error TS17006: An unary expression with the '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError1.ts(18,4): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +exponentiationOperatorInTemplateStringWithSyntaxError1.ts(18,4): error TS17006: An unary expression with the 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError1.ts(18,28): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +exponentiationOperatorInTemplateStringWithSyntaxError1.ts(18,28): error TS17006: An unary expression with the 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError1.ts(19,8): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +exponentiationOperatorInTemplateStringWithSyntaxError1.ts(19,8): error TS17006: An unary expression with the 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError1.ts(19,36): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +exponentiationOperatorInTemplateStringWithSyntaxError1.ts(19,36): error TS17006: An unary expression with the 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError1.ts(21,4): error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError1.ts(21,34): error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError1.ts(22,4): error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError1.ts(22,36): error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError1.ts(23,4): error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError1.ts(23,36): error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError1.ts(24,4): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +exponentiationOperatorInTemplateStringWithSyntaxError1.ts(24,4): error TS17006: An unary expression with the '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError1.ts(24,38): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +exponentiationOperatorInTemplateStringWithSyntaxError1.ts(24,38): error TS17006: An unary expression with the '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError1.ts(25,4): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +exponentiationOperatorInTemplateStringWithSyntaxError1.ts(25,4): error TS17006: An unary expression with the 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError1.ts(25,41): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +exponentiationOperatorInTemplateStringWithSyntaxError1.ts(25,41): error TS17006: An unary expression with the 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError1.ts(26,8): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +exponentiationOperatorInTemplateStringWithSyntaxError1.ts(26,8): error TS17006: An unary expression with the 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError1.ts(26,49): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +exponentiationOperatorInTemplateStringWithSyntaxError1.ts(26,49): error TS17006: An unary expression with the 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + + +==== exponentiationOperatorInTemplateStringWithSyntaxError1.ts (45 errors) ==== + var t1 = 10; + var t2 = 10; + var s; + + // Error: early syntax error using ES7 SimpleUnaryExpression on left-hand side without () + // TempateHead & TemplateTail are empty + `${1 + typeof t1 ** t2 ** t1}`; + ~~~~~~~~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + ~~~~~~~~~ +!!! error TS17006: An unary expression with the 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + `${-t1 ** t2 - t1}`; + ~~~ +!!! error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + `${-++t1 ** t2 - t1}`; + ~~~~~ +!!! error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + `${-t1++ ** t2 - t1}`; + ~~~~~ +!!! error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + `${!t1 ** t2 ** --t1 }`; + ~~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + ~~~ +!!! error TS17006: An unary expression with the '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + `${typeof t1 ** t2 ** t1}`; + ~~~~~~~~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + ~~~~~~~~~ +!!! error TS17006: An unary expression with the 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + + `${-t1 ** t2 - t1}${-t1 ** t2 - t1}`; + ~~~ +!!! error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + ~~~ +!!! error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + `${-++t1 ** t2 - t1}${-++t1 ** t2 - t1}`; + ~~~~~ +!!! error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + ~~~~~ +!!! error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + `${-t1++ ** t2 - t1}${-t1++ ** t2 - t1}`; + ~~~~~ +!!! error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + ~~~~~ +!!! error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + `${!t1 ** t2 ** --t1 }${!t1 ** t2 ** --t1 }`; + ~~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + ~~~ +!!! error TS17006: An unary expression with the '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + ~~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + ~~~ +!!! error TS17006: An unary expression with the '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + `${typeof t1 ** t2 ** t1}${typeof t1 ** t2 ** t1}`; + ~~~~~~~~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + ~~~~~~~~~ +!!! error TS17006: An unary expression with the 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + ~~~~~~~~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + ~~~~~~~~~ +!!! error TS17006: An unary expression with the 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + `${1 + typeof t1 ** t2 ** t1}${1 + typeof t1 ** t2 ** t1}`; + ~~~~~~~~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + ~~~~~~~~~ +!!! error TS17006: An unary expression with the 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + ~~~~~~~~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + ~~~~~~~~~ +!!! error TS17006: An unary expression with the 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + + `${-t1 ** t2 - t1} hello world ${-t1 ** t2 - t1}`; + ~~~ +!!! error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + ~~~ +!!! error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + `${-++t1 ** t2 - t1} hello world ${-++t1 ** t2 - t1}`; + ~~~~~ +!!! error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + ~~~~~ +!!! error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + `${-t1++ ** t2 - t1} hello world ${-t1++ ** t2 - t1}`; + ~~~~~ +!!! error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + ~~~~~ +!!! error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + `${!t1 ** t2 ** --t1 } hello world ${!t1 ** t2 ** --t1 }`; + ~~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + ~~~ +!!! error TS17006: An unary expression with the '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + ~~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + ~~~ +!!! error TS17006: An unary expression with the '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + `${typeof t1 ** t2 ** t1} hello world ${typeof t1 ** t2 ** t1}`; + ~~~~~~~~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + ~~~~~~~~~ +!!! error TS17006: An unary expression with the 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + ~~~~~~~~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + ~~~~~~~~~ +!!! error TS17006: An unary expression with the 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + `${1 + typeof t1 ** t2 ** t1} hello world ${1 + typeof t1 ** t2 ** t1}`; + ~~~~~~~~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + ~~~~~~~~~ +!!! error TS17006: An unary expression with the 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + ~~~~~~~~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + ~~~~~~~~~ +!!! error TS17006: An unary expression with the 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. \ No newline at end of file diff --git a/tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError1.js b/tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError1(target=es5).js similarity index 100% rename from tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError1.js rename to tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError1(target=es5).js diff --git a/tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError1(target=es5).symbols b/tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError1(target=es5).symbols new file mode 100644 index 0000000000000..19e17f0eb0d44 --- /dev/null +++ b/tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError1(target=es5).symbols @@ -0,0 +1,140 @@ +//// [tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts] //// + +=== exponentiationOperatorInTemplateStringWithSyntaxError1.ts === +var t1 = 10; +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 0, 3)) + +var t2 = 10; +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 1, 3)) + +var s; +>s : Symbol(s, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 2, 3)) + +// Error: early syntax error using ES7 SimpleUnaryExpression on left-hand side without () +// TempateHead & TemplateTail are empty +`${1 + typeof t1 ** t2 ** t1}`; +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 0, 3)) + +`${-t1 ** t2 - t1}`; +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 0, 3)) + +`${-++t1 ** t2 - t1}`; +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 0, 3)) + +`${-t1++ ** t2 - t1}`; +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 0, 3)) + +`${!t1 ** t2 ** --t1 }`; +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 0, 3)) + +`${typeof t1 ** t2 ** t1}`; +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 0, 3)) + +`${-t1 ** t2 - t1}${-t1 ** t2 - t1}`; +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 0, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 0, 3)) + +`${-++t1 ** t2 - t1}${-++t1 ** t2 - t1}`; +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 0, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 0, 3)) + +`${-t1++ ** t2 - t1}${-t1++ ** t2 - t1}`; +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 0, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 0, 3)) + +`${!t1 ** t2 ** --t1 }${!t1 ** t2 ** --t1 }`; +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 0, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 0, 3)) + +`${typeof t1 ** t2 ** t1}${typeof t1 ** t2 ** t1}`; +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 0, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 0, 3)) + +`${1 + typeof t1 ** t2 ** t1}${1 + typeof t1 ** t2 ** t1}`; +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 0, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 0, 3)) + +`${-t1 ** t2 - t1} hello world ${-t1 ** t2 - t1}`; +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 0, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 0, 3)) + +`${-++t1 ** t2 - t1} hello world ${-++t1 ** t2 - t1}`; +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 0, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 0, 3)) + +`${-t1++ ** t2 - t1} hello world ${-t1++ ** t2 - t1}`; +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 0, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 0, 3)) + +`${!t1 ** t2 ** --t1 } hello world ${!t1 ** t2 ** --t1 }`; +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 0, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 0, 3)) + +`${typeof t1 ** t2 ** t1} hello world ${typeof t1 ** t2 ** t1}`; +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 0, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 0, 3)) + +`${1 + typeof t1 ** t2 ** t1} hello world ${1 + typeof t1 ** t2 ** t1}`; +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 0, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError1.ts, 0, 3)) + diff --git a/tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError1(target=es5).types b/tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError1(target=es5).types new file mode 100644 index 0000000000000..c6586209116b5 --- /dev/null +++ b/tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError1(target=es5).types @@ -0,0 +1,503 @@ +//// [tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts] //// + +=== exponentiationOperatorInTemplateStringWithSyntaxError1.ts === +var t1 = 10; +>t1 : number +> : ^^^^^^ +>10 : 10 +> : ^^ + +var t2 = 10; +>t2 : number +> : ^^^^^^ +>10 : 10 +> : ^^ + +var s; +>s : any +> : ^^^ + +// Error: early syntax error using ES7 SimpleUnaryExpression on left-hand side without () +// TempateHead & TemplateTail are empty +`${1 + typeof t1 ** t2 ** t1}`; +>`${1 + typeof t1 ** t2 ** t1}` : string +> : ^^^^^^ +>1 + typeof t1 ** t2 ** t1 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>typeof t1 ** t2 ** t1 : number +> : ^^^^^^ +>typeof t1 : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`${-t1 ** t2 - t1}`; +>`${-t1 ** t2 - t1}` : string +> : ^^^^^^ +>-t1 ** t2 - t1 : number +> : ^^^^^^ +>-t1 ** t2 : number +> : ^^^^^^ +>-t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`${-++t1 ** t2 - t1}`; +>`${-++t1 ** t2 - t1}` : string +> : ^^^^^^ +>-++t1 ** t2 - t1 : number +> : ^^^^^^ +>-++t1 ** t2 : number +> : ^^^^^^ +>-++t1 : number +> : ^^^^^^ +>++t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`${-t1++ ** t2 - t1}`; +>`${-t1++ ** t2 - t1}` : string +> : ^^^^^^ +>-t1++ ** t2 - t1 : number +> : ^^^^^^ +>-t1++ ** t2 : number +> : ^^^^^^ +>-t1++ : number +> : ^^^^^^ +>t1++ : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`${!t1 ** t2 ** --t1 }`; +>`${!t1 ** t2 ** --t1 }` : string +> : ^^^^^^ +>!t1 ** t2 ** --t1 : number +> : ^^^^^^ +>!t1 : boolean +> : ^^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** --t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>--t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`${typeof t1 ** t2 ** t1}`; +>`${typeof t1 ** t2 ** t1}` : string +> : ^^^^^^ +>typeof t1 ** t2 ** t1 : number +> : ^^^^^^ +>typeof t1 : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`${-t1 ** t2 - t1}${-t1 ** t2 - t1}`; +>`${-t1 ** t2 - t1}${-t1 ** t2 - t1}` : string +> : ^^^^^^ +>-t1 ** t2 - t1 : number +> : ^^^^^^ +>-t1 ** t2 : number +> : ^^^^^^ +>-t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>-t1 ** t2 - t1 : number +> : ^^^^^^ +>-t1 ** t2 : number +> : ^^^^^^ +>-t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`${-++t1 ** t2 - t1}${-++t1 ** t2 - t1}`; +>`${-++t1 ** t2 - t1}${-++t1 ** t2 - t1}` : string +> : ^^^^^^ +>-++t1 ** t2 - t1 : number +> : ^^^^^^ +>-++t1 ** t2 : number +> : ^^^^^^ +>-++t1 : number +> : ^^^^^^ +>++t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>-++t1 ** t2 - t1 : number +> : ^^^^^^ +>-++t1 ** t2 : number +> : ^^^^^^ +>-++t1 : number +> : ^^^^^^ +>++t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`${-t1++ ** t2 - t1}${-t1++ ** t2 - t1}`; +>`${-t1++ ** t2 - t1}${-t1++ ** t2 - t1}` : string +> : ^^^^^^ +>-t1++ ** t2 - t1 : number +> : ^^^^^^ +>-t1++ ** t2 : number +> : ^^^^^^ +>-t1++ : number +> : ^^^^^^ +>t1++ : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>-t1++ ** t2 - t1 : number +> : ^^^^^^ +>-t1++ ** t2 : number +> : ^^^^^^ +>-t1++ : number +> : ^^^^^^ +>t1++ : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`${!t1 ** t2 ** --t1 }${!t1 ** t2 ** --t1 }`; +>`${!t1 ** t2 ** --t1 }${!t1 ** t2 ** --t1 }` : string +> : ^^^^^^ +>!t1 ** t2 ** --t1 : number +> : ^^^^^^ +>!t1 : boolean +> : ^^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** --t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>--t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>!t1 ** t2 ** --t1 : number +> : ^^^^^^ +>!t1 : boolean +> : ^^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** --t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>--t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`${typeof t1 ** t2 ** t1}${typeof t1 ** t2 ** t1}`; +>`${typeof t1 ** t2 ** t1}${typeof t1 ** t2 ** t1}` : string +> : ^^^^^^ +>typeof t1 ** t2 ** t1 : number +> : ^^^^^^ +>typeof t1 : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>typeof t1 ** t2 ** t1 : number +> : ^^^^^^ +>typeof t1 : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`${1 + typeof t1 ** t2 ** t1}${1 + typeof t1 ** t2 ** t1}`; +>`${1 + typeof t1 ** t2 ** t1}${1 + typeof t1 ** t2 ** t1}` : string +> : ^^^^^^ +>1 + typeof t1 ** t2 ** t1 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>typeof t1 ** t2 ** t1 : number +> : ^^^^^^ +>typeof t1 : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>1 + typeof t1 ** t2 ** t1 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>typeof t1 ** t2 ** t1 : number +> : ^^^^^^ +>typeof t1 : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`${-t1 ** t2 - t1} hello world ${-t1 ** t2 - t1}`; +>`${-t1 ** t2 - t1} hello world ${-t1 ** t2 - t1}` : string +> : ^^^^^^ +>-t1 ** t2 - t1 : number +> : ^^^^^^ +>-t1 ** t2 : number +> : ^^^^^^ +>-t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>-t1 ** t2 - t1 : number +> : ^^^^^^ +>-t1 ** t2 : number +> : ^^^^^^ +>-t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`${-++t1 ** t2 - t1} hello world ${-++t1 ** t2 - t1}`; +>`${-++t1 ** t2 - t1} hello world ${-++t1 ** t2 - t1}` : string +> : ^^^^^^ +>-++t1 ** t2 - t1 : number +> : ^^^^^^ +>-++t1 ** t2 : number +> : ^^^^^^ +>-++t1 : number +> : ^^^^^^ +>++t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>-++t1 ** t2 - t1 : number +> : ^^^^^^ +>-++t1 ** t2 : number +> : ^^^^^^ +>-++t1 : number +> : ^^^^^^ +>++t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`${-t1++ ** t2 - t1} hello world ${-t1++ ** t2 - t1}`; +>`${-t1++ ** t2 - t1} hello world ${-t1++ ** t2 - t1}` : string +> : ^^^^^^ +>-t1++ ** t2 - t1 : number +> : ^^^^^^ +>-t1++ ** t2 : number +> : ^^^^^^ +>-t1++ : number +> : ^^^^^^ +>t1++ : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>-t1++ ** t2 - t1 : number +> : ^^^^^^ +>-t1++ ** t2 : number +> : ^^^^^^ +>-t1++ : number +> : ^^^^^^ +>t1++ : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`${!t1 ** t2 ** --t1 } hello world ${!t1 ** t2 ** --t1 }`; +>`${!t1 ** t2 ** --t1 } hello world ${!t1 ** t2 ** --t1 }` : string +> : ^^^^^^ +>!t1 ** t2 ** --t1 : number +> : ^^^^^^ +>!t1 : boolean +> : ^^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** --t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>--t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>!t1 ** t2 ** --t1 : number +> : ^^^^^^ +>!t1 : boolean +> : ^^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** --t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>--t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`${typeof t1 ** t2 ** t1} hello world ${typeof t1 ** t2 ** t1}`; +>`${typeof t1 ** t2 ** t1} hello world ${typeof t1 ** t2 ** t1}` : string +> : ^^^^^^ +>typeof t1 ** t2 ** t1 : number +> : ^^^^^^ +>typeof t1 : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>typeof t1 ** t2 ** t1 : number +> : ^^^^^^ +>typeof t1 : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`${1 + typeof t1 ** t2 ** t1} hello world ${1 + typeof t1 ** t2 ** t1}`; +>`${1 + typeof t1 ** t2 ** t1} hello world ${1 + typeof t1 ** t2 ** t1}` : string +> : ^^^^^^ +>1 + typeof t1 ** t2 ** t1 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>typeof t1 ** t2 ** t1 : number +> : ^^^^^^ +>typeof t1 : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>1 + typeof t1 ** t2 ** t1 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>typeof t1 ** t2 ** t1 : number +> : ^^^^^^ +>typeof t1 : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + diff --git a/tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError2.errors.txt b/tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError2(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError2.errors.txt rename to tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError2(target=es2015).errors.txt diff --git a/tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError2(target=es2015).js b/tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError2(target=es2015).js new file mode 100644 index 0000000000000..9444a0c3283f9 --- /dev/null +++ b/tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError2(target=es2015).js @@ -0,0 +1,55 @@ +//// [tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts] //// + +//// [exponentiationOperatorInTemplateStringWithSyntaxError2.ts] +var t1 = 10; +var t2 = 10; +var s; + +// Error: early syntax error using ES7 SimpleUnaryExpression on left-hand side without () +// With templateHead +`hello ${-t1 ** t2 - t1}`; +`hello ${-++t1 ** t2 - t1}`; +`hello ${-t1++ ** t2 - t1}`; +`hello ${!t1 ** t2 ** --t1 }`; +`hello ${typeof t1 ** t2 ** t1}`; +`hello ${1 + typeof t1 ** t2 ** t1}`; + +`hello ${-t1 ** t2 - t1}${-t1 ** t2 - t1}`; +`hello ${-++t1 ** t2 - t1}${-++t1 ** t2 - t1}`; +`hello ${-t1++ ** t2 - t1}${-t1++ ** t2 - t1}`; +`hello ${!t1 ** t2 ** --t1 }${!t1 ** t2 ** --t1 }`; +`hello ${typeof t1 ** t2 ** t1}${typeof t1 ** t2 ** t1}`; +`hello ${1 + typeof t1 ** t2 ** t1}${1 + typeof t1 ** t2 ** t1}`; + +`hello ${-t1 ** t2 - t1} hello world ${-t1 ** t2 - t1}`; +`hello ${-++t1 ** t2 - t1} hello world ${-++t1 ** t2 - t1}`; +`hello ${-t1++ ** t2 - t1} hello world ${-t1++ ** t2 - t1}`; +`hello ${!t1 ** t2 ** --t1 } hello world ${!t1 ** t2 ** --t1 }`; +`hello ${typeof t1 ** t2 ** t1} hello world ${typeof t1 ** t2 ** t1}`; +`hello ${1 + typeof t1 ** t2 ** t1} hello world ${1 + typeof t1 ** t2 ** t1}`; + + +//// [exponentiationOperatorInTemplateStringWithSyntaxError2.js] +var t1 = 10; +var t2 = 10; +var s; +// Error: early syntax error using ES7 SimpleUnaryExpression on left-hand side without () +// With templateHead +`hello ${Math.pow(-t1, t2) - t1}`; +`hello ${Math.pow(-++t1, t2) - t1}`; +`hello ${Math.pow(-t1++, t2) - t1}`; +`hello ${Math.pow(!t1, Math.pow(t2, --t1))}`; +`hello ${Math.pow(typeof t1, Math.pow(t2, t1))}`; +`hello ${1 + Math.pow(typeof t1, Math.pow(t2, t1))}`; +`hello ${Math.pow(-t1, t2) - t1}${Math.pow(-t1, t2) - t1}`; +`hello ${Math.pow(-++t1, t2) - t1}${Math.pow(-++t1, t2) - t1}`; +`hello ${Math.pow(-t1++, t2) - t1}${Math.pow(-t1++, t2) - t1}`; +`hello ${Math.pow(!t1, Math.pow(t2, --t1))}${Math.pow(!t1, Math.pow(t2, --t1))}`; +`hello ${Math.pow(typeof t1, Math.pow(t2, t1))}${Math.pow(typeof t1, Math.pow(t2, t1))}`; +`hello ${1 + Math.pow(typeof t1, Math.pow(t2, t1))}${1 + Math.pow(typeof t1, Math.pow(t2, t1))}`; +`hello ${Math.pow(-t1, t2) - t1} hello world ${Math.pow(-t1, t2) - t1}`; +`hello ${Math.pow(-++t1, t2) - t1} hello world ${Math.pow(-++t1, t2) - t1}`; +`hello ${Math.pow(-t1++, t2) - t1} hello world ${Math.pow(-t1++, t2) - t1}`; +`hello ${Math.pow(!t1, Math.pow(t2, --t1))} hello world ${Math.pow(!t1, Math.pow(t2, --t1))}`; +`hello ${Math.pow(typeof t1, Math.pow(t2, t1))} hello world ${Math.pow(typeof t1, Math.pow(t2, t1))}`; +`hello ${1 + Math.pow(typeof t1, Math.pow(t2, t1))} hello world ${1 + Math.pow(typeof t1, Math.pow(t2, t1))}`; diff --git a/tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError2.symbols b/tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError2(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError2.symbols rename to tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError2(target=es2015).symbols diff --git a/tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError2.types b/tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError2(target=es2015).types similarity index 100% rename from tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError2.types rename to tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError2(target=es2015).types diff --git a/tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError2(target=es5).errors.txt b/tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError2(target=es5).errors.txt new file mode 100644 index 0000000000000..e00f846604697 --- /dev/null +++ b/tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError2(target=es5).errors.txt @@ -0,0 +1,165 @@ +exponentiationOperatorInTemplateStringWithSyntaxError2.ts(7,10): error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError2.ts(8,10): error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError2.ts(9,10): error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError2.ts(10,10): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +exponentiationOperatorInTemplateStringWithSyntaxError2.ts(10,10): error TS17006: An unary expression with the '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError2.ts(11,10): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +exponentiationOperatorInTemplateStringWithSyntaxError2.ts(11,10): error TS17006: An unary expression with the 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError2.ts(12,14): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +exponentiationOperatorInTemplateStringWithSyntaxError2.ts(12,14): error TS17006: An unary expression with the 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError2.ts(14,10): error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError2.ts(14,27): error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError2.ts(15,10): error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError2.ts(15,29): error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError2.ts(16,10): error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError2.ts(16,29): error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError2.ts(17,10): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +exponentiationOperatorInTemplateStringWithSyntaxError2.ts(17,10): error TS17006: An unary expression with the '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError2.ts(17,31): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +exponentiationOperatorInTemplateStringWithSyntaxError2.ts(17,31): error TS17006: An unary expression with the '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError2.ts(18,10): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +exponentiationOperatorInTemplateStringWithSyntaxError2.ts(18,10): error TS17006: An unary expression with the 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError2.ts(18,34): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +exponentiationOperatorInTemplateStringWithSyntaxError2.ts(18,34): error TS17006: An unary expression with the 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError2.ts(19,14): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +exponentiationOperatorInTemplateStringWithSyntaxError2.ts(19,14): error TS17006: An unary expression with the 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError2.ts(19,42): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +exponentiationOperatorInTemplateStringWithSyntaxError2.ts(19,42): error TS17006: An unary expression with the 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError2.ts(21,10): error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError2.ts(21,40): error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError2.ts(22,10): error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError2.ts(22,42): error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError2.ts(23,10): error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError2.ts(23,42): error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError2.ts(24,10): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +exponentiationOperatorInTemplateStringWithSyntaxError2.ts(24,10): error TS17006: An unary expression with the '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError2.ts(24,44): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +exponentiationOperatorInTemplateStringWithSyntaxError2.ts(24,44): error TS17006: An unary expression with the '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError2.ts(25,10): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +exponentiationOperatorInTemplateStringWithSyntaxError2.ts(25,10): error TS17006: An unary expression with the 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError2.ts(25,47): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +exponentiationOperatorInTemplateStringWithSyntaxError2.ts(25,47): error TS17006: An unary expression with the 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError2.ts(26,14): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +exponentiationOperatorInTemplateStringWithSyntaxError2.ts(26,14): error TS17006: An unary expression with the 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError2.ts(26,55): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +exponentiationOperatorInTemplateStringWithSyntaxError2.ts(26,55): error TS17006: An unary expression with the 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + + +==== exponentiationOperatorInTemplateStringWithSyntaxError2.ts (45 errors) ==== + var t1 = 10; + var t2 = 10; + var s; + + // Error: early syntax error using ES7 SimpleUnaryExpression on left-hand side without () + // With templateHead + `hello ${-t1 ** t2 - t1}`; + ~~~ +!!! error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + `hello ${-++t1 ** t2 - t1}`; + ~~~~~ +!!! error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + `hello ${-t1++ ** t2 - t1}`; + ~~~~~ +!!! error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + `hello ${!t1 ** t2 ** --t1 }`; + ~~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + ~~~ +!!! error TS17006: An unary expression with the '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + `hello ${typeof t1 ** t2 ** t1}`; + ~~~~~~~~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + ~~~~~~~~~ +!!! error TS17006: An unary expression with the 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + `hello ${1 + typeof t1 ** t2 ** t1}`; + ~~~~~~~~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + ~~~~~~~~~ +!!! error TS17006: An unary expression with the 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + + `hello ${-t1 ** t2 - t1}${-t1 ** t2 - t1}`; + ~~~ +!!! error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + ~~~ +!!! error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + `hello ${-++t1 ** t2 - t1}${-++t1 ** t2 - t1}`; + ~~~~~ +!!! error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + ~~~~~ +!!! error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + `hello ${-t1++ ** t2 - t1}${-t1++ ** t2 - t1}`; + ~~~~~ +!!! error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + ~~~~~ +!!! error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + `hello ${!t1 ** t2 ** --t1 }${!t1 ** t2 ** --t1 }`; + ~~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + ~~~ +!!! error TS17006: An unary expression with the '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + ~~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + ~~~ +!!! error TS17006: An unary expression with the '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + `hello ${typeof t1 ** t2 ** t1}${typeof t1 ** t2 ** t1}`; + ~~~~~~~~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + ~~~~~~~~~ +!!! error TS17006: An unary expression with the 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + ~~~~~~~~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + ~~~~~~~~~ +!!! error TS17006: An unary expression with the 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + `hello ${1 + typeof t1 ** t2 ** t1}${1 + typeof t1 ** t2 ** t1}`; + ~~~~~~~~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + ~~~~~~~~~ +!!! error TS17006: An unary expression with the 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + ~~~~~~~~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + ~~~~~~~~~ +!!! error TS17006: An unary expression with the 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + + `hello ${-t1 ** t2 - t1} hello world ${-t1 ** t2 - t1}`; + ~~~ +!!! error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + ~~~ +!!! error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + `hello ${-++t1 ** t2 - t1} hello world ${-++t1 ** t2 - t1}`; + ~~~~~ +!!! error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + ~~~~~ +!!! error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + `hello ${-t1++ ** t2 - t1} hello world ${-t1++ ** t2 - t1}`; + ~~~~~ +!!! error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + ~~~~~ +!!! error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + `hello ${!t1 ** t2 ** --t1 } hello world ${!t1 ** t2 ** --t1 }`; + ~~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + ~~~ +!!! error TS17006: An unary expression with the '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + ~~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + ~~~ +!!! error TS17006: An unary expression with the '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + `hello ${typeof t1 ** t2 ** t1} hello world ${typeof t1 ** t2 ** t1}`; + ~~~~~~~~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + ~~~~~~~~~ +!!! error TS17006: An unary expression with the 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + ~~~~~~~~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + ~~~~~~~~~ +!!! error TS17006: An unary expression with the 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + `hello ${1 + typeof t1 ** t2 ** t1} hello world ${1 + typeof t1 ** t2 ** t1}`; + ~~~~~~~~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + ~~~~~~~~~ +!!! error TS17006: An unary expression with the 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + ~~~~~~~~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + ~~~~~~~~~ +!!! error TS17006: An unary expression with the 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + \ No newline at end of file diff --git a/tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError2.js b/tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError2(target=es5).js similarity index 100% rename from tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError2.js rename to tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError2(target=es5).js diff --git a/tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError2(target=es5).symbols b/tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError2(target=es5).symbols new file mode 100644 index 0000000000000..b07c681b1b8f5 --- /dev/null +++ b/tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError2(target=es5).symbols @@ -0,0 +1,140 @@ +//// [tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts] //// + +=== exponentiationOperatorInTemplateStringWithSyntaxError2.ts === +var t1 = 10; +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 0, 3)) + +var t2 = 10; +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 1, 3)) + +var s; +>s : Symbol(s, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 2, 3)) + +// Error: early syntax error using ES7 SimpleUnaryExpression on left-hand side without () +// With templateHead +`hello ${-t1 ** t2 - t1}`; +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 0, 3)) + +`hello ${-++t1 ** t2 - t1}`; +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 0, 3)) + +`hello ${-t1++ ** t2 - t1}`; +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 0, 3)) + +`hello ${!t1 ** t2 ** --t1 }`; +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 0, 3)) + +`hello ${typeof t1 ** t2 ** t1}`; +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 0, 3)) + +`hello ${1 + typeof t1 ** t2 ** t1}`; +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 0, 3)) + +`hello ${-t1 ** t2 - t1}${-t1 ** t2 - t1}`; +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 0, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 0, 3)) + +`hello ${-++t1 ** t2 - t1}${-++t1 ** t2 - t1}`; +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 0, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 0, 3)) + +`hello ${-t1++ ** t2 - t1}${-t1++ ** t2 - t1}`; +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 0, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 0, 3)) + +`hello ${!t1 ** t2 ** --t1 }${!t1 ** t2 ** --t1 }`; +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 0, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 0, 3)) + +`hello ${typeof t1 ** t2 ** t1}${typeof t1 ** t2 ** t1}`; +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 0, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 0, 3)) + +`hello ${1 + typeof t1 ** t2 ** t1}${1 + typeof t1 ** t2 ** t1}`; +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 0, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 0, 3)) + +`hello ${-t1 ** t2 - t1} hello world ${-t1 ** t2 - t1}`; +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 0, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 0, 3)) + +`hello ${-++t1 ** t2 - t1} hello world ${-++t1 ** t2 - t1}`; +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 0, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 0, 3)) + +`hello ${-t1++ ** t2 - t1} hello world ${-t1++ ** t2 - t1}`; +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 0, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 0, 3)) + +`hello ${!t1 ** t2 ** --t1 } hello world ${!t1 ** t2 ** --t1 }`; +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 0, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 0, 3)) + +`hello ${typeof t1 ** t2 ** t1} hello world ${typeof t1 ** t2 ** t1}`; +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 0, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 0, 3)) + +`hello ${1 + typeof t1 ** t2 ** t1} hello world ${1 + typeof t1 ** t2 ** t1}`; +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 0, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError2.ts, 0, 3)) + diff --git a/tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError2(target=es5).types b/tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError2(target=es5).types new file mode 100644 index 0000000000000..5be34a6f63d45 --- /dev/null +++ b/tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError2(target=es5).types @@ -0,0 +1,503 @@ +//// [tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts] //// + +=== exponentiationOperatorInTemplateStringWithSyntaxError2.ts === +var t1 = 10; +>t1 : number +> : ^^^^^^ +>10 : 10 +> : ^^ + +var t2 = 10; +>t2 : number +> : ^^^^^^ +>10 : 10 +> : ^^ + +var s; +>s : any +> : ^^^ + +// Error: early syntax error using ES7 SimpleUnaryExpression on left-hand side without () +// With templateHead +`hello ${-t1 ** t2 - t1}`; +>`hello ${-t1 ** t2 - t1}` : string +> : ^^^^^^ +>-t1 ** t2 - t1 : number +> : ^^^^^^ +>-t1 ** t2 : number +> : ^^^^^^ +>-t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`hello ${-++t1 ** t2 - t1}`; +>`hello ${-++t1 ** t2 - t1}` : string +> : ^^^^^^ +>-++t1 ** t2 - t1 : number +> : ^^^^^^ +>-++t1 ** t2 : number +> : ^^^^^^ +>-++t1 : number +> : ^^^^^^ +>++t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`hello ${-t1++ ** t2 - t1}`; +>`hello ${-t1++ ** t2 - t1}` : string +> : ^^^^^^ +>-t1++ ** t2 - t1 : number +> : ^^^^^^ +>-t1++ ** t2 : number +> : ^^^^^^ +>-t1++ : number +> : ^^^^^^ +>t1++ : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`hello ${!t1 ** t2 ** --t1 }`; +>`hello ${!t1 ** t2 ** --t1 }` : string +> : ^^^^^^ +>!t1 ** t2 ** --t1 : number +> : ^^^^^^ +>!t1 : boolean +> : ^^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** --t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>--t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`hello ${typeof t1 ** t2 ** t1}`; +>`hello ${typeof t1 ** t2 ** t1}` : string +> : ^^^^^^ +>typeof t1 ** t2 ** t1 : number +> : ^^^^^^ +>typeof t1 : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`hello ${1 + typeof t1 ** t2 ** t1}`; +>`hello ${1 + typeof t1 ** t2 ** t1}` : string +> : ^^^^^^ +>1 + typeof t1 ** t2 ** t1 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>typeof t1 ** t2 ** t1 : number +> : ^^^^^^ +>typeof t1 : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`hello ${-t1 ** t2 - t1}${-t1 ** t2 - t1}`; +>`hello ${-t1 ** t2 - t1}${-t1 ** t2 - t1}` : string +> : ^^^^^^ +>-t1 ** t2 - t1 : number +> : ^^^^^^ +>-t1 ** t2 : number +> : ^^^^^^ +>-t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>-t1 ** t2 - t1 : number +> : ^^^^^^ +>-t1 ** t2 : number +> : ^^^^^^ +>-t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`hello ${-++t1 ** t2 - t1}${-++t1 ** t2 - t1}`; +>`hello ${-++t1 ** t2 - t1}${-++t1 ** t2 - t1}` : string +> : ^^^^^^ +>-++t1 ** t2 - t1 : number +> : ^^^^^^ +>-++t1 ** t2 : number +> : ^^^^^^ +>-++t1 : number +> : ^^^^^^ +>++t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>-++t1 ** t2 - t1 : number +> : ^^^^^^ +>-++t1 ** t2 : number +> : ^^^^^^ +>-++t1 : number +> : ^^^^^^ +>++t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`hello ${-t1++ ** t2 - t1}${-t1++ ** t2 - t1}`; +>`hello ${-t1++ ** t2 - t1}${-t1++ ** t2 - t1}` : string +> : ^^^^^^ +>-t1++ ** t2 - t1 : number +> : ^^^^^^ +>-t1++ ** t2 : number +> : ^^^^^^ +>-t1++ : number +> : ^^^^^^ +>t1++ : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>-t1++ ** t2 - t1 : number +> : ^^^^^^ +>-t1++ ** t2 : number +> : ^^^^^^ +>-t1++ : number +> : ^^^^^^ +>t1++ : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`hello ${!t1 ** t2 ** --t1 }${!t1 ** t2 ** --t1 }`; +>`hello ${!t1 ** t2 ** --t1 }${!t1 ** t2 ** --t1 }` : string +> : ^^^^^^ +>!t1 ** t2 ** --t1 : number +> : ^^^^^^ +>!t1 : boolean +> : ^^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** --t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>--t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>!t1 ** t2 ** --t1 : number +> : ^^^^^^ +>!t1 : boolean +> : ^^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** --t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>--t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`hello ${typeof t1 ** t2 ** t1}${typeof t1 ** t2 ** t1}`; +>`hello ${typeof t1 ** t2 ** t1}${typeof t1 ** t2 ** t1}` : string +> : ^^^^^^ +>typeof t1 ** t2 ** t1 : number +> : ^^^^^^ +>typeof t1 : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>typeof t1 ** t2 ** t1 : number +> : ^^^^^^ +>typeof t1 : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`hello ${1 + typeof t1 ** t2 ** t1}${1 + typeof t1 ** t2 ** t1}`; +>`hello ${1 + typeof t1 ** t2 ** t1}${1 + typeof t1 ** t2 ** t1}` : string +> : ^^^^^^ +>1 + typeof t1 ** t2 ** t1 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>typeof t1 ** t2 ** t1 : number +> : ^^^^^^ +>typeof t1 : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>1 + typeof t1 ** t2 ** t1 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>typeof t1 ** t2 ** t1 : number +> : ^^^^^^ +>typeof t1 : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`hello ${-t1 ** t2 - t1} hello world ${-t1 ** t2 - t1}`; +>`hello ${-t1 ** t2 - t1} hello world ${-t1 ** t2 - t1}` : string +> : ^^^^^^ +>-t1 ** t2 - t1 : number +> : ^^^^^^ +>-t1 ** t2 : number +> : ^^^^^^ +>-t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>-t1 ** t2 - t1 : number +> : ^^^^^^ +>-t1 ** t2 : number +> : ^^^^^^ +>-t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`hello ${-++t1 ** t2 - t1} hello world ${-++t1 ** t2 - t1}`; +>`hello ${-++t1 ** t2 - t1} hello world ${-++t1 ** t2 - t1}` : string +> : ^^^^^^ +>-++t1 ** t2 - t1 : number +> : ^^^^^^ +>-++t1 ** t2 : number +> : ^^^^^^ +>-++t1 : number +> : ^^^^^^ +>++t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>-++t1 ** t2 - t1 : number +> : ^^^^^^ +>-++t1 ** t2 : number +> : ^^^^^^ +>-++t1 : number +> : ^^^^^^ +>++t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`hello ${-t1++ ** t2 - t1} hello world ${-t1++ ** t2 - t1}`; +>`hello ${-t1++ ** t2 - t1} hello world ${-t1++ ** t2 - t1}` : string +> : ^^^^^^ +>-t1++ ** t2 - t1 : number +> : ^^^^^^ +>-t1++ ** t2 : number +> : ^^^^^^ +>-t1++ : number +> : ^^^^^^ +>t1++ : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>-t1++ ** t2 - t1 : number +> : ^^^^^^ +>-t1++ ** t2 : number +> : ^^^^^^ +>-t1++ : number +> : ^^^^^^ +>t1++ : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`hello ${!t1 ** t2 ** --t1 } hello world ${!t1 ** t2 ** --t1 }`; +>`hello ${!t1 ** t2 ** --t1 } hello world ${!t1 ** t2 ** --t1 }` : string +> : ^^^^^^ +>!t1 ** t2 ** --t1 : number +> : ^^^^^^ +>!t1 : boolean +> : ^^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** --t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>--t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>!t1 ** t2 ** --t1 : number +> : ^^^^^^ +>!t1 : boolean +> : ^^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** --t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>--t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`hello ${typeof t1 ** t2 ** t1} hello world ${typeof t1 ** t2 ** t1}`; +>`hello ${typeof t1 ** t2 ** t1} hello world ${typeof t1 ** t2 ** t1}` : string +> : ^^^^^^ +>typeof t1 ** t2 ** t1 : number +> : ^^^^^^ +>typeof t1 : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>typeof t1 ** t2 ** t1 : number +> : ^^^^^^ +>typeof t1 : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`hello ${1 + typeof t1 ** t2 ** t1} hello world ${1 + typeof t1 ** t2 ** t1}`; +>`hello ${1 + typeof t1 ** t2 ** t1} hello world ${1 + typeof t1 ** t2 ** t1}` : string +> : ^^^^^^ +>1 + typeof t1 ** t2 ** t1 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>typeof t1 ** t2 ** t1 : number +> : ^^^^^^ +>typeof t1 : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>1 + typeof t1 ** t2 ** t1 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>typeof t1 ** t2 ** t1 : number +> : ^^^^^^ +>typeof t1 : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + diff --git a/tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError3.errors.txt b/tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError3(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError3.errors.txt rename to tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError3(target=es2015).errors.txt diff --git a/tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError3(target=es2015).js b/tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError3(target=es2015).js new file mode 100644 index 0000000000000..f7bf7a8cd549c --- /dev/null +++ b/tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError3(target=es2015).js @@ -0,0 +1,54 @@ +//// [tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts] //// + +//// [exponentiationOperatorInTemplateStringWithSyntaxError3.ts] +var t1 = 10; +var t2 = 10; +var s; + +// Error: early syntax error using ES7 SimpleUnaryExpression on left-hand side without () +// With TemplateTail +`${-t1 ** t2 - t1} world`; +`${-++t1 ** t2 - t1} world`; +`${-t1++ ** t2 - t1} world`; +`${!t1 ** t2 ** --t1 } world`; +`${typeof t1 ** t2 ** t1} world`; +`${1 + typeof t1 ** t2 ** t1} world`; + +`${-t1 ** t2 - t1}${-t1 ** t2 - t1} world`; +`${-++t1 ** t2 - t1}${-++t1 ** t2 - t1} world`; +`${-t1++ ** t2 - t1}${-t1++ ** t2 - t1} world`; +`${!t1 ** t2 ** --t1 }${!t1 ** t2 ** --t1 } world`; +`${typeof t1 ** t2 ** t1}${typeof t1 ** t2 ** t1} world`; +`${1 + typeof t1 ** t2 ** t1}${1 + typeof t1 ** t2 ** t1} world`; + +`${-t1 ** t2 - t1} hello world ${-t1 ** t2 - t1} !!`; +`${-++t1 ** t2 - t1} hello world ${-++t1 ** t2 - t1} !!`; +`${-t1++ ** t2 - t1} hello world ${-t1++ ** t2 - t1} !!`; +`${!t1 ** t2 ** --t1 } hello world ${!t1 ** t2 ** --t1 } !!`; +`${typeof t1 ** t2 ** t1} hello world ${typeof t1 ** t2 ** t1} !!`; +`${1 + typeof t1 ** t2 ** t1} hello world ${1 + typeof t1 ** t2 ** t1} !!`; + +//// [exponentiationOperatorInTemplateStringWithSyntaxError3.js] +var t1 = 10; +var t2 = 10; +var s; +// Error: early syntax error using ES7 SimpleUnaryExpression on left-hand side without () +// With TemplateTail +`${Math.pow(-t1, t2) - t1} world`; +`${Math.pow(-++t1, t2) - t1} world`; +`${Math.pow(-t1++, t2) - t1} world`; +`${Math.pow(!t1, Math.pow(t2, --t1))} world`; +`${Math.pow(typeof t1, Math.pow(t2, t1))} world`; +`${1 + Math.pow(typeof t1, Math.pow(t2, t1))} world`; +`${Math.pow(-t1, t2) - t1}${Math.pow(-t1, t2) - t1} world`; +`${Math.pow(-++t1, t2) - t1}${Math.pow(-++t1, t2) - t1} world`; +`${Math.pow(-t1++, t2) - t1}${Math.pow(-t1++, t2) - t1} world`; +`${Math.pow(!t1, Math.pow(t2, --t1))}${Math.pow(!t1, Math.pow(t2, --t1))} world`; +`${Math.pow(typeof t1, Math.pow(t2, t1))}${Math.pow(typeof t1, Math.pow(t2, t1))} world`; +`${1 + Math.pow(typeof t1, Math.pow(t2, t1))}${1 + Math.pow(typeof t1, Math.pow(t2, t1))} world`; +`${Math.pow(-t1, t2) - t1} hello world ${Math.pow(-t1, t2) - t1} !!`; +`${Math.pow(-++t1, t2) - t1} hello world ${Math.pow(-++t1, t2) - t1} !!`; +`${Math.pow(-t1++, t2) - t1} hello world ${Math.pow(-t1++, t2) - t1} !!`; +`${Math.pow(!t1, Math.pow(t2, --t1))} hello world ${Math.pow(!t1, Math.pow(t2, --t1))} !!`; +`${Math.pow(typeof t1, Math.pow(t2, t1))} hello world ${Math.pow(typeof t1, Math.pow(t2, t1))} !!`; +`${1 + Math.pow(typeof t1, Math.pow(t2, t1))} hello world ${1 + Math.pow(typeof t1, Math.pow(t2, t1))} !!`; diff --git a/tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError3.symbols b/tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError3(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError3.symbols rename to tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError3(target=es2015).symbols diff --git a/tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError3.types b/tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError3(target=es2015).types similarity index 100% rename from tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError3.types rename to tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError3(target=es2015).types diff --git a/tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError3(target=es5).errors.txt b/tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError3(target=es5).errors.txt new file mode 100644 index 0000000000000..92204624dc7e1 --- /dev/null +++ b/tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError3(target=es5).errors.txt @@ -0,0 +1,164 @@ +exponentiationOperatorInTemplateStringWithSyntaxError3.ts(7,4): error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError3.ts(8,4): error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError3.ts(9,4): error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError3.ts(10,4): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +exponentiationOperatorInTemplateStringWithSyntaxError3.ts(10,4): error TS17006: An unary expression with the '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError3.ts(11,4): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +exponentiationOperatorInTemplateStringWithSyntaxError3.ts(11,4): error TS17006: An unary expression with the 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError3.ts(12,8): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +exponentiationOperatorInTemplateStringWithSyntaxError3.ts(12,8): error TS17006: An unary expression with the 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError3.ts(14,4): error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError3.ts(14,21): error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError3.ts(15,4): error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError3.ts(15,23): error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError3.ts(16,4): error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError3.ts(16,23): error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError3.ts(17,4): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +exponentiationOperatorInTemplateStringWithSyntaxError3.ts(17,4): error TS17006: An unary expression with the '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError3.ts(17,25): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +exponentiationOperatorInTemplateStringWithSyntaxError3.ts(17,25): error TS17006: An unary expression with the '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError3.ts(18,4): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +exponentiationOperatorInTemplateStringWithSyntaxError3.ts(18,4): error TS17006: An unary expression with the 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError3.ts(18,28): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +exponentiationOperatorInTemplateStringWithSyntaxError3.ts(18,28): error TS17006: An unary expression with the 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError3.ts(19,8): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +exponentiationOperatorInTemplateStringWithSyntaxError3.ts(19,8): error TS17006: An unary expression with the 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError3.ts(19,36): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +exponentiationOperatorInTemplateStringWithSyntaxError3.ts(19,36): error TS17006: An unary expression with the 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError3.ts(21,4): error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError3.ts(21,34): error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError3.ts(22,4): error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError3.ts(22,36): error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError3.ts(23,4): error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError3.ts(23,36): error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError3.ts(24,4): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +exponentiationOperatorInTemplateStringWithSyntaxError3.ts(24,4): error TS17006: An unary expression with the '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError3.ts(24,38): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +exponentiationOperatorInTemplateStringWithSyntaxError3.ts(24,38): error TS17006: An unary expression with the '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError3.ts(25,4): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +exponentiationOperatorInTemplateStringWithSyntaxError3.ts(25,4): error TS17006: An unary expression with the 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError3.ts(25,41): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +exponentiationOperatorInTemplateStringWithSyntaxError3.ts(25,41): error TS17006: An unary expression with the 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError3.ts(26,8): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +exponentiationOperatorInTemplateStringWithSyntaxError3.ts(26,8): error TS17006: An unary expression with the 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorInTemplateStringWithSyntaxError3.ts(26,49): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +exponentiationOperatorInTemplateStringWithSyntaxError3.ts(26,49): error TS17006: An unary expression with the 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + + +==== exponentiationOperatorInTemplateStringWithSyntaxError3.ts (45 errors) ==== + var t1 = 10; + var t2 = 10; + var s; + + // Error: early syntax error using ES7 SimpleUnaryExpression on left-hand side without () + // With TemplateTail + `${-t1 ** t2 - t1} world`; + ~~~ +!!! error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + `${-++t1 ** t2 - t1} world`; + ~~~~~ +!!! error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + `${-t1++ ** t2 - t1} world`; + ~~~~~ +!!! error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + `${!t1 ** t2 ** --t1 } world`; + ~~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + ~~~ +!!! error TS17006: An unary expression with the '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + `${typeof t1 ** t2 ** t1} world`; + ~~~~~~~~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + ~~~~~~~~~ +!!! error TS17006: An unary expression with the 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + `${1 + typeof t1 ** t2 ** t1} world`; + ~~~~~~~~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + ~~~~~~~~~ +!!! error TS17006: An unary expression with the 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + + `${-t1 ** t2 - t1}${-t1 ** t2 - t1} world`; + ~~~ +!!! error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + ~~~ +!!! error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + `${-++t1 ** t2 - t1}${-++t1 ** t2 - t1} world`; + ~~~~~ +!!! error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + ~~~~~ +!!! error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + `${-t1++ ** t2 - t1}${-t1++ ** t2 - t1} world`; + ~~~~~ +!!! error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + ~~~~~ +!!! error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + `${!t1 ** t2 ** --t1 }${!t1 ** t2 ** --t1 } world`; + ~~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + ~~~ +!!! error TS17006: An unary expression with the '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + ~~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + ~~~ +!!! error TS17006: An unary expression with the '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + `${typeof t1 ** t2 ** t1}${typeof t1 ** t2 ** t1} world`; + ~~~~~~~~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + ~~~~~~~~~ +!!! error TS17006: An unary expression with the 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + ~~~~~~~~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + ~~~~~~~~~ +!!! error TS17006: An unary expression with the 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + `${1 + typeof t1 ** t2 ** t1}${1 + typeof t1 ** t2 ** t1} world`; + ~~~~~~~~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + ~~~~~~~~~ +!!! error TS17006: An unary expression with the 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + ~~~~~~~~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + ~~~~~~~~~ +!!! error TS17006: An unary expression with the 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + + `${-t1 ** t2 - t1} hello world ${-t1 ** t2 - t1} !!`; + ~~~ +!!! error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + ~~~ +!!! error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + `${-++t1 ** t2 - t1} hello world ${-++t1 ** t2 - t1} !!`; + ~~~~~ +!!! error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + ~~~~~ +!!! error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + `${-t1++ ** t2 - t1} hello world ${-t1++ ** t2 - t1} !!`; + ~~~~~ +!!! error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + ~~~~~ +!!! error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + `${!t1 ** t2 ** --t1 } hello world ${!t1 ** t2 ** --t1 } !!`; + ~~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + ~~~ +!!! error TS17006: An unary expression with the '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + ~~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + ~~~ +!!! error TS17006: An unary expression with the '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + `${typeof t1 ** t2 ** t1} hello world ${typeof t1 ** t2 ** t1} !!`; + ~~~~~~~~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + ~~~~~~~~~ +!!! error TS17006: An unary expression with the 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + ~~~~~~~~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + ~~~~~~~~~ +!!! error TS17006: An unary expression with the 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + `${1 + typeof t1 ** t2 ** t1} hello world ${1 + typeof t1 ** t2 ** t1} !!`; + ~~~~~~~~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + ~~~~~~~~~ +!!! error TS17006: An unary expression with the 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + ~~~~~~~~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + ~~~~~~~~~ +!!! error TS17006: An unary expression with the 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. \ No newline at end of file diff --git a/tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError3.js b/tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError3(target=es5).js similarity index 100% rename from tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError3.js rename to tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError3(target=es5).js diff --git a/tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError3(target=es5).symbols b/tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError3(target=es5).symbols new file mode 100644 index 0000000000000..e54dee0686a32 --- /dev/null +++ b/tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError3(target=es5).symbols @@ -0,0 +1,140 @@ +//// [tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts] //// + +=== exponentiationOperatorInTemplateStringWithSyntaxError3.ts === +var t1 = 10; +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 0, 3)) + +var t2 = 10; +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 1, 3)) + +var s; +>s : Symbol(s, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 2, 3)) + +// Error: early syntax error using ES7 SimpleUnaryExpression on left-hand side without () +// With TemplateTail +`${-t1 ** t2 - t1} world`; +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 0, 3)) + +`${-++t1 ** t2 - t1} world`; +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 0, 3)) + +`${-t1++ ** t2 - t1} world`; +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 0, 3)) + +`${!t1 ** t2 ** --t1 } world`; +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 0, 3)) + +`${typeof t1 ** t2 ** t1} world`; +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 0, 3)) + +`${1 + typeof t1 ** t2 ** t1} world`; +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 0, 3)) + +`${-t1 ** t2 - t1}${-t1 ** t2 - t1} world`; +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 0, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 0, 3)) + +`${-++t1 ** t2 - t1}${-++t1 ** t2 - t1} world`; +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 0, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 0, 3)) + +`${-t1++ ** t2 - t1}${-t1++ ** t2 - t1} world`; +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 0, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 0, 3)) + +`${!t1 ** t2 ** --t1 }${!t1 ** t2 ** --t1 } world`; +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 0, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 0, 3)) + +`${typeof t1 ** t2 ** t1}${typeof t1 ** t2 ** t1} world`; +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 0, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 0, 3)) + +`${1 + typeof t1 ** t2 ** t1}${1 + typeof t1 ** t2 ** t1} world`; +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 0, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 0, 3)) + +`${-t1 ** t2 - t1} hello world ${-t1 ** t2 - t1} !!`; +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 0, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 0, 3)) + +`${-++t1 ** t2 - t1} hello world ${-++t1 ** t2 - t1} !!`; +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 0, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 0, 3)) + +`${-t1++ ** t2 - t1} hello world ${-t1++ ** t2 - t1} !!`; +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 0, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 0, 3)) + +`${!t1 ** t2 ** --t1 } hello world ${!t1 ** t2 ** --t1 } !!`; +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 0, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 0, 3)) + +`${typeof t1 ** t2 ** t1} hello world ${typeof t1 ** t2 ** t1} !!`; +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 0, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 0, 3)) + +`${1 + typeof t1 ** t2 ** t1} hello world ${1 + typeof t1 ** t2 ** t1} !!`; +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 0, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 0, 3)) +>t2 : Symbol(t2, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 1, 3)) +>t1 : Symbol(t1, Decl(exponentiationOperatorInTemplateStringWithSyntaxError3.ts, 0, 3)) + diff --git a/tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError3(target=es5).types b/tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError3(target=es5).types new file mode 100644 index 0000000000000..0f4a40b9e4e93 --- /dev/null +++ b/tests/baselines/reference/exponentiationOperatorInTemplateStringWithSyntaxError3(target=es5).types @@ -0,0 +1,503 @@ +//// [tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts] //// + +=== exponentiationOperatorInTemplateStringWithSyntaxError3.ts === +var t1 = 10; +>t1 : number +> : ^^^^^^ +>10 : 10 +> : ^^ + +var t2 = 10; +>t2 : number +> : ^^^^^^ +>10 : 10 +> : ^^ + +var s; +>s : any +> : ^^^ + +// Error: early syntax error using ES7 SimpleUnaryExpression on left-hand side without () +// With TemplateTail +`${-t1 ** t2 - t1} world`; +>`${-t1 ** t2 - t1} world` : string +> : ^^^^^^ +>-t1 ** t2 - t1 : number +> : ^^^^^^ +>-t1 ** t2 : number +> : ^^^^^^ +>-t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`${-++t1 ** t2 - t1} world`; +>`${-++t1 ** t2 - t1} world` : string +> : ^^^^^^ +>-++t1 ** t2 - t1 : number +> : ^^^^^^ +>-++t1 ** t2 : number +> : ^^^^^^ +>-++t1 : number +> : ^^^^^^ +>++t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`${-t1++ ** t2 - t1} world`; +>`${-t1++ ** t2 - t1} world` : string +> : ^^^^^^ +>-t1++ ** t2 - t1 : number +> : ^^^^^^ +>-t1++ ** t2 : number +> : ^^^^^^ +>-t1++ : number +> : ^^^^^^ +>t1++ : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`${!t1 ** t2 ** --t1 } world`; +>`${!t1 ** t2 ** --t1 } world` : string +> : ^^^^^^ +>!t1 ** t2 ** --t1 : number +> : ^^^^^^ +>!t1 : boolean +> : ^^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** --t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>--t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`${typeof t1 ** t2 ** t1} world`; +>`${typeof t1 ** t2 ** t1} world` : string +> : ^^^^^^ +>typeof t1 ** t2 ** t1 : number +> : ^^^^^^ +>typeof t1 : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`${1 + typeof t1 ** t2 ** t1} world`; +>`${1 + typeof t1 ** t2 ** t1} world` : string +> : ^^^^^^ +>1 + typeof t1 ** t2 ** t1 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>typeof t1 ** t2 ** t1 : number +> : ^^^^^^ +>typeof t1 : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`${-t1 ** t2 - t1}${-t1 ** t2 - t1} world`; +>`${-t1 ** t2 - t1}${-t1 ** t2 - t1} world` : string +> : ^^^^^^ +>-t1 ** t2 - t1 : number +> : ^^^^^^ +>-t1 ** t2 : number +> : ^^^^^^ +>-t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>-t1 ** t2 - t1 : number +> : ^^^^^^ +>-t1 ** t2 : number +> : ^^^^^^ +>-t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`${-++t1 ** t2 - t1}${-++t1 ** t2 - t1} world`; +>`${-++t1 ** t2 - t1}${-++t1 ** t2 - t1} world` : string +> : ^^^^^^ +>-++t1 ** t2 - t1 : number +> : ^^^^^^ +>-++t1 ** t2 : number +> : ^^^^^^ +>-++t1 : number +> : ^^^^^^ +>++t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>-++t1 ** t2 - t1 : number +> : ^^^^^^ +>-++t1 ** t2 : number +> : ^^^^^^ +>-++t1 : number +> : ^^^^^^ +>++t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`${-t1++ ** t2 - t1}${-t1++ ** t2 - t1} world`; +>`${-t1++ ** t2 - t1}${-t1++ ** t2 - t1} world` : string +> : ^^^^^^ +>-t1++ ** t2 - t1 : number +> : ^^^^^^ +>-t1++ ** t2 : number +> : ^^^^^^ +>-t1++ : number +> : ^^^^^^ +>t1++ : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>-t1++ ** t2 - t1 : number +> : ^^^^^^ +>-t1++ ** t2 : number +> : ^^^^^^ +>-t1++ : number +> : ^^^^^^ +>t1++ : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`${!t1 ** t2 ** --t1 }${!t1 ** t2 ** --t1 } world`; +>`${!t1 ** t2 ** --t1 }${!t1 ** t2 ** --t1 } world` : string +> : ^^^^^^ +>!t1 ** t2 ** --t1 : number +> : ^^^^^^ +>!t1 : boolean +> : ^^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** --t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>--t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>!t1 ** t2 ** --t1 : number +> : ^^^^^^ +>!t1 : boolean +> : ^^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** --t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>--t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`${typeof t1 ** t2 ** t1}${typeof t1 ** t2 ** t1} world`; +>`${typeof t1 ** t2 ** t1}${typeof t1 ** t2 ** t1} world` : string +> : ^^^^^^ +>typeof t1 ** t2 ** t1 : number +> : ^^^^^^ +>typeof t1 : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>typeof t1 ** t2 ** t1 : number +> : ^^^^^^ +>typeof t1 : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`${1 + typeof t1 ** t2 ** t1}${1 + typeof t1 ** t2 ** t1} world`; +>`${1 + typeof t1 ** t2 ** t1}${1 + typeof t1 ** t2 ** t1} world` : string +> : ^^^^^^ +>1 + typeof t1 ** t2 ** t1 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>typeof t1 ** t2 ** t1 : number +> : ^^^^^^ +>typeof t1 : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>1 + typeof t1 ** t2 ** t1 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>typeof t1 ** t2 ** t1 : number +> : ^^^^^^ +>typeof t1 : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`${-t1 ** t2 - t1} hello world ${-t1 ** t2 - t1} !!`; +>`${-t1 ** t2 - t1} hello world ${-t1 ** t2 - t1} !!` : string +> : ^^^^^^ +>-t1 ** t2 - t1 : number +> : ^^^^^^ +>-t1 ** t2 : number +> : ^^^^^^ +>-t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>-t1 ** t2 - t1 : number +> : ^^^^^^ +>-t1 ** t2 : number +> : ^^^^^^ +>-t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`${-++t1 ** t2 - t1} hello world ${-++t1 ** t2 - t1} !!`; +>`${-++t1 ** t2 - t1} hello world ${-++t1 ** t2 - t1} !!` : string +> : ^^^^^^ +>-++t1 ** t2 - t1 : number +> : ^^^^^^ +>-++t1 ** t2 : number +> : ^^^^^^ +>-++t1 : number +> : ^^^^^^ +>++t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>-++t1 ** t2 - t1 : number +> : ^^^^^^ +>-++t1 ** t2 : number +> : ^^^^^^ +>-++t1 : number +> : ^^^^^^ +>++t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`${-t1++ ** t2 - t1} hello world ${-t1++ ** t2 - t1} !!`; +>`${-t1++ ** t2 - t1} hello world ${-t1++ ** t2 - t1} !!` : string +> : ^^^^^^ +>-t1++ ** t2 - t1 : number +> : ^^^^^^ +>-t1++ ** t2 : number +> : ^^^^^^ +>-t1++ : number +> : ^^^^^^ +>t1++ : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>-t1++ ** t2 - t1 : number +> : ^^^^^^ +>-t1++ ** t2 : number +> : ^^^^^^ +>-t1++ : number +> : ^^^^^^ +>t1++ : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`${!t1 ** t2 ** --t1 } hello world ${!t1 ** t2 ** --t1 } !!`; +>`${!t1 ** t2 ** --t1 } hello world ${!t1 ** t2 ** --t1 } !!` : string +> : ^^^^^^ +>!t1 ** t2 ** --t1 : number +> : ^^^^^^ +>!t1 : boolean +> : ^^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** --t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>--t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>!t1 ** t2 ** --t1 : number +> : ^^^^^^ +>!t1 : boolean +> : ^^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** --t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>--t1 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`${typeof t1 ** t2 ** t1} hello world ${typeof t1 ** t2 ** t1} !!`; +>`${typeof t1 ** t2 ** t1} hello world ${typeof t1 ** t2 ** t1} !!` : string +> : ^^^^^^ +>typeof t1 ** t2 ** t1 : number +> : ^^^^^^ +>typeof t1 : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>typeof t1 ** t2 ** t1 : number +> : ^^^^^^ +>typeof t1 : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + +`${1 + typeof t1 ** t2 ** t1} hello world ${1 + typeof t1 ** t2 ** t1} !!`; +>`${1 + typeof t1 ** t2 ** t1} hello world ${1 + typeof t1 ** t2 ** t1} !!` : string +> : ^^^^^^ +>1 + typeof t1 ** t2 ** t1 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>typeof t1 ** t2 ** t1 : number +> : ^^^^^^ +>typeof t1 : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ +>1 + typeof t1 ** t2 ** t1 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>typeof t1 ** t2 ** t1 : number +> : ^^^^^^ +>typeof t1 : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>t1 : number +> : ^^^^^^ +>t2 ** t1 : number +> : ^^^^^^ +>t2 : number +> : ^^^^^^ +>t1 : number +> : ^^^^^^ + diff --git a/tests/baselines/reference/exponentiationOperatorSyntaxError1.errors.txt b/tests/baselines/reference/exponentiationOperatorSyntaxError1(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/exponentiationOperatorSyntaxError1.errors.txt rename to tests/baselines/reference/exponentiationOperatorSyntaxError1(target=es2015).errors.txt diff --git a/tests/baselines/reference/exponentiationOperatorSyntaxError1.js b/tests/baselines/reference/exponentiationOperatorSyntaxError1(target=es2015).js similarity index 100% rename from tests/baselines/reference/exponentiationOperatorSyntaxError1.js rename to tests/baselines/reference/exponentiationOperatorSyntaxError1(target=es2015).js diff --git a/tests/baselines/reference/exponentiationOperatorSyntaxError1.symbols b/tests/baselines/reference/exponentiationOperatorSyntaxError1(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/exponentiationOperatorSyntaxError1.symbols rename to tests/baselines/reference/exponentiationOperatorSyntaxError1(target=es2015).symbols diff --git a/tests/baselines/reference/exponentiationOperatorSyntaxError1.types b/tests/baselines/reference/exponentiationOperatorSyntaxError1(target=es2015).types similarity index 100% rename from tests/baselines/reference/exponentiationOperatorSyntaxError1.types rename to tests/baselines/reference/exponentiationOperatorSyntaxError1(target=es2015).types diff --git a/tests/baselines/reference/exponentiationOperatorSyntaxError1(target=es5).errors.txt b/tests/baselines/reference/exponentiationOperatorSyntaxError1(target=es5).errors.txt new file mode 100644 index 0000000000000..17080ca0099d3 --- /dev/null +++ b/tests/baselines/reference/exponentiationOperatorSyntaxError1(target=es5).errors.txt @@ -0,0 +1,134 @@ +exponentiationOperatorSyntaxError1.ts(2,1): error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorSyntaxError1.ts(3,1): error TS17006: An unary expression with the '+' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorSyntaxError1.ts(4,6): error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorSyntaxError1.ts(5,6): error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorSyntaxError1.ts(6,1): error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorSyntaxError1.ts(6,7): error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorSyntaxError1.ts(7,1): error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorSyntaxError1.ts(11,1): error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorSyntaxError1.ts(12,1): error TS17006: An unary expression with the '+' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorSyntaxError1.ts(13,1): error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorSyntaxError1.ts(14,1): error TS17006: An unary expression with the '+' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorSyntaxError1.ts(15,6): error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorSyntaxError1.ts(16,6): error TS17006: An unary expression with the '+' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorSyntaxError1.ts(17,6): error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorSyntaxError1.ts(18,6): error TS17006: An unary expression with the '+' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorSyntaxError1.ts(20,1): error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorSyntaxError1.ts(21,1): error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorSyntaxError1.ts(22,1): error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorSyntaxError1.ts(23,1): error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorSyntaxError1.ts(24,1): error TS17006: An unary expression with the '+' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorSyntaxError1.ts(25,1): error TS17006: An unary expression with the '+' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorSyntaxError1.ts(26,1): error TS17006: An unary expression with the '+' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorSyntaxError1.ts(27,1): error TS17006: An unary expression with the '+' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorSyntaxError1.ts(28,1): error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorSyntaxError1.ts(29,1): error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorSyntaxError1.ts(30,1): error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorSyntaxError1.ts(31,1): error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorSyntaxError1.ts(32,1): error TS17006: An unary expression with the '+' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorSyntaxError1.ts(33,1): error TS17006: An unary expression with the '+' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorSyntaxError1.ts(34,1): error TS17006: An unary expression with the '+' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorSyntaxError1.ts(35,1): error TS17006: An unary expression with the '+' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + + +==== exponentiationOperatorSyntaxError1.ts (31 errors) ==== + // Error: early syntax error using ES7 SimpleUnaryExpression on left-hand side without () + -1 ** 2; + ~~ +!!! error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + +1 ** 2 + ~~ +!!! error TS17006: An unary expression with the '+' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + 1 ** -2 ** 3; + ~~ +!!! error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + 1 ** -2 ** -3; + ~~ +!!! error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + -1 ** -2 ** -3; + ~~ +!!! error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + ~~ +!!! error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + -(1 ** 2) ** 3; + ~~~~~~~~~ +!!! error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + + var temp = 10; + + -++temp ** 3; + ~~~~~~~ +!!! error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + +--temp ** 3; + ~~~~~~~ +!!! error TS17006: An unary expression with the '+' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + -temp++ ** 3; + ~~~~~~~ +!!! error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + +temp-- ** 3; + ~~~~~~~ +!!! error TS17006: An unary expression with the '+' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + 1 ** -++temp ** 3; + ~~~~~~~ +!!! error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + 1 ** +--temp ** 3; + ~~~~~~~ +!!! error TS17006: An unary expression with the '+' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + 1 ** -temp++ ** 3; + ~~~~~~~ +!!! error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + 1 ** +temp-- ** 3; + ~~~~~~~ +!!! error TS17006: An unary expression with the '+' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + + -3 ** temp++; + ~~ +!!! error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + -3 ** temp--; + ~~ +!!! error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + -3 ** ++temp; + ~~ +!!! error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + -3 ** --temp; + ~~ +!!! error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + +3 ** temp++; + ~~ +!!! error TS17006: An unary expression with the '+' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + +3 ** temp--; + ~~ +!!! error TS17006: An unary expression with the '+' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + +3 ** ++temp; + ~~ +!!! error TS17006: An unary expression with the '+' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + +3 ** --temp; + ~~ +!!! error TS17006: An unary expression with the '+' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + -3 ** temp++ ** 2; + ~~ +!!! error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + -3 ** temp-- ** 2; + ~~ +!!! error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + -3 ** ++temp ** 2; + ~~ +!!! error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + -3 ** --temp ** 2; + ~~ +!!! error TS17006: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + +3 ** temp++ ** 2; + ~~ +!!! error TS17006: An unary expression with the '+' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + +3 ** temp-- ** 2; + ~~ +!!! error TS17006: An unary expression with the '+' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + +3 ** ++temp ** 2; + ~~ +!!! error TS17006: An unary expression with the '+' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + +3 ** --temp ** 2; + ~~ +!!! error TS17006: An unary expression with the '+' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + + + \ No newline at end of file diff --git a/tests/baselines/reference/exponentiationOperatorSyntaxError1(target=es5).js b/tests/baselines/reference/exponentiationOperatorSyntaxError1(target=es5).js new file mode 100644 index 0000000000000..c1903ac4fa3cf --- /dev/null +++ b/tests/baselines/reference/exponentiationOperatorSyntaxError1(target=es5).js @@ -0,0 +1,76 @@ +//// [tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError1.ts] //// + +//// [exponentiationOperatorSyntaxError1.ts] +// Error: early syntax error using ES7 SimpleUnaryExpression on left-hand side without () +-1 ** 2; ++1 ** 2 +1 ** -2 ** 3; +1 ** -2 ** -3; +-1 ** -2 ** -3; +-(1 ** 2) ** 3; + +var temp = 10; + +-++temp ** 3; ++--temp ** 3; +-temp++ ** 3; ++temp-- ** 3; +1 ** -++temp ** 3; +1 ** +--temp ** 3; +1 ** -temp++ ** 3; +1 ** +temp-- ** 3; + +-3 ** temp++; +-3 ** temp--; +-3 ** ++temp; +-3 ** --temp; ++3 ** temp++; ++3 ** temp--; ++3 ** ++temp; ++3 ** --temp; +-3 ** temp++ ** 2; +-3 ** temp-- ** 2; +-3 ** ++temp ** 2; +-3 ** --temp ** 2; ++3 ** temp++ ** 2; ++3 ** temp-- ** 2; ++3 ** ++temp ** 2; ++3 ** --temp ** 2; + + + + +//// [exponentiationOperatorSyntaxError1.js] +// Error: early syntax error using ES7 SimpleUnaryExpression on left-hand side without () +Math.pow(// Error: early syntax error using ES7 SimpleUnaryExpression on left-hand side without () +-1, 2); +Math.pow(+1, 2); +Math.pow(1, Math.pow(-2, 3)); +Math.pow(1, Math.pow(-2, -3)); +Math.pow(-1, Math.pow(-2, -3)); +Math.pow(-(Math.pow(1, 2)), 3); +var temp = 10; +Math.pow(-++temp, 3); +Math.pow(+--temp, 3); +Math.pow(-temp++, 3); +Math.pow(+temp--, 3); +Math.pow(1, Math.pow(-++temp, 3)); +Math.pow(1, Math.pow(+--temp, 3)); +Math.pow(1, Math.pow(-temp++, 3)); +Math.pow(1, Math.pow(+temp--, 3)); +Math.pow(-3, temp++); +Math.pow(-3, temp--); +Math.pow(-3, ++temp); +Math.pow(-3, --temp); +Math.pow(+3, temp++); +Math.pow(+3, temp--); +Math.pow(+3, ++temp); +Math.pow(+3, --temp); +Math.pow(-3, Math.pow(temp++, 2)); +Math.pow(-3, Math.pow(temp--, 2)); +Math.pow(-3, Math.pow(++temp, 2)); +Math.pow(-3, Math.pow(--temp, 2)); +Math.pow(+3, Math.pow(temp++, 2)); +Math.pow(+3, Math.pow(temp--, 2)); +Math.pow(+3, Math.pow(++temp, 2)); +Math.pow(+3, Math.pow(--temp, 2)); diff --git a/tests/baselines/reference/exponentiationOperatorSyntaxError1(target=es5).symbols b/tests/baselines/reference/exponentiationOperatorSyntaxError1(target=es5).symbols new file mode 100644 index 0000000000000..049117cffa5e2 --- /dev/null +++ b/tests/baselines/reference/exponentiationOperatorSyntaxError1(target=es5).symbols @@ -0,0 +1,88 @@ +//// [tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError1.ts] //// + +=== exponentiationOperatorSyntaxError1.ts === +// Error: early syntax error using ES7 SimpleUnaryExpression on left-hand side without () +-1 ** 2; ++1 ** 2 +1 ** -2 ** 3; +1 ** -2 ** -3; +-1 ** -2 ** -3; +-(1 ** 2) ** 3; + +var temp = 10; +>temp : Symbol(temp, Decl(exponentiationOperatorSyntaxError1.ts, 8, 3)) + +-++temp ** 3; +>temp : Symbol(temp, Decl(exponentiationOperatorSyntaxError1.ts, 8, 3)) + ++--temp ** 3; +>temp : Symbol(temp, Decl(exponentiationOperatorSyntaxError1.ts, 8, 3)) + +-temp++ ** 3; +>temp : Symbol(temp, Decl(exponentiationOperatorSyntaxError1.ts, 8, 3)) + ++temp-- ** 3; +>temp : Symbol(temp, Decl(exponentiationOperatorSyntaxError1.ts, 8, 3)) + +1 ** -++temp ** 3; +>temp : Symbol(temp, Decl(exponentiationOperatorSyntaxError1.ts, 8, 3)) + +1 ** +--temp ** 3; +>temp : Symbol(temp, Decl(exponentiationOperatorSyntaxError1.ts, 8, 3)) + +1 ** -temp++ ** 3; +>temp : Symbol(temp, Decl(exponentiationOperatorSyntaxError1.ts, 8, 3)) + +1 ** +temp-- ** 3; +>temp : Symbol(temp, Decl(exponentiationOperatorSyntaxError1.ts, 8, 3)) + +-3 ** temp++; +>temp : Symbol(temp, Decl(exponentiationOperatorSyntaxError1.ts, 8, 3)) + +-3 ** temp--; +>temp : Symbol(temp, Decl(exponentiationOperatorSyntaxError1.ts, 8, 3)) + +-3 ** ++temp; +>temp : Symbol(temp, Decl(exponentiationOperatorSyntaxError1.ts, 8, 3)) + +-3 ** --temp; +>temp : Symbol(temp, Decl(exponentiationOperatorSyntaxError1.ts, 8, 3)) + ++3 ** temp++; +>temp : Symbol(temp, Decl(exponentiationOperatorSyntaxError1.ts, 8, 3)) + ++3 ** temp--; +>temp : Symbol(temp, Decl(exponentiationOperatorSyntaxError1.ts, 8, 3)) + ++3 ** ++temp; +>temp : Symbol(temp, Decl(exponentiationOperatorSyntaxError1.ts, 8, 3)) + ++3 ** --temp; +>temp : Symbol(temp, Decl(exponentiationOperatorSyntaxError1.ts, 8, 3)) + +-3 ** temp++ ** 2; +>temp : Symbol(temp, Decl(exponentiationOperatorSyntaxError1.ts, 8, 3)) + +-3 ** temp-- ** 2; +>temp : Symbol(temp, Decl(exponentiationOperatorSyntaxError1.ts, 8, 3)) + +-3 ** ++temp ** 2; +>temp : Symbol(temp, Decl(exponentiationOperatorSyntaxError1.ts, 8, 3)) + +-3 ** --temp ** 2; +>temp : Symbol(temp, Decl(exponentiationOperatorSyntaxError1.ts, 8, 3)) + ++3 ** temp++ ** 2; +>temp : Symbol(temp, Decl(exponentiationOperatorSyntaxError1.ts, 8, 3)) + ++3 ** temp-- ** 2; +>temp : Symbol(temp, Decl(exponentiationOperatorSyntaxError1.ts, 8, 3)) + ++3 ** ++temp ** 2; +>temp : Symbol(temp, Decl(exponentiationOperatorSyntaxError1.ts, 8, 3)) + ++3 ** --temp ** 2; +>temp : Symbol(temp, Decl(exponentiationOperatorSyntaxError1.ts, 8, 3)) + + + diff --git a/tests/baselines/reference/exponentiationOperatorSyntaxError1(target=es5).types b/tests/baselines/reference/exponentiationOperatorSyntaxError1(target=es5).types new file mode 100644 index 0000000000000..6674bcb4e8be1 --- /dev/null +++ b/tests/baselines/reference/exponentiationOperatorSyntaxError1(target=es5).types @@ -0,0 +1,432 @@ +//// [tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError1.ts] //// + +=== exponentiationOperatorSyntaxError1.ts === +// Error: early syntax error using ES7 SimpleUnaryExpression on left-hand side without () +-1 ** 2; +>-1 ** 2 : number +> : ^^^^^^ +>-1 : -1 +> : ^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ + ++1 ** 2 +>+1 ** 2 : number +> : ^^^^^^ +>+1 : 1 +> : ^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ + +1 ** -2 ** 3; +>1 ** -2 ** 3 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>-2 ** 3 : number +> : ^^^^^^ +>-2 : -2 +> : ^^ +>2 : 2 +> : ^ +>3 : 3 +> : ^ + +1 ** -2 ** -3; +>1 ** -2 ** -3 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>-2 ** -3 : number +> : ^^^^^^ +>-2 : -2 +> : ^^ +>2 : 2 +> : ^ +>-3 : -3 +> : ^^ +>3 : 3 +> : ^ + +-1 ** -2 ** -3; +>-1 ** -2 ** -3 : number +> : ^^^^^^ +>-1 : -1 +> : ^^ +>1 : 1 +> : ^ +>-2 ** -3 : number +> : ^^^^^^ +>-2 : -2 +> : ^^ +>2 : 2 +> : ^ +>-3 : -3 +> : ^^ +>3 : 3 +> : ^ + +-(1 ** 2) ** 3; +>-(1 ** 2) ** 3 : number +> : ^^^^^^ +>-(1 ** 2) : number +> : ^^^^^^ +>(1 ** 2) : number +> : ^^^^^^ +>1 ** 2 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ +>3 : 3 +> : ^ + +var temp = 10; +>temp : number +> : ^^^^^^ +>10 : 10 +> : ^^ + +-++temp ** 3; +>-++temp ** 3 : number +> : ^^^^^^ +>-++temp : number +> : ^^^^^^ +>++temp : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>3 : 3 +> : ^ + ++--temp ** 3; +>+--temp ** 3 : number +> : ^^^^^^ +>+--temp : number +> : ^^^^^^ +>--temp : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>3 : 3 +> : ^ + +-temp++ ** 3; +>-temp++ ** 3 : number +> : ^^^^^^ +>-temp++ : number +> : ^^^^^^ +>temp++ : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>3 : 3 +> : ^ + ++temp-- ** 3; +>+temp-- ** 3 : number +> : ^^^^^^ +>+temp-- : number +> : ^^^^^^ +>temp-- : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>3 : 3 +> : ^ + +1 ** -++temp ** 3; +>1 ** -++temp ** 3 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>-++temp ** 3 : number +> : ^^^^^^ +>-++temp : number +> : ^^^^^^ +>++temp : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>3 : 3 +> : ^ + +1 ** +--temp ** 3; +>1 ** +--temp ** 3 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>+--temp ** 3 : number +> : ^^^^^^ +>+--temp : number +> : ^^^^^^ +>--temp : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>3 : 3 +> : ^ + +1 ** -temp++ ** 3; +>1 ** -temp++ ** 3 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>-temp++ ** 3 : number +> : ^^^^^^ +>-temp++ : number +> : ^^^^^^ +>temp++ : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>3 : 3 +> : ^ + +1 ** +temp-- ** 3; +>1 ** +temp-- ** 3 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>+temp-- ** 3 : number +> : ^^^^^^ +>+temp-- : number +> : ^^^^^^ +>temp-- : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>3 : 3 +> : ^ + +-3 ** temp++; +>-3 ** temp++ : number +> : ^^^^^^ +>-3 : -3 +> : ^^ +>3 : 3 +> : ^ +>temp++ : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ + +-3 ** temp--; +>-3 ** temp-- : number +> : ^^^^^^ +>-3 : -3 +> : ^^ +>3 : 3 +> : ^ +>temp-- : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ + +-3 ** ++temp; +>-3 ** ++temp : number +> : ^^^^^^ +>-3 : -3 +> : ^^ +>3 : 3 +> : ^ +>++temp : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ + +-3 ** --temp; +>-3 ** --temp : number +> : ^^^^^^ +>-3 : -3 +> : ^^ +>3 : 3 +> : ^ +>--temp : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ + ++3 ** temp++; +>+3 ** temp++ : number +> : ^^^^^^ +>+3 : 3 +> : ^ +>3 : 3 +> : ^ +>temp++ : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ + ++3 ** temp--; +>+3 ** temp-- : number +> : ^^^^^^ +>+3 : 3 +> : ^ +>3 : 3 +> : ^ +>temp-- : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ + ++3 ** ++temp; +>+3 ** ++temp : number +> : ^^^^^^ +>+3 : 3 +> : ^ +>3 : 3 +> : ^ +>++temp : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ + ++3 ** --temp; +>+3 ** --temp : number +> : ^^^^^^ +>+3 : 3 +> : ^ +>3 : 3 +> : ^ +>--temp : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ + +-3 ** temp++ ** 2; +>-3 ** temp++ ** 2 : number +> : ^^^^^^ +>-3 : -3 +> : ^^ +>3 : 3 +> : ^ +>temp++ ** 2 : number +> : ^^^^^^ +>temp++ : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>2 : 2 +> : ^ + +-3 ** temp-- ** 2; +>-3 ** temp-- ** 2 : number +> : ^^^^^^ +>-3 : -3 +> : ^^ +>3 : 3 +> : ^ +>temp-- ** 2 : number +> : ^^^^^^ +>temp-- : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>2 : 2 +> : ^ + +-3 ** ++temp ** 2; +>-3 ** ++temp ** 2 : number +> : ^^^^^^ +>-3 : -3 +> : ^^ +>3 : 3 +> : ^ +>++temp ** 2 : number +> : ^^^^^^ +>++temp : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>2 : 2 +> : ^ + +-3 ** --temp ** 2; +>-3 ** --temp ** 2 : number +> : ^^^^^^ +>-3 : -3 +> : ^^ +>3 : 3 +> : ^ +>--temp ** 2 : number +> : ^^^^^^ +>--temp : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>2 : 2 +> : ^ + ++3 ** temp++ ** 2; +>+3 ** temp++ ** 2 : number +> : ^^^^^^ +>+3 : 3 +> : ^ +>3 : 3 +> : ^ +>temp++ ** 2 : number +> : ^^^^^^ +>temp++ : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>2 : 2 +> : ^ + ++3 ** temp-- ** 2; +>+3 ** temp-- ** 2 : number +> : ^^^^^^ +>+3 : 3 +> : ^ +>3 : 3 +> : ^ +>temp-- ** 2 : number +> : ^^^^^^ +>temp-- : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>2 : 2 +> : ^ + ++3 ** ++temp ** 2; +>+3 ** ++temp ** 2 : number +> : ^^^^^^ +>+3 : 3 +> : ^ +>3 : 3 +> : ^ +>++temp ** 2 : number +> : ^^^^^^ +>++temp : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>2 : 2 +> : ^ + ++3 ** --temp ** 2; +>+3 ** --temp ** 2 : number +> : ^^^^^^ +>+3 : 3 +> : ^ +>3 : 3 +> : ^ +>--temp ** 2 : number +> : ^^^^^^ +>--temp : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>2 : 2 +> : ^ + + + diff --git a/tests/baselines/reference/exponentiationOperatorSyntaxError2.errors.txt b/tests/baselines/reference/exponentiationOperatorSyntaxError2(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/exponentiationOperatorSyntaxError2.errors.txt rename to tests/baselines/reference/exponentiationOperatorSyntaxError2(target=es2015).errors.txt diff --git a/tests/baselines/reference/exponentiationOperatorSyntaxError2.js b/tests/baselines/reference/exponentiationOperatorSyntaxError2(target=es2015).js similarity index 100% rename from tests/baselines/reference/exponentiationOperatorSyntaxError2.js rename to tests/baselines/reference/exponentiationOperatorSyntaxError2(target=es2015).js diff --git a/tests/baselines/reference/exponentiationOperatorSyntaxError2.symbols b/tests/baselines/reference/exponentiationOperatorSyntaxError2(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/exponentiationOperatorSyntaxError2.symbols rename to tests/baselines/reference/exponentiationOperatorSyntaxError2(target=es2015).symbols diff --git a/tests/baselines/reference/exponentiationOperatorSyntaxError2.types b/tests/baselines/reference/exponentiationOperatorSyntaxError2(target=es2015).types similarity index 100% rename from tests/baselines/reference/exponentiationOperatorSyntaxError2.types rename to tests/baselines/reference/exponentiationOperatorSyntaxError2(target=es2015).types diff --git a/tests/baselines/reference/exponentiationOperatorSyntaxError2(target=es5).errors.txt b/tests/baselines/reference/exponentiationOperatorSyntaxError2(target=es5).errors.txt new file mode 100644 index 0000000000000..2f336cc9eaea7 --- /dev/null +++ b/tests/baselines/reference/exponentiationOperatorSyntaxError2(target=es5).errors.txt @@ -0,0 +1,373 @@ +exponentiationOperatorSyntaxError2.ts(4,1): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +exponentiationOperatorSyntaxError2.ts(4,1): error TS17006: An unary expression with the 'delete' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorSyntaxError2.ts(4,8): error TS2703: The operand of a 'delete' operator must be a property reference. +exponentiationOperatorSyntaxError2.ts(5,1): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +exponentiationOperatorSyntaxError2.ts(5,1): error TS17006: An unary expression with the 'delete' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorSyntaxError2.ts(5,8): error TS2703: The operand of a 'delete' operator must be a property reference. +exponentiationOperatorSyntaxError2.ts(6,1): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +exponentiationOperatorSyntaxError2.ts(6,1): error TS17006: An unary expression with the 'delete' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorSyntaxError2.ts(6,8): error TS2703: The operand of a 'delete' operator must be a property reference. +exponentiationOperatorSyntaxError2.ts(7,1): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +exponentiationOperatorSyntaxError2.ts(7,1): error TS17006: An unary expression with the 'delete' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorSyntaxError2.ts(7,8): error TS2703: The operand of a 'delete' operator must be a property reference. +exponentiationOperatorSyntaxError2.ts(10,6): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +exponentiationOperatorSyntaxError2.ts(10,6): error TS17006: An unary expression with the 'delete' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorSyntaxError2.ts(10,13): error TS2703: The operand of a 'delete' operator must be a property reference. +exponentiationOperatorSyntaxError2.ts(11,6): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +exponentiationOperatorSyntaxError2.ts(11,6): error TS17006: An unary expression with the 'delete' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorSyntaxError2.ts(11,13): error TS2703: The operand of a 'delete' operator must be a property reference. +exponentiationOperatorSyntaxError2.ts(12,6): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +exponentiationOperatorSyntaxError2.ts(12,6): error TS17006: An unary expression with the 'delete' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorSyntaxError2.ts(12,13): error TS2703: The operand of a 'delete' operator must be a property reference. +exponentiationOperatorSyntaxError2.ts(13,6): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +exponentiationOperatorSyntaxError2.ts(13,6): error TS17006: An unary expression with the 'delete' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorSyntaxError2.ts(13,13): error TS2703: The operand of a 'delete' operator must be a property reference. +exponentiationOperatorSyntaxError2.ts(15,1): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +exponentiationOperatorSyntaxError2.ts(15,1): error TS17006: An unary expression with the 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorSyntaxError2.ts(16,1): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +exponentiationOperatorSyntaxError2.ts(16,1): error TS17006: An unary expression with the 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorSyntaxError2.ts(17,1): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +exponentiationOperatorSyntaxError2.ts(17,1): error TS17006: An unary expression with the 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorSyntaxError2.ts(18,1): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +exponentiationOperatorSyntaxError2.ts(18,1): error TS17006: An unary expression with the 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorSyntaxError2.ts(19,1): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +exponentiationOperatorSyntaxError2.ts(19,1): error TS17006: An unary expression with the 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorSyntaxError2.ts(21,6): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +exponentiationOperatorSyntaxError2.ts(21,6): error TS17006: An unary expression with the 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorSyntaxError2.ts(22,6): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +exponentiationOperatorSyntaxError2.ts(22,6): error TS17006: An unary expression with the 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorSyntaxError2.ts(23,6): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +exponentiationOperatorSyntaxError2.ts(23,6): error TS17006: An unary expression with the 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorSyntaxError2.ts(24,6): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +exponentiationOperatorSyntaxError2.ts(24,6): error TS17006: An unary expression with the 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorSyntaxError2.ts(25,6): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +exponentiationOperatorSyntaxError2.ts(25,6): error TS17006: An unary expression with the 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorSyntaxError2.ts(27,1): error TS2532: Object is possibly 'undefined'. +exponentiationOperatorSyntaxError2.ts(27,1): error TS17006: An unary expression with the 'void' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorSyntaxError2.ts(28,1): error TS2532: Object is possibly 'undefined'. +exponentiationOperatorSyntaxError2.ts(28,1): error TS17006: An unary expression with the 'void' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorSyntaxError2.ts(29,1): error TS2532: Object is possibly 'undefined'. +exponentiationOperatorSyntaxError2.ts(29,1): error TS17006: An unary expression with the 'void' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorSyntaxError2.ts(30,1): error TS2532: Object is possibly 'undefined'. +exponentiationOperatorSyntaxError2.ts(30,1): error TS17006: An unary expression with the 'void' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorSyntaxError2.ts(31,1): error TS2532: Object is possibly 'undefined'. +exponentiationOperatorSyntaxError2.ts(31,1): error TS17006: An unary expression with the 'void' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorSyntaxError2.ts(33,6): error TS2532: Object is possibly 'undefined'. +exponentiationOperatorSyntaxError2.ts(33,6): error TS17006: An unary expression with the 'void' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorSyntaxError2.ts(34,6): error TS2532: Object is possibly 'undefined'. +exponentiationOperatorSyntaxError2.ts(34,6): error TS17006: An unary expression with the 'void' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorSyntaxError2.ts(35,6): error TS2532: Object is possibly 'undefined'. +exponentiationOperatorSyntaxError2.ts(35,6): error TS17006: An unary expression with the 'void' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorSyntaxError2.ts(36,6): error TS2532: Object is possibly 'undefined'. +exponentiationOperatorSyntaxError2.ts(36,6): error TS17006: An unary expression with the 'void' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorSyntaxError2.ts(37,6): error TS2532: Object is possibly 'undefined'. +exponentiationOperatorSyntaxError2.ts(37,6): error TS17006: An unary expression with the 'void' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorSyntaxError2.ts(39,1): error TS17006: An unary expression with the '~' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorSyntaxError2.ts(40,1): error TS17006: An unary expression with the '~' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorSyntaxError2.ts(41,1): error TS17006: An unary expression with the '~' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorSyntaxError2.ts(42,1): error TS17006: An unary expression with the '~' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorSyntaxError2.ts(43,1): error TS17006: An unary expression with the '~' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorSyntaxError2.ts(45,6): error TS17006: An unary expression with the '~' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorSyntaxError2.ts(46,6): error TS17006: An unary expression with the '~' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorSyntaxError2.ts(47,6): error TS17006: An unary expression with the '~' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorSyntaxError2.ts(48,6): error TS17006: An unary expression with the '~' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorSyntaxError2.ts(49,6): error TS17006: An unary expression with the '~' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorSyntaxError2.ts(51,1): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +exponentiationOperatorSyntaxError2.ts(51,1): error TS17006: An unary expression with the '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorSyntaxError2.ts(52,1): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +exponentiationOperatorSyntaxError2.ts(52,1): error TS17006: An unary expression with the '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorSyntaxError2.ts(53,1): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +exponentiationOperatorSyntaxError2.ts(53,1): error TS17006: An unary expression with the '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorSyntaxError2.ts(53,2): error TS2872: This kind of expression is always truthy. +exponentiationOperatorSyntaxError2.ts(54,1): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +exponentiationOperatorSyntaxError2.ts(54,1): error TS17006: An unary expression with the '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorSyntaxError2.ts(55,1): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +exponentiationOperatorSyntaxError2.ts(55,1): error TS17006: An unary expression with the '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorSyntaxError2.ts(57,6): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +exponentiationOperatorSyntaxError2.ts(57,6): error TS17006: An unary expression with the '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorSyntaxError2.ts(58,6): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +exponentiationOperatorSyntaxError2.ts(58,6): error TS17006: An unary expression with the '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorSyntaxError2.ts(59,6): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +exponentiationOperatorSyntaxError2.ts(59,6): error TS17006: An unary expression with the '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorSyntaxError2.ts(59,7): error TS2872: This kind of expression is always truthy. +exponentiationOperatorSyntaxError2.ts(60,6): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +exponentiationOperatorSyntaxError2.ts(60,6): error TS17006: An unary expression with the '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorSyntaxError2.ts(61,6): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +exponentiationOperatorSyntaxError2.ts(61,6): error TS17006: An unary expression with the '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorSyntaxError2.ts(63,1): error TS17007: A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorSyntaxError2.ts(64,1): error TS17007: A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorSyntaxError2.ts(65,1): error TS17007: A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorSyntaxError2.ts(66,1): error TS17007: A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. +exponentiationOperatorSyntaxError2.ts(67,1): error TS17007: A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + + +==== exponentiationOperatorSyntaxError2.ts (101 errors) ==== + // Error: early syntax error using ES7 SimpleUnaryExpression on left-hand side without () + var temp: any; + + delete --temp ** 3; + ~~~~~~~~~~~~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + ~~~~~~~~~~~~~ +!!! error TS17006: An unary expression with the 'delete' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + ~~~~~~ +!!! error TS2703: The operand of a 'delete' operator must be a property reference. + delete ++temp ** 3; + ~~~~~~~~~~~~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + ~~~~~~~~~~~~~ +!!! error TS17006: An unary expression with the 'delete' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + ~~~~~~ +!!! error TS2703: The operand of a 'delete' operator must be a property reference. + delete temp-- ** 3; + ~~~~~~~~~~~~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + ~~~~~~~~~~~~~ +!!! error TS17006: An unary expression with the 'delete' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + ~~~~~~ +!!! error TS2703: The operand of a 'delete' operator must be a property reference. + delete temp++ ** 3; + ~~~~~~~~~~~~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + ~~~~~~~~~~~~~ +!!! error TS17006: An unary expression with the 'delete' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + ~~~~~~ +!!! error TS2703: The operand of a 'delete' operator must be a property reference. + + + 1 ** delete --temp ** 3; + ~~~~~~~~~~~~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + ~~~~~~~~~~~~~ +!!! error TS17006: An unary expression with the 'delete' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + ~~~~~~ +!!! error TS2703: The operand of a 'delete' operator must be a property reference. + 1 ** delete ++temp ** 3; + ~~~~~~~~~~~~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + ~~~~~~~~~~~~~ +!!! error TS17006: An unary expression with the 'delete' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + ~~~~~~ +!!! error TS2703: The operand of a 'delete' operator must be a property reference. + 1 ** delete temp-- ** 3; + ~~~~~~~~~~~~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + ~~~~~~~~~~~~~ +!!! error TS17006: An unary expression with the 'delete' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + ~~~~~~ +!!! error TS2703: The operand of a 'delete' operator must be a property reference. + 1 ** delete temp++ ** 3; + ~~~~~~~~~~~~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + ~~~~~~~~~~~~~ +!!! error TS17006: An unary expression with the 'delete' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + ~~~~~~ +!!! error TS2703: The operand of a 'delete' operator must be a property reference. + + typeof --temp ** 3; + ~~~~~~~~~~~~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + ~~~~~~~~~~~~~ +!!! error TS17006: An unary expression with the 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + typeof temp-- ** 3; + ~~~~~~~~~~~~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + ~~~~~~~~~~~~~ +!!! error TS17006: An unary expression with the 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + typeof 3 ** 4; + ~~~~~~~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + ~~~~~~~~ +!!! error TS17006: An unary expression with the 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + typeof temp++ ** 4; + ~~~~~~~~~~~~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + ~~~~~~~~~~~~~ +!!! error TS17006: An unary expression with the 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + typeof temp-- ** 4; + ~~~~~~~~~~~~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + ~~~~~~~~~~~~~ +!!! error TS17006: An unary expression with the 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + + 1 ** typeof --temp ** 3; + ~~~~~~~~~~~~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + ~~~~~~~~~~~~~ +!!! error TS17006: An unary expression with the 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + 1 ** typeof temp-- ** 3; + ~~~~~~~~~~~~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + ~~~~~~~~~~~~~ +!!! error TS17006: An unary expression with the 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + 1 ** typeof 3 ** 4; + ~~~~~~~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + ~~~~~~~~ +!!! error TS17006: An unary expression with the 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + 1 ** typeof temp++ ** 4; + ~~~~~~~~~~~~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + ~~~~~~~~~~~~~ +!!! error TS17006: An unary expression with the 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + 1 ** typeof temp-- ** 4; + ~~~~~~~~~~~~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + ~~~~~~~~~~~~~ +!!! error TS17006: An unary expression with the 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + + void --temp ** 3; + ~~~~~~~~~~~ +!!! error TS2532: Object is possibly 'undefined'. + ~~~~~~~~~~~ +!!! error TS17006: An unary expression with the 'void' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + void temp-- ** 3; + ~~~~~~~~~~~ +!!! error TS2532: Object is possibly 'undefined'. + ~~~~~~~~~~~ +!!! error TS17006: An unary expression with the 'void' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + void 3 ** 4; + ~~~~~~ +!!! error TS2532: Object is possibly 'undefined'. + ~~~~~~ +!!! error TS17006: An unary expression with the 'void' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + void temp++ ** 4; + ~~~~~~~~~~~ +!!! error TS2532: Object is possibly 'undefined'. + ~~~~~~~~~~~ +!!! error TS17006: An unary expression with the 'void' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + void temp-- ** 4; + ~~~~~~~~~~~ +!!! error TS2532: Object is possibly 'undefined'. + ~~~~~~~~~~~ +!!! error TS17006: An unary expression with the 'void' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + + 1 ** void --temp ** 3; + ~~~~~~~~~~~ +!!! error TS2532: Object is possibly 'undefined'. + ~~~~~~~~~~~ +!!! error TS17006: An unary expression with the 'void' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + 1 ** void temp-- ** 3; + ~~~~~~~~~~~ +!!! error TS2532: Object is possibly 'undefined'. + ~~~~~~~~~~~ +!!! error TS17006: An unary expression with the 'void' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + 1 ** void 3 ** 4; + ~~~~~~ +!!! error TS2532: Object is possibly 'undefined'. + ~~~~~~ +!!! error TS17006: An unary expression with the 'void' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + 1 ** void temp++ ** 4; + ~~~~~~~~~~~ +!!! error TS2532: Object is possibly 'undefined'. + ~~~~~~~~~~~ +!!! error TS17006: An unary expression with the 'void' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + 1 ** void temp-- ** 4 ; + ~~~~~~~~~~~ +!!! error TS2532: Object is possibly 'undefined'. + ~~~~~~~~~~~ +!!! error TS17006: An unary expression with the 'void' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + + ~ --temp ** 3; + ~~~~~~~~ +!!! error TS17006: An unary expression with the '~' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + ~temp-- ** 3; + ~~~~~~~ +!!! error TS17006: An unary expression with the '~' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + ~3 ** 4; + ~~ +!!! error TS17006: An unary expression with the '~' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + ~temp++ ** 4; + ~~~~~~~ +!!! error TS17006: An unary expression with the '~' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + ~temp-- ** 4; + ~~~~~~~ +!!! error TS17006: An unary expression with the '~' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + + 1 ** ~ --temp ** 3; + ~~~~~~~~ +!!! error TS17006: An unary expression with the '~' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + 1 ** ~temp-- ** 3; + ~~~~~~~ +!!! error TS17006: An unary expression with the '~' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + 1 ** ~3 ** 4; + ~~ +!!! error TS17006: An unary expression with the '~' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + 1 ** ~temp++ ** 4; + ~~~~~~~ +!!! error TS17006: An unary expression with the '~' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + 1 ** ~temp-- ** 4; + ~~~~~~~ +!!! error TS17006: An unary expression with the '~' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + + ! --temp ** 3; + ~~~~~~~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + ~~~~~~~~ +!!! error TS17006: An unary expression with the '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + !temp-- ** 3; + ~~~~~~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + ~~~~~~~ +!!! error TS17006: An unary expression with the '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + !3 ** 4; + ~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + ~~ +!!! error TS17006: An unary expression with the '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + ~ +!!! error TS2872: This kind of expression is always truthy. + !temp++ ** 4; + ~~~~~~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + ~~~~~~~ +!!! error TS17006: An unary expression with the '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + !temp-- ** 4; + ~~~~~~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + ~~~~~~~ +!!! error TS17006: An unary expression with the '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + + 1 ** ! --temp ** 3; + ~~~~~~~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + ~~~~~~~~ +!!! error TS17006: An unary expression with the '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + 1 ** !temp-- ** 3; + ~~~~~~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + ~~~~~~~ +!!! error TS17006: An unary expression with the '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + 1 ** !3 ** 4; + ~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + ~~ +!!! error TS17006: An unary expression with the '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + ~ +!!! error TS2872: This kind of expression is always truthy. + 1 ** !temp++ ** 4; + ~~~~~~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + ~~~~~~~ +!!! error TS17006: An unary expression with the '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + 1 ** !temp-- ** 4; + ~~~~~~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + ~~~~~~~ +!!! error TS17006: An unary expression with the '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + + temp ** 3; + ~~~~~~~~~~~~ +!!! error TS17007: A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + ++temp ** 3; + ~~~~~~~~~~~~~~ +!!! error TS17007: A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + --temp ** 3; + ~~~~~~~~~~~~~~ +!!! error TS17007: A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + temp++ ** 3; + ~~~~~~~~~~~~~~ +!!! error TS17007: A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. + temp-- ** 3; + ~~~~~~~~~~~~~~ +!!! error TS17007: A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. \ No newline at end of file diff --git a/tests/baselines/reference/exponentiationOperatorSyntaxError2(target=es5).js b/tests/baselines/reference/exponentiationOperatorSyntaxError2(target=es5).js new file mode 100644 index 0000000000000..1517b404d3159 --- /dev/null +++ b/tests/baselines/reference/exponentiationOperatorSyntaxError2(target=es5).js @@ -0,0 +1,127 @@ +//// [tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts] //// + +//// [exponentiationOperatorSyntaxError2.ts] +// Error: early syntax error using ES7 SimpleUnaryExpression on left-hand side without () +var temp: any; + +delete --temp ** 3; +delete ++temp ** 3; +delete temp-- ** 3; +delete temp++ ** 3; + + +1 ** delete --temp ** 3; +1 ** delete ++temp ** 3; +1 ** delete temp-- ** 3; +1 ** delete temp++ ** 3; + +typeof --temp ** 3; +typeof temp-- ** 3; +typeof 3 ** 4; +typeof temp++ ** 4; +typeof temp-- ** 4; + +1 ** typeof --temp ** 3; +1 ** typeof temp-- ** 3; +1 ** typeof 3 ** 4; +1 ** typeof temp++ ** 4; +1 ** typeof temp-- ** 4; + +void --temp ** 3; +void temp-- ** 3; +void 3 ** 4; +void temp++ ** 4; +void temp-- ** 4; + +1 ** void --temp ** 3; +1 ** void temp-- ** 3; +1 ** void 3 ** 4; +1 ** void temp++ ** 4; +1 ** void temp-- ** 4 ; + +~ --temp ** 3; +~temp-- ** 3; +~3 ** 4; +~temp++ ** 4; +~temp-- ** 4; + +1 ** ~ --temp ** 3; +1 ** ~temp-- ** 3; +1 ** ~3 ** 4; +1 ** ~temp++ ** 4; +1 ** ~temp-- ** 4; + +! --temp ** 3; +!temp-- ** 3; +!3 ** 4; +!temp++ ** 4; +!temp-- ** 4; + +1 ** ! --temp ** 3; +1 ** !temp-- ** 3; +1 ** !3 ** 4; +1 ** !temp++ ** 4; +1 ** !temp-- ** 4; + +temp ** 3; +++temp ** 3; +--temp ** 3; +temp++ ** 3; +temp-- ** 3; + +//// [exponentiationOperatorSyntaxError2.js] +// Error: early syntax error using ES7 SimpleUnaryExpression on left-hand side without () +var temp; +Math.pow(delete --temp, 3); +Math.pow(delete ++temp, 3); +Math.pow(delete temp--, 3); +Math.pow(delete temp++, 3); +Math.pow(1, Math.pow(delete --temp, 3)); +Math.pow(1, Math.pow(delete ++temp, 3)); +Math.pow(1, Math.pow(delete temp--, 3)); +Math.pow(1, Math.pow(delete temp++, 3)); +Math.pow(typeof --temp, 3); +Math.pow(typeof temp--, 3); +Math.pow(typeof 3, 4); +Math.pow(typeof temp++, 4); +Math.pow(typeof temp--, 4); +Math.pow(1, Math.pow(typeof --temp, 3)); +Math.pow(1, Math.pow(typeof temp--, 3)); +Math.pow(1, Math.pow(typeof 3, 4)); +Math.pow(1, Math.pow(typeof temp++, 4)); +Math.pow(1, Math.pow(typeof temp--, 4)); +Math.pow(void --temp, 3); +Math.pow(void temp--, 3); +Math.pow(void 3, 4); +Math.pow(void temp++, 4); +Math.pow(void temp--, 4); +Math.pow(1, Math.pow(void --temp, 3)); +Math.pow(1, Math.pow(void temp--, 3)); +Math.pow(1, Math.pow(void 3, 4)); +Math.pow(1, Math.pow(void temp++, 4)); +Math.pow(1, Math.pow(void temp--, 4)); +Math.pow(~--temp, 3); +Math.pow(~temp--, 3); +Math.pow(~3, 4); +Math.pow(~temp++, 4); +Math.pow(~temp--, 4); +Math.pow(1, Math.pow(~--temp, 3)); +Math.pow(1, Math.pow(~temp--, 3)); +Math.pow(1, Math.pow(~3, 4)); +Math.pow(1, Math.pow(~temp++, 4)); +Math.pow(1, Math.pow(~temp--, 4)); +Math.pow(!--temp, 3); +Math.pow(!temp--, 3); +Math.pow(!3, 4); +Math.pow(!temp++, 4); +Math.pow(!temp--, 4); +Math.pow(1, Math.pow(!--temp, 3)); +Math.pow(1, Math.pow(!temp--, 3)); +Math.pow(1, Math.pow(!3, 4)); +Math.pow(1, Math.pow(!temp++, 4)); +Math.pow(1, Math.pow(!temp--, 4)); +Math.pow(temp, 3); +Math.pow(++temp, 3); +Math.pow(--temp, 3); +Math.pow(temp++, 3); +Math.pow(temp--, 3); diff --git a/tests/baselines/reference/exponentiationOperatorSyntaxError2(target=es5).symbols b/tests/baselines/reference/exponentiationOperatorSyntaxError2(target=es5).symbols new file mode 100644 index 0000000000000..3401785be0ceb --- /dev/null +++ b/tests/baselines/reference/exponentiationOperatorSyntaxError2(target=es5).symbols @@ -0,0 +1,151 @@ +//// [tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts] //// + +=== exponentiationOperatorSyntaxError2.ts === +// Error: early syntax error using ES7 SimpleUnaryExpression on left-hand side without () +var temp: any; +>temp : Symbol(temp, Decl(exponentiationOperatorSyntaxError2.ts, 1, 3)) + +delete --temp ** 3; +>temp : Symbol(temp, Decl(exponentiationOperatorSyntaxError2.ts, 1, 3)) + +delete ++temp ** 3; +>temp : Symbol(temp, Decl(exponentiationOperatorSyntaxError2.ts, 1, 3)) + +delete temp-- ** 3; +>temp : Symbol(temp, Decl(exponentiationOperatorSyntaxError2.ts, 1, 3)) + +delete temp++ ** 3; +>temp : Symbol(temp, Decl(exponentiationOperatorSyntaxError2.ts, 1, 3)) + + +1 ** delete --temp ** 3; +>temp : Symbol(temp, Decl(exponentiationOperatorSyntaxError2.ts, 1, 3)) + +1 ** delete ++temp ** 3; +>temp : Symbol(temp, Decl(exponentiationOperatorSyntaxError2.ts, 1, 3)) + +1 ** delete temp-- ** 3; +>temp : Symbol(temp, Decl(exponentiationOperatorSyntaxError2.ts, 1, 3)) + +1 ** delete temp++ ** 3; +>temp : Symbol(temp, Decl(exponentiationOperatorSyntaxError2.ts, 1, 3)) + +typeof --temp ** 3; +>temp : Symbol(temp, Decl(exponentiationOperatorSyntaxError2.ts, 1, 3)) + +typeof temp-- ** 3; +>temp : Symbol(temp, Decl(exponentiationOperatorSyntaxError2.ts, 1, 3)) + +typeof 3 ** 4; +typeof temp++ ** 4; +>temp : Symbol(temp, Decl(exponentiationOperatorSyntaxError2.ts, 1, 3)) + +typeof temp-- ** 4; +>temp : Symbol(temp, Decl(exponentiationOperatorSyntaxError2.ts, 1, 3)) + +1 ** typeof --temp ** 3; +>temp : Symbol(temp, Decl(exponentiationOperatorSyntaxError2.ts, 1, 3)) + +1 ** typeof temp-- ** 3; +>temp : Symbol(temp, Decl(exponentiationOperatorSyntaxError2.ts, 1, 3)) + +1 ** typeof 3 ** 4; +1 ** typeof temp++ ** 4; +>temp : Symbol(temp, Decl(exponentiationOperatorSyntaxError2.ts, 1, 3)) + +1 ** typeof temp-- ** 4; +>temp : Symbol(temp, Decl(exponentiationOperatorSyntaxError2.ts, 1, 3)) + +void --temp ** 3; +>temp : Symbol(temp, Decl(exponentiationOperatorSyntaxError2.ts, 1, 3)) + +void temp-- ** 3; +>temp : Symbol(temp, Decl(exponentiationOperatorSyntaxError2.ts, 1, 3)) + +void 3 ** 4; +void temp++ ** 4; +>temp : Symbol(temp, Decl(exponentiationOperatorSyntaxError2.ts, 1, 3)) + +void temp-- ** 4; +>temp : Symbol(temp, Decl(exponentiationOperatorSyntaxError2.ts, 1, 3)) + +1 ** void --temp ** 3; +>temp : Symbol(temp, Decl(exponentiationOperatorSyntaxError2.ts, 1, 3)) + +1 ** void temp-- ** 3; +>temp : Symbol(temp, Decl(exponentiationOperatorSyntaxError2.ts, 1, 3)) + +1 ** void 3 ** 4; +1 ** void temp++ ** 4; +>temp : Symbol(temp, Decl(exponentiationOperatorSyntaxError2.ts, 1, 3)) + +1 ** void temp-- ** 4 ; +>temp : Symbol(temp, Decl(exponentiationOperatorSyntaxError2.ts, 1, 3)) + +~ --temp ** 3; +>temp : Symbol(temp, Decl(exponentiationOperatorSyntaxError2.ts, 1, 3)) + +~temp-- ** 3; +>temp : Symbol(temp, Decl(exponentiationOperatorSyntaxError2.ts, 1, 3)) + +~3 ** 4; +~temp++ ** 4; +>temp : Symbol(temp, Decl(exponentiationOperatorSyntaxError2.ts, 1, 3)) + +~temp-- ** 4; +>temp : Symbol(temp, Decl(exponentiationOperatorSyntaxError2.ts, 1, 3)) + +1 ** ~ --temp ** 3; +>temp : Symbol(temp, Decl(exponentiationOperatorSyntaxError2.ts, 1, 3)) + +1 ** ~temp-- ** 3; +>temp : Symbol(temp, Decl(exponentiationOperatorSyntaxError2.ts, 1, 3)) + +1 ** ~3 ** 4; +1 ** ~temp++ ** 4; +>temp : Symbol(temp, Decl(exponentiationOperatorSyntaxError2.ts, 1, 3)) + +1 ** ~temp-- ** 4; +>temp : Symbol(temp, Decl(exponentiationOperatorSyntaxError2.ts, 1, 3)) + +! --temp ** 3; +>temp : Symbol(temp, Decl(exponentiationOperatorSyntaxError2.ts, 1, 3)) + +!temp-- ** 3; +>temp : Symbol(temp, Decl(exponentiationOperatorSyntaxError2.ts, 1, 3)) + +!3 ** 4; +!temp++ ** 4; +>temp : Symbol(temp, Decl(exponentiationOperatorSyntaxError2.ts, 1, 3)) + +!temp-- ** 4; +>temp : Symbol(temp, Decl(exponentiationOperatorSyntaxError2.ts, 1, 3)) + +1 ** ! --temp ** 3; +>temp : Symbol(temp, Decl(exponentiationOperatorSyntaxError2.ts, 1, 3)) + +1 ** !temp-- ** 3; +>temp : Symbol(temp, Decl(exponentiationOperatorSyntaxError2.ts, 1, 3)) + +1 ** !3 ** 4; +1 ** !temp++ ** 4; +>temp : Symbol(temp, Decl(exponentiationOperatorSyntaxError2.ts, 1, 3)) + +1 ** !temp-- ** 4; +>temp : Symbol(temp, Decl(exponentiationOperatorSyntaxError2.ts, 1, 3)) + +temp ** 3; +>temp : Symbol(temp, Decl(exponentiationOperatorSyntaxError2.ts, 1, 3)) + +++temp ** 3; +>temp : Symbol(temp, Decl(exponentiationOperatorSyntaxError2.ts, 1, 3)) + +--temp ** 3; +>temp : Symbol(temp, Decl(exponentiationOperatorSyntaxError2.ts, 1, 3)) + +temp++ ** 3; +>temp : Symbol(temp, Decl(exponentiationOperatorSyntaxError2.ts, 1, 3)) + +temp-- ** 3; +>temp : Symbol(temp, Decl(exponentiationOperatorSyntaxError2.ts, 1, 3)) + diff --git a/tests/baselines/reference/exponentiationOperatorSyntaxError2(target=es5).types b/tests/baselines/reference/exponentiationOperatorSyntaxError2(target=es5).types new file mode 100644 index 0000000000000..d6e1ef39f0487 --- /dev/null +++ b/tests/baselines/reference/exponentiationOperatorSyntaxError2(target=es5).types @@ -0,0 +1,723 @@ +//// [tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts] //// + +=== exponentiationOperatorSyntaxError2.ts === +// Error: early syntax error using ES7 SimpleUnaryExpression on left-hand side without () +var temp: any; +>temp : any +> : ^^^ + +delete --temp ** 3; +>delete --temp ** 3 : number +> : ^^^^^^ +>delete --temp : boolean +> : ^^^^^^^ +>--temp : number +> : ^^^^^^ +>temp : any +> : ^^^ +>3 : 3 +> : ^ + +delete ++temp ** 3; +>delete ++temp ** 3 : number +> : ^^^^^^ +>delete ++temp : boolean +> : ^^^^^^^ +>++temp : number +> : ^^^^^^ +>temp : any +> : ^^^ +>3 : 3 +> : ^ + +delete temp-- ** 3; +>delete temp-- ** 3 : number +> : ^^^^^^ +>delete temp-- : boolean +> : ^^^^^^^ +>temp-- : number +> : ^^^^^^ +>temp : any +> : ^^^ +>3 : 3 +> : ^ + +delete temp++ ** 3; +>delete temp++ ** 3 : number +> : ^^^^^^ +>delete temp++ : boolean +> : ^^^^^^^ +>temp++ : number +> : ^^^^^^ +>temp : any +> : ^^^ +>3 : 3 +> : ^ + + +1 ** delete --temp ** 3; +>1 ** delete --temp ** 3 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>delete --temp ** 3 : number +> : ^^^^^^ +>delete --temp : boolean +> : ^^^^^^^ +>--temp : number +> : ^^^^^^ +>temp : any +> : ^^^ +>3 : 3 +> : ^ + +1 ** delete ++temp ** 3; +>1 ** delete ++temp ** 3 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>delete ++temp ** 3 : number +> : ^^^^^^ +>delete ++temp : boolean +> : ^^^^^^^ +>++temp : number +> : ^^^^^^ +>temp : any +> : ^^^ +>3 : 3 +> : ^ + +1 ** delete temp-- ** 3; +>1 ** delete temp-- ** 3 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>delete temp-- ** 3 : number +> : ^^^^^^ +>delete temp-- : boolean +> : ^^^^^^^ +>temp-- : number +> : ^^^^^^ +>temp : any +> : ^^^ +>3 : 3 +> : ^ + +1 ** delete temp++ ** 3; +>1 ** delete temp++ ** 3 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>delete temp++ ** 3 : number +> : ^^^^^^ +>delete temp++ : boolean +> : ^^^^^^^ +>temp++ : number +> : ^^^^^^ +>temp : any +> : ^^^ +>3 : 3 +> : ^ + +typeof --temp ** 3; +>typeof --temp ** 3 : number +> : ^^^^^^ +>typeof --temp : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>--temp : number +> : ^^^^^^ +>temp : any +> : ^^^ +>3 : 3 +> : ^ + +typeof temp-- ** 3; +>typeof temp-- ** 3 : number +> : ^^^^^^ +>typeof temp-- : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>temp-- : number +> : ^^^^^^ +>temp : any +> : ^^^ +>3 : 3 +> : ^ + +typeof 3 ** 4; +>typeof 3 ** 4 : number +> : ^^^^^^ +>typeof 3 : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>3 : 3 +> : ^ +>4 : 4 +> : ^ + +typeof temp++ ** 4; +>typeof temp++ ** 4 : number +> : ^^^^^^ +>typeof temp++ : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>temp++ : number +> : ^^^^^^ +>temp : any +> : ^^^ +>4 : 4 +> : ^ + +typeof temp-- ** 4; +>typeof temp-- ** 4 : number +> : ^^^^^^ +>typeof temp-- : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>temp-- : number +> : ^^^^^^ +>temp : any +> : ^^^ +>4 : 4 +> : ^ + +1 ** typeof --temp ** 3; +>1 ** typeof --temp ** 3 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>typeof --temp ** 3 : number +> : ^^^^^^ +>typeof --temp : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>--temp : number +> : ^^^^^^ +>temp : any +> : ^^^ +>3 : 3 +> : ^ + +1 ** typeof temp-- ** 3; +>1 ** typeof temp-- ** 3 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>typeof temp-- ** 3 : number +> : ^^^^^^ +>typeof temp-- : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>temp-- : number +> : ^^^^^^ +>temp : any +> : ^^^ +>3 : 3 +> : ^ + +1 ** typeof 3 ** 4; +>1 ** typeof 3 ** 4 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>typeof 3 ** 4 : number +> : ^^^^^^ +>typeof 3 : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>3 : 3 +> : ^ +>4 : 4 +> : ^ + +1 ** typeof temp++ ** 4; +>1 ** typeof temp++ ** 4 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>typeof temp++ ** 4 : number +> : ^^^^^^ +>typeof temp++ : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>temp++ : number +> : ^^^^^^ +>temp : any +> : ^^^ +>4 : 4 +> : ^ + +1 ** typeof temp-- ** 4; +>1 ** typeof temp-- ** 4 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>typeof temp-- ** 4 : number +> : ^^^^^^ +>typeof temp-- : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>temp-- : number +> : ^^^^^^ +>temp : any +> : ^^^ +>4 : 4 +> : ^ + +void --temp ** 3; +>void --temp ** 3 : number +> : ^^^^^^ +>void --temp : undefined +> : ^^^^^^^^^ +>--temp : number +> : ^^^^^^ +>temp : any +> : ^^^ +>3 : 3 +> : ^ + +void temp-- ** 3; +>void temp-- ** 3 : number +> : ^^^^^^ +>void temp-- : undefined +> : ^^^^^^^^^ +>temp-- : number +> : ^^^^^^ +>temp : any +> : ^^^ +>3 : 3 +> : ^ + +void 3 ** 4; +>void 3 ** 4 : number +> : ^^^^^^ +>void 3 : undefined +> : ^^^^^^^^^ +>3 : 3 +> : ^ +>4 : 4 +> : ^ + +void temp++ ** 4; +>void temp++ ** 4 : number +> : ^^^^^^ +>void temp++ : undefined +> : ^^^^^^^^^ +>temp++ : number +> : ^^^^^^ +>temp : any +> : ^^^ +>4 : 4 +> : ^ + +void temp-- ** 4; +>void temp-- ** 4 : number +> : ^^^^^^ +>void temp-- : undefined +> : ^^^^^^^^^ +>temp-- : number +> : ^^^^^^ +>temp : any +> : ^^^ +>4 : 4 +> : ^ + +1 ** void --temp ** 3; +>1 ** void --temp ** 3 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>void --temp ** 3 : number +> : ^^^^^^ +>void --temp : undefined +> : ^^^^^^^^^ +>--temp : number +> : ^^^^^^ +>temp : any +> : ^^^ +>3 : 3 +> : ^ + +1 ** void temp-- ** 3; +>1 ** void temp-- ** 3 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>void temp-- ** 3 : number +> : ^^^^^^ +>void temp-- : undefined +> : ^^^^^^^^^ +>temp-- : number +> : ^^^^^^ +>temp : any +> : ^^^ +>3 : 3 +> : ^ + +1 ** void 3 ** 4; +>1 ** void 3 ** 4 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>void 3 ** 4 : number +> : ^^^^^^ +>void 3 : undefined +> : ^^^^^^^^^ +>3 : 3 +> : ^ +>4 : 4 +> : ^ + +1 ** void temp++ ** 4; +>1 ** void temp++ ** 4 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>void temp++ ** 4 : number +> : ^^^^^^ +>void temp++ : undefined +> : ^^^^^^^^^ +>temp++ : number +> : ^^^^^^ +>temp : any +> : ^^^ +>4 : 4 +> : ^ + +1 ** void temp-- ** 4 ; +>1 ** void temp-- ** 4 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>void temp-- ** 4 : number +> : ^^^^^^ +>void temp-- : undefined +> : ^^^^^^^^^ +>temp-- : number +> : ^^^^^^ +>temp : any +> : ^^^ +>4 : 4 +> : ^ + +~ --temp ** 3; +>~ --temp ** 3 : number +> : ^^^^^^ +>~ --temp : number +> : ^^^^^^ +>--temp : number +> : ^^^^^^ +>temp : any +> : ^^^ +>3 : 3 +> : ^ + +~temp-- ** 3; +>~temp-- ** 3 : number +> : ^^^^^^ +>~temp-- : number +> : ^^^^^^ +>temp-- : number +> : ^^^^^^ +>temp : any +> : ^^^ +>3 : 3 +> : ^ + +~3 ** 4; +>~3 ** 4 : number +> : ^^^^^^ +>~3 : number +> : ^^^^^^ +>3 : 3 +> : ^ +>4 : 4 +> : ^ + +~temp++ ** 4; +>~temp++ ** 4 : number +> : ^^^^^^ +>~temp++ : number +> : ^^^^^^ +>temp++ : number +> : ^^^^^^ +>temp : any +> : ^^^ +>4 : 4 +> : ^ + +~temp-- ** 4; +>~temp-- ** 4 : number +> : ^^^^^^ +>~temp-- : number +> : ^^^^^^ +>temp-- : number +> : ^^^^^^ +>temp : any +> : ^^^ +>4 : 4 +> : ^ + +1 ** ~ --temp ** 3; +>1 ** ~ --temp ** 3 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>~ --temp ** 3 : number +> : ^^^^^^ +>~ --temp : number +> : ^^^^^^ +>--temp : number +> : ^^^^^^ +>temp : any +> : ^^^ +>3 : 3 +> : ^ + +1 ** ~temp-- ** 3; +>1 ** ~temp-- ** 3 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>~temp-- ** 3 : number +> : ^^^^^^ +>~temp-- : number +> : ^^^^^^ +>temp-- : number +> : ^^^^^^ +>temp : any +> : ^^^ +>3 : 3 +> : ^ + +1 ** ~3 ** 4; +>1 ** ~3 ** 4 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>~3 ** 4 : number +> : ^^^^^^ +>~3 : number +> : ^^^^^^ +>3 : 3 +> : ^ +>4 : 4 +> : ^ + +1 ** ~temp++ ** 4; +>1 ** ~temp++ ** 4 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>~temp++ ** 4 : number +> : ^^^^^^ +>~temp++ : number +> : ^^^^^^ +>temp++ : number +> : ^^^^^^ +>temp : any +> : ^^^ +>4 : 4 +> : ^ + +1 ** ~temp-- ** 4; +>1 ** ~temp-- ** 4 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>~temp-- ** 4 : number +> : ^^^^^^ +>~temp-- : number +> : ^^^^^^ +>temp-- : number +> : ^^^^^^ +>temp : any +> : ^^^ +>4 : 4 +> : ^ + +! --temp ** 3; +>! --temp ** 3 : number +> : ^^^^^^ +>! --temp : boolean +> : ^^^^^^^ +>--temp : number +> : ^^^^^^ +>temp : any +> : ^^^ +>3 : 3 +> : ^ + +!temp-- ** 3; +>!temp-- ** 3 : number +> : ^^^^^^ +>!temp-- : boolean +> : ^^^^^^^ +>temp-- : number +> : ^^^^^^ +>temp : any +> : ^^^ +>3 : 3 +> : ^ + +!3 ** 4; +>!3 ** 4 : number +> : ^^^^^^ +>!3 : boolean +> : ^^^^^^^ +>3 : 3 +> : ^ +>4 : 4 +> : ^ + +!temp++ ** 4; +>!temp++ ** 4 : number +> : ^^^^^^ +>!temp++ : boolean +> : ^^^^^^^ +>temp++ : number +> : ^^^^^^ +>temp : any +> : ^^^ +>4 : 4 +> : ^ + +!temp-- ** 4; +>!temp-- ** 4 : number +> : ^^^^^^ +>!temp-- : boolean +> : ^^^^^^^ +>temp-- : number +> : ^^^^^^ +>temp : any +> : ^^^ +>4 : 4 +> : ^ + +1 ** ! --temp ** 3; +>1 ** ! --temp ** 3 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>! --temp ** 3 : number +> : ^^^^^^ +>! --temp : boolean +> : ^^^^^^^ +>--temp : number +> : ^^^^^^ +>temp : any +> : ^^^ +>3 : 3 +> : ^ + +1 ** !temp-- ** 3; +>1 ** !temp-- ** 3 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>!temp-- ** 3 : number +> : ^^^^^^ +>!temp-- : boolean +> : ^^^^^^^ +>temp-- : number +> : ^^^^^^ +>temp : any +> : ^^^ +>3 : 3 +> : ^ + +1 ** !3 ** 4; +>1 ** !3 ** 4 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>!3 ** 4 : number +> : ^^^^^^ +>!3 : boolean +> : ^^^^^^^ +>3 : 3 +> : ^ +>4 : 4 +> : ^ + +1 ** !temp++ ** 4; +>1 ** !temp++ ** 4 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>!temp++ ** 4 : number +> : ^^^^^^ +>!temp++ : boolean +> : ^^^^^^^ +>temp++ : number +> : ^^^^^^ +>temp : any +> : ^^^ +>4 : 4 +> : ^ + +1 ** !temp-- ** 4; +>1 ** !temp-- ** 4 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>!temp-- ** 4 : number +> : ^^^^^^ +>!temp-- : boolean +> : ^^^^^^^ +>temp-- : number +> : ^^^^^^ +>temp : any +> : ^^^ +>4 : 4 +> : ^ + +temp ** 3; +>temp ** 3 : number +> : ^^^^^^ +>temp : number +> : ^^^^^^ +>temp : any +> : ^^^ +>3 : 3 +> : ^ + +++temp ** 3; +>++temp ** 3 : number +> : ^^^^^^ +>++temp : number +> : ^^^^^^ +>++temp : number +> : ^^^^^^ +>temp : any +> : ^^^ +>3 : 3 +> : ^ + +--temp ** 3; +>--temp ** 3 : number +> : ^^^^^^ +>--temp : number +> : ^^^^^^ +>--temp : number +> : ^^^^^^ +>temp : any +> : ^^^ +>3 : 3 +> : ^ + +temp++ ** 3; +>temp++ ** 3 : number +> : ^^^^^^ +>temp++ : number +> : ^^^^^^ +>temp++ : number +> : ^^^^^^ +>temp : any +> : ^^^ +>3 : 3 +> : ^ + +temp-- ** 3; +>temp-- ** 3 : number +> : ^^^^^^ +>temp-- : number +> : ^^^^^^ +>temp-- : number +> : ^^^^^^ +>temp : any +> : ^^^ +>3 : 3 +> : ^ + diff --git a/tests/baselines/reference/exponentiationOperatorWithTemplateStringInvalid.errors.txt b/tests/baselines/reference/exponentiationOperatorWithTemplateStringInvalid(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/exponentiationOperatorWithTemplateStringInvalid.errors.txt rename to tests/baselines/reference/exponentiationOperatorWithTemplateStringInvalid(target=es2015).errors.txt diff --git a/tests/baselines/reference/exponentiationOperatorWithTemplateStringInvalid(target=es2015).js b/tests/baselines/reference/exponentiationOperatorWithTemplateStringInvalid(target=es2015).js new file mode 100644 index 0000000000000..2592aa27d22a0 --- /dev/null +++ b/tests/baselines/reference/exponentiationOperatorWithTemplateStringInvalid(target=es2015).js @@ -0,0 +1,35 @@ +//// [tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorWithTemplateStringInvalid.ts] //// + +//// [exponentiationOperatorWithTemplateStringInvalid.ts] +var a = 1 ** `${ 3 }`; +var b = 1 ** `2${ 3 }`; +var c = 1 ** `${ 3 }4`; +var d = 1 ** `2${ 3 }4`; +var e = `${ 3 }` ** 5; +var f = `2${ 3 }` ** 5; +var g = `${ 3 }4` ** 5; +var h = `2${ 3 }4` ** 5; + +var k = 10; +k **= `${ 3 }`; +k **= `2${ 3 }`; +k **= `2${ 3 }4`; +k **= `2${ 3 }4`; + + + + +//// [exponentiationOperatorWithTemplateStringInvalid.js] +var a = Math.pow(1, `${3}`); +var b = Math.pow(1, `2${3}`); +var c = Math.pow(1, `${3}4`); +var d = Math.pow(1, `2${3}4`); +var e = Math.pow(`${3}`, 5); +var f = Math.pow(`2${3}`, 5); +var g = Math.pow(`${3}4`, 5); +var h = Math.pow(`2${3}4`, 5); +var k = 10; +k = Math.pow(k, `${3}`); +k = Math.pow(k, `2${3}`); +k = Math.pow(k, `2${3}4`); +k = Math.pow(k, `2${3}4`); diff --git a/tests/baselines/reference/exponentiationOperatorWithTemplateStringInvalid.symbols b/tests/baselines/reference/exponentiationOperatorWithTemplateStringInvalid(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/exponentiationOperatorWithTemplateStringInvalid.symbols rename to tests/baselines/reference/exponentiationOperatorWithTemplateStringInvalid(target=es2015).symbols diff --git a/tests/baselines/reference/exponentiationOperatorWithTemplateStringInvalid.types b/tests/baselines/reference/exponentiationOperatorWithTemplateStringInvalid(target=es2015).types similarity index 100% rename from tests/baselines/reference/exponentiationOperatorWithTemplateStringInvalid.types rename to tests/baselines/reference/exponentiationOperatorWithTemplateStringInvalid(target=es2015).types diff --git a/tests/baselines/reference/exponentiationOperatorWithTemplateStringInvalid(target=es5).errors.txt b/tests/baselines/reference/exponentiationOperatorWithTemplateStringInvalid(target=es5).errors.txt new file mode 100644 index 0000000000000..03895e02e2c35 --- /dev/null +++ b/tests/baselines/reference/exponentiationOperatorWithTemplateStringInvalid(target=es5).errors.txt @@ -0,0 +1,56 @@ +exponentiationOperatorWithTemplateStringInvalid.ts(1,14): error TS2363: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +exponentiationOperatorWithTemplateStringInvalid.ts(2,14): error TS2363: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +exponentiationOperatorWithTemplateStringInvalid.ts(3,14): error TS2363: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +exponentiationOperatorWithTemplateStringInvalid.ts(4,14): error TS2363: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +exponentiationOperatorWithTemplateStringInvalid.ts(5,9): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +exponentiationOperatorWithTemplateStringInvalid.ts(6,9): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +exponentiationOperatorWithTemplateStringInvalid.ts(7,9): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +exponentiationOperatorWithTemplateStringInvalid.ts(8,9): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +exponentiationOperatorWithTemplateStringInvalid.ts(11,7): error TS2363: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +exponentiationOperatorWithTemplateStringInvalid.ts(12,7): error TS2363: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +exponentiationOperatorWithTemplateStringInvalid.ts(13,7): error TS2363: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +exponentiationOperatorWithTemplateStringInvalid.ts(14,7): error TS2363: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + + +==== exponentiationOperatorWithTemplateStringInvalid.ts (12 errors) ==== + var a = 1 ** `${ 3 }`; + ~~~~~~~~ +!!! error TS2363: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + var b = 1 ** `2${ 3 }`; + ~~~~~~~~~ +!!! error TS2363: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + var c = 1 ** `${ 3 }4`; + ~~~~~~~~~ +!!! error TS2363: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + var d = 1 ** `2${ 3 }4`; + ~~~~~~~~~~ +!!! error TS2363: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + var e = `${ 3 }` ** 5; + ~~~~~~~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + var f = `2${ 3 }` ** 5; + ~~~~~~~~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + var g = `${ 3 }4` ** 5; + ~~~~~~~~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + var h = `2${ 3 }4` ** 5; + ~~~~~~~~~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + + var k = 10; + k **= `${ 3 }`; + ~~~~~~~~ +!!! error TS2363: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + k **= `2${ 3 }`; + ~~~~~~~~~ +!!! error TS2363: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + k **= `2${ 3 }4`; + ~~~~~~~~~~ +!!! error TS2363: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + k **= `2${ 3 }4`; + ~~~~~~~~~~ +!!! error TS2363: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + + + \ No newline at end of file diff --git a/tests/baselines/reference/exponentiationOperatorWithTemplateStringInvalid.js b/tests/baselines/reference/exponentiationOperatorWithTemplateStringInvalid(target=es5).js similarity index 100% rename from tests/baselines/reference/exponentiationOperatorWithTemplateStringInvalid.js rename to tests/baselines/reference/exponentiationOperatorWithTemplateStringInvalid(target=es5).js diff --git a/tests/baselines/reference/exponentiationOperatorWithTemplateStringInvalid(target=es5).symbols b/tests/baselines/reference/exponentiationOperatorWithTemplateStringInvalid(target=es5).symbols new file mode 100644 index 0000000000000..8d5c518fb36dd --- /dev/null +++ b/tests/baselines/reference/exponentiationOperatorWithTemplateStringInvalid(target=es5).symbols @@ -0,0 +1,44 @@ +//// [tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorWithTemplateStringInvalid.ts] //// + +=== exponentiationOperatorWithTemplateStringInvalid.ts === +var a = 1 ** `${ 3 }`; +>a : Symbol(a, Decl(exponentiationOperatorWithTemplateStringInvalid.ts, 0, 3)) + +var b = 1 ** `2${ 3 }`; +>b : Symbol(b, Decl(exponentiationOperatorWithTemplateStringInvalid.ts, 1, 3)) + +var c = 1 ** `${ 3 }4`; +>c : Symbol(c, Decl(exponentiationOperatorWithTemplateStringInvalid.ts, 2, 3)) + +var d = 1 ** `2${ 3 }4`; +>d : Symbol(d, Decl(exponentiationOperatorWithTemplateStringInvalid.ts, 3, 3)) + +var e = `${ 3 }` ** 5; +>e : Symbol(e, Decl(exponentiationOperatorWithTemplateStringInvalid.ts, 4, 3)) + +var f = `2${ 3 }` ** 5; +>f : Symbol(f, Decl(exponentiationOperatorWithTemplateStringInvalid.ts, 5, 3)) + +var g = `${ 3 }4` ** 5; +>g : Symbol(g, Decl(exponentiationOperatorWithTemplateStringInvalid.ts, 6, 3)) + +var h = `2${ 3 }4` ** 5; +>h : Symbol(h, Decl(exponentiationOperatorWithTemplateStringInvalid.ts, 7, 3)) + +var k = 10; +>k : Symbol(k, Decl(exponentiationOperatorWithTemplateStringInvalid.ts, 9, 3)) + +k **= `${ 3 }`; +>k : Symbol(k, Decl(exponentiationOperatorWithTemplateStringInvalid.ts, 9, 3)) + +k **= `2${ 3 }`; +>k : Symbol(k, Decl(exponentiationOperatorWithTemplateStringInvalid.ts, 9, 3)) + +k **= `2${ 3 }4`; +>k : Symbol(k, Decl(exponentiationOperatorWithTemplateStringInvalid.ts, 9, 3)) + +k **= `2${ 3 }4`; +>k : Symbol(k, Decl(exponentiationOperatorWithTemplateStringInvalid.ts, 9, 3)) + + + diff --git a/tests/baselines/reference/exponentiationOperatorWithTemplateStringInvalid(target=es5).types b/tests/baselines/reference/exponentiationOperatorWithTemplateStringInvalid(target=es5).types new file mode 100644 index 0000000000000..23c08bcc8e44d --- /dev/null +++ b/tests/baselines/reference/exponentiationOperatorWithTemplateStringInvalid(target=es5).types @@ -0,0 +1,147 @@ +//// [tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorWithTemplateStringInvalid.ts] //// + +=== exponentiationOperatorWithTemplateStringInvalid.ts === +var a = 1 ** `${ 3 }`; +>a : number +> : ^^^^^^ +>1 ** `${ 3 }` : number +> : ^^^^^^ +>1 : 1 +> : ^ +>`${ 3 }` : "3" +> : ^^^ +>3 : 3 +> : ^ + +var b = 1 ** `2${ 3 }`; +>b : number +> : ^^^^^^ +>1 ** `2${ 3 }` : number +> : ^^^^^^ +>1 : 1 +> : ^ +>`2${ 3 }` : "23" +> : ^^^^ +>3 : 3 +> : ^ + +var c = 1 ** `${ 3 }4`; +>c : number +> : ^^^^^^ +>1 ** `${ 3 }4` : number +> : ^^^^^^ +>1 : 1 +> : ^ +>`${ 3 }4` : "34" +> : ^^^^ +>3 : 3 +> : ^ + +var d = 1 ** `2${ 3 }4`; +>d : number +> : ^^^^^^ +>1 ** `2${ 3 }4` : number +> : ^^^^^^ +>1 : 1 +> : ^ +>`2${ 3 }4` : "234" +> : ^^^^^ +>3 : 3 +> : ^ + +var e = `${ 3 }` ** 5; +>e : number +> : ^^^^^^ +>`${ 3 }` ** 5 : number +> : ^^^^^^ +>`${ 3 }` : "3" +> : ^^^ +>3 : 3 +> : ^ +>5 : 5 +> : ^ + +var f = `2${ 3 }` ** 5; +>f : number +> : ^^^^^^ +>`2${ 3 }` ** 5 : number +> : ^^^^^^ +>`2${ 3 }` : "23" +> : ^^^^ +>3 : 3 +> : ^ +>5 : 5 +> : ^ + +var g = `${ 3 }4` ** 5; +>g : number +> : ^^^^^^ +>`${ 3 }4` ** 5 : number +> : ^^^^^^ +>`${ 3 }4` : "34" +> : ^^^^ +>3 : 3 +> : ^ +>5 : 5 +> : ^ + +var h = `2${ 3 }4` ** 5; +>h : number +> : ^^^^^^ +>`2${ 3 }4` ** 5 : number +> : ^^^^^^ +>`2${ 3 }4` : "234" +> : ^^^^^ +>3 : 3 +> : ^ +>5 : 5 +> : ^ + +var k = 10; +>k : number +> : ^^^^^^ +>10 : 10 +> : ^^ + +k **= `${ 3 }`; +>k **= `${ 3 }` : number +> : ^^^^^^ +>k : number +> : ^^^^^^ +>`${ 3 }` : "3" +> : ^^^ +>3 : 3 +> : ^ + +k **= `2${ 3 }`; +>k **= `2${ 3 }` : number +> : ^^^^^^ +>k : number +> : ^^^^^^ +>`2${ 3 }` : "23" +> : ^^^^ +>3 : 3 +> : ^ + +k **= `2${ 3 }4`; +>k **= `2${ 3 }4` : number +> : ^^^^^^ +>k : number +> : ^^^^^^ +>`2${ 3 }4` : "234" +> : ^^^^^ +>3 : 3 +> : ^ + +k **= `2${ 3 }4`; +>k **= `2${ 3 }4` : number +> : ^^^^^^ +>k : number +> : ^^^^^^ +>`2${ 3 }4` : "234" +> : ^^^^^ +>3 : 3 +> : ^ + + + diff --git a/tests/baselines/reference/exportAmbientClassNameWithObject(target=es2015).js b/tests/baselines/reference/exportAmbientClassNameWithObject(target=es2015).js new file mode 100644 index 0000000000000..dbd3316ec8b13 --- /dev/null +++ b/tests/baselines/reference/exportAmbientClassNameWithObject(target=es2015).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/externalModules/exportAmbientClassNameWithObject.ts] //// + +//// [exportAmbientClassNameWithObject.ts] +export declare class Object {} + + +//// [exportAmbientClassNameWithObject.js] +export {}; diff --git a/tests/baselines/reference/exportAmbientClassNameWithObject.symbols b/tests/baselines/reference/exportAmbientClassNameWithObject(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/exportAmbientClassNameWithObject.symbols rename to tests/baselines/reference/exportAmbientClassNameWithObject(target=es2015).symbols diff --git a/tests/baselines/reference/exportAmbientClassNameWithObject.types b/tests/baselines/reference/exportAmbientClassNameWithObject(target=es2015).types similarity index 100% rename from tests/baselines/reference/exportAmbientClassNameWithObject.types rename to tests/baselines/reference/exportAmbientClassNameWithObject(target=es2015).types diff --git a/tests/baselines/reference/exportAmbientClassNameWithObject.js b/tests/baselines/reference/exportAmbientClassNameWithObject(target=es5).js similarity index 100% rename from tests/baselines/reference/exportAmbientClassNameWithObject.js rename to tests/baselines/reference/exportAmbientClassNameWithObject(target=es5).js diff --git a/tests/baselines/reference/exportAmbientClassNameWithObject(target=es5).symbols b/tests/baselines/reference/exportAmbientClassNameWithObject(target=es5).symbols new file mode 100644 index 0000000000000..ba03d9639ee20 --- /dev/null +++ b/tests/baselines/reference/exportAmbientClassNameWithObject(target=es5).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/externalModules/exportAmbientClassNameWithObject.ts] //// + +=== exportAmbientClassNameWithObject.ts === +export declare class Object {} +>Object : Symbol(Object, Decl(exportAmbientClassNameWithObject.ts, 0, 0)) + diff --git a/tests/baselines/reference/exportAmbientClassNameWithObject(target=es5).types b/tests/baselines/reference/exportAmbientClassNameWithObject(target=es5).types new file mode 100644 index 0000000000000..dfabee095bb80 --- /dev/null +++ b/tests/baselines/reference/exportAmbientClassNameWithObject(target=es5).types @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/externalModules/exportAmbientClassNameWithObject.ts] //// + +=== exportAmbientClassNameWithObject.ts === +export declare class Object {} +>Object : Object +> : ^^^^^^ + diff --git a/tests/baselines/reference/exportAndImport-es5(target=es2015).js b/tests/baselines/reference/exportAndImport-es5(target=es2015).js new file mode 100644 index 0000000000000..bfff9d0087486 --- /dev/null +++ b/tests/baselines/reference/exportAndImport-es5(target=es2015).js @@ -0,0 +1,30 @@ +//// [tests/cases/conformance/es6/modules/exportAndImport-es5.ts] //// + +//// [m1.ts] +export default function f1() { +} + +//// [m2.ts] +import f1 from "./m1"; +export default function f2() { + f1(); +} + + +//// [m1.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = f1; +function f1() { +} +//// [m2.js] +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = f2; +const m1_1 = __importDefault(require("./m1")); +function f2() { + (0, m1_1.default)(); +} diff --git a/tests/baselines/reference/exportAndImport-es5.symbols b/tests/baselines/reference/exportAndImport-es5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/exportAndImport-es5.symbols rename to tests/baselines/reference/exportAndImport-es5(target=es2015).symbols diff --git a/tests/baselines/reference/exportAndImport-es5.types b/tests/baselines/reference/exportAndImport-es5(target=es2015).types similarity index 100% rename from tests/baselines/reference/exportAndImport-es5.types rename to tests/baselines/reference/exportAndImport-es5(target=es2015).types diff --git a/tests/baselines/reference/exportAndImport-es5.js b/tests/baselines/reference/exportAndImport-es5(target=es5).js similarity index 100% rename from tests/baselines/reference/exportAndImport-es5.js rename to tests/baselines/reference/exportAndImport-es5(target=es5).js diff --git a/tests/baselines/reference/exportAndImport-es5(target=es5).symbols b/tests/baselines/reference/exportAndImport-es5(target=es5).symbols new file mode 100644 index 0000000000000..229963fb73d3b --- /dev/null +++ b/tests/baselines/reference/exportAndImport-es5(target=es5).symbols @@ -0,0 +1,18 @@ +//// [tests/cases/conformance/es6/modules/exportAndImport-es5.ts] //// + +=== m1.ts === +export default function f1() { +>f1 : Symbol(f1, Decl(m1.ts, 0, 0)) +} + +=== m2.ts === +import f1 from "./m1"; +>f1 : Symbol(f1, Decl(m2.ts, 0, 6)) + +export default function f2() { +>f2 : Symbol(f2, Decl(m2.ts, 0, 22)) + + f1(); +>f1 : Symbol(f1, Decl(m2.ts, 0, 6)) +} + diff --git a/tests/baselines/reference/exportAndImport-es5(target=es5).types b/tests/baselines/reference/exportAndImport-es5(target=es5).types new file mode 100644 index 0000000000000..f9f0eae005fde --- /dev/null +++ b/tests/baselines/reference/exportAndImport-es5(target=es5).types @@ -0,0 +1,24 @@ +//// [tests/cases/conformance/es6/modules/exportAndImport-es5.ts] //// + +=== m1.ts === +export default function f1() { +>f1 : () => void +> : ^^^^^^^^^^ +} + +=== m2.ts === +import f1 from "./m1"; +>f1 : () => void +> : ^^^^^^^^^^ + +export default function f2() { +>f2 : () => void +> : ^^^^^^^^^^ + + f1(); +>f1() : void +> : ^^^^ +>f1 : () => void +> : ^^^^^^^^^^ +} + diff --git a/tests/baselines/reference/exportAndImport-es5-amd.errors.txt b/tests/baselines/reference/exportAndImport-es5-amd(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/exportAndImport-es5-amd.errors.txt rename to tests/baselines/reference/exportAndImport-es5-amd(target=es2015).errors.txt diff --git a/tests/baselines/reference/exportAndImport-es5-amd.js b/tests/baselines/reference/exportAndImport-es5-amd(target=es2015).js similarity index 100% rename from tests/baselines/reference/exportAndImport-es5-amd.js rename to tests/baselines/reference/exportAndImport-es5-amd(target=es2015).js diff --git a/tests/baselines/reference/exportAndImport-es5-amd.symbols b/tests/baselines/reference/exportAndImport-es5-amd(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/exportAndImport-es5-amd.symbols rename to tests/baselines/reference/exportAndImport-es5-amd(target=es2015).symbols diff --git a/tests/baselines/reference/exportAndImport-es5-amd.types b/tests/baselines/reference/exportAndImport-es5-amd(target=es2015).types similarity index 100% rename from tests/baselines/reference/exportAndImport-es5-amd.types rename to tests/baselines/reference/exportAndImport-es5-amd(target=es2015).types diff --git a/tests/baselines/reference/exportAndImport-es5-amd(target=es5).errors.txt b/tests/baselines/reference/exportAndImport-es5-amd(target=es5).errors.txt new file mode 100644 index 0000000000000..fbd8e108ce86b --- /dev/null +++ b/tests/baselines/reference/exportAndImport-es5-amd(target=es5).errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export default function f1() { + } + +==== m2.ts (0 errors) ==== + import f1 from "./m1"; + export default function f2() { + f1(); + } + \ No newline at end of file diff --git a/tests/baselines/reference/exportAndImport-es5-amd(target=es5).js b/tests/baselines/reference/exportAndImport-es5-amd(target=es5).js new file mode 100644 index 0000000000000..b27a0a519d9ce --- /dev/null +++ b/tests/baselines/reference/exportAndImport-es5-amd(target=es5).js @@ -0,0 +1,34 @@ +//// [tests/cases/conformance/es6/modules/exportAndImport-es5-amd.ts] //// + +//// [m1.ts] +export default function f1() { +} + +//// [m2.ts] +import f1 from "./m1"; +export default function f2() { + f1(); +} + + +//// [m1.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.default = f1; + function f1() { + } +}); +//// [m2.js] +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +define(["require", "exports", "./m1"], function (require, exports, m1_1) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.default = f2; + m1_1 = __importDefault(m1_1); + function f2() { + (0, m1_1.default)(); + } +}); diff --git a/tests/baselines/reference/exportAndImport-es5-amd(target=es5).symbols b/tests/baselines/reference/exportAndImport-es5-amd(target=es5).symbols new file mode 100644 index 0000000000000..853cc413c66f9 --- /dev/null +++ b/tests/baselines/reference/exportAndImport-es5-amd(target=es5).symbols @@ -0,0 +1,18 @@ +//// [tests/cases/conformance/es6/modules/exportAndImport-es5-amd.ts] //// + +=== m1.ts === +export default function f1() { +>f1 : Symbol(f1, Decl(m1.ts, 0, 0)) +} + +=== m2.ts === +import f1 from "./m1"; +>f1 : Symbol(f1, Decl(m2.ts, 0, 6)) + +export default function f2() { +>f2 : Symbol(f2, Decl(m2.ts, 0, 22)) + + f1(); +>f1 : Symbol(f1, Decl(m2.ts, 0, 6)) +} + diff --git a/tests/baselines/reference/exportAndImport-es5-amd(target=es5).types b/tests/baselines/reference/exportAndImport-es5-amd(target=es5).types new file mode 100644 index 0000000000000..de3ccfb6a15bc --- /dev/null +++ b/tests/baselines/reference/exportAndImport-es5-amd(target=es5).types @@ -0,0 +1,24 @@ +//// [tests/cases/conformance/es6/modules/exportAndImport-es5-amd.ts] //// + +=== m1.ts === +export default function f1() { +>f1 : () => void +> : ^^^^^^^^^^ +} + +=== m2.ts === +import f1 from "./m1"; +>f1 : () => void +> : ^^^^^^^^^^ + +export default function f2() { +>f2 : () => void +> : ^^^^^^^^^^ + + f1(); +>f1() : void +> : ^^^^ +>f1 : () => void +> : ^^^^^^^^^^ +} + diff --git a/tests/baselines/reference/exportClassNameWithObjectAMD.errors.txt b/tests/baselines/reference/exportClassNameWithObjectAMD(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/exportClassNameWithObjectAMD.errors.txt rename to tests/baselines/reference/exportClassNameWithObjectAMD(target=es2015).errors.txt diff --git a/tests/baselines/reference/exportClassNameWithObjectAMD(target=es2015).js b/tests/baselines/reference/exportClassNameWithObjectAMD(target=es2015).js new file mode 100644 index 0000000000000..74cbdca56f263 --- /dev/null +++ b/tests/baselines/reference/exportClassNameWithObjectAMD(target=es2015).js @@ -0,0 +1,15 @@ +//// [tests/cases/conformance/externalModules/exportClassNameWithObjectAMD.ts] //// + +//// [exportClassNameWithObjectAMD.ts] +export class Object {} + + +//// [exportClassNameWithObjectAMD.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.Object = void 0; + class Object { + } + exports.Object = Object; +}); diff --git a/tests/baselines/reference/exportClassNameWithObjectAMD.symbols b/tests/baselines/reference/exportClassNameWithObjectAMD(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/exportClassNameWithObjectAMD.symbols rename to tests/baselines/reference/exportClassNameWithObjectAMD(target=es2015).symbols diff --git a/tests/baselines/reference/exportClassNameWithObjectAMD.types b/tests/baselines/reference/exportClassNameWithObjectAMD(target=es2015).types similarity index 100% rename from tests/baselines/reference/exportClassNameWithObjectAMD.types rename to tests/baselines/reference/exportClassNameWithObjectAMD(target=es2015).types diff --git a/tests/baselines/reference/exportClassNameWithObjectAMD(target=es5).errors.txt b/tests/baselines/reference/exportClassNameWithObjectAMD(target=es5).errors.txt new file mode 100644 index 0000000000000..d1f275d2c57fe --- /dev/null +++ b/tests/baselines/reference/exportClassNameWithObjectAMD(target=es5).errors.txt @@ -0,0 +1,10 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +exportClassNameWithObjectAMD.ts(1,14): error TS2725: Class name cannot be 'Object' when targeting ES5 and above with module AMD. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== exportClassNameWithObjectAMD.ts (1 errors) ==== + export class Object {} + ~~~~~~ +!!! error TS2725: Class name cannot be 'Object' when targeting ES5 and above with module AMD. + \ No newline at end of file diff --git a/tests/baselines/reference/exportClassNameWithObjectAMD.js b/tests/baselines/reference/exportClassNameWithObjectAMD(target=es5).js similarity index 100% rename from tests/baselines/reference/exportClassNameWithObjectAMD.js rename to tests/baselines/reference/exportClassNameWithObjectAMD(target=es5).js diff --git a/tests/baselines/reference/exportClassNameWithObjectAMD(target=es5).symbols b/tests/baselines/reference/exportClassNameWithObjectAMD(target=es5).symbols new file mode 100644 index 0000000000000..9a1c7b6f82410 --- /dev/null +++ b/tests/baselines/reference/exportClassNameWithObjectAMD(target=es5).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/externalModules/exportClassNameWithObjectAMD.ts] //// + +=== exportClassNameWithObjectAMD.ts === +export class Object {} +>Object : Symbol(Object, Decl(exportClassNameWithObjectAMD.ts, 0, 0)) + diff --git a/tests/baselines/reference/exportClassNameWithObjectAMD(target=es5).types b/tests/baselines/reference/exportClassNameWithObjectAMD(target=es5).types new file mode 100644 index 0000000000000..d819ae67b2fed --- /dev/null +++ b/tests/baselines/reference/exportClassNameWithObjectAMD(target=es5).types @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/externalModules/exportClassNameWithObjectAMD.ts] //// + +=== exportClassNameWithObjectAMD.ts === +export class Object {} +>Object : Object +> : ^^^^^^ + diff --git a/tests/baselines/reference/exportClassNameWithObjectCommonJS.errors.txt b/tests/baselines/reference/exportClassNameWithObjectCommonJS(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/exportClassNameWithObjectCommonJS.errors.txt rename to tests/baselines/reference/exportClassNameWithObjectCommonJS(target=es2015).errors.txt diff --git a/tests/baselines/reference/exportClassNameWithObjectCommonJS(target=es2015).js b/tests/baselines/reference/exportClassNameWithObjectCommonJS(target=es2015).js new file mode 100644 index 0000000000000..d71fa62ffb95e --- /dev/null +++ b/tests/baselines/reference/exportClassNameWithObjectCommonJS(target=es2015).js @@ -0,0 +1,13 @@ +//// [tests/cases/conformance/externalModules/exportClassNameWithObjectCommonJS.ts] //// + +//// [exportClassNameWithObjectCommonJS.ts] +export class Object {} + + +//// [exportClassNameWithObjectCommonJS.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Object = void 0; +class Object { +} +exports.Object = Object; diff --git a/tests/baselines/reference/exportClassNameWithObjectCommonJS.symbols b/tests/baselines/reference/exportClassNameWithObjectCommonJS(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/exportClassNameWithObjectCommonJS.symbols rename to tests/baselines/reference/exportClassNameWithObjectCommonJS(target=es2015).symbols diff --git a/tests/baselines/reference/exportClassNameWithObjectCommonJS.types b/tests/baselines/reference/exportClassNameWithObjectCommonJS(target=es2015).types similarity index 100% rename from tests/baselines/reference/exportClassNameWithObjectCommonJS.types rename to tests/baselines/reference/exportClassNameWithObjectCommonJS(target=es2015).types diff --git a/tests/baselines/reference/exportClassNameWithObjectCommonJS(target=es5).errors.txt b/tests/baselines/reference/exportClassNameWithObjectCommonJS(target=es5).errors.txt new file mode 100644 index 0000000000000..99ab5272a9667 --- /dev/null +++ b/tests/baselines/reference/exportClassNameWithObjectCommonJS(target=es5).errors.txt @@ -0,0 +1,8 @@ +exportClassNameWithObjectCommonJS.ts(1,14): error TS2725: Class name cannot be 'Object' when targeting ES5 and above with module CommonJS. + + +==== exportClassNameWithObjectCommonJS.ts (1 errors) ==== + export class Object {} + ~~~~~~ +!!! error TS2725: Class name cannot be 'Object' when targeting ES5 and above with module CommonJS. + \ No newline at end of file diff --git a/tests/baselines/reference/exportClassNameWithObjectCommonJS.js b/tests/baselines/reference/exportClassNameWithObjectCommonJS(target=es5).js similarity index 100% rename from tests/baselines/reference/exportClassNameWithObjectCommonJS.js rename to tests/baselines/reference/exportClassNameWithObjectCommonJS(target=es5).js diff --git a/tests/baselines/reference/exportClassNameWithObjectCommonJS(target=es5).symbols b/tests/baselines/reference/exportClassNameWithObjectCommonJS(target=es5).symbols new file mode 100644 index 0000000000000..cc83496d5a35e --- /dev/null +++ b/tests/baselines/reference/exportClassNameWithObjectCommonJS(target=es5).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/externalModules/exportClassNameWithObjectCommonJS.ts] //// + +=== exportClassNameWithObjectCommonJS.ts === +export class Object {} +>Object : Symbol(Object, Decl(exportClassNameWithObjectCommonJS.ts, 0, 0)) + diff --git a/tests/baselines/reference/exportClassNameWithObjectCommonJS(target=es5).types b/tests/baselines/reference/exportClassNameWithObjectCommonJS(target=es5).types new file mode 100644 index 0000000000000..5e7b3bc9f6507 --- /dev/null +++ b/tests/baselines/reference/exportClassNameWithObjectCommonJS(target=es5).types @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/externalModules/exportClassNameWithObjectCommonJS.ts] //// + +=== exportClassNameWithObjectCommonJS.ts === +export class Object {} +>Object : Object +> : ^^^^^^ + diff --git a/tests/baselines/reference/exportClassNameWithObjectSystem.errors.txt b/tests/baselines/reference/exportClassNameWithObjectSystem(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/exportClassNameWithObjectSystem.errors.txt rename to tests/baselines/reference/exportClassNameWithObjectSystem(target=es2015).errors.txt diff --git a/tests/baselines/reference/exportClassNameWithObjectSystem(target=es2015).js b/tests/baselines/reference/exportClassNameWithObjectSystem(target=es2015).js new file mode 100644 index 0000000000000..841a05af89054 --- /dev/null +++ b/tests/baselines/reference/exportClassNameWithObjectSystem(target=es2015).js @@ -0,0 +1,20 @@ +//// [tests/cases/conformance/externalModules/exportClassNameWithObjectSystem.ts] //// + +//// [exportClassNameWithObjectSystem.ts] +export class Object {} + + +//// [exportClassNameWithObjectSystem.js] +System.register([], function (exports_1, context_1) { + "use strict"; + var Object; + var __moduleName = context_1 && context_1.id; + return { + setters: [], + execute: function () { + Object = class Object { + }; + exports_1("Object", Object); + } + }; +}); diff --git a/tests/baselines/reference/exportClassNameWithObjectSystem.symbols b/tests/baselines/reference/exportClassNameWithObjectSystem(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/exportClassNameWithObjectSystem.symbols rename to tests/baselines/reference/exportClassNameWithObjectSystem(target=es2015).symbols diff --git a/tests/baselines/reference/exportClassNameWithObjectSystem.types b/tests/baselines/reference/exportClassNameWithObjectSystem(target=es2015).types similarity index 100% rename from tests/baselines/reference/exportClassNameWithObjectSystem.types rename to tests/baselines/reference/exportClassNameWithObjectSystem(target=es2015).types diff --git a/tests/baselines/reference/exportClassNameWithObjectSystem(target=es5).errors.txt b/tests/baselines/reference/exportClassNameWithObjectSystem(target=es5).errors.txt new file mode 100644 index 0000000000000..1bdf1d731f8dc --- /dev/null +++ b/tests/baselines/reference/exportClassNameWithObjectSystem(target=es5).errors.txt @@ -0,0 +1,10 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +exportClassNameWithObjectSystem.ts(1,14): error TS2725: Class name cannot be 'Object' when targeting ES5 and above with module System. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== exportClassNameWithObjectSystem.ts (1 errors) ==== + export class Object {} + ~~~~~~ +!!! error TS2725: Class name cannot be 'Object' when targeting ES5 and above with module System. + \ No newline at end of file diff --git a/tests/baselines/reference/exportClassNameWithObjectSystem.js b/tests/baselines/reference/exportClassNameWithObjectSystem(target=es5).js similarity index 100% rename from tests/baselines/reference/exportClassNameWithObjectSystem.js rename to tests/baselines/reference/exportClassNameWithObjectSystem(target=es5).js diff --git a/tests/baselines/reference/exportClassNameWithObjectSystem(target=es5).symbols b/tests/baselines/reference/exportClassNameWithObjectSystem(target=es5).symbols new file mode 100644 index 0000000000000..ef73d524f265d --- /dev/null +++ b/tests/baselines/reference/exportClassNameWithObjectSystem(target=es5).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/externalModules/exportClassNameWithObjectSystem.ts] //// + +=== exportClassNameWithObjectSystem.ts === +export class Object {} +>Object : Symbol(Object, Decl(exportClassNameWithObjectSystem.ts, 0, 0)) + diff --git a/tests/baselines/reference/exportClassNameWithObjectSystem(target=es5).types b/tests/baselines/reference/exportClassNameWithObjectSystem(target=es5).types new file mode 100644 index 0000000000000..88ff9178b0c1e --- /dev/null +++ b/tests/baselines/reference/exportClassNameWithObjectSystem(target=es5).types @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/externalModules/exportClassNameWithObjectSystem.ts] //// + +=== exportClassNameWithObjectSystem.ts === +export class Object {} +>Object : Object +> : ^^^^^^ + diff --git a/tests/baselines/reference/exportClassNameWithObjectUMD.errors.txt b/tests/baselines/reference/exportClassNameWithObjectUMD(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/exportClassNameWithObjectUMD.errors.txt rename to tests/baselines/reference/exportClassNameWithObjectUMD(target=es2015).errors.txt diff --git a/tests/baselines/reference/exportClassNameWithObjectUMD(target=es2015).js b/tests/baselines/reference/exportClassNameWithObjectUMD(target=es2015).js new file mode 100644 index 0000000000000..e74b55e4fa163 --- /dev/null +++ b/tests/baselines/reference/exportClassNameWithObjectUMD(target=es2015).js @@ -0,0 +1,23 @@ +//// [tests/cases/conformance/externalModules/exportClassNameWithObjectUMD.ts] //// + +//// [exportClassNameWithObjectUMD.ts] +export class Object {} + + +//// [exportClassNameWithObjectUMD.js] +(function (factory) { + if (typeof module === "object" && typeof module.exports === "object") { + var v = factory(require, exports); + if (v !== undefined) module.exports = v; + } + else if (typeof define === "function" && define.amd) { + define(["require", "exports"], factory); + } +})(function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.Object = void 0; + class Object { + } + exports.Object = Object; +}); diff --git a/tests/baselines/reference/exportClassNameWithObjectUMD.symbols b/tests/baselines/reference/exportClassNameWithObjectUMD(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/exportClassNameWithObjectUMD.symbols rename to tests/baselines/reference/exportClassNameWithObjectUMD(target=es2015).symbols diff --git a/tests/baselines/reference/exportClassNameWithObjectUMD.types b/tests/baselines/reference/exportClassNameWithObjectUMD(target=es2015).types similarity index 100% rename from tests/baselines/reference/exportClassNameWithObjectUMD.types rename to tests/baselines/reference/exportClassNameWithObjectUMD(target=es2015).types diff --git a/tests/baselines/reference/exportClassNameWithObjectUMD(target=es5).errors.txt b/tests/baselines/reference/exportClassNameWithObjectUMD(target=es5).errors.txt new file mode 100644 index 0000000000000..be409a0a7c40d --- /dev/null +++ b/tests/baselines/reference/exportClassNameWithObjectUMD(target=es5).errors.txt @@ -0,0 +1,10 @@ +error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +exportClassNameWithObjectUMD.ts(1,14): error TS2725: Class name cannot be 'Object' when targeting ES5 and above with module UMD. + + +!!! error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== exportClassNameWithObjectUMD.ts (1 errors) ==== + export class Object {} + ~~~~~~ +!!! error TS2725: Class name cannot be 'Object' when targeting ES5 and above with module UMD. + \ No newline at end of file diff --git a/tests/baselines/reference/exportClassNameWithObjectUMD.js b/tests/baselines/reference/exportClassNameWithObjectUMD(target=es5).js similarity index 100% rename from tests/baselines/reference/exportClassNameWithObjectUMD.js rename to tests/baselines/reference/exportClassNameWithObjectUMD(target=es5).js diff --git a/tests/baselines/reference/exportClassNameWithObjectUMD(target=es5).symbols b/tests/baselines/reference/exportClassNameWithObjectUMD(target=es5).symbols new file mode 100644 index 0000000000000..544da3df85e5d --- /dev/null +++ b/tests/baselines/reference/exportClassNameWithObjectUMD(target=es5).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/externalModules/exportClassNameWithObjectUMD.ts] //// + +=== exportClassNameWithObjectUMD.ts === +export class Object {} +>Object : Symbol(Object, Decl(exportClassNameWithObjectUMD.ts, 0, 0)) + diff --git a/tests/baselines/reference/exportClassNameWithObjectUMD(target=es5).types b/tests/baselines/reference/exportClassNameWithObjectUMD(target=es5).types new file mode 100644 index 0000000000000..bef6c8af17c2e --- /dev/null +++ b/tests/baselines/reference/exportClassNameWithObjectUMD(target=es5).types @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/externalModules/exportClassNameWithObjectUMD.ts] //// + +=== exportClassNameWithObjectUMD.ts === +export class Object {} +>Object : Object +> : ^^^^^^ + diff --git a/tests/baselines/reference/exportDeclarationInInternalModule.errors.txt b/tests/baselines/reference/exportDeclarationInInternalModule(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/exportDeclarationInInternalModule.errors.txt rename to tests/baselines/reference/exportDeclarationInInternalModule(target=es2015).errors.txt diff --git a/tests/baselines/reference/exportDeclarationInInternalModule(target=es2015).js b/tests/baselines/reference/exportDeclarationInInternalModule(target=es2015).js new file mode 100644 index 0000000000000..f020b63157b67 --- /dev/null +++ b/tests/baselines/reference/exportDeclarationInInternalModule(target=es2015).js @@ -0,0 +1,54 @@ +//// [tests/cases/compiler/exportDeclarationInInternalModule.ts] //// + +//// [exportDeclarationInInternalModule.ts] +class Bbb { +} + +class Aaa extends Bbb { } + +namespace Aaa { + export class SomeType { } +} + +namespace Bbb { + export class SomeType { } + + export * from Aaa; // this line causes the nullref +} + +var a: Bbb.SomeType; + + +//// [exportDeclarationInInternalModule.js] +class Bbb { +} +class Aaa extends Bbb { +} +(function (Aaa) { + class SomeType { + } + Aaa.SomeType = SomeType; +})(Aaa || (Aaa = {})); +(function (Bbb) { + class SomeType { + } + Bbb.SomeType = SomeType; +})(Bbb || (Bbb = {})); +var a; + + +//// [exportDeclarationInInternalModule.d.ts] +declare class Bbb { +} +declare class Aaa extends Bbb { +} +declare namespace Aaa { + class SomeType { + } +} +declare namespace Bbb { + export class SomeType { + } + export * from Aaa; +} +declare var a: Bbb.SomeType; diff --git a/tests/baselines/reference/exportDeclarationInInternalModule.symbols b/tests/baselines/reference/exportDeclarationInInternalModule(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/exportDeclarationInInternalModule.symbols rename to tests/baselines/reference/exportDeclarationInInternalModule(target=es2015).symbols diff --git a/tests/baselines/reference/exportDeclarationInInternalModule.types b/tests/baselines/reference/exportDeclarationInInternalModule(target=es2015).types similarity index 100% rename from tests/baselines/reference/exportDeclarationInInternalModule.types rename to tests/baselines/reference/exportDeclarationInInternalModule(target=es2015).types diff --git a/tests/baselines/reference/exportDeclarationInInternalModule(target=es5).errors.txt b/tests/baselines/reference/exportDeclarationInInternalModule(target=es5).errors.txt new file mode 100644 index 0000000000000..e1c8e98fa481e --- /dev/null +++ b/tests/baselines/reference/exportDeclarationInInternalModule(target=es5).errors.txt @@ -0,0 +1,23 @@ +exportDeclarationInInternalModule.ts(13,19): error TS1141: String literal expected. + + +==== exportDeclarationInInternalModule.ts (1 errors) ==== + class Bbb { + } + + class Aaa extends Bbb { } + + namespace Aaa { + export class SomeType { } + } + + namespace Bbb { + export class SomeType { } + + export * from Aaa; // this line causes the nullref + ~~~ +!!! error TS1141: String literal expected. + } + + var a: Bbb.SomeType; + \ No newline at end of file diff --git a/tests/baselines/reference/exportDeclarationInInternalModule.js b/tests/baselines/reference/exportDeclarationInInternalModule(target=es5).js similarity index 100% rename from tests/baselines/reference/exportDeclarationInInternalModule.js rename to tests/baselines/reference/exportDeclarationInInternalModule(target=es5).js diff --git a/tests/baselines/reference/exportDeclarationInInternalModule(target=es5).symbols b/tests/baselines/reference/exportDeclarationInInternalModule(target=es5).symbols new file mode 100644 index 0000000000000..2e214b9f6c28e --- /dev/null +++ b/tests/baselines/reference/exportDeclarationInInternalModule(target=es5).symbols @@ -0,0 +1,32 @@ +//// [tests/cases/compiler/exportDeclarationInInternalModule.ts] //// + +=== exportDeclarationInInternalModule.ts === +class Bbb { +>Bbb : Symbol(Bbb, Decl(exportDeclarationInInternalModule.ts, 0, 0), Decl(exportDeclarationInInternalModule.ts, 7, 1)) +} + +class Aaa extends Bbb { } +>Aaa : Symbol(Aaa, Decl(exportDeclarationInInternalModule.ts, 1, 1), Decl(exportDeclarationInInternalModule.ts, 3, 25)) +>Bbb : Symbol(Bbb, Decl(exportDeclarationInInternalModule.ts, 0, 0), Decl(exportDeclarationInInternalModule.ts, 7, 1)) + +namespace Aaa { +>Aaa : Symbol(Aaa, Decl(exportDeclarationInInternalModule.ts, 1, 1), Decl(exportDeclarationInInternalModule.ts, 3, 25)) + + export class SomeType { } +>SomeType : Symbol(SomeType, Decl(exportDeclarationInInternalModule.ts, 5, 15)) +} + +namespace Bbb { +>Bbb : Symbol(Bbb, Decl(exportDeclarationInInternalModule.ts, 0, 0), Decl(exportDeclarationInInternalModule.ts, 7, 1)) + + export class SomeType { } +>SomeType : Symbol(SomeType, Decl(exportDeclarationInInternalModule.ts, 9, 15)) + + export * from Aaa; // this line causes the nullref +} + +var a: Bbb.SomeType; +>a : Symbol(a, Decl(exportDeclarationInInternalModule.ts, 15, 3)) +>Bbb : Symbol(Bbb, Decl(exportDeclarationInInternalModule.ts, 0, 0), Decl(exportDeclarationInInternalModule.ts, 7, 1)) +>SomeType : Symbol(Bbb.SomeType, Decl(exportDeclarationInInternalModule.ts, 9, 15)) + diff --git a/tests/baselines/reference/exportDeclarationInInternalModule(target=es5).types b/tests/baselines/reference/exportDeclarationInInternalModule(target=es5).types new file mode 100644 index 0000000000000..7a419a2054980 --- /dev/null +++ b/tests/baselines/reference/exportDeclarationInInternalModule(target=es5).types @@ -0,0 +1,42 @@ +//// [tests/cases/compiler/exportDeclarationInInternalModule.ts] //// + +=== exportDeclarationInInternalModule.ts === +class Bbb { +>Bbb : Bbb +> : ^^^ +} + +class Aaa extends Bbb { } +>Aaa : Aaa +> : ^^^ +>Bbb : Bbb +> : ^^^ + +namespace Aaa { +>Aaa : typeof Aaa +> : ^^^^^^^^^^ + + export class SomeType { } +>SomeType : SomeType +> : ^^^^^^^^ +} + +namespace Bbb { +>Bbb : typeof Bbb +> : ^^^^^^^^^^ + + export class SomeType { } +>SomeType : SomeType +> : ^^^^^^^^ + + export * from Aaa; // this line causes the nullref +>Aaa : any +> : ^^^ +} + +var a: Bbb.SomeType; +>a : Bbb.SomeType +> : ^^^^^^^^^^^^ +>Bbb : any +> : ^^^ + diff --git a/tests/baselines/reference/exportDefaultClassNameWithObject(target=es2015).js b/tests/baselines/reference/exportDefaultClassNameWithObject(target=es2015).js new file mode 100644 index 0000000000000..3c3170da70fa9 --- /dev/null +++ b/tests/baselines/reference/exportDefaultClassNameWithObject(target=es2015).js @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/externalModules/exportDefaultClassNameWithObject.ts] //// + +//// [exportDefaultClassNameWithObject.ts] +export default class Object {} + + +//// [exportDefaultClassNameWithObject.js] +export default class Object { +} diff --git a/tests/baselines/reference/exportDefaultClassNameWithObject.symbols b/tests/baselines/reference/exportDefaultClassNameWithObject(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/exportDefaultClassNameWithObject.symbols rename to tests/baselines/reference/exportDefaultClassNameWithObject(target=es2015).symbols diff --git a/tests/baselines/reference/exportDefaultClassNameWithObject.types b/tests/baselines/reference/exportDefaultClassNameWithObject(target=es2015).types similarity index 100% rename from tests/baselines/reference/exportDefaultClassNameWithObject.types rename to tests/baselines/reference/exportDefaultClassNameWithObject(target=es2015).types diff --git a/tests/baselines/reference/exportDefaultClassNameWithObject.errors.txt b/tests/baselines/reference/exportDefaultClassNameWithObject(target=es5).errors.txt similarity index 100% rename from tests/baselines/reference/exportDefaultClassNameWithObject.errors.txt rename to tests/baselines/reference/exportDefaultClassNameWithObject(target=es5).errors.txt diff --git a/tests/baselines/reference/exportDefaultClassNameWithObject.js b/tests/baselines/reference/exportDefaultClassNameWithObject(target=es5).js similarity index 100% rename from tests/baselines/reference/exportDefaultClassNameWithObject.js rename to tests/baselines/reference/exportDefaultClassNameWithObject(target=es5).js diff --git a/tests/baselines/reference/exportDefaultClassNameWithObject(target=es5).symbols b/tests/baselines/reference/exportDefaultClassNameWithObject(target=es5).symbols new file mode 100644 index 0000000000000..45aa3d5887efa --- /dev/null +++ b/tests/baselines/reference/exportDefaultClassNameWithObject(target=es5).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/externalModules/exportDefaultClassNameWithObject.ts] //// + +=== exportDefaultClassNameWithObject.ts === +export default class Object {} +>Object : Symbol(Object, Decl(exportDefaultClassNameWithObject.ts, 0, 0)) + diff --git a/tests/baselines/reference/exportDefaultClassNameWithObject(target=es5).types b/tests/baselines/reference/exportDefaultClassNameWithObject(target=es5).types new file mode 100644 index 0000000000000..b68e2623f58f8 --- /dev/null +++ b/tests/baselines/reference/exportDefaultClassNameWithObject(target=es5).types @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/externalModules/exportDefaultClassNameWithObject.ts] //// + +=== exportDefaultClassNameWithObject.ts === +export default class Object {} +>Object : Object +> : ^^^^^^ + diff --git a/tests/baselines/reference/exportDefaultInJsFile01.errors.txt b/tests/baselines/reference/exportDefaultInJsFile01(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/exportDefaultInJsFile01.errors.txt rename to tests/baselines/reference/exportDefaultInJsFile01(target=es2015).errors.txt diff --git a/tests/baselines/reference/exportDefaultInJsFile01.symbols b/tests/baselines/reference/exportDefaultInJsFile01(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/exportDefaultInJsFile01.symbols rename to tests/baselines/reference/exportDefaultInJsFile01(target=es2015).symbols diff --git a/tests/baselines/reference/exportDefaultInJsFile01.types b/tests/baselines/reference/exportDefaultInJsFile01(target=es2015).types similarity index 100% rename from tests/baselines/reference/exportDefaultInJsFile01.types rename to tests/baselines/reference/exportDefaultInJsFile01(target=es2015).types diff --git a/tests/baselines/reference/exportDefaultInJsFile01(target=es5).errors.txt b/tests/baselines/reference/exportDefaultInJsFile01(target=es5).errors.txt new file mode 100644 index 0000000000000..18c2af26645cd --- /dev/null +++ b/tests/baselines/reference/exportDefaultInJsFile01(target=es5).errors.txt @@ -0,0 +1,8 @@ +error TS5055: Cannot write file 'myFile01.js' because it would overwrite input file. + Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. + + +!!! error TS5055: Cannot write file 'myFile01.js' because it would overwrite input file. +!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. +==== myFile01.js (0 errors) ==== + export default "hello"; \ No newline at end of file diff --git a/tests/baselines/reference/exportDefaultInJsFile01(target=es5).symbols b/tests/baselines/reference/exportDefaultInJsFile01(target=es5).symbols new file mode 100644 index 0000000000000..b2d2d522ee3f9 --- /dev/null +++ b/tests/baselines/reference/exportDefaultInJsFile01(target=es5).symbols @@ -0,0 +1,5 @@ +//// [tests/cases/conformance/salsa/exportDefaultInJsFile01.ts] //// + +=== myFile01.js === + +export default "hello"; diff --git a/tests/baselines/reference/exportDefaultInJsFile01(target=es5).types b/tests/baselines/reference/exportDefaultInJsFile01(target=es5).types new file mode 100644 index 0000000000000..b2d2d522ee3f9 --- /dev/null +++ b/tests/baselines/reference/exportDefaultInJsFile01(target=es5).types @@ -0,0 +1,5 @@ +//// [tests/cases/conformance/salsa/exportDefaultInJsFile01.ts] //// + +=== myFile01.js === + +export default "hello"; diff --git a/tests/baselines/reference/exportDefaultParenthesize(target=es2015).js b/tests/baselines/reference/exportDefaultParenthesize(target=es2015).js new file mode 100644 index 0000000000000..8a986fc3feaee --- /dev/null +++ b/tests/baselines/reference/exportDefaultParenthesize(target=es2015).js @@ -0,0 +1,70 @@ +//// [tests/cases/compiler/exportDefaultParenthesize.ts] //// + +//// [commalist.ts] +export default { + ['foo'+'']: 42, + ['foo'+'']: 42, + ['foo'+'']: 42, + ['foo'+'']: 42, + ['foo'+'']: 42, + ['foo'+'']: 42, + ['foo'+'']: 42, + ['foo'+'']: 42, + ['foo'+'']: 42, + ['foo'+'']: 42, + ['foo'+'']: 42, + ['foo'+'']: 42, + ['foo'+'']: 42, + ['foo'+'']: 42, + ['foo'+'']: 42, + ['foo'+'']: 42, + ['foo'+'']: 42, + ['foo'+'']: 42, + ['foo'+'']: 42, + ['foo'+'']: 42, + ['foo'+'']: 42, + ['foo'+'']: 42, + ['foo'+'']: 42, +}; + +//// [comma.ts] +export default { + ['foo']: 42 +}; + +//// [functionexpression.ts] +export default () => 42; + + +//// [commalist.js] +export default { + ['foo' + '']: 42, + ['foo' + '']: 42, + ['foo' + '']: 42, + ['foo' + '']: 42, + ['foo' + '']: 42, + ['foo' + '']: 42, + ['foo' + '']: 42, + ['foo' + '']: 42, + ['foo' + '']: 42, + ['foo' + '']: 42, + ['foo' + '']: 42, + ['foo' + '']: 42, + ['foo' + '']: 42, + ['foo' + '']: 42, + ['foo' + '']: 42, + ['foo' + '']: 42, + ['foo' + '']: 42, + ['foo' + '']: 42, + ['foo' + '']: 42, + ['foo' + '']: 42, + ['foo' + '']: 42, + ['foo' + '']: 42, + ['foo' + '']: 42, +}; +//// [comma.js] +export default { + ['foo']: 42 +}; +//// [functionexpression.js] +export default () => 42; diff --git a/tests/baselines/reference/exportDefaultParenthesize.symbols b/tests/baselines/reference/exportDefaultParenthesize(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/exportDefaultParenthesize.symbols rename to tests/baselines/reference/exportDefaultParenthesize(target=es2015).symbols diff --git a/tests/baselines/reference/exportDefaultParenthesize.types b/tests/baselines/reference/exportDefaultParenthesize(target=es2015).types similarity index 100% rename from tests/baselines/reference/exportDefaultParenthesize.types rename to tests/baselines/reference/exportDefaultParenthesize(target=es2015).types diff --git a/tests/baselines/reference/exportDefaultParenthesize.js b/tests/baselines/reference/exportDefaultParenthesize(target=es5).js similarity index 100% rename from tests/baselines/reference/exportDefaultParenthesize.js rename to tests/baselines/reference/exportDefaultParenthesize(target=es5).js diff --git a/tests/baselines/reference/exportDefaultParenthesize(target=es5).symbols b/tests/baselines/reference/exportDefaultParenthesize(target=es5).symbols new file mode 100644 index 0000000000000..cffddecdcd814 --- /dev/null +++ b/tests/baselines/reference/exportDefaultParenthesize(target=es5).symbols @@ -0,0 +1,87 @@ +//// [tests/cases/compiler/exportDefaultParenthesize.ts] //// + +=== commalist.ts === +export default { + ['foo'+'']: 42, +>['foo'+''] : Symbol(['foo'+''], Decl(commalist.ts, 0, 16)) + + ['foo'+'']: 42, +>['foo'+''] : Symbol(['foo'+''], Decl(commalist.ts, 1, 19)) + + ['foo'+'']: 42, +>['foo'+''] : Symbol(['foo'+''], Decl(commalist.ts, 2, 19)) + + ['foo'+'']: 42, +>['foo'+''] : Symbol(['foo'+''], Decl(commalist.ts, 3, 19)) + + ['foo'+'']: 42, +>['foo'+''] : Symbol(['foo'+''], Decl(commalist.ts, 4, 19)) + + ['foo'+'']: 42, +>['foo'+''] : Symbol(['foo'+''], Decl(commalist.ts, 5, 19)) + + ['foo'+'']: 42, +>['foo'+''] : Symbol(['foo'+''], Decl(commalist.ts, 6, 19)) + + ['foo'+'']: 42, +>['foo'+''] : Symbol(['foo'+''], Decl(commalist.ts, 7, 19)) + + ['foo'+'']: 42, +>['foo'+''] : Symbol(['foo'+''], Decl(commalist.ts, 8, 19)) + + ['foo'+'']: 42, +>['foo'+''] : Symbol(['foo'+''], Decl(commalist.ts, 9, 19)) + + ['foo'+'']: 42, +>['foo'+''] : Symbol(['foo'+''], Decl(commalist.ts, 10, 19)) + + ['foo'+'']: 42, +>['foo'+''] : Symbol(['foo'+''], Decl(commalist.ts, 11, 19)) + + ['foo'+'']: 42, +>['foo'+''] : Symbol(['foo'+''], Decl(commalist.ts, 12, 19)) + + ['foo'+'']: 42, +>['foo'+''] : Symbol(['foo'+''], Decl(commalist.ts, 13, 19)) + + ['foo'+'']: 42, +>['foo'+''] : Symbol(['foo'+''], Decl(commalist.ts, 14, 19)) + + ['foo'+'']: 42, +>['foo'+''] : Symbol(['foo'+''], Decl(commalist.ts, 15, 19)) + + ['foo'+'']: 42, +>['foo'+''] : Symbol(['foo'+''], Decl(commalist.ts, 16, 19)) + + ['foo'+'']: 42, +>['foo'+''] : Symbol(['foo'+''], Decl(commalist.ts, 17, 19)) + + ['foo'+'']: 42, +>['foo'+''] : Symbol(['foo'+''], Decl(commalist.ts, 18, 19)) + + ['foo'+'']: 42, +>['foo'+''] : Symbol(['foo'+''], Decl(commalist.ts, 19, 19)) + + ['foo'+'']: 42, +>['foo'+''] : Symbol(['foo'+''], Decl(commalist.ts, 20, 19)) + + ['foo'+'']: 42, +>['foo'+''] : Symbol(['foo'+''], Decl(commalist.ts, 21, 19)) + + ['foo'+'']: 42, +>['foo'+''] : Symbol(['foo'+''], Decl(commalist.ts, 22, 19)) + +}; + +=== comma.ts === +export default { + ['foo']: 42 +>['foo'] : Symbol(['foo'], Decl(comma.ts, 0, 16)) +>'foo' : Symbol(['foo'], Decl(comma.ts, 0, 16)) + +}; + +=== functionexpression.ts === + +export default () => 42; + diff --git a/tests/baselines/reference/exportDefaultParenthesize(target=es5).types b/tests/baselines/reference/exportDefaultParenthesize(target=es5).types new file mode 100644 index 0000000000000..c93801d2383fd --- /dev/null +++ b/tests/baselines/reference/exportDefaultParenthesize(target=es5).types @@ -0,0 +1,307 @@ +//// [tests/cases/compiler/exportDefaultParenthesize.ts] //// + +=== commalist.ts === +export default { +>{ ['foo'+'']: 42, ['foo'+'']: 42, ['foo'+'']: 42, ['foo'+'']: 42, ['foo'+'']: 42, ['foo'+'']: 42, ['foo'+'']: 42, ['foo'+'']: 42, ['foo'+'']: 42, ['foo'+'']: 42, ['foo'+'']: 42, ['foo'+'']: 42, ['foo'+'']: 42, ['foo'+'']: 42, ['foo'+'']: 42, ['foo'+'']: 42, ['foo'+'']: 42, ['foo'+'']: 42, ['foo'+'']: 42, ['foo'+'']: 42, ['foo'+'']: 42, ['foo'+'']: 42, ['foo'+'']: 42,} : { [x: string]: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^ + + ['foo'+'']: 42, +>['foo'+''] : number +> : ^^^^^^ +>'foo'+'' : string +> : ^^^^^^ +>'foo' : "foo" +> : ^^^^^ +>'' : "" +> : ^^ +>42 : 42 +> : ^^ + + ['foo'+'']: 42, +>['foo'+''] : number +> : ^^^^^^ +>'foo'+'' : string +> : ^^^^^^ +>'foo' : "foo" +> : ^^^^^ +>'' : "" +> : ^^ +>42 : 42 +> : ^^ + + ['foo'+'']: 42, +>['foo'+''] : number +> : ^^^^^^ +>'foo'+'' : string +> : ^^^^^^ +>'foo' : "foo" +> : ^^^^^ +>'' : "" +> : ^^ +>42 : 42 +> : ^^ + + ['foo'+'']: 42, +>['foo'+''] : number +> : ^^^^^^ +>'foo'+'' : string +> : ^^^^^^ +>'foo' : "foo" +> : ^^^^^ +>'' : "" +> : ^^ +>42 : 42 +> : ^^ + + ['foo'+'']: 42, +>['foo'+''] : number +> : ^^^^^^ +>'foo'+'' : string +> : ^^^^^^ +>'foo' : "foo" +> : ^^^^^ +>'' : "" +> : ^^ +>42 : 42 +> : ^^ + + ['foo'+'']: 42, +>['foo'+''] : number +> : ^^^^^^ +>'foo'+'' : string +> : ^^^^^^ +>'foo' : "foo" +> : ^^^^^ +>'' : "" +> : ^^ +>42 : 42 +> : ^^ + + ['foo'+'']: 42, +>['foo'+''] : number +> : ^^^^^^ +>'foo'+'' : string +> : ^^^^^^ +>'foo' : "foo" +> : ^^^^^ +>'' : "" +> : ^^ +>42 : 42 +> : ^^ + + ['foo'+'']: 42, +>['foo'+''] : number +> : ^^^^^^ +>'foo'+'' : string +> : ^^^^^^ +>'foo' : "foo" +> : ^^^^^ +>'' : "" +> : ^^ +>42 : 42 +> : ^^ + + ['foo'+'']: 42, +>['foo'+''] : number +> : ^^^^^^ +>'foo'+'' : string +> : ^^^^^^ +>'foo' : "foo" +> : ^^^^^ +>'' : "" +> : ^^ +>42 : 42 +> : ^^ + + ['foo'+'']: 42, +>['foo'+''] : number +> : ^^^^^^ +>'foo'+'' : string +> : ^^^^^^ +>'foo' : "foo" +> : ^^^^^ +>'' : "" +> : ^^ +>42 : 42 +> : ^^ + + ['foo'+'']: 42, +>['foo'+''] : number +> : ^^^^^^ +>'foo'+'' : string +> : ^^^^^^ +>'foo' : "foo" +> : ^^^^^ +>'' : "" +> : ^^ +>42 : 42 +> : ^^ + + ['foo'+'']: 42, +>['foo'+''] : number +> : ^^^^^^ +>'foo'+'' : string +> : ^^^^^^ +>'foo' : "foo" +> : ^^^^^ +>'' : "" +> : ^^ +>42 : 42 +> : ^^ + + ['foo'+'']: 42, +>['foo'+''] : number +> : ^^^^^^ +>'foo'+'' : string +> : ^^^^^^ +>'foo' : "foo" +> : ^^^^^ +>'' : "" +> : ^^ +>42 : 42 +> : ^^ + + ['foo'+'']: 42, +>['foo'+''] : number +> : ^^^^^^ +>'foo'+'' : string +> : ^^^^^^ +>'foo' : "foo" +> : ^^^^^ +>'' : "" +> : ^^ +>42 : 42 +> : ^^ + + ['foo'+'']: 42, +>['foo'+''] : number +> : ^^^^^^ +>'foo'+'' : string +> : ^^^^^^ +>'foo' : "foo" +> : ^^^^^ +>'' : "" +> : ^^ +>42 : 42 +> : ^^ + + ['foo'+'']: 42, +>['foo'+''] : number +> : ^^^^^^ +>'foo'+'' : string +> : ^^^^^^ +>'foo' : "foo" +> : ^^^^^ +>'' : "" +> : ^^ +>42 : 42 +> : ^^ + + ['foo'+'']: 42, +>['foo'+''] : number +> : ^^^^^^ +>'foo'+'' : string +> : ^^^^^^ +>'foo' : "foo" +> : ^^^^^ +>'' : "" +> : ^^ +>42 : 42 +> : ^^ + + ['foo'+'']: 42, +>['foo'+''] : number +> : ^^^^^^ +>'foo'+'' : string +> : ^^^^^^ +>'foo' : "foo" +> : ^^^^^ +>'' : "" +> : ^^ +>42 : 42 +> : ^^ + + ['foo'+'']: 42, +>['foo'+''] : number +> : ^^^^^^ +>'foo'+'' : string +> : ^^^^^^ +>'foo' : "foo" +> : ^^^^^ +>'' : "" +> : ^^ +>42 : 42 +> : ^^ + + ['foo'+'']: 42, +>['foo'+''] : number +> : ^^^^^^ +>'foo'+'' : string +> : ^^^^^^ +>'foo' : "foo" +> : ^^^^^ +>'' : "" +> : ^^ +>42 : 42 +> : ^^ + + ['foo'+'']: 42, +>['foo'+''] : number +> : ^^^^^^ +>'foo'+'' : string +> : ^^^^^^ +>'foo' : "foo" +> : ^^^^^ +>'' : "" +> : ^^ +>42 : 42 +> : ^^ + + ['foo'+'']: 42, +>['foo'+''] : number +> : ^^^^^^ +>'foo'+'' : string +> : ^^^^^^ +>'foo' : "foo" +> : ^^^^^ +>'' : "" +> : ^^ +>42 : 42 +> : ^^ + + ['foo'+'']: 42, +>['foo'+''] : number +> : ^^^^^^ +>'foo'+'' : string +> : ^^^^^^ +>'foo' : "foo" +> : ^^^^^ +>'' : "" +> : ^^ +>42 : 42 +> : ^^ + +}; + +=== comma.ts === +export default { +>{ ['foo']: 42} : { foo: number; } +> : ^^^^^^^^^^^^^^^^ + + ['foo']: 42 +>['foo'] : number +> : ^^^^^^ +>'foo' : "foo" +> : ^^^^^ +>42 : 42 +> : ^^ + +}; + +=== functionexpression.ts === +export default () => 42; +>() => 42 : () => number +> : ^^^^^^^^^^^^ +>42 : 42 +> : ^^ + diff --git a/tests/baselines/reference/exportImportCanSubstituteConstEnumForValue.errors.txt b/tests/baselines/reference/exportImportCanSubstituteConstEnumForValue(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/exportImportCanSubstituteConstEnumForValue.errors.txt rename to tests/baselines/reference/exportImportCanSubstituteConstEnumForValue(target=es2015).errors.txt diff --git a/tests/baselines/reference/exportImportCanSubstituteConstEnumForValue(target=es2015).js b/tests/baselines/reference/exportImportCanSubstituteConstEnumForValue(target=es2015).js new file mode 100644 index 0000000000000..2eff9d5fb6b29 --- /dev/null +++ b/tests/baselines/reference/exportImportCanSubstituteConstEnumForValue(target=es2015).js @@ -0,0 +1,129 @@ +//// [tests/cases/compiler/exportImportCanSubstituteConstEnumForValue.ts] //// + +//// [exportImportCanSubstituteConstEnumForValue.ts] +namespace MsPortalFx.ViewModels.Dialogs { + + export const enum DialogResult { + Abort, + Cancel, + Ignore, + No, + Ok, + Retry, + Yes, + } + + export interface DialogResultCallback { + (result: MsPortalFx.ViewModels.Dialogs.DialogResult): void; + } + + export function someExportedFunction() { + } + + export const enum MessageBoxButtons { + AbortRetryIgnore, + OK, + OKCancel, + RetryCancel, + YesNo, + YesNoCancel, + } +} + + +namespace MsPortalFx.ViewModels { + + /** + * For some reason javascript code is emitted for this re-exported const enum. + */ + export import ReExportedEnum = Dialogs.DialogResult; + + /** + * Not exported to show difference. No javascript is emmitted (as expected) + */ + import DialogButtons = Dialogs.MessageBoxButtons; + + /** + * Re-exporting a function type to show difference. No javascript is emmitted (as expected) + */ + export import Callback = Dialogs.DialogResultCallback; + + export class SomeUsagesOfTheseConsts { + constructor() { + // these do get replaced by the const value + const value1 = ReExportedEnum.Cancel; + console.log(value1); + const value2 = DialogButtons.OKCancel; + console.log(value2); + } + } +} + + +//// [exportImportCanSubstituteConstEnumForValue.js] +var MsPortalFx; +(function (MsPortalFx) { + var ViewModels; + (function (ViewModels) { + var Dialogs; + (function (Dialogs) { + function someExportedFunction() { + } + Dialogs.someExportedFunction = someExportedFunction; + })(Dialogs = ViewModels.Dialogs || (ViewModels.Dialogs = {})); + })(ViewModels = MsPortalFx.ViewModels || (MsPortalFx.ViewModels = {})); +})(MsPortalFx || (MsPortalFx = {})); +(function (MsPortalFx) { + var ViewModels; + (function (ViewModels) { + class SomeUsagesOfTheseConsts { + constructor() { + // these do get replaced by the const value + const value1 = 1 /* ReExportedEnum.Cancel */; + console.log(value1); + const value2 = 2 /* DialogButtons.OKCancel */; + console.log(value2); + } + } + ViewModels.SomeUsagesOfTheseConsts = SomeUsagesOfTheseConsts; + })(ViewModels = MsPortalFx.ViewModels || (MsPortalFx.ViewModels = {})); +})(MsPortalFx || (MsPortalFx = {})); + + +//// [exportImportCanSubstituteConstEnumForValue.d.ts] +declare namespace MsPortalFx.ViewModels.Dialogs { + const enum DialogResult { + Abort = 0, + Cancel = 1, + Ignore = 2, + No = 3, + Ok = 4, + Retry = 5, + Yes = 6 + } + interface DialogResultCallback { + (result: MsPortalFx.ViewModels.Dialogs.DialogResult): void; + } + function someExportedFunction(): void; + const enum MessageBoxButtons { + AbortRetryIgnore = 0, + OK = 1, + OKCancel = 2, + RetryCancel = 3, + YesNo = 4, + YesNoCancel = 5 + } +} +declare namespace MsPortalFx.ViewModels { + /** + * For some reason javascript code is emitted for this re-exported const enum. + */ + export import ReExportedEnum = Dialogs.DialogResult; + /** + * Re-exporting a function type to show difference. No javascript is emmitted (as expected) + */ + export import Callback = Dialogs.DialogResultCallback; + class SomeUsagesOfTheseConsts { + constructor(); + } +} diff --git a/tests/baselines/reference/exportImportCanSubstituteConstEnumForValue.symbols b/tests/baselines/reference/exportImportCanSubstituteConstEnumForValue(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/exportImportCanSubstituteConstEnumForValue.symbols rename to tests/baselines/reference/exportImportCanSubstituteConstEnumForValue(target=es2015).symbols diff --git a/tests/baselines/reference/exportImportCanSubstituteConstEnumForValue.types b/tests/baselines/reference/exportImportCanSubstituteConstEnumForValue(target=es2015).types similarity index 100% rename from tests/baselines/reference/exportImportCanSubstituteConstEnumForValue.types rename to tests/baselines/reference/exportImportCanSubstituteConstEnumForValue(target=es2015).types diff --git a/tests/baselines/reference/exportImportCanSubstituteConstEnumForValue(target=es5).errors.txt b/tests/baselines/reference/exportImportCanSubstituteConstEnumForValue(target=es5).errors.txt new file mode 100644 index 0000000000000..08a44fab214f6 --- /dev/null +++ b/tests/baselines/reference/exportImportCanSubstituteConstEnumForValue(target=es5).errors.txt @@ -0,0 +1,63 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== exportImportCanSubstituteConstEnumForValue.ts (0 errors) ==== + namespace MsPortalFx.ViewModels.Dialogs { + + export const enum DialogResult { + Abort, + Cancel, + Ignore, + No, + Ok, + Retry, + Yes, + } + + export interface DialogResultCallback { + (result: MsPortalFx.ViewModels.Dialogs.DialogResult): void; + } + + export function someExportedFunction() { + } + + export const enum MessageBoxButtons { + AbortRetryIgnore, + OK, + OKCancel, + RetryCancel, + YesNo, + YesNoCancel, + } + } + + + namespace MsPortalFx.ViewModels { + + /** + * For some reason javascript code is emitted for this re-exported const enum. + */ + export import ReExportedEnum = Dialogs.DialogResult; + + /** + * Not exported to show difference. No javascript is emmitted (as expected) + */ + import DialogButtons = Dialogs.MessageBoxButtons; + + /** + * Re-exporting a function type to show difference. No javascript is emmitted (as expected) + */ + export import Callback = Dialogs.DialogResultCallback; + + export class SomeUsagesOfTheseConsts { + constructor() { + // these do get replaced by the const value + const value1 = ReExportedEnum.Cancel; + console.log(value1); + const value2 = DialogButtons.OKCancel; + console.log(value2); + } + } + } + \ No newline at end of file diff --git a/tests/baselines/reference/exportImportCanSubstituteConstEnumForValue.js b/tests/baselines/reference/exportImportCanSubstituteConstEnumForValue(target=es5).js similarity index 100% rename from tests/baselines/reference/exportImportCanSubstituteConstEnumForValue.js rename to tests/baselines/reference/exportImportCanSubstituteConstEnumForValue(target=es5).js diff --git a/tests/baselines/reference/exportImportCanSubstituteConstEnumForValue(target=es5).symbols b/tests/baselines/reference/exportImportCanSubstituteConstEnumForValue(target=es5).symbols new file mode 100644 index 0000000000000..c94e113918142 --- /dev/null +++ b/tests/baselines/reference/exportImportCanSubstituteConstEnumForValue(target=es5).symbols @@ -0,0 +1,132 @@ +//// [tests/cases/compiler/exportImportCanSubstituteConstEnumForValue.ts] //// + +=== exportImportCanSubstituteConstEnumForValue.ts === +namespace MsPortalFx.ViewModels.Dialogs { +>MsPortalFx : Symbol(MsPortalFx, Decl(exportImportCanSubstituteConstEnumForValue.ts, 0, 0), Decl(exportImportCanSubstituteConstEnumForValue.ts, 27, 1)) +>ViewModels : Symbol(ViewModels, Decl(exportImportCanSubstituteConstEnumForValue.ts, 0, 21), Decl(exportImportCanSubstituteConstEnumForValue.ts, 30, 21)) +>Dialogs : Symbol(Dialogs, Decl(exportImportCanSubstituteConstEnumForValue.ts, 0, 32)) + + export const enum DialogResult { +>DialogResult : Symbol(DialogResult, Decl(exportImportCanSubstituteConstEnumForValue.ts, 0, 41)) + + Abort, +>Abort : Symbol(ReExportedEnum.Abort, Decl(exportImportCanSubstituteConstEnumForValue.ts, 2, 36)) + + Cancel, +>Cancel : Symbol(ReExportedEnum.Cancel, Decl(exportImportCanSubstituteConstEnumForValue.ts, 3, 14)) + + Ignore, +>Ignore : Symbol(ReExportedEnum.Ignore, Decl(exportImportCanSubstituteConstEnumForValue.ts, 4, 15)) + + No, +>No : Symbol(ReExportedEnum.No, Decl(exportImportCanSubstituteConstEnumForValue.ts, 5, 15)) + + Ok, +>Ok : Symbol(ReExportedEnum.Ok, Decl(exportImportCanSubstituteConstEnumForValue.ts, 6, 11)) + + Retry, +>Retry : Symbol(ReExportedEnum.Retry, Decl(exportImportCanSubstituteConstEnumForValue.ts, 7, 11)) + + Yes, +>Yes : Symbol(ReExportedEnum.Yes, Decl(exportImportCanSubstituteConstEnumForValue.ts, 8, 14)) + } + + export interface DialogResultCallback { +>DialogResultCallback : Symbol(DialogResultCallback, Decl(exportImportCanSubstituteConstEnumForValue.ts, 10, 5)) + + (result: MsPortalFx.ViewModels.Dialogs.DialogResult): void; +>result : Symbol(result, Decl(exportImportCanSubstituteConstEnumForValue.ts, 13, 9)) +>MsPortalFx : Symbol(MsPortalFx, Decl(exportImportCanSubstituteConstEnumForValue.ts, 0, 0), Decl(exportImportCanSubstituteConstEnumForValue.ts, 27, 1)) +>ViewModels : Symbol(ViewModels, Decl(exportImportCanSubstituteConstEnumForValue.ts, 0, 21), Decl(exportImportCanSubstituteConstEnumForValue.ts, 30, 21)) +>Dialogs : Symbol(Dialogs, Decl(exportImportCanSubstituteConstEnumForValue.ts, 0, 32)) +>DialogResult : Symbol(DialogResult, Decl(exportImportCanSubstituteConstEnumForValue.ts, 0, 41)) + } + + export function someExportedFunction() { +>someExportedFunction : Symbol(someExportedFunction, Decl(exportImportCanSubstituteConstEnumForValue.ts, 14, 5)) + } + + export const enum MessageBoxButtons { +>MessageBoxButtons : Symbol(MessageBoxButtons, Decl(exportImportCanSubstituteConstEnumForValue.ts, 17, 5)) + + AbortRetryIgnore, +>AbortRetryIgnore : Symbol(MessageBoxButtons.AbortRetryIgnore, Decl(exportImportCanSubstituteConstEnumForValue.ts, 19, 41)) + + OK, +>OK : Symbol(MessageBoxButtons.OK, Decl(exportImportCanSubstituteConstEnumForValue.ts, 20, 25)) + + OKCancel, +>OKCancel : Symbol(MessageBoxButtons.OKCancel, Decl(exportImportCanSubstituteConstEnumForValue.ts, 21, 11)) + + RetryCancel, +>RetryCancel : Symbol(MessageBoxButtons.RetryCancel, Decl(exportImportCanSubstituteConstEnumForValue.ts, 22, 17)) + + YesNo, +>YesNo : Symbol(MessageBoxButtons.YesNo, Decl(exportImportCanSubstituteConstEnumForValue.ts, 23, 20)) + + YesNoCancel, +>YesNoCancel : Symbol(MessageBoxButtons.YesNoCancel, Decl(exportImportCanSubstituteConstEnumForValue.ts, 24, 14)) + } +} + + +namespace MsPortalFx.ViewModels { +>MsPortalFx : Symbol(MsPortalFx, Decl(exportImportCanSubstituteConstEnumForValue.ts, 0, 0), Decl(exportImportCanSubstituteConstEnumForValue.ts, 27, 1)) +>ViewModels : Symbol(ViewModels, Decl(exportImportCanSubstituteConstEnumForValue.ts, 0, 21), Decl(exportImportCanSubstituteConstEnumForValue.ts, 30, 21)) + + /** + * For some reason javascript code is emitted for this re-exported const enum. + */ + export import ReExportedEnum = Dialogs.DialogResult; +>ReExportedEnum : Symbol(ReExportedEnum, Decl(exportImportCanSubstituteConstEnumForValue.ts, 30, 33)) +>Dialogs : Symbol(Dialogs, Decl(exportImportCanSubstituteConstEnumForValue.ts, 0, 32)) +>DialogResult : Symbol(ReExportedEnum, Decl(exportImportCanSubstituteConstEnumForValue.ts, 0, 41)) + + /** + * Not exported to show difference. No javascript is emmitted (as expected) + */ + import DialogButtons = Dialogs.MessageBoxButtons; +>DialogButtons : Symbol(DialogButtons, Decl(exportImportCanSubstituteConstEnumForValue.ts, 35, 56)) +>Dialogs : Symbol(Dialogs, Decl(exportImportCanSubstituteConstEnumForValue.ts, 0, 32)) +>MessageBoxButtons : Symbol(DialogButtons, Decl(exportImportCanSubstituteConstEnumForValue.ts, 17, 5)) + + /** + * Re-exporting a function type to show difference. No javascript is emmitted (as expected) + */ + export import Callback = Dialogs.DialogResultCallback; +>Callback : Symbol(Callback, Decl(exportImportCanSubstituteConstEnumForValue.ts, 40, 53)) +>Dialogs : Symbol(Dialogs, Decl(exportImportCanSubstituteConstEnumForValue.ts, 0, 32)) +>DialogResultCallback : Symbol(Callback, Decl(exportImportCanSubstituteConstEnumForValue.ts, 10, 5)) + + export class SomeUsagesOfTheseConsts { +>SomeUsagesOfTheseConsts : Symbol(SomeUsagesOfTheseConsts, Decl(exportImportCanSubstituteConstEnumForValue.ts, 45, 58)) + + constructor() { + // these do get replaced by the const value + const value1 = ReExportedEnum.Cancel; +>value1 : Symbol(value1, Decl(exportImportCanSubstituteConstEnumForValue.ts, 50, 17)) +>ReExportedEnum.Cancel : Symbol(ReExportedEnum.Cancel, Decl(exportImportCanSubstituteConstEnumForValue.ts, 3, 14)) +>ReExportedEnum : Symbol(ReExportedEnum, Decl(exportImportCanSubstituteConstEnumForValue.ts, 30, 33)) +>Cancel : Symbol(ReExportedEnum.Cancel, Decl(exportImportCanSubstituteConstEnumForValue.ts, 3, 14)) + + console.log(value1); +>console.log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) +>console : Symbol(console, Decl(lib.dom.d.ts, --, --)) +>log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) +>value1 : Symbol(value1, Decl(exportImportCanSubstituteConstEnumForValue.ts, 50, 17)) + + const value2 = DialogButtons.OKCancel; +>value2 : Symbol(value2, Decl(exportImportCanSubstituteConstEnumForValue.ts, 52, 17)) +>DialogButtons.OKCancel : Symbol(DialogButtons.OKCancel, Decl(exportImportCanSubstituteConstEnumForValue.ts, 21, 11)) +>DialogButtons : Symbol(DialogButtons, Decl(exportImportCanSubstituteConstEnumForValue.ts, 35, 56)) +>OKCancel : Symbol(DialogButtons.OKCancel, Decl(exportImportCanSubstituteConstEnumForValue.ts, 21, 11)) + + console.log(value2); +>console.log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) +>console : Symbol(console, Decl(lib.dom.d.ts, --, --)) +>log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) +>value2 : Symbol(value2, Decl(exportImportCanSubstituteConstEnumForValue.ts, 52, 17)) + } + } +} + diff --git a/tests/baselines/reference/exportImportCanSubstituteConstEnumForValue(target=es5).types b/tests/baselines/reference/exportImportCanSubstituteConstEnumForValue(target=es5).types new file mode 100644 index 0000000000000..f1373fd2237e7 --- /dev/null +++ b/tests/baselines/reference/exportImportCanSubstituteConstEnumForValue(target=es5).types @@ -0,0 +1,184 @@ +//// [tests/cases/compiler/exportImportCanSubstituteConstEnumForValue.ts] //// + +=== exportImportCanSubstituteConstEnumForValue.ts === +namespace MsPortalFx.ViewModels.Dialogs { +>MsPortalFx : typeof MsPortalFx +> : ^^^^^^^^^^^^^^^^^ +>ViewModels : typeof ViewModels +> : ^^^^^^^^^^^^^^^^^ +>Dialogs : typeof Dialogs +> : ^^^^^^^^^^^^^^ + + export const enum DialogResult { +>DialogResult : DialogResult +> : ^^^^^^^^^^^^ + + Abort, +>Abort : DialogResult.Abort +> : ^^^^^^^^^^^^^^^^^^ + + Cancel, +>Cancel : DialogResult.Cancel +> : ^^^^^^^^^^^^^^^^^^^ + + Ignore, +>Ignore : DialogResult.Ignore +> : ^^^^^^^^^^^^^^^^^^^ + + No, +>No : DialogResult.No +> : ^^^^^^^^^^^^^^^ + + Ok, +>Ok : DialogResult.Ok +> : ^^^^^^^^^^^^^^^ + + Retry, +>Retry : DialogResult.Retry +> : ^^^^^^^^^^^^^^^^^^ + + Yes, +>Yes : DialogResult.Yes +> : ^^^^^^^^^^^^^^^^ + } + + export interface DialogResultCallback { + (result: MsPortalFx.ViewModels.Dialogs.DialogResult): void; +>result : DialogResult +> : ^^^^^^^^^^^^ +>MsPortalFx : any +> : ^^^ +>ViewModels : any +> : ^^^ +>Dialogs : any +> : ^^^ + } + + export function someExportedFunction() { +>someExportedFunction : () => void +> : ^^^^^^^^^^ + } + + export const enum MessageBoxButtons { +>MessageBoxButtons : MessageBoxButtons +> : ^^^^^^^^^^^^^^^^^ + + AbortRetryIgnore, +>AbortRetryIgnore : MessageBoxButtons.AbortRetryIgnore +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + OK, +>OK : MessageBoxButtons.OK +> : ^^^^^^^^^^^^^^^^^^^^ + + OKCancel, +>OKCancel : MessageBoxButtons.OKCancel +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^ + + RetryCancel, +>RetryCancel : MessageBoxButtons.RetryCancel +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + YesNo, +>YesNo : MessageBoxButtons.YesNo +> : ^^^^^^^^^^^^^^^^^^^^^^^ + + YesNoCancel, +>YesNoCancel : MessageBoxButtons.YesNoCancel +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + } +} + + +namespace MsPortalFx.ViewModels { +>MsPortalFx : typeof MsPortalFx +> : ^^^^^^^^^^^^^^^^^ +>ViewModels : typeof ViewModels +> : ^^^^^^^^^^^^^^^^^ + + /** + * For some reason javascript code is emitted for this re-exported const enum. + */ + export import ReExportedEnum = Dialogs.DialogResult; +>ReExportedEnum : typeof ReExportedEnum +> : ^^^^^^^^^^^^^^^^^^^^^ +>Dialogs : typeof Dialogs +> : ^^^^^^^^^^^^^^ +>DialogResult : ReExportedEnum +> : ^^^^^^^^^^^^^^ + + /** + * Not exported to show difference. No javascript is emmitted (as expected) + */ + import DialogButtons = Dialogs.MessageBoxButtons; +>DialogButtons : typeof DialogButtons +> : ^^^^^^^^^^^^^^^^^^^^ +>Dialogs : typeof Dialogs +> : ^^^^^^^^^^^^^^ +>MessageBoxButtons : DialogButtons +> : ^^^^^^^^^^^^^ + + /** + * Re-exporting a function type to show difference. No javascript is emmitted (as expected) + */ + export import Callback = Dialogs.DialogResultCallback; +>Callback : any +> : ^^^ +>Dialogs : typeof Dialogs +> : ^^^^^^^^^^^^^^ +>DialogResultCallback : Callback +> : ^^^^^^^^ + + export class SomeUsagesOfTheseConsts { +>SomeUsagesOfTheseConsts : SomeUsagesOfTheseConsts +> : ^^^^^^^^^^^^^^^^^^^^^^^ + + constructor() { + // these do get replaced by the const value + const value1 = ReExportedEnum.Cancel; +>value1 : ReExportedEnum.Cancel +> : ^^^^^^^^^^^^^^^^^^^^^ +>ReExportedEnum.Cancel : ReExportedEnum.Cancel +> : ^^^^^^^^^^^^^^^^^^^^^ +>ReExportedEnum : typeof ReExportedEnum +> : ^^^^^^^^^^^^^^^^^^^^^ +>Cancel : ReExportedEnum.Cancel +> : ^^^^^^^^^^^^^^^^^^^^^ + + console.log(value1); +>console.log(value1) : void +> : ^^^^ +>console.log : (...data: any[]) => void +> : ^^^^ ^^ ^^^^^ +>console : Console +> : ^^^^^^^ +>log : (...data: any[]) => void +> : ^^^^ ^^ ^^^^^ +>value1 : ReExportedEnum.Cancel +> : ^^^^^^^^^^^^^^^^^^^^^ + + const value2 = DialogButtons.OKCancel; +>value2 : DialogButtons.OKCancel +> : ^^^^^^^^^^^^^^^^^^^^^^ +>DialogButtons.OKCancel : DialogButtons.OKCancel +> : ^^^^^^^^^^^^^^^^^^^^^^ +>DialogButtons : typeof DialogButtons +> : ^^^^^^^^^^^^^^^^^^^^ +>OKCancel : DialogButtons.OKCancel +> : ^^^^^^^^^^^^^^^^^^^^^^ + + console.log(value2); +>console.log(value2) : void +> : ^^^^ +>console.log : (...data: any[]) => void +> : ^^^^ ^^ ^^^^^ +>console : Console +> : ^^^^^^^ +>log : (...data: any[]) => void +> : ^^^^ ^^ ^^^^^ +>value2 : DialogButtons.OKCancel +> : ^^^^^^^^^^^^^^^^^^^^^^ + } + } +} + diff --git a/tests/baselines/reference/exportStar.errors.txt b/tests/baselines/reference/exportStar(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/exportStar.errors.txt rename to tests/baselines/reference/exportStar(target=es2015).errors.txt diff --git a/tests/baselines/reference/exportStar(target=es2015).js b/tests/baselines/reference/exportStar(target=es2015).js new file mode 100644 index 0000000000000..f1467d3ce7de2 --- /dev/null +++ b/tests/baselines/reference/exportStar(target=es2015).js @@ -0,0 +1,114 @@ +//// [tests/cases/conformance/es6/modules/exportStar.ts] //// + +//// [t1.ts] +export var x = 1; +export var y = 2; + +//// [t2.ts] +export default "hello"; +export function foo() { } + +//// [t3.ts] +var x = "x"; +var y = "y"; +var z = "z"; +export { x, y, z }; + +//// [t4.ts] +export * from "./t1"; +export * from "./t2"; +export * from "./t3"; + +//// [main.ts] +import hello, { x, y, z, foo } from "./t4"; +hello; +x; +y; +z; +foo; + + +//// [t1.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.y = exports.x = void 0; +exports.x = 1; +exports.y = 2; +//// [t2.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.foo = foo; +exports.default = "hello"; +function foo() { } +//// [t3.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.z = exports.y = exports.x = void 0; +var x = "x"; +exports.x = x; +var y = "y"; +exports.y = y; +var z = "z"; +exports.z = z; +//// [t4.js] +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(require("./t1"), exports); +__exportStar(require("./t2"), exports); +__exportStar(require("./t3"), exports); +//// [main.js] +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +const t4_1 = __importStar(require("./t4")); +t4_1.default; +t4_1.x; +t4_1.y; +t4_1.z; +t4_1.foo; diff --git a/tests/baselines/reference/exportStar.symbols b/tests/baselines/reference/exportStar(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/exportStar.symbols rename to tests/baselines/reference/exportStar(target=es2015).symbols diff --git a/tests/baselines/reference/exportStar.types b/tests/baselines/reference/exportStar(target=es2015).types similarity index 100% rename from tests/baselines/reference/exportStar.types rename to tests/baselines/reference/exportStar(target=es2015).types diff --git a/tests/baselines/reference/exportStar(target=es5).errors.txt b/tests/baselines/reference/exportStar(target=es5).errors.txt new file mode 100644 index 0000000000000..4402aed8a528c --- /dev/null +++ b/tests/baselines/reference/exportStar(target=es5).errors.txt @@ -0,0 +1,39 @@ +main.ts(1,8): error TS1192: Module '"t4"' has no default export. +t4.ts(3,1): error TS2308: Module "./t1" has already exported a member named 'x'. Consider explicitly re-exporting to resolve the ambiguity. +t4.ts(3,1): error TS2308: Module "./t1" has already exported a member named 'y'. Consider explicitly re-exporting to resolve the ambiguity. + + +==== t1.ts (0 errors) ==== + export var x = 1; + export var y = 2; + +==== t2.ts (0 errors) ==== + export default "hello"; + export function foo() { } + +==== t3.ts (0 errors) ==== + var x = "x"; + var y = "y"; + var z = "z"; + export { x, y, z }; + +==== t4.ts (2 errors) ==== + export * from "./t1"; + export * from "./t2"; + export * from "./t3"; + ~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2308: Module "./t1" has already exported a member named 'x'. Consider explicitly re-exporting to resolve the ambiguity. + ~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2308: Module "./t1" has already exported a member named 'y'. Consider explicitly re-exporting to resolve the ambiguity. + +==== main.ts (1 errors) ==== + import hello, { x, y, z, foo } from "./t4"; + ~~~~~ +!!! error TS1192: Module '"t4"' has no default export. +!!! related TS1195 t4.ts:2:1: 'export *' does not re-export a default. + hello; + x; + y; + z; + foo; + \ No newline at end of file diff --git a/tests/baselines/reference/exportStar.js b/tests/baselines/reference/exportStar(target=es5).js similarity index 100% rename from tests/baselines/reference/exportStar.js rename to tests/baselines/reference/exportStar(target=es5).js diff --git a/tests/baselines/reference/exportStar(target=es5).symbols b/tests/baselines/reference/exportStar(target=es5).symbols new file mode 100644 index 0000000000000..f86c94a81c7d5 --- /dev/null +++ b/tests/baselines/reference/exportStar(target=es5).symbols @@ -0,0 +1,58 @@ +//// [tests/cases/conformance/es6/modules/exportStar.ts] //// + +=== t1.ts === +export var x = 1; +>x : Symbol(x, Decl(t1.ts, 0, 10)) + +export var y = 2; +>y : Symbol(y, Decl(t1.ts, 1, 10)) + +=== t2.ts === +export default "hello"; +export function foo() { } +>foo : Symbol(foo, Decl(t2.ts, 0, 23)) + +=== t3.ts === +var x = "x"; +>x : Symbol(x, Decl(t3.ts, 0, 3)) + +var y = "y"; +>y : Symbol(y, Decl(t3.ts, 1, 3)) + +var z = "z"; +>z : Symbol(z, Decl(t3.ts, 2, 3)) + +export { x, y, z }; +>x : Symbol(x, Decl(t3.ts, 3, 8)) +>y : Symbol(y, Decl(t3.ts, 3, 11)) +>z : Symbol(z, Decl(t3.ts, 3, 14)) + +=== t4.ts === + +export * from "./t1"; +export * from "./t2"; +export * from "./t3"; + +=== main.ts === +import hello, { x, y, z, foo } from "./t4"; +>hello : Symbol(hello, Decl(main.ts, 0, 6)) +>x : Symbol(x, Decl(main.ts, 0, 15)) +>y : Symbol(y, Decl(main.ts, 0, 18)) +>z : Symbol(z, Decl(main.ts, 0, 21)) +>foo : Symbol(foo, Decl(main.ts, 0, 24)) + +hello; +>hello : Symbol(hello, Decl(main.ts, 0, 6)) + +x; +>x : Symbol(x, Decl(main.ts, 0, 15)) + +y; +>y : Symbol(y, Decl(main.ts, 0, 18)) + +z; +>z : Symbol(z, Decl(main.ts, 0, 21)) + +foo; +>foo : Symbol(foo, Decl(main.ts, 0, 24)) + diff --git a/tests/baselines/reference/exportStar(target=es5).types b/tests/baselines/reference/exportStar(target=es5).types new file mode 100644 index 0000000000000..32f884839d34e --- /dev/null +++ b/tests/baselines/reference/exportStar(target=es5).types @@ -0,0 +1,87 @@ +//// [tests/cases/conformance/es6/modules/exportStar.ts] //// + +=== t1.ts === +export var x = 1; +>x : number +> : ^^^^^^ +>1 : 1 +> : ^ + +export var y = 2; +>y : number +> : ^^^^^^ +>2 : 2 +> : ^ + +=== t2.ts === +export default "hello"; +export function foo() { } +>foo : () => void +> : ^^^^^^^^^^ + +=== t3.ts === +var x = "x"; +>x : string +> : ^^^^^^ +>"x" : "x" +> : ^^^ + +var y = "y"; +>y : string +> : ^^^^^^ +>"y" : "y" +> : ^^^ + +var z = "z"; +>z : string +> : ^^^^^^ +>"z" : "z" +> : ^^^ + +export { x, y, z }; +>x : string +> : ^^^^^^ +>y : string +> : ^^^^^^ +>z : string +> : ^^^^^^ + +=== t4.ts === + +export * from "./t1"; +export * from "./t2"; +export * from "./t3"; + +=== main.ts === +import hello, { x, y, z, foo } from "./t4"; +>hello : any +> : ^^^ +>x : number +> : ^^^^^^ +>y : number +> : ^^^^^^ +>z : string +> : ^^^^^^ +>foo : () => void +> : ^^^^^^^^^^ + +hello; +>hello : any +> : ^^^ + +x; +>x : number +> : ^^^^^^ + +y; +>y : number +> : ^^^^^^ + +z; +>z : string +> : ^^^^^^ + +foo; +>foo : () => void +> : ^^^^^^^^^^ + diff --git a/tests/baselines/reference/exportStar-amd.errors.txt b/tests/baselines/reference/exportStar-amd(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/exportStar-amd.errors.txt rename to tests/baselines/reference/exportStar-amd(target=es2015).errors.txt diff --git a/tests/baselines/reference/exportStar-amd.js b/tests/baselines/reference/exportStar-amd(target=es2015).js similarity index 100% rename from tests/baselines/reference/exportStar-amd.js rename to tests/baselines/reference/exportStar-amd(target=es2015).js diff --git a/tests/baselines/reference/exportStar-amd.symbols b/tests/baselines/reference/exportStar-amd(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/exportStar-amd.symbols rename to tests/baselines/reference/exportStar-amd(target=es2015).symbols diff --git a/tests/baselines/reference/exportStar-amd.types b/tests/baselines/reference/exportStar-amd(target=es2015).types similarity index 100% rename from tests/baselines/reference/exportStar-amd.types rename to tests/baselines/reference/exportStar-amd(target=es2015).types diff --git a/tests/baselines/reference/exportStar-amd(target=es5).errors.txt b/tests/baselines/reference/exportStar-amd(target=es5).errors.txt new file mode 100644 index 0000000000000..8748c15b93066 --- /dev/null +++ b/tests/baselines/reference/exportStar-amd(target=es5).errors.txt @@ -0,0 +1,41 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +main.ts(1,8): error TS1192: Module '"t4"' has no default export. +t4.ts(3,1): error TS2308: Module "./t1" has already exported a member named 'x'. Consider explicitly re-exporting to resolve the ambiguity. +t4.ts(3,1): error TS2308: Module "./t1" has already exported a member named 'y'. Consider explicitly re-exporting to resolve the ambiguity. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== t1.ts (0 errors) ==== + export var x = 1; + export var y = 2; + +==== t2.ts (0 errors) ==== + export default "hello"; + export function foo() { } + +==== t3.ts (0 errors) ==== + var x = "x"; + var y = "y"; + var z = "z"; + export { x, y, z }; + +==== t4.ts (2 errors) ==== + export * from "./t1"; + export * from "./t2"; + export * from "./t3"; + ~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2308: Module "./t1" has already exported a member named 'x'. Consider explicitly re-exporting to resolve the ambiguity. + ~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2308: Module "./t1" has already exported a member named 'y'. Consider explicitly re-exporting to resolve the ambiguity. + +==== main.ts (1 errors) ==== + import hello, { x, y, z, foo } from "./t4"; + ~~~~~ +!!! error TS1192: Module '"t4"' has no default export. +!!! related TS1195 t4.ts:2:1: 'export *' does not re-export a default. + hello; + x; + y; + z; + foo; + \ No newline at end of file diff --git a/tests/baselines/reference/exportStar-amd(target=es5).js b/tests/baselines/reference/exportStar-amd(target=es5).js new file mode 100644 index 0000000000000..13ddf83e2a391 --- /dev/null +++ b/tests/baselines/reference/exportStar-amd(target=es5).js @@ -0,0 +1,124 @@ +//// [tests/cases/conformance/es6/modules/exportStar-amd.ts] //// + +//// [t1.ts] +export var x = 1; +export var y = 2; + +//// [t2.ts] +export default "hello"; +export function foo() { } + +//// [t3.ts] +var x = "x"; +var y = "y"; +var z = "z"; +export { x, y, z }; + +//// [t4.ts] +export * from "./t1"; +export * from "./t2"; +export * from "./t3"; + +//// [main.ts] +import hello, { x, y, z, foo } from "./t4"; +hello; +x; +y; +z; +foo; + + +//// [t1.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = exports.x = void 0; + exports.x = 1; + exports.y = 2; +}); +//// [t2.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.foo = foo; + exports.default = "hello"; + function foo() { } +}); +//// [t3.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.z = exports.y = exports.x = void 0; + var x = "x"; + exports.x = x; + var y = "y"; + exports.y = y; + var z = "z"; + exports.z = z; +}); +//// [t4.js] +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +define(["require", "exports", "./t1", "./t2", "./t3"], function (require, exports, t1_1, t2_1, t3_1) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + __exportStar(t1_1, exports); + __exportStar(t2_1, exports); + __exportStar(t3_1, exports); +}); +//// [main.js] +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +define(["require", "exports", "./t4"], function (require, exports, t4_1) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + t4_1 = __importStar(t4_1); + t4_1.default; + t4_1.x; + t4_1.y; + t4_1.z; + t4_1.foo; +}); diff --git a/tests/baselines/reference/exportStar-amd(target=es5).symbols b/tests/baselines/reference/exportStar-amd(target=es5).symbols new file mode 100644 index 0000000000000..0c1f2e5bc8d03 --- /dev/null +++ b/tests/baselines/reference/exportStar-amd(target=es5).symbols @@ -0,0 +1,58 @@ +//// [tests/cases/conformance/es6/modules/exportStar-amd.ts] //// + +=== t1.ts === +export var x = 1; +>x : Symbol(x, Decl(t1.ts, 0, 10)) + +export var y = 2; +>y : Symbol(y, Decl(t1.ts, 1, 10)) + +=== t2.ts === +export default "hello"; +export function foo() { } +>foo : Symbol(foo, Decl(t2.ts, 0, 23)) + +=== t3.ts === +var x = "x"; +>x : Symbol(x, Decl(t3.ts, 0, 3)) + +var y = "y"; +>y : Symbol(y, Decl(t3.ts, 1, 3)) + +var z = "z"; +>z : Symbol(z, Decl(t3.ts, 2, 3)) + +export { x, y, z }; +>x : Symbol(x, Decl(t3.ts, 3, 8)) +>y : Symbol(y, Decl(t3.ts, 3, 11)) +>z : Symbol(z, Decl(t3.ts, 3, 14)) + +=== t4.ts === + +export * from "./t1"; +export * from "./t2"; +export * from "./t3"; + +=== main.ts === +import hello, { x, y, z, foo } from "./t4"; +>hello : Symbol(hello, Decl(main.ts, 0, 6)) +>x : Symbol(x, Decl(main.ts, 0, 15)) +>y : Symbol(y, Decl(main.ts, 0, 18)) +>z : Symbol(z, Decl(main.ts, 0, 21)) +>foo : Symbol(foo, Decl(main.ts, 0, 24)) + +hello; +>hello : Symbol(hello, Decl(main.ts, 0, 6)) + +x; +>x : Symbol(x, Decl(main.ts, 0, 15)) + +y; +>y : Symbol(y, Decl(main.ts, 0, 18)) + +z; +>z : Symbol(z, Decl(main.ts, 0, 21)) + +foo; +>foo : Symbol(foo, Decl(main.ts, 0, 24)) + diff --git a/tests/baselines/reference/exportStar-amd(target=es5).types b/tests/baselines/reference/exportStar-amd(target=es5).types new file mode 100644 index 0000000000000..f66db9cef545a --- /dev/null +++ b/tests/baselines/reference/exportStar-amd(target=es5).types @@ -0,0 +1,87 @@ +//// [tests/cases/conformance/es6/modules/exportStar-amd.ts] //// + +=== t1.ts === +export var x = 1; +>x : number +> : ^^^^^^ +>1 : 1 +> : ^ + +export var y = 2; +>y : number +> : ^^^^^^ +>2 : 2 +> : ^ + +=== t2.ts === +export default "hello"; +export function foo() { } +>foo : () => void +> : ^^^^^^^^^^ + +=== t3.ts === +var x = "x"; +>x : string +> : ^^^^^^ +>"x" : "x" +> : ^^^ + +var y = "y"; +>y : string +> : ^^^^^^ +>"y" : "y" +> : ^^^ + +var z = "z"; +>z : string +> : ^^^^^^ +>"z" : "z" +> : ^^^ + +export { x, y, z }; +>x : string +> : ^^^^^^ +>y : string +> : ^^^^^^ +>z : string +> : ^^^^^^ + +=== t4.ts === + +export * from "./t1"; +export * from "./t2"; +export * from "./t3"; + +=== main.ts === +import hello, { x, y, z, foo } from "./t4"; +>hello : any +> : ^^^ +>x : number +> : ^^^^^^ +>y : number +> : ^^^^^^ +>z : string +> : ^^^^^^ +>foo : () => void +> : ^^^^^^^^^^ + +hello; +>hello : any +> : ^^^ + +x; +>x : number +> : ^^^^^^ + +y; +>y : number +> : ^^^^^^ + +z; +>z : string +> : ^^^^^^ + +foo; +>foo : () => void +> : ^^^^^^^^^^ + diff --git a/tests/baselines/reference/exportStarFromEmptyModule.errors.txt b/tests/baselines/reference/exportStarFromEmptyModule(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/exportStarFromEmptyModule.errors.txt rename to tests/baselines/reference/exportStarFromEmptyModule(target=es2015).errors.txt diff --git a/tests/baselines/reference/exportStarFromEmptyModule(target=es2015).js b/tests/baselines/reference/exportStarFromEmptyModule(target=es2015).js new file mode 100644 index 0000000000000..8912cb90e7f8e --- /dev/null +++ b/tests/baselines/reference/exportStarFromEmptyModule(target=es2015).js @@ -0,0 +1,111 @@ +//// [tests/cases/compiler/exportStarFromEmptyModule.ts] //// + +//// [exportStarFromEmptyModule_module1.ts] +export class A { + static r; +} + +//// [exportStarFromEmptyModule_module2.ts] +// empty + +//// [exportStarFromEmptyModule_module3.ts] +export * from "./exportStarFromEmptyModule_module2"; +export * from "./exportStarFromEmptyModule_module1"; + +export class A { + static q; +} + +//// [exportStarFromEmptyModule_module4.ts] +import * as X from "./exportStarFromEmptyModule_module3"; +var s: X.A; +X.A.q; +X.A.r; // Error + +//// [exportStarFromEmptyModule_module1.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.A = void 0; +class A { +} +exports.A = A; +//// [exportStarFromEmptyModule_module2.js] +// empty +//// [exportStarFromEmptyModule_module3.js] +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.A = void 0; +__exportStar(require("./exportStarFromEmptyModule_module2"), exports); +__exportStar(require("./exportStarFromEmptyModule_module1"), exports); +class A { +} +exports.A = A; +//// [exportStarFromEmptyModule_module4.js] +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +const X = __importStar(require("./exportStarFromEmptyModule_module3")); +var s; +X.A.q; +X.A.r; // Error + + +//// [exportStarFromEmptyModule_module1.d.ts] +export declare class A { + static r: any; +} +//// [exportStarFromEmptyModule_module2.d.ts] +//// [exportStarFromEmptyModule_module3.d.ts] +export * from "./exportStarFromEmptyModule_module2"; +export * from "./exportStarFromEmptyModule_module1"; +export declare class A { + static q: any; +} +//// [exportStarFromEmptyModule_module4.d.ts] +export {}; diff --git a/tests/baselines/reference/exportStarFromEmptyModule.symbols b/tests/baselines/reference/exportStarFromEmptyModule(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/exportStarFromEmptyModule.symbols rename to tests/baselines/reference/exportStarFromEmptyModule(target=es2015).symbols diff --git a/tests/baselines/reference/exportStarFromEmptyModule.types b/tests/baselines/reference/exportStarFromEmptyModule(target=es2015).types similarity index 100% rename from tests/baselines/reference/exportStarFromEmptyModule.types rename to tests/baselines/reference/exportStarFromEmptyModule(target=es2015).types diff --git a/tests/baselines/reference/exportStarFromEmptyModule(target=es5).errors.txt b/tests/baselines/reference/exportStarFromEmptyModule(target=es5).errors.txt new file mode 100644 index 0000000000000..e14ded13eaa9c --- /dev/null +++ b/tests/baselines/reference/exportStarFromEmptyModule(target=es5).errors.txt @@ -0,0 +1,29 @@ +exportStarFromEmptyModule_module3.ts(1,15): error TS2306: File 'exportStarFromEmptyModule_module2.ts' is not a module. +exportStarFromEmptyModule_module4.ts(4,5): error TS2339: Property 'r' does not exist on type 'typeof A'. + + +==== exportStarFromEmptyModule_module1.ts (0 errors) ==== + export class A { + static r; + } + +==== exportStarFromEmptyModule_module2.ts (0 errors) ==== + // empty + +==== exportStarFromEmptyModule_module3.ts (1 errors) ==== + export * from "./exportStarFromEmptyModule_module2"; + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2306: File 'exportStarFromEmptyModule_module2.ts' is not a module. + export * from "./exportStarFromEmptyModule_module1"; + + export class A { + static q; + } + +==== exportStarFromEmptyModule_module4.ts (1 errors) ==== + import * as X from "./exportStarFromEmptyModule_module3"; + var s: X.A; + X.A.q; + X.A.r; // Error + ~ +!!! error TS2339: Property 'r' does not exist on type 'typeof A'. \ No newline at end of file diff --git a/tests/baselines/reference/exportStarFromEmptyModule.js b/tests/baselines/reference/exportStarFromEmptyModule(target=es5).js similarity index 100% rename from tests/baselines/reference/exportStarFromEmptyModule.js rename to tests/baselines/reference/exportStarFromEmptyModule(target=es5).js diff --git a/tests/baselines/reference/exportStarFromEmptyModule(target=es5).symbols b/tests/baselines/reference/exportStarFromEmptyModule(target=es5).symbols new file mode 100644 index 0000000000000..d200c012c8768 --- /dev/null +++ b/tests/baselines/reference/exportStarFromEmptyModule(target=es5).symbols @@ -0,0 +1,46 @@ +//// [tests/cases/compiler/exportStarFromEmptyModule.ts] //// + +=== exportStarFromEmptyModule_module1.ts === +export class A { +>A : Symbol(A, Decl(exportStarFromEmptyModule_module1.ts, 0, 0)) + + static r; +>r : Symbol(A.r, Decl(exportStarFromEmptyModule_module1.ts, 0, 16)) +} + +=== exportStarFromEmptyModule_module2.ts === + +// empty + +=== exportStarFromEmptyModule_module3.ts === +export * from "./exportStarFromEmptyModule_module2"; +export * from "./exportStarFromEmptyModule_module1"; + +export class A { +>A : Symbol(A, Decl(exportStarFromEmptyModule_module3.ts, 1, 52)) + + static q; +>q : Symbol(A.q, Decl(exportStarFromEmptyModule_module3.ts, 3, 16)) +} + +=== exportStarFromEmptyModule_module4.ts === +import * as X from "./exportStarFromEmptyModule_module3"; +>X : Symbol(X, Decl(exportStarFromEmptyModule_module4.ts, 0, 6)) + +var s: X.A; +>s : Symbol(s, Decl(exportStarFromEmptyModule_module4.ts, 1, 3)) +>X : Symbol(X, Decl(exportStarFromEmptyModule_module4.ts, 0, 6)) +>A : Symbol(X.A, Decl(exportStarFromEmptyModule_module3.ts, 1, 52)) + +X.A.q; +>X.A.q : Symbol(X.A.q, Decl(exportStarFromEmptyModule_module3.ts, 3, 16)) +>X.A : Symbol(X.A, Decl(exportStarFromEmptyModule_module3.ts, 1, 52)) +>X : Symbol(X, Decl(exportStarFromEmptyModule_module4.ts, 0, 6)) +>A : Symbol(X.A, Decl(exportStarFromEmptyModule_module3.ts, 1, 52)) +>q : Symbol(X.A.q, Decl(exportStarFromEmptyModule_module3.ts, 3, 16)) + +X.A.r; // Error +>X.A : Symbol(X.A, Decl(exportStarFromEmptyModule_module3.ts, 1, 52)) +>X : Symbol(X, Decl(exportStarFromEmptyModule_module4.ts, 0, 6)) +>A : Symbol(X.A, Decl(exportStarFromEmptyModule_module3.ts, 1, 52)) + diff --git a/tests/baselines/reference/exportStarFromEmptyModule(target=es5).types b/tests/baselines/reference/exportStarFromEmptyModule(target=es5).types new file mode 100644 index 0000000000000..9940b53de92af --- /dev/null +++ b/tests/baselines/reference/exportStarFromEmptyModule(target=es5).types @@ -0,0 +1,64 @@ +//// [tests/cases/compiler/exportStarFromEmptyModule.ts] //// + +=== exportStarFromEmptyModule_module1.ts === +export class A { +>A : A +> : ^ + + static r; +>r : any +> : ^^^ +} + +=== exportStarFromEmptyModule_module2.ts === + +// empty + +=== exportStarFromEmptyModule_module3.ts === +export * from "./exportStarFromEmptyModule_module2"; +export * from "./exportStarFromEmptyModule_module1"; + +export class A { +>A : A +> : ^ + + static q; +>q : any +> : ^^^ +} + +=== exportStarFromEmptyModule_module4.ts === +import * as X from "./exportStarFromEmptyModule_module3"; +>X : typeof X +> : ^^^^^^^^ + +var s: X.A; +>s : X.A +> : ^^^ +>X : any +> : ^^^ + +X.A.q; +>X.A.q : any +> : ^^^ +>X.A : typeof X.A +> : ^^^^^^^^^^ +>X : typeof X +> : ^^^^^^^^ +>A : typeof X.A +> : ^^^^^^^^^^ +>q : any +> : ^^^ + +X.A.r; // Error +>X.A.r : any +> : ^^^ +>X.A : typeof X.A +> : ^^^^^^^^^^ +>X : typeof X +> : ^^^^^^^^ +>A : typeof X.A +> : ^^^^^^^^^^ +>r : any +> : ^^^ + diff --git a/tests/baselines/reference/exportsAndImports1-amd.errors.txt b/tests/baselines/reference/exportsAndImports1-amd(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/exportsAndImports1-amd.errors.txt rename to tests/baselines/reference/exportsAndImports1-amd(target=es2015).errors.txt diff --git a/tests/baselines/reference/exportsAndImports1-amd(target=es2015).js b/tests/baselines/reference/exportsAndImports1-amd(target=es2015).js new file mode 100644 index 0000000000000..f23adf448cada --- /dev/null +++ b/tests/baselines/reference/exportsAndImports1-amd(target=es2015).js @@ -0,0 +1,83 @@ +//// [tests/cases/conformance/es6/modules/exportsAndImports1-amd.ts] //// + +//// [t1.ts] +var v = 1; +function f() { } +class C { +} +interface I { +} +enum E { + A, B, C +} +const enum D { + A, B, C +} +namespace M { + export var x; +} +namespace N { + export interface I { + } +} +type T = number; +import a = M.x; + +export { v, f, C, I, E, D, M, N, T, a }; + +//// [t2.ts] +export { v, f, C, I, E, D, M, N, T, a } from "./t1"; + +//// [t3.ts] +import { v, f, C, I, E, D, M, N, T, a } from "./t1"; +export { v, f, C, I, E, D, M, N, T, a }; + + +//// [t1.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.a = exports.M = exports.E = exports.C = exports.v = void 0; + exports.f = f; + var v = 1; + exports.v = v; + function f() { } + class C { + } + exports.C = C; + var E; + (function (E) { + E[E["A"] = 0] = "A"; + E[E["B"] = 1] = "B"; + E[E["C"] = 2] = "C"; + })(E || (exports.E = E = {})); + var M; + (function (M) { + })(M || (exports.M = M = {})); + var a = M.x; + exports.a = a; +}); +//// [t2.js] +define(["require", "exports", "./t1"], function (require, exports, t1_1) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.a = exports.M = exports.E = exports.C = exports.f = exports.v = void 0; + Object.defineProperty(exports, "v", { enumerable: true, get: function () { return t1_1.v; } }); + Object.defineProperty(exports, "f", { enumerable: true, get: function () { return t1_1.f; } }); + Object.defineProperty(exports, "C", { enumerable: true, get: function () { return t1_1.C; } }); + Object.defineProperty(exports, "E", { enumerable: true, get: function () { return t1_1.E; } }); + Object.defineProperty(exports, "M", { enumerable: true, get: function () { return t1_1.M; } }); + Object.defineProperty(exports, "a", { enumerable: true, get: function () { return t1_1.a; } }); +}); +//// [t3.js] +define(["require", "exports", "./t1"], function (require, exports, t1_1) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.a = exports.M = exports.E = exports.C = exports.f = exports.v = void 0; + Object.defineProperty(exports, "v", { enumerable: true, get: function () { return t1_1.v; } }); + Object.defineProperty(exports, "f", { enumerable: true, get: function () { return t1_1.f; } }); + Object.defineProperty(exports, "C", { enumerable: true, get: function () { return t1_1.C; } }); + Object.defineProperty(exports, "E", { enumerable: true, get: function () { return t1_1.E; } }); + Object.defineProperty(exports, "M", { enumerable: true, get: function () { return t1_1.M; } }); + Object.defineProperty(exports, "a", { enumerable: true, get: function () { return t1_1.a; } }); +}); diff --git a/tests/baselines/reference/exportsAndImports1-amd.symbols b/tests/baselines/reference/exportsAndImports1-amd(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/exportsAndImports1-amd.symbols rename to tests/baselines/reference/exportsAndImports1-amd(target=es2015).symbols diff --git a/tests/baselines/reference/exportsAndImports1-amd.types b/tests/baselines/reference/exportsAndImports1-amd(target=es2015).types similarity index 100% rename from tests/baselines/reference/exportsAndImports1-amd.types rename to tests/baselines/reference/exportsAndImports1-amd(target=es2015).types diff --git a/tests/baselines/reference/exportsAndImports1-amd(target=es5).errors.txt b/tests/baselines/reference/exportsAndImports1-amd(target=es5).errors.txt new file mode 100644 index 0000000000000..0e8bd2772b0ce --- /dev/null +++ b/tests/baselines/reference/exportsAndImports1-amd(target=es5).errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== t1.ts (0 errors) ==== + var v = 1; + function f() { } + class C { + } + interface I { + } + enum E { + A, B, C + } + const enum D { + A, B, C + } + namespace M { + export var x; + } + namespace N { + export interface I { + } + } + type T = number; + import a = M.x; + + export { v, f, C, I, E, D, M, N, T, a }; + +==== t2.ts (0 errors) ==== + export { v, f, C, I, E, D, M, N, T, a } from "./t1"; + +==== t3.ts (0 errors) ==== + import { v, f, C, I, E, D, M, N, T, a } from "./t1"; + export { v, f, C, I, E, D, M, N, T, a }; + \ No newline at end of file diff --git a/tests/baselines/reference/exportsAndImports1-amd.js b/tests/baselines/reference/exportsAndImports1-amd(target=es5).js similarity index 100% rename from tests/baselines/reference/exportsAndImports1-amd.js rename to tests/baselines/reference/exportsAndImports1-amd(target=es5).js diff --git a/tests/baselines/reference/exportsAndImports1-amd(target=es5).symbols b/tests/baselines/reference/exportsAndImports1-amd(target=es5).symbols new file mode 100644 index 0000000000000..ef950c548bcec --- /dev/null +++ b/tests/baselines/reference/exportsAndImports1-amd(target=es5).symbols @@ -0,0 +1,102 @@ +//// [tests/cases/conformance/es6/modules/exportsAndImports1-amd.ts] //// + +=== t1.ts === +var v = 1; +>v : Symbol(v, Decl(t1.ts, 0, 3)) + +function f() { } +>f : Symbol(f, Decl(t1.ts, 0, 10)) + +class C { +>C : Symbol(C, Decl(t1.ts, 1, 16)) +} +interface I { +>I : Symbol(I, Decl(t1.ts, 3, 1)) +} +enum E { +>E : Symbol(E, Decl(t1.ts, 5, 1)) + + A, B, C +>A : Symbol(E.A, Decl(t1.ts, 6, 8)) +>B : Symbol(E.B, Decl(t1.ts, 7, 6)) +>C : Symbol(E.C, Decl(t1.ts, 7, 9)) +} +const enum D { +>D : Symbol(D, Decl(t1.ts, 8, 1)) + + A, B, C +>A : Symbol(D.A, Decl(t1.ts, 9, 14)) +>B : Symbol(D.B, Decl(t1.ts, 10, 6)) +>C : Symbol(D.C, Decl(t1.ts, 10, 9)) +} +namespace M { +>M : Symbol(M, Decl(t1.ts, 11, 1)) + + export var x; +>x : Symbol(x, Decl(t1.ts, 13, 14)) +} +namespace N { +>N : Symbol(N, Decl(t1.ts, 14, 1)) + + export interface I { +>I : Symbol(I, Decl(t1.ts, 15, 13)) + } +} +type T = number; +>T : Symbol(T, Decl(t1.ts, 18, 1)) + +import a = M.x; +>a : Symbol(a, Decl(t1.ts, 19, 16)) +>M : Symbol(M, Decl(t1.ts, 11, 1)) +>x : Symbol(a, Decl(t1.ts, 13, 14)) + +export { v, f, C, I, E, D, M, N, T, a }; +>v : Symbol(v, Decl(t1.ts, 22, 8)) +>f : Symbol(f, Decl(t1.ts, 22, 11)) +>C : Symbol(C, Decl(t1.ts, 22, 14)) +>I : Symbol(I, Decl(t1.ts, 22, 17)) +>E : Symbol(E, Decl(t1.ts, 22, 20)) +>D : Symbol(D, Decl(t1.ts, 22, 23)) +>M : Symbol(M, Decl(t1.ts, 22, 26)) +>N : Symbol(N, Decl(t1.ts, 22, 29)) +>T : Symbol(T, Decl(t1.ts, 22, 32)) +>a : Symbol(a, Decl(t1.ts, 22, 35)) + +=== t2.ts === +export { v, f, C, I, E, D, M, N, T, a } from "./t1"; +>v : Symbol(v, Decl(t2.ts, 0, 8)) +>f : Symbol(f, Decl(t2.ts, 0, 11)) +>C : Symbol(C, Decl(t2.ts, 0, 14)) +>I : Symbol(I, Decl(t2.ts, 0, 17)) +>E : Symbol(E, Decl(t2.ts, 0, 20)) +>D : Symbol(D, Decl(t2.ts, 0, 23)) +>M : Symbol(M, Decl(t2.ts, 0, 26)) +>N : Symbol(N, Decl(t2.ts, 0, 29)) +>T : Symbol(T, Decl(t2.ts, 0, 32)) +>a : Symbol(a, Decl(t2.ts, 0, 35)) + +=== t3.ts === +import { v, f, C, I, E, D, M, N, T, a } from "./t1"; +>v : Symbol(v, Decl(t3.ts, 0, 8)) +>f : Symbol(f, Decl(t3.ts, 0, 11)) +>C : Symbol(C, Decl(t3.ts, 0, 14)) +>I : Symbol(I, Decl(t3.ts, 0, 17)) +>E : Symbol(E, Decl(t3.ts, 0, 20)) +>D : Symbol(D, Decl(t3.ts, 0, 23)) +>M : Symbol(M, Decl(t3.ts, 0, 26)) +>N : Symbol(N, Decl(t3.ts, 0, 29)) +>T : Symbol(T, Decl(t3.ts, 0, 32)) +>a : Symbol(a, Decl(t3.ts, 0, 35)) + +export { v, f, C, I, E, D, M, N, T, a }; +>v : Symbol(v, Decl(t3.ts, 1, 8)) +>f : Symbol(f, Decl(t3.ts, 1, 11)) +>C : Symbol(C, Decl(t3.ts, 1, 14)) +>I : Symbol(I, Decl(t3.ts, 1, 17)) +>E : Symbol(E, Decl(t3.ts, 1, 20)) +>D : Symbol(D, Decl(t3.ts, 1, 23)) +>M : Symbol(M, Decl(t3.ts, 1, 26)) +>N : Symbol(N, Decl(t3.ts, 1, 29)) +>T : Symbol(T, Decl(t3.ts, 1, 32)) +>a : Symbol(a, Decl(t3.ts, 1, 35)) + diff --git a/tests/baselines/reference/exportsAndImports1-amd(target=es5).types b/tests/baselines/reference/exportsAndImports1-amd(target=es5).types new file mode 100644 index 0000000000000..39fb5dd6daa39 --- /dev/null +++ b/tests/baselines/reference/exportsAndImports1-amd(target=es5).types @@ -0,0 +1,157 @@ +//// [tests/cases/conformance/es6/modules/exportsAndImports1-amd.ts] //// + +=== t1.ts === +var v = 1; +>v : number +> : ^^^^^^ +>1 : 1 +> : ^ + +function f() { } +>f : () => void +> : ^^^^^^^^^^ + +class C { +>C : C +> : ^ +} +interface I { +} +enum E { +>E : E +> : ^ + + A, B, C +>A : E.A +> : ^^^ +>B : E.B +> : ^^^ +>C : E.C +> : ^^^ +} +const enum D { +>D : D +> : ^ + + A, B, C +>A : D.A +> : ^^^ +>B : D.B +> : ^^^ +>C : D.C +> : ^^^ +} +namespace M { +>M : typeof M +> : ^^^^^^^^ + + export var x; +>x : any +> : ^^^ +} +namespace N { + export interface I { + } +} +type T = number; +>T : number +> : ^^^^^^ + +import a = M.x; +>a : any +> : ^^^ +>M : typeof M +> : ^^^^^^^^ +>x : any +> : ^^^ + +export { v, f, C, I, E, D, M, N, T, a }; +>v : number +> : ^^^^^^ +>f : () => void +> : ^^^^^^^^^^ +>C : typeof C +> : ^^^^^^^^ +>I : any +> : ^^^ +>E : typeof E +> : ^^^^^^^^ +>D : typeof D +> : ^^^^^^^^ +>M : typeof M +> : ^^^^^^^^ +>N : any +> : ^^^ +>T : any +> : ^^^ +>a : any +> : ^^^ + +=== t2.ts === +export { v, f, C, I, E, D, M, N, T, a } from "./t1"; +>v : number +> : ^^^^^^ +>f : () => void +> : ^^^^^^^^^^ +>C : typeof import("t1").C +> : ^^^^^^^^^^^^^^^^^^^^^ +>I : any +> : ^^^ +>E : typeof import("t1").E +> : ^^^^^^^^^^^^^^^^^^^^^ +>D : typeof import("t1").D +> : ^^^^^^^^^^^^^^^^^^^^^ +>M : typeof import("t1").M +> : ^^^^^^^^^^^^^^^^^^^^^ +>N : any +> : ^^^ +>T : any +> : ^^^ +>a : any +> : ^^^ + +=== t3.ts === +import { v, f, C, I, E, D, M, N, T, a } from "./t1"; +>v : number +> : ^^^^^^ +>f : () => void +> : ^^^^^^^^^^ +>C : typeof C +> : ^^^^^^^^ +>I : any +> : ^^^ +>E : typeof E +> : ^^^^^^^^ +>D : typeof D +> : ^^^^^^^^ +>M : typeof M +> : ^^^^^^^^ +>N : any +> : ^^^ +>T : any +> : ^^^ +>a : any +> : ^^^ + +export { v, f, C, I, E, D, M, N, T, a }; +>v : number +> : ^^^^^^ +>f : () => void +> : ^^^^^^^^^^ +>C : typeof C +> : ^^^^^^^^ +>I : any +> : ^^^ +>E : typeof E +> : ^^^^^^^^ +>D : typeof D +> : ^^^^^^^^ +>M : typeof M +> : ^^^^^^^^ +>N : any +> : ^^^ +>T : any +> : ^^^ +>a : any +> : ^^^ + diff --git a/tests/baselines/reference/exportsAndImports2-amd.errors.txt b/tests/baselines/reference/exportsAndImports2-amd(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/exportsAndImports2-amd.errors.txt rename to tests/baselines/reference/exportsAndImports2-amd(target=es2015).errors.txt diff --git a/tests/baselines/reference/exportsAndImports2-amd.js b/tests/baselines/reference/exportsAndImports2-amd(target=es2015).js similarity index 100% rename from tests/baselines/reference/exportsAndImports2-amd.js rename to tests/baselines/reference/exportsAndImports2-amd(target=es2015).js diff --git a/tests/baselines/reference/exportsAndImports2-amd.symbols b/tests/baselines/reference/exportsAndImports2-amd(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/exportsAndImports2-amd.symbols rename to tests/baselines/reference/exportsAndImports2-amd(target=es2015).symbols diff --git a/tests/baselines/reference/exportsAndImports2-amd.types b/tests/baselines/reference/exportsAndImports2-amd(target=es2015).types similarity index 100% rename from tests/baselines/reference/exportsAndImports2-amd.types rename to tests/baselines/reference/exportsAndImports2-amd(target=es2015).types diff --git a/tests/baselines/reference/exportsAndImports2-amd(target=es5).errors.txt b/tests/baselines/reference/exportsAndImports2-amd(target=es5).errors.txt new file mode 100644 index 0000000000000..63063504aa904 --- /dev/null +++ b/tests/baselines/reference/exportsAndImports2-amd(target=es5).errors.txt @@ -0,0 +1,15 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== t1.ts (0 errors) ==== + export var x = "x"; + export var y = "y"; + +==== t2.ts (0 errors) ==== + export { x as y, y as x } from "./t1"; + +==== t3.ts (0 errors) ==== + import { x, y } from "./t1"; + export { x as y, y as x }; + \ No newline at end of file diff --git a/tests/baselines/reference/exportsAndImports2-amd(target=es5).js b/tests/baselines/reference/exportsAndImports2-amd(target=es5).js new file mode 100644 index 0000000000000..fa22c2302dbad --- /dev/null +++ b/tests/baselines/reference/exportsAndImports2-amd(target=es5).js @@ -0,0 +1,38 @@ +//// [tests/cases/conformance/es6/modules/exportsAndImports2-amd.ts] //// + +//// [t1.ts] +export var x = "x"; +export var y = "y"; + +//// [t2.ts] +export { x as y, y as x } from "./t1"; + +//// [t3.ts] +import { x, y } from "./t1"; +export { x as y, y as x }; + + +//// [t1.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = exports.x = void 0; + exports.x = "x"; + exports.y = "y"; +}); +//// [t2.js] +define(["require", "exports", "./t1"], function (require, exports, t1_1) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = exports.y = void 0; + Object.defineProperty(exports, "y", { enumerable: true, get: function () { return t1_1.x; } }); + Object.defineProperty(exports, "x", { enumerable: true, get: function () { return t1_1.y; } }); +}); +//// [t3.js] +define(["require", "exports", "./t1"], function (require, exports, t1_1) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = exports.y = void 0; + Object.defineProperty(exports, "y", { enumerable: true, get: function () { return t1_1.x; } }); + Object.defineProperty(exports, "x", { enumerable: true, get: function () { return t1_1.y; } }); +}); diff --git a/tests/baselines/reference/exportsAndImports2-amd(target=es5).symbols b/tests/baselines/reference/exportsAndImports2-amd(target=es5).symbols new file mode 100644 index 0000000000000..46c29c8449ccd --- /dev/null +++ b/tests/baselines/reference/exportsAndImports2-amd(target=es5).symbols @@ -0,0 +1,27 @@ +//// [tests/cases/conformance/es6/modules/exportsAndImports2-amd.ts] //// + +=== t1.ts === +export var x = "x"; +>x : Symbol(x, Decl(t1.ts, 0, 10)) + +export var y = "y"; +>y : Symbol(y, Decl(t1.ts, 1, 10)) + +=== t2.ts === +export { x as y, y as x } from "./t1"; +>x : Symbol(x, Decl(t1.ts, 0, 10)) +>y : Symbol(y, Decl(t2.ts, 0, 8)) +>y : Symbol(y, Decl(t1.ts, 1, 10)) +>x : Symbol(x, Decl(t2.ts, 0, 16)) + +=== t3.ts === +import { x, y } from "./t1"; +>x : Symbol(x, Decl(t3.ts, 0, 8)) +>y : Symbol(y, Decl(t3.ts, 0, 11)) + +export { x as y, y as x }; +>x : Symbol(x, Decl(t3.ts, 0, 8)) +>y : Symbol(y, Decl(t3.ts, 1, 8)) +>y : Symbol(y, Decl(t3.ts, 0, 11)) +>x : Symbol(x, Decl(t3.ts, 1, 16)) + diff --git a/tests/baselines/reference/exportsAndImports2-amd(target=es5).types b/tests/baselines/reference/exportsAndImports2-amd(target=es5).types new file mode 100644 index 0000000000000..958fd99144e23 --- /dev/null +++ b/tests/baselines/reference/exportsAndImports2-amd(target=es5).types @@ -0,0 +1,43 @@ +//// [tests/cases/conformance/es6/modules/exportsAndImports2-amd.ts] //// + +=== t1.ts === +export var x = "x"; +>x : string +> : ^^^^^^ +>"x" : "x" +> : ^^^ + +export var y = "y"; +>y : string +> : ^^^^^^ +>"y" : "y" +> : ^^^ + +=== t2.ts === +export { x as y, y as x } from "./t1"; +>x : string +> : ^^^^^^ +>y : string +> : ^^^^^^ +>y : string +> : ^^^^^^ +>x : string +> : ^^^^^^ + +=== t3.ts === +import { x, y } from "./t1"; +>x : string +> : ^^^^^^ +>y : string +> : ^^^^^^ + +export { x as y, y as x }; +>x : string +> : ^^^^^^ +>y : string +> : ^^^^^^ +>y : string +> : ^^^^^^ +>x : string +> : ^^^^^^ + diff --git a/tests/baselines/reference/exportsAndImports3-amd.errors.txt b/tests/baselines/reference/exportsAndImports3-amd(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/exportsAndImports3-amd.errors.txt rename to tests/baselines/reference/exportsAndImports3-amd(target=es2015).errors.txt diff --git a/tests/baselines/reference/exportsAndImports3-amd(target=es2015).js b/tests/baselines/reference/exportsAndImports3-amd(target=es2015).js new file mode 100644 index 0000000000000..2d1fbbccfd1ca --- /dev/null +++ b/tests/baselines/reference/exportsAndImports3-amd(target=es2015).js @@ -0,0 +1,85 @@ +//// [tests/cases/conformance/es6/modules/exportsAndImports3-amd.ts] //// + +//// [t1.ts] +export var v = 1; +export function f() { } +export class C { +} +export interface I { +} +export enum E { + A, B, C +} +export const enum D { + A, B, C +} +export namespace M { + export var x; +} +export namespace N { + export interface I { + } +} +export type T = number; +export import a = M.x; + +export { v as v1, f as f1, C as C1, I as I1, E as E1, D as D1, M as M1, N as N1, T as T1, a as a1 }; + +//// [t2.ts] +export { v1 as v, f1 as f, C1 as C, I1 as I, E1 as E, D1 as D, M1 as M, N1 as N, T1 as T, a1 as a } from "./t1"; + +//// [t3.ts] +import { v1 as v, f1 as f, C1 as C, I1 as I, E1 as E, D1 as D, M1 as M, N1 as N, T1 as T, a1 as a } from "./t1"; +export { v, f, C, I, E, D, M, N, T, a }; + + +//// [t1.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.a1 = exports.M1 = exports.E1 = exports.C1 = exports.v1 = exports.a = exports.M = exports.E = exports.C = exports.v = void 0; + exports.f = f; + exports.f1 = f; + exports.v = 1; + exports.v1 = exports.v; + function f() { } + class C { + } + exports.C = C; + exports.C1 = C; + var E; + (function (E) { + E[E["A"] = 0] = "A"; + E[E["B"] = 1] = "B"; + E[E["C"] = 2] = "C"; + })(E || (exports.E1 = exports.E = E = {})); + var M; + (function (M) { + })(M || (exports.M1 = exports.M = M = {})); + exports.a = M.x; + exports.a1 = exports.a; +}); +//// [t2.js] +define(["require", "exports", "./t1"], function (require, exports, t1_1) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.a = exports.M = exports.E = exports.C = exports.f = exports.v = void 0; + Object.defineProperty(exports, "v", { enumerable: true, get: function () { return t1_1.v1; } }); + Object.defineProperty(exports, "f", { enumerable: true, get: function () { return t1_1.f1; } }); + Object.defineProperty(exports, "C", { enumerable: true, get: function () { return t1_1.C1; } }); + Object.defineProperty(exports, "E", { enumerable: true, get: function () { return t1_1.E1; } }); + Object.defineProperty(exports, "M", { enumerable: true, get: function () { return t1_1.M1; } }); + Object.defineProperty(exports, "a", { enumerable: true, get: function () { return t1_1.a1; } }); +}); +//// [t3.js] +define(["require", "exports", "./t1"], function (require, exports, t1_1) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.a = exports.M = exports.E = exports.C = exports.f = exports.v = void 0; + Object.defineProperty(exports, "v", { enumerable: true, get: function () { return t1_1.v1; } }); + Object.defineProperty(exports, "f", { enumerable: true, get: function () { return t1_1.f1; } }); + Object.defineProperty(exports, "C", { enumerable: true, get: function () { return t1_1.C1; } }); + Object.defineProperty(exports, "E", { enumerable: true, get: function () { return t1_1.E1; } }); + Object.defineProperty(exports, "M", { enumerable: true, get: function () { return t1_1.M1; } }); + Object.defineProperty(exports, "a", { enumerable: true, get: function () { return t1_1.a1; } }); +}); diff --git a/tests/baselines/reference/exportsAndImports3-amd.symbols b/tests/baselines/reference/exportsAndImports3-amd(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/exportsAndImports3-amd.symbols rename to tests/baselines/reference/exportsAndImports3-amd(target=es2015).symbols diff --git a/tests/baselines/reference/exportsAndImports3-amd.types b/tests/baselines/reference/exportsAndImports3-amd(target=es2015).types similarity index 100% rename from tests/baselines/reference/exportsAndImports3-amd.types rename to tests/baselines/reference/exportsAndImports3-amd(target=es2015).types diff --git a/tests/baselines/reference/exportsAndImports3-amd(target=es5).errors.txt b/tests/baselines/reference/exportsAndImports3-amd(target=es5).errors.txt new file mode 100644 index 0000000000000..524d3ac67f62d --- /dev/null +++ b/tests/baselines/reference/exportsAndImports3-amd(target=es5).errors.txt @@ -0,0 +1,36 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== t1.ts (0 errors) ==== + export var v = 1; + export function f() { } + export class C { + } + export interface I { + } + export enum E { + A, B, C + } + export const enum D { + A, B, C + } + export namespace M { + export var x; + } + export namespace N { + export interface I { + } + } + export type T = number; + export import a = M.x; + + export { v as v1, f as f1, C as C1, I as I1, E as E1, D as D1, M as M1, N as N1, T as T1, a as a1 }; + +==== t2.ts (0 errors) ==== + export { v1 as v, f1 as f, C1 as C, I1 as I, E1 as E, D1 as D, M1 as M, N1 as N, T1 as T, a1 as a } from "./t1"; + +==== t3.ts (0 errors) ==== + import { v1 as v, f1 as f, C1 as C, I1 as I, E1 as E, D1 as D, M1 as M, N1 as N, T1 as T, a1 as a } from "./t1"; + export { v, f, C, I, E, D, M, N, T, a }; + \ No newline at end of file diff --git a/tests/baselines/reference/exportsAndImports3-amd.js b/tests/baselines/reference/exportsAndImports3-amd(target=es5).js similarity index 100% rename from tests/baselines/reference/exportsAndImports3-amd.js rename to tests/baselines/reference/exportsAndImports3-amd(target=es5).js diff --git a/tests/baselines/reference/exportsAndImports3-amd(target=es5).symbols b/tests/baselines/reference/exportsAndImports3-amd(target=es5).symbols new file mode 100644 index 0000000000000..8f085ce0a22f6 --- /dev/null +++ b/tests/baselines/reference/exportsAndImports3-amd(target=es5).symbols @@ -0,0 +1,132 @@ +//// [tests/cases/conformance/es6/modules/exportsAndImports3-amd.ts] //// + +=== t1.ts === +export var v = 1; +>v : Symbol(v, Decl(t1.ts, 0, 10)) + +export function f() { } +>f : Symbol(f, Decl(t1.ts, 0, 17)) + +export class C { +>C : Symbol(C, Decl(t1.ts, 1, 23)) +} +export interface I { +>I : Symbol(I, Decl(t1.ts, 3, 1)) +} +export enum E { +>E : Symbol(E, Decl(t1.ts, 5, 1)) + + A, B, C +>A : Symbol(E.A, Decl(t1.ts, 6, 15)) +>B : Symbol(E.B, Decl(t1.ts, 7, 6)) +>C : Symbol(E.C, Decl(t1.ts, 7, 9)) +} +export const enum D { +>D : Symbol(D, Decl(t1.ts, 8, 1)) + + A, B, C +>A : Symbol(D.A, Decl(t1.ts, 9, 21)) +>B : Symbol(D.B, Decl(t1.ts, 10, 6)) +>C : Symbol(D.C, Decl(t1.ts, 10, 9)) +} +export namespace M { +>M : Symbol(M, Decl(t1.ts, 11, 1)) + + export var x; +>x : Symbol(x, Decl(t1.ts, 13, 14)) +} +export namespace N { +>N : Symbol(N, Decl(t1.ts, 14, 1)) + + export interface I { +>I : Symbol(I, Decl(t1.ts, 15, 20)) + } +} +export type T = number; +>T : Symbol(T, Decl(t1.ts, 18, 1)) + +export import a = M.x; +>a : Symbol(a, Decl(t1.ts, 19, 23)) +>M : Symbol(M, Decl(t1.ts, 11, 1)) +>x : Symbol(a, Decl(t1.ts, 13, 14)) + +export { v as v1, f as f1, C as C1, I as I1, E as E1, D as D1, M as M1, N as N1, T as T1, a as a1 }; +>v : Symbol(v, Decl(t1.ts, 0, 10)) +>v1 : Symbol(v1, Decl(t1.ts, 22, 8)) +>f : Symbol(f, Decl(t1.ts, 0, 17)) +>f1 : Symbol(f1, Decl(t1.ts, 22, 17)) +>C : Symbol(C, Decl(t1.ts, 1, 23)) +>C1 : Symbol(C1, Decl(t1.ts, 22, 26)) +>I : Symbol(I, Decl(t1.ts, 3, 1)) +>I1 : Symbol(I1, Decl(t1.ts, 22, 35)) +>E : Symbol(E, Decl(t1.ts, 5, 1)) +>E1 : Symbol(E1, Decl(t1.ts, 22, 44)) +>D : Symbol(D, Decl(t1.ts, 8, 1)) +>D1 : Symbol(D1, Decl(t1.ts, 22, 53)) +>M : Symbol(M, Decl(t1.ts, 11, 1)) +>M1 : Symbol(M1, Decl(t1.ts, 22, 62)) +>N : Symbol(N, Decl(t1.ts, 14, 1)) +>N1 : Symbol(N1, Decl(t1.ts, 22, 71)) +>T : Symbol(T, Decl(t1.ts, 18, 1)) +>T1 : Symbol(T1, Decl(t1.ts, 22, 80)) +>a : Symbol(a, Decl(t1.ts, 19, 23)) +>a1 : Symbol(a1, Decl(t1.ts, 22, 89)) + +=== t2.ts === +export { v1 as v, f1 as f, C1 as C, I1 as I, E1 as E, D1 as D, M1 as M, N1 as N, T1 as T, a1 as a } from "./t1"; +>v1 : Symbol(v1, Decl(t1.ts, 22, 8)) +>v : Symbol(v, Decl(t2.ts, 0, 8)) +>f1 : Symbol(f1, Decl(t1.ts, 22, 17)) +>f : Symbol(f, Decl(t2.ts, 0, 17)) +>C1 : Symbol(C1, Decl(t1.ts, 22, 26)) +>C : Symbol(C, Decl(t2.ts, 0, 26)) +>I1 : Symbol(I1, Decl(t1.ts, 22, 35)) +>I : Symbol(I, Decl(t2.ts, 0, 35)) +>E1 : Symbol(E1, Decl(t1.ts, 22, 44)) +>E : Symbol(E, Decl(t2.ts, 0, 44)) +>D1 : Symbol(D1, Decl(t1.ts, 22, 53)) +>D : Symbol(D, Decl(t2.ts, 0, 53)) +>M1 : Symbol(M1, Decl(t1.ts, 22, 62)) +>M : Symbol(M, Decl(t2.ts, 0, 62)) +>N1 : Symbol(N1, Decl(t1.ts, 22, 71)) +>N : Symbol(N, Decl(t2.ts, 0, 71)) +>T1 : Symbol(T1, Decl(t1.ts, 22, 80)) +>T : Symbol(T, Decl(t2.ts, 0, 80)) +>a1 : Symbol(a1, Decl(t1.ts, 22, 89)) +>a : Symbol(a, Decl(t2.ts, 0, 89)) + +=== t3.ts === +import { v1 as v, f1 as f, C1 as C, I1 as I, E1 as E, D1 as D, M1 as M, N1 as N, T1 as T, a1 as a } from "./t1"; +>v1 : Symbol(v1, Decl(t1.ts, 22, 8)) +>v : Symbol(v, Decl(t3.ts, 0, 8)) +>f1 : Symbol(f1, Decl(t1.ts, 22, 17)) +>f : Symbol(f, Decl(t3.ts, 0, 17)) +>C1 : Symbol(C1, Decl(t1.ts, 22, 26)) +>C : Symbol(C, Decl(t3.ts, 0, 26)) +>I1 : Symbol(I1, Decl(t1.ts, 22, 35)) +>I : Symbol(I, Decl(t3.ts, 0, 35)) +>E1 : Symbol(E1, Decl(t1.ts, 22, 44)) +>E : Symbol(E, Decl(t3.ts, 0, 44)) +>D1 : Symbol(D1, Decl(t1.ts, 22, 53)) +>D : Symbol(D, Decl(t3.ts, 0, 53)) +>M1 : Symbol(M1, Decl(t1.ts, 22, 62)) +>M : Symbol(M, Decl(t3.ts, 0, 62)) +>N1 : Symbol(N1, Decl(t1.ts, 22, 71)) +>N : Symbol(N, Decl(t3.ts, 0, 71)) +>T1 : Symbol(T1, Decl(t1.ts, 22, 80)) +>T : Symbol(T, Decl(t3.ts, 0, 80)) +>a1 : Symbol(a1, Decl(t1.ts, 22, 89)) +>a : Symbol(a, Decl(t3.ts, 0, 89)) + +export { v, f, C, I, E, D, M, N, T, a }; +>v : Symbol(v, Decl(t3.ts, 1, 8)) +>f : Symbol(f, Decl(t3.ts, 1, 11)) +>C : Symbol(C, Decl(t3.ts, 1, 14)) +>I : Symbol(I, Decl(t3.ts, 1, 17)) +>E : Symbol(E, Decl(t3.ts, 1, 20)) +>D : Symbol(D, Decl(t3.ts, 1, 23)) +>M : Symbol(M, Decl(t3.ts, 1, 26)) +>N : Symbol(N, Decl(t3.ts, 1, 29)) +>T : Symbol(T, Decl(t3.ts, 1, 32)) +>a : Symbol(a, Decl(t3.ts, 1, 35)) + diff --git a/tests/baselines/reference/exportsAndImports3-amd(target=es5).types b/tests/baselines/reference/exportsAndImports3-amd(target=es5).types new file mode 100644 index 0000000000000..2e58b968f8509 --- /dev/null +++ b/tests/baselines/reference/exportsAndImports3-amd(target=es5).types @@ -0,0 +1,217 @@ +//// [tests/cases/conformance/es6/modules/exportsAndImports3-amd.ts] //// + +=== t1.ts === +export var v = 1; +>v : number +> : ^^^^^^ +>1 : 1 +> : ^ + +export function f() { } +>f : () => void +> : ^^^^^^^^^^ + +export class C { +>C : C +> : ^ +} +export interface I { +} +export enum E { +>E : E +> : ^ + + A, B, C +>A : E.A +> : ^^^ +>B : E.B +> : ^^^ +>C : E.C +> : ^^^ +} +export const enum D { +>D : D +> : ^ + + A, B, C +>A : D.A +> : ^^^ +>B : D.B +> : ^^^ +>C : D.C +> : ^^^ +} +export namespace M { +>M : typeof M +> : ^^^^^^^^ + + export var x; +>x : any +> : ^^^ +} +export namespace N { + export interface I { + } +} +export type T = number; +>T : number +> : ^^^^^^ + +export import a = M.x; +>a : any +> : ^^^ +>M : typeof M +> : ^^^^^^^^ +>x : any +> : ^^^ + +export { v as v1, f as f1, C as C1, I as I1, E as E1, D as D1, M as M1, N as N1, T as T1, a as a1 }; +>v : number +> : ^^^^^^ +>v1 : number +> : ^^^^^^ +>f : () => void +> : ^^^^^^^^^^ +>f1 : () => void +> : ^^^^^^^^^^ +>C : typeof C +> : ^^^^^^^^ +>C1 : typeof C +> : ^^^^^^^^ +>I : any +> : ^^^ +>I1 : any +> : ^^^ +>E : typeof E +> : ^^^^^^^^ +>E1 : typeof E +> : ^^^^^^^^ +>D : typeof D +> : ^^^^^^^^ +>D1 : typeof D +> : ^^^^^^^^ +>M : typeof M +> : ^^^^^^^^ +>M1 : typeof M +> : ^^^^^^^^ +>N : any +> : ^^^ +>N1 : any +> : ^^^ +>T : any +> : ^^^ +>T1 : any +> : ^^^ +>a : any +> : ^^^ +>a1 : any +> : ^^^ + +=== t2.ts === +export { v1 as v, f1 as f, C1 as C, I1 as I, E1 as E, D1 as D, M1 as M, N1 as N, T1 as T, a1 as a } from "./t1"; +>v1 : number +> : ^^^^^^ +>v : number +> : ^^^^^^ +>f1 : () => void +> : ^^^^^^^^^^ +>f : () => void +> : ^^^^^^^^^^ +>C1 : typeof import("t1").C +> : ^^^^^^^^^^^^^^^^^^^^^ +>C : typeof import("t1").C +> : ^^^^^^^^^^^^^^^^^^^^^ +>I1 : any +> : ^^^ +>I : any +> : ^^^ +>E1 : typeof import("t1").E +> : ^^^^^^^^^^^^^^^^^^^^^ +>E : typeof import("t1").E +> : ^^^^^^^^^^^^^^^^^^^^^ +>D1 : typeof import("t1").D +> : ^^^^^^^^^^^^^^^^^^^^^ +>D : typeof import("t1").D +> : ^^^^^^^^^^^^^^^^^^^^^ +>M1 : typeof import("t1").M +> : ^^^^^^^^^^^^^^^^^^^^^ +>M : typeof import("t1").M +> : ^^^^^^^^^^^^^^^^^^^^^ +>N1 : any +> : ^^^ +>N : any +> : ^^^ +>T1 : any +> : ^^^ +>T : any +> : ^^^ +>a1 : any +> : ^^^ +>a : any +> : ^^^ + +=== t3.ts === +import { v1 as v, f1 as f, C1 as C, I1 as I, E1 as E, D1 as D, M1 as M, N1 as N, T1 as T, a1 as a } from "./t1"; +>v1 : number +> : ^^^^^^ +>v : number +> : ^^^^^^ +>f1 : () => void +> : ^^^^^^^^^^ +>f : () => void +> : ^^^^^^^^^^ +>C1 : typeof C +> : ^^^^^^^^ +>C : typeof C +> : ^^^^^^^^ +>I1 : any +> : ^^^ +>I : any +> : ^^^ +>E1 : typeof E +> : ^^^^^^^^ +>E : typeof E +> : ^^^^^^^^ +>D1 : typeof D +> : ^^^^^^^^ +>D : typeof D +> : ^^^^^^^^ +>M1 : typeof M +> : ^^^^^^^^ +>M : typeof M +> : ^^^^^^^^ +>N1 : any +> : ^^^ +>N : any +> : ^^^ +>T1 : any +> : ^^^ +>T : any +> : ^^^ +>a1 : any +> : ^^^ +>a : any +> : ^^^ + +export { v, f, C, I, E, D, M, N, T, a }; +>v : number +> : ^^^^^^ +>f : () => void +> : ^^^^^^^^^^ +>C : typeof C +> : ^^^^^^^^ +>I : any +> : ^^^ +>E : typeof E +> : ^^^^^^^^ +>D : typeof D +> : ^^^^^^^^ +>M : typeof M +> : ^^^^^^^^ +>N : any +> : ^^^ +>T : any +> : ^^^ +>a : any +> : ^^^ + diff --git a/tests/baselines/reference/exportsAndImports4(target=es2015).js b/tests/baselines/reference/exportsAndImports4(target=es2015).js new file mode 100644 index 0000000000000..ba977815e3369 --- /dev/null +++ b/tests/baselines/reference/exportsAndImports4(target=es2015).js @@ -0,0 +1,106 @@ +//// [tests/cases/conformance/es6/modules/exportsAndImports4.ts] //// + +//// [t1.ts] +export default "hello"; + +//// [t2.ts] +import a = require("./t1"); +a.default; +import b from "./t1"; +b; +import * as c from "./t1"; +c.default; +import { default as d } from "./t1"; +d; +import e1, * as e2 from "./t1"; +e1; +e2.default; +import f1, { default as f2 } from "./t1"; +f1; +f2; +import "./t1"; + +//// [t3.ts] +import a = require("./t1"); +a.default; +import b from "./t1"; +b; +import * as c from "./t1"; +c.default; +import { default as d } from "./t1"; +d; +import e1, * as e2 from "./t1"; +e1; +e2.default; +import f1, { default as f2 } from "./t1"; +f1; +f2; +export { a, b, c, d, e1, e2, f1, f2 }; + + +//// [t1.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = "hello"; +//// [t3.js] +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.f2 = exports.f1 = exports.e2 = exports.e1 = exports.d = exports.c = exports.b = exports.a = void 0; +const a = require("./t1"); +exports.a = a; +a.default; +const t1_1 = __importDefault(require("./t1")); +exports.b = t1_1.default; +t1_1.default; +const c = __importStar(require("./t1")); +exports.c = c; +c.default; +const t1_2 = __importDefault(require("./t1")); +Object.defineProperty(exports, "d", { enumerable: true, get: function () { return t1_2.default; } }); +t1_2.default; +const t1_3 = __importStar(require("./t1")), e2 = t1_3; +exports.e1 = t1_3.default; +exports.e2 = e2; +t1_3.default; +e2.default; +const t1_4 = __importDefault(require("./t1")); +exports.f1 = t1_4.default; +Object.defineProperty(exports, "f2", { enumerable: true, get: function () { return t1_4.default; } }); +t1_4.default; +t1_4.default; diff --git a/tests/baselines/reference/exportsAndImports4.symbols b/tests/baselines/reference/exportsAndImports4(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/exportsAndImports4.symbols rename to tests/baselines/reference/exportsAndImports4(target=es2015).symbols diff --git a/tests/baselines/reference/exportsAndImports4.types b/tests/baselines/reference/exportsAndImports4(target=es2015).types similarity index 100% rename from tests/baselines/reference/exportsAndImports4.types rename to tests/baselines/reference/exportsAndImports4(target=es2015).types diff --git a/tests/baselines/reference/exportsAndImports4.js b/tests/baselines/reference/exportsAndImports4(target=es5).js similarity index 100% rename from tests/baselines/reference/exportsAndImports4.js rename to tests/baselines/reference/exportsAndImports4(target=es5).js diff --git a/tests/baselines/reference/exportsAndImports4(target=es5).symbols b/tests/baselines/reference/exportsAndImports4(target=es5).symbols new file mode 100644 index 0000000000000..891051b9ab274 --- /dev/null +++ b/tests/baselines/reference/exportsAndImports4(target=es5).symbols @@ -0,0 +1,69 @@ +//// [tests/cases/conformance/es6/modules/exportsAndImports4.ts] //// + +=== t3.ts === +import a = require("./t1"); +>a : Symbol(a, Decl(t3.ts, 0, 0)) + +a.default; +>a.default : Symbol(a.default, Decl(t1.ts, 0, 0)) +>a : Symbol(a, Decl(t3.ts, 0, 0)) +>default : Symbol(a.default, Decl(t1.ts, 0, 0)) + +import b from "./t1"; +>b : Symbol(b, Decl(t3.ts, 2, 6)) + +b; +>b : Symbol(b, Decl(t3.ts, 2, 6)) + +import * as c from "./t1"; +>c : Symbol(c, Decl(t3.ts, 4, 6)) + +c.default; +>c.default : Symbol(a.default, Decl(t1.ts, 0, 0)) +>c : Symbol(c, Decl(t3.ts, 4, 6)) +>default : Symbol(a.default, Decl(t1.ts, 0, 0)) + +import { default as d } from "./t1"; +>default : Symbol(a.default, Decl(t1.ts, 0, 0)) +>d : Symbol(d, Decl(t3.ts, 6, 8)) + +d; +>d : Symbol(d, Decl(t3.ts, 6, 8)) + +import e1, * as e2 from "./t1"; +>e1 : Symbol(e1, Decl(t3.ts, 8, 6)) +>e2 : Symbol(e2, Decl(t3.ts, 8, 10)) + +e1; +>e1 : Symbol(e1, Decl(t3.ts, 8, 6)) + +e2.default; +>e2.default : Symbol(a.default, Decl(t1.ts, 0, 0)) +>e2 : Symbol(e2, Decl(t3.ts, 8, 10)) +>default : Symbol(a.default, Decl(t1.ts, 0, 0)) + +import f1, { default as f2 } from "./t1"; +>f1 : Symbol(f1, Decl(t3.ts, 11, 6)) +>default : Symbol(a.default, Decl(t1.ts, 0, 0)) +>f2 : Symbol(f2, Decl(t3.ts, 11, 12)) + +f1; +>f1 : Symbol(f1, Decl(t3.ts, 11, 6)) + +f2; +>f2 : Symbol(f2, Decl(t3.ts, 11, 12)) + +export { a, b, c, d, e1, e2, f1, f2 }; +>a : Symbol(a, Decl(t3.ts, 14, 8)) +>b : Symbol(b, Decl(t3.ts, 14, 11)) +>c : Symbol(c, Decl(t3.ts, 14, 14)) +>d : Symbol(d, Decl(t3.ts, 14, 17)) +>e1 : Symbol(e1, Decl(t3.ts, 14, 20)) +>e2 : Symbol(e2, Decl(t3.ts, 14, 24)) +>f1 : Symbol(f1, Decl(t3.ts, 14, 28)) +>f2 : Symbol(f2, Decl(t3.ts, 14, 32)) + +=== t1.ts === + +export default "hello"; + diff --git a/tests/baselines/reference/exportsAndImports4(target=es5).types b/tests/baselines/reference/exportsAndImports4(target=es5).types new file mode 100644 index 0000000000000..caa88a91937cb --- /dev/null +++ b/tests/baselines/reference/exportsAndImports4(target=es5).types @@ -0,0 +1,101 @@ +//// [tests/cases/conformance/es6/modules/exportsAndImports4.ts] //// + +=== t3.ts === +import a = require("./t1"); +>a : typeof a +> : ^^^^^^^^ + +a.default; +>a.default : "hello" +> : ^^^^^^^ +>a : typeof a +> : ^^^^^^^^ +>default : "hello" +> : ^^^^^^^ + +import b from "./t1"; +>b : "hello" +> : ^^^^^^^ + +b; +>b : "hello" +> : ^^^^^^^ + +import * as c from "./t1"; +>c : typeof c +> : ^^^^^^^^ + +c.default; +>c.default : "hello" +> : ^^^^^^^ +>c : typeof c +> : ^^^^^^^^ +>default : "hello" +> : ^^^^^^^ + +import { default as d } from "./t1"; +>default : "hello" +> : ^^^^^^^ +>d : "hello" +> : ^^^^^^^ + +d; +>d : "hello" +> : ^^^^^^^ + +import e1, * as e2 from "./t1"; +>e1 : "hello" +> : ^^^^^^^ +>e2 : typeof e2 +> : ^^^^^^^^^ + +e1; +>e1 : "hello" +> : ^^^^^^^ + +e2.default; +>e2.default : "hello" +> : ^^^^^^^ +>e2 : typeof e2 +> : ^^^^^^^^^ +>default : "hello" +> : ^^^^^^^ + +import f1, { default as f2 } from "./t1"; +>f1 : "hello" +> : ^^^^^^^ +>default : "hello" +> : ^^^^^^^ +>f2 : "hello" +> : ^^^^^^^ + +f1; +>f1 : "hello" +> : ^^^^^^^ + +f2; +>f2 : "hello" +> : ^^^^^^^ + +export { a, b, c, d, e1, e2, f1, f2 }; +>a : typeof a +> : ^^^^^^^^ +>b : "hello" +> : ^^^^^^^ +>c : typeof c +> : ^^^^^^^^ +>d : "hello" +> : ^^^^^^^ +>e1 : "hello" +> : ^^^^^^^ +>e2 : typeof e2 +> : ^^^^^^^^^ +>f1 : "hello" +> : ^^^^^^^ +>f2 : "hello" +> : ^^^^^^^ + +=== t1.ts === + +export default "hello"; + diff --git a/tests/baselines/reference/exportsAndImports4-amd.errors.txt b/tests/baselines/reference/exportsAndImports4-amd(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/exportsAndImports4-amd.errors.txt rename to tests/baselines/reference/exportsAndImports4-amd(target=es2015).errors.txt diff --git a/tests/baselines/reference/exportsAndImports4-amd(target=es2015).js b/tests/baselines/reference/exportsAndImports4-amd(target=es2015).js new file mode 100644 index 0000000000000..625e35dc18199 --- /dev/null +++ b/tests/baselines/reference/exportsAndImports4-amd(target=es2015).js @@ -0,0 +1,110 @@ +//// [tests/cases/conformance/es6/modules/exportsAndImports4-amd.ts] //// + +//// [t1.ts] +export default "hello"; + +//// [t2.ts] +import a = require("./t1"); +a.default; +import b from "./t1"; +b; +import * as c from "./t1"; +c.default; +import { default as d } from "./t1"; +d; +import e1, * as e2 from "./t1"; +e1; +e2.default; +import f1, { default as f2 } from "./t1"; +f1; +f2; +import "./t1"; + +//// [t3.ts] +import a = require("./t1"); +a.default; +import b from "./t1"; +b; +import * as c from "./t1"; +c.default; +import { default as d } from "./t1"; +d; +import e1, * as e2 from "./t1"; +e1; +e2.default; +import f1, { default as f2 } from "./t1"; +f1; +f2; +export { a, b, c, d, e1, e2, f1, f2 }; + + +//// [t1.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.default = "hello"; +}); +//// [t3.js] +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +define(["require", "exports", "./t1", "./t1", "./t1", "./t1", "./t1", "./t1"], function (require, exports, a, t1_1, c, t1_2, t1_3, t1_4) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.f2 = exports.f1 = exports.e2 = exports.e1 = exports.d = exports.c = exports.b = exports.a = void 0; + t1_1 = __importDefault(t1_1); + c = __importStar(c); + t1_2 = __importDefault(t1_2); + t1_3 = __importStar(t1_3); + t1_4 = __importDefault(t1_4); + exports.a = a; + a.default; + exports.b = t1_1.default; + t1_1.default; + exports.c = c; + c.default; + Object.defineProperty(exports, "d", { enumerable: true, get: function () { return t1_2.default; } }); + t1_2.default; + const e2 = t1_3; + exports.e1 = t1_3.default; + exports.e2 = e2; + t1_3.default; + e2.default; + exports.f1 = t1_4.default; + Object.defineProperty(exports, "f2", { enumerable: true, get: function () { return t1_4.default; } }); + t1_4.default; + t1_4.default; +}); diff --git a/tests/baselines/reference/exportsAndImports4-amd.symbols b/tests/baselines/reference/exportsAndImports4-amd(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/exportsAndImports4-amd.symbols rename to tests/baselines/reference/exportsAndImports4-amd(target=es2015).symbols diff --git a/tests/baselines/reference/exportsAndImports4-amd.types b/tests/baselines/reference/exportsAndImports4-amd(target=es2015).types similarity index 100% rename from tests/baselines/reference/exportsAndImports4-amd.types rename to tests/baselines/reference/exportsAndImports4-amd(target=es2015).types diff --git a/tests/baselines/reference/exportsAndImports4-amd(target=es5).errors.txt b/tests/baselines/reference/exportsAndImports4-amd(target=es5).errors.txt new file mode 100644 index 0000000000000..9551ab300f3e3 --- /dev/null +++ b/tests/baselines/reference/exportsAndImports4-amd(target=es5).errors.txt @@ -0,0 +1,41 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== t3.ts (0 errors) ==== + import a = require("./t1"); + a.default; + import b from "./t1"; + b; + import * as c from "./t1"; + c.default; + import { default as d } from "./t1"; + d; + import e1, * as e2 from "./t1"; + e1; + e2.default; + import f1, { default as f2 } from "./t1"; + f1; + f2; + export { a, b, c, d, e1, e2, f1, f2 }; + +==== t1.ts (0 errors) ==== + export default "hello"; + +==== t2.ts (0 errors) ==== + import a = require("./t1"); + a.default; + import b from "./t1"; + b; + import * as c from "./t1"; + c.default; + import { default as d } from "./t1"; + d; + import e1, * as e2 from "./t1"; + e1; + e2.default; + import f1, { default as f2 } from "./t1"; + f1; + f2; + import "./t1"; + \ No newline at end of file diff --git a/tests/baselines/reference/exportsAndImports4-amd.js b/tests/baselines/reference/exportsAndImports4-amd(target=es5).js similarity index 100% rename from tests/baselines/reference/exportsAndImports4-amd.js rename to tests/baselines/reference/exportsAndImports4-amd(target=es5).js diff --git a/tests/baselines/reference/exportsAndImports4-amd(target=es5).symbols b/tests/baselines/reference/exportsAndImports4-amd(target=es5).symbols new file mode 100644 index 0000000000000..eeab2d511becd --- /dev/null +++ b/tests/baselines/reference/exportsAndImports4-amd(target=es5).symbols @@ -0,0 +1,69 @@ +//// [tests/cases/conformance/es6/modules/exportsAndImports4-amd.ts] //// + +=== t3.ts === +import a = require("./t1"); +>a : Symbol(a, Decl(t3.ts, 0, 0)) + +a.default; +>a.default : Symbol(a.default, Decl(t1.ts, 0, 0)) +>a : Symbol(a, Decl(t3.ts, 0, 0)) +>default : Symbol(a.default, Decl(t1.ts, 0, 0)) + +import b from "./t1"; +>b : Symbol(b, Decl(t3.ts, 2, 6)) + +b; +>b : Symbol(b, Decl(t3.ts, 2, 6)) + +import * as c from "./t1"; +>c : Symbol(c, Decl(t3.ts, 4, 6)) + +c.default; +>c.default : Symbol(a.default, Decl(t1.ts, 0, 0)) +>c : Symbol(c, Decl(t3.ts, 4, 6)) +>default : Symbol(a.default, Decl(t1.ts, 0, 0)) + +import { default as d } from "./t1"; +>default : Symbol(a.default, Decl(t1.ts, 0, 0)) +>d : Symbol(d, Decl(t3.ts, 6, 8)) + +d; +>d : Symbol(d, Decl(t3.ts, 6, 8)) + +import e1, * as e2 from "./t1"; +>e1 : Symbol(e1, Decl(t3.ts, 8, 6)) +>e2 : Symbol(e2, Decl(t3.ts, 8, 10)) + +e1; +>e1 : Symbol(e1, Decl(t3.ts, 8, 6)) + +e2.default; +>e2.default : Symbol(a.default, Decl(t1.ts, 0, 0)) +>e2 : Symbol(e2, Decl(t3.ts, 8, 10)) +>default : Symbol(a.default, Decl(t1.ts, 0, 0)) + +import f1, { default as f2 } from "./t1"; +>f1 : Symbol(f1, Decl(t3.ts, 11, 6)) +>default : Symbol(a.default, Decl(t1.ts, 0, 0)) +>f2 : Symbol(f2, Decl(t3.ts, 11, 12)) + +f1; +>f1 : Symbol(f1, Decl(t3.ts, 11, 6)) + +f2; +>f2 : Symbol(f2, Decl(t3.ts, 11, 12)) + +export { a, b, c, d, e1, e2, f1, f2 }; +>a : Symbol(a, Decl(t3.ts, 14, 8)) +>b : Symbol(b, Decl(t3.ts, 14, 11)) +>c : Symbol(c, Decl(t3.ts, 14, 14)) +>d : Symbol(d, Decl(t3.ts, 14, 17)) +>e1 : Symbol(e1, Decl(t3.ts, 14, 20)) +>e2 : Symbol(e2, Decl(t3.ts, 14, 24)) +>f1 : Symbol(f1, Decl(t3.ts, 14, 28)) +>f2 : Symbol(f2, Decl(t3.ts, 14, 32)) + +=== t1.ts === + +export default "hello"; + diff --git a/tests/baselines/reference/exportsAndImports4-amd(target=es5).types b/tests/baselines/reference/exportsAndImports4-amd(target=es5).types new file mode 100644 index 0000000000000..562d817aa39f7 --- /dev/null +++ b/tests/baselines/reference/exportsAndImports4-amd(target=es5).types @@ -0,0 +1,101 @@ +//// [tests/cases/conformance/es6/modules/exportsAndImports4-amd.ts] //// + +=== t3.ts === +import a = require("./t1"); +>a : typeof a +> : ^^^^^^^^ + +a.default; +>a.default : "hello" +> : ^^^^^^^ +>a : typeof a +> : ^^^^^^^^ +>default : "hello" +> : ^^^^^^^ + +import b from "./t1"; +>b : "hello" +> : ^^^^^^^ + +b; +>b : "hello" +> : ^^^^^^^ + +import * as c from "./t1"; +>c : typeof c +> : ^^^^^^^^ + +c.default; +>c.default : "hello" +> : ^^^^^^^ +>c : typeof c +> : ^^^^^^^^ +>default : "hello" +> : ^^^^^^^ + +import { default as d } from "./t1"; +>default : "hello" +> : ^^^^^^^ +>d : "hello" +> : ^^^^^^^ + +d; +>d : "hello" +> : ^^^^^^^ + +import e1, * as e2 from "./t1"; +>e1 : "hello" +> : ^^^^^^^ +>e2 : typeof e2 +> : ^^^^^^^^^ + +e1; +>e1 : "hello" +> : ^^^^^^^ + +e2.default; +>e2.default : "hello" +> : ^^^^^^^ +>e2 : typeof e2 +> : ^^^^^^^^^ +>default : "hello" +> : ^^^^^^^ + +import f1, { default as f2 } from "./t1"; +>f1 : "hello" +> : ^^^^^^^ +>default : "hello" +> : ^^^^^^^ +>f2 : "hello" +> : ^^^^^^^ + +f1; +>f1 : "hello" +> : ^^^^^^^ + +f2; +>f2 : "hello" +> : ^^^^^^^ + +export { a, b, c, d, e1, e2, f1, f2 }; +>a : typeof a +> : ^^^^^^^^ +>b : "hello" +> : ^^^^^^^ +>c : typeof c +> : ^^^^^^^^ +>d : "hello" +> : ^^^^^^^ +>e1 : "hello" +> : ^^^^^^^ +>e2 : typeof e2 +> : ^^^^^^^^^ +>f1 : "hello" +> : ^^^^^^^ +>f2 : "hello" +> : ^^^^^^^ + +=== t1.ts === + +export default "hello"; + diff --git a/tests/baselines/reference/exportsAndImportsWithContextualKeywordNames01.errors.txt b/tests/baselines/reference/exportsAndImportsWithContextualKeywordNames01(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/exportsAndImportsWithContextualKeywordNames01.errors.txt rename to tests/baselines/reference/exportsAndImportsWithContextualKeywordNames01(target=es2015).errors.txt diff --git a/tests/baselines/reference/exportsAndImportsWithContextualKeywordNames01(target=es2015).js b/tests/baselines/reference/exportsAndImportsWithContextualKeywordNames01(target=es2015).js new file mode 100644 index 0000000000000..74dc9f359b9f7 --- /dev/null +++ b/tests/baselines/reference/exportsAndImportsWithContextualKeywordNames01(target=es2015).js @@ -0,0 +1,40 @@ +//// [tests/cases/conformance/es6/modules/exportsAndImportsWithContextualKeywordNames01.ts] //// + +//// [t1.ts] +let set = { + set foo(x: number) { + } +} +let get = 10; + +export { set, get }; + +//// [t2.ts] +import * as set from "./t1"; + +//// [t3.ts] +import { set as yield } from "./t1"; + +//// [t4.ts] +import { get } from "./t1"; + +//// [t1.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.get = exports.set = void 0; +let set = { + set foo(x) { + } +}; +exports.set = set; +let get = 10; +exports.get = get; +//// [t2.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//// [t3.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//// [t4.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/tests/baselines/reference/exportsAndImportsWithContextualKeywordNames01.symbols b/tests/baselines/reference/exportsAndImportsWithContextualKeywordNames01(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/exportsAndImportsWithContextualKeywordNames01.symbols rename to tests/baselines/reference/exportsAndImportsWithContextualKeywordNames01(target=es2015).symbols diff --git a/tests/baselines/reference/exportsAndImportsWithContextualKeywordNames01.types b/tests/baselines/reference/exportsAndImportsWithContextualKeywordNames01(target=es2015).types similarity index 100% rename from tests/baselines/reference/exportsAndImportsWithContextualKeywordNames01.types rename to tests/baselines/reference/exportsAndImportsWithContextualKeywordNames01(target=es2015).types diff --git a/tests/baselines/reference/exportsAndImportsWithContextualKeywordNames01(target=es5).errors.txt b/tests/baselines/reference/exportsAndImportsWithContextualKeywordNames01(target=es5).errors.txt new file mode 100644 index 0000000000000..7cbe0691fbb73 --- /dev/null +++ b/tests/baselines/reference/exportsAndImportsWithContextualKeywordNames01(target=es5).errors.txt @@ -0,0 +1,22 @@ +t3.ts(1,17): error TS1214: Identifier expected. 'yield' is a reserved word in strict mode. Modules are automatically in strict mode. + + +==== t1.ts (0 errors) ==== + let set = { + set foo(x: number) { + } + } + let get = 10; + + export { set, get }; + +==== t2.ts (0 errors) ==== + import * as set from "./t1"; + +==== t3.ts (1 errors) ==== + import { set as yield } from "./t1"; + ~~~~~ +!!! error TS1214: Identifier expected. 'yield' is a reserved word in strict mode. Modules are automatically in strict mode. + +==== t4.ts (0 errors) ==== + import { get } from "./t1"; \ No newline at end of file diff --git a/tests/baselines/reference/exportsAndImportsWithContextualKeywordNames01.js b/tests/baselines/reference/exportsAndImportsWithContextualKeywordNames01(target=es5).js similarity index 100% rename from tests/baselines/reference/exportsAndImportsWithContextualKeywordNames01.js rename to tests/baselines/reference/exportsAndImportsWithContextualKeywordNames01(target=es5).js diff --git a/tests/baselines/reference/exportsAndImportsWithContextualKeywordNames01(target=es5).symbols b/tests/baselines/reference/exportsAndImportsWithContextualKeywordNames01(target=es5).symbols new file mode 100644 index 0000000000000..24772bae7093b --- /dev/null +++ b/tests/baselines/reference/exportsAndImportsWithContextualKeywordNames01(target=es5).symbols @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/es6/modules/exportsAndImportsWithContextualKeywordNames01.ts] //// + +=== t1.ts === +let set = { +>set : Symbol(set, Decl(t1.ts, 0, 3)) + + set foo(x: number) { +>foo : Symbol(foo, Decl(t1.ts, 0, 11)) +>x : Symbol(x, Decl(t1.ts, 1, 12)) + } +} +let get = 10; +>get : Symbol(get, Decl(t1.ts, 4, 3)) + +export { set, get }; +>set : Symbol(set, Decl(t1.ts, 6, 8)) +>get : Symbol(get, Decl(t1.ts, 6, 13)) + +=== t2.ts === +import * as set from "./t1"; +>set : Symbol(set, Decl(t2.ts, 0, 6)) + +=== t3.ts === +import { set as yield } from "./t1"; +>set : Symbol(set, Decl(t1.ts, 6, 8)) +>yield : Symbol(yield, Decl(t3.ts, 0, 8)) + +=== t4.ts === +import { get } from "./t1"; +>get : Symbol(get, Decl(t4.ts, 0, 8)) + diff --git a/tests/baselines/reference/exportsAndImportsWithContextualKeywordNames01(target=es5).types b/tests/baselines/reference/exportsAndImportsWithContextualKeywordNames01(target=es5).types new file mode 100644 index 0000000000000..e477ebe3f8837 --- /dev/null +++ b/tests/baselines/reference/exportsAndImportsWithContextualKeywordNames01(target=es5).types @@ -0,0 +1,45 @@ +//// [tests/cases/conformance/es6/modules/exportsAndImportsWithContextualKeywordNames01.ts] //// + +=== t1.ts === +let set = { +>set : { foo: number; } +> : ^^^^^^^ ^^^ +>{ set foo(x: number) { }} : { foo: number; } +> : ^^^^^^^ ^^^ + + set foo(x: number) { +>foo : number +> : ^^^^^^ +>x : number +> : ^^^^^^ + } +} +let get = 10; +>get : number +> : ^^^^^^ +>10 : 10 +> : ^^ + +export { set, get }; +>set : { foo: number; } +> : ^^^^^^^ ^^^ +>get : number +> : ^^^^^^ + +=== t2.ts === +import * as set from "./t1"; +>set : typeof set +> : ^^^^^^^^^^ + +=== t3.ts === +import { set as yield } from "./t1"; +>set : { foo: number; } +> : ^^^^^^^ ^^^ +>yield : { foo: number; } +> : ^^^^^^^ ^^^ + +=== t4.ts === +import { get } from "./t1"; +>get : number +> : ^^^^^^ + diff --git a/tests/baselines/reference/exportsAndImportsWithContextualKeywordNames02(target=es2015).js b/tests/baselines/reference/exportsAndImportsWithContextualKeywordNames02(target=es2015).js new file mode 100644 index 0000000000000..852a6808ee36a --- /dev/null +++ b/tests/baselines/reference/exportsAndImportsWithContextualKeywordNames02(target=es2015).js @@ -0,0 +1,70 @@ +//// [tests/cases/conformance/es6/modules/exportsAndImportsWithContextualKeywordNames02.ts] //// + +//// [t1.ts] +let as = 100; + +export { as as return, as }; + +//// [t2.ts] +import * as as from "./t1"; +var x = as.as; +var y = as.return; + +//// [t3.ts] +import { as as as } from "./t1"; + +//// [t4.ts] +import { as } from "./t1"; + +//// [t1.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.as = exports.return = void 0; +let as = 100; +exports.return = as; +exports.as = as; +//// [t2.js] +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +const as = __importStar(require("./t1")); +var x = as.as; +var y = as.return; +//// [t3.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//// [t4.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/tests/baselines/reference/exportsAndImportsWithContextualKeywordNames02.symbols b/tests/baselines/reference/exportsAndImportsWithContextualKeywordNames02(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/exportsAndImportsWithContextualKeywordNames02.symbols rename to tests/baselines/reference/exportsAndImportsWithContextualKeywordNames02(target=es2015).symbols diff --git a/tests/baselines/reference/exportsAndImportsWithContextualKeywordNames02.types b/tests/baselines/reference/exportsAndImportsWithContextualKeywordNames02(target=es2015).types similarity index 100% rename from tests/baselines/reference/exportsAndImportsWithContextualKeywordNames02.types rename to tests/baselines/reference/exportsAndImportsWithContextualKeywordNames02(target=es2015).types diff --git a/tests/baselines/reference/exportsAndImportsWithContextualKeywordNames02.js b/tests/baselines/reference/exportsAndImportsWithContextualKeywordNames02(target=es5).js similarity index 100% rename from tests/baselines/reference/exportsAndImportsWithContextualKeywordNames02.js rename to tests/baselines/reference/exportsAndImportsWithContextualKeywordNames02(target=es5).js diff --git a/tests/baselines/reference/exportsAndImportsWithContextualKeywordNames02(target=es5).symbols b/tests/baselines/reference/exportsAndImportsWithContextualKeywordNames02(target=es5).symbols new file mode 100644 index 0000000000000..86ed0b4b1edfb --- /dev/null +++ b/tests/baselines/reference/exportsAndImportsWithContextualKeywordNames02(target=es5).symbols @@ -0,0 +1,36 @@ +//// [tests/cases/conformance/es6/modules/exportsAndImportsWithContextualKeywordNames02.ts] //// + +=== t1.ts === +let as = 100; +>as : Symbol(as, Decl(t1.ts, 0, 3)) + +export { as as return, as }; +>as : Symbol(as, Decl(t1.ts, 0, 3)) +>return : Symbol(return, Decl(t1.ts, 2, 8)) +>as : Symbol(as, Decl(t1.ts, 2, 22)) + +=== t2.ts === +import * as as from "./t1"; +>as : Symbol(as, Decl(t2.ts, 0, 6)) + +var x = as.as; +>x : Symbol(x, Decl(t2.ts, 1, 3)) +>as.as : Symbol(as.as, Decl(t1.ts, 2, 22)) +>as : Symbol(as, Decl(t2.ts, 0, 6)) +>as : Symbol(as.as, Decl(t1.ts, 2, 22)) + +var y = as.return; +>y : Symbol(y, Decl(t2.ts, 2, 3)) +>as.return : Symbol(as.return, Decl(t1.ts, 2, 8)) +>as : Symbol(as, Decl(t2.ts, 0, 6)) +>return : Symbol(as.return, Decl(t1.ts, 2, 8)) + +=== t3.ts === +import { as as as } from "./t1"; +>as : Symbol(as, Decl(t1.ts, 2, 22)) +>as : Symbol(as, Decl(t3.ts, 0, 8)) + +=== t4.ts === +import { as } from "./t1"; +>as : Symbol(as, Decl(t4.ts, 0, 8)) + diff --git a/tests/baselines/reference/exportsAndImportsWithContextualKeywordNames02(target=es5).types b/tests/baselines/reference/exportsAndImportsWithContextualKeywordNames02(target=es5).types new file mode 100644 index 0000000000000..10115f51eab25 --- /dev/null +++ b/tests/baselines/reference/exportsAndImportsWithContextualKeywordNames02(target=es5).types @@ -0,0 +1,54 @@ +//// [tests/cases/conformance/es6/modules/exportsAndImportsWithContextualKeywordNames02.ts] //// + +=== t1.ts === +let as = 100; +>as : number +> : ^^^^^^ +>100 : 100 +> : ^^^ + +export { as as return, as }; +>as : number +> : ^^^^^^ +>return : number +> : ^^^^^^ +>as : number +> : ^^^^^^ + +=== t2.ts === +import * as as from "./t1"; +>as : typeof as +> : ^^^^^^^^^ + +var x = as.as; +>x : number +> : ^^^^^^ +>as.as : number +> : ^^^^^^ +>as : typeof as +> : ^^^^^^^^^ +>as : number +> : ^^^^^^ + +var y = as.return; +>y : number +> : ^^^^^^ +>as.return : number +> : ^^^^^^ +>as : typeof as +> : ^^^^^^^^^ +>return : number +> : ^^^^^^ + +=== t3.ts === +import { as as as } from "./t1"; +>as : number +> : ^^^^^^ +>as : number +> : ^^^^^^ + +=== t4.ts === +import { as } from "./t1"; +>as : number +> : ^^^^^^ + diff --git a/tests/baselines/reference/exportsAndImportsWithUnderscores1.errors.txt b/tests/baselines/reference/exportsAndImportsWithUnderscores1(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/exportsAndImportsWithUnderscores1.errors.txt rename to tests/baselines/reference/exportsAndImportsWithUnderscores1(target=es2015).errors.txt diff --git a/tests/baselines/reference/exportsAndImportsWithUnderscores1(target=es2015).js b/tests/baselines/reference/exportsAndImportsWithUnderscores1(target=es2015).js new file mode 100644 index 0000000000000..5b7342a63f25c --- /dev/null +++ b/tests/baselines/reference/exportsAndImportsWithUnderscores1(target=es2015).js @@ -0,0 +1,32 @@ +//// [tests/cases/conformance/es6/modules/exportsAndImportsWithUnderscores1.ts] //// + +//// [m1.ts] +var R: any +export default R = { + "__": 20, + "_": 10 + "___": 30 +} + +//// [m2.ts] +import R from "./m1"; +const { __, _, ___ } = R; + + +//// [m1.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var R; +exports.default = R = { + "__": 20, + "_": 10, + "___": 30 +}; +//// [m2.js] +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const m1_1 = __importDefault(require("./m1")); +const { __, _, ___ } = m1_1.default; diff --git a/tests/baselines/reference/exportsAndImportsWithUnderscores1.symbols b/tests/baselines/reference/exportsAndImportsWithUnderscores1(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/exportsAndImportsWithUnderscores1.symbols rename to tests/baselines/reference/exportsAndImportsWithUnderscores1(target=es2015).symbols diff --git a/tests/baselines/reference/exportsAndImportsWithUnderscores1.types b/tests/baselines/reference/exportsAndImportsWithUnderscores1(target=es2015).types similarity index 100% rename from tests/baselines/reference/exportsAndImportsWithUnderscores1.types rename to tests/baselines/reference/exportsAndImportsWithUnderscores1(target=es2015).types diff --git a/tests/baselines/reference/exportsAndImportsWithUnderscores1(target=es5).errors.txt b/tests/baselines/reference/exportsAndImportsWithUnderscores1(target=es5).errors.txt new file mode 100644 index 0000000000000..7d9f0936433d6 --- /dev/null +++ b/tests/baselines/reference/exportsAndImportsWithUnderscores1(target=es5).errors.txt @@ -0,0 +1,17 @@ +m1.ts(5,5): error TS1005: ',' expected. + + +==== m1.ts (1 errors) ==== + var R: any + export default R = { + "__": 20, + "_": 10 + "___": 30 + ~~~~~ +!!! error TS1005: ',' expected. + } + +==== m2.ts (0 errors) ==== + import R from "./m1"; + const { __, _, ___ } = R; + \ No newline at end of file diff --git a/tests/baselines/reference/exportsAndImportsWithUnderscores1.js b/tests/baselines/reference/exportsAndImportsWithUnderscores1(target=es5).js similarity index 100% rename from tests/baselines/reference/exportsAndImportsWithUnderscores1.js rename to tests/baselines/reference/exportsAndImportsWithUnderscores1(target=es5).js diff --git a/tests/baselines/reference/exportsAndImportsWithUnderscores1(target=es5).symbols b/tests/baselines/reference/exportsAndImportsWithUnderscores1(target=es5).symbols new file mode 100644 index 0000000000000..8750ab4570000 --- /dev/null +++ b/tests/baselines/reference/exportsAndImportsWithUnderscores1(target=es5).symbols @@ -0,0 +1,29 @@ +//// [tests/cases/conformance/es6/modules/exportsAndImportsWithUnderscores1.ts] //// + +=== m1.ts === +var R: any +>R : Symbol(R, Decl(m1.ts, 0, 3)) + +export default R = { +>R : Symbol(R, Decl(m1.ts, 0, 3)) + + "__": 20, +>"__" : Symbol("__", Decl(m1.ts, 1, 20)) + + "_": 10 +>"_" : Symbol("_", Decl(m1.ts, 2, 13)) + + "___": 30 +>"___" : Symbol("___", Decl(m1.ts, 3, 11)) +} + +=== m2.ts === +import R from "./m1"; +>R : Symbol(R, Decl(m2.ts, 0, 6)) + +const { __, _, ___ } = R; +>__ : Symbol(__, Decl(m2.ts, 1, 7)) +>_ : Symbol(_, Decl(m2.ts, 1, 11)) +>___ : Symbol(___, Decl(m2.ts, 1, 14)) +>R : Symbol(R, Decl(m2.ts, 0, 6)) + diff --git a/tests/baselines/reference/exportsAndImportsWithUnderscores1(target=es5).types b/tests/baselines/reference/exportsAndImportsWithUnderscores1(target=es5).types new file mode 100644 index 0000000000000..b4e1f5b240e70 --- /dev/null +++ b/tests/baselines/reference/exportsAndImportsWithUnderscores1(target=es5).types @@ -0,0 +1,49 @@ +//// [tests/cases/conformance/es6/modules/exportsAndImportsWithUnderscores1.ts] //// + +=== m1.ts === +var R: any +>R : any +> : ^^^ + +export default R = { +>R = { "__": 20, "_": 10 "___": 30} : { __: number; _: number; ___: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>R : any +> : ^^^ +>{ "__": 20, "_": 10 "___": 30} : { __: number; _: number; ___: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + "__": 20, +>"__" : number +> : ^^^^^^ +>20 : 20 +> : ^^ + + "_": 10 +>"_" : number +> : ^^^^^^ +>10 : 10 +> : ^^ + + "___": 30 +>"___" : number +> : ^^^^^^ +>30 : 30 +> : ^^ +} + +=== m2.ts === +import R from "./m1"; +>R : { __: number; _: number; ___: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +const { __, _, ___ } = R; +>__ : number +> : ^^^^^^ +>_ : number +> : ^^^^^^ +>___ : number +> : ^^^^^^ +>R : { __: number; _: number; ___: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + diff --git a/tests/baselines/reference/exportsAndImportsWithUnderscores2(target=es2015).js b/tests/baselines/reference/exportsAndImportsWithUnderscores2(target=es2015).js new file mode 100644 index 0000000000000..f7df10ca643ca --- /dev/null +++ b/tests/baselines/reference/exportsAndImportsWithUnderscores2(target=es2015).js @@ -0,0 +1,30 @@ +//// [tests/cases/conformance/es6/modules/exportsAndImportsWithUnderscores2.ts] //// + +//// [m1.ts] +var R: any +export default R = { + "__esmodule": true, + "__proto__": {} +} + +//// [m2.ts] +import R from "./m1"; +const { __esmodule, __proto__ } = R; + + +//// [m1.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var R; +exports.default = R = { + "__esmodule": true, + "__proto__": {} +}; +//// [m2.js] +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const m1_1 = __importDefault(require("./m1")); +const { __esmodule, __proto__ } = m1_1.default; diff --git a/tests/baselines/reference/exportsAndImportsWithUnderscores2.symbols b/tests/baselines/reference/exportsAndImportsWithUnderscores2(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/exportsAndImportsWithUnderscores2.symbols rename to tests/baselines/reference/exportsAndImportsWithUnderscores2(target=es2015).symbols diff --git a/tests/baselines/reference/exportsAndImportsWithUnderscores2.types b/tests/baselines/reference/exportsAndImportsWithUnderscores2(target=es2015).types similarity index 100% rename from tests/baselines/reference/exportsAndImportsWithUnderscores2.types rename to tests/baselines/reference/exportsAndImportsWithUnderscores2(target=es2015).types diff --git a/tests/baselines/reference/exportsAndImportsWithUnderscores2.js b/tests/baselines/reference/exportsAndImportsWithUnderscores2(target=es5).js similarity index 100% rename from tests/baselines/reference/exportsAndImportsWithUnderscores2.js rename to tests/baselines/reference/exportsAndImportsWithUnderscores2(target=es5).js diff --git a/tests/baselines/reference/exportsAndImportsWithUnderscores2(target=es5).symbols b/tests/baselines/reference/exportsAndImportsWithUnderscores2(target=es5).symbols new file mode 100644 index 0000000000000..9f320dbbc286a --- /dev/null +++ b/tests/baselines/reference/exportsAndImportsWithUnderscores2(target=es5).symbols @@ -0,0 +1,25 @@ +//// [tests/cases/conformance/es6/modules/exportsAndImportsWithUnderscores2.ts] //// + +=== m1.ts === +var R: any +>R : Symbol(R, Decl(m1.ts, 0, 3)) + +export default R = { +>R : Symbol(R, Decl(m1.ts, 0, 3)) + + "__esmodule": true, +>"__esmodule" : Symbol("__esmodule", Decl(m1.ts, 1, 20)) + + "__proto__": {} +>"__proto__" : Symbol("__proto__", Decl(m1.ts, 2, 23)) +} + +=== m2.ts === +import R from "./m1"; +>R : Symbol(R, Decl(m2.ts, 0, 6)) + +const { __esmodule, __proto__ } = R; +>__esmodule : Symbol(__esmodule, Decl(m2.ts, 1, 7)) +>__proto__ : Symbol(__proto__, Decl(m2.ts, 1, 19)) +>R : Symbol(R, Decl(m2.ts, 0, 6)) + diff --git a/tests/baselines/reference/exportsAndImportsWithUnderscores2(target=es5).types b/tests/baselines/reference/exportsAndImportsWithUnderscores2(target=es5).types new file mode 100644 index 0000000000000..8a9d4c07d2516 --- /dev/null +++ b/tests/baselines/reference/exportsAndImportsWithUnderscores2(target=es5).types @@ -0,0 +1,39 @@ +//// [tests/cases/conformance/es6/modules/exportsAndImportsWithUnderscores2.ts] //// + +=== m1.ts === +var R: any +>R : any + +export default R = { +>R = { "__esmodule": true, "__proto__": {}} : { __esmodule: boolean; __proto__: {}; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>R : any +>{ "__esmodule": true, "__proto__": {}} : { __esmodule: boolean; __proto__: {}; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + "__esmodule": true, +>"__esmodule" : boolean +> : ^^^^^^^ +>true : true +> : ^^^^ + + "__proto__": {} +>"__proto__" : {} +> : ^^ +>{} : {} +> : ^^ +} + +=== m2.ts === +import R from "./m1"; +>R : { __esmodule: boolean; __proto__: {}; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +const { __esmodule, __proto__ } = R; +>__esmodule : boolean +> : ^^^^^^^ +>__proto__ : {} +> : ^^ +>R : { __esmodule: boolean; __proto__: {}; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + diff --git a/tests/baselines/reference/exportsAndImportsWithUnderscores3(target=es2015).js b/tests/baselines/reference/exportsAndImportsWithUnderscores3(target=es2015).js new file mode 100644 index 0000000000000..88ea6d372a37e --- /dev/null +++ b/tests/baselines/reference/exportsAndImportsWithUnderscores3(target=es2015).js @@ -0,0 +1,32 @@ +//// [tests/cases/conformance/es6/modules/exportsAndImportsWithUnderscores3.ts] //// + +//// [m1.ts] +var R: any +export default R = { + "___": 30, + "___hello": 21, + "_hi": 40, +} + +//// [m2.ts] +import R from "./m1"; +const { ___, ___hello, _hi } = R; + + +//// [m1.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var R; +exports.default = R = { + "___": 30, + "___hello": 21, + "_hi": 40, +}; +//// [m2.js] +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const m1_1 = __importDefault(require("./m1")); +const { ___, ___hello, _hi } = m1_1.default; diff --git a/tests/baselines/reference/exportsAndImportsWithUnderscores3.symbols b/tests/baselines/reference/exportsAndImportsWithUnderscores3(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/exportsAndImportsWithUnderscores3.symbols rename to tests/baselines/reference/exportsAndImportsWithUnderscores3(target=es2015).symbols diff --git a/tests/baselines/reference/exportsAndImportsWithUnderscores3.types b/tests/baselines/reference/exportsAndImportsWithUnderscores3(target=es2015).types similarity index 100% rename from tests/baselines/reference/exportsAndImportsWithUnderscores3.types rename to tests/baselines/reference/exportsAndImportsWithUnderscores3(target=es2015).types diff --git a/tests/baselines/reference/exportsAndImportsWithUnderscores3.js b/tests/baselines/reference/exportsAndImportsWithUnderscores3(target=es5).js similarity index 100% rename from tests/baselines/reference/exportsAndImportsWithUnderscores3.js rename to tests/baselines/reference/exportsAndImportsWithUnderscores3(target=es5).js diff --git a/tests/baselines/reference/exportsAndImportsWithUnderscores3(target=es5).symbols b/tests/baselines/reference/exportsAndImportsWithUnderscores3(target=es5).symbols new file mode 100644 index 0000000000000..84fdde2dffded --- /dev/null +++ b/tests/baselines/reference/exportsAndImportsWithUnderscores3(target=es5).symbols @@ -0,0 +1,29 @@ +//// [tests/cases/conformance/es6/modules/exportsAndImportsWithUnderscores3.ts] //// + +=== m1.ts === +var R: any +>R : Symbol(R, Decl(m1.ts, 0, 3)) + +export default R = { +>R : Symbol(R, Decl(m1.ts, 0, 3)) + + "___": 30, +>"___" : Symbol("___", Decl(m1.ts, 1, 20)) + + "___hello": 21, +>"___hello" : Symbol("___hello", Decl(m1.ts, 2, 14)) + + "_hi": 40, +>"_hi" : Symbol("_hi", Decl(m1.ts, 3, 19)) +} + +=== m2.ts === +import R from "./m1"; +>R : Symbol(R, Decl(m2.ts, 0, 6)) + +const { ___, ___hello, _hi } = R; +>___ : Symbol(___, Decl(m2.ts, 1, 7)) +>___hello : Symbol(___hello, Decl(m2.ts, 1, 12)) +>_hi : Symbol(_hi, Decl(m2.ts, 1, 22)) +>R : Symbol(R, Decl(m2.ts, 0, 6)) + diff --git a/tests/baselines/reference/exportsAndImportsWithUnderscores3(target=es5).types b/tests/baselines/reference/exportsAndImportsWithUnderscores3(target=es5).types new file mode 100644 index 0000000000000..ecdc74bbebd06 --- /dev/null +++ b/tests/baselines/reference/exportsAndImportsWithUnderscores3(target=es5).types @@ -0,0 +1,47 @@ +//// [tests/cases/conformance/es6/modules/exportsAndImportsWithUnderscores3.ts] //// + +=== m1.ts === +var R: any +>R : any + +export default R = { +>R = { "___": 30, "___hello": 21, "_hi": 40,} : { ___: number; ___hello: number; _hi: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>R : any +>{ "___": 30, "___hello": 21, "_hi": 40,} : { ___: number; ___hello: number; _hi: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + "___": 30, +>"___" : number +> : ^^^^^^ +>30 : 30 +> : ^^ + + "___hello": 21, +>"___hello" : number +> : ^^^^^^ +>21 : 21 +> : ^^ + + "_hi": 40, +>"_hi" : number +> : ^^^^^^ +>40 : 40 +> : ^^ +} + +=== m2.ts === +import R from "./m1"; +>R : { ___: number; ___hello: number; _hi: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +const { ___, ___hello, _hi } = R; +>___ : number +> : ^^^^^^ +>___hello : number +> : ^^^^^^ +>_hi : number +> : ^^^^^^ +>R : { ___: number; ___hello: number; _hi: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + diff --git a/tests/baselines/reference/exportsAndImportsWithUnderscores4(target=es2015).js b/tests/baselines/reference/exportsAndImportsWithUnderscores4(target=es2015).js new file mode 100644 index 0000000000000..b6c7640590db6 --- /dev/null +++ b/tests/baselines/reference/exportsAndImportsWithUnderscores4(target=es2015).js @@ -0,0 +1,76 @@ +//// [tests/cases/conformance/es6/modules/exportsAndImportsWithUnderscores4.ts] //// + +//// [m1.ts] +declare var console: any; +export function _() { + console.log("_"); +} +export function __() { + console.log("__"); +} +export function ___() { + console.log("___"); +} +export function _hi() { + console.log("_hi"); +} +export function __proto() { + console.log("__proto"); +} +export function __esmodule() { + console.log("__esmodule"); +} +export function ___hello(){ + console.log("___hello"); +} + +//// [m2.ts] +import {_, __, ___hello, __esmodule, __proto, _hi} from "./m1"; +_(); +__(); +___hello(); +__esmodule(); +__proto(); +_hi(); + +//// [m1.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports._ = _; +exports.__ = __; +exports.___ = ___; +exports._hi = _hi; +exports.__proto = __proto; +exports.__esmodule = __esmodule; +exports.___hello = ___hello; +function _() { + console.log("_"); +} +function __() { + console.log("__"); +} +function ___() { + console.log("___"); +} +function _hi() { + console.log("_hi"); +} +function __proto() { + console.log("__proto"); +} +function __esmodule() { + console.log("__esmodule"); +} +function ___hello() { + console.log("___hello"); +} +//// [m2.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const m1_1 = require("./m1"); +(0, m1_1._)(); +(0, m1_1.__)(); +(0, m1_1.___hello)(); +(0, m1_1.__esmodule)(); +(0, m1_1.__proto)(); +(0, m1_1._hi)(); diff --git a/tests/baselines/reference/exportsAndImportsWithUnderscores4.symbols b/tests/baselines/reference/exportsAndImportsWithUnderscores4(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/exportsAndImportsWithUnderscores4.symbols rename to tests/baselines/reference/exportsAndImportsWithUnderscores4(target=es2015).symbols diff --git a/tests/baselines/reference/exportsAndImportsWithUnderscores4.types b/tests/baselines/reference/exportsAndImportsWithUnderscores4(target=es2015).types similarity index 100% rename from tests/baselines/reference/exportsAndImportsWithUnderscores4.types rename to tests/baselines/reference/exportsAndImportsWithUnderscores4(target=es2015).types diff --git a/tests/baselines/reference/exportsAndImportsWithUnderscores4.js b/tests/baselines/reference/exportsAndImportsWithUnderscores4(target=es5).js similarity index 100% rename from tests/baselines/reference/exportsAndImportsWithUnderscores4.js rename to tests/baselines/reference/exportsAndImportsWithUnderscores4(target=es5).js diff --git a/tests/baselines/reference/exportsAndImportsWithUnderscores4(target=es5).symbols b/tests/baselines/reference/exportsAndImportsWithUnderscores4(target=es5).symbols new file mode 100644 index 0000000000000..afefadcac320f --- /dev/null +++ b/tests/baselines/reference/exportsAndImportsWithUnderscores4(target=es5).symbols @@ -0,0 +1,76 @@ +//// [tests/cases/conformance/es6/modules/exportsAndImportsWithUnderscores4.ts] //// + +=== m1.ts === +declare var console: any; +>console : Symbol(console, Decl(m1.ts, 0, 11)) + +export function _() { +>_ : Symbol(_, Decl(m1.ts, 0, 25)) + + console.log("_"); +>console : Symbol(console, Decl(m1.ts, 0, 11)) +} +export function __() { +>__ : Symbol(__, Decl(m1.ts, 3, 1)) + + console.log("__"); +>console : Symbol(console, Decl(m1.ts, 0, 11)) +} +export function ___() { +>___ : Symbol(___, Decl(m1.ts, 6, 1)) + + console.log("___"); +>console : Symbol(console, Decl(m1.ts, 0, 11)) +} +export function _hi() { +>_hi : Symbol(_hi, Decl(m1.ts, 9, 1)) + + console.log("_hi"); +>console : Symbol(console, Decl(m1.ts, 0, 11)) +} +export function __proto() { +>__proto : Symbol(__proto, Decl(m1.ts, 12, 1)) + + console.log("__proto"); +>console : Symbol(console, Decl(m1.ts, 0, 11)) +} +export function __esmodule() { +>__esmodule : Symbol(__esmodule, Decl(m1.ts, 15, 1)) + + console.log("__esmodule"); +>console : Symbol(console, Decl(m1.ts, 0, 11)) +} +export function ___hello(){ +>___hello : Symbol(___hello, Decl(m1.ts, 18, 1)) + + console.log("___hello"); +>console : Symbol(console, Decl(m1.ts, 0, 11)) +} + +=== m2.ts === +import {_, __, ___hello, __esmodule, __proto, _hi} from "./m1"; +>_ : Symbol(_, Decl(m2.ts, 0, 8)) +>__ : Symbol(__, Decl(m2.ts, 0, 10)) +>___hello : Symbol(___hello, Decl(m2.ts, 0, 14)) +>__esmodule : Symbol(__esmodule, Decl(m2.ts, 0, 24)) +>__proto : Symbol(__proto, Decl(m2.ts, 0, 36)) +>_hi : Symbol(_hi, Decl(m2.ts, 0, 45)) + +_(); +>_ : Symbol(_, Decl(m2.ts, 0, 8)) + +__(); +>__ : Symbol(__, Decl(m2.ts, 0, 10)) + +___hello(); +>___hello : Symbol(___hello, Decl(m2.ts, 0, 14)) + +__esmodule(); +>__esmodule : Symbol(__esmodule, Decl(m2.ts, 0, 24)) + +__proto(); +>__proto : Symbol(__proto, Decl(m2.ts, 0, 36)) + +_hi(); +>_hi : Symbol(_hi, Decl(m2.ts, 0, 45)) + diff --git a/tests/baselines/reference/exportsAndImportsWithUnderscores4(target=es5).types b/tests/baselines/reference/exportsAndImportsWithUnderscores4(target=es5).types new file mode 100644 index 0000000000000..2ed803b282fe6 --- /dev/null +++ b/tests/baselines/reference/exportsAndImportsWithUnderscores4(target=es5).types @@ -0,0 +1,156 @@ +//// [tests/cases/conformance/es6/modules/exportsAndImportsWithUnderscores4.ts] //// + +=== m1.ts === +declare var console: any; +>console : any + +export function _() { +>_ : () => void +> : ^^^^^^^^^^ + + console.log("_"); +>console.log("_") : any +>console.log : any +>console : any +> : ^^^ +>log : any +> : ^^^ +>"_" : "_" +> : ^^^ +} +export function __() { +>__ : () => void +> : ^^^^^^^^^^ + + console.log("__"); +>console.log("__") : any +>console.log : any +>console : any +> : ^^^ +>log : any +> : ^^^ +>"__" : "__" +> : ^^^^ +} +export function ___() { +>___ : () => void +> : ^^^^^^^^^^ + + console.log("___"); +>console.log("___") : any +>console.log : any +>console : any +> : ^^^ +>log : any +> : ^^^ +>"___" : "___" +> : ^^^^^ +} +export function _hi() { +>_hi : () => void +> : ^^^^^^^^^^ + + console.log("_hi"); +>console.log("_hi") : any +>console.log : any +>console : any +> : ^^^ +>log : any +> : ^^^ +>"_hi" : "_hi" +> : ^^^^^ +} +export function __proto() { +>__proto : () => void +> : ^^^^^^^^^^ + + console.log("__proto"); +>console.log("__proto") : any +>console.log : any +>console : any +> : ^^^ +>log : any +> : ^^^ +>"__proto" : "__proto" +> : ^^^^^^^^^ +} +export function __esmodule() { +>__esmodule : () => void +> : ^^^^^^^^^^ + + console.log("__esmodule"); +>console.log("__esmodule") : any +>console.log : any +>console : any +> : ^^^ +>log : any +> : ^^^ +>"__esmodule" : "__esmodule" +> : ^^^^^^^^^^^^ +} +export function ___hello(){ +>___hello : () => void +> : ^^^^^^^^^^ + + console.log("___hello"); +>console.log("___hello") : any +>console.log : any +>console : any +> : ^^^ +>log : any +> : ^^^ +>"___hello" : "___hello" +> : ^^^^^^^^^^ +} + +=== m2.ts === +import {_, __, ___hello, __esmodule, __proto, _hi} from "./m1"; +>_ : () => void +> : ^^^^^^^^^^ +>__ : () => void +> : ^^^^^^^^^^ +>___hello : () => void +> : ^^^^^^^^^^ +>__esmodule : () => void +> : ^^^^^^^^^^ +>__proto : () => void +> : ^^^^^^^^^^ +>_hi : () => void +> : ^^^^^^^^^^ + +_(); +>_() : void +> : ^^^^ +>_ : () => void +> : ^^^^^^^^^^ + +__(); +>__() : void +> : ^^^^ +>__ : () => void +> : ^^^^^^^^^^ + +___hello(); +>___hello() : void +> : ^^^^ +>___hello : () => void +> : ^^^^^^^^^^ + +__esmodule(); +>__esmodule() : void +> : ^^^^ +>__esmodule : () => void +> : ^^^^^^^^^^ + +__proto(); +>__proto() : void +> : ^^^^ +>__proto : () => void +> : ^^^^^^^^^^ + +_hi(); +>_hi() : void +> : ^^^^ +>_hi : () => void +> : ^^^^^^^^^^ + diff --git a/tests/baselines/reference/forAwaitPerIterationBindingDownlevel(target=es2015).js b/tests/baselines/reference/forAwaitPerIterationBindingDownlevel(target=es2015).js new file mode 100644 index 0000000000000..ed43792e548f7 --- /dev/null +++ b/tests/baselines/reference/forAwaitPerIterationBindingDownlevel(target=es2015).js @@ -0,0 +1,95 @@ +//// [tests/cases/conformance/statements/for-await-ofStatements/forAwaitPerIterationBindingDownlevel.ts] //// + +//// [forAwaitPerIterationBindingDownlevel.ts] +const sleep = (tm: number) => new Promise(resolve => setTimeout(resolve, tm)); + +async function* gen() { + yield 1; + await sleep(1000); + yield 2; +} + +const log = console.log; + +(async () => { + for await (const outer of gen()) { + log(`I'm loop ${outer}`); + (async () => { + const inner = outer; + await sleep(2000); + if (inner === outer) { + log(`I'm loop ${inner} and I know I'm loop ${outer}`); + } else { + log(`I'm loop ${inner}, but I think I'm loop ${outer}`); + } + })(); + } +})(); + +//// [forAwaitPerIterationBindingDownlevel.js] +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); } +var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } +}; +var __asyncValues = (this && this.__asyncValues) || function (o) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var m = o[Symbol.asyncIterator], i; + return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); + function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } + function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } +}; +const sleep = (tm) => new Promise(resolve => setTimeout(resolve, tm)); +function gen() { + return __asyncGenerator(this, arguments, function* gen_1() { + yield yield __await(1); + yield __await(sleep(1000)); + yield yield __await(2); + }); +} +const log = console.log; +(() => __awaiter(this, void 0, void 0, function* () { + var _a, e_1, _b, _c; + try { + for (var _d = true, _e = __asyncValues(gen()), _f; _f = yield _e.next(), _a = _f.done, !_a; _d = true) { + _c = _f.value; + _d = false; + const outer = _c; + log(`I'm loop ${outer}`); + (() => __awaiter(this, void 0, void 0, function* () { + const inner = outer; + yield sleep(2000); + if (inner === outer) { + log(`I'm loop ${inner} and I know I'm loop ${outer}`); + } + else { + log(`I'm loop ${inner}, but I think I'm loop ${outer}`); + } + }))(); + } + } + catch (e_1_1) { e_1 = { error: e_1_1 }; } + finally { + try { + if (!_d && !_a && (_b = _e.return)) yield _b.call(_e); + } + finally { if (e_1) throw e_1.error; } + } +}))(); diff --git a/tests/baselines/reference/forAwaitPerIterationBindingDownlevel.js b/tests/baselines/reference/forAwaitPerIterationBindingDownlevel(target=es5).js similarity index 100% rename from tests/baselines/reference/forAwaitPerIterationBindingDownlevel.js rename to tests/baselines/reference/forAwaitPerIterationBindingDownlevel(target=es5).js diff --git a/tests/baselines/reference/forwardDeclaredCommonTypes01.errors.txt b/tests/baselines/reference/forwardDeclaredCommonTypes01(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/forwardDeclaredCommonTypes01.errors.txt rename to tests/baselines/reference/forwardDeclaredCommonTypes01(target=es2015).errors.txt diff --git a/tests/baselines/reference/forwardDeclaredCommonTypes01.js b/tests/baselines/reference/forwardDeclaredCommonTypes01(target=es2015).js similarity index 100% rename from tests/baselines/reference/forwardDeclaredCommonTypes01.js rename to tests/baselines/reference/forwardDeclaredCommonTypes01(target=es2015).js diff --git a/tests/baselines/reference/forwardDeclaredCommonTypes01.symbols b/tests/baselines/reference/forwardDeclaredCommonTypes01(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/forwardDeclaredCommonTypes01.symbols rename to tests/baselines/reference/forwardDeclaredCommonTypes01(target=es2015).symbols diff --git a/tests/baselines/reference/forwardDeclaredCommonTypes01.types b/tests/baselines/reference/forwardDeclaredCommonTypes01(target=es2015).types similarity index 100% rename from tests/baselines/reference/forwardDeclaredCommonTypes01.types rename to tests/baselines/reference/forwardDeclaredCommonTypes01(target=es2015).types diff --git a/tests/baselines/reference/forwardDeclaredCommonTypes01(target=es5).errors.txt b/tests/baselines/reference/forwardDeclaredCommonTypes01(target=es5).errors.txt new file mode 100644 index 0000000000000..9da53c7a55f9f --- /dev/null +++ b/tests/baselines/reference/forwardDeclaredCommonTypes01(target=es5).errors.txt @@ -0,0 +1,40 @@ +forwardDeclaredCommonTypes01.ts(9,9): error TS2585: 'Promise' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later. +forwardDeclaredCommonTypes01.ts(10,9): error TS2585: 'Symbol' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later. +forwardDeclaredCommonTypes01.ts(10,17): error TS2585: 'Symbol' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later. +forwardDeclaredCommonTypes01.ts(11,9): error TS2585: 'Map' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later. +forwardDeclaredCommonTypes01.ts(12,9): error TS2585: 'WeakMap' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later. +forwardDeclaredCommonTypes01.ts(13,9): error TS2585: 'Set' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later. +forwardDeclaredCommonTypes01.ts(14,9): error TS2585: 'WeakSet' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later. + + +==== forwardDeclaredCommonTypes01.ts (7 errors) ==== + interface Promise {} + interface Symbol {} + interface Map {} + interface WeakMap {} + interface Set {} + interface WeakSet {} + + (function() { + new Promise; + ~~~~~~~ +!!! error TS2585: 'Promise' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later. + new Symbol; Symbol(); + ~~~~~~ +!!! error TS2585: 'Symbol' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later. + ~~~~~~ +!!! error TS2585: 'Symbol' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later. + new Map; + ~~~ +!!! error TS2585: 'Map' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later. + new WeakMap; + ~~~~~~~ +!!! error TS2585: 'WeakMap' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later. + new Set; + ~~~ +!!! error TS2585: 'Set' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later. + new WeakSet; + ~~~~~~~ +!!! error TS2585: 'WeakSet' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later. + }); + \ No newline at end of file diff --git a/tests/baselines/reference/forwardDeclaredCommonTypes01(target=es5).js b/tests/baselines/reference/forwardDeclaredCommonTypes01(target=es5).js new file mode 100644 index 0000000000000..10ee9961faf0c --- /dev/null +++ b/tests/baselines/reference/forwardDeclaredCommonTypes01(target=es5).js @@ -0,0 +1,30 @@ +//// [tests/cases/compiler/forwardDeclaredCommonTypes01.ts] //// + +//// [forwardDeclaredCommonTypes01.ts] +interface Promise {} +interface Symbol {} +interface Map {} +interface WeakMap {} +interface Set {} +interface WeakSet {} + +(function() { + new Promise; + new Symbol; Symbol(); + new Map; + new WeakMap; + new Set; + new WeakSet; +}); + + +//// [forwardDeclaredCommonTypes01.js] +(function () { + new Promise; + new Symbol; + Symbol(); + new Map; + new WeakMap; + new Set; + new WeakSet; +}); diff --git a/tests/baselines/reference/forwardDeclaredCommonTypes01(target=es5).symbols b/tests/baselines/reference/forwardDeclaredCommonTypes01(target=es5).symbols new file mode 100644 index 0000000000000..adc48b033356f --- /dev/null +++ b/tests/baselines/reference/forwardDeclaredCommonTypes01(target=es5).symbols @@ -0,0 +1,37 @@ +//// [tests/cases/compiler/forwardDeclaredCommonTypes01.ts] //// + +=== forwardDeclaredCommonTypes01.ts === +interface Promise {} +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(forwardDeclaredCommonTypes01.ts, 0, 0)) +>T : Symbol(T, Decl(lib.es5.d.ts, --, --), Decl(forwardDeclaredCommonTypes01.ts, 0, 18)) + +interface Symbol {} +>Symbol : Symbol(Symbol, Decl(lib.es5.d.ts, --, --), Decl(forwardDeclaredCommonTypes01.ts, 0, 23)) + +interface Map {} +>Map : Symbol(Map, Decl(forwardDeclaredCommonTypes01.ts, 1, 19)) +>K : Symbol(K, Decl(forwardDeclaredCommonTypes01.ts, 2, 14)) +>V : Symbol(V, Decl(forwardDeclaredCommonTypes01.ts, 2, 16)) + +interface WeakMap {} +>WeakMap : Symbol(WeakMap, Decl(forwardDeclaredCommonTypes01.ts, 2, 22)) +>K : Symbol(K, Decl(forwardDeclaredCommonTypes01.ts, 3, 18)) +>V : Symbol(V, Decl(forwardDeclaredCommonTypes01.ts, 3, 35)) + +interface Set {} +>Set : Symbol(Set, Decl(forwardDeclaredCommonTypes01.ts, 3, 41)) +>T : Symbol(T, Decl(forwardDeclaredCommonTypes01.ts, 4, 14)) + +interface WeakSet {} +>WeakSet : Symbol(WeakSet, Decl(forwardDeclaredCommonTypes01.ts, 4, 19)) +>T : Symbol(T, Decl(forwardDeclaredCommonTypes01.ts, 5, 18)) + +(function() { + new Promise; + new Symbol; Symbol(); + new Map; + new WeakMap; + new Set; + new WeakSet; +}); + diff --git a/tests/baselines/reference/forwardDeclaredCommonTypes01(target=es5).types b/tests/baselines/reference/forwardDeclaredCommonTypes01(target=es5).types new file mode 100644 index 0000000000000..05337627fe48f --- /dev/null +++ b/tests/baselines/reference/forwardDeclaredCommonTypes01(target=es5).types @@ -0,0 +1,58 @@ +//// [tests/cases/compiler/forwardDeclaredCommonTypes01.ts] //// + +=== forwardDeclaredCommonTypes01.ts === +interface Promise {} +interface Symbol {} +interface Map {} +interface WeakMap {} +interface Set {} +interface WeakSet {} + +(function() { +>(function() { new Promise; new Symbol; Symbol(); new Map; new WeakMap; new Set; new WeakSet;}) : () => void +> : ^^^^^^^^^^ +>function() { new Promise; new Symbol; Symbol(); new Map; new WeakMap; new Set; new WeakSet;} : () => void +> : ^^^^^^^^^^ + + new Promise; +>new Promise : any +> : ^^^ +>Promise : any +> : ^^^ + + new Symbol; Symbol(); +>new Symbol : any +> : ^^^ +>Symbol : any +> : ^^^ +>Symbol() : any +> : ^^^ +>Symbol : any +> : ^^^ + + new Map; +>new Map : any +> : ^^^ +>Map : any +> : ^^^ + + new WeakMap; +>new WeakMap : any +> : ^^^ +>WeakMap : any +> : ^^^ + + new Set; +>new Set : any +> : ^^^ +>Set : any +> : ^^^ + + new WeakSet; +>new WeakSet : any +> : ^^^ +>WeakSet : any +> : ^^^ + +}); + diff --git a/tests/baselines/reference/functionsMissingReturnStatementsAndExpressions.errors.txt b/tests/baselines/reference/functionsMissingReturnStatementsAndExpressions(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/functionsMissingReturnStatementsAndExpressions.errors.txt rename to tests/baselines/reference/functionsMissingReturnStatementsAndExpressions(target=es2015).errors.txt diff --git a/tests/baselines/reference/functionsMissingReturnStatementsAndExpressions(target=es2015).js b/tests/baselines/reference/functionsMissingReturnStatementsAndExpressions(target=es2015).js new file mode 100644 index 0000000000000..36057abd411fc --- /dev/null +++ b/tests/baselines/reference/functionsMissingReturnStatementsAndExpressions(target=es2015).js @@ -0,0 +1,283 @@ +//// [tests/cases/compiler/functionsMissingReturnStatementsAndExpressions.ts] //// + +//// [functionsMissingReturnStatementsAndExpressions.ts] +function f1(): string { + // errors because there are no return statements +} + +function f2(): string { + // Permissible; returns undefined. + return; +} + +function f3(): string { + return "Okay, because this is a return expression."; +} + +function f4(): void { + // Fine since we are typed void. +} + +function f5(): void { + // Fine since we are typed void. + return; +} + +function f6(): void { + // Fine since we are typed void and return undefined + return undefined; +} + +function f7(): void { + // Fine since we are typed void and return null + return null; +} + +function f8(): any { + // Fine since are typed any. + return; +} + +function f9(): any { + // Fine since we are typed any and return undefined + return undefined; +} + +function f10(): void { + // Fine since we are typed any and return null + return null; +} + +function f11(): string { + // Fine since we consist of a single throw statement. + throw undefined; +} + +function f12(): void { + // Fine since we consist of a single throw statement. + throw undefined; +} + +function f13(): any { + // Fine since we consist of a single throw statement. + throw undefined; +} + +function f14(): number { + // Not fine, since we can *only* consist of a single throw statement + // if no return statements are present but we are annotated. + throw undefined; + throw null; +} + +function f15(): number { + // Fine, since we have a return statement somewhere. + throw undefined; + throw null; + return; +} + + +function f16() { + // Okay; not type annotated. +} + +function f17() { + // Okay; not type annotated. + return; +} + +function f18() { + return "Okay, not type annotated."; +} + +function f19(): void | number { + // Okay; function return type is union containing void +} + +function f20(): any | number { + // Okay; function return type is union containing any +} + +function f21(): number | string { + // Not okay; union does not contain void or any +} + +function f22(): undefined { + // Okay; return type allows implicit return of undefined +} + +function f23(): undefined | number { + // Error; because `undefined | number` becomes `number` without strictNullChecks. +} + +const f30: () => undefined = () => { + // Ok, contextual type for implicit return is `undefined` +} + +const f31: () => undefined = () => { + // Ok, contextual type for expression-less return is `undefined` + return; +} + +const f32: () => undefined | number = () => { + // Error, contextual type for implicit return isn't just `undefined` +} + +const f33: () => undefined | number = () => { + // Error, contextual type for expression-less return isn't just `undefined` + return; +} + +class C { + public get m1() { + // Errors; get accessors must return a value. + } + + public get m2() { + // Permissible; returns undefined. + return; + } + + public get m3() { + return "Okay, because this is a return expression."; + } + + public get m4() { + // Fine since this consists of a single throw statement. + throw null; + } + + public get m5() { + // Not fine, since we can *only* consist of a single throw statement + // if no return statements are present but we are a get accessor. + throw null; + throw undefined. + } +} + + +//// [functionsMissingReturnStatementsAndExpressions.js] +function f1() { + // errors because there are no return statements +} +function f2() { + // Permissible; returns undefined. + return; +} +function f3() { + return "Okay, because this is a return expression."; +} +function f4() { + // Fine since we are typed void. +} +function f5() { + // Fine since we are typed void. + return; +} +function f6() { + // Fine since we are typed void and return undefined + return undefined; +} +function f7() { + // Fine since we are typed void and return null + return null; +} +function f8() { + // Fine since are typed any. + return; +} +function f9() { + // Fine since we are typed any and return undefined + return undefined; +} +function f10() { + // Fine since we are typed any and return null + return null; +} +function f11() { + // Fine since we consist of a single throw statement. + throw undefined; +} +function f12() { + // Fine since we consist of a single throw statement. + throw undefined; +} +function f13() { + // Fine since we consist of a single throw statement. + throw undefined; +} +function f14() { + // Not fine, since we can *only* consist of a single throw statement + // if no return statements are present but we are annotated. + throw undefined; + throw null; +} +function f15() { + // Fine, since we have a return statement somewhere. + throw undefined; + throw null; + return; +} +function f16() { + // Okay; not type annotated. +} +function f17() { + // Okay; not type annotated. + return; +} +function f18() { + return "Okay, not type annotated."; +} +function f19() { + // Okay; function return type is union containing void +} +function f20() { + // Okay; function return type is union containing any +} +function f21() { + // Not okay; union does not contain void or any +} +function f22() { + // Okay; return type allows implicit return of undefined +} +function f23() { + // Error; because `undefined | number` becomes `number` without strictNullChecks. +} +const f30 = () => { + // Ok, contextual type for implicit return is `undefined` +}; +const f31 = () => { + // Ok, contextual type for expression-less return is `undefined` + return; +}; +const f32 = () => { + // Error, contextual type for implicit return isn't just `undefined` +}; +const f33 = () => { + // Error, contextual type for expression-less return isn't just `undefined` + return; +}; +class C { + get m1() { + // Errors; get accessors must return a value. + } + get m2() { + // Permissible; returns undefined. + return; + } + get m3() { + return "Okay, because this is a return expression."; + } + get m4() { + // Fine since this consists of a single throw statement. + throw null; + } + get m5() { + // Not fine, since we can *only* consist of a single throw statement + // if no return statements are present but we are a get accessor. + throw null; + throw undefined. + ; + } +} diff --git a/tests/baselines/reference/functionsMissingReturnStatementsAndExpressions.symbols b/tests/baselines/reference/functionsMissingReturnStatementsAndExpressions(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/functionsMissingReturnStatementsAndExpressions.symbols rename to tests/baselines/reference/functionsMissingReturnStatementsAndExpressions(target=es2015).symbols diff --git a/tests/baselines/reference/functionsMissingReturnStatementsAndExpressions.types b/tests/baselines/reference/functionsMissingReturnStatementsAndExpressions(target=es2015).types similarity index 100% rename from tests/baselines/reference/functionsMissingReturnStatementsAndExpressions.types rename to tests/baselines/reference/functionsMissingReturnStatementsAndExpressions(target=es2015).types diff --git a/tests/baselines/reference/functionsMissingReturnStatementsAndExpressions(target=es5).errors.txt b/tests/baselines/reference/functionsMissingReturnStatementsAndExpressions(target=es5).errors.txt new file mode 100644 index 0000000000000..6d2c2e9bad19e --- /dev/null +++ b/tests/baselines/reference/functionsMissingReturnStatementsAndExpressions(target=es5).errors.txt @@ -0,0 +1,186 @@ +functionsMissingReturnStatementsAndExpressions.ts(1,16): error TS2355: A function whose declared type is neither 'undefined', 'void', nor 'any' must return a value. +functionsMissingReturnStatementsAndExpressions.ts(99,17): error TS2355: A function whose declared type is neither 'undefined', 'void', nor 'any' must return a value. +functionsMissingReturnStatementsAndExpressions.ts(107,17): error TS2355: A function whose declared type is neither 'undefined', 'void', nor 'any' must return a value. +functionsMissingReturnStatementsAndExpressions.ts(120,7): error TS2322: Type '() => void' is not assignable to type '() => number'. + Type 'void' is not assignable to type 'number'. +functionsMissingReturnStatementsAndExpressions.ts(124,7): error TS2322: Type '() => void' is not assignable to type '() => number'. + Type 'void' is not assignable to type 'number'. +functionsMissingReturnStatementsAndExpressions.ts(130,16): error TS2378: A 'get' accessor must return a value. +functionsMissingReturnStatementsAndExpressions.ts(152,15): error TS18050: The value 'undefined' cannot be used here. +functionsMissingReturnStatementsAndExpressions.ts(153,5): error TS1003: Identifier expected. + + +==== functionsMissingReturnStatementsAndExpressions.ts (8 errors) ==== + function f1(): string { + ~~~~~~ +!!! error TS2355: A function whose declared type is neither 'undefined', 'void', nor 'any' must return a value. + // errors because there are no return statements + } + + function f2(): string { + // Permissible; returns undefined. + return; + } + + function f3(): string { + return "Okay, because this is a return expression."; + } + + function f4(): void { + // Fine since we are typed void. + } + + function f5(): void { + // Fine since we are typed void. + return; + } + + function f6(): void { + // Fine since we are typed void and return undefined + return undefined; + } + + function f7(): void { + // Fine since we are typed void and return null + return null; + } + + function f8(): any { + // Fine since are typed any. + return; + } + + function f9(): any { + // Fine since we are typed any and return undefined + return undefined; + } + + function f10(): void { + // Fine since we are typed any and return null + return null; + } + + function f11(): string { + // Fine since we consist of a single throw statement. + throw undefined; + } + + function f12(): void { + // Fine since we consist of a single throw statement. + throw undefined; + } + + function f13(): any { + // Fine since we consist of a single throw statement. + throw undefined; + } + + function f14(): number { + // Not fine, since we can *only* consist of a single throw statement + // if no return statements are present but we are annotated. + throw undefined; + throw null; + } + + function f15(): number { + // Fine, since we have a return statement somewhere. + throw undefined; + throw null; + return; + } + + + function f16() { + // Okay; not type annotated. + } + + function f17() { + // Okay; not type annotated. + return; + } + + function f18() { + return "Okay, not type annotated."; + } + + function f19(): void | number { + // Okay; function return type is union containing void + } + + function f20(): any | number { + // Okay; function return type is union containing any + } + + function f21(): number | string { + ~~~~~~~~~~~~~~~ +!!! error TS2355: A function whose declared type is neither 'undefined', 'void', nor 'any' must return a value. + // Not okay; union does not contain void or any + } + + function f22(): undefined { + // Okay; return type allows implicit return of undefined + } + + function f23(): undefined | number { + ~~~~~~~~~~~~~~~~~~ +!!! error TS2355: A function whose declared type is neither 'undefined', 'void', nor 'any' must return a value. + // Error; because `undefined | number` becomes `number` without strictNullChecks. + } + + const f30: () => undefined = () => { + // Ok, contextual type for implicit return is `undefined` + } + + const f31: () => undefined = () => { + // Ok, contextual type for expression-less return is `undefined` + return; + } + + const f32: () => undefined | number = () => { + ~~~ +!!! error TS2322: Type '() => void' is not assignable to type '() => number'. +!!! error TS2322: Type 'void' is not assignable to type 'number'. + // Error, contextual type for implicit return isn't just `undefined` + } + + const f33: () => undefined | number = () => { + ~~~ +!!! error TS2322: Type '() => void' is not assignable to type '() => number'. +!!! error TS2322: Type 'void' is not assignable to type 'number'. + // Error, contextual type for expression-less return isn't just `undefined` + return; + } + + class C { + public get m1() { + ~~ +!!! error TS2378: A 'get' accessor must return a value. + // Errors; get accessors must return a value. + } + + public get m2() { + // Permissible; returns undefined. + return; + } + + public get m3() { + return "Okay, because this is a return expression."; + } + + public get m4() { + // Fine since this consists of a single throw statement. + throw null; + } + + public get m5() { + // Not fine, since we can *only* consist of a single throw statement + // if no return statements are present but we are a get accessor. + throw null; + throw undefined. + ~~~~~~~~~ +!!! error TS18050: The value 'undefined' cannot be used here. + } + ~ +!!! error TS1003: Identifier expected. + } + \ No newline at end of file diff --git a/tests/baselines/reference/functionsMissingReturnStatementsAndExpressions.js b/tests/baselines/reference/functionsMissingReturnStatementsAndExpressions(target=es5).js similarity index 100% rename from tests/baselines/reference/functionsMissingReturnStatementsAndExpressions.js rename to tests/baselines/reference/functionsMissingReturnStatementsAndExpressions(target=es5).js diff --git a/tests/baselines/reference/functionsMissingReturnStatementsAndExpressions(target=es5).symbols b/tests/baselines/reference/functionsMissingReturnStatementsAndExpressions(target=es5).symbols new file mode 100644 index 0000000000000..b0620decbf3e5 --- /dev/null +++ b/tests/baselines/reference/functionsMissingReturnStatementsAndExpressions(target=es5).symbols @@ -0,0 +1,234 @@ +//// [tests/cases/compiler/functionsMissingReturnStatementsAndExpressions.ts] //// + +=== functionsMissingReturnStatementsAndExpressions.ts === +function f1(): string { +>f1 : Symbol(f1, Decl(functionsMissingReturnStatementsAndExpressions.ts, 0, 0)) + + // errors because there are no return statements +} + +function f2(): string { +>f2 : Symbol(f2, Decl(functionsMissingReturnStatementsAndExpressions.ts, 2, 1)) + + // Permissible; returns undefined. + return; +} + +function f3(): string { +>f3 : Symbol(f3, Decl(functionsMissingReturnStatementsAndExpressions.ts, 7, 1)) + + return "Okay, because this is a return expression."; +} + +function f4(): void { +>f4 : Symbol(f4, Decl(functionsMissingReturnStatementsAndExpressions.ts, 11, 1)) + + // Fine since we are typed void. +} + +function f5(): void { +>f5 : Symbol(f5, Decl(functionsMissingReturnStatementsAndExpressions.ts, 15, 1)) + + // Fine since we are typed void. + return; +} + +function f6(): void { +>f6 : Symbol(f6, Decl(functionsMissingReturnStatementsAndExpressions.ts, 20, 1)) + + // Fine since we are typed void and return undefined + return undefined; +>undefined : Symbol(undefined) +} + +function f7(): void { +>f7 : Symbol(f7, Decl(functionsMissingReturnStatementsAndExpressions.ts, 25, 1)) + + // Fine since we are typed void and return null + return null; +} + +function f8(): any { +>f8 : Symbol(f8, Decl(functionsMissingReturnStatementsAndExpressions.ts, 30, 1)) + + // Fine since are typed any. + return; +} + +function f9(): any { +>f9 : Symbol(f9, Decl(functionsMissingReturnStatementsAndExpressions.ts, 35, 1)) + + // Fine since we are typed any and return undefined + return undefined; +>undefined : Symbol(undefined) +} + +function f10(): void { +>f10 : Symbol(f10, Decl(functionsMissingReturnStatementsAndExpressions.ts, 40, 1)) + + // Fine since we are typed any and return null + return null; +} + +function f11(): string { +>f11 : Symbol(f11, Decl(functionsMissingReturnStatementsAndExpressions.ts, 45, 1)) + + // Fine since we consist of a single throw statement. + throw undefined; +>undefined : Symbol(undefined) +} + +function f12(): void { +>f12 : Symbol(f12, Decl(functionsMissingReturnStatementsAndExpressions.ts, 50, 1)) + + // Fine since we consist of a single throw statement. + throw undefined; +>undefined : Symbol(undefined) +} + +function f13(): any { +>f13 : Symbol(f13, Decl(functionsMissingReturnStatementsAndExpressions.ts, 55, 1)) + + // Fine since we consist of a single throw statement. + throw undefined; +>undefined : Symbol(undefined) +} + +function f14(): number { +>f14 : Symbol(f14, Decl(functionsMissingReturnStatementsAndExpressions.ts, 60, 1)) + + // Not fine, since we can *only* consist of a single throw statement + // if no return statements are present but we are annotated. + throw undefined; +>undefined : Symbol(undefined) + + throw null; +} + +function f15(): number { +>f15 : Symbol(f15, Decl(functionsMissingReturnStatementsAndExpressions.ts, 67, 1)) + + // Fine, since we have a return statement somewhere. + throw undefined; +>undefined : Symbol(undefined) + + throw null; + return; +} + + +function f16() { +>f16 : Symbol(f16, Decl(functionsMissingReturnStatementsAndExpressions.ts, 74, 1)) + + // Okay; not type annotated. +} + +function f17() { +>f17 : Symbol(f17, Decl(functionsMissingReturnStatementsAndExpressions.ts, 79, 1)) + + // Okay; not type annotated. + return; +} + +function f18() { +>f18 : Symbol(f18, Decl(functionsMissingReturnStatementsAndExpressions.ts, 84, 1)) + + return "Okay, not type annotated."; +} + +function f19(): void | number { +>f19 : Symbol(f19, Decl(functionsMissingReturnStatementsAndExpressions.ts, 88, 1)) + + // Okay; function return type is union containing void +} + +function f20(): any | number { +>f20 : Symbol(f20, Decl(functionsMissingReturnStatementsAndExpressions.ts, 92, 1)) + + // Okay; function return type is union containing any +} + +function f21(): number | string { +>f21 : Symbol(f21, Decl(functionsMissingReturnStatementsAndExpressions.ts, 96, 1)) + + // Not okay; union does not contain void or any +} + +function f22(): undefined { +>f22 : Symbol(f22, Decl(functionsMissingReturnStatementsAndExpressions.ts, 100, 1)) + + // Okay; return type allows implicit return of undefined +} + +function f23(): undefined | number { +>f23 : Symbol(f23, Decl(functionsMissingReturnStatementsAndExpressions.ts, 104, 1)) + + // Error; because `undefined | number` becomes `number` without strictNullChecks. +} + +const f30: () => undefined = () => { +>f30 : Symbol(f30, Decl(functionsMissingReturnStatementsAndExpressions.ts, 110, 5)) + + // Ok, contextual type for implicit return is `undefined` +} + +const f31: () => undefined = () => { +>f31 : Symbol(f31, Decl(functionsMissingReturnStatementsAndExpressions.ts, 114, 5)) + + // Ok, contextual type for expression-less return is `undefined` + return; +} + +const f32: () => undefined | number = () => { +>f32 : Symbol(f32, Decl(functionsMissingReturnStatementsAndExpressions.ts, 119, 5)) + + // Error, contextual type for implicit return isn't just `undefined` +} + +const f33: () => undefined | number = () => { +>f33 : Symbol(f33, Decl(functionsMissingReturnStatementsAndExpressions.ts, 123, 5)) + + // Error, contextual type for expression-less return isn't just `undefined` + return; +} + +class C { +>C : Symbol(C, Decl(functionsMissingReturnStatementsAndExpressions.ts, 126, 1)) + + public get m1() { +>m1 : Symbol(C.m1, Decl(functionsMissingReturnStatementsAndExpressions.ts, 128, 9)) + + // Errors; get accessors must return a value. + } + + public get m2() { +>m2 : Symbol(C.m2, Decl(functionsMissingReturnStatementsAndExpressions.ts, 131, 5)) + + // Permissible; returns undefined. + return; + } + + public get m3() { +>m3 : Symbol(C.m3, Decl(functionsMissingReturnStatementsAndExpressions.ts, 136, 5)) + + return "Okay, because this is a return expression."; + } + + public get m4() { +>m4 : Symbol(C.m4, Decl(functionsMissingReturnStatementsAndExpressions.ts, 140, 5)) + + // Fine since this consists of a single throw statement. + throw null; + } + + public get m5() { +>m5 : Symbol(C.m5, Decl(functionsMissingReturnStatementsAndExpressions.ts, 145, 5)) + + // Not fine, since we can *only* consist of a single throw statement + // if no return statements are present but we are a get accessor. + throw null; + throw undefined. +>undefined : Symbol(undefined) + } +} + diff --git a/tests/baselines/reference/functionsMissingReturnStatementsAndExpressions(target=es5).types b/tests/baselines/reference/functionsMissingReturnStatementsAndExpressions(target=es5).types new file mode 100644 index 0000000000000..26e2c3f114be2 --- /dev/null +++ b/tests/baselines/reference/functionsMissingReturnStatementsAndExpressions(target=es5).types @@ -0,0 +1,293 @@ +//// [tests/cases/compiler/functionsMissingReturnStatementsAndExpressions.ts] //// + +=== functionsMissingReturnStatementsAndExpressions.ts === +function f1(): string { +>f1 : () => string +> : ^^^^^^ + + // errors because there are no return statements +} + +function f2(): string { +>f2 : () => string +> : ^^^^^^ + + // Permissible; returns undefined. + return; +} + +function f3(): string { +>f3 : () => string +> : ^^^^^^ + + return "Okay, because this is a return expression."; +>"Okay, because this is a return expression." : "Okay, because this is a return expression." +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +} + +function f4(): void { +>f4 : () => void +> : ^^^^^^ + + // Fine since we are typed void. +} + +function f5(): void { +>f5 : () => void +> : ^^^^^^ + + // Fine since we are typed void. + return; +} + +function f6(): void { +>f6 : () => void +> : ^^^^^^ + + // Fine since we are typed void and return undefined + return undefined; +>undefined : undefined +> : ^^^^^^^^^ +} + +function f7(): void { +>f7 : () => void +> : ^^^^^^ + + // Fine since we are typed void and return null + return null; +} + +function f8(): any { +>f8 : () => any +> : ^^^^^^ + + // Fine since are typed any. + return; +} + +function f9(): any { +>f9 : () => any +> : ^^^^^^ + + // Fine since we are typed any and return undefined + return undefined; +>undefined : undefined +> : ^^^^^^^^^ +} + +function f10(): void { +>f10 : () => void +> : ^^^^^^ + + // Fine since we are typed any and return null + return null; +} + +function f11(): string { +>f11 : () => string +> : ^^^^^^ + + // Fine since we consist of a single throw statement. + throw undefined; +>undefined : undefined +> : ^^^^^^^^^ +} + +function f12(): void { +>f12 : () => void +> : ^^^^^^ + + // Fine since we consist of a single throw statement. + throw undefined; +>undefined : undefined +> : ^^^^^^^^^ +} + +function f13(): any { +>f13 : () => any +> : ^^^^^^ + + // Fine since we consist of a single throw statement. + throw undefined; +>undefined : undefined +> : ^^^^^^^^^ +} + +function f14(): number { +>f14 : () => number +> : ^^^^^^ + + // Not fine, since we can *only* consist of a single throw statement + // if no return statements are present but we are annotated. + throw undefined; +>undefined : undefined +> : ^^^^^^^^^ + + throw null; +} + +function f15(): number { +>f15 : () => number +> : ^^^^^^ + + // Fine, since we have a return statement somewhere. + throw undefined; +>undefined : undefined +> : ^^^^^^^^^ + + throw null; + return; +} + + +function f16() { +>f16 : () => void +> : ^^^^^^^^^^ + + // Okay; not type annotated. +} + +function f17() { +>f17 : () => void +> : ^^^^^^^^^^ + + // Okay; not type annotated. + return; +} + +function f18() { +>f18 : () => string +> : ^^^^^^^^^^^^ + + return "Okay, not type annotated."; +>"Okay, not type annotated." : "Okay, not type annotated." +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +} + +function f19(): void | number { +>f19 : () => void | number +> : ^^^^^^ + + // Okay; function return type is union containing void +} + +function f20(): any | number { +>f20 : () => any | number +> : ^^^^^^ + + // Okay; function return type is union containing any +} + +function f21(): number | string { +>f21 : () => number | string +> : ^^^^^^ + + // Not okay; union does not contain void or any +} + +function f22(): undefined { +>f22 : () => undefined +> : ^^^^^^ + + // Okay; return type allows implicit return of undefined +} + +function f23(): undefined | number { +>f23 : () => undefined | number +> : ^^^^^^ + + // Error; because `undefined | number` becomes `number` without strictNullChecks. +} + +const f30: () => undefined = () => { +>f30 : () => undefined +> : ^^^^^^ +>() => { // Ok, contextual type for implicit return is `undefined`} : () => undefined +> : ^^^^^^^^^^^^^^^ + + // Ok, contextual type for implicit return is `undefined` +} + +const f31: () => undefined = () => { +>f31 : () => undefined +> : ^^^^^^ +>() => { // Ok, contextual type for expression-less return is `undefined` return;} : () => undefined +> : ^^^^^^^^^^^^^^^ + + // Ok, contextual type for expression-less return is `undefined` + return; +} + +const f32: () => undefined | number = () => { +>f32 : () => undefined | number +> : ^^^^^^ +>() => { // Error, contextual type for implicit return isn't just `undefined`} : () => void +> : ^^^^^^^^^^ + + // Error, contextual type for implicit return isn't just `undefined` +} + +const f33: () => undefined | number = () => { +>f33 : () => undefined | number +> : ^^^^^^ +>() => { // Error, contextual type for expression-less return isn't just `undefined` return;} : () => void +> : ^^^^^^^^^^ + + // Error, contextual type for expression-less return isn't just `undefined` + return; +} + +class C { +>C : C +> : ^ + + public get m1() { +>m1 : void +> : ^^^^ + + // Errors; get accessors must return a value. + } + + public get m2() { +>m2 : void +> : ^^^^ + + // Permissible; returns undefined. + return; + } + + public get m3() { +>m3 : string +> : ^^^^^^ + + return "Okay, because this is a return expression."; +>"Okay, because this is a return expression." : "Okay, because this is a return expression." +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + } + + public get m4() { +>m4 : void +> : ^^^^ + + // Fine since this consists of a single throw statement. + throw null; + } + + public get m5() { +>m5 : void +> : ^^^^ + + // Not fine, since we can *only* consist of a single throw statement + // if no return statements are present but we are a get accessor. + throw null; + throw undefined. +>undefined. : any +> : ^^^ +>undefined : undefined +> : ^^^^^^^^^ + } +> : any +> : ^^^ +} + diff --git a/tests/baselines/reference/generatorTransformFinalLabel(target=es2015).js b/tests/baselines/reference/generatorTransformFinalLabel(target=es2015).js new file mode 100644 index 0000000000000..f546f14e861b3 --- /dev/null +++ b/tests/baselines/reference/generatorTransformFinalLabel(target=es2015).js @@ -0,0 +1,23 @@ +//// [tests/cases/compiler/generatorTransformFinalLabel.ts] //// + +//// [generatorTransformFinalLabel.ts] +async function test(skip: boolean) { + if (!skip) { + await 1 + } + else { + throw Error('test') + } +} + +//// [generatorTransformFinalLabel.js] +function test(skip) { + return __awaiter(this, void 0, void 0, function* () { + if (!skip) { + yield 1; + } + else { + throw Error('test'); + } + }); +} diff --git a/tests/baselines/reference/generatorTransformFinalLabel.symbols b/tests/baselines/reference/generatorTransformFinalLabel(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/generatorTransformFinalLabel.symbols rename to tests/baselines/reference/generatorTransformFinalLabel(target=es2015).symbols diff --git a/tests/baselines/reference/generatorTransformFinalLabel.types b/tests/baselines/reference/generatorTransformFinalLabel(target=es2015).types similarity index 100% rename from tests/baselines/reference/generatorTransformFinalLabel.types rename to tests/baselines/reference/generatorTransformFinalLabel(target=es2015).types diff --git a/tests/baselines/reference/generatorTransformFinalLabel.js b/tests/baselines/reference/generatorTransformFinalLabel(target=es5).js similarity index 100% rename from tests/baselines/reference/generatorTransformFinalLabel.js rename to tests/baselines/reference/generatorTransformFinalLabel(target=es5).js diff --git a/tests/baselines/reference/generatorTransformFinalLabel(target=es5).symbols b/tests/baselines/reference/generatorTransformFinalLabel(target=es5).symbols new file mode 100644 index 0000000000000..543fa262fa438 --- /dev/null +++ b/tests/baselines/reference/generatorTransformFinalLabel(target=es5).symbols @@ -0,0 +1,17 @@ +//// [tests/cases/compiler/generatorTransformFinalLabel.ts] //// + +=== generatorTransformFinalLabel.ts === +async function test(skip: boolean) { +>test : Symbol(test, Decl(generatorTransformFinalLabel.ts, 0, 0)) +>skip : Symbol(skip, Decl(generatorTransformFinalLabel.ts, 0, 20)) + + if (!skip) { +>skip : Symbol(skip, Decl(generatorTransformFinalLabel.ts, 0, 20)) + + await 1 + } + else { + throw Error('test') +>Error : Symbol(Error, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) + } +} diff --git a/tests/baselines/reference/generatorTransformFinalLabel(target=es5).types b/tests/baselines/reference/generatorTransformFinalLabel(target=es5).types new file mode 100644 index 0000000000000..af4ab142de8cf --- /dev/null +++ b/tests/baselines/reference/generatorTransformFinalLabel(target=es5).types @@ -0,0 +1,31 @@ +//// [tests/cases/compiler/generatorTransformFinalLabel.ts] //// + +=== generatorTransformFinalLabel.ts === +async function test(skip: boolean) { +>test : (skip: boolean) => Promise +> : ^ ^^ ^^^^^^^^^^^^^^^^^^ +>skip : boolean +> : ^^^^^^^ + + if (!skip) { +>!skip : boolean +> : ^^^^^^^ +>skip : boolean +> : ^^^^^^^ + + await 1 +>await 1 : 1 +> : ^ +>1 : 1 +> : ^ + } + else { + throw Error('test') +>Error('test') : Error +> : ^^^^^ +>Error : ErrorConstructor +> : ^^^^^^^^^^^^^^^^ +>'test' : "test" +> : ^^^^^^ + } +} diff --git a/tests/baselines/reference/getSetAccessorContextualTyping.errors.txt b/tests/baselines/reference/getSetAccessorContextualTyping(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/getSetAccessorContextualTyping.errors.txt rename to tests/baselines/reference/getSetAccessorContextualTyping(target=es2015).errors.txt diff --git a/tests/baselines/reference/getSetAccessorContextualTyping(target=es2015).js b/tests/baselines/reference/getSetAccessorContextualTyping(target=es2015).js new file mode 100644 index 0000000000000..0a5f6624b6c69 --- /dev/null +++ b/tests/baselines/reference/getSetAccessorContextualTyping(target=es2015).js @@ -0,0 +1,51 @@ +//// [tests/cases/conformance/expressions/contextualTyping/getSetAccessorContextualTyping.ts] //// + +//// [getSetAccessorContextualTyping.ts] +// In the body of a get accessor with no return type annotation, +// if a matching set accessor exists and that set accessor has a parameter type annotation, +// return expressions are contextually typed by the type given in the set accessor's parameter type annotation. + +class C { + set X(x: number) { } + get X() { + return "string"; // Error; get contextual type by set accessor parameter type annotation + } + + set Y(y) { } + get Y() { + return true; + } + + set W(w) { } + get W(): boolean { + return true; + } + + set Z(z: number) { } + get Z() { + return 1; + } +} + +//// [getSetAccessorContextualTyping.js] +// In the body of a get accessor with no return type annotation, +// if a matching set accessor exists and that set accessor has a parameter type annotation, +// return expressions are contextually typed by the type given in the set accessor's parameter type annotation. +class C { + set X(x) { } + get X() { + return "string"; // Error; get contextual type by set accessor parameter type annotation + } + set Y(y) { } + get Y() { + return true; + } + set W(w) { } + get W() { + return true; + } + set Z(z) { } + get Z() { + return 1; + } +} diff --git a/tests/baselines/reference/getSetAccessorContextualTyping.symbols b/tests/baselines/reference/getSetAccessorContextualTyping(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/getSetAccessorContextualTyping.symbols rename to tests/baselines/reference/getSetAccessorContextualTyping(target=es2015).symbols diff --git a/tests/baselines/reference/getSetAccessorContextualTyping.types b/tests/baselines/reference/getSetAccessorContextualTyping(target=es2015).types similarity index 100% rename from tests/baselines/reference/getSetAccessorContextualTyping.types rename to tests/baselines/reference/getSetAccessorContextualTyping(target=es2015).types diff --git a/tests/baselines/reference/getSetAccessorContextualTyping(target=es5).errors.txt b/tests/baselines/reference/getSetAccessorContextualTyping(target=es5).errors.txt new file mode 100644 index 0000000000000..24885d29dceb6 --- /dev/null +++ b/tests/baselines/reference/getSetAccessorContextualTyping(target=es5).errors.txt @@ -0,0 +1,31 @@ +getSetAccessorContextualTyping.ts(8,9): error TS2322: Type 'string' is not assignable to type 'number'. + + +==== getSetAccessorContextualTyping.ts (1 errors) ==== + // In the body of a get accessor with no return type annotation, + // if a matching set accessor exists and that set accessor has a parameter type annotation, + // return expressions are contextually typed by the type given in the set accessor's parameter type annotation. + + class C { + set X(x: number) { } + get X() { + return "string"; // Error; get contextual type by set accessor parameter type annotation + ~~~~~~ +!!! error TS2322: Type 'string' is not assignable to type 'number'. + } + + set Y(y) { } + get Y() { + return true; + } + + set W(w) { } + get W(): boolean { + return true; + } + + set Z(z: number) { } + get Z() { + return 1; + } + } \ No newline at end of file diff --git a/tests/baselines/reference/getSetAccessorContextualTyping.js b/tests/baselines/reference/getSetAccessorContextualTyping(target=es5).js similarity index 100% rename from tests/baselines/reference/getSetAccessorContextualTyping.js rename to tests/baselines/reference/getSetAccessorContextualTyping(target=es5).js diff --git a/tests/baselines/reference/getSetAccessorContextualTyping(target=es5).symbols b/tests/baselines/reference/getSetAccessorContextualTyping(target=es5).symbols new file mode 100644 index 0000000000000..517f208adfc43 --- /dev/null +++ b/tests/baselines/reference/getSetAccessorContextualTyping(target=es5).symbols @@ -0,0 +1,50 @@ +//// [tests/cases/conformance/expressions/contextualTyping/getSetAccessorContextualTyping.ts] //// + +=== getSetAccessorContextualTyping.ts === +// In the body of a get accessor with no return type annotation, +// if a matching set accessor exists and that set accessor has a parameter type annotation, +// return expressions are contextually typed by the type given in the set accessor's parameter type annotation. + +class C { +>C : Symbol(C, Decl(getSetAccessorContextualTyping.ts, 0, 0)) + + set X(x: number) { } +>X : Symbol(C.X, Decl(getSetAccessorContextualTyping.ts, 4, 9), Decl(getSetAccessorContextualTyping.ts, 5, 24)) +>x : Symbol(x, Decl(getSetAccessorContextualTyping.ts, 5, 10)) + + get X() { +>X : Symbol(C.X, Decl(getSetAccessorContextualTyping.ts, 4, 9), Decl(getSetAccessorContextualTyping.ts, 5, 24)) + + return "string"; // Error; get contextual type by set accessor parameter type annotation + } + + set Y(y) { } +>Y : Symbol(C.Y, Decl(getSetAccessorContextualTyping.ts, 8, 5), Decl(getSetAccessorContextualTyping.ts, 10, 16)) +>y : Symbol(y, Decl(getSetAccessorContextualTyping.ts, 10, 10)) + + get Y() { +>Y : Symbol(C.Y, Decl(getSetAccessorContextualTyping.ts, 8, 5), Decl(getSetAccessorContextualTyping.ts, 10, 16)) + + return true; + } + + set W(w) { } +>W : Symbol(C.W, Decl(getSetAccessorContextualTyping.ts, 13, 5), Decl(getSetAccessorContextualTyping.ts, 15, 16)) +>w : Symbol(w, Decl(getSetAccessorContextualTyping.ts, 15, 10)) + + get W(): boolean { +>W : Symbol(C.W, Decl(getSetAccessorContextualTyping.ts, 13, 5), Decl(getSetAccessorContextualTyping.ts, 15, 16)) + + return true; + } + + set Z(z: number) { } +>Z : Symbol(C.Z, Decl(getSetAccessorContextualTyping.ts, 18, 5), Decl(getSetAccessorContextualTyping.ts, 20, 24)) +>z : Symbol(z, Decl(getSetAccessorContextualTyping.ts, 20, 10)) + + get Z() { +>Z : Symbol(C.Z, Decl(getSetAccessorContextualTyping.ts, 18, 5), Decl(getSetAccessorContextualTyping.ts, 20, 24)) + + return 1; + } +} diff --git a/tests/baselines/reference/getSetAccessorContextualTyping(target=es5).types b/tests/baselines/reference/getSetAccessorContextualTyping(target=es5).types new file mode 100644 index 0000000000000..c900fa6e38538 --- /dev/null +++ b/tests/baselines/reference/getSetAccessorContextualTyping(target=es5).types @@ -0,0 +1,71 @@ +//// [tests/cases/conformance/expressions/contextualTyping/getSetAccessorContextualTyping.ts] //// + +=== getSetAccessorContextualTyping.ts === +// In the body of a get accessor with no return type annotation, +// if a matching set accessor exists and that set accessor has a parameter type annotation, +// return expressions are contextually typed by the type given in the set accessor's parameter type annotation. + +class C { +>C : C +> : ^ + + set X(x: number) { } +>X : number +> : ^^^^^^ +>x : number +> : ^^^^^^ + + get X() { +>X : number +> : ^^^^^^ + + return "string"; // Error; get contextual type by set accessor parameter type annotation +>"string" : "string" +> : ^^^^^^^^ + } + + set Y(y) { } +>Y : boolean +> : ^^^^^^^ +>y : boolean +> : ^^^^^^^ + + get Y() { +>Y : boolean +> : ^^^^^^^ + + return true; +>true : true +> : ^^^^ + } + + set W(w) { } +>W : boolean +> : ^^^^^^^ +>w : boolean +> : ^^^^^^^ + + get W(): boolean { +>W : boolean +> : ^^^^^^^ + + return true; +>true : true +> : ^^^^ + } + + set Z(z: number) { } +>Z : number +> : ^^^^^^ +>z : number +> : ^^^^^^ + + get Z() { +>Z : number +> : ^^^^^^ + + return 1; +>1 : 1 +> : ^ + } +} diff --git a/tests/baselines/reference/getSetEnumerable(target=es2015).js b/tests/baselines/reference/getSetEnumerable(target=es2015).js new file mode 100644 index 0000000000000..5060cb6088d3f --- /dev/null +++ b/tests/baselines/reference/getSetEnumerable(target=es2015).js @@ -0,0 +1,51 @@ +//// [tests/cases/compiler/getSetEnumerable.ts] //// + +//// [getSetEnumerable.ts] +class GetSetEnumerableClassGet { + get prop() { return true;} +} + +class GetSetEnumerableClassSet { + set prop(value: boolean) { } +} + +class GetSetEnumerableClassGetSet { + get prop() { return true;} + set prop(value: boolean) { } +} + +const GetSetEnumerableObjectGet = { + get prop() { return true; } +}; + +const GetSetEnumerableObjectSet = { + set prop(value: boolean) { } +}; + +const GetSetEnumerableObjectGetSet = { + get prop() { return true; }, + set prop(value: boolean) { } +}; + + +//// [getSetEnumerable.js] +class GetSetEnumerableClassGet { + get prop() { return true; } +} +class GetSetEnumerableClassSet { + set prop(value) { } +} +class GetSetEnumerableClassGetSet { + get prop() { return true; } + set prop(value) { } +} +const GetSetEnumerableObjectGet = { + get prop() { return true; } +}; +const GetSetEnumerableObjectSet = { + set prop(value) { } +}; +const GetSetEnumerableObjectGetSet = { + get prop() { return true; }, + set prop(value) { } +}; diff --git a/tests/baselines/reference/getSetEnumerable.symbols b/tests/baselines/reference/getSetEnumerable(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/getSetEnumerable.symbols rename to tests/baselines/reference/getSetEnumerable(target=es2015).symbols diff --git a/tests/baselines/reference/getSetEnumerable.types b/tests/baselines/reference/getSetEnumerable(target=es2015).types similarity index 100% rename from tests/baselines/reference/getSetEnumerable.types rename to tests/baselines/reference/getSetEnumerable(target=es2015).types diff --git a/tests/baselines/reference/getSetEnumerable.js b/tests/baselines/reference/getSetEnumerable(target=es5).js similarity index 100% rename from tests/baselines/reference/getSetEnumerable.js rename to tests/baselines/reference/getSetEnumerable(target=es5).js diff --git a/tests/baselines/reference/getSetEnumerable(target=es5).symbols b/tests/baselines/reference/getSetEnumerable(target=es5).symbols new file mode 100644 index 0000000000000..6a1fdfdeaeaa7 --- /dev/null +++ b/tests/baselines/reference/getSetEnumerable(target=es5).symbols @@ -0,0 +1,58 @@ +//// [tests/cases/compiler/getSetEnumerable.ts] //// + +=== getSetEnumerable.ts === +class GetSetEnumerableClassGet { +>GetSetEnumerableClassGet : Symbol(GetSetEnumerableClassGet, Decl(getSetEnumerable.ts, 0, 0)) + + get prop() { return true;} +>prop : Symbol(GetSetEnumerableClassGet.prop, Decl(getSetEnumerable.ts, 0, 32)) +} + +class GetSetEnumerableClassSet { +>GetSetEnumerableClassSet : Symbol(GetSetEnumerableClassSet, Decl(getSetEnumerable.ts, 2, 1)) + + set prop(value: boolean) { } +>prop : Symbol(GetSetEnumerableClassSet.prop, Decl(getSetEnumerable.ts, 4, 32)) +>value : Symbol(value, Decl(getSetEnumerable.ts, 5, 13)) +} + +class GetSetEnumerableClassGetSet { +>GetSetEnumerableClassGetSet : Symbol(GetSetEnumerableClassGetSet, Decl(getSetEnumerable.ts, 6, 1)) + + get prop() { return true;} +>prop : Symbol(GetSetEnumerableClassGetSet.prop, Decl(getSetEnumerable.ts, 8, 35), Decl(getSetEnumerable.ts, 9, 30)) + + set prop(value: boolean) { } +>prop : Symbol(GetSetEnumerableClassGetSet.prop, Decl(getSetEnumerable.ts, 8, 35), Decl(getSetEnumerable.ts, 9, 30)) +>value : Symbol(value, Decl(getSetEnumerable.ts, 10, 13)) +} + +const GetSetEnumerableObjectGet = { +>GetSetEnumerableObjectGet : Symbol(GetSetEnumerableObjectGet, Decl(getSetEnumerable.ts, 13, 5)) + + get prop() { return true; } +>prop : Symbol(prop, Decl(getSetEnumerable.ts, 13, 35)) + +}; + +const GetSetEnumerableObjectSet = { +>GetSetEnumerableObjectSet : Symbol(GetSetEnumerableObjectSet, Decl(getSetEnumerable.ts, 17, 5)) + + set prop(value: boolean) { } +>prop : Symbol(prop, Decl(getSetEnumerable.ts, 17, 35)) +>value : Symbol(value, Decl(getSetEnumerable.ts, 18, 13)) + +}; + +const GetSetEnumerableObjectGetSet = { +>GetSetEnumerableObjectGetSet : Symbol(GetSetEnumerableObjectGetSet, Decl(getSetEnumerable.ts, 21, 5)) + + get prop() { return true; }, +>prop : Symbol(prop, Decl(getSetEnumerable.ts, 21, 38), Decl(getSetEnumerable.ts, 22, 32)) + + set prop(value: boolean) { } +>prop : Symbol(prop, Decl(getSetEnumerable.ts, 21, 38), Decl(getSetEnumerable.ts, 22, 32)) +>value : Symbol(value, Decl(getSetEnumerable.ts, 23, 13)) + +}; + diff --git a/tests/baselines/reference/getSetEnumerable(target=es5).types b/tests/baselines/reference/getSetEnumerable(target=es5).types new file mode 100644 index 0000000000000..8b04804340da6 --- /dev/null +++ b/tests/baselines/reference/getSetEnumerable(target=es5).types @@ -0,0 +1,90 @@ +//// [tests/cases/compiler/getSetEnumerable.ts] //// + +=== getSetEnumerable.ts === +class GetSetEnumerableClassGet { +>GetSetEnumerableClassGet : GetSetEnumerableClassGet +> : ^^^^^^^^^^^^^^^^^^^^^^^^ + + get prop() { return true;} +>prop : boolean +> : ^^^^^^^ +>true : true +> : ^^^^ +} + +class GetSetEnumerableClassSet { +>GetSetEnumerableClassSet : GetSetEnumerableClassSet +> : ^^^^^^^^^^^^^^^^^^^^^^^^ + + set prop(value: boolean) { } +>prop : boolean +> : ^^^^^^^ +>value : boolean +> : ^^^^^^^ +} + +class GetSetEnumerableClassGetSet { +>GetSetEnumerableClassGetSet : GetSetEnumerableClassGetSet +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + get prop() { return true;} +>prop : boolean +> : ^^^^^^^ +>true : true +> : ^^^^ + + set prop(value: boolean) { } +>prop : boolean +> : ^^^^^^^ +>value : boolean +> : ^^^^^^^ +} + +const GetSetEnumerableObjectGet = { +>GetSetEnumerableObjectGet : { readonly prop: boolean; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ get prop() { return true; }} : { readonly prop: boolean; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + get prop() { return true; } +>prop : boolean +> : ^^^^^^^ +>true : true +> : ^^^^ + +}; + +const GetSetEnumerableObjectSet = { +>GetSetEnumerableObjectSet : { prop: boolean; } +> : ^^^^^^^^ ^^^ +>{ set prop(value: boolean) { }} : { prop: boolean; } +> : ^^^^^^^^ ^^^ + + set prop(value: boolean) { } +>prop : boolean +> : ^^^^^^^ +>value : boolean +> : ^^^^^^^ + +}; + +const GetSetEnumerableObjectGetSet = { +>GetSetEnumerableObjectGetSet : { prop: boolean; } +> : ^^^^^^^^ ^^^ +>{ get prop() { return true; }, set prop(value: boolean) { }} : { prop: boolean; } +> : ^^^^^^^^ ^^^ + + get prop() { return true; }, +>prop : boolean +> : ^^^^^^^ +>true : true +> : ^^^^ + + set prop(value: boolean) { } +>prop : boolean +> : ^^^^^^^ +>value : boolean +> : ^^^^^^^ + +}; + diff --git a/tests/baselines/reference/getterControlFlowStrictNull.errors.txt b/tests/baselines/reference/getterControlFlowStrictNull(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/getterControlFlowStrictNull.errors.txt rename to tests/baselines/reference/getterControlFlowStrictNull(target=es2015).errors.txt diff --git a/tests/baselines/reference/getterControlFlowStrictNull(target=es2015).js b/tests/baselines/reference/getterControlFlowStrictNull(target=es2015).js new file mode 100644 index 0000000000000..16c855e1f315e --- /dev/null +++ b/tests/baselines/reference/getterControlFlowStrictNull(target=es2015).js @@ -0,0 +1,61 @@ +//// [tests/cases/compiler/getterControlFlowStrictNull.ts] //// + +//// [getterControlFlowStrictNull.ts] +class A { + a(): string | null { + if (Math.random() > 0.5) { + return ''; + } + + // it does error here as expected + } +} +class B { + get a(): string | null { + if (Math.random() > 0.5) { + return ''; + } + + // it should error here because it returns undefined + } +} +class C { + get a() { + if (Math.random() > 0.5) { + return 0; + } + + // it should error here because it returns undefined + } + + set a(value: number) { + } +} + +//// [getterControlFlowStrictNull.js] +class A { + a() { + if (Math.random() > 0.5) { + return ''; + } + // it does error here as expected + } +} +class B { + get a() { + if (Math.random() > 0.5) { + return ''; + } + // it should error here because it returns undefined + } +} +class C { + get a() { + if (Math.random() > 0.5) { + return 0; + } + // it should error here because it returns undefined + } + set a(value) { + } +} diff --git a/tests/baselines/reference/getterControlFlowStrictNull.symbols b/tests/baselines/reference/getterControlFlowStrictNull(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/getterControlFlowStrictNull.symbols rename to tests/baselines/reference/getterControlFlowStrictNull(target=es2015).symbols diff --git a/tests/baselines/reference/getterControlFlowStrictNull.types b/tests/baselines/reference/getterControlFlowStrictNull(target=es2015).types similarity index 100% rename from tests/baselines/reference/getterControlFlowStrictNull.types rename to tests/baselines/reference/getterControlFlowStrictNull(target=es2015).types diff --git a/tests/baselines/reference/getterControlFlowStrictNull(target=es5).errors.txt b/tests/baselines/reference/getterControlFlowStrictNull(target=es5).errors.txt new file mode 100644 index 0000000000000..4210d31969dc7 --- /dev/null +++ b/tests/baselines/reference/getterControlFlowStrictNull(target=es5).errors.txt @@ -0,0 +1,42 @@ +getterControlFlowStrictNull.ts(2,9): error TS2366: Function lacks ending return statement and return type does not include 'undefined'. +getterControlFlowStrictNull.ts(11,14): error TS2366: Function lacks ending return statement and return type does not include 'undefined'. +getterControlFlowStrictNull.ts(20,9): error TS2366: Function lacks ending return statement and return type does not include 'undefined'. + + +==== getterControlFlowStrictNull.ts (3 errors) ==== + class A { + a(): string | null { + ~~~~~~~~~~~~~ +!!! error TS2366: Function lacks ending return statement and return type does not include 'undefined'. + if (Math.random() > 0.5) { + return ''; + } + + // it does error here as expected + } + } + class B { + get a(): string | null { + ~~~~~~~~~~~~~ +!!! error TS2366: Function lacks ending return statement and return type does not include 'undefined'. + if (Math.random() > 0.5) { + return ''; + } + + // it should error here because it returns undefined + } + } + class C { + get a() { + ~ +!!! error TS2366: Function lacks ending return statement and return type does not include 'undefined'. + if (Math.random() > 0.5) { + return 0; + } + + // it should error here because it returns undefined + } + + set a(value: number) { + } + } \ No newline at end of file diff --git a/tests/baselines/reference/getterControlFlowStrictNull.js b/tests/baselines/reference/getterControlFlowStrictNull(target=es5).js similarity index 100% rename from tests/baselines/reference/getterControlFlowStrictNull.js rename to tests/baselines/reference/getterControlFlowStrictNull(target=es5).js diff --git a/tests/baselines/reference/getterControlFlowStrictNull(target=es5).symbols b/tests/baselines/reference/getterControlFlowStrictNull(target=es5).symbols new file mode 100644 index 0000000000000..3377644c120c1 --- /dev/null +++ b/tests/baselines/reference/getterControlFlowStrictNull(target=es5).symbols @@ -0,0 +1,59 @@ +//// [tests/cases/compiler/getterControlFlowStrictNull.ts] //// + +=== getterControlFlowStrictNull.ts === +class A { +>A : Symbol(A, Decl(getterControlFlowStrictNull.ts, 0, 0)) + + a(): string | null { +>a : Symbol(A.a, Decl(getterControlFlowStrictNull.ts, 0, 9)) + + if (Math.random() > 0.5) { +>Math.random : Symbol(Math.random, Decl(lib.es5.d.ts, --, --)) +>Math : Symbol(Math, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>random : Symbol(Math.random, Decl(lib.es5.d.ts, --, --)) + + return ''; + } + + // it does error here as expected + } +} +class B { +>B : Symbol(B, Decl(getterControlFlowStrictNull.ts, 8, 1)) + + get a(): string | null { +>a : Symbol(B.a, Decl(getterControlFlowStrictNull.ts, 9, 9)) + + if (Math.random() > 0.5) { +>Math.random : Symbol(Math.random, Decl(lib.es5.d.ts, --, --)) +>Math : Symbol(Math, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>random : Symbol(Math.random, Decl(lib.es5.d.ts, --, --)) + + return ''; + } + + // it should error here because it returns undefined + } +} +class C { +>C : Symbol(C, Decl(getterControlFlowStrictNull.ts, 17, 1)) + + get a() { +>a : Symbol(C.a, Decl(getterControlFlowStrictNull.ts, 18, 9), Decl(getterControlFlowStrictNull.ts, 25, 5)) + + if (Math.random() > 0.5) { +>Math.random : Symbol(Math.random, Decl(lib.es5.d.ts, --, --)) +>Math : Symbol(Math, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>random : Symbol(Math.random, Decl(lib.es5.d.ts, --, --)) + + return 0; + } + + // it should error here because it returns undefined + } + + set a(value: number) { +>a : Symbol(C.a, Decl(getterControlFlowStrictNull.ts, 18, 9), Decl(getterControlFlowStrictNull.ts, 25, 5)) +>value : Symbol(value, Decl(getterControlFlowStrictNull.ts, 27, 10)) + } +} diff --git a/tests/baselines/reference/getterControlFlowStrictNull(target=es5).types b/tests/baselines/reference/getterControlFlowStrictNull(target=es5).types new file mode 100644 index 0000000000000..6bd6a5d988530 --- /dev/null +++ b/tests/baselines/reference/getterControlFlowStrictNull(target=es5).types @@ -0,0 +1,100 @@ +//// [tests/cases/compiler/getterControlFlowStrictNull.ts] //// + +=== getterControlFlowStrictNull.ts === +class A { +>A : A +> : ^ + + a(): string | null { +>a : () => string | null +> : ^^^^^^ + + if (Math.random() > 0.5) { +>Math.random() > 0.5 : boolean +> : ^^^^^^^ +>Math.random() : number +> : ^^^^^^ +>Math.random : () => number +> : ^^^^^^ +>Math : Math +> : ^^^^ +>random : () => number +> : ^^^^^^ +>0.5 : 0.5 +> : ^^^ + + return ''; +>'' : "" +> : ^^ + } + + // it does error here as expected + } +} +class B { +>B : B +> : ^ + + get a(): string | null { +>a : string | null +> : ^^^^^^^^^^^^^ + + if (Math.random() > 0.5) { +>Math.random() > 0.5 : boolean +> : ^^^^^^^ +>Math.random() : number +> : ^^^^^^ +>Math.random : () => number +> : ^^^^^^ +>Math : Math +> : ^^^^ +>random : () => number +> : ^^^^^^ +>0.5 : 0.5 +> : ^^^ + + return ''; +>'' : "" +> : ^^ + } + + // it should error here because it returns undefined + } +} +class C { +>C : C +> : ^ + + get a() { +>a : number +> : ^^^^^^ + + if (Math.random() > 0.5) { +>Math.random() > 0.5 : boolean +> : ^^^^^^^ +>Math.random() : number +> : ^^^^^^ +>Math.random : () => number +> : ^^^^^^ +>Math : Math +> : ^^^^ +>random : () => number +> : ^^^^^^ +>0.5 : 0.5 +> : ^^^ + + return 0; +>0 : 0 +> : ^ + } + + // it should error here because it returns undefined + } + + set a(value: number) { +>a : number +> : ^^^^^^ +>value : number +> : ^^^^^^ + } +} diff --git a/tests/baselines/reference/implicitAnyFromCircularInference.errors.txt b/tests/baselines/reference/implicitAnyFromCircularInference(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/implicitAnyFromCircularInference.errors.txt rename to tests/baselines/reference/implicitAnyFromCircularInference(target=es2015).errors.txt diff --git a/tests/baselines/reference/implicitAnyFromCircularInference(target=es2015).js b/tests/baselines/reference/implicitAnyFromCircularInference(target=es2015).js new file mode 100644 index 0000000000000..b2586646c224a --- /dev/null +++ b/tests/baselines/reference/implicitAnyFromCircularInference(target=es2015).js @@ -0,0 +1,88 @@ +//// [tests/cases/compiler/implicitAnyFromCircularInference.ts] //// + +//// [implicitAnyFromCircularInference.ts] +// Error expected +var a: typeof a; + +// Error expected on b or c +var b: typeof c; +var c: typeof b; + +// Error expected +var d: Array; + +function f() { return f; } + +// Error expected +function g() { return g(); } + +// Error expected +var f1 = function () { + return f1(); +}; + +// Error expected +var f2 = () => f2(); + +// Error expected +function h() { + return foo(); + function foo() { + return h() || "hello"; + } +} + +interface A { + s: string; +} + +function foo(x: A): string { return "abc"; } + +class C { + s = foo(this); +} + +class D { + // Error expected + get x() { + return this.x; + } +} + + +//// [implicitAnyFromCircularInference.js] +// Error expected +var a; +// Error expected on b or c +var b; +var c; +// Error expected +var d; +function f() { return f; } +// Error expected +function g() { return g(); } +// Error expected +var f1 = function () { + return f1(); +}; +// Error expected +var f2 = () => f2(); +// Error expected +function h() { + return foo(); + function foo() { + return h() || "hello"; + } +} +function foo(x) { return "abc"; } +class C { + constructor() { + this.s = foo(this); + } +} +class D { + // Error expected + get x() { + return this.x; + } +} diff --git a/tests/baselines/reference/implicitAnyFromCircularInference.symbols b/tests/baselines/reference/implicitAnyFromCircularInference(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/implicitAnyFromCircularInference.symbols rename to tests/baselines/reference/implicitAnyFromCircularInference(target=es2015).symbols diff --git a/tests/baselines/reference/implicitAnyFromCircularInference.types b/tests/baselines/reference/implicitAnyFromCircularInference(target=es2015).types similarity index 100% rename from tests/baselines/reference/implicitAnyFromCircularInference.types rename to tests/baselines/reference/implicitAnyFromCircularInference(target=es2015).types diff --git a/tests/baselines/reference/implicitAnyFromCircularInference(target=es5).errors.txt b/tests/baselines/reference/implicitAnyFromCircularInference(target=es5).errors.txt new file mode 100644 index 0000000000000..29986db55f331 --- /dev/null +++ b/tests/baselines/reference/implicitAnyFromCircularInference(target=es5).errors.txt @@ -0,0 +1,78 @@ +implicitAnyFromCircularInference.ts(2,5): error TS2502: 'a' is referenced directly or indirectly in its own type annotation. +implicitAnyFromCircularInference.ts(5,5): error TS2502: 'b' is referenced directly or indirectly in its own type annotation. +implicitAnyFromCircularInference.ts(6,5): error TS2502: 'c' is referenced directly or indirectly in its own type annotation. +implicitAnyFromCircularInference.ts(9,5): error TS2502: 'd' is referenced directly or indirectly in its own type annotation. +implicitAnyFromCircularInference.ts(17,5): error TS7023: 'f1' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions. +implicitAnyFromCircularInference.ts(22,5): error TS7023: 'f2' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions. +implicitAnyFromCircularInference.ts(25,10): error TS7023: 'h' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions. +implicitAnyFromCircularInference.ts(27,14): error TS7023: 'foo' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions. +implicitAnyFromCircularInference.ts(44,9): error TS7023: 'x' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions. + + +==== implicitAnyFromCircularInference.ts (9 errors) ==== + // Error expected + var a: typeof a; + ~ +!!! error TS2502: 'a' is referenced directly or indirectly in its own type annotation. + + // Error expected on b or c + var b: typeof c; + ~ +!!! error TS2502: 'b' is referenced directly or indirectly in its own type annotation. + var c: typeof b; + ~ +!!! error TS2502: 'c' is referenced directly or indirectly in its own type annotation. + + // Error expected + var d: Array; + ~ +!!! error TS2502: 'd' is referenced directly or indirectly in its own type annotation. + + function f() { return f; } + + // Error expected + function g() { return g(); } + + // Error expected + var f1 = function () { + ~~ +!!! error TS7023: 'f1' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions. + return f1(); + }; + + // Error expected + var f2 = () => f2(); + ~~ +!!! error TS7023: 'f2' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions. + + // Error expected + function h() { + ~ +!!! error TS7023: 'h' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions. + return foo(); + function foo() { + ~~~ +!!! error TS7023: 'foo' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions. + return h() || "hello"; + } + } + + interface A { + s: string; + } + + function foo(x: A): string { return "abc"; } + + class C { + s = foo(this); + } + + class D { + // Error expected + get x() { + ~ +!!! error TS7023: 'x' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions. + return this.x; + } + } + \ No newline at end of file diff --git a/tests/baselines/reference/implicitAnyFromCircularInference.js b/tests/baselines/reference/implicitAnyFromCircularInference(target=es5).js similarity index 100% rename from tests/baselines/reference/implicitAnyFromCircularInference.js rename to tests/baselines/reference/implicitAnyFromCircularInference(target=es5).js diff --git a/tests/baselines/reference/implicitAnyFromCircularInference(target=es5).symbols b/tests/baselines/reference/implicitAnyFromCircularInference(target=es5).symbols new file mode 100644 index 0000000000000..4720d4dd411b5 --- /dev/null +++ b/tests/baselines/reference/implicitAnyFromCircularInference(target=es5).symbols @@ -0,0 +1,96 @@ +//// [tests/cases/compiler/implicitAnyFromCircularInference.ts] //// + +=== implicitAnyFromCircularInference.ts === +// Error expected +var a: typeof a; +>a : Symbol(a, Decl(implicitAnyFromCircularInference.ts, 1, 3)) +>a : Symbol(a, Decl(implicitAnyFromCircularInference.ts, 1, 3)) + +// Error expected on b or c +var b: typeof c; +>b : Symbol(b, Decl(implicitAnyFromCircularInference.ts, 4, 3)) +>c : Symbol(c, Decl(implicitAnyFromCircularInference.ts, 5, 3)) + +var c: typeof b; +>c : Symbol(c, Decl(implicitAnyFromCircularInference.ts, 5, 3)) +>b : Symbol(b, Decl(implicitAnyFromCircularInference.ts, 4, 3)) + +// Error expected +var d: Array; +>d : Symbol(d, Decl(implicitAnyFromCircularInference.ts, 8, 3)) +>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>d : Symbol(d, Decl(implicitAnyFromCircularInference.ts, 8, 3)) + +function f() { return f; } +>f : Symbol(f, Decl(implicitAnyFromCircularInference.ts, 8, 23)) +>f : Symbol(f, Decl(implicitAnyFromCircularInference.ts, 8, 23)) + +// Error expected +function g() { return g(); } +>g : Symbol(g, Decl(implicitAnyFromCircularInference.ts, 10, 26)) +>g : Symbol(g, Decl(implicitAnyFromCircularInference.ts, 10, 26)) + +// Error expected +var f1 = function () { +>f1 : Symbol(f1, Decl(implicitAnyFromCircularInference.ts, 16, 3)) + + return f1(); +>f1 : Symbol(f1, Decl(implicitAnyFromCircularInference.ts, 16, 3)) + +}; + +// Error expected +var f2 = () => f2(); +>f2 : Symbol(f2, Decl(implicitAnyFromCircularInference.ts, 21, 3)) +>f2 : Symbol(f2, Decl(implicitAnyFromCircularInference.ts, 21, 3)) + +// Error expected +function h() { +>h : Symbol(h, Decl(implicitAnyFromCircularInference.ts, 21, 20)) + + return foo(); +>foo : Symbol(foo, Decl(implicitAnyFromCircularInference.ts, 25, 17)) + + function foo() { +>foo : Symbol(foo, Decl(implicitAnyFromCircularInference.ts, 25, 17)) + + return h() || "hello"; +>h : Symbol(h, Decl(implicitAnyFromCircularInference.ts, 21, 20)) + } +} + +interface A { +>A : Symbol(A, Decl(implicitAnyFromCircularInference.ts, 29, 1)) + + s: string; +>s : Symbol(A.s, Decl(implicitAnyFromCircularInference.ts, 31, 13)) +} + +function foo(x: A): string { return "abc"; } +>foo : Symbol(foo, Decl(implicitAnyFromCircularInference.ts, 33, 1)) +>x : Symbol(x, Decl(implicitAnyFromCircularInference.ts, 35, 13)) +>A : Symbol(A, Decl(implicitAnyFromCircularInference.ts, 29, 1)) + +class C { +>C : Symbol(C, Decl(implicitAnyFromCircularInference.ts, 35, 44)) + + s = foo(this); +>s : Symbol(C.s, Decl(implicitAnyFromCircularInference.ts, 37, 9)) +>foo : Symbol(foo, Decl(implicitAnyFromCircularInference.ts, 33, 1)) +>this : Symbol(C, Decl(implicitAnyFromCircularInference.ts, 35, 44)) +} + +class D { +>D : Symbol(D, Decl(implicitAnyFromCircularInference.ts, 39, 1)) + + // Error expected + get x() { +>x : Symbol(D.x, Decl(implicitAnyFromCircularInference.ts, 41, 9)) + + return this.x; +>this.x : Symbol(D.x, Decl(implicitAnyFromCircularInference.ts, 41, 9)) +>this : Symbol(D, Decl(implicitAnyFromCircularInference.ts, 39, 1)) +>x : Symbol(D.x, Decl(implicitAnyFromCircularInference.ts, 41, 9)) + } +} + diff --git a/tests/baselines/reference/implicitAnyFromCircularInference(target=es5).types b/tests/baselines/reference/implicitAnyFromCircularInference(target=es5).types new file mode 100644 index 0000000000000..01cee0ae77c5f --- /dev/null +++ b/tests/baselines/reference/implicitAnyFromCircularInference(target=es5).types @@ -0,0 +1,146 @@ +//// [tests/cases/compiler/implicitAnyFromCircularInference.ts] //// + +=== implicitAnyFromCircularInference.ts === +// Error expected +var a: typeof a; +>a : any +> : ^^^ +>a : any +> : ^^^ + +// Error expected on b or c +var b: typeof c; +>b : any +> : ^^^ +>c : any +> : ^^^ + +var c: typeof b; +>c : any +> : ^^^ +>b : any +> : ^^^ + +// Error expected +var d: Array; +>d : any +> : ^^^ +>d : any +> : ^^^ + +function f() { return f; } +>f : () => typeof f +> : ^^^^^^^^^^^^^^ +>f : () => typeof f +> : ^^^^^^^^^^^^^^ + +// Error expected +function g() { return g(); } +>g : () => never +> : ^^^^^^^^^^^ +>g() : never +> : ^^^^^ +>g : () => never +> : ^^^^^^^^^^^ + +// Error expected +var f1 = function () { +>f1 : () => any +> : ^^^^^^^^^ +>function () { return f1();} : () => any +> : ^^^^^^^^^ + + return f1(); +>f1() : any +> : ^^^ +>f1 : () => any +> : ^^^^^^^^^ + +}; + +// Error expected +var f2 = () => f2(); +>f2 : () => any +> : ^^^^^^^^^ +>() => f2() : () => any +> : ^^^^^^^^^ +>f2() : any +> : ^^^ +>f2 : () => any +> : ^^^^^^^^^ + +// Error expected +function h() { +>h : () => any +> : ^^^^^^^^^ + + return foo(); +>foo() : any +> : ^^^ +>foo : () => any +> : ^^^^^^^^^ + + function foo() { +>foo : () => any +> : ^^^^^^^^^ + + return h() || "hello"; +>h() || "hello" : any +> : ^^^ +>h() : any +> : ^^^ +>h : () => any +> : ^^^^^^^^^ +>"hello" : "hello" +> : ^^^^^^^ + } +} + +interface A { + s: string; +>s : string +> : ^^^^^^ +} + +function foo(x: A): string { return "abc"; } +>foo : (x: A) => string +> : ^ ^^ ^^^^^ +>x : A +> : ^ +>"abc" : "abc" +> : ^^^^^ + +class C { +>C : C +> : ^ + + s = foo(this); +>s : string +> : ^^^^^^ +>foo(this) : string +> : ^^^^^^ +>foo : (x: A) => string +> : ^ ^^ ^^^^^ +>this : this +> : ^^^^ +} + +class D { +>D : D +> : ^ + + // Error expected + get x() { +>x : any +> : ^^^ + + return this.x; +>this.x : any +> : ^^^ +>this : this +> : ^^^^ +>x : any +> : ^^^ + } +} + diff --git a/tests/baselines/reference/importCallExpressionAsyncES5AMD.errors.txt b/tests/baselines/reference/importCallExpressionAsyncES5AMD(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/importCallExpressionAsyncES5AMD.errors.txt rename to tests/baselines/reference/importCallExpressionAsyncES5AMD(target=es2015).errors.txt diff --git a/tests/baselines/reference/importCallExpressionAsyncES5AMD(target=es2015).js b/tests/baselines/reference/importCallExpressionAsyncES5AMD(target=es2015).js new file mode 100644 index 0000000000000..b52b60cebaf35 --- /dev/null +++ b/tests/baselines/reference/importCallExpressionAsyncES5AMD(target=es2015).js @@ -0,0 +1,113 @@ +//// [tests/cases/conformance/dynamicImport/importCallExpressionAsyncES5AMD.ts] //// + +//// [test.ts] +export async function fn() { + const req = await import('./test') // ONE +} + +export class cl1 { + public async m() { + const req = await import('./test') // TWO + } +} + +export const obj = { + m: async () => { + const req = await import('./test') // THREE + } +} + +export class cl2 { + public p = { + m: async () => { + const req = await import('./test') // FOUR + } + } +} + +export const l = async () => { + const req = await import('./test') // FIVE +} + + +//// [test.js] +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +define(["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.l = exports.cl2 = exports.obj = exports.cl1 = void 0; + exports.fn = fn; + function fn() { + return __awaiter(this, void 0, void 0, function* () { + const req = yield new Promise((resolve_1, reject_1) => { require(['./test'], resolve_1, reject_1); }).then(__importStar); // ONE + }); + } + class cl1 { + m() { + return __awaiter(this, void 0, void 0, function* () { + const req = yield new Promise((resolve_2, reject_2) => { require(['./test'], resolve_2, reject_2); }).then(__importStar); // TWO + }); + } + } + exports.cl1 = cl1; + exports.obj = { + m: () => __awaiter(void 0, void 0, void 0, function* () { + const req = yield new Promise((resolve_3, reject_3) => { require(['./test'], resolve_3, reject_3); }).then(__importStar); // THREE + }) + }; + class cl2 { + constructor() { + this.p = { + m: () => __awaiter(this, void 0, void 0, function* () { + const req = yield new Promise((resolve_4, reject_4) => { require(['./test'], resolve_4, reject_4); }).then(__importStar); // FOUR + }) + }; + } + } + exports.cl2 = cl2; + const l = () => __awaiter(void 0, void 0, void 0, function* () { + const req = yield new Promise((resolve_5, reject_5) => { require(['./test'], resolve_5, reject_5); }).then(__importStar); // FIVE + }); + exports.l = l; +}); diff --git a/tests/baselines/reference/importCallExpressionAsyncES5AMD.symbols b/tests/baselines/reference/importCallExpressionAsyncES5AMD(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/importCallExpressionAsyncES5AMD.symbols rename to tests/baselines/reference/importCallExpressionAsyncES5AMD(target=es2015).symbols diff --git a/tests/baselines/reference/importCallExpressionAsyncES5AMD.types b/tests/baselines/reference/importCallExpressionAsyncES5AMD(target=es2015).types similarity index 100% rename from tests/baselines/reference/importCallExpressionAsyncES5AMD.types rename to tests/baselines/reference/importCallExpressionAsyncES5AMD(target=es2015).types diff --git a/tests/baselines/reference/importCallExpressionAsyncES5AMD(target=es5).errors.txt b/tests/baselines/reference/importCallExpressionAsyncES5AMD(target=es5).errors.txt new file mode 100644 index 0000000000000..e9e9f0fcf2e97 --- /dev/null +++ b/tests/baselines/reference/importCallExpressionAsyncES5AMD(target=es5).errors.txt @@ -0,0 +1,33 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== test.ts (0 errors) ==== + export async function fn() { + const req = await import('./test') // ONE + } + + export class cl1 { + public async m() { + const req = await import('./test') // TWO + } + } + + export const obj = { + m: async () => { + const req = await import('./test') // THREE + } + } + + export class cl2 { + public p = { + m: async () => { + const req = await import('./test') // FOUR + } + } + } + + export const l = async () => { + const req = await import('./test') // FIVE + } + \ No newline at end of file diff --git a/tests/baselines/reference/importCallExpressionAsyncES5AMD.js b/tests/baselines/reference/importCallExpressionAsyncES5AMD(target=es5).js similarity index 100% rename from tests/baselines/reference/importCallExpressionAsyncES5AMD.js rename to tests/baselines/reference/importCallExpressionAsyncES5AMD(target=es5).js diff --git a/tests/baselines/reference/importCallExpressionAsyncES5AMD(target=es5).symbols b/tests/baselines/reference/importCallExpressionAsyncES5AMD(target=es5).symbols new file mode 100644 index 0000000000000..215323494a8ed --- /dev/null +++ b/tests/baselines/reference/importCallExpressionAsyncES5AMD(target=es5).symbols @@ -0,0 +1,59 @@ +//// [tests/cases/conformance/dynamicImport/importCallExpressionAsyncES5AMD.ts] //// + +=== test.ts === +export async function fn() { +>fn : Symbol(fn, Decl(test.ts, 0, 0)) + + const req = await import('./test') // ONE +>req : Symbol(req, Decl(test.ts, 1, 9)) +>'./test' : Symbol("test", Decl(test.ts, 0, 0)) +} + +export class cl1 { +>cl1 : Symbol(cl1, Decl(test.ts, 2, 1)) + + public async m() { +>m : Symbol(cl1.m, Decl(test.ts, 4, 18)) + + const req = await import('./test') // TWO +>req : Symbol(req, Decl(test.ts, 6, 13)) +>'./test' : Symbol("test", Decl(test.ts, 0, 0)) + } +} + +export const obj = { +>obj : Symbol(obj, Decl(test.ts, 10, 12)) + + m: async () => { +>m : Symbol(m, Decl(test.ts, 10, 20)) + + const req = await import('./test') // THREE +>req : Symbol(req, Decl(test.ts, 12, 13)) +>'./test' : Symbol("test", Decl(test.ts, 0, 0)) + } +} + +export class cl2 { +>cl2 : Symbol(cl2, Decl(test.ts, 14, 1)) + + public p = { +>p : Symbol(cl2.p, Decl(test.ts, 16, 18)) + + m: async () => { +>m : Symbol(m, Decl(test.ts, 17, 16)) + + const req = await import('./test') // FOUR +>req : Symbol(req, Decl(test.ts, 19, 17)) +>'./test' : Symbol("test", Decl(test.ts, 0, 0)) + } + } +} + +export const l = async () => { +>l : Symbol(l, Decl(test.ts, 24, 12)) + + const req = await import('./test') // FIVE +>req : Symbol(req, Decl(test.ts, 25, 9)) +>'./test' : Symbol("test", Decl(test.ts, 0, 0)) +} + diff --git a/tests/baselines/reference/importCallExpressionAsyncES5AMD(target=es5).types b/tests/baselines/reference/importCallExpressionAsyncES5AMD(target=es5).types new file mode 100644 index 0000000000000..abe3492561013 --- /dev/null +++ b/tests/baselines/reference/importCallExpressionAsyncES5AMD(target=es5).types @@ -0,0 +1,108 @@ +//// [tests/cases/conformance/dynamicImport/importCallExpressionAsyncES5AMD.ts] //// + +=== test.ts === +export async function fn() { +>fn : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + const req = await import('./test') // ONE +>req : typeof import("test") +> : ^^^^^^^^^^^^^^^^^^^^^ +>await import('./test') : typeof import("test") +> : ^^^^^^^^^^^^^^^^^^^^^ +>import('./test') : Promise +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>'./test' : "./test" +> : ^^^^^^^^ +} + +export class cl1 { +>cl1 : cl1 +> : ^^^ + + public async m() { +>m : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + const req = await import('./test') // TWO +>req : typeof import("test") +> : ^^^^^^^^^^^^^^^^^^^^^ +>await import('./test') : typeof import("test") +> : ^^^^^^^^^^^^^^^^^^^^^ +>import('./test') : Promise +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>'./test' : "./test" +> : ^^^^^^^^ + } +} + +export const obj = { +>obj : { m: () => Promise; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ m: async () => { const req = await import('./test') // THREE }} : { m: () => Promise; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + m: async () => { +>m : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ +>async () => { const req = await import('./test') // THREE } : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + const req = await import('./test') // THREE +>req : typeof import("test") +> : ^^^^^^^^^^^^^^^^^^^^^ +>await import('./test') : typeof import("test") +> : ^^^^^^^^^^^^^^^^^^^^^ +>import('./test') : Promise +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>'./test' : "./test" +> : ^^^^^^^^ + } +} + +export class cl2 { +>cl2 : cl2 +> : ^^^ + + public p = { +>p : { m: () => Promise; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ m: async () => { const req = await import('./test') // FOUR } } : { m: () => Promise; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + m: async () => { +>m : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ +>async () => { const req = await import('./test') // FOUR } : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + const req = await import('./test') // FOUR +>req : typeof import("test") +> : ^^^^^^^^^^^^^^^^^^^^^ +>await import('./test') : typeof import("test") +> : ^^^^^^^^^^^^^^^^^^^^^ +>import('./test') : Promise +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>'./test' : "./test" +> : ^^^^^^^^ + } + } +} + +export const l = async () => { +>l : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ +>async () => { const req = await import('./test') // FIVE} : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + const req = await import('./test') // FIVE +>req : typeof import("test") +> : ^^^^^^^^^^^^^^^^^^^^^ +>await import('./test') : typeof import("test") +> : ^^^^^^^^^^^^^^^^^^^^^ +>import('./test') : Promise +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>'./test' : "./test" +> : ^^^^^^^^ +} + diff --git a/tests/baselines/reference/importCallExpressionAsyncES5CJS(target=es2015).js b/tests/baselines/reference/importCallExpressionAsyncES5CJS(target=es2015).js new file mode 100644 index 0000000000000..d66e59e59c995 --- /dev/null +++ b/tests/baselines/reference/importCallExpressionAsyncES5CJS(target=es2015).js @@ -0,0 +1,111 @@ +//// [tests/cases/conformance/dynamicImport/importCallExpressionAsyncES5CJS.ts] //// + +//// [test.ts] +export async function fn() { + const req = await import('./test') // ONE +} + +export class cl1 { + public async m() { + const req = await import('./test') // TWO + } +} + +export const obj = { + m: async () => { + const req = await import('./test') // THREE + } +} + +export class cl2 { + public p = { + m: async () => { + const req = await import('./test') // FOUR + } + } +} + +export const l = async () => { + const req = await import('./test') // FIVE +} + + +//// [test.js] +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.l = exports.cl2 = exports.obj = exports.cl1 = void 0; +exports.fn = fn; +function fn() { + return __awaiter(this, void 0, void 0, function* () { + const req = yield Promise.resolve().then(() => __importStar(require('./test'))); // ONE + }); +} +class cl1 { + m() { + return __awaiter(this, void 0, void 0, function* () { + const req = yield Promise.resolve().then(() => __importStar(require('./test'))); // TWO + }); + } +} +exports.cl1 = cl1; +exports.obj = { + m: () => __awaiter(void 0, void 0, void 0, function* () { + const req = yield Promise.resolve().then(() => __importStar(require('./test'))); // THREE + }) +}; +class cl2 { + constructor() { + this.p = { + m: () => __awaiter(this, void 0, void 0, function* () { + const req = yield Promise.resolve().then(() => __importStar(require('./test'))); // FOUR + }) + }; + } +} +exports.cl2 = cl2; +const l = () => __awaiter(void 0, void 0, void 0, function* () { + const req = yield Promise.resolve().then(() => __importStar(require('./test'))); // FIVE +}); +exports.l = l; diff --git a/tests/baselines/reference/importCallExpressionAsyncES5CJS.symbols b/tests/baselines/reference/importCallExpressionAsyncES5CJS(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/importCallExpressionAsyncES5CJS.symbols rename to tests/baselines/reference/importCallExpressionAsyncES5CJS(target=es2015).symbols diff --git a/tests/baselines/reference/importCallExpressionAsyncES5CJS.types b/tests/baselines/reference/importCallExpressionAsyncES5CJS(target=es2015).types similarity index 100% rename from tests/baselines/reference/importCallExpressionAsyncES5CJS.types rename to tests/baselines/reference/importCallExpressionAsyncES5CJS(target=es2015).types diff --git a/tests/baselines/reference/importCallExpressionAsyncES5CJS.js b/tests/baselines/reference/importCallExpressionAsyncES5CJS(target=es5).js similarity index 100% rename from tests/baselines/reference/importCallExpressionAsyncES5CJS.js rename to tests/baselines/reference/importCallExpressionAsyncES5CJS(target=es5).js diff --git a/tests/baselines/reference/importCallExpressionAsyncES5CJS(target=es5).symbols b/tests/baselines/reference/importCallExpressionAsyncES5CJS(target=es5).symbols new file mode 100644 index 0000000000000..eda297a5baf94 --- /dev/null +++ b/tests/baselines/reference/importCallExpressionAsyncES5CJS(target=es5).symbols @@ -0,0 +1,59 @@ +//// [tests/cases/conformance/dynamicImport/importCallExpressionAsyncES5CJS.ts] //// + +=== test.ts === +export async function fn() { +>fn : Symbol(fn, Decl(test.ts, 0, 0)) + + const req = await import('./test') // ONE +>req : Symbol(req, Decl(test.ts, 1, 9)) +>'./test' : Symbol("test", Decl(test.ts, 0, 0)) +} + +export class cl1 { +>cl1 : Symbol(cl1, Decl(test.ts, 2, 1)) + + public async m() { +>m : Symbol(cl1.m, Decl(test.ts, 4, 18)) + + const req = await import('./test') // TWO +>req : Symbol(req, Decl(test.ts, 6, 13)) +>'./test' : Symbol("test", Decl(test.ts, 0, 0)) + } +} + +export const obj = { +>obj : Symbol(obj, Decl(test.ts, 10, 12)) + + m: async () => { +>m : Symbol(m, Decl(test.ts, 10, 20)) + + const req = await import('./test') // THREE +>req : Symbol(req, Decl(test.ts, 12, 13)) +>'./test' : Symbol("test", Decl(test.ts, 0, 0)) + } +} + +export class cl2 { +>cl2 : Symbol(cl2, Decl(test.ts, 14, 1)) + + public p = { +>p : Symbol(cl2.p, Decl(test.ts, 16, 18)) + + m: async () => { +>m : Symbol(m, Decl(test.ts, 17, 16)) + + const req = await import('./test') // FOUR +>req : Symbol(req, Decl(test.ts, 19, 17)) +>'./test' : Symbol("test", Decl(test.ts, 0, 0)) + } + } +} + +export const l = async () => { +>l : Symbol(l, Decl(test.ts, 24, 12)) + + const req = await import('./test') // FIVE +>req : Symbol(req, Decl(test.ts, 25, 9)) +>'./test' : Symbol("test", Decl(test.ts, 0, 0)) +} + diff --git a/tests/baselines/reference/importCallExpressionAsyncES5CJS(target=es5).types b/tests/baselines/reference/importCallExpressionAsyncES5CJS(target=es5).types new file mode 100644 index 0000000000000..416aa2dd2f2b4 --- /dev/null +++ b/tests/baselines/reference/importCallExpressionAsyncES5CJS(target=es5).types @@ -0,0 +1,108 @@ +//// [tests/cases/conformance/dynamicImport/importCallExpressionAsyncES5CJS.ts] //// + +=== test.ts === +export async function fn() { +>fn : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + const req = await import('./test') // ONE +>req : typeof import("test") +> : ^^^^^^^^^^^^^^^^^^^^^ +>await import('./test') : typeof import("test") +> : ^^^^^^^^^^^^^^^^^^^^^ +>import('./test') : Promise +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>'./test' : "./test" +> : ^^^^^^^^ +} + +export class cl1 { +>cl1 : cl1 +> : ^^^ + + public async m() { +>m : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + const req = await import('./test') // TWO +>req : typeof import("test") +> : ^^^^^^^^^^^^^^^^^^^^^ +>await import('./test') : typeof import("test") +> : ^^^^^^^^^^^^^^^^^^^^^ +>import('./test') : Promise +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>'./test' : "./test" +> : ^^^^^^^^ + } +} + +export const obj = { +>obj : { m: () => Promise; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ m: async () => { const req = await import('./test') // THREE }} : { m: () => Promise; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + m: async () => { +>m : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ +>async () => { const req = await import('./test') // THREE } : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + const req = await import('./test') // THREE +>req : typeof import("test") +> : ^^^^^^^^^^^^^^^^^^^^^ +>await import('./test') : typeof import("test") +> : ^^^^^^^^^^^^^^^^^^^^^ +>import('./test') : Promise +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>'./test' : "./test" +> : ^^^^^^^^ + } +} + +export class cl2 { +>cl2 : cl2 +> : ^^^ + + public p = { +>p : { m: () => Promise; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ m: async () => { const req = await import('./test') // FOUR } } : { m: () => Promise; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + m: async () => { +>m : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ +>async () => { const req = await import('./test') // FOUR } : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + const req = await import('./test') // FOUR +>req : typeof import("test") +> : ^^^^^^^^^^^^^^^^^^^^^ +>await import('./test') : typeof import("test") +> : ^^^^^^^^^^^^^^^^^^^^^ +>import('./test') : Promise +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>'./test' : "./test" +> : ^^^^^^^^ + } + } +} + +export const l = async () => { +>l : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ +>async () => { const req = await import('./test') // FIVE} : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + const req = await import('./test') // FIVE +>req : typeof import("test") +> : ^^^^^^^^^^^^^^^^^^^^^ +>await import('./test') : typeof import("test") +> : ^^^^^^^^^^^^^^^^^^^^^ +>import('./test') : Promise +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>'./test' : "./test" +> : ^^^^^^^^ +} + diff --git a/tests/baselines/reference/importCallExpressionAsyncES5System.errors.txt b/tests/baselines/reference/importCallExpressionAsyncES5System(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/importCallExpressionAsyncES5System.errors.txt rename to tests/baselines/reference/importCallExpressionAsyncES5System(target=es2015).errors.txt diff --git a/tests/baselines/reference/importCallExpressionAsyncES5System(target=es2015).js b/tests/baselines/reference/importCallExpressionAsyncES5System(target=es2015).js new file mode 100644 index 0000000000000..0dc36da0628ee --- /dev/null +++ b/tests/baselines/reference/importCallExpressionAsyncES5System(target=es2015).js @@ -0,0 +1,84 @@ +//// [tests/cases/conformance/dynamicImport/importCallExpressionAsyncES5System.ts] //// + +//// [test.ts] +export async function fn() { + const req = await import('./test') // ONE +} + +export class cl1 { + public async m() { + const req = await import('./test') // TWO + } +} + +export const obj = { + m: async () => { + const req = await import('./test') // THREE + } +} + +export class cl2 { + public p = { + m: async () => { + const req = await import('./test') // FOUR + } + } +} + +export const l = async () => { + const req = await import('./test') // FIVE +} + + +//// [test.js] +System.register([], function (exports_1, context_1) { + "use strict"; + var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + }; + var cl1, obj, cl2, l; + var __moduleName = context_1 && context_1.id; + function fn() { + return __awaiter(this, void 0, void 0, function* () { + const req = yield context_1.import('./test'); // ONE + }); + } + exports_1("fn", fn); + return { + setters: [], + execute: function () { + cl1 = class cl1 { + m() { + return __awaiter(this, void 0, void 0, function* () { + const req = yield context_1.import('./test'); // TWO + }); + } + }; + exports_1("cl1", cl1); + exports_1("obj", obj = { + m: () => __awaiter(void 0, void 0, void 0, function* () { + const req = yield context_1.import('./test'); // THREE + }) + }); + cl2 = class cl2 { + constructor() { + this.p = { + m: () => __awaiter(this, void 0, void 0, function* () { + const req = yield context_1.import('./test'); // FOUR + }) + }; + } + }; + exports_1("cl2", cl2); + exports_1("l", l = () => __awaiter(void 0, void 0, void 0, function* () { + const req = yield context_1.import('./test'); // FIVE + })); + } + }; +}); diff --git a/tests/baselines/reference/importCallExpressionAsyncES5System.symbols b/tests/baselines/reference/importCallExpressionAsyncES5System(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/importCallExpressionAsyncES5System.symbols rename to tests/baselines/reference/importCallExpressionAsyncES5System(target=es2015).symbols diff --git a/tests/baselines/reference/importCallExpressionAsyncES5System.types b/tests/baselines/reference/importCallExpressionAsyncES5System(target=es2015).types similarity index 100% rename from tests/baselines/reference/importCallExpressionAsyncES5System.types rename to tests/baselines/reference/importCallExpressionAsyncES5System(target=es2015).types diff --git a/tests/baselines/reference/importCallExpressionAsyncES5System(target=es5).errors.txt b/tests/baselines/reference/importCallExpressionAsyncES5System(target=es5).errors.txt new file mode 100644 index 0000000000000..8dd6a353a2554 --- /dev/null +++ b/tests/baselines/reference/importCallExpressionAsyncES5System(target=es5).errors.txt @@ -0,0 +1,33 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== test.ts (0 errors) ==== + export async function fn() { + const req = await import('./test') // ONE + } + + export class cl1 { + public async m() { + const req = await import('./test') // TWO + } + } + + export const obj = { + m: async () => { + const req = await import('./test') // THREE + } + } + + export class cl2 { + public p = { + m: async () => { + const req = await import('./test') // FOUR + } + } + } + + export const l = async () => { + const req = await import('./test') // FIVE + } + \ No newline at end of file diff --git a/tests/baselines/reference/importCallExpressionAsyncES5System.js b/tests/baselines/reference/importCallExpressionAsyncES5System(target=es5).js similarity index 100% rename from tests/baselines/reference/importCallExpressionAsyncES5System.js rename to tests/baselines/reference/importCallExpressionAsyncES5System(target=es5).js diff --git a/tests/baselines/reference/importCallExpressionAsyncES5System(target=es5).symbols b/tests/baselines/reference/importCallExpressionAsyncES5System(target=es5).symbols new file mode 100644 index 0000000000000..dd1afde34239a --- /dev/null +++ b/tests/baselines/reference/importCallExpressionAsyncES5System(target=es5).symbols @@ -0,0 +1,59 @@ +//// [tests/cases/conformance/dynamicImport/importCallExpressionAsyncES5System.ts] //// + +=== test.ts === +export async function fn() { +>fn : Symbol(fn, Decl(test.ts, 0, 0)) + + const req = await import('./test') // ONE +>req : Symbol(req, Decl(test.ts, 1, 9)) +>'./test' : Symbol("test", Decl(test.ts, 0, 0)) +} + +export class cl1 { +>cl1 : Symbol(cl1, Decl(test.ts, 2, 1)) + + public async m() { +>m : Symbol(cl1.m, Decl(test.ts, 4, 18)) + + const req = await import('./test') // TWO +>req : Symbol(req, Decl(test.ts, 6, 13)) +>'./test' : Symbol("test", Decl(test.ts, 0, 0)) + } +} + +export const obj = { +>obj : Symbol(obj, Decl(test.ts, 10, 12)) + + m: async () => { +>m : Symbol(m, Decl(test.ts, 10, 20)) + + const req = await import('./test') // THREE +>req : Symbol(req, Decl(test.ts, 12, 13)) +>'./test' : Symbol("test", Decl(test.ts, 0, 0)) + } +} + +export class cl2 { +>cl2 : Symbol(cl2, Decl(test.ts, 14, 1)) + + public p = { +>p : Symbol(cl2.p, Decl(test.ts, 16, 18)) + + m: async () => { +>m : Symbol(m, Decl(test.ts, 17, 16)) + + const req = await import('./test') // FOUR +>req : Symbol(req, Decl(test.ts, 19, 17)) +>'./test' : Symbol("test", Decl(test.ts, 0, 0)) + } + } +} + +export const l = async () => { +>l : Symbol(l, Decl(test.ts, 24, 12)) + + const req = await import('./test') // FIVE +>req : Symbol(req, Decl(test.ts, 25, 9)) +>'./test' : Symbol("test", Decl(test.ts, 0, 0)) +} + diff --git a/tests/baselines/reference/importCallExpressionAsyncES5System(target=es5).types b/tests/baselines/reference/importCallExpressionAsyncES5System(target=es5).types new file mode 100644 index 0000000000000..49ea6657f0824 --- /dev/null +++ b/tests/baselines/reference/importCallExpressionAsyncES5System(target=es5).types @@ -0,0 +1,108 @@ +//// [tests/cases/conformance/dynamicImport/importCallExpressionAsyncES5System.ts] //// + +=== test.ts === +export async function fn() { +>fn : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + const req = await import('./test') // ONE +>req : typeof import("test") +> : ^^^^^^^^^^^^^^^^^^^^^ +>await import('./test') : typeof import("test") +> : ^^^^^^^^^^^^^^^^^^^^^ +>import('./test') : Promise +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>'./test' : "./test" +> : ^^^^^^^^ +} + +export class cl1 { +>cl1 : cl1 +> : ^^^ + + public async m() { +>m : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + const req = await import('./test') // TWO +>req : typeof import("test") +> : ^^^^^^^^^^^^^^^^^^^^^ +>await import('./test') : typeof import("test") +> : ^^^^^^^^^^^^^^^^^^^^^ +>import('./test') : Promise +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>'./test' : "./test" +> : ^^^^^^^^ + } +} + +export const obj = { +>obj : { m: () => Promise; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ m: async () => { const req = await import('./test') // THREE }} : { m: () => Promise; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + m: async () => { +>m : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ +>async () => { const req = await import('./test') // THREE } : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + const req = await import('./test') // THREE +>req : typeof import("test") +> : ^^^^^^^^^^^^^^^^^^^^^ +>await import('./test') : typeof import("test") +> : ^^^^^^^^^^^^^^^^^^^^^ +>import('./test') : Promise +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>'./test' : "./test" +> : ^^^^^^^^ + } +} + +export class cl2 { +>cl2 : cl2 +> : ^^^ + + public p = { +>p : { m: () => Promise; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ m: async () => { const req = await import('./test') // FOUR } } : { m: () => Promise; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + m: async () => { +>m : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ +>async () => { const req = await import('./test') // FOUR } : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + const req = await import('./test') // FOUR +>req : typeof import("test") +> : ^^^^^^^^^^^^^^^^^^^^^ +>await import('./test') : typeof import("test") +> : ^^^^^^^^^^^^^^^^^^^^^ +>import('./test') : Promise +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>'./test' : "./test" +> : ^^^^^^^^ + } + } +} + +export const l = async () => { +>l : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ +>async () => { const req = await import('./test') // FIVE} : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + const req = await import('./test') // FIVE +>req : typeof import("test") +> : ^^^^^^^^^^^^^^^^^^^^^ +>await import('./test') : typeof import("test") +> : ^^^^^^^^^^^^^^^^^^^^^ +>import('./test') : Promise +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>'./test' : "./test" +> : ^^^^^^^^ +} + diff --git a/tests/baselines/reference/importCallExpressionAsyncES5UMD.errors.txt b/tests/baselines/reference/importCallExpressionAsyncES5UMD(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/importCallExpressionAsyncES5UMD.errors.txt rename to tests/baselines/reference/importCallExpressionAsyncES5UMD(target=es2015).errors.txt diff --git a/tests/baselines/reference/importCallExpressionAsyncES5UMD(target=es2015).js b/tests/baselines/reference/importCallExpressionAsyncES5UMD(target=es2015).js new file mode 100644 index 0000000000000..2eead763e670e --- /dev/null +++ b/tests/baselines/reference/importCallExpressionAsyncES5UMD(target=es2015).js @@ -0,0 +1,122 @@ +//// [tests/cases/conformance/dynamicImport/importCallExpressionAsyncES5UMD.ts] //// + +//// [test.ts] +export async function fn() { + const req = await import('./test') // ONE +} + +export class cl1 { + public async m() { + const req = await import('./test') // TWO + } +} + +export const obj = { + m: async () => { + const req = await import('./test') // THREE + } +} + +export class cl2 { + public p = { + m: async () => { + const req = await import('./test') // FOUR + } + } +} + +export const l = async () => { + const req = await import('./test') // FIVE +} + + +//// [test.js] +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +(function (factory) { + if (typeof module === "object" && typeof module.exports === "object") { + var v = factory(require, exports); + if (v !== undefined) module.exports = v; + } + else if (typeof define === "function" && define.amd) { + define(["require", "exports"], factory); + } +})(function (require, exports) { + "use strict"; + var __syncRequire = typeof module === "object" && typeof module.exports === "object"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.l = exports.cl2 = exports.obj = exports.cl1 = void 0; + exports.fn = fn; + function fn() { + return __awaiter(this, void 0, void 0, function* () { + const req = yield __syncRequire ? Promise.resolve().then(() => __importStar(require('./test'))) : new Promise((resolve_1, reject_1) => { require(['./test'], resolve_1, reject_1); }).then(__importStar); // ONE + }); + } + class cl1 { + m() { + return __awaiter(this, void 0, void 0, function* () { + const req = yield __syncRequire ? Promise.resolve().then(() => __importStar(require('./test'))) : new Promise((resolve_2, reject_2) => { require(['./test'], resolve_2, reject_2); }).then(__importStar); // TWO + }); + } + } + exports.cl1 = cl1; + exports.obj = { + m: () => __awaiter(void 0, void 0, void 0, function* () { + const req = yield __syncRequire ? Promise.resolve().then(() => __importStar(require('./test'))) : new Promise((resolve_3, reject_3) => { require(['./test'], resolve_3, reject_3); }).then(__importStar); // THREE + }) + }; + class cl2 { + constructor() { + this.p = { + m: () => __awaiter(this, void 0, void 0, function* () { + const req = yield __syncRequire ? Promise.resolve().then(() => __importStar(require('./test'))) : new Promise((resolve_4, reject_4) => { require(['./test'], resolve_4, reject_4); }).then(__importStar); // FOUR + }) + }; + } + } + exports.cl2 = cl2; + const l = () => __awaiter(void 0, void 0, void 0, function* () { + const req = yield __syncRequire ? Promise.resolve().then(() => __importStar(require('./test'))) : new Promise((resolve_5, reject_5) => { require(['./test'], resolve_5, reject_5); }).then(__importStar); // FIVE + }); + exports.l = l; +}); diff --git a/tests/baselines/reference/importCallExpressionAsyncES5UMD.symbols b/tests/baselines/reference/importCallExpressionAsyncES5UMD(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/importCallExpressionAsyncES5UMD.symbols rename to tests/baselines/reference/importCallExpressionAsyncES5UMD(target=es2015).symbols diff --git a/tests/baselines/reference/importCallExpressionAsyncES5UMD.types b/tests/baselines/reference/importCallExpressionAsyncES5UMD(target=es2015).types similarity index 100% rename from tests/baselines/reference/importCallExpressionAsyncES5UMD.types rename to tests/baselines/reference/importCallExpressionAsyncES5UMD(target=es2015).types diff --git a/tests/baselines/reference/importCallExpressionAsyncES5UMD(target=es5).errors.txt b/tests/baselines/reference/importCallExpressionAsyncES5UMD(target=es5).errors.txt new file mode 100644 index 0000000000000..346e820da515c --- /dev/null +++ b/tests/baselines/reference/importCallExpressionAsyncES5UMD(target=es5).errors.txt @@ -0,0 +1,33 @@ +error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== test.ts (0 errors) ==== + export async function fn() { + const req = await import('./test') // ONE + } + + export class cl1 { + public async m() { + const req = await import('./test') // TWO + } + } + + export const obj = { + m: async () => { + const req = await import('./test') // THREE + } + } + + export class cl2 { + public p = { + m: async () => { + const req = await import('./test') // FOUR + } + } + } + + export const l = async () => { + const req = await import('./test') // FIVE + } + \ No newline at end of file diff --git a/tests/baselines/reference/importCallExpressionAsyncES5UMD.js b/tests/baselines/reference/importCallExpressionAsyncES5UMD(target=es5).js similarity index 100% rename from tests/baselines/reference/importCallExpressionAsyncES5UMD.js rename to tests/baselines/reference/importCallExpressionAsyncES5UMD(target=es5).js diff --git a/tests/baselines/reference/importCallExpressionAsyncES5UMD(target=es5).symbols b/tests/baselines/reference/importCallExpressionAsyncES5UMD(target=es5).symbols new file mode 100644 index 0000000000000..d1bee62a1709f --- /dev/null +++ b/tests/baselines/reference/importCallExpressionAsyncES5UMD(target=es5).symbols @@ -0,0 +1,59 @@ +//// [tests/cases/conformance/dynamicImport/importCallExpressionAsyncES5UMD.ts] //// + +=== test.ts === +export async function fn() { +>fn : Symbol(fn, Decl(test.ts, 0, 0)) + + const req = await import('./test') // ONE +>req : Symbol(req, Decl(test.ts, 1, 9)) +>'./test' : Symbol("test", Decl(test.ts, 0, 0)) +} + +export class cl1 { +>cl1 : Symbol(cl1, Decl(test.ts, 2, 1)) + + public async m() { +>m : Symbol(cl1.m, Decl(test.ts, 4, 18)) + + const req = await import('./test') // TWO +>req : Symbol(req, Decl(test.ts, 6, 13)) +>'./test' : Symbol("test", Decl(test.ts, 0, 0)) + } +} + +export const obj = { +>obj : Symbol(obj, Decl(test.ts, 10, 12)) + + m: async () => { +>m : Symbol(m, Decl(test.ts, 10, 20)) + + const req = await import('./test') // THREE +>req : Symbol(req, Decl(test.ts, 12, 13)) +>'./test' : Symbol("test", Decl(test.ts, 0, 0)) + } +} + +export class cl2 { +>cl2 : Symbol(cl2, Decl(test.ts, 14, 1)) + + public p = { +>p : Symbol(cl2.p, Decl(test.ts, 16, 18)) + + m: async () => { +>m : Symbol(m, Decl(test.ts, 17, 16)) + + const req = await import('./test') // FOUR +>req : Symbol(req, Decl(test.ts, 19, 17)) +>'./test' : Symbol("test", Decl(test.ts, 0, 0)) + } + } +} + +export const l = async () => { +>l : Symbol(l, Decl(test.ts, 24, 12)) + + const req = await import('./test') // FIVE +>req : Symbol(req, Decl(test.ts, 25, 9)) +>'./test' : Symbol("test", Decl(test.ts, 0, 0)) +} + diff --git a/tests/baselines/reference/importCallExpressionAsyncES5UMD(target=es5).types b/tests/baselines/reference/importCallExpressionAsyncES5UMD(target=es5).types new file mode 100644 index 0000000000000..ff63b939ecc6f --- /dev/null +++ b/tests/baselines/reference/importCallExpressionAsyncES5UMD(target=es5).types @@ -0,0 +1,108 @@ +//// [tests/cases/conformance/dynamicImport/importCallExpressionAsyncES5UMD.ts] //// + +=== test.ts === +export async function fn() { +>fn : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + const req = await import('./test') // ONE +>req : typeof import("test") +> : ^^^^^^^^^^^^^^^^^^^^^ +>await import('./test') : typeof import("test") +> : ^^^^^^^^^^^^^^^^^^^^^ +>import('./test') : Promise +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>'./test' : "./test" +> : ^^^^^^^^ +} + +export class cl1 { +>cl1 : cl1 +> : ^^^ + + public async m() { +>m : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + const req = await import('./test') // TWO +>req : typeof import("test") +> : ^^^^^^^^^^^^^^^^^^^^^ +>await import('./test') : typeof import("test") +> : ^^^^^^^^^^^^^^^^^^^^^ +>import('./test') : Promise +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>'./test' : "./test" +> : ^^^^^^^^ + } +} + +export const obj = { +>obj : { m: () => Promise; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ m: async () => { const req = await import('./test') // THREE }} : { m: () => Promise; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + m: async () => { +>m : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ +>async () => { const req = await import('./test') // THREE } : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + const req = await import('./test') // THREE +>req : typeof import("test") +> : ^^^^^^^^^^^^^^^^^^^^^ +>await import('./test') : typeof import("test") +> : ^^^^^^^^^^^^^^^^^^^^^ +>import('./test') : Promise +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>'./test' : "./test" +> : ^^^^^^^^ + } +} + +export class cl2 { +>cl2 : cl2 +> : ^^^ + + public p = { +>p : { m: () => Promise; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ m: async () => { const req = await import('./test') // FOUR } } : { m: () => Promise; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + m: async () => { +>m : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ +>async () => { const req = await import('./test') // FOUR } : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + const req = await import('./test') // FOUR +>req : typeof import("test") +> : ^^^^^^^^^^^^^^^^^^^^^ +>await import('./test') : typeof import("test") +> : ^^^^^^^^^^^^^^^^^^^^^ +>import('./test') : Promise +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>'./test' : "./test" +> : ^^^^^^^^ + } + } +} + +export const l = async () => { +>l : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ +>async () => { const req = await import('./test') // FIVE} : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + + const req = await import('./test') // FIVE +>req : typeof import("test") +> : ^^^^^^^^^^^^^^^^^^^^^ +>await import('./test') : typeof import("test") +> : ^^^^^^^^^^^^^^^^^^^^^ +>import('./test') : Promise +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>'./test' : "./test" +> : ^^^^^^^^ +} + diff --git a/tests/baselines/reference/importCallExpressionES5AMD.errors.txt b/tests/baselines/reference/importCallExpressionES5AMD(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/importCallExpressionES5AMD.errors.txt rename to tests/baselines/reference/importCallExpressionES5AMD(target=es2015).errors.txt diff --git a/tests/baselines/reference/importCallExpressionES5AMD(target=es2015).js b/tests/baselines/reference/importCallExpressionES5AMD(target=es2015).js new file mode 100644 index 0000000000000..31d7b41ce912c --- /dev/null +++ b/tests/baselines/reference/importCallExpressionES5AMD(target=es2015).js @@ -0,0 +1,96 @@ +//// [tests/cases/conformance/dynamicImport/importCallExpressionES5AMD.ts] //// + +//// [0.ts] +export function foo() { return "foo"; } + +//// [1.ts] +import("./0"); +var p1 = import("./0"); +p1.then(zero => { + return zero.foo(); +}); + +export var p2 = import("./0"); + +function foo() { + const p2 = import("./0"); +} + +class C { + method() { + const loadAsync = import ("./0"); + } +} + +export class D { + method() { + const loadAsync = import ("./0"); + } +} + +//// [0.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.foo = foo; + function foo() { return "foo"; } +}); +//// [1.js] +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +define(["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.D = exports.p2 = void 0; + new Promise((resolve_1, reject_1) => { require(["./0"], resolve_1, reject_1); }).then(__importStar); + var p1 = new Promise((resolve_2, reject_2) => { require(["./0"], resolve_2, reject_2); }).then(__importStar); + p1.then(zero => { + return zero.foo(); + }); + exports.p2 = new Promise((resolve_3, reject_3) => { require(["./0"], resolve_3, reject_3); }).then(__importStar); + function foo() { + const p2 = new Promise((resolve_4, reject_4) => { require(["./0"], resolve_4, reject_4); }).then(__importStar); + } + class C { + method() { + const loadAsync = new Promise((resolve_5, reject_5) => { require(["./0"], resolve_5, reject_5); }).then(__importStar); + } + } + class D { + method() { + const loadAsync = new Promise((resolve_6, reject_6) => { require(["./0"], resolve_6, reject_6); }).then(__importStar); + } + } + exports.D = D; +}); diff --git a/tests/baselines/reference/importCallExpressionES5AMD.symbols b/tests/baselines/reference/importCallExpressionES5AMD(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/importCallExpressionES5AMD.symbols rename to tests/baselines/reference/importCallExpressionES5AMD(target=es2015).symbols diff --git a/tests/baselines/reference/importCallExpressionES5AMD.types b/tests/baselines/reference/importCallExpressionES5AMD(target=es2015).types similarity index 100% rename from tests/baselines/reference/importCallExpressionES5AMD.types rename to tests/baselines/reference/importCallExpressionES5AMD(target=es2015).types diff --git a/tests/baselines/reference/importCallExpressionES5AMD(target=es5).errors.txt b/tests/baselines/reference/importCallExpressionES5AMD(target=es5).errors.txt new file mode 100644 index 0000000000000..31f9e39e63788 --- /dev/null +++ b/tests/baselines/reference/importCallExpressionES5AMD(target=es5).errors.txt @@ -0,0 +1,31 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== 0.ts (0 errors) ==== + export function foo() { return "foo"; } + +==== 1.ts (0 errors) ==== + import("./0"); + var p1 = import("./0"); + p1.then(zero => { + return zero.foo(); + }); + + export var p2 = import("./0"); + + function foo() { + const p2 = import("./0"); + } + + class C { + method() { + const loadAsync = import ("./0"); + } + } + + export class D { + method() { + const loadAsync = import ("./0"); + } + } \ No newline at end of file diff --git a/tests/baselines/reference/importCallExpressionES5AMD.js b/tests/baselines/reference/importCallExpressionES5AMD(target=es5).js similarity index 100% rename from tests/baselines/reference/importCallExpressionES5AMD.js rename to tests/baselines/reference/importCallExpressionES5AMD(target=es5).js diff --git a/tests/baselines/reference/importCallExpressionES5AMD(target=es5).symbols b/tests/baselines/reference/importCallExpressionES5AMD(target=es5).symbols new file mode 100644 index 0000000000000..7c754ae1d22f9 --- /dev/null +++ b/tests/baselines/reference/importCallExpressionES5AMD(target=es5).symbols @@ -0,0 +1,62 @@ +//// [tests/cases/conformance/dynamicImport/importCallExpressionES5AMD.ts] //// + +=== 0.ts === +export function foo() { return "foo"; } +>foo : Symbol(foo, Decl(0.ts, 0, 0)) + +=== 1.ts === +import("./0"); +>"./0" : Symbol("0", Decl(0.ts, 0, 0)) + +var p1 = import("./0"); +>p1 : Symbol(p1, Decl(1.ts, 1, 3)) +>"./0" : Symbol("0", Decl(0.ts, 0, 0)) + +p1.then(zero => { +>p1.then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) +>p1 : Symbol(p1, Decl(1.ts, 1, 3)) +>then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) +>zero : Symbol(zero, Decl(1.ts, 2, 8)) + + return zero.foo(); +>zero.foo : Symbol(foo, Decl(0.ts, 0, 0)) +>zero : Symbol(zero, Decl(1.ts, 2, 8)) +>foo : Symbol(foo, Decl(0.ts, 0, 0)) + +}); + +export var p2 = import("./0"); +>p2 : Symbol(p2, Decl(1.ts, 6, 10)) +>"./0" : Symbol("0", Decl(0.ts, 0, 0)) + +function foo() { +>foo : Symbol(foo, Decl(1.ts, 6, 30)) + + const p2 = import("./0"); +>p2 : Symbol(p2, Decl(1.ts, 9, 9)) +>"./0" : Symbol("0", Decl(0.ts, 0, 0)) +} + +class C { +>C : Symbol(C, Decl(1.ts, 10, 1)) + + method() { +>method : Symbol(C.method, Decl(1.ts, 12, 9)) + + const loadAsync = import ("./0"); +>loadAsync : Symbol(loadAsync, Decl(1.ts, 14, 13)) +>"./0" : Symbol("0", Decl(0.ts, 0, 0)) + } +} + +export class D { +>D : Symbol(D, Decl(1.ts, 16, 1)) + + method() { +>method : Symbol(D.method, Decl(1.ts, 18, 16)) + + const loadAsync = import ("./0"); +>loadAsync : Symbol(loadAsync, Decl(1.ts, 20, 13)) +>"./0" : Symbol("0", Decl(0.ts, 0, 0)) + } +} diff --git a/tests/baselines/reference/importCallExpressionES5AMD(target=es5).types b/tests/baselines/reference/importCallExpressionES5AMD(target=es5).types new file mode 100644 index 0000000000000..48f71779df78e --- /dev/null +++ b/tests/baselines/reference/importCallExpressionES5AMD(target=es5).types @@ -0,0 +1,106 @@ +//// [tests/cases/conformance/dynamicImport/importCallExpressionES5AMD.ts] //// + +=== 0.ts === +export function foo() { return "foo"; } +>foo : () => string +> : ^^^^^^^^^^^^ +>"foo" : "foo" +> : ^^^^^ + +=== 1.ts === +import("./0"); +>import("./0") : Promise +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>"./0" : "./0" +> : ^^^^^ + +var p1 = import("./0"); +>p1 : Promise +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>import("./0") : Promise +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>"./0" : "./0" +> : ^^^^^ + +p1.then(zero => { +>p1.then(zero => { return zero.foo();}) : Promise +> : ^^^^^^^^^^^^^^^ +>p1.then : (onfulfilled?: (value: typeof import("0")) => TResult1 | PromiseLike, onrejected?: (reason: any) => TResult2 | PromiseLike) => Promise +> : ^ ^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^ ^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>p1 : Promise +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>then : (onfulfilled?: (value: typeof import("0")) => TResult1 | PromiseLike, onrejected?: (reason: any) => TResult2 | PromiseLike) => Promise +> : ^ ^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^ ^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>zero => { return zero.foo();} : (zero: typeof import("0")) => string +> : ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>zero : typeof import("0") +> : ^^^^^^^^^^^^^^^^^^ + + return zero.foo(); +>zero.foo() : string +> : ^^^^^^ +>zero.foo : () => string +> : ^^^^^^^^^^^^ +>zero : typeof import("0") +> : ^^^^^^^^^^^^^^^^^^ +>foo : () => string +> : ^^^^^^^^^^^^ + +}); + +export var p2 = import("./0"); +>p2 : Promise +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>import("./0") : Promise +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>"./0" : "./0" +> : ^^^^^ + +function foo() { +>foo : () => void +> : ^^^^^^^^^^ + + const p2 = import("./0"); +>p2 : Promise +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>import("./0") : Promise +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>"./0" : "./0" +> : ^^^^^ +} + +class C { +>C : C +> : ^ + + method() { +>method : () => void +> : ^^^^^^^^^^ + + const loadAsync = import ("./0"); +>loadAsync : Promise +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>import ("./0") : Promise +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>"./0" : "./0" +> : ^^^^^ + } +} + +export class D { +>D : D +> : ^ + + method() { +>method : () => void +> : ^^^^^^^^^^ + + const loadAsync = import ("./0"); +>loadAsync : Promise +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>import ("./0") : Promise +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>"./0" : "./0" +> : ^^^^^ + } +} diff --git a/tests/baselines/reference/importCallExpressionES5CJS(target=es2015).js b/tests/baselines/reference/importCallExpressionES5CJS(target=es2015).js new file mode 100644 index 0000000000000..cc8acc19a3825 --- /dev/null +++ b/tests/baselines/reference/importCallExpressionES5CJS(target=es2015).js @@ -0,0 +1,92 @@ +//// [tests/cases/conformance/dynamicImport/importCallExpressionES5CJS.ts] //// + +//// [0.ts] +export function foo() { return "foo"; } + +//// [1.ts] +import("./0"); +var p1 = import("./0"); +p1.then(zero => { + return zero.foo(); +}); + +export var p2 = import("./0"); + +function foo() { + const p2 = import("./0"); +} + +class C { + method() { + const loadAsync = import ("./0"); + } +} + +export class D { + method() { + const loadAsync = import ("./0"); + } +} + +//// [0.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.foo = foo; +function foo() { return "foo"; } +//// [1.js] +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.D = exports.p2 = void 0; +Promise.resolve().then(() => __importStar(require("./0"))); +var p1 = Promise.resolve().then(() => __importStar(require("./0"))); +p1.then(zero => { + return zero.foo(); +}); +exports.p2 = Promise.resolve().then(() => __importStar(require("./0"))); +function foo() { + const p2 = Promise.resolve().then(() => __importStar(require("./0"))); +} +class C { + method() { + const loadAsync = Promise.resolve().then(() => __importStar(require("./0"))); + } +} +class D { + method() { + const loadAsync = Promise.resolve().then(() => __importStar(require("./0"))); + } +} +exports.D = D; diff --git a/tests/baselines/reference/importCallExpressionES5CJS.symbols b/tests/baselines/reference/importCallExpressionES5CJS(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/importCallExpressionES5CJS.symbols rename to tests/baselines/reference/importCallExpressionES5CJS(target=es2015).symbols diff --git a/tests/baselines/reference/importCallExpressionES5CJS.types b/tests/baselines/reference/importCallExpressionES5CJS(target=es2015).types similarity index 100% rename from tests/baselines/reference/importCallExpressionES5CJS.types rename to tests/baselines/reference/importCallExpressionES5CJS(target=es2015).types diff --git a/tests/baselines/reference/importCallExpressionES5CJS.js b/tests/baselines/reference/importCallExpressionES5CJS(target=es5).js similarity index 100% rename from tests/baselines/reference/importCallExpressionES5CJS.js rename to tests/baselines/reference/importCallExpressionES5CJS(target=es5).js diff --git a/tests/baselines/reference/importCallExpressionES5CJS(target=es5).symbols b/tests/baselines/reference/importCallExpressionES5CJS(target=es5).symbols new file mode 100644 index 0000000000000..473833994886c --- /dev/null +++ b/tests/baselines/reference/importCallExpressionES5CJS(target=es5).symbols @@ -0,0 +1,62 @@ +//// [tests/cases/conformance/dynamicImport/importCallExpressionES5CJS.ts] //// + +=== 0.ts === +export function foo() { return "foo"; } +>foo : Symbol(foo, Decl(0.ts, 0, 0)) + +=== 1.ts === +import("./0"); +>"./0" : Symbol("0", Decl(0.ts, 0, 0)) + +var p1 = import("./0"); +>p1 : Symbol(p1, Decl(1.ts, 1, 3)) +>"./0" : Symbol("0", Decl(0.ts, 0, 0)) + +p1.then(zero => { +>p1.then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) +>p1 : Symbol(p1, Decl(1.ts, 1, 3)) +>then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) +>zero : Symbol(zero, Decl(1.ts, 2, 8)) + + return zero.foo(); +>zero.foo : Symbol(foo, Decl(0.ts, 0, 0)) +>zero : Symbol(zero, Decl(1.ts, 2, 8)) +>foo : Symbol(foo, Decl(0.ts, 0, 0)) + +}); + +export var p2 = import("./0"); +>p2 : Symbol(p2, Decl(1.ts, 6, 10)) +>"./0" : Symbol("0", Decl(0.ts, 0, 0)) + +function foo() { +>foo : Symbol(foo, Decl(1.ts, 6, 30)) + + const p2 = import("./0"); +>p2 : Symbol(p2, Decl(1.ts, 9, 9)) +>"./0" : Symbol("0", Decl(0.ts, 0, 0)) +} + +class C { +>C : Symbol(C, Decl(1.ts, 10, 1)) + + method() { +>method : Symbol(C.method, Decl(1.ts, 12, 9)) + + const loadAsync = import ("./0"); +>loadAsync : Symbol(loadAsync, Decl(1.ts, 14, 13)) +>"./0" : Symbol("0", Decl(0.ts, 0, 0)) + } +} + +export class D { +>D : Symbol(D, Decl(1.ts, 16, 1)) + + method() { +>method : Symbol(D.method, Decl(1.ts, 18, 16)) + + const loadAsync = import ("./0"); +>loadAsync : Symbol(loadAsync, Decl(1.ts, 20, 13)) +>"./0" : Symbol("0", Decl(0.ts, 0, 0)) + } +} diff --git a/tests/baselines/reference/importCallExpressionES5CJS(target=es5).types b/tests/baselines/reference/importCallExpressionES5CJS(target=es5).types new file mode 100644 index 0000000000000..ce3f268a559db --- /dev/null +++ b/tests/baselines/reference/importCallExpressionES5CJS(target=es5).types @@ -0,0 +1,106 @@ +//// [tests/cases/conformance/dynamicImport/importCallExpressionES5CJS.ts] //// + +=== 0.ts === +export function foo() { return "foo"; } +>foo : () => string +> : ^^^^^^^^^^^^ +>"foo" : "foo" +> : ^^^^^ + +=== 1.ts === +import("./0"); +>import("./0") : Promise +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>"./0" : "./0" +> : ^^^^^ + +var p1 = import("./0"); +>p1 : Promise +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>import("./0") : Promise +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>"./0" : "./0" +> : ^^^^^ + +p1.then(zero => { +>p1.then(zero => { return zero.foo();}) : Promise +> : ^^^^^^^^^^^^^^^ +>p1.then : (onfulfilled?: (value: typeof import("0")) => TResult1 | PromiseLike, onrejected?: (reason: any) => TResult2 | PromiseLike) => Promise +> : ^ ^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^ ^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>p1 : Promise +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>then : (onfulfilled?: (value: typeof import("0")) => TResult1 | PromiseLike, onrejected?: (reason: any) => TResult2 | PromiseLike) => Promise +> : ^ ^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^ ^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>zero => { return zero.foo();} : (zero: typeof import("0")) => string +> : ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>zero : typeof import("0") +> : ^^^^^^^^^^^^^^^^^^ + + return zero.foo(); +>zero.foo() : string +> : ^^^^^^ +>zero.foo : () => string +> : ^^^^^^^^^^^^ +>zero : typeof import("0") +> : ^^^^^^^^^^^^^^^^^^ +>foo : () => string +> : ^^^^^^^^^^^^ + +}); + +export var p2 = import("./0"); +>p2 : Promise +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>import("./0") : Promise +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>"./0" : "./0" +> : ^^^^^ + +function foo() { +>foo : () => void +> : ^^^^^^^^^^ + + const p2 = import("./0"); +>p2 : Promise +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>import("./0") : Promise +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>"./0" : "./0" +> : ^^^^^ +} + +class C { +>C : C +> : ^ + + method() { +>method : () => void +> : ^^^^^^^^^^ + + const loadAsync = import ("./0"); +>loadAsync : Promise +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>import ("./0") : Promise +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>"./0" : "./0" +> : ^^^^^ + } +} + +export class D { +>D : D +> : ^ + + method() { +>method : () => void +> : ^^^^^^^^^^ + + const loadAsync = import ("./0"); +>loadAsync : Promise +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>import ("./0") : Promise +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>"./0" : "./0" +> : ^^^^^ + } +} diff --git a/tests/baselines/reference/importCallExpressionES5System.errors.txt b/tests/baselines/reference/importCallExpressionES5System(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/importCallExpressionES5System.errors.txt rename to tests/baselines/reference/importCallExpressionES5System(target=es2015).errors.txt diff --git a/tests/baselines/reference/importCallExpressionES5System(target=es2015).js b/tests/baselines/reference/importCallExpressionES5System(target=es2015).js new file mode 100644 index 0000000000000..f5ea838535e83 --- /dev/null +++ b/tests/baselines/reference/importCallExpressionES5System(target=es2015).js @@ -0,0 +1,73 @@ +//// [tests/cases/conformance/dynamicImport/importCallExpressionES5System.ts] //// + +//// [0.ts] +export function foo() { return "foo"; } + +//// [1.ts] +import("./0"); +var p1 = import("./0"); +p1.then(zero => { + return zero.foo(); +}); + +export var p2 = import("./0"); + +function foo() { + const p2 = import("./0"); +} + +class C { + method() { + const loadAsync = import ("./0"); + } +} + +export class D { + method() { + const loadAsync = import ("./0"); + } +} + +//// [0.js] +System.register([], function (exports_1, context_1) { + "use strict"; + var __moduleName = context_1 && context_1.id; + function foo() { return "foo"; } + exports_1("foo", foo); + return { + setters: [], + execute: function () { + } + }; +}); +//// [1.js] +System.register([], function (exports_1, context_1) { + "use strict"; + var p1, p2, C, D; + var __moduleName = context_1 && context_1.id; + function foo() { + const p2 = context_1.import("./0"); + } + return { + setters: [], + execute: function () { + context_1.import("./0"); + p1 = context_1.import("./0"); + p1.then(zero => { + return zero.foo(); + }); + exports_1("p2", p2 = context_1.import("./0")); + C = class C { + method() { + const loadAsync = context_1.import("./0"); + } + }; + D = class D { + method() { + const loadAsync = context_1.import("./0"); + } + }; + exports_1("D", D); + } + }; +}); diff --git a/tests/baselines/reference/importCallExpressionES5System.symbols b/tests/baselines/reference/importCallExpressionES5System(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/importCallExpressionES5System.symbols rename to tests/baselines/reference/importCallExpressionES5System(target=es2015).symbols diff --git a/tests/baselines/reference/importCallExpressionES5System.types b/tests/baselines/reference/importCallExpressionES5System(target=es2015).types similarity index 100% rename from tests/baselines/reference/importCallExpressionES5System.types rename to tests/baselines/reference/importCallExpressionES5System(target=es2015).types diff --git a/tests/baselines/reference/importCallExpressionES5System(target=es5).errors.txt b/tests/baselines/reference/importCallExpressionES5System(target=es5).errors.txt new file mode 100644 index 0000000000000..0fb7315d37773 --- /dev/null +++ b/tests/baselines/reference/importCallExpressionES5System(target=es5).errors.txt @@ -0,0 +1,31 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== 0.ts (0 errors) ==== + export function foo() { return "foo"; } + +==== 1.ts (0 errors) ==== + import("./0"); + var p1 = import("./0"); + p1.then(zero => { + return zero.foo(); + }); + + export var p2 = import("./0"); + + function foo() { + const p2 = import("./0"); + } + + class C { + method() { + const loadAsync = import ("./0"); + } + } + + export class D { + method() { + const loadAsync = import ("./0"); + } + } \ No newline at end of file diff --git a/tests/baselines/reference/importCallExpressionES5System.js b/tests/baselines/reference/importCallExpressionES5System(target=es5).js similarity index 100% rename from tests/baselines/reference/importCallExpressionES5System.js rename to tests/baselines/reference/importCallExpressionES5System(target=es5).js diff --git a/tests/baselines/reference/importCallExpressionES5System(target=es5).symbols b/tests/baselines/reference/importCallExpressionES5System(target=es5).symbols new file mode 100644 index 0000000000000..289ff32a30ed1 --- /dev/null +++ b/tests/baselines/reference/importCallExpressionES5System(target=es5).symbols @@ -0,0 +1,62 @@ +//// [tests/cases/conformance/dynamicImport/importCallExpressionES5System.ts] //// + +=== 0.ts === +export function foo() { return "foo"; } +>foo : Symbol(foo, Decl(0.ts, 0, 0)) + +=== 1.ts === +import("./0"); +>"./0" : Symbol("0", Decl(0.ts, 0, 0)) + +var p1 = import("./0"); +>p1 : Symbol(p1, Decl(1.ts, 1, 3)) +>"./0" : Symbol("0", Decl(0.ts, 0, 0)) + +p1.then(zero => { +>p1.then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) +>p1 : Symbol(p1, Decl(1.ts, 1, 3)) +>then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) +>zero : Symbol(zero, Decl(1.ts, 2, 8)) + + return zero.foo(); +>zero.foo : Symbol(foo, Decl(0.ts, 0, 0)) +>zero : Symbol(zero, Decl(1.ts, 2, 8)) +>foo : Symbol(foo, Decl(0.ts, 0, 0)) + +}); + +export var p2 = import("./0"); +>p2 : Symbol(p2, Decl(1.ts, 6, 10)) +>"./0" : Symbol("0", Decl(0.ts, 0, 0)) + +function foo() { +>foo : Symbol(foo, Decl(1.ts, 6, 30)) + + const p2 = import("./0"); +>p2 : Symbol(p2, Decl(1.ts, 9, 9)) +>"./0" : Symbol("0", Decl(0.ts, 0, 0)) +} + +class C { +>C : Symbol(C, Decl(1.ts, 10, 1)) + + method() { +>method : Symbol(C.method, Decl(1.ts, 12, 9)) + + const loadAsync = import ("./0"); +>loadAsync : Symbol(loadAsync, Decl(1.ts, 14, 13)) +>"./0" : Symbol("0", Decl(0.ts, 0, 0)) + } +} + +export class D { +>D : Symbol(D, Decl(1.ts, 16, 1)) + + method() { +>method : Symbol(D.method, Decl(1.ts, 18, 16)) + + const loadAsync = import ("./0"); +>loadAsync : Symbol(loadAsync, Decl(1.ts, 20, 13)) +>"./0" : Symbol("0", Decl(0.ts, 0, 0)) + } +} diff --git a/tests/baselines/reference/importCallExpressionES5System(target=es5).types b/tests/baselines/reference/importCallExpressionES5System(target=es5).types new file mode 100644 index 0000000000000..5c7e4e511afb0 --- /dev/null +++ b/tests/baselines/reference/importCallExpressionES5System(target=es5).types @@ -0,0 +1,106 @@ +//// [tests/cases/conformance/dynamicImport/importCallExpressionES5System.ts] //// + +=== 0.ts === +export function foo() { return "foo"; } +>foo : () => string +> : ^^^^^^^^^^^^ +>"foo" : "foo" +> : ^^^^^ + +=== 1.ts === +import("./0"); +>import("./0") : Promise +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>"./0" : "./0" +> : ^^^^^ + +var p1 = import("./0"); +>p1 : Promise +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>import("./0") : Promise +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>"./0" : "./0" +> : ^^^^^ + +p1.then(zero => { +>p1.then(zero => { return zero.foo();}) : Promise +> : ^^^^^^^^^^^^^^^ +>p1.then : (onfulfilled?: (value: typeof import("0")) => TResult1 | PromiseLike, onrejected?: (reason: any) => TResult2 | PromiseLike) => Promise +> : ^ ^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^ ^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>p1 : Promise +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>then : (onfulfilled?: (value: typeof import("0")) => TResult1 | PromiseLike, onrejected?: (reason: any) => TResult2 | PromiseLike) => Promise +> : ^ ^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^ ^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>zero => { return zero.foo();} : (zero: typeof import("0")) => string +> : ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>zero : typeof import("0") +> : ^^^^^^^^^^^^^^^^^^ + + return zero.foo(); +>zero.foo() : string +> : ^^^^^^ +>zero.foo : () => string +> : ^^^^^^^^^^^^ +>zero : typeof import("0") +> : ^^^^^^^^^^^^^^^^^^ +>foo : () => string +> : ^^^^^^^^^^^^ + +}); + +export var p2 = import("./0"); +>p2 : Promise +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>import("./0") : Promise +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>"./0" : "./0" +> : ^^^^^ + +function foo() { +>foo : () => void +> : ^^^^^^^^^^ + + const p2 = import("./0"); +>p2 : Promise +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>import("./0") : Promise +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>"./0" : "./0" +> : ^^^^^ +} + +class C { +>C : C +> : ^ + + method() { +>method : () => void +> : ^^^^^^^^^^ + + const loadAsync = import ("./0"); +>loadAsync : Promise +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>import ("./0") : Promise +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>"./0" : "./0" +> : ^^^^^ + } +} + +export class D { +>D : D +> : ^ + + method() { +>method : () => void +> : ^^^^^^^^^^ + + const loadAsync = import ("./0"); +>loadAsync : Promise +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>import ("./0") : Promise +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>"./0" : "./0" +> : ^^^^^ + } +} diff --git a/tests/baselines/reference/importCallExpressionES5UMD.errors.txt b/tests/baselines/reference/importCallExpressionES5UMD(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/importCallExpressionES5UMD.errors.txt rename to tests/baselines/reference/importCallExpressionES5UMD(target=es2015).errors.txt diff --git a/tests/baselines/reference/importCallExpressionES5UMD(target=es2015).js b/tests/baselines/reference/importCallExpressionES5UMD(target=es2015).js new file mode 100644 index 0000000000000..0473d2517e3a4 --- /dev/null +++ b/tests/baselines/reference/importCallExpressionES5UMD(target=es2015).js @@ -0,0 +1,113 @@ +//// [tests/cases/conformance/dynamicImport/importCallExpressionES5UMD.ts] //// + +//// [0.ts] +export function foo() { return "foo"; } + +//// [1.ts] +import("./0"); +var p1 = import("./0"); +p1.then(zero => { + return zero.foo(); +}); + +export var p2 = import("./0"); + +function foo() { + const p2 = import("./0"); +} + +class C { + method() { + const loadAsync = import ("./0"); + } +} + +export class D { + method() { + const loadAsync = import ("./0"); + } +} + +//// [0.js] +(function (factory) { + if (typeof module === "object" && typeof module.exports === "object") { + var v = factory(require, exports); + if (v !== undefined) module.exports = v; + } + else if (typeof define === "function" && define.amd) { + define(["require", "exports"], factory); + } +})(function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.foo = foo; + function foo() { return "foo"; } +}); +//// [1.js] +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +(function (factory) { + if (typeof module === "object" && typeof module.exports === "object") { + var v = factory(require, exports); + if (v !== undefined) module.exports = v; + } + else if (typeof define === "function" && define.amd) { + define(["require", "exports"], factory); + } +})(function (require, exports) { + "use strict"; + var __syncRequire = typeof module === "object" && typeof module.exports === "object"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.D = exports.p2 = void 0; + __syncRequire ? Promise.resolve().then(() => __importStar(require("./0"))) : new Promise((resolve_1, reject_1) => { require(["./0"], resolve_1, reject_1); }).then(__importStar); + var p1 = __syncRequire ? Promise.resolve().then(() => __importStar(require("./0"))) : new Promise((resolve_2, reject_2) => { require(["./0"], resolve_2, reject_2); }).then(__importStar); + p1.then(zero => { + return zero.foo(); + }); + exports.p2 = __syncRequire ? Promise.resolve().then(() => __importStar(require("./0"))) : new Promise((resolve_3, reject_3) => { require(["./0"], resolve_3, reject_3); }).then(__importStar); + function foo() { + const p2 = __syncRequire ? Promise.resolve().then(() => __importStar(require("./0"))) : new Promise((resolve_4, reject_4) => { require(["./0"], resolve_4, reject_4); }).then(__importStar); + } + class C { + method() { + const loadAsync = __syncRequire ? Promise.resolve().then(() => __importStar(require("./0"))) : new Promise((resolve_5, reject_5) => { require(["./0"], resolve_5, reject_5); }).then(__importStar); + } + } + class D { + method() { + const loadAsync = __syncRequire ? Promise.resolve().then(() => __importStar(require("./0"))) : new Promise((resolve_6, reject_6) => { require(["./0"], resolve_6, reject_6); }).then(__importStar); + } + } + exports.D = D; +}); diff --git a/tests/baselines/reference/importCallExpressionES5UMD.symbols b/tests/baselines/reference/importCallExpressionES5UMD(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/importCallExpressionES5UMD.symbols rename to tests/baselines/reference/importCallExpressionES5UMD(target=es2015).symbols diff --git a/tests/baselines/reference/importCallExpressionES5UMD.types b/tests/baselines/reference/importCallExpressionES5UMD(target=es2015).types similarity index 100% rename from tests/baselines/reference/importCallExpressionES5UMD.types rename to tests/baselines/reference/importCallExpressionES5UMD(target=es2015).types diff --git a/tests/baselines/reference/importCallExpressionES5UMD(target=es5).errors.txt b/tests/baselines/reference/importCallExpressionES5UMD(target=es5).errors.txt new file mode 100644 index 0000000000000..ff981b39efa20 --- /dev/null +++ b/tests/baselines/reference/importCallExpressionES5UMD(target=es5).errors.txt @@ -0,0 +1,31 @@ +error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== 0.ts (0 errors) ==== + export function foo() { return "foo"; } + +==== 1.ts (0 errors) ==== + import("./0"); + var p1 = import("./0"); + p1.then(zero => { + return zero.foo(); + }); + + export var p2 = import("./0"); + + function foo() { + const p2 = import("./0"); + } + + class C { + method() { + const loadAsync = import ("./0"); + } + } + + export class D { + method() { + const loadAsync = import ("./0"); + } + } \ No newline at end of file diff --git a/tests/baselines/reference/importCallExpressionES5UMD.js b/tests/baselines/reference/importCallExpressionES5UMD(target=es5).js similarity index 100% rename from tests/baselines/reference/importCallExpressionES5UMD.js rename to tests/baselines/reference/importCallExpressionES5UMD(target=es5).js diff --git a/tests/baselines/reference/importCallExpressionES5UMD(target=es5).symbols b/tests/baselines/reference/importCallExpressionES5UMD(target=es5).symbols new file mode 100644 index 0000000000000..5b025d3e57422 --- /dev/null +++ b/tests/baselines/reference/importCallExpressionES5UMD(target=es5).symbols @@ -0,0 +1,62 @@ +//// [tests/cases/conformance/dynamicImport/importCallExpressionES5UMD.ts] //// + +=== 0.ts === +export function foo() { return "foo"; } +>foo : Symbol(foo, Decl(0.ts, 0, 0)) + +=== 1.ts === +import("./0"); +>"./0" : Symbol("0", Decl(0.ts, 0, 0)) + +var p1 = import("./0"); +>p1 : Symbol(p1, Decl(1.ts, 1, 3)) +>"./0" : Symbol("0", Decl(0.ts, 0, 0)) + +p1.then(zero => { +>p1.then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) +>p1 : Symbol(p1, Decl(1.ts, 1, 3)) +>then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) +>zero : Symbol(zero, Decl(1.ts, 2, 8)) + + return zero.foo(); +>zero.foo : Symbol(foo, Decl(0.ts, 0, 0)) +>zero : Symbol(zero, Decl(1.ts, 2, 8)) +>foo : Symbol(foo, Decl(0.ts, 0, 0)) + +}); + +export var p2 = import("./0"); +>p2 : Symbol(p2, Decl(1.ts, 6, 10)) +>"./0" : Symbol("0", Decl(0.ts, 0, 0)) + +function foo() { +>foo : Symbol(foo, Decl(1.ts, 6, 30)) + + const p2 = import("./0"); +>p2 : Symbol(p2, Decl(1.ts, 9, 9)) +>"./0" : Symbol("0", Decl(0.ts, 0, 0)) +} + +class C { +>C : Symbol(C, Decl(1.ts, 10, 1)) + + method() { +>method : Symbol(C.method, Decl(1.ts, 12, 9)) + + const loadAsync = import ("./0"); +>loadAsync : Symbol(loadAsync, Decl(1.ts, 14, 13)) +>"./0" : Symbol("0", Decl(0.ts, 0, 0)) + } +} + +export class D { +>D : Symbol(D, Decl(1.ts, 16, 1)) + + method() { +>method : Symbol(D.method, Decl(1.ts, 18, 16)) + + const loadAsync = import ("./0"); +>loadAsync : Symbol(loadAsync, Decl(1.ts, 20, 13)) +>"./0" : Symbol("0", Decl(0.ts, 0, 0)) + } +} diff --git a/tests/baselines/reference/importCallExpressionES5UMD(target=es5).types b/tests/baselines/reference/importCallExpressionES5UMD(target=es5).types new file mode 100644 index 0000000000000..e08c6db4b20e3 --- /dev/null +++ b/tests/baselines/reference/importCallExpressionES5UMD(target=es5).types @@ -0,0 +1,106 @@ +//// [tests/cases/conformance/dynamicImport/importCallExpressionES5UMD.ts] //// + +=== 0.ts === +export function foo() { return "foo"; } +>foo : () => string +> : ^^^^^^^^^^^^ +>"foo" : "foo" +> : ^^^^^ + +=== 1.ts === +import("./0"); +>import("./0") : Promise +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>"./0" : "./0" +> : ^^^^^ + +var p1 = import("./0"); +>p1 : Promise +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>import("./0") : Promise +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>"./0" : "./0" +> : ^^^^^ + +p1.then(zero => { +>p1.then(zero => { return zero.foo();}) : Promise +> : ^^^^^^^^^^^^^^^ +>p1.then : (onfulfilled?: (value: typeof import("0")) => TResult1 | PromiseLike, onrejected?: (reason: any) => TResult2 | PromiseLike) => Promise +> : ^ ^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^ ^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>p1 : Promise +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>then : (onfulfilled?: (value: typeof import("0")) => TResult1 | PromiseLike, onrejected?: (reason: any) => TResult2 | PromiseLike) => Promise +> : ^ ^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^ ^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>zero => { return zero.foo();} : (zero: typeof import("0")) => string +> : ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>zero : typeof import("0") +> : ^^^^^^^^^^^^^^^^^^ + + return zero.foo(); +>zero.foo() : string +> : ^^^^^^ +>zero.foo : () => string +> : ^^^^^^^^^^^^ +>zero : typeof import("0") +> : ^^^^^^^^^^^^^^^^^^ +>foo : () => string +> : ^^^^^^^^^^^^ + +}); + +export var p2 = import("./0"); +>p2 : Promise +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>import("./0") : Promise +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>"./0" : "./0" +> : ^^^^^ + +function foo() { +>foo : () => void +> : ^^^^^^^^^^ + + const p2 = import("./0"); +>p2 : Promise +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>import("./0") : Promise +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>"./0" : "./0" +> : ^^^^^ +} + +class C { +>C : C +> : ^ + + method() { +>method : () => void +> : ^^^^^^^^^^ + + const loadAsync = import ("./0"); +>loadAsync : Promise +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>import ("./0") : Promise +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>"./0" : "./0" +> : ^^^^^ + } +} + +export class D { +>D : D +> : ^ + + method() { +>method : () => void +> : ^^^^^^^^^^ + + const loadAsync = import ("./0"); +>loadAsync : Promise +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>import ("./0") : Promise +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>"./0" : "./0" +> : ^^^^^ + } +} diff --git a/tests/baselines/reference/importCallExpressionNestedAMD2.errors.txt b/tests/baselines/reference/importCallExpressionNestedAMD2(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/importCallExpressionNestedAMD2.errors.txt rename to tests/baselines/reference/importCallExpressionNestedAMD2(target=es2015).errors.txt diff --git a/tests/baselines/reference/importCallExpressionNestedAMD2(target=es2015).js b/tests/baselines/reference/importCallExpressionNestedAMD2(target=es2015).js new file mode 100644 index 0000000000000..29b61c6bb1b58 --- /dev/null +++ b/tests/baselines/reference/importCallExpressionNestedAMD2(target=es2015).js @@ -0,0 +1,67 @@ +//// [tests/cases/conformance/dynamicImport/importCallExpressionNestedAMD2.ts] //// + +//// [foo.ts] +export default "./foo"; + +//// [index.ts] +async function foo() { + return await import((await import("./foo")).default); +} + +//// [foo.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.default = "./foo"; +}); +//// [index.js] +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +define(["require", "exports"], function (require, exports) { + "use strict"; + function foo() { + return __awaiter(this, void 0, void 0, function* () { + return yield new Promise((resolve_1, reject_1) => { require([(yield new Promise((resolve_2, reject_2) => { require(["./foo"], resolve_2, reject_2); }).then(__importStar)).default], resolve_1, reject_1); }).then(__importStar); + }); + } +}); diff --git a/tests/baselines/reference/importCallExpressionNestedAMD2.symbols b/tests/baselines/reference/importCallExpressionNestedAMD2(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/importCallExpressionNestedAMD2.symbols rename to tests/baselines/reference/importCallExpressionNestedAMD2(target=es2015).symbols diff --git a/tests/baselines/reference/importCallExpressionNestedAMD2.types b/tests/baselines/reference/importCallExpressionNestedAMD2(target=es2015).types similarity index 100% rename from tests/baselines/reference/importCallExpressionNestedAMD2.types rename to tests/baselines/reference/importCallExpressionNestedAMD2(target=es2015).types diff --git a/tests/baselines/reference/importCallExpressionNestedAMD2(target=es5).errors.txt b/tests/baselines/reference/importCallExpressionNestedAMD2(target=es5).errors.txt new file mode 100644 index 0000000000000..076931f140681 --- /dev/null +++ b/tests/baselines/reference/importCallExpressionNestedAMD2(target=es5).errors.txt @@ -0,0 +1,11 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== foo.ts (0 errors) ==== + export default "./foo"; + +==== index.ts (0 errors) ==== + async function foo() { + return await import((await import("./foo")).default); + } \ No newline at end of file diff --git a/tests/baselines/reference/importCallExpressionNestedAMD2.js b/tests/baselines/reference/importCallExpressionNestedAMD2(target=es5).js similarity index 100% rename from tests/baselines/reference/importCallExpressionNestedAMD2.js rename to tests/baselines/reference/importCallExpressionNestedAMD2(target=es5).js diff --git a/tests/baselines/reference/importCallExpressionNestedAMD2(target=es5).symbols b/tests/baselines/reference/importCallExpressionNestedAMD2(target=es5).symbols new file mode 100644 index 0000000000000..8eeab206e63a7 --- /dev/null +++ b/tests/baselines/reference/importCallExpressionNestedAMD2(target=es5).symbols @@ -0,0 +1,15 @@ +//// [tests/cases/conformance/dynamicImport/importCallExpressionNestedAMD2.ts] //// + +=== foo.ts === + +export default "./foo"; + +=== index.ts === +async function foo() { +>foo : Symbol(foo, Decl(index.ts, 0, 0)) + + return await import((await import("./foo")).default); +>(await import("./foo")).default : Symbol(default, Decl(foo.ts, 0, 0)) +>"./foo" : Symbol("foo", Decl(foo.ts, 0, 0)) +>default : Symbol(default, Decl(foo.ts, 0, 0)) +} diff --git a/tests/baselines/reference/importCallExpressionNestedAMD2(target=es5).types b/tests/baselines/reference/importCallExpressionNestedAMD2(target=es5).types new file mode 100644 index 0000000000000..f8d6a4bf19c03 --- /dev/null +++ b/tests/baselines/reference/importCallExpressionNestedAMD2(target=es5).types @@ -0,0 +1,29 @@ +//// [tests/cases/conformance/dynamicImport/importCallExpressionNestedAMD2.ts] //// + +=== foo.ts === + +export default "./foo"; + +=== index.ts === +async function foo() { +>foo : () => Promise +> : ^^^^^^^^^^^^^^^^^^ + + return await import((await import("./foo")).default); +>await import((await import("./foo")).default) : any +> : ^^^ +>import((await import("./foo")).default) : Promise +> : ^^^^^^^^^^^^ +>(await import("./foo")).default : "./foo" +> : ^^^^^^^ +>(await import("./foo")) : typeof import("foo") +> : ^^^^^^^^^^^^^^^^^^^^ +>await import("./foo") : typeof import("foo") +> : ^^^^^^^^^^^^^^^^^^^^ +>import("./foo") : Promise +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>"./foo" : "./foo" +> : ^^^^^^^ +>default : "./foo" +> : ^^^^^^^ +} diff --git a/tests/baselines/reference/importCallExpressionNestedCJS2(target=es2015).js b/tests/baselines/reference/importCallExpressionNestedCJS2(target=es2015).js new file mode 100644 index 0000000000000..4337ef5007809 --- /dev/null +++ b/tests/baselines/reference/importCallExpressionNestedCJS2(target=es2015).js @@ -0,0 +1,62 @@ +//// [tests/cases/conformance/dynamicImport/importCallExpressionNestedCJS2.ts] //// + +//// [foo.ts] +export default "./foo"; + +//// [index.ts] +async function foo() { + return await import((await import("./foo")).default); +} + +//// [foo.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = "./foo"; +//// [index.js] +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +function foo() { + return __awaiter(this, void 0, void 0, function* () { + return yield Promise.resolve(`${(yield Promise.resolve().then(() => __importStar(require("./foo")))).default}`).then(s => __importStar(require(s))); + }); +} diff --git a/tests/baselines/reference/importCallExpressionNestedCJS2.symbols b/tests/baselines/reference/importCallExpressionNestedCJS2(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/importCallExpressionNestedCJS2.symbols rename to tests/baselines/reference/importCallExpressionNestedCJS2(target=es2015).symbols diff --git a/tests/baselines/reference/importCallExpressionNestedCJS2.types b/tests/baselines/reference/importCallExpressionNestedCJS2(target=es2015).types similarity index 100% rename from tests/baselines/reference/importCallExpressionNestedCJS2.types rename to tests/baselines/reference/importCallExpressionNestedCJS2(target=es2015).types diff --git a/tests/baselines/reference/importCallExpressionNestedCJS2.js b/tests/baselines/reference/importCallExpressionNestedCJS2(target=es5).js similarity index 100% rename from tests/baselines/reference/importCallExpressionNestedCJS2.js rename to tests/baselines/reference/importCallExpressionNestedCJS2(target=es5).js diff --git a/tests/baselines/reference/importCallExpressionNestedCJS2(target=es5).symbols b/tests/baselines/reference/importCallExpressionNestedCJS2(target=es5).symbols new file mode 100644 index 0000000000000..e16831d526402 --- /dev/null +++ b/tests/baselines/reference/importCallExpressionNestedCJS2(target=es5).symbols @@ -0,0 +1,15 @@ +//// [tests/cases/conformance/dynamicImport/importCallExpressionNestedCJS2.ts] //// + +=== foo.ts === + +export default "./foo"; + +=== index.ts === +async function foo() { +>foo : Symbol(foo, Decl(index.ts, 0, 0)) + + return await import((await import("./foo")).default); +>(await import("./foo")).default : Symbol(default, Decl(foo.ts, 0, 0)) +>"./foo" : Symbol("foo", Decl(foo.ts, 0, 0)) +>default : Symbol(default, Decl(foo.ts, 0, 0)) +} diff --git a/tests/baselines/reference/importCallExpressionNestedCJS2(target=es5).types b/tests/baselines/reference/importCallExpressionNestedCJS2(target=es5).types new file mode 100644 index 0000000000000..fc8a20cdd5ba4 --- /dev/null +++ b/tests/baselines/reference/importCallExpressionNestedCJS2(target=es5).types @@ -0,0 +1,28 @@ +//// [tests/cases/conformance/dynamicImport/importCallExpressionNestedCJS2.ts] //// + +=== foo.ts === + +export default "./foo"; + +=== index.ts === +async function foo() { +>foo : () => Promise +> : ^^^^^^^^^^^^^^^^^^ + + return await import((await import("./foo")).default); +>await import((await import("./foo")).default) : any +>import((await import("./foo")).default) : Promise +> : ^^^^^^^^^^^^ +>(await import("./foo")).default : "./foo" +> : ^^^^^^^ +>(await import("./foo")) : typeof import("foo") +> : ^^^^^^^^^^^^^^^^^^^^ +>await import("./foo") : typeof import("foo") +> : ^^^^^^^^^^^^^^^^^^^^ +>import("./foo") : Promise +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>"./foo" : "./foo" +> : ^^^^^^^ +>default : "./foo" +> : ^^^^^^^ +} diff --git a/tests/baselines/reference/importCallExpressionNestedES20152.errors.txt b/tests/baselines/reference/importCallExpressionNestedES20152(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/importCallExpressionNestedES20152.errors.txt rename to tests/baselines/reference/importCallExpressionNestedES20152(target=es2015).errors.txt diff --git a/tests/baselines/reference/importCallExpressionNestedES20152(target=es2015).js b/tests/baselines/reference/importCallExpressionNestedES20152(target=es2015).js new file mode 100644 index 0000000000000..e040a33238ebf --- /dev/null +++ b/tests/baselines/reference/importCallExpressionNestedES20152(target=es2015).js @@ -0,0 +1,27 @@ +//// [tests/cases/conformance/dynamicImport/importCallExpressionNestedES20152.ts] //// + +//// [foo.ts] +export default "./foo"; + +//// [index.ts] +async function foo() { + return await import((await import("./foo")).default); +} + +//// [foo.js] +export default "./foo"; +//// [index.js] +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +function foo() { + return __awaiter(this, void 0, void 0, function* () { + return yield import((yield import("./foo")).default); + }); +} diff --git a/tests/baselines/reference/importCallExpressionNestedES20152.symbols b/tests/baselines/reference/importCallExpressionNestedES20152(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/importCallExpressionNestedES20152.symbols rename to tests/baselines/reference/importCallExpressionNestedES20152(target=es2015).symbols diff --git a/tests/baselines/reference/importCallExpressionNestedES20152.types b/tests/baselines/reference/importCallExpressionNestedES20152(target=es2015).types similarity index 100% rename from tests/baselines/reference/importCallExpressionNestedES20152.types rename to tests/baselines/reference/importCallExpressionNestedES20152(target=es2015).types diff --git a/tests/baselines/reference/importCallExpressionNestedES20152(target=es5).errors.txt b/tests/baselines/reference/importCallExpressionNestedES20152(target=es5).errors.txt new file mode 100644 index 0000000000000..122ef7adececc --- /dev/null +++ b/tests/baselines/reference/importCallExpressionNestedES20152(target=es5).errors.txt @@ -0,0 +1,15 @@ +index.ts(2,18): error TS1323: Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', 'node18', 'node20', or 'nodenext'. +index.ts(2,32): error TS1323: Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', 'node18', 'node20', or 'nodenext'. + + +==== foo.ts (0 errors) ==== + export default "./foo"; + +==== index.ts (2 errors) ==== + async function foo() { + return await import((await import("./foo")).default); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS1323: Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', 'node18', 'node20', or 'nodenext'. + ~~~~~~~~~~~~~~~ +!!! error TS1323: Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', 'node18', 'node20', or 'nodenext'. + } \ No newline at end of file diff --git a/tests/baselines/reference/importCallExpressionNestedES20152.js b/tests/baselines/reference/importCallExpressionNestedES20152(target=es5).js similarity index 100% rename from tests/baselines/reference/importCallExpressionNestedES20152.js rename to tests/baselines/reference/importCallExpressionNestedES20152(target=es5).js diff --git a/tests/baselines/reference/importCallExpressionNestedES20152(target=es5).symbols b/tests/baselines/reference/importCallExpressionNestedES20152(target=es5).symbols new file mode 100644 index 0000000000000..baad97d8738fc --- /dev/null +++ b/tests/baselines/reference/importCallExpressionNestedES20152(target=es5).symbols @@ -0,0 +1,15 @@ +//// [tests/cases/conformance/dynamicImport/importCallExpressionNestedES20152.ts] //// + +=== foo.ts === + +export default "./foo"; + +=== index.ts === +async function foo() { +>foo : Symbol(foo, Decl(index.ts, 0, 0)) + + return await import((await import("./foo")).default); +>(await import("./foo")).default : Symbol(default, Decl(foo.ts, 0, 0)) +>"./foo" : Symbol("foo", Decl(foo.ts, 0, 0)) +>default : Symbol(default, Decl(foo.ts, 0, 0)) +} diff --git a/tests/baselines/reference/importCallExpressionNestedES20152(target=es5).types b/tests/baselines/reference/importCallExpressionNestedES20152(target=es5).types new file mode 100644 index 0000000000000..0b741883dace4 --- /dev/null +++ b/tests/baselines/reference/importCallExpressionNestedES20152(target=es5).types @@ -0,0 +1,29 @@ +//// [tests/cases/conformance/dynamicImport/importCallExpressionNestedES20152.ts] //// + +=== foo.ts === + +export default "./foo"; + +=== index.ts === +async function foo() { +>foo : () => Promise +> : ^^^^^^^^^^^^^^^^^^ + + return await import((await import("./foo")).default); +>await import((await import("./foo")).default) : any +> : ^^^ +>import((await import("./foo")).default) : Promise +> : ^^^^^^^^^^^^ +>(await import("./foo")).default : "./foo" +> : ^^^^^^^ +>(await import("./foo")) : typeof import("foo") +> : ^^^^^^^^^^^^^^^^^^^^ +>await import("./foo") : typeof import("foo") +> : ^^^^^^^^^^^^^^^^^^^^ +>import("./foo") : Promise +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>"./foo" : "./foo" +> : ^^^^^^^ +>default : "./foo" +> : ^^^^^^^ +} diff --git a/tests/baselines/reference/importCallExpressionNestedES20202(target=es2015).js b/tests/baselines/reference/importCallExpressionNestedES20202(target=es2015).js new file mode 100644 index 0000000000000..5aff95dabd051 --- /dev/null +++ b/tests/baselines/reference/importCallExpressionNestedES20202(target=es2015).js @@ -0,0 +1,28 @@ +//// [tests/cases/conformance/dynamicImport/importCallExpressionNestedES20202.ts] //// + +//// [foo.ts] +export default "./foo"; + +//// [index.ts] +async function foo() { + return await import((await import("./foo")).default); +} + + +//// [foo.js] +export default "./foo"; +//// [index.js] +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +function foo() { + return __awaiter(this, void 0, void 0, function* () { + return yield import((yield import("./foo")).default); + }); +} diff --git a/tests/baselines/reference/importCallExpressionNestedES20202.symbols b/tests/baselines/reference/importCallExpressionNestedES20202(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/importCallExpressionNestedES20202.symbols rename to tests/baselines/reference/importCallExpressionNestedES20202(target=es2015).symbols diff --git a/tests/baselines/reference/importCallExpressionNestedES20202.types b/tests/baselines/reference/importCallExpressionNestedES20202(target=es2015).types similarity index 100% rename from tests/baselines/reference/importCallExpressionNestedES20202.types rename to tests/baselines/reference/importCallExpressionNestedES20202(target=es2015).types diff --git a/tests/baselines/reference/importCallExpressionNestedES20202.js b/tests/baselines/reference/importCallExpressionNestedES20202(target=es5).js similarity index 100% rename from tests/baselines/reference/importCallExpressionNestedES20202.js rename to tests/baselines/reference/importCallExpressionNestedES20202(target=es5).js diff --git a/tests/baselines/reference/importCallExpressionNestedES20202(target=es5).symbols b/tests/baselines/reference/importCallExpressionNestedES20202(target=es5).symbols new file mode 100644 index 0000000000000..f1192608796e6 --- /dev/null +++ b/tests/baselines/reference/importCallExpressionNestedES20202(target=es5).symbols @@ -0,0 +1,16 @@ +//// [tests/cases/conformance/dynamicImport/importCallExpressionNestedES20202.ts] //// + +=== foo.ts === + +export default "./foo"; + +=== index.ts === +async function foo() { +>foo : Symbol(foo, Decl(index.ts, 0, 0)) + + return await import((await import("./foo")).default); +>(await import("./foo")).default : Symbol(default, Decl(foo.ts, 0, 0)) +>"./foo" : Symbol("foo", Decl(foo.ts, 0, 0)) +>default : Symbol(default, Decl(foo.ts, 0, 0)) +} + diff --git a/tests/baselines/reference/importCallExpressionNestedES20202(target=es5).types b/tests/baselines/reference/importCallExpressionNestedES20202(target=es5).types new file mode 100644 index 0000000000000..fab1134dde46f --- /dev/null +++ b/tests/baselines/reference/importCallExpressionNestedES20202(target=es5).types @@ -0,0 +1,29 @@ +//// [tests/cases/conformance/dynamicImport/importCallExpressionNestedES20202.ts] //// + +=== foo.ts === + +export default "./foo"; + +=== index.ts === +async function foo() { +>foo : () => Promise +> : ^^^^^^^^^^^^^^^^^^ + + return await import((await import("./foo")).default); +>await import((await import("./foo")).default) : any +>import((await import("./foo")).default) : Promise +> : ^^^^^^^^^^^^ +>(await import("./foo")).default : "./foo" +> : ^^^^^^^ +>(await import("./foo")) : typeof import("foo") +> : ^^^^^^^^^^^^^^^^^^^^ +>await import("./foo") : typeof import("foo") +> : ^^^^^^^^^^^^^^^^^^^^ +>import("./foo") : Promise +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>"./foo" : "./foo" +> : ^^^^^^^ +>default : "./foo" +> : ^^^^^^^ +} + diff --git a/tests/baselines/reference/importCallExpressionNestedSystem2.errors.txt b/tests/baselines/reference/importCallExpressionNestedSystem2(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/importCallExpressionNestedSystem2.errors.txt rename to tests/baselines/reference/importCallExpressionNestedSystem2(target=es2015).errors.txt diff --git a/tests/baselines/reference/importCallExpressionNestedSystem2(target=es2015).js b/tests/baselines/reference/importCallExpressionNestedSystem2(target=es2015).js new file mode 100644 index 0000000000000..d0cf8280a290b --- /dev/null +++ b/tests/baselines/reference/importCallExpressionNestedSystem2(target=es2015).js @@ -0,0 +1,44 @@ +//// [tests/cases/conformance/dynamicImport/importCallExpressionNestedSystem2.ts] //// + +//// [foo.ts] +export default "./foo"; + +//// [index.ts] +async function foo() { + return await import((await import("./foo")).default); +} + +//// [foo.js] +System.register([], function (exports_1, context_1) { + "use strict"; + var __moduleName = context_1 && context_1.id; + return { + setters: [], + execute: function () { + exports_1("default", "./foo"); + } + }; +}); +//// [index.js] +System.register([], function (exports_1, context_1) { + var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + }; + var __moduleName = context_1 && context_1.id; + function foo() { + return __awaiter(this, void 0, void 0, function* () { + return yield context_1.import((yield context_1.import("./foo")).default); + }); + } + return { + setters: [], + execute: function () { + } + }; +}); diff --git a/tests/baselines/reference/importCallExpressionNestedSystem2.symbols b/tests/baselines/reference/importCallExpressionNestedSystem2(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/importCallExpressionNestedSystem2.symbols rename to tests/baselines/reference/importCallExpressionNestedSystem2(target=es2015).symbols diff --git a/tests/baselines/reference/importCallExpressionNestedSystem2.types b/tests/baselines/reference/importCallExpressionNestedSystem2(target=es2015).types similarity index 100% rename from tests/baselines/reference/importCallExpressionNestedSystem2.types rename to tests/baselines/reference/importCallExpressionNestedSystem2(target=es2015).types diff --git a/tests/baselines/reference/importCallExpressionNestedSystem2(target=es5).errors.txt b/tests/baselines/reference/importCallExpressionNestedSystem2(target=es5).errors.txt new file mode 100644 index 0000000000000..df96a9b44fa78 --- /dev/null +++ b/tests/baselines/reference/importCallExpressionNestedSystem2(target=es5).errors.txt @@ -0,0 +1,11 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== foo.ts (0 errors) ==== + export default "./foo"; + +==== index.ts (0 errors) ==== + async function foo() { + return await import((await import("./foo")).default); + } \ No newline at end of file diff --git a/tests/baselines/reference/importCallExpressionNestedSystem2.js b/tests/baselines/reference/importCallExpressionNestedSystem2(target=es5).js similarity index 100% rename from tests/baselines/reference/importCallExpressionNestedSystem2.js rename to tests/baselines/reference/importCallExpressionNestedSystem2(target=es5).js diff --git a/tests/baselines/reference/importCallExpressionNestedSystem2(target=es5).symbols b/tests/baselines/reference/importCallExpressionNestedSystem2(target=es5).symbols new file mode 100644 index 0000000000000..a804432503edd --- /dev/null +++ b/tests/baselines/reference/importCallExpressionNestedSystem2(target=es5).symbols @@ -0,0 +1,15 @@ +//// [tests/cases/conformance/dynamicImport/importCallExpressionNestedSystem2.ts] //// + +=== foo.ts === + +export default "./foo"; + +=== index.ts === +async function foo() { +>foo : Symbol(foo, Decl(index.ts, 0, 0)) + + return await import((await import("./foo")).default); +>(await import("./foo")).default : Symbol(default, Decl(foo.ts, 0, 0)) +>"./foo" : Symbol("foo", Decl(foo.ts, 0, 0)) +>default : Symbol(default, Decl(foo.ts, 0, 0)) +} diff --git a/tests/baselines/reference/importCallExpressionNestedSystem2(target=es5).types b/tests/baselines/reference/importCallExpressionNestedSystem2(target=es5).types new file mode 100644 index 0000000000000..2704d3a6d0986 --- /dev/null +++ b/tests/baselines/reference/importCallExpressionNestedSystem2(target=es5).types @@ -0,0 +1,29 @@ +//// [tests/cases/conformance/dynamicImport/importCallExpressionNestedSystem2.ts] //// + +=== foo.ts === + +export default "./foo"; + +=== index.ts === +async function foo() { +>foo : () => Promise +> : ^^^^^^^^^^^^^^^^^^ + + return await import((await import("./foo")).default); +>await import((await import("./foo")).default) : any +> : ^^^ +>import((await import("./foo")).default) : Promise +> : ^^^^^^^^^^^^ +>(await import("./foo")).default : "./foo" +> : ^^^^^^^ +>(await import("./foo")) : typeof import("foo") +> : ^^^^^^^^^^^^^^^^^^^^ +>await import("./foo") : typeof import("foo") +> : ^^^^^^^^^^^^^^^^^^^^ +>import("./foo") : Promise +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>"./foo" : "./foo" +> : ^^^^^^^ +>default : "./foo" +> : ^^^^^^^ +} diff --git a/tests/baselines/reference/importCallExpressionNestedUMD2.errors.txt b/tests/baselines/reference/importCallExpressionNestedUMD2(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/importCallExpressionNestedUMD2.errors.txt rename to tests/baselines/reference/importCallExpressionNestedUMD2(target=es2015).errors.txt diff --git a/tests/baselines/reference/importCallExpressionNestedUMD2(target=es2015).js b/tests/baselines/reference/importCallExpressionNestedUMD2(target=es2015).js new file mode 100644 index 0000000000000..ad0d5009fd15d --- /dev/null +++ b/tests/baselines/reference/importCallExpressionNestedUMD2(target=es2015).js @@ -0,0 +1,85 @@ +//// [tests/cases/conformance/dynamicImport/importCallExpressionNestedUMD2.ts] //// + +//// [foo.ts] +export default "./foo"; + +//// [index.ts] +async function foo() { + return await import((await import("./foo")).default); +} + +//// [foo.js] +(function (factory) { + if (typeof module === "object" && typeof module.exports === "object") { + var v = factory(require, exports); + if (v !== undefined) module.exports = v; + } + else if (typeof define === "function" && define.amd) { + define(["require", "exports"], factory); + } +})(function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.default = "./foo"; +}); +//// [index.js] +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +(function (factory) { + if (typeof module === "object" && typeof module.exports === "object") { + var v = factory(require, exports); + if (v !== undefined) module.exports = v; + } + else if (typeof define === "function" && define.amd) { + define(["require", "exports"], factory); + } +})(function (require, exports) { + "use strict"; + var __syncRequire = typeof module === "object" && typeof module.exports === "object"; + function foo() { + return __awaiter(this, void 0, void 0, function* () { + var _a; + return yield (_a = (yield __syncRequire ? Promise.resolve().then(() => __importStar(require("./foo"))) : new Promise((resolve_1, reject_1) => { require(["./foo"], resolve_1, reject_1); }).then(__importStar)).default, __syncRequire ? Promise.resolve().then(() => __importStar(require(_a))) : new Promise((resolve_2, reject_2) => { require([_a], resolve_2, reject_2); }).then(__importStar)); + }); + } +}); diff --git a/tests/baselines/reference/importCallExpressionNestedUMD2.symbols b/tests/baselines/reference/importCallExpressionNestedUMD2(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/importCallExpressionNestedUMD2.symbols rename to tests/baselines/reference/importCallExpressionNestedUMD2(target=es2015).symbols diff --git a/tests/baselines/reference/importCallExpressionNestedUMD2.types b/tests/baselines/reference/importCallExpressionNestedUMD2(target=es2015).types similarity index 100% rename from tests/baselines/reference/importCallExpressionNestedUMD2.types rename to tests/baselines/reference/importCallExpressionNestedUMD2(target=es2015).types diff --git a/tests/baselines/reference/importCallExpressionNestedUMD2(target=es5).errors.txt b/tests/baselines/reference/importCallExpressionNestedUMD2(target=es5).errors.txt new file mode 100644 index 0000000000000..44fd274c9d149 --- /dev/null +++ b/tests/baselines/reference/importCallExpressionNestedUMD2(target=es5).errors.txt @@ -0,0 +1,11 @@ +error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== foo.ts (0 errors) ==== + export default "./foo"; + +==== index.ts (0 errors) ==== + async function foo() { + return await import((await import("./foo")).default); + } \ No newline at end of file diff --git a/tests/baselines/reference/importCallExpressionNestedUMD2.js b/tests/baselines/reference/importCallExpressionNestedUMD2(target=es5).js similarity index 100% rename from tests/baselines/reference/importCallExpressionNestedUMD2.js rename to tests/baselines/reference/importCallExpressionNestedUMD2(target=es5).js diff --git a/tests/baselines/reference/importCallExpressionNestedUMD2(target=es5).symbols b/tests/baselines/reference/importCallExpressionNestedUMD2(target=es5).symbols new file mode 100644 index 0000000000000..a326ee4c16ca2 --- /dev/null +++ b/tests/baselines/reference/importCallExpressionNestedUMD2(target=es5).symbols @@ -0,0 +1,15 @@ +//// [tests/cases/conformance/dynamicImport/importCallExpressionNestedUMD2.ts] //// + +=== foo.ts === + +export default "./foo"; + +=== index.ts === +async function foo() { +>foo : Symbol(foo, Decl(index.ts, 0, 0)) + + return await import((await import("./foo")).default); +>(await import("./foo")).default : Symbol(default, Decl(foo.ts, 0, 0)) +>"./foo" : Symbol("foo", Decl(foo.ts, 0, 0)) +>default : Symbol(default, Decl(foo.ts, 0, 0)) +} diff --git a/tests/baselines/reference/importCallExpressionNestedUMD2(target=es5).types b/tests/baselines/reference/importCallExpressionNestedUMD2(target=es5).types new file mode 100644 index 0000000000000..e0a8d1db3e130 --- /dev/null +++ b/tests/baselines/reference/importCallExpressionNestedUMD2(target=es5).types @@ -0,0 +1,29 @@ +//// [tests/cases/conformance/dynamicImport/importCallExpressionNestedUMD2.ts] //// + +=== foo.ts === + +export default "./foo"; + +=== index.ts === +async function foo() { +>foo : () => Promise +> : ^^^^^^^^^^^^^^^^^^ + + return await import((await import("./foo")).default); +>await import((await import("./foo")).default) : any +> : ^^^ +>import((await import("./foo")).default) : Promise +> : ^^^^^^^^^^^^ +>(await import("./foo")).default : "./foo" +> : ^^^^^^^ +>(await import("./foo")) : typeof import("foo") +> : ^^^^^^^^^^^^^^^^^^^^ +>await import("./foo") : typeof import("foo") +> : ^^^^^^^^^^^^^^^^^^^^ +>import("./foo") : Promise +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>"./foo" : "./foo" +> : ^^^^^^^ +>default : "./foo" +> : ^^^^^^^ +} diff --git a/tests/baselines/reference/importHelpers(target=es2015).js b/tests/baselines/reference/importHelpers(target=es2015).js new file mode 100644 index 0000000000000..89b1584b86ec2 --- /dev/null +++ b/tests/baselines/reference/importHelpers(target=es2015).js @@ -0,0 +1,110 @@ +//// [tests/cases/compiler/importHelpers.ts] //// + +//// [external.ts] +export class A { } +export class B extends A { } + +declare var dec: any; + +@dec +class C { + method(@dec x: number) { + } +} + +function id(x: T) { + return x; +} + +export const result = id`hello world`; + +//// [script.ts] +class A { } +class B extends A { } + +declare var dec: any; + +@dec +class C { + method(@dec x: number) { + } +} + +function id(x: T) { + return x; +} + +const result = id`hello world`; + +//// [index.d.ts] +export declare function __extends(d: Function, b: Function): void; +export declare function __assign(t: any, ...sources: any[]): any; +export declare function __decorate(decorators: Function[], target: any, key?: string | symbol, desc?: any): any; +export declare function __param(paramIndex: number, decorator: Function): Function; +export declare function __metadata(metadataKey: any, metadataValue: any): Function; +export declare function __awaiter(thisArg: any, _arguments: any, P: Function, generator: Function): any; +export declare function __makeTemplateObject(cooked: string[], raw: string[]): TemplateStringsArray; + + +//// [external.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.result = exports.B = exports.A = void 0; +const tslib_1 = require("tslib"); +class A { +} +exports.A = A; +class B extends A { +} +exports.B = B; +let C = class C { + method(x) { + } +}; +tslib_1.__decorate([ + tslib_1.__param(0, dec), + tslib_1.__metadata("design:type", Function), + tslib_1.__metadata("design:paramtypes", [Number]), + tslib_1.__metadata("design:returntype", void 0) +], C.prototype, "method", null); +C = tslib_1.__decorate([ + dec +], C); +function id(x) { + return x; +} +exports.result = id `hello world`; +//// [script.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; +var __param = (this && this.__param) || function (paramIndex, decorator) { + return function (target, key) { decorator(target, key, paramIndex); } +}; +class A { +} +class B extends A { +} +let C = class C { + method(x) { + } +}; +__decorate([ + __param(0, dec), + __metadata("design:type", Function), + __metadata("design:paramtypes", [Number]), + __metadata("design:returntype", void 0) +], C.prototype, "method", null); +C = __decorate([ + dec +], C); +function id(x) { + return x; +} +const result = id `hello world`; diff --git a/tests/baselines/reference/importHelpers.symbols b/tests/baselines/reference/importHelpers(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/importHelpers.symbols rename to tests/baselines/reference/importHelpers(target=es2015).symbols diff --git a/tests/baselines/reference/importHelpers.types b/tests/baselines/reference/importHelpers(target=es2015).types similarity index 100% rename from tests/baselines/reference/importHelpers.types rename to tests/baselines/reference/importHelpers(target=es2015).types diff --git a/tests/baselines/reference/importHelpers.js b/tests/baselines/reference/importHelpers(target=es5).js similarity index 100% rename from tests/baselines/reference/importHelpers.js rename to tests/baselines/reference/importHelpers(target=es5).js diff --git a/tests/baselines/reference/importHelpers(target=es5).symbols b/tests/baselines/reference/importHelpers(target=es5).symbols new file mode 100644 index 0000000000000..0deee4ae08814 --- /dev/null +++ b/tests/baselines/reference/importHelpers(target=es5).symbols @@ -0,0 +1,127 @@ +//// [tests/cases/compiler/importHelpers.ts] //// + +=== external.ts === +export class A { } +>A : Symbol(A, Decl(external.ts, 0, 0)) + +export class B extends A { } +>B : Symbol(B, Decl(external.ts, 0, 18)) +>A : Symbol(A, Decl(external.ts, 0, 0)) + +declare var dec: any; +>dec : Symbol(dec, Decl(external.ts, 3, 11)) + +@dec +>dec : Symbol(dec, Decl(external.ts, 3, 11)) + +class C { +>C : Symbol(C, Decl(external.ts, 3, 21)) + + method(@dec x: number) { +>method : Symbol(C.method, Decl(external.ts, 6, 9)) +>dec : Symbol(dec, Decl(external.ts, 3, 11)) +>x : Symbol(x, Decl(external.ts, 7, 11)) + } +} + +function id(x: T) { +>id : Symbol(id, Decl(external.ts, 9, 1)) +>T : Symbol(T, Decl(external.ts, 11, 12)) +>x : Symbol(x, Decl(external.ts, 11, 15)) +>T : Symbol(T, Decl(external.ts, 11, 12)) + + return x; +>x : Symbol(x, Decl(external.ts, 11, 15)) +} + +export const result = id`hello world`; +>result : Symbol(result, Decl(external.ts, 15, 12)) +>id : Symbol(id, Decl(external.ts, 9, 1)) + +=== script.ts === +class A { } +>A : Symbol(A, Decl(script.ts, 0, 0)) + +class B extends A { } +>B : Symbol(B, Decl(script.ts, 0, 11)) +>A : Symbol(A, Decl(script.ts, 0, 0)) + +declare var dec: any; +>dec : Symbol(dec, Decl(script.ts, 3, 11)) + +@dec +>dec : Symbol(dec, Decl(script.ts, 3, 11)) + +class C { +>C : Symbol(C, Decl(script.ts, 3, 21)) + + method(@dec x: number) { +>method : Symbol(C.method, Decl(script.ts, 6, 9)) +>dec : Symbol(dec, Decl(script.ts, 3, 11)) +>x : Symbol(x, Decl(script.ts, 7, 11)) + } +} + +function id(x: T) { +>id : Symbol(id, Decl(script.ts, 9, 1)) +>T : Symbol(T, Decl(script.ts, 11, 12)) +>x : Symbol(x, Decl(script.ts, 11, 15)) +>T : Symbol(T, Decl(script.ts, 11, 12)) + + return x; +>x : Symbol(x, Decl(script.ts, 11, 15)) +} + +const result = id`hello world`; +>result : Symbol(result, Decl(script.ts, 15, 5)) +>id : Symbol(id, Decl(script.ts, 9, 1)) + +=== node_modules/tslib/index.d.ts === +export declare function __extends(d: Function, b: Function): void; +>__extends : Symbol(__extends, Decl(index.d.ts, 0, 0)) +>d : Symbol(d, Decl(index.d.ts, 0, 34)) +>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>b : Symbol(b, Decl(index.d.ts, 0, 46)) +>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + +export declare function __assign(t: any, ...sources: any[]): any; +>__assign : Symbol(__assign, Decl(index.d.ts, 0, 66)) +>t : Symbol(t, Decl(index.d.ts, 1, 33)) +>sources : Symbol(sources, Decl(index.d.ts, 1, 40)) + +export declare function __decorate(decorators: Function[], target: any, key?: string | symbol, desc?: any): any; +>__decorate : Symbol(__decorate, Decl(index.d.ts, 1, 65)) +>decorators : Symbol(decorators, Decl(index.d.ts, 2, 35)) +>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>target : Symbol(target, Decl(index.d.ts, 2, 58)) +>key : Symbol(key, Decl(index.d.ts, 2, 71)) +>desc : Symbol(desc, Decl(index.d.ts, 2, 94)) + +export declare function __param(paramIndex: number, decorator: Function): Function; +>__param : Symbol(__param, Decl(index.d.ts, 2, 112)) +>paramIndex : Symbol(paramIndex, Decl(index.d.ts, 3, 32)) +>decorator : Symbol(decorator, Decl(index.d.ts, 3, 51)) +>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + +export declare function __metadata(metadataKey: any, metadataValue: any): Function; +>__metadata : Symbol(__metadata, Decl(index.d.ts, 3, 83)) +>metadataKey : Symbol(metadataKey, Decl(index.d.ts, 4, 35)) +>metadataValue : Symbol(metadataValue, Decl(index.d.ts, 4, 52)) +>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + +export declare function __awaiter(thisArg: any, _arguments: any, P: Function, generator: Function): any; +>__awaiter : Symbol(__awaiter, Decl(index.d.ts, 4, 83)) +>thisArg : Symbol(thisArg, Decl(index.d.ts, 5, 34)) +>_arguments : Symbol(_arguments, Decl(index.d.ts, 5, 47)) +>P : Symbol(P, Decl(index.d.ts, 5, 64)) +>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>generator : Symbol(generator, Decl(index.d.ts, 5, 77)) +>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + +export declare function __makeTemplateObject(cooked: string[], raw: string[]): TemplateStringsArray; +>__makeTemplateObject : Symbol(__makeTemplateObject, Decl(index.d.ts, 5, 104)) +>cooked : Symbol(cooked, Decl(index.d.ts, 6, 45)) +>raw : Symbol(raw, Decl(index.d.ts, 6, 62)) +>TemplateStringsArray : Symbol(TemplateStringsArray, Decl(lib.es5.d.ts, --, --)) + diff --git a/tests/baselines/reference/importHelpers(target=es5).types b/tests/baselines/reference/importHelpers(target=es5).types new file mode 100644 index 0000000000000..56dbec9860293 --- /dev/null +++ b/tests/baselines/reference/importHelpers(target=es5).types @@ -0,0 +1,162 @@ +//// [tests/cases/compiler/importHelpers.ts] //// + +=== external.ts === +export class A { } +>A : A +> : ^ + +export class B extends A { } +>B : B +> : ^ +>A : A +> : ^ + +declare var dec: any; +>dec : any + +@dec +>dec : any + +class C { +>C : C +> : ^ + + method(@dec x: number) { +>method : (x: number) => void +> : ^ ^^ ^^^^^^^^^ +>dec : any +>x : number +> : ^^^^^^ + } +} + +function id(x: T) { +>id : (x: T) => T +> : ^ ^^ ^^ ^^^^^^ +>x : T +> : ^ + + return x; +>x : T +> : ^ +} + +export const result = id`hello world`; +>result : TemplateStringsArray +> : ^^^^^^^^^^^^^^^^^^^^ +>id`hello world` : TemplateStringsArray +> : ^^^^^^^^^^^^^^^^^^^^ +>id : (x: T) => T +> : ^ ^^ ^^ ^^^^^^ +>`hello world` : "hello world" +> : ^^^^^^^^^^^^^ + +=== script.ts === +class A { } +>A : A +> : ^ + +class B extends A { } +>B : B +> : ^ +>A : A +> : ^ + +declare var dec: any; +>dec : any + +@dec +>dec : any + +class C { +>C : C +> : ^ + + method(@dec x: number) { +>method : (x: number) => void +> : ^ ^^ ^^^^^^^^^ +>dec : any +>x : number +> : ^^^^^^ + } +} + +function id(x: T) { +>id : (x: T) => T +> : ^ ^^ ^^ ^^^^^^ +>x : T +> : ^ + + return x; +>x : T +> : ^ +} + +const result = id`hello world`; +>result : TemplateStringsArray +> : ^^^^^^^^^^^^^^^^^^^^ +>id`hello world` : TemplateStringsArray +> : ^^^^^^^^^^^^^^^^^^^^ +>id : (x: T) => T +> : ^ ^^ ^^ ^^^^^^ +>`hello world` : "hello world" +> : ^^^^^^^^^^^^^ + +=== node_modules/tslib/index.d.ts === +export declare function __extends(d: Function, b: Function): void; +>__extends : (d: Function, b: Function) => void +> : ^ ^^ ^^ ^^ ^^^^^ +>d : Function +> : ^^^^^^^^ +>b : Function +> : ^^^^^^^^ + +export declare function __assign(t: any, ...sources: any[]): any; +>__assign : (t: any, ...sources: any[]) => any +> : ^ ^^ ^^^^^ ^^ ^^^^^ +>t : any +>sources : any[] +> : ^^^^^ + +export declare function __decorate(decorators: Function[], target: any, key?: string | symbol, desc?: any): any; +>__decorate : (decorators: Function[], target: any, key?: string | symbol, desc?: any) => any +> : ^ ^^ ^^ ^^ ^^ ^^^ ^^ ^^^ ^^^^^ +>decorators : Function[] +> : ^^^^^^^^^^ +>target : any +>key : string | symbol +> : ^^^^^^^^^^^^^^^ +>desc : any + +export declare function __param(paramIndex: number, decorator: Function): Function; +>__param : (paramIndex: number, decorator: Function) => Function +> : ^ ^^ ^^ ^^ ^^^^^ +>paramIndex : number +> : ^^^^^^ +>decorator : Function +> : ^^^^^^^^ + +export declare function __metadata(metadataKey: any, metadataValue: any): Function; +>__metadata : (metadataKey: any, metadataValue: any) => Function +> : ^ ^^ ^^ ^^ ^^^^^ +>metadataKey : any +>metadataValue : any + +export declare function __awaiter(thisArg: any, _arguments: any, P: Function, generator: Function): any; +>__awaiter : (thisArg: any, _arguments: any, P: Function, generator: Function) => any +> : ^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>thisArg : any +>_arguments : any +>P : Function +> : ^^^^^^^^ +>generator : Function +> : ^^^^^^^^ + +export declare function __makeTemplateObject(cooked: string[], raw: string[]): TemplateStringsArray; +>__makeTemplateObject : (cooked: string[], raw: string[]) => TemplateStringsArray +> : ^ ^^ ^^ ^^ ^^^^^ +>cooked : string[] +> : ^^^^^^^^ +>raw : string[] +> : ^^^^^^^^ + diff --git a/tests/baselines/reference/importHelpersAmd.errors.txt b/tests/baselines/reference/importHelpersAmd(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/importHelpersAmd.errors.txt rename to tests/baselines/reference/importHelpersAmd(target=es2015).errors.txt diff --git a/tests/baselines/reference/importHelpersAmd(target=es2015).js b/tests/baselines/reference/importHelpersAmd(target=es2015).js new file mode 100644 index 0000000000000..c03dcf2748fdc --- /dev/null +++ b/tests/baselines/reference/importHelpersAmd(target=es2015).js @@ -0,0 +1,40 @@ +//// [tests/cases/compiler/importHelpersAmd.ts] //// + +//// [a.ts] +export class A { } + +//// [b.ts] +import { A } from "./a"; +export * from "./a"; +export class B extends A { } + +//// [tslib.d.ts] +export declare function __extends(d: Function, b: Function): void; +export declare function __assign(t: any, ...sources: any[]): any; +export declare function __rest(t: any, propertyNames: string[]): any; +export declare function __decorate(decorators: Function[], target: any, key?: string | symbol, desc?: any): any; +export declare function __param(paramIndex: number, decorator: Function): Function; +export declare function __metadata(metadataKey: any, metadataValue: any): Function; +export declare function __awaiter(thisArg: any, _arguments: any, P: Function, generator: Function): any; +export declare function __generator(thisArg: any, body: Function): any; +export declare function __exportStar(m: any, exports: any): void; + +//// [a.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.A = void 0; + class A { + } + exports.A = A; +}); +//// [b.js] +define(["require", "exports", "tslib", "./a", "./a"], function (require, exports, tslib_1, a_1, a_2) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.B = void 0; + tslib_1.__exportStar(a_2, exports); + class B extends a_1.A { + } + exports.B = B; +}); diff --git a/tests/baselines/reference/importHelpersAmd.symbols b/tests/baselines/reference/importHelpersAmd(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/importHelpersAmd.symbols rename to tests/baselines/reference/importHelpersAmd(target=es2015).symbols diff --git a/tests/baselines/reference/importHelpersAmd.types b/tests/baselines/reference/importHelpersAmd(target=es2015).types similarity index 100% rename from tests/baselines/reference/importHelpersAmd.types rename to tests/baselines/reference/importHelpersAmd(target=es2015).types diff --git a/tests/baselines/reference/importHelpersAmd(target=es5).errors.txt b/tests/baselines/reference/importHelpersAmd(target=es5).errors.txt new file mode 100644 index 0000000000000..81d8ceb204ef4 --- /dev/null +++ b/tests/baselines/reference/importHelpersAmd(target=es5).errors.txt @@ -0,0 +1,22 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== a.ts (0 errors) ==== + export class A { } + +==== b.ts (0 errors) ==== + import { A } from "./a"; + export * from "./a"; + export class B extends A { } + +==== tslib.d.ts (0 errors) ==== + export declare function __extends(d: Function, b: Function): void; + export declare function __assign(t: any, ...sources: any[]): any; + export declare function __rest(t: any, propertyNames: string[]): any; + export declare function __decorate(decorators: Function[], target: any, key?: string | symbol, desc?: any): any; + export declare function __param(paramIndex: number, decorator: Function): Function; + export declare function __metadata(metadataKey: any, metadataValue: any): Function; + export declare function __awaiter(thisArg: any, _arguments: any, P: Function, generator: Function): any; + export declare function __generator(thisArg: any, body: Function): any; + export declare function __exportStar(m: any, exports: any): void; \ No newline at end of file diff --git a/tests/baselines/reference/importHelpersAmd.js b/tests/baselines/reference/importHelpersAmd(target=es5).js similarity index 100% rename from tests/baselines/reference/importHelpersAmd.js rename to tests/baselines/reference/importHelpersAmd(target=es5).js diff --git a/tests/baselines/reference/importHelpersAmd(target=es5).symbols b/tests/baselines/reference/importHelpersAmd(target=es5).symbols new file mode 100644 index 0000000000000..e1e64b46b08a6 --- /dev/null +++ b/tests/baselines/reference/importHelpersAmd(target=es5).symbols @@ -0,0 +1,74 @@ +//// [tests/cases/compiler/importHelpersAmd.ts] //// + +=== a.ts === +export class A { } +>A : Symbol(A, Decl(a.ts, 0, 0)) + +=== b.ts === +import { A } from "./a"; +>A : Symbol(A, Decl(b.ts, 0, 8)) + +export * from "./a"; +export class B extends A { } +>B : Symbol(B, Decl(b.ts, 1, 20)) +>A : Symbol(A, Decl(b.ts, 0, 8)) + +=== tslib.d.ts === +export declare function __extends(d: Function, b: Function): void; +>__extends : Symbol(__extends, Decl(tslib.d.ts, --, --)) +>d : Symbol(d, Decl(tslib.d.ts, --, --)) +>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>b : Symbol(b, Decl(tslib.d.ts, --, --)) +>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + +export declare function __assign(t: any, ...sources: any[]): any; +>__assign : Symbol(__assign, Decl(tslib.d.ts, --, --)) +>t : Symbol(t, Decl(tslib.d.ts, --, --)) +>sources : Symbol(sources, Decl(tslib.d.ts, --, --)) + +export declare function __rest(t: any, propertyNames: string[]): any; +>__rest : Symbol(__rest, Decl(tslib.d.ts, --, --)) +>t : Symbol(t, Decl(tslib.d.ts, --, --)) +>propertyNames : Symbol(propertyNames, Decl(tslib.d.ts, --, --)) + +export declare function __decorate(decorators: Function[], target: any, key?: string | symbol, desc?: any): any; +>__decorate : Symbol(__decorate, Decl(tslib.d.ts, --, --)) +>decorators : Symbol(decorators, Decl(tslib.d.ts, --, --)) +>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>target : Symbol(target, Decl(tslib.d.ts, --, --)) +>key : Symbol(key, Decl(tslib.d.ts, --, --)) +>desc : Symbol(desc, Decl(tslib.d.ts, --, --)) + +export declare function __param(paramIndex: number, decorator: Function): Function; +>__param : Symbol(__param, Decl(tslib.d.ts, --, --)) +>paramIndex : Symbol(paramIndex, Decl(tslib.d.ts, --, --)) +>decorator : Symbol(decorator, Decl(tslib.d.ts, --, --)) +>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + +export declare function __metadata(metadataKey: any, metadataValue: any): Function; +>__metadata : Symbol(__metadata, Decl(tslib.d.ts, --, --)) +>metadataKey : Symbol(metadataKey, Decl(tslib.d.ts, --, --)) +>metadataValue : Symbol(metadataValue, Decl(tslib.d.ts, --, --)) +>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + +export declare function __awaiter(thisArg: any, _arguments: any, P: Function, generator: Function): any; +>__awaiter : Symbol(__awaiter, Decl(tslib.d.ts, --, --)) +>thisArg : Symbol(thisArg, Decl(tslib.d.ts, --, --)) +>_arguments : Symbol(_arguments, Decl(tslib.d.ts, --, --)) +>P : Symbol(P, Decl(tslib.d.ts, --, --)) +>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>generator : Symbol(generator, Decl(tslib.d.ts, --, --)) +>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + +export declare function __generator(thisArg: any, body: Function): any; +>__generator : Symbol(__generator, Decl(tslib.d.ts, --, --)) +>thisArg : Symbol(thisArg, Decl(tslib.d.ts, --, --)) +>body : Symbol(body, Decl(tslib.d.ts, --, --)) +>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + +export declare function __exportStar(m: any, exports: any): void; +>__exportStar : Symbol(__exportStar, Decl(tslib.d.ts, --, --)) +>m : Symbol(m, Decl(tslib.d.ts, --, --)) +>exports : Symbol(exports, Decl(tslib.d.ts, --, --)) + diff --git a/tests/baselines/reference/importHelpersAmd(target=es5).types b/tests/baselines/reference/importHelpersAmd(target=es5).types new file mode 100644 index 0000000000000..023575ad1fc83 --- /dev/null +++ b/tests/baselines/reference/importHelpersAmd(target=es5).types @@ -0,0 +1,100 @@ +//// [tests/cases/compiler/importHelpersAmd.ts] //// + +=== a.ts === +export class A { } +>A : A +> : ^ + +=== b.ts === +import { A } from "./a"; +>A : typeof A +> : ^^^^^^^^ + +export * from "./a"; +export class B extends A { } +>B : B +> : ^ +>A : A +> : ^ + +=== tslib.d.ts === +export declare function __extends(d: Function, b: Function): void; +>__extends : (d: Function, b: Function) => void +> : ^ ^^ ^^ ^^ ^^^^^ +>d : Function +> : ^^^^^^^^ +>b : Function +> : ^^^^^^^^ + +export declare function __assign(t: any, ...sources: any[]): any; +>__assign : (t: any, ...sources: any[]) => any +> : ^ ^^ ^^^^^ ^^ ^^^^^ +>t : any +> : ^^^ +>sources : any[] +> : ^^^^^ + +export declare function __rest(t: any, propertyNames: string[]): any; +>__rest : (t: any, propertyNames: string[]) => any +> : ^ ^^ ^^ ^^ ^^^^^ +>t : any +> : ^^^ +>propertyNames : string[] +> : ^^^^^^^^ + +export declare function __decorate(decorators: Function[], target: any, key?: string | symbol, desc?: any): any; +>__decorate : (decorators: Function[], target: any, key?: string | symbol, desc?: any) => any +> : ^ ^^ ^^ ^^ ^^ ^^^ ^^ ^^^ ^^^^^ +>decorators : Function[] +> : ^^^^^^^^^^ +>target : any +> : ^^^ +>key : string | symbol +> : ^^^^^^^^^^^^^^^ +>desc : any +> : ^^^ + +export declare function __param(paramIndex: number, decorator: Function): Function; +>__param : (paramIndex: number, decorator: Function) => Function +> : ^ ^^ ^^ ^^ ^^^^^ +>paramIndex : number +> : ^^^^^^ +>decorator : Function +> : ^^^^^^^^ + +export declare function __metadata(metadataKey: any, metadataValue: any): Function; +>__metadata : (metadataKey: any, metadataValue: any) => Function +> : ^ ^^ ^^ ^^ ^^^^^ +>metadataKey : any +> : ^^^ +>metadataValue : any +> : ^^^ + +export declare function __awaiter(thisArg: any, _arguments: any, P: Function, generator: Function): any; +>__awaiter : (thisArg: any, _arguments: any, P: Function, generator: Function) => any +> : ^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>thisArg : any +> : ^^^ +>_arguments : any +> : ^^^ +>P : Function +> : ^^^^^^^^ +>generator : Function +> : ^^^^^^^^ + +export declare function __generator(thisArg: any, body: Function): any; +>__generator : (thisArg: any, body: Function) => any +> : ^ ^^ ^^ ^^ ^^^^^ +>thisArg : any +> : ^^^ +>body : Function +> : ^^^^^^^^ + +export declare function __exportStar(m: any, exports: any): void; +>__exportStar : (m: any, exports: any) => void +> : ^ ^^ ^^ ^^ ^^^^^ +>m : any +> : ^^^ +>exports : any +> : ^^^ + diff --git a/tests/baselines/reference/importHelpersDeclarations.symbols b/tests/baselines/reference/importHelpersDeclarations(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/importHelpersDeclarations.symbols rename to tests/baselines/reference/importHelpersDeclarations(target=es2015).symbols diff --git a/tests/baselines/reference/importHelpersDeclarations.types b/tests/baselines/reference/importHelpersDeclarations(target=es2015).types similarity index 100% rename from tests/baselines/reference/importHelpersDeclarations.types rename to tests/baselines/reference/importHelpersDeclarations(target=es2015).types diff --git a/tests/baselines/reference/importHelpersDeclarations(target=es5).symbols b/tests/baselines/reference/importHelpersDeclarations(target=es5).symbols new file mode 100644 index 0000000000000..a6e4361a3253f --- /dev/null +++ b/tests/baselines/reference/importHelpersDeclarations(target=es5).symbols @@ -0,0 +1,10 @@ +//// [tests/cases/compiler/importHelpersDeclarations.ts] //// + +=== declaration.d.ts === +export declare class D { +>D : Symbol(D, Decl(declaration.d.ts, 0, 0)) +} +export declare class E extends D { +>E : Symbol(E, Decl(declaration.d.ts, 1, 1)) +>D : Symbol(D, Decl(declaration.d.ts, 0, 0)) +} diff --git a/tests/baselines/reference/importHelpersDeclarations(target=es5).types b/tests/baselines/reference/importHelpersDeclarations(target=es5).types new file mode 100644 index 0000000000000..c575a28a04756 --- /dev/null +++ b/tests/baselines/reference/importHelpersDeclarations(target=es5).types @@ -0,0 +1,13 @@ +//// [tests/cases/compiler/importHelpersDeclarations.ts] //// + +=== declaration.d.ts === +export declare class D { +>D : D +> : ^ +} +export declare class E extends D { +>E : E +> : ^ +>D : D +> : ^ +} diff --git a/tests/baselines/reference/importHelpersInAmbientContext(target=es2015).js b/tests/baselines/reference/importHelpersInAmbientContext(target=es2015).js new file mode 100644 index 0000000000000..af4d3af0c3c1a --- /dev/null +++ b/tests/baselines/reference/importHelpersInAmbientContext(target=es2015).js @@ -0,0 +1,60 @@ +//// [tests/cases/compiler/importHelpersInAmbientContext.ts] //// + +//// [a.d.ts] +export { }; + +// Extends +declare class C { } +declare class D extends C { } + +// Destructuring +interface I { + ({descendants, read}?: { + descendants?: boolean; + read?: any; + }): any; +} + + +// Object Rest +interface Foo { + a: number; b: string; +} +export var { a, ...x } : Foo; + +//// [b.ts] +export {}; +declare namespace N { + // Extends + class C { } + class D extends C { } + + // Destructuring + interface I { + ({descendants, read}?: { + descendants?: boolean; + read?: any; + }): any; + } + + + // Object Rest + interface Foo { + a: number; b: string; + } + export var { a, ...x } : Foo; +} + +//// [tslib.d.ts] +export declare function __extends(d: Function, b: Function): void; +export declare function __assign(t: any, ...sources: any[]): any; +export declare function __rest(t: any, propertyNames: string[]): any; +export declare function __decorate(decorators: Function[], target: any, key?: string | symbol, desc?: any): any; +export declare function __param(paramIndex: number, decorator: Function): Function; +export declare function __metadata(metadataKey: any, metadataValue: any): Function; +export declare function __awaiter(thisArg: any, _arguments: any, P: Function, generator: Function): any; +export declare function __generator(thisArg: any, body: Function): any; +export declare function __exportStar(m: any, exports: any): void; + +//// [b.js] +export {}; diff --git a/tests/baselines/reference/importHelpersInAmbientContext.symbols b/tests/baselines/reference/importHelpersInAmbientContext(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/importHelpersInAmbientContext.symbols rename to tests/baselines/reference/importHelpersInAmbientContext(target=es2015).symbols diff --git a/tests/baselines/reference/importHelpersInAmbientContext.types b/tests/baselines/reference/importHelpersInAmbientContext(target=es2015).types similarity index 100% rename from tests/baselines/reference/importHelpersInAmbientContext.types rename to tests/baselines/reference/importHelpersInAmbientContext(target=es2015).types diff --git a/tests/baselines/reference/importHelpersInAmbientContext.js b/tests/baselines/reference/importHelpersInAmbientContext(target=es5).js similarity index 100% rename from tests/baselines/reference/importHelpersInAmbientContext.js rename to tests/baselines/reference/importHelpersInAmbientContext(target=es5).js diff --git a/tests/baselines/reference/importHelpersInAmbientContext(target=es5).symbols b/tests/baselines/reference/importHelpersInAmbientContext(target=es5).symbols new file mode 100644 index 0000000000000..0301b966364c1 --- /dev/null +++ b/tests/baselines/reference/importHelpersInAmbientContext(target=es5).symbols @@ -0,0 +1,148 @@ +//// [tests/cases/compiler/importHelpersInAmbientContext.ts] //// + +=== a.d.ts === +export { }; + +// Extends +declare class C { } +>C : Symbol(C, Decl(a.d.ts, 0, 11)) + +declare class D extends C { } +>D : Symbol(D, Decl(a.d.ts, 3, 19)) +>C : Symbol(C, Decl(a.d.ts, 0, 11)) + +// Destructuring +interface I { +>I : Symbol(I, Decl(a.d.ts, 4, 29)) + + ({descendants, read}?: { +>descendants : Symbol(descendants, Decl(a.d.ts, 8, 6)) +>read : Symbol(read, Decl(a.d.ts, 8, 18)) + + descendants?: boolean; +>descendants : Symbol(descendants, Decl(a.d.ts, 8, 28)) + + read?: any; +>read : Symbol(read, Decl(a.d.ts, 9, 30)) + + }): any; +} + + +// Object Rest +interface Foo { +>Foo : Symbol(Foo, Decl(a.d.ts, 12, 1)) + + a: number; b: string; +>a : Symbol(Foo.a, Decl(a.d.ts, 16, 15)) +>b : Symbol(Foo.b, Decl(a.d.ts, 17, 14)) +} +export var { a, ...x } : Foo; +>a : Symbol(a, Decl(a.d.ts, 19, 12)) +>x : Symbol(x, Decl(a.d.ts, 19, 15)) +>Foo : Symbol(Foo, Decl(a.d.ts, 12, 1)) + +=== b.ts === +export {}; +declare namespace N { +>N : Symbol(N, Decl(b.ts, 0, 10)) + + // Extends + class C { } +>C : Symbol(C, Decl(b.ts, 1, 21)) + + class D extends C { } +>D : Symbol(D, Decl(b.ts, 3, 12)) +>C : Symbol(C, Decl(b.ts, 1, 21)) + + // Destructuring + interface I { +>I : Symbol(I, Decl(b.ts, 4, 22)) + + ({descendants, read}?: { +>descendants : Symbol(descendants, Decl(b.ts, 8, 4)) +>read : Symbol(read, Decl(b.ts, 8, 16)) + + descendants?: boolean; +>descendants : Symbol(descendants, Decl(b.ts, 8, 26)) + + read?: any; +>read : Symbol(read, Decl(b.ts, 9, 25)) + + }): any; + } + + + // Object Rest + interface Foo { +>Foo : Symbol(Foo, Decl(b.ts, 12, 2)) + + a: number; b: string; +>a : Symbol(Foo.a, Decl(b.ts, 16, 16)) +>b : Symbol(Foo.b, Decl(b.ts, 17, 12)) + } + export var { a, ...x } : Foo; +>a : Symbol(a, Decl(b.ts, 19, 13)) +>x : Symbol(x, Decl(b.ts, 19, 16)) +>Foo : Symbol(Foo, Decl(b.ts, 12, 2)) +} + +=== tslib.d.ts === +export declare function __extends(d: Function, b: Function): void; +>__extends : Symbol(__extends, Decl(tslib.d.ts, --, --)) +>d : Symbol(d, Decl(tslib.d.ts, --, --)) +>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>b : Symbol(b, Decl(tslib.d.ts, --, --)) +>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + +export declare function __assign(t: any, ...sources: any[]): any; +>__assign : Symbol(__assign, Decl(tslib.d.ts, --, --)) +>t : Symbol(t, Decl(tslib.d.ts, --, --)) +>sources : Symbol(sources, Decl(tslib.d.ts, --, --)) + +export declare function __rest(t: any, propertyNames: string[]): any; +>__rest : Symbol(__rest, Decl(tslib.d.ts, --, --)) +>t : Symbol(t, Decl(tslib.d.ts, --, --)) +>propertyNames : Symbol(propertyNames, Decl(tslib.d.ts, --, --)) + +export declare function __decorate(decorators: Function[], target: any, key?: string | symbol, desc?: any): any; +>__decorate : Symbol(__decorate, Decl(tslib.d.ts, --, --)) +>decorators : Symbol(decorators, Decl(tslib.d.ts, --, --)) +>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>target : Symbol(target, Decl(tslib.d.ts, --, --)) +>key : Symbol(key, Decl(tslib.d.ts, --, --)) +>desc : Symbol(desc, Decl(tslib.d.ts, --, --)) + +export declare function __param(paramIndex: number, decorator: Function): Function; +>__param : Symbol(__param, Decl(tslib.d.ts, --, --)) +>paramIndex : Symbol(paramIndex, Decl(tslib.d.ts, --, --)) +>decorator : Symbol(decorator, Decl(tslib.d.ts, --, --)) +>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + +export declare function __metadata(metadataKey: any, metadataValue: any): Function; +>__metadata : Symbol(__metadata, Decl(tslib.d.ts, --, --)) +>metadataKey : Symbol(metadataKey, Decl(tslib.d.ts, --, --)) +>metadataValue : Symbol(metadataValue, Decl(tslib.d.ts, --, --)) +>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + +export declare function __awaiter(thisArg: any, _arguments: any, P: Function, generator: Function): any; +>__awaiter : Symbol(__awaiter, Decl(tslib.d.ts, --, --)) +>thisArg : Symbol(thisArg, Decl(tslib.d.ts, --, --)) +>_arguments : Symbol(_arguments, Decl(tslib.d.ts, --, --)) +>P : Symbol(P, Decl(tslib.d.ts, --, --)) +>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>generator : Symbol(generator, Decl(tslib.d.ts, --, --)) +>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + +export declare function __generator(thisArg: any, body: Function): any; +>__generator : Symbol(__generator, Decl(tslib.d.ts, --, --)) +>thisArg : Symbol(thisArg, Decl(tslib.d.ts, --, --)) +>body : Symbol(body, Decl(tslib.d.ts, --, --)) +>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + +export declare function __exportStar(m: any, exports: any): void; +>__exportStar : Symbol(__exportStar, Decl(tslib.d.ts, --, --)) +>m : Symbol(m, Decl(tslib.d.ts, --, --)) +>exports : Symbol(exports, Decl(tslib.d.ts, --, --)) + diff --git a/tests/baselines/reference/importHelpersInAmbientContext(target=es5).types b/tests/baselines/reference/importHelpersInAmbientContext(target=es5).types new file mode 100644 index 0000000000000..b9085d78a887c --- /dev/null +++ b/tests/baselines/reference/importHelpersInAmbientContext(target=es5).types @@ -0,0 +1,170 @@ +//// [tests/cases/compiler/importHelpersInAmbientContext.ts] //// + +=== a.d.ts === +export { }; + +// Extends +declare class C { } +>C : C +> : ^ + +declare class D extends C { } +>D : D +> : ^ +>C : C +> : ^ + +// Destructuring +interface I { + ({descendants, read}?: { +>descendants : boolean +> : ^^^^^^^ +>read : any +> : ^^^ + + descendants?: boolean; +>descendants : boolean +> : ^^^^^^^ + + read?: any; +>read : any + + }): any; +} + + +// Object Rest +interface Foo { + a: number; b: string; +>a : number +> : ^^^^^^ +>b : string +> : ^^^^^^ +} +export var { a, ...x } : Foo; +>a : number +> : ^^^^^^ +>x : { b: string; } +> : ^^^^^ ^^^ + +=== b.ts === +export {}; +declare namespace N { +>N : typeof N +> : ^^^^^^^^ + + // Extends + class C { } +>C : C +> : ^ + + class D extends C { } +>D : D +> : ^ +>C : C +> : ^ + + // Destructuring + interface I { + ({descendants, read}?: { +>descendants : boolean +> : ^^^^^^^ +>read : any +> : ^^^ + + descendants?: boolean; +>descendants : boolean +> : ^^^^^^^ + + read?: any; +>read : any + + }): any; + } + + + // Object Rest + interface Foo { + a: number; b: string; +>a : number +> : ^^^^^^ +>b : string +> : ^^^^^^ + } + export var { a, ...x } : Foo; +>a : number +> : ^^^^^^ +>x : { b: string; } +> : ^^^^^ ^^^ +} + +=== tslib.d.ts === +export declare function __extends(d: Function, b: Function): void; +>__extends : (d: Function, b: Function) => void +> : ^ ^^ ^^ ^^ ^^^^^ +>d : Function +> : ^^^^^^^^ +>b : Function +> : ^^^^^^^^ + +export declare function __assign(t: any, ...sources: any[]): any; +>__assign : (t: any, ...sources: any[]) => any +> : ^ ^^ ^^^^^ ^^ ^^^^^ +>t : any +>sources : any[] +> : ^^^^^ + +export declare function __rest(t: any, propertyNames: string[]): any; +>__rest : (t: any, propertyNames: string[]) => any +> : ^ ^^ ^^ ^^ ^^^^^ +>t : any +>propertyNames : string[] +> : ^^^^^^^^ + +export declare function __decorate(decorators: Function[], target: any, key?: string | symbol, desc?: any): any; +>__decorate : (decorators: Function[], target: any, key?: string | symbol, desc?: any) => any +> : ^ ^^ ^^ ^^ ^^ ^^^ ^^ ^^^ ^^^^^ +>decorators : Function[] +> : ^^^^^^^^^^ +>target : any +>key : string | symbol +> : ^^^^^^^^^^^^^^^ +>desc : any + +export declare function __param(paramIndex: number, decorator: Function): Function; +>__param : (paramIndex: number, decorator: Function) => Function +> : ^ ^^ ^^ ^^ ^^^^^ +>paramIndex : number +> : ^^^^^^ +>decorator : Function +> : ^^^^^^^^ + +export declare function __metadata(metadataKey: any, metadataValue: any): Function; +>__metadata : (metadataKey: any, metadataValue: any) => Function +> : ^ ^^ ^^ ^^ ^^^^^ +>metadataKey : any +>metadataValue : any + +export declare function __awaiter(thisArg: any, _arguments: any, P: Function, generator: Function): any; +>__awaiter : (thisArg: any, _arguments: any, P: Function, generator: Function) => any +> : ^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>thisArg : any +>_arguments : any +>P : Function +> : ^^^^^^^^ +>generator : Function +> : ^^^^^^^^ + +export declare function __generator(thisArg: any, body: Function): any; +>__generator : (thisArg: any, body: Function) => any +> : ^ ^^ ^^ ^^ ^^^^^ +>thisArg : any +>body : Function +> : ^^^^^^^^ + +export declare function __exportStar(m: any, exports: any): void; +>__exportStar : (m: any, exports: any) => void +> : ^ ^^ ^^ ^^ ^^^^^ +>m : any +>exports : any + diff --git a/tests/baselines/reference/importHelpersInIsolatedModules(target=es2015).js b/tests/baselines/reference/importHelpersInIsolatedModules(target=es2015).js new file mode 100644 index 0000000000000..228f0c6ab5778 --- /dev/null +++ b/tests/baselines/reference/importHelpersInIsolatedModules(target=es2015).js @@ -0,0 +1,89 @@ +//// [tests/cases/compiler/importHelpersInIsolatedModules.ts] //// + +//// [external.ts] +export class A { } +export class B extends A { } + +declare var dec: any; + +@dec +class C { + method(@dec x: number) { + } +} + +//// [script.ts] +class A { } +class B extends A { } + +declare var dec: any; + +@dec +class C { + method(@dec x: number) { + } +} + +//// [index.d.ts] +export declare function __extends(d: Function, b: Function): void; +export declare function __assign(t: any, ...sources: any[]): any; +export declare function __decorate(decorators: Function[], target: any, key?: string | symbol, desc?: any): any; +export declare function __param(paramIndex: number, decorator: Function): Function; +export declare function __metadata(metadataKey: any, metadataValue: any): Function; +export declare function __awaiter(thisArg: any, _arguments: any, P: Function, generator: Function): any; + + +//// [external.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.B = exports.A = void 0; +const tslib_1 = require("tslib"); +class A { +} +exports.A = A; +class B extends A { +} +exports.B = B; +let C = class C { + method(x) { + } +}; +tslib_1.__decorate([ + tslib_1.__param(0, dec), + tslib_1.__metadata("design:type", Function), + tslib_1.__metadata("design:paramtypes", [Number]), + tslib_1.__metadata("design:returntype", void 0) +], C.prototype, "method", null); +C = tslib_1.__decorate([ + dec +], C); +//// [script.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; +var __param = (this && this.__param) || function (paramIndex, decorator) { + return function (target, key) { decorator(target, key, paramIndex); } +}; +class A { +} +class B extends A { +} +let C = class C { + method(x) { + } +}; +__decorate([ + __param(0, dec), + __metadata("design:type", Function), + __metadata("design:paramtypes", [Number]), + __metadata("design:returntype", void 0) +], C.prototype, "method", null); +C = __decorate([ + dec +], C); diff --git a/tests/baselines/reference/importHelpersInIsolatedModules.symbols b/tests/baselines/reference/importHelpersInIsolatedModules(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/importHelpersInIsolatedModules.symbols rename to tests/baselines/reference/importHelpersInIsolatedModules(target=es2015).symbols diff --git a/tests/baselines/reference/importHelpersInIsolatedModules.types b/tests/baselines/reference/importHelpersInIsolatedModules(target=es2015).types similarity index 100% rename from tests/baselines/reference/importHelpersInIsolatedModules.types rename to tests/baselines/reference/importHelpersInIsolatedModules(target=es2015).types diff --git a/tests/baselines/reference/importHelpersInIsolatedModules.js b/tests/baselines/reference/importHelpersInIsolatedModules(target=es5).js similarity index 100% rename from tests/baselines/reference/importHelpersInIsolatedModules.js rename to tests/baselines/reference/importHelpersInIsolatedModules(target=es5).js diff --git a/tests/baselines/reference/importHelpersInIsolatedModules(target=es5).symbols b/tests/baselines/reference/importHelpersInIsolatedModules(target=es5).symbols new file mode 100644 index 0000000000000..356825cb37971 --- /dev/null +++ b/tests/baselines/reference/importHelpersInIsolatedModules(target=es5).symbols @@ -0,0 +1,93 @@ +//// [tests/cases/compiler/importHelpersInIsolatedModules.ts] //// + +=== external.ts === +export class A { } +>A : Symbol(A, Decl(external.ts, 0, 0)) + +export class B extends A { } +>B : Symbol(B, Decl(external.ts, 0, 18)) +>A : Symbol(A, Decl(external.ts, 0, 0)) + +declare var dec: any; +>dec : Symbol(dec, Decl(external.ts, 3, 11)) + +@dec +>dec : Symbol(dec, Decl(external.ts, 3, 11)) + +class C { +>C : Symbol(C, Decl(external.ts, 3, 21)) + + method(@dec x: number) { +>method : Symbol(C.method, Decl(external.ts, 6, 9)) +>dec : Symbol(dec, Decl(external.ts, 3, 11)) +>x : Symbol(x, Decl(external.ts, 7, 11)) + } +} + +=== script.ts === +class A { } +>A : Symbol(A, Decl(script.ts, 0, 0)) + +class B extends A { } +>B : Symbol(B, Decl(script.ts, 0, 11)) +>A : Symbol(A, Decl(script.ts, 0, 0)) + +declare var dec: any; +>dec : Symbol(dec, Decl(script.ts, 3, 11)) + +@dec +>dec : Symbol(dec, Decl(script.ts, 3, 11)) + +class C { +>C : Symbol(C, Decl(script.ts, 3, 21)) + + method(@dec x: number) { +>method : Symbol(C.method, Decl(script.ts, 6, 9)) +>dec : Symbol(dec, Decl(script.ts, 3, 11)) +>x : Symbol(x, Decl(script.ts, 7, 11)) + } +} + +=== node_modules/tslib/index.d.ts === +export declare function __extends(d: Function, b: Function): void; +>__extends : Symbol(__extends, Decl(index.d.ts, 0, 0)) +>d : Symbol(d, Decl(index.d.ts, 0, 34)) +>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>b : Symbol(b, Decl(index.d.ts, 0, 46)) +>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + +export declare function __assign(t: any, ...sources: any[]): any; +>__assign : Symbol(__assign, Decl(index.d.ts, 0, 66)) +>t : Symbol(t, Decl(index.d.ts, 1, 33)) +>sources : Symbol(sources, Decl(index.d.ts, 1, 40)) + +export declare function __decorate(decorators: Function[], target: any, key?: string | symbol, desc?: any): any; +>__decorate : Symbol(__decorate, Decl(index.d.ts, 1, 65)) +>decorators : Symbol(decorators, Decl(index.d.ts, 2, 35)) +>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>target : Symbol(target, Decl(index.d.ts, 2, 58)) +>key : Symbol(key, Decl(index.d.ts, 2, 71)) +>desc : Symbol(desc, Decl(index.d.ts, 2, 94)) + +export declare function __param(paramIndex: number, decorator: Function): Function; +>__param : Symbol(__param, Decl(index.d.ts, 2, 112)) +>paramIndex : Symbol(paramIndex, Decl(index.d.ts, 3, 32)) +>decorator : Symbol(decorator, Decl(index.d.ts, 3, 51)) +>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + +export declare function __metadata(metadataKey: any, metadataValue: any): Function; +>__metadata : Symbol(__metadata, Decl(index.d.ts, 3, 83)) +>metadataKey : Symbol(metadataKey, Decl(index.d.ts, 4, 35)) +>metadataValue : Symbol(metadataValue, Decl(index.d.ts, 4, 52)) +>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + +export declare function __awaiter(thisArg: any, _arguments: any, P: Function, generator: Function): any; +>__awaiter : Symbol(__awaiter, Decl(index.d.ts, 4, 83)) +>thisArg : Symbol(thisArg, Decl(index.d.ts, 5, 34)) +>_arguments : Symbol(_arguments, Decl(index.d.ts, 5, 47)) +>P : Symbol(P, Decl(index.d.ts, 5, 64)) +>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>generator : Symbol(generator, Decl(index.d.ts, 5, 77)) +>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + diff --git a/tests/baselines/reference/importHelpersInIsolatedModules(target=es5).types b/tests/baselines/reference/importHelpersInIsolatedModules(target=es5).types new file mode 100644 index 0000000000000..bcec951637ca5 --- /dev/null +++ b/tests/baselines/reference/importHelpersInIsolatedModules(target=es5).types @@ -0,0 +1,112 @@ +//// [tests/cases/compiler/importHelpersInIsolatedModules.ts] //// + +=== external.ts === +export class A { } +>A : A +> : ^ + +export class B extends A { } +>B : B +> : ^ +>A : A +> : ^ + +declare var dec: any; +>dec : any + +@dec +>dec : any + +class C { +>C : C +> : ^ + + method(@dec x: number) { +>method : (x: number) => void +> : ^ ^^ ^^^^^^^^^ +>dec : any +>x : number +> : ^^^^^^ + } +} + +=== script.ts === +class A { } +>A : A +> : ^ + +class B extends A { } +>B : B +> : ^ +>A : A +> : ^ + +declare var dec: any; +>dec : any + +@dec +>dec : any + +class C { +>C : C +> : ^ + + method(@dec x: number) { +>method : (x: number) => void +> : ^ ^^ ^^^^^^^^^ +>dec : any +>x : number +> : ^^^^^^ + } +} + +=== node_modules/tslib/index.d.ts === +export declare function __extends(d: Function, b: Function): void; +>__extends : (d: Function, b: Function) => void +> : ^ ^^ ^^ ^^ ^^^^^ +>d : Function +> : ^^^^^^^^ +>b : Function +> : ^^^^^^^^ + +export declare function __assign(t: any, ...sources: any[]): any; +>__assign : (t: any, ...sources: any[]) => any +> : ^ ^^ ^^^^^ ^^ ^^^^^ +>t : any +>sources : any[] +> : ^^^^^ + +export declare function __decorate(decorators: Function[], target: any, key?: string | symbol, desc?: any): any; +>__decorate : (decorators: Function[], target: any, key?: string | symbol, desc?: any) => any +> : ^ ^^ ^^ ^^ ^^ ^^^ ^^ ^^^ ^^^^^ +>decorators : Function[] +> : ^^^^^^^^^^ +>target : any +>key : string | symbol +> : ^^^^^^^^^^^^^^^ +>desc : any + +export declare function __param(paramIndex: number, decorator: Function): Function; +>__param : (paramIndex: number, decorator: Function) => Function +> : ^ ^^ ^^ ^^ ^^^^^ +>paramIndex : number +> : ^^^^^^ +>decorator : Function +> : ^^^^^^^^ + +export declare function __metadata(metadataKey: any, metadataValue: any): Function; +>__metadata : (metadataKey: any, metadataValue: any) => Function +> : ^ ^^ ^^ ^^ ^^^^^ +>metadataKey : any +>metadataValue : any + +export declare function __awaiter(thisArg: any, _arguments: any, P: Function, generator: Function): any; +>__awaiter : (thisArg: any, _arguments: any, P: Function, generator: Function) => any +> : ^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>thisArg : any +>_arguments : any +>P : Function +> : ^^^^^^^^ +>generator : Function +> : ^^^^^^^^ + diff --git a/tests/baselines/reference/importHelpersInTsx(target=es2015).js b/tests/baselines/reference/importHelpersInTsx(target=es2015).js new file mode 100644 index 0000000000000..054c0daeeaf4f --- /dev/null +++ b/tests/baselines/reference/importHelpersInTsx(target=es2015).js @@ -0,0 +1,28 @@ +//// [tests/cases/compiler/importHelpersInTsx.tsx] //// + +//// [external.tsx] +declare var React: any; +declare var o: any; +export const x = + +//// [script.tsx] +declare var React: any; +declare var o: any; +const x = + +//// [index.d.ts] +export declare function __extends(d: Function, b: Function): void; +export declare function __assign(t: any, ...sources: any[]): any; +export declare function __decorate(decorators: Function[], target: any, key?: string | symbol, desc?: any): any; +export declare function __param(paramIndex: number, decorator: Function): Function; +export declare function __metadata(metadataKey: any, metadataValue: any): Function; +export declare function __awaiter(thisArg: any, _arguments: any, P: Function, generator: Function): any; + + +//// [external.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.x = void 0; +exports.x = React.createElement("span", Object.assign({}, o)); +//// [script.js] +const x = React.createElement("span", Object.assign({}, o)); diff --git a/tests/baselines/reference/importHelpersInTsx.symbols b/tests/baselines/reference/importHelpersInTsx(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/importHelpersInTsx.symbols rename to tests/baselines/reference/importHelpersInTsx(target=es2015).symbols diff --git a/tests/baselines/reference/importHelpersInTsx.types b/tests/baselines/reference/importHelpersInTsx(target=es2015).types similarity index 100% rename from tests/baselines/reference/importHelpersInTsx.types rename to tests/baselines/reference/importHelpersInTsx(target=es2015).types diff --git a/tests/baselines/reference/importHelpersInTsx.js b/tests/baselines/reference/importHelpersInTsx(target=es5).js similarity index 100% rename from tests/baselines/reference/importHelpersInTsx.js rename to tests/baselines/reference/importHelpersInTsx(target=es5).js diff --git a/tests/baselines/reference/importHelpersInTsx(target=es5).symbols b/tests/baselines/reference/importHelpersInTsx(target=es5).symbols new file mode 100644 index 0000000000000..f5041b7d836c6 --- /dev/null +++ b/tests/baselines/reference/importHelpersInTsx(target=es5).symbols @@ -0,0 +1,67 @@ +//// [tests/cases/compiler/importHelpersInTsx.tsx] //// + +=== external.tsx === +declare var React: any; +>React : Symbol(React, Decl(external.tsx, 0, 11)) + +declare var o: any; +>o : Symbol(o, Decl(external.tsx, 1, 11)) + +export const x = +>x : Symbol(x, Decl(external.tsx, 2, 12)) +>o : Symbol(o, Decl(external.tsx, 1, 11)) + +=== script.tsx === +declare var React: any; +>React : Symbol(React, Decl(script.tsx, 0, 11)) + +declare var o: any; +>o : Symbol(o, Decl(script.tsx, 1, 11)) + +const x = +>x : Symbol(x, Decl(script.tsx, 2, 5)) +>o : Symbol(o, Decl(script.tsx, 1, 11)) + +=== node_modules/tslib/index.d.ts === +export declare function __extends(d: Function, b: Function): void; +>__extends : Symbol(__extends, Decl(index.d.ts, 0, 0)) +>d : Symbol(d, Decl(index.d.ts, 0, 34)) +>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>b : Symbol(b, Decl(index.d.ts, 0, 46)) +>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + +export declare function __assign(t: any, ...sources: any[]): any; +>__assign : Symbol(__assign, Decl(index.d.ts, 0, 66)) +>t : Symbol(t, Decl(index.d.ts, 1, 33)) +>sources : Symbol(sources, Decl(index.d.ts, 1, 40)) + +export declare function __decorate(decorators: Function[], target: any, key?: string | symbol, desc?: any): any; +>__decorate : Symbol(__decorate, Decl(index.d.ts, 1, 65)) +>decorators : Symbol(decorators, Decl(index.d.ts, 2, 35)) +>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>target : Symbol(target, Decl(index.d.ts, 2, 58)) +>key : Symbol(key, Decl(index.d.ts, 2, 71)) +>desc : Symbol(desc, Decl(index.d.ts, 2, 94)) + +export declare function __param(paramIndex: number, decorator: Function): Function; +>__param : Symbol(__param, Decl(index.d.ts, 2, 112)) +>paramIndex : Symbol(paramIndex, Decl(index.d.ts, 3, 32)) +>decorator : Symbol(decorator, Decl(index.d.ts, 3, 51)) +>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + +export declare function __metadata(metadataKey: any, metadataValue: any): Function; +>__metadata : Symbol(__metadata, Decl(index.d.ts, 3, 83)) +>metadataKey : Symbol(metadataKey, Decl(index.d.ts, 4, 35)) +>metadataValue : Symbol(metadataValue, Decl(index.d.ts, 4, 52)) +>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + +export declare function __awaiter(thisArg: any, _arguments: any, P: Function, generator: Function): any; +>__awaiter : Symbol(__awaiter, Decl(index.d.ts, 4, 83)) +>thisArg : Symbol(thisArg, Decl(index.d.ts, 5, 34)) +>_arguments : Symbol(_arguments, Decl(index.d.ts, 5, 47)) +>P : Symbol(P, Decl(index.d.ts, 5, 64)) +>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>generator : Symbol(generator, Decl(index.d.ts, 5, 77)) +>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + diff --git a/tests/baselines/reference/importHelpersInTsx(target=es5).types b/tests/baselines/reference/importHelpersInTsx(target=es5).types new file mode 100644 index 0000000000000..b166d5cb97047 --- /dev/null +++ b/tests/baselines/reference/importHelpersInTsx(target=es5).types @@ -0,0 +1,80 @@ +//// [tests/cases/compiler/importHelpersInTsx.tsx] //// + +=== external.tsx === +declare var React: any; +>React : any + +declare var o: any; +>o : any + +export const x = +>x : error +> : error +>span : any +> : ^^^ +>o : any + +=== script.tsx === +declare var React: any; +>React : any + +declare var o: any; +>o : any + +const x = +>x : error +> : error +>span : any +> : ^^^ +>o : any + +=== node_modules/tslib/index.d.ts === +export declare function __extends(d: Function, b: Function): void; +>__extends : (d: Function, b: Function) => void +> : ^ ^^ ^^ ^^ ^^^^^ +>d : Function +> : ^^^^^^^^ +>b : Function +> : ^^^^^^^^ + +export declare function __assign(t: any, ...sources: any[]): any; +>__assign : (t: any, ...sources: any[]) => any +> : ^ ^^ ^^^^^ ^^ ^^^^^ +>t : any +>sources : any[] +> : ^^^^^ + +export declare function __decorate(decorators: Function[], target: any, key?: string | symbol, desc?: any): any; +>__decorate : (decorators: Function[], target: any, key?: string | symbol, desc?: any) => any +> : ^ ^^ ^^ ^^ ^^ ^^^ ^^ ^^^ ^^^^^ +>decorators : Function[] +> : ^^^^^^^^^^ +>target : any +>key : string | symbol +> : ^^^^^^^^^^^^^^^ +>desc : any + +export declare function __param(paramIndex: number, decorator: Function): Function; +>__param : (paramIndex: number, decorator: Function) => Function +> : ^ ^^ ^^ ^^ ^^^^^ +>paramIndex : number +> : ^^^^^^ +>decorator : Function +> : ^^^^^^^^ + +export declare function __metadata(metadataKey: any, metadataValue: any): Function; +>__metadata : (metadataKey: any, metadataValue: any) => Function +> : ^ ^^ ^^ ^^ ^^^^^ +>metadataKey : any +>metadataValue : any + +export declare function __awaiter(thisArg: any, _arguments: any, P: Function, generator: Function): any; +>__awaiter : (thisArg: any, _arguments: any, P: Function, generator: Function) => any +> : ^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>thisArg : any +>_arguments : any +>P : Function +> : ^^^^^^^^ +>generator : Function +> : ^^^^^^^^ + diff --git a/tests/baselines/reference/importHelpersNoEmitHelpersExportDefault(target=es2015).js b/tests/baselines/reference/importHelpersNoEmitHelpersExportDefault(target=es2015).js new file mode 100644 index 0000000000000..fdbf31b4524d7 --- /dev/null +++ b/tests/baselines/reference/importHelpersNoEmitHelpersExportDefault(target=es2015).js @@ -0,0 +1,36 @@ +//// [tests/cases/compiler/importHelpersNoEmitHelpersExportDefault.ts] //// + +//// [main.ts] +// https://github.com/microsoft/TypeScript/issues/40328 +export { default as A } from "./other"; + +//// [main2.ts] +export { default } from "./other"; + +//// [other.ts] +export default {}; + +//// [tslib.d.ts] +declare module "tslib" { + function __importDefault(m: any): void; +} + +//// [other.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = {}; +//// [main.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.A = void 0; +const tslib_1 = require("tslib"); +// https://github.com/microsoft/TypeScript/issues/40328 +var other_1 = require("./other"); +Object.defineProperty(exports, "A", { enumerable: true, get: function () { return tslib_1.__importDefault(other_1).default; } }); +//// [main2.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = void 0; +const tslib_1 = require("tslib"); +var other_1 = require("./other"); +Object.defineProperty(exports, "default", { enumerable: true, get: function () { return tslib_1.__importDefault(other_1).default; } }); diff --git a/tests/baselines/reference/importHelpersNoEmitHelpersExportDefault.js b/tests/baselines/reference/importHelpersNoEmitHelpersExportDefault(target=es5).js similarity index 100% rename from tests/baselines/reference/importHelpersNoEmitHelpersExportDefault.js rename to tests/baselines/reference/importHelpersNoEmitHelpersExportDefault(target=es5).js diff --git a/tests/baselines/reference/importHelpersNoHelpers(target=es2015).errors.txt b/tests/baselines/reference/importHelpersNoHelpers(target=es2015).errors.txt new file mode 100644 index 0000000000000..4a71aa578b992 --- /dev/null +++ b/tests/baselines/reference/importHelpersNoHelpers(target=es2015).errors.txt @@ -0,0 +1,54 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +external.ts(1,1): error TS2343: This syntax requires an imported helper named '__exportStar' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. +external.ts(7,1): error TS2343: This syntax requires an imported helper named '__decorate' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. +external.ts(7,1): error TS2343: This syntax requires an imported helper named '__metadata' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. +external.ts(9,12): error TS2343: This syntax requires an imported helper named '__param' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. +external.ts(15,12): error TS2343: This syntax requires an imported helper named '__rest' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== external.ts (5 errors) ==== + export * from "./other"; + ~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2343: This syntax requires an imported helper named '__exportStar' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. + export class A { } + export class B extends A { } + + declare var dec: any; + + @dec + ~~~~ +!!! error TS2343: This syntax requires an imported helper named '__decorate' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. + ~~~~ +!!! error TS2343: This syntax requires an imported helper named '__metadata' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. + class C { + method(@dec x: number) { + ~~~~ +!!! error TS2343: This syntax requires an imported helper named '__param' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. + } + } + + const o = { a: 1 }; + const y = { ...o }; + const { ...x } = y; + ~ +!!! error TS2343: This syntax requires an imported helper named '__rest' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. + +==== other.ts (0 errors) ==== + export const x = 1; + +==== script.ts (0 errors) ==== + class A { } + class B extends A { } + + declare var dec: any; + + @dec + class C { + method(@dec x: number) { + } + } + +==== tslib.d.ts (0 errors) ==== + export {} + \ No newline at end of file diff --git a/tests/baselines/reference/importHelpersNoHelpers(target=es2015).js b/tests/baselines/reference/importHelpersNoHelpers(target=es2015).js new file mode 100644 index 0000000000000..46e475aaecd0d --- /dev/null +++ b/tests/baselines/reference/importHelpersNoHelpers(target=es2015).js @@ -0,0 +1,101 @@ +//// [tests/cases/compiler/importHelpersNoHelpers.ts] //// + +//// [external.ts] +export * from "./other"; +export class A { } +export class B extends A { } + +declare var dec: any; + +@dec +class C { + method(@dec x: number) { + } +} + +const o = { a: 1 }; +const y = { ...o }; +const { ...x } = y; + +//// [other.ts] +export const x = 1; + +//// [script.ts] +class A { } +class B extends A { } + +declare var dec: any; + +@dec +class C { + method(@dec x: number) { + } +} + +//// [tslib.d.ts] +export {} + + +//// [other.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.x = void 0; +exports.x = 1; +//// [external.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.B = exports.A = void 0; +const tslib_1 = require("tslib"); +tslib_1.__exportStar(require("./other"), exports); +class A { +} +exports.A = A; +class B extends A { +} +exports.B = B; +let C = class C { + method(x) { + } +}; +tslib_1.__decorate([ + tslib_1.__param(0, dec), + tslib_1.__metadata("design:type", Function), + tslib_1.__metadata("design:paramtypes", [Number]), + tslib_1.__metadata("design:returntype", void 0) +], C.prototype, "method", null); +C = tslib_1.__decorate([ + dec +], C); +const o = { a: 1 }; +const y = Object.assign({}, o); +const x = tslib_1.__rest(y, []); +//// [script.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; +var __param = (this && this.__param) || function (paramIndex, decorator) { + return function (target, key) { decorator(target, key, paramIndex); } +}; +class A { +} +class B extends A { +} +let C = class C { + method(x) { + } +}; +__decorate([ + __param(0, dec), + __metadata("design:type", Function), + __metadata("design:paramtypes", [Number]), + __metadata("design:returntype", void 0) +], C.prototype, "method", null); +C = __decorate([ + dec +], C); diff --git a/tests/baselines/reference/importHelpersNoHelpers.symbols b/tests/baselines/reference/importHelpersNoHelpers(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/importHelpersNoHelpers.symbols rename to tests/baselines/reference/importHelpersNoHelpers(target=es2015).symbols diff --git a/tests/baselines/reference/importHelpersNoHelpers.types b/tests/baselines/reference/importHelpersNoHelpers(target=es2015).types similarity index 100% rename from tests/baselines/reference/importHelpersNoHelpers.types rename to tests/baselines/reference/importHelpersNoHelpers(target=es2015).types diff --git a/tests/baselines/reference/importHelpersNoHelpers.errors.txt b/tests/baselines/reference/importHelpersNoHelpers(target=es5).errors.txt similarity index 100% rename from tests/baselines/reference/importHelpersNoHelpers.errors.txt rename to tests/baselines/reference/importHelpersNoHelpers(target=es5).errors.txt diff --git a/tests/baselines/reference/importHelpersNoHelpers.js b/tests/baselines/reference/importHelpersNoHelpers(target=es5).js similarity index 100% rename from tests/baselines/reference/importHelpersNoHelpers.js rename to tests/baselines/reference/importHelpersNoHelpers(target=es5).js diff --git a/tests/baselines/reference/importHelpersNoHelpers(target=es5).symbols b/tests/baselines/reference/importHelpersNoHelpers(target=es5).symbols new file mode 100644 index 0000000000000..787d61d0f65c4 --- /dev/null +++ b/tests/baselines/reference/importHelpersNoHelpers(target=es5).symbols @@ -0,0 +1,71 @@ +//// [tests/cases/compiler/importHelpersNoHelpers.ts] //// + +=== external.ts === +export * from "./other"; +export class A { } +>A : Symbol(A, Decl(external.ts, 0, 24)) + +export class B extends A { } +>B : Symbol(B, Decl(external.ts, 1, 18)) +>A : Symbol(A, Decl(external.ts, 0, 24)) + +declare var dec: any; +>dec : Symbol(dec, Decl(external.ts, 4, 11)) + +@dec +>dec : Symbol(dec, Decl(external.ts, 4, 11)) + +class C { +>C : Symbol(C, Decl(external.ts, 4, 21)) + + method(@dec x: number) { +>method : Symbol(C.method, Decl(external.ts, 7, 9)) +>dec : Symbol(dec, Decl(external.ts, 4, 11)) +>x : Symbol(x, Decl(external.ts, 8, 11)) + } +} + +const o = { a: 1 }; +>o : Symbol(o, Decl(external.ts, 12, 5)) +>a : Symbol(a, Decl(external.ts, 12, 11)) + +const y = { ...o }; +>y : Symbol(y, Decl(external.ts, 13, 5)) +>o : Symbol(o, Decl(external.ts, 12, 5)) + +const { ...x } = y; +>x : Symbol(x, Decl(external.ts, 14, 7)) +>y : Symbol(y, Decl(external.ts, 13, 5)) + +=== other.ts === +export const x = 1; +>x : Symbol(x, Decl(other.ts, 0, 12)) + +=== script.ts === +class A { } +>A : Symbol(A, Decl(script.ts, 0, 0)) + +class B extends A { } +>B : Symbol(B, Decl(script.ts, 0, 11)) +>A : Symbol(A, Decl(script.ts, 0, 0)) + +declare var dec: any; +>dec : Symbol(dec, Decl(script.ts, 3, 11)) + +@dec +>dec : Symbol(dec, Decl(script.ts, 3, 11)) + +class C { +>C : Symbol(C, Decl(script.ts, 3, 21)) + + method(@dec x: number) { +>method : Symbol(C.method, Decl(script.ts, 6, 9)) +>dec : Symbol(dec, Decl(script.ts, 3, 11)) +>x : Symbol(x, Decl(script.ts, 7, 11)) + } +} + +=== tslib.d.ts === + +export {} + diff --git a/tests/baselines/reference/importHelpersNoHelpers(target=es5).types b/tests/baselines/reference/importHelpersNoHelpers(target=es5).types new file mode 100644 index 0000000000000..a74e3a0ee3952 --- /dev/null +++ b/tests/baselines/reference/importHelpersNoHelpers(target=es5).types @@ -0,0 +1,104 @@ +//// [tests/cases/compiler/importHelpersNoHelpers.ts] //// + +=== external.ts === +export * from "./other"; +export class A { } +>A : A +> : ^ + +export class B extends A { } +>B : B +> : ^ +>A : A +> : ^ + +declare var dec: any; +>dec : any +> : ^^^ + +@dec +>dec : any +> : ^^^ + +class C { +>C : C +> : ^ + + method(@dec x: number) { +>method : (x: number) => void +> : ^ ^^ ^^^^^^^^^ +>dec : any +> : ^^^ +>x : number +> : ^^^^^^ + } +} + +const o = { a: 1 }; +>o : { a: number; } +> : ^^^^^^^^^^^^^^ +>{ a: 1 } : { a: number; } +> : ^^^^^^^^^^^^^^ +>a : number +> : ^^^^^^ +>1 : 1 +> : ^ + +const y = { ...o }; +>y : { a: number; } +> : ^^^^^^^^^^^^^^ +>{ ...o } : { a: number; } +> : ^^^^^^^^^^^^^^ +>o : { a: number; } +> : ^^^^^^^^^^^^^^ + +const { ...x } = y; +>x : { a: number; } +> : ^^^^^^^^^^^^^^ +>y : { a: number; } +> : ^^^^^^^^^^^^^^ + +=== other.ts === +export const x = 1; +>x : 1 +> : ^ +>1 : 1 +> : ^ + +=== script.ts === +class A { } +>A : A +> : ^ + +class B extends A { } +>B : B +> : ^ +>A : A +> : ^ + +declare var dec: any; +>dec : any +> : ^^^ + +@dec +>dec : any +> : ^^^ + +class C { +>C : C +> : ^ + + method(@dec x: number) { +>method : (x: number) => void +> : ^ ^^ ^^^^^^^^^ +>dec : any +> : ^^^ +>x : number +> : ^^^^^^ + } +} + +=== tslib.d.ts === + +export {} + diff --git a/tests/baselines/reference/importHelpersNoHelpersForAsyncGenerators(target=es2015).errors.txt b/tests/baselines/reference/importHelpersNoHelpersForAsyncGenerators(target=es2015).errors.txt new file mode 100644 index 0000000000000..7cda5ffbb2296 --- /dev/null +++ b/tests/baselines/reference/importHelpersNoHelpersForAsyncGenerators(target=es2015).errors.txt @@ -0,0 +1,26 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +main.ts(1,25): error TS2343: This syntax requires an imported helper named '__asyncGenerator' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. +main.ts(1,25): error TS2343: This syntax requires an imported helper named '__await' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. +main.ts(4,5): error TS2343: This syntax requires an imported helper named '__asyncDelegator' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. +main.ts(4,5): error TS2343: This syntax requires an imported helper named '__asyncValues' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== main.ts (4 errors) ==== + export async function * f() { + ~ +!!! error TS2343: This syntax requires an imported helper named '__asyncGenerator' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. + ~ +!!! error TS2343: This syntax requires an imported helper named '__await' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. + await 1; + yield 2; + yield* [3]; + ~~~~~ +!!! error TS2343: This syntax requires an imported helper named '__asyncDelegator' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. + ~~~~~ +!!! error TS2343: This syntax requires an imported helper named '__asyncValues' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. + } + +==== tslib.d.ts (0 errors) ==== + export {} + \ No newline at end of file diff --git a/tests/baselines/reference/importHelpersNoHelpersForAsyncGenerators(target=es2015).js b/tests/baselines/reference/importHelpersNoHelpersForAsyncGenerators(target=es2015).js new file mode 100644 index 0000000000000..00be0e9fd31cf --- /dev/null +++ b/tests/baselines/reference/importHelpersNoHelpersForAsyncGenerators(target=es2015).js @@ -0,0 +1,25 @@ +//// [tests/cases/compiler/importHelpersNoHelpersForAsyncGenerators.ts] //// + +//// [main.ts] +export async function * f() { + await 1; + yield 2; + yield* [3]; +} + +//// [tslib.d.ts] +export {} + + +//// [main.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.f = f; +const tslib_1 = require("tslib"); +function f() { + return tslib_1.__asyncGenerator(this, arguments, function* f_1() { + yield tslib_1.__await(1); + yield yield tslib_1.__await(2); + yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues([3]))); + }); +} diff --git a/tests/baselines/reference/importHelpersNoHelpersForAsyncGenerators.symbols b/tests/baselines/reference/importHelpersNoHelpersForAsyncGenerators(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/importHelpersNoHelpersForAsyncGenerators.symbols rename to tests/baselines/reference/importHelpersNoHelpersForAsyncGenerators(target=es2015).symbols diff --git a/tests/baselines/reference/importHelpersNoHelpersForAsyncGenerators.types b/tests/baselines/reference/importHelpersNoHelpersForAsyncGenerators(target=es2015).types similarity index 100% rename from tests/baselines/reference/importHelpersNoHelpersForAsyncGenerators.types rename to tests/baselines/reference/importHelpersNoHelpersForAsyncGenerators(target=es2015).types diff --git a/tests/baselines/reference/importHelpersNoHelpersForAsyncGenerators.errors.txt b/tests/baselines/reference/importHelpersNoHelpersForAsyncGenerators(target=es5).errors.txt similarity index 100% rename from tests/baselines/reference/importHelpersNoHelpersForAsyncGenerators.errors.txt rename to tests/baselines/reference/importHelpersNoHelpersForAsyncGenerators(target=es5).errors.txt diff --git a/tests/baselines/reference/importHelpersNoHelpersForAsyncGenerators.js b/tests/baselines/reference/importHelpersNoHelpersForAsyncGenerators(target=es5).js similarity index 100% rename from tests/baselines/reference/importHelpersNoHelpersForAsyncGenerators.js rename to tests/baselines/reference/importHelpersNoHelpersForAsyncGenerators(target=es5).js diff --git a/tests/baselines/reference/importHelpersNoHelpersForAsyncGenerators(target=es5).symbols b/tests/baselines/reference/importHelpersNoHelpersForAsyncGenerators(target=es5).symbols new file mode 100644 index 0000000000000..30c0590218256 --- /dev/null +++ b/tests/baselines/reference/importHelpersNoHelpersForAsyncGenerators(target=es5).symbols @@ -0,0 +1,15 @@ +//// [tests/cases/compiler/importHelpersNoHelpersForAsyncGenerators.ts] //// + +=== main.ts === +export async function * f() { +>f : Symbol(f, Decl(main.ts, 0, 0)) + + await 1; + yield 2; + yield* [3]; +} + +=== tslib.d.ts === + +export {} + diff --git a/tests/baselines/reference/importHelpersNoHelpersForAsyncGenerators(target=es5).types b/tests/baselines/reference/importHelpersNoHelpersForAsyncGenerators(target=es5).types new file mode 100644 index 0000000000000..9d221f738586b --- /dev/null +++ b/tests/baselines/reference/importHelpersNoHelpersForAsyncGenerators(target=es5).types @@ -0,0 +1,32 @@ +//// [tests/cases/compiler/importHelpersNoHelpersForAsyncGenerators.ts] //// + +=== main.ts === +export async function * f() { +>f : () => AsyncGenerator +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + await 1; +>await 1 : 1 +> : ^ +>1 : 1 +> : ^ + + yield 2; +>yield 2 : any +> : ^^^ +>2 : 2 +> : ^ + + yield* [3]; +>yield* [3] : any +> : ^^^ +>[3] : number[] +> : ^^^^^^^^ +>3 : 3 +> : ^ +} + +=== tslib.d.ts === + +export {} + diff --git a/tests/baselines/reference/importHelpersNoModule(target=es2015).errors.txt b/tests/baselines/reference/importHelpersNoModule(target=es2015).errors.txt new file mode 100644 index 0000000000000..3c128bf5226f8 --- /dev/null +++ b/tests/baselines/reference/importHelpersNoModule(target=es2015).errors.txt @@ -0,0 +1,31 @@ +error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +external.ts(6,1): error TS2354: This syntax requires an imported helper but module 'tslib' cannot be found. + + +!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== external.ts (1 errors) ==== + export class A { } + export class B extends A { } + + declare var dec: any; + + @dec + ~~~~ +!!! error TS2354: This syntax requires an imported helper but module 'tslib' cannot be found. + class C { + method(@dec x: number) { + } + } + +==== script.ts (0 errors) ==== + class A { } + class B extends A { } + + declare var dec: any; + + @dec + class C { + method(@dec x: number) { + } + } + \ No newline at end of file diff --git a/tests/baselines/reference/importHelpersNoModule(target=es2015).js b/tests/baselines/reference/importHelpersNoModule(target=es2015).js new file mode 100644 index 0000000000000..4cc43e1b14723 --- /dev/null +++ b/tests/baselines/reference/importHelpersNoModule(target=es2015).js @@ -0,0 +1,81 @@ +//// [tests/cases/compiler/importHelpersNoModule.ts] //// + +//// [external.ts] +export class A { } +export class B extends A { } + +declare var dec: any; + +@dec +class C { + method(@dec x: number) { + } +} + +//// [script.ts] +class A { } +class B extends A { } + +declare var dec: any; + +@dec +class C { + method(@dec x: number) { + } +} + + +//// [external.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.B = exports.A = void 0; +const tslib_1 = require("tslib"); +class A { +} +exports.A = A; +class B extends A { +} +exports.B = B; +let C = class C { + method(x) { + } +}; +tslib_1.__decorate([ + tslib_1.__param(0, dec), + tslib_1.__metadata("design:type", Function), + tslib_1.__metadata("design:paramtypes", [Number]), + tslib_1.__metadata("design:returntype", void 0) +], C.prototype, "method", null); +C = tslib_1.__decorate([ + dec +], C); +//// [script.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; +var __param = (this && this.__param) || function (paramIndex, decorator) { + return function (target, key) { decorator(target, key, paramIndex); } +}; +class A { +} +class B extends A { +} +let C = class C { + method(x) { + } +}; +__decorate([ + __param(0, dec), + __metadata("design:type", Function), + __metadata("design:paramtypes", [Number]), + __metadata("design:returntype", void 0) +], C.prototype, "method", null); +C = __decorate([ + dec +], C); diff --git a/tests/baselines/reference/importHelpersNoModule.symbols b/tests/baselines/reference/importHelpersNoModule(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/importHelpersNoModule.symbols rename to tests/baselines/reference/importHelpersNoModule(target=es2015).symbols diff --git a/tests/baselines/reference/importHelpersNoModule.types b/tests/baselines/reference/importHelpersNoModule(target=es2015).types similarity index 100% rename from tests/baselines/reference/importHelpersNoModule.types rename to tests/baselines/reference/importHelpersNoModule(target=es2015).types diff --git a/tests/baselines/reference/importHelpersNoModule.errors.txt b/tests/baselines/reference/importHelpersNoModule(target=es5).errors.txt similarity index 100% rename from tests/baselines/reference/importHelpersNoModule.errors.txt rename to tests/baselines/reference/importHelpersNoModule(target=es5).errors.txt diff --git a/tests/baselines/reference/importHelpersNoModule.js b/tests/baselines/reference/importHelpersNoModule(target=es5).js similarity index 100% rename from tests/baselines/reference/importHelpersNoModule.js rename to tests/baselines/reference/importHelpersNoModule(target=es5).js diff --git a/tests/baselines/reference/importHelpersNoModule(target=es5).symbols b/tests/baselines/reference/importHelpersNoModule(target=es5).symbols new file mode 100644 index 0000000000000..684f87cd574c9 --- /dev/null +++ b/tests/baselines/reference/importHelpersNoModule(target=es5).symbols @@ -0,0 +1,50 @@ +//// [tests/cases/compiler/importHelpersNoModule.ts] //// + +=== external.ts === +export class A { } +>A : Symbol(A, Decl(external.ts, 0, 0)) + +export class B extends A { } +>B : Symbol(B, Decl(external.ts, 0, 18)) +>A : Symbol(A, Decl(external.ts, 0, 0)) + +declare var dec: any; +>dec : Symbol(dec, Decl(external.ts, 3, 11)) + +@dec +>dec : Symbol(dec, Decl(external.ts, 3, 11)) + +class C { +>C : Symbol(C, Decl(external.ts, 3, 21)) + + method(@dec x: number) { +>method : Symbol(C.method, Decl(external.ts, 6, 9)) +>dec : Symbol(dec, Decl(external.ts, 3, 11)) +>x : Symbol(x, Decl(external.ts, 7, 11)) + } +} + +=== script.ts === +class A { } +>A : Symbol(A, Decl(script.ts, 0, 0)) + +class B extends A { } +>B : Symbol(B, Decl(script.ts, 0, 11)) +>A : Symbol(A, Decl(script.ts, 0, 0)) + +declare var dec: any; +>dec : Symbol(dec, Decl(script.ts, 3, 11)) + +@dec +>dec : Symbol(dec, Decl(script.ts, 3, 11)) + +class C { +>C : Symbol(C, Decl(script.ts, 3, 21)) + + method(@dec x: number) { +>method : Symbol(C.method, Decl(script.ts, 6, 9)) +>dec : Symbol(dec, Decl(script.ts, 3, 11)) +>x : Symbol(x, Decl(script.ts, 7, 11)) + } +} + diff --git a/tests/baselines/reference/importHelpersNoModule(target=es5).types b/tests/baselines/reference/importHelpersNoModule(target=es5).types new file mode 100644 index 0000000000000..c3d24ad0aeee0 --- /dev/null +++ b/tests/baselines/reference/importHelpersNoModule(target=es5).types @@ -0,0 +1,68 @@ +//// [tests/cases/compiler/importHelpersNoModule.ts] //// + +=== external.ts === +export class A { } +>A : A +> : ^ + +export class B extends A { } +>B : B +> : ^ +>A : A +> : ^ + +declare var dec: any; +>dec : any +> : ^^^ + +@dec +>dec : any +> : ^^^ + +class C { +>C : C +> : ^ + + method(@dec x: number) { +>method : (x: number) => void +> : ^ ^^ ^^^^^^^^^ +>dec : any +> : ^^^ +>x : number +> : ^^^^^^ + } +} + +=== script.ts === +class A { } +>A : A +> : ^ + +class B extends A { } +>B : B +> : ^ +>A : A +> : ^ + +declare var dec: any; +>dec : any +> : ^^^ + +@dec +>dec : any +> : ^^^ + +class C { +>C : C +> : ^ + + method(@dec x: number) { +>method : (x: number) => void +> : ^ ^^ ^^^^^^^^^ +>dec : any +> : ^^^ +>x : number +> : ^^^^^^ + } +} + diff --git a/tests/baselines/reference/importHelpersOutFile.errors.txt b/tests/baselines/reference/importHelpersOutFile(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/importHelpersOutFile.errors.txt rename to tests/baselines/reference/importHelpersOutFile(target=es2015).errors.txt diff --git a/tests/baselines/reference/importHelpersOutFile(target=es2015).js b/tests/baselines/reference/importHelpersOutFile(target=es2015).js new file mode 100644 index 0000000000000..7a0f20cc24a31 --- /dev/null +++ b/tests/baselines/reference/importHelpersOutFile(target=es2015).js @@ -0,0 +1,47 @@ +//// [tests/cases/compiler/importHelpersOutFile.ts] //// + +//// [a.ts] +export class A { } + +//// [b.ts] +import { A } from "./a"; +export class B extends A { } + +//// [c.ts] +import { A } from "./a"; +export class C extends A { } + +//// [tslib.d.ts] +export declare function __extends(d: Function, b: Function): void; +export declare function __assign(t: any, ...sources: any[]): any; +export declare function __decorate(decorators: Function[], target: any, key?: string | symbol, desc?: any): any; +export declare function __param(paramIndex: number, decorator: Function): Function; +export declare function __metadata(metadataKey: any, metadataValue: any): Function; +export declare function __awaiter(thisArg: any, _arguments: any, P: Function, generator: Function): any; + + +//// [out.js] +define("a", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.A = void 0; + class A { + } + exports.A = A; +}); +define("b", ["require", "exports", "a"], function (require, exports, a_1) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.B = void 0; + class B extends a_1.A { + } + exports.B = B; +}); +define("c", ["require", "exports", "a"], function (require, exports, a_2) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.C = void 0; + class C extends a_2.A { + } + exports.C = C; +}); diff --git a/tests/baselines/reference/importHelpersOutFile.symbols b/tests/baselines/reference/importHelpersOutFile(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/importHelpersOutFile.symbols rename to tests/baselines/reference/importHelpersOutFile(target=es2015).symbols diff --git a/tests/baselines/reference/importHelpersOutFile.types b/tests/baselines/reference/importHelpersOutFile(target=es2015).types similarity index 100% rename from tests/baselines/reference/importHelpersOutFile.types rename to tests/baselines/reference/importHelpersOutFile(target=es2015).types diff --git a/tests/baselines/reference/importHelpersOutFile(target=es5).errors.txt b/tests/baselines/reference/importHelpersOutFile(target=es5).errors.txt new file mode 100644 index 0000000000000..2fc7e8ffeabae --- /dev/null +++ b/tests/baselines/reference/importHelpersOutFile(target=es5).errors.txt @@ -0,0 +1,25 @@ +error TS5101: Option 'outFile' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5101: Option 'outFile' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== a.ts (0 errors) ==== + export class A { } + +==== b.ts (0 errors) ==== + import { A } from "./a"; + export class B extends A { } + +==== c.ts (0 errors) ==== + import { A } from "./a"; + export class C extends A { } + +==== tslib.d.ts (0 errors) ==== + export declare function __extends(d: Function, b: Function): void; + export declare function __assign(t: any, ...sources: any[]): any; + export declare function __decorate(decorators: Function[], target: any, key?: string | symbol, desc?: any): any; + export declare function __param(paramIndex: number, decorator: Function): Function; + export declare function __metadata(metadataKey: any, metadataValue: any): Function; + export declare function __awaiter(thisArg: any, _arguments: any, P: Function, generator: Function): any; + \ No newline at end of file diff --git a/tests/baselines/reference/importHelpersOutFile.js b/tests/baselines/reference/importHelpersOutFile(target=es5).js similarity index 100% rename from tests/baselines/reference/importHelpersOutFile.js rename to tests/baselines/reference/importHelpersOutFile(target=es5).js diff --git a/tests/baselines/reference/importHelpersOutFile(target=es5).symbols b/tests/baselines/reference/importHelpersOutFile(target=es5).symbols new file mode 100644 index 0000000000000..97af36d3ddc88 --- /dev/null +++ b/tests/baselines/reference/importHelpersOutFile(target=es5).symbols @@ -0,0 +1,65 @@ +//// [tests/cases/compiler/importHelpersOutFile.ts] //// + +=== a.ts === +export class A { } +>A : Symbol(A, Decl(a.ts, 0, 0)) + +=== b.ts === +import { A } from "./a"; +>A : Symbol(A, Decl(b.ts, 0, 8)) + +export class B extends A { } +>B : Symbol(B, Decl(b.ts, 0, 24)) +>A : Symbol(A, Decl(b.ts, 0, 8)) + +=== c.ts === +import { A } from "./a"; +>A : Symbol(A, Decl(c.ts, 0, 8)) + +export class C extends A { } +>C : Symbol(C, Decl(c.ts, 0, 24)) +>A : Symbol(A, Decl(c.ts, 0, 8)) + +=== tslib.d.ts === +export declare function __extends(d: Function, b: Function): void; +>__extends : Symbol(__extends, Decl(tslib.d.ts, --, --)) +>d : Symbol(d, Decl(tslib.d.ts, --, --)) +>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>b : Symbol(b, Decl(tslib.d.ts, --, --)) +>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + +export declare function __assign(t: any, ...sources: any[]): any; +>__assign : Symbol(__assign, Decl(tslib.d.ts, --, --)) +>t : Symbol(t, Decl(tslib.d.ts, --, --)) +>sources : Symbol(sources, Decl(tslib.d.ts, --, --)) + +export declare function __decorate(decorators: Function[], target: any, key?: string | symbol, desc?: any): any; +>__decorate : Symbol(__decorate, Decl(tslib.d.ts, --, --)) +>decorators : Symbol(decorators, Decl(tslib.d.ts, --, --)) +>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>target : Symbol(target, Decl(tslib.d.ts, --, --)) +>key : Symbol(key, Decl(tslib.d.ts, --, --)) +>desc : Symbol(desc, Decl(tslib.d.ts, --, --)) + +export declare function __param(paramIndex: number, decorator: Function): Function; +>__param : Symbol(__param, Decl(tslib.d.ts, --, --)) +>paramIndex : Symbol(paramIndex, Decl(tslib.d.ts, --, --)) +>decorator : Symbol(decorator, Decl(tslib.d.ts, --, --)) +>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + +export declare function __metadata(metadataKey: any, metadataValue: any): Function; +>__metadata : Symbol(__metadata, Decl(tslib.d.ts, --, --)) +>metadataKey : Symbol(metadataKey, Decl(tslib.d.ts, --, --)) +>metadataValue : Symbol(metadataValue, Decl(tslib.d.ts, --, --)) +>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + +export declare function __awaiter(thisArg: any, _arguments: any, P: Function, generator: Function): any; +>__awaiter : Symbol(__awaiter, Decl(tslib.d.ts, --, --)) +>thisArg : Symbol(thisArg, Decl(tslib.d.ts, --, --)) +>_arguments : Symbol(_arguments, Decl(tslib.d.ts, --, --)) +>P : Symbol(P, Decl(tslib.d.ts, --, --)) +>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>generator : Symbol(generator, Decl(tslib.d.ts, --, --)) +>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + diff --git a/tests/baselines/reference/importHelpersOutFile(target=es5).types b/tests/baselines/reference/importHelpersOutFile(target=es5).types new file mode 100644 index 0000000000000..9bf61793f476f --- /dev/null +++ b/tests/baselines/reference/importHelpersOutFile(target=es5).types @@ -0,0 +1,86 @@ +//// [tests/cases/compiler/importHelpersOutFile.ts] //// + +=== a.ts === +export class A { } +>A : A +> : ^ + +=== b.ts === +import { A } from "./a"; +>A : typeof A +> : ^^^^^^^^ + +export class B extends A { } +>B : B +> : ^ +>A : A +> : ^ + +=== c.ts === +import { A } from "./a"; +>A : typeof A +> : ^^^^^^^^ + +export class C extends A { } +>C : C +> : ^ +>A : A +> : ^ + +=== tslib.d.ts === +export declare function __extends(d: Function, b: Function): void; +>__extends : (d: Function, b: Function) => void +> : ^ ^^ ^^ ^^ ^^^^^ +>d : Function +> : ^^^^^^^^ +>b : Function +> : ^^^^^^^^ + +export declare function __assign(t: any, ...sources: any[]): any; +>__assign : (t: any, ...sources: any[]) => any +> : ^ ^^ ^^^^^ ^^ ^^^^^ +>t : any +> : ^^^ +>sources : any[] +> : ^^^^^ + +export declare function __decorate(decorators: Function[], target: any, key?: string | symbol, desc?: any): any; +>__decorate : (decorators: Function[], target: any, key?: string | symbol, desc?: any) => any +> : ^ ^^ ^^ ^^ ^^ ^^^ ^^ ^^^ ^^^^^ +>decorators : Function[] +> : ^^^^^^^^^^ +>target : any +> : ^^^ +>key : string | symbol +> : ^^^^^^^^^^^^^^^ +>desc : any +> : ^^^ + +export declare function __param(paramIndex: number, decorator: Function): Function; +>__param : (paramIndex: number, decorator: Function) => Function +> : ^ ^^ ^^ ^^ ^^^^^ +>paramIndex : number +> : ^^^^^^ +>decorator : Function +> : ^^^^^^^^ + +export declare function __metadata(metadataKey: any, metadataValue: any): Function; +>__metadata : (metadataKey: any, metadataValue: any) => Function +> : ^ ^^ ^^ ^^ ^^^^^ +>metadataKey : any +> : ^^^ +>metadataValue : any +> : ^^^ + +export declare function __awaiter(thisArg: any, _arguments: any, P: Function, generator: Function): any; +>__awaiter : (thisArg: any, _arguments: any, P: Function, generator: Function) => any +> : ^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>thisArg : any +> : ^^^ +>_arguments : any +> : ^^^ +>P : Function +> : ^^^^^^^^ +>generator : Function +> : ^^^^^^^^ + diff --git a/tests/baselines/reference/importHelpersSystem.errors.txt b/tests/baselines/reference/importHelpersSystem(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/importHelpersSystem.errors.txt rename to tests/baselines/reference/importHelpersSystem(target=es2015).errors.txt diff --git a/tests/baselines/reference/importHelpersSystem(target=es2015).js b/tests/baselines/reference/importHelpersSystem(target=es2015).js new file mode 100644 index 0000000000000..a1c387ed0935e --- /dev/null +++ b/tests/baselines/reference/importHelpersSystem(target=es2015).js @@ -0,0 +1,62 @@ +//// [tests/cases/compiler/importHelpersSystem.ts] //// + +//// [a.ts] +export class A { } + +//// [b.ts] +import { A } from "./a"; +export * from "./a"; +export class B extends A { } + +//// [tslib.d.ts] +export declare function __extends(d: Function, b: Function): void; +export declare function __assign(t: any, ...sources: any[]): any; +export declare function __decorate(decorators: Function[], target: any, key?: string | symbol, desc?: any): any; +export declare function __param(paramIndex: number, decorator: Function): Function; +export declare function __metadata(metadataKey: any, metadataValue: any): Function; +export declare function __awaiter(thisArg: any, _arguments: any, P: Function, generator: Function): any; + + +//// [a.js] +System.register([], function (exports_1, context_1) { + "use strict"; + var A; + var __moduleName = context_1 && context_1.id; + return { + setters: [], + execute: function () { + A = class A { + }; + exports_1("A", A); + } + }; +}); +//// [b.js] +System.register(["./a"], function (exports_1, context_1) { + "use strict"; + var a_1, B; + var __moduleName = context_1 && context_1.id; + var exportedNames_1 = { + "B": true + }; + function exportStar_1(m) { + var exports = {}; + for (var n in m) { + if (n !== "default" && !exportedNames_1.hasOwnProperty(n)) exports[n] = m[n]; + } + exports_1(exports); + } + return { + setters: [ + function (a_1_1) { + a_1 = a_1_1; + exportStar_1(a_1_1); + } + ], + execute: function () { + B = class B extends a_1.A { + }; + exports_1("B", B); + } + }; +}); diff --git a/tests/baselines/reference/importHelpersSystem.symbols b/tests/baselines/reference/importHelpersSystem(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/importHelpersSystem.symbols rename to tests/baselines/reference/importHelpersSystem(target=es2015).symbols diff --git a/tests/baselines/reference/importHelpersSystem.types b/tests/baselines/reference/importHelpersSystem(target=es2015).types similarity index 100% rename from tests/baselines/reference/importHelpersSystem.types rename to tests/baselines/reference/importHelpersSystem(target=es2015).types diff --git a/tests/baselines/reference/importHelpersSystem(target=es5).errors.txt b/tests/baselines/reference/importHelpersSystem(target=es5).errors.txt new file mode 100644 index 0000000000000..55667298e5b17 --- /dev/null +++ b/tests/baselines/reference/importHelpersSystem(target=es5).errors.txt @@ -0,0 +1,20 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== a.ts (0 errors) ==== + export class A { } + +==== b.ts (0 errors) ==== + import { A } from "./a"; + export * from "./a"; + export class B extends A { } + +==== tslib.d.ts (0 errors) ==== + export declare function __extends(d: Function, b: Function): void; + export declare function __assign(t: any, ...sources: any[]): any; + export declare function __decorate(decorators: Function[], target: any, key?: string | symbol, desc?: any): any; + export declare function __param(paramIndex: number, decorator: Function): Function; + export declare function __metadata(metadataKey: any, metadataValue: any): Function; + export declare function __awaiter(thisArg: any, _arguments: any, P: Function, generator: Function): any; + \ No newline at end of file diff --git a/tests/baselines/reference/importHelpersSystem.js b/tests/baselines/reference/importHelpersSystem(target=es5).js similarity index 100% rename from tests/baselines/reference/importHelpersSystem.js rename to tests/baselines/reference/importHelpersSystem(target=es5).js diff --git a/tests/baselines/reference/importHelpersSystem(target=es5).symbols b/tests/baselines/reference/importHelpersSystem(target=es5).symbols new file mode 100644 index 0000000000000..9fd9e24efe092 --- /dev/null +++ b/tests/baselines/reference/importHelpersSystem(target=es5).symbols @@ -0,0 +1,58 @@ +//// [tests/cases/compiler/importHelpersSystem.ts] //// + +=== a.ts === +export class A { } +>A : Symbol(A, Decl(a.ts, 0, 0)) + +=== b.ts === +import { A } from "./a"; +>A : Symbol(A, Decl(b.ts, 0, 8)) + +export * from "./a"; +export class B extends A { } +>B : Symbol(B, Decl(b.ts, 1, 20)) +>A : Symbol(A, Decl(b.ts, 0, 8)) + +=== tslib.d.ts === +export declare function __extends(d: Function, b: Function): void; +>__extends : Symbol(__extends, Decl(tslib.d.ts, --, --)) +>d : Symbol(d, Decl(tslib.d.ts, --, --)) +>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>b : Symbol(b, Decl(tslib.d.ts, --, --)) +>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + +export declare function __assign(t: any, ...sources: any[]): any; +>__assign : Symbol(__assign, Decl(tslib.d.ts, --, --)) +>t : Symbol(t, Decl(tslib.d.ts, --, --)) +>sources : Symbol(sources, Decl(tslib.d.ts, --, --)) + +export declare function __decorate(decorators: Function[], target: any, key?: string | symbol, desc?: any): any; +>__decorate : Symbol(__decorate, Decl(tslib.d.ts, --, --)) +>decorators : Symbol(decorators, Decl(tslib.d.ts, --, --)) +>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>target : Symbol(target, Decl(tslib.d.ts, --, --)) +>key : Symbol(key, Decl(tslib.d.ts, --, --)) +>desc : Symbol(desc, Decl(tslib.d.ts, --, --)) + +export declare function __param(paramIndex: number, decorator: Function): Function; +>__param : Symbol(__param, Decl(tslib.d.ts, --, --)) +>paramIndex : Symbol(paramIndex, Decl(tslib.d.ts, --, --)) +>decorator : Symbol(decorator, Decl(tslib.d.ts, --, --)) +>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + +export declare function __metadata(metadataKey: any, metadataValue: any): Function; +>__metadata : Symbol(__metadata, Decl(tslib.d.ts, --, --)) +>metadataKey : Symbol(metadataKey, Decl(tslib.d.ts, --, --)) +>metadataValue : Symbol(metadataValue, Decl(tslib.d.ts, --, --)) +>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + +export declare function __awaiter(thisArg: any, _arguments: any, P: Function, generator: Function): any; +>__awaiter : Symbol(__awaiter, Decl(tslib.d.ts, --, --)) +>thisArg : Symbol(thisArg, Decl(tslib.d.ts, --, --)) +>_arguments : Symbol(_arguments, Decl(tslib.d.ts, --, --)) +>P : Symbol(P, Decl(tslib.d.ts, --, --)) +>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>generator : Symbol(generator, Decl(tslib.d.ts, --, --)) +>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + diff --git a/tests/baselines/reference/importHelpersSystem(target=es5).types b/tests/baselines/reference/importHelpersSystem(target=es5).types new file mode 100644 index 0000000000000..270b9f92636b7 --- /dev/null +++ b/tests/baselines/reference/importHelpersSystem(target=es5).types @@ -0,0 +1,76 @@ +//// [tests/cases/compiler/importHelpersSystem.ts] //// + +=== a.ts === +export class A { } +>A : A +> : ^ + +=== b.ts === +import { A } from "./a"; +>A : typeof A +> : ^^^^^^^^ + +export * from "./a"; +export class B extends A { } +>B : B +> : ^ +>A : A +> : ^ + +=== tslib.d.ts === +export declare function __extends(d: Function, b: Function): void; +>__extends : (d: Function, b: Function) => void +> : ^ ^^ ^^ ^^ ^^^^^ +>d : Function +> : ^^^^^^^^ +>b : Function +> : ^^^^^^^^ + +export declare function __assign(t: any, ...sources: any[]): any; +>__assign : (t: any, ...sources: any[]) => any +> : ^ ^^ ^^^^^ ^^ ^^^^^ +>t : any +> : ^^^ +>sources : any[] +> : ^^^^^ + +export declare function __decorate(decorators: Function[], target: any, key?: string | symbol, desc?: any): any; +>__decorate : (decorators: Function[], target: any, key?: string | symbol, desc?: any) => any +> : ^ ^^ ^^ ^^ ^^ ^^^ ^^ ^^^ ^^^^^ +>decorators : Function[] +> : ^^^^^^^^^^ +>target : any +> : ^^^ +>key : string | symbol +> : ^^^^^^^^^^^^^^^ +>desc : any +> : ^^^ + +export declare function __param(paramIndex: number, decorator: Function): Function; +>__param : (paramIndex: number, decorator: Function) => Function +> : ^ ^^ ^^ ^^ ^^^^^ +>paramIndex : number +> : ^^^^^^ +>decorator : Function +> : ^^^^^^^^ + +export declare function __metadata(metadataKey: any, metadataValue: any): Function; +>__metadata : (metadataKey: any, metadataValue: any) => Function +> : ^ ^^ ^^ ^^ ^^^^^ +>metadataKey : any +> : ^^^ +>metadataValue : any +> : ^^^ + +export declare function __awaiter(thisArg: any, _arguments: any, P: Function, generator: Function): any; +>__awaiter : (thisArg: any, _arguments: any, P: Function, generator: Function) => any +> : ^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>thisArg : any +> : ^^^ +>_arguments : any +> : ^^^ +>P : Function +> : ^^^^^^^^ +>generator : Function +> : ^^^^^^^^ + diff --git a/tests/baselines/reference/inheritanceMemberAccessorOverridingMethod.errors.txt b/tests/baselines/reference/inheritanceMemberAccessorOverridingMethod(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/inheritanceMemberAccessorOverridingMethod.errors.txt rename to tests/baselines/reference/inheritanceMemberAccessorOverridingMethod(target=es2015).errors.txt diff --git a/tests/baselines/reference/inheritanceMemberAccessorOverridingMethod(target=es2015).js b/tests/baselines/reference/inheritanceMemberAccessorOverridingMethod(target=es2015).js new file mode 100644 index 0000000000000..902007e69e9b2 --- /dev/null +++ b/tests/baselines/reference/inheritanceMemberAccessorOverridingMethod(target=es2015).js @@ -0,0 +1,31 @@ +//// [tests/cases/compiler/inheritanceMemberAccessorOverridingMethod.ts] //// + +//// [inheritanceMemberAccessorOverridingMethod.ts] +class a { + x() { + return "20"; + } +} + +class b extends a { + get x() { + return () => "20"; + } + set x(aValue) { + + } +} + +//// [inheritanceMemberAccessorOverridingMethod.js] +class a { + x() { + return "20"; + } +} +class b extends a { + get x() { + return () => "20"; + } + set x(aValue) { + } +} diff --git a/tests/baselines/reference/inheritanceMemberAccessorOverridingMethod.symbols b/tests/baselines/reference/inheritanceMemberAccessorOverridingMethod(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/inheritanceMemberAccessorOverridingMethod.symbols rename to tests/baselines/reference/inheritanceMemberAccessorOverridingMethod(target=es2015).symbols diff --git a/tests/baselines/reference/inheritanceMemberAccessorOverridingMethod.types b/tests/baselines/reference/inheritanceMemberAccessorOverridingMethod(target=es2015).types similarity index 100% rename from tests/baselines/reference/inheritanceMemberAccessorOverridingMethod.types rename to tests/baselines/reference/inheritanceMemberAccessorOverridingMethod(target=es2015).types diff --git a/tests/baselines/reference/inheritanceMemberAccessorOverridingMethod(target=es5).errors.txt b/tests/baselines/reference/inheritanceMemberAccessorOverridingMethod(target=es5).errors.txt new file mode 100644 index 0000000000000..8add1737d85e5 --- /dev/null +++ b/tests/baselines/reference/inheritanceMemberAccessorOverridingMethod(target=es5).errors.txt @@ -0,0 +1,20 @@ +inheritanceMemberAccessorOverridingMethod.ts(8,9): error TS2423: Class 'a' defines instance member function 'x', but extended class 'b' defines it as instance member accessor. + + +==== inheritanceMemberAccessorOverridingMethod.ts (1 errors) ==== + class a { + x() { + return "20"; + } + } + + class b extends a { + get x() { + ~ +!!! error TS2423: Class 'a' defines instance member function 'x', but extended class 'b' defines it as instance member accessor. + return () => "20"; + } + set x(aValue) { + + } + } \ No newline at end of file diff --git a/tests/baselines/reference/inheritanceMemberAccessorOverridingMethod.js b/tests/baselines/reference/inheritanceMemberAccessorOverridingMethod(target=es5).js similarity index 100% rename from tests/baselines/reference/inheritanceMemberAccessorOverridingMethod.js rename to tests/baselines/reference/inheritanceMemberAccessorOverridingMethod(target=es5).js diff --git a/tests/baselines/reference/inheritanceMemberAccessorOverridingMethod(target=es5).symbols b/tests/baselines/reference/inheritanceMemberAccessorOverridingMethod(target=es5).symbols new file mode 100644 index 0000000000000..2304bf92672ff --- /dev/null +++ b/tests/baselines/reference/inheritanceMemberAccessorOverridingMethod(target=es5).symbols @@ -0,0 +1,28 @@ +//// [tests/cases/compiler/inheritanceMemberAccessorOverridingMethod.ts] //// + +=== inheritanceMemberAccessorOverridingMethod.ts === +class a { +>a : Symbol(a, Decl(inheritanceMemberAccessorOverridingMethod.ts, 0, 0)) + + x() { +>x : Symbol(a.x, Decl(inheritanceMemberAccessorOverridingMethod.ts, 0, 9)) + + return "20"; + } +} + +class b extends a { +>b : Symbol(b, Decl(inheritanceMemberAccessorOverridingMethod.ts, 4, 1)) +>a : Symbol(a, Decl(inheritanceMemberAccessorOverridingMethod.ts, 0, 0)) + + get x() { +>x : Symbol(b.x, Decl(inheritanceMemberAccessorOverridingMethod.ts, 6, 19), Decl(inheritanceMemberAccessorOverridingMethod.ts, 9, 5)) + + return () => "20"; + } + set x(aValue) { +>x : Symbol(b.x, Decl(inheritanceMemberAccessorOverridingMethod.ts, 6, 19), Decl(inheritanceMemberAccessorOverridingMethod.ts, 9, 5)) +>aValue : Symbol(aValue, Decl(inheritanceMemberAccessorOverridingMethod.ts, 10, 10)) + + } +} diff --git a/tests/baselines/reference/inheritanceMemberAccessorOverridingMethod(target=es5).types b/tests/baselines/reference/inheritanceMemberAccessorOverridingMethod(target=es5).types new file mode 100644 index 0000000000000..a6607dc9e96d4 --- /dev/null +++ b/tests/baselines/reference/inheritanceMemberAccessorOverridingMethod(target=es5).types @@ -0,0 +1,41 @@ +//// [tests/cases/compiler/inheritanceMemberAccessorOverridingMethod.ts] //// + +=== inheritanceMemberAccessorOverridingMethod.ts === +class a { +>a : a +> : ^ + + x() { +>x : () => string +> : ^^^^^^^^^^^^ + + return "20"; +>"20" : "20" +> : ^^^^ + } +} + +class b extends a { +>b : b +> : ^ +>a : a +> : ^ + + get x() { +>x : () => string +> : ^^^^^^^^^^^^ + + return () => "20"; +>() => "20" : () => string +> : ^^^^^^^^^^^^ +>"20" : "20" +> : ^^^^ + } + set x(aValue) { +>x : () => string +> : ^^^^^^^^^^^^ +>aValue : () => string +> : ^^^^^^^^^^^^ + + } +} diff --git a/tests/baselines/reference/initializePropertiesWithRenamedLet(target=es2015).js b/tests/baselines/reference/initializePropertiesWithRenamedLet(target=es2015).js new file mode 100644 index 0000000000000..c9b5141fef3db --- /dev/null +++ b/tests/baselines/reference/initializePropertiesWithRenamedLet(target=es2015).js @@ -0,0 +1,34 @@ +//// [tests/cases/compiler/initializePropertiesWithRenamedLet.ts] //// + +//// [initializePropertiesWithRenamedLet.ts] +var x0; +if (true) { + let x0; + var obj1 = { x0: x0 }; + var obj2 = { x0 }; +} + +var x, y, z; +if (true) { + let { x: x } = { x: 0 }; + let { y } = { y: 0 }; + let z; + ({ z: z } = { z: 0 }); + ({ z } = { z: 0 }); +} + +//// [initializePropertiesWithRenamedLet.js] +var x0; +if (true) { + let x0; + var obj1 = { x0: x0 }; + var obj2 = { x0 }; +} +var x, y, z; +if (true) { + let { x: x } = { x: 0 }; + let { y } = { y: 0 }; + let z; + ({ z: z } = { z: 0 }); + ({ z } = { z: 0 }); +} diff --git a/tests/baselines/reference/initializePropertiesWithRenamedLet.symbols b/tests/baselines/reference/initializePropertiesWithRenamedLet(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/initializePropertiesWithRenamedLet.symbols rename to tests/baselines/reference/initializePropertiesWithRenamedLet(target=es2015).symbols diff --git a/tests/baselines/reference/initializePropertiesWithRenamedLet.types b/tests/baselines/reference/initializePropertiesWithRenamedLet(target=es2015).types similarity index 100% rename from tests/baselines/reference/initializePropertiesWithRenamedLet.types rename to tests/baselines/reference/initializePropertiesWithRenamedLet(target=es2015).types diff --git a/tests/baselines/reference/initializePropertiesWithRenamedLet.js b/tests/baselines/reference/initializePropertiesWithRenamedLet(target=es5).js similarity index 100% rename from tests/baselines/reference/initializePropertiesWithRenamedLet.js rename to tests/baselines/reference/initializePropertiesWithRenamedLet(target=es5).js diff --git a/tests/baselines/reference/initializePropertiesWithRenamedLet(target=es5).symbols b/tests/baselines/reference/initializePropertiesWithRenamedLet(target=es5).symbols new file mode 100644 index 0000000000000..c0114f601dd2e --- /dev/null +++ b/tests/baselines/reference/initializePropertiesWithRenamedLet(target=es5).symbols @@ -0,0 +1,47 @@ +//// [tests/cases/compiler/initializePropertiesWithRenamedLet.ts] //// + +=== initializePropertiesWithRenamedLet.ts === +var x0; +>x0 : Symbol(x0, Decl(initializePropertiesWithRenamedLet.ts, 0, 3)) + +if (true) { + let x0; +>x0 : Symbol(x0, Decl(initializePropertiesWithRenamedLet.ts, 2, 7)) + + var obj1 = { x0: x0 }; +>obj1 : Symbol(obj1, Decl(initializePropertiesWithRenamedLet.ts, 3, 7)) +>x0 : Symbol(x0, Decl(initializePropertiesWithRenamedLet.ts, 3, 16)) +>x0 : Symbol(x0, Decl(initializePropertiesWithRenamedLet.ts, 2, 7)) + + var obj2 = { x0 }; +>obj2 : Symbol(obj2, Decl(initializePropertiesWithRenamedLet.ts, 4, 7)) +>x0 : Symbol(x0, Decl(initializePropertiesWithRenamedLet.ts, 4, 16)) +} + +var x, y, z; +>x : Symbol(x, Decl(initializePropertiesWithRenamedLet.ts, 7, 3)) +>y : Symbol(y, Decl(initializePropertiesWithRenamedLet.ts, 7, 6)) +>z : Symbol(z, Decl(initializePropertiesWithRenamedLet.ts, 7, 9)) + +if (true) { + let { x: x } = { x: 0 }; +>x : Symbol(x, Decl(initializePropertiesWithRenamedLet.ts, 9, 20)) +>x : Symbol(x, Decl(initializePropertiesWithRenamedLet.ts, 9, 9)) +>x : Symbol(x, Decl(initializePropertiesWithRenamedLet.ts, 9, 20)) + + let { y } = { y: 0 }; +>y : Symbol(y, Decl(initializePropertiesWithRenamedLet.ts, 10, 9)) +>y : Symbol(y, Decl(initializePropertiesWithRenamedLet.ts, 10, 17)) + + let z; +>z : Symbol(z, Decl(initializePropertiesWithRenamedLet.ts, 11, 7)) + + ({ z: z } = { z: 0 }); +>z : Symbol(z, Decl(initializePropertiesWithRenamedLet.ts, 12, 6)) +>z : Symbol(z, Decl(initializePropertiesWithRenamedLet.ts, 11, 7)) +>z : Symbol(z, Decl(initializePropertiesWithRenamedLet.ts, 12, 17)) + + ({ z } = { z: 0 }); +>z : Symbol(z, Decl(initializePropertiesWithRenamedLet.ts, 13, 6)) +>z : Symbol(z, Decl(initializePropertiesWithRenamedLet.ts, 13, 14)) +} diff --git a/tests/baselines/reference/initializePropertiesWithRenamedLet(target=es5).types b/tests/baselines/reference/initializePropertiesWithRenamedLet(target=es5).types new file mode 100644 index 0000000000000..69ccbd7b702d9 --- /dev/null +++ b/tests/baselines/reference/initializePropertiesWithRenamedLet(target=es5).types @@ -0,0 +1,94 @@ +//// [tests/cases/compiler/initializePropertiesWithRenamedLet.ts] //// + +=== initializePropertiesWithRenamedLet.ts === +var x0; +>x0 : any + +if (true) { +>true : true +> : ^^^^ + + let x0; +>x0 : any + + var obj1 = { x0: x0 }; +>obj1 : { x0: any; } +> : ^^^^^^^^^^^^ +>{ x0: x0 } : { x0: any; } +> : ^^^^^^^^^^^^ +>x0 : any +>x0 : any + + var obj2 = { x0 }; +>obj2 : { x0: any; } +> : ^^^^^^^^^^^^ +>{ x0 } : { x0: any; } +> : ^^^^^^^^^^^^ +>x0 : any +} + +var x, y, z; +>x : any +>y : any +>z : any + +if (true) { +>true : true +> : ^^^^ + + let { x: x } = { x: 0 }; +>x : any +> : ^^^ +>x : number +> : ^^^^^^ +>{ x: 0 } : { x: number; } +> : ^^^^^^^^^^^^^^ +>x : number +> : ^^^^^^ +>0 : 0 +> : ^ + + let { y } = { y: 0 }; +>y : number +> : ^^^^^^ +>{ y: 0 } : { y: number; } +> : ^^^^^^^^^^^^^^ +>y : number +> : ^^^^^^ +>0 : 0 +> : ^ + + let z; +>z : any + + ({ z: z } = { z: 0 }); +>({ z: z } = { z: 0 }) : { z: number; } +> : ^^^^^^^^^^^^^^ +>{ z: z } = { z: 0 } : { z: number; } +> : ^^^^^^^^^^^^^^ +>{ z: z } : { z: any; } +> : ^^^^^^^^^^^ +>z : any +>z : any +>{ z: 0 } : { z: number; } +> : ^^^^^^^^^^^^^^ +>z : number +> : ^^^^^^ +>0 : 0 +> : ^ + + ({ z } = { z: 0 }); +>({ z } = { z: 0 }) : { z: number; } +> : ^^^^^^^^^^^^^^ +>{ z } = { z: 0 } : { z: number; } +> : ^^^^^^^^^^^^^^ +>{ z } : { z: any; } +> : ^^^^^^^^^^^ +>z : any +>{ z: 0 } : { z: number; } +> : ^^^^^^^^^^^^^^ +>z : number +> : ^^^^^^ +>0 : 0 +> : ^ +} diff --git a/tests/baselines/reference/inlineSourceMap.js b/tests/baselines/reference/inlineSourceMap(target=es2015).js similarity index 100% rename from tests/baselines/reference/inlineSourceMap.js rename to tests/baselines/reference/inlineSourceMap(target=es2015).js diff --git a/tests/baselines/reference/inlineSourceMap.sourcemap.txt b/tests/baselines/reference/inlineSourceMap(target=es2015).sourcemap.txt similarity index 100% rename from tests/baselines/reference/inlineSourceMap.sourcemap.txt rename to tests/baselines/reference/inlineSourceMap(target=es2015).sourcemap.txt diff --git a/tests/baselines/reference/inlineSourceMap.symbols b/tests/baselines/reference/inlineSourceMap(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/inlineSourceMap.symbols rename to tests/baselines/reference/inlineSourceMap(target=es2015).symbols diff --git a/tests/baselines/reference/inlineSourceMap.types b/tests/baselines/reference/inlineSourceMap(target=es2015).types similarity index 100% rename from tests/baselines/reference/inlineSourceMap.types rename to tests/baselines/reference/inlineSourceMap(target=es2015).types diff --git a/tests/baselines/reference/inlineSourceMap(target=es5).js b/tests/baselines/reference/inlineSourceMap(target=es5).js new file mode 100644 index 0000000000000..de17791d8dc95 --- /dev/null +++ b/tests/baselines/reference/inlineSourceMap(target=es5).js @@ -0,0 +1,10 @@ +//// [tests/cases/compiler/inlineSourceMap.ts] //// + +//// [inlineSourceMap.ts] +var x = 0; +console.log(x); + +//// [inlineSourceMap.js] +var x = 0; +console.log(x); +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5saW5lU291cmNlTWFwLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW5saW5lU291cmNlTWFwLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLElBQUksQ0FBQyxHQUFHLENBQUMsQ0FBQztBQUNWLE9BQU8sQ0FBQyxHQUFHLENBQUMsQ0FBQyxDQUFDLENBQUMifQ== \ No newline at end of file diff --git a/tests/baselines/reference/inlineSourceMap(target=es5).sourcemap.txt b/tests/baselines/reference/inlineSourceMap(target=es5).sourcemap.txt new file mode 100644 index 0000000000000..3eaa409d2f558 --- /dev/null +++ b/tests/baselines/reference/inlineSourceMap(target=es5).sourcemap.txt @@ -0,0 +1,60 @@ +=================================================================== +JsFile: inlineSourceMap.js +mapUrl: data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5saW5lU291cmNlTWFwLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW5saW5lU291cmNlTWFwLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLElBQUksQ0FBQyxHQUFHLENBQUMsQ0FBQztBQUNWLE9BQU8sQ0FBQyxHQUFHLENBQUMsQ0FBQyxDQUFDLENBQUMifQ== +sourceRoot: +sources: inlineSourceMap.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:inlineSourceMap.js +sourceFile:inlineSourceMap.ts +------------------------------------------------------------------- +>>>var x = 0; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^^^^^-> +1 > +2 >var +3 > x +4 > = +5 > 0 +6 > ; +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(1, 5) + SourceIndex(0) +3 >Emitted(1, 6) Source(1, 6) + SourceIndex(0) +4 >Emitted(1, 9) Source(1, 9) + SourceIndex(0) +5 >Emitted(1, 10) Source(1, 10) + SourceIndex(0) +6 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +--- +>>>console.log(x); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > x +7 > ) +8 > ; +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(2, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(2, 16) + SourceIndex(0) +--- +>>>//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5saW5lU291cmNlTWFwLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW5saW5lU291cmNlTWFwLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLElBQUksQ0FBQyxHQUFHLENBQUMsQ0FBQztBQUNWLE9BQU8sQ0FBQyxHQUFHLENBQUMsQ0FBQyxDQUFDLENBQUMifQ== \ No newline at end of file diff --git a/tests/baselines/reference/inlineSourceMap(target=es5).symbols b/tests/baselines/reference/inlineSourceMap(target=es5).symbols new file mode 100644 index 0000000000000..962bf0d3834e9 --- /dev/null +++ b/tests/baselines/reference/inlineSourceMap(target=es5).symbols @@ -0,0 +1,12 @@ +//// [tests/cases/compiler/inlineSourceMap.ts] //// + +=== inlineSourceMap.ts === +var x = 0; +>x : Symbol(x, Decl(inlineSourceMap.ts, 0, 3)) + +console.log(x); +>console.log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) +>console : Symbol(console, Decl(lib.dom.d.ts, --, --)) +>log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) +>x : Symbol(x, Decl(inlineSourceMap.ts, 0, 3)) + diff --git a/tests/baselines/reference/inlineSourceMap(target=es5).types b/tests/baselines/reference/inlineSourceMap(target=es5).types new file mode 100644 index 0000000000000..07b245a8ae1c0 --- /dev/null +++ b/tests/baselines/reference/inlineSourceMap(target=es5).types @@ -0,0 +1,21 @@ +//// [tests/cases/compiler/inlineSourceMap.ts] //// + +=== inlineSourceMap.ts === +var x = 0; +>x : number +> : ^^^^^^ +>0 : 0 +> : ^ + +console.log(x); +>console.log(x) : void +> : ^^^^ +>console.log : (...data: any[]) => void +> : ^^^^ ^^ ^^^^^ +>console : Console +> : ^^^^^^^ +>log : (...data: any[]) => void +> : ^^^^ ^^ ^^^^^ +>x : number +> : ^^^^^^ + diff --git a/tests/baselines/reference/inlineSourceMap2.errors.txt b/tests/baselines/reference/inlineSourceMap2(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/inlineSourceMap2.errors.txt rename to tests/baselines/reference/inlineSourceMap2(target=es2015).errors.txt diff --git a/tests/baselines/reference/inlineSourceMap2.js b/tests/baselines/reference/inlineSourceMap2(target=es2015).js similarity index 100% rename from tests/baselines/reference/inlineSourceMap2.js rename to tests/baselines/reference/inlineSourceMap2(target=es2015).js diff --git a/tests/baselines/reference/inlineSourceMap2.sourcemap.txt b/tests/baselines/reference/inlineSourceMap2(target=es2015).sourcemap.txt similarity index 100% rename from tests/baselines/reference/inlineSourceMap2.sourcemap.txt rename to tests/baselines/reference/inlineSourceMap2(target=es2015).sourcemap.txt diff --git a/tests/baselines/reference/inlineSourceMap2.symbols b/tests/baselines/reference/inlineSourceMap2(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/inlineSourceMap2.symbols rename to tests/baselines/reference/inlineSourceMap2(target=es2015).symbols diff --git a/tests/baselines/reference/inlineSourceMap2.types b/tests/baselines/reference/inlineSourceMap2(target=es2015).types similarity index 100% rename from tests/baselines/reference/inlineSourceMap2.types rename to tests/baselines/reference/inlineSourceMap2(target=es2015).types diff --git a/tests/baselines/reference/inlineSourceMap2(target=es5).errors.txt b/tests/baselines/reference/inlineSourceMap2(target=es5).errors.txt new file mode 100644 index 0000000000000..a75327adb984e --- /dev/null +++ b/tests/baselines/reference/inlineSourceMap2(target=es5).errors.txt @@ -0,0 +1,14 @@ +error TS5053: Option 'mapRoot' cannot be specified with option 'inlineSourceMap'. +error TS5053: Option 'sourceMap' cannot be specified with option 'inlineSourceMap'. +error TS5101: Option 'outFile' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5053: Option 'mapRoot' cannot be specified with option 'inlineSourceMap'. +!!! error TS5053: Option 'sourceMap' cannot be specified with option 'inlineSourceMap'. +!!! error TS5101: Option 'outFile' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== inlineSourceMap2.ts (0 errors) ==== + // configuration errors + + var x = 0; + console.log(x); + \ No newline at end of file diff --git a/tests/baselines/reference/inlineSourceMap2(target=es5).js b/tests/baselines/reference/inlineSourceMap2(target=es5).js new file mode 100644 index 0000000000000..d5e14bac1f70f --- /dev/null +++ b/tests/baselines/reference/inlineSourceMap2(target=es5).js @@ -0,0 +1,14 @@ +//// [tests/cases/compiler/inlineSourceMap2.ts] //// + +//// [inlineSourceMap2.ts] +// configuration errors + +var x = 0; +console.log(x); + + +//// [outfile.js] +// configuration errors +var x = 0; +console.log(x); +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3V0ZmlsZS5qcyIsInNvdXJjZVJvb3QiOiJmaWxlOi8vL2ZvbGRlci8iLCJzb3VyY2VzIjpbImlubGluZVNvdXJjZU1hcDIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsdUJBQXVCO0FBRXZCLElBQUksQ0FBQyxHQUFHLENBQUMsQ0FBQztBQUNWLE9BQU8sQ0FBQyxHQUFHLENBQUMsQ0FBQyxDQUFDLENBQUMifQ== \ No newline at end of file diff --git a/tests/baselines/reference/inlineSourceMap2(target=es5).sourcemap.txt b/tests/baselines/reference/inlineSourceMap2(target=es5).sourcemap.txt new file mode 100644 index 0000000000000..5407acb05fd64 --- /dev/null +++ b/tests/baselines/reference/inlineSourceMap2(target=es5).sourcemap.txt @@ -0,0 +1,70 @@ +=================================================================== +JsFile: outfile.js +mapUrl: data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3V0ZmlsZS5qcyIsInNvdXJjZVJvb3QiOiJmaWxlOi8vL2ZvbGRlci8iLCJzb3VyY2VzIjpbImlubGluZVNvdXJjZU1hcDIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsdUJBQXVCO0FBRXZCLElBQUksQ0FBQyxHQUFHLENBQUMsQ0FBQztBQUNWLE9BQU8sQ0FBQyxHQUFHLENBQUMsQ0FBQyxDQUFDLENBQUMifQ== +sourceRoot: file:///folder/ +sources: inlineSourceMap2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:outfile.js +sourceFile:inlineSourceMap2.ts +------------------------------------------------------------------- +>>>// configuration errors +1 > +2 >^^^^^^^^^^^^^^^^^^^^^^^ +1 > +2 >// configuration errors +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 24) Source(1, 24) + SourceIndex(0) +--- +>>>var x = 0; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^^^^^-> +1 > + > + > +2 >var +3 > x +4 > = +5 > 0 +6 > ; +1 >Emitted(2, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(2, 5) Source(3, 5) + SourceIndex(0) +3 >Emitted(2, 6) Source(3, 6) + SourceIndex(0) +4 >Emitted(2, 9) Source(3, 9) + SourceIndex(0) +5 >Emitted(2, 10) Source(3, 10) + SourceIndex(0) +6 >Emitted(2, 11) Source(3, 11) + SourceIndex(0) +--- +>>>console.log(x); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > x +7 > ) +8 > ; +1->Emitted(3, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(4, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(4, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(4, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(4, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(4, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(4, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(4, 16) + SourceIndex(0) +--- +>>>//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3V0ZmlsZS5qcyIsInNvdXJjZVJvb3QiOiJmaWxlOi8vL2ZvbGRlci8iLCJzb3VyY2VzIjpbImlubGluZVNvdXJjZU1hcDIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsdUJBQXVCO0FBRXZCLElBQUksQ0FBQyxHQUFHLENBQUMsQ0FBQztBQUNWLE9BQU8sQ0FBQyxHQUFHLENBQUMsQ0FBQyxDQUFDLENBQUMifQ== \ No newline at end of file diff --git a/tests/baselines/reference/inlineSourceMap2(target=es5).symbols b/tests/baselines/reference/inlineSourceMap2(target=es5).symbols new file mode 100644 index 0000000000000..8cd650b50c377 --- /dev/null +++ b/tests/baselines/reference/inlineSourceMap2(target=es5).symbols @@ -0,0 +1,14 @@ +//// [tests/cases/compiler/inlineSourceMap2.ts] //// + +=== inlineSourceMap2.ts === +// configuration errors + +var x = 0; +>x : Symbol(x, Decl(inlineSourceMap2.ts, 2, 3)) + +console.log(x); +>console.log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) +>console : Symbol(console, Decl(lib.dom.d.ts, --, --)) +>log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) +>x : Symbol(x, Decl(inlineSourceMap2.ts, 2, 3)) + diff --git a/tests/baselines/reference/inlineSourceMap2(target=es5).types b/tests/baselines/reference/inlineSourceMap2(target=es5).types new file mode 100644 index 0000000000000..01e836108f883 --- /dev/null +++ b/tests/baselines/reference/inlineSourceMap2(target=es5).types @@ -0,0 +1,23 @@ +//// [tests/cases/compiler/inlineSourceMap2.ts] //// + +=== inlineSourceMap2.ts === +// configuration errors + +var x = 0; +>x : number +> : ^^^^^^ +>0 : 0 +> : ^ + +console.log(x); +>console.log(x) : void +> : ^^^^ +>console.log : (...data: any[]) => void +> : ^^^^ ^^ ^^^^^ +>console : Console +> : ^^^^^^^ +>log : (...data: any[]) => void +> : ^^^^ ^^ ^^^^^ +>x : number +> : ^^^^^^ + diff --git a/tests/baselines/reference/inlineSources.errors.txt b/tests/baselines/reference/inlineSources(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/inlineSources.errors.txt rename to tests/baselines/reference/inlineSources(target=es2015).errors.txt diff --git a/tests/baselines/reference/inlineSources.js b/tests/baselines/reference/inlineSources(target=es2015).js similarity index 100% rename from tests/baselines/reference/inlineSources.js rename to tests/baselines/reference/inlineSources(target=es2015).js diff --git a/tests/baselines/reference/inlineSources.js.map b/tests/baselines/reference/inlineSources(target=es2015).js.map similarity index 100% rename from tests/baselines/reference/inlineSources.js.map rename to tests/baselines/reference/inlineSources(target=es2015).js.map diff --git a/tests/baselines/reference/inlineSources.sourcemap.txt b/tests/baselines/reference/inlineSources(target=es2015).sourcemap.txt similarity index 100% rename from tests/baselines/reference/inlineSources.sourcemap.txt rename to tests/baselines/reference/inlineSources(target=es2015).sourcemap.txt diff --git a/tests/baselines/reference/inlineSources.symbols b/tests/baselines/reference/inlineSources(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/inlineSources.symbols rename to tests/baselines/reference/inlineSources(target=es2015).symbols diff --git a/tests/baselines/reference/inlineSources.types b/tests/baselines/reference/inlineSources(target=es2015).types similarity index 100% rename from tests/baselines/reference/inlineSources.types rename to tests/baselines/reference/inlineSources(target=es2015).types diff --git a/tests/baselines/reference/inlineSources2.errors.txt b/tests/baselines/reference/inlineSources(target=es5).errors.txt similarity index 100% rename from tests/baselines/reference/inlineSources2.errors.txt rename to tests/baselines/reference/inlineSources(target=es5).errors.txt diff --git a/tests/baselines/reference/inlineSources(target=es5).js b/tests/baselines/reference/inlineSources(target=es5).js new file mode 100644 index 0000000000000..5251c994b5c90 --- /dev/null +++ b/tests/baselines/reference/inlineSources(target=es5).js @@ -0,0 +1,17 @@ +//// [tests/cases/compiler/inlineSources.ts] //// + +//// [a.ts] +var a = 0; +console.log(a); + +//// [b.ts] +var b = 0; +console.log(b); + + +//// [out.js] +var a = 0; +console.log(a); +var b = 0; +console.log(b); +//# sourceMappingURL=out.js.map \ No newline at end of file diff --git a/tests/baselines/reference/inlineSources(target=es5).js.map b/tests/baselines/reference/inlineSources(target=es5).js.map new file mode 100644 index 0000000000000..584d695034f86 --- /dev/null +++ b/tests/baselines/reference/inlineSources(target=es5).js.map @@ -0,0 +1,3 @@ +//// [out.js.map] +{"version":3,"file":"out.js","sourceRoot":"","sources":["a.ts","b.ts"],"names":[],"mappings":"AAAA,IAAI,CAAC,GAAG,CAAC,CAAC;AACV,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACDf,IAAI,CAAC,GAAG,CAAC,CAAC;AACV,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC","sourcesContent":["var a = 0;\nconsole.log(a);\n","var b = 0;\nconsole.log(b);\n"]} +//// https://sokra.github.io/source-map-visualization#base64,dmFyIGEgPSAwOw0KY29uc29sZS5sb2coYSk7DQp2YXIgYiA9IDA7DQpjb25zb2xlLmxvZyhiKTsNCi8vIyBzb3VyY2VNYXBwaW5nVVJMPW91dC5qcy5tYXA=,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3V0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiYS50cyIsImIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsSUFBSSxDQUFDLEdBQUcsQ0FBQyxDQUFDO0FBQ1YsT0FBTyxDQUFDLEdBQUcsQ0FBQyxDQUFDLENBQUMsQ0FBQztBQ0RmLElBQUksQ0FBQyxHQUFHLENBQUMsQ0FBQztBQUNWLE9BQU8sQ0FBQyxHQUFHLENBQUMsQ0FBQyxDQUFDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJ2YXIgYSA9IDA7XG5jb25zb2xlLmxvZyhhKTtcbiIsInZhciBiID0gMDtcbmNvbnNvbGUubG9nKGIpO1xuIl19,dmFyIGEgPSAwOwpjb25zb2xlLmxvZyhhKTsK,dmFyIGIgPSAwOwpjb25zb2xlLmxvZyhiKTsK diff --git a/tests/baselines/reference/inlineSources(target=es5).sourcemap.txt b/tests/baselines/reference/inlineSources(target=es5).sourcemap.txt new file mode 100644 index 0000000000000..4325aa8cd87de --- /dev/null +++ b/tests/baselines/reference/inlineSources(target=es5).sourcemap.txt @@ -0,0 +1,113 @@ +=================================================================== +JsFile: out.js +mapUrl: out.js.map +sourceRoot: +sources: a.ts,b.ts +sourcesContent: ["var a = 0;\nconsole.log(a);\n","var b = 0;\nconsole.log(b);\n"] +=================================================================== +------------------------------------------------------------------- +emittedFile:out.js +sourceFile:a.ts +------------------------------------------------------------------- +>>>var a = 0; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^^^^^-> +1 > +2 >var +3 > a +4 > = +5 > 0 +6 > ; +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(1, 5) + SourceIndex(0) +3 >Emitted(1, 6) Source(1, 6) + SourceIndex(0) +4 >Emitted(1, 9) Source(1, 9) + SourceIndex(0) +5 >Emitted(1, 10) Source(1, 10) + SourceIndex(0) +6 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +--- +>>>console.log(a); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > a +7 > ) +8 > ; +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(2, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(2, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:out.js +sourceFile:b.ts +------------------------------------------------------------------- +>>>var b = 0; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^^^^^-> +1 > +2 >var +3 > b +4 > = +5 > 0 +6 > ; +1 >Emitted(3, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 5) Source(1, 5) + SourceIndex(1) +3 >Emitted(3, 6) Source(1, 6) + SourceIndex(1) +4 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) +5 >Emitted(3, 10) Source(1, 10) + SourceIndex(1) +6 >Emitted(3, 11) Source(1, 11) + SourceIndex(1) +--- +>>>console.log(b); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^^^^^^^^^^^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > b +7 > ) +8 > ; +1->Emitted(4, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(2, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(2, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(2, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(2, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(2, 14) + SourceIndex(1) +7 >Emitted(4, 15) Source(2, 15) + SourceIndex(1) +8 >Emitted(4, 16) Source(2, 16) + SourceIndex(1) +--- +>>>//# sourceMappingURL=out.js.map \ No newline at end of file diff --git a/tests/baselines/reference/inlineSources(target=es5).symbols b/tests/baselines/reference/inlineSources(target=es5).symbols new file mode 100644 index 0000000000000..5a31c811cc9ed --- /dev/null +++ b/tests/baselines/reference/inlineSources(target=es5).symbols @@ -0,0 +1,22 @@ +//// [tests/cases/compiler/inlineSources.ts] //// + +=== a.ts === +var a = 0; +>a : Symbol(a, Decl(a.ts, 0, 3)) + +console.log(a); +>console.log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) +>console : Symbol(console, Decl(lib.dom.d.ts, --, --)) +>log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) +>a : Symbol(a, Decl(a.ts, 0, 3)) + +=== b.ts === +var b = 0; +>b : Symbol(b, Decl(b.ts, 0, 3)) + +console.log(b); +>console.log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) +>console : Symbol(console, Decl(lib.dom.d.ts, --, --)) +>log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) +>b : Symbol(b, Decl(b.ts, 0, 3)) + diff --git a/tests/baselines/reference/inlineSources(target=es5).types b/tests/baselines/reference/inlineSources(target=es5).types new file mode 100644 index 0000000000000..f9de0b9632fda --- /dev/null +++ b/tests/baselines/reference/inlineSources(target=es5).types @@ -0,0 +1,40 @@ +//// [tests/cases/compiler/inlineSources.ts] //// + +=== a.ts === +var a = 0; +>a : number +> : ^^^^^^ +>0 : 0 +> : ^ + +console.log(a); +>console.log(a) : void +> : ^^^^ +>console.log : (...data: any[]) => void +> : ^^^^ ^^ ^^^^^ +>console : Console +> : ^^^^^^^ +>log : (...data: any[]) => void +> : ^^^^ ^^ ^^^^^ +>a : number +> : ^^^^^^ + +=== b.ts === +var b = 0; +>b : number +> : ^^^^^^ +>0 : 0 +> : ^ + +console.log(b); +>console.log(b) : void +> : ^^^^ +>console.log : (...data: any[]) => void +> : ^^^^ ^^ ^^^^^ +>console : Console +> : ^^^^^^^ +>log : (...data: any[]) => void +> : ^^^^ ^^ ^^^^^ +>b : number +> : ^^^^^^ + diff --git a/tests/baselines/reference/inlineSources2(target=es2015).errors.txt b/tests/baselines/reference/inlineSources2(target=es2015).errors.txt new file mode 100644 index 0000000000000..00080a5469031 --- /dev/null +++ b/tests/baselines/reference/inlineSources2(target=es2015).errors.txt @@ -0,0 +1,12 @@ +error TS5101: Option 'outFile' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5101: Option 'outFile' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== a.ts (0 errors) ==== + var a = 0; + console.log(a); + +==== b.ts (0 errors) ==== + var b = 0; + console.log(b); + \ No newline at end of file diff --git a/tests/baselines/reference/inlineSources2.js b/tests/baselines/reference/inlineSources2(target=es2015).js similarity index 100% rename from tests/baselines/reference/inlineSources2.js rename to tests/baselines/reference/inlineSources2(target=es2015).js diff --git a/tests/baselines/reference/inlineSources2.sourcemap.txt b/tests/baselines/reference/inlineSources2(target=es2015).sourcemap.txt similarity index 100% rename from tests/baselines/reference/inlineSources2.sourcemap.txt rename to tests/baselines/reference/inlineSources2(target=es2015).sourcemap.txt diff --git a/tests/baselines/reference/inlineSources2.symbols b/tests/baselines/reference/inlineSources2(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/inlineSources2.symbols rename to tests/baselines/reference/inlineSources2(target=es2015).symbols diff --git a/tests/baselines/reference/inlineSources2.types b/tests/baselines/reference/inlineSources2(target=es2015).types similarity index 100% rename from tests/baselines/reference/inlineSources2.types rename to tests/baselines/reference/inlineSources2(target=es2015).types diff --git a/tests/baselines/reference/inlineSources2(target=es5).errors.txt b/tests/baselines/reference/inlineSources2(target=es5).errors.txt new file mode 100644 index 0000000000000..00080a5469031 --- /dev/null +++ b/tests/baselines/reference/inlineSources2(target=es5).errors.txt @@ -0,0 +1,12 @@ +error TS5101: Option 'outFile' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5101: Option 'outFile' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== a.ts (0 errors) ==== + var a = 0; + console.log(a); + +==== b.ts (0 errors) ==== + var b = 0; + console.log(b); + \ No newline at end of file diff --git a/tests/baselines/reference/inlineSources2(target=es5).js b/tests/baselines/reference/inlineSources2(target=es5).js new file mode 100644 index 0000000000000..14658a64251af --- /dev/null +++ b/tests/baselines/reference/inlineSources2(target=es5).js @@ -0,0 +1,17 @@ +//// [tests/cases/compiler/inlineSources2.ts] //// + +//// [a.ts] +var a = 0; +console.log(a); + +//// [b.ts] +var b = 0; +console.log(b); + + +//// [out.js] +var a = 0; +console.log(a); +var b = 0; +console.log(b); +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3V0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiYS50cyIsImIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsSUFBSSxDQUFDLEdBQUcsQ0FBQyxDQUFDO0FBQ1YsT0FBTyxDQUFDLEdBQUcsQ0FBQyxDQUFDLENBQUMsQ0FBQztBQ0RmLElBQUksQ0FBQyxHQUFHLENBQUMsQ0FBQztBQUNWLE9BQU8sQ0FBQyxHQUFHLENBQUMsQ0FBQyxDQUFDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJ2YXIgYSA9IDA7XG5jb25zb2xlLmxvZyhhKTtcbiIsInZhciBiID0gMDtcbmNvbnNvbGUubG9nKGIpO1xuIl19 \ No newline at end of file diff --git a/tests/baselines/reference/inlineSources2(target=es5).sourcemap.txt b/tests/baselines/reference/inlineSources2(target=es5).sourcemap.txt new file mode 100644 index 0000000000000..7b807de6076db --- /dev/null +++ b/tests/baselines/reference/inlineSources2(target=es5).sourcemap.txt @@ -0,0 +1,113 @@ +=================================================================== +JsFile: out.js +mapUrl: data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3V0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiYS50cyIsImIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsSUFBSSxDQUFDLEdBQUcsQ0FBQyxDQUFDO0FBQ1YsT0FBTyxDQUFDLEdBQUcsQ0FBQyxDQUFDLENBQUMsQ0FBQztBQ0RmLElBQUksQ0FBQyxHQUFHLENBQUMsQ0FBQztBQUNWLE9BQU8sQ0FBQyxHQUFHLENBQUMsQ0FBQyxDQUFDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJ2YXIgYSA9IDA7XG5jb25zb2xlLmxvZyhhKTtcbiIsInZhciBiID0gMDtcbmNvbnNvbGUubG9nKGIpO1xuIl19 +sourceRoot: +sources: a.ts,b.ts +sourcesContent: ["var a = 0;\nconsole.log(a);\n","var b = 0;\nconsole.log(b);\n"] +=================================================================== +------------------------------------------------------------------- +emittedFile:out.js +sourceFile:a.ts +------------------------------------------------------------------- +>>>var a = 0; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^^^^^-> +1 > +2 >var +3 > a +4 > = +5 > 0 +6 > ; +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(1, 5) + SourceIndex(0) +3 >Emitted(1, 6) Source(1, 6) + SourceIndex(0) +4 >Emitted(1, 9) Source(1, 9) + SourceIndex(0) +5 >Emitted(1, 10) Source(1, 10) + SourceIndex(0) +6 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +--- +>>>console.log(a); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > a +7 > ) +8 > ; +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(2, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(2, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:out.js +sourceFile:b.ts +------------------------------------------------------------------- +>>>var b = 0; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^^^^^-> +1 > +2 >var +3 > b +4 > = +5 > 0 +6 > ; +1 >Emitted(3, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 5) Source(1, 5) + SourceIndex(1) +3 >Emitted(3, 6) Source(1, 6) + SourceIndex(1) +4 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) +5 >Emitted(3, 10) Source(1, 10) + SourceIndex(1) +6 >Emitted(3, 11) Source(1, 11) + SourceIndex(1) +--- +>>>console.log(b); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > b +7 > ) +8 > ; +1->Emitted(4, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(2, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(2, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(2, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(2, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(2, 14) + SourceIndex(1) +7 >Emitted(4, 15) Source(2, 15) + SourceIndex(1) +8 >Emitted(4, 16) Source(2, 16) + SourceIndex(1) +--- +>>>//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3V0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiYS50cyIsImIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsSUFBSSxDQUFDLEdBQUcsQ0FBQyxDQUFDO0FBQ1YsT0FBTyxDQUFDLEdBQUcsQ0FBQyxDQUFDLENBQUMsQ0FBQztBQ0RmLElBQUksQ0FBQyxHQUFHLENBQUMsQ0FBQztBQUNWLE9BQU8sQ0FBQyxHQUFHLENBQUMsQ0FBQyxDQUFDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJ2YXIgYSA9IDA7XG5jb25zb2xlLmxvZyhhKTtcbiIsInZhciBiID0gMDtcbmNvbnNvbGUubG9nKGIpO1xuIl19 \ No newline at end of file diff --git a/tests/baselines/reference/inlineSources2(target=es5).symbols b/tests/baselines/reference/inlineSources2(target=es5).symbols new file mode 100644 index 0000000000000..9519a2aa4a501 --- /dev/null +++ b/tests/baselines/reference/inlineSources2(target=es5).symbols @@ -0,0 +1,22 @@ +//// [tests/cases/compiler/inlineSources2.ts] //// + +=== a.ts === +var a = 0; +>a : Symbol(a, Decl(a.ts, 0, 3)) + +console.log(a); +>console.log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) +>console : Symbol(console, Decl(lib.dom.d.ts, --, --)) +>log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) +>a : Symbol(a, Decl(a.ts, 0, 3)) + +=== b.ts === +var b = 0; +>b : Symbol(b, Decl(b.ts, 0, 3)) + +console.log(b); +>console.log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) +>console : Symbol(console, Decl(lib.dom.d.ts, --, --)) +>log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) +>b : Symbol(b, Decl(b.ts, 0, 3)) + diff --git a/tests/baselines/reference/inlineSources2(target=es5).types b/tests/baselines/reference/inlineSources2(target=es5).types new file mode 100644 index 0000000000000..a11aee9030d6b --- /dev/null +++ b/tests/baselines/reference/inlineSources2(target=es5).types @@ -0,0 +1,40 @@ +//// [tests/cases/compiler/inlineSources2.ts] //// + +=== a.ts === +var a = 0; +>a : number +> : ^^^^^^ +>0 : 0 +> : ^ + +console.log(a); +>console.log(a) : void +> : ^^^^ +>console.log : (...data: any[]) => void +> : ^^^^ ^^ ^^^^^ +>console : Console +> : ^^^^^^^ +>log : (...data: any[]) => void +> : ^^^^ ^^ ^^^^^ +>a : number +> : ^^^^^^ + +=== b.ts === +var b = 0; +>b : number +> : ^^^^^^ +>0 : 0 +> : ^ + +console.log(b); +>console.log(b) : void +> : ^^^^ +>console.log : (...data: any[]) => void +> : ^^^^ ^^ ^^^^^ +>console : Console +> : ^^^^^^^ +>log : (...data: any[]) => void +> : ^^^^ ^^ ^^^^^ +>b : number +> : ^^^^^^ + diff --git a/tests/baselines/reference/intlNumberFormatES5UseGrouping.errors.txt b/tests/baselines/reference/intlNumberFormatES5UseGrouping(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/intlNumberFormatES5UseGrouping.errors.txt rename to tests/baselines/reference/intlNumberFormatES5UseGrouping(target=es2015).errors.txt diff --git a/tests/baselines/reference/intlNumberFormatES5UseGrouping(target=es2015).js b/tests/baselines/reference/intlNumberFormatES5UseGrouping(target=es2015).js new file mode 100644 index 0000000000000..387d5779c281b --- /dev/null +++ b/tests/baselines/reference/intlNumberFormatES5UseGrouping(target=es2015).js @@ -0,0 +1,16 @@ +//// [tests/cases/conformance/es2023/intlNumberFormatES5UseGrouping.ts] //// + +//// [intlNumberFormatES5UseGrouping.ts] +new Intl.NumberFormat('en-GB', { useGrouping: true }); +new Intl.NumberFormat('en-GB', { useGrouping: 'true' }); // expect error +new Intl.NumberFormat('en-GB', { useGrouping: 'always' }); // expect error + +const { useGrouping } = new Intl.NumberFormat('en-GB').resolvedOptions(); + + +//// [intlNumberFormatES5UseGrouping.js] +"use strict"; +new Intl.NumberFormat('en-GB', { useGrouping: true }); +new Intl.NumberFormat('en-GB', { useGrouping: 'true' }); // expect error +new Intl.NumberFormat('en-GB', { useGrouping: 'always' }); // expect error +const { useGrouping } = new Intl.NumberFormat('en-GB').resolvedOptions(); diff --git a/tests/baselines/reference/intlNumberFormatES5UseGrouping.symbols b/tests/baselines/reference/intlNumberFormatES5UseGrouping(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/intlNumberFormatES5UseGrouping.symbols rename to tests/baselines/reference/intlNumberFormatES5UseGrouping(target=es2015).symbols diff --git a/tests/baselines/reference/intlNumberFormatES5UseGrouping.types b/tests/baselines/reference/intlNumberFormatES5UseGrouping(target=es2015).types similarity index 100% rename from tests/baselines/reference/intlNumberFormatES5UseGrouping.types rename to tests/baselines/reference/intlNumberFormatES5UseGrouping(target=es2015).types diff --git a/tests/baselines/reference/intlNumberFormatES5UseGrouping(target=es5).errors.txt b/tests/baselines/reference/intlNumberFormatES5UseGrouping(target=es5).errors.txt new file mode 100644 index 0000000000000..cd22de47d6941 --- /dev/null +++ b/tests/baselines/reference/intlNumberFormatES5UseGrouping(target=es5).errors.txt @@ -0,0 +1,15 @@ +intlNumberFormatES5UseGrouping.ts(2,34): error TS2322: Type 'string' is not assignable to type 'boolean | undefined'. +intlNumberFormatES5UseGrouping.ts(3,34): error TS2322: Type 'string' is not assignable to type 'boolean | undefined'. + + +==== intlNumberFormatES5UseGrouping.ts (2 errors) ==== + new Intl.NumberFormat('en-GB', { useGrouping: true }); + new Intl.NumberFormat('en-GB', { useGrouping: 'true' }); // expect error + ~~~~~~~~~~~ +!!! error TS2322: Type 'string' is not assignable to type 'boolean | undefined'. + new Intl.NumberFormat('en-GB', { useGrouping: 'always' }); // expect error + ~~~~~~~~~~~ +!!! error TS2322: Type 'string' is not assignable to type 'boolean | undefined'. + + const { useGrouping } = new Intl.NumberFormat('en-GB').resolvedOptions(); + \ No newline at end of file diff --git a/tests/baselines/reference/intlNumberFormatES5UseGrouping.js b/tests/baselines/reference/intlNumberFormatES5UseGrouping(target=es5).js similarity index 100% rename from tests/baselines/reference/intlNumberFormatES5UseGrouping.js rename to tests/baselines/reference/intlNumberFormatES5UseGrouping(target=es5).js diff --git a/tests/baselines/reference/intlNumberFormatES5UseGrouping(target=es5).symbols b/tests/baselines/reference/intlNumberFormatES5UseGrouping(target=es5).symbols new file mode 100644 index 0000000000000..ef972a7c1efbb --- /dev/null +++ b/tests/baselines/reference/intlNumberFormatES5UseGrouping(target=es5).symbols @@ -0,0 +1,29 @@ +//// [tests/cases/conformance/es2023/intlNumberFormatES5UseGrouping.ts] //// + +=== intlNumberFormatES5UseGrouping.ts === +new Intl.NumberFormat('en-GB', { useGrouping: true }); +>Intl.NumberFormat : Symbol(Intl.NumberFormat, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>Intl : Symbol(Intl, Decl(lib.es5.d.ts, --, --)) +>NumberFormat : Symbol(Intl.NumberFormat, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>useGrouping : Symbol(useGrouping, Decl(intlNumberFormatES5UseGrouping.ts, 0, 32)) + +new Intl.NumberFormat('en-GB', { useGrouping: 'true' }); // expect error +>Intl.NumberFormat : Symbol(Intl.NumberFormat, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>Intl : Symbol(Intl, Decl(lib.es5.d.ts, --, --)) +>NumberFormat : Symbol(Intl.NumberFormat, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>useGrouping : Symbol(useGrouping, Decl(intlNumberFormatES5UseGrouping.ts, 1, 32)) + +new Intl.NumberFormat('en-GB', { useGrouping: 'always' }); // expect error +>Intl.NumberFormat : Symbol(Intl.NumberFormat, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>Intl : Symbol(Intl, Decl(lib.es5.d.ts, --, --)) +>NumberFormat : Symbol(Intl.NumberFormat, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>useGrouping : Symbol(useGrouping, Decl(intlNumberFormatES5UseGrouping.ts, 2, 32)) + +const { useGrouping } = new Intl.NumberFormat('en-GB').resolvedOptions(); +>useGrouping : Symbol(useGrouping, Decl(intlNumberFormatES5UseGrouping.ts, 4, 7)) +>new Intl.NumberFormat('en-GB').resolvedOptions : Symbol(Intl.NumberFormat.resolvedOptions, Decl(lib.es5.d.ts, --, --)) +>Intl.NumberFormat : Symbol(Intl.NumberFormat, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>Intl : Symbol(Intl, Decl(lib.es5.d.ts, --, --)) +>NumberFormat : Symbol(Intl.NumberFormat, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>resolvedOptions : Symbol(Intl.NumberFormat.resolvedOptions, Decl(lib.es5.d.ts, --, --)) + diff --git a/tests/baselines/reference/intlNumberFormatES5UseGrouping(target=es5).types b/tests/baselines/reference/intlNumberFormatES5UseGrouping(target=es5).types new file mode 100644 index 0000000000000..0e3d3dc849646 --- /dev/null +++ b/tests/baselines/reference/intlNumberFormatES5UseGrouping(target=es5).types @@ -0,0 +1,77 @@ +//// [tests/cases/conformance/es2023/intlNumberFormatES5UseGrouping.ts] //// + +=== intlNumberFormatES5UseGrouping.ts === +new Intl.NumberFormat('en-GB', { useGrouping: true }); +>new Intl.NumberFormat('en-GB', { useGrouping: true }) : Intl.NumberFormat +> : ^^^^^^^^^^^^^^^^^ +>Intl.NumberFormat : Intl.NumberFormatConstructor +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>Intl : typeof Intl +> : ^^^^^^^^^^^ +>NumberFormat : Intl.NumberFormatConstructor +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>'en-GB' : "en-GB" +> : ^^^^^^^ +>{ useGrouping: true } : { useGrouping: true; } +> : ^^^^^^^^^^^^^^^^^^^^^^ +>useGrouping : true +> : ^^^^ +>true : true +> : ^^^^ + +new Intl.NumberFormat('en-GB', { useGrouping: 'true' }); // expect error +>new Intl.NumberFormat('en-GB', { useGrouping: 'true' }) : Intl.NumberFormat +> : ^^^^^^^^^^^^^^^^^ +>Intl.NumberFormat : Intl.NumberFormatConstructor +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>Intl : typeof Intl +> : ^^^^^^^^^^^ +>NumberFormat : Intl.NumberFormatConstructor +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>'en-GB' : "en-GB" +> : ^^^^^^^ +>{ useGrouping: 'true' } : { useGrouping: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^ +>useGrouping : string +> : ^^^^^^ +>'true' : "true" +> : ^^^^^^ + +new Intl.NumberFormat('en-GB', { useGrouping: 'always' }); // expect error +>new Intl.NumberFormat('en-GB', { useGrouping: 'always' }) : Intl.NumberFormat +> : ^^^^^^^^^^^^^^^^^ +>Intl.NumberFormat : Intl.NumberFormatConstructor +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>Intl : typeof Intl +> : ^^^^^^^^^^^ +>NumberFormat : Intl.NumberFormatConstructor +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>'en-GB' : "en-GB" +> : ^^^^^^^ +>{ useGrouping: 'always' } : { useGrouping: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^ +>useGrouping : string +> : ^^^^^^ +>'always' : "always" +> : ^^^^^^^^ + +const { useGrouping } = new Intl.NumberFormat('en-GB').resolvedOptions(); +>useGrouping : boolean +> : ^^^^^^^ +>new Intl.NumberFormat('en-GB').resolvedOptions() : Intl.ResolvedNumberFormatOptions +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>new Intl.NumberFormat('en-GB').resolvedOptions : () => Intl.ResolvedNumberFormatOptions +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>new Intl.NumberFormat('en-GB') : Intl.NumberFormat +> : ^^^^^^^^^^^^^^^^^ +>Intl.NumberFormat : Intl.NumberFormatConstructor +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>Intl : typeof Intl +> : ^^^^^^^^^^^ +>NumberFormat : Intl.NumberFormatConstructor +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>'en-GB' : "en-GB" +> : ^^^^^^^ +>resolvedOptions : () => Intl.ResolvedNumberFormatOptions +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + diff --git a/tests/baselines/reference/invalidNewTarget.es5.errors.txt b/tests/baselines/reference/invalidNewTarget.es5(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/invalidNewTarget.es5.errors.txt rename to tests/baselines/reference/invalidNewTarget.es5(target=es2015).errors.txt diff --git a/tests/baselines/reference/invalidNewTarget.es5(target=es2015).js b/tests/baselines/reference/invalidNewTarget.es5(target=es2015).js new file mode 100644 index 0000000000000..e6c3c8aa2141d --- /dev/null +++ b/tests/baselines/reference/invalidNewTarget.es5(target=es2015).js @@ -0,0 +1,52 @@ +//// [tests/cases/conformance/es6/newTarget/invalidNewTarget.es5.ts] //// + +//// [invalidNewTarget.es5.ts] +const a = new.target; +const b = () => new.target; + +class C { + [new.target]() { } + c() { return new.target; } + get d() { return new.target; } + set e(_) { _ = new.target; } + f = () => new.target; + + static [new.target]() { } + static g() { return new.target; } + static get h() { return new.target; } + static set i(_) { _ = new.target; } + static j = () => new.target; +} + +const O = { + [new.target]: undefined, + k() { return new.target; }, + get l() { return new.target; }, + set m(_) { _ = new.target; }, + n: new.target, +}; + +//// [invalidNewTarget.es5.js] +const a = new.target; +const b = () => new.target; +class C { + constructor() { + this.f = () => new.target; + } + [new.target]() { } + c() { return new.target; } + get d() { return new.target; } + set e(_) { _ = new.target; } + static [new.target]() { } + static g() { return new.target; } + static get h() { return new.target; } + static set i(_) { _ = new.target; } +} +C.j = () => new.target; +const O = { + [new.target]: undefined, + k() { return new.target; }, + get l() { return new.target; }, + set m(_) { _ = new.target; }, + n: new.target, +}; diff --git a/tests/baselines/reference/invalidNewTarget.es5.symbols b/tests/baselines/reference/invalidNewTarget.es5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/invalidNewTarget.es5.symbols rename to tests/baselines/reference/invalidNewTarget.es5(target=es2015).symbols diff --git a/tests/baselines/reference/invalidNewTarget.es5.types b/tests/baselines/reference/invalidNewTarget.es5(target=es2015).types similarity index 100% rename from tests/baselines/reference/invalidNewTarget.es5.types rename to tests/baselines/reference/invalidNewTarget.es5(target=es2015).types diff --git a/tests/baselines/reference/invalidNewTarget.es5(target=es5).errors.txt b/tests/baselines/reference/invalidNewTarget.es5(target=es5).errors.txt new file mode 100644 index 0000000000000..f627e1ab3d68c --- /dev/null +++ b/tests/baselines/reference/invalidNewTarget.es5(target=es5).errors.txt @@ -0,0 +1,78 @@ +invalidNewTarget.es5.ts(1,11): error TS17013: Meta-property 'new.target' is only allowed in the body of a function declaration, function expression, or constructor. +invalidNewTarget.es5.ts(2,17): error TS17013: Meta-property 'new.target' is only allowed in the body of a function declaration, function expression, or constructor. +invalidNewTarget.es5.ts(5,6): error TS17013: Meta-property 'new.target' is only allowed in the body of a function declaration, function expression, or constructor. +invalidNewTarget.es5.ts(6,18): error TS17013: Meta-property 'new.target' is only allowed in the body of a function declaration, function expression, or constructor. +invalidNewTarget.es5.ts(7,22): error TS17013: Meta-property 'new.target' is only allowed in the body of a function declaration, function expression, or constructor. +invalidNewTarget.es5.ts(8,20): error TS17013: Meta-property 'new.target' is only allowed in the body of a function declaration, function expression, or constructor. +invalidNewTarget.es5.ts(9,15): error TS17013: Meta-property 'new.target' is only allowed in the body of a function declaration, function expression, or constructor. +invalidNewTarget.es5.ts(11,13): error TS17013: Meta-property 'new.target' is only allowed in the body of a function declaration, function expression, or constructor. +invalidNewTarget.es5.ts(12,25): error TS17013: Meta-property 'new.target' is only allowed in the body of a function declaration, function expression, or constructor. +invalidNewTarget.es5.ts(13,29): error TS17013: Meta-property 'new.target' is only allowed in the body of a function declaration, function expression, or constructor. +invalidNewTarget.es5.ts(14,27): error TS17013: Meta-property 'new.target' is only allowed in the body of a function declaration, function expression, or constructor. +invalidNewTarget.es5.ts(15,22): error TS17013: Meta-property 'new.target' is only allowed in the body of a function declaration, function expression, or constructor. +invalidNewTarget.es5.ts(19,6): error TS17013: Meta-property 'new.target' is only allowed in the body of a function declaration, function expression, or constructor. +invalidNewTarget.es5.ts(20,18): error TS17013: Meta-property 'new.target' is only allowed in the body of a function declaration, function expression, or constructor. +invalidNewTarget.es5.ts(21,22): error TS17013: Meta-property 'new.target' is only allowed in the body of a function declaration, function expression, or constructor. +invalidNewTarget.es5.ts(22,20): error TS17013: Meta-property 'new.target' is only allowed in the body of a function declaration, function expression, or constructor. +invalidNewTarget.es5.ts(23,8): error TS17013: Meta-property 'new.target' is only allowed in the body of a function declaration, function expression, or constructor. + + +==== invalidNewTarget.es5.ts (17 errors) ==== + const a = new.target; + ~~~~~~~~~~ +!!! error TS17013: Meta-property 'new.target' is only allowed in the body of a function declaration, function expression, or constructor. + const b = () => new.target; + ~~~~~~~~~~ +!!! error TS17013: Meta-property 'new.target' is only allowed in the body of a function declaration, function expression, or constructor. + + class C { + [new.target]() { } + ~~~~~~~~~~ +!!! error TS17013: Meta-property 'new.target' is only allowed in the body of a function declaration, function expression, or constructor. + c() { return new.target; } + ~~~~~~~~~~ +!!! error TS17013: Meta-property 'new.target' is only allowed in the body of a function declaration, function expression, or constructor. + get d() { return new.target; } + ~~~~~~~~~~ +!!! error TS17013: Meta-property 'new.target' is only allowed in the body of a function declaration, function expression, or constructor. + set e(_) { _ = new.target; } + ~~~~~~~~~~ +!!! error TS17013: Meta-property 'new.target' is only allowed in the body of a function declaration, function expression, or constructor. + f = () => new.target; + ~~~~~~~~~~ +!!! error TS17013: Meta-property 'new.target' is only allowed in the body of a function declaration, function expression, or constructor. + + static [new.target]() { } + ~~~~~~~~~~ +!!! error TS17013: Meta-property 'new.target' is only allowed in the body of a function declaration, function expression, or constructor. + static g() { return new.target; } + ~~~~~~~~~~ +!!! error TS17013: Meta-property 'new.target' is only allowed in the body of a function declaration, function expression, or constructor. + static get h() { return new.target; } + ~~~~~~~~~~ +!!! error TS17013: Meta-property 'new.target' is only allowed in the body of a function declaration, function expression, or constructor. + static set i(_) { _ = new.target; } + ~~~~~~~~~~ +!!! error TS17013: Meta-property 'new.target' is only allowed in the body of a function declaration, function expression, or constructor. + static j = () => new.target; + ~~~~~~~~~~ +!!! error TS17013: Meta-property 'new.target' is only allowed in the body of a function declaration, function expression, or constructor. + } + + const O = { + [new.target]: undefined, + ~~~~~~~~~~ +!!! error TS17013: Meta-property 'new.target' is only allowed in the body of a function declaration, function expression, or constructor. + k() { return new.target; }, + ~~~~~~~~~~ +!!! error TS17013: Meta-property 'new.target' is only allowed in the body of a function declaration, function expression, or constructor. + get l() { return new.target; }, + ~~~~~~~~~~ +!!! error TS17013: Meta-property 'new.target' is only allowed in the body of a function declaration, function expression, or constructor. + set m(_) { _ = new.target; }, + ~~~~~~~~~~ +!!! error TS17013: Meta-property 'new.target' is only allowed in the body of a function declaration, function expression, or constructor. + n: new.target, + ~~~~~~~~~~ +!!! error TS17013: Meta-property 'new.target' is only allowed in the body of a function declaration, function expression, or constructor. + }; \ No newline at end of file diff --git a/tests/baselines/reference/invalidNewTarget.es5.js b/tests/baselines/reference/invalidNewTarget.es5(target=es5).js similarity index 100% rename from tests/baselines/reference/invalidNewTarget.es5.js rename to tests/baselines/reference/invalidNewTarget.es5(target=es5).js diff --git a/tests/baselines/reference/invalidNewTarget.es5(target=es5).symbols b/tests/baselines/reference/invalidNewTarget.es5(target=es5).symbols new file mode 100644 index 0000000000000..ce5cb2cd38080 --- /dev/null +++ b/tests/baselines/reference/invalidNewTarget.es5(target=es5).symbols @@ -0,0 +1,69 @@ +//// [tests/cases/conformance/es6/newTarget/invalidNewTarget.es5.ts] //// + +=== invalidNewTarget.es5.ts === +const a = new.target; +>a : Symbol(a, Decl(invalidNewTarget.es5.ts, 0, 5)) + +const b = () => new.target; +>b : Symbol(b, Decl(invalidNewTarget.es5.ts, 1, 5)) + +class C { +>C : Symbol(C, Decl(invalidNewTarget.es5.ts, 1, 27)) + + [new.target]() { } +>[new.target] : Symbol(C[new.target], Decl(invalidNewTarget.es5.ts, 3, 9)) + + c() { return new.target; } +>c : Symbol(C.c, Decl(invalidNewTarget.es5.ts, 4, 22)) + + get d() { return new.target; } +>d : Symbol(C.d, Decl(invalidNewTarget.es5.ts, 5, 30)) + + set e(_) { _ = new.target; } +>e : Symbol(C.e, Decl(invalidNewTarget.es5.ts, 6, 34)) +>_ : Symbol(_, Decl(invalidNewTarget.es5.ts, 7, 10)) +>_ : Symbol(_, Decl(invalidNewTarget.es5.ts, 7, 10)) + + f = () => new.target; +>f : Symbol(C.f, Decl(invalidNewTarget.es5.ts, 7, 32)) + + static [new.target]() { } +>[new.target] : Symbol(C[new.target], Decl(invalidNewTarget.es5.ts, 8, 25)) + + static g() { return new.target; } +>g : Symbol(C.g, Decl(invalidNewTarget.es5.ts, 10, 29)) + + static get h() { return new.target; } +>h : Symbol(C.h, Decl(invalidNewTarget.es5.ts, 11, 37)) + + static set i(_) { _ = new.target; } +>i : Symbol(C.i, Decl(invalidNewTarget.es5.ts, 12, 41)) +>_ : Symbol(_, Decl(invalidNewTarget.es5.ts, 13, 17)) +>_ : Symbol(_, Decl(invalidNewTarget.es5.ts, 13, 17)) + + static j = () => new.target; +>j : Symbol(C.j, Decl(invalidNewTarget.es5.ts, 13, 39)) +} + +const O = { +>O : Symbol(O, Decl(invalidNewTarget.es5.ts, 17, 5)) + + [new.target]: undefined, +>[new.target] : Symbol([new.target], Decl(invalidNewTarget.es5.ts, 17, 11)) +>undefined : Symbol(undefined) + + k() { return new.target; }, +>k : Symbol(k, Decl(invalidNewTarget.es5.ts, 18, 28)) + + get l() { return new.target; }, +>l : Symbol(l, Decl(invalidNewTarget.es5.ts, 19, 31)) + + set m(_) { _ = new.target; }, +>m : Symbol(m, Decl(invalidNewTarget.es5.ts, 20, 35)) +>_ : Symbol(_, Decl(invalidNewTarget.es5.ts, 21, 10)) +>_ : Symbol(_, Decl(invalidNewTarget.es5.ts, 21, 10)) + + n: new.target, +>n : Symbol(n, Decl(invalidNewTarget.es5.ts, 21, 33)) + +}; diff --git a/tests/baselines/reference/invalidNewTarget.es5(target=es5).types b/tests/baselines/reference/invalidNewTarget.es5(target=es5).types new file mode 100644 index 0000000000000..1e2a5dbcf5f75 --- /dev/null +++ b/tests/baselines/reference/invalidNewTarget.es5(target=es5).types @@ -0,0 +1,177 @@ +//// [tests/cases/conformance/es6/newTarget/invalidNewTarget.es5.ts] //// + +=== invalidNewTarget.es5.ts === +const a = new.target; +>a : any +> : ^^^ +>new.target : any +> : ^^^ +>target : any +> : ^^^ + +const b = () => new.target; +>b : () => any +> : ^^^^^^^^^ +>() => new.target : () => any +> : ^^^^^^^^^ +>new.target : any +> : ^^^ +>target : any +> : ^^^ + +class C { +>C : C +> : ^ + + [new.target]() { } +>[new.target] : () => void +> : ^^^^^^^^^^ +>new.target : any +> : ^^^ +>target : any +> : ^^^ + + c() { return new.target; } +>c : () => any +> : ^^^^^^^^^ +>new.target : any +> : ^^^ +>target : any +> : ^^^ + + get d() { return new.target; } +>d : any +> : ^^^ +>new.target : any +> : ^^^ +>target : any +> : ^^^ + + set e(_) { _ = new.target; } +>e : any +> : ^^^ +>_ : any +> : ^^^ +>_ = new.target : any +> : ^^^ +>_ : any +> : ^^^ +>new.target : any +> : ^^^ +>target : any +> : ^^^ + + f = () => new.target; +>f : () => any +> : ^^^^^^^^^ +>() => new.target : () => any +> : ^^^^^^^^^ +>new.target : any +> : ^^^ +>target : any +> : ^^^ + + static [new.target]() { } +>[new.target] : () => void +> : ^^^^^^^^^^ +>new.target : any +> : ^^^ +>target : any +> : ^^^ + + static g() { return new.target; } +>g : () => any +> : ^^^^^^^^^ +>new.target : any +> : ^^^ +>target : any +> : ^^^ + + static get h() { return new.target; } +>h : any +> : ^^^ +>new.target : any +> : ^^^ +>target : any +> : ^^^ + + static set i(_) { _ = new.target; } +>i : any +> : ^^^ +>_ : any +> : ^^^ +>_ = new.target : any +> : ^^^ +>_ : any +> : ^^^ +>new.target : any +> : ^^^ +>target : any +> : ^^^ + + static j = () => new.target; +>j : () => any +> : ^^^^^^^^^ +>() => new.target : () => any +> : ^^^^^^^^^ +>new.target : any +> : ^^^ +>target : any +> : ^^^ +} + +const O = { +>O : { [x: number]: any; k(): any; readonly l: any; m: any; n: any; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ [new.target]: undefined, k() { return new.target; }, get l() { return new.target; }, set m(_) { _ = new.target; }, n: new.target,} : { [x: number]: undefined; k(): any; readonly l: any; m: any; n: any; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + [new.target]: undefined, +>[new.target] : undefined +> : ^^^^^^^^^ +>new.target : any +> : ^^^ +>target : any +> : ^^^ +>undefined : undefined +> : ^^^^^^^^^ + + k() { return new.target; }, +>k : () => any +> : ^^^^^^^^^ +>new.target : any +> : ^^^ +>target : any +> : ^^^ + + get l() { return new.target; }, +>l : any +> : ^^^ +>new.target : any +> : ^^^ +>target : any +> : ^^^ + + set m(_) { _ = new.target; }, +>m : any +> : ^^^ +>_ : any +> : ^^^ +>_ = new.target : any +> : ^^^ +>_ : any +> : ^^^ +>new.target : any +> : ^^^ +>target : any +> : ^^^ + + n: new.target, +>n : any +> : ^^^ +>new.target : any +> : ^^^ +>target : any +> : ^^^ + +}; diff --git a/tests/baselines/reference/isDeclarationVisibleNodeKinds(target=es2015).js b/tests/baselines/reference/isDeclarationVisibleNodeKinds(target=es2015).js new file mode 100644 index 0000000000000..527310c1e551a --- /dev/null +++ b/tests/baselines/reference/isDeclarationVisibleNodeKinds(target=es2015).js @@ -0,0 +1,181 @@ +//// [tests/cases/compiler/isDeclarationVisibleNodeKinds.ts] //// + +//// [isDeclarationVisibleNodeKinds.ts] +// Function types +namespace schema { + export function createValidator1(schema: any): (data: T) => T { + return undefined; + } +} + +// Constructor types +namespace schema { + export function createValidator2(schema: any): new (data: T) => T { + return undefined; + } +} + +// union types +namespace schema { + export function createValidator3(schema: any): number | { new (data: T): T; } { + return undefined; + } +} + +// Array types +namespace schema { + export function createValidator4(schema: any): { new (data: T): T; }[] { + return undefined; + } +} + + +// TypeLiterals +namespace schema { + export function createValidator5(schema: any): { new (data: T): T } { + return undefined; + } +} + +// Tuple types +namespace schema { + export function createValidator6(schema: any): [ new (data: T) => T, number] { + return undefined; + } +} + +// Paren Types +namespace schema { + export function createValidator7(schema: any): (new (data: T)=>T )[] { + return undefined; + } +} + +// Type reference +namespace schema { + export function createValidator8(schema: any): Array<{ (data: T) : T}> { + return undefined; + } +} + + +namespace schema { + export class T { + get createValidator9(): (data: T) => T { + return undefined; + } + + set createValidator10(v: (data: T) => T) { + } + } +} + +//// [isDeclarationVisibleNodeKinds.js] +// Function types +var schema; +(function (schema_1) { + function createValidator1(schema) { + return undefined; + } + schema_1.createValidator1 = createValidator1; +})(schema || (schema = {})); +// Constructor types +(function (schema_2) { + function createValidator2(schema) { + return undefined; + } + schema_2.createValidator2 = createValidator2; +})(schema || (schema = {})); +// union types +(function (schema_3) { + function createValidator3(schema) { + return undefined; + } + schema_3.createValidator3 = createValidator3; +})(schema || (schema = {})); +// Array types +(function (schema_4) { + function createValidator4(schema) { + return undefined; + } + schema_4.createValidator4 = createValidator4; +})(schema || (schema = {})); +// TypeLiterals +(function (schema_5) { + function createValidator5(schema) { + return undefined; + } + schema_5.createValidator5 = createValidator5; +})(schema || (schema = {})); +// Tuple types +(function (schema_6) { + function createValidator6(schema) { + return undefined; + } + schema_6.createValidator6 = createValidator6; +})(schema || (schema = {})); +// Paren Types +(function (schema_7) { + function createValidator7(schema) { + return undefined; + } + schema_7.createValidator7 = createValidator7; +})(schema || (schema = {})); +// Type reference +(function (schema_8) { + function createValidator8(schema) { + return undefined; + } + schema_8.createValidator8 = createValidator8; +})(schema || (schema = {})); +(function (schema) { + class T { + get createValidator9() { + return undefined; + } + set createValidator10(v) { + } + } + schema.T = T; +})(schema || (schema = {})); + + +//// [isDeclarationVisibleNodeKinds.d.ts] +declare namespace schema { + function createValidator1(schema: any): (data: T) => T; +} +declare namespace schema { + function createValidator2(schema: any): new (data: T) => T; +} +declare namespace schema { + function createValidator3(schema: any): number | { + new (data: T): T; + }; +} +declare namespace schema { + function createValidator4(schema: any): { + new (data: T): T; + }[]; +} +declare namespace schema { + function createValidator5(schema: any): { + new (data: T): T; + }; +} +declare namespace schema { + function createValidator6(schema: any): [new (data: T) => T, number]; +} +declare namespace schema { + function createValidator7(schema: any): (new (data: T) => T)[]; +} +declare namespace schema { + function createValidator8(schema: any): Array<{ + (data: T): T; + }>; +} +declare namespace schema { + class T { + get createValidator9(): (data: T) => T; + set createValidator10(v: (data: T) => T); + } +} diff --git a/tests/baselines/reference/isDeclarationVisibleNodeKinds.symbols b/tests/baselines/reference/isDeclarationVisibleNodeKinds(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/isDeclarationVisibleNodeKinds.symbols rename to tests/baselines/reference/isDeclarationVisibleNodeKinds(target=es2015).symbols diff --git a/tests/baselines/reference/isDeclarationVisibleNodeKinds.types b/tests/baselines/reference/isDeclarationVisibleNodeKinds(target=es2015).types similarity index 100% rename from tests/baselines/reference/isDeclarationVisibleNodeKinds.types rename to tests/baselines/reference/isDeclarationVisibleNodeKinds(target=es2015).types diff --git a/tests/baselines/reference/isDeclarationVisibleNodeKinds.js b/tests/baselines/reference/isDeclarationVisibleNodeKinds(target=es5).js similarity index 100% rename from tests/baselines/reference/isDeclarationVisibleNodeKinds.js rename to tests/baselines/reference/isDeclarationVisibleNodeKinds(target=es5).js diff --git a/tests/baselines/reference/isDeclarationVisibleNodeKinds(target=es5).symbols b/tests/baselines/reference/isDeclarationVisibleNodeKinds(target=es5).symbols new file mode 100644 index 0000000000000..2518a4fa88daa --- /dev/null +++ b/tests/baselines/reference/isDeclarationVisibleNodeKinds(target=es5).symbols @@ -0,0 +1,169 @@ +//// [tests/cases/compiler/isDeclarationVisibleNodeKinds.ts] //// + +=== isDeclarationVisibleNodeKinds.ts === +// Function types +namespace schema { +>schema : Symbol(schema, Decl(isDeclarationVisibleNodeKinds.ts, 0, 0), Decl(isDeclarationVisibleNodeKinds.ts, 5, 1), Decl(isDeclarationVisibleNodeKinds.ts, 12, 1), Decl(isDeclarationVisibleNodeKinds.ts, 19, 1), Decl(isDeclarationVisibleNodeKinds.ts, 26, 1) ... and 4 more) + + export function createValidator1(schema: any): (data: T) => T { +>createValidator1 : Symbol(createValidator1, Decl(isDeclarationVisibleNodeKinds.ts, 1, 18)) +>schema : Symbol(schema, Decl(isDeclarationVisibleNodeKinds.ts, 2, 37)) +>T : Symbol(T, Decl(isDeclarationVisibleNodeKinds.ts, 2, 52)) +>data : Symbol(data, Decl(isDeclarationVisibleNodeKinds.ts, 2, 55)) +>T : Symbol(T, Decl(isDeclarationVisibleNodeKinds.ts, 2, 52)) +>T : Symbol(T, Decl(isDeclarationVisibleNodeKinds.ts, 2, 52)) + + return undefined; +>undefined : Symbol(undefined) + } +} + +// Constructor types +namespace schema { +>schema : Symbol(schema, Decl(isDeclarationVisibleNodeKinds.ts, 0, 0), Decl(isDeclarationVisibleNodeKinds.ts, 5, 1), Decl(isDeclarationVisibleNodeKinds.ts, 12, 1), Decl(isDeclarationVisibleNodeKinds.ts, 19, 1), Decl(isDeclarationVisibleNodeKinds.ts, 26, 1) ... and 4 more) + + export function createValidator2(schema: any): new (data: T) => T { +>createValidator2 : Symbol(createValidator2, Decl(isDeclarationVisibleNodeKinds.ts, 8, 18)) +>schema : Symbol(schema, Decl(isDeclarationVisibleNodeKinds.ts, 9, 37)) +>T : Symbol(T, Decl(isDeclarationVisibleNodeKinds.ts, 9, 56)) +>data : Symbol(data, Decl(isDeclarationVisibleNodeKinds.ts, 9, 59)) +>T : Symbol(T, Decl(isDeclarationVisibleNodeKinds.ts, 9, 56)) +>T : Symbol(T, Decl(isDeclarationVisibleNodeKinds.ts, 9, 56)) + + return undefined; +>undefined : Symbol(undefined) + } +} + +// union types +namespace schema { +>schema : Symbol(schema, Decl(isDeclarationVisibleNodeKinds.ts, 0, 0), Decl(isDeclarationVisibleNodeKinds.ts, 5, 1), Decl(isDeclarationVisibleNodeKinds.ts, 12, 1), Decl(isDeclarationVisibleNodeKinds.ts, 19, 1), Decl(isDeclarationVisibleNodeKinds.ts, 26, 1) ... and 4 more) + + export function createValidator3(schema: any): number | { new (data: T): T; } { +>createValidator3 : Symbol(createValidator3, Decl(isDeclarationVisibleNodeKinds.ts, 15, 18)) +>schema : Symbol(schema, Decl(isDeclarationVisibleNodeKinds.ts, 16, 38)) +>T : Symbol(T, Decl(isDeclarationVisibleNodeKinds.ts, 16, 68)) +>data : Symbol(data, Decl(isDeclarationVisibleNodeKinds.ts, 16, 71)) +>T : Symbol(T, Decl(isDeclarationVisibleNodeKinds.ts, 16, 68)) +>T : Symbol(T, Decl(isDeclarationVisibleNodeKinds.ts, 16, 68)) + + return undefined; +>undefined : Symbol(undefined) + } +} + +// Array types +namespace schema { +>schema : Symbol(schema, Decl(isDeclarationVisibleNodeKinds.ts, 0, 0), Decl(isDeclarationVisibleNodeKinds.ts, 5, 1), Decl(isDeclarationVisibleNodeKinds.ts, 12, 1), Decl(isDeclarationVisibleNodeKinds.ts, 19, 1), Decl(isDeclarationVisibleNodeKinds.ts, 26, 1) ... and 4 more) + + export function createValidator4(schema: any): { new (data: T): T; }[] { +>createValidator4 : Symbol(createValidator4, Decl(isDeclarationVisibleNodeKinds.ts, 22, 18)) +>schema : Symbol(schema, Decl(isDeclarationVisibleNodeKinds.ts, 23, 38)) +>T : Symbol(T, Decl(isDeclarationVisibleNodeKinds.ts, 23, 59)) +>data : Symbol(data, Decl(isDeclarationVisibleNodeKinds.ts, 23, 62)) +>T : Symbol(T, Decl(isDeclarationVisibleNodeKinds.ts, 23, 59)) +>T : Symbol(T, Decl(isDeclarationVisibleNodeKinds.ts, 23, 59)) + + return undefined; +>undefined : Symbol(undefined) + } +} + + +// TypeLiterals +namespace schema { +>schema : Symbol(schema, Decl(isDeclarationVisibleNodeKinds.ts, 0, 0), Decl(isDeclarationVisibleNodeKinds.ts, 5, 1), Decl(isDeclarationVisibleNodeKinds.ts, 12, 1), Decl(isDeclarationVisibleNodeKinds.ts, 19, 1), Decl(isDeclarationVisibleNodeKinds.ts, 26, 1) ... and 4 more) + + export function createValidator5(schema: any): { new (data: T): T } { +>createValidator5 : Symbol(createValidator5, Decl(isDeclarationVisibleNodeKinds.ts, 30, 18)) +>schema : Symbol(schema, Decl(isDeclarationVisibleNodeKinds.ts, 31, 37)) +>T : Symbol(T, Decl(isDeclarationVisibleNodeKinds.ts, 31, 58)) +>data : Symbol(data, Decl(isDeclarationVisibleNodeKinds.ts, 31, 61)) +>T : Symbol(T, Decl(isDeclarationVisibleNodeKinds.ts, 31, 58)) +>T : Symbol(T, Decl(isDeclarationVisibleNodeKinds.ts, 31, 58)) + + return undefined; +>undefined : Symbol(undefined) + } +} + +// Tuple types +namespace schema { +>schema : Symbol(schema, Decl(isDeclarationVisibleNodeKinds.ts, 0, 0), Decl(isDeclarationVisibleNodeKinds.ts, 5, 1), Decl(isDeclarationVisibleNodeKinds.ts, 12, 1), Decl(isDeclarationVisibleNodeKinds.ts, 19, 1), Decl(isDeclarationVisibleNodeKinds.ts, 26, 1) ... and 4 more) + + export function createValidator6(schema: any): [ new (data: T) => T, number] { +>createValidator6 : Symbol(createValidator6, Decl(isDeclarationVisibleNodeKinds.ts, 37, 18)) +>schema : Symbol(schema, Decl(isDeclarationVisibleNodeKinds.ts, 38, 37)) +>T : Symbol(T, Decl(isDeclarationVisibleNodeKinds.ts, 38, 58)) +>data : Symbol(data, Decl(isDeclarationVisibleNodeKinds.ts, 38, 61)) +>T : Symbol(T, Decl(isDeclarationVisibleNodeKinds.ts, 38, 58)) +>T : Symbol(T, Decl(isDeclarationVisibleNodeKinds.ts, 38, 58)) + + return undefined; +>undefined : Symbol(undefined) + } +} + +// Paren Types +namespace schema { +>schema : Symbol(schema, Decl(isDeclarationVisibleNodeKinds.ts, 0, 0), Decl(isDeclarationVisibleNodeKinds.ts, 5, 1), Decl(isDeclarationVisibleNodeKinds.ts, 12, 1), Decl(isDeclarationVisibleNodeKinds.ts, 19, 1), Decl(isDeclarationVisibleNodeKinds.ts, 26, 1) ... and 4 more) + + export function createValidator7(schema: any): (new (data: T)=>T )[] { +>createValidator7 : Symbol(createValidator7, Decl(isDeclarationVisibleNodeKinds.ts, 44, 18)) +>schema : Symbol(schema, Decl(isDeclarationVisibleNodeKinds.ts, 45, 37)) +>T : Symbol(T, Decl(isDeclarationVisibleNodeKinds.ts, 45, 57)) +>data : Symbol(data, Decl(isDeclarationVisibleNodeKinds.ts, 45, 60)) +>T : Symbol(T, Decl(isDeclarationVisibleNodeKinds.ts, 45, 57)) +>T : Symbol(T, Decl(isDeclarationVisibleNodeKinds.ts, 45, 57)) + + return undefined; +>undefined : Symbol(undefined) + } +} + +// Type reference +namespace schema { +>schema : Symbol(schema, Decl(isDeclarationVisibleNodeKinds.ts, 0, 0), Decl(isDeclarationVisibleNodeKinds.ts, 5, 1), Decl(isDeclarationVisibleNodeKinds.ts, 12, 1), Decl(isDeclarationVisibleNodeKinds.ts, 19, 1), Decl(isDeclarationVisibleNodeKinds.ts, 26, 1) ... and 4 more) + + export function createValidator8(schema: any): Array<{ (data: T) : T}> { +>createValidator8 : Symbol(createValidator8, Decl(isDeclarationVisibleNodeKinds.ts, 51, 18)) +>schema : Symbol(schema, Decl(isDeclarationVisibleNodeKinds.ts, 52, 37)) +>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>T : Symbol(T, Decl(isDeclarationVisibleNodeKinds.ts, 52, 60)) +>data : Symbol(data, Decl(isDeclarationVisibleNodeKinds.ts, 52, 63)) +>T : Symbol(T, Decl(isDeclarationVisibleNodeKinds.ts, 52, 60)) +>T : Symbol(T, Decl(isDeclarationVisibleNodeKinds.ts, 52, 60)) + + return undefined; +>undefined : Symbol(undefined) + } +} + + +namespace schema { +>schema : Symbol(schema, Decl(isDeclarationVisibleNodeKinds.ts, 0, 0), Decl(isDeclarationVisibleNodeKinds.ts, 5, 1), Decl(isDeclarationVisibleNodeKinds.ts, 12, 1), Decl(isDeclarationVisibleNodeKinds.ts, 19, 1), Decl(isDeclarationVisibleNodeKinds.ts, 26, 1) ... and 4 more) + + export class T { +>T : Symbol(T, Decl(isDeclarationVisibleNodeKinds.ts, 58, 18)) + + get createValidator9(): (data: T) => T { +>createValidator9 : Symbol(T.createValidator9, Decl(isDeclarationVisibleNodeKinds.ts, 59, 20)) +>T : Symbol(T, Decl(isDeclarationVisibleNodeKinds.ts, 60, 33)) +>data : Symbol(data, Decl(isDeclarationVisibleNodeKinds.ts, 60, 36)) +>T : Symbol(T, Decl(isDeclarationVisibleNodeKinds.ts, 60, 33)) +>T : Symbol(T, Decl(isDeclarationVisibleNodeKinds.ts, 60, 33)) + + return undefined; +>undefined : Symbol(undefined) + } + + set createValidator10(v: (data: T) => T) { +>createValidator10 : Symbol(T.createValidator10, Decl(isDeclarationVisibleNodeKinds.ts, 62, 9)) +>v : Symbol(v, Decl(isDeclarationVisibleNodeKinds.ts, 64, 30)) +>T : Symbol(T, Decl(isDeclarationVisibleNodeKinds.ts, 64, 34)) +>data : Symbol(data, Decl(isDeclarationVisibleNodeKinds.ts, 64, 37)) +>T : Symbol(T, Decl(isDeclarationVisibleNodeKinds.ts, 64, 34)) +>T : Symbol(T, Decl(isDeclarationVisibleNodeKinds.ts, 64, 34)) + } + } +} diff --git a/tests/baselines/reference/isDeclarationVisibleNodeKinds(target=es5).types b/tests/baselines/reference/isDeclarationVisibleNodeKinds(target=es5).types new file mode 100644 index 0000000000000..f1be37e0fba0c --- /dev/null +++ b/tests/baselines/reference/isDeclarationVisibleNodeKinds(target=es5).types @@ -0,0 +1,178 @@ +//// [tests/cases/compiler/isDeclarationVisibleNodeKinds.ts] //// + +=== isDeclarationVisibleNodeKinds.ts === +// Function types +namespace schema { +>schema : typeof schema +> : ^^^^^^^^^^^^^ + + export function createValidator1(schema: any): (data: T) => T { +>createValidator1 : (schema: any) => (data: T) => T +> : ^ ^^ ^^^^^ +>schema : any +>data : T +> : ^ + + return undefined; +>undefined : undefined +> : ^^^^^^^^^ + } +} + +// Constructor types +namespace schema { +>schema : typeof schema +> : ^^^^^^^^^^^^^ + + export function createValidator2(schema: any): new (data: T) => T { +>createValidator2 : (schema: any) => new (data: T) => T +> : ^ ^^ ^^^^^ +>schema : any +>data : T +> : ^ + + return undefined; +>undefined : undefined +> : ^^^^^^^^^ + } +} + +// union types +namespace schema { +>schema : typeof schema +> : ^^^^^^^^^^^^^ + + export function createValidator3(schema: any): number | { new (data: T): T; } { +>createValidator3 : (schema: any) => number | { new (data: T): T; } +> : ^ ^^ ^^^^^ +>schema : any +>data : T +> : ^ + + return undefined; +>undefined : undefined +> : ^^^^^^^^^ + } +} + +// Array types +namespace schema { +>schema : typeof schema +> : ^^^^^^^^^^^^^ + + export function createValidator4(schema: any): { new (data: T): T; }[] { +>createValidator4 : (schema: any) => { new (data: T): T; }[] +> : ^ ^^ ^^^^^ +>schema : any +>data : T +> : ^ + + return undefined; +>undefined : undefined +> : ^^^^^^^^^ + } +} + + +// TypeLiterals +namespace schema { +>schema : typeof schema +> : ^^^^^^^^^^^^^ + + export function createValidator5(schema: any): { new (data: T): T } { +>createValidator5 : (schema: any) => { new (data: T): T; } +> : ^ ^^ ^^^^^ +>schema : any +>data : T +> : ^ + + return undefined; +>undefined : undefined +> : ^^^^^^^^^ + } +} + +// Tuple types +namespace schema { +>schema : typeof schema +> : ^^^^^^^^^^^^^ + + export function createValidator6(schema: any): [ new (data: T) => T, number] { +>createValidator6 : (schema: any) => [new (data: T) => T, number] +> : ^ ^^ ^^^^^ +>schema : any +>data : T +> : ^ + + return undefined; +>undefined : undefined +> : ^^^^^^^^^ + } +} + +// Paren Types +namespace schema { +>schema : typeof schema +> : ^^^^^^^^^^^^^ + + export function createValidator7(schema: any): (new (data: T)=>T )[] { +>createValidator7 : (schema: any) => (new (data: T) => T)[] +> : ^ ^^ ^^^^^ +>schema : any +>data : T +> : ^ + + return undefined; +>undefined : undefined +> : ^^^^^^^^^ + } +} + +// Type reference +namespace schema { +>schema : typeof schema +> : ^^^^^^^^^^^^^ + + export function createValidator8(schema: any): Array<{ (data: T) : T}> { +>createValidator8 : (schema: any) => Array<{ (data: T): T; }> +> : ^ ^^ ^^^^^ +>schema : any +>data : T +> : ^ + + return undefined; +>undefined : undefined +> : ^^^^^^^^^ + } +} + + +namespace schema { +>schema : typeof schema +> : ^^^^^^^^^^^^^ + + export class T { +>T : T +> : ^ + + get createValidator9(): (data: T) => T { +>createValidator9 : (data: T) => T +> : ^ ^^ ^^ ^^^^^ +>data : T +> : ^ + + return undefined; +>undefined : undefined +> : ^^^^^^^^^ + } + + set createValidator10(v: (data: T) => T) { +>createValidator10 : (data: T) => T +> : ^ ^^ ^^ ^^^^^ +>v : (data: T) => T +> : ^ ^^ ^^ ^^^^^ +>data : T +> : ^ + } + } +} diff --git a/tests/baselines/reference/isolatedModulesImportExportElision.errors.txt b/tests/baselines/reference/isolatedModulesImportExportElision(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/isolatedModulesImportExportElision.errors.txt rename to tests/baselines/reference/isolatedModulesImportExportElision(target=es2015).errors.txt diff --git a/tests/baselines/reference/isolatedModulesImportExportElision(target=es2015).js b/tests/baselines/reference/isolatedModulesImportExportElision(target=es2015).js new file mode 100644 index 0000000000000..c3e6a73a22879 --- /dev/null +++ b/tests/baselines/reference/isolatedModulesImportExportElision(target=es2015).js @@ -0,0 +1,63 @@ +//// [tests/cases/compiler/isolatedModulesImportExportElision.ts] //// + +//// [file1.ts] +import {c} from "module" +import {c2} from "module" +import * as ns from "module" + +class C extends c2.C { +} + +let x = new c(); +let y = ns.value; + +export {c1} from "module"; +export var z = x; + +//// [file1.js] +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.z = exports.c1 = void 0; +const module_1 = require("module"); +const module_2 = require("module"); +const ns = __importStar(require("module")); +class C extends module_2.c2.C { +} +let x = new module_1.c(); +let y = ns.value; +var module_3 = require("module"); +Object.defineProperty(exports, "c1", { enumerable: true, get: function () { return module_3.c1; } }); +exports.z = x; diff --git a/tests/baselines/reference/isolatedModulesImportExportElision.symbols b/tests/baselines/reference/isolatedModulesImportExportElision(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/isolatedModulesImportExportElision.symbols rename to tests/baselines/reference/isolatedModulesImportExportElision(target=es2015).symbols diff --git a/tests/baselines/reference/isolatedModulesImportExportElision.types b/tests/baselines/reference/isolatedModulesImportExportElision(target=es2015).types similarity index 100% rename from tests/baselines/reference/isolatedModulesImportExportElision.types rename to tests/baselines/reference/isolatedModulesImportExportElision(target=es2015).types diff --git a/tests/baselines/reference/isolatedModulesImportExportElision(target=es5).errors.txt b/tests/baselines/reference/isolatedModulesImportExportElision(target=es5).errors.txt new file mode 100644 index 0000000000000..77a7a49f3d7f6 --- /dev/null +++ b/tests/baselines/reference/isolatedModulesImportExportElision(target=es5).errors.txt @@ -0,0 +1,27 @@ +file1.ts(1,17): error TS2307: Cannot find module 'module' or its corresponding type declarations. +file1.ts(2,18): error TS2307: Cannot find module 'module' or its corresponding type declarations. +file1.ts(3,21): error TS2307: Cannot find module 'module' or its corresponding type declarations. +file1.ts(11,18): error TS2307: Cannot find module 'module' or its corresponding type declarations. + + +==== file1.ts (4 errors) ==== + import {c} from "module" + ~~~~~~~~ +!!! error TS2307: Cannot find module 'module' or its corresponding type declarations. + import {c2} from "module" + ~~~~~~~~ +!!! error TS2307: Cannot find module 'module' or its corresponding type declarations. + import * as ns from "module" + ~~~~~~~~ +!!! error TS2307: Cannot find module 'module' or its corresponding type declarations. + + class C extends c2.C { + } + + let x = new c(); + let y = ns.value; + + export {c1} from "module"; + ~~~~~~~~ +!!! error TS2307: Cannot find module 'module' or its corresponding type declarations. + export var z = x; \ No newline at end of file diff --git a/tests/baselines/reference/isolatedModulesImportExportElision.js b/tests/baselines/reference/isolatedModulesImportExportElision(target=es5).js similarity index 100% rename from tests/baselines/reference/isolatedModulesImportExportElision.js rename to tests/baselines/reference/isolatedModulesImportExportElision(target=es5).js diff --git a/tests/baselines/reference/isolatedModulesImportExportElision(target=es5).symbols b/tests/baselines/reference/isolatedModulesImportExportElision(target=es5).symbols new file mode 100644 index 0000000000000..b766991b4782d --- /dev/null +++ b/tests/baselines/reference/isolatedModulesImportExportElision(target=es5).symbols @@ -0,0 +1,34 @@ +//// [tests/cases/compiler/isolatedModulesImportExportElision.ts] //// + +=== file1.ts === +import {c} from "module" +>c : Symbol(c, Decl(file1.ts, 0, 8)) + +import {c2} from "module" +>c2 : Symbol(c2, Decl(file1.ts, 1, 8)) + +import * as ns from "module" +>ns : Symbol(ns, Decl(file1.ts, 2, 6)) + +class C extends c2.C { +>C : Symbol(C, Decl(file1.ts, 2, 28)) +>c2.C : Symbol(c) +>c2 : Symbol(c2, Decl(file1.ts, 1, 8)) +>C : Symbol(c) +} + +let x = new c(); +>x : Symbol(x, Decl(file1.ts, 7, 3)) +>c : Symbol(c, Decl(file1.ts, 0, 8)) + +let y = ns.value; +>y : Symbol(y, Decl(file1.ts, 8, 3)) +>ns : Symbol(ns, Decl(file1.ts, 2, 6)) + +export {c1} from "module"; +>c1 : Symbol(c1, Decl(file1.ts, 10, 8)) + +export var z = x; +>z : Symbol(z, Decl(file1.ts, 11, 10)) +>x : Symbol(x, Decl(file1.ts, 7, 3)) + diff --git a/tests/baselines/reference/isolatedModulesImportExportElision(target=es5).types b/tests/baselines/reference/isolatedModulesImportExportElision(target=es5).types new file mode 100644 index 0000000000000..5ccba76bfa7fc --- /dev/null +++ b/tests/baselines/reference/isolatedModulesImportExportElision(target=es5).types @@ -0,0 +1,54 @@ +//// [tests/cases/compiler/isolatedModulesImportExportElision.ts] //// + +=== file1.ts === +import {c} from "module" +>c : any +> : ^^^ + +import {c2} from "module" +>c2 : any +> : ^^^ + +import * as ns from "module" +>ns : any +> : ^^^ + +class C extends c2.C { +>C : C +> : ^ +>c2.C : any +> : ^^^ +>c2 : any +> : ^^^ +>C : any +> : ^^^ +} + +let x = new c(); +>x : any +> : ^^^ +>new c() : any +> : ^^^ +>c : any +> : ^^^ + +let y = ns.value; +>y : any +> : ^^^ +>ns.value : any +> : ^^^ +>ns : any +> : ^^^ +>value : any +> : ^^^ + +export {c1} from "module"; +>c1 : any +> : ^^^ + +export var z = x; +>z : any +> : ^^^ +>x : any +> : ^^^ + diff --git a/tests/baselines/reference/isolatedModulesPlainFile-AMD.errors.txt b/tests/baselines/reference/isolatedModulesPlainFile-AMD(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/isolatedModulesPlainFile-AMD.errors.txt rename to tests/baselines/reference/isolatedModulesPlainFile-AMD(target=es2015).errors.txt diff --git a/tests/baselines/reference/isolatedModulesPlainFile-AMD.js b/tests/baselines/reference/isolatedModulesPlainFile-AMD(target=es2015).js similarity index 100% rename from tests/baselines/reference/isolatedModulesPlainFile-AMD.js rename to tests/baselines/reference/isolatedModulesPlainFile-AMD(target=es2015).js diff --git a/tests/baselines/reference/isolatedModulesPlainFile-AMD.symbols b/tests/baselines/reference/isolatedModulesPlainFile-AMD(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/isolatedModulesPlainFile-AMD.symbols rename to tests/baselines/reference/isolatedModulesPlainFile-AMD(target=es2015).symbols diff --git a/tests/baselines/reference/isolatedModulesPlainFile-AMD.types b/tests/baselines/reference/isolatedModulesPlainFile-AMD(target=es2015).types similarity index 100% rename from tests/baselines/reference/isolatedModulesPlainFile-AMD.types rename to tests/baselines/reference/isolatedModulesPlainFile-AMD(target=es2015).types diff --git a/tests/baselines/reference/isolatedModulesPlainFile-AMD(target=es5).errors.txt b/tests/baselines/reference/isolatedModulesPlainFile-AMD(target=es5).errors.txt new file mode 100644 index 0000000000000..446077b024f6d --- /dev/null +++ b/tests/baselines/reference/isolatedModulesPlainFile-AMD(target=es5).errors.txt @@ -0,0 +1,8 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== isolatedModulesPlainFile-AMD.ts (0 errors) ==== + declare function run(a: number): void; + run(1); + \ No newline at end of file diff --git a/tests/baselines/reference/isolatedModulesPlainFile-AMD(target=es5).js b/tests/baselines/reference/isolatedModulesPlainFile-AMD(target=es5).js new file mode 100644 index 0000000000000..9ac95c79b6a75 --- /dev/null +++ b/tests/baselines/reference/isolatedModulesPlainFile-AMD(target=es5).js @@ -0,0 +1,9 @@ +//// [tests/cases/compiler/isolatedModulesPlainFile-AMD.ts] //// + +//// [isolatedModulesPlainFile-AMD.ts] +declare function run(a: number): void; +run(1); + + +//// [isolatedModulesPlainFile-AMD.js] +run(1); diff --git a/tests/baselines/reference/isolatedModulesPlainFile-AMD(target=es5).symbols b/tests/baselines/reference/isolatedModulesPlainFile-AMD(target=es5).symbols new file mode 100644 index 0000000000000..07aa59c14c096 --- /dev/null +++ b/tests/baselines/reference/isolatedModulesPlainFile-AMD(target=es5).symbols @@ -0,0 +1,10 @@ +//// [tests/cases/compiler/isolatedModulesPlainFile-AMD.ts] //// + +=== isolatedModulesPlainFile-AMD.ts === +declare function run(a: number): void; +>run : Symbol(run, Decl(isolatedModulesPlainFile-AMD.ts, 0, 0)) +>a : Symbol(a, Decl(isolatedModulesPlainFile-AMD.ts, 0, 21)) + +run(1); +>run : Symbol(run, Decl(isolatedModulesPlainFile-AMD.ts, 0, 0)) + diff --git a/tests/baselines/reference/isolatedModulesPlainFile-AMD(target=es5).types b/tests/baselines/reference/isolatedModulesPlainFile-AMD(target=es5).types new file mode 100644 index 0000000000000..769d5c830ef0f --- /dev/null +++ b/tests/baselines/reference/isolatedModulesPlainFile-AMD(target=es5).types @@ -0,0 +1,17 @@ +//// [tests/cases/compiler/isolatedModulesPlainFile-AMD.ts] //// + +=== isolatedModulesPlainFile-AMD.ts === +declare function run(a: number): void; +>run : (a: number) => void +> : ^ ^^ ^^^^^ +>a : number +> : ^^^^^^ + +run(1); +>run(1) : void +> : ^^^^ +>run : (a: number) => void +> : ^ ^^ ^^^^^ +>1 : 1 +> : ^ + diff --git a/tests/baselines/reference/isolatedModulesPlainFile-CommonJS.js b/tests/baselines/reference/isolatedModulesPlainFile-CommonJS(target=es2015).js similarity index 100% rename from tests/baselines/reference/isolatedModulesPlainFile-CommonJS.js rename to tests/baselines/reference/isolatedModulesPlainFile-CommonJS(target=es2015).js diff --git a/tests/baselines/reference/isolatedModulesPlainFile-CommonJS.symbols b/tests/baselines/reference/isolatedModulesPlainFile-CommonJS(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/isolatedModulesPlainFile-CommonJS.symbols rename to tests/baselines/reference/isolatedModulesPlainFile-CommonJS(target=es2015).symbols diff --git a/tests/baselines/reference/isolatedModulesPlainFile-CommonJS.types b/tests/baselines/reference/isolatedModulesPlainFile-CommonJS(target=es2015).types similarity index 100% rename from tests/baselines/reference/isolatedModulesPlainFile-CommonJS.types rename to tests/baselines/reference/isolatedModulesPlainFile-CommonJS(target=es2015).types diff --git a/tests/baselines/reference/isolatedModulesPlainFile-CommonJS(target=es5).js b/tests/baselines/reference/isolatedModulesPlainFile-CommonJS(target=es5).js new file mode 100644 index 0000000000000..cc5167d8b8774 --- /dev/null +++ b/tests/baselines/reference/isolatedModulesPlainFile-CommonJS(target=es5).js @@ -0,0 +1,9 @@ +//// [tests/cases/compiler/isolatedModulesPlainFile-CommonJS.ts] //// + +//// [isolatedModulesPlainFile-CommonJS.ts] +declare function run(a: number): void; +run(1); + + +//// [isolatedModulesPlainFile-CommonJS.js] +run(1); diff --git a/tests/baselines/reference/isolatedModulesPlainFile-CommonJS(target=es5).symbols b/tests/baselines/reference/isolatedModulesPlainFile-CommonJS(target=es5).symbols new file mode 100644 index 0000000000000..c432f8385b0f1 --- /dev/null +++ b/tests/baselines/reference/isolatedModulesPlainFile-CommonJS(target=es5).symbols @@ -0,0 +1,10 @@ +//// [tests/cases/compiler/isolatedModulesPlainFile-CommonJS.ts] //// + +=== isolatedModulesPlainFile-CommonJS.ts === +declare function run(a: number): void; +>run : Symbol(run, Decl(isolatedModulesPlainFile-CommonJS.ts, 0, 0)) +>a : Symbol(a, Decl(isolatedModulesPlainFile-CommonJS.ts, 0, 21)) + +run(1); +>run : Symbol(run, Decl(isolatedModulesPlainFile-CommonJS.ts, 0, 0)) + diff --git a/tests/baselines/reference/isolatedModulesPlainFile-CommonJS(target=es5).types b/tests/baselines/reference/isolatedModulesPlainFile-CommonJS(target=es5).types new file mode 100644 index 0000000000000..d71cbd7da1b0c --- /dev/null +++ b/tests/baselines/reference/isolatedModulesPlainFile-CommonJS(target=es5).types @@ -0,0 +1,17 @@ +//// [tests/cases/compiler/isolatedModulesPlainFile-CommonJS.ts] //// + +=== isolatedModulesPlainFile-CommonJS.ts === +declare function run(a: number): void; +>run : (a: number) => void +> : ^ ^^ ^^^^^ +>a : number +> : ^^^^^^ + +run(1); +>run(1) : void +> : ^^^^ +>run : (a: number) => void +> : ^ ^^ ^^^^^ +>1 : 1 +> : ^ + diff --git a/tests/baselines/reference/isolatedModulesPlainFile-System.errors.txt b/tests/baselines/reference/isolatedModulesPlainFile-System(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/isolatedModulesPlainFile-System.errors.txt rename to tests/baselines/reference/isolatedModulesPlainFile-System(target=es2015).errors.txt diff --git a/tests/baselines/reference/isolatedModulesPlainFile-System.js b/tests/baselines/reference/isolatedModulesPlainFile-System(target=es2015).js similarity index 100% rename from tests/baselines/reference/isolatedModulesPlainFile-System.js rename to tests/baselines/reference/isolatedModulesPlainFile-System(target=es2015).js diff --git a/tests/baselines/reference/isolatedModulesPlainFile-System.symbols b/tests/baselines/reference/isolatedModulesPlainFile-System(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/isolatedModulesPlainFile-System.symbols rename to tests/baselines/reference/isolatedModulesPlainFile-System(target=es2015).symbols diff --git a/tests/baselines/reference/isolatedModulesPlainFile-System.types b/tests/baselines/reference/isolatedModulesPlainFile-System(target=es2015).types similarity index 100% rename from tests/baselines/reference/isolatedModulesPlainFile-System.types rename to tests/baselines/reference/isolatedModulesPlainFile-System(target=es2015).types diff --git a/tests/baselines/reference/isolatedModulesPlainFile-System(target=es5).errors.txt b/tests/baselines/reference/isolatedModulesPlainFile-System(target=es5).errors.txt new file mode 100644 index 0000000000000..39a0a212feeda --- /dev/null +++ b/tests/baselines/reference/isolatedModulesPlainFile-System(target=es5).errors.txt @@ -0,0 +1,8 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== isolatedModulesPlainFile-System.ts (0 errors) ==== + declare function run(a: number): void; + run(1); + \ No newline at end of file diff --git a/tests/baselines/reference/isolatedModulesPlainFile-System(target=es5).js b/tests/baselines/reference/isolatedModulesPlainFile-System(target=es5).js new file mode 100644 index 0000000000000..1b156658d8ea3 --- /dev/null +++ b/tests/baselines/reference/isolatedModulesPlainFile-System(target=es5).js @@ -0,0 +1,9 @@ +//// [tests/cases/compiler/isolatedModulesPlainFile-System.ts] //// + +//// [isolatedModulesPlainFile-System.ts] +declare function run(a: number): void; +run(1); + + +//// [isolatedModulesPlainFile-System.js] +run(1); diff --git a/tests/baselines/reference/isolatedModulesPlainFile-System(target=es5).symbols b/tests/baselines/reference/isolatedModulesPlainFile-System(target=es5).symbols new file mode 100644 index 0000000000000..6ad8709db6922 --- /dev/null +++ b/tests/baselines/reference/isolatedModulesPlainFile-System(target=es5).symbols @@ -0,0 +1,10 @@ +//// [tests/cases/compiler/isolatedModulesPlainFile-System.ts] //// + +=== isolatedModulesPlainFile-System.ts === +declare function run(a: number): void; +>run : Symbol(run, Decl(isolatedModulesPlainFile-System.ts, 0, 0)) +>a : Symbol(a, Decl(isolatedModulesPlainFile-System.ts, 0, 21)) + +run(1); +>run : Symbol(run, Decl(isolatedModulesPlainFile-System.ts, 0, 0)) + diff --git a/tests/baselines/reference/isolatedModulesPlainFile-System(target=es5).types b/tests/baselines/reference/isolatedModulesPlainFile-System(target=es5).types new file mode 100644 index 0000000000000..71d1484f60057 --- /dev/null +++ b/tests/baselines/reference/isolatedModulesPlainFile-System(target=es5).types @@ -0,0 +1,17 @@ +//// [tests/cases/compiler/isolatedModulesPlainFile-System.ts] //// + +=== isolatedModulesPlainFile-System.ts === +declare function run(a: number): void; +>run : (a: number) => void +> : ^ ^^ ^^^^^ +>a : number +> : ^^^^^^ + +run(1); +>run(1) : void +> : ^^^^ +>run : (a: number) => void +> : ^ ^^ ^^^^^ +>1 : 1 +> : ^ + diff --git a/tests/baselines/reference/isolatedModulesPlainFile-UMD.errors.txt b/tests/baselines/reference/isolatedModulesPlainFile-UMD(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/isolatedModulesPlainFile-UMD.errors.txt rename to tests/baselines/reference/isolatedModulesPlainFile-UMD(target=es2015).errors.txt diff --git a/tests/baselines/reference/isolatedModulesPlainFile-UMD.js b/tests/baselines/reference/isolatedModulesPlainFile-UMD(target=es2015).js similarity index 100% rename from tests/baselines/reference/isolatedModulesPlainFile-UMD.js rename to tests/baselines/reference/isolatedModulesPlainFile-UMD(target=es2015).js diff --git a/tests/baselines/reference/isolatedModulesPlainFile-UMD.symbols b/tests/baselines/reference/isolatedModulesPlainFile-UMD(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/isolatedModulesPlainFile-UMD.symbols rename to tests/baselines/reference/isolatedModulesPlainFile-UMD(target=es2015).symbols diff --git a/tests/baselines/reference/isolatedModulesPlainFile-UMD.types b/tests/baselines/reference/isolatedModulesPlainFile-UMD(target=es2015).types similarity index 100% rename from tests/baselines/reference/isolatedModulesPlainFile-UMD.types rename to tests/baselines/reference/isolatedModulesPlainFile-UMD(target=es2015).types diff --git a/tests/baselines/reference/isolatedModulesPlainFile-UMD(target=es5).errors.txt b/tests/baselines/reference/isolatedModulesPlainFile-UMD(target=es5).errors.txt new file mode 100644 index 0000000000000..4628c31cb408a --- /dev/null +++ b/tests/baselines/reference/isolatedModulesPlainFile-UMD(target=es5).errors.txt @@ -0,0 +1,8 @@ +error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== isolatedModulesPlainFile-UMD.ts (0 errors) ==== + declare function run(a: number): void; + run(1); + \ No newline at end of file diff --git a/tests/baselines/reference/isolatedModulesPlainFile-UMD(target=es5).js b/tests/baselines/reference/isolatedModulesPlainFile-UMD(target=es5).js new file mode 100644 index 0000000000000..705fa291e69ed --- /dev/null +++ b/tests/baselines/reference/isolatedModulesPlainFile-UMD(target=es5).js @@ -0,0 +1,9 @@ +//// [tests/cases/compiler/isolatedModulesPlainFile-UMD.ts] //// + +//// [isolatedModulesPlainFile-UMD.ts] +declare function run(a: number): void; +run(1); + + +//// [isolatedModulesPlainFile-UMD.js] +run(1); diff --git a/tests/baselines/reference/isolatedModulesPlainFile-UMD(target=es5).symbols b/tests/baselines/reference/isolatedModulesPlainFile-UMD(target=es5).symbols new file mode 100644 index 0000000000000..a311f6986cb8f --- /dev/null +++ b/tests/baselines/reference/isolatedModulesPlainFile-UMD(target=es5).symbols @@ -0,0 +1,10 @@ +//// [tests/cases/compiler/isolatedModulesPlainFile-UMD.ts] //// + +=== isolatedModulesPlainFile-UMD.ts === +declare function run(a: number): void; +>run : Symbol(run, Decl(isolatedModulesPlainFile-UMD.ts, 0, 0)) +>a : Symbol(a, Decl(isolatedModulesPlainFile-UMD.ts, 0, 21)) + +run(1); +>run : Symbol(run, Decl(isolatedModulesPlainFile-UMD.ts, 0, 0)) + diff --git a/tests/baselines/reference/isolatedModulesPlainFile-UMD(target=es5).types b/tests/baselines/reference/isolatedModulesPlainFile-UMD(target=es5).types new file mode 100644 index 0000000000000..71cef5fff46d4 --- /dev/null +++ b/tests/baselines/reference/isolatedModulesPlainFile-UMD(target=es5).types @@ -0,0 +1,17 @@ +//// [tests/cases/compiler/isolatedModulesPlainFile-UMD.ts] //// + +=== isolatedModulesPlainFile-UMD.ts === +declare function run(a: number): void; +>run : (a: number) => void +> : ^ ^^ ^^^^^ +>a : number +> : ^^^^^^ + +run(1); +>run(1) : void +> : ^^^^ +>run : (a: number) => void +> : ^ ^^ ^^^^^ +>1 : 1 +> : ^ + diff --git a/tests/baselines/reference/jsDeclarationsClassExtendsVisibility(target=es2015).js b/tests/baselines/reference/jsDeclarationsClassExtendsVisibility(target=es2015).js new file mode 100644 index 0000000000000..d0be34d77782a --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsClassExtendsVisibility(target=es2015).js @@ -0,0 +1,47 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsClassExtendsVisibility.ts] //// + +//// [bar.js] +class Bar {} +module.exports = Bar; +//// [cls.js] +const Bar = require("./bar"); +const Strings = { + a: "A", + b: "B" +}; +class Foo extends Bar {} +module.exports = Foo; +module.exports.Strings = Strings; + +//// [bar.js] +class Bar { +} +module.exports = Bar; +//// [cls.js] +const Bar = require("./bar"); +const Strings = { + a: "A", + b: "B" +}; +class Foo extends Bar { +} +module.exports = Foo; +module.exports.Strings = Strings; + + +//// [bar.d.ts] +export = Bar; +declare class Bar { +} +//// [cls.d.ts] +export = Foo; +declare class Foo extends Bar { +} +declare namespace Foo { + export { Strings }; +} +import Bar = require("./bar"); +declare namespace Strings { + let a: string; + let b: string; +} diff --git a/tests/baselines/reference/jsDeclarationsClassExtendsVisibility.symbols b/tests/baselines/reference/jsDeclarationsClassExtendsVisibility(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/jsDeclarationsClassExtendsVisibility.symbols rename to tests/baselines/reference/jsDeclarationsClassExtendsVisibility(target=es2015).symbols diff --git a/tests/baselines/reference/jsDeclarationsClassExtendsVisibility.types b/tests/baselines/reference/jsDeclarationsClassExtendsVisibility(target=es2015).types similarity index 100% rename from tests/baselines/reference/jsDeclarationsClassExtendsVisibility.types rename to tests/baselines/reference/jsDeclarationsClassExtendsVisibility(target=es2015).types diff --git a/tests/baselines/reference/jsDeclarationsClassExtendsVisibility.js b/tests/baselines/reference/jsDeclarationsClassExtendsVisibility(target=es5).js similarity index 100% rename from tests/baselines/reference/jsDeclarationsClassExtendsVisibility.js rename to tests/baselines/reference/jsDeclarationsClassExtendsVisibility(target=es5).js diff --git a/tests/baselines/reference/jsDeclarationsClassExtendsVisibility(target=es5).symbols b/tests/baselines/reference/jsDeclarationsClassExtendsVisibility(target=es5).symbols new file mode 100644 index 0000000000000..4bb3ed9b506c7 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsClassExtendsVisibility(target=es5).symbols @@ -0,0 +1,46 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsClassExtendsVisibility.ts] //// + +=== cls.js === +const Bar = require("./bar"); +>Bar : Symbol(Bar, Decl(cls.js, 0, 5)) +>require : Symbol(require) +>"./bar" : Symbol("bar", Decl(bar.js, 0, 0)) + +const Strings = { +>Strings : Symbol(Strings, Decl(cls.js, 1, 5)) + + a: "A", +>a : Symbol(a, Decl(cls.js, 1, 17)) + + b: "B" +>b : Symbol(b, Decl(cls.js, 2, 11)) + +}; +class Foo extends Bar {} +>Foo : Symbol(Foo, Decl(cls.js, 4, 2)) +>Bar : Symbol(Bar, Decl(cls.js, 0, 5)) + +module.exports = Foo; +>module.exports : Symbol(module.exports, Decl(cls.js, 0, 0)) +>module : Symbol(export=, Decl(cls.js, 5, 24)) +>exports : Symbol(export=, Decl(cls.js, 5, 24)) +>Foo : Symbol(Foo, Decl(cls.js, 4, 2)) + +module.exports.Strings = Strings; +>module.exports.Strings : Symbol(Strings, Decl(cls.js, 6, 21)) +>module.exports : Symbol(Strings, Decl(cls.js, 6, 21)) +>module : Symbol(module, Decl(cls.js, 5, 24)) +>exports : Symbol(module.exports, Decl(cls.js, 0, 0)) +>Strings : Symbol(Strings, Decl(cls.js, 6, 21)) +>Strings : Symbol(Strings, Decl(cls.js, 1, 5)) + +=== bar.js === +class Bar {} +>Bar : Symbol(Bar, Decl(bar.js, 0, 0)) + +module.exports = Bar; +>module.exports : Symbol(module.exports, Decl(bar.js, 0, 0)) +>module : Symbol(export=, Decl(bar.js, 0, 12)) +>exports : Symbol(export=, Decl(bar.js, 0, 12)) +>Bar : Symbol(Bar, Decl(bar.js, 0, 0)) + diff --git a/tests/baselines/reference/jsDeclarationsClassExtendsVisibility(target=es5).types b/tests/baselines/reference/jsDeclarationsClassExtendsVisibility(target=es5).types new file mode 100644 index 0000000000000..7918a8b36b49b --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsClassExtendsVisibility(target=es5).types @@ -0,0 +1,82 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsClassExtendsVisibility.ts] //// + +=== cls.js === +const Bar = require("./bar"); +>Bar : typeof Bar +> : ^^^^^^^^^^ +>require("./bar") : typeof Bar +> : ^^^^^^^^^^ +>require : any +>"./bar" : "./bar" +> : ^^^^^^^ + +const Strings = { +>Strings : { a: string; b: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ a: "A", b: "B"} : { a: string; b: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ + + a: "A", +>a : string +> : ^^^^^^ +>"A" : "A" +> : ^^^ + + b: "B" +>b : string +> : ^^^^^^ +>"B" : "B" +> : ^^^ + +}; +class Foo extends Bar {} +>Foo : Foo +> : ^^^ +>Bar : Bar +> : ^^^ + +module.exports = Foo; +>module.exports = Foo : typeof Foo +> : ^^^^^^^^^^ +>module.exports : typeof Foo +> : ^^^^^^^^^^ +>module : { exports: typeof Foo; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^ +>exports : typeof Foo +> : ^^^^^^^^^^ +>Foo : typeof Foo +> : ^^^^^^^^^^ + +module.exports.Strings = Strings; +>module.exports.Strings = Strings : { a: string; b: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>module.exports.Strings : { a: string; b: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>module.exports : typeof Foo +> : ^^^^^^^^^^ +>module : { exports: typeof Foo; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^ +>exports : typeof Foo +> : ^^^^^^^^^^ +>Strings : { a: string; b: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>Strings : { a: string; b: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ + +=== bar.js === +class Bar {} +>Bar : Bar +> : ^^^ + +module.exports = Bar; +>module.exports = Bar : typeof Bar +> : ^^^^^^^^^^ +>module.exports : typeof Bar +> : ^^^^^^^^^^ +>module : { exports: typeof Bar; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^ +>exports : typeof Bar +> : ^^^^^^^^^^ +>Bar : typeof Bar +> : ^^^^^^^^^^ + diff --git a/tests/baselines/reference/jsDeclarationsClassImplementsGenericsSerialization(target=es2015).js b/tests/baselines/reference/jsDeclarationsClassImplementsGenericsSerialization(target=es2015).js new file mode 100644 index 0000000000000..e7682db075547 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsClassImplementsGenericsSerialization(target=es2015).js @@ -0,0 +1,63 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsClassImplementsGenericsSerialization.ts] //// + +//// [interface.ts] +export interface Encoder { + encode(value: T): Uint8Array +} +//// [lib.js] +/** + * @template T + * @implements {IEncoder} + */ +export class Encoder { + /** + * @param {T} value + */ + encode(value) { + return new Uint8Array(0) + } +} + + +/** + * @template T + * @typedef {import('./interface').Encoder} IEncoder + */ + +//// [interface.js] +export {}; +//// [lib.js] +/** + * @template T + * @implements {IEncoder} + */ +export class Encoder { + /** + * @param {T} value + */ + encode(value) { + return new Uint8Array(0); + } +} +/** + * @template T + * @typedef {import('./interface').Encoder} IEncoder + */ + + +//// [interface.d.ts] +export interface Encoder { + encode(value: T): Uint8Array; +} +//// [lib.d.ts] +/** + * @template T + * @implements {IEncoder} + */ +export class Encoder implements IEncoder { + /** + * @param {T} value + */ + encode(value: T): Uint8Array; +} +export type IEncoder = import("./interface").Encoder; diff --git a/tests/baselines/reference/jsDeclarationsClassImplementsGenericsSerialization.symbols b/tests/baselines/reference/jsDeclarationsClassImplementsGenericsSerialization(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/jsDeclarationsClassImplementsGenericsSerialization.symbols rename to tests/baselines/reference/jsDeclarationsClassImplementsGenericsSerialization(target=es2015).symbols diff --git a/tests/baselines/reference/jsDeclarationsClassImplementsGenericsSerialization.types b/tests/baselines/reference/jsDeclarationsClassImplementsGenericsSerialization(target=es2015).types similarity index 100% rename from tests/baselines/reference/jsDeclarationsClassImplementsGenericsSerialization.types rename to tests/baselines/reference/jsDeclarationsClassImplementsGenericsSerialization(target=es2015).types diff --git a/tests/baselines/reference/jsDeclarationsClassImplementsGenericsSerialization.js b/tests/baselines/reference/jsDeclarationsClassImplementsGenericsSerialization(target=es5).js similarity index 100% rename from tests/baselines/reference/jsDeclarationsClassImplementsGenericsSerialization.js rename to tests/baselines/reference/jsDeclarationsClassImplementsGenericsSerialization(target=es5).js diff --git a/tests/baselines/reference/jsDeclarationsClassImplementsGenericsSerialization(target=es5).symbols b/tests/baselines/reference/jsDeclarationsClassImplementsGenericsSerialization(target=es5).symbols new file mode 100644 index 0000000000000..0319402e91279 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsClassImplementsGenericsSerialization(target=es5).symbols @@ -0,0 +1,38 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsClassImplementsGenericsSerialization.ts] //// + +=== interface.ts === +export interface Encoder { +>Encoder : Symbol(Encoder, Decl(interface.ts, 0, 0)) +>T : Symbol(T, Decl(interface.ts, 0, 25)) + + encode(value: T): Uint8Array +>encode : Symbol(Encoder.encode, Decl(interface.ts, 0, 29)) +>value : Symbol(value, Decl(interface.ts, 1, 11)) +>T : Symbol(T, Decl(interface.ts, 0, 25)) +>Uint8Array : Symbol(Uint8Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +} +=== lib.js === +/** + * @template T + * @implements {IEncoder} + */ +export class Encoder { +>Encoder : Symbol(Encoder, Decl(lib.js, 0, 0)) + + /** + * @param {T} value + */ + encode(value) { +>encode : Symbol(Encoder.encode, Decl(lib.js, 4, 22)) +>value : Symbol(value, Decl(lib.js, 8, 11)) + + return new Uint8Array(0) +>Uint8Array : Symbol(Uint8Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + } +} + + +/** + * @template T + * @typedef {import('./interface').Encoder} IEncoder + */ diff --git a/tests/baselines/reference/jsDeclarationsClassImplementsGenericsSerialization(target=es5).types b/tests/baselines/reference/jsDeclarationsClassImplementsGenericsSerialization(target=es5).types new file mode 100644 index 0000000000000..87ea726082975 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsClassImplementsGenericsSerialization(target=es5).types @@ -0,0 +1,43 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsClassImplementsGenericsSerialization.ts] //// + +=== interface.ts === +export interface Encoder { + encode(value: T): Uint8Array +>encode : (value: T) => Uint8Array +> : ^ ^^ ^^^^^ +>value : T +> : ^ +} +=== lib.js === +/** + * @template T + * @implements {IEncoder} + */ +export class Encoder { +>Encoder : Encoder +> : ^^^^^^^^^^ + + /** + * @param {T} value + */ + encode(value) { +>encode : (value: T) => Uint8Array +> : ^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>value : T +> : ^ + + return new Uint8Array(0) +>new Uint8Array(0) : Uint8Array +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>Uint8Array : Uint8ArrayConstructor +> : ^^^^^^^^^^^^^^^^^^^^^ +>0 : 0 +> : ^ + } +} + + +/** + * @template T + * @typedef {import('./interface').Encoder} IEncoder + */ diff --git a/tests/baselines/reference/jsDeclarationsClassLeadingOptional(target=es2015).js b/tests/baselines/reference/jsDeclarationsClassLeadingOptional(target=es2015).js new file mode 100644 index 0000000000000..f5cf8f7d7ba97 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsClassLeadingOptional(target=es2015).js @@ -0,0 +1,21 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsClassLeadingOptional.ts] //// + +//// [bar.js] +export class Z { + f(x = 1, y) { + return [x, y]; + } +} + +//// [bar.js] +export class Z { + f(x = 1, y) { + return [x, y]; + } +} + + +//// [bar.d.ts] +export class Z { + f(x: number, y: any): any[]; +} diff --git a/tests/baselines/reference/jsDeclarationsClassLeadingOptional.symbols b/tests/baselines/reference/jsDeclarationsClassLeadingOptional(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/jsDeclarationsClassLeadingOptional.symbols rename to tests/baselines/reference/jsDeclarationsClassLeadingOptional(target=es2015).symbols diff --git a/tests/baselines/reference/jsDeclarationsClassLeadingOptional.types b/tests/baselines/reference/jsDeclarationsClassLeadingOptional(target=es2015).types similarity index 100% rename from tests/baselines/reference/jsDeclarationsClassLeadingOptional.types rename to tests/baselines/reference/jsDeclarationsClassLeadingOptional(target=es2015).types diff --git a/tests/baselines/reference/jsDeclarationsClassLeadingOptional.js b/tests/baselines/reference/jsDeclarationsClassLeadingOptional(target=es5).js similarity index 100% rename from tests/baselines/reference/jsDeclarationsClassLeadingOptional.js rename to tests/baselines/reference/jsDeclarationsClassLeadingOptional(target=es5).js diff --git a/tests/baselines/reference/jsDeclarationsClassLeadingOptional(target=es5).symbols b/tests/baselines/reference/jsDeclarationsClassLeadingOptional(target=es5).symbols new file mode 100644 index 0000000000000..b87c89446cebb --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsClassLeadingOptional(target=es5).symbols @@ -0,0 +1,16 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsClassLeadingOptional.ts] //// + +=== bar.js === +export class Z { +>Z : Symbol(Z, Decl(bar.js, 0, 0)) + + f(x = 1, y) { +>f : Symbol(Z.f, Decl(bar.js, 0, 16)) +>x : Symbol(x, Decl(bar.js, 1, 6)) +>y : Symbol(y, Decl(bar.js, 1, 12)) + + return [x, y]; +>x : Symbol(x, Decl(bar.js, 1, 6)) +>y : Symbol(y, Decl(bar.js, 1, 12)) + } +} diff --git a/tests/baselines/reference/jsDeclarationsClassLeadingOptional(target=es5).types b/tests/baselines/reference/jsDeclarationsClassLeadingOptional(target=es5).types new file mode 100644 index 0000000000000..5777db1925c90 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsClassLeadingOptional(target=es5).types @@ -0,0 +1,24 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsClassLeadingOptional.ts] //// + +=== bar.js === +export class Z { +>Z : Z +> : ^ + + f(x = 1, y) { +>f : (x: number, y: any) => any[] +> : ^ ^^^^^^^^^^ ^^^^^^^^^^^^^^^ +>x : number +> : ^^^^^^ +>1 : 1 +> : ^ +>y : any + + return [x, y]; +>[x, y] : any[] +> : ^^^^^ +>x : number +> : ^^^^^^ +>y : any + } +} diff --git a/tests/baselines/reference/jsDeclarationsClassLikeHeuristic.errors.txt b/tests/baselines/reference/jsDeclarationsClassLikeHeuristic(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/jsDeclarationsClassLikeHeuristic.errors.txt rename to tests/baselines/reference/jsDeclarationsClassLikeHeuristic(target=es2015).errors.txt diff --git a/tests/baselines/reference/jsDeclarationsClassLikeHeuristic(target=es2015).js b/tests/baselines/reference/jsDeclarationsClassLikeHeuristic(target=es2015).js new file mode 100644 index 0000000000000..7b09fc06ddc63 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsClassLikeHeuristic(target=es2015).js @@ -0,0 +1,20 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsClassLikeHeuristic.ts] //// + +//// [index.js] +// https://github.com/microsoft/TypeScript/issues/35801 +let A; +A = {}; +A.prototype.b = {}; + +//// [index.js] +// https://github.com/microsoft/TypeScript/issues/35801 +let A; +A = {}; +A.prototype.b = {}; + + +//// [index.d.ts] +declare class A { + private constructor(); + b: {}; +} diff --git a/tests/baselines/reference/jsDeclarationsClassLikeHeuristic.symbols b/tests/baselines/reference/jsDeclarationsClassLikeHeuristic(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/jsDeclarationsClassLikeHeuristic.symbols rename to tests/baselines/reference/jsDeclarationsClassLikeHeuristic(target=es2015).symbols diff --git a/tests/baselines/reference/jsDeclarationsClassLikeHeuristic.types b/tests/baselines/reference/jsDeclarationsClassLikeHeuristic(target=es2015).types similarity index 100% rename from tests/baselines/reference/jsDeclarationsClassLikeHeuristic.types rename to tests/baselines/reference/jsDeclarationsClassLikeHeuristic(target=es2015).types diff --git a/tests/baselines/reference/jsDeclarationsClassLikeHeuristic(target=es5).errors.txt b/tests/baselines/reference/jsDeclarationsClassLikeHeuristic(target=es5).errors.txt new file mode 100644 index 0000000000000..ba131b816fda2 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsClassLikeHeuristic(target=es5).errors.txt @@ -0,0 +1,10 @@ +index.js(4,3): error TS2339: Property 'prototype' does not exist on type '{}'. + + +==== index.js (1 errors) ==== + // https://github.com/microsoft/TypeScript/issues/35801 + let A; + A = {}; + A.prototype.b = {}; + ~~~~~~~~~ +!!! error TS2339: Property 'prototype' does not exist on type '{}'. \ No newline at end of file diff --git a/tests/baselines/reference/jsDeclarationsClassLikeHeuristic.js b/tests/baselines/reference/jsDeclarationsClassLikeHeuristic(target=es5).js similarity index 100% rename from tests/baselines/reference/jsDeclarationsClassLikeHeuristic.js rename to tests/baselines/reference/jsDeclarationsClassLikeHeuristic(target=es5).js diff --git a/tests/baselines/reference/jsDeclarationsClassLikeHeuristic(target=es5).symbols b/tests/baselines/reference/jsDeclarationsClassLikeHeuristic(target=es5).symbols new file mode 100644 index 0000000000000..eb64e17331f90 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsClassLikeHeuristic(target=es5).symbols @@ -0,0 +1,15 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsClassLikeHeuristic.ts] //// + +=== index.js === +// https://github.com/microsoft/TypeScript/issues/35801 +let A; +>A : Symbol(A, Decl(index.js, 1, 3)) + +A = {}; +>A : Symbol(A, Decl(index.js, 1, 3)) + +A.prototype.b = {}; +>A.prototype : Symbol(A.b, Decl(index.js, 2, 7)) +>A : Symbol(A, Decl(index.js, 1, 3)) +>b : Symbol(A.b, Decl(index.js, 2, 7)) + diff --git a/tests/baselines/reference/jsDeclarationsClassLikeHeuristic(target=es5).types b/tests/baselines/reference/jsDeclarationsClassLikeHeuristic(target=es5).types new file mode 100644 index 0000000000000..2272e18db64f5 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsClassLikeHeuristic(target=es5).types @@ -0,0 +1,32 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsClassLikeHeuristic.ts] //// + +=== index.js === +// https://github.com/microsoft/TypeScript/issues/35801 +let A; +>A : any +> : ^^^ + +A = {}; +>A = {} : {} +> : ^^ +>A : any +> : ^^^ +>{} : {} +> : ^^ + +A.prototype.b = {}; +>A.prototype.b = {} : {} +> : ^^ +>A.prototype.b : any +> : ^^^ +>A.prototype : any +> : ^^^ +>A : {} +> : ^^ +>prototype : any +> : ^^^ +>b : any +> : ^^^ +>{} : {} +> : ^^ + diff --git a/tests/baselines/reference/jsDeclarationsClassStatic(target=es2015).js b/tests/baselines/reference/jsDeclarationsClassStatic(target=es2015).js new file mode 100644 index 0000000000000..26cb523ae624f --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsClassStatic(target=es2015).js @@ -0,0 +1,69 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsClassStatic.ts] //// + +//// [source.js] +class Handler { + static get OPTIONS() { + return 1; + } + + process() { + } +} +Handler.statische = function() { } +const Strings = { + a: "A", + b: "B" +} + +module.exports = Handler; +module.exports.Strings = Strings + +/** + * @typedef {Object} HandlerOptions + * @property {String} name + * Should be able to export a type alias at the same time. + */ + + +//// [source.js] +class Handler { + static get OPTIONS() { + return 1; + } + process() { + } +} +Handler.statische = function () { }; +const Strings = { + a: "A", + b: "B" +}; +module.exports = Handler; +module.exports.Strings = Strings; +/** + * @typedef {Object} HandlerOptions + * @property {String} name + * Should be able to export a type alias at the same time. + */ + + +//// [source.d.ts] +export = Handler; +declare class Handler { + static get OPTIONS(): number; + process(): void; +} +declare namespace Handler { + export { statische, Strings, HandlerOptions }; +} +declare function statische(): void; +declare namespace Strings { + let a: string; + let b: string; +} +type HandlerOptions = { + /** + * Should be able to export a type alias at the same time. + */ + name: string; +}; diff --git a/tests/baselines/reference/jsDeclarationsClassStatic.symbols b/tests/baselines/reference/jsDeclarationsClassStatic(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/jsDeclarationsClassStatic.symbols rename to tests/baselines/reference/jsDeclarationsClassStatic(target=es2015).symbols diff --git a/tests/baselines/reference/jsDeclarationsClassStatic.types b/tests/baselines/reference/jsDeclarationsClassStatic(target=es2015).types similarity index 100% rename from tests/baselines/reference/jsDeclarationsClassStatic.types rename to tests/baselines/reference/jsDeclarationsClassStatic(target=es2015).types diff --git a/tests/baselines/reference/jsDeclarationsClassStatic.js b/tests/baselines/reference/jsDeclarationsClassStatic(target=es5).js similarity index 100% rename from tests/baselines/reference/jsDeclarationsClassStatic.js rename to tests/baselines/reference/jsDeclarationsClassStatic(target=es5).js diff --git a/tests/baselines/reference/jsDeclarationsClassStatic(target=es5).symbols b/tests/baselines/reference/jsDeclarationsClassStatic(target=es5).symbols new file mode 100644 index 0000000000000..61088886a87f5 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsClassStatic(target=es5).symbols @@ -0,0 +1,51 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsClassStatic.ts] //// + +=== source.js === +class Handler { +>Handler : Symbol(Handler, Decl(source.js, 0, 0), Decl(source.js, 7, 1)) + + static get OPTIONS() { +>OPTIONS : Symbol(Handler.OPTIONS, Decl(source.js, 0, 15)) + + return 1; + } + + process() { +>process : Symbol(Handler.process, Decl(source.js, 3, 2)) + } +} +Handler.statische = function() { } +>Handler.statische : Symbol(Handler.statische, Decl(source.js, 7, 1)) +>Handler : Symbol(Handler, Decl(source.js, 0, 0), Decl(source.js, 7, 1)) +>statische : Symbol(Handler.statische, Decl(source.js, 7, 1)) + +const Strings = { +>Strings : Symbol(Strings, Decl(source.js, 9, 5)) + + a: "A", +>a : Symbol(a, Decl(source.js, 9, 17)) + + b: "B" +>b : Symbol(b, Decl(source.js, 10, 11)) +} + +module.exports = Handler; +>module.exports : Symbol(module.exports, Decl(source.js, 0, 0)) +>module : Symbol(export=, Decl(source.js, 12, 1)) +>exports : Symbol(export=, Decl(source.js, 12, 1)) +>Handler : Symbol(Handler, Decl(source.js, 0, 0), Decl(source.js, 7, 1)) + +module.exports.Strings = Strings +>module.exports.Strings : Symbol(Strings, Decl(source.js, 14, 25)) +>module.exports : Symbol(Strings, Decl(source.js, 14, 25)) +>module : Symbol(module, Decl(source.js, 12, 1)) +>exports : Symbol(module.exports, Decl(source.js, 0, 0)) +>Strings : Symbol(Strings, Decl(source.js, 14, 25)) +>Strings : Symbol(Strings, Decl(source.js, 9, 5)) + +/** + * @typedef {Object} HandlerOptions + * @property {String} name + * Should be able to export a type alias at the same time. + */ + diff --git a/tests/baselines/reference/jsDeclarationsClassStatic(target=es5).types b/tests/baselines/reference/jsDeclarationsClassStatic(target=es5).types new file mode 100644 index 0000000000000..c856a77077c6c --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsClassStatic(target=es5).types @@ -0,0 +1,86 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsClassStatic.ts] //// + +=== source.js === +class Handler { +>Handler : Handler +> : ^^^^^^^ + + static get OPTIONS() { +>OPTIONS : number +> : ^^^^^^ + + return 1; +>1 : 1 +> : ^ + } + + process() { +>process : () => void +> : ^^^^^^^^^^ + } +} +Handler.statische = function() { } +>Handler.statische = function() { } : () => void +> : ^^^^^^^^^^ +>Handler.statische : () => void +> : ^^^^^^^^^^ +>Handler : typeof Handler +> : ^^^^^^^^^^^^^^ +>statische : () => void +> : ^^^^^^^^^^ +>function() { } : () => void +> : ^^^^^^^^^^ + +const Strings = { +>Strings : { a: string; b: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ a: "A", b: "B"} : { a: string; b: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ + + a: "A", +>a : string +> : ^^^^^^ +>"A" : "A" +> : ^^^ + + b: "B" +>b : string +> : ^^^^^^ +>"B" : "B" +> : ^^^ +} + +module.exports = Handler; +>module.exports = Handler : typeof Handler +> : ^^^^^^^^^^^^^^ +>module.exports : typeof Handler +> : ^^^^^^^^^^^^^^ +>module : { exports: typeof Handler; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exports : typeof Handler +> : ^^^^^^^^^^^^^^ +>Handler : typeof Handler +> : ^^^^^^^^^^^^^^ + +module.exports.Strings = Strings +>module.exports.Strings = Strings : { a: string; b: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>module.exports.Strings : { a: string; b: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>module.exports : typeof Handler +> : ^^^^^^^^^^^^^^ +>module : { exports: typeof Handler; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exports : typeof Handler +> : ^^^^^^^^^^^^^^ +>Strings : { a: string; b: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>Strings : { a: string; b: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ + +/** + * @typedef {Object} HandlerOptions + * @property {String} name + * Should be able to export a type alias at the same time. + */ + diff --git a/tests/baselines/reference/jsDeclarationsClassStaticMethodAugmentation(target=es2015).js b/tests/baselines/reference/jsDeclarationsClassStaticMethodAugmentation(target=es2015).js new file mode 100644 index 0000000000000..063d34fc3bc26 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsClassStaticMethodAugmentation(target=es2015).js @@ -0,0 +1,25 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsClassStaticMethodAugmentation.ts] //// + +//// [source.js] +export class Clazz { + static method() { } +} + +Clazz.method.prop = 5; + +//// [source.js] +export class Clazz { + static method() { } +} +Clazz.method.prop = 5; + + +//// [source.d.ts] +export class Clazz { +} +export namespace Clazz { + function method(): void; + namespace method { + let prop: number; + } +} diff --git a/tests/baselines/reference/jsDeclarationsClassStaticMethodAugmentation.symbols b/tests/baselines/reference/jsDeclarationsClassStaticMethodAugmentation(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/jsDeclarationsClassStaticMethodAugmentation.symbols rename to tests/baselines/reference/jsDeclarationsClassStaticMethodAugmentation(target=es2015).symbols diff --git a/tests/baselines/reference/jsDeclarationsClassStaticMethodAugmentation.types b/tests/baselines/reference/jsDeclarationsClassStaticMethodAugmentation(target=es2015).types similarity index 100% rename from tests/baselines/reference/jsDeclarationsClassStaticMethodAugmentation.types rename to tests/baselines/reference/jsDeclarationsClassStaticMethodAugmentation(target=es2015).types diff --git a/tests/baselines/reference/jsDeclarationsClassStaticMethodAugmentation.js b/tests/baselines/reference/jsDeclarationsClassStaticMethodAugmentation(target=es5).js similarity index 100% rename from tests/baselines/reference/jsDeclarationsClassStaticMethodAugmentation.js rename to tests/baselines/reference/jsDeclarationsClassStaticMethodAugmentation(target=es5).js diff --git a/tests/baselines/reference/jsDeclarationsClassStaticMethodAugmentation(target=es5).symbols b/tests/baselines/reference/jsDeclarationsClassStaticMethodAugmentation(target=es5).symbols new file mode 100644 index 0000000000000..e663d3578a5dc --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsClassStaticMethodAugmentation(target=es5).symbols @@ -0,0 +1,17 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsClassStaticMethodAugmentation.ts] //// + +=== source.js === +export class Clazz { +>Clazz : Symbol(Clazz, Decl(source.js, 0, 0), Decl(source.js, 2, 1)) + + static method() { } +>method : Symbol(Clazz.method, Decl(source.js, 0, 20), Decl(source.js, 4, 6)) +} + +Clazz.method.prop = 5; +>Clazz.method.prop : Symbol(Clazz.method.prop, Decl(source.js, 2, 1)) +>Clazz.method : Symbol(Clazz.method, Decl(source.js, 0, 20), Decl(source.js, 4, 6)) +>Clazz : Symbol(Clazz, Decl(source.js, 0, 0), Decl(source.js, 2, 1)) +>method : Symbol(Clazz.method, Decl(source.js, 0, 20), Decl(source.js, 4, 6)) +>prop : Symbol(Clazz.method.prop, Decl(source.js, 2, 1)) + diff --git a/tests/baselines/reference/jsDeclarationsClassStaticMethodAugmentation(target=es5).types b/tests/baselines/reference/jsDeclarationsClassStaticMethodAugmentation(target=es5).types new file mode 100644 index 0000000000000..39b22517375e8 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsClassStaticMethodAugmentation(target=es5).types @@ -0,0 +1,28 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsClassStaticMethodAugmentation.ts] //// + +=== source.js === +export class Clazz { +>Clazz : Clazz +> : ^^^^^ + + static method() { } +>method : typeof Clazz.method +> : ^^^^^^^^^^^^^^^^^^^ +} + +Clazz.method.prop = 5; +>Clazz.method.prop = 5 : 5 +> : ^ +>Clazz.method.prop : number +> : ^^^^^^ +>Clazz.method : typeof Clazz.method +> : ^^^^^^^^^^^^^^^^^^^ +>Clazz : typeof Clazz +> : ^^^^^^^^^^^^ +>method : typeof Clazz.method +> : ^^^^^^^^^^^^^^^^^^^ +>prop : number +> : ^^^^^^ +>5 : 5 +> : ^ + diff --git a/tests/baselines/reference/jsDeclarationsClasses(target=es2015).js b/tests/baselines/reference/jsDeclarationsClasses(target=es2015).js new file mode 100644 index 0000000000000..cb9381efe143b --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsClasses(target=es2015).js @@ -0,0 +1,486 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsClasses.ts] //// + +//// [index.js] +export class A {} + +export class B { + static cat = "cat"; +} + +export class C { + static Cls = class {} +} + +export class D { + /** + * @param {number} a + * @param {number} b + */ + constructor(a, b) {} +} + +/** + * @template T,U + */ +export class E { + /** + * @type {T & U} + */ + field; + + // @readonly is currently unsupported, it seems - included here just in case that changes + /** + * @type {T & U} + * @readonly + */ + readonlyField; + + initializedField = 12; + + /** + * @return {U} + */ + get f1() { return /** @type {*} */(null); } + + /** + * @param {U} _p + */ + set f1(_p) {} + + /** + * @return {U} + */ + get f2() { return /** @type {*} */(null); } + + /** + * @param {U} _p + */ + set f3(_p) {} + + /** + * @param {T} a + * @param {U} b + */ + constructor(a, b) {} + + + /** + * @type {string} + */ + static staticField; + + // @readonly is currently unsupported, it seems - included here just in case that changes + /** + * @type {string} + * @readonly + */ + static staticReadonlyField; + + static staticInitializedField = 12; + + /** + * @return {string} + */ + static get s1() { return ""; } + + /** + * @param {string} _p + */ + static set s1(_p) {} + + /** + * @return {string} + */ + static get s2() { return ""; } + + /** + * @param {string} _p + */ + static set s3(_p) {} +} + +/** + * @template T,U + */ +export class F { + /** + * @type {T & U} + */ + field; + /** + * @param {T} a + * @param {U} b + */ + constructor(a, b) {} + + /** + * @template A,B + * @param {A} a + * @param {B} b + */ + static create(a, b) { return new F(a, b); } +} + +class G {} + +export { G }; + +class HH {} + +export { HH as H }; + +export class I {} +export { I as II }; + +export { J as JJ }; +export class J {} + + +export class K { + constructor() { + this.p1 = 12; + this.p2 = "ok"; + } + + method() { + return this.p1; + } +} + +export class L extends K {} + +export class M extends null { + constructor() { + this.prop = 12; + } +} + + +/** + * @template T + */ +export class N extends L { + /** + * @param {T} param + */ + constructor(param) { + super(); + this.another = param; + } +} + +/** + * @template U + * @extends {N} + */ +export class O extends N { + /** + * @param {U} param + */ + constructor(param) { + super(param); + this.another2 = param; + } +} + +var x = /** @type {*} */(null); + +export class VariableBase extends x {} + +export class HasStatics { + static staticMethod() {} +} + +export class ExtendsStatics extends HasStatics { + static also() {} +} + + +//// [index.js] +export class A { +} +export class B { +} +B.cat = "cat"; +export class C { +} +C.Cls = class { +}; +export class D { + /** + * @param {number} a + * @param {number} b + */ + constructor(a, b) { } +} +/** + * @template T,U + */ +export class E { + /** + * @return {U} + */ + get f1() { return /** @type {*} */ (null); } + /** + * @param {U} _p + */ + set f1(_p) { } + /** + * @return {U} + */ + get f2() { return /** @type {*} */ (null); } + /** + * @param {U} _p + */ + set f3(_p) { } + /** + * @param {T} a + * @param {U} b + */ + constructor(a, b) { + this.initializedField = 12; + } + /** + * @return {string} + */ + static get s1() { return ""; } + /** + * @param {string} _p + */ + static set s1(_p) { } + /** + * @return {string} + */ + static get s2() { return ""; } + /** + * @param {string} _p + */ + static set s3(_p) { } +} +E.staticInitializedField = 12; +/** + * @template T,U + */ +export class F { + /** + * @param {T} a + * @param {U} b + */ + constructor(a, b) { } + /** + * @template A,B + * @param {A} a + * @param {B} b + */ + static create(a, b) { return new F(a, b); } +} +class G { +} +export { G }; +class HH { +} +export { HH as H }; +export class I { +} +export { I as II }; +export { J as JJ }; +export class J { +} +export class K { + constructor() { + this.p1 = 12; + this.p2 = "ok"; + } + method() { + return this.p1; + } +} +export class L extends K { +} +export class M extends null { + constructor() { + this.prop = 12; + } +} +/** + * @template T + */ +export class N extends L { + /** + * @param {T} param + */ + constructor(param) { + super(); + this.another = param; + } +} +/** + * @template U + * @extends {N} + */ +export class O extends N { + /** + * @param {U} param + */ + constructor(param) { + super(param); + this.another2 = param; + } +} +var x = /** @type {*} */ (null); +export class VariableBase extends x { +} +export class HasStatics { + static staticMethod() { } +} +export class ExtendsStatics extends HasStatics { + static also() { } +} + + +//// [index.d.ts] +export class A { +} +export class B { + static cat: string; +} +export class C { + static Cls: { + new (): {}; + }; +} +export class D { + /** + * @param {number} a + * @param {number} b + */ + constructor(a: number, b: number); +} +/** + * @template T,U + */ +export class E { + /** + * @type {string} + */ + static staticField: string; + /** + * @type {string} + * @readonly + */ + static readonly staticReadonlyField: string; + static staticInitializedField: number; + /** + * @param {string} _p + */ + static set s1(_p: string); + /** + * @return {string} + */ + static get s1(): string; + /** + * @return {string} + */ + static get s2(): string; + /** + * @param {string} _p + */ + static set s3(_p: string); + /** + * @param {T} a + * @param {U} b + */ + constructor(a: T, b: U); + /** + * @type {T & U} + */ + field: T & U; + /** + * @type {T & U} + * @readonly + */ + readonly readonlyField: T & U; + initializedField: number; + /** + * @param {U} _p + */ + set f1(_p: U); + /** + * @return {U} + */ + get f1(): U; + /** + * @return {U} + */ + get f2(): U; + /** + * @param {U} _p + */ + set f3(_p: U); +} +/** + * @template T,U + */ +export class F { + /** + * @template A,B + * @param {A} a + * @param {B} b + */ + static create(a: A, b: B): F; + /** + * @param {T} a + * @param {U} b + */ + constructor(a: T, b: U); + /** + * @type {T & U} + */ + field: T & U; +} +export class I { +} +export class J { +} +export class K { + p1: number; + p2: string; + method(): number; +} +export class L extends K { +} +export class M { + prop: number; +} +/** + * @template T + */ +export class N extends L { + /** + * @param {T} param + */ + constructor(param: T); + another: T; +} +/** + * @template U + * @extends {N} + */ +export class O extends N { + another2: U; +} +declare const VariableBase_base: any; +export class VariableBase extends VariableBase_base { + [x: string]: any; +} +export class HasStatics { + static staticMethod(): void; +} +export class ExtendsStatics extends HasStatics { + static also(): void; +} +export class G { +} +declare class HH { +} +export { HH as H, I as II, J as JJ }; diff --git a/tests/baselines/reference/jsDeclarationsClasses.symbols b/tests/baselines/reference/jsDeclarationsClasses(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/jsDeclarationsClasses.symbols rename to tests/baselines/reference/jsDeclarationsClasses(target=es2015).symbols diff --git a/tests/baselines/reference/jsDeclarationsClasses.types b/tests/baselines/reference/jsDeclarationsClasses(target=es2015).types similarity index 100% rename from tests/baselines/reference/jsDeclarationsClasses.types rename to tests/baselines/reference/jsDeclarationsClasses(target=es2015).types diff --git a/tests/baselines/reference/jsDeclarationsClasses.js b/tests/baselines/reference/jsDeclarationsClasses(target=es5).js similarity index 100% rename from tests/baselines/reference/jsDeclarationsClasses.js rename to tests/baselines/reference/jsDeclarationsClasses(target=es5).js diff --git a/tests/baselines/reference/jsDeclarationsClasses(target=es5).symbols b/tests/baselines/reference/jsDeclarationsClasses(target=es5).symbols new file mode 100644 index 0000000000000..4915ba4dc698a --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsClasses(target=es5).symbols @@ -0,0 +1,309 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsClasses.ts] //// + +=== index.js === +export class A {} +>A : Symbol(A, Decl(index.js, 0, 0)) + +export class B { +>B : Symbol(B, Decl(index.js, 0, 17)) + + static cat = "cat"; +>cat : Symbol(B.cat, Decl(index.js, 2, 16)) +} + +export class C { +>C : Symbol(C, Decl(index.js, 4, 1)) + + static Cls = class {} +>Cls : Symbol(C.Cls, Decl(index.js, 6, 16)) +} + +export class D { +>D : Symbol(D, Decl(index.js, 8, 1)) + + /** + * @param {number} a + * @param {number} b + */ + constructor(a, b) {} +>a : Symbol(a, Decl(index.js, 15, 16)) +>b : Symbol(b, Decl(index.js, 15, 18)) +} + +/** + * @template T,U + */ +export class E { +>E : Symbol(E, Decl(index.js, 16, 1)) + + /** + * @type {T & U} + */ + field; +>field : Symbol(E.field, Decl(index.js, 21, 16)) + + // @readonly is currently unsupported, it seems - included here just in case that changes + /** + * @type {T & U} + * @readonly + */ + readonlyField; +>readonlyField : Symbol(E.readonlyField, Decl(index.js, 25, 10)) + + initializedField = 12; +>initializedField : Symbol(E.initializedField, Decl(index.js, 32, 18)) + + /** + * @return {U} + */ + get f1() { return /** @type {*} */(null); } +>f1 : Symbol(E.f1, Decl(index.js, 34, 26), Decl(index.js, 39, 47)) + + /** + * @param {U} _p + */ + set f1(_p) {} +>f1 : Symbol(E.f1, Decl(index.js, 34, 26), Decl(index.js, 39, 47)) +>_p : Symbol(_p, Decl(index.js, 44, 11)) + + /** + * @return {U} + */ + get f2() { return /** @type {*} */(null); } +>f2 : Symbol(E.f2, Decl(index.js, 44, 17)) + + /** + * @param {U} _p + */ + set f3(_p) {} +>f3 : Symbol(E.f3, Decl(index.js, 49, 47)) +>_p : Symbol(_p, Decl(index.js, 54, 11)) + + /** + * @param {T} a + * @param {U} b + */ + constructor(a, b) {} +>a : Symbol(a, Decl(index.js, 60, 16)) +>b : Symbol(b, Decl(index.js, 60, 18)) + + + /** + * @type {string} + */ + static staticField; +>staticField : Symbol(E.staticField, Decl(index.js, 60, 24)) + + // @readonly is currently unsupported, it seems - included here just in case that changes + /** + * @type {string} + * @readonly + */ + static staticReadonlyField; +>staticReadonlyField : Symbol(E.staticReadonlyField, Decl(index.js, 66, 23)) + + static staticInitializedField = 12; +>staticInitializedField : Symbol(E.staticInitializedField, Decl(index.js, 73, 31)) + + /** + * @return {string} + */ + static get s1() { return ""; } +>s1 : Symbol(E.s1, Decl(index.js, 75, 39), Decl(index.js, 80, 34)) + + /** + * @param {string} _p + */ + static set s1(_p) {} +>s1 : Symbol(E.s1, Decl(index.js, 75, 39), Decl(index.js, 80, 34)) +>_p : Symbol(_p, Decl(index.js, 85, 18)) + + /** + * @return {string} + */ + static get s2() { return ""; } +>s2 : Symbol(E.s2, Decl(index.js, 85, 24)) + + /** + * @param {string} _p + */ + static set s3(_p) {} +>s3 : Symbol(E.s3, Decl(index.js, 90, 34)) +>_p : Symbol(_p, Decl(index.js, 95, 18)) +} + +/** + * @template T,U + */ +export class F { +>F : Symbol(F, Decl(index.js, 96, 1)) + + /** + * @type {T & U} + */ + field; +>field : Symbol(F.field, Decl(index.js, 101, 16)) + + /** + * @param {T} a + * @param {U} b + */ + constructor(a, b) {} +>a : Symbol(a, Decl(index.js, 110, 16)) +>b : Symbol(b, Decl(index.js, 110, 18)) + + /** + * @template A,B + * @param {A} a + * @param {B} b + */ + static create(a, b) { return new F(a, b); } +>create : Symbol(F.create, Decl(index.js, 110, 24)) +>a : Symbol(a, Decl(index.js, 117, 18)) +>b : Symbol(b, Decl(index.js, 117, 20)) +>F : Symbol(F, Decl(index.js, 96, 1)) +>a : Symbol(a, Decl(index.js, 117, 18)) +>b : Symbol(b, Decl(index.js, 117, 20)) +} + +class G {} +>G : Symbol(G, Decl(index.js, 118, 1)) + +export { G }; +>G : Symbol(G, Decl(index.js, 122, 8)) + +class HH {} +>HH : Symbol(HH, Decl(index.js, 122, 13)) + +export { HH as H }; +>HH : Symbol(HH, Decl(index.js, 122, 13)) +>H : Symbol(H, Decl(index.js, 126, 8)) + +export class I {} +>I : Symbol(I, Decl(index.js, 126, 19)) + +export { I as II }; +>I : Symbol(I, Decl(index.js, 126, 19)) +>II : Symbol(II, Decl(index.js, 129, 8)) + +export { J as JJ }; +>J : Symbol(J, Decl(index.js, 131, 19)) +>JJ : Symbol(JJ, Decl(index.js, 131, 8)) + +export class J {} +>J : Symbol(J, Decl(index.js, 131, 19)) + + +export class K { +>K : Symbol(K, Decl(index.js, 132, 17)) + + constructor() { + this.p1 = 12; +>this.p1 : Symbol(K.p1, Decl(index.js, 136, 19)) +>this : Symbol(K, Decl(index.js, 132, 17)) +>p1 : Symbol(K.p1, Decl(index.js, 136, 19)) + + this.p2 = "ok"; +>this.p2 : Symbol(K.p2, Decl(index.js, 137, 21)) +>this : Symbol(K, Decl(index.js, 132, 17)) +>p2 : Symbol(K.p2, Decl(index.js, 137, 21)) + } + + method() { +>method : Symbol(K.method, Decl(index.js, 139, 5)) + + return this.p1; +>this.p1 : Symbol(K.p1, Decl(index.js, 136, 19)) +>this : Symbol(K, Decl(index.js, 132, 17)) +>p1 : Symbol(K.p1, Decl(index.js, 136, 19)) + } +} + +export class L extends K {} +>L : Symbol(L, Decl(index.js, 144, 1)) +>K : Symbol(K, Decl(index.js, 132, 17)) + +export class M extends null { +>M : Symbol(M, Decl(index.js, 146, 27)) + + constructor() { + this.prop = 12; +>this.prop : Symbol(M.prop, Decl(index.js, 149, 19)) +>this : Symbol(M, Decl(index.js, 146, 27)) +>prop : Symbol(M.prop, Decl(index.js, 149, 19)) + } +} + + +/** + * @template T + */ +export class N extends L { +>N : Symbol(N, Decl(index.js, 152, 1)) +>L : Symbol(L, Decl(index.js, 144, 1)) + + /** + * @param {T} param + */ + constructor(param) { +>param : Symbol(param, Decl(index.js, 162, 16)) + + super(); +>super : Symbol(L, Decl(index.js, 144, 1)) + + this.another = param; +>this.another : Symbol(N.another, Decl(index.js, 163, 16)) +>this : Symbol(N, Decl(index.js, 152, 1)) +>another : Symbol(N.another, Decl(index.js, 163, 16)) +>param : Symbol(param, Decl(index.js, 162, 16)) + } +} + +/** + * @template U + * @extends {N} + */ +export class O extends N { +>O : Symbol(O, Decl(index.js, 166, 1)) +>N : Symbol(N, Decl(index.js, 152, 1)) + + /** + * @param {U} param + */ + constructor(param) { +>param : Symbol(param, Decl(index.js, 176, 16)) + + super(param); +>super : Symbol(N, Decl(index.js, 152, 1)) +>param : Symbol(param, Decl(index.js, 176, 16)) + + this.another2 = param; +>this.another2 : Symbol(O.another2, Decl(index.js, 177, 21)) +>this : Symbol(O, Decl(index.js, 166, 1)) +>another2 : Symbol(O.another2, Decl(index.js, 177, 21)) +>param : Symbol(param, Decl(index.js, 176, 16)) + } +} + +var x = /** @type {*} */(null); +>x : Symbol(x, Decl(index.js, 182, 3)) + +export class VariableBase extends x {} +>VariableBase : Symbol(VariableBase, Decl(index.js, 182, 31)) +>x : Symbol(x, Decl(index.js, 182, 3)) + +export class HasStatics { +>HasStatics : Symbol(HasStatics, Decl(index.js, 184, 38)) + + static staticMethod() {} +>staticMethod : Symbol(HasStatics.staticMethod, Decl(index.js, 186, 25)) +} + +export class ExtendsStatics extends HasStatics { +>ExtendsStatics : Symbol(ExtendsStatics, Decl(index.js, 188, 1)) +>HasStatics : Symbol(HasStatics, Decl(index.js, 184, 38)) + + static also() {} +>also : Symbol(ExtendsStatics.also, Decl(index.js, 190, 48)) +} + diff --git a/tests/baselines/reference/jsDeclarationsClasses(target=es5).types b/tests/baselines/reference/jsDeclarationsClasses(target=es5).types new file mode 100644 index 0000000000000..02d06cb9a3656 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsClasses(target=es5).types @@ -0,0 +1,431 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsClasses.ts] //// + +=== index.js === +export class A {} +>A : A +> : ^ + +export class B { +>B : B +> : ^ + + static cat = "cat"; +>cat : string +> : ^^^^^^ +>"cat" : "cat" +> : ^^^^^ +} + +export class C { +>C : C +> : ^ + + static Cls = class {} +>Cls : typeof (Anonymous class) +> : ^^^^^^^^^^^^^^^^^^^^^^^^ +>class {} : typeof (Anonymous class) +> : ^^^^^^^^^^^^^^^^^^^^^^^^ +} + +export class D { +>D : D +> : ^ + + /** + * @param {number} a + * @param {number} b + */ + constructor(a, b) {} +>a : number +> : ^^^^^^ +>b : number +> : ^^^^^^ +} + +/** + * @template T,U + */ +export class E { +>E : E +> : ^^^^^^^ + + /** + * @type {T & U} + */ + field; +>field : T & U +> : ^^^^^ + + // @readonly is currently unsupported, it seems - included here just in case that changes + /** + * @type {T & U} + * @readonly + */ + readonlyField; +>readonlyField : T & U +> : ^^^^^ + + initializedField = 12; +>initializedField : number +> : ^^^^^^ +>12 : 12 +> : ^^ + + /** + * @return {U} + */ + get f1() { return /** @type {*} */(null); } +>f1 : U +> : ^ +>(null) : any + + /** + * @param {U} _p + */ + set f1(_p) {} +>f1 : U +> : ^ +>_p : U +> : ^ + + /** + * @return {U} + */ + get f2() { return /** @type {*} */(null); } +>f2 : U +> : ^ +>(null) : any + + /** + * @param {U} _p + */ + set f3(_p) {} +>f3 : U +> : ^ +>_p : U +> : ^ + + /** + * @param {T} a + * @param {U} b + */ + constructor(a, b) {} +>a : T +> : ^ +>b : U +> : ^ + + + /** + * @type {string} + */ + static staticField; +>staticField : string +> : ^^^^^^ + + // @readonly is currently unsupported, it seems - included here just in case that changes + /** + * @type {string} + * @readonly + */ + static staticReadonlyField; +>staticReadonlyField : string +> : ^^^^^^ + + static staticInitializedField = 12; +>staticInitializedField : number +> : ^^^^^^ +>12 : 12 +> : ^^ + + /** + * @return {string} + */ + static get s1() { return ""; } +>s1 : string +> : ^^^^^^ +>"" : "" +> : ^^ + + /** + * @param {string} _p + */ + static set s1(_p) {} +>s1 : string +> : ^^^^^^ +>_p : string +> : ^^^^^^ + + /** + * @return {string} + */ + static get s2() { return ""; } +>s2 : string +> : ^^^^^^ +>"" : "" +> : ^^ + + /** + * @param {string} _p + */ + static set s3(_p) {} +>s3 : string +> : ^^^^^^ +>_p : string +> : ^^^^^^ +} + +/** + * @template T,U + */ +export class F { +>F : F +> : ^^^^^^^ + + /** + * @type {T & U} + */ + field; +>field : T & U +> : ^^^^^ + + /** + * @param {T} a + * @param {U} b + */ + constructor(a, b) {} +>a : T +> : ^ +>b : U +> : ^ + + /** + * @template A,B + * @param {A} a + * @param {B} b + */ + static create(a, b) { return new F(a, b); } +>create : (a: A, b: B) => F +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^^^^^^^^ +>a : A +> : ^ +>b : B +> : ^ +>new F(a, b) : F +> : ^^^^^^^ +>F : typeof F +> : ^^^^^^^^ +>a : A +> : ^ +>b : B +> : ^ +} + +class G {} +>G : G +> : ^ + +export { G }; +>G : typeof G +> : ^^^^^^^^ + +class HH {} +>HH : HH +> : ^^ + +export { HH as H }; +>HH : typeof HH +> : ^^^^^^^^^ +>H : typeof HH +> : ^^^^^^^^^ + +export class I {} +>I : I +> : ^ + +export { I as II }; +>I : typeof I +> : ^^^^^^^^ +>II : typeof I +> : ^^^^^^^^ + +export { J as JJ }; +>J : typeof J +> : ^^^^^^^^ +>JJ : typeof J +> : ^^^^^^^^ + +export class J {} +>J : J +> : ^ + + +export class K { +>K : K +> : ^ + + constructor() { + this.p1 = 12; +>this.p1 = 12 : 12 +> : ^^ +>this.p1 : any +>this : this +> : ^^^^ +>p1 : any +> : ^^^ +>12 : 12 +> : ^^ + + this.p2 = "ok"; +>this.p2 = "ok" : "ok" +> : ^^^^ +>this.p2 : any +>this : this +> : ^^^^ +>p2 : any +> : ^^^ +>"ok" : "ok" +> : ^^^^ + } + + method() { +>method : () => number +> : ^^^^^^^^^^^^ + + return this.p1; +>this.p1 : number +> : ^^^^^^ +>this : this +> : ^^^^ +>p1 : number +> : ^^^^^^ + } +} + +export class L extends K {} +>L : L +> : ^ +>K : K +> : ^ + +export class M extends null { +>M : M +> : ^ + + constructor() { + this.prop = 12; +>this.prop = 12 : 12 +> : ^^ +>this.prop : any +>this : this +> : ^^^^ +>prop : any +> : ^^^ +>12 : 12 +> : ^^ + } +} + + +/** + * @template T + */ +export class N extends L { +>N : N +> : ^^^^ +>L : L +> : ^ + + /** + * @param {T} param + */ + constructor(param) { +>param : T +> : ^ + + super(); +>super() : void +> : ^^^^ +>super : typeof L +> : ^^^^^^^^ + + this.another = param; +>this.another = param : T +> : ^ +>this.another : any +>this : this +> : ^^^^ +>another : any +> : ^^^ +>param : T +> : ^ + } +} + +/** + * @template U + * @extends {N} + */ +export class O extends N { +>O : O +> : ^^^^ +>N : N +> : ^^^^ + + /** + * @param {U} param + */ + constructor(param) { +>param : U +> : ^ + + super(param); +>super(param) : void +> : ^^^^ +>super : typeof N +> : ^^^^^^^^ +>param : U +> : ^ + + this.another2 = param; +>this.another2 = param : U +> : ^ +>this.another2 : any +>this : this +> : ^^^^ +>another2 : any +> : ^^^ +>param : U +> : ^ + } +} + +var x = /** @type {*} */(null); +>x : any +>(null) : any + +export class VariableBase extends x {} +>VariableBase : VariableBase +> : ^^^^^^^^^^^^ +>x : any + +export class HasStatics { +>HasStatics : HasStatics +> : ^^^^^^^^^^ + + static staticMethod() {} +>staticMethod : () => void +> : ^^^^^^^^^^ +} + +export class ExtendsStatics extends HasStatics { +>ExtendsStatics : ExtendsStatics +> : ^^^^^^^^^^^^^^ +>HasStatics : HasStatics +> : ^^^^^^^^^^ + + static also() {} +>also : () => void +> : ^^^^^^^^^^ +} + diff --git a/tests/baselines/reference/jsDeclarationsClassesErr.errors.txt b/tests/baselines/reference/jsDeclarationsClassesErr(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/jsDeclarationsClassesErr.errors.txt rename to tests/baselines/reference/jsDeclarationsClassesErr(target=es2015).errors.txt diff --git a/tests/baselines/reference/jsDeclarationsClassesErr(target=es2015).js b/tests/baselines/reference/jsDeclarationsClassesErr(target=es2015).js new file mode 100644 index 0000000000000..adac73996875b --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsClassesErr(target=es2015).js @@ -0,0 +1,183 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsClassesErr.ts] //// + +//// [index.js] +// Pretty much all of this should be an error, (since index signatures and generics are forbidden in js), +// but we should be able to synthesize declarations from the symbols regardless + +export class M { + field: T; +} + +export class N extends M { + other: U; +} + +export class O { + [idx: string]: string; +} + +export class P extends O {} + +export class Q extends O { + [idx: string]: "ok"; +} + +export class R extends O { + [idx: number]: "ok"; +} + +export class S extends O { + [idx: string]: "ok"; + [idx: number]: never; +} + +export class T { + [idx: number]: string; +} + +export class U extends T {} + + +export class V extends T { + [idx: string]: string; +} + +export class W extends T { + [idx: number]: "ok"; +} + +export class X extends T { + [idx: string]: string; + [idx: number]: "ok"; +} + +export class Y { + [idx: string]: {x: number}; + [idx: number]: {x: number, y: number}; +} + +export class Z extends Y {} + +export class AA extends Y { + [idx: string]: {x: number, y: number}; +} + +export class BB extends Y { + [idx: number]: {x: 0, y: 0}; +} + +export class CC extends Y { + [idx: string]: {x: number, y: number}; + [idx: number]: {x: 0, y: 0}; +} + + +//// [index.js] +// Pretty much all of this should be an error, (since index signatures and generics are forbidden in js), +// but we should be able to synthesize declarations from the symbols regardless +export class M { +} +export class N extends M { +} +export class O { +} +export class P extends O { +} +export class Q extends O { +} +export class R extends O { +} +export class S extends O { +} +export class T { +} +export class U extends T { +} +export class V extends T { +} +export class W extends T { +} +export class X extends T { +} +export class Y { +} +export class Z extends Y { +} +export class AA extends Y { +} +export class BB extends Y { +} +export class CC extends Y { +} + + +//// [index.d.ts] +export class M { + field: T; +} +export class N extends M { + other: U; +} +export class O { + [idx: string]: string; +} +export class P extends O { +} +export class Q extends O { + [idx: string]: "ok"; +} +export class R extends O { + [idx: number]: "ok"; +} +export class S extends O { + [idx: string]: "ok"; + [idx: number]: never; +} +export class T { + [idx: number]: string; +} +export class U extends T { +} +export class V extends T { + [idx: string]: string; +} +export class W extends T { + [idx: number]: "ok"; +} +export class X extends T { + [idx: string]: string; + [idx: number]: "ok"; +} +export class Y { + [idx: string]: { + x: number; + }; + [idx: number]: { + x: number; + y: number; + }; +} +export class Z extends Y { +} +export class AA extends Y { + [idx: string]: { + x: number; + y: number; + }; +} +export class BB extends Y { + [idx: number]: { + x: 0; + y: 0; + }; +} +export class CC extends Y { + [idx: string]: { + x: number; + y: number; + }; + [idx: number]: { + x: 0; + y: 0; + }; +} diff --git a/tests/baselines/reference/jsDeclarationsClassesErr.symbols b/tests/baselines/reference/jsDeclarationsClassesErr(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/jsDeclarationsClassesErr.symbols rename to tests/baselines/reference/jsDeclarationsClassesErr(target=es2015).symbols diff --git a/tests/baselines/reference/jsDeclarationsClassesErr.types b/tests/baselines/reference/jsDeclarationsClassesErr(target=es2015).types similarity index 100% rename from tests/baselines/reference/jsDeclarationsClassesErr.types rename to tests/baselines/reference/jsDeclarationsClassesErr(target=es2015).types diff --git a/tests/baselines/reference/jsDeclarationsClassesErr(target=es5).errors.txt b/tests/baselines/reference/jsDeclarationsClassesErr(target=es5).errors.txt new file mode 100644 index 0000000000000..548135e903adc --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsClassesErr(target=es5).errors.txt @@ -0,0 +1,136 @@ +index.js(4,16): error TS8004: Type parameter declarations can only be used in TypeScript files. +index.js(5,12): error TS8010: Type annotations can only be used in TypeScript files. +index.js(8,16): error TS8004: Type parameter declarations can only be used in TypeScript files. +index.js(8,29): error TS8011: Type arguments can only be used in TypeScript files. +index.js(9,12): error TS8010: Type annotations can only be used in TypeScript files. +index.js(13,11): error TS8010: Type annotations can only be used in TypeScript files. +index.js(19,11): error TS8010: Type annotations can only be used in TypeScript files. +index.js(23,11): error TS8010: Type annotations can only be used in TypeScript files. +index.js(27,11): error TS8010: Type annotations can only be used in TypeScript files. +index.js(28,11): error TS8010: Type annotations can only be used in TypeScript files. +index.js(32,11): error TS8010: Type annotations can only be used in TypeScript files. +index.js(39,11): error TS8010: Type annotations can only be used in TypeScript files. +index.js(43,11): error TS8010: Type annotations can only be used in TypeScript files. +index.js(47,11): error TS8010: Type annotations can only be used in TypeScript files. +index.js(48,11): error TS8010: Type annotations can only be used in TypeScript files. +index.js(52,11): error TS8010: Type annotations can only be used in TypeScript files. +index.js(53,11): error TS8010: Type annotations can only be used in TypeScript files. +index.js(59,11): error TS8010: Type annotations can only be used in TypeScript files. +index.js(63,11): error TS8010: Type annotations can only be used in TypeScript files. +index.js(67,11): error TS8010: Type annotations can only be used in TypeScript files. +index.js(68,11): error TS8010: Type annotations can only be used in TypeScript files. + + +==== index.js (21 errors) ==== + // Pretty much all of this should be an error, (since index signatures and generics are forbidden in js), + // but we should be able to synthesize declarations from the symbols regardless + + export class M { + ~ +!!! error TS8004: Type parameter declarations can only be used in TypeScript files. + field: T; + ~ +!!! error TS8010: Type annotations can only be used in TypeScript files. + } + + export class N extends M { + ~ +!!! error TS8004: Type parameter declarations can only be used in TypeScript files. + ~ +!!! error TS8011: Type arguments can only be used in TypeScript files. + other: U; + ~ +!!! error TS8010: Type annotations can only be used in TypeScript files. + } + + export class O { + [idx: string]: string; + ~~~~~~ +!!! error TS8010: Type annotations can only be used in TypeScript files. + } + + export class P extends O {} + + export class Q extends O { + [idx: string]: "ok"; + ~~~~~~ +!!! error TS8010: Type annotations can only be used in TypeScript files. + } + + export class R extends O { + [idx: number]: "ok"; + ~~~~~~ +!!! error TS8010: Type annotations can only be used in TypeScript files. + } + + export class S extends O { + [idx: string]: "ok"; + ~~~~~~ +!!! error TS8010: Type annotations can only be used in TypeScript files. + [idx: number]: never; + ~~~~~~ +!!! error TS8010: Type annotations can only be used in TypeScript files. + } + + export class T { + [idx: number]: string; + ~~~~~~ +!!! error TS8010: Type annotations can only be used in TypeScript files. + } + + export class U extends T {} + + + export class V extends T { + [idx: string]: string; + ~~~~~~ +!!! error TS8010: Type annotations can only be used in TypeScript files. + } + + export class W extends T { + [idx: number]: "ok"; + ~~~~~~ +!!! error TS8010: Type annotations can only be used in TypeScript files. + } + + export class X extends T { + [idx: string]: string; + ~~~~~~ +!!! error TS8010: Type annotations can only be used in TypeScript files. + [idx: number]: "ok"; + ~~~~~~ +!!! error TS8010: Type annotations can only be used in TypeScript files. + } + + export class Y { + [idx: string]: {x: number}; + ~~~~~~ +!!! error TS8010: Type annotations can only be used in TypeScript files. + [idx: number]: {x: number, y: number}; + ~~~~~~ +!!! error TS8010: Type annotations can only be used in TypeScript files. + } + + export class Z extends Y {} + + export class AA extends Y { + [idx: string]: {x: number, y: number}; + ~~~~~~ +!!! error TS8010: Type annotations can only be used in TypeScript files. + } + + export class BB extends Y { + [idx: number]: {x: 0, y: 0}; + ~~~~~~ +!!! error TS8010: Type annotations can only be used in TypeScript files. + } + + export class CC extends Y { + [idx: string]: {x: number, y: number}; + ~~~~~~ +!!! error TS8010: Type annotations can only be used in TypeScript files. + [idx: number]: {x: 0, y: 0}; + ~~~~~~ +!!! error TS8010: Type annotations can only be used in TypeScript files. + } + \ No newline at end of file diff --git a/tests/baselines/reference/jsDeclarationsClassesErr.js b/tests/baselines/reference/jsDeclarationsClassesErr(target=es5).js similarity index 100% rename from tests/baselines/reference/jsDeclarationsClassesErr.js rename to tests/baselines/reference/jsDeclarationsClassesErr(target=es5).js diff --git a/tests/baselines/reference/jsDeclarationsClassesErr(target=es5).symbols b/tests/baselines/reference/jsDeclarationsClassesErr(target=es5).symbols new file mode 100644 index 0000000000000..5039c1bbf6eb7 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsClassesErr(target=es5).symbols @@ -0,0 +1,155 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsClassesErr.ts] //// + +=== index.js === +// Pretty much all of this should be an error, (since index signatures and generics are forbidden in js), +// but we should be able to synthesize declarations from the symbols regardless + +export class M { +>M : Symbol(M, Decl(index.js, 0, 0)) +>T : Symbol(T, Decl(index.js, 3, 15)) + + field: T; +>field : Symbol(M.field, Decl(index.js, 3, 19)) +>T : Symbol(T, Decl(index.js, 3, 15)) +} + +export class N extends M { +>N : Symbol(N, Decl(index.js, 5, 1)) +>U : Symbol(U, Decl(index.js, 7, 15)) +>M : Symbol(M, Decl(index.js, 0, 0)) +>U : Symbol(U, Decl(index.js, 7, 15)) + + other: U; +>other : Symbol(N.other, Decl(index.js, 7, 32)) +>U : Symbol(U, Decl(index.js, 7, 15)) +} + +export class O { +>O : Symbol(O, Decl(index.js, 9, 1)) + + [idx: string]: string; +>idx : Symbol(idx, Decl(index.js, 12, 5)) +} + +export class P extends O {} +>P : Symbol(P, Decl(index.js, 13, 1)) +>O : Symbol(O, Decl(index.js, 9, 1)) + +export class Q extends O { +>Q : Symbol(Q, Decl(index.js, 15, 27)) +>O : Symbol(O, Decl(index.js, 9, 1)) + + [idx: string]: "ok"; +>idx : Symbol(idx, Decl(index.js, 18, 5)) +} + +export class R extends O { +>R : Symbol(R, Decl(index.js, 19, 1)) +>O : Symbol(O, Decl(index.js, 9, 1)) + + [idx: number]: "ok"; +>idx : Symbol(idx, Decl(index.js, 22, 5)) +} + +export class S extends O { +>S : Symbol(S, Decl(index.js, 23, 1)) +>O : Symbol(O, Decl(index.js, 9, 1)) + + [idx: string]: "ok"; +>idx : Symbol(idx, Decl(index.js, 26, 5)) + + [idx: number]: never; +>idx : Symbol(idx, Decl(index.js, 27, 5)) +} + +export class T { +>T : Symbol(T, Decl(index.js, 28, 1)) + + [idx: number]: string; +>idx : Symbol(idx, Decl(index.js, 31, 5)) +} + +export class U extends T {} +>U : Symbol(U, Decl(index.js, 32, 1)) +>T : Symbol(T, Decl(index.js, 28, 1)) + + +export class V extends T { +>V : Symbol(V, Decl(index.js, 34, 27)) +>T : Symbol(T, Decl(index.js, 28, 1)) + + [idx: string]: string; +>idx : Symbol(idx, Decl(index.js, 38, 5)) +} + +export class W extends T { +>W : Symbol(W, Decl(index.js, 39, 1)) +>T : Symbol(T, Decl(index.js, 28, 1)) + + [idx: number]: "ok"; +>idx : Symbol(idx, Decl(index.js, 42, 5)) +} + +export class X extends T { +>X : Symbol(X, Decl(index.js, 43, 1)) +>T : Symbol(T, Decl(index.js, 28, 1)) + + [idx: string]: string; +>idx : Symbol(idx, Decl(index.js, 46, 5)) + + [idx: number]: "ok"; +>idx : Symbol(idx, Decl(index.js, 47, 5)) +} + +export class Y { +>Y : Symbol(Y, Decl(index.js, 48, 1)) + + [idx: string]: {x: number}; +>idx : Symbol(idx, Decl(index.js, 51, 5)) +>x : Symbol(x, Decl(index.js, 51, 20)) + + [idx: number]: {x: number, y: number}; +>idx : Symbol(idx, Decl(index.js, 52, 5)) +>x : Symbol(x, Decl(index.js, 52, 20)) +>y : Symbol(y, Decl(index.js, 52, 30)) +} + +export class Z extends Y {} +>Z : Symbol(Z, Decl(index.js, 53, 1)) +>Y : Symbol(Y, Decl(index.js, 48, 1)) + +export class AA extends Y { +>AA : Symbol(AA, Decl(index.js, 55, 27)) +>Y : Symbol(Y, Decl(index.js, 48, 1)) + + [idx: string]: {x: number, y: number}; +>idx : Symbol(idx, Decl(index.js, 58, 5)) +>x : Symbol(x, Decl(index.js, 58, 20)) +>y : Symbol(y, Decl(index.js, 58, 30)) +} + +export class BB extends Y { +>BB : Symbol(BB, Decl(index.js, 59, 1)) +>Y : Symbol(Y, Decl(index.js, 48, 1)) + + [idx: number]: {x: 0, y: 0}; +>idx : Symbol(idx, Decl(index.js, 62, 5)) +>x : Symbol(x, Decl(index.js, 62, 20)) +>y : Symbol(y, Decl(index.js, 62, 25)) +} + +export class CC extends Y { +>CC : Symbol(CC, Decl(index.js, 63, 1)) +>Y : Symbol(Y, Decl(index.js, 48, 1)) + + [idx: string]: {x: number, y: number}; +>idx : Symbol(idx, Decl(index.js, 66, 5)) +>x : Symbol(x, Decl(index.js, 66, 20)) +>y : Symbol(y, Decl(index.js, 66, 30)) + + [idx: number]: {x: 0, y: 0}; +>idx : Symbol(idx, Decl(index.js, 67, 5)) +>x : Symbol(x, Decl(index.js, 67, 20)) +>y : Symbol(y, Decl(index.js, 67, 25)) +} + diff --git a/tests/baselines/reference/jsDeclarationsClassesErr(target=es5).types b/tests/baselines/reference/jsDeclarationsClassesErr(target=es5).types new file mode 100644 index 0000000000000..f46f1c1f2897e --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsClassesErr(target=es5).types @@ -0,0 +1,209 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsClassesErr.ts] //// + +=== index.js === +// Pretty much all of this should be an error, (since index signatures and generics are forbidden in js), +// but we should be able to synthesize declarations from the symbols regardless + +export class M { +>M : M +> : ^^^^ + + field: T; +>field : T +> : ^ +} + +export class N extends M { +>N : N +> : ^^^^ +>M : M +> : ^^^^ + + other: U; +>other : U +> : ^ +} + +export class O { +>O : O +> : ^ + + [idx: string]: string; +>idx : string +> : ^^^^^^ +} + +export class P extends O {} +>P : P +> : ^ +>O : O +> : ^ + +export class Q extends O { +>Q : Q +> : ^ +>O : O +> : ^ + + [idx: string]: "ok"; +>idx : string +> : ^^^^^^ +} + +export class R extends O { +>R : R +> : ^ +>O : O +> : ^ + + [idx: number]: "ok"; +>idx : number +> : ^^^^^^ +} + +export class S extends O { +>S : S +> : ^ +>O : O +> : ^ + + [idx: string]: "ok"; +>idx : string +> : ^^^^^^ + + [idx: number]: never; +>idx : number +> : ^^^^^^ +} + +export class T { +>T : T +> : ^ + + [idx: number]: string; +>idx : number +> : ^^^^^^ +} + +export class U extends T {} +>U : U +> : ^ +>T : T +> : ^ + + +export class V extends T { +>V : V +> : ^ +>T : T +> : ^ + + [idx: string]: string; +>idx : string +> : ^^^^^^ +} + +export class W extends T { +>W : W +> : ^ +>T : T +> : ^ + + [idx: number]: "ok"; +>idx : number +> : ^^^^^^ +} + +export class X extends T { +>X : X +> : ^ +>T : T +> : ^ + + [idx: string]: string; +>idx : string +> : ^^^^^^ + + [idx: number]: "ok"; +>idx : number +> : ^^^^^^ +} + +export class Y { +>Y : Y +> : ^ + + [idx: string]: {x: number}; +>idx : string +> : ^^^^^^ +>x : number +> : ^^^^^^ + + [idx: number]: {x: number, y: number}; +>idx : number +> : ^^^^^^ +>x : number +> : ^^^^^^ +>y : number +> : ^^^^^^ +} + +export class Z extends Y {} +>Z : Z +> : ^ +>Y : Y +> : ^ + +export class AA extends Y { +>AA : AA +> : ^^ +>Y : Y +> : ^ + + [idx: string]: {x: number, y: number}; +>idx : string +> : ^^^^^^ +>x : number +> : ^^^^^^ +>y : number +> : ^^^^^^ +} + +export class BB extends Y { +>BB : BB +> : ^^ +>Y : Y +> : ^ + + [idx: number]: {x: 0, y: 0}; +>idx : number +> : ^^^^^^ +>x : 0 +> : ^ +>y : 0 +> : ^ +} + +export class CC extends Y { +>CC : CC +> : ^^ +>Y : Y +> : ^ + + [idx: string]: {x: number, y: number}; +>idx : string +> : ^^^^^^ +>x : number +> : ^^^^^^ +>y : number +> : ^^^^^^ + + [idx: number]: {x: 0, y: 0}; +>idx : number +> : ^^^^^^ +>x : 0 +> : ^ +>y : 0 +> : ^ +} + diff --git a/tests/baselines/reference/jsDeclarationsComputedNames(target=es2015).js b/tests/baselines/reference/jsDeclarationsComputedNames(target=es2015).js new file mode 100644 index 0000000000000..0b94077ea7445 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsComputedNames(target=es2015).js @@ -0,0 +1,82 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsComputedNames.ts] //// + +//// [index.js] +const TopLevelSym = Symbol(); +const InnerSym = Symbol(); +module.exports = { + [TopLevelSym](x = 12) { + return x; + }, + items: { + [InnerSym]: (arg = {x: 12}) => arg.x + } +} + +//// [index2.js] +const TopLevelSym = Symbol(); +const InnerSym = Symbol(); + +export class MyClass { + static [TopLevelSym] = 12; + [InnerSym] = "ok"; + /** + * @param {typeof TopLevelSym | typeof InnerSym} _p + */ + constructor(_p = InnerSym) { + // switch on _p + } +} + + +//// [index.js] +const TopLevelSym = Symbol(); +const InnerSym = Symbol(); +module.exports = { + [TopLevelSym](x = 12) { + return x; + }, + items: { + [InnerSym]: (arg = { x: 12 }) => arg.x + } +}; +//// [index2.js] +var _a, _b; +const TopLevelSym = Symbol(); +const InnerSym = Symbol(); +export class MyClass { + /** + * @param {typeof TopLevelSym | typeof InnerSym} _p + */ + constructor(_p = InnerSym) { + this[_b] = "ok"; + // switch on _p + } +} +_a = TopLevelSym, _b = InnerSym; +MyClass[_a] = 12; + + +//// [index.d.ts] +declare const _exports: { + [TopLevelSym](x?: number): number; + items: { + [InnerSym]: (arg?: { + x: number; + }) => number; + }; +}; +export = _exports; +declare const TopLevelSym: unique symbol; +declare const InnerSym: unique symbol; +//// [index2.d.ts] +export class MyClass { + static [TopLevelSym]: number; + /** + * @param {typeof TopLevelSym | typeof InnerSym} _p + */ + constructor(_p?: typeof TopLevelSym | typeof InnerSym); + [InnerSym]: string; +} +declare const InnerSym: unique symbol; +declare const TopLevelSym: unique symbol; +export {}; diff --git a/tests/baselines/reference/jsDeclarationsComputedNames.symbols b/tests/baselines/reference/jsDeclarationsComputedNames(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/jsDeclarationsComputedNames.symbols rename to tests/baselines/reference/jsDeclarationsComputedNames(target=es2015).symbols diff --git a/tests/baselines/reference/jsDeclarationsComputedNames.types b/tests/baselines/reference/jsDeclarationsComputedNames(target=es2015).types similarity index 100% rename from tests/baselines/reference/jsDeclarationsComputedNames.types rename to tests/baselines/reference/jsDeclarationsComputedNames(target=es2015).types diff --git a/tests/baselines/reference/jsDeclarationsComputedNames.js b/tests/baselines/reference/jsDeclarationsComputedNames(target=es5).js similarity index 100% rename from tests/baselines/reference/jsDeclarationsComputedNames.js rename to tests/baselines/reference/jsDeclarationsComputedNames(target=es5).js diff --git a/tests/baselines/reference/jsDeclarationsComputedNames(target=es5).symbols b/tests/baselines/reference/jsDeclarationsComputedNames(target=es5).symbols new file mode 100644 index 0000000000000..ece867cc22248 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsComputedNames(target=es5).symbols @@ -0,0 +1,70 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsComputedNames.ts] //// + +=== index.js === +const TopLevelSym = Symbol(); +>TopLevelSym : Symbol(TopLevelSym, Decl(index.js, 0, 5)) +>Symbol : Symbol(Symbol, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + +const InnerSym = Symbol(); +>InnerSym : Symbol(InnerSym, Decl(index.js, 1, 5)) +>Symbol : Symbol(Symbol, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + +module.exports = { +>module.exports : Symbol(module.exports, Decl(index.js, 0, 0)) +>module : Symbol(export=, Decl(index.js, 1, 26)) +>exports : Symbol(export=, Decl(index.js, 1, 26)) + + [TopLevelSym](x = 12) { +>[TopLevelSym] : Symbol([TopLevelSym], Decl(index.js, 2, 18)) +>TopLevelSym : Symbol(TopLevelSym, Decl(index.js, 0, 5)) +>x : Symbol(x, Decl(index.js, 3, 18)) + + return x; +>x : Symbol(x, Decl(index.js, 3, 18)) + + }, + items: { +>items : Symbol(items, Decl(index.js, 5, 6)) + + [InnerSym]: (arg = {x: 12}) => arg.x +>[InnerSym] : Symbol([InnerSym], Decl(index.js, 6, 12)) +>InnerSym : Symbol(InnerSym, Decl(index.js, 1, 5)) +>arg : Symbol(arg, Decl(index.js, 7, 21)) +>x : Symbol(x, Decl(index.js, 7, 28)) +>arg.x : Symbol(x, Decl(index.js, 7, 28)) +>arg : Symbol(arg, Decl(index.js, 7, 21)) +>x : Symbol(x, Decl(index.js, 7, 28)) + } +} + +=== index2.js === +const TopLevelSym = Symbol(); +>TopLevelSym : Symbol(TopLevelSym, Decl(index2.js, 0, 5)) +>Symbol : Symbol(Symbol, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + +const InnerSym = Symbol(); +>InnerSym : Symbol(InnerSym, Decl(index2.js, 1, 5)) +>Symbol : Symbol(Symbol, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + +export class MyClass { +>MyClass : Symbol(MyClass, Decl(index2.js, 1, 26)) + + static [TopLevelSym] = 12; +>[TopLevelSym] : Symbol(MyClass[TopLevelSym], Decl(index2.js, 3, 22)) +>TopLevelSym : Symbol(TopLevelSym, Decl(index2.js, 0, 5)) + + [InnerSym] = "ok"; +>[InnerSym] : Symbol(MyClass[InnerSym], Decl(index2.js, 4, 30)) +>InnerSym : Symbol(InnerSym, Decl(index2.js, 1, 5)) + + /** + * @param {typeof TopLevelSym | typeof InnerSym} _p + */ + constructor(_p = InnerSym) { +>_p : Symbol(_p, Decl(index2.js, 9, 16)) +>InnerSym : Symbol(InnerSym, Decl(index2.js, 1, 5)) + + // switch on _p + } +} + diff --git a/tests/baselines/reference/jsDeclarationsComputedNames(target=es5).types b/tests/baselines/reference/jsDeclarationsComputedNames(target=es5).types new file mode 100644 index 0000000000000..fb55894698642 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsComputedNames(target=es5).types @@ -0,0 +1,126 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsComputedNames.ts] //// + +=== index.js === +const TopLevelSym = Symbol(); +>TopLevelSym : unique symbol +> : ^^^^^^^^^^^^^ +>Symbol() : unique symbol +> : ^^^^^^^^^^^^^ +>Symbol : SymbolConstructor +> : ^^^^^^^^^^^^^^^^^ + +const InnerSym = Symbol(); +>InnerSym : unique symbol +> : ^^^^^^^^^^^^^ +>Symbol() : unique symbol +> : ^^^^^^^^^^^^^ +>Symbol : SymbolConstructor +> : ^^^^^^^^^^^^^^^^^ + +module.exports = { +>module.exports = { [TopLevelSym](x = 12) { return x; }, items: { [InnerSym]: (arg = {x: 12}) => arg.x }} : { [TopLevelSym](x?: number): number; items: { [InnerSym]: (arg?: { x: number; }) => number; }; } +> : ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>module.exports : { [TopLevelSym](x?: number): number; items: { [InnerSym]: (arg?: { x: number; }) => number; }; } +> : ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>module : { exports: { [TopLevelSym](x?: number): number; items: { [InnerSym]: (arg?: { x: number; }) => number; }; }; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exports : { [TopLevelSym](x?: number): number; items: { [InnerSym]: (arg?: { x: number; }) => number; }; } +> : ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ [TopLevelSym](x = 12) { return x; }, items: { [InnerSym]: (arg = {x: 12}) => arg.x }} : { [TopLevelSym](x?: number): number; items: { [InnerSym]: (arg?: { x: number; }) => number; }; } +> : ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + [TopLevelSym](x = 12) { +>[TopLevelSym] : (x?: number) => number +> : ^ ^^^^^^^^^^^^^^^^^^^^ +>TopLevelSym : unique symbol +> : ^^^^^^^^^^^^^ +>x : number +> : ^^^^^^ +>12 : 12 +> : ^^ + + return x; +>x : number +> : ^^^^^^ + + }, + items: { +>items : { [InnerSym]: (arg?: { x: number; }) => number; } +> : ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ [InnerSym]: (arg = {x: 12}) => arg.x } : { [InnerSym]: (arg?: { x: number; }) => number; } +> : ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + [InnerSym]: (arg = {x: 12}) => arg.x +>[InnerSym] : (arg?: { x: number; }) => number +> : ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>InnerSym : unique symbol +> : ^^^^^^^^^^^^^ +>(arg = {x: 12}) => arg.x : (arg?: { x: number; }) => number +> : ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>arg : { x: number; } +> : ^^^^^^^^^^^^^^ +>{x: 12} : { x: number; } +> : ^^^^^^^^^^^^^^ +>x : number +> : ^^^^^^ +>12 : 12 +> : ^^ +>arg.x : number +> : ^^^^^^ +>arg : { x: number; } +> : ^^^^^^^^^^^^^^ +>x : number +> : ^^^^^^ + } +} + +=== index2.js === +const TopLevelSym = Symbol(); +>TopLevelSym : unique symbol +> : ^^^^^^^^^^^^^ +>Symbol() : unique symbol +> : ^^^^^^^^^^^^^ +>Symbol : SymbolConstructor +> : ^^^^^^^^^^^^^^^^^ + +const InnerSym = Symbol(); +>InnerSym : unique symbol +> : ^^^^^^^^^^^^^ +>Symbol() : unique symbol +> : ^^^^^^^^^^^^^ +>Symbol : SymbolConstructor +> : ^^^^^^^^^^^^^^^^^ + +export class MyClass { +>MyClass : MyClass +> : ^^^^^^^ + + static [TopLevelSym] = 12; +>[TopLevelSym] : number +> : ^^^^^^ +>TopLevelSym : unique symbol +> : ^^^^^^^^^^^^^ +>12 : 12 +> : ^^ + + [InnerSym] = "ok"; +>[InnerSym] : string +> : ^^^^^^ +>InnerSym : unique symbol +> : ^^^^^^^^^^^^^ +>"ok" : "ok" +> : ^^^^ + + /** + * @param {typeof TopLevelSym | typeof InnerSym} _p + */ + constructor(_p = InnerSym) { +>_p : unique symbol | unique symbol +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>InnerSym : unique symbol +> : ^^^^^^^^^^^^^ + + // switch on _p + } +} + diff --git a/tests/baselines/reference/jsDeclarationsCrossfileMerge.errors.txt b/tests/baselines/reference/jsDeclarationsCrossfileMerge(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/jsDeclarationsCrossfileMerge.errors.txt rename to tests/baselines/reference/jsDeclarationsCrossfileMerge(target=es2015).errors.txt diff --git a/tests/baselines/reference/jsDeclarationsCrossfileMerge(target=es2015).js b/tests/baselines/reference/jsDeclarationsCrossfileMerge(target=es2015).js new file mode 100644 index 0000000000000..50587f5160a1b --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsCrossfileMerge(target=es2015).js @@ -0,0 +1,33 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsCrossfileMerge.ts] //// + +//// [index.js] +const m = require("./exporter"); + +module.exports = m.default; +module.exports.memberName = "thing"; + +//// [exporter.js] +function validate() {} + +export default validate; + + +//// [exporter.js] +function validate() { } +export default validate; +//// [index.js] +const m = require("./exporter"); +module.exports = m.default; +module.exports.memberName = "thing"; + + +//// [index.d.ts] +declare const _exports: typeof m.default; +export = _exports; +import m = require("./exporter"); + + +!!!! File out/exporter.d.ts missing from original emit, but present in noCheck emit +//// [exporter.d.ts] +export default validate; +declare function validate(): void; diff --git a/tests/baselines/reference/jsDeclarationsCrossfileMerge.symbols b/tests/baselines/reference/jsDeclarationsCrossfileMerge(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/jsDeclarationsCrossfileMerge.symbols rename to tests/baselines/reference/jsDeclarationsCrossfileMerge(target=es2015).symbols diff --git a/tests/baselines/reference/jsDeclarationsCrossfileMerge.types b/tests/baselines/reference/jsDeclarationsCrossfileMerge(target=es2015).types similarity index 100% rename from tests/baselines/reference/jsDeclarationsCrossfileMerge.types rename to tests/baselines/reference/jsDeclarationsCrossfileMerge(target=es2015).types diff --git a/tests/baselines/reference/jsDeclarationsCrossfileMerge(target=es5).errors.txt b/tests/baselines/reference/jsDeclarationsCrossfileMerge(target=es5).errors.txt new file mode 100644 index 0000000000000..8880526df413f --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsCrossfileMerge(target=es5).errors.txt @@ -0,0 +1,17 @@ +index.js(4,1): error TS6232: Declaration augments declaration in another file. This cannot be serialized. + + +==== index.js (1 errors) ==== + const m = require("./exporter"); + + module.exports = m.default; + module.exports.memberName = "thing"; + ~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS6232: Declaration augments declaration in another file. This cannot be serialized. +!!! related TS6233 exporter.js:1:10: This is the declaration being augmented. Consider moving the augmenting declaration into the same file. + +==== exporter.js (0 errors) ==== + function validate() {} + + export default validate; + \ No newline at end of file diff --git a/tests/baselines/reference/jsDeclarationsCrossfileMerge.js b/tests/baselines/reference/jsDeclarationsCrossfileMerge(target=es5).js similarity index 100% rename from tests/baselines/reference/jsDeclarationsCrossfileMerge.js rename to tests/baselines/reference/jsDeclarationsCrossfileMerge(target=es5).js diff --git a/tests/baselines/reference/jsDeclarationsCrossfileMerge(target=es5).symbols b/tests/baselines/reference/jsDeclarationsCrossfileMerge(target=es5).symbols new file mode 100644 index 0000000000000..79dc3fc97b752 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsCrossfileMerge(target=es5).symbols @@ -0,0 +1,30 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsCrossfileMerge.ts] //// + +=== index.js === +const m = require("./exporter"); +>m : Symbol(m, Decl(index.js, 0, 5)) +>require : Symbol(require) +>"./exporter" : Symbol(m, Decl(exporter.js, 0, 0)) + +module.exports = m.default; +>module.exports : Symbol(module.exports, Decl(index.js, 0, 0)) +>module : Symbol(export=, Decl(index.js, 0, 32)) +>exports : Symbol(export=, Decl(index.js, 0, 32)) +>m.default : Symbol(m.default, Decl(exporter.js, 0, 22)) +>m : Symbol(m, Decl(index.js, 0, 5)) +>default : Symbol(m.default, Decl(exporter.js, 0, 22)) + +module.exports.memberName = "thing"; +>module.exports.memberName : Symbol(memberName, Decl(index.js, 2, 27)) +>module.exports : Symbol(memberName, Decl(index.js, 2, 27)) +>module : Symbol(module, Decl(index.js, 0, 32)) +>exports : Symbol(module.exports, Decl(index.js, 0, 0)) +>memberName : Symbol(memberName, Decl(index.js, 2, 27)) + +=== exporter.js === +function validate() {} +>validate : Symbol(validate, Decl(exporter.js, 0, 0)) + +export default validate; +>validate : Symbol(validate, Decl(exporter.js, 0, 0)) + diff --git a/tests/baselines/reference/jsDeclarationsCrossfileMerge(target=es5).types b/tests/baselines/reference/jsDeclarationsCrossfileMerge(target=es5).types new file mode 100644 index 0000000000000..35d4703037c93 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsCrossfileMerge(target=es5).types @@ -0,0 +1,54 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsCrossfileMerge.ts] //// + +=== index.js === +const m = require("./exporter"); +>m : typeof m +> : ^^^^^^^^ +>require("./exporter") : typeof m +> : ^^^^^^^^ +>require : any +> : ^^^ +>"./exporter" : "./exporter" +> : ^^^^^^^^^^^^ + +module.exports = m.default; +>module.exports = m.default : typeof m.default +> : ^^^^^^^^^^^^^^^^ +>module.exports : typeof m.default +> : ^^^^^^^^^^^^^^^^ +>module : { exports: typeof m.default; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exports : typeof m.default +> : ^^^^^^^^^^^^^^^^ +>m.default : { (): void; memberName: "thing"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>m : typeof m +> : ^^^^^^^^ +>default : { (): void; memberName: "thing"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +module.exports.memberName = "thing"; +>module.exports.memberName = "thing" : "thing" +> : ^^^^^^^ +>module.exports.memberName : "thing" +> : ^^^^^^^ +>module.exports : typeof m.default +> : ^^^^^^^^^^^^^^^^ +>module : { exports: typeof m.default; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exports : typeof m.default +> : ^^^^^^^^^^^^^^^^ +>memberName : "thing" +> : ^^^^^^^ +>"thing" : "thing" +> : ^^^^^^^ + +=== exporter.js === +function validate() {} +>validate : typeof validate +> : ^^^^^^^^^^^^^^^ + +export default validate; +>validate : typeof validate +> : ^^^^^^^^^^^^^^^ + diff --git a/tests/baselines/reference/jsDeclarationsDefault(target=es2015).js b/tests/baselines/reference/jsDeclarationsDefault(target=es2015).js new file mode 100644 index 0000000000000..ce57d742aeb44 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsDefault(target=es2015).js @@ -0,0 +1,109 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsDefault.ts] //// + +//// [index1.js] +export default 12; + +//// [index2.js] +export default function foo() { + return foo; +} +export const x = foo; +export { foo as bar }; + +//// [index3.js] +export default class Foo { + a = /** @type {Foo} */(null); +}; +export const X = Foo; +export { Foo as Bar }; + +//// [index4.js] +import Fab from "./index3"; +class Bar extends Fab { + x = /** @type {Bar} */(null); +} +export default Bar; + +//// [index5.js] +// merge type alias and const (OK) +export default 12; +/** + * @typedef {string | number} default + */ + +//// [index6.js] +// merge type alias and function (OK) +export default function func() {}; +/** + * @typedef {string | number} default + */ + + +//// [index1.js] +export default 12; +//// [index2.js] +export default function foo() { + return foo; +} +export const x = foo; +export { foo as bar }; +//// [index3.js] +export default class Foo { + constructor() { + this.a = (null); + } +} +; +export const X = Foo; +export { Foo as Bar }; +//// [index4.js] +import Fab from "./index3"; +class Bar extends Fab { + constructor() { + super(...arguments); + this.x = (null); + } +} +export default Bar; +//// [index5.js] +// merge type alias and const (OK) +export default 12; +/** + * @typedef {string | number} default + */ +//// [index6.js] +// merge type alias and function (OK) +export default function func() { } +; +/** + * @typedef {string | number} default + */ + + +//// [index1.d.ts] +declare const _default: 12; +export default _default; +//// [index2.d.ts] +export default function foo(): typeof foo; +export function x(): typeof foo; +export { foo as bar }; +//// [index3.d.ts] +export default class Foo { + a: Foo; +} +export const X: typeof Foo; +export { Foo as Bar }; +//// [index4.d.ts] +export default Bar; +declare class Bar extends Fab { + x: Bar; +} +import Fab from "./index3"; +//// [index5.d.ts] +type _default = string | number; +declare const _default: 12; +export default _default; +//// [index6.d.ts] +declare function func(): void; +type func = string | number; +export default func; diff --git a/tests/baselines/reference/jsDeclarationsDefault.symbols b/tests/baselines/reference/jsDeclarationsDefault(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/jsDeclarationsDefault.symbols rename to tests/baselines/reference/jsDeclarationsDefault(target=es2015).symbols diff --git a/tests/baselines/reference/jsDeclarationsDefault.types b/tests/baselines/reference/jsDeclarationsDefault(target=es2015).types similarity index 100% rename from tests/baselines/reference/jsDeclarationsDefault.types rename to tests/baselines/reference/jsDeclarationsDefault(target=es2015).types diff --git a/tests/baselines/reference/jsDeclarationsDefault.js b/tests/baselines/reference/jsDeclarationsDefault(target=es5).js similarity index 100% rename from tests/baselines/reference/jsDeclarationsDefault.js rename to tests/baselines/reference/jsDeclarationsDefault(target=es5).js diff --git a/tests/baselines/reference/jsDeclarationsDefault(target=es5).symbols b/tests/baselines/reference/jsDeclarationsDefault(target=es5).symbols new file mode 100644 index 0000000000000..efdea391738b7 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsDefault(target=es5).symbols @@ -0,0 +1,68 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsDefault.ts] //// + +=== index1.js === + +export default 12; + +=== index2.js === +export default function foo() { +>foo : Symbol(foo, Decl(index2.js, 0, 0)) + + return foo; +>foo : Symbol(foo, Decl(index2.js, 0, 0)) +} +export const x = foo; +>x : Symbol(x, Decl(index2.js, 3, 12)) +>foo : Symbol(foo, Decl(index2.js, 0, 0)) + +export { foo as bar }; +>foo : Symbol(foo, Decl(index2.js, 0, 0)) +>bar : Symbol(bar, Decl(index2.js, 4, 8)) + +=== index3.js === +export default class Foo { +>Foo : Symbol(Foo, Decl(index3.js, 0, 0)) + + a = /** @type {Foo} */(null); +>a : Symbol(Foo.a, Decl(index3.js, 0, 26)) + +}; +export const X = Foo; +>X : Symbol(X, Decl(index3.js, 3, 12)) +>Foo : Symbol(Foo, Decl(index3.js, 0, 0)) + +export { Foo as Bar }; +>Foo : Symbol(Foo, Decl(index3.js, 0, 0)) +>Bar : Symbol(Bar, Decl(index3.js, 4, 8)) + +=== index4.js === +import Fab from "./index3"; +>Fab : Symbol(Fab, Decl(index4.js, 0, 6)) + +class Bar extends Fab { +>Bar : Symbol(Bar, Decl(index4.js, 0, 27)) +>Fab : Symbol(Fab, Decl(index4.js, 0, 6)) + + x = /** @type {Bar} */(null); +>x : Symbol(Bar.x, Decl(index4.js, 1, 23)) +} +export default Bar; +>Bar : Symbol(Bar, Decl(index4.js, 0, 27)) + +=== index5.js === + +// merge type alias and const (OK) +export default 12; +/** + * @typedef {string | number} default + */ + +=== index6.js === +// merge type alias and function (OK) +export default function func() {}; +>func : Symbol(func, Decl(index6.js, 0, 0), Decl(index6.js, 3, 3)) + +/** + * @typedef {string | number} default + */ + diff --git a/tests/baselines/reference/jsDeclarationsDefault(target=es5).types b/tests/baselines/reference/jsDeclarationsDefault(target=es5).types new file mode 100644 index 0000000000000..dc8faa8b63066 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsDefault(target=es5).types @@ -0,0 +1,90 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsDefault.ts] //// + +=== index1.js === + +export default 12; + +=== index2.js === +export default function foo() { +>foo : () => typeof foo +> : ^^^^^^^^^^^^^^^^ + + return foo; +>foo : () => typeof foo +> : ^^^^^^^^^^^^^^^^ +} +export const x = foo; +>x : () => typeof foo +> : ^^^^^^^^^^^^^^^^ +>foo : () => typeof foo +> : ^^^^^^^^^^^^^^^^ + +export { foo as bar }; +>foo : () => typeof foo +> : ^^^^^^^^^^^^^^^^ +>bar : () => typeof foo +> : ^^^^^^^^^^^^^^^^ + +=== index3.js === +export default class Foo { +>Foo : Foo +> : ^^^ + + a = /** @type {Foo} */(null); +>a : Foo +> : ^^^ +>(null) : Foo +> : ^^^ + +}; +export const X = Foo; +>X : typeof Foo +> : ^^^^^^^^^^ +>Foo : typeof Foo +> : ^^^^^^^^^^ + +export { Foo as Bar }; +>Foo : typeof Foo +> : ^^^^^^^^^^ +>Bar : typeof Foo +> : ^^^^^^^^^^ + +=== index4.js === +import Fab from "./index3"; +>Fab : typeof Fab +> : ^^^^^^^^^^ + +class Bar extends Fab { +>Bar : Bar +> : ^^^ +>Fab : Fab +> : ^^^ + + x = /** @type {Bar} */(null); +>x : Bar +> : ^^^ +>(null) : Bar +> : ^^^ +} +export default Bar; +>Bar : Bar +> : ^^^ + +=== index5.js === + +// merge type alias and const (OK) +export default 12; +/** + * @typedef {string | number} default + */ + +=== index6.js === +// merge type alias and function (OK) +export default function func() {}; +>func : () => void +> : ^^^^^^^^^^ + +/** + * @typedef {string | number} default + */ + diff --git a/tests/baselines/reference/jsDeclarationsDefaultsErr.errors.txt b/tests/baselines/reference/jsDeclarationsDefaultsErr(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/jsDeclarationsDefaultsErr.errors.txt rename to tests/baselines/reference/jsDeclarationsDefaultsErr(target=es2015).errors.txt diff --git a/tests/baselines/reference/jsDeclarationsDefaultsErr(target=es2015).js b/tests/baselines/reference/jsDeclarationsDefaultsErr(target=es2015).js new file mode 100644 index 0000000000000..2de79ef390843 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsDefaultsErr(target=es2015).js @@ -0,0 +1,72 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsDefaultsErr.ts] //// + +//// [index1.js] +// merge type alias and alias (should error, see #32367) +class Cls { + x = 12; + static y = "ok" +} +export default Cls; +/** + * @typedef {string | number} default + */ + +//// [index2.js] +// merge type alias and class (error message improvement needed, see #32368) +export default class C {}; +/** + * @typedef {string | number} default + */ + +//// [index3.js] +// merge type alias and variable (behavior is borked, see #32366) +const x = 12; +export {x as default}; +/** + * @typedef {string | number} default + */ + + +//// [index1.js] +// merge type alias and alias (should error, see #32367) +class Cls { + constructor() { + this.x = 12; + } +} +Cls.y = "ok"; +export default Cls; +/** + * @typedef {string | number} default + */ +//// [index2.js] +// merge type alias and class (error message improvement needed, see #32368) +export default class C { +} +; +/** + * @typedef {string | number} default + */ +//// [index3.js] +// merge type alias and variable (behavior is borked, see #32366) +const x = 12; +export { x as default }; +/** + * @typedef {string | number} default + */ + + +//// [index1.d.ts] +export type Cls = string | number; +export default Cls; +declare class Cls { + static y: string; + x: number; +} +//// [index2.d.ts] +export default class C { +} +//// [index3.d.ts] +export type _default = string | number; +export { x as default }; +declare const x: 12; diff --git a/tests/baselines/reference/jsDeclarationsDefaultsErr.symbols b/tests/baselines/reference/jsDeclarationsDefaultsErr(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/jsDeclarationsDefaultsErr.symbols rename to tests/baselines/reference/jsDeclarationsDefaultsErr(target=es2015).symbols diff --git a/tests/baselines/reference/jsDeclarationsDefaultsErr.types b/tests/baselines/reference/jsDeclarationsDefaultsErr(target=es2015).types similarity index 100% rename from tests/baselines/reference/jsDeclarationsDefaultsErr.types rename to tests/baselines/reference/jsDeclarationsDefaultsErr(target=es2015).types diff --git a/tests/baselines/reference/jsDeclarationsDefaultsErr(target=es5).errors.txt b/tests/baselines/reference/jsDeclarationsDefaultsErr(target=es5).errors.txt new file mode 100644 index 0000000000000..72961c4893549 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsDefaultsErr(target=es5).errors.txt @@ -0,0 +1,34 @@ +index2.js(2,22): error TS2300: Duplicate identifier 'C'. +index2.js(4,31): error TS2300: Duplicate identifier 'default'. + + +==== index1.js (0 errors) ==== + // merge type alias and alias (should error, see #32367) + class Cls { + x = 12; + static y = "ok" + } + export default Cls; + /** + * @typedef {string | number} default + */ + +==== index2.js (2 errors) ==== + // merge type alias and class (error message improvement needed, see #32368) + export default class C {}; + ~ +!!! error TS2300: Duplicate identifier 'C'. + /** + * @typedef {string | number} default + ~~~~~~~ +!!! error TS2300: Duplicate identifier 'default'. + */ + +==== index3.js (0 errors) ==== + // merge type alias and variable (behavior is borked, see #32366) + const x = 12; + export {x as default}; + /** + * @typedef {string | number} default + */ + \ No newline at end of file diff --git a/tests/baselines/reference/jsDeclarationsDefaultsErr.js b/tests/baselines/reference/jsDeclarationsDefaultsErr(target=es5).js similarity index 100% rename from tests/baselines/reference/jsDeclarationsDefaultsErr.js rename to tests/baselines/reference/jsDeclarationsDefaultsErr(target=es5).js diff --git a/tests/baselines/reference/jsDeclarationsDefaultsErr(target=es5).symbols b/tests/baselines/reference/jsDeclarationsDefaultsErr(target=es5).symbols new file mode 100644 index 0000000000000..d0153eb9fb1b8 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsDefaultsErr(target=es5).symbols @@ -0,0 +1,42 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsDefaultsErr.ts] //// + +=== index1.js === +// merge type alias and alias (should error, see #32367) +class Cls { +>Cls : Symbol(Cls, Decl(index1.js, 0, 0)) + + x = 12; +>x : Symbol(Cls.x, Decl(index1.js, 1, 11)) + + static y = "ok" +>y : Symbol(Cls.y, Decl(index1.js, 2, 11)) +} +export default Cls; +>Cls : Symbol(Cls, Decl(index1.js, 0, 0)) + +/** + * @typedef {string | number} default + */ + +=== index2.js === +// merge type alias and class (error message improvement needed, see #32368) +export default class C {}; +>C : Symbol(C, Decl(index2.js, 0, 0)) + +/** + * @typedef {string | number} default + */ + +=== index3.js === +// merge type alias and variable (behavior is borked, see #32366) +const x = 12; +>x : Symbol(x, Decl(index3.js, 1, 5)) + +export {x as default}; +>x : Symbol(x, Decl(index3.js, 1, 5)) +>default : Symbol(default, Decl(index3.js, 2, 8), Decl(index3.js, 4, 3)) + +/** + * @typedef {string | number} default + */ + diff --git a/tests/baselines/reference/jsDeclarationsDefaultsErr(target=es5).types b/tests/baselines/reference/jsDeclarationsDefaultsErr(target=es5).types new file mode 100644 index 0000000000000..2a2ecb0dd60d1 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsDefaultsErr(target=es5).types @@ -0,0 +1,56 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsDefaultsErr.ts] //// + +=== index1.js === +// merge type alias and alias (should error, see #32367) +class Cls { +>Cls : Cls +> : ^^^ + + x = 12; +>x : number +> : ^^^^^^ +>12 : 12 +> : ^^ + + static y = "ok" +>y : string +> : ^^^^^^ +>"ok" : "ok" +> : ^^^^ +} +export default Cls; +>Cls : Cls +> : ^^^ + +/** + * @typedef {string | number} default + */ + +=== index2.js === +// merge type alias and class (error message improvement needed, see #32368) +export default class C {}; +>C : C +> : ^ + +/** + * @typedef {string | number} default + */ + +=== index3.js === +// merge type alias and variable (behavior is borked, see #32366) +const x = 12; +>x : 12 +> : ^^ +>12 : 12 +> : ^^ + +export {x as default}; +>x : 12 +> : ^^ +>default : 12 +> : ^^ + +/** + * @typedef {string | number} default + */ + diff --git a/tests/baselines/reference/jsDeclarationsDocCommentsOnConsts(target=es2015).js b/tests/baselines/reference/jsDeclarationsDocCommentsOnConsts(target=es2015).js new file mode 100644 index 0000000000000..7be950a49fc0b --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsDocCommentsOnConsts(target=es2015).js @@ -0,0 +1,44 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsDocCommentsOnConsts.ts] //// + +//// [index1.js] +/** + * const doc comment + */ +const x = (a) => { + return ''; +}; + +/** + * function doc comment + */ +function b() { + return 0; +} + +module.exports = {x, b} + +//// [index1.js] +/** + * const doc comment + */ +const x = (a) => { + return ''; +}; +/** + * function doc comment + */ +function b() { + return 0; +} +module.exports = { x, b }; + + +//// [index1.d.ts] +/** + * const doc comment + */ +export function x(a: any): string; +/** + * function doc comment + */ +export function b(): number; diff --git a/tests/baselines/reference/jsDeclarationsDocCommentsOnConsts.symbols b/tests/baselines/reference/jsDeclarationsDocCommentsOnConsts(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/jsDeclarationsDocCommentsOnConsts.symbols rename to tests/baselines/reference/jsDeclarationsDocCommentsOnConsts(target=es2015).symbols diff --git a/tests/baselines/reference/jsDeclarationsDocCommentsOnConsts.types b/tests/baselines/reference/jsDeclarationsDocCommentsOnConsts(target=es2015).types similarity index 100% rename from tests/baselines/reference/jsDeclarationsDocCommentsOnConsts.types rename to tests/baselines/reference/jsDeclarationsDocCommentsOnConsts(target=es2015).types diff --git a/tests/baselines/reference/jsDeclarationsDocCommentsOnConsts.js b/tests/baselines/reference/jsDeclarationsDocCommentsOnConsts(target=es5).js similarity index 100% rename from tests/baselines/reference/jsDeclarationsDocCommentsOnConsts.js rename to tests/baselines/reference/jsDeclarationsDocCommentsOnConsts(target=es5).js diff --git a/tests/baselines/reference/jsDeclarationsDocCommentsOnConsts(target=es5).symbols b/tests/baselines/reference/jsDeclarationsDocCommentsOnConsts(target=es5).symbols new file mode 100644 index 0000000000000..98fe624fa6af2 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsDocCommentsOnConsts(target=es5).symbols @@ -0,0 +1,29 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsDocCommentsOnConsts.ts] //// + +=== index1.js === +/** + * const doc comment + */ +const x = (a) => { +>x : Symbol(x, Decl(index1.js, 3, 5)) +>a : Symbol(a, Decl(index1.js, 3, 11)) + + return ''; +}; + +/** + * function doc comment + */ +function b() { +>b : Symbol(b, Decl(index1.js, 5, 2)) + + return 0; +} + +module.exports = {x, b} +>module.exports : Symbol(module.exports, Decl(index1.js, 0, 0)) +>module : Symbol(module, Decl(index1.js, 12, 1)) +>exports : Symbol(module.exports, Decl(index1.js, 0, 0)) +>x : Symbol(x, Decl(index1.js, 14, 18)) +>b : Symbol(b, Decl(index1.js, 14, 20)) + diff --git a/tests/baselines/reference/jsDeclarationsDocCommentsOnConsts(target=es5).types b/tests/baselines/reference/jsDeclarationsDocCommentsOnConsts(target=es5).types new file mode 100644 index 0000000000000..b03c01ecfe21a --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsDocCommentsOnConsts(target=es5).types @@ -0,0 +1,47 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsDocCommentsOnConsts.ts] //// + +=== index1.js === +/** + * const doc comment + */ +const x = (a) => { +>x : (a: any) => string +> : ^ ^^^^^^^^^^^^^^^^ +>(a) => { return '';} : (a: any) => string +> : ^ ^^^^^^^^^^^^^^^^ +>a : any + + return ''; +>'' : "" +> : ^^ + +}; + +/** + * function doc comment + */ +function b() { +>b : () => number +> : ^^^^^^^^^^^^ + + return 0; +>0 : 0 +> : ^ +} + +module.exports = {x, b} +>module.exports = {x, b} : typeof module.exports +> : ^^^^^^^^^^^^^^^^^^^^^ +>module.exports : typeof module.exports +> : ^^^^^^^^^^^^^^^^^^^^^ +>module : { exports: typeof module.exports; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exports : typeof module.exports +> : ^^^^^^^^^^^^^^^^^^^^^ +>{x, b} : { x: (a: any) => string; b: () => number; } +> : ^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>x : (a: any) => string +> : ^ ^^^^^^^^^^^^^^^^ +>b : () => number +> : ^^^^^^^^^^^^ + diff --git a/tests/baselines/reference/jsDeclarationsEnumTag(target=es2015).js b/tests/baselines/reference/jsDeclarationsEnumTag(target=es2015).js new file mode 100644 index 0000000000000..395c92ac04ceb --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsEnumTag(target=es2015).js @@ -0,0 +1,128 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsEnumTag.ts] //// + +//// [index.js] +/** @enum {string} */ +export const Target = { + START: "start", + MIDDLE: "middle", + END: "end", + /** @type {number} */ + OK_I_GUESS: 2 +} +/** @enum number */ +export const Second = { + OK: 1, + /** @type {number} */ + FINE: 2, +} +/** @enum {function(number): number} */ +export const Fs = { + ADD1: n => n + 1, + ID: n => n, + SUB1: n => n - 1 +} + +/** + * @param {Target} t + * @param {Second} s + * @param {Fs} f + */ +export function consume(t,s,f) { + /** @type {string} */ + var str = t + /** @type {number} */ + var num = s + /** @type {(n: number) => number} */ + var fun = f + /** @type {Target} */ + var v = Target.START + v = 'something else' // allowed, like Typescript's classic enums and unlike its string enums +} +/** @param {string} s */ +export function ff(s) { + // element access with arbitrary string is an error only with noImplicitAny + if (!Target[s]) { + return null + } + else { + return Target[s] + } +} + + +//// [index.js] +/** @enum {string} */ +export const Target = { + START: "start", + MIDDLE: "middle", + END: "end", + /** @type {number} */ + OK_I_GUESS: 2 +}; +/** @enum number */ +export const Second = { + OK: 1, + /** @type {number} */ + FINE: 2, +}; +/** @enum {function(number): number} */ +export const Fs = { + ADD1: n => n + 1, + ID: n => n, + SUB1: n => n - 1 +}; +/** + * @param {Target} t + * @param {Second} s + * @param {Fs} f + */ +export function consume(t, s, f) { + /** @type {string} */ + var str = t; + /** @type {number} */ + var num = s; + /** @type {(n: number) => number} */ + var fun = f; + /** @type {Target} */ + var v = Target.START; + v = 'something else'; // allowed, like Typescript's classic enums and unlike its string enums +} +/** @param {string} s */ +export function ff(s) { + // element access with arbitrary string is an error only with noImplicitAny + if (!Target[s]) { + return null; + } + else { + return Target[s]; + } +} + + +//// [index.d.ts] +/** + * @param {Target} t + * @param {Second} s + * @param {Fs} f + */ +export function consume(t: Target, s: Second, f: Fs): void; +/** @param {string} s */ +export function ff(s: string): any; +export type Target = string; +export namespace Target { + let START: string; + let MIDDLE: string; + let END: string; + let OK_I_GUESS: number; +} +export type Second = number; +export namespace Second { + let OK: number; + let FINE: number; +} +export type Fs = (arg0: number) => number; +export namespace Fs { + function ADD1(n: any): any; + function ID(n: any): any; + function SUB1(n: any): number; +} diff --git a/tests/baselines/reference/jsDeclarationsEnumTag.symbols b/tests/baselines/reference/jsDeclarationsEnumTag(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/jsDeclarationsEnumTag.symbols rename to tests/baselines/reference/jsDeclarationsEnumTag(target=es2015).symbols diff --git a/tests/baselines/reference/jsDeclarationsEnumTag.types b/tests/baselines/reference/jsDeclarationsEnumTag(target=es2015).types similarity index 100% rename from tests/baselines/reference/jsDeclarationsEnumTag.types rename to tests/baselines/reference/jsDeclarationsEnumTag(target=es2015).types diff --git a/tests/baselines/reference/jsDeclarationsEnumTag.js b/tests/baselines/reference/jsDeclarationsEnumTag(target=es5).js similarity index 100% rename from tests/baselines/reference/jsDeclarationsEnumTag.js rename to tests/baselines/reference/jsDeclarationsEnumTag(target=es5).js diff --git a/tests/baselines/reference/jsDeclarationsEnumTag(target=es5).symbols b/tests/baselines/reference/jsDeclarationsEnumTag(target=es5).symbols new file mode 100644 index 0000000000000..10b6657a2d034 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsEnumTag(target=es5).symbols @@ -0,0 +1,106 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsEnumTag.ts] //// + +=== index.js === +/** @enum {string} */ +export const Target = { +>Target : Symbol(Target, Decl(index.js, 1, 12), Decl(index.js, 0, 4)) + + START: "start", +>START : Symbol(START, Decl(index.js, 1, 23)) + + MIDDLE: "middle", +>MIDDLE : Symbol(MIDDLE, Decl(index.js, 2, 19)) + + END: "end", +>END : Symbol(END, Decl(index.js, 3, 21)) + + /** @type {number} */ + OK_I_GUESS: 2 +>OK_I_GUESS : Symbol(OK_I_GUESS, Decl(index.js, 4, 15)) +} +/** @enum number */ +export const Second = { +>Second : Symbol(Second, Decl(index.js, 9, 12), Decl(index.js, 8, 4)) + + OK: 1, +>OK : Symbol(OK, Decl(index.js, 9, 23)) + + /** @type {number} */ + FINE: 2, +>FINE : Symbol(FINE, Decl(index.js, 10, 10)) +} +/** @enum {function(number): number} */ +export const Fs = { +>Fs : Symbol(Fs, Decl(index.js, 15, 12), Decl(index.js, 14, 4)) + + ADD1: n => n + 1, +>ADD1 : Symbol(ADD1, Decl(index.js, 15, 19)) +>n : Symbol(n, Decl(index.js, 16, 9)) +>n : Symbol(n, Decl(index.js, 16, 9)) + + ID: n => n, +>ID : Symbol(ID, Decl(index.js, 16, 21)) +>n : Symbol(n, Decl(index.js, 17, 7)) +>n : Symbol(n, Decl(index.js, 17, 7)) + + SUB1: n => n - 1 +>SUB1 : Symbol(SUB1, Decl(index.js, 17, 15)) +>n : Symbol(n, Decl(index.js, 18, 9)) +>n : Symbol(n, Decl(index.js, 18, 9)) +} + +/** + * @param {Target} t + * @param {Second} s + * @param {Fs} f + */ +export function consume(t,s,f) { +>consume : Symbol(consume, Decl(index.js, 19, 1)) +>t : Symbol(t, Decl(index.js, 26, 24)) +>s : Symbol(s, Decl(index.js, 26, 26)) +>f : Symbol(f, Decl(index.js, 26, 28)) + + /** @type {string} */ + var str = t +>str : Symbol(str, Decl(index.js, 28, 7)) +>t : Symbol(t, Decl(index.js, 26, 24)) + + /** @type {number} */ + var num = s +>num : Symbol(num, Decl(index.js, 30, 7)) +>s : Symbol(s, Decl(index.js, 26, 26)) + + /** @type {(n: number) => number} */ + var fun = f +>fun : Symbol(fun, Decl(index.js, 32, 7)) +>f : Symbol(f, Decl(index.js, 26, 28)) + + /** @type {Target} */ + var v = Target.START +>v : Symbol(v, Decl(index.js, 34, 7)) +>Target.START : Symbol(START, Decl(index.js, 1, 23)) +>Target : Symbol(Target, Decl(index.js, 1, 12), Decl(index.js, 0, 4)) +>START : Symbol(START, Decl(index.js, 1, 23)) + + v = 'something else' // allowed, like Typescript's classic enums and unlike its string enums +>v : Symbol(v, Decl(index.js, 34, 7)) +} +/** @param {string} s */ +export function ff(s) { +>ff : Symbol(ff, Decl(index.js, 36, 1)) +>s : Symbol(s, Decl(index.js, 38, 19)) + + // element access with arbitrary string is an error only with noImplicitAny + if (!Target[s]) { +>Target : Symbol(Target, Decl(index.js, 1, 12), Decl(index.js, 0, 4)) +>s : Symbol(s, Decl(index.js, 38, 19)) + + return null + } + else { + return Target[s] +>Target : Symbol(Target, Decl(index.js, 1, 12), Decl(index.js, 0, 4)) +>s : Symbol(s, Decl(index.js, 38, 19)) + } +} + diff --git a/tests/baselines/reference/jsDeclarationsEnumTag(target=es5).types b/tests/baselines/reference/jsDeclarationsEnumTag(target=es5).types new file mode 100644 index 0000000000000..0a15e726709b9 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsEnumTag(target=es5).types @@ -0,0 +1,178 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsEnumTag.ts] //// + +=== index.js === +/** @enum {string} */ +export const Target = { +>Target : { START: string; MIDDLE: string; END: string; OK_I_GUESS: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^ +>{ START: "start", MIDDLE: "middle", END: "end", /** @type {number} */ OK_I_GUESS: 2} : { START: string; MIDDLE: string; END: string; OK_I_GUESS: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^ + + START: "start", +>START : string +> : ^^^^^^ +>"start" : "start" +> : ^^^^^^^ + + MIDDLE: "middle", +>MIDDLE : string +> : ^^^^^^ +>"middle" : "middle" +> : ^^^^^^^^ + + END: "end", +>END : string +> : ^^^^^^ +>"end" : "end" +> : ^^^^^ + + /** @type {number} */ + OK_I_GUESS: 2 +>OK_I_GUESS : number +> : ^^^^^^ +>2 : 2 +> : ^ +} +/** @enum number */ +export const Second = { +>Second : { OK: number; FINE: number; } +> : ^^^^^^^^^^^^^^^^^^^^ ^^^ +>{ OK: 1, /** @type {number} */ FINE: 2,} : { OK: number; FINE: number; } +> : ^^^^^^^^^^^^^^^^^^^^ ^^^ + + OK: 1, +>OK : number +> : ^^^^^^ +>1 : 1 +> : ^ + + /** @type {number} */ + FINE: 2, +>FINE : number +> : ^^^^^^ +>2 : 2 +> : ^ +} +/** @enum {function(number): number} */ +export const Fs = { +>Fs : { ADD1: (n: any) => any; ID: (n: any) => any; SUB1: (n: any) => number; } +> : ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ +>{ ADD1: n => n + 1, ID: n => n, SUB1: n => n - 1} : { ADD1: (n: any) => any; ID: (n: any) => any; SUB1: (n: any) => number; } +> : ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ + + ADD1: n => n + 1, +>ADD1 : (n: any) => any +> : ^ ^^^^^^^^^^^^^ +>n => n + 1 : (n: any) => any +> : ^ ^^^^^^^^^^^^^ +>n : any +>n + 1 : any +>n : any +>1 : 1 +> : ^ + + ID: n => n, +>ID : (n: any) => any +> : ^ ^^^^^^^^^^^^^ +>n => n : (n: any) => any +> : ^ ^^^^^^^^^^^^^ +>n : any +>n : any + + SUB1: n => n - 1 +>SUB1 : (n: any) => number +> : ^ ^^^^^^^^^^^^^^^^ +>n => n - 1 : (n: any) => number +> : ^ ^^^^^^^^^^^^^^^^ +>n : any +>n - 1 : number +> : ^^^^^^ +>n : any +>1 : 1 +> : ^ +} + +/** + * @param {Target} t + * @param {Second} s + * @param {Fs} f + */ +export function consume(t,s,f) { +>consume : (t: Target, s: Second, f: Fs) => void +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^^^^^ +>t : string +> : ^^^^^^ +>s : number +> : ^^^^^^ +>f : Fs +> : ^^ + + /** @type {string} */ + var str = t +>str : string +> : ^^^^^^ +>t : string +> : ^^^^^^ + + /** @type {number} */ + var num = s +>num : number +> : ^^^^^^ +>s : number +> : ^^^^^^ + + /** @type {(n: number) => number} */ + var fun = f +>fun : (n: number) => number +> : ^ ^^ ^^^^^ +>f : Fs +> : ^^ + + /** @type {Target} */ + var v = Target.START +>v : string +> : ^^^^^^ +>Target.START : string +> : ^^^^^^ +>Target : { START: string; MIDDLE: string; END: string; OK_I_GUESS: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^ +>START : string +> : ^^^^^^ + + v = 'something else' // allowed, like Typescript's classic enums and unlike its string enums +>v = 'something else' : "something else" +> : ^^^^^^^^^^^^^^^^ +>v : string +> : ^^^^^^ +>'something else' : "something else" +> : ^^^^^^^^^^^^^^^^ +} +/** @param {string} s */ +export function ff(s) { +>ff : (s: string) => any +> : ^ ^^ ^^^^^^^^ +>s : string +> : ^^^^^^ + + // element access with arbitrary string is an error only with noImplicitAny + if (!Target[s]) { +>!Target[s] : boolean +> : ^^^^^^^ +>Target[s] : error +>Target : { START: string; MIDDLE: string; END: string; OK_I_GUESS: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^ +>s : string +> : ^^^^^^ + + return null + } + else { + return Target[s] +>Target[s] : error +>Target : { START: string; MIDDLE: string; END: string; OK_I_GUESS: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^ +>s : string +> : ^^^^^^ + } +} + diff --git a/tests/baselines/reference/jsDeclarationsEnums.errors.txt b/tests/baselines/reference/jsDeclarationsEnums(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/jsDeclarationsEnums.errors.txt rename to tests/baselines/reference/jsDeclarationsEnums(target=es2015).errors.txt diff --git a/tests/baselines/reference/jsDeclarationsEnums(target=es2015).js b/tests/baselines/reference/jsDeclarationsEnums(target=es2015).js new file mode 100644 index 0000000000000..4f63af620f245 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsEnums(target=es2015).js @@ -0,0 +1,167 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsEnums.ts] //// + +//// [index.js] +// Pretty much all of this should be an error, (since enums are forbidden in js), +// but we should be able to synthesize declarations from the symbols regardless + +export enum A {} + +export enum B { + Member +} + +enum C {} + +export { C }; + +enum DD {} + +export { DD as D }; + +export enum E {} +export { E as EE }; + +export { F as FF }; +export enum F {} + +export enum G { + A = 1, + B, + C +} + +export enum H { + A = "a", + B = "b" +} + +export enum I { + A = "a", + B = 0, + C +} + +export const enum J { + A = 1, + B, + C +} + +export enum K { + None = 0, + A = 1 << 0, + B = 1 << 1, + C = 1 << 2, + Mask = A | B | C, +} + +export const enum L { + None = 0, + A = 1 << 0, + B = 1 << 1, + C = 1 << 2, + Mask = A | B | C, +} + + +//// [index.js] +// Pretty much all of this should be an error, (since enums are forbidden in js), +// but we should be able to synthesize declarations from the symbols regardless +export var A; +(function (A) { +})(A || (A = {})); +export var B; +(function (B) { + B[B["Member"] = 0] = "Member"; +})(B || (B = {})); +var C; +(function (C) { +})(C || (C = {})); +export { C }; +var DD; +(function (DD) { +})(DD || (DD = {})); +export { DD as D }; +export var E; +(function (E) { +})(E || (E = {})); +export { E as EE }; +export { F as FF }; +export var F; +(function (F) { +})(F || (F = {})); +export var G; +(function (G) { + G[G["A"] = 1] = "A"; + G[G["B"] = 2] = "B"; + G[G["C"] = 3] = "C"; +})(G || (G = {})); +export var H; +(function (H) { + H["A"] = "a"; + H["B"] = "b"; +})(H || (H = {})); +export var I; +(function (I) { + I["A"] = "a"; + I[I["B"] = 0] = "B"; + I[I["C"] = 1] = "C"; +})(I || (I = {})); +export var K; +(function (K) { + K[K["None"] = 0] = "None"; + K[K["A"] = 1] = "A"; + K[K["B"] = 2] = "B"; + K[K["C"] = 4] = "C"; + K[K["Mask"] = 7] = "Mask"; +})(K || (K = {})); + + +//// [index.d.ts] +export enum A { +} +export enum B { + Member = 0 +} +export enum E { +} +export enum F { +} +export enum G { + A = 1, + B = 2, + C = 3 +} +export enum H { + A = "a", + B = "b" +} +export enum I { + A = "a", + B = 0, + C = 1 +} +export const enum J { + A = 1, + B = 2, + C = 3 +} +export enum K { + None = 0, + A = 1, + B = 2, + C = 4, + Mask = 7 +} +export const enum L { + None = 0, + A = 1, + B = 2, + C = 4, + Mask = 7 +} +export enum C { +} +declare enum DD { +} +export { DD as D, E as EE, F as FF }; diff --git a/tests/baselines/reference/jsDeclarationsEnums.symbols b/tests/baselines/reference/jsDeclarationsEnums(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/jsDeclarationsEnums.symbols rename to tests/baselines/reference/jsDeclarationsEnums(target=es2015).symbols diff --git a/tests/baselines/reference/jsDeclarationsEnums.types b/tests/baselines/reference/jsDeclarationsEnums(target=es2015).types similarity index 100% rename from tests/baselines/reference/jsDeclarationsEnums.types rename to tests/baselines/reference/jsDeclarationsEnums(target=es2015).types diff --git a/tests/baselines/reference/jsDeclarationsEnums(target=es5).errors.txt b/tests/baselines/reference/jsDeclarationsEnums(target=es5).errors.txt new file mode 100644 index 0000000000000..05318558ddaf4 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsEnums(target=es5).errors.txt @@ -0,0 +1,101 @@ +index.js(4,13): error TS8006: 'enum' declarations can only be used in TypeScript files. +index.js(6,13): error TS8006: 'enum' declarations can only be used in TypeScript files. +index.js(10,6): error TS8006: 'enum' declarations can only be used in TypeScript files. +index.js(14,6): error TS8006: 'enum' declarations can only be used in TypeScript files. +index.js(18,13): error TS8006: 'enum' declarations can only be used in TypeScript files. +index.js(22,13): error TS8006: 'enum' declarations can only be used in TypeScript files. +index.js(24,13): error TS8006: 'enum' declarations can only be used in TypeScript files. +index.js(30,13): error TS8006: 'enum' declarations can only be used in TypeScript files. +index.js(35,13): error TS8006: 'enum' declarations can only be used in TypeScript files. +index.js(41,19): error TS8006: 'enum' declarations can only be used in TypeScript files. +index.js(47,13): error TS8006: 'enum' declarations can only be used in TypeScript files. +index.js(55,19): error TS8006: 'enum' declarations can only be used in TypeScript files. + + +==== index.js (12 errors) ==== + // Pretty much all of this should be an error, (since enums are forbidden in js), + // but we should be able to synthesize declarations from the symbols regardless + + export enum A {} + ~ +!!! error TS8006: 'enum' declarations can only be used in TypeScript files. + + export enum B { + ~ +!!! error TS8006: 'enum' declarations can only be used in TypeScript files. + Member + } + + enum C {} + ~ +!!! error TS8006: 'enum' declarations can only be used in TypeScript files. + + export { C }; + + enum DD {} + ~~ +!!! error TS8006: 'enum' declarations can only be used in TypeScript files. + + export { DD as D }; + + export enum E {} + ~ +!!! error TS8006: 'enum' declarations can only be used in TypeScript files. + export { E as EE }; + + export { F as FF }; + export enum F {} + ~ +!!! error TS8006: 'enum' declarations can only be used in TypeScript files. + + export enum G { + ~ +!!! error TS8006: 'enum' declarations can only be used in TypeScript files. + A = 1, + B, + C + } + + export enum H { + ~ +!!! error TS8006: 'enum' declarations can only be used in TypeScript files. + A = "a", + B = "b" + } + + export enum I { + ~ +!!! error TS8006: 'enum' declarations can only be used in TypeScript files. + A = "a", + B = 0, + C + } + + export const enum J { + ~ +!!! error TS8006: 'enum' declarations can only be used in TypeScript files. + A = 1, + B, + C + } + + export enum K { + ~ +!!! error TS8006: 'enum' declarations can only be used in TypeScript files. + None = 0, + A = 1 << 0, + B = 1 << 1, + C = 1 << 2, + Mask = A | B | C, + } + + export const enum L { + ~ +!!! error TS8006: 'enum' declarations can only be used in TypeScript files. + None = 0, + A = 1 << 0, + B = 1 << 1, + C = 1 << 2, + Mask = A | B | C, + } + \ No newline at end of file diff --git a/tests/baselines/reference/jsDeclarationsEnums.js b/tests/baselines/reference/jsDeclarationsEnums(target=es5).js similarity index 100% rename from tests/baselines/reference/jsDeclarationsEnums.js rename to tests/baselines/reference/jsDeclarationsEnums(target=es5).js diff --git a/tests/baselines/reference/jsDeclarationsEnums(target=es5).symbols b/tests/baselines/reference/jsDeclarationsEnums(target=es5).symbols new file mode 100644 index 0000000000000..b3cfea777b3bd --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsEnums(target=es5).symbols @@ -0,0 +1,136 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsEnums.ts] //// + +=== index.js === +// Pretty much all of this should be an error, (since enums are forbidden in js), +// but we should be able to synthesize declarations from the symbols regardless + +export enum A {} +>A : Symbol(A, Decl(index.js, 0, 0)) + +export enum B { +>B : Symbol(B, Decl(index.js, 3, 16)) + + Member +>Member : Symbol(B.Member, Decl(index.js, 5, 15)) +} + +enum C {} +>C : Symbol(C, Decl(index.js, 7, 1)) + +export { C }; +>C : Symbol(C, Decl(index.js, 11, 8)) + +enum DD {} +>DD : Symbol(DD, Decl(index.js, 11, 13)) + +export { DD as D }; +>DD : Symbol(DD, Decl(index.js, 11, 13)) +>D : Symbol(D, Decl(index.js, 15, 8)) + +export enum E {} +>E : Symbol(E, Decl(index.js, 15, 19)) + +export { E as EE }; +>E : Symbol(E, Decl(index.js, 15, 19)) +>EE : Symbol(EE, Decl(index.js, 18, 8)) + +export { F as FF }; +>F : Symbol(F, Decl(index.js, 20, 19)) +>FF : Symbol(FF, Decl(index.js, 20, 8)) + +export enum F {} +>F : Symbol(F, Decl(index.js, 20, 19)) + +export enum G { +>G : Symbol(G, Decl(index.js, 21, 16)) + + A = 1, +>A : Symbol(G.A, Decl(index.js, 23, 15)) + + B, +>B : Symbol(G.B, Decl(index.js, 24, 10)) + + C +>C : Symbol(G.C, Decl(index.js, 25, 6)) +} + +export enum H { +>H : Symbol(H, Decl(index.js, 27, 1)) + + A = "a", +>A : Symbol(H.A, Decl(index.js, 29, 15)) + + B = "b" +>B : Symbol(H.B, Decl(index.js, 30, 12)) +} + +export enum I { +>I : Symbol(I, Decl(index.js, 32, 1)) + + A = "a", +>A : Symbol(I.A, Decl(index.js, 34, 15)) + + B = 0, +>B : Symbol(I.B, Decl(index.js, 35, 12)) + + C +>C : Symbol(I.C, Decl(index.js, 36, 10)) +} + +export const enum J { +>J : Symbol(J, Decl(index.js, 38, 1)) + + A = 1, +>A : Symbol(J.A, Decl(index.js, 40, 21)) + + B, +>B : Symbol(J.B, Decl(index.js, 41, 10)) + + C +>C : Symbol(J.C, Decl(index.js, 42, 6)) +} + +export enum K { +>K : Symbol(K, Decl(index.js, 44, 1)) + + None = 0, +>None : Symbol(K.None, Decl(index.js, 46, 15)) + + A = 1 << 0, +>A : Symbol(K.A, Decl(index.js, 47, 15)) + + B = 1 << 1, +>B : Symbol(K.B, Decl(index.js, 48, 15)) + + C = 1 << 2, +>C : Symbol(K.C, Decl(index.js, 49, 15)) + + Mask = A | B | C, +>Mask : Symbol(K.Mask, Decl(index.js, 50, 15)) +>A : Symbol(K.A, Decl(index.js, 47, 15)) +>B : Symbol(K.B, Decl(index.js, 48, 15)) +>C : Symbol(K.C, Decl(index.js, 49, 15)) +} + +export const enum L { +>L : Symbol(L, Decl(index.js, 52, 1)) + + None = 0, +>None : Symbol(L.None, Decl(index.js, 54, 21)) + + A = 1 << 0, +>A : Symbol(L.A, Decl(index.js, 55, 15)) + + B = 1 << 1, +>B : Symbol(L.B, Decl(index.js, 56, 15)) + + C = 1 << 2, +>C : Symbol(L.C, Decl(index.js, 57, 15)) + + Mask = A | B | C, +>Mask : Symbol(L.Mask, Decl(index.js, 58, 15)) +>A : Symbol(L.A, Decl(index.js, 55, 15)) +>B : Symbol(L.B, Decl(index.js, 56, 15)) +>C : Symbol(L.C, Decl(index.js, 57, 15)) +} + diff --git a/tests/baselines/reference/jsDeclarationsEnums(target=es5).types b/tests/baselines/reference/jsDeclarationsEnums(target=es5).types new file mode 100644 index 0000000000000..363e420836d47 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsEnums(target=es5).types @@ -0,0 +1,243 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsEnums.ts] //// + +=== index.js === +// Pretty much all of this should be an error, (since enums are forbidden in js), +// but we should be able to synthesize declarations from the symbols regardless + +export enum A {} +>A : A +> : ^ + +export enum B { +>B : B +> : ^ + + Member +>Member : B.Member +> : ^^^^^^^^ +} + +enum C {} +>C : C +> : ^ + +export { C }; +>C : typeof C +> : ^^^^^^^^ + +enum DD {} +>DD : DD +> : ^^ + +export { DD as D }; +>DD : typeof DD +> : ^^^^^^^^^ +>D : typeof DD +> : ^^^^^^^^^ + +export enum E {} +>E : E +> : ^ + +export { E as EE }; +>E : typeof E +> : ^^^^^^^^ +>EE : typeof E +> : ^^^^^^^^ + +export { F as FF }; +>F : typeof F +> : ^^^^^^^^ +>FF : typeof F +> : ^^^^^^^^ + +export enum F {} +>F : F +> : ^ + +export enum G { +>G : G +> : ^ + + A = 1, +>A : G.A +> : ^^^ +>1 : 1 +> : ^ + + B, +>B : G.B +> : ^^^ + + C +>C : G.C +> : ^^^ +} + +export enum H { +>H : H +> : ^ + + A = "a", +>A : H.A +> : ^^^ +>"a" : "a" +> : ^^^ + + B = "b" +>B : H.B +> : ^^^ +>"b" : "b" +> : ^^^ +} + +export enum I { +>I : I +> : ^ + + A = "a", +>A : I.A +> : ^^^ +>"a" : "a" +> : ^^^ + + B = 0, +>B : I.B +> : ^^^ +>0 : 0 +> : ^ + + C +>C : I.C +> : ^^^ +} + +export const enum J { +>J : J +> : ^ + + A = 1, +>A : J.A +> : ^^^ +>1 : 1 +> : ^ + + B, +>B : J.B +> : ^^^ + + C +>C : J.C +> : ^^^ +} + +export enum K { +>K : K +> : ^ + + None = 0, +>None : K.None +> : ^^^^^^ +>0 : 0 +> : ^ + + A = 1 << 0, +>A : K.A +> : ^^^ +>1 << 0 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>0 : 0 +> : ^ + + B = 1 << 1, +>B : K.B +> : ^^^ +>1 << 1 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>1 : 1 +> : ^ + + C = 1 << 2, +>C : K.C +> : ^^^ +>1 << 2 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ + + Mask = A | B | C, +>Mask : K.Mask +> : ^^^^^^ +>A | B | C : number +> : ^^^^^^ +>A | B : number +> : ^^^^^^ +>A : K.A +> : ^^^ +>B : K.B +> : ^^^ +>C : K.C +> : ^^^ +} + +export const enum L { +>L : L +> : ^ + + None = 0, +>None : L.None +> : ^^^^^^ +>0 : 0 +> : ^ + + A = 1 << 0, +>A : L.A +> : ^^^ +>1 << 0 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>0 : 0 +> : ^ + + B = 1 << 1, +>B : L.B +> : ^^^ +>1 << 1 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>1 : 1 +> : ^ + + C = 1 << 2, +>C : L.C +> : ^^^ +>1 << 2 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ + + Mask = A | B | C, +>Mask : L.Mask +> : ^^^^^^ +>A | B | C : number +> : ^^^^^^ +>A | B : number +> : ^^^^^^ +>A : L.A +> : ^^^ +>B : L.B +> : ^^^ +>C : L.C +> : ^^^ +} + diff --git a/tests/baselines/reference/jsDeclarationsExportAssignedClassExpression(target=es2015).js b/tests/baselines/reference/jsDeclarationsExportAssignedClassExpression(target=es2015).js new file mode 100644 index 0000000000000..925ac806848ad --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsExportAssignedClassExpression(target=es2015).js @@ -0,0 +1,32 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignedClassExpression.ts] //// + +//// [index.js] +module.exports = class Thing { + /** + * @param {number} p + */ + constructor(p) { + this.t = 12 + p; + } +} + +//// [index.js] +module.exports = class Thing { + /** + * @param {number} p + */ + constructor(p) { + this.t = 12 + p; + } +}; + + +//// [index.d.ts] +export = Thing; +declare class Thing { + /** + * @param {number} p + */ + constructor(p: number); + t: number; +} diff --git a/tests/baselines/reference/jsDeclarationsExportAssignedClassExpression.symbols b/tests/baselines/reference/jsDeclarationsExportAssignedClassExpression(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/jsDeclarationsExportAssignedClassExpression.symbols rename to tests/baselines/reference/jsDeclarationsExportAssignedClassExpression(target=es2015).symbols diff --git a/tests/baselines/reference/jsDeclarationsExportAssignedClassExpression.types b/tests/baselines/reference/jsDeclarationsExportAssignedClassExpression(target=es2015).types similarity index 100% rename from tests/baselines/reference/jsDeclarationsExportAssignedClassExpression.types rename to tests/baselines/reference/jsDeclarationsExportAssignedClassExpression(target=es2015).types diff --git a/tests/baselines/reference/jsDeclarationsExportAssignedClassExpression.js b/tests/baselines/reference/jsDeclarationsExportAssignedClassExpression(target=es5).js similarity index 100% rename from tests/baselines/reference/jsDeclarationsExportAssignedClassExpression.js rename to tests/baselines/reference/jsDeclarationsExportAssignedClassExpression(target=es5).js diff --git a/tests/baselines/reference/jsDeclarationsExportAssignedClassExpression(target=es5).symbols b/tests/baselines/reference/jsDeclarationsExportAssignedClassExpression(target=es5).symbols new file mode 100644 index 0000000000000..53f560ac9fee7 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsExportAssignedClassExpression(target=es5).symbols @@ -0,0 +1,22 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignedClassExpression.ts] //// + +=== index.js === +module.exports = class Thing { +>module.exports : Symbol(module.exports, Decl(index.js, 0, 0)) +>module : Symbol(export=, Decl(index.js, 0, 0)) +>exports : Symbol(export=, Decl(index.js, 0, 0)) +>Thing : Symbol(Thing, Decl(index.js, 0, 16)) + + /** + * @param {number} p + */ + constructor(p) { +>p : Symbol(p, Decl(index.js, 4, 16)) + + this.t = 12 + p; +>this.t : Symbol(Thing.t, Decl(index.js, 4, 20)) +>this : Symbol(Thing, Decl(index.js, 0, 16)) +>t : Symbol(Thing.t, Decl(index.js, 4, 20)) +>p : Symbol(p, Decl(index.js, 4, 16)) + } +} diff --git a/tests/baselines/reference/jsDeclarationsExportAssignedClassExpression(target=es5).types b/tests/baselines/reference/jsDeclarationsExportAssignedClassExpression(target=es5).types new file mode 100644 index 0000000000000..b878f2037345e --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsExportAssignedClassExpression(target=es5).types @@ -0,0 +1,40 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignedClassExpression.ts] //// + +=== index.js === +module.exports = class Thing { +>module.exports = class Thing { /** * @param {number} p */ constructor(p) { this.t = 12 + p; }} : typeof import("index") +> : ^^^^^^^^^^^^^^^^^^^^^^ +>module.exports : typeof import("index") +> : ^^^^^^^^^^^^^^^^^^^^^^ +>module : { exports: typeof import("index"); } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exports : typeof import("index") +> : ^^^^^^^^^^^^^^^^^^^^^^ +>class Thing { /** * @param {number} p */ constructor(p) { this.t = 12 + p; }} : typeof import("index") +> : ^^^^^^^^^^^^^^^^^^^^^^ +>Thing : typeof import("index") +> : ^^^^^^^^^^^^^^^^^^^^^^ + + /** + * @param {number} p + */ + constructor(p) { +>p : number +> : ^^^^^^ + + this.t = 12 + p; +>this.t = 12 + p : number +> : ^^^^^^ +>this.t : any +>this : this +> : ^^^^ +>t : any +> : ^^^ +>12 + p : number +> : ^^^^^^ +>12 : 12 +> : ^^ +>p : number +> : ^^^^^^ + } +} diff --git a/tests/baselines/reference/jsDeclarationsExportAssignedClassExpressionAnonymous(target=es2015).js b/tests/baselines/reference/jsDeclarationsExportAssignedClassExpressionAnonymous(target=es2015).js new file mode 100644 index 0000000000000..6bfe8aed39e47 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsExportAssignedClassExpressionAnonymous(target=es2015).js @@ -0,0 +1,32 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignedClassExpressionAnonymous.ts] //// + +//// [index.js] +module.exports = class { + /** + * @param {number} p + */ + constructor(p) { + this.t = 12 + p; + } +} + +//// [index.js] +module.exports = class { + /** + * @param {number} p + */ + constructor(p) { + this.t = 12 + p; + } +}; + + +//// [index.d.ts] +export = exports; +declare class exports { + /** + * @param {number} p + */ + constructor(p: number); + t: number; +} diff --git a/tests/baselines/reference/jsDeclarationsExportAssignedClassExpressionAnonymous.symbols b/tests/baselines/reference/jsDeclarationsExportAssignedClassExpressionAnonymous(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/jsDeclarationsExportAssignedClassExpressionAnonymous.symbols rename to tests/baselines/reference/jsDeclarationsExportAssignedClassExpressionAnonymous(target=es2015).symbols diff --git a/tests/baselines/reference/jsDeclarationsExportAssignedClassExpressionAnonymous.types b/tests/baselines/reference/jsDeclarationsExportAssignedClassExpressionAnonymous(target=es2015).types similarity index 100% rename from tests/baselines/reference/jsDeclarationsExportAssignedClassExpressionAnonymous.types rename to tests/baselines/reference/jsDeclarationsExportAssignedClassExpressionAnonymous(target=es2015).types diff --git a/tests/baselines/reference/jsDeclarationsExportAssignedClassExpressionAnonymous.js b/tests/baselines/reference/jsDeclarationsExportAssignedClassExpressionAnonymous(target=es5).js similarity index 100% rename from tests/baselines/reference/jsDeclarationsExportAssignedClassExpressionAnonymous.js rename to tests/baselines/reference/jsDeclarationsExportAssignedClassExpressionAnonymous(target=es5).js diff --git a/tests/baselines/reference/jsDeclarationsExportAssignedClassExpressionAnonymous(target=es5).symbols b/tests/baselines/reference/jsDeclarationsExportAssignedClassExpressionAnonymous(target=es5).symbols new file mode 100644 index 0000000000000..95a287aef15d9 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsExportAssignedClassExpressionAnonymous(target=es5).symbols @@ -0,0 +1,21 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignedClassExpressionAnonymous.ts] //// + +=== index.js === +module.exports = class { +>module.exports : Symbol(module.exports, Decl(index.js, 0, 0)) +>module : Symbol(export=, Decl(index.js, 0, 0)) +>exports : Symbol(export=, Decl(index.js, 0, 0)) + + /** + * @param {number} p + */ + constructor(p) { +>p : Symbol(p, Decl(index.js, 4, 16)) + + this.t = 12 + p; +>this.t : Symbol(exports.t, Decl(index.js, 4, 20)) +>this : Symbol(exports, Decl(index.js, 0, 16)) +>t : Symbol(exports.t, Decl(index.js, 4, 20)) +>p : Symbol(p, Decl(index.js, 4, 16)) + } +} diff --git a/tests/baselines/reference/jsDeclarationsExportAssignedClassExpressionAnonymous(target=es5).types b/tests/baselines/reference/jsDeclarationsExportAssignedClassExpressionAnonymous(target=es5).types new file mode 100644 index 0000000000000..cc92214a279ca --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsExportAssignedClassExpressionAnonymous(target=es5).types @@ -0,0 +1,38 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignedClassExpressionAnonymous.ts] //// + +=== index.js === +module.exports = class { +>module.exports = class { /** * @param {number} p */ constructor(p) { this.t = 12 + p; }} : typeof import("index") +> : ^^^^^^^^^^^^^^^^^^^^^^ +>module.exports : typeof import("index") +> : ^^^^^^^^^^^^^^^^^^^^^^ +>module : { exports: typeof import("index"); } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exports : typeof import("index") +> : ^^^^^^^^^^^^^^^^^^^^^^ +>class { /** * @param {number} p */ constructor(p) { this.t = 12 + p; }} : typeof import("index") +> : ^^^^^^^^^^^^^^^^^^^^^^ + + /** + * @param {number} p + */ + constructor(p) { +>p : number +> : ^^^^^^ + + this.t = 12 + p; +>this.t = 12 + p : number +> : ^^^^^^ +>this.t : any +>this : this +> : ^^^^ +>t : any +> : ^^^ +>12 + p : number +> : ^^^^^^ +>12 : 12 +> : ^^ +>p : number +> : ^^^^^^ + } +} diff --git a/tests/baselines/reference/jsDeclarationsExportAssignedClassExpressionAnonymousWithSub(target=es2015).js b/tests/baselines/reference/jsDeclarationsExportAssignedClassExpressionAnonymousWithSub(target=es2015).js new file mode 100644 index 0000000000000..07235695ac01b --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsExportAssignedClassExpressionAnonymousWithSub(target=es2015).js @@ -0,0 +1,49 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignedClassExpressionAnonymousWithSub.ts] //// + +//// [index.js] +module.exports = class { + /** + * @param {number} p + */ + constructor(p) { + this.t = 12 + p; + } +} +module.exports.Sub = class { + constructor() { + this.instance = new module.exports(10); + } +} + + +//// [index.js] +module.exports = class { + /** + * @param {number} p + */ + constructor(p) { + this.t = 12 + p; + } +}; +module.exports.Sub = class { + constructor() { + this.instance = new module.exports(10); + } +}; + + +//// [index.d.ts] +export = exports; +declare class exports { + /** + * @param {number} p + */ + constructor(p: number); + t: number; +} +declare namespace exports { + export { Sub }; +} +declare class Sub { + instance: import("."); +} diff --git a/tests/baselines/reference/jsDeclarationsExportAssignedClassExpressionAnonymousWithSub.symbols b/tests/baselines/reference/jsDeclarationsExportAssignedClassExpressionAnonymousWithSub(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/jsDeclarationsExportAssignedClassExpressionAnonymousWithSub.symbols rename to tests/baselines/reference/jsDeclarationsExportAssignedClassExpressionAnonymousWithSub(target=es2015).symbols diff --git a/tests/baselines/reference/jsDeclarationsExportAssignedClassExpressionAnonymousWithSub.types b/tests/baselines/reference/jsDeclarationsExportAssignedClassExpressionAnonymousWithSub(target=es2015).types similarity index 100% rename from tests/baselines/reference/jsDeclarationsExportAssignedClassExpressionAnonymousWithSub.types rename to tests/baselines/reference/jsDeclarationsExportAssignedClassExpressionAnonymousWithSub(target=es2015).types diff --git a/tests/baselines/reference/jsDeclarationsExportAssignedClassExpressionAnonymousWithSub.js b/tests/baselines/reference/jsDeclarationsExportAssignedClassExpressionAnonymousWithSub(target=es5).js similarity index 100% rename from tests/baselines/reference/jsDeclarationsExportAssignedClassExpressionAnonymousWithSub.js rename to tests/baselines/reference/jsDeclarationsExportAssignedClassExpressionAnonymousWithSub(target=es5).js diff --git a/tests/baselines/reference/jsDeclarationsExportAssignedClassExpressionAnonymousWithSub(target=es5).symbols b/tests/baselines/reference/jsDeclarationsExportAssignedClassExpressionAnonymousWithSub(target=es5).symbols new file mode 100644 index 0000000000000..5d8152b15e468 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsExportAssignedClassExpressionAnonymousWithSub(target=es5).symbols @@ -0,0 +1,39 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignedClassExpressionAnonymousWithSub.ts] //// + +=== index.js === +module.exports = class { +>module.exports : Symbol(module.exports, Decl(index.js, 0, 0)) +>module : Symbol(export=, Decl(index.js, 0, 0)) +>exports : Symbol(export=, Decl(index.js, 0, 0)) + + /** + * @param {number} p + */ + constructor(p) { +>p : Symbol(p, Decl(index.js, 4, 16)) + + this.t = 12 + p; +>this.t : Symbol(exports.t, Decl(index.js, 4, 20)) +>this : Symbol(exports, Decl(index.js, 0, 16)) +>t : Symbol(exports.t, Decl(index.js, 4, 20)) +>p : Symbol(p, Decl(index.js, 4, 16)) + } +} +module.exports.Sub = class { +>module.exports.Sub : Symbol(Sub, Decl(index.js, 7, 1)) +>module.exports : Symbol(Sub, Decl(index.js, 7, 1)) +>module : Symbol(module, Decl(index.js, 0, 0), Decl(index.js, 10, 27)) +>exports : Symbol(module.exports, Decl(index.js, 0, 0)) +>Sub : Symbol(Sub, Decl(index.js, 7, 1)) + + constructor() { + this.instance = new module.exports(10); +>this.instance : Symbol(Sub.instance, Decl(index.js, 9, 19)) +>this : Symbol(Sub, Decl(index.js, 8, 20)) +>instance : Symbol(Sub.instance, Decl(index.js, 9, 19)) +>module.exports : Symbol(module.exports, Decl(index.js, 0, 0)) +>module : Symbol(module, Decl(index.js, 0, 0), Decl(index.js, 10, 27)) +>exports : Symbol(module.exports, Decl(index.js, 0, 0)) + } +} + diff --git a/tests/baselines/reference/jsDeclarationsExportAssignedClassExpressionAnonymousWithSub(target=es5).types b/tests/baselines/reference/jsDeclarationsExportAssignedClassExpressionAnonymousWithSub(target=es5).types new file mode 100644 index 0000000000000..d68c87dca2197 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsExportAssignedClassExpressionAnonymousWithSub(target=es5).types @@ -0,0 +1,76 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignedClassExpressionAnonymousWithSub.ts] //// + +=== index.js === +module.exports = class { +>module.exports = class { /** * @param {number} p */ constructor(p) { this.t = 12 + p; }} : typeof import("index") +> : ^^^^^^^^^^^^^^^^^^^^^^ +>module.exports : typeof import("index") +> : ^^^^^^^^^^^^^^^^^^^^^^ +>module : { exports: typeof import("index"); } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exports : typeof import("index") +> : ^^^^^^^^^^^^^^^^^^^^^^ +>class { /** * @param {number} p */ constructor(p) { this.t = 12 + p; }} : typeof import("index") +> : ^^^^^^^^^^^^^^^^^^^^^^ + + /** + * @param {number} p + */ + constructor(p) { +>p : number +> : ^^^^^^ + + this.t = 12 + p; +>this.t = 12 + p : number +> : ^^^^^^ +>this.t : any +>this : this +> : ^^^^ +>t : any +> : ^^^ +>12 + p : number +> : ^^^^^^ +>12 : 12 +> : ^^ +>p : number +> : ^^^^^^ + } +} +module.exports.Sub = class { +>module.exports.Sub = class { constructor() { this.instance = new module.exports(10); }} : typeof Sub +> : ^^^^^^^^^^ +>module.exports.Sub : typeof Sub +> : ^^^^^^^^^^ +>module.exports : typeof import("index") +> : ^^^^^^^^^^^^^^^^^^^^^^ +>module : { exports: typeof import("index"); } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exports : typeof import("index") +> : ^^^^^^^^^^^^^^^^^^^^^^ +>Sub : typeof Sub +> : ^^^^^^^^^^ +>class { constructor() { this.instance = new module.exports(10); }} : typeof Sub +> : ^^^^^^^^^^ + + constructor() { + this.instance = new module.exports(10); +>this.instance = new module.exports(10) : import("index") +> : ^^^^^^^^^^^^^^^ +>this.instance : any +>this : this +> : ^^^^ +>instance : any +> : ^^^ +>new module.exports(10) : import("index") +> : ^^^^^^^^^^^^^^^ +>module.exports : typeof import("index") +> : ^^^^^^^^^^^^^^^^^^^^^^ +>module : { exports: typeof import("index"); } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exports : typeof import("index") +> : ^^^^^^^^^^^^^^^^^^^^^^ +>10 : 10 +> : ^^ + } +} + diff --git a/tests/baselines/reference/jsDeclarationsExportAssignedClassExpressionShadowing(target=es2015).js b/tests/baselines/reference/jsDeclarationsExportAssignedClassExpressionShadowing(target=es2015).js new file mode 100644 index 0000000000000..985ed9f8f90eb --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsExportAssignedClassExpressionShadowing(target=es2015).js @@ -0,0 +1,50 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignedClassExpressionShadowing.ts] //// + +//// [index.js] +class A { + member = new Q(); +} +class Q { + x = 42; +} +module.exports = class Q { + constructor() { + this.x = new A(); + } +} +module.exports.Another = Q; + + +//// [index.js] +class A { + constructor() { + this.member = new Q(); + } +} +class Q { + constructor() { + this.x = 42; + } +} +module.exports = class Q { + constructor() { + this.x = new A(); + } +}; +module.exports.Another = Q; + + +//// [index.d.ts] +export = Q; +declare class Q { + x: A; +} +declare namespace Q { + export { Q_1 as Another }; +} +declare class A { + member: Q; +} +declare class Q_1 { + x: number; +} diff --git a/tests/baselines/reference/jsDeclarationsExportAssignedClassExpressionShadowing.symbols b/tests/baselines/reference/jsDeclarationsExportAssignedClassExpressionShadowing(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/jsDeclarationsExportAssignedClassExpressionShadowing.symbols rename to tests/baselines/reference/jsDeclarationsExportAssignedClassExpressionShadowing(target=es2015).symbols diff --git a/tests/baselines/reference/jsDeclarationsExportAssignedClassExpressionShadowing.types b/tests/baselines/reference/jsDeclarationsExportAssignedClassExpressionShadowing(target=es2015).types similarity index 100% rename from tests/baselines/reference/jsDeclarationsExportAssignedClassExpressionShadowing.types rename to tests/baselines/reference/jsDeclarationsExportAssignedClassExpressionShadowing(target=es2015).types diff --git a/tests/baselines/reference/jsDeclarationsExportAssignedClassExpressionShadowing.js b/tests/baselines/reference/jsDeclarationsExportAssignedClassExpressionShadowing(target=es5).js similarity index 100% rename from tests/baselines/reference/jsDeclarationsExportAssignedClassExpressionShadowing.js rename to tests/baselines/reference/jsDeclarationsExportAssignedClassExpressionShadowing(target=es5).js diff --git a/tests/baselines/reference/jsDeclarationsExportAssignedClassExpressionShadowing(target=es5).symbols b/tests/baselines/reference/jsDeclarationsExportAssignedClassExpressionShadowing(target=es5).symbols new file mode 100644 index 0000000000000..bf48c89d61244 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsExportAssignedClassExpressionShadowing(target=es5).symbols @@ -0,0 +1,38 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignedClassExpressionShadowing.ts] //// + +=== index.js === +class A { +>A : Symbol(A, Decl(index.js, 0, 0)) + + member = new Q(); +>member : Symbol(A.member, Decl(index.js, 0, 9)) +>Q : Symbol(Q, Decl(index.js, 2, 1)) +} +class Q { +>Q : Symbol(Q, Decl(index.js, 2, 1)) + + x = 42; +>x : Symbol(Q.x, Decl(index.js, 3, 9)) +} +module.exports = class Q { +>module.exports : Symbol(module.exports, Decl(index.js, 0, 0)) +>module : Symbol(export=, Decl(index.js, 5, 1)) +>exports : Symbol(export=, Decl(index.js, 5, 1)) +>Q : Symbol(Q, Decl(index.js, 6, 16)) + + constructor() { + this.x = new A(); +>this.x : Symbol(Q.x, Decl(index.js, 7, 19)) +>this : Symbol(Q, Decl(index.js, 6, 16)) +>x : Symbol(Q.x, Decl(index.js, 7, 19)) +>A : Symbol(A, Decl(index.js, 0, 0)) + } +} +module.exports.Another = Q; +>module.exports.Another : Symbol(Another, Decl(index.js, 10, 1)) +>module.exports : Symbol(Another, Decl(index.js, 10, 1)) +>module : Symbol(module, Decl(index.js, 5, 1)) +>exports : Symbol(module.exports, Decl(index.js, 0, 0)) +>Another : Symbol(Another, Decl(index.js, 10, 1)) +>Q : Symbol(Q, Decl(index.js, 2, 1)) + diff --git a/tests/baselines/reference/jsDeclarationsExportAssignedClassExpressionShadowing(target=es5).types b/tests/baselines/reference/jsDeclarationsExportAssignedClassExpressionShadowing(target=es5).types new file mode 100644 index 0000000000000..2533b4e1c4463 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsExportAssignedClassExpressionShadowing(target=es5).types @@ -0,0 +1,70 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignedClassExpressionShadowing.ts] //// + +=== index.js === +class A { +>A : A +> : ^ + + member = new Q(); +>member : Q +> : ^ +>new Q() : Q +> : ^ +>Q : typeof Q +> : ^^^^^^^^ +} +class Q { +>Q : Q +> : ^ + + x = 42; +>x : number +> : ^^^^^^ +>42 : 42 +> : ^^ +} +module.exports = class Q { +>module.exports = class Q { constructor() { this.x = new A(); }} : typeof import("index") +> : ^^^^^^^^^^^^^^^^^^^^^^ +>module.exports : typeof import("index") +> : ^^^^^^^^^^^^^^^^^^^^^^ +>module : { exports: typeof import("index"); } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exports : typeof import("index") +> : ^^^^^^^^^^^^^^^^^^^^^^ +>class Q { constructor() { this.x = new A(); }} : typeof import("index") +> : ^^^^^^^^^^^^^^^^^^^^^^ +>Q : typeof import("index") +> : ^^^^^^^^^^^^^^^^^^^^^^ + + constructor() { + this.x = new A(); +>this.x = new A() : A +> : ^ +>this.x : any +>this : this +> : ^^^^ +>x : any +> : ^^^ +>new A() : A +> : ^ +>A : typeof A +> : ^^^^^^^^ + } +} +module.exports.Another = Q; +>module.exports.Another = Q : typeof Q +> : ^^^^^^^^ +>module.exports.Another : typeof Q +> : ^^^^^^^^ +>module.exports : typeof import("index") +> : ^^^^^^^^^^^^^^^^^^^^^^ +>module : { exports: typeof import("index"); } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exports : typeof import("index") +> : ^^^^^^^^^^^^^^^^^^^^^^ +>Another : typeof Q +> : ^^^^^^^^ +>Q : typeof Q +> : ^^^^^^^^ + diff --git a/tests/baselines/reference/jsDeclarationsExportAssignedClassInstance1(target=es2015).js b/tests/baselines/reference/jsDeclarationsExportAssignedClassInstance1(target=es2015).js new file mode 100644 index 0000000000000..f06cbb3b7ac04 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsExportAssignedClassInstance1(target=es2015).js @@ -0,0 +1,18 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignedClassInstance1.ts] //// + +//// [index.js] +class Foo {} + +module.exports = new Foo(); + +//// [index.js] +class Foo { +} +module.exports = new Foo(); + + +//// [index.d.ts] +declare const _exports: Foo; +export = _exports; +declare class Foo { +} diff --git a/tests/baselines/reference/jsDeclarationsExportAssignedClassInstance1.symbols b/tests/baselines/reference/jsDeclarationsExportAssignedClassInstance1(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/jsDeclarationsExportAssignedClassInstance1.symbols rename to tests/baselines/reference/jsDeclarationsExportAssignedClassInstance1(target=es2015).symbols diff --git a/tests/baselines/reference/jsDeclarationsExportAssignedClassInstance1.types b/tests/baselines/reference/jsDeclarationsExportAssignedClassInstance1(target=es2015).types similarity index 100% rename from tests/baselines/reference/jsDeclarationsExportAssignedClassInstance1.types rename to tests/baselines/reference/jsDeclarationsExportAssignedClassInstance1(target=es2015).types diff --git a/tests/baselines/reference/jsDeclarationsExportAssignedClassInstance1.js b/tests/baselines/reference/jsDeclarationsExportAssignedClassInstance1(target=es5).js similarity index 100% rename from tests/baselines/reference/jsDeclarationsExportAssignedClassInstance1.js rename to tests/baselines/reference/jsDeclarationsExportAssignedClassInstance1(target=es5).js diff --git a/tests/baselines/reference/jsDeclarationsExportAssignedClassInstance1(target=es5).symbols b/tests/baselines/reference/jsDeclarationsExportAssignedClassInstance1(target=es5).symbols new file mode 100644 index 0000000000000..5b04c6aa61396 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsExportAssignedClassInstance1(target=es5).symbols @@ -0,0 +1,12 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignedClassInstance1.ts] //// + +=== index.js === +class Foo {} +>Foo : Symbol(Foo, Decl(index.js, 0, 0)) + +module.exports = new Foo(); +>module.exports : Symbol(module.exports, Decl(index.js, 0, 0)) +>module : Symbol(export=, Decl(index.js, 0, 12)) +>exports : Symbol(export=, Decl(index.js, 0, 12)) +>Foo : Symbol(Foo, Decl(index.js, 0, 0)) + diff --git a/tests/baselines/reference/jsDeclarationsExportAssignedClassInstance1(target=es5).types b/tests/baselines/reference/jsDeclarationsExportAssignedClassInstance1(target=es5).types new file mode 100644 index 0000000000000..7081606b15742 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsExportAssignedClassInstance1(target=es5).types @@ -0,0 +1,21 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignedClassInstance1.ts] //// + +=== index.js === +class Foo {} +>Foo : Foo +> : ^^^ + +module.exports = new Foo(); +>module.exports = new Foo() : Foo +> : ^^^ +>module.exports : Foo +> : ^^^ +>module : { exports: Foo; } +> : ^^^^^^^^^^^^^^^^^ +>exports : Foo +> : ^^^ +>new Foo() : Foo +> : ^^^ +>Foo : typeof Foo +> : ^^^^^^^^^^ + diff --git a/tests/baselines/reference/jsDeclarationsExportAssignedClassInstance2(target=es2015).js b/tests/baselines/reference/jsDeclarationsExportAssignedClassInstance2(target=es2015).js new file mode 100644 index 0000000000000..8b0324404f933 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsExportAssignedClassInstance2(target=es2015).js @@ -0,0 +1,27 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignedClassInstance2.ts] //// + +//// [index.js] +class Foo { + static stat = 10; + member = 10; +} + +module.exports = new Foo(); + +//// [index.js] +class Foo { + constructor() { + this.member = 10; + } +} +Foo.stat = 10; +module.exports = new Foo(); + + +//// [index.d.ts] +declare const _exports: Foo; +export = _exports; +declare class Foo { + static stat: number; + member: number; +} diff --git a/tests/baselines/reference/jsDeclarationsExportAssignedClassInstance2.symbols b/tests/baselines/reference/jsDeclarationsExportAssignedClassInstance2(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/jsDeclarationsExportAssignedClassInstance2.symbols rename to tests/baselines/reference/jsDeclarationsExportAssignedClassInstance2(target=es2015).symbols diff --git a/tests/baselines/reference/jsDeclarationsExportAssignedClassInstance2.types b/tests/baselines/reference/jsDeclarationsExportAssignedClassInstance2(target=es2015).types similarity index 100% rename from tests/baselines/reference/jsDeclarationsExportAssignedClassInstance2.types rename to tests/baselines/reference/jsDeclarationsExportAssignedClassInstance2(target=es2015).types diff --git a/tests/baselines/reference/jsDeclarationsExportAssignedClassInstance2.js b/tests/baselines/reference/jsDeclarationsExportAssignedClassInstance2(target=es5).js similarity index 100% rename from tests/baselines/reference/jsDeclarationsExportAssignedClassInstance2.js rename to tests/baselines/reference/jsDeclarationsExportAssignedClassInstance2(target=es5).js diff --git a/tests/baselines/reference/jsDeclarationsExportAssignedClassInstance2(target=es5).symbols b/tests/baselines/reference/jsDeclarationsExportAssignedClassInstance2(target=es5).symbols new file mode 100644 index 0000000000000..e068c96df5c85 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsExportAssignedClassInstance2(target=es5).symbols @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignedClassInstance2.ts] //// + +=== index.js === +class Foo { +>Foo : Symbol(Foo, Decl(index.js, 0, 0)) + + static stat = 10; +>stat : Symbol(Foo.stat, Decl(index.js, 0, 11)) + + member = 10; +>member : Symbol(Foo.member, Decl(index.js, 1, 21)) +} + +module.exports = new Foo(); +>module.exports : Symbol(module.exports, Decl(index.js, 0, 0)) +>module : Symbol(export=, Decl(index.js, 3, 1)) +>exports : Symbol(export=, Decl(index.js, 3, 1)) +>Foo : Symbol(Foo, Decl(index.js, 0, 0)) + diff --git a/tests/baselines/reference/jsDeclarationsExportAssignedClassInstance2(target=es5).types b/tests/baselines/reference/jsDeclarationsExportAssignedClassInstance2(target=es5).types new file mode 100644 index 0000000000000..a9db41c8a5fc7 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsExportAssignedClassInstance2(target=es5).types @@ -0,0 +1,34 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignedClassInstance2.ts] //// + +=== index.js === +class Foo { +>Foo : Foo +> : ^^^ + + static stat = 10; +>stat : number +> : ^^^^^^ +>10 : 10 +> : ^^ + + member = 10; +>member : number +> : ^^^^^^ +>10 : 10 +> : ^^ +} + +module.exports = new Foo(); +>module.exports = new Foo() : Foo +> : ^^^ +>module.exports : Foo +> : ^^^ +>module : { exports: Foo; } +> : ^^^^^^^^^^^^^^^^^ +>exports : Foo +> : ^^^ +>new Foo() : Foo +> : ^^^ +>Foo : typeof Foo +> : ^^^^^^^^^^ + diff --git a/tests/baselines/reference/jsDeclarationsExportAssignedClassInstance3(target=es2015).js b/tests/baselines/reference/jsDeclarationsExportAssignedClassInstance3(target=es2015).js new file mode 100644 index 0000000000000..ab6b7feea4682 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsExportAssignedClassInstance3(target=es2015).js @@ -0,0 +1,26 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignedClassInstance3.ts] //// + +//// [index.js] +class Foo { + static stat = 10; + member = 10; +} + +module.exports = new Foo(); + +module.exports.additional = 20; + +//// [index.js] +class Foo { + constructor() { + this.member = 10; + } +} +Foo.stat = 10; +module.exports = new Foo(); +module.exports.additional = 20; + + +//// [index.d.ts] +export let member: number; +export let additional: 20; diff --git a/tests/baselines/reference/jsDeclarationsExportAssignedClassInstance3.symbols b/tests/baselines/reference/jsDeclarationsExportAssignedClassInstance3(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/jsDeclarationsExportAssignedClassInstance3.symbols rename to tests/baselines/reference/jsDeclarationsExportAssignedClassInstance3(target=es2015).symbols diff --git a/tests/baselines/reference/jsDeclarationsExportAssignedClassInstance3.types b/tests/baselines/reference/jsDeclarationsExportAssignedClassInstance3(target=es2015).types similarity index 100% rename from tests/baselines/reference/jsDeclarationsExportAssignedClassInstance3.types rename to tests/baselines/reference/jsDeclarationsExportAssignedClassInstance3(target=es2015).types diff --git a/tests/baselines/reference/jsDeclarationsExportAssignedClassInstance3.js b/tests/baselines/reference/jsDeclarationsExportAssignedClassInstance3(target=es5).js similarity index 100% rename from tests/baselines/reference/jsDeclarationsExportAssignedClassInstance3.js rename to tests/baselines/reference/jsDeclarationsExportAssignedClassInstance3(target=es5).js diff --git a/tests/baselines/reference/jsDeclarationsExportAssignedClassInstance3(target=es5).symbols b/tests/baselines/reference/jsDeclarationsExportAssignedClassInstance3(target=es5).symbols new file mode 100644 index 0000000000000..188ab67cf51c2 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsExportAssignedClassInstance3(target=es5).symbols @@ -0,0 +1,26 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignedClassInstance3.ts] //// + +=== index.js === +class Foo { +>Foo : Symbol(Foo, Decl(index.js, 0, 0)) + + static stat = 10; +>stat : Symbol(Foo.stat, Decl(index.js, 0, 11)) + + member = 10; +>member : Symbol(Foo.member, Decl(index.js, 1, 21)) +} + +module.exports = new Foo(); +>module.exports : Symbol(module.exports, Decl(index.js, 0, 0)) +>module : Symbol(export=, Decl(index.js, 3, 1)) +>exports : Symbol(export=, Decl(index.js, 3, 1)) +>Foo : Symbol(Foo, Decl(index.js, 0, 0)) + +module.exports.additional = 20; +>module.exports.additional : Symbol(additional, Decl(index.js, 5, 27)) +>module.exports : Symbol(additional, Decl(index.js, 5, 27)) +>module : Symbol(module, Decl(index.js, 3, 1)) +>exports : Symbol(module.exports, Decl(index.js, 0, 0)) +>additional : Symbol(additional, Decl(index.js, 5, 27)) + diff --git a/tests/baselines/reference/jsDeclarationsExportAssignedClassInstance3(target=es5).types b/tests/baselines/reference/jsDeclarationsExportAssignedClassInstance3(target=es5).types new file mode 100644 index 0000000000000..2de1f96c9319d --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsExportAssignedClassInstance3(target=es5).types @@ -0,0 +1,50 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignedClassInstance3.ts] //// + +=== index.js === +class Foo { +>Foo : Foo +> : ^^^ + + static stat = 10; +>stat : number +> : ^^^^^^ +>10 : 10 +> : ^^ + + member = 10; +>member : number +> : ^^^^^^ +>10 : 10 +> : ^^ +} + +module.exports = new Foo(); +>module.exports = new Foo() : { member: number; additional: 20; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>module.exports : { member: number; additional: 20; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>module : { exports: { member: number; additional: 20; }; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exports : { member: number; additional: 20; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>new Foo() : Foo +> : ^^^ +>Foo : typeof Foo +> : ^^^^^^^^^^ + +module.exports.additional = 20; +>module.exports.additional = 20 : 20 +> : ^^ +>module.exports.additional : 20 +> : ^^ +>module.exports : { member: number; additional: 20; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>module : { exports: { member: number; additional: 20; }; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exports : { member: number; additional: 20; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>additional : 20 +> : ^^ +>20 : 20 +> : ^^ + diff --git a/tests/baselines/reference/jsDeclarationsExportAssignedConstructorFunction.js b/tests/baselines/reference/jsDeclarationsExportAssignedConstructorFunction(target=es2015).js similarity index 100% rename from tests/baselines/reference/jsDeclarationsExportAssignedConstructorFunction.js rename to tests/baselines/reference/jsDeclarationsExportAssignedConstructorFunction(target=es2015).js diff --git a/tests/baselines/reference/jsDeclarationsExportAssignedConstructorFunction.symbols b/tests/baselines/reference/jsDeclarationsExportAssignedConstructorFunction(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/jsDeclarationsExportAssignedConstructorFunction.symbols rename to tests/baselines/reference/jsDeclarationsExportAssignedConstructorFunction(target=es2015).symbols diff --git a/tests/baselines/reference/jsDeclarationsExportAssignedConstructorFunction.types b/tests/baselines/reference/jsDeclarationsExportAssignedConstructorFunction(target=es2015).types similarity index 100% rename from tests/baselines/reference/jsDeclarationsExportAssignedConstructorFunction.types rename to tests/baselines/reference/jsDeclarationsExportAssignedConstructorFunction(target=es2015).types diff --git a/tests/baselines/reference/jsDeclarationsExportAssignedConstructorFunction(target=es5).js b/tests/baselines/reference/jsDeclarationsExportAssignedConstructorFunction(target=es5).js new file mode 100644 index 0000000000000..07696c8e790f3 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsExportAssignedConstructorFunction(target=es5).js @@ -0,0 +1,28 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignedConstructorFunction.ts] //// + +//// [jsDeclarationsExportAssignedConstructorFunction.js] +/** @constructor */ +module.exports.MyClass = function() { + this.x = 1 +} +module.exports.MyClass.prototype = { + a: function() { + } +} + + +//// [jsDeclarationsExportAssignedConstructorFunction.js] +/** @constructor */ +module.exports.MyClass = function () { + this.x = 1; +}; +module.exports.MyClass.prototype = { + a: function () { + } +}; + + +//// [jsDeclarationsExportAssignedConstructorFunction.d.ts] +export class MyClass { + a: () => void; +} diff --git a/tests/baselines/reference/jsDeclarationsExportAssignedConstructorFunction(target=es5).symbols b/tests/baselines/reference/jsDeclarationsExportAssignedConstructorFunction(target=es5).symbols new file mode 100644 index 0000000000000..3667b97518bff --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsExportAssignedConstructorFunction(target=es5).symbols @@ -0,0 +1,30 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignedConstructorFunction.ts] //// + +=== jsDeclarationsExportAssignedConstructorFunction.js === +/** @constructor */ +module.exports.MyClass = function() { +>module.exports.MyClass : Symbol(MyClass, Decl(jsDeclarationsExportAssignedConstructorFunction.js, 0, 0), Decl(jsDeclarationsExportAssignedConstructorFunction.js, 4, 15)) +>module.exports : Symbol(MyClass, Decl(jsDeclarationsExportAssignedConstructorFunction.js, 0, 0), Decl(jsDeclarationsExportAssignedConstructorFunction.js, 4, 15)) +>module : Symbol(module, Decl(jsDeclarationsExportAssignedConstructorFunction.js, 0, 0)) +>exports : Symbol(module.exports, Decl(jsDeclarationsExportAssignedConstructorFunction.js, 0, 0)) +>MyClass : Symbol(MyClass, Decl(jsDeclarationsExportAssignedConstructorFunction.js, 0, 0), Decl(jsDeclarationsExportAssignedConstructorFunction.js, 4, 15)) + + this.x = 1 +>this.x : Symbol(MyClass.x, Decl(jsDeclarationsExportAssignedConstructorFunction.js, 1, 37)) +>this : Symbol(MyClass, Decl(jsDeclarationsExportAssignedConstructorFunction.js, 1, 24)) +>x : Symbol(MyClass.x, Decl(jsDeclarationsExportAssignedConstructorFunction.js, 1, 37)) +} +module.exports.MyClass.prototype = { +>module.exports.MyClass.prototype : Symbol(MyClass.prototype, Decl(jsDeclarationsExportAssignedConstructorFunction.js, 3, 1)) +>module.exports.MyClass : Symbol(MyClass, Decl(jsDeclarationsExportAssignedConstructorFunction.js, 0, 0), Decl(jsDeclarationsExportAssignedConstructorFunction.js, 4, 15)) +>module.exports : Symbol(module.exports, Decl(jsDeclarationsExportAssignedConstructorFunction.js, 0, 0)) +>module : Symbol(module, Decl(jsDeclarationsExportAssignedConstructorFunction.js, 0, 0)) +>exports : Symbol(module.exports, Decl(jsDeclarationsExportAssignedConstructorFunction.js, 0, 0)) +>MyClass : Symbol(MyClass, Decl(jsDeclarationsExportAssignedConstructorFunction.js, 0, 0), Decl(jsDeclarationsExportAssignedConstructorFunction.js, 4, 15)) +>prototype : Symbol(MyClass.prototype, Decl(jsDeclarationsExportAssignedConstructorFunction.js, 3, 1)) + + a: function() { +>a : Symbol(a, Decl(jsDeclarationsExportAssignedConstructorFunction.js, 4, 36)) + } +} + diff --git a/tests/baselines/reference/jsDeclarationsExportAssignedConstructorFunction(target=es5).types b/tests/baselines/reference/jsDeclarationsExportAssignedConstructorFunction(target=es5).types new file mode 100644 index 0000000000000..6e80092726ba8 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsExportAssignedConstructorFunction(target=es5).types @@ -0,0 +1,59 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignedConstructorFunction.ts] //// + +=== jsDeclarationsExportAssignedConstructorFunction.js === +/** @constructor */ +module.exports.MyClass = function() { +>module.exports.MyClass = function() { this.x = 1} : typeof MyClass +> : ^^^^^^^^^^^^^^ +>module.exports.MyClass : typeof MyClass +> : ^^^^^^^^^^^^^^ +>module.exports : typeof module.exports +> : ^^^^^^^^^^^^^^^^^^^^^ +>module : { exports: typeof module.exports; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exports : typeof module.exports +> : ^^^^^^^^^^^^^^^^^^^^^ +>MyClass : typeof MyClass +> : ^^^^^^^^^^^^^^ +>function() { this.x = 1} : typeof MyClass +> : ^^^^^^^^^^^^^^ + + this.x = 1 +>this.x = 1 : 1 +> : ^ +>this.x : any +>this : this +> : ^^^^ +>x : any +> : ^^^ +>1 : 1 +> : ^ +} +module.exports.MyClass.prototype = { +>module.exports.MyClass.prototype = { a: function() { }} : { a: () => void; } +> : ^^^^^^^^^^^^^^^^^^ +>module.exports.MyClass.prototype : { a: () => void; } +> : ^^^^^^^^^^^^^^^^^^ +>module.exports.MyClass : typeof MyClass +> : ^^^^^^^^^^^^^^ +>module.exports : typeof module.exports +> : ^^^^^^^^^^^^^^^^^^^^^ +>module : { exports: typeof module.exports; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exports : typeof module.exports +> : ^^^^^^^^^^^^^^^^^^^^^ +>MyClass : typeof MyClass +> : ^^^^^^^^^^^^^^ +>prototype : { a: () => void; } +> : ^^^^^^^^^^^^^^^^^^ +>{ a: function() { }} : { a: () => void; } +> : ^^^^^^^^^^^^^^^^^^ + + a: function() { +>a : () => void +> : ^^^^^^^^^^ +>function() { } : () => void +> : ^^^^^^^^^^ + } +} + diff --git a/tests/baselines/reference/jsDeclarationsExportAssignedConstructorFunctionWithSub.errors.txt b/tests/baselines/reference/jsDeclarationsExportAssignedConstructorFunctionWithSub(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/jsDeclarationsExportAssignedConstructorFunctionWithSub.errors.txt rename to tests/baselines/reference/jsDeclarationsExportAssignedConstructorFunctionWithSub(target=es2015).errors.txt diff --git a/tests/baselines/reference/jsDeclarationsExportAssignedConstructorFunctionWithSub.js b/tests/baselines/reference/jsDeclarationsExportAssignedConstructorFunctionWithSub(target=es2015).js similarity index 100% rename from tests/baselines/reference/jsDeclarationsExportAssignedConstructorFunctionWithSub.js rename to tests/baselines/reference/jsDeclarationsExportAssignedConstructorFunctionWithSub(target=es2015).js diff --git a/tests/baselines/reference/jsDeclarationsExportAssignedConstructorFunctionWithSub.symbols b/tests/baselines/reference/jsDeclarationsExportAssignedConstructorFunctionWithSub(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/jsDeclarationsExportAssignedConstructorFunctionWithSub.symbols rename to tests/baselines/reference/jsDeclarationsExportAssignedConstructorFunctionWithSub(target=es2015).symbols diff --git a/tests/baselines/reference/jsDeclarationsExportAssignedConstructorFunctionWithSub.types b/tests/baselines/reference/jsDeclarationsExportAssignedConstructorFunctionWithSub(target=es2015).types similarity index 100% rename from tests/baselines/reference/jsDeclarationsExportAssignedConstructorFunctionWithSub.types rename to tests/baselines/reference/jsDeclarationsExportAssignedConstructorFunctionWithSub(target=es2015).types diff --git a/tests/baselines/reference/jsDeclarationsExportAssignedConstructorFunctionWithSub(target=es5).errors.txt b/tests/baselines/reference/jsDeclarationsExportAssignedConstructorFunctionWithSub(target=es5).errors.txt new file mode 100644 index 0000000000000..bb3b678582382 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsExportAssignedConstructorFunctionWithSub(target=es5).errors.txt @@ -0,0 +1,20 @@ +jsDeclarationsExportAssignedConstructorFunctionWithSub.js(4,1): error TS9005: Declaration emit for this file requires using private name 'Sub'. An explicit type annotation may unblock declaration emit. +jsDeclarationsExportAssignedConstructorFunctionWithSub.js(4,1): error TS9005: Declaration emit for this file requires using private name 'exports'. An explicit type annotation may unblock declaration emit. + + +==== jsDeclarationsExportAssignedConstructorFunctionWithSub.js (2 errors) ==== + /** + * @param {number} p + */ + module.exports = function (p) { + ~~~~~~ +!!! error TS9005: Declaration emit for this file requires using private name 'Sub'. An explicit type annotation may unblock declaration emit. + ~~~~~~ +!!! error TS9005: Declaration emit for this file requires using private name 'exports'. An explicit type annotation may unblock declaration emit. + this.t = 12 + p; + } + module.exports.Sub = function() { + this.instance = new module.exports(10); + } + module.exports.Sub.prototype = { } + \ No newline at end of file diff --git a/tests/baselines/reference/jsDeclarationsExportAssignedConstructorFunctionWithSub(target=es5).js b/tests/baselines/reference/jsDeclarationsExportAssignedConstructorFunctionWithSub(target=es5).js new file mode 100644 index 0000000000000..59a5017c576b5 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsExportAssignedConstructorFunctionWithSub(target=es5).js @@ -0,0 +1,26 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignedConstructorFunctionWithSub.ts] //// + +//// [jsDeclarationsExportAssignedConstructorFunctionWithSub.js] +/** + * @param {number} p + */ +module.exports = function (p) { + this.t = 12 + p; +} +module.exports.Sub = function() { + this.instance = new module.exports(10); +} +module.exports.Sub.prototype = { } + + +//// [jsDeclarationsExportAssignedConstructorFunctionWithSub.js] +/** + * @param {number} p + */ +module.exports = function (p) { + this.t = 12 + p; +}; +module.exports.Sub = function () { + this.instance = new module.exports(10); +}; +module.exports.Sub.prototype = {}; diff --git a/tests/baselines/reference/jsDeclarationsExportAssignedConstructorFunctionWithSub(target=es5).symbols b/tests/baselines/reference/jsDeclarationsExportAssignedConstructorFunctionWithSub(target=es5).symbols new file mode 100644 index 0000000000000..f0e8c8d81ccd4 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsExportAssignedConstructorFunctionWithSub(target=es5).symbols @@ -0,0 +1,42 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignedConstructorFunctionWithSub.ts] //// + +=== jsDeclarationsExportAssignedConstructorFunctionWithSub.js === +/** + * @param {number} p + */ +module.exports = function (p) { +>module.exports : Symbol(module.exports, Decl(jsDeclarationsExportAssignedConstructorFunctionWithSub.js, 0, 0)) +>module : Symbol(export=, Decl(jsDeclarationsExportAssignedConstructorFunctionWithSub.js, 0, 0)) +>exports : Symbol(export=, Decl(jsDeclarationsExportAssignedConstructorFunctionWithSub.js, 0, 0)) +>p : Symbol(p, Decl(jsDeclarationsExportAssignedConstructorFunctionWithSub.js, 3, 27)) + + this.t = 12 + p; +>this.t : Symbol(exports.t, Decl(jsDeclarationsExportAssignedConstructorFunctionWithSub.js, 3, 31)) +>this : Symbol(exports, Decl(jsDeclarationsExportAssignedConstructorFunctionWithSub.js, 3, 16)) +>t : Symbol(exports.t, Decl(jsDeclarationsExportAssignedConstructorFunctionWithSub.js, 3, 31)) +>p : Symbol(p, Decl(jsDeclarationsExportAssignedConstructorFunctionWithSub.js, 3, 27)) +} +module.exports.Sub = function() { +>module.exports.Sub : Symbol(Sub, Decl(jsDeclarationsExportAssignedConstructorFunctionWithSub.js, 5, 1), Decl(jsDeclarationsExportAssignedConstructorFunctionWithSub.js, 9, 15)) +>module.exports : Symbol(Sub, Decl(jsDeclarationsExportAssignedConstructorFunctionWithSub.js, 5, 1), Decl(jsDeclarationsExportAssignedConstructorFunctionWithSub.js, 9, 15)) +>module : Symbol(module, Decl(jsDeclarationsExportAssignedConstructorFunctionWithSub.js, 0, 0), Decl(jsDeclarationsExportAssignedConstructorFunctionWithSub.js, 7, 23)) +>exports : Symbol(module.exports, Decl(jsDeclarationsExportAssignedConstructorFunctionWithSub.js, 0, 0)) +>Sub : Symbol(Sub, Decl(jsDeclarationsExportAssignedConstructorFunctionWithSub.js, 5, 1), Decl(jsDeclarationsExportAssignedConstructorFunctionWithSub.js, 9, 15)) + + this.instance = new module.exports(10); +>this.instance : Symbol(Sub.instance, Decl(jsDeclarationsExportAssignedConstructorFunctionWithSub.js, 6, 33)) +>this : Symbol(Sub, Decl(jsDeclarationsExportAssignedConstructorFunctionWithSub.js, 6, 20)) +>instance : Symbol(Sub.instance, Decl(jsDeclarationsExportAssignedConstructorFunctionWithSub.js, 6, 33)) +>module.exports : Symbol(module.exports, Decl(jsDeclarationsExportAssignedConstructorFunctionWithSub.js, 0, 0)) +>module : Symbol(module, Decl(jsDeclarationsExportAssignedConstructorFunctionWithSub.js, 0, 0), Decl(jsDeclarationsExportAssignedConstructorFunctionWithSub.js, 7, 23)) +>exports : Symbol(module.exports, Decl(jsDeclarationsExportAssignedConstructorFunctionWithSub.js, 0, 0)) +} +module.exports.Sub.prototype = { } +>module.exports.Sub.prototype : Symbol(Sub.prototype, Decl(jsDeclarationsExportAssignedConstructorFunctionWithSub.js, 8, 1)) +>module.exports.Sub : Symbol(Sub, Decl(jsDeclarationsExportAssignedConstructorFunctionWithSub.js, 5, 1), Decl(jsDeclarationsExportAssignedConstructorFunctionWithSub.js, 9, 15)) +>module.exports : Symbol(module.exports, Decl(jsDeclarationsExportAssignedConstructorFunctionWithSub.js, 0, 0)) +>module : Symbol(module, Decl(jsDeclarationsExportAssignedConstructorFunctionWithSub.js, 0, 0), Decl(jsDeclarationsExportAssignedConstructorFunctionWithSub.js, 7, 23)) +>exports : Symbol(module.exports, Decl(jsDeclarationsExportAssignedConstructorFunctionWithSub.js, 0, 0)) +>Sub : Symbol(Sub, Decl(jsDeclarationsExportAssignedConstructorFunctionWithSub.js, 5, 1), Decl(jsDeclarationsExportAssignedConstructorFunctionWithSub.js, 9, 15)) +>prototype : Symbol(Sub.prototype, Decl(jsDeclarationsExportAssignedConstructorFunctionWithSub.js, 8, 1)) + diff --git a/tests/baselines/reference/jsDeclarationsExportAssignedConstructorFunctionWithSub(target=es5).types b/tests/baselines/reference/jsDeclarationsExportAssignedConstructorFunctionWithSub(target=es5).types new file mode 100644 index 0000000000000..835fccd045001 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsExportAssignedConstructorFunctionWithSub(target=es5).types @@ -0,0 +1,92 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignedConstructorFunctionWithSub.ts] //// + +=== jsDeclarationsExportAssignedConstructorFunctionWithSub.js === +/** + * @param {number} p + */ +module.exports = function (p) { +>module.exports = function (p) { this.t = 12 + p;} : { (p: number): void; new (p: number): exports; Sub: typeof Sub; } +> : ^^^ ^^ ^^^^^^^^^^^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>module.exports : { (p: number): void; new (p: number): exports; Sub: typeof Sub; } +> : ^^^ ^^ ^^^^^^^^^^^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>module : { exports: { (p: number): void; new (p: number): exports; Sub: typeof Sub; }; } +> : ^^^^^^^^^^^^^^ ^^ ^^^^^^^^^^^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exports : { (p: number): void; new (p: number): exports; Sub: typeof Sub; } +> : ^^^ ^^ ^^^^^^^^^^^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>function (p) { this.t = 12 + p;} : typeof exports +> : ^^^^^^^^^^^^^^ +>p : number +> : ^^^^^^ + + this.t = 12 + p; +>this.t = 12 + p : number +> : ^^^^^^ +>this.t : any +> : ^^^ +>this : this +> : ^^^^ +>t : any +> : ^^^ +>12 + p : number +> : ^^^^^^ +>12 : 12 +> : ^^ +>p : number +> : ^^^^^^ +} +module.exports.Sub = function() { +>module.exports.Sub = function() { this.instance = new module.exports(10);} : typeof Sub +> : ^^^^^^^^^^ +>module.exports.Sub : typeof Sub +> : ^^^^^^^^^^ +>module.exports : { (p: number): void; new (p: number): exports; Sub: typeof Sub; } +> : ^^^ ^^ ^^^^^^^^^^^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>module : { exports: { (p: number): void; new (p: number): exports; Sub: typeof Sub; }; } +> : ^^^^^^^^^^^^^^ ^^ ^^^^^^^^^^^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exports : { (p: number): void; new (p: number): exports; Sub: typeof Sub; } +> : ^^^ ^^ ^^^^^^^^^^^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>Sub : typeof Sub +> : ^^^^^^^^^^ +>function() { this.instance = new module.exports(10);} : typeof Sub +> : ^^^^^^^^^^ + + this.instance = new module.exports(10); +>this.instance = new module.exports(10) : exports +> : ^^^^^^^ +>this.instance : any +> : ^^^ +>this : this +> : ^^^^ +>instance : any +> : ^^^ +>new module.exports(10) : exports +> : ^^^^^^^ +>module.exports : { (p: number): void; new (p: number): exports; Sub: typeof Sub; } +> : ^^^ ^^ ^^^^^^^^^^^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>module : { exports: { (p: number): void; new (p: number): exports; Sub: typeof Sub; }; } +> : ^^^^^^^^^^^^^^ ^^ ^^^^^^^^^^^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exports : { (p: number): void; new (p: number): exports; Sub: typeof Sub; } +> : ^^^ ^^ ^^^^^^^^^^^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>10 : 10 +> : ^^ +} +module.exports.Sub.prototype = { } +>module.exports.Sub.prototype = { } : {} +> : ^^ +>module.exports.Sub.prototype : {} +> : ^^ +>module.exports.Sub : typeof Sub +> : ^^^^^^^^^^ +>module.exports : { (p: number): void; new (p: number): exports; Sub: typeof Sub; } +> : ^^^ ^^ ^^^^^^^^^^^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>module : { exports: { (p: number): void; new (p: number): exports; Sub: typeof Sub; }; } +> : ^^^^^^^^^^^^^^ ^^ ^^^^^^^^^^^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exports : { (p: number): void; new (p: number): exports; Sub: typeof Sub; } +> : ^^^ ^^ ^^^^^^^^^^^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>Sub : typeof Sub +> : ^^^^^^^^^^ +>prototype : {} +> : ^^ +>{ } : {} +> : ^^ + diff --git a/tests/baselines/reference/jsDeclarationsExportAssignedVisibility(target=es2015).js b/tests/baselines/reference/jsDeclarationsExportAssignedVisibility(target=es2015).js new file mode 100644 index 0000000000000..dcf19b0c9e771 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsExportAssignedVisibility(target=es2015).js @@ -0,0 +1,46 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignedVisibility.ts] //// + +//// [obj.js] +module.exports = class Obj { + constructor() { + this.x = 12; + } +} +//// [index.js] +const Obj = require("./obj"); + +class Container { + constructor() { + this.usage = new Obj(); + } +} + +module.exports = Container; + +//// [obj.js] +module.exports = class Obj { + constructor() { + this.x = 12; + } +}; +//// [index.js] +const Obj = require("./obj"); +class Container { + constructor() { + this.usage = new Obj(); + } +} +module.exports = Container; + + +//// [obj.d.ts] +export = Obj; +declare class Obj { + x: number; +} +//// [index.d.ts] +export = Container; +declare class Container { + usage: Obj; +} +import Obj = require("./obj"); diff --git a/tests/baselines/reference/jsDeclarationsExportAssignedVisibility.symbols b/tests/baselines/reference/jsDeclarationsExportAssignedVisibility(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/jsDeclarationsExportAssignedVisibility.symbols rename to tests/baselines/reference/jsDeclarationsExportAssignedVisibility(target=es2015).symbols diff --git a/tests/baselines/reference/jsDeclarationsExportAssignedVisibility.types b/tests/baselines/reference/jsDeclarationsExportAssignedVisibility(target=es2015).types similarity index 100% rename from tests/baselines/reference/jsDeclarationsExportAssignedVisibility.types rename to tests/baselines/reference/jsDeclarationsExportAssignedVisibility(target=es2015).types diff --git a/tests/baselines/reference/jsDeclarationsExportAssignedVisibility.js b/tests/baselines/reference/jsDeclarationsExportAssignedVisibility(target=es5).js similarity index 100% rename from tests/baselines/reference/jsDeclarationsExportAssignedVisibility.js rename to tests/baselines/reference/jsDeclarationsExportAssignedVisibility(target=es5).js diff --git a/tests/baselines/reference/jsDeclarationsExportAssignedVisibility(target=es5).symbols b/tests/baselines/reference/jsDeclarationsExportAssignedVisibility(target=es5).symbols new file mode 100644 index 0000000000000..3bd6d1e06a6aa --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsExportAssignedVisibility(target=es5).symbols @@ -0,0 +1,40 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignedVisibility.ts] //// + +=== index.js === +const Obj = require("./obj"); +>Obj : Symbol(Obj, Decl(index.js, 0, 5)) +>require : Symbol(require) +>"./obj" : Symbol("obj", Decl(obj.js, 0, 0)) + +class Container { +>Container : Symbol(Container, Decl(index.js, 0, 29)) + + constructor() { + this.usage = new Obj(); +>this.usage : Symbol(Container.usage, Decl(index.js, 3, 19)) +>this : Symbol(Container, Decl(index.js, 0, 29)) +>usage : Symbol(Container.usage, Decl(index.js, 3, 19)) +>Obj : Symbol(Obj, Decl(index.js, 0, 5)) + } +} + +module.exports = Container; +>module.exports : Symbol(module.exports, Decl(index.js, 0, 0)) +>module : Symbol(export=, Decl(index.js, 6, 1)) +>exports : Symbol(export=, Decl(index.js, 6, 1)) +>Container : Symbol(Container, Decl(index.js, 0, 29)) + +=== obj.js === +module.exports = class Obj { +>module.exports : Symbol(module.exports, Decl(obj.js, 0, 0)) +>module : Symbol(export=, Decl(obj.js, 0, 0)) +>exports : Symbol(export=, Decl(obj.js, 0, 0)) +>Obj : Symbol(Obj, Decl(obj.js, 0, 16)) + + constructor() { + this.x = 12; +>this.x : Symbol(Obj.x, Decl(obj.js, 1, 19)) +>this : Symbol(Obj, Decl(obj.js, 0, 16)) +>x : Symbol(Obj.x, Decl(obj.js, 1, 19)) + } +} diff --git a/tests/baselines/reference/jsDeclarationsExportAssignedVisibility(target=es5).types b/tests/baselines/reference/jsDeclarationsExportAssignedVisibility(target=es5).types new file mode 100644 index 0000000000000..ec3ec831d58f5 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsExportAssignedVisibility(target=es5).types @@ -0,0 +1,72 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignedVisibility.ts] //// + +=== index.js === +const Obj = require("./obj"); +>Obj : typeof Obj +> : ^^^^^^^^^^ +>require("./obj") : typeof Obj +> : ^^^^^^^^^^ +>require : any +>"./obj" : "./obj" +> : ^^^^^^^ + +class Container { +>Container : Container +> : ^^^^^^^^^ + + constructor() { + this.usage = new Obj(); +>this.usage = new Obj() : Obj +> : ^^^ +>this.usage : any +>this : this +> : ^^^^ +>usage : any +> : ^^^ +>new Obj() : Obj +> : ^^^ +>Obj : typeof Obj +> : ^^^^^^^^^^ + } +} + +module.exports = Container; +>module.exports = Container : typeof Container +> : ^^^^^^^^^^^^^^^^ +>module.exports : typeof Container +> : ^^^^^^^^^^^^^^^^ +>module : { exports: typeof Container; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exports : typeof Container +> : ^^^^^^^^^^^^^^^^ +>Container : typeof Container +> : ^^^^^^^^^^^^^^^^ + +=== obj.js === +module.exports = class Obj { +>module.exports = class Obj { constructor() { this.x = 12; }} : typeof import("obj") +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^ +>module.exports : typeof import("obj") +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^ +>module : { exports: typeof import("obj"); } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exports : typeof import("obj") +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^ +>class Obj { constructor() { this.x = 12; }} : typeof import("obj") +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^ +>Obj : typeof import("obj") +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^ + + constructor() { + this.x = 12; +>this.x = 12 : 12 +> : ^^ +>this.x : any +>this : this +> : ^^^^ +>x : any +> : ^^^ +>12 : 12 +> : ^^ + } +} diff --git a/tests/baselines/reference/jsDeclarationsExportAssignmentExpressionPlusSecondary(target=es2015).js b/tests/baselines/reference/jsDeclarationsExportAssignmentExpressionPlusSecondary(target=es2015).js new file mode 100644 index 0000000000000..5ccf281e28425 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsExportAssignmentExpressionPlusSecondary(target=es2015).js @@ -0,0 +1,42 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignmentExpressionPlusSecondary.ts] //// + +//// [index.js] +const Strings = { + a: "A", + b: "B" +}; +module.exports = { + thing: "ok", + also: "ok", + desc: { + item: "ok" + } +}; +module.exports.Strings = Strings; + + +//// [index.js] +const Strings = { + a: "A", + b: "B" +}; +module.exports = { + thing: "ok", + also: "ok", + desc: { + item: "ok" + } +}; +module.exports.Strings = Strings; + + +//// [index.d.ts] +export namespace Strings { + let a: string; + let b: string; +} +export declare let thing: string; +export declare let also: string; +export declare namespace desc { + let item: string; +} diff --git a/tests/baselines/reference/jsDeclarationsExportAssignmentExpressionPlusSecondary.symbols b/tests/baselines/reference/jsDeclarationsExportAssignmentExpressionPlusSecondary(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/jsDeclarationsExportAssignmentExpressionPlusSecondary.symbols rename to tests/baselines/reference/jsDeclarationsExportAssignmentExpressionPlusSecondary(target=es2015).symbols diff --git a/tests/baselines/reference/jsDeclarationsExportAssignmentExpressionPlusSecondary.types b/tests/baselines/reference/jsDeclarationsExportAssignmentExpressionPlusSecondary(target=es2015).types similarity index 100% rename from tests/baselines/reference/jsDeclarationsExportAssignmentExpressionPlusSecondary.types rename to tests/baselines/reference/jsDeclarationsExportAssignmentExpressionPlusSecondary(target=es2015).types diff --git a/tests/baselines/reference/jsDeclarationsExportAssignmentExpressionPlusSecondary.js b/tests/baselines/reference/jsDeclarationsExportAssignmentExpressionPlusSecondary(target=es5).js similarity index 100% rename from tests/baselines/reference/jsDeclarationsExportAssignmentExpressionPlusSecondary.js rename to tests/baselines/reference/jsDeclarationsExportAssignmentExpressionPlusSecondary(target=es5).js diff --git a/tests/baselines/reference/jsDeclarationsExportAssignmentExpressionPlusSecondary(target=es5).symbols b/tests/baselines/reference/jsDeclarationsExportAssignmentExpressionPlusSecondary(target=es5).symbols new file mode 100644 index 0000000000000..3994f949d5c4c --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsExportAssignmentExpressionPlusSecondary(target=es5).symbols @@ -0,0 +1,39 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignmentExpressionPlusSecondary.ts] //// + +=== index.js === +const Strings = { +>Strings : Symbol(Strings, Decl(index.js, 0, 5)) + + a: "A", +>a : Symbol(a, Decl(index.js, 0, 17)) + + b: "B" +>b : Symbol(b, Decl(index.js, 1, 11)) + +}; +module.exports = { +>module.exports : Symbol(module.exports, Decl(index.js, 0, 0)) +>module : Symbol(export=, Decl(index.js, 3, 2)) +>exports : Symbol(export=, Decl(index.js, 3, 2)) + + thing: "ok", +>thing : Symbol(thing, Decl(index.js, 4, 18)) + + also: "ok", +>also : Symbol(also, Decl(index.js, 5, 16)) + + desc: { +>desc : Symbol(desc, Decl(index.js, 6, 15)) + + item: "ok" +>item : Symbol(item, Decl(index.js, 7, 11)) + } +}; +module.exports.Strings = Strings; +>module.exports.Strings : Symbol(Strings, Decl(index.js, 10, 2)) +>module.exports : Symbol(Strings, Decl(index.js, 10, 2)) +>module : Symbol(module, Decl(index.js, 3, 2)) +>exports : Symbol(module.exports, Decl(index.js, 0, 0)) +>Strings : Symbol(Strings, Decl(index.js, 10, 2)) +>Strings : Symbol(Strings, Decl(index.js, 0, 5)) + diff --git a/tests/baselines/reference/jsDeclarationsExportAssignmentExpressionPlusSecondary(target=es5).types b/tests/baselines/reference/jsDeclarationsExportAssignmentExpressionPlusSecondary(target=es5).types new file mode 100644 index 0000000000000..5b19ccc28975b --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsExportAssignmentExpressionPlusSecondary(target=es5).types @@ -0,0 +1,75 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignmentExpressionPlusSecondary.ts] //// + +=== index.js === +const Strings = { +>Strings : { a: string; b: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ a: "A", b: "B"} : { a: string; b: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ + + a: "A", +>a : string +> : ^^^^^^ +>"A" : "A" +> : ^^^ + + b: "B" +>b : string +> : ^^^^^^ +>"B" : "B" +> : ^^^ + +}; +module.exports = { +>module.exports = { thing: "ok", also: "ok", desc: { item: "ok" }} : { thing: string; also: string; desc: { item: string; }; Strings: { a: string; b: string; }; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>module.exports : { thing: string; also: string; desc: { item: string; }; Strings: { a: string; b: string; }; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>module : { exports: { thing: string; also: string; desc: { item: string; }; Strings: { a: string; b: string; }; }; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exports : { thing: string; also: string; desc: { item: string; }; Strings: { a: string; b: string; }; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ thing: "ok", also: "ok", desc: { item: "ok" }} : { thing: string; also: string; desc: { item: string; }; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + thing: "ok", +>thing : string +> : ^^^^^^ +>"ok" : "ok" +> : ^^^^ + + also: "ok", +>also : string +> : ^^^^^^ +>"ok" : "ok" +> : ^^^^ + + desc: { +>desc : { item: string; } +> : ^^^^^^^^^^^^^^^^^ +>{ item: "ok" } : { item: string; } +> : ^^^^^^^^^^^^^^^^^ + + item: "ok" +>item : string +> : ^^^^^^ +>"ok" : "ok" +> : ^^^^ + } +}; +module.exports.Strings = Strings; +>module.exports.Strings = Strings : { a: string; b: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>module.exports.Strings : { a: string; b: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>module.exports : { thing: string; also: string; desc: { item: string; }; Strings: { a: string; b: string; }; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>module : { exports: { thing: string; also: string; desc: { item: string; }; Strings: { a: string; b: string; }; }; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exports : { thing: string; also: string; desc: { item: string; }; Strings: { a: string; b: string; }; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>Strings : { a: string; b: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>Strings : { a: string; b: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ + diff --git a/tests/baselines/reference/jsDeclarationsExportAssignmentWithKeywordName(target=es2015).js b/tests/baselines/reference/jsDeclarationsExportAssignmentWithKeywordName(target=es2015).js new file mode 100644 index 0000000000000..e93621a2d71be --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsExportAssignmentWithKeywordName(target=es2015).js @@ -0,0 +1,30 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignmentWithKeywordName.ts] //// + +//// [index.js] +var x = 12; +module.exports = { + extends: 'base', + more: { + others: ['strs'] + }, + x +}; + +//// [index.js] +var x = 12; +module.exports = { + extends: 'base', + more: { + others: ['strs'] + }, + x +}; + + +//// [index.d.ts] +export var x: number; +declare let _extends: string; +export declare namespace more { + let others: string[]; +} +export { _extends as extends }; diff --git a/tests/baselines/reference/jsDeclarationsExportAssignmentWithKeywordName.symbols b/tests/baselines/reference/jsDeclarationsExportAssignmentWithKeywordName(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/jsDeclarationsExportAssignmentWithKeywordName.symbols rename to tests/baselines/reference/jsDeclarationsExportAssignmentWithKeywordName(target=es2015).symbols diff --git a/tests/baselines/reference/jsDeclarationsExportAssignmentWithKeywordName.types b/tests/baselines/reference/jsDeclarationsExportAssignmentWithKeywordName(target=es2015).types similarity index 100% rename from tests/baselines/reference/jsDeclarationsExportAssignmentWithKeywordName.types rename to tests/baselines/reference/jsDeclarationsExportAssignmentWithKeywordName(target=es2015).types diff --git a/tests/baselines/reference/jsDeclarationsExportAssignmentWithKeywordName.js b/tests/baselines/reference/jsDeclarationsExportAssignmentWithKeywordName(target=es5).js similarity index 100% rename from tests/baselines/reference/jsDeclarationsExportAssignmentWithKeywordName.js rename to tests/baselines/reference/jsDeclarationsExportAssignmentWithKeywordName(target=es5).js diff --git a/tests/baselines/reference/jsDeclarationsExportAssignmentWithKeywordName(target=es5).symbols b/tests/baselines/reference/jsDeclarationsExportAssignmentWithKeywordName(target=es5).symbols new file mode 100644 index 0000000000000..0b31e1e1eb21e --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsExportAssignmentWithKeywordName(target=es5).symbols @@ -0,0 +1,25 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignmentWithKeywordName.ts] //// + +=== index.js === +var x = 12; +>x : Symbol(x, Decl(index.js, 0, 3)) + +module.exports = { +>module.exports : Symbol(module.exports, Decl(index.js, 0, 0)) +>module : Symbol(export=, Decl(index.js, 0, 11)) +>exports : Symbol(export=, Decl(index.js, 0, 11)) + + extends: 'base', +>extends : Symbol(extends, Decl(index.js, 1, 18)) + + more: { +>more : Symbol(more, Decl(index.js, 2, 20)) + + others: ['strs'] +>others : Symbol(others, Decl(index.js, 3, 11)) + + }, + x +>x : Symbol(x, Decl(index.js, 5, 6)) + +}; diff --git a/tests/baselines/reference/jsDeclarationsExportAssignmentWithKeywordName(target=es5).types b/tests/baselines/reference/jsDeclarationsExportAssignmentWithKeywordName(target=es5).types new file mode 100644 index 0000000000000..3ed6c68171263 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsExportAssignmentWithKeywordName(target=es5).types @@ -0,0 +1,47 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignmentWithKeywordName.ts] //// + +=== index.js === +var x = 12; +>x : number +> : ^^^^^^ +>12 : 12 +> : ^^ + +module.exports = { +>module.exports = { extends: 'base', more: { others: ['strs'] }, x} : { extends: string; more: { others: string[]; }; x: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>module.exports : { extends: string; more: { others: string[]; }; x: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>module : { exports: { extends: string; more: { others: string[]; }; x: number; }; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exports : { extends: string; more: { others: string[]; }; x: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ extends: 'base', more: { others: ['strs'] }, x} : { extends: string; more: { others: string[]; }; x: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + extends: 'base', +>extends : string +> : ^^^^^^ +>'base' : "base" +> : ^^^^^^ + + more: { +>more : { others: string[]; } +> : ^^^^^^^^^^^^^^^^^^^^^ +>{ others: ['strs'] } : { others: string[]; } +> : ^^^^^^^^^^^^^^^^^^^^^ + + others: ['strs'] +>others : string[] +> : ^^^^^^^^ +>['strs'] : string[] +> : ^^^^^^^^ +>'strs' : "strs" +> : ^^^^^^ + + }, + x +>x : number +> : ^^^^^^ + +}; diff --git a/tests/baselines/reference/jsDeclarationsExportForms(target=es2015).js b/tests/baselines/reference/jsDeclarationsExportForms(target=es2015).js new file mode 100644 index 0000000000000..d5fd613769a7e --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsExportForms(target=es2015).js @@ -0,0 +1,143 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportForms.ts] //// + +//// [cls.js] +export class Foo {} + +//// [func.js] +export function func() {} + +//// [bar.js] +export * from "./cls"; + +//// [bar2.js] +export * from "./func"; +export * from "./cls"; + +//// [baz.js] +import {Foo} from "./cls"; +export {Foo}; + +//// [bat.js] +import * as ns from "./cls"; +export default ns; + +//// [ban.js] +import * as ns from "./cls"; +export {ns}; + +//// [bol.js] +import * as ns from "./cls"; +export { ns as classContainer }; + +//// [cjs.js] +const ns = require("./cls"); +module.exports = { ns }; + +//// [cjs2.js] +const ns = require("./cls"); +module.exports = ns; + +//// [cjs3.js] +const ns = require("./cls"); +module.exports.ns = ns; + +//// [cjs4.js] +const ns = require("./cls"); +module.exports.names = ns; + +//// [includeAll.js] +import "./cjs4"; +import "./cjs3"; +import "./cjs2"; +import "./cjs"; +import "./bol"; +import "./ban"; +import "./bat"; +import "./baz"; +import "./bar"; +import "./bar2"; + + +//// [cls.js] +export class Foo { +} +//// [func.js] +export function func() { } +//// [bar.js] +export * from "./cls"; +//// [bar2.js] +export * from "./func"; +export * from "./cls"; +//// [baz.js] +import { Foo } from "./cls"; +export { Foo }; +//// [bat.js] +import * as ns from "./cls"; +export default ns; +//// [ban.js] +import * as ns from "./cls"; +export { ns }; +//// [bol.js] +import * as ns from "./cls"; +export { ns as classContainer }; +//// [cjs.js] +const ns = require("./cls"); +module.exports = { ns }; +//// [cjs2.js] +const ns = require("./cls"); +module.exports = ns; +//// [cjs3.js] +const ns = require("./cls"); +module.exports.ns = ns; +//// [cjs4.js] +const ns = require("./cls"); +module.exports.names = ns; +//// [includeAll.js] +import "./cjs4"; +import "./cjs3"; +import "./cjs2"; +import "./cjs"; +import "./bol"; +import "./ban"; +import "./bat"; +import "./baz"; +import "./bar"; +import "./bar2"; + + +//// [cls.d.ts] +export class Foo { +} +//// [func.d.ts] +export function func(): void; +//// [bar.d.ts] +export * from "./cls"; +//// [bar2.d.ts] +export * from "./func"; +export * from "./cls"; +//// [baz.d.ts] +export { Foo }; +import { Foo } from "./cls"; +//// [bat.d.ts] +export default ns; +import * as ns from "./cls"; +//// [ban.d.ts] +export { ns }; +import * as ns from "./cls"; +//// [bol.d.ts] +export { ns as classContainer }; +import * as ns from "./cls"; +//// [cjs.d.ts] +export { ns }; +import ns = require("./cls"); +//// [cjs2.d.ts] +export = ns; +import ns = require("./cls"); +//// [cjs3.d.ts] +export { ns }; +import ns = require("./cls"); +//// [cjs4.d.ts] +export { ns as names }; +import ns = require("./cls"); +//// [includeAll.d.ts] +export {}; diff --git a/tests/baselines/reference/jsDeclarationsExportForms.symbols b/tests/baselines/reference/jsDeclarationsExportForms(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/jsDeclarationsExportForms.symbols rename to tests/baselines/reference/jsDeclarationsExportForms(target=es2015).symbols diff --git a/tests/baselines/reference/jsDeclarationsExportForms.types b/tests/baselines/reference/jsDeclarationsExportForms(target=es2015).types similarity index 100% rename from tests/baselines/reference/jsDeclarationsExportForms.types rename to tests/baselines/reference/jsDeclarationsExportForms(target=es2015).types diff --git a/tests/baselines/reference/jsDeclarationsExportForms.js b/tests/baselines/reference/jsDeclarationsExportForms(target=es5).js similarity index 100% rename from tests/baselines/reference/jsDeclarationsExportForms.js rename to tests/baselines/reference/jsDeclarationsExportForms(target=es5).js diff --git a/tests/baselines/reference/jsDeclarationsExportForms(target=es5).symbols b/tests/baselines/reference/jsDeclarationsExportForms(target=es5).symbols new file mode 100644 index 0000000000000..470b5331968ef --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsExportForms(target=es5).symbols @@ -0,0 +1,113 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportForms.ts] //// + +=== cls.js === +export class Foo {} +>Foo : Symbol(Foo, Decl(cls.js, 0, 0)) + +=== func.js === +export function func() {} +>func : Symbol(func, Decl(func.js, 0, 0)) + +=== bar.js === + +export * from "./cls"; + +=== bar2.js === + +export * from "./func"; +export * from "./cls"; + +=== baz.js === +import {Foo} from "./cls"; +>Foo : Symbol(Foo, Decl(baz.js, 0, 8)) + +export {Foo}; +>Foo : Symbol(Foo, Decl(baz.js, 1, 8)) + +=== bat.js === +import * as ns from "./cls"; +>ns : Symbol(ns, Decl(bat.js, 0, 6)) + +export default ns; +>ns : Symbol(ns, Decl(bat.js, 0, 6)) + +=== ban.js === +import * as ns from "./cls"; +>ns : Symbol(ns, Decl(ban.js, 0, 6)) + +export {ns}; +>ns : Symbol(ns, Decl(ban.js, 1, 8)) + +=== bol.js === +import * as ns from "./cls"; +>ns : Symbol(ns, Decl(bol.js, 0, 6)) + +export { ns as classContainer }; +>ns : Symbol(ns, Decl(bol.js, 0, 6)) +>classContainer : Symbol(classContainer, Decl(bol.js, 1, 8)) + +=== cjs.js === +const ns = require("./cls"); +>ns : Symbol(ns, Decl(cjs.js, 0, 5)) +>require : Symbol(require) +>"./cls" : Symbol(ns, Decl(cls.js, 0, 0)) + +module.exports = { ns }; +>module.exports : Symbol(module.exports, Decl(cjs.js, 0, 0)) +>module : Symbol(module, Decl(cjs.js, 0, 28)) +>exports : Symbol(module.exports, Decl(cjs.js, 0, 0)) +>ns : Symbol(ns, Decl(cjs.js, 1, 18)) + +=== cjs2.js === +const ns = require("./cls"); +>ns : Symbol(ns, Decl(cjs2.js, 0, 5)) +>require : Symbol(require) +>"./cls" : Symbol(ns, Decl(cls.js, 0, 0)) + +module.exports = ns; +>module.exports : Symbol(module.exports, Decl(cjs2.js, 0, 0)) +>module : Symbol(export=, Decl(cjs2.js, 0, 28)) +>exports : Symbol(export=, Decl(cjs2.js, 0, 28)) +>ns : Symbol(ns, Decl(cjs2.js, 0, 5)) + +=== cjs3.js === +const ns = require("./cls"); +>ns : Symbol(ns, Decl(cjs3.js, 0, 5)) +>require : Symbol(require) +>"./cls" : Symbol(ns, Decl(cls.js, 0, 0)) + +module.exports.ns = ns; +>module.exports.ns : Symbol(ns, Decl(cjs3.js, 0, 28)) +>module.exports : Symbol(ns, Decl(cjs3.js, 0, 28)) +>module : Symbol(module, Decl(cjs3.js, 0, 28)) +>exports : Symbol(module.exports, Decl(cjs3.js, 0, 0)) +>ns : Symbol(ns, Decl(cjs3.js, 0, 28)) +>ns : Symbol(ns, Decl(cjs3.js, 0, 5)) + +=== cjs4.js === +const ns = require("./cls"); +>ns : Symbol(ns, Decl(cjs4.js, 0, 5)) +>require : Symbol(require) +>"./cls" : Symbol(ns, Decl(cls.js, 0, 0)) + +module.exports.names = ns; +>module.exports.names : Symbol(names, Decl(cjs4.js, 0, 28)) +>module.exports : Symbol(names, Decl(cjs4.js, 0, 28)) +>module : Symbol(module, Decl(cjs4.js, 0, 28)) +>exports : Symbol(module.exports, Decl(cjs4.js, 0, 0)) +>names : Symbol(names, Decl(cjs4.js, 0, 28)) +>ns : Symbol(ns, Decl(cjs4.js, 0, 5)) + +=== includeAll.js === + +import "./cjs4"; +import "./cjs3"; +import "./cjs2"; +import "./cjs"; +import "./bol"; +import "./ban"; +import "./bat"; +import "./baz"; +import "./bar"; +import "./bar2"; + diff --git a/tests/baselines/reference/jsDeclarationsExportForms(target=es5).types b/tests/baselines/reference/jsDeclarationsExportForms(target=es5).types new file mode 100644 index 0000000000000..46be34d410a20 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsExportForms(target=es5).types @@ -0,0 +1,170 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportForms.ts] //// + +=== cls.js === +export class Foo {} +>Foo : Foo +> : ^^^ + +=== func.js === +export function func() {} +>func : () => void +> : ^^^^^^^^^^ + +=== bar.js === + +export * from "./cls"; + +=== bar2.js === + +export * from "./func"; +export * from "./cls"; + +=== baz.js === +import {Foo} from "./cls"; +>Foo : typeof Foo +> : ^^^^^^^^^^ + +export {Foo}; +>Foo : typeof Foo +> : ^^^^^^^^^^ + +=== bat.js === +import * as ns from "./cls"; +>ns : typeof ns +> : ^^^^^^^^^ + +export default ns; +>ns : typeof ns +> : ^^^^^^^^^ + +=== ban.js === +import * as ns from "./cls"; +>ns : typeof ns +> : ^^^^^^^^^ + +export {ns}; +>ns : typeof ns +> : ^^^^^^^^^ + +=== bol.js === +import * as ns from "./cls"; +>ns : typeof ns +> : ^^^^^^^^^ + +export { ns as classContainer }; +>ns : typeof ns +> : ^^^^^^^^^ +>classContainer : typeof ns +> : ^^^^^^^^^ + +=== cjs.js === +const ns = require("./cls"); +>ns : typeof ns +> : ^^^^^^^^^ +>require("./cls") : typeof ns +> : ^^^^^^^^^ +>require : any +>"./cls" : "./cls" +> : ^^^^^^^ + +module.exports = { ns }; +>module.exports = { ns } : typeof module.exports +> : ^^^^^^^^^^^^^^^^^^^^^ +>module.exports : typeof module.exports +> : ^^^^^^^^^^^^^^^^^^^^^ +>module : { exports: typeof module.exports; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exports : typeof module.exports +> : ^^^^^^^^^^^^^^^^^^^^^ +>{ ns } : { ns: typeof ns; } +> : ^^^^^^^^^^^^^^^^^^ +>ns : typeof ns +> : ^^^^^^^^^ + +=== cjs2.js === +const ns = require("./cls"); +>ns : typeof ns +> : ^^^^^^^^^ +>require("./cls") : typeof ns +> : ^^^^^^^^^ +>require : any +>"./cls" : "./cls" +> : ^^^^^^^ + +module.exports = ns; +>module.exports = ns : typeof ns +> : ^^^^^^^^^ +>module.exports : typeof ns +> : ^^^^^^^^^ +>module : { exports: typeof ns; } +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>exports : typeof ns +> : ^^^^^^^^^ +>ns : typeof ns +> : ^^^^^^^^^ + +=== cjs3.js === +const ns = require("./cls"); +>ns : typeof ns +> : ^^^^^^^^^ +>require("./cls") : typeof ns +> : ^^^^^^^^^ +>require : any +>"./cls" : "./cls" +> : ^^^^^^^ + +module.exports.ns = ns; +>module.exports.ns = ns : typeof ns +> : ^^^^^^^^^ +>module.exports.ns : typeof ns +> : ^^^^^^^^^ +>module.exports : typeof module.exports +> : ^^^^^^^^^^^^^^^^^^^^^ +>module : { exports: typeof module.exports; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exports : typeof module.exports +> : ^^^^^^^^^^^^^^^^^^^^^ +>ns : typeof ns +> : ^^^^^^^^^ +>ns : typeof ns +> : ^^^^^^^^^ + +=== cjs4.js === +const ns = require("./cls"); +>ns : typeof ns +> : ^^^^^^^^^ +>require("./cls") : typeof ns +> : ^^^^^^^^^ +>require : any +>"./cls" : "./cls" +> : ^^^^^^^ + +module.exports.names = ns; +>module.exports.names = ns : typeof ns +> : ^^^^^^^^^ +>module.exports.names : typeof ns +> : ^^^^^^^^^ +>module.exports : typeof module.exports +> : ^^^^^^^^^^^^^^^^^^^^^ +>module : { exports: typeof module.exports; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exports : typeof module.exports +> : ^^^^^^^^^^^^^^^^^^^^^ +>names : typeof ns +> : ^^^^^^^^^ +>ns : typeof ns +> : ^^^^^^^^^ + +=== includeAll.js === + +import "./cjs4"; +import "./cjs3"; +import "./cjs2"; +import "./cjs"; +import "./bol"; +import "./ban"; +import "./bat"; +import "./baz"; +import "./bar"; +import "./bar2"; + diff --git a/tests/baselines/reference/jsDeclarationsExportFormsErr(target=es2015).errors.txt b/tests/baselines/reference/jsDeclarationsExportFormsErr(target=es2015).errors.txt new file mode 100644 index 0000000000000..21b964a79b754 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsExportFormsErr(target=es2015).errors.txt @@ -0,0 +1,40 @@ +bar.js(1,1): error TS1202: Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead. +bar.js(1,1): error TS8002: 'import ... =' can only be used in TypeScript files. +bar.js(2,1): error TS1203: Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead. +bar.js(2,1): error TS8003: 'export =' can only be used in TypeScript files. +bin.js(2,1): error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. +globalNs.js(2,1): error TS1315: Global module exports may only appear in declaration files. + + +==== cls.js (0 errors) ==== + export class Foo {} + +==== bar.js (4 errors) ==== + import ns = require("./cls"); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS1202: Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS8002: 'import ... =' can only be used in TypeScript files. + export = ns; // TS Only + ~~~~~~~~~~~~ +!!! error TS1203: Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead. + ~~~~~~~~~~~~ +!!! error TS8003: 'export =' can only be used in TypeScript files. + +==== bin.js (1 errors) ==== + import * as ns from "./cls"; + module.exports = ns; // We refuse to bind cjs module exports assignments in the same file we find an import in + ~~~~~~ +!!! error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. + +==== globalNs.js (1 errors) ==== + export * from "./cls"; + export as namespace GLO; // TS Only + ~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS1315: Global module exports may only appear in declaration files. + +==== includeAll.js (0 errors) ==== + import "./bar"; + import "./bin"; + import "./globalNs"; + \ No newline at end of file diff --git a/tests/baselines/reference/jsDeclarationsExportFormsErr(target=es2015).js b/tests/baselines/reference/jsDeclarationsExportFormsErr(target=es2015).js new file mode 100644 index 0000000000000..e1bfbcb4eb879 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsExportFormsErr(target=es2015).js @@ -0,0 +1,51 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportFormsErr.ts] //// + +//// [cls.js] +export class Foo {} + +//// [bar.js] +import ns = require("./cls"); +export = ns; // TS Only + +//// [bin.js] +import * as ns from "./cls"; +module.exports = ns; // We refuse to bind cjs module exports assignments in the same file we find an import in + +//// [globalNs.js] +export * from "./cls"; +export as namespace GLO; // TS Only + +//// [includeAll.js] +import "./bar"; +import "./bin"; +import "./globalNs"; + + +//// [cls.js] +export class Foo { +} +//// [bar.js] +export {}; +//// [bin.js] +import * as ns from "./cls"; +module.exports = ns; // We refuse to bind cjs module exports assignments in the same file we find an import in +//// [globalNs.js] +export * from "./cls"; +//// [includeAll.js] +import "./bar"; +import "./bin"; +import "./globalNs"; + + +//// [cls.d.ts] +export class Foo { +} +//// [bar.d.ts] +export = ns; +import ns = require("./cls"); +//// [bin.d.ts] +export {}; +//// [globalNs.d.ts] +export * from "./cls"; +//// [includeAll.d.ts] +export {}; diff --git a/tests/baselines/reference/jsDeclarationsExportFormsErr.symbols b/tests/baselines/reference/jsDeclarationsExportFormsErr(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/jsDeclarationsExportFormsErr.symbols rename to tests/baselines/reference/jsDeclarationsExportFormsErr(target=es2015).symbols diff --git a/tests/baselines/reference/jsDeclarationsExportFormsErr.types b/tests/baselines/reference/jsDeclarationsExportFormsErr(target=es2015).types similarity index 100% rename from tests/baselines/reference/jsDeclarationsExportFormsErr.types rename to tests/baselines/reference/jsDeclarationsExportFormsErr(target=es2015).types diff --git a/tests/baselines/reference/jsDeclarationsExportFormsErr.errors.txt b/tests/baselines/reference/jsDeclarationsExportFormsErr(target=es5).errors.txt similarity index 100% rename from tests/baselines/reference/jsDeclarationsExportFormsErr.errors.txt rename to tests/baselines/reference/jsDeclarationsExportFormsErr(target=es5).errors.txt diff --git a/tests/baselines/reference/jsDeclarationsExportFormsErr.js b/tests/baselines/reference/jsDeclarationsExportFormsErr(target=es5).js similarity index 100% rename from tests/baselines/reference/jsDeclarationsExportFormsErr.js rename to tests/baselines/reference/jsDeclarationsExportFormsErr(target=es5).js diff --git a/tests/baselines/reference/jsDeclarationsExportFormsErr(target=es5).symbols b/tests/baselines/reference/jsDeclarationsExportFormsErr(target=es5).symbols new file mode 100644 index 0000000000000..a737c018ce1e8 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsExportFormsErr(target=es5).symbols @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportFormsErr.ts] //// + +=== cls.js === +export class Foo {} +>Foo : Symbol(Foo, Decl(cls.js, 0, 0)) + +=== bar.js === +import ns = require("./cls"); +>ns : Symbol(ns, Decl(bar.js, 0, 0)) + +export = ns; // TS Only +>ns : Symbol(ns, Decl(bar.js, 0, 0)) + +=== bin.js === +import * as ns from "./cls"; +>ns : Symbol(ns, Decl(bin.js, 0, 6)) + +module.exports = ns; // We refuse to bind cjs module exports assignments in the same file we find an import in +>ns : Symbol(ns, Decl(bin.js, 0, 6)) + +=== globalNs.js === + +export * from "./cls"; +export as namespace GLO; // TS Only + +=== includeAll.js === + +import "./bar"; +import "./bin"; +import "./globalNs"; + diff --git a/tests/baselines/reference/jsDeclarationsExportFormsErr(target=es5).types b/tests/baselines/reference/jsDeclarationsExportFormsErr(target=es5).types new file mode 100644 index 0000000000000..a66b69a1552d1 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsExportFormsErr(target=es5).types @@ -0,0 +1,45 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportFormsErr.ts] //// + +=== cls.js === +export class Foo {} +>Foo : Foo +> : ^^^ + +=== bar.js === +import ns = require("./cls"); +>ns : typeof ns +> : ^^^^^^^^^ + +export = ns; // TS Only +>ns : typeof ns +> : ^^^^^^^^^ + +=== bin.js === +import * as ns from "./cls"; +>ns : typeof ns +> : ^^^^^^^^^ + +module.exports = ns; // We refuse to bind cjs module exports assignments in the same file we find an import in +>module.exports = ns : any +> : ^^^ +>module.exports : any +> : ^^^ +>module : any +> : ^^^ +>exports : any +> : ^^^ +>ns : typeof ns +> : ^^^^^^^^^ + +=== globalNs.js === +export * from "./cls"; +export as namespace GLO; // TS Only +>GLO : any +> : ^^^ + +=== includeAll.js === + +import "./bar"; +import "./bin"; +import "./globalNs"; + diff --git a/tests/baselines/reference/jsDeclarationsExportSpecifierNonlocal(target=es2015).js b/tests/baselines/reference/jsDeclarationsExportSpecifierNonlocal(target=es2015).js new file mode 100644 index 0000000000000..f047057d8aebd --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsExportSpecifierNonlocal(target=es2015).js @@ -0,0 +1,25 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportSpecifierNonlocal.ts] //// + +//// [source.js] +export class Thing {} +export class OtherThing {} +//// [index.js] +export { Thing, OtherThing as default } from "./source"; + + +//// [source.js] +export class Thing { +} +export class OtherThing { +} +//// [index.js] +export { Thing, OtherThing as default } from "./source"; + + +//// [source.d.ts] +export class Thing { +} +export class OtherThing { +} +//// [index.d.ts] +export { Thing, OtherThing as default } from "./source"; diff --git a/tests/baselines/reference/jsDeclarationsExportSpecifierNonlocal.symbols b/tests/baselines/reference/jsDeclarationsExportSpecifierNonlocal(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/jsDeclarationsExportSpecifierNonlocal.symbols rename to tests/baselines/reference/jsDeclarationsExportSpecifierNonlocal(target=es2015).symbols diff --git a/tests/baselines/reference/jsDeclarationsExportSpecifierNonlocal.types b/tests/baselines/reference/jsDeclarationsExportSpecifierNonlocal(target=es2015).types similarity index 100% rename from tests/baselines/reference/jsDeclarationsExportSpecifierNonlocal.types rename to tests/baselines/reference/jsDeclarationsExportSpecifierNonlocal(target=es2015).types diff --git a/tests/baselines/reference/jsDeclarationsExportSpecifierNonlocal.js b/tests/baselines/reference/jsDeclarationsExportSpecifierNonlocal(target=es5).js similarity index 100% rename from tests/baselines/reference/jsDeclarationsExportSpecifierNonlocal.js rename to tests/baselines/reference/jsDeclarationsExportSpecifierNonlocal(target=es5).js diff --git a/tests/baselines/reference/jsDeclarationsExportSpecifierNonlocal(target=es5).symbols b/tests/baselines/reference/jsDeclarationsExportSpecifierNonlocal(target=es5).symbols new file mode 100644 index 0000000000000..e07c2a61fdb1d --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsExportSpecifierNonlocal(target=es5).symbols @@ -0,0 +1,15 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportSpecifierNonlocal.ts] //// + +=== source.js === +export class Thing {} +>Thing : Symbol(Thing, Decl(source.js, 0, 0)) + +export class OtherThing {} +>OtherThing : Symbol(OtherThing, Decl(source.js, 0, 21)) + +=== index.js === +export { Thing, OtherThing as default } from "./source"; +>Thing : Symbol(Thing, Decl(index.js, 0, 8)) +>OtherThing : Symbol(OtherThing, Decl(source.js, 0, 21)) +>default : Symbol(default, Decl(index.js, 0, 15)) + diff --git a/tests/baselines/reference/jsDeclarationsExportSpecifierNonlocal(target=es5).types b/tests/baselines/reference/jsDeclarationsExportSpecifierNonlocal(target=es5).types new file mode 100644 index 0000000000000..b8c9703e6941e --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsExportSpecifierNonlocal(target=es5).types @@ -0,0 +1,20 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportSpecifierNonlocal.ts] //// + +=== source.js === +export class Thing {} +>Thing : Thing +> : ^^^^^ + +export class OtherThing {} +>OtherThing : OtherThing +> : ^^^^^^^^^^ + +=== index.js === +export { Thing, OtherThing as default } from "./source"; +>Thing : typeof import("source").Thing +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>OtherThing : typeof import("source").OtherThing +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>default : typeof import("source").OtherThing +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + diff --git a/tests/baselines/reference/jsDeclarationsExportSubAssignments(target=es2015).js b/tests/baselines/reference/jsDeclarationsExportSubAssignments(target=es2015).js new file mode 100644 index 0000000000000..439c65699682a --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsExportSubAssignments(target=es2015).js @@ -0,0 +1,33 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportSubAssignments.ts] //// + +//// [cls.js] +const Strings = { + a: "A", + b: "B" +}; +class Foo {} +module.exports = Foo; +module.exports.Strings = Strings; + +//// [cls.js] +const Strings = { + a: "A", + b: "B" +}; +class Foo { +} +module.exports = Foo; +module.exports.Strings = Strings; + + +//// [cls.d.ts] +export = Foo; +declare class Foo { +} +declare namespace Foo { + export { Strings }; +} +declare namespace Strings { + let a: string; + let b: string; +} diff --git a/tests/baselines/reference/jsDeclarationsExportSubAssignments.symbols b/tests/baselines/reference/jsDeclarationsExportSubAssignments(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/jsDeclarationsExportSubAssignments.symbols rename to tests/baselines/reference/jsDeclarationsExportSubAssignments(target=es2015).symbols diff --git a/tests/baselines/reference/jsDeclarationsExportSubAssignments.types b/tests/baselines/reference/jsDeclarationsExportSubAssignments(target=es2015).types similarity index 100% rename from tests/baselines/reference/jsDeclarationsExportSubAssignments.types rename to tests/baselines/reference/jsDeclarationsExportSubAssignments(target=es2015).types diff --git a/tests/baselines/reference/jsDeclarationsExportSubAssignments.js b/tests/baselines/reference/jsDeclarationsExportSubAssignments(target=es5).js similarity index 100% rename from tests/baselines/reference/jsDeclarationsExportSubAssignments.js rename to tests/baselines/reference/jsDeclarationsExportSubAssignments(target=es5).js diff --git a/tests/baselines/reference/jsDeclarationsExportSubAssignments(target=es5).symbols b/tests/baselines/reference/jsDeclarationsExportSubAssignments(target=es5).symbols new file mode 100644 index 0000000000000..c32390e9066ea --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsExportSubAssignments(target=es5).symbols @@ -0,0 +1,30 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportSubAssignments.ts] //// + +=== cls.js === +const Strings = { +>Strings : Symbol(Strings, Decl(cls.js, 0, 5)) + + a: "A", +>a : Symbol(a, Decl(cls.js, 0, 17)) + + b: "B" +>b : Symbol(b, Decl(cls.js, 1, 11)) + +}; +class Foo {} +>Foo : Symbol(Foo, Decl(cls.js, 3, 2)) + +module.exports = Foo; +>module.exports : Symbol(module.exports, Decl(cls.js, 0, 0)) +>module : Symbol(export=, Decl(cls.js, 4, 12)) +>exports : Symbol(export=, Decl(cls.js, 4, 12)) +>Foo : Symbol(Foo, Decl(cls.js, 3, 2)) + +module.exports.Strings = Strings; +>module.exports.Strings : Symbol(Strings, Decl(cls.js, 5, 21)) +>module.exports : Symbol(Strings, Decl(cls.js, 5, 21)) +>module : Symbol(module, Decl(cls.js, 4, 12)) +>exports : Symbol(module.exports, Decl(cls.js, 0, 0)) +>Strings : Symbol(Strings, Decl(cls.js, 5, 21)) +>Strings : Symbol(Strings, Decl(cls.js, 0, 5)) + diff --git a/tests/baselines/reference/jsDeclarationsExportSubAssignments(target=es5).types b/tests/baselines/reference/jsDeclarationsExportSubAssignments(target=es5).types new file mode 100644 index 0000000000000..c1e7ef8bb85c3 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsExportSubAssignments(target=es5).types @@ -0,0 +1,54 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportSubAssignments.ts] //// + +=== cls.js === +const Strings = { +>Strings : { a: string; b: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ a: "A", b: "B"} : { a: string; b: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ + + a: "A", +>a : string +> : ^^^^^^ +>"A" : "A" +> : ^^^ + + b: "B" +>b : string +> : ^^^^^^ +>"B" : "B" +> : ^^^ + +}; +class Foo {} +>Foo : Foo +> : ^^^ + +module.exports = Foo; +>module.exports = Foo : typeof Foo +> : ^^^^^^^^^^ +>module.exports : typeof Foo +> : ^^^^^^^^^^ +>module : { exports: typeof Foo; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^ +>exports : typeof Foo +> : ^^^^^^^^^^ +>Foo : typeof Foo +> : ^^^^^^^^^^ + +module.exports.Strings = Strings; +>module.exports.Strings = Strings : { a: string; b: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>module.exports.Strings : { a: string; b: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>module.exports : typeof Foo +> : ^^^^^^^^^^ +>module : { exports: typeof Foo; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^ +>exports : typeof Foo +> : ^^^^^^^^^^ +>Strings : { a: string; b: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>Strings : { a: string; b: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ + diff --git a/tests/baselines/reference/jsDeclarationsFunctionClassesCjsExportAssignment(target=es2015).js b/tests/baselines/reference/jsDeclarationsFunctionClassesCjsExportAssignment(target=es2015).js new file mode 100644 index 0000000000000..40c13a25aa47f --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsFunctionClassesCjsExportAssignment(target=es2015).js @@ -0,0 +1,271 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsFunctionClassesCjsExportAssignment.ts] //// + +//// [timer.js] +/** + * @param {number} timeout + */ +function Timer(timeout) { + this.timeout = timeout; +} +module.exports = Timer; +//// [hook.js] +/** + * @typedef {(arg: import("./context")) => void} HookHandler + */ +/** + * @param {HookHandler} handle + */ +function Hook(handle) { + this.handle = handle; +} +module.exports = Hook; + +//// [context.js] +/** + * Imports + * + * @typedef {import("./timer")} Timer + * @typedef {import("./hook")} Hook + * @typedef {import("./hook").HookHandler} HookHandler + */ + +/** + * Input type definition + * + * @typedef {Object} Input + * @prop {Timer} timer + * @prop {Hook} hook + */ + +/** + * State type definition + * + * @typedef {Object} State + * @prop {Timer} timer + * @prop {Hook} hook + */ + +/** + * New `Context` + * + * @class + * @param {Input} input + */ + +function Context(input) { + if (!(this instanceof Context)) { + return new Context(input) + } + this.state = this.construct(input); +} +Context.prototype = { + /** + * @param {Input} input + * @param {HookHandler=} handle + * @returns {State} + */ + construct(input, handle = () => void 0) { + return input; + } +} +module.exports = Context; + + +//// [timer.js] +/** + * @param {number} timeout + */ +function Timer(timeout) { + this.timeout = timeout; +} +module.exports = Timer; +//// [context.js] +/** + * Imports + * + * @typedef {import("./timer")} Timer + * @typedef {import("./hook")} Hook + * @typedef {import("./hook").HookHandler} HookHandler + */ +/** + * Input type definition + * + * @typedef {Object} Input + * @prop {Timer} timer + * @prop {Hook} hook + */ +/** + * State type definition + * + * @typedef {Object} State + * @prop {Timer} timer + * @prop {Hook} hook + */ +/** + * New `Context` + * + * @class + * @param {Input} input + */ +function Context(input) { + if (!(this instanceof Context)) { + return new Context(input); + } + this.state = this.construct(input); +} +Context.prototype = { + /** + * @param {Input} input + * @param {HookHandler=} handle + * @returns {State} + */ + construct(input, handle = () => void 0) { + return input; + } +}; +module.exports = Context; +//// [hook.js] +/** + * @typedef {(arg: import("./context")) => void} HookHandler + */ +/** + * @param {HookHandler} handle + */ +function Hook(handle) { + this.handle = handle; +} +module.exports = Hook; + + +//// [timer.d.ts] +export = Timer; +/** + * @param {number} timeout + */ +declare function Timer(timeout: number): void; +declare class Timer { + /** + * @param {number} timeout + */ + constructor(timeout: number); + timeout: number; +} +//// [context.d.ts] +export = Context; +/** + * Imports + * + * @typedef {import("./timer")} Timer + * @typedef {import("./hook")} Hook + * @typedef {import("./hook").HookHandler} HookHandler + */ +/** + * Input type definition + * + * @typedef {Object} Input + * @prop {Timer} timer + * @prop {Hook} hook + */ +/** + * State type definition + * + * @typedef {Object} State + * @prop {Timer} timer + * @prop {Hook} hook + */ +/** + * New `Context` + * + * @class + * @param {Input} input + */ +declare function Context(input: Input): Context; +declare class Context { + /** + * Imports + * + * @typedef {import("./timer")} Timer + * @typedef {import("./hook")} Hook + * @typedef {import("./hook").HookHandler} HookHandler + */ + /** + * Input type definition + * + * @typedef {Object} Input + * @prop {Timer} timer + * @prop {Hook} hook + */ + /** + * State type definition + * + * @typedef {Object} State + * @prop {Timer} timer + * @prop {Hook} hook + */ + /** + * New `Context` + * + * @class + * @param {Input} input + */ + constructor(input: Input); + state: State; + /** + * @param {Input} input + * @param {HookHandler=} handle + * @returns {State} + */ + construct(input: Input, handle?: HookHandler | undefined): State; +} +declare namespace Context { + export { Timer, Hook, HookHandler, Input, State }; +} +/** + * Imports + */ +type Timer = import("./timer"); +/** + * Imports + */ +type Hook = import("./hook"); +/** + * Imports + */ +type HookHandler = import("./hook").HookHandler; +/** + * Input type definition + */ +type Input = { + timer: Timer; + hook: Hook; +}; +/** + * State type definition + */ +type State = { + timer: Timer; + hook: Hook; +}; +//// [hook.d.ts] +export = Hook; +/** + * @typedef {(arg: import("./context")) => void} HookHandler + */ +/** + * @param {HookHandler} handle + */ +declare function Hook(handle: HookHandler): void; +declare class Hook { + /** + * @typedef {(arg: import("./context")) => void} HookHandler + */ + /** + * @param {HookHandler} handle + */ + constructor(handle: HookHandler); + handle: HookHandler; +} +declare namespace Hook { + export { HookHandler }; +} +type HookHandler = (arg: import("./context")) => void; diff --git a/tests/baselines/reference/jsDeclarationsFunctionClassesCjsExportAssignment.symbols b/tests/baselines/reference/jsDeclarationsFunctionClassesCjsExportAssignment(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/jsDeclarationsFunctionClassesCjsExportAssignment.symbols rename to tests/baselines/reference/jsDeclarationsFunctionClassesCjsExportAssignment(target=es2015).symbols diff --git a/tests/baselines/reference/jsDeclarationsFunctionClassesCjsExportAssignment.types b/tests/baselines/reference/jsDeclarationsFunctionClassesCjsExportAssignment(target=es2015).types similarity index 100% rename from tests/baselines/reference/jsDeclarationsFunctionClassesCjsExportAssignment.types rename to tests/baselines/reference/jsDeclarationsFunctionClassesCjsExportAssignment(target=es2015).types diff --git a/tests/baselines/reference/jsDeclarationsFunctionClassesCjsExportAssignment.js b/tests/baselines/reference/jsDeclarationsFunctionClassesCjsExportAssignment(target=es5).js similarity index 100% rename from tests/baselines/reference/jsDeclarationsFunctionClassesCjsExportAssignment.js rename to tests/baselines/reference/jsDeclarationsFunctionClassesCjsExportAssignment(target=es5).js diff --git a/tests/baselines/reference/jsDeclarationsFunctionClassesCjsExportAssignment(target=es5).symbols b/tests/baselines/reference/jsDeclarationsFunctionClassesCjsExportAssignment(target=es5).symbols new file mode 100644 index 0000000000000..be07dcbe9eb09 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsFunctionClassesCjsExportAssignment(target=es5).symbols @@ -0,0 +1,121 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsFunctionClassesCjsExportAssignment.ts] //// + +=== timer.js === +/** + * @param {number} timeout + */ +function Timer(timeout) { +>Timer : Symbol(Timer, Decl(timer.js, 0, 0)) +>timeout : Symbol(timeout, Decl(timer.js, 3, 15)) + + this.timeout = timeout; +>this.timeout : Symbol(Timer.timeout, Decl(timer.js, 3, 25)) +>this : Symbol(Timer, Decl(timer.js, 0, 0)) +>timeout : Symbol(Timer.timeout, Decl(timer.js, 3, 25)) +>timeout : Symbol(timeout, Decl(timer.js, 3, 15)) +} +module.exports = Timer; +>module.exports : Symbol(module.exports, Decl(timer.js, 0, 0)) +>module : Symbol(export=, Decl(timer.js, 5, 1)) +>exports : Symbol(export=, Decl(timer.js, 5, 1)) +>Timer : Symbol(Timer, Decl(timer.js, 0, 0)) + +=== hook.js === +/** + * @typedef {(arg: import("./context")) => void} HookHandler + */ +/** + * @param {HookHandler} handle + */ +function Hook(handle) { +>Hook : Symbol(Hook, Decl(hook.js, 0, 0)) +>handle : Symbol(handle, Decl(hook.js, 6, 14)) + + this.handle = handle; +>this.handle : Symbol(Hook.handle, Decl(hook.js, 6, 23)) +>this : Symbol(Hook, Decl(hook.js, 0, 0)) +>handle : Symbol(Hook.handle, Decl(hook.js, 6, 23)) +>handle : Symbol(handle, Decl(hook.js, 6, 14)) +} +module.exports = Hook; +>module.exports : Symbol(module.exports, Decl(hook.js, 0, 0)) +>module : Symbol(export=, Decl(hook.js, 8, 1)) +>exports : Symbol(export=, Decl(hook.js, 8, 1)) +>Hook : Symbol(Hook, Decl(hook.js, 0, 0)) + +=== context.js === +/** + * Imports + * + * @typedef {import("./timer")} Timer + * @typedef {import("./hook")} Hook + * @typedef {import("./hook").HookHandler} HookHandler + */ + +/** + * Input type definition + * + * @typedef {Object} Input + * @prop {Timer} timer + * @prop {Hook} hook + */ + +/** + * State type definition + * + * @typedef {Object} State + * @prop {Timer} timer + * @prop {Hook} hook + */ + +/** + * New `Context` + * + * @class + * @param {Input} input + */ + +function Context(input) { +>Context : Symbol(Context, Decl(context.js, 0, 0), Decl(context.js, 36, 1)) +>input : Symbol(input, Decl(context.js, 31, 17)) + + if (!(this instanceof Context)) { +>this : Symbol(Context, Decl(context.js, 0, 0), Decl(context.js, 36, 1)) +>Context : Symbol(Context, Decl(context.js, 0, 0), Decl(context.js, 36, 1)) + + return new Context(input) +>Context : Symbol(Context, Decl(context.js, 0, 0), Decl(context.js, 36, 1)) +>input : Symbol(input, Decl(context.js, 31, 17)) + } + this.state = this.construct(input); +>this.state : Symbol(Context.state, Decl(context.js, 34, 5)) +>state : Symbol(Context.state, Decl(context.js, 34, 5)) +>this.construct : Symbol(construct, Decl(context.js, 37, 21), Decl(context.js, 37, 21)) +>construct : Symbol(construct, Decl(context.js, 37, 21), Decl(context.js, 37, 21)) +>input : Symbol(input, Decl(context.js, 31, 17)) +} +Context.prototype = { +>Context.prototype : Symbol(Context.prototype, Decl(context.js, 36, 1)) +>Context : Symbol(Context, Decl(context.js, 0, 0), Decl(context.js, 36, 1)) +>prototype : Symbol(Context.prototype, Decl(context.js, 36, 1)) + + /** + * @param {Input} input + * @param {HookHandler=} handle + * @returns {State} + */ + construct(input, handle = () => void 0) { +>construct : Symbol(construct, Decl(context.js, 37, 21)) +>input : Symbol(input, Decl(context.js, 43, 14)) +>handle : Symbol(handle, Decl(context.js, 43, 20)) + + return input; +>input : Symbol(input, Decl(context.js, 43, 14)) + } +} +module.exports = Context; +>module.exports : Symbol(module.exports, Decl(context.js, 0, 0)) +>module : Symbol(export=, Decl(context.js, 46, 1)) +>exports : Symbol(export=, Decl(context.js, 46, 1)) +>Context : Symbol(Context, Decl(context.js, 0, 0), Decl(context.js, 36, 1)) + diff --git a/tests/baselines/reference/jsDeclarationsFunctionClassesCjsExportAssignment(target=es5).types b/tests/baselines/reference/jsDeclarationsFunctionClassesCjsExportAssignment(target=es5).types new file mode 100644 index 0000000000000..28662824db2f9 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsFunctionClassesCjsExportAssignment(target=es5).types @@ -0,0 +1,196 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsFunctionClassesCjsExportAssignment.ts] //// + +=== timer.js === +/** + * @param {number} timeout + */ +function Timer(timeout) { +>Timer : typeof Timer +> : ^^^^^^^^^^^^ +>timeout : number +> : ^^^^^^ + + this.timeout = timeout; +>this.timeout = timeout : number +> : ^^^^^^ +>this.timeout : any +>this : this +> : ^^^^ +>timeout : any +> : ^^^ +>timeout : number +> : ^^^^^^ +} +module.exports = Timer; +>module.exports = Timer : typeof Timer +> : ^^^^^^^^^^^^ +>module.exports : typeof Timer +> : ^^^^^^^^^^^^ +>module : { exports: typeof Timer; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exports : typeof Timer +> : ^^^^^^^^^^^^ +>Timer : typeof Timer +> : ^^^^^^^^^^^^ + +=== hook.js === +/** + * @typedef {(arg: import("./context")) => void} HookHandler + */ +/** + * @param {HookHandler} handle + */ +function Hook(handle) { +>Hook : typeof Hook +> : ^^^^^^^^^^^ +>handle : HookHandler +> : ^^^^^^^^^^^ + + this.handle = handle; +>this.handle = handle : HookHandler +> : ^^^^^^^^^^^ +>this.handle : any +>this : this +> : ^^^^ +>handle : any +> : ^^^ +>handle : HookHandler +> : ^^^^^^^^^^^ +} +module.exports = Hook; +>module.exports = Hook : typeof Hook +> : ^^^^^^^^^^^ +>module.exports : typeof Hook +> : ^^^^^^^^^^^ +>module : { exports: typeof Hook; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>exports : typeof Hook +> : ^^^^^^^^^^^ +>Hook : typeof Hook +> : ^^^^^^^^^^^ + +=== context.js === +/** + * Imports + * + * @typedef {import("./timer")} Timer + * @typedef {import("./hook")} Hook + * @typedef {import("./hook").HookHandler} HookHandler + */ + +/** + * Input type definition + * + * @typedef {Object} Input + * @prop {Timer} timer + * @prop {Hook} hook + */ + +/** + * State type definition + * + * @typedef {Object} State + * @prop {Timer} timer + * @prop {Hook} hook + */ + +/** + * New `Context` + * + * @class + * @param {Input} input + */ + +function Context(input) { +>Context : typeof Context +> : ^^^^^^^^^^^^^^ +>input : Input +> : ^^^^^ + + if (!(this instanceof Context)) { +>!(this instanceof Context) : boolean +> : ^^^^^^^ +>(this instanceof Context) : boolean +> : ^^^^^^^ +>this instanceof Context : boolean +> : ^^^^^^^ +>this : this +> : ^^^^ +>Context : typeof Context +> : ^^^^^^^^^^^^^^ + + return new Context(input) +>new Context(input) : Context +> : ^^^^^^^ +>Context : typeof Context +> : ^^^^^^^^^^^^^^ +>input : Input +> : ^^^^^ + } + this.state = this.construct(input); +>this.state = this.construct(input) : State +> : ^^^^^ +>this.state : any +>this : this & { construct(input: Input, handle?: HookHandler | undefined): State; } +> : ^^^^^^^^^^^^^^^^^^^ ^^ ^^ ^^^ ^^^^^^^^^^^^ ^^^ +>state : any +> : ^^^ +>this.construct(input) : State +> : ^^^^^ +>this.construct : (input: Input, handle?: HookHandler | undefined) => State +> : ^ ^^ ^^ ^^^ ^^^^^^^^^^^^^^ +>this : this & { construct(input: Input, handle?: HookHandler | undefined): State; } +> : ^^^^^^^^^^^^^^^^^^^ ^^ ^^ ^^^ ^^^^^^^^^^^^ ^^^ +>construct : (input: Input, handle?: HookHandler | undefined) => State +> : ^ ^^ ^^ ^^^ ^^^^^^^^^^^^^^ +>input : Input +> : ^^^^^ +} +Context.prototype = { +>Context.prototype = { /** * @param {Input} input * @param {HookHandler=} handle * @returns {State} */ construct(input, handle = () => void 0) { return input; }} : { construct(input: Input, handle?: HookHandler | undefined): State; } +> : ^^^^^^^^^^^^ ^^ ^^ ^^^ ^^^^^^^^^^^^ ^^^ +>Context.prototype : { construct(input: Input, handle?: HookHandler | undefined): State; } +> : ^^^^^^^^^^^^ ^^ ^^ ^^^ ^^^^^^^^^^^^ ^^^ +>Context : typeof Context +> : ^^^^^^^^^^^^^^ +>prototype : { construct(input: Input, handle?: HookHandler | undefined): State; } +> : ^^^^^^^^^^^^ ^^ ^^ ^^^ ^^^^^^^^^^^^ ^^^ +>{ /** * @param {Input} input * @param {HookHandler=} handle * @returns {State} */ construct(input, handle = () => void 0) { return input; }} : { construct(input: Input, handle?: HookHandler | undefined): State; } +> : ^^^^^^^^^^^^ ^^ ^^ ^^^ ^^^^^^^^^^^^ ^^^ + + /** + * @param {Input} input + * @param {HookHandler=} handle + * @returns {State} + */ + construct(input, handle = () => void 0) { +>construct : (input: Input, handle?: HookHandler | undefined) => State +> : ^ ^^ ^^ ^^^ ^^^^^^^^^^^^^^ +>input : Input +> : ^^^^^ +>handle : import("hook").HookHandler +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^ +>() => void 0 : () => any +> : ^^^^^^^^^ +>void 0 : undefined +> : ^^^^^^^^^ +>0 : 0 +> : ^ + + return input; +>input : Input +> : ^^^^^ + } +} +module.exports = Context; +>module.exports = Context : { (input: Input): Context; new (input: Input): Context; prototype: { construct(input: Input, handle?: HookHandler | undefined): State; }; } +> : ^^^ ^^ ^^^^^^^^^^^^^^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^ ^^ ^^^ ^^^^^^^^^^^^ ^^^^^^ +>module.exports : { (input: Input): Context; new (input: Input): Context; prototype: { construct(input: Input, handle?: HookHandler | undefined): State; }; } +> : ^^^ ^^ ^^^^^^^^^^^^^^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^ ^^ ^^^ ^^^^^^^^^^^^ ^^^^^^ +>module : { exports: { (input: Input): Context; new (input: Input): Context; prototype: { construct(input: Input, handle?: HookHandler | undefined): State; }; }; } +> : ^^^^^^^^^^^^^^ ^^ ^^^^^^^^^^^^^^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^ ^^ ^^^ ^^^^^^^^^^^^ ^^^^^^^^^ +>exports : { (input: Input): Context; new (input: Input): Context; prototype: { construct(input: Input, handle?: HookHandler | undefined): State; }; } +> : ^^^ ^^ ^^^^^^^^^^^^^^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^ ^^ ^^^ ^^^^^^^^^^^^ ^^^^^^ +>Context : typeof Context +> : ^^^^^^^^^^^^^^ + diff --git a/tests/baselines/reference/jsDeclarationsFunctionJSDoc(target=es2015).js b/tests/baselines/reference/jsDeclarationsFunctionJSDoc(target=es2015).js new file mode 100644 index 0000000000000..f4ccc1e57f66d --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsFunctionJSDoc(target=es2015).js @@ -0,0 +1,104 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsFunctionJSDoc.ts] //// + +//// [source.js] +/** + * Foos a bar together using an `a` and a `b` + * @param {number} a + * @param {string} b + */ +export function foo(a, b) {} + +/** + * Legacy - DO NOT USE + */ +export class Aleph { + /** + * Impossible to construct. + * @param {Aleph} a + * @param {null} b + */ + constructor(a, b) { + /** + * Field is always null + */ + this.field = b; + } + + /** + * Doesn't actually do anything + * @returns {void} + */ + doIt() {} +} + +/** + * Not the speed of light + */ +export const c = 12; + + +//// [source.js] +/** + * Foos a bar together using an `a` and a `b` + * @param {number} a + * @param {string} b + */ +export function foo(a, b) { } +/** + * Legacy - DO NOT USE + */ +export class Aleph { + /** + * Impossible to construct. + * @param {Aleph} a + * @param {null} b + */ + constructor(a, b) { + /** + * Field is always null + */ + this.field = b; + } + /** + * Doesn't actually do anything + * @returns {void} + */ + doIt() { } +} +/** + * Not the speed of light + */ +export const c = 12; + + +//// [source.d.ts] +/** + * Foos a bar together using an `a` and a `b` + * @param {number} a + * @param {string} b + */ +export function foo(a: number, b: string): void; +/** + * Legacy - DO NOT USE + */ +export class Aleph { + /** + * Impossible to construct. + * @param {Aleph} a + * @param {null} b + */ + constructor(a: Aleph, b: null); + /** + * Field is always null + */ + field: any; + /** + * Doesn't actually do anything + * @returns {void} + */ + doIt(): void; +} +/** + * Not the speed of light + */ +export const c: 12; diff --git a/tests/baselines/reference/jsDeclarationsFunctionJSDoc.symbols b/tests/baselines/reference/jsDeclarationsFunctionJSDoc(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/jsDeclarationsFunctionJSDoc.symbols rename to tests/baselines/reference/jsDeclarationsFunctionJSDoc(target=es2015).symbols diff --git a/tests/baselines/reference/jsDeclarationsFunctionJSDoc.types b/tests/baselines/reference/jsDeclarationsFunctionJSDoc(target=es2015).types similarity index 100% rename from tests/baselines/reference/jsDeclarationsFunctionJSDoc.types rename to tests/baselines/reference/jsDeclarationsFunctionJSDoc(target=es2015).types diff --git a/tests/baselines/reference/jsDeclarationsFunctionJSDoc.js b/tests/baselines/reference/jsDeclarationsFunctionJSDoc(target=es5).js similarity index 100% rename from tests/baselines/reference/jsDeclarationsFunctionJSDoc.js rename to tests/baselines/reference/jsDeclarationsFunctionJSDoc(target=es5).js diff --git a/tests/baselines/reference/jsDeclarationsFunctionJSDoc(target=es5).symbols b/tests/baselines/reference/jsDeclarationsFunctionJSDoc(target=es5).symbols new file mode 100644 index 0000000000000..3c8903ce3eddd --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsFunctionJSDoc(target=es5).symbols @@ -0,0 +1,52 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsFunctionJSDoc.ts] //// + +=== source.js === +/** + * Foos a bar together using an `a` and a `b` + * @param {number} a + * @param {string} b + */ +export function foo(a, b) {} +>foo : Symbol(foo, Decl(source.js, 0, 0)) +>a : Symbol(a, Decl(source.js, 5, 20)) +>b : Symbol(b, Decl(source.js, 5, 22)) + +/** + * Legacy - DO NOT USE + */ +export class Aleph { +>Aleph : Symbol(Aleph, Decl(source.js, 5, 28)) + + /** + * Impossible to construct. + * @param {Aleph} a + * @param {null} b + */ + constructor(a, b) { +>a : Symbol(a, Decl(source.js, 16, 16)) +>b : Symbol(b, Decl(source.js, 16, 18)) + + /** + * Field is always null + */ + this.field = b; +>this.field : Symbol(Aleph.field, Decl(source.js, 16, 23)) +>this : Symbol(Aleph, Decl(source.js, 5, 28)) +>field : Symbol(Aleph.field, Decl(source.js, 16, 23)) +>b : Symbol(b, Decl(source.js, 16, 18)) + } + + /** + * Doesn't actually do anything + * @returns {void} + */ + doIt() {} +>doIt : Symbol(Aleph.doIt, Decl(source.js, 21, 5)) +} + +/** + * Not the speed of light + */ +export const c = 12; +>c : Symbol(c, Decl(source.js, 33, 12)) + diff --git a/tests/baselines/reference/jsDeclarationsFunctionJSDoc(target=es5).types b/tests/baselines/reference/jsDeclarationsFunctionJSDoc(target=es5).types new file mode 100644 index 0000000000000..49ae96d4bc906 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsFunctionJSDoc(target=es5).types @@ -0,0 +1,67 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsFunctionJSDoc.ts] //// + +=== source.js === +/** + * Foos a bar together using an `a` and a `b` + * @param {number} a + * @param {string} b + */ +export function foo(a, b) {} +>foo : (a: number, b: string) => void +> : ^ ^^ ^^ ^^ ^^^^^^^^^ +>a : number +> : ^^^^^^ +>b : string +> : ^^^^^^ + +/** + * Legacy - DO NOT USE + */ +export class Aleph { +>Aleph : Aleph +> : ^^^^^ + + /** + * Impossible to construct. + * @param {Aleph} a + * @param {null} b + */ + constructor(a, b) { +>a : Aleph +> : ^^^^^ +>b : null +> : ^^^^ + + /** + * Field is always null + */ + this.field = b; +>this.field = b : null +> : ^^^^ +>this.field : any +>this : this +> : ^^^^ +>field : any +> : ^^^ +>b : null +> : ^^^^ + } + + /** + * Doesn't actually do anything + * @returns {void} + */ + doIt() {} +>doIt : () => void +> : ^^^^^^ +} + +/** + * Not the speed of light + */ +export const c = 12; +>c : 12 +> : ^^ +>12 : 12 +> : ^^ + diff --git a/tests/baselines/reference/jsDeclarationsFunctionKeywordProp.js b/tests/baselines/reference/jsDeclarationsFunctionKeywordProp(target=es2015).js similarity index 100% rename from tests/baselines/reference/jsDeclarationsFunctionKeywordProp.js rename to tests/baselines/reference/jsDeclarationsFunctionKeywordProp(target=es2015).js diff --git a/tests/baselines/reference/jsDeclarationsFunctionKeywordProp.symbols b/tests/baselines/reference/jsDeclarationsFunctionKeywordProp(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/jsDeclarationsFunctionKeywordProp.symbols rename to tests/baselines/reference/jsDeclarationsFunctionKeywordProp(target=es2015).symbols diff --git a/tests/baselines/reference/jsDeclarationsFunctionKeywordProp.types b/tests/baselines/reference/jsDeclarationsFunctionKeywordProp(target=es2015).types similarity index 100% rename from tests/baselines/reference/jsDeclarationsFunctionKeywordProp.types rename to tests/baselines/reference/jsDeclarationsFunctionKeywordProp(target=es2015).types diff --git a/tests/baselines/reference/jsDeclarationsFunctionKeywordProp(target=es5).js b/tests/baselines/reference/jsDeclarationsFunctionKeywordProp(target=es5).js new file mode 100644 index 0000000000000..bb3e24db6f113 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsFunctionKeywordProp(target=es5).js @@ -0,0 +1,43 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsFunctionKeywordProp.ts] //// + +//// [source.js] +function foo() {} +foo.null = true; + +function bar() {} +bar.async = true; +bar.normal = false; + +function baz() {} +baz.class = true; +baz.normal = false; + +//// [source.js] +function foo() { } +foo.null = true; +function bar() { } +bar.async = true; +bar.normal = false; +function baz() { } +baz.class = true; +baz.normal = false; + + +//// [source.d.ts] +declare function foo(): void; +declare namespace foo { + let _null: boolean; + export { _null as null }; +} +declare function bar(): void; +declare namespace bar { + let async: boolean; + let normal: boolean; +} +declare function baz(): void; +declare namespace baz { + let _class: boolean; + export { _class as class }; + let normal_1: boolean; + export { normal_1 as normal }; +} diff --git a/tests/baselines/reference/jsDeclarationsFunctionKeywordProp(target=es5).symbols b/tests/baselines/reference/jsDeclarationsFunctionKeywordProp(target=es5).symbols new file mode 100644 index 0000000000000..b97f0ddc1338b --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsFunctionKeywordProp(target=es5).symbols @@ -0,0 +1,37 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsFunctionKeywordProp.ts] //// + +=== source.js === +function foo() {} +>foo : Symbol(foo, Decl(source.js, 0, 0), Decl(source.js, 0, 17)) + +foo.null = true; +>foo.null : Symbol(foo.null, Decl(source.js, 0, 17)) +>foo : Symbol(foo, Decl(source.js, 0, 0), Decl(source.js, 0, 17)) +>null : Symbol(foo.null, Decl(source.js, 0, 17)) + +function bar() {} +>bar : Symbol(bar, Decl(source.js, 1, 16), Decl(source.js, 3, 17), Decl(source.js, 4, 17)) + +bar.async = true; +>bar.async : Symbol(bar.async, Decl(source.js, 3, 17)) +>bar : Symbol(bar, Decl(source.js, 1, 16), Decl(source.js, 3, 17), Decl(source.js, 4, 17)) +>async : Symbol(bar.async, Decl(source.js, 3, 17)) + +bar.normal = false; +>bar.normal : Symbol(bar.normal, Decl(source.js, 4, 17)) +>bar : Symbol(bar, Decl(source.js, 1, 16), Decl(source.js, 3, 17), Decl(source.js, 4, 17)) +>normal : Symbol(bar.normal, Decl(source.js, 4, 17)) + +function baz() {} +>baz : Symbol(baz, Decl(source.js, 5, 19), Decl(source.js, 7, 17), Decl(source.js, 8, 17)) + +baz.class = true; +>baz.class : Symbol(baz.class, Decl(source.js, 7, 17)) +>baz : Symbol(baz, Decl(source.js, 5, 19), Decl(source.js, 7, 17), Decl(source.js, 8, 17)) +>class : Symbol(baz.class, Decl(source.js, 7, 17)) + +baz.normal = false; +>baz.normal : Symbol(baz.normal, Decl(source.js, 8, 17)) +>baz : Symbol(baz, Decl(source.js, 5, 19), Decl(source.js, 7, 17), Decl(source.js, 8, 17)) +>normal : Symbol(baz.normal, Decl(source.js, 8, 17)) + diff --git a/tests/baselines/reference/jsDeclarationsFunctionKeywordProp(target=es5).types b/tests/baselines/reference/jsDeclarationsFunctionKeywordProp(target=es5).types new file mode 100644 index 0000000000000..489e7f38b0330 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsFunctionKeywordProp(target=es5).types @@ -0,0 +1,75 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsFunctionKeywordProp.ts] //// + +=== source.js === +function foo() {} +>foo : typeof foo +> : ^^^^^^^^^^ + +foo.null = true; +>foo.null = true : true +> : ^^^^ +>foo.null : boolean +> : ^^^^^^^ +>foo : typeof foo +> : ^^^^^^^^^^ +>null : boolean +> : ^^^^^^^ +>true : true +> : ^^^^ + +function bar() {} +>bar : typeof bar +> : ^^^^^^^^^^ + +bar.async = true; +>bar.async = true : true +> : ^^^^ +>bar.async : boolean +> : ^^^^^^^ +>bar : typeof bar +> : ^^^^^^^^^^ +>async : boolean +> : ^^^^^^^ +>true : true +> : ^^^^ + +bar.normal = false; +>bar.normal = false : false +> : ^^^^^ +>bar.normal : boolean +> : ^^^^^^^ +>bar : typeof bar +> : ^^^^^^^^^^ +>normal : boolean +> : ^^^^^^^ +>false : false +> : ^^^^^ + +function baz() {} +>baz : typeof baz +> : ^^^^^^^^^^ + +baz.class = true; +>baz.class = true : true +> : ^^^^ +>baz.class : boolean +> : ^^^^^^^ +>baz : typeof baz +> : ^^^^^^^^^^ +>class : boolean +> : ^^^^^^^ +>true : true +> : ^^^^ + +baz.normal = false; +>baz.normal = false : false +> : ^^^^^ +>baz.normal : boolean +> : ^^^^^^^ +>baz : typeof baz +> : ^^^^^^^^^^ +>normal : boolean +> : ^^^^^^^ +>false : false +> : ^^^^^ + diff --git a/tests/baselines/reference/jsDeclarationsFunctionKeywordPropExhaustive.js b/tests/baselines/reference/jsDeclarationsFunctionKeywordPropExhaustive(target=es2015).js similarity index 100% rename from tests/baselines/reference/jsDeclarationsFunctionKeywordPropExhaustive.js rename to tests/baselines/reference/jsDeclarationsFunctionKeywordPropExhaustive(target=es2015).js diff --git a/tests/baselines/reference/jsDeclarationsFunctionKeywordPropExhaustive.symbols b/tests/baselines/reference/jsDeclarationsFunctionKeywordPropExhaustive(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/jsDeclarationsFunctionKeywordPropExhaustive.symbols rename to tests/baselines/reference/jsDeclarationsFunctionKeywordPropExhaustive(target=es2015).symbols diff --git a/tests/baselines/reference/jsDeclarationsFunctionKeywordPropExhaustive.types b/tests/baselines/reference/jsDeclarationsFunctionKeywordPropExhaustive(target=es2015).types similarity index 100% rename from tests/baselines/reference/jsDeclarationsFunctionKeywordPropExhaustive.types rename to tests/baselines/reference/jsDeclarationsFunctionKeywordPropExhaustive(target=es2015).types diff --git a/tests/baselines/reference/jsDeclarationsFunctionKeywordPropExhaustive(target=es5).js b/tests/baselines/reference/jsDeclarationsFunctionKeywordPropExhaustive(target=es5).js new file mode 100644 index 0000000000000..81f8c1eae4bf8 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsFunctionKeywordPropExhaustive(target=es5).js @@ -0,0 +1,297 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsFunctionKeywordPropExhaustive.ts] //// + +//// [source.js] +function foo() {} +// properties +foo.x = 1; +foo.y = 1; + +// keywords +foo.break = 1; +foo.case = 1; +foo.catch = 1; +foo.class = 1; +foo.const = 1; +foo.continue = 1; +foo.debugger = 1; +foo.default = 1; +foo.delete = 1; +foo.do = 1; +foo.else = 1; +foo.enum = 1; +foo.export = 1; +foo.extends = 1; +foo.false = 1; +foo.finally = 1; +foo.for = 1; +foo.function = 1; +foo.if = 1; +foo.import = 1; +foo.in = 1; +foo.instanceof = 1; +foo.new = 1; +foo.null = 1; +foo.return = 1; +foo.super = 1; +foo.switch = 1; +foo.this = 1; +foo.throw = 1; +foo.true = 1; +foo.try = 1; +foo.typeof = 1; +foo.var = 1; +foo.void = 1; +foo.while = 1; +foo.with = 1; +foo.implements = 1; +foo.interface = 1; +foo.let = 1; +foo.package = 1; +foo.private = 1; +foo.protected = 1; +foo.public = 1; +foo.static = 1; +foo.yield = 1; +foo.abstract = 1; +foo.as = 1; +foo.asserts = 1; +foo.any = 1; +foo.async = 1; +foo.await = 1; +foo.boolean = 1; +foo.constructor = 1; +foo.declare = 1; +foo.get = 1; +foo.infer = 1; +foo.is = 1; +foo.keyof = 1; +foo.module = 1; +foo.namespace = 1; +foo.never = 1; +foo.readonly = 1; +foo.require = 1; +foo.number = 1; +foo.object = 1; +foo.set = 1; +foo.string = 1; +foo.symbol = 1; +foo.type = 1; +foo.undefined = 1; +foo.unique = 1; +foo.unknown = 1; +foo.from = 1; +foo.global = 1; +foo.bigint = 1; +foo.of = 1; + +//// [source.js] +function foo() { } +// properties +foo.x = 1; +foo.y = 1; +// keywords +foo.break = 1; +foo.case = 1; +foo.catch = 1; +foo.class = 1; +foo.const = 1; +foo.continue = 1; +foo.debugger = 1; +foo.default = 1; +foo.delete = 1; +foo.do = 1; +foo.else = 1; +foo.enum = 1; +foo.export = 1; +foo.extends = 1; +foo.false = 1; +foo.finally = 1; +foo.for = 1; +foo.function = 1; +foo.if = 1; +foo.import = 1; +foo.in = 1; +foo.instanceof = 1; +foo.new = 1; +foo.null = 1; +foo.return = 1; +foo.super = 1; +foo.switch = 1; +foo.this = 1; +foo.throw = 1; +foo.true = 1; +foo.try = 1; +foo.typeof = 1; +foo.var = 1; +foo.void = 1; +foo.while = 1; +foo.with = 1; +foo.implements = 1; +foo.interface = 1; +foo.let = 1; +foo.package = 1; +foo.private = 1; +foo.protected = 1; +foo.public = 1; +foo.static = 1; +foo.yield = 1; +foo.abstract = 1; +foo.as = 1; +foo.asserts = 1; +foo.any = 1; +foo.async = 1; +foo.await = 1; +foo.boolean = 1; +foo.constructor = 1; +foo.declare = 1; +foo.get = 1; +foo.infer = 1; +foo.is = 1; +foo.keyof = 1; +foo.module = 1; +foo.namespace = 1; +foo.never = 1; +foo.readonly = 1; +foo.require = 1; +foo.number = 1; +foo.object = 1; +foo.set = 1; +foo.string = 1; +foo.symbol = 1; +foo.type = 1; +foo.undefined = 1; +foo.unique = 1; +foo.unknown = 1; +foo.from = 1; +foo.global = 1; +foo.bigint = 1; +foo.of = 1; + + +//// [source.d.ts] +declare function foo(): void; +declare namespace foo { + export let x: number; + export let y: number; + let _break: number; + export { _break as break }; + let _case: number; + export { _case as case }; + let _catch: number; + export { _catch as catch }; + let _class: number; + export { _class as class }; + let _const: number; + export { _const as const }; + let _continue: number; + export { _continue as continue }; + let _debugger: number; + export { _debugger as debugger }; + let _default: number; + export { _default as default }; + let _delete: number; + export { _delete as delete }; + let _do: number; + export { _do as do }; + let _else: number; + export { _else as else }; + let _enum: number; + export { _enum as enum }; + let _export: number; + export { _export as export }; + let _extends: number; + export { _extends as extends }; + let _false: number; + export { _false as false }; + let _finally: number; + export { _finally as finally }; + let _for: number; + export { _for as for }; + let _function: number; + export { _function as function }; + let _if: number; + export { _if as if }; + let _import: number; + export { _import as import }; + let _in: number; + export { _in as in }; + let _instanceof: number; + export { _instanceof as instanceof }; + let _new: number; + export { _new as new }; + let _null: number; + export { _null as null }; + let _return: number; + export { _return as return }; + let _super: number; + export { _super as super }; + let _switch: number; + export { _switch as switch }; + let _this: number; + export { _this as this }; + let _throw: number; + export { _throw as throw }; + let _true: number; + export { _true as true }; + let _try: number; + export { _try as try }; + let _typeof: number; + export { _typeof as typeof }; + let _var: number; + export { _var as var }; + let _void: number; + export { _void as void }; + let _while: number; + export { _while as while }; + let _with: number; + export { _with as with }; + let _implements: number; + export { _implements as implements }; + let _interface: number; + export { _interface as interface }; + let _let: number; + export { _let as let }; + let _package: number; + export { _package as package }; + let _private: number; + export { _private as private }; + let _protected: number; + export { _protected as protected }; + let _public: number; + export { _public as public }; + let _static: number; + export { _static as static }; + let _yield: number; + export { _yield as yield }; + export let abstract: number; + export let as: number; + export let asserts: number; + export let any: number; + export let async: number; + export let await: number; + export let boolean: number; + export let constructor: number; + export let declare: number; + export let get: number; + export let infer: number; + export let is: number; + export let keyof: number; + export let module: number; + export let namespace: number; + export let never: number; + export let readonly: number; + export let require: number; + export let number: number; + export let object: number; + export let set: number; + export let string: number; + export let symbol: number; + export let type: number; + export let undefined: number; + export let unique: number; + export let unknown: number; + export let from: number; + export let global: number; + export let bigint: number; + export let of: number; +} diff --git a/tests/baselines/reference/jsDeclarationsFunctionKeywordPropExhaustive(target=es5).symbols b/tests/baselines/reference/jsDeclarationsFunctionKeywordPropExhaustive(target=es5).symbols new file mode 100644 index 0000000000000..ae8908d0a289e --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsFunctionKeywordPropExhaustive(target=es5).symbols @@ -0,0 +1,398 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsFunctionKeywordPropExhaustive.ts] //// + +=== source.js === +function foo() {} +>foo : Symbol(foo, Decl(source.js, 0, 0), Decl(source.js, 0, 17), Decl(source.js, 2, 10), Decl(source.js, 3, 10), Decl(source.js, 6, 14) ... and 74 more) + +// properties +foo.x = 1; +>foo.x : Symbol(foo.x, Decl(source.js, 0, 17)) +>foo : Symbol(foo, Decl(source.js, 0, 0), Decl(source.js, 0, 17), Decl(source.js, 2, 10), Decl(source.js, 3, 10), Decl(source.js, 6, 14) ... and 74 more) +>x : Symbol(foo.x, Decl(source.js, 0, 17)) + +foo.y = 1; +>foo.y : Symbol(foo.y, Decl(source.js, 2, 10)) +>foo : Symbol(foo, Decl(source.js, 0, 0), Decl(source.js, 0, 17), Decl(source.js, 2, 10), Decl(source.js, 3, 10), Decl(source.js, 6, 14) ... and 74 more) +>y : Symbol(foo.y, Decl(source.js, 2, 10)) + +// keywords +foo.break = 1; +>foo.break : Symbol(foo.break, Decl(source.js, 3, 10)) +>foo : Symbol(foo, Decl(source.js, 0, 0), Decl(source.js, 0, 17), Decl(source.js, 2, 10), Decl(source.js, 3, 10), Decl(source.js, 6, 14) ... and 74 more) +>break : Symbol(foo.break, Decl(source.js, 3, 10)) + +foo.case = 1; +>foo.case : Symbol(foo.case, Decl(source.js, 6, 14)) +>foo : Symbol(foo, Decl(source.js, 0, 0), Decl(source.js, 0, 17), Decl(source.js, 2, 10), Decl(source.js, 3, 10), Decl(source.js, 6, 14) ... and 74 more) +>case : Symbol(foo.case, Decl(source.js, 6, 14)) + +foo.catch = 1; +>foo.catch : Symbol(foo.catch, Decl(source.js, 7, 13)) +>foo : Symbol(foo, Decl(source.js, 0, 0), Decl(source.js, 0, 17), Decl(source.js, 2, 10), Decl(source.js, 3, 10), Decl(source.js, 6, 14) ... and 74 more) +>catch : Symbol(foo.catch, Decl(source.js, 7, 13)) + +foo.class = 1; +>foo.class : Symbol(foo.class, Decl(source.js, 8, 14)) +>foo : Symbol(foo, Decl(source.js, 0, 0), Decl(source.js, 0, 17), Decl(source.js, 2, 10), Decl(source.js, 3, 10), Decl(source.js, 6, 14) ... and 74 more) +>class : Symbol(foo.class, Decl(source.js, 8, 14)) + +foo.const = 1; +>foo.const : Symbol(foo.const, Decl(source.js, 9, 14)) +>foo : Symbol(foo, Decl(source.js, 0, 0), Decl(source.js, 0, 17), Decl(source.js, 2, 10), Decl(source.js, 3, 10), Decl(source.js, 6, 14) ... and 74 more) +>const : Symbol(foo.const, Decl(source.js, 9, 14)) + +foo.continue = 1; +>foo.continue : Symbol(foo.continue, Decl(source.js, 10, 14)) +>foo : Symbol(foo, Decl(source.js, 0, 0), Decl(source.js, 0, 17), Decl(source.js, 2, 10), Decl(source.js, 3, 10), Decl(source.js, 6, 14) ... and 74 more) +>continue : Symbol(foo.continue, Decl(source.js, 10, 14)) + +foo.debugger = 1; +>foo.debugger : Symbol(foo.debugger, Decl(source.js, 11, 17)) +>foo : Symbol(foo, Decl(source.js, 0, 0), Decl(source.js, 0, 17), Decl(source.js, 2, 10), Decl(source.js, 3, 10), Decl(source.js, 6, 14) ... and 74 more) +>debugger : Symbol(foo.debugger, Decl(source.js, 11, 17)) + +foo.default = 1; +>foo.default : Symbol(foo.default, Decl(source.js, 12, 17)) +>foo : Symbol(foo, Decl(source.js, 0, 0), Decl(source.js, 0, 17), Decl(source.js, 2, 10), Decl(source.js, 3, 10), Decl(source.js, 6, 14) ... and 74 more) +>default : Symbol(foo.default, Decl(source.js, 12, 17)) + +foo.delete = 1; +>foo.delete : Symbol(foo.delete, Decl(source.js, 13, 16)) +>foo : Symbol(foo, Decl(source.js, 0, 0), Decl(source.js, 0, 17), Decl(source.js, 2, 10), Decl(source.js, 3, 10), Decl(source.js, 6, 14) ... and 74 more) +>delete : Symbol(foo.delete, Decl(source.js, 13, 16)) + +foo.do = 1; +>foo.do : Symbol(foo.do, Decl(source.js, 14, 15)) +>foo : Symbol(foo, Decl(source.js, 0, 0), Decl(source.js, 0, 17), Decl(source.js, 2, 10), Decl(source.js, 3, 10), Decl(source.js, 6, 14) ... and 74 more) +>do : Symbol(foo.do, Decl(source.js, 14, 15)) + +foo.else = 1; +>foo.else : Symbol(foo.else, Decl(source.js, 15, 11)) +>foo : Symbol(foo, Decl(source.js, 0, 0), Decl(source.js, 0, 17), Decl(source.js, 2, 10), Decl(source.js, 3, 10), Decl(source.js, 6, 14) ... and 74 more) +>else : Symbol(foo.else, Decl(source.js, 15, 11)) + +foo.enum = 1; +>foo.enum : Symbol(foo.enum, Decl(source.js, 16, 13)) +>foo : Symbol(foo, Decl(source.js, 0, 0), Decl(source.js, 0, 17), Decl(source.js, 2, 10), Decl(source.js, 3, 10), Decl(source.js, 6, 14) ... and 74 more) +>enum : Symbol(foo.enum, Decl(source.js, 16, 13)) + +foo.export = 1; +>foo.export : Symbol(foo.export, Decl(source.js, 17, 13)) +>foo : Symbol(foo, Decl(source.js, 0, 0), Decl(source.js, 0, 17), Decl(source.js, 2, 10), Decl(source.js, 3, 10), Decl(source.js, 6, 14) ... and 74 more) +>export : Symbol(foo.export, Decl(source.js, 17, 13)) + +foo.extends = 1; +>foo.extends : Symbol(foo.extends, Decl(source.js, 18, 15)) +>foo : Symbol(foo, Decl(source.js, 0, 0), Decl(source.js, 0, 17), Decl(source.js, 2, 10), Decl(source.js, 3, 10), Decl(source.js, 6, 14) ... and 74 more) +>extends : Symbol(foo.extends, Decl(source.js, 18, 15)) + +foo.false = 1; +>foo.false : Symbol(foo.false, Decl(source.js, 19, 16)) +>foo : Symbol(foo, Decl(source.js, 0, 0), Decl(source.js, 0, 17), Decl(source.js, 2, 10), Decl(source.js, 3, 10), Decl(source.js, 6, 14) ... and 74 more) +>false : Symbol(foo.false, Decl(source.js, 19, 16)) + +foo.finally = 1; +>foo.finally : Symbol(foo.finally, Decl(source.js, 20, 14)) +>foo : Symbol(foo, Decl(source.js, 0, 0), Decl(source.js, 0, 17), Decl(source.js, 2, 10), Decl(source.js, 3, 10), Decl(source.js, 6, 14) ... and 74 more) +>finally : Symbol(foo.finally, Decl(source.js, 20, 14)) + +foo.for = 1; +>foo.for : Symbol(foo.for, Decl(source.js, 21, 16)) +>foo : Symbol(foo, Decl(source.js, 0, 0), Decl(source.js, 0, 17), Decl(source.js, 2, 10), Decl(source.js, 3, 10), Decl(source.js, 6, 14) ... and 74 more) +>for : Symbol(foo.for, Decl(source.js, 21, 16)) + +foo.function = 1; +>foo.function : Symbol(foo.function, Decl(source.js, 22, 12)) +>foo : Symbol(foo, Decl(source.js, 0, 0), Decl(source.js, 0, 17), Decl(source.js, 2, 10), Decl(source.js, 3, 10), Decl(source.js, 6, 14) ... and 74 more) +>function : Symbol(foo.function, Decl(source.js, 22, 12)) + +foo.if = 1; +>foo.if : Symbol(foo.if, Decl(source.js, 23, 17)) +>foo : Symbol(foo, Decl(source.js, 0, 0), Decl(source.js, 0, 17), Decl(source.js, 2, 10), Decl(source.js, 3, 10), Decl(source.js, 6, 14) ... and 74 more) +>if : Symbol(foo.if, Decl(source.js, 23, 17)) + +foo.import = 1; +>foo.import : Symbol(foo.import, Decl(source.js, 24, 11)) +>foo : Symbol(foo, Decl(source.js, 0, 0), Decl(source.js, 0, 17), Decl(source.js, 2, 10), Decl(source.js, 3, 10), Decl(source.js, 6, 14) ... and 74 more) +>import : Symbol(foo.import, Decl(source.js, 24, 11)) + +foo.in = 1; +>foo.in : Symbol(foo.in, Decl(source.js, 25, 15)) +>foo : Symbol(foo, Decl(source.js, 0, 0), Decl(source.js, 0, 17), Decl(source.js, 2, 10), Decl(source.js, 3, 10), Decl(source.js, 6, 14) ... and 74 more) +>in : Symbol(foo.in, Decl(source.js, 25, 15)) + +foo.instanceof = 1; +>foo.instanceof : Symbol(foo.instanceof, Decl(source.js, 26, 11)) +>foo : Symbol(foo, Decl(source.js, 0, 0), Decl(source.js, 0, 17), Decl(source.js, 2, 10), Decl(source.js, 3, 10), Decl(source.js, 6, 14) ... and 74 more) +>instanceof : Symbol(foo.instanceof, Decl(source.js, 26, 11)) + +foo.new = 1; +>foo.new : Symbol(foo.new, Decl(source.js, 27, 19)) +>foo : Symbol(foo, Decl(source.js, 0, 0), Decl(source.js, 0, 17), Decl(source.js, 2, 10), Decl(source.js, 3, 10), Decl(source.js, 6, 14) ... and 74 more) +>new : Symbol(foo.new, Decl(source.js, 27, 19)) + +foo.null = 1; +>foo.null : Symbol(foo.null, Decl(source.js, 28, 12)) +>foo : Symbol(foo, Decl(source.js, 0, 0), Decl(source.js, 0, 17), Decl(source.js, 2, 10), Decl(source.js, 3, 10), Decl(source.js, 6, 14) ... and 74 more) +>null : Symbol(foo.null, Decl(source.js, 28, 12)) + +foo.return = 1; +>foo.return : Symbol(foo.return, Decl(source.js, 29, 13)) +>foo : Symbol(foo, Decl(source.js, 0, 0), Decl(source.js, 0, 17), Decl(source.js, 2, 10), Decl(source.js, 3, 10), Decl(source.js, 6, 14) ... and 74 more) +>return : Symbol(foo.return, Decl(source.js, 29, 13)) + +foo.super = 1; +>foo.super : Symbol(foo.super, Decl(source.js, 30, 15)) +>foo : Symbol(foo, Decl(source.js, 0, 0), Decl(source.js, 0, 17), Decl(source.js, 2, 10), Decl(source.js, 3, 10), Decl(source.js, 6, 14) ... and 74 more) +>super : Symbol(foo.super, Decl(source.js, 30, 15)) + +foo.switch = 1; +>foo.switch : Symbol(foo.switch, Decl(source.js, 31, 14)) +>foo : Symbol(foo, Decl(source.js, 0, 0), Decl(source.js, 0, 17), Decl(source.js, 2, 10), Decl(source.js, 3, 10), Decl(source.js, 6, 14) ... and 74 more) +>switch : Symbol(foo.switch, Decl(source.js, 31, 14)) + +foo.this = 1; +>foo.this : Symbol(foo.this, Decl(source.js, 32, 15)) +>foo : Symbol(foo, Decl(source.js, 0, 0), Decl(source.js, 0, 17), Decl(source.js, 2, 10), Decl(source.js, 3, 10), Decl(source.js, 6, 14) ... and 74 more) +>this : Symbol(foo.this, Decl(source.js, 32, 15)) + +foo.throw = 1; +>foo.throw : Symbol(foo.throw, Decl(source.js, 33, 13)) +>foo : Symbol(foo, Decl(source.js, 0, 0), Decl(source.js, 0, 17), Decl(source.js, 2, 10), Decl(source.js, 3, 10), Decl(source.js, 6, 14) ... and 74 more) +>throw : Symbol(foo.throw, Decl(source.js, 33, 13)) + +foo.true = 1; +>foo.true : Symbol(foo.true, Decl(source.js, 34, 14)) +>foo : Symbol(foo, Decl(source.js, 0, 0), Decl(source.js, 0, 17), Decl(source.js, 2, 10), Decl(source.js, 3, 10), Decl(source.js, 6, 14) ... and 74 more) +>true : Symbol(foo.true, Decl(source.js, 34, 14)) + +foo.try = 1; +>foo.try : Symbol(foo.try, Decl(source.js, 35, 13)) +>foo : Symbol(foo, Decl(source.js, 0, 0), Decl(source.js, 0, 17), Decl(source.js, 2, 10), Decl(source.js, 3, 10), Decl(source.js, 6, 14) ... and 74 more) +>try : Symbol(foo.try, Decl(source.js, 35, 13)) + +foo.typeof = 1; +>foo.typeof : Symbol(foo.typeof, Decl(source.js, 36, 12)) +>foo : Symbol(foo, Decl(source.js, 0, 0), Decl(source.js, 0, 17), Decl(source.js, 2, 10), Decl(source.js, 3, 10), Decl(source.js, 6, 14) ... and 74 more) +>typeof : Symbol(foo.typeof, Decl(source.js, 36, 12)) + +foo.var = 1; +>foo.var : Symbol(foo.var, Decl(source.js, 37, 15)) +>foo : Symbol(foo, Decl(source.js, 0, 0), Decl(source.js, 0, 17), Decl(source.js, 2, 10), Decl(source.js, 3, 10), Decl(source.js, 6, 14) ... and 74 more) +>var : Symbol(foo.var, Decl(source.js, 37, 15)) + +foo.void = 1; +>foo.void : Symbol(foo.void, Decl(source.js, 38, 12)) +>foo : Symbol(foo, Decl(source.js, 0, 0), Decl(source.js, 0, 17), Decl(source.js, 2, 10), Decl(source.js, 3, 10), Decl(source.js, 6, 14) ... and 74 more) +>void : Symbol(foo.void, Decl(source.js, 38, 12)) + +foo.while = 1; +>foo.while : Symbol(foo.while, Decl(source.js, 39, 13)) +>foo : Symbol(foo, Decl(source.js, 0, 0), Decl(source.js, 0, 17), Decl(source.js, 2, 10), Decl(source.js, 3, 10), Decl(source.js, 6, 14) ... and 74 more) +>while : Symbol(foo.while, Decl(source.js, 39, 13)) + +foo.with = 1; +>foo.with : Symbol(foo.with, Decl(source.js, 40, 14)) +>foo : Symbol(foo, Decl(source.js, 0, 0), Decl(source.js, 0, 17), Decl(source.js, 2, 10), Decl(source.js, 3, 10), Decl(source.js, 6, 14) ... and 74 more) +>with : Symbol(foo.with, Decl(source.js, 40, 14)) + +foo.implements = 1; +>foo.implements : Symbol(foo.implements, Decl(source.js, 41, 13)) +>foo : Symbol(foo, Decl(source.js, 0, 0), Decl(source.js, 0, 17), Decl(source.js, 2, 10), Decl(source.js, 3, 10), Decl(source.js, 6, 14) ... and 74 more) +>implements : Symbol(foo.implements, Decl(source.js, 41, 13)) + +foo.interface = 1; +>foo.interface : Symbol(foo.interface, Decl(source.js, 42, 19)) +>foo : Symbol(foo, Decl(source.js, 0, 0), Decl(source.js, 0, 17), Decl(source.js, 2, 10), Decl(source.js, 3, 10), Decl(source.js, 6, 14) ... and 74 more) +>interface : Symbol(foo.interface, Decl(source.js, 42, 19)) + +foo.let = 1; +>foo.let : Symbol(foo.let, Decl(source.js, 43, 18)) +>foo : Symbol(foo, Decl(source.js, 0, 0), Decl(source.js, 0, 17), Decl(source.js, 2, 10), Decl(source.js, 3, 10), Decl(source.js, 6, 14) ... and 74 more) +>let : Symbol(foo.let, Decl(source.js, 43, 18)) + +foo.package = 1; +>foo.package : Symbol(foo.package, Decl(source.js, 44, 12)) +>foo : Symbol(foo, Decl(source.js, 0, 0), Decl(source.js, 0, 17), Decl(source.js, 2, 10), Decl(source.js, 3, 10), Decl(source.js, 6, 14) ... and 74 more) +>package : Symbol(foo.package, Decl(source.js, 44, 12)) + +foo.private = 1; +>foo.private : Symbol(foo.private, Decl(source.js, 45, 16)) +>foo : Symbol(foo, Decl(source.js, 0, 0), Decl(source.js, 0, 17), Decl(source.js, 2, 10), Decl(source.js, 3, 10), Decl(source.js, 6, 14) ... and 74 more) +>private : Symbol(foo.private, Decl(source.js, 45, 16)) + +foo.protected = 1; +>foo.protected : Symbol(foo.protected, Decl(source.js, 46, 16)) +>foo : Symbol(foo, Decl(source.js, 0, 0), Decl(source.js, 0, 17), Decl(source.js, 2, 10), Decl(source.js, 3, 10), Decl(source.js, 6, 14) ... and 74 more) +>protected : Symbol(foo.protected, Decl(source.js, 46, 16)) + +foo.public = 1; +>foo.public : Symbol(foo.public, Decl(source.js, 47, 18)) +>foo : Symbol(foo, Decl(source.js, 0, 0), Decl(source.js, 0, 17), Decl(source.js, 2, 10), Decl(source.js, 3, 10), Decl(source.js, 6, 14) ... and 74 more) +>public : Symbol(foo.public, Decl(source.js, 47, 18)) + +foo.static = 1; +>foo.static : Symbol(foo.static, Decl(source.js, 48, 15)) +>foo : Symbol(foo, Decl(source.js, 0, 0), Decl(source.js, 0, 17), Decl(source.js, 2, 10), Decl(source.js, 3, 10), Decl(source.js, 6, 14) ... and 74 more) +>static : Symbol(foo.static, Decl(source.js, 48, 15)) + +foo.yield = 1; +>foo.yield : Symbol(foo.yield, Decl(source.js, 49, 15)) +>foo : Symbol(foo, Decl(source.js, 0, 0), Decl(source.js, 0, 17), Decl(source.js, 2, 10), Decl(source.js, 3, 10), Decl(source.js, 6, 14) ... and 74 more) +>yield : Symbol(foo.yield, Decl(source.js, 49, 15)) + +foo.abstract = 1; +>foo.abstract : Symbol(foo.abstract, Decl(source.js, 50, 14)) +>foo : Symbol(foo, Decl(source.js, 0, 0), Decl(source.js, 0, 17), Decl(source.js, 2, 10), Decl(source.js, 3, 10), Decl(source.js, 6, 14) ... and 74 more) +>abstract : Symbol(foo.abstract, Decl(source.js, 50, 14)) + +foo.as = 1; +>foo.as : Symbol(foo.as, Decl(source.js, 51, 17)) +>foo : Symbol(foo, Decl(source.js, 0, 0), Decl(source.js, 0, 17), Decl(source.js, 2, 10), Decl(source.js, 3, 10), Decl(source.js, 6, 14) ... and 74 more) +>as : Symbol(foo.as, Decl(source.js, 51, 17)) + +foo.asserts = 1; +>foo.asserts : Symbol(foo.asserts, Decl(source.js, 52, 11)) +>foo : Symbol(foo, Decl(source.js, 0, 0), Decl(source.js, 0, 17), Decl(source.js, 2, 10), Decl(source.js, 3, 10), Decl(source.js, 6, 14) ... and 74 more) +>asserts : Symbol(foo.asserts, Decl(source.js, 52, 11)) + +foo.any = 1; +>foo.any : Symbol(foo.any, Decl(source.js, 53, 16)) +>foo : Symbol(foo, Decl(source.js, 0, 0), Decl(source.js, 0, 17), Decl(source.js, 2, 10), Decl(source.js, 3, 10), Decl(source.js, 6, 14) ... and 74 more) +>any : Symbol(foo.any, Decl(source.js, 53, 16)) + +foo.async = 1; +>foo.async : Symbol(foo.async, Decl(source.js, 54, 12)) +>foo : Symbol(foo, Decl(source.js, 0, 0), Decl(source.js, 0, 17), Decl(source.js, 2, 10), Decl(source.js, 3, 10), Decl(source.js, 6, 14) ... and 74 more) +>async : Symbol(foo.async, Decl(source.js, 54, 12)) + +foo.await = 1; +>foo.await : Symbol(foo.await, Decl(source.js, 55, 14)) +>foo : Symbol(foo, Decl(source.js, 0, 0), Decl(source.js, 0, 17), Decl(source.js, 2, 10), Decl(source.js, 3, 10), Decl(source.js, 6, 14) ... and 74 more) +>await : Symbol(foo.await, Decl(source.js, 55, 14)) + +foo.boolean = 1; +>foo.boolean : Symbol(foo.boolean, Decl(source.js, 56, 14)) +>foo : Symbol(foo, Decl(source.js, 0, 0), Decl(source.js, 0, 17), Decl(source.js, 2, 10), Decl(source.js, 3, 10), Decl(source.js, 6, 14) ... and 74 more) +>boolean : Symbol(foo.boolean, Decl(source.js, 56, 14)) + +foo.constructor = 1; +>foo.constructor : Symbol(foo.constructor, Decl(source.js, 57, 16)) +>foo : Symbol(foo, Decl(source.js, 0, 0), Decl(source.js, 0, 17), Decl(source.js, 2, 10), Decl(source.js, 3, 10), Decl(source.js, 6, 14) ... and 74 more) +>constructor : Symbol(foo.constructor, Decl(source.js, 57, 16)) + +foo.declare = 1; +>foo.declare : Symbol(foo.declare, Decl(source.js, 58, 20)) +>foo : Symbol(foo, Decl(source.js, 0, 0), Decl(source.js, 0, 17), Decl(source.js, 2, 10), Decl(source.js, 3, 10), Decl(source.js, 6, 14) ... and 74 more) +>declare : Symbol(foo.declare, Decl(source.js, 58, 20)) + +foo.get = 1; +>foo.get : Symbol(foo.get, Decl(source.js, 59, 16)) +>foo : Symbol(foo, Decl(source.js, 0, 0), Decl(source.js, 0, 17), Decl(source.js, 2, 10), Decl(source.js, 3, 10), Decl(source.js, 6, 14) ... and 74 more) +>get : Symbol(foo.get, Decl(source.js, 59, 16)) + +foo.infer = 1; +>foo.infer : Symbol(foo.infer, Decl(source.js, 60, 12)) +>foo : Symbol(foo, Decl(source.js, 0, 0), Decl(source.js, 0, 17), Decl(source.js, 2, 10), Decl(source.js, 3, 10), Decl(source.js, 6, 14) ... and 74 more) +>infer : Symbol(foo.infer, Decl(source.js, 60, 12)) + +foo.is = 1; +>foo.is : Symbol(foo.is, Decl(source.js, 61, 14)) +>foo : Symbol(foo, Decl(source.js, 0, 0), Decl(source.js, 0, 17), Decl(source.js, 2, 10), Decl(source.js, 3, 10), Decl(source.js, 6, 14) ... and 74 more) +>is : Symbol(foo.is, Decl(source.js, 61, 14)) + +foo.keyof = 1; +>foo.keyof : Symbol(foo.keyof, Decl(source.js, 62, 11)) +>foo : Symbol(foo, Decl(source.js, 0, 0), Decl(source.js, 0, 17), Decl(source.js, 2, 10), Decl(source.js, 3, 10), Decl(source.js, 6, 14) ... and 74 more) +>keyof : Symbol(foo.keyof, Decl(source.js, 62, 11)) + +foo.module = 1; +>foo.module : Symbol(foo.module, Decl(source.js, 63, 14)) +>foo : Symbol(foo, Decl(source.js, 0, 0), Decl(source.js, 0, 17), Decl(source.js, 2, 10), Decl(source.js, 3, 10), Decl(source.js, 6, 14) ... and 74 more) +>module : Symbol(foo.module, Decl(source.js, 63, 14)) + +foo.namespace = 1; +>foo.namespace : Symbol(foo.namespace, Decl(source.js, 64, 15)) +>foo : Symbol(foo, Decl(source.js, 0, 0), Decl(source.js, 0, 17), Decl(source.js, 2, 10), Decl(source.js, 3, 10), Decl(source.js, 6, 14) ... and 74 more) +>namespace : Symbol(foo.namespace, Decl(source.js, 64, 15)) + +foo.never = 1; +>foo.never : Symbol(foo.never, Decl(source.js, 65, 18)) +>foo : Symbol(foo, Decl(source.js, 0, 0), Decl(source.js, 0, 17), Decl(source.js, 2, 10), Decl(source.js, 3, 10), Decl(source.js, 6, 14) ... and 74 more) +>never : Symbol(foo.never, Decl(source.js, 65, 18)) + +foo.readonly = 1; +>foo.readonly : Symbol(foo.readonly, Decl(source.js, 66, 14)) +>foo : Symbol(foo, Decl(source.js, 0, 0), Decl(source.js, 0, 17), Decl(source.js, 2, 10), Decl(source.js, 3, 10), Decl(source.js, 6, 14) ... and 74 more) +>readonly : Symbol(foo.readonly, Decl(source.js, 66, 14)) + +foo.require = 1; +>foo.require : Symbol(foo.require, Decl(source.js, 67, 17)) +>foo : Symbol(foo, Decl(source.js, 0, 0), Decl(source.js, 0, 17), Decl(source.js, 2, 10), Decl(source.js, 3, 10), Decl(source.js, 6, 14) ... and 74 more) +>require : Symbol(foo.require, Decl(source.js, 67, 17)) + +foo.number = 1; +>foo.number : Symbol(foo.number, Decl(source.js, 68, 16)) +>foo : Symbol(foo, Decl(source.js, 0, 0), Decl(source.js, 0, 17), Decl(source.js, 2, 10), Decl(source.js, 3, 10), Decl(source.js, 6, 14) ... and 74 more) +>number : Symbol(foo.number, Decl(source.js, 68, 16)) + +foo.object = 1; +>foo.object : Symbol(foo.object, Decl(source.js, 69, 15)) +>foo : Symbol(foo, Decl(source.js, 0, 0), Decl(source.js, 0, 17), Decl(source.js, 2, 10), Decl(source.js, 3, 10), Decl(source.js, 6, 14) ... and 74 more) +>object : Symbol(foo.object, Decl(source.js, 69, 15)) + +foo.set = 1; +>foo.set : Symbol(foo.set, Decl(source.js, 70, 15)) +>foo : Symbol(foo, Decl(source.js, 0, 0), Decl(source.js, 0, 17), Decl(source.js, 2, 10), Decl(source.js, 3, 10), Decl(source.js, 6, 14) ... and 74 more) +>set : Symbol(foo.set, Decl(source.js, 70, 15)) + +foo.string = 1; +>foo.string : Symbol(foo.string, Decl(source.js, 71, 12)) +>foo : Symbol(foo, Decl(source.js, 0, 0), Decl(source.js, 0, 17), Decl(source.js, 2, 10), Decl(source.js, 3, 10), Decl(source.js, 6, 14) ... and 74 more) +>string : Symbol(foo.string, Decl(source.js, 71, 12)) + +foo.symbol = 1; +>foo.symbol : Symbol(foo.symbol, Decl(source.js, 72, 15)) +>foo : Symbol(foo, Decl(source.js, 0, 0), Decl(source.js, 0, 17), Decl(source.js, 2, 10), Decl(source.js, 3, 10), Decl(source.js, 6, 14) ... and 74 more) +>symbol : Symbol(foo.symbol, Decl(source.js, 72, 15)) + +foo.type = 1; +>foo.type : Symbol(foo.type, Decl(source.js, 73, 15)) +>foo : Symbol(foo, Decl(source.js, 0, 0), Decl(source.js, 0, 17), Decl(source.js, 2, 10), Decl(source.js, 3, 10), Decl(source.js, 6, 14) ... and 74 more) +>type : Symbol(foo.type, Decl(source.js, 73, 15)) + +foo.undefined = 1; +>foo.undefined : Symbol(foo.undefined, Decl(source.js, 74, 13)) +>foo : Symbol(foo, Decl(source.js, 0, 0), Decl(source.js, 0, 17), Decl(source.js, 2, 10), Decl(source.js, 3, 10), Decl(source.js, 6, 14) ... and 74 more) +>undefined : Symbol(foo.undefined, Decl(source.js, 74, 13)) + +foo.unique = 1; +>foo.unique : Symbol(foo.unique, Decl(source.js, 75, 18)) +>foo : Symbol(foo, Decl(source.js, 0, 0), Decl(source.js, 0, 17), Decl(source.js, 2, 10), Decl(source.js, 3, 10), Decl(source.js, 6, 14) ... and 74 more) +>unique : Symbol(foo.unique, Decl(source.js, 75, 18)) + +foo.unknown = 1; +>foo.unknown : Symbol(foo.unknown, Decl(source.js, 76, 15)) +>foo : Symbol(foo, Decl(source.js, 0, 0), Decl(source.js, 0, 17), Decl(source.js, 2, 10), Decl(source.js, 3, 10), Decl(source.js, 6, 14) ... and 74 more) +>unknown : Symbol(foo.unknown, Decl(source.js, 76, 15)) + +foo.from = 1; +>foo.from : Symbol(foo.from, Decl(source.js, 77, 16)) +>foo : Symbol(foo, Decl(source.js, 0, 0), Decl(source.js, 0, 17), Decl(source.js, 2, 10), Decl(source.js, 3, 10), Decl(source.js, 6, 14) ... and 74 more) +>from : Symbol(foo.from, Decl(source.js, 77, 16)) + +foo.global = 1; +>foo.global : Symbol(foo.global, Decl(source.js, 78, 13)) +>foo : Symbol(foo, Decl(source.js, 0, 0), Decl(source.js, 0, 17), Decl(source.js, 2, 10), Decl(source.js, 3, 10), Decl(source.js, 6, 14) ... and 74 more) +>global : Symbol(foo.global, Decl(source.js, 78, 13)) + +foo.bigint = 1; +>foo.bigint : Symbol(foo.bigint, Decl(source.js, 79, 15)) +>foo : Symbol(foo, Decl(source.js, 0, 0), Decl(source.js, 0, 17), Decl(source.js, 2, 10), Decl(source.js, 3, 10), Decl(source.js, 6, 14) ... and 74 more) +>bigint : Symbol(foo.bigint, Decl(source.js, 79, 15)) + +foo.of = 1; +>foo.of : Symbol(foo.of, Decl(source.js, 80, 15)) +>foo : Symbol(foo, Decl(source.js, 0, 0), Decl(source.js, 0, 17), Decl(source.js, 2, 10), Decl(source.js, 3, 10), Decl(source.js, 6, 14) ... and 74 more) +>of : Symbol(foo.of, Decl(source.js, 80, 15)) + diff --git a/tests/baselines/reference/jsDeclarationsFunctionKeywordPropExhaustive(target=es5).types b/tests/baselines/reference/jsDeclarationsFunctionKeywordPropExhaustive(target=es5).types new file mode 100644 index 0000000000000..9982e20ef8cf0 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsFunctionKeywordPropExhaustive(target=es5).types @@ -0,0 +1,945 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsFunctionKeywordPropExhaustive.ts] //// + +=== source.js === +function foo() {} +>foo : typeof foo +> : ^^^^^^^^^^ + +// properties +foo.x = 1; +>foo.x = 1 : 1 +> : ^ +>foo.x : number +> : ^^^^^^ +>foo : typeof foo +> : ^^^^^^^^^^ +>x : number +> : ^^^^^^ +>1 : 1 +> : ^ + +foo.y = 1; +>foo.y = 1 : 1 +> : ^ +>foo.y : number +> : ^^^^^^ +>foo : typeof foo +> : ^^^^^^^^^^ +>y : number +> : ^^^^^^ +>1 : 1 +> : ^ + +// keywords +foo.break = 1; +>foo.break = 1 : 1 +> : ^ +>foo.break : number +> : ^^^^^^ +>foo : typeof foo +> : ^^^^^^^^^^ +>break : number +> : ^^^^^^ +>1 : 1 +> : ^ + +foo.case = 1; +>foo.case = 1 : 1 +> : ^ +>foo.case : number +> : ^^^^^^ +>foo : typeof foo +> : ^^^^^^^^^^ +>case : number +> : ^^^^^^ +>1 : 1 +> : ^ + +foo.catch = 1; +>foo.catch = 1 : 1 +> : ^ +>foo.catch : number +> : ^^^^^^ +>foo : typeof foo +> : ^^^^^^^^^^ +>catch : number +> : ^^^^^^ +>1 : 1 +> : ^ + +foo.class = 1; +>foo.class = 1 : 1 +> : ^ +>foo.class : number +> : ^^^^^^ +>foo : typeof foo +> : ^^^^^^^^^^ +>class : number +> : ^^^^^^ +>1 : 1 +> : ^ + +foo.const = 1; +>foo.const = 1 : 1 +> : ^ +>foo.const : number +> : ^^^^^^ +>foo : typeof foo +> : ^^^^^^^^^^ +>const : number +> : ^^^^^^ +>1 : 1 +> : ^ + +foo.continue = 1; +>foo.continue = 1 : 1 +> : ^ +>foo.continue : number +> : ^^^^^^ +>foo : typeof foo +> : ^^^^^^^^^^ +>continue : number +> : ^^^^^^ +>1 : 1 +> : ^ + +foo.debugger = 1; +>foo.debugger = 1 : 1 +> : ^ +>foo.debugger : number +> : ^^^^^^ +>foo : typeof foo +> : ^^^^^^^^^^ +>debugger : number +> : ^^^^^^ +>1 : 1 +> : ^ + +foo.default = 1; +>foo.default = 1 : 1 +> : ^ +>foo.default : number +> : ^^^^^^ +>foo : typeof foo +> : ^^^^^^^^^^ +>default : number +> : ^^^^^^ +>1 : 1 +> : ^ + +foo.delete = 1; +>foo.delete = 1 : 1 +> : ^ +>foo.delete : number +> : ^^^^^^ +>foo : typeof foo +> : ^^^^^^^^^^ +>delete : number +> : ^^^^^^ +>1 : 1 +> : ^ + +foo.do = 1; +>foo.do = 1 : 1 +> : ^ +>foo.do : number +> : ^^^^^^ +>foo : typeof foo +> : ^^^^^^^^^^ +>do : number +> : ^^^^^^ +>1 : 1 +> : ^ + +foo.else = 1; +>foo.else = 1 : 1 +> : ^ +>foo.else : number +> : ^^^^^^ +>foo : typeof foo +> : ^^^^^^^^^^ +>else : number +> : ^^^^^^ +>1 : 1 +> : ^ + +foo.enum = 1; +>foo.enum = 1 : 1 +> : ^ +>foo.enum : number +> : ^^^^^^ +>foo : typeof foo +> : ^^^^^^^^^^ +>enum : number +> : ^^^^^^ +>1 : 1 +> : ^ + +foo.export = 1; +>foo.export = 1 : 1 +> : ^ +>foo.export : number +> : ^^^^^^ +>foo : typeof foo +> : ^^^^^^^^^^ +>export : number +> : ^^^^^^ +>1 : 1 +> : ^ + +foo.extends = 1; +>foo.extends = 1 : 1 +> : ^ +>foo.extends : number +> : ^^^^^^ +>foo : typeof foo +> : ^^^^^^^^^^ +>extends : number +> : ^^^^^^ +>1 : 1 +> : ^ + +foo.false = 1; +>foo.false = 1 : 1 +> : ^ +>foo.false : number +> : ^^^^^^ +>foo : typeof foo +> : ^^^^^^^^^^ +>false : number +> : ^^^^^^ +>1 : 1 +> : ^ + +foo.finally = 1; +>foo.finally = 1 : 1 +> : ^ +>foo.finally : number +> : ^^^^^^ +>foo : typeof foo +> : ^^^^^^^^^^ +>finally : number +> : ^^^^^^ +>1 : 1 +> : ^ + +foo.for = 1; +>foo.for = 1 : 1 +> : ^ +>foo.for : number +> : ^^^^^^ +>foo : typeof foo +> : ^^^^^^^^^^ +>for : number +> : ^^^^^^ +>1 : 1 +> : ^ + +foo.function = 1; +>foo.function = 1 : 1 +> : ^ +>foo.function : number +> : ^^^^^^ +>foo : typeof foo +> : ^^^^^^^^^^ +>function : number +> : ^^^^^^ +>1 : 1 +> : ^ + +foo.if = 1; +>foo.if = 1 : 1 +> : ^ +>foo.if : number +> : ^^^^^^ +>foo : typeof foo +> : ^^^^^^^^^^ +>if : number +> : ^^^^^^ +>1 : 1 +> : ^ + +foo.import = 1; +>foo.import = 1 : 1 +> : ^ +>foo.import : number +> : ^^^^^^ +>foo : typeof foo +> : ^^^^^^^^^^ +>import : number +> : ^^^^^^ +>1 : 1 +> : ^ + +foo.in = 1; +>foo.in = 1 : 1 +> : ^ +>foo.in : number +> : ^^^^^^ +>foo : typeof foo +> : ^^^^^^^^^^ +>in : number +> : ^^^^^^ +>1 : 1 +> : ^ + +foo.instanceof = 1; +>foo.instanceof = 1 : 1 +> : ^ +>foo.instanceof : number +> : ^^^^^^ +>foo : typeof foo +> : ^^^^^^^^^^ +>instanceof : number +> : ^^^^^^ +>1 : 1 +> : ^ + +foo.new = 1; +>foo.new = 1 : 1 +> : ^ +>foo.new : number +> : ^^^^^^ +>foo : typeof foo +> : ^^^^^^^^^^ +>new : number +> : ^^^^^^ +>1 : 1 +> : ^ + +foo.null = 1; +>foo.null = 1 : 1 +> : ^ +>foo.null : number +> : ^^^^^^ +>foo : typeof foo +> : ^^^^^^^^^^ +>null : number +> : ^^^^^^ +>1 : 1 +> : ^ + +foo.return = 1; +>foo.return = 1 : 1 +> : ^ +>foo.return : number +> : ^^^^^^ +>foo : typeof foo +> : ^^^^^^^^^^ +>return : number +> : ^^^^^^ +>1 : 1 +> : ^ + +foo.super = 1; +>foo.super = 1 : 1 +> : ^ +>foo.super : number +> : ^^^^^^ +>foo : typeof foo +> : ^^^^^^^^^^ +>super : number +> : ^^^^^^ +>1 : 1 +> : ^ + +foo.switch = 1; +>foo.switch = 1 : 1 +> : ^ +>foo.switch : number +> : ^^^^^^ +>foo : typeof foo +> : ^^^^^^^^^^ +>switch : number +> : ^^^^^^ +>1 : 1 +> : ^ + +foo.this = 1; +>foo.this = 1 : 1 +> : ^ +>foo.this : number +> : ^^^^^^ +>foo : typeof foo +> : ^^^^^^^^^^ +>this : number +> : ^^^^^^ +>1 : 1 +> : ^ + +foo.throw = 1; +>foo.throw = 1 : 1 +> : ^ +>foo.throw : number +> : ^^^^^^ +>foo : typeof foo +> : ^^^^^^^^^^ +>throw : number +> : ^^^^^^ +>1 : 1 +> : ^ + +foo.true = 1; +>foo.true = 1 : 1 +> : ^ +>foo.true : number +> : ^^^^^^ +>foo : typeof foo +> : ^^^^^^^^^^ +>true : number +> : ^^^^^^ +>1 : 1 +> : ^ + +foo.try = 1; +>foo.try = 1 : 1 +> : ^ +>foo.try : number +> : ^^^^^^ +>foo : typeof foo +> : ^^^^^^^^^^ +>try : number +> : ^^^^^^ +>1 : 1 +> : ^ + +foo.typeof = 1; +>foo.typeof = 1 : 1 +> : ^ +>foo.typeof : number +> : ^^^^^^ +>foo : typeof foo +> : ^^^^^^^^^^ +>typeof : number +> : ^^^^^^ +>1 : 1 +> : ^ + +foo.var = 1; +>foo.var = 1 : 1 +> : ^ +>foo.var : number +> : ^^^^^^ +>foo : typeof foo +> : ^^^^^^^^^^ +>var : number +> : ^^^^^^ +>1 : 1 +> : ^ + +foo.void = 1; +>foo.void = 1 : 1 +> : ^ +>foo.void : number +> : ^^^^^^ +>foo : typeof foo +> : ^^^^^^^^^^ +>void : number +> : ^^^^^^ +>1 : 1 +> : ^ + +foo.while = 1; +>foo.while = 1 : 1 +> : ^ +>foo.while : number +> : ^^^^^^ +>foo : typeof foo +> : ^^^^^^^^^^ +>while : number +> : ^^^^^^ +>1 : 1 +> : ^ + +foo.with = 1; +>foo.with = 1 : 1 +> : ^ +>foo.with : number +> : ^^^^^^ +>foo : typeof foo +> : ^^^^^^^^^^ +>with : number +> : ^^^^^^ +>1 : 1 +> : ^ + +foo.implements = 1; +>foo.implements = 1 : 1 +> : ^ +>foo.implements : number +> : ^^^^^^ +>foo : typeof foo +> : ^^^^^^^^^^ +>implements : number +> : ^^^^^^ +>1 : 1 +> : ^ + +foo.interface = 1; +>foo.interface = 1 : 1 +> : ^ +>foo.interface : number +> : ^^^^^^ +>foo : typeof foo +> : ^^^^^^^^^^ +>interface : number +> : ^^^^^^ +>1 : 1 +> : ^ + +foo.let = 1; +>foo.let = 1 : 1 +> : ^ +>foo.let : number +> : ^^^^^^ +>foo : typeof foo +> : ^^^^^^^^^^ +>let : number +> : ^^^^^^ +>1 : 1 +> : ^ + +foo.package = 1; +>foo.package = 1 : 1 +> : ^ +>foo.package : number +> : ^^^^^^ +>foo : typeof foo +> : ^^^^^^^^^^ +>package : number +> : ^^^^^^ +>1 : 1 +> : ^ + +foo.private = 1; +>foo.private = 1 : 1 +> : ^ +>foo.private : number +> : ^^^^^^ +>foo : typeof foo +> : ^^^^^^^^^^ +>private : number +> : ^^^^^^ +>1 : 1 +> : ^ + +foo.protected = 1; +>foo.protected = 1 : 1 +> : ^ +>foo.protected : number +> : ^^^^^^ +>foo : typeof foo +> : ^^^^^^^^^^ +>protected : number +> : ^^^^^^ +>1 : 1 +> : ^ + +foo.public = 1; +>foo.public = 1 : 1 +> : ^ +>foo.public : number +> : ^^^^^^ +>foo : typeof foo +> : ^^^^^^^^^^ +>public : number +> : ^^^^^^ +>1 : 1 +> : ^ + +foo.static = 1; +>foo.static = 1 : 1 +> : ^ +>foo.static : number +> : ^^^^^^ +>foo : typeof foo +> : ^^^^^^^^^^ +>static : number +> : ^^^^^^ +>1 : 1 +> : ^ + +foo.yield = 1; +>foo.yield = 1 : 1 +> : ^ +>foo.yield : number +> : ^^^^^^ +>foo : typeof foo +> : ^^^^^^^^^^ +>yield : number +> : ^^^^^^ +>1 : 1 +> : ^ + +foo.abstract = 1; +>foo.abstract = 1 : 1 +> : ^ +>foo.abstract : number +> : ^^^^^^ +>foo : typeof foo +> : ^^^^^^^^^^ +>abstract : number +> : ^^^^^^ +>1 : 1 +> : ^ + +foo.as = 1; +>foo.as = 1 : 1 +> : ^ +>foo.as : number +> : ^^^^^^ +>foo : typeof foo +> : ^^^^^^^^^^ +>as : number +> : ^^^^^^ +>1 : 1 +> : ^ + +foo.asserts = 1; +>foo.asserts = 1 : 1 +> : ^ +>foo.asserts : number +> : ^^^^^^ +>foo : typeof foo +> : ^^^^^^^^^^ +>asserts : number +> : ^^^^^^ +>1 : 1 +> : ^ + +foo.any = 1; +>foo.any = 1 : 1 +> : ^ +>foo.any : number +> : ^^^^^^ +>foo : typeof foo +> : ^^^^^^^^^^ +>any : number +> : ^^^^^^ +>1 : 1 +> : ^ + +foo.async = 1; +>foo.async = 1 : 1 +> : ^ +>foo.async : number +> : ^^^^^^ +>foo : typeof foo +> : ^^^^^^^^^^ +>async : number +> : ^^^^^^ +>1 : 1 +> : ^ + +foo.await = 1; +>foo.await = 1 : 1 +> : ^ +>foo.await : number +> : ^^^^^^ +>foo : typeof foo +> : ^^^^^^^^^^ +>await : number +> : ^^^^^^ +>1 : 1 +> : ^ + +foo.boolean = 1; +>foo.boolean = 1 : 1 +> : ^ +>foo.boolean : number +> : ^^^^^^ +>foo : typeof foo +> : ^^^^^^^^^^ +>boolean : number +> : ^^^^^^ +>1 : 1 +> : ^ + +foo.constructor = 1; +>foo.constructor = 1 : 1 +> : ^ +>foo.constructor : number +> : ^^^^^^ +>foo : typeof foo +> : ^^^^^^^^^^ +>constructor : number +> : ^^^^^^ +>1 : 1 +> : ^ + +foo.declare = 1; +>foo.declare = 1 : 1 +> : ^ +>foo.declare : number +> : ^^^^^^ +>foo : typeof foo +> : ^^^^^^^^^^ +>declare : number +> : ^^^^^^ +>1 : 1 +> : ^ + +foo.get = 1; +>foo.get = 1 : 1 +> : ^ +>foo.get : number +> : ^^^^^^ +>foo : typeof foo +> : ^^^^^^^^^^ +>get : number +> : ^^^^^^ +>1 : 1 +> : ^ + +foo.infer = 1; +>foo.infer = 1 : 1 +> : ^ +>foo.infer : number +> : ^^^^^^ +>foo : typeof foo +> : ^^^^^^^^^^ +>infer : number +> : ^^^^^^ +>1 : 1 +> : ^ + +foo.is = 1; +>foo.is = 1 : 1 +> : ^ +>foo.is : number +> : ^^^^^^ +>foo : typeof foo +> : ^^^^^^^^^^ +>is : number +> : ^^^^^^ +>1 : 1 +> : ^ + +foo.keyof = 1; +>foo.keyof = 1 : 1 +> : ^ +>foo.keyof : number +> : ^^^^^^ +>foo : typeof foo +> : ^^^^^^^^^^ +>keyof : number +> : ^^^^^^ +>1 : 1 +> : ^ + +foo.module = 1; +>foo.module = 1 : 1 +> : ^ +>foo.module : number +> : ^^^^^^ +>foo : typeof foo +> : ^^^^^^^^^^ +>module : number +> : ^^^^^^ +>1 : 1 +> : ^ + +foo.namespace = 1; +>foo.namespace = 1 : 1 +> : ^ +>foo.namespace : number +> : ^^^^^^ +>foo : typeof foo +> : ^^^^^^^^^^ +>namespace : number +> : ^^^^^^ +>1 : 1 +> : ^ + +foo.never = 1; +>foo.never = 1 : 1 +> : ^ +>foo.never : number +> : ^^^^^^ +>foo : typeof foo +> : ^^^^^^^^^^ +>never : number +> : ^^^^^^ +>1 : 1 +> : ^ + +foo.readonly = 1; +>foo.readonly = 1 : 1 +> : ^ +>foo.readonly : number +> : ^^^^^^ +>foo : typeof foo +> : ^^^^^^^^^^ +>readonly : number +> : ^^^^^^ +>1 : 1 +> : ^ + +foo.require = 1; +>foo.require = 1 : 1 +> : ^ +>foo.require : number +> : ^^^^^^ +>foo : typeof foo +> : ^^^^^^^^^^ +>require : number +> : ^^^^^^ +>1 : 1 +> : ^ + +foo.number = 1; +>foo.number = 1 : 1 +> : ^ +>foo.number : number +> : ^^^^^^ +>foo : typeof foo +> : ^^^^^^^^^^ +>number : number +> : ^^^^^^ +>1 : 1 +> : ^ + +foo.object = 1; +>foo.object = 1 : 1 +> : ^ +>foo.object : number +> : ^^^^^^ +>foo : typeof foo +> : ^^^^^^^^^^ +>object : number +> : ^^^^^^ +>1 : 1 +> : ^ + +foo.set = 1; +>foo.set = 1 : 1 +> : ^ +>foo.set : number +> : ^^^^^^ +>foo : typeof foo +> : ^^^^^^^^^^ +>set : number +> : ^^^^^^ +>1 : 1 +> : ^ + +foo.string = 1; +>foo.string = 1 : 1 +> : ^ +>foo.string : number +> : ^^^^^^ +>foo : typeof foo +> : ^^^^^^^^^^ +>string : number +> : ^^^^^^ +>1 : 1 +> : ^ + +foo.symbol = 1; +>foo.symbol = 1 : 1 +> : ^ +>foo.symbol : number +> : ^^^^^^ +>foo : typeof foo +> : ^^^^^^^^^^ +>symbol : number +> : ^^^^^^ +>1 : 1 +> : ^ + +foo.type = 1; +>foo.type = 1 : 1 +> : ^ +>foo.type : number +> : ^^^^^^ +>foo : typeof foo +> : ^^^^^^^^^^ +>type : number +> : ^^^^^^ +>1 : 1 +> : ^ + +foo.undefined = 1; +>foo.undefined = 1 : 1 +> : ^ +>foo.undefined : number +> : ^^^^^^ +>foo : typeof foo +> : ^^^^^^^^^^ +>undefined : number +> : ^^^^^^ +>1 : 1 +> : ^ + +foo.unique = 1; +>foo.unique = 1 : 1 +> : ^ +>foo.unique : number +> : ^^^^^^ +>foo : typeof foo +> : ^^^^^^^^^^ +>unique : number +> : ^^^^^^ +>1 : 1 +> : ^ + +foo.unknown = 1; +>foo.unknown = 1 : 1 +> : ^ +>foo.unknown : number +> : ^^^^^^ +>foo : typeof foo +> : ^^^^^^^^^^ +>unknown : number +> : ^^^^^^ +>1 : 1 +> : ^ + +foo.from = 1; +>foo.from = 1 : 1 +> : ^ +>foo.from : number +> : ^^^^^^ +>foo : typeof foo +> : ^^^^^^^^^^ +>from : number +> : ^^^^^^ +>1 : 1 +> : ^ + +foo.global = 1; +>foo.global = 1 : 1 +> : ^ +>foo.global : number +> : ^^^^^^ +>foo : typeof foo +> : ^^^^^^^^^^ +>global : number +> : ^^^^^^ +>1 : 1 +> : ^ + +foo.bigint = 1; +>foo.bigint = 1 : 1 +> : ^ +>foo.bigint : number +> : ^^^^^^ +>foo : typeof foo +> : ^^^^^^^^^^ +>bigint : number +> : ^^^^^^ +>1 : 1 +> : ^ + +foo.of = 1; +>foo.of = 1 : 1 +> : ^ +>foo.of : number +> : ^^^^^^ +>foo : typeof foo +> : ^^^^^^^^^^ +>of : number +> : ^^^^^^ +>1 : 1 +> : ^ + diff --git a/tests/baselines/reference/jsDeclarationsFunctionLikeClasses(target=es2015).js b/tests/baselines/reference/jsDeclarationsFunctionLikeClasses(target=es2015).js new file mode 100644 index 0000000000000..f609f0c68bd90 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsFunctionLikeClasses(target=es2015).js @@ -0,0 +1,69 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsFunctionLikeClasses.ts] //// + +//// [source.js] +/** + * @param {number} x + * @param {number} y + */ +export function Point(x, y) { + if (!(this instanceof Point)) { + return new Point(x, y); + } + this.x = x; + this.y = y; +} + +//// [referencer.js] +import {Point} from "./source"; + +/** + * @param {Point} p + */ +export function magnitude(p) { + return Math.sqrt(p.x ** 2 + p.y ** 2); +} + + +//// [source.js] +/** + * @param {number} x + * @param {number} y + */ +export function Point(x, y) { + if (!(this instanceof Point)) { + return new Point(x, y); + } + this.x = x; + this.y = y; +} +//// [referencer.js] +import { Point } from "./source"; +/** + * @param {Point} p + */ +export function magnitude(p) { + return Math.sqrt(Math.pow(p.x, 2) + Math.pow(p.y, 2)); +} + + +//// [source.d.ts] +/** + * @param {number} x + * @param {number} y + */ +export function Point(x: number, y: number): Point; +export class Point { + /** + * @param {number} x + * @param {number} y + */ + constructor(x: number, y: number); + x: number; + y: number; +} +//// [referencer.d.ts] +/** + * @param {Point} p + */ +export function magnitude(p: Point): number; +import { Point } from "./source"; diff --git a/tests/baselines/reference/jsDeclarationsFunctionLikeClasses.symbols b/tests/baselines/reference/jsDeclarationsFunctionLikeClasses(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/jsDeclarationsFunctionLikeClasses.symbols rename to tests/baselines/reference/jsDeclarationsFunctionLikeClasses(target=es2015).symbols diff --git a/tests/baselines/reference/jsDeclarationsFunctionLikeClasses.types b/tests/baselines/reference/jsDeclarationsFunctionLikeClasses(target=es2015).types similarity index 100% rename from tests/baselines/reference/jsDeclarationsFunctionLikeClasses.types rename to tests/baselines/reference/jsDeclarationsFunctionLikeClasses(target=es2015).types diff --git a/tests/baselines/reference/jsDeclarationsFunctionLikeClasses.js b/tests/baselines/reference/jsDeclarationsFunctionLikeClasses(target=es5).js similarity index 100% rename from tests/baselines/reference/jsDeclarationsFunctionLikeClasses.js rename to tests/baselines/reference/jsDeclarationsFunctionLikeClasses(target=es5).js diff --git a/tests/baselines/reference/jsDeclarationsFunctionLikeClasses(target=es5).symbols b/tests/baselines/reference/jsDeclarationsFunctionLikeClasses(target=es5).symbols new file mode 100644 index 0000000000000..d82c8429dc878 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsFunctionLikeClasses(target=es5).symbols @@ -0,0 +1,57 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsFunctionLikeClasses.ts] //// + +=== source.js === +/** + * @param {number} x + * @param {number} y + */ +export function Point(x, y) { +>Point : Symbol(Point, Decl(source.js, 0, 0)) +>x : Symbol(x, Decl(source.js, 4, 22)) +>y : Symbol(y, Decl(source.js, 4, 24)) + + if (!(this instanceof Point)) { +>this : Symbol(Point, Decl(source.js, 0, 0)) +>Point : Symbol(Point, Decl(source.js, 0, 0)) + + return new Point(x, y); +>Point : Symbol(Point, Decl(source.js, 0, 0)) +>x : Symbol(x, Decl(source.js, 4, 22)) +>y : Symbol(y, Decl(source.js, 4, 24)) + } + this.x = x; +>this.x : Symbol(Point.x, Decl(source.js, 7, 5)) +>this : Symbol(Point, Decl(source.js, 0, 0)) +>x : Symbol(Point.x, Decl(source.js, 7, 5)) +>x : Symbol(x, Decl(source.js, 4, 22)) + + this.y = y; +>this.y : Symbol(Point.y, Decl(source.js, 8, 15)) +>this : Symbol(Point, Decl(source.js, 0, 0)) +>y : Symbol(Point.y, Decl(source.js, 8, 15)) +>y : Symbol(y, Decl(source.js, 4, 24)) +} + +=== referencer.js === +import {Point} from "./source"; +>Point : Symbol(Point, Decl(referencer.js, 0, 8)) + +/** + * @param {Point} p + */ +export function magnitude(p) { +>magnitude : Symbol(magnitude, Decl(referencer.js, 0, 31)) +>p : Symbol(p, Decl(referencer.js, 5, 26)) + + return Math.sqrt(p.x ** 2 + p.y ** 2); +>Math.sqrt : Symbol(Math.sqrt, Decl(lib.es5.d.ts, --, --)) +>Math : Symbol(Math, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>sqrt : Symbol(Math.sqrt, Decl(lib.es5.d.ts, --, --)) +>p.x : Symbol(Point.x, Decl(source.js, 7, 5)) +>p : Symbol(p, Decl(referencer.js, 5, 26)) +>x : Symbol(Point.x, Decl(source.js, 7, 5)) +>p.y : Symbol(Point.y, Decl(source.js, 8, 15)) +>p : Symbol(p, Decl(referencer.js, 5, 26)) +>y : Symbol(Point.y, Decl(source.js, 8, 15)) +} + diff --git a/tests/baselines/reference/jsDeclarationsFunctionLikeClasses(target=es5).types b/tests/baselines/reference/jsDeclarationsFunctionLikeClasses(target=es5).types new file mode 100644 index 0000000000000..829a80b75be55 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsFunctionLikeClasses(target=es5).types @@ -0,0 +1,107 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsFunctionLikeClasses.ts] //// + +=== source.js === +/** + * @param {number} x + * @param {number} y + */ +export function Point(x, y) { +>Point : typeof Point +> : ^^^^^^^^^^^^ +>x : number +> : ^^^^^^ +>y : number +> : ^^^^^^ + + if (!(this instanceof Point)) { +>!(this instanceof Point) : boolean +> : ^^^^^^^ +>(this instanceof Point) : boolean +> : ^^^^^^^ +>this instanceof Point : boolean +> : ^^^^^^^ +>this : this +> : ^^^^ +>Point : typeof Point +> : ^^^^^^^^^^^^ + + return new Point(x, y); +>new Point(x, y) : Point +> : ^^^^^ +>Point : typeof Point +> : ^^^^^^^^^^^^ +>x : number +> : ^^^^^^ +>y : number +> : ^^^^^^ + } + this.x = x; +>this.x = x : number +> : ^^^^^^ +>this.x : any +>this : this +> : ^^^^ +>x : any +> : ^^^ +>x : number +> : ^^^^^^ + + this.y = y; +>this.y = y : number +> : ^^^^^^ +>this.y : any +>this : this +> : ^^^^ +>y : any +> : ^^^ +>y : number +> : ^^^^^^ +} + +=== referencer.js === +import {Point} from "./source"; +>Point : typeof Point +> : ^^^^^^^^^^^^ + +/** + * @param {Point} p + */ +export function magnitude(p) { +>magnitude : (p: Point) => number +> : ^ ^^ ^^^^^^^^^^^ +>p : Point +> : ^^^^^ + + return Math.sqrt(p.x ** 2 + p.y ** 2); +>Math.sqrt(p.x ** 2 + p.y ** 2) : number +> : ^^^^^^ +>Math.sqrt : (x: number) => number +> : ^ ^^ ^^^^^ +>Math : Math +> : ^^^^ +>sqrt : (x: number) => number +> : ^ ^^ ^^^^^ +>p.x ** 2 + p.y ** 2 : number +> : ^^^^^^ +>p.x ** 2 : number +> : ^^^^^^ +>p.x : number +> : ^^^^^^ +>p : Point +> : ^^^^^ +>x : number +> : ^^^^^^ +>2 : 2 +> : ^ +>p.y ** 2 : number +> : ^^^^^^ +>p.y : number +> : ^^^^^^ +>p : Point +> : ^^^^^ +>y : number +> : ^^^^^^ +>2 : 2 +> : ^ +} + diff --git a/tests/baselines/reference/jsDeclarationsFunctionLikeClasses2(target=es2015).js b/tests/baselines/reference/jsDeclarationsFunctionLikeClasses2(target=es2015).js new file mode 100644 index 0000000000000..122228830ad43 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsFunctionLikeClasses2(target=es2015).js @@ -0,0 +1,195 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsFunctionLikeClasses2.ts] //// + +//// [source.js] +/** + * @param {number} len + */ +export function Vec(len) { + /** + * @type {number[]} + */ + this.storage = new Array(len); +} + +Vec.prototype = { + /** + * @param {Vec} other + */ + dot(other) { + if (other.storage.length !== this.storage.length) { + throw new Error(`Dot product only applicable for vectors of equal length`); + } + let sum = 0; + for (let i = 0; i < this.storage.length; i++) { + sum += (this.storage[i] * other.storage[i]); + } + return sum; + }, + magnitude() { + let sum = 0; + for (let i = 0; i < this.storage.length; i++) { + sum += (this.storage[i] ** 2); + } + return Math.sqrt(sum); + } +} + +/** + * @param {number} x + * @param {number} y + */ +export function Point2D(x, y) { + if (!(this instanceof Point2D)) { + return new Point2D(x, y); + } + Vec.call(this, 2); + this.x = x; + this.y = y; +} + +Point2D.prototype = { + __proto__: Vec, + get x() { + return this.storage[0]; + }, + /** + * @param {number} x + */ + set x(x) { + this.storage[0] = x; + }, + get y() { + return this.storage[1]; + }, + /** + * @param {number} y + */ + set y(y) { + this.storage[1] = y; + } +}; + +//// [referencer.js] +import {Point2D} from "./source"; + +export const origin = new Point2D(0, 0); +// export const res = Point2D(2, 3).dot(origin); // TODO: when __proto__ works, validate this + + +//// [source.js] +/** + * @param {number} len + */ +export function Vec(len) { + /** + * @type {number[]} + */ + this.storage = new Array(len); +} +Vec.prototype = { + /** + * @param {Vec} other + */ + dot(other) { + if (other.storage.length !== this.storage.length) { + throw new Error(`Dot product only applicable for vectors of equal length`); + } + let sum = 0; + for (let i = 0; i < this.storage.length; i++) { + sum += (this.storage[i] * other.storage[i]); + } + return sum; + }, + magnitude() { + let sum = 0; + for (let i = 0; i < this.storage.length; i++) { + sum += (Math.pow(this.storage[i], 2)); + } + return Math.sqrt(sum); + } +}; +/** + * @param {number} x + * @param {number} y + */ +export function Point2D(x, y) { + if (!(this instanceof Point2D)) { + return new Point2D(x, y); + } + Vec.call(this, 2); + this.x = x; + this.y = y; +} +Point2D.prototype = { + __proto__: Vec, + get x() { + return this.storage[0]; + }, + /** + * @param {number} x + */ + set x(x) { + this.storage[0] = x; + }, + get y() { + return this.storage[1]; + }, + /** + * @param {number} y + */ + set y(y) { + this.storage[1] = y; + } +}; +//// [referencer.js] +import { Point2D } from "./source"; +export const origin = new Point2D(0, 0); +// export const res = Point2D(2, 3).dot(origin); // TODO: when __proto__ works, validate this + + +//// [source.d.ts] +/** + * @param {number} len + */ +export function Vec(len: number): void; +export class Vec { + /** + * @param {number} len + */ + constructor(len: number); + /** + * @type {number[]} + */ + storage: number[]; + /** + * @param {Vec} other + */ + dot(other: Vec): number; + magnitude(): number; +} +/** + * @param {number} x + * @param {number} y + */ +export function Point2D(x: number, y: number): Point2D; +export class Point2D { + /** + * @param {number} x + * @param {number} y + */ + constructor(x: number, y: number); + /** + * @param {number} x + */ + set x(x: number); + get x(): number; + /** + * @param {number} y + */ + set y(y: number); + get y(): number; + __proto__: typeof Vec; +} +//// [referencer.d.ts] +export const origin: Point2D; +import { Point2D } from "./source"; diff --git a/tests/baselines/reference/jsDeclarationsFunctionLikeClasses2.symbols b/tests/baselines/reference/jsDeclarationsFunctionLikeClasses2(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/jsDeclarationsFunctionLikeClasses2.symbols rename to tests/baselines/reference/jsDeclarationsFunctionLikeClasses2(target=es2015).symbols diff --git a/tests/baselines/reference/jsDeclarationsFunctionLikeClasses2.types b/tests/baselines/reference/jsDeclarationsFunctionLikeClasses2(target=es2015).types similarity index 100% rename from tests/baselines/reference/jsDeclarationsFunctionLikeClasses2.types rename to tests/baselines/reference/jsDeclarationsFunctionLikeClasses2(target=es2015).types diff --git a/tests/baselines/reference/jsDeclarationsFunctionLikeClasses2.js b/tests/baselines/reference/jsDeclarationsFunctionLikeClasses2(target=es5).js similarity index 100% rename from tests/baselines/reference/jsDeclarationsFunctionLikeClasses2.js rename to tests/baselines/reference/jsDeclarationsFunctionLikeClasses2(target=es5).js diff --git a/tests/baselines/reference/jsDeclarationsFunctionLikeClasses2(target=es5).symbols b/tests/baselines/reference/jsDeclarationsFunctionLikeClasses2(target=es5).symbols new file mode 100644 index 0000000000000..dbf93d1ab7824 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsFunctionLikeClasses2(target=es5).symbols @@ -0,0 +1,202 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsFunctionLikeClasses2.ts] //// + +=== source.js === +/** + * @param {number} len + */ +export function Vec(len) { +>Vec : Symbol(Vec, Decl(source.js, 0, 0), Decl(source.js, 8, 1)) +>len : Symbol(len, Decl(source.js, 3, 20)) + + /** + * @type {number[]} + */ + this.storage = new Array(len); +>this.storage : Symbol(Vec.storage, Decl(source.js, 3, 26)) +>this : Symbol(Vec, Decl(source.js, 0, 0), Decl(source.js, 8, 1)) +>storage : Symbol(Vec.storage, Decl(source.js, 3, 26)) +>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>len : Symbol(len, Decl(source.js, 3, 20)) +} + +Vec.prototype = { +>Vec.prototype : Symbol(Vec.prototype, Decl(source.js, 8, 1)) +>Vec : Symbol(Vec, Decl(source.js, 0, 0), Decl(source.js, 8, 1)) +>prototype : Symbol(Vec.prototype, Decl(source.js, 8, 1)) + + /** + * @param {Vec} other + */ + dot(other) { +>dot : Symbol(dot, Decl(source.js, 10, 17)) +>other : Symbol(other, Decl(source.js, 14, 8)) + + if (other.storage.length !== this.storage.length) { +>other.storage.length : Symbol(Array.length, Decl(lib.es5.d.ts, --, --)) +>other.storage : Symbol(Vec.storage, Decl(source.js, 3, 26)) +>other : Symbol(other, Decl(source.js, 14, 8)) +>storage : Symbol(Vec.storage, Decl(source.js, 3, 26)) +>length : Symbol(Array.length, Decl(lib.es5.d.ts, --, --)) +>this.storage.length : Symbol(Array.length, Decl(lib.es5.d.ts, --, --)) +>this.storage : Symbol(Vec.storage, Decl(source.js, 3, 26)) +>this : Symbol(Vec, Decl(source.js, 0, 0), Decl(source.js, 8, 1)) +>storage : Symbol(Vec.storage, Decl(source.js, 3, 26)) +>length : Symbol(Array.length, Decl(lib.es5.d.ts, --, --)) + + throw new Error(`Dot product only applicable for vectors of equal length`); +>Error : Symbol(Error, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) + } + let sum = 0; +>sum : Symbol(sum, Decl(source.js, 18, 11)) + + for (let i = 0; i < this.storage.length; i++) { +>i : Symbol(i, Decl(source.js, 19, 16)) +>i : Symbol(i, Decl(source.js, 19, 16)) +>this.storage.length : Symbol(Array.length, Decl(lib.es5.d.ts, --, --)) +>this.storage : Symbol(Vec.storage, Decl(source.js, 3, 26)) +>this : Symbol(Vec, Decl(source.js, 0, 0), Decl(source.js, 8, 1)) +>storage : Symbol(Vec.storage, Decl(source.js, 3, 26)) +>length : Symbol(Array.length, Decl(lib.es5.d.ts, --, --)) +>i : Symbol(i, Decl(source.js, 19, 16)) + + sum += (this.storage[i] * other.storage[i]); +>sum : Symbol(sum, Decl(source.js, 18, 11)) +>this.storage : Symbol(Vec.storage, Decl(source.js, 3, 26)) +>this : Symbol(Vec, Decl(source.js, 0, 0), Decl(source.js, 8, 1)) +>storage : Symbol(Vec.storage, Decl(source.js, 3, 26)) +>i : Symbol(i, Decl(source.js, 19, 16)) +>other.storage : Symbol(Vec.storage, Decl(source.js, 3, 26)) +>other : Symbol(other, Decl(source.js, 14, 8)) +>storage : Symbol(Vec.storage, Decl(source.js, 3, 26)) +>i : Symbol(i, Decl(source.js, 19, 16)) + } + return sum; +>sum : Symbol(sum, Decl(source.js, 18, 11)) + + }, + magnitude() { +>magnitude : Symbol(magnitude, Decl(source.js, 23, 6)) + + let sum = 0; +>sum : Symbol(sum, Decl(source.js, 25, 11)) + + for (let i = 0; i < this.storage.length; i++) { +>i : Symbol(i, Decl(source.js, 26, 16)) +>i : Symbol(i, Decl(source.js, 26, 16)) +>this.storage.length : Symbol(Array.length, Decl(lib.es5.d.ts, --, --)) +>this.storage : Symbol(Vec.storage, Decl(source.js, 3, 26)) +>this : Symbol(Vec, Decl(source.js, 0, 0), Decl(source.js, 8, 1)) +>storage : Symbol(Vec.storage, Decl(source.js, 3, 26)) +>length : Symbol(Array.length, Decl(lib.es5.d.ts, --, --)) +>i : Symbol(i, Decl(source.js, 26, 16)) + + sum += (this.storage[i] ** 2); +>sum : Symbol(sum, Decl(source.js, 25, 11)) +>this.storage : Symbol(Vec.storage, Decl(source.js, 3, 26)) +>this : Symbol(Vec, Decl(source.js, 0, 0), Decl(source.js, 8, 1)) +>storage : Symbol(Vec.storage, Decl(source.js, 3, 26)) +>i : Symbol(i, Decl(source.js, 26, 16)) + } + return Math.sqrt(sum); +>Math.sqrt : Symbol(Math.sqrt, Decl(lib.es5.d.ts, --, --)) +>Math : Symbol(Math, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>sqrt : Symbol(Math.sqrt, Decl(lib.es5.d.ts, --, --)) +>sum : Symbol(sum, Decl(source.js, 25, 11)) + } +} + +/** + * @param {number} x + * @param {number} y + */ +export function Point2D(x, y) { +>Point2D : Symbol(Point2D, Decl(source.js, 31, 1), Decl(source.js, 44, 1)) +>x : Symbol(x, Decl(source.js, 37, 24)) +>y : Symbol(y, Decl(source.js, 37, 26)) + + if (!(this instanceof Point2D)) { +>this : Symbol(Point2D, Decl(source.js, 31, 1), Decl(source.js, 44, 1)) +>Point2D : Symbol(Point2D, Decl(source.js, 31, 1), Decl(source.js, 44, 1)) + + return new Point2D(x, y); +>Point2D : Symbol(Point2D, Decl(source.js, 31, 1), Decl(source.js, 44, 1)) +>x : Symbol(x, Decl(source.js, 37, 24)) +>y : Symbol(y, Decl(source.js, 37, 26)) + } + Vec.call(this, 2); +>Vec.call : Symbol(Function.call, Decl(lib.es5.d.ts, --, --)) +>Vec : Symbol(Vec, Decl(source.js, 0, 0), Decl(source.js, 8, 1)) +>call : Symbol(Function.call, Decl(lib.es5.d.ts, --, --)) +>this : Symbol(Point2D, Decl(source.js, 31, 1), Decl(source.js, 44, 1)) + + this.x = x; +>this.x : Symbol(Point2D.x, Decl(source.js, 41, 22), Decl(source.js, 47, 19), Decl(source.js, 50, 6)) +>this : Symbol(Point2D, Decl(source.js, 31, 1), Decl(source.js, 44, 1)) +>x : Symbol(Point2D.x, Decl(source.js, 41, 22), Decl(source.js, 47, 19), Decl(source.js, 50, 6)) +>x : Symbol(x, Decl(source.js, 37, 24)) + + this.y = y; +>this.y : Symbol(Point2D.y, Decl(source.js, 42, 15), Decl(source.js, 56, 6), Decl(source.js, 59, 6)) +>this : Symbol(Point2D, Decl(source.js, 31, 1), Decl(source.js, 44, 1)) +>y : Symbol(Point2D.y, Decl(source.js, 42, 15), Decl(source.js, 56, 6), Decl(source.js, 59, 6)) +>y : Symbol(y, Decl(source.js, 37, 26)) +} + +Point2D.prototype = { +>Point2D.prototype : Symbol(Point2D.prototype, Decl(source.js, 44, 1)) +>Point2D : Symbol(Point2D, Decl(source.js, 31, 1), Decl(source.js, 44, 1)) +>prototype : Symbol(Point2D.prototype, Decl(source.js, 44, 1)) + + __proto__: Vec, +>__proto__ : Symbol(__proto__, Decl(source.js, 46, 21)) +>Vec : Symbol(Vec, Decl(source.js, 0, 0), Decl(source.js, 8, 1)) + + get x() { +>x : Symbol(Point2D.x, Decl(source.js, 41, 22), Decl(source.js, 47, 19), Decl(source.js, 50, 6)) + + return this.storage[0]; +>this : Symbol(__object, Decl(source.js, 46, 19)) + + }, + /** + * @param {number} x + */ + set x(x) { +>x : Symbol(Point2D.x, Decl(source.js, 41, 22), Decl(source.js, 47, 19), Decl(source.js, 50, 6)) +>x : Symbol(x, Decl(source.js, 54, 10)) + + this.storage[0] = x; +>this : Symbol(__object, Decl(source.js, 46, 19)) +>x : Symbol(x, Decl(source.js, 54, 10)) + + }, + get y() { +>y : Symbol(Point2D.y, Decl(source.js, 42, 15), Decl(source.js, 56, 6), Decl(source.js, 59, 6)) + + return this.storage[1]; +>this : Symbol(__object, Decl(source.js, 46, 19)) + + }, + /** + * @param {number} y + */ + set y(y) { +>y : Symbol(Point2D.y, Decl(source.js, 42, 15), Decl(source.js, 56, 6), Decl(source.js, 59, 6)) +>y : Symbol(y, Decl(source.js, 63, 10)) + + this.storage[1] = y; +>this : Symbol(__object, Decl(source.js, 46, 19)) +>y : Symbol(y, Decl(source.js, 63, 10)) + } +}; + +=== referencer.js === +import {Point2D} from "./source"; +>Point2D : Symbol(Point2D, Decl(referencer.js, 0, 8)) + +export const origin = new Point2D(0, 0); +>origin : Symbol(origin, Decl(referencer.js, 2, 12)) +>Point2D : Symbol(Point2D, Decl(referencer.js, 0, 8)) + +// export const res = Point2D(2, 3).dot(origin); // TODO: when __proto__ works, validate this + diff --git a/tests/baselines/reference/jsDeclarationsFunctionLikeClasses2(target=es5).types b/tests/baselines/reference/jsDeclarationsFunctionLikeClasses2(target=es5).types new file mode 100644 index 0000000000000..983f02834dc46 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsFunctionLikeClasses2(target=es5).types @@ -0,0 +1,408 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsFunctionLikeClasses2.ts] //// + +=== source.js === +/** + * @param {number} len + */ +export function Vec(len) { +>Vec : typeof Vec +> : ^^^^^^^^^^ +>len : number +> : ^^^^^^ + + /** + * @type {number[]} + */ + this.storage = new Array(len); +>this.storage = new Array(len) : any[] +> : ^^^^^ +>this.storage : number[] +> : ^^^^^^^^ +>this : this +> : ^^^^ +>storage : number[] +> : ^^^^^^^^ +>new Array(len) : any[] +> : ^^^^^ +>Array : ArrayConstructor +> : ^^^^^^^^^^^^^^^^ +>len : number +> : ^^^^^^ +} + +Vec.prototype = { +>Vec.prototype = { /** * @param {Vec} other */ dot(other) { if (other.storage.length !== this.storage.length) { throw new Error(`Dot product only applicable for vectors of equal length`); } let sum = 0; for (let i = 0; i < this.storage.length; i++) { sum += (this.storage[i] * other.storage[i]); } return sum; }, magnitude() { let sum = 0; for (let i = 0; i < this.storage.length; i++) { sum += (this.storage[i] ** 2); } return Math.sqrt(sum); }} : { dot(other: Vec): number; magnitude(): number; } +> : ^^^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>Vec.prototype : { dot(other: Vec): number; magnitude(): number; } +> : ^^^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>Vec : typeof Vec +> : ^^^^^^^^^^ +>prototype : { dot(other: Vec): number; magnitude(): number; } +> : ^^^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ /** * @param {Vec} other */ dot(other) { if (other.storage.length !== this.storage.length) { throw new Error(`Dot product only applicable for vectors of equal length`); } let sum = 0; for (let i = 0; i < this.storage.length; i++) { sum += (this.storage[i] * other.storage[i]); } return sum; }, magnitude() { let sum = 0; for (let i = 0; i < this.storage.length; i++) { sum += (this.storage[i] ** 2); } return Math.sqrt(sum); }} : { dot(other: Vec): number; magnitude(): number; } +> : ^^^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + /** + * @param {Vec} other + */ + dot(other) { +>dot : (other: Vec) => number +> : ^ ^^ ^^^^^^^^^^^ +>other : Vec +> : ^^^ + + if (other.storage.length !== this.storage.length) { +>other.storage.length !== this.storage.length : boolean +> : ^^^^^^^ +>other.storage.length : number +> : ^^^^^^ +>other.storage : number[] +> : ^^^^^^^^ +>other : Vec +> : ^^^ +>storage : number[] +> : ^^^^^^^^ +>length : number +> : ^^^^^^ +>this.storage.length : number +> : ^^^^^^ +>this.storage : number[] +> : ^^^^^^^^ +>this : this +> : ^^^^ +>storage : number[] +> : ^^^^^^^^ +>length : number +> : ^^^^^^ + + throw new Error(`Dot product only applicable for vectors of equal length`); +>new Error(`Dot product only applicable for vectors of equal length`) : Error +> : ^^^^^ +>Error : ErrorConstructor +> : ^^^^^^^^^^^^^^^^ +>`Dot product only applicable for vectors of equal length` : "Dot product only applicable for vectors of equal length" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + } + let sum = 0; +>sum : number +> : ^^^^^^ +>0 : 0 +> : ^ + + for (let i = 0; i < this.storage.length; i++) { +>i : number +> : ^^^^^^ +>0 : 0 +> : ^ +>i < this.storage.length : boolean +> : ^^^^^^^ +>i : number +> : ^^^^^^ +>this.storage.length : number +> : ^^^^^^ +>this.storage : number[] +> : ^^^^^^^^ +>this : this +> : ^^^^ +>storage : number[] +> : ^^^^^^^^ +>length : number +> : ^^^^^^ +>i++ : number +> : ^^^^^^ +>i : number +> : ^^^^^^ + + sum += (this.storage[i] * other.storage[i]); +>sum += (this.storage[i] * other.storage[i]) : number +> : ^^^^^^ +>sum : number +> : ^^^^^^ +>(this.storage[i] * other.storage[i]) : number +> : ^^^^^^ +>this.storage[i] * other.storage[i] : number +> : ^^^^^^ +>this.storage[i] : number +> : ^^^^^^ +>this.storage : number[] +> : ^^^^^^^^ +>this : this +> : ^^^^ +>storage : number[] +> : ^^^^^^^^ +>i : number +> : ^^^^^^ +>other.storage[i] : number +> : ^^^^^^ +>other.storage : number[] +> : ^^^^^^^^ +>other : Vec +> : ^^^ +>storage : number[] +> : ^^^^^^^^ +>i : number +> : ^^^^^^ + } + return sum; +>sum : number +> : ^^^^^^ + + }, + magnitude() { +>magnitude : () => number +> : ^^^^^^^^^^^^ + + let sum = 0; +>sum : number +> : ^^^^^^ +>0 : 0 +> : ^ + + for (let i = 0; i < this.storage.length; i++) { +>i : number +> : ^^^^^^ +>0 : 0 +> : ^ +>i < this.storage.length : boolean +> : ^^^^^^^ +>i : number +> : ^^^^^^ +>this.storage.length : number +> : ^^^^^^ +>this.storage : number[] +> : ^^^^^^^^ +>this : this +> : ^^^^ +>storage : number[] +> : ^^^^^^^^ +>length : number +> : ^^^^^^ +>i++ : number +> : ^^^^^^ +>i : number +> : ^^^^^^ + + sum += (this.storage[i] ** 2); +>sum += (this.storage[i] ** 2) : number +> : ^^^^^^ +>sum : number +> : ^^^^^^ +>(this.storage[i] ** 2) : number +> : ^^^^^^ +>this.storage[i] ** 2 : number +> : ^^^^^^ +>this.storage[i] : number +> : ^^^^^^ +>this.storage : number[] +> : ^^^^^^^^ +>this : this +> : ^^^^ +>storage : number[] +> : ^^^^^^^^ +>i : number +> : ^^^^^^ +>2 : 2 +> : ^ + } + return Math.sqrt(sum); +>Math.sqrt(sum) : number +> : ^^^^^^ +>Math.sqrt : (x: number) => number +> : ^ ^^ ^^^^^ +>Math : Math +> : ^^^^ +>sqrt : (x: number) => number +> : ^ ^^ ^^^^^ +>sum : number +> : ^^^^^^ + } +} + +/** + * @param {number} x + * @param {number} y + */ +export function Point2D(x, y) { +>Point2D : typeof Point2D +> : ^^^^^^^^^^^^^^ +>x : number +> : ^^^^^^ +>y : number +> : ^^^^^^ + + if (!(this instanceof Point2D)) { +>!(this instanceof Point2D) : boolean +> : ^^^^^^^ +>(this instanceof Point2D) : boolean +> : ^^^^^^^ +>this instanceof Point2D : boolean +> : ^^^^^^^ +>this : this +> : ^^^^ +>Point2D : typeof Point2D +> : ^^^^^^^^^^^^^^ + + return new Point2D(x, y); +>new Point2D(x, y) : Point2D +> : ^^^^^^^ +>Point2D : typeof Point2D +> : ^^^^^^^^^^^^^^ +>x : number +> : ^^^^^^ +>y : number +> : ^^^^^^ + } + Vec.call(this, 2); +>Vec.call(this, 2) : any +>Vec.call : (this: Function, thisArg: any, ...argArray: any[]) => any +> : ^ ^^ ^^ ^^ ^^^^^ ^^ ^^^^^ +>Vec : typeof Vec +> : ^^^^^^^^^^ +>call : (this: Function, thisArg: any, ...argArray: any[]) => any +> : ^ ^^ ^^ ^^ ^^^^^ ^^ ^^^^^ +>this : this +> : ^^^^ +>2 : 2 +> : ^ + + this.x = x; +>this.x = x : number +> : ^^^^^^ +>this.x : number +> : ^^^^^^ +>this : this +> : ^^^^ +>x : number +> : ^^^^^^ +>x : number +> : ^^^^^^ + + this.y = y; +>this.y = y : number +> : ^^^^^^ +>this.y : number +> : ^^^^^^ +>this : this +> : ^^^^ +>y : number +> : ^^^^^^ +>y : number +> : ^^^^^^ +} + +Point2D.prototype = { +>Point2D.prototype = { __proto__: Vec, get x() { return this.storage[0]; }, /** * @param {number} x */ set x(x) { this.storage[0] = x; }, get y() { return this.storage[1]; }, /** * @param {number} y */ set y(y) { this.storage[1] = y; }} : { __proto__: typeof Vec; get x(): number; set x(x: number); get y(): number; set y(y: number); } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^ ^^ ^^^^^^^^^^^^ ^^^^^^^^ ^^ ^^^^ +>Point2D.prototype : { __proto__: typeof Vec; get x(): number; set x(x: number); get y(): number; set y(y: number); } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^ ^^ ^^^^^^^^^^^^ ^^^^^^^^ ^^ ^^^^ +>Point2D : typeof Point2D +> : ^^^^^^^^^^^^^^ +>prototype : { __proto__: typeof Vec; get x(): number; set x(x: number); get y(): number; set y(y: number); } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^ ^^ ^^^^^^^^^^^^ ^^^^^^^^ ^^ ^^^^ +>{ __proto__: Vec, get x() { return this.storage[0]; }, /** * @param {number} x */ set x(x) { this.storage[0] = x; }, get y() { return this.storage[1]; }, /** * @param {number} y */ set y(y) { this.storage[1] = y; }} : { __proto__: typeof Vec; get x(): number; set x(x: number); get y(): number; set y(y: number); } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^ ^^ ^^^^^^^^^^^^ ^^^^^^^^ ^^ ^^^^ + + __proto__: Vec, +>__proto__ : typeof Vec +> : ^^^^^^^^^^ +>Vec : typeof Vec +> : ^^^^^^^^^^ + + get x() { +>x : number +> : ^^^^^^ + + return this.storage[0]; +>this.storage[0] : any +>this.storage : any +>this : { __proto__: typeof Vec; get x(): number; set x(x: number); get y(): number; set y(y: number); } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^ ^^ ^^^^^^^^^^^^ ^^^^^^^^ ^^ ^^^^ +>storage : any +> : ^^^ +>0 : 0 +> : ^ + + }, + /** + * @param {number} x + */ + set x(x) { +>x : number +> : ^^^^^^ +>x : number +> : ^^^^^^ + + this.storage[0] = x; +>this.storage[0] = x : number +> : ^^^^^^ +>this.storage[0] : any +>this.storage : any +>this : { __proto__: typeof Vec; get x(): number; set x(x: number); get y(): number; set y(y: number); } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^ ^^ ^^^^^^^^^^^^ ^^^^^^^^ ^^ ^^^^ +>storage : any +> : ^^^ +>0 : 0 +> : ^ +>x : number +> : ^^^^^^ + + }, + get y() { +>y : number +> : ^^^^^^ + + return this.storage[1]; +>this.storage[1] : any +>this.storage : any +>this : { __proto__: typeof Vec; get x(): number; set x(x: number); get y(): number; set y(y: number); } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^ ^^ ^^^^^^^^^^^^ ^^^^^^^^ ^^ ^^^^ +>storage : any +> : ^^^ +>1 : 1 +> : ^ + + }, + /** + * @param {number} y + */ + set y(y) { +>y : number +> : ^^^^^^ +>y : number +> : ^^^^^^ + + this.storage[1] = y; +>this.storage[1] = y : number +> : ^^^^^^ +>this.storage[1] : any +>this.storage : any +>this : { __proto__: typeof Vec; get x(): number; set x(x: number); get y(): number; set y(y: number); } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^ ^^ ^^^^^^^^^^^^ ^^^^^^^^ ^^ ^^^^ +>storage : any +> : ^^^ +>1 : 1 +> : ^ +>y : number +> : ^^^^^^ + } +}; + +=== referencer.js === +import {Point2D} from "./source"; +>Point2D : typeof Point2D +> : ^^^^^^^^^^^^^^ + +export const origin = new Point2D(0, 0); +>origin : Point2D +> : ^^^^^^^ +>new Point2D(0, 0) : Point2D +> : ^^^^^^^ +>Point2D : typeof Point2D +> : ^^^^^^^^^^^^^^ +>0 : 0 +> : ^ +>0 : 0 +> : ^ + +// export const res = Point2D(2, 3).dot(origin); // TODO: when __proto__ works, validate this + diff --git a/tests/baselines/reference/jsDeclarationsFunctionPrototypeStatic.js b/tests/baselines/reference/jsDeclarationsFunctionPrototypeStatic(target=es2015).js similarity index 100% rename from tests/baselines/reference/jsDeclarationsFunctionPrototypeStatic.js rename to tests/baselines/reference/jsDeclarationsFunctionPrototypeStatic(target=es2015).js diff --git a/tests/baselines/reference/jsDeclarationsFunctionPrototypeStatic.symbols b/tests/baselines/reference/jsDeclarationsFunctionPrototypeStatic(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/jsDeclarationsFunctionPrototypeStatic.symbols rename to tests/baselines/reference/jsDeclarationsFunctionPrototypeStatic(target=es2015).symbols diff --git a/tests/baselines/reference/jsDeclarationsFunctionPrototypeStatic.types b/tests/baselines/reference/jsDeclarationsFunctionPrototypeStatic(target=es2015).types similarity index 100% rename from tests/baselines/reference/jsDeclarationsFunctionPrototypeStatic.types rename to tests/baselines/reference/jsDeclarationsFunctionPrototypeStatic(target=es2015).types diff --git a/tests/baselines/reference/jsDeclarationsFunctionPrototypeStatic(target=es5).js b/tests/baselines/reference/jsDeclarationsFunctionPrototypeStatic(target=es5).js new file mode 100644 index 0000000000000..d3ea7c808beb6 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsFunctionPrototypeStatic(target=es5).js @@ -0,0 +1,46 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsFunctionPrototypeStatic.ts] //// + +//// [source.js] +module.exports = MyClass; + +function MyClass() {} +MyClass.staticMethod = function() {} +MyClass.prototype.method = function() {} +MyClass.staticProperty = 123; + +/** + * Callback to be invoked when test execution is complete. + * + * @callback DoneCB + * @param {number} failures - Number of failures that occurred. + */ + +//// [source.js] +module.exports = MyClass; +function MyClass() { } +MyClass.staticMethod = function () { }; +MyClass.prototype.method = function () { }; +MyClass.staticProperty = 123; +/** + * Callback to be invoked when test execution is complete. + * + * @callback DoneCB + * @param {number} failures - Number of failures that occurred. + */ + + +//// [source.d.ts] +export = MyClass; +declare function MyClass(): void; +declare class MyClass { + method(): void; +} +declare namespace MyClass { + export { staticMethod, staticProperty, DoneCB }; +} +declare function staticMethod(): void; +declare var staticProperty: number; +/** + * Callback to be invoked when test execution is complete. + */ +type DoneCB = (failures: number) => any; diff --git a/tests/baselines/reference/jsDeclarationsFunctionPrototypeStatic(target=es5).symbols b/tests/baselines/reference/jsDeclarationsFunctionPrototypeStatic(target=es5).symbols new file mode 100644 index 0000000000000..98032c63d4f01 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsFunctionPrototypeStatic(target=es5).symbols @@ -0,0 +1,34 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsFunctionPrototypeStatic.ts] //// + +=== source.js === +module.exports = MyClass; +>module.exports : Symbol(module.exports, Decl(source.js, 0, 0)) +>module : Symbol(export=, Decl(source.js, 0, 0)) +>exports : Symbol(export=, Decl(source.js, 0, 0)) +>MyClass : Symbol(MyClass, Decl(source.js, 0, 25), Decl(source.js, 2, 21), Decl(source.js, 4, 40)) + +function MyClass() {} +>MyClass : Symbol(MyClass, Decl(source.js, 0, 25), Decl(source.js, 2, 21), Decl(source.js, 4, 40)) + +MyClass.staticMethod = function() {} +>MyClass.staticMethod : Symbol(MyClass.staticMethod, Decl(source.js, 2, 21)) +>MyClass : Symbol(MyClass, Decl(source.js, 0, 25), Decl(source.js, 2, 21), Decl(source.js, 4, 40)) +>staticMethod : Symbol(MyClass.staticMethod, Decl(source.js, 2, 21)) + +MyClass.prototype.method = function() {} +>MyClass.prototype : Symbol(MyClass.method, Decl(source.js, 3, 36)) +>MyClass : Symbol(MyClass, Decl(source.js, 0, 25), Decl(source.js, 2, 21), Decl(source.js, 4, 40)) +>prototype : Symbol(Function.prototype, Decl(lib.es5.d.ts, --, --)) +>method : Symbol(MyClass.method, Decl(source.js, 3, 36)) + +MyClass.staticProperty = 123; +>MyClass.staticProperty : Symbol(MyClass.staticProperty, Decl(source.js, 4, 40)) +>MyClass : Symbol(MyClass, Decl(source.js, 0, 25), Decl(source.js, 2, 21), Decl(source.js, 4, 40)) +>staticProperty : Symbol(MyClass.staticProperty, Decl(source.js, 4, 40)) + +/** + * Callback to be invoked when test execution is complete. + * + * @callback DoneCB + * @param {number} failures - Number of failures that occurred. + */ diff --git a/tests/baselines/reference/jsDeclarationsFunctionPrototypeStatic(target=es5).types b/tests/baselines/reference/jsDeclarationsFunctionPrototypeStatic(target=es5).types new file mode 100644 index 0000000000000..fea3d97e638a1 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsFunctionPrototypeStatic(target=es5).types @@ -0,0 +1,64 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsFunctionPrototypeStatic.ts] //// + +=== source.js === +module.exports = MyClass; +>module.exports = MyClass : typeof MyClass +> : ^^^^^^^^^^^^^^ +>module.exports : typeof MyClass +> : ^^^^^^^^^^^^^^ +>module : { exports: typeof MyClass; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exports : typeof MyClass +> : ^^^^^^^^^^^^^^ +>MyClass : typeof MyClass +> : ^^^^^^^^^^^^^^ + +function MyClass() {} +>MyClass : typeof MyClass +> : ^^^^^^^^^^^^^^ + +MyClass.staticMethod = function() {} +>MyClass.staticMethod = function() {} : () => void +> : ^^^^^^^^^^ +>MyClass.staticMethod : () => void +> : ^^^^^^^^^^ +>MyClass : typeof MyClass +> : ^^^^^^^^^^^^^^ +>staticMethod : () => void +> : ^^^^^^^^^^ +>function() {} : () => void +> : ^^^^^^^^^^ + +MyClass.prototype.method = function() {} +>MyClass.prototype.method = function() {} : () => void +> : ^^^^^^^^^^ +>MyClass.prototype.method : any +>MyClass.prototype : any +> : ^^^ +>MyClass : typeof MyClass +> : ^^^^^^^^^^^^^^ +>prototype : any +> : ^^^ +>method : any +> : ^^^ +>function() {} : () => void +> : ^^^^^^^^^^ + +MyClass.staticProperty = 123; +>MyClass.staticProperty = 123 : 123 +> : ^^^ +>MyClass.staticProperty : number +> : ^^^^^^ +>MyClass : typeof MyClass +> : ^^^^^^^^^^^^^^ +>staticProperty : number +> : ^^^^^^ +>123 : 123 +> : ^^^ + +/** + * Callback to be invoked when test execution is complete. + * + * @callback DoneCB + * @param {number} failures - Number of failures that occurred. + */ diff --git a/tests/baselines/reference/jsDeclarationsInterfaces.errors.txt b/tests/baselines/reference/jsDeclarationsInterfaces(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/jsDeclarationsInterfaces.errors.txt rename to tests/baselines/reference/jsDeclarationsInterfaces(target=es2015).errors.txt diff --git a/tests/baselines/reference/jsDeclarationsInterfaces(target=es2015).js b/tests/baselines/reference/jsDeclarationsInterfaces(target=es2015).js new file mode 100644 index 0000000000000..0ca1dfedccc61 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsInterfaces(target=es2015).js @@ -0,0 +1,236 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsInterfaces.ts] //// + +//// [index.js] +// Pretty much all of this should be an error, (since interfaces are forbidden in js), +// but we should be able to synthesize declarations from the symbols regardless + +export interface A {} + +export interface B { + cat: string; +} + +export interface C { + field: T & U; + optionalField?: T; + readonly readonlyField: T & U; + readonly readonlyOptionalField?: U; + (): number; + (x: T): U; + (x: Q): T & Q; + + new (): string; + new (x: T): U; + new (x: Q): T & Q; + + method(): number; + method(a: T & Q): Q & number; + method(a?: number): number; + method(...args: any[]): number; + + optMethod?(): number; +} + +interface G {} + +export { G }; + +interface HH {} + +export { HH as H }; + +export interface I {} +export { I as II }; + +export { J as JJ }; +export interface J {} + +export interface K extends I,J { + x: string; +} + +export interface L extends K { + y: string; +} + +export interface M { + field: T; +} + +export interface N extends M { + other: U; +} + +export interface O { + [idx: string]: string; +} + +export interface P extends O {} + +export interface Q extends O { + [idx: string]: "ok"; +} + +export interface R extends O { + [idx: number]: "ok"; +} + +export interface S extends O { + [idx: string]: "ok"; + [idx: number]: never; +} + +export interface T { + [idx: number]: string; +} + +export interface U extends T {} + + +export interface V extends T { + [idx: string]: string; +} + +export interface W extends T { + [idx: number]: "ok"; +} + +export interface X extends T { + [idx: string]: string; + [idx: number]: "ok"; +} + +export interface Y { + [idx: string]: {x: number}; + [idx: number]: {x: number, y: number}; +} + +export interface Z extends Y {} + +export interface AA extends Y { + [idx: string]: {x: number, y: number}; +} + +export interface BB extends Y { + [idx: number]: {x: 0, y: 0}; +} + +export interface CC extends Y { + [idx: string]: {x: number, y: number}; + [idx: number]: {x: 0, y: 0}; +} + + +//// [index.js] +// Pretty much all of this should be an error, (since interfaces are forbidden in js), +// but we should be able to synthesize declarations from the symbols regardless +export {}; + + +//// [index.d.ts] +export interface A { +} +export interface B { + cat: string; +} +export interface C { + new (): string; + new (x: T): U; + new (x: Q): T & Q; + (): number; + (x: T): U; + (x: Q): T & Q; + field: T & U; + optionalField?: T; + readonly readonlyField: T & U; + readonly readonlyOptionalField?: U; + method(): number; + method(a: T & Q): Q & number; + method(a?: number): number; + method(...args: any[]): number; + optMethod?(): number; +} +export interface I { +} +export interface J { +} +export interface K extends I, J { + x: string; +} +export interface L extends K { + y: string; +} +export interface M { + field: T; +} +export interface N extends M { + other: U; +} +export interface O { + [idx: string]: string; +} +export interface P extends O { +} +export interface Q extends O { + [idx: string]: "ok"; +} +export interface R extends O { + [idx: number]: "ok"; +} +export interface S extends O { + [idx: string]: "ok"; + [idx: number]: never; +} +export interface T { + [idx: number]: string; +} +export interface U extends T { +} +export interface V extends T { + [idx: string]: string; +} +export interface W extends T { + [idx: number]: "ok"; +} +export interface X extends T { + [idx: string]: string; + [idx: number]: "ok"; +} +export interface Y { + [idx: string]: { + x: number; + }; + [idx: number]: { + x: number; + y: number; + }; +} +export interface Z extends Y { +} +export interface AA extends Y { + [idx: string]: { + x: number; + y: number; + }; +} +export interface BB extends Y { + [idx: number]: { + x: 0; + y: 0; + }; +} +export interface CC extends Y { + [idx: string]: { + x: number; + y: number; + }; + [idx: number]: { + x: 0; + y: 0; + }; +} +export interface G { +} +interface HH { +} +export { HH as H, I as II, J as JJ }; diff --git a/tests/baselines/reference/jsDeclarationsInterfaces.symbols b/tests/baselines/reference/jsDeclarationsInterfaces(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/jsDeclarationsInterfaces.symbols rename to tests/baselines/reference/jsDeclarationsInterfaces(target=es2015).symbols diff --git a/tests/baselines/reference/jsDeclarationsInterfaces.types b/tests/baselines/reference/jsDeclarationsInterfaces(target=es2015).types similarity index 100% rename from tests/baselines/reference/jsDeclarationsInterfaces.types rename to tests/baselines/reference/jsDeclarationsInterfaces(target=es2015).types diff --git a/tests/baselines/reference/jsDeclarationsInterfaces(target=es5).errors.txt b/tests/baselines/reference/jsDeclarationsInterfaces(target=es5).errors.txt new file mode 100644 index 0000000000000..d7892e33958e3 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsInterfaces(target=es5).errors.txt @@ -0,0 +1,212 @@ +index.js(4,18): error TS8006: 'interface' declarations can only be used in TypeScript files. +index.js(6,18): error TS8006: 'interface' declarations can only be used in TypeScript files. +index.js(10,18): error TS8006: 'interface' declarations can only be used in TypeScript files. +index.js(31,11): error TS8006: 'interface' declarations can only be used in TypeScript files. +index.js(33,10): error TS18043: Types cannot appear in export declarations in JavaScript files. +index.js(35,11): error TS8006: 'interface' declarations can only be used in TypeScript files. +index.js(37,10): error TS18043: Types cannot appear in export declarations in JavaScript files. +index.js(39,18): error TS8006: 'interface' declarations can only be used in TypeScript files. +index.js(40,10): error TS18043: Types cannot appear in export declarations in JavaScript files. +index.js(42,10): error TS18043: Types cannot appear in export declarations in JavaScript files. +index.js(43,18): error TS8006: 'interface' declarations can only be used in TypeScript files. +index.js(45,18): error TS8006: 'interface' declarations can only be used in TypeScript files. +index.js(49,18): error TS8006: 'interface' declarations can only be used in TypeScript files. +index.js(53,18): error TS8006: 'interface' declarations can only be used in TypeScript files. +index.js(57,18): error TS8006: 'interface' declarations can only be used in TypeScript files. +index.js(61,18): error TS8006: 'interface' declarations can only be used in TypeScript files. +index.js(65,18): error TS8006: 'interface' declarations can only be used in TypeScript files. +index.js(67,18): error TS8006: 'interface' declarations can only be used in TypeScript files. +index.js(71,18): error TS8006: 'interface' declarations can only be used in TypeScript files. +index.js(75,18): error TS8006: 'interface' declarations can only be used in TypeScript files. +index.js(80,18): error TS8006: 'interface' declarations can only be used in TypeScript files. +index.js(84,18): error TS8006: 'interface' declarations can only be used in TypeScript files. +index.js(87,18): error TS8006: 'interface' declarations can only be used in TypeScript files. +index.js(91,18): error TS8006: 'interface' declarations can only be used in TypeScript files. +index.js(95,18): error TS8006: 'interface' declarations can only be used in TypeScript files. +index.js(100,18): error TS8006: 'interface' declarations can only be used in TypeScript files. +index.js(105,18): error TS8006: 'interface' declarations can only be used in TypeScript files. +index.js(107,18): error TS8006: 'interface' declarations can only be used in TypeScript files. +index.js(111,18): error TS8006: 'interface' declarations can only be used in TypeScript files. +index.js(115,18): error TS8006: 'interface' declarations can only be used in TypeScript files. + + +==== index.js (30 errors) ==== + // Pretty much all of this should be an error, (since interfaces are forbidden in js), + // but we should be able to synthesize declarations from the symbols regardless + + export interface A {} + ~ +!!! error TS8006: 'interface' declarations can only be used in TypeScript files. + + export interface B { + ~ +!!! error TS8006: 'interface' declarations can only be used in TypeScript files. + cat: string; + } + + export interface C { + ~ +!!! error TS8006: 'interface' declarations can only be used in TypeScript files. + field: T & U; + optionalField?: T; + readonly readonlyField: T & U; + readonly readonlyOptionalField?: U; + (): number; + (x: T): U; + (x: Q): T & Q; + + new (): string; + new (x: T): U; + new (x: Q): T & Q; + + method(): number; + method(a: T & Q): Q & number; + method(a?: number): number; + method(...args: any[]): number; + + optMethod?(): number; + } + + interface G {} + ~ +!!! error TS8006: 'interface' declarations can only be used in TypeScript files. + + export { G }; + ~ +!!! error TS18043: Types cannot appear in export declarations in JavaScript files. + + interface HH {} + ~~ +!!! error TS8006: 'interface' declarations can only be used in TypeScript files. + + export { HH as H }; + ~~ +!!! error TS18043: Types cannot appear in export declarations in JavaScript files. + + export interface I {} + ~ +!!! error TS8006: 'interface' declarations can only be used in TypeScript files. + export { I as II }; + ~ +!!! error TS18043: Types cannot appear in export declarations in JavaScript files. + + export { J as JJ }; + ~ +!!! error TS18043: Types cannot appear in export declarations in JavaScript files. + export interface J {} + ~ +!!! error TS8006: 'interface' declarations can only be used in TypeScript files. + + export interface K extends I,J { + ~ +!!! error TS8006: 'interface' declarations can only be used in TypeScript files. + x: string; + } + + export interface L extends K { + ~ +!!! error TS8006: 'interface' declarations can only be used in TypeScript files. + y: string; + } + + export interface M { + ~ +!!! error TS8006: 'interface' declarations can only be used in TypeScript files. + field: T; + } + + export interface N extends M { + ~ +!!! error TS8006: 'interface' declarations can only be used in TypeScript files. + other: U; + } + + export interface O { + ~ +!!! error TS8006: 'interface' declarations can only be used in TypeScript files. + [idx: string]: string; + } + + export interface P extends O {} + ~ +!!! error TS8006: 'interface' declarations can only be used in TypeScript files. + + export interface Q extends O { + ~ +!!! error TS8006: 'interface' declarations can only be used in TypeScript files. + [idx: string]: "ok"; + } + + export interface R extends O { + ~ +!!! error TS8006: 'interface' declarations can only be used in TypeScript files. + [idx: number]: "ok"; + } + + export interface S extends O { + ~ +!!! error TS8006: 'interface' declarations can only be used in TypeScript files. + [idx: string]: "ok"; + [idx: number]: never; + } + + export interface T { + ~ +!!! error TS8006: 'interface' declarations can only be used in TypeScript files. + [idx: number]: string; + } + + export interface U extends T {} + ~ +!!! error TS8006: 'interface' declarations can only be used in TypeScript files. + + + export interface V extends T { + ~ +!!! error TS8006: 'interface' declarations can only be used in TypeScript files. + [idx: string]: string; + } + + export interface W extends T { + ~ +!!! error TS8006: 'interface' declarations can only be used in TypeScript files. + [idx: number]: "ok"; + } + + export interface X extends T { + ~ +!!! error TS8006: 'interface' declarations can only be used in TypeScript files. + [idx: string]: string; + [idx: number]: "ok"; + } + + export interface Y { + ~ +!!! error TS8006: 'interface' declarations can only be used in TypeScript files. + [idx: string]: {x: number}; + [idx: number]: {x: number, y: number}; + } + + export interface Z extends Y {} + ~ +!!! error TS8006: 'interface' declarations can only be used in TypeScript files. + + export interface AA extends Y { + ~~ +!!! error TS8006: 'interface' declarations can only be used in TypeScript files. + [idx: string]: {x: number, y: number}; + } + + export interface BB extends Y { + ~~ +!!! error TS8006: 'interface' declarations can only be used in TypeScript files. + [idx: number]: {x: 0, y: 0}; + } + + export interface CC extends Y { + ~~ +!!! error TS8006: 'interface' declarations can only be used in TypeScript files. + [idx: string]: {x: number, y: number}; + [idx: number]: {x: 0, y: 0}; + } + \ No newline at end of file diff --git a/tests/baselines/reference/jsDeclarationsInterfaces.js b/tests/baselines/reference/jsDeclarationsInterfaces(target=es5).js similarity index 100% rename from tests/baselines/reference/jsDeclarationsInterfaces.js rename to tests/baselines/reference/jsDeclarationsInterfaces(target=es5).js diff --git a/tests/baselines/reference/jsDeclarationsInterfaces(target=es5).symbols b/tests/baselines/reference/jsDeclarationsInterfaces(target=es5).symbols new file mode 100644 index 0000000000000..b3bcb57ae55ed --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsInterfaces(target=es5).symbols @@ -0,0 +1,282 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsInterfaces.ts] //// + +=== index.js === +// Pretty much all of this should be an error, (since interfaces are forbidden in js), +// but we should be able to synthesize declarations from the symbols regardless + +export interface A {} +>A : Symbol(A, Decl(index.js, 0, 0)) + +export interface B { +>B : Symbol(B, Decl(index.js, 3, 21)) + + cat: string; +>cat : Symbol(B.cat, Decl(index.js, 5, 20)) +} + +export interface C { +>C : Symbol(C, Decl(index.js, 7, 1)) +>T : Symbol(T, Decl(index.js, 9, 19)) +>U : Symbol(U, Decl(index.js, 9, 21)) + + field: T & U; +>field : Symbol(C.field, Decl(index.js, 9, 26)) +>T : Symbol(T, Decl(index.js, 9, 19)) +>U : Symbol(U, Decl(index.js, 9, 21)) + + optionalField?: T; +>optionalField : Symbol(C.optionalField, Decl(index.js, 10, 17)) +>T : Symbol(T, Decl(index.js, 9, 19)) + + readonly readonlyField: T & U; +>readonlyField : Symbol(C.readonlyField, Decl(index.js, 11, 22)) +>T : Symbol(T, Decl(index.js, 9, 19)) +>U : Symbol(U, Decl(index.js, 9, 21)) + + readonly readonlyOptionalField?: U; +>readonlyOptionalField : Symbol(C.readonlyOptionalField, Decl(index.js, 12, 34)) +>U : Symbol(U, Decl(index.js, 9, 21)) + + (): number; + (x: T): U; +>x : Symbol(x, Decl(index.js, 15, 5)) +>T : Symbol(T, Decl(index.js, 9, 19)) +>U : Symbol(U, Decl(index.js, 9, 21)) + + (x: Q): T & Q; +>Q : Symbol(Q, Decl(index.js, 16, 5)) +>x : Symbol(x, Decl(index.js, 16, 8)) +>Q : Symbol(Q, Decl(index.js, 16, 5)) +>T : Symbol(T, Decl(index.js, 9, 19)) +>Q : Symbol(Q, Decl(index.js, 16, 5)) + + new (): string; + new (x: T): U; +>x : Symbol(x, Decl(index.js, 19, 9)) +>T : Symbol(T, Decl(index.js, 9, 19)) +>U : Symbol(U, Decl(index.js, 9, 21)) + + new (x: Q): T & Q; +>Q : Symbol(Q, Decl(index.js, 20, 9)) +>x : Symbol(x, Decl(index.js, 20, 12)) +>Q : Symbol(Q, Decl(index.js, 20, 9)) +>T : Symbol(T, Decl(index.js, 9, 19)) +>Q : Symbol(Q, Decl(index.js, 20, 9)) + + method(): number; +>method : Symbol(C.method, Decl(index.js, 20, 25), Decl(index.js, 22, 33), Decl(index.js, 23, 36), Decl(index.js, 24, 31)) +>Q : Symbol(Q, Decl(index.js, 22, 11)) + + method(a: T & Q): Q & number; +>method : Symbol(C.method, Decl(index.js, 20, 25), Decl(index.js, 22, 33), Decl(index.js, 23, 36), Decl(index.js, 24, 31)) +>Q : Symbol(Q, Decl(index.js, 23, 11)) +>a : Symbol(a, Decl(index.js, 23, 14)) +>T : Symbol(T, Decl(index.js, 9, 19)) +>Q : Symbol(Q, Decl(index.js, 23, 11)) +>Q : Symbol(Q, Decl(index.js, 23, 11)) + + method(a?: number): number; +>method : Symbol(C.method, Decl(index.js, 20, 25), Decl(index.js, 22, 33), Decl(index.js, 23, 36), Decl(index.js, 24, 31)) +>a : Symbol(a, Decl(index.js, 24, 11)) + + method(...args: any[]): number; +>method : Symbol(C.method, Decl(index.js, 20, 25), Decl(index.js, 22, 33), Decl(index.js, 23, 36), Decl(index.js, 24, 31)) +>args : Symbol(args, Decl(index.js, 25, 11)) + + optMethod?(): number; +>optMethod : Symbol(C.optMethod, Decl(index.js, 25, 35)) +} + +interface G {} +>G : Symbol(G, Decl(index.js, 28, 1)) + +export { G }; +>G : Symbol(G, Decl(index.js, 32, 8)) + +interface HH {} +>HH : Symbol(HH, Decl(index.js, 32, 13)) + +export { HH as H }; +>HH : Symbol(HH, Decl(index.js, 32, 13)) +>H : Symbol(H, Decl(index.js, 36, 8)) + +export interface I {} +>I : Symbol(I, Decl(index.js, 36, 19)) + +export { I as II }; +>I : Symbol(I, Decl(index.js, 36, 19)) +>II : Symbol(II, Decl(index.js, 39, 8)) + +export { J as JJ }; +>J : Symbol(J, Decl(index.js, 41, 19)) +>JJ : Symbol(JJ, Decl(index.js, 41, 8)) + +export interface J {} +>J : Symbol(J, Decl(index.js, 41, 19)) + +export interface K extends I,J { +>K : Symbol(K, Decl(index.js, 42, 21)) +>I : Symbol(I, Decl(index.js, 36, 19)) +>J : Symbol(J, Decl(index.js, 41, 19)) + + x: string; +>x : Symbol(K.x, Decl(index.js, 44, 32)) +} + +export interface L extends K { +>L : Symbol(L, Decl(index.js, 46, 1)) +>K : Symbol(K, Decl(index.js, 42, 21)) + + y: string; +>y : Symbol(L.y, Decl(index.js, 48, 30)) +} + +export interface M { +>M : Symbol(M, Decl(index.js, 50, 1)) +>T : Symbol(T, Decl(index.js, 52, 19)) + + field: T; +>field : Symbol(M.field, Decl(index.js, 52, 23)) +>T : Symbol(T, Decl(index.js, 52, 19)) +} + +export interface N extends M { +>N : Symbol(N, Decl(index.js, 54, 1)) +>U : Symbol(U, Decl(index.js, 56, 19)) +>M : Symbol(M, Decl(index.js, 50, 1)) +>U : Symbol(U, Decl(index.js, 56, 19)) + + other: U; +>other : Symbol(N.other, Decl(index.js, 56, 36)) +>U : Symbol(U, Decl(index.js, 56, 19)) +} + +export interface O { +>O : Symbol(O, Decl(index.js, 58, 1)) + + [idx: string]: string; +>idx : Symbol(idx, Decl(index.js, 61, 5)) +} + +export interface P extends O {} +>P : Symbol(P, Decl(index.js, 62, 1)) +>O : Symbol(O, Decl(index.js, 58, 1)) + +export interface Q extends O { +>Q : Symbol(Q, Decl(index.js, 64, 31)) +>O : Symbol(O, Decl(index.js, 58, 1)) + + [idx: string]: "ok"; +>idx : Symbol(idx, Decl(index.js, 67, 5)) +} + +export interface R extends O { +>R : Symbol(R, Decl(index.js, 68, 1)) +>O : Symbol(O, Decl(index.js, 58, 1)) + + [idx: number]: "ok"; +>idx : Symbol(idx, Decl(index.js, 71, 5)) +} + +export interface S extends O { +>S : Symbol(S, Decl(index.js, 72, 1)) +>O : Symbol(O, Decl(index.js, 58, 1)) + + [idx: string]: "ok"; +>idx : Symbol(idx, Decl(index.js, 75, 5)) + + [idx: number]: never; +>idx : Symbol(idx, Decl(index.js, 76, 5)) +} + +export interface T { +>T : Symbol(T, Decl(index.js, 77, 1)) + + [idx: number]: string; +>idx : Symbol(idx, Decl(index.js, 80, 5)) +} + +export interface U extends T {} +>U : Symbol(U, Decl(index.js, 81, 1)) +>T : Symbol(T, Decl(index.js, 77, 1)) + + +export interface V extends T { +>V : Symbol(V, Decl(index.js, 83, 31)) +>T : Symbol(T, Decl(index.js, 77, 1)) + + [idx: string]: string; +>idx : Symbol(idx, Decl(index.js, 87, 5)) +} + +export interface W extends T { +>W : Symbol(W, Decl(index.js, 88, 1)) +>T : Symbol(T, Decl(index.js, 77, 1)) + + [idx: number]: "ok"; +>idx : Symbol(idx, Decl(index.js, 91, 5)) +} + +export interface X extends T { +>X : Symbol(X, Decl(index.js, 92, 1)) +>T : Symbol(T, Decl(index.js, 77, 1)) + + [idx: string]: string; +>idx : Symbol(idx, Decl(index.js, 95, 5)) + + [idx: number]: "ok"; +>idx : Symbol(idx, Decl(index.js, 96, 5)) +} + +export interface Y { +>Y : Symbol(Y, Decl(index.js, 97, 1)) + + [idx: string]: {x: number}; +>idx : Symbol(idx, Decl(index.js, 100, 5)) +>x : Symbol(x, Decl(index.js, 100, 20)) + + [idx: number]: {x: number, y: number}; +>idx : Symbol(idx, Decl(index.js, 101, 5)) +>x : Symbol(x, Decl(index.js, 101, 20)) +>y : Symbol(y, Decl(index.js, 101, 30)) +} + +export interface Z extends Y {} +>Z : Symbol(Z, Decl(index.js, 102, 1)) +>Y : Symbol(Y, Decl(index.js, 97, 1)) + +export interface AA extends Y { +>AA : Symbol(AA, Decl(index.js, 104, 31)) +>Y : Symbol(Y, Decl(index.js, 97, 1)) + + [idx: string]: {x: number, y: number}; +>idx : Symbol(idx, Decl(index.js, 107, 5)) +>x : Symbol(x, Decl(index.js, 107, 20)) +>y : Symbol(y, Decl(index.js, 107, 30)) +} + +export interface BB extends Y { +>BB : Symbol(BB, Decl(index.js, 108, 1)) +>Y : Symbol(Y, Decl(index.js, 97, 1)) + + [idx: number]: {x: 0, y: 0}; +>idx : Symbol(idx, Decl(index.js, 111, 5)) +>x : Symbol(x, Decl(index.js, 111, 20)) +>y : Symbol(y, Decl(index.js, 111, 25)) +} + +export interface CC extends Y { +>CC : Symbol(CC, Decl(index.js, 112, 1)) +>Y : Symbol(Y, Decl(index.js, 97, 1)) + + [idx: string]: {x: number, y: number}; +>idx : Symbol(idx, Decl(index.js, 115, 5)) +>x : Symbol(x, Decl(index.js, 115, 20)) +>y : Symbol(y, Decl(index.js, 115, 30)) + + [idx: number]: {x: 0, y: 0}; +>idx : Symbol(idx, Decl(index.js, 116, 5)) +>x : Symbol(x, Decl(index.js, 116, 20)) +>y : Symbol(y, Decl(index.js, 116, 25)) +} + diff --git a/tests/baselines/reference/jsDeclarationsInterfaces(target=es5).types b/tests/baselines/reference/jsDeclarationsInterfaces(target=es5).types new file mode 100644 index 0000000000000..06101926c8364 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsInterfaces(target=es5).types @@ -0,0 +1,246 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsInterfaces.ts] //// + +=== index.js === +// Pretty much all of this should be an error, (since interfaces are forbidden in js), +// but we should be able to synthesize declarations from the symbols regardless + +export interface A {} + +export interface B { + cat: string; +>cat : string +> : ^^^^^^ +} + +export interface C { + field: T & U; +>field : T & U +> : ^^^^^ + + optionalField?: T; +>optionalField : T +> : ^ + + readonly readonlyField: T & U; +>readonlyField : T & U +> : ^^^^^ + + readonly readonlyOptionalField?: U; +>readonlyOptionalField : U +> : ^ + + (): number; + (x: T): U; +>x : T +> : ^ + + (x: Q): T & Q; +>x : Q +> : ^ + + new (): string; + new (x: T): U; +>x : T +> : ^ + + new (x: Q): T & Q; +>x : Q +> : ^ + + method(): number; +>method : { (): number; (a: T & Q_1): Q_1 & number; (a?: number): number; (...args: any[]): number; } +> : ^^^ ^^^^^^^^^^^^^^ ^^^^^^^^ ^^ ^^^ ^^^ ^^^ ^^^ ^^^^^^ ^^ ^^^ ^^^ + + method(a: T & Q): Q & number; +>method : { (): number; (a: T & Q): Q & number; (a?: number): number; (...args: any[]): number; } +> : ^^^^^^^^^^^^^^^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^^ ^^^ ^^^^^^ ^^ ^^^ ^^^ +>a : T & Q +> : ^^^^^ + + method(a?: number): number; +>method : { (): number; (a: T & Q): Q & number; (a?: number): number; (...args: any[]): number; } +> : ^^^ ^^^^^^^^^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^^ ^^^ ^^^^^^ ^^ ^^^ ^^^ +>a : number +> : ^^^^^^ + + method(...args: any[]): number; +>method : { (): number; (a: T & Q): Q & number; (a?: number): number; (...args: any[]): number; } +> : ^^^ ^^^^^^^^^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^^ ^^^ ^^^^^^ ^^ ^^^ ^^^ +>args : any[] +> : ^^^^^ + + optMethod?(): number; +>optMethod : () => number +> : ^^^^^^ +} + +interface G {} + +export { G }; +>G : any +> : ^^^ + +interface HH {} + +export { HH as H }; +>HH : any +> : ^^^ +>H : any +> : ^^^ + +export interface I {} +export { I as II }; +>I : any +> : ^^^ +>II : any +> : ^^^ + +export { J as JJ }; +>J : any +> : ^^^ +>JJ : any +> : ^^^ + +export interface J {} + +export interface K extends I,J { + x: string; +>x : string +> : ^^^^^^ +} + +export interface L extends K { + y: string; +>y : string +> : ^^^^^^ +} + +export interface M { + field: T; +>field : T +> : ^ +} + +export interface N extends M { + other: U; +>other : U +> : ^ +} + +export interface O { + [idx: string]: string; +>idx : string +> : ^^^^^^ +} + +export interface P extends O {} + +export interface Q extends O { + [idx: string]: "ok"; +>idx : string +> : ^^^^^^ +} + +export interface R extends O { + [idx: number]: "ok"; +>idx : number +> : ^^^^^^ +} + +export interface S extends O { + [idx: string]: "ok"; +>idx : string +> : ^^^^^^ + + [idx: number]: never; +>idx : number +> : ^^^^^^ +} + +export interface T { + [idx: number]: string; +>idx : number +> : ^^^^^^ +} + +export interface U extends T {} + + +export interface V extends T { + [idx: string]: string; +>idx : string +> : ^^^^^^ +} + +export interface W extends T { + [idx: number]: "ok"; +>idx : number +> : ^^^^^^ +} + +export interface X extends T { + [idx: string]: string; +>idx : string +> : ^^^^^^ + + [idx: number]: "ok"; +>idx : number +> : ^^^^^^ +} + +export interface Y { + [idx: string]: {x: number}; +>idx : string +> : ^^^^^^ +>x : number +> : ^^^^^^ + + [idx: number]: {x: number, y: number}; +>idx : number +> : ^^^^^^ +>x : number +> : ^^^^^^ +>y : number +> : ^^^^^^ +} + +export interface Z extends Y {} + +export interface AA extends Y { + [idx: string]: {x: number, y: number}; +>idx : string +> : ^^^^^^ +>x : number +> : ^^^^^^ +>y : number +> : ^^^^^^ +} + +export interface BB extends Y { + [idx: number]: {x: 0, y: 0}; +>idx : number +> : ^^^^^^ +>x : 0 +> : ^ +>y : 0 +> : ^ +} + +export interface CC extends Y { + [idx: string]: {x: number, y: number}; +>idx : string +> : ^^^^^^ +>x : number +> : ^^^^^^ +>y : number +> : ^^^^^^ + + [idx: number]: {x: 0, y: 0}; +>idx : number +> : ^^^^^^ +>x : 0 +> : ^ +>y : 0 +> : ^ +} + diff --git a/tests/baselines/reference/jsDeclarationsJson(target=es2015).js b/tests/baselines/reference/jsDeclarationsJson(target=es2015).js new file mode 100644 index 0000000000000..acf3e8b738875 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsJson(target=es2015).js @@ -0,0 +1,48 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsJson.ts] //// + +//// [index.js] +const j = require("./obj.json"); +module.exports = j; +//// [obj.json] +{ + "x": 12, + "y": 12, + "obj": { + "items": [{"x": 12}, {"x": 12, "y": 12}, {"x": 0}, {"x": -1, "err": true}] + } +} + +//// [obj.json] +{ + "x": 12, + "y": 12, + "obj": { + "items": [{ "x": 12 }, { "x": 12, "y": 12 }, { "x": 0 }, { "x": -1, "err": true }] + } +} +//// [index.js] +const j = require("./obj.json"); +module.exports = j; + + +//// [index.d.ts] +export = j; +declare const j: { + x: number; + y: number; + obj: { + items: ({ + x: number; + y?: undefined; + err?: undefined; + } | { + x: number; + y: number; + err?: undefined; + } | { + x: number; + err: boolean; + y?: undefined; + })[]; + }; +}; diff --git a/tests/baselines/reference/jsDeclarationsJson.symbols b/tests/baselines/reference/jsDeclarationsJson(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/jsDeclarationsJson.symbols rename to tests/baselines/reference/jsDeclarationsJson(target=es2015).symbols diff --git a/tests/baselines/reference/jsDeclarationsJson.types b/tests/baselines/reference/jsDeclarationsJson(target=es2015).types similarity index 100% rename from tests/baselines/reference/jsDeclarationsJson.types rename to tests/baselines/reference/jsDeclarationsJson(target=es2015).types diff --git a/tests/baselines/reference/jsDeclarationsJson.js b/tests/baselines/reference/jsDeclarationsJson(target=es5).js similarity index 100% rename from tests/baselines/reference/jsDeclarationsJson.js rename to tests/baselines/reference/jsDeclarationsJson(target=es5).js diff --git a/tests/baselines/reference/jsDeclarationsJson(target=es5).symbols b/tests/baselines/reference/jsDeclarationsJson(target=es5).symbols new file mode 100644 index 0000000000000..ade1fd40036fd --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsJson(target=es5).symbols @@ -0,0 +1,35 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsJson.ts] //// + +=== index.js === +const j = require("./obj.json"); +>j : Symbol(j, Decl(index.js, 0, 5)) +>require : Symbol(require) +>"./obj.json" : Symbol("obj", Decl(obj.json, 0, 0)) + +module.exports = j; +>module.exports : Symbol(module.exports, Decl(index.js, 0, 0)) +>module : Symbol(export=, Decl(index.js, 0, 32)) +>exports : Symbol(export=, Decl(index.js, 0, 32)) +>j : Symbol(j, Decl(index.js, 0, 5)) + +=== obj.json === +{ + "x": 12, +>"x" : Symbol("x", Decl(obj.json, 0, 1)) + + "y": 12, +>"y" : Symbol("y", Decl(obj.json, 1, 12)) + + "obj": { +>"obj" : Symbol("obj", Decl(obj.json, 2, 12)) + + "items": [{"x": 12}, {"x": 12, "y": 12}, {"x": 0}, {"x": -1, "err": true}] +>"items" : Symbol("items", Decl(obj.json, 3, 12)) +>"x" : Symbol("x", Decl(obj.json, 4, 19)) +>"x" : Symbol("x", Decl(obj.json, 4, 30)) +>"y" : Symbol("y", Decl(obj.json, 4, 38)) +>"x" : Symbol("x", Decl(obj.json, 4, 50)) +>"x" : Symbol("x", Decl(obj.json, 4, 60)) +>"err" : Symbol("err", Decl(obj.json, 4, 68)) + } +} diff --git a/tests/baselines/reference/jsDeclarationsJson(target=es5).types b/tests/baselines/reference/jsDeclarationsJson(target=es5).types new file mode 100644 index 0000000000000..e2c8ac22f59ed --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsJson(target=es5).types @@ -0,0 +1,88 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsJson.ts] //// + +=== index.js === +const j = require("./obj.json"); +>j : { x: number; y: number; obj: { items: ({ x: number; y?: undefined; err?: undefined; } | { x: number; y: number; err?: undefined; } | { x: number; err: boolean; y?: undefined; })[]; }; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>require("./obj.json") : { x: number; y: number; obj: { items: ({ x: number; y?: undefined; err?: undefined; } | { x: number; y: number; err?: undefined; } | { x: number; err: boolean; y?: undefined; })[]; }; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>require : any +>"./obj.json" : "./obj.json" +> : ^^^^^^^^^^^^ + +module.exports = j; +>module.exports = j : { x: number; y: number; obj: { items: ({ x: number; y?: undefined; err?: undefined; } | { x: number; y: number; err?: undefined; } | { x: number; err: boolean; y?: undefined; })[]; }; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>module.exports : { x: number; y: number; obj: { items: ({ x: number; y?: undefined; err?: undefined; } | { x: number; y: number; err?: undefined; } | { x: number; err: boolean; y?: undefined; })[]; }; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>module : { exports: { x: number; y: number; obj: { items: ({ x: number; y?: undefined; err?: undefined; } | { x: number; y: number; err?: undefined; } | { x: number; err: boolean; y?: undefined; })[]; }; }; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exports : { x: number; y: number; obj: { items: ({ x: number; y?: undefined; err?: undefined; } | { x: number; y: number; err?: undefined; } | { x: number; err: boolean; y?: undefined; })[]; }; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>j : { x: number; y: number; obj: { items: ({ x: number; y?: undefined; err?: undefined; } | { x: number; y: number; err?: undefined; } | { x: number; err: boolean; y?: undefined; })[]; }; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +=== obj.json === +{ +>{ "x": 12, "y": 12, "obj": { "items": [{"x": 12}, {"x": 12, "y": 12}, {"x": 0}, {"x": -1, "err": true}] }} : { x: number; y: number; obj: { items: ({ x: number; } | { x: number; y: number; } | { x: number; err: boolean; })[]; }; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + "x": 12, +>"x" : number +> : ^^^^^^ +>12 : 12 +> : ^^ + + "y": 12, +>"y" : number +> : ^^^^^^ +>12 : 12 +> : ^^ + + "obj": { +>"obj" : { items: ({ x: number; } | { x: number; y: number; } | { x: number; err: boolean; })[]; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ "items": [{"x": 12}, {"x": 12, "y": 12}, {"x": 0}, {"x": -1, "err": true}] } : { items: ({ x: number; } | { x: number; y: number; } | { x: number; err: boolean; })[]; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + "items": [{"x": 12}, {"x": 12, "y": 12}, {"x": 0}, {"x": -1, "err": true}] +>"items" : ({ x: number; } | { x: number; y: number; } | { x: number; err: boolean; })[] +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>[{"x": 12}, {"x": 12, "y": 12}, {"x": 0}, {"x": -1, "err": true}] : ({ x: number; } | { x: number; y: number; } | { x: number; err: boolean; })[] +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{"x": 12} : { x: number; } +> : ^^^^^^^^^^^^^^ +>"x" : number +> : ^^^^^^ +>12 : 12 +> : ^^ +>{"x": 12, "y": 12} : { x: number; y: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>"x" : number +> : ^^^^^^ +>12 : 12 +> : ^^ +>"y" : number +> : ^^^^^^ +>12 : 12 +> : ^^ +>{"x": 0} : { x: number; } +> : ^^^^^^^^^^^^^^ +>"x" : number +> : ^^^^^^ +>0 : 0 +> : ^ +>{"x": -1, "err": true} : { x: number; err: boolean; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>"x" : number +> : ^^^^^^ +>-1 : -1 +> : ^^ +>1 : 1 +> : ^ +>"err" : boolean +> : ^^^^^^^ +>true : true +> : ^^^^ + } +} diff --git a/tests/baselines/reference/jsDeclarationsMissingGenerics.js b/tests/baselines/reference/jsDeclarationsMissingGenerics(target=es2015).js similarity index 100% rename from tests/baselines/reference/jsDeclarationsMissingGenerics.js rename to tests/baselines/reference/jsDeclarationsMissingGenerics(target=es2015).js diff --git a/tests/baselines/reference/jsDeclarationsMissingGenerics.symbols b/tests/baselines/reference/jsDeclarationsMissingGenerics(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/jsDeclarationsMissingGenerics.symbols rename to tests/baselines/reference/jsDeclarationsMissingGenerics(target=es2015).symbols diff --git a/tests/baselines/reference/jsDeclarationsMissingGenerics.types b/tests/baselines/reference/jsDeclarationsMissingGenerics(target=es2015).types similarity index 100% rename from tests/baselines/reference/jsDeclarationsMissingGenerics.types rename to tests/baselines/reference/jsDeclarationsMissingGenerics(target=es2015).types diff --git a/tests/baselines/reference/jsDeclarationsMissingGenerics(target=es5).js b/tests/baselines/reference/jsDeclarationsMissingGenerics(target=es5).js new file mode 100644 index 0000000000000..c9ac98b8ada36 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsMissingGenerics(target=es5).js @@ -0,0 +1,32 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsMissingGenerics.ts] //// + +//// [file.js] +/** + * @param {Array} x + */ +function x(x) {} +/** + * @param {Promise} x + */ +function y(x) {} + +//// [file.js] +/** + * @param {Array} x + */ +function x(x) { } +/** + * @param {Promise} x + */ +function y(x) { } + + +//// [file.d.ts] +/** + * @param {Array} x + */ +declare function x(x: any[]): void; +/** + * @param {Promise} x + */ +declare function y(x: Promise): void; diff --git a/tests/baselines/reference/jsDeclarationsMissingGenerics(target=es5).symbols b/tests/baselines/reference/jsDeclarationsMissingGenerics(target=es5).symbols new file mode 100644 index 0000000000000..93d01520c4eba --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsMissingGenerics(target=es5).symbols @@ -0,0 +1,17 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsMissingGenerics.ts] //// + +=== file.js === +/** + * @param {Array} x + */ +function x(x) {} +>x : Symbol(x, Decl(file.js, 0, 0)) +>x : Symbol(x, Decl(file.js, 3, 11)) + +/** + * @param {Promise} x + */ +function y(x) {} +>y : Symbol(y, Decl(file.js, 3, 16)) +>x : Symbol(x, Decl(file.js, 7, 11)) + diff --git a/tests/baselines/reference/jsDeclarationsMissingGenerics(target=es5).types b/tests/baselines/reference/jsDeclarationsMissingGenerics(target=es5).types new file mode 100644 index 0000000000000..50d9a6d70deaf --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsMissingGenerics(target=es5).types @@ -0,0 +1,21 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsMissingGenerics.ts] //// + +=== file.js === +/** + * @param {Array} x + */ +function x(x) {} +>x : (x: any[]) => void +> : ^ ^^^^^^^^^^^^^^^^ +>x : any[] +> : ^^^^^ + +/** + * @param {Promise} x + */ +function y(x) {} +>y : (x: Promise) => void +> : ^ ^^^^^^^^^^^^^^^^^^^^^^^ +>x : Promise +> : ^^^^^^^^^^^^ + diff --git a/tests/baselines/reference/jsDeclarationsMissingTypeParameters.js b/tests/baselines/reference/jsDeclarationsMissingTypeParameters(target=es2015).js similarity index 100% rename from tests/baselines/reference/jsDeclarationsMissingTypeParameters.js rename to tests/baselines/reference/jsDeclarationsMissingTypeParameters(target=es2015).js diff --git a/tests/baselines/reference/jsDeclarationsMissingTypeParameters.symbols b/tests/baselines/reference/jsDeclarationsMissingTypeParameters(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/jsDeclarationsMissingTypeParameters.symbols rename to tests/baselines/reference/jsDeclarationsMissingTypeParameters(target=es2015).symbols diff --git a/tests/baselines/reference/jsDeclarationsMissingTypeParameters.types b/tests/baselines/reference/jsDeclarationsMissingTypeParameters(target=es2015).types similarity index 100% rename from tests/baselines/reference/jsDeclarationsMissingTypeParameters.types rename to tests/baselines/reference/jsDeclarationsMissingTypeParameters(target=es2015).types diff --git a/tests/baselines/reference/jsDeclarationsMissingTypeParameters(target=es5).js b/tests/baselines/reference/jsDeclarationsMissingTypeParameters(target=es5).js new file mode 100644 index 0000000000000..a596dc70fa860 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsMissingTypeParameters(target=es5).js @@ -0,0 +1,61 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsMissingTypeParameters.ts] //// + +//// [file.js] +/** + * @param {Array=} y desc + */ +function x(y) { } + +// @ts-ignore +/** @param {function (Array)} func Invoked + */ +function y(func) { return; } + +/** + * @return {(Array.<> | null)} list of devices + */ +function z() { return null ;} + +/** + * + * @return {?Promise} A promise + */ +function w() { return null; } + +//// [file.js] +/** + * @param {Array=} y desc + */ +function x(y) { } +// @ts-ignore +/** @param {function (Array)} func Invoked + */ +function y(func) { return; } +/** + * @return {(Array.<> | null)} list of devices + */ +function z() { return null; } +/** + * + * @return {?Promise} A promise + */ +function w() { return null; } + + +//// [file.d.ts] +/** + * @param {Array=} y desc + */ +declare function x(y?: any[] | undefined): void; +/** @param {function (Array)} func Invoked + */ +declare function y(func: (arg0: any[]) => any): void; +/** + * @return {(Array.<> | null)} list of devices + */ +declare function z(): (any[] | null); +/** + * + * @return {?Promise} A promise + */ +declare function w(): Promise | null; diff --git a/tests/baselines/reference/jsDeclarationsMissingTypeParameters(target=es5).symbols b/tests/baselines/reference/jsDeclarationsMissingTypeParameters(target=es5).symbols new file mode 100644 index 0000000000000..5d7b5d1dcf157 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsMissingTypeParameters(target=es5).symbols @@ -0,0 +1,30 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsMissingTypeParameters.ts] //// + +=== file.js === +/** + * @param {Array=} y desc + */ +function x(y) { } +>x : Symbol(x, Decl(file.js, 0, 0)) +>y : Symbol(y, Decl(file.js, 3, 11)) + +// @ts-ignore +/** @param {function (Array)} func Invoked + */ +function y(func) { return; } +>y : Symbol(y, Decl(file.js, 3, 17)) +>func : Symbol(func, Decl(file.js, 8, 11)) + +/** + * @return {(Array.<> | null)} list of devices + */ +function z() { return null ;} +>z : Symbol(z, Decl(file.js, 8, 28)) + +/** + * + * @return {?Promise} A promise + */ +function w() { return null; } +>w : Symbol(w, Decl(file.js, 13, 29)) + diff --git a/tests/baselines/reference/jsDeclarationsMissingTypeParameters(target=es5).types b/tests/baselines/reference/jsDeclarationsMissingTypeParameters(target=es5).types new file mode 100644 index 0000000000000..e454e9cdc6b0b --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsMissingTypeParameters(target=es5).types @@ -0,0 +1,36 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsMissingTypeParameters.ts] //// + +=== file.js === +/** + * @param {Array=} y desc + */ +function x(y) { } +>x : (y?: any[] | undefined) => void +> : ^ ^^^^^^^^ ^^^^^^^^^^^^^^^^^^ +>y : any[] +> : ^^^^^ + +// @ts-ignore +/** @param {function (Array)} func Invoked + */ +function y(func) { return; } +>y : (func: (arg0: any[]) => any) => void +> : ^ ^^ ^^^^^^^ ^^^^^^^^^^^^ +>func : (arg0: any[]) => any +> : ^^^^^^^^^^^^^^^^^^^^ + +/** + * @return {(Array.<> | null)} list of devices + */ +function z() { return null ;} +>z : () => (any[] | null) +> : ^^^^^^ ^^^^^ + +/** + * + * @return {?Promise} A promise + */ +function w() { return null; } +>w : () => Promise | null +> : ^^^^^^^^^^^^^^^^^^ ^^^^ + diff --git a/tests/baselines/reference/jsDeclarationsModuleReferenceHasEmit(target=es2015).js b/tests/baselines/reference/jsDeclarationsModuleReferenceHasEmit(target=es2015).js new file mode 100644 index 0000000000000..b8a420c192d84 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsModuleReferenceHasEmit(target=es2015).js @@ -0,0 +1,43 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsModuleReferenceHasEmit.ts] //// + +//// [index.js] +/** + * @module A + */ +class A {} + + +/** + * Target element + * @type {module:A} + */ +export let el = null; + +export default A; + +//// [index.js] +/** + * @module A + */ +class A { +} +/** + * Target element + * @type {module:A} + */ +export let el = null; +export default A; + + +//// [index.d.ts] +/** + * Target element + * @type {module:A} + */ +export let el: any; +export default A; +/** + * @module A + */ +declare class A { +} diff --git a/tests/baselines/reference/jsDeclarationsModuleReferenceHasEmit.symbols b/tests/baselines/reference/jsDeclarationsModuleReferenceHasEmit(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/jsDeclarationsModuleReferenceHasEmit.symbols rename to tests/baselines/reference/jsDeclarationsModuleReferenceHasEmit(target=es2015).symbols diff --git a/tests/baselines/reference/jsDeclarationsModuleReferenceHasEmit.types b/tests/baselines/reference/jsDeclarationsModuleReferenceHasEmit(target=es2015).types similarity index 100% rename from tests/baselines/reference/jsDeclarationsModuleReferenceHasEmit.types rename to tests/baselines/reference/jsDeclarationsModuleReferenceHasEmit(target=es2015).types diff --git a/tests/baselines/reference/jsDeclarationsModuleReferenceHasEmit.js b/tests/baselines/reference/jsDeclarationsModuleReferenceHasEmit(target=es5).js similarity index 100% rename from tests/baselines/reference/jsDeclarationsModuleReferenceHasEmit.js rename to tests/baselines/reference/jsDeclarationsModuleReferenceHasEmit(target=es5).js diff --git a/tests/baselines/reference/jsDeclarationsModuleReferenceHasEmit(target=es5).symbols b/tests/baselines/reference/jsDeclarationsModuleReferenceHasEmit(target=es5).symbols new file mode 100644 index 0000000000000..03b9c9795c87e --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsModuleReferenceHasEmit(target=es5).symbols @@ -0,0 +1,20 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsModuleReferenceHasEmit.ts] //// + +=== index.js === +/** + * @module A + */ +class A {} +>A : Symbol(A, Decl(index.js, 0, 0)) + + +/** + * Target element + * @type {module:A} + */ +export let el = null; +>el : Symbol(el, Decl(index.js, 10, 10)) + +export default A; +>A : Symbol(A, Decl(index.js, 0, 0)) + diff --git a/tests/baselines/reference/jsDeclarationsModuleReferenceHasEmit(target=es5).types b/tests/baselines/reference/jsDeclarationsModuleReferenceHasEmit(target=es5).types new file mode 100644 index 0000000000000..cd6a06a4aecc2 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsModuleReferenceHasEmit(target=es5).types @@ -0,0 +1,22 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsModuleReferenceHasEmit.ts] //// + +=== index.js === +/** + * @module A + */ +class A {} +>A : A +> : ^ + + +/** + * Target element + * @type {module:A} + */ +export let el = null; +>el : error + +export default A; +>A : A +> : ^ + diff --git a/tests/baselines/reference/jsDeclarationsMultipleExportFromMerge(target=es2015).js b/tests/baselines/reference/jsDeclarationsMultipleExportFromMerge(target=es2015).js new file mode 100644 index 0000000000000..cf32a6b0bf8f8 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsMultipleExportFromMerge(target=es2015).js @@ -0,0 +1,50 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsMultipleExportFromMerge.ts] //// + +//// [items.js] +export const a = 1; +export const b = 2; +export const c = 3; + +//// [justone.js] +export { a, b, c } from "./items"; + +//// [two.js] +export { a } from "./items"; +export { b, c } from "./items"; + +//// [multiple.js] +export {a, b} from "./items"; +export {a as aa} from "./two"; +export {b as bb} from "./two"; +export {c} from "./two" +export {c as cc} from "./items"; + + +//// [items.js] +export const a = 1; +export const b = 2; +export const c = 3; +//// [justone.js] +export { a, b, c } from "./items"; +//// [two.js] +export { a } from "./items"; +export { b, c } from "./items"; +//// [multiple.js] +export { a, b } from "./items"; +export { a as aa } from "./two"; +export { b as bb } from "./two"; +export { c } from "./two"; +export { c as cc } from "./items"; + + +//// [items.d.ts] +export const a: 1; +export const b: 2; +export const c: 3; +//// [justone.d.ts] +export { a, b, c } from "./items"; +//// [two.d.ts] +export { a, b, c } from "./items"; +//// [multiple.d.ts] +export { a, b, c as cc } from "./items"; +export { a as aa, b as bb, c } from "./two"; diff --git a/tests/baselines/reference/jsDeclarationsMultipleExportFromMerge.symbols b/tests/baselines/reference/jsDeclarationsMultipleExportFromMerge(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/jsDeclarationsMultipleExportFromMerge.symbols rename to tests/baselines/reference/jsDeclarationsMultipleExportFromMerge(target=es2015).symbols diff --git a/tests/baselines/reference/jsDeclarationsMultipleExportFromMerge.types b/tests/baselines/reference/jsDeclarationsMultipleExportFromMerge(target=es2015).types similarity index 100% rename from tests/baselines/reference/jsDeclarationsMultipleExportFromMerge.types rename to tests/baselines/reference/jsDeclarationsMultipleExportFromMerge(target=es2015).types diff --git a/tests/baselines/reference/jsDeclarationsMultipleExportFromMerge.js b/tests/baselines/reference/jsDeclarationsMultipleExportFromMerge(target=es5).js similarity index 100% rename from tests/baselines/reference/jsDeclarationsMultipleExportFromMerge.js rename to tests/baselines/reference/jsDeclarationsMultipleExportFromMerge(target=es5).js diff --git a/tests/baselines/reference/jsDeclarationsMultipleExportFromMerge(target=es5).symbols b/tests/baselines/reference/jsDeclarationsMultipleExportFromMerge(target=es5).symbols new file mode 100644 index 0000000000000..118b9ad893fb0 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsMultipleExportFromMerge(target=es5).symbols @@ -0,0 +1,46 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsMultipleExportFromMerge.ts] //// + +=== items.js === +export const a = 1; +>a : Symbol(a, Decl(items.js, 0, 12)) + +export const b = 2; +>b : Symbol(b, Decl(items.js, 1, 12)) + +export const c = 3; +>c : Symbol(c, Decl(items.js, 2, 12)) + +=== justone.js === +export { a, b, c } from "./items"; +>a : Symbol(a, Decl(justone.js, 0, 8)) +>b : Symbol(b, Decl(justone.js, 0, 11)) +>c : Symbol(c, Decl(justone.js, 0, 14)) + +=== two.js === +export { a } from "./items"; +>a : Symbol(a, Decl(two.js, 0, 8)) + +export { b, c } from "./items"; +>b : Symbol(b, Decl(two.js, 1, 8)) +>c : Symbol(c, Decl(two.js, 1, 11)) + +=== multiple.js === +export {a, b} from "./items"; +>a : Symbol(a, Decl(multiple.js, 0, 8)) +>b : Symbol(b, Decl(multiple.js, 0, 10)) + +export {a as aa} from "./two"; +>a : Symbol(a, Decl(two.js, 0, 8)) +>aa : Symbol(aa, Decl(multiple.js, 1, 8)) + +export {b as bb} from "./two"; +>b : Symbol(b, Decl(two.js, 1, 8)) +>bb : Symbol(bb, Decl(multiple.js, 2, 8)) + +export {c} from "./two" +>c : Symbol(c, Decl(multiple.js, 3, 8)) + +export {c as cc} from "./items"; +>c : Symbol(c, Decl(items.js, 2, 12)) +>cc : Symbol(cc, Decl(multiple.js, 4, 8)) + diff --git a/tests/baselines/reference/jsDeclarationsMultipleExportFromMerge(target=es5).types b/tests/baselines/reference/jsDeclarationsMultipleExportFromMerge(target=es5).types new file mode 100644 index 0000000000000..57630c5ba5dad --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsMultipleExportFromMerge(target=es5).types @@ -0,0 +1,70 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsMultipleExportFromMerge.ts] //// + +=== items.js === +export const a = 1; +>a : 1 +> : ^ +>1 : 1 +> : ^ + +export const b = 2; +>b : 2 +> : ^ +>2 : 2 +> : ^ + +export const c = 3; +>c : 3 +> : ^ +>3 : 3 +> : ^ + +=== justone.js === +export { a, b, c } from "./items"; +>a : 1 +> : ^ +>b : 2 +> : ^ +>c : 3 +> : ^ + +=== two.js === +export { a } from "./items"; +>a : 1 +> : ^ + +export { b, c } from "./items"; +>b : 2 +> : ^ +>c : 3 +> : ^ + +=== multiple.js === +export {a, b} from "./items"; +>a : 1 +> : ^ +>b : 2 +> : ^ + +export {a as aa} from "./two"; +>a : 1 +> : ^ +>aa : 1 +> : ^ + +export {b as bb} from "./two"; +>b : 2 +> : ^ +>bb : 2 +> : ^ + +export {c} from "./two" +>c : 3 +> : ^ + +export {c as cc} from "./items"; +>c : 3 +> : ^ +>cc : 3 +> : ^ + diff --git a/tests/baselines/reference/jsDeclarationsPackageJson(target=es2015).js b/tests/baselines/reference/jsDeclarationsPackageJson(target=es2015).js new file mode 100644 index 0000000000000..0c12caa94c80a --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsPackageJson(target=es2015).js @@ -0,0 +1,107 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsPackageJson.ts] //// + +//// [index.js] +const j = require("./package.json"); +module.exports = j; +//// [package.json] +{ + "name": "pkg", + "version": "0.1.0", + "description": "A package", + "main": "./dist/index.js", + "bin": { + "cli": "./bin/cli.js", + }, + "engines": { + "node": ">=0" + }, + "scripts": { + "scriptname": "run && run again", + }, + "devDependencies": { + "@ns/dep": "0.1.2", + }, + "dependencies": { + "dep": "1.2.3", + }, + "repository": "microsoft/TypeScript", + "keywords": [ + "kw" + ], + "author": "Auth", + "license": "See Licensce", + "homepage": "https://site", + "config": { + "o": ["a"] + } +} + + +//// [package.json] +{ + "name": "pkg", + "version": "0.1.0", + "description": "A package", + "main": "./dist/index.js", + "bin": { + "cli": "./bin/cli.js" + }, + "engines": { + "node": ">=0" + }, + "scripts": { + "scriptname": "run && run again" + }, + "devDependencies": { + "@ns/dep": "0.1.2" + }, + "dependencies": { + "dep": "1.2.3" + }, + "repository": "microsoft/TypeScript", + "keywords": [ + "kw" + ], + "author": "Auth", + "license": "See Licensce", + "homepage": "https://site", + "config": { + "o": ["a"] + } +} +//// [index.js] +const j = require("./package.json"); +module.exports = j; + + +//// [index.d.ts] +export = j; +declare const j: { + name: string; + version: string; + description: string; + main: string; + bin: { + cli: string; + }; + engines: { + node: string; + }; + scripts: { + scriptname: string; + }; + devDependencies: { + "@ns/dep": string; + }; + dependencies: { + dep: string; + }; + repository: string; + keywords: string[]; + author: string; + license: string; + homepage: string; + config: { + o: string[]; + }; +}; diff --git a/tests/baselines/reference/jsDeclarationsPackageJson.symbols b/tests/baselines/reference/jsDeclarationsPackageJson(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/jsDeclarationsPackageJson.symbols rename to tests/baselines/reference/jsDeclarationsPackageJson(target=es2015).symbols diff --git a/tests/baselines/reference/jsDeclarationsPackageJson.types b/tests/baselines/reference/jsDeclarationsPackageJson(target=es2015).types similarity index 100% rename from tests/baselines/reference/jsDeclarationsPackageJson.types rename to tests/baselines/reference/jsDeclarationsPackageJson(target=es2015).types diff --git a/tests/baselines/reference/jsDeclarationsPackageJson.js b/tests/baselines/reference/jsDeclarationsPackageJson(target=es5).js similarity index 100% rename from tests/baselines/reference/jsDeclarationsPackageJson.js rename to tests/baselines/reference/jsDeclarationsPackageJson(target=es5).js diff --git a/tests/baselines/reference/jsDeclarationsPackageJson(target=es5).symbols b/tests/baselines/reference/jsDeclarationsPackageJson(target=es5).symbols new file mode 100644 index 0000000000000..4789bbe69984a --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsPackageJson(target=es5).symbols @@ -0,0 +1,88 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsPackageJson.ts] //// + +=== index.js === +const j = require("./package.json"); +>j : Symbol(j, Decl(index.js, 0, 5)) +>require : Symbol(require) +>"./package.json" : Symbol("package", Decl(package.json, 0, 0)) + +module.exports = j; +>module.exports : Symbol(module.exports, Decl(index.js, 0, 0)) +>module : Symbol(export=, Decl(index.js, 0, 36)) +>exports : Symbol(export=, Decl(index.js, 0, 36)) +>j : Symbol(j, Decl(index.js, 0, 5)) + +=== package.json === +{ + "name": "pkg", +>"name" : Symbol("name", Decl(package.json, 0, 1)) + + "version": "0.1.0", +>"version" : Symbol("version", Decl(package.json, 1, 18)) + + "description": "A package", +>"description" : Symbol("description", Decl(package.json, 2, 23)) + + "main": "./dist/index.js", +>"main" : Symbol("main", Decl(package.json, 3, 31)) + + "bin": { +>"bin" : Symbol("bin", Decl(package.json, 4, 30)) + + "cli": "./bin/cli.js", +>"cli" : Symbol("cli", Decl(package.json, 5, 12)) + + }, + "engines": { +>"engines" : Symbol("engines", Decl(package.json, 7, 6)) + + "node": ">=0" +>"node" : Symbol("node", Decl(package.json, 8, 16)) + + }, + "scripts": { +>"scripts" : Symbol("scripts", Decl(package.json, 10, 6)) + + "scriptname": "run && run again", +>"scriptname" : Symbol("scriptname", Decl(package.json, 11, 16)) + + }, + "devDependencies": { +>"devDependencies" : Symbol("devDependencies", Decl(package.json, 13, 6)) + + "@ns/dep": "0.1.2", +>"@ns/dep" : Symbol("@ns/dep", Decl(package.json, 14, 24)) + + }, + "dependencies": { +>"dependencies" : Symbol("dependencies", Decl(package.json, 16, 6)) + + "dep": "1.2.3", +>"dep" : Symbol("dep", Decl(package.json, 17, 21)) + + }, + "repository": "microsoft/TypeScript", +>"repository" : Symbol("repository", Decl(package.json, 19, 6)) + + "keywords": [ +>"keywords" : Symbol("keywords", Decl(package.json, 20, 41)) + + "kw" + ], + "author": "Auth", +>"author" : Symbol("author", Decl(package.json, 23, 6)) + + "license": "See Licensce", +>"license" : Symbol("license", Decl(package.json, 24, 21)) + + "homepage": "https://site", +>"homepage" : Symbol("homepage", Decl(package.json, 25, 30)) + + "config": { +>"config" : Symbol("config", Decl(package.json, 26, 31)) + + "o": ["a"] +>"o" : Symbol("o", Decl(package.json, 27, 15)) + } +} + diff --git a/tests/baselines/reference/jsDeclarationsPackageJson(target=es5).types b/tests/baselines/reference/jsDeclarationsPackageJson(target=es5).types new file mode 100644 index 0000000000000..7526c3545daa3 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsPackageJson(target=es5).types @@ -0,0 +1,169 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsPackageJson.ts] //// + +=== index.js === +const j = require("./package.json"); +>j : { name: string; version: string; description: string; main: string; bin: { cli: string; }; engines: { node: string; }; scripts: { scriptname: string; }; devDependencies: { "@ns/dep": string; }; dependencies: { dep: string; }; repository: string; keywords: string[]; author: string; license: string; homepage: string; config: { o: string[]; }; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>require("./package.json") : { name: string; version: string; description: string; main: string; bin: { cli: string; }; engines: { node: string; }; scripts: { scriptname: string; }; devDependencies: { "@ns/dep": string; }; dependencies: { dep: string; }; repository: string; keywords: string[]; author: string; license: string; homepage: string; config: { o: string[]; }; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>require : any +>"./package.json" : "./package.json" +> : ^^^^^^^^^^^^^^^^ + +module.exports = j; +>module.exports = j : { name: string; version: string; description: string; main: string; bin: { cli: string; }; engines: { node: string; }; scripts: { scriptname: string; }; devDependencies: { "@ns/dep": string; }; dependencies: { dep: string; }; repository: string; keywords: string[]; author: string; license: string; homepage: string; config: { o: string[]; }; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>module.exports : { name: string; version: string; description: string; main: string; bin: { cli: string; }; engines: { node: string; }; scripts: { scriptname: string; }; devDependencies: { "@ns/dep": string; }; dependencies: { dep: string; }; repository: string; keywords: string[]; author: string; license: string; homepage: string; config: { o: string[]; }; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>module : { exports: { name: string; version: string; description: string; main: string; bin: { cli: string; }; engines: { node: string; }; scripts: { scriptname: string; }; devDependencies: { "@ns/dep": string; }; dependencies: { dep: string; }; repository: string; keywords: string[]; author: string; license: string; homepage: string; config: { o: string[]; }; }; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exports : { name: string; version: string; description: string; main: string; bin: { cli: string; }; engines: { node: string; }; scripts: { scriptname: string; }; devDependencies: { "@ns/dep": string; }; dependencies: { dep: string; }; repository: string; keywords: string[]; author: string; license: string; homepage: string; config: { o: string[]; }; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>j : { name: string; version: string; description: string; main: string; bin: { cli: string; }; engines: { node: string; }; scripts: { scriptname: string; }; devDependencies: { "@ns/dep": string; }; dependencies: { dep: string; }; repository: string; keywords: string[]; author: string; license: string; homepage: string; config: { o: string[]; }; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +=== package.json === +{ +>{ "name": "pkg", "version": "0.1.0", "description": "A package", "main": "./dist/index.js", "bin": { "cli": "./bin/cli.js", }, "engines": { "node": ">=0" }, "scripts": { "scriptname": "run && run again", }, "devDependencies": { "@ns/dep": "0.1.2", }, "dependencies": { "dep": "1.2.3", }, "repository": "microsoft/TypeScript", "keywords": [ "kw" ], "author": "Auth", "license": "See Licensce", "homepage": "https://site", "config": { "o": ["a"] }} : { name: string; version: string; description: string; main: string; bin: { cli: string; }; engines: { node: string; }; scripts: { scriptname: string; }; devDependencies: { "@ns/dep": string; }; dependencies: { dep: string; }; repository: string; keywords: string[]; author: string; license: string; homepage: string; config: { o: string[]; }; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + "name": "pkg", +>"name" : string +> : ^^^^^^ +>"pkg" : "pkg" +> : ^^^^^ + + "version": "0.1.0", +>"version" : string +> : ^^^^^^ +>"0.1.0" : "0.1.0" +> : ^^^^^^^ + + "description": "A package", +>"description" : string +> : ^^^^^^ +>"A package" : "A package" +> : ^^^^^^^^^^^ + + "main": "./dist/index.js", +>"main" : string +> : ^^^^^^ +>"./dist/index.js" : "./dist/index.js" +> : ^^^^^^^^^^^^^^^^^ + + "bin": { +>"bin" : { cli: string; } +> : ^^^^^^^^^^^^^^^^ +>{ "cli": "./bin/cli.js", } : { cli: string; } +> : ^^^^^^^^^^^^^^^^ + + "cli": "./bin/cli.js", +>"cli" : string +> : ^^^^^^ +>"./bin/cli.js" : "./bin/cli.js" +> : ^^^^^^^^^^^^^^ + + }, + "engines": { +>"engines" : { node: string; } +> : ^^^^^^^^^^^^^^^^^ +>{ "node": ">=0" } : { node: string; } +> : ^^^^^^^^^^^^^^^^^ + + "node": ">=0" +>"node" : string +> : ^^^^^^ +>">=0" : ">=0" +> : ^^^^^ + + }, + "scripts": { +>"scripts" : { scriptname: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>{ "scriptname": "run && run again", } : { scriptname: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^ + + "scriptname": "run && run again", +>"scriptname" : string +> : ^^^^^^ +>"run && run again" : "run && run again" +> : ^^^^^^^^^^^^^^^^^^ + + }, + "devDependencies": { +>"devDependencies" : { "@ns/dep": string; } +> : ^^^^^^^^^^^^^^^^^^^^^^ +>{ "@ns/dep": "0.1.2", } : { "@ns/dep": string; } +> : ^^^^^^^^^^^^^^^^^^^^^^ + + "@ns/dep": "0.1.2", +>"@ns/dep" : string +> : ^^^^^^ +>"0.1.2" : "0.1.2" +> : ^^^^^^^ + + }, + "dependencies": { +>"dependencies" : { dep: string; } +> : ^^^^^^^^^^^^^^^^ +>{ "dep": "1.2.3", } : { dep: string; } +> : ^^^^^^^^^^^^^^^^ + + "dep": "1.2.3", +>"dep" : string +> : ^^^^^^ +>"1.2.3" : "1.2.3" +> : ^^^^^^^ + + }, + "repository": "microsoft/TypeScript", +>"repository" : string +> : ^^^^^^ +>"microsoft/TypeScript" : "microsoft/TypeScript" +> : ^^^^^^^^^^^^^^^^^^^^^^ + + "keywords": [ +>"keywords" : string[] +> : ^^^^^^^^ +>[ "kw" ] : string[] +> : ^^^^^^^^ + + "kw" +>"kw" : "kw" +> : ^^^^ + + ], + "author": "Auth", +>"author" : string +> : ^^^^^^ +>"Auth" : "Auth" +> : ^^^^^^ + + "license": "See Licensce", +>"license" : string +> : ^^^^^^ +>"See Licensce" : "See Licensce" +> : ^^^^^^^^^^^^^^ + + "homepage": "https://site", +>"homepage" : string +> : ^^^^^^ +>"https://site" : "https://site" +> : ^^^^^^^^^^^^^^ + + "config": { +>"config" : { o: string[]; } +> : ^^^^^^^^^^^^^^^^ +>{ "o": ["a"] } : { o: string[]; } +> : ^^^^^^^^^^^^^^^^ + + "o": ["a"] +>"o" : string[] +> : ^^^^^^^^ +>["a"] : string[] +> : ^^^^^^^^ +>"a" : "a" +> : ^^^ + } +} + diff --git a/tests/baselines/reference/jsDeclarationsReactComponents(target=es2015).js b/tests/baselines/reference/jsDeclarationsReactComponents(target=es2015).js new file mode 100644 index 0000000000000..8640d615399c6 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsReactComponents(target=es2015).js @@ -0,0 +1,218 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsReactComponents.ts] //// + +//// [jsDeclarationsReactComponents1.jsx] +/// +import React from "react"; +import PropTypes from "prop-types" + +const TabbedShowLayout = ({ +}) => { + return ( +
+ ); +}; + +TabbedShowLayout.propTypes = { + version: PropTypes.number, + +}; + +TabbedShowLayout.defaultProps = { + tabs: undefined +}; + +export default TabbedShowLayout; + +//// [jsDeclarationsReactComponents2.jsx] +import React from "react"; +/** + * @type {React.SFC} + */ +const TabbedShowLayout = () => { + return ( +
+ ok +
+ ); +}; + +TabbedShowLayout.defaultProps = { + tabs: "default value" +}; + +export default TabbedShowLayout; + +//// [jsDeclarationsReactComponents3.jsx] +import React from "react"; +/** + * @type {{defaultProps: {tabs: string}} & ((props?: {elem: string}) => JSX.Element)} + */ +const TabbedShowLayout = () => { + return ( +
+ ok +
+ ); +}; + +TabbedShowLayout.defaultProps = { + tabs: "default value" +}; + +export default TabbedShowLayout; + +//// [jsDeclarationsReactComponents4.jsx] +import React from "react"; +const TabbedShowLayout = (/** @type {{className: string}}*/prop) => { + return ( +
+ ok +
+ ); +}; + +TabbedShowLayout.defaultProps = { + tabs: "default value" +}; + +export default TabbedShowLayout; +//// [jsDeclarationsReactComponents5.jsx] +import React from 'react'; +import PropTypes from 'prop-types'; + +function Tree({ allowDropOnRoot }) { + return
+} + +Tree.propTypes = { + classes: PropTypes.object, +}; + +Tree.defaultProps = { + classes: {}, + parentSource: 'parent_id', +}; + +export default Tree; + +//// [jsDeclarationsReactComponents1.js] +/// +import React from "react"; +import PropTypes from "prop-types"; +const TabbedShowLayout = ({}) => { + return (React.createElement("div", null)); +}; +TabbedShowLayout.propTypes = { + version: PropTypes.number, +}; +TabbedShowLayout.defaultProps = { + tabs: undefined +}; +export default TabbedShowLayout; +//// [jsDeclarationsReactComponents2.js] +import React from "react"; +/** + * @type {React.SFC} + */ +const TabbedShowLayout = () => { + return (React.createElement("div", { className: "", key: "" }, "ok")); +}; +TabbedShowLayout.defaultProps = { + tabs: "default value" +}; +export default TabbedShowLayout; +//// [jsDeclarationsReactComponents3.js] +import React from "react"; +/** + * @type {{defaultProps: {tabs: string}} & ((props?: {elem: string}) => JSX.Element)} + */ +const TabbedShowLayout = () => { + return (React.createElement("div", { className: "", key: "" }, "ok")); +}; +TabbedShowLayout.defaultProps = { + tabs: "default value" +}; +export default TabbedShowLayout; +//// [jsDeclarationsReactComponents4.js] +import React from "react"; +const TabbedShowLayout = (/** @type {{className: string}}*/ prop) => { + return (React.createElement("div", { className: prop.className, key: "" }, "ok")); +}; +TabbedShowLayout.defaultProps = { + tabs: "default value" +}; +export default TabbedShowLayout; +//// [jsDeclarationsReactComponents5.js] +import React from 'react'; +import PropTypes from 'prop-types'; +function Tree({ allowDropOnRoot }) { + return React.createElement("div", null); +} +Tree.propTypes = { + classes: PropTypes.object, +}; +Tree.defaultProps = { + classes: {}, + parentSource: 'parent_id', +}; +export default Tree; + + +//// [jsDeclarationsReactComponents1.d.ts] +/// +export default TabbedShowLayout; +declare function TabbedShowLayout({}: {}): JSX.Element; +declare namespace TabbedShowLayout { + namespace propTypes { + let version: PropTypes.Requireable; + } + namespace defaultProps { + let tabs: undefined; + } +} +import PropTypes from "prop-types"; +//// [jsDeclarationsReactComponents2.d.ts] +export default TabbedShowLayout; +/** + * @type {React.SFC} + */ +declare const TabbedShowLayout: React.SFC; +import React from "react"; +//// [jsDeclarationsReactComponents3.d.ts] +export default TabbedShowLayout; +/** + * @type {{defaultProps: {tabs: string}} & ((props?: {elem: string}) => JSX.Element)} + */ +declare const TabbedShowLayout: { + defaultProps: { + tabs: string; + }; +} & ((props?: { + elem: string; +}) => JSX.Element); +//// [jsDeclarationsReactComponents4.d.ts] +export default TabbedShowLayout; +declare function TabbedShowLayout(prop: { + className: string; +}): JSX.Element; +declare namespace TabbedShowLayout { + namespace defaultProps { + let tabs: string; + } +} +//// [jsDeclarationsReactComponents5.d.ts] +export default Tree; +declare function Tree({ allowDropOnRoot }: { + allowDropOnRoot: any; +}): JSX.Element; +declare namespace Tree { + namespace propTypes { + let classes: PropTypes.Requireable; + } + namespace defaultProps { + let classes_1: {}; + export { classes_1 as classes }; + export let parentSource: string; + } +} +import PropTypes from 'prop-types'; diff --git a/tests/baselines/reference/jsDeclarationsReactComponents.symbols b/tests/baselines/reference/jsDeclarationsReactComponents(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/jsDeclarationsReactComponents.symbols rename to tests/baselines/reference/jsDeclarationsReactComponents(target=es2015).symbols diff --git a/tests/baselines/reference/jsDeclarationsReactComponents.types b/tests/baselines/reference/jsDeclarationsReactComponents(target=es2015).types similarity index 100% rename from tests/baselines/reference/jsDeclarationsReactComponents.types rename to tests/baselines/reference/jsDeclarationsReactComponents(target=es2015).types diff --git a/tests/baselines/reference/jsDeclarationsReactComponents.js b/tests/baselines/reference/jsDeclarationsReactComponents(target=es5).js similarity index 100% rename from tests/baselines/reference/jsDeclarationsReactComponents.js rename to tests/baselines/reference/jsDeclarationsReactComponents(target=es5).js diff --git a/tests/baselines/reference/jsDeclarationsReactComponents(target=es5).symbols b/tests/baselines/reference/jsDeclarationsReactComponents(target=es5).symbols new file mode 100644 index 0000000000000..e6c234bbc2320 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsReactComponents(target=es5).symbols @@ -0,0 +1,201 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsReactComponents.ts] //// + +=== jsDeclarationsReactComponents1.jsx === +/// +import React from "react"; +>React : Symbol(React, Decl(jsDeclarationsReactComponents1.jsx, 1, 6)) + +import PropTypes from "prop-types" +>PropTypes : Symbol(PropTypes, Decl(jsDeclarationsReactComponents1.jsx, 2, 6)) + +const TabbedShowLayout = ({ +>TabbedShowLayout : Symbol(TabbedShowLayout, Decl(jsDeclarationsReactComponents1.jsx, 4, 5), Decl(jsDeclarationsReactComponents1.jsx, 9, 2), Decl(jsDeclarationsReactComponents1.jsx, 14, 2)) + +}) => { + return ( +
+>div : Symbol(JSX.IntrinsicElements.div, Decl(react16.d.ts, 2546, 114)) + + ); +}; + +TabbedShowLayout.propTypes = { +>TabbedShowLayout.propTypes : Symbol(TabbedShowLayout.propTypes, Decl(jsDeclarationsReactComponents1.jsx, 9, 2)) +>TabbedShowLayout : Symbol(TabbedShowLayout, Decl(jsDeclarationsReactComponents1.jsx, 4, 5), Decl(jsDeclarationsReactComponents1.jsx, 9, 2), Decl(jsDeclarationsReactComponents1.jsx, 14, 2)) +>propTypes : Symbol(TabbedShowLayout.propTypes, Decl(jsDeclarationsReactComponents1.jsx, 9, 2)) + + version: PropTypes.number, +>version : Symbol(version, Decl(jsDeclarationsReactComponents1.jsx, 11, 30)) +>PropTypes.number : Symbol(PropTypes.number, Decl(react16.d.ts, 64, 16)) +>PropTypes : Symbol(PropTypes, Decl(jsDeclarationsReactComponents1.jsx, 2, 6)) +>number : Symbol(PropTypes.number, Decl(react16.d.ts, 64, 16)) + +}; + +TabbedShowLayout.defaultProps = { +>TabbedShowLayout.defaultProps : Symbol(TabbedShowLayout.defaultProps, Decl(jsDeclarationsReactComponents1.jsx, 14, 2)) +>TabbedShowLayout : Symbol(TabbedShowLayout, Decl(jsDeclarationsReactComponents1.jsx, 4, 5), Decl(jsDeclarationsReactComponents1.jsx, 9, 2), Decl(jsDeclarationsReactComponents1.jsx, 14, 2)) +>defaultProps : Symbol(TabbedShowLayout.defaultProps, Decl(jsDeclarationsReactComponents1.jsx, 14, 2)) + + tabs: undefined +>tabs : Symbol(tabs, Decl(jsDeclarationsReactComponents1.jsx, 16, 33)) +>undefined : Symbol(undefined) + +}; + +export default TabbedShowLayout; +>TabbedShowLayout : Symbol(TabbedShowLayout, Decl(jsDeclarationsReactComponents1.jsx, 4, 5), Decl(jsDeclarationsReactComponents1.jsx, 9, 2), Decl(jsDeclarationsReactComponents1.jsx, 14, 2)) + +=== jsDeclarationsReactComponents2.jsx === +import React from "react"; +>React : Symbol(React, Decl(jsDeclarationsReactComponents2.jsx, 0, 6)) + +/** + * @type {React.SFC} + */ +const TabbedShowLayout = () => { +>TabbedShowLayout : Symbol(TabbedShowLayout, Decl(jsDeclarationsReactComponents2.jsx, 4, 5), Decl(jsDeclarationsReactComponents2.jsx, 10, 2)) + + return ( +
+>div : Symbol(JSX.IntrinsicElements.div, Decl(react16.d.ts, 2546, 114)) +>className : Symbol(className, Decl(jsDeclarationsReactComponents2.jsx, 6, 12)) +>key : Symbol(key, Decl(jsDeclarationsReactComponents2.jsx, 6, 25)) + + ok +
+>div : Symbol(JSX.IntrinsicElements.div, Decl(react16.d.ts, 2546, 114)) + + ); +}; + +TabbedShowLayout.defaultProps = { +>TabbedShowLayout.defaultProps : Symbol(React.StatelessComponent.defaultProps, Decl(react16.d.ts, 410, 46)) +>TabbedShowLayout : Symbol(TabbedShowLayout, Decl(jsDeclarationsReactComponents2.jsx, 4, 5), Decl(jsDeclarationsReactComponents2.jsx, 10, 2)) +>defaultProps : Symbol(React.StatelessComponent.defaultProps, Decl(react16.d.ts, 410, 46)) + + tabs: "default value" +>tabs : Symbol(tabs, Decl(jsDeclarationsReactComponents2.jsx, 12, 33)) + +}; + +export default TabbedShowLayout; +>TabbedShowLayout : Symbol(TabbedShowLayout, Decl(jsDeclarationsReactComponents2.jsx, 4, 5), Decl(jsDeclarationsReactComponents2.jsx, 10, 2)) + +=== jsDeclarationsReactComponents3.jsx === +import React from "react"; +>React : Symbol(React, Decl(jsDeclarationsReactComponents3.jsx, 0, 6)) + +/** + * @type {{defaultProps: {tabs: string}} & ((props?: {elem: string}) => JSX.Element)} + */ +const TabbedShowLayout = () => { +>TabbedShowLayout : Symbol(TabbedShowLayout, Decl(jsDeclarationsReactComponents3.jsx, 4, 5), Decl(jsDeclarationsReactComponents3.jsx, 10, 2)) + + return ( +
+>div : Symbol(JSX.IntrinsicElements.div, Decl(react16.d.ts, 2546, 114)) +>className : Symbol(className, Decl(jsDeclarationsReactComponents3.jsx, 6, 12)) +>key : Symbol(key, Decl(jsDeclarationsReactComponents3.jsx, 6, 25)) + + ok +
+>div : Symbol(JSX.IntrinsicElements.div, Decl(react16.d.ts, 2546, 114)) + + ); +}; + +TabbedShowLayout.defaultProps = { +>TabbedShowLayout.defaultProps : Symbol(defaultProps, Decl(jsDeclarationsReactComponents3.jsx, 2, 11)) +>TabbedShowLayout : Symbol(TabbedShowLayout, Decl(jsDeclarationsReactComponents3.jsx, 4, 5), Decl(jsDeclarationsReactComponents3.jsx, 10, 2)) +>defaultProps : Symbol(defaultProps, Decl(jsDeclarationsReactComponents3.jsx, 2, 11)) + + tabs: "default value" +>tabs : Symbol(tabs, Decl(jsDeclarationsReactComponents3.jsx, 12, 33)) + +}; + +export default TabbedShowLayout; +>TabbedShowLayout : Symbol(TabbedShowLayout, Decl(jsDeclarationsReactComponents3.jsx, 4, 5), Decl(jsDeclarationsReactComponents3.jsx, 10, 2)) + +=== jsDeclarationsReactComponents4.jsx === +import React from "react"; +>React : Symbol(React, Decl(jsDeclarationsReactComponents4.jsx, 0, 6)) + +const TabbedShowLayout = (/** @type {{className: string}}*/prop) => { +>TabbedShowLayout : Symbol(TabbedShowLayout, Decl(jsDeclarationsReactComponents4.jsx, 1, 5), Decl(jsDeclarationsReactComponents4.jsx, 7, 2)) +>prop : Symbol(prop, Decl(jsDeclarationsReactComponents4.jsx, 1, 26)) + + return ( +
+>div : Symbol(JSX.IntrinsicElements.div, Decl(react16.d.ts, 2546, 114)) +>className : Symbol(className, Decl(jsDeclarationsReactComponents4.jsx, 3, 12)) +>prop.className : Symbol(className, Decl(jsDeclarationsReactComponents4.jsx, 1, 38)) +>prop : Symbol(prop, Decl(jsDeclarationsReactComponents4.jsx, 1, 26)) +>className : Symbol(className, Decl(jsDeclarationsReactComponents4.jsx, 1, 38)) +>key : Symbol(key, Decl(jsDeclarationsReactComponents4.jsx, 3, 39)) + + ok +
+>div : Symbol(JSX.IntrinsicElements.div, Decl(react16.d.ts, 2546, 114)) + + ); +}; + +TabbedShowLayout.defaultProps = { +>TabbedShowLayout.defaultProps : Symbol(TabbedShowLayout.defaultProps, Decl(jsDeclarationsReactComponents4.jsx, 7, 2)) +>TabbedShowLayout : Symbol(TabbedShowLayout, Decl(jsDeclarationsReactComponents4.jsx, 1, 5), Decl(jsDeclarationsReactComponents4.jsx, 7, 2)) +>defaultProps : Symbol(TabbedShowLayout.defaultProps, Decl(jsDeclarationsReactComponents4.jsx, 7, 2)) + + tabs: "default value" +>tabs : Symbol(tabs, Decl(jsDeclarationsReactComponents4.jsx, 9, 33)) + +}; + +export default TabbedShowLayout; +>TabbedShowLayout : Symbol(TabbedShowLayout, Decl(jsDeclarationsReactComponents4.jsx, 1, 5), Decl(jsDeclarationsReactComponents4.jsx, 7, 2)) + +=== jsDeclarationsReactComponents5.jsx === +import React from 'react'; +>React : Symbol(React, Decl(jsDeclarationsReactComponents5.jsx, 0, 6)) + +import PropTypes from 'prop-types'; +>PropTypes : Symbol(PropTypes, Decl(jsDeclarationsReactComponents5.jsx, 1, 6)) + +function Tree({ allowDropOnRoot }) { +>Tree : Symbol(Tree, Decl(jsDeclarationsReactComponents5.jsx, 1, 35), Decl(jsDeclarationsReactComponents5.jsx, 5, 1), Decl(jsDeclarationsReactComponents5.jsx, 9, 2)) +>allowDropOnRoot : Symbol(allowDropOnRoot, Decl(jsDeclarationsReactComponents5.jsx, 3, 15)) + + return
+>div : Symbol(JSX.IntrinsicElements.div, Decl(react16.d.ts, 2546, 114)) +} + +Tree.propTypes = { +>Tree.propTypes : Symbol(Tree.propTypes, Decl(jsDeclarationsReactComponents5.jsx, 5, 1)) +>Tree : Symbol(Tree, Decl(jsDeclarationsReactComponents5.jsx, 1, 35), Decl(jsDeclarationsReactComponents5.jsx, 5, 1), Decl(jsDeclarationsReactComponents5.jsx, 9, 2)) +>propTypes : Symbol(Tree.propTypes, Decl(jsDeclarationsReactComponents5.jsx, 5, 1)) + + classes: PropTypes.object, +>classes : Symbol(classes, Decl(jsDeclarationsReactComponents5.jsx, 7, 18)) +>PropTypes.object : Symbol(PropTypes.object, Decl(react16.d.ts, 65, 16)) +>PropTypes : Symbol(PropTypes, Decl(jsDeclarationsReactComponents5.jsx, 1, 6)) +>object : Symbol(PropTypes.object, Decl(react16.d.ts, 65, 16)) + +}; + +Tree.defaultProps = { +>Tree.defaultProps : Symbol(Tree.defaultProps, Decl(jsDeclarationsReactComponents5.jsx, 9, 2)) +>Tree : Symbol(Tree, Decl(jsDeclarationsReactComponents5.jsx, 1, 35), Decl(jsDeclarationsReactComponents5.jsx, 5, 1), Decl(jsDeclarationsReactComponents5.jsx, 9, 2)) +>defaultProps : Symbol(Tree.defaultProps, Decl(jsDeclarationsReactComponents5.jsx, 9, 2)) + + classes: {}, +>classes : Symbol(classes, Decl(jsDeclarationsReactComponents5.jsx, 11, 21)) + + parentSource: 'parent_id', +>parentSource : Symbol(parentSource, Decl(jsDeclarationsReactComponents5.jsx, 12, 16)) + +}; + +export default Tree; +>Tree : Symbol(Tree, Decl(jsDeclarationsReactComponents5.jsx, 1, 35), Decl(jsDeclarationsReactComponents5.jsx, 5, 1), Decl(jsDeclarationsReactComponents5.jsx, 9, 2)) + diff --git a/tests/baselines/reference/jsDeclarationsReactComponents(target=es5).types b/tests/baselines/reference/jsDeclarationsReactComponents(target=es5).types new file mode 100644 index 0000000000000..ead47f32a6163 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsReactComponents(target=es5).types @@ -0,0 +1,347 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsReactComponents.ts] //// + +=== Performance Stats === +Assignability cache: 2,500 +Type Count: 10,000 +Instantiation count: 100,000 +Symbol count: 50,000 + +=== jsDeclarationsReactComponents1.jsx === +/// +import React from "react"; +>React : typeof React +> : ^^^^^^^^^^^^ + +import PropTypes from "prop-types" +>PropTypes : typeof PropTypes +> : ^^^^^^^^^^^^^^^^ + +const TabbedShowLayout = ({ +>TabbedShowLayout : { ({}: {}): JSX.Element; propTypes: { version: PropTypes.Requireable; }; defaultProps: { tabs: undefined; }; } +> : ^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>({}) => { return (
);} : { ({}: {}): JSX.Element; propTypes: { version: PropTypes.Requireable; }; defaultProps: { tabs: undefined; }; } +> : ^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +}) => { + return ( +>(
) : JSX.Element +> : ^^^^^^^^^^^ + +
+>
: JSX.Element +> : ^^^^^^^^^^^ +>div : any +> : ^^^ + + ); +}; + +TabbedShowLayout.propTypes = { +>TabbedShowLayout.propTypes = { version: PropTypes.number,} : { version: PropTypes.Requireable; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>TabbedShowLayout.propTypes : { version: PropTypes.Requireable; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>TabbedShowLayout : { ({}: {}): JSX.Element; propTypes: { version: PropTypes.Requireable; }; defaultProps: { tabs: undefined; }; } +> : ^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>propTypes : { version: PropTypes.Requireable; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ version: PropTypes.number,} : { version: PropTypes.Requireable; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + version: PropTypes.number, +>version : PropTypes.Requireable +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>PropTypes.number : PropTypes.Requireable +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>PropTypes : typeof PropTypes +> : ^^^^^^^^^^^^^^^^ +>number : PropTypes.Requireable +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +}; + +TabbedShowLayout.defaultProps = { +>TabbedShowLayout.defaultProps = { tabs: undefined} : { tabs: undefined; } +> : ^^^^^^^^^^^^^^^^^^^^ +>TabbedShowLayout.defaultProps : { tabs: undefined; } +> : ^^^^^^^^^^^^^^^^^^^^ +>TabbedShowLayout : { ({}: {}): JSX.Element; propTypes: { version: PropTypes.Requireable; }; defaultProps: { tabs: undefined; }; } +> : ^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>defaultProps : { tabs: undefined; } +> : ^^^^^^^^^^^^^^^^^^^^ +>{ tabs: undefined} : { tabs: undefined; } +> : ^^^^^^^^^^^^^^^^^^^^ + + tabs: undefined +>tabs : undefined +> : ^^^^^^^^^ +>undefined : undefined +> : ^^^^^^^^^ + +}; + +export default TabbedShowLayout; +>TabbedShowLayout : { ({}: {}): JSX.Element; propTypes: { version: PropTypes.Requireable; }; defaultProps: { tabs: undefined; }; } +> : ^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +=== jsDeclarationsReactComponents2.jsx === +import React from "react"; +>React : typeof React +> : ^^^^^^^^^^^^ + +/** + * @type {React.SFC} + */ +const TabbedShowLayout = () => { +>TabbedShowLayout : React.SFC<{}> +> : ^^^^^^^^^^^^^ +>() => { return (
ok
);} : { (): JSX.Element; defaultProps: Partial<{}> | undefined; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + return ( +>(
ok
) : JSX.Element +> : ^^^^^^^^^^^ + +
+>
ok
: JSX.Element +> : ^^^^^^^^^^^ +>div : any +> : ^^^ +>className : string +> : ^^^^^^ +>key : string +> : ^^^^^^ + + ok +
+>div : any +> : ^^^ + + ); +}; + +TabbedShowLayout.defaultProps = { +>TabbedShowLayout.defaultProps = { tabs: "default value"} : { tabs: string; } +> : ^^^^^^^^^^^^^^^^^ +>TabbedShowLayout.defaultProps : Partial<{}> | undefined +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>TabbedShowLayout : React.SFC<{}> +> : ^^^^^^^^^^^^^ +>defaultProps : Partial<{}> | undefined +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>{ tabs: "default value"} : { tabs: string; } +> : ^^^^^^^^^^^^^^^^^ + + tabs: "default value" +>tabs : string +> : ^^^^^^ +>"default value" : "default value" +> : ^^^^^^^^^^^^^^^ + +}; + +export default TabbedShowLayout; +>TabbedShowLayout : React.SFC<{}> +> : ^^^^^^^^^^^^^ + +=== jsDeclarationsReactComponents3.jsx === +import React from "react"; +>React : typeof React +> : ^^^^^^^^^^^^ + +/** + * @type {{defaultProps: {tabs: string}} & ((props?: {elem: string}) => JSX.Element)} + */ +const TabbedShowLayout = () => { +>TabbedShowLayout : { defaultProps: { tabs: string; }; } & ((props?: { elem: string; }) => JSX.Element) +> : ^^^^^^^^^^^^^^^^ ^^^^^^^^ ^^^ ^^^^^ ^ +>() => { return (
ok
);} : { (): JSX.Element; defaultProps: { tabs: string; }; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^ + + return ( +>(
ok
) : JSX.Element +> : ^^^^^^^^^^^ + +
+>
ok
: JSX.Element +> : ^^^^^^^^^^^ +>div : any +> : ^^^ +>className : string +> : ^^^^^^ +>key : string +> : ^^^^^^ + + ok +
+>div : any +> : ^^^ + + ); +}; + +TabbedShowLayout.defaultProps = { +>TabbedShowLayout.defaultProps = { tabs: "default value"} : { tabs: string; } +> : ^^^^^^^^^^^^^^^^^ +>TabbedShowLayout.defaultProps : { tabs: string; } +> : ^^^^^^^^ ^^^ +>TabbedShowLayout : { defaultProps: { tabs: string; }; } & ((props?: { elem: string; }) => JSX.Element) +> : ^^^^^^^^^^^^^^^^ ^^^^^^^^ ^^^ ^^^^^ ^ +>defaultProps : { tabs: string; } +> : ^^^^^^^^ ^^^ +>{ tabs: "default value"} : { tabs: string; } +> : ^^^^^^^^^^^^^^^^^ + + tabs: "default value" +>tabs : string +> : ^^^^^^ +>"default value" : "default value" +> : ^^^^^^^^^^^^^^^ + +}; + +export default TabbedShowLayout; +>TabbedShowLayout : { defaultProps: { tabs: string; }; } & ((props?: { elem: string; }) => JSX.Element) +> : ^^^^^^^^^^^^^^^^ ^^^^^^^^ ^^^ ^^^^^ ^ + +=== jsDeclarationsReactComponents4.jsx === +import React from "react"; +>React : typeof React +> : ^^^^^^^^^^^^ + +const TabbedShowLayout = (/** @type {{className: string}}*/prop) => { +>TabbedShowLayout : { (prop: { className: string; }): JSX.Element; defaultProps: { tabs: string; }; } +> : ^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>(/** @type {{className: string}}*/prop) => { return (
ok
);} : { (prop: { className: string; }): JSX.Element; defaultProps: { tabs: string; }; } +> : ^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>prop : { className: string; } +> : ^^^^^^^^^^^^^ ^^^ + + return ( +>(
ok
) : JSX.Element +> : ^^^^^^^^^^^ + +
+>
ok
: JSX.Element +> : ^^^^^^^^^^^ +>div : any +> : ^^^ +>className : string +> : ^^^^^^ +>prop.className : string +> : ^^^^^^ +>prop : { className: string; } +> : ^^^^^^^^^^^^^ ^^^ +>className : string +> : ^^^^^^ +>key : string +> : ^^^^^^ + + ok +
+>div : any +> : ^^^ + + ); +}; + +TabbedShowLayout.defaultProps = { +>TabbedShowLayout.defaultProps = { tabs: "default value"} : { tabs: string; } +> : ^^^^^^^^^^^^^^^^^ +>TabbedShowLayout.defaultProps : { tabs: string; } +> : ^^^^^^^^^^^^^^^^^ +>TabbedShowLayout : { (prop: { className: string; }): JSX.Element; defaultProps: { tabs: string; }; } +> : ^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>defaultProps : { tabs: string; } +> : ^^^^^^^^^^^^^^^^^ +>{ tabs: "default value"} : { tabs: string; } +> : ^^^^^^^^^^^^^^^^^ + + tabs: "default value" +>tabs : string +> : ^^^^^^ +>"default value" : "default value" +> : ^^^^^^^^^^^^^^^ + +}; + +export default TabbedShowLayout; +>TabbedShowLayout : { (prop: { className: string; }): JSX.Element; defaultProps: { tabs: string; }; } +> : ^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +=== jsDeclarationsReactComponents5.jsx === +import React from 'react'; +>React : typeof React +> : ^^^^^^^^^^^^ + +import PropTypes from 'prop-types'; +>PropTypes : typeof PropTypes +> : ^^^^^^^^^^^^^^^^ + +function Tree({ allowDropOnRoot }) { +>Tree : typeof Tree +> : ^^^^^^^^^^^ +>allowDropOnRoot : any +> : ^^^ + + return
+>
: JSX.Element +> : ^^^^^^^^^^^ +>div : any +> : ^^^ +} + +Tree.propTypes = { +>Tree.propTypes = { classes: PropTypes.object,} : { classes: PropTypes.Requireable; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>Tree.propTypes : { classes: PropTypes.Requireable; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>Tree : typeof Tree +> : ^^^^^^^^^^^ +>propTypes : { classes: PropTypes.Requireable; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ classes: PropTypes.object,} : { classes: PropTypes.Requireable; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + classes: PropTypes.object, +>classes : PropTypes.Requireable +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>PropTypes.object : PropTypes.Requireable +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>PropTypes : typeof PropTypes +> : ^^^^^^^^^^^^^^^^ +>object : PropTypes.Requireable +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +}; + +Tree.defaultProps = { +>Tree.defaultProps = { classes: {}, parentSource: 'parent_id',} : { classes: {}; parentSource: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>Tree.defaultProps : { classes: {}; parentSource: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>Tree : typeof Tree +> : ^^^^^^^^^^^ +>defaultProps : { classes: {}; parentSource: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ classes: {}, parentSource: 'parent_id',} : { classes: {}; parentSource: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + classes: {}, +>classes : {} +> : ^^ +>{} : {} +> : ^^ + + parentSource: 'parent_id', +>parentSource : string +> : ^^^^^^ +>'parent_id' : "parent_id" +> : ^^^^^^^^^^^ + +}; + +export default Tree; +>Tree : typeof Tree +> : ^^^^^^^^^^^ + diff --git a/tests/baselines/reference/jsDeclarationsReexportAliases(target=es2015).js b/tests/baselines/reference/jsDeclarationsReexportAliases(target=es2015).js new file mode 100644 index 0000000000000..7ce3a75d6ef1f --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsReexportAliases(target=es2015).js @@ -0,0 +1,29 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsReexportAliases.ts] //// + +//// [cls.js] +export default class Foo {} + +//// [usage.js] +import {default as Fooa} from "./cls"; + +export const x = new Fooa(); + +export {default as Foob} from "./cls"; + + +//// [cls.js] +export default class Foo { +} +//// [usage.js] +import { default as Fooa } from "./cls"; +export const x = new Fooa(); +export { default as Foob } from "./cls"; + + +//// [cls.d.ts] +export default class Foo { +} +//// [usage.d.ts] +export const x: Fooa; +export { default as Foob } from "./cls"; +import { default as Fooa } from "./cls"; diff --git a/tests/baselines/reference/jsDeclarationsReexportAliases.symbols b/tests/baselines/reference/jsDeclarationsReexportAliases(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/jsDeclarationsReexportAliases.symbols rename to tests/baselines/reference/jsDeclarationsReexportAliases(target=es2015).symbols diff --git a/tests/baselines/reference/jsDeclarationsReexportAliases.types b/tests/baselines/reference/jsDeclarationsReexportAliases(target=es2015).types similarity index 100% rename from tests/baselines/reference/jsDeclarationsReexportAliases.types rename to tests/baselines/reference/jsDeclarationsReexportAliases(target=es2015).types diff --git a/tests/baselines/reference/jsDeclarationsReexportAliases.js b/tests/baselines/reference/jsDeclarationsReexportAliases(target=es5).js similarity index 100% rename from tests/baselines/reference/jsDeclarationsReexportAliases.js rename to tests/baselines/reference/jsDeclarationsReexportAliases(target=es5).js diff --git a/tests/baselines/reference/jsDeclarationsReexportAliases(target=es5).symbols b/tests/baselines/reference/jsDeclarationsReexportAliases(target=es5).symbols new file mode 100644 index 0000000000000..048bb95bc2236 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsReexportAliases(target=es5).symbols @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsReexportAliases.ts] //// + +=== cls.js === +export default class Foo {} +>Foo : Symbol(Foo, Decl(cls.js, 0, 0)) + +=== usage.js === +import {default as Fooa} from "./cls"; +>default : Symbol(Fooa, Decl(cls.js, 0, 0)) +>Fooa : Symbol(Fooa, Decl(usage.js, 0, 8)) + +export const x = new Fooa(); +>x : Symbol(x, Decl(usage.js, 2, 12)) +>Fooa : Symbol(Fooa, Decl(usage.js, 0, 8)) + +export {default as Foob} from "./cls"; +>default : Symbol(Fooa, Decl(cls.js, 0, 0)) +>Foob : Symbol(Foob, Decl(usage.js, 4, 8)) + diff --git a/tests/baselines/reference/jsDeclarationsReexportAliases(target=es5).types b/tests/baselines/reference/jsDeclarationsReexportAliases(target=es5).types new file mode 100644 index 0000000000000..3266c7d17709b --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsReexportAliases(target=es5).types @@ -0,0 +1,28 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsReexportAliases.ts] //// + +=== cls.js === +export default class Foo {} +>Foo : Foo +> : ^^^ + +=== usage.js === +import {default as Fooa} from "./cls"; +>default : typeof Fooa +> : ^^^^^^^^^^^ +>Fooa : typeof Fooa +> : ^^^^^^^^^^^ + +export const x = new Fooa(); +>x : Fooa +> : ^^^^ +>new Fooa() : Fooa +> : ^^^^ +>Fooa : typeof Fooa +> : ^^^^^^^^^^^ + +export {default as Foob} from "./cls"; +>default : typeof Fooa +> : ^^^^^^^^^^^ +>Foob : typeof Fooa +> : ^^^^^^^^^^^ + diff --git a/tests/baselines/reference/jsDeclarationsReexportAliasesEsModuleInterop(target=es2015).js b/tests/baselines/reference/jsDeclarationsReexportAliasesEsModuleInterop(target=es2015).js new file mode 100644 index 0000000000000..8bd28db8784da --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsReexportAliasesEsModuleInterop(target=es2015).js @@ -0,0 +1,32 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsReexportAliasesEsModuleInterop.ts] //// + +//// [cls.js] +class Foo {} +module.exports = Foo; + +//// [usage.js] +import {default as Fooa} from "./cls"; + +export const x = new Fooa(); + +export {default as Foob} from "./cls"; + + +//// [cls.js] +class Foo { +} +module.exports = Foo; +//// [usage.js] +import { default as Fooa } from "./cls"; +export const x = new Fooa(); +export { default as Foob } from "./cls"; + + +//// [cls.d.ts] +export = Foo; +declare class Foo { +} +//// [usage.d.ts] +export const x: Fooa; +export { default as Foob } from "./cls"; +import { default as Fooa } from "./cls"; diff --git a/tests/baselines/reference/jsDeclarationsReexportAliasesEsModuleInterop.symbols b/tests/baselines/reference/jsDeclarationsReexportAliasesEsModuleInterop(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/jsDeclarationsReexportAliasesEsModuleInterop.symbols rename to tests/baselines/reference/jsDeclarationsReexportAliasesEsModuleInterop(target=es2015).symbols diff --git a/tests/baselines/reference/jsDeclarationsReexportAliasesEsModuleInterop.types b/tests/baselines/reference/jsDeclarationsReexportAliasesEsModuleInterop(target=es2015).types similarity index 100% rename from tests/baselines/reference/jsDeclarationsReexportAliasesEsModuleInterop.types rename to tests/baselines/reference/jsDeclarationsReexportAliasesEsModuleInterop(target=es2015).types diff --git a/tests/baselines/reference/jsDeclarationsReexportAliasesEsModuleInterop.js b/tests/baselines/reference/jsDeclarationsReexportAliasesEsModuleInterop(target=es5).js similarity index 100% rename from tests/baselines/reference/jsDeclarationsReexportAliasesEsModuleInterop.js rename to tests/baselines/reference/jsDeclarationsReexportAliasesEsModuleInterop(target=es5).js diff --git a/tests/baselines/reference/jsDeclarationsReexportAliasesEsModuleInterop(target=es5).symbols b/tests/baselines/reference/jsDeclarationsReexportAliasesEsModuleInterop(target=es5).symbols new file mode 100644 index 0000000000000..879c845908d78 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsReexportAliasesEsModuleInterop(target=es5).symbols @@ -0,0 +1,25 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsReexportAliasesEsModuleInterop.ts] //// + +=== cls.js === +class Foo {} +>Foo : Symbol(Foo, Decl(cls.js, 0, 0)) + +module.exports = Foo; +>module.exports : Symbol(module.exports, Decl(cls.js, 0, 0)) +>module : Symbol(export=, Decl(cls.js, 0, 12)) +>exports : Symbol(export=, Decl(cls.js, 0, 12)) +>Foo : Symbol(Foo, Decl(cls.js, 0, 0)) + +=== usage.js === +import {default as Fooa} from "./cls"; +>default : Symbol(export=, Decl(cls.js, 0, 12)) +>Fooa : Symbol(Fooa, Decl(usage.js, 0, 8)) + +export const x = new Fooa(); +>x : Symbol(x, Decl(usage.js, 2, 12)) +>Fooa : Symbol(Fooa, Decl(usage.js, 0, 8)) + +export {default as Foob} from "./cls"; +>default : Symbol(export=, Decl(cls.js, 0, 12)) +>Foob : Symbol(Foob, Decl(usage.js, 4, 8)) + diff --git a/tests/baselines/reference/jsDeclarationsReexportAliasesEsModuleInterop(target=es5).types b/tests/baselines/reference/jsDeclarationsReexportAliasesEsModuleInterop(target=es5).types new file mode 100644 index 0000000000000..9998584e1eaf3 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsReexportAliasesEsModuleInterop(target=es5).types @@ -0,0 +1,40 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsReexportAliasesEsModuleInterop.ts] //// + +=== cls.js === +class Foo {} +>Foo : Foo +> : ^^^ + +module.exports = Foo; +>module.exports = Foo : typeof Foo +> : ^^^^^^^^^^ +>module.exports : typeof Foo +> : ^^^^^^^^^^ +>module : { exports: typeof Foo; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^ +>exports : typeof Foo +> : ^^^^^^^^^^ +>Foo : typeof Foo +> : ^^^^^^^^^^ + +=== usage.js === +import {default as Fooa} from "./cls"; +>default : typeof Fooa +> : ^^^^^^^^^^^ +>Fooa : typeof Fooa +> : ^^^^^^^^^^^ + +export const x = new Fooa(); +>x : Fooa +> : ^^^^ +>new Fooa() : Fooa +> : ^^^^ +>Fooa : typeof Fooa +> : ^^^^^^^^^^^ + +export {default as Foob} from "./cls"; +>default : typeof Fooa +> : ^^^^^^^^^^^ +>Foob : typeof Fooa +> : ^^^^^^^^^^^ + diff --git a/tests/baselines/reference/jsDeclarationsReexportedCjsAlias(target=es2015).js b/tests/baselines/reference/jsDeclarationsReexportedCjsAlias(target=es2015).js new file mode 100644 index 0000000000000..2e366fa118690 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsReexportedCjsAlias(target=es2015).js @@ -0,0 +1,64 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsReexportedCjsAlias.ts] //// + +//// [lib.js] +/** + * @param {string} a + */ +function bar(a) { + return a + a; +} + +class SomeClass { + a() { + return 1; + } +} + +module.exports = { + bar, + SomeClass +} +//// [main.js] +const { SomeClass, SomeClass: Another } = require('./lib'); + +module.exports = { + SomeClass, + Another +} + +//// [lib.js] +/** + * @param {string} a + */ +function bar(a) { + return a + a; +} +class SomeClass { + a() { + return 1; + } +} +module.exports = { + bar, + SomeClass +}; +//// [main.js] +const { SomeClass, SomeClass: Another } = require('./lib'); +module.exports = { + SomeClass, + Another +}; + + +//// [lib.d.ts] +/** + * @param {string} a + */ +export function bar(a: string): string; +export class SomeClass { + a(): number; +} +//// [main.d.ts] +import { SomeClass } from "./lib"; +import { SomeClass as Another } from "./lib"; +export { SomeClass, Another }; diff --git a/tests/baselines/reference/jsDeclarationsReexportedCjsAlias.symbols b/tests/baselines/reference/jsDeclarationsReexportedCjsAlias(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/jsDeclarationsReexportedCjsAlias.symbols rename to tests/baselines/reference/jsDeclarationsReexportedCjsAlias(target=es2015).symbols diff --git a/tests/baselines/reference/jsDeclarationsReexportedCjsAlias.types b/tests/baselines/reference/jsDeclarationsReexportedCjsAlias(target=es2015).types similarity index 100% rename from tests/baselines/reference/jsDeclarationsReexportedCjsAlias.types rename to tests/baselines/reference/jsDeclarationsReexportedCjsAlias(target=es2015).types diff --git a/tests/baselines/reference/jsDeclarationsReexportedCjsAlias.js b/tests/baselines/reference/jsDeclarationsReexportedCjsAlias(target=es5).js similarity index 100% rename from tests/baselines/reference/jsDeclarationsReexportedCjsAlias.js rename to tests/baselines/reference/jsDeclarationsReexportedCjsAlias(target=es5).js diff --git a/tests/baselines/reference/jsDeclarationsReexportedCjsAlias(target=es5).symbols b/tests/baselines/reference/jsDeclarationsReexportedCjsAlias(target=es5).symbols new file mode 100644 index 0000000000000..06f38e62d527f --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsReexportedCjsAlias(target=es5).symbols @@ -0,0 +1,55 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsReexportedCjsAlias.ts] //// + +=== main.js === +const { SomeClass, SomeClass: Another } = require('./lib'); +>SomeClass : Symbol(SomeClass, Decl(main.js, 0, 7)) +>SomeClass : Symbol(SomeClass, Decl(lib.js, 14, 8)) +>Another : Symbol(Another, Decl(main.js, 0, 18)) +>require : Symbol(require) +>'./lib' : Symbol("lib", Decl(lib.js, 0, 0)) + +module.exports = { +>module.exports : Symbol(module.exports, Decl(main.js, 0, 0)) +>module : Symbol(module, Decl(main.js, 0, 59)) +>exports : Symbol(module.exports, Decl(main.js, 0, 0)) + + SomeClass, +>SomeClass : Symbol(SomeClass, Decl(main.js, 2, 18)) + + Another +>Another : Symbol(Another, Decl(main.js, 3, 14)) +} +=== lib.js === +/** + * @param {string} a + */ +function bar(a) { +>bar : Symbol(bar, Decl(lib.js, 0, 0)) +>a : Symbol(a, Decl(lib.js, 3, 13)) + + return a + a; +>a : Symbol(a, Decl(lib.js, 3, 13)) +>a : Symbol(a, Decl(lib.js, 3, 13)) +} + +class SomeClass { +>SomeClass : Symbol(SomeClass, Decl(lib.js, 5, 1)) + + a() { +>a : Symbol(SomeClass.a, Decl(lib.js, 7, 17)) + + return 1; + } +} + +module.exports = { +>module.exports : Symbol(module.exports, Decl(lib.js, 0, 0)) +>module : Symbol(module, Decl(lib.js, 11, 1)) +>exports : Symbol(module.exports, Decl(lib.js, 0, 0)) + + bar, +>bar : Symbol(bar, Decl(lib.js, 13, 18)) + + SomeClass +>SomeClass : Symbol(SomeClass, Decl(lib.js, 14, 8)) +} diff --git a/tests/baselines/reference/jsDeclarationsReexportedCjsAlias(target=es5).types b/tests/baselines/reference/jsDeclarationsReexportedCjsAlias(target=es5).types new file mode 100644 index 0000000000000..af9850461c3af --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsReexportedCjsAlias(target=es5).types @@ -0,0 +1,89 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsReexportedCjsAlias.ts] //// + +=== main.js === +const { SomeClass, SomeClass: Another } = require('./lib'); +>SomeClass : typeof SomeClass +> : ^^^^^^^^^^^^^^^^ +>SomeClass : any +> : ^^^ +>Another : typeof SomeClass +> : ^^^^^^^^^^^^^^^^ +>require('./lib') : typeof import("lib") +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^ +>require : any +>'./lib' : "./lib" +> : ^^^^^^^ + +module.exports = { +>module.exports = { SomeClass, Another} : typeof module.exports +> : ^^^^^^^^^^^^^^^^^^^^^ +>module.exports : typeof module.exports +> : ^^^^^^^^^^^^^^^^^^^^^ +>module : { exports: typeof module.exports; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exports : typeof module.exports +> : ^^^^^^^^^^^^^^^^^^^^^ +>{ SomeClass, Another} : { SomeClass: typeof SomeClass; Another: typeof SomeClass; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + SomeClass, +>SomeClass : typeof SomeClass +> : ^^^^^^^^^^^^^^^^ + + Another +>Another : typeof SomeClass +> : ^^^^^^^^^^^^^^^^ +} +=== lib.js === +/** + * @param {string} a + */ +function bar(a) { +>bar : (a: string) => string +> : ^ ^^ ^^^^^^^^^^^ +>a : string +> : ^^^^^^ + + return a + a; +>a + a : string +> : ^^^^^^ +>a : string +> : ^^^^^^ +>a : string +> : ^^^^^^ +} + +class SomeClass { +>SomeClass : SomeClass +> : ^^^^^^^^^ + + a() { +>a : () => number +> : ^^^^^^^^^^^^ + + return 1; +>1 : 1 +> : ^ + } +} + +module.exports = { +>module.exports = { bar, SomeClass} : typeof module.exports +> : ^^^^^^^^^^^^^^^^^^^^^ +>module.exports : typeof module.exports +> : ^^^^^^^^^^^^^^^^^^^^^ +>module : { exports: typeof module.exports; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exports : typeof module.exports +> : ^^^^^^^^^^^^^^^^^^^^^ +>{ bar, SomeClass} : { bar: (a: string) => string; SomeClass: typeof SomeClass; } +> : ^^^^^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + bar, +>bar : (a: string) => string +> : ^ ^^ ^^^^^^^^^^^ + + SomeClass +>SomeClass : typeof SomeClass +> : ^^^^^^^^^^^^^^^^ +} diff --git a/tests/baselines/reference/jsDeclarationsRestArgsWithThisTypeInJSDocFunction(target=es2015).js b/tests/baselines/reference/jsDeclarationsRestArgsWithThisTypeInJSDocFunction(target=es2015).js new file mode 100644 index 0000000000000..a50fdcc71ce7b --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsRestArgsWithThisTypeInJSDocFunction(target=es2015).js @@ -0,0 +1,27 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsRestArgsWithThisTypeInJSDocFunction.ts] //// + +//// [bug38550.js] +export class Clazz { + /** + * @param {function(this:Object, ...*):*} functionDeclaration + */ + method(functionDeclaration) {} +} + + +//// [bug38550.js] +export class Clazz { + /** + * @param {function(this:Object, ...*):*} functionDeclaration + */ + method(functionDeclaration) { } +} + + +//// [bug38550.d.ts] +export class Clazz { + /** + * @param {function(this:Object, ...*):*} functionDeclaration + */ + method(functionDeclaration: (this: any, ...args: any[]) => any): void; +} diff --git a/tests/baselines/reference/jsDeclarationsRestArgsWithThisTypeInJSDocFunction.symbols b/tests/baselines/reference/jsDeclarationsRestArgsWithThisTypeInJSDocFunction(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/jsDeclarationsRestArgsWithThisTypeInJSDocFunction.symbols rename to tests/baselines/reference/jsDeclarationsRestArgsWithThisTypeInJSDocFunction(target=es2015).symbols diff --git a/tests/baselines/reference/jsDeclarationsRestArgsWithThisTypeInJSDocFunction.types b/tests/baselines/reference/jsDeclarationsRestArgsWithThisTypeInJSDocFunction(target=es2015).types similarity index 100% rename from tests/baselines/reference/jsDeclarationsRestArgsWithThisTypeInJSDocFunction.types rename to tests/baselines/reference/jsDeclarationsRestArgsWithThisTypeInJSDocFunction(target=es2015).types diff --git a/tests/baselines/reference/jsDeclarationsRestArgsWithThisTypeInJSDocFunction.js b/tests/baselines/reference/jsDeclarationsRestArgsWithThisTypeInJSDocFunction(target=es5).js similarity index 100% rename from tests/baselines/reference/jsDeclarationsRestArgsWithThisTypeInJSDocFunction.js rename to tests/baselines/reference/jsDeclarationsRestArgsWithThisTypeInJSDocFunction(target=es5).js diff --git a/tests/baselines/reference/jsDeclarationsRestArgsWithThisTypeInJSDocFunction(target=es5).symbols b/tests/baselines/reference/jsDeclarationsRestArgsWithThisTypeInJSDocFunction(target=es5).symbols new file mode 100644 index 0000000000000..f1480016266ec --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsRestArgsWithThisTypeInJSDocFunction(target=es5).symbols @@ -0,0 +1,14 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsRestArgsWithThisTypeInJSDocFunction.ts] //// + +=== bug38550.js === +export class Clazz { +>Clazz : Symbol(Clazz, Decl(bug38550.js, 0, 0)) + + /** + * @param {function(this:Object, ...*):*} functionDeclaration + */ + method(functionDeclaration) {} +>method : Symbol(Clazz.method, Decl(bug38550.js, 0, 20)) +>functionDeclaration : Symbol(functionDeclaration, Decl(bug38550.js, 4, 9)) +} + diff --git a/tests/baselines/reference/jsDeclarationsRestArgsWithThisTypeInJSDocFunction(target=es5).types b/tests/baselines/reference/jsDeclarationsRestArgsWithThisTypeInJSDocFunction(target=es5).types new file mode 100644 index 0000000000000..dac9a913186cd --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsRestArgsWithThisTypeInJSDocFunction(target=es5).types @@ -0,0 +1,17 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsRestArgsWithThisTypeInJSDocFunction.ts] //// + +=== bug38550.js === +export class Clazz { +>Clazz : Clazz +> : ^^^^^ + + /** + * @param {function(this:Object, ...*):*} functionDeclaration + */ + method(functionDeclaration) {} +>method : (functionDeclaration: (this: any, ...args: any[]) => any) => void +> : ^ ^^ ^^^^^ ^^^ ^^ ^^^^^^^^^ +>functionDeclaration : (this: any, ...arg1: any[]) => any +> : ^ ^^^^^^^^^^^^^^^^ ^^^^^ +} + diff --git a/tests/baselines/reference/jsDeclarationsTypeReferences(target=es2015).js b/tests/baselines/reference/jsDeclarationsTypeReferences(target=es2015).js new file mode 100644 index 0000000000000..b9bafed614e46 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsTypeReferences(target=es2015).js @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsTypeReferences.ts] //// + +//// [index.d.ts] +declare module "fs" { + export class Something {} +} +//// [index.js] +/// + +const Something = require("fs").Something; + +const thing = new Something(); + +module.exports = { + thing +}; + + +//// [index.js] +/// +const Something = require("fs").Something; +const thing = new Something(); +module.exports = { + thing +}; + + +//// [index.d.ts] +export const thing: Something; +import Something_1 = require("fs"); +import Something = Something_1.Something; diff --git a/tests/baselines/reference/jsDeclarationsTypeReferences.symbols b/tests/baselines/reference/jsDeclarationsTypeReferences(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/jsDeclarationsTypeReferences.symbols rename to tests/baselines/reference/jsDeclarationsTypeReferences(target=es2015).symbols diff --git a/tests/baselines/reference/jsDeclarationsTypeReferences.types b/tests/baselines/reference/jsDeclarationsTypeReferences(target=es2015).types similarity index 100% rename from tests/baselines/reference/jsDeclarationsTypeReferences.types rename to tests/baselines/reference/jsDeclarationsTypeReferences(target=es2015).types diff --git a/tests/baselines/reference/jsDeclarationsTypeReferences.js b/tests/baselines/reference/jsDeclarationsTypeReferences(target=es5).js similarity index 100% rename from tests/baselines/reference/jsDeclarationsTypeReferences.js rename to tests/baselines/reference/jsDeclarationsTypeReferences(target=es5).js diff --git a/tests/baselines/reference/jsDeclarationsTypeReferences(target=es5).symbols b/tests/baselines/reference/jsDeclarationsTypeReferences(target=es5).symbols new file mode 100644 index 0000000000000..079df9ff54e78 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsTypeReferences(target=es5).symbols @@ -0,0 +1,33 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsTypeReferences.ts] //// + +=== index.js === +/// + +const Something = require("fs").Something; +>Something : Symbol(Something, Decl(index.js, 2, 5)) +>require("fs").Something : Symbol(Something, Decl(index.d.ts, 0, 21)) +>require : Symbol(require) +>"fs" : Symbol("fs", Decl(index.d.ts, 0, 0)) +>Something : Symbol(Something, Decl(index.d.ts, 0, 21)) + +const thing = new Something(); +>thing : Symbol(thing, Decl(index.js, 4, 5)) +>Something : Symbol(Something, Decl(index.js, 2, 5)) + +module.exports = { +>module.exports : Symbol(module.exports, Decl(index.js, 0, 0)) +>module : Symbol(module, Decl(index.js, 4, 30)) +>exports : Symbol(module.exports, Decl(index.js, 0, 0)) + + thing +>thing : Symbol(thing, Decl(index.js, 6, 18)) + +}; + +=== node_modules/@types/node/index.d.ts === +declare module "fs" { +>"fs" : Symbol("fs", Decl(index.d.ts, 0, 0)) + + export class Something {} +>Something : Symbol(Something, Decl(index.d.ts, 0, 21)) +} diff --git a/tests/baselines/reference/jsDeclarationsTypeReferences(target=es5).types b/tests/baselines/reference/jsDeclarationsTypeReferences(target=es5).types new file mode 100644 index 0000000000000..a84e80b9a606a --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsTypeReferences(target=es5).types @@ -0,0 +1,53 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsTypeReferences.ts] //// + +=== index.js === +/// + +const Something = require("fs").Something; +>Something : typeof Something +> : ^^^^^^^^^^^^^^^^ +>require("fs").Something : typeof Something +> : ^^^^^^^^^^^^^^^^ +>require("fs") : typeof import("fs") +> : ^^^^^^^^^^^^^^^^^^^ +>require : any +>"fs" : "fs" +> : ^^^^ +>Something : typeof Something +> : ^^^^^^^^^^^^^^^^ + +const thing = new Something(); +>thing : Something +> : ^^^^^^^^^ +>new Something() : Something +> : ^^^^^^^^^ +>Something : typeof Something +> : ^^^^^^^^^^^^^^^^ + +module.exports = { +>module.exports = { thing} : typeof module.exports +> : ^^^^^^^^^^^^^^^^^^^^^ +>module.exports : typeof module.exports +> : ^^^^^^^^^^^^^^^^^^^^^ +>module : { exports: typeof module.exports; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exports : typeof module.exports +> : ^^^^^^^^^^^^^^^^^^^^^ +>{ thing} : { thing: Something; } +> : ^^^^^^^^^^^^^^^^^^^^^ + + thing +>thing : Something +> : ^^^^^^^^^ + +}; + +=== node_modules/@types/node/index.d.ts === +declare module "fs" { +>"fs" : typeof import("fs") +> : ^^^^^^^^^^^^^^^^^^^ + + export class Something {} +>Something : Something +> : ^^^^^^^^^ +} diff --git a/tests/baselines/reference/jsDeclarationsTypeReferences2(target=es2015).js b/tests/baselines/reference/jsDeclarationsTypeReferences2(target=es2015).js new file mode 100644 index 0000000000000..8a094a3bd0e4a --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsTypeReferences2(target=es2015).js @@ -0,0 +1,38 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsTypeReferences2.ts] //// + +//// [something.ts] +export const o = { + a: 1, + m: 1 +} + +//// [index.js] +const{ a, m } = require("./something").o; + +const thing = a + m + +module.exports = { + thing +}; + + +//// [something.js] +export const o = { + a: 1, + m: 1 +}; +//// [index.js] +const { a, m } = require("./something").o; +const thing = a + m; +module.exports = { + thing +}; + + +//// [something.d.ts] +export declare const o: { + a: number; + m: number; +}; +//// [index.d.ts] +export const thing: number; diff --git a/tests/baselines/reference/jsDeclarationsTypeReferences2.symbols b/tests/baselines/reference/jsDeclarationsTypeReferences2(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/jsDeclarationsTypeReferences2.symbols rename to tests/baselines/reference/jsDeclarationsTypeReferences2(target=es2015).symbols diff --git a/tests/baselines/reference/jsDeclarationsTypeReferences2.types b/tests/baselines/reference/jsDeclarationsTypeReferences2(target=es2015).types similarity index 100% rename from tests/baselines/reference/jsDeclarationsTypeReferences2.types rename to tests/baselines/reference/jsDeclarationsTypeReferences2(target=es2015).types diff --git a/tests/baselines/reference/jsDeclarationsTypeReferences2.js b/tests/baselines/reference/jsDeclarationsTypeReferences2(target=es5).js similarity index 100% rename from tests/baselines/reference/jsDeclarationsTypeReferences2.js rename to tests/baselines/reference/jsDeclarationsTypeReferences2(target=es5).js diff --git a/tests/baselines/reference/jsDeclarationsTypeReferences2(target=es5).symbols b/tests/baselines/reference/jsDeclarationsTypeReferences2(target=es5).symbols new file mode 100644 index 0000000000000..8e4395e217d64 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsTypeReferences2(target=es5).symbols @@ -0,0 +1,37 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsTypeReferences2.ts] //// + +=== index.js === +const{ a, m } = require("./something").o; +>a : Symbol(a, Decl(index.js, 0, 6)) +>m : Symbol(m, Decl(index.js, 0, 9)) +>require("./something").o : Symbol(o, Decl(something.ts, 0, 12)) +>require : Symbol(require) +>"./something" : Symbol("something", Decl(something.ts, 0, 0)) +>o : Symbol(o, Decl(something.ts, 0, 12)) + +const thing = a + m +>thing : Symbol(thing, Decl(index.js, 2, 5)) +>a : Symbol(a, Decl(index.js, 0, 6)) +>m : Symbol(m, Decl(index.js, 0, 9)) + +module.exports = { +>module.exports : Symbol(module.exports, Decl(index.js, 0, 0)) +>module : Symbol(module, Decl(index.js, 2, 19)) +>exports : Symbol(module.exports, Decl(index.js, 0, 0)) + + thing +>thing : Symbol(thing, Decl(index.js, 4, 18)) + +}; + +=== something.ts === +export const o = { +>o : Symbol(o, Decl(something.ts, 0, 12)) + + a: 1, +>a : Symbol(a, Decl(something.ts, 0, 18)) + + m: 1 +>m : Symbol(m, Decl(something.ts, 1, 9)) +} + diff --git a/tests/baselines/reference/jsDeclarationsTypeReferences2(target=es5).types b/tests/baselines/reference/jsDeclarationsTypeReferences2(target=es5).types new file mode 100644 index 0000000000000..23afcdeaf3368 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsTypeReferences2(target=es5).types @@ -0,0 +1,66 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsTypeReferences2.ts] //// + +=== index.js === +const{ a, m } = require("./something").o; +>a : number +> : ^^^^^^ +>m : number +> : ^^^^^^ +>require("./something").o : { a: number; m: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>require("./something") : typeof import("something") +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>require : any +>"./something" : "./something" +> : ^^^^^^^^^^^^^ +>o : { a: number; m: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ + +const thing = a + m +>thing : number +> : ^^^^^^ +>a + m : number +> : ^^^^^^ +>a : number +> : ^^^^^^ +>m : number +> : ^^^^^^ + +module.exports = { +>module.exports = { thing} : typeof module.exports +> : ^^^^^^^^^^^^^^^^^^^^^ +>module.exports : typeof module.exports +> : ^^^^^^^^^^^^^^^^^^^^^ +>module : { exports: typeof module.exports; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exports : typeof module.exports +> : ^^^^^^^^^^^^^^^^^^^^^ +>{ thing} : { thing: number; } +> : ^^^^^^^^^^^^^^^^^^ + + thing +>thing : number +> : ^^^^^^ + +}; + +=== something.ts === +export const o = { +>o : { a: number; m: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ a: 1, m: 1} : { a: number; m: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ + + a: 1, +>a : number +> : ^^^^^^ +>1 : 1 +> : ^ + + m: 1 +>m : number +> : ^^^^^^ +>1 : 1 +> : ^ +} + diff --git a/tests/baselines/reference/jsDeclarationsTypeReferences3(target=es2015).js b/tests/baselines/reference/jsDeclarationsTypeReferences3(target=es2015).js new file mode 100644 index 0000000000000..d0c281378474f --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsTypeReferences3(target=es2015).js @@ -0,0 +1,33 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsTypeReferences3.ts] //// + +//// [index.d.ts] +declare module "fs" { + export class Something {} +} +//// [index.js] +/// + +const Something = require("fs").Something; +module.exports.A = {} +module.exports.A.B = { + thing: new Something() +} + + +//// [index.js] +/// +const Something = require("fs").Something; +module.exports.A = {}; +module.exports.A.B = { + thing: new Something() +}; + + +//// [index.d.ts] +export namespace A { + namespace B { + let thing: Something; + } +} +import Something_1 = require("fs"); +import Something = Something_1.Something; diff --git a/tests/baselines/reference/jsDeclarationsTypeReferences3.symbols b/tests/baselines/reference/jsDeclarationsTypeReferences3(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/jsDeclarationsTypeReferences3.symbols rename to tests/baselines/reference/jsDeclarationsTypeReferences3(target=es2015).symbols diff --git a/tests/baselines/reference/jsDeclarationsTypeReferences3.types b/tests/baselines/reference/jsDeclarationsTypeReferences3(target=es2015).types similarity index 100% rename from tests/baselines/reference/jsDeclarationsTypeReferences3.types rename to tests/baselines/reference/jsDeclarationsTypeReferences3(target=es2015).types diff --git a/tests/baselines/reference/jsDeclarationsTypeReferences3.js b/tests/baselines/reference/jsDeclarationsTypeReferences3(target=es5).js similarity index 100% rename from tests/baselines/reference/jsDeclarationsTypeReferences3.js rename to tests/baselines/reference/jsDeclarationsTypeReferences3(target=es5).js diff --git a/tests/baselines/reference/jsDeclarationsTypeReferences3(target=es5).symbols b/tests/baselines/reference/jsDeclarationsTypeReferences3(target=es5).symbols new file mode 100644 index 0000000000000..6645ebf42e90f --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsTypeReferences3(target=es5).symbols @@ -0,0 +1,40 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsTypeReferences3.ts] //// + +=== index.js === +/// + +const Something = require("fs").Something; +>Something : Symbol(Something, Decl(index.js, 2, 5)) +>require("fs").Something : Symbol(Something, Decl(index.d.ts, 0, 21)) +>require : Symbol(require) +>"fs" : Symbol("fs", Decl(index.d.ts, 0, 0)) +>Something : Symbol(Something, Decl(index.d.ts, 0, 21)) + +module.exports.A = {} +>module.exports.A : Symbol(A, Decl(index.js, 2, 42), Decl(index.js, 4, 15)) +>module.exports : Symbol(A, Decl(index.js, 2, 42), Decl(index.js, 4, 15)) +>module : Symbol(module, Decl(index.js, 2, 42)) +>exports : Symbol(module.exports, Decl(index.js, 0, 0)) +>A : Symbol(A, Decl(index.js, 2, 42), Decl(index.js, 4, 15)) + +module.exports.A.B = { +>module.exports.A.B : Symbol(A.B, Decl(index.js, 3, 21)) +>module.exports.A : Symbol(A.B, Decl(index.js, 3, 21)) +>module.exports : Symbol(module.exports, Decl(index.js, 0, 0)) +>module : Symbol(module, Decl(index.js, 2, 42)) +>exports : Symbol(module.exports, Decl(index.js, 0, 0)) +>A : Symbol(A, Decl(index.js, 2, 42), Decl(index.js, 4, 15)) +>B : Symbol(A.B, Decl(index.js, 3, 21)) + + thing: new Something() +>thing : Symbol(thing, Decl(index.js, 4, 22)) +>Something : Symbol(Something, Decl(index.js, 2, 5)) +} + +=== node_modules/@types/node/index.d.ts === +declare module "fs" { +>"fs" : Symbol("fs", Decl(index.d.ts, 0, 0)) + + export class Something {} +>Something : Symbol(Something, Decl(index.d.ts, 0, 21)) +} diff --git a/tests/baselines/reference/jsDeclarationsTypeReferences3(target=es5).types b/tests/baselines/reference/jsDeclarationsTypeReferences3(target=es5).types new file mode 100644 index 0000000000000..4baf39f5d8800 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsTypeReferences3(target=es5).types @@ -0,0 +1,72 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsTypeReferences3.ts] //// + +=== index.js === +/// + +const Something = require("fs").Something; +>Something : typeof Something +> : ^^^^^^^^^^^^^^^^ +>require("fs").Something : typeof Something +> : ^^^^^^^^^^^^^^^^ +>require("fs") : typeof import("fs") +> : ^^^^^^^^^^^^^^^^^^^ +>require : any +>"fs" : "fs" +> : ^^^^ +>Something : typeof Something +> : ^^^^^^^^^^^^^^^^ + +module.exports.A = {} +>module.exports.A = {} : typeof A +> : ^^^^^^^^ +>module.exports.A : typeof A +> : ^^^^^^^^ +>module.exports : typeof module.exports +> : ^^^^^^^^^^^^^^^^^^^^^ +>module : { exports: typeof module.exports; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exports : typeof module.exports +> : ^^^^^^^^^^^^^^^^^^^^^ +>A : typeof A +> : ^^^^^^^^ +>{} : {} +> : ^^ + +module.exports.A.B = { +>module.exports.A.B = { thing: new Something()} : { thing: Something; } +> : ^^^^^^^^^^^^^^^^^^^^^ +>module.exports.A.B : { thing: Something; } +> : ^^^^^^^^^^^^^^^^^^^^^ +>module.exports.A : typeof A +> : ^^^^^^^^ +>module.exports : typeof module.exports +> : ^^^^^^^^^^^^^^^^^^^^^ +>module : { exports: typeof module.exports; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exports : typeof module.exports +> : ^^^^^^^^^^^^^^^^^^^^^ +>A : typeof A +> : ^^^^^^^^ +>B : { thing: Something; } +> : ^^^^^^^^^^^^^^^^^^^^^ +>{ thing: new Something()} : { thing: Something; } +> : ^^^^^^^^^^^^^^^^^^^^^ + + thing: new Something() +>thing : Something +> : ^^^^^^^^^ +>new Something() : Something +> : ^^^^^^^^^ +>Something : typeof Something +> : ^^^^^^^^^^^^^^^^ +} + +=== node_modules/@types/node/index.d.ts === +declare module "fs" { +>"fs" : typeof import("fs") +> : ^^^^^^^^^^^^^^^^^^^ + + export class Something {} +>Something : Something +> : ^^^^^^^^^ +} diff --git a/tests/baselines/reference/jsDeclarationsTypeReferences4.errors.txt b/tests/baselines/reference/jsDeclarationsTypeReferences4(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/jsDeclarationsTypeReferences4.errors.txt rename to tests/baselines/reference/jsDeclarationsTypeReferences4(target=es2015).errors.txt diff --git a/tests/baselines/reference/jsDeclarationsTypeReferences4(target=es2015).js b/tests/baselines/reference/jsDeclarationsTypeReferences4(target=es2015).js new file mode 100644 index 0000000000000..117cbbbefcc1d --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsTypeReferences4(target=es2015).js @@ -0,0 +1,44 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsTypeReferences4.ts] //// + +//// [index.d.ts] +declare module "fs" { + export class Something {} +} +//// [index.js] +/// +export const Something = 2; // to show conflict that can occur +// @ts-ignore +export namespace A { + // @ts-ignore + export namespace B { + const Something = require("fs").Something; + const thing = new Something(); + // @ts-ignore + export { thing }; + } +} + + +//// [index.js] +/// +export const Something = 2; // to show conflict that can occur +// @ts-ignore +export var A; +(function (A) { + // @ts-ignore + let B; + (function (B) { + const Something = require("fs").Something; + const thing = new Something(); + })(B = A.B || (A.B = {})); +})(A || (A = {})); + + +//// [index.d.ts] +export const Something: 2; +export namespace A { + namespace B { + export { thing }; + export let thing: import("fs").Something; + } +} diff --git a/tests/baselines/reference/jsDeclarationsTypeReferences4.symbols b/tests/baselines/reference/jsDeclarationsTypeReferences4(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/jsDeclarationsTypeReferences4.symbols rename to tests/baselines/reference/jsDeclarationsTypeReferences4(target=es2015).symbols diff --git a/tests/baselines/reference/jsDeclarationsTypeReferences4.types b/tests/baselines/reference/jsDeclarationsTypeReferences4(target=es2015).types similarity index 100% rename from tests/baselines/reference/jsDeclarationsTypeReferences4.types rename to tests/baselines/reference/jsDeclarationsTypeReferences4(target=es2015).types diff --git a/tests/baselines/reference/jsDeclarationsTypeReferences4(target=es5).errors.txt b/tests/baselines/reference/jsDeclarationsTypeReferences4(target=es5).errors.txt new file mode 100644 index 0000000000000..146844daa3a11 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsTypeReferences4(target=es5).errors.txt @@ -0,0 +1,23 @@ +index.js(4,18): error TS8006: 'namespace' declarations can only be used in TypeScript files. + + +==== index.js (1 errors) ==== + /// + export const Something = 2; // to show conflict that can occur + // @ts-ignore + export namespace A { + ~ +!!! error TS8006: 'namespace' declarations can only be used in TypeScript files. + // @ts-ignore + export namespace B { + const Something = require("fs").Something; + const thing = new Something(); + // @ts-ignore + export { thing }; + } + } + +==== node_modules/@types/node/index.d.ts (0 errors) ==== + declare module "fs" { + export class Something {} + } \ No newline at end of file diff --git a/tests/baselines/reference/jsDeclarationsTypeReferences4.js b/tests/baselines/reference/jsDeclarationsTypeReferences4(target=es5).js similarity index 100% rename from tests/baselines/reference/jsDeclarationsTypeReferences4.js rename to tests/baselines/reference/jsDeclarationsTypeReferences4(target=es5).js diff --git a/tests/baselines/reference/jsDeclarationsTypeReferences4(target=es5).symbols b/tests/baselines/reference/jsDeclarationsTypeReferences4(target=es5).symbols new file mode 100644 index 0000000000000..4b99541510346 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsTypeReferences4(target=es5).symbols @@ -0,0 +1,39 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsTypeReferences4.ts] //// + +=== index.js === +/// +export const Something = 2; // to show conflict that can occur +>Something : Symbol(Something, Decl(index.js, 1, 12)) + +// @ts-ignore +export namespace A { +>A : Symbol(A, Decl(index.js, 1, 27)) + + // @ts-ignore + export namespace B { +>B : Symbol(B, Decl(index.js, 3, 20)) + + const Something = require("fs").Something; +>Something : Symbol(Something, Decl(index.js, 6, 13)) +>require("fs").Something : Symbol(Something, Decl(index.d.ts, 0, 21)) +>require : Symbol(require) +>"fs" : Symbol("fs", Decl(index.d.ts, 0, 0)) +>Something : Symbol(Something, Decl(index.d.ts, 0, 21)) + + const thing = new Something(); +>thing : Symbol(thing, Decl(index.js, 7, 13)) +>Something : Symbol(Something, Decl(index.js, 6, 13)) + + // @ts-ignore + export { thing }; +>thing : Symbol(thing, Decl(index.js, 9, 16)) + } +} + +=== node_modules/@types/node/index.d.ts === +declare module "fs" { +>"fs" : Symbol("fs", Decl(index.d.ts, 0, 0)) + + export class Something {} +>Something : Symbol(Something, Decl(index.d.ts, 0, 21)) +} diff --git a/tests/baselines/reference/jsDeclarationsTypeReferences4(target=es5).types b/tests/baselines/reference/jsDeclarationsTypeReferences4(target=es5).types new file mode 100644 index 0000000000000..5e8add3c0b2f6 --- /dev/null +++ b/tests/baselines/reference/jsDeclarationsTypeReferences4(target=es5).types @@ -0,0 +1,58 @@ +//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsTypeReferences4.ts] //// + +=== index.js === +/// +export const Something = 2; // to show conflict that can occur +>Something : 2 +> : ^ +>2 : 2 +> : ^ + +// @ts-ignore +export namespace A { +>A : typeof A +> : ^^^^^^^^ + + // @ts-ignore + export namespace B { +>B : typeof B +> : ^^^^^^^^ + + const Something = require("fs").Something; +>Something : typeof Something +> : ^^^^^^^^^^^^^^^^ +>require("fs").Something : typeof Something +> : ^^^^^^^^^^^^^^^^ +>require("fs") : typeof import("fs") +> : ^^^^^^^^^^^^^^^^^^^ +>require : any +> : ^^^ +>"fs" : "fs" +> : ^^^^ +>Something : typeof Something +> : ^^^^^^^^^^^^^^^^ + + const thing = new Something(); +>thing : Something +> : ^^^^^^^^^ +>new Something() : Something +> : ^^^^^^^^^ +>Something : typeof Something +> : ^^^^^^^^^^^^^^^^ + + // @ts-ignore + export { thing }; +>thing : Something +> : ^^^^^^^^^ + } +} + +=== node_modules/@types/node/index.d.ts === +declare module "fs" { +>"fs" : typeof import("fs") +> : ^^^^^^^^^^^^^^^^^^^ + + export class Something {} +>Something : Something +> : ^^^^^^^^^ +} diff --git a/tests/baselines/reference/jsxChildrenArrayWrongType.errors.txt b/tests/baselines/reference/jsxChildrenArrayWrongType(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/jsxChildrenArrayWrongType.errors.txt rename to tests/baselines/reference/jsxChildrenArrayWrongType(target=es2015).errors.txt diff --git a/tests/baselines/reference/jsxChildrenArrayWrongType(target=es2015).js b/tests/baselines/reference/jsxChildrenArrayWrongType(target=es2015).js new file mode 100644 index 0000000000000..069f26c9caef6 --- /dev/null +++ b/tests/baselines/reference/jsxChildrenArrayWrongType(target=es2015).js @@ -0,0 +1,26 @@ +//// [tests/cases/compiler/jsxChildrenArrayWrongType.tsx] //// + +//// [index.tsx] +/// +/// + +// target is ES5, so no `Iterable` type is present. + +interface PropsType { + children: [string, number] | boolean[]; +} +declare class Foo extends React.Component {} +const b = ( + + {
as unknown} + {"aa"} + +); + +//// [index.js] +"use strict"; +/// +/// +const b = (React.createElement(Foo, null, + React.createElement("div", null), + "aa")); diff --git a/tests/baselines/reference/jsxChildrenArrayWrongType.symbols b/tests/baselines/reference/jsxChildrenArrayWrongType(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/jsxChildrenArrayWrongType.symbols rename to tests/baselines/reference/jsxChildrenArrayWrongType(target=es2015).symbols diff --git a/tests/baselines/reference/jsxChildrenArrayWrongType.types b/tests/baselines/reference/jsxChildrenArrayWrongType(target=es2015).types similarity index 100% rename from tests/baselines/reference/jsxChildrenArrayWrongType.types rename to tests/baselines/reference/jsxChildrenArrayWrongType(target=es2015).types diff --git a/tests/baselines/reference/jsxChildrenArrayWrongType(target=es5).errors.txt b/tests/baselines/reference/jsxChildrenArrayWrongType(target=es5).errors.txt new file mode 100644 index 0000000000000..7ea707efe4d6d --- /dev/null +++ b/tests/baselines/reference/jsxChildrenArrayWrongType(target=es5).errors.txt @@ -0,0 +1,29 @@ +index.tsx(11,6): error TS2769: No overload matches this call. + Overload 2 of 2, '(props: PropsType, context: any): Foo', gave the following error. + Type 'unknown' is not assignable to type 'string | boolean'. + Overload 2 of 2, '(props: PropsType, context: any): Foo', gave the following error. + Type 'string' is not assignable to type 'number | boolean'. + + +==== index.tsx (1 errors) ==== + /// + /// + + // target is ES5, so no `Iterable` type is present. + + interface PropsType { + children: [string, number] | boolean[]; + } + declare class Foo extends React.Component {} + const b = ( + + ~~~ +!!! error TS2769: No overload matches this call. +!!! error TS2769: Overload 2 of 2, '(props: PropsType, context: any): Foo', gave the following error. +!!! error TS2769: Type 'unknown' is not assignable to type 'string | boolean'. +!!! error TS2769: Overload 2 of 2, '(props: PropsType, context: any): Foo', gave the following error. +!!! error TS2769: Type 'string' is not assignable to type 'number | boolean'. + {
as unknown} + {"aa"} + + ); \ No newline at end of file diff --git a/tests/baselines/reference/jsxChildrenArrayWrongType.js b/tests/baselines/reference/jsxChildrenArrayWrongType(target=es5).js similarity index 100% rename from tests/baselines/reference/jsxChildrenArrayWrongType.js rename to tests/baselines/reference/jsxChildrenArrayWrongType(target=es5).js diff --git a/tests/baselines/reference/jsxChildrenArrayWrongType(target=es5).symbols b/tests/baselines/reference/jsxChildrenArrayWrongType(target=es5).symbols new file mode 100644 index 0000000000000..1aeff9fafe430 --- /dev/null +++ b/tests/baselines/reference/jsxChildrenArrayWrongType(target=es5).symbols @@ -0,0 +1,35 @@ +//// [tests/cases/compiler/jsxChildrenArrayWrongType.tsx] //// + +=== index.tsx === +/// +/// + +// target is ES5, so no `Iterable` type is present. + +interface PropsType { +>PropsType : Symbol(PropsType, Decl(index.tsx, 0, 0)) + + children: [string, number] | boolean[]; +>children : Symbol(PropsType.children, Decl(index.tsx, 5, 21)) +} +declare class Foo extends React.Component {} +>Foo : Symbol(Foo, Decl(index.tsx, 7, 1)) +>React.Component : Symbol(React.Component, Decl(react18.d.ts, 427, 50), Decl(react18.d.ts, 430, 90)) +>React : Symbol(React, Decl(react18.d.ts, 62, 15)) +>Component : Symbol(React.Component, Decl(react18.d.ts, 427, 50), Decl(react18.d.ts, 430, 90)) +>PropsType : Symbol(PropsType, Decl(index.tsx, 0, 0)) + +const b = ( +>b : Symbol(b, Decl(index.tsx, 9, 5)) + + +>Foo : Symbol(Foo, Decl(index.tsx, 7, 1)) + + {
as unknown} +>div : Symbol(JSX.IntrinsicElements.div, Decl(react18.d.ts, 3174, 110)) + + {"aa"} + +>Foo : Symbol(Foo, Decl(index.tsx, 7, 1)) + +); diff --git a/tests/baselines/reference/jsxChildrenArrayWrongType(target=es5).types b/tests/baselines/reference/jsxChildrenArrayWrongType(target=es5).types new file mode 100644 index 0000000000000..c916bbcd60cee --- /dev/null +++ b/tests/baselines/reference/jsxChildrenArrayWrongType(target=es5).types @@ -0,0 +1,55 @@ +//// [tests/cases/compiler/jsxChildrenArrayWrongType.tsx] //// + +=== Performance Stats === +Type Count: 1,000 + +=== index.tsx === +/// +/// + +// target is ES5, so no `Iterable` type is present. + +interface PropsType { + children: [string, number] | boolean[]; +>children : [string, number] | boolean[] +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +} +declare class Foo extends React.Component {} +>Foo : Foo +> : ^^^ +>React.Component : React.Component +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>React : typeof React +> : ^^^^^^^^^^^^ +>Component : typeof React.Component +> : ^^^^^^^^^^^^^^^^^^^^^^ + +const b = ( +>b : JSX.Element +> : ^^^^^^^^^^^ +>( {
as unknown} {"aa"} ) : JSX.Element +> : ^^^^^^^^^^^ + + +> {
as unknown} {"aa"} : JSX.Element +> : ^^^^^^^^^^^ +>Foo : typeof Foo +> : ^^^^^^^^^^ + + {
as unknown} +>
as unknown : unknown +> : ^^^^^^^ +>
: JSX.Element +> : ^^^^^^^^^^^ +>div : any +> : ^^^ + + {"aa"} +>"aa" : "aa" +> : ^^^^ + + +>Foo : typeof Foo +> : ^^^^^^^^^^ + +); diff --git a/tests/baselines/reference/jsxFactoryQualifiedNameWithEs5.errors.txt b/tests/baselines/reference/jsxFactoryQualifiedNameWithEs5(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/jsxFactoryQualifiedNameWithEs5.errors.txt rename to tests/baselines/reference/jsxFactoryQualifiedNameWithEs5(target=es2015).errors.txt diff --git a/tests/baselines/reference/jsxFactoryQualifiedNameWithEs5(target=es2015).js b/tests/baselines/reference/jsxFactoryQualifiedNameWithEs5(target=es2015).js new file mode 100644 index 0000000000000..43ef39270d0a5 --- /dev/null +++ b/tests/baselines/reference/jsxFactoryQualifiedNameWithEs5(target=es2015).js @@ -0,0 +1,26 @@ +//// [tests/cases/compiler/jsxFactoryQualifiedNameWithEs5.ts] //// + +//// [index.tsx] +import "./jsx"; + +var skate: any; +const React = { createElement: skate.h }; + +class Component { + renderCallback() { + return
test
; + } +}; + +//// [index.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +require("./jsx"); +var skate; +const React = { createElement: skate.h }; +class Component { + renderCallback() { + return skate.h("div", null, "test"); + } +} +; diff --git a/tests/baselines/reference/jsxFactoryQualifiedNameWithEs5.symbols b/tests/baselines/reference/jsxFactoryQualifiedNameWithEs5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/jsxFactoryQualifiedNameWithEs5.symbols rename to tests/baselines/reference/jsxFactoryQualifiedNameWithEs5(target=es2015).symbols diff --git a/tests/baselines/reference/jsxFactoryQualifiedNameWithEs5.types b/tests/baselines/reference/jsxFactoryQualifiedNameWithEs5(target=es2015).types similarity index 100% rename from tests/baselines/reference/jsxFactoryQualifiedNameWithEs5.types rename to tests/baselines/reference/jsxFactoryQualifiedNameWithEs5(target=es2015).types diff --git a/tests/baselines/reference/jsxFactoryQualifiedNameWithEs5(target=es5).errors.txt b/tests/baselines/reference/jsxFactoryQualifiedNameWithEs5(target=es5).errors.txt new file mode 100644 index 0000000000000..e4aa4945f358e --- /dev/null +++ b/tests/baselines/reference/jsxFactoryQualifiedNameWithEs5(target=es5).errors.txt @@ -0,0 +1,16 @@ +index.tsx(1,8): error TS2882: Cannot find module or type declarations for side-effect import of './jsx'. + + +==== index.tsx (1 errors) ==== + import "./jsx"; + ~~~~~~~ +!!! error TS2882: Cannot find module or type declarations for side-effect import of './jsx'. + + var skate: any; + const React = { createElement: skate.h }; + + class Component { + renderCallback() { + return
test
; + } + }; \ No newline at end of file diff --git a/tests/baselines/reference/jsxFactoryQualifiedNameWithEs5.js b/tests/baselines/reference/jsxFactoryQualifiedNameWithEs5(target=es5).js similarity index 100% rename from tests/baselines/reference/jsxFactoryQualifiedNameWithEs5.js rename to tests/baselines/reference/jsxFactoryQualifiedNameWithEs5(target=es5).js diff --git a/tests/baselines/reference/jsxFactoryQualifiedNameWithEs5(target=es5).symbols b/tests/baselines/reference/jsxFactoryQualifiedNameWithEs5(target=es5).symbols new file mode 100644 index 0000000000000..4c364586ca765 --- /dev/null +++ b/tests/baselines/reference/jsxFactoryQualifiedNameWithEs5(target=es5).symbols @@ -0,0 +1,22 @@ +//// [tests/cases/compiler/jsxFactoryQualifiedNameWithEs5.ts] //// + +=== index.tsx === +import "./jsx"; + +var skate: any; +>skate : Symbol(skate, Decl(index.tsx, 2, 3)) + +const React = { createElement: skate.h }; +>React : Symbol(React, Decl(index.tsx, 3, 5)) +>createElement : Symbol(createElement, Decl(index.tsx, 3, 15)) +>skate : Symbol(skate, Decl(index.tsx, 2, 3)) + +class Component { +>Component : Symbol(Component, Decl(index.tsx, 3, 41)) + + renderCallback() { +>renderCallback : Symbol(Component.renderCallback, Decl(index.tsx, 5, 17)) + + return
test
; + } +}; diff --git a/tests/baselines/reference/jsxFactoryQualifiedNameWithEs5(target=es5).types b/tests/baselines/reference/jsxFactoryQualifiedNameWithEs5(target=es5).types new file mode 100644 index 0000000000000..dbb1eed353c38 --- /dev/null +++ b/tests/baselines/reference/jsxFactoryQualifiedNameWithEs5(target=es5).types @@ -0,0 +1,40 @@ +//// [tests/cases/compiler/jsxFactoryQualifiedNameWithEs5.ts] //// + +=== index.tsx === +import "./jsx"; + +var skate: any; +>skate : any +> : ^^^ + +const React = { createElement: skate.h }; +>React : { createElement: any; } +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>{ createElement: skate.h } : { createElement: any; } +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>createElement : any +> : ^^^ +>skate.h : any +> : ^^^ +>skate : any +> : ^^^ +>h : any +> : ^^^ + +class Component { +>Component : Component +> : ^^^^^^^^^ + + renderCallback() { +>renderCallback : () => any +> : ^^^^^^^^^ + + return
test
; +>
test
: any +> : ^^^ +>div : any +> : ^^^ +>div : any +> : ^^^ + } +}; diff --git a/tests/baselines/reference/labeledStatementDeclarationListInLoopNoCrash1(target=es2015).errors.txt b/tests/baselines/reference/labeledStatementDeclarationListInLoopNoCrash1(target=es2015).errors.txt new file mode 100644 index 0000000000000..7ea8c06f82b50 --- /dev/null +++ b/tests/baselines/reference/labeledStatementDeclarationListInLoopNoCrash1(target=es2015).errors.txt @@ -0,0 +1,15 @@ +labeledStatementDeclarationListInLoopNoCrash1.ts(3,3): error TS1344: 'A label is not allowed here. +labeledStatementDeclarationListInLoopNoCrash1.ts(3,11): error TS1123: Variable declaration list cannot be empty. + + +==== labeledStatementDeclarationListInLoopNoCrash1.ts (2 errors) ==== + for (let x of []) { + var v0 = x; + foo: var; + ~~~ +!!! error TS1344: 'A label is not allowed here. + +!!! error TS1123: Variable declaration list cannot be empty. + (function() { return x + v0}); + } + \ No newline at end of file diff --git a/tests/baselines/reference/labeledStatementDeclarationListInLoopNoCrash1(target=es2015).js b/tests/baselines/reference/labeledStatementDeclarationListInLoopNoCrash1(target=es2015).js new file mode 100644 index 0000000000000..bed566f3ccb2f --- /dev/null +++ b/tests/baselines/reference/labeledStatementDeclarationListInLoopNoCrash1(target=es2015).js @@ -0,0 +1,17 @@ +//// [tests/cases/conformance/statements/labeledStatements/labeledStatementDeclarationListInLoopNoCrash1.ts] //// + +//// [labeledStatementDeclarationListInLoopNoCrash1.ts] +for (let x of []) { + var v0 = x; + foo: var; + (function() { return x + v0}); +} + + +//// [labeledStatementDeclarationListInLoopNoCrash1.js] +"use strict"; +for (let x of []) { + var v0 = x; + foo: var ; + (function () { return x + v0; }); +} diff --git a/tests/baselines/reference/labeledStatementDeclarationListInLoopNoCrash1.errors.txt b/tests/baselines/reference/labeledStatementDeclarationListInLoopNoCrash1(target=es5).errors.txt similarity index 100% rename from tests/baselines/reference/labeledStatementDeclarationListInLoopNoCrash1.errors.txt rename to tests/baselines/reference/labeledStatementDeclarationListInLoopNoCrash1(target=es5).errors.txt diff --git a/tests/baselines/reference/labeledStatementDeclarationListInLoopNoCrash1.js b/tests/baselines/reference/labeledStatementDeclarationListInLoopNoCrash1(target=es5).js similarity index 100% rename from tests/baselines/reference/labeledStatementDeclarationListInLoopNoCrash1.js rename to tests/baselines/reference/labeledStatementDeclarationListInLoopNoCrash1(target=es5).js diff --git a/tests/baselines/reference/labeledStatementDeclarationListInLoopNoCrash2(target=es2015).errors.txt b/tests/baselines/reference/labeledStatementDeclarationListInLoopNoCrash2(target=es2015).errors.txt new file mode 100644 index 0000000000000..cccda1a9a35dc --- /dev/null +++ b/tests/baselines/reference/labeledStatementDeclarationListInLoopNoCrash2(target=es2015).errors.txt @@ -0,0 +1,12 @@ +labeledStatementDeclarationListInLoopNoCrash2.ts(3,3): error TS1344: 'A label is not allowed here. + + +==== labeledStatementDeclarationListInLoopNoCrash2.ts (1 errors) ==== + for (let x of []) { + var v0 = x; + foo: var y; + ~~~ +!!! error TS1344: 'A label is not allowed here. + (function() { return x + v0}); + } + \ No newline at end of file diff --git a/tests/baselines/reference/labeledStatementDeclarationListInLoopNoCrash2(target=es2015).js b/tests/baselines/reference/labeledStatementDeclarationListInLoopNoCrash2(target=es2015).js new file mode 100644 index 0000000000000..5b1591b2125f8 --- /dev/null +++ b/tests/baselines/reference/labeledStatementDeclarationListInLoopNoCrash2(target=es2015).js @@ -0,0 +1,17 @@ +//// [tests/cases/conformance/statements/labeledStatements/labeledStatementDeclarationListInLoopNoCrash2.ts] //// + +//// [labeledStatementDeclarationListInLoopNoCrash2.ts] +for (let x of []) { + var v0 = x; + foo: var y; + (function() { return x + v0}); +} + + +//// [labeledStatementDeclarationListInLoopNoCrash2.js] +"use strict"; +for (let x of []) { + var v0 = x; + foo: var y; + (function () { return x + v0; }); +} diff --git a/tests/baselines/reference/labeledStatementDeclarationListInLoopNoCrash2.js b/tests/baselines/reference/labeledStatementDeclarationListInLoopNoCrash2(target=es5).js similarity index 100% rename from tests/baselines/reference/labeledStatementDeclarationListInLoopNoCrash2.js rename to tests/baselines/reference/labeledStatementDeclarationListInLoopNoCrash2(target=es5).js diff --git a/tests/baselines/reference/labeledStatementDeclarationListInLoopNoCrash3(target=es2015).errors.txt b/tests/baselines/reference/labeledStatementDeclarationListInLoopNoCrash3(target=es2015).errors.txt new file mode 100644 index 0000000000000..7580e978e97e5 --- /dev/null +++ b/tests/baselines/reference/labeledStatementDeclarationListInLoopNoCrash3(target=es2015).errors.txt @@ -0,0 +1,79 @@ +labeledStatementDeclarationListInLoopNoCrash3.ts(9,12): error TS2339: Property 'classFormat' does not exist on type 'ParseThemeData'. +labeledStatementDeclarationListInLoopNoCrash3.ts(15,12): error TS1005: ',' expected. +labeledStatementDeclarationListInLoopNoCrash3.ts(15,12): error TS2304: Cannot find name 'font'. +labeledStatementDeclarationListInLoopNoCrash3.ts(15,21): error TS1005: ',' expected. +labeledStatementDeclarationListInLoopNoCrash3.ts(15,23): error TS1135: Argument expression expected. +labeledStatementDeclarationListInLoopNoCrash3.ts(15,26): error TS1134: Variable declaration expected. +labeledStatementDeclarationListInLoopNoCrash3.ts(15,41): error TS2581: Cannot find name '$'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`. +labeledStatementDeclarationListInLoopNoCrash3.ts(15,42): error TS1005: ')' expected. +labeledStatementDeclarationListInLoopNoCrash3.ts(15,53): error TS2304: Cannot find name 'fontSize'. +labeledStatementDeclarationListInLoopNoCrash3.ts(15,61): error TS1005: ';' expected. +labeledStatementDeclarationListInLoopNoCrash3.ts(16,12): error TS1005: ';' expected. +labeledStatementDeclarationListInLoopNoCrash3.ts(16,12): error TS1344: 'A label is not allowed here. +labeledStatementDeclarationListInLoopNoCrash3.ts(16,23): error TS1134: Variable declaration expected. +labeledStatementDeclarationListInLoopNoCrash3.ts(16,38): error TS2581: Cannot find name '$'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`. +labeledStatementDeclarationListInLoopNoCrash3.ts(16,39): error TS1005: ')' expected. +labeledStatementDeclarationListInLoopNoCrash3.ts(16,50): error TS2304: Cannot find name 'height'. +labeledStatementDeclarationListInLoopNoCrash3.ts(16,56): error TS1005: ';' expected. +labeledStatementDeclarationListInLoopNoCrash3.ts(22,1): error TS1160: Unterminated template literal. + + +==== labeledStatementDeclarationListInLoopNoCrash3.ts (18 errors) ==== + // https://github.com/microsoft/TypeScript/issues/59345 + + export class ParseThemeData { + parseButton(button: any) { + const {type, size} = button; + for (let item of type) { + const fontType = item.type; + const style = (state: string) => `color: var(--button-${fontType}-${state}-font-color)`; + this.classFormat(`${style('active')}); + ~~~~~~~~~~~ +!!! error TS2339: Property 'classFormat' does not exist on type 'ParseThemeData'. + } + for (let item of size) { + const fontType = item.type; + this.classFormat( + [ + `font-size: var(--button-size-${fontType}-fontSize)`, + ~~~~ +!!! error TS1005: ',' expected. + ~~~~ +!!! error TS2304: Cannot find name 'font'. + ~ +!!! error TS1005: ',' expected. + ~~~ +!!! error TS1135: Argument expression expected. + ~ +!!! error TS1134: Variable declaration expected. + ~ +!!! error TS2581: Cannot find name '$'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`. + ~ +!!! error TS1005: ')' expected. + ~~~~~~~~ +!!! error TS2304: Cannot find name 'fontSize'. + ~ +!!! error TS1005: ';' expected. + `height: var(--button-size-${fontType}-height)`, + ~~~~~~ +!!! error TS1005: ';' expected. + ~~~~~~ +!!! error TS1344: 'A label is not allowed here. + ~ +!!! error TS1134: Variable declaration expected. + ~ +!!! error TS2581: Cannot find name '$'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`. + ~ +!!! error TS1005: ')' expected. + ~~~~~~ +!!! error TS2304: Cannot find name 'height'. + ~ +!!! error TS1005: ';' expected. + ].join(';') + ); + } + } + } + + +!!! error TS1160: Unterminated template literal. \ No newline at end of file diff --git a/tests/baselines/reference/labeledStatementDeclarationListInLoopNoCrash3(target=es2015).js b/tests/baselines/reference/labeledStatementDeclarationListInLoopNoCrash3(target=es2015).js new file mode 100644 index 0000000000000..4d5e741e49d90 --- /dev/null +++ b/tests/baselines/reference/labeledStatementDeclarationListInLoopNoCrash3(target=es2015).js @@ -0,0 +1,65 @@ +//// [tests/cases/conformance/statements/labeledStatements/labeledStatementDeclarationListInLoopNoCrash3.ts] //// + +//// [labeledStatementDeclarationListInLoopNoCrash3.ts] +// https://github.com/microsoft/TypeScript/issues/59345 + +export class ParseThemeData { + parseButton(button: any) { + const {type, size} = button; + for (let item of type) { + const fontType = item.type; + const style = (state: string) => `color: var(--button-${fontType}-${state}-font-color)`; + this.classFormat(`${style('active')}); + } + for (let item of size) { + const fontType = item.type; + this.classFormat( + [ + `font-size: var(--button-size-${fontType}-fontSize)`, + `height: var(--button-size-${fontType}-height)`, + ].join(';') + ); + } + } +} + + +//// [labeledStatementDeclarationListInLoopNoCrash3.js] +// https://github.com/microsoft/TypeScript/issues/59345 +export class ParseThemeData { + parseButton(button) { + const { type, size } = button; + for (let item of type) { + const fontType = item.type; + const style = (state) => `color: var(--button-${fontType}-${state}-font-color)`; + this.classFormat(`${style('active')}); + } + for (let item of size) { + const fontType = item.type; + this.classFormat( + [ + `, font - size); + var ; + (--button - size - $); + { + fontType; + } + -fontSize; + `, + `; + height: var ; + (--button - size - $); + { + fontType; + } + -height; + `, + ].join(';') + ); + } + } +} + ; + } + } +} diff --git a/tests/baselines/reference/labeledStatementDeclarationListInLoopNoCrash3.errors.txt b/tests/baselines/reference/labeledStatementDeclarationListInLoopNoCrash3(target=es5).errors.txt similarity index 100% rename from tests/baselines/reference/labeledStatementDeclarationListInLoopNoCrash3.errors.txt rename to tests/baselines/reference/labeledStatementDeclarationListInLoopNoCrash3(target=es5).errors.txt diff --git a/tests/baselines/reference/labeledStatementDeclarationListInLoopNoCrash3.js b/tests/baselines/reference/labeledStatementDeclarationListInLoopNoCrash3(target=es5).js similarity index 100% rename from tests/baselines/reference/labeledStatementDeclarationListInLoopNoCrash3.js rename to tests/baselines/reference/labeledStatementDeclarationListInLoopNoCrash3(target=es5).js diff --git a/tests/baselines/reference/labeledStatementDeclarationListInLoopNoCrash4(target=es2015).errors.txt b/tests/baselines/reference/labeledStatementDeclarationListInLoopNoCrash4(target=es2015).errors.txt new file mode 100644 index 0000000000000..4b7f3b90aa3db --- /dev/null +++ b/tests/baselines/reference/labeledStatementDeclarationListInLoopNoCrash4(target=es2015).errors.txt @@ -0,0 +1,75 @@ +labeledStatementDeclarationListInLoopNoCrash4.ts(7,12): error TS2339: Property 'classFormat' does not exist on type 'ParseThemeData'. +labeledStatementDeclarationListInLoopNoCrash4.ts(13,12): error TS1005: ',' expected. +labeledStatementDeclarationListInLoopNoCrash4.ts(13,12): error TS2304: Cannot find name 'font'. +labeledStatementDeclarationListInLoopNoCrash4.ts(13,21): error TS1005: ',' expected. +labeledStatementDeclarationListInLoopNoCrash4.ts(13,23): error TS1135: Argument expression expected. +labeledStatementDeclarationListInLoopNoCrash4.ts(13,26): error TS1134: Variable declaration expected. +labeledStatementDeclarationListInLoopNoCrash4.ts(13,41): error TS2581: Cannot find name '$'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`. +labeledStatementDeclarationListInLoopNoCrash4.ts(13,42): error TS1005: ')' expected. +labeledStatementDeclarationListInLoopNoCrash4.ts(13,53): error TS2304: Cannot find name 'fontSize'. +labeledStatementDeclarationListInLoopNoCrash4.ts(13,61): error TS1005: ';' expected. +labeledStatementDeclarationListInLoopNoCrash4.ts(14,12): error TS1005: ';' expected. +labeledStatementDeclarationListInLoopNoCrash4.ts(14,12): error TS1344: 'A label is not allowed here. +labeledStatementDeclarationListInLoopNoCrash4.ts(14,27): error TS1005: ',' expected. +labeledStatementDeclarationListInLoopNoCrash4.ts(20,1): error TS1005: '}' expected. +labeledStatementDeclarationListInLoopNoCrash4.ts(20,1): error TS1160: Unterminated template literal. + + +==== labeledStatementDeclarationListInLoopNoCrash4.ts (15 errors) ==== + export class ParseThemeData { + parseButton(button: any) { + const {type, size} = button; + for (let item of type) { + const fontType = item.type; + const style = (state: string) => `color: var(--button-${fontType}-${state}-font-color)`; + this.classFormat(`${style('active')}); + ~~~~~~~~~~~ +!!! error TS2339: Property 'classFormat' does not exist on type 'ParseThemeData'. + } + for (let item of size) { + const fontType = item.type; + this.classFormat( + [ + `font-size: var(--button-size-${fontType}-fontSize)`, + ~~~~ +!!! error TS1005: ',' expected. + ~~~~ +!!! error TS2304: Cannot find name 'font'. + ~ +!!! error TS1005: ',' expected. + ~~~ +!!! error TS1135: Argument expression expected. + ~ +!!! error TS1134: Variable declaration expected. + ~ +!!! error TS2581: Cannot find name '$'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`. + ~ +!!! error TS1005: ')' expected. + ~~~~~~~~ +!!! error TS2304: Cannot find name 'fontSize'. + ~ +!!! error TS1005: ';' expected. + `height: var foo`, + ~~~~~~ +!!! error TS1005: ';' expected. + ~~~~~~ +!!! error TS1344: 'A label is not allowed here. + ~~ + ].join(';') + ~~~~~~~~~~~~~~~~~~~ + ); + ~~~~~~~~ + } + ~~~~~ + } + ~~~ + } + ~ + + +!!! error TS1005: ',' expected. + +!!! error TS1005: '}' expected. +!!! related TS1007 labeledStatementDeclarationListInLoopNoCrash4.ts:4:28: The parser expected to find a '}' to match the '{' token here. + +!!! error TS1160: Unterminated template literal. \ No newline at end of file diff --git a/tests/baselines/reference/labeledStatementDeclarationListInLoopNoCrash4(target=es2015).js b/tests/baselines/reference/labeledStatementDeclarationListInLoopNoCrash4(target=es2015).js new file mode 100644 index 0000000000000..85d6cda1b52f2 --- /dev/null +++ b/tests/baselines/reference/labeledStatementDeclarationListInLoopNoCrash4(target=es2015).js @@ -0,0 +1,57 @@ +//// [tests/cases/conformance/statements/labeledStatements/labeledStatementDeclarationListInLoopNoCrash4.ts] //// + +//// [labeledStatementDeclarationListInLoopNoCrash4.ts] +export class ParseThemeData { + parseButton(button: any) { + const {type, size} = button; + for (let item of type) { + const fontType = item.type; + const style = (state: string) => `color: var(--button-${fontType}-${state}-font-color)`; + this.classFormat(`${style('active')}); + } + for (let item of size) { + const fontType = item.type; + this.classFormat( + [ + `font-size: var(--button-size-${fontType}-fontSize)`, + `height: var foo`, + ].join(';') + ); + } + } +} + + +//// [labeledStatementDeclarationListInLoopNoCrash4.js] +export class ParseThemeData { + parseButton(button) { + const { type, size } = button; + for (let item of type) { + const fontType = item.type; + const style = (state) => `color: var(--button-${fontType}-${state}-font-color)`; + this.classFormat(`${style('active')}); + } + for (let item of size) { + const fontType = item.type; + this.classFormat( + [ + `, font - size); + var ; + (--button - size - $); + { + fontType; + } + -fontSize; + `, + `; + height: var foo; + `, + ].join(';') + ); + } + } +} + ; + } + } +} diff --git a/tests/baselines/reference/labeledStatementDeclarationListInLoopNoCrash4.errors.txt b/tests/baselines/reference/labeledStatementDeclarationListInLoopNoCrash4(target=es5).errors.txt similarity index 100% rename from tests/baselines/reference/labeledStatementDeclarationListInLoopNoCrash4.errors.txt rename to tests/baselines/reference/labeledStatementDeclarationListInLoopNoCrash4(target=es5).errors.txt diff --git a/tests/baselines/reference/labeledStatementDeclarationListInLoopNoCrash4.js b/tests/baselines/reference/labeledStatementDeclarationListInLoopNoCrash4(target=es5).js similarity index 100% rename from tests/baselines/reference/labeledStatementDeclarationListInLoopNoCrash4.js rename to tests/baselines/reference/labeledStatementDeclarationListInLoopNoCrash4(target=es5).js diff --git a/tests/baselines/reference/letConstInCaseClauses.errors.txt b/tests/baselines/reference/letConstInCaseClauses(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/letConstInCaseClauses.errors.txt rename to tests/baselines/reference/letConstInCaseClauses(target=es2015).errors.txt diff --git a/tests/baselines/reference/letConstInCaseClauses(target=es2015).js b/tests/baselines/reference/letConstInCaseClauses(target=es2015).js new file mode 100644 index 0000000000000..2c652dc833683 --- /dev/null +++ b/tests/baselines/reference/letConstInCaseClauses(target=es2015).js @@ -0,0 +1,62 @@ +//// [tests/cases/compiler/letConstInCaseClauses.ts] //// + +//// [letConstInCaseClauses.ts] +var x = 10; +var y = 20; +{ + let x = 1; + let y = 2; + console.log(x) + switch (x) { + case 10: + let x = 20; + } + switch (y) { + case 10: + let y = 20; + } +} + +{ + const x = 1; + const y = 2; + console.log(x) + switch (x) { + case 10: + const x = 20; + } + switch (y) { + case 10: + const y = 20; + } +} + +//// [letConstInCaseClauses.js] +var x = 10; +var y = 20; +{ + let x = 1; + let y = 2; + console.log(x); + switch (x) { + case 10: + let x = 20; + } + switch (y) { + case 10: + let y = 20; + } +} +{ + const x = 1; + const y = 2; + console.log(x); + switch (x) { + case 10: + const x = 20; + } + switch (y) { + case 10: + const y = 20; + } +} diff --git a/tests/baselines/reference/letConstInCaseClauses.symbols b/tests/baselines/reference/letConstInCaseClauses(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/letConstInCaseClauses.symbols rename to tests/baselines/reference/letConstInCaseClauses(target=es2015).symbols diff --git a/tests/baselines/reference/letConstInCaseClauses.types b/tests/baselines/reference/letConstInCaseClauses(target=es2015).types similarity index 100% rename from tests/baselines/reference/letConstInCaseClauses.types rename to tests/baselines/reference/letConstInCaseClauses(target=es2015).types diff --git a/tests/baselines/reference/letConstInCaseClauses(target=es5).errors.txt b/tests/baselines/reference/letConstInCaseClauses(target=es5).errors.txt new file mode 100644 index 0000000000000..dfec32f10ec58 --- /dev/null +++ b/tests/baselines/reference/letConstInCaseClauses(target=es5).errors.txt @@ -0,0 +1,38 @@ +letConstInCaseClauses.ts(22,14): error TS2678: Type '10' is not comparable to type '1'. +letConstInCaseClauses.ts(26,14): error TS2678: Type '10' is not comparable to type '2'. + + +==== letConstInCaseClauses.ts (2 errors) ==== + var x = 10; + var y = 20; + { + let x = 1; + let y = 2; + console.log(x) + switch (x) { + case 10: + let x = 20; + } + switch (y) { + case 10: + let y = 20; + } + } + + { + const x = 1; + const y = 2; + console.log(x) + switch (x) { + case 10: + ~~ +!!! error TS2678: Type '10' is not comparable to type '1'. + const x = 20; + } + switch (y) { + case 10: + ~~ +!!! error TS2678: Type '10' is not comparable to type '2'. + const y = 20; + } + } \ No newline at end of file diff --git a/tests/baselines/reference/letConstInCaseClauses.js b/tests/baselines/reference/letConstInCaseClauses(target=es5).js similarity index 100% rename from tests/baselines/reference/letConstInCaseClauses.js rename to tests/baselines/reference/letConstInCaseClauses(target=es5).js diff --git a/tests/baselines/reference/letConstInCaseClauses(target=es5).symbols b/tests/baselines/reference/letConstInCaseClauses(target=es5).symbols new file mode 100644 index 0000000000000..58f161cfbf658 --- /dev/null +++ b/tests/baselines/reference/letConstInCaseClauses(target=es5).symbols @@ -0,0 +1,65 @@ +//// [tests/cases/compiler/letConstInCaseClauses.ts] //// + +=== letConstInCaseClauses.ts === +var x = 10; +>x : Symbol(x, Decl(letConstInCaseClauses.ts, 0, 3)) + +var y = 20; +>y : Symbol(y, Decl(letConstInCaseClauses.ts, 1, 3)) +{ + let x = 1; +>x : Symbol(x, Decl(letConstInCaseClauses.ts, 3, 7)) + + let y = 2; +>y : Symbol(y, Decl(letConstInCaseClauses.ts, 4, 7)) + + console.log(x) +>console.log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) +>console : Symbol(console, Decl(lib.dom.d.ts, --, --)) +>log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) +>x : Symbol(x, Decl(letConstInCaseClauses.ts, 3, 7)) + + switch (x) { +>x : Symbol(x, Decl(letConstInCaseClauses.ts, 3, 7)) + + case 10: + let x = 20; +>x : Symbol(x, Decl(letConstInCaseClauses.ts, 8, 15)) + } + switch (y) { +>y : Symbol(y, Decl(letConstInCaseClauses.ts, 4, 7)) + + case 10: + let y = 20; +>y : Symbol(y, Decl(letConstInCaseClauses.ts, 12, 15)) + } +} + +{ + const x = 1; +>x : Symbol(x, Decl(letConstInCaseClauses.ts, 17, 9)) + + const y = 2; +>y : Symbol(y, Decl(letConstInCaseClauses.ts, 18, 9)) + + console.log(x) +>console.log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) +>console : Symbol(console, Decl(lib.dom.d.ts, --, --)) +>log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) +>x : Symbol(x, Decl(letConstInCaseClauses.ts, 17, 9)) + + switch (x) { +>x : Symbol(x, Decl(letConstInCaseClauses.ts, 17, 9)) + + case 10: + const x = 20; +>x : Symbol(x, Decl(letConstInCaseClauses.ts, 22, 17)) + } + switch (y) { +>y : Symbol(y, Decl(letConstInCaseClauses.ts, 18, 9)) + + case 10: + const y = 20; +>y : Symbol(y, Decl(letConstInCaseClauses.ts, 26, 17)) + } +} diff --git a/tests/baselines/reference/letConstInCaseClauses(target=es5).types b/tests/baselines/reference/letConstInCaseClauses(target=es5).types new file mode 100644 index 0000000000000..72d47e68a712d --- /dev/null +++ b/tests/baselines/reference/letConstInCaseClauses(target=es5).types @@ -0,0 +1,123 @@ +//// [tests/cases/compiler/letConstInCaseClauses.ts] //// + +=== letConstInCaseClauses.ts === +var x = 10; +>x : number +> : ^^^^^^ +>10 : 10 +> : ^^ + +var y = 20; +>y : number +> : ^^^^^^ +>20 : 20 +> : ^^ +{ + let x = 1; +>x : number +> : ^^^^^^ +>1 : 1 +> : ^ + + let y = 2; +>y : number +> : ^^^^^^ +>2 : 2 +> : ^ + + console.log(x) +>console.log(x) : void +> : ^^^^ +>console.log : (...data: any[]) => void +> : ^^^^ ^^ ^^^^^ +>console : Console +> : ^^^^^^^ +>log : (...data: any[]) => void +> : ^^^^ ^^ ^^^^^ +>x : number +> : ^^^^^^ + + switch (x) { +>x : number +> : ^^^^^^ + + case 10: +>10 : 10 +> : ^^ + + let x = 20; +>x : number +> : ^^^^^^ +>20 : 20 +> : ^^ + } + switch (y) { +>y : number +> : ^^^^^^ + + case 10: +>10 : 10 +> : ^^ + + let y = 20; +>y : number +> : ^^^^^^ +>20 : 20 +> : ^^ + } +} + +{ + const x = 1; +>x : 1 +> : ^ +>1 : 1 +> : ^ + + const y = 2; +>y : 2 +> : ^ +>2 : 2 +> : ^ + + console.log(x) +>console.log(x) : void +> : ^^^^ +>console.log : (...data: any[]) => void +> : ^^^^ ^^ ^^^^^ +>console : Console +> : ^^^^^^^ +>log : (...data: any[]) => void +> : ^^^^ ^^ ^^^^^ +>x : 1 +> : ^ + + switch (x) { +>x : 1 +> : ^ + + case 10: +>10 : 10 +> : ^^ + + const x = 20; +>x : 20 +> : ^^ +>20 : 20 +> : ^^ + } + switch (y) { +>y : 2 +> : ^ + + case 10: +>10 : 10 +> : ^^ + + const y = 20; +>y : 20 +> : ^^ +>20 : 20 +> : ^^ + } +} diff --git a/tests/baselines/reference/letConstMatchingParameterNames(target=es2015).js b/tests/baselines/reference/letConstMatchingParameterNames(target=es2015).js new file mode 100644 index 0000000000000..0618d0f76d2f7 --- /dev/null +++ b/tests/baselines/reference/letConstMatchingParameterNames(target=es2015).js @@ -0,0 +1,30 @@ +//// [tests/cases/compiler/letConstMatchingParameterNames.ts] //// + +//// [letConstMatchingParameterNames.ts] +let parent = true; +const parent2 = true; +declare function use(a: any); + +function a() { + + let parent = 1; + const parent2 = 2; + + function b(parent: string, parent2: number) { + use(parent); + use(parent2); + } +} + + +//// [letConstMatchingParameterNames.js] +let parent = true; +const parent2 = true; +function a() { + let parent = 1; + const parent2 = 2; + function b(parent, parent2) { + use(parent); + use(parent2); + } +} diff --git a/tests/baselines/reference/letConstMatchingParameterNames.symbols b/tests/baselines/reference/letConstMatchingParameterNames(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/letConstMatchingParameterNames.symbols rename to tests/baselines/reference/letConstMatchingParameterNames(target=es2015).symbols diff --git a/tests/baselines/reference/letConstMatchingParameterNames.types b/tests/baselines/reference/letConstMatchingParameterNames(target=es2015).types similarity index 100% rename from tests/baselines/reference/letConstMatchingParameterNames.types rename to tests/baselines/reference/letConstMatchingParameterNames(target=es2015).types diff --git a/tests/baselines/reference/letConstMatchingParameterNames.js b/tests/baselines/reference/letConstMatchingParameterNames(target=es5).js similarity index 100% rename from tests/baselines/reference/letConstMatchingParameterNames.js rename to tests/baselines/reference/letConstMatchingParameterNames(target=es5).js diff --git a/tests/baselines/reference/letConstMatchingParameterNames(target=es5).symbols b/tests/baselines/reference/letConstMatchingParameterNames(target=es5).symbols new file mode 100644 index 0000000000000..17a8fe047a949 --- /dev/null +++ b/tests/baselines/reference/letConstMatchingParameterNames(target=es5).symbols @@ -0,0 +1,37 @@ +//// [tests/cases/compiler/letConstMatchingParameterNames.ts] //// + +=== letConstMatchingParameterNames.ts === +let parent = true; +>parent : Symbol(parent, Decl(letConstMatchingParameterNames.ts, 0, 3)) + +const parent2 = true; +>parent2 : Symbol(parent2, Decl(letConstMatchingParameterNames.ts, 1, 5)) + +declare function use(a: any); +>use : Symbol(use, Decl(letConstMatchingParameterNames.ts, 1, 21)) +>a : Symbol(a, Decl(letConstMatchingParameterNames.ts, 2, 21)) + +function a() { +>a : Symbol(a, Decl(letConstMatchingParameterNames.ts, 2, 29)) + + let parent = 1; +>parent : Symbol(parent, Decl(letConstMatchingParameterNames.ts, 6, 7)) + + const parent2 = 2; +>parent2 : Symbol(parent2, Decl(letConstMatchingParameterNames.ts, 7, 9)) + + function b(parent: string, parent2: number) { +>b : Symbol(b, Decl(letConstMatchingParameterNames.ts, 7, 22)) +>parent : Symbol(parent, Decl(letConstMatchingParameterNames.ts, 9, 15)) +>parent2 : Symbol(parent2, Decl(letConstMatchingParameterNames.ts, 9, 30)) + + use(parent); +>use : Symbol(use, Decl(letConstMatchingParameterNames.ts, 1, 21)) +>parent : Symbol(parent, Decl(letConstMatchingParameterNames.ts, 9, 15)) + + use(parent2); +>use : Symbol(use, Decl(letConstMatchingParameterNames.ts, 1, 21)) +>parent2 : Symbol(parent2, Decl(letConstMatchingParameterNames.ts, 9, 30)) + } +} + diff --git a/tests/baselines/reference/letConstMatchingParameterNames(target=es5).types b/tests/baselines/reference/letConstMatchingParameterNames(target=es5).types new file mode 100644 index 0000000000000..94e8e8f917b42 --- /dev/null +++ b/tests/baselines/reference/letConstMatchingParameterNames(target=es5).types @@ -0,0 +1,60 @@ +//// [tests/cases/compiler/letConstMatchingParameterNames.ts] //// + +=== letConstMatchingParameterNames.ts === +let parent = true; +>parent : boolean +> : ^^^^^^^ +>true : true +> : ^^^^ + +const parent2 = true; +>parent2 : true +> : ^^^^ +>true : true +> : ^^^^ + +declare function use(a: any); +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>a : any + +function a() { +>a : () => void +> : ^^^^^^^^^^ + + let parent = 1; +>parent : number +> : ^^^^^^ +>1 : 1 +> : ^ + + const parent2 = 2; +>parent2 : 2 +> : ^ +>2 : 2 +> : ^ + + function b(parent: string, parent2: number) { +>b : (parent: string, parent2: number) => void +> : ^ ^^ ^^ ^^ ^^^^^^^^^ +>parent : string +> : ^^^^^^ +>parent2 : number +> : ^^^^^^ + + use(parent); +>use(parent) : any +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>parent : string +> : ^^^^^^ + + use(parent2); +>use(parent2) : any +>use : (a: any) => any +> : ^ ^^ ^^^^^^^^ +>parent2 : number +> : ^^^^^^ + } +} + diff --git a/tests/baselines/reference/letDeclarations-es5(target=es2015).js b/tests/baselines/reference/letDeclarations-es5(target=es2015).js new file mode 100644 index 0000000000000..9a871261f3e23 --- /dev/null +++ b/tests/baselines/reference/letDeclarations-es5(target=es2015).js @@ -0,0 +1,25 @@ +//// [tests/cases/compiler/letDeclarations-es5.ts] //// + +//// [letDeclarations-es5.ts] +let l1; +let l2: number; +let l3, l4, l5 :string, l6; + +let l7 = false; +let l8: number = 23; +let l9 = 0, l10 :string = "", l11 = null; + +for(let l11 in {}) { } + +for(let l12 = 0; l12 < 9; l12++) { } + + +//// [letDeclarations-es5.js] +let l1; +let l2; +let l3, l4, l5, l6; +let l7 = false; +let l8 = 23; +let l9 = 0, l10 = "", l11 = null; +for (let l11 in {}) { } +for (let l12 = 0; l12 < 9; l12++) { } diff --git a/tests/baselines/reference/letDeclarations-es5.symbols b/tests/baselines/reference/letDeclarations-es5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/letDeclarations-es5.symbols rename to tests/baselines/reference/letDeclarations-es5(target=es2015).symbols diff --git a/tests/baselines/reference/letDeclarations-es5.types b/tests/baselines/reference/letDeclarations-es5(target=es2015).types similarity index 100% rename from tests/baselines/reference/letDeclarations-es5.types rename to tests/baselines/reference/letDeclarations-es5(target=es2015).types diff --git a/tests/baselines/reference/letDeclarations-es5.js b/tests/baselines/reference/letDeclarations-es5(target=es5).js similarity index 100% rename from tests/baselines/reference/letDeclarations-es5.js rename to tests/baselines/reference/letDeclarations-es5(target=es5).js diff --git a/tests/baselines/reference/letDeclarations-es5(target=es5).symbols b/tests/baselines/reference/letDeclarations-es5(target=es5).symbols new file mode 100644 index 0000000000000..df6b8a7abaf8a --- /dev/null +++ b/tests/baselines/reference/letDeclarations-es5(target=es5).symbols @@ -0,0 +1,34 @@ +//// [tests/cases/compiler/letDeclarations-es5.ts] //// + +=== letDeclarations-es5.ts === +let l1; +>l1 : Symbol(l1, Decl(letDeclarations-es5.ts, 0, 3)) + +let l2: number; +>l2 : Symbol(l2, Decl(letDeclarations-es5.ts, 1, 3)) + +let l3, l4, l5 :string, l6; +>l3 : Symbol(l3, Decl(letDeclarations-es5.ts, 2, 3)) +>l4 : Symbol(l4, Decl(letDeclarations-es5.ts, 2, 7)) +>l5 : Symbol(l5, Decl(letDeclarations-es5.ts, 2, 11)) +>l6 : Symbol(l6, Decl(letDeclarations-es5.ts, 2, 23)) + +let l7 = false; +>l7 : Symbol(l7, Decl(letDeclarations-es5.ts, 4, 3)) + +let l8: number = 23; +>l8 : Symbol(l8, Decl(letDeclarations-es5.ts, 5, 3)) + +let l9 = 0, l10 :string = "", l11 = null; +>l9 : Symbol(l9, Decl(letDeclarations-es5.ts, 6, 3)) +>l10 : Symbol(l10, Decl(letDeclarations-es5.ts, 6, 11)) +>l11 : Symbol(l11, Decl(letDeclarations-es5.ts, 6, 29)) + +for(let l11 in {}) { } +>l11 : Symbol(l11, Decl(letDeclarations-es5.ts, 8, 7)) + +for(let l12 = 0; l12 < 9; l12++) { } +>l12 : Symbol(l12, Decl(letDeclarations-es5.ts, 10, 7)) +>l12 : Symbol(l12, Decl(letDeclarations-es5.ts, 10, 7)) +>l12 : Symbol(l12, Decl(letDeclarations-es5.ts, 10, 7)) + diff --git a/tests/baselines/reference/letDeclarations-es5(target=es5).types b/tests/baselines/reference/letDeclarations-es5(target=es5).types new file mode 100644 index 0000000000000..f7e902488ae8e --- /dev/null +++ b/tests/baselines/reference/letDeclarations-es5(target=es5).types @@ -0,0 +1,62 @@ +//// [tests/cases/compiler/letDeclarations-es5.ts] //// + +=== letDeclarations-es5.ts === +let l1; +>l1 : any + +let l2: number; +>l2 : number +> : ^^^^^^ + +let l3, l4, l5 :string, l6; +>l3 : any +>l4 : any +>l5 : string +> : ^^^^^^ +>l6 : any + +let l7 = false; +>l7 : boolean +> : ^^^^^^^ +>false : false +> : ^^^^^ + +let l8: number = 23; +>l8 : number +> : ^^^^^^ +>23 : 23 +> : ^^ + +let l9 = 0, l10 :string = "", l11 = null; +>l9 : number +> : ^^^^^^ +>0 : 0 +> : ^ +>l10 : string +> : ^^^^^^ +>"" : "" +> : ^^ +>l11 : any + +for(let l11 in {}) { } +>l11 : string +> : ^^^^^^ +>{} : {} +> : ^^ + +for(let l12 = 0; l12 < 9; l12++) { } +>l12 : number +> : ^^^^^^ +>0 : 0 +> : ^ +>l12 < 9 : boolean +> : ^^^^^^^ +>l12 : number +> : ^^^^^^ +>9 : 9 +> : ^ +>l12++ : number +> : ^^^^^^ +>l12 : number +> : ^^^^^^ + diff --git a/tests/baselines/reference/letDeclarations-es5-1(target=es2015).js b/tests/baselines/reference/letDeclarations-es5-1(target=es2015).js new file mode 100644 index 0000000000000..e4bb62c8856d3 --- /dev/null +++ b/tests/baselines/reference/letDeclarations-es5-1(target=es2015).js @@ -0,0 +1,17 @@ +//// [tests/cases/compiler/letDeclarations-es5-1.ts] //// + +//// [letDeclarations-es5-1.ts] + let l1; + let l2: number; + let l3, l4, l5 :string, l6; + let l7 = false; + let l8: number = 23; + let l9 = 0, l10 :string = "", l11 = null; + +//// [letDeclarations-es5-1.js] +let l1; +let l2; +let l3, l4, l5, l6; +let l7 = false; +let l8 = 23; +let l9 = 0, l10 = "", l11 = null; diff --git a/tests/baselines/reference/letDeclarations-es5-1.symbols b/tests/baselines/reference/letDeclarations-es5-1(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/letDeclarations-es5-1.symbols rename to tests/baselines/reference/letDeclarations-es5-1(target=es2015).symbols diff --git a/tests/baselines/reference/letDeclarations-es5-1.types b/tests/baselines/reference/letDeclarations-es5-1(target=es2015).types similarity index 100% rename from tests/baselines/reference/letDeclarations-es5-1.types rename to tests/baselines/reference/letDeclarations-es5-1(target=es2015).types diff --git a/tests/baselines/reference/letDeclarations-es5-1.js b/tests/baselines/reference/letDeclarations-es5-1(target=es5).js similarity index 100% rename from tests/baselines/reference/letDeclarations-es5-1.js rename to tests/baselines/reference/letDeclarations-es5-1(target=es5).js diff --git a/tests/baselines/reference/letDeclarations-es5-1(target=es5).symbols b/tests/baselines/reference/letDeclarations-es5-1(target=es5).symbols new file mode 100644 index 0000000000000..3650f0834399e --- /dev/null +++ b/tests/baselines/reference/letDeclarations-es5-1(target=es5).symbols @@ -0,0 +1,26 @@ +//// [tests/cases/compiler/letDeclarations-es5-1.ts] //// + +=== letDeclarations-es5-1.ts === + let l1; +>l1 : Symbol(l1, Decl(letDeclarations-es5-1.ts, 0, 7)) + + let l2: number; +>l2 : Symbol(l2, Decl(letDeclarations-es5-1.ts, 1, 7)) + + let l3, l4, l5 :string, l6; +>l3 : Symbol(l3, Decl(letDeclarations-es5-1.ts, 2, 7)) +>l4 : Symbol(l4, Decl(letDeclarations-es5-1.ts, 2, 11)) +>l5 : Symbol(l5, Decl(letDeclarations-es5-1.ts, 2, 15)) +>l6 : Symbol(l6, Decl(letDeclarations-es5-1.ts, 2, 27)) + + let l7 = false; +>l7 : Symbol(l7, Decl(letDeclarations-es5-1.ts, 3, 7)) + + let l8: number = 23; +>l8 : Symbol(l8, Decl(letDeclarations-es5-1.ts, 4, 7)) + + let l9 = 0, l10 :string = "", l11 = null; +>l9 : Symbol(l9, Decl(letDeclarations-es5-1.ts, 5, 7)) +>l10 : Symbol(l10, Decl(letDeclarations-es5-1.ts, 5, 15)) +>l11 : Symbol(l11, Decl(letDeclarations-es5-1.ts, 5, 33)) + diff --git a/tests/baselines/reference/letDeclarations-es5-1(target=es5).types b/tests/baselines/reference/letDeclarations-es5-1(target=es5).types new file mode 100644 index 0000000000000..cde05165b263a --- /dev/null +++ b/tests/baselines/reference/letDeclarations-es5-1(target=es5).types @@ -0,0 +1,40 @@ +//// [tests/cases/compiler/letDeclarations-es5-1.ts] //// + +=== letDeclarations-es5-1.ts === + let l1; +>l1 : any + + let l2: number; +>l2 : number +> : ^^^^^^ + + let l3, l4, l5 :string, l6; +>l3 : any +>l4 : any +>l5 : string +> : ^^^^^^ +>l6 : any + + let l7 = false; +>l7 : boolean +> : ^^^^^^^ +>false : false +> : ^^^^^ + + let l8: number = 23; +>l8 : number +> : ^^^^^^ +>23 : 23 +> : ^^ + + let l9 = 0, l10 :string = "", l11 = null; +>l9 : number +> : ^^^^^^ +>0 : 0 +> : ^ +>l10 : string +> : ^^^^^^ +>"" : "" +> : ^^ +>l11 : any + diff --git a/tests/baselines/reference/letInConstDeclarations_ES5.errors.txt b/tests/baselines/reference/letInConstDeclarations_ES5(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/letInConstDeclarations_ES5.errors.txt rename to tests/baselines/reference/letInConstDeclarations_ES5(target=es2015).errors.txt diff --git a/tests/baselines/reference/letInConstDeclarations_ES5(target=es2015).js b/tests/baselines/reference/letInConstDeclarations_ES5(target=es2015).js new file mode 100644 index 0000000000000..a192299ff6326 --- /dev/null +++ b/tests/baselines/reference/letInConstDeclarations_ES5(target=es2015).js @@ -0,0 +1,16 @@ +//// [tests/cases/compiler/letInConstDeclarations_ES5.ts] //// + +//// [letInConstDeclarations_ES5.ts] +// All use of let in const declaration should be an error +const x = 50, let = 5; + +{ + const x = 10, let = 20; +} + +//// [letInConstDeclarations_ES5.js] +// All use of let in const declaration should be an error +const x = 50, let = 5; +{ + const x = 10, let = 20; +} diff --git a/tests/baselines/reference/letInConstDeclarations_ES5.symbols b/tests/baselines/reference/letInConstDeclarations_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/letInConstDeclarations_ES5.symbols rename to tests/baselines/reference/letInConstDeclarations_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/letInConstDeclarations_ES5.types b/tests/baselines/reference/letInConstDeclarations_ES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/letInConstDeclarations_ES5.types rename to tests/baselines/reference/letInConstDeclarations_ES5(target=es2015).types diff --git a/tests/baselines/reference/letInConstDeclarations_ES5(target=es5).errors.txt b/tests/baselines/reference/letInConstDeclarations_ES5(target=es5).errors.txt new file mode 100644 index 0000000000000..a0637a1b9d0ba --- /dev/null +++ b/tests/baselines/reference/letInConstDeclarations_ES5(target=es5).errors.txt @@ -0,0 +1,15 @@ +letInConstDeclarations_ES5.ts(2,15): error TS2480: 'let' is not allowed to be used as a name in 'let' or 'const' declarations. +letInConstDeclarations_ES5.ts(5,19): error TS2480: 'let' is not allowed to be used as a name in 'let' or 'const' declarations. + + +==== letInConstDeclarations_ES5.ts (2 errors) ==== + // All use of let in const declaration should be an error + const x = 50, let = 5; + ~~~ +!!! error TS2480: 'let' is not allowed to be used as a name in 'let' or 'const' declarations. + + { + const x = 10, let = 20; + ~~~ +!!! error TS2480: 'let' is not allowed to be used as a name in 'let' or 'const' declarations. + } \ No newline at end of file diff --git a/tests/baselines/reference/letInConstDeclarations_ES5.js b/tests/baselines/reference/letInConstDeclarations_ES5(target=es5).js similarity index 100% rename from tests/baselines/reference/letInConstDeclarations_ES5.js rename to tests/baselines/reference/letInConstDeclarations_ES5(target=es5).js diff --git a/tests/baselines/reference/letInConstDeclarations_ES5(target=es5).symbols b/tests/baselines/reference/letInConstDeclarations_ES5(target=es5).symbols new file mode 100644 index 0000000000000..0cd6ce0fc0ab4 --- /dev/null +++ b/tests/baselines/reference/letInConstDeclarations_ES5(target=es5).symbols @@ -0,0 +1,13 @@ +//// [tests/cases/compiler/letInConstDeclarations_ES5.ts] //// + +=== letInConstDeclarations_ES5.ts === +// All use of let in const declaration should be an error +const x = 50, let = 5; +>x : Symbol(x, Decl(letInConstDeclarations_ES5.ts, 1, 5)) +>let : Symbol(let, Decl(letInConstDeclarations_ES5.ts, 1, 13)) + +{ + const x = 10, let = 20; +>x : Symbol(x, Decl(letInConstDeclarations_ES5.ts, 4, 9)) +>let : Symbol(let, Decl(letInConstDeclarations_ES5.ts, 4, 17)) +} diff --git a/tests/baselines/reference/letInConstDeclarations_ES5(target=es5).types b/tests/baselines/reference/letInConstDeclarations_ES5(target=es5).types new file mode 100644 index 0000000000000..574269b377ad5 --- /dev/null +++ b/tests/baselines/reference/letInConstDeclarations_ES5(target=es5).types @@ -0,0 +1,25 @@ +//// [tests/cases/compiler/letInConstDeclarations_ES5.ts] //// + +=== letInConstDeclarations_ES5.ts === +// All use of let in const declaration should be an error +const x = 50, let = 5; +>x : 50 +> : ^^ +>50 : 50 +> : ^^ +>let : 5 +> : ^ +>5 : 5 +> : ^ + +{ + const x = 10, let = 20; +>x : 10 +> : ^^ +>10 : 10 +> : ^^ +>let : 20 +> : ^^ +>20 : 20 +> : ^^ +} diff --git a/tests/baselines/reference/letInLetConstDeclOfForOfAndForIn_ES5.errors.txt b/tests/baselines/reference/letInLetConstDeclOfForOfAndForIn_ES5(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/letInLetConstDeclOfForOfAndForIn_ES5.errors.txt rename to tests/baselines/reference/letInLetConstDeclOfForOfAndForIn_ES5(target=es2015).errors.txt diff --git a/tests/baselines/reference/letInLetConstDeclOfForOfAndForIn_ES5(target=es2015).js b/tests/baselines/reference/letInLetConstDeclOfForOfAndForIn_ES5(target=es2015).js new file mode 100644 index 0000000000000..86b3af7e1db6a --- /dev/null +++ b/tests/baselines/reference/letInLetConstDeclOfForOfAndForIn_ES5(target=es2015).js @@ -0,0 +1,36 @@ +//// [tests/cases/compiler/letInLetConstDeclOfForOfAndForIn_ES5.ts] //// + +//// [letInLetConstDeclOfForOfAndForIn_ES5.ts] +// Should be an error +for (let let of [1,2,3]) {} + +for (const let of [1,2,3]) {} + +for (let let in [1,2,3]) {} + +for (const let in [1,2,3]) {} + +{ + for (let let of [1,2,3]) {} + + for (const let of [1,2,3]) {} + + for (let let in [1,2,3]) {} + + for (const let in [1,2,3]) {} +} + + + +//// [letInLetConstDeclOfForOfAndForIn_ES5.js] +// Should be an error +for (let let of [1, 2, 3]) { } +for (const let of [1, 2, 3]) { } +for (let let in [1, 2, 3]) { } +for (const let in [1, 2, 3]) { } +{ + for (let let of [1, 2, 3]) { } + for (const let of [1, 2, 3]) { } + for (let let in [1, 2, 3]) { } + for (const let in [1, 2, 3]) { } +} diff --git a/tests/baselines/reference/letInLetConstDeclOfForOfAndForIn_ES5.symbols b/tests/baselines/reference/letInLetConstDeclOfForOfAndForIn_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/letInLetConstDeclOfForOfAndForIn_ES5.symbols rename to tests/baselines/reference/letInLetConstDeclOfForOfAndForIn_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/letInLetConstDeclOfForOfAndForIn_ES5.types b/tests/baselines/reference/letInLetConstDeclOfForOfAndForIn_ES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/letInLetConstDeclOfForOfAndForIn_ES5.types rename to tests/baselines/reference/letInLetConstDeclOfForOfAndForIn_ES5(target=es2015).types diff --git a/tests/baselines/reference/letInLetConstDeclOfForOfAndForIn_ES5(target=es5).errors.txt b/tests/baselines/reference/letInLetConstDeclOfForOfAndForIn_ES5(target=es5).errors.txt new file mode 100644 index 0000000000000..0bb7d4e38b242 --- /dev/null +++ b/tests/baselines/reference/letInLetConstDeclOfForOfAndForIn_ES5(target=es5).errors.txt @@ -0,0 +1,47 @@ +letInLetConstDeclOfForOfAndForIn_ES5.ts(2,10): error TS2480: 'let' is not allowed to be used as a name in 'let' or 'const' declarations. +letInLetConstDeclOfForOfAndForIn_ES5.ts(4,12): error TS2480: 'let' is not allowed to be used as a name in 'let' or 'const' declarations. +letInLetConstDeclOfForOfAndForIn_ES5.ts(6,10): error TS2480: 'let' is not allowed to be used as a name in 'let' or 'const' declarations. +letInLetConstDeclOfForOfAndForIn_ES5.ts(8,12): error TS2480: 'let' is not allowed to be used as a name in 'let' or 'const' declarations. +letInLetConstDeclOfForOfAndForIn_ES5.ts(11,11): error TS2480: 'let' is not allowed to be used as a name in 'let' or 'const' declarations. +letInLetConstDeclOfForOfAndForIn_ES5.ts(13,13): error TS2480: 'let' is not allowed to be used as a name in 'let' or 'const' declarations. +letInLetConstDeclOfForOfAndForIn_ES5.ts(15,11): error TS2480: 'let' is not allowed to be used as a name in 'let' or 'const' declarations. +letInLetConstDeclOfForOfAndForIn_ES5.ts(17,13): error TS2480: 'let' is not allowed to be used as a name in 'let' or 'const' declarations. + + +==== letInLetConstDeclOfForOfAndForIn_ES5.ts (8 errors) ==== + // Should be an error + for (let let of [1,2,3]) {} + ~~~ +!!! error TS2480: 'let' is not allowed to be used as a name in 'let' or 'const' declarations. + + for (const let of [1,2,3]) {} + ~~~ +!!! error TS2480: 'let' is not allowed to be used as a name in 'let' or 'const' declarations. + + for (let let in [1,2,3]) {} + ~~~ +!!! error TS2480: 'let' is not allowed to be used as a name in 'let' or 'const' declarations. + + for (const let in [1,2,3]) {} + ~~~ +!!! error TS2480: 'let' is not allowed to be used as a name in 'let' or 'const' declarations. + + { + for (let let of [1,2,3]) {} + ~~~ +!!! error TS2480: 'let' is not allowed to be used as a name in 'let' or 'const' declarations. + + for (const let of [1,2,3]) {} + ~~~ +!!! error TS2480: 'let' is not allowed to be used as a name in 'let' or 'const' declarations. + + for (let let in [1,2,3]) {} + ~~~ +!!! error TS2480: 'let' is not allowed to be used as a name in 'let' or 'const' declarations. + + for (const let in [1,2,3]) {} + ~~~ +!!! error TS2480: 'let' is not allowed to be used as a name in 'let' or 'const' declarations. + } + + \ No newline at end of file diff --git a/tests/baselines/reference/letInLetConstDeclOfForOfAndForIn_ES5.js b/tests/baselines/reference/letInLetConstDeclOfForOfAndForIn_ES5(target=es5).js similarity index 100% rename from tests/baselines/reference/letInLetConstDeclOfForOfAndForIn_ES5.js rename to tests/baselines/reference/letInLetConstDeclOfForOfAndForIn_ES5(target=es5).js diff --git a/tests/baselines/reference/letInLetConstDeclOfForOfAndForIn_ES5(target=es5).symbols b/tests/baselines/reference/letInLetConstDeclOfForOfAndForIn_ES5(target=es5).symbols new file mode 100644 index 0000000000000..5ed53ee95e11b --- /dev/null +++ b/tests/baselines/reference/letInLetConstDeclOfForOfAndForIn_ES5(target=es5).symbols @@ -0,0 +1,31 @@ +//// [tests/cases/compiler/letInLetConstDeclOfForOfAndForIn_ES5.ts] //// + +=== letInLetConstDeclOfForOfAndForIn_ES5.ts === +// Should be an error +for (let let of [1,2,3]) {} +>let : Symbol(let, Decl(letInLetConstDeclOfForOfAndForIn_ES5.ts, 1, 8)) + +for (const let of [1,2,3]) {} +>let : Symbol(let, Decl(letInLetConstDeclOfForOfAndForIn_ES5.ts, 3, 10)) + +for (let let in [1,2,3]) {} +>let : Symbol(let, Decl(letInLetConstDeclOfForOfAndForIn_ES5.ts, 5, 8)) + +for (const let in [1,2,3]) {} +>let : Symbol(let, Decl(letInLetConstDeclOfForOfAndForIn_ES5.ts, 7, 10)) + +{ + for (let let of [1,2,3]) {} +>let : Symbol(let, Decl(letInLetConstDeclOfForOfAndForIn_ES5.ts, 10, 9)) + + for (const let of [1,2,3]) {} +>let : Symbol(let, Decl(letInLetConstDeclOfForOfAndForIn_ES5.ts, 12, 11)) + + for (let let in [1,2,3]) {} +>let : Symbol(let, Decl(letInLetConstDeclOfForOfAndForIn_ES5.ts, 14, 9)) + + for (const let in [1,2,3]) {} +>let : Symbol(let, Decl(letInLetConstDeclOfForOfAndForIn_ES5.ts, 16, 11)) +} + + diff --git a/tests/baselines/reference/letInLetConstDeclOfForOfAndForIn_ES5(target=es5).types b/tests/baselines/reference/letInLetConstDeclOfForOfAndForIn_ES5(target=es5).types new file mode 100644 index 0000000000000..42c611ae42139 --- /dev/null +++ b/tests/baselines/reference/letInLetConstDeclOfForOfAndForIn_ES5(target=es5).types @@ -0,0 +1,103 @@ +//// [tests/cases/compiler/letInLetConstDeclOfForOfAndForIn_ES5.ts] //// + +=== letInLetConstDeclOfForOfAndForIn_ES5.ts === +// Should be an error +for (let let of [1,2,3]) {} +>let : number +> : ^^^^^^ +>[1,2,3] : number[] +> : ^^^^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ +>3 : 3 +> : ^ + +for (const let of [1,2,3]) {} +>let : number +> : ^^^^^^ +>[1,2,3] : number[] +> : ^^^^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ +>3 : 3 +> : ^ + +for (let let in [1,2,3]) {} +>let : string +> : ^^^^^^ +>[1,2,3] : number[] +> : ^^^^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ +>3 : 3 +> : ^ + +for (const let in [1,2,3]) {} +>let : string +> : ^^^^^^ +>[1,2,3] : number[] +> : ^^^^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ +>3 : 3 +> : ^ + +{ + for (let let of [1,2,3]) {} +>let : number +> : ^^^^^^ +>[1,2,3] : number[] +> : ^^^^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ +>3 : 3 +> : ^ + + for (const let of [1,2,3]) {} +>let : number +> : ^^^^^^ +>[1,2,3] : number[] +> : ^^^^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ +>3 : 3 +> : ^ + + for (let let in [1,2,3]) {} +>let : string +> : ^^^^^^ +>[1,2,3] : number[] +> : ^^^^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ +>3 : 3 +> : ^ + + for (const let in [1,2,3]) {} +>let : string +> : ^^^^^^ +>[1,2,3] : number[] +> : ^^^^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ +>3 : 3 +> : ^ +} + + diff --git a/tests/baselines/reference/letInLetDeclarations_ES5.errors.txt b/tests/baselines/reference/letInLetDeclarations_ES5(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/letInLetDeclarations_ES5.errors.txt rename to tests/baselines/reference/letInLetDeclarations_ES5(target=es2015).errors.txt diff --git a/tests/baselines/reference/letInLetDeclarations_ES5(target=es2015).js b/tests/baselines/reference/letInLetDeclarations_ES5(target=es2015).js new file mode 100644 index 0000000000000..3cc0d6a5c3429 --- /dev/null +++ b/tests/baselines/reference/letInLetDeclarations_ES5(target=es2015).js @@ -0,0 +1,16 @@ +//// [tests/cases/compiler/letInLetDeclarations_ES5.ts] //// + +//// [letInLetDeclarations_ES5.ts] +// All use of let in const declaration should be an error +let x = 50, let = 5; + +{ + let x = 10, let = 20; +} + +//// [letInLetDeclarations_ES5.js] +// All use of let in const declaration should be an error +let x = 50, let = 5; +{ + let x = 10, let = 20; +} diff --git a/tests/baselines/reference/letInLetDeclarations_ES5.symbols b/tests/baselines/reference/letInLetDeclarations_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/letInLetDeclarations_ES5.symbols rename to tests/baselines/reference/letInLetDeclarations_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/letInLetDeclarations_ES5.types b/tests/baselines/reference/letInLetDeclarations_ES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/letInLetDeclarations_ES5.types rename to tests/baselines/reference/letInLetDeclarations_ES5(target=es2015).types diff --git a/tests/baselines/reference/letInLetDeclarations_ES5(target=es5).errors.txt b/tests/baselines/reference/letInLetDeclarations_ES5(target=es5).errors.txt new file mode 100644 index 0000000000000..72c96cb1ab856 --- /dev/null +++ b/tests/baselines/reference/letInLetDeclarations_ES5(target=es5).errors.txt @@ -0,0 +1,15 @@ +letInLetDeclarations_ES5.ts(2,13): error TS2480: 'let' is not allowed to be used as a name in 'let' or 'const' declarations. +letInLetDeclarations_ES5.ts(5,17): error TS2480: 'let' is not allowed to be used as a name in 'let' or 'const' declarations. + + +==== letInLetDeclarations_ES5.ts (2 errors) ==== + // All use of let in const declaration should be an error + let x = 50, let = 5; + ~~~ +!!! error TS2480: 'let' is not allowed to be used as a name in 'let' or 'const' declarations. + + { + let x = 10, let = 20; + ~~~ +!!! error TS2480: 'let' is not allowed to be used as a name in 'let' or 'const' declarations. + } \ No newline at end of file diff --git a/tests/baselines/reference/letInLetDeclarations_ES5.js b/tests/baselines/reference/letInLetDeclarations_ES5(target=es5).js similarity index 100% rename from tests/baselines/reference/letInLetDeclarations_ES5.js rename to tests/baselines/reference/letInLetDeclarations_ES5(target=es5).js diff --git a/tests/baselines/reference/letInLetDeclarations_ES5(target=es5).symbols b/tests/baselines/reference/letInLetDeclarations_ES5(target=es5).symbols new file mode 100644 index 0000000000000..07860e0affc43 --- /dev/null +++ b/tests/baselines/reference/letInLetDeclarations_ES5(target=es5).symbols @@ -0,0 +1,13 @@ +//// [tests/cases/compiler/letInLetDeclarations_ES5.ts] //// + +=== letInLetDeclarations_ES5.ts === +// All use of let in const declaration should be an error +let x = 50, let = 5; +>x : Symbol(x, Decl(letInLetDeclarations_ES5.ts, 1, 3)) +>let : Symbol(let, Decl(letInLetDeclarations_ES5.ts, 1, 11)) + +{ + let x = 10, let = 20; +>x : Symbol(x, Decl(letInLetDeclarations_ES5.ts, 4, 7)) +>let : Symbol(let, Decl(letInLetDeclarations_ES5.ts, 4, 15)) +} diff --git a/tests/baselines/reference/letInLetDeclarations_ES5(target=es5).types b/tests/baselines/reference/letInLetDeclarations_ES5(target=es5).types new file mode 100644 index 0000000000000..de6d6012ff815 --- /dev/null +++ b/tests/baselines/reference/letInLetDeclarations_ES5(target=es5).types @@ -0,0 +1,25 @@ +//// [tests/cases/compiler/letInLetDeclarations_ES5.ts] //// + +=== letInLetDeclarations_ES5.ts === +// All use of let in const declaration should be an error +let x = 50, let = 5; +>x : number +> : ^^^^^^ +>50 : 50 +> : ^^ +>let : number +> : ^^^^^^ +>5 : 5 +> : ^ + +{ + let x = 10, let = 20; +>x : number +> : ^^^^^^ +>10 : 10 +> : ^^ +>let : number +> : ^^^^^^ +>20 : 20 +> : ^^ +} diff --git a/tests/baselines/reference/letInVarDeclOfForIn_ES5.js b/tests/baselines/reference/letInVarDeclOfForIn_ES5(target=es2015).js similarity index 100% rename from tests/baselines/reference/letInVarDeclOfForIn_ES5.js rename to tests/baselines/reference/letInVarDeclOfForIn_ES5(target=es2015).js diff --git a/tests/baselines/reference/letInVarDeclOfForIn_ES5.symbols b/tests/baselines/reference/letInVarDeclOfForIn_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/letInVarDeclOfForIn_ES5.symbols rename to tests/baselines/reference/letInVarDeclOfForIn_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/letInVarDeclOfForIn_ES5.types b/tests/baselines/reference/letInVarDeclOfForIn_ES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/letInVarDeclOfForIn_ES5.types rename to tests/baselines/reference/letInVarDeclOfForIn_ES5(target=es2015).types diff --git a/tests/baselines/reference/letInVarDeclOfForIn_ES5(target=es5).js b/tests/baselines/reference/letInVarDeclOfForIn_ES5(target=es5).js new file mode 100644 index 0000000000000..ae857c02b91ac --- /dev/null +++ b/tests/baselines/reference/letInVarDeclOfForIn_ES5(target=es5).js @@ -0,0 +1,17 @@ +//// [tests/cases/compiler/letInVarDeclOfForIn_ES5.ts] //// + +//// [letInVarDeclOfForIn_ES5.ts] +// should not be an error +for (var let in [1,2,3]) {} + +{ + for (var let in [1,2,3]) {} +} + + +//// [letInVarDeclOfForIn_ES5.js] +// should not be an error +for (var let in [1, 2, 3]) { } +{ + for (var let in [1, 2, 3]) { } +} diff --git a/tests/baselines/reference/letInVarDeclOfForIn_ES5(target=es5).symbols b/tests/baselines/reference/letInVarDeclOfForIn_ES5(target=es5).symbols new file mode 100644 index 0000000000000..34bec160e573e --- /dev/null +++ b/tests/baselines/reference/letInVarDeclOfForIn_ES5(target=es5).symbols @@ -0,0 +1,12 @@ +//// [tests/cases/compiler/letInVarDeclOfForIn_ES5.ts] //// + +=== letInVarDeclOfForIn_ES5.ts === +// should not be an error +for (var let in [1,2,3]) {} +>let : Symbol(let, Decl(letInVarDeclOfForIn_ES5.ts, 1, 8), Decl(letInVarDeclOfForIn_ES5.ts, 4, 9)) + +{ + for (var let in [1,2,3]) {} +>let : Symbol(let, Decl(letInVarDeclOfForIn_ES5.ts, 1, 8), Decl(letInVarDeclOfForIn_ES5.ts, 4, 9)) +} + diff --git a/tests/baselines/reference/letInVarDeclOfForIn_ES5(target=es5).types b/tests/baselines/reference/letInVarDeclOfForIn_ES5(target=es5).types new file mode 100644 index 0000000000000..4f800c9d63259 --- /dev/null +++ b/tests/baselines/reference/letInVarDeclOfForIn_ES5(target=es5).types @@ -0,0 +1,30 @@ +//// [tests/cases/compiler/letInVarDeclOfForIn_ES5.ts] //// + +=== letInVarDeclOfForIn_ES5.ts === +// should not be an error +for (var let in [1,2,3]) {} +>let : string +> : ^^^^^^ +>[1,2,3] : number[] +> : ^^^^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ +>3 : 3 +> : ^ + +{ + for (var let in [1,2,3]) {} +>let : string +> : ^^^^^^ +>[1,2,3] : number[] +> : ^^^^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ +>3 : 3 +> : ^ +} + diff --git a/tests/baselines/reference/letInVarDeclOfForOf_ES5(target=es2015).js b/tests/baselines/reference/letInVarDeclOfForOf_ES5(target=es2015).js new file mode 100644 index 0000000000000..584f62d91cecd --- /dev/null +++ b/tests/baselines/reference/letInVarDeclOfForOf_ES5(target=es2015).js @@ -0,0 +1,17 @@ +//// [tests/cases/compiler/letInVarDeclOfForOf_ES5.ts] //// + +//// [letInVarDeclOfForOf_ES5.ts] +// should not be an error +for (var let of [1,2,3]) {} + +{ + for (var let of [1,2,3]) {} +} + + +//// [letInVarDeclOfForOf_ES5.js] +// should not be an error +for (var let of [1, 2, 3]) { } +{ + for (var let of [1, 2, 3]) { } +} diff --git a/tests/baselines/reference/letInVarDeclOfForOf_ES5.symbols b/tests/baselines/reference/letInVarDeclOfForOf_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/letInVarDeclOfForOf_ES5.symbols rename to tests/baselines/reference/letInVarDeclOfForOf_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/letInVarDeclOfForOf_ES5.types b/tests/baselines/reference/letInVarDeclOfForOf_ES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/letInVarDeclOfForOf_ES5.types rename to tests/baselines/reference/letInVarDeclOfForOf_ES5(target=es2015).types diff --git a/tests/baselines/reference/letInVarDeclOfForOf_ES5.js b/tests/baselines/reference/letInVarDeclOfForOf_ES5(target=es5).js similarity index 100% rename from tests/baselines/reference/letInVarDeclOfForOf_ES5.js rename to tests/baselines/reference/letInVarDeclOfForOf_ES5(target=es5).js diff --git a/tests/baselines/reference/letInVarDeclOfForOf_ES5(target=es5).symbols b/tests/baselines/reference/letInVarDeclOfForOf_ES5(target=es5).symbols new file mode 100644 index 0000000000000..36b280175b80c --- /dev/null +++ b/tests/baselines/reference/letInVarDeclOfForOf_ES5(target=es5).symbols @@ -0,0 +1,12 @@ +//// [tests/cases/compiler/letInVarDeclOfForOf_ES5.ts] //// + +=== letInVarDeclOfForOf_ES5.ts === +// should not be an error +for (var let of [1,2,3]) {} +>let : Symbol(let, Decl(letInVarDeclOfForOf_ES5.ts, 1, 8), Decl(letInVarDeclOfForOf_ES5.ts, 4, 9)) + +{ + for (var let of [1,2,3]) {} +>let : Symbol(let, Decl(letInVarDeclOfForOf_ES5.ts, 1, 8), Decl(letInVarDeclOfForOf_ES5.ts, 4, 9)) +} + diff --git a/tests/baselines/reference/letInVarDeclOfForOf_ES5(target=es5).types b/tests/baselines/reference/letInVarDeclOfForOf_ES5(target=es5).types new file mode 100644 index 0000000000000..44731219e59e8 --- /dev/null +++ b/tests/baselines/reference/letInVarDeclOfForOf_ES5(target=es5).types @@ -0,0 +1,30 @@ +//// [tests/cases/compiler/letInVarDeclOfForOf_ES5.ts] //// + +=== letInVarDeclOfForOf_ES5.ts === +// should not be an error +for (var let of [1,2,3]) {} +>let : number +> : ^^^^^^ +>[1,2,3] : number[] +> : ^^^^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ +>3 : 3 +> : ^ + +{ + for (var let of [1,2,3]) {} +>let : number +> : ^^^^^^ +>[1,2,3] : number[] +> : ^^^^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ +>3 : 3 +> : ^ +} + diff --git a/tests/baselines/reference/literals.errors.txt b/tests/baselines/reference/literals(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/literals.errors.txt rename to tests/baselines/reference/literals(target=es2015).errors.txt diff --git a/tests/baselines/reference/literals.js b/tests/baselines/reference/literals(target=es2015).js similarity index 100% rename from tests/baselines/reference/literals.js rename to tests/baselines/reference/literals(target=es2015).js diff --git a/tests/baselines/reference/literals.symbols b/tests/baselines/reference/literals(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/literals.symbols rename to tests/baselines/reference/literals(target=es2015).symbols diff --git a/tests/baselines/reference/literals.types b/tests/baselines/reference/literals(target=es2015).types similarity index 100% rename from tests/baselines/reference/literals.types rename to tests/baselines/reference/literals(target=es2015).types diff --git a/tests/baselines/reference/literals(target=es5).errors.txt b/tests/baselines/reference/literals(target=es5).errors.txt new file mode 100644 index 0000000000000..d7aca78aaad54 --- /dev/null +++ b/tests/baselines/reference/literals(target=es5).errors.txt @@ -0,0 +1,59 @@ +literals.ts(8,10): error TS18050: The value 'null' cannot be used here. +literals.ts(8,17): error TS18050: The value 'null' cannot be used here. +literals.ts(9,9): error TS18050: The value 'undefined' cannot be used here. +literals.ts(9,21): error TS18050: The value 'undefined' cannot be used here. +literals.ts(19,9): error TS1121: Octal literals are not allowed. Use the syntax '0o1'. +literals.ts(24,9): error TS1121: Octal literals are not allowed. Use the syntax '-0o3'. + + +==== literals.ts (6 errors) ==== + //typeof null is Null + //typeof true is Boolean + //typeof false is Boolean + //typeof numeric literal is Number + //typeof string literal is String + //typeof regex literal is Regex + + var nu = null / null; + ~~~~ +!!! error TS18050: The value 'null' cannot be used here. + ~~~~ +!!! error TS18050: The value 'null' cannot be used here. + var u = undefined / undefined; + ~~~~~~~~~ +!!! error TS18050: The value 'undefined' cannot be used here. + ~~~~~~~~~ +!!! error TS18050: The value 'undefined' cannot be used here. + + var b: boolean; + var b = true; + var b = false; + + var n: number; + var n = 1; + var n = 1.0; + var n = 1e4; + var n = 001; // Error in ES5 + ~~~ +!!! error TS1121: Octal literals are not allowed. Use the syntax '0o1'. + var n = 0x1; + var n = -1; + var n = -1.0; + var n = -1e-4; + var n = -003; // Error in ES5 + ~~~~ +!!! error TS1121: Octal literals are not allowed. Use the syntax '-0o3'. + var n = -0x1; + + var s: string; + var s = ''; + var s = ""; + var s = 'foo\ + bar'; + var s = "foo\ + bar"; + + var r: RegExp; + var r = /what/; + var r = /\\\\/; + \ No newline at end of file diff --git a/tests/baselines/reference/literals(target=es5).js b/tests/baselines/reference/literals(target=es5).js new file mode 100644 index 0000000000000..51fe7cc82672b --- /dev/null +++ b/tests/baselines/reference/literals(target=es5).js @@ -0,0 +1,75 @@ +//// [tests/cases/conformance/expressions/literals/literals.ts] //// + +//// [literals.ts] +//typeof null is Null +//typeof true is Boolean +//typeof false is Boolean +//typeof numeric literal is Number +//typeof string literal is String +//typeof regex literal is Regex + +var nu = null / null; +var u = undefined / undefined; + +var b: boolean; +var b = true; +var b = false; + +var n: number; +var n = 1; +var n = 1.0; +var n = 1e4; +var n = 001; // Error in ES5 +var n = 0x1; +var n = -1; +var n = -1.0; +var n = -1e-4; +var n = -003; // Error in ES5 +var n = -0x1; + +var s: string; +var s = ''; +var s = ""; +var s = 'foo\ + bar'; +var s = "foo\ + bar"; + +var r: RegExp; +var r = /what/; +var r = /\\\\/; + + +//// [literals.js] +//typeof null is Null +//typeof true is Boolean +//typeof false is Boolean +//typeof numeric literal is Number +//typeof string literal is String +//typeof regex literal is Regex +var nu = null / null; +var u = undefined / undefined; +var b; +var b = true; +var b = false; +var n; +var n = 1; +var n = 1.0; +var n = 1e4; +var n = 1; // Error in ES5 +var n = 0x1; +var n = -1; +var n = -1.0; +var n = -1e-4; +var n = -3; // Error in ES5 +var n = -0x1; +var s; +var s = ''; +var s = ""; +var s = 'foo\ + bar'; +var s = "foo\ + bar"; +var r; +var r = /what/; +var r = /\\\\/; diff --git a/tests/baselines/reference/literals(target=es5).symbols b/tests/baselines/reference/literals(target=es5).symbols new file mode 100644 index 0000000000000..13ab442c95367 --- /dev/null +++ b/tests/baselines/reference/literals(target=es5).symbols @@ -0,0 +1,88 @@ +//// [tests/cases/conformance/expressions/literals/literals.ts] //// + +=== literals.ts === +//typeof null is Null +//typeof true is Boolean +//typeof false is Boolean +//typeof numeric literal is Number +//typeof string literal is String +//typeof regex literal is Regex + +var nu = null / null; +>nu : Symbol(nu, Decl(literals.ts, 7, 3)) + +var u = undefined / undefined; +>u : Symbol(u, Decl(literals.ts, 8, 3)) +>undefined : Symbol(undefined) +>undefined : Symbol(undefined) + +var b: boolean; +>b : Symbol(b, Decl(literals.ts, 10, 3), Decl(literals.ts, 11, 3), Decl(literals.ts, 12, 3)) + +var b = true; +>b : Symbol(b, Decl(literals.ts, 10, 3), Decl(literals.ts, 11, 3), Decl(literals.ts, 12, 3)) + +var b = false; +>b : Symbol(b, Decl(literals.ts, 10, 3), Decl(literals.ts, 11, 3), Decl(literals.ts, 12, 3)) + +var n: number; +>n : Symbol(n, Decl(literals.ts, 14, 3), Decl(literals.ts, 15, 3), Decl(literals.ts, 16, 3), Decl(literals.ts, 17, 3), Decl(literals.ts, 18, 3) ... and 6 more) + +var n = 1; +>n : Symbol(n, Decl(literals.ts, 14, 3), Decl(literals.ts, 15, 3), Decl(literals.ts, 16, 3), Decl(literals.ts, 17, 3), Decl(literals.ts, 18, 3) ... and 6 more) + +var n = 1.0; +>n : Symbol(n, Decl(literals.ts, 14, 3), Decl(literals.ts, 15, 3), Decl(literals.ts, 16, 3), Decl(literals.ts, 17, 3), Decl(literals.ts, 18, 3) ... and 6 more) + +var n = 1e4; +>n : Symbol(n, Decl(literals.ts, 14, 3), Decl(literals.ts, 15, 3), Decl(literals.ts, 16, 3), Decl(literals.ts, 17, 3), Decl(literals.ts, 18, 3) ... and 6 more) + +var n = 001; // Error in ES5 +>n : Symbol(n, Decl(literals.ts, 14, 3), Decl(literals.ts, 15, 3), Decl(literals.ts, 16, 3), Decl(literals.ts, 17, 3), Decl(literals.ts, 18, 3) ... and 6 more) + +var n = 0x1; +>n : Symbol(n, Decl(literals.ts, 14, 3), Decl(literals.ts, 15, 3), Decl(literals.ts, 16, 3), Decl(literals.ts, 17, 3), Decl(literals.ts, 18, 3) ... and 6 more) + +var n = -1; +>n : Symbol(n, Decl(literals.ts, 14, 3), Decl(literals.ts, 15, 3), Decl(literals.ts, 16, 3), Decl(literals.ts, 17, 3), Decl(literals.ts, 18, 3) ... and 6 more) + +var n = -1.0; +>n : Symbol(n, Decl(literals.ts, 14, 3), Decl(literals.ts, 15, 3), Decl(literals.ts, 16, 3), Decl(literals.ts, 17, 3), Decl(literals.ts, 18, 3) ... and 6 more) + +var n = -1e-4; +>n : Symbol(n, Decl(literals.ts, 14, 3), Decl(literals.ts, 15, 3), Decl(literals.ts, 16, 3), Decl(literals.ts, 17, 3), Decl(literals.ts, 18, 3) ... and 6 more) + +var n = -003; // Error in ES5 +>n : Symbol(n, Decl(literals.ts, 14, 3), Decl(literals.ts, 15, 3), Decl(literals.ts, 16, 3), Decl(literals.ts, 17, 3), Decl(literals.ts, 18, 3) ... and 6 more) + +var n = -0x1; +>n : Symbol(n, Decl(literals.ts, 14, 3), Decl(literals.ts, 15, 3), Decl(literals.ts, 16, 3), Decl(literals.ts, 17, 3), Decl(literals.ts, 18, 3) ... and 6 more) + +var s: string; +>s : Symbol(s, Decl(literals.ts, 26, 3), Decl(literals.ts, 27, 3), Decl(literals.ts, 28, 3), Decl(literals.ts, 29, 3), Decl(literals.ts, 31, 3)) + +var s = ''; +>s : Symbol(s, Decl(literals.ts, 26, 3), Decl(literals.ts, 27, 3), Decl(literals.ts, 28, 3), Decl(literals.ts, 29, 3), Decl(literals.ts, 31, 3)) + +var s = ""; +>s : Symbol(s, Decl(literals.ts, 26, 3), Decl(literals.ts, 27, 3), Decl(literals.ts, 28, 3), Decl(literals.ts, 29, 3), Decl(literals.ts, 31, 3)) + +var s = 'foo\ +>s : Symbol(s, Decl(literals.ts, 26, 3), Decl(literals.ts, 27, 3), Decl(literals.ts, 28, 3), Decl(literals.ts, 29, 3), Decl(literals.ts, 31, 3)) + + bar'; +var s = "foo\ +>s : Symbol(s, Decl(literals.ts, 26, 3), Decl(literals.ts, 27, 3), Decl(literals.ts, 28, 3), Decl(literals.ts, 29, 3), Decl(literals.ts, 31, 3)) + + bar"; + +var r: RegExp; +>r : Symbol(r, Decl(literals.ts, 34, 3), Decl(literals.ts, 35, 3), Decl(literals.ts, 36, 3)) +>RegExp : Symbol(RegExp, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + +var r = /what/; +>r : Symbol(r, Decl(literals.ts, 34, 3), Decl(literals.ts, 35, 3), Decl(literals.ts, 36, 3)) + +var r = /\\\\/; +>r : Symbol(r, Decl(literals.ts, 34, 3), Decl(literals.ts, 35, 3), Decl(literals.ts, 36, 3)) + diff --git a/tests/baselines/reference/literals(target=es5).types b/tests/baselines/reference/literals(target=es5).types new file mode 100644 index 0000000000000..19f9e95974731 --- /dev/null +++ b/tests/baselines/reference/literals(target=es5).types @@ -0,0 +1,163 @@ +//// [tests/cases/conformance/expressions/literals/literals.ts] //// + +=== literals.ts === +//typeof null is Null +//typeof true is Boolean +//typeof false is Boolean +//typeof numeric literal is Number +//typeof string literal is String +//typeof regex literal is Regex + +var nu = null / null; +>nu : number +> : ^^^^^^ +>null / null : number +> : ^^^^^^ + +var u = undefined / undefined; +>u : number +> : ^^^^^^ +>undefined / undefined : number +> : ^^^^^^ +>undefined : undefined +> : ^^^^^^^^^ +>undefined : undefined +> : ^^^^^^^^^ + +var b: boolean; +>b : boolean +> : ^^^^^^^ + +var b = true; +>b : boolean +> : ^^^^^^^ +>true : true +> : ^^^^ + +var b = false; +>b : boolean +> : ^^^^^^^ +>false : false +> : ^^^^^ + +var n: number; +>n : number +> : ^^^^^^ + +var n = 1; +>n : number +> : ^^^^^^ +>1 : 1 +> : ^ + +var n = 1.0; +>n : number +> : ^^^^^^ +>1.0 : 1 +> : ^ + +var n = 1e4; +>n : number +> : ^^^^^^ +>1e4 : 10000 +> : ^^^^^ + +var n = 001; // Error in ES5 +>n : number +> : ^^^^^^ +>001 : 1 +> : ^ + +var n = 0x1; +>n : number +> : ^^^^^^ +>0x1 : 1 +> : ^ + +var n = -1; +>n : number +> : ^^^^^^ +>-1 : -1 +> : ^^ +>1 : 1 +> : ^ + +var n = -1.0; +>n : number +> : ^^^^^^ +>-1.0 : -1 +> : ^^ +>1.0 : 1 +> : ^ + +var n = -1e-4; +>n : number +> : ^^^^^^ +>-1e-4 : -0.0001 +> : ^^^^^^^ +>1e-4 : 0.0001 +> : ^^^^^^ + +var n = -003; // Error in ES5 +>n : number +> : ^^^^^^ +>-003 : -3 +> : ^^ +>003 : 3 +> : ^ + +var n = -0x1; +>n : number +> : ^^^^^^ +>-0x1 : -1 +> : ^^ +>0x1 : 1 +> : ^ + +var s: string; +>s : string +> : ^^^^^^ + +var s = ''; +>s : string +> : ^^^^^^ +>'' : "" +> : ^^ + +var s = ""; +>s : string +> : ^^^^^^ +>"" : "" +> : ^^ + +var s = 'foo\ +>s : string +> : ^^^^^^ +>'foo\ bar' : "foo bar" +> : ^^^^^^^^^^^^ + + bar'; +var s = "foo\ +>s : string +> : ^^^^^^ +>"foo\ bar" : "foo bar" +> : ^^^^^^^^^^^^ + + bar"; + +var r: RegExp; +>r : RegExp +> : ^^^^^^ + +var r = /what/; +>r : RegExp +> : ^^^^^^ +>/what/ : RegExp +> : ^^^^^^ + +var r = /\\\\/; +>r : RegExp +> : ^^^^^^ +>/\\\\/ : RegExp +> : ^^^^^^ + diff --git a/tests/baselines/reference/localTypes1(target=es2015).js b/tests/baselines/reference/localTypes1(target=es2015).js new file mode 100644 index 0000000000000..c4c5fd8426a4a --- /dev/null +++ b/tests/baselines/reference/localTypes1(target=es2015).js @@ -0,0 +1,275 @@ +//// [tests/cases/conformance/types/localTypes/localTypes1.ts] //// + +//// [localTypes1.ts] +function f1() { + enum E { + A, B, C + } + class C { + x: E; + } + interface I { + x: E; + } + type A = I[]; + let a: A = [new C()]; + a[0].x = E.B; + return a; +} + +function f2() { + function g() { + enum E { + A, B, C + } + class C { + x: E; + } + interface I { + x: E; + } + type A = I[]; + let a: A = [new C()]; + a[0].x = E.B; + return a; + } + return g(); +} + +function f3(b: boolean) { + if (true) { + enum E { + A, B, C + } + if (b) { + class C { + x: E; + } + interface I { + x: E; + } + type A = I[]; + let a: A = [new C()]; + a[0].x = E.B; + return a; + } + else { + class A { + x: E; + } + interface J { + x: E; + } + type C = J[]; + let c: C = [new A()]; + c[0].x = E.B; + return c; + } + } +} + +function f5() { + var z1 = function () { + enum E { + A, B, C + } + class C { + x: E; + } + return new C(); + } + var z2 = () => { + enum E { + A, B, C + } + class C { + x: E; + } + return new C(); + } +} + +class A { + constructor() { + enum E { + A, B, C + } + class C { + x: E; + } + } + m() { + enum E { + A, B, C + } + class C { + x: E; + } + return new C(); + } + get p() { + enum E { + A, B, C + } + class C { + x: E; + } + return new C(); + } +} + +function f6() { + class A { + a: string; + } + function g() { + class B extends A { + b: string; + } + function h() { + class C extends B { + c: string; + } + var x = new C(); + x.a = "a"; + x.b = "b"; + x.c = "c"; + return x; + } + return h(); + } + return g(); +} + + +//// [localTypes1.js] +function f1() { + let E; + (function (E) { + E[E["A"] = 0] = "A"; + E[E["B"] = 1] = "B"; + E[E["C"] = 2] = "C"; + })(E || (E = {})); + class C { + } + let a = [new C()]; + a[0].x = E.B; + return a; +} +function f2() { + function g() { + let E; + (function (E) { + E[E["A"] = 0] = "A"; + E[E["B"] = 1] = "B"; + E[E["C"] = 2] = "C"; + })(E || (E = {})); + class C { + } + let a = [new C()]; + a[0].x = E.B; + return a; + } + return g(); +} +function f3(b) { + if (true) { + let E; + (function (E) { + E[E["A"] = 0] = "A"; + E[E["B"] = 1] = "B"; + E[E["C"] = 2] = "C"; + })(E || (E = {})); + if (b) { + class C { + } + let a = [new C()]; + a[0].x = E.B; + return a; + } + else { + class A { + } + let c = [new A()]; + c[0].x = E.B; + return c; + } + } +} +function f5() { + var z1 = function () { + let E; + (function (E) { + E[E["A"] = 0] = "A"; + E[E["B"] = 1] = "B"; + E[E["C"] = 2] = "C"; + })(E || (E = {})); + class C { + } + return new C(); + }; + var z2 = () => { + let E; + (function (E) { + E[E["A"] = 0] = "A"; + E[E["B"] = 1] = "B"; + E[E["C"] = 2] = "C"; + })(E || (E = {})); + class C { + } + return new C(); + }; +} +class A { + constructor() { + let E; + (function (E) { + E[E["A"] = 0] = "A"; + E[E["B"] = 1] = "B"; + E[E["C"] = 2] = "C"; + })(E || (E = {})); + class C { + } + } + m() { + let E; + (function (E) { + E[E["A"] = 0] = "A"; + E[E["B"] = 1] = "B"; + E[E["C"] = 2] = "C"; + })(E || (E = {})); + class C { + } + return new C(); + } + get p() { + let E; + (function (E) { + E[E["A"] = 0] = "A"; + E[E["B"] = 1] = "B"; + E[E["C"] = 2] = "C"; + })(E || (E = {})); + class C { + } + return new C(); + } +} +function f6() { + class A { + } + function g() { + class B extends A { + } + function h() { + class C extends B { + } + var x = new C(); + x.a = "a"; + x.b = "b"; + x.c = "c"; + return x; + } + return h(); + } + return g(); +} diff --git a/tests/baselines/reference/localTypes1.symbols b/tests/baselines/reference/localTypes1(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/localTypes1.symbols rename to tests/baselines/reference/localTypes1(target=es2015).symbols diff --git a/tests/baselines/reference/localTypes1.types b/tests/baselines/reference/localTypes1(target=es2015).types similarity index 100% rename from tests/baselines/reference/localTypes1.types rename to tests/baselines/reference/localTypes1(target=es2015).types diff --git a/tests/baselines/reference/localTypes1.js b/tests/baselines/reference/localTypes1(target=es5).js similarity index 100% rename from tests/baselines/reference/localTypes1.js rename to tests/baselines/reference/localTypes1(target=es5).js diff --git a/tests/baselines/reference/localTypes1(target=es5).symbols b/tests/baselines/reference/localTypes1(target=es5).symbols new file mode 100644 index 0000000000000..121f7d3fbc9cb --- /dev/null +++ b/tests/baselines/reference/localTypes1(target=es5).symbols @@ -0,0 +1,358 @@ +//// [tests/cases/conformance/types/localTypes/localTypes1.ts] //// + +=== localTypes1.ts === +function f1() { +>f1 : Symbol(f1, Decl(localTypes1.ts, 0, 0)) + + enum E { +>E : Symbol(E, Decl(localTypes1.ts, 0, 15)) + + A, B, C +>A : Symbol(E.A, Decl(localTypes1.ts, 1, 12)) +>B : Symbol(E.B, Decl(localTypes1.ts, 2, 10)) +>C : Symbol(E.C, Decl(localTypes1.ts, 2, 13)) + } + class C { +>C : Symbol(C, Decl(localTypes1.ts, 3, 5)) + + x: E; +>x : Symbol(C.x, Decl(localTypes1.ts, 4, 13)) +>E : Symbol(E, Decl(localTypes1.ts, 0, 15)) + } + interface I { +>I : Symbol(I, Decl(localTypes1.ts, 6, 5)) + + x: E; +>x : Symbol(I.x, Decl(localTypes1.ts, 7, 17)) +>E : Symbol(E, Decl(localTypes1.ts, 0, 15)) + } + type A = I[]; +>A : Symbol(A, Decl(localTypes1.ts, 9, 5)) +>I : Symbol(I, Decl(localTypes1.ts, 6, 5)) + + let a: A = [new C()]; +>a : Symbol(a, Decl(localTypes1.ts, 11, 7)) +>A : Symbol(A, Decl(localTypes1.ts, 9, 5)) +>C : Symbol(C, Decl(localTypes1.ts, 3, 5)) + + a[0].x = E.B; +>a[0].x : Symbol(I.x, Decl(localTypes1.ts, 7, 17)) +>a : Symbol(a, Decl(localTypes1.ts, 11, 7)) +>x : Symbol(I.x, Decl(localTypes1.ts, 7, 17)) +>E.B : Symbol(E.B, Decl(localTypes1.ts, 2, 10)) +>E : Symbol(E, Decl(localTypes1.ts, 0, 15)) +>B : Symbol(E.B, Decl(localTypes1.ts, 2, 10)) + + return a; +>a : Symbol(a, Decl(localTypes1.ts, 11, 7)) +} + +function f2() { +>f2 : Symbol(f2, Decl(localTypes1.ts, 14, 1)) + + function g() { +>g : Symbol(g, Decl(localTypes1.ts, 16, 15)) + + enum E { +>E : Symbol(E, Decl(localTypes1.ts, 17, 18)) + + A, B, C +>A : Symbol(E.A, Decl(localTypes1.ts, 18, 16)) +>B : Symbol(E.B, Decl(localTypes1.ts, 19, 14)) +>C : Symbol(E.C, Decl(localTypes1.ts, 19, 17)) + } + class C { +>C : Symbol(C, Decl(localTypes1.ts, 20, 9)) + + x: E; +>x : Symbol(C.x, Decl(localTypes1.ts, 21, 17)) +>E : Symbol(E, Decl(localTypes1.ts, 17, 18)) + } + interface I { +>I : Symbol(I, Decl(localTypes1.ts, 23, 9)) + + x: E; +>x : Symbol(I.x, Decl(localTypes1.ts, 24, 21)) +>E : Symbol(E, Decl(localTypes1.ts, 17, 18)) + } + type A = I[]; +>A : Symbol(A, Decl(localTypes1.ts, 26, 9)) +>I : Symbol(I, Decl(localTypes1.ts, 23, 9)) + + let a: A = [new C()]; +>a : Symbol(a, Decl(localTypes1.ts, 28, 11)) +>A : Symbol(A, Decl(localTypes1.ts, 26, 9)) +>C : Symbol(C, Decl(localTypes1.ts, 20, 9)) + + a[0].x = E.B; +>a[0].x : Symbol(I.x, Decl(localTypes1.ts, 24, 21)) +>a : Symbol(a, Decl(localTypes1.ts, 28, 11)) +>x : Symbol(I.x, Decl(localTypes1.ts, 24, 21)) +>E.B : Symbol(E.B, Decl(localTypes1.ts, 19, 14)) +>E : Symbol(E, Decl(localTypes1.ts, 17, 18)) +>B : Symbol(E.B, Decl(localTypes1.ts, 19, 14)) + + return a; +>a : Symbol(a, Decl(localTypes1.ts, 28, 11)) + } + return g(); +>g : Symbol(g, Decl(localTypes1.ts, 16, 15)) +} + +function f3(b: boolean) { +>f3 : Symbol(f3, Decl(localTypes1.ts, 33, 1)) +>b : Symbol(b, Decl(localTypes1.ts, 35, 12)) + + if (true) { + enum E { +>E : Symbol(E, Decl(localTypes1.ts, 36, 15)) + + A, B, C +>A : Symbol(E.A, Decl(localTypes1.ts, 37, 16)) +>B : Symbol(E.B, Decl(localTypes1.ts, 38, 14)) +>C : Symbol(E.C, Decl(localTypes1.ts, 38, 17)) + } + if (b) { +>b : Symbol(b, Decl(localTypes1.ts, 35, 12)) + + class C { +>C : Symbol(C, Decl(localTypes1.ts, 40, 16)) + + x: E; +>x : Symbol(C.x, Decl(localTypes1.ts, 41, 21)) +>E : Symbol(E, Decl(localTypes1.ts, 36, 15)) + } + interface I { +>I : Symbol(I, Decl(localTypes1.ts, 43, 13)) + + x: E; +>x : Symbol(I.x, Decl(localTypes1.ts, 44, 25)) +>E : Symbol(E, Decl(localTypes1.ts, 36, 15)) + } + type A = I[]; +>A : Symbol(A, Decl(localTypes1.ts, 46, 13)) +>I : Symbol(I, Decl(localTypes1.ts, 43, 13)) + + let a: A = [new C()]; +>a : Symbol(a, Decl(localTypes1.ts, 48, 15)) +>A : Symbol(A, Decl(localTypes1.ts, 46, 13)) +>C : Symbol(C, Decl(localTypes1.ts, 40, 16)) + + a[0].x = E.B; +>a[0].x : Symbol(I.x, Decl(localTypes1.ts, 44, 25)) +>a : Symbol(a, Decl(localTypes1.ts, 48, 15)) +>x : Symbol(I.x, Decl(localTypes1.ts, 44, 25)) +>E.B : Symbol(E.B, Decl(localTypes1.ts, 38, 14)) +>E : Symbol(E, Decl(localTypes1.ts, 36, 15)) +>B : Symbol(E.B, Decl(localTypes1.ts, 38, 14)) + + return a; +>a : Symbol(a, Decl(localTypes1.ts, 48, 15)) + } + else { + class A { +>A : Symbol(A, Decl(localTypes1.ts, 52, 14)) + + x: E; +>x : Symbol(A.x, Decl(localTypes1.ts, 53, 21)) +>E : Symbol(E, Decl(localTypes1.ts, 36, 15)) + } + interface J { +>J : Symbol(J, Decl(localTypes1.ts, 55, 13)) + + x: E; +>x : Symbol(J.x, Decl(localTypes1.ts, 56, 25)) +>E : Symbol(E, Decl(localTypes1.ts, 36, 15)) + } + type C = J[]; +>C : Symbol(C, Decl(localTypes1.ts, 58, 13)) +>J : Symbol(J, Decl(localTypes1.ts, 55, 13)) + + let c: C = [new A()]; +>c : Symbol(c, Decl(localTypes1.ts, 60, 15)) +>C : Symbol(C, Decl(localTypes1.ts, 58, 13)) +>A : Symbol(A, Decl(localTypes1.ts, 52, 14)) + + c[0].x = E.B; +>c[0].x : Symbol(J.x, Decl(localTypes1.ts, 56, 25)) +>c : Symbol(c, Decl(localTypes1.ts, 60, 15)) +>x : Symbol(J.x, Decl(localTypes1.ts, 56, 25)) +>E.B : Symbol(E.B, Decl(localTypes1.ts, 38, 14)) +>E : Symbol(E, Decl(localTypes1.ts, 36, 15)) +>B : Symbol(E.B, Decl(localTypes1.ts, 38, 14)) + + return c; +>c : Symbol(c, Decl(localTypes1.ts, 60, 15)) + } + } +} + +function f5() { +>f5 : Symbol(f5, Decl(localTypes1.ts, 65, 1)) + + var z1 = function () { +>z1 : Symbol(z1, Decl(localTypes1.ts, 68, 7)) + + enum E { +>E : Symbol(E, Decl(localTypes1.ts, 68, 26)) + + A, B, C +>A : Symbol(E.A, Decl(localTypes1.ts, 69, 16)) +>B : Symbol(E.B, Decl(localTypes1.ts, 70, 14)) +>C : Symbol(E.C, Decl(localTypes1.ts, 70, 17)) + } + class C { +>C : Symbol(C, Decl(localTypes1.ts, 71, 9)) + + x: E; +>x : Symbol(C.x, Decl(localTypes1.ts, 72, 17)) +>E : Symbol(E, Decl(localTypes1.ts, 68, 26)) + } + return new C(); +>C : Symbol(C, Decl(localTypes1.ts, 71, 9)) + } + var z2 = () => { +>z2 : Symbol(z2, Decl(localTypes1.ts, 77, 7)) + + enum E { +>E : Symbol(E, Decl(localTypes1.ts, 77, 20)) + + A, B, C +>A : Symbol(E.A, Decl(localTypes1.ts, 78, 16)) +>B : Symbol(E.B, Decl(localTypes1.ts, 79, 14)) +>C : Symbol(E.C, Decl(localTypes1.ts, 79, 17)) + } + class C { +>C : Symbol(C, Decl(localTypes1.ts, 80, 9)) + + x: E; +>x : Symbol(C.x, Decl(localTypes1.ts, 81, 17)) +>E : Symbol(E, Decl(localTypes1.ts, 77, 20)) + } + return new C(); +>C : Symbol(C, Decl(localTypes1.ts, 80, 9)) + } +} + +class A { +>A : Symbol(A, Decl(localTypes1.ts, 86, 1)) + + constructor() { + enum E { +>E : Symbol(E, Decl(localTypes1.ts, 89, 19)) + + A, B, C +>A : Symbol(E.A, Decl(localTypes1.ts, 90, 16)) +>B : Symbol(E.B, Decl(localTypes1.ts, 91, 14)) +>C : Symbol(E.C, Decl(localTypes1.ts, 91, 17)) + } + class C { +>C : Symbol(C, Decl(localTypes1.ts, 92, 9)) + + x: E; +>x : Symbol(C.x, Decl(localTypes1.ts, 93, 17)) +>E : Symbol(E, Decl(localTypes1.ts, 89, 19)) + } + } + m() { +>m : Symbol(A.m, Decl(localTypes1.ts, 96, 5)) + + enum E { +>E : Symbol(E, Decl(localTypes1.ts, 97, 9)) + + A, B, C +>A : Symbol(E.A, Decl(localTypes1.ts, 98, 16)) +>B : Symbol(E.B, Decl(localTypes1.ts, 99, 14)) +>C : Symbol(E.C, Decl(localTypes1.ts, 99, 17)) + } + class C { +>C : Symbol(C, Decl(localTypes1.ts, 100, 9)) + + x: E; +>x : Symbol(C.x, Decl(localTypes1.ts, 101, 17)) +>E : Symbol(E, Decl(localTypes1.ts, 97, 9)) + } + return new C(); +>C : Symbol(C, Decl(localTypes1.ts, 100, 9)) + } + get p() { +>p : Symbol(A.p, Decl(localTypes1.ts, 105, 5)) + + enum E { +>E : Symbol(E, Decl(localTypes1.ts, 106, 13)) + + A, B, C +>A : Symbol(E.A, Decl(localTypes1.ts, 107, 16)) +>B : Symbol(E.B, Decl(localTypes1.ts, 108, 14)) +>C : Symbol(E.C, Decl(localTypes1.ts, 108, 17)) + } + class C { +>C : Symbol(C, Decl(localTypes1.ts, 109, 9)) + + x: E; +>x : Symbol(C.x, Decl(localTypes1.ts, 110, 17)) +>E : Symbol(E, Decl(localTypes1.ts, 106, 13)) + } + return new C(); +>C : Symbol(C, Decl(localTypes1.ts, 109, 9)) + } +} + +function f6() { +>f6 : Symbol(f6, Decl(localTypes1.ts, 115, 1)) + + class A { +>A : Symbol(A, Decl(localTypes1.ts, 117, 15)) + + a: string; +>a : Symbol(A.a, Decl(localTypes1.ts, 118, 13)) + } + function g() { +>g : Symbol(g, Decl(localTypes1.ts, 120, 5)) + + class B extends A { +>B : Symbol(B, Decl(localTypes1.ts, 121, 18)) +>A : Symbol(A, Decl(localTypes1.ts, 117, 15)) + + b: string; +>b : Symbol(B.b, Decl(localTypes1.ts, 122, 27)) + } + function h() { +>h : Symbol(h, Decl(localTypes1.ts, 124, 9)) + + class C extends B { +>C : Symbol(C, Decl(localTypes1.ts, 125, 22)) +>B : Symbol(B, Decl(localTypes1.ts, 121, 18)) + + c: string; +>c : Symbol(C.c, Decl(localTypes1.ts, 126, 31)) + } + var x = new C(); +>x : Symbol(x, Decl(localTypes1.ts, 129, 15)) +>C : Symbol(C, Decl(localTypes1.ts, 125, 22)) + + x.a = "a"; +>x.a : Symbol(A.a, Decl(localTypes1.ts, 118, 13)) +>x : Symbol(x, Decl(localTypes1.ts, 129, 15)) +>a : Symbol(A.a, Decl(localTypes1.ts, 118, 13)) + + x.b = "b"; +>x.b : Symbol(B.b, Decl(localTypes1.ts, 122, 27)) +>x : Symbol(x, Decl(localTypes1.ts, 129, 15)) +>b : Symbol(B.b, Decl(localTypes1.ts, 122, 27)) + + x.c = "c"; +>x.c : Symbol(C.c, Decl(localTypes1.ts, 126, 31)) +>x : Symbol(x, Decl(localTypes1.ts, 129, 15)) +>c : Symbol(C.c, Decl(localTypes1.ts, 126, 31)) + + return x; +>x : Symbol(x, Decl(localTypes1.ts, 129, 15)) + } + return h(); +>h : Symbol(h, Decl(localTypes1.ts, 124, 9)) + } + return g(); +>g : Symbol(g, Decl(localTypes1.ts, 120, 5)) +} + diff --git a/tests/baselines/reference/localTypes1(target=es5).types b/tests/baselines/reference/localTypes1(target=es5).types new file mode 100644 index 0000000000000..577f7bcdd2431 --- /dev/null +++ b/tests/baselines/reference/localTypes1(target=es5).types @@ -0,0 +1,540 @@ +//// [tests/cases/conformance/types/localTypes/localTypes1.ts] //// + +=== localTypes1.ts === +function f1() { +>f1 : () => I[] +> : ^^^^^^^^^ + + enum E { +>E : E +> : ^ + + A, B, C +>A : E.A +> : ^^^ +>B : E.B +> : ^^^ +>C : E.C +> : ^^^ + } + class C { +>C : C +> : ^ + + x: E; +>x : E +> : ^ + } + interface I { + x: E; +>x : E +> : ^ + } + type A = I[]; +>A : I[] +> : ^^^ + + let a: A = [new C()]; +>a : I[] +> : ^^^ +>[new C()] : C[] +> : ^^^ +>new C() : C +> : ^ +>C : typeof C +> : ^^^^^^^^ + + a[0].x = E.B; +>a[0].x = E.B : E.B +> : ^^^ +>a[0].x : E +> : ^ +>a[0] : I +> : ^ +>a : I[] +> : ^^^ +>0 : 0 +> : ^ +>x : E +> : ^ +>E.B : E.B +> : ^^^ +>E : typeof E +> : ^^^^^^^^ +>B : E.B +> : ^^^ + + return a; +>a : I[] +> : ^^^ +} + +function f2() { +>f2 : () => I[] +> : ^^^^^^^^^ + + function g() { +>g : () => I[] +> : ^^^^^^^^^ + + enum E { +>E : E +> : ^ + + A, B, C +>A : E.A +> : ^^^ +>B : E.B +> : ^^^ +>C : E.C +> : ^^^ + } + class C { +>C : C +> : ^ + + x: E; +>x : E +> : ^ + } + interface I { + x: E; +>x : E +> : ^ + } + type A = I[]; +>A : I[] +> : ^^^ + + let a: A = [new C()]; +>a : I[] +> : ^^^ +>[new C()] : C[] +> : ^^^ +>new C() : C +> : ^ +>C : typeof C +> : ^^^^^^^^ + + a[0].x = E.B; +>a[0].x = E.B : E.B +> : ^^^ +>a[0].x : E +> : ^ +>a[0] : I +> : ^ +>a : I[] +> : ^^^ +>0 : 0 +> : ^ +>x : E +> : ^ +>E.B : E.B +> : ^^^ +>E : typeof E +> : ^^^^^^^^ +>B : E.B +> : ^^^ + + return a; +>a : I[] +> : ^^^ + } + return g(); +>g() : I[] +> : ^^^ +>g : () => I[] +> : ^^^^^^^^^ +} + +function f3(b: boolean) { +>f3 : (b: boolean) => I[] +> : ^ ^^ ^^^^^^^^ +>b : boolean +> : ^^^^^^^ + + if (true) { +>true : true +> : ^^^^ + + enum E { +>E : E +> : ^ + + A, B, C +>A : E.A +> : ^^^ +>B : E.B +> : ^^^ +>C : E.C +> : ^^^ + } + if (b) { +>b : boolean +> : ^^^^^^^ + + class C { +>C : C +> : ^ + + x: E; +>x : E +> : ^ + } + interface I { + x: E; +>x : E +> : ^ + } + type A = I[]; +>A : I[] +> : ^^^ + + let a: A = [new C()]; +>a : I[] +> : ^^^ +>[new C()] : C[] +> : ^^^ +>new C() : C +> : ^ +>C : typeof C +> : ^^^^^^^^ + + a[0].x = E.B; +>a[0].x = E.B : E.B +> : ^^^ +>a[0].x : E +> : ^ +>a[0] : I +> : ^ +>a : I[] +> : ^^^ +>0 : 0 +> : ^ +>x : E +> : ^ +>E.B : E.B +> : ^^^ +>E : typeof E +> : ^^^^^^^^ +>B : E.B +> : ^^^ + + return a; +>a : I[] +> : ^^^ + } + else { + class A { +>A : A +> : ^ + + x: E; +>x : E +> : ^ + } + interface J { + x: E; +>x : E +> : ^ + } + type C = J[]; +>C : J[] +> : ^^^ + + let c: C = [new A()]; +>c : J[] +> : ^^^ +>[new A()] : A[] +> : ^^^ +>new A() : A +> : ^ +>A : typeof A +> : ^^^^^^^^ + + c[0].x = E.B; +>c[0].x = E.B : E.B +> : ^^^ +>c[0].x : E +> : ^ +>c[0] : J +> : ^ +>c : J[] +> : ^^^ +>0 : 0 +> : ^ +>x : E +> : ^ +>E.B : E.B +> : ^^^ +>E : typeof E +> : ^^^^^^^^ +>B : E.B +> : ^^^ + + return c; +>c : J[] +> : ^^^ + } + } +} + +function f5() { +>f5 : () => void +> : ^^^^^^^^^^ + + var z1 = function () { +>z1 : () => C +> : ^^^^^^^ +>function () { enum E { A, B, C } class C { x: E; } return new C(); } : () => C +> : ^^^^^^^ + + enum E { +>E : E +> : ^ + + A, B, C +>A : E.A +> : ^^^ +>B : E.B +> : ^^^ +>C : E.C +> : ^^^ + } + class C { +>C : C +> : ^ + + x: E; +>x : E +> : ^ + } + return new C(); +>new C() : C +> : ^ +>C : typeof C +> : ^^^^^^^^ + } + var z2 = () => { +>z2 : () => C +> : ^^^^^^^ +>() => { enum E { A, B, C } class C { x: E; } return new C(); } : () => C +> : ^^^^^^^ + + enum E { +>E : E +> : ^ + + A, B, C +>A : E.A +> : ^^^ +>B : E.B +> : ^^^ +>C : E.C +> : ^^^ + } + class C { +>C : C +> : ^ + + x: E; +>x : E +> : ^ + } + return new C(); +>new C() : C +> : ^ +>C : typeof C +> : ^^^^^^^^ + } +} + +class A { +>A : A +> : ^ + + constructor() { + enum E { +>E : E +> : ^ + + A, B, C +>A : E.A +> : ^^^ +>B : E.B +> : ^^^ +>C : E.C +> : ^^^ + } + class C { +>C : C +> : ^ + + x: E; +>x : E +> : ^ + } + } + m() { +>m : () => C +> : ^^^^^^^ + + enum E { +>E : E +> : ^ + + A, B, C +>A : E.A +> : ^^^ +>B : E.B +> : ^^^ +>C : E.C +> : ^^^ + } + class C { +>C : C +> : ^ + + x: E; +>x : E +> : ^ + } + return new C(); +>new C() : C +> : ^ +>C : typeof C +> : ^^^^^^^^ + } + get p() { +>p : C +> : ^ + + enum E { +>E : E +> : ^ + + A, B, C +>A : E.A +> : ^^^ +>B : E.B +> : ^^^ +>C : E.C +> : ^^^ + } + class C { +>C : C +> : ^ + + x: E; +>x : E +> : ^ + } + return new C(); +>new C() : C +> : ^ +>C : typeof C +> : ^^^^^^^^ + } +} + +function f6() { +>f6 : () => C +> : ^^^^^^^ + + class A { +>A : A +> : ^ + + a: string; +>a : string +> : ^^^^^^ + } + function g() { +>g : () => C +> : ^^^^^^^ + + class B extends A { +>B : B +> : ^ +>A : A +> : ^ + + b: string; +>b : string +> : ^^^^^^ + } + function h() { +>h : () => C +> : ^^^^^^^ + + class C extends B { +>C : C +> : ^ +>B : B +> : ^ + + c: string; +>c : string +> : ^^^^^^ + } + var x = new C(); +>x : C +> : ^ +>new C() : C +> : ^ +>C : typeof C +> : ^^^^^^^^ + + x.a = "a"; +>x.a = "a" : "a" +> : ^^^ +>x.a : string +> : ^^^^^^ +>x : C +> : ^ +>a : string +> : ^^^^^^ +>"a" : "a" +> : ^^^ + + x.b = "b"; +>x.b = "b" : "b" +> : ^^^ +>x.b : string +> : ^^^^^^ +>x : C +> : ^ +>b : string +> : ^^^^^^ +>"b" : "b" +> : ^^^ + + x.c = "c"; +>x.c = "c" : "c" +> : ^^^ +>x.c : string +> : ^^^^^^ +>x : C +> : ^ +>c : string +> : ^^^^^^ +>"c" : "c" +> : ^^^ + + return x; +>x : C +> : ^ + } + return h(); +>h() : C +> : ^ +>h : () => C +> : ^^^^^^^ + } + return g(); +>g() : C +> : ^ +>g : () => C +> : ^^^^^^^ +} + diff --git a/tests/baselines/reference/manyConstExports(target=es2015).js b/tests/baselines/reference/manyConstExports(target=es2015).js new file mode 100644 index 0000000000000..91092e10f9b70 --- /dev/null +++ b/tests/baselines/reference/manyConstExports(target=es2015).js @@ -0,0 +1,10006 @@ +//// [tests/cases/compiler/manyConstExports.ts] //// + +//// [manyConstExports.ts] +export const exp0 = "test"; +export const exp1 = "test"; +export const exp2 = "test"; +export const exp3 = "test"; +export const exp4 = "test"; +export const exp5 = "test"; +export const exp6 = "test"; +export const exp7 = "test"; +export const exp8 = "test"; +export const exp9 = "test"; +export const exp10 = "test"; +export const exp11 = "test"; +export const exp12 = "test"; +export const exp13 = "test"; +export const exp14 = "test"; +export const exp15 = "test"; +export const exp16 = "test"; +export const exp17 = "test"; +export const exp18 = "test"; +export const exp19 = "test"; +export const exp20 = "test"; +export const exp21 = "test"; +export const exp22 = "test"; +export const exp23 = "test"; +export const exp24 = "test"; +export const exp25 = "test"; +export const exp26 = "test"; +export const exp27 = "test"; +export const exp28 = "test"; +export const exp29 = "test"; +export const exp30 = "test"; +export const exp31 = "test"; +export const exp32 = "test"; +export const exp33 = "test"; +export const exp34 = "test"; +export const exp35 = "test"; +export const exp36 = "test"; +export const exp37 = "test"; +export const exp38 = "test"; +export const exp39 = "test"; +export const exp40 = "test"; +export const exp41 = "test"; +export const exp42 = "test"; +export const exp43 = "test"; +export const exp44 = "test"; +export const exp45 = "test"; +export const exp46 = "test"; +export const exp47 = "test"; +export const exp48 = "test"; +export const exp49 = "test"; +export const exp50 = "test"; +export const exp51 = "test"; +export const exp52 = "test"; +export const exp53 = "test"; +export const exp54 = "test"; +export const exp55 = "test"; +export const exp56 = "test"; +export const exp57 = "test"; +export const exp58 = "test"; +export const exp59 = "test"; +export const exp60 = "test"; +export const exp61 = "test"; +export const exp62 = "test"; +export const exp63 = "test"; +export const exp64 = "test"; +export const exp65 = "test"; +export const exp66 = "test"; +export const exp67 = "test"; +export const exp68 = "test"; +export const exp69 = "test"; +export const exp70 = "test"; +export const exp71 = "test"; +export const exp72 = "test"; +export const exp73 = "test"; +export const exp74 = "test"; +export const exp75 = "test"; +export const exp76 = "test"; +export const exp77 = "test"; +export const exp78 = "test"; +export const exp79 = "test"; +export const exp80 = "test"; +export const exp81 = "test"; +export const exp82 = "test"; +export const exp83 = "test"; +export const exp84 = "test"; +export const exp85 = "test"; +export const exp86 = "test"; +export const exp87 = "test"; +export const exp88 = "test"; +export const exp89 = "test"; +export const exp90 = "test"; +export const exp91 = "test"; +export const exp92 = "test"; +export const exp93 = "test"; +export const exp94 = "test"; +export const exp95 = "test"; +export const exp96 = "test"; +export const exp97 = "test"; +export const exp98 = "test"; +export const exp99 = "test"; +export const exp100 = "test"; +export const exp101 = "test"; +export const exp102 = "test"; +export const exp103 = "test"; +export const exp104 = "test"; +export const exp105 = "test"; +export const exp106 = "test"; +export const exp107 = "test"; +export const exp108 = "test"; +export const exp109 = "test"; +export const exp110 = "test"; +export const exp111 = "test"; +export const exp112 = "test"; +export const exp113 = "test"; +export const exp114 = "test"; +export const exp115 = "test"; +export const exp116 = "test"; +export const exp117 = "test"; +export const exp118 = "test"; +export const exp119 = "test"; +export const exp120 = "test"; +export const exp121 = "test"; +export const exp122 = "test"; +export const exp123 = "test"; +export const exp124 = "test"; +export const exp125 = "test"; +export const exp126 = "test"; +export const exp127 = "test"; +export const exp128 = "test"; +export const exp129 = "test"; +export const exp130 = "test"; +export const exp131 = "test"; +export const exp132 = "test"; +export const exp133 = "test"; +export const exp134 = "test"; +export const exp135 = "test"; +export const exp136 = "test"; +export const exp137 = "test"; +export const exp138 = "test"; +export const exp139 = "test"; +export const exp140 = "test"; +export const exp141 = "test"; +export const exp142 = "test"; +export const exp143 = "test"; +export const exp144 = "test"; +export const exp145 = "test"; +export const exp146 = "test"; +export const exp147 = "test"; +export const exp148 = "test"; +export const exp149 = "test"; +export const exp150 = "test"; +export const exp151 = "test"; +export const exp152 = "test"; +export const exp153 = "test"; +export const exp154 = "test"; +export const exp155 = "test"; +export const exp156 = "test"; +export const exp157 = "test"; +export const exp158 = "test"; +export const exp159 = "test"; +export const exp160 = "test"; +export const exp161 = "test"; +export const exp162 = "test"; +export const exp163 = "test"; +export const exp164 = "test"; +export const exp165 = "test"; +export const exp166 = "test"; +export const exp167 = "test"; +export const exp168 = "test"; +export const exp169 = "test"; +export const exp170 = "test"; +export const exp171 = "test"; +export const exp172 = "test"; +export const exp173 = "test"; +export const exp174 = "test"; +export const exp175 = "test"; +export const exp176 = "test"; +export const exp177 = "test"; +export const exp178 = "test"; +export const exp179 = "test"; +export const exp180 = "test"; +export const exp181 = "test"; +export const exp182 = "test"; +export const exp183 = "test"; +export const exp184 = "test"; +export const exp185 = "test"; +export const exp186 = "test"; +export const exp187 = "test"; +export const exp188 = "test"; +export const exp189 = "test"; +export const exp190 = "test"; +export const exp191 = "test"; +export const exp192 = "test"; +export const exp193 = "test"; +export const exp194 = "test"; +export const exp195 = "test"; +export const exp196 = "test"; +export const exp197 = "test"; +export const exp198 = "test"; +export const exp199 = "test"; +export const exp200 = "test"; +export const exp201 = "test"; +export const exp202 = "test"; +export const exp203 = "test"; +export const exp204 = "test"; +export const exp205 = "test"; +export const exp206 = "test"; +export const exp207 = "test"; +export const exp208 = "test"; +export const exp209 = "test"; +export const exp210 = "test"; +export const exp211 = "test"; +export const exp212 = "test"; +export const exp213 = "test"; +export const exp214 = "test"; +export const exp215 = "test"; +export const exp216 = "test"; +export const exp217 = "test"; +export const exp218 = "test"; +export const exp219 = "test"; +export const exp220 = "test"; +export const exp221 = "test"; +export const exp222 = "test"; +export const exp223 = "test"; +export const exp224 = "test"; +export const exp225 = "test"; +export const exp226 = "test"; +export const exp227 = "test"; +export const exp228 = "test"; +export const exp229 = "test"; +export const exp230 = "test"; +export const exp231 = "test"; +export const exp232 = "test"; +export const exp233 = "test"; +export const exp234 = "test"; +export const exp235 = "test"; +export const exp236 = "test"; +export const exp237 = "test"; +export const exp238 = "test"; +export const exp239 = "test"; +export const exp240 = "test"; +export const exp241 = "test"; +export const exp242 = "test"; +export const exp243 = "test"; +export const exp244 = "test"; +export const exp245 = "test"; +export const exp246 = "test"; +export const exp247 = "test"; +export const exp248 = "test"; +export const exp249 = "test"; +export const exp250 = "test"; +export const exp251 = "test"; +export const exp252 = "test"; +export const exp253 = "test"; +export const exp254 = "test"; +export const exp255 = "test"; +export const exp256 = "test"; +export const exp257 = "test"; +export const exp258 = "test"; +export const exp259 = "test"; +export const exp260 = "test"; +export const exp261 = "test"; +export const exp262 = "test"; +export const exp263 = "test"; +export const exp264 = "test"; +export const exp265 = "test"; +export const exp266 = "test"; +export const exp267 = "test"; +export const exp268 = "test"; +export const exp269 = "test"; +export const exp270 = "test"; +export const exp271 = "test"; +export const exp272 = "test"; +export const exp273 = "test"; +export const exp274 = "test"; +export const exp275 = "test"; +export const exp276 = "test"; +export const exp277 = "test"; +export const exp278 = "test"; +export const exp279 = "test"; +export const exp280 = "test"; +export const exp281 = "test"; +export const exp282 = "test"; +export const exp283 = "test"; +export const exp284 = "test"; +export const exp285 = "test"; +export const exp286 = "test"; +export const exp287 = "test"; +export const exp288 = "test"; +export const exp289 = "test"; +export const exp290 = "test"; +export const exp291 = "test"; +export const exp292 = "test"; +export const exp293 = "test"; +export const exp294 = "test"; +export const exp295 = "test"; +export const exp296 = "test"; +export const exp297 = "test"; +export const exp298 = "test"; +export const exp299 = "test"; +export const exp300 = "test"; +export const exp301 = "test"; +export const exp302 = "test"; +export const exp303 = "test"; +export const exp304 = "test"; +export const exp305 = "test"; +export const exp306 = "test"; +export const exp307 = "test"; +export const exp308 = "test"; +export const exp309 = "test"; +export const exp310 = "test"; +export const exp311 = "test"; +export const exp312 = "test"; +export const exp313 = "test"; +export const exp314 = "test"; +export const exp315 = "test"; +export const exp316 = "test"; +export const exp317 = "test"; +export const exp318 = "test"; +export const exp319 = "test"; +export const exp320 = "test"; +export const exp321 = "test"; +export const exp322 = "test"; +export const exp323 = "test"; +export const exp324 = "test"; +export const exp325 = "test"; +export const exp326 = "test"; +export const exp327 = "test"; +export const exp328 = "test"; +export const exp329 = "test"; +export const exp330 = "test"; +export const exp331 = "test"; +export const exp332 = "test"; +export const exp333 = "test"; +export const exp334 = "test"; +export const exp335 = "test"; +export const exp336 = "test"; +export const exp337 = "test"; +export const exp338 = "test"; +export const exp339 = "test"; +export const exp340 = "test"; +export const exp341 = "test"; +export const exp342 = "test"; +export const exp343 = "test"; +export const exp344 = "test"; +export const exp345 = "test"; +export const exp346 = "test"; +export const exp347 = "test"; +export const exp348 = "test"; +export const exp349 = "test"; +export const exp350 = "test"; +export const exp351 = "test"; +export const exp352 = "test"; +export const exp353 = "test"; +export const exp354 = "test"; +export const exp355 = "test"; +export const exp356 = "test"; +export const exp357 = "test"; +export const exp358 = "test"; +export const exp359 = "test"; +export const exp360 = "test"; +export const exp361 = "test"; +export const exp362 = "test"; +export const exp363 = "test"; +export const exp364 = "test"; +export const exp365 = "test"; +export const exp366 = "test"; +export const exp367 = "test"; +export const exp368 = "test"; +export const exp369 = "test"; +export const exp370 = "test"; +export const exp371 = "test"; +export const exp372 = "test"; +export const exp373 = "test"; +export const exp374 = "test"; +export const exp375 = "test"; +export const exp376 = "test"; +export const exp377 = "test"; +export const exp378 = "test"; +export const exp379 = "test"; +export const exp380 = "test"; +export const exp381 = "test"; +export const exp382 = "test"; +export const exp383 = "test"; +export const exp384 = "test"; +export const exp385 = "test"; +export const exp386 = "test"; +export const exp387 = "test"; +export const exp388 = "test"; +export const exp389 = "test"; +export const exp390 = "test"; +export const exp391 = "test"; +export const exp392 = "test"; +export const exp393 = "test"; +export const exp394 = "test"; +export const exp395 = "test"; +export const exp396 = "test"; +export const exp397 = "test"; +export const exp398 = "test"; +export const exp399 = "test"; +export const exp400 = "test"; +export const exp401 = "test"; +export const exp402 = "test"; +export const exp403 = "test"; +export const exp404 = "test"; +export const exp405 = "test"; +export const exp406 = "test"; +export const exp407 = "test"; +export const exp408 = "test"; +export const exp409 = "test"; +export const exp410 = "test"; +export const exp411 = "test"; +export const exp412 = "test"; +export const exp413 = "test"; +export const exp414 = "test"; +export const exp415 = "test"; +export const exp416 = "test"; +export const exp417 = "test"; +export const exp418 = "test"; +export const exp419 = "test"; +export const exp420 = "test"; +export const exp421 = "test"; +export const exp422 = "test"; +export const exp423 = "test"; +export const exp424 = "test"; +export const exp425 = "test"; +export const exp426 = "test"; +export const exp427 = "test"; +export const exp428 = "test"; +export const exp429 = "test"; +export const exp430 = "test"; +export const exp431 = "test"; +export const exp432 = "test"; +export const exp433 = "test"; +export const exp434 = "test"; +export const exp435 = "test"; +export const exp436 = "test"; +export const exp437 = "test"; +export const exp438 = "test"; +export const exp439 = "test"; +export const exp440 = "test"; +export const exp441 = "test"; +export const exp442 = "test"; +export const exp443 = "test"; +export const exp444 = "test"; +export const exp445 = "test"; +export const exp446 = "test"; +export const exp447 = "test"; +export const exp448 = "test"; +export const exp449 = "test"; +export const exp450 = "test"; +export const exp451 = "test"; +export const exp452 = "test"; +export const exp453 = "test"; +export const exp454 = "test"; +export const exp455 = "test"; +export const exp456 = "test"; +export const exp457 = "test"; +export const exp458 = "test"; +export const exp459 = "test"; +export const exp460 = "test"; +export const exp461 = "test"; +export const exp462 = "test"; +export const exp463 = "test"; +export const exp464 = "test"; +export const exp465 = "test"; +export const exp466 = "test"; +export const exp467 = "test"; +export const exp468 = "test"; +export const exp469 = "test"; +export const exp470 = "test"; +export const exp471 = "test"; +export const exp472 = "test"; +export const exp473 = "test"; +export const exp474 = "test"; +export const exp475 = "test"; +export const exp476 = "test"; +export const exp477 = "test"; +export const exp478 = "test"; +export const exp479 = "test"; +export const exp480 = "test"; +export const exp481 = "test"; +export const exp482 = "test"; +export const exp483 = "test"; +export const exp484 = "test"; +export const exp485 = "test"; +export const exp486 = "test"; +export const exp487 = "test"; +export const exp488 = "test"; +export const exp489 = "test"; +export const exp490 = "test"; +export const exp491 = "test"; +export const exp492 = "test"; +export const exp493 = "test"; +export const exp494 = "test"; +export const exp495 = "test"; +export const exp496 = "test"; +export const exp497 = "test"; +export const exp498 = "test"; +export const exp499 = "test"; +export const exp500 = "test"; +export const exp501 = "test"; +export const exp502 = "test"; +export const exp503 = "test"; +export const exp504 = "test"; +export const exp505 = "test"; +export const exp506 = "test"; +export const exp507 = "test"; +export const exp508 = "test"; +export const exp509 = "test"; +export const exp510 = "test"; +export const exp511 = "test"; +export const exp512 = "test"; +export const exp513 = "test"; +export const exp514 = "test"; +export const exp515 = "test"; +export const exp516 = "test"; +export const exp517 = "test"; +export const exp518 = "test"; +export const exp519 = "test"; +export const exp520 = "test"; +export const exp521 = "test"; +export const exp522 = "test"; +export const exp523 = "test"; +export const exp524 = "test"; +export const exp525 = "test"; +export const exp526 = "test"; +export const exp527 = "test"; +export const exp528 = "test"; +export const exp529 = "test"; +export const exp530 = "test"; +export const exp531 = "test"; +export const exp532 = "test"; +export const exp533 = "test"; +export const exp534 = "test"; +export const exp535 = "test"; +export const exp536 = "test"; +export const exp537 = "test"; +export const exp538 = "test"; +export const exp539 = "test"; +export const exp540 = "test"; +export const exp541 = "test"; +export const exp542 = "test"; +export const exp543 = "test"; +export const exp544 = "test"; +export const exp545 = "test"; +export const exp546 = "test"; +export const exp547 = "test"; +export const exp548 = "test"; +export const exp549 = "test"; +export const exp550 = "test"; +export const exp551 = "test"; +export const exp552 = "test"; +export const exp553 = "test"; +export const exp554 = "test"; +export const exp555 = "test"; +export const exp556 = "test"; +export const exp557 = "test"; +export const exp558 = "test"; +export const exp559 = "test"; +export const exp560 = "test"; +export const exp561 = "test"; +export const exp562 = "test"; +export const exp563 = "test"; +export const exp564 = "test"; +export const exp565 = "test"; +export const exp566 = "test"; +export const exp567 = "test"; +export const exp568 = "test"; +export const exp569 = "test"; +export const exp570 = "test"; +export const exp571 = "test"; +export const exp572 = "test"; +export const exp573 = "test"; +export const exp574 = "test"; +export const exp575 = "test"; +export const exp576 = "test"; +export const exp577 = "test"; +export const exp578 = "test"; +export const exp579 = "test"; +export const exp580 = "test"; +export const exp581 = "test"; +export const exp582 = "test"; +export const exp583 = "test"; +export const exp584 = "test"; +export const exp585 = "test"; +export const exp586 = "test"; +export const exp587 = "test"; +export const exp588 = "test"; +export const exp589 = "test"; +export const exp590 = "test"; +export const exp591 = "test"; +export const exp592 = "test"; +export const exp593 = "test"; +export const exp594 = "test"; +export const exp595 = "test"; +export const exp596 = "test"; +export const exp597 = "test"; +export const exp598 = "test"; +export const exp599 = "test"; +export const exp600 = "test"; +export const exp601 = "test"; +export const exp602 = "test"; +export const exp603 = "test"; +export const exp604 = "test"; +export const exp605 = "test"; +export const exp606 = "test"; +export const exp607 = "test"; +export const exp608 = "test"; +export const exp609 = "test"; +export const exp610 = "test"; +export const exp611 = "test"; +export const exp612 = "test"; +export const exp613 = "test"; +export const exp614 = "test"; +export const exp615 = "test"; +export const exp616 = "test"; +export const exp617 = "test"; +export const exp618 = "test"; +export const exp619 = "test"; +export const exp620 = "test"; +export const exp621 = "test"; +export const exp622 = "test"; +export const exp623 = "test"; +export const exp624 = "test"; +export const exp625 = "test"; +export const exp626 = "test"; +export const exp627 = "test"; +export const exp628 = "test"; +export const exp629 = "test"; +export const exp630 = "test"; +export const exp631 = "test"; +export const exp632 = "test"; +export const exp633 = "test"; +export const exp634 = "test"; +export const exp635 = "test"; +export const exp636 = "test"; +export const exp637 = "test"; +export const exp638 = "test"; +export const exp639 = "test"; +export const exp640 = "test"; +export const exp641 = "test"; +export const exp642 = "test"; +export const exp643 = "test"; +export const exp644 = "test"; +export const exp645 = "test"; +export const exp646 = "test"; +export const exp647 = "test"; +export const exp648 = "test"; +export const exp649 = "test"; +export const exp650 = "test"; +export const exp651 = "test"; +export const exp652 = "test"; +export const exp653 = "test"; +export const exp654 = "test"; +export const exp655 = "test"; +export const exp656 = "test"; +export const exp657 = "test"; +export const exp658 = "test"; +export const exp659 = "test"; +export const exp660 = "test"; +export const exp661 = "test"; +export const exp662 = "test"; +export const exp663 = "test"; +export const exp664 = "test"; +export const exp665 = "test"; +export const exp666 = "test"; +export const exp667 = "test"; +export const exp668 = "test"; +export const exp669 = "test"; +export const exp670 = "test"; +export const exp671 = "test"; +export const exp672 = "test"; +export const exp673 = "test"; +export const exp674 = "test"; +export const exp675 = "test"; +export const exp676 = "test"; +export const exp677 = "test"; +export const exp678 = "test"; +export const exp679 = "test"; +export const exp680 = "test"; +export const exp681 = "test"; +export const exp682 = "test"; +export const exp683 = "test"; +export const exp684 = "test"; +export const exp685 = "test"; +export const exp686 = "test"; +export const exp687 = "test"; +export const exp688 = "test"; +export const exp689 = "test"; +export const exp690 = "test"; +export const exp691 = "test"; +export const exp692 = "test"; +export const exp693 = "test"; +export const exp694 = "test"; +export const exp695 = "test"; +export const exp696 = "test"; +export const exp697 = "test"; +export const exp698 = "test"; +export const exp699 = "test"; +export const exp700 = "test"; +export const exp701 = "test"; +export const exp702 = "test"; +export const exp703 = "test"; +export const exp704 = "test"; +export const exp705 = "test"; +export const exp706 = "test"; +export const exp707 = "test"; +export const exp708 = "test"; +export const exp709 = "test"; +export const exp710 = "test"; +export const exp711 = "test"; +export const exp712 = "test"; +export const exp713 = "test"; +export const exp714 = "test"; +export const exp715 = "test"; +export const exp716 = "test"; +export const exp717 = "test"; +export const exp718 = "test"; +export const exp719 = "test"; +export const exp720 = "test"; +export const exp721 = "test"; +export const exp722 = "test"; +export const exp723 = "test"; +export const exp724 = "test"; +export const exp725 = "test"; +export const exp726 = "test"; +export const exp727 = "test"; +export const exp728 = "test"; +export const exp729 = "test"; +export const exp730 = "test"; +export const exp731 = "test"; +export const exp732 = "test"; +export const exp733 = "test"; +export const exp734 = "test"; +export const exp735 = "test"; +export const exp736 = "test"; +export const exp737 = "test"; +export const exp738 = "test"; +export const exp739 = "test"; +export const exp740 = "test"; +export const exp741 = "test"; +export const exp742 = "test"; +export const exp743 = "test"; +export const exp744 = "test"; +export const exp745 = "test"; +export const exp746 = "test"; +export const exp747 = "test"; +export const exp748 = "test"; +export const exp749 = "test"; +export const exp750 = "test"; +export const exp751 = "test"; +export const exp752 = "test"; +export const exp753 = "test"; +export const exp754 = "test"; +export const exp755 = "test"; +export const exp756 = "test"; +export const exp757 = "test"; +export const exp758 = "test"; +export const exp759 = "test"; +export const exp760 = "test"; +export const exp761 = "test"; +export const exp762 = "test"; +export const exp763 = "test"; +export const exp764 = "test"; +export const exp765 = "test"; +export const exp766 = "test"; +export const exp767 = "test"; +export const exp768 = "test"; +export const exp769 = "test"; +export const exp770 = "test"; +export const exp771 = "test"; +export const exp772 = "test"; +export const exp773 = "test"; +export const exp774 = "test"; +export const exp775 = "test"; +export const exp776 = "test"; +export const exp777 = "test"; +export const exp778 = "test"; +export const exp779 = "test"; +export const exp780 = "test"; +export const exp781 = "test"; +export const exp782 = "test"; +export const exp783 = "test"; +export const exp784 = "test"; +export const exp785 = "test"; +export const exp786 = "test"; +export const exp787 = "test"; +export const exp788 = "test"; +export const exp789 = "test"; +export const exp790 = "test"; +export const exp791 = "test"; +export const exp792 = "test"; +export const exp793 = "test"; +export const exp794 = "test"; +export const exp795 = "test"; +export const exp796 = "test"; +export const exp797 = "test"; +export const exp798 = "test"; +export const exp799 = "test"; +export const exp800 = "test"; +export const exp801 = "test"; +export const exp802 = "test"; +export const exp803 = "test"; +export const exp804 = "test"; +export const exp805 = "test"; +export const exp806 = "test"; +export const exp807 = "test"; +export const exp808 = "test"; +export const exp809 = "test"; +export const exp810 = "test"; +export const exp811 = "test"; +export const exp812 = "test"; +export const exp813 = "test"; +export const exp814 = "test"; +export const exp815 = "test"; +export const exp816 = "test"; +export const exp817 = "test"; +export const exp818 = "test"; +export const exp819 = "test"; +export const exp820 = "test"; +export const exp821 = "test"; +export const exp822 = "test"; +export const exp823 = "test"; +export const exp824 = "test"; +export const exp825 = "test"; +export const exp826 = "test"; +export const exp827 = "test"; +export const exp828 = "test"; +export const exp829 = "test"; +export const exp830 = "test"; +export const exp831 = "test"; +export const exp832 = "test"; +export const exp833 = "test"; +export const exp834 = "test"; +export const exp835 = "test"; +export const exp836 = "test"; +export const exp837 = "test"; +export const exp838 = "test"; +export const exp839 = "test"; +export const exp840 = "test"; +export const exp841 = "test"; +export const exp842 = "test"; +export const exp843 = "test"; +export const exp844 = "test"; +export const exp845 = "test"; +export const exp846 = "test"; +export const exp847 = "test"; +export const exp848 = "test"; +export const exp849 = "test"; +export const exp850 = "test"; +export const exp851 = "test"; +export const exp852 = "test"; +export const exp853 = "test"; +export const exp854 = "test"; +export const exp855 = "test"; +export const exp856 = "test"; +export const exp857 = "test"; +export const exp858 = "test"; +export const exp859 = "test"; +export const exp860 = "test"; +export const exp861 = "test"; +export const exp862 = "test"; +export const exp863 = "test"; +export const exp864 = "test"; +export const exp865 = "test"; +export const exp866 = "test"; +export const exp867 = "test"; +export const exp868 = "test"; +export const exp869 = "test"; +export const exp870 = "test"; +export const exp871 = "test"; +export const exp872 = "test"; +export const exp873 = "test"; +export const exp874 = "test"; +export const exp875 = "test"; +export const exp876 = "test"; +export const exp877 = "test"; +export const exp878 = "test"; +export const exp879 = "test"; +export const exp880 = "test"; +export const exp881 = "test"; +export const exp882 = "test"; +export const exp883 = "test"; +export const exp884 = "test"; +export const exp885 = "test"; +export const exp886 = "test"; +export const exp887 = "test"; +export const exp888 = "test"; +export const exp889 = "test"; +export const exp890 = "test"; +export const exp891 = "test"; +export const exp892 = "test"; +export const exp893 = "test"; +export const exp894 = "test"; +export const exp895 = "test"; +export const exp896 = "test"; +export const exp897 = "test"; +export const exp898 = "test"; +export const exp899 = "test"; +export const exp900 = "test"; +export const exp901 = "test"; +export const exp902 = "test"; +export const exp903 = "test"; +export const exp904 = "test"; +export const exp905 = "test"; +export const exp906 = "test"; +export const exp907 = "test"; +export const exp908 = "test"; +export const exp909 = "test"; +export const exp910 = "test"; +export const exp911 = "test"; +export const exp912 = "test"; +export const exp913 = "test"; +export const exp914 = "test"; +export const exp915 = "test"; +export const exp916 = "test"; +export const exp917 = "test"; +export const exp918 = "test"; +export const exp919 = "test"; +export const exp920 = "test"; +export const exp921 = "test"; +export const exp922 = "test"; +export const exp923 = "test"; +export const exp924 = "test"; +export const exp925 = "test"; +export const exp926 = "test"; +export const exp927 = "test"; +export const exp928 = "test"; +export const exp929 = "test"; +export const exp930 = "test"; +export const exp931 = "test"; +export const exp932 = "test"; +export const exp933 = "test"; +export const exp934 = "test"; +export const exp935 = "test"; +export const exp936 = "test"; +export const exp937 = "test"; +export const exp938 = "test"; +export const exp939 = "test"; +export const exp940 = "test"; +export const exp941 = "test"; +export const exp942 = "test"; +export const exp943 = "test"; +export const exp944 = "test"; +export const exp945 = "test"; +export const exp946 = "test"; +export const exp947 = "test"; +export const exp948 = "test"; +export const exp949 = "test"; +export const exp950 = "test"; +export const exp951 = "test"; +export const exp952 = "test"; +export const exp953 = "test"; +export const exp954 = "test"; +export const exp955 = "test"; +export const exp956 = "test"; +export const exp957 = "test"; +export const exp958 = "test"; +export const exp959 = "test"; +export const exp960 = "test"; +export const exp961 = "test"; +export const exp962 = "test"; +export const exp963 = "test"; +export const exp964 = "test"; +export const exp965 = "test"; +export const exp966 = "test"; +export const exp967 = "test"; +export const exp968 = "test"; +export const exp969 = "test"; +export const exp970 = "test"; +export const exp971 = "test"; +export const exp972 = "test"; +export const exp973 = "test"; +export const exp974 = "test"; +export const exp975 = "test"; +export const exp976 = "test"; +export const exp977 = "test"; +export const exp978 = "test"; +export const exp979 = "test"; +export const exp980 = "test"; +export const exp981 = "test"; +export const exp982 = "test"; +export const exp983 = "test"; +export const exp984 = "test"; +export const exp985 = "test"; +export const exp986 = "test"; +export const exp987 = "test"; +export const exp988 = "test"; +export const exp989 = "test"; +export const exp990 = "test"; +export const exp991 = "test"; +export const exp992 = "test"; +export const exp993 = "test"; +export const exp994 = "test"; +export const exp995 = "test"; +export const exp996 = "test"; +export const exp997 = "test"; +export const exp998 = "test"; +export const exp999 = "test"; +export const exp1000 = "test"; +export const exp1001 = "test"; +export const exp1002 = "test"; +export const exp1003 = "test"; +export const exp1004 = "test"; +export const exp1005 = "test"; +export const exp1006 = "test"; +export const exp1007 = "test"; +export const exp1008 = "test"; +export const exp1009 = "test"; +export const exp1010 = "test"; +export const exp1011 = "test"; +export const exp1012 = "test"; +export const exp1013 = "test"; +export const exp1014 = "test"; +export const exp1015 = "test"; +export const exp1016 = "test"; +export const exp1017 = "test"; +export const exp1018 = "test"; +export const exp1019 = "test"; +export const exp1020 = "test"; +export const exp1021 = "test"; +export const exp1022 = "test"; +export const exp1023 = "test"; +export const exp1024 = "test"; +export const exp1025 = "test"; +export const exp1026 = "test"; +export const exp1027 = "test"; +export const exp1028 = "test"; +export const exp1029 = "test"; +export const exp1030 = "test"; +export const exp1031 = "test"; +export const exp1032 = "test"; +export const exp1033 = "test"; +export const exp1034 = "test"; +export const exp1035 = "test"; +export const exp1036 = "test"; +export const exp1037 = "test"; +export const exp1038 = "test"; +export const exp1039 = "test"; +export const exp1040 = "test"; +export const exp1041 = "test"; +export const exp1042 = "test"; +export const exp1043 = "test"; +export const exp1044 = "test"; +export const exp1045 = "test"; +export const exp1046 = "test"; +export const exp1047 = "test"; +export const exp1048 = "test"; +export const exp1049 = "test"; +export const exp1050 = "test"; +export const exp1051 = "test"; +export const exp1052 = "test"; +export const exp1053 = "test"; +export const exp1054 = "test"; +export const exp1055 = "test"; +export const exp1056 = "test"; +export const exp1057 = "test"; +export const exp1058 = "test"; +export const exp1059 = "test"; +export const exp1060 = "test"; +export const exp1061 = "test"; +export const exp1062 = "test"; +export const exp1063 = "test"; +export const exp1064 = "test"; +export const exp1065 = "test"; +export const exp1066 = "test"; +export const exp1067 = "test"; +export const exp1068 = "test"; +export const exp1069 = "test"; +export const exp1070 = "test"; +export const exp1071 = "test"; +export const exp1072 = "test"; +export const exp1073 = "test"; +export const exp1074 = "test"; +export const exp1075 = "test"; +export const exp1076 = "test"; +export const exp1077 = "test"; +export const exp1078 = "test"; +export const exp1079 = "test"; +export const exp1080 = "test"; +export const exp1081 = "test"; +export const exp1082 = "test"; +export const exp1083 = "test"; +export const exp1084 = "test"; +export const exp1085 = "test"; +export const exp1086 = "test"; +export const exp1087 = "test"; +export const exp1088 = "test"; +export const exp1089 = "test"; +export const exp1090 = "test"; +export const exp1091 = "test"; +export const exp1092 = "test"; +export const exp1093 = "test"; +export const exp1094 = "test"; +export const exp1095 = "test"; +export const exp1096 = "test"; +export const exp1097 = "test"; +export const exp1098 = "test"; +export const exp1099 = "test"; +export const exp1100 = "test"; +export const exp1101 = "test"; +export const exp1102 = "test"; +export const exp1103 = "test"; +export const exp1104 = "test"; +export const exp1105 = "test"; +export const exp1106 = "test"; +export const exp1107 = "test"; +export const exp1108 = "test"; +export const exp1109 = "test"; +export const exp1110 = "test"; +export const exp1111 = "test"; +export const exp1112 = "test"; +export const exp1113 = "test"; +export const exp1114 = "test"; +export const exp1115 = "test"; +export const exp1116 = "test"; +export const exp1117 = "test"; +export const exp1118 = "test"; +export const exp1119 = "test"; +export const exp1120 = "test"; +export const exp1121 = "test"; +export const exp1122 = "test"; +export const exp1123 = "test"; +export const exp1124 = "test"; +export const exp1125 = "test"; +export const exp1126 = "test"; +export const exp1127 = "test"; +export const exp1128 = "test"; +export const exp1129 = "test"; +export const exp1130 = "test"; +export const exp1131 = "test"; +export const exp1132 = "test"; +export const exp1133 = "test"; +export const exp1134 = "test"; +export const exp1135 = "test"; +export const exp1136 = "test"; +export const exp1137 = "test"; +export const exp1138 = "test"; +export const exp1139 = "test"; +export const exp1140 = "test"; +export const exp1141 = "test"; +export const exp1142 = "test"; +export const exp1143 = "test"; +export const exp1144 = "test"; +export const exp1145 = "test"; +export const exp1146 = "test"; +export const exp1147 = "test"; +export const exp1148 = "test"; +export const exp1149 = "test"; +export const exp1150 = "test"; +export const exp1151 = "test"; +export const exp1152 = "test"; +export const exp1153 = "test"; +export const exp1154 = "test"; +export const exp1155 = "test"; +export const exp1156 = "test"; +export const exp1157 = "test"; +export const exp1158 = "test"; +export const exp1159 = "test"; +export const exp1160 = "test"; +export const exp1161 = "test"; +export const exp1162 = "test"; +export const exp1163 = "test"; +export const exp1164 = "test"; +export const exp1165 = "test"; +export const exp1166 = "test"; +export const exp1167 = "test"; +export const exp1168 = "test"; +export const exp1169 = "test"; +export const exp1170 = "test"; +export const exp1171 = "test"; +export const exp1172 = "test"; +export const exp1173 = "test"; +export const exp1174 = "test"; +export const exp1175 = "test"; +export const exp1176 = "test"; +export const exp1177 = "test"; +export const exp1178 = "test"; +export const exp1179 = "test"; +export const exp1180 = "test"; +export const exp1181 = "test"; +export const exp1182 = "test"; +export const exp1183 = "test"; +export const exp1184 = "test"; +export const exp1185 = "test"; +export const exp1186 = "test"; +export const exp1187 = "test"; +export const exp1188 = "test"; +export const exp1189 = "test"; +export const exp1190 = "test"; +export const exp1191 = "test"; +export const exp1192 = "test"; +export const exp1193 = "test"; +export const exp1194 = "test"; +export const exp1195 = "test"; +export const exp1196 = "test"; +export const exp1197 = "test"; +export const exp1198 = "test"; +export const exp1199 = "test"; +export const exp1200 = "test"; +export const exp1201 = "test"; +export const exp1202 = "test"; +export const exp1203 = "test"; +export const exp1204 = "test"; +export const exp1205 = "test"; +export const exp1206 = "test"; +export const exp1207 = "test"; +export const exp1208 = "test"; +export const exp1209 = "test"; +export const exp1210 = "test"; +export const exp1211 = "test"; +export const exp1212 = "test"; +export const exp1213 = "test"; +export const exp1214 = "test"; +export const exp1215 = "test"; +export const exp1216 = "test"; +export const exp1217 = "test"; +export const exp1218 = "test"; +export const exp1219 = "test"; +export const exp1220 = "test"; +export const exp1221 = "test"; +export const exp1222 = "test"; +export const exp1223 = "test"; +export const exp1224 = "test"; +export const exp1225 = "test"; +export const exp1226 = "test"; +export const exp1227 = "test"; +export const exp1228 = "test"; +export const exp1229 = "test"; +export const exp1230 = "test"; +export const exp1231 = "test"; +export const exp1232 = "test"; +export const exp1233 = "test"; +export const exp1234 = "test"; +export const exp1235 = "test"; +export const exp1236 = "test"; +export const exp1237 = "test"; +export const exp1238 = "test"; +export const exp1239 = "test"; +export const exp1240 = "test"; +export const exp1241 = "test"; +export const exp1242 = "test"; +export const exp1243 = "test"; +export const exp1244 = "test"; +export const exp1245 = "test"; +export const exp1246 = "test"; +export const exp1247 = "test"; +export const exp1248 = "test"; +export const exp1249 = "test"; +export const exp1250 = "test"; +export const exp1251 = "test"; +export const exp1252 = "test"; +export const exp1253 = "test"; +export const exp1254 = "test"; +export const exp1255 = "test"; +export const exp1256 = "test"; +export const exp1257 = "test"; +export const exp1258 = "test"; +export const exp1259 = "test"; +export const exp1260 = "test"; +export const exp1261 = "test"; +export const exp1262 = "test"; +export const exp1263 = "test"; +export const exp1264 = "test"; +export const exp1265 = "test"; +export const exp1266 = "test"; +export const exp1267 = "test"; +export const exp1268 = "test"; +export const exp1269 = "test"; +export const exp1270 = "test"; +export const exp1271 = "test"; +export const exp1272 = "test"; +export const exp1273 = "test"; +export const exp1274 = "test"; +export const exp1275 = "test"; +export const exp1276 = "test"; +export const exp1277 = "test"; +export const exp1278 = "test"; +export const exp1279 = "test"; +export const exp1280 = "test"; +export const exp1281 = "test"; +export const exp1282 = "test"; +export const exp1283 = "test"; +export const exp1284 = "test"; +export const exp1285 = "test"; +export const exp1286 = "test"; +export const exp1287 = "test"; +export const exp1288 = "test"; +export const exp1289 = "test"; +export const exp1290 = "test"; +export const exp1291 = "test"; +export const exp1292 = "test"; +export const exp1293 = "test"; +export const exp1294 = "test"; +export const exp1295 = "test"; +export const exp1296 = "test"; +export const exp1297 = "test"; +export const exp1298 = "test"; +export const exp1299 = "test"; +export const exp1300 = "test"; +export const exp1301 = "test"; +export const exp1302 = "test"; +export const exp1303 = "test"; +export const exp1304 = "test"; +export const exp1305 = "test"; +export const exp1306 = "test"; +export const exp1307 = "test"; +export const exp1308 = "test"; +export const exp1309 = "test"; +export const exp1310 = "test"; +export const exp1311 = "test"; +export const exp1312 = "test"; +export const exp1313 = "test"; +export const exp1314 = "test"; +export const exp1315 = "test"; +export const exp1316 = "test"; +export const exp1317 = "test"; +export const exp1318 = "test"; +export const exp1319 = "test"; +export const exp1320 = "test"; +export const exp1321 = "test"; +export const exp1322 = "test"; +export const exp1323 = "test"; +export const exp1324 = "test"; +export const exp1325 = "test"; +export const exp1326 = "test"; +export const exp1327 = "test"; +export const exp1328 = "test"; +export const exp1329 = "test"; +export const exp1330 = "test"; +export const exp1331 = "test"; +export const exp1332 = "test"; +export const exp1333 = "test"; +export const exp1334 = "test"; +export const exp1335 = "test"; +export const exp1336 = "test"; +export const exp1337 = "test"; +export const exp1338 = "test"; +export const exp1339 = "test"; +export const exp1340 = "test"; +export const exp1341 = "test"; +export const exp1342 = "test"; +export const exp1343 = "test"; +export const exp1344 = "test"; +export const exp1345 = "test"; +export const exp1346 = "test"; +export const exp1347 = "test"; +export const exp1348 = "test"; +export const exp1349 = "test"; +export const exp1350 = "test"; +export const exp1351 = "test"; +export const exp1352 = "test"; +export const exp1353 = "test"; +export const exp1354 = "test"; +export const exp1355 = "test"; +export const exp1356 = "test"; +export const exp1357 = "test"; +export const exp1358 = "test"; +export const exp1359 = "test"; +export const exp1360 = "test"; +export const exp1361 = "test"; +export const exp1362 = "test"; +export const exp1363 = "test"; +export const exp1364 = "test"; +export const exp1365 = "test"; +export const exp1366 = "test"; +export const exp1367 = "test"; +export const exp1368 = "test"; +export const exp1369 = "test"; +export const exp1370 = "test"; +export const exp1371 = "test"; +export const exp1372 = "test"; +export const exp1373 = "test"; +export const exp1374 = "test"; +export const exp1375 = "test"; +export const exp1376 = "test"; +export const exp1377 = "test"; +export const exp1378 = "test"; +export const exp1379 = "test"; +export const exp1380 = "test"; +export const exp1381 = "test"; +export const exp1382 = "test"; +export const exp1383 = "test"; +export const exp1384 = "test"; +export const exp1385 = "test"; +export const exp1386 = "test"; +export const exp1387 = "test"; +export const exp1388 = "test"; +export const exp1389 = "test"; +export const exp1390 = "test"; +export const exp1391 = "test"; +export const exp1392 = "test"; +export const exp1393 = "test"; +export const exp1394 = "test"; +export const exp1395 = "test"; +export const exp1396 = "test"; +export const exp1397 = "test"; +export const exp1398 = "test"; +export const exp1399 = "test"; +export const exp1400 = "test"; +export const exp1401 = "test"; +export const exp1402 = "test"; +export const exp1403 = "test"; +export const exp1404 = "test"; +export const exp1405 = "test"; +export const exp1406 = "test"; +export const exp1407 = "test"; +export const exp1408 = "test"; +export const exp1409 = "test"; +export const exp1410 = "test"; +export const exp1411 = "test"; +export const exp1412 = "test"; +export const exp1413 = "test"; +export const exp1414 = "test"; +export const exp1415 = "test"; +export const exp1416 = "test"; +export const exp1417 = "test"; +export const exp1418 = "test"; +export const exp1419 = "test"; +export const exp1420 = "test"; +export const exp1421 = "test"; +export const exp1422 = "test"; +export const exp1423 = "test"; +export const exp1424 = "test"; +export const exp1425 = "test"; +export const exp1426 = "test"; +export const exp1427 = "test"; +export const exp1428 = "test"; +export const exp1429 = "test"; +export const exp1430 = "test"; +export const exp1431 = "test"; +export const exp1432 = "test"; +export const exp1433 = "test"; +export const exp1434 = "test"; +export const exp1435 = "test"; +export const exp1436 = "test"; +export const exp1437 = "test"; +export const exp1438 = "test"; +export const exp1439 = "test"; +export const exp1440 = "test"; +export const exp1441 = "test"; +export const exp1442 = "test"; +export const exp1443 = "test"; +export const exp1444 = "test"; +export const exp1445 = "test"; +export const exp1446 = "test"; +export const exp1447 = "test"; +export const exp1448 = "test"; +export const exp1449 = "test"; +export const exp1450 = "test"; +export const exp1451 = "test"; +export const exp1452 = "test"; +export const exp1453 = "test"; +export const exp1454 = "test"; +export const exp1455 = "test"; +export const exp1456 = "test"; +export const exp1457 = "test"; +export const exp1458 = "test"; +export const exp1459 = "test"; +export const exp1460 = "test"; +export const exp1461 = "test"; +export const exp1462 = "test"; +export const exp1463 = "test"; +export const exp1464 = "test"; +export const exp1465 = "test"; +export const exp1466 = "test"; +export const exp1467 = "test"; +export const exp1468 = "test"; +export const exp1469 = "test"; +export const exp1470 = "test"; +export const exp1471 = "test"; +export const exp1472 = "test"; +export const exp1473 = "test"; +export const exp1474 = "test"; +export const exp1475 = "test"; +export const exp1476 = "test"; +export const exp1477 = "test"; +export const exp1478 = "test"; +export const exp1479 = "test"; +export const exp1480 = "test"; +export const exp1481 = "test"; +export const exp1482 = "test"; +export const exp1483 = "test"; +export const exp1484 = "test"; +export const exp1485 = "test"; +export const exp1486 = "test"; +export const exp1487 = "test"; +export const exp1488 = "test"; +export const exp1489 = "test"; +export const exp1490 = "test"; +export const exp1491 = "test"; +export const exp1492 = "test"; +export const exp1493 = "test"; +export const exp1494 = "test"; +export const exp1495 = "test"; +export const exp1496 = "test"; +export const exp1497 = "test"; +export const exp1498 = "test"; +export const exp1499 = "test"; +export const exp1500 = "test"; +export const exp1501 = "test"; +export const exp1502 = "test"; +export const exp1503 = "test"; +export const exp1504 = "test"; +export const exp1505 = "test"; +export const exp1506 = "test"; +export const exp1507 = "test"; +export const exp1508 = "test"; +export const exp1509 = "test"; +export const exp1510 = "test"; +export const exp1511 = "test"; +export const exp1512 = "test"; +export const exp1513 = "test"; +export const exp1514 = "test"; +export const exp1515 = "test"; +export const exp1516 = "test"; +export const exp1517 = "test"; +export const exp1518 = "test"; +export const exp1519 = "test"; +export const exp1520 = "test"; +export const exp1521 = "test"; +export const exp1522 = "test"; +export const exp1523 = "test"; +export const exp1524 = "test"; +export const exp1525 = "test"; +export const exp1526 = "test"; +export const exp1527 = "test"; +export const exp1528 = "test"; +export const exp1529 = "test"; +export const exp1530 = "test"; +export const exp1531 = "test"; +export const exp1532 = "test"; +export const exp1533 = "test"; +export const exp1534 = "test"; +export const exp1535 = "test"; +export const exp1536 = "test"; +export const exp1537 = "test"; +export const exp1538 = "test"; +export const exp1539 = "test"; +export const exp1540 = "test"; +export const exp1541 = "test"; +export const exp1542 = "test"; +export const exp1543 = "test"; +export const exp1544 = "test"; +export const exp1545 = "test"; +export const exp1546 = "test"; +export const exp1547 = "test"; +export const exp1548 = "test"; +export const exp1549 = "test"; +export const exp1550 = "test"; +export const exp1551 = "test"; +export const exp1552 = "test"; +export const exp1553 = "test"; +export const exp1554 = "test"; +export const exp1555 = "test"; +export const exp1556 = "test"; +export const exp1557 = "test"; +export const exp1558 = "test"; +export const exp1559 = "test"; +export const exp1560 = "test"; +export const exp1561 = "test"; +export const exp1562 = "test"; +export const exp1563 = "test"; +export const exp1564 = "test"; +export const exp1565 = "test"; +export const exp1566 = "test"; +export const exp1567 = "test"; +export const exp1568 = "test"; +export const exp1569 = "test"; +export const exp1570 = "test"; +export const exp1571 = "test"; +export const exp1572 = "test"; +export const exp1573 = "test"; +export const exp1574 = "test"; +export const exp1575 = "test"; +export const exp1576 = "test"; +export const exp1577 = "test"; +export const exp1578 = "test"; +export const exp1579 = "test"; +export const exp1580 = "test"; +export const exp1581 = "test"; +export const exp1582 = "test"; +export const exp1583 = "test"; +export const exp1584 = "test"; +export const exp1585 = "test"; +export const exp1586 = "test"; +export const exp1587 = "test"; +export const exp1588 = "test"; +export const exp1589 = "test"; +export const exp1590 = "test"; +export const exp1591 = "test"; +export const exp1592 = "test"; +export const exp1593 = "test"; +export const exp1594 = "test"; +export const exp1595 = "test"; +export const exp1596 = "test"; +export const exp1597 = "test"; +export const exp1598 = "test"; +export const exp1599 = "test"; +export const exp1600 = "test"; +export const exp1601 = "test"; +export const exp1602 = "test"; +export const exp1603 = "test"; +export const exp1604 = "test"; +export const exp1605 = "test"; +export const exp1606 = "test"; +export const exp1607 = "test"; +export const exp1608 = "test"; +export const exp1609 = "test"; +export const exp1610 = "test"; +export const exp1611 = "test"; +export const exp1612 = "test"; +export const exp1613 = "test"; +export const exp1614 = "test"; +export const exp1615 = "test"; +export const exp1616 = "test"; +export const exp1617 = "test"; +export const exp1618 = "test"; +export const exp1619 = "test"; +export const exp1620 = "test"; +export const exp1621 = "test"; +export const exp1622 = "test"; +export const exp1623 = "test"; +export const exp1624 = "test"; +export const exp1625 = "test"; +export const exp1626 = "test"; +export const exp1627 = "test"; +export const exp1628 = "test"; +export const exp1629 = "test"; +export const exp1630 = "test"; +export const exp1631 = "test"; +export const exp1632 = "test"; +export const exp1633 = "test"; +export const exp1634 = "test"; +export const exp1635 = "test"; +export const exp1636 = "test"; +export const exp1637 = "test"; +export const exp1638 = "test"; +export const exp1639 = "test"; +export const exp1640 = "test"; +export const exp1641 = "test"; +export const exp1642 = "test"; +export const exp1643 = "test"; +export const exp1644 = "test"; +export const exp1645 = "test"; +export const exp1646 = "test"; +export const exp1647 = "test"; +export const exp1648 = "test"; +export const exp1649 = "test"; +export const exp1650 = "test"; +export const exp1651 = "test"; +export const exp1652 = "test"; +export const exp1653 = "test"; +export const exp1654 = "test"; +export const exp1655 = "test"; +export const exp1656 = "test"; +export const exp1657 = "test"; +export const exp1658 = "test"; +export const exp1659 = "test"; +export const exp1660 = "test"; +export const exp1661 = "test"; +export const exp1662 = "test"; +export const exp1663 = "test"; +export const exp1664 = "test"; +export const exp1665 = "test"; +export const exp1666 = "test"; +export const exp1667 = "test"; +export const exp1668 = "test"; +export const exp1669 = "test"; +export const exp1670 = "test"; +export const exp1671 = "test"; +export const exp1672 = "test"; +export const exp1673 = "test"; +export const exp1674 = "test"; +export const exp1675 = "test"; +export const exp1676 = "test"; +export const exp1677 = "test"; +export const exp1678 = "test"; +export const exp1679 = "test"; +export const exp1680 = "test"; +export const exp1681 = "test"; +export const exp1682 = "test"; +export const exp1683 = "test"; +export const exp1684 = "test"; +export const exp1685 = "test"; +export const exp1686 = "test"; +export const exp1687 = "test"; +export const exp1688 = "test"; +export const exp1689 = "test"; +export const exp1690 = "test"; +export const exp1691 = "test"; +export const exp1692 = "test"; +export const exp1693 = "test"; +export const exp1694 = "test"; +export const exp1695 = "test"; +export const exp1696 = "test"; +export const exp1697 = "test"; +export const exp1698 = "test"; +export const exp1699 = "test"; +export const exp1700 = "test"; +export const exp1701 = "test"; +export const exp1702 = "test"; +export const exp1703 = "test"; +export const exp1704 = "test"; +export const exp1705 = "test"; +export const exp1706 = "test"; +export const exp1707 = "test"; +export const exp1708 = "test"; +export const exp1709 = "test"; +export const exp1710 = "test"; +export const exp1711 = "test"; +export const exp1712 = "test"; +export const exp1713 = "test"; +export const exp1714 = "test"; +export const exp1715 = "test"; +export const exp1716 = "test"; +export const exp1717 = "test"; +export const exp1718 = "test"; +export const exp1719 = "test"; +export const exp1720 = "test"; +export const exp1721 = "test"; +export const exp1722 = "test"; +export const exp1723 = "test"; +export const exp1724 = "test"; +export const exp1725 = "test"; +export const exp1726 = "test"; +export const exp1727 = "test"; +export const exp1728 = "test"; +export const exp1729 = "test"; +export const exp1730 = "test"; +export const exp1731 = "test"; +export const exp1732 = "test"; +export const exp1733 = "test"; +export const exp1734 = "test"; +export const exp1735 = "test"; +export const exp1736 = "test"; +export const exp1737 = "test"; +export const exp1738 = "test"; +export const exp1739 = "test"; +export const exp1740 = "test"; +export const exp1741 = "test"; +export const exp1742 = "test"; +export const exp1743 = "test"; +export const exp1744 = "test"; +export const exp1745 = "test"; +export const exp1746 = "test"; +export const exp1747 = "test"; +export const exp1748 = "test"; +export const exp1749 = "test"; +export const exp1750 = "test"; +export const exp1751 = "test"; +export const exp1752 = "test"; +export const exp1753 = "test"; +export const exp1754 = "test"; +export const exp1755 = "test"; +export const exp1756 = "test"; +export const exp1757 = "test"; +export const exp1758 = "test"; +export const exp1759 = "test"; +export const exp1760 = "test"; +export const exp1761 = "test"; +export const exp1762 = "test"; +export const exp1763 = "test"; +export const exp1764 = "test"; +export const exp1765 = "test"; +export const exp1766 = "test"; +export const exp1767 = "test"; +export const exp1768 = "test"; +export const exp1769 = "test"; +export const exp1770 = "test"; +export const exp1771 = "test"; +export const exp1772 = "test"; +export const exp1773 = "test"; +export const exp1774 = "test"; +export const exp1775 = "test"; +export const exp1776 = "test"; +export const exp1777 = "test"; +export const exp1778 = "test"; +export const exp1779 = "test"; +export const exp1780 = "test"; +export const exp1781 = "test"; +export const exp1782 = "test"; +export const exp1783 = "test"; +export const exp1784 = "test"; +export const exp1785 = "test"; +export const exp1786 = "test"; +export const exp1787 = "test"; +export const exp1788 = "test"; +export const exp1789 = "test"; +export const exp1790 = "test"; +export const exp1791 = "test"; +export const exp1792 = "test"; +export const exp1793 = "test"; +export const exp1794 = "test"; +export const exp1795 = "test"; +export const exp1796 = "test"; +export const exp1797 = "test"; +export const exp1798 = "test"; +export const exp1799 = "test"; +export const exp1800 = "test"; +export const exp1801 = "test"; +export const exp1802 = "test"; +export const exp1803 = "test"; +export const exp1804 = "test"; +export const exp1805 = "test"; +export const exp1806 = "test"; +export const exp1807 = "test"; +export const exp1808 = "test"; +export const exp1809 = "test"; +export const exp1810 = "test"; +export const exp1811 = "test"; +export const exp1812 = "test"; +export const exp1813 = "test"; +export const exp1814 = "test"; +export const exp1815 = "test"; +export const exp1816 = "test"; +export const exp1817 = "test"; +export const exp1818 = "test"; +export const exp1819 = "test"; +export const exp1820 = "test"; +export const exp1821 = "test"; +export const exp1822 = "test"; +export const exp1823 = "test"; +export const exp1824 = "test"; +export const exp1825 = "test"; +export const exp1826 = "test"; +export const exp1827 = "test"; +export const exp1828 = "test"; +export const exp1829 = "test"; +export const exp1830 = "test"; +export const exp1831 = "test"; +export const exp1832 = "test"; +export const exp1833 = "test"; +export const exp1834 = "test"; +export const exp1835 = "test"; +export const exp1836 = "test"; +export const exp1837 = "test"; +export const exp1838 = "test"; +export const exp1839 = "test"; +export const exp1840 = "test"; +export const exp1841 = "test"; +export const exp1842 = "test"; +export const exp1843 = "test"; +export const exp1844 = "test"; +export const exp1845 = "test"; +export const exp1846 = "test"; +export const exp1847 = "test"; +export const exp1848 = "test"; +export const exp1849 = "test"; +export const exp1850 = "test"; +export const exp1851 = "test"; +export const exp1852 = "test"; +export const exp1853 = "test"; +export const exp1854 = "test"; +export const exp1855 = "test"; +export const exp1856 = "test"; +export const exp1857 = "test"; +export const exp1858 = "test"; +export const exp1859 = "test"; +export const exp1860 = "test"; +export const exp1861 = "test"; +export const exp1862 = "test"; +export const exp1863 = "test"; +export const exp1864 = "test"; +export const exp1865 = "test"; +export const exp1866 = "test"; +export const exp1867 = "test"; +export const exp1868 = "test"; +export const exp1869 = "test"; +export const exp1870 = "test"; +export const exp1871 = "test"; +export const exp1872 = "test"; +export const exp1873 = "test"; +export const exp1874 = "test"; +export const exp1875 = "test"; +export const exp1876 = "test"; +export const exp1877 = "test"; +export const exp1878 = "test"; +export const exp1879 = "test"; +export const exp1880 = "test"; +export const exp1881 = "test"; +export const exp1882 = "test"; +export const exp1883 = "test"; +export const exp1884 = "test"; +export const exp1885 = "test"; +export const exp1886 = "test"; +export const exp1887 = "test"; +export const exp1888 = "test"; +export const exp1889 = "test"; +export const exp1890 = "test"; +export const exp1891 = "test"; +export const exp1892 = "test"; +export const exp1893 = "test"; +export const exp1894 = "test"; +export const exp1895 = "test"; +export const exp1896 = "test"; +export const exp1897 = "test"; +export const exp1898 = "test"; +export const exp1899 = "test"; +export const exp1900 = "test"; +export const exp1901 = "test"; +export const exp1902 = "test"; +export const exp1903 = "test"; +export const exp1904 = "test"; +export const exp1905 = "test"; +export const exp1906 = "test"; +export const exp1907 = "test"; +export const exp1908 = "test"; +export const exp1909 = "test"; +export const exp1910 = "test"; +export const exp1911 = "test"; +export const exp1912 = "test"; +export const exp1913 = "test"; +export const exp1914 = "test"; +export const exp1915 = "test"; +export const exp1916 = "test"; +export const exp1917 = "test"; +export const exp1918 = "test"; +export const exp1919 = "test"; +export const exp1920 = "test"; +export const exp1921 = "test"; +export const exp1922 = "test"; +export const exp1923 = "test"; +export const exp1924 = "test"; +export const exp1925 = "test"; +export const exp1926 = "test"; +export const exp1927 = "test"; +export const exp1928 = "test"; +export const exp1929 = "test"; +export const exp1930 = "test"; +export const exp1931 = "test"; +export const exp1932 = "test"; +export const exp1933 = "test"; +export const exp1934 = "test"; +export const exp1935 = "test"; +export const exp1936 = "test"; +export const exp1937 = "test"; +export const exp1938 = "test"; +export const exp1939 = "test"; +export const exp1940 = "test"; +export const exp1941 = "test"; +export const exp1942 = "test"; +export const exp1943 = "test"; +export const exp1944 = "test"; +export const exp1945 = "test"; +export const exp1946 = "test"; +export const exp1947 = "test"; +export const exp1948 = "test"; +export const exp1949 = "test"; +export const exp1950 = "test"; +export const exp1951 = "test"; +export const exp1952 = "test"; +export const exp1953 = "test"; +export const exp1954 = "test"; +export const exp1955 = "test"; +export const exp1956 = "test"; +export const exp1957 = "test"; +export const exp1958 = "test"; +export const exp1959 = "test"; +export const exp1960 = "test"; +export const exp1961 = "test"; +export const exp1962 = "test"; +export const exp1963 = "test"; +export const exp1964 = "test"; +export const exp1965 = "test"; +export const exp1966 = "test"; +export const exp1967 = "test"; +export const exp1968 = "test"; +export const exp1969 = "test"; +export const exp1970 = "test"; +export const exp1971 = "test"; +export const exp1972 = "test"; +export const exp1973 = "test"; +export const exp1974 = "test"; +export const exp1975 = "test"; +export const exp1976 = "test"; +export const exp1977 = "test"; +export const exp1978 = "test"; +export const exp1979 = "test"; +export const exp1980 = "test"; +export const exp1981 = "test"; +export const exp1982 = "test"; +export const exp1983 = "test"; +export const exp1984 = "test"; +export const exp1985 = "test"; +export const exp1986 = "test"; +export const exp1987 = "test"; +export const exp1988 = "test"; +export const exp1989 = "test"; +export const exp1990 = "test"; +export const exp1991 = "test"; +export const exp1992 = "test"; +export const exp1993 = "test"; +export const exp1994 = "test"; +export const exp1995 = "test"; +export const exp1996 = "test"; +export const exp1997 = "test"; +export const exp1998 = "test"; +export const exp1999 = "test"; +export const exp2000 = "test"; +export const exp2001 = "test"; +export const exp2002 = "test"; +export const exp2003 = "test"; +export const exp2004 = "test"; +export const exp2005 = "test"; +export const exp2006 = "test"; +export const exp2007 = "test"; +export const exp2008 = "test"; +export const exp2009 = "test"; +export const exp2010 = "test"; +export const exp2011 = "test"; +export const exp2012 = "test"; +export const exp2013 = "test"; +export const exp2014 = "test"; +export const exp2015 = "test"; +export const exp2016 = "test"; +export const exp2017 = "test"; +export const exp2018 = "test"; +export const exp2019 = "test"; +export const exp2020 = "test"; +export const exp2021 = "test"; +export const exp2022 = "test"; +export const exp2023 = "test"; +export const exp2024 = "test"; +export const exp2025 = "test"; +export const exp2026 = "test"; +export const exp2027 = "test"; +export const exp2028 = "test"; +export const exp2029 = "test"; +export const exp2030 = "test"; +export const exp2031 = "test"; +export const exp2032 = "test"; +export const exp2033 = "test"; +export const exp2034 = "test"; +export const exp2035 = "test"; +export const exp2036 = "test"; +export const exp2037 = "test"; +export const exp2038 = "test"; +export const exp2039 = "test"; +export const exp2040 = "test"; +export const exp2041 = "test"; +export const exp2042 = "test"; +export const exp2043 = "test"; +export const exp2044 = "test"; +export const exp2045 = "test"; +export const exp2046 = "test"; +export const exp2047 = "test"; +export const exp2048 = "test"; +export const exp2049 = "test"; +export const exp2050 = "test"; +export const exp2051 = "test"; +export const exp2052 = "test"; +export const exp2053 = "test"; +export const exp2054 = "test"; +export const exp2055 = "test"; +export const exp2056 = "test"; +export const exp2057 = "test"; +export const exp2058 = "test"; +export const exp2059 = "test"; +export const exp2060 = "test"; +export const exp2061 = "test"; +export const exp2062 = "test"; +export const exp2063 = "test"; +export const exp2064 = "test"; +export const exp2065 = "test"; +export const exp2066 = "test"; +export const exp2067 = "test"; +export const exp2068 = "test"; +export const exp2069 = "test"; +export const exp2070 = "test"; +export const exp2071 = "test"; +export const exp2072 = "test"; +export const exp2073 = "test"; +export const exp2074 = "test"; +export const exp2075 = "test"; +export const exp2076 = "test"; +export const exp2077 = "test"; +export const exp2078 = "test"; +export const exp2079 = "test"; +export const exp2080 = "test"; +export const exp2081 = "test"; +export const exp2082 = "test"; +export const exp2083 = "test"; +export const exp2084 = "test"; +export const exp2085 = "test"; +export const exp2086 = "test"; +export const exp2087 = "test"; +export const exp2088 = "test"; +export const exp2089 = "test"; +export const exp2090 = "test"; +export const exp2091 = "test"; +export const exp2092 = "test"; +export const exp2093 = "test"; +export const exp2094 = "test"; +export const exp2095 = "test"; +export const exp2096 = "test"; +export const exp2097 = "test"; +export const exp2098 = "test"; +export const exp2099 = "test"; +export const exp2100 = "test"; +export const exp2101 = "test"; +export const exp2102 = "test"; +export const exp2103 = "test"; +export const exp2104 = "test"; +export const exp2105 = "test"; +export const exp2106 = "test"; +export const exp2107 = "test"; +export const exp2108 = "test"; +export const exp2109 = "test"; +export const exp2110 = "test"; +export const exp2111 = "test"; +export const exp2112 = "test"; +export const exp2113 = "test"; +export const exp2114 = "test"; +export const exp2115 = "test"; +export const exp2116 = "test"; +export const exp2117 = "test"; +export const exp2118 = "test"; +export const exp2119 = "test"; +export const exp2120 = "test"; +export const exp2121 = "test"; +export const exp2122 = "test"; +export const exp2123 = "test"; +export const exp2124 = "test"; +export const exp2125 = "test"; +export const exp2126 = "test"; +export const exp2127 = "test"; +export const exp2128 = "test"; +export const exp2129 = "test"; +export const exp2130 = "test"; +export const exp2131 = "test"; +export const exp2132 = "test"; +export const exp2133 = "test"; +export const exp2134 = "test"; +export const exp2135 = "test"; +export const exp2136 = "test"; +export const exp2137 = "test"; +export const exp2138 = "test"; +export const exp2139 = "test"; +export const exp2140 = "test"; +export const exp2141 = "test"; +export const exp2142 = "test"; +export const exp2143 = "test"; +export const exp2144 = "test"; +export const exp2145 = "test"; +export const exp2146 = "test"; +export const exp2147 = "test"; +export const exp2148 = "test"; +export const exp2149 = "test"; +export const exp2150 = "test"; +export const exp2151 = "test"; +export const exp2152 = "test"; +export const exp2153 = "test"; +export const exp2154 = "test"; +export const exp2155 = "test"; +export const exp2156 = "test"; +export const exp2157 = "test"; +export const exp2158 = "test"; +export const exp2159 = "test"; +export const exp2160 = "test"; +export const exp2161 = "test"; +export const exp2162 = "test"; +export const exp2163 = "test"; +export const exp2164 = "test"; +export const exp2165 = "test"; +export const exp2166 = "test"; +export const exp2167 = "test"; +export const exp2168 = "test"; +export const exp2169 = "test"; +export const exp2170 = "test"; +export const exp2171 = "test"; +export const exp2172 = "test"; +export const exp2173 = "test"; +export const exp2174 = "test"; +export const exp2175 = "test"; +export const exp2176 = "test"; +export const exp2177 = "test"; +export const exp2178 = "test"; +export const exp2179 = "test"; +export const exp2180 = "test"; +export const exp2181 = "test"; +export const exp2182 = "test"; +export const exp2183 = "test"; +export const exp2184 = "test"; +export const exp2185 = "test"; +export const exp2186 = "test"; +export const exp2187 = "test"; +export const exp2188 = "test"; +export const exp2189 = "test"; +export const exp2190 = "test"; +export const exp2191 = "test"; +export const exp2192 = "test"; +export const exp2193 = "test"; +export const exp2194 = "test"; +export const exp2195 = "test"; +export const exp2196 = "test"; +export const exp2197 = "test"; +export const exp2198 = "test"; +export const exp2199 = "test"; +export const exp2200 = "test"; +export const exp2201 = "test"; +export const exp2202 = "test"; +export const exp2203 = "test"; +export const exp2204 = "test"; +export const exp2205 = "test"; +export const exp2206 = "test"; +export const exp2207 = "test"; +export const exp2208 = "test"; +export const exp2209 = "test"; +export const exp2210 = "test"; +export const exp2211 = "test"; +export const exp2212 = "test"; +export const exp2213 = "test"; +export const exp2214 = "test"; +export const exp2215 = "test"; +export const exp2216 = "test"; +export const exp2217 = "test"; +export const exp2218 = "test"; +export const exp2219 = "test"; +export const exp2220 = "test"; +export const exp2221 = "test"; +export const exp2222 = "test"; +export const exp2223 = "test"; +export const exp2224 = "test"; +export const exp2225 = "test"; +export const exp2226 = "test"; +export const exp2227 = "test"; +export const exp2228 = "test"; +export const exp2229 = "test"; +export const exp2230 = "test"; +export const exp2231 = "test"; +export const exp2232 = "test"; +export const exp2233 = "test"; +export const exp2234 = "test"; +export const exp2235 = "test"; +export const exp2236 = "test"; +export const exp2237 = "test"; +export const exp2238 = "test"; +export const exp2239 = "test"; +export const exp2240 = "test"; +export const exp2241 = "test"; +export const exp2242 = "test"; +export const exp2243 = "test"; +export const exp2244 = "test"; +export const exp2245 = "test"; +export const exp2246 = "test"; +export const exp2247 = "test"; +export const exp2248 = "test"; +export const exp2249 = "test"; +export const exp2250 = "test"; +export const exp2251 = "test"; +export const exp2252 = "test"; +export const exp2253 = "test"; +export const exp2254 = "test"; +export const exp2255 = "test"; +export const exp2256 = "test"; +export const exp2257 = "test"; +export const exp2258 = "test"; +export const exp2259 = "test"; +export const exp2260 = "test"; +export const exp2261 = "test"; +export const exp2262 = "test"; +export const exp2263 = "test"; +export const exp2264 = "test"; +export const exp2265 = "test"; +export const exp2266 = "test"; +export const exp2267 = "test"; +export const exp2268 = "test"; +export const exp2269 = "test"; +export const exp2270 = "test"; +export const exp2271 = "test"; +export const exp2272 = "test"; +export const exp2273 = "test"; +export const exp2274 = "test"; +export const exp2275 = "test"; +export const exp2276 = "test"; +export const exp2277 = "test"; +export const exp2278 = "test"; +export const exp2279 = "test"; +export const exp2280 = "test"; +export const exp2281 = "test"; +export const exp2282 = "test"; +export const exp2283 = "test"; +export const exp2284 = "test"; +export const exp2285 = "test"; +export const exp2286 = "test"; +export const exp2287 = "test"; +export const exp2288 = "test"; +export const exp2289 = "test"; +export const exp2290 = "test"; +export const exp2291 = "test"; +export const exp2292 = "test"; +export const exp2293 = "test"; +export const exp2294 = "test"; +export const exp2295 = "test"; +export const exp2296 = "test"; +export const exp2297 = "test"; +export const exp2298 = "test"; +export const exp2299 = "test"; +export const exp2300 = "test"; +export const exp2301 = "test"; +export const exp2302 = "test"; +export const exp2303 = "test"; +export const exp2304 = "test"; +export const exp2305 = "test"; +export const exp2306 = "test"; +export const exp2307 = "test"; +export const exp2308 = "test"; +export const exp2309 = "test"; +export const exp2310 = "test"; +export const exp2311 = "test"; +export const exp2312 = "test"; +export const exp2313 = "test"; +export const exp2314 = "test"; +export const exp2315 = "test"; +export const exp2316 = "test"; +export const exp2317 = "test"; +export const exp2318 = "test"; +export const exp2319 = "test"; +export const exp2320 = "test"; +export const exp2321 = "test"; +export const exp2322 = "test"; +export const exp2323 = "test"; +export const exp2324 = "test"; +export const exp2325 = "test"; +export const exp2326 = "test"; +export const exp2327 = "test"; +export const exp2328 = "test"; +export const exp2329 = "test"; +export const exp2330 = "test"; +export const exp2331 = "test"; +export const exp2332 = "test"; +export const exp2333 = "test"; +export const exp2334 = "test"; +export const exp2335 = "test"; +export const exp2336 = "test"; +export const exp2337 = "test"; +export const exp2338 = "test"; +export const exp2339 = "test"; +export const exp2340 = "test"; +export const exp2341 = "test"; +export const exp2342 = "test"; +export const exp2343 = "test"; +export const exp2344 = "test"; +export const exp2345 = "test"; +export const exp2346 = "test"; +export const exp2347 = "test"; +export const exp2348 = "test"; +export const exp2349 = "test"; +export const exp2350 = "test"; +export const exp2351 = "test"; +export const exp2352 = "test"; +export const exp2353 = "test"; +export const exp2354 = "test"; +export const exp2355 = "test"; +export const exp2356 = "test"; +export const exp2357 = "test"; +export const exp2358 = "test"; +export const exp2359 = "test"; +export const exp2360 = "test"; +export const exp2361 = "test"; +export const exp2362 = "test"; +export const exp2363 = "test"; +export const exp2364 = "test"; +export const exp2365 = "test"; +export const exp2366 = "test"; +export const exp2367 = "test"; +export const exp2368 = "test"; +export const exp2369 = "test"; +export const exp2370 = "test"; +export const exp2371 = "test"; +export const exp2372 = "test"; +export const exp2373 = "test"; +export const exp2374 = "test"; +export const exp2375 = "test"; +export const exp2376 = "test"; +export const exp2377 = "test"; +export const exp2378 = "test"; +export const exp2379 = "test"; +export const exp2380 = "test"; +export const exp2381 = "test"; +export const exp2382 = "test"; +export const exp2383 = "test"; +export const exp2384 = "test"; +export const exp2385 = "test"; +export const exp2386 = "test"; +export const exp2387 = "test"; +export const exp2388 = "test"; +export const exp2389 = "test"; +export const exp2390 = "test"; +export const exp2391 = "test"; +export const exp2392 = "test"; +export const exp2393 = "test"; +export const exp2394 = "test"; +export const exp2395 = "test"; +export const exp2396 = "test"; +export const exp2397 = "test"; +export const exp2398 = "test"; +export const exp2399 = "test"; +export const exp2400 = "test"; +export const exp2401 = "test"; +export const exp2402 = "test"; +export const exp2403 = "test"; +export const exp2404 = "test"; +export const exp2405 = "test"; +export const exp2406 = "test"; +export const exp2407 = "test"; +export const exp2408 = "test"; +export const exp2409 = "test"; +export const exp2410 = "test"; +export const exp2411 = "test"; +export const exp2412 = "test"; +export const exp2413 = "test"; +export const exp2414 = "test"; +export const exp2415 = "test"; +export const exp2416 = "test"; +export const exp2417 = "test"; +export const exp2418 = "test"; +export const exp2419 = "test"; +export const exp2420 = "test"; +export const exp2421 = "test"; +export const exp2422 = "test"; +export const exp2423 = "test"; +export const exp2424 = "test"; +export const exp2425 = "test"; +export const exp2426 = "test"; +export const exp2427 = "test"; +export const exp2428 = "test"; +export const exp2429 = "test"; +export const exp2430 = "test"; +export const exp2431 = "test"; +export const exp2432 = "test"; +export const exp2433 = "test"; +export const exp2434 = "test"; +export const exp2435 = "test"; +export const exp2436 = "test"; +export const exp2437 = "test"; +export const exp2438 = "test"; +export const exp2439 = "test"; +export const exp2440 = "test"; +export const exp2441 = "test"; +export const exp2442 = "test"; +export const exp2443 = "test"; +export const exp2444 = "test"; +export const exp2445 = "test"; +export const exp2446 = "test"; +export const exp2447 = "test"; +export const exp2448 = "test"; +export const exp2449 = "test"; +export const exp2450 = "test"; +export const exp2451 = "test"; +export const exp2452 = "test"; +export const exp2453 = "test"; +export const exp2454 = "test"; +export const exp2455 = "test"; +export const exp2456 = "test"; +export const exp2457 = "test"; +export const exp2458 = "test"; +export const exp2459 = "test"; +export const exp2460 = "test"; +export const exp2461 = "test"; +export const exp2462 = "test"; +export const exp2463 = "test"; +export const exp2464 = "test"; +export const exp2465 = "test"; +export const exp2466 = "test"; +export const exp2467 = "test"; +export const exp2468 = "test"; +export const exp2469 = "test"; +export const exp2470 = "test"; +export const exp2471 = "test"; +export const exp2472 = "test"; +export const exp2473 = "test"; +export const exp2474 = "test"; +export const exp2475 = "test"; +export const exp2476 = "test"; +export const exp2477 = "test"; +export const exp2478 = "test"; +export const exp2479 = "test"; +export const exp2480 = "test"; +export const exp2481 = "test"; +export const exp2482 = "test"; +export const exp2483 = "test"; +export const exp2484 = "test"; +export const exp2485 = "test"; +export const exp2486 = "test"; +export const exp2487 = "test"; +export const exp2488 = "test"; +export const exp2489 = "test"; +export const exp2490 = "test"; +export const exp2491 = "test"; +export const exp2492 = "test"; +export const exp2493 = "test"; +export const exp2494 = "test"; +export const exp2495 = "test"; +export const exp2496 = "test"; +export const exp2497 = "test"; +export const exp2498 = "test"; +export const exp2499 = "test"; +export const exp2500 = "test"; +export const exp2501 = "test"; +export const exp2502 = "test"; +export const exp2503 = "test"; +export const exp2504 = "test"; +export const exp2505 = "test"; +export const exp2506 = "test"; +export const exp2507 = "test"; +export const exp2508 = "test"; +export const exp2509 = "test"; +export const exp2510 = "test"; +export const exp2511 = "test"; +export const exp2512 = "test"; +export const exp2513 = "test"; +export const exp2514 = "test"; +export const exp2515 = "test"; +export const exp2516 = "test"; +export const exp2517 = "test"; +export const exp2518 = "test"; +export const exp2519 = "test"; +export const exp2520 = "test"; +export const exp2521 = "test"; +export const exp2522 = "test"; +export const exp2523 = "test"; +export const exp2524 = "test"; +export const exp2525 = "test"; +export const exp2526 = "test"; +export const exp2527 = "test"; +export const exp2528 = "test"; +export const exp2529 = "test"; +export const exp2530 = "test"; +export const exp2531 = "test"; +export const exp2532 = "test"; +export const exp2533 = "test"; +export const exp2534 = "test"; +export const exp2535 = "test"; +export const exp2536 = "test"; +export const exp2537 = "test"; +export const exp2538 = "test"; +export const exp2539 = "test"; +export const exp2540 = "test"; +export const exp2541 = "test"; +export const exp2542 = "test"; +export const exp2543 = "test"; +export const exp2544 = "test"; +export const exp2545 = "test"; +export const exp2546 = "test"; +export const exp2547 = "test"; +export const exp2548 = "test"; +export const exp2549 = "test"; +export const exp2550 = "test"; +export const exp2551 = "test"; +export const exp2552 = "test"; +export const exp2553 = "test"; +export const exp2554 = "test"; +export const exp2555 = "test"; +export const exp2556 = "test"; +export const exp2557 = "test"; +export const exp2558 = "test"; +export const exp2559 = "test"; +export const exp2560 = "test"; +export const exp2561 = "test"; +export const exp2562 = "test"; +export const exp2563 = "test"; +export const exp2564 = "test"; +export const exp2565 = "test"; +export const exp2566 = "test"; +export const exp2567 = "test"; +export const exp2568 = "test"; +export const exp2569 = "test"; +export const exp2570 = "test"; +export const exp2571 = "test"; +export const exp2572 = "test"; +export const exp2573 = "test"; +export const exp2574 = "test"; +export const exp2575 = "test"; +export const exp2576 = "test"; +export const exp2577 = "test"; +export const exp2578 = "test"; +export const exp2579 = "test"; +export const exp2580 = "test"; +export const exp2581 = "test"; +export const exp2582 = "test"; +export const exp2583 = "test"; +export const exp2584 = "test"; +export const exp2585 = "test"; +export const exp2586 = "test"; +export const exp2587 = "test"; +export const exp2588 = "test"; +export const exp2589 = "test"; +export const exp2590 = "test"; +export const exp2591 = "test"; +export const exp2592 = "test"; +export const exp2593 = "test"; +export const exp2594 = "test"; +export const exp2595 = "test"; +export const exp2596 = "test"; +export const exp2597 = "test"; +export const exp2598 = "test"; +export const exp2599 = "test"; +export const exp2600 = "test"; +export const exp2601 = "test"; +export const exp2602 = "test"; +export const exp2603 = "test"; +export const exp2604 = "test"; +export const exp2605 = "test"; +export const exp2606 = "test"; +export const exp2607 = "test"; +export const exp2608 = "test"; +export const exp2609 = "test"; +export const exp2610 = "test"; +export const exp2611 = "test"; +export const exp2612 = "test"; +export const exp2613 = "test"; +export const exp2614 = "test"; +export const exp2615 = "test"; +export const exp2616 = "test"; +export const exp2617 = "test"; +export const exp2618 = "test"; +export const exp2619 = "test"; +export const exp2620 = "test"; +export const exp2621 = "test"; +export const exp2622 = "test"; +export const exp2623 = "test"; +export const exp2624 = "test"; +export const exp2625 = "test"; +export const exp2626 = "test"; +export const exp2627 = "test"; +export const exp2628 = "test"; +export const exp2629 = "test"; +export const exp2630 = "test"; +export const exp2631 = "test"; +export const exp2632 = "test"; +export const exp2633 = "test"; +export const exp2634 = "test"; +export const exp2635 = "test"; +export const exp2636 = "test"; +export const exp2637 = "test"; +export const exp2638 = "test"; +export const exp2639 = "test"; +export const exp2640 = "test"; +export const exp2641 = "test"; +export const exp2642 = "test"; +export const exp2643 = "test"; +export const exp2644 = "test"; +export const exp2645 = "test"; +export const exp2646 = "test"; +export const exp2647 = "test"; +export const exp2648 = "test"; +export const exp2649 = "test"; +export const exp2650 = "test"; +export const exp2651 = "test"; +export const exp2652 = "test"; +export const exp2653 = "test"; +export const exp2654 = "test"; +export const exp2655 = "test"; +export const exp2656 = "test"; +export const exp2657 = "test"; +export const exp2658 = "test"; +export const exp2659 = "test"; +export const exp2660 = "test"; +export const exp2661 = "test"; +export const exp2662 = "test"; +export const exp2663 = "test"; +export const exp2664 = "test"; +export const exp2665 = "test"; +export const exp2666 = "test"; +export const exp2667 = "test"; +export const exp2668 = "test"; +export const exp2669 = "test"; +export const exp2670 = "test"; +export const exp2671 = "test"; +export const exp2672 = "test"; +export const exp2673 = "test"; +export const exp2674 = "test"; +export const exp2675 = "test"; +export const exp2676 = "test"; +export const exp2677 = "test"; +export const exp2678 = "test"; +export const exp2679 = "test"; +export const exp2680 = "test"; +export const exp2681 = "test"; +export const exp2682 = "test"; +export const exp2683 = "test"; +export const exp2684 = "test"; +export const exp2685 = "test"; +export const exp2686 = "test"; +export const exp2687 = "test"; +export const exp2688 = "test"; +export const exp2689 = "test"; +export const exp2690 = "test"; +export const exp2691 = "test"; +export const exp2692 = "test"; +export const exp2693 = "test"; +export const exp2694 = "test"; +export const exp2695 = "test"; +export const exp2696 = "test"; +export const exp2697 = "test"; +export const exp2698 = "test"; +export const exp2699 = "test"; +export const exp2700 = "test"; +export const exp2701 = "test"; +export const exp2702 = "test"; +export const exp2703 = "test"; +export const exp2704 = "test"; +export const exp2705 = "test"; +export const exp2706 = "test"; +export const exp2707 = "test"; +export const exp2708 = "test"; +export const exp2709 = "test"; +export const exp2710 = "test"; +export const exp2711 = "test"; +export const exp2712 = "test"; +export const exp2713 = "test"; +export const exp2714 = "test"; +export const exp2715 = "test"; +export const exp2716 = "test"; +export const exp2717 = "test"; +export const exp2718 = "test"; +export const exp2719 = "test"; +export const exp2720 = "test"; +export const exp2721 = "test"; +export const exp2722 = "test"; +export const exp2723 = "test"; +export const exp2724 = "test"; +export const exp2725 = "test"; +export const exp2726 = "test"; +export const exp2727 = "test"; +export const exp2728 = "test"; +export const exp2729 = "test"; +export const exp2730 = "test"; +export const exp2731 = "test"; +export const exp2732 = "test"; +export const exp2733 = "test"; +export const exp2734 = "test"; +export const exp2735 = "test"; +export const exp2736 = "test"; +export const exp2737 = "test"; +export const exp2738 = "test"; +export const exp2739 = "test"; +export const exp2740 = "test"; +export const exp2741 = "test"; +export const exp2742 = "test"; +export const exp2743 = "test"; +export const exp2744 = "test"; +export const exp2745 = "test"; +export const exp2746 = "test"; +export const exp2747 = "test"; +export const exp2748 = "test"; +export const exp2749 = "test"; +export const exp2750 = "test"; +export const exp2751 = "test"; +export const exp2752 = "test"; +export const exp2753 = "test"; +export const exp2754 = "test"; +export const exp2755 = "test"; +export const exp2756 = "test"; +export const exp2757 = "test"; +export const exp2758 = "test"; +export const exp2759 = "test"; +export const exp2760 = "test"; +export const exp2761 = "test"; +export const exp2762 = "test"; +export const exp2763 = "test"; +export const exp2764 = "test"; +export const exp2765 = "test"; +export const exp2766 = "test"; +export const exp2767 = "test"; +export const exp2768 = "test"; +export const exp2769 = "test"; +export const exp2770 = "test"; +export const exp2771 = "test"; +export const exp2772 = "test"; +export const exp2773 = "test"; +export const exp2774 = "test"; +export const exp2775 = "test"; +export const exp2776 = "test"; +export const exp2777 = "test"; +export const exp2778 = "test"; +export const exp2779 = "test"; +export const exp2780 = "test"; +export const exp2781 = "test"; +export const exp2782 = "test"; +export const exp2783 = "test"; +export const exp2784 = "test"; +export const exp2785 = "test"; +export const exp2786 = "test"; +export const exp2787 = "test"; +export const exp2788 = "test"; +export const exp2789 = "test"; +export const exp2790 = "test"; +export const exp2791 = "test"; +export const exp2792 = "test"; +export const exp2793 = "test"; +export const exp2794 = "test"; +export const exp2795 = "test"; +export const exp2796 = "test"; +export const exp2797 = "test"; +export const exp2798 = "test"; +export const exp2799 = "test"; +export const exp2800 = "test"; +export const exp2801 = "test"; +export const exp2802 = "test"; +export const exp2803 = "test"; +export const exp2804 = "test"; +export const exp2805 = "test"; +export const exp2806 = "test"; +export const exp2807 = "test"; +export const exp2808 = "test"; +export const exp2809 = "test"; +export const exp2810 = "test"; +export const exp2811 = "test"; +export const exp2812 = "test"; +export const exp2813 = "test"; +export const exp2814 = "test"; +export const exp2815 = "test"; +export const exp2816 = "test"; +export const exp2817 = "test"; +export const exp2818 = "test"; +export const exp2819 = "test"; +export const exp2820 = "test"; +export const exp2821 = "test"; +export const exp2822 = "test"; +export const exp2823 = "test"; +export const exp2824 = "test"; +export const exp2825 = "test"; +export const exp2826 = "test"; +export const exp2827 = "test"; +export const exp2828 = "test"; +export const exp2829 = "test"; +export const exp2830 = "test"; +export const exp2831 = "test"; +export const exp2832 = "test"; +export const exp2833 = "test"; +export const exp2834 = "test"; +export const exp2835 = "test"; +export const exp2836 = "test"; +export const exp2837 = "test"; +export const exp2838 = "test"; +export const exp2839 = "test"; +export const exp2840 = "test"; +export const exp2841 = "test"; +export const exp2842 = "test"; +export const exp2843 = "test"; +export const exp2844 = "test"; +export const exp2845 = "test"; +export const exp2846 = "test"; +export const exp2847 = "test"; +export const exp2848 = "test"; +export const exp2849 = "test"; +export const exp2850 = "test"; +export const exp2851 = "test"; +export const exp2852 = "test"; +export const exp2853 = "test"; +export const exp2854 = "test"; +export const exp2855 = "test"; +export const exp2856 = "test"; +export const exp2857 = "test"; +export const exp2858 = "test"; +export const exp2859 = "test"; +export const exp2860 = "test"; +export const exp2861 = "test"; +export const exp2862 = "test"; +export const exp2863 = "test"; +export const exp2864 = "test"; +export const exp2865 = "test"; +export const exp2866 = "test"; +export const exp2867 = "test"; +export const exp2868 = "test"; +export const exp2869 = "test"; +export const exp2870 = "test"; +export const exp2871 = "test"; +export const exp2872 = "test"; +export const exp2873 = "test"; +export const exp2874 = "test"; +export const exp2875 = "test"; +export const exp2876 = "test"; +export const exp2877 = "test"; +export const exp2878 = "test"; +export const exp2879 = "test"; +export const exp2880 = "test"; +export const exp2881 = "test"; +export const exp2882 = "test"; +export const exp2883 = "test"; +export const exp2884 = "test"; +export const exp2885 = "test"; +export const exp2886 = "test"; +export const exp2887 = "test"; +export const exp2888 = "test"; +export const exp2889 = "test"; +export const exp2890 = "test"; +export const exp2891 = "test"; +export const exp2892 = "test"; +export const exp2893 = "test"; +export const exp2894 = "test"; +export const exp2895 = "test"; +export const exp2896 = "test"; +export const exp2897 = "test"; +export const exp2898 = "test"; +export const exp2899 = "test"; +export const exp2900 = "test"; +export const exp2901 = "test"; +export const exp2902 = "test"; +export const exp2903 = "test"; +export const exp2904 = "test"; +export const exp2905 = "test"; +export const exp2906 = "test"; +export const exp2907 = "test"; +export const exp2908 = "test"; +export const exp2909 = "test"; +export const exp2910 = "test"; +export const exp2911 = "test"; +export const exp2912 = "test"; +export const exp2913 = "test"; +export const exp2914 = "test"; +export const exp2915 = "test"; +export const exp2916 = "test"; +export const exp2917 = "test"; +export const exp2918 = "test"; +export const exp2919 = "test"; +export const exp2920 = "test"; +export const exp2921 = "test"; +export const exp2922 = "test"; +export const exp2923 = "test"; +export const exp2924 = "test"; +export const exp2925 = "test"; +export const exp2926 = "test"; +export const exp2927 = "test"; +export const exp2928 = "test"; +export const exp2929 = "test"; +export const exp2930 = "test"; +export const exp2931 = "test"; +export const exp2932 = "test"; +export const exp2933 = "test"; +export const exp2934 = "test"; +export const exp2935 = "test"; +export const exp2936 = "test"; +export const exp2937 = "test"; +export const exp2938 = "test"; +export const exp2939 = "test"; +export const exp2940 = "test"; +export const exp2941 = "test"; +export const exp2942 = "test"; +export const exp2943 = "test"; +export const exp2944 = "test"; +export const exp2945 = "test"; +export const exp2946 = "test"; +export const exp2947 = "test"; +export const exp2948 = "test"; +export const exp2949 = "test"; +export const exp2950 = "test"; +export const exp2951 = "test"; +export const exp2952 = "test"; +export const exp2953 = "test"; +export const exp2954 = "test"; +export const exp2955 = "test"; +export const exp2956 = "test"; +export const exp2957 = "test"; +export const exp2958 = "test"; +export const exp2959 = "test"; +export const exp2960 = "test"; +export const exp2961 = "test"; +export const exp2962 = "test"; +export const exp2963 = "test"; +export const exp2964 = "test"; +export const exp2965 = "test"; +export const exp2966 = "test"; +export const exp2967 = "test"; +export const exp2968 = "test"; +export const exp2969 = "test"; +export const exp2970 = "test"; +export const exp2971 = "test"; +export const exp2972 = "test"; +export const exp2973 = "test"; +export const exp2974 = "test"; +export const exp2975 = "test"; +export const exp2976 = "test"; +export const exp2977 = "test"; +export const exp2978 = "test"; +export const exp2979 = "test"; +export const exp2980 = "test"; +export const exp2981 = "test"; +export const exp2982 = "test"; +export const exp2983 = "test"; +export const exp2984 = "test"; +export const exp2985 = "test"; +export const exp2986 = "test"; +export const exp2987 = "test"; +export const exp2988 = "test"; +export const exp2989 = "test"; +export const exp2990 = "test"; +export const exp2991 = "test"; +export const exp2992 = "test"; +export const exp2993 = "test"; +export const exp2994 = "test"; +export const exp2995 = "test"; +export const exp2996 = "test"; +export const exp2997 = "test"; +export const exp2998 = "test"; +export const exp2999 = "test"; +export const exp3000 = "test"; +export const exp3001 = "test"; +export const exp3002 = "test"; +export const exp3003 = "test"; +export const exp3004 = "test"; +export const exp3005 = "test"; +export const exp3006 = "test"; +export const exp3007 = "test"; +export const exp3008 = "test"; +export const exp3009 = "test"; +export const exp3010 = "test"; +export const exp3011 = "test"; +export const exp3012 = "test"; +export const exp3013 = "test"; +export const exp3014 = "test"; +export const exp3015 = "test"; +export const exp3016 = "test"; +export const exp3017 = "test"; +export const exp3018 = "test"; +export const exp3019 = "test"; +export const exp3020 = "test"; +export const exp3021 = "test"; +export const exp3022 = "test"; +export const exp3023 = "test"; +export const exp3024 = "test"; +export const exp3025 = "test"; +export const exp3026 = "test"; +export const exp3027 = "test"; +export const exp3028 = "test"; +export const exp3029 = "test"; +export const exp3030 = "test"; +export const exp3031 = "test"; +export const exp3032 = "test"; +export const exp3033 = "test"; +export const exp3034 = "test"; +export const exp3035 = "test"; +export const exp3036 = "test"; +export const exp3037 = "test"; +export const exp3038 = "test"; +export const exp3039 = "test"; +export const exp3040 = "test"; +export const exp3041 = "test"; +export const exp3042 = "test"; +export const exp3043 = "test"; +export const exp3044 = "test"; +export const exp3045 = "test"; +export const exp3046 = "test"; +export const exp3047 = "test"; +export const exp3048 = "test"; +export const exp3049 = "test"; +export const exp3050 = "test"; +export const exp3051 = "test"; +export const exp3052 = "test"; +export const exp3053 = "test"; +export const exp3054 = "test"; +export const exp3055 = "test"; +export const exp3056 = "test"; +export const exp3057 = "test"; +export const exp3058 = "test"; +export const exp3059 = "test"; +export const exp3060 = "test"; +export const exp3061 = "test"; +export const exp3062 = "test"; +export const exp3063 = "test"; +export const exp3064 = "test"; +export const exp3065 = "test"; +export const exp3066 = "test"; +export const exp3067 = "test"; +export const exp3068 = "test"; +export const exp3069 = "test"; +export const exp3070 = "test"; +export const exp3071 = "test"; +export const exp3072 = "test"; +export const exp3073 = "test"; +export const exp3074 = "test"; +export const exp3075 = "test"; +export const exp3076 = "test"; +export const exp3077 = "test"; +export const exp3078 = "test"; +export const exp3079 = "test"; +export const exp3080 = "test"; +export const exp3081 = "test"; +export const exp3082 = "test"; +export const exp3083 = "test"; +export const exp3084 = "test"; +export const exp3085 = "test"; +export const exp3086 = "test"; +export const exp3087 = "test"; +export const exp3088 = "test"; +export const exp3089 = "test"; +export const exp3090 = "test"; +export const exp3091 = "test"; +export const exp3092 = "test"; +export const exp3093 = "test"; +export const exp3094 = "test"; +export const exp3095 = "test"; +export const exp3096 = "test"; +export const exp3097 = "test"; +export const exp3098 = "test"; +export const exp3099 = "test"; +export const exp3100 = "test"; +export const exp3101 = "test"; +export const exp3102 = "test"; +export const exp3103 = "test"; +export const exp3104 = "test"; +export const exp3105 = "test"; +export const exp3106 = "test"; +export const exp3107 = "test"; +export const exp3108 = "test"; +export const exp3109 = "test"; +export const exp3110 = "test"; +export const exp3111 = "test"; +export const exp3112 = "test"; +export const exp3113 = "test"; +export const exp3114 = "test"; +export const exp3115 = "test"; +export const exp3116 = "test"; +export const exp3117 = "test"; +export const exp3118 = "test"; +export const exp3119 = "test"; +export const exp3120 = "test"; +export const exp3121 = "test"; +export const exp3122 = "test"; +export const exp3123 = "test"; +export const exp3124 = "test"; +export const exp3125 = "test"; +export const exp3126 = "test"; +export const exp3127 = "test"; +export const exp3128 = "test"; +export const exp3129 = "test"; +export const exp3130 = "test"; +export const exp3131 = "test"; +export const exp3132 = "test"; +export const exp3133 = "test"; +export const exp3134 = "test"; +export const exp3135 = "test"; +export const exp3136 = "test"; +export const exp3137 = "test"; +export const exp3138 = "test"; +export const exp3139 = "test"; +export const exp3140 = "test"; +export const exp3141 = "test"; +export const exp3142 = "test"; +export const exp3143 = "test"; +export const exp3144 = "test"; +export const exp3145 = "test"; +export const exp3146 = "test"; +export const exp3147 = "test"; +export const exp3148 = "test"; +export const exp3149 = "test"; +export const exp3150 = "test"; +export const exp3151 = "test"; +export const exp3152 = "test"; +export const exp3153 = "test"; +export const exp3154 = "test"; +export const exp3155 = "test"; +export const exp3156 = "test"; +export const exp3157 = "test"; +export const exp3158 = "test"; +export const exp3159 = "test"; +export const exp3160 = "test"; +export const exp3161 = "test"; +export const exp3162 = "test"; +export const exp3163 = "test"; +export const exp3164 = "test"; +export const exp3165 = "test"; +export const exp3166 = "test"; +export const exp3167 = "test"; +export const exp3168 = "test"; +export const exp3169 = "test"; +export const exp3170 = "test"; +export const exp3171 = "test"; +export const exp3172 = "test"; +export const exp3173 = "test"; +export const exp3174 = "test"; +export const exp3175 = "test"; +export const exp3176 = "test"; +export const exp3177 = "test"; +export const exp3178 = "test"; +export const exp3179 = "test"; +export const exp3180 = "test"; +export const exp3181 = "test"; +export const exp3182 = "test"; +export const exp3183 = "test"; +export const exp3184 = "test"; +export const exp3185 = "test"; +export const exp3186 = "test"; +export const exp3187 = "test"; +export const exp3188 = "test"; +export const exp3189 = "test"; +export const exp3190 = "test"; +export const exp3191 = "test"; +export const exp3192 = "test"; +export const exp3193 = "test"; +export const exp3194 = "test"; +export const exp3195 = "test"; +export const exp3196 = "test"; +export const exp3197 = "test"; +export const exp3198 = "test"; +export const exp3199 = "test"; +export const exp3200 = "test"; +export const exp3201 = "test"; +export const exp3202 = "test"; +export const exp3203 = "test"; +export const exp3204 = "test"; +export const exp3205 = "test"; +export const exp3206 = "test"; +export const exp3207 = "test"; +export const exp3208 = "test"; +export const exp3209 = "test"; +export const exp3210 = "test"; +export const exp3211 = "test"; +export const exp3212 = "test"; +export const exp3213 = "test"; +export const exp3214 = "test"; +export const exp3215 = "test"; +export const exp3216 = "test"; +export const exp3217 = "test"; +export const exp3218 = "test"; +export const exp3219 = "test"; +export const exp3220 = "test"; +export const exp3221 = "test"; +export const exp3222 = "test"; +export const exp3223 = "test"; +export const exp3224 = "test"; +export const exp3225 = "test"; +export const exp3226 = "test"; +export const exp3227 = "test"; +export const exp3228 = "test"; +export const exp3229 = "test"; +export const exp3230 = "test"; +export const exp3231 = "test"; +export const exp3232 = "test"; +export const exp3233 = "test"; +export const exp3234 = "test"; +export const exp3235 = "test"; +export const exp3236 = "test"; +export const exp3237 = "test"; +export const exp3238 = "test"; +export const exp3239 = "test"; +export const exp3240 = "test"; +export const exp3241 = "test"; +export const exp3242 = "test"; +export const exp3243 = "test"; +export const exp3244 = "test"; +export const exp3245 = "test"; +export const exp3246 = "test"; +export const exp3247 = "test"; +export const exp3248 = "test"; +export const exp3249 = "test"; +export const exp3250 = "test"; +export const exp3251 = "test"; +export const exp3252 = "test"; +export const exp3253 = "test"; +export const exp3254 = "test"; +export const exp3255 = "test"; +export const exp3256 = "test"; +export const exp3257 = "test"; +export const exp3258 = "test"; +export const exp3259 = "test"; +export const exp3260 = "test"; +export const exp3261 = "test"; +export const exp3262 = "test"; +export const exp3263 = "test"; +export const exp3264 = "test"; +export const exp3265 = "test"; +export const exp3266 = "test"; +export const exp3267 = "test"; +export const exp3268 = "test"; +export const exp3269 = "test"; +export const exp3270 = "test"; +export const exp3271 = "test"; +export const exp3272 = "test"; +export const exp3273 = "test"; +export const exp3274 = "test"; +export const exp3275 = "test"; +export const exp3276 = "test"; +export const exp3277 = "test"; +export const exp3278 = "test"; +export const exp3279 = "test"; +export const exp3280 = "test"; +export const exp3281 = "test"; +export const exp3282 = "test"; +export const exp3283 = "test"; +export const exp3284 = "test"; +export const exp3285 = "test"; +export const exp3286 = "test"; +export const exp3287 = "test"; +export const exp3288 = "test"; +export const exp3289 = "test"; +export const exp3290 = "test"; +export const exp3291 = "test"; +export const exp3292 = "test"; +export const exp3293 = "test"; +export const exp3294 = "test"; +export const exp3295 = "test"; +export const exp3296 = "test"; +export const exp3297 = "test"; +export const exp3298 = "test"; +export const exp3299 = "test"; +export const exp3300 = "test"; +export const exp3301 = "test"; +export const exp3302 = "test"; +export const exp3303 = "test"; +export const exp3304 = "test"; +export const exp3305 = "test"; +export const exp3306 = "test"; +export const exp3307 = "test"; +export const exp3308 = "test"; +export const exp3309 = "test"; +export const exp3310 = "test"; +export const exp3311 = "test"; +export const exp3312 = "test"; +export const exp3313 = "test"; +export const exp3314 = "test"; +export const exp3315 = "test"; +export const exp3316 = "test"; +export const exp3317 = "test"; +export const exp3318 = "test"; +export const exp3319 = "test"; +export const exp3320 = "test"; +export const exp3321 = "test"; +export const exp3322 = "test"; +export const exp3323 = "test"; +export const exp3324 = "test"; +export const exp3325 = "test"; +export const exp3326 = "test"; +export const exp3327 = "test"; +export const exp3328 = "test"; +export const exp3329 = "test"; +export const exp3330 = "test"; +export const exp3331 = "test"; +export const exp3332 = "test"; +export const exp3333 = "test"; +export const exp3334 = "test"; +export const exp3335 = "test"; +export const exp3336 = "test"; +export const exp3337 = "test"; +export const exp3338 = "test"; +export const exp3339 = "test"; +export const exp3340 = "test"; +export const exp3341 = "test"; +export const exp3342 = "test"; +export const exp3343 = "test"; +export const exp3344 = "test"; +export const exp3345 = "test"; +export const exp3346 = "test"; +export const exp3347 = "test"; +export const exp3348 = "test"; +export const exp3349 = "test"; +export const exp3350 = "test"; +export const exp3351 = "test"; +export const exp3352 = "test"; +export const exp3353 = "test"; +export const exp3354 = "test"; +export const exp3355 = "test"; +export const exp3356 = "test"; +export const exp3357 = "test"; +export const exp3358 = "test"; +export const exp3359 = "test"; +export const exp3360 = "test"; +export const exp3361 = "test"; +export const exp3362 = "test"; +export const exp3363 = "test"; +export const exp3364 = "test"; +export const exp3365 = "test"; +export const exp3366 = "test"; +export const exp3367 = "test"; +export const exp3368 = "test"; +export const exp3369 = "test"; +export const exp3370 = "test"; +export const exp3371 = "test"; +export const exp3372 = "test"; +export const exp3373 = "test"; +export const exp3374 = "test"; +export const exp3375 = "test"; +export const exp3376 = "test"; +export const exp3377 = "test"; +export const exp3378 = "test"; +export const exp3379 = "test"; +export const exp3380 = "test"; +export const exp3381 = "test"; +export const exp3382 = "test"; +export const exp3383 = "test"; +export const exp3384 = "test"; +export const exp3385 = "test"; +export const exp3386 = "test"; +export const exp3387 = "test"; +export const exp3388 = "test"; +export const exp3389 = "test"; +export const exp3390 = "test"; +export const exp3391 = "test"; +export const exp3392 = "test"; +export const exp3393 = "test"; +export const exp3394 = "test"; +export const exp3395 = "test"; +export const exp3396 = "test"; +export const exp3397 = "test"; +export const exp3398 = "test"; +export const exp3399 = "test"; +export const exp3400 = "test"; +export const exp3401 = "test"; +export const exp3402 = "test"; +export const exp3403 = "test"; +export const exp3404 = "test"; +export const exp3405 = "test"; +export const exp3406 = "test"; +export const exp3407 = "test"; +export const exp3408 = "test"; +export const exp3409 = "test"; +export const exp3410 = "test"; +export const exp3411 = "test"; +export const exp3412 = "test"; +export const exp3413 = "test"; +export const exp3414 = "test"; +export const exp3415 = "test"; +export const exp3416 = "test"; +export const exp3417 = "test"; +export const exp3418 = "test"; +export const exp3419 = "test"; +export const exp3420 = "test"; +export const exp3421 = "test"; +export const exp3422 = "test"; +export const exp3423 = "test"; +export const exp3424 = "test"; +export const exp3425 = "test"; +export const exp3426 = "test"; +export const exp3427 = "test"; +export const exp3428 = "test"; +export const exp3429 = "test"; +export const exp3430 = "test"; +export const exp3431 = "test"; +export const exp3432 = "test"; +export const exp3433 = "test"; +export const exp3434 = "test"; +export const exp3435 = "test"; +export const exp3436 = "test"; +export const exp3437 = "test"; +export const exp3438 = "test"; +export const exp3439 = "test"; +export const exp3440 = "test"; +export const exp3441 = "test"; +export const exp3442 = "test"; +export const exp3443 = "test"; +export const exp3444 = "test"; +export const exp3445 = "test"; +export const exp3446 = "test"; +export const exp3447 = "test"; +export const exp3448 = "test"; +export const exp3449 = "test"; +export const exp3450 = "test"; +export const exp3451 = "test"; +export const exp3452 = "test"; +export const exp3453 = "test"; +export const exp3454 = "test"; +export const exp3455 = "test"; +export const exp3456 = "test"; +export const exp3457 = "test"; +export const exp3458 = "test"; +export const exp3459 = "test"; +export const exp3460 = "test"; +export const exp3461 = "test"; +export const exp3462 = "test"; +export const exp3463 = "test"; +export const exp3464 = "test"; +export const exp3465 = "test"; +export const exp3466 = "test"; +export const exp3467 = "test"; +export const exp3468 = "test"; +export const exp3469 = "test"; +export const exp3470 = "test"; +export const exp3471 = "test"; +export const exp3472 = "test"; +export const exp3473 = "test"; +export const exp3474 = "test"; +export const exp3475 = "test"; +export const exp3476 = "test"; +export const exp3477 = "test"; +export const exp3478 = "test"; +export const exp3479 = "test"; +export const exp3480 = "test"; +export const exp3481 = "test"; +export const exp3482 = "test"; +export const exp3483 = "test"; +export const exp3484 = "test"; +export const exp3485 = "test"; +export const exp3486 = "test"; +export const exp3487 = "test"; +export const exp3488 = "test"; +export const exp3489 = "test"; +export const exp3490 = "test"; +export const exp3491 = "test"; +export const exp3492 = "test"; +export const exp3493 = "test"; +export const exp3494 = "test"; +export const exp3495 = "test"; +export const exp3496 = "test"; +export const exp3497 = "test"; +export const exp3498 = "test"; +export const exp3499 = "test"; +export const exp3500 = "test"; +export const exp3501 = "test"; +export const exp3502 = "test"; +export const exp3503 = "test"; +export const exp3504 = "test"; +export const exp3505 = "test"; +export const exp3506 = "test"; +export const exp3507 = "test"; +export const exp3508 = "test"; +export const exp3509 = "test"; +export const exp3510 = "test"; +export const exp3511 = "test"; +export const exp3512 = "test"; +export const exp3513 = "test"; +export const exp3514 = "test"; +export const exp3515 = "test"; +export const exp3516 = "test"; +export const exp3517 = "test"; +export const exp3518 = "test"; +export const exp3519 = "test"; +export const exp3520 = "test"; +export const exp3521 = "test"; +export const exp3522 = "test"; +export const exp3523 = "test"; +export const exp3524 = "test"; +export const exp3525 = "test"; +export const exp3526 = "test"; +export const exp3527 = "test"; +export const exp3528 = "test"; +export const exp3529 = "test"; +export const exp3530 = "test"; +export const exp3531 = "test"; +export const exp3532 = "test"; +export const exp3533 = "test"; +export const exp3534 = "test"; +export const exp3535 = "test"; +export const exp3536 = "test"; +export const exp3537 = "test"; +export const exp3538 = "test"; +export const exp3539 = "test"; +export const exp3540 = "test"; +export const exp3541 = "test"; +export const exp3542 = "test"; +export const exp3543 = "test"; +export const exp3544 = "test"; +export const exp3545 = "test"; +export const exp3546 = "test"; +export const exp3547 = "test"; +export const exp3548 = "test"; +export const exp3549 = "test"; +export const exp3550 = "test"; +export const exp3551 = "test"; +export const exp3552 = "test"; +export const exp3553 = "test"; +export const exp3554 = "test"; +export const exp3555 = "test"; +export const exp3556 = "test"; +export const exp3557 = "test"; +export const exp3558 = "test"; +export const exp3559 = "test"; +export const exp3560 = "test"; +export const exp3561 = "test"; +export const exp3562 = "test"; +export const exp3563 = "test"; +export const exp3564 = "test"; +export const exp3565 = "test"; +export const exp3566 = "test"; +export const exp3567 = "test"; +export const exp3568 = "test"; +export const exp3569 = "test"; +export const exp3570 = "test"; +export const exp3571 = "test"; +export const exp3572 = "test"; +export const exp3573 = "test"; +export const exp3574 = "test"; +export const exp3575 = "test"; +export const exp3576 = "test"; +export const exp3577 = "test"; +export const exp3578 = "test"; +export const exp3579 = "test"; +export const exp3580 = "test"; +export const exp3581 = "test"; +export const exp3582 = "test"; +export const exp3583 = "test"; +export const exp3584 = "test"; +export const exp3585 = "test"; +export const exp3586 = "test"; +export const exp3587 = "test"; +export const exp3588 = "test"; +export const exp3589 = "test"; +export const exp3590 = "test"; +export const exp3591 = "test"; +export const exp3592 = "test"; +export const exp3593 = "test"; +export const exp3594 = "test"; +export const exp3595 = "test"; +export const exp3596 = "test"; +export const exp3597 = "test"; +export const exp3598 = "test"; +export const exp3599 = "test"; +export const exp3600 = "test"; +export const exp3601 = "test"; +export const exp3602 = "test"; +export const exp3603 = "test"; +export const exp3604 = "test"; +export const exp3605 = "test"; +export const exp3606 = "test"; +export const exp3607 = "test"; +export const exp3608 = "test"; +export const exp3609 = "test"; +export const exp3610 = "test"; +export const exp3611 = "test"; +export const exp3612 = "test"; +export const exp3613 = "test"; +export const exp3614 = "test"; +export const exp3615 = "test"; +export const exp3616 = "test"; +export const exp3617 = "test"; +export const exp3618 = "test"; +export const exp3619 = "test"; +export const exp3620 = "test"; +export const exp3621 = "test"; +export const exp3622 = "test"; +export const exp3623 = "test"; +export const exp3624 = "test"; +export const exp3625 = "test"; +export const exp3626 = "test"; +export const exp3627 = "test"; +export const exp3628 = "test"; +export const exp3629 = "test"; +export const exp3630 = "test"; +export const exp3631 = "test"; +export const exp3632 = "test"; +export const exp3633 = "test"; +export const exp3634 = "test"; +export const exp3635 = "test"; +export const exp3636 = "test"; +export const exp3637 = "test"; +export const exp3638 = "test"; +export const exp3639 = "test"; +export const exp3640 = "test"; +export const exp3641 = "test"; +export const exp3642 = "test"; +export const exp3643 = "test"; +export const exp3644 = "test"; +export const exp3645 = "test"; +export const exp3646 = "test"; +export const exp3647 = "test"; +export const exp3648 = "test"; +export const exp3649 = "test"; +export const exp3650 = "test"; +export const exp3651 = "test"; +export const exp3652 = "test"; +export const exp3653 = "test"; +export const exp3654 = "test"; +export const exp3655 = "test"; +export const exp3656 = "test"; +export const exp3657 = "test"; +export const exp3658 = "test"; +export const exp3659 = "test"; +export const exp3660 = "test"; +export const exp3661 = "test"; +export const exp3662 = "test"; +export const exp3663 = "test"; +export const exp3664 = "test"; +export const exp3665 = "test"; +export const exp3666 = "test"; +export const exp3667 = "test"; +export const exp3668 = "test"; +export const exp3669 = "test"; +export const exp3670 = "test"; +export const exp3671 = "test"; +export const exp3672 = "test"; +export const exp3673 = "test"; +export const exp3674 = "test"; +export const exp3675 = "test"; +export const exp3676 = "test"; +export const exp3677 = "test"; +export const exp3678 = "test"; +export const exp3679 = "test"; +export const exp3680 = "test"; +export const exp3681 = "test"; +export const exp3682 = "test"; +export const exp3683 = "test"; +export const exp3684 = "test"; +export const exp3685 = "test"; +export const exp3686 = "test"; +export const exp3687 = "test"; +export const exp3688 = "test"; +export const exp3689 = "test"; +export const exp3690 = "test"; +export const exp3691 = "test"; +export const exp3692 = "test"; +export const exp3693 = "test"; +export const exp3694 = "test"; +export const exp3695 = "test"; +export const exp3696 = "test"; +export const exp3697 = "test"; +export const exp3698 = "test"; +export const exp3699 = "test"; +export const exp3700 = "test"; +export const exp3701 = "test"; +export const exp3702 = "test"; +export const exp3703 = "test"; +export const exp3704 = "test"; +export const exp3705 = "test"; +export const exp3706 = "test"; +export const exp3707 = "test"; +export const exp3708 = "test"; +export const exp3709 = "test"; +export const exp3710 = "test"; +export const exp3711 = "test"; +export const exp3712 = "test"; +export const exp3713 = "test"; +export const exp3714 = "test"; +export const exp3715 = "test"; +export const exp3716 = "test"; +export const exp3717 = "test"; +export const exp3718 = "test"; +export const exp3719 = "test"; +export const exp3720 = "test"; +export const exp3721 = "test"; +export const exp3722 = "test"; +export const exp3723 = "test"; +export const exp3724 = "test"; +export const exp3725 = "test"; +export const exp3726 = "test"; +export const exp3727 = "test"; +export const exp3728 = "test"; +export const exp3729 = "test"; +export const exp3730 = "test"; +export const exp3731 = "test"; +export const exp3732 = "test"; +export const exp3733 = "test"; +export const exp3734 = "test"; +export const exp3735 = "test"; +export const exp3736 = "test"; +export const exp3737 = "test"; +export const exp3738 = "test"; +export const exp3739 = "test"; +export const exp3740 = "test"; +export const exp3741 = "test"; +export const exp3742 = "test"; +export const exp3743 = "test"; +export const exp3744 = "test"; +export const exp3745 = "test"; +export const exp3746 = "test"; +export const exp3747 = "test"; +export const exp3748 = "test"; +export const exp3749 = "test"; +export const exp3750 = "test"; +export const exp3751 = "test"; +export const exp3752 = "test"; +export const exp3753 = "test"; +export const exp3754 = "test"; +export const exp3755 = "test"; +export const exp3756 = "test"; +export const exp3757 = "test"; +export const exp3758 = "test"; +export const exp3759 = "test"; +export const exp3760 = "test"; +export const exp3761 = "test"; +export const exp3762 = "test"; +export const exp3763 = "test"; +export const exp3764 = "test"; +export const exp3765 = "test"; +export const exp3766 = "test"; +export const exp3767 = "test"; +export const exp3768 = "test"; +export const exp3769 = "test"; +export const exp3770 = "test"; +export const exp3771 = "test"; +export const exp3772 = "test"; +export const exp3773 = "test"; +export const exp3774 = "test"; +export const exp3775 = "test"; +export const exp3776 = "test"; +export const exp3777 = "test"; +export const exp3778 = "test"; +export const exp3779 = "test"; +export const exp3780 = "test"; +export const exp3781 = "test"; +export const exp3782 = "test"; +export const exp3783 = "test"; +export const exp3784 = "test"; +export const exp3785 = "test"; +export const exp3786 = "test"; +export const exp3787 = "test"; +export const exp3788 = "test"; +export const exp3789 = "test"; +export const exp3790 = "test"; +export const exp3791 = "test"; +export const exp3792 = "test"; +export const exp3793 = "test"; +export const exp3794 = "test"; +export const exp3795 = "test"; +export const exp3796 = "test"; +export const exp3797 = "test"; +export const exp3798 = "test"; +export const exp3799 = "test"; +export const exp3800 = "test"; +export const exp3801 = "test"; +export const exp3802 = "test"; +export const exp3803 = "test"; +export const exp3804 = "test"; +export const exp3805 = "test"; +export const exp3806 = "test"; +export const exp3807 = "test"; +export const exp3808 = "test"; +export const exp3809 = "test"; +export const exp3810 = "test"; +export const exp3811 = "test"; +export const exp3812 = "test"; +export const exp3813 = "test"; +export const exp3814 = "test"; +export const exp3815 = "test"; +export const exp3816 = "test"; +export const exp3817 = "test"; +export const exp3818 = "test"; +export const exp3819 = "test"; +export const exp3820 = "test"; +export const exp3821 = "test"; +export const exp3822 = "test"; +export const exp3823 = "test"; +export const exp3824 = "test"; +export const exp3825 = "test"; +export const exp3826 = "test"; +export const exp3827 = "test"; +export const exp3828 = "test"; +export const exp3829 = "test"; +export const exp3830 = "test"; +export const exp3831 = "test"; +export const exp3832 = "test"; +export const exp3833 = "test"; +export const exp3834 = "test"; +export const exp3835 = "test"; +export const exp3836 = "test"; +export const exp3837 = "test"; +export const exp3838 = "test"; +export const exp3839 = "test"; +export const exp3840 = "test"; +export const exp3841 = "test"; +export const exp3842 = "test"; +export const exp3843 = "test"; +export const exp3844 = "test"; +export const exp3845 = "test"; +export const exp3846 = "test"; +export const exp3847 = "test"; +export const exp3848 = "test"; +export const exp3849 = "test"; +export const exp3850 = "test"; +export const exp3851 = "test"; +export const exp3852 = "test"; +export const exp3853 = "test"; +export const exp3854 = "test"; +export const exp3855 = "test"; +export const exp3856 = "test"; +export const exp3857 = "test"; +export const exp3858 = "test"; +export const exp3859 = "test"; +export const exp3860 = "test"; +export const exp3861 = "test"; +export const exp3862 = "test"; +export const exp3863 = "test"; +export const exp3864 = "test"; +export const exp3865 = "test"; +export const exp3866 = "test"; +export const exp3867 = "test"; +export const exp3868 = "test"; +export const exp3869 = "test"; +export const exp3870 = "test"; +export const exp3871 = "test"; +export const exp3872 = "test"; +export const exp3873 = "test"; +export const exp3874 = "test"; +export const exp3875 = "test"; +export const exp3876 = "test"; +export const exp3877 = "test"; +export const exp3878 = "test"; +export const exp3879 = "test"; +export const exp3880 = "test"; +export const exp3881 = "test"; +export const exp3882 = "test"; +export const exp3883 = "test"; +export const exp3884 = "test"; +export const exp3885 = "test"; +export const exp3886 = "test"; +export const exp3887 = "test"; +export const exp3888 = "test"; +export const exp3889 = "test"; +export const exp3890 = "test"; +export const exp3891 = "test"; +export const exp3892 = "test"; +export const exp3893 = "test"; +export const exp3894 = "test"; +export const exp3895 = "test"; +export const exp3896 = "test"; +export const exp3897 = "test"; +export const exp3898 = "test"; +export const exp3899 = "test"; +export const exp3900 = "test"; +export const exp3901 = "test"; +export const exp3902 = "test"; +export const exp3903 = "test"; +export const exp3904 = "test"; +export const exp3905 = "test"; +export const exp3906 = "test"; +export const exp3907 = "test"; +export const exp3908 = "test"; +export const exp3909 = "test"; +export const exp3910 = "test"; +export const exp3911 = "test"; +export const exp3912 = "test"; +export const exp3913 = "test"; +export const exp3914 = "test"; +export const exp3915 = "test"; +export const exp3916 = "test"; +export const exp3917 = "test"; +export const exp3918 = "test"; +export const exp3919 = "test"; +export const exp3920 = "test"; +export const exp3921 = "test"; +export const exp3922 = "test"; +export const exp3923 = "test"; +export const exp3924 = "test"; +export const exp3925 = "test"; +export const exp3926 = "test"; +export const exp3927 = "test"; +export const exp3928 = "test"; +export const exp3929 = "test"; +export const exp3930 = "test"; +export const exp3931 = "test"; +export const exp3932 = "test"; +export const exp3933 = "test"; +export const exp3934 = "test"; +export const exp3935 = "test"; +export const exp3936 = "test"; +export const exp3937 = "test"; +export const exp3938 = "test"; +export const exp3939 = "test"; +export const exp3940 = "test"; +export const exp3941 = "test"; +export const exp3942 = "test"; +export const exp3943 = "test"; +export const exp3944 = "test"; +export const exp3945 = "test"; +export const exp3946 = "test"; +export const exp3947 = "test"; +export const exp3948 = "test"; +export const exp3949 = "test"; +export const exp3950 = "test"; +export const exp3951 = "test"; +export const exp3952 = "test"; +export const exp3953 = "test"; +export const exp3954 = "test"; +export const exp3955 = "test"; +export const exp3956 = "test"; +export const exp3957 = "test"; +export const exp3958 = "test"; +export const exp3959 = "test"; +export const exp3960 = "test"; +export const exp3961 = "test"; +export const exp3962 = "test"; +export const exp3963 = "test"; +export const exp3964 = "test"; +export const exp3965 = "test"; +export const exp3966 = "test"; +export const exp3967 = "test"; +export const exp3968 = "test"; +export const exp3969 = "test"; +export const exp3970 = "test"; +export const exp3971 = "test"; +export const exp3972 = "test"; +export const exp3973 = "test"; +export const exp3974 = "test"; +export const exp3975 = "test"; +export const exp3976 = "test"; +export const exp3977 = "test"; +export const exp3978 = "test"; +export const exp3979 = "test"; +export const exp3980 = "test"; +export const exp3981 = "test"; +export const exp3982 = "test"; +export const exp3983 = "test"; +export const exp3984 = "test"; +export const exp3985 = "test"; +export const exp3986 = "test"; +export const exp3987 = "test"; +export const exp3988 = "test"; +export const exp3989 = "test"; +export const exp3990 = "test"; +export const exp3991 = "test"; +export const exp3992 = "test"; +export const exp3993 = "test"; +export const exp3994 = "test"; +export const exp3995 = "test"; +export const exp3996 = "test"; +export const exp3997 = "test"; +export const exp3998 = "test"; +export const exp3999 = "test"; +export const exp4000 = "test"; +export const exp4001 = "test"; +export const exp4002 = "test"; +export const exp4003 = "test"; +export const exp4004 = "test"; +export const exp4005 = "test"; +export const exp4006 = "test"; +export const exp4007 = "test"; +export const exp4008 = "test"; +export const exp4009 = "test"; +export const exp4010 = "test"; +export const exp4011 = "test"; +export const exp4012 = "test"; +export const exp4013 = "test"; +export const exp4014 = "test"; +export const exp4015 = "test"; +export const exp4016 = "test"; +export const exp4017 = "test"; +export const exp4018 = "test"; +export const exp4019 = "test"; +export const exp4020 = "test"; +export const exp4021 = "test"; +export const exp4022 = "test"; +export const exp4023 = "test"; +export const exp4024 = "test"; +export const exp4025 = "test"; +export const exp4026 = "test"; +export const exp4027 = "test"; +export const exp4028 = "test"; +export const exp4029 = "test"; +export const exp4030 = "test"; +export const exp4031 = "test"; +export const exp4032 = "test"; +export const exp4033 = "test"; +export const exp4034 = "test"; +export const exp4035 = "test"; +export const exp4036 = "test"; +export const exp4037 = "test"; +export const exp4038 = "test"; +export const exp4039 = "test"; +export const exp4040 = "test"; +export const exp4041 = "test"; +export const exp4042 = "test"; +export const exp4043 = "test"; +export const exp4044 = "test"; +export const exp4045 = "test"; +export const exp4046 = "test"; +export const exp4047 = "test"; +export const exp4048 = "test"; +export const exp4049 = "test"; +export const exp4050 = "test"; +export const exp4051 = "test"; +export const exp4052 = "test"; +export const exp4053 = "test"; +export const exp4054 = "test"; +export const exp4055 = "test"; +export const exp4056 = "test"; +export const exp4057 = "test"; +export const exp4058 = "test"; +export const exp4059 = "test"; +export const exp4060 = "test"; +export const exp4061 = "test"; +export const exp4062 = "test"; +export const exp4063 = "test"; +export const exp4064 = "test"; +export const exp4065 = "test"; +export const exp4066 = "test"; +export const exp4067 = "test"; +export const exp4068 = "test"; +export const exp4069 = "test"; +export const exp4070 = "test"; +export const exp4071 = "test"; +export const exp4072 = "test"; +export const exp4073 = "test"; +export const exp4074 = "test"; +export const exp4075 = "test"; +export const exp4076 = "test"; +export const exp4077 = "test"; +export const exp4078 = "test"; +export const exp4079 = "test"; +export const exp4080 = "test"; +export const exp4081 = "test"; +export const exp4082 = "test"; +export const exp4083 = "test"; +export const exp4084 = "test"; +export const exp4085 = "test"; +export const exp4086 = "test"; +export const exp4087 = "test"; +export const exp4088 = "test"; +export const exp4089 = "test"; +export const exp4090 = "test"; +export const exp4091 = "test"; +export const exp4092 = "test"; +export const exp4093 = "test"; +export const exp4094 = "test"; +export const exp4095 = "test"; +export const exp4096 = "test"; +export const exp4097 = "test"; +export const exp4098 = "test"; +export const exp4099 = "test"; +export const exp4100 = "test"; +export const exp4101 = "test"; +export const exp4102 = "test"; +export const exp4103 = "test"; +export const exp4104 = "test"; +export const exp4105 = "test"; +export const exp4106 = "test"; +export const exp4107 = "test"; +export const exp4108 = "test"; +export const exp4109 = "test"; +export const exp4110 = "test"; +export const exp4111 = "test"; +export const exp4112 = "test"; +export const exp4113 = "test"; +export const exp4114 = "test"; +export const exp4115 = "test"; +export const exp4116 = "test"; +export const exp4117 = "test"; +export const exp4118 = "test"; +export const exp4119 = "test"; +export const exp4120 = "test"; +export const exp4121 = "test"; +export const exp4122 = "test"; +export const exp4123 = "test"; +export const exp4124 = "test"; +export const exp4125 = "test"; +export const exp4126 = "test"; +export const exp4127 = "test"; +export const exp4128 = "test"; +export const exp4129 = "test"; +export const exp4130 = "test"; +export const exp4131 = "test"; +export const exp4132 = "test"; +export const exp4133 = "test"; +export const exp4134 = "test"; +export const exp4135 = "test"; +export const exp4136 = "test"; +export const exp4137 = "test"; +export const exp4138 = "test"; +export const exp4139 = "test"; +export const exp4140 = "test"; +export const exp4141 = "test"; +export const exp4142 = "test"; +export const exp4143 = "test"; +export const exp4144 = "test"; +export const exp4145 = "test"; +export const exp4146 = "test"; +export const exp4147 = "test"; +export const exp4148 = "test"; +export const exp4149 = "test"; +export const exp4150 = "test"; +export const exp4151 = "test"; +export const exp4152 = "test"; +export const exp4153 = "test"; +export const exp4154 = "test"; +export const exp4155 = "test"; +export const exp4156 = "test"; +export const exp4157 = "test"; +export const exp4158 = "test"; +export const exp4159 = "test"; +export const exp4160 = "test"; +export const exp4161 = "test"; +export const exp4162 = "test"; +export const exp4163 = "test"; +export const exp4164 = "test"; +export const exp4165 = "test"; +export const exp4166 = "test"; +export const exp4167 = "test"; +export const exp4168 = "test"; +export const exp4169 = "test"; +export const exp4170 = "test"; +export const exp4171 = "test"; +export const exp4172 = "test"; +export const exp4173 = "test"; +export const exp4174 = "test"; +export const exp4175 = "test"; +export const exp4176 = "test"; +export const exp4177 = "test"; +export const exp4178 = "test"; +export const exp4179 = "test"; +export const exp4180 = "test"; +export const exp4181 = "test"; +export const exp4182 = "test"; +export const exp4183 = "test"; +export const exp4184 = "test"; +export const exp4185 = "test"; +export const exp4186 = "test"; +export const exp4187 = "test"; +export const exp4188 = "test"; +export const exp4189 = "test"; +export const exp4190 = "test"; +export const exp4191 = "test"; +export const exp4192 = "test"; +export const exp4193 = "test"; +export const exp4194 = "test"; +export const exp4195 = "test"; +export const exp4196 = "test"; +export const exp4197 = "test"; +export const exp4198 = "test"; +export const exp4199 = "test"; +export const exp4200 = "test"; +export const exp4201 = "test"; +export const exp4202 = "test"; +export const exp4203 = "test"; +export const exp4204 = "test"; +export const exp4205 = "test"; +export const exp4206 = "test"; +export const exp4207 = "test"; +export const exp4208 = "test"; +export const exp4209 = "test"; +export const exp4210 = "test"; +export const exp4211 = "test"; +export const exp4212 = "test"; +export const exp4213 = "test"; +export const exp4214 = "test"; +export const exp4215 = "test"; +export const exp4216 = "test"; +export const exp4217 = "test"; +export const exp4218 = "test"; +export const exp4219 = "test"; +export const exp4220 = "test"; +export const exp4221 = "test"; +export const exp4222 = "test"; +export const exp4223 = "test"; +export const exp4224 = "test"; +export const exp4225 = "test"; +export const exp4226 = "test"; +export const exp4227 = "test"; +export const exp4228 = "test"; +export const exp4229 = "test"; +export const exp4230 = "test"; +export const exp4231 = "test"; +export const exp4232 = "test"; +export const exp4233 = "test"; +export const exp4234 = "test"; +export const exp4235 = "test"; +export const exp4236 = "test"; +export const exp4237 = "test"; +export const exp4238 = "test"; +export const exp4239 = "test"; +export const exp4240 = "test"; +export const exp4241 = "test"; +export const exp4242 = "test"; +export const exp4243 = "test"; +export const exp4244 = "test"; +export const exp4245 = "test"; +export const exp4246 = "test"; +export const exp4247 = "test"; +export const exp4248 = "test"; +export const exp4249 = "test"; +export const exp4250 = "test"; +export const exp4251 = "test"; +export const exp4252 = "test"; +export const exp4253 = "test"; +export const exp4254 = "test"; +export const exp4255 = "test"; +export const exp4256 = "test"; +export const exp4257 = "test"; +export const exp4258 = "test"; +export const exp4259 = "test"; +export const exp4260 = "test"; +export const exp4261 = "test"; +export const exp4262 = "test"; +export const exp4263 = "test"; +export const exp4264 = "test"; +export const exp4265 = "test"; +export const exp4266 = "test"; +export const exp4267 = "test"; +export const exp4268 = "test"; +export const exp4269 = "test"; +export const exp4270 = "test"; +export const exp4271 = "test"; +export const exp4272 = "test"; +export const exp4273 = "test"; +export const exp4274 = "test"; +export const exp4275 = "test"; +export const exp4276 = "test"; +export const exp4277 = "test"; +export const exp4278 = "test"; +export const exp4279 = "test"; +export const exp4280 = "test"; +export const exp4281 = "test"; +export const exp4282 = "test"; +export const exp4283 = "test"; +export const exp4284 = "test"; +export const exp4285 = "test"; +export const exp4286 = "test"; +export const exp4287 = "test"; +export const exp4288 = "test"; +export const exp4289 = "test"; +export const exp4290 = "test"; +export const exp4291 = "test"; +export const exp4292 = "test"; +export const exp4293 = "test"; +export const exp4294 = "test"; +export const exp4295 = "test"; +export const exp4296 = "test"; +export const exp4297 = "test"; +export const exp4298 = "test"; +export const exp4299 = "test"; +export const exp4300 = "test"; +export const exp4301 = "test"; +export const exp4302 = "test"; +export const exp4303 = "test"; +export const exp4304 = "test"; +export const exp4305 = "test"; +export const exp4306 = "test"; +export const exp4307 = "test"; +export const exp4308 = "test"; +export const exp4309 = "test"; +export const exp4310 = "test"; +export const exp4311 = "test"; +export const exp4312 = "test"; +export const exp4313 = "test"; +export const exp4314 = "test"; +export const exp4315 = "test"; +export const exp4316 = "test"; +export const exp4317 = "test"; +export const exp4318 = "test"; +export const exp4319 = "test"; +export const exp4320 = "test"; +export const exp4321 = "test"; +export const exp4322 = "test"; +export const exp4323 = "test"; +export const exp4324 = "test"; +export const exp4325 = "test"; +export const exp4326 = "test"; +export const exp4327 = "test"; +export const exp4328 = "test"; +export const exp4329 = "test"; +export const exp4330 = "test"; +export const exp4331 = "test"; +export const exp4332 = "test"; +export const exp4333 = "test"; +export const exp4334 = "test"; +export const exp4335 = "test"; +export const exp4336 = "test"; +export const exp4337 = "test"; +export const exp4338 = "test"; +export const exp4339 = "test"; +export const exp4340 = "test"; +export const exp4341 = "test"; +export const exp4342 = "test"; +export const exp4343 = "test"; +export const exp4344 = "test"; +export const exp4345 = "test"; +export const exp4346 = "test"; +export const exp4347 = "test"; +export const exp4348 = "test"; +export const exp4349 = "test"; +export const exp4350 = "test"; +export const exp4351 = "test"; +export const exp4352 = "test"; +export const exp4353 = "test"; +export const exp4354 = "test"; +export const exp4355 = "test"; +export const exp4356 = "test"; +export const exp4357 = "test"; +export const exp4358 = "test"; +export const exp4359 = "test"; +export const exp4360 = "test"; +export const exp4361 = "test"; +export const exp4362 = "test"; +export const exp4363 = "test"; +export const exp4364 = "test"; +export const exp4365 = "test"; +export const exp4366 = "test"; +export const exp4367 = "test"; +export const exp4368 = "test"; +export const exp4369 = "test"; +export const exp4370 = "test"; +export const exp4371 = "test"; +export const exp4372 = "test"; +export const exp4373 = "test"; +export const exp4374 = "test"; +export const exp4375 = "test"; +export const exp4376 = "test"; +export const exp4377 = "test"; +export const exp4378 = "test"; +export const exp4379 = "test"; +export const exp4380 = "test"; +export const exp4381 = "test"; +export const exp4382 = "test"; +export const exp4383 = "test"; +export const exp4384 = "test"; +export const exp4385 = "test"; +export const exp4386 = "test"; +export const exp4387 = "test"; +export const exp4388 = "test"; +export const exp4389 = "test"; +export const exp4390 = "test"; +export const exp4391 = "test"; +export const exp4392 = "test"; +export const exp4393 = "test"; +export const exp4394 = "test"; +export const exp4395 = "test"; +export const exp4396 = "test"; +export const exp4397 = "test"; +export const exp4398 = "test"; +export const exp4399 = "test"; +export const exp4400 = "test"; +export const exp4401 = "test"; +export const exp4402 = "test"; +export const exp4403 = "test"; +export const exp4404 = "test"; +export const exp4405 = "test"; +export const exp4406 = "test"; +export const exp4407 = "test"; +export const exp4408 = "test"; +export const exp4409 = "test"; +export const exp4410 = "test"; +export const exp4411 = "test"; +export const exp4412 = "test"; +export const exp4413 = "test"; +export const exp4414 = "test"; +export const exp4415 = "test"; +export const exp4416 = "test"; +export const exp4417 = "test"; +export const exp4418 = "test"; +export const exp4419 = "test"; +export const exp4420 = "test"; +export const exp4421 = "test"; +export const exp4422 = "test"; +export const exp4423 = "test"; +export const exp4424 = "test"; +export const exp4425 = "test"; +export const exp4426 = "test"; +export const exp4427 = "test"; +export const exp4428 = "test"; +export const exp4429 = "test"; +export const exp4430 = "test"; +export const exp4431 = "test"; +export const exp4432 = "test"; +export const exp4433 = "test"; +export const exp4434 = "test"; +export const exp4435 = "test"; +export const exp4436 = "test"; +export const exp4437 = "test"; +export const exp4438 = "test"; +export const exp4439 = "test"; +export const exp4440 = "test"; +export const exp4441 = "test"; +export const exp4442 = "test"; +export const exp4443 = "test"; +export const exp4444 = "test"; +export const exp4445 = "test"; +export const exp4446 = "test"; +export const exp4447 = "test"; +export const exp4448 = "test"; +export const exp4449 = "test"; +export const exp4450 = "test"; +export const exp4451 = "test"; +export const exp4452 = "test"; +export const exp4453 = "test"; +export const exp4454 = "test"; +export const exp4455 = "test"; +export const exp4456 = "test"; +export const exp4457 = "test"; +export const exp4458 = "test"; +export const exp4459 = "test"; +export const exp4460 = "test"; +export const exp4461 = "test"; +export const exp4462 = "test"; +export const exp4463 = "test"; +export const exp4464 = "test"; +export const exp4465 = "test"; +export const exp4466 = "test"; +export const exp4467 = "test"; +export const exp4468 = "test"; +export const exp4469 = "test"; +export const exp4470 = "test"; +export const exp4471 = "test"; +export const exp4472 = "test"; +export const exp4473 = "test"; +export const exp4474 = "test"; +export const exp4475 = "test"; +export const exp4476 = "test"; +export const exp4477 = "test"; +export const exp4478 = "test"; +export const exp4479 = "test"; +export const exp4480 = "test"; +export const exp4481 = "test"; +export const exp4482 = "test"; +export const exp4483 = "test"; +export const exp4484 = "test"; +export const exp4485 = "test"; +export const exp4486 = "test"; +export const exp4487 = "test"; +export const exp4488 = "test"; +export const exp4489 = "test"; +export const exp4490 = "test"; +export const exp4491 = "test"; +export const exp4492 = "test"; +export const exp4493 = "test"; +export const exp4494 = "test"; +export const exp4495 = "test"; +export const exp4496 = "test"; +export const exp4497 = "test"; +export const exp4498 = "test"; +export const exp4499 = "test"; +export const exp4500 = "test"; +export const exp4501 = "test"; +export const exp4502 = "test"; +export const exp4503 = "test"; +export const exp4504 = "test"; +export const exp4505 = "test"; +export const exp4506 = "test"; +export const exp4507 = "test"; +export const exp4508 = "test"; +export const exp4509 = "test"; +export const exp4510 = "test"; +export const exp4511 = "test"; +export const exp4512 = "test"; +export const exp4513 = "test"; +export const exp4514 = "test"; +export const exp4515 = "test"; +export const exp4516 = "test"; +export const exp4517 = "test"; +export const exp4518 = "test"; +export const exp4519 = "test"; +export const exp4520 = "test"; +export const exp4521 = "test"; +export const exp4522 = "test"; +export const exp4523 = "test"; +export const exp4524 = "test"; +export const exp4525 = "test"; +export const exp4526 = "test"; +export const exp4527 = "test"; +export const exp4528 = "test"; +export const exp4529 = "test"; +export const exp4530 = "test"; +export const exp4531 = "test"; +export const exp4532 = "test"; +export const exp4533 = "test"; +export const exp4534 = "test"; +export const exp4535 = "test"; +export const exp4536 = "test"; +export const exp4537 = "test"; +export const exp4538 = "test"; +export const exp4539 = "test"; +export const exp4540 = "test"; +export const exp4541 = "test"; +export const exp4542 = "test"; +export const exp4543 = "test"; +export const exp4544 = "test"; +export const exp4545 = "test"; +export const exp4546 = "test"; +export const exp4547 = "test"; +export const exp4548 = "test"; +export const exp4549 = "test"; +export const exp4550 = "test"; +export const exp4551 = "test"; +export const exp4552 = "test"; +export const exp4553 = "test"; +export const exp4554 = "test"; +export const exp4555 = "test"; +export const exp4556 = "test"; +export const exp4557 = "test"; +export const exp4558 = "test"; +export const exp4559 = "test"; +export const exp4560 = "test"; +export const exp4561 = "test"; +export const exp4562 = "test"; +export const exp4563 = "test"; +export const exp4564 = "test"; +export const exp4565 = "test"; +export const exp4566 = "test"; +export const exp4567 = "test"; +export const exp4568 = "test"; +export const exp4569 = "test"; +export const exp4570 = "test"; +export const exp4571 = "test"; +export const exp4572 = "test"; +export const exp4573 = "test"; +export const exp4574 = "test"; +export const exp4575 = "test"; +export const exp4576 = "test"; +export const exp4577 = "test"; +export const exp4578 = "test"; +export const exp4579 = "test"; +export const exp4580 = "test"; +export const exp4581 = "test"; +export const exp4582 = "test"; +export const exp4583 = "test"; +export const exp4584 = "test"; +export const exp4585 = "test"; +export const exp4586 = "test"; +export const exp4587 = "test"; +export const exp4588 = "test"; +export const exp4589 = "test"; +export const exp4590 = "test"; +export const exp4591 = "test"; +export const exp4592 = "test"; +export const exp4593 = "test"; +export const exp4594 = "test"; +export const exp4595 = "test"; +export const exp4596 = "test"; +export const exp4597 = "test"; +export const exp4598 = "test"; +export const exp4599 = "test"; +export const exp4600 = "test"; +export const exp4601 = "test"; +export const exp4602 = "test"; +export const exp4603 = "test"; +export const exp4604 = "test"; +export const exp4605 = "test"; +export const exp4606 = "test"; +export const exp4607 = "test"; +export const exp4608 = "test"; +export const exp4609 = "test"; +export const exp4610 = "test"; +export const exp4611 = "test"; +export const exp4612 = "test"; +export const exp4613 = "test"; +export const exp4614 = "test"; +export const exp4615 = "test"; +export const exp4616 = "test"; +export const exp4617 = "test"; +export const exp4618 = "test"; +export const exp4619 = "test"; +export const exp4620 = "test"; +export const exp4621 = "test"; +export const exp4622 = "test"; +export const exp4623 = "test"; +export const exp4624 = "test"; +export const exp4625 = "test"; +export const exp4626 = "test"; +export const exp4627 = "test"; +export const exp4628 = "test"; +export const exp4629 = "test"; +export const exp4630 = "test"; +export const exp4631 = "test"; +export const exp4632 = "test"; +export const exp4633 = "test"; +export const exp4634 = "test"; +export const exp4635 = "test"; +export const exp4636 = "test"; +export const exp4637 = "test"; +export const exp4638 = "test"; +export const exp4639 = "test"; +export const exp4640 = "test"; +export const exp4641 = "test"; +export const exp4642 = "test"; +export const exp4643 = "test"; +export const exp4644 = "test"; +export const exp4645 = "test"; +export const exp4646 = "test"; +export const exp4647 = "test"; +export const exp4648 = "test"; +export const exp4649 = "test"; +export const exp4650 = "test"; +export const exp4651 = "test"; +export const exp4652 = "test"; +export const exp4653 = "test"; +export const exp4654 = "test"; +export const exp4655 = "test"; +export const exp4656 = "test"; +export const exp4657 = "test"; +export const exp4658 = "test"; +export const exp4659 = "test"; +export const exp4660 = "test"; +export const exp4661 = "test"; +export const exp4662 = "test"; +export const exp4663 = "test"; +export const exp4664 = "test"; +export const exp4665 = "test"; +export const exp4666 = "test"; +export const exp4667 = "test"; +export const exp4668 = "test"; +export const exp4669 = "test"; +export const exp4670 = "test"; +export const exp4671 = "test"; +export const exp4672 = "test"; +export const exp4673 = "test"; +export const exp4674 = "test"; +export const exp4675 = "test"; +export const exp4676 = "test"; +export const exp4677 = "test"; +export const exp4678 = "test"; +export const exp4679 = "test"; +export const exp4680 = "test"; +export const exp4681 = "test"; +export const exp4682 = "test"; +export const exp4683 = "test"; +export const exp4684 = "test"; +export const exp4685 = "test"; +export const exp4686 = "test"; +export const exp4687 = "test"; +export const exp4688 = "test"; +export const exp4689 = "test"; +export const exp4690 = "test"; +export const exp4691 = "test"; +export const exp4692 = "test"; +export const exp4693 = "test"; +export const exp4694 = "test"; +export const exp4695 = "test"; +export const exp4696 = "test"; +export const exp4697 = "test"; +export const exp4698 = "test"; +export const exp4699 = "test"; +export const exp4700 = "test"; +export const exp4701 = "test"; +export const exp4702 = "test"; +export const exp4703 = "test"; +export const exp4704 = "test"; +export const exp4705 = "test"; +export const exp4706 = "test"; +export const exp4707 = "test"; +export const exp4708 = "test"; +export const exp4709 = "test"; +export const exp4710 = "test"; +export const exp4711 = "test"; +export const exp4712 = "test"; +export const exp4713 = "test"; +export const exp4714 = "test"; +export const exp4715 = "test"; +export const exp4716 = "test"; +export const exp4717 = "test"; +export const exp4718 = "test"; +export const exp4719 = "test"; +export const exp4720 = "test"; +export const exp4721 = "test"; +export const exp4722 = "test"; +export const exp4723 = "test"; +export const exp4724 = "test"; +export const exp4725 = "test"; +export const exp4726 = "test"; +export const exp4727 = "test"; +export const exp4728 = "test"; +export const exp4729 = "test"; +export const exp4730 = "test"; +export const exp4731 = "test"; +export const exp4732 = "test"; +export const exp4733 = "test"; +export const exp4734 = "test"; +export const exp4735 = "test"; +export const exp4736 = "test"; +export const exp4737 = "test"; +export const exp4738 = "test"; +export const exp4739 = "test"; +export const exp4740 = "test"; +export const exp4741 = "test"; +export const exp4742 = "test"; +export const exp4743 = "test"; +export const exp4744 = "test"; +export const exp4745 = "test"; +export const exp4746 = "test"; +export const exp4747 = "test"; +export const exp4748 = "test"; +export const exp4749 = "test"; +export const exp4750 = "test"; +export const exp4751 = "test"; +export const exp4752 = "test"; +export const exp4753 = "test"; +export const exp4754 = "test"; +export const exp4755 = "test"; +export const exp4756 = "test"; +export const exp4757 = "test"; +export const exp4758 = "test"; +export const exp4759 = "test"; +export const exp4760 = "test"; +export const exp4761 = "test"; +export const exp4762 = "test"; +export const exp4763 = "test"; +export const exp4764 = "test"; +export const exp4765 = "test"; +export const exp4766 = "test"; +export const exp4767 = "test"; +export const exp4768 = "test"; +export const exp4769 = "test"; +export const exp4770 = "test"; +export const exp4771 = "test"; +export const exp4772 = "test"; +export const exp4773 = "test"; +export const exp4774 = "test"; +export const exp4775 = "test"; +export const exp4776 = "test"; +export const exp4777 = "test"; +export const exp4778 = "test"; +export const exp4779 = "test"; +export const exp4780 = "test"; +export const exp4781 = "test"; +export const exp4782 = "test"; +export const exp4783 = "test"; +export const exp4784 = "test"; +export const exp4785 = "test"; +export const exp4786 = "test"; +export const exp4787 = "test"; +export const exp4788 = "test"; +export const exp4789 = "test"; +export const exp4790 = "test"; +export const exp4791 = "test"; +export const exp4792 = "test"; +export const exp4793 = "test"; +export const exp4794 = "test"; +export const exp4795 = "test"; +export const exp4796 = "test"; +export const exp4797 = "test"; +export const exp4798 = "test"; +export const exp4799 = "test"; +export const exp4800 = "test"; +export const exp4801 = "test"; +export const exp4802 = "test"; +export const exp4803 = "test"; +export const exp4804 = "test"; +export const exp4805 = "test"; +export const exp4806 = "test"; +export const exp4807 = "test"; +export const exp4808 = "test"; +export const exp4809 = "test"; +export const exp4810 = "test"; +export const exp4811 = "test"; +export const exp4812 = "test"; +export const exp4813 = "test"; +export const exp4814 = "test"; +export const exp4815 = "test"; +export const exp4816 = "test"; +export const exp4817 = "test"; +export const exp4818 = "test"; +export const exp4819 = "test"; +export const exp4820 = "test"; +export const exp4821 = "test"; +export const exp4822 = "test"; +export const exp4823 = "test"; +export const exp4824 = "test"; +export const exp4825 = "test"; +export const exp4826 = "test"; +export const exp4827 = "test"; +export const exp4828 = "test"; +export const exp4829 = "test"; +export const exp4830 = "test"; +export const exp4831 = "test"; +export const exp4832 = "test"; +export const exp4833 = "test"; +export const exp4834 = "test"; +export const exp4835 = "test"; +export const exp4836 = "test"; +export const exp4837 = "test"; +export const exp4838 = "test"; +export const exp4839 = "test"; +export const exp4840 = "test"; +export const exp4841 = "test"; +export const exp4842 = "test"; +export const exp4843 = "test"; +export const exp4844 = "test"; +export const exp4845 = "test"; +export const exp4846 = "test"; +export const exp4847 = "test"; +export const exp4848 = "test"; +export const exp4849 = "test"; +export const exp4850 = "test"; +export const exp4851 = "test"; +export const exp4852 = "test"; +export const exp4853 = "test"; +export const exp4854 = "test"; +export const exp4855 = "test"; +export const exp4856 = "test"; +export const exp4857 = "test"; +export const exp4858 = "test"; +export const exp4859 = "test"; +export const exp4860 = "test"; +export const exp4861 = "test"; +export const exp4862 = "test"; +export const exp4863 = "test"; +export const exp4864 = "test"; +export const exp4865 = "test"; +export const exp4866 = "test"; +export const exp4867 = "test"; +export const exp4868 = "test"; +export const exp4869 = "test"; +export const exp4870 = "test"; +export const exp4871 = "test"; +export const exp4872 = "test"; +export const exp4873 = "test"; +export const exp4874 = "test"; +export const exp4875 = "test"; +export const exp4876 = "test"; +export const exp4877 = "test"; +export const exp4878 = "test"; +export const exp4879 = "test"; +export const exp4880 = "test"; +export const exp4881 = "test"; +export const exp4882 = "test"; +export const exp4883 = "test"; +export const exp4884 = "test"; +export const exp4885 = "test"; +export const exp4886 = "test"; +export const exp4887 = "test"; +export const exp4888 = "test"; +export const exp4889 = "test"; +export const exp4890 = "test"; +export const exp4891 = "test"; +export const exp4892 = "test"; +export const exp4893 = "test"; +export const exp4894 = "test"; +export const exp4895 = "test"; +export const exp4896 = "test"; +export const exp4897 = "test"; +export const exp4898 = "test"; +export const exp4899 = "test"; +export const exp4900 = "test"; +export const exp4901 = "test"; +export const exp4902 = "test"; +export const exp4903 = "test"; +export const exp4904 = "test"; +export const exp4905 = "test"; +export const exp4906 = "test"; +export const exp4907 = "test"; +export const exp4908 = "test"; +export const exp4909 = "test"; +export const exp4910 = "test"; +export const exp4911 = "test"; +export const exp4912 = "test"; +export const exp4913 = "test"; +export const exp4914 = "test"; +export const exp4915 = "test"; +export const exp4916 = "test"; +export const exp4917 = "test"; +export const exp4918 = "test"; +export const exp4919 = "test"; +export const exp4920 = "test"; +export const exp4921 = "test"; +export const exp4922 = "test"; +export const exp4923 = "test"; +export const exp4924 = "test"; +export const exp4925 = "test"; +export const exp4926 = "test"; +export const exp4927 = "test"; +export const exp4928 = "test"; +export const exp4929 = "test"; +export const exp4930 = "test"; +export const exp4931 = "test"; +export const exp4932 = "test"; +export const exp4933 = "test"; +export const exp4934 = "test"; +export const exp4935 = "test"; +export const exp4936 = "test"; +export const exp4937 = "test"; +export const exp4938 = "test"; +export const exp4939 = "test"; +export const exp4940 = "test"; +export const exp4941 = "test"; +export const exp4942 = "test"; +export const exp4943 = "test"; +export const exp4944 = "test"; +export const exp4945 = "test"; +export const exp4946 = "test"; +export const exp4947 = "test"; +export const exp4948 = "test"; +export const exp4949 = "test"; +export const exp4950 = "test"; +export const exp4951 = "test"; +export const exp4952 = "test"; +export const exp4953 = "test"; +export const exp4954 = "test"; +export const exp4955 = "test"; +export const exp4956 = "test"; +export const exp4957 = "test"; +export const exp4958 = "test"; +export const exp4959 = "test"; +export const exp4960 = "test"; +export const exp4961 = "test"; +export const exp4962 = "test"; +export const exp4963 = "test"; +export const exp4964 = "test"; +export const exp4965 = "test"; +export const exp4966 = "test"; +export const exp4967 = "test"; +export const exp4968 = "test"; +export const exp4969 = "test"; +export const exp4970 = "test"; +export const exp4971 = "test"; +export const exp4972 = "test"; +export const exp4973 = "test"; +export const exp4974 = "test"; +export const exp4975 = "test"; +export const exp4976 = "test"; +export const exp4977 = "test"; +export const exp4978 = "test"; +export const exp4979 = "test"; +export const exp4980 = "test"; +export const exp4981 = "test"; +export const exp4982 = "test"; +export const exp4983 = "test"; +export const exp4984 = "test"; +export const exp4985 = "test"; +export const exp4986 = "test"; +export const exp4987 = "test"; +export const exp4988 = "test"; +export const exp4989 = "test"; +export const exp4990 = "test"; +export const exp4991 = "test"; +export const exp4992 = "test"; +export const exp4993 = "test"; +export const exp4994 = "test"; +export const exp4995 = "test"; +export const exp4996 = "test"; +export const exp4997 = "test"; +export const exp4998 = "test"; +export const exp4999 = "test"; + + +//// [manyConstExports.js] +export const exp0 = "test"; +export const exp1 = "test"; +export const exp2 = "test"; +export const exp3 = "test"; +export const exp4 = "test"; +export const exp5 = "test"; +export const exp6 = "test"; +export const exp7 = "test"; +export const exp8 = "test"; +export const exp9 = "test"; +export const exp10 = "test"; +export const exp11 = "test"; +export const exp12 = "test"; +export const exp13 = "test"; +export const exp14 = "test"; +export const exp15 = "test"; +export const exp16 = "test"; +export const exp17 = "test"; +export const exp18 = "test"; +export const exp19 = "test"; +export const exp20 = "test"; +export const exp21 = "test"; +export const exp22 = "test"; +export const exp23 = "test"; +export const exp24 = "test"; +export const exp25 = "test"; +export const exp26 = "test"; +export const exp27 = "test"; +export const exp28 = "test"; +export const exp29 = "test"; +export const exp30 = "test"; +export const exp31 = "test"; +export const exp32 = "test"; +export const exp33 = "test"; +export const exp34 = "test"; +export const exp35 = "test"; +export const exp36 = "test"; +export const exp37 = "test"; +export const exp38 = "test"; +export const exp39 = "test"; +export const exp40 = "test"; +export const exp41 = "test"; +export const exp42 = "test"; +export const exp43 = "test"; +export const exp44 = "test"; +export const exp45 = "test"; +export const exp46 = "test"; +export const exp47 = "test"; +export const exp48 = "test"; +export const exp49 = "test"; +export const exp50 = "test"; +export const exp51 = "test"; +export const exp52 = "test"; +export const exp53 = "test"; +export const exp54 = "test"; +export const exp55 = "test"; +export const exp56 = "test"; +export const exp57 = "test"; +export const exp58 = "test"; +export const exp59 = "test"; +export const exp60 = "test"; +export const exp61 = "test"; +export const exp62 = "test"; +export const exp63 = "test"; +export const exp64 = "test"; +export const exp65 = "test"; +export const exp66 = "test"; +export const exp67 = "test"; +export const exp68 = "test"; +export const exp69 = "test"; +export const exp70 = "test"; +export const exp71 = "test"; +export const exp72 = "test"; +export const exp73 = "test"; +export const exp74 = "test"; +export const exp75 = "test"; +export const exp76 = "test"; +export const exp77 = "test"; +export const exp78 = "test"; +export const exp79 = "test"; +export const exp80 = "test"; +export const exp81 = "test"; +export const exp82 = "test"; +export const exp83 = "test"; +export const exp84 = "test"; +export const exp85 = "test"; +export const exp86 = "test"; +export const exp87 = "test"; +export const exp88 = "test"; +export const exp89 = "test"; +export const exp90 = "test"; +export const exp91 = "test"; +export const exp92 = "test"; +export const exp93 = "test"; +export const exp94 = "test"; +export const exp95 = "test"; +export const exp96 = "test"; +export const exp97 = "test"; +export const exp98 = "test"; +export const exp99 = "test"; +export const exp100 = "test"; +export const exp101 = "test"; +export const exp102 = "test"; +export const exp103 = "test"; +export const exp104 = "test"; +export const exp105 = "test"; +export const exp106 = "test"; +export const exp107 = "test"; +export const exp108 = "test"; +export const exp109 = "test"; +export const exp110 = "test"; +export const exp111 = "test"; +export const exp112 = "test"; +export const exp113 = "test"; +export const exp114 = "test"; +export const exp115 = "test"; +export const exp116 = "test"; +export const exp117 = "test"; +export const exp118 = "test"; +export const exp119 = "test"; +export const exp120 = "test"; +export const exp121 = "test"; +export const exp122 = "test"; +export const exp123 = "test"; +export const exp124 = "test"; +export const exp125 = "test"; +export const exp126 = "test"; +export const exp127 = "test"; +export const exp128 = "test"; +export const exp129 = "test"; +export const exp130 = "test"; +export const exp131 = "test"; +export const exp132 = "test"; +export const exp133 = "test"; +export const exp134 = "test"; +export const exp135 = "test"; +export const exp136 = "test"; +export const exp137 = "test"; +export const exp138 = "test"; +export const exp139 = "test"; +export const exp140 = "test"; +export const exp141 = "test"; +export const exp142 = "test"; +export const exp143 = "test"; +export const exp144 = "test"; +export const exp145 = "test"; +export const exp146 = "test"; +export const exp147 = "test"; +export const exp148 = "test"; +export const exp149 = "test"; +export const exp150 = "test"; +export const exp151 = "test"; +export const exp152 = "test"; +export const exp153 = "test"; +export const exp154 = "test"; +export const exp155 = "test"; +export const exp156 = "test"; +export const exp157 = "test"; +export const exp158 = "test"; +export const exp159 = "test"; +export const exp160 = "test"; +export const exp161 = "test"; +export const exp162 = "test"; +export const exp163 = "test"; +export const exp164 = "test"; +export const exp165 = "test"; +export const exp166 = "test"; +export const exp167 = "test"; +export const exp168 = "test"; +export const exp169 = "test"; +export const exp170 = "test"; +export const exp171 = "test"; +export const exp172 = "test"; +export const exp173 = "test"; +export const exp174 = "test"; +export const exp175 = "test"; +export const exp176 = "test"; +export const exp177 = "test"; +export const exp178 = "test"; +export const exp179 = "test"; +export const exp180 = "test"; +export const exp181 = "test"; +export const exp182 = "test"; +export const exp183 = "test"; +export const exp184 = "test"; +export const exp185 = "test"; +export const exp186 = "test"; +export const exp187 = "test"; +export const exp188 = "test"; +export const exp189 = "test"; +export const exp190 = "test"; +export const exp191 = "test"; +export const exp192 = "test"; +export const exp193 = "test"; +export const exp194 = "test"; +export const exp195 = "test"; +export const exp196 = "test"; +export const exp197 = "test"; +export const exp198 = "test"; +export const exp199 = "test"; +export const exp200 = "test"; +export const exp201 = "test"; +export const exp202 = "test"; +export const exp203 = "test"; +export const exp204 = "test"; +export const exp205 = "test"; +export const exp206 = "test"; +export const exp207 = "test"; +export const exp208 = "test"; +export const exp209 = "test"; +export const exp210 = "test"; +export const exp211 = "test"; +export const exp212 = "test"; +export const exp213 = "test"; +export const exp214 = "test"; +export const exp215 = "test"; +export const exp216 = "test"; +export const exp217 = "test"; +export const exp218 = "test"; +export const exp219 = "test"; +export const exp220 = "test"; +export const exp221 = "test"; +export const exp222 = "test"; +export const exp223 = "test"; +export const exp224 = "test"; +export const exp225 = "test"; +export const exp226 = "test"; +export const exp227 = "test"; +export const exp228 = "test"; +export const exp229 = "test"; +export const exp230 = "test"; +export const exp231 = "test"; +export const exp232 = "test"; +export const exp233 = "test"; +export const exp234 = "test"; +export const exp235 = "test"; +export const exp236 = "test"; +export const exp237 = "test"; +export const exp238 = "test"; +export const exp239 = "test"; +export const exp240 = "test"; +export const exp241 = "test"; +export const exp242 = "test"; +export const exp243 = "test"; +export const exp244 = "test"; +export const exp245 = "test"; +export const exp246 = "test"; +export const exp247 = "test"; +export const exp248 = "test"; +export const exp249 = "test"; +export const exp250 = "test"; +export const exp251 = "test"; +export const exp252 = "test"; +export const exp253 = "test"; +export const exp254 = "test"; +export const exp255 = "test"; +export const exp256 = "test"; +export const exp257 = "test"; +export const exp258 = "test"; +export const exp259 = "test"; +export const exp260 = "test"; +export const exp261 = "test"; +export const exp262 = "test"; +export const exp263 = "test"; +export const exp264 = "test"; +export const exp265 = "test"; +export const exp266 = "test"; +export const exp267 = "test"; +export const exp268 = "test"; +export const exp269 = "test"; +export const exp270 = "test"; +export const exp271 = "test"; +export const exp272 = "test"; +export const exp273 = "test"; +export const exp274 = "test"; +export const exp275 = "test"; +export const exp276 = "test"; +export const exp277 = "test"; +export const exp278 = "test"; +export const exp279 = "test"; +export const exp280 = "test"; +export const exp281 = "test"; +export const exp282 = "test"; +export const exp283 = "test"; +export const exp284 = "test"; +export const exp285 = "test"; +export const exp286 = "test"; +export const exp287 = "test"; +export const exp288 = "test"; +export const exp289 = "test"; +export const exp290 = "test"; +export const exp291 = "test"; +export const exp292 = "test"; +export const exp293 = "test"; +export const exp294 = "test"; +export const exp295 = "test"; +export const exp296 = "test"; +export const exp297 = "test"; +export const exp298 = "test"; +export const exp299 = "test"; +export const exp300 = "test"; +export const exp301 = "test"; +export const exp302 = "test"; +export const exp303 = "test"; +export const exp304 = "test"; +export const exp305 = "test"; +export const exp306 = "test"; +export const exp307 = "test"; +export const exp308 = "test"; +export const exp309 = "test"; +export const exp310 = "test"; +export const exp311 = "test"; +export const exp312 = "test"; +export const exp313 = "test"; +export const exp314 = "test"; +export const exp315 = "test"; +export const exp316 = "test"; +export const exp317 = "test"; +export const exp318 = "test"; +export const exp319 = "test"; +export const exp320 = "test"; +export const exp321 = "test"; +export const exp322 = "test"; +export const exp323 = "test"; +export const exp324 = "test"; +export const exp325 = "test"; +export const exp326 = "test"; +export const exp327 = "test"; +export const exp328 = "test"; +export const exp329 = "test"; +export const exp330 = "test"; +export const exp331 = "test"; +export const exp332 = "test"; +export const exp333 = "test"; +export const exp334 = "test"; +export const exp335 = "test"; +export const exp336 = "test"; +export const exp337 = "test"; +export const exp338 = "test"; +export const exp339 = "test"; +export const exp340 = "test"; +export const exp341 = "test"; +export const exp342 = "test"; +export const exp343 = "test"; +export const exp344 = "test"; +export const exp345 = "test"; +export const exp346 = "test"; +export const exp347 = "test"; +export const exp348 = "test"; +export const exp349 = "test"; +export const exp350 = "test"; +export const exp351 = "test"; +export const exp352 = "test"; +export const exp353 = "test"; +export const exp354 = "test"; +export const exp355 = "test"; +export const exp356 = "test"; +export const exp357 = "test"; +export const exp358 = "test"; +export const exp359 = "test"; +export const exp360 = "test"; +export const exp361 = "test"; +export const exp362 = "test"; +export const exp363 = "test"; +export const exp364 = "test"; +export const exp365 = "test"; +export const exp366 = "test"; +export const exp367 = "test"; +export const exp368 = "test"; +export const exp369 = "test"; +export const exp370 = "test"; +export const exp371 = "test"; +export const exp372 = "test"; +export const exp373 = "test"; +export const exp374 = "test"; +export const exp375 = "test"; +export const exp376 = "test"; +export const exp377 = "test"; +export const exp378 = "test"; +export const exp379 = "test"; +export const exp380 = "test"; +export const exp381 = "test"; +export const exp382 = "test"; +export const exp383 = "test"; +export const exp384 = "test"; +export const exp385 = "test"; +export const exp386 = "test"; +export const exp387 = "test"; +export const exp388 = "test"; +export const exp389 = "test"; +export const exp390 = "test"; +export const exp391 = "test"; +export const exp392 = "test"; +export const exp393 = "test"; +export const exp394 = "test"; +export const exp395 = "test"; +export const exp396 = "test"; +export const exp397 = "test"; +export const exp398 = "test"; +export const exp399 = "test"; +export const exp400 = "test"; +export const exp401 = "test"; +export const exp402 = "test"; +export const exp403 = "test"; +export const exp404 = "test"; +export const exp405 = "test"; +export const exp406 = "test"; +export const exp407 = "test"; +export const exp408 = "test"; +export const exp409 = "test"; +export const exp410 = "test"; +export const exp411 = "test"; +export const exp412 = "test"; +export const exp413 = "test"; +export const exp414 = "test"; +export const exp415 = "test"; +export const exp416 = "test"; +export const exp417 = "test"; +export const exp418 = "test"; +export const exp419 = "test"; +export const exp420 = "test"; +export const exp421 = "test"; +export const exp422 = "test"; +export const exp423 = "test"; +export const exp424 = "test"; +export const exp425 = "test"; +export const exp426 = "test"; +export const exp427 = "test"; +export const exp428 = "test"; +export const exp429 = "test"; +export const exp430 = "test"; +export const exp431 = "test"; +export const exp432 = "test"; +export const exp433 = "test"; +export const exp434 = "test"; +export const exp435 = "test"; +export const exp436 = "test"; +export const exp437 = "test"; +export const exp438 = "test"; +export const exp439 = "test"; +export const exp440 = "test"; +export const exp441 = "test"; +export const exp442 = "test"; +export const exp443 = "test"; +export const exp444 = "test"; +export const exp445 = "test"; +export const exp446 = "test"; +export const exp447 = "test"; +export const exp448 = "test"; +export const exp449 = "test"; +export const exp450 = "test"; +export const exp451 = "test"; +export const exp452 = "test"; +export const exp453 = "test"; +export const exp454 = "test"; +export const exp455 = "test"; +export const exp456 = "test"; +export const exp457 = "test"; +export const exp458 = "test"; +export const exp459 = "test"; +export const exp460 = "test"; +export const exp461 = "test"; +export const exp462 = "test"; +export const exp463 = "test"; +export const exp464 = "test"; +export const exp465 = "test"; +export const exp466 = "test"; +export const exp467 = "test"; +export const exp468 = "test"; +export const exp469 = "test"; +export const exp470 = "test"; +export const exp471 = "test"; +export const exp472 = "test"; +export const exp473 = "test"; +export const exp474 = "test"; +export const exp475 = "test"; +export const exp476 = "test"; +export const exp477 = "test"; +export const exp478 = "test"; +export const exp479 = "test"; +export const exp480 = "test"; +export const exp481 = "test"; +export const exp482 = "test"; +export const exp483 = "test"; +export const exp484 = "test"; +export const exp485 = "test"; +export const exp486 = "test"; +export const exp487 = "test"; +export const exp488 = "test"; +export const exp489 = "test"; +export const exp490 = "test"; +export const exp491 = "test"; +export const exp492 = "test"; +export const exp493 = "test"; +export const exp494 = "test"; +export const exp495 = "test"; +export const exp496 = "test"; +export const exp497 = "test"; +export const exp498 = "test"; +export const exp499 = "test"; +export const exp500 = "test"; +export const exp501 = "test"; +export const exp502 = "test"; +export const exp503 = "test"; +export const exp504 = "test"; +export const exp505 = "test"; +export const exp506 = "test"; +export const exp507 = "test"; +export const exp508 = "test"; +export const exp509 = "test"; +export const exp510 = "test"; +export const exp511 = "test"; +export const exp512 = "test"; +export const exp513 = "test"; +export const exp514 = "test"; +export const exp515 = "test"; +export const exp516 = "test"; +export const exp517 = "test"; +export const exp518 = "test"; +export const exp519 = "test"; +export const exp520 = "test"; +export const exp521 = "test"; +export const exp522 = "test"; +export const exp523 = "test"; +export const exp524 = "test"; +export const exp525 = "test"; +export const exp526 = "test"; +export const exp527 = "test"; +export const exp528 = "test"; +export const exp529 = "test"; +export const exp530 = "test"; +export const exp531 = "test"; +export const exp532 = "test"; +export const exp533 = "test"; +export const exp534 = "test"; +export const exp535 = "test"; +export const exp536 = "test"; +export const exp537 = "test"; +export const exp538 = "test"; +export const exp539 = "test"; +export const exp540 = "test"; +export const exp541 = "test"; +export const exp542 = "test"; +export const exp543 = "test"; +export const exp544 = "test"; +export const exp545 = "test"; +export const exp546 = "test"; +export const exp547 = "test"; +export const exp548 = "test"; +export const exp549 = "test"; +export const exp550 = "test"; +export const exp551 = "test"; +export const exp552 = "test"; +export const exp553 = "test"; +export const exp554 = "test"; +export const exp555 = "test"; +export const exp556 = "test"; +export const exp557 = "test"; +export const exp558 = "test"; +export const exp559 = "test"; +export const exp560 = "test"; +export const exp561 = "test"; +export const exp562 = "test"; +export const exp563 = "test"; +export const exp564 = "test"; +export const exp565 = "test"; +export const exp566 = "test"; +export const exp567 = "test"; +export const exp568 = "test"; +export const exp569 = "test"; +export const exp570 = "test"; +export const exp571 = "test"; +export const exp572 = "test"; +export const exp573 = "test"; +export const exp574 = "test"; +export const exp575 = "test"; +export const exp576 = "test"; +export const exp577 = "test"; +export const exp578 = "test"; +export const exp579 = "test"; +export const exp580 = "test"; +export const exp581 = "test"; +export const exp582 = "test"; +export const exp583 = "test"; +export const exp584 = "test"; +export const exp585 = "test"; +export const exp586 = "test"; +export const exp587 = "test"; +export const exp588 = "test"; +export const exp589 = "test"; +export const exp590 = "test"; +export const exp591 = "test"; +export const exp592 = "test"; +export const exp593 = "test"; +export const exp594 = "test"; +export const exp595 = "test"; +export const exp596 = "test"; +export const exp597 = "test"; +export const exp598 = "test"; +export const exp599 = "test"; +export const exp600 = "test"; +export const exp601 = "test"; +export const exp602 = "test"; +export const exp603 = "test"; +export const exp604 = "test"; +export const exp605 = "test"; +export const exp606 = "test"; +export const exp607 = "test"; +export const exp608 = "test"; +export const exp609 = "test"; +export const exp610 = "test"; +export const exp611 = "test"; +export const exp612 = "test"; +export const exp613 = "test"; +export const exp614 = "test"; +export const exp615 = "test"; +export const exp616 = "test"; +export const exp617 = "test"; +export const exp618 = "test"; +export const exp619 = "test"; +export const exp620 = "test"; +export const exp621 = "test"; +export const exp622 = "test"; +export const exp623 = "test"; +export const exp624 = "test"; +export const exp625 = "test"; +export const exp626 = "test"; +export const exp627 = "test"; +export const exp628 = "test"; +export const exp629 = "test"; +export const exp630 = "test"; +export const exp631 = "test"; +export const exp632 = "test"; +export const exp633 = "test"; +export const exp634 = "test"; +export const exp635 = "test"; +export const exp636 = "test"; +export const exp637 = "test"; +export const exp638 = "test"; +export const exp639 = "test"; +export const exp640 = "test"; +export const exp641 = "test"; +export const exp642 = "test"; +export const exp643 = "test"; +export const exp644 = "test"; +export const exp645 = "test"; +export const exp646 = "test"; +export const exp647 = "test"; +export const exp648 = "test"; +export const exp649 = "test"; +export const exp650 = "test"; +export const exp651 = "test"; +export const exp652 = "test"; +export const exp653 = "test"; +export const exp654 = "test"; +export const exp655 = "test"; +export const exp656 = "test"; +export const exp657 = "test"; +export const exp658 = "test"; +export const exp659 = "test"; +export const exp660 = "test"; +export const exp661 = "test"; +export const exp662 = "test"; +export const exp663 = "test"; +export const exp664 = "test"; +export const exp665 = "test"; +export const exp666 = "test"; +export const exp667 = "test"; +export const exp668 = "test"; +export const exp669 = "test"; +export const exp670 = "test"; +export const exp671 = "test"; +export const exp672 = "test"; +export const exp673 = "test"; +export const exp674 = "test"; +export const exp675 = "test"; +export const exp676 = "test"; +export const exp677 = "test"; +export const exp678 = "test"; +export const exp679 = "test"; +export const exp680 = "test"; +export const exp681 = "test"; +export const exp682 = "test"; +export const exp683 = "test"; +export const exp684 = "test"; +export const exp685 = "test"; +export const exp686 = "test"; +export const exp687 = "test"; +export const exp688 = "test"; +export const exp689 = "test"; +export const exp690 = "test"; +export const exp691 = "test"; +export const exp692 = "test"; +export const exp693 = "test"; +export const exp694 = "test"; +export const exp695 = "test"; +export const exp696 = "test"; +export const exp697 = "test"; +export const exp698 = "test"; +export const exp699 = "test"; +export const exp700 = "test"; +export const exp701 = "test"; +export const exp702 = "test"; +export const exp703 = "test"; +export const exp704 = "test"; +export const exp705 = "test"; +export const exp706 = "test"; +export const exp707 = "test"; +export const exp708 = "test"; +export const exp709 = "test"; +export const exp710 = "test"; +export const exp711 = "test"; +export const exp712 = "test"; +export const exp713 = "test"; +export const exp714 = "test"; +export const exp715 = "test"; +export const exp716 = "test"; +export const exp717 = "test"; +export const exp718 = "test"; +export const exp719 = "test"; +export const exp720 = "test"; +export const exp721 = "test"; +export const exp722 = "test"; +export const exp723 = "test"; +export const exp724 = "test"; +export const exp725 = "test"; +export const exp726 = "test"; +export const exp727 = "test"; +export const exp728 = "test"; +export const exp729 = "test"; +export const exp730 = "test"; +export const exp731 = "test"; +export const exp732 = "test"; +export const exp733 = "test"; +export const exp734 = "test"; +export const exp735 = "test"; +export const exp736 = "test"; +export const exp737 = "test"; +export const exp738 = "test"; +export const exp739 = "test"; +export const exp740 = "test"; +export const exp741 = "test"; +export const exp742 = "test"; +export const exp743 = "test"; +export const exp744 = "test"; +export const exp745 = "test"; +export const exp746 = "test"; +export const exp747 = "test"; +export const exp748 = "test"; +export const exp749 = "test"; +export const exp750 = "test"; +export const exp751 = "test"; +export const exp752 = "test"; +export const exp753 = "test"; +export const exp754 = "test"; +export const exp755 = "test"; +export const exp756 = "test"; +export const exp757 = "test"; +export const exp758 = "test"; +export const exp759 = "test"; +export const exp760 = "test"; +export const exp761 = "test"; +export const exp762 = "test"; +export const exp763 = "test"; +export const exp764 = "test"; +export const exp765 = "test"; +export const exp766 = "test"; +export const exp767 = "test"; +export const exp768 = "test"; +export const exp769 = "test"; +export const exp770 = "test"; +export const exp771 = "test"; +export const exp772 = "test"; +export const exp773 = "test"; +export const exp774 = "test"; +export const exp775 = "test"; +export const exp776 = "test"; +export const exp777 = "test"; +export const exp778 = "test"; +export const exp779 = "test"; +export const exp780 = "test"; +export const exp781 = "test"; +export const exp782 = "test"; +export const exp783 = "test"; +export const exp784 = "test"; +export const exp785 = "test"; +export const exp786 = "test"; +export const exp787 = "test"; +export const exp788 = "test"; +export const exp789 = "test"; +export const exp790 = "test"; +export const exp791 = "test"; +export const exp792 = "test"; +export const exp793 = "test"; +export const exp794 = "test"; +export const exp795 = "test"; +export const exp796 = "test"; +export const exp797 = "test"; +export const exp798 = "test"; +export const exp799 = "test"; +export const exp800 = "test"; +export const exp801 = "test"; +export const exp802 = "test"; +export const exp803 = "test"; +export const exp804 = "test"; +export const exp805 = "test"; +export const exp806 = "test"; +export const exp807 = "test"; +export const exp808 = "test"; +export const exp809 = "test"; +export const exp810 = "test"; +export const exp811 = "test"; +export const exp812 = "test"; +export const exp813 = "test"; +export const exp814 = "test"; +export const exp815 = "test"; +export const exp816 = "test"; +export const exp817 = "test"; +export const exp818 = "test"; +export const exp819 = "test"; +export const exp820 = "test"; +export const exp821 = "test"; +export const exp822 = "test"; +export const exp823 = "test"; +export const exp824 = "test"; +export const exp825 = "test"; +export const exp826 = "test"; +export const exp827 = "test"; +export const exp828 = "test"; +export const exp829 = "test"; +export const exp830 = "test"; +export const exp831 = "test"; +export const exp832 = "test"; +export const exp833 = "test"; +export const exp834 = "test"; +export const exp835 = "test"; +export const exp836 = "test"; +export const exp837 = "test"; +export const exp838 = "test"; +export const exp839 = "test"; +export const exp840 = "test"; +export const exp841 = "test"; +export const exp842 = "test"; +export const exp843 = "test"; +export const exp844 = "test"; +export const exp845 = "test"; +export const exp846 = "test"; +export const exp847 = "test"; +export const exp848 = "test"; +export const exp849 = "test"; +export const exp850 = "test"; +export const exp851 = "test"; +export const exp852 = "test"; +export const exp853 = "test"; +export const exp854 = "test"; +export const exp855 = "test"; +export const exp856 = "test"; +export const exp857 = "test"; +export const exp858 = "test"; +export const exp859 = "test"; +export const exp860 = "test"; +export const exp861 = "test"; +export const exp862 = "test"; +export const exp863 = "test"; +export const exp864 = "test"; +export const exp865 = "test"; +export const exp866 = "test"; +export const exp867 = "test"; +export const exp868 = "test"; +export const exp869 = "test"; +export const exp870 = "test"; +export const exp871 = "test"; +export const exp872 = "test"; +export const exp873 = "test"; +export const exp874 = "test"; +export const exp875 = "test"; +export const exp876 = "test"; +export const exp877 = "test"; +export const exp878 = "test"; +export const exp879 = "test"; +export const exp880 = "test"; +export const exp881 = "test"; +export const exp882 = "test"; +export const exp883 = "test"; +export const exp884 = "test"; +export const exp885 = "test"; +export const exp886 = "test"; +export const exp887 = "test"; +export const exp888 = "test"; +export const exp889 = "test"; +export const exp890 = "test"; +export const exp891 = "test"; +export const exp892 = "test"; +export const exp893 = "test"; +export const exp894 = "test"; +export const exp895 = "test"; +export const exp896 = "test"; +export const exp897 = "test"; +export const exp898 = "test"; +export const exp899 = "test"; +export const exp900 = "test"; +export const exp901 = "test"; +export const exp902 = "test"; +export const exp903 = "test"; +export const exp904 = "test"; +export const exp905 = "test"; +export const exp906 = "test"; +export const exp907 = "test"; +export const exp908 = "test"; +export const exp909 = "test"; +export const exp910 = "test"; +export const exp911 = "test"; +export const exp912 = "test"; +export const exp913 = "test"; +export const exp914 = "test"; +export const exp915 = "test"; +export const exp916 = "test"; +export const exp917 = "test"; +export const exp918 = "test"; +export const exp919 = "test"; +export const exp920 = "test"; +export const exp921 = "test"; +export const exp922 = "test"; +export const exp923 = "test"; +export const exp924 = "test"; +export const exp925 = "test"; +export const exp926 = "test"; +export const exp927 = "test"; +export const exp928 = "test"; +export const exp929 = "test"; +export const exp930 = "test"; +export const exp931 = "test"; +export const exp932 = "test"; +export const exp933 = "test"; +export const exp934 = "test"; +export const exp935 = "test"; +export const exp936 = "test"; +export const exp937 = "test"; +export const exp938 = "test"; +export const exp939 = "test"; +export const exp940 = "test"; +export const exp941 = "test"; +export const exp942 = "test"; +export const exp943 = "test"; +export const exp944 = "test"; +export const exp945 = "test"; +export const exp946 = "test"; +export const exp947 = "test"; +export const exp948 = "test"; +export const exp949 = "test"; +export const exp950 = "test"; +export const exp951 = "test"; +export const exp952 = "test"; +export const exp953 = "test"; +export const exp954 = "test"; +export const exp955 = "test"; +export const exp956 = "test"; +export const exp957 = "test"; +export const exp958 = "test"; +export const exp959 = "test"; +export const exp960 = "test"; +export const exp961 = "test"; +export const exp962 = "test"; +export const exp963 = "test"; +export const exp964 = "test"; +export const exp965 = "test"; +export const exp966 = "test"; +export const exp967 = "test"; +export const exp968 = "test"; +export const exp969 = "test"; +export const exp970 = "test"; +export const exp971 = "test"; +export const exp972 = "test"; +export const exp973 = "test"; +export const exp974 = "test"; +export const exp975 = "test"; +export const exp976 = "test"; +export const exp977 = "test"; +export const exp978 = "test"; +export const exp979 = "test"; +export const exp980 = "test"; +export const exp981 = "test"; +export const exp982 = "test"; +export const exp983 = "test"; +export const exp984 = "test"; +export const exp985 = "test"; +export const exp986 = "test"; +export const exp987 = "test"; +export const exp988 = "test"; +export const exp989 = "test"; +export const exp990 = "test"; +export const exp991 = "test"; +export const exp992 = "test"; +export const exp993 = "test"; +export const exp994 = "test"; +export const exp995 = "test"; +export const exp996 = "test"; +export const exp997 = "test"; +export const exp998 = "test"; +export const exp999 = "test"; +export const exp1000 = "test"; +export const exp1001 = "test"; +export const exp1002 = "test"; +export const exp1003 = "test"; +export const exp1004 = "test"; +export const exp1005 = "test"; +export const exp1006 = "test"; +export const exp1007 = "test"; +export const exp1008 = "test"; +export const exp1009 = "test"; +export const exp1010 = "test"; +export const exp1011 = "test"; +export const exp1012 = "test"; +export const exp1013 = "test"; +export const exp1014 = "test"; +export const exp1015 = "test"; +export const exp1016 = "test"; +export const exp1017 = "test"; +export const exp1018 = "test"; +export const exp1019 = "test"; +export const exp1020 = "test"; +export const exp1021 = "test"; +export const exp1022 = "test"; +export const exp1023 = "test"; +export const exp1024 = "test"; +export const exp1025 = "test"; +export const exp1026 = "test"; +export const exp1027 = "test"; +export const exp1028 = "test"; +export const exp1029 = "test"; +export const exp1030 = "test"; +export const exp1031 = "test"; +export const exp1032 = "test"; +export const exp1033 = "test"; +export const exp1034 = "test"; +export const exp1035 = "test"; +export const exp1036 = "test"; +export const exp1037 = "test"; +export const exp1038 = "test"; +export const exp1039 = "test"; +export const exp1040 = "test"; +export const exp1041 = "test"; +export const exp1042 = "test"; +export const exp1043 = "test"; +export const exp1044 = "test"; +export const exp1045 = "test"; +export const exp1046 = "test"; +export const exp1047 = "test"; +export const exp1048 = "test"; +export const exp1049 = "test"; +export const exp1050 = "test"; +export const exp1051 = "test"; +export const exp1052 = "test"; +export const exp1053 = "test"; +export const exp1054 = "test"; +export const exp1055 = "test"; +export const exp1056 = "test"; +export const exp1057 = "test"; +export const exp1058 = "test"; +export const exp1059 = "test"; +export const exp1060 = "test"; +export const exp1061 = "test"; +export const exp1062 = "test"; +export const exp1063 = "test"; +export const exp1064 = "test"; +export const exp1065 = "test"; +export const exp1066 = "test"; +export const exp1067 = "test"; +export const exp1068 = "test"; +export const exp1069 = "test"; +export const exp1070 = "test"; +export const exp1071 = "test"; +export const exp1072 = "test"; +export const exp1073 = "test"; +export const exp1074 = "test"; +export const exp1075 = "test"; +export const exp1076 = "test"; +export const exp1077 = "test"; +export const exp1078 = "test"; +export const exp1079 = "test"; +export const exp1080 = "test"; +export const exp1081 = "test"; +export const exp1082 = "test"; +export const exp1083 = "test"; +export const exp1084 = "test"; +export const exp1085 = "test"; +export const exp1086 = "test"; +export const exp1087 = "test"; +export const exp1088 = "test"; +export const exp1089 = "test"; +export const exp1090 = "test"; +export const exp1091 = "test"; +export const exp1092 = "test"; +export const exp1093 = "test"; +export const exp1094 = "test"; +export const exp1095 = "test"; +export const exp1096 = "test"; +export const exp1097 = "test"; +export const exp1098 = "test"; +export const exp1099 = "test"; +export const exp1100 = "test"; +export const exp1101 = "test"; +export const exp1102 = "test"; +export const exp1103 = "test"; +export const exp1104 = "test"; +export const exp1105 = "test"; +export const exp1106 = "test"; +export const exp1107 = "test"; +export const exp1108 = "test"; +export const exp1109 = "test"; +export const exp1110 = "test"; +export const exp1111 = "test"; +export const exp1112 = "test"; +export const exp1113 = "test"; +export const exp1114 = "test"; +export const exp1115 = "test"; +export const exp1116 = "test"; +export const exp1117 = "test"; +export const exp1118 = "test"; +export const exp1119 = "test"; +export const exp1120 = "test"; +export const exp1121 = "test"; +export const exp1122 = "test"; +export const exp1123 = "test"; +export const exp1124 = "test"; +export const exp1125 = "test"; +export const exp1126 = "test"; +export const exp1127 = "test"; +export const exp1128 = "test"; +export const exp1129 = "test"; +export const exp1130 = "test"; +export const exp1131 = "test"; +export const exp1132 = "test"; +export const exp1133 = "test"; +export const exp1134 = "test"; +export const exp1135 = "test"; +export const exp1136 = "test"; +export const exp1137 = "test"; +export const exp1138 = "test"; +export const exp1139 = "test"; +export const exp1140 = "test"; +export const exp1141 = "test"; +export const exp1142 = "test"; +export const exp1143 = "test"; +export const exp1144 = "test"; +export const exp1145 = "test"; +export const exp1146 = "test"; +export const exp1147 = "test"; +export const exp1148 = "test"; +export const exp1149 = "test"; +export const exp1150 = "test"; +export const exp1151 = "test"; +export const exp1152 = "test"; +export const exp1153 = "test"; +export const exp1154 = "test"; +export const exp1155 = "test"; +export const exp1156 = "test"; +export const exp1157 = "test"; +export const exp1158 = "test"; +export const exp1159 = "test"; +export const exp1160 = "test"; +export const exp1161 = "test"; +export const exp1162 = "test"; +export const exp1163 = "test"; +export const exp1164 = "test"; +export const exp1165 = "test"; +export const exp1166 = "test"; +export const exp1167 = "test"; +export const exp1168 = "test"; +export const exp1169 = "test"; +export const exp1170 = "test"; +export const exp1171 = "test"; +export const exp1172 = "test"; +export const exp1173 = "test"; +export const exp1174 = "test"; +export const exp1175 = "test"; +export const exp1176 = "test"; +export const exp1177 = "test"; +export const exp1178 = "test"; +export const exp1179 = "test"; +export const exp1180 = "test"; +export const exp1181 = "test"; +export const exp1182 = "test"; +export const exp1183 = "test"; +export const exp1184 = "test"; +export const exp1185 = "test"; +export const exp1186 = "test"; +export const exp1187 = "test"; +export const exp1188 = "test"; +export const exp1189 = "test"; +export const exp1190 = "test"; +export const exp1191 = "test"; +export const exp1192 = "test"; +export const exp1193 = "test"; +export const exp1194 = "test"; +export const exp1195 = "test"; +export const exp1196 = "test"; +export const exp1197 = "test"; +export const exp1198 = "test"; +export const exp1199 = "test"; +export const exp1200 = "test"; +export const exp1201 = "test"; +export const exp1202 = "test"; +export const exp1203 = "test"; +export const exp1204 = "test"; +export const exp1205 = "test"; +export const exp1206 = "test"; +export const exp1207 = "test"; +export const exp1208 = "test"; +export const exp1209 = "test"; +export const exp1210 = "test"; +export const exp1211 = "test"; +export const exp1212 = "test"; +export const exp1213 = "test"; +export const exp1214 = "test"; +export const exp1215 = "test"; +export const exp1216 = "test"; +export const exp1217 = "test"; +export const exp1218 = "test"; +export const exp1219 = "test"; +export const exp1220 = "test"; +export const exp1221 = "test"; +export const exp1222 = "test"; +export const exp1223 = "test"; +export const exp1224 = "test"; +export const exp1225 = "test"; +export const exp1226 = "test"; +export const exp1227 = "test"; +export const exp1228 = "test"; +export const exp1229 = "test"; +export const exp1230 = "test"; +export const exp1231 = "test"; +export const exp1232 = "test"; +export const exp1233 = "test"; +export const exp1234 = "test"; +export const exp1235 = "test"; +export const exp1236 = "test"; +export const exp1237 = "test"; +export const exp1238 = "test"; +export const exp1239 = "test"; +export const exp1240 = "test"; +export const exp1241 = "test"; +export const exp1242 = "test"; +export const exp1243 = "test"; +export const exp1244 = "test"; +export const exp1245 = "test"; +export const exp1246 = "test"; +export const exp1247 = "test"; +export const exp1248 = "test"; +export const exp1249 = "test"; +export const exp1250 = "test"; +export const exp1251 = "test"; +export const exp1252 = "test"; +export const exp1253 = "test"; +export const exp1254 = "test"; +export const exp1255 = "test"; +export const exp1256 = "test"; +export const exp1257 = "test"; +export const exp1258 = "test"; +export const exp1259 = "test"; +export const exp1260 = "test"; +export const exp1261 = "test"; +export const exp1262 = "test"; +export const exp1263 = "test"; +export const exp1264 = "test"; +export const exp1265 = "test"; +export const exp1266 = "test"; +export const exp1267 = "test"; +export const exp1268 = "test"; +export const exp1269 = "test"; +export const exp1270 = "test"; +export const exp1271 = "test"; +export const exp1272 = "test"; +export const exp1273 = "test"; +export const exp1274 = "test"; +export const exp1275 = "test"; +export const exp1276 = "test"; +export const exp1277 = "test"; +export const exp1278 = "test"; +export const exp1279 = "test"; +export const exp1280 = "test"; +export const exp1281 = "test"; +export const exp1282 = "test"; +export const exp1283 = "test"; +export const exp1284 = "test"; +export const exp1285 = "test"; +export const exp1286 = "test"; +export const exp1287 = "test"; +export const exp1288 = "test"; +export const exp1289 = "test"; +export const exp1290 = "test"; +export const exp1291 = "test"; +export const exp1292 = "test"; +export const exp1293 = "test"; +export const exp1294 = "test"; +export const exp1295 = "test"; +export const exp1296 = "test"; +export const exp1297 = "test"; +export const exp1298 = "test"; +export const exp1299 = "test"; +export const exp1300 = "test"; +export const exp1301 = "test"; +export const exp1302 = "test"; +export const exp1303 = "test"; +export const exp1304 = "test"; +export const exp1305 = "test"; +export const exp1306 = "test"; +export const exp1307 = "test"; +export const exp1308 = "test"; +export const exp1309 = "test"; +export const exp1310 = "test"; +export const exp1311 = "test"; +export const exp1312 = "test"; +export const exp1313 = "test"; +export const exp1314 = "test"; +export const exp1315 = "test"; +export const exp1316 = "test"; +export const exp1317 = "test"; +export const exp1318 = "test"; +export const exp1319 = "test"; +export const exp1320 = "test"; +export const exp1321 = "test"; +export const exp1322 = "test"; +export const exp1323 = "test"; +export const exp1324 = "test"; +export const exp1325 = "test"; +export const exp1326 = "test"; +export const exp1327 = "test"; +export const exp1328 = "test"; +export const exp1329 = "test"; +export const exp1330 = "test"; +export const exp1331 = "test"; +export const exp1332 = "test"; +export const exp1333 = "test"; +export const exp1334 = "test"; +export const exp1335 = "test"; +export const exp1336 = "test"; +export const exp1337 = "test"; +export const exp1338 = "test"; +export const exp1339 = "test"; +export const exp1340 = "test"; +export const exp1341 = "test"; +export const exp1342 = "test"; +export const exp1343 = "test"; +export const exp1344 = "test"; +export const exp1345 = "test"; +export const exp1346 = "test"; +export const exp1347 = "test"; +export const exp1348 = "test"; +export const exp1349 = "test"; +export const exp1350 = "test"; +export const exp1351 = "test"; +export const exp1352 = "test"; +export const exp1353 = "test"; +export const exp1354 = "test"; +export const exp1355 = "test"; +export const exp1356 = "test"; +export const exp1357 = "test"; +export const exp1358 = "test"; +export const exp1359 = "test"; +export const exp1360 = "test"; +export const exp1361 = "test"; +export const exp1362 = "test"; +export const exp1363 = "test"; +export const exp1364 = "test"; +export const exp1365 = "test"; +export const exp1366 = "test"; +export const exp1367 = "test"; +export const exp1368 = "test"; +export const exp1369 = "test"; +export const exp1370 = "test"; +export const exp1371 = "test"; +export const exp1372 = "test"; +export const exp1373 = "test"; +export const exp1374 = "test"; +export const exp1375 = "test"; +export const exp1376 = "test"; +export const exp1377 = "test"; +export const exp1378 = "test"; +export const exp1379 = "test"; +export const exp1380 = "test"; +export const exp1381 = "test"; +export const exp1382 = "test"; +export const exp1383 = "test"; +export const exp1384 = "test"; +export const exp1385 = "test"; +export const exp1386 = "test"; +export const exp1387 = "test"; +export const exp1388 = "test"; +export const exp1389 = "test"; +export const exp1390 = "test"; +export const exp1391 = "test"; +export const exp1392 = "test"; +export const exp1393 = "test"; +export const exp1394 = "test"; +export const exp1395 = "test"; +export const exp1396 = "test"; +export const exp1397 = "test"; +export const exp1398 = "test"; +export const exp1399 = "test"; +export const exp1400 = "test"; +export const exp1401 = "test"; +export const exp1402 = "test"; +export const exp1403 = "test"; +export const exp1404 = "test"; +export const exp1405 = "test"; +export const exp1406 = "test"; +export const exp1407 = "test"; +export const exp1408 = "test"; +export const exp1409 = "test"; +export const exp1410 = "test"; +export const exp1411 = "test"; +export const exp1412 = "test"; +export const exp1413 = "test"; +export const exp1414 = "test"; +export const exp1415 = "test"; +export const exp1416 = "test"; +export const exp1417 = "test"; +export const exp1418 = "test"; +export const exp1419 = "test"; +export const exp1420 = "test"; +export const exp1421 = "test"; +export const exp1422 = "test"; +export const exp1423 = "test"; +export const exp1424 = "test"; +export const exp1425 = "test"; +export const exp1426 = "test"; +export const exp1427 = "test"; +export const exp1428 = "test"; +export const exp1429 = "test"; +export const exp1430 = "test"; +export const exp1431 = "test"; +export const exp1432 = "test"; +export const exp1433 = "test"; +export const exp1434 = "test"; +export const exp1435 = "test"; +export const exp1436 = "test"; +export const exp1437 = "test"; +export const exp1438 = "test"; +export const exp1439 = "test"; +export const exp1440 = "test"; +export const exp1441 = "test"; +export const exp1442 = "test"; +export const exp1443 = "test"; +export const exp1444 = "test"; +export const exp1445 = "test"; +export const exp1446 = "test"; +export const exp1447 = "test"; +export const exp1448 = "test"; +export const exp1449 = "test"; +export const exp1450 = "test"; +export const exp1451 = "test"; +export const exp1452 = "test"; +export const exp1453 = "test"; +export const exp1454 = "test"; +export const exp1455 = "test"; +export const exp1456 = "test"; +export const exp1457 = "test"; +export const exp1458 = "test"; +export const exp1459 = "test"; +export const exp1460 = "test"; +export const exp1461 = "test"; +export const exp1462 = "test"; +export const exp1463 = "test"; +export const exp1464 = "test"; +export const exp1465 = "test"; +export const exp1466 = "test"; +export const exp1467 = "test"; +export const exp1468 = "test"; +export const exp1469 = "test"; +export const exp1470 = "test"; +export const exp1471 = "test"; +export const exp1472 = "test"; +export const exp1473 = "test"; +export const exp1474 = "test"; +export const exp1475 = "test"; +export const exp1476 = "test"; +export const exp1477 = "test"; +export const exp1478 = "test"; +export const exp1479 = "test"; +export const exp1480 = "test"; +export const exp1481 = "test"; +export const exp1482 = "test"; +export const exp1483 = "test"; +export const exp1484 = "test"; +export const exp1485 = "test"; +export const exp1486 = "test"; +export const exp1487 = "test"; +export const exp1488 = "test"; +export const exp1489 = "test"; +export const exp1490 = "test"; +export const exp1491 = "test"; +export const exp1492 = "test"; +export const exp1493 = "test"; +export const exp1494 = "test"; +export const exp1495 = "test"; +export const exp1496 = "test"; +export const exp1497 = "test"; +export const exp1498 = "test"; +export const exp1499 = "test"; +export const exp1500 = "test"; +export const exp1501 = "test"; +export const exp1502 = "test"; +export const exp1503 = "test"; +export const exp1504 = "test"; +export const exp1505 = "test"; +export const exp1506 = "test"; +export const exp1507 = "test"; +export const exp1508 = "test"; +export const exp1509 = "test"; +export const exp1510 = "test"; +export const exp1511 = "test"; +export const exp1512 = "test"; +export const exp1513 = "test"; +export const exp1514 = "test"; +export const exp1515 = "test"; +export const exp1516 = "test"; +export const exp1517 = "test"; +export const exp1518 = "test"; +export const exp1519 = "test"; +export const exp1520 = "test"; +export const exp1521 = "test"; +export const exp1522 = "test"; +export const exp1523 = "test"; +export const exp1524 = "test"; +export const exp1525 = "test"; +export const exp1526 = "test"; +export const exp1527 = "test"; +export const exp1528 = "test"; +export const exp1529 = "test"; +export const exp1530 = "test"; +export const exp1531 = "test"; +export const exp1532 = "test"; +export const exp1533 = "test"; +export const exp1534 = "test"; +export const exp1535 = "test"; +export const exp1536 = "test"; +export const exp1537 = "test"; +export const exp1538 = "test"; +export const exp1539 = "test"; +export const exp1540 = "test"; +export const exp1541 = "test"; +export const exp1542 = "test"; +export const exp1543 = "test"; +export const exp1544 = "test"; +export const exp1545 = "test"; +export const exp1546 = "test"; +export const exp1547 = "test"; +export const exp1548 = "test"; +export const exp1549 = "test"; +export const exp1550 = "test"; +export const exp1551 = "test"; +export const exp1552 = "test"; +export const exp1553 = "test"; +export const exp1554 = "test"; +export const exp1555 = "test"; +export const exp1556 = "test"; +export const exp1557 = "test"; +export const exp1558 = "test"; +export const exp1559 = "test"; +export const exp1560 = "test"; +export const exp1561 = "test"; +export const exp1562 = "test"; +export const exp1563 = "test"; +export const exp1564 = "test"; +export const exp1565 = "test"; +export const exp1566 = "test"; +export const exp1567 = "test"; +export const exp1568 = "test"; +export const exp1569 = "test"; +export const exp1570 = "test"; +export const exp1571 = "test"; +export const exp1572 = "test"; +export const exp1573 = "test"; +export const exp1574 = "test"; +export const exp1575 = "test"; +export const exp1576 = "test"; +export const exp1577 = "test"; +export const exp1578 = "test"; +export const exp1579 = "test"; +export const exp1580 = "test"; +export const exp1581 = "test"; +export const exp1582 = "test"; +export const exp1583 = "test"; +export const exp1584 = "test"; +export const exp1585 = "test"; +export const exp1586 = "test"; +export const exp1587 = "test"; +export const exp1588 = "test"; +export const exp1589 = "test"; +export const exp1590 = "test"; +export const exp1591 = "test"; +export const exp1592 = "test"; +export const exp1593 = "test"; +export const exp1594 = "test"; +export const exp1595 = "test"; +export const exp1596 = "test"; +export const exp1597 = "test"; +export const exp1598 = "test"; +export const exp1599 = "test"; +export const exp1600 = "test"; +export const exp1601 = "test"; +export const exp1602 = "test"; +export const exp1603 = "test"; +export const exp1604 = "test"; +export const exp1605 = "test"; +export const exp1606 = "test"; +export const exp1607 = "test"; +export const exp1608 = "test"; +export const exp1609 = "test"; +export const exp1610 = "test"; +export const exp1611 = "test"; +export const exp1612 = "test"; +export const exp1613 = "test"; +export const exp1614 = "test"; +export const exp1615 = "test"; +export const exp1616 = "test"; +export const exp1617 = "test"; +export const exp1618 = "test"; +export const exp1619 = "test"; +export const exp1620 = "test"; +export const exp1621 = "test"; +export const exp1622 = "test"; +export const exp1623 = "test"; +export const exp1624 = "test"; +export const exp1625 = "test"; +export const exp1626 = "test"; +export const exp1627 = "test"; +export const exp1628 = "test"; +export const exp1629 = "test"; +export const exp1630 = "test"; +export const exp1631 = "test"; +export const exp1632 = "test"; +export const exp1633 = "test"; +export const exp1634 = "test"; +export const exp1635 = "test"; +export const exp1636 = "test"; +export const exp1637 = "test"; +export const exp1638 = "test"; +export const exp1639 = "test"; +export const exp1640 = "test"; +export const exp1641 = "test"; +export const exp1642 = "test"; +export const exp1643 = "test"; +export const exp1644 = "test"; +export const exp1645 = "test"; +export const exp1646 = "test"; +export const exp1647 = "test"; +export const exp1648 = "test"; +export const exp1649 = "test"; +export const exp1650 = "test"; +export const exp1651 = "test"; +export const exp1652 = "test"; +export const exp1653 = "test"; +export const exp1654 = "test"; +export const exp1655 = "test"; +export const exp1656 = "test"; +export const exp1657 = "test"; +export const exp1658 = "test"; +export const exp1659 = "test"; +export const exp1660 = "test"; +export const exp1661 = "test"; +export const exp1662 = "test"; +export const exp1663 = "test"; +export const exp1664 = "test"; +export const exp1665 = "test"; +export const exp1666 = "test"; +export const exp1667 = "test"; +export const exp1668 = "test"; +export const exp1669 = "test"; +export const exp1670 = "test"; +export const exp1671 = "test"; +export const exp1672 = "test"; +export const exp1673 = "test"; +export const exp1674 = "test"; +export const exp1675 = "test"; +export const exp1676 = "test"; +export const exp1677 = "test"; +export const exp1678 = "test"; +export const exp1679 = "test"; +export const exp1680 = "test"; +export const exp1681 = "test"; +export const exp1682 = "test"; +export const exp1683 = "test"; +export const exp1684 = "test"; +export const exp1685 = "test"; +export const exp1686 = "test"; +export const exp1687 = "test"; +export const exp1688 = "test"; +export const exp1689 = "test"; +export const exp1690 = "test"; +export const exp1691 = "test"; +export const exp1692 = "test"; +export const exp1693 = "test"; +export const exp1694 = "test"; +export const exp1695 = "test"; +export const exp1696 = "test"; +export const exp1697 = "test"; +export const exp1698 = "test"; +export const exp1699 = "test"; +export const exp1700 = "test"; +export const exp1701 = "test"; +export const exp1702 = "test"; +export const exp1703 = "test"; +export const exp1704 = "test"; +export const exp1705 = "test"; +export const exp1706 = "test"; +export const exp1707 = "test"; +export const exp1708 = "test"; +export const exp1709 = "test"; +export const exp1710 = "test"; +export const exp1711 = "test"; +export const exp1712 = "test"; +export const exp1713 = "test"; +export const exp1714 = "test"; +export const exp1715 = "test"; +export const exp1716 = "test"; +export const exp1717 = "test"; +export const exp1718 = "test"; +export const exp1719 = "test"; +export const exp1720 = "test"; +export const exp1721 = "test"; +export const exp1722 = "test"; +export const exp1723 = "test"; +export const exp1724 = "test"; +export const exp1725 = "test"; +export const exp1726 = "test"; +export const exp1727 = "test"; +export const exp1728 = "test"; +export const exp1729 = "test"; +export const exp1730 = "test"; +export const exp1731 = "test"; +export const exp1732 = "test"; +export const exp1733 = "test"; +export const exp1734 = "test"; +export const exp1735 = "test"; +export const exp1736 = "test"; +export const exp1737 = "test"; +export const exp1738 = "test"; +export const exp1739 = "test"; +export const exp1740 = "test"; +export const exp1741 = "test"; +export const exp1742 = "test"; +export const exp1743 = "test"; +export const exp1744 = "test"; +export const exp1745 = "test"; +export const exp1746 = "test"; +export const exp1747 = "test"; +export const exp1748 = "test"; +export const exp1749 = "test"; +export const exp1750 = "test"; +export const exp1751 = "test"; +export const exp1752 = "test"; +export const exp1753 = "test"; +export const exp1754 = "test"; +export const exp1755 = "test"; +export const exp1756 = "test"; +export const exp1757 = "test"; +export const exp1758 = "test"; +export const exp1759 = "test"; +export const exp1760 = "test"; +export const exp1761 = "test"; +export const exp1762 = "test"; +export const exp1763 = "test"; +export const exp1764 = "test"; +export const exp1765 = "test"; +export const exp1766 = "test"; +export const exp1767 = "test"; +export const exp1768 = "test"; +export const exp1769 = "test"; +export const exp1770 = "test"; +export const exp1771 = "test"; +export const exp1772 = "test"; +export const exp1773 = "test"; +export const exp1774 = "test"; +export const exp1775 = "test"; +export const exp1776 = "test"; +export const exp1777 = "test"; +export const exp1778 = "test"; +export const exp1779 = "test"; +export const exp1780 = "test"; +export const exp1781 = "test"; +export const exp1782 = "test"; +export const exp1783 = "test"; +export const exp1784 = "test"; +export const exp1785 = "test"; +export const exp1786 = "test"; +export const exp1787 = "test"; +export const exp1788 = "test"; +export const exp1789 = "test"; +export const exp1790 = "test"; +export const exp1791 = "test"; +export const exp1792 = "test"; +export const exp1793 = "test"; +export const exp1794 = "test"; +export const exp1795 = "test"; +export const exp1796 = "test"; +export const exp1797 = "test"; +export const exp1798 = "test"; +export const exp1799 = "test"; +export const exp1800 = "test"; +export const exp1801 = "test"; +export const exp1802 = "test"; +export const exp1803 = "test"; +export const exp1804 = "test"; +export const exp1805 = "test"; +export const exp1806 = "test"; +export const exp1807 = "test"; +export const exp1808 = "test"; +export const exp1809 = "test"; +export const exp1810 = "test"; +export const exp1811 = "test"; +export const exp1812 = "test"; +export const exp1813 = "test"; +export const exp1814 = "test"; +export const exp1815 = "test"; +export const exp1816 = "test"; +export const exp1817 = "test"; +export const exp1818 = "test"; +export const exp1819 = "test"; +export const exp1820 = "test"; +export const exp1821 = "test"; +export const exp1822 = "test"; +export const exp1823 = "test"; +export const exp1824 = "test"; +export const exp1825 = "test"; +export const exp1826 = "test"; +export const exp1827 = "test"; +export const exp1828 = "test"; +export const exp1829 = "test"; +export const exp1830 = "test"; +export const exp1831 = "test"; +export const exp1832 = "test"; +export const exp1833 = "test"; +export const exp1834 = "test"; +export const exp1835 = "test"; +export const exp1836 = "test"; +export const exp1837 = "test"; +export const exp1838 = "test"; +export const exp1839 = "test"; +export const exp1840 = "test"; +export const exp1841 = "test"; +export const exp1842 = "test"; +export const exp1843 = "test"; +export const exp1844 = "test"; +export const exp1845 = "test"; +export const exp1846 = "test"; +export const exp1847 = "test"; +export const exp1848 = "test"; +export const exp1849 = "test"; +export const exp1850 = "test"; +export const exp1851 = "test"; +export const exp1852 = "test"; +export const exp1853 = "test"; +export const exp1854 = "test"; +export const exp1855 = "test"; +export const exp1856 = "test"; +export const exp1857 = "test"; +export const exp1858 = "test"; +export const exp1859 = "test"; +export const exp1860 = "test"; +export const exp1861 = "test"; +export const exp1862 = "test"; +export const exp1863 = "test"; +export const exp1864 = "test"; +export const exp1865 = "test"; +export const exp1866 = "test"; +export const exp1867 = "test"; +export const exp1868 = "test"; +export const exp1869 = "test"; +export const exp1870 = "test"; +export const exp1871 = "test"; +export const exp1872 = "test"; +export const exp1873 = "test"; +export const exp1874 = "test"; +export const exp1875 = "test"; +export const exp1876 = "test"; +export const exp1877 = "test"; +export const exp1878 = "test"; +export const exp1879 = "test"; +export const exp1880 = "test"; +export const exp1881 = "test"; +export const exp1882 = "test"; +export const exp1883 = "test"; +export const exp1884 = "test"; +export const exp1885 = "test"; +export const exp1886 = "test"; +export const exp1887 = "test"; +export const exp1888 = "test"; +export const exp1889 = "test"; +export const exp1890 = "test"; +export const exp1891 = "test"; +export const exp1892 = "test"; +export const exp1893 = "test"; +export const exp1894 = "test"; +export const exp1895 = "test"; +export const exp1896 = "test"; +export const exp1897 = "test"; +export const exp1898 = "test"; +export const exp1899 = "test"; +export const exp1900 = "test"; +export const exp1901 = "test"; +export const exp1902 = "test"; +export const exp1903 = "test"; +export const exp1904 = "test"; +export const exp1905 = "test"; +export const exp1906 = "test"; +export const exp1907 = "test"; +export const exp1908 = "test"; +export const exp1909 = "test"; +export const exp1910 = "test"; +export const exp1911 = "test"; +export const exp1912 = "test"; +export const exp1913 = "test"; +export const exp1914 = "test"; +export const exp1915 = "test"; +export const exp1916 = "test"; +export const exp1917 = "test"; +export const exp1918 = "test"; +export const exp1919 = "test"; +export const exp1920 = "test"; +export const exp1921 = "test"; +export const exp1922 = "test"; +export const exp1923 = "test"; +export const exp1924 = "test"; +export const exp1925 = "test"; +export const exp1926 = "test"; +export const exp1927 = "test"; +export const exp1928 = "test"; +export const exp1929 = "test"; +export const exp1930 = "test"; +export const exp1931 = "test"; +export const exp1932 = "test"; +export const exp1933 = "test"; +export const exp1934 = "test"; +export const exp1935 = "test"; +export const exp1936 = "test"; +export const exp1937 = "test"; +export const exp1938 = "test"; +export const exp1939 = "test"; +export const exp1940 = "test"; +export const exp1941 = "test"; +export const exp1942 = "test"; +export const exp1943 = "test"; +export const exp1944 = "test"; +export const exp1945 = "test"; +export const exp1946 = "test"; +export const exp1947 = "test"; +export const exp1948 = "test"; +export const exp1949 = "test"; +export const exp1950 = "test"; +export const exp1951 = "test"; +export const exp1952 = "test"; +export const exp1953 = "test"; +export const exp1954 = "test"; +export const exp1955 = "test"; +export const exp1956 = "test"; +export const exp1957 = "test"; +export const exp1958 = "test"; +export const exp1959 = "test"; +export const exp1960 = "test"; +export const exp1961 = "test"; +export const exp1962 = "test"; +export const exp1963 = "test"; +export const exp1964 = "test"; +export const exp1965 = "test"; +export const exp1966 = "test"; +export const exp1967 = "test"; +export const exp1968 = "test"; +export const exp1969 = "test"; +export const exp1970 = "test"; +export const exp1971 = "test"; +export const exp1972 = "test"; +export const exp1973 = "test"; +export const exp1974 = "test"; +export const exp1975 = "test"; +export const exp1976 = "test"; +export const exp1977 = "test"; +export const exp1978 = "test"; +export const exp1979 = "test"; +export const exp1980 = "test"; +export const exp1981 = "test"; +export const exp1982 = "test"; +export const exp1983 = "test"; +export const exp1984 = "test"; +export const exp1985 = "test"; +export const exp1986 = "test"; +export const exp1987 = "test"; +export const exp1988 = "test"; +export const exp1989 = "test"; +export const exp1990 = "test"; +export const exp1991 = "test"; +export const exp1992 = "test"; +export const exp1993 = "test"; +export const exp1994 = "test"; +export const exp1995 = "test"; +export const exp1996 = "test"; +export const exp1997 = "test"; +export const exp1998 = "test"; +export const exp1999 = "test"; +export const exp2000 = "test"; +export const exp2001 = "test"; +export const exp2002 = "test"; +export const exp2003 = "test"; +export const exp2004 = "test"; +export const exp2005 = "test"; +export const exp2006 = "test"; +export const exp2007 = "test"; +export const exp2008 = "test"; +export const exp2009 = "test"; +export const exp2010 = "test"; +export const exp2011 = "test"; +export const exp2012 = "test"; +export const exp2013 = "test"; +export const exp2014 = "test"; +export const exp2015 = "test"; +export const exp2016 = "test"; +export const exp2017 = "test"; +export const exp2018 = "test"; +export const exp2019 = "test"; +export const exp2020 = "test"; +export const exp2021 = "test"; +export const exp2022 = "test"; +export const exp2023 = "test"; +export const exp2024 = "test"; +export const exp2025 = "test"; +export const exp2026 = "test"; +export const exp2027 = "test"; +export const exp2028 = "test"; +export const exp2029 = "test"; +export const exp2030 = "test"; +export const exp2031 = "test"; +export const exp2032 = "test"; +export const exp2033 = "test"; +export const exp2034 = "test"; +export const exp2035 = "test"; +export const exp2036 = "test"; +export const exp2037 = "test"; +export const exp2038 = "test"; +export const exp2039 = "test"; +export const exp2040 = "test"; +export const exp2041 = "test"; +export const exp2042 = "test"; +export const exp2043 = "test"; +export const exp2044 = "test"; +export const exp2045 = "test"; +export const exp2046 = "test"; +export const exp2047 = "test"; +export const exp2048 = "test"; +export const exp2049 = "test"; +export const exp2050 = "test"; +export const exp2051 = "test"; +export const exp2052 = "test"; +export const exp2053 = "test"; +export const exp2054 = "test"; +export const exp2055 = "test"; +export const exp2056 = "test"; +export const exp2057 = "test"; +export const exp2058 = "test"; +export const exp2059 = "test"; +export const exp2060 = "test"; +export const exp2061 = "test"; +export const exp2062 = "test"; +export const exp2063 = "test"; +export const exp2064 = "test"; +export const exp2065 = "test"; +export const exp2066 = "test"; +export const exp2067 = "test"; +export const exp2068 = "test"; +export const exp2069 = "test"; +export const exp2070 = "test"; +export const exp2071 = "test"; +export const exp2072 = "test"; +export const exp2073 = "test"; +export const exp2074 = "test"; +export const exp2075 = "test"; +export const exp2076 = "test"; +export const exp2077 = "test"; +export const exp2078 = "test"; +export const exp2079 = "test"; +export const exp2080 = "test"; +export const exp2081 = "test"; +export const exp2082 = "test"; +export const exp2083 = "test"; +export const exp2084 = "test"; +export const exp2085 = "test"; +export const exp2086 = "test"; +export const exp2087 = "test"; +export const exp2088 = "test"; +export const exp2089 = "test"; +export const exp2090 = "test"; +export const exp2091 = "test"; +export const exp2092 = "test"; +export const exp2093 = "test"; +export const exp2094 = "test"; +export const exp2095 = "test"; +export const exp2096 = "test"; +export const exp2097 = "test"; +export const exp2098 = "test"; +export const exp2099 = "test"; +export const exp2100 = "test"; +export const exp2101 = "test"; +export const exp2102 = "test"; +export const exp2103 = "test"; +export const exp2104 = "test"; +export const exp2105 = "test"; +export const exp2106 = "test"; +export const exp2107 = "test"; +export const exp2108 = "test"; +export const exp2109 = "test"; +export const exp2110 = "test"; +export const exp2111 = "test"; +export const exp2112 = "test"; +export const exp2113 = "test"; +export const exp2114 = "test"; +export const exp2115 = "test"; +export const exp2116 = "test"; +export const exp2117 = "test"; +export const exp2118 = "test"; +export const exp2119 = "test"; +export const exp2120 = "test"; +export const exp2121 = "test"; +export const exp2122 = "test"; +export const exp2123 = "test"; +export const exp2124 = "test"; +export const exp2125 = "test"; +export const exp2126 = "test"; +export const exp2127 = "test"; +export const exp2128 = "test"; +export const exp2129 = "test"; +export const exp2130 = "test"; +export const exp2131 = "test"; +export const exp2132 = "test"; +export const exp2133 = "test"; +export const exp2134 = "test"; +export const exp2135 = "test"; +export const exp2136 = "test"; +export const exp2137 = "test"; +export const exp2138 = "test"; +export const exp2139 = "test"; +export const exp2140 = "test"; +export const exp2141 = "test"; +export const exp2142 = "test"; +export const exp2143 = "test"; +export const exp2144 = "test"; +export const exp2145 = "test"; +export const exp2146 = "test"; +export const exp2147 = "test"; +export const exp2148 = "test"; +export const exp2149 = "test"; +export const exp2150 = "test"; +export const exp2151 = "test"; +export const exp2152 = "test"; +export const exp2153 = "test"; +export const exp2154 = "test"; +export const exp2155 = "test"; +export const exp2156 = "test"; +export const exp2157 = "test"; +export const exp2158 = "test"; +export const exp2159 = "test"; +export const exp2160 = "test"; +export const exp2161 = "test"; +export const exp2162 = "test"; +export const exp2163 = "test"; +export const exp2164 = "test"; +export const exp2165 = "test"; +export const exp2166 = "test"; +export const exp2167 = "test"; +export const exp2168 = "test"; +export const exp2169 = "test"; +export const exp2170 = "test"; +export const exp2171 = "test"; +export const exp2172 = "test"; +export const exp2173 = "test"; +export const exp2174 = "test"; +export const exp2175 = "test"; +export const exp2176 = "test"; +export const exp2177 = "test"; +export const exp2178 = "test"; +export const exp2179 = "test"; +export const exp2180 = "test"; +export const exp2181 = "test"; +export const exp2182 = "test"; +export const exp2183 = "test"; +export const exp2184 = "test"; +export const exp2185 = "test"; +export const exp2186 = "test"; +export const exp2187 = "test"; +export const exp2188 = "test"; +export const exp2189 = "test"; +export const exp2190 = "test"; +export const exp2191 = "test"; +export const exp2192 = "test"; +export const exp2193 = "test"; +export const exp2194 = "test"; +export const exp2195 = "test"; +export const exp2196 = "test"; +export const exp2197 = "test"; +export const exp2198 = "test"; +export const exp2199 = "test"; +export const exp2200 = "test"; +export const exp2201 = "test"; +export const exp2202 = "test"; +export const exp2203 = "test"; +export const exp2204 = "test"; +export const exp2205 = "test"; +export const exp2206 = "test"; +export const exp2207 = "test"; +export const exp2208 = "test"; +export const exp2209 = "test"; +export const exp2210 = "test"; +export const exp2211 = "test"; +export const exp2212 = "test"; +export const exp2213 = "test"; +export const exp2214 = "test"; +export const exp2215 = "test"; +export const exp2216 = "test"; +export const exp2217 = "test"; +export const exp2218 = "test"; +export const exp2219 = "test"; +export const exp2220 = "test"; +export const exp2221 = "test"; +export const exp2222 = "test"; +export const exp2223 = "test"; +export const exp2224 = "test"; +export const exp2225 = "test"; +export const exp2226 = "test"; +export const exp2227 = "test"; +export const exp2228 = "test"; +export const exp2229 = "test"; +export const exp2230 = "test"; +export const exp2231 = "test"; +export const exp2232 = "test"; +export const exp2233 = "test"; +export const exp2234 = "test"; +export const exp2235 = "test"; +export const exp2236 = "test"; +export const exp2237 = "test"; +export const exp2238 = "test"; +export const exp2239 = "test"; +export const exp2240 = "test"; +export const exp2241 = "test"; +export const exp2242 = "test"; +export const exp2243 = "test"; +export const exp2244 = "test"; +export const exp2245 = "test"; +export const exp2246 = "test"; +export const exp2247 = "test"; +export const exp2248 = "test"; +export const exp2249 = "test"; +export const exp2250 = "test"; +export const exp2251 = "test"; +export const exp2252 = "test"; +export const exp2253 = "test"; +export const exp2254 = "test"; +export const exp2255 = "test"; +export const exp2256 = "test"; +export const exp2257 = "test"; +export const exp2258 = "test"; +export const exp2259 = "test"; +export const exp2260 = "test"; +export const exp2261 = "test"; +export const exp2262 = "test"; +export const exp2263 = "test"; +export const exp2264 = "test"; +export const exp2265 = "test"; +export const exp2266 = "test"; +export const exp2267 = "test"; +export const exp2268 = "test"; +export const exp2269 = "test"; +export const exp2270 = "test"; +export const exp2271 = "test"; +export const exp2272 = "test"; +export const exp2273 = "test"; +export const exp2274 = "test"; +export const exp2275 = "test"; +export const exp2276 = "test"; +export const exp2277 = "test"; +export const exp2278 = "test"; +export const exp2279 = "test"; +export const exp2280 = "test"; +export const exp2281 = "test"; +export const exp2282 = "test"; +export const exp2283 = "test"; +export const exp2284 = "test"; +export const exp2285 = "test"; +export const exp2286 = "test"; +export const exp2287 = "test"; +export const exp2288 = "test"; +export const exp2289 = "test"; +export const exp2290 = "test"; +export const exp2291 = "test"; +export const exp2292 = "test"; +export const exp2293 = "test"; +export const exp2294 = "test"; +export const exp2295 = "test"; +export const exp2296 = "test"; +export const exp2297 = "test"; +export const exp2298 = "test"; +export const exp2299 = "test"; +export const exp2300 = "test"; +export const exp2301 = "test"; +export const exp2302 = "test"; +export const exp2303 = "test"; +export const exp2304 = "test"; +export const exp2305 = "test"; +export const exp2306 = "test"; +export const exp2307 = "test"; +export const exp2308 = "test"; +export const exp2309 = "test"; +export const exp2310 = "test"; +export const exp2311 = "test"; +export const exp2312 = "test"; +export const exp2313 = "test"; +export const exp2314 = "test"; +export const exp2315 = "test"; +export const exp2316 = "test"; +export const exp2317 = "test"; +export const exp2318 = "test"; +export const exp2319 = "test"; +export const exp2320 = "test"; +export const exp2321 = "test"; +export const exp2322 = "test"; +export const exp2323 = "test"; +export const exp2324 = "test"; +export const exp2325 = "test"; +export const exp2326 = "test"; +export const exp2327 = "test"; +export const exp2328 = "test"; +export const exp2329 = "test"; +export const exp2330 = "test"; +export const exp2331 = "test"; +export const exp2332 = "test"; +export const exp2333 = "test"; +export const exp2334 = "test"; +export const exp2335 = "test"; +export const exp2336 = "test"; +export const exp2337 = "test"; +export const exp2338 = "test"; +export const exp2339 = "test"; +export const exp2340 = "test"; +export const exp2341 = "test"; +export const exp2342 = "test"; +export const exp2343 = "test"; +export const exp2344 = "test"; +export const exp2345 = "test"; +export const exp2346 = "test"; +export const exp2347 = "test"; +export const exp2348 = "test"; +export const exp2349 = "test"; +export const exp2350 = "test"; +export const exp2351 = "test"; +export const exp2352 = "test"; +export const exp2353 = "test"; +export const exp2354 = "test"; +export const exp2355 = "test"; +export const exp2356 = "test"; +export const exp2357 = "test"; +export const exp2358 = "test"; +export const exp2359 = "test"; +export const exp2360 = "test"; +export const exp2361 = "test"; +export const exp2362 = "test"; +export const exp2363 = "test"; +export const exp2364 = "test"; +export const exp2365 = "test"; +export const exp2366 = "test"; +export const exp2367 = "test"; +export const exp2368 = "test"; +export const exp2369 = "test"; +export const exp2370 = "test"; +export const exp2371 = "test"; +export const exp2372 = "test"; +export const exp2373 = "test"; +export const exp2374 = "test"; +export const exp2375 = "test"; +export const exp2376 = "test"; +export const exp2377 = "test"; +export const exp2378 = "test"; +export const exp2379 = "test"; +export const exp2380 = "test"; +export const exp2381 = "test"; +export const exp2382 = "test"; +export const exp2383 = "test"; +export const exp2384 = "test"; +export const exp2385 = "test"; +export const exp2386 = "test"; +export const exp2387 = "test"; +export const exp2388 = "test"; +export const exp2389 = "test"; +export const exp2390 = "test"; +export const exp2391 = "test"; +export const exp2392 = "test"; +export const exp2393 = "test"; +export const exp2394 = "test"; +export const exp2395 = "test"; +export const exp2396 = "test"; +export const exp2397 = "test"; +export const exp2398 = "test"; +export const exp2399 = "test"; +export const exp2400 = "test"; +export const exp2401 = "test"; +export const exp2402 = "test"; +export const exp2403 = "test"; +export const exp2404 = "test"; +export const exp2405 = "test"; +export const exp2406 = "test"; +export const exp2407 = "test"; +export const exp2408 = "test"; +export const exp2409 = "test"; +export const exp2410 = "test"; +export const exp2411 = "test"; +export const exp2412 = "test"; +export const exp2413 = "test"; +export const exp2414 = "test"; +export const exp2415 = "test"; +export const exp2416 = "test"; +export const exp2417 = "test"; +export const exp2418 = "test"; +export const exp2419 = "test"; +export const exp2420 = "test"; +export const exp2421 = "test"; +export const exp2422 = "test"; +export const exp2423 = "test"; +export const exp2424 = "test"; +export const exp2425 = "test"; +export const exp2426 = "test"; +export const exp2427 = "test"; +export const exp2428 = "test"; +export const exp2429 = "test"; +export const exp2430 = "test"; +export const exp2431 = "test"; +export const exp2432 = "test"; +export const exp2433 = "test"; +export const exp2434 = "test"; +export const exp2435 = "test"; +export const exp2436 = "test"; +export const exp2437 = "test"; +export const exp2438 = "test"; +export const exp2439 = "test"; +export const exp2440 = "test"; +export const exp2441 = "test"; +export const exp2442 = "test"; +export const exp2443 = "test"; +export const exp2444 = "test"; +export const exp2445 = "test"; +export const exp2446 = "test"; +export const exp2447 = "test"; +export const exp2448 = "test"; +export const exp2449 = "test"; +export const exp2450 = "test"; +export const exp2451 = "test"; +export const exp2452 = "test"; +export const exp2453 = "test"; +export const exp2454 = "test"; +export const exp2455 = "test"; +export const exp2456 = "test"; +export const exp2457 = "test"; +export const exp2458 = "test"; +export const exp2459 = "test"; +export const exp2460 = "test"; +export const exp2461 = "test"; +export const exp2462 = "test"; +export const exp2463 = "test"; +export const exp2464 = "test"; +export const exp2465 = "test"; +export const exp2466 = "test"; +export const exp2467 = "test"; +export const exp2468 = "test"; +export const exp2469 = "test"; +export const exp2470 = "test"; +export const exp2471 = "test"; +export const exp2472 = "test"; +export const exp2473 = "test"; +export const exp2474 = "test"; +export const exp2475 = "test"; +export const exp2476 = "test"; +export const exp2477 = "test"; +export const exp2478 = "test"; +export const exp2479 = "test"; +export const exp2480 = "test"; +export const exp2481 = "test"; +export const exp2482 = "test"; +export const exp2483 = "test"; +export const exp2484 = "test"; +export const exp2485 = "test"; +export const exp2486 = "test"; +export const exp2487 = "test"; +export const exp2488 = "test"; +export const exp2489 = "test"; +export const exp2490 = "test"; +export const exp2491 = "test"; +export const exp2492 = "test"; +export const exp2493 = "test"; +export const exp2494 = "test"; +export const exp2495 = "test"; +export const exp2496 = "test"; +export const exp2497 = "test"; +export const exp2498 = "test"; +export const exp2499 = "test"; +export const exp2500 = "test"; +export const exp2501 = "test"; +export const exp2502 = "test"; +export const exp2503 = "test"; +export const exp2504 = "test"; +export const exp2505 = "test"; +export const exp2506 = "test"; +export const exp2507 = "test"; +export const exp2508 = "test"; +export const exp2509 = "test"; +export const exp2510 = "test"; +export const exp2511 = "test"; +export const exp2512 = "test"; +export const exp2513 = "test"; +export const exp2514 = "test"; +export const exp2515 = "test"; +export const exp2516 = "test"; +export const exp2517 = "test"; +export const exp2518 = "test"; +export const exp2519 = "test"; +export const exp2520 = "test"; +export const exp2521 = "test"; +export const exp2522 = "test"; +export const exp2523 = "test"; +export const exp2524 = "test"; +export const exp2525 = "test"; +export const exp2526 = "test"; +export const exp2527 = "test"; +export const exp2528 = "test"; +export const exp2529 = "test"; +export const exp2530 = "test"; +export const exp2531 = "test"; +export const exp2532 = "test"; +export const exp2533 = "test"; +export const exp2534 = "test"; +export const exp2535 = "test"; +export const exp2536 = "test"; +export const exp2537 = "test"; +export const exp2538 = "test"; +export const exp2539 = "test"; +export const exp2540 = "test"; +export const exp2541 = "test"; +export const exp2542 = "test"; +export const exp2543 = "test"; +export const exp2544 = "test"; +export const exp2545 = "test"; +export const exp2546 = "test"; +export const exp2547 = "test"; +export const exp2548 = "test"; +export const exp2549 = "test"; +export const exp2550 = "test"; +export const exp2551 = "test"; +export const exp2552 = "test"; +export const exp2553 = "test"; +export const exp2554 = "test"; +export const exp2555 = "test"; +export const exp2556 = "test"; +export const exp2557 = "test"; +export const exp2558 = "test"; +export const exp2559 = "test"; +export const exp2560 = "test"; +export const exp2561 = "test"; +export const exp2562 = "test"; +export const exp2563 = "test"; +export const exp2564 = "test"; +export const exp2565 = "test"; +export const exp2566 = "test"; +export const exp2567 = "test"; +export const exp2568 = "test"; +export const exp2569 = "test"; +export const exp2570 = "test"; +export const exp2571 = "test"; +export const exp2572 = "test"; +export const exp2573 = "test"; +export const exp2574 = "test"; +export const exp2575 = "test"; +export const exp2576 = "test"; +export const exp2577 = "test"; +export const exp2578 = "test"; +export const exp2579 = "test"; +export const exp2580 = "test"; +export const exp2581 = "test"; +export const exp2582 = "test"; +export const exp2583 = "test"; +export const exp2584 = "test"; +export const exp2585 = "test"; +export const exp2586 = "test"; +export const exp2587 = "test"; +export const exp2588 = "test"; +export const exp2589 = "test"; +export const exp2590 = "test"; +export const exp2591 = "test"; +export const exp2592 = "test"; +export const exp2593 = "test"; +export const exp2594 = "test"; +export const exp2595 = "test"; +export const exp2596 = "test"; +export const exp2597 = "test"; +export const exp2598 = "test"; +export const exp2599 = "test"; +export const exp2600 = "test"; +export const exp2601 = "test"; +export const exp2602 = "test"; +export const exp2603 = "test"; +export const exp2604 = "test"; +export const exp2605 = "test"; +export const exp2606 = "test"; +export const exp2607 = "test"; +export const exp2608 = "test"; +export const exp2609 = "test"; +export const exp2610 = "test"; +export const exp2611 = "test"; +export const exp2612 = "test"; +export const exp2613 = "test"; +export const exp2614 = "test"; +export const exp2615 = "test"; +export const exp2616 = "test"; +export const exp2617 = "test"; +export const exp2618 = "test"; +export const exp2619 = "test"; +export const exp2620 = "test"; +export const exp2621 = "test"; +export const exp2622 = "test"; +export const exp2623 = "test"; +export const exp2624 = "test"; +export const exp2625 = "test"; +export const exp2626 = "test"; +export const exp2627 = "test"; +export const exp2628 = "test"; +export const exp2629 = "test"; +export const exp2630 = "test"; +export const exp2631 = "test"; +export const exp2632 = "test"; +export const exp2633 = "test"; +export const exp2634 = "test"; +export const exp2635 = "test"; +export const exp2636 = "test"; +export const exp2637 = "test"; +export const exp2638 = "test"; +export const exp2639 = "test"; +export const exp2640 = "test"; +export const exp2641 = "test"; +export const exp2642 = "test"; +export const exp2643 = "test"; +export const exp2644 = "test"; +export const exp2645 = "test"; +export const exp2646 = "test"; +export const exp2647 = "test"; +export const exp2648 = "test"; +export const exp2649 = "test"; +export const exp2650 = "test"; +export const exp2651 = "test"; +export const exp2652 = "test"; +export const exp2653 = "test"; +export const exp2654 = "test"; +export const exp2655 = "test"; +export const exp2656 = "test"; +export const exp2657 = "test"; +export const exp2658 = "test"; +export const exp2659 = "test"; +export const exp2660 = "test"; +export const exp2661 = "test"; +export const exp2662 = "test"; +export const exp2663 = "test"; +export const exp2664 = "test"; +export const exp2665 = "test"; +export const exp2666 = "test"; +export const exp2667 = "test"; +export const exp2668 = "test"; +export const exp2669 = "test"; +export const exp2670 = "test"; +export const exp2671 = "test"; +export const exp2672 = "test"; +export const exp2673 = "test"; +export const exp2674 = "test"; +export const exp2675 = "test"; +export const exp2676 = "test"; +export const exp2677 = "test"; +export const exp2678 = "test"; +export const exp2679 = "test"; +export const exp2680 = "test"; +export const exp2681 = "test"; +export const exp2682 = "test"; +export const exp2683 = "test"; +export const exp2684 = "test"; +export const exp2685 = "test"; +export const exp2686 = "test"; +export const exp2687 = "test"; +export const exp2688 = "test"; +export const exp2689 = "test"; +export const exp2690 = "test"; +export const exp2691 = "test"; +export const exp2692 = "test"; +export const exp2693 = "test"; +export const exp2694 = "test"; +export const exp2695 = "test"; +export const exp2696 = "test"; +export const exp2697 = "test"; +export const exp2698 = "test"; +export const exp2699 = "test"; +export const exp2700 = "test"; +export const exp2701 = "test"; +export const exp2702 = "test"; +export const exp2703 = "test"; +export const exp2704 = "test"; +export const exp2705 = "test"; +export const exp2706 = "test"; +export const exp2707 = "test"; +export const exp2708 = "test"; +export const exp2709 = "test"; +export const exp2710 = "test"; +export const exp2711 = "test"; +export const exp2712 = "test"; +export const exp2713 = "test"; +export const exp2714 = "test"; +export const exp2715 = "test"; +export const exp2716 = "test"; +export const exp2717 = "test"; +export const exp2718 = "test"; +export const exp2719 = "test"; +export const exp2720 = "test"; +export const exp2721 = "test"; +export const exp2722 = "test"; +export const exp2723 = "test"; +export const exp2724 = "test"; +export const exp2725 = "test"; +export const exp2726 = "test"; +export const exp2727 = "test"; +export const exp2728 = "test"; +export const exp2729 = "test"; +export const exp2730 = "test"; +export const exp2731 = "test"; +export const exp2732 = "test"; +export const exp2733 = "test"; +export const exp2734 = "test"; +export const exp2735 = "test"; +export const exp2736 = "test"; +export const exp2737 = "test"; +export const exp2738 = "test"; +export const exp2739 = "test"; +export const exp2740 = "test"; +export const exp2741 = "test"; +export const exp2742 = "test"; +export const exp2743 = "test"; +export const exp2744 = "test"; +export const exp2745 = "test"; +export const exp2746 = "test"; +export const exp2747 = "test"; +export const exp2748 = "test"; +export const exp2749 = "test"; +export const exp2750 = "test"; +export const exp2751 = "test"; +export const exp2752 = "test"; +export const exp2753 = "test"; +export const exp2754 = "test"; +export const exp2755 = "test"; +export const exp2756 = "test"; +export const exp2757 = "test"; +export const exp2758 = "test"; +export const exp2759 = "test"; +export const exp2760 = "test"; +export const exp2761 = "test"; +export const exp2762 = "test"; +export const exp2763 = "test"; +export const exp2764 = "test"; +export const exp2765 = "test"; +export const exp2766 = "test"; +export const exp2767 = "test"; +export const exp2768 = "test"; +export const exp2769 = "test"; +export const exp2770 = "test"; +export const exp2771 = "test"; +export const exp2772 = "test"; +export const exp2773 = "test"; +export const exp2774 = "test"; +export const exp2775 = "test"; +export const exp2776 = "test"; +export const exp2777 = "test"; +export const exp2778 = "test"; +export const exp2779 = "test"; +export const exp2780 = "test"; +export const exp2781 = "test"; +export const exp2782 = "test"; +export const exp2783 = "test"; +export const exp2784 = "test"; +export const exp2785 = "test"; +export const exp2786 = "test"; +export const exp2787 = "test"; +export const exp2788 = "test"; +export const exp2789 = "test"; +export const exp2790 = "test"; +export const exp2791 = "test"; +export const exp2792 = "test"; +export const exp2793 = "test"; +export const exp2794 = "test"; +export const exp2795 = "test"; +export const exp2796 = "test"; +export const exp2797 = "test"; +export const exp2798 = "test"; +export const exp2799 = "test"; +export const exp2800 = "test"; +export const exp2801 = "test"; +export const exp2802 = "test"; +export const exp2803 = "test"; +export const exp2804 = "test"; +export const exp2805 = "test"; +export const exp2806 = "test"; +export const exp2807 = "test"; +export const exp2808 = "test"; +export const exp2809 = "test"; +export const exp2810 = "test"; +export const exp2811 = "test"; +export const exp2812 = "test"; +export const exp2813 = "test"; +export const exp2814 = "test"; +export const exp2815 = "test"; +export const exp2816 = "test"; +export const exp2817 = "test"; +export const exp2818 = "test"; +export const exp2819 = "test"; +export const exp2820 = "test"; +export const exp2821 = "test"; +export const exp2822 = "test"; +export const exp2823 = "test"; +export const exp2824 = "test"; +export const exp2825 = "test"; +export const exp2826 = "test"; +export const exp2827 = "test"; +export const exp2828 = "test"; +export const exp2829 = "test"; +export const exp2830 = "test"; +export const exp2831 = "test"; +export const exp2832 = "test"; +export const exp2833 = "test"; +export const exp2834 = "test"; +export const exp2835 = "test"; +export const exp2836 = "test"; +export const exp2837 = "test"; +export const exp2838 = "test"; +export const exp2839 = "test"; +export const exp2840 = "test"; +export const exp2841 = "test"; +export const exp2842 = "test"; +export const exp2843 = "test"; +export const exp2844 = "test"; +export const exp2845 = "test"; +export const exp2846 = "test"; +export const exp2847 = "test"; +export const exp2848 = "test"; +export const exp2849 = "test"; +export const exp2850 = "test"; +export const exp2851 = "test"; +export const exp2852 = "test"; +export const exp2853 = "test"; +export const exp2854 = "test"; +export const exp2855 = "test"; +export const exp2856 = "test"; +export const exp2857 = "test"; +export const exp2858 = "test"; +export const exp2859 = "test"; +export const exp2860 = "test"; +export const exp2861 = "test"; +export const exp2862 = "test"; +export const exp2863 = "test"; +export const exp2864 = "test"; +export const exp2865 = "test"; +export const exp2866 = "test"; +export const exp2867 = "test"; +export const exp2868 = "test"; +export const exp2869 = "test"; +export const exp2870 = "test"; +export const exp2871 = "test"; +export const exp2872 = "test"; +export const exp2873 = "test"; +export const exp2874 = "test"; +export const exp2875 = "test"; +export const exp2876 = "test"; +export const exp2877 = "test"; +export const exp2878 = "test"; +export const exp2879 = "test"; +export const exp2880 = "test"; +export const exp2881 = "test"; +export const exp2882 = "test"; +export const exp2883 = "test"; +export const exp2884 = "test"; +export const exp2885 = "test"; +export const exp2886 = "test"; +export const exp2887 = "test"; +export const exp2888 = "test"; +export const exp2889 = "test"; +export const exp2890 = "test"; +export const exp2891 = "test"; +export const exp2892 = "test"; +export const exp2893 = "test"; +export const exp2894 = "test"; +export const exp2895 = "test"; +export const exp2896 = "test"; +export const exp2897 = "test"; +export const exp2898 = "test"; +export const exp2899 = "test"; +export const exp2900 = "test"; +export const exp2901 = "test"; +export const exp2902 = "test"; +export const exp2903 = "test"; +export const exp2904 = "test"; +export const exp2905 = "test"; +export const exp2906 = "test"; +export const exp2907 = "test"; +export const exp2908 = "test"; +export const exp2909 = "test"; +export const exp2910 = "test"; +export const exp2911 = "test"; +export const exp2912 = "test"; +export const exp2913 = "test"; +export const exp2914 = "test"; +export const exp2915 = "test"; +export const exp2916 = "test"; +export const exp2917 = "test"; +export const exp2918 = "test"; +export const exp2919 = "test"; +export const exp2920 = "test"; +export const exp2921 = "test"; +export const exp2922 = "test"; +export const exp2923 = "test"; +export const exp2924 = "test"; +export const exp2925 = "test"; +export const exp2926 = "test"; +export const exp2927 = "test"; +export const exp2928 = "test"; +export const exp2929 = "test"; +export const exp2930 = "test"; +export const exp2931 = "test"; +export const exp2932 = "test"; +export const exp2933 = "test"; +export const exp2934 = "test"; +export const exp2935 = "test"; +export const exp2936 = "test"; +export const exp2937 = "test"; +export const exp2938 = "test"; +export const exp2939 = "test"; +export const exp2940 = "test"; +export const exp2941 = "test"; +export const exp2942 = "test"; +export const exp2943 = "test"; +export const exp2944 = "test"; +export const exp2945 = "test"; +export const exp2946 = "test"; +export const exp2947 = "test"; +export const exp2948 = "test"; +export const exp2949 = "test"; +export const exp2950 = "test"; +export const exp2951 = "test"; +export const exp2952 = "test"; +export const exp2953 = "test"; +export const exp2954 = "test"; +export const exp2955 = "test"; +export const exp2956 = "test"; +export const exp2957 = "test"; +export const exp2958 = "test"; +export const exp2959 = "test"; +export const exp2960 = "test"; +export const exp2961 = "test"; +export const exp2962 = "test"; +export const exp2963 = "test"; +export const exp2964 = "test"; +export const exp2965 = "test"; +export const exp2966 = "test"; +export const exp2967 = "test"; +export const exp2968 = "test"; +export const exp2969 = "test"; +export const exp2970 = "test"; +export const exp2971 = "test"; +export const exp2972 = "test"; +export const exp2973 = "test"; +export const exp2974 = "test"; +export const exp2975 = "test"; +export const exp2976 = "test"; +export const exp2977 = "test"; +export const exp2978 = "test"; +export const exp2979 = "test"; +export const exp2980 = "test"; +export const exp2981 = "test"; +export const exp2982 = "test"; +export const exp2983 = "test"; +export const exp2984 = "test"; +export const exp2985 = "test"; +export const exp2986 = "test"; +export const exp2987 = "test"; +export const exp2988 = "test"; +export const exp2989 = "test"; +export const exp2990 = "test"; +export const exp2991 = "test"; +export const exp2992 = "test"; +export const exp2993 = "test"; +export const exp2994 = "test"; +export const exp2995 = "test"; +export const exp2996 = "test"; +export const exp2997 = "test"; +export const exp2998 = "test"; +export const exp2999 = "test"; +export const exp3000 = "test"; +export const exp3001 = "test"; +export const exp3002 = "test"; +export const exp3003 = "test"; +export const exp3004 = "test"; +export const exp3005 = "test"; +export const exp3006 = "test"; +export const exp3007 = "test"; +export const exp3008 = "test"; +export const exp3009 = "test"; +export const exp3010 = "test"; +export const exp3011 = "test"; +export const exp3012 = "test"; +export const exp3013 = "test"; +export const exp3014 = "test"; +export const exp3015 = "test"; +export const exp3016 = "test"; +export const exp3017 = "test"; +export const exp3018 = "test"; +export const exp3019 = "test"; +export const exp3020 = "test"; +export const exp3021 = "test"; +export const exp3022 = "test"; +export const exp3023 = "test"; +export const exp3024 = "test"; +export const exp3025 = "test"; +export const exp3026 = "test"; +export const exp3027 = "test"; +export const exp3028 = "test"; +export const exp3029 = "test"; +export const exp3030 = "test"; +export const exp3031 = "test"; +export const exp3032 = "test"; +export const exp3033 = "test"; +export const exp3034 = "test"; +export const exp3035 = "test"; +export const exp3036 = "test"; +export const exp3037 = "test"; +export const exp3038 = "test"; +export const exp3039 = "test"; +export const exp3040 = "test"; +export const exp3041 = "test"; +export const exp3042 = "test"; +export const exp3043 = "test"; +export const exp3044 = "test"; +export const exp3045 = "test"; +export const exp3046 = "test"; +export const exp3047 = "test"; +export const exp3048 = "test"; +export const exp3049 = "test"; +export const exp3050 = "test"; +export const exp3051 = "test"; +export const exp3052 = "test"; +export const exp3053 = "test"; +export const exp3054 = "test"; +export const exp3055 = "test"; +export const exp3056 = "test"; +export const exp3057 = "test"; +export const exp3058 = "test"; +export const exp3059 = "test"; +export const exp3060 = "test"; +export const exp3061 = "test"; +export const exp3062 = "test"; +export const exp3063 = "test"; +export const exp3064 = "test"; +export const exp3065 = "test"; +export const exp3066 = "test"; +export const exp3067 = "test"; +export const exp3068 = "test"; +export const exp3069 = "test"; +export const exp3070 = "test"; +export const exp3071 = "test"; +export const exp3072 = "test"; +export const exp3073 = "test"; +export const exp3074 = "test"; +export const exp3075 = "test"; +export const exp3076 = "test"; +export const exp3077 = "test"; +export const exp3078 = "test"; +export const exp3079 = "test"; +export const exp3080 = "test"; +export const exp3081 = "test"; +export const exp3082 = "test"; +export const exp3083 = "test"; +export const exp3084 = "test"; +export const exp3085 = "test"; +export const exp3086 = "test"; +export const exp3087 = "test"; +export const exp3088 = "test"; +export const exp3089 = "test"; +export const exp3090 = "test"; +export const exp3091 = "test"; +export const exp3092 = "test"; +export const exp3093 = "test"; +export const exp3094 = "test"; +export const exp3095 = "test"; +export const exp3096 = "test"; +export const exp3097 = "test"; +export const exp3098 = "test"; +export const exp3099 = "test"; +export const exp3100 = "test"; +export const exp3101 = "test"; +export const exp3102 = "test"; +export const exp3103 = "test"; +export const exp3104 = "test"; +export const exp3105 = "test"; +export const exp3106 = "test"; +export const exp3107 = "test"; +export const exp3108 = "test"; +export const exp3109 = "test"; +export const exp3110 = "test"; +export const exp3111 = "test"; +export const exp3112 = "test"; +export const exp3113 = "test"; +export const exp3114 = "test"; +export const exp3115 = "test"; +export const exp3116 = "test"; +export const exp3117 = "test"; +export const exp3118 = "test"; +export const exp3119 = "test"; +export const exp3120 = "test"; +export const exp3121 = "test"; +export const exp3122 = "test"; +export const exp3123 = "test"; +export const exp3124 = "test"; +export const exp3125 = "test"; +export const exp3126 = "test"; +export const exp3127 = "test"; +export const exp3128 = "test"; +export const exp3129 = "test"; +export const exp3130 = "test"; +export const exp3131 = "test"; +export const exp3132 = "test"; +export const exp3133 = "test"; +export const exp3134 = "test"; +export const exp3135 = "test"; +export const exp3136 = "test"; +export const exp3137 = "test"; +export const exp3138 = "test"; +export const exp3139 = "test"; +export const exp3140 = "test"; +export const exp3141 = "test"; +export const exp3142 = "test"; +export const exp3143 = "test"; +export const exp3144 = "test"; +export const exp3145 = "test"; +export const exp3146 = "test"; +export const exp3147 = "test"; +export const exp3148 = "test"; +export const exp3149 = "test"; +export const exp3150 = "test"; +export const exp3151 = "test"; +export const exp3152 = "test"; +export const exp3153 = "test"; +export const exp3154 = "test"; +export const exp3155 = "test"; +export const exp3156 = "test"; +export const exp3157 = "test"; +export const exp3158 = "test"; +export const exp3159 = "test"; +export const exp3160 = "test"; +export const exp3161 = "test"; +export const exp3162 = "test"; +export const exp3163 = "test"; +export const exp3164 = "test"; +export const exp3165 = "test"; +export const exp3166 = "test"; +export const exp3167 = "test"; +export const exp3168 = "test"; +export const exp3169 = "test"; +export const exp3170 = "test"; +export const exp3171 = "test"; +export const exp3172 = "test"; +export const exp3173 = "test"; +export const exp3174 = "test"; +export const exp3175 = "test"; +export const exp3176 = "test"; +export const exp3177 = "test"; +export const exp3178 = "test"; +export const exp3179 = "test"; +export const exp3180 = "test"; +export const exp3181 = "test"; +export const exp3182 = "test"; +export const exp3183 = "test"; +export const exp3184 = "test"; +export const exp3185 = "test"; +export const exp3186 = "test"; +export const exp3187 = "test"; +export const exp3188 = "test"; +export const exp3189 = "test"; +export const exp3190 = "test"; +export const exp3191 = "test"; +export const exp3192 = "test"; +export const exp3193 = "test"; +export const exp3194 = "test"; +export const exp3195 = "test"; +export const exp3196 = "test"; +export const exp3197 = "test"; +export const exp3198 = "test"; +export const exp3199 = "test"; +export const exp3200 = "test"; +export const exp3201 = "test"; +export const exp3202 = "test"; +export const exp3203 = "test"; +export const exp3204 = "test"; +export const exp3205 = "test"; +export const exp3206 = "test"; +export const exp3207 = "test"; +export const exp3208 = "test"; +export const exp3209 = "test"; +export const exp3210 = "test"; +export const exp3211 = "test"; +export const exp3212 = "test"; +export const exp3213 = "test"; +export const exp3214 = "test"; +export const exp3215 = "test"; +export const exp3216 = "test"; +export const exp3217 = "test"; +export const exp3218 = "test"; +export const exp3219 = "test"; +export const exp3220 = "test"; +export const exp3221 = "test"; +export const exp3222 = "test"; +export const exp3223 = "test"; +export const exp3224 = "test"; +export const exp3225 = "test"; +export const exp3226 = "test"; +export const exp3227 = "test"; +export const exp3228 = "test"; +export const exp3229 = "test"; +export const exp3230 = "test"; +export const exp3231 = "test"; +export const exp3232 = "test"; +export const exp3233 = "test"; +export const exp3234 = "test"; +export const exp3235 = "test"; +export const exp3236 = "test"; +export const exp3237 = "test"; +export const exp3238 = "test"; +export const exp3239 = "test"; +export const exp3240 = "test"; +export const exp3241 = "test"; +export const exp3242 = "test"; +export const exp3243 = "test"; +export const exp3244 = "test"; +export const exp3245 = "test"; +export const exp3246 = "test"; +export const exp3247 = "test"; +export const exp3248 = "test"; +export const exp3249 = "test"; +export const exp3250 = "test"; +export const exp3251 = "test"; +export const exp3252 = "test"; +export const exp3253 = "test"; +export const exp3254 = "test"; +export const exp3255 = "test"; +export const exp3256 = "test"; +export const exp3257 = "test"; +export const exp3258 = "test"; +export const exp3259 = "test"; +export const exp3260 = "test"; +export const exp3261 = "test"; +export const exp3262 = "test"; +export const exp3263 = "test"; +export const exp3264 = "test"; +export const exp3265 = "test"; +export const exp3266 = "test"; +export const exp3267 = "test"; +export const exp3268 = "test"; +export const exp3269 = "test"; +export const exp3270 = "test"; +export const exp3271 = "test"; +export const exp3272 = "test"; +export const exp3273 = "test"; +export const exp3274 = "test"; +export const exp3275 = "test"; +export const exp3276 = "test"; +export const exp3277 = "test"; +export const exp3278 = "test"; +export const exp3279 = "test"; +export const exp3280 = "test"; +export const exp3281 = "test"; +export const exp3282 = "test"; +export const exp3283 = "test"; +export const exp3284 = "test"; +export const exp3285 = "test"; +export const exp3286 = "test"; +export const exp3287 = "test"; +export const exp3288 = "test"; +export const exp3289 = "test"; +export const exp3290 = "test"; +export const exp3291 = "test"; +export const exp3292 = "test"; +export const exp3293 = "test"; +export const exp3294 = "test"; +export const exp3295 = "test"; +export const exp3296 = "test"; +export const exp3297 = "test"; +export const exp3298 = "test"; +export const exp3299 = "test"; +export const exp3300 = "test"; +export const exp3301 = "test"; +export const exp3302 = "test"; +export const exp3303 = "test"; +export const exp3304 = "test"; +export const exp3305 = "test"; +export const exp3306 = "test"; +export const exp3307 = "test"; +export const exp3308 = "test"; +export const exp3309 = "test"; +export const exp3310 = "test"; +export const exp3311 = "test"; +export const exp3312 = "test"; +export const exp3313 = "test"; +export const exp3314 = "test"; +export const exp3315 = "test"; +export const exp3316 = "test"; +export const exp3317 = "test"; +export const exp3318 = "test"; +export const exp3319 = "test"; +export const exp3320 = "test"; +export const exp3321 = "test"; +export const exp3322 = "test"; +export const exp3323 = "test"; +export const exp3324 = "test"; +export const exp3325 = "test"; +export const exp3326 = "test"; +export const exp3327 = "test"; +export const exp3328 = "test"; +export const exp3329 = "test"; +export const exp3330 = "test"; +export const exp3331 = "test"; +export const exp3332 = "test"; +export const exp3333 = "test"; +export const exp3334 = "test"; +export const exp3335 = "test"; +export const exp3336 = "test"; +export const exp3337 = "test"; +export const exp3338 = "test"; +export const exp3339 = "test"; +export const exp3340 = "test"; +export const exp3341 = "test"; +export const exp3342 = "test"; +export const exp3343 = "test"; +export const exp3344 = "test"; +export const exp3345 = "test"; +export const exp3346 = "test"; +export const exp3347 = "test"; +export const exp3348 = "test"; +export const exp3349 = "test"; +export const exp3350 = "test"; +export const exp3351 = "test"; +export const exp3352 = "test"; +export const exp3353 = "test"; +export const exp3354 = "test"; +export const exp3355 = "test"; +export const exp3356 = "test"; +export const exp3357 = "test"; +export const exp3358 = "test"; +export const exp3359 = "test"; +export const exp3360 = "test"; +export const exp3361 = "test"; +export const exp3362 = "test"; +export const exp3363 = "test"; +export const exp3364 = "test"; +export const exp3365 = "test"; +export const exp3366 = "test"; +export const exp3367 = "test"; +export const exp3368 = "test"; +export const exp3369 = "test"; +export const exp3370 = "test"; +export const exp3371 = "test"; +export const exp3372 = "test"; +export const exp3373 = "test"; +export const exp3374 = "test"; +export const exp3375 = "test"; +export const exp3376 = "test"; +export const exp3377 = "test"; +export const exp3378 = "test"; +export const exp3379 = "test"; +export const exp3380 = "test"; +export const exp3381 = "test"; +export const exp3382 = "test"; +export const exp3383 = "test"; +export const exp3384 = "test"; +export const exp3385 = "test"; +export const exp3386 = "test"; +export const exp3387 = "test"; +export const exp3388 = "test"; +export const exp3389 = "test"; +export const exp3390 = "test"; +export const exp3391 = "test"; +export const exp3392 = "test"; +export const exp3393 = "test"; +export const exp3394 = "test"; +export const exp3395 = "test"; +export const exp3396 = "test"; +export const exp3397 = "test"; +export const exp3398 = "test"; +export const exp3399 = "test"; +export const exp3400 = "test"; +export const exp3401 = "test"; +export const exp3402 = "test"; +export const exp3403 = "test"; +export const exp3404 = "test"; +export const exp3405 = "test"; +export const exp3406 = "test"; +export const exp3407 = "test"; +export const exp3408 = "test"; +export const exp3409 = "test"; +export const exp3410 = "test"; +export const exp3411 = "test"; +export const exp3412 = "test"; +export const exp3413 = "test"; +export const exp3414 = "test"; +export const exp3415 = "test"; +export const exp3416 = "test"; +export const exp3417 = "test"; +export const exp3418 = "test"; +export const exp3419 = "test"; +export const exp3420 = "test"; +export const exp3421 = "test"; +export const exp3422 = "test"; +export const exp3423 = "test"; +export const exp3424 = "test"; +export const exp3425 = "test"; +export const exp3426 = "test"; +export const exp3427 = "test"; +export const exp3428 = "test"; +export const exp3429 = "test"; +export const exp3430 = "test"; +export const exp3431 = "test"; +export const exp3432 = "test"; +export const exp3433 = "test"; +export const exp3434 = "test"; +export const exp3435 = "test"; +export const exp3436 = "test"; +export const exp3437 = "test"; +export const exp3438 = "test"; +export const exp3439 = "test"; +export const exp3440 = "test"; +export const exp3441 = "test"; +export const exp3442 = "test"; +export const exp3443 = "test"; +export const exp3444 = "test"; +export const exp3445 = "test"; +export const exp3446 = "test"; +export const exp3447 = "test"; +export const exp3448 = "test"; +export const exp3449 = "test"; +export const exp3450 = "test"; +export const exp3451 = "test"; +export const exp3452 = "test"; +export const exp3453 = "test"; +export const exp3454 = "test"; +export const exp3455 = "test"; +export const exp3456 = "test"; +export const exp3457 = "test"; +export const exp3458 = "test"; +export const exp3459 = "test"; +export const exp3460 = "test"; +export const exp3461 = "test"; +export const exp3462 = "test"; +export const exp3463 = "test"; +export const exp3464 = "test"; +export const exp3465 = "test"; +export const exp3466 = "test"; +export const exp3467 = "test"; +export const exp3468 = "test"; +export const exp3469 = "test"; +export const exp3470 = "test"; +export const exp3471 = "test"; +export const exp3472 = "test"; +export const exp3473 = "test"; +export const exp3474 = "test"; +export const exp3475 = "test"; +export const exp3476 = "test"; +export const exp3477 = "test"; +export const exp3478 = "test"; +export const exp3479 = "test"; +export const exp3480 = "test"; +export const exp3481 = "test"; +export const exp3482 = "test"; +export const exp3483 = "test"; +export const exp3484 = "test"; +export const exp3485 = "test"; +export const exp3486 = "test"; +export const exp3487 = "test"; +export const exp3488 = "test"; +export const exp3489 = "test"; +export const exp3490 = "test"; +export const exp3491 = "test"; +export const exp3492 = "test"; +export const exp3493 = "test"; +export const exp3494 = "test"; +export const exp3495 = "test"; +export const exp3496 = "test"; +export const exp3497 = "test"; +export const exp3498 = "test"; +export const exp3499 = "test"; +export const exp3500 = "test"; +export const exp3501 = "test"; +export const exp3502 = "test"; +export const exp3503 = "test"; +export const exp3504 = "test"; +export const exp3505 = "test"; +export const exp3506 = "test"; +export const exp3507 = "test"; +export const exp3508 = "test"; +export const exp3509 = "test"; +export const exp3510 = "test"; +export const exp3511 = "test"; +export const exp3512 = "test"; +export const exp3513 = "test"; +export const exp3514 = "test"; +export const exp3515 = "test"; +export const exp3516 = "test"; +export const exp3517 = "test"; +export const exp3518 = "test"; +export const exp3519 = "test"; +export const exp3520 = "test"; +export const exp3521 = "test"; +export const exp3522 = "test"; +export const exp3523 = "test"; +export const exp3524 = "test"; +export const exp3525 = "test"; +export const exp3526 = "test"; +export const exp3527 = "test"; +export const exp3528 = "test"; +export const exp3529 = "test"; +export const exp3530 = "test"; +export const exp3531 = "test"; +export const exp3532 = "test"; +export const exp3533 = "test"; +export const exp3534 = "test"; +export const exp3535 = "test"; +export const exp3536 = "test"; +export const exp3537 = "test"; +export const exp3538 = "test"; +export const exp3539 = "test"; +export const exp3540 = "test"; +export const exp3541 = "test"; +export const exp3542 = "test"; +export const exp3543 = "test"; +export const exp3544 = "test"; +export const exp3545 = "test"; +export const exp3546 = "test"; +export const exp3547 = "test"; +export const exp3548 = "test"; +export const exp3549 = "test"; +export const exp3550 = "test"; +export const exp3551 = "test"; +export const exp3552 = "test"; +export const exp3553 = "test"; +export const exp3554 = "test"; +export const exp3555 = "test"; +export const exp3556 = "test"; +export const exp3557 = "test"; +export const exp3558 = "test"; +export const exp3559 = "test"; +export const exp3560 = "test"; +export const exp3561 = "test"; +export const exp3562 = "test"; +export const exp3563 = "test"; +export const exp3564 = "test"; +export const exp3565 = "test"; +export const exp3566 = "test"; +export const exp3567 = "test"; +export const exp3568 = "test"; +export const exp3569 = "test"; +export const exp3570 = "test"; +export const exp3571 = "test"; +export const exp3572 = "test"; +export const exp3573 = "test"; +export const exp3574 = "test"; +export const exp3575 = "test"; +export const exp3576 = "test"; +export const exp3577 = "test"; +export const exp3578 = "test"; +export const exp3579 = "test"; +export const exp3580 = "test"; +export const exp3581 = "test"; +export const exp3582 = "test"; +export const exp3583 = "test"; +export const exp3584 = "test"; +export const exp3585 = "test"; +export const exp3586 = "test"; +export const exp3587 = "test"; +export const exp3588 = "test"; +export const exp3589 = "test"; +export const exp3590 = "test"; +export const exp3591 = "test"; +export const exp3592 = "test"; +export const exp3593 = "test"; +export const exp3594 = "test"; +export const exp3595 = "test"; +export const exp3596 = "test"; +export const exp3597 = "test"; +export const exp3598 = "test"; +export const exp3599 = "test"; +export const exp3600 = "test"; +export const exp3601 = "test"; +export const exp3602 = "test"; +export const exp3603 = "test"; +export const exp3604 = "test"; +export const exp3605 = "test"; +export const exp3606 = "test"; +export const exp3607 = "test"; +export const exp3608 = "test"; +export const exp3609 = "test"; +export const exp3610 = "test"; +export const exp3611 = "test"; +export const exp3612 = "test"; +export const exp3613 = "test"; +export const exp3614 = "test"; +export const exp3615 = "test"; +export const exp3616 = "test"; +export const exp3617 = "test"; +export const exp3618 = "test"; +export const exp3619 = "test"; +export const exp3620 = "test"; +export const exp3621 = "test"; +export const exp3622 = "test"; +export const exp3623 = "test"; +export const exp3624 = "test"; +export const exp3625 = "test"; +export const exp3626 = "test"; +export const exp3627 = "test"; +export const exp3628 = "test"; +export const exp3629 = "test"; +export const exp3630 = "test"; +export const exp3631 = "test"; +export const exp3632 = "test"; +export const exp3633 = "test"; +export const exp3634 = "test"; +export const exp3635 = "test"; +export const exp3636 = "test"; +export const exp3637 = "test"; +export const exp3638 = "test"; +export const exp3639 = "test"; +export const exp3640 = "test"; +export const exp3641 = "test"; +export const exp3642 = "test"; +export const exp3643 = "test"; +export const exp3644 = "test"; +export const exp3645 = "test"; +export const exp3646 = "test"; +export const exp3647 = "test"; +export const exp3648 = "test"; +export const exp3649 = "test"; +export const exp3650 = "test"; +export const exp3651 = "test"; +export const exp3652 = "test"; +export const exp3653 = "test"; +export const exp3654 = "test"; +export const exp3655 = "test"; +export const exp3656 = "test"; +export const exp3657 = "test"; +export const exp3658 = "test"; +export const exp3659 = "test"; +export const exp3660 = "test"; +export const exp3661 = "test"; +export const exp3662 = "test"; +export const exp3663 = "test"; +export const exp3664 = "test"; +export const exp3665 = "test"; +export const exp3666 = "test"; +export const exp3667 = "test"; +export const exp3668 = "test"; +export const exp3669 = "test"; +export const exp3670 = "test"; +export const exp3671 = "test"; +export const exp3672 = "test"; +export const exp3673 = "test"; +export const exp3674 = "test"; +export const exp3675 = "test"; +export const exp3676 = "test"; +export const exp3677 = "test"; +export const exp3678 = "test"; +export const exp3679 = "test"; +export const exp3680 = "test"; +export const exp3681 = "test"; +export const exp3682 = "test"; +export const exp3683 = "test"; +export const exp3684 = "test"; +export const exp3685 = "test"; +export const exp3686 = "test"; +export const exp3687 = "test"; +export const exp3688 = "test"; +export const exp3689 = "test"; +export const exp3690 = "test"; +export const exp3691 = "test"; +export const exp3692 = "test"; +export const exp3693 = "test"; +export const exp3694 = "test"; +export const exp3695 = "test"; +export const exp3696 = "test"; +export const exp3697 = "test"; +export const exp3698 = "test"; +export const exp3699 = "test"; +export const exp3700 = "test"; +export const exp3701 = "test"; +export const exp3702 = "test"; +export const exp3703 = "test"; +export const exp3704 = "test"; +export const exp3705 = "test"; +export const exp3706 = "test"; +export const exp3707 = "test"; +export const exp3708 = "test"; +export const exp3709 = "test"; +export const exp3710 = "test"; +export const exp3711 = "test"; +export const exp3712 = "test"; +export const exp3713 = "test"; +export const exp3714 = "test"; +export const exp3715 = "test"; +export const exp3716 = "test"; +export const exp3717 = "test"; +export const exp3718 = "test"; +export const exp3719 = "test"; +export const exp3720 = "test"; +export const exp3721 = "test"; +export const exp3722 = "test"; +export const exp3723 = "test"; +export const exp3724 = "test"; +export const exp3725 = "test"; +export const exp3726 = "test"; +export const exp3727 = "test"; +export const exp3728 = "test"; +export const exp3729 = "test"; +export const exp3730 = "test"; +export const exp3731 = "test"; +export const exp3732 = "test"; +export const exp3733 = "test"; +export const exp3734 = "test"; +export const exp3735 = "test"; +export const exp3736 = "test"; +export const exp3737 = "test"; +export const exp3738 = "test"; +export const exp3739 = "test"; +export const exp3740 = "test"; +export const exp3741 = "test"; +export const exp3742 = "test"; +export const exp3743 = "test"; +export const exp3744 = "test"; +export const exp3745 = "test"; +export const exp3746 = "test"; +export const exp3747 = "test"; +export const exp3748 = "test"; +export const exp3749 = "test"; +export const exp3750 = "test"; +export const exp3751 = "test"; +export const exp3752 = "test"; +export const exp3753 = "test"; +export const exp3754 = "test"; +export const exp3755 = "test"; +export const exp3756 = "test"; +export const exp3757 = "test"; +export const exp3758 = "test"; +export const exp3759 = "test"; +export const exp3760 = "test"; +export const exp3761 = "test"; +export const exp3762 = "test"; +export const exp3763 = "test"; +export const exp3764 = "test"; +export const exp3765 = "test"; +export const exp3766 = "test"; +export const exp3767 = "test"; +export const exp3768 = "test"; +export const exp3769 = "test"; +export const exp3770 = "test"; +export const exp3771 = "test"; +export const exp3772 = "test"; +export const exp3773 = "test"; +export const exp3774 = "test"; +export const exp3775 = "test"; +export const exp3776 = "test"; +export const exp3777 = "test"; +export const exp3778 = "test"; +export const exp3779 = "test"; +export const exp3780 = "test"; +export const exp3781 = "test"; +export const exp3782 = "test"; +export const exp3783 = "test"; +export const exp3784 = "test"; +export const exp3785 = "test"; +export const exp3786 = "test"; +export const exp3787 = "test"; +export const exp3788 = "test"; +export const exp3789 = "test"; +export const exp3790 = "test"; +export const exp3791 = "test"; +export const exp3792 = "test"; +export const exp3793 = "test"; +export const exp3794 = "test"; +export const exp3795 = "test"; +export const exp3796 = "test"; +export const exp3797 = "test"; +export const exp3798 = "test"; +export const exp3799 = "test"; +export const exp3800 = "test"; +export const exp3801 = "test"; +export const exp3802 = "test"; +export const exp3803 = "test"; +export const exp3804 = "test"; +export const exp3805 = "test"; +export const exp3806 = "test"; +export const exp3807 = "test"; +export const exp3808 = "test"; +export const exp3809 = "test"; +export const exp3810 = "test"; +export const exp3811 = "test"; +export const exp3812 = "test"; +export const exp3813 = "test"; +export const exp3814 = "test"; +export const exp3815 = "test"; +export const exp3816 = "test"; +export const exp3817 = "test"; +export const exp3818 = "test"; +export const exp3819 = "test"; +export const exp3820 = "test"; +export const exp3821 = "test"; +export const exp3822 = "test"; +export const exp3823 = "test"; +export const exp3824 = "test"; +export const exp3825 = "test"; +export const exp3826 = "test"; +export const exp3827 = "test"; +export const exp3828 = "test"; +export const exp3829 = "test"; +export const exp3830 = "test"; +export const exp3831 = "test"; +export const exp3832 = "test"; +export const exp3833 = "test"; +export const exp3834 = "test"; +export const exp3835 = "test"; +export const exp3836 = "test"; +export const exp3837 = "test"; +export const exp3838 = "test"; +export const exp3839 = "test"; +export const exp3840 = "test"; +export const exp3841 = "test"; +export const exp3842 = "test"; +export const exp3843 = "test"; +export const exp3844 = "test"; +export const exp3845 = "test"; +export const exp3846 = "test"; +export const exp3847 = "test"; +export const exp3848 = "test"; +export const exp3849 = "test"; +export const exp3850 = "test"; +export const exp3851 = "test"; +export const exp3852 = "test"; +export const exp3853 = "test"; +export const exp3854 = "test"; +export const exp3855 = "test"; +export const exp3856 = "test"; +export const exp3857 = "test"; +export const exp3858 = "test"; +export const exp3859 = "test"; +export const exp3860 = "test"; +export const exp3861 = "test"; +export const exp3862 = "test"; +export const exp3863 = "test"; +export const exp3864 = "test"; +export const exp3865 = "test"; +export const exp3866 = "test"; +export const exp3867 = "test"; +export const exp3868 = "test"; +export const exp3869 = "test"; +export const exp3870 = "test"; +export const exp3871 = "test"; +export const exp3872 = "test"; +export const exp3873 = "test"; +export const exp3874 = "test"; +export const exp3875 = "test"; +export const exp3876 = "test"; +export const exp3877 = "test"; +export const exp3878 = "test"; +export const exp3879 = "test"; +export const exp3880 = "test"; +export const exp3881 = "test"; +export const exp3882 = "test"; +export const exp3883 = "test"; +export const exp3884 = "test"; +export const exp3885 = "test"; +export const exp3886 = "test"; +export const exp3887 = "test"; +export const exp3888 = "test"; +export const exp3889 = "test"; +export const exp3890 = "test"; +export const exp3891 = "test"; +export const exp3892 = "test"; +export const exp3893 = "test"; +export const exp3894 = "test"; +export const exp3895 = "test"; +export const exp3896 = "test"; +export const exp3897 = "test"; +export const exp3898 = "test"; +export const exp3899 = "test"; +export const exp3900 = "test"; +export const exp3901 = "test"; +export const exp3902 = "test"; +export const exp3903 = "test"; +export const exp3904 = "test"; +export const exp3905 = "test"; +export const exp3906 = "test"; +export const exp3907 = "test"; +export const exp3908 = "test"; +export const exp3909 = "test"; +export const exp3910 = "test"; +export const exp3911 = "test"; +export const exp3912 = "test"; +export const exp3913 = "test"; +export const exp3914 = "test"; +export const exp3915 = "test"; +export const exp3916 = "test"; +export const exp3917 = "test"; +export const exp3918 = "test"; +export const exp3919 = "test"; +export const exp3920 = "test"; +export const exp3921 = "test"; +export const exp3922 = "test"; +export const exp3923 = "test"; +export const exp3924 = "test"; +export const exp3925 = "test"; +export const exp3926 = "test"; +export const exp3927 = "test"; +export const exp3928 = "test"; +export const exp3929 = "test"; +export const exp3930 = "test"; +export const exp3931 = "test"; +export const exp3932 = "test"; +export const exp3933 = "test"; +export const exp3934 = "test"; +export const exp3935 = "test"; +export const exp3936 = "test"; +export const exp3937 = "test"; +export const exp3938 = "test"; +export const exp3939 = "test"; +export const exp3940 = "test"; +export const exp3941 = "test"; +export const exp3942 = "test"; +export const exp3943 = "test"; +export const exp3944 = "test"; +export const exp3945 = "test"; +export const exp3946 = "test"; +export const exp3947 = "test"; +export const exp3948 = "test"; +export const exp3949 = "test"; +export const exp3950 = "test"; +export const exp3951 = "test"; +export const exp3952 = "test"; +export const exp3953 = "test"; +export const exp3954 = "test"; +export const exp3955 = "test"; +export const exp3956 = "test"; +export const exp3957 = "test"; +export const exp3958 = "test"; +export const exp3959 = "test"; +export const exp3960 = "test"; +export const exp3961 = "test"; +export const exp3962 = "test"; +export const exp3963 = "test"; +export const exp3964 = "test"; +export const exp3965 = "test"; +export const exp3966 = "test"; +export const exp3967 = "test"; +export const exp3968 = "test"; +export const exp3969 = "test"; +export const exp3970 = "test"; +export const exp3971 = "test"; +export const exp3972 = "test"; +export const exp3973 = "test"; +export const exp3974 = "test"; +export const exp3975 = "test"; +export const exp3976 = "test"; +export const exp3977 = "test"; +export const exp3978 = "test"; +export const exp3979 = "test"; +export const exp3980 = "test"; +export const exp3981 = "test"; +export const exp3982 = "test"; +export const exp3983 = "test"; +export const exp3984 = "test"; +export const exp3985 = "test"; +export const exp3986 = "test"; +export const exp3987 = "test"; +export const exp3988 = "test"; +export const exp3989 = "test"; +export const exp3990 = "test"; +export const exp3991 = "test"; +export const exp3992 = "test"; +export const exp3993 = "test"; +export const exp3994 = "test"; +export const exp3995 = "test"; +export const exp3996 = "test"; +export const exp3997 = "test"; +export const exp3998 = "test"; +export const exp3999 = "test"; +export const exp4000 = "test"; +export const exp4001 = "test"; +export const exp4002 = "test"; +export const exp4003 = "test"; +export const exp4004 = "test"; +export const exp4005 = "test"; +export const exp4006 = "test"; +export const exp4007 = "test"; +export const exp4008 = "test"; +export const exp4009 = "test"; +export const exp4010 = "test"; +export const exp4011 = "test"; +export const exp4012 = "test"; +export const exp4013 = "test"; +export const exp4014 = "test"; +export const exp4015 = "test"; +export const exp4016 = "test"; +export const exp4017 = "test"; +export const exp4018 = "test"; +export const exp4019 = "test"; +export const exp4020 = "test"; +export const exp4021 = "test"; +export const exp4022 = "test"; +export const exp4023 = "test"; +export const exp4024 = "test"; +export const exp4025 = "test"; +export const exp4026 = "test"; +export const exp4027 = "test"; +export const exp4028 = "test"; +export const exp4029 = "test"; +export const exp4030 = "test"; +export const exp4031 = "test"; +export const exp4032 = "test"; +export const exp4033 = "test"; +export const exp4034 = "test"; +export const exp4035 = "test"; +export const exp4036 = "test"; +export const exp4037 = "test"; +export const exp4038 = "test"; +export const exp4039 = "test"; +export const exp4040 = "test"; +export const exp4041 = "test"; +export const exp4042 = "test"; +export const exp4043 = "test"; +export const exp4044 = "test"; +export const exp4045 = "test"; +export const exp4046 = "test"; +export const exp4047 = "test"; +export const exp4048 = "test"; +export const exp4049 = "test"; +export const exp4050 = "test"; +export const exp4051 = "test"; +export const exp4052 = "test"; +export const exp4053 = "test"; +export const exp4054 = "test"; +export const exp4055 = "test"; +export const exp4056 = "test"; +export const exp4057 = "test"; +export const exp4058 = "test"; +export const exp4059 = "test"; +export const exp4060 = "test"; +export const exp4061 = "test"; +export const exp4062 = "test"; +export const exp4063 = "test"; +export const exp4064 = "test"; +export const exp4065 = "test"; +export const exp4066 = "test"; +export const exp4067 = "test"; +export const exp4068 = "test"; +export const exp4069 = "test"; +export const exp4070 = "test"; +export const exp4071 = "test"; +export const exp4072 = "test"; +export const exp4073 = "test"; +export const exp4074 = "test"; +export const exp4075 = "test"; +export const exp4076 = "test"; +export const exp4077 = "test"; +export const exp4078 = "test"; +export const exp4079 = "test"; +export const exp4080 = "test"; +export const exp4081 = "test"; +export const exp4082 = "test"; +export const exp4083 = "test"; +export const exp4084 = "test"; +export const exp4085 = "test"; +export const exp4086 = "test"; +export const exp4087 = "test"; +export const exp4088 = "test"; +export const exp4089 = "test"; +export const exp4090 = "test"; +export const exp4091 = "test"; +export const exp4092 = "test"; +export const exp4093 = "test"; +export const exp4094 = "test"; +export const exp4095 = "test"; +export const exp4096 = "test"; +export const exp4097 = "test"; +export const exp4098 = "test"; +export const exp4099 = "test"; +export const exp4100 = "test"; +export const exp4101 = "test"; +export const exp4102 = "test"; +export const exp4103 = "test"; +export const exp4104 = "test"; +export const exp4105 = "test"; +export const exp4106 = "test"; +export const exp4107 = "test"; +export const exp4108 = "test"; +export const exp4109 = "test"; +export const exp4110 = "test"; +export const exp4111 = "test"; +export const exp4112 = "test"; +export const exp4113 = "test"; +export const exp4114 = "test"; +export const exp4115 = "test"; +export const exp4116 = "test"; +export const exp4117 = "test"; +export const exp4118 = "test"; +export const exp4119 = "test"; +export const exp4120 = "test"; +export const exp4121 = "test"; +export const exp4122 = "test"; +export const exp4123 = "test"; +export const exp4124 = "test"; +export const exp4125 = "test"; +export const exp4126 = "test"; +export const exp4127 = "test"; +export const exp4128 = "test"; +export const exp4129 = "test"; +export const exp4130 = "test"; +export const exp4131 = "test"; +export const exp4132 = "test"; +export const exp4133 = "test"; +export const exp4134 = "test"; +export const exp4135 = "test"; +export const exp4136 = "test"; +export const exp4137 = "test"; +export const exp4138 = "test"; +export const exp4139 = "test"; +export const exp4140 = "test"; +export const exp4141 = "test"; +export const exp4142 = "test"; +export const exp4143 = "test"; +export const exp4144 = "test"; +export const exp4145 = "test"; +export const exp4146 = "test"; +export const exp4147 = "test"; +export const exp4148 = "test"; +export const exp4149 = "test"; +export const exp4150 = "test"; +export const exp4151 = "test"; +export const exp4152 = "test"; +export const exp4153 = "test"; +export const exp4154 = "test"; +export const exp4155 = "test"; +export const exp4156 = "test"; +export const exp4157 = "test"; +export const exp4158 = "test"; +export const exp4159 = "test"; +export const exp4160 = "test"; +export const exp4161 = "test"; +export const exp4162 = "test"; +export const exp4163 = "test"; +export const exp4164 = "test"; +export const exp4165 = "test"; +export const exp4166 = "test"; +export const exp4167 = "test"; +export const exp4168 = "test"; +export const exp4169 = "test"; +export const exp4170 = "test"; +export const exp4171 = "test"; +export const exp4172 = "test"; +export const exp4173 = "test"; +export const exp4174 = "test"; +export const exp4175 = "test"; +export const exp4176 = "test"; +export const exp4177 = "test"; +export const exp4178 = "test"; +export const exp4179 = "test"; +export const exp4180 = "test"; +export const exp4181 = "test"; +export const exp4182 = "test"; +export const exp4183 = "test"; +export const exp4184 = "test"; +export const exp4185 = "test"; +export const exp4186 = "test"; +export const exp4187 = "test"; +export const exp4188 = "test"; +export const exp4189 = "test"; +export const exp4190 = "test"; +export const exp4191 = "test"; +export const exp4192 = "test"; +export const exp4193 = "test"; +export const exp4194 = "test"; +export const exp4195 = "test"; +export const exp4196 = "test"; +export const exp4197 = "test"; +export const exp4198 = "test"; +export const exp4199 = "test"; +export const exp4200 = "test"; +export const exp4201 = "test"; +export const exp4202 = "test"; +export const exp4203 = "test"; +export const exp4204 = "test"; +export const exp4205 = "test"; +export const exp4206 = "test"; +export const exp4207 = "test"; +export const exp4208 = "test"; +export const exp4209 = "test"; +export const exp4210 = "test"; +export const exp4211 = "test"; +export const exp4212 = "test"; +export const exp4213 = "test"; +export const exp4214 = "test"; +export const exp4215 = "test"; +export const exp4216 = "test"; +export const exp4217 = "test"; +export const exp4218 = "test"; +export const exp4219 = "test"; +export const exp4220 = "test"; +export const exp4221 = "test"; +export const exp4222 = "test"; +export const exp4223 = "test"; +export const exp4224 = "test"; +export const exp4225 = "test"; +export const exp4226 = "test"; +export const exp4227 = "test"; +export const exp4228 = "test"; +export const exp4229 = "test"; +export const exp4230 = "test"; +export const exp4231 = "test"; +export const exp4232 = "test"; +export const exp4233 = "test"; +export const exp4234 = "test"; +export const exp4235 = "test"; +export const exp4236 = "test"; +export const exp4237 = "test"; +export const exp4238 = "test"; +export const exp4239 = "test"; +export const exp4240 = "test"; +export const exp4241 = "test"; +export const exp4242 = "test"; +export const exp4243 = "test"; +export const exp4244 = "test"; +export const exp4245 = "test"; +export const exp4246 = "test"; +export const exp4247 = "test"; +export const exp4248 = "test"; +export const exp4249 = "test"; +export const exp4250 = "test"; +export const exp4251 = "test"; +export const exp4252 = "test"; +export const exp4253 = "test"; +export const exp4254 = "test"; +export const exp4255 = "test"; +export const exp4256 = "test"; +export const exp4257 = "test"; +export const exp4258 = "test"; +export const exp4259 = "test"; +export const exp4260 = "test"; +export const exp4261 = "test"; +export const exp4262 = "test"; +export const exp4263 = "test"; +export const exp4264 = "test"; +export const exp4265 = "test"; +export const exp4266 = "test"; +export const exp4267 = "test"; +export const exp4268 = "test"; +export const exp4269 = "test"; +export const exp4270 = "test"; +export const exp4271 = "test"; +export const exp4272 = "test"; +export const exp4273 = "test"; +export const exp4274 = "test"; +export const exp4275 = "test"; +export const exp4276 = "test"; +export const exp4277 = "test"; +export const exp4278 = "test"; +export const exp4279 = "test"; +export const exp4280 = "test"; +export const exp4281 = "test"; +export const exp4282 = "test"; +export const exp4283 = "test"; +export const exp4284 = "test"; +export const exp4285 = "test"; +export const exp4286 = "test"; +export const exp4287 = "test"; +export const exp4288 = "test"; +export const exp4289 = "test"; +export const exp4290 = "test"; +export const exp4291 = "test"; +export const exp4292 = "test"; +export const exp4293 = "test"; +export const exp4294 = "test"; +export const exp4295 = "test"; +export const exp4296 = "test"; +export const exp4297 = "test"; +export const exp4298 = "test"; +export const exp4299 = "test"; +export const exp4300 = "test"; +export const exp4301 = "test"; +export const exp4302 = "test"; +export const exp4303 = "test"; +export const exp4304 = "test"; +export const exp4305 = "test"; +export const exp4306 = "test"; +export const exp4307 = "test"; +export const exp4308 = "test"; +export const exp4309 = "test"; +export const exp4310 = "test"; +export const exp4311 = "test"; +export const exp4312 = "test"; +export const exp4313 = "test"; +export const exp4314 = "test"; +export const exp4315 = "test"; +export const exp4316 = "test"; +export const exp4317 = "test"; +export const exp4318 = "test"; +export const exp4319 = "test"; +export const exp4320 = "test"; +export const exp4321 = "test"; +export const exp4322 = "test"; +export const exp4323 = "test"; +export const exp4324 = "test"; +export const exp4325 = "test"; +export const exp4326 = "test"; +export const exp4327 = "test"; +export const exp4328 = "test"; +export const exp4329 = "test"; +export const exp4330 = "test"; +export const exp4331 = "test"; +export const exp4332 = "test"; +export const exp4333 = "test"; +export const exp4334 = "test"; +export const exp4335 = "test"; +export const exp4336 = "test"; +export const exp4337 = "test"; +export const exp4338 = "test"; +export const exp4339 = "test"; +export const exp4340 = "test"; +export const exp4341 = "test"; +export const exp4342 = "test"; +export const exp4343 = "test"; +export const exp4344 = "test"; +export const exp4345 = "test"; +export const exp4346 = "test"; +export const exp4347 = "test"; +export const exp4348 = "test"; +export const exp4349 = "test"; +export const exp4350 = "test"; +export const exp4351 = "test"; +export const exp4352 = "test"; +export const exp4353 = "test"; +export const exp4354 = "test"; +export const exp4355 = "test"; +export const exp4356 = "test"; +export const exp4357 = "test"; +export const exp4358 = "test"; +export const exp4359 = "test"; +export const exp4360 = "test"; +export const exp4361 = "test"; +export const exp4362 = "test"; +export const exp4363 = "test"; +export const exp4364 = "test"; +export const exp4365 = "test"; +export const exp4366 = "test"; +export const exp4367 = "test"; +export const exp4368 = "test"; +export const exp4369 = "test"; +export const exp4370 = "test"; +export const exp4371 = "test"; +export const exp4372 = "test"; +export const exp4373 = "test"; +export const exp4374 = "test"; +export const exp4375 = "test"; +export const exp4376 = "test"; +export const exp4377 = "test"; +export const exp4378 = "test"; +export const exp4379 = "test"; +export const exp4380 = "test"; +export const exp4381 = "test"; +export const exp4382 = "test"; +export const exp4383 = "test"; +export const exp4384 = "test"; +export const exp4385 = "test"; +export const exp4386 = "test"; +export const exp4387 = "test"; +export const exp4388 = "test"; +export const exp4389 = "test"; +export const exp4390 = "test"; +export const exp4391 = "test"; +export const exp4392 = "test"; +export const exp4393 = "test"; +export const exp4394 = "test"; +export const exp4395 = "test"; +export const exp4396 = "test"; +export const exp4397 = "test"; +export const exp4398 = "test"; +export const exp4399 = "test"; +export const exp4400 = "test"; +export const exp4401 = "test"; +export const exp4402 = "test"; +export const exp4403 = "test"; +export const exp4404 = "test"; +export const exp4405 = "test"; +export const exp4406 = "test"; +export const exp4407 = "test"; +export const exp4408 = "test"; +export const exp4409 = "test"; +export const exp4410 = "test"; +export const exp4411 = "test"; +export const exp4412 = "test"; +export const exp4413 = "test"; +export const exp4414 = "test"; +export const exp4415 = "test"; +export const exp4416 = "test"; +export const exp4417 = "test"; +export const exp4418 = "test"; +export const exp4419 = "test"; +export const exp4420 = "test"; +export const exp4421 = "test"; +export const exp4422 = "test"; +export const exp4423 = "test"; +export const exp4424 = "test"; +export const exp4425 = "test"; +export const exp4426 = "test"; +export const exp4427 = "test"; +export const exp4428 = "test"; +export const exp4429 = "test"; +export const exp4430 = "test"; +export const exp4431 = "test"; +export const exp4432 = "test"; +export const exp4433 = "test"; +export const exp4434 = "test"; +export const exp4435 = "test"; +export const exp4436 = "test"; +export const exp4437 = "test"; +export const exp4438 = "test"; +export const exp4439 = "test"; +export const exp4440 = "test"; +export const exp4441 = "test"; +export const exp4442 = "test"; +export const exp4443 = "test"; +export const exp4444 = "test"; +export const exp4445 = "test"; +export const exp4446 = "test"; +export const exp4447 = "test"; +export const exp4448 = "test"; +export const exp4449 = "test"; +export const exp4450 = "test"; +export const exp4451 = "test"; +export const exp4452 = "test"; +export const exp4453 = "test"; +export const exp4454 = "test"; +export const exp4455 = "test"; +export const exp4456 = "test"; +export const exp4457 = "test"; +export const exp4458 = "test"; +export const exp4459 = "test"; +export const exp4460 = "test"; +export const exp4461 = "test"; +export const exp4462 = "test"; +export const exp4463 = "test"; +export const exp4464 = "test"; +export const exp4465 = "test"; +export const exp4466 = "test"; +export const exp4467 = "test"; +export const exp4468 = "test"; +export const exp4469 = "test"; +export const exp4470 = "test"; +export const exp4471 = "test"; +export const exp4472 = "test"; +export const exp4473 = "test"; +export const exp4474 = "test"; +export const exp4475 = "test"; +export const exp4476 = "test"; +export const exp4477 = "test"; +export const exp4478 = "test"; +export const exp4479 = "test"; +export const exp4480 = "test"; +export const exp4481 = "test"; +export const exp4482 = "test"; +export const exp4483 = "test"; +export const exp4484 = "test"; +export const exp4485 = "test"; +export const exp4486 = "test"; +export const exp4487 = "test"; +export const exp4488 = "test"; +export const exp4489 = "test"; +export const exp4490 = "test"; +export const exp4491 = "test"; +export const exp4492 = "test"; +export const exp4493 = "test"; +export const exp4494 = "test"; +export const exp4495 = "test"; +export const exp4496 = "test"; +export const exp4497 = "test"; +export const exp4498 = "test"; +export const exp4499 = "test"; +export const exp4500 = "test"; +export const exp4501 = "test"; +export const exp4502 = "test"; +export const exp4503 = "test"; +export const exp4504 = "test"; +export const exp4505 = "test"; +export const exp4506 = "test"; +export const exp4507 = "test"; +export const exp4508 = "test"; +export const exp4509 = "test"; +export const exp4510 = "test"; +export const exp4511 = "test"; +export const exp4512 = "test"; +export const exp4513 = "test"; +export const exp4514 = "test"; +export const exp4515 = "test"; +export const exp4516 = "test"; +export const exp4517 = "test"; +export const exp4518 = "test"; +export const exp4519 = "test"; +export const exp4520 = "test"; +export const exp4521 = "test"; +export const exp4522 = "test"; +export const exp4523 = "test"; +export const exp4524 = "test"; +export const exp4525 = "test"; +export const exp4526 = "test"; +export const exp4527 = "test"; +export const exp4528 = "test"; +export const exp4529 = "test"; +export const exp4530 = "test"; +export const exp4531 = "test"; +export const exp4532 = "test"; +export const exp4533 = "test"; +export const exp4534 = "test"; +export const exp4535 = "test"; +export const exp4536 = "test"; +export const exp4537 = "test"; +export const exp4538 = "test"; +export const exp4539 = "test"; +export const exp4540 = "test"; +export const exp4541 = "test"; +export const exp4542 = "test"; +export const exp4543 = "test"; +export const exp4544 = "test"; +export const exp4545 = "test"; +export const exp4546 = "test"; +export const exp4547 = "test"; +export const exp4548 = "test"; +export const exp4549 = "test"; +export const exp4550 = "test"; +export const exp4551 = "test"; +export const exp4552 = "test"; +export const exp4553 = "test"; +export const exp4554 = "test"; +export const exp4555 = "test"; +export const exp4556 = "test"; +export const exp4557 = "test"; +export const exp4558 = "test"; +export const exp4559 = "test"; +export const exp4560 = "test"; +export const exp4561 = "test"; +export const exp4562 = "test"; +export const exp4563 = "test"; +export const exp4564 = "test"; +export const exp4565 = "test"; +export const exp4566 = "test"; +export const exp4567 = "test"; +export const exp4568 = "test"; +export const exp4569 = "test"; +export const exp4570 = "test"; +export const exp4571 = "test"; +export const exp4572 = "test"; +export const exp4573 = "test"; +export const exp4574 = "test"; +export const exp4575 = "test"; +export const exp4576 = "test"; +export const exp4577 = "test"; +export const exp4578 = "test"; +export const exp4579 = "test"; +export const exp4580 = "test"; +export const exp4581 = "test"; +export const exp4582 = "test"; +export const exp4583 = "test"; +export const exp4584 = "test"; +export const exp4585 = "test"; +export const exp4586 = "test"; +export const exp4587 = "test"; +export const exp4588 = "test"; +export const exp4589 = "test"; +export const exp4590 = "test"; +export const exp4591 = "test"; +export const exp4592 = "test"; +export const exp4593 = "test"; +export const exp4594 = "test"; +export const exp4595 = "test"; +export const exp4596 = "test"; +export const exp4597 = "test"; +export const exp4598 = "test"; +export const exp4599 = "test"; +export const exp4600 = "test"; +export const exp4601 = "test"; +export const exp4602 = "test"; +export const exp4603 = "test"; +export const exp4604 = "test"; +export const exp4605 = "test"; +export const exp4606 = "test"; +export const exp4607 = "test"; +export const exp4608 = "test"; +export const exp4609 = "test"; +export const exp4610 = "test"; +export const exp4611 = "test"; +export const exp4612 = "test"; +export const exp4613 = "test"; +export const exp4614 = "test"; +export const exp4615 = "test"; +export const exp4616 = "test"; +export const exp4617 = "test"; +export const exp4618 = "test"; +export const exp4619 = "test"; +export const exp4620 = "test"; +export const exp4621 = "test"; +export const exp4622 = "test"; +export const exp4623 = "test"; +export const exp4624 = "test"; +export const exp4625 = "test"; +export const exp4626 = "test"; +export const exp4627 = "test"; +export const exp4628 = "test"; +export const exp4629 = "test"; +export const exp4630 = "test"; +export const exp4631 = "test"; +export const exp4632 = "test"; +export const exp4633 = "test"; +export const exp4634 = "test"; +export const exp4635 = "test"; +export const exp4636 = "test"; +export const exp4637 = "test"; +export const exp4638 = "test"; +export const exp4639 = "test"; +export const exp4640 = "test"; +export const exp4641 = "test"; +export const exp4642 = "test"; +export const exp4643 = "test"; +export const exp4644 = "test"; +export const exp4645 = "test"; +export const exp4646 = "test"; +export const exp4647 = "test"; +export const exp4648 = "test"; +export const exp4649 = "test"; +export const exp4650 = "test"; +export const exp4651 = "test"; +export const exp4652 = "test"; +export const exp4653 = "test"; +export const exp4654 = "test"; +export const exp4655 = "test"; +export const exp4656 = "test"; +export const exp4657 = "test"; +export const exp4658 = "test"; +export const exp4659 = "test"; +export const exp4660 = "test"; +export const exp4661 = "test"; +export const exp4662 = "test"; +export const exp4663 = "test"; +export const exp4664 = "test"; +export const exp4665 = "test"; +export const exp4666 = "test"; +export const exp4667 = "test"; +export const exp4668 = "test"; +export const exp4669 = "test"; +export const exp4670 = "test"; +export const exp4671 = "test"; +export const exp4672 = "test"; +export const exp4673 = "test"; +export const exp4674 = "test"; +export const exp4675 = "test"; +export const exp4676 = "test"; +export const exp4677 = "test"; +export const exp4678 = "test"; +export const exp4679 = "test"; +export const exp4680 = "test"; +export const exp4681 = "test"; +export const exp4682 = "test"; +export const exp4683 = "test"; +export const exp4684 = "test"; +export const exp4685 = "test"; +export const exp4686 = "test"; +export const exp4687 = "test"; +export const exp4688 = "test"; +export const exp4689 = "test"; +export const exp4690 = "test"; +export const exp4691 = "test"; +export const exp4692 = "test"; +export const exp4693 = "test"; +export const exp4694 = "test"; +export const exp4695 = "test"; +export const exp4696 = "test"; +export const exp4697 = "test"; +export const exp4698 = "test"; +export const exp4699 = "test"; +export const exp4700 = "test"; +export const exp4701 = "test"; +export const exp4702 = "test"; +export const exp4703 = "test"; +export const exp4704 = "test"; +export const exp4705 = "test"; +export const exp4706 = "test"; +export const exp4707 = "test"; +export const exp4708 = "test"; +export const exp4709 = "test"; +export const exp4710 = "test"; +export const exp4711 = "test"; +export const exp4712 = "test"; +export const exp4713 = "test"; +export const exp4714 = "test"; +export const exp4715 = "test"; +export const exp4716 = "test"; +export const exp4717 = "test"; +export const exp4718 = "test"; +export const exp4719 = "test"; +export const exp4720 = "test"; +export const exp4721 = "test"; +export const exp4722 = "test"; +export const exp4723 = "test"; +export const exp4724 = "test"; +export const exp4725 = "test"; +export const exp4726 = "test"; +export const exp4727 = "test"; +export const exp4728 = "test"; +export const exp4729 = "test"; +export const exp4730 = "test"; +export const exp4731 = "test"; +export const exp4732 = "test"; +export const exp4733 = "test"; +export const exp4734 = "test"; +export const exp4735 = "test"; +export const exp4736 = "test"; +export const exp4737 = "test"; +export const exp4738 = "test"; +export const exp4739 = "test"; +export const exp4740 = "test"; +export const exp4741 = "test"; +export const exp4742 = "test"; +export const exp4743 = "test"; +export const exp4744 = "test"; +export const exp4745 = "test"; +export const exp4746 = "test"; +export const exp4747 = "test"; +export const exp4748 = "test"; +export const exp4749 = "test"; +export const exp4750 = "test"; +export const exp4751 = "test"; +export const exp4752 = "test"; +export const exp4753 = "test"; +export const exp4754 = "test"; +export const exp4755 = "test"; +export const exp4756 = "test"; +export const exp4757 = "test"; +export const exp4758 = "test"; +export const exp4759 = "test"; +export const exp4760 = "test"; +export const exp4761 = "test"; +export const exp4762 = "test"; +export const exp4763 = "test"; +export const exp4764 = "test"; +export const exp4765 = "test"; +export const exp4766 = "test"; +export const exp4767 = "test"; +export const exp4768 = "test"; +export const exp4769 = "test"; +export const exp4770 = "test"; +export const exp4771 = "test"; +export const exp4772 = "test"; +export const exp4773 = "test"; +export const exp4774 = "test"; +export const exp4775 = "test"; +export const exp4776 = "test"; +export const exp4777 = "test"; +export const exp4778 = "test"; +export const exp4779 = "test"; +export const exp4780 = "test"; +export const exp4781 = "test"; +export const exp4782 = "test"; +export const exp4783 = "test"; +export const exp4784 = "test"; +export const exp4785 = "test"; +export const exp4786 = "test"; +export const exp4787 = "test"; +export const exp4788 = "test"; +export const exp4789 = "test"; +export const exp4790 = "test"; +export const exp4791 = "test"; +export const exp4792 = "test"; +export const exp4793 = "test"; +export const exp4794 = "test"; +export const exp4795 = "test"; +export const exp4796 = "test"; +export const exp4797 = "test"; +export const exp4798 = "test"; +export const exp4799 = "test"; +export const exp4800 = "test"; +export const exp4801 = "test"; +export const exp4802 = "test"; +export const exp4803 = "test"; +export const exp4804 = "test"; +export const exp4805 = "test"; +export const exp4806 = "test"; +export const exp4807 = "test"; +export const exp4808 = "test"; +export const exp4809 = "test"; +export const exp4810 = "test"; +export const exp4811 = "test"; +export const exp4812 = "test"; +export const exp4813 = "test"; +export const exp4814 = "test"; +export const exp4815 = "test"; +export const exp4816 = "test"; +export const exp4817 = "test"; +export const exp4818 = "test"; +export const exp4819 = "test"; +export const exp4820 = "test"; +export const exp4821 = "test"; +export const exp4822 = "test"; +export const exp4823 = "test"; +export const exp4824 = "test"; +export const exp4825 = "test"; +export const exp4826 = "test"; +export const exp4827 = "test"; +export const exp4828 = "test"; +export const exp4829 = "test"; +export const exp4830 = "test"; +export const exp4831 = "test"; +export const exp4832 = "test"; +export const exp4833 = "test"; +export const exp4834 = "test"; +export const exp4835 = "test"; +export const exp4836 = "test"; +export const exp4837 = "test"; +export const exp4838 = "test"; +export const exp4839 = "test"; +export const exp4840 = "test"; +export const exp4841 = "test"; +export const exp4842 = "test"; +export const exp4843 = "test"; +export const exp4844 = "test"; +export const exp4845 = "test"; +export const exp4846 = "test"; +export const exp4847 = "test"; +export const exp4848 = "test"; +export const exp4849 = "test"; +export const exp4850 = "test"; +export const exp4851 = "test"; +export const exp4852 = "test"; +export const exp4853 = "test"; +export const exp4854 = "test"; +export const exp4855 = "test"; +export const exp4856 = "test"; +export const exp4857 = "test"; +export const exp4858 = "test"; +export const exp4859 = "test"; +export const exp4860 = "test"; +export const exp4861 = "test"; +export const exp4862 = "test"; +export const exp4863 = "test"; +export const exp4864 = "test"; +export const exp4865 = "test"; +export const exp4866 = "test"; +export const exp4867 = "test"; +export const exp4868 = "test"; +export const exp4869 = "test"; +export const exp4870 = "test"; +export const exp4871 = "test"; +export const exp4872 = "test"; +export const exp4873 = "test"; +export const exp4874 = "test"; +export const exp4875 = "test"; +export const exp4876 = "test"; +export const exp4877 = "test"; +export const exp4878 = "test"; +export const exp4879 = "test"; +export const exp4880 = "test"; +export const exp4881 = "test"; +export const exp4882 = "test"; +export const exp4883 = "test"; +export const exp4884 = "test"; +export const exp4885 = "test"; +export const exp4886 = "test"; +export const exp4887 = "test"; +export const exp4888 = "test"; +export const exp4889 = "test"; +export const exp4890 = "test"; +export const exp4891 = "test"; +export const exp4892 = "test"; +export const exp4893 = "test"; +export const exp4894 = "test"; +export const exp4895 = "test"; +export const exp4896 = "test"; +export const exp4897 = "test"; +export const exp4898 = "test"; +export const exp4899 = "test"; +export const exp4900 = "test"; +export const exp4901 = "test"; +export const exp4902 = "test"; +export const exp4903 = "test"; +export const exp4904 = "test"; +export const exp4905 = "test"; +export const exp4906 = "test"; +export const exp4907 = "test"; +export const exp4908 = "test"; +export const exp4909 = "test"; +export const exp4910 = "test"; +export const exp4911 = "test"; +export const exp4912 = "test"; +export const exp4913 = "test"; +export const exp4914 = "test"; +export const exp4915 = "test"; +export const exp4916 = "test"; +export const exp4917 = "test"; +export const exp4918 = "test"; +export const exp4919 = "test"; +export const exp4920 = "test"; +export const exp4921 = "test"; +export const exp4922 = "test"; +export const exp4923 = "test"; +export const exp4924 = "test"; +export const exp4925 = "test"; +export const exp4926 = "test"; +export const exp4927 = "test"; +export const exp4928 = "test"; +export const exp4929 = "test"; +export const exp4930 = "test"; +export const exp4931 = "test"; +export const exp4932 = "test"; +export const exp4933 = "test"; +export const exp4934 = "test"; +export const exp4935 = "test"; +export const exp4936 = "test"; +export const exp4937 = "test"; +export const exp4938 = "test"; +export const exp4939 = "test"; +export const exp4940 = "test"; +export const exp4941 = "test"; +export const exp4942 = "test"; +export const exp4943 = "test"; +export const exp4944 = "test"; +export const exp4945 = "test"; +export const exp4946 = "test"; +export const exp4947 = "test"; +export const exp4948 = "test"; +export const exp4949 = "test"; +export const exp4950 = "test"; +export const exp4951 = "test"; +export const exp4952 = "test"; +export const exp4953 = "test"; +export const exp4954 = "test"; +export const exp4955 = "test"; +export const exp4956 = "test"; +export const exp4957 = "test"; +export const exp4958 = "test"; +export const exp4959 = "test"; +export const exp4960 = "test"; +export const exp4961 = "test"; +export const exp4962 = "test"; +export const exp4963 = "test"; +export const exp4964 = "test"; +export const exp4965 = "test"; +export const exp4966 = "test"; +export const exp4967 = "test"; +export const exp4968 = "test"; +export const exp4969 = "test"; +export const exp4970 = "test"; +export const exp4971 = "test"; +export const exp4972 = "test"; +export const exp4973 = "test"; +export const exp4974 = "test"; +export const exp4975 = "test"; +export const exp4976 = "test"; +export const exp4977 = "test"; +export const exp4978 = "test"; +export const exp4979 = "test"; +export const exp4980 = "test"; +export const exp4981 = "test"; +export const exp4982 = "test"; +export const exp4983 = "test"; +export const exp4984 = "test"; +export const exp4985 = "test"; +export const exp4986 = "test"; +export const exp4987 = "test"; +export const exp4988 = "test"; +export const exp4989 = "test"; +export const exp4990 = "test"; +export const exp4991 = "test"; +export const exp4992 = "test"; +export const exp4993 = "test"; +export const exp4994 = "test"; +export const exp4995 = "test"; +export const exp4996 = "test"; +export const exp4997 = "test"; +export const exp4998 = "test"; +export const exp4999 = "test"; diff --git a/tests/baselines/reference/manyConstExports.symbols b/tests/baselines/reference/manyConstExports(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/manyConstExports.symbols rename to tests/baselines/reference/manyConstExports(target=es2015).symbols diff --git a/tests/baselines/reference/manyConstExports.types b/tests/baselines/reference/manyConstExports(target=es2015).types similarity index 100% rename from tests/baselines/reference/manyConstExports.types rename to tests/baselines/reference/manyConstExports(target=es2015).types diff --git a/tests/baselines/reference/manyConstExports.js b/tests/baselines/reference/manyConstExports(target=es5).js similarity index 100% rename from tests/baselines/reference/manyConstExports.js rename to tests/baselines/reference/manyConstExports(target=es5).js diff --git a/tests/baselines/reference/manyConstExports(target=es5).symbols b/tests/baselines/reference/manyConstExports(target=es5).symbols new file mode 100644 index 0000000000000..93ab6d99f2fe7 --- /dev/null +++ b/tests/baselines/reference/manyConstExports(target=es5).symbols @@ -0,0 +1,15003 @@ +//// [tests/cases/compiler/manyConstExports.ts] //// + +=== manyConstExports.ts === +export const exp0 = "test"; +>exp0 : Symbol(exp0, Decl(manyConstExports.ts, 0, 12)) + +export const exp1 = "test"; +>exp1 : Symbol(exp1, Decl(manyConstExports.ts, 1, 12)) + +export const exp2 = "test"; +>exp2 : Symbol(exp2, Decl(manyConstExports.ts, 2, 12)) + +export const exp3 = "test"; +>exp3 : Symbol(exp3, Decl(manyConstExports.ts, 3, 12)) + +export const exp4 = "test"; +>exp4 : Symbol(exp4, Decl(manyConstExports.ts, 4, 12)) + +export const exp5 = "test"; +>exp5 : Symbol(exp5, Decl(manyConstExports.ts, 5, 12)) + +export const exp6 = "test"; +>exp6 : Symbol(exp6, Decl(manyConstExports.ts, 6, 12)) + +export const exp7 = "test"; +>exp7 : Symbol(exp7, Decl(manyConstExports.ts, 7, 12)) + +export const exp8 = "test"; +>exp8 : Symbol(exp8, Decl(manyConstExports.ts, 8, 12)) + +export const exp9 = "test"; +>exp9 : Symbol(exp9, Decl(manyConstExports.ts, 9, 12)) + +export const exp10 = "test"; +>exp10 : Symbol(exp10, Decl(manyConstExports.ts, 10, 12)) + +export const exp11 = "test"; +>exp11 : Symbol(exp11, Decl(manyConstExports.ts, 11, 12)) + +export const exp12 = "test"; +>exp12 : Symbol(exp12, Decl(manyConstExports.ts, 12, 12)) + +export const exp13 = "test"; +>exp13 : Symbol(exp13, Decl(manyConstExports.ts, 13, 12)) + +export const exp14 = "test"; +>exp14 : Symbol(exp14, Decl(manyConstExports.ts, 14, 12)) + +export const exp15 = "test"; +>exp15 : Symbol(exp15, Decl(manyConstExports.ts, 15, 12)) + +export const exp16 = "test"; +>exp16 : Symbol(exp16, Decl(manyConstExports.ts, 16, 12)) + +export const exp17 = "test"; +>exp17 : Symbol(exp17, Decl(manyConstExports.ts, 17, 12)) + +export const exp18 = "test"; +>exp18 : Symbol(exp18, Decl(manyConstExports.ts, 18, 12)) + +export const exp19 = "test"; +>exp19 : Symbol(exp19, Decl(manyConstExports.ts, 19, 12)) + +export const exp20 = "test"; +>exp20 : Symbol(exp20, Decl(manyConstExports.ts, 20, 12)) + +export const exp21 = "test"; +>exp21 : Symbol(exp21, Decl(manyConstExports.ts, 21, 12)) + +export const exp22 = "test"; +>exp22 : Symbol(exp22, Decl(manyConstExports.ts, 22, 12)) + +export const exp23 = "test"; +>exp23 : Symbol(exp23, Decl(manyConstExports.ts, 23, 12)) + +export const exp24 = "test"; +>exp24 : Symbol(exp24, Decl(manyConstExports.ts, 24, 12)) + +export const exp25 = "test"; +>exp25 : Symbol(exp25, Decl(manyConstExports.ts, 25, 12)) + +export const exp26 = "test"; +>exp26 : Symbol(exp26, Decl(manyConstExports.ts, 26, 12)) + +export const exp27 = "test"; +>exp27 : Symbol(exp27, Decl(manyConstExports.ts, 27, 12)) + +export const exp28 = "test"; +>exp28 : Symbol(exp28, Decl(manyConstExports.ts, 28, 12)) + +export const exp29 = "test"; +>exp29 : Symbol(exp29, Decl(manyConstExports.ts, 29, 12)) + +export const exp30 = "test"; +>exp30 : Symbol(exp30, Decl(manyConstExports.ts, 30, 12)) + +export const exp31 = "test"; +>exp31 : Symbol(exp31, Decl(manyConstExports.ts, 31, 12)) + +export const exp32 = "test"; +>exp32 : Symbol(exp32, Decl(manyConstExports.ts, 32, 12)) + +export const exp33 = "test"; +>exp33 : Symbol(exp33, Decl(manyConstExports.ts, 33, 12)) + +export const exp34 = "test"; +>exp34 : Symbol(exp34, Decl(manyConstExports.ts, 34, 12)) + +export const exp35 = "test"; +>exp35 : Symbol(exp35, Decl(manyConstExports.ts, 35, 12)) + +export const exp36 = "test"; +>exp36 : Symbol(exp36, Decl(manyConstExports.ts, 36, 12)) + +export const exp37 = "test"; +>exp37 : Symbol(exp37, Decl(manyConstExports.ts, 37, 12)) + +export const exp38 = "test"; +>exp38 : Symbol(exp38, Decl(manyConstExports.ts, 38, 12)) + +export const exp39 = "test"; +>exp39 : Symbol(exp39, Decl(manyConstExports.ts, 39, 12)) + +export const exp40 = "test"; +>exp40 : Symbol(exp40, Decl(manyConstExports.ts, 40, 12)) + +export const exp41 = "test"; +>exp41 : Symbol(exp41, Decl(manyConstExports.ts, 41, 12)) + +export const exp42 = "test"; +>exp42 : Symbol(exp42, Decl(manyConstExports.ts, 42, 12)) + +export const exp43 = "test"; +>exp43 : Symbol(exp43, Decl(manyConstExports.ts, 43, 12)) + +export const exp44 = "test"; +>exp44 : Symbol(exp44, Decl(manyConstExports.ts, 44, 12)) + +export const exp45 = "test"; +>exp45 : Symbol(exp45, Decl(manyConstExports.ts, 45, 12)) + +export const exp46 = "test"; +>exp46 : Symbol(exp46, Decl(manyConstExports.ts, 46, 12)) + +export const exp47 = "test"; +>exp47 : Symbol(exp47, Decl(manyConstExports.ts, 47, 12)) + +export const exp48 = "test"; +>exp48 : Symbol(exp48, Decl(manyConstExports.ts, 48, 12)) + +export const exp49 = "test"; +>exp49 : Symbol(exp49, Decl(manyConstExports.ts, 49, 12)) + +export const exp50 = "test"; +>exp50 : Symbol(exp50, Decl(manyConstExports.ts, 50, 12)) + +export const exp51 = "test"; +>exp51 : Symbol(exp51, Decl(manyConstExports.ts, 51, 12)) + +export const exp52 = "test"; +>exp52 : Symbol(exp52, Decl(manyConstExports.ts, 52, 12)) + +export const exp53 = "test"; +>exp53 : Symbol(exp53, Decl(manyConstExports.ts, 53, 12)) + +export const exp54 = "test"; +>exp54 : Symbol(exp54, Decl(manyConstExports.ts, 54, 12)) + +export const exp55 = "test"; +>exp55 : Symbol(exp55, Decl(manyConstExports.ts, 55, 12)) + +export const exp56 = "test"; +>exp56 : Symbol(exp56, Decl(manyConstExports.ts, 56, 12)) + +export const exp57 = "test"; +>exp57 : Symbol(exp57, Decl(manyConstExports.ts, 57, 12)) + +export const exp58 = "test"; +>exp58 : Symbol(exp58, Decl(manyConstExports.ts, 58, 12)) + +export const exp59 = "test"; +>exp59 : Symbol(exp59, Decl(manyConstExports.ts, 59, 12)) + +export const exp60 = "test"; +>exp60 : Symbol(exp60, Decl(manyConstExports.ts, 60, 12)) + +export const exp61 = "test"; +>exp61 : Symbol(exp61, Decl(manyConstExports.ts, 61, 12)) + +export const exp62 = "test"; +>exp62 : Symbol(exp62, Decl(manyConstExports.ts, 62, 12)) + +export const exp63 = "test"; +>exp63 : Symbol(exp63, Decl(manyConstExports.ts, 63, 12)) + +export const exp64 = "test"; +>exp64 : Symbol(exp64, Decl(manyConstExports.ts, 64, 12)) + +export const exp65 = "test"; +>exp65 : Symbol(exp65, Decl(manyConstExports.ts, 65, 12)) + +export const exp66 = "test"; +>exp66 : Symbol(exp66, Decl(manyConstExports.ts, 66, 12)) + +export const exp67 = "test"; +>exp67 : Symbol(exp67, Decl(manyConstExports.ts, 67, 12)) + +export const exp68 = "test"; +>exp68 : Symbol(exp68, Decl(manyConstExports.ts, 68, 12)) + +export const exp69 = "test"; +>exp69 : Symbol(exp69, Decl(manyConstExports.ts, 69, 12)) + +export const exp70 = "test"; +>exp70 : Symbol(exp70, Decl(manyConstExports.ts, 70, 12)) + +export const exp71 = "test"; +>exp71 : Symbol(exp71, Decl(manyConstExports.ts, 71, 12)) + +export const exp72 = "test"; +>exp72 : Symbol(exp72, Decl(manyConstExports.ts, 72, 12)) + +export const exp73 = "test"; +>exp73 : Symbol(exp73, Decl(manyConstExports.ts, 73, 12)) + +export const exp74 = "test"; +>exp74 : Symbol(exp74, Decl(manyConstExports.ts, 74, 12)) + +export const exp75 = "test"; +>exp75 : Symbol(exp75, Decl(manyConstExports.ts, 75, 12)) + +export const exp76 = "test"; +>exp76 : Symbol(exp76, Decl(manyConstExports.ts, 76, 12)) + +export const exp77 = "test"; +>exp77 : Symbol(exp77, Decl(manyConstExports.ts, 77, 12)) + +export const exp78 = "test"; +>exp78 : Symbol(exp78, Decl(manyConstExports.ts, 78, 12)) + +export const exp79 = "test"; +>exp79 : Symbol(exp79, Decl(manyConstExports.ts, 79, 12)) + +export const exp80 = "test"; +>exp80 : Symbol(exp80, Decl(manyConstExports.ts, 80, 12)) + +export const exp81 = "test"; +>exp81 : Symbol(exp81, Decl(manyConstExports.ts, 81, 12)) + +export const exp82 = "test"; +>exp82 : Symbol(exp82, Decl(manyConstExports.ts, 82, 12)) + +export const exp83 = "test"; +>exp83 : Symbol(exp83, Decl(manyConstExports.ts, 83, 12)) + +export const exp84 = "test"; +>exp84 : Symbol(exp84, Decl(manyConstExports.ts, 84, 12)) + +export const exp85 = "test"; +>exp85 : Symbol(exp85, Decl(manyConstExports.ts, 85, 12)) + +export const exp86 = "test"; +>exp86 : Symbol(exp86, Decl(manyConstExports.ts, 86, 12)) + +export const exp87 = "test"; +>exp87 : Symbol(exp87, Decl(manyConstExports.ts, 87, 12)) + +export const exp88 = "test"; +>exp88 : Symbol(exp88, Decl(manyConstExports.ts, 88, 12)) + +export const exp89 = "test"; +>exp89 : Symbol(exp89, Decl(manyConstExports.ts, 89, 12)) + +export const exp90 = "test"; +>exp90 : Symbol(exp90, Decl(manyConstExports.ts, 90, 12)) + +export const exp91 = "test"; +>exp91 : Symbol(exp91, Decl(manyConstExports.ts, 91, 12)) + +export const exp92 = "test"; +>exp92 : Symbol(exp92, Decl(manyConstExports.ts, 92, 12)) + +export const exp93 = "test"; +>exp93 : Symbol(exp93, Decl(manyConstExports.ts, 93, 12)) + +export const exp94 = "test"; +>exp94 : Symbol(exp94, Decl(manyConstExports.ts, 94, 12)) + +export const exp95 = "test"; +>exp95 : Symbol(exp95, Decl(manyConstExports.ts, 95, 12)) + +export const exp96 = "test"; +>exp96 : Symbol(exp96, Decl(manyConstExports.ts, 96, 12)) + +export const exp97 = "test"; +>exp97 : Symbol(exp97, Decl(manyConstExports.ts, 97, 12)) + +export const exp98 = "test"; +>exp98 : Symbol(exp98, Decl(manyConstExports.ts, 98, 12)) + +export const exp99 = "test"; +>exp99 : Symbol(exp99, Decl(manyConstExports.ts, 99, 12)) + +export const exp100 = "test"; +>exp100 : Symbol(exp100, Decl(manyConstExports.ts, 100, 12)) + +export const exp101 = "test"; +>exp101 : Symbol(exp101, Decl(manyConstExports.ts, 101, 12)) + +export const exp102 = "test"; +>exp102 : Symbol(exp102, Decl(manyConstExports.ts, 102, 12)) + +export const exp103 = "test"; +>exp103 : Symbol(exp103, Decl(manyConstExports.ts, 103, 12)) + +export const exp104 = "test"; +>exp104 : Symbol(exp104, Decl(manyConstExports.ts, 104, 12)) + +export const exp105 = "test"; +>exp105 : Symbol(exp105, Decl(manyConstExports.ts, 105, 12)) + +export const exp106 = "test"; +>exp106 : Symbol(exp106, Decl(manyConstExports.ts, 106, 12)) + +export const exp107 = "test"; +>exp107 : Symbol(exp107, Decl(manyConstExports.ts, 107, 12)) + +export const exp108 = "test"; +>exp108 : Symbol(exp108, Decl(manyConstExports.ts, 108, 12)) + +export const exp109 = "test"; +>exp109 : Symbol(exp109, Decl(manyConstExports.ts, 109, 12)) + +export const exp110 = "test"; +>exp110 : Symbol(exp110, Decl(manyConstExports.ts, 110, 12)) + +export const exp111 = "test"; +>exp111 : Symbol(exp111, Decl(manyConstExports.ts, 111, 12)) + +export const exp112 = "test"; +>exp112 : Symbol(exp112, Decl(manyConstExports.ts, 112, 12)) + +export const exp113 = "test"; +>exp113 : Symbol(exp113, Decl(manyConstExports.ts, 113, 12)) + +export const exp114 = "test"; +>exp114 : Symbol(exp114, Decl(manyConstExports.ts, 114, 12)) + +export const exp115 = "test"; +>exp115 : Symbol(exp115, Decl(manyConstExports.ts, 115, 12)) + +export const exp116 = "test"; +>exp116 : Symbol(exp116, Decl(manyConstExports.ts, 116, 12)) + +export const exp117 = "test"; +>exp117 : Symbol(exp117, Decl(manyConstExports.ts, 117, 12)) + +export const exp118 = "test"; +>exp118 : Symbol(exp118, Decl(manyConstExports.ts, 118, 12)) + +export const exp119 = "test"; +>exp119 : Symbol(exp119, Decl(manyConstExports.ts, 119, 12)) + +export const exp120 = "test"; +>exp120 : Symbol(exp120, Decl(manyConstExports.ts, 120, 12)) + +export const exp121 = "test"; +>exp121 : Symbol(exp121, Decl(manyConstExports.ts, 121, 12)) + +export const exp122 = "test"; +>exp122 : Symbol(exp122, Decl(manyConstExports.ts, 122, 12)) + +export const exp123 = "test"; +>exp123 : Symbol(exp123, Decl(manyConstExports.ts, 123, 12)) + +export const exp124 = "test"; +>exp124 : Symbol(exp124, Decl(manyConstExports.ts, 124, 12)) + +export const exp125 = "test"; +>exp125 : Symbol(exp125, Decl(manyConstExports.ts, 125, 12)) + +export const exp126 = "test"; +>exp126 : Symbol(exp126, Decl(manyConstExports.ts, 126, 12)) + +export const exp127 = "test"; +>exp127 : Symbol(exp127, Decl(manyConstExports.ts, 127, 12)) + +export const exp128 = "test"; +>exp128 : Symbol(exp128, Decl(manyConstExports.ts, 128, 12)) + +export const exp129 = "test"; +>exp129 : Symbol(exp129, Decl(manyConstExports.ts, 129, 12)) + +export const exp130 = "test"; +>exp130 : Symbol(exp130, Decl(manyConstExports.ts, 130, 12)) + +export const exp131 = "test"; +>exp131 : Symbol(exp131, Decl(manyConstExports.ts, 131, 12)) + +export const exp132 = "test"; +>exp132 : Symbol(exp132, Decl(manyConstExports.ts, 132, 12)) + +export const exp133 = "test"; +>exp133 : Symbol(exp133, Decl(manyConstExports.ts, 133, 12)) + +export const exp134 = "test"; +>exp134 : Symbol(exp134, Decl(manyConstExports.ts, 134, 12)) + +export const exp135 = "test"; +>exp135 : Symbol(exp135, Decl(manyConstExports.ts, 135, 12)) + +export const exp136 = "test"; +>exp136 : Symbol(exp136, Decl(manyConstExports.ts, 136, 12)) + +export const exp137 = "test"; +>exp137 : Symbol(exp137, Decl(manyConstExports.ts, 137, 12)) + +export const exp138 = "test"; +>exp138 : Symbol(exp138, Decl(manyConstExports.ts, 138, 12)) + +export const exp139 = "test"; +>exp139 : Symbol(exp139, Decl(manyConstExports.ts, 139, 12)) + +export const exp140 = "test"; +>exp140 : Symbol(exp140, Decl(manyConstExports.ts, 140, 12)) + +export const exp141 = "test"; +>exp141 : Symbol(exp141, Decl(manyConstExports.ts, 141, 12)) + +export const exp142 = "test"; +>exp142 : Symbol(exp142, Decl(manyConstExports.ts, 142, 12)) + +export const exp143 = "test"; +>exp143 : Symbol(exp143, Decl(manyConstExports.ts, 143, 12)) + +export const exp144 = "test"; +>exp144 : Symbol(exp144, Decl(manyConstExports.ts, 144, 12)) + +export const exp145 = "test"; +>exp145 : Symbol(exp145, Decl(manyConstExports.ts, 145, 12)) + +export const exp146 = "test"; +>exp146 : Symbol(exp146, Decl(manyConstExports.ts, 146, 12)) + +export const exp147 = "test"; +>exp147 : Symbol(exp147, Decl(manyConstExports.ts, 147, 12)) + +export const exp148 = "test"; +>exp148 : Symbol(exp148, Decl(manyConstExports.ts, 148, 12)) + +export const exp149 = "test"; +>exp149 : Symbol(exp149, Decl(manyConstExports.ts, 149, 12)) + +export const exp150 = "test"; +>exp150 : Symbol(exp150, Decl(manyConstExports.ts, 150, 12)) + +export const exp151 = "test"; +>exp151 : Symbol(exp151, Decl(manyConstExports.ts, 151, 12)) + +export const exp152 = "test"; +>exp152 : Symbol(exp152, Decl(manyConstExports.ts, 152, 12)) + +export const exp153 = "test"; +>exp153 : Symbol(exp153, Decl(manyConstExports.ts, 153, 12)) + +export const exp154 = "test"; +>exp154 : Symbol(exp154, Decl(manyConstExports.ts, 154, 12)) + +export const exp155 = "test"; +>exp155 : Symbol(exp155, Decl(manyConstExports.ts, 155, 12)) + +export const exp156 = "test"; +>exp156 : Symbol(exp156, Decl(manyConstExports.ts, 156, 12)) + +export const exp157 = "test"; +>exp157 : Symbol(exp157, Decl(manyConstExports.ts, 157, 12)) + +export const exp158 = "test"; +>exp158 : Symbol(exp158, Decl(manyConstExports.ts, 158, 12)) + +export const exp159 = "test"; +>exp159 : Symbol(exp159, Decl(manyConstExports.ts, 159, 12)) + +export const exp160 = "test"; +>exp160 : Symbol(exp160, Decl(manyConstExports.ts, 160, 12)) + +export const exp161 = "test"; +>exp161 : Symbol(exp161, Decl(manyConstExports.ts, 161, 12)) + +export const exp162 = "test"; +>exp162 : Symbol(exp162, Decl(manyConstExports.ts, 162, 12)) + +export const exp163 = "test"; +>exp163 : Symbol(exp163, Decl(manyConstExports.ts, 163, 12)) + +export const exp164 = "test"; +>exp164 : Symbol(exp164, Decl(manyConstExports.ts, 164, 12)) + +export const exp165 = "test"; +>exp165 : Symbol(exp165, Decl(manyConstExports.ts, 165, 12)) + +export const exp166 = "test"; +>exp166 : Symbol(exp166, Decl(manyConstExports.ts, 166, 12)) + +export const exp167 = "test"; +>exp167 : Symbol(exp167, Decl(manyConstExports.ts, 167, 12)) + +export const exp168 = "test"; +>exp168 : Symbol(exp168, Decl(manyConstExports.ts, 168, 12)) + +export const exp169 = "test"; +>exp169 : Symbol(exp169, Decl(manyConstExports.ts, 169, 12)) + +export const exp170 = "test"; +>exp170 : Symbol(exp170, Decl(manyConstExports.ts, 170, 12)) + +export const exp171 = "test"; +>exp171 : Symbol(exp171, Decl(manyConstExports.ts, 171, 12)) + +export const exp172 = "test"; +>exp172 : Symbol(exp172, Decl(manyConstExports.ts, 172, 12)) + +export const exp173 = "test"; +>exp173 : Symbol(exp173, Decl(manyConstExports.ts, 173, 12)) + +export const exp174 = "test"; +>exp174 : Symbol(exp174, Decl(manyConstExports.ts, 174, 12)) + +export const exp175 = "test"; +>exp175 : Symbol(exp175, Decl(manyConstExports.ts, 175, 12)) + +export const exp176 = "test"; +>exp176 : Symbol(exp176, Decl(manyConstExports.ts, 176, 12)) + +export const exp177 = "test"; +>exp177 : Symbol(exp177, Decl(manyConstExports.ts, 177, 12)) + +export const exp178 = "test"; +>exp178 : Symbol(exp178, Decl(manyConstExports.ts, 178, 12)) + +export const exp179 = "test"; +>exp179 : Symbol(exp179, Decl(manyConstExports.ts, 179, 12)) + +export const exp180 = "test"; +>exp180 : Symbol(exp180, Decl(manyConstExports.ts, 180, 12)) + +export const exp181 = "test"; +>exp181 : Symbol(exp181, Decl(manyConstExports.ts, 181, 12)) + +export const exp182 = "test"; +>exp182 : Symbol(exp182, Decl(manyConstExports.ts, 182, 12)) + +export const exp183 = "test"; +>exp183 : Symbol(exp183, Decl(manyConstExports.ts, 183, 12)) + +export const exp184 = "test"; +>exp184 : Symbol(exp184, Decl(manyConstExports.ts, 184, 12)) + +export const exp185 = "test"; +>exp185 : Symbol(exp185, Decl(manyConstExports.ts, 185, 12)) + +export const exp186 = "test"; +>exp186 : Symbol(exp186, Decl(manyConstExports.ts, 186, 12)) + +export const exp187 = "test"; +>exp187 : Symbol(exp187, Decl(manyConstExports.ts, 187, 12)) + +export const exp188 = "test"; +>exp188 : Symbol(exp188, Decl(manyConstExports.ts, 188, 12)) + +export const exp189 = "test"; +>exp189 : Symbol(exp189, Decl(manyConstExports.ts, 189, 12)) + +export const exp190 = "test"; +>exp190 : Symbol(exp190, Decl(manyConstExports.ts, 190, 12)) + +export const exp191 = "test"; +>exp191 : Symbol(exp191, Decl(manyConstExports.ts, 191, 12)) + +export const exp192 = "test"; +>exp192 : Symbol(exp192, Decl(manyConstExports.ts, 192, 12)) + +export const exp193 = "test"; +>exp193 : Symbol(exp193, Decl(manyConstExports.ts, 193, 12)) + +export const exp194 = "test"; +>exp194 : Symbol(exp194, Decl(manyConstExports.ts, 194, 12)) + +export const exp195 = "test"; +>exp195 : Symbol(exp195, Decl(manyConstExports.ts, 195, 12)) + +export const exp196 = "test"; +>exp196 : Symbol(exp196, Decl(manyConstExports.ts, 196, 12)) + +export const exp197 = "test"; +>exp197 : Symbol(exp197, Decl(manyConstExports.ts, 197, 12)) + +export const exp198 = "test"; +>exp198 : Symbol(exp198, Decl(manyConstExports.ts, 198, 12)) + +export const exp199 = "test"; +>exp199 : Symbol(exp199, Decl(manyConstExports.ts, 199, 12)) + +export const exp200 = "test"; +>exp200 : Symbol(exp200, Decl(manyConstExports.ts, 200, 12)) + +export const exp201 = "test"; +>exp201 : Symbol(exp201, Decl(manyConstExports.ts, 201, 12)) + +export const exp202 = "test"; +>exp202 : Symbol(exp202, Decl(manyConstExports.ts, 202, 12)) + +export const exp203 = "test"; +>exp203 : Symbol(exp203, Decl(manyConstExports.ts, 203, 12)) + +export const exp204 = "test"; +>exp204 : Symbol(exp204, Decl(manyConstExports.ts, 204, 12)) + +export const exp205 = "test"; +>exp205 : Symbol(exp205, Decl(manyConstExports.ts, 205, 12)) + +export const exp206 = "test"; +>exp206 : Symbol(exp206, Decl(manyConstExports.ts, 206, 12)) + +export const exp207 = "test"; +>exp207 : Symbol(exp207, Decl(manyConstExports.ts, 207, 12)) + +export const exp208 = "test"; +>exp208 : Symbol(exp208, Decl(manyConstExports.ts, 208, 12)) + +export const exp209 = "test"; +>exp209 : Symbol(exp209, Decl(manyConstExports.ts, 209, 12)) + +export const exp210 = "test"; +>exp210 : Symbol(exp210, Decl(manyConstExports.ts, 210, 12)) + +export const exp211 = "test"; +>exp211 : Symbol(exp211, Decl(manyConstExports.ts, 211, 12)) + +export const exp212 = "test"; +>exp212 : Symbol(exp212, Decl(manyConstExports.ts, 212, 12)) + +export const exp213 = "test"; +>exp213 : Symbol(exp213, Decl(manyConstExports.ts, 213, 12)) + +export const exp214 = "test"; +>exp214 : Symbol(exp214, Decl(manyConstExports.ts, 214, 12)) + +export const exp215 = "test"; +>exp215 : Symbol(exp215, Decl(manyConstExports.ts, 215, 12)) + +export const exp216 = "test"; +>exp216 : Symbol(exp216, Decl(manyConstExports.ts, 216, 12)) + +export const exp217 = "test"; +>exp217 : Symbol(exp217, Decl(manyConstExports.ts, 217, 12)) + +export const exp218 = "test"; +>exp218 : Symbol(exp218, Decl(manyConstExports.ts, 218, 12)) + +export const exp219 = "test"; +>exp219 : Symbol(exp219, Decl(manyConstExports.ts, 219, 12)) + +export const exp220 = "test"; +>exp220 : Symbol(exp220, Decl(manyConstExports.ts, 220, 12)) + +export const exp221 = "test"; +>exp221 : Symbol(exp221, Decl(manyConstExports.ts, 221, 12)) + +export const exp222 = "test"; +>exp222 : Symbol(exp222, Decl(manyConstExports.ts, 222, 12)) + +export const exp223 = "test"; +>exp223 : Symbol(exp223, Decl(manyConstExports.ts, 223, 12)) + +export const exp224 = "test"; +>exp224 : Symbol(exp224, Decl(manyConstExports.ts, 224, 12)) + +export const exp225 = "test"; +>exp225 : Symbol(exp225, Decl(manyConstExports.ts, 225, 12)) + +export const exp226 = "test"; +>exp226 : Symbol(exp226, Decl(manyConstExports.ts, 226, 12)) + +export const exp227 = "test"; +>exp227 : Symbol(exp227, Decl(manyConstExports.ts, 227, 12)) + +export const exp228 = "test"; +>exp228 : Symbol(exp228, Decl(manyConstExports.ts, 228, 12)) + +export const exp229 = "test"; +>exp229 : Symbol(exp229, Decl(manyConstExports.ts, 229, 12)) + +export const exp230 = "test"; +>exp230 : Symbol(exp230, Decl(manyConstExports.ts, 230, 12)) + +export const exp231 = "test"; +>exp231 : Symbol(exp231, Decl(manyConstExports.ts, 231, 12)) + +export const exp232 = "test"; +>exp232 : Symbol(exp232, Decl(manyConstExports.ts, 232, 12)) + +export const exp233 = "test"; +>exp233 : Symbol(exp233, Decl(manyConstExports.ts, 233, 12)) + +export const exp234 = "test"; +>exp234 : Symbol(exp234, Decl(manyConstExports.ts, 234, 12)) + +export const exp235 = "test"; +>exp235 : Symbol(exp235, Decl(manyConstExports.ts, 235, 12)) + +export const exp236 = "test"; +>exp236 : Symbol(exp236, Decl(manyConstExports.ts, 236, 12)) + +export const exp237 = "test"; +>exp237 : Symbol(exp237, Decl(manyConstExports.ts, 237, 12)) + +export const exp238 = "test"; +>exp238 : Symbol(exp238, Decl(manyConstExports.ts, 238, 12)) + +export const exp239 = "test"; +>exp239 : Symbol(exp239, Decl(manyConstExports.ts, 239, 12)) + +export const exp240 = "test"; +>exp240 : Symbol(exp240, Decl(manyConstExports.ts, 240, 12)) + +export const exp241 = "test"; +>exp241 : Symbol(exp241, Decl(manyConstExports.ts, 241, 12)) + +export const exp242 = "test"; +>exp242 : Symbol(exp242, Decl(manyConstExports.ts, 242, 12)) + +export const exp243 = "test"; +>exp243 : Symbol(exp243, Decl(manyConstExports.ts, 243, 12)) + +export const exp244 = "test"; +>exp244 : Symbol(exp244, Decl(manyConstExports.ts, 244, 12)) + +export const exp245 = "test"; +>exp245 : Symbol(exp245, Decl(manyConstExports.ts, 245, 12)) + +export const exp246 = "test"; +>exp246 : Symbol(exp246, Decl(manyConstExports.ts, 246, 12)) + +export const exp247 = "test"; +>exp247 : Symbol(exp247, Decl(manyConstExports.ts, 247, 12)) + +export const exp248 = "test"; +>exp248 : Symbol(exp248, Decl(manyConstExports.ts, 248, 12)) + +export const exp249 = "test"; +>exp249 : Symbol(exp249, Decl(manyConstExports.ts, 249, 12)) + +export const exp250 = "test"; +>exp250 : Symbol(exp250, Decl(manyConstExports.ts, 250, 12)) + +export const exp251 = "test"; +>exp251 : Symbol(exp251, Decl(manyConstExports.ts, 251, 12)) + +export const exp252 = "test"; +>exp252 : Symbol(exp252, Decl(manyConstExports.ts, 252, 12)) + +export const exp253 = "test"; +>exp253 : Symbol(exp253, Decl(manyConstExports.ts, 253, 12)) + +export const exp254 = "test"; +>exp254 : Symbol(exp254, Decl(manyConstExports.ts, 254, 12)) + +export const exp255 = "test"; +>exp255 : Symbol(exp255, Decl(manyConstExports.ts, 255, 12)) + +export const exp256 = "test"; +>exp256 : Symbol(exp256, Decl(manyConstExports.ts, 256, 12)) + +export const exp257 = "test"; +>exp257 : Symbol(exp257, Decl(manyConstExports.ts, 257, 12)) + +export const exp258 = "test"; +>exp258 : Symbol(exp258, Decl(manyConstExports.ts, 258, 12)) + +export const exp259 = "test"; +>exp259 : Symbol(exp259, Decl(manyConstExports.ts, 259, 12)) + +export const exp260 = "test"; +>exp260 : Symbol(exp260, Decl(manyConstExports.ts, 260, 12)) + +export const exp261 = "test"; +>exp261 : Symbol(exp261, Decl(manyConstExports.ts, 261, 12)) + +export const exp262 = "test"; +>exp262 : Symbol(exp262, Decl(manyConstExports.ts, 262, 12)) + +export const exp263 = "test"; +>exp263 : Symbol(exp263, Decl(manyConstExports.ts, 263, 12)) + +export const exp264 = "test"; +>exp264 : Symbol(exp264, Decl(manyConstExports.ts, 264, 12)) + +export const exp265 = "test"; +>exp265 : Symbol(exp265, Decl(manyConstExports.ts, 265, 12)) + +export const exp266 = "test"; +>exp266 : Symbol(exp266, Decl(manyConstExports.ts, 266, 12)) + +export const exp267 = "test"; +>exp267 : Symbol(exp267, Decl(manyConstExports.ts, 267, 12)) + +export const exp268 = "test"; +>exp268 : Symbol(exp268, Decl(manyConstExports.ts, 268, 12)) + +export const exp269 = "test"; +>exp269 : Symbol(exp269, Decl(manyConstExports.ts, 269, 12)) + +export const exp270 = "test"; +>exp270 : Symbol(exp270, Decl(manyConstExports.ts, 270, 12)) + +export const exp271 = "test"; +>exp271 : Symbol(exp271, Decl(manyConstExports.ts, 271, 12)) + +export const exp272 = "test"; +>exp272 : Symbol(exp272, Decl(manyConstExports.ts, 272, 12)) + +export const exp273 = "test"; +>exp273 : Symbol(exp273, Decl(manyConstExports.ts, 273, 12)) + +export const exp274 = "test"; +>exp274 : Symbol(exp274, Decl(manyConstExports.ts, 274, 12)) + +export const exp275 = "test"; +>exp275 : Symbol(exp275, Decl(manyConstExports.ts, 275, 12)) + +export const exp276 = "test"; +>exp276 : Symbol(exp276, Decl(manyConstExports.ts, 276, 12)) + +export const exp277 = "test"; +>exp277 : Symbol(exp277, Decl(manyConstExports.ts, 277, 12)) + +export const exp278 = "test"; +>exp278 : Symbol(exp278, Decl(manyConstExports.ts, 278, 12)) + +export const exp279 = "test"; +>exp279 : Symbol(exp279, Decl(manyConstExports.ts, 279, 12)) + +export const exp280 = "test"; +>exp280 : Symbol(exp280, Decl(manyConstExports.ts, 280, 12)) + +export const exp281 = "test"; +>exp281 : Symbol(exp281, Decl(manyConstExports.ts, 281, 12)) + +export const exp282 = "test"; +>exp282 : Symbol(exp282, Decl(manyConstExports.ts, 282, 12)) + +export const exp283 = "test"; +>exp283 : Symbol(exp283, Decl(manyConstExports.ts, 283, 12)) + +export const exp284 = "test"; +>exp284 : Symbol(exp284, Decl(manyConstExports.ts, 284, 12)) + +export const exp285 = "test"; +>exp285 : Symbol(exp285, Decl(manyConstExports.ts, 285, 12)) + +export const exp286 = "test"; +>exp286 : Symbol(exp286, Decl(manyConstExports.ts, 286, 12)) + +export const exp287 = "test"; +>exp287 : Symbol(exp287, Decl(manyConstExports.ts, 287, 12)) + +export const exp288 = "test"; +>exp288 : Symbol(exp288, Decl(manyConstExports.ts, 288, 12)) + +export const exp289 = "test"; +>exp289 : Symbol(exp289, Decl(manyConstExports.ts, 289, 12)) + +export const exp290 = "test"; +>exp290 : Symbol(exp290, Decl(manyConstExports.ts, 290, 12)) + +export const exp291 = "test"; +>exp291 : Symbol(exp291, Decl(manyConstExports.ts, 291, 12)) + +export const exp292 = "test"; +>exp292 : Symbol(exp292, Decl(manyConstExports.ts, 292, 12)) + +export const exp293 = "test"; +>exp293 : Symbol(exp293, Decl(manyConstExports.ts, 293, 12)) + +export const exp294 = "test"; +>exp294 : Symbol(exp294, Decl(manyConstExports.ts, 294, 12)) + +export const exp295 = "test"; +>exp295 : Symbol(exp295, Decl(manyConstExports.ts, 295, 12)) + +export const exp296 = "test"; +>exp296 : Symbol(exp296, Decl(manyConstExports.ts, 296, 12)) + +export const exp297 = "test"; +>exp297 : Symbol(exp297, Decl(manyConstExports.ts, 297, 12)) + +export const exp298 = "test"; +>exp298 : Symbol(exp298, Decl(manyConstExports.ts, 298, 12)) + +export const exp299 = "test"; +>exp299 : Symbol(exp299, Decl(manyConstExports.ts, 299, 12)) + +export const exp300 = "test"; +>exp300 : Symbol(exp300, Decl(manyConstExports.ts, 300, 12)) + +export const exp301 = "test"; +>exp301 : Symbol(exp301, Decl(manyConstExports.ts, 301, 12)) + +export const exp302 = "test"; +>exp302 : Symbol(exp302, Decl(manyConstExports.ts, 302, 12)) + +export const exp303 = "test"; +>exp303 : Symbol(exp303, Decl(manyConstExports.ts, 303, 12)) + +export const exp304 = "test"; +>exp304 : Symbol(exp304, Decl(manyConstExports.ts, 304, 12)) + +export const exp305 = "test"; +>exp305 : Symbol(exp305, Decl(manyConstExports.ts, 305, 12)) + +export const exp306 = "test"; +>exp306 : Symbol(exp306, Decl(manyConstExports.ts, 306, 12)) + +export const exp307 = "test"; +>exp307 : Symbol(exp307, Decl(manyConstExports.ts, 307, 12)) + +export const exp308 = "test"; +>exp308 : Symbol(exp308, Decl(manyConstExports.ts, 308, 12)) + +export const exp309 = "test"; +>exp309 : Symbol(exp309, Decl(manyConstExports.ts, 309, 12)) + +export const exp310 = "test"; +>exp310 : Symbol(exp310, Decl(manyConstExports.ts, 310, 12)) + +export const exp311 = "test"; +>exp311 : Symbol(exp311, Decl(manyConstExports.ts, 311, 12)) + +export const exp312 = "test"; +>exp312 : Symbol(exp312, Decl(manyConstExports.ts, 312, 12)) + +export const exp313 = "test"; +>exp313 : Symbol(exp313, Decl(manyConstExports.ts, 313, 12)) + +export const exp314 = "test"; +>exp314 : Symbol(exp314, Decl(manyConstExports.ts, 314, 12)) + +export const exp315 = "test"; +>exp315 : Symbol(exp315, Decl(manyConstExports.ts, 315, 12)) + +export const exp316 = "test"; +>exp316 : Symbol(exp316, Decl(manyConstExports.ts, 316, 12)) + +export const exp317 = "test"; +>exp317 : Symbol(exp317, Decl(manyConstExports.ts, 317, 12)) + +export const exp318 = "test"; +>exp318 : Symbol(exp318, Decl(manyConstExports.ts, 318, 12)) + +export const exp319 = "test"; +>exp319 : Symbol(exp319, Decl(manyConstExports.ts, 319, 12)) + +export const exp320 = "test"; +>exp320 : Symbol(exp320, Decl(manyConstExports.ts, 320, 12)) + +export const exp321 = "test"; +>exp321 : Symbol(exp321, Decl(manyConstExports.ts, 321, 12)) + +export const exp322 = "test"; +>exp322 : Symbol(exp322, Decl(manyConstExports.ts, 322, 12)) + +export const exp323 = "test"; +>exp323 : Symbol(exp323, Decl(manyConstExports.ts, 323, 12)) + +export const exp324 = "test"; +>exp324 : Symbol(exp324, Decl(manyConstExports.ts, 324, 12)) + +export const exp325 = "test"; +>exp325 : Symbol(exp325, Decl(manyConstExports.ts, 325, 12)) + +export const exp326 = "test"; +>exp326 : Symbol(exp326, Decl(manyConstExports.ts, 326, 12)) + +export const exp327 = "test"; +>exp327 : Symbol(exp327, Decl(manyConstExports.ts, 327, 12)) + +export const exp328 = "test"; +>exp328 : Symbol(exp328, Decl(manyConstExports.ts, 328, 12)) + +export const exp329 = "test"; +>exp329 : Symbol(exp329, Decl(manyConstExports.ts, 329, 12)) + +export const exp330 = "test"; +>exp330 : Symbol(exp330, Decl(manyConstExports.ts, 330, 12)) + +export const exp331 = "test"; +>exp331 : Symbol(exp331, Decl(manyConstExports.ts, 331, 12)) + +export const exp332 = "test"; +>exp332 : Symbol(exp332, Decl(manyConstExports.ts, 332, 12)) + +export const exp333 = "test"; +>exp333 : Symbol(exp333, Decl(manyConstExports.ts, 333, 12)) + +export const exp334 = "test"; +>exp334 : Symbol(exp334, Decl(manyConstExports.ts, 334, 12)) + +export const exp335 = "test"; +>exp335 : Symbol(exp335, Decl(manyConstExports.ts, 335, 12)) + +export const exp336 = "test"; +>exp336 : Symbol(exp336, Decl(manyConstExports.ts, 336, 12)) + +export const exp337 = "test"; +>exp337 : Symbol(exp337, Decl(manyConstExports.ts, 337, 12)) + +export const exp338 = "test"; +>exp338 : Symbol(exp338, Decl(manyConstExports.ts, 338, 12)) + +export const exp339 = "test"; +>exp339 : Symbol(exp339, Decl(manyConstExports.ts, 339, 12)) + +export const exp340 = "test"; +>exp340 : Symbol(exp340, Decl(manyConstExports.ts, 340, 12)) + +export const exp341 = "test"; +>exp341 : Symbol(exp341, Decl(manyConstExports.ts, 341, 12)) + +export const exp342 = "test"; +>exp342 : Symbol(exp342, Decl(manyConstExports.ts, 342, 12)) + +export const exp343 = "test"; +>exp343 : Symbol(exp343, Decl(manyConstExports.ts, 343, 12)) + +export const exp344 = "test"; +>exp344 : Symbol(exp344, Decl(manyConstExports.ts, 344, 12)) + +export const exp345 = "test"; +>exp345 : Symbol(exp345, Decl(manyConstExports.ts, 345, 12)) + +export const exp346 = "test"; +>exp346 : Symbol(exp346, Decl(manyConstExports.ts, 346, 12)) + +export const exp347 = "test"; +>exp347 : Symbol(exp347, Decl(manyConstExports.ts, 347, 12)) + +export const exp348 = "test"; +>exp348 : Symbol(exp348, Decl(manyConstExports.ts, 348, 12)) + +export const exp349 = "test"; +>exp349 : Symbol(exp349, Decl(manyConstExports.ts, 349, 12)) + +export const exp350 = "test"; +>exp350 : Symbol(exp350, Decl(manyConstExports.ts, 350, 12)) + +export const exp351 = "test"; +>exp351 : Symbol(exp351, Decl(manyConstExports.ts, 351, 12)) + +export const exp352 = "test"; +>exp352 : Symbol(exp352, Decl(manyConstExports.ts, 352, 12)) + +export const exp353 = "test"; +>exp353 : Symbol(exp353, Decl(manyConstExports.ts, 353, 12)) + +export const exp354 = "test"; +>exp354 : Symbol(exp354, Decl(manyConstExports.ts, 354, 12)) + +export const exp355 = "test"; +>exp355 : Symbol(exp355, Decl(manyConstExports.ts, 355, 12)) + +export const exp356 = "test"; +>exp356 : Symbol(exp356, Decl(manyConstExports.ts, 356, 12)) + +export const exp357 = "test"; +>exp357 : Symbol(exp357, Decl(manyConstExports.ts, 357, 12)) + +export const exp358 = "test"; +>exp358 : Symbol(exp358, Decl(manyConstExports.ts, 358, 12)) + +export const exp359 = "test"; +>exp359 : Symbol(exp359, Decl(manyConstExports.ts, 359, 12)) + +export const exp360 = "test"; +>exp360 : Symbol(exp360, Decl(manyConstExports.ts, 360, 12)) + +export const exp361 = "test"; +>exp361 : Symbol(exp361, Decl(manyConstExports.ts, 361, 12)) + +export const exp362 = "test"; +>exp362 : Symbol(exp362, Decl(manyConstExports.ts, 362, 12)) + +export const exp363 = "test"; +>exp363 : Symbol(exp363, Decl(manyConstExports.ts, 363, 12)) + +export const exp364 = "test"; +>exp364 : Symbol(exp364, Decl(manyConstExports.ts, 364, 12)) + +export const exp365 = "test"; +>exp365 : Symbol(exp365, Decl(manyConstExports.ts, 365, 12)) + +export const exp366 = "test"; +>exp366 : Symbol(exp366, Decl(manyConstExports.ts, 366, 12)) + +export const exp367 = "test"; +>exp367 : Symbol(exp367, Decl(manyConstExports.ts, 367, 12)) + +export const exp368 = "test"; +>exp368 : Symbol(exp368, Decl(manyConstExports.ts, 368, 12)) + +export const exp369 = "test"; +>exp369 : Symbol(exp369, Decl(manyConstExports.ts, 369, 12)) + +export const exp370 = "test"; +>exp370 : Symbol(exp370, Decl(manyConstExports.ts, 370, 12)) + +export const exp371 = "test"; +>exp371 : Symbol(exp371, Decl(manyConstExports.ts, 371, 12)) + +export const exp372 = "test"; +>exp372 : Symbol(exp372, Decl(manyConstExports.ts, 372, 12)) + +export const exp373 = "test"; +>exp373 : Symbol(exp373, Decl(manyConstExports.ts, 373, 12)) + +export const exp374 = "test"; +>exp374 : Symbol(exp374, Decl(manyConstExports.ts, 374, 12)) + +export const exp375 = "test"; +>exp375 : Symbol(exp375, Decl(manyConstExports.ts, 375, 12)) + +export const exp376 = "test"; +>exp376 : Symbol(exp376, Decl(manyConstExports.ts, 376, 12)) + +export const exp377 = "test"; +>exp377 : Symbol(exp377, Decl(manyConstExports.ts, 377, 12)) + +export const exp378 = "test"; +>exp378 : Symbol(exp378, Decl(manyConstExports.ts, 378, 12)) + +export const exp379 = "test"; +>exp379 : Symbol(exp379, Decl(manyConstExports.ts, 379, 12)) + +export const exp380 = "test"; +>exp380 : Symbol(exp380, Decl(manyConstExports.ts, 380, 12)) + +export const exp381 = "test"; +>exp381 : Symbol(exp381, Decl(manyConstExports.ts, 381, 12)) + +export const exp382 = "test"; +>exp382 : Symbol(exp382, Decl(manyConstExports.ts, 382, 12)) + +export const exp383 = "test"; +>exp383 : Symbol(exp383, Decl(manyConstExports.ts, 383, 12)) + +export const exp384 = "test"; +>exp384 : Symbol(exp384, Decl(manyConstExports.ts, 384, 12)) + +export const exp385 = "test"; +>exp385 : Symbol(exp385, Decl(manyConstExports.ts, 385, 12)) + +export const exp386 = "test"; +>exp386 : Symbol(exp386, Decl(manyConstExports.ts, 386, 12)) + +export const exp387 = "test"; +>exp387 : Symbol(exp387, Decl(manyConstExports.ts, 387, 12)) + +export const exp388 = "test"; +>exp388 : Symbol(exp388, Decl(manyConstExports.ts, 388, 12)) + +export const exp389 = "test"; +>exp389 : Symbol(exp389, Decl(manyConstExports.ts, 389, 12)) + +export const exp390 = "test"; +>exp390 : Symbol(exp390, Decl(manyConstExports.ts, 390, 12)) + +export const exp391 = "test"; +>exp391 : Symbol(exp391, Decl(manyConstExports.ts, 391, 12)) + +export const exp392 = "test"; +>exp392 : Symbol(exp392, Decl(manyConstExports.ts, 392, 12)) + +export const exp393 = "test"; +>exp393 : Symbol(exp393, Decl(manyConstExports.ts, 393, 12)) + +export const exp394 = "test"; +>exp394 : Symbol(exp394, Decl(manyConstExports.ts, 394, 12)) + +export const exp395 = "test"; +>exp395 : Symbol(exp395, Decl(manyConstExports.ts, 395, 12)) + +export const exp396 = "test"; +>exp396 : Symbol(exp396, Decl(manyConstExports.ts, 396, 12)) + +export const exp397 = "test"; +>exp397 : Symbol(exp397, Decl(manyConstExports.ts, 397, 12)) + +export const exp398 = "test"; +>exp398 : Symbol(exp398, Decl(manyConstExports.ts, 398, 12)) + +export const exp399 = "test"; +>exp399 : Symbol(exp399, Decl(manyConstExports.ts, 399, 12)) + +export const exp400 = "test"; +>exp400 : Symbol(exp400, Decl(manyConstExports.ts, 400, 12)) + +export const exp401 = "test"; +>exp401 : Symbol(exp401, Decl(manyConstExports.ts, 401, 12)) + +export const exp402 = "test"; +>exp402 : Symbol(exp402, Decl(manyConstExports.ts, 402, 12)) + +export const exp403 = "test"; +>exp403 : Symbol(exp403, Decl(manyConstExports.ts, 403, 12)) + +export const exp404 = "test"; +>exp404 : Symbol(exp404, Decl(manyConstExports.ts, 404, 12)) + +export const exp405 = "test"; +>exp405 : Symbol(exp405, Decl(manyConstExports.ts, 405, 12)) + +export const exp406 = "test"; +>exp406 : Symbol(exp406, Decl(manyConstExports.ts, 406, 12)) + +export const exp407 = "test"; +>exp407 : Symbol(exp407, Decl(manyConstExports.ts, 407, 12)) + +export const exp408 = "test"; +>exp408 : Symbol(exp408, Decl(manyConstExports.ts, 408, 12)) + +export const exp409 = "test"; +>exp409 : Symbol(exp409, Decl(manyConstExports.ts, 409, 12)) + +export const exp410 = "test"; +>exp410 : Symbol(exp410, Decl(manyConstExports.ts, 410, 12)) + +export const exp411 = "test"; +>exp411 : Symbol(exp411, Decl(manyConstExports.ts, 411, 12)) + +export const exp412 = "test"; +>exp412 : Symbol(exp412, Decl(manyConstExports.ts, 412, 12)) + +export const exp413 = "test"; +>exp413 : Symbol(exp413, Decl(manyConstExports.ts, 413, 12)) + +export const exp414 = "test"; +>exp414 : Symbol(exp414, Decl(manyConstExports.ts, 414, 12)) + +export const exp415 = "test"; +>exp415 : Symbol(exp415, Decl(manyConstExports.ts, 415, 12)) + +export const exp416 = "test"; +>exp416 : Symbol(exp416, Decl(manyConstExports.ts, 416, 12)) + +export const exp417 = "test"; +>exp417 : Symbol(exp417, Decl(manyConstExports.ts, 417, 12)) + +export const exp418 = "test"; +>exp418 : Symbol(exp418, Decl(manyConstExports.ts, 418, 12)) + +export const exp419 = "test"; +>exp419 : Symbol(exp419, Decl(manyConstExports.ts, 419, 12)) + +export const exp420 = "test"; +>exp420 : Symbol(exp420, Decl(manyConstExports.ts, 420, 12)) + +export const exp421 = "test"; +>exp421 : Symbol(exp421, Decl(manyConstExports.ts, 421, 12)) + +export const exp422 = "test"; +>exp422 : Symbol(exp422, Decl(manyConstExports.ts, 422, 12)) + +export const exp423 = "test"; +>exp423 : Symbol(exp423, Decl(manyConstExports.ts, 423, 12)) + +export const exp424 = "test"; +>exp424 : Symbol(exp424, Decl(manyConstExports.ts, 424, 12)) + +export const exp425 = "test"; +>exp425 : Symbol(exp425, Decl(manyConstExports.ts, 425, 12)) + +export const exp426 = "test"; +>exp426 : Symbol(exp426, Decl(manyConstExports.ts, 426, 12)) + +export const exp427 = "test"; +>exp427 : Symbol(exp427, Decl(manyConstExports.ts, 427, 12)) + +export const exp428 = "test"; +>exp428 : Symbol(exp428, Decl(manyConstExports.ts, 428, 12)) + +export const exp429 = "test"; +>exp429 : Symbol(exp429, Decl(manyConstExports.ts, 429, 12)) + +export const exp430 = "test"; +>exp430 : Symbol(exp430, Decl(manyConstExports.ts, 430, 12)) + +export const exp431 = "test"; +>exp431 : Symbol(exp431, Decl(manyConstExports.ts, 431, 12)) + +export const exp432 = "test"; +>exp432 : Symbol(exp432, Decl(manyConstExports.ts, 432, 12)) + +export const exp433 = "test"; +>exp433 : Symbol(exp433, Decl(manyConstExports.ts, 433, 12)) + +export const exp434 = "test"; +>exp434 : Symbol(exp434, Decl(manyConstExports.ts, 434, 12)) + +export const exp435 = "test"; +>exp435 : Symbol(exp435, Decl(manyConstExports.ts, 435, 12)) + +export const exp436 = "test"; +>exp436 : Symbol(exp436, Decl(manyConstExports.ts, 436, 12)) + +export const exp437 = "test"; +>exp437 : Symbol(exp437, Decl(manyConstExports.ts, 437, 12)) + +export const exp438 = "test"; +>exp438 : Symbol(exp438, Decl(manyConstExports.ts, 438, 12)) + +export const exp439 = "test"; +>exp439 : Symbol(exp439, Decl(manyConstExports.ts, 439, 12)) + +export const exp440 = "test"; +>exp440 : Symbol(exp440, Decl(manyConstExports.ts, 440, 12)) + +export const exp441 = "test"; +>exp441 : Symbol(exp441, Decl(manyConstExports.ts, 441, 12)) + +export const exp442 = "test"; +>exp442 : Symbol(exp442, Decl(manyConstExports.ts, 442, 12)) + +export const exp443 = "test"; +>exp443 : Symbol(exp443, Decl(manyConstExports.ts, 443, 12)) + +export const exp444 = "test"; +>exp444 : Symbol(exp444, Decl(manyConstExports.ts, 444, 12)) + +export const exp445 = "test"; +>exp445 : Symbol(exp445, Decl(manyConstExports.ts, 445, 12)) + +export const exp446 = "test"; +>exp446 : Symbol(exp446, Decl(manyConstExports.ts, 446, 12)) + +export const exp447 = "test"; +>exp447 : Symbol(exp447, Decl(manyConstExports.ts, 447, 12)) + +export const exp448 = "test"; +>exp448 : Symbol(exp448, Decl(manyConstExports.ts, 448, 12)) + +export const exp449 = "test"; +>exp449 : Symbol(exp449, Decl(manyConstExports.ts, 449, 12)) + +export const exp450 = "test"; +>exp450 : Symbol(exp450, Decl(manyConstExports.ts, 450, 12)) + +export const exp451 = "test"; +>exp451 : Symbol(exp451, Decl(manyConstExports.ts, 451, 12)) + +export const exp452 = "test"; +>exp452 : Symbol(exp452, Decl(manyConstExports.ts, 452, 12)) + +export const exp453 = "test"; +>exp453 : Symbol(exp453, Decl(manyConstExports.ts, 453, 12)) + +export const exp454 = "test"; +>exp454 : Symbol(exp454, Decl(manyConstExports.ts, 454, 12)) + +export const exp455 = "test"; +>exp455 : Symbol(exp455, Decl(manyConstExports.ts, 455, 12)) + +export const exp456 = "test"; +>exp456 : Symbol(exp456, Decl(manyConstExports.ts, 456, 12)) + +export const exp457 = "test"; +>exp457 : Symbol(exp457, Decl(manyConstExports.ts, 457, 12)) + +export const exp458 = "test"; +>exp458 : Symbol(exp458, Decl(manyConstExports.ts, 458, 12)) + +export const exp459 = "test"; +>exp459 : Symbol(exp459, Decl(manyConstExports.ts, 459, 12)) + +export const exp460 = "test"; +>exp460 : Symbol(exp460, Decl(manyConstExports.ts, 460, 12)) + +export const exp461 = "test"; +>exp461 : Symbol(exp461, Decl(manyConstExports.ts, 461, 12)) + +export const exp462 = "test"; +>exp462 : Symbol(exp462, Decl(manyConstExports.ts, 462, 12)) + +export const exp463 = "test"; +>exp463 : Symbol(exp463, Decl(manyConstExports.ts, 463, 12)) + +export const exp464 = "test"; +>exp464 : Symbol(exp464, Decl(manyConstExports.ts, 464, 12)) + +export const exp465 = "test"; +>exp465 : Symbol(exp465, Decl(manyConstExports.ts, 465, 12)) + +export const exp466 = "test"; +>exp466 : Symbol(exp466, Decl(manyConstExports.ts, 466, 12)) + +export const exp467 = "test"; +>exp467 : Symbol(exp467, Decl(manyConstExports.ts, 467, 12)) + +export const exp468 = "test"; +>exp468 : Symbol(exp468, Decl(manyConstExports.ts, 468, 12)) + +export const exp469 = "test"; +>exp469 : Symbol(exp469, Decl(manyConstExports.ts, 469, 12)) + +export const exp470 = "test"; +>exp470 : Symbol(exp470, Decl(manyConstExports.ts, 470, 12)) + +export const exp471 = "test"; +>exp471 : Symbol(exp471, Decl(manyConstExports.ts, 471, 12)) + +export const exp472 = "test"; +>exp472 : Symbol(exp472, Decl(manyConstExports.ts, 472, 12)) + +export const exp473 = "test"; +>exp473 : Symbol(exp473, Decl(manyConstExports.ts, 473, 12)) + +export const exp474 = "test"; +>exp474 : Symbol(exp474, Decl(manyConstExports.ts, 474, 12)) + +export const exp475 = "test"; +>exp475 : Symbol(exp475, Decl(manyConstExports.ts, 475, 12)) + +export const exp476 = "test"; +>exp476 : Symbol(exp476, Decl(manyConstExports.ts, 476, 12)) + +export const exp477 = "test"; +>exp477 : Symbol(exp477, Decl(manyConstExports.ts, 477, 12)) + +export const exp478 = "test"; +>exp478 : Symbol(exp478, Decl(manyConstExports.ts, 478, 12)) + +export const exp479 = "test"; +>exp479 : Symbol(exp479, Decl(manyConstExports.ts, 479, 12)) + +export const exp480 = "test"; +>exp480 : Symbol(exp480, Decl(manyConstExports.ts, 480, 12)) + +export const exp481 = "test"; +>exp481 : Symbol(exp481, Decl(manyConstExports.ts, 481, 12)) + +export const exp482 = "test"; +>exp482 : Symbol(exp482, Decl(manyConstExports.ts, 482, 12)) + +export const exp483 = "test"; +>exp483 : Symbol(exp483, Decl(manyConstExports.ts, 483, 12)) + +export const exp484 = "test"; +>exp484 : Symbol(exp484, Decl(manyConstExports.ts, 484, 12)) + +export const exp485 = "test"; +>exp485 : Symbol(exp485, Decl(manyConstExports.ts, 485, 12)) + +export const exp486 = "test"; +>exp486 : Symbol(exp486, Decl(manyConstExports.ts, 486, 12)) + +export const exp487 = "test"; +>exp487 : Symbol(exp487, Decl(manyConstExports.ts, 487, 12)) + +export const exp488 = "test"; +>exp488 : Symbol(exp488, Decl(manyConstExports.ts, 488, 12)) + +export const exp489 = "test"; +>exp489 : Symbol(exp489, Decl(manyConstExports.ts, 489, 12)) + +export const exp490 = "test"; +>exp490 : Symbol(exp490, Decl(manyConstExports.ts, 490, 12)) + +export const exp491 = "test"; +>exp491 : Symbol(exp491, Decl(manyConstExports.ts, 491, 12)) + +export const exp492 = "test"; +>exp492 : Symbol(exp492, Decl(manyConstExports.ts, 492, 12)) + +export const exp493 = "test"; +>exp493 : Symbol(exp493, Decl(manyConstExports.ts, 493, 12)) + +export const exp494 = "test"; +>exp494 : Symbol(exp494, Decl(manyConstExports.ts, 494, 12)) + +export const exp495 = "test"; +>exp495 : Symbol(exp495, Decl(manyConstExports.ts, 495, 12)) + +export const exp496 = "test"; +>exp496 : Symbol(exp496, Decl(manyConstExports.ts, 496, 12)) + +export const exp497 = "test"; +>exp497 : Symbol(exp497, Decl(manyConstExports.ts, 497, 12)) + +export const exp498 = "test"; +>exp498 : Symbol(exp498, Decl(manyConstExports.ts, 498, 12)) + +export const exp499 = "test"; +>exp499 : Symbol(exp499, Decl(manyConstExports.ts, 499, 12)) + +export const exp500 = "test"; +>exp500 : Symbol(exp500, Decl(manyConstExports.ts, 500, 12)) + +export const exp501 = "test"; +>exp501 : Symbol(exp501, Decl(manyConstExports.ts, 501, 12)) + +export const exp502 = "test"; +>exp502 : Symbol(exp502, Decl(manyConstExports.ts, 502, 12)) + +export const exp503 = "test"; +>exp503 : Symbol(exp503, Decl(manyConstExports.ts, 503, 12)) + +export const exp504 = "test"; +>exp504 : Symbol(exp504, Decl(manyConstExports.ts, 504, 12)) + +export const exp505 = "test"; +>exp505 : Symbol(exp505, Decl(manyConstExports.ts, 505, 12)) + +export const exp506 = "test"; +>exp506 : Symbol(exp506, Decl(manyConstExports.ts, 506, 12)) + +export const exp507 = "test"; +>exp507 : Symbol(exp507, Decl(manyConstExports.ts, 507, 12)) + +export const exp508 = "test"; +>exp508 : Symbol(exp508, Decl(manyConstExports.ts, 508, 12)) + +export const exp509 = "test"; +>exp509 : Symbol(exp509, Decl(manyConstExports.ts, 509, 12)) + +export const exp510 = "test"; +>exp510 : Symbol(exp510, Decl(manyConstExports.ts, 510, 12)) + +export const exp511 = "test"; +>exp511 : Symbol(exp511, Decl(manyConstExports.ts, 511, 12)) + +export const exp512 = "test"; +>exp512 : Symbol(exp512, Decl(manyConstExports.ts, 512, 12)) + +export const exp513 = "test"; +>exp513 : Symbol(exp513, Decl(manyConstExports.ts, 513, 12)) + +export const exp514 = "test"; +>exp514 : Symbol(exp514, Decl(manyConstExports.ts, 514, 12)) + +export const exp515 = "test"; +>exp515 : Symbol(exp515, Decl(manyConstExports.ts, 515, 12)) + +export const exp516 = "test"; +>exp516 : Symbol(exp516, Decl(manyConstExports.ts, 516, 12)) + +export const exp517 = "test"; +>exp517 : Symbol(exp517, Decl(manyConstExports.ts, 517, 12)) + +export const exp518 = "test"; +>exp518 : Symbol(exp518, Decl(manyConstExports.ts, 518, 12)) + +export const exp519 = "test"; +>exp519 : Symbol(exp519, Decl(manyConstExports.ts, 519, 12)) + +export const exp520 = "test"; +>exp520 : Symbol(exp520, Decl(manyConstExports.ts, 520, 12)) + +export const exp521 = "test"; +>exp521 : Symbol(exp521, Decl(manyConstExports.ts, 521, 12)) + +export const exp522 = "test"; +>exp522 : Symbol(exp522, Decl(manyConstExports.ts, 522, 12)) + +export const exp523 = "test"; +>exp523 : Symbol(exp523, Decl(manyConstExports.ts, 523, 12)) + +export const exp524 = "test"; +>exp524 : Symbol(exp524, Decl(manyConstExports.ts, 524, 12)) + +export const exp525 = "test"; +>exp525 : Symbol(exp525, Decl(manyConstExports.ts, 525, 12)) + +export const exp526 = "test"; +>exp526 : Symbol(exp526, Decl(manyConstExports.ts, 526, 12)) + +export const exp527 = "test"; +>exp527 : Symbol(exp527, Decl(manyConstExports.ts, 527, 12)) + +export const exp528 = "test"; +>exp528 : Symbol(exp528, Decl(manyConstExports.ts, 528, 12)) + +export const exp529 = "test"; +>exp529 : Symbol(exp529, Decl(manyConstExports.ts, 529, 12)) + +export const exp530 = "test"; +>exp530 : Symbol(exp530, Decl(manyConstExports.ts, 530, 12)) + +export const exp531 = "test"; +>exp531 : Symbol(exp531, Decl(manyConstExports.ts, 531, 12)) + +export const exp532 = "test"; +>exp532 : Symbol(exp532, Decl(manyConstExports.ts, 532, 12)) + +export const exp533 = "test"; +>exp533 : Symbol(exp533, Decl(manyConstExports.ts, 533, 12)) + +export const exp534 = "test"; +>exp534 : Symbol(exp534, Decl(manyConstExports.ts, 534, 12)) + +export const exp535 = "test"; +>exp535 : Symbol(exp535, Decl(manyConstExports.ts, 535, 12)) + +export const exp536 = "test"; +>exp536 : Symbol(exp536, Decl(manyConstExports.ts, 536, 12)) + +export const exp537 = "test"; +>exp537 : Symbol(exp537, Decl(manyConstExports.ts, 537, 12)) + +export const exp538 = "test"; +>exp538 : Symbol(exp538, Decl(manyConstExports.ts, 538, 12)) + +export const exp539 = "test"; +>exp539 : Symbol(exp539, Decl(manyConstExports.ts, 539, 12)) + +export const exp540 = "test"; +>exp540 : Symbol(exp540, Decl(manyConstExports.ts, 540, 12)) + +export const exp541 = "test"; +>exp541 : Symbol(exp541, Decl(manyConstExports.ts, 541, 12)) + +export const exp542 = "test"; +>exp542 : Symbol(exp542, Decl(manyConstExports.ts, 542, 12)) + +export const exp543 = "test"; +>exp543 : Symbol(exp543, Decl(manyConstExports.ts, 543, 12)) + +export const exp544 = "test"; +>exp544 : Symbol(exp544, Decl(manyConstExports.ts, 544, 12)) + +export const exp545 = "test"; +>exp545 : Symbol(exp545, Decl(manyConstExports.ts, 545, 12)) + +export const exp546 = "test"; +>exp546 : Symbol(exp546, Decl(manyConstExports.ts, 546, 12)) + +export const exp547 = "test"; +>exp547 : Symbol(exp547, Decl(manyConstExports.ts, 547, 12)) + +export const exp548 = "test"; +>exp548 : Symbol(exp548, Decl(manyConstExports.ts, 548, 12)) + +export const exp549 = "test"; +>exp549 : Symbol(exp549, Decl(manyConstExports.ts, 549, 12)) + +export const exp550 = "test"; +>exp550 : Symbol(exp550, Decl(manyConstExports.ts, 550, 12)) + +export const exp551 = "test"; +>exp551 : Symbol(exp551, Decl(manyConstExports.ts, 551, 12)) + +export const exp552 = "test"; +>exp552 : Symbol(exp552, Decl(manyConstExports.ts, 552, 12)) + +export const exp553 = "test"; +>exp553 : Symbol(exp553, Decl(manyConstExports.ts, 553, 12)) + +export const exp554 = "test"; +>exp554 : Symbol(exp554, Decl(manyConstExports.ts, 554, 12)) + +export const exp555 = "test"; +>exp555 : Symbol(exp555, Decl(manyConstExports.ts, 555, 12)) + +export const exp556 = "test"; +>exp556 : Symbol(exp556, Decl(manyConstExports.ts, 556, 12)) + +export const exp557 = "test"; +>exp557 : Symbol(exp557, Decl(manyConstExports.ts, 557, 12)) + +export const exp558 = "test"; +>exp558 : Symbol(exp558, Decl(manyConstExports.ts, 558, 12)) + +export const exp559 = "test"; +>exp559 : Symbol(exp559, Decl(manyConstExports.ts, 559, 12)) + +export const exp560 = "test"; +>exp560 : Symbol(exp560, Decl(manyConstExports.ts, 560, 12)) + +export const exp561 = "test"; +>exp561 : Symbol(exp561, Decl(manyConstExports.ts, 561, 12)) + +export const exp562 = "test"; +>exp562 : Symbol(exp562, Decl(manyConstExports.ts, 562, 12)) + +export const exp563 = "test"; +>exp563 : Symbol(exp563, Decl(manyConstExports.ts, 563, 12)) + +export const exp564 = "test"; +>exp564 : Symbol(exp564, Decl(manyConstExports.ts, 564, 12)) + +export const exp565 = "test"; +>exp565 : Symbol(exp565, Decl(manyConstExports.ts, 565, 12)) + +export const exp566 = "test"; +>exp566 : Symbol(exp566, Decl(manyConstExports.ts, 566, 12)) + +export const exp567 = "test"; +>exp567 : Symbol(exp567, Decl(manyConstExports.ts, 567, 12)) + +export const exp568 = "test"; +>exp568 : Symbol(exp568, Decl(manyConstExports.ts, 568, 12)) + +export const exp569 = "test"; +>exp569 : Symbol(exp569, Decl(manyConstExports.ts, 569, 12)) + +export const exp570 = "test"; +>exp570 : Symbol(exp570, Decl(manyConstExports.ts, 570, 12)) + +export const exp571 = "test"; +>exp571 : Symbol(exp571, Decl(manyConstExports.ts, 571, 12)) + +export const exp572 = "test"; +>exp572 : Symbol(exp572, Decl(manyConstExports.ts, 572, 12)) + +export const exp573 = "test"; +>exp573 : Symbol(exp573, Decl(manyConstExports.ts, 573, 12)) + +export const exp574 = "test"; +>exp574 : Symbol(exp574, Decl(manyConstExports.ts, 574, 12)) + +export const exp575 = "test"; +>exp575 : Symbol(exp575, Decl(manyConstExports.ts, 575, 12)) + +export const exp576 = "test"; +>exp576 : Symbol(exp576, Decl(manyConstExports.ts, 576, 12)) + +export const exp577 = "test"; +>exp577 : Symbol(exp577, Decl(manyConstExports.ts, 577, 12)) + +export const exp578 = "test"; +>exp578 : Symbol(exp578, Decl(manyConstExports.ts, 578, 12)) + +export const exp579 = "test"; +>exp579 : Symbol(exp579, Decl(manyConstExports.ts, 579, 12)) + +export const exp580 = "test"; +>exp580 : Symbol(exp580, Decl(manyConstExports.ts, 580, 12)) + +export const exp581 = "test"; +>exp581 : Symbol(exp581, Decl(manyConstExports.ts, 581, 12)) + +export const exp582 = "test"; +>exp582 : Symbol(exp582, Decl(manyConstExports.ts, 582, 12)) + +export const exp583 = "test"; +>exp583 : Symbol(exp583, Decl(manyConstExports.ts, 583, 12)) + +export const exp584 = "test"; +>exp584 : Symbol(exp584, Decl(manyConstExports.ts, 584, 12)) + +export const exp585 = "test"; +>exp585 : Symbol(exp585, Decl(manyConstExports.ts, 585, 12)) + +export const exp586 = "test"; +>exp586 : Symbol(exp586, Decl(manyConstExports.ts, 586, 12)) + +export const exp587 = "test"; +>exp587 : Symbol(exp587, Decl(manyConstExports.ts, 587, 12)) + +export const exp588 = "test"; +>exp588 : Symbol(exp588, Decl(manyConstExports.ts, 588, 12)) + +export const exp589 = "test"; +>exp589 : Symbol(exp589, Decl(manyConstExports.ts, 589, 12)) + +export const exp590 = "test"; +>exp590 : Symbol(exp590, Decl(manyConstExports.ts, 590, 12)) + +export const exp591 = "test"; +>exp591 : Symbol(exp591, Decl(manyConstExports.ts, 591, 12)) + +export const exp592 = "test"; +>exp592 : Symbol(exp592, Decl(manyConstExports.ts, 592, 12)) + +export const exp593 = "test"; +>exp593 : Symbol(exp593, Decl(manyConstExports.ts, 593, 12)) + +export const exp594 = "test"; +>exp594 : Symbol(exp594, Decl(manyConstExports.ts, 594, 12)) + +export const exp595 = "test"; +>exp595 : Symbol(exp595, Decl(manyConstExports.ts, 595, 12)) + +export const exp596 = "test"; +>exp596 : Symbol(exp596, Decl(manyConstExports.ts, 596, 12)) + +export const exp597 = "test"; +>exp597 : Symbol(exp597, Decl(manyConstExports.ts, 597, 12)) + +export const exp598 = "test"; +>exp598 : Symbol(exp598, Decl(manyConstExports.ts, 598, 12)) + +export const exp599 = "test"; +>exp599 : Symbol(exp599, Decl(manyConstExports.ts, 599, 12)) + +export const exp600 = "test"; +>exp600 : Symbol(exp600, Decl(manyConstExports.ts, 600, 12)) + +export const exp601 = "test"; +>exp601 : Symbol(exp601, Decl(manyConstExports.ts, 601, 12)) + +export const exp602 = "test"; +>exp602 : Symbol(exp602, Decl(manyConstExports.ts, 602, 12)) + +export const exp603 = "test"; +>exp603 : Symbol(exp603, Decl(manyConstExports.ts, 603, 12)) + +export const exp604 = "test"; +>exp604 : Symbol(exp604, Decl(manyConstExports.ts, 604, 12)) + +export const exp605 = "test"; +>exp605 : Symbol(exp605, Decl(manyConstExports.ts, 605, 12)) + +export const exp606 = "test"; +>exp606 : Symbol(exp606, Decl(manyConstExports.ts, 606, 12)) + +export const exp607 = "test"; +>exp607 : Symbol(exp607, Decl(manyConstExports.ts, 607, 12)) + +export const exp608 = "test"; +>exp608 : Symbol(exp608, Decl(manyConstExports.ts, 608, 12)) + +export const exp609 = "test"; +>exp609 : Symbol(exp609, Decl(manyConstExports.ts, 609, 12)) + +export const exp610 = "test"; +>exp610 : Symbol(exp610, Decl(manyConstExports.ts, 610, 12)) + +export const exp611 = "test"; +>exp611 : Symbol(exp611, Decl(manyConstExports.ts, 611, 12)) + +export const exp612 = "test"; +>exp612 : Symbol(exp612, Decl(manyConstExports.ts, 612, 12)) + +export const exp613 = "test"; +>exp613 : Symbol(exp613, Decl(manyConstExports.ts, 613, 12)) + +export const exp614 = "test"; +>exp614 : Symbol(exp614, Decl(manyConstExports.ts, 614, 12)) + +export const exp615 = "test"; +>exp615 : Symbol(exp615, Decl(manyConstExports.ts, 615, 12)) + +export const exp616 = "test"; +>exp616 : Symbol(exp616, Decl(manyConstExports.ts, 616, 12)) + +export const exp617 = "test"; +>exp617 : Symbol(exp617, Decl(manyConstExports.ts, 617, 12)) + +export const exp618 = "test"; +>exp618 : Symbol(exp618, Decl(manyConstExports.ts, 618, 12)) + +export const exp619 = "test"; +>exp619 : Symbol(exp619, Decl(manyConstExports.ts, 619, 12)) + +export const exp620 = "test"; +>exp620 : Symbol(exp620, Decl(manyConstExports.ts, 620, 12)) + +export const exp621 = "test"; +>exp621 : Symbol(exp621, Decl(manyConstExports.ts, 621, 12)) + +export const exp622 = "test"; +>exp622 : Symbol(exp622, Decl(manyConstExports.ts, 622, 12)) + +export const exp623 = "test"; +>exp623 : Symbol(exp623, Decl(manyConstExports.ts, 623, 12)) + +export const exp624 = "test"; +>exp624 : Symbol(exp624, Decl(manyConstExports.ts, 624, 12)) + +export const exp625 = "test"; +>exp625 : Symbol(exp625, Decl(manyConstExports.ts, 625, 12)) + +export const exp626 = "test"; +>exp626 : Symbol(exp626, Decl(manyConstExports.ts, 626, 12)) + +export const exp627 = "test"; +>exp627 : Symbol(exp627, Decl(manyConstExports.ts, 627, 12)) + +export const exp628 = "test"; +>exp628 : Symbol(exp628, Decl(manyConstExports.ts, 628, 12)) + +export const exp629 = "test"; +>exp629 : Symbol(exp629, Decl(manyConstExports.ts, 629, 12)) + +export const exp630 = "test"; +>exp630 : Symbol(exp630, Decl(manyConstExports.ts, 630, 12)) + +export const exp631 = "test"; +>exp631 : Symbol(exp631, Decl(manyConstExports.ts, 631, 12)) + +export const exp632 = "test"; +>exp632 : Symbol(exp632, Decl(manyConstExports.ts, 632, 12)) + +export const exp633 = "test"; +>exp633 : Symbol(exp633, Decl(manyConstExports.ts, 633, 12)) + +export const exp634 = "test"; +>exp634 : Symbol(exp634, Decl(manyConstExports.ts, 634, 12)) + +export const exp635 = "test"; +>exp635 : Symbol(exp635, Decl(manyConstExports.ts, 635, 12)) + +export const exp636 = "test"; +>exp636 : Symbol(exp636, Decl(manyConstExports.ts, 636, 12)) + +export const exp637 = "test"; +>exp637 : Symbol(exp637, Decl(manyConstExports.ts, 637, 12)) + +export const exp638 = "test"; +>exp638 : Symbol(exp638, Decl(manyConstExports.ts, 638, 12)) + +export const exp639 = "test"; +>exp639 : Symbol(exp639, Decl(manyConstExports.ts, 639, 12)) + +export const exp640 = "test"; +>exp640 : Symbol(exp640, Decl(manyConstExports.ts, 640, 12)) + +export const exp641 = "test"; +>exp641 : Symbol(exp641, Decl(manyConstExports.ts, 641, 12)) + +export const exp642 = "test"; +>exp642 : Symbol(exp642, Decl(manyConstExports.ts, 642, 12)) + +export const exp643 = "test"; +>exp643 : Symbol(exp643, Decl(manyConstExports.ts, 643, 12)) + +export const exp644 = "test"; +>exp644 : Symbol(exp644, Decl(manyConstExports.ts, 644, 12)) + +export const exp645 = "test"; +>exp645 : Symbol(exp645, Decl(manyConstExports.ts, 645, 12)) + +export const exp646 = "test"; +>exp646 : Symbol(exp646, Decl(manyConstExports.ts, 646, 12)) + +export const exp647 = "test"; +>exp647 : Symbol(exp647, Decl(manyConstExports.ts, 647, 12)) + +export const exp648 = "test"; +>exp648 : Symbol(exp648, Decl(manyConstExports.ts, 648, 12)) + +export const exp649 = "test"; +>exp649 : Symbol(exp649, Decl(manyConstExports.ts, 649, 12)) + +export const exp650 = "test"; +>exp650 : Symbol(exp650, Decl(manyConstExports.ts, 650, 12)) + +export const exp651 = "test"; +>exp651 : Symbol(exp651, Decl(manyConstExports.ts, 651, 12)) + +export const exp652 = "test"; +>exp652 : Symbol(exp652, Decl(manyConstExports.ts, 652, 12)) + +export const exp653 = "test"; +>exp653 : Symbol(exp653, Decl(manyConstExports.ts, 653, 12)) + +export const exp654 = "test"; +>exp654 : Symbol(exp654, Decl(manyConstExports.ts, 654, 12)) + +export const exp655 = "test"; +>exp655 : Symbol(exp655, Decl(manyConstExports.ts, 655, 12)) + +export const exp656 = "test"; +>exp656 : Symbol(exp656, Decl(manyConstExports.ts, 656, 12)) + +export const exp657 = "test"; +>exp657 : Symbol(exp657, Decl(manyConstExports.ts, 657, 12)) + +export const exp658 = "test"; +>exp658 : Symbol(exp658, Decl(manyConstExports.ts, 658, 12)) + +export const exp659 = "test"; +>exp659 : Symbol(exp659, Decl(manyConstExports.ts, 659, 12)) + +export const exp660 = "test"; +>exp660 : Symbol(exp660, Decl(manyConstExports.ts, 660, 12)) + +export const exp661 = "test"; +>exp661 : Symbol(exp661, Decl(manyConstExports.ts, 661, 12)) + +export const exp662 = "test"; +>exp662 : Symbol(exp662, Decl(manyConstExports.ts, 662, 12)) + +export const exp663 = "test"; +>exp663 : Symbol(exp663, Decl(manyConstExports.ts, 663, 12)) + +export const exp664 = "test"; +>exp664 : Symbol(exp664, Decl(manyConstExports.ts, 664, 12)) + +export const exp665 = "test"; +>exp665 : Symbol(exp665, Decl(manyConstExports.ts, 665, 12)) + +export const exp666 = "test"; +>exp666 : Symbol(exp666, Decl(manyConstExports.ts, 666, 12)) + +export const exp667 = "test"; +>exp667 : Symbol(exp667, Decl(manyConstExports.ts, 667, 12)) + +export const exp668 = "test"; +>exp668 : Symbol(exp668, Decl(manyConstExports.ts, 668, 12)) + +export const exp669 = "test"; +>exp669 : Symbol(exp669, Decl(manyConstExports.ts, 669, 12)) + +export const exp670 = "test"; +>exp670 : Symbol(exp670, Decl(manyConstExports.ts, 670, 12)) + +export const exp671 = "test"; +>exp671 : Symbol(exp671, Decl(manyConstExports.ts, 671, 12)) + +export const exp672 = "test"; +>exp672 : Symbol(exp672, Decl(manyConstExports.ts, 672, 12)) + +export const exp673 = "test"; +>exp673 : Symbol(exp673, Decl(manyConstExports.ts, 673, 12)) + +export const exp674 = "test"; +>exp674 : Symbol(exp674, Decl(manyConstExports.ts, 674, 12)) + +export const exp675 = "test"; +>exp675 : Symbol(exp675, Decl(manyConstExports.ts, 675, 12)) + +export const exp676 = "test"; +>exp676 : Symbol(exp676, Decl(manyConstExports.ts, 676, 12)) + +export const exp677 = "test"; +>exp677 : Symbol(exp677, Decl(manyConstExports.ts, 677, 12)) + +export const exp678 = "test"; +>exp678 : Symbol(exp678, Decl(manyConstExports.ts, 678, 12)) + +export const exp679 = "test"; +>exp679 : Symbol(exp679, Decl(manyConstExports.ts, 679, 12)) + +export const exp680 = "test"; +>exp680 : Symbol(exp680, Decl(manyConstExports.ts, 680, 12)) + +export const exp681 = "test"; +>exp681 : Symbol(exp681, Decl(manyConstExports.ts, 681, 12)) + +export const exp682 = "test"; +>exp682 : Symbol(exp682, Decl(manyConstExports.ts, 682, 12)) + +export const exp683 = "test"; +>exp683 : Symbol(exp683, Decl(manyConstExports.ts, 683, 12)) + +export const exp684 = "test"; +>exp684 : Symbol(exp684, Decl(manyConstExports.ts, 684, 12)) + +export const exp685 = "test"; +>exp685 : Symbol(exp685, Decl(manyConstExports.ts, 685, 12)) + +export const exp686 = "test"; +>exp686 : Symbol(exp686, Decl(manyConstExports.ts, 686, 12)) + +export const exp687 = "test"; +>exp687 : Symbol(exp687, Decl(manyConstExports.ts, 687, 12)) + +export const exp688 = "test"; +>exp688 : Symbol(exp688, Decl(manyConstExports.ts, 688, 12)) + +export const exp689 = "test"; +>exp689 : Symbol(exp689, Decl(manyConstExports.ts, 689, 12)) + +export const exp690 = "test"; +>exp690 : Symbol(exp690, Decl(manyConstExports.ts, 690, 12)) + +export const exp691 = "test"; +>exp691 : Symbol(exp691, Decl(manyConstExports.ts, 691, 12)) + +export const exp692 = "test"; +>exp692 : Symbol(exp692, Decl(manyConstExports.ts, 692, 12)) + +export const exp693 = "test"; +>exp693 : Symbol(exp693, Decl(manyConstExports.ts, 693, 12)) + +export const exp694 = "test"; +>exp694 : Symbol(exp694, Decl(manyConstExports.ts, 694, 12)) + +export const exp695 = "test"; +>exp695 : Symbol(exp695, Decl(manyConstExports.ts, 695, 12)) + +export const exp696 = "test"; +>exp696 : Symbol(exp696, Decl(manyConstExports.ts, 696, 12)) + +export const exp697 = "test"; +>exp697 : Symbol(exp697, Decl(manyConstExports.ts, 697, 12)) + +export const exp698 = "test"; +>exp698 : Symbol(exp698, Decl(manyConstExports.ts, 698, 12)) + +export const exp699 = "test"; +>exp699 : Symbol(exp699, Decl(manyConstExports.ts, 699, 12)) + +export const exp700 = "test"; +>exp700 : Symbol(exp700, Decl(manyConstExports.ts, 700, 12)) + +export const exp701 = "test"; +>exp701 : Symbol(exp701, Decl(manyConstExports.ts, 701, 12)) + +export const exp702 = "test"; +>exp702 : Symbol(exp702, Decl(manyConstExports.ts, 702, 12)) + +export const exp703 = "test"; +>exp703 : Symbol(exp703, Decl(manyConstExports.ts, 703, 12)) + +export const exp704 = "test"; +>exp704 : Symbol(exp704, Decl(manyConstExports.ts, 704, 12)) + +export const exp705 = "test"; +>exp705 : Symbol(exp705, Decl(manyConstExports.ts, 705, 12)) + +export const exp706 = "test"; +>exp706 : Symbol(exp706, Decl(manyConstExports.ts, 706, 12)) + +export const exp707 = "test"; +>exp707 : Symbol(exp707, Decl(manyConstExports.ts, 707, 12)) + +export const exp708 = "test"; +>exp708 : Symbol(exp708, Decl(manyConstExports.ts, 708, 12)) + +export const exp709 = "test"; +>exp709 : Symbol(exp709, Decl(manyConstExports.ts, 709, 12)) + +export const exp710 = "test"; +>exp710 : Symbol(exp710, Decl(manyConstExports.ts, 710, 12)) + +export const exp711 = "test"; +>exp711 : Symbol(exp711, Decl(manyConstExports.ts, 711, 12)) + +export const exp712 = "test"; +>exp712 : Symbol(exp712, Decl(manyConstExports.ts, 712, 12)) + +export const exp713 = "test"; +>exp713 : Symbol(exp713, Decl(manyConstExports.ts, 713, 12)) + +export const exp714 = "test"; +>exp714 : Symbol(exp714, Decl(manyConstExports.ts, 714, 12)) + +export const exp715 = "test"; +>exp715 : Symbol(exp715, Decl(manyConstExports.ts, 715, 12)) + +export const exp716 = "test"; +>exp716 : Symbol(exp716, Decl(manyConstExports.ts, 716, 12)) + +export const exp717 = "test"; +>exp717 : Symbol(exp717, Decl(manyConstExports.ts, 717, 12)) + +export const exp718 = "test"; +>exp718 : Symbol(exp718, Decl(manyConstExports.ts, 718, 12)) + +export const exp719 = "test"; +>exp719 : Symbol(exp719, Decl(manyConstExports.ts, 719, 12)) + +export const exp720 = "test"; +>exp720 : Symbol(exp720, Decl(manyConstExports.ts, 720, 12)) + +export const exp721 = "test"; +>exp721 : Symbol(exp721, Decl(manyConstExports.ts, 721, 12)) + +export const exp722 = "test"; +>exp722 : Symbol(exp722, Decl(manyConstExports.ts, 722, 12)) + +export const exp723 = "test"; +>exp723 : Symbol(exp723, Decl(manyConstExports.ts, 723, 12)) + +export const exp724 = "test"; +>exp724 : Symbol(exp724, Decl(manyConstExports.ts, 724, 12)) + +export const exp725 = "test"; +>exp725 : Symbol(exp725, Decl(manyConstExports.ts, 725, 12)) + +export const exp726 = "test"; +>exp726 : Symbol(exp726, Decl(manyConstExports.ts, 726, 12)) + +export const exp727 = "test"; +>exp727 : Symbol(exp727, Decl(manyConstExports.ts, 727, 12)) + +export const exp728 = "test"; +>exp728 : Symbol(exp728, Decl(manyConstExports.ts, 728, 12)) + +export const exp729 = "test"; +>exp729 : Symbol(exp729, Decl(manyConstExports.ts, 729, 12)) + +export const exp730 = "test"; +>exp730 : Symbol(exp730, Decl(manyConstExports.ts, 730, 12)) + +export const exp731 = "test"; +>exp731 : Symbol(exp731, Decl(manyConstExports.ts, 731, 12)) + +export const exp732 = "test"; +>exp732 : Symbol(exp732, Decl(manyConstExports.ts, 732, 12)) + +export const exp733 = "test"; +>exp733 : Symbol(exp733, Decl(manyConstExports.ts, 733, 12)) + +export const exp734 = "test"; +>exp734 : Symbol(exp734, Decl(manyConstExports.ts, 734, 12)) + +export const exp735 = "test"; +>exp735 : Symbol(exp735, Decl(manyConstExports.ts, 735, 12)) + +export const exp736 = "test"; +>exp736 : Symbol(exp736, Decl(manyConstExports.ts, 736, 12)) + +export const exp737 = "test"; +>exp737 : Symbol(exp737, Decl(manyConstExports.ts, 737, 12)) + +export const exp738 = "test"; +>exp738 : Symbol(exp738, Decl(manyConstExports.ts, 738, 12)) + +export const exp739 = "test"; +>exp739 : Symbol(exp739, Decl(manyConstExports.ts, 739, 12)) + +export const exp740 = "test"; +>exp740 : Symbol(exp740, Decl(manyConstExports.ts, 740, 12)) + +export const exp741 = "test"; +>exp741 : Symbol(exp741, Decl(manyConstExports.ts, 741, 12)) + +export const exp742 = "test"; +>exp742 : Symbol(exp742, Decl(manyConstExports.ts, 742, 12)) + +export const exp743 = "test"; +>exp743 : Symbol(exp743, Decl(manyConstExports.ts, 743, 12)) + +export const exp744 = "test"; +>exp744 : Symbol(exp744, Decl(manyConstExports.ts, 744, 12)) + +export const exp745 = "test"; +>exp745 : Symbol(exp745, Decl(manyConstExports.ts, 745, 12)) + +export const exp746 = "test"; +>exp746 : Symbol(exp746, Decl(manyConstExports.ts, 746, 12)) + +export const exp747 = "test"; +>exp747 : Symbol(exp747, Decl(manyConstExports.ts, 747, 12)) + +export const exp748 = "test"; +>exp748 : Symbol(exp748, Decl(manyConstExports.ts, 748, 12)) + +export const exp749 = "test"; +>exp749 : Symbol(exp749, Decl(manyConstExports.ts, 749, 12)) + +export const exp750 = "test"; +>exp750 : Symbol(exp750, Decl(manyConstExports.ts, 750, 12)) + +export const exp751 = "test"; +>exp751 : Symbol(exp751, Decl(manyConstExports.ts, 751, 12)) + +export const exp752 = "test"; +>exp752 : Symbol(exp752, Decl(manyConstExports.ts, 752, 12)) + +export const exp753 = "test"; +>exp753 : Symbol(exp753, Decl(manyConstExports.ts, 753, 12)) + +export const exp754 = "test"; +>exp754 : Symbol(exp754, Decl(manyConstExports.ts, 754, 12)) + +export const exp755 = "test"; +>exp755 : Symbol(exp755, Decl(manyConstExports.ts, 755, 12)) + +export const exp756 = "test"; +>exp756 : Symbol(exp756, Decl(manyConstExports.ts, 756, 12)) + +export const exp757 = "test"; +>exp757 : Symbol(exp757, Decl(manyConstExports.ts, 757, 12)) + +export const exp758 = "test"; +>exp758 : Symbol(exp758, Decl(manyConstExports.ts, 758, 12)) + +export const exp759 = "test"; +>exp759 : Symbol(exp759, Decl(manyConstExports.ts, 759, 12)) + +export const exp760 = "test"; +>exp760 : Symbol(exp760, Decl(manyConstExports.ts, 760, 12)) + +export const exp761 = "test"; +>exp761 : Symbol(exp761, Decl(manyConstExports.ts, 761, 12)) + +export const exp762 = "test"; +>exp762 : Symbol(exp762, Decl(manyConstExports.ts, 762, 12)) + +export const exp763 = "test"; +>exp763 : Symbol(exp763, Decl(manyConstExports.ts, 763, 12)) + +export const exp764 = "test"; +>exp764 : Symbol(exp764, Decl(manyConstExports.ts, 764, 12)) + +export const exp765 = "test"; +>exp765 : Symbol(exp765, Decl(manyConstExports.ts, 765, 12)) + +export const exp766 = "test"; +>exp766 : Symbol(exp766, Decl(manyConstExports.ts, 766, 12)) + +export const exp767 = "test"; +>exp767 : Symbol(exp767, Decl(manyConstExports.ts, 767, 12)) + +export const exp768 = "test"; +>exp768 : Symbol(exp768, Decl(manyConstExports.ts, 768, 12)) + +export const exp769 = "test"; +>exp769 : Symbol(exp769, Decl(manyConstExports.ts, 769, 12)) + +export const exp770 = "test"; +>exp770 : Symbol(exp770, Decl(manyConstExports.ts, 770, 12)) + +export const exp771 = "test"; +>exp771 : Symbol(exp771, Decl(manyConstExports.ts, 771, 12)) + +export const exp772 = "test"; +>exp772 : Symbol(exp772, Decl(manyConstExports.ts, 772, 12)) + +export const exp773 = "test"; +>exp773 : Symbol(exp773, Decl(manyConstExports.ts, 773, 12)) + +export const exp774 = "test"; +>exp774 : Symbol(exp774, Decl(manyConstExports.ts, 774, 12)) + +export const exp775 = "test"; +>exp775 : Symbol(exp775, Decl(manyConstExports.ts, 775, 12)) + +export const exp776 = "test"; +>exp776 : Symbol(exp776, Decl(manyConstExports.ts, 776, 12)) + +export const exp777 = "test"; +>exp777 : Symbol(exp777, Decl(manyConstExports.ts, 777, 12)) + +export const exp778 = "test"; +>exp778 : Symbol(exp778, Decl(manyConstExports.ts, 778, 12)) + +export const exp779 = "test"; +>exp779 : Symbol(exp779, Decl(manyConstExports.ts, 779, 12)) + +export const exp780 = "test"; +>exp780 : Symbol(exp780, Decl(manyConstExports.ts, 780, 12)) + +export const exp781 = "test"; +>exp781 : Symbol(exp781, Decl(manyConstExports.ts, 781, 12)) + +export const exp782 = "test"; +>exp782 : Symbol(exp782, Decl(manyConstExports.ts, 782, 12)) + +export const exp783 = "test"; +>exp783 : Symbol(exp783, Decl(manyConstExports.ts, 783, 12)) + +export const exp784 = "test"; +>exp784 : Symbol(exp784, Decl(manyConstExports.ts, 784, 12)) + +export const exp785 = "test"; +>exp785 : Symbol(exp785, Decl(manyConstExports.ts, 785, 12)) + +export const exp786 = "test"; +>exp786 : Symbol(exp786, Decl(manyConstExports.ts, 786, 12)) + +export const exp787 = "test"; +>exp787 : Symbol(exp787, Decl(manyConstExports.ts, 787, 12)) + +export const exp788 = "test"; +>exp788 : Symbol(exp788, Decl(manyConstExports.ts, 788, 12)) + +export const exp789 = "test"; +>exp789 : Symbol(exp789, Decl(manyConstExports.ts, 789, 12)) + +export const exp790 = "test"; +>exp790 : Symbol(exp790, Decl(manyConstExports.ts, 790, 12)) + +export const exp791 = "test"; +>exp791 : Symbol(exp791, Decl(manyConstExports.ts, 791, 12)) + +export const exp792 = "test"; +>exp792 : Symbol(exp792, Decl(manyConstExports.ts, 792, 12)) + +export const exp793 = "test"; +>exp793 : Symbol(exp793, Decl(manyConstExports.ts, 793, 12)) + +export const exp794 = "test"; +>exp794 : Symbol(exp794, Decl(manyConstExports.ts, 794, 12)) + +export const exp795 = "test"; +>exp795 : Symbol(exp795, Decl(manyConstExports.ts, 795, 12)) + +export const exp796 = "test"; +>exp796 : Symbol(exp796, Decl(manyConstExports.ts, 796, 12)) + +export const exp797 = "test"; +>exp797 : Symbol(exp797, Decl(manyConstExports.ts, 797, 12)) + +export const exp798 = "test"; +>exp798 : Symbol(exp798, Decl(manyConstExports.ts, 798, 12)) + +export const exp799 = "test"; +>exp799 : Symbol(exp799, Decl(manyConstExports.ts, 799, 12)) + +export const exp800 = "test"; +>exp800 : Symbol(exp800, Decl(manyConstExports.ts, 800, 12)) + +export const exp801 = "test"; +>exp801 : Symbol(exp801, Decl(manyConstExports.ts, 801, 12)) + +export const exp802 = "test"; +>exp802 : Symbol(exp802, Decl(manyConstExports.ts, 802, 12)) + +export const exp803 = "test"; +>exp803 : Symbol(exp803, Decl(manyConstExports.ts, 803, 12)) + +export const exp804 = "test"; +>exp804 : Symbol(exp804, Decl(manyConstExports.ts, 804, 12)) + +export const exp805 = "test"; +>exp805 : Symbol(exp805, Decl(manyConstExports.ts, 805, 12)) + +export const exp806 = "test"; +>exp806 : Symbol(exp806, Decl(manyConstExports.ts, 806, 12)) + +export const exp807 = "test"; +>exp807 : Symbol(exp807, Decl(manyConstExports.ts, 807, 12)) + +export const exp808 = "test"; +>exp808 : Symbol(exp808, Decl(manyConstExports.ts, 808, 12)) + +export const exp809 = "test"; +>exp809 : Symbol(exp809, Decl(manyConstExports.ts, 809, 12)) + +export const exp810 = "test"; +>exp810 : Symbol(exp810, Decl(manyConstExports.ts, 810, 12)) + +export const exp811 = "test"; +>exp811 : Symbol(exp811, Decl(manyConstExports.ts, 811, 12)) + +export const exp812 = "test"; +>exp812 : Symbol(exp812, Decl(manyConstExports.ts, 812, 12)) + +export const exp813 = "test"; +>exp813 : Symbol(exp813, Decl(manyConstExports.ts, 813, 12)) + +export const exp814 = "test"; +>exp814 : Symbol(exp814, Decl(manyConstExports.ts, 814, 12)) + +export const exp815 = "test"; +>exp815 : Symbol(exp815, Decl(manyConstExports.ts, 815, 12)) + +export const exp816 = "test"; +>exp816 : Symbol(exp816, Decl(manyConstExports.ts, 816, 12)) + +export const exp817 = "test"; +>exp817 : Symbol(exp817, Decl(manyConstExports.ts, 817, 12)) + +export const exp818 = "test"; +>exp818 : Symbol(exp818, Decl(manyConstExports.ts, 818, 12)) + +export const exp819 = "test"; +>exp819 : Symbol(exp819, Decl(manyConstExports.ts, 819, 12)) + +export const exp820 = "test"; +>exp820 : Symbol(exp820, Decl(manyConstExports.ts, 820, 12)) + +export const exp821 = "test"; +>exp821 : Symbol(exp821, Decl(manyConstExports.ts, 821, 12)) + +export const exp822 = "test"; +>exp822 : Symbol(exp822, Decl(manyConstExports.ts, 822, 12)) + +export const exp823 = "test"; +>exp823 : Symbol(exp823, Decl(manyConstExports.ts, 823, 12)) + +export const exp824 = "test"; +>exp824 : Symbol(exp824, Decl(manyConstExports.ts, 824, 12)) + +export const exp825 = "test"; +>exp825 : Symbol(exp825, Decl(manyConstExports.ts, 825, 12)) + +export const exp826 = "test"; +>exp826 : Symbol(exp826, Decl(manyConstExports.ts, 826, 12)) + +export const exp827 = "test"; +>exp827 : Symbol(exp827, Decl(manyConstExports.ts, 827, 12)) + +export const exp828 = "test"; +>exp828 : Symbol(exp828, Decl(manyConstExports.ts, 828, 12)) + +export const exp829 = "test"; +>exp829 : Symbol(exp829, Decl(manyConstExports.ts, 829, 12)) + +export const exp830 = "test"; +>exp830 : Symbol(exp830, Decl(manyConstExports.ts, 830, 12)) + +export const exp831 = "test"; +>exp831 : Symbol(exp831, Decl(manyConstExports.ts, 831, 12)) + +export const exp832 = "test"; +>exp832 : Symbol(exp832, Decl(manyConstExports.ts, 832, 12)) + +export const exp833 = "test"; +>exp833 : Symbol(exp833, Decl(manyConstExports.ts, 833, 12)) + +export const exp834 = "test"; +>exp834 : Symbol(exp834, Decl(manyConstExports.ts, 834, 12)) + +export const exp835 = "test"; +>exp835 : Symbol(exp835, Decl(manyConstExports.ts, 835, 12)) + +export const exp836 = "test"; +>exp836 : Symbol(exp836, Decl(manyConstExports.ts, 836, 12)) + +export const exp837 = "test"; +>exp837 : Symbol(exp837, Decl(manyConstExports.ts, 837, 12)) + +export const exp838 = "test"; +>exp838 : Symbol(exp838, Decl(manyConstExports.ts, 838, 12)) + +export const exp839 = "test"; +>exp839 : Symbol(exp839, Decl(manyConstExports.ts, 839, 12)) + +export const exp840 = "test"; +>exp840 : Symbol(exp840, Decl(manyConstExports.ts, 840, 12)) + +export const exp841 = "test"; +>exp841 : Symbol(exp841, Decl(manyConstExports.ts, 841, 12)) + +export const exp842 = "test"; +>exp842 : Symbol(exp842, Decl(manyConstExports.ts, 842, 12)) + +export const exp843 = "test"; +>exp843 : Symbol(exp843, Decl(manyConstExports.ts, 843, 12)) + +export const exp844 = "test"; +>exp844 : Symbol(exp844, Decl(manyConstExports.ts, 844, 12)) + +export const exp845 = "test"; +>exp845 : Symbol(exp845, Decl(manyConstExports.ts, 845, 12)) + +export const exp846 = "test"; +>exp846 : Symbol(exp846, Decl(manyConstExports.ts, 846, 12)) + +export const exp847 = "test"; +>exp847 : Symbol(exp847, Decl(manyConstExports.ts, 847, 12)) + +export const exp848 = "test"; +>exp848 : Symbol(exp848, Decl(manyConstExports.ts, 848, 12)) + +export const exp849 = "test"; +>exp849 : Symbol(exp849, Decl(manyConstExports.ts, 849, 12)) + +export const exp850 = "test"; +>exp850 : Symbol(exp850, Decl(manyConstExports.ts, 850, 12)) + +export const exp851 = "test"; +>exp851 : Symbol(exp851, Decl(manyConstExports.ts, 851, 12)) + +export const exp852 = "test"; +>exp852 : Symbol(exp852, Decl(manyConstExports.ts, 852, 12)) + +export const exp853 = "test"; +>exp853 : Symbol(exp853, Decl(manyConstExports.ts, 853, 12)) + +export const exp854 = "test"; +>exp854 : Symbol(exp854, Decl(manyConstExports.ts, 854, 12)) + +export const exp855 = "test"; +>exp855 : Symbol(exp855, Decl(manyConstExports.ts, 855, 12)) + +export const exp856 = "test"; +>exp856 : Symbol(exp856, Decl(manyConstExports.ts, 856, 12)) + +export const exp857 = "test"; +>exp857 : Symbol(exp857, Decl(manyConstExports.ts, 857, 12)) + +export const exp858 = "test"; +>exp858 : Symbol(exp858, Decl(manyConstExports.ts, 858, 12)) + +export const exp859 = "test"; +>exp859 : Symbol(exp859, Decl(manyConstExports.ts, 859, 12)) + +export const exp860 = "test"; +>exp860 : Symbol(exp860, Decl(manyConstExports.ts, 860, 12)) + +export const exp861 = "test"; +>exp861 : Symbol(exp861, Decl(manyConstExports.ts, 861, 12)) + +export const exp862 = "test"; +>exp862 : Symbol(exp862, Decl(manyConstExports.ts, 862, 12)) + +export const exp863 = "test"; +>exp863 : Symbol(exp863, Decl(manyConstExports.ts, 863, 12)) + +export const exp864 = "test"; +>exp864 : Symbol(exp864, Decl(manyConstExports.ts, 864, 12)) + +export const exp865 = "test"; +>exp865 : Symbol(exp865, Decl(manyConstExports.ts, 865, 12)) + +export const exp866 = "test"; +>exp866 : Symbol(exp866, Decl(manyConstExports.ts, 866, 12)) + +export const exp867 = "test"; +>exp867 : Symbol(exp867, Decl(manyConstExports.ts, 867, 12)) + +export const exp868 = "test"; +>exp868 : Symbol(exp868, Decl(manyConstExports.ts, 868, 12)) + +export const exp869 = "test"; +>exp869 : Symbol(exp869, Decl(manyConstExports.ts, 869, 12)) + +export const exp870 = "test"; +>exp870 : Symbol(exp870, Decl(manyConstExports.ts, 870, 12)) + +export const exp871 = "test"; +>exp871 : Symbol(exp871, Decl(manyConstExports.ts, 871, 12)) + +export const exp872 = "test"; +>exp872 : Symbol(exp872, Decl(manyConstExports.ts, 872, 12)) + +export const exp873 = "test"; +>exp873 : Symbol(exp873, Decl(manyConstExports.ts, 873, 12)) + +export const exp874 = "test"; +>exp874 : Symbol(exp874, Decl(manyConstExports.ts, 874, 12)) + +export const exp875 = "test"; +>exp875 : Symbol(exp875, Decl(manyConstExports.ts, 875, 12)) + +export const exp876 = "test"; +>exp876 : Symbol(exp876, Decl(manyConstExports.ts, 876, 12)) + +export const exp877 = "test"; +>exp877 : Symbol(exp877, Decl(manyConstExports.ts, 877, 12)) + +export const exp878 = "test"; +>exp878 : Symbol(exp878, Decl(manyConstExports.ts, 878, 12)) + +export const exp879 = "test"; +>exp879 : Symbol(exp879, Decl(manyConstExports.ts, 879, 12)) + +export const exp880 = "test"; +>exp880 : Symbol(exp880, Decl(manyConstExports.ts, 880, 12)) + +export const exp881 = "test"; +>exp881 : Symbol(exp881, Decl(manyConstExports.ts, 881, 12)) + +export const exp882 = "test"; +>exp882 : Symbol(exp882, Decl(manyConstExports.ts, 882, 12)) + +export const exp883 = "test"; +>exp883 : Symbol(exp883, Decl(manyConstExports.ts, 883, 12)) + +export const exp884 = "test"; +>exp884 : Symbol(exp884, Decl(manyConstExports.ts, 884, 12)) + +export const exp885 = "test"; +>exp885 : Symbol(exp885, Decl(manyConstExports.ts, 885, 12)) + +export const exp886 = "test"; +>exp886 : Symbol(exp886, Decl(manyConstExports.ts, 886, 12)) + +export const exp887 = "test"; +>exp887 : Symbol(exp887, Decl(manyConstExports.ts, 887, 12)) + +export const exp888 = "test"; +>exp888 : Symbol(exp888, Decl(manyConstExports.ts, 888, 12)) + +export const exp889 = "test"; +>exp889 : Symbol(exp889, Decl(manyConstExports.ts, 889, 12)) + +export const exp890 = "test"; +>exp890 : Symbol(exp890, Decl(manyConstExports.ts, 890, 12)) + +export const exp891 = "test"; +>exp891 : Symbol(exp891, Decl(manyConstExports.ts, 891, 12)) + +export const exp892 = "test"; +>exp892 : Symbol(exp892, Decl(manyConstExports.ts, 892, 12)) + +export const exp893 = "test"; +>exp893 : Symbol(exp893, Decl(manyConstExports.ts, 893, 12)) + +export const exp894 = "test"; +>exp894 : Symbol(exp894, Decl(manyConstExports.ts, 894, 12)) + +export const exp895 = "test"; +>exp895 : Symbol(exp895, Decl(manyConstExports.ts, 895, 12)) + +export const exp896 = "test"; +>exp896 : Symbol(exp896, Decl(manyConstExports.ts, 896, 12)) + +export const exp897 = "test"; +>exp897 : Symbol(exp897, Decl(manyConstExports.ts, 897, 12)) + +export const exp898 = "test"; +>exp898 : Symbol(exp898, Decl(manyConstExports.ts, 898, 12)) + +export const exp899 = "test"; +>exp899 : Symbol(exp899, Decl(manyConstExports.ts, 899, 12)) + +export const exp900 = "test"; +>exp900 : Symbol(exp900, Decl(manyConstExports.ts, 900, 12)) + +export const exp901 = "test"; +>exp901 : Symbol(exp901, Decl(manyConstExports.ts, 901, 12)) + +export const exp902 = "test"; +>exp902 : Symbol(exp902, Decl(manyConstExports.ts, 902, 12)) + +export const exp903 = "test"; +>exp903 : Symbol(exp903, Decl(manyConstExports.ts, 903, 12)) + +export const exp904 = "test"; +>exp904 : Symbol(exp904, Decl(manyConstExports.ts, 904, 12)) + +export const exp905 = "test"; +>exp905 : Symbol(exp905, Decl(manyConstExports.ts, 905, 12)) + +export const exp906 = "test"; +>exp906 : Symbol(exp906, Decl(manyConstExports.ts, 906, 12)) + +export const exp907 = "test"; +>exp907 : Symbol(exp907, Decl(manyConstExports.ts, 907, 12)) + +export const exp908 = "test"; +>exp908 : Symbol(exp908, Decl(manyConstExports.ts, 908, 12)) + +export const exp909 = "test"; +>exp909 : Symbol(exp909, Decl(manyConstExports.ts, 909, 12)) + +export const exp910 = "test"; +>exp910 : Symbol(exp910, Decl(manyConstExports.ts, 910, 12)) + +export const exp911 = "test"; +>exp911 : Symbol(exp911, Decl(manyConstExports.ts, 911, 12)) + +export const exp912 = "test"; +>exp912 : Symbol(exp912, Decl(manyConstExports.ts, 912, 12)) + +export const exp913 = "test"; +>exp913 : Symbol(exp913, Decl(manyConstExports.ts, 913, 12)) + +export const exp914 = "test"; +>exp914 : Symbol(exp914, Decl(manyConstExports.ts, 914, 12)) + +export const exp915 = "test"; +>exp915 : Symbol(exp915, Decl(manyConstExports.ts, 915, 12)) + +export const exp916 = "test"; +>exp916 : Symbol(exp916, Decl(manyConstExports.ts, 916, 12)) + +export const exp917 = "test"; +>exp917 : Symbol(exp917, Decl(manyConstExports.ts, 917, 12)) + +export const exp918 = "test"; +>exp918 : Symbol(exp918, Decl(manyConstExports.ts, 918, 12)) + +export const exp919 = "test"; +>exp919 : Symbol(exp919, Decl(manyConstExports.ts, 919, 12)) + +export const exp920 = "test"; +>exp920 : Symbol(exp920, Decl(manyConstExports.ts, 920, 12)) + +export const exp921 = "test"; +>exp921 : Symbol(exp921, Decl(manyConstExports.ts, 921, 12)) + +export const exp922 = "test"; +>exp922 : Symbol(exp922, Decl(manyConstExports.ts, 922, 12)) + +export const exp923 = "test"; +>exp923 : Symbol(exp923, Decl(manyConstExports.ts, 923, 12)) + +export const exp924 = "test"; +>exp924 : Symbol(exp924, Decl(manyConstExports.ts, 924, 12)) + +export const exp925 = "test"; +>exp925 : Symbol(exp925, Decl(manyConstExports.ts, 925, 12)) + +export const exp926 = "test"; +>exp926 : Symbol(exp926, Decl(manyConstExports.ts, 926, 12)) + +export const exp927 = "test"; +>exp927 : Symbol(exp927, Decl(manyConstExports.ts, 927, 12)) + +export const exp928 = "test"; +>exp928 : Symbol(exp928, Decl(manyConstExports.ts, 928, 12)) + +export const exp929 = "test"; +>exp929 : Symbol(exp929, Decl(manyConstExports.ts, 929, 12)) + +export const exp930 = "test"; +>exp930 : Symbol(exp930, Decl(manyConstExports.ts, 930, 12)) + +export const exp931 = "test"; +>exp931 : Symbol(exp931, Decl(manyConstExports.ts, 931, 12)) + +export const exp932 = "test"; +>exp932 : Symbol(exp932, Decl(manyConstExports.ts, 932, 12)) + +export const exp933 = "test"; +>exp933 : Symbol(exp933, Decl(manyConstExports.ts, 933, 12)) + +export const exp934 = "test"; +>exp934 : Symbol(exp934, Decl(manyConstExports.ts, 934, 12)) + +export const exp935 = "test"; +>exp935 : Symbol(exp935, Decl(manyConstExports.ts, 935, 12)) + +export const exp936 = "test"; +>exp936 : Symbol(exp936, Decl(manyConstExports.ts, 936, 12)) + +export const exp937 = "test"; +>exp937 : Symbol(exp937, Decl(manyConstExports.ts, 937, 12)) + +export const exp938 = "test"; +>exp938 : Symbol(exp938, Decl(manyConstExports.ts, 938, 12)) + +export const exp939 = "test"; +>exp939 : Symbol(exp939, Decl(manyConstExports.ts, 939, 12)) + +export const exp940 = "test"; +>exp940 : Symbol(exp940, Decl(manyConstExports.ts, 940, 12)) + +export const exp941 = "test"; +>exp941 : Symbol(exp941, Decl(manyConstExports.ts, 941, 12)) + +export const exp942 = "test"; +>exp942 : Symbol(exp942, Decl(manyConstExports.ts, 942, 12)) + +export const exp943 = "test"; +>exp943 : Symbol(exp943, Decl(manyConstExports.ts, 943, 12)) + +export const exp944 = "test"; +>exp944 : Symbol(exp944, Decl(manyConstExports.ts, 944, 12)) + +export const exp945 = "test"; +>exp945 : Symbol(exp945, Decl(manyConstExports.ts, 945, 12)) + +export const exp946 = "test"; +>exp946 : Symbol(exp946, Decl(manyConstExports.ts, 946, 12)) + +export const exp947 = "test"; +>exp947 : Symbol(exp947, Decl(manyConstExports.ts, 947, 12)) + +export const exp948 = "test"; +>exp948 : Symbol(exp948, Decl(manyConstExports.ts, 948, 12)) + +export const exp949 = "test"; +>exp949 : Symbol(exp949, Decl(manyConstExports.ts, 949, 12)) + +export const exp950 = "test"; +>exp950 : Symbol(exp950, Decl(manyConstExports.ts, 950, 12)) + +export const exp951 = "test"; +>exp951 : Symbol(exp951, Decl(manyConstExports.ts, 951, 12)) + +export const exp952 = "test"; +>exp952 : Symbol(exp952, Decl(manyConstExports.ts, 952, 12)) + +export const exp953 = "test"; +>exp953 : Symbol(exp953, Decl(manyConstExports.ts, 953, 12)) + +export const exp954 = "test"; +>exp954 : Symbol(exp954, Decl(manyConstExports.ts, 954, 12)) + +export const exp955 = "test"; +>exp955 : Symbol(exp955, Decl(manyConstExports.ts, 955, 12)) + +export const exp956 = "test"; +>exp956 : Symbol(exp956, Decl(manyConstExports.ts, 956, 12)) + +export const exp957 = "test"; +>exp957 : Symbol(exp957, Decl(manyConstExports.ts, 957, 12)) + +export const exp958 = "test"; +>exp958 : Symbol(exp958, Decl(manyConstExports.ts, 958, 12)) + +export const exp959 = "test"; +>exp959 : Symbol(exp959, Decl(manyConstExports.ts, 959, 12)) + +export const exp960 = "test"; +>exp960 : Symbol(exp960, Decl(manyConstExports.ts, 960, 12)) + +export const exp961 = "test"; +>exp961 : Symbol(exp961, Decl(manyConstExports.ts, 961, 12)) + +export const exp962 = "test"; +>exp962 : Symbol(exp962, Decl(manyConstExports.ts, 962, 12)) + +export const exp963 = "test"; +>exp963 : Symbol(exp963, Decl(manyConstExports.ts, 963, 12)) + +export const exp964 = "test"; +>exp964 : Symbol(exp964, Decl(manyConstExports.ts, 964, 12)) + +export const exp965 = "test"; +>exp965 : Symbol(exp965, Decl(manyConstExports.ts, 965, 12)) + +export const exp966 = "test"; +>exp966 : Symbol(exp966, Decl(manyConstExports.ts, 966, 12)) + +export const exp967 = "test"; +>exp967 : Symbol(exp967, Decl(manyConstExports.ts, 967, 12)) + +export const exp968 = "test"; +>exp968 : Symbol(exp968, Decl(manyConstExports.ts, 968, 12)) + +export const exp969 = "test"; +>exp969 : Symbol(exp969, Decl(manyConstExports.ts, 969, 12)) + +export const exp970 = "test"; +>exp970 : Symbol(exp970, Decl(manyConstExports.ts, 970, 12)) + +export const exp971 = "test"; +>exp971 : Symbol(exp971, Decl(manyConstExports.ts, 971, 12)) + +export const exp972 = "test"; +>exp972 : Symbol(exp972, Decl(manyConstExports.ts, 972, 12)) + +export const exp973 = "test"; +>exp973 : Symbol(exp973, Decl(manyConstExports.ts, 973, 12)) + +export const exp974 = "test"; +>exp974 : Symbol(exp974, Decl(manyConstExports.ts, 974, 12)) + +export const exp975 = "test"; +>exp975 : Symbol(exp975, Decl(manyConstExports.ts, 975, 12)) + +export const exp976 = "test"; +>exp976 : Symbol(exp976, Decl(manyConstExports.ts, 976, 12)) + +export const exp977 = "test"; +>exp977 : Symbol(exp977, Decl(manyConstExports.ts, 977, 12)) + +export const exp978 = "test"; +>exp978 : Symbol(exp978, Decl(manyConstExports.ts, 978, 12)) + +export const exp979 = "test"; +>exp979 : Symbol(exp979, Decl(manyConstExports.ts, 979, 12)) + +export const exp980 = "test"; +>exp980 : Symbol(exp980, Decl(manyConstExports.ts, 980, 12)) + +export const exp981 = "test"; +>exp981 : Symbol(exp981, Decl(manyConstExports.ts, 981, 12)) + +export const exp982 = "test"; +>exp982 : Symbol(exp982, Decl(manyConstExports.ts, 982, 12)) + +export const exp983 = "test"; +>exp983 : Symbol(exp983, Decl(manyConstExports.ts, 983, 12)) + +export const exp984 = "test"; +>exp984 : Symbol(exp984, Decl(manyConstExports.ts, 984, 12)) + +export const exp985 = "test"; +>exp985 : Symbol(exp985, Decl(manyConstExports.ts, 985, 12)) + +export const exp986 = "test"; +>exp986 : Symbol(exp986, Decl(manyConstExports.ts, 986, 12)) + +export const exp987 = "test"; +>exp987 : Symbol(exp987, Decl(manyConstExports.ts, 987, 12)) + +export const exp988 = "test"; +>exp988 : Symbol(exp988, Decl(manyConstExports.ts, 988, 12)) + +export const exp989 = "test"; +>exp989 : Symbol(exp989, Decl(manyConstExports.ts, 989, 12)) + +export const exp990 = "test"; +>exp990 : Symbol(exp990, Decl(manyConstExports.ts, 990, 12)) + +export const exp991 = "test"; +>exp991 : Symbol(exp991, Decl(manyConstExports.ts, 991, 12)) + +export const exp992 = "test"; +>exp992 : Symbol(exp992, Decl(manyConstExports.ts, 992, 12)) + +export const exp993 = "test"; +>exp993 : Symbol(exp993, Decl(manyConstExports.ts, 993, 12)) + +export const exp994 = "test"; +>exp994 : Symbol(exp994, Decl(manyConstExports.ts, 994, 12)) + +export const exp995 = "test"; +>exp995 : Symbol(exp995, Decl(manyConstExports.ts, 995, 12)) + +export const exp996 = "test"; +>exp996 : Symbol(exp996, Decl(manyConstExports.ts, 996, 12)) + +export const exp997 = "test"; +>exp997 : Symbol(exp997, Decl(manyConstExports.ts, 997, 12)) + +export const exp998 = "test"; +>exp998 : Symbol(exp998, Decl(manyConstExports.ts, 998, 12)) + +export const exp999 = "test"; +>exp999 : Symbol(exp999, Decl(manyConstExports.ts, 999, 12)) + +export const exp1000 = "test"; +>exp1000 : Symbol(exp1000, Decl(manyConstExports.ts, 1000, 12)) + +export const exp1001 = "test"; +>exp1001 : Symbol(exp1001, Decl(manyConstExports.ts, 1001, 12)) + +export const exp1002 = "test"; +>exp1002 : Symbol(exp1002, Decl(manyConstExports.ts, 1002, 12)) + +export const exp1003 = "test"; +>exp1003 : Symbol(exp1003, Decl(manyConstExports.ts, 1003, 12)) + +export const exp1004 = "test"; +>exp1004 : Symbol(exp1004, Decl(manyConstExports.ts, 1004, 12)) + +export const exp1005 = "test"; +>exp1005 : Symbol(exp1005, Decl(manyConstExports.ts, 1005, 12)) + +export const exp1006 = "test"; +>exp1006 : Symbol(exp1006, Decl(manyConstExports.ts, 1006, 12)) + +export const exp1007 = "test"; +>exp1007 : Symbol(exp1007, Decl(manyConstExports.ts, 1007, 12)) + +export const exp1008 = "test"; +>exp1008 : Symbol(exp1008, Decl(manyConstExports.ts, 1008, 12)) + +export const exp1009 = "test"; +>exp1009 : Symbol(exp1009, Decl(manyConstExports.ts, 1009, 12)) + +export const exp1010 = "test"; +>exp1010 : Symbol(exp1010, Decl(manyConstExports.ts, 1010, 12)) + +export const exp1011 = "test"; +>exp1011 : Symbol(exp1011, Decl(manyConstExports.ts, 1011, 12)) + +export const exp1012 = "test"; +>exp1012 : Symbol(exp1012, Decl(manyConstExports.ts, 1012, 12)) + +export const exp1013 = "test"; +>exp1013 : Symbol(exp1013, Decl(manyConstExports.ts, 1013, 12)) + +export const exp1014 = "test"; +>exp1014 : Symbol(exp1014, Decl(manyConstExports.ts, 1014, 12)) + +export const exp1015 = "test"; +>exp1015 : Symbol(exp1015, Decl(manyConstExports.ts, 1015, 12)) + +export const exp1016 = "test"; +>exp1016 : Symbol(exp1016, Decl(manyConstExports.ts, 1016, 12)) + +export const exp1017 = "test"; +>exp1017 : Symbol(exp1017, Decl(manyConstExports.ts, 1017, 12)) + +export const exp1018 = "test"; +>exp1018 : Symbol(exp1018, Decl(manyConstExports.ts, 1018, 12)) + +export const exp1019 = "test"; +>exp1019 : Symbol(exp1019, Decl(manyConstExports.ts, 1019, 12)) + +export const exp1020 = "test"; +>exp1020 : Symbol(exp1020, Decl(manyConstExports.ts, 1020, 12)) + +export const exp1021 = "test"; +>exp1021 : Symbol(exp1021, Decl(manyConstExports.ts, 1021, 12)) + +export const exp1022 = "test"; +>exp1022 : Symbol(exp1022, Decl(manyConstExports.ts, 1022, 12)) + +export const exp1023 = "test"; +>exp1023 : Symbol(exp1023, Decl(manyConstExports.ts, 1023, 12)) + +export const exp1024 = "test"; +>exp1024 : Symbol(exp1024, Decl(manyConstExports.ts, 1024, 12)) + +export const exp1025 = "test"; +>exp1025 : Symbol(exp1025, Decl(manyConstExports.ts, 1025, 12)) + +export const exp1026 = "test"; +>exp1026 : Symbol(exp1026, Decl(manyConstExports.ts, 1026, 12)) + +export const exp1027 = "test"; +>exp1027 : Symbol(exp1027, Decl(manyConstExports.ts, 1027, 12)) + +export const exp1028 = "test"; +>exp1028 : Symbol(exp1028, Decl(manyConstExports.ts, 1028, 12)) + +export const exp1029 = "test"; +>exp1029 : Symbol(exp1029, Decl(manyConstExports.ts, 1029, 12)) + +export const exp1030 = "test"; +>exp1030 : Symbol(exp1030, Decl(manyConstExports.ts, 1030, 12)) + +export const exp1031 = "test"; +>exp1031 : Symbol(exp1031, Decl(manyConstExports.ts, 1031, 12)) + +export const exp1032 = "test"; +>exp1032 : Symbol(exp1032, Decl(manyConstExports.ts, 1032, 12)) + +export const exp1033 = "test"; +>exp1033 : Symbol(exp1033, Decl(manyConstExports.ts, 1033, 12)) + +export const exp1034 = "test"; +>exp1034 : Symbol(exp1034, Decl(manyConstExports.ts, 1034, 12)) + +export const exp1035 = "test"; +>exp1035 : Symbol(exp1035, Decl(manyConstExports.ts, 1035, 12)) + +export const exp1036 = "test"; +>exp1036 : Symbol(exp1036, Decl(manyConstExports.ts, 1036, 12)) + +export const exp1037 = "test"; +>exp1037 : Symbol(exp1037, Decl(manyConstExports.ts, 1037, 12)) + +export const exp1038 = "test"; +>exp1038 : Symbol(exp1038, Decl(manyConstExports.ts, 1038, 12)) + +export const exp1039 = "test"; +>exp1039 : Symbol(exp1039, Decl(manyConstExports.ts, 1039, 12)) + +export const exp1040 = "test"; +>exp1040 : Symbol(exp1040, Decl(manyConstExports.ts, 1040, 12)) + +export const exp1041 = "test"; +>exp1041 : Symbol(exp1041, Decl(manyConstExports.ts, 1041, 12)) + +export const exp1042 = "test"; +>exp1042 : Symbol(exp1042, Decl(manyConstExports.ts, 1042, 12)) + +export const exp1043 = "test"; +>exp1043 : Symbol(exp1043, Decl(manyConstExports.ts, 1043, 12)) + +export const exp1044 = "test"; +>exp1044 : Symbol(exp1044, Decl(manyConstExports.ts, 1044, 12)) + +export const exp1045 = "test"; +>exp1045 : Symbol(exp1045, Decl(manyConstExports.ts, 1045, 12)) + +export const exp1046 = "test"; +>exp1046 : Symbol(exp1046, Decl(manyConstExports.ts, 1046, 12)) + +export const exp1047 = "test"; +>exp1047 : Symbol(exp1047, Decl(manyConstExports.ts, 1047, 12)) + +export const exp1048 = "test"; +>exp1048 : Symbol(exp1048, Decl(manyConstExports.ts, 1048, 12)) + +export const exp1049 = "test"; +>exp1049 : Symbol(exp1049, Decl(manyConstExports.ts, 1049, 12)) + +export const exp1050 = "test"; +>exp1050 : Symbol(exp1050, Decl(manyConstExports.ts, 1050, 12)) + +export const exp1051 = "test"; +>exp1051 : Symbol(exp1051, Decl(manyConstExports.ts, 1051, 12)) + +export const exp1052 = "test"; +>exp1052 : Symbol(exp1052, Decl(manyConstExports.ts, 1052, 12)) + +export const exp1053 = "test"; +>exp1053 : Symbol(exp1053, Decl(manyConstExports.ts, 1053, 12)) + +export const exp1054 = "test"; +>exp1054 : Symbol(exp1054, Decl(manyConstExports.ts, 1054, 12)) + +export const exp1055 = "test"; +>exp1055 : Symbol(exp1055, Decl(manyConstExports.ts, 1055, 12)) + +export const exp1056 = "test"; +>exp1056 : Symbol(exp1056, Decl(manyConstExports.ts, 1056, 12)) + +export const exp1057 = "test"; +>exp1057 : Symbol(exp1057, Decl(manyConstExports.ts, 1057, 12)) + +export const exp1058 = "test"; +>exp1058 : Symbol(exp1058, Decl(manyConstExports.ts, 1058, 12)) + +export const exp1059 = "test"; +>exp1059 : Symbol(exp1059, Decl(manyConstExports.ts, 1059, 12)) + +export const exp1060 = "test"; +>exp1060 : Symbol(exp1060, Decl(manyConstExports.ts, 1060, 12)) + +export const exp1061 = "test"; +>exp1061 : Symbol(exp1061, Decl(manyConstExports.ts, 1061, 12)) + +export const exp1062 = "test"; +>exp1062 : Symbol(exp1062, Decl(manyConstExports.ts, 1062, 12)) + +export const exp1063 = "test"; +>exp1063 : Symbol(exp1063, Decl(manyConstExports.ts, 1063, 12)) + +export const exp1064 = "test"; +>exp1064 : Symbol(exp1064, Decl(manyConstExports.ts, 1064, 12)) + +export const exp1065 = "test"; +>exp1065 : Symbol(exp1065, Decl(manyConstExports.ts, 1065, 12)) + +export const exp1066 = "test"; +>exp1066 : Symbol(exp1066, Decl(manyConstExports.ts, 1066, 12)) + +export const exp1067 = "test"; +>exp1067 : Symbol(exp1067, Decl(manyConstExports.ts, 1067, 12)) + +export const exp1068 = "test"; +>exp1068 : Symbol(exp1068, Decl(manyConstExports.ts, 1068, 12)) + +export const exp1069 = "test"; +>exp1069 : Symbol(exp1069, Decl(manyConstExports.ts, 1069, 12)) + +export const exp1070 = "test"; +>exp1070 : Symbol(exp1070, Decl(manyConstExports.ts, 1070, 12)) + +export const exp1071 = "test"; +>exp1071 : Symbol(exp1071, Decl(manyConstExports.ts, 1071, 12)) + +export const exp1072 = "test"; +>exp1072 : Symbol(exp1072, Decl(manyConstExports.ts, 1072, 12)) + +export const exp1073 = "test"; +>exp1073 : Symbol(exp1073, Decl(manyConstExports.ts, 1073, 12)) + +export const exp1074 = "test"; +>exp1074 : Symbol(exp1074, Decl(manyConstExports.ts, 1074, 12)) + +export const exp1075 = "test"; +>exp1075 : Symbol(exp1075, Decl(manyConstExports.ts, 1075, 12)) + +export const exp1076 = "test"; +>exp1076 : Symbol(exp1076, Decl(manyConstExports.ts, 1076, 12)) + +export const exp1077 = "test"; +>exp1077 : Symbol(exp1077, Decl(manyConstExports.ts, 1077, 12)) + +export const exp1078 = "test"; +>exp1078 : Symbol(exp1078, Decl(manyConstExports.ts, 1078, 12)) + +export const exp1079 = "test"; +>exp1079 : Symbol(exp1079, Decl(manyConstExports.ts, 1079, 12)) + +export const exp1080 = "test"; +>exp1080 : Symbol(exp1080, Decl(manyConstExports.ts, 1080, 12)) + +export const exp1081 = "test"; +>exp1081 : Symbol(exp1081, Decl(manyConstExports.ts, 1081, 12)) + +export const exp1082 = "test"; +>exp1082 : Symbol(exp1082, Decl(manyConstExports.ts, 1082, 12)) + +export const exp1083 = "test"; +>exp1083 : Symbol(exp1083, Decl(manyConstExports.ts, 1083, 12)) + +export const exp1084 = "test"; +>exp1084 : Symbol(exp1084, Decl(manyConstExports.ts, 1084, 12)) + +export const exp1085 = "test"; +>exp1085 : Symbol(exp1085, Decl(manyConstExports.ts, 1085, 12)) + +export const exp1086 = "test"; +>exp1086 : Symbol(exp1086, Decl(manyConstExports.ts, 1086, 12)) + +export const exp1087 = "test"; +>exp1087 : Symbol(exp1087, Decl(manyConstExports.ts, 1087, 12)) + +export const exp1088 = "test"; +>exp1088 : Symbol(exp1088, Decl(manyConstExports.ts, 1088, 12)) + +export const exp1089 = "test"; +>exp1089 : Symbol(exp1089, Decl(manyConstExports.ts, 1089, 12)) + +export const exp1090 = "test"; +>exp1090 : Symbol(exp1090, Decl(manyConstExports.ts, 1090, 12)) + +export const exp1091 = "test"; +>exp1091 : Symbol(exp1091, Decl(manyConstExports.ts, 1091, 12)) + +export const exp1092 = "test"; +>exp1092 : Symbol(exp1092, Decl(manyConstExports.ts, 1092, 12)) + +export const exp1093 = "test"; +>exp1093 : Symbol(exp1093, Decl(manyConstExports.ts, 1093, 12)) + +export const exp1094 = "test"; +>exp1094 : Symbol(exp1094, Decl(manyConstExports.ts, 1094, 12)) + +export const exp1095 = "test"; +>exp1095 : Symbol(exp1095, Decl(manyConstExports.ts, 1095, 12)) + +export const exp1096 = "test"; +>exp1096 : Symbol(exp1096, Decl(manyConstExports.ts, 1096, 12)) + +export const exp1097 = "test"; +>exp1097 : Symbol(exp1097, Decl(manyConstExports.ts, 1097, 12)) + +export const exp1098 = "test"; +>exp1098 : Symbol(exp1098, Decl(manyConstExports.ts, 1098, 12)) + +export const exp1099 = "test"; +>exp1099 : Symbol(exp1099, Decl(manyConstExports.ts, 1099, 12)) + +export const exp1100 = "test"; +>exp1100 : Symbol(exp1100, Decl(manyConstExports.ts, 1100, 12)) + +export const exp1101 = "test"; +>exp1101 : Symbol(exp1101, Decl(manyConstExports.ts, 1101, 12)) + +export const exp1102 = "test"; +>exp1102 : Symbol(exp1102, Decl(manyConstExports.ts, 1102, 12)) + +export const exp1103 = "test"; +>exp1103 : Symbol(exp1103, Decl(manyConstExports.ts, 1103, 12)) + +export const exp1104 = "test"; +>exp1104 : Symbol(exp1104, Decl(manyConstExports.ts, 1104, 12)) + +export const exp1105 = "test"; +>exp1105 : Symbol(exp1105, Decl(manyConstExports.ts, 1105, 12)) + +export const exp1106 = "test"; +>exp1106 : Symbol(exp1106, Decl(manyConstExports.ts, 1106, 12)) + +export const exp1107 = "test"; +>exp1107 : Symbol(exp1107, Decl(manyConstExports.ts, 1107, 12)) + +export const exp1108 = "test"; +>exp1108 : Symbol(exp1108, Decl(manyConstExports.ts, 1108, 12)) + +export const exp1109 = "test"; +>exp1109 : Symbol(exp1109, Decl(manyConstExports.ts, 1109, 12)) + +export const exp1110 = "test"; +>exp1110 : Symbol(exp1110, Decl(manyConstExports.ts, 1110, 12)) + +export const exp1111 = "test"; +>exp1111 : Symbol(exp1111, Decl(manyConstExports.ts, 1111, 12)) + +export const exp1112 = "test"; +>exp1112 : Symbol(exp1112, Decl(manyConstExports.ts, 1112, 12)) + +export const exp1113 = "test"; +>exp1113 : Symbol(exp1113, Decl(manyConstExports.ts, 1113, 12)) + +export const exp1114 = "test"; +>exp1114 : Symbol(exp1114, Decl(manyConstExports.ts, 1114, 12)) + +export const exp1115 = "test"; +>exp1115 : Symbol(exp1115, Decl(manyConstExports.ts, 1115, 12)) + +export const exp1116 = "test"; +>exp1116 : Symbol(exp1116, Decl(manyConstExports.ts, 1116, 12)) + +export const exp1117 = "test"; +>exp1117 : Symbol(exp1117, Decl(manyConstExports.ts, 1117, 12)) + +export const exp1118 = "test"; +>exp1118 : Symbol(exp1118, Decl(manyConstExports.ts, 1118, 12)) + +export const exp1119 = "test"; +>exp1119 : Symbol(exp1119, Decl(manyConstExports.ts, 1119, 12)) + +export const exp1120 = "test"; +>exp1120 : Symbol(exp1120, Decl(manyConstExports.ts, 1120, 12)) + +export const exp1121 = "test"; +>exp1121 : Symbol(exp1121, Decl(manyConstExports.ts, 1121, 12)) + +export const exp1122 = "test"; +>exp1122 : Symbol(exp1122, Decl(manyConstExports.ts, 1122, 12)) + +export const exp1123 = "test"; +>exp1123 : Symbol(exp1123, Decl(manyConstExports.ts, 1123, 12)) + +export const exp1124 = "test"; +>exp1124 : Symbol(exp1124, Decl(manyConstExports.ts, 1124, 12)) + +export const exp1125 = "test"; +>exp1125 : Symbol(exp1125, Decl(manyConstExports.ts, 1125, 12)) + +export const exp1126 = "test"; +>exp1126 : Symbol(exp1126, Decl(manyConstExports.ts, 1126, 12)) + +export const exp1127 = "test"; +>exp1127 : Symbol(exp1127, Decl(manyConstExports.ts, 1127, 12)) + +export const exp1128 = "test"; +>exp1128 : Symbol(exp1128, Decl(manyConstExports.ts, 1128, 12)) + +export const exp1129 = "test"; +>exp1129 : Symbol(exp1129, Decl(manyConstExports.ts, 1129, 12)) + +export const exp1130 = "test"; +>exp1130 : Symbol(exp1130, Decl(manyConstExports.ts, 1130, 12)) + +export const exp1131 = "test"; +>exp1131 : Symbol(exp1131, Decl(manyConstExports.ts, 1131, 12)) + +export const exp1132 = "test"; +>exp1132 : Symbol(exp1132, Decl(manyConstExports.ts, 1132, 12)) + +export const exp1133 = "test"; +>exp1133 : Symbol(exp1133, Decl(manyConstExports.ts, 1133, 12)) + +export const exp1134 = "test"; +>exp1134 : Symbol(exp1134, Decl(manyConstExports.ts, 1134, 12)) + +export const exp1135 = "test"; +>exp1135 : Symbol(exp1135, Decl(manyConstExports.ts, 1135, 12)) + +export const exp1136 = "test"; +>exp1136 : Symbol(exp1136, Decl(manyConstExports.ts, 1136, 12)) + +export const exp1137 = "test"; +>exp1137 : Symbol(exp1137, Decl(manyConstExports.ts, 1137, 12)) + +export const exp1138 = "test"; +>exp1138 : Symbol(exp1138, Decl(manyConstExports.ts, 1138, 12)) + +export const exp1139 = "test"; +>exp1139 : Symbol(exp1139, Decl(manyConstExports.ts, 1139, 12)) + +export const exp1140 = "test"; +>exp1140 : Symbol(exp1140, Decl(manyConstExports.ts, 1140, 12)) + +export const exp1141 = "test"; +>exp1141 : Symbol(exp1141, Decl(manyConstExports.ts, 1141, 12)) + +export const exp1142 = "test"; +>exp1142 : Symbol(exp1142, Decl(manyConstExports.ts, 1142, 12)) + +export const exp1143 = "test"; +>exp1143 : Symbol(exp1143, Decl(manyConstExports.ts, 1143, 12)) + +export const exp1144 = "test"; +>exp1144 : Symbol(exp1144, Decl(manyConstExports.ts, 1144, 12)) + +export const exp1145 = "test"; +>exp1145 : Symbol(exp1145, Decl(manyConstExports.ts, 1145, 12)) + +export const exp1146 = "test"; +>exp1146 : Symbol(exp1146, Decl(manyConstExports.ts, 1146, 12)) + +export const exp1147 = "test"; +>exp1147 : Symbol(exp1147, Decl(manyConstExports.ts, 1147, 12)) + +export const exp1148 = "test"; +>exp1148 : Symbol(exp1148, Decl(manyConstExports.ts, 1148, 12)) + +export const exp1149 = "test"; +>exp1149 : Symbol(exp1149, Decl(manyConstExports.ts, 1149, 12)) + +export const exp1150 = "test"; +>exp1150 : Symbol(exp1150, Decl(manyConstExports.ts, 1150, 12)) + +export const exp1151 = "test"; +>exp1151 : Symbol(exp1151, Decl(manyConstExports.ts, 1151, 12)) + +export const exp1152 = "test"; +>exp1152 : Symbol(exp1152, Decl(manyConstExports.ts, 1152, 12)) + +export const exp1153 = "test"; +>exp1153 : Symbol(exp1153, Decl(manyConstExports.ts, 1153, 12)) + +export const exp1154 = "test"; +>exp1154 : Symbol(exp1154, Decl(manyConstExports.ts, 1154, 12)) + +export const exp1155 = "test"; +>exp1155 : Symbol(exp1155, Decl(manyConstExports.ts, 1155, 12)) + +export const exp1156 = "test"; +>exp1156 : Symbol(exp1156, Decl(manyConstExports.ts, 1156, 12)) + +export const exp1157 = "test"; +>exp1157 : Symbol(exp1157, Decl(manyConstExports.ts, 1157, 12)) + +export const exp1158 = "test"; +>exp1158 : Symbol(exp1158, Decl(manyConstExports.ts, 1158, 12)) + +export const exp1159 = "test"; +>exp1159 : Symbol(exp1159, Decl(manyConstExports.ts, 1159, 12)) + +export const exp1160 = "test"; +>exp1160 : Symbol(exp1160, Decl(manyConstExports.ts, 1160, 12)) + +export const exp1161 = "test"; +>exp1161 : Symbol(exp1161, Decl(manyConstExports.ts, 1161, 12)) + +export const exp1162 = "test"; +>exp1162 : Symbol(exp1162, Decl(manyConstExports.ts, 1162, 12)) + +export const exp1163 = "test"; +>exp1163 : Symbol(exp1163, Decl(manyConstExports.ts, 1163, 12)) + +export const exp1164 = "test"; +>exp1164 : Symbol(exp1164, Decl(manyConstExports.ts, 1164, 12)) + +export const exp1165 = "test"; +>exp1165 : Symbol(exp1165, Decl(manyConstExports.ts, 1165, 12)) + +export const exp1166 = "test"; +>exp1166 : Symbol(exp1166, Decl(manyConstExports.ts, 1166, 12)) + +export const exp1167 = "test"; +>exp1167 : Symbol(exp1167, Decl(manyConstExports.ts, 1167, 12)) + +export const exp1168 = "test"; +>exp1168 : Symbol(exp1168, Decl(manyConstExports.ts, 1168, 12)) + +export const exp1169 = "test"; +>exp1169 : Symbol(exp1169, Decl(manyConstExports.ts, 1169, 12)) + +export const exp1170 = "test"; +>exp1170 : Symbol(exp1170, Decl(manyConstExports.ts, 1170, 12)) + +export const exp1171 = "test"; +>exp1171 : Symbol(exp1171, Decl(manyConstExports.ts, 1171, 12)) + +export const exp1172 = "test"; +>exp1172 : Symbol(exp1172, Decl(manyConstExports.ts, 1172, 12)) + +export const exp1173 = "test"; +>exp1173 : Symbol(exp1173, Decl(manyConstExports.ts, 1173, 12)) + +export const exp1174 = "test"; +>exp1174 : Symbol(exp1174, Decl(manyConstExports.ts, 1174, 12)) + +export const exp1175 = "test"; +>exp1175 : Symbol(exp1175, Decl(manyConstExports.ts, 1175, 12)) + +export const exp1176 = "test"; +>exp1176 : Symbol(exp1176, Decl(manyConstExports.ts, 1176, 12)) + +export const exp1177 = "test"; +>exp1177 : Symbol(exp1177, Decl(manyConstExports.ts, 1177, 12)) + +export const exp1178 = "test"; +>exp1178 : Symbol(exp1178, Decl(manyConstExports.ts, 1178, 12)) + +export const exp1179 = "test"; +>exp1179 : Symbol(exp1179, Decl(manyConstExports.ts, 1179, 12)) + +export const exp1180 = "test"; +>exp1180 : Symbol(exp1180, Decl(manyConstExports.ts, 1180, 12)) + +export const exp1181 = "test"; +>exp1181 : Symbol(exp1181, Decl(manyConstExports.ts, 1181, 12)) + +export const exp1182 = "test"; +>exp1182 : Symbol(exp1182, Decl(manyConstExports.ts, 1182, 12)) + +export const exp1183 = "test"; +>exp1183 : Symbol(exp1183, Decl(manyConstExports.ts, 1183, 12)) + +export const exp1184 = "test"; +>exp1184 : Symbol(exp1184, Decl(manyConstExports.ts, 1184, 12)) + +export const exp1185 = "test"; +>exp1185 : Symbol(exp1185, Decl(manyConstExports.ts, 1185, 12)) + +export const exp1186 = "test"; +>exp1186 : Symbol(exp1186, Decl(manyConstExports.ts, 1186, 12)) + +export const exp1187 = "test"; +>exp1187 : Symbol(exp1187, Decl(manyConstExports.ts, 1187, 12)) + +export const exp1188 = "test"; +>exp1188 : Symbol(exp1188, Decl(manyConstExports.ts, 1188, 12)) + +export const exp1189 = "test"; +>exp1189 : Symbol(exp1189, Decl(manyConstExports.ts, 1189, 12)) + +export const exp1190 = "test"; +>exp1190 : Symbol(exp1190, Decl(manyConstExports.ts, 1190, 12)) + +export const exp1191 = "test"; +>exp1191 : Symbol(exp1191, Decl(manyConstExports.ts, 1191, 12)) + +export const exp1192 = "test"; +>exp1192 : Symbol(exp1192, Decl(manyConstExports.ts, 1192, 12)) + +export const exp1193 = "test"; +>exp1193 : Symbol(exp1193, Decl(manyConstExports.ts, 1193, 12)) + +export const exp1194 = "test"; +>exp1194 : Symbol(exp1194, Decl(manyConstExports.ts, 1194, 12)) + +export const exp1195 = "test"; +>exp1195 : Symbol(exp1195, Decl(manyConstExports.ts, 1195, 12)) + +export const exp1196 = "test"; +>exp1196 : Symbol(exp1196, Decl(manyConstExports.ts, 1196, 12)) + +export const exp1197 = "test"; +>exp1197 : Symbol(exp1197, Decl(manyConstExports.ts, 1197, 12)) + +export const exp1198 = "test"; +>exp1198 : Symbol(exp1198, Decl(manyConstExports.ts, 1198, 12)) + +export const exp1199 = "test"; +>exp1199 : Symbol(exp1199, Decl(manyConstExports.ts, 1199, 12)) + +export const exp1200 = "test"; +>exp1200 : Symbol(exp1200, Decl(manyConstExports.ts, 1200, 12)) + +export const exp1201 = "test"; +>exp1201 : Symbol(exp1201, Decl(manyConstExports.ts, 1201, 12)) + +export const exp1202 = "test"; +>exp1202 : Symbol(exp1202, Decl(manyConstExports.ts, 1202, 12)) + +export const exp1203 = "test"; +>exp1203 : Symbol(exp1203, Decl(manyConstExports.ts, 1203, 12)) + +export const exp1204 = "test"; +>exp1204 : Symbol(exp1204, Decl(manyConstExports.ts, 1204, 12)) + +export const exp1205 = "test"; +>exp1205 : Symbol(exp1205, Decl(manyConstExports.ts, 1205, 12)) + +export const exp1206 = "test"; +>exp1206 : Symbol(exp1206, Decl(manyConstExports.ts, 1206, 12)) + +export const exp1207 = "test"; +>exp1207 : Symbol(exp1207, Decl(manyConstExports.ts, 1207, 12)) + +export const exp1208 = "test"; +>exp1208 : Symbol(exp1208, Decl(manyConstExports.ts, 1208, 12)) + +export const exp1209 = "test"; +>exp1209 : Symbol(exp1209, Decl(manyConstExports.ts, 1209, 12)) + +export const exp1210 = "test"; +>exp1210 : Symbol(exp1210, Decl(manyConstExports.ts, 1210, 12)) + +export const exp1211 = "test"; +>exp1211 : Symbol(exp1211, Decl(manyConstExports.ts, 1211, 12)) + +export const exp1212 = "test"; +>exp1212 : Symbol(exp1212, Decl(manyConstExports.ts, 1212, 12)) + +export const exp1213 = "test"; +>exp1213 : Symbol(exp1213, Decl(manyConstExports.ts, 1213, 12)) + +export const exp1214 = "test"; +>exp1214 : Symbol(exp1214, Decl(manyConstExports.ts, 1214, 12)) + +export const exp1215 = "test"; +>exp1215 : Symbol(exp1215, Decl(manyConstExports.ts, 1215, 12)) + +export const exp1216 = "test"; +>exp1216 : Symbol(exp1216, Decl(manyConstExports.ts, 1216, 12)) + +export const exp1217 = "test"; +>exp1217 : Symbol(exp1217, Decl(manyConstExports.ts, 1217, 12)) + +export const exp1218 = "test"; +>exp1218 : Symbol(exp1218, Decl(manyConstExports.ts, 1218, 12)) + +export const exp1219 = "test"; +>exp1219 : Symbol(exp1219, Decl(manyConstExports.ts, 1219, 12)) + +export const exp1220 = "test"; +>exp1220 : Symbol(exp1220, Decl(manyConstExports.ts, 1220, 12)) + +export const exp1221 = "test"; +>exp1221 : Symbol(exp1221, Decl(manyConstExports.ts, 1221, 12)) + +export const exp1222 = "test"; +>exp1222 : Symbol(exp1222, Decl(manyConstExports.ts, 1222, 12)) + +export const exp1223 = "test"; +>exp1223 : Symbol(exp1223, Decl(manyConstExports.ts, 1223, 12)) + +export const exp1224 = "test"; +>exp1224 : Symbol(exp1224, Decl(manyConstExports.ts, 1224, 12)) + +export const exp1225 = "test"; +>exp1225 : Symbol(exp1225, Decl(manyConstExports.ts, 1225, 12)) + +export const exp1226 = "test"; +>exp1226 : Symbol(exp1226, Decl(manyConstExports.ts, 1226, 12)) + +export const exp1227 = "test"; +>exp1227 : Symbol(exp1227, Decl(manyConstExports.ts, 1227, 12)) + +export const exp1228 = "test"; +>exp1228 : Symbol(exp1228, Decl(manyConstExports.ts, 1228, 12)) + +export const exp1229 = "test"; +>exp1229 : Symbol(exp1229, Decl(manyConstExports.ts, 1229, 12)) + +export const exp1230 = "test"; +>exp1230 : Symbol(exp1230, Decl(manyConstExports.ts, 1230, 12)) + +export const exp1231 = "test"; +>exp1231 : Symbol(exp1231, Decl(manyConstExports.ts, 1231, 12)) + +export const exp1232 = "test"; +>exp1232 : Symbol(exp1232, Decl(manyConstExports.ts, 1232, 12)) + +export const exp1233 = "test"; +>exp1233 : Symbol(exp1233, Decl(manyConstExports.ts, 1233, 12)) + +export const exp1234 = "test"; +>exp1234 : Symbol(exp1234, Decl(manyConstExports.ts, 1234, 12)) + +export const exp1235 = "test"; +>exp1235 : Symbol(exp1235, Decl(manyConstExports.ts, 1235, 12)) + +export const exp1236 = "test"; +>exp1236 : Symbol(exp1236, Decl(manyConstExports.ts, 1236, 12)) + +export const exp1237 = "test"; +>exp1237 : Symbol(exp1237, Decl(manyConstExports.ts, 1237, 12)) + +export const exp1238 = "test"; +>exp1238 : Symbol(exp1238, Decl(manyConstExports.ts, 1238, 12)) + +export const exp1239 = "test"; +>exp1239 : Symbol(exp1239, Decl(manyConstExports.ts, 1239, 12)) + +export const exp1240 = "test"; +>exp1240 : Symbol(exp1240, Decl(manyConstExports.ts, 1240, 12)) + +export const exp1241 = "test"; +>exp1241 : Symbol(exp1241, Decl(manyConstExports.ts, 1241, 12)) + +export const exp1242 = "test"; +>exp1242 : Symbol(exp1242, Decl(manyConstExports.ts, 1242, 12)) + +export const exp1243 = "test"; +>exp1243 : Symbol(exp1243, Decl(manyConstExports.ts, 1243, 12)) + +export const exp1244 = "test"; +>exp1244 : Symbol(exp1244, Decl(manyConstExports.ts, 1244, 12)) + +export const exp1245 = "test"; +>exp1245 : Symbol(exp1245, Decl(manyConstExports.ts, 1245, 12)) + +export const exp1246 = "test"; +>exp1246 : Symbol(exp1246, Decl(manyConstExports.ts, 1246, 12)) + +export const exp1247 = "test"; +>exp1247 : Symbol(exp1247, Decl(manyConstExports.ts, 1247, 12)) + +export const exp1248 = "test"; +>exp1248 : Symbol(exp1248, Decl(manyConstExports.ts, 1248, 12)) + +export const exp1249 = "test"; +>exp1249 : Symbol(exp1249, Decl(manyConstExports.ts, 1249, 12)) + +export const exp1250 = "test"; +>exp1250 : Symbol(exp1250, Decl(manyConstExports.ts, 1250, 12)) + +export const exp1251 = "test"; +>exp1251 : Symbol(exp1251, Decl(manyConstExports.ts, 1251, 12)) + +export const exp1252 = "test"; +>exp1252 : Symbol(exp1252, Decl(manyConstExports.ts, 1252, 12)) + +export const exp1253 = "test"; +>exp1253 : Symbol(exp1253, Decl(manyConstExports.ts, 1253, 12)) + +export const exp1254 = "test"; +>exp1254 : Symbol(exp1254, Decl(manyConstExports.ts, 1254, 12)) + +export const exp1255 = "test"; +>exp1255 : Symbol(exp1255, Decl(manyConstExports.ts, 1255, 12)) + +export const exp1256 = "test"; +>exp1256 : Symbol(exp1256, Decl(manyConstExports.ts, 1256, 12)) + +export const exp1257 = "test"; +>exp1257 : Symbol(exp1257, Decl(manyConstExports.ts, 1257, 12)) + +export const exp1258 = "test"; +>exp1258 : Symbol(exp1258, Decl(manyConstExports.ts, 1258, 12)) + +export const exp1259 = "test"; +>exp1259 : Symbol(exp1259, Decl(manyConstExports.ts, 1259, 12)) + +export const exp1260 = "test"; +>exp1260 : Symbol(exp1260, Decl(manyConstExports.ts, 1260, 12)) + +export const exp1261 = "test"; +>exp1261 : Symbol(exp1261, Decl(manyConstExports.ts, 1261, 12)) + +export const exp1262 = "test"; +>exp1262 : Symbol(exp1262, Decl(manyConstExports.ts, 1262, 12)) + +export const exp1263 = "test"; +>exp1263 : Symbol(exp1263, Decl(manyConstExports.ts, 1263, 12)) + +export const exp1264 = "test"; +>exp1264 : Symbol(exp1264, Decl(manyConstExports.ts, 1264, 12)) + +export const exp1265 = "test"; +>exp1265 : Symbol(exp1265, Decl(manyConstExports.ts, 1265, 12)) + +export const exp1266 = "test"; +>exp1266 : Symbol(exp1266, Decl(manyConstExports.ts, 1266, 12)) + +export const exp1267 = "test"; +>exp1267 : Symbol(exp1267, Decl(manyConstExports.ts, 1267, 12)) + +export const exp1268 = "test"; +>exp1268 : Symbol(exp1268, Decl(manyConstExports.ts, 1268, 12)) + +export const exp1269 = "test"; +>exp1269 : Symbol(exp1269, Decl(manyConstExports.ts, 1269, 12)) + +export const exp1270 = "test"; +>exp1270 : Symbol(exp1270, Decl(manyConstExports.ts, 1270, 12)) + +export const exp1271 = "test"; +>exp1271 : Symbol(exp1271, Decl(manyConstExports.ts, 1271, 12)) + +export const exp1272 = "test"; +>exp1272 : Symbol(exp1272, Decl(manyConstExports.ts, 1272, 12)) + +export const exp1273 = "test"; +>exp1273 : Symbol(exp1273, Decl(manyConstExports.ts, 1273, 12)) + +export const exp1274 = "test"; +>exp1274 : Symbol(exp1274, Decl(manyConstExports.ts, 1274, 12)) + +export const exp1275 = "test"; +>exp1275 : Symbol(exp1275, Decl(manyConstExports.ts, 1275, 12)) + +export const exp1276 = "test"; +>exp1276 : Symbol(exp1276, Decl(manyConstExports.ts, 1276, 12)) + +export const exp1277 = "test"; +>exp1277 : Symbol(exp1277, Decl(manyConstExports.ts, 1277, 12)) + +export const exp1278 = "test"; +>exp1278 : Symbol(exp1278, Decl(manyConstExports.ts, 1278, 12)) + +export const exp1279 = "test"; +>exp1279 : Symbol(exp1279, Decl(manyConstExports.ts, 1279, 12)) + +export const exp1280 = "test"; +>exp1280 : Symbol(exp1280, Decl(manyConstExports.ts, 1280, 12)) + +export const exp1281 = "test"; +>exp1281 : Symbol(exp1281, Decl(manyConstExports.ts, 1281, 12)) + +export const exp1282 = "test"; +>exp1282 : Symbol(exp1282, Decl(manyConstExports.ts, 1282, 12)) + +export const exp1283 = "test"; +>exp1283 : Symbol(exp1283, Decl(manyConstExports.ts, 1283, 12)) + +export const exp1284 = "test"; +>exp1284 : Symbol(exp1284, Decl(manyConstExports.ts, 1284, 12)) + +export const exp1285 = "test"; +>exp1285 : Symbol(exp1285, Decl(manyConstExports.ts, 1285, 12)) + +export const exp1286 = "test"; +>exp1286 : Symbol(exp1286, Decl(manyConstExports.ts, 1286, 12)) + +export const exp1287 = "test"; +>exp1287 : Symbol(exp1287, Decl(manyConstExports.ts, 1287, 12)) + +export const exp1288 = "test"; +>exp1288 : Symbol(exp1288, Decl(manyConstExports.ts, 1288, 12)) + +export const exp1289 = "test"; +>exp1289 : Symbol(exp1289, Decl(manyConstExports.ts, 1289, 12)) + +export const exp1290 = "test"; +>exp1290 : Symbol(exp1290, Decl(manyConstExports.ts, 1290, 12)) + +export const exp1291 = "test"; +>exp1291 : Symbol(exp1291, Decl(manyConstExports.ts, 1291, 12)) + +export const exp1292 = "test"; +>exp1292 : Symbol(exp1292, Decl(manyConstExports.ts, 1292, 12)) + +export const exp1293 = "test"; +>exp1293 : Symbol(exp1293, Decl(manyConstExports.ts, 1293, 12)) + +export const exp1294 = "test"; +>exp1294 : Symbol(exp1294, Decl(manyConstExports.ts, 1294, 12)) + +export const exp1295 = "test"; +>exp1295 : Symbol(exp1295, Decl(manyConstExports.ts, 1295, 12)) + +export const exp1296 = "test"; +>exp1296 : Symbol(exp1296, Decl(manyConstExports.ts, 1296, 12)) + +export const exp1297 = "test"; +>exp1297 : Symbol(exp1297, Decl(manyConstExports.ts, 1297, 12)) + +export const exp1298 = "test"; +>exp1298 : Symbol(exp1298, Decl(manyConstExports.ts, 1298, 12)) + +export const exp1299 = "test"; +>exp1299 : Symbol(exp1299, Decl(manyConstExports.ts, 1299, 12)) + +export const exp1300 = "test"; +>exp1300 : Symbol(exp1300, Decl(manyConstExports.ts, 1300, 12)) + +export const exp1301 = "test"; +>exp1301 : Symbol(exp1301, Decl(manyConstExports.ts, 1301, 12)) + +export const exp1302 = "test"; +>exp1302 : Symbol(exp1302, Decl(manyConstExports.ts, 1302, 12)) + +export const exp1303 = "test"; +>exp1303 : Symbol(exp1303, Decl(manyConstExports.ts, 1303, 12)) + +export const exp1304 = "test"; +>exp1304 : Symbol(exp1304, Decl(manyConstExports.ts, 1304, 12)) + +export const exp1305 = "test"; +>exp1305 : Symbol(exp1305, Decl(manyConstExports.ts, 1305, 12)) + +export const exp1306 = "test"; +>exp1306 : Symbol(exp1306, Decl(manyConstExports.ts, 1306, 12)) + +export const exp1307 = "test"; +>exp1307 : Symbol(exp1307, Decl(manyConstExports.ts, 1307, 12)) + +export const exp1308 = "test"; +>exp1308 : Symbol(exp1308, Decl(manyConstExports.ts, 1308, 12)) + +export const exp1309 = "test"; +>exp1309 : Symbol(exp1309, Decl(manyConstExports.ts, 1309, 12)) + +export const exp1310 = "test"; +>exp1310 : Symbol(exp1310, Decl(manyConstExports.ts, 1310, 12)) + +export const exp1311 = "test"; +>exp1311 : Symbol(exp1311, Decl(manyConstExports.ts, 1311, 12)) + +export const exp1312 = "test"; +>exp1312 : Symbol(exp1312, Decl(manyConstExports.ts, 1312, 12)) + +export const exp1313 = "test"; +>exp1313 : Symbol(exp1313, Decl(manyConstExports.ts, 1313, 12)) + +export const exp1314 = "test"; +>exp1314 : Symbol(exp1314, Decl(manyConstExports.ts, 1314, 12)) + +export const exp1315 = "test"; +>exp1315 : Symbol(exp1315, Decl(manyConstExports.ts, 1315, 12)) + +export const exp1316 = "test"; +>exp1316 : Symbol(exp1316, Decl(manyConstExports.ts, 1316, 12)) + +export const exp1317 = "test"; +>exp1317 : Symbol(exp1317, Decl(manyConstExports.ts, 1317, 12)) + +export const exp1318 = "test"; +>exp1318 : Symbol(exp1318, Decl(manyConstExports.ts, 1318, 12)) + +export const exp1319 = "test"; +>exp1319 : Symbol(exp1319, Decl(manyConstExports.ts, 1319, 12)) + +export const exp1320 = "test"; +>exp1320 : Symbol(exp1320, Decl(manyConstExports.ts, 1320, 12)) + +export const exp1321 = "test"; +>exp1321 : Symbol(exp1321, Decl(manyConstExports.ts, 1321, 12)) + +export const exp1322 = "test"; +>exp1322 : Symbol(exp1322, Decl(manyConstExports.ts, 1322, 12)) + +export const exp1323 = "test"; +>exp1323 : Symbol(exp1323, Decl(manyConstExports.ts, 1323, 12)) + +export const exp1324 = "test"; +>exp1324 : Symbol(exp1324, Decl(manyConstExports.ts, 1324, 12)) + +export const exp1325 = "test"; +>exp1325 : Symbol(exp1325, Decl(manyConstExports.ts, 1325, 12)) + +export const exp1326 = "test"; +>exp1326 : Symbol(exp1326, Decl(manyConstExports.ts, 1326, 12)) + +export const exp1327 = "test"; +>exp1327 : Symbol(exp1327, Decl(manyConstExports.ts, 1327, 12)) + +export const exp1328 = "test"; +>exp1328 : Symbol(exp1328, Decl(manyConstExports.ts, 1328, 12)) + +export const exp1329 = "test"; +>exp1329 : Symbol(exp1329, Decl(manyConstExports.ts, 1329, 12)) + +export const exp1330 = "test"; +>exp1330 : Symbol(exp1330, Decl(manyConstExports.ts, 1330, 12)) + +export const exp1331 = "test"; +>exp1331 : Symbol(exp1331, Decl(manyConstExports.ts, 1331, 12)) + +export const exp1332 = "test"; +>exp1332 : Symbol(exp1332, Decl(manyConstExports.ts, 1332, 12)) + +export const exp1333 = "test"; +>exp1333 : Symbol(exp1333, Decl(manyConstExports.ts, 1333, 12)) + +export const exp1334 = "test"; +>exp1334 : Symbol(exp1334, Decl(manyConstExports.ts, 1334, 12)) + +export const exp1335 = "test"; +>exp1335 : Symbol(exp1335, Decl(manyConstExports.ts, 1335, 12)) + +export const exp1336 = "test"; +>exp1336 : Symbol(exp1336, Decl(manyConstExports.ts, 1336, 12)) + +export const exp1337 = "test"; +>exp1337 : Symbol(exp1337, Decl(manyConstExports.ts, 1337, 12)) + +export const exp1338 = "test"; +>exp1338 : Symbol(exp1338, Decl(manyConstExports.ts, 1338, 12)) + +export const exp1339 = "test"; +>exp1339 : Symbol(exp1339, Decl(manyConstExports.ts, 1339, 12)) + +export const exp1340 = "test"; +>exp1340 : Symbol(exp1340, Decl(manyConstExports.ts, 1340, 12)) + +export const exp1341 = "test"; +>exp1341 : Symbol(exp1341, Decl(manyConstExports.ts, 1341, 12)) + +export const exp1342 = "test"; +>exp1342 : Symbol(exp1342, Decl(manyConstExports.ts, 1342, 12)) + +export const exp1343 = "test"; +>exp1343 : Symbol(exp1343, Decl(manyConstExports.ts, 1343, 12)) + +export const exp1344 = "test"; +>exp1344 : Symbol(exp1344, Decl(manyConstExports.ts, 1344, 12)) + +export const exp1345 = "test"; +>exp1345 : Symbol(exp1345, Decl(manyConstExports.ts, 1345, 12)) + +export const exp1346 = "test"; +>exp1346 : Symbol(exp1346, Decl(manyConstExports.ts, 1346, 12)) + +export const exp1347 = "test"; +>exp1347 : Symbol(exp1347, Decl(manyConstExports.ts, 1347, 12)) + +export const exp1348 = "test"; +>exp1348 : Symbol(exp1348, Decl(manyConstExports.ts, 1348, 12)) + +export const exp1349 = "test"; +>exp1349 : Symbol(exp1349, Decl(manyConstExports.ts, 1349, 12)) + +export const exp1350 = "test"; +>exp1350 : Symbol(exp1350, Decl(manyConstExports.ts, 1350, 12)) + +export const exp1351 = "test"; +>exp1351 : Symbol(exp1351, Decl(manyConstExports.ts, 1351, 12)) + +export const exp1352 = "test"; +>exp1352 : Symbol(exp1352, Decl(manyConstExports.ts, 1352, 12)) + +export const exp1353 = "test"; +>exp1353 : Symbol(exp1353, Decl(manyConstExports.ts, 1353, 12)) + +export const exp1354 = "test"; +>exp1354 : Symbol(exp1354, Decl(manyConstExports.ts, 1354, 12)) + +export const exp1355 = "test"; +>exp1355 : Symbol(exp1355, Decl(manyConstExports.ts, 1355, 12)) + +export const exp1356 = "test"; +>exp1356 : Symbol(exp1356, Decl(manyConstExports.ts, 1356, 12)) + +export const exp1357 = "test"; +>exp1357 : Symbol(exp1357, Decl(manyConstExports.ts, 1357, 12)) + +export const exp1358 = "test"; +>exp1358 : Symbol(exp1358, Decl(manyConstExports.ts, 1358, 12)) + +export const exp1359 = "test"; +>exp1359 : Symbol(exp1359, Decl(manyConstExports.ts, 1359, 12)) + +export const exp1360 = "test"; +>exp1360 : Symbol(exp1360, Decl(manyConstExports.ts, 1360, 12)) + +export const exp1361 = "test"; +>exp1361 : Symbol(exp1361, Decl(manyConstExports.ts, 1361, 12)) + +export const exp1362 = "test"; +>exp1362 : Symbol(exp1362, Decl(manyConstExports.ts, 1362, 12)) + +export const exp1363 = "test"; +>exp1363 : Symbol(exp1363, Decl(manyConstExports.ts, 1363, 12)) + +export const exp1364 = "test"; +>exp1364 : Symbol(exp1364, Decl(manyConstExports.ts, 1364, 12)) + +export const exp1365 = "test"; +>exp1365 : Symbol(exp1365, Decl(manyConstExports.ts, 1365, 12)) + +export const exp1366 = "test"; +>exp1366 : Symbol(exp1366, Decl(manyConstExports.ts, 1366, 12)) + +export const exp1367 = "test"; +>exp1367 : Symbol(exp1367, Decl(manyConstExports.ts, 1367, 12)) + +export const exp1368 = "test"; +>exp1368 : Symbol(exp1368, Decl(manyConstExports.ts, 1368, 12)) + +export const exp1369 = "test"; +>exp1369 : Symbol(exp1369, Decl(manyConstExports.ts, 1369, 12)) + +export const exp1370 = "test"; +>exp1370 : Symbol(exp1370, Decl(manyConstExports.ts, 1370, 12)) + +export const exp1371 = "test"; +>exp1371 : Symbol(exp1371, Decl(manyConstExports.ts, 1371, 12)) + +export const exp1372 = "test"; +>exp1372 : Symbol(exp1372, Decl(manyConstExports.ts, 1372, 12)) + +export const exp1373 = "test"; +>exp1373 : Symbol(exp1373, Decl(manyConstExports.ts, 1373, 12)) + +export const exp1374 = "test"; +>exp1374 : Symbol(exp1374, Decl(manyConstExports.ts, 1374, 12)) + +export const exp1375 = "test"; +>exp1375 : Symbol(exp1375, Decl(manyConstExports.ts, 1375, 12)) + +export const exp1376 = "test"; +>exp1376 : Symbol(exp1376, Decl(manyConstExports.ts, 1376, 12)) + +export const exp1377 = "test"; +>exp1377 : Symbol(exp1377, Decl(manyConstExports.ts, 1377, 12)) + +export const exp1378 = "test"; +>exp1378 : Symbol(exp1378, Decl(manyConstExports.ts, 1378, 12)) + +export const exp1379 = "test"; +>exp1379 : Symbol(exp1379, Decl(manyConstExports.ts, 1379, 12)) + +export const exp1380 = "test"; +>exp1380 : Symbol(exp1380, Decl(manyConstExports.ts, 1380, 12)) + +export const exp1381 = "test"; +>exp1381 : Symbol(exp1381, Decl(manyConstExports.ts, 1381, 12)) + +export const exp1382 = "test"; +>exp1382 : Symbol(exp1382, Decl(manyConstExports.ts, 1382, 12)) + +export const exp1383 = "test"; +>exp1383 : Symbol(exp1383, Decl(manyConstExports.ts, 1383, 12)) + +export const exp1384 = "test"; +>exp1384 : Symbol(exp1384, Decl(manyConstExports.ts, 1384, 12)) + +export const exp1385 = "test"; +>exp1385 : Symbol(exp1385, Decl(manyConstExports.ts, 1385, 12)) + +export const exp1386 = "test"; +>exp1386 : Symbol(exp1386, Decl(manyConstExports.ts, 1386, 12)) + +export const exp1387 = "test"; +>exp1387 : Symbol(exp1387, Decl(manyConstExports.ts, 1387, 12)) + +export const exp1388 = "test"; +>exp1388 : Symbol(exp1388, Decl(manyConstExports.ts, 1388, 12)) + +export const exp1389 = "test"; +>exp1389 : Symbol(exp1389, Decl(manyConstExports.ts, 1389, 12)) + +export const exp1390 = "test"; +>exp1390 : Symbol(exp1390, Decl(manyConstExports.ts, 1390, 12)) + +export const exp1391 = "test"; +>exp1391 : Symbol(exp1391, Decl(manyConstExports.ts, 1391, 12)) + +export const exp1392 = "test"; +>exp1392 : Symbol(exp1392, Decl(manyConstExports.ts, 1392, 12)) + +export const exp1393 = "test"; +>exp1393 : Symbol(exp1393, Decl(manyConstExports.ts, 1393, 12)) + +export const exp1394 = "test"; +>exp1394 : Symbol(exp1394, Decl(manyConstExports.ts, 1394, 12)) + +export const exp1395 = "test"; +>exp1395 : Symbol(exp1395, Decl(manyConstExports.ts, 1395, 12)) + +export const exp1396 = "test"; +>exp1396 : Symbol(exp1396, Decl(manyConstExports.ts, 1396, 12)) + +export const exp1397 = "test"; +>exp1397 : Symbol(exp1397, Decl(manyConstExports.ts, 1397, 12)) + +export const exp1398 = "test"; +>exp1398 : Symbol(exp1398, Decl(manyConstExports.ts, 1398, 12)) + +export const exp1399 = "test"; +>exp1399 : Symbol(exp1399, Decl(manyConstExports.ts, 1399, 12)) + +export const exp1400 = "test"; +>exp1400 : Symbol(exp1400, Decl(manyConstExports.ts, 1400, 12)) + +export const exp1401 = "test"; +>exp1401 : Symbol(exp1401, Decl(manyConstExports.ts, 1401, 12)) + +export const exp1402 = "test"; +>exp1402 : Symbol(exp1402, Decl(manyConstExports.ts, 1402, 12)) + +export const exp1403 = "test"; +>exp1403 : Symbol(exp1403, Decl(manyConstExports.ts, 1403, 12)) + +export const exp1404 = "test"; +>exp1404 : Symbol(exp1404, Decl(manyConstExports.ts, 1404, 12)) + +export const exp1405 = "test"; +>exp1405 : Symbol(exp1405, Decl(manyConstExports.ts, 1405, 12)) + +export const exp1406 = "test"; +>exp1406 : Symbol(exp1406, Decl(manyConstExports.ts, 1406, 12)) + +export const exp1407 = "test"; +>exp1407 : Symbol(exp1407, Decl(manyConstExports.ts, 1407, 12)) + +export const exp1408 = "test"; +>exp1408 : Symbol(exp1408, Decl(manyConstExports.ts, 1408, 12)) + +export const exp1409 = "test"; +>exp1409 : Symbol(exp1409, Decl(manyConstExports.ts, 1409, 12)) + +export const exp1410 = "test"; +>exp1410 : Symbol(exp1410, Decl(manyConstExports.ts, 1410, 12)) + +export const exp1411 = "test"; +>exp1411 : Symbol(exp1411, Decl(manyConstExports.ts, 1411, 12)) + +export const exp1412 = "test"; +>exp1412 : Symbol(exp1412, Decl(manyConstExports.ts, 1412, 12)) + +export const exp1413 = "test"; +>exp1413 : Symbol(exp1413, Decl(manyConstExports.ts, 1413, 12)) + +export const exp1414 = "test"; +>exp1414 : Symbol(exp1414, Decl(manyConstExports.ts, 1414, 12)) + +export const exp1415 = "test"; +>exp1415 : Symbol(exp1415, Decl(manyConstExports.ts, 1415, 12)) + +export const exp1416 = "test"; +>exp1416 : Symbol(exp1416, Decl(manyConstExports.ts, 1416, 12)) + +export const exp1417 = "test"; +>exp1417 : Symbol(exp1417, Decl(manyConstExports.ts, 1417, 12)) + +export const exp1418 = "test"; +>exp1418 : Symbol(exp1418, Decl(manyConstExports.ts, 1418, 12)) + +export const exp1419 = "test"; +>exp1419 : Symbol(exp1419, Decl(manyConstExports.ts, 1419, 12)) + +export const exp1420 = "test"; +>exp1420 : Symbol(exp1420, Decl(manyConstExports.ts, 1420, 12)) + +export const exp1421 = "test"; +>exp1421 : Symbol(exp1421, Decl(manyConstExports.ts, 1421, 12)) + +export const exp1422 = "test"; +>exp1422 : Symbol(exp1422, Decl(manyConstExports.ts, 1422, 12)) + +export const exp1423 = "test"; +>exp1423 : Symbol(exp1423, Decl(manyConstExports.ts, 1423, 12)) + +export const exp1424 = "test"; +>exp1424 : Symbol(exp1424, Decl(manyConstExports.ts, 1424, 12)) + +export const exp1425 = "test"; +>exp1425 : Symbol(exp1425, Decl(manyConstExports.ts, 1425, 12)) + +export const exp1426 = "test"; +>exp1426 : Symbol(exp1426, Decl(manyConstExports.ts, 1426, 12)) + +export const exp1427 = "test"; +>exp1427 : Symbol(exp1427, Decl(manyConstExports.ts, 1427, 12)) + +export const exp1428 = "test"; +>exp1428 : Symbol(exp1428, Decl(manyConstExports.ts, 1428, 12)) + +export const exp1429 = "test"; +>exp1429 : Symbol(exp1429, Decl(manyConstExports.ts, 1429, 12)) + +export const exp1430 = "test"; +>exp1430 : Symbol(exp1430, Decl(manyConstExports.ts, 1430, 12)) + +export const exp1431 = "test"; +>exp1431 : Symbol(exp1431, Decl(manyConstExports.ts, 1431, 12)) + +export const exp1432 = "test"; +>exp1432 : Symbol(exp1432, Decl(manyConstExports.ts, 1432, 12)) + +export const exp1433 = "test"; +>exp1433 : Symbol(exp1433, Decl(manyConstExports.ts, 1433, 12)) + +export const exp1434 = "test"; +>exp1434 : Symbol(exp1434, Decl(manyConstExports.ts, 1434, 12)) + +export const exp1435 = "test"; +>exp1435 : Symbol(exp1435, Decl(manyConstExports.ts, 1435, 12)) + +export const exp1436 = "test"; +>exp1436 : Symbol(exp1436, Decl(manyConstExports.ts, 1436, 12)) + +export const exp1437 = "test"; +>exp1437 : Symbol(exp1437, Decl(manyConstExports.ts, 1437, 12)) + +export const exp1438 = "test"; +>exp1438 : Symbol(exp1438, Decl(manyConstExports.ts, 1438, 12)) + +export const exp1439 = "test"; +>exp1439 : Symbol(exp1439, Decl(manyConstExports.ts, 1439, 12)) + +export const exp1440 = "test"; +>exp1440 : Symbol(exp1440, Decl(manyConstExports.ts, 1440, 12)) + +export const exp1441 = "test"; +>exp1441 : Symbol(exp1441, Decl(manyConstExports.ts, 1441, 12)) + +export const exp1442 = "test"; +>exp1442 : Symbol(exp1442, Decl(manyConstExports.ts, 1442, 12)) + +export const exp1443 = "test"; +>exp1443 : Symbol(exp1443, Decl(manyConstExports.ts, 1443, 12)) + +export const exp1444 = "test"; +>exp1444 : Symbol(exp1444, Decl(manyConstExports.ts, 1444, 12)) + +export const exp1445 = "test"; +>exp1445 : Symbol(exp1445, Decl(manyConstExports.ts, 1445, 12)) + +export const exp1446 = "test"; +>exp1446 : Symbol(exp1446, Decl(manyConstExports.ts, 1446, 12)) + +export const exp1447 = "test"; +>exp1447 : Symbol(exp1447, Decl(manyConstExports.ts, 1447, 12)) + +export const exp1448 = "test"; +>exp1448 : Symbol(exp1448, Decl(manyConstExports.ts, 1448, 12)) + +export const exp1449 = "test"; +>exp1449 : Symbol(exp1449, Decl(manyConstExports.ts, 1449, 12)) + +export const exp1450 = "test"; +>exp1450 : Symbol(exp1450, Decl(manyConstExports.ts, 1450, 12)) + +export const exp1451 = "test"; +>exp1451 : Symbol(exp1451, Decl(manyConstExports.ts, 1451, 12)) + +export const exp1452 = "test"; +>exp1452 : Symbol(exp1452, Decl(manyConstExports.ts, 1452, 12)) + +export const exp1453 = "test"; +>exp1453 : Symbol(exp1453, Decl(manyConstExports.ts, 1453, 12)) + +export const exp1454 = "test"; +>exp1454 : Symbol(exp1454, Decl(manyConstExports.ts, 1454, 12)) + +export const exp1455 = "test"; +>exp1455 : Symbol(exp1455, Decl(manyConstExports.ts, 1455, 12)) + +export const exp1456 = "test"; +>exp1456 : Symbol(exp1456, Decl(manyConstExports.ts, 1456, 12)) + +export const exp1457 = "test"; +>exp1457 : Symbol(exp1457, Decl(manyConstExports.ts, 1457, 12)) + +export const exp1458 = "test"; +>exp1458 : Symbol(exp1458, Decl(manyConstExports.ts, 1458, 12)) + +export const exp1459 = "test"; +>exp1459 : Symbol(exp1459, Decl(manyConstExports.ts, 1459, 12)) + +export const exp1460 = "test"; +>exp1460 : Symbol(exp1460, Decl(manyConstExports.ts, 1460, 12)) + +export const exp1461 = "test"; +>exp1461 : Symbol(exp1461, Decl(manyConstExports.ts, 1461, 12)) + +export const exp1462 = "test"; +>exp1462 : Symbol(exp1462, Decl(manyConstExports.ts, 1462, 12)) + +export const exp1463 = "test"; +>exp1463 : Symbol(exp1463, Decl(manyConstExports.ts, 1463, 12)) + +export const exp1464 = "test"; +>exp1464 : Symbol(exp1464, Decl(manyConstExports.ts, 1464, 12)) + +export const exp1465 = "test"; +>exp1465 : Symbol(exp1465, Decl(manyConstExports.ts, 1465, 12)) + +export const exp1466 = "test"; +>exp1466 : Symbol(exp1466, Decl(manyConstExports.ts, 1466, 12)) + +export const exp1467 = "test"; +>exp1467 : Symbol(exp1467, Decl(manyConstExports.ts, 1467, 12)) + +export const exp1468 = "test"; +>exp1468 : Symbol(exp1468, Decl(manyConstExports.ts, 1468, 12)) + +export const exp1469 = "test"; +>exp1469 : Symbol(exp1469, Decl(manyConstExports.ts, 1469, 12)) + +export const exp1470 = "test"; +>exp1470 : Symbol(exp1470, Decl(manyConstExports.ts, 1470, 12)) + +export const exp1471 = "test"; +>exp1471 : Symbol(exp1471, Decl(manyConstExports.ts, 1471, 12)) + +export const exp1472 = "test"; +>exp1472 : Symbol(exp1472, Decl(manyConstExports.ts, 1472, 12)) + +export const exp1473 = "test"; +>exp1473 : Symbol(exp1473, Decl(manyConstExports.ts, 1473, 12)) + +export const exp1474 = "test"; +>exp1474 : Symbol(exp1474, Decl(manyConstExports.ts, 1474, 12)) + +export const exp1475 = "test"; +>exp1475 : Symbol(exp1475, Decl(manyConstExports.ts, 1475, 12)) + +export const exp1476 = "test"; +>exp1476 : Symbol(exp1476, Decl(manyConstExports.ts, 1476, 12)) + +export const exp1477 = "test"; +>exp1477 : Symbol(exp1477, Decl(manyConstExports.ts, 1477, 12)) + +export const exp1478 = "test"; +>exp1478 : Symbol(exp1478, Decl(manyConstExports.ts, 1478, 12)) + +export const exp1479 = "test"; +>exp1479 : Symbol(exp1479, Decl(manyConstExports.ts, 1479, 12)) + +export const exp1480 = "test"; +>exp1480 : Symbol(exp1480, Decl(manyConstExports.ts, 1480, 12)) + +export const exp1481 = "test"; +>exp1481 : Symbol(exp1481, Decl(manyConstExports.ts, 1481, 12)) + +export const exp1482 = "test"; +>exp1482 : Symbol(exp1482, Decl(manyConstExports.ts, 1482, 12)) + +export const exp1483 = "test"; +>exp1483 : Symbol(exp1483, Decl(manyConstExports.ts, 1483, 12)) + +export const exp1484 = "test"; +>exp1484 : Symbol(exp1484, Decl(manyConstExports.ts, 1484, 12)) + +export const exp1485 = "test"; +>exp1485 : Symbol(exp1485, Decl(manyConstExports.ts, 1485, 12)) + +export const exp1486 = "test"; +>exp1486 : Symbol(exp1486, Decl(manyConstExports.ts, 1486, 12)) + +export const exp1487 = "test"; +>exp1487 : Symbol(exp1487, Decl(manyConstExports.ts, 1487, 12)) + +export const exp1488 = "test"; +>exp1488 : Symbol(exp1488, Decl(manyConstExports.ts, 1488, 12)) + +export const exp1489 = "test"; +>exp1489 : Symbol(exp1489, Decl(manyConstExports.ts, 1489, 12)) + +export const exp1490 = "test"; +>exp1490 : Symbol(exp1490, Decl(manyConstExports.ts, 1490, 12)) + +export const exp1491 = "test"; +>exp1491 : Symbol(exp1491, Decl(manyConstExports.ts, 1491, 12)) + +export const exp1492 = "test"; +>exp1492 : Symbol(exp1492, Decl(manyConstExports.ts, 1492, 12)) + +export const exp1493 = "test"; +>exp1493 : Symbol(exp1493, Decl(manyConstExports.ts, 1493, 12)) + +export const exp1494 = "test"; +>exp1494 : Symbol(exp1494, Decl(manyConstExports.ts, 1494, 12)) + +export const exp1495 = "test"; +>exp1495 : Symbol(exp1495, Decl(manyConstExports.ts, 1495, 12)) + +export const exp1496 = "test"; +>exp1496 : Symbol(exp1496, Decl(manyConstExports.ts, 1496, 12)) + +export const exp1497 = "test"; +>exp1497 : Symbol(exp1497, Decl(manyConstExports.ts, 1497, 12)) + +export const exp1498 = "test"; +>exp1498 : Symbol(exp1498, Decl(manyConstExports.ts, 1498, 12)) + +export const exp1499 = "test"; +>exp1499 : Symbol(exp1499, Decl(manyConstExports.ts, 1499, 12)) + +export const exp1500 = "test"; +>exp1500 : Symbol(exp1500, Decl(manyConstExports.ts, 1500, 12)) + +export const exp1501 = "test"; +>exp1501 : Symbol(exp1501, Decl(manyConstExports.ts, 1501, 12)) + +export const exp1502 = "test"; +>exp1502 : Symbol(exp1502, Decl(manyConstExports.ts, 1502, 12)) + +export const exp1503 = "test"; +>exp1503 : Symbol(exp1503, Decl(manyConstExports.ts, 1503, 12)) + +export const exp1504 = "test"; +>exp1504 : Symbol(exp1504, Decl(manyConstExports.ts, 1504, 12)) + +export const exp1505 = "test"; +>exp1505 : Symbol(exp1505, Decl(manyConstExports.ts, 1505, 12)) + +export const exp1506 = "test"; +>exp1506 : Symbol(exp1506, Decl(manyConstExports.ts, 1506, 12)) + +export const exp1507 = "test"; +>exp1507 : Symbol(exp1507, Decl(manyConstExports.ts, 1507, 12)) + +export const exp1508 = "test"; +>exp1508 : Symbol(exp1508, Decl(manyConstExports.ts, 1508, 12)) + +export const exp1509 = "test"; +>exp1509 : Symbol(exp1509, Decl(manyConstExports.ts, 1509, 12)) + +export const exp1510 = "test"; +>exp1510 : Symbol(exp1510, Decl(manyConstExports.ts, 1510, 12)) + +export const exp1511 = "test"; +>exp1511 : Symbol(exp1511, Decl(manyConstExports.ts, 1511, 12)) + +export const exp1512 = "test"; +>exp1512 : Symbol(exp1512, Decl(manyConstExports.ts, 1512, 12)) + +export const exp1513 = "test"; +>exp1513 : Symbol(exp1513, Decl(manyConstExports.ts, 1513, 12)) + +export const exp1514 = "test"; +>exp1514 : Symbol(exp1514, Decl(manyConstExports.ts, 1514, 12)) + +export const exp1515 = "test"; +>exp1515 : Symbol(exp1515, Decl(manyConstExports.ts, 1515, 12)) + +export const exp1516 = "test"; +>exp1516 : Symbol(exp1516, Decl(manyConstExports.ts, 1516, 12)) + +export const exp1517 = "test"; +>exp1517 : Symbol(exp1517, Decl(manyConstExports.ts, 1517, 12)) + +export const exp1518 = "test"; +>exp1518 : Symbol(exp1518, Decl(manyConstExports.ts, 1518, 12)) + +export const exp1519 = "test"; +>exp1519 : Symbol(exp1519, Decl(manyConstExports.ts, 1519, 12)) + +export const exp1520 = "test"; +>exp1520 : Symbol(exp1520, Decl(manyConstExports.ts, 1520, 12)) + +export const exp1521 = "test"; +>exp1521 : Symbol(exp1521, Decl(manyConstExports.ts, 1521, 12)) + +export const exp1522 = "test"; +>exp1522 : Symbol(exp1522, Decl(manyConstExports.ts, 1522, 12)) + +export const exp1523 = "test"; +>exp1523 : Symbol(exp1523, Decl(manyConstExports.ts, 1523, 12)) + +export const exp1524 = "test"; +>exp1524 : Symbol(exp1524, Decl(manyConstExports.ts, 1524, 12)) + +export const exp1525 = "test"; +>exp1525 : Symbol(exp1525, Decl(manyConstExports.ts, 1525, 12)) + +export const exp1526 = "test"; +>exp1526 : Symbol(exp1526, Decl(manyConstExports.ts, 1526, 12)) + +export const exp1527 = "test"; +>exp1527 : Symbol(exp1527, Decl(manyConstExports.ts, 1527, 12)) + +export const exp1528 = "test"; +>exp1528 : Symbol(exp1528, Decl(manyConstExports.ts, 1528, 12)) + +export const exp1529 = "test"; +>exp1529 : Symbol(exp1529, Decl(manyConstExports.ts, 1529, 12)) + +export const exp1530 = "test"; +>exp1530 : Symbol(exp1530, Decl(manyConstExports.ts, 1530, 12)) + +export const exp1531 = "test"; +>exp1531 : Symbol(exp1531, Decl(manyConstExports.ts, 1531, 12)) + +export const exp1532 = "test"; +>exp1532 : Symbol(exp1532, Decl(manyConstExports.ts, 1532, 12)) + +export const exp1533 = "test"; +>exp1533 : Symbol(exp1533, Decl(manyConstExports.ts, 1533, 12)) + +export const exp1534 = "test"; +>exp1534 : Symbol(exp1534, Decl(manyConstExports.ts, 1534, 12)) + +export const exp1535 = "test"; +>exp1535 : Symbol(exp1535, Decl(manyConstExports.ts, 1535, 12)) + +export const exp1536 = "test"; +>exp1536 : Symbol(exp1536, Decl(manyConstExports.ts, 1536, 12)) + +export const exp1537 = "test"; +>exp1537 : Symbol(exp1537, Decl(manyConstExports.ts, 1537, 12)) + +export const exp1538 = "test"; +>exp1538 : Symbol(exp1538, Decl(manyConstExports.ts, 1538, 12)) + +export const exp1539 = "test"; +>exp1539 : Symbol(exp1539, Decl(manyConstExports.ts, 1539, 12)) + +export const exp1540 = "test"; +>exp1540 : Symbol(exp1540, Decl(manyConstExports.ts, 1540, 12)) + +export const exp1541 = "test"; +>exp1541 : Symbol(exp1541, Decl(manyConstExports.ts, 1541, 12)) + +export const exp1542 = "test"; +>exp1542 : Symbol(exp1542, Decl(manyConstExports.ts, 1542, 12)) + +export const exp1543 = "test"; +>exp1543 : Symbol(exp1543, Decl(manyConstExports.ts, 1543, 12)) + +export const exp1544 = "test"; +>exp1544 : Symbol(exp1544, Decl(manyConstExports.ts, 1544, 12)) + +export const exp1545 = "test"; +>exp1545 : Symbol(exp1545, Decl(manyConstExports.ts, 1545, 12)) + +export const exp1546 = "test"; +>exp1546 : Symbol(exp1546, Decl(manyConstExports.ts, 1546, 12)) + +export const exp1547 = "test"; +>exp1547 : Symbol(exp1547, Decl(manyConstExports.ts, 1547, 12)) + +export const exp1548 = "test"; +>exp1548 : Symbol(exp1548, Decl(manyConstExports.ts, 1548, 12)) + +export const exp1549 = "test"; +>exp1549 : Symbol(exp1549, Decl(manyConstExports.ts, 1549, 12)) + +export const exp1550 = "test"; +>exp1550 : Symbol(exp1550, Decl(manyConstExports.ts, 1550, 12)) + +export const exp1551 = "test"; +>exp1551 : Symbol(exp1551, Decl(manyConstExports.ts, 1551, 12)) + +export const exp1552 = "test"; +>exp1552 : Symbol(exp1552, Decl(manyConstExports.ts, 1552, 12)) + +export const exp1553 = "test"; +>exp1553 : Symbol(exp1553, Decl(manyConstExports.ts, 1553, 12)) + +export const exp1554 = "test"; +>exp1554 : Symbol(exp1554, Decl(manyConstExports.ts, 1554, 12)) + +export const exp1555 = "test"; +>exp1555 : Symbol(exp1555, Decl(manyConstExports.ts, 1555, 12)) + +export const exp1556 = "test"; +>exp1556 : Symbol(exp1556, Decl(manyConstExports.ts, 1556, 12)) + +export const exp1557 = "test"; +>exp1557 : Symbol(exp1557, Decl(manyConstExports.ts, 1557, 12)) + +export const exp1558 = "test"; +>exp1558 : Symbol(exp1558, Decl(manyConstExports.ts, 1558, 12)) + +export const exp1559 = "test"; +>exp1559 : Symbol(exp1559, Decl(manyConstExports.ts, 1559, 12)) + +export const exp1560 = "test"; +>exp1560 : Symbol(exp1560, Decl(manyConstExports.ts, 1560, 12)) + +export const exp1561 = "test"; +>exp1561 : Symbol(exp1561, Decl(manyConstExports.ts, 1561, 12)) + +export const exp1562 = "test"; +>exp1562 : Symbol(exp1562, Decl(manyConstExports.ts, 1562, 12)) + +export const exp1563 = "test"; +>exp1563 : Symbol(exp1563, Decl(manyConstExports.ts, 1563, 12)) + +export const exp1564 = "test"; +>exp1564 : Symbol(exp1564, Decl(manyConstExports.ts, 1564, 12)) + +export const exp1565 = "test"; +>exp1565 : Symbol(exp1565, Decl(manyConstExports.ts, 1565, 12)) + +export const exp1566 = "test"; +>exp1566 : Symbol(exp1566, Decl(manyConstExports.ts, 1566, 12)) + +export const exp1567 = "test"; +>exp1567 : Symbol(exp1567, Decl(manyConstExports.ts, 1567, 12)) + +export const exp1568 = "test"; +>exp1568 : Symbol(exp1568, Decl(manyConstExports.ts, 1568, 12)) + +export const exp1569 = "test"; +>exp1569 : Symbol(exp1569, Decl(manyConstExports.ts, 1569, 12)) + +export const exp1570 = "test"; +>exp1570 : Symbol(exp1570, Decl(manyConstExports.ts, 1570, 12)) + +export const exp1571 = "test"; +>exp1571 : Symbol(exp1571, Decl(manyConstExports.ts, 1571, 12)) + +export const exp1572 = "test"; +>exp1572 : Symbol(exp1572, Decl(manyConstExports.ts, 1572, 12)) + +export const exp1573 = "test"; +>exp1573 : Symbol(exp1573, Decl(manyConstExports.ts, 1573, 12)) + +export const exp1574 = "test"; +>exp1574 : Symbol(exp1574, Decl(manyConstExports.ts, 1574, 12)) + +export const exp1575 = "test"; +>exp1575 : Symbol(exp1575, Decl(manyConstExports.ts, 1575, 12)) + +export const exp1576 = "test"; +>exp1576 : Symbol(exp1576, Decl(manyConstExports.ts, 1576, 12)) + +export const exp1577 = "test"; +>exp1577 : Symbol(exp1577, Decl(manyConstExports.ts, 1577, 12)) + +export const exp1578 = "test"; +>exp1578 : Symbol(exp1578, Decl(manyConstExports.ts, 1578, 12)) + +export const exp1579 = "test"; +>exp1579 : Symbol(exp1579, Decl(manyConstExports.ts, 1579, 12)) + +export const exp1580 = "test"; +>exp1580 : Symbol(exp1580, Decl(manyConstExports.ts, 1580, 12)) + +export const exp1581 = "test"; +>exp1581 : Symbol(exp1581, Decl(manyConstExports.ts, 1581, 12)) + +export const exp1582 = "test"; +>exp1582 : Symbol(exp1582, Decl(manyConstExports.ts, 1582, 12)) + +export const exp1583 = "test"; +>exp1583 : Symbol(exp1583, Decl(manyConstExports.ts, 1583, 12)) + +export const exp1584 = "test"; +>exp1584 : Symbol(exp1584, Decl(manyConstExports.ts, 1584, 12)) + +export const exp1585 = "test"; +>exp1585 : Symbol(exp1585, Decl(manyConstExports.ts, 1585, 12)) + +export const exp1586 = "test"; +>exp1586 : Symbol(exp1586, Decl(manyConstExports.ts, 1586, 12)) + +export const exp1587 = "test"; +>exp1587 : Symbol(exp1587, Decl(manyConstExports.ts, 1587, 12)) + +export const exp1588 = "test"; +>exp1588 : Symbol(exp1588, Decl(manyConstExports.ts, 1588, 12)) + +export const exp1589 = "test"; +>exp1589 : Symbol(exp1589, Decl(manyConstExports.ts, 1589, 12)) + +export const exp1590 = "test"; +>exp1590 : Symbol(exp1590, Decl(manyConstExports.ts, 1590, 12)) + +export const exp1591 = "test"; +>exp1591 : Symbol(exp1591, Decl(manyConstExports.ts, 1591, 12)) + +export const exp1592 = "test"; +>exp1592 : Symbol(exp1592, Decl(manyConstExports.ts, 1592, 12)) + +export const exp1593 = "test"; +>exp1593 : Symbol(exp1593, Decl(manyConstExports.ts, 1593, 12)) + +export const exp1594 = "test"; +>exp1594 : Symbol(exp1594, Decl(manyConstExports.ts, 1594, 12)) + +export const exp1595 = "test"; +>exp1595 : Symbol(exp1595, Decl(manyConstExports.ts, 1595, 12)) + +export const exp1596 = "test"; +>exp1596 : Symbol(exp1596, Decl(manyConstExports.ts, 1596, 12)) + +export const exp1597 = "test"; +>exp1597 : Symbol(exp1597, Decl(manyConstExports.ts, 1597, 12)) + +export const exp1598 = "test"; +>exp1598 : Symbol(exp1598, Decl(manyConstExports.ts, 1598, 12)) + +export const exp1599 = "test"; +>exp1599 : Symbol(exp1599, Decl(manyConstExports.ts, 1599, 12)) + +export const exp1600 = "test"; +>exp1600 : Symbol(exp1600, Decl(manyConstExports.ts, 1600, 12)) + +export const exp1601 = "test"; +>exp1601 : Symbol(exp1601, Decl(manyConstExports.ts, 1601, 12)) + +export const exp1602 = "test"; +>exp1602 : Symbol(exp1602, Decl(manyConstExports.ts, 1602, 12)) + +export const exp1603 = "test"; +>exp1603 : Symbol(exp1603, Decl(manyConstExports.ts, 1603, 12)) + +export const exp1604 = "test"; +>exp1604 : Symbol(exp1604, Decl(manyConstExports.ts, 1604, 12)) + +export const exp1605 = "test"; +>exp1605 : Symbol(exp1605, Decl(manyConstExports.ts, 1605, 12)) + +export const exp1606 = "test"; +>exp1606 : Symbol(exp1606, Decl(manyConstExports.ts, 1606, 12)) + +export const exp1607 = "test"; +>exp1607 : Symbol(exp1607, Decl(manyConstExports.ts, 1607, 12)) + +export const exp1608 = "test"; +>exp1608 : Symbol(exp1608, Decl(manyConstExports.ts, 1608, 12)) + +export const exp1609 = "test"; +>exp1609 : Symbol(exp1609, Decl(manyConstExports.ts, 1609, 12)) + +export const exp1610 = "test"; +>exp1610 : Symbol(exp1610, Decl(manyConstExports.ts, 1610, 12)) + +export const exp1611 = "test"; +>exp1611 : Symbol(exp1611, Decl(manyConstExports.ts, 1611, 12)) + +export const exp1612 = "test"; +>exp1612 : Symbol(exp1612, Decl(manyConstExports.ts, 1612, 12)) + +export const exp1613 = "test"; +>exp1613 : Symbol(exp1613, Decl(manyConstExports.ts, 1613, 12)) + +export const exp1614 = "test"; +>exp1614 : Symbol(exp1614, Decl(manyConstExports.ts, 1614, 12)) + +export const exp1615 = "test"; +>exp1615 : Symbol(exp1615, Decl(manyConstExports.ts, 1615, 12)) + +export const exp1616 = "test"; +>exp1616 : Symbol(exp1616, Decl(manyConstExports.ts, 1616, 12)) + +export const exp1617 = "test"; +>exp1617 : Symbol(exp1617, Decl(manyConstExports.ts, 1617, 12)) + +export const exp1618 = "test"; +>exp1618 : Symbol(exp1618, Decl(manyConstExports.ts, 1618, 12)) + +export const exp1619 = "test"; +>exp1619 : Symbol(exp1619, Decl(manyConstExports.ts, 1619, 12)) + +export const exp1620 = "test"; +>exp1620 : Symbol(exp1620, Decl(manyConstExports.ts, 1620, 12)) + +export const exp1621 = "test"; +>exp1621 : Symbol(exp1621, Decl(manyConstExports.ts, 1621, 12)) + +export const exp1622 = "test"; +>exp1622 : Symbol(exp1622, Decl(manyConstExports.ts, 1622, 12)) + +export const exp1623 = "test"; +>exp1623 : Symbol(exp1623, Decl(manyConstExports.ts, 1623, 12)) + +export const exp1624 = "test"; +>exp1624 : Symbol(exp1624, Decl(manyConstExports.ts, 1624, 12)) + +export const exp1625 = "test"; +>exp1625 : Symbol(exp1625, Decl(manyConstExports.ts, 1625, 12)) + +export const exp1626 = "test"; +>exp1626 : Symbol(exp1626, Decl(manyConstExports.ts, 1626, 12)) + +export const exp1627 = "test"; +>exp1627 : Symbol(exp1627, Decl(manyConstExports.ts, 1627, 12)) + +export const exp1628 = "test"; +>exp1628 : Symbol(exp1628, Decl(manyConstExports.ts, 1628, 12)) + +export const exp1629 = "test"; +>exp1629 : Symbol(exp1629, Decl(manyConstExports.ts, 1629, 12)) + +export const exp1630 = "test"; +>exp1630 : Symbol(exp1630, Decl(manyConstExports.ts, 1630, 12)) + +export const exp1631 = "test"; +>exp1631 : Symbol(exp1631, Decl(manyConstExports.ts, 1631, 12)) + +export const exp1632 = "test"; +>exp1632 : Symbol(exp1632, Decl(manyConstExports.ts, 1632, 12)) + +export const exp1633 = "test"; +>exp1633 : Symbol(exp1633, Decl(manyConstExports.ts, 1633, 12)) + +export const exp1634 = "test"; +>exp1634 : Symbol(exp1634, Decl(manyConstExports.ts, 1634, 12)) + +export const exp1635 = "test"; +>exp1635 : Symbol(exp1635, Decl(manyConstExports.ts, 1635, 12)) + +export const exp1636 = "test"; +>exp1636 : Symbol(exp1636, Decl(manyConstExports.ts, 1636, 12)) + +export const exp1637 = "test"; +>exp1637 : Symbol(exp1637, Decl(manyConstExports.ts, 1637, 12)) + +export const exp1638 = "test"; +>exp1638 : Symbol(exp1638, Decl(manyConstExports.ts, 1638, 12)) + +export const exp1639 = "test"; +>exp1639 : Symbol(exp1639, Decl(manyConstExports.ts, 1639, 12)) + +export const exp1640 = "test"; +>exp1640 : Symbol(exp1640, Decl(manyConstExports.ts, 1640, 12)) + +export const exp1641 = "test"; +>exp1641 : Symbol(exp1641, Decl(manyConstExports.ts, 1641, 12)) + +export const exp1642 = "test"; +>exp1642 : Symbol(exp1642, Decl(manyConstExports.ts, 1642, 12)) + +export const exp1643 = "test"; +>exp1643 : Symbol(exp1643, Decl(manyConstExports.ts, 1643, 12)) + +export const exp1644 = "test"; +>exp1644 : Symbol(exp1644, Decl(manyConstExports.ts, 1644, 12)) + +export const exp1645 = "test"; +>exp1645 : Symbol(exp1645, Decl(manyConstExports.ts, 1645, 12)) + +export const exp1646 = "test"; +>exp1646 : Symbol(exp1646, Decl(manyConstExports.ts, 1646, 12)) + +export const exp1647 = "test"; +>exp1647 : Symbol(exp1647, Decl(manyConstExports.ts, 1647, 12)) + +export const exp1648 = "test"; +>exp1648 : Symbol(exp1648, Decl(manyConstExports.ts, 1648, 12)) + +export const exp1649 = "test"; +>exp1649 : Symbol(exp1649, Decl(manyConstExports.ts, 1649, 12)) + +export const exp1650 = "test"; +>exp1650 : Symbol(exp1650, Decl(manyConstExports.ts, 1650, 12)) + +export const exp1651 = "test"; +>exp1651 : Symbol(exp1651, Decl(manyConstExports.ts, 1651, 12)) + +export const exp1652 = "test"; +>exp1652 : Symbol(exp1652, Decl(manyConstExports.ts, 1652, 12)) + +export const exp1653 = "test"; +>exp1653 : Symbol(exp1653, Decl(manyConstExports.ts, 1653, 12)) + +export const exp1654 = "test"; +>exp1654 : Symbol(exp1654, Decl(manyConstExports.ts, 1654, 12)) + +export const exp1655 = "test"; +>exp1655 : Symbol(exp1655, Decl(manyConstExports.ts, 1655, 12)) + +export const exp1656 = "test"; +>exp1656 : Symbol(exp1656, Decl(manyConstExports.ts, 1656, 12)) + +export const exp1657 = "test"; +>exp1657 : Symbol(exp1657, Decl(manyConstExports.ts, 1657, 12)) + +export const exp1658 = "test"; +>exp1658 : Symbol(exp1658, Decl(manyConstExports.ts, 1658, 12)) + +export const exp1659 = "test"; +>exp1659 : Symbol(exp1659, Decl(manyConstExports.ts, 1659, 12)) + +export const exp1660 = "test"; +>exp1660 : Symbol(exp1660, Decl(manyConstExports.ts, 1660, 12)) + +export const exp1661 = "test"; +>exp1661 : Symbol(exp1661, Decl(manyConstExports.ts, 1661, 12)) + +export const exp1662 = "test"; +>exp1662 : Symbol(exp1662, Decl(manyConstExports.ts, 1662, 12)) + +export const exp1663 = "test"; +>exp1663 : Symbol(exp1663, Decl(manyConstExports.ts, 1663, 12)) + +export const exp1664 = "test"; +>exp1664 : Symbol(exp1664, Decl(manyConstExports.ts, 1664, 12)) + +export const exp1665 = "test"; +>exp1665 : Symbol(exp1665, Decl(manyConstExports.ts, 1665, 12)) + +export const exp1666 = "test"; +>exp1666 : Symbol(exp1666, Decl(manyConstExports.ts, 1666, 12)) + +export const exp1667 = "test"; +>exp1667 : Symbol(exp1667, Decl(manyConstExports.ts, 1667, 12)) + +export const exp1668 = "test"; +>exp1668 : Symbol(exp1668, Decl(manyConstExports.ts, 1668, 12)) + +export const exp1669 = "test"; +>exp1669 : Symbol(exp1669, Decl(manyConstExports.ts, 1669, 12)) + +export const exp1670 = "test"; +>exp1670 : Symbol(exp1670, Decl(manyConstExports.ts, 1670, 12)) + +export const exp1671 = "test"; +>exp1671 : Symbol(exp1671, Decl(manyConstExports.ts, 1671, 12)) + +export const exp1672 = "test"; +>exp1672 : Symbol(exp1672, Decl(manyConstExports.ts, 1672, 12)) + +export const exp1673 = "test"; +>exp1673 : Symbol(exp1673, Decl(manyConstExports.ts, 1673, 12)) + +export const exp1674 = "test"; +>exp1674 : Symbol(exp1674, Decl(manyConstExports.ts, 1674, 12)) + +export const exp1675 = "test"; +>exp1675 : Symbol(exp1675, Decl(manyConstExports.ts, 1675, 12)) + +export const exp1676 = "test"; +>exp1676 : Symbol(exp1676, Decl(manyConstExports.ts, 1676, 12)) + +export const exp1677 = "test"; +>exp1677 : Symbol(exp1677, Decl(manyConstExports.ts, 1677, 12)) + +export const exp1678 = "test"; +>exp1678 : Symbol(exp1678, Decl(manyConstExports.ts, 1678, 12)) + +export const exp1679 = "test"; +>exp1679 : Symbol(exp1679, Decl(manyConstExports.ts, 1679, 12)) + +export const exp1680 = "test"; +>exp1680 : Symbol(exp1680, Decl(manyConstExports.ts, 1680, 12)) + +export const exp1681 = "test"; +>exp1681 : Symbol(exp1681, Decl(manyConstExports.ts, 1681, 12)) + +export const exp1682 = "test"; +>exp1682 : Symbol(exp1682, Decl(manyConstExports.ts, 1682, 12)) + +export const exp1683 = "test"; +>exp1683 : Symbol(exp1683, Decl(manyConstExports.ts, 1683, 12)) + +export const exp1684 = "test"; +>exp1684 : Symbol(exp1684, Decl(manyConstExports.ts, 1684, 12)) + +export const exp1685 = "test"; +>exp1685 : Symbol(exp1685, Decl(manyConstExports.ts, 1685, 12)) + +export const exp1686 = "test"; +>exp1686 : Symbol(exp1686, Decl(manyConstExports.ts, 1686, 12)) + +export const exp1687 = "test"; +>exp1687 : Symbol(exp1687, Decl(manyConstExports.ts, 1687, 12)) + +export const exp1688 = "test"; +>exp1688 : Symbol(exp1688, Decl(manyConstExports.ts, 1688, 12)) + +export const exp1689 = "test"; +>exp1689 : Symbol(exp1689, Decl(manyConstExports.ts, 1689, 12)) + +export const exp1690 = "test"; +>exp1690 : Symbol(exp1690, Decl(manyConstExports.ts, 1690, 12)) + +export const exp1691 = "test"; +>exp1691 : Symbol(exp1691, Decl(manyConstExports.ts, 1691, 12)) + +export const exp1692 = "test"; +>exp1692 : Symbol(exp1692, Decl(manyConstExports.ts, 1692, 12)) + +export const exp1693 = "test"; +>exp1693 : Symbol(exp1693, Decl(manyConstExports.ts, 1693, 12)) + +export const exp1694 = "test"; +>exp1694 : Symbol(exp1694, Decl(manyConstExports.ts, 1694, 12)) + +export const exp1695 = "test"; +>exp1695 : Symbol(exp1695, Decl(manyConstExports.ts, 1695, 12)) + +export const exp1696 = "test"; +>exp1696 : Symbol(exp1696, Decl(manyConstExports.ts, 1696, 12)) + +export const exp1697 = "test"; +>exp1697 : Symbol(exp1697, Decl(manyConstExports.ts, 1697, 12)) + +export const exp1698 = "test"; +>exp1698 : Symbol(exp1698, Decl(manyConstExports.ts, 1698, 12)) + +export const exp1699 = "test"; +>exp1699 : Symbol(exp1699, Decl(manyConstExports.ts, 1699, 12)) + +export const exp1700 = "test"; +>exp1700 : Symbol(exp1700, Decl(manyConstExports.ts, 1700, 12)) + +export const exp1701 = "test"; +>exp1701 : Symbol(exp1701, Decl(manyConstExports.ts, 1701, 12)) + +export const exp1702 = "test"; +>exp1702 : Symbol(exp1702, Decl(manyConstExports.ts, 1702, 12)) + +export const exp1703 = "test"; +>exp1703 : Symbol(exp1703, Decl(manyConstExports.ts, 1703, 12)) + +export const exp1704 = "test"; +>exp1704 : Symbol(exp1704, Decl(manyConstExports.ts, 1704, 12)) + +export const exp1705 = "test"; +>exp1705 : Symbol(exp1705, Decl(manyConstExports.ts, 1705, 12)) + +export const exp1706 = "test"; +>exp1706 : Symbol(exp1706, Decl(manyConstExports.ts, 1706, 12)) + +export const exp1707 = "test"; +>exp1707 : Symbol(exp1707, Decl(manyConstExports.ts, 1707, 12)) + +export const exp1708 = "test"; +>exp1708 : Symbol(exp1708, Decl(manyConstExports.ts, 1708, 12)) + +export const exp1709 = "test"; +>exp1709 : Symbol(exp1709, Decl(manyConstExports.ts, 1709, 12)) + +export const exp1710 = "test"; +>exp1710 : Symbol(exp1710, Decl(manyConstExports.ts, 1710, 12)) + +export const exp1711 = "test"; +>exp1711 : Symbol(exp1711, Decl(manyConstExports.ts, 1711, 12)) + +export const exp1712 = "test"; +>exp1712 : Symbol(exp1712, Decl(manyConstExports.ts, 1712, 12)) + +export const exp1713 = "test"; +>exp1713 : Symbol(exp1713, Decl(manyConstExports.ts, 1713, 12)) + +export const exp1714 = "test"; +>exp1714 : Symbol(exp1714, Decl(manyConstExports.ts, 1714, 12)) + +export const exp1715 = "test"; +>exp1715 : Symbol(exp1715, Decl(manyConstExports.ts, 1715, 12)) + +export const exp1716 = "test"; +>exp1716 : Symbol(exp1716, Decl(manyConstExports.ts, 1716, 12)) + +export const exp1717 = "test"; +>exp1717 : Symbol(exp1717, Decl(manyConstExports.ts, 1717, 12)) + +export const exp1718 = "test"; +>exp1718 : Symbol(exp1718, Decl(manyConstExports.ts, 1718, 12)) + +export const exp1719 = "test"; +>exp1719 : Symbol(exp1719, Decl(manyConstExports.ts, 1719, 12)) + +export const exp1720 = "test"; +>exp1720 : Symbol(exp1720, Decl(manyConstExports.ts, 1720, 12)) + +export const exp1721 = "test"; +>exp1721 : Symbol(exp1721, Decl(manyConstExports.ts, 1721, 12)) + +export const exp1722 = "test"; +>exp1722 : Symbol(exp1722, Decl(manyConstExports.ts, 1722, 12)) + +export const exp1723 = "test"; +>exp1723 : Symbol(exp1723, Decl(manyConstExports.ts, 1723, 12)) + +export const exp1724 = "test"; +>exp1724 : Symbol(exp1724, Decl(manyConstExports.ts, 1724, 12)) + +export const exp1725 = "test"; +>exp1725 : Symbol(exp1725, Decl(manyConstExports.ts, 1725, 12)) + +export const exp1726 = "test"; +>exp1726 : Symbol(exp1726, Decl(manyConstExports.ts, 1726, 12)) + +export const exp1727 = "test"; +>exp1727 : Symbol(exp1727, Decl(manyConstExports.ts, 1727, 12)) + +export const exp1728 = "test"; +>exp1728 : Symbol(exp1728, Decl(manyConstExports.ts, 1728, 12)) + +export const exp1729 = "test"; +>exp1729 : Symbol(exp1729, Decl(manyConstExports.ts, 1729, 12)) + +export const exp1730 = "test"; +>exp1730 : Symbol(exp1730, Decl(manyConstExports.ts, 1730, 12)) + +export const exp1731 = "test"; +>exp1731 : Symbol(exp1731, Decl(manyConstExports.ts, 1731, 12)) + +export const exp1732 = "test"; +>exp1732 : Symbol(exp1732, Decl(manyConstExports.ts, 1732, 12)) + +export const exp1733 = "test"; +>exp1733 : Symbol(exp1733, Decl(manyConstExports.ts, 1733, 12)) + +export const exp1734 = "test"; +>exp1734 : Symbol(exp1734, Decl(manyConstExports.ts, 1734, 12)) + +export const exp1735 = "test"; +>exp1735 : Symbol(exp1735, Decl(manyConstExports.ts, 1735, 12)) + +export const exp1736 = "test"; +>exp1736 : Symbol(exp1736, Decl(manyConstExports.ts, 1736, 12)) + +export const exp1737 = "test"; +>exp1737 : Symbol(exp1737, Decl(manyConstExports.ts, 1737, 12)) + +export const exp1738 = "test"; +>exp1738 : Symbol(exp1738, Decl(manyConstExports.ts, 1738, 12)) + +export const exp1739 = "test"; +>exp1739 : Symbol(exp1739, Decl(manyConstExports.ts, 1739, 12)) + +export const exp1740 = "test"; +>exp1740 : Symbol(exp1740, Decl(manyConstExports.ts, 1740, 12)) + +export const exp1741 = "test"; +>exp1741 : Symbol(exp1741, Decl(manyConstExports.ts, 1741, 12)) + +export const exp1742 = "test"; +>exp1742 : Symbol(exp1742, Decl(manyConstExports.ts, 1742, 12)) + +export const exp1743 = "test"; +>exp1743 : Symbol(exp1743, Decl(manyConstExports.ts, 1743, 12)) + +export const exp1744 = "test"; +>exp1744 : Symbol(exp1744, Decl(manyConstExports.ts, 1744, 12)) + +export const exp1745 = "test"; +>exp1745 : Symbol(exp1745, Decl(manyConstExports.ts, 1745, 12)) + +export const exp1746 = "test"; +>exp1746 : Symbol(exp1746, Decl(manyConstExports.ts, 1746, 12)) + +export const exp1747 = "test"; +>exp1747 : Symbol(exp1747, Decl(manyConstExports.ts, 1747, 12)) + +export const exp1748 = "test"; +>exp1748 : Symbol(exp1748, Decl(manyConstExports.ts, 1748, 12)) + +export const exp1749 = "test"; +>exp1749 : Symbol(exp1749, Decl(manyConstExports.ts, 1749, 12)) + +export const exp1750 = "test"; +>exp1750 : Symbol(exp1750, Decl(manyConstExports.ts, 1750, 12)) + +export const exp1751 = "test"; +>exp1751 : Symbol(exp1751, Decl(manyConstExports.ts, 1751, 12)) + +export const exp1752 = "test"; +>exp1752 : Symbol(exp1752, Decl(manyConstExports.ts, 1752, 12)) + +export const exp1753 = "test"; +>exp1753 : Symbol(exp1753, Decl(manyConstExports.ts, 1753, 12)) + +export const exp1754 = "test"; +>exp1754 : Symbol(exp1754, Decl(manyConstExports.ts, 1754, 12)) + +export const exp1755 = "test"; +>exp1755 : Symbol(exp1755, Decl(manyConstExports.ts, 1755, 12)) + +export const exp1756 = "test"; +>exp1756 : Symbol(exp1756, Decl(manyConstExports.ts, 1756, 12)) + +export const exp1757 = "test"; +>exp1757 : Symbol(exp1757, Decl(manyConstExports.ts, 1757, 12)) + +export const exp1758 = "test"; +>exp1758 : Symbol(exp1758, Decl(manyConstExports.ts, 1758, 12)) + +export const exp1759 = "test"; +>exp1759 : Symbol(exp1759, Decl(manyConstExports.ts, 1759, 12)) + +export const exp1760 = "test"; +>exp1760 : Symbol(exp1760, Decl(manyConstExports.ts, 1760, 12)) + +export const exp1761 = "test"; +>exp1761 : Symbol(exp1761, Decl(manyConstExports.ts, 1761, 12)) + +export const exp1762 = "test"; +>exp1762 : Symbol(exp1762, Decl(manyConstExports.ts, 1762, 12)) + +export const exp1763 = "test"; +>exp1763 : Symbol(exp1763, Decl(manyConstExports.ts, 1763, 12)) + +export const exp1764 = "test"; +>exp1764 : Symbol(exp1764, Decl(manyConstExports.ts, 1764, 12)) + +export const exp1765 = "test"; +>exp1765 : Symbol(exp1765, Decl(manyConstExports.ts, 1765, 12)) + +export const exp1766 = "test"; +>exp1766 : Symbol(exp1766, Decl(manyConstExports.ts, 1766, 12)) + +export const exp1767 = "test"; +>exp1767 : Symbol(exp1767, Decl(manyConstExports.ts, 1767, 12)) + +export const exp1768 = "test"; +>exp1768 : Symbol(exp1768, Decl(manyConstExports.ts, 1768, 12)) + +export const exp1769 = "test"; +>exp1769 : Symbol(exp1769, Decl(manyConstExports.ts, 1769, 12)) + +export const exp1770 = "test"; +>exp1770 : Symbol(exp1770, Decl(manyConstExports.ts, 1770, 12)) + +export const exp1771 = "test"; +>exp1771 : Symbol(exp1771, Decl(manyConstExports.ts, 1771, 12)) + +export const exp1772 = "test"; +>exp1772 : Symbol(exp1772, Decl(manyConstExports.ts, 1772, 12)) + +export const exp1773 = "test"; +>exp1773 : Symbol(exp1773, Decl(manyConstExports.ts, 1773, 12)) + +export const exp1774 = "test"; +>exp1774 : Symbol(exp1774, Decl(manyConstExports.ts, 1774, 12)) + +export const exp1775 = "test"; +>exp1775 : Symbol(exp1775, Decl(manyConstExports.ts, 1775, 12)) + +export const exp1776 = "test"; +>exp1776 : Symbol(exp1776, Decl(manyConstExports.ts, 1776, 12)) + +export const exp1777 = "test"; +>exp1777 : Symbol(exp1777, Decl(manyConstExports.ts, 1777, 12)) + +export const exp1778 = "test"; +>exp1778 : Symbol(exp1778, Decl(manyConstExports.ts, 1778, 12)) + +export const exp1779 = "test"; +>exp1779 : Symbol(exp1779, Decl(manyConstExports.ts, 1779, 12)) + +export const exp1780 = "test"; +>exp1780 : Symbol(exp1780, Decl(manyConstExports.ts, 1780, 12)) + +export const exp1781 = "test"; +>exp1781 : Symbol(exp1781, Decl(manyConstExports.ts, 1781, 12)) + +export const exp1782 = "test"; +>exp1782 : Symbol(exp1782, Decl(manyConstExports.ts, 1782, 12)) + +export const exp1783 = "test"; +>exp1783 : Symbol(exp1783, Decl(manyConstExports.ts, 1783, 12)) + +export const exp1784 = "test"; +>exp1784 : Symbol(exp1784, Decl(manyConstExports.ts, 1784, 12)) + +export const exp1785 = "test"; +>exp1785 : Symbol(exp1785, Decl(manyConstExports.ts, 1785, 12)) + +export const exp1786 = "test"; +>exp1786 : Symbol(exp1786, Decl(manyConstExports.ts, 1786, 12)) + +export const exp1787 = "test"; +>exp1787 : Symbol(exp1787, Decl(manyConstExports.ts, 1787, 12)) + +export const exp1788 = "test"; +>exp1788 : Symbol(exp1788, Decl(manyConstExports.ts, 1788, 12)) + +export const exp1789 = "test"; +>exp1789 : Symbol(exp1789, Decl(manyConstExports.ts, 1789, 12)) + +export const exp1790 = "test"; +>exp1790 : Symbol(exp1790, Decl(manyConstExports.ts, 1790, 12)) + +export const exp1791 = "test"; +>exp1791 : Symbol(exp1791, Decl(manyConstExports.ts, 1791, 12)) + +export const exp1792 = "test"; +>exp1792 : Symbol(exp1792, Decl(manyConstExports.ts, 1792, 12)) + +export const exp1793 = "test"; +>exp1793 : Symbol(exp1793, Decl(manyConstExports.ts, 1793, 12)) + +export const exp1794 = "test"; +>exp1794 : Symbol(exp1794, Decl(manyConstExports.ts, 1794, 12)) + +export const exp1795 = "test"; +>exp1795 : Symbol(exp1795, Decl(manyConstExports.ts, 1795, 12)) + +export const exp1796 = "test"; +>exp1796 : Symbol(exp1796, Decl(manyConstExports.ts, 1796, 12)) + +export const exp1797 = "test"; +>exp1797 : Symbol(exp1797, Decl(manyConstExports.ts, 1797, 12)) + +export const exp1798 = "test"; +>exp1798 : Symbol(exp1798, Decl(manyConstExports.ts, 1798, 12)) + +export const exp1799 = "test"; +>exp1799 : Symbol(exp1799, Decl(manyConstExports.ts, 1799, 12)) + +export const exp1800 = "test"; +>exp1800 : Symbol(exp1800, Decl(manyConstExports.ts, 1800, 12)) + +export const exp1801 = "test"; +>exp1801 : Symbol(exp1801, Decl(manyConstExports.ts, 1801, 12)) + +export const exp1802 = "test"; +>exp1802 : Symbol(exp1802, Decl(manyConstExports.ts, 1802, 12)) + +export const exp1803 = "test"; +>exp1803 : Symbol(exp1803, Decl(manyConstExports.ts, 1803, 12)) + +export const exp1804 = "test"; +>exp1804 : Symbol(exp1804, Decl(manyConstExports.ts, 1804, 12)) + +export const exp1805 = "test"; +>exp1805 : Symbol(exp1805, Decl(manyConstExports.ts, 1805, 12)) + +export const exp1806 = "test"; +>exp1806 : Symbol(exp1806, Decl(manyConstExports.ts, 1806, 12)) + +export const exp1807 = "test"; +>exp1807 : Symbol(exp1807, Decl(manyConstExports.ts, 1807, 12)) + +export const exp1808 = "test"; +>exp1808 : Symbol(exp1808, Decl(manyConstExports.ts, 1808, 12)) + +export const exp1809 = "test"; +>exp1809 : Symbol(exp1809, Decl(manyConstExports.ts, 1809, 12)) + +export const exp1810 = "test"; +>exp1810 : Symbol(exp1810, Decl(manyConstExports.ts, 1810, 12)) + +export const exp1811 = "test"; +>exp1811 : Symbol(exp1811, Decl(manyConstExports.ts, 1811, 12)) + +export const exp1812 = "test"; +>exp1812 : Symbol(exp1812, Decl(manyConstExports.ts, 1812, 12)) + +export const exp1813 = "test"; +>exp1813 : Symbol(exp1813, Decl(manyConstExports.ts, 1813, 12)) + +export const exp1814 = "test"; +>exp1814 : Symbol(exp1814, Decl(manyConstExports.ts, 1814, 12)) + +export const exp1815 = "test"; +>exp1815 : Symbol(exp1815, Decl(manyConstExports.ts, 1815, 12)) + +export const exp1816 = "test"; +>exp1816 : Symbol(exp1816, Decl(manyConstExports.ts, 1816, 12)) + +export const exp1817 = "test"; +>exp1817 : Symbol(exp1817, Decl(manyConstExports.ts, 1817, 12)) + +export const exp1818 = "test"; +>exp1818 : Symbol(exp1818, Decl(manyConstExports.ts, 1818, 12)) + +export const exp1819 = "test"; +>exp1819 : Symbol(exp1819, Decl(manyConstExports.ts, 1819, 12)) + +export const exp1820 = "test"; +>exp1820 : Symbol(exp1820, Decl(manyConstExports.ts, 1820, 12)) + +export const exp1821 = "test"; +>exp1821 : Symbol(exp1821, Decl(manyConstExports.ts, 1821, 12)) + +export const exp1822 = "test"; +>exp1822 : Symbol(exp1822, Decl(manyConstExports.ts, 1822, 12)) + +export const exp1823 = "test"; +>exp1823 : Symbol(exp1823, Decl(manyConstExports.ts, 1823, 12)) + +export const exp1824 = "test"; +>exp1824 : Symbol(exp1824, Decl(manyConstExports.ts, 1824, 12)) + +export const exp1825 = "test"; +>exp1825 : Symbol(exp1825, Decl(manyConstExports.ts, 1825, 12)) + +export const exp1826 = "test"; +>exp1826 : Symbol(exp1826, Decl(manyConstExports.ts, 1826, 12)) + +export const exp1827 = "test"; +>exp1827 : Symbol(exp1827, Decl(manyConstExports.ts, 1827, 12)) + +export const exp1828 = "test"; +>exp1828 : Symbol(exp1828, Decl(manyConstExports.ts, 1828, 12)) + +export const exp1829 = "test"; +>exp1829 : Symbol(exp1829, Decl(manyConstExports.ts, 1829, 12)) + +export const exp1830 = "test"; +>exp1830 : Symbol(exp1830, Decl(manyConstExports.ts, 1830, 12)) + +export const exp1831 = "test"; +>exp1831 : Symbol(exp1831, Decl(manyConstExports.ts, 1831, 12)) + +export const exp1832 = "test"; +>exp1832 : Symbol(exp1832, Decl(manyConstExports.ts, 1832, 12)) + +export const exp1833 = "test"; +>exp1833 : Symbol(exp1833, Decl(manyConstExports.ts, 1833, 12)) + +export const exp1834 = "test"; +>exp1834 : Symbol(exp1834, Decl(manyConstExports.ts, 1834, 12)) + +export const exp1835 = "test"; +>exp1835 : Symbol(exp1835, Decl(manyConstExports.ts, 1835, 12)) + +export const exp1836 = "test"; +>exp1836 : Symbol(exp1836, Decl(manyConstExports.ts, 1836, 12)) + +export const exp1837 = "test"; +>exp1837 : Symbol(exp1837, Decl(manyConstExports.ts, 1837, 12)) + +export const exp1838 = "test"; +>exp1838 : Symbol(exp1838, Decl(manyConstExports.ts, 1838, 12)) + +export const exp1839 = "test"; +>exp1839 : Symbol(exp1839, Decl(manyConstExports.ts, 1839, 12)) + +export const exp1840 = "test"; +>exp1840 : Symbol(exp1840, Decl(manyConstExports.ts, 1840, 12)) + +export const exp1841 = "test"; +>exp1841 : Symbol(exp1841, Decl(manyConstExports.ts, 1841, 12)) + +export const exp1842 = "test"; +>exp1842 : Symbol(exp1842, Decl(manyConstExports.ts, 1842, 12)) + +export const exp1843 = "test"; +>exp1843 : Symbol(exp1843, Decl(manyConstExports.ts, 1843, 12)) + +export const exp1844 = "test"; +>exp1844 : Symbol(exp1844, Decl(manyConstExports.ts, 1844, 12)) + +export const exp1845 = "test"; +>exp1845 : Symbol(exp1845, Decl(manyConstExports.ts, 1845, 12)) + +export const exp1846 = "test"; +>exp1846 : Symbol(exp1846, Decl(manyConstExports.ts, 1846, 12)) + +export const exp1847 = "test"; +>exp1847 : Symbol(exp1847, Decl(manyConstExports.ts, 1847, 12)) + +export const exp1848 = "test"; +>exp1848 : Symbol(exp1848, Decl(manyConstExports.ts, 1848, 12)) + +export const exp1849 = "test"; +>exp1849 : Symbol(exp1849, Decl(manyConstExports.ts, 1849, 12)) + +export const exp1850 = "test"; +>exp1850 : Symbol(exp1850, Decl(manyConstExports.ts, 1850, 12)) + +export const exp1851 = "test"; +>exp1851 : Symbol(exp1851, Decl(manyConstExports.ts, 1851, 12)) + +export const exp1852 = "test"; +>exp1852 : Symbol(exp1852, Decl(manyConstExports.ts, 1852, 12)) + +export const exp1853 = "test"; +>exp1853 : Symbol(exp1853, Decl(manyConstExports.ts, 1853, 12)) + +export const exp1854 = "test"; +>exp1854 : Symbol(exp1854, Decl(manyConstExports.ts, 1854, 12)) + +export const exp1855 = "test"; +>exp1855 : Symbol(exp1855, Decl(manyConstExports.ts, 1855, 12)) + +export const exp1856 = "test"; +>exp1856 : Symbol(exp1856, Decl(manyConstExports.ts, 1856, 12)) + +export const exp1857 = "test"; +>exp1857 : Symbol(exp1857, Decl(manyConstExports.ts, 1857, 12)) + +export const exp1858 = "test"; +>exp1858 : Symbol(exp1858, Decl(manyConstExports.ts, 1858, 12)) + +export const exp1859 = "test"; +>exp1859 : Symbol(exp1859, Decl(manyConstExports.ts, 1859, 12)) + +export const exp1860 = "test"; +>exp1860 : Symbol(exp1860, Decl(manyConstExports.ts, 1860, 12)) + +export const exp1861 = "test"; +>exp1861 : Symbol(exp1861, Decl(manyConstExports.ts, 1861, 12)) + +export const exp1862 = "test"; +>exp1862 : Symbol(exp1862, Decl(manyConstExports.ts, 1862, 12)) + +export const exp1863 = "test"; +>exp1863 : Symbol(exp1863, Decl(manyConstExports.ts, 1863, 12)) + +export const exp1864 = "test"; +>exp1864 : Symbol(exp1864, Decl(manyConstExports.ts, 1864, 12)) + +export const exp1865 = "test"; +>exp1865 : Symbol(exp1865, Decl(manyConstExports.ts, 1865, 12)) + +export const exp1866 = "test"; +>exp1866 : Symbol(exp1866, Decl(manyConstExports.ts, 1866, 12)) + +export const exp1867 = "test"; +>exp1867 : Symbol(exp1867, Decl(manyConstExports.ts, 1867, 12)) + +export const exp1868 = "test"; +>exp1868 : Symbol(exp1868, Decl(manyConstExports.ts, 1868, 12)) + +export const exp1869 = "test"; +>exp1869 : Symbol(exp1869, Decl(manyConstExports.ts, 1869, 12)) + +export const exp1870 = "test"; +>exp1870 : Symbol(exp1870, Decl(manyConstExports.ts, 1870, 12)) + +export const exp1871 = "test"; +>exp1871 : Symbol(exp1871, Decl(manyConstExports.ts, 1871, 12)) + +export const exp1872 = "test"; +>exp1872 : Symbol(exp1872, Decl(manyConstExports.ts, 1872, 12)) + +export const exp1873 = "test"; +>exp1873 : Symbol(exp1873, Decl(manyConstExports.ts, 1873, 12)) + +export const exp1874 = "test"; +>exp1874 : Symbol(exp1874, Decl(manyConstExports.ts, 1874, 12)) + +export const exp1875 = "test"; +>exp1875 : Symbol(exp1875, Decl(manyConstExports.ts, 1875, 12)) + +export const exp1876 = "test"; +>exp1876 : Symbol(exp1876, Decl(manyConstExports.ts, 1876, 12)) + +export const exp1877 = "test"; +>exp1877 : Symbol(exp1877, Decl(manyConstExports.ts, 1877, 12)) + +export const exp1878 = "test"; +>exp1878 : Symbol(exp1878, Decl(manyConstExports.ts, 1878, 12)) + +export const exp1879 = "test"; +>exp1879 : Symbol(exp1879, Decl(manyConstExports.ts, 1879, 12)) + +export const exp1880 = "test"; +>exp1880 : Symbol(exp1880, Decl(manyConstExports.ts, 1880, 12)) + +export const exp1881 = "test"; +>exp1881 : Symbol(exp1881, Decl(manyConstExports.ts, 1881, 12)) + +export const exp1882 = "test"; +>exp1882 : Symbol(exp1882, Decl(manyConstExports.ts, 1882, 12)) + +export const exp1883 = "test"; +>exp1883 : Symbol(exp1883, Decl(manyConstExports.ts, 1883, 12)) + +export const exp1884 = "test"; +>exp1884 : Symbol(exp1884, Decl(manyConstExports.ts, 1884, 12)) + +export const exp1885 = "test"; +>exp1885 : Symbol(exp1885, Decl(manyConstExports.ts, 1885, 12)) + +export const exp1886 = "test"; +>exp1886 : Symbol(exp1886, Decl(manyConstExports.ts, 1886, 12)) + +export const exp1887 = "test"; +>exp1887 : Symbol(exp1887, Decl(manyConstExports.ts, 1887, 12)) + +export const exp1888 = "test"; +>exp1888 : Symbol(exp1888, Decl(manyConstExports.ts, 1888, 12)) + +export const exp1889 = "test"; +>exp1889 : Symbol(exp1889, Decl(manyConstExports.ts, 1889, 12)) + +export const exp1890 = "test"; +>exp1890 : Symbol(exp1890, Decl(manyConstExports.ts, 1890, 12)) + +export const exp1891 = "test"; +>exp1891 : Symbol(exp1891, Decl(manyConstExports.ts, 1891, 12)) + +export const exp1892 = "test"; +>exp1892 : Symbol(exp1892, Decl(manyConstExports.ts, 1892, 12)) + +export const exp1893 = "test"; +>exp1893 : Symbol(exp1893, Decl(manyConstExports.ts, 1893, 12)) + +export const exp1894 = "test"; +>exp1894 : Symbol(exp1894, Decl(manyConstExports.ts, 1894, 12)) + +export const exp1895 = "test"; +>exp1895 : Symbol(exp1895, Decl(manyConstExports.ts, 1895, 12)) + +export const exp1896 = "test"; +>exp1896 : Symbol(exp1896, Decl(manyConstExports.ts, 1896, 12)) + +export const exp1897 = "test"; +>exp1897 : Symbol(exp1897, Decl(manyConstExports.ts, 1897, 12)) + +export const exp1898 = "test"; +>exp1898 : Symbol(exp1898, Decl(manyConstExports.ts, 1898, 12)) + +export const exp1899 = "test"; +>exp1899 : Symbol(exp1899, Decl(manyConstExports.ts, 1899, 12)) + +export const exp1900 = "test"; +>exp1900 : Symbol(exp1900, Decl(manyConstExports.ts, 1900, 12)) + +export const exp1901 = "test"; +>exp1901 : Symbol(exp1901, Decl(manyConstExports.ts, 1901, 12)) + +export const exp1902 = "test"; +>exp1902 : Symbol(exp1902, Decl(manyConstExports.ts, 1902, 12)) + +export const exp1903 = "test"; +>exp1903 : Symbol(exp1903, Decl(manyConstExports.ts, 1903, 12)) + +export const exp1904 = "test"; +>exp1904 : Symbol(exp1904, Decl(manyConstExports.ts, 1904, 12)) + +export const exp1905 = "test"; +>exp1905 : Symbol(exp1905, Decl(manyConstExports.ts, 1905, 12)) + +export const exp1906 = "test"; +>exp1906 : Symbol(exp1906, Decl(manyConstExports.ts, 1906, 12)) + +export const exp1907 = "test"; +>exp1907 : Symbol(exp1907, Decl(manyConstExports.ts, 1907, 12)) + +export const exp1908 = "test"; +>exp1908 : Symbol(exp1908, Decl(manyConstExports.ts, 1908, 12)) + +export const exp1909 = "test"; +>exp1909 : Symbol(exp1909, Decl(manyConstExports.ts, 1909, 12)) + +export const exp1910 = "test"; +>exp1910 : Symbol(exp1910, Decl(manyConstExports.ts, 1910, 12)) + +export const exp1911 = "test"; +>exp1911 : Symbol(exp1911, Decl(manyConstExports.ts, 1911, 12)) + +export const exp1912 = "test"; +>exp1912 : Symbol(exp1912, Decl(manyConstExports.ts, 1912, 12)) + +export const exp1913 = "test"; +>exp1913 : Symbol(exp1913, Decl(manyConstExports.ts, 1913, 12)) + +export const exp1914 = "test"; +>exp1914 : Symbol(exp1914, Decl(manyConstExports.ts, 1914, 12)) + +export const exp1915 = "test"; +>exp1915 : Symbol(exp1915, Decl(manyConstExports.ts, 1915, 12)) + +export const exp1916 = "test"; +>exp1916 : Symbol(exp1916, Decl(manyConstExports.ts, 1916, 12)) + +export const exp1917 = "test"; +>exp1917 : Symbol(exp1917, Decl(manyConstExports.ts, 1917, 12)) + +export const exp1918 = "test"; +>exp1918 : Symbol(exp1918, Decl(manyConstExports.ts, 1918, 12)) + +export const exp1919 = "test"; +>exp1919 : Symbol(exp1919, Decl(manyConstExports.ts, 1919, 12)) + +export const exp1920 = "test"; +>exp1920 : Symbol(exp1920, Decl(manyConstExports.ts, 1920, 12)) + +export const exp1921 = "test"; +>exp1921 : Symbol(exp1921, Decl(manyConstExports.ts, 1921, 12)) + +export const exp1922 = "test"; +>exp1922 : Symbol(exp1922, Decl(manyConstExports.ts, 1922, 12)) + +export const exp1923 = "test"; +>exp1923 : Symbol(exp1923, Decl(manyConstExports.ts, 1923, 12)) + +export const exp1924 = "test"; +>exp1924 : Symbol(exp1924, Decl(manyConstExports.ts, 1924, 12)) + +export const exp1925 = "test"; +>exp1925 : Symbol(exp1925, Decl(manyConstExports.ts, 1925, 12)) + +export const exp1926 = "test"; +>exp1926 : Symbol(exp1926, Decl(manyConstExports.ts, 1926, 12)) + +export const exp1927 = "test"; +>exp1927 : Symbol(exp1927, Decl(manyConstExports.ts, 1927, 12)) + +export const exp1928 = "test"; +>exp1928 : Symbol(exp1928, Decl(manyConstExports.ts, 1928, 12)) + +export const exp1929 = "test"; +>exp1929 : Symbol(exp1929, Decl(manyConstExports.ts, 1929, 12)) + +export const exp1930 = "test"; +>exp1930 : Symbol(exp1930, Decl(manyConstExports.ts, 1930, 12)) + +export const exp1931 = "test"; +>exp1931 : Symbol(exp1931, Decl(manyConstExports.ts, 1931, 12)) + +export const exp1932 = "test"; +>exp1932 : Symbol(exp1932, Decl(manyConstExports.ts, 1932, 12)) + +export const exp1933 = "test"; +>exp1933 : Symbol(exp1933, Decl(manyConstExports.ts, 1933, 12)) + +export const exp1934 = "test"; +>exp1934 : Symbol(exp1934, Decl(manyConstExports.ts, 1934, 12)) + +export const exp1935 = "test"; +>exp1935 : Symbol(exp1935, Decl(manyConstExports.ts, 1935, 12)) + +export const exp1936 = "test"; +>exp1936 : Symbol(exp1936, Decl(manyConstExports.ts, 1936, 12)) + +export const exp1937 = "test"; +>exp1937 : Symbol(exp1937, Decl(manyConstExports.ts, 1937, 12)) + +export const exp1938 = "test"; +>exp1938 : Symbol(exp1938, Decl(manyConstExports.ts, 1938, 12)) + +export const exp1939 = "test"; +>exp1939 : Symbol(exp1939, Decl(manyConstExports.ts, 1939, 12)) + +export const exp1940 = "test"; +>exp1940 : Symbol(exp1940, Decl(manyConstExports.ts, 1940, 12)) + +export const exp1941 = "test"; +>exp1941 : Symbol(exp1941, Decl(manyConstExports.ts, 1941, 12)) + +export const exp1942 = "test"; +>exp1942 : Symbol(exp1942, Decl(manyConstExports.ts, 1942, 12)) + +export const exp1943 = "test"; +>exp1943 : Symbol(exp1943, Decl(manyConstExports.ts, 1943, 12)) + +export const exp1944 = "test"; +>exp1944 : Symbol(exp1944, Decl(manyConstExports.ts, 1944, 12)) + +export const exp1945 = "test"; +>exp1945 : Symbol(exp1945, Decl(manyConstExports.ts, 1945, 12)) + +export const exp1946 = "test"; +>exp1946 : Symbol(exp1946, Decl(manyConstExports.ts, 1946, 12)) + +export const exp1947 = "test"; +>exp1947 : Symbol(exp1947, Decl(manyConstExports.ts, 1947, 12)) + +export const exp1948 = "test"; +>exp1948 : Symbol(exp1948, Decl(manyConstExports.ts, 1948, 12)) + +export const exp1949 = "test"; +>exp1949 : Symbol(exp1949, Decl(manyConstExports.ts, 1949, 12)) + +export const exp1950 = "test"; +>exp1950 : Symbol(exp1950, Decl(manyConstExports.ts, 1950, 12)) + +export const exp1951 = "test"; +>exp1951 : Symbol(exp1951, Decl(manyConstExports.ts, 1951, 12)) + +export const exp1952 = "test"; +>exp1952 : Symbol(exp1952, Decl(manyConstExports.ts, 1952, 12)) + +export const exp1953 = "test"; +>exp1953 : Symbol(exp1953, Decl(manyConstExports.ts, 1953, 12)) + +export const exp1954 = "test"; +>exp1954 : Symbol(exp1954, Decl(manyConstExports.ts, 1954, 12)) + +export const exp1955 = "test"; +>exp1955 : Symbol(exp1955, Decl(manyConstExports.ts, 1955, 12)) + +export const exp1956 = "test"; +>exp1956 : Symbol(exp1956, Decl(manyConstExports.ts, 1956, 12)) + +export const exp1957 = "test"; +>exp1957 : Symbol(exp1957, Decl(manyConstExports.ts, 1957, 12)) + +export const exp1958 = "test"; +>exp1958 : Symbol(exp1958, Decl(manyConstExports.ts, 1958, 12)) + +export const exp1959 = "test"; +>exp1959 : Symbol(exp1959, Decl(manyConstExports.ts, 1959, 12)) + +export const exp1960 = "test"; +>exp1960 : Symbol(exp1960, Decl(manyConstExports.ts, 1960, 12)) + +export const exp1961 = "test"; +>exp1961 : Symbol(exp1961, Decl(manyConstExports.ts, 1961, 12)) + +export const exp1962 = "test"; +>exp1962 : Symbol(exp1962, Decl(manyConstExports.ts, 1962, 12)) + +export const exp1963 = "test"; +>exp1963 : Symbol(exp1963, Decl(manyConstExports.ts, 1963, 12)) + +export const exp1964 = "test"; +>exp1964 : Symbol(exp1964, Decl(manyConstExports.ts, 1964, 12)) + +export const exp1965 = "test"; +>exp1965 : Symbol(exp1965, Decl(manyConstExports.ts, 1965, 12)) + +export const exp1966 = "test"; +>exp1966 : Symbol(exp1966, Decl(manyConstExports.ts, 1966, 12)) + +export const exp1967 = "test"; +>exp1967 : Symbol(exp1967, Decl(manyConstExports.ts, 1967, 12)) + +export const exp1968 = "test"; +>exp1968 : Symbol(exp1968, Decl(manyConstExports.ts, 1968, 12)) + +export const exp1969 = "test"; +>exp1969 : Symbol(exp1969, Decl(manyConstExports.ts, 1969, 12)) + +export const exp1970 = "test"; +>exp1970 : Symbol(exp1970, Decl(manyConstExports.ts, 1970, 12)) + +export const exp1971 = "test"; +>exp1971 : Symbol(exp1971, Decl(manyConstExports.ts, 1971, 12)) + +export const exp1972 = "test"; +>exp1972 : Symbol(exp1972, Decl(manyConstExports.ts, 1972, 12)) + +export const exp1973 = "test"; +>exp1973 : Symbol(exp1973, Decl(manyConstExports.ts, 1973, 12)) + +export const exp1974 = "test"; +>exp1974 : Symbol(exp1974, Decl(manyConstExports.ts, 1974, 12)) + +export const exp1975 = "test"; +>exp1975 : Symbol(exp1975, Decl(manyConstExports.ts, 1975, 12)) + +export const exp1976 = "test"; +>exp1976 : Symbol(exp1976, Decl(manyConstExports.ts, 1976, 12)) + +export const exp1977 = "test"; +>exp1977 : Symbol(exp1977, Decl(manyConstExports.ts, 1977, 12)) + +export const exp1978 = "test"; +>exp1978 : Symbol(exp1978, Decl(manyConstExports.ts, 1978, 12)) + +export const exp1979 = "test"; +>exp1979 : Symbol(exp1979, Decl(manyConstExports.ts, 1979, 12)) + +export const exp1980 = "test"; +>exp1980 : Symbol(exp1980, Decl(manyConstExports.ts, 1980, 12)) + +export const exp1981 = "test"; +>exp1981 : Symbol(exp1981, Decl(manyConstExports.ts, 1981, 12)) + +export const exp1982 = "test"; +>exp1982 : Symbol(exp1982, Decl(manyConstExports.ts, 1982, 12)) + +export const exp1983 = "test"; +>exp1983 : Symbol(exp1983, Decl(manyConstExports.ts, 1983, 12)) + +export const exp1984 = "test"; +>exp1984 : Symbol(exp1984, Decl(manyConstExports.ts, 1984, 12)) + +export const exp1985 = "test"; +>exp1985 : Symbol(exp1985, Decl(manyConstExports.ts, 1985, 12)) + +export const exp1986 = "test"; +>exp1986 : Symbol(exp1986, Decl(manyConstExports.ts, 1986, 12)) + +export const exp1987 = "test"; +>exp1987 : Symbol(exp1987, Decl(manyConstExports.ts, 1987, 12)) + +export const exp1988 = "test"; +>exp1988 : Symbol(exp1988, Decl(manyConstExports.ts, 1988, 12)) + +export const exp1989 = "test"; +>exp1989 : Symbol(exp1989, Decl(manyConstExports.ts, 1989, 12)) + +export const exp1990 = "test"; +>exp1990 : Symbol(exp1990, Decl(manyConstExports.ts, 1990, 12)) + +export const exp1991 = "test"; +>exp1991 : Symbol(exp1991, Decl(manyConstExports.ts, 1991, 12)) + +export const exp1992 = "test"; +>exp1992 : Symbol(exp1992, Decl(manyConstExports.ts, 1992, 12)) + +export const exp1993 = "test"; +>exp1993 : Symbol(exp1993, Decl(manyConstExports.ts, 1993, 12)) + +export const exp1994 = "test"; +>exp1994 : Symbol(exp1994, Decl(manyConstExports.ts, 1994, 12)) + +export const exp1995 = "test"; +>exp1995 : Symbol(exp1995, Decl(manyConstExports.ts, 1995, 12)) + +export const exp1996 = "test"; +>exp1996 : Symbol(exp1996, Decl(manyConstExports.ts, 1996, 12)) + +export const exp1997 = "test"; +>exp1997 : Symbol(exp1997, Decl(manyConstExports.ts, 1997, 12)) + +export const exp1998 = "test"; +>exp1998 : Symbol(exp1998, Decl(manyConstExports.ts, 1998, 12)) + +export const exp1999 = "test"; +>exp1999 : Symbol(exp1999, Decl(manyConstExports.ts, 1999, 12)) + +export const exp2000 = "test"; +>exp2000 : Symbol(exp2000, Decl(manyConstExports.ts, 2000, 12)) + +export const exp2001 = "test"; +>exp2001 : Symbol(exp2001, Decl(manyConstExports.ts, 2001, 12)) + +export const exp2002 = "test"; +>exp2002 : Symbol(exp2002, Decl(manyConstExports.ts, 2002, 12)) + +export const exp2003 = "test"; +>exp2003 : Symbol(exp2003, Decl(manyConstExports.ts, 2003, 12)) + +export const exp2004 = "test"; +>exp2004 : Symbol(exp2004, Decl(manyConstExports.ts, 2004, 12)) + +export const exp2005 = "test"; +>exp2005 : Symbol(exp2005, Decl(manyConstExports.ts, 2005, 12)) + +export const exp2006 = "test"; +>exp2006 : Symbol(exp2006, Decl(manyConstExports.ts, 2006, 12)) + +export const exp2007 = "test"; +>exp2007 : Symbol(exp2007, Decl(manyConstExports.ts, 2007, 12)) + +export const exp2008 = "test"; +>exp2008 : Symbol(exp2008, Decl(manyConstExports.ts, 2008, 12)) + +export const exp2009 = "test"; +>exp2009 : Symbol(exp2009, Decl(manyConstExports.ts, 2009, 12)) + +export const exp2010 = "test"; +>exp2010 : Symbol(exp2010, Decl(manyConstExports.ts, 2010, 12)) + +export const exp2011 = "test"; +>exp2011 : Symbol(exp2011, Decl(manyConstExports.ts, 2011, 12)) + +export const exp2012 = "test"; +>exp2012 : Symbol(exp2012, Decl(manyConstExports.ts, 2012, 12)) + +export const exp2013 = "test"; +>exp2013 : Symbol(exp2013, Decl(manyConstExports.ts, 2013, 12)) + +export const exp2014 = "test"; +>exp2014 : Symbol(exp2014, Decl(manyConstExports.ts, 2014, 12)) + +export const exp2015 = "test"; +>exp2015 : Symbol(exp2015, Decl(manyConstExports.ts, 2015, 12)) + +export const exp2016 = "test"; +>exp2016 : Symbol(exp2016, Decl(manyConstExports.ts, 2016, 12)) + +export const exp2017 = "test"; +>exp2017 : Symbol(exp2017, Decl(manyConstExports.ts, 2017, 12)) + +export const exp2018 = "test"; +>exp2018 : Symbol(exp2018, Decl(manyConstExports.ts, 2018, 12)) + +export const exp2019 = "test"; +>exp2019 : Symbol(exp2019, Decl(manyConstExports.ts, 2019, 12)) + +export const exp2020 = "test"; +>exp2020 : Symbol(exp2020, Decl(manyConstExports.ts, 2020, 12)) + +export const exp2021 = "test"; +>exp2021 : Symbol(exp2021, Decl(manyConstExports.ts, 2021, 12)) + +export const exp2022 = "test"; +>exp2022 : Symbol(exp2022, Decl(manyConstExports.ts, 2022, 12)) + +export const exp2023 = "test"; +>exp2023 : Symbol(exp2023, Decl(manyConstExports.ts, 2023, 12)) + +export const exp2024 = "test"; +>exp2024 : Symbol(exp2024, Decl(manyConstExports.ts, 2024, 12)) + +export const exp2025 = "test"; +>exp2025 : Symbol(exp2025, Decl(manyConstExports.ts, 2025, 12)) + +export const exp2026 = "test"; +>exp2026 : Symbol(exp2026, Decl(manyConstExports.ts, 2026, 12)) + +export const exp2027 = "test"; +>exp2027 : Symbol(exp2027, Decl(manyConstExports.ts, 2027, 12)) + +export const exp2028 = "test"; +>exp2028 : Symbol(exp2028, Decl(manyConstExports.ts, 2028, 12)) + +export const exp2029 = "test"; +>exp2029 : Symbol(exp2029, Decl(manyConstExports.ts, 2029, 12)) + +export const exp2030 = "test"; +>exp2030 : Symbol(exp2030, Decl(manyConstExports.ts, 2030, 12)) + +export const exp2031 = "test"; +>exp2031 : Symbol(exp2031, Decl(manyConstExports.ts, 2031, 12)) + +export const exp2032 = "test"; +>exp2032 : Symbol(exp2032, Decl(manyConstExports.ts, 2032, 12)) + +export const exp2033 = "test"; +>exp2033 : Symbol(exp2033, Decl(manyConstExports.ts, 2033, 12)) + +export const exp2034 = "test"; +>exp2034 : Symbol(exp2034, Decl(manyConstExports.ts, 2034, 12)) + +export const exp2035 = "test"; +>exp2035 : Symbol(exp2035, Decl(manyConstExports.ts, 2035, 12)) + +export const exp2036 = "test"; +>exp2036 : Symbol(exp2036, Decl(manyConstExports.ts, 2036, 12)) + +export const exp2037 = "test"; +>exp2037 : Symbol(exp2037, Decl(manyConstExports.ts, 2037, 12)) + +export const exp2038 = "test"; +>exp2038 : Symbol(exp2038, Decl(manyConstExports.ts, 2038, 12)) + +export const exp2039 = "test"; +>exp2039 : Symbol(exp2039, Decl(manyConstExports.ts, 2039, 12)) + +export const exp2040 = "test"; +>exp2040 : Symbol(exp2040, Decl(manyConstExports.ts, 2040, 12)) + +export const exp2041 = "test"; +>exp2041 : Symbol(exp2041, Decl(manyConstExports.ts, 2041, 12)) + +export const exp2042 = "test"; +>exp2042 : Symbol(exp2042, Decl(manyConstExports.ts, 2042, 12)) + +export const exp2043 = "test"; +>exp2043 : Symbol(exp2043, Decl(manyConstExports.ts, 2043, 12)) + +export const exp2044 = "test"; +>exp2044 : Symbol(exp2044, Decl(manyConstExports.ts, 2044, 12)) + +export const exp2045 = "test"; +>exp2045 : Symbol(exp2045, Decl(manyConstExports.ts, 2045, 12)) + +export const exp2046 = "test"; +>exp2046 : Symbol(exp2046, Decl(manyConstExports.ts, 2046, 12)) + +export const exp2047 = "test"; +>exp2047 : Symbol(exp2047, Decl(manyConstExports.ts, 2047, 12)) + +export const exp2048 = "test"; +>exp2048 : Symbol(exp2048, Decl(manyConstExports.ts, 2048, 12)) + +export const exp2049 = "test"; +>exp2049 : Symbol(exp2049, Decl(manyConstExports.ts, 2049, 12)) + +export const exp2050 = "test"; +>exp2050 : Symbol(exp2050, Decl(manyConstExports.ts, 2050, 12)) + +export const exp2051 = "test"; +>exp2051 : Symbol(exp2051, Decl(manyConstExports.ts, 2051, 12)) + +export const exp2052 = "test"; +>exp2052 : Symbol(exp2052, Decl(manyConstExports.ts, 2052, 12)) + +export const exp2053 = "test"; +>exp2053 : Symbol(exp2053, Decl(manyConstExports.ts, 2053, 12)) + +export const exp2054 = "test"; +>exp2054 : Symbol(exp2054, Decl(manyConstExports.ts, 2054, 12)) + +export const exp2055 = "test"; +>exp2055 : Symbol(exp2055, Decl(manyConstExports.ts, 2055, 12)) + +export const exp2056 = "test"; +>exp2056 : Symbol(exp2056, Decl(manyConstExports.ts, 2056, 12)) + +export const exp2057 = "test"; +>exp2057 : Symbol(exp2057, Decl(manyConstExports.ts, 2057, 12)) + +export const exp2058 = "test"; +>exp2058 : Symbol(exp2058, Decl(manyConstExports.ts, 2058, 12)) + +export const exp2059 = "test"; +>exp2059 : Symbol(exp2059, Decl(manyConstExports.ts, 2059, 12)) + +export const exp2060 = "test"; +>exp2060 : Symbol(exp2060, Decl(manyConstExports.ts, 2060, 12)) + +export const exp2061 = "test"; +>exp2061 : Symbol(exp2061, Decl(manyConstExports.ts, 2061, 12)) + +export const exp2062 = "test"; +>exp2062 : Symbol(exp2062, Decl(manyConstExports.ts, 2062, 12)) + +export const exp2063 = "test"; +>exp2063 : Symbol(exp2063, Decl(manyConstExports.ts, 2063, 12)) + +export const exp2064 = "test"; +>exp2064 : Symbol(exp2064, Decl(manyConstExports.ts, 2064, 12)) + +export const exp2065 = "test"; +>exp2065 : Symbol(exp2065, Decl(manyConstExports.ts, 2065, 12)) + +export const exp2066 = "test"; +>exp2066 : Symbol(exp2066, Decl(manyConstExports.ts, 2066, 12)) + +export const exp2067 = "test"; +>exp2067 : Symbol(exp2067, Decl(manyConstExports.ts, 2067, 12)) + +export const exp2068 = "test"; +>exp2068 : Symbol(exp2068, Decl(manyConstExports.ts, 2068, 12)) + +export const exp2069 = "test"; +>exp2069 : Symbol(exp2069, Decl(manyConstExports.ts, 2069, 12)) + +export const exp2070 = "test"; +>exp2070 : Symbol(exp2070, Decl(manyConstExports.ts, 2070, 12)) + +export const exp2071 = "test"; +>exp2071 : Symbol(exp2071, Decl(manyConstExports.ts, 2071, 12)) + +export const exp2072 = "test"; +>exp2072 : Symbol(exp2072, Decl(manyConstExports.ts, 2072, 12)) + +export const exp2073 = "test"; +>exp2073 : Symbol(exp2073, Decl(manyConstExports.ts, 2073, 12)) + +export const exp2074 = "test"; +>exp2074 : Symbol(exp2074, Decl(manyConstExports.ts, 2074, 12)) + +export const exp2075 = "test"; +>exp2075 : Symbol(exp2075, Decl(manyConstExports.ts, 2075, 12)) + +export const exp2076 = "test"; +>exp2076 : Symbol(exp2076, Decl(manyConstExports.ts, 2076, 12)) + +export const exp2077 = "test"; +>exp2077 : Symbol(exp2077, Decl(manyConstExports.ts, 2077, 12)) + +export const exp2078 = "test"; +>exp2078 : Symbol(exp2078, Decl(manyConstExports.ts, 2078, 12)) + +export const exp2079 = "test"; +>exp2079 : Symbol(exp2079, Decl(manyConstExports.ts, 2079, 12)) + +export const exp2080 = "test"; +>exp2080 : Symbol(exp2080, Decl(manyConstExports.ts, 2080, 12)) + +export const exp2081 = "test"; +>exp2081 : Symbol(exp2081, Decl(manyConstExports.ts, 2081, 12)) + +export const exp2082 = "test"; +>exp2082 : Symbol(exp2082, Decl(manyConstExports.ts, 2082, 12)) + +export const exp2083 = "test"; +>exp2083 : Symbol(exp2083, Decl(manyConstExports.ts, 2083, 12)) + +export const exp2084 = "test"; +>exp2084 : Symbol(exp2084, Decl(manyConstExports.ts, 2084, 12)) + +export const exp2085 = "test"; +>exp2085 : Symbol(exp2085, Decl(manyConstExports.ts, 2085, 12)) + +export const exp2086 = "test"; +>exp2086 : Symbol(exp2086, Decl(manyConstExports.ts, 2086, 12)) + +export const exp2087 = "test"; +>exp2087 : Symbol(exp2087, Decl(manyConstExports.ts, 2087, 12)) + +export const exp2088 = "test"; +>exp2088 : Symbol(exp2088, Decl(manyConstExports.ts, 2088, 12)) + +export const exp2089 = "test"; +>exp2089 : Symbol(exp2089, Decl(manyConstExports.ts, 2089, 12)) + +export const exp2090 = "test"; +>exp2090 : Symbol(exp2090, Decl(manyConstExports.ts, 2090, 12)) + +export const exp2091 = "test"; +>exp2091 : Symbol(exp2091, Decl(manyConstExports.ts, 2091, 12)) + +export const exp2092 = "test"; +>exp2092 : Symbol(exp2092, Decl(manyConstExports.ts, 2092, 12)) + +export const exp2093 = "test"; +>exp2093 : Symbol(exp2093, Decl(manyConstExports.ts, 2093, 12)) + +export const exp2094 = "test"; +>exp2094 : Symbol(exp2094, Decl(manyConstExports.ts, 2094, 12)) + +export const exp2095 = "test"; +>exp2095 : Symbol(exp2095, Decl(manyConstExports.ts, 2095, 12)) + +export const exp2096 = "test"; +>exp2096 : Symbol(exp2096, Decl(manyConstExports.ts, 2096, 12)) + +export const exp2097 = "test"; +>exp2097 : Symbol(exp2097, Decl(manyConstExports.ts, 2097, 12)) + +export const exp2098 = "test"; +>exp2098 : Symbol(exp2098, Decl(manyConstExports.ts, 2098, 12)) + +export const exp2099 = "test"; +>exp2099 : Symbol(exp2099, Decl(manyConstExports.ts, 2099, 12)) + +export const exp2100 = "test"; +>exp2100 : Symbol(exp2100, Decl(manyConstExports.ts, 2100, 12)) + +export const exp2101 = "test"; +>exp2101 : Symbol(exp2101, Decl(manyConstExports.ts, 2101, 12)) + +export const exp2102 = "test"; +>exp2102 : Symbol(exp2102, Decl(manyConstExports.ts, 2102, 12)) + +export const exp2103 = "test"; +>exp2103 : Symbol(exp2103, Decl(manyConstExports.ts, 2103, 12)) + +export const exp2104 = "test"; +>exp2104 : Symbol(exp2104, Decl(manyConstExports.ts, 2104, 12)) + +export const exp2105 = "test"; +>exp2105 : Symbol(exp2105, Decl(manyConstExports.ts, 2105, 12)) + +export const exp2106 = "test"; +>exp2106 : Symbol(exp2106, Decl(manyConstExports.ts, 2106, 12)) + +export const exp2107 = "test"; +>exp2107 : Symbol(exp2107, Decl(manyConstExports.ts, 2107, 12)) + +export const exp2108 = "test"; +>exp2108 : Symbol(exp2108, Decl(manyConstExports.ts, 2108, 12)) + +export const exp2109 = "test"; +>exp2109 : Symbol(exp2109, Decl(manyConstExports.ts, 2109, 12)) + +export const exp2110 = "test"; +>exp2110 : Symbol(exp2110, Decl(manyConstExports.ts, 2110, 12)) + +export const exp2111 = "test"; +>exp2111 : Symbol(exp2111, Decl(manyConstExports.ts, 2111, 12)) + +export const exp2112 = "test"; +>exp2112 : Symbol(exp2112, Decl(manyConstExports.ts, 2112, 12)) + +export const exp2113 = "test"; +>exp2113 : Symbol(exp2113, Decl(manyConstExports.ts, 2113, 12)) + +export const exp2114 = "test"; +>exp2114 : Symbol(exp2114, Decl(manyConstExports.ts, 2114, 12)) + +export const exp2115 = "test"; +>exp2115 : Symbol(exp2115, Decl(manyConstExports.ts, 2115, 12)) + +export const exp2116 = "test"; +>exp2116 : Symbol(exp2116, Decl(manyConstExports.ts, 2116, 12)) + +export const exp2117 = "test"; +>exp2117 : Symbol(exp2117, Decl(manyConstExports.ts, 2117, 12)) + +export const exp2118 = "test"; +>exp2118 : Symbol(exp2118, Decl(manyConstExports.ts, 2118, 12)) + +export const exp2119 = "test"; +>exp2119 : Symbol(exp2119, Decl(manyConstExports.ts, 2119, 12)) + +export const exp2120 = "test"; +>exp2120 : Symbol(exp2120, Decl(manyConstExports.ts, 2120, 12)) + +export const exp2121 = "test"; +>exp2121 : Symbol(exp2121, Decl(manyConstExports.ts, 2121, 12)) + +export const exp2122 = "test"; +>exp2122 : Symbol(exp2122, Decl(manyConstExports.ts, 2122, 12)) + +export const exp2123 = "test"; +>exp2123 : Symbol(exp2123, Decl(manyConstExports.ts, 2123, 12)) + +export const exp2124 = "test"; +>exp2124 : Symbol(exp2124, Decl(manyConstExports.ts, 2124, 12)) + +export const exp2125 = "test"; +>exp2125 : Symbol(exp2125, Decl(manyConstExports.ts, 2125, 12)) + +export const exp2126 = "test"; +>exp2126 : Symbol(exp2126, Decl(manyConstExports.ts, 2126, 12)) + +export const exp2127 = "test"; +>exp2127 : Symbol(exp2127, Decl(manyConstExports.ts, 2127, 12)) + +export const exp2128 = "test"; +>exp2128 : Symbol(exp2128, Decl(manyConstExports.ts, 2128, 12)) + +export const exp2129 = "test"; +>exp2129 : Symbol(exp2129, Decl(manyConstExports.ts, 2129, 12)) + +export const exp2130 = "test"; +>exp2130 : Symbol(exp2130, Decl(manyConstExports.ts, 2130, 12)) + +export const exp2131 = "test"; +>exp2131 : Symbol(exp2131, Decl(manyConstExports.ts, 2131, 12)) + +export const exp2132 = "test"; +>exp2132 : Symbol(exp2132, Decl(manyConstExports.ts, 2132, 12)) + +export const exp2133 = "test"; +>exp2133 : Symbol(exp2133, Decl(manyConstExports.ts, 2133, 12)) + +export const exp2134 = "test"; +>exp2134 : Symbol(exp2134, Decl(manyConstExports.ts, 2134, 12)) + +export const exp2135 = "test"; +>exp2135 : Symbol(exp2135, Decl(manyConstExports.ts, 2135, 12)) + +export const exp2136 = "test"; +>exp2136 : Symbol(exp2136, Decl(manyConstExports.ts, 2136, 12)) + +export const exp2137 = "test"; +>exp2137 : Symbol(exp2137, Decl(manyConstExports.ts, 2137, 12)) + +export const exp2138 = "test"; +>exp2138 : Symbol(exp2138, Decl(manyConstExports.ts, 2138, 12)) + +export const exp2139 = "test"; +>exp2139 : Symbol(exp2139, Decl(manyConstExports.ts, 2139, 12)) + +export const exp2140 = "test"; +>exp2140 : Symbol(exp2140, Decl(manyConstExports.ts, 2140, 12)) + +export const exp2141 = "test"; +>exp2141 : Symbol(exp2141, Decl(manyConstExports.ts, 2141, 12)) + +export const exp2142 = "test"; +>exp2142 : Symbol(exp2142, Decl(manyConstExports.ts, 2142, 12)) + +export const exp2143 = "test"; +>exp2143 : Symbol(exp2143, Decl(manyConstExports.ts, 2143, 12)) + +export const exp2144 = "test"; +>exp2144 : Symbol(exp2144, Decl(manyConstExports.ts, 2144, 12)) + +export const exp2145 = "test"; +>exp2145 : Symbol(exp2145, Decl(manyConstExports.ts, 2145, 12)) + +export const exp2146 = "test"; +>exp2146 : Symbol(exp2146, Decl(manyConstExports.ts, 2146, 12)) + +export const exp2147 = "test"; +>exp2147 : Symbol(exp2147, Decl(manyConstExports.ts, 2147, 12)) + +export const exp2148 = "test"; +>exp2148 : Symbol(exp2148, Decl(manyConstExports.ts, 2148, 12)) + +export const exp2149 = "test"; +>exp2149 : Symbol(exp2149, Decl(manyConstExports.ts, 2149, 12)) + +export const exp2150 = "test"; +>exp2150 : Symbol(exp2150, Decl(manyConstExports.ts, 2150, 12)) + +export const exp2151 = "test"; +>exp2151 : Symbol(exp2151, Decl(manyConstExports.ts, 2151, 12)) + +export const exp2152 = "test"; +>exp2152 : Symbol(exp2152, Decl(manyConstExports.ts, 2152, 12)) + +export const exp2153 = "test"; +>exp2153 : Symbol(exp2153, Decl(manyConstExports.ts, 2153, 12)) + +export const exp2154 = "test"; +>exp2154 : Symbol(exp2154, Decl(manyConstExports.ts, 2154, 12)) + +export const exp2155 = "test"; +>exp2155 : Symbol(exp2155, Decl(manyConstExports.ts, 2155, 12)) + +export const exp2156 = "test"; +>exp2156 : Symbol(exp2156, Decl(manyConstExports.ts, 2156, 12)) + +export const exp2157 = "test"; +>exp2157 : Symbol(exp2157, Decl(manyConstExports.ts, 2157, 12)) + +export const exp2158 = "test"; +>exp2158 : Symbol(exp2158, Decl(manyConstExports.ts, 2158, 12)) + +export const exp2159 = "test"; +>exp2159 : Symbol(exp2159, Decl(manyConstExports.ts, 2159, 12)) + +export const exp2160 = "test"; +>exp2160 : Symbol(exp2160, Decl(manyConstExports.ts, 2160, 12)) + +export const exp2161 = "test"; +>exp2161 : Symbol(exp2161, Decl(manyConstExports.ts, 2161, 12)) + +export const exp2162 = "test"; +>exp2162 : Symbol(exp2162, Decl(manyConstExports.ts, 2162, 12)) + +export const exp2163 = "test"; +>exp2163 : Symbol(exp2163, Decl(manyConstExports.ts, 2163, 12)) + +export const exp2164 = "test"; +>exp2164 : Symbol(exp2164, Decl(manyConstExports.ts, 2164, 12)) + +export const exp2165 = "test"; +>exp2165 : Symbol(exp2165, Decl(manyConstExports.ts, 2165, 12)) + +export const exp2166 = "test"; +>exp2166 : Symbol(exp2166, Decl(manyConstExports.ts, 2166, 12)) + +export const exp2167 = "test"; +>exp2167 : Symbol(exp2167, Decl(manyConstExports.ts, 2167, 12)) + +export const exp2168 = "test"; +>exp2168 : Symbol(exp2168, Decl(manyConstExports.ts, 2168, 12)) + +export const exp2169 = "test"; +>exp2169 : Symbol(exp2169, Decl(manyConstExports.ts, 2169, 12)) + +export const exp2170 = "test"; +>exp2170 : Symbol(exp2170, Decl(manyConstExports.ts, 2170, 12)) + +export const exp2171 = "test"; +>exp2171 : Symbol(exp2171, Decl(manyConstExports.ts, 2171, 12)) + +export const exp2172 = "test"; +>exp2172 : Symbol(exp2172, Decl(manyConstExports.ts, 2172, 12)) + +export const exp2173 = "test"; +>exp2173 : Symbol(exp2173, Decl(manyConstExports.ts, 2173, 12)) + +export const exp2174 = "test"; +>exp2174 : Symbol(exp2174, Decl(manyConstExports.ts, 2174, 12)) + +export const exp2175 = "test"; +>exp2175 : Symbol(exp2175, Decl(manyConstExports.ts, 2175, 12)) + +export const exp2176 = "test"; +>exp2176 : Symbol(exp2176, Decl(manyConstExports.ts, 2176, 12)) + +export const exp2177 = "test"; +>exp2177 : Symbol(exp2177, Decl(manyConstExports.ts, 2177, 12)) + +export const exp2178 = "test"; +>exp2178 : Symbol(exp2178, Decl(manyConstExports.ts, 2178, 12)) + +export const exp2179 = "test"; +>exp2179 : Symbol(exp2179, Decl(manyConstExports.ts, 2179, 12)) + +export const exp2180 = "test"; +>exp2180 : Symbol(exp2180, Decl(manyConstExports.ts, 2180, 12)) + +export const exp2181 = "test"; +>exp2181 : Symbol(exp2181, Decl(manyConstExports.ts, 2181, 12)) + +export const exp2182 = "test"; +>exp2182 : Symbol(exp2182, Decl(manyConstExports.ts, 2182, 12)) + +export const exp2183 = "test"; +>exp2183 : Symbol(exp2183, Decl(manyConstExports.ts, 2183, 12)) + +export const exp2184 = "test"; +>exp2184 : Symbol(exp2184, Decl(manyConstExports.ts, 2184, 12)) + +export const exp2185 = "test"; +>exp2185 : Symbol(exp2185, Decl(manyConstExports.ts, 2185, 12)) + +export const exp2186 = "test"; +>exp2186 : Symbol(exp2186, Decl(manyConstExports.ts, 2186, 12)) + +export const exp2187 = "test"; +>exp2187 : Symbol(exp2187, Decl(manyConstExports.ts, 2187, 12)) + +export const exp2188 = "test"; +>exp2188 : Symbol(exp2188, Decl(manyConstExports.ts, 2188, 12)) + +export const exp2189 = "test"; +>exp2189 : Symbol(exp2189, Decl(manyConstExports.ts, 2189, 12)) + +export const exp2190 = "test"; +>exp2190 : Symbol(exp2190, Decl(manyConstExports.ts, 2190, 12)) + +export const exp2191 = "test"; +>exp2191 : Symbol(exp2191, Decl(manyConstExports.ts, 2191, 12)) + +export const exp2192 = "test"; +>exp2192 : Symbol(exp2192, Decl(manyConstExports.ts, 2192, 12)) + +export const exp2193 = "test"; +>exp2193 : Symbol(exp2193, Decl(manyConstExports.ts, 2193, 12)) + +export const exp2194 = "test"; +>exp2194 : Symbol(exp2194, Decl(manyConstExports.ts, 2194, 12)) + +export const exp2195 = "test"; +>exp2195 : Symbol(exp2195, Decl(manyConstExports.ts, 2195, 12)) + +export const exp2196 = "test"; +>exp2196 : Symbol(exp2196, Decl(manyConstExports.ts, 2196, 12)) + +export const exp2197 = "test"; +>exp2197 : Symbol(exp2197, Decl(manyConstExports.ts, 2197, 12)) + +export const exp2198 = "test"; +>exp2198 : Symbol(exp2198, Decl(manyConstExports.ts, 2198, 12)) + +export const exp2199 = "test"; +>exp2199 : Symbol(exp2199, Decl(manyConstExports.ts, 2199, 12)) + +export const exp2200 = "test"; +>exp2200 : Symbol(exp2200, Decl(manyConstExports.ts, 2200, 12)) + +export const exp2201 = "test"; +>exp2201 : Symbol(exp2201, Decl(manyConstExports.ts, 2201, 12)) + +export const exp2202 = "test"; +>exp2202 : Symbol(exp2202, Decl(manyConstExports.ts, 2202, 12)) + +export const exp2203 = "test"; +>exp2203 : Symbol(exp2203, Decl(manyConstExports.ts, 2203, 12)) + +export const exp2204 = "test"; +>exp2204 : Symbol(exp2204, Decl(manyConstExports.ts, 2204, 12)) + +export const exp2205 = "test"; +>exp2205 : Symbol(exp2205, Decl(manyConstExports.ts, 2205, 12)) + +export const exp2206 = "test"; +>exp2206 : Symbol(exp2206, Decl(manyConstExports.ts, 2206, 12)) + +export const exp2207 = "test"; +>exp2207 : Symbol(exp2207, Decl(manyConstExports.ts, 2207, 12)) + +export const exp2208 = "test"; +>exp2208 : Symbol(exp2208, Decl(manyConstExports.ts, 2208, 12)) + +export const exp2209 = "test"; +>exp2209 : Symbol(exp2209, Decl(manyConstExports.ts, 2209, 12)) + +export const exp2210 = "test"; +>exp2210 : Symbol(exp2210, Decl(manyConstExports.ts, 2210, 12)) + +export const exp2211 = "test"; +>exp2211 : Symbol(exp2211, Decl(manyConstExports.ts, 2211, 12)) + +export const exp2212 = "test"; +>exp2212 : Symbol(exp2212, Decl(manyConstExports.ts, 2212, 12)) + +export const exp2213 = "test"; +>exp2213 : Symbol(exp2213, Decl(manyConstExports.ts, 2213, 12)) + +export const exp2214 = "test"; +>exp2214 : Symbol(exp2214, Decl(manyConstExports.ts, 2214, 12)) + +export const exp2215 = "test"; +>exp2215 : Symbol(exp2215, Decl(manyConstExports.ts, 2215, 12)) + +export const exp2216 = "test"; +>exp2216 : Symbol(exp2216, Decl(manyConstExports.ts, 2216, 12)) + +export const exp2217 = "test"; +>exp2217 : Symbol(exp2217, Decl(manyConstExports.ts, 2217, 12)) + +export const exp2218 = "test"; +>exp2218 : Symbol(exp2218, Decl(manyConstExports.ts, 2218, 12)) + +export const exp2219 = "test"; +>exp2219 : Symbol(exp2219, Decl(manyConstExports.ts, 2219, 12)) + +export const exp2220 = "test"; +>exp2220 : Symbol(exp2220, Decl(manyConstExports.ts, 2220, 12)) + +export const exp2221 = "test"; +>exp2221 : Symbol(exp2221, Decl(manyConstExports.ts, 2221, 12)) + +export const exp2222 = "test"; +>exp2222 : Symbol(exp2222, Decl(manyConstExports.ts, 2222, 12)) + +export const exp2223 = "test"; +>exp2223 : Symbol(exp2223, Decl(manyConstExports.ts, 2223, 12)) + +export const exp2224 = "test"; +>exp2224 : Symbol(exp2224, Decl(manyConstExports.ts, 2224, 12)) + +export const exp2225 = "test"; +>exp2225 : Symbol(exp2225, Decl(manyConstExports.ts, 2225, 12)) + +export const exp2226 = "test"; +>exp2226 : Symbol(exp2226, Decl(manyConstExports.ts, 2226, 12)) + +export const exp2227 = "test"; +>exp2227 : Symbol(exp2227, Decl(manyConstExports.ts, 2227, 12)) + +export const exp2228 = "test"; +>exp2228 : Symbol(exp2228, Decl(manyConstExports.ts, 2228, 12)) + +export const exp2229 = "test"; +>exp2229 : Symbol(exp2229, Decl(manyConstExports.ts, 2229, 12)) + +export const exp2230 = "test"; +>exp2230 : Symbol(exp2230, Decl(manyConstExports.ts, 2230, 12)) + +export const exp2231 = "test"; +>exp2231 : Symbol(exp2231, Decl(manyConstExports.ts, 2231, 12)) + +export const exp2232 = "test"; +>exp2232 : Symbol(exp2232, Decl(manyConstExports.ts, 2232, 12)) + +export const exp2233 = "test"; +>exp2233 : Symbol(exp2233, Decl(manyConstExports.ts, 2233, 12)) + +export const exp2234 = "test"; +>exp2234 : Symbol(exp2234, Decl(manyConstExports.ts, 2234, 12)) + +export const exp2235 = "test"; +>exp2235 : Symbol(exp2235, Decl(manyConstExports.ts, 2235, 12)) + +export const exp2236 = "test"; +>exp2236 : Symbol(exp2236, Decl(manyConstExports.ts, 2236, 12)) + +export const exp2237 = "test"; +>exp2237 : Symbol(exp2237, Decl(manyConstExports.ts, 2237, 12)) + +export const exp2238 = "test"; +>exp2238 : Symbol(exp2238, Decl(manyConstExports.ts, 2238, 12)) + +export const exp2239 = "test"; +>exp2239 : Symbol(exp2239, Decl(manyConstExports.ts, 2239, 12)) + +export const exp2240 = "test"; +>exp2240 : Symbol(exp2240, Decl(manyConstExports.ts, 2240, 12)) + +export const exp2241 = "test"; +>exp2241 : Symbol(exp2241, Decl(manyConstExports.ts, 2241, 12)) + +export const exp2242 = "test"; +>exp2242 : Symbol(exp2242, Decl(manyConstExports.ts, 2242, 12)) + +export const exp2243 = "test"; +>exp2243 : Symbol(exp2243, Decl(manyConstExports.ts, 2243, 12)) + +export const exp2244 = "test"; +>exp2244 : Symbol(exp2244, Decl(manyConstExports.ts, 2244, 12)) + +export const exp2245 = "test"; +>exp2245 : Symbol(exp2245, Decl(manyConstExports.ts, 2245, 12)) + +export const exp2246 = "test"; +>exp2246 : Symbol(exp2246, Decl(manyConstExports.ts, 2246, 12)) + +export const exp2247 = "test"; +>exp2247 : Symbol(exp2247, Decl(manyConstExports.ts, 2247, 12)) + +export const exp2248 = "test"; +>exp2248 : Symbol(exp2248, Decl(manyConstExports.ts, 2248, 12)) + +export const exp2249 = "test"; +>exp2249 : Symbol(exp2249, Decl(manyConstExports.ts, 2249, 12)) + +export const exp2250 = "test"; +>exp2250 : Symbol(exp2250, Decl(manyConstExports.ts, 2250, 12)) + +export const exp2251 = "test"; +>exp2251 : Symbol(exp2251, Decl(manyConstExports.ts, 2251, 12)) + +export const exp2252 = "test"; +>exp2252 : Symbol(exp2252, Decl(manyConstExports.ts, 2252, 12)) + +export const exp2253 = "test"; +>exp2253 : Symbol(exp2253, Decl(manyConstExports.ts, 2253, 12)) + +export const exp2254 = "test"; +>exp2254 : Symbol(exp2254, Decl(manyConstExports.ts, 2254, 12)) + +export const exp2255 = "test"; +>exp2255 : Symbol(exp2255, Decl(manyConstExports.ts, 2255, 12)) + +export const exp2256 = "test"; +>exp2256 : Symbol(exp2256, Decl(manyConstExports.ts, 2256, 12)) + +export const exp2257 = "test"; +>exp2257 : Symbol(exp2257, Decl(manyConstExports.ts, 2257, 12)) + +export const exp2258 = "test"; +>exp2258 : Symbol(exp2258, Decl(manyConstExports.ts, 2258, 12)) + +export const exp2259 = "test"; +>exp2259 : Symbol(exp2259, Decl(manyConstExports.ts, 2259, 12)) + +export const exp2260 = "test"; +>exp2260 : Symbol(exp2260, Decl(manyConstExports.ts, 2260, 12)) + +export const exp2261 = "test"; +>exp2261 : Symbol(exp2261, Decl(manyConstExports.ts, 2261, 12)) + +export const exp2262 = "test"; +>exp2262 : Symbol(exp2262, Decl(manyConstExports.ts, 2262, 12)) + +export const exp2263 = "test"; +>exp2263 : Symbol(exp2263, Decl(manyConstExports.ts, 2263, 12)) + +export const exp2264 = "test"; +>exp2264 : Symbol(exp2264, Decl(manyConstExports.ts, 2264, 12)) + +export const exp2265 = "test"; +>exp2265 : Symbol(exp2265, Decl(manyConstExports.ts, 2265, 12)) + +export const exp2266 = "test"; +>exp2266 : Symbol(exp2266, Decl(manyConstExports.ts, 2266, 12)) + +export const exp2267 = "test"; +>exp2267 : Symbol(exp2267, Decl(manyConstExports.ts, 2267, 12)) + +export const exp2268 = "test"; +>exp2268 : Symbol(exp2268, Decl(manyConstExports.ts, 2268, 12)) + +export const exp2269 = "test"; +>exp2269 : Symbol(exp2269, Decl(manyConstExports.ts, 2269, 12)) + +export const exp2270 = "test"; +>exp2270 : Symbol(exp2270, Decl(manyConstExports.ts, 2270, 12)) + +export const exp2271 = "test"; +>exp2271 : Symbol(exp2271, Decl(manyConstExports.ts, 2271, 12)) + +export const exp2272 = "test"; +>exp2272 : Symbol(exp2272, Decl(manyConstExports.ts, 2272, 12)) + +export const exp2273 = "test"; +>exp2273 : Symbol(exp2273, Decl(manyConstExports.ts, 2273, 12)) + +export const exp2274 = "test"; +>exp2274 : Symbol(exp2274, Decl(manyConstExports.ts, 2274, 12)) + +export const exp2275 = "test"; +>exp2275 : Symbol(exp2275, Decl(manyConstExports.ts, 2275, 12)) + +export const exp2276 = "test"; +>exp2276 : Symbol(exp2276, Decl(manyConstExports.ts, 2276, 12)) + +export const exp2277 = "test"; +>exp2277 : Symbol(exp2277, Decl(manyConstExports.ts, 2277, 12)) + +export const exp2278 = "test"; +>exp2278 : Symbol(exp2278, Decl(manyConstExports.ts, 2278, 12)) + +export const exp2279 = "test"; +>exp2279 : Symbol(exp2279, Decl(manyConstExports.ts, 2279, 12)) + +export const exp2280 = "test"; +>exp2280 : Symbol(exp2280, Decl(manyConstExports.ts, 2280, 12)) + +export const exp2281 = "test"; +>exp2281 : Symbol(exp2281, Decl(manyConstExports.ts, 2281, 12)) + +export const exp2282 = "test"; +>exp2282 : Symbol(exp2282, Decl(manyConstExports.ts, 2282, 12)) + +export const exp2283 = "test"; +>exp2283 : Symbol(exp2283, Decl(manyConstExports.ts, 2283, 12)) + +export const exp2284 = "test"; +>exp2284 : Symbol(exp2284, Decl(manyConstExports.ts, 2284, 12)) + +export const exp2285 = "test"; +>exp2285 : Symbol(exp2285, Decl(manyConstExports.ts, 2285, 12)) + +export const exp2286 = "test"; +>exp2286 : Symbol(exp2286, Decl(manyConstExports.ts, 2286, 12)) + +export const exp2287 = "test"; +>exp2287 : Symbol(exp2287, Decl(manyConstExports.ts, 2287, 12)) + +export const exp2288 = "test"; +>exp2288 : Symbol(exp2288, Decl(manyConstExports.ts, 2288, 12)) + +export const exp2289 = "test"; +>exp2289 : Symbol(exp2289, Decl(manyConstExports.ts, 2289, 12)) + +export const exp2290 = "test"; +>exp2290 : Symbol(exp2290, Decl(manyConstExports.ts, 2290, 12)) + +export const exp2291 = "test"; +>exp2291 : Symbol(exp2291, Decl(manyConstExports.ts, 2291, 12)) + +export const exp2292 = "test"; +>exp2292 : Symbol(exp2292, Decl(manyConstExports.ts, 2292, 12)) + +export const exp2293 = "test"; +>exp2293 : Symbol(exp2293, Decl(manyConstExports.ts, 2293, 12)) + +export const exp2294 = "test"; +>exp2294 : Symbol(exp2294, Decl(manyConstExports.ts, 2294, 12)) + +export const exp2295 = "test"; +>exp2295 : Symbol(exp2295, Decl(manyConstExports.ts, 2295, 12)) + +export const exp2296 = "test"; +>exp2296 : Symbol(exp2296, Decl(manyConstExports.ts, 2296, 12)) + +export const exp2297 = "test"; +>exp2297 : Symbol(exp2297, Decl(manyConstExports.ts, 2297, 12)) + +export const exp2298 = "test"; +>exp2298 : Symbol(exp2298, Decl(manyConstExports.ts, 2298, 12)) + +export const exp2299 = "test"; +>exp2299 : Symbol(exp2299, Decl(manyConstExports.ts, 2299, 12)) + +export const exp2300 = "test"; +>exp2300 : Symbol(exp2300, Decl(manyConstExports.ts, 2300, 12)) + +export const exp2301 = "test"; +>exp2301 : Symbol(exp2301, Decl(manyConstExports.ts, 2301, 12)) + +export const exp2302 = "test"; +>exp2302 : Symbol(exp2302, Decl(manyConstExports.ts, 2302, 12)) + +export const exp2303 = "test"; +>exp2303 : Symbol(exp2303, Decl(manyConstExports.ts, 2303, 12)) + +export const exp2304 = "test"; +>exp2304 : Symbol(exp2304, Decl(manyConstExports.ts, 2304, 12)) + +export const exp2305 = "test"; +>exp2305 : Symbol(exp2305, Decl(manyConstExports.ts, 2305, 12)) + +export const exp2306 = "test"; +>exp2306 : Symbol(exp2306, Decl(manyConstExports.ts, 2306, 12)) + +export const exp2307 = "test"; +>exp2307 : Symbol(exp2307, Decl(manyConstExports.ts, 2307, 12)) + +export const exp2308 = "test"; +>exp2308 : Symbol(exp2308, Decl(manyConstExports.ts, 2308, 12)) + +export const exp2309 = "test"; +>exp2309 : Symbol(exp2309, Decl(manyConstExports.ts, 2309, 12)) + +export const exp2310 = "test"; +>exp2310 : Symbol(exp2310, Decl(manyConstExports.ts, 2310, 12)) + +export const exp2311 = "test"; +>exp2311 : Symbol(exp2311, Decl(manyConstExports.ts, 2311, 12)) + +export const exp2312 = "test"; +>exp2312 : Symbol(exp2312, Decl(manyConstExports.ts, 2312, 12)) + +export const exp2313 = "test"; +>exp2313 : Symbol(exp2313, Decl(manyConstExports.ts, 2313, 12)) + +export const exp2314 = "test"; +>exp2314 : Symbol(exp2314, Decl(manyConstExports.ts, 2314, 12)) + +export const exp2315 = "test"; +>exp2315 : Symbol(exp2315, Decl(manyConstExports.ts, 2315, 12)) + +export const exp2316 = "test"; +>exp2316 : Symbol(exp2316, Decl(manyConstExports.ts, 2316, 12)) + +export const exp2317 = "test"; +>exp2317 : Symbol(exp2317, Decl(manyConstExports.ts, 2317, 12)) + +export const exp2318 = "test"; +>exp2318 : Symbol(exp2318, Decl(manyConstExports.ts, 2318, 12)) + +export const exp2319 = "test"; +>exp2319 : Symbol(exp2319, Decl(manyConstExports.ts, 2319, 12)) + +export const exp2320 = "test"; +>exp2320 : Symbol(exp2320, Decl(manyConstExports.ts, 2320, 12)) + +export const exp2321 = "test"; +>exp2321 : Symbol(exp2321, Decl(manyConstExports.ts, 2321, 12)) + +export const exp2322 = "test"; +>exp2322 : Symbol(exp2322, Decl(manyConstExports.ts, 2322, 12)) + +export const exp2323 = "test"; +>exp2323 : Symbol(exp2323, Decl(manyConstExports.ts, 2323, 12)) + +export const exp2324 = "test"; +>exp2324 : Symbol(exp2324, Decl(manyConstExports.ts, 2324, 12)) + +export const exp2325 = "test"; +>exp2325 : Symbol(exp2325, Decl(manyConstExports.ts, 2325, 12)) + +export const exp2326 = "test"; +>exp2326 : Symbol(exp2326, Decl(manyConstExports.ts, 2326, 12)) + +export const exp2327 = "test"; +>exp2327 : Symbol(exp2327, Decl(manyConstExports.ts, 2327, 12)) + +export const exp2328 = "test"; +>exp2328 : Symbol(exp2328, Decl(manyConstExports.ts, 2328, 12)) + +export const exp2329 = "test"; +>exp2329 : Symbol(exp2329, Decl(manyConstExports.ts, 2329, 12)) + +export const exp2330 = "test"; +>exp2330 : Symbol(exp2330, Decl(manyConstExports.ts, 2330, 12)) + +export const exp2331 = "test"; +>exp2331 : Symbol(exp2331, Decl(manyConstExports.ts, 2331, 12)) + +export const exp2332 = "test"; +>exp2332 : Symbol(exp2332, Decl(manyConstExports.ts, 2332, 12)) + +export const exp2333 = "test"; +>exp2333 : Symbol(exp2333, Decl(manyConstExports.ts, 2333, 12)) + +export const exp2334 = "test"; +>exp2334 : Symbol(exp2334, Decl(manyConstExports.ts, 2334, 12)) + +export const exp2335 = "test"; +>exp2335 : Symbol(exp2335, Decl(manyConstExports.ts, 2335, 12)) + +export const exp2336 = "test"; +>exp2336 : Symbol(exp2336, Decl(manyConstExports.ts, 2336, 12)) + +export const exp2337 = "test"; +>exp2337 : Symbol(exp2337, Decl(manyConstExports.ts, 2337, 12)) + +export const exp2338 = "test"; +>exp2338 : Symbol(exp2338, Decl(manyConstExports.ts, 2338, 12)) + +export const exp2339 = "test"; +>exp2339 : Symbol(exp2339, Decl(manyConstExports.ts, 2339, 12)) + +export const exp2340 = "test"; +>exp2340 : Symbol(exp2340, Decl(manyConstExports.ts, 2340, 12)) + +export const exp2341 = "test"; +>exp2341 : Symbol(exp2341, Decl(manyConstExports.ts, 2341, 12)) + +export const exp2342 = "test"; +>exp2342 : Symbol(exp2342, Decl(manyConstExports.ts, 2342, 12)) + +export const exp2343 = "test"; +>exp2343 : Symbol(exp2343, Decl(manyConstExports.ts, 2343, 12)) + +export const exp2344 = "test"; +>exp2344 : Symbol(exp2344, Decl(manyConstExports.ts, 2344, 12)) + +export const exp2345 = "test"; +>exp2345 : Symbol(exp2345, Decl(manyConstExports.ts, 2345, 12)) + +export const exp2346 = "test"; +>exp2346 : Symbol(exp2346, Decl(manyConstExports.ts, 2346, 12)) + +export const exp2347 = "test"; +>exp2347 : Symbol(exp2347, Decl(manyConstExports.ts, 2347, 12)) + +export const exp2348 = "test"; +>exp2348 : Symbol(exp2348, Decl(manyConstExports.ts, 2348, 12)) + +export const exp2349 = "test"; +>exp2349 : Symbol(exp2349, Decl(manyConstExports.ts, 2349, 12)) + +export const exp2350 = "test"; +>exp2350 : Symbol(exp2350, Decl(manyConstExports.ts, 2350, 12)) + +export const exp2351 = "test"; +>exp2351 : Symbol(exp2351, Decl(manyConstExports.ts, 2351, 12)) + +export const exp2352 = "test"; +>exp2352 : Symbol(exp2352, Decl(manyConstExports.ts, 2352, 12)) + +export const exp2353 = "test"; +>exp2353 : Symbol(exp2353, Decl(manyConstExports.ts, 2353, 12)) + +export const exp2354 = "test"; +>exp2354 : Symbol(exp2354, Decl(manyConstExports.ts, 2354, 12)) + +export const exp2355 = "test"; +>exp2355 : Symbol(exp2355, Decl(manyConstExports.ts, 2355, 12)) + +export const exp2356 = "test"; +>exp2356 : Symbol(exp2356, Decl(manyConstExports.ts, 2356, 12)) + +export const exp2357 = "test"; +>exp2357 : Symbol(exp2357, Decl(manyConstExports.ts, 2357, 12)) + +export const exp2358 = "test"; +>exp2358 : Symbol(exp2358, Decl(manyConstExports.ts, 2358, 12)) + +export const exp2359 = "test"; +>exp2359 : Symbol(exp2359, Decl(manyConstExports.ts, 2359, 12)) + +export const exp2360 = "test"; +>exp2360 : Symbol(exp2360, Decl(manyConstExports.ts, 2360, 12)) + +export const exp2361 = "test"; +>exp2361 : Symbol(exp2361, Decl(manyConstExports.ts, 2361, 12)) + +export const exp2362 = "test"; +>exp2362 : Symbol(exp2362, Decl(manyConstExports.ts, 2362, 12)) + +export const exp2363 = "test"; +>exp2363 : Symbol(exp2363, Decl(manyConstExports.ts, 2363, 12)) + +export const exp2364 = "test"; +>exp2364 : Symbol(exp2364, Decl(manyConstExports.ts, 2364, 12)) + +export const exp2365 = "test"; +>exp2365 : Symbol(exp2365, Decl(manyConstExports.ts, 2365, 12)) + +export const exp2366 = "test"; +>exp2366 : Symbol(exp2366, Decl(manyConstExports.ts, 2366, 12)) + +export const exp2367 = "test"; +>exp2367 : Symbol(exp2367, Decl(manyConstExports.ts, 2367, 12)) + +export const exp2368 = "test"; +>exp2368 : Symbol(exp2368, Decl(manyConstExports.ts, 2368, 12)) + +export const exp2369 = "test"; +>exp2369 : Symbol(exp2369, Decl(manyConstExports.ts, 2369, 12)) + +export const exp2370 = "test"; +>exp2370 : Symbol(exp2370, Decl(manyConstExports.ts, 2370, 12)) + +export const exp2371 = "test"; +>exp2371 : Symbol(exp2371, Decl(manyConstExports.ts, 2371, 12)) + +export const exp2372 = "test"; +>exp2372 : Symbol(exp2372, Decl(manyConstExports.ts, 2372, 12)) + +export const exp2373 = "test"; +>exp2373 : Symbol(exp2373, Decl(manyConstExports.ts, 2373, 12)) + +export const exp2374 = "test"; +>exp2374 : Symbol(exp2374, Decl(manyConstExports.ts, 2374, 12)) + +export const exp2375 = "test"; +>exp2375 : Symbol(exp2375, Decl(manyConstExports.ts, 2375, 12)) + +export const exp2376 = "test"; +>exp2376 : Symbol(exp2376, Decl(manyConstExports.ts, 2376, 12)) + +export const exp2377 = "test"; +>exp2377 : Symbol(exp2377, Decl(manyConstExports.ts, 2377, 12)) + +export const exp2378 = "test"; +>exp2378 : Symbol(exp2378, Decl(manyConstExports.ts, 2378, 12)) + +export const exp2379 = "test"; +>exp2379 : Symbol(exp2379, Decl(manyConstExports.ts, 2379, 12)) + +export const exp2380 = "test"; +>exp2380 : Symbol(exp2380, Decl(manyConstExports.ts, 2380, 12)) + +export const exp2381 = "test"; +>exp2381 : Symbol(exp2381, Decl(manyConstExports.ts, 2381, 12)) + +export const exp2382 = "test"; +>exp2382 : Symbol(exp2382, Decl(manyConstExports.ts, 2382, 12)) + +export const exp2383 = "test"; +>exp2383 : Symbol(exp2383, Decl(manyConstExports.ts, 2383, 12)) + +export const exp2384 = "test"; +>exp2384 : Symbol(exp2384, Decl(manyConstExports.ts, 2384, 12)) + +export const exp2385 = "test"; +>exp2385 : Symbol(exp2385, Decl(manyConstExports.ts, 2385, 12)) + +export const exp2386 = "test"; +>exp2386 : Symbol(exp2386, Decl(manyConstExports.ts, 2386, 12)) + +export const exp2387 = "test"; +>exp2387 : Symbol(exp2387, Decl(manyConstExports.ts, 2387, 12)) + +export const exp2388 = "test"; +>exp2388 : Symbol(exp2388, Decl(manyConstExports.ts, 2388, 12)) + +export const exp2389 = "test"; +>exp2389 : Symbol(exp2389, Decl(manyConstExports.ts, 2389, 12)) + +export const exp2390 = "test"; +>exp2390 : Symbol(exp2390, Decl(manyConstExports.ts, 2390, 12)) + +export const exp2391 = "test"; +>exp2391 : Symbol(exp2391, Decl(manyConstExports.ts, 2391, 12)) + +export const exp2392 = "test"; +>exp2392 : Symbol(exp2392, Decl(manyConstExports.ts, 2392, 12)) + +export const exp2393 = "test"; +>exp2393 : Symbol(exp2393, Decl(manyConstExports.ts, 2393, 12)) + +export const exp2394 = "test"; +>exp2394 : Symbol(exp2394, Decl(manyConstExports.ts, 2394, 12)) + +export const exp2395 = "test"; +>exp2395 : Symbol(exp2395, Decl(manyConstExports.ts, 2395, 12)) + +export const exp2396 = "test"; +>exp2396 : Symbol(exp2396, Decl(manyConstExports.ts, 2396, 12)) + +export const exp2397 = "test"; +>exp2397 : Symbol(exp2397, Decl(manyConstExports.ts, 2397, 12)) + +export const exp2398 = "test"; +>exp2398 : Symbol(exp2398, Decl(manyConstExports.ts, 2398, 12)) + +export const exp2399 = "test"; +>exp2399 : Symbol(exp2399, Decl(manyConstExports.ts, 2399, 12)) + +export const exp2400 = "test"; +>exp2400 : Symbol(exp2400, Decl(manyConstExports.ts, 2400, 12)) + +export const exp2401 = "test"; +>exp2401 : Symbol(exp2401, Decl(manyConstExports.ts, 2401, 12)) + +export const exp2402 = "test"; +>exp2402 : Symbol(exp2402, Decl(manyConstExports.ts, 2402, 12)) + +export const exp2403 = "test"; +>exp2403 : Symbol(exp2403, Decl(manyConstExports.ts, 2403, 12)) + +export const exp2404 = "test"; +>exp2404 : Symbol(exp2404, Decl(manyConstExports.ts, 2404, 12)) + +export const exp2405 = "test"; +>exp2405 : Symbol(exp2405, Decl(manyConstExports.ts, 2405, 12)) + +export const exp2406 = "test"; +>exp2406 : Symbol(exp2406, Decl(manyConstExports.ts, 2406, 12)) + +export const exp2407 = "test"; +>exp2407 : Symbol(exp2407, Decl(manyConstExports.ts, 2407, 12)) + +export const exp2408 = "test"; +>exp2408 : Symbol(exp2408, Decl(manyConstExports.ts, 2408, 12)) + +export const exp2409 = "test"; +>exp2409 : Symbol(exp2409, Decl(manyConstExports.ts, 2409, 12)) + +export const exp2410 = "test"; +>exp2410 : Symbol(exp2410, Decl(manyConstExports.ts, 2410, 12)) + +export const exp2411 = "test"; +>exp2411 : Symbol(exp2411, Decl(manyConstExports.ts, 2411, 12)) + +export const exp2412 = "test"; +>exp2412 : Symbol(exp2412, Decl(manyConstExports.ts, 2412, 12)) + +export const exp2413 = "test"; +>exp2413 : Symbol(exp2413, Decl(manyConstExports.ts, 2413, 12)) + +export const exp2414 = "test"; +>exp2414 : Symbol(exp2414, Decl(manyConstExports.ts, 2414, 12)) + +export const exp2415 = "test"; +>exp2415 : Symbol(exp2415, Decl(manyConstExports.ts, 2415, 12)) + +export const exp2416 = "test"; +>exp2416 : Symbol(exp2416, Decl(manyConstExports.ts, 2416, 12)) + +export const exp2417 = "test"; +>exp2417 : Symbol(exp2417, Decl(manyConstExports.ts, 2417, 12)) + +export const exp2418 = "test"; +>exp2418 : Symbol(exp2418, Decl(manyConstExports.ts, 2418, 12)) + +export const exp2419 = "test"; +>exp2419 : Symbol(exp2419, Decl(manyConstExports.ts, 2419, 12)) + +export const exp2420 = "test"; +>exp2420 : Symbol(exp2420, Decl(manyConstExports.ts, 2420, 12)) + +export const exp2421 = "test"; +>exp2421 : Symbol(exp2421, Decl(manyConstExports.ts, 2421, 12)) + +export const exp2422 = "test"; +>exp2422 : Symbol(exp2422, Decl(manyConstExports.ts, 2422, 12)) + +export const exp2423 = "test"; +>exp2423 : Symbol(exp2423, Decl(manyConstExports.ts, 2423, 12)) + +export const exp2424 = "test"; +>exp2424 : Symbol(exp2424, Decl(manyConstExports.ts, 2424, 12)) + +export const exp2425 = "test"; +>exp2425 : Symbol(exp2425, Decl(manyConstExports.ts, 2425, 12)) + +export const exp2426 = "test"; +>exp2426 : Symbol(exp2426, Decl(manyConstExports.ts, 2426, 12)) + +export const exp2427 = "test"; +>exp2427 : Symbol(exp2427, Decl(manyConstExports.ts, 2427, 12)) + +export const exp2428 = "test"; +>exp2428 : Symbol(exp2428, Decl(manyConstExports.ts, 2428, 12)) + +export const exp2429 = "test"; +>exp2429 : Symbol(exp2429, Decl(manyConstExports.ts, 2429, 12)) + +export const exp2430 = "test"; +>exp2430 : Symbol(exp2430, Decl(manyConstExports.ts, 2430, 12)) + +export const exp2431 = "test"; +>exp2431 : Symbol(exp2431, Decl(manyConstExports.ts, 2431, 12)) + +export const exp2432 = "test"; +>exp2432 : Symbol(exp2432, Decl(manyConstExports.ts, 2432, 12)) + +export const exp2433 = "test"; +>exp2433 : Symbol(exp2433, Decl(manyConstExports.ts, 2433, 12)) + +export const exp2434 = "test"; +>exp2434 : Symbol(exp2434, Decl(manyConstExports.ts, 2434, 12)) + +export const exp2435 = "test"; +>exp2435 : Symbol(exp2435, Decl(manyConstExports.ts, 2435, 12)) + +export const exp2436 = "test"; +>exp2436 : Symbol(exp2436, Decl(manyConstExports.ts, 2436, 12)) + +export const exp2437 = "test"; +>exp2437 : Symbol(exp2437, Decl(manyConstExports.ts, 2437, 12)) + +export const exp2438 = "test"; +>exp2438 : Symbol(exp2438, Decl(manyConstExports.ts, 2438, 12)) + +export const exp2439 = "test"; +>exp2439 : Symbol(exp2439, Decl(manyConstExports.ts, 2439, 12)) + +export const exp2440 = "test"; +>exp2440 : Symbol(exp2440, Decl(manyConstExports.ts, 2440, 12)) + +export const exp2441 = "test"; +>exp2441 : Symbol(exp2441, Decl(manyConstExports.ts, 2441, 12)) + +export const exp2442 = "test"; +>exp2442 : Symbol(exp2442, Decl(manyConstExports.ts, 2442, 12)) + +export const exp2443 = "test"; +>exp2443 : Symbol(exp2443, Decl(manyConstExports.ts, 2443, 12)) + +export const exp2444 = "test"; +>exp2444 : Symbol(exp2444, Decl(manyConstExports.ts, 2444, 12)) + +export const exp2445 = "test"; +>exp2445 : Symbol(exp2445, Decl(manyConstExports.ts, 2445, 12)) + +export const exp2446 = "test"; +>exp2446 : Symbol(exp2446, Decl(manyConstExports.ts, 2446, 12)) + +export const exp2447 = "test"; +>exp2447 : Symbol(exp2447, Decl(manyConstExports.ts, 2447, 12)) + +export const exp2448 = "test"; +>exp2448 : Symbol(exp2448, Decl(manyConstExports.ts, 2448, 12)) + +export const exp2449 = "test"; +>exp2449 : Symbol(exp2449, Decl(manyConstExports.ts, 2449, 12)) + +export const exp2450 = "test"; +>exp2450 : Symbol(exp2450, Decl(manyConstExports.ts, 2450, 12)) + +export const exp2451 = "test"; +>exp2451 : Symbol(exp2451, Decl(manyConstExports.ts, 2451, 12)) + +export const exp2452 = "test"; +>exp2452 : Symbol(exp2452, Decl(manyConstExports.ts, 2452, 12)) + +export const exp2453 = "test"; +>exp2453 : Symbol(exp2453, Decl(manyConstExports.ts, 2453, 12)) + +export const exp2454 = "test"; +>exp2454 : Symbol(exp2454, Decl(manyConstExports.ts, 2454, 12)) + +export const exp2455 = "test"; +>exp2455 : Symbol(exp2455, Decl(manyConstExports.ts, 2455, 12)) + +export const exp2456 = "test"; +>exp2456 : Symbol(exp2456, Decl(manyConstExports.ts, 2456, 12)) + +export const exp2457 = "test"; +>exp2457 : Symbol(exp2457, Decl(manyConstExports.ts, 2457, 12)) + +export const exp2458 = "test"; +>exp2458 : Symbol(exp2458, Decl(manyConstExports.ts, 2458, 12)) + +export const exp2459 = "test"; +>exp2459 : Symbol(exp2459, Decl(manyConstExports.ts, 2459, 12)) + +export const exp2460 = "test"; +>exp2460 : Symbol(exp2460, Decl(manyConstExports.ts, 2460, 12)) + +export const exp2461 = "test"; +>exp2461 : Symbol(exp2461, Decl(manyConstExports.ts, 2461, 12)) + +export const exp2462 = "test"; +>exp2462 : Symbol(exp2462, Decl(manyConstExports.ts, 2462, 12)) + +export const exp2463 = "test"; +>exp2463 : Symbol(exp2463, Decl(manyConstExports.ts, 2463, 12)) + +export const exp2464 = "test"; +>exp2464 : Symbol(exp2464, Decl(manyConstExports.ts, 2464, 12)) + +export const exp2465 = "test"; +>exp2465 : Symbol(exp2465, Decl(manyConstExports.ts, 2465, 12)) + +export const exp2466 = "test"; +>exp2466 : Symbol(exp2466, Decl(manyConstExports.ts, 2466, 12)) + +export const exp2467 = "test"; +>exp2467 : Symbol(exp2467, Decl(manyConstExports.ts, 2467, 12)) + +export const exp2468 = "test"; +>exp2468 : Symbol(exp2468, Decl(manyConstExports.ts, 2468, 12)) + +export const exp2469 = "test"; +>exp2469 : Symbol(exp2469, Decl(manyConstExports.ts, 2469, 12)) + +export const exp2470 = "test"; +>exp2470 : Symbol(exp2470, Decl(manyConstExports.ts, 2470, 12)) + +export const exp2471 = "test"; +>exp2471 : Symbol(exp2471, Decl(manyConstExports.ts, 2471, 12)) + +export const exp2472 = "test"; +>exp2472 : Symbol(exp2472, Decl(manyConstExports.ts, 2472, 12)) + +export const exp2473 = "test"; +>exp2473 : Symbol(exp2473, Decl(manyConstExports.ts, 2473, 12)) + +export const exp2474 = "test"; +>exp2474 : Symbol(exp2474, Decl(manyConstExports.ts, 2474, 12)) + +export const exp2475 = "test"; +>exp2475 : Symbol(exp2475, Decl(manyConstExports.ts, 2475, 12)) + +export const exp2476 = "test"; +>exp2476 : Symbol(exp2476, Decl(manyConstExports.ts, 2476, 12)) + +export const exp2477 = "test"; +>exp2477 : Symbol(exp2477, Decl(manyConstExports.ts, 2477, 12)) + +export const exp2478 = "test"; +>exp2478 : Symbol(exp2478, Decl(manyConstExports.ts, 2478, 12)) + +export const exp2479 = "test"; +>exp2479 : Symbol(exp2479, Decl(manyConstExports.ts, 2479, 12)) + +export const exp2480 = "test"; +>exp2480 : Symbol(exp2480, Decl(manyConstExports.ts, 2480, 12)) + +export const exp2481 = "test"; +>exp2481 : Symbol(exp2481, Decl(manyConstExports.ts, 2481, 12)) + +export const exp2482 = "test"; +>exp2482 : Symbol(exp2482, Decl(manyConstExports.ts, 2482, 12)) + +export const exp2483 = "test"; +>exp2483 : Symbol(exp2483, Decl(manyConstExports.ts, 2483, 12)) + +export const exp2484 = "test"; +>exp2484 : Symbol(exp2484, Decl(manyConstExports.ts, 2484, 12)) + +export const exp2485 = "test"; +>exp2485 : Symbol(exp2485, Decl(manyConstExports.ts, 2485, 12)) + +export const exp2486 = "test"; +>exp2486 : Symbol(exp2486, Decl(manyConstExports.ts, 2486, 12)) + +export const exp2487 = "test"; +>exp2487 : Symbol(exp2487, Decl(manyConstExports.ts, 2487, 12)) + +export const exp2488 = "test"; +>exp2488 : Symbol(exp2488, Decl(manyConstExports.ts, 2488, 12)) + +export const exp2489 = "test"; +>exp2489 : Symbol(exp2489, Decl(manyConstExports.ts, 2489, 12)) + +export const exp2490 = "test"; +>exp2490 : Symbol(exp2490, Decl(manyConstExports.ts, 2490, 12)) + +export const exp2491 = "test"; +>exp2491 : Symbol(exp2491, Decl(manyConstExports.ts, 2491, 12)) + +export const exp2492 = "test"; +>exp2492 : Symbol(exp2492, Decl(manyConstExports.ts, 2492, 12)) + +export const exp2493 = "test"; +>exp2493 : Symbol(exp2493, Decl(manyConstExports.ts, 2493, 12)) + +export const exp2494 = "test"; +>exp2494 : Symbol(exp2494, Decl(manyConstExports.ts, 2494, 12)) + +export const exp2495 = "test"; +>exp2495 : Symbol(exp2495, Decl(manyConstExports.ts, 2495, 12)) + +export const exp2496 = "test"; +>exp2496 : Symbol(exp2496, Decl(manyConstExports.ts, 2496, 12)) + +export const exp2497 = "test"; +>exp2497 : Symbol(exp2497, Decl(manyConstExports.ts, 2497, 12)) + +export const exp2498 = "test"; +>exp2498 : Symbol(exp2498, Decl(manyConstExports.ts, 2498, 12)) + +export const exp2499 = "test"; +>exp2499 : Symbol(exp2499, Decl(manyConstExports.ts, 2499, 12)) + +export const exp2500 = "test"; +>exp2500 : Symbol(exp2500, Decl(manyConstExports.ts, 2500, 12)) + +export const exp2501 = "test"; +>exp2501 : Symbol(exp2501, Decl(manyConstExports.ts, 2501, 12)) + +export const exp2502 = "test"; +>exp2502 : Symbol(exp2502, Decl(manyConstExports.ts, 2502, 12)) + +export const exp2503 = "test"; +>exp2503 : Symbol(exp2503, Decl(manyConstExports.ts, 2503, 12)) + +export const exp2504 = "test"; +>exp2504 : Symbol(exp2504, Decl(manyConstExports.ts, 2504, 12)) + +export const exp2505 = "test"; +>exp2505 : Symbol(exp2505, Decl(manyConstExports.ts, 2505, 12)) + +export const exp2506 = "test"; +>exp2506 : Symbol(exp2506, Decl(manyConstExports.ts, 2506, 12)) + +export const exp2507 = "test"; +>exp2507 : Symbol(exp2507, Decl(manyConstExports.ts, 2507, 12)) + +export const exp2508 = "test"; +>exp2508 : Symbol(exp2508, Decl(manyConstExports.ts, 2508, 12)) + +export const exp2509 = "test"; +>exp2509 : Symbol(exp2509, Decl(manyConstExports.ts, 2509, 12)) + +export const exp2510 = "test"; +>exp2510 : Symbol(exp2510, Decl(manyConstExports.ts, 2510, 12)) + +export const exp2511 = "test"; +>exp2511 : Symbol(exp2511, Decl(manyConstExports.ts, 2511, 12)) + +export const exp2512 = "test"; +>exp2512 : Symbol(exp2512, Decl(manyConstExports.ts, 2512, 12)) + +export const exp2513 = "test"; +>exp2513 : Symbol(exp2513, Decl(manyConstExports.ts, 2513, 12)) + +export const exp2514 = "test"; +>exp2514 : Symbol(exp2514, Decl(manyConstExports.ts, 2514, 12)) + +export const exp2515 = "test"; +>exp2515 : Symbol(exp2515, Decl(manyConstExports.ts, 2515, 12)) + +export const exp2516 = "test"; +>exp2516 : Symbol(exp2516, Decl(manyConstExports.ts, 2516, 12)) + +export const exp2517 = "test"; +>exp2517 : Symbol(exp2517, Decl(manyConstExports.ts, 2517, 12)) + +export const exp2518 = "test"; +>exp2518 : Symbol(exp2518, Decl(manyConstExports.ts, 2518, 12)) + +export const exp2519 = "test"; +>exp2519 : Symbol(exp2519, Decl(manyConstExports.ts, 2519, 12)) + +export const exp2520 = "test"; +>exp2520 : Symbol(exp2520, Decl(manyConstExports.ts, 2520, 12)) + +export const exp2521 = "test"; +>exp2521 : Symbol(exp2521, Decl(manyConstExports.ts, 2521, 12)) + +export const exp2522 = "test"; +>exp2522 : Symbol(exp2522, Decl(manyConstExports.ts, 2522, 12)) + +export const exp2523 = "test"; +>exp2523 : Symbol(exp2523, Decl(manyConstExports.ts, 2523, 12)) + +export const exp2524 = "test"; +>exp2524 : Symbol(exp2524, Decl(manyConstExports.ts, 2524, 12)) + +export const exp2525 = "test"; +>exp2525 : Symbol(exp2525, Decl(manyConstExports.ts, 2525, 12)) + +export const exp2526 = "test"; +>exp2526 : Symbol(exp2526, Decl(manyConstExports.ts, 2526, 12)) + +export const exp2527 = "test"; +>exp2527 : Symbol(exp2527, Decl(manyConstExports.ts, 2527, 12)) + +export const exp2528 = "test"; +>exp2528 : Symbol(exp2528, Decl(manyConstExports.ts, 2528, 12)) + +export const exp2529 = "test"; +>exp2529 : Symbol(exp2529, Decl(manyConstExports.ts, 2529, 12)) + +export const exp2530 = "test"; +>exp2530 : Symbol(exp2530, Decl(manyConstExports.ts, 2530, 12)) + +export const exp2531 = "test"; +>exp2531 : Symbol(exp2531, Decl(manyConstExports.ts, 2531, 12)) + +export const exp2532 = "test"; +>exp2532 : Symbol(exp2532, Decl(manyConstExports.ts, 2532, 12)) + +export const exp2533 = "test"; +>exp2533 : Symbol(exp2533, Decl(manyConstExports.ts, 2533, 12)) + +export const exp2534 = "test"; +>exp2534 : Symbol(exp2534, Decl(manyConstExports.ts, 2534, 12)) + +export const exp2535 = "test"; +>exp2535 : Symbol(exp2535, Decl(manyConstExports.ts, 2535, 12)) + +export const exp2536 = "test"; +>exp2536 : Symbol(exp2536, Decl(manyConstExports.ts, 2536, 12)) + +export const exp2537 = "test"; +>exp2537 : Symbol(exp2537, Decl(manyConstExports.ts, 2537, 12)) + +export const exp2538 = "test"; +>exp2538 : Symbol(exp2538, Decl(manyConstExports.ts, 2538, 12)) + +export const exp2539 = "test"; +>exp2539 : Symbol(exp2539, Decl(manyConstExports.ts, 2539, 12)) + +export const exp2540 = "test"; +>exp2540 : Symbol(exp2540, Decl(manyConstExports.ts, 2540, 12)) + +export const exp2541 = "test"; +>exp2541 : Symbol(exp2541, Decl(manyConstExports.ts, 2541, 12)) + +export const exp2542 = "test"; +>exp2542 : Symbol(exp2542, Decl(manyConstExports.ts, 2542, 12)) + +export const exp2543 = "test"; +>exp2543 : Symbol(exp2543, Decl(manyConstExports.ts, 2543, 12)) + +export const exp2544 = "test"; +>exp2544 : Symbol(exp2544, Decl(manyConstExports.ts, 2544, 12)) + +export const exp2545 = "test"; +>exp2545 : Symbol(exp2545, Decl(manyConstExports.ts, 2545, 12)) + +export const exp2546 = "test"; +>exp2546 : Symbol(exp2546, Decl(manyConstExports.ts, 2546, 12)) + +export const exp2547 = "test"; +>exp2547 : Symbol(exp2547, Decl(manyConstExports.ts, 2547, 12)) + +export const exp2548 = "test"; +>exp2548 : Symbol(exp2548, Decl(manyConstExports.ts, 2548, 12)) + +export const exp2549 = "test"; +>exp2549 : Symbol(exp2549, Decl(manyConstExports.ts, 2549, 12)) + +export const exp2550 = "test"; +>exp2550 : Symbol(exp2550, Decl(manyConstExports.ts, 2550, 12)) + +export const exp2551 = "test"; +>exp2551 : Symbol(exp2551, Decl(manyConstExports.ts, 2551, 12)) + +export const exp2552 = "test"; +>exp2552 : Symbol(exp2552, Decl(manyConstExports.ts, 2552, 12)) + +export const exp2553 = "test"; +>exp2553 : Symbol(exp2553, Decl(manyConstExports.ts, 2553, 12)) + +export const exp2554 = "test"; +>exp2554 : Symbol(exp2554, Decl(manyConstExports.ts, 2554, 12)) + +export const exp2555 = "test"; +>exp2555 : Symbol(exp2555, Decl(manyConstExports.ts, 2555, 12)) + +export const exp2556 = "test"; +>exp2556 : Symbol(exp2556, Decl(manyConstExports.ts, 2556, 12)) + +export const exp2557 = "test"; +>exp2557 : Symbol(exp2557, Decl(manyConstExports.ts, 2557, 12)) + +export const exp2558 = "test"; +>exp2558 : Symbol(exp2558, Decl(manyConstExports.ts, 2558, 12)) + +export const exp2559 = "test"; +>exp2559 : Symbol(exp2559, Decl(manyConstExports.ts, 2559, 12)) + +export const exp2560 = "test"; +>exp2560 : Symbol(exp2560, Decl(manyConstExports.ts, 2560, 12)) + +export const exp2561 = "test"; +>exp2561 : Symbol(exp2561, Decl(manyConstExports.ts, 2561, 12)) + +export const exp2562 = "test"; +>exp2562 : Symbol(exp2562, Decl(manyConstExports.ts, 2562, 12)) + +export const exp2563 = "test"; +>exp2563 : Symbol(exp2563, Decl(manyConstExports.ts, 2563, 12)) + +export const exp2564 = "test"; +>exp2564 : Symbol(exp2564, Decl(manyConstExports.ts, 2564, 12)) + +export const exp2565 = "test"; +>exp2565 : Symbol(exp2565, Decl(manyConstExports.ts, 2565, 12)) + +export const exp2566 = "test"; +>exp2566 : Symbol(exp2566, Decl(manyConstExports.ts, 2566, 12)) + +export const exp2567 = "test"; +>exp2567 : Symbol(exp2567, Decl(manyConstExports.ts, 2567, 12)) + +export const exp2568 = "test"; +>exp2568 : Symbol(exp2568, Decl(manyConstExports.ts, 2568, 12)) + +export const exp2569 = "test"; +>exp2569 : Symbol(exp2569, Decl(manyConstExports.ts, 2569, 12)) + +export const exp2570 = "test"; +>exp2570 : Symbol(exp2570, Decl(manyConstExports.ts, 2570, 12)) + +export const exp2571 = "test"; +>exp2571 : Symbol(exp2571, Decl(manyConstExports.ts, 2571, 12)) + +export const exp2572 = "test"; +>exp2572 : Symbol(exp2572, Decl(manyConstExports.ts, 2572, 12)) + +export const exp2573 = "test"; +>exp2573 : Symbol(exp2573, Decl(manyConstExports.ts, 2573, 12)) + +export const exp2574 = "test"; +>exp2574 : Symbol(exp2574, Decl(manyConstExports.ts, 2574, 12)) + +export const exp2575 = "test"; +>exp2575 : Symbol(exp2575, Decl(manyConstExports.ts, 2575, 12)) + +export const exp2576 = "test"; +>exp2576 : Symbol(exp2576, Decl(manyConstExports.ts, 2576, 12)) + +export const exp2577 = "test"; +>exp2577 : Symbol(exp2577, Decl(manyConstExports.ts, 2577, 12)) + +export const exp2578 = "test"; +>exp2578 : Symbol(exp2578, Decl(manyConstExports.ts, 2578, 12)) + +export const exp2579 = "test"; +>exp2579 : Symbol(exp2579, Decl(manyConstExports.ts, 2579, 12)) + +export const exp2580 = "test"; +>exp2580 : Symbol(exp2580, Decl(manyConstExports.ts, 2580, 12)) + +export const exp2581 = "test"; +>exp2581 : Symbol(exp2581, Decl(manyConstExports.ts, 2581, 12)) + +export const exp2582 = "test"; +>exp2582 : Symbol(exp2582, Decl(manyConstExports.ts, 2582, 12)) + +export const exp2583 = "test"; +>exp2583 : Symbol(exp2583, Decl(manyConstExports.ts, 2583, 12)) + +export const exp2584 = "test"; +>exp2584 : Symbol(exp2584, Decl(manyConstExports.ts, 2584, 12)) + +export const exp2585 = "test"; +>exp2585 : Symbol(exp2585, Decl(manyConstExports.ts, 2585, 12)) + +export const exp2586 = "test"; +>exp2586 : Symbol(exp2586, Decl(manyConstExports.ts, 2586, 12)) + +export const exp2587 = "test"; +>exp2587 : Symbol(exp2587, Decl(manyConstExports.ts, 2587, 12)) + +export const exp2588 = "test"; +>exp2588 : Symbol(exp2588, Decl(manyConstExports.ts, 2588, 12)) + +export const exp2589 = "test"; +>exp2589 : Symbol(exp2589, Decl(manyConstExports.ts, 2589, 12)) + +export const exp2590 = "test"; +>exp2590 : Symbol(exp2590, Decl(manyConstExports.ts, 2590, 12)) + +export const exp2591 = "test"; +>exp2591 : Symbol(exp2591, Decl(manyConstExports.ts, 2591, 12)) + +export const exp2592 = "test"; +>exp2592 : Symbol(exp2592, Decl(manyConstExports.ts, 2592, 12)) + +export const exp2593 = "test"; +>exp2593 : Symbol(exp2593, Decl(manyConstExports.ts, 2593, 12)) + +export const exp2594 = "test"; +>exp2594 : Symbol(exp2594, Decl(manyConstExports.ts, 2594, 12)) + +export const exp2595 = "test"; +>exp2595 : Symbol(exp2595, Decl(manyConstExports.ts, 2595, 12)) + +export const exp2596 = "test"; +>exp2596 : Symbol(exp2596, Decl(manyConstExports.ts, 2596, 12)) + +export const exp2597 = "test"; +>exp2597 : Symbol(exp2597, Decl(manyConstExports.ts, 2597, 12)) + +export const exp2598 = "test"; +>exp2598 : Symbol(exp2598, Decl(manyConstExports.ts, 2598, 12)) + +export const exp2599 = "test"; +>exp2599 : Symbol(exp2599, Decl(manyConstExports.ts, 2599, 12)) + +export const exp2600 = "test"; +>exp2600 : Symbol(exp2600, Decl(manyConstExports.ts, 2600, 12)) + +export const exp2601 = "test"; +>exp2601 : Symbol(exp2601, Decl(manyConstExports.ts, 2601, 12)) + +export const exp2602 = "test"; +>exp2602 : Symbol(exp2602, Decl(manyConstExports.ts, 2602, 12)) + +export const exp2603 = "test"; +>exp2603 : Symbol(exp2603, Decl(manyConstExports.ts, 2603, 12)) + +export const exp2604 = "test"; +>exp2604 : Symbol(exp2604, Decl(manyConstExports.ts, 2604, 12)) + +export const exp2605 = "test"; +>exp2605 : Symbol(exp2605, Decl(manyConstExports.ts, 2605, 12)) + +export const exp2606 = "test"; +>exp2606 : Symbol(exp2606, Decl(manyConstExports.ts, 2606, 12)) + +export const exp2607 = "test"; +>exp2607 : Symbol(exp2607, Decl(manyConstExports.ts, 2607, 12)) + +export const exp2608 = "test"; +>exp2608 : Symbol(exp2608, Decl(manyConstExports.ts, 2608, 12)) + +export const exp2609 = "test"; +>exp2609 : Symbol(exp2609, Decl(manyConstExports.ts, 2609, 12)) + +export const exp2610 = "test"; +>exp2610 : Symbol(exp2610, Decl(manyConstExports.ts, 2610, 12)) + +export const exp2611 = "test"; +>exp2611 : Symbol(exp2611, Decl(manyConstExports.ts, 2611, 12)) + +export const exp2612 = "test"; +>exp2612 : Symbol(exp2612, Decl(manyConstExports.ts, 2612, 12)) + +export const exp2613 = "test"; +>exp2613 : Symbol(exp2613, Decl(manyConstExports.ts, 2613, 12)) + +export const exp2614 = "test"; +>exp2614 : Symbol(exp2614, Decl(manyConstExports.ts, 2614, 12)) + +export const exp2615 = "test"; +>exp2615 : Symbol(exp2615, Decl(manyConstExports.ts, 2615, 12)) + +export const exp2616 = "test"; +>exp2616 : Symbol(exp2616, Decl(manyConstExports.ts, 2616, 12)) + +export const exp2617 = "test"; +>exp2617 : Symbol(exp2617, Decl(manyConstExports.ts, 2617, 12)) + +export const exp2618 = "test"; +>exp2618 : Symbol(exp2618, Decl(manyConstExports.ts, 2618, 12)) + +export const exp2619 = "test"; +>exp2619 : Symbol(exp2619, Decl(manyConstExports.ts, 2619, 12)) + +export const exp2620 = "test"; +>exp2620 : Symbol(exp2620, Decl(manyConstExports.ts, 2620, 12)) + +export const exp2621 = "test"; +>exp2621 : Symbol(exp2621, Decl(manyConstExports.ts, 2621, 12)) + +export const exp2622 = "test"; +>exp2622 : Symbol(exp2622, Decl(manyConstExports.ts, 2622, 12)) + +export const exp2623 = "test"; +>exp2623 : Symbol(exp2623, Decl(manyConstExports.ts, 2623, 12)) + +export const exp2624 = "test"; +>exp2624 : Symbol(exp2624, Decl(manyConstExports.ts, 2624, 12)) + +export const exp2625 = "test"; +>exp2625 : Symbol(exp2625, Decl(manyConstExports.ts, 2625, 12)) + +export const exp2626 = "test"; +>exp2626 : Symbol(exp2626, Decl(manyConstExports.ts, 2626, 12)) + +export const exp2627 = "test"; +>exp2627 : Symbol(exp2627, Decl(manyConstExports.ts, 2627, 12)) + +export const exp2628 = "test"; +>exp2628 : Symbol(exp2628, Decl(manyConstExports.ts, 2628, 12)) + +export const exp2629 = "test"; +>exp2629 : Symbol(exp2629, Decl(manyConstExports.ts, 2629, 12)) + +export const exp2630 = "test"; +>exp2630 : Symbol(exp2630, Decl(manyConstExports.ts, 2630, 12)) + +export const exp2631 = "test"; +>exp2631 : Symbol(exp2631, Decl(manyConstExports.ts, 2631, 12)) + +export const exp2632 = "test"; +>exp2632 : Symbol(exp2632, Decl(manyConstExports.ts, 2632, 12)) + +export const exp2633 = "test"; +>exp2633 : Symbol(exp2633, Decl(manyConstExports.ts, 2633, 12)) + +export const exp2634 = "test"; +>exp2634 : Symbol(exp2634, Decl(manyConstExports.ts, 2634, 12)) + +export const exp2635 = "test"; +>exp2635 : Symbol(exp2635, Decl(manyConstExports.ts, 2635, 12)) + +export const exp2636 = "test"; +>exp2636 : Symbol(exp2636, Decl(manyConstExports.ts, 2636, 12)) + +export const exp2637 = "test"; +>exp2637 : Symbol(exp2637, Decl(manyConstExports.ts, 2637, 12)) + +export const exp2638 = "test"; +>exp2638 : Symbol(exp2638, Decl(manyConstExports.ts, 2638, 12)) + +export const exp2639 = "test"; +>exp2639 : Symbol(exp2639, Decl(manyConstExports.ts, 2639, 12)) + +export const exp2640 = "test"; +>exp2640 : Symbol(exp2640, Decl(manyConstExports.ts, 2640, 12)) + +export const exp2641 = "test"; +>exp2641 : Symbol(exp2641, Decl(manyConstExports.ts, 2641, 12)) + +export const exp2642 = "test"; +>exp2642 : Symbol(exp2642, Decl(manyConstExports.ts, 2642, 12)) + +export const exp2643 = "test"; +>exp2643 : Symbol(exp2643, Decl(manyConstExports.ts, 2643, 12)) + +export const exp2644 = "test"; +>exp2644 : Symbol(exp2644, Decl(manyConstExports.ts, 2644, 12)) + +export const exp2645 = "test"; +>exp2645 : Symbol(exp2645, Decl(manyConstExports.ts, 2645, 12)) + +export const exp2646 = "test"; +>exp2646 : Symbol(exp2646, Decl(manyConstExports.ts, 2646, 12)) + +export const exp2647 = "test"; +>exp2647 : Symbol(exp2647, Decl(manyConstExports.ts, 2647, 12)) + +export const exp2648 = "test"; +>exp2648 : Symbol(exp2648, Decl(manyConstExports.ts, 2648, 12)) + +export const exp2649 = "test"; +>exp2649 : Symbol(exp2649, Decl(manyConstExports.ts, 2649, 12)) + +export const exp2650 = "test"; +>exp2650 : Symbol(exp2650, Decl(manyConstExports.ts, 2650, 12)) + +export const exp2651 = "test"; +>exp2651 : Symbol(exp2651, Decl(manyConstExports.ts, 2651, 12)) + +export const exp2652 = "test"; +>exp2652 : Symbol(exp2652, Decl(manyConstExports.ts, 2652, 12)) + +export const exp2653 = "test"; +>exp2653 : Symbol(exp2653, Decl(manyConstExports.ts, 2653, 12)) + +export const exp2654 = "test"; +>exp2654 : Symbol(exp2654, Decl(manyConstExports.ts, 2654, 12)) + +export const exp2655 = "test"; +>exp2655 : Symbol(exp2655, Decl(manyConstExports.ts, 2655, 12)) + +export const exp2656 = "test"; +>exp2656 : Symbol(exp2656, Decl(manyConstExports.ts, 2656, 12)) + +export const exp2657 = "test"; +>exp2657 : Symbol(exp2657, Decl(manyConstExports.ts, 2657, 12)) + +export const exp2658 = "test"; +>exp2658 : Symbol(exp2658, Decl(manyConstExports.ts, 2658, 12)) + +export const exp2659 = "test"; +>exp2659 : Symbol(exp2659, Decl(manyConstExports.ts, 2659, 12)) + +export const exp2660 = "test"; +>exp2660 : Symbol(exp2660, Decl(manyConstExports.ts, 2660, 12)) + +export const exp2661 = "test"; +>exp2661 : Symbol(exp2661, Decl(manyConstExports.ts, 2661, 12)) + +export const exp2662 = "test"; +>exp2662 : Symbol(exp2662, Decl(manyConstExports.ts, 2662, 12)) + +export const exp2663 = "test"; +>exp2663 : Symbol(exp2663, Decl(manyConstExports.ts, 2663, 12)) + +export const exp2664 = "test"; +>exp2664 : Symbol(exp2664, Decl(manyConstExports.ts, 2664, 12)) + +export const exp2665 = "test"; +>exp2665 : Symbol(exp2665, Decl(manyConstExports.ts, 2665, 12)) + +export const exp2666 = "test"; +>exp2666 : Symbol(exp2666, Decl(manyConstExports.ts, 2666, 12)) + +export const exp2667 = "test"; +>exp2667 : Symbol(exp2667, Decl(manyConstExports.ts, 2667, 12)) + +export const exp2668 = "test"; +>exp2668 : Symbol(exp2668, Decl(manyConstExports.ts, 2668, 12)) + +export const exp2669 = "test"; +>exp2669 : Symbol(exp2669, Decl(manyConstExports.ts, 2669, 12)) + +export const exp2670 = "test"; +>exp2670 : Symbol(exp2670, Decl(manyConstExports.ts, 2670, 12)) + +export const exp2671 = "test"; +>exp2671 : Symbol(exp2671, Decl(manyConstExports.ts, 2671, 12)) + +export const exp2672 = "test"; +>exp2672 : Symbol(exp2672, Decl(manyConstExports.ts, 2672, 12)) + +export const exp2673 = "test"; +>exp2673 : Symbol(exp2673, Decl(manyConstExports.ts, 2673, 12)) + +export const exp2674 = "test"; +>exp2674 : Symbol(exp2674, Decl(manyConstExports.ts, 2674, 12)) + +export const exp2675 = "test"; +>exp2675 : Symbol(exp2675, Decl(manyConstExports.ts, 2675, 12)) + +export const exp2676 = "test"; +>exp2676 : Symbol(exp2676, Decl(manyConstExports.ts, 2676, 12)) + +export const exp2677 = "test"; +>exp2677 : Symbol(exp2677, Decl(manyConstExports.ts, 2677, 12)) + +export const exp2678 = "test"; +>exp2678 : Symbol(exp2678, Decl(manyConstExports.ts, 2678, 12)) + +export const exp2679 = "test"; +>exp2679 : Symbol(exp2679, Decl(manyConstExports.ts, 2679, 12)) + +export const exp2680 = "test"; +>exp2680 : Symbol(exp2680, Decl(manyConstExports.ts, 2680, 12)) + +export const exp2681 = "test"; +>exp2681 : Symbol(exp2681, Decl(manyConstExports.ts, 2681, 12)) + +export const exp2682 = "test"; +>exp2682 : Symbol(exp2682, Decl(manyConstExports.ts, 2682, 12)) + +export const exp2683 = "test"; +>exp2683 : Symbol(exp2683, Decl(manyConstExports.ts, 2683, 12)) + +export const exp2684 = "test"; +>exp2684 : Symbol(exp2684, Decl(manyConstExports.ts, 2684, 12)) + +export const exp2685 = "test"; +>exp2685 : Symbol(exp2685, Decl(manyConstExports.ts, 2685, 12)) + +export const exp2686 = "test"; +>exp2686 : Symbol(exp2686, Decl(manyConstExports.ts, 2686, 12)) + +export const exp2687 = "test"; +>exp2687 : Symbol(exp2687, Decl(manyConstExports.ts, 2687, 12)) + +export const exp2688 = "test"; +>exp2688 : Symbol(exp2688, Decl(manyConstExports.ts, 2688, 12)) + +export const exp2689 = "test"; +>exp2689 : Symbol(exp2689, Decl(manyConstExports.ts, 2689, 12)) + +export const exp2690 = "test"; +>exp2690 : Symbol(exp2690, Decl(manyConstExports.ts, 2690, 12)) + +export const exp2691 = "test"; +>exp2691 : Symbol(exp2691, Decl(manyConstExports.ts, 2691, 12)) + +export const exp2692 = "test"; +>exp2692 : Symbol(exp2692, Decl(manyConstExports.ts, 2692, 12)) + +export const exp2693 = "test"; +>exp2693 : Symbol(exp2693, Decl(manyConstExports.ts, 2693, 12)) + +export const exp2694 = "test"; +>exp2694 : Symbol(exp2694, Decl(manyConstExports.ts, 2694, 12)) + +export const exp2695 = "test"; +>exp2695 : Symbol(exp2695, Decl(manyConstExports.ts, 2695, 12)) + +export const exp2696 = "test"; +>exp2696 : Symbol(exp2696, Decl(manyConstExports.ts, 2696, 12)) + +export const exp2697 = "test"; +>exp2697 : Symbol(exp2697, Decl(manyConstExports.ts, 2697, 12)) + +export const exp2698 = "test"; +>exp2698 : Symbol(exp2698, Decl(manyConstExports.ts, 2698, 12)) + +export const exp2699 = "test"; +>exp2699 : Symbol(exp2699, Decl(manyConstExports.ts, 2699, 12)) + +export const exp2700 = "test"; +>exp2700 : Symbol(exp2700, Decl(manyConstExports.ts, 2700, 12)) + +export const exp2701 = "test"; +>exp2701 : Symbol(exp2701, Decl(manyConstExports.ts, 2701, 12)) + +export const exp2702 = "test"; +>exp2702 : Symbol(exp2702, Decl(manyConstExports.ts, 2702, 12)) + +export const exp2703 = "test"; +>exp2703 : Symbol(exp2703, Decl(manyConstExports.ts, 2703, 12)) + +export const exp2704 = "test"; +>exp2704 : Symbol(exp2704, Decl(manyConstExports.ts, 2704, 12)) + +export const exp2705 = "test"; +>exp2705 : Symbol(exp2705, Decl(manyConstExports.ts, 2705, 12)) + +export const exp2706 = "test"; +>exp2706 : Symbol(exp2706, Decl(manyConstExports.ts, 2706, 12)) + +export const exp2707 = "test"; +>exp2707 : Symbol(exp2707, Decl(manyConstExports.ts, 2707, 12)) + +export const exp2708 = "test"; +>exp2708 : Symbol(exp2708, Decl(manyConstExports.ts, 2708, 12)) + +export const exp2709 = "test"; +>exp2709 : Symbol(exp2709, Decl(manyConstExports.ts, 2709, 12)) + +export const exp2710 = "test"; +>exp2710 : Symbol(exp2710, Decl(manyConstExports.ts, 2710, 12)) + +export const exp2711 = "test"; +>exp2711 : Symbol(exp2711, Decl(manyConstExports.ts, 2711, 12)) + +export const exp2712 = "test"; +>exp2712 : Symbol(exp2712, Decl(manyConstExports.ts, 2712, 12)) + +export const exp2713 = "test"; +>exp2713 : Symbol(exp2713, Decl(manyConstExports.ts, 2713, 12)) + +export const exp2714 = "test"; +>exp2714 : Symbol(exp2714, Decl(manyConstExports.ts, 2714, 12)) + +export const exp2715 = "test"; +>exp2715 : Symbol(exp2715, Decl(manyConstExports.ts, 2715, 12)) + +export const exp2716 = "test"; +>exp2716 : Symbol(exp2716, Decl(manyConstExports.ts, 2716, 12)) + +export const exp2717 = "test"; +>exp2717 : Symbol(exp2717, Decl(manyConstExports.ts, 2717, 12)) + +export const exp2718 = "test"; +>exp2718 : Symbol(exp2718, Decl(manyConstExports.ts, 2718, 12)) + +export const exp2719 = "test"; +>exp2719 : Symbol(exp2719, Decl(manyConstExports.ts, 2719, 12)) + +export const exp2720 = "test"; +>exp2720 : Symbol(exp2720, Decl(manyConstExports.ts, 2720, 12)) + +export const exp2721 = "test"; +>exp2721 : Symbol(exp2721, Decl(manyConstExports.ts, 2721, 12)) + +export const exp2722 = "test"; +>exp2722 : Symbol(exp2722, Decl(manyConstExports.ts, 2722, 12)) + +export const exp2723 = "test"; +>exp2723 : Symbol(exp2723, Decl(manyConstExports.ts, 2723, 12)) + +export const exp2724 = "test"; +>exp2724 : Symbol(exp2724, Decl(manyConstExports.ts, 2724, 12)) + +export const exp2725 = "test"; +>exp2725 : Symbol(exp2725, Decl(manyConstExports.ts, 2725, 12)) + +export const exp2726 = "test"; +>exp2726 : Symbol(exp2726, Decl(manyConstExports.ts, 2726, 12)) + +export const exp2727 = "test"; +>exp2727 : Symbol(exp2727, Decl(manyConstExports.ts, 2727, 12)) + +export const exp2728 = "test"; +>exp2728 : Symbol(exp2728, Decl(manyConstExports.ts, 2728, 12)) + +export const exp2729 = "test"; +>exp2729 : Symbol(exp2729, Decl(manyConstExports.ts, 2729, 12)) + +export const exp2730 = "test"; +>exp2730 : Symbol(exp2730, Decl(manyConstExports.ts, 2730, 12)) + +export const exp2731 = "test"; +>exp2731 : Symbol(exp2731, Decl(manyConstExports.ts, 2731, 12)) + +export const exp2732 = "test"; +>exp2732 : Symbol(exp2732, Decl(manyConstExports.ts, 2732, 12)) + +export const exp2733 = "test"; +>exp2733 : Symbol(exp2733, Decl(manyConstExports.ts, 2733, 12)) + +export const exp2734 = "test"; +>exp2734 : Symbol(exp2734, Decl(manyConstExports.ts, 2734, 12)) + +export const exp2735 = "test"; +>exp2735 : Symbol(exp2735, Decl(manyConstExports.ts, 2735, 12)) + +export const exp2736 = "test"; +>exp2736 : Symbol(exp2736, Decl(manyConstExports.ts, 2736, 12)) + +export const exp2737 = "test"; +>exp2737 : Symbol(exp2737, Decl(manyConstExports.ts, 2737, 12)) + +export const exp2738 = "test"; +>exp2738 : Symbol(exp2738, Decl(manyConstExports.ts, 2738, 12)) + +export const exp2739 = "test"; +>exp2739 : Symbol(exp2739, Decl(manyConstExports.ts, 2739, 12)) + +export const exp2740 = "test"; +>exp2740 : Symbol(exp2740, Decl(manyConstExports.ts, 2740, 12)) + +export const exp2741 = "test"; +>exp2741 : Symbol(exp2741, Decl(manyConstExports.ts, 2741, 12)) + +export const exp2742 = "test"; +>exp2742 : Symbol(exp2742, Decl(manyConstExports.ts, 2742, 12)) + +export const exp2743 = "test"; +>exp2743 : Symbol(exp2743, Decl(manyConstExports.ts, 2743, 12)) + +export const exp2744 = "test"; +>exp2744 : Symbol(exp2744, Decl(manyConstExports.ts, 2744, 12)) + +export const exp2745 = "test"; +>exp2745 : Symbol(exp2745, Decl(manyConstExports.ts, 2745, 12)) + +export const exp2746 = "test"; +>exp2746 : Symbol(exp2746, Decl(manyConstExports.ts, 2746, 12)) + +export const exp2747 = "test"; +>exp2747 : Symbol(exp2747, Decl(manyConstExports.ts, 2747, 12)) + +export const exp2748 = "test"; +>exp2748 : Symbol(exp2748, Decl(manyConstExports.ts, 2748, 12)) + +export const exp2749 = "test"; +>exp2749 : Symbol(exp2749, Decl(manyConstExports.ts, 2749, 12)) + +export const exp2750 = "test"; +>exp2750 : Symbol(exp2750, Decl(manyConstExports.ts, 2750, 12)) + +export const exp2751 = "test"; +>exp2751 : Symbol(exp2751, Decl(manyConstExports.ts, 2751, 12)) + +export const exp2752 = "test"; +>exp2752 : Symbol(exp2752, Decl(manyConstExports.ts, 2752, 12)) + +export const exp2753 = "test"; +>exp2753 : Symbol(exp2753, Decl(manyConstExports.ts, 2753, 12)) + +export const exp2754 = "test"; +>exp2754 : Symbol(exp2754, Decl(manyConstExports.ts, 2754, 12)) + +export const exp2755 = "test"; +>exp2755 : Symbol(exp2755, Decl(manyConstExports.ts, 2755, 12)) + +export const exp2756 = "test"; +>exp2756 : Symbol(exp2756, Decl(manyConstExports.ts, 2756, 12)) + +export const exp2757 = "test"; +>exp2757 : Symbol(exp2757, Decl(manyConstExports.ts, 2757, 12)) + +export const exp2758 = "test"; +>exp2758 : Symbol(exp2758, Decl(manyConstExports.ts, 2758, 12)) + +export const exp2759 = "test"; +>exp2759 : Symbol(exp2759, Decl(manyConstExports.ts, 2759, 12)) + +export const exp2760 = "test"; +>exp2760 : Symbol(exp2760, Decl(manyConstExports.ts, 2760, 12)) + +export const exp2761 = "test"; +>exp2761 : Symbol(exp2761, Decl(manyConstExports.ts, 2761, 12)) + +export const exp2762 = "test"; +>exp2762 : Symbol(exp2762, Decl(manyConstExports.ts, 2762, 12)) + +export const exp2763 = "test"; +>exp2763 : Symbol(exp2763, Decl(manyConstExports.ts, 2763, 12)) + +export const exp2764 = "test"; +>exp2764 : Symbol(exp2764, Decl(manyConstExports.ts, 2764, 12)) + +export const exp2765 = "test"; +>exp2765 : Symbol(exp2765, Decl(manyConstExports.ts, 2765, 12)) + +export const exp2766 = "test"; +>exp2766 : Symbol(exp2766, Decl(manyConstExports.ts, 2766, 12)) + +export const exp2767 = "test"; +>exp2767 : Symbol(exp2767, Decl(manyConstExports.ts, 2767, 12)) + +export const exp2768 = "test"; +>exp2768 : Symbol(exp2768, Decl(manyConstExports.ts, 2768, 12)) + +export const exp2769 = "test"; +>exp2769 : Symbol(exp2769, Decl(manyConstExports.ts, 2769, 12)) + +export const exp2770 = "test"; +>exp2770 : Symbol(exp2770, Decl(manyConstExports.ts, 2770, 12)) + +export const exp2771 = "test"; +>exp2771 : Symbol(exp2771, Decl(manyConstExports.ts, 2771, 12)) + +export const exp2772 = "test"; +>exp2772 : Symbol(exp2772, Decl(manyConstExports.ts, 2772, 12)) + +export const exp2773 = "test"; +>exp2773 : Symbol(exp2773, Decl(manyConstExports.ts, 2773, 12)) + +export const exp2774 = "test"; +>exp2774 : Symbol(exp2774, Decl(manyConstExports.ts, 2774, 12)) + +export const exp2775 = "test"; +>exp2775 : Symbol(exp2775, Decl(manyConstExports.ts, 2775, 12)) + +export const exp2776 = "test"; +>exp2776 : Symbol(exp2776, Decl(manyConstExports.ts, 2776, 12)) + +export const exp2777 = "test"; +>exp2777 : Symbol(exp2777, Decl(manyConstExports.ts, 2777, 12)) + +export const exp2778 = "test"; +>exp2778 : Symbol(exp2778, Decl(manyConstExports.ts, 2778, 12)) + +export const exp2779 = "test"; +>exp2779 : Symbol(exp2779, Decl(manyConstExports.ts, 2779, 12)) + +export const exp2780 = "test"; +>exp2780 : Symbol(exp2780, Decl(manyConstExports.ts, 2780, 12)) + +export const exp2781 = "test"; +>exp2781 : Symbol(exp2781, Decl(manyConstExports.ts, 2781, 12)) + +export const exp2782 = "test"; +>exp2782 : Symbol(exp2782, Decl(manyConstExports.ts, 2782, 12)) + +export const exp2783 = "test"; +>exp2783 : Symbol(exp2783, Decl(manyConstExports.ts, 2783, 12)) + +export const exp2784 = "test"; +>exp2784 : Symbol(exp2784, Decl(manyConstExports.ts, 2784, 12)) + +export const exp2785 = "test"; +>exp2785 : Symbol(exp2785, Decl(manyConstExports.ts, 2785, 12)) + +export const exp2786 = "test"; +>exp2786 : Symbol(exp2786, Decl(manyConstExports.ts, 2786, 12)) + +export const exp2787 = "test"; +>exp2787 : Symbol(exp2787, Decl(manyConstExports.ts, 2787, 12)) + +export const exp2788 = "test"; +>exp2788 : Symbol(exp2788, Decl(manyConstExports.ts, 2788, 12)) + +export const exp2789 = "test"; +>exp2789 : Symbol(exp2789, Decl(manyConstExports.ts, 2789, 12)) + +export const exp2790 = "test"; +>exp2790 : Symbol(exp2790, Decl(manyConstExports.ts, 2790, 12)) + +export const exp2791 = "test"; +>exp2791 : Symbol(exp2791, Decl(manyConstExports.ts, 2791, 12)) + +export const exp2792 = "test"; +>exp2792 : Symbol(exp2792, Decl(manyConstExports.ts, 2792, 12)) + +export const exp2793 = "test"; +>exp2793 : Symbol(exp2793, Decl(manyConstExports.ts, 2793, 12)) + +export const exp2794 = "test"; +>exp2794 : Symbol(exp2794, Decl(manyConstExports.ts, 2794, 12)) + +export const exp2795 = "test"; +>exp2795 : Symbol(exp2795, Decl(manyConstExports.ts, 2795, 12)) + +export const exp2796 = "test"; +>exp2796 : Symbol(exp2796, Decl(manyConstExports.ts, 2796, 12)) + +export const exp2797 = "test"; +>exp2797 : Symbol(exp2797, Decl(manyConstExports.ts, 2797, 12)) + +export const exp2798 = "test"; +>exp2798 : Symbol(exp2798, Decl(manyConstExports.ts, 2798, 12)) + +export const exp2799 = "test"; +>exp2799 : Symbol(exp2799, Decl(manyConstExports.ts, 2799, 12)) + +export const exp2800 = "test"; +>exp2800 : Symbol(exp2800, Decl(manyConstExports.ts, 2800, 12)) + +export const exp2801 = "test"; +>exp2801 : Symbol(exp2801, Decl(manyConstExports.ts, 2801, 12)) + +export const exp2802 = "test"; +>exp2802 : Symbol(exp2802, Decl(manyConstExports.ts, 2802, 12)) + +export const exp2803 = "test"; +>exp2803 : Symbol(exp2803, Decl(manyConstExports.ts, 2803, 12)) + +export const exp2804 = "test"; +>exp2804 : Symbol(exp2804, Decl(manyConstExports.ts, 2804, 12)) + +export const exp2805 = "test"; +>exp2805 : Symbol(exp2805, Decl(manyConstExports.ts, 2805, 12)) + +export const exp2806 = "test"; +>exp2806 : Symbol(exp2806, Decl(manyConstExports.ts, 2806, 12)) + +export const exp2807 = "test"; +>exp2807 : Symbol(exp2807, Decl(manyConstExports.ts, 2807, 12)) + +export const exp2808 = "test"; +>exp2808 : Symbol(exp2808, Decl(manyConstExports.ts, 2808, 12)) + +export const exp2809 = "test"; +>exp2809 : Symbol(exp2809, Decl(manyConstExports.ts, 2809, 12)) + +export const exp2810 = "test"; +>exp2810 : Symbol(exp2810, Decl(manyConstExports.ts, 2810, 12)) + +export const exp2811 = "test"; +>exp2811 : Symbol(exp2811, Decl(manyConstExports.ts, 2811, 12)) + +export const exp2812 = "test"; +>exp2812 : Symbol(exp2812, Decl(manyConstExports.ts, 2812, 12)) + +export const exp2813 = "test"; +>exp2813 : Symbol(exp2813, Decl(manyConstExports.ts, 2813, 12)) + +export const exp2814 = "test"; +>exp2814 : Symbol(exp2814, Decl(manyConstExports.ts, 2814, 12)) + +export const exp2815 = "test"; +>exp2815 : Symbol(exp2815, Decl(manyConstExports.ts, 2815, 12)) + +export const exp2816 = "test"; +>exp2816 : Symbol(exp2816, Decl(manyConstExports.ts, 2816, 12)) + +export const exp2817 = "test"; +>exp2817 : Symbol(exp2817, Decl(manyConstExports.ts, 2817, 12)) + +export const exp2818 = "test"; +>exp2818 : Symbol(exp2818, Decl(manyConstExports.ts, 2818, 12)) + +export const exp2819 = "test"; +>exp2819 : Symbol(exp2819, Decl(manyConstExports.ts, 2819, 12)) + +export const exp2820 = "test"; +>exp2820 : Symbol(exp2820, Decl(manyConstExports.ts, 2820, 12)) + +export const exp2821 = "test"; +>exp2821 : Symbol(exp2821, Decl(manyConstExports.ts, 2821, 12)) + +export const exp2822 = "test"; +>exp2822 : Symbol(exp2822, Decl(manyConstExports.ts, 2822, 12)) + +export const exp2823 = "test"; +>exp2823 : Symbol(exp2823, Decl(manyConstExports.ts, 2823, 12)) + +export const exp2824 = "test"; +>exp2824 : Symbol(exp2824, Decl(manyConstExports.ts, 2824, 12)) + +export const exp2825 = "test"; +>exp2825 : Symbol(exp2825, Decl(manyConstExports.ts, 2825, 12)) + +export const exp2826 = "test"; +>exp2826 : Symbol(exp2826, Decl(manyConstExports.ts, 2826, 12)) + +export const exp2827 = "test"; +>exp2827 : Symbol(exp2827, Decl(manyConstExports.ts, 2827, 12)) + +export const exp2828 = "test"; +>exp2828 : Symbol(exp2828, Decl(manyConstExports.ts, 2828, 12)) + +export const exp2829 = "test"; +>exp2829 : Symbol(exp2829, Decl(manyConstExports.ts, 2829, 12)) + +export const exp2830 = "test"; +>exp2830 : Symbol(exp2830, Decl(manyConstExports.ts, 2830, 12)) + +export const exp2831 = "test"; +>exp2831 : Symbol(exp2831, Decl(manyConstExports.ts, 2831, 12)) + +export const exp2832 = "test"; +>exp2832 : Symbol(exp2832, Decl(manyConstExports.ts, 2832, 12)) + +export const exp2833 = "test"; +>exp2833 : Symbol(exp2833, Decl(manyConstExports.ts, 2833, 12)) + +export const exp2834 = "test"; +>exp2834 : Symbol(exp2834, Decl(manyConstExports.ts, 2834, 12)) + +export const exp2835 = "test"; +>exp2835 : Symbol(exp2835, Decl(manyConstExports.ts, 2835, 12)) + +export const exp2836 = "test"; +>exp2836 : Symbol(exp2836, Decl(manyConstExports.ts, 2836, 12)) + +export const exp2837 = "test"; +>exp2837 : Symbol(exp2837, Decl(manyConstExports.ts, 2837, 12)) + +export const exp2838 = "test"; +>exp2838 : Symbol(exp2838, Decl(manyConstExports.ts, 2838, 12)) + +export const exp2839 = "test"; +>exp2839 : Symbol(exp2839, Decl(manyConstExports.ts, 2839, 12)) + +export const exp2840 = "test"; +>exp2840 : Symbol(exp2840, Decl(manyConstExports.ts, 2840, 12)) + +export const exp2841 = "test"; +>exp2841 : Symbol(exp2841, Decl(manyConstExports.ts, 2841, 12)) + +export const exp2842 = "test"; +>exp2842 : Symbol(exp2842, Decl(manyConstExports.ts, 2842, 12)) + +export const exp2843 = "test"; +>exp2843 : Symbol(exp2843, Decl(manyConstExports.ts, 2843, 12)) + +export const exp2844 = "test"; +>exp2844 : Symbol(exp2844, Decl(manyConstExports.ts, 2844, 12)) + +export const exp2845 = "test"; +>exp2845 : Symbol(exp2845, Decl(manyConstExports.ts, 2845, 12)) + +export const exp2846 = "test"; +>exp2846 : Symbol(exp2846, Decl(manyConstExports.ts, 2846, 12)) + +export const exp2847 = "test"; +>exp2847 : Symbol(exp2847, Decl(manyConstExports.ts, 2847, 12)) + +export const exp2848 = "test"; +>exp2848 : Symbol(exp2848, Decl(manyConstExports.ts, 2848, 12)) + +export const exp2849 = "test"; +>exp2849 : Symbol(exp2849, Decl(manyConstExports.ts, 2849, 12)) + +export const exp2850 = "test"; +>exp2850 : Symbol(exp2850, Decl(manyConstExports.ts, 2850, 12)) + +export const exp2851 = "test"; +>exp2851 : Symbol(exp2851, Decl(manyConstExports.ts, 2851, 12)) + +export const exp2852 = "test"; +>exp2852 : Symbol(exp2852, Decl(manyConstExports.ts, 2852, 12)) + +export const exp2853 = "test"; +>exp2853 : Symbol(exp2853, Decl(manyConstExports.ts, 2853, 12)) + +export const exp2854 = "test"; +>exp2854 : Symbol(exp2854, Decl(manyConstExports.ts, 2854, 12)) + +export const exp2855 = "test"; +>exp2855 : Symbol(exp2855, Decl(manyConstExports.ts, 2855, 12)) + +export const exp2856 = "test"; +>exp2856 : Symbol(exp2856, Decl(manyConstExports.ts, 2856, 12)) + +export const exp2857 = "test"; +>exp2857 : Symbol(exp2857, Decl(manyConstExports.ts, 2857, 12)) + +export const exp2858 = "test"; +>exp2858 : Symbol(exp2858, Decl(manyConstExports.ts, 2858, 12)) + +export const exp2859 = "test"; +>exp2859 : Symbol(exp2859, Decl(manyConstExports.ts, 2859, 12)) + +export const exp2860 = "test"; +>exp2860 : Symbol(exp2860, Decl(manyConstExports.ts, 2860, 12)) + +export const exp2861 = "test"; +>exp2861 : Symbol(exp2861, Decl(manyConstExports.ts, 2861, 12)) + +export const exp2862 = "test"; +>exp2862 : Symbol(exp2862, Decl(manyConstExports.ts, 2862, 12)) + +export const exp2863 = "test"; +>exp2863 : Symbol(exp2863, Decl(manyConstExports.ts, 2863, 12)) + +export const exp2864 = "test"; +>exp2864 : Symbol(exp2864, Decl(manyConstExports.ts, 2864, 12)) + +export const exp2865 = "test"; +>exp2865 : Symbol(exp2865, Decl(manyConstExports.ts, 2865, 12)) + +export const exp2866 = "test"; +>exp2866 : Symbol(exp2866, Decl(manyConstExports.ts, 2866, 12)) + +export const exp2867 = "test"; +>exp2867 : Symbol(exp2867, Decl(manyConstExports.ts, 2867, 12)) + +export const exp2868 = "test"; +>exp2868 : Symbol(exp2868, Decl(manyConstExports.ts, 2868, 12)) + +export const exp2869 = "test"; +>exp2869 : Symbol(exp2869, Decl(manyConstExports.ts, 2869, 12)) + +export const exp2870 = "test"; +>exp2870 : Symbol(exp2870, Decl(manyConstExports.ts, 2870, 12)) + +export const exp2871 = "test"; +>exp2871 : Symbol(exp2871, Decl(manyConstExports.ts, 2871, 12)) + +export const exp2872 = "test"; +>exp2872 : Symbol(exp2872, Decl(manyConstExports.ts, 2872, 12)) + +export const exp2873 = "test"; +>exp2873 : Symbol(exp2873, Decl(manyConstExports.ts, 2873, 12)) + +export const exp2874 = "test"; +>exp2874 : Symbol(exp2874, Decl(manyConstExports.ts, 2874, 12)) + +export const exp2875 = "test"; +>exp2875 : Symbol(exp2875, Decl(manyConstExports.ts, 2875, 12)) + +export const exp2876 = "test"; +>exp2876 : Symbol(exp2876, Decl(manyConstExports.ts, 2876, 12)) + +export const exp2877 = "test"; +>exp2877 : Symbol(exp2877, Decl(manyConstExports.ts, 2877, 12)) + +export const exp2878 = "test"; +>exp2878 : Symbol(exp2878, Decl(manyConstExports.ts, 2878, 12)) + +export const exp2879 = "test"; +>exp2879 : Symbol(exp2879, Decl(manyConstExports.ts, 2879, 12)) + +export const exp2880 = "test"; +>exp2880 : Symbol(exp2880, Decl(manyConstExports.ts, 2880, 12)) + +export const exp2881 = "test"; +>exp2881 : Symbol(exp2881, Decl(manyConstExports.ts, 2881, 12)) + +export const exp2882 = "test"; +>exp2882 : Symbol(exp2882, Decl(manyConstExports.ts, 2882, 12)) + +export const exp2883 = "test"; +>exp2883 : Symbol(exp2883, Decl(manyConstExports.ts, 2883, 12)) + +export const exp2884 = "test"; +>exp2884 : Symbol(exp2884, Decl(manyConstExports.ts, 2884, 12)) + +export const exp2885 = "test"; +>exp2885 : Symbol(exp2885, Decl(manyConstExports.ts, 2885, 12)) + +export const exp2886 = "test"; +>exp2886 : Symbol(exp2886, Decl(manyConstExports.ts, 2886, 12)) + +export const exp2887 = "test"; +>exp2887 : Symbol(exp2887, Decl(manyConstExports.ts, 2887, 12)) + +export const exp2888 = "test"; +>exp2888 : Symbol(exp2888, Decl(manyConstExports.ts, 2888, 12)) + +export const exp2889 = "test"; +>exp2889 : Symbol(exp2889, Decl(manyConstExports.ts, 2889, 12)) + +export const exp2890 = "test"; +>exp2890 : Symbol(exp2890, Decl(manyConstExports.ts, 2890, 12)) + +export const exp2891 = "test"; +>exp2891 : Symbol(exp2891, Decl(manyConstExports.ts, 2891, 12)) + +export const exp2892 = "test"; +>exp2892 : Symbol(exp2892, Decl(manyConstExports.ts, 2892, 12)) + +export const exp2893 = "test"; +>exp2893 : Symbol(exp2893, Decl(manyConstExports.ts, 2893, 12)) + +export const exp2894 = "test"; +>exp2894 : Symbol(exp2894, Decl(manyConstExports.ts, 2894, 12)) + +export const exp2895 = "test"; +>exp2895 : Symbol(exp2895, Decl(manyConstExports.ts, 2895, 12)) + +export const exp2896 = "test"; +>exp2896 : Symbol(exp2896, Decl(manyConstExports.ts, 2896, 12)) + +export const exp2897 = "test"; +>exp2897 : Symbol(exp2897, Decl(manyConstExports.ts, 2897, 12)) + +export const exp2898 = "test"; +>exp2898 : Symbol(exp2898, Decl(manyConstExports.ts, 2898, 12)) + +export const exp2899 = "test"; +>exp2899 : Symbol(exp2899, Decl(manyConstExports.ts, 2899, 12)) + +export const exp2900 = "test"; +>exp2900 : Symbol(exp2900, Decl(manyConstExports.ts, 2900, 12)) + +export const exp2901 = "test"; +>exp2901 : Symbol(exp2901, Decl(manyConstExports.ts, 2901, 12)) + +export const exp2902 = "test"; +>exp2902 : Symbol(exp2902, Decl(manyConstExports.ts, 2902, 12)) + +export const exp2903 = "test"; +>exp2903 : Symbol(exp2903, Decl(manyConstExports.ts, 2903, 12)) + +export const exp2904 = "test"; +>exp2904 : Symbol(exp2904, Decl(manyConstExports.ts, 2904, 12)) + +export const exp2905 = "test"; +>exp2905 : Symbol(exp2905, Decl(manyConstExports.ts, 2905, 12)) + +export const exp2906 = "test"; +>exp2906 : Symbol(exp2906, Decl(manyConstExports.ts, 2906, 12)) + +export const exp2907 = "test"; +>exp2907 : Symbol(exp2907, Decl(manyConstExports.ts, 2907, 12)) + +export const exp2908 = "test"; +>exp2908 : Symbol(exp2908, Decl(manyConstExports.ts, 2908, 12)) + +export const exp2909 = "test"; +>exp2909 : Symbol(exp2909, Decl(manyConstExports.ts, 2909, 12)) + +export const exp2910 = "test"; +>exp2910 : Symbol(exp2910, Decl(manyConstExports.ts, 2910, 12)) + +export const exp2911 = "test"; +>exp2911 : Symbol(exp2911, Decl(manyConstExports.ts, 2911, 12)) + +export const exp2912 = "test"; +>exp2912 : Symbol(exp2912, Decl(manyConstExports.ts, 2912, 12)) + +export const exp2913 = "test"; +>exp2913 : Symbol(exp2913, Decl(manyConstExports.ts, 2913, 12)) + +export const exp2914 = "test"; +>exp2914 : Symbol(exp2914, Decl(manyConstExports.ts, 2914, 12)) + +export const exp2915 = "test"; +>exp2915 : Symbol(exp2915, Decl(manyConstExports.ts, 2915, 12)) + +export const exp2916 = "test"; +>exp2916 : Symbol(exp2916, Decl(manyConstExports.ts, 2916, 12)) + +export const exp2917 = "test"; +>exp2917 : Symbol(exp2917, Decl(manyConstExports.ts, 2917, 12)) + +export const exp2918 = "test"; +>exp2918 : Symbol(exp2918, Decl(manyConstExports.ts, 2918, 12)) + +export const exp2919 = "test"; +>exp2919 : Symbol(exp2919, Decl(manyConstExports.ts, 2919, 12)) + +export const exp2920 = "test"; +>exp2920 : Symbol(exp2920, Decl(manyConstExports.ts, 2920, 12)) + +export const exp2921 = "test"; +>exp2921 : Symbol(exp2921, Decl(manyConstExports.ts, 2921, 12)) + +export const exp2922 = "test"; +>exp2922 : Symbol(exp2922, Decl(manyConstExports.ts, 2922, 12)) + +export const exp2923 = "test"; +>exp2923 : Symbol(exp2923, Decl(manyConstExports.ts, 2923, 12)) + +export const exp2924 = "test"; +>exp2924 : Symbol(exp2924, Decl(manyConstExports.ts, 2924, 12)) + +export const exp2925 = "test"; +>exp2925 : Symbol(exp2925, Decl(manyConstExports.ts, 2925, 12)) + +export const exp2926 = "test"; +>exp2926 : Symbol(exp2926, Decl(manyConstExports.ts, 2926, 12)) + +export const exp2927 = "test"; +>exp2927 : Symbol(exp2927, Decl(manyConstExports.ts, 2927, 12)) + +export const exp2928 = "test"; +>exp2928 : Symbol(exp2928, Decl(manyConstExports.ts, 2928, 12)) + +export const exp2929 = "test"; +>exp2929 : Symbol(exp2929, Decl(manyConstExports.ts, 2929, 12)) + +export const exp2930 = "test"; +>exp2930 : Symbol(exp2930, Decl(manyConstExports.ts, 2930, 12)) + +export const exp2931 = "test"; +>exp2931 : Symbol(exp2931, Decl(manyConstExports.ts, 2931, 12)) + +export const exp2932 = "test"; +>exp2932 : Symbol(exp2932, Decl(manyConstExports.ts, 2932, 12)) + +export const exp2933 = "test"; +>exp2933 : Symbol(exp2933, Decl(manyConstExports.ts, 2933, 12)) + +export const exp2934 = "test"; +>exp2934 : Symbol(exp2934, Decl(manyConstExports.ts, 2934, 12)) + +export const exp2935 = "test"; +>exp2935 : Symbol(exp2935, Decl(manyConstExports.ts, 2935, 12)) + +export const exp2936 = "test"; +>exp2936 : Symbol(exp2936, Decl(manyConstExports.ts, 2936, 12)) + +export const exp2937 = "test"; +>exp2937 : Symbol(exp2937, Decl(manyConstExports.ts, 2937, 12)) + +export const exp2938 = "test"; +>exp2938 : Symbol(exp2938, Decl(manyConstExports.ts, 2938, 12)) + +export const exp2939 = "test"; +>exp2939 : Symbol(exp2939, Decl(manyConstExports.ts, 2939, 12)) + +export const exp2940 = "test"; +>exp2940 : Symbol(exp2940, Decl(manyConstExports.ts, 2940, 12)) + +export const exp2941 = "test"; +>exp2941 : Symbol(exp2941, Decl(manyConstExports.ts, 2941, 12)) + +export const exp2942 = "test"; +>exp2942 : Symbol(exp2942, Decl(manyConstExports.ts, 2942, 12)) + +export const exp2943 = "test"; +>exp2943 : Symbol(exp2943, Decl(manyConstExports.ts, 2943, 12)) + +export const exp2944 = "test"; +>exp2944 : Symbol(exp2944, Decl(manyConstExports.ts, 2944, 12)) + +export const exp2945 = "test"; +>exp2945 : Symbol(exp2945, Decl(manyConstExports.ts, 2945, 12)) + +export const exp2946 = "test"; +>exp2946 : Symbol(exp2946, Decl(manyConstExports.ts, 2946, 12)) + +export const exp2947 = "test"; +>exp2947 : Symbol(exp2947, Decl(manyConstExports.ts, 2947, 12)) + +export const exp2948 = "test"; +>exp2948 : Symbol(exp2948, Decl(manyConstExports.ts, 2948, 12)) + +export const exp2949 = "test"; +>exp2949 : Symbol(exp2949, Decl(manyConstExports.ts, 2949, 12)) + +export const exp2950 = "test"; +>exp2950 : Symbol(exp2950, Decl(manyConstExports.ts, 2950, 12)) + +export const exp2951 = "test"; +>exp2951 : Symbol(exp2951, Decl(manyConstExports.ts, 2951, 12)) + +export const exp2952 = "test"; +>exp2952 : Symbol(exp2952, Decl(manyConstExports.ts, 2952, 12)) + +export const exp2953 = "test"; +>exp2953 : Symbol(exp2953, Decl(manyConstExports.ts, 2953, 12)) + +export const exp2954 = "test"; +>exp2954 : Symbol(exp2954, Decl(manyConstExports.ts, 2954, 12)) + +export const exp2955 = "test"; +>exp2955 : Symbol(exp2955, Decl(manyConstExports.ts, 2955, 12)) + +export const exp2956 = "test"; +>exp2956 : Symbol(exp2956, Decl(manyConstExports.ts, 2956, 12)) + +export const exp2957 = "test"; +>exp2957 : Symbol(exp2957, Decl(manyConstExports.ts, 2957, 12)) + +export const exp2958 = "test"; +>exp2958 : Symbol(exp2958, Decl(manyConstExports.ts, 2958, 12)) + +export const exp2959 = "test"; +>exp2959 : Symbol(exp2959, Decl(manyConstExports.ts, 2959, 12)) + +export const exp2960 = "test"; +>exp2960 : Symbol(exp2960, Decl(manyConstExports.ts, 2960, 12)) + +export const exp2961 = "test"; +>exp2961 : Symbol(exp2961, Decl(manyConstExports.ts, 2961, 12)) + +export const exp2962 = "test"; +>exp2962 : Symbol(exp2962, Decl(manyConstExports.ts, 2962, 12)) + +export const exp2963 = "test"; +>exp2963 : Symbol(exp2963, Decl(manyConstExports.ts, 2963, 12)) + +export const exp2964 = "test"; +>exp2964 : Symbol(exp2964, Decl(manyConstExports.ts, 2964, 12)) + +export const exp2965 = "test"; +>exp2965 : Symbol(exp2965, Decl(manyConstExports.ts, 2965, 12)) + +export const exp2966 = "test"; +>exp2966 : Symbol(exp2966, Decl(manyConstExports.ts, 2966, 12)) + +export const exp2967 = "test"; +>exp2967 : Symbol(exp2967, Decl(manyConstExports.ts, 2967, 12)) + +export const exp2968 = "test"; +>exp2968 : Symbol(exp2968, Decl(manyConstExports.ts, 2968, 12)) + +export const exp2969 = "test"; +>exp2969 : Symbol(exp2969, Decl(manyConstExports.ts, 2969, 12)) + +export const exp2970 = "test"; +>exp2970 : Symbol(exp2970, Decl(manyConstExports.ts, 2970, 12)) + +export const exp2971 = "test"; +>exp2971 : Symbol(exp2971, Decl(manyConstExports.ts, 2971, 12)) + +export const exp2972 = "test"; +>exp2972 : Symbol(exp2972, Decl(manyConstExports.ts, 2972, 12)) + +export const exp2973 = "test"; +>exp2973 : Symbol(exp2973, Decl(manyConstExports.ts, 2973, 12)) + +export const exp2974 = "test"; +>exp2974 : Symbol(exp2974, Decl(manyConstExports.ts, 2974, 12)) + +export const exp2975 = "test"; +>exp2975 : Symbol(exp2975, Decl(manyConstExports.ts, 2975, 12)) + +export const exp2976 = "test"; +>exp2976 : Symbol(exp2976, Decl(manyConstExports.ts, 2976, 12)) + +export const exp2977 = "test"; +>exp2977 : Symbol(exp2977, Decl(manyConstExports.ts, 2977, 12)) + +export const exp2978 = "test"; +>exp2978 : Symbol(exp2978, Decl(manyConstExports.ts, 2978, 12)) + +export const exp2979 = "test"; +>exp2979 : Symbol(exp2979, Decl(manyConstExports.ts, 2979, 12)) + +export const exp2980 = "test"; +>exp2980 : Symbol(exp2980, Decl(manyConstExports.ts, 2980, 12)) + +export const exp2981 = "test"; +>exp2981 : Symbol(exp2981, Decl(manyConstExports.ts, 2981, 12)) + +export const exp2982 = "test"; +>exp2982 : Symbol(exp2982, Decl(manyConstExports.ts, 2982, 12)) + +export const exp2983 = "test"; +>exp2983 : Symbol(exp2983, Decl(manyConstExports.ts, 2983, 12)) + +export const exp2984 = "test"; +>exp2984 : Symbol(exp2984, Decl(manyConstExports.ts, 2984, 12)) + +export const exp2985 = "test"; +>exp2985 : Symbol(exp2985, Decl(manyConstExports.ts, 2985, 12)) + +export const exp2986 = "test"; +>exp2986 : Symbol(exp2986, Decl(manyConstExports.ts, 2986, 12)) + +export const exp2987 = "test"; +>exp2987 : Symbol(exp2987, Decl(manyConstExports.ts, 2987, 12)) + +export const exp2988 = "test"; +>exp2988 : Symbol(exp2988, Decl(manyConstExports.ts, 2988, 12)) + +export const exp2989 = "test"; +>exp2989 : Symbol(exp2989, Decl(manyConstExports.ts, 2989, 12)) + +export const exp2990 = "test"; +>exp2990 : Symbol(exp2990, Decl(manyConstExports.ts, 2990, 12)) + +export const exp2991 = "test"; +>exp2991 : Symbol(exp2991, Decl(manyConstExports.ts, 2991, 12)) + +export const exp2992 = "test"; +>exp2992 : Symbol(exp2992, Decl(manyConstExports.ts, 2992, 12)) + +export const exp2993 = "test"; +>exp2993 : Symbol(exp2993, Decl(manyConstExports.ts, 2993, 12)) + +export const exp2994 = "test"; +>exp2994 : Symbol(exp2994, Decl(manyConstExports.ts, 2994, 12)) + +export const exp2995 = "test"; +>exp2995 : Symbol(exp2995, Decl(manyConstExports.ts, 2995, 12)) + +export const exp2996 = "test"; +>exp2996 : Symbol(exp2996, Decl(manyConstExports.ts, 2996, 12)) + +export const exp2997 = "test"; +>exp2997 : Symbol(exp2997, Decl(manyConstExports.ts, 2997, 12)) + +export const exp2998 = "test"; +>exp2998 : Symbol(exp2998, Decl(manyConstExports.ts, 2998, 12)) + +export const exp2999 = "test"; +>exp2999 : Symbol(exp2999, Decl(manyConstExports.ts, 2999, 12)) + +export const exp3000 = "test"; +>exp3000 : Symbol(exp3000, Decl(manyConstExports.ts, 3000, 12)) + +export const exp3001 = "test"; +>exp3001 : Symbol(exp3001, Decl(manyConstExports.ts, 3001, 12)) + +export const exp3002 = "test"; +>exp3002 : Symbol(exp3002, Decl(manyConstExports.ts, 3002, 12)) + +export const exp3003 = "test"; +>exp3003 : Symbol(exp3003, Decl(manyConstExports.ts, 3003, 12)) + +export const exp3004 = "test"; +>exp3004 : Symbol(exp3004, Decl(manyConstExports.ts, 3004, 12)) + +export const exp3005 = "test"; +>exp3005 : Symbol(exp3005, Decl(manyConstExports.ts, 3005, 12)) + +export const exp3006 = "test"; +>exp3006 : Symbol(exp3006, Decl(manyConstExports.ts, 3006, 12)) + +export const exp3007 = "test"; +>exp3007 : Symbol(exp3007, Decl(manyConstExports.ts, 3007, 12)) + +export const exp3008 = "test"; +>exp3008 : Symbol(exp3008, Decl(manyConstExports.ts, 3008, 12)) + +export const exp3009 = "test"; +>exp3009 : Symbol(exp3009, Decl(manyConstExports.ts, 3009, 12)) + +export const exp3010 = "test"; +>exp3010 : Symbol(exp3010, Decl(manyConstExports.ts, 3010, 12)) + +export const exp3011 = "test"; +>exp3011 : Symbol(exp3011, Decl(manyConstExports.ts, 3011, 12)) + +export const exp3012 = "test"; +>exp3012 : Symbol(exp3012, Decl(manyConstExports.ts, 3012, 12)) + +export const exp3013 = "test"; +>exp3013 : Symbol(exp3013, Decl(manyConstExports.ts, 3013, 12)) + +export const exp3014 = "test"; +>exp3014 : Symbol(exp3014, Decl(manyConstExports.ts, 3014, 12)) + +export const exp3015 = "test"; +>exp3015 : Symbol(exp3015, Decl(manyConstExports.ts, 3015, 12)) + +export const exp3016 = "test"; +>exp3016 : Symbol(exp3016, Decl(manyConstExports.ts, 3016, 12)) + +export const exp3017 = "test"; +>exp3017 : Symbol(exp3017, Decl(manyConstExports.ts, 3017, 12)) + +export const exp3018 = "test"; +>exp3018 : Symbol(exp3018, Decl(manyConstExports.ts, 3018, 12)) + +export const exp3019 = "test"; +>exp3019 : Symbol(exp3019, Decl(manyConstExports.ts, 3019, 12)) + +export const exp3020 = "test"; +>exp3020 : Symbol(exp3020, Decl(manyConstExports.ts, 3020, 12)) + +export const exp3021 = "test"; +>exp3021 : Symbol(exp3021, Decl(manyConstExports.ts, 3021, 12)) + +export const exp3022 = "test"; +>exp3022 : Symbol(exp3022, Decl(manyConstExports.ts, 3022, 12)) + +export const exp3023 = "test"; +>exp3023 : Symbol(exp3023, Decl(manyConstExports.ts, 3023, 12)) + +export const exp3024 = "test"; +>exp3024 : Symbol(exp3024, Decl(manyConstExports.ts, 3024, 12)) + +export const exp3025 = "test"; +>exp3025 : Symbol(exp3025, Decl(manyConstExports.ts, 3025, 12)) + +export const exp3026 = "test"; +>exp3026 : Symbol(exp3026, Decl(manyConstExports.ts, 3026, 12)) + +export const exp3027 = "test"; +>exp3027 : Symbol(exp3027, Decl(manyConstExports.ts, 3027, 12)) + +export const exp3028 = "test"; +>exp3028 : Symbol(exp3028, Decl(manyConstExports.ts, 3028, 12)) + +export const exp3029 = "test"; +>exp3029 : Symbol(exp3029, Decl(manyConstExports.ts, 3029, 12)) + +export const exp3030 = "test"; +>exp3030 : Symbol(exp3030, Decl(manyConstExports.ts, 3030, 12)) + +export const exp3031 = "test"; +>exp3031 : Symbol(exp3031, Decl(manyConstExports.ts, 3031, 12)) + +export const exp3032 = "test"; +>exp3032 : Symbol(exp3032, Decl(manyConstExports.ts, 3032, 12)) + +export const exp3033 = "test"; +>exp3033 : Symbol(exp3033, Decl(manyConstExports.ts, 3033, 12)) + +export const exp3034 = "test"; +>exp3034 : Symbol(exp3034, Decl(manyConstExports.ts, 3034, 12)) + +export const exp3035 = "test"; +>exp3035 : Symbol(exp3035, Decl(manyConstExports.ts, 3035, 12)) + +export const exp3036 = "test"; +>exp3036 : Symbol(exp3036, Decl(manyConstExports.ts, 3036, 12)) + +export const exp3037 = "test"; +>exp3037 : Symbol(exp3037, Decl(manyConstExports.ts, 3037, 12)) + +export const exp3038 = "test"; +>exp3038 : Symbol(exp3038, Decl(manyConstExports.ts, 3038, 12)) + +export const exp3039 = "test"; +>exp3039 : Symbol(exp3039, Decl(manyConstExports.ts, 3039, 12)) + +export const exp3040 = "test"; +>exp3040 : Symbol(exp3040, Decl(manyConstExports.ts, 3040, 12)) + +export const exp3041 = "test"; +>exp3041 : Symbol(exp3041, Decl(manyConstExports.ts, 3041, 12)) + +export const exp3042 = "test"; +>exp3042 : Symbol(exp3042, Decl(manyConstExports.ts, 3042, 12)) + +export const exp3043 = "test"; +>exp3043 : Symbol(exp3043, Decl(manyConstExports.ts, 3043, 12)) + +export const exp3044 = "test"; +>exp3044 : Symbol(exp3044, Decl(manyConstExports.ts, 3044, 12)) + +export const exp3045 = "test"; +>exp3045 : Symbol(exp3045, Decl(manyConstExports.ts, 3045, 12)) + +export const exp3046 = "test"; +>exp3046 : Symbol(exp3046, Decl(manyConstExports.ts, 3046, 12)) + +export const exp3047 = "test"; +>exp3047 : Symbol(exp3047, Decl(manyConstExports.ts, 3047, 12)) + +export const exp3048 = "test"; +>exp3048 : Symbol(exp3048, Decl(manyConstExports.ts, 3048, 12)) + +export const exp3049 = "test"; +>exp3049 : Symbol(exp3049, Decl(manyConstExports.ts, 3049, 12)) + +export const exp3050 = "test"; +>exp3050 : Symbol(exp3050, Decl(manyConstExports.ts, 3050, 12)) + +export const exp3051 = "test"; +>exp3051 : Symbol(exp3051, Decl(manyConstExports.ts, 3051, 12)) + +export const exp3052 = "test"; +>exp3052 : Symbol(exp3052, Decl(manyConstExports.ts, 3052, 12)) + +export const exp3053 = "test"; +>exp3053 : Symbol(exp3053, Decl(manyConstExports.ts, 3053, 12)) + +export const exp3054 = "test"; +>exp3054 : Symbol(exp3054, Decl(manyConstExports.ts, 3054, 12)) + +export const exp3055 = "test"; +>exp3055 : Symbol(exp3055, Decl(manyConstExports.ts, 3055, 12)) + +export const exp3056 = "test"; +>exp3056 : Symbol(exp3056, Decl(manyConstExports.ts, 3056, 12)) + +export const exp3057 = "test"; +>exp3057 : Symbol(exp3057, Decl(manyConstExports.ts, 3057, 12)) + +export const exp3058 = "test"; +>exp3058 : Symbol(exp3058, Decl(manyConstExports.ts, 3058, 12)) + +export const exp3059 = "test"; +>exp3059 : Symbol(exp3059, Decl(manyConstExports.ts, 3059, 12)) + +export const exp3060 = "test"; +>exp3060 : Symbol(exp3060, Decl(manyConstExports.ts, 3060, 12)) + +export const exp3061 = "test"; +>exp3061 : Symbol(exp3061, Decl(manyConstExports.ts, 3061, 12)) + +export const exp3062 = "test"; +>exp3062 : Symbol(exp3062, Decl(manyConstExports.ts, 3062, 12)) + +export const exp3063 = "test"; +>exp3063 : Symbol(exp3063, Decl(manyConstExports.ts, 3063, 12)) + +export const exp3064 = "test"; +>exp3064 : Symbol(exp3064, Decl(manyConstExports.ts, 3064, 12)) + +export const exp3065 = "test"; +>exp3065 : Symbol(exp3065, Decl(manyConstExports.ts, 3065, 12)) + +export const exp3066 = "test"; +>exp3066 : Symbol(exp3066, Decl(manyConstExports.ts, 3066, 12)) + +export const exp3067 = "test"; +>exp3067 : Symbol(exp3067, Decl(manyConstExports.ts, 3067, 12)) + +export const exp3068 = "test"; +>exp3068 : Symbol(exp3068, Decl(manyConstExports.ts, 3068, 12)) + +export const exp3069 = "test"; +>exp3069 : Symbol(exp3069, Decl(manyConstExports.ts, 3069, 12)) + +export const exp3070 = "test"; +>exp3070 : Symbol(exp3070, Decl(manyConstExports.ts, 3070, 12)) + +export const exp3071 = "test"; +>exp3071 : Symbol(exp3071, Decl(manyConstExports.ts, 3071, 12)) + +export const exp3072 = "test"; +>exp3072 : Symbol(exp3072, Decl(manyConstExports.ts, 3072, 12)) + +export const exp3073 = "test"; +>exp3073 : Symbol(exp3073, Decl(manyConstExports.ts, 3073, 12)) + +export const exp3074 = "test"; +>exp3074 : Symbol(exp3074, Decl(manyConstExports.ts, 3074, 12)) + +export const exp3075 = "test"; +>exp3075 : Symbol(exp3075, Decl(manyConstExports.ts, 3075, 12)) + +export const exp3076 = "test"; +>exp3076 : Symbol(exp3076, Decl(manyConstExports.ts, 3076, 12)) + +export const exp3077 = "test"; +>exp3077 : Symbol(exp3077, Decl(manyConstExports.ts, 3077, 12)) + +export const exp3078 = "test"; +>exp3078 : Symbol(exp3078, Decl(manyConstExports.ts, 3078, 12)) + +export const exp3079 = "test"; +>exp3079 : Symbol(exp3079, Decl(manyConstExports.ts, 3079, 12)) + +export const exp3080 = "test"; +>exp3080 : Symbol(exp3080, Decl(manyConstExports.ts, 3080, 12)) + +export const exp3081 = "test"; +>exp3081 : Symbol(exp3081, Decl(manyConstExports.ts, 3081, 12)) + +export const exp3082 = "test"; +>exp3082 : Symbol(exp3082, Decl(manyConstExports.ts, 3082, 12)) + +export const exp3083 = "test"; +>exp3083 : Symbol(exp3083, Decl(manyConstExports.ts, 3083, 12)) + +export const exp3084 = "test"; +>exp3084 : Symbol(exp3084, Decl(manyConstExports.ts, 3084, 12)) + +export const exp3085 = "test"; +>exp3085 : Symbol(exp3085, Decl(manyConstExports.ts, 3085, 12)) + +export const exp3086 = "test"; +>exp3086 : Symbol(exp3086, Decl(manyConstExports.ts, 3086, 12)) + +export const exp3087 = "test"; +>exp3087 : Symbol(exp3087, Decl(manyConstExports.ts, 3087, 12)) + +export const exp3088 = "test"; +>exp3088 : Symbol(exp3088, Decl(manyConstExports.ts, 3088, 12)) + +export const exp3089 = "test"; +>exp3089 : Symbol(exp3089, Decl(manyConstExports.ts, 3089, 12)) + +export const exp3090 = "test"; +>exp3090 : Symbol(exp3090, Decl(manyConstExports.ts, 3090, 12)) + +export const exp3091 = "test"; +>exp3091 : Symbol(exp3091, Decl(manyConstExports.ts, 3091, 12)) + +export const exp3092 = "test"; +>exp3092 : Symbol(exp3092, Decl(manyConstExports.ts, 3092, 12)) + +export const exp3093 = "test"; +>exp3093 : Symbol(exp3093, Decl(manyConstExports.ts, 3093, 12)) + +export const exp3094 = "test"; +>exp3094 : Symbol(exp3094, Decl(manyConstExports.ts, 3094, 12)) + +export const exp3095 = "test"; +>exp3095 : Symbol(exp3095, Decl(manyConstExports.ts, 3095, 12)) + +export const exp3096 = "test"; +>exp3096 : Symbol(exp3096, Decl(manyConstExports.ts, 3096, 12)) + +export const exp3097 = "test"; +>exp3097 : Symbol(exp3097, Decl(manyConstExports.ts, 3097, 12)) + +export const exp3098 = "test"; +>exp3098 : Symbol(exp3098, Decl(manyConstExports.ts, 3098, 12)) + +export const exp3099 = "test"; +>exp3099 : Symbol(exp3099, Decl(manyConstExports.ts, 3099, 12)) + +export const exp3100 = "test"; +>exp3100 : Symbol(exp3100, Decl(manyConstExports.ts, 3100, 12)) + +export const exp3101 = "test"; +>exp3101 : Symbol(exp3101, Decl(manyConstExports.ts, 3101, 12)) + +export const exp3102 = "test"; +>exp3102 : Symbol(exp3102, Decl(manyConstExports.ts, 3102, 12)) + +export const exp3103 = "test"; +>exp3103 : Symbol(exp3103, Decl(manyConstExports.ts, 3103, 12)) + +export const exp3104 = "test"; +>exp3104 : Symbol(exp3104, Decl(manyConstExports.ts, 3104, 12)) + +export const exp3105 = "test"; +>exp3105 : Symbol(exp3105, Decl(manyConstExports.ts, 3105, 12)) + +export const exp3106 = "test"; +>exp3106 : Symbol(exp3106, Decl(manyConstExports.ts, 3106, 12)) + +export const exp3107 = "test"; +>exp3107 : Symbol(exp3107, Decl(manyConstExports.ts, 3107, 12)) + +export const exp3108 = "test"; +>exp3108 : Symbol(exp3108, Decl(manyConstExports.ts, 3108, 12)) + +export const exp3109 = "test"; +>exp3109 : Symbol(exp3109, Decl(manyConstExports.ts, 3109, 12)) + +export const exp3110 = "test"; +>exp3110 : Symbol(exp3110, Decl(manyConstExports.ts, 3110, 12)) + +export const exp3111 = "test"; +>exp3111 : Symbol(exp3111, Decl(manyConstExports.ts, 3111, 12)) + +export const exp3112 = "test"; +>exp3112 : Symbol(exp3112, Decl(manyConstExports.ts, 3112, 12)) + +export const exp3113 = "test"; +>exp3113 : Symbol(exp3113, Decl(manyConstExports.ts, 3113, 12)) + +export const exp3114 = "test"; +>exp3114 : Symbol(exp3114, Decl(manyConstExports.ts, 3114, 12)) + +export const exp3115 = "test"; +>exp3115 : Symbol(exp3115, Decl(manyConstExports.ts, 3115, 12)) + +export const exp3116 = "test"; +>exp3116 : Symbol(exp3116, Decl(manyConstExports.ts, 3116, 12)) + +export const exp3117 = "test"; +>exp3117 : Symbol(exp3117, Decl(manyConstExports.ts, 3117, 12)) + +export const exp3118 = "test"; +>exp3118 : Symbol(exp3118, Decl(manyConstExports.ts, 3118, 12)) + +export const exp3119 = "test"; +>exp3119 : Symbol(exp3119, Decl(manyConstExports.ts, 3119, 12)) + +export const exp3120 = "test"; +>exp3120 : Symbol(exp3120, Decl(manyConstExports.ts, 3120, 12)) + +export const exp3121 = "test"; +>exp3121 : Symbol(exp3121, Decl(manyConstExports.ts, 3121, 12)) + +export const exp3122 = "test"; +>exp3122 : Symbol(exp3122, Decl(manyConstExports.ts, 3122, 12)) + +export const exp3123 = "test"; +>exp3123 : Symbol(exp3123, Decl(manyConstExports.ts, 3123, 12)) + +export const exp3124 = "test"; +>exp3124 : Symbol(exp3124, Decl(manyConstExports.ts, 3124, 12)) + +export const exp3125 = "test"; +>exp3125 : Symbol(exp3125, Decl(manyConstExports.ts, 3125, 12)) + +export const exp3126 = "test"; +>exp3126 : Symbol(exp3126, Decl(manyConstExports.ts, 3126, 12)) + +export const exp3127 = "test"; +>exp3127 : Symbol(exp3127, Decl(manyConstExports.ts, 3127, 12)) + +export const exp3128 = "test"; +>exp3128 : Symbol(exp3128, Decl(manyConstExports.ts, 3128, 12)) + +export const exp3129 = "test"; +>exp3129 : Symbol(exp3129, Decl(manyConstExports.ts, 3129, 12)) + +export const exp3130 = "test"; +>exp3130 : Symbol(exp3130, Decl(manyConstExports.ts, 3130, 12)) + +export const exp3131 = "test"; +>exp3131 : Symbol(exp3131, Decl(manyConstExports.ts, 3131, 12)) + +export const exp3132 = "test"; +>exp3132 : Symbol(exp3132, Decl(manyConstExports.ts, 3132, 12)) + +export const exp3133 = "test"; +>exp3133 : Symbol(exp3133, Decl(manyConstExports.ts, 3133, 12)) + +export const exp3134 = "test"; +>exp3134 : Symbol(exp3134, Decl(manyConstExports.ts, 3134, 12)) + +export const exp3135 = "test"; +>exp3135 : Symbol(exp3135, Decl(manyConstExports.ts, 3135, 12)) + +export const exp3136 = "test"; +>exp3136 : Symbol(exp3136, Decl(manyConstExports.ts, 3136, 12)) + +export const exp3137 = "test"; +>exp3137 : Symbol(exp3137, Decl(manyConstExports.ts, 3137, 12)) + +export const exp3138 = "test"; +>exp3138 : Symbol(exp3138, Decl(manyConstExports.ts, 3138, 12)) + +export const exp3139 = "test"; +>exp3139 : Symbol(exp3139, Decl(manyConstExports.ts, 3139, 12)) + +export const exp3140 = "test"; +>exp3140 : Symbol(exp3140, Decl(manyConstExports.ts, 3140, 12)) + +export const exp3141 = "test"; +>exp3141 : Symbol(exp3141, Decl(manyConstExports.ts, 3141, 12)) + +export const exp3142 = "test"; +>exp3142 : Symbol(exp3142, Decl(manyConstExports.ts, 3142, 12)) + +export const exp3143 = "test"; +>exp3143 : Symbol(exp3143, Decl(manyConstExports.ts, 3143, 12)) + +export const exp3144 = "test"; +>exp3144 : Symbol(exp3144, Decl(manyConstExports.ts, 3144, 12)) + +export const exp3145 = "test"; +>exp3145 : Symbol(exp3145, Decl(manyConstExports.ts, 3145, 12)) + +export const exp3146 = "test"; +>exp3146 : Symbol(exp3146, Decl(manyConstExports.ts, 3146, 12)) + +export const exp3147 = "test"; +>exp3147 : Symbol(exp3147, Decl(manyConstExports.ts, 3147, 12)) + +export const exp3148 = "test"; +>exp3148 : Symbol(exp3148, Decl(manyConstExports.ts, 3148, 12)) + +export const exp3149 = "test"; +>exp3149 : Symbol(exp3149, Decl(manyConstExports.ts, 3149, 12)) + +export const exp3150 = "test"; +>exp3150 : Symbol(exp3150, Decl(manyConstExports.ts, 3150, 12)) + +export const exp3151 = "test"; +>exp3151 : Symbol(exp3151, Decl(manyConstExports.ts, 3151, 12)) + +export const exp3152 = "test"; +>exp3152 : Symbol(exp3152, Decl(manyConstExports.ts, 3152, 12)) + +export const exp3153 = "test"; +>exp3153 : Symbol(exp3153, Decl(manyConstExports.ts, 3153, 12)) + +export const exp3154 = "test"; +>exp3154 : Symbol(exp3154, Decl(manyConstExports.ts, 3154, 12)) + +export const exp3155 = "test"; +>exp3155 : Symbol(exp3155, Decl(manyConstExports.ts, 3155, 12)) + +export const exp3156 = "test"; +>exp3156 : Symbol(exp3156, Decl(manyConstExports.ts, 3156, 12)) + +export const exp3157 = "test"; +>exp3157 : Symbol(exp3157, Decl(manyConstExports.ts, 3157, 12)) + +export const exp3158 = "test"; +>exp3158 : Symbol(exp3158, Decl(manyConstExports.ts, 3158, 12)) + +export const exp3159 = "test"; +>exp3159 : Symbol(exp3159, Decl(manyConstExports.ts, 3159, 12)) + +export const exp3160 = "test"; +>exp3160 : Symbol(exp3160, Decl(manyConstExports.ts, 3160, 12)) + +export const exp3161 = "test"; +>exp3161 : Symbol(exp3161, Decl(manyConstExports.ts, 3161, 12)) + +export const exp3162 = "test"; +>exp3162 : Symbol(exp3162, Decl(manyConstExports.ts, 3162, 12)) + +export const exp3163 = "test"; +>exp3163 : Symbol(exp3163, Decl(manyConstExports.ts, 3163, 12)) + +export const exp3164 = "test"; +>exp3164 : Symbol(exp3164, Decl(manyConstExports.ts, 3164, 12)) + +export const exp3165 = "test"; +>exp3165 : Symbol(exp3165, Decl(manyConstExports.ts, 3165, 12)) + +export const exp3166 = "test"; +>exp3166 : Symbol(exp3166, Decl(manyConstExports.ts, 3166, 12)) + +export const exp3167 = "test"; +>exp3167 : Symbol(exp3167, Decl(manyConstExports.ts, 3167, 12)) + +export const exp3168 = "test"; +>exp3168 : Symbol(exp3168, Decl(manyConstExports.ts, 3168, 12)) + +export const exp3169 = "test"; +>exp3169 : Symbol(exp3169, Decl(manyConstExports.ts, 3169, 12)) + +export const exp3170 = "test"; +>exp3170 : Symbol(exp3170, Decl(manyConstExports.ts, 3170, 12)) + +export const exp3171 = "test"; +>exp3171 : Symbol(exp3171, Decl(manyConstExports.ts, 3171, 12)) + +export const exp3172 = "test"; +>exp3172 : Symbol(exp3172, Decl(manyConstExports.ts, 3172, 12)) + +export const exp3173 = "test"; +>exp3173 : Symbol(exp3173, Decl(manyConstExports.ts, 3173, 12)) + +export const exp3174 = "test"; +>exp3174 : Symbol(exp3174, Decl(manyConstExports.ts, 3174, 12)) + +export const exp3175 = "test"; +>exp3175 : Symbol(exp3175, Decl(manyConstExports.ts, 3175, 12)) + +export const exp3176 = "test"; +>exp3176 : Symbol(exp3176, Decl(manyConstExports.ts, 3176, 12)) + +export const exp3177 = "test"; +>exp3177 : Symbol(exp3177, Decl(manyConstExports.ts, 3177, 12)) + +export const exp3178 = "test"; +>exp3178 : Symbol(exp3178, Decl(manyConstExports.ts, 3178, 12)) + +export const exp3179 = "test"; +>exp3179 : Symbol(exp3179, Decl(manyConstExports.ts, 3179, 12)) + +export const exp3180 = "test"; +>exp3180 : Symbol(exp3180, Decl(manyConstExports.ts, 3180, 12)) + +export const exp3181 = "test"; +>exp3181 : Symbol(exp3181, Decl(manyConstExports.ts, 3181, 12)) + +export const exp3182 = "test"; +>exp3182 : Symbol(exp3182, Decl(manyConstExports.ts, 3182, 12)) + +export const exp3183 = "test"; +>exp3183 : Symbol(exp3183, Decl(manyConstExports.ts, 3183, 12)) + +export const exp3184 = "test"; +>exp3184 : Symbol(exp3184, Decl(manyConstExports.ts, 3184, 12)) + +export const exp3185 = "test"; +>exp3185 : Symbol(exp3185, Decl(manyConstExports.ts, 3185, 12)) + +export const exp3186 = "test"; +>exp3186 : Symbol(exp3186, Decl(manyConstExports.ts, 3186, 12)) + +export const exp3187 = "test"; +>exp3187 : Symbol(exp3187, Decl(manyConstExports.ts, 3187, 12)) + +export const exp3188 = "test"; +>exp3188 : Symbol(exp3188, Decl(manyConstExports.ts, 3188, 12)) + +export const exp3189 = "test"; +>exp3189 : Symbol(exp3189, Decl(manyConstExports.ts, 3189, 12)) + +export const exp3190 = "test"; +>exp3190 : Symbol(exp3190, Decl(manyConstExports.ts, 3190, 12)) + +export const exp3191 = "test"; +>exp3191 : Symbol(exp3191, Decl(manyConstExports.ts, 3191, 12)) + +export const exp3192 = "test"; +>exp3192 : Symbol(exp3192, Decl(manyConstExports.ts, 3192, 12)) + +export const exp3193 = "test"; +>exp3193 : Symbol(exp3193, Decl(manyConstExports.ts, 3193, 12)) + +export const exp3194 = "test"; +>exp3194 : Symbol(exp3194, Decl(manyConstExports.ts, 3194, 12)) + +export const exp3195 = "test"; +>exp3195 : Symbol(exp3195, Decl(manyConstExports.ts, 3195, 12)) + +export const exp3196 = "test"; +>exp3196 : Symbol(exp3196, Decl(manyConstExports.ts, 3196, 12)) + +export const exp3197 = "test"; +>exp3197 : Symbol(exp3197, Decl(manyConstExports.ts, 3197, 12)) + +export const exp3198 = "test"; +>exp3198 : Symbol(exp3198, Decl(manyConstExports.ts, 3198, 12)) + +export const exp3199 = "test"; +>exp3199 : Symbol(exp3199, Decl(manyConstExports.ts, 3199, 12)) + +export const exp3200 = "test"; +>exp3200 : Symbol(exp3200, Decl(manyConstExports.ts, 3200, 12)) + +export const exp3201 = "test"; +>exp3201 : Symbol(exp3201, Decl(manyConstExports.ts, 3201, 12)) + +export const exp3202 = "test"; +>exp3202 : Symbol(exp3202, Decl(manyConstExports.ts, 3202, 12)) + +export const exp3203 = "test"; +>exp3203 : Symbol(exp3203, Decl(manyConstExports.ts, 3203, 12)) + +export const exp3204 = "test"; +>exp3204 : Symbol(exp3204, Decl(manyConstExports.ts, 3204, 12)) + +export const exp3205 = "test"; +>exp3205 : Symbol(exp3205, Decl(manyConstExports.ts, 3205, 12)) + +export const exp3206 = "test"; +>exp3206 : Symbol(exp3206, Decl(manyConstExports.ts, 3206, 12)) + +export const exp3207 = "test"; +>exp3207 : Symbol(exp3207, Decl(manyConstExports.ts, 3207, 12)) + +export const exp3208 = "test"; +>exp3208 : Symbol(exp3208, Decl(manyConstExports.ts, 3208, 12)) + +export const exp3209 = "test"; +>exp3209 : Symbol(exp3209, Decl(manyConstExports.ts, 3209, 12)) + +export const exp3210 = "test"; +>exp3210 : Symbol(exp3210, Decl(manyConstExports.ts, 3210, 12)) + +export const exp3211 = "test"; +>exp3211 : Symbol(exp3211, Decl(manyConstExports.ts, 3211, 12)) + +export const exp3212 = "test"; +>exp3212 : Symbol(exp3212, Decl(manyConstExports.ts, 3212, 12)) + +export const exp3213 = "test"; +>exp3213 : Symbol(exp3213, Decl(manyConstExports.ts, 3213, 12)) + +export const exp3214 = "test"; +>exp3214 : Symbol(exp3214, Decl(manyConstExports.ts, 3214, 12)) + +export const exp3215 = "test"; +>exp3215 : Symbol(exp3215, Decl(manyConstExports.ts, 3215, 12)) + +export const exp3216 = "test"; +>exp3216 : Symbol(exp3216, Decl(manyConstExports.ts, 3216, 12)) + +export const exp3217 = "test"; +>exp3217 : Symbol(exp3217, Decl(manyConstExports.ts, 3217, 12)) + +export const exp3218 = "test"; +>exp3218 : Symbol(exp3218, Decl(manyConstExports.ts, 3218, 12)) + +export const exp3219 = "test"; +>exp3219 : Symbol(exp3219, Decl(manyConstExports.ts, 3219, 12)) + +export const exp3220 = "test"; +>exp3220 : Symbol(exp3220, Decl(manyConstExports.ts, 3220, 12)) + +export const exp3221 = "test"; +>exp3221 : Symbol(exp3221, Decl(manyConstExports.ts, 3221, 12)) + +export const exp3222 = "test"; +>exp3222 : Symbol(exp3222, Decl(manyConstExports.ts, 3222, 12)) + +export const exp3223 = "test"; +>exp3223 : Symbol(exp3223, Decl(manyConstExports.ts, 3223, 12)) + +export const exp3224 = "test"; +>exp3224 : Symbol(exp3224, Decl(manyConstExports.ts, 3224, 12)) + +export const exp3225 = "test"; +>exp3225 : Symbol(exp3225, Decl(manyConstExports.ts, 3225, 12)) + +export const exp3226 = "test"; +>exp3226 : Symbol(exp3226, Decl(manyConstExports.ts, 3226, 12)) + +export const exp3227 = "test"; +>exp3227 : Symbol(exp3227, Decl(manyConstExports.ts, 3227, 12)) + +export const exp3228 = "test"; +>exp3228 : Symbol(exp3228, Decl(manyConstExports.ts, 3228, 12)) + +export const exp3229 = "test"; +>exp3229 : Symbol(exp3229, Decl(manyConstExports.ts, 3229, 12)) + +export const exp3230 = "test"; +>exp3230 : Symbol(exp3230, Decl(manyConstExports.ts, 3230, 12)) + +export const exp3231 = "test"; +>exp3231 : Symbol(exp3231, Decl(manyConstExports.ts, 3231, 12)) + +export const exp3232 = "test"; +>exp3232 : Symbol(exp3232, Decl(manyConstExports.ts, 3232, 12)) + +export const exp3233 = "test"; +>exp3233 : Symbol(exp3233, Decl(manyConstExports.ts, 3233, 12)) + +export const exp3234 = "test"; +>exp3234 : Symbol(exp3234, Decl(manyConstExports.ts, 3234, 12)) + +export const exp3235 = "test"; +>exp3235 : Symbol(exp3235, Decl(manyConstExports.ts, 3235, 12)) + +export const exp3236 = "test"; +>exp3236 : Symbol(exp3236, Decl(manyConstExports.ts, 3236, 12)) + +export const exp3237 = "test"; +>exp3237 : Symbol(exp3237, Decl(manyConstExports.ts, 3237, 12)) + +export const exp3238 = "test"; +>exp3238 : Symbol(exp3238, Decl(manyConstExports.ts, 3238, 12)) + +export const exp3239 = "test"; +>exp3239 : Symbol(exp3239, Decl(manyConstExports.ts, 3239, 12)) + +export const exp3240 = "test"; +>exp3240 : Symbol(exp3240, Decl(manyConstExports.ts, 3240, 12)) + +export const exp3241 = "test"; +>exp3241 : Symbol(exp3241, Decl(manyConstExports.ts, 3241, 12)) + +export const exp3242 = "test"; +>exp3242 : Symbol(exp3242, Decl(manyConstExports.ts, 3242, 12)) + +export const exp3243 = "test"; +>exp3243 : Symbol(exp3243, Decl(manyConstExports.ts, 3243, 12)) + +export const exp3244 = "test"; +>exp3244 : Symbol(exp3244, Decl(manyConstExports.ts, 3244, 12)) + +export const exp3245 = "test"; +>exp3245 : Symbol(exp3245, Decl(manyConstExports.ts, 3245, 12)) + +export const exp3246 = "test"; +>exp3246 : Symbol(exp3246, Decl(manyConstExports.ts, 3246, 12)) + +export const exp3247 = "test"; +>exp3247 : Symbol(exp3247, Decl(manyConstExports.ts, 3247, 12)) + +export const exp3248 = "test"; +>exp3248 : Symbol(exp3248, Decl(manyConstExports.ts, 3248, 12)) + +export const exp3249 = "test"; +>exp3249 : Symbol(exp3249, Decl(manyConstExports.ts, 3249, 12)) + +export const exp3250 = "test"; +>exp3250 : Symbol(exp3250, Decl(manyConstExports.ts, 3250, 12)) + +export const exp3251 = "test"; +>exp3251 : Symbol(exp3251, Decl(manyConstExports.ts, 3251, 12)) + +export const exp3252 = "test"; +>exp3252 : Symbol(exp3252, Decl(manyConstExports.ts, 3252, 12)) + +export const exp3253 = "test"; +>exp3253 : Symbol(exp3253, Decl(manyConstExports.ts, 3253, 12)) + +export const exp3254 = "test"; +>exp3254 : Symbol(exp3254, Decl(manyConstExports.ts, 3254, 12)) + +export const exp3255 = "test"; +>exp3255 : Symbol(exp3255, Decl(manyConstExports.ts, 3255, 12)) + +export const exp3256 = "test"; +>exp3256 : Symbol(exp3256, Decl(manyConstExports.ts, 3256, 12)) + +export const exp3257 = "test"; +>exp3257 : Symbol(exp3257, Decl(manyConstExports.ts, 3257, 12)) + +export const exp3258 = "test"; +>exp3258 : Symbol(exp3258, Decl(manyConstExports.ts, 3258, 12)) + +export const exp3259 = "test"; +>exp3259 : Symbol(exp3259, Decl(manyConstExports.ts, 3259, 12)) + +export const exp3260 = "test"; +>exp3260 : Symbol(exp3260, Decl(manyConstExports.ts, 3260, 12)) + +export const exp3261 = "test"; +>exp3261 : Symbol(exp3261, Decl(manyConstExports.ts, 3261, 12)) + +export const exp3262 = "test"; +>exp3262 : Symbol(exp3262, Decl(manyConstExports.ts, 3262, 12)) + +export const exp3263 = "test"; +>exp3263 : Symbol(exp3263, Decl(manyConstExports.ts, 3263, 12)) + +export const exp3264 = "test"; +>exp3264 : Symbol(exp3264, Decl(manyConstExports.ts, 3264, 12)) + +export const exp3265 = "test"; +>exp3265 : Symbol(exp3265, Decl(manyConstExports.ts, 3265, 12)) + +export const exp3266 = "test"; +>exp3266 : Symbol(exp3266, Decl(manyConstExports.ts, 3266, 12)) + +export const exp3267 = "test"; +>exp3267 : Symbol(exp3267, Decl(manyConstExports.ts, 3267, 12)) + +export const exp3268 = "test"; +>exp3268 : Symbol(exp3268, Decl(manyConstExports.ts, 3268, 12)) + +export const exp3269 = "test"; +>exp3269 : Symbol(exp3269, Decl(manyConstExports.ts, 3269, 12)) + +export const exp3270 = "test"; +>exp3270 : Symbol(exp3270, Decl(manyConstExports.ts, 3270, 12)) + +export const exp3271 = "test"; +>exp3271 : Symbol(exp3271, Decl(manyConstExports.ts, 3271, 12)) + +export const exp3272 = "test"; +>exp3272 : Symbol(exp3272, Decl(manyConstExports.ts, 3272, 12)) + +export const exp3273 = "test"; +>exp3273 : Symbol(exp3273, Decl(manyConstExports.ts, 3273, 12)) + +export const exp3274 = "test"; +>exp3274 : Symbol(exp3274, Decl(manyConstExports.ts, 3274, 12)) + +export const exp3275 = "test"; +>exp3275 : Symbol(exp3275, Decl(manyConstExports.ts, 3275, 12)) + +export const exp3276 = "test"; +>exp3276 : Symbol(exp3276, Decl(manyConstExports.ts, 3276, 12)) + +export const exp3277 = "test"; +>exp3277 : Symbol(exp3277, Decl(manyConstExports.ts, 3277, 12)) + +export const exp3278 = "test"; +>exp3278 : Symbol(exp3278, Decl(manyConstExports.ts, 3278, 12)) + +export const exp3279 = "test"; +>exp3279 : Symbol(exp3279, Decl(manyConstExports.ts, 3279, 12)) + +export const exp3280 = "test"; +>exp3280 : Symbol(exp3280, Decl(manyConstExports.ts, 3280, 12)) + +export const exp3281 = "test"; +>exp3281 : Symbol(exp3281, Decl(manyConstExports.ts, 3281, 12)) + +export const exp3282 = "test"; +>exp3282 : Symbol(exp3282, Decl(manyConstExports.ts, 3282, 12)) + +export const exp3283 = "test"; +>exp3283 : Symbol(exp3283, Decl(manyConstExports.ts, 3283, 12)) + +export const exp3284 = "test"; +>exp3284 : Symbol(exp3284, Decl(manyConstExports.ts, 3284, 12)) + +export const exp3285 = "test"; +>exp3285 : Symbol(exp3285, Decl(manyConstExports.ts, 3285, 12)) + +export const exp3286 = "test"; +>exp3286 : Symbol(exp3286, Decl(manyConstExports.ts, 3286, 12)) + +export const exp3287 = "test"; +>exp3287 : Symbol(exp3287, Decl(manyConstExports.ts, 3287, 12)) + +export const exp3288 = "test"; +>exp3288 : Symbol(exp3288, Decl(manyConstExports.ts, 3288, 12)) + +export const exp3289 = "test"; +>exp3289 : Symbol(exp3289, Decl(manyConstExports.ts, 3289, 12)) + +export const exp3290 = "test"; +>exp3290 : Symbol(exp3290, Decl(manyConstExports.ts, 3290, 12)) + +export const exp3291 = "test"; +>exp3291 : Symbol(exp3291, Decl(manyConstExports.ts, 3291, 12)) + +export const exp3292 = "test"; +>exp3292 : Symbol(exp3292, Decl(manyConstExports.ts, 3292, 12)) + +export const exp3293 = "test"; +>exp3293 : Symbol(exp3293, Decl(manyConstExports.ts, 3293, 12)) + +export const exp3294 = "test"; +>exp3294 : Symbol(exp3294, Decl(manyConstExports.ts, 3294, 12)) + +export const exp3295 = "test"; +>exp3295 : Symbol(exp3295, Decl(manyConstExports.ts, 3295, 12)) + +export const exp3296 = "test"; +>exp3296 : Symbol(exp3296, Decl(manyConstExports.ts, 3296, 12)) + +export const exp3297 = "test"; +>exp3297 : Symbol(exp3297, Decl(manyConstExports.ts, 3297, 12)) + +export const exp3298 = "test"; +>exp3298 : Symbol(exp3298, Decl(manyConstExports.ts, 3298, 12)) + +export const exp3299 = "test"; +>exp3299 : Symbol(exp3299, Decl(manyConstExports.ts, 3299, 12)) + +export const exp3300 = "test"; +>exp3300 : Symbol(exp3300, Decl(manyConstExports.ts, 3300, 12)) + +export const exp3301 = "test"; +>exp3301 : Symbol(exp3301, Decl(manyConstExports.ts, 3301, 12)) + +export const exp3302 = "test"; +>exp3302 : Symbol(exp3302, Decl(manyConstExports.ts, 3302, 12)) + +export const exp3303 = "test"; +>exp3303 : Symbol(exp3303, Decl(manyConstExports.ts, 3303, 12)) + +export const exp3304 = "test"; +>exp3304 : Symbol(exp3304, Decl(manyConstExports.ts, 3304, 12)) + +export const exp3305 = "test"; +>exp3305 : Symbol(exp3305, Decl(manyConstExports.ts, 3305, 12)) + +export const exp3306 = "test"; +>exp3306 : Symbol(exp3306, Decl(manyConstExports.ts, 3306, 12)) + +export const exp3307 = "test"; +>exp3307 : Symbol(exp3307, Decl(manyConstExports.ts, 3307, 12)) + +export const exp3308 = "test"; +>exp3308 : Symbol(exp3308, Decl(manyConstExports.ts, 3308, 12)) + +export const exp3309 = "test"; +>exp3309 : Symbol(exp3309, Decl(manyConstExports.ts, 3309, 12)) + +export const exp3310 = "test"; +>exp3310 : Symbol(exp3310, Decl(manyConstExports.ts, 3310, 12)) + +export const exp3311 = "test"; +>exp3311 : Symbol(exp3311, Decl(manyConstExports.ts, 3311, 12)) + +export const exp3312 = "test"; +>exp3312 : Symbol(exp3312, Decl(manyConstExports.ts, 3312, 12)) + +export const exp3313 = "test"; +>exp3313 : Symbol(exp3313, Decl(manyConstExports.ts, 3313, 12)) + +export const exp3314 = "test"; +>exp3314 : Symbol(exp3314, Decl(manyConstExports.ts, 3314, 12)) + +export const exp3315 = "test"; +>exp3315 : Symbol(exp3315, Decl(manyConstExports.ts, 3315, 12)) + +export const exp3316 = "test"; +>exp3316 : Symbol(exp3316, Decl(manyConstExports.ts, 3316, 12)) + +export const exp3317 = "test"; +>exp3317 : Symbol(exp3317, Decl(manyConstExports.ts, 3317, 12)) + +export const exp3318 = "test"; +>exp3318 : Symbol(exp3318, Decl(manyConstExports.ts, 3318, 12)) + +export const exp3319 = "test"; +>exp3319 : Symbol(exp3319, Decl(manyConstExports.ts, 3319, 12)) + +export const exp3320 = "test"; +>exp3320 : Symbol(exp3320, Decl(manyConstExports.ts, 3320, 12)) + +export const exp3321 = "test"; +>exp3321 : Symbol(exp3321, Decl(manyConstExports.ts, 3321, 12)) + +export const exp3322 = "test"; +>exp3322 : Symbol(exp3322, Decl(manyConstExports.ts, 3322, 12)) + +export const exp3323 = "test"; +>exp3323 : Symbol(exp3323, Decl(manyConstExports.ts, 3323, 12)) + +export const exp3324 = "test"; +>exp3324 : Symbol(exp3324, Decl(manyConstExports.ts, 3324, 12)) + +export const exp3325 = "test"; +>exp3325 : Symbol(exp3325, Decl(manyConstExports.ts, 3325, 12)) + +export const exp3326 = "test"; +>exp3326 : Symbol(exp3326, Decl(manyConstExports.ts, 3326, 12)) + +export const exp3327 = "test"; +>exp3327 : Symbol(exp3327, Decl(manyConstExports.ts, 3327, 12)) + +export const exp3328 = "test"; +>exp3328 : Symbol(exp3328, Decl(manyConstExports.ts, 3328, 12)) + +export const exp3329 = "test"; +>exp3329 : Symbol(exp3329, Decl(manyConstExports.ts, 3329, 12)) + +export const exp3330 = "test"; +>exp3330 : Symbol(exp3330, Decl(manyConstExports.ts, 3330, 12)) + +export const exp3331 = "test"; +>exp3331 : Symbol(exp3331, Decl(manyConstExports.ts, 3331, 12)) + +export const exp3332 = "test"; +>exp3332 : Symbol(exp3332, Decl(manyConstExports.ts, 3332, 12)) + +export const exp3333 = "test"; +>exp3333 : Symbol(exp3333, Decl(manyConstExports.ts, 3333, 12)) + +export const exp3334 = "test"; +>exp3334 : Symbol(exp3334, Decl(manyConstExports.ts, 3334, 12)) + +export const exp3335 = "test"; +>exp3335 : Symbol(exp3335, Decl(manyConstExports.ts, 3335, 12)) + +export const exp3336 = "test"; +>exp3336 : Symbol(exp3336, Decl(manyConstExports.ts, 3336, 12)) + +export const exp3337 = "test"; +>exp3337 : Symbol(exp3337, Decl(manyConstExports.ts, 3337, 12)) + +export const exp3338 = "test"; +>exp3338 : Symbol(exp3338, Decl(manyConstExports.ts, 3338, 12)) + +export const exp3339 = "test"; +>exp3339 : Symbol(exp3339, Decl(manyConstExports.ts, 3339, 12)) + +export const exp3340 = "test"; +>exp3340 : Symbol(exp3340, Decl(manyConstExports.ts, 3340, 12)) + +export const exp3341 = "test"; +>exp3341 : Symbol(exp3341, Decl(manyConstExports.ts, 3341, 12)) + +export const exp3342 = "test"; +>exp3342 : Symbol(exp3342, Decl(manyConstExports.ts, 3342, 12)) + +export const exp3343 = "test"; +>exp3343 : Symbol(exp3343, Decl(manyConstExports.ts, 3343, 12)) + +export const exp3344 = "test"; +>exp3344 : Symbol(exp3344, Decl(manyConstExports.ts, 3344, 12)) + +export const exp3345 = "test"; +>exp3345 : Symbol(exp3345, Decl(manyConstExports.ts, 3345, 12)) + +export const exp3346 = "test"; +>exp3346 : Symbol(exp3346, Decl(manyConstExports.ts, 3346, 12)) + +export const exp3347 = "test"; +>exp3347 : Symbol(exp3347, Decl(manyConstExports.ts, 3347, 12)) + +export const exp3348 = "test"; +>exp3348 : Symbol(exp3348, Decl(manyConstExports.ts, 3348, 12)) + +export const exp3349 = "test"; +>exp3349 : Symbol(exp3349, Decl(manyConstExports.ts, 3349, 12)) + +export const exp3350 = "test"; +>exp3350 : Symbol(exp3350, Decl(manyConstExports.ts, 3350, 12)) + +export const exp3351 = "test"; +>exp3351 : Symbol(exp3351, Decl(manyConstExports.ts, 3351, 12)) + +export const exp3352 = "test"; +>exp3352 : Symbol(exp3352, Decl(manyConstExports.ts, 3352, 12)) + +export const exp3353 = "test"; +>exp3353 : Symbol(exp3353, Decl(manyConstExports.ts, 3353, 12)) + +export const exp3354 = "test"; +>exp3354 : Symbol(exp3354, Decl(manyConstExports.ts, 3354, 12)) + +export const exp3355 = "test"; +>exp3355 : Symbol(exp3355, Decl(manyConstExports.ts, 3355, 12)) + +export const exp3356 = "test"; +>exp3356 : Symbol(exp3356, Decl(manyConstExports.ts, 3356, 12)) + +export const exp3357 = "test"; +>exp3357 : Symbol(exp3357, Decl(manyConstExports.ts, 3357, 12)) + +export const exp3358 = "test"; +>exp3358 : Symbol(exp3358, Decl(manyConstExports.ts, 3358, 12)) + +export const exp3359 = "test"; +>exp3359 : Symbol(exp3359, Decl(manyConstExports.ts, 3359, 12)) + +export const exp3360 = "test"; +>exp3360 : Symbol(exp3360, Decl(manyConstExports.ts, 3360, 12)) + +export const exp3361 = "test"; +>exp3361 : Symbol(exp3361, Decl(manyConstExports.ts, 3361, 12)) + +export const exp3362 = "test"; +>exp3362 : Symbol(exp3362, Decl(manyConstExports.ts, 3362, 12)) + +export const exp3363 = "test"; +>exp3363 : Symbol(exp3363, Decl(manyConstExports.ts, 3363, 12)) + +export const exp3364 = "test"; +>exp3364 : Symbol(exp3364, Decl(manyConstExports.ts, 3364, 12)) + +export const exp3365 = "test"; +>exp3365 : Symbol(exp3365, Decl(manyConstExports.ts, 3365, 12)) + +export const exp3366 = "test"; +>exp3366 : Symbol(exp3366, Decl(manyConstExports.ts, 3366, 12)) + +export const exp3367 = "test"; +>exp3367 : Symbol(exp3367, Decl(manyConstExports.ts, 3367, 12)) + +export const exp3368 = "test"; +>exp3368 : Symbol(exp3368, Decl(manyConstExports.ts, 3368, 12)) + +export const exp3369 = "test"; +>exp3369 : Symbol(exp3369, Decl(manyConstExports.ts, 3369, 12)) + +export const exp3370 = "test"; +>exp3370 : Symbol(exp3370, Decl(manyConstExports.ts, 3370, 12)) + +export const exp3371 = "test"; +>exp3371 : Symbol(exp3371, Decl(manyConstExports.ts, 3371, 12)) + +export const exp3372 = "test"; +>exp3372 : Symbol(exp3372, Decl(manyConstExports.ts, 3372, 12)) + +export const exp3373 = "test"; +>exp3373 : Symbol(exp3373, Decl(manyConstExports.ts, 3373, 12)) + +export const exp3374 = "test"; +>exp3374 : Symbol(exp3374, Decl(manyConstExports.ts, 3374, 12)) + +export const exp3375 = "test"; +>exp3375 : Symbol(exp3375, Decl(manyConstExports.ts, 3375, 12)) + +export const exp3376 = "test"; +>exp3376 : Symbol(exp3376, Decl(manyConstExports.ts, 3376, 12)) + +export const exp3377 = "test"; +>exp3377 : Symbol(exp3377, Decl(manyConstExports.ts, 3377, 12)) + +export const exp3378 = "test"; +>exp3378 : Symbol(exp3378, Decl(manyConstExports.ts, 3378, 12)) + +export const exp3379 = "test"; +>exp3379 : Symbol(exp3379, Decl(manyConstExports.ts, 3379, 12)) + +export const exp3380 = "test"; +>exp3380 : Symbol(exp3380, Decl(manyConstExports.ts, 3380, 12)) + +export const exp3381 = "test"; +>exp3381 : Symbol(exp3381, Decl(manyConstExports.ts, 3381, 12)) + +export const exp3382 = "test"; +>exp3382 : Symbol(exp3382, Decl(manyConstExports.ts, 3382, 12)) + +export const exp3383 = "test"; +>exp3383 : Symbol(exp3383, Decl(manyConstExports.ts, 3383, 12)) + +export const exp3384 = "test"; +>exp3384 : Symbol(exp3384, Decl(manyConstExports.ts, 3384, 12)) + +export const exp3385 = "test"; +>exp3385 : Symbol(exp3385, Decl(manyConstExports.ts, 3385, 12)) + +export const exp3386 = "test"; +>exp3386 : Symbol(exp3386, Decl(manyConstExports.ts, 3386, 12)) + +export const exp3387 = "test"; +>exp3387 : Symbol(exp3387, Decl(manyConstExports.ts, 3387, 12)) + +export const exp3388 = "test"; +>exp3388 : Symbol(exp3388, Decl(manyConstExports.ts, 3388, 12)) + +export const exp3389 = "test"; +>exp3389 : Symbol(exp3389, Decl(manyConstExports.ts, 3389, 12)) + +export const exp3390 = "test"; +>exp3390 : Symbol(exp3390, Decl(manyConstExports.ts, 3390, 12)) + +export const exp3391 = "test"; +>exp3391 : Symbol(exp3391, Decl(manyConstExports.ts, 3391, 12)) + +export const exp3392 = "test"; +>exp3392 : Symbol(exp3392, Decl(manyConstExports.ts, 3392, 12)) + +export const exp3393 = "test"; +>exp3393 : Symbol(exp3393, Decl(manyConstExports.ts, 3393, 12)) + +export const exp3394 = "test"; +>exp3394 : Symbol(exp3394, Decl(manyConstExports.ts, 3394, 12)) + +export const exp3395 = "test"; +>exp3395 : Symbol(exp3395, Decl(manyConstExports.ts, 3395, 12)) + +export const exp3396 = "test"; +>exp3396 : Symbol(exp3396, Decl(manyConstExports.ts, 3396, 12)) + +export const exp3397 = "test"; +>exp3397 : Symbol(exp3397, Decl(manyConstExports.ts, 3397, 12)) + +export const exp3398 = "test"; +>exp3398 : Symbol(exp3398, Decl(manyConstExports.ts, 3398, 12)) + +export const exp3399 = "test"; +>exp3399 : Symbol(exp3399, Decl(manyConstExports.ts, 3399, 12)) + +export const exp3400 = "test"; +>exp3400 : Symbol(exp3400, Decl(manyConstExports.ts, 3400, 12)) + +export const exp3401 = "test"; +>exp3401 : Symbol(exp3401, Decl(manyConstExports.ts, 3401, 12)) + +export const exp3402 = "test"; +>exp3402 : Symbol(exp3402, Decl(manyConstExports.ts, 3402, 12)) + +export const exp3403 = "test"; +>exp3403 : Symbol(exp3403, Decl(manyConstExports.ts, 3403, 12)) + +export const exp3404 = "test"; +>exp3404 : Symbol(exp3404, Decl(manyConstExports.ts, 3404, 12)) + +export const exp3405 = "test"; +>exp3405 : Symbol(exp3405, Decl(manyConstExports.ts, 3405, 12)) + +export const exp3406 = "test"; +>exp3406 : Symbol(exp3406, Decl(manyConstExports.ts, 3406, 12)) + +export const exp3407 = "test"; +>exp3407 : Symbol(exp3407, Decl(manyConstExports.ts, 3407, 12)) + +export const exp3408 = "test"; +>exp3408 : Symbol(exp3408, Decl(manyConstExports.ts, 3408, 12)) + +export const exp3409 = "test"; +>exp3409 : Symbol(exp3409, Decl(manyConstExports.ts, 3409, 12)) + +export const exp3410 = "test"; +>exp3410 : Symbol(exp3410, Decl(manyConstExports.ts, 3410, 12)) + +export const exp3411 = "test"; +>exp3411 : Symbol(exp3411, Decl(manyConstExports.ts, 3411, 12)) + +export const exp3412 = "test"; +>exp3412 : Symbol(exp3412, Decl(manyConstExports.ts, 3412, 12)) + +export const exp3413 = "test"; +>exp3413 : Symbol(exp3413, Decl(manyConstExports.ts, 3413, 12)) + +export const exp3414 = "test"; +>exp3414 : Symbol(exp3414, Decl(manyConstExports.ts, 3414, 12)) + +export const exp3415 = "test"; +>exp3415 : Symbol(exp3415, Decl(manyConstExports.ts, 3415, 12)) + +export const exp3416 = "test"; +>exp3416 : Symbol(exp3416, Decl(manyConstExports.ts, 3416, 12)) + +export const exp3417 = "test"; +>exp3417 : Symbol(exp3417, Decl(manyConstExports.ts, 3417, 12)) + +export const exp3418 = "test"; +>exp3418 : Symbol(exp3418, Decl(manyConstExports.ts, 3418, 12)) + +export const exp3419 = "test"; +>exp3419 : Symbol(exp3419, Decl(manyConstExports.ts, 3419, 12)) + +export const exp3420 = "test"; +>exp3420 : Symbol(exp3420, Decl(manyConstExports.ts, 3420, 12)) + +export const exp3421 = "test"; +>exp3421 : Symbol(exp3421, Decl(manyConstExports.ts, 3421, 12)) + +export const exp3422 = "test"; +>exp3422 : Symbol(exp3422, Decl(manyConstExports.ts, 3422, 12)) + +export const exp3423 = "test"; +>exp3423 : Symbol(exp3423, Decl(manyConstExports.ts, 3423, 12)) + +export const exp3424 = "test"; +>exp3424 : Symbol(exp3424, Decl(manyConstExports.ts, 3424, 12)) + +export const exp3425 = "test"; +>exp3425 : Symbol(exp3425, Decl(manyConstExports.ts, 3425, 12)) + +export const exp3426 = "test"; +>exp3426 : Symbol(exp3426, Decl(manyConstExports.ts, 3426, 12)) + +export const exp3427 = "test"; +>exp3427 : Symbol(exp3427, Decl(manyConstExports.ts, 3427, 12)) + +export const exp3428 = "test"; +>exp3428 : Symbol(exp3428, Decl(manyConstExports.ts, 3428, 12)) + +export const exp3429 = "test"; +>exp3429 : Symbol(exp3429, Decl(manyConstExports.ts, 3429, 12)) + +export const exp3430 = "test"; +>exp3430 : Symbol(exp3430, Decl(manyConstExports.ts, 3430, 12)) + +export const exp3431 = "test"; +>exp3431 : Symbol(exp3431, Decl(manyConstExports.ts, 3431, 12)) + +export const exp3432 = "test"; +>exp3432 : Symbol(exp3432, Decl(manyConstExports.ts, 3432, 12)) + +export const exp3433 = "test"; +>exp3433 : Symbol(exp3433, Decl(manyConstExports.ts, 3433, 12)) + +export const exp3434 = "test"; +>exp3434 : Symbol(exp3434, Decl(manyConstExports.ts, 3434, 12)) + +export const exp3435 = "test"; +>exp3435 : Symbol(exp3435, Decl(manyConstExports.ts, 3435, 12)) + +export const exp3436 = "test"; +>exp3436 : Symbol(exp3436, Decl(manyConstExports.ts, 3436, 12)) + +export const exp3437 = "test"; +>exp3437 : Symbol(exp3437, Decl(manyConstExports.ts, 3437, 12)) + +export const exp3438 = "test"; +>exp3438 : Symbol(exp3438, Decl(manyConstExports.ts, 3438, 12)) + +export const exp3439 = "test"; +>exp3439 : Symbol(exp3439, Decl(manyConstExports.ts, 3439, 12)) + +export const exp3440 = "test"; +>exp3440 : Symbol(exp3440, Decl(manyConstExports.ts, 3440, 12)) + +export const exp3441 = "test"; +>exp3441 : Symbol(exp3441, Decl(manyConstExports.ts, 3441, 12)) + +export const exp3442 = "test"; +>exp3442 : Symbol(exp3442, Decl(manyConstExports.ts, 3442, 12)) + +export const exp3443 = "test"; +>exp3443 : Symbol(exp3443, Decl(manyConstExports.ts, 3443, 12)) + +export const exp3444 = "test"; +>exp3444 : Symbol(exp3444, Decl(manyConstExports.ts, 3444, 12)) + +export const exp3445 = "test"; +>exp3445 : Symbol(exp3445, Decl(manyConstExports.ts, 3445, 12)) + +export const exp3446 = "test"; +>exp3446 : Symbol(exp3446, Decl(manyConstExports.ts, 3446, 12)) + +export const exp3447 = "test"; +>exp3447 : Symbol(exp3447, Decl(manyConstExports.ts, 3447, 12)) + +export const exp3448 = "test"; +>exp3448 : Symbol(exp3448, Decl(manyConstExports.ts, 3448, 12)) + +export const exp3449 = "test"; +>exp3449 : Symbol(exp3449, Decl(manyConstExports.ts, 3449, 12)) + +export const exp3450 = "test"; +>exp3450 : Symbol(exp3450, Decl(manyConstExports.ts, 3450, 12)) + +export const exp3451 = "test"; +>exp3451 : Symbol(exp3451, Decl(manyConstExports.ts, 3451, 12)) + +export const exp3452 = "test"; +>exp3452 : Symbol(exp3452, Decl(manyConstExports.ts, 3452, 12)) + +export const exp3453 = "test"; +>exp3453 : Symbol(exp3453, Decl(manyConstExports.ts, 3453, 12)) + +export const exp3454 = "test"; +>exp3454 : Symbol(exp3454, Decl(manyConstExports.ts, 3454, 12)) + +export const exp3455 = "test"; +>exp3455 : Symbol(exp3455, Decl(manyConstExports.ts, 3455, 12)) + +export const exp3456 = "test"; +>exp3456 : Symbol(exp3456, Decl(manyConstExports.ts, 3456, 12)) + +export const exp3457 = "test"; +>exp3457 : Symbol(exp3457, Decl(manyConstExports.ts, 3457, 12)) + +export const exp3458 = "test"; +>exp3458 : Symbol(exp3458, Decl(manyConstExports.ts, 3458, 12)) + +export const exp3459 = "test"; +>exp3459 : Symbol(exp3459, Decl(manyConstExports.ts, 3459, 12)) + +export const exp3460 = "test"; +>exp3460 : Symbol(exp3460, Decl(manyConstExports.ts, 3460, 12)) + +export const exp3461 = "test"; +>exp3461 : Symbol(exp3461, Decl(manyConstExports.ts, 3461, 12)) + +export const exp3462 = "test"; +>exp3462 : Symbol(exp3462, Decl(manyConstExports.ts, 3462, 12)) + +export const exp3463 = "test"; +>exp3463 : Symbol(exp3463, Decl(manyConstExports.ts, 3463, 12)) + +export const exp3464 = "test"; +>exp3464 : Symbol(exp3464, Decl(manyConstExports.ts, 3464, 12)) + +export const exp3465 = "test"; +>exp3465 : Symbol(exp3465, Decl(manyConstExports.ts, 3465, 12)) + +export const exp3466 = "test"; +>exp3466 : Symbol(exp3466, Decl(manyConstExports.ts, 3466, 12)) + +export const exp3467 = "test"; +>exp3467 : Symbol(exp3467, Decl(manyConstExports.ts, 3467, 12)) + +export const exp3468 = "test"; +>exp3468 : Symbol(exp3468, Decl(manyConstExports.ts, 3468, 12)) + +export const exp3469 = "test"; +>exp3469 : Symbol(exp3469, Decl(manyConstExports.ts, 3469, 12)) + +export const exp3470 = "test"; +>exp3470 : Symbol(exp3470, Decl(manyConstExports.ts, 3470, 12)) + +export const exp3471 = "test"; +>exp3471 : Symbol(exp3471, Decl(manyConstExports.ts, 3471, 12)) + +export const exp3472 = "test"; +>exp3472 : Symbol(exp3472, Decl(manyConstExports.ts, 3472, 12)) + +export const exp3473 = "test"; +>exp3473 : Symbol(exp3473, Decl(manyConstExports.ts, 3473, 12)) + +export const exp3474 = "test"; +>exp3474 : Symbol(exp3474, Decl(manyConstExports.ts, 3474, 12)) + +export const exp3475 = "test"; +>exp3475 : Symbol(exp3475, Decl(manyConstExports.ts, 3475, 12)) + +export const exp3476 = "test"; +>exp3476 : Symbol(exp3476, Decl(manyConstExports.ts, 3476, 12)) + +export const exp3477 = "test"; +>exp3477 : Symbol(exp3477, Decl(manyConstExports.ts, 3477, 12)) + +export const exp3478 = "test"; +>exp3478 : Symbol(exp3478, Decl(manyConstExports.ts, 3478, 12)) + +export const exp3479 = "test"; +>exp3479 : Symbol(exp3479, Decl(manyConstExports.ts, 3479, 12)) + +export const exp3480 = "test"; +>exp3480 : Symbol(exp3480, Decl(manyConstExports.ts, 3480, 12)) + +export const exp3481 = "test"; +>exp3481 : Symbol(exp3481, Decl(manyConstExports.ts, 3481, 12)) + +export const exp3482 = "test"; +>exp3482 : Symbol(exp3482, Decl(manyConstExports.ts, 3482, 12)) + +export const exp3483 = "test"; +>exp3483 : Symbol(exp3483, Decl(manyConstExports.ts, 3483, 12)) + +export const exp3484 = "test"; +>exp3484 : Symbol(exp3484, Decl(manyConstExports.ts, 3484, 12)) + +export const exp3485 = "test"; +>exp3485 : Symbol(exp3485, Decl(manyConstExports.ts, 3485, 12)) + +export const exp3486 = "test"; +>exp3486 : Symbol(exp3486, Decl(manyConstExports.ts, 3486, 12)) + +export const exp3487 = "test"; +>exp3487 : Symbol(exp3487, Decl(manyConstExports.ts, 3487, 12)) + +export const exp3488 = "test"; +>exp3488 : Symbol(exp3488, Decl(manyConstExports.ts, 3488, 12)) + +export const exp3489 = "test"; +>exp3489 : Symbol(exp3489, Decl(manyConstExports.ts, 3489, 12)) + +export const exp3490 = "test"; +>exp3490 : Symbol(exp3490, Decl(manyConstExports.ts, 3490, 12)) + +export const exp3491 = "test"; +>exp3491 : Symbol(exp3491, Decl(manyConstExports.ts, 3491, 12)) + +export const exp3492 = "test"; +>exp3492 : Symbol(exp3492, Decl(manyConstExports.ts, 3492, 12)) + +export const exp3493 = "test"; +>exp3493 : Symbol(exp3493, Decl(manyConstExports.ts, 3493, 12)) + +export const exp3494 = "test"; +>exp3494 : Symbol(exp3494, Decl(manyConstExports.ts, 3494, 12)) + +export const exp3495 = "test"; +>exp3495 : Symbol(exp3495, Decl(manyConstExports.ts, 3495, 12)) + +export const exp3496 = "test"; +>exp3496 : Symbol(exp3496, Decl(manyConstExports.ts, 3496, 12)) + +export const exp3497 = "test"; +>exp3497 : Symbol(exp3497, Decl(manyConstExports.ts, 3497, 12)) + +export const exp3498 = "test"; +>exp3498 : Symbol(exp3498, Decl(manyConstExports.ts, 3498, 12)) + +export const exp3499 = "test"; +>exp3499 : Symbol(exp3499, Decl(manyConstExports.ts, 3499, 12)) + +export const exp3500 = "test"; +>exp3500 : Symbol(exp3500, Decl(manyConstExports.ts, 3500, 12)) + +export const exp3501 = "test"; +>exp3501 : Symbol(exp3501, Decl(manyConstExports.ts, 3501, 12)) + +export const exp3502 = "test"; +>exp3502 : Symbol(exp3502, Decl(manyConstExports.ts, 3502, 12)) + +export const exp3503 = "test"; +>exp3503 : Symbol(exp3503, Decl(manyConstExports.ts, 3503, 12)) + +export const exp3504 = "test"; +>exp3504 : Symbol(exp3504, Decl(manyConstExports.ts, 3504, 12)) + +export const exp3505 = "test"; +>exp3505 : Symbol(exp3505, Decl(manyConstExports.ts, 3505, 12)) + +export const exp3506 = "test"; +>exp3506 : Symbol(exp3506, Decl(manyConstExports.ts, 3506, 12)) + +export const exp3507 = "test"; +>exp3507 : Symbol(exp3507, Decl(manyConstExports.ts, 3507, 12)) + +export const exp3508 = "test"; +>exp3508 : Symbol(exp3508, Decl(manyConstExports.ts, 3508, 12)) + +export const exp3509 = "test"; +>exp3509 : Symbol(exp3509, Decl(manyConstExports.ts, 3509, 12)) + +export const exp3510 = "test"; +>exp3510 : Symbol(exp3510, Decl(manyConstExports.ts, 3510, 12)) + +export const exp3511 = "test"; +>exp3511 : Symbol(exp3511, Decl(manyConstExports.ts, 3511, 12)) + +export const exp3512 = "test"; +>exp3512 : Symbol(exp3512, Decl(manyConstExports.ts, 3512, 12)) + +export const exp3513 = "test"; +>exp3513 : Symbol(exp3513, Decl(manyConstExports.ts, 3513, 12)) + +export const exp3514 = "test"; +>exp3514 : Symbol(exp3514, Decl(manyConstExports.ts, 3514, 12)) + +export const exp3515 = "test"; +>exp3515 : Symbol(exp3515, Decl(manyConstExports.ts, 3515, 12)) + +export const exp3516 = "test"; +>exp3516 : Symbol(exp3516, Decl(manyConstExports.ts, 3516, 12)) + +export const exp3517 = "test"; +>exp3517 : Symbol(exp3517, Decl(manyConstExports.ts, 3517, 12)) + +export const exp3518 = "test"; +>exp3518 : Symbol(exp3518, Decl(manyConstExports.ts, 3518, 12)) + +export const exp3519 = "test"; +>exp3519 : Symbol(exp3519, Decl(manyConstExports.ts, 3519, 12)) + +export const exp3520 = "test"; +>exp3520 : Symbol(exp3520, Decl(manyConstExports.ts, 3520, 12)) + +export const exp3521 = "test"; +>exp3521 : Symbol(exp3521, Decl(manyConstExports.ts, 3521, 12)) + +export const exp3522 = "test"; +>exp3522 : Symbol(exp3522, Decl(manyConstExports.ts, 3522, 12)) + +export const exp3523 = "test"; +>exp3523 : Symbol(exp3523, Decl(manyConstExports.ts, 3523, 12)) + +export const exp3524 = "test"; +>exp3524 : Symbol(exp3524, Decl(manyConstExports.ts, 3524, 12)) + +export const exp3525 = "test"; +>exp3525 : Symbol(exp3525, Decl(manyConstExports.ts, 3525, 12)) + +export const exp3526 = "test"; +>exp3526 : Symbol(exp3526, Decl(manyConstExports.ts, 3526, 12)) + +export const exp3527 = "test"; +>exp3527 : Symbol(exp3527, Decl(manyConstExports.ts, 3527, 12)) + +export const exp3528 = "test"; +>exp3528 : Symbol(exp3528, Decl(manyConstExports.ts, 3528, 12)) + +export const exp3529 = "test"; +>exp3529 : Symbol(exp3529, Decl(manyConstExports.ts, 3529, 12)) + +export const exp3530 = "test"; +>exp3530 : Symbol(exp3530, Decl(manyConstExports.ts, 3530, 12)) + +export const exp3531 = "test"; +>exp3531 : Symbol(exp3531, Decl(manyConstExports.ts, 3531, 12)) + +export const exp3532 = "test"; +>exp3532 : Symbol(exp3532, Decl(manyConstExports.ts, 3532, 12)) + +export const exp3533 = "test"; +>exp3533 : Symbol(exp3533, Decl(manyConstExports.ts, 3533, 12)) + +export const exp3534 = "test"; +>exp3534 : Symbol(exp3534, Decl(manyConstExports.ts, 3534, 12)) + +export const exp3535 = "test"; +>exp3535 : Symbol(exp3535, Decl(manyConstExports.ts, 3535, 12)) + +export const exp3536 = "test"; +>exp3536 : Symbol(exp3536, Decl(manyConstExports.ts, 3536, 12)) + +export const exp3537 = "test"; +>exp3537 : Symbol(exp3537, Decl(manyConstExports.ts, 3537, 12)) + +export const exp3538 = "test"; +>exp3538 : Symbol(exp3538, Decl(manyConstExports.ts, 3538, 12)) + +export const exp3539 = "test"; +>exp3539 : Symbol(exp3539, Decl(manyConstExports.ts, 3539, 12)) + +export const exp3540 = "test"; +>exp3540 : Symbol(exp3540, Decl(manyConstExports.ts, 3540, 12)) + +export const exp3541 = "test"; +>exp3541 : Symbol(exp3541, Decl(manyConstExports.ts, 3541, 12)) + +export const exp3542 = "test"; +>exp3542 : Symbol(exp3542, Decl(manyConstExports.ts, 3542, 12)) + +export const exp3543 = "test"; +>exp3543 : Symbol(exp3543, Decl(manyConstExports.ts, 3543, 12)) + +export const exp3544 = "test"; +>exp3544 : Symbol(exp3544, Decl(manyConstExports.ts, 3544, 12)) + +export const exp3545 = "test"; +>exp3545 : Symbol(exp3545, Decl(manyConstExports.ts, 3545, 12)) + +export const exp3546 = "test"; +>exp3546 : Symbol(exp3546, Decl(manyConstExports.ts, 3546, 12)) + +export const exp3547 = "test"; +>exp3547 : Symbol(exp3547, Decl(manyConstExports.ts, 3547, 12)) + +export const exp3548 = "test"; +>exp3548 : Symbol(exp3548, Decl(manyConstExports.ts, 3548, 12)) + +export const exp3549 = "test"; +>exp3549 : Symbol(exp3549, Decl(manyConstExports.ts, 3549, 12)) + +export const exp3550 = "test"; +>exp3550 : Symbol(exp3550, Decl(manyConstExports.ts, 3550, 12)) + +export const exp3551 = "test"; +>exp3551 : Symbol(exp3551, Decl(manyConstExports.ts, 3551, 12)) + +export const exp3552 = "test"; +>exp3552 : Symbol(exp3552, Decl(manyConstExports.ts, 3552, 12)) + +export const exp3553 = "test"; +>exp3553 : Symbol(exp3553, Decl(manyConstExports.ts, 3553, 12)) + +export const exp3554 = "test"; +>exp3554 : Symbol(exp3554, Decl(manyConstExports.ts, 3554, 12)) + +export const exp3555 = "test"; +>exp3555 : Symbol(exp3555, Decl(manyConstExports.ts, 3555, 12)) + +export const exp3556 = "test"; +>exp3556 : Symbol(exp3556, Decl(manyConstExports.ts, 3556, 12)) + +export const exp3557 = "test"; +>exp3557 : Symbol(exp3557, Decl(manyConstExports.ts, 3557, 12)) + +export const exp3558 = "test"; +>exp3558 : Symbol(exp3558, Decl(manyConstExports.ts, 3558, 12)) + +export const exp3559 = "test"; +>exp3559 : Symbol(exp3559, Decl(manyConstExports.ts, 3559, 12)) + +export const exp3560 = "test"; +>exp3560 : Symbol(exp3560, Decl(manyConstExports.ts, 3560, 12)) + +export const exp3561 = "test"; +>exp3561 : Symbol(exp3561, Decl(manyConstExports.ts, 3561, 12)) + +export const exp3562 = "test"; +>exp3562 : Symbol(exp3562, Decl(manyConstExports.ts, 3562, 12)) + +export const exp3563 = "test"; +>exp3563 : Symbol(exp3563, Decl(manyConstExports.ts, 3563, 12)) + +export const exp3564 = "test"; +>exp3564 : Symbol(exp3564, Decl(manyConstExports.ts, 3564, 12)) + +export const exp3565 = "test"; +>exp3565 : Symbol(exp3565, Decl(manyConstExports.ts, 3565, 12)) + +export const exp3566 = "test"; +>exp3566 : Symbol(exp3566, Decl(manyConstExports.ts, 3566, 12)) + +export const exp3567 = "test"; +>exp3567 : Symbol(exp3567, Decl(manyConstExports.ts, 3567, 12)) + +export const exp3568 = "test"; +>exp3568 : Symbol(exp3568, Decl(manyConstExports.ts, 3568, 12)) + +export const exp3569 = "test"; +>exp3569 : Symbol(exp3569, Decl(manyConstExports.ts, 3569, 12)) + +export const exp3570 = "test"; +>exp3570 : Symbol(exp3570, Decl(manyConstExports.ts, 3570, 12)) + +export const exp3571 = "test"; +>exp3571 : Symbol(exp3571, Decl(manyConstExports.ts, 3571, 12)) + +export const exp3572 = "test"; +>exp3572 : Symbol(exp3572, Decl(manyConstExports.ts, 3572, 12)) + +export const exp3573 = "test"; +>exp3573 : Symbol(exp3573, Decl(manyConstExports.ts, 3573, 12)) + +export const exp3574 = "test"; +>exp3574 : Symbol(exp3574, Decl(manyConstExports.ts, 3574, 12)) + +export const exp3575 = "test"; +>exp3575 : Symbol(exp3575, Decl(manyConstExports.ts, 3575, 12)) + +export const exp3576 = "test"; +>exp3576 : Symbol(exp3576, Decl(manyConstExports.ts, 3576, 12)) + +export const exp3577 = "test"; +>exp3577 : Symbol(exp3577, Decl(manyConstExports.ts, 3577, 12)) + +export const exp3578 = "test"; +>exp3578 : Symbol(exp3578, Decl(manyConstExports.ts, 3578, 12)) + +export const exp3579 = "test"; +>exp3579 : Symbol(exp3579, Decl(manyConstExports.ts, 3579, 12)) + +export const exp3580 = "test"; +>exp3580 : Symbol(exp3580, Decl(manyConstExports.ts, 3580, 12)) + +export const exp3581 = "test"; +>exp3581 : Symbol(exp3581, Decl(manyConstExports.ts, 3581, 12)) + +export const exp3582 = "test"; +>exp3582 : Symbol(exp3582, Decl(manyConstExports.ts, 3582, 12)) + +export const exp3583 = "test"; +>exp3583 : Symbol(exp3583, Decl(manyConstExports.ts, 3583, 12)) + +export const exp3584 = "test"; +>exp3584 : Symbol(exp3584, Decl(manyConstExports.ts, 3584, 12)) + +export const exp3585 = "test"; +>exp3585 : Symbol(exp3585, Decl(manyConstExports.ts, 3585, 12)) + +export const exp3586 = "test"; +>exp3586 : Symbol(exp3586, Decl(manyConstExports.ts, 3586, 12)) + +export const exp3587 = "test"; +>exp3587 : Symbol(exp3587, Decl(manyConstExports.ts, 3587, 12)) + +export const exp3588 = "test"; +>exp3588 : Symbol(exp3588, Decl(manyConstExports.ts, 3588, 12)) + +export const exp3589 = "test"; +>exp3589 : Symbol(exp3589, Decl(manyConstExports.ts, 3589, 12)) + +export const exp3590 = "test"; +>exp3590 : Symbol(exp3590, Decl(manyConstExports.ts, 3590, 12)) + +export const exp3591 = "test"; +>exp3591 : Symbol(exp3591, Decl(manyConstExports.ts, 3591, 12)) + +export const exp3592 = "test"; +>exp3592 : Symbol(exp3592, Decl(manyConstExports.ts, 3592, 12)) + +export const exp3593 = "test"; +>exp3593 : Symbol(exp3593, Decl(manyConstExports.ts, 3593, 12)) + +export const exp3594 = "test"; +>exp3594 : Symbol(exp3594, Decl(manyConstExports.ts, 3594, 12)) + +export const exp3595 = "test"; +>exp3595 : Symbol(exp3595, Decl(manyConstExports.ts, 3595, 12)) + +export const exp3596 = "test"; +>exp3596 : Symbol(exp3596, Decl(manyConstExports.ts, 3596, 12)) + +export const exp3597 = "test"; +>exp3597 : Symbol(exp3597, Decl(manyConstExports.ts, 3597, 12)) + +export const exp3598 = "test"; +>exp3598 : Symbol(exp3598, Decl(manyConstExports.ts, 3598, 12)) + +export const exp3599 = "test"; +>exp3599 : Symbol(exp3599, Decl(manyConstExports.ts, 3599, 12)) + +export const exp3600 = "test"; +>exp3600 : Symbol(exp3600, Decl(manyConstExports.ts, 3600, 12)) + +export const exp3601 = "test"; +>exp3601 : Symbol(exp3601, Decl(manyConstExports.ts, 3601, 12)) + +export const exp3602 = "test"; +>exp3602 : Symbol(exp3602, Decl(manyConstExports.ts, 3602, 12)) + +export const exp3603 = "test"; +>exp3603 : Symbol(exp3603, Decl(manyConstExports.ts, 3603, 12)) + +export const exp3604 = "test"; +>exp3604 : Symbol(exp3604, Decl(manyConstExports.ts, 3604, 12)) + +export const exp3605 = "test"; +>exp3605 : Symbol(exp3605, Decl(manyConstExports.ts, 3605, 12)) + +export const exp3606 = "test"; +>exp3606 : Symbol(exp3606, Decl(manyConstExports.ts, 3606, 12)) + +export const exp3607 = "test"; +>exp3607 : Symbol(exp3607, Decl(manyConstExports.ts, 3607, 12)) + +export const exp3608 = "test"; +>exp3608 : Symbol(exp3608, Decl(manyConstExports.ts, 3608, 12)) + +export const exp3609 = "test"; +>exp3609 : Symbol(exp3609, Decl(manyConstExports.ts, 3609, 12)) + +export const exp3610 = "test"; +>exp3610 : Symbol(exp3610, Decl(manyConstExports.ts, 3610, 12)) + +export const exp3611 = "test"; +>exp3611 : Symbol(exp3611, Decl(manyConstExports.ts, 3611, 12)) + +export const exp3612 = "test"; +>exp3612 : Symbol(exp3612, Decl(manyConstExports.ts, 3612, 12)) + +export const exp3613 = "test"; +>exp3613 : Symbol(exp3613, Decl(manyConstExports.ts, 3613, 12)) + +export const exp3614 = "test"; +>exp3614 : Symbol(exp3614, Decl(manyConstExports.ts, 3614, 12)) + +export const exp3615 = "test"; +>exp3615 : Symbol(exp3615, Decl(manyConstExports.ts, 3615, 12)) + +export const exp3616 = "test"; +>exp3616 : Symbol(exp3616, Decl(manyConstExports.ts, 3616, 12)) + +export const exp3617 = "test"; +>exp3617 : Symbol(exp3617, Decl(manyConstExports.ts, 3617, 12)) + +export const exp3618 = "test"; +>exp3618 : Symbol(exp3618, Decl(manyConstExports.ts, 3618, 12)) + +export const exp3619 = "test"; +>exp3619 : Symbol(exp3619, Decl(manyConstExports.ts, 3619, 12)) + +export const exp3620 = "test"; +>exp3620 : Symbol(exp3620, Decl(manyConstExports.ts, 3620, 12)) + +export const exp3621 = "test"; +>exp3621 : Symbol(exp3621, Decl(manyConstExports.ts, 3621, 12)) + +export const exp3622 = "test"; +>exp3622 : Symbol(exp3622, Decl(manyConstExports.ts, 3622, 12)) + +export const exp3623 = "test"; +>exp3623 : Symbol(exp3623, Decl(manyConstExports.ts, 3623, 12)) + +export const exp3624 = "test"; +>exp3624 : Symbol(exp3624, Decl(manyConstExports.ts, 3624, 12)) + +export const exp3625 = "test"; +>exp3625 : Symbol(exp3625, Decl(manyConstExports.ts, 3625, 12)) + +export const exp3626 = "test"; +>exp3626 : Symbol(exp3626, Decl(manyConstExports.ts, 3626, 12)) + +export const exp3627 = "test"; +>exp3627 : Symbol(exp3627, Decl(manyConstExports.ts, 3627, 12)) + +export const exp3628 = "test"; +>exp3628 : Symbol(exp3628, Decl(manyConstExports.ts, 3628, 12)) + +export const exp3629 = "test"; +>exp3629 : Symbol(exp3629, Decl(manyConstExports.ts, 3629, 12)) + +export const exp3630 = "test"; +>exp3630 : Symbol(exp3630, Decl(manyConstExports.ts, 3630, 12)) + +export const exp3631 = "test"; +>exp3631 : Symbol(exp3631, Decl(manyConstExports.ts, 3631, 12)) + +export const exp3632 = "test"; +>exp3632 : Symbol(exp3632, Decl(manyConstExports.ts, 3632, 12)) + +export const exp3633 = "test"; +>exp3633 : Symbol(exp3633, Decl(manyConstExports.ts, 3633, 12)) + +export const exp3634 = "test"; +>exp3634 : Symbol(exp3634, Decl(manyConstExports.ts, 3634, 12)) + +export const exp3635 = "test"; +>exp3635 : Symbol(exp3635, Decl(manyConstExports.ts, 3635, 12)) + +export const exp3636 = "test"; +>exp3636 : Symbol(exp3636, Decl(manyConstExports.ts, 3636, 12)) + +export const exp3637 = "test"; +>exp3637 : Symbol(exp3637, Decl(manyConstExports.ts, 3637, 12)) + +export const exp3638 = "test"; +>exp3638 : Symbol(exp3638, Decl(manyConstExports.ts, 3638, 12)) + +export const exp3639 = "test"; +>exp3639 : Symbol(exp3639, Decl(manyConstExports.ts, 3639, 12)) + +export const exp3640 = "test"; +>exp3640 : Symbol(exp3640, Decl(manyConstExports.ts, 3640, 12)) + +export const exp3641 = "test"; +>exp3641 : Symbol(exp3641, Decl(manyConstExports.ts, 3641, 12)) + +export const exp3642 = "test"; +>exp3642 : Symbol(exp3642, Decl(manyConstExports.ts, 3642, 12)) + +export const exp3643 = "test"; +>exp3643 : Symbol(exp3643, Decl(manyConstExports.ts, 3643, 12)) + +export const exp3644 = "test"; +>exp3644 : Symbol(exp3644, Decl(manyConstExports.ts, 3644, 12)) + +export const exp3645 = "test"; +>exp3645 : Symbol(exp3645, Decl(manyConstExports.ts, 3645, 12)) + +export const exp3646 = "test"; +>exp3646 : Symbol(exp3646, Decl(manyConstExports.ts, 3646, 12)) + +export const exp3647 = "test"; +>exp3647 : Symbol(exp3647, Decl(manyConstExports.ts, 3647, 12)) + +export const exp3648 = "test"; +>exp3648 : Symbol(exp3648, Decl(manyConstExports.ts, 3648, 12)) + +export const exp3649 = "test"; +>exp3649 : Symbol(exp3649, Decl(manyConstExports.ts, 3649, 12)) + +export const exp3650 = "test"; +>exp3650 : Symbol(exp3650, Decl(manyConstExports.ts, 3650, 12)) + +export const exp3651 = "test"; +>exp3651 : Symbol(exp3651, Decl(manyConstExports.ts, 3651, 12)) + +export const exp3652 = "test"; +>exp3652 : Symbol(exp3652, Decl(manyConstExports.ts, 3652, 12)) + +export const exp3653 = "test"; +>exp3653 : Symbol(exp3653, Decl(manyConstExports.ts, 3653, 12)) + +export const exp3654 = "test"; +>exp3654 : Symbol(exp3654, Decl(manyConstExports.ts, 3654, 12)) + +export const exp3655 = "test"; +>exp3655 : Symbol(exp3655, Decl(manyConstExports.ts, 3655, 12)) + +export const exp3656 = "test"; +>exp3656 : Symbol(exp3656, Decl(manyConstExports.ts, 3656, 12)) + +export const exp3657 = "test"; +>exp3657 : Symbol(exp3657, Decl(manyConstExports.ts, 3657, 12)) + +export const exp3658 = "test"; +>exp3658 : Symbol(exp3658, Decl(manyConstExports.ts, 3658, 12)) + +export const exp3659 = "test"; +>exp3659 : Symbol(exp3659, Decl(manyConstExports.ts, 3659, 12)) + +export const exp3660 = "test"; +>exp3660 : Symbol(exp3660, Decl(manyConstExports.ts, 3660, 12)) + +export const exp3661 = "test"; +>exp3661 : Symbol(exp3661, Decl(manyConstExports.ts, 3661, 12)) + +export const exp3662 = "test"; +>exp3662 : Symbol(exp3662, Decl(manyConstExports.ts, 3662, 12)) + +export const exp3663 = "test"; +>exp3663 : Symbol(exp3663, Decl(manyConstExports.ts, 3663, 12)) + +export const exp3664 = "test"; +>exp3664 : Symbol(exp3664, Decl(manyConstExports.ts, 3664, 12)) + +export const exp3665 = "test"; +>exp3665 : Symbol(exp3665, Decl(manyConstExports.ts, 3665, 12)) + +export const exp3666 = "test"; +>exp3666 : Symbol(exp3666, Decl(manyConstExports.ts, 3666, 12)) + +export const exp3667 = "test"; +>exp3667 : Symbol(exp3667, Decl(manyConstExports.ts, 3667, 12)) + +export const exp3668 = "test"; +>exp3668 : Symbol(exp3668, Decl(manyConstExports.ts, 3668, 12)) + +export const exp3669 = "test"; +>exp3669 : Symbol(exp3669, Decl(manyConstExports.ts, 3669, 12)) + +export const exp3670 = "test"; +>exp3670 : Symbol(exp3670, Decl(manyConstExports.ts, 3670, 12)) + +export const exp3671 = "test"; +>exp3671 : Symbol(exp3671, Decl(manyConstExports.ts, 3671, 12)) + +export const exp3672 = "test"; +>exp3672 : Symbol(exp3672, Decl(manyConstExports.ts, 3672, 12)) + +export const exp3673 = "test"; +>exp3673 : Symbol(exp3673, Decl(manyConstExports.ts, 3673, 12)) + +export const exp3674 = "test"; +>exp3674 : Symbol(exp3674, Decl(manyConstExports.ts, 3674, 12)) + +export const exp3675 = "test"; +>exp3675 : Symbol(exp3675, Decl(manyConstExports.ts, 3675, 12)) + +export const exp3676 = "test"; +>exp3676 : Symbol(exp3676, Decl(manyConstExports.ts, 3676, 12)) + +export const exp3677 = "test"; +>exp3677 : Symbol(exp3677, Decl(manyConstExports.ts, 3677, 12)) + +export const exp3678 = "test"; +>exp3678 : Symbol(exp3678, Decl(manyConstExports.ts, 3678, 12)) + +export const exp3679 = "test"; +>exp3679 : Symbol(exp3679, Decl(manyConstExports.ts, 3679, 12)) + +export const exp3680 = "test"; +>exp3680 : Symbol(exp3680, Decl(manyConstExports.ts, 3680, 12)) + +export const exp3681 = "test"; +>exp3681 : Symbol(exp3681, Decl(manyConstExports.ts, 3681, 12)) + +export const exp3682 = "test"; +>exp3682 : Symbol(exp3682, Decl(manyConstExports.ts, 3682, 12)) + +export const exp3683 = "test"; +>exp3683 : Symbol(exp3683, Decl(manyConstExports.ts, 3683, 12)) + +export const exp3684 = "test"; +>exp3684 : Symbol(exp3684, Decl(manyConstExports.ts, 3684, 12)) + +export const exp3685 = "test"; +>exp3685 : Symbol(exp3685, Decl(manyConstExports.ts, 3685, 12)) + +export const exp3686 = "test"; +>exp3686 : Symbol(exp3686, Decl(manyConstExports.ts, 3686, 12)) + +export const exp3687 = "test"; +>exp3687 : Symbol(exp3687, Decl(manyConstExports.ts, 3687, 12)) + +export const exp3688 = "test"; +>exp3688 : Symbol(exp3688, Decl(manyConstExports.ts, 3688, 12)) + +export const exp3689 = "test"; +>exp3689 : Symbol(exp3689, Decl(manyConstExports.ts, 3689, 12)) + +export const exp3690 = "test"; +>exp3690 : Symbol(exp3690, Decl(manyConstExports.ts, 3690, 12)) + +export const exp3691 = "test"; +>exp3691 : Symbol(exp3691, Decl(manyConstExports.ts, 3691, 12)) + +export const exp3692 = "test"; +>exp3692 : Symbol(exp3692, Decl(manyConstExports.ts, 3692, 12)) + +export const exp3693 = "test"; +>exp3693 : Symbol(exp3693, Decl(manyConstExports.ts, 3693, 12)) + +export const exp3694 = "test"; +>exp3694 : Symbol(exp3694, Decl(manyConstExports.ts, 3694, 12)) + +export const exp3695 = "test"; +>exp3695 : Symbol(exp3695, Decl(manyConstExports.ts, 3695, 12)) + +export const exp3696 = "test"; +>exp3696 : Symbol(exp3696, Decl(manyConstExports.ts, 3696, 12)) + +export const exp3697 = "test"; +>exp3697 : Symbol(exp3697, Decl(manyConstExports.ts, 3697, 12)) + +export const exp3698 = "test"; +>exp3698 : Symbol(exp3698, Decl(manyConstExports.ts, 3698, 12)) + +export const exp3699 = "test"; +>exp3699 : Symbol(exp3699, Decl(manyConstExports.ts, 3699, 12)) + +export const exp3700 = "test"; +>exp3700 : Symbol(exp3700, Decl(manyConstExports.ts, 3700, 12)) + +export const exp3701 = "test"; +>exp3701 : Symbol(exp3701, Decl(manyConstExports.ts, 3701, 12)) + +export const exp3702 = "test"; +>exp3702 : Symbol(exp3702, Decl(manyConstExports.ts, 3702, 12)) + +export const exp3703 = "test"; +>exp3703 : Symbol(exp3703, Decl(manyConstExports.ts, 3703, 12)) + +export const exp3704 = "test"; +>exp3704 : Symbol(exp3704, Decl(manyConstExports.ts, 3704, 12)) + +export const exp3705 = "test"; +>exp3705 : Symbol(exp3705, Decl(manyConstExports.ts, 3705, 12)) + +export const exp3706 = "test"; +>exp3706 : Symbol(exp3706, Decl(manyConstExports.ts, 3706, 12)) + +export const exp3707 = "test"; +>exp3707 : Symbol(exp3707, Decl(manyConstExports.ts, 3707, 12)) + +export const exp3708 = "test"; +>exp3708 : Symbol(exp3708, Decl(manyConstExports.ts, 3708, 12)) + +export const exp3709 = "test"; +>exp3709 : Symbol(exp3709, Decl(manyConstExports.ts, 3709, 12)) + +export const exp3710 = "test"; +>exp3710 : Symbol(exp3710, Decl(manyConstExports.ts, 3710, 12)) + +export const exp3711 = "test"; +>exp3711 : Symbol(exp3711, Decl(manyConstExports.ts, 3711, 12)) + +export const exp3712 = "test"; +>exp3712 : Symbol(exp3712, Decl(manyConstExports.ts, 3712, 12)) + +export const exp3713 = "test"; +>exp3713 : Symbol(exp3713, Decl(manyConstExports.ts, 3713, 12)) + +export const exp3714 = "test"; +>exp3714 : Symbol(exp3714, Decl(manyConstExports.ts, 3714, 12)) + +export const exp3715 = "test"; +>exp3715 : Symbol(exp3715, Decl(manyConstExports.ts, 3715, 12)) + +export const exp3716 = "test"; +>exp3716 : Symbol(exp3716, Decl(manyConstExports.ts, 3716, 12)) + +export const exp3717 = "test"; +>exp3717 : Symbol(exp3717, Decl(manyConstExports.ts, 3717, 12)) + +export const exp3718 = "test"; +>exp3718 : Symbol(exp3718, Decl(manyConstExports.ts, 3718, 12)) + +export const exp3719 = "test"; +>exp3719 : Symbol(exp3719, Decl(manyConstExports.ts, 3719, 12)) + +export const exp3720 = "test"; +>exp3720 : Symbol(exp3720, Decl(manyConstExports.ts, 3720, 12)) + +export const exp3721 = "test"; +>exp3721 : Symbol(exp3721, Decl(manyConstExports.ts, 3721, 12)) + +export const exp3722 = "test"; +>exp3722 : Symbol(exp3722, Decl(manyConstExports.ts, 3722, 12)) + +export const exp3723 = "test"; +>exp3723 : Symbol(exp3723, Decl(manyConstExports.ts, 3723, 12)) + +export const exp3724 = "test"; +>exp3724 : Symbol(exp3724, Decl(manyConstExports.ts, 3724, 12)) + +export const exp3725 = "test"; +>exp3725 : Symbol(exp3725, Decl(manyConstExports.ts, 3725, 12)) + +export const exp3726 = "test"; +>exp3726 : Symbol(exp3726, Decl(manyConstExports.ts, 3726, 12)) + +export const exp3727 = "test"; +>exp3727 : Symbol(exp3727, Decl(manyConstExports.ts, 3727, 12)) + +export const exp3728 = "test"; +>exp3728 : Symbol(exp3728, Decl(manyConstExports.ts, 3728, 12)) + +export const exp3729 = "test"; +>exp3729 : Symbol(exp3729, Decl(manyConstExports.ts, 3729, 12)) + +export const exp3730 = "test"; +>exp3730 : Symbol(exp3730, Decl(manyConstExports.ts, 3730, 12)) + +export const exp3731 = "test"; +>exp3731 : Symbol(exp3731, Decl(manyConstExports.ts, 3731, 12)) + +export const exp3732 = "test"; +>exp3732 : Symbol(exp3732, Decl(manyConstExports.ts, 3732, 12)) + +export const exp3733 = "test"; +>exp3733 : Symbol(exp3733, Decl(manyConstExports.ts, 3733, 12)) + +export const exp3734 = "test"; +>exp3734 : Symbol(exp3734, Decl(manyConstExports.ts, 3734, 12)) + +export const exp3735 = "test"; +>exp3735 : Symbol(exp3735, Decl(manyConstExports.ts, 3735, 12)) + +export const exp3736 = "test"; +>exp3736 : Symbol(exp3736, Decl(manyConstExports.ts, 3736, 12)) + +export const exp3737 = "test"; +>exp3737 : Symbol(exp3737, Decl(manyConstExports.ts, 3737, 12)) + +export const exp3738 = "test"; +>exp3738 : Symbol(exp3738, Decl(manyConstExports.ts, 3738, 12)) + +export const exp3739 = "test"; +>exp3739 : Symbol(exp3739, Decl(manyConstExports.ts, 3739, 12)) + +export const exp3740 = "test"; +>exp3740 : Symbol(exp3740, Decl(manyConstExports.ts, 3740, 12)) + +export const exp3741 = "test"; +>exp3741 : Symbol(exp3741, Decl(manyConstExports.ts, 3741, 12)) + +export const exp3742 = "test"; +>exp3742 : Symbol(exp3742, Decl(manyConstExports.ts, 3742, 12)) + +export const exp3743 = "test"; +>exp3743 : Symbol(exp3743, Decl(manyConstExports.ts, 3743, 12)) + +export const exp3744 = "test"; +>exp3744 : Symbol(exp3744, Decl(manyConstExports.ts, 3744, 12)) + +export const exp3745 = "test"; +>exp3745 : Symbol(exp3745, Decl(manyConstExports.ts, 3745, 12)) + +export const exp3746 = "test"; +>exp3746 : Symbol(exp3746, Decl(manyConstExports.ts, 3746, 12)) + +export const exp3747 = "test"; +>exp3747 : Symbol(exp3747, Decl(manyConstExports.ts, 3747, 12)) + +export const exp3748 = "test"; +>exp3748 : Symbol(exp3748, Decl(manyConstExports.ts, 3748, 12)) + +export const exp3749 = "test"; +>exp3749 : Symbol(exp3749, Decl(manyConstExports.ts, 3749, 12)) + +export const exp3750 = "test"; +>exp3750 : Symbol(exp3750, Decl(manyConstExports.ts, 3750, 12)) + +export const exp3751 = "test"; +>exp3751 : Symbol(exp3751, Decl(manyConstExports.ts, 3751, 12)) + +export const exp3752 = "test"; +>exp3752 : Symbol(exp3752, Decl(manyConstExports.ts, 3752, 12)) + +export const exp3753 = "test"; +>exp3753 : Symbol(exp3753, Decl(manyConstExports.ts, 3753, 12)) + +export const exp3754 = "test"; +>exp3754 : Symbol(exp3754, Decl(manyConstExports.ts, 3754, 12)) + +export const exp3755 = "test"; +>exp3755 : Symbol(exp3755, Decl(manyConstExports.ts, 3755, 12)) + +export const exp3756 = "test"; +>exp3756 : Symbol(exp3756, Decl(manyConstExports.ts, 3756, 12)) + +export const exp3757 = "test"; +>exp3757 : Symbol(exp3757, Decl(manyConstExports.ts, 3757, 12)) + +export const exp3758 = "test"; +>exp3758 : Symbol(exp3758, Decl(manyConstExports.ts, 3758, 12)) + +export const exp3759 = "test"; +>exp3759 : Symbol(exp3759, Decl(manyConstExports.ts, 3759, 12)) + +export const exp3760 = "test"; +>exp3760 : Symbol(exp3760, Decl(manyConstExports.ts, 3760, 12)) + +export const exp3761 = "test"; +>exp3761 : Symbol(exp3761, Decl(manyConstExports.ts, 3761, 12)) + +export const exp3762 = "test"; +>exp3762 : Symbol(exp3762, Decl(manyConstExports.ts, 3762, 12)) + +export const exp3763 = "test"; +>exp3763 : Symbol(exp3763, Decl(manyConstExports.ts, 3763, 12)) + +export const exp3764 = "test"; +>exp3764 : Symbol(exp3764, Decl(manyConstExports.ts, 3764, 12)) + +export const exp3765 = "test"; +>exp3765 : Symbol(exp3765, Decl(manyConstExports.ts, 3765, 12)) + +export const exp3766 = "test"; +>exp3766 : Symbol(exp3766, Decl(manyConstExports.ts, 3766, 12)) + +export const exp3767 = "test"; +>exp3767 : Symbol(exp3767, Decl(manyConstExports.ts, 3767, 12)) + +export const exp3768 = "test"; +>exp3768 : Symbol(exp3768, Decl(manyConstExports.ts, 3768, 12)) + +export const exp3769 = "test"; +>exp3769 : Symbol(exp3769, Decl(manyConstExports.ts, 3769, 12)) + +export const exp3770 = "test"; +>exp3770 : Symbol(exp3770, Decl(manyConstExports.ts, 3770, 12)) + +export const exp3771 = "test"; +>exp3771 : Symbol(exp3771, Decl(manyConstExports.ts, 3771, 12)) + +export const exp3772 = "test"; +>exp3772 : Symbol(exp3772, Decl(manyConstExports.ts, 3772, 12)) + +export const exp3773 = "test"; +>exp3773 : Symbol(exp3773, Decl(manyConstExports.ts, 3773, 12)) + +export const exp3774 = "test"; +>exp3774 : Symbol(exp3774, Decl(manyConstExports.ts, 3774, 12)) + +export const exp3775 = "test"; +>exp3775 : Symbol(exp3775, Decl(manyConstExports.ts, 3775, 12)) + +export const exp3776 = "test"; +>exp3776 : Symbol(exp3776, Decl(manyConstExports.ts, 3776, 12)) + +export const exp3777 = "test"; +>exp3777 : Symbol(exp3777, Decl(manyConstExports.ts, 3777, 12)) + +export const exp3778 = "test"; +>exp3778 : Symbol(exp3778, Decl(manyConstExports.ts, 3778, 12)) + +export const exp3779 = "test"; +>exp3779 : Symbol(exp3779, Decl(manyConstExports.ts, 3779, 12)) + +export const exp3780 = "test"; +>exp3780 : Symbol(exp3780, Decl(manyConstExports.ts, 3780, 12)) + +export const exp3781 = "test"; +>exp3781 : Symbol(exp3781, Decl(manyConstExports.ts, 3781, 12)) + +export const exp3782 = "test"; +>exp3782 : Symbol(exp3782, Decl(manyConstExports.ts, 3782, 12)) + +export const exp3783 = "test"; +>exp3783 : Symbol(exp3783, Decl(manyConstExports.ts, 3783, 12)) + +export const exp3784 = "test"; +>exp3784 : Symbol(exp3784, Decl(manyConstExports.ts, 3784, 12)) + +export const exp3785 = "test"; +>exp3785 : Symbol(exp3785, Decl(manyConstExports.ts, 3785, 12)) + +export const exp3786 = "test"; +>exp3786 : Symbol(exp3786, Decl(manyConstExports.ts, 3786, 12)) + +export const exp3787 = "test"; +>exp3787 : Symbol(exp3787, Decl(manyConstExports.ts, 3787, 12)) + +export const exp3788 = "test"; +>exp3788 : Symbol(exp3788, Decl(manyConstExports.ts, 3788, 12)) + +export const exp3789 = "test"; +>exp3789 : Symbol(exp3789, Decl(manyConstExports.ts, 3789, 12)) + +export const exp3790 = "test"; +>exp3790 : Symbol(exp3790, Decl(manyConstExports.ts, 3790, 12)) + +export const exp3791 = "test"; +>exp3791 : Symbol(exp3791, Decl(manyConstExports.ts, 3791, 12)) + +export const exp3792 = "test"; +>exp3792 : Symbol(exp3792, Decl(manyConstExports.ts, 3792, 12)) + +export const exp3793 = "test"; +>exp3793 : Symbol(exp3793, Decl(manyConstExports.ts, 3793, 12)) + +export const exp3794 = "test"; +>exp3794 : Symbol(exp3794, Decl(manyConstExports.ts, 3794, 12)) + +export const exp3795 = "test"; +>exp3795 : Symbol(exp3795, Decl(manyConstExports.ts, 3795, 12)) + +export const exp3796 = "test"; +>exp3796 : Symbol(exp3796, Decl(manyConstExports.ts, 3796, 12)) + +export const exp3797 = "test"; +>exp3797 : Symbol(exp3797, Decl(manyConstExports.ts, 3797, 12)) + +export const exp3798 = "test"; +>exp3798 : Symbol(exp3798, Decl(manyConstExports.ts, 3798, 12)) + +export const exp3799 = "test"; +>exp3799 : Symbol(exp3799, Decl(manyConstExports.ts, 3799, 12)) + +export const exp3800 = "test"; +>exp3800 : Symbol(exp3800, Decl(manyConstExports.ts, 3800, 12)) + +export const exp3801 = "test"; +>exp3801 : Symbol(exp3801, Decl(manyConstExports.ts, 3801, 12)) + +export const exp3802 = "test"; +>exp3802 : Symbol(exp3802, Decl(manyConstExports.ts, 3802, 12)) + +export const exp3803 = "test"; +>exp3803 : Symbol(exp3803, Decl(manyConstExports.ts, 3803, 12)) + +export const exp3804 = "test"; +>exp3804 : Symbol(exp3804, Decl(manyConstExports.ts, 3804, 12)) + +export const exp3805 = "test"; +>exp3805 : Symbol(exp3805, Decl(manyConstExports.ts, 3805, 12)) + +export const exp3806 = "test"; +>exp3806 : Symbol(exp3806, Decl(manyConstExports.ts, 3806, 12)) + +export const exp3807 = "test"; +>exp3807 : Symbol(exp3807, Decl(manyConstExports.ts, 3807, 12)) + +export const exp3808 = "test"; +>exp3808 : Symbol(exp3808, Decl(manyConstExports.ts, 3808, 12)) + +export const exp3809 = "test"; +>exp3809 : Symbol(exp3809, Decl(manyConstExports.ts, 3809, 12)) + +export const exp3810 = "test"; +>exp3810 : Symbol(exp3810, Decl(manyConstExports.ts, 3810, 12)) + +export const exp3811 = "test"; +>exp3811 : Symbol(exp3811, Decl(manyConstExports.ts, 3811, 12)) + +export const exp3812 = "test"; +>exp3812 : Symbol(exp3812, Decl(manyConstExports.ts, 3812, 12)) + +export const exp3813 = "test"; +>exp3813 : Symbol(exp3813, Decl(manyConstExports.ts, 3813, 12)) + +export const exp3814 = "test"; +>exp3814 : Symbol(exp3814, Decl(manyConstExports.ts, 3814, 12)) + +export const exp3815 = "test"; +>exp3815 : Symbol(exp3815, Decl(manyConstExports.ts, 3815, 12)) + +export const exp3816 = "test"; +>exp3816 : Symbol(exp3816, Decl(manyConstExports.ts, 3816, 12)) + +export const exp3817 = "test"; +>exp3817 : Symbol(exp3817, Decl(manyConstExports.ts, 3817, 12)) + +export const exp3818 = "test"; +>exp3818 : Symbol(exp3818, Decl(manyConstExports.ts, 3818, 12)) + +export const exp3819 = "test"; +>exp3819 : Symbol(exp3819, Decl(manyConstExports.ts, 3819, 12)) + +export const exp3820 = "test"; +>exp3820 : Symbol(exp3820, Decl(manyConstExports.ts, 3820, 12)) + +export const exp3821 = "test"; +>exp3821 : Symbol(exp3821, Decl(manyConstExports.ts, 3821, 12)) + +export const exp3822 = "test"; +>exp3822 : Symbol(exp3822, Decl(manyConstExports.ts, 3822, 12)) + +export const exp3823 = "test"; +>exp3823 : Symbol(exp3823, Decl(manyConstExports.ts, 3823, 12)) + +export const exp3824 = "test"; +>exp3824 : Symbol(exp3824, Decl(manyConstExports.ts, 3824, 12)) + +export const exp3825 = "test"; +>exp3825 : Symbol(exp3825, Decl(manyConstExports.ts, 3825, 12)) + +export const exp3826 = "test"; +>exp3826 : Symbol(exp3826, Decl(manyConstExports.ts, 3826, 12)) + +export const exp3827 = "test"; +>exp3827 : Symbol(exp3827, Decl(manyConstExports.ts, 3827, 12)) + +export const exp3828 = "test"; +>exp3828 : Symbol(exp3828, Decl(manyConstExports.ts, 3828, 12)) + +export const exp3829 = "test"; +>exp3829 : Symbol(exp3829, Decl(manyConstExports.ts, 3829, 12)) + +export const exp3830 = "test"; +>exp3830 : Symbol(exp3830, Decl(manyConstExports.ts, 3830, 12)) + +export const exp3831 = "test"; +>exp3831 : Symbol(exp3831, Decl(manyConstExports.ts, 3831, 12)) + +export const exp3832 = "test"; +>exp3832 : Symbol(exp3832, Decl(manyConstExports.ts, 3832, 12)) + +export const exp3833 = "test"; +>exp3833 : Symbol(exp3833, Decl(manyConstExports.ts, 3833, 12)) + +export const exp3834 = "test"; +>exp3834 : Symbol(exp3834, Decl(manyConstExports.ts, 3834, 12)) + +export const exp3835 = "test"; +>exp3835 : Symbol(exp3835, Decl(manyConstExports.ts, 3835, 12)) + +export const exp3836 = "test"; +>exp3836 : Symbol(exp3836, Decl(manyConstExports.ts, 3836, 12)) + +export const exp3837 = "test"; +>exp3837 : Symbol(exp3837, Decl(manyConstExports.ts, 3837, 12)) + +export const exp3838 = "test"; +>exp3838 : Symbol(exp3838, Decl(manyConstExports.ts, 3838, 12)) + +export const exp3839 = "test"; +>exp3839 : Symbol(exp3839, Decl(manyConstExports.ts, 3839, 12)) + +export const exp3840 = "test"; +>exp3840 : Symbol(exp3840, Decl(manyConstExports.ts, 3840, 12)) + +export const exp3841 = "test"; +>exp3841 : Symbol(exp3841, Decl(manyConstExports.ts, 3841, 12)) + +export const exp3842 = "test"; +>exp3842 : Symbol(exp3842, Decl(manyConstExports.ts, 3842, 12)) + +export const exp3843 = "test"; +>exp3843 : Symbol(exp3843, Decl(manyConstExports.ts, 3843, 12)) + +export const exp3844 = "test"; +>exp3844 : Symbol(exp3844, Decl(manyConstExports.ts, 3844, 12)) + +export const exp3845 = "test"; +>exp3845 : Symbol(exp3845, Decl(manyConstExports.ts, 3845, 12)) + +export const exp3846 = "test"; +>exp3846 : Symbol(exp3846, Decl(manyConstExports.ts, 3846, 12)) + +export const exp3847 = "test"; +>exp3847 : Symbol(exp3847, Decl(manyConstExports.ts, 3847, 12)) + +export const exp3848 = "test"; +>exp3848 : Symbol(exp3848, Decl(manyConstExports.ts, 3848, 12)) + +export const exp3849 = "test"; +>exp3849 : Symbol(exp3849, Decl(manyConstExports.ts, 3849, 12)) + +export const exp3850 = "test"; +>exp3850 : Symbol(exp3850, Decl(manyConstExports.ts, 3850, 12)) + +export const exp3851 = "test"; +>exp3851 : Symbol(exp3851, Decl(manyConstExports.ts, 3851, 12)) + +export const exp3852 = "test"; +>exp3852 : Symbol(exp3852, Decl(manyConstExports.ts, 3852, 12)) + +export const exp3853 = "test"; +>exp3853 : Symbol(exp3853, Decl(manyConstExports.ts, 3853, 12)) + +export const exp3854 = "test"; +>exp3854 : Symbol(exp3854, Decl(manyConstExports.ts, 3854, 12)) + +export const exp3855 = "test"; +>exp3855 : Symbol(exp3855, Decl(manyConstExports.ts, 3855, 12)) + +export const exp3856 = "test"; +>exp3856 : Symbol(exp3856, Decl(manyConstExports.ts, 3856, 12)) + +export const exp3857 = "test"; +>exp3857 : Symbol(exp3857, Decl(manyConstExports.ts, 3857, 12)) + +export const exp3858 = "test"; +>exp3858 : Symbol(exp3858, Decl(manyConstExports.ts, 3858, 12)) + +export const exp3859 = "test"; +>exp3859 : Symbol(exp3859, Decl(manyConstExports.ts, 3859, 12)) + +export const exp3860 = "test"; +>exp3860 : Symbol(exp3860, Decl(manyConstExports.ts, 3860, 12)) + +export const exp3861 = "test"; +>exp3861 : Symbol(exp3861, Decl(manyConstExports.ts, 3861, 12)) + +export const exp3862 = "test"; +>exp3862 : Symbol(exp3862, Decl(manyConstExports.ts, 3862, 12)) + +export const exp3863 = "test"; +>exp3863 : Symbol(exp3863, Decl(manyConstExports.ts, 3863, 12)) + +export const exp3864 = "test"; +>exp3864 : Symbol(exp3864, Decl(manyConstExports.ts, 3864, 12)) + +export const exp3865 = "test"; +>exp3865 : Symbol(exp3865, Decl(manyConstExports.ts, 3865, 12)) + +export const exp3866 = "test"; +>exp3866 : Symbol(exp3866, Decl(manyConstExports.ts, 3866, 12)) + +export const exp3867 = "test"; +>exp3867 : Symbol(exp3867, Decl(manyConstExports.ts, 3867, 12)) + +export const exp3868 = "test"; +>exp3868 : Symbol(exp3868, Decl(manyConstExports.ts, 3868, 12)) + +export const exp3869 = "test"; +>exp3869 : Symbol(exp3869, Decl(manyConstExports.ts, 3869, 12)) + +export const exp3870 = "test"; +>exp3870 : Symbol(exp3870, Decl(manyConstExports.ts, 3870, 12)) + +export const exp3871 = "test"; +>exp3871 : Symbol(exp3871, Decl(manyConstExports.ts, 3871, 12)) + +export const exp3872 = "test"; +>exp3872 : Symbol(exp3872, Decl(manyConstExports.ts, 3872, 12)) + +export const exp3873 = "test"; +>exp3873 : Symbol(exp3873, Decl(manyConstExports.ts, 3873, 12)) + +export const exp3874 = "test"; +>exp3874 : Symbol(exp3874, Decl(manyConstExports.ts, 3874, 12)) + +export const exp3875 = "test"; +>exp3875 : Symbol(exp3875, Decl(manyConstExports.ts, 3875, 12)) + +export const exp3876 = "test"; +>exp3876 : Symbol(exp3876, Decl(manyConstExports.ts, 3876, 12)) + +export const exp3877 = "test"; +>exp3877 : Symbol(exp3877, Decl(manyConstExports.ts, 3877, 12)) + +export const exp3878 = "test"; +>exp3878 : Symbol(exp3878, Decl(manyConstExports.ts, 3878, 12)) + +export const exp3879 = "test"; +>exp3879 : Symbol(exp3879, Decl(manyConstExports.ts, 3879, 12)) + +export const exp3880 = "test"; +>exp3880 : Symbol(exp3880, Decl(manyConstExports.ts, 3880, 12)) + +export const exp3881 = "test"; +>exp3881 : Symbol(exp3881, Decl(manyConstExports.ts, 3881, 12)) + +export const exp3882 = "test"; +>exp3882 : Symbol(exp3882, Decl(manyConstExports.ts, 3882, 12)) + +export const exp3883 = "test"; +>exp3883 : Symbol(exp3883, Decl(manyConstExports.ts, 3883, 12)) + +export const exp3884 = "test"; +>exp3884 : Symbol(exp3884, Decl(manyConstExports.ts, 3884, 12)) + +export const exp3885 = "test"; +>exp3885 : Symbol(exp3885, Decl(manyConstExports.ts, 3885, 12)) + +export const exp3886 = "test"; +>exp3886 : Symbol(exp3886, Decl(manyConstExports.ts, 3886, 12)) + +export const exp3887 = "test"; +>exp3887 : Symbol(exp3887, Decl(manyConstExports.ts, 3887, 12)) + +export const exp3888 = "test"; +>exp3888 : Symbol(exp3888, Decl(manyConstExports.ts, 3888, 12)) + +export const exp3889 = "test"; +>exp3889 : Symbol(exp3889, Decl(manyConstExports.ts, 3889, 12)) + +export const exp3890 = "test"; +>exp3890 : Symbol(exp3890, Decl(manyConstExports.ts, 3890, 12)) + +export const exp3891 = "test"; +>exp3891 : Symbol(exp3891, Decl(manyConstExports.ts, 3891, 12)) + +export const exp3892 = "test"; +>exp3892 : Symbol(exp3892, Decl(manyConstExports.ts, 3892, 12)) + +export const exp3893 = "test"; +>exp3893 : Symbol(exp3893, Decl(manyConstExports.ts, 3893, 12)) + +export const exp3894 = "test"; +>exp3894 : Symbol(exp3894, Decl(manyConstExports.ts, 3894, 12)) + +export const exp3895 = "test"; +>exp3895 : Symbol(exp3895, Decl(manyConstExports.ts, 3895, 12)) + +export const exp3896 = "test"; +>exp3896 : Symbol(exp3896, Decl(manyConstExports.ts, 3896, 12)) + +export const exp3897 = "test"; +>exp3897 : Symbol(exp3897, Decl(manyConstExports.ts, 3897, 12)) + +export const exp3898 = "test"; +>exp3898 : Symbol(exp3898, Decl(manyConstExports.ts, 3898, 12)) + +export const exp3899 = "test"; +>exp3899 : Symbol(exp3899, Decl(manyConstExports.ts, 3899, 12)) + +export const exp3900 = "test"; +>exp3900 : Symbol(exp3900, Decl(manyConstExports.ts, 3900, 12)) + +export const exp3901 = "test"; +>exp3901 : Symbol(exp3901, Decl(manyConstExports.ts, 3901, 12)) + +export const exp3902 = "test"; +>exp3902 : Symbol(exp3902, Decl(manyConstExports.ts, 3902, 12)) + +export const exp3903 = "test"; +>exp3903 : Symbol(exp3903, Decl(manyConstExports.ts, 3903, 12)) + +export const exp3904 = "test"; +>exp3904 : Symbol(exp3904, Decl(manyConstExports.ts, 3904, 12)) + +export const exp3905 = "test"; +>exp3905 : Symbol(exp3905, Decl(manyConstExports.ts, 3905, 12)) + +export const exp3906 = "test"; +>exp3906 : Symbol(exp3906, Decl(manyConstExports.ts, 3906, 12)) + +export const exp3907 = "test"; +>exp3907 : Symbol(exp3907, Decl(manyConstExports.ts, 3907, 12)) + +export const exp3908 = "test"; +>exp3908 : Symbol(exp3908, Decl(manyConstExports.ts, 3908, 12)) + +export const exp3909 = "test"; +>exp3909 : Symbol(exp3909, Decl(manyConstExports.ts, 3909, 12)) + +export const exp3910 = "test"; +>exp3910 : Symbol(exp3910, Decl(manyConstExports.ts, 3910, 12)) + +export const exp3911 = "test"; +>exp3911 : Symbol(exp3911, Decl(manyConstExports.ts, 3911, 12)) + +export const exp3912 = "test"; +>exp3912 : Symbol(exp3912, Decl(manyConstExports.ts, 3912, 12)) + +export const exp3913 = "test"; +>exp3913 : Symbol(exp3913, Decl(manyConstExports.ts, 3913, 12)) + +export const exp3914 = "test"; +>exp3914 : Symbol(exp3914, Decl(manyConstExports.ts, 3914, 12)) + +export const exp3915 = "test"; +>exp3915 : Symbol(exp3915, Decl(manyConstExports.ts, 3915, 12)) + +export const exp3916 = "test"; +>exp3916 : Symbol(exp3916, Decl(manyConstExports.ts, 3916, 12)) + +export const exp3917 = "test"; +>exp3917 : Symbol(exp3917, Decl(manyConstExports.ts, 3917, 12)) + +export const exp3918 = "test"; +>exp3918 : Symbol(exp3918, Decl(manyConstExports.ts, 3918, 12)) + +export const exp3919 = "test"; +>exp3919 : Symbol(exp3919, Decl(manyConstExports.ts, 3919, 12)) + +export const exp3920 = "test"; +>exp3920 : Symbol(exp3920, Decl(manyConstExports.ts, 3920, 12)) + +export const exp3921 = "test"; +>exp3921 : Symbol(exp3921, Decl(manyConstExports.ts, 3921, 12)) + +export const exp3922 = "test"; +>exp3922 : Symbol(exp3922, Decl(manyConstExports.ts, 3922, 12)) + +export const exp3923 = "test"; +>exp3923 : Symbol(exp3923, Decl(manyConstExports.ts, 3923, 12)) + +export const exp3924 = "test"; +>exp3924 : Symbol(exp3924, Decl(manyConstExports.ts, 3924, 12)) + +export const exp3925 = "test"; +>exp3925 : Symbol(exp3925, Decl(manyConstExports.ts, 3925, 12)) + +export const exp3926 = "test"; +>exp3926 : Symbol(exp3926, Decl(manyConstExports.ts, 3926, 12)) + +export const exp3927 = "test"; +>exp3927 : Symbol(exp3927, Decl(manyConstExports.ts, 3927, 12)) + +export const exp3928 = "test"; +>exp3928 : Symbol(exp3928, Decl(manyConstExports.ts, 3928, 12)) + +export const exp3929 = "test"; +>exp3929 : Symbol(exp3929, Decl(manyConstExports.ts, 3929, 12)) + +export const exp3930 = "test"; +>exp3930 : Symbol(exp3930, Decl(manyConstExports.ts, 3930, 12)) + +export const exp3931 = "test"; +>exp3931 : Symbol(exp3931, Decl(manyConstExports.ts, 3931, 12)) + +export const exp3932 = "test"; +>exp3932 : Symbol(exp3932, Decl(manyConstExports.ts, 3932, 12)) + +export const exp3933 = "test"; +>exp3933 : Symbol(exp3933, Decl(manyConstExports.ts, 3933, 12)) + +export const exp3934 = "test"; +>exp3934 : Symbol(exp3934, Decl(manyConstExports.ts, 3934, 12)) + +export const exp3935 = "test"; +>exp3935 : Symbol(exp3935, Decl(manyConstExports.ts, 3935, 12)) + +export const exp3936 = "test"; +>exp3936 : Symbol(exp3936, Decl(manyConstExports.ts, 3936, 12)) + +export const exp3937 = "test"; +>exp3937 : Symbol(exp3937, Decl(manyConstExports.ts, 3937, 12)) + +export const exp3938 = "test"; +>exp3938 : Symbol(exp3938, Decl(manyConstExports.ts, 3938, 12)) + +export const exp3939 = "test"; +>exp3939 : Symbol(exp3939, Decl(manyConstExports.ts, 3939, 12)) + +export const exp3940 = "test"; +>exp3940 : Symbol(exp3940, Decl(manyConstExports.ts, 3940, 12)) + +export const exp3941 = "test"; +>exp3941 : Symbol(exp3941, Decl(manyConstExports.ts, 3941, 12)) + +export const exp3942 = "test"; +>exp3942 : Symbol(exp3942, Decl(manyConstExports.ts, 3942, 12)) + +export const exp3943 = "test"; +>exp3943 : Symbol(exp3943, Decl(manyConstExports.ts, 3943, 12)) + +export const exp3944 = "test"; +>exp3944 : Symbol(exp3944, Decl(manyConstExports.ts, 3944, 12)) + +export const exp3945 = "test"; +>exp3945 : Symbol(exp3945, Decl(manyConstExports.ts, 3945, 12)) + +export const exp3946 = "test"; +>exp3946 : Symbol(exp3946, Decl(manyConstExports.ts, 3946, 12)) + +export const exp3947 = "test"; +>exp3947 : Symbol(exp3947, Decl(manyConstExports.ts, 3947, 12)) + +export const exp3948 = "test"; +>exp3948 : Symbol(exp3948, Decl(manyConstExports.ts, 3948, 12)) + +export const exp3949 = "test"; +>exp3949 : Symbol(exp3949, Decl(manyConstExports.ts, 3949, 12)) + +export const exp3950 = "test"; +>exp3950 : Symbol(exp3950, Decl(manyConstExports.ts, 3950, 12)) + +export const exp3951 = "test"; +>exp3951 : Symbol(exp3951, Decl(manyConstExports.ts, 3951, 12)) + +export const exp3952 = "test"; +>exp3952 : Symbol(exp3952, Decl(manyConstExports.ts, 3952, 12)) + +export const exp3953 = "test"; +>exp3953 : Symbol(exp3953, Decl(manyConstExports.ts, 3953, 12)) + +export const exp3954 = "test"; +>exp3954 : Symbol(exp3954, Decl(manyConstExports.ts, 3954, 12)) + +export const exp3955 = "test"; +>exp3955 : Symbol(exp3955, Decl(manyConstExports.ts, 3955, 12)) + +export const exp3956 = "test"; +>exp3956 : Symbol(exp3956, Decl(manyConstExports.ts, 3956, 12)) + +export const exp3957 = "test"; +>exp3957 : Symbol(exp3957, Decl(manyConstExports.ts, 3957, 12)) + +export const exp3958 = "test"; +>exp3958 : Symbol(exp3958, Decl(manyConstExports.ts, 3958, 12)) + +export const exp3959 = "test"; +>exp3959 : Symbol(exp3959, Decl(manyConstExports.ts, 3959, 12)) + +export const exp3960 = "test"; +>exp3960 : Symbol(exp3960, Decl(manyConstExports.ts, 3960, 12)) + +export const exp3961 = "test"; +>exp3961 : Symbol(exp3961, Decl(manyConstExports.ts, 3961, 12)) + +export const exp3962 = "test"; +>exp3962 : Symbol(exp3962, Decl(manyConstExports.ts, 3962, 12)) + +export const exp3963 = "test"; +>exp3963 : Symbol(exp3963, Decl(manyConstExports.ts, 3963, 12)) + +export const exp3964 = "test"; +>exp3964 : Symbol(exp3964, Decl(manyConstExports.ts, 3964, 12)) + +export const exp3965 = "test"; +>exp3965 : Symbol(exp3965, Decl(manyConstExports.ts, 3965, 12)) + +export const exp3966 = "test"; +>exp3966 : Symbol(exp3966, Decl(manyConstExports.ts, 3966, 12)) + +export const exp3967 = "test"; +>exp3967 : Symbol(exp3967, Decl(manyConstExports.ts, 3967, 12)) + +export const exp3968 = "test"; +>exp3968 : Symbol(exp3968, Decl(manyConstExports.ts, 3968, 12)) + +export const exp3969 = "test"; +>exp3969 : Symbol(exp3969, Decl(manyConstExports.ts, 3969, 12)) + +export const exp3970 = "test"; +>exp3970 : Symbol(exp3970, Decl(manyConstExports.ts, 3970, 12)) + +export const exp3971 = "test"; +>exp3971 : Symbol(exp3971, Decl(manyConstExports.ts, 3971, 12)) + +export const exp3972 = "test"; +>exp3972 : Symbol(exp3972, Decl(manyConstExports.ts, 3972, 12)) + +export const exp3973 = "test"; +>exp3973 : Symbol(exp3973, Decl(manyConstExports.ts, 3973, 12)) + +export const exp3974 = "test"; +>exp3974 : Symbol(exp3974, Decl(manyConstExports.ts, 3974, 12)) + +export const exp3975 = "test"; +>exp3975 : Symbol(exp3975, Decl(manyConstExports.ts, 3975, 12)) + +export const exp3976 = "test"; +>exp3976 : Symbol(exp3976, Decl(manyConstExports.ts, 3976, 12)) + +export const exp3977 = "test"; +>exp3977 : Symbol(exp3977, Decl(manyConstExports.ts, 3977, 12)) + +export const exp3978 = "test"; +>exp3978 : Symbol(exp3978, Decl(manyConstExports.ts, 3978, 12)) + +export const exp3979 = "test"; +>exp3979 : Symbol(exp3979, Decl(manyConstExports.ts, 3979, 12)) + +export const exp3980 = "test"; +>exp3980 : Symbol(exp3980, Decl(manyConstExports.ts, 3980, 12)) + +export const exp3981 = "test"; +>exp3981 : Symbol(exp3981, Decl(manyConstExports.ts, 3981, 12)) + +export const exp3982 = "test"; +>exp3982 : Symbol(exp3982, Decl(manyConstExports.ts, 3982, 12)) + +export const exp3983 = "test"; +>exp3983 : Symbol(exp3983, Decl(manyConstExports.ts, 3983, 12)) + +export const exp3984 = "test"; +>exp3984 : Symbol(exp3984, Decl(manyConstExports.ts, 3984, 12)) + +export const exp3985 = "test"; +>exp3985 : Symbol(exp3985, Decl(manyConstExports.ts, 3985, 12)) + +export const exp3986 = "test"; +>exp3986 : Symbol(exp3986, Decl(manyConstExports.ts, 3986, 12)) + +export const exp3987 = "test"; +>exp3987 : Symbol(exp3987, Decl(manyConstExports.ts, 3987, 12)) + +export const exp3988 = "test"; +>exp3988 : Symbol(exp3988, Decl(manyConstExports.ts, 3988, 12)) + +export const exp3989 = "test"; +>exp3989 : Symbol(exp3989, Decl(manyConstExports.ts, 3989, 12)) + +export const exp3990 = "test"; +>exp3990 : Symbol(exp3990, Decl(manyConstExports.ts, 3990, 12)) + +export const exp3991 = "test"; +>exp3991 : Symbol(exp3991, Decl(manyConstExports.ts, 3991, 12)) + +export const exp3992 = "test"; +>exp3992 : Symbol(exp3992, Decl(manyConstExports.ts, 3992, 12)) + +export const exp3993 = "test"; +>exp3993 : Symbol(exp3993, Decl(manyConstExports.ts, 3993, 12)) + +export const exp3994 = "test"; +>exp3994 : Symbol(exp3994, Decl(manyConstExports.ts, 3994, 12)) + +export const exp3995 = "test"; +>exp3995 : Symbol(exp3995, Decl(manyConstExports.ts, 3995, 12)) + +export const exp3996 = "test"; +>exp3996 : Symbol(exp3996, Decl(manyConstExports.ts, 3996, 12)) + +export const exp3997 = "test"; +>exp3997 : Symbol(exp3997, Decl(manyConstExports.ts, 3997, 12)) + +export const exp3998 = "test"; +>exp3998 : Symbol(exp3998, Decl(manyConstExports.ts, 3998, 12)) + +export const exp3999 = "test"; +>exp3999 : Symbol(exp3999, Decl(manyConstExports.ts, 3999, 12)) + +export const exp4000 = "test"; +>exp4000 : Symbol(exp4000, Decl(manyConstExports.ts, 4000, 12)) + +export const exp4001 = "test"; +>exp4001 : Symbol(exp4001, Decl(manyConstExports.ts, 4001, 12)) + +export const exp4002 = "test"; +>exp4002 : Symbol(exp4002, Decl(manyConstExports.ts, 4002, 12)) + +export const exp4003 = "test"; +>exp4003 : Symbol(exp4003, Decl(manyConstExports.ts, 4003, 12)) + +export const exp4004 = "test"; +>exp4004 : Symbol(exp4004, Decl(manyConstExports.ts, 4004, 12)) + +export const exp4005 = "test"; +>exp4005 : Symbol(exp4005, Decl(manyConstExports.ts, 4005, 12)) + +export const exp4006 = "test"; +>exp4006 : Symbol(exp4006, Decl(manyConstExports.ts, 4006, 12)) + +export const exp4007 = "test"; +>exp4007 : Symbol(exp4007, Decl(manyConstExports.ts, 4007, 12)) + +export const exp4008 = "test"; +>exp4008 : Symbol(exp4008, Decl(manyConstExports.ts, 4008, 12)) + +export const exp4009 = "test"; +>exp4009 : Symbol(exp4009, Decl(manyConstExports.ts, 4009, 12)) + +export const exp4010 = "test"; +>exp4010 : Symbol(exp4010, Decl(manyConstExports.ts, 4010, 12)) + +export const exp4011 = "test"; +>exp4011 : Symbol(exp4011, Decl(manyConstExports.ts, 4011, 12)) + +export const exp4012 = "test"; +>exp4012 : Symbol(exp4012, Decl(manyConstExports.ts, 4012, 12)) + +export const exp4013 = "test"; +>exp4013 : Symbol(exp4013, Decl(manyConstExports.ts, 4013, 12)) + +export const exp4014 = "test"; +>exp4014 : Symbol(exp4014, Decl(manyConstExports.ts, 4014, 12)) + +export const exp4015 = "test"; +>exp4015 : Symbol(exp4015, Decl(manyConstExports.ts, 4015, 12)) + +export const exp4016 = "test"; +>exp4016 : Symbol(exp4016, Decl(manyConstExports.ts, 4016, 12)) + +export const exp4017 = "test"; +>exp4017 : Symbol(exp4017, Decl(manyConstExports.ts, 4017, 12)) + +export const exp4018 = "test"; +>exp4018 : Symbol(exp4018, Decl(manyConstExports.ts, 4018, 12)) + +export const exp4019 = "test"; +>exp4019 : Symbol(exp4019, Decl(manyConstExports.ts, 4019, 12)) + +export const exp4020 = "test"; +>exp4020 : Symbol(exp4020, Decl(manyConstExports.ts, 4020, 12)) + +export const exp4021 = "test"; +>exp4021 : Symbol(exp4021, Decl(manyConstExports.ts, 4021, 12)) + +export const exp4022 = "test"; +>exp4022 : Symbol(exp4022, Decl(manyConstExports.ts, 4022, 12)) + +export const exp4023 = "test"; +>exp4023 : Symbol(exp4023, Decl(manyConstExports.ts, 4023, 12)) + +export const exp4024 = "test"; +>exp4024 : Symbol(exp4024, Decl(manyConstExports.ts, 4024, 12)) + +export const exp4025 = "test"; +>exp4025 : Symbol(exp4025, Decl(manyConstExports.ts, 4025, 12)) + +export const exp4026 = "test"; +>exp4026 : Symbol(exp4026, Decl(manyConstExports.ts, 4026, 12)) + +export const exp4027 = "test"; +>exp4027 : Symbol(exp4027, Decl(manyConstExports.ts, 4027, 12)) + +export const exp4028 = "test"; +>exp4028 : Symbol(exp4028, Decl(manyConstExports.ts, 4028, 12)) + +export const exp4029 = "test"; +>exp4029 : Symbol(exp4029, Decl(manyConstExports.ts, 4029, 12)) + +export const exp4030 = "test"; +>exp4030 : Symbol(exp4030, Decl(manyConstExports.ts, 4030, 12)) + +export const exp4031 = "test"; +>exp4031 : Symbol(exp4031, Decl(manyConstExports.ts, 4031, 12)) + +export const exp4032 = "test"; +>exp4032 : Symbol(exp4032, Decl(manyConstExports.ts, 4032, 12)) + +export const exp4033 = "test"; +>exp4033 : Symbol(exp4033, Decl(manyConstExports.ts, 4033, 12)) + +export const exp4034 = "test"; +>exp4034 : Symbol(exp4034, Decl(manyConstExports.ts, 4034, 12)) + +export const exp4035 = "test"; +>exp4035 : Symbol(exp4035, Decl(manyConstExports.ts, 4035, 12)) + +export const exp4036 = "test"; +>exp4036 : Symbol(exp4036, Decl(manyConstExports.ts, 4036, 12)) + +export const exp4037 = "test"; +>exp4037 : Symbol(exp4037, Decl(manyConstExports.ts, 4037, 12)) + +export const exp4038 = "test"; +>exp4038 : Symbol(exp4038, Decl(manyConstExports.ts, 4038, 12)) + +export const exp4039 = "test"; +>exp4039 : Symbol(exp4039, Decl(manyConstExports.ts, 4039, 12)) + +export const exp4040 = "test"; +>exp4040 : Symbol(exp4040, Decl(manyConstExports.ts, 4040, 12)) + +export const exp4041 = "test"; +>exp4041 : Symbol(exp4041, Decl(manyConstExports.ts, 4041, 12)) + +export const exp4042 = "test"; +>exp4042 : Symbol(exp4042, Decl(manyConstExports.ts, 4042, 12)) + +export const exp4043 = "test"; +>exp4043 : Symbol(exp4043, Decl(manyConstExports.ts, 4043, 12)) + +export const exp4044 = "test"; +>exp4044 : Symbol(exp4044, Decl(manyConstExports.ts, 4044, 12)) + +export const exp4045 = "test"; +>exp4045 : Symbol(exp4045, Decl(manyConstExports.ts, 4045, 12)) + +export const exp4046 = "test"; +>exp4046 : Symbol(exp4046, Decl(manyConstExports.ts, 4046, 12)) + +export const exp4047 = "test"; +>exp4047 : Symbol(exp4047, Decl(manyConstExports.ts, 4047, 12)) + +export const exp4048 = "test"; +>exp4048 : Symbol(exp4048, Decl(manyConstExports.ts, 4048, 12)) + +export const exp4049 = "test"; +>exp4049 : Symbol(exp4049, Decl(manyConstExports.ts, 4049, 12)) + +export const exp4050 = "test"; +>exp4050 : Symbol(exp4050, Decl(manyConstExports.ts, 4050, 12)) + +export const exp4051 = "test"; +>exp4051 : Symbol(exp4051, Decl(manyConstExports.ts, 4051, 12)) + +export const exp4052 = "test"; +>exp4052 : Symbol(exp4052, Decl(manyConstExports.ts, 4052, 12)) + +export const exp4053 = "test"; +>exp4053 : Symbol(exp4053, Decl(manyConstExports.ts, 4053, 12)) + +export const exp4054 = "test"; +>exp4054 : Symbol(exp4054, Decl(manyConstExports.ts, 4054, 12)) + +export const exp4055 = "test"; +>exp4055 : Symbol(exp4055, Decl(manyConstExports.ts, 4055, 12)) + +export const exp4056 = "test"; +>exp4056 : Symbol(exp4056, Decl(manyConstExports.ts, 4056, 12)) + +export const exp4057 = "test"; +>exp4057 : Symbol(exp4057, Decl(manyConstExports.ts, 4057, 12)) + +export const exp4058 = "test"; +>exp4058 : Symbol(exp4058, Decl(manyConstExports.ts, 4058, 12)) + +export const exp4059 = "test"; +>exp4059 : Symbol(exp4059, Decl(manyConstExports.ts, 4059, 12)) + +export const exp4060 = "test"; +>exp4060 : Symbol(exp4060, Decl(manyConstExports.ts, 4060, 12)) + +export const exp4061 = "test"; +>exp4061 : Symbol(exp4061, Decl(manyConstExports.ts, 4061, 12)) + +export const exp4062 = "test"; +>exp4062 : Symbol(exp4062, Decl(manyConstExports.ts, 4062, 12)) + +export const exp4063 = "test"; +>exp4063 : Symbol(exp4063, Decl(manyConstExports.ts, 4063, 12)) + +export const exp4064 = "test"; +>exp4064 : Symbol(exp4064, Decl(manyConstExports.ts, 4064, 12)) + +export const exp4065 = "test"; +>exp4065 : Symbol(exp4065, Decl(manyConstExports.ts, 4065, 12)) + +export const exp4066 = "test"; +>exp4066 : Symbol(exp4066, Decl(manyConstExports.ts, 4066, 12)) + +export const exp4067 = "test"; +>exp4067 : Symbol(exp4067, Decl(manyConstExports.ts, 4067, 12)) + +export const exp4068 = "test"; +>exp4068 : Symbol(exp4068, Decl(manyConstExports.ts, 4068, 12)) + +export const exp4069 = "test"; +>exp4069 : Symbol(exp4069, Decl(manyConstExports.ts, 4069, 12)) + +export const exp4070 = "test"; +>exp4070 : Symbol(exp4070, Decl(manyConstExports.ts, 4070, 12)) + +export const exp4071 = "test"; +>exp4071 : Symbol(exp4071, Decl(manyConstExports.ts, 4071, 12)) + +export const exp4072 = "test"; +>exp4072 : Symbol(exp4072, Decl(manyConstExports.ts, 4072, 12)) + +export const exp4073 = "test"; +>exp4073 : Symbol(exp4073, Decl(manyConstExports.ts, 4073, 12)) + +export const exp4074 = "test"; +>exp4074 : Symbol(exp4074, Decl(manyConstExports.ts, 4074, 12)) + +export const exp4075 = "test"; +>exp4075 : Symbol(exp4075, Decl(manyConstExports.ts, 4075, 12)) + +export const exp4076 = "test"; +>exp4076 : Symbol(exp4076, Decl(manyConstExports.ts, 4076, 12)) + +export const exp4077 = "test"; +>exp4077 : Symbol(exp4077, Decl(manyConstExports.ts, 4077, 12)) + +export const exp4078 = "test"; +>exp4078 : Symbol(exp4078, Decl(manyConstExports.ts, 4078, 12)) + +export const exp4079 = "test"; +>exp4079 : Symbol(exp4079, Decl(manyConstExports.ts, 4079, 12)) + +export const exp4080 = "test"; +>exp4080 : Symbol(exp4080, Decl(manyConstExports.ts, 4080, 12)) + +export const exp4081 = "test"; +>exp4081 : Symbol(exp4081, Decl(manyConstExports.ts, 4081, 12)) + +export const exp4082 = "test"; +>exp4082 : Symbol(exp4082, Decl(manyConstExports.ts, 4082, 12)) + +export const exp4083 = "test"; +>exp4083 : Symbol(exp4083, Decl(manyConstExports.ts, 4083, 12)) + +export const exp4084 = "test"; +>exp4084 : Symbol(exp4084, Decl(manyConstExports.ts, 4084, 12)) + +export const exp4085 = "test"; +>exp4085 : Symbol(exp4085, Decl(manyConstExports.ts, 4085, 12)) + +export const exp4086 = "test"; +>exp4086 : Symbol(exp4086, Decl(manyConstExports.ts, 4086, 12)) + +export const exp4087 = "test"; +>exp4087 : Symbol(exp4087, Decl(manyConstExports.ts, 4087, 12)) + +export const exp4088 = "test"; +>exp4088 : Symbol(exp4088, Decl(manyConstExports.ts, 4088, 12)) + +export const exp4089 = "test"; +>exp4089 : Symbol(exp4089, Decl(manyConstExports.ts, 4089, 12)) + +export const exp4090 = "test"; +>exp4090 : Symbol(exp4090, Decl(manyConstExports.ts, 4090, 12)) + +export const exp4091 = "test"; +>exp4091 : Symbol(exp4091, Decl(manyConstExports.ts, 4091, 12)) + +export const exp4092 = "test"; +>exp4092 : Symbol(exp4092, Decl(manyConstExports.ts, 4092, 12)) + +export const exp4093 = "test"; +>exp4093 : Symbol(exp4093, Decl(manyConstExports.ts, 4093, 12)) + +export const exp4094 = "test"; +>exp4094 : Symbol(exp4094, Decl(manyConstExports.ts, 4094, 12)) + +export const exp4095 = "test"; +>exp4095 : Symbol(exp4095, Decl(manyConstExports.ts, 4095, 12)) + +export const exp4096 = "test"; +>exp4096 : Symbol(exp4096, Decl(manyConstExports.ts, 4096, 12)) + +export const exp4097 = "test"; +>exp4097 : Symbol(exp4097, Decl(manyConstExports.ts, 4097, 12)) + +export const exp4098 = "test"; +>exp4098 : Symbol(exp4098, Decl(manyConstExports.ts, 4098, 12)) + +export const exp4099 = "test"; +>exp4099 : Symbol(exp4099, Decl(manyConstExports.ts, 4099, 12)) + +export const exp4100 = "test"; +>exp4100 : Symbol(exp4100, Decl(manyConstExports.ts, 4100, 12)) + +export const exp4101 = "test"; +>exp4101 : Symbol(exp4101, Decl(manyConstExports.ts, 4101, 12)) + +export const exp4102 = "test"; +>exp4102 : Symbol(exp4102, Decl(manyConstExports.ts, 4102, 12)) + +export const exp4103 = "test"; +>exp4103 : Symbol(exp4103, Decl(manyConstExports.ts, 4103, 12)) + +export const exp4104 = "test"; +>exp4104 : Symbol(exp4104, Decl(manyConstExports.ts, 4104, 12)) + +export const exp4105 = "test"; +>exp4105 : Symbol(exp4105, Decl(manyConstExports.ts, 4105, 12)) + +export const exp4106 = "test"; +>exp4106 : Symbol(exp4106, Decl(manyConstExports.ts, 4106, 12)) + +export const exp4107 = "test"; +>exp4107 : Symbol(exp4107, Decl(manyConstExports.ts, 4107, 12)) + +export const exp4108 = "test"; +>exp4108 : Symbol(exp4108, Decl(manyConstExports.ts, 4108, 12)) + +export const exp4109 = "test"; +>exp4109 : Symbol(exp4109, Decl(manyConstExports.ts, 4109, 12)) + +export const exp4110 = "test"; +>exp4110 : Symbol(exp4110, Decl(manyConstExports.ts, 4110, 12)) + +export const exp4111 = "test"; +>exp4111 : Symbol(exp4111, Decl(manyConstExports.ts, 4111, 12)) + +export const exp4112 = "test"; +>exp4112 : Symbol(exp4112, Decl(manyConstExports.ts, 4112, 12)) + +export const exp4113 = "test"; +>exp4113 : Symbol(exp4113, Decl(manyConstExports.ts, 4113, 12)) + +export const exp4114 = "test"; +>exp4114 : Symbol(exp4114, Decl(manyConstExports.ts, 4114, 12)) + +export const exp4115 = "test"; +>exp4115 : Symbol(exp4115, Decl(manyConstExports.ts, 4115, 12)) + +export const exp4116 = "test"; +>exp4116 : Symbol(exp4116, Decl(manyConstExports.ts, 4116, 12)) + +export const exp4117 = "test"; +>exp4117 : Symbol(exp4117, Decl(manyConstExports.ts, 4117, 12)) + +export const exp4118 = "test"; +>exp4118 : Symbol(exp4118, Decl(manyConstExports.ts, 4118, 12)) + +export const exp4119 = "test"; +>exp4119 : Symbol(exp4119, Decl(manyConstExports.ts, 4119, 12)) + +export const exp4120 = "test"; +>exp4120 : Symbol(exp4120, Decl(manyConstExports.ts, 4120, 12)) + +export const exp4121 = "test"; +>exp4121 : Symbol(exp4121, Decl(manyConstExports.ts, 4121, 12)) + +export const exp4122 = "test"; +>exp4122 : Symbol(exp4122, Decl(manyConstExports.ts, 4122, 12)) + +export const exp4123 = "test"; +>exp4123 : Symbol(exp4123, Decl(manyConstExports.ts, 4123, 12)) + +export const exp4124 = "test"; +>exp4124 : Symbol(exp4124, Decl(manyConstExports.ts, 4124, 12)) + +export const exp4125 = "test"; +>exp4125 : Symbol(exp4125, Decl(manyConstExports.ts, 4125, 12)) + +export const exp4126 = "test"; +>exp4126 : Symbol(exp4126, Decl(manyConstExports.ts, 4126, 12)) + +export const exp4127 = "test"; +>exp4127 : Symbol(exp4127, Decl(manyConstExports.ts, 4127, 12)) + +export const exp4128 = "test"; +>exp4128 : Symbol(exp4128, Decl(manyConstExports.ts, 4128, 12)) + +export const exp4129 = "test"; +>exp4129 : Symbol(exp4129, Decl(manyConstExports.ts, 4129, 12)) + +export const exp4130 = "test"; +>exp4130 : Symbol(exp4130, Decl(manyConstExports.ts, 4130, 12)) + +export const exp4131 = "test"; +>exp4131 : Symbol(exp4131, Decl(manyConstExports.ts, 4131, 12)) + +export const exp4132 = "test"; +>exp4132 : Symbol(exp4132, Decl(manyConstExports.ts, 4132, 12)) + +export const exp4133 = "test"; +>exp4133 : Symbol(exp4133, Decl(manyConstExports.ts, 4133, 12)) + +export const exp4134 = "test"; +>exp4134 : Symbol(exp4134, Decl(manyConstExports.ts, 4134, 12)) + +export const exp4135 = "test"; +>exp4135 : Symbol(exp4135, Decl(manyConstExports.ts, 4135, 12)) + +export const exp4136 = "test"; +>exp4136 : Symbol(exp4136, Decl(manyConstExports.ts, 4136, 12)) + +export const exp4137 = "test"; +>exp4137 : Symbol(exp4137, Decl(manyConstExports.ts, 4137, 12)) + +export const exp4138 = "test"; +>exp4138 : Symbol(exp4138, Decl(manyConstExports.ts, 4138, 12)) + +export const exp4139 = "test"; +>exp4139 : Symbol(exp4139, Decl(manyConstExports.ts, 4139, 12)) + +export const exp4140 = "test"; +>exp4140 : Symbol(exp4140, Decl(manyConstExports.ts, 4140, 12)) + +export const exp4141 = "test"; +>exp4141 : Symbol(exp4141, Decl(manyConstExports.ts, 4141, 12)) + +export const exp4142 = "test"; +>exp4142 : Symbol(exp4142, Decl(manyConstExports.ts, 4142, 12)) + +export const exp4143 = "test"; +>exp4143 : Symbol(exp4143, Decl(manyConstExports.ts, 4143, 12)) + +export const exp4144 = "test"; +>exp4144 : Symbol(exp4144, Decl(manyConstExports.ts, 4144, 12)) + +export const exp4145 = "test"; +>exp4145 : Symbol(exp4145, Decl(manyConstExports.ts, 4145, 12)) + +export const exp4146 = "test"; +>exp4146 : Symbol(exp4146, Decl(manyConstExports.ts, 4146, 12)) + +export const exp4147 = "test"; +>exp4147 : Symbol(exp4147, Decl(manyConstExports.ts, 4147, 12)) + +export const exp4148 = "test"; +>exp4148 : Symbol(exp4148, Decl(manyConstExports.ts, 4148, 12)) + +export const exp4149 = "test"; +>exp4149 : Symbol(exp4149, Decl(manyConstExports.ts, 4149, 12)) + +export const exp4150 = "test"; +>exp4150 : Symbol(exp4150, Decl(manyConstExports.ts, 4150, 12)) + +export const exp4151 = "test"; +>exp4151 : Symbol(exp4151, Decl(manyConstExports.ts, 4151, 12)) + +export const exp4152 = "test"; +>exp4152 : Symbol(exp4152, Decl(manyConstExports.ts, 4152, 12)) + +export const exp4153 = "test"; +>exp4153 : Symbol(exp4153, Decl(manyConstExports.ts, 4153, 12)) + +export const exp4154 = "test"; +>exp4154 : Symbol(exp4154, Decl(manyConstExports.ts, 4154, 12)) + +export const exp4155 = "test"; +>exp4155 : Symbol(exp4155, Decl(manyConstExports.ts, 4155, 12)) + +export const exp4156 = "test"; +>exp4156 : Symbol(exp4156, Decl(manyConstExports.ts, 4156, 12)) + +export const exp4157 = "test"; +>exp4157 : Symbol(exp4157, Decl(manyConstExports.ts, 4157, 12)) + +export const exp4158 = "test"; +>exp4158 : Symbol(exp4158, Decl(manyConstExports.ts, 4158, 12)) + +export const exp4159 = "test"; +>exp4159 : Symbol(exp4159, Decl(manyConstExports.ts, 4159, 12)) + +export const exp4160 = "test"; +>exp4160 : Symbol(exp4160, Decl(manyConstExports.ts, 4160, 12)) + +export const exp4161 = "test"; +>exp4161 : Symbol(exp4161, Decl(manyConstExports.ts, 4161, 12)) + +export const exp4162 = "test"; +>exp4162 : Symbol(exp4162, Decl(manyConstExports.ts, 4162, 12)) + +export const exp4163 = "test"; +>exp4163 : Symbol(exp4163, Decl(manyConstExports.ts, 4163, 12)) + +export const exp4164 = "test"; +>exp4164 : Symbol(exp4164, Decl(manyConstExports.ts, 4164, 12)) + +export const exp4165 = "test"; +>exp4165 : Symbol(exp4165, Decl(manyConstExports.ts, 4165, 12)) + +export const exp4166 = "test"; +>exp4166 : Symbol(exp4166, Decl(manyConstExports.ts, 4166, 12)) + +export const exp4167 = "test"; +>exp4167 : Symbol(exp4167, Decl(manyConstExports.ts, 4167, 12)) + +export const exp4168 = "test"; +>exp4168 : Symbol(exp4168, Decl(manyConstExports.ts, 4168, 12)) + +export const exp4169 = "test"; +>exp4169 : Symbol(exp4169, Decl(manyConstExports.ts, 4169, 12)) + +export const exp4170 = "test"; +>exp4170 : Symbol(exp4170, Decl(manyConstExports.ts, 4170, 12)) + +export const exp4171 = "test"; +>exp4171 : Symbol(exp4171, Decl(manyConstExports.ts, 4171, 12)) + +export const exp4172 = "test"; +>exp4172 : Symbol(exp4172, Decl(manyConstExports.ts, 4172, 12)) + +export const exp4173 = "test"; +>exp4173 : Symbol(exp4173, Decl(manyConstExports.ts, 4173, 12)) + +export const exp4174 = "test"; +>exp4174 : Symbol(exp4174, Decl(manyConstExports.ts, 4174, 12)) + +export const exp4175 = "test"; +>exp4175 : Symbol(exp4175, Decl(manyConstExports.ts, 4175, 12)) + +export const exp4176 = "test"; +>exp4176 : Symbol(exp4176, Decl(manyConstExports.ts, 4176, 12)) + +export const exp4177 = "test"; +>exp4177 : Symbol(exp4177, Decl(manyConstExports.ts, 4177, 12)) + +export const exp4178 = "test"; +>exp4178 : Symbol(exp4178, Decl(manyConstExports.ts, 4178, 12)) + +export const exp4179 = "test"; +>exp4179 : Symbol(exp4179, Decl(manyConstExports.ts, 4179, 12)) + +export const exp4180 = "test"; +>exp4180 : Symbol(exp4180, Decl(manyConstExports.ts, 4180, 12)) + +export const exp4181 = "test"; +>exp4181 : Symbol(exp4181, Decl(manyConstExports.ts, 4181, 12)) + +export const exp4182 = "test"; +>exp4182 : Symbol(exp4182, Decl(manyConstExports.ts, 4182, 12)) + +export const exp4183 = "test"; +>exp4183 : Symbol(exp4183, Decl(manyConstExports.ts, 4183, 12)) + +export const exp4184 = "test"; +>exp4184 : Symbol(exp4184, Decl(manyConstExports.ts, 4184, 12)) + +export const exp4185 = "test"; +>exp4185 : Symbol(exp4185, Decl(manyConstExports.ts, 4185, 12)) + +export const exp4186 = "test"; +>exp4186 : Symbol(exp4186, Decl(manyConstExports.ts, 4186, 12)) + +export const exp4187 = "test"; +>exp4187 : Symbol(exp4187, Decl(manyConstExports.ts, 4187, 12)) + +export const exp4188 = "test"; +>exp4188 : Symbol(exp4188, Decl(manyConstExports.ts, 4188, 12)) + +export const exp4189 = "test"; +>exp4189 : Symbol(exp4189, Decl(manyConstExports.ts, 4189, 12)) + +export const exp4190 = "test"; +>exp4190 : Symbol(exp4190, Decl(manyConstExports.ts, 4190, 12)) + +export const exp4191 = "test"; +>exp4191 : Symbol(exp4191, Decl(manyConstExports.ts, 4191, 12)) + +export const exp4192 = "test"; +>exp4192 : Symbol(exp4192, Decl(manyConstExports.ts, 4192, 12)) + +export const exp4193 = "test"; +>exp4193 : Symbol(exp4193, Decl(manyConstExports.ts, 4193, 12)) + +export const exp4194 = "test"; +>exp4194 : Symbol(exp4194, Decl(manyConstExports.ts, 4194, 12)) + +export const exp4195 = "test"; +>exp4195 : Symbol(exp4195, Decl(manyConstExports.ts, 4195, 12)) + +export const exp4196 = "test"; +>exp4196 : Symbol(exp4196, Decl(manyConstExports.ts, 4196, 12)) + +export const exp4197 = "test"; +>exp4197 : Symbol(exp4197, Decl(manyConstExports.ts, 4197, 12)) + +export const exp4198 = "test"; +>exp4198 : Symbol(exp4198, Decl(manyConstExports.ts, 4198, 12)) + +export const exp4199 = "test"; +>exp4199 : Symbol(exp4199, Decl(manyConstExports.ts, 4199, 12)) + +export const exp4200 = "test"; +>exp4200 : Symbol(exp4200, Decl(manyConstExports.ts, 4200, 12)) + +export const exp4201 = "test"; +>exp4201 : Symbol(exp4201, Decl(manyConstExports.ts, 4201, 12)) + +export const exp4202 = "test"; +>exp4202 : Symbol(exp4202, Decl(manyConstExports.ts, 4202, 12)) + +export const exp4203 = "test"; +>exp4203 : Symbol(exp4203, Decl(manyConstExports.ts, 4203, 12)) + +export const exp4204 = "test"; +>exp4204 : Symbol(exp4204, Decl(manyConstExports.ts, 4204, 12)) + +export const exp4205 = "test"; +>exp4205 : Symbol(exp4205, Decl(manyConstExports.ts, 4205, 12)) + +export const exp4206 = "test"; +>exp4206 : Symbol(exp4206, Decl(manyConstExports.ts, 4206, 12)) + +export const exp4207 = "test"; +>exp4207 : Symbol(exp4207, Decl(manyConstExports.ts, 4207, 12)) + +export const exp4208 = "test"; +>exp4208 : Symbol(exp4208, Decl(manyConstExports.ts, 4208, 12)) + +export const exp4209 = "test"; +>exp4209 : Symbol(exp4209, Decl(manyConstExports.ts, 4209, 12)) + +export const exp4210 = "test"; +>exp4210 : Symbol(exp4210, Decl(manyConstExports.ts, 4210, 12)) + +export const exp4211 = "test"; +>exp4211 : Symbol(exp4211, Decl(manyConstExports.ts, 4211, 12)) + +export const exp4212 = "test"; +>exp4212 : Symbol(exp4212, Decl(manyConstExports.ts, 4212, 12)) + +export const exp4213 = "test"; +>exp4213 : Symbol(exp4213, Decl(manyConstExports.ts, 4213, 12)) + +export const exp4214 = "test"; +>exp4214 : Symbol(exp4214, Decl(manyConstExports.ts, 4214, 12)) + +export const exp4215 = "test"; +>exp4215 : Symbol(exp4215, Decl(manyConstExports.ts, 4215, 12)) + +export const exp4216 = "test"; +>exp4216 : Symbol(exp4216, Decl(manyConstExports.ts, 4216, 12)) + +export const exp4217 = "test"; +>exp4217 : Symbol(exp4217, Decl(manyConstExports.ts, 4217, 12)) + +export const exp4218 = "test"; +>exp4218 : Symbol(exp4218, Decl(manyConstExports.ts, 4218, 12)) + +export const exp4219 = "test"; +>exp4219 : Symbol(exp4219, Decl(manyConstExports.ts, 4219, 12)) + +export const exp4220 = "test"; +>exp4220 : Symbol(exp4220, Decl(manyConstExports.ts, 4220, 12)) + +export const exp4221 = "test"; +>exp4221 : Symbol(exp4221, Decl(manyConstExports.ts, 4221, 12)) + +export const exp4222 = "test"; +>exp4222 : Symbol(exp4222, Decl(manyConstExports.ts, 4222, 12)) + +export const exp4223 = "test"; +>exp4223 : Symbol(exp4223, Decl(manyConstExports.ts, 4223, 12)) + +export const exp4224 = "test"; +>exp4224 : Symbol(exp4224, Decl(manyConstExports.ts, 4224, 12)) + +export const exp4225 = "test"; +>exp4225 : Symbol(exp4225, Decl(manyConstExports.ts, 4225, 12)) + +export const exp4226 = "test"; +>exp4226 : Symbol(exp4226, Decl(manyConstExports.ts, 4226, 12)) + +export const exp4227 = "test"; +>exp4227 : Symbol(exp4227, Decl(manyConstExports.ts, 4227, 12)) + +export const exp4228 = "test"; +>exp4228 : Symbol(exp4228, Decl(manyConstExports.ts, 4228, 12)) + +export const exp4229 = "test"; +>exp4229 : Symbol(exp4229, Decl(manyConstExports.ts, 4229, 12)) + +export const exp4230 = "test"; +>exp4230 : Symbol(exp4230, Decl(manyConstExports.ts, 4230, 12)) + +export const exp4231 = "test"; +>exp4231 : Symbol(exp4231, Decl(manyConstExports.ts, 4231, 12)) + +export const exp4232 = "test"; +>exp4232 : Symbol(exp4232, Decl(manyConstExports.ts, 4232, 12)) + +export const exp4233 = "test"; +>exp4233 : Symbol(exp4233, Decl(manyConstExports.ts, 4233, 12)) + +export const exp4234 = "test"; +>exp4234 : Symbol(exp4234, Decl(manyConstExports.ts, 4234, 12)) + +export const exp4235 = "test"; +>exp4235 : Symbol(exp4235, Decl(manyConstExports.ts, 4235, 12)) + +export const exp4236 = "test"; +>exp4236 : Symbol(exp4236, Decl(manyConstExports.ts, 4236, 12)) + +export const exp4237 = "test"; +>exp4237 : Symbol(exp4237, Decl(manyConstExports.ts, 4237, 12)) + +export const exp4238 = "test"; +>exp4238 : Symbol(exp4238, Decl(manyConstExports.ts, 4238, 12)) + +export const exp4239 = "test"; +>exp4239 : Symbol(exp4239, Decl(manyConstExports.ts, 4239, 12)) + +export const exp4240 = "test"; +>exp4240 : Symbol(exp4240, Decl(manyConstExports.ts, 4240, 12)) + +export const exp4241 = "test"; +>exp4241 : Symbol(exp4241, Decl(manyConstExports.ts, 4241, 12)) + +export const exp4242 = "test"; +>exp4242 : Symbol(exp4242, Decl(manyConstExports.ts, 4242, 12)) + +export const exp4243 = "test"; +>exp4243 : Symbol(exp4243, Decl(manyConstExports.ts, 4243, 12)) + +export const exp4244 = "test"; +>exp4244 : Symbol(exp4244, Decl(manyConstExports.ts, 4244, 12)) + +export const exp4245 = "test"; +>exp4245 : Symbol(exp4245, Decl(manyConstExports.ts, 4245, 12)) + +export const exp4246 = "test"; +>exp4246 : Symbol(exp4246, Decl(manyConstExports.ts, 4246, 12)) + +export const exp4247 = "test"; +>exp4247 : Symbol(exp4247, Decl(manyConstExports.ts, 4247, 12)) + +export const exp4248 = "test"; +>exp4248 : Symbol(exp4248, Decl(manyConstExports.ts, 4248, 12)) + +export const exp4249 = "test"; +>exp4249 : Symbol(exp4249, Decl(manyConstExports.ts, 4249, 12)) + +export const exp4250 = "test"; +>exp4250 : Symbol(exp4250, Decl(manyConstExports.ts, 4250, 12)) + +export const exp4251 = "test"; +>exp4251 : Symbol(exp4251, Decl(manyConstExports.ts, 4251, 12)) + +export const exp4252 = "test"; +>exp4252 : Symbol(exp4252, Decl(manyConstExports.ts, 4252, 12)) + +export const exp4253 = "test"; +>exp4253 : Symbol(exp4253, Decl(manyConstExports.ts, 4253, 12)) + +export const exp4254 = "test"; +>exp4254 : Symbol(exp4254, Decl(manyConstExports.ts, 4254, 12)) + +export const exp4255 = "test"; +>exp4255 : Symbol(exp4255, Decl(manyConstExports.ts, 4255, 12)) + +export const exp4256 = "test"; +>exp4256 : Symbol(exp4256, Decl(manyConstExports.ts, 4256, 12)) + +export const exp4257 = "test"; +>exp4257 : Symbol(exp4257, Decl(manyConstExports.ts, 4257, 12)) + +export const exp4258 = "test"; +>exp4258 : Symbol(exp4258, Decl(manyConstExports.ts, 4258, 12)) + +export const exp4259 = "test"; +>exp4259 : Symbol(exp4259, Decl(manyConstExports.ts, 4259, 12)) + +export const exp4260 = "test"; +>exp4260 : Symbol(exp4260, Decl(manyConstExports.ts, 4260, 12)) + +export const exp4261 = "test"; +>exp4261 : Symbol(exp4261, Decl(manyConstExports.ts, 4261, 12)) + +export const exp4262 = "test"; +>exp4262 : Symbol(exp4262, Decl(manyConstExports.ts, 4262, 12)) + +export const exp4263 = "test"; +>exp4263 : Symbol(exp4263, Decl(manyConstExports.ts, 4263, 12)) + +export const exp4264 = "test"; +>exp4264 : Symbol(exp4264, Decl(manyConstExports.ts, 4264, 12)) + +export const exp4265 = "test"; +>exp4265 : Symbol(exp4265, Decl(manyConstExports.ts, 4265, 12)) + +export const exp4266 = "test"; +>exp4266 : Symbol(exp4266, Decl(manyConstExports.ts, 4266, 12)) + +export const exp4267 = "test"; +>exp4267 : Symbol(exp4267, Decl(manyConstExports.ts, 4267, 12)) + +export const exp4268 = "test"; +>exp4268 : Symbol(exp4268, Decl(manyConstExports.ts, 4268, 12)) + +export const exp4269 = "test"; +>exp4269 : Symbol(exp4269, Decl(manyConstExports.ts, 4269, 12)) + +export const exp4270 = "test"; +>exp4270 : Symbol(exp4270, Decl(manyConstExports.ts, 4270, 12)) + +export const exp4271 = "test"; +>exp4271 : Symbol(exp4271, Decl(manyConstExports.ts, 4271, 12)) + +export const exp4272 = "test"; +>exp4272 : Symbol(exp4272, Decl(manyConstExports.ts, 4272, 12)) + +export const exp4273 = "test"; +>exp4273 : Symbol(exp4273, Decl(manyConstExports.ts, 4273, 12)) + +export const exp4274 = "test"; +>exp4274 : Symbol(exp4274, Decl(manyConstExports.ts, 4274, 12)) + +export const exp4275 = "test"; +>exp4275 : Symbol(exp4275, Decl(manyConstExports.ts, 4275, 12)) + +export const exp4276 = "test"; +>exp4276 : Symbol(exp4276, Decl(manyConstExports.ts, 4276, 12)) + +export const exp4277 = "test"; +>exp4277 : Symbol(exp4277, Decl(manyConstExports.ts, 4277, 12)) + +export const exp4278 = "test"; +>exp4278 : Symbol(exp4278, Decl(manyConstExports.ts, 4278, 12)) + +export const exp4279 = "test"; +>exp4279 : Symbol(exp4279, Decl(manyConstExports.ts, 4279, 12)) + +export const exp4280 = "test"; +>exp4280 : Symbol(exp4280, Decl(manyConstExports.ts, 4280, 12)) + +export const exp4281 = "test"; +>exp4281 : Symbol(exp4281, Decl(manyConstExports.ts, 4281, 12)) + +export const exp4282 = "test"; +>exp4282 : Symbol(exp4282, Decl(manyConstExports.ts, 4282, 12)) + +export const exp4283 = "test"; +>exp4283 : Symbol(exp4283, Decl(manyConstExports.ts, 4283, 12)) + +export const exp4284 = "test"; +>exp4284 : Symbol(exp4284, Decl(manyConstExports.ts, 4284, 12)) + +export const exp4285 = "test"; +>exp4285 : Symbol(exp4285, Decl(manyConstExports.ts, 4285, 12)) + +export const exp4286 = "test"; +>exp4286 : Symbol(exp4286, Decl(manyConstExports.ts, 4286, 12)) + +export const exp4287 = "test"; +>exp4287 : Symbol(exp4287, Decl(manyConstExports.ts, 4287, 12)) + +export const exp4288 = "test"; +>exp4288 : Symbol(exp4288, Decl(manyConstExports.ts, 4288, 12)) + +export const exp4289 = "test"; +>exp4289 : Symbol(exp4289, Decl(manyConstExports.ts, 4289, 12)) + +export const exp4290 = "test"; +>exp4290 : Symbol(exp4290, Decl(manyConstExports.ts, 4290, 12)) + +export const exp4291 = "test"; +>exp4291 : Symbol(exp4291, Decl(manyConstExports.ts, 4291, 12)) + +export const exp4292 = "test"; +>exp4292 : Symbol(exp4292, Decl(manyConstExports.ts, 4292, 12)) + +export const exp4293 = "test"; +>exp4293 : Symbol(exp4293, Decl(manyConstExports.ts, 4293, 12)) + +export const exp4294 = "test"; +>exp4294 : Symbol(exp4294, Decl(manyConstExports.ts, 4294, 12)) + +export const exp4295 = "test"; +>exp4295 : Symbol(exp4295, Decl(manyConstExports.ts, 4295, 12)) + +export const exp4296 = "test"; +>exp4296 : Symbol(exp4296, Decl(manyConstExports.ts, 4296, 12)) + +export const exp4297 = "test"; +>exp4297 : Symbol(exp4297, Decl(manyConstExports.ts, 4297, 12)) + +export const exp4298 = "test"; +>exp4298 : Symbol(exp4298, Decl(manyConstExports.ts, 4298, 12)) + +export const exp4299 = "test"; +>exp4299 : Symbol(exp4299, Decl(manyConstExports.ts, 4299, 12)) + +export const exp4300 = "test"; +>exp4300 : Symbol(exp4300, Decl(manyConstExports.ts, 4300, 12)) + +export const exp4301 = "test"; +>exp4301 : Symbol(exp4301, Decl(manyConstExports.ts, 4301, 12)) + +export const exp4302 = "test"; +>exp4302 : Symbol(exp4302, Decl(manyConstExports.ts, 4302, 12)) + +export const exp4303 = "test"; +>exp4303 : Symbol(exp4303, Decl(manyConstExports.ts, 4303, 12)) + +export const exp4304 = "test"; +>exp4304 : Symbol(exp4304, Decl(manyConstExports.ts, 4304, 12)) + +export const exp4305 = "test"; +>exp4305 : Symbol(exp4305, Decl(manyConstExports.ts, 4305, 12)) + +export const exp4306 = "test"; +>exp4306 : Symbol(exp4306, Decl(manyConstExports.ts, 4306, 12)) + +export const exp4307 = "test"; +>exp4307 : Symbol(exp4307, Decl(manyConstExports.ts, 4307, 12)) + +export const exp4308 = "test"; +>exp4308 : Symbol(exp4308, Decl(manyConstExports.ts, 4308, 12)) + +export const exp4309 = "test"; +>exp4309 : Symbol(exp4309, Decl(manyConstExports.ts, 4309, 12)) + +export const exp4310 = "test"; +>exp4310 : Symbol(exp4310, Decl(manyConstExports.ts, 4310, 12)) + +export const exp4311 = "test"; +>exp4311 : Symbol(exp4311, Decl(manyConstExports.ts, 4311, 12)) + +export const exp4312 = "test"; +>exp4312 : Symbol(exp4312, Decl(manyConstExports.ts, 4312, 12)) + +export const exp4313 = "test"; +>exp4313 : Symbol(exp4313, Decl(manyConstExports.ts, 4313, 12)) + +export const exp4314 = "test"; +>exp4314 : Symbol(exp4314, Decl(manyConstExports.ts, 4314, 12)) + +export const exp4315 = "test"; +>exp4315 : Symbol(exp4315, Decl(manyConstExports.ts, 4315, 12)) + +export const exp4316 = "test"; +>exp4316 : Symbol(exp4316, Decl(manyConstExports.ts, 4316, 12)) + +export const exp4317 = "test"; +>exp4317 : Symbol(exp4317, Decl(manyConstExports.ts, 4317, 12)) + +export const exp4318 = "test"; +>exp4318 : Symbol(exp4318, Decl(manyConstExports.ts, 4318, 12)) + +export const exp4319 = "test"; +>exp4319 : Symbol(exp4319, Decl(manyConstExports.ts, 4319, 12)) + +export const exp4320 = "test"; +>exp4320 : Symbol(exp4320, Decl(manyConstExports.ts, 4320, 12)) + +export const exp4321 = "test"; +>exp4321 : Symbol(exp4321, Decl(manyConstExports.ts, 4321, 12)) + +export const exp4322 = "test"; +>exp4322 : Symbol(exp4322, Decl(manyConstExports.ts, 4322, 12)) + +export const exp4323 = "test"; +>exp4323 : Symbol(exp4323, Decl(manyConstExports.ts, 4323, 12)) + +export const exp4324 = "test"; +>exp4324 : Symbol(exp4324, Decl(manyConstExports.ts, 4324, 12)) + +export const exp4325 = "test"; +>exp4325 : Symbol(exp4325, Decl(manyConstExports.ts, 4325, 12)) + +export const exp4326 = "test"; +>exp4326 : Symbol(exp4326, Decl(manyConstExports.ts, 4326, 12)) + +export const exp4327 = "test"; +>exp4327 : Symbol(exp4327, Decl(manyConstExports.ts, 4327, 12)) + +export const exp4328 = "test"; +>exp4328 : Symbol(exp4328, Decl(manyConstExports.ts, 4328, 12)) + +export const exp4329 = "test"; +>exp4329 : Symbol(exp4329, Decl(manyConstExports.ts, 4329, 12)) + +export const exp4330 = "test"; +>exp4330 : Symbol(exp4330, Decl(manyConstExports.ts, 4330, 12)) + +export const exp4331 = "test"; +>exp4331 : Symbol(exp4331, Decl(manyConstExports.ts, 4331, 12)) + +export const exp4332 = "test"; +>exp4332 : Symbol(exp4332, Decl(manyConstExports.ts, 4332, 12)) + +export const exp4333 = "test"; +>exp4333 : Symbol(exp4333, Decl(manyConstExports.ts, 4333, 12)) + +export const exp4334 = "test"; +>exp4334 : Symbol(exp4334, Decl(manyConstExports.ts, 4334, 12)) + +export const exp4335 = "test"; +>exp4335 : Symbol(exp4335, Decl(manyConstExports.ts, 4335, 12)) + +export const exp4336 = "test"; +>exp4336 : Symbol(exp4336, Decl(manyConstExports.ts, 4336, 12)) + +export const exp4337 = "test"; +>exp4337 : Symbol(exp4337, Decl(manyConstExports.ts, 4337, 12)) + +export const exp4338 = "test"; +>exp4338 : Symbol(exp4338, Decl(manyConstExports.ts, 4338, 12)) + +export const exp4339 = "test"; +>exp4339 : Symbol(exp4339, Decl(manyConstExports.ts, 4339, 12)) + +export const exp4340 = "test"; +>exp4340 : Symbol(exp4340, Decl(manyConstExports.ts, 4340, 12)) + +export const exp4341 = "test"; +>exp4341 : Symbol(exp4341, Decl(manyConstExports.ts, 4341, 12)) + +export const exp4342 = "test"; +>exp4342 : Symbol(exp4342, Decl(manyConstExports.ts, 4342, 12)) + +export const exp4343 = "test"; +>exp4343 : Symbol(exp4343, Decl(manyConstExports.ts, 4343, 12)) + +export const exp4344 = "test"; +>exp4344 : Symbol(exp4344, Decl(manyConstExports.ts, 4344, 12)) + +export const exp4345 = "test"; +>exp4345 : Symbol(exp4345, Decl(manyConstExports.ts, 4345, 12)) + +export const exp4346 = "test"; +>exp4346 : Symbol(exp4346, Decl(manyConstExports.ts, 4346, 12)) + +export const exp4347 = "test"; +>exp4347 : Symbol(exp4347, Decl(manyConstExports.ts, 4347, 12)) + +export const exp4348 = "test"; +>exp4348 : Symbol(exp4348, Decl(manyConstExports.ts, 4348, 12)) + +export const exp4349 = "test"; +>exp4349 : Symbol(exp4349, Decl(manyConstExports.ts, 4349, 12)) + +export const exp4350 = "test"; +>exp4350 : Symbol(exp4350, Decl(manyConstExports.ts, 4350, 12)) + +export const exp4351 = "test"; +>exp4351 : Symbol(exp4351, Decl(manyConstExports.ts, 4351, 12)) + +export const exp4352 = "test"; +>exp4352 : Symbol(exp4352, Decl(manyConstExports.ts, 4352, 12)) + +export const exp4353 = "test"; +>exp4353 : Symbol(exp4353, Decl(manyConstExports.ts, 4353, 12)) + +export const exp4354 = "test"; +>exp4354 : Symbol(exp4354, Decl(manyConstExports.ts, 4354, 12)) + +export const exp4355 = "test"; +>exp4355 : Symbol(exp4355, Decl(manyConstExports.ts, 4355, 12)) + +export const exp4356 = "test"; +>exp4356 : Symbol(exp4356, Decl(manyConstExports.ts, 4356, 12)) + +export const exp4357 = "test"; +>exp4357 : Symbol(exp4357, Decl(manyConstExports.ts, 4357, 12)) + +export const exp4358 = "test"; +>exp4358 : Symbol(exp4358, Decl(manyConstExports.ts, 4358, 12)) + +export const exp4359 = "test"; +>exp4359 : Symbol(exp4359, Decl(manyConstExports.ts, 4359, 12)) + +export const exp4360 = "test"; +>exp4360 : Symbol(exp4360, Decl(manyConstExports.ts, 4360, 12)) + +export const exp4361 = "test"; +>exp4361 : Symbol(exp4361, Decl(manyConstExports.ts, 4361, 12)) + +export const exp4362 = "test"; +>exp4362 : Symbol(exp4362, Decl(manyConstExports.ts, 4362, 12)) + +export const exp4363 = "test"; +>exp4363 : Symbol(exp4363, Decl(manyConstExports.ts, 4363, 12)) + +export const exp4364 = "test"; +>exp4364 : Symbol(exp4364, Decl(manyConstExports.ts, 4364, 12)) + +export const exp4365 = "test"; +>exp4365 : Symbol(exp4365, Decl(manyConstExports.ts, 4365, 12)) + +export const exp4366 = "test"; +>exp4366 : Symbol(exp4366, Decl(manyConstExports.ts, 4366, 12)) + +export const exp4367 = "test"; +>exp4367 : Symbol(exp4367, Decl(manyConstExports.ts, 4367, 12)) + +export const exp4368 = "test"; +>exp4368 : Symbol(exp4368, Decl(manyConstExports.ts, 4368, 12)) + +export const exp4369 = "test"; +>exp4369 : Symbol(exp4369, Decl(manyConstExports.ts, 4369, 12)) + +export const exp4370 = "test"; +>exp4370 : Symbol(exp4370, Decl(manyConstExports.ts, 4370, 12)) + +export const exp4371 = "test"; +>exp4371 : Symbol(exp4371, Decl(manyConstExports.ts, 4371, 12)) + +export const exp4372 = "test"; +>exp4372 : Symbol(exp4372, Decl(manyConstExports.ts, 4372, 12)) + +export const exp4373 = "test"; +>exp4373 : Symbol(exp4373, Decl(manyConstExports.ts, 4373, 12)) + +export const exp4374 = "test"; +>exp4374 : Symbol(exp4374, Decl(manyConstExports.ts, 4374, 12)) + +export const exp4375 = "test"; +>exp4375 : Symbol(exp4375, Decl(manyConstExports.ts, 4375, 12)) + +export const exp4376 = "test"; +>exp4376 : Symbol(exp4376, Decl(manyConstExports.ts, 4376, 12)) + +export const exp4377 = "test"; +>exp4377 : Symbol(exp4377, Decl(manyConstExports.ts, 4377, 12)) + +export const exp4378 = "test"; +>exp4378 : Symbol(exp4378, Decl(manyConstExports.ts, 4378, 12)) + +export const exp4379 = "test"; +>exp4379 : Symbol(exp4379, Decl(manyConstExports.ts, 4379, 12)) + +export const exp4380 = "test"; +>exp4380 : Symbol(exp4380, Decl(manyConstExports.ts, 4380, 12)) + +export const exp4381 = "test"; +>exp4381 : Symbol(exp4381, Decl(manyConstExports.ts, 4381, 12)) + +export const exp4382 = "test"; +>exp4382 : Symbol(exp4382, Decl(manyConstExports.ts, 4382, 12)) + +export const exp4383 = "test"; +>exp4383 : Symbol(exp4383, Decl(manyConstExports.ts, 4383, 12)) + +export const exp4384 = "test"; +>exp4384 : Symbol(exp4384, Decl(manyConstExports.ts, 4384, 12)) + +export const exp4385 = "test"; +>exp4385 : Symbol(exp4385, Decl(manyConstExports.ts, 4385, 12)) + +export const exp4386 = "test"; +>exp4386 : Symbol(exp4386, Decl(manyConstExports.ts, 4386, 12)) + +export const exp4387 = "test"; +>exp4387 : Symbol(exp4387, Decl(manyConstExports.ts, 4387, 12)) + +export const exp4388 = "test"; +>exp4388 : Symbol(exp4388, Decl(manyConstExports.ts, 4388, 12)) + +export const exp4389 = "test"; +>exp4389 : Symbol(exp4389, Decl(manyConstExports.ts, 4389, 12)) + +export const exp4390 = "test"; +>exp4390 : Symbol(exp4390, Decl(manyConstExports.ts, 4390, 12)) + +export const exp4391 = "test"; +>exp4391 : Symbol(exp4391, Decl(manyConstExports.ts, 4391, 12)) + +export const exp4392 = "test"; +>exp4392 : Symbol(exp4392, Decl(manyConstExports.ts, 4392, 12)) + +export const exp4393 = "test"; +>exp4393 : Symbol(exp4393, Decl(manyConstExports.ts, 4393, 12)) + +export const exp4394 = "test"; +>exp4394 : Symbol(exp4394, Decl(manyConstExports.ts, 4394, 12)) + +export const exp4395 = "test"; +>exp4395 : Symbol(exp4395, Decl(manyConstExports.ts, 4395, 12)) + +export const exp4396 = "test"; +>exp4396 : Symbol(exp4396, Decl(manyConstExports.ts, 4396, 12)) + +export const exp4397 = "test"; +>exp4397 : Symbol(exp4397, Decl(manyConstExports.ts, 4397, 12)) + +export const exp4398 = "test"; +>exp4398 : Symbol(exp4398, Decl(manyConstExports.ts, 4398, 12)) + +export const exp4399 = "test"; +>exp4399 : Symbol(exp4399, Decl(manyConstExports.ts, 4399, 12)) + +export const exp4400 = "test"; +>exp4400 : Symbol(exp4400, Decl(manyConstExports.ts, 4400, 12)) + +export const exp4401 = "test"; +>exp4401 : Symbol(exp4401, Decl(manyConstExports.ts, 4401, 12)) + +export const exp4402 = "test"; +>exp4402 : Symbol(exp4402, Decl(manyConstExports.ts, 4402, 12)) + +export const exp4403 = "test"; +>exp4403 : Symbol(exp4403, Decl(manyConstExports.ts, 4403, 12)) + +export const exp4404 = "test"; +>exp4404 : Symbol(exp4404, Decl(manyConstExports.ts, 4404, 12)) + +export const exp4405 = "test"; +>exp4405 : Symbol(exp4405, Decl(manyConstExports.ts, 4405, 12)) + +export const exp4406 = "test"; +>exp4406 : Symbol(exp4406, Decl(manyConstExports.ts, 4406, 12)) + +export const exp4407 = "test"; +>exp4407 : Symbol(exp4407, Decl(manyConstExports.ts, 4407, 12)) + +export const exp4408 = "test"; +>exp4408 : Symbol(exp4408, Decl(manyConstExports.ts, 4408, 12)) + +export const exp4409 = "test"; +>exp4409 : Symbol(exp4409, Decl(manyConstExports.ts, 4409, 12)) + +export const exp4410 = "test"; +>exp4410 : Symbol(exp4410, Decl(manyConstExports.ts, 4410, 12)) + +export const exp4411 = "test"; +>exp4411 : Symbol(exp4411, Decl(manyConstExports.ts, 4411, 12)) + +export const exp4412 = "test"; +>exp4412 : Symbol(exp4412, Decl(manyConstExports.ts, 4412, 12)) + +export const exp4413 = "test"; +>exp4413 : Symbol(exp4413, Decl(manyConstExports.ts, 4413, 12)) + +export const exp4414 = "test"; +>exp4414 : Symbol(exp4414, Decl(manyConstExports.ts, 4414, 12)) + +export const exp4415 = "test"; +>exp4415 : Symbol(exp4415, Decl(manyConstExports.ts, 4415, 12)) + +export const exp4416 = "test"; +>exp4416 : Symbol(exp4416, Decl(manyConstExports.ts, 4416, 12)) + +export const exp4417 = "test"; +>exp4417 : Symbol(exp4417, Decl(manyConstExports.ts, 4417, 12)) + +export const exp4418 = "test"; +>exp4418 : Symbol(exp4418, Decl(manyConstExports.ts, 4418, 12)) + +export const exp4419 = "test"; +>exp4419 : Symbol(exp4419, Decl(manyConstExports.ts, 4419, 12)) + +export const exp4420 = "test"; +>exp4420 : Symbol(exp4420, Decl(manyConstExports.ts, 4420, 12)) + +export const exp4421 = "test"; +>exp4421 : Symbol(exp4421, Decl(manyConstExports.ts, 4421, 12)) + +export const exp4422 = "test"; +>exp4422 : Symbol(exp4422, Decl(manyConstExports.ts, 4422, 12)) + +export const exp4423 = "test"; +>exp4423 : Symbol(exp4423, Decl(manyConstExports.ts, 4423, 12)) + +export const exp4424 = "test"; +>exp4424 : Symbol(exp4424, Decl(manyConstExports.ts, 4424, 12)) + +export const exp4425 = "test"; +>exp4425 : Symbol(exp4425, Decl(manyConstExports.ts, 4425, 12)) + +export const exp4426 = "test"; +>exp4426 : Symbol(exp4426, Decl(manyConstExports.ts, 4426, 12)) + +export const exp4427 = "test"; +>exp4427 : Symbol(exp4427, Decl(manyConstExports.ts, 4427, 12)) + +export const exp4428 = "test"; +>exp4428 : Symbol(exp4428, Decl(manyConstExports.ts, 4428, 12)) + +export const exp4429 = "test"; +>exp4429 : Symbol(exp4429, Decl(manyConstExports.ts, 4429, 12)) + +export const exp4430 = "test"; +>exp4430 : Symbol(exp4430, Decl(manyConstExports.ts, 4430, 12)) + +export const exp4431 = "test"; +>exp4431 : Symbol(exp4431, Decl(manyConstExports.ts, 4431, 12)) + +export const exp4432 = "test"; +>exp4432 : Symbol(exp4432, Decl(manyConstExports.ts, 4432, 12)) + +export const exp4433 = "test"; +>exp4433 : Symbol(exp4433, Decl(manyConstExports.ts, 4433, 12)) + +export const exp4434 = "test"; +>exp4434 : Symbol(exp4434, Decl(manyConstExports.ts, 4434, 12)) + +export const exp4435 = "test"; +>exp4435 : Symbol(exp4435, Decl(manyConstExports.ts, 4435, 12)) + +export const exp4436 = "test"; +>exp4436 : Symbol(exp4436, Decl(manyConstExports.ts, 4436, 12)) + +export const exp4437 = "test"; +>exp4437 : Symbol(exp4437, Decl(manyConstExports.ts, 4437, 12)) + +export const exp4438 = "test"; +>exp4438 : Symbol(exp4438, Decl(manyConstExports.ts, 4438, 12)) + +export const exp4439 = "test"; +>exp4439 : Symbol(exp4439, Decl(manyConstExports.ts, 4439, 12)) + +export const exp4440 = "test"; +>exp4440 : Symbol(exp4440, Decl(manyConstExports.ts, 4440, 12)) + +export const exp4441 = "test"; +>exp4441 : Symbol(exp4441, Decl(manyConstExports.ts, 4441, 12)) + +export const exp4442 = "test"; +>exp4442 : Symbol(exp4442, Decl(manyConstExports.ts, 4442, 12)) + +export const exp4443 = "test"; +>exp4443 : Symbol(exp4443, Decl(manyConstExports.ts, 4443, 12)) + +export const exp4444 = "test"; +>exp4444 : Symbol(exp4444, Decl(manyConstExports.ts, 4444, 12)) + +export const exp4445 = "test"; +>exp4445 : Symbol(exp4445, Decl(manyConstExports.ts, 4445, 12)) + +export const exp4446 = "test"; +>exp4446 : Symbol(exp4446, Decl(manyConstExports.ts, 4446, 12)) + +export const exp4447 = "test"; +>exp4447 : Symbol(exp4447, Decl(manyConstExports.ts, 4447, 12)) + +export const exp4448 = "test"; +>exp4448 : Symbol(exp4448, Decl(manyConstExports.ts, 4448, 12)) + +export const exp4449 = "test"; +>exp4449 : Symbol(exp4449, Decl(manyConstExports.ts, 4449, 12)) + +export const exp4450 = "test"; +>exp4450 : Symbol(exp4450, Decl(manyConstExports.ts, 4450, 12)) + +export const exp4451 = "test"; +>exp4451 : Symbol(exp4451, Decl(manyConstExports.ts, 4451, 12)) + +export const exp4452 = "test"; +>exp4452 : Symbol(exp4452, Decl(manyConstExports.ts, 4452, 12)) + +export const exp4453 = "test"; +>exp4453 : Symbol(exp4453, Decl(manyConstExports.ts, 4453, 12)) + +export const exp4454 = "test"; +>exp4454 : Symbol(exp4454, Decl(manyConstExports.ts, 4454, 12)) + +export const exp4455 = "test"; +>exp4455 : Symbol(exp4455, Decl(manyConstExports.ts, 4455, 12)) + +export const exp4456 = "test"; +>exp4456 : Symbol(exp4456, Decl(manyConstExports.ts, 4456, 12)) + +export const exp4457 = "test"; +>exp4457 : Symbol(exp4457, Decl(manyConstExports.ts, 4457, 12)) + +export const exp4458 = "test"; +>exp4458 : Symbol(exp4458, Decl(manyConstExports.ts, 4458, 12)) + +export const exp4459 = "test"; +>exp4459 : Symbol(exp4459, Decl(manyConstExports.ts, 4459, 12)) + +export const exp4460 = "test"; +>exp4460 : Symbol(exp4460, Decl(manyConstExports.ts, 4460, 12)) + +export const exp4461 = "test"; +>exp4461 : Symbol(exp4461, Decl(manyConstExports.ts, 4461, 12)) + +export const exp4462 = "test"; +>exp4462 : Symbol(exp4462, Decl(manyConstExports.ts, 4462, 12)) + +export const exp4463 = "test"; +>exp4463 : Symbol(exp4463, Decl(manyConstExports.ts, 4463, 12)) + +export const exp4464 = "test"; +>exp4464 : Symbol(exp4464, Decl(manyConstExports.ts, 4464, 12)) + +export const exp4465 = "test"; +>exp4465 : Symbol(exp4465, Decl(manyConstExports.ts, 4465, 12)) + +export const exp4466 = "test"; +>exp4466 : Symbol(exp4466, Decl(manyConstExports.ts, 4466, 12)) + +export const exp4467 = "test"; +>exp4467 : Symbol(exp4467, Decl(manyConstExports.ts, 4467, 12)) + +export const exp4468 = "test"; +>exp4468 : Symbol(exp4468, Decl(manyConstExports.ts, 4468, 12)) + +export const exp4469 = "test"; +>exp4469 : Symbol(exp4469, Decl(manyConstExports.ts, 4469, 12)) + +export const exp4470 = "test"; +>exp4470 : Symbol(exp4470, Decl(manyConstExports.ts, 4470, 12)) + +export const exp4471 = "test"; +>exp4471 : Symbol(exp4471, Decl(manyConstExports.ts, 4471, 12)) + +export const exp4472 = "test"; +>exp4472 : Symbol(exp4472, Decl(manyConstExports.ts, 4472, 12)) + +export const exp4473 = "test"; +>exp4473 : Symbol(exp4473, Decl(manyConstExports.ts, 4473, 12)) + +export const exp4474 = "test"; +>exp4474 : Symbol(exp4474, Decl(manyConstExports.ts, 4474, 12)) + +export const exp4475 = "test"; +>exp4475 : Symbol(exp4475, Decl(manyConstExports.ts, 4475, 12)) + +export const exp4476 = "test"; +>exp4476 : Symbol(exp4476, Decl(manyConstExports.ts, 4476, 12)) + +export const exp4477 = "test"; +>exp4477 : Symbol(exp4477, Decl(manyConstExports.ts, 4477, 12)) + +export const exp4478 = "test"; +>exp4478 : Symbol(exp4478, Decl(manyConstExports.ts, 4478, 12)) + +export const exp4479 = "test"; +>exp4479 : Symbol(exp4479, Decl(manyConstExports.ts, 4479, 12)) + +export const exp4480 = "test"; +>exp4480 : Symbol(exp4480, Decl(manyConstExports.ts, 4480, 12)) + +export const exp4481 = "test"; +>exp4481 : Symbol(exp4481, Decl(manyConstExports.ts, 4481, 12)) + +export const exp4482 = "test"; +>exp4482 : Symbol(exp4482, Decl(manyConstExports.ts, 4482, 12)) + +export const exp4483 = "test"; +>exp4483 : Symbol(exp4483, Decl(manyConstExports.ts, 4483, 12)) + +export const exp4484 = "test"; +>exp4484 : Symbol(exp4484, Decl(manyConstExports.ts, 4484, 12)) + +export const exp4485 = "test"; +>exp4485 : Symbol(exp4485, Decl(manyConstExports.ts, 4485, 12)) + +export const exp4486 = "test"; +>exp4486 : Symbol(exp4486, Decl(manyConstExports.ts, 4486, 12)) + +export const exp4487 = "test"; +>exp4487 : Symbol(exp4487, Decl(manyConstExports.ts, 4487, 12)) + +export const exp4488 = "test"; +>exp4488 : Symbol(exp4488, Decl(manyConstExports.ts, 4488, 12)) + +export const exp4489 = "test"; +>exp4489 : Symbol(exp4489, Decl(manyConstExports.ts, 4489, 12)) + +export const exp4490 = "test"; +>exp4490 : Symbol(exp4490, Decl(manyConstExports.ts, 4490, 12)) + +export const exp4491 = "test"; +>exp4491 : Symbol(exp4491, Decl(manyConstExports.ts, 4491, 12)) + +export const exp4492 = "test"; +>exp4492 : Symbol(exp4492, Decl(manyConstExports.ts, 4492, 12)) + +export const exp4493 = "test"; +>exp4493 : Symbol(exp4493, Decl(manyConstExports.ts, 4493, 12)) + +export const exp4494 = "test"; +>exp4494 : Symbol(exp4494, Decl(manyConstExports.ts, 4494, 12)) + +export const exp4495 = "test"; +>exp4495 : Symbol(exp4495, Decl(manyConstExports.ts, 4495, 12)) + +export const exp4496 = "test"; +>exp4496 : Symbol(exp4496, Decl(manyConstExports.ts, 4496, 12)) + +export const exp4497 = "test"; +>exp4497 : Symbol(exp4497, Decl(manyConstExports.ts, 4497, 12)) + +export const exp4498 = "test"; +>exp4498 : Symbol(exp4498, Decl(manyConstExports.ts, 4498, 12)) + +export const exp4499 = "test"; +>exp4499 : Symbol(exp4499, Decl(manyConstExports.ts, 4499, 12)) + +export const exp4500 = "test"; +>exp4500 : Symbol(exp4500, Decl(manyConstExports.ts, 4500, 12)) + +export const exp4501 = "test"; +>exp4501 : Symbol(exp4501, Decl(manyConstExports.ts, 4501, 12)) + +export const exp4502 = "test"; +>exp4502 : Symbol(exp4502, Decl(manyConstExports.ts, 4502, 12)) + +export const exp4503 = "test"; +>exp4503 : Symbol(exp4503, Decl(manyConstExports.ts, 4503, 12)) + +export const exp4504 = "test"; +>exp4504 : Symbol(exp4504, Decl(manyConstExports.ts, 4504, 12)) + +export const exp4505 = "test"; +>exp4505 : Symbol(exp4505, Decl(manyConstExports.ts, 4505, 12)) + +export const exp4506 = "test"; +>exp4506 : Symbol(exp4506, Decl(manyConstExports.ts, 4506, 12)) + +export const exp4507 = "test"; +>exp4507 : Symbol(exp4507, Decl(manyConstExports.ts, 4507, 12)) + +export const exp4508 = "test"; +>exp4508 : Symbol(exp4508, Decl(manyConstExports.ts, 4508, 12)) + +export const exp4509 = "test"; +>exp4509 : Symbol(exp4509, Decl(manyConstExports.ts, 4509, 12)) + +export const exp4510 = "test"; +>exp4510 : Symbol(exp4510, Decl(manyConstExports.ts, 4510, 12)) + +export const exp4511 = "test"; +>exp4511 : Symbol(exp4511, Decl(manyConstExports.ts, 4511, 12)) + +export const exp4512 = "test"; +>exp4512 : Symbol(exp4512, Decl(manyConstExports.ts, 4512, 12)) + +export const exp4513 = "test"; +>exp4513 : Symbol(exp4513, Decl(manyConstExports.ts, 4513, 12)) + +export const exp4514 = "test"; +>exp4514 : Symbol(exp4514, Decl(manyConstExports.ts, 4514, 12)) + +export const exp4515 = "test"; +>exp4515 : Symbol(exp4515, Decl(manyConstExports.ts, 4515, 12)) + +export const exp4516 = "test"; +>exp4516 : Symbol(exp4516, Decl(manyConstExports.ts, 4516, 12)) + +export const exp4517 = "test"; +>exp4517 : Symbol(exp4517, Decl(manyConstExports.ts, 4517, 12)) + +export const exp4518 = "test"; +>exp4518 : Symbol(exp4518, Decl(manyConstExports.ts, 4518, 12)) + +export const exp4519 = "test"; +>exp4519 : Symbol(exp4519, Decl(manyConstExports.ts, 4519, 12)) + +export const exp4520 = "test"; +>exp4520 : Symbol(exp4520, Decl(manyConstExports.ts, 4520, 12)) + +export const exp4521 = "test"; +>exp4521 : Symbol(exp4521, Decl(manyConstExports.ts, 4521, 12)) + +export const exp4522 = "test"; +>exp4522 : Symbol(exp4522, Decl(manyConstExports.ts, 4522, 12)) + +export const exp4523 = "test"; +>exp4523 : Symbol(exp4523, Decl(manyConstExports.ts, 4523, 12)) + +export const exp4524 = "test"; +>exp4524 : Symbol(exp4524, Decl(manyConstExports.ts, 4524, 12)) + +export const exp4525 = "test"; +>exp4525 : Symbol(exp4525, Decl(manyConstExports.ts, 4525, 12)) + +export const exp4526 = "test"; +>exp4526 : Symbol(exp4526, Decl(manyConstExports.ts, 4526, 12)) + +export const exp4527 = "test"; +>exp4527 : Symbol(exp4527, Decl(manyConstExports.ts, 4527, 12)) + +export const exp4528 = "test"; +>exp4528 : Symbol(exp4528, Decl(manyConstExports.ts, 4528, 12)) + +export const exp4529 = "test"; +>exp4529 : Symbol(exp4529, Decl(manyConstExports.ts, 4529, 12)) + +export const exp4530 = "test"; +>exp4530 : Symbol(exp4530, Decl(manyConstExports.ts, 4530, 12)) + +export const exp4531 = "test"; +>exp4531 : Symbol(exp4531, Decl(manyConstExports.ts, 4531, 12)) + +export const exp4532 = "test"; +>exp4532 : Symbol(exp4532, Decl(manyConstExports.ts, 4532, 12)) + +export const exp4533 = "test"; +>exp4533 : Symbol(exp4533, Decl(manyConstExports.ts, 4533, 12)) + +export const exp4534 = "test"; +>exp4534 : Symbol(exp4534, Decl(manyConstExports.ts, 4534, 12)) + +export const exp4535 = "test"; +>exp4535 : Symbol(exp4535, Decl(manyConstExports.ts, 4535, 12)) + +export const exp4536 = "test"; +>exp4536 : Symbol(exp4536, Decl(manyConstExports.ts, 4536, 12)) + +export const exp4537 = "test"; +>exp4537 : Symbol(exp4537, Decl(manyConstExports.ts, 4537, 12)) + +export const exp4538 = "test"; +>exp4538 : Symbol(exp4538, Decl(manyConstExports.ts, 4538, 12)) + +export const exp4539 = "test"; +>exp4539 : Symbol(exp4539, Decl(manyConstExports.ts, 4539, 12)) + +export const exp4540 = "test"; +>exp4540 : Symbol(exp4540, Decl(manyConstExports.ts, 4540, 12)) + +export const exp4541 = "test"; +>exp4541 : Symbol(exp4541, Decl(manyConstExports.ts, 4541, 12)) + +export const exp4542 = "test"; +>exp4542 : Symbol(exp4542, Decl(manyConstExports.ts, 4542, 12)) + +export const exp4543 = "test"; +>exp4543 : Symbol(exp4543, Decl(manyConstExports.ts, 4543, 12)) + +export const exp4544 = "test"; +>exp4544 : Symbol(exp4544, Decl(manyConstExports.ts, 4544, 12)) + +export const exp4545 = "test"; +>exp4545 : Symbol(exp4545, Decl(manyConstExports.ts, 4545, 12)) + +export const exp4546 = "test"; +>exp4546 : Symbol(exp4546, Decl(manyConstExports.ts, 4546, 12)) + +export const exp4547 = "test"; +>exp4547 : Symbol(exp4547, Decl(manyConstExports.ts, 4547, 12)) + +export const exp4548 = "test"; +>exp4548 : Symbol(exp4548, Decl(manyConstExports.ts, 4548, 12)) + +export const exp4549 = "test"; +>exp4549 : Symbol(exp4549, Decl(manyConstExports.ts, 4549, 12)) + +export const exp4550 = "test"; +>exp4550 : Symbol(exp4550, Decl(manyConstExports.ts, 4550, 12)) + +export const exp4551 = "test"; +>exp4551 : Symbol(exp4551, Decl(manyConstExports.ts, 4551, 12)) + +export const exp4552 = "test"; +>exp4552 : Symbol(exp4552, Decl(manyConstExports.ts, 4552, 12)) + +export const exp4553 = "test"; +>exp4553 : Symbol(exp4553, Decl(manyConstExports.ts, 4553, 12)) + +export const exp4554 = "test"; +>exp4554 : Symbol(exp4554, Decl(manyConstExports.ts, 4554, 12)) + +export const exp4555 = "test"; +>exp4555 : Symbol(exp4555, Decl(manyConstExports.ts, 4555, 12)) + +export const exp4556 = "test"; +>exp4556 : Symbol(exp4556, Decl(manyConstExports.ts, 4556, 12)) + +export const exp4557 = "test"; +>exp4557 : Symbol(exp4557, Decl(manyConstExports.ts, 4557, 12)) + +export const exp4558 = "test"; +>exp4558 : Symbol(exp4558, Decl(manyConstExports.ts, 4558, 12)) + +export const exp4559 = "test"; +>exp4559 : Symbol(exp4559, Decl(manyConstExports.ts, 4559, 12)) + +export const exp4560 = "test"; +>exp4560 : Symbol(exp4560, Decl(manyConstExports.ts, 4560, 12)) + +export const exp4561 = "test"; +>exp4561 : Symbol(exp4561, Decl(manyConstExports.ts, 4561, 12)) + +export const exp4562 = "test"; +>exp4562 : Symbol(exp4562, Decl(manyConstExports.ts, 4562, 12)) + +export const exp4563 = "test"; +>exp4563 : Symbol(exp4563, Decl(manyConstExports.ts, 4563, 12)) + +export const exp4564 = "test"; +>exp4564 : Symbol(exp4564, Decl(manyConstExports.ts, 4564, 12)) + +export const exp4565 = "test"; +>exp4565 : Symbol(exp4565, Decl(manyConstExports.ts, 4565, 12)) + +export const exp4566 = "test"; +>exp4566 : Symbol(exp4566, Decl(manyConstExports.ts, 4566, 12)) + +export const exp4567 = "test"; +>exp4567 : Symbol(exp4567, Decl(manyConstExports.ts, 4567, 12)) + +export const exp4568 = "test"; +>exp4568 : Symbol(exp4568, Decl(manyConstExports.ts, 4568, 12)) + +export const exp4569 = "test"; +>exp4569 : Symbol(exp4569, Decl(manyConstExports.ts, 4569, 12)) + +export const exp4570 = "test"; +>exp4570 : Symbol(exp4570, Decl(manyConstExports.ts, 4570, 12)) + +export const exp4571 = "test"; +>exp4571 : Symbol(exp4571, Decl(manyConstExports.ts, 4571, 12)) + +export const exp4572 = "test"; +>exp4572 : Symbol(exp4572, Decl(manyConstExports.ts, 4572, 12)) + +export const exp4573 = "test"; +>exp4573 : Symbol(exp4573, Decl(manyConstExports.ts, 4573, 12)) + +export const exp4574 = "test"; +>exp4574 : Symbol(exp4574, Decl(manyConstExports.ts, 4574, 12)) + +export const exp4575 = "test"; +>exp4575 : Symbol(exp4575, Decl(manyConstExports.ts, 4575, 12)) + +export const exp4576 = "test"; +>exp4576 : Symbol(exp4576, Decl(manyConstExports.ts, 4576, 12)) + +export const exp4577 = "test"; +>exp4577 : Symbol(exp4577, Decl(manyConstExports.ts, 4577, 12)) + +export const exp4578 = "test"; +>exp4578 : Symbol(exp4578, Decl(manyConstExports.ts, 4578, 12)) + +export const exp4579 = "test"; +>exp4579 : Symbol(exp4579, Decl(manyConstExports.ts, 4579, 12)) + +export const exp4580 = "test"; +>exp4580 : Symbol(exp4580, Decl(manyConstExports.ts, 4580, 12)) + +export const exp4581 = "test"; +>exp4581 : Symbol(exp4581, Decl(manyConstExports.ts, 4581, 12)) + +export const exp4582 = "test"; +>exp4582 : Symbol(exp4582, Decl(manyConstExports.ts, 4582, 12)) + +export const exp4583 = "test"; +>exp4583 : Symbol(exp4583, Decl(manyConstExports.ts, 4583, 12)) + +export const exp4584 = "test"; +>exp4584 : Symbol(exp4584, Decl(manyConstExports.ts, 4584, 12)) + +export const exp4585 = "test"; +>exp4585 : Symbol(exp4585, Decl(manyConstExports.ts, 4585, 12)) + +export const exp4586 = "test"; +>exp4586 : Symbol(exp4586, Decl(manyConstExports.ts, 4586, 12)) + +export const exp4587 = "test"; +>exp4587 : Symbol(exp4587, Decl(manyConstExports.ts, 4587, 12)) + +export const exp4588 = "test"; +>exp4588 : Symbol(exp4588, Decl(manyConstExports.ts, 4588, 12)) + +export const exp4589 = "test"; +>exp4589 : Symbol(exp4589, Decl(manyConstExports.ts, 4589, 12)) + +export const exp4590 = "test"; +>exp4590 : Symbol(exp4590, Decl(manyConstExports.ts, 4590, 12)) + +export const exp4591 = "test"; +>exp4591 : Symbol(exp4591, Decl(manyConstExports.ts, 4591, 12)) + +export const exp4592 = "test"; +>exp4592 : Symbol(exp4592, Decl(manyConstExports.ts, 4592, 12)) + +export const exp4593 = "test"; +>exp4593 : Symbol(exp4593, Decl(manyConstExports.ts, 4593, 12)) + +export const exp4594 = "test"; +>exp4594 : Symbol(exp4594, Decl(manyConstExports.ts, 4594, 12)) + +export const exp4595 = "test"; +>exp4595 : Symbol(exp4595, Decl(manyConstExports.ts, 4595, 12)) + +export const exp4596 = "test"; +>exp4596 : Symbol(exp4596, Decl(manyConstExports.ts, 4596, 12)) + +export const exp4597 = "test"; +>exp4597 : Symbol(exp4597, Decl(manyConstExports.ts, 4597, 12)) + +export const exp4598 = "test"; +>exp4598 : Symbol(exp4598, Decl(manyConstExports.ts, 4598, 12)) + +export const exp4599 = "test"; +>exp4599 : Symbol(exp4599, Decl(manyConstExports.ts, 4599, 12)) + +export const exp4600 = "test"; +>exp4600 : Symbol(exp4600, Decl(manyConstExports.ts, 4600, 12)) + +export const exp4601 = "test"; +>exp4601 : Symbol(exp4601, Decl(manyConstExports.ts, 4601, 12)) + +export const exp4602 = "test"; +>exp4602 : Symbol(exp4602, Decl(manyConstExports.ts, 4602, 12)) + +export const exp4603 = "test"; +>exp4603 : Symbol(exp4603, Decl(manyConstExports.ts, 4603, 12)) + +export const exp4604 = "test"; +>exp4604 : Symbol(exp4604, Decl(manyConstExports.ts, 4604, 12)) + +export const exp4605 = "test"; +>exp4605 : Symbol(exp4605, Decl(manyConstExports.ts, 4605, 12)) + +export const exp4606 = "test"; +>exp4606 : Symbol(exp4606, Decl(manyConstExports.ts, 4606, 12)) + +export const exp4607 = "test"; +>exp4607 : Symbol(exp4607, Decl(manyConstExports.ts, 4607, 12)) + +export const exp4608 = "test"; +>exp4608 : Symbol(exp4608, Decl(manyConstExports.ts, 4608, 12)) + +export const exp4609 = "test"; +>exp4609 : Symbol(exp4609, Decl(manyConstExports.ts, 4609, 12)) + +export const exp4610 = "test"; +>exp4610 : Symbol(exp4610, Decl(manyConstExports.ts, 4610, 12)) + +export const exp4611 = "test"; +>exp4611 : Symbol(exp4611, Decl(manyConstExports.ts, 4611, 12)) + +export const exp4612 = "test"; +>exp4612 : Symbol(exp4612, Decl(manyConstExports.ts, 4612, 12)) + +export const exp4613 = "test"; +>exp4613 : Symbol(exp4613, Decl(manyConstExports.ts, 4613, 12)) + +export const exp4614 = "test"; +>exp4614 : Symbol(exp4614, Decl(manyConstExports.ts, 4614, 12)) + +export const exp4615 = "test"; +>exp4615 : Symbol(exp4615, Decl(manyConstExports.ts, 4615, 12)) + +export const exp4616 = "test"; +>exp4616 : Symbol(exp4616, Decl(manyConstExports.ts, 4616, 12)) + +export const exp4617 = "test"; +>exp4617 : Symbol(exp4617, Decl(manyConstExports.ts, 4617, 12)) + +export const exp4618 = "test"; +>exp4618 : Symbol(exp4618, Decl(manyConstExports.ts, 4618, 12)) + +export const exp4619 = "test"; +>exp4619 : Symbol(exp4619, Decl(manyConstExports.ts, 4619, 12)) + +export const exp4620 = "test"; +>exp4620 : Symbol(exp4620, Decl(manyConstExports.ts, 4620, 12)) + +export const exp4621 = "test"; +>exp4621 : Symbol(exp4621, Decl(manyConstExports.ts, 4621, 12)) + +export const exp4622 = "test"; +>exp4622 : Symbol(exp4622, Decl(manyConstExports.ts, 4622, 12)) + +export const exp4623 = "test"; +>exp4623 : Symbol(exp4623, Decl(manyConstExports.ts, 4623, 12)) + +export const exp4624 = "test"; +>exp4624 : Symbol(exp4624, Decl(manyConstExports.ts, 4624, 12)) + +export const exp4625 = "test"; +>exp4625 : Symbol(exp4625, Decl(manyConstExports.ts, 4625, 12)) + +export const exp4626 = "test"; +>exp4626 : Symbol(exp4626, Decl(manyConstExports.ts, 4626, 12)) + +export const exp4627 = "test"; +>exp4627 : Symbol(exp4627, Decl(manyConstExports.ts, 4627, 12)) + +export const exp4628 = "test"; +>exp4628 : Symbol(exp4628, Decl(manyConstExports.ts, 4628, 12)) + +export const exp4629 = "test"; +>exp4629 : Symbol(exp4629, Decl(manyConstExports.ts, 4629, 12)) + +export const exp4630 = "test"; +>exp4630 : Symbol(exp4630, Decl(manyConstExports.ts, 4630, 12)) + +export const exp4631 = "test"; +>exp4631 : Symbol(exp4631, Decl(manyConstExports.ts, 4631, 12)) + +export const exp4632 = "test"; +>exp4632 : Symbol(exp4632, Decl(manyConstExports.ts, 4632, 12)) + +export const exp4633 = "test"; +>exp4633 : Symbol(exp4633, Decl(manyConstExports.ts, 4633, 12)) + +export const exp4634 = "test"; +>exp4634 : Symbol(exp4634, Decl(manyConstExports.ts, 4634, 12)) + +export const exp4635 = "test"; +>exp4635 : Symbol(exp4635, Decl(manyConstExports.ts, 4635, 12)) + +export const exp4636 = "test"; +>exp4636 : Symbol(exp4636, Decl(manyConstExports.ts, 4636, 12)) + +export const exp4637 = "test"; +>exp4637 : Symbol(exp4637, Decl(manyConstExports.ts, 4637, 12)) + +export const exp4638 = "test"; +>exp4638 : Symbol(exp4638, Decl(manyConstExports.ts, 4638, 12)) + +export const exp4639 = "test"; +>exp4639 : Symbol(exp4639, Decl(manyConstExports.ts, 4639, 12)) + +export const exp4640 = "test"; +>exp4640 : Symbol(exp4640, Decl(manyConstExports.ts, 4640, 12)) + +export const exp4641 = "test"; +>exp4641 : Symbol(exp4641, Decl(manyConstExports.ts, 4641, 12)) + +export const exp4642 = "test"; +>exp4642 : Symbol(exp4642, Decl(manyConstExports.ts, 4642, 12)) + +export const exp4643 = "test"; +>exp4643 : Symbol(exp4643, Decl(manyConstExports.ts, 4643, 12)) + +export const exp4644 = "test"; +>exp4644 : Symbol(exp4644, Decl(manyConstExports.ts, 4644, 12)) + +export const exp4645 = "test"; +>exp4645 : Symbol(exp4645, Decl(manyConstExports.ts, 4645, 12)) + +export const exp4646 = "test"; +>exp4646 : Symbol(exp4646, Decl(manyConstExports.ts, 4646, 12)) + +export const exp4647 = "test"; +>exp4647 : Symbol(exp4647, Decl(manyConstExports.ts, 4647, 12)) + +export const exp4648 = "test"; +>exp4648 : Symbol(exp4648, Decl(manyConstExports.ts, 4648, 12)) + +export const exp4649 = "test"; +>exp4649 : Symbol(exp4649, Decl(manyConstExports.ts, 4649, 12)) + +export const exp4650 = "test"; +>exp4650 : Symbol(exp4650, Decl(manyConstExports.ts, 4650, 12)) + +export const exp4651 = "test"; +>exp4651 : Symbol(exp4651, Decl(manyConstExports.ts, 4651, 12)) + +export const exp4652 = "test"; +>exp4652 : Symbol(exp4652, Decl(manyConstExports.ts, 4652, 12)) + +export const exp4653 = "test"; +>exp4653 : Symbol(exp4653, Decl(manyConstExports.ts, 4653, 12)) + +export const exp4654 = "test"; +>exp4654 : Symbol(exp4654, Decl(manyConstExports.ts, 4654, 12)) + +export const exp4655 = "test"; +>exp4655 : Symbol(exp4655, Decl(manyConstExports.ts, 4655, 12)) + +export const exp4656 = "test"; +>exp4656 : Symbol(exp4656, Decl(manyConstExports.ts, 4656, 12)) + +export const exp4657 = "test"; +>exp4657 : Symbol(exp4657, Decl(manyConstExports.ts, 4657, 12)) + +export const exp4658 = "test"; +>exp4658 : Symbol(exp4658, Decl(manyConstExports.ts, 4658, 12)) + +export const exp4659 = "test"; +>exp4659 : Symbol(exp4659, Decl(manyConstExports.ts, 4659, 12)) + +export const exp4660 = "test"; +>exp4660 : Symbol(exp4660, Decl(manyConstExports.ts, 4660, 12)) + +export const exp4661 = "test"; +>exp4661 : Symbol(exp4661, Decl(manyConstExports.ts, 4661, 12)) + +export const exp4662 = "test"; +>exp4662 : Symbol(exp4662, Decl(manyConstExports.ts, 4662, 12)) + +export const exp4663 = "test"; +>exp4663 : Symbol(exp4663, Decl(manyConstExports.ts, 4663, 12)) + +export const exp4664 = "test"; +>exp4664 : Symbol(exp4664, Decl(manyConstExports.ts, 4664, 12)) + +export const exp4665 = "test"; +>exp4665 : Symbol(exp4665, Decl(manyConstExports.ts, 4665, 12)) + +export const exp4666 = "test"; +>exp4666 : Symbol(exp4666, Decl(manyConstExports.ts, 4666, 12)) + +export const exp4667 = "test"; +>exp4667 : Symbol(exp4667, Decl(manyConstExports.ts, 4667, 12)) + +export const exp4668 = "test"; +>exp4668 : Symbol(exp4668, Decl(manyConstExports.ts, 4668, 12)) + +export const exp4669 = "test"; +>exp4669 : Symbol(exp4669, Decl(manyConstExports.ts, 4669, 12)) + +export const exp4670 = "test"; +>exp4670 : Symbol(exp4670, Decl(manyConstExports.ts, 4670, 12)) + +export const exp4671 = "test"; +>exp4671 : Symbol(exp4671, Decl(manyConstExports.ts, 4671, 12)) + +export const exp4672 = "test"; +>exp4672 : Symbol(exp4672, Decl(manyConstExports.ts, 4672, 12)) + +export const exp4673 = "test"; +>exp4673 : Symbol(exp4673, Decl(manyConstExports.ts, 4673, 12)) + +export const exp4674 = "test"; +>exp4674 : Symbol(exp4674, Decl(manyConstExports.ts, 4674, 12)) + +export const exp4675 = "test"; +>exp4675 : Symbol(exp4675, Decl(manyConstExports.ts, 4675, 12)) + +export const exp4676 = "test"; +>exp4676 : Symbol(exp4676, Decl(manyConstExports.ts, 4676, 12)) + +export const exp4677 = "test"; +>exp4677 : Symbol(exp4677, Decl(manyConstExports.ts, 4677, 12)) + +export const exp4678 = "test"; +>exp4678 : Symbol(exp4678, Decl(manyConstExports.ts, 4678, 12)) + +export const exp4679 = "test"; +>exp4679 : Symbol(exp4679, Decl(manyConstExports.ts, 4679, 12)) + +export const exp4680 = "test"; +>exp4680 : Symbol(exp4680, Decl(manyConstExports.ts, 4680, 12)) + +export const exp4681 = "test"; +>exp4681 : Symbol(exp4681, Decl(manyConstExports.ts, 4681, 12)) + +export const exp4682 = "test"; +>exp4682 : Symbol(exp4682, Decl(manyConstExports.ts, 4682, 12)) + +export const exp4683 = "test"; +>exp4683 : Symbol(exp4683, Decl(manyConstExports.ts, 4683, 12)) + +export const exp4684 = "test"; +>exp4684 : Symbol(exp4684, Decl(manyConstExports.ts, 4684, 12)) + +export const exp4685 = "test"; +>exp4685 : Symbol(exp4685, Decl(manyConstExports.ts, 4685, 12)) + +export const exp4686 = "test"; +>exp4686 : Symbol(exp4686, Decl(manyConstExports.ts, 4686, 12)) + +export const exp4687 = "test"; +>exp4687 : Symbol(exp4687, Decl(manyConstExports.ts, 4687, 12)) + +export const exp4688 = "test"; +>exp4688 : Symbol(exp4688, Decl(manyConstExports.ts, 4688, 12)) + +export const exp4689 = "test"; +>exp4689 : Symbol(exp4689, Decl(manyConstExports.ts, 4689, 12)) + +export const exp4690 = "test"; +>exp4690 : Symbol(exp4690, Decl(manyConstExports.ts, 4690, 12)) + +export const exp4691 = "test"; +>exp4691 : Symbol(exp4691, Decl(manyConstExports.ts, 4691, 12)) + +export const exp4692 = "test"; +>exp4692 : Symbol(exp4692, Decl(manyConstExports.ts, 4692, 12)) + +export const exp4693 = "test"; +>exp4693 : Symbol(exp4693, Decl(manyConstExports.ts, 4693, 12)) + +export const exp4694 = "test"; +>exp4694 : Symbol(exp4694, Decl(manyConstExports.ts, 4694, 12)) + +export const exp4695 = "test"; +>exp4695 : Symbol(exp4695, Decl(manyConstExports.ts, 4695, 12)) + +export const exp4696 = "test"; +>exp4696 : Symbol(exp4696, Decl(manyConstExports.ts, 4696, 12)) + +export const exp4697 = "test"; +>exp4697 : Symbol(exp4697, Decl(manyConstExports.ts, 4697, 12)) + +export const exp4698 = "test"; +>exp4698 : Symbol(exp4698, Decl(manyConstExports.ts, 4698, 12)) + +export const exp4699 = "test"; +>exp4699 : Symbol(exp4699, Decl(manyConstExports.ts, 4699, 12)) + +export const exp4700 = "test"; +>exp4700 : Symbol(exp4700, Decl(manyConstExports.ts, 4700, 12)) + +export const exp4701 = "test"; +>exp4701 : Symbol(exp4701, Decl(manyConstExports.ts, 4701, 12)) + +export const exp4702 = "test"; +>exp4702 : Symbol(exp4702, Decl(manyConstExports.ts, 4702, 12)) + +export const exp4703 = "test"; +>exp4703 : Symbol(exp4703, Decl(manyConstExports.ts, 4703, 12)) + +export const exp4704 = "test"; +>exp4704 : Symbol(exp4704, Decl(manyConstExports.ts, 4704, 12)) + +export const exp4705 = "test"; +>exp4705 : Symbol(exp4705, Decl(manyConstExports.ts, 4705, 12)) + +export const exp4706 = "test"; +>exp4706 : Symbol(exp4706, Decl(manyConstExports.ts, 4706, 12)) + +export const exp4707 = "test"; +>exp4707 : Symbol(exp4707, Decl(manyConstExports.ts, 4707, 12)) + +export const exp4708 = "test"; +>exp4708 : Symbol(exp4708, Decl(manyConstExports.ts, 4708, 12)) + +export const exp4709 = "test"; +>exp4709 : Symbol(exp4709, Decl(manyConstExports.ts, 4709, 12)) + +export const exp4710 = "test"; +>exp4710 : Symbol(exp4710, Decl(manyConstExports.ts, 4710, 12)) + +export const exp4711 = "test"; +>exp4711 : Symbol(exp4711, Decl(manyConstExports.ts, 4711, 12)) + +export const exp4712 = "test"; +>exp4712 : Symbol(exp4712, Decl(manyConstExports.ts, 4712, 12)) + +export const exp4713 = "test"; +>exp4713 : Symbol(exp4713, Decl(manyConstExports.ts, 4713, 12)) + +export const exp4714 = "test"; +>exp4714 : Symbol(exp4714, Decl(manyConstExports.ts, 4714, 12)) + +export const exp4715 = "test"; +>exp4715 : Symbol(exp4715, Decl(manyConstExports.ts, 4715, 12)) + +export const exp4716 = "test"; +>exp4716 : Symbol(exp4716, Decl(manyConstExports.ts, 4716, 12)) + +export const exp4717 = "test"; +>exp4717 : Symbol(exp4717, Decl(manyConstExports.ts, 4717, 12)) + +export const exp4718 = "test"; +>exp4718 : Symbol(exp4718, Decl(manyConstExports.ts, 4718, 12)) + +export const exp4719 = "test"; +>exp4719 : Symbol(exp4719, Decl(manyConstExports.ts, 4719, 12)) + +export const exp4720 = "test"; +>exp4720 : Symbol(exp4720, Decl(manyConstExports.ts, 4720, 12)) + +export const exp4721 = "test"; +>exp4721 : Symbol(exp4721, Decl(manyConstExports.ts, 4721, 12)) + +export const exp4722 = "test"; +>exp4722 : Symbol(exp4722, Decl(manyConstExports.ts, 4722, 12)) + +export const exp4723 = "test"; +>exp4723 : Symbol(exp4723, Decl(manyConstExports.ts, 4723, 12)) + +export const exp4724 = "test"; +>exp4724 : Symbol(exp4724, Decl(manyConstExports.ts, 4724, 12)) + +export const exp4725 = "test"; +>exp4725 : Symbol(exp4725, Decl(manyConstExports.ts, 4725, 12)) + +export const exp4726 = "test"; +>exp4726 : Symbol(exp4726, Decl(manyConstExports.ts, 4726, 12)) + +export const exp4727 = "test"; +>exp4727 : Symbol(exp4727, Decl(manyConstExports.ts, 4727, 12)) + +export const exp4728 = "test"; +>exp4728 : Symbol(exp4728, Decl(manyConstExports.ts, 4728, 12)) + +export const exp4729 = "test"; +>exp4729 : Symbol(exp4729, Decl(manyConstExports.ts, 4729, 12)) + +export const exp4730 = "test"; +>exp4730 : Symbol(exp4730, Decl(manyConstExports.ts, 4730, 12)) + +export const exp4731 = "test"; +>exp4731 : Symbol(exp4731, Decl(manyConstExports.ts, 4731, 12)) + +export const exp4732 = "test"; +>exp4732 : Symbol(exp4732, Decl(manyConstExports.ts, 4732, 12)) + +export const exp4733 = "test"; +>exp4733 : Symbol(exp4733, Decl(manyConstExports.ts, 4733, 12)) + +export const exp4734 = "test"; +>exp4734 : Symbol(exp4734, Decl(manyConstExports.ts, 4734, 12)) + +export const exp4735 = "test"; +>exp4735 : Symbol(exp4735, Decl(manyConstExports.ts, 4735, 12)) + +export const exp4736 = "test"; +>exp4736 : Symbol(exp4736, Decl(manyConstExports.ts, 4736, 12)) + +export const exp4737 = "test"; +>exp4737 : Symbol(exp4737, Decl(manyConstExports.ts, 4737, 12)) + +export const exp4738 = "test"; +>exp4738 : Symbol(exp4738, Decl(manyConstExports.ts, 4738, 12)) + +export const exp4739 = "test"; +>exp4739 : Symbol(exp4739, Decl(manyConstExports.ts, 4739, 12)) + +export const exp4740 = "test"; +>exp4740 : Symbol(exp4740, Decl(manyConstExports.ts, 4740, 12)) + +export const exp4741 = "test"; +>exp4741 : Symbol(exp4741, Decl(manyConstExports.ts, 4741, 12)) + +export const exp4742 = "test"; +>exp4742 : Symbol(exp4742, Decl(manyConstExports.ts, 4742, 12)) + +export const exp4743 = "test"; +>exp4743 : Symbol(exp4743, Decl(manyConstExports.ts, 4743, 12)) + +export const exp4744 = "test"; +>exp4744 : Symbol(exp4744, Decl(manyConstExports.ts, 4744, 12)) + +export const exp4745 = "test"; +>exp4745 : Symbol(exp4745, Decl(manyConstExports.ts, 4745, 12)) + +export const exp4746 = "test"; +>exp4746 : Symbol(exp4746, Decl(manyConstExports.ts, 4746, 12)) + +export const exp4747 = "test"; +>exp4747 : Symbol(exp4747, Decl(manyConstExports.ts, 4747, 12)) + +export const exp4748 = "test"; +>exp4748 : Symbol(exp4748, Decl(manyConstExports.ts, 4748, 12)) + +export const exp4749 = "test"; +>exp4749 : Symbol(exp4749, Decl(manyConstExports.ts, 4749, 12)) + +export const exp4750 = "test"; +>exp4750 : Symbol(exp4750, Decl(manyConstExports.ts, 4750, 12)) + +export const exp4751 = "test"; +>exp4751 : Symbol(exp4751, Decl(manyConstExports.ts, 4751, 12)) + +export const exp4752 = "test"; +>exp4752 : Symbol(exp4752, Decl(manyConstExports.ts, 4752, 12)) + +export const exp4753 = "test"; +>exp4753 : Symbol(exp4753, Decl(manyConstExports.ts, 4753, 12)) + +export const exp4754 = "test"; +>exp4754 : Symbol(exp4754, Decl(manyConstExports.ts, 4754, 12)) + +export const exp4755 = "test"; +>exp4755 : Symbol(exp4755, Decl(manyConstExports.ts, 4755, 12)) + +export const exp4756 = "test"; +>exp4756 : Symbol(exp4756, Decl(manyConstExports.ts, 4756, 12)) + +export const exp4757 = "test"; +>exp4757 : Symbol(exp4757, Decl(manyConstExports.ts, 4757, 12)) + +export const exp4758 = "test"; +>exp4758 : Symbol(exp4758, Decl(manyConstExports.ts, 4758, 12)) + +export const exp4759 = "test"; +>exp4759 : Symbol(exp4759, Decl(manyConstExports.ts, 4759, 12)) + +export const exp4760 = "test"; +>exp4760 : Symbol(exp4760, Decl(manyConstExports.ts, 4760, 12)) + +export const exp4761 = "test"; +>exp4761 : Symbol(exp4761, Decl(manyConstExports.ts, 4761, 12)) + +export const exp4762 = "test"; +>exp4762 : Symbol(exp4762, Decl(manyConstExports.ts, 4762, 12)) + +export const exp4763 = "test"; +>exp4763 : Symbol(exp4763, Decl(manyConstExports.ts, 4763, 12)) + +export const exp4764 = "test"; +>exp4764 : Symbol(exp4764, Decl(manyConstExports.ts, 4764, 12)) + +export const exp4765 = "test"; +>exp4765 : Symbol(exp4765, Decl(manyConstExports.ts, 4765, 12)) + +export const exp4766 = "test"; +>exp4766 : Symbol(exp4766, Decl(manyConstExports.ts, 4766, 12)) + +export const exp4767 = "test"; +>exp4767 : Symbol(exp4767, Decl(manyConstExports.ts, 4767, 12)) + +export const exp4768 = "test"; +>exp4768 : Symbol(exp4768, Decl(manyConstExports.ts, 4768, 12)) + +export const exp4769 = "test"; +>exp4769 : Symbol(exp4769, Decl(manyConstExports.ts, 4769, 12)) + +export const exp4770 = "test"; +>exp4770 : Symbol(exp4770, Decl(manyConstExports.ts, 4770, 12)) + +export const exp4771 = "test"; +>exp4771 : Symbol(exp4771, Decl(manyConstExports.ts, 4771, 12)) + +export const exp4772 = "test"; +>exp4772 : Symbol(exp4772, Decl(manyConstExports.ts, 4772, 12)) + +export const exp4773 = "test"; +>exp4773 : Symbol(exp4773, Decl(manyConstExports.ts, 4773, 12)) + +export const exp4774 = "test"; +>exp4774 : Symbol(exp4774, Decl(manyConstExports.ts, 4774, 12)) + +export const exp4775 = "test"; +>exp4775 : Symbol(exp4775, Decl(manyConstExports.ts, 4775, 12)) + +export const exp4776 = "test"; +>exp4776 : Symbol(exp4776, Decl(manyConstExports.ts, 4776, 12)) + +export const exp4777 = "test"; +>exp4777 : Symbol(exp4777, Decl(manyConstExports.ts, 4777, 12)) + +export const exp4778 = "test"; +>exp4778 : Symbol(exp4778, Decl(manyConstExports.ts, 4778, 12)) + +export const exp4779 = "test"; +>exp4779 : Symbol(exp4779, Decl(manyConstExports.ts, 4779, 12)) + +export const exp4780 = "test"; +>exp4780 : Symbol(exp4780, Decl(manyConstExports.ts, 4780, 12)) + +export const exp4781 = "test"; +>exp4781 : Symbol(exp4781, Decl(manyConstExports.ts, 4781, 12)) + +export const exp4782 = "test"; +>exp4782 : Symbol(exp4782, Decl(manyConstExports.ts, 4782, 12)) + +export const exp4783 = "test"; +>exp4783 : Symbol(exp4783, Decl(manyConstExports.ts, 4783, 12)) + +export const exp4784 = "test"; +>exp4784 : Symbol(exp4784, Decl(manyConstExports.ts, 4784, 12)) + +export const exp4785 = "test"; +>exp4785 : Symbol(exp4785, Decl(manyConstExports.ts, 4785, 12)) + +export const exp4786 = "test"; +>exp4786 : Symbol(exp4786, Decl(manyConstExports.ts, 4786, 12)) + +export const exp4787 = "test"; +>exp4787 : Symbol(exp4787, Decl(manyConstExports.ts, 4787, 12)) + +export const exp4788 = "test"; +>exp4788 : Symbol(exp4788, Decl(manyConstExports.ts, 4788, 12)) + +export const exp4789 = "test"; +>exp4789 : Symbol(exp4789, Decl(manyConstExports.ts, 4789, 12)) + +export const exp4790 = "test"; +>exp4790 : Symbol(exp4790, Decl(manyConstExports.ts, 4790, 12)) + +export const exp4791 = "test"; +>exp4791 : Symbol(exp4791, Decl(manyConstExports.ts, 4791, 12)) + +export const exp4792 = "test"; +>exp4792 : Symbol(exp4792, Decl(manyConstExports.ts, 4792, 12)) + +export const exp4793 = "test"; +>exp4793 : Symbol(exp4793, Decl(manyConstExports.ts, 4793, 12)) + +export const exp4794 = "test"; +>exp4794 : Symbol(exp4794, Decl(manyConstExports.ts, 4794, 12)) + +export const exp4795 = "test"; +>exp4795 : Symbol(exp4795, Decl(manyConstExports.ts, 4795, 12)) + +export const exp4796 = "test"; +>exp4796 : Symbol(exp4796, Decl(manyConstExports.ts, 4796, 12)) + +export const exp4797 = "test"; +>exp4797 : Symbol(exp4797, Decl(manyConstExports.ts, 4797, 12)) + +export const exp4798 = "test"; +>exp4798 : Symbol(exp4798, Decl(manyConstExports.ts, 4798, 12)) + +export const exp4799 = "test"; +>exp4799 : Symbol(exp4799, Decl(manyConstExports.ts, 4799, 12)) + +export const exp4800 = "test"; +>exp4800 : Symbol(exp4800, Decl(manyConstExports.ts, 4800, 12)) + +export const exp4801 = "test"; +>exp4801 : Symbol(exp4801, Decl(manyConstExports.ts, 4801, 12)) + +export const exp4802 = "test"; +>exp4802 : Symbol(exp4802, Decl(manyConstExports.ts, 4802, 12)) + +export const exp4803 = "test"; +>exp4803 : Symbol(exp4803, Decl(manyConstExports.ts, 4803, 12)) + +export const exp4804 = "test"; +>exp4804 : Symbol(exp4804, Decl(manyConstExports.ts, 4804, 12)) + +export const exp4805 = "test"; +>exp4805 : Symbol(exp4805, Decl(manyConstExports.ts, 4805, 12)) + +export const exp4806 = "test"; +>exp4806 : Symbol(exp4806, Decl(manyConstExports.ts, 4806, 12)) + +export const exp4807 = "test"; +>exp4807 : Symbol(exp4807, Decl(manyConstExports.ts, 4807, 12)) + +export const exp4808 = "test"; +>exp4808 : Symbol(exp4808, Decl(manyConstExports.ts, 4808, 12)) + +export const exp4809 = "test"; +>exp4809 : Symbol(exp4809, Decl(manyConstExports.ts, 4809, 12)) + +export const exp4810 = "test"; +>exp4810 : Symbol(exp4810, Decl(manyConstExports.ts, 4810, 12)) + +export const exp4811 = "test"; +>exp4811 : Symbol(exp4811, Decl(manyConstExports.ts, 4811, 12)) + +export const exp4812 = "test"; +>exp4812 : Symbol(exp4812, Decl(manyConstExports.ts, 4812, 12)) + +export const exp4813 = "test"; +>exp4813 : Symbol(exp4813, Decl(manyConstExports.ts, 4813, 12)) + +export const exp4814 = "test"; +>exp4814 : Symbol(exp4814, Decl(manyConstExports.ts, 4814, 12)) + +export const exp4815 = "test"; +>exp4815 : Symbol(exp4815, Decl(manyConstExports.ts, 4815, 12)) + +export const exp4816 = "test"; +>exp4816 : Symbol(exp4816, Decl(manyConstExports.ts, 4816, 12)) + +export const exp4817 = "test"; +>exp4817 : Symbol(exp4817, Decl(manyConstExports.ts, 4817, 12)) + +export const exp4818 = "test"; +>exp4818 : Symbol(exp4818, Decl(manyConstExports.ts, 4818, 12)) + +export const exp4819 = "test"; +>exp4819 : Symbol(exp4819, Decl(manyConstExports.ts, 4819, 12)) + +export const exp4820 = "test"; +>exp4820 : Symbol(exp4820, Decl(manyConstExports.ts, 4820, 12)) + +export const exp4821 = "test"; +>exp4821 : Symbol(exp4821, Decl(manyConstExports.ts, 4821, 12)) + +export const exp4822 = "test"; +>exp4822 : Symbol(exp4822, Decl(manyConstExports.ts, 4822, 12)) + +export const exp4823 = "test"; +>exp4823 : Symbol(exp4823, Decl(manyConstExports.ts, 4823, 12)) + +export const exp4824 = "test"; +>exp4824 : Symbol(exp4824, Decl(manyConstExports.ts, 4824, 12)) + +export const exp4825 = "test"; +>exp4825 : Symbol(exp4825, Decl(manyConstExports.ts, 4825, 12)) + +export const exp4826 = "test"; +>exp4826 : Symbol(exp4826, Decl(manyConstExports.ts, 4826, 12)) + +export const exp4827 = "test"; +>exp4827 : Symbol(exp4827, Decl(manyConstExports.ts, 4827, 12)) + +export const exp4828 = "test"; +>exp4828 : Symbol(exp4828, Decl(manyConstExports.ts, 4828, 12)) + +export const exp4829 = "test"; +>exp4829 : Symbol(exp4829, Decl(manyConstExports.ts, 4829, 12)) + +export const exp4830 = "test"; +>exp4830 : Symbol(exp4830, Decl(manyConstExports.ts, 4830, 12)) + +export const exp4831 = "test"; +>exp4831 : Symbol(exp4831, Decl(manyConstExports.ts, 4831, 12)) + +export const exp4832 = "test"; +>exp4832 : Symbol(exp4832, Decl(manyConstExports.ts, 4832, 12)) + +export const exp4833 = "test"; +>exp4833 : Symbol(exp4833, Decl(manyConstExports.ts, 4833, 12)) + +export const exp4834 = "test"; +>exp4834 : Symbol(exp4834, Decl(manyConstExports.ts, 4834, 12)) + +export const exp4835 = "test"; +>exp4835 : Symbol(exp4835, Decl(manyConstExports.ts, 4835, 12)) + +export const exp4836 = "test"; +>exp4836 : Symbol(exp4836, Decl(manyConstExports.ts, 4836, 12)) + +export const exp4837 = "test"; +>exp4837 : Symbol(exp4837, Decl(manyConstExports.ts, 4837, 12)) + +export const exp4838 = "test"; +>exp4838 : Symbol(exp4838, Decl(manyConstExports.ts, 4838, 12)) + +export const exp4839 = "test"; +>exp4839 : Symbol(exp4839, Decl(manyConstExports.ts, 4839, 12)) + +export const exp4840 = "test"; +>exp4840 : Symbol(exp4840, Decl(manyConstExports.ts, 4840, 12)) + +export const exp4841 = "test"; +>exp4841 : Symbol(exp4841, Decl(manyConstExports.ts, 4841, 12)) + +export const exp4842 = "test"; +>exp4842 : Symbol(exp4842, Decl(manyConstExports.ts, 4842, 12)) + +export const exp4843 = "test"; +>exp4843 : Symbol(exp4843, Decl(manyConstExports.ts, 4843, 12)) + +export const exp4844 = "test"; +>exp4844 : Symbol(exp4844, Decl(manyConstExports.ts, 4844, 12)) + +export const exp4845 = "test"; +>exp4845 : Symbol(exp4845, Decl(manyConstExports.ts, 4845, 12)) + +export const exp4846 = "test"; +>exp4846 : Symbol(exp4846, Decl(manyConstExports.ts, 4846, 12)) + +export const exp4847 = "test"; +>exp4847 : Symbol(exp4847, Decl(manyConstExports.ts, 4847, 12)) + +export const exp4848 = "test"; +>exp4848 : Symbol(exp4848, Decl(manyConstExports.ts, 4848, 12)) + +export const exp4849 = "test"; +>exp4849 : Symbol(exp4849, Decl(manyConstExports.ts, 4849, 12)) + +export const exp4850 = "test"; +>exp4850 : Symbol(exp4850, Decl(manyConstExports.ts, 4850, 12)) + +export const exp4851 = "test"; +>exp4851 : Symbol(exp4851, Decl(manyConstExports.ts, 4851, 12)) + +export const exp4852 = "test"; +>exp4852 : Symbol(exp4852, Decl(manyConstExports.ts, 4852, 12)) + +export const exp4853 = "test"; +>exp4853 : Symbol(exp4853, Decl(manyConstExports.ts, 4853, 12)) + +export const exp4854 = "test"; +>exp4854 : Symbol(exp4854, Decl(manyConstExports.ts, 4854, 12)) + +export const exp4855 = "test"; +>exp4855 : Symbol(exp4855, Decl(manyConstExports.ts, 4855, 12)) + +export const exp4856 = "test"; +>exp4856 : Symbol(exp4856, Decl(manyConstExports.ts, 4856, 12)) + +export const exp4857 = "test"; +>exp4857 : Symbol(exp4857, Decl(manyConstExports.ts, 4857, 12)) + +export const exp4858 = "test"; +>exp4858 : Symbol(exp4858, Decl(manyConstExports.ts, 4858, 12)) + +export const exp4859 = "test"; +>exp4859 : Symbol(exp4859, Decl(manyConstExports.ts, 4859, 12)) + +export const exp4860 = "test"; +>exp4860 : Symbol(exp4860, Decl(manyConstExports.ts, 4860, 12)) + +export const exp4861 = "test"; +>exp4861 : Symbol(exp4861, Decl(manyConstExports.ts, 4861, 12)) + +export const exp4862 = "test"; +>exp4862 : Symbol(exp4862, Decl(manyConstExports.ts, 4862, 12)) + +export const exp4863 = "test"; +>exp4863 : Symbol(exp4863, Decl(manyConstExports.ts, 4863, 12)) + +export const exp4864 = "test"; +>exp4864 : Symbol(exp4864, Decl(manyConstExports.ts, 4864, 12)) + +export const exp4865 = "test"; +>exp4865 : Symbol(exp4865, Decl(manyConstExports.ts, 4865, 12)) + +export const exp4866 = "test"; +>exp4866 : Symbol(exp4866, Decl(manyConstExports.ts, 4866, 12)) + +export const exp4867 = "test"; +>exp4867 : Symbol(exp4867, Decl(manyConstExports.ts, 4867, 12)) + +export const exp4868 = "test"; +>exp4868 : Symbol(exp4868, Decl(manyConstExports.ts, 4868, 12)) + +export const exp4869 = "test"; +>exp4869 : Symbol(exp4869, Decl(manyConstExports.ts, 4869, 12)) + +export const exp4870 = "test"; +>exp4870 : Symbol(exp4870, Decl(manyConstExports.ts, 4870, 12)) + +export const exp4871 = "test"; +>exp4871 : Symbol(exp4871, Decl(manyConstExports.ts, 4871, 12)) + +export const exp4872 = "test"; +>exp4872 : Symbol(exp4872, Decl(manyConstExports.ts, 4872, 12)) + +export const exp4873 = "test"; +>exp4873 : Symbol(exp4873, Decl(manyConstExports.ts, 4873, 12)) + +export const exp4874 = "test"; +>exp4874 : Symbol(exp4874, Decl(manyConstExports.ts, 4874, 12)) + +export const exp4875 = "test"; +>exp4875 : Symbol(exp4875, Decl(manyConstExports.ts, 4875, 12)) + +export const exp4876 = "test"; +>exp4876 : Symbol(exp4876, Decl(manyConstExports.ts, 4876, 12)) + +export const exp4877 = "test"; +>exp4877 : Symbol(exp4877, Decl(manyConstExports.ts, 4877, 12)) + +export const exp4878 = "test"; +>exp4878 : Symbol(exp4878, Decl(manyConstExports.ts, 4878, 12)) + +export const exp4879 = "test"; +>exp4879 : Symbol(exp4879, Decl(manyConstExports.ts, 4879, 12)) + +export const exp4880 = "test"; +>exp4880 : Symbol(exp4880, Decl(manyConstExports.ts, 4880, 12)) + +export const exp4881 = "test"; +>exp4881 : Symbol(exp4881, Decl(manyConstExports.ts, 4881, 12)) + +export const exp4882 = "test"; +>exp4882 : Symbol(exp4882, Decl(manyConstExports.ts, 4882, 12)) + +export const exp4883 = "test"; +>exp4883 : Symbol(exp4883, Decl(manyConstExports.ts, 4883, 12)) + +export const exp4884 = "test"; +>exp4884 : Symbol(exp4884, Decl(manyConstExports.ts, 4884, 12)) + +export const exp4885 = "test"; +>exp4885 : Symbol(exp4885, Decl(manyConstExports.ts, 4885, 12)) + +export const exp4886 = "test"; +>exp4886 : Symbol(exp4886, Decl(manyConstExports.ts, 4886, 12)) + +export const exp4887 = "test"; +>exp4887 : Symbol(exp4887, Decl(manyConstExports.ts, 4887, 12)) + +export const exp4888 = "test"; +>exp4888 : Symbol(exp4888, Decl(manyConstExports.ts, 4888, 12)) + +export const exp4889 = "test"; +>exp4889 : Symbol(exp4889, Decl(manyConstExports.ts, 4889, 12)) + +export const exp4890 = "test"; +>exp4890 : Symbol(exp4890, Decl(manyConstExports.ts, 4890, 12)) + +export const exp4891 = "test"; +>exp4891 : Symbol(exp4891, Decl(manyConstExports.ts, 4891, 12)) + +export const exp4892 = "test"; +>exp4892 : Symbol(exp4892, Decl(manyConstExports.ts, 4892, 12)) + +export const exp4893 = "test"; +>exp4893 : Symbol(exp4893, Decl(manyConstExports.ts, 4893, 12)) + +export const exp4894 = "test"; +>exp4894 : Symbol(exp4894, Decl(manyConstExports.ts, 4894, 12)) + +export const exp4895 = "test"; +>exp4895 : Symbol(exp4895, Decl(manyConstExports.ts, 4895, 12)) + +export const exp4896 = "test"; +>exp4896 : Symbol(exp4896, Decl(manyConstExports.ts, 4896, 12)) + +export const exp4897 = "test"; +>exp4897 : Symbol(exp4897, Decl(manyConstExports.ts, 4897, 12)) + +export const exp4898 = "test"; +>exp4898 : Symbol(exp4898, Decl(manyConstExports.ts, 4898, 12)) + +export const exp4899 = "test"; +>exp4899 : Symbol(exp4899, Decl(manyConstExports.ts, 4899, 12)) + +export const exp4900 = "test"; +>exp4900 : Symbol(exp4900, Decl(manyConstExports.ts, 4900, 12)) + +export const exp4901 = "test"; +>exp4901 : Symbol(exp4901, Decl(manyConstExports.ts, 4901, 12)) + +export const exp4902 = "test"; +>exp4902 : Symbol(exp4902, Decl(manyConstExports.ts, 4902, 12)) + +export const exp4903 = "test"; +>exp4903 : Symbol(exp4903, Decl(manyConstExports.ts, 4903, 12)) + +export const exp4904 = "test"; +>exp4904 : Symbol(exp4904, Decl(manyConstExports.ts, 4904, 12)) + +export const exp4905 = "test"; +>exp4905 : Symbol(exp4905, Decl(manyConstExports.ts, 4905, 12)) + +export const exp4906 = "test"; +>exp4906 : Symbol(exp4906, Decl(manyConstExports.ts, 4906, 12)) + +export const exp4907 = "test"; +>exp4907 : Symbol(exp4907, Decl(manyConstExports.ts, 4907, 12)) + +export const exp4908 = "test"; +>exp4908 : Symbol(exp4908, Decl(manyConstExports.ts, 4908, 12)) + +export const exp4909 = "test"; +>exp4909 : Symbol(exp4909, Decl(manyConstExports.ts, 4909, 12)) + +export const exp4910 = "test"; +>exp4910 : Symbol(exp4910, Decl(manyConstExports.ts, 4910, 12)) + +export const exp4911 = "test"; +>exp4911 : Symbol(exp4911, Decl(manyConstExports.ts, 4911, 12)) + +export const exp4912 = "test"; +>exp4912 : Symbol(exp4912, Decl(manyConstExports.ts, 4912, 12)) + +export const exp4913 = "test"; +>exp4913 : Symbol(exp4913, Decl(manyConstExports.ts, 4913, 12)) + +export const exp4914 = "test"; +>exp4914 : Symbol(exp4914, Decl(manyConstExports.ts, 4914, 12)) + +export const exp4915 = "test"; +>exp4915 : Symbol(exp4915, Decl(manyConstExports.ts, 4915, 12)) + +export const exp4916 = "test"; +>exp4916 : Symbol(exp4916, Decl(manyConstExports.ts, 4916, 12)) + +export const exp4917 = "test"; +>exp4917 : Symbol(exp4917, Decl(manyConstExports.ts, 4917, 12)) + +export const exp4918 = "test"; +>exp4918 : Symbol(exp4918, Decl(manyConstExports.ts, 4918, 12)) + +export const exp4919 = "test"; +>exp4919 : Symbol(exp4919, Decl(manyConstExports.ts, 4919, 12)) + +export const exp4920 = "test"; +>exp4920 : Symbol(exp4920, Decl(manyConstExports.ts, 4920, 12)) + +export const exp4921 = "test"; +>exp4921 : Symbol(exp4921, Decl(manyConstExports.ts, 4921, 12)) + +export const exp4922 = "test"; +>exp4922 : Symbol(exp4922, Decl(manyConstExports.ts, 4922, 12)) + +export const exp4923 = "test"; +>exp4923 : Symbol(exp4923, Decl(manyConstExports.ts, 4923, 12)) + +export const exp4924 = "test"; +>exp4924 : Symbol(exp4924, Decl(manyConstExports.ts, 4924, 12)) + +export const exp4925 = "test"; +>exp4925 : Symbol(exp4925, Decl(manyConstExports.ts, 4925, 12)) + +export const exp4926 = "test"; +>exp4926 : Symbol(exp4926, Decl(manyConstExports.ts, 4926, 12)) + +export const exp4927 = "test"; +>exp4927 : Symbol(exp4927, Decl(manyConstExports.ts, 4927, 12)) + +export const exp4928 = "test"; +>exp4928 : Symbol(exp4928, Decl(manyConstExports.ts, 4928, 12)) + +export const exp4929 = "test"; +>exp4929 : Symbol(exp4929, Decl(manyConstExports.ts, 4929, 12)) + +export const exp4930 = "test"; +>exp4930 : Symbol(exp4930, Decl(manyConstExports.ts, 4930, 12)) + +export const exp4931 = "test"; +>exp4931 : Symbol(exp4931, Decl(manyConstExports.ts, 4931, 12)) + +export const exp4932 = "test"; +>exp4932 : Symbol(exp4932, Decl(manyConstExports.ts, 4932, 12)) + +export const exp4933 = "test"; +>exp4933 : Symbol(exp4933, Decl(manyConstExports.ts, 4933, 12)) + +export const exp4934 = "test"; +>exp4934 : Symbol(exp4934, Decl(manyConstExports.ts, 4934, 12)) + +export const exp4935 = "test"; +>exp4935 : Symbol(exp4935, Decl(manyConstExports.ts, 4935, 12)) + +export const exp4936 = "test"; +>exp4936 : Symbol(exp4936, Decl(manyConstExports.ts, 4936, 12)) + +export const exp4937 = "test"; +>exp4937 : Symbol(exp4937, Decl(manyConstExports.ts, 4937, 12)) + +export const exp4938 = "test"; +>exp4938 : Symbol(exp4938, Decl(manyConstExports.ts, 4938, 12)) + +export const exp4939 = "test"; +>exp4939 : Symbol(exp4939, Decl(manyConstExports.ts, 4939, 12)) + +export const exp4940 = "test"; +>exp4940 : Symbol(exp4940, Decl(manyConstExports.ts, 4940, 12)) + +export const exp4941 = "test"; +>exp4941 : Symbol(exp4941, Decl(manyConstExports.ts, 4941, 12)) + +export const exp4942 = "test"; +>exp4942 : Symbol(exp4942, Decl(manyConstExports.ts, 4942, 12)) + +export const exp4943 = "test"; +>exp4943 : Symbol(exp4943, Decl(manyConstExports.ts, 4943, 12)) + +export const exp4944 = "test"; +>exp4944 : Symbol(exp4944, Decl(manyConstExports.ts, 4944, 12)) + +export const exp4945 = "test"; +>exp4945 : Symbol(exp4945, Decl(manyConstExports.ts, 4945, 12)) + +export const exp4946 = "test"; +>exp4946 : Symbol(exp4946, Decl(manyConstExports.ts, 4946, 12)) + +export const exp4947 = "test"; +>exp4947 : Symbol(exp4947, Decl(manyConstExports.ts, 4947, 12)) + +export const exp4948 = "test"; +>exp4948 : Symbol(exp4948, Decl(manyConstExports.ts, 4948, 12)) + +export const exp4949 = "test"; +>exp4949 : Symbol(exp4949, Decl(manyConstExports.ts, 4949, 12)) + +export const exp4950 = "test"; +>exp4950 : Symbol(exp4950, Decl(manyConstExports.ts, 4950, 12)) + +export const exp4951 = "test"; +>exp4951 : Symbol(exp4951, Decl(manyConstExports.ts, 4951, 12)) + +export const exp4952 = "test"; +>exp4952 : Symbol(exp4952, Decl(manyConstExports.ts, 4952, 12)) + +export const exp4953 = "test"; +>exp4953 : Symbol(exp4953, Decl(manyConstExports.ts, 4953, 12)) + +export const exp4954 = "test"; +>exp4954 : Symbol(exp4954, Decl(manyConstExports.ts, 4954, 12)) + +export const exp4955 = "test"; +>exp4955 : Symbol(exp4955, Decl(manyConstExports.ts, 4955, 12)) + +export const exp4956 = "test"; +>exp4956 : Symbol(exp4956, Decl(manyConstExports.ts, 4956, 12)) + +export const exp4957 = "test"; +>exp4957 : Symbol(exp4957, Decl(manyConstExports.ts, 4957, 12)) + +export const exp4958 = "test"; +>exp4958 : Symbol(exp4958, Decl(manyConstExports.ts, 4958, 12)) + +export const exp4959 = "test"; +>exp4959 : Symbol(exp4959, Decl(manyConstExports.ts, 4959, 12)) + +export const exp4960 = "test"; +>exp4960 : Symbol(exp4960, Decl(manyConstExports.ts, 4960, 12)) + +export const exp4961 = "test"; +>exp4961 : Symbol(exp4961, Decl(manyConstExports.ts, 4961, 12)) + +export const exp4962 = "test"; +>exp4962 : Symbol(exp4962, Decl(manyConstExports.ts, 4962, 12)) + +export const exp4963 = "test"; +>exp4963 : Symbol(exp4963, Decl(manyConstExports.ts, 4963, 12)) + +export const exp4964 = "test"; +>exp4964 : Symbol(exp4964, Decl(manyConstExports.ts, 4964, 12)) + +export const exp4965 = "test"; +>exp4965 : Symbol(exp4965, Decl(manyConstExports.ts, 4965, 12)) + +export const exp4966 = "test"; +>exp4966 : Symbol(exp4966, Decl(manyConstExports.ts, 4966, 12)) + +export const exp4967 = "test"; +>exp4967 : Symbol(exp4967, Decl(manyConstExports.ts, 4967, 12)) + +export const exp4968 = "test"; +>exp4968 : Symbol(exp4968, Decl(manyConstExports.ts, 4968, 12)) + +export const exp4969 = "test"; +>exp4969 : Symbol(exp4969, Decl(manyConstExports.ts, 4969, 12)) + +export const exp4970 = "test"; +>exp4970 : Symbol(exp4970, Decl(manyConstExports.ts, 4970, 12)) + +export const exp4971 = "test"; +>exp4971 : Symbol(exp4971, Decl(manyConstExports.ts, 4971, 12)) + +export const exp4972 = "test"; +>exp4972 : Symbol(exp4972, Decl(manyConstExports.ts, 4972, 12)) + +export const exp4973 = "test"; +>exp4973 : Symbol(exp4973, Decl(manyConstExports.ts, 4973, 12)) + +export const exp4974 = "test"; +>exp4974 : Symbol(exp4974, Decl(manyConstExports.ts, 4974, 12)) + +export const exp4975 = "test"; +>exp4975 : Symbol(exp4975, Decl(manyConstExports.ts, 4975, 12)) + +export const exp4976 = "test"; +>exp4976 : Symbol(exp4976, Decl(manyConstExports.ts, 4976, 12)) + +export const exp4977 = "test"; +>exp4977 : Symbol(exp4977, Decl(manyConstExports.ts, 4977, 12)) + +export const exp4978 = "test"; +>exp4978 : Symbol(exp4978, Decl(manyConstExports.ts, 4978, 12)) + +export const exp4979 = "test"; +>exp4979 : Symbol(exp4979, Decl(manyConstExports.ts, 4979, 12)) + +export const exp4980 = "test"; +>exp4980 : Symbol(exp4980, Decl(manyConstExports.ts, 4980, 12)) + +export const exp4981 = "test"; +>exp4981 : Symbol(exp4981, Decl(manyConstExports.ts, 4981, 12)) + +export const exp4982 = "test"; +>exp4982 : Symbol(exp4982, Decl(manyConstExports.ts, 4982, 12)) + +export const exp4983 = "test"; +>exp4983 : Symbol(exp4983, Decl(manyConstExports.ts, 4983, 12)) + +export const exp4984 = "test"; +>exp4984 : Symbol(exp4984, Decl(manyConstExports.ts, 4984, 12)) + +export const exp4985 = "test"; +>exp4985 : Symbol(exp4985, Decl(manyConstExports.ts, 4985, 12)) + +export const exp4986 = "test"; +>exp4986 : Symbol(exp4986, Decl(manyConstExports.ts, 4986, 12)) + +export const exp4987 = "test"; +>exp4987 : Symbol(exp4987, Decl(manyConstExports.ts, 4987, 12)) + +export const exp4988 = "test"; +>exp4988 : Symbol(exp4988, Decl(manyConstExports.ts, 4988, 12)) + +export const exp4989 = "test"; +>exp4989 : Symbol(exp4989, Decl(manyConstExports.ts, 4989, 12)) + +export const exp4990 = "test"; +>exp4990 : Symbol(exp4990, Decl(manyConstExports.ts, 4990, 12)) + +export const exp4991 = "test"; +>exp4991 : Symbol(exp4991, Decl(manyConstExports.ts, 4991, 12)) + +export const exp4992 = "test"; +>exp4992 : Symbol(exp4992, Decl(manyConstExports.ts, 4992, 12)) + +export const exp4993 = "test"; +>exp4993 : Symbol(exp4993, Decl(manyConstExports.ts, 4993, 12)) + +export const exp4994 = "test"; +>exp4994 : Symbol(exp4994, Decl(manyConstExports.ts, 4994, 12)) + +export const exp4995 = "test"; +>exp4995 : Symbol(exp4995, Decl(manyConstExports.ts, 4995, 12)) + +export const exp4996 = "test"; +>exp4996 : Symbol(exp4996, Decl(manyConstExports.ts, 4996, 12)) + +export const exp4997 = "test"; +>exp4997 : Symbol(exp4997, Decl(manyConstExports.ts, 4997, 12)) + +export const exp4998 = "test"; +>exp4998 : Symbol(exp4998, Decl(manyConstExports.ts, 4998, 12)) + +export const exp4999 = "test"; +>exp4999 : Symbol(exp4999, Decl(manyConstExports.ts, 4999, 12)) + diff --git a/tests/baselines/reference/manyConstExports(target=es5).types b/tests/baselines/reference/manyConstExports(target=es5).types new file mode 100644 index 0000000000000..7b0626a71030b --- /dev/null +++ b/tests/baselines/reference/manyConstExports(target=es5).types @@ -0,0 +1,30003 @@ +//// [tests/cases/compiler/manyConstExports.ts] //// + +=== manyConstExports.ts === +export const exp0 = "test"; +>exp0 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1 = "test"; +>exp1 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2 = "test"; +>exp2 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3 = "test"; +>exp3 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4 = "test"; +>exp4 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp5 = "test"; +>exp5 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp6 = "test"; +>exp6 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp7 = "test"; +>exp7 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp8 = "test"; +>exp8 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp9 = "test"; +>exp9 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp10 = "test"; +>exp10 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp11 = "test"; +>exp11 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp12 = "test"; +>exp12 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp13 = "test"; +>exp13 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp14 = "test"; +>exp14 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp15 = "test"; +>exp15 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp16 = "test"; +>exp16 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp17 = "test"; +>exp17 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp18 = "test"; +>exp18 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp19 = "test"; +>exp19 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp20 = "test"; +>exp20 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp21 = "test"; +>exp21 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp22 = "test"; +>exp22 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp23 = "test"; +>exp23 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp24 = "test"; +>exp24 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp25 = "test"; +>exp25 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp26 = "test"; +>exp26 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp27 = "test"; +>exp27 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp28 = "test"; +>exp28 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp29 = "test"; +>exp29 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp30 = "test"; +>exp30 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp31 = "test"; +>exp31 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp32 = "test"; +>exp32 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp33 = "test"; +>exp33 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp34 = "test"; +>exp34 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp35 = "test"; +>exp35 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp36 = "test"; +>exp36 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp37 = "test"; +>exp37 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp38 = "test"; +>exp38 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp39 = "test"; +>exp39 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp40 = "test"; +>exp40 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp41 = "test"; +>exp41 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp42 = "test"; +>exp42 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp43 = "test"; +>exp43 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp44 = "test"; +>exp44 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp45 = "test"; +>exp45 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp46 = "test"; +>exp46 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp47 = "test"; +>exp47 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp48 = "test"; +>exp48 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp49 = "test"; +>exp49 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp50 = "test"; +>exp50 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp51 = "test"; +>exp51 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp52 = "test"; +>exp52 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp53 = "test"; +>exp53 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp54 = "test"; +>exp54 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp55 = "test"; +>exp55 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp56 = "test"; +>exp56 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp57 = "test"; +>exp57 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp58 = "test"; +>exp58 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp59 = "test"; +>exp59 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp60 = "test"; +>exp60 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp61 = "test"; +>exp61 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp62 = "test"; +>exp62 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp63 = "test"; +>exp63 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp64 = "test"; +>exp64 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp65 = "test"; +>exp65 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp66 = "test"; +>exp66 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp67 = "test"; +>exp67 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp68 = "test"; +>exp68 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp69 = "test"; +>exp69 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp70 = "test"; +>exp70 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp71 = "test"; +>exp71 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp72 = "test"; +>exp72 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp73 = "test"; +>exp73 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp74 = "test"; +>exp74 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp75 = "test"; +>exp75 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp76 = "test"; +>exp76 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp77 = "test"; +>exp77 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp78 = "test"; +>exp78 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp79 = "test"; +>exp79 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp80 = "test"; +>exp80 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp81 = "test"; +>exp81 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp82 = "test"; +>exp82 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp83 = "test"; +>exp83 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp84 = "test"; +>exp84 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp85 = "test"; +>exp85 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp86 = "test"; +>exp86 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp87 = "test"; +>exp87 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp88 = "test"; +>exp88 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp89 = "test"; +>exp89 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp90 = "test"; +>exp90 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp91 = "test"; +>exp91 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp92 = "test"; +>exp92 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp93 = "test"; +>exp93 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp94 = "test"; +>exp94 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp95 = "test"; +>exp95 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp96 = "test"; +>exp96 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp97 = "test"; +>exp97 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp98 = "test"; +>exp98 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp99 = "test"; +>exp99 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp100 = "test"; +>exp100 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp101 = "test"; +>exp101 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp102 = "test"; +>exp102 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp103 = "test"; +>exp103 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp104 = "test"; +>exp104 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp105 = "test"; +>exp105 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp106 = "test"; +>exp106 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp107 = "test"; +>exp107 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp108 = "test"; +>exp108 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp109 = "test"; +>exp109 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp110 = "test"; +>exp110 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp111 = "test"; +>exp111 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp112 = "test"; +>exp112 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp113 = "test"; +>exp113 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp114 = "test"; +>exp114 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp115 = "test"; +>exp115 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp116 = "test"; +>exp116 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp117 = "test"; +>exp117 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp118 = "test"; +>exp118 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp119 = "test"; +>exp119 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp120 = "test"; +>exp120 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp121 = "test"; +>exp121 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp122 = "test"; +>exp122 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp123 = "test"; +>exp123 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp124 = "test"; +>exp124 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp125 = "test"; +>exp125 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp126 = "test"; +>exp126 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp127 = "test"; +>exp127 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp128 = "test"; +>exp128 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp129 = "test"; +>exp129 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp130 = "test"; +>exp130 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp131 = "test"; +>exp131 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp132 = "test"; +>exp132 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp133 = "test"; +>exp133 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp134 = "test"; +>exp134 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp135 = "test"; +>exp135 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp136 = "test"; +>exp136 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp137 = "test"; +>exp137 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp138 = "test"; +>exp138 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp139 = "test"; +>exp139 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp140 = "test"; +>exp140 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp141 = "test"; +>exp141 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp142 = "test"; +>exp142 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp143 = "test"; +>exp143 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp144 = "test"; +>exp144 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp145 = "test"; +>exp145 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp146 = "test"; +>exp146 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp147 = "test"; +>exp147 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp148 = "test"; +>exp148 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp149 = "test"; +>exp149 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp150 = "test"; +>exp150 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp151 = "test"; +>exp151 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp152 = "test"; +>exp152 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp153 = "test"; +>exp153 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp154 = "test"; +>exp154 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp155 = "test"; +>exp155 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp156 = "test"; +>exp156 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp157 = "test"; +>exp157 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp158 = "test"; +>exp158 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp159 = "test"; +>exp159 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp160 = "test"; +>exp160 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp161 = "test"; +>exp161 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp162 = "test"; +>exp162 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp163 = "test"; +>exp163 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp164 = "test"; +>exp164 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp165 = "test"; +>exp165 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp166 = "test"; +>exp166 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp167 = "test"; +>exp167 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp168 = "test"; +>exp168 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp169 = "test"; +>exp169 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp170 = "test"; +>exp170 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp171 = "test"; +>exp171 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp172 = "test"; +>exp172 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp173 = "test"; +>exp173 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp174 = "test"; +>exp174 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp175 = "test"; +>exp175 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp176 = "test"; +>exp176 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp177 = "test"; +>exp177 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp178 = "test"; +>exp178 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp179 = "test"; +>exp179 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp180 = "test"; +>exp180 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp181 = "test"; +>exp181 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp182 = "test"; +>exp182 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp183 = "test"; +>exp183 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp184 = "test"; +>exp184 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp185 = "test"; +>exp185 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp186 = "test"; +>exp186 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp187 = "test"; +>exp187 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp188 = "test"; +>exp188 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp189 = "test"; +>exp189 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp190 = "test"; +>exp190 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp191 = "test"; +>exp191 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp192 = "test"; +>exp192 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp193 = "test"; +>exp193 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp194 = "test"; +>exp194 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp195 = "test"; +>exp195 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp196 = "test"; +>exp196 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp197 = "test"; +>exp197 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp198 = "test"; +>exp198 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp199 = "test"; +>exp199 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp200 = "test"; +>exp200 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp201 = "test"; +>exp201 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp202 = "test"; +>exp202 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp203 = "test"; +>exp203 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp204 = "test"; +>exp204 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp205 = "test"; +>exp205 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp206 = "test"; +>exp206 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp207 = "test"; +>exp207 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp208 = "test"; +>exp208 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp209 = "test"; +>exp209 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp210 = "test"; +>exp210 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp211 = "test"; +>exp211 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp212 = "test"; +>exp212 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp213 = "test"; +>exp213 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp214 = "test"; +>exp214 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp215 = "test"; +>exp215 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp216 = "test"; +>exp216 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp217 = "test"; +>exp217 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp218 = "test"; +>exp218 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp219 = "test"; +>exp219 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp220 = "test"; +>exp220 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp221 = "test"; +>exp221 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp222 = "test"; +>exp222 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp223 = "test"; +>exp223 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp224 = "test"; +>exp224 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp225 = "test"; +>exp225 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp226 = "test"; +>exp226 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp227 = "test"; +>exp227 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp228 = "test"; +>exp228 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp229 = "test"; +>exp229 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp230 = "test"; +>exp230 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp231 = "test"; +>exp231 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp232 = "test"; +>exp232 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp233 = "test"; +>exp233 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp234 = "test"; +>exp234 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp235 = "test"; +>exp235 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp236 = "test"; +>exp236 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp237 = "test"; +>exp237 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp238 = "test"; +>exp238 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp239 = "test"; +>exp239 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp240 = "test"; +>exp240 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp241 = "test"; +>exp241 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp242 = "test"; +>exp242 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp243 = "test"; +>exp243 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp244 = "test"; +>exp244 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp245 = "test"; +>exp245 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp246 = "test"; +>exp246 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp247 = "test"; +>exp247 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp248 = "test"; +>exp248 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp249 = "test"; +>exp249 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp250 = "test"; +>exp250 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp251 = "test"; +>exp251 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp252 = "test"; +>exp252 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp253 = "test"; +>exp253 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp254 = "test"; +>exp254 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp255 = "test"; +>exp255 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp256 = "test"; +>exp256 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp257 = "test"; +>exp257 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp258 = "test"; +>exp258 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp259 = "test"; +>exp259 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp260 = "test"; +>exp260 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp261 = "test"; +>exp261 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp262 = "test"; +>exp262 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp263 = "test"; +>exp263 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp264 = "test"; +>exp264 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp265 = "test"; +>exp265 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp266 = "test"; +>exp266 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp267 = "test"; +>exp267 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp268 = "test"; +>exp268 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp269 = "test"; +>exp269 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp270 = "test"; +>exp270 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp271 = "test"; +>exp271 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp272 = "test"; +>exp272 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp273 = "test"; +>exp273 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp274 = "test"; +>exp274 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp275 = "test"; +>exp275 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp276 = "test"; +>exp276 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp277 = "test"; +>exp277 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp278 = "test"; +>exp278 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp279 = "test"; +>exp279 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp280 = "test"; +>exp280 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp281 = "test"; +>exp281 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp282 = "test"; +>exp282 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp283 = "test"; +>exp283 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp284 = "test"; +>exp284 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp285 = "test"; +>exp285 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp286 = "test"; +>exp286 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp287 = "test"; +>exp287 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp288 = "test"; +>exp288 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp289 = "test"; +>exp289 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp290 = "test"; +>exp290 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp291 = "test"; +>exp291 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp292 = "test"; +>exp292 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp293 = "test"; +>exp293 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp294 = "test"; +>exp294 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp295 = "test"; +>exp295 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp296 = "test"; +>exp296 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp297 = "test"; +>exp297 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp298 = "test"; +>exp298 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp299 = "test"; +>exp299 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp300 = "test"; +>exp300 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp301 = "test"; +>exp301 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp302 = "test"; +>exp302 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp303 = "test"; +>exp303 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp304 = "test"; +>exp304 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp305 = "test"; +>exp305 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp306 = "test"; +>exp306 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp307 = "test"; +>exp307 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp308 = "test"; +>exp308 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp309 = "test"; +>exp309 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp310 = "test"; +>exp310 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp311 = "test"; +>exp311 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp312 = "test"; +>exp312 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp313 = "test"; +>exp313 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp314 = "test"; +>exp314 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp315 = "test"; +>exp315 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp316 = "test"; +>exp316 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp317 = "test"; +>exp317 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp318 = "test"; +>exp318 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp319 = "test"; +>exp319 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp320 = "test"; +>exp320 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp321 = "test"; +>exp321 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp322 = "test"; +>exp322 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp323 = "test"; +>exp323 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp324 = "test"; +>exp324 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp325 = "test"; +>exp325 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp326 = "test"; +>exp326 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp327 = "test"; +>exp327 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp328 = "test"; +>exp328 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp329 = "test"; +>exp329 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp330 = "test"; +>exp330 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp331 = "test"; +>exp331 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp332 = "test"; +>exp332 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp333 = "test"; +>exp333 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp334 = "test"; +>exp334 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp335 = "test"; +>exp335 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp336 = "test"; +>exp336 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp337 = "test"; +>exp337 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp338 = "test"; +>exp338 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp339 = "test"; +>exp339 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp340 = "test"; +>exp340 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp341 = "test"; +>exp341 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp342 = "test"; +>exp342 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp343 = "test"; +>exp343 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp344 = "test"; +>exp344 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp345 = "test"; +>exp345 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp346 = "test"; +>exp346 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp347 = "test"; +>exp347 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp348 = "test"; +>exp348 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp349 = "test"; +>exp349 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp350 = "test"; +>exp350 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp351 = "test"; +>exp351 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp352 = "test"; +>exp352 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp353 = "test"; +>exp353 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp354 = "test"; +>exp354 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp355 = "test"; +>exp355 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp356 = "test"; +>exp356 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp357 = "test"; +>exp357 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp358 = "test"; +>exp358 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp359 = "test"; +>exp359 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp360 = "test"; +>exp360 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp361 = "test"; +>exp361 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp362 = "test"; +>exp362 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp363 = "test"; +>exp363 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp364 = "test"; +>exp364 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp365 = "test"; +>exp365 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp366 = "test"; +>exp366 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp367 = "test"; +>exp367 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp368 = "test"; +>exp368 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp369 = "test"; +>exp369 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp370 = "test"; +>exp370 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp371 = "test"; +>exp371 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp372 = "test"; +>exp372 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp373 = "test"; +>exp373 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp374 = "test"; +>exp374 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp375 = "test"; +>exp375 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp376 = "test"; +>exp376 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp377 = "test"; +>exp377 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp378 = "test"; +>exp378 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp379 = "test"; +>exp379 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp380 = "test"; +>exp380 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp381 = "test"; +>exp381 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp382 = "test"; +>exp382 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp383 = "test"; +>exp383 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp384 = "test"; +>exp384 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp385 = "test"; +>exp385 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp386 = "test"; +>exp386 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp387 = "test"; +>exp387 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp388 = "test"; +>exp388 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp389 = "test"; +>exp389 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp390 = "test"; +>exp390 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp391 = "test"; +>exp391 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp392 = "test"; +>exp392 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp393 = "test"; +>exp393 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp394 = "test"; +>exp394 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp395 = "test"; +>exp395 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp396 = "test"; +>exp396 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp397 = "test"; +>exp397 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp398 = "test"; +>exp398 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp399 = "test"; +>exp399 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp400 = "test"; +>exp400 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp401 = "test"; +>exp401 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp402 = "test"; +>exp402 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp403 = "test"; +>exp403 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp404 = "test"; +>exp404 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp405 = "test"; +>exp405 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp406 = "test"; +>exp406 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp407 = "test"; +>exp407 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp408 = "test"; +>exp408 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp409 = "test"; +>exp409 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp410 = "test"; +>exp410 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp411 = "test"; +>exp411 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp412 = "test"; +>exp412 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp413 = "test"; +>exp413 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp414 = "test"; +>exp414 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp415 = "test"; +>exp415 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp416 = "test"; +>exp416 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp417 = "test"; +>exp417 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp418 = "test"; +>exp418 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp419 = "test"; +>exp419 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp420 = "test"; +>exp420 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp421 = "test"; +>exp421 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp422 = "test"; +>exp422 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp423 = "test"; +>exp423 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp424 = "test"; +>exp424 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp425 = "test"; +>exp425 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp426 = "test"; +>exp426 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp427 = "test"; +>exp427 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp428 = "test"; +>exp428 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp429 = "test"; +>exp429 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp430 = "test"; +>exp430 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp431 = "test"; +>exp431 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp432 = "test"; +>exp432 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp433 = "test"; +>exp433 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp434 = "test"; +>exp434 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp435 = "test"; +>exp435 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp436 = "test"; +>exp436 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp437 = "test"; +>exp437 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp438 = "test"; +>exp438 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp439 = "test"; +>exp439 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp440 = "test"; +>exp440 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp441 = "test"; +>exp441 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp442 = "test"; +>exp442 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp443 = "test"; +>exp443 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp444 = "test"; +>exp444 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp445 = "test"; +>exp445 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp446 = "test"; +>exp446 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp447 = "test"; +>exp447 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp448 = "test"; +>exp448 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp449 = "test"; +>exp449 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp450 = "test"; +>exp450 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp451 = "test"; +>exp451 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp452 = "test"; +>exp452 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp453 = "test"; +>exp453 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp454 = "test"; +>exp454 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp455 = "test"; +>exp455 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp456 = "test"; +>exp456 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp457 = "test"; +>exp457 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp458 = "test"; +>exp458 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp459 = "test"; +>exp459 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp460 = "test"; +>exp460 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp461 = "test"; +>exp461 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp462 = "test"; +>exp462 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp463 = "test"; +>exp463 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp464 = "test"; +>exp464 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp465 = "test"; +>exp465 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp466 = "test"; +>exp466 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp467 = "test"; +>exp467 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp468 = "test"; +>exp468 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp469 = "test"; +>exp469 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp470 = "test"; +>exp470 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp471 = "test"; +>exp471 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp472 = "test"; +>exp472 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp473 = "test"; +>exp473 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp474 = "test"; +>exp474 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp475 = "test"; +>exp475 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp476 = "test"; +>exp476 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp477 = "test"; +>exp477 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp478 = "test"; +>exp478 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp479 = "test"; +>exp479 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp480 = "test"; +>exp480 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp481 = "test"; +>exp481 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp482 = "test"; +>exp482 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp483 = "test"; +>exp483 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp484 = "test"; +>exp484 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp485 = "test"; +>exp485 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp486 = "test"; +>exp486 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp487 = "test"; +>exp487 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp488 = "test"; +>exp488 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp489 = "test"; +>exp489 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp490 = "test"; +>exp490 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp491 = "test"; +>exp491 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp492 = "test"; +>exp492 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp493 = "test"; +>exp493 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp494 = "test"; +>exp494 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp495 = "test"; +>exp495 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp496 = "test"; +>exp496 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp497 = "test"; +>exp497 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp498 = "test"; +>exp498 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp499 = "test"; +>exp499 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp500 = "test"; +>exp500 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp501 = "test"; +>exp501 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp502 = "test"; +>exp502 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp503 = "test"; +>exp503 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp504 = "test"; +>exp504 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp505 = "test"; +>exp505 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp506 = "test"; +>exp506 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp507 = "test"; +>exp507 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp508 = "test"; +>exp508 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp509 = "test"; +>exp509 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp510 = "test"; +>exp510 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp511 = "test"; +>exp511 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp512 = "test"; +>exp512 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp513 = "test"; +>exp513 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp514 = "test"; +>exp514 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp515 = "test"; +>exp515 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp516 = "test"; +>exp516 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp517 = "test"; +>exp517 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp518 = "test"; +>exp518 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp519 = "test"; +>exp519 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp520 = "test"; +>exp520 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp521 = "test"; +>exp521 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp522 = "test"; +>exp522 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp523 = "test"; +>exp523 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp524 = "test"; +>exp524 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp525 = "test"; +>exp525 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp526 = "test"; +>exp526 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp527 = "test"; +>exp527 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp528 = "test"; +>exp528 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp529 = "test"; +>exp529 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp530 = "test"; +>exp530 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp531 = "test"; +>exp531 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp532 = "test"; +>exp532 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp533 = "test"; +>exp533 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp534 = "test"; +>exp534 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp535 = "test"; +>exp535 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp536 = "test"; +>exp536 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp537 = "test"; +>exp537 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp538 = "test"; +>exp538 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp539 = "test"; +>exp539 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp540 = "test"; +>exp540 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp541 = "test"; +>exp541 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp542 = "test"; +>exp542 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp543 = "test"; +>exp543 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp544 = "test"; +>exp544 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp545 = "test"; +>exp545 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp546 = "test"; +>exp546 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp547 = "test"; +>exp547 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp548 = "test"; +>exp548 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp549 = "test"; +>exp549 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp550 = "test"; +>exp550 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp551 = "test"; +>exp551 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp552 = "test"; +>exp552 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp553 = "test"; +>exp553 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp554 = "test"; +>exp554 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp555 = "test"; +>exp555 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp556 = "test"; +>exp556 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp557 = "test"; +>exp557 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp558 = "test"; +>exp558 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp559 = "test"; +>exp559 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp560 = "test"; +>exp560 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp561 = "test"; +>exp561 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp562 = "test"; +>exp562 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp563 = "test"; +>exp563 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp564 = "test"; +>exp564 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp565 = "test"; +>exp565 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp566 = "test"; +>exp566 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp567 = "test"; +>exp567 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp568 = "test"; +>exp568 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp569 = "test"; +>exp569 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp570 = "test"; +>exp570 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp571 = "test"; +>exp571 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp572 = "test"; +>exp572 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp573 = "test"; +>exp573 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp574 = "test"; +>exp574 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp575 = "test"; +>exp575 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp576 = "test"; +>exp576 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp577 = "test"; +>exp577 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp578 = "test"; +>exp578 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp579 = "test"; +>exp579 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp580 = "test"; +>exp580 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp581 = "test"; +>exp581 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp582 = "test"; +>exp582 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp583 = "test"; +>exp583 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp584 = "test"; +>exp584 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp585 = "test"; +>exp585 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp586 = "test"; +>exp586 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp587 = "test"; +>exp587 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp588 = "test"; +>exp588 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp589 = "test"; +>exp589 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp590 = "test"; +>exp590 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp591 = "test"; +>exp591 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp592 = "test"; +>exp592 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp593 = "test"; +>exp593 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp594 = "test"; +>exp594 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp595 = "test"; +>exp595 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp596 = "test"; +>exp596 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp597 = "test"; +>exp597 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp598 = "test"; +>exp598 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp599 = "test"; +>exp599 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp600 = "test"; +>exp600 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp601 = "test"; +>exp601 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp602 = "test"; +>exp602 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp603 = "test"; +>exp603 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp604 = "test"; +>exp604 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp605 = "test"; +>exp605 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp606 = "test"; +>exp606 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp607 = "test"; +>exp607 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp608 = "test"; +>exp608 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp609 = "test"; +>exp609 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp610 = "test"; +>exp610 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp611 = "test"; +>exp611 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp612 = "test"; +>exp612 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp613 = "test"; +>exp613 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp614 = "test"; +>exp614 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp615 = "test"; +>exp615 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp616 = "test"; +>exp616 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp617 = "test"; +>exp617 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp618 = "test"; +>exp618 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp619 = "test"; +>exp619 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp620 = "test"; +>exp620 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp621 = "test"; +>exp621 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp622 = "test"; +>exp622 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp623 = "test"; +>exp623 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp624 = "test"; +>exp624 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp625 = "test"; +>exp625 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp626 = "test"; +>exp626 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp627 = "test"; +>exp627 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp628 = "test"; +>exp628 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp629 = "test"; +>exp629 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp630 = "test"; +>exp630 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp631 = "test"; +>exp631 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp632 = "test"; +>exp632 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp633 = "test"; +>exp633 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp634 = "test"; +>exp634 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp635 = "test"; +>exp635 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp636 = "test"; +>exp636 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp637 = "test"; +>exp637 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp638 = "test"; +>exp638 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp639 = "test"; +>exp639 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp640 = "test"; +>exp640 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp641 = "test"; +>exp641 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp642 = "test"; +>exp642 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp643 = "test"; +>exp643 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp644 = "test"; +>exp644 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp645 = "test"; +>exp645 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp646 = "test"; +>exp646 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp647 = "test"; +>exp647 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp648 = "test"; +>exp648 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp649 = "test"; +>exp649 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp650 = "test"; +>exp650 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp651 = "test"; +>exp651 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp652 = "test"; +>exp652 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp653 = "test"; +>exp653 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp654 = "test"; +>exp654 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp655 = "test"; +>exp655 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp656 = "test"; +>exp656 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp657 = "test"; +>exp657 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp658 = "test"; +>exp658 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp659 = "test"; +>exp659 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp660 = "test"; +>exp660 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp661 = "test"; +>exp661 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp662 = "test"; +>exp662 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp663 = "test"; +>exp663 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp664 = "test"; +>exp664 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp665 = "test"; +>exp665 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp666 = "test"; +>exp666 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp667 = "test"; +>exp667 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp668 = "test"; +>exp668 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp669 = "test"; +>exp669 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp670 = "test"; +>exp670 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp671 = "test"; +>exp671 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp672 = "test"; +>exp672 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp673 = "test"; +>exp673 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp674 = "test"; +>exp674 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp675 = "test"; +>exp675 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp676 = "test"; +>exp676 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp677 = "test"; +>exp677 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp678 = "test"; +>exp678 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp679 = "test"; +>exp679 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp680 = "test"; +>exp680 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp681 = "test"; +>exp681 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp682 = "test"; +>exp682 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp683 = "test"; +>exp683 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp684 = "test"; +>exp684 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp685 = "test"; +>exp685 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp686 = "test"; +>exp686 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp687 = "test"; +>exp687 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp688 = "test"; +>exp688 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp689 = "test"; +>exp689 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp690 = "test"; +>exp690 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp691 = "test"; +>exp691 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp692 = "test"; +>exp692 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp693 = "test"; +>exp693 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp694 = "test"; +>exp694 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp695 = "test"; +>exp695 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp696 = "test"; +>exp696 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp697 = "test"; +>exp697 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp698 = "test"; +>exp698 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp699 = "test"; +>exp699 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp700 = "test"; +>exp700 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp701 = "test"; +>exp701 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp702 = "test"; +>exp702 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp703 = "test"; +>exp703 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp704 = "test"; +>exp704 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp705 = "test"; +>exp705 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp706 = "test"; +>exp706 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp707 = "test"; +>exp707 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp708 = "test"; +>exp708 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp709 = "test"; +>exp709 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp710 = "test"; +>exp710 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp711 = "test"; +>exp711 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp712 = "test"; +>exp712 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp713 = "test"; +>exp713 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp714 = "test"; +>exp714 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp715 = "test"; +>exp715 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp716 = "test"; +>exp716 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp717 = "test"; +>exp717 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp718 = "test"; +>exp718 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp719 = "test"; +>exp719 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp720 = "test"; +>exp720 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp721 = "test"; +>exp721 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp722 = "test"; +>exp722 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp723 = "test"; +>exp723 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp724 = "test"; +>exp724 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp725 = "test"; +>exp725 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp726 = "test"; +>exp726 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp727 = "test"; +>exp727 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp728 = "test"; +>exp728 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp729 = "test"; +>exp729 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp730 = "test"; +>exp730 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp731 = "test"; +>exp731 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp732 = "test"; +>exp732 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp733 = "test"; +>exp733 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp734 = "test"; +>exp734 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp735 = "test"; +>exp735 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp736 = "test"; +>exp736 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp737 = "test"; +>exp737 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp738 = "test"; +>exp738 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp739 = "test"; +>exp739 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp740 = "test"; +>exp740 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp741 = "test"; +>exp741 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp742 = "test"; +>exp742 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp743 = "test"; +>exp743 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp744 = "test"; +>exp744 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp745 = "test"; +>exp745 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp746 = "test"; +>exp746 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp747 = "test"; +>exp747 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp748 = "test"; +>exp748 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp749 = "test"; +>exp749 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp750 = "test"; +>exp750 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp751 = "test"; +>exp751 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp752 = "test"; +>exp752 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp753 = "test"; +>exp753 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp754 = "test"; +>exp754 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp755 = "test"; +>exp755 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp756 = "test"; +>exp756 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp757 = "test"; +>exp757 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp758 = "test"; +>exp758 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp759 = "test"; +>exp759 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp760 = "test"; +>exp760 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp761 = "test"; +>exp761 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp762 = "test"; +>exp762 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp763 = "test"; +>exp763 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp764 = "test"; +>exp764 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp765 = "test"; +>exp765 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp766 = "test"; +>exp766 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp767 = "test"; +>exp767 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp768 = "test"; +>exp768 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp769 = "test"; +>exp769 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp770 = "test"; +>exp770 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp771 = "test"; +>exp771 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp772 = "test"; +>exp772 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp773 = "test"; +>exp773 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp774 = "test"; +>exp774 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp775 = "test"; +>exp775 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp776 = "test"; +>exp776 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp777 = "test"; +>exp777 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp778 = "test"; +>exp778 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp779 = "test"; +>exp779 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp780 = "test"; +>exp780 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp781 = "test"; +>exp781 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp782 = "test"; +>exp782 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp783 = "test"; +>exp783 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp784 = "test"; +>exp784 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp785 = "test"; +>exp785 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp786 = "test"; +>exp786 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp787 = "test"; +>exp787 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp788 = "test"; +>exp788 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp789 = "test"; +>exp789 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp790 = "test"; +>exp790 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp791 = "test"; +>exp791 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp792 = "test"; +>exp792 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp793 = "test"; +>exp793 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp794 = "test"; +>exp794 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp795 = "test"; +>exp795 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp796 = "test"; +>exp796 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp797 = "test"; +>exp797 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp798 = "test"; +>exp798 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp799 = "test"; +>exp799 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp800 = "test"; +>exp800 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp801 = "test"; +>exp801 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp802 = "test"; +>exp802 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp803 = "test"; +>exp803 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp804 = "test"; +>exp804 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp805 = "test"; +>exp805 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp806 = "test"; +>exp806 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp807 = "test"; +>exp807 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp808 = "test"; +>exp808 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp809 = "test"; +>exp809 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp810 = "test"; +>exp810 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp811 = "test"; +>exp811 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp812 = "test"; +>exp812 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp813 = "test"; +>exp813 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp814 = "test"; +>exp814 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp815 = "test"; +>exp815 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp816 = "test"; +>exp816 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp817 = "test"; +>exp817 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp818 = "test"; +>exp818 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp819 = "test"; +>exp819 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp820 = "test"; +>exp820 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp821 = "test"; +>exp821 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp822 = "test"; +>exp822 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp823 = "test"; +>exp823 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp824 = "test"; +>exp824 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp825 = "test"; +>exp825 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp826 = "test"; +>exp826 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp827 = "test"; +>exp827 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp828 = "test"; +>exp828 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp829 = "test"; +>exp829 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp830 = "test"; +>exp830 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp831 = "test"; +>exp831 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp832 = "test"; +>exp832 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp833 = "test"; +>exp833 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp834 = "test"; +>exp834 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp835 = "test"; +>exp835 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp836 = "test"; +>exp836 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp837 = "test"; +>exp837 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp838 = "test"; +>exp838 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp839 = "test"; +>exp839 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp840 = "test"; +>exp840 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp841 = "test"; +>exp841 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp842 = "test"; +>exp842 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp843 = "test"; +>exp843 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp844 = "test"; +>exp844 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp845 = "test"; +>exp845 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp846 = "test"; +>exp846 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp847 = "test"; +>exp847 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp848 = "test"; +>exp848 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp849 = "test"; +>exp849 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp850 = "test"; +>exp850 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp851 = "test"; +>exp851 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp852 = "test"; +>exp852 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp853 = "test"; +>exp853 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp854 = "test"; +>exp854 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp855 = "test"; +>exp855 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp856 = "test"; +>exp856 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp857 = "test"; +>exp857 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp858 = "test"; +>exp858 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp859 = "test"; +>exp859 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp860 = "test"; +>exp860 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp861 = "test"; +>exp861 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp862 = "test"; +>exp862 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp863 = "test"; +>exp863 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp864 = "test"; +>exp864 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp865 = "test"; +>exp865 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp866 = "test"; +>exp866 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp867 = "test"; +>exp867 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp868 = "test"; +>exp868 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp869 = "test"; +>exp869 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp870 = "test"; +>exp870 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp871 = "test"; +>exp871 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp872 = "test"; +>exp872 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp873 = "test"; +>exp873 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp874 = "test"; +>exp874 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp875 = "test"; +>exp875 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp876 = "test"; +>exp876 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp877 = "test"; +>exp877 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp878 = "test"; +>exp878 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp879 = "test"; +>exp879 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp880 = "test"; +>exp880 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp881 = "test"; +>exp881 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp882 = "test"; +>exp882 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp883 = "test"; +>exp883 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp884 = "test"; +>exp884 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp885 = "test"; +>exp885 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp886 = "test"; +>exp886 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp887 = "test"; +>exp887 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp888 = "test"; +>exp888 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp889 = "test"; +>exp889 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp890 = "test"; +>exp890 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp891 = "test"; +>exp891 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp892 = "test"; +>exp892 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp893 = "test"; +>exp893 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp894 = "test"; +>exp894 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp895 = "test"; +>exp895 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp896 = "test"; +>exp896 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp897 = "test"; +>exp897 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp898 = "test"; +>exp898 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp899 = "test"; +>exp899 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp900 = "test"; +>exp900 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp901 = "test"; +>exp901 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp902 = "test"; +>exp902 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp903 = "test"; +>exp903 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp904 = "test"; +>exp904 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp905 = "test"; +>exp905 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp906 = "test"; +>exp906 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp907 = "test"; +>exp907 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp908 = "test"; +>exp908 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp909 = "test"; +>exp909 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp910 = "test"; +>exp910 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp911 = "test"; +>exp911 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp912 = "test"; +>exp912 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp913 = "test"; +>exp913 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp914 = "test"; +>exp914 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp915 = "test"; +>exp915 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp916 = "test"; +>exp916 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp917 = "test"; +>exp917 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp918 = "test"; +>exp918 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp919 = "test"; +>exp919 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp920 = "test"; +>exp920 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp921 = "test"; +>exp921 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp922 = "test"; +>exp922 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp923 = "test"; +>exp923 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp924 = "test"; +>exp924 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp925 = "test"; +>exp925 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp926 = "test"; +>exp926 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp927 = "test"; +>exp927 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp928 = "test"; +>exp928 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp929 = "test"; +>exp929 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp930 = "test"; +>exp930 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp931 = "test"; +>exp931 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp932 = "test"; +>exp932 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp933 = "test"; +>exp933 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp934 = "test"; +>exp934 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp935 = "test"; +>exp935 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp936 = "test"; +>exp936 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp937 = "test"; +>exp937 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp938 = "test"; +>exp938 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp939 = "test"; +>exp939 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp940 = "test"; +>exp940 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp941 = "test"; +>exp941 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp942 = "test"; +>exp942 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp943 = "test"; +>exp943 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp944 = "test"; +>exp944 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp945 = "test"; +>exp945 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp946 = "test"; +>exp946 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp947 = "test"; +>exp947 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp948 = "test"; +>exp948 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp949 = "test"; +>exp949 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp950 = "test"; +>exp950 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp951 = "test"; +>exp951 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp952 = "test"; +>exp952 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp953 = "test"; +>exp953 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp954 = "test"; +>exp954 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp955 = "test"; +>exp955 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp956 = "test"; +>exp956 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp957 = "test"; +>exp957 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp958 = "test"; +>exp958 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp959 = "test"; +>exp959 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp960 = "test"; +>exp960 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp961 = "test"; +>exp961 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp962 = "test"; +>exp962 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp963 = "test"; +>exp963 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp964 = "test"; +>exp964 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp965 = "test"; +>exp965 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp966 = "test"; +>exp966 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp967 = "test"; +>exp967 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp968 = "test"; +>exp968 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp969 = "test"; +>exp969 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp970 = "test"; +>exp970 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp971 = "test"; +>exp971 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp972 = "test"; +>exp972 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp973 = "test"; +>exp973 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp974 = "test"; +>exp974 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp975 = "test"; +>exp975 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp976 = "test"; +>exp976 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp977 = "test"; +>exp977 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp978 = "test"; +>exp978 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp979 = "test"; +>exp979 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp980 = "test"; +>exp980 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp981 = "test"; +>exp981 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp982 = "test"; +>exp982 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp983 = "test"; +>exp983 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp984 = "test"; +>exp984 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp985 = "test"; +>exp985 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp986 = "test"; +>exp986 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp987 = "test"; +>exp987 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp988 = "test"; +>exp988 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp989 = "test"; +>exp989 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp990 = "test"; +>exp990 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp991 = "test"; +>exp991 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp992 = "test"; +>exp992 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp993 = "test"; +>exp993 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp994 = "test"; +>exp994 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp995 = "test"; +>exp995 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp996 = "test"; +>exp996 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp997 = "test"; +>exp997 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp998 = "test"; +>exp998 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp999 = "test"; +>exp999 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1000 = "test"; +>exp1000 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1001 = "test"; +>exp1001 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1002 = "test"; +>exp1002 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1003 = "test"; +>exp1003 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1004 = "test"; +>exp1004 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1005 = "test"; +>exp1005 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1006 = "test"; +>exp1006 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1007 = "test"; +>exp1007 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1008 = "test"; +>exp1008 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1009 = "test"; +>exp1009 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1010 = "test"; +>exp1010 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1011 = "test"; +>exp1011 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1012 = "test"; +>exp1012 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1013 = "test"; +>exp1013 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1014 = "test"; +>exp1014 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1015 = "test"; +>exp1015 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1016 = "test"; +>exp1016 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1017 = "test"; +>exp1017 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1018 = "test"; +>exp1018 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1019 = "test"; +>exp1019 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1020 = "test"; +>exp1020 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1021 = "test"; +>exp1021 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1022 = "test"; +>exp1022 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1023 = "test"; +>exp1023 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1024 = "test"; +>exp1024 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1025 = "test"; +>exp1025 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1026 = "test"; +>exp1026 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1027 = "test"; +>exp1027 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1028 = "test"; +>exp1028 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1029 = "test"; +>exp1029 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1030 = "test"; +>exp1030 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1031 = "test"; +>exp1031 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1032 = "test"; +>exp1032 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1033 = "test"; +>exp1033 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1034 = "test"; +>exp1034 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1035 = "test"; +>exp1035 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1036 = "test"; +>exp1036 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1037 = "test"; +>exp1037 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1038 = "test"; +>exp1038 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1039 = "test"; +>exp1039 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1040 = "test"; +>exp1040 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1041 = "test"; +>exp1041 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1042 = "test"; +>exp1042 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1043 = "test"; +>exp1043 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1044 = "test"; +>exp1044 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1045 = "test"; +>exp1045 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1046 = "test"; +>exp1046 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1047 = "test"; +>exp1047 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1048 = "test"; +>exp1048 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1049 = "test"; +>exp1049 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1050 = "test"; +>exp1050 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1051 = "test"; +>exp1051 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1052 = "test"; +>exp1052 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1053 = "test"; +>exp1053 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1054 = "test"; +>exp1054 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1055 = "test"; +>exp1055 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1056 = "test"; +>exp1056 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1057 = "test"; +>exp1057 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1058 = "test"; +>exp1058 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1059 = "test"; +>exp1059 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1060 = "test"; +>exp1060 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1061 = "test"; +>exp1061 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1062 = "test"; +>exp1062 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1063 = "test"; +>exp1063 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1064 = "test"; +>exp1064 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1065 = "test"; +>exp1065 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1066 = "test"; +>exp1066 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1067 = "test"; +>exp1067 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1068 = "test"; +>exp1068 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1069 = "test"; +>exp1069 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1070 = "test"; +>exp1070 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1071 = "test"; +>exp1071 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1072 = "test"; +>exp1072 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1073 = "test"; +>exp1073 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1074 = "test"; +>exp1074 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1075 = "test"; +>exp1075 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1076 = "test"; +>exp1076 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1077 = "test"; +>exp1077 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1078 = "test"; +>exp1078 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1079 = "test"; +>exp1079 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1080 = "test"; +>exp1080 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1081 = "test"; +>exp1081 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1082 = "test"; +>exp1082 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1083 = "test"; +>exp1083 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1084 = "test"; +>exp1084 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1085 = "test"; +>exp1085 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1086 = "test"; +>exp1086 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1087 = "test"; +>exp1087 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1088 = "test"; +>exp1088 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1089 = "test"; +>exp1089 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1090 = "test"; +>exp1090 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1091 = "test"; +>exp1091 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1092 = "test"; +>exp1092 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1093 = "test"; +>exp1093 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1094 = "test"; +>exp1094 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1095 = "test"; +>exp1095 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1096 = "test"; +>exp1096 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1097 = "test"; +>exp1097 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1098 = "test"; +>exp1098 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1099 = "test"; +>exp1099 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1100 = "test"; +>exp1100 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1101 = "test"; +>exp1101 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1102 = "test"; +>exp1102 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1103 = "test"; +>exp1103 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1104 = "test"; +>exp1104 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1105 = "test"; +>exp1105 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1106 = "test"; +>exp1106 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1107 = "test"; +>exp1107 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1108 = "test"; +>exp1108 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1109 = "test"; +>exp1109 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1110 = "test"; +>exp1110 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1111 = "test"; +>exp1111 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1112 = "test"; +>exp1112 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1113 = "test"; +>exp1113 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1114 = "test"; +>exp1114 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1115 = "test"; +>exp1115 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1116 = "test"; +>exp1116 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1117 = "test"; +>exp1117 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1118 = "test"; +>exp1118 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1119 = "test"; +>exp1119 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1120 = "test"; +>exp1120 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1121 = "test"; +>exp1121 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1122 = "test"; +>exp1122 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1123 = "test"; +>exp1123 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1124 = "test"; +>exp1124 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1125 = "test"; +>exp1125 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1126 = "test"; +>exp1126 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1127 = "test"; +>exp1127 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1128 = "test"; +>exp1128 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1129 = "test"; +>exp1129 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1130 = "test"; +>exp1130 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1131 = "test"; +>exp1131 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1132 = "test"; +>exp1132 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1133 = "test"; +>exp1133 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1134 = "test"; +>exp1134 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1135 = "test"; +>exp1135 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1136 = "test"; +>exp1136 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1137 = "test"; +>exp1137 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1138 = "test"; +>exp1138 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1139 = "test"; +>exp1139 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1140 = "test"; +>exp1140 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1141 = "test"; +>exp1141 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1142 = "test"; +>exp1142 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1143 = "test"; +>exp1143 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1144 = "test"; +>exp1144 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1145 = "test"; +>exp1145 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1146 = "test"; +>exp1146 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1147 = "test"; +>exp1147 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1148 = "test"; +>exp1148 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1149 = "test"; +>exp1149 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1150 = "test"; +>exp1150 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1151 = "test"; +>exp1151 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1152 = "test"; +>exp1152 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1153 = "test"; +>exp1153 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1154 = "test"; +>exp1154 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1155 = "test"; +>exp1155 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1156 = "test"; +>exp1156 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1157 = "test"; +>exp1157 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1158 = "test"; +>exp1158 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1159 = "test"; +>exp1159 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1160 = "test"; +>exp1160 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1161 = "test"; +>exp1161 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1162 = "test"; +>exp1162 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1163 = "test"; +>exp1163 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1164 = "test"; +>exp1164 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1165 = "test"; +>exp1165 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1166 = "test"; +>exp1166 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1167 = "test"; +>exp1167 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1168 = "test"; +>exp1168 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1169 = "test"; +>exp1169 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1170 = "test"; +>exp1170 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1171 = "test"; +>exp1171 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1172 = "test"; +>exp1172 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1173 = "test"; +>exp1173 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1174 = "test"; +>exp1174 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1175 = "test"; +>exp1175 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1176 = "test"; +>exp1176 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1177 = "test"; +>exp1177 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1178 = "test"; +>exp1178 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1179 = "test"; +>exp1179 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1180 = "test"; +>exp1180 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1181 = "test"; +>exp1181 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1182 = "test"; +>exp1182 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1183 = "test"; +>exp1183 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1184 = "test"; +>exp1184 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1185 = "test"; +>exp1185 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1186 = "test"; +>exp1186 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1187 = "test"; +>exp1187 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1188 = "test"; +>exp1188 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1189 = "test"; +>exp1189 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1190 = "test"; +>exp1190 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1191 = "test"; +>exp1191 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1192 = "test"; +>exp1192 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1193 = "test"; +>exp1193 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1194 = "test"; +>exp1194 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1195 = "test"; +>exp1195 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1196 = "test"; +>exp1196 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1197 = "test"; +>exp1197 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1198 = "test"; +>exp1198 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1199 = "test"; +>exp1199 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1200 = "test"; +>exp1200 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1201 = "test"; +>exp1201 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1202 = "test"; +>exp1202 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1203 = "test"; +>exp1203 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1204 = "test"; +>exp1204 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1205 = "test"; +>exp1205 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1206 = "test"; +>exp1206 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1207 = "test"; +>exp1207 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1208 = "test"; +>exp1208 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1209 = "test"; +>exp1209 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1210 = "test"; +>exp1210 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1211 = "test"; +>exp1211 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1212 = "test"; +>exp1212 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1213 = "test"; +>exp1213 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1214 = "test"; +>exp1214 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1215 = "test"; +>exp1215 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1216 = "test"; +>exp1216 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1217 = "test"; +>exp1217 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1218 = "test"; +>exp1218 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1219 = "test"; +>exp1219 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1220 = "test"; +>exp1220 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1221 = "test"; +>exp1221 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1222 = "test"; +>exp1222 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1223 = "test"; +>exp1223 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1224 = "test"; +>exp1224 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1225 = "test"; +>exp1225 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1226 = "test"; +>exp1226 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1227 = "test"; +>exp1227 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1228 = "test"; +>exp1228 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1229 = "test"; +>exp1229 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1230 = "test"; +>exp1230 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1231 = "test"; +>exp1231 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1232 = "test"; +>exp1232 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1233 = "test"; +>exp1233 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1234 = "test"; +>exp1234 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1235 = "test"; +>exp1235 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1236 = "test"; +>exp1236 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1237 = "test"; +>exp1237 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1238 = "test"; +>exp1238 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1239 = "test"; +>exp1239 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1240 = "test"; +>exp1240 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1241 = "test"; +>exp1241 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1242 = "test"; +>exp1242 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1243 = "test"; +>exp1243 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1244 = "test"; +>exp1244 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1245 = "test"; +>exp1245 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1246 = "test"; +>exp1246 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1247 = "test"; +>exp1247 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1248 = "test"; +>exp1248 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1249 = "test"; +>exp1249 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1250 = "test"; +>exp1250 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1251 = "test"; +>exp1251 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1252 = "test"; +>exp1252 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1253 = "test"; +>exp1253 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1254 = "test"; +>exp1254 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1255 = "test"; +>exp1255 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1256 = "test"; +>exp1256 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1257 = "test"; +>exp1257 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1258 = "test"; +>exp1258 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1259 = "test"; +>exp1259 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1260 = "test"; +>exp1260 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1261 = "test"; +>exp1261 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1262 = "test"; +>exp1262 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1263 = "test"; +>exp1263 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1264 = "test"; +>exp1264 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1265 = "test"; +>exp1265 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1266 = "test"; +>exp1266 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1267 = "test"; +>exp1267 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1268 = "test"; +>exp1268 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1269 = "test"; +>exp1269 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1270 = "test"; +>exp1270 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1271 = "test"; +>exp1271 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1272 = "test"; +>exp1272 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1273 = "test"; +>exp1273 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1274 = "test"; +>exp1274 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1275 = "test"; +>exp1275 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1276 = "test"; +>exp1276 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1277 = "test"; +>exp1277 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1278 = "test"; +>exp1278 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1279 = "test"; +>exp1279 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1280 = "test"; +>exp1280 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1281 = "test"; +>exp1281 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1282 = "test"; +>exp1282 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1283 = "test"; +>exp1283 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1284 = "test"; +>exp1284 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1285 = "test"; +>exp1285 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1286 = "test"; +>exp1286 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1287 = "test"; +>exp1287 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1288 = "test"; +>exp1288 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1289 = "test"; +>exp1289 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1290 = "test"; +>exp1290 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1291 = "test"; +>exp1291 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1292 = "test"; +>exp1292 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1293 = "test"; +>exp1293 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1294 = "test"; +>exp1294 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1295 = "test"; +>exp1295 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1296 = "test"; +>exp1296 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1297 = "test"; +>exp1297 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1298 = "test"; +>exp1298 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1299 = "test"; +>exp1299 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1300 = "test"; +>exp1300 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1301 = "test"; +>exp1301 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1302 = "test"; +>exp1302 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1303 = "test"; +>exp1303 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1304 = "test"; +>exp1304 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1305 = "test"; +>exp1305 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1306 = "test"; +>exp1306 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1307 = "test"; +>exp1307 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1308 = "test"; +>exp1308 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1309 = "test"; +>exp1309 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1310 = "test"; +>exp1310 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1311 = "test"; +>exp1311 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1312 = "test"; +>exp1312 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1313 = "test"; +>exp1313 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1314 = "test"; +>exp1314 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1315 = "test"; +>exp1315 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1316 = "test"; +>exp1316 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1317 = "test"; +>exp1317 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1318 = "test"; +>exp1318 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1319 = "test"; +>exp1319 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1320 = "test"; +>exp1320 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1321 = "test"; +>exp1321 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1322 = "test"; +>exp1322 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1323 = "test"; +>exp1323 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1324 = "test"; +>exp1324 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1325 = "test"; +>exp1325 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1326 = "test"; +>exp1326 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1327 = "test"; +>exp1327 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1328 = "test"; +>exp1328 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1329 = "test"; +>exp1329 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1330 = "test"; +>exp1330 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1331 = "test"; +>exp1331 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1332 = "test"; +>exp1332 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1333 = "test"; +>exp1333 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1334 = "test"; +>exp1334 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1335 = "test"; +>exp1335 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1336 = "test"; +>exp1336 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1337 = "test"; +>exp1337 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1338 = "test"; +>exp1338 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1339 = "test"; +>exp1339 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1340 = "test"; +>exp1340 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1341 = "test"; +>exp1341 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1342 = "test"; +>exp1342 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1343 = "test"; +>exp1343 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1344 = "test"; +>exp1344 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1345 = "test"; +>exp1345 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1346 = "test"; +>exp1346 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1347 = "test"; +>exp1347 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1348 = "test"; +>exp1348 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1349 = "test"; +>exp1349 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1350 = "test"; +>exp1350 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1351 = "test"; +>exp1351 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1352 = "test"; +>exp1352 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1353 = "test"; +>exp1353 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1354 = "test"; +>exp1354 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1355 = "test"; +>exp1355 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1356 = "test"; +>exp1356 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1357 = "test"; +>exp1357 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1358 = "test"; +>exp1358 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1359 = "test"; +>exp1359 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1360 = "test"; +>exp1360 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1361 = "test"; +>exp1361 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1362 = "test"; +>exp1362 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1363 = "test"; +>exp1363 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1364 = "test"; +>exp1364 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1365 = "test"; +>exp1365 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1366 = "test"; +>exp1366 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1367 = "test"; +>exp1367 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1368 = "test"; +>exp1368 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1369 = "test"; +>exp1369 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1370 = "test"; +>exp1370 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1371 = "test"; +>exp1371 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1372 = "test"; +>exp1372 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1373 = "test"; +>exp1373 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1374 = "test"; +>exp1374 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1375 = "test"; +>exp1375 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1376 = "test"; +>exp1376 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1377 = "test"; +>exp1377 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1378 = "test"; +>exp1378 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1379 = "test"; +>exp1379 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1380 = "test"; +>exp1380 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1381 = "test"; +>exp1381 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1382 = "test"; +>exp1382 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1383 = "test"; +>exp1383 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1384 = "test"; +>exp1384 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1385 = "test"; +>exp1385 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1386 = "test"; +>exp1386 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1387 = "test"; +>exp1387 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1388 = "test"; +>exp1388 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1389 = "test"; +>exp1389 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1390 = "test"; +>exp1390 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1391 = "test"; +>exp1391 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1392 = "test"; +>exp1392 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1393 = "test"; +>exp1393 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1394 = "test"; +>exp1394 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1395 = "test"; +>exp1395 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1396 = "test"; +>exp1396 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1397 = "test"; +>exp1397 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1398 = "test"; +>exp1398 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1399 = "test"; +>exp1399 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1400 = "test"; +>exp1400 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1401 = "test"; +>exp1401 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1402 = "test"; +>exp1402 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1403 = "test"; +>exp1403 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1404 = "test"; +>exp1404 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1405 = "test"; +>exp1405 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1406 = "test"; +>exp1406 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1407 = "test"; +>exp1407 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1408 = "test"; +>exp1408 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1409 = "test"; +>exp1409 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1410 = "test"; +>exp1410 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1411 = "test"; +>exp1411 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1412 = "test"; +>exp1412 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1413 = "test"; +>exp1413 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1414 = "test"; +>exp1414 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1415 = "test"; +>exp1415 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1416 = "test"; +>exp1416 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1417 = "test"; +>exp1417 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1418 = "test"; +>exp1418 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1419 = "test"; +>exp1419 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1420 = "test"; +>exp1420 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1421 = "test"; +>exp1421 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1422 = "test"; +>exp1422 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1423 = "test"; +>exp1423 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1424 = "test"; +>exp1424 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1425 = "test"; +>exp1425 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1426 = "test"; +>exp1426 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1427 = "test"; +>exp1427 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1428 = "test"; +>exp1428 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1429 = "test"; +>exp1429 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1430 = "test"; +>exp1430 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1431 = "test"; +>exp1431 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1432 = "test"; +>exp1432 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1433 = "test"; +>exp1433 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1434 = "test"; +>exp1434 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1435 = "test"; +>exp1435 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1436 = "test"; +>exp1436 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1437 = "test"; +>exp1437 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1438 = "test"; +>exp1438 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1439 = "test"; +>exp1439 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1440 = "test"; +>exp1440 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1441 = "test"; +>exp1441 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1442 = "test"; +>exp1442 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1443 = "test"; +>exp1443 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1444 = "test"; +>exp1444 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1445 = "test"; +>exp1445 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1446 = "test"; +>exp1446 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1447 = "test"; +>exp1447 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1448 = "test"; +>exp1448 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1449 = "test"; +>exp1449 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1450 = "test"; +>exp1450 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1451 = "test"; +>exp1451 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1452 = "test"; +>exp1452 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1453 = "test"; +>exp1453 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1454 = "test"; +>exp1454 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1455 = "test"; +>exp1455 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1456 = "test"; +>exp1456 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1457 = "test"; +>exp1457 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1458 = "test"; +>exp1458 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1459 = "test"; +>exp1459 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1460 = "test"; +>exp1460 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1461 = "test"; +>exp1461 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1462 = "test"; +>exp1462 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1463 = "test"; +>exp1463 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1464 = "test"; +>exp1464 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1465 = "test"; +>exp1465 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1466 = "test"; +>exp1466 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1467 = "test"; +>exp1467 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1468 = "test"; +>exp1468 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1469 = "test"; +>exp1469 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1470 = "test"; +>exp1470 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1471 = "test"; +>exp1471 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1472 = "test"; +>exp1472 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1473 = "test"; +>exp1473 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1474 = "test"; +>exp1474 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1475 = "test"; +>exp1475 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1476 = "test"; +>exp1476 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1477 = "test"; +>exp1477 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1478 = "test"; +>exp1478 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1479 = "test"; +>exp1479 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1480 = "test"; +>exp1480 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1481 = "test"; +>exp1481 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1482 = "test"; +>exp1482 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1483 = "test"; +>exp1483 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1484 = "test"; +>exp1484 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1485 = "test"; +>exp1485 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1486 = "test"; +>exp1486 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1487 = "test"; +>exp1487 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1488 = "test"; +>exp1488 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1489 = "test"; +>exp1489 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1490 = "test"; +>exp1490 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1491 = "test"; +>exp1491 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1492 = "test"; +>exp1492 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1493 = "test"; +>exp1493 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1494 = "test"; +>exp1494 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1495 = "test"; +>exp1495 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1496 = "test"; +>exp1496 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1497 = "test"; +>exp1497 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1498 = "test"; +>exp1498 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1499 = "test"; +>exp1499 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1500 = "test"; +>exp1500 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1501 = "test"; +>exp1501 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1502 = "test"; +>exp1502 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1503 = "test"; +>exp1503 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1504 = "test"; +>exp1504 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1505 = "test"; +>exp1505 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1506 = "test"; +>exp1506 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1507 = "test"; +>exp1507 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1508 = "test"; +>exp1508 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1509 = "test"; +>exp1509 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1510 = "test"; +>exp1510 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1511 = "test"; +>exp1511 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1512 = "test"; +>exp1512 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1513 = "test"; +>exp1513 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1514 = "test"; +>exp1514 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1515 = "test"; +>exp1515 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1516 = "test"; +>exp1516 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1517 = "test"; +>exp1517 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1518 = "test"; +>exp1518 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1519 = "test"; +>exp1519 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1520 = "test"; +>exp1520 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1521 = "test"; +>exp1521 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1522 = "test"; +>exp1522 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1523 = "test"; +>exp1523 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1524 = "test"; +>exp1524 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1525 = "test"; +>exp1525 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1526 = "test"; +>exp1526 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1527 = "test"; +>exp1527 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1528 = "test"; +>exp1528 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1529 = "test"; +>exp1529 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1530 = "test"; +>exp1530 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1531 = "test"; +>exp1531 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1532 = "test"; +>exp1532 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1533 = "test"; +>exp1533 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1534 = "test"; +>exp1534 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1535 = "test"; +>exp1535 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1536 = "test"; +>exp1536 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1537 = "test"; +>exp1537 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1538 = "test"; +>exp1538 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1539 = "test"; +>exp1539 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1540 = "test"; +>exp1540 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1541 = "test"; +>exp1541 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1542 = "test"; +>exp1542 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1543 = "test"; +>exp1543 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1544 = "test"; +>exp1544 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1545 = "test"; +>exp1545 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1546 = "test"; +>exp1546 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1547 = "test"; +>exp1547 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1548 = "test"; +>exp1548 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1549 = "test"; +>exp1549 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1550 = "test"; +>exp1550 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1551 = "test"; +>exp1551 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1552 = "test"; +>exp1552 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1553 = "test"; +>exp1553 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1554 = "test"; +>exp1554 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1555 = "test"; +>exp1555 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1556 = "test"; +>exp1556 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1557 = "test"; +>exp1557 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1558 = "test"; +>exp1558 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1559 = "test"; +>exp1559 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1560 = "test"; +>exp1560 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1561 = "test"; +>exp1561 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1562 = "test"; +>exp1562 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1563 = "test"; +>exp1563 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1564 = "test"; +>exp1564 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1565 = "test"; +>exp1565 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1566 = "test"; +>exp1566 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1567 = "test"; +>exp1567 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1568 = "test"; +>exp1568 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1569 = "test"; +>exp1569 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1570 = "test"; +>exp1570 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1571 = "test"; +>exp1571 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1572 = "test"; +>exp1572 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1573 = "test"; +>exp1573 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1574 = "test"; +>exp1574 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1575 = "test"; +>exp1575 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1576 = "test"; +>exp1576 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1577 = "test"; +>exp1577 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1578 = "test"; +>exp1578 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1579 = "test"; +>exp1579 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1580 = "test"; +>exp1580 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1581 = "test"; +>exp1581 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1582 = "test"; +>exp1582 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1583 = "test"; +>exp1583 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1584 = "test"; +>exp1584 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1585 = "test"; +>exp1585 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1586 = "test"; +>exp1586 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1587 = "test"; +>exp1587 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1588 = "test"; +>exp1588 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1589 = "test"; +>exp1589 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1590 = "test"; +>exp1590 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1591 = "test"; +>exp1591 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1592 = "test"; +>exp1592 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1593 = "test"; +>exp1593 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1594 = "test"; +>exp1594 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1595 = "test"; +>exp1595 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1596 = "test"; +>exp1596 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1597 = "test"; +>exp1597 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1598 = "test"; +>exp1598 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1599 = "test"; +>exp1599 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1600 = "test"; +>exp1600 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1601 = "test"; +>exp1601 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1602 = "test"; +>exp1602 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1603 = "test"; +>exp1603 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1604 = "test"; +>exp1604 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1605 = "test"; +>exp1605 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1606 = "test"; +>exp1606 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1607 = "test"; +>exp1607 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1608 = "test"; +>exp1608 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1609 = "test"; +>exp1609 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1610 = "test"; +>exp1610 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1611 = "test"; +>exp1611 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1612 = "test"; +>exp1612 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1613 = "test"; +>exp1613 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1614 = "test"; +>exp1614 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1615 = "test"; +>exp1615 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1616 = "test"; +>exp1616 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1617 = "test"; +>exp1617 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1618 = "test"; +>exp1618 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1619 = "test"; +>exp1619 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1620 = "test"; +>exp1620 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1621 = "test"; +>exp1621 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1622 = "test"; +>exp1622 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1623 = "test"; +>exp1623 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1624 = "test"; +>exp1624 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1625 = "test"; +>exp1625 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1626 = "test"; +>exp1626 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1627 = "test"; +>exp1627 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1628 = "test"; +>exp1628 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1629 = "test"; +>exp1629 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1630 = "test"; +>exp1630 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1631 = "test"; +>exp1631 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1632 = "test"; +>exp1632 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1633 = "test"; +>exp1633 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1634 = "test"; +>exp1634 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1635 = "test"; +>exp1635 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1636 = "test"; +>exp1636 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1637 = "test"; +>exp1637 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1638 = "test"; +>exp1638 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1639 = "test"; +>exp1639 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1640 = "test"; +>exp1640 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1641 = "test"; +>exp1641 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1642 = "test"; +>exp1642 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1643 = "test"; +>exp1643 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1644 = "test"; +>exp1644 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1645 = "test"; +>exp1645 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1646 = "test"; +>exp1646 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1647 = "test"; +>exp1647 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1648 = "test"; +>exp1648 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1649 = "test"; +>exp1649 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1650 = "test"; +>exp1650 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1651 = "test"; +>exp1651 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1652 = "test"; +>exp1652 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1653 = "test"; +>exp1653 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1654 = "test"; +>exp1654 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1655 = "test"; +>exp1655 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1656 = "test"; +>exp1656 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1657 = "test"; +>exp1657 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1658 = "test"; +>exp1658 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1659 = "test"; +>exp1659 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1660 = "test"; +>exp1660 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1661 = "test"; +>exp1661 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1662 = "test"; +>exp1662 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1663 = "test"; +>exp1663 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1664 = "test"; +>exp1664 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1665 = "test"; +>exp1665 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1666 = "test"; +>exp1666 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1667 = "test"; +>exp1667 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1668 = "test"; +>exp1668 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1669 = "test"; +>exp1669 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1670 = "test"; +>exp1670 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1671 = "test"; +>exp1671 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1672 = "test"; +>exp1672 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1673 = "test"; +>exp1673 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1674 = "test"; +>exp1674 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1675 = "test"; +>exp1675 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1676 = "test"; +>exp1676 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1677 = "test"; +>exp1677 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1678 = "test"; +>exp1678 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1679 = "test"; +>exp1679 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1680 = "test"; +>exp1680 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1681 = "test"; +>exp1681 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1682 = "test"; +>exp1682 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1683 = "test"; +>exp1683 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1684 = "test"; +>exp1684 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1685 = "test"; +>exp1685 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1686 = "test"; +>exp1686 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1687 = "test"; +>exp1687 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1688 = "test"; +>exp1688 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1689 = "test"; +>exp1689 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1690 = "test"; +>exp1690 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1691 = "test"; +>exp1691 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1692 = "test"; +>exp1692 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1693 = "test"; +>exp1693 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1694 = "test"; +>exp1694 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1695 = "test"; +>exp1695 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1696 = "test"; +>exp1696 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1697 = "test"; +>exp1697 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1698 = "test"; +>exp1698 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1699 = "test"; +>exp1699 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1700 = "test"; +>exp1700 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1701 = "test"; +>exp1701 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1702 = "test"; +>exp1702 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1703 = "test"; +>exp1703 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1704 = "test"; +>exp1704 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1705 = "test"; +>exp1705 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1706 = "test"; +>exp1706 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1707 = "test"; +>exp1707 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1708 = "test"; +>exp1708 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1709 = "test"; +>exp1709 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1710 = "test"; +>exp1710 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1711 = "test"; +>exp1711 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1712 = "test"; +>exp1712 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1713 = "test"; +>exp1713 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1714 = "test"; +>exp1714 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1715 = "test"; +>exp1715 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1716 = "test"; +>exp1716 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1717 = "test"; +>exp1717 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1718 = "test"; +>exp1718 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1719 = "test"; +>exp1719 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1720 = "test"; +>exp1720 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1721 = "test"; +>exp1721 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1722 = "test"; +>exp1722 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1723 = "test"; +>exp1723 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1724 = "test"; +>exp1724 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1725 = "test"; +>exp1725 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1726 = "test"; +>exp1726 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1727 = "test"; +>exp1727 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1728 = "test"; +>exp1728 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1729 = "test"; +>exp1729 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1730 = "test"; +>exp1730 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1731 = "test"; +>exp1731 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1732 = "test"; +>exp1732 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1733 = "test"; +>exp1733 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1734 = "test"; +>exp1734 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1735 = "test"; +>exp1735 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1736 = "test"; +>exp1736 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1737 = "test"; +>exp1737 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1738 = "test"; +>exp1738 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1739 = "test"; +>exp1739 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1740 = "test"; +>exp1740 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1741 = "test"; +>exp1741 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1742 = "test"; +>exp1742 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1743 = "test"; +>exp1743 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1744 = "test"; +>exp1744 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1745 = "test"; +>exp1745 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1746 = "test"; +>exp1746 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1747 = "test"; +>exp1747 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1748 = "test"; +>exp1748 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1749 = "test"; +>exp1749 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1750 = "test"; +>exp1750 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1751 = "test"; +>exp1751 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1752 = "test"; +>exp1752 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1753 = "test"; +>exp1753 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1754 = "test"; +>exp1754 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1755 = "test"; +>exp1755 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1756 = "test"; +>exp1756 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1757 = "test"; +>exp1757 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1758 = "test"; +>exp1758 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1759 = "test"; +>exp1759 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1760 = "test"; +>exp1760 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1761 = "test"; +>exp1761 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1762 = "test"; +>exp1762 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1763 = "test"; +>exp1763 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1764 = "test"; +>exp1764 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1765 = "test"; +>exp1765 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1766 = "test"; +>exp1766 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1767 = "test"; +>exp1767 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1768 = "test"; +>exp1768 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1769 = "test"; +>exp1769 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1770 = "test"; +>exp1770 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1771 = "test"; +>exp1771 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1772 = "test"; +>exp1772 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1773 = "test"; +>exp1773 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1774 = "test"; +>exp1774 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1775 = "test"; +>exp1775 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1776 = "test"; +>exp1776 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1777 = "test"; +>exp1777 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1778 = "test"; +>exp1778 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1779 = "test"; +>exp1779 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1780 = "test"; +>exp1780 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1781 = "test"; +>exp1781 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1782 = "test"; +>exp1782 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1783 = "test"; +>exp1783 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1784 = "test"; +>exp1784 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1785 = "test"; +>exp1785 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1786 = "test"; +>exp1786 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1787 = "test"; +>exp1787 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1788 = "test"; +>exp1788 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1789 = "test"; +>exp1789 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1790 = "test"; +>exp1790 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1791 = "test"; +>exp1791 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1792 = "test"; +>exp1792 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1793 = "test"; +>exp1793 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1794 = "test"; +>exp1794 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1795 = "test"; +>exp1795 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1796 = "test"; +>exp1796 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1797 = "test"; +>exp1797 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1798 = "test"; +>exp1798 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1799 = "test"; +>exp1799 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1800 = "test"; +>exp1800 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1801 = "test"; +>exp1801 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1802 = "test"; +>exp1802 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1803 = "test"; +>exp1803 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1804 = "test"; +>exp1804 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1805 = "test"; +>exp1805 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1806 = "test"; +>exp1806 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1807 = "test"; +>exp1807 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1808 = "test"; +>exp1808 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1809 = "test"; +>exp1809 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1810 = "test"; +>exp1810 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1811 = "test"; +>exp1811 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1812 = "test"; +>exp1812 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1813 = "test"; +>exp1813 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1814 = "test"; +>exp1814 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1815 = "test"; +>exp1815 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1816 = "test"; +>exp1816 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1817 = "test"; +>exp1817 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1818 = "test"; +>exp1818 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1819 = "test"; +>exp1819 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1820 = "test"; +>exp1820 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1821 = "test"; +>exp1821 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1822 = "test"; +>exp1822 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1823 = "test"; +>exp1823 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1824 = "test"; +>exp1824 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1825 = "test"; +>exp1825 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1826 = "test"; +>exp1826 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1827 = "test"; +>exp1827 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1828 = "test"; +>exp1828 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1829 = "test"; +>exp1829 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1830 = "test"; +>exp1830 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1831 = "test"; +>exp1831 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1832 = "test"; +>exp1832 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1833 = "test"; +>exp1833 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1834 = "test"; +>exp1834 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1835 = "test"; +>exp1835 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1836 = "test"; +>exp1836 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1837 = "test"; +>exp1837 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1838 = "test"; +>exp1838 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1839 = "test"; +>exp1839 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1840 = "test"; +>exp1840 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1841 = "test"; +>exp1841 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1842 = "test"; +>exp1842 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1843 = "test"; +>exp1843 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1844 = "test"; +>exp1844 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1845 = "test"; +>exp1845 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1846 = "test"; +>exp1846 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1847 = "test"; +>exp1847 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1848 = "test"; +>exp1848 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1849 = "test"; +>exp1849 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1850 = "test"; +>exp1850 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1851 = "test"; +>exp1851 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1852 = "test"; +>exp1852 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1853 = "test"; +>exp1853 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1854 = "test"; +>exp1854 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1855 = "test"; +>exp1855 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1856 = "test"; +>exp1856 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1857 = "test"; +>exp1857 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1858 = "test"; +>exp1858 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1859 = "test"; +>exp1859 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1860 = "test"; +>exp1860 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1861 = "test"; +>exp1861 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1862 = "test"; +>exp1862 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1863 = "test"; +>exp1863 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1864 = "test"; +>exp1864 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1865 = "test"; +>exp1865 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1866 = "test"; +>exp1866 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1867 = "test"; +>exp1867 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1868 = "test"; +>exp1868 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1869 = "test"; +>exp1869 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1870 = "test"; +>exp1870 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1871 = "test"; +>exp1871 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1872 = "test"; +>exp1872 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1873 = "test"; +>exp1873 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1874 = "test"; +>exp1874 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1875 = "test"; +>exp1875 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1876 = "test"; +>exp1876 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1877 = "test"; +>exp1877 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1878 = "test"; +>exp1878 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1879 = "test"; +>exp1879 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1880 = "test"; +>exp1880 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1881 = "test"; +>exp1881 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1882 = "test"; +>exp1882 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1883 = "test"; +>exp1883 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1884 = "test"; +>exp1884 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1885 = "test"; +>exp1885 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1886 = "test"; +>exp1886 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1887 = "test"; +>exp1887 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1888 = "test"; +>exp1888 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1889 = "test"; +>exp1889 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1890 = "test"; +>exp1890 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1891 = "test"; +>exp1891 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1892 = "test"; +>exp1892 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1893 = "test"; +>exp1893 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1894 = "test"; +>exp1894 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1895 = "test"; +>exp1895 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1896 = "test"; +>exp1896 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1897 = "test"; +>exp1897 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1898 = "test"; +>exp1898 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1899 = "test"; +>exp1899 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1900 = "test"; +>exp1900 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1901 = "test"; +>exp1901 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1902 = "test"; +>exp1902 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1903 = "test"; +>exp1903 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1904 = "test"; +>exp1904 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1905 = "test"; +>exp1905 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1906 = "test"; +>exp1906 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1907 = "test"; +>exp1907 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1908 = "test"; +>exp1908 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1909 = "test"; +>exp1909 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1910 = "test"; +>exp1910 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1911 = "test"; +>exp1911 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1912 = "test"; +>exp1912 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1913 = "test"; +>exp1913 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1914 = "test"; +>exp1914 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1915 = "test"; +>exp1915 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1916 = "test"; +>exp1916 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1917 = "test"; +>exp1917 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1918 = "test"; +>exp1918 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1919 = "test"; +>exp1919 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1920 = "test"; +>exp1920 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1921 = "test"; +>exp1921 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1922 = "test"; +>exp1922 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1923 = "test"; +>exp1923 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1924 = "test"; +>exp1924 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1925 = "test"; +>exp1925 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1926 = "test"; +>exp1926 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1927 = "test"; +>exp1927 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1928 = "test"; +>exp1928 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1929 = "test"; +>exp1929 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1930 = "test"; +>exp1930 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1931 = "test"; +>exp1931 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1932 = "test"; +>exp1932 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1933 = "test"; +>exp1933 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1934 = "test"; +>exp1934 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1935 = "test"; +>exp1935 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1936 = "test"; +>exp1936 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1937 = "test"; +>exp1937 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1938 = "test"; +>exp1938 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1939 = "test"; +>exp1939 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1940 = "test"; +>exp1940 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1941 = "test"; +>exp1941 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1942 = "test"; +>exp1942 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1943 = "test"; +>exp1943 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1944 = "test"; +>exp1944 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1945 = "test"; +>exp1945 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1946 = "test"; +>exp1946 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1947 = "test"; +>exp1947 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1948 = "test"; +>exp1948 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1949 = "test"; +>exp1949 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1950 = "test"; +>exp1950 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1951 = "test"; +>exp1951 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1952 = "test"; +>exp1952 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1953 = "test"; +>exp1953 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1954 = "test"; +>exp1954 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1955 = "test"; +>exp1955 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1956 = "test"; +>exp1956 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1957 = "test"; +>exp1957 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1958 = "test"; +>exp1958 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1959 = "test"; +>exp1959 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1960 = "test"; +>exp1960 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1961 = "test"; +>exp1961 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1962 = "test"; +>exp1962 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1963 = "test"; +>exp1963 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1964 = "test"; +>exp1964 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1965 = "test"; +>exp1965 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1966 = "test"; +>exp1966 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1967 = "test"; +>exp1967 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1968 = "test"; +>exp1968 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1969 = "test"; +>exp1969 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1970 = "test"; +>exp1970 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1971 = "test"; +>exp1971 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1972 = "test"; +>exp1972 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1973 = "test"; +>exp1973 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1974 = "test"; +>exp1974 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1975 = "test"; +>exp1975 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1976 = "test"; +>exp1976 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1977 = "test"; +>exp1977 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1978 = "test"; +>exp1978 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1979 = "test"; +>exp1979 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1980 = "test"; +>exp1980 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1981 = "test"; +>exp1981 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1982 = "test"; +>exp1982 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1983 = "test"; +>exp1983 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1984 = "test"; +>exp1984 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1985 = "test"; +>exp1985 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1986 = "test"; +>exp1986 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1987 = "test"; +>exp1987 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1988 = "test"; +>exp1988 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1989 = "test"; +>exp1989 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1990 = "test"; +>exp1990 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1991 = "test"; +>exp1991 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1992 = "test"; +>exp1992 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1993 = "test"; +>exp1993 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1994 = "test"; +>exp1994 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1995 = "test"; +>exp1995 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1996 = "test"; +>exp1996 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1997 = "test"; +>exp1997 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1998 = "test"; +>exp1998 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp1999 = "test"; +>exp1999 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2000 = "test"; +>exp2000 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2001 = "test"; +>exp2001 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2002 = "test"; +>exp2002 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2003 = "test"; +>exp2003 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2004 = "test"; +>exp2004 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2005 = "test"; +>exp2005 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2006 = "test"; +>exp2006 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2007 = "test"; +>exp2007 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2008 = "test"; +>exp2008 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2009 = "test"; +>exp2009 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2010 = "test"; +>exp2010 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2011 = "test"; +>exp2011 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2012 = "test"; +>exp2012 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2013 = "test"; +>exp2013 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2014 = "test"; +>exp2014 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2015 = "test"; +>exp2015 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2016 = "test"; +>exp2016 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2017 = "test"; +>exp2017 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2018 = "test"; +>exp2018 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2019 = "test"; +>exp2019 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2020 = "test"; +>exp2020 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2021 = "test"; +>exp2021 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2022 = "test"; +>exp2022 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2023 = "test"; +>exp2023 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2024 = "test"; +>exp2024 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2025 = "test"; +>exp2025 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2026 = "test"; +>exp2026 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2027 = "test"; +>exp2027 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2028 = "test"; +>exp2028 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2029 = "test"; +>exp2029 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2030 = "test"; +>exp2030 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2031 = "test"; +>exp2031 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2032 = "test"; +>exp2032 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2033 = "test"; +>exp2033 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2034 = "test"; +>exp2034 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2035 = "test"; +>exp2035 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2036 = "test"; +>exp2036 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2037 = "test"; +>exp2037 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2038 = "test"; +>exp2038 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2039 = "test"; +>exp2039 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2040 = "test"; +>exp2040 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2041 = "test"; +>exp2041 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2042 = "test"; +>exp2042 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2043 = "test"; +>exp2043 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2044 = "test"; +>exp2044 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2045 = "test"; +>exp2045 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2046 = "test"; +>exp2046 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2047 = "test"; +>exp2047 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2048 = "test"; +>exp2048 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2049 = "test"; +>exp2049 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2050 = "test"; +>exp2050 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2051 = "test"; +>exp2051 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2052 = "test"; +>exp2052 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2053 = "test"; +>exp2053 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2054 = "test"; +>exp2054 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2055 = "test"; +>exp2055 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2056 = "test"; +>exp2056 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2057 = "test"; +>exp2057 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2058 = "test"; +>exp2058 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2059 = "test"; +>exp2059 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2060 = "test"; +>exp2060 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2061 = "test"; +>exp2061 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2062 = "test"; +>exp2062 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2063 = "test"; +>exp2063 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2064 = "test"; +>exp2064 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2065 = "test"; +>exp2065 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2066 = "test"; +>exp2066 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2067 = "test"; +>exp2067 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2068 = "test"; +>exp2068 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2069 = "test"; +>exp2069 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2070 = "test"; +>exp2070 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2071 = "test"; +>exp2071 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2072 = "test"; +>exp2072 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2073 = "test"; +>exp2073 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2074 = "test"; +>exp2074 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2075 = "test"; +>exp2075 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2076 = "test"; +>exp2076 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2077 = "test"; +>exp2077 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2078 = "test"; +>exp2078 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2079 = "test"; +>exp2079 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2080 = "test"; +>exp2080 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2081 = "test"; +>exp2081 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2082 = "test"; +>exp2082 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2083 = "test"; +>exp2083 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2084 = "test"; +>exp2084 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2085 = "test"; +>exp2085 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2086 = "test"; +>exp2086 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2087 = "test"; +>exp2087 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2088 = "test"; +>exp2088 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2089 = "test"; +>exp2089 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2090 = "test"; +>exp2090 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2091 = "test"; +>exp2091 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2092 = "test"; +>exp2092 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2093 = "test"; +>exp2093 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2094 = "test"; +>exp2094 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2095 = "test"; +>exp2095 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2096 = "test"; +>exp2096 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2097 = "test"; +>exp2097 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2098 = "test"; +>exp2098 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2099 = "test"; +>exp2099 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2100 = "test"; +>exp2100 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2101 = "test"; +>exp2101 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2102 = "test"; +>exp2102 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2103 = "test"; +>exp2103 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2104 = "test"; +>exp2104 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2105 = "test"; +>exp2105 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2106 = "test"; +>exp2106 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2107 = "test"; +>exp2107 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2108 = "test"; +>exp2108 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2109 = "test"; +>exp2109 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2110 = "test"; +>exp2110 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2111 = "test"; +>exp2111 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2112 = "test"; +>exp2112 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2113 = "test"; +>exp2113 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2114 = "test"; +>exp2114 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2115 = "test"; +>exp2115 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2116 = "test"; +>exp2116 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2117 = "test"; +>exp2117 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2118 = "test"; +>exp2118 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2119 = "test"; +>exp2119 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2120 = "test"; +>exp2120 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2121 = "test"; +>exp2121 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2122 = "test"; +>exp2122 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2123 = "test"; +>exp2123 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2124 = "test"; +>exp2124 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2125 = "test"; +>exp2125 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2126 = "test"; +>exp2126 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2127 = "test"; +>exp2127 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2128 = "test"; +>exp2128 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2129 = "test"; +>exp2129 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2130 = "test"; +>exp2130 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2131 = "test"; +>exp2131 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2132 = "test"; +>exp2132 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2133 = "test"; +>exp2133 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2134 = "test"; +>exp2134 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2135 = "test"; +>exp2135 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2136 = "test"; +>exp2136 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2137 = "test"; +>exp2137 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2138 = "test"; +>exp2138 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2139 = "test"; +>exp2139 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2140 = "test"; +>exp2140 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2141 = "test"; +>exp2141 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2142 = "test"; +>exp2142 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2143 = "test"; +>exp2143 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2144 = "test"; +>exp2144 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2145 = "test"; +>exp2145 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2146 = "test"; +>exp2146 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2147 = "test"; +>exp2147 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2148 = "test"; +>exp2148 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2149 = "test"; +>exp2149 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2150 = "test"; +>exp2150 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2151 = "test"; +>exp2151 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2152 = "test"; +>exp2152 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2153 = "test"; +>exp2153 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2154 = "test"; +>exp2154 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2155 = "test"; +>exp2155 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2156 = "test"; +>exp2156 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2157 = "test"; +>exp2157 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2158 = "test"; +>exp2158 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2159 = "test"; +>exp2159 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2160 = "test"; +>exp2160 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2161 = "test"; +>exp2161 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2162 = "test"; +>exp2162 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2163 = "test"; +>exp2163 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2164 = "test"; +>exp2164 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2165 = "test"; +>exp2165 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2166 = "test"; +>exp2166 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2167 = "test"; +>exp2167 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2168 = "test"; +>exp2168 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2169 = "test"; +>exp2169 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2170 = "test"; +>exp2170 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2171 = "test"; +>exp2171 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2172 = "test"; +>exp2172 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2173 = "test"; +>exp2173 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2174 = "test"; +>exp2174 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2175 = "test"; +>exp2175 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2176 = "test"; +>exp2176 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2177 = "test"; +>exp2177 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2178 = "test"; +>exp2178 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2179 = "test"; +>exp2179 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2180 = "test"; +>exp2180 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2181 = "test"; +>exp2181 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2182 = "test"; +>exp2182 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2183 = "test"; +>exp2183 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2184 = "test"; +>exp2184 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2185 = "test"; +>exp2185 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2186 = "test"; +>exp2186 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2187 = "test"; +>exp2187 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2188 = "test"; +>exp2188 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2189 = "test"; +>exp2189 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2190 = "test"; +>exp2190 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2191 = "test"; +>exp2191 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2192 = "test"; +>exp2192 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2193 = "test"; +>exp2193 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2194 = "test"; +>exp2194 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2195 = "test"; +>exp2195 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2196 = "test"; +>exp2196 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2197 = "test"; +>exp2197 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2198 = "test"; +>exp2198 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2199 = "test"; +>exp2199 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2200 = "test"; +>exp2200 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2201 = "test"; +>exp2201 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2202 = "test"; +>exp2202 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2203 = "test"; +>exp2203 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2204 = "test"; +>exp2204 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2205 = "test"; +>exp2205 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2206 = "test"; +>exp2206 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2207 = "test"; +>exp2207 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2208 = "test"; +>exp2208 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2209 = "test"; +>exp2209 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2210 = "test"; +>exp2210 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2211 = "test"; +>exp2211 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2212 = "test"; +>exp2212 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2213 = "test"; +>exp2213 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2214 = "test"; +>exp2214 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2215 = "test"; +>exp2215 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2216 = "test"; +>exp2216 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2217 = "test"; +>exp2217 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2218 = "test"; +>exp2218 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2219 = "test"; +>exp2219 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2220 = "test"; +>exp2220 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2221 = "test"; +>exp2221 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2222 = "test"; +>exp2222 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2223 = "test"; +>exp2223 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2224 = "test"; +>exp2224 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2225 = "test"; +>exp2225 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2226 = "test"; +>exp2226 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2227 = "test"; +>exp2227 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2228 = "test"; +>exp2228 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2229 = "test"; +>exp2229 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2230 = "test"; +>exp2230 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2231 = "test"; +>exp2231 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2232 = "test"; +>exp2232 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2233 = "test"; +>exp2233 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2234 = "test"; +>exp2234 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2235 = "test"; +>exp2235 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2236 = "test"; +>exp2236 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2237 = "test"; +>exp2237 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2238 = "test"; +>exp2238 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2239 = "test"; +>exp2239 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2240 = "test"; +>exp2240 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2241 = "test"; +>exp2241 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2242 = "test"; +>exp2242 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2243 = "test"; +>exp2243 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2244 = "test"; +>exp2244 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2245 = "test"; +>exp2245 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2246 = "test"; +>exp2246 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2247 = "test"; +>exp2247 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2248 = "test"; +>exp2248 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2249 = "test"; +>exp2249 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2250 = "test"; +>exp2250 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2251 = "test"; +>exp2251 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2252 = "test"; +>exp2252 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2253 = "test"; +>exp2253 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2254 = "test"; +>exp2254 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2255 = "test"; +>exp2255 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2256 = "test"; +>exp2256 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2257 = "test"; +>exp2257 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2258 = "test"; +>exp2258 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2259 = "test"; +>exp2259 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2260 = "test"; +>exp2260 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2261 = "test"; +>exp2261 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2262 = "test"; +>exp2262 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2263 = "test"; +>exp2263 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2264 = "test"; +>exp2264 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2265 = "test"; +>exp2265 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2266 = "test"; +>exp2266 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2267 = "test"; +>exp2267 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2268 = "test"; +>exp2268 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2269 = "test"; +>exp2269 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2270 = "test"; +>exp2270 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2271 = "test"; +>exp2271 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2272 = "test"; +>exp2272 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2273 = "test"; +>exp2273 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2274 = "test"; +>exp2274 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2275 = "test"; +>exp2275 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2276 = "test"; +>exp2276 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2277 = "test"; +>exp2277 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2278 = "test"; +>exp2278 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2279 = "test"; +>exp2279 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2280 = "test"; +>exp2280 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2281 = "test"; +>exp2281 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2282 = "test"; +>exp2282 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2283 = "test"; +>exp2283 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2284 = "test"; +>exp2284 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2285 = "test"; +>exp2285 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2286 = "test"; +>exp2286 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2287 = "test"; +>exp2287 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2288 = "test"; +>exp2288 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2289 = "test"; +>exp2289 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2290 = "test"; +>exp2290 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2291 = "test"; +>exp2291 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2292 = "test"; +>exp2292 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2293 = "test"; +>exp2293 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2294 = "test"; +>exp2294 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2295 = "test"; +>exp2295 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2296 = "test"; +>exp2296 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2297 = "test"; +>exp2297 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2298 = "test"; +>exp2298 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2299 = "test"; +>exp2299 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2300 = "test"; +>exp2300 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2301 = "test"; +>exp2301 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2302 = "test"; +>exp2302 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2303 = "test"; +>exp2303 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2304 = "test"; +>exp2304 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2305 = "test"; +>exp2305 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2306 = "test"; +>exp2306 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2307 = "test"; +>exp2307 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2308 = "test"; +>exp2308 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2309 = "test"; +>exp2309 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2310 = "test"; +>exp2310 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2311 = "test"; +>exp2311 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2312 = "test"; +>exp2312 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2313 = "test"; +>exp2313 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2314 = "test"; +>exp2314 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2315 = "test"; +>exp2315 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2316 = "test"; +>exp2316 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2317 = "test"; +>exp2317 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2318 = "test"; +>exp2318 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2319 = "test"; +>exp2319 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2320 = "test"; +>exp2320 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2321 = "test"; +>exp2321 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2322 = "test"; +>exp2322 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2323 = "test"; +>exp2323 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2324 = "test"; +>exp2324 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2325 = "test"; +>exp2325 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2326 = "test"; +>exp2326 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2327 = "test"; +>exp2327 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2328 = "test"; +>exp2328 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2329 = "test"; +>exp2329 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2330 = "test"; +>exp2330 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2331 = "test"; +>exp2331 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2332 = "test"; +>exp2332 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2333 = "test"; +>exp2333 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2334 = "test"; +>exp2334 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2335 = "test"; +>exp2335 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2336 = "test"; +>exp2336 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2337 = "test"; +>exp2337 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2338 = "test"; +>exp2338 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2339 = "test"; +>exp2339 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2340 = "test"; +>exp2340 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2341 = "test"; +>exp2341 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2342 = "test"; +>exp2342 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2343 = "test"; +>exp2343 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2344 = "test"; +>exp2344 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2345 = "test"; +>exp2345 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2346 = "test"; +>exp2346 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2347 = "test"; +>exp2347 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2348 = "test"; +>exp2348 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2349 = "test"; +>exp2349 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2350 = "test"; +>exp2350 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2351 = "test"; +>exp2351 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2352 = "test"; +>exp2352 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2353 = "test"; +>exp2353 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2354 = "test"; +>exp2354 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2355 = "test"; +>exp2355 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2356 = "test"; +>exp2356 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2357 = "test"; +>exp2357 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2358 = "test"; +>exp2358 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2359 = "test"; +>exp2359 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2360 = "test"; +>exp2360 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2361 = "test"; +>exp2361 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2362 = "test"; +>exp2362 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2363 = "test"; +>exp2363 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2364 = "test"; +>exp2364 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2365 = "test"; +>exp2365 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2366 = "test"; +>exp2366 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2367 = "test"; +>exp2367 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2368 = "test"; +>exp2368 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2369 = "test"; +>exp2369 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2370 = "test"; +>exp2370 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2371 = "test"; +>exp2371 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2372 = "test"; +>exp2372 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2373 = "test"; +>exp2373 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2374 = "test"; +>exp2374 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2375 = "test"; +>exp2375 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2376 = "test"; +>exp2376 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2377 = "test"; +>exp2377 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2378 = "test"; +>exp2378 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2379 = "test"; +>exp2379 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2380 = "test"; +>exp2380 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2381 = "test"; +>exp2381 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2382 = "test"; +>exp2382 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2383 = "test"; +>exp2383 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2384 = "test"; +>exp2384 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2385 = "test"; +>exp2385 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2386 = "test"; +>exp2386 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2387 = "test"; +>exp2387 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2388 = "test"; +>exp2388 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2389 = "test"; +>exp2389 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2390 = "test"; +>exp2390 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2391 = "test"; +>exp2391 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2392 = "test"; +>exp2392 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2393 = "test"; +>exp2393 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2394 = "test"; +>exp2394 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2395 = "test"; +>exp2395 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2396 = "test"; +>exp2396 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2397 = "test"; +>exp2397 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2398 = "test"; +>exp2398 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2399 = "test"; +>exp2399 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2400 = "test"; +>exp2400 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2401 = "test"; +>exp2401 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2402 = "test"; +>exp2402 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2403 = "test"; +>exp2403 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2404 = "test"; +>exp2404 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2405 = "test"; +>exp2405 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2406 = "test"; +>exp2406 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2407 = "test"; +>exp2407 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2408 = "test"; +>exp2408 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2409 = "test"; +>exp2409 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2410 = "test"; +>exp2410 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2411 = "test"; +>exp2411 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2412 = "test"; +>exp2412 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2413 = "test"; +>exp2413 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2414 = "test"; +>exp2414 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2415 = "test"; +>exp2415 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2416 = "test"; +>exp2416 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2417 = "test"; +>exp2417 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2418 = "test"; +>exp2418 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2419 = "test"; +>exp2419 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2420 = "test"; +>exp2420 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2421 = "test"; +>exp2421 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2422 = "test"; +>exp2422 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2423 = "test"; +>exp2423 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2424 = "test"; +>exp2424 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2425 = "test"; +>exp2425 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2426 = "test"; +>exp2426 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2427 = "test"; +>exp2427 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2428 = "test"; +>exp2428 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2429 = "test"; +>exp2429 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2430 = "test"; +>exp2430 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2431 = "test"; +>exp2431 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2432 = "test"; +>exp2432 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2433 = "test"; +>exp2433 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2434 = "test"; +>exp2434 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2435 = "test"; +>exp2435 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2436 = "test"; +>exp2436 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2437 = "test"; +>exp2437 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2438 = "test"; +>exp2438 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2439 = "test"; +>exp2439 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2440 = "test"; +>exp2440 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2441 = "test"; +>exp2441 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2442 = "test"; +>exp2442 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2443 = "test"; +>exp2443 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2444 = "test"; +>exp2444 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2445 = "test"; +>exp2445 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2446 = "test"; +>exp2446 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2447 = "test"; +>exp2447 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2448 = "test"; +>exp2448 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2449 = "test"; +>exp2449 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2450 = "test"; +>exp2450 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2451 = "test"; +>exp2451 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2452 = "test"; +>exp2452 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2453 = "test"; +>exp2453 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2454 = "test"; +>exp2454 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2455 = "test"; +>exp2455 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2456 = "test"; +>exp2456 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2457 = "test"; +>exp2457 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2458 = "test"; +>exp2458 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2459 = "test"; +>exp2459 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2460 = "test"; +>exp2460 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2461 = "test"; +>exp2461 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2462 = "test"; +>exp2462 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2463 = "test"; +>exp2463 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2464 = "test"; +>exp2464 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2465 = "test"; +>exp2465 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2466 = "test"; +>exp2466 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2467 = "test"; +>exp2467 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2468 = "test"; +>exp2468 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2469 = "test"; +>exp2469 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2470 = "test"; +>exp2470 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2471 = "test"; +>exp2471 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2472 = "test"; +>exp2472 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2473 = "test"; +>exp2473 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2474 = "test"; +>exp2474 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2475 = "test"; +>exp2475 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2476 = "test"; +>exp2476 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2477 = "test"; +>exp2477 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2478 = "test"; +>exp2478 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2479 = "test"; +>exp2479 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2480 = "test"; +>exp2480 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2481 = "test"; +>exp2481 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2482 = "test"; +>exp2482 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2483 = "test"; +>exp2483 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2484 = "test"; +>exp2484 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2485 = "test"; +>exp2485 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2486 = "test"; +>exp2486 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2487 = "test"; +>exp2487 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2488 = "test"; +>exp2488 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2489 = "test"; +>exp2489 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2490 = "test"; +>exp2490 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2491 = "test"; +>exp2491 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2492 = "test"; +>exp2492 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2493 = "test"; +>exp2493 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2494 = "test"; +>exp2494 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2495 = "test"; +>exp2495 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2496 = "test"; +>exp2496 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2497 = "test"; +>exp2497 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2498 = "test"; +>exp2498 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2499 = "test"; +>exp2499 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2500 = "test"; +>exp2500 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2501 = "test"; +>exp2501 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2502 = "test"; +>exp2502 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2503 = "test"; +>exp2503 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2504 = "test"; +>exp2504 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2505 = "test"; +>exp2505 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2506 = "test"; +>exp2506 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2507 = "test"; +>exp2507 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2508 = "test"; +>exp2508 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2509 = "test"; +>exp2509 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2510 = "test"; +>exp2510 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2511 = "test"; +>exp2511 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2512 = "test"; +>exp2512 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2513 = "test"; +>exp2513 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2514 = "test"; +>exp2514 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2515 = "test"; +>exp2515 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2516 = "test"; +>exp2516 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2517 = "test"; +>exp2517 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2518 = "test"; +>exp2518 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2519 = "test"; +>exp2519 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2520 = "test"; +>exp2520 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2521 = "test"; +>exp2521 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2522 = "test"; +>exp2522 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2523 = "test"; +>exp2523 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2524 = "test"; +>exp2524 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2525 = "test"; +>exp2525 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2526 = "test"; +>exp2526 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2527 = "test"; +>exp2527 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2528 = "test"; +>exp2528 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2529 = "test"; +>exp2529 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2530 = "test"; +>exp2530 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2531 = "test"; +>exp2531 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2532 = "test"; +>exp2532 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2533 = "test"; +>exp2533 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2534 = "test"; +>exp2534 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2535 = "test"; +>exp2535 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2536 = "test"; +>exp2536 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2537 = "test"; +>exp2537 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2538 = "test"; +>exp2538 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2539 = "test"; +>exp2539 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2540 = "test"; +>exp2540 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2541 = "test"; +>exp2541 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2542 = "test"; +>exp2542 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2543 = "test"; +>exp2543 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2544 = "test"; +>exp2544 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2545 = "test"; +>exp2545 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2546 = "test"; +>exp2546 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2547 = "test"; +>exp2547 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2548 = "test"; +>exp2548 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2549 = "test"; +>exp2549 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2550 = "test"; +>exp2550 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2551 = "test"; +>exp2551 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2552 = "test"; +>exp2552 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2553 = "test"; +>exp2553 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2554 = "test"; +>exp2554 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2555 = "test"; +>exp2555 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2556 = "test"; +>exp2556 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2557 = "test"; +>exp2557 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2558 = "test"; +>exp2558 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2559 = "test"; +>exp2559 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2560 = "test"; +>exp2560 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2561 = "test"; +>exp2561 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2562 = "test"; +>exp2562 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2563 = "test"; +>exp2563 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2564 = "test"; +>exp2564 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2565 = "test"; +>exp2565 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2566 = "test"; +>exp2566 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2567 = "test"; +>exp2567 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2568 = "test"; +>exp2568 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2569 = "test"; +>exp2569 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2570 = "test"; +>exp2570 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2571 = "test"; +>exp2571 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2572 = "test"; +>exp2572 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2573 = "test"; +>exp2573 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2574 = "test"; +>exp2574 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2575 = "test"; +>exp2575 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2576 = "test"; +>exp2576 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2577 = "test"; +>exp2577 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2578 = "test"; +>exp2578 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2579 = "test"; +>exp2579 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2580 = "test"; +>exp2580 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2581 = "test"; +>exp2581 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2582 = "test"; +>exp2582 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2583 = "test"; +>exp2583 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2584 = "test"; +>exp2584 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2585 = "test"; +>exp2585 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2586 = "test"; +>exp2586 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2587 = "test"; +>exp2587 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2588 = "test"; +>exp2588 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2589 = "test"; +>exp2589 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2590 = "test"; +>exp2590 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2591 = "test"; +>exp2591 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2592 = "test"; +>exp2592 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2593 = "test"; +>exp2593 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2594 = "test"; +>exp2594 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2595 = "test"; +>exp2595 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2596 = "test"; +>exp2596 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2597 = "test"; +>exp2597 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2598 = "test"; +>exp2598 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2599 = "test"; +>exp2599 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2600 = "test"; +>exp2600 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2601 = "test"; +>exp2601 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2602 = "test"; +>exp2602 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2603 = "test"; +>exp2603 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2604 = "test"; +>exp2604 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2605 = "test"; +>exp2605 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2606 = "test"; +>exp2606 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2607 = "test"; +>exp2607 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2608 = "test"; +>exp2608 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2609 = "test"; +>exp2609 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2610 = "test"; +>exp2610 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2611 = "test"; +>exp2611 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2612 = "test"; +>exp2612 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2613 = "test"; +>exp2613 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2614 = "test"; +>exp2614 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2615 = "test"; +>exp2615 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2616 = "test"; +>exp2616 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2617 = "test"; +>exp2617 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2618 = "test"; +>exp2618 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2619 = "test"; +>exp2619 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2620 = "test"; +>exp2620 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2621 = "test"; +>exp2621 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2622 = "test"; +>exp2622 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2623 = "test"; +>exp2623 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2624 = "test"; +>exp2624 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2625 = "test"; +>exp2625 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2626 = "test"; +>exp2626 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2627 = "test"; +>exp2627 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2628 = "test"; +>exp2628 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2629 = "test"; +>exp2629 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2630 = "test"; +>exp2630 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2631 = "test"; +>exp2631 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2632 = "test"; +>exp2632 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2633 = "test"; +>exp2633 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2634 = "test"; +>exp2634 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2635 = "test"; +>exp2635 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2636 = "test"; +>exp2636 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2637 = "test"; +>exp2637 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2638 = "test"; +>exp2638 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2639 = "test"; +>exp2639 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2640 = "test"; +>exp2640 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2641 = "test"; +>exp2641 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2642 = "test"; +>exp2642 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2643 = "test"; +>exp2643 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2644 = "test"; +>exp2644 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2645 = "test"; +>exp2645 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2646 = "test"; +>exp2646 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2647 = "test"; +>exp2647 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2648 = "test"; +>exp2648 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2649 = "test"; +>exp2649 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2650 = "test"; +>exp2650 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2651 = "test"; +>exp2651 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2652 = "test"; +>exp2652 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2653 = "test"; +>exp2653 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2654 = "test"; +>exp2654 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2655 = "test"; +>exp2655 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2656 = "test"; +>exp2656 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2657 = "test"; +>exp2657 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2658 = "test"; +>exp2658 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2659 = "test"; +>exp2659 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2660 = "test"; +>exp2660 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2661 = "test"; +>exp2661 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2662 = "test"; +>exp2662 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2663 = "test"; +>exp2663 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2664 = "test"; +>exp2664 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2665 = "test"; +>exp2665 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2666 = "test"; +>exp2666 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2667 = "test"; +>exp2667 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2668 = "test"; +>exp2668 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2669 = "test"; +>exp2669 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2670 = "test"; +>exp2670 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2671 = "test"; +>exp2671 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2672 = "test"; +>exp2672 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2673 = "test"; +>exp2673 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2674 = "test"; +>exp2674 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2675 = "test"; +>exp2675 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2676 = "test"; +>exp2676 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2677 = "test"; +>exp2677 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2678 = "test"; +>exp2678 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2679 = "test"; +>exp2679 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2680 = "test"; +>exp2680 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2681 = "test"; +>exp2681 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2682 = "test"; +>exp2682 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2683 = "test"; +>exp2683 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2684 = "test"; +>exp2684 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2685 = "test"; +>exp2685 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2686 = "test"; +>exp2686 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2687 = "test"; +>exp2687 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2688 = "test"; +>exp2688 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2689 = "test"; +>exp2689 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2690 = "test"; +>exp2690 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2691 = "test"; +>exp2691 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2692 = "test"; +>exp2692 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2693 = "test"; +>exp2693 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2694 = "test"; +>exp2694 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2695 = "test"; +>exp2695 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2696 = "test"; +>exp2696 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2697 = "test"; +>exp2697 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2698 = "test"; +>exp2698 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2699 = "test"; +>exp2699 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2700 = "test"; +>exp2700 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2701 = "test"; +>exp2701 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2702 = "test"; +>exp2702 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2703 = "test"; +>exp2703 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2704 = "test"; +>exp2704 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2705 = "test"; +>exp2705 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2706 = "test"; +>exp2706 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2707 = "test"; +>exp2707 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2708 = "test"; +>exp2708 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2709 = "test"; +>exp2709 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2710 = "test"; +>exp2710 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2711 = "test"; +>exp2711 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2712 = "test"; +>exp2712 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2713 = "test"; +>exp2713 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2714 = "test"; +>exp2714 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2715 = "test"; +>exp2715 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2716 = "test"; +>exp2716 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2717 = "test"; +>exp2717 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2718 = "test"; +>exp2718 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2719 = "test"; +>exp2719 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2720 = "test"; +>exp2720 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2721 = "test"; +>exp2721 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2722 = "test"; +>exp2722 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2723 = "test"; +>exp2723 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2724 = "test"; +>exp2724 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2725 = "test"; +>exp2725 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2726 = "test"; +>exp2726 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2727 = "test"; +>exp2727 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2728 = "test"; +>exp2728 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2729 = "test"; +>exp2729 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2730 = "test"; +>exp2730 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2731 = "test"; +>exp2731 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2732 = "test"; +>exp2732 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2733 = "test"; +>exp2733 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2734 = "test"; +>exp2734 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2735 = "test"; +>exp2735 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2736 = "test"; +>exp2736 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2737 = "test"; +>exp2737 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2738 = "test"; +>exp2738 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2739 = "test"; +>exp2739 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2740 = "test"; +>exp2740 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2741 = "test"; +>exp2741 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2742 = "test"; +>exp2742 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2743 = "test"; +>exp2743 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2744 = "test"; +>exp2744 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2745 = "test"; +>exp2745 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2746 = "test"; +>exp2746 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2747 = "test"; +>exp2747 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2748 = "test"; +>exp2748 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2749 = "test"; +>exp2749 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2750 = "test"; +>exp2750 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2751 = "test"; +>exp2751 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2752 = "test"; +>exp2752 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2753 = "test"; +>exp2753 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2754 = "test"; +>exp2754 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2755 = "test"; +>exp2755 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2756 = "test"; +>exp2756 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2757 = "test"; +>exp2757 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2758 = "test"; +>exp2758 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2759 = "test"; +>exp2759 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2760 = "test"; +>exp2760 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2761 = "test"; +>exp2761 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2762 = "test"; +>exp2762 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2763 = "test"; +>exp2763 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2764 = "test"; +>exp2764 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2765 = "test"; +>exp2765 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2766 = "test"; +>exp2766 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2767 = "test"; +>exp2767 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2768 = "test"; +>exp2768 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2769 = "test"; +>exp2769 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2770 = "test"; +>exp2770 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2771 = "test"; +>exp2771 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2772 = "test"; +>exp2772 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2773 = "test"; +>exp2773 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2774 = "test"; +>exp2774 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2775 = "test"; +>exp2775 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2776 = "test"; +>exp2776 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2777 = "test"; +>exp2777 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2778 = "test"; +>exp2778 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2779 = "test"; +>exp2779 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2780 = "test"; +>exp2780 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2781 = "test"; +>exp2781 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2782 = "test"; +>exp2782 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2783 = "test"; +>exp2783 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2784 = "test"; +>exp2784 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2785 = "test"; +>exp2785 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2786 = "test"; +>exp2786 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2787 = "test"; +>exp2787 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2788 = "test"; +>exp2788 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2789 = "test"; +>exp2789 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2790 = "test"; +>exp2790 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2791 = "test"; +>exp2791 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2792 = "test"; +>exp2792 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2793 = "test"; +>exp2793 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2794 = "test"; +>exp2794 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2795 = "test"; +>exp2795 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2796 = "test"; +>exp2796 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2797 = "test"; +>exp2797 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2798 = "test"; +>exp2798 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2799 = "test"; +>exp2799 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2800 = "test"; +>exp2800 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2801 = "test"; +>exp2801 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2802 = "test"; +>exp2802 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2803 = "test"; +>exp2803 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2804 = "test"; +>exp2804 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2805 = "test"; +>exp2805 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2806 = "test"; +>exp2806 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2807 = "test"; +>exp2807 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2808 = "test"; +>exp2808 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2809 = "test"; +>exp2809 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2810 = "test"; +>exp2810 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2811 = "test"; +>exp2811 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2812 = "test"; +>exp2812 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2813 = "test"; +>exp2813 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2814 = "test"; +>exp2814 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2815 = "test"; +>exp2815 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2816 = "test"; +>exp2816 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2817 = "test"; +>exp2817 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2818 = "test"; +>exp2818 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2819 = "test"; +>exp2819 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2820 = "test"; +>exp2820 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2821 = "test"; +>exp2821 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2822 = "test"; +>exp2822 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2823 = "test"; +>exp2823 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2824 = "test"; +>exp2824 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2825 = "test"; +>exp2825 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2826 = "test"; +>exp2826 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2827 = "test"; +>exp2827 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2828 = "test"; +>exp2828 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2829 = "test"; +>exp2829 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2830 = "test"; +>exp2830 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2831 = "test"; +>exp2831 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2832 = "test"; +>exp2832 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2833 = "test"; +>exp2833 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2834 = "test"; +>exp2834 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2835 = "test"; +>exp2835 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2836 = "test"; +>exp2836 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2837 = "test"; +>exp2837 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2838 = "test"; +>exp2838 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2839 = "test"; +>exp2839 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2840 = "test"; +>exp2840 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2841 = "test"; +>exp2841 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2842 = "test"; +>exp2842 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2843 = "test"; +>exp2843 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2844 = "test"; +>exp2844 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2845 = "test"; +>exp2845 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2846 = "test"; +>exp2846 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2847 = "test"; +>exp2847 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2848 = "test"; +>exp2848 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2849 = "test"; +>exp2849 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2850 = "test"; +>exp2850 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2851 = "test"; +>exp2851 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2852 = "test"; +>exp2852 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2853 = "test"; +>exp2853 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2854 = "test"; +>exp2854 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2855 = "test"; +>exp2855 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2856 = "test"; +>exp2856 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2857 = "test"; +>exp2857 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2858 = "test"; +>exp2858 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2859 = "test"; +>exp2859 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2860 = "test"; +>exp2860 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2861 = "test"; +>exp2861 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2862 = "test"; +>exp2862 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2863 = "test"; +>exp2863 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2864 = "test"; +>exp2864 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2865 = "test"; +>exp2865 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2866 = "test"; +>exp2866 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2867 = "test"; +>exp2867 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2868 = "test"; +>exp2868 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2869 = "test"; +>exp2869 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2870 = "test"; +>exp2870 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2871 = "test"; +>exp2871 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2872 = "test"; +>exp2872 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2873 = "test"; +>exp2873 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2874 = "test"; +>exp2874 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2875 = "test"; +>exp2875 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2876 = "test"; +>exp2876 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2877 = "test"; +>exp2877 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2878 = "test"; +>exp2878 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2879 = "test"; +>exp2879 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2880 = "test"; +>exp2880 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2881 = "test"; +>exp2881 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2882 = "test"; +>exp2882 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2883 = "test"; +>exp2883 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2884 = "test"; +>exp2884 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2885 = "test"; +>exp2885 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2886 = "test"; +>exp2886 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2887 = "test"; +>exp2887 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2888 = "test"; +>exp2888 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2889 = "test"; +>exp2889 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2890 = "test"; +>exp2890 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2891 = "test"; +>exp2891 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2892 = "test"; +>exp2892 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2893 = "test"; +>exp2893 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2894 = "test"; +>exp2894 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2895 = "test"; +>exp2895 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2896 = "test"; +>exp2896 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2897 = "test"; +>exp2897 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2898 = "test"; +>exp2898 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2899 = "test"; +>exp2899 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2900 = "test"; +>exp2900 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2901 = "test"; +>exp2901 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2902 = "test"; +>exp2902 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2903 = "test"; +>exp2903 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2904 = "test"; +>exp2904 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2905 = "test"; +>exp2905 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2906 = "test"; +>exp2906 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2907 = "test"; +>exp2907 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2908 = "test"; +>exp2908 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2909 = "test"; +>exp2909 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2910 = "test"; +>exp2910 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2911 = "test"; +>exp2911 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2912 = "test"; +>exp2912 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2913 = "test"; +>exp2913 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2914 = "test"; +>exp2914 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2915 = "test"; +>exp2915 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2916 = "test"; +>exp2916 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2917 = "test"; +>exp2917 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2918 = "test"; +>exp2918 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2919 = "test"; +>exp2919 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2920 = "test"; +>exp2920 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2921 = "test"; +>exp2921 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2922 = "test"; +>exp2922 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2923 = "test"; +>exp2923 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2924 = "test"; +>exp2924 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2925 = "test"; +>exp2925 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2926 = "test"; +>exp2926 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2927 = "test"; +>exp2927 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2928 = "test"; +>exp2928 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2929 = "test"; +>exp2929 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2930 = "test"; +>exp2930 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2931 = "test"; +>exp2931 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2932 = "test"; +>exp2932 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2933 = "test"; +>exp2933 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2934 = "test"; +>exp2934 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2935 = "test"; +>exp2935 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2936 = "test"; +>exp2936 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2937 = "test"; +>exp2937 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2938 = "test"; +>exp2938 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2939 = "test"; +>exp2939 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2940 = "test"; +>exp2940 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2941 = "test"; +>exp2941 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2942 = "test"; +>exp2942 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2943 = "test"; +>exp2943 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2944 = "test"; +>exp2944 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2945 = "test"; +>exp2945 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2946 = "test"; +>exp2946 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2947 = "test"; +>exp2947 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2948 = "test"; +>exp2948 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2949 = "test"; +>exp2949 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2950 = "test"; +>exp2950 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2951 = "test"; +>exp2951 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2952 = "test"; +>exp2952 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2953 = "test"; +>exp2953 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2954 = "test"; +>exp2954 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2955 = "test"; +>exp2955 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2956 = "test"; +>exp2956 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2957 = "test"; +>exp2957 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2958 = "test"; +>exp2958 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2959 = "test"; +>exp2959 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2960 = "test"; +>exp2960 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2961 = "test"; +>exp2961 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2962 = "test"; +>exp2962 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2963 = "test"; +>exp2963 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2964 = "test"; +>exp2964 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2965 = "test"; +>exp2965 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2966 = "test"; +>exp2966 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2967 = "test"; +>exp2967 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2968 = "test"; +>exp2968 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2969 = "test"; +>exp2969 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2970 = "test"; +>exp2970 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2971 = "test"; +>exp2971 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2972 = "test"; +>exp2972 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2973 = "test"; +>exp2973 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2974 = "test"; +>exp2974 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2975 = "test"; +>exp2975 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2976 = "test"; +>exp2976 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2977 = "test"; +>exp2977 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2978 = "test"; +>exp2978 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2979 = "test"; +>exp2979 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2980 = "test"; +>exp2980 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2981 = "test"; +>exp2981 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2982 = "test"; +>exp2982 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2983 = "test"; +>exp2983 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2984 = "test"; +>exp2984 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2985 = "test"; +>exp2985 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2986 = "test"; +>exp2986 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2987 = "test"; +>exp2987 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2988 = "test"; +>exp2988 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2989 = "test"; +>exp2989 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2990 = "test"; +>exp2990 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2991 = "test"; +>exp2991 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2992 = "test"; +>exp2992 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2993 = "test"; +>exp2993 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2994 = "test"; +>exp2994 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2995 = "test"; +>exp2995 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2996 = "test"; +>exp2996 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2997 = "test"; +>exp2997 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2998 = "test"; +>exp2998 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp2999 = "test"; +>exp2999 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3000 = "test"; +>exp3000 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3001 = "test"; +>exp3001 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3002 = "test"; +>exp3002 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3003 = "test"; +>exp3003 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3004 = "test"; +>exp3004 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3005 = "test"; +>exp3005 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3006 = "test"; +>exp3006 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3007 = "test"; +>exp3007 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3008 = "test"; +>exp3008 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3009 = "test"; +>exp3009 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3010 = "test"; +>exp3010 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3011 = "test"; +>exp3011 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3012 = "test"; +>exp3012 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3013 = "test"; +>exp3013 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3014 = "test"; +>exp3014 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3015 = "test"; +>exp3015 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3016 = "test"; +>exp3016 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3017 = "test"; +>exp3017 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3018 = "test"; +>exp3018 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3019 = "test"; +>exp3019 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3020 = "test"; +>exp3020 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3021 = "test"; +>exp3021 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3022 = "test"; +>exp3022 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3023 = "test"; +>exp3023 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3024 = "test"; +>exp3024 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3025 = "test"; +>exp3025 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3026 = "test"; +>exp3026 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3027 = "test"; +>exp3027 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3028 = "test"; +>exp3028 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3029 = "test"; +>exp3029 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3030 = "test"; +>exp3030 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3031 = "test"; +>exp3031 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3032 = "test"; +>exp3032 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3033 = "test"; +>exp3033 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3034 = "test"; +>exp3034 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3035 = "test"; +>exp3035 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3036 = "test"; +>exp3036 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3037 = "test"; +>exp3037 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3038 = "test"; +>exp3038 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3039 = "test"; +>exp3039 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3040 = "test"; +>exp3040 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3041 = "test"; +>exp3041 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3042 = "test"; +>exp3042 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3043 = "test"; +>exp3043 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3044 = "test"; +>exp3044 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3045 = "test"; +>exp3045 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3046 = "test"; +>exp3046 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3047 = "test"; +>exp3047 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3048 = "test"; +>exp3048 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3049 = "test"; +>exp3049 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3050 = "test"; +>exp3050 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3051 = "test"; +>exp3051 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3052 = "test"; +>exp3052 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3053 = "test"; +>exp3053 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3054 = "test"; +>exp3054 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3055 = "test"; +>exp3055 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3056 = "test"; +>exp3056 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3057 = "test"; +>exp3057 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3058 = "test"; +>exp3058 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3059 = "test"; +>exp3059 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3060 = "test"; +>exp3060 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3061 = "test"; +>exp3061 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3062 = "test"; +>exp3062 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3063 = "test"; +>exp3063 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3064 = "test"; +>exp3064 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3065 = "test"; +>exp3065 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3066 = "test"; +>exp3066 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3067 = "test"; +>exp3067 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3068 = "test"; +>exp3068 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3069 = "test"; +>exp3069 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3070 = "test"; +>exp3070 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3071 = "test"; +>exp3071 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3072 = "test"; +>exp3072 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3073 = "test"; +>exp3073 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3074 = "test"; +>exp3074 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3075 = "test"; +>exp3075 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3076 = "test"; +>exp3076 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3077 = "test"; +>exp3077 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3078 = "test"; +>exp3078 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3079 = "test"; +>exp3079 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3080 = "test"; +>exp3080 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3081 = "test"; +>exp3081 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3082 = "test"; +>exp3082 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3083 = "test"; +>exp3083 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3084 = "test"; +>exp3084 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3085 = "test"; +>exp3085 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3086 = "test"; +>exp3086 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3087 = "test"; +>exp3087 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3088 = "test"; +>exp3088 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3089 = "test"; +>exp3089 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3090 = "test"; +>exp3090 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3091 = "test"; +>exp3091 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3092 = "test"; +>exp3092 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3093 = "test"; +>exp3093 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3094 = "test"; +>exp3094 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3095 = "test"; +>exp3095 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3096 = "test"; +>exp3096 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3097 = "test"; +>exp3097 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3098 = "test"; +>exp3098 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3099 = "test"; +>exp3099 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3100 = "test"; +>exp3100 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3101 = "test"; +>exp3101 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3102 = "test"; +>exp3102 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3103 = "test"; +>exp3103 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3104 = "test"; +>exp3104 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3105 = "test"; +>exp3105 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3106 = "test"; +>exp3106 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3107 = "test"; +>exp3107 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3108 = "test"; +>exp3108 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3109 = "test"; +>exp3109 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3110 = "test"; +>exp3110 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3111 = "test"; +>exp3111 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3112 = "test"; +>exp3112 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3113 = "test"; +>exp3113 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3114 = "test"; +>exp3114 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3115 = "test"; +>exp3115 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3116 = "test"; +>exp3116 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3117 = "test"; +>exp3117 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3118 = "test"; +>exp3118 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3119 = "test"; +>exp3119 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3120 = "test"; +>exp3120 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3121 = "test"; +>exp3121 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3122 = "test"; +>exp3122 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3123 = "test"; +>exp3123 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3124 = "test"; +>exp3124 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3125 = "test"; +>exp3125 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3126 = "test"; +>exp3126 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3127 = "test"; +>exp3127 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3128 = "test"; +>exp3128 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3129 = "test"; +>exp3129 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3130 = "test"; +>exp3130 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3131 = "test"; +>exp3131 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3132 = "test"; +>exp3132 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3133 = "test"; +>exp3133 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3134 = "test"; +>exp3134 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3135 = "test"; +>exp3135 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3136 = "test"; +>exp3136 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3137 = "test"; +>exp3137 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3138 = "test"; +>exp3138 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3139 = "test"; +>exp3139 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3140 = "test"; +>exp3140 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3141 = "test"; +>exp3141 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3142 = "test"; +>exp3142 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3143 = "test"; +>exp3143 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3144 = "test"; +>exp3144 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3145 = "test"; +>exp3145 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3146 = "test"; +>exp3146 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3147 = "test"; +>exp3147 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3148 = "test"; +>exp3148 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3149 = "test"; +>exp3149 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3150 = "test"; +>exp3150 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3151 = "test"; +>exp3151 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3152 = "test"; +>exp3152 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3153 = "test"; +>exp3153 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3154 = "test"; +>exp3154 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3155 = "test"; +>exp3155 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3156 = "test"; +>exp3156 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3157 = "test"; +>exp3157 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3158 = "test"; +>exp3158 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3159 = "test"; +>exp3159 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3160 = "test"; +>exp3160 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3161 = "test"; +>exp3161 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3162 = "test"; +>exp3162 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3163 = "test"; +>exp3163 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3164 = "test"; +>exp3164 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3165 = "test"; +>exp3165 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3166 = "test"; +>exp3166 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3167 = "test"; +>exp3167 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3168 = "test"; +>exp3168 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3169 = "test"; +>exp3169 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3170 = "test"; +>exp3170 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3171 = "test"; +>exp3171 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3172 = "test"; +>exp3172 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3173 = "test"; +>exp3173 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3174 = "test"; +>exp3174 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3175 = "test"; +>exp3175 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3176 = "test"; +>exp3176 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3177 = "test"; +>exp3177 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3178 = "test"; +>exp3178 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3179 = "test"; +>exp3179 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3180 = "test"; +>exp3180 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3181 = "test"; +>exp3181 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3182 = "test"; +>exp3182 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3183 = "test"; +>exp3183 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3184 = "test"; +>exp3184 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3185 = "test"; +>exp3185 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3186 = "test"; +>exp3186 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3187 = "test"; +>exp3187 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3188 = "test"; +>exp3188 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3189 = "test"; +>exp3189 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3190 = "test"; +>exp3190 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3191 = "test"; +>exp3191 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3192 = "test"; +>exp3192 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3193 = "test"; +>exp3193 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3194 = "test"; +>exp3194 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3195 = "test"; +>exp3195 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3196 = "test"; +>exp3196 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3197 = "test"; +>exp3197 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3198 = "test"; +>exp3198 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3199 = "test"; +>exp3199 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3200 = "test"; +>exp3200 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3201 = "test"; +>exp3201 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3202 = "test"; +>exp3202 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3203 = "test"; +>exp3203 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3204 = "test"; +>exp3204 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3205 = "test"; +>exp3205 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3206 = "test"; +>exp3206 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3207 = "test"; +>exp3207 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3208 = "test"; +>exp3208 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3209 = "test"; +>exp3209 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3210 = "test"; +>exp3210 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3211 = "test"; +>exp3211 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3212 = "test"; +>exp3212 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3213 = "test"; +>exp3213 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3214 = "test"; +>exp3214 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3215 = "test"; +>exp3215 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3216 = "test"; +>exp3216 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3217 = "test"; +>exp3217 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3218 = "test"; +>exp3218 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3219 = "test"; +>exp3219 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3220 = "test"; +>exp3220 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3221 = "test"; +>exp3221 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3222 = "test"; +>exp3222 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3223 = "test"; +>exp3223 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3224 = "test"; +>exp3224 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3225 = "test"; +>exp3225 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3226 = "test"; +>exp3226 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3227 = "test"; +>exp3227 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3228 = "test"; +>exp3228 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3229 = "test"; +>exp3229 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3230 = "test"; +>exp3230 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3231 = "test"; +>exp3231 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3232 = "test"; +>exp3232 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3233 = "test"; +>exp3233 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3234 = "test"; +>exp3234 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3235 = "test"; +>exp3235 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3236 = "test"; +>exp3236 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3237 = "test"; +>exp3237 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3238 = "test"; +>exp3238 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3239 = "test"; +>exp3239 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3240 = "test"; +>exp3240 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3241 = "test"; +>exp3241 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3242 = "test"; +>exp3242 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3243 = "test"; +>exp3243 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3244 = "test"; +>exp3244 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3245 = "test"; +>exp3245 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3246 = "test"; +>exp3246 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3247 = "test"; +>exp3247 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3248 = "test"; +>exp3248 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3249 = "test"; +>exp3249 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3250 = "test"; +>exp3250 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3251 = "test"; +>exp3251 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3252 = "test"; +>exp3252 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3253 = "test"; +>exp3253 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3254 = "test"; +>exp3254 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3255 = "test"; +>exp3255 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3256 = "test"; +>exp3256 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3257 = "test"; +>exp3257 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3258 = "test"; +>exp3258 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3259 = "test"; +>exp3259 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3260 = "test"; +>exp3260 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3261 = "test"; +>exp3261 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3262 = "test"; +>exp3262 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3263 = "test"; +>exp3263 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3264 = "test"; +>exp3264 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3265 = "test"; +>exp3265 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3266 = "test"; +>exp3266 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3267 = "test"; +>exp3267 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3268 = "test"; +>exp3268 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3269 = "test"; +>exp3269 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3270 = "test"; +>exp3270 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3271 = "test"; +>exp3271 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3272 = "test"; +>exp3272 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3273 = "test"; +>exp3273 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3274 = "test"; +>exp3274 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3275 = "test"; +>exp3275 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3276 = "test"; +>exp3276 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3277 = "test"; +>exp3277 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3278 = "test"; +>exp3278 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3279 = "test"; +>exp3279 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3280 = "test"; +>exp3280 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3281 = "test"; +>exp3281 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3282 = "test"; +>exp3282 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3283 = "test"; +>exp3283 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3284 = "test"; +>exp3284 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3285 = "test"; +>exp3285 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3286 = "test"; +>exp3286 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3287 = "test"; +>exp3287 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3288 = "test"; +>exp3288 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3289 = "test"; +>exp3289 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3290 = "test"; +>exp3290 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3291 = "test"; +>exp3291 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3292 = "test"; +>exp3292 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3293 = "test"; +>exp3293 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3294 = "test"; +>exp3294 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3295 = "test"; +>exp3295 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3296 = "test"; +>exp3296 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3297 = "test"; +>exp3297 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3298 = "test"; +>exp3298 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3299 = "test"; +>exp3299 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3300 = "test"; +>exp3300 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3301 = "test"; +>exp3301 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3302 = "test"; +>exp3302 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3303 = "test"; +>exp3303 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3304 = "test"; +>exp3304 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3305 = "test"; +>exp3305 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3306 = "test"; +>exp3306 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3307 = "test"; +>exp3307 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3308 = "test"; +>exp3308 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3309 = "test"; +>exp3309 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3310 = "test"; +>exp3310 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3311 = "test"; +>exp3311 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3312 = "test"; +>exp3312 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3313 = "test"; +>exp3313 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3314 = "test"; +>exp3314 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3315 = "test"; +>exp3315 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3316 = "test"; +>exp3316 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3317 = "test"; +>exp3317 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3318 = "test"; +>exp3318 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3319 = "test"; +>exp3319 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3320 = "test"; +>exp3320 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3321 = "test"; +>exp3321 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3322 = "test"; +>exp3322 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3323 = "test"; +>exp3323 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3324 = "test"; +>exp3324 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3325 = "test"; +>exp3325 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3326 = "test"; +>exp3326 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3327 = "test"; +>exp3327 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3328 = "test"; +>exp3328 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3329 = "test"; +>exp3329 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3330 = "test"; +>exp3330 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3331 = "test"; +>exp3331 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3332 = "test"; +>exp3332 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3333 = "test"; +>exp3333 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3334 = "test"; +>exp3334 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3335 = "test"; +>exp3335 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3336 = "test"; +>exp3336 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3337 = "test"; +>exp3337 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3338 = "test"; +>exp3338 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3339 = "test"; +>exp3339 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3340 = "test"; +>exp3340 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3341 = "test"; +>exp3341 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3342 = "test"; +>exp3342 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3343 = "test"; +>exp3343 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3344 = "test"; +>exp3344 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3345 = "test"; +>exp3345 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3346 = "test"; +>exp3346 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3347 = "test"; +>exp3347 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3348 = "test"; +>exp3348 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3349 = "test"; +>exp3349 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3350 = "test"; +>exp3350 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3351 = "test"; +>exp3351 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3352 = "test"; +>exp3352 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3353 = "test"; +>exp3353 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3354 = "test"; +>exp3354 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3355 = "test"; +>exp3355 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3356 = "test"; +>exp3356 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3357 = "test"; +>exp3357 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3358 = "test"; +>exp3358 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3359 = "test"; +>exp3359 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3360 = "test"; +>exp3360 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3361 = "test"; +>exp3361 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3362 = "test"; +>exp3362 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3363 = "test"; +>exp3363 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3364 = "test"; +>exp3364 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3365 = "test"; +>exp3365 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3366 = "test"; +>exp3366 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3367 = "test"; +>exp3367 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3368 = "test"; +>exp3368 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3369 = "test"; +>exp3369 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3370 = "test"; +>exp3370 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3371 = "test"; +>exp3371 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3372 = "test"; +>exp3372 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3373 = "test"; +>exp3373 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3374 = "test"; +>exp3374 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3375 = "test"; +>exp3375 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3376 = "test"; +>exp3376 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3377 = "test"; +>exp3377 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3378 = "test"; +>exp3378 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3379 = "test"; +>exp3379 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3380 = "test"; +>exp3380 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3381 = "test"; +>exp3381 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3382 = "test"; +>exp3382 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3383 = "test"; +>exp3383 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3384 = "test"; +>exp3384 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3385 = "test"; +>exp3385 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3386 = "test"; +>exp3386 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3387 = "test"; +>exp3387 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3388 = "test"; +>exp3388 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3389 = "test"; +>exp3389 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3390 = "test"; +>exp3390 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3391 = "test"; +>exp3391 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3392 = "test"; +>exp3392 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3393 = "test"; +>exp3393 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3394 = "test"; +>exp3394 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3395 = "test"; +>exp3395 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3396 = "test"; +>exp3396 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3397 = "test"; +>exp3397 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3398 = "test"; +>exp3398 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3399 = "test"; +>exp3399 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3400 = "test"; +>exp3400 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3401 = "test"; +>exp3401 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3402 = "test"; +>exp3402 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3403 = "test"; +>exp3403 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3404 = "test"; +>exp3404 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3405 = "test"; +>exp3405 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3406 = "test"; +>exp3406 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3407 = "test"; +>exp3407 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3408 = "test"; +>exp3408 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3409 = "test"; +>exp3409 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3410 = "test"; +>exp3410 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3411 = "test"; +>exp3411 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3412 = "test"; +>exp3412 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3413 = "test"; +>exp3413 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3414 = "test"; +>exp3414 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3415 = "test"; +>exp3415 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3416 = "test"; +>exp3416 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3417 = "test"; +>exp3417 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3418 = "test"; +>exp3418 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3419 = "test"; +>exp3419 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3420 = "test"; +>exp3420 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3421 = "test"; +>exp3421 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3422 = "test"; +>exp3422 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3423 = "test"; +>exp3423 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3424 = "test"; +>exp3424 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3425 = "test"; +>exp3425 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3426 = "test"; +>exp3426 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3427 = "test"; +>exp3427 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3428 = "test"; +>exp3428 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3429 = "test"; +>exp3429 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3430 = "test"; +>exp3430 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3431 = "test"; +>exp3431 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3432 = "test"; +>exp3432 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3433 = "test"; +>exp3433 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3434 = "test"; +>exp3434 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3435 = "test"; +>exp3435 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3436 = "test"; +>exp3436 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3437 = "test"; +>exp3437 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3438 = "test"; +>exp3438 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3439 = "test"; +>exp3439 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3440 = "test"; +>exp3440 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3441 = "test"; +>exp3441 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3442 = "test"; +>exp3442 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3443 = "test"; +>exp3443 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3444 = "test"; +>exp3444 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3445 = "test"; +>exp3445 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3446 = "test"; +>exp3446 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3447 = "test"; +>exp3447 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3448 = "test"; +>exp3448 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3449 = "test"; +>exp3449 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3450 = "test"; +>exp3450 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3451 = "test"; +>exp3451 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3452 = "test"; +>exp3452 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3453 = "test"; +>exp3453 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3454 = "test"; +>exp3454 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3455 = "test"; +>exp3455 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3456 = "test"; +>exp3456 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3457 = "test"; +>exp3457 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3458 = "test"; +>exp3458 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3459 = "test"; +>exp3459 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3460 = "test"; +>exp3460 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3461 = "test"; +>exp3461 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3462 = "test"; +>exp3462 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3463 = "test"; +>exp3463 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3464 = "test"; +>exp3464 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3465 = "test"; +>exp3465 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3466 = "test"; +>exp3466 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3467 = "test"; +>exp3467 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3468 = "test"; +>exp3468 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3469 = "test"; +>exp3469 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3470 = "test"; +>exp3470 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3471 = "test"; +>exp3471 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3472 = "test"; +>exp3472 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3473 = "test"; +>exp3473 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3474 = "test"; +>exp3474 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3475 = "test"; +>exp3475 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3476 = "test"; +>exp3476 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3477 = "test"; +>exp3477 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3478 = "test"; +>exp3478 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3479 = "test"; +>exp3479 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3480 = "test"; +>exp3480 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3481 = "test"; +>exp3481 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3482 = "test"; +>exp3482 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3483 = "test"; +>exp3483 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3484 = "test"; +>exp3484 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3485 = "test"; +>exp3485 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3486 = "test"; +>exp3486 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3487 = "test"; +>exp3487 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3488 = "test"; +>exp3488 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3489 = "test"; +>exp3489 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3490 = "test"; +>exp3490 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3491 = "test"; +>exp3491 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3492 = "test"; +>exp3492 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3493 = "test"; +>exp3493 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3494 = "test"; +>exp3494 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3495 = "test"; +>exp3495 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3496 = "test"; +>exp3496 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3497 = "test"; +>exp3497 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3498 = "test"; +>exp3498 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3499 = "test"; +>exp3499 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3500 = "test"; +>exp3500 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3501 = "test"; +>exp3501 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3502 = "test"; +>exp3502 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3503 = "test"; +>exp3503 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3504 = "test"; +>exp3504 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3505 = "test"; +>exp3505 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3506 = "test"; +>exp3506 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3507 = "test"; +>exp3507 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3508 = "test"; +>exp3508 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3509 = "test"; +>exp3509 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3510 = "test"; +>exp3510 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3511 = "test"; +>exp3511 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3512 = "test"; +>exp3512 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3513 = "test"; +>exp3513 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3514 = "test"; +>exp3514 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3515 = "test"; +>exp3515 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3516 = "test"; +>exp3516 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3517 = "test"; +>exp3517 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3518 = "test"; +>exp3518 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3519 = "test"; +>exp3519 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3520 = "test"; +>exp3520 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3521 = "test"; +>exp3521 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3522 = "test"; +>exp3522 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3523 = "test"; +>exp3523 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3524 = "test"; +>exp3524 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3525 = "test"; +>exp3525 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3526 = "test"; +>exp3526 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3527 = "test"; +>exp3527 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3528 = "test"; +>exp3528 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3529 = "test"; +>exp3529 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3530 = "test"; +>exp3530 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3531 = "test"; +>exp3531 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3532 = "test"; +>exp3532 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3533 = "test"; +>exp3533 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3534 = "test"; +>exp3534 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3535 = "test"; +>exp3535 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3536 = "test"; +>exp3536 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3537 = "test"; +>exp3537 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3538 = "test"; +>exp3538 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3539 = "test"; +>exp3539 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3540 = "test"; +>exp3540 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3541 = "test"; +>exp3541 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3542 = "test"; +>exp3542 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3543 = "test"; +>exp3543 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3544 = "test"; +>exp3544 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3545 = "test"; +>exp3545 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3546 = "test"; +>exp3546 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3547 = "test"; +>exp3547 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3548 = "test"; +>exp3548 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3549 = "test"; +>exp3549 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3550 = "test"; +>exp3550 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3551 = "test"; +>exp3551 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3552 = "test"; +>exp3552 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3553 = "test"; +>exp3553 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3554 = "test"; +>exp3554 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3555 = "test"; +>exp3555 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3556 = "test"; +>exp3556 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3557 = "test"; +>exp3557 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3558 = "test"; +>exp3558 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3559 = "test"; +>exp3559 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3560 = "test"; +>exp3560 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3561 = "test"; +>exp3561 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3562 = "test"; +>exp3562 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3563 = "test"; +>exp3563 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3564 = "test"; +>exp3564 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3565 = "test"; +>exp3565 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3566 = "test"; +>exp3566 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3567 = "test"; +>exp3567 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3568 = "test"; +>exp3568 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3569 = "test"; +>exp3569 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3570 = "test"; +>exp3570 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3571 = "test"; +>exp3571 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3572 = "test"; +>exp3572 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3573 = "test"; +>exp3573 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3574 = "test"; +>exp3574 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3575 = "test"; +>exp3575 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3576 = "test"; +>exp3576 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3577 = "test"; +>exp3577 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3578 = "test"; +>exp3578 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3579 = "test"; +>exp3579 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3580 = "test"; +>exp3580 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3581 = "test"; +>exp3581 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3582 = "test"; +>exp3582 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3583 = "test"; +>exp3583 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3584 = "test"; +>exp3584 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3585 = "test"; +>exp3585 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3586 = "test"; +>exp3586 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3587 = "test"; +>exp3587 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3588 = "test"; +>exp3588 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3589 = "test"; +>exp3589 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3590 = "test"; +>exp3590 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3591 = "test"; +>exp3591 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3592 = "test"; +>exp3592 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3593 = "test"; +>exp3593 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3594 = "test"; +>exp3594 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3595 = "test"; +>exp3595 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3596 = "test"; +>exp3596 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3597 = "test"; +>exp3597 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3598 = "test"; +>exp3598 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3599 = "test"; +>exp3599 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3600 = "test"; +>exp3600 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3601 = "test"; +>exp3601 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3602 = "test"; +>exp3602 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3603 = "test"; +>exp3603 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3604 = "test"; +>exp3604 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3605 = "test"; +>exp3605 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3606 = "test"; +>exp3606 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3607 = "test"; +>exp3607 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3608 = "test"; +>exp3608 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3609 = "test"; +>exp3609 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3610 = "test"; +>exp3610 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3611 = "test"; +>exp3611 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3612 = "test"; +>exp3612 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3613 = "test"; +>exp3613 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3614 = "test"; +>exp3614 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3615 = "test"; +>exp3615 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3616 = "test"; +>exp3616 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3617 = "test"; +>exp3617 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3618 = "test"; +>exp3618 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3619 = "test"; +>exp3619 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3620 = "test"; +>exp3620 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3621 = "test"; +>exp3621 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3622 = "test"; +>exp3622 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3623 = "test"; +>exp3623 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3624 = "test"; +>exp3624 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3625 = "test"; +>exp3625 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3626 = "test"; +>exp3626 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3627 = "test"; +>exp3627 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3628 = "test"; +>exp3628 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3629 = "test"; +>exp3629 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3630 = "test"; +>exp3630 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3631 = "test"; +>exp3631 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3632 = "test"; +>exp3632 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3633 = "test"; +>exp3633 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3634 = "test"; +>exp3634 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3635 = "test"; +>exp3635 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3636 = "test"; +>exp3636 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3637 = "test"; +>exp3637 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3638 = "test"; +>exp3638 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3639 = "test"; +>exp3639 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3640 = "test"; +>exp3640 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3641 = "test"; +>exp3641 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3642 = "test"; +>exp3642 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3643 = "test"; +>exp3643 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3644 = "test"; +>exp3644 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3645 = "test"; +>exp3645 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3646 = "test"; +>exp3646 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3647 = "test"; +>exp3647 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3648 = "test"; +>exp3648 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3649 = "test"; +>exp3649 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3650 = "test"; +>exp3650 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3651 = "test"; +>exp3651 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3652 = "test"; +>exp3652 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3653 = "test"; +>exp3653 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3654 = "test"; +>exp3654 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3655 = "test"; +>exp3655 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3656 = "test"; +>exp3656 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3657 = "test"; +>exp3657 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3658 = "test"; +>exp3658 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3659 = "test"; +>exp3659 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3660 = "test"; +>exp3660 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3661 = "test"; +>exp3661 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3662 = "test"; +>exp3662 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3663 = "test"; +>exp3663 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3664 = "test"; +>exp3664 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3665 = "test"; +>exp3665 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3666 = "test"; +>exp3666 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3667 = "test"; +>exp3667 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3668 = "test"; +>exp3668 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3669 = "test"; +>exp3669 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3670 = "test"; +>exp3670 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3671 = "test"; +>exp3671 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3672 = "test"; +>exp3672 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3673 = "test"; +>exp3673 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3674 = "test"; +>exp3674 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3675 = "test"; +>exp3675 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3676 = "test"; +>exp3676 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3677 = "test"; +>exp3677 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3678 = "test"; +>exp3678 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3679 = "test"; +>exp3679 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3680 = "test"; +>exp3680 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3681 = "test"; +>exp3681 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3682 = "test"; +>exp3682 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3683 = "test"; +>exp3683 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3684 = "test"; +>exp3684 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3685 = "test"; +>exp3685 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3686 = "test"; +>exp3686 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3687 = "test"; +>exp3687 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3688 = "test"; +>exp3688 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3689 = "test"; +>exp3689 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3690 = "test"; +>exp3690 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3691 = "test"; +>exp3691 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3692 = "test"; +>exp3692 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3693 = "test"; +>exp3693 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3694 = "test"; +>exp3694 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3695 = "test"; +>exp3695 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3696 = "test"; +>exp3696 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3697 = "test"; +>exp3697 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3698 = "test"; +>exp3698 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3699 = "test"; +>exp3699 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3700 = "test"; +>exp3700 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3701 = "test"; +>exp3701 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3702 = "test"; +>exp3702 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3703 = "test"; +>exp3703 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3704 = "test"; +>exp3704 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3705 = "test"; +>exp3705 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3706 = "test"; +>exp3706 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3707 = "test"; +>exp3707 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3708 = "test"; +>exp3708 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3709 = "test"; +>exp3709 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3710 = "test"; +>exp3710 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3711 = "test"; +>exp3711 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3712 = "test"; +>exp3712 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3713 = "test"; +>exp3713 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3714 = "test"; +>exp3714 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3715 = "test"; +>exp3715 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3716 = "test"; +>exp3716 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3717 = "test"; +>exp3717 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3718 = "test"; +>exp3718 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3719 = "test"; +>exp3719 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3720 = "test"; +>exp3720 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3721 = "test"; +>exp3721 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3722 = "test"; +>exp3722 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3723 = "test"; +>exp3723 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3724 = "test"; +>exp3724 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3725 = "test"; +>exp3725 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3726 = "test"; +>exp3726 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3727 = "test"; +>exp3727 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3728 = "test"; +>exp3728 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3729 = "test"; +>exp3729 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3730 = "test"; +>exp3730 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3731 = "test"; +>exp3731 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3732 = "test"; +>exp3732 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3733 = "test"; +>exp3733 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3734 = "test"; +>exp3734 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3735 = "test"; +>exp3735 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3736 = "test"; +>exp3736 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3737 = "test"; +>exp3737 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3738 = "test"; +>exp3738 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3739 = "test"; +>exp3739 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3740 = "test"; +>exp3740 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3741 = "test"; +>exp3741 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3742 = "test"; +>exp3742 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3743 = "test"; +>exp3743 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3744 = "test"; +>exp3744 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3745 = "test"; +>exp3745 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3746 = "test"; +>exp3746 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3747 = "test"; +>exp3747 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3748 = "test"; +>exp3748 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3749 = "test"; +>exp3749 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3750 = "test"; +>exp3750 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3751 = "test"; +>exp3751 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3752 = "test"; +>exp3752 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3753 = "test"; +>exp3753 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3754 = "test"; +>exp3754 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3755 = "test"; +>exp3755 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3756 = "test"; +>exp3756 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3757 = "test"; +>exp3757 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3758 = "test"; +>exp3758 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3759 = "test"; +>exp3759 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3760 = "test"; +>exp3760 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3761 = "test"; +>exp3761 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3762 = "test"; +>exp3762 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3763 = "test"; +>exp3763 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3764 = "test"; +>exp3764 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3765 = "test"; +>exp3765 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3766 = "test"; +>exp3766 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3767 = "test"; +>exp3767 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3768 = "test"; +>exp3768 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3769 = "test"; +>exp3769 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3770 = "test"; +>exp3770 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3771 = "test"; +>exp3771 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3772 = "test"; +>exp3772 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3773 = "test"; +>exp3773 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3774 = "test"; +>exp3774 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3775 = "test"; +>exp3775 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3776 = "test"; +>exp3776 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3777 = "test"; +>exp3777 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3778 = "test"; +>exp3778 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3779 = "test"; +>exp3779 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3780 = "test"; +>exp3780 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3781 = "test"; +>exp3781 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3782 = "test"; +>exp3782 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3783 = "test"; +>exp3783 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3784 = "test"; +>exp3784 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3785 = "test"; +>exp3785 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3786 = "test"; +>exp3786 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3787 = "test"; +>exp3787 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3788 = "test"; +>exp3788 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3789 = "test"; +>exp3789 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3790 = "test"; +>exp3790 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3791 = "test"; +>exp3791 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3792 = "test"; +>exp3792 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3793 = "test"; +>exp3793 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3794 = "test"; +>exp3794 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3795 = "test"; +>exp3795 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3796 = "test"; +>exp3796 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3797 = "test"; +>exp3797 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3798 = "test"; +>exp3798 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3799 = "test"; +>exp3799 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3800 = "test"; +>exp3800 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3801 = "test"; +>exp3801 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3802 = "test"; +>exp3802 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3803 = "test"; +>exp3803 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3804 = "test"; +>exp3804 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3805 = "test"; +>exp3805 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3806 = "test"; +>exp3806 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3807 = "test"; +>exp3807 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3808 = "test"; +>exp3808 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3809 = "test"; +>exp3809 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3810 = "test"; +>exp3810 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3811 = "test"; +>exp3811 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3812 = "test"; +>exp3812 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3813 = "test"; +>exp3813 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3814 = "test"; +>exp3814 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3815 = "test"; +>exp3815 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3816 = "test"; +>exp3816 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3817 = "test"; +>exp3817 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3818 = "test"; +>exp3818 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3819 = "test"; +>exp3819 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3820 = "test"; +>exp3820 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3821 = "test"; +>exp3821 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3822 = "test"; +>exp3822 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3823 = "test"; +>exp3823 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3824 = "test"; +>exp3824 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3825 = "test"; +>exp3825 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3826 = "test"; +>exp3826 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3827 = "test"; +>exp3827 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3828 = "test"; +>exp3828 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3829 = "test"; +>exp3829 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3830 = "test"; +>exp3830 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3831 = "test"; +>exp3831 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3832 = "test"; +>exp3832 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3833 = "test"; +>exp3833 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3834 = "test"; +>exp3834 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3835 = "test"; +>exp3835 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3836 = "test"; +>exp3836 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3837 = "test"; +>exp3837 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3838 = "test"; +>exp3838 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3839 = "test"; +>exp3839 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3840 = "test"; +>exp3840 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3841 = "test"; +>exp3841 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3842 = "test"; +>exp3842 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3843 = "test"; +>exp3843 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3844 = "test"; +>exp3844 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3845 = "test"; +>exp3845 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3846 = "test"; +>exp3846 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3847 = "test"; +>exp3847 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3848 = "test"; +>exp3848 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3849 = "test"; +>exp3849 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3850 = "test"; +>exp3850 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3851 = "test"; +>exp3851 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3852 = "test"; +>exp3852 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3853 = "test"; +>exp3853 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3854 = "test"; +>exp3854 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3855 = "test"; +>exp3855 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3856 = "test"; +>exp3856 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3857 = "test"; +>exp3857 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3858 = "test"; +>exp3858 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3859 = "test"; +>exp3859 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3860 = "test"; +>exp3860 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3861 = "test"; +>exp3861 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3862 = "test"; +>exp3862 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3863 = "test"; +>exp3863 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3864 = "test"; +>exp3864 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3865 = "test"; +>exp3865 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3866 = "test"; +>exp3866 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3867 = "test"; +>exp3867 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3868 = "test"; +>exp3868 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3869 = "test"; +>exp3869 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3870 = "test"; +>exp3870 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3871 = "test"; +>exp3871 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3872 = "test"; +>exp3872 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3873 = "test"; +>exp3873 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3874 = "test"; +>exp3874 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3875 = "test"; +>exp3875 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3876 = "test"; +>exp3876 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3877 = "test"; +>exp3877 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3878 = "test"; +>exp3878 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3879 = "test"; +>exp3879 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3880 = "test"; +>exp3880 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3881 = "test"; +>exp3881 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3882 = "test"; +>exp3882 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3883 = "test"; +>exp3883 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3884 = "test"; +>exp3884 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3885 = "test"; +>exp3885 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3886 = "test"; +>exp3886 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3887 = "test"; +>exp3887 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3888 = "test"; +>exp3888 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3889 = "test"; +>exp3889 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3890 = "test"; +>exp3890 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3891 = "test"; +>exp3891 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3892 = "test"; +>exp3892 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3893 = "test"; +>exp3893 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3894 = "test"; +>exp3894 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3895 = "test"; +>exp3895 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3896 = "test"; +>exp3896 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3897 = "test"; +>exp3897 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3898 = "test"; +>exp3898 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3899 = "test"; +>exp3899 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3900 = "test"; +>exp3900 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3901 = "test"; +>exp3901 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3902 = "test"; +>exp3902 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3903 = "test"; +>exp3903 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3904 = "test"; +>exp3904 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3905 = "test"; +>exp3905 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3906 = "test"; +>exp3906 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3907 = "test"; +>exp3907 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3908 = "test"; +>exp3908 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3909 = "test"; +>exp3909 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3910 = "test"; +>exp3910 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3911 = "test"; +>exp3911 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3912 = "test"; +>exp3912 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3913 = "test"; +>exp3913 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3914 = "test"; +>exp3914 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3915 = "test"; +>exp3915 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3916 = "test"; +>exp3916 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3917 = "test"; +>exp3917 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3918 = "test"; +>exp3918 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3919 = "test"; +>exp3919 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3920 = "test"; +>exp3920 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3921 = "test"; +>exp3921 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3922 = "test"; +>exp3922 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3923 = "test"; +>exp3923 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3924 = "test"; +>exp3924 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3925 = "test"; +>exp3925 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3926 = "test"; +>exp3926 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3927 = "test"; +>exp3927 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3928 = "test"; +>exp3928 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3929 = "test"; +>exp3929 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3930 = "test"; +>exp3930 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3931 = "test"; +>exp3931 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3932 = "test"; +>exp3932 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3933 = "test"; +>exp3933 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3934 = "test"; +>exp3934 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3935 = "test"; +>exp3935 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3936 = "test"; +>exp3936 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3937 = "test"; +>exp3937 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3938 = "test"; +>exp3938 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3939 = "test"; +>exp3939 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3940 = "test"; +>exp3940 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3941 = "test"; +>exp3941 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3942 = "test"; +>exp3942 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3943 = "test"; +>exp3943 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3944 = "test"; +>exp3944 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3945 = "test"; +>exp3945 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3946 = "test"; +>exp3946 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3947 = "test"; +>exp3947 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3948 = "test"; +>exp3948 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3949 = "test"; +>exp3949 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3950 = "test"; +>exp3950 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3951 = "test"; +>exp3951 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3952 = "test"; +>exp3952 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3953 = "test"; +>exp3953 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3954 = "test"; +>exp3954 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3955 = "test"; +>exp3955 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3956 = "test"; +>exp3956 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3957 = "test"; +>exp3957 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3958 = "test"; +>exp3958 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3959 = "test"; +>exp3959 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3960 = "test"; +>exp3960 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3961 = "test"; +>exp3961 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3962 = "test"; +>exp3962 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3963 = "test"; +>exp3963 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3964 = "test"; +>exp3964 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3965 = "test"; +>exp3965 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3966 = "test"; +>exp3966 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3967 = "test"; +>exp3967 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3968 = "test"; +>exp3968 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3969 = "test"; +>exp3969 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3970 = "test"; +>exp3970 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3971 = "test"; +>exp3971 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3972 = "test"; +>exp3972 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3973 = "test"; +>exp3973 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3974 = "test"; +>exp3974 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3975 = "test"; +>exp3975 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3976 = "test"; +>exp3976 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3977 = "test"; +>exp3977 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3978 = "test"; +>exp3978 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3979 = "test"; +>exp3979 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3980 = "test"; +>exp3980 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3981 = "test"; +>exp3981 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3982 = "test"; +>exp3982 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3983 = "test"; +>exp3983 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3984 = "test"; +>exp3984 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3985 = "test"; +>exp3985 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3986 = "test"; +>exp3986 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3987 = "test"; +>exp3987 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3988 = "test"; +>exp3988 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3989 = "test"; +>exp3989 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3990 = "test"; +>exp3990 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3991 = "test"; +>exp3991 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3992 = "test"; +>exp3992 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3993 = "test"; +>exp3993 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3994 = "test"; +>exp3994 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3995 = "test"; +>exp3995 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3996 = "test"; +>exp3996 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3997 = "test"; +>exp3997 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3998 = "test"; +>exp3998 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp3999 = "test"; +>exp3999 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4000 = "test"; +>exp4000 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4001 = "test"; +>exp4001 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4002 = "test"; +>exp4002 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4003 = "test"; +>exp4003 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4004 = "test"; +>exp4004 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4005 = "test"; +>exp4005 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4006 = "test"; +>exp4006 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4007 = "test"; +>exp4007 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4008 = "test"; +>exp4008 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4009 = "test"; +>exp4009 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4010 = "test"; +>exp4010 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4011 = "test"; +>exp4011 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4012 = "test"; +>exp4012 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4013 = "test"; +>exp4013 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4014 = "test"; +>exp4014 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4015 = "test"; +>exp4015 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4016 = "test"; +>exp4016 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4017 = "test"; +>exp4017 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4018 = "test"; +>exp4018 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4019 = "test"; +>exp4019 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4020 = "test"; +>exp4020 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4021 = "test"; +>exp4021 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4022 = "test"; +>exp4022 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4023 = "test"; +>exp4023 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4024 = "test"; +>exp4024 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4025 = "test"; +>exp4025 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4026 = "test"; +>exp4026 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4027 = "test"; +>exp4027 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4028 = "test"; +>exp4028 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4029 = "test"; +>exp4029 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4030 = "test"; +>exp4030 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4031 = "test"; +>exp4031 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4032 = "test"; +>exp4032 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4033 = "test"; +>exp4033 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4034 = "test"; +>exp4034 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4035 = "test"; +>exp4035 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4036 = "test"; +>exp4036 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4037 = "test"; +>exp4037 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4038 = "test"; +>exp4038 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4039 = "test"; +>exp4039 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4040 = "test"; +>exp4040 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4041 = "test"; +>exp4041 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4042 = "test"; +>exp4042 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4043 = "test"; +>exp4043 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4044 = "test"; +>exp4044 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4045 = "test"; +>exp4045 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4046 = "test"; +>exp4046 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4047 = "test"; +>exp4047 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4048 = "test"; +>exp4048 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4049 = "test"; +>exp4049 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4050 = "test"; +>exp4050 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4051 = "test"; +>exp4051 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4052 = "test"; +>exp4052 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4053 = "test"; +>exp4053 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4054 = "test"; +>exp4054 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4055 = "test"; +>exp4055 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4056 = "test"; +>exp4056 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4057 = "test"; +>exp4057 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4058 = "test"; +>exp4058 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4059 = "test"; +>exp4059 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4060 = "test"; +>exp4060 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4061 = "test"; +>exp4061 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4062 = "test"; +>exp4062 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4063 = "test"; +>exp4063 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4064 = "test"; +>exp4064 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4065 = "test"; +>exp4065 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4066 = "test"; +>exp4066 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4067 = "test"; +>exp4067 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4068 = "test"; +>exp4068 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4069 = "test"; +>exp4069 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4070 = "test"; +>exp4070 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4071 = "test"; +>exp4071 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4072 = "test"; +>exp4072 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4073 = "test"; +>exp4073 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4074 = "test"; +>exp4074 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4075 = "test"; +>exp4075 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4076 = "test"; +>exp4076 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4077 = "test"; +>exp4077 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4078 = "test"; +>exp4078 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4079 = "test"; +>exp4079 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4080 = "test"; +>exp4080 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4081 = "test"; +>exp4081 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4082 = "test"; +>exp4082 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4083 = "test"; +>exp4083 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4084 = "test"; +>exp4084 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4085 = "test"; +>exp4085 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4086 = "test"; +>exp4086 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4087 = "test"; +>exp4087 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4088 = "test"; +>exp4088 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4089 = "test"; +>exp4089 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4090 = "test"; +>exp4090 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4091 = "test"; +>exp4091 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4092 = "test"; +>exp4092 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4093 = "test"; +>exp4093 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4094 = "test"; +>exp4094 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4095 = "test"; +>exp4095 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4096 = "test"; +>exp4096 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4097 = "test"; +>exp4097 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4098 = "test"; +>exp4098 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4099 = "test"; +>exp4099 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4100 = "test"; +>exp4100 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4101 = "test"; +>exp4101 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4102 = "test"; +>exp4102 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4103 = "test"; +>exp4103 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4104 = "test"; +>exp4104 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4105 = "test"; +>exp4105 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4106 = "test"; +>exp4106 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4107 = "test"; +>exp4107 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4108 = "test"; +>exp4108 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4109 = "test"; +>exp4109 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4110 = "test"; +>exp4110 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4111 = "test"; +>exp4111 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4112 = "test"; +>exp4112 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4113 = "test"; +>exp4113 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4114 = "test"; +>exp4114 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4115 = "test"; +>exp4115 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4116 = "test"; +>exp4116 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4117 = "test"; +>exp4117 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4118 = "test"; +>exp4118 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4119 = "test"; +>exp4119 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4120 = "test"; +>exp4120 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4121 = "test"; +>exp4121 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4122 = "test"; +>exp4122 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4123 = "test"; +>exp4123 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4124 = "test"; +>exp4124 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4125 = "test"; +>exp4125 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4126 = "test"; +>exp4126 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4127 = "test"; +>exp4127 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4128 = "test"; +>exp4128 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4129 = "test"; +>exp4129 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4130 = "test"; +>exp4130 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4131 = "test"; +>exp4131 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4132 = "test"; +>exp4132 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4133 = "test"; +>exp4133 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4134 = "test"; +>exp4134 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4135 = "test"; +>exp4135 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4136 = "test"; +>exp4136 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4137 = "test"; +>exp4137 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4138 = "test"; +>exp4138 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4139 = "test"; +>exp4139 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4140 = "test"; +>exp4140 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4141 = "test"; +>exp4141 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4142 = "test"; +>exp4142 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4143 = "test"; +>exp4143 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4144 = "test"; +>exp4144 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4145 = "test"; +>exp4145 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4146 = "test"; +>exp4146 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4147 = "test"; +>exp4147 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4148 = "test"; +>exp4148 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4149 = "test"; +>exp4149 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4150 = "test"; +>exp4150 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4151 = "test"; +>exp4151 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4152 = "test"; +>exp4152 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4153 = "test"; +>exp4153 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4154 = "test"; +>exp4154 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4155 = "test"; +>exp4155 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4156 = "test"; +>exp4156 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4157 = "test"; +>exp4157 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4158 = "test"; +>exp4158 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4159 = "test"; +>exp4159 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4160 = "test"; +>exp4160 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4161 = "test"; +>exp4161 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4162 = "test"; +>exp4162 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4163 = "test"; +>exp4163 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4164 = "test"; +>exp4164 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4165 = "test"; +>exp4165 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4166 = "test"; +>exp4166 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4167 = "test"; +>exp4167 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4168 = "test"; +>exp4168 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4169 = "test"; +>exp4169 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4170 = "test"; +>exp4170 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4171 = "test"; +>exp4171 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4172 = "test"; +>exp4172 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4173 = "test"; +>exp4173 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4174 = "test"; +>exp4174 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4175 = "test"; +>exp4175 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4176 = "test"; +>exp4176 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4177 = "test"; +>exp4177 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4178 = "test"; +>exp4178 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4179 = "test"; +>exp4179 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4180 = "test"; +>exp4180 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4181 = "test"; +>exp4181 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4182 = "test"; +>exp4182 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4183 = "test"; +>exp4183 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4184 = "test"; +>exp4184 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4185 = "test"; +>exp4185 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4186 = "test"; +>exp4186 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4187 = "test"; +>exp4187 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4188 = "test"; +>exp4188 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4189 = "test"; +>exp4189 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4190 = "test"; +>exp4190 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4191 = "test"; +>exp4191 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4192 = "test"; +>exp4192 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4193 = "test"; +>exp4193 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4194 = "test"; +>exp4194 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4195 = "test"; +>exp4195 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4196 = "test"; +>exp4196 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4197 = "test"; +>exp4197 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4198 = "test"; +>exp4198 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4199 = "test"; +>exp4199 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4200 = "test"; +>exp4200 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4201 = "test"; +>exp4201 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4202 = "test"; +>exp4202 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4203 = "test"; +>exp4203 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4204 = "test"; +>exp4204 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4205 = "test"; +>exp4205 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4206 = "test"; +>exp4206 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4207 = "test"; +>exp4207 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4208 = "test"; +>exp4208 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4209 = "test"; +>exp4209 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4210 = "test"; +>exp4210 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4211 = "test"; +>exp4211 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4212 = "test"; +>exp4212 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4213 = "test"; +>exp4213 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4214 = "test"; +>exp4214 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4215 = "test"; +>exp4215 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4216 = "test"; +>exp4216 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4217 = "test"; +>exp4217 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4218 = "test"; +>exp4218 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4219 = "test"; +>exp4219 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4220 = "test"; +>exp4220 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4221 = "test"; +>exp4221 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4222 = "test"; +>exp4222 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4223 = "test"; +>exp4223 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4224 = "test"; +>exp4224 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4225 = "test"; +>exp4225 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4226 = "test"; +>exp4226 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4227 = "test"; +>exp4227 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4228 = "test"; +>exp4228 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4229 = "test"; +>exp4229 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4230 = "test"; +>exp4230 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4231 = "test"; +>exp4231 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4232 = "test"; +>exp4232 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4233 = "test"; +>exp4233 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4234 = "test"; +>exp4234 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4235 = "test"; +>exp4235 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4236 = "test"; +>exp4236 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4237 = "test"; +>exp4237 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4238 = "test"; +>exp4238 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4239 = "test"; +>exp4239 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4240 = "test"; +>exp4240 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4241 = "test"; +>exp4241 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4242 = "test"; +>exp4242 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4243 = "test"; +>exp4243 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4244 = "test"; +>exp4244 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4245 = "test"; +>exp4245 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4246 = "test"; +>exp4246 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4247 = "test"; +>exp4247 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4248 = "test"; +>exp4248 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4249 = "test"; +>exp4249 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4250 = "test"; +>exp4250 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4251 = "test"; +>exp4251 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4252 = "test"; +>exp4252 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4253 = "test"; +>exp4253 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4254 = "test"; +>exp4254 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4255 = "test"; +>exp4255 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4256 = "test"; +>exp4256 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4257 = "test"; +>exp4257 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4258 = "test"; +>exp4258 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4259 = "test"; +>exp4259 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4260 = "test"; +>exp4260 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4261 = "test"; +>exp4261 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4262 = "test"; +>exp4262 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4263 = "test"; +>exp4263 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4264 = "test"; +>exp4264 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4265 = "test"; +>exp4265 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4266 = "test"; +>exp4266 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4267 = "test"; +>exp4267 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4268 = "test"; +>exp4268 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4269 = "test"; +>exp4269 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4270 = "test"; +>exp4270 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4271 = "test"; +>exp4271 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4272 = "test"; +>exp4272 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4273 = "test"; +>exp4273 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4274 = "test"; +>exp4274 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4275 = "test"; +>exp4275 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4276 = "test"; +>exp4276 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4277 = "test"; +>exp4277 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4278 = "test"; +>exp4278 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4279 = "test"; +>exp4279 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4280 = "test"; +>exp4280 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4281 = "test"; +>exp4281 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4282 = "test"; +>exp4282 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4283 = "test"; +>exp4283 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4284 = "test"; +>exp4284 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4285 = "test"; +>exp4285 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4286 = "test"; +>exp4286 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4287 = "test"; +>exp4287 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4288 = "test"; +>exp4288 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4289 = "test"; +>exp4289 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4290 = "test"; +>exp4290 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4291 = "test"; +>exp4291 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4292 = "test"; +>exp4292 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4293 = "test"; +>exp4293 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4294 = "test"; +>exp4294 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4295 = "test"; +>exp4295 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4296 = "test"; +>exp4296 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4297 = "test"; +>exp4297 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4298 = "test"; +>exp4298 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4299 = "test"; +>exp4299 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4300 = "test"; +>exp4300 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4301 = "test"; +>exp4301 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4302 = "test"; +>exp4302 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4303 = "test"; +>exp4303 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4304 = "test"; +>exp4304 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4305 = "test"; +>exp4305 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4306 = "test"; +>exp4306 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4307 = "test"; +>exp4307 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4308 = "test"; +>exp4308 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4309 = "test"; +>exp4309 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4310 = "test"; +>exp4310 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4311 = "test"; +>exp4311 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4312 = "test"; +>exp4312 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4313 = "test"; +>exp4313 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4314 = "test"; +>exp4314 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4315 = "test"; +>exp4315 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4316 = "test"; +>exp4316 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4317 = "test"; +>exp4317 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4318 = "test"; +>exp4318 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4319 = "test"; +>exp4319 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4320 = "test"; +>exp4320 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4321 = "test"; +>exp4321 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4322 = "test"; +>exp4322 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4323 = "test"; +>exp4323 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4324 = "test"; +>exp4324 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4325 = "test"; +>exp4325 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4326 = "test"; +>exp4326 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4327 = "test"; +>exp4327 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4328 = "test"; +>exp4328 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4329 = "test"; +>exp4329 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4330 = "test"; +>exp4330 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4331 = "test"; +>exp4331 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4332 = "test"; +>exp4332 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4333 = "test"; +>exp4333 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4334 = "test"; +>exp4334 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4335 = "test"; +>exp4335 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4336 = "test"; +>exp4336 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4337 = "test"; +>exp4337 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4338 = "test"; +>exp4338 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4339 = "test"; +>exp4339 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4340 = "test"; +>exp4340 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4341 = "test"; +>exp4341 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4342 = "test"; +>exp4342 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4343 = "test"; +>exp4343 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4344 = "test"; +>exp4344 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4345 = "test"; +>exp4345 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4346 = "test"; +>exp4346 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4347 = "test"; +>exp4347 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4348 = "test"; +>exp4348 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4349 = "test"; +>exp4349 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4350 = "test"; +>exp4350 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4351 = "test"; +>exp4351 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4352 = "test"; +>exp4352 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4353 = "test"; +>exp4353 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4354 = "test"; +>exp4354 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4355 = "test"; +>exp4355 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4356 = "test"; +>exp4356 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4357 = "test"; +>exp4357 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4358 = "test"; +>exp4358 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4359 = "test"; +>exp4359 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4360 = "test"; +>exp4360 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4361 = "test"; +>exp4361 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4362 = "test"; +>exp4362 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4363 = "test"; +>exp4363 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4364 = "test"; +>exp4364 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4365 = "test"; +>exp4365 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4366 = "test"; +>exp4366 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4367 = "test"; +>exp4367 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4368 = "test"; +>exp4368 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4369 = "test"; +>exp4369 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4370 = "test"; +>exp4370 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4371 = "test"; +>exp4371 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4372 = "test"; +>exp4372 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4373 = "test"; +>exp4373 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4374 = "test"; +>exp4374 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4375 = "test"; +>exp4375 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4376 = "test"; +>exp4376 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4377 = "test"; +>exp4377 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4378 = "test"; +>exp4378 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4379 = "test"; +>exp4379 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4380 = "test"; +>exp4380 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4381 = "test"; +>exp4381 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4382 = "test"; +>exp4382 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4383 = "test"; +>exp4383 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4384 = "test"; +>exp4384 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4385 = "test"; +>exp4385 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4386 = "test"; +>exp4386 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4387 = "test"; +>exp4387 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4388 = "test"; +>exp4388 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4389 = "test"; +>exp4389 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4390 = "test"; +>exp4390 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4391 = "test"; +>exp4391 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4392 = "test"; +>exp4392 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4393 = "test"; +>exp4393 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4394 = "test"; +>exp4394 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4395 = "test"; +>exp4395 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4396 = "test"; +>exp4396 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4397 = "test"; +>exp4397 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4398 = "test"; +>exp4398 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4399 = "test"; +>exp4399 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4400 = "test"; +>exp4400 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4401 = "test"; +>exp4401 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4402 = "test"; +>exp4402 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4403 = "test"; +>exp4403 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4404 = "test"; +>exp4404 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4405 = "test"; +>exp4405 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4406 = "test"; +>exp4406 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4407 = "test"; +>exp4407 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4408 = "test"; +>exp4408 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4409 = "test"; +>exp4409 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4410 = "test"; +>exp4410 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4411 = "test"; +>exp4411 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4412 = "test"; +>exp4412 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4413 = "test"; +>exp4413 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4414 = "test"; +>exp4414 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4415 = "test"; +>exp4415 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4416 = "test"; +>exp4416 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4417 = "test"; +>exp4417 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4418 = "test"; +>exp4418 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4419 = "test"; +>exp4419 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4420 = "test"; +>exp4420 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4421 = "test"; +>exp4421 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4422 = "test"; +>exp4422 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4423 = "test"; +>exp4423 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4424 = "test"; +>exp4424 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4425 = "test"; +>exp4425 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4426 = "test"; +>exp4426 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4427 = "test"; +>exp4427 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4428 = "test"; +>exp4428 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4429 = "test"; +>exp4429 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4430 = "test"; +>exp4430 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4431 = "test"; +>exp4431 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4432 = "test"; +>exp4432 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4433 = "test"; +>exp4433 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4434 = "test"; +>exp4434 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4435 = "test"; +>exp4435 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4436 = "test"; +>exp4436 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4437 = "test"; +>exp4437 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4438 = "test"; +>exp4438 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4439 = "test"; +>exp4439 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4440 = "test"; +>exp4440 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4441 = "test"; +>exp4441 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4442 = "test"; +>exp4442 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4443 = "test"; +>exp4443 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4444 = "test"; +>exp4444 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4445 = "test"; +>exp4445 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4446 = "test"; +>exp4446 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4447 = "test"; +>exp4447 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4448 = "test"; +>exp4448 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4449 = "test"; +>exp4449 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4450 = "test"; +>exp4450 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4451 = "test"; +>exp4451 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4452 = "test"; +>exp4452 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4453 = "test"; +>exp4453 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4454 = "test"; +>exp4454 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4455 = "test"; +>exp4455 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4456 = "test"; +>exp4456 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4457 = "test"; +>exp4457 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4458 = "test"; +>exp4458 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4459 = "test"; +>exp4459 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4460 = "test"; +>exp4460 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4461 = "test"; +>exp4461 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4462 = "test"; +>exp4462 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4463 = "test"; +>exp4463 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4464 = "test"; +>exp4464 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4465 = "test"; +>exp4465 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4466 = "test"; +>exp4466 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4467 = "test"; +>exp4467 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4468 = "test"; +>exp4468 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4469 = "test"; +>exp4469 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4470 = "test"; +>exp4470 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4471 = "test"; +>exp4471 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4472 = "test"; +>exp4472 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4473 = "test"; +>exp4473 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4474 = "test"; +>exp4474 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4475 = "test"; +>exp4475 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4476 = "test"; +>exp4476 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4477 = "test"; +>exp4477 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4478 = "test"; +>exp4478 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4479 = "test"; +>exp4479 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4480 = "test"; +>exp4480 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4481 = "test"; +>exp4481 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4482 = "test"; +>exp4482 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4483 = "test"; +>exp4483 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4484 = "test"; +>exp4484 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4485 = "test"; +>exp4485 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4486 = "test"; +>exp4486 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4487 = "test"; +>exp4487 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4488 = "test"; +>exp4488 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4489 = "test"; +>exp4489 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4490 = "test"; +>exp4490 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4491 = "test"; +>exp4491 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4492 = "test"; +>exp4492 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4493 = "test"; +>exp4493 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4494 = "test"; +>exp4494 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4495 = "test"; +>exp4495 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4496 = "test"; +>exp4496 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4497 = "test"; +>exp4497 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4498 = "test"; +>exp4498 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4499 = "test"; +>exp4499 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4500 = "test"; +>exp4500 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4501 = "test"; +>exp4501 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4502 = "test"; +>exp4502 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4503 = "test"; +>exp4503 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4504 = "test"; +>exp4504 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4505 = "test"; +>exp4505 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4506 = "test"; +>exp4506 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4507 = "test"; +>exp4507 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4508 = "test"; +>exp4508 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4509 = "test"; +>exp4509 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4510 = "test"; +>exp4510 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4511 = "test"; +>exp4511 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4512 = "test"; +>exp4512 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4513 = "test"; +>exp4513 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4514 = "test"; +>exp4514 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4515 = "test"; +>exp4515 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4516 = "test"; +>exp4516 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4517 = "test"; +>exp4517 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4518 = "test"; +>exp4518 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4519 = "test"; +>exp4519 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4520 = "test"; +>exp4520 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4521 = "test"; +>exp4521 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4522 = "test"; +>exp4522 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4523 = "test"; +>exp4523 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4524 = "test"; +>exp4524 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4525 = "test"; +>exp4525 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4526 = "test"; +>exp4526 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4527 = "test"; +>exp4527 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4528 = "test"; +>exp4528 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4529 = "test"; +>exp4529 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4530 = "test"; +>exp4530 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4531 = "test"; +>exp4531 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4532 = "test"; +>exp4532 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4533 = "test"; +>exp4533 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4534 = "test"; +>exp4534 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4535 = "test"; +>exp4535 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4536 = "test"; +>exp4536 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4537 = "test"; +>exp4537 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4538 = "test"; +>exp4538 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4539 = "test"; +>exp4539 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4540 = "test"; +>exp4540 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4541 = "test"; +>exp4541 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4542 = "test"; +>exp4542 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4543 = "test"; +>exp4543 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4544 = "test"; +>exp4544 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4545 = "test"; +>exp4545 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4546 = "test"; +>exp4546 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4547 = "test"; +>exp4547 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4548 = "test"; +>exp4548 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4549 = "test"; +>exp4549 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4550 = "test"; +>exp4550 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4551 = "test"; +>exp4551 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4552 = "test"; +>exp4552 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4553 = "test"; +>exp4553 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4554 = "test"; +>exp4554 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4555 = "test"; +>exp4555 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4556 = "test"; +>exp4556 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4557 = "test"; +>exp4557 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4558 = "test"; +>exp4558 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4559 = "test"; +>exp4559 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4560 = "test"; +>exp4560 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4561 = "test"; +>exp4561 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4562 = "test"; +>exp4562 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4563 = "test"; +>exp4563 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4564 = "test"; +>exp4564 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4565 = "test"; +>exp4565 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4566 = "test"; +>exp4566 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4567 = "test"; +>exp4567 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4568 = "test"; +>exp4568 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4569 = "test"; +>exp4569 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4570 = "test"; +>exp4570 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4571 = "test"; +>exp4571 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4572 = "test"; +>exp4572 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4573 = "test"; +>exp4573 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4574 = "test"; +>exp4574 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4575 = "test"; +>exp4575 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4576 = "test"; +>exp4576 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4577 = "test"; +>exp4577 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4578 = "test"; +>exp4578 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4579 = "test"; +>exp4579 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4580 = "test"; +>exp4580 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4581 = "test"; +>exp4581 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4582 = "test"; +>exp4582 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4583 = "test"; +>exp4583 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4584 = "test"; +>exp4584 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4585 = "test"; +>exp4585 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4586 = "test"; +>exp4586 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4587 = "test"; +>exp4587 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4588 = "test"; +>exp4588 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4589 = "test"; +>exp4589 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4590 = "test"; +>exp4590 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4591 = "test"; +>exp4591 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4592 = "test"; +>exp4592 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4593 = "test"; +>exp4593 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4594 = "test"; +>exp4594 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4595 = "test"; +>exp4595 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4596 = "test"; +>exp4596 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4597 = "test"; +>exp4597 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4598 = "test"; +>exp4598 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4599 = "test"; +>exp4599 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4600 = "test"; +>exp4600 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4601 = "test"; +>exp4601 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4602 = "test"; +>exp4602 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4603 = "test"; +>exp4603 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4604 = "test"; +>exp4604 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4605 = "test"; +>exp4605 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4606 = "test"; +>exp4606 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4607 = "test"; +>exp4607 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4608 = "test"; +>exp4608 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4609 = "test"; +>exp4609 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4610 = "test"; +>exp4610 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4611 = "test"; +>exp4611 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4612 = "test"; +>exp4612 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4613 = "test"; +>exp4613 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4614 = "test"; +>exp4614 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4615 = "test"; +>exp4615 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4616 = "test"; +>exp4616 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4617 = "test"; +>exp4617 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4618 = "test"; +>exp4618 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4619 = "test"; +>exp4619 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4620 = "test"; +>exp4620 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4621 = "test"; +>exp4621 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4622 = "test"; +>exp4622 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4623 = "test"; +>exp4623 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4624 = "test"; +>exp4624 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4625 = "test"; +>exp4625 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4626 = "test"; +>exp4626 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4627 = "test"; +>exp4627 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4628 = "test"; +>exp4628 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4629 = "test"; +>exp4629 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4630 = "test"; +>exp4630 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4631 = "test"; +>exp4631 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4632 = "test"; +>exp4632 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4633 = "test"; +>exp4633 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4634 = "test"; +>exp4634 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4635 = "test"; +>exp4635 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4636 = "test"; +>exp4636 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4637 = "test"; +>exp4637 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4638 = "test"; +>exp4638 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4639 = "test"; +>exp4639 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4640 = "test"; +>exp4640 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4641 = "test"; +>exp4641 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4642 = "test"; +>exp4642 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4643 = "test"; +>exp4643 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4644 = "test"; +>exp4644 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4645 = "test"; +>exp4645 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4646 = "test"; +>exp4646 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4647 = "test"; +>exp4647 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4648 = "test"; +>exp4648 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4649 = "test"; +>exp4649 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4650 = "test"; +>exp4650 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4651 = "test"; +>exp4651 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4652 = "test"; +>exp4652 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4653 = "test"; +>exp4653 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4654 = "test"; +>exp4654 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4655 = "test"; +>exp4655 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4656 = "test"; +>exp4656 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4657 = "test"; +>exp4657 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4658 = "test"; +>exp4658 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4659 = "test"; +>exp4659 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4660 = "test"; +>exp4660 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4661 = "test"; +>exp4661 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4662 = "test"; +>exp4662 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4663 = "test"; +>exp4663 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4664 = "test"; +>exp4664 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4665 = "test"; +>exp4665 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4666 = "test"; +>exp4666 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4667 = "test"; +>exp4667 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4668 = "test"; +>exp4668 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4669 = "test"; +>exp4669 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4670 = "test"; +>exp4670 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4671 = "test"; +>exp4671 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4672 = "test"; +>exp4672 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4673 = "test"; +>exp4673 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4674 = "test"; +>exp4674 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4675 = "test"; +>exp4675 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4676 = "test"; +>exp4676 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4677 = "test"; +>exp4677 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4678 = "test"; +>exp4678 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4679 = "test"; +>exp4679 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4680 = "test"; +>exp4680 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4681 = "test"; +>exp4681 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4682 = "test"; +>exp4682 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4683 = "test"; +>exp4683 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4684 = "test"; +>exp4684 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4685 = "test"; +>exp4685 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4686 = "test"; +>exp4686 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4687 = "test"; +>exp4687 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4688 = "test"; +>exp4688 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4689 = "test"; +>exp4689 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4690 = "test"; +>exp4690 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4691 = "test"; +>exp4691 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4692 = "test"; +>exp4692 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4693 = "test"; +>exp4693 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4694 = "test"; +>exp4694 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4695 = "test"; +>exp4695 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4696 = "test"; +>exp4696 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4697 = "test"; +>exp4697 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4698 = "test"; +>exp4698 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4699 = "test"; +>exp4699 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4700 = "test"; +>exp4700 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4701 = "test"; +>exp4701 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4702 = "test"; +>exp4702 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4703 = "test"; +>exp4703 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4704 = "test"; +>exp4704 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4705 = "test"; +>exp4705 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4706 = "test"; +>exp4706 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4707 = "test"; +>exp4707 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4708 = "test"; +>exp4708 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4709 = "test"; +>exp4709 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4710 = "test"; +>exp4710 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4711 = "test"; +>exp4711 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4712 = "test"; +>exp4712 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4713 = "test"; +>exp4713 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4714 = "test"; +>exp4714 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4715 = "test"; +>exp4715 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4716 = "test"; +>exp4716 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4717 = "test"; +>exp4717 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4718 = "test"; +>exp4718 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4719 = "test"; +>exp4719 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4720 = "test"; +>exp4720 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4721 = "test"; +>exp4721 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4722 = "test"; +>exp4722 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4723 = "test"; +>exp4723 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4724 = "test"; +>exp4724 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4725 = "test"; +>exp4725 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4726 = "test"; +>exp4726 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4727 = "test"; +>exp4727 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4728 = "test"; +>exp4728 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4729 = "test"; +>exp4729 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4730 = "test"; +>exp4730 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4731 = "test"; +>exp4731 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4732 = "test"; +>exp4732 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4733 = "test"; +>exp4733 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4734 = "test"; +>exp4734 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4735 = "test"; +>exp4735 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4736 = "test"; +>exp4736 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4737 = "test"; +>exp4737 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4738 = "test"; +>exp4738 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4739 = "test"; +>exp4739 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4740 = "test"; +>exp4740 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4741 = "test"; +>exp4741 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4742 = "test"; +>exp4742 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4743 = "test"; +>exp4743 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4744 = "test"; +>exp4744 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4745 = "test"; +>exp4745 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4746 = "test"; +>exp4746 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4747 = "test"; +>exp4747 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4748 = "test"; +>exp4748 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4749 = "test"; +>exp4749 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4750 = "test"; +>exp4750 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4751 = "test"; +>exp4751 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4752 = "test"; +>exp4752 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4753 = "test"; +>exp4753 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4754 = "test"; +>exp4754 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4755 = "test"; +>exp4755 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4756 = "test"; +>exp4756 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4757 = "test"; +>exp4757 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4758 = "test"; +>exp4758 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4759 = "test"; +>exp4759 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4760 = "test"; +>exp4760 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4761 = "test"; +>exp4761 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4762 = "test"; +>exp4762 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4763 = "test"; +>exp4763 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4764 = "test"; +>exp4764 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4765 = "test"; +>exp4765 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4766 = "test"; +>exp4766 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4767 = "test"; +>exp4767 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4768 = "test"; +>exp4768 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4769 = "test"; +>exp4769 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4770 = "test"; +>exp4770 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4771 = "test"; +>exp4771 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4772 = "test"; +>exp4772 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4773 = "test"; +>exp4773 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4774 = "test"; +>exp4774 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4775 = "test"; +>exp4775 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4776 = "test"; +>exp4776 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4777 = "test"; +>exp4777 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4778 = "test"; +>exp4778 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4779 = "test"; +>exp4779 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4780 = "test"; +>exp4780 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4781 = "test"; +>exp4781 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4782 = "test"; +>exp4782 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4783 = "test"; +>exp4783 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4784 = "test"; +>exp4784 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4785 = "test"; +>exp4785 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4786 = "test"; +>exp4786 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4787 = "test"; +>exp4787 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4788 = "test"; +>exp4788 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4789 = "test"; +>exp4789 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4790 = "test"; +>exp4790 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4791 = "test"; +>exp4791 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4792 = "test"; +>exp4792 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4793 = "test"; +>exp4793 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4794 = "test"; +>exp4794 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4795 = "test"; +>exp4795 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4796 = "test"; +>exp4796 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4797 = "test"; +>exp4797 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4798 = "test"; +>exp4798 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4799 = "test"; +>exp4799 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4800 = "test"; +>exp4800 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4801 = "test"; +>exp4801 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4802 = "test"; +>exp4802 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4803 = "test"; +>exp4803 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4804 = "test"; +>exp4804 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4805 = "test"; +>exp4805 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4806 = "test"; +>exp4806 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4807 = "test"; +>exp4807 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4808 = "test"; +>exp4808 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4809 = "test"; +>exp4809 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4810 = "test"; +>exp4810 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4811 = "test"; +>exp4811 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4812 = "test"; +>exp4812 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4813 = "test"; +>exp4813 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4814 = "test"; +>exp4814 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4815 = "test"; +>exp4815 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4816 = "test"; +>exp4816 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4817 = "test"; +>exp4817 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4818 = "test"; +>exp4818 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4819 = "test"; +>exp4819 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4820 = "test"; +>exp4820 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4821 = "test"; +>exp4821 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4822 = "test"; +>exp4822 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4823 = "test"; +>exp4823 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4824 = "test"; +>exp4824 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4825 = "test"; +>exp4825 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4826 = "test"; +>exp4826 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4827 = "test"; +>exp4827 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4828 = "test"; +>exp4828 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4829 = "test"; +>exp4829 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4830 = "test"; +>exp4830 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4831 = "test"; +>exp4831 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4832 = "test"; +>exp4832 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4833 = "test"; +>exp4833 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4834 = "test"; +>exp4834 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4835 = "test"; +>exp4835 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4836 = "test"; +>exp4836 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4837 = "test"; +>exp4837 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4838 = "test"; +>exp4838 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4839 = "test"; +>exp4839 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4840 = "test"; +>exp4840 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4841 = "test"; +>exp4841 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4842 = "test"; +>exp4842 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4843 = "test"; +>exp4843 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4844 = "test"; +>exp4844 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4845 = "test"; +>exp4845 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4846 = "test"; +>exp4846 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4847 = "test"; +>exp4847 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4848 = "test"; +>exp4848 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4849 = "test"; +>exp4849 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4850 = "test"; +>exp4850 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4851 = "test"; +>exp4851 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4852 = "test"; +>exp4852 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4853 = "test"; +>exp4853 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4854 = "test"; +>exp4854 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4855 = "test"; +>exp4855 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4856 = "test"; +>exp4856 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4857 = "test"; +>exp4857 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4858 = "test"; +>exp4858 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4859 = "test"; +>exp4859 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4860 = "test"; +>exp4860 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4861 = "test"; +>exp4861 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4862 = "test"; +>exp4862 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4863 = "test"; +>exp4863 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4864 = "test"; +>exp4864 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4865 = "test"; +>exp4865 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4866 = "test"; +>exp4866 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4867 = "test"; +>exp4867 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4868 = "test"; +>exp4868 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4869 = "test"; +>exp4869 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4870 = "test"; +>exp4870 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4871 = "test"; +>exp4871 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4872 = "test"; +>exp4872 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4873 = "test"; +>exp4873 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4874 = "test"; +>exp4874 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4875 = "test"; +>exp4875 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4876 = "test"; +>exp4876 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4877 = "test"; +>exp4877 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4878 = "test"; +>exp4878 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4879 = "test"; +>exp4879 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4880 = "test"; +>exp4880 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4881 = "test"; +>exp4881 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4882 = "test"; +>exp4882 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4883 = "test"; +>exp4883 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4884 = "test"; +>exp4884 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4885 = "test"; +>exp4885 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4886 = "test"; +>exp4886 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4887 = "test"; +>exp4887 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4888 = "test"; +>exp4888 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4889 = "test"; +>exp4889 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4890 = "test"; +>exp4890 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4891 = "test"; +>exp4891 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4892 = "test"; +>exp4892 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4893 = "test"; +>exp4893 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4894 = "test"; +>exp4894 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4895 = "test"; +>exp4895 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4896 = "test"; +>exp4896 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4897 = "test"; +>exp4897 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4898 = "test"; +>exp4898 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4899 = "test"; +>exp4899 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4900 = "test"; +>exp4900 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4901 = "test"; +>exp4901 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4902 = "test"; +>exp4902 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4903 = "test"; +>exp4903 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4904 = "test"; +>exp4904 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4905 = "test"; +>exp4905 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4906 = "test"; +>exp4906 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4907 = "test"; +>exp4907 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4908 = "test"; +>exp4908 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4909 = "test"; +>exp4909 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4910 = "test"; +>exp4910 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4911 = "test"; +>exp4911 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4912 = "test"; +>exp4912 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4913 = "test"; +>exp4913 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4914 = "test"; +>exp4914 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4915 = "test"; +>exp4915 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4916 = "test"; +>exp4916 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4917 = "test"; +>exp4917 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4918 = "test"; +>exp4918 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4919 = "test"; +>exp4919 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4920 = "test"; +>exp4920 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4921 = "test"; +>exp4921 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4922 = "test"; +>exp4922 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4923 = "test"; +>exp4923 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4924 = "test"; +>exp4924 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4925 = "test"; +>exp4925 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4926 = "test"; +>exp4926 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4927 = "test"; +>exp4927 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4928 = "test"; +>exp4928 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4929 = "test"; +>exp4929 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4930 = "test"; +>exp4930 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4931 = "test"; +>exp4931 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4932 = "test"; +>exp4932 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4933 = "test"; +>exp4933 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4934 = "test"; +>exp4934 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4935 = "test"; +>exp4935 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4936 = "test"; +>exp4936 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4937 = "test"; +>exp4937 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4938 = "test"; +>exp4938 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4939 = "test"; +>exp4939 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4940 = "test"; +>exp4940 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4941 = "test"; +>exp4941 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4942 = "test"; +>exp4942 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4943 = "test"; +>exp4943 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4944 = "test"; +>exp4944 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4945 = "test"; +>exp4945 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4946 = "test"; +>exp4946 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4947 = "test"; +>exp4947 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4948 = "test"; +>exp4948 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4949 = "test"; +>exp4949 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4950 = "test"; +>exp4950 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4951 = "test"; +>exp4951 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4952 = "test"; +>exp4952 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4953 = "test"; +>exp4953 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4954 = "test"; +>exp4954 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4955 = "test"; +>exp4955 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4956 = "test"; +>exp4956 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4957 = "test"; +>exp4957 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4958 = "test"; +>exp4958 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4959 = "test"; +>exp4959 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4960 = "test"; +>exp4960 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4961 = "test"; +>exp4961 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4962 = "test"; +>exp4962 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4963 = "test"; +>exp4963 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4964 = "test"; +>exp4964 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4965 = "test"; +>exp4965 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4966 = "test"; +>exp4966 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4967 = "test"; +>exp4967 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4968 = "test"; +>exp4968 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4969 = "test"; +>exp4969 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4970 = "test"; +>exp4970 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4971 = "test"; +>exp4971 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4972 = "test"; +>exp4972 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4973 = "test"; +>exp4973 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4974 = "test"; +>exp4974 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4975 = "test"; +>exp4975 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4976 = "test"; +>exp4976 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4977 = "test"; +>exp4977 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4978 = "test"; +>exp4978 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4979 = "test"; +>exp4979 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4980 = "test"; +>exp4980 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4981 = "test"; +>exp4981 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4982 = "test"; +>exp4982 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4983 = "test"; +>exp4983 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4984 = "test"; +>exp4984 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4985 = "test"; +>exp4985 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4986 = "test"; +>exp4986 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4987 = "test"; +>exp4987 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4988 = "test"; +>exp4988 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4989 = "test"; +>exp4989 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4990 = "test"; +>exp4990 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4991 = "test"; +>exp4991 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4992 = "test"; +>exp4992 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4993 = "test"; +>exp4993 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4994 = "test"; +>exp4994 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4995 = "test"; +>exp4995 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4996 = "test"; +>exp4996 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4997 = "test"; +>exp4997 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4998 = "test"; +>exp4998 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export const exp4999 = "test"; +>exp4999 : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + diff --git a/tests/baselines/reference/metadataOfClassFromAlias(strict=false,target=es2015).js b/tests/baselines/reference/metadataOfClassFromAlias(strict=false,target=es2015).js new file mode 100644 index 0000000000000..852ac4603fa10 --- /dev/null +++ b/tests/baselines/reference/metadataOfClassFromAlias(strict=false,target=es2015).js @@ -0,0 +1,80 @@ +//// [tests/cases/compiler/metadataOfClassFromAlias.ts] //// + +//// [auxiliary.ts] +export class SomeClass { + field: string; +} + +//// [testA.ts] +import { SomeClass } from './auxiliary'; +function annotation(): PropertyDecorator { + return (target: any): void => { }; +} +export class ClassA { + @annotation() aaa: SomeClass; +} + +//// [testB.ts] +import { SomeClass } from './auxiliary'; +function annotation(): PropertyDecorator { + return (target: any): void => { }; +} +export class ClassB { + @annotation() bbb: SomeClass | null; +} + +//// [auxiliary.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SomeClass = void 0; +class SomeClass { +} +exports.SomeClass = SomeClass; +//// [testA.js] +"use strict"; +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ClassA = void 0; +const auxiliary_1 = require("./auxiliary"); +function annotation() { + return (target) => { }; +} +class ClassA { +} +exports.ClassA = ClassA; +__decorate([ + annotation(), + __metadata("design:type", auxiliary_1.SomeClass) +], ClassA.prototype, "aaa", void 0); +//// [testB.js] +"use strict"; +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ClassB = void 0; +const auxiliary_1 = require("./auxiliary"); +function annotation() { + return (target) => { }; +} +class ClassB { +} +exports.ClassB = ClassB; +__decorate([ + annotation(), + __metadata("design:type", auxiliary_1.SomeClass) +], ClassB.prototype, "bbb", void 0); diff --git a/tests/baselines/reference/metadataOfClassFromAlias(strict=false).symbols b/tests/baselines/reference/metadataOfClassFromAlias(strict=false,target=es2015).symbols similarity index 100% rename from tests/baselines/reference/metadataOfClassFromAlias(strict=false).symbols rename to tests/baselines/reference/metadataOfClassFromAlias(strict=false,target=es2015).symbols diff --git a/tests/baselines/reference/metadataOfClassFromAlias(strict=false).types b/tests/baselines/reference/metadataOfClassFromAlias(strict=false,target=es2015).types similarity index 100% rename from tests/baselines/reference/metadataOfClassFromAlias(strict=false).types rename to tests/baselines/reference/metadataOfClassFromAlias(strict=false,target=es2015).types diff --git a/tests/baselines/reference/metadataOfClassFromAlias(strict=false).js b/tests/baselines/reference/metadataOfClassFromAlias(strict=false,target=es5).js similarity index 100% rename from tests/baselines/reference/metadataOfClassFromAlias(strict=false).js rename to tests/baselines/reference/metadataOfClassFromAlias(strict=false,target=es5).js diff --git a/tests/baselines/reference/metadataOfClassFromAlias(strict=true).symbols b/tests/baselines/reference/metadataOfClassFromAlias(strict=false,target=es5).symbols similarity index 100% rename from tests/baselines/reference/metadataOfClassFromAlias(strict=true).symbols rename to tests/baselines/reference/metadataOfClassFromAlias(strict=false,target=es5).symbols diff --git a/tests/baselines/reference/metadataOfClassFromAlias(strict=false,target=es5).types b/tests/baselines/reference/metadataOfClassFromAlias(strict=false,target=es5).types new file mode 100644 index 0000000000000..70c6e5161ba23 --- /dev/null +++ b/tests/baselines/reference/metadataOfClassFromAlias(strict=false,target=es5).types @@ -0,0 +1,65 @@ +//// [tests/cases/compiler/metadataOfClassFromAlias.ts] //// + +=== auxiliary.ts === +export class SomeClass { +>SomeClass : SomeClass +> : ^^^^^^^^^ + + field: string; +>field : string +> : ^^^^^^ +} + +=== testA.ts === +import { SomeClass } from './auxiliary'; +>SomeClass : typeof SomeClass +> : ^^^^^^^^^^^^^^^^ + +function annotation(): PropertyDecorator { +>annotation : () => PropertyDecorator +> : ^^^^^^ + + return (target: any): void => { }; +>(target: any): void => { } : (target: any) => void +> : ^ ^^ ^^^^^ +>target : any +} +export class ClassA { +>ClassA : ClassA +> : ^^^^^^ + + @annotation() aaa: SomeClass; +>annotation() : PropertyDecorator +> : ^^^^^^^^^^^^^^^^^ +>annotation : () => PropertyDecorator +> : ^^^^^^ +>aaa : SomeClass +> : ^^^^^^^^^ +} + +=== testB.ts === +import { SomeClass } from './auxiliary'; +>SomeClass : typeof SomeClass +> : ^^^^^^^^^^^^^^^^ + +function annotation(): PropertyDecorator { +>annotation : () => PropertyDecorator +> : ^^^^^^ + + return (target: any): void => { }; +>(target: any): void => { } : (target: any) => void +> : ^ ^^ ^^^^^ +>target : any +} +export class ClassB { +>ClassB : ClassB +> : ^^^^^^ + + @annotation() bbb: SomeClass | null; +>annotation() : PropertyDecorator +> : ^^^^^^^^^^^^^^^^^ +>annotation : () => PropertyDecorator +> : ^^^^^^ +>bbb : SomeClass +> : ^^^^^^^^^ +} diff --git a/tests/baselines/reference/metadataOfClassFromAlias(strict=true).errors.txt b/tests/baselines/reference/metadataOfClassFromAlias(strict=true,target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/metadataOfClassFromAlias(strict=true).errors.txt rename to tests/baselines/reference/metadataOfClassFromAlias(strict=true,target=es2015).errors.txt diff --git a/tests/baselines/reference/metadataOfClassFromAlias(strict=true,target=es2015).js b/tests/baselines/reference/metadataOfClassFromAlias(strict=true,target=es2015).js new file mode 100644 index 0000000000000..da688f0d67f78 --- /dev/null +++ b/tests/baselines/reference/metadataOfClassFromAlias(strict=true,target=es2015).js @@ -0,0 +1,79 @@ +//// [tests/cases/compiler/metadataOfClassFromAlias.ts] //// + +//// [auxiliary.ts] +export class SomeClass { + field: string; +} + +//// [testA.ts] +import { SomeClass } from './auxiliary'; +function annotation(): PropertyDecorator { + return (target: any): void => { }; +} +export class ClassA { + @annotation() aaa: SomeClass; +} + +//// [testB.ts] +import { SomeClass } from './auxiliary'; +function annotation(): PropertyDecorator { + return (target: any): void => { }; +} +export class ClassB { + @annotation() bbb: SomeClass | null; +} + +//// [auxiliary.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SomeClass = void 0; +class SomeClass { +} +exports.SomeClass = SomeClass; +//// [testA.js] +"use strict"; +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ClassA = void 0; +const auxiliary_1 = require("./auxiliary"); +function annotation() { + return (target) => { }; +} +class ClassA { +} +exports.ClassA = ClassA; +__decorate([ + annotation(), + __metadata("design:type", auxiliary_1.SomeClass) +], ClassA.prototype, "aaa", void 0); +//// [testB.js] +"use strict"; +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ClassB = void 0; +function annotation() { + return (target) => { }; +} +class ClassB { +} +exports.ClassB = ClassB; +__decorate([ + annotation(), + __metadata("design:type", Object) +], ClassB.prototype, "bbb", void 0); diff --git a/tests/baselines/reference/metadataOfClassFromAlias(strict=true,target=es2015).symbols b/tests/baselines/reference/metadataOfClassFromAlias(strict=true,target=es2015).symbols new file mode 100644 index 0000000000000..11709d87afae1 --- /dev/null +++ b/tests/baselines/reference/metadataOfClassFromAlias(strict=true,target=es2015).symbols @@ -0,0 +1,49 @@ +//// [tests/cases/compiler/metadataOfClassFromAlias.ts] //// + +=== auxiliary.ts === +export class SomeClass { +>SomeClass : Symbol(SomeClass, Decl(auxiliary.ts, 0, 0)) + + field: string; +>field : Symbol(SomeClass.field, Decl(auxiliary.ts, 0, 24)) +} + +=== testA.ts === +import { SomeClass } from './auxiliary'; +>SomeClass : Symbol(SomeClass, Decl(testA.ts, 0, 8)) + +function annotation(): PropertyDecorator { +>annotation : Symbol(annotation, Decl(testA.ts, 0, 40)) +>PropertyDecorator : Symbol(PropertyDecorator, Decl(lib.decorators.legacy.d.ts, --, --)) + + return (target: any): void => { }; +>target : Symbol(target, Decl(testA.ts, 2, 12)) +} +export class ClassA { +>ClassA : Symbol(ClassA, Decl(testA.ts, 3, 1)) + + @annotation() aaa: SomeClass; +>annotation : Symbol(annotation, Decl(testA.ts, 0, 40)) +>aaa : Symbol(ClassA.aaa, Decl(testA.ts, 4, 21)) +>SomeClass : Symbol(SomeClass, Decl(testA.ts, 0, 8)) +} + +=== testB.ts === +import { SomeClass } from './auxiliary'; +>SomeClass : Symbol(SomeClass, Decl(testB.ts, 0, 8)) + +function annotation(): PropertyDecorator { +>annotation : Symbol(annotation, Decl(testB.ts, 0, 40)) +>PropertyDecorator : Symbol(PropertyDecorator, Decl(lib.decorators.legacy.d.ts, --, --)) + + return (target: any): void => { }; +>target : Symbol(target, Decl(testB.ts, 2, 12)) +} +export class ClassB { +>ClassB : Symbol(ClassB, Decl(testB.ts, 3, 1)) + + @annotation() bbb: SomeClass | null; +>annotation : Symbol(annotation, Decl(testB.ts, 0, 40)) +>bbb : Symbol(ClassB.bbb, Decl(testB.ts, 4, 21)) +>SomeClass : Symbol(SomeClass, Decl(testB.ts, 0, 8)) +} diff --git a/tests/baselines/reference/metadataOfClassFromAlias(strict=true).types b/tests/baselines/reference/metadataOfClassFromAlias(strict=true,target=es2015).types similarity index 100% rename from tests/baselines/reference/metadataOfClassFromAlias(strict=true).types rename to tests/baselines/reference/metadataOfClassFromAlias(strict=true,target=es2015).types diff --git a/tests/baselines/reference/metadataOfClassFromAlias(strict=true,target=es5).errors.txt b/tests/baselines/reference/metadataOfClassFromAlias(strict=true,target=es5).errors.txt new file mode 100644 index 0000000000000..fa2ac7a8d184a --- /dev/null +++ b/tests/baselines/reference/metadataOfClassFromAlias(strict=true,target=es5).errors.txt @@ -0,0 +1,33 @@ +auxiliary.ts(2,5): error TS2564: Property 'field' has no initializer and is not definitely assigned in the constructor. +testA.ts(6,19): error TS2564: Property 'aaa' has no initializer and is not definitely assigned in the constructor. +testB.ts(6,19): error TS2564: Property 'bbb' has no initializer and is not definitely assigned in the constructor. + + +==== auxiliary.ts (1 errors) ==== + export class SomeClass { + field: string; + ~~~~~ +!!! error TS2564: Property 'field' has no initializer and is not definitely assigned in the constructor. + } + +==== testA.ts (1 errors) ==== + import { SomeClass } from './auxiliary'; + function annotation(): PropertyDecorator { + return (target: any): void => { }; + } + export class ClassA { + @annotation() aaa: SomeClass; + ~~~ +!!! error TS2564: Property 'aaa' has no initializer and is not definitely assigned in the constructor. + } + +==== testB.ts (1 errors) ==== + import { SomeClass } from './auxiliary'; + function annotation(): PropertyDecorator { + return (target: any): void => { }; + } + export class ClassB { + @annotation() bbb: SomeClass | null; + ~~~ +!!! error TS2564: Property 'bbb' has no initializer and is not definitely assigned in the constructor. + } \ No newline at end of file diff --git a/tests/baselines/reference/metadataOfClassFromAlias(strict=true).js b/tests/baselines/reference/metadataOfClassFromAlias(strict=true,target=es5).js similarity index 100% rename from tests/baselines/reference/metadataOfClassFromAlias(strict=true).js rename to tests/baselines/reference/metadataOfClassFromAlias(strict=true,target=es5).js diff --git a/tests/baselines/reference/metadataOfClassFromAlias(strict=true,target=es5).symbols b/tests/baselines/reference/metadataOfClassFromAlias(strict=true,target=es5).symbols new file mode 100644 index 0000000000000..11709d87afae1 --- /dev/null +++ b/tests/baselines/reference/metadataOfClassFromAlias(strict=true,target=es5).symbols @@ -0,0 +1,49 @@ +//// [tests/cases/compiler/metadataOfClassFromAlias.ts] //// + +=== auxiliary.ts === +export class SomeClass { +>SomeClass : Symbol(SomeClass, Decl(auxiliary.ts, 0, 0)) + + field: string; +>field : Symbol(SomeClass.field, Decl(auxiliary.ts, 0, 24)) +} + +=== testA.ts === +import { SomeClass } from './auxiliary'; +>SomeClass : Symbol(SomeClass, Decl(testA.ts, 0, 8)) + +function annotation(): PropertyDecorator { +>annotation : Symbol(annotation, Decl(testA.ts, 0, 40)) +>PropertyDecorator : Symbol(PropertyDecorator, Decl(lib.decorators.legacy.d.ts, --, --)) + + return (target: any): void => { }; +>target : Symbol(target, Decl(testA.ts, 2, 12)) +} +export class ClassA { +>ClassA : Symbol(ClassA, Decl(testA.ts, 3, 1)) + + @annotation() aaa: SomeClass; +>annotation : Symbol(annotation, Decl(testA.ts, 0, 40)) +>aaa : Symbol(ClassA.aaa, Decl(testA.ts, 4, 21)) +>SomeClass : Symbol(SomeClass, Decl(testA.ts, 0, 8)) +} + +=== testB.ts === +import { SomeClass } from './auxiliary'; +>SomeClass : Symbol(SomeClass, Decl(testB.ts, 0, 8)) + +function annotation(): PropertyDecorator { +>annotation : Symbol(annotation, Decl(testB.ts, 0, 40)) +>PropertyDecorator : Symbol(PropertyDecorator, Decl(lib.decorators.legacy.d.ts, --, --)) + + return (target: any): void => { }; +>target : Symbol(target, Decl(testB.ts, 2, 12)) +} +export class ClassB { +>ClassB : Symbol(ClassB, Decl(testB.ts, 3, 1)) + + @annotation() bbb: SomeClass | null; +>annotation : Symbol(annotation, Decl(testB.ts, 0, 40)) +>bbb : Symbol(ClassB.bbb, Decl(testB.ts, 4, 21)) +>SomeClass : Symbol(SomeClass, Decl(testB.ts, 0, 8)) +} diff --git a/tests/baselines/reference/metadataOfClassFromAlias(strict=true,target=es5).types b/tests/baselines/reference/metadataOfClassFromAlias(strict=true,target=es5).types new file mode 100644 index 0000000000000..06e5367e6f358 --- /dev/null +++ b/tests/baselines/reference/metadataOfClassFromAlias(strict=true,target=es5).types @@ -0,0 +1,67 @@ +//// [tests/cases/compiler/metadataOfClassFromAlias.ts] //// + +=== auxiliary.ts === +export class SomeClass { +>SomeClass : SomeClass +> : ^^^^^^^^^ + + field: string; +>field : string +> : ^^^^^^ +} + +=== testA.ts === +import { SomeClass } from './auxiliary'; +>SomeClass : typeof SomeClass +> : ^^^^^^^^^^^^^^^^ + +function annotation(): PropertyDecorator { +>annotation : () => PropertyDecorator +> : ^^^^^^ + + return (target: any): void => { }; +>(target: any): void => { } : (target: any) => void +> : ^ ^^ ^^^^^ +>target : any +> : ^^^ +} +export class ClassA { +>ClassA : ClassA +> : ^^^^^^ + + @annotation() aaa: SomeClass; +>annotation() : PropertyDecorator +> : ^^^^^^^^^^^^^^^^^ +>annotation : () => PropertyDecorator +> : ^^^^^^ +>aaa : SomeClass +> : ^^^^^^^^^ +} + +=== testB.ts === +import { SomeClass } from './auxiliary'; +>SomeClass : typeof SomeClass +> : ^^^^^^^^^^^^^^^^ + +function annotation(): PropertyDecorator { +>annotation : () => PropertyDecorator +> : ^^^^^^ + + return (target: any): void => { }; +>(target: any): void => { } : (target: any) => void +> : ^ ^^ ^^^^^ +>target : any +> : ^^^ +} +export class ClassB { +>ClassB : ClassB +> : ^^^^^^ + + @annotation() bbb: SomeClass | null; +>annotation() : PropertyDecorator +> : ^^^^^^^^^^^^^^^^^ +>annotation : () => PropertyDecorator +> : ^^^^^^ +>bbb : SomeClass | null +> : ^^^^^^^^^^^^^^^^ +} diff --git a/tests/baselines/reference/metadataOfClassFromAlias2(target=es2015).js b/tests/baselines/reference/metadataOfClassFromAlias2(target=es2015).js new file mode 100644 index 0000000000000..5d62264100897 --- /dev/null +++ b/tests/baselines/reference/metadataOfClassFromAlias2(target=es2015).js @@ -0,0 +1,46 @@ +//// [tests/cases/compiler/metadataOfClassFromAlias2.ts] //// + +//// [auxiliry.ts] +export class SomeClass { + field: string; +} + +//// [test.ts] +import { SomeClass } from './auxiliry'; +function annotation(): PropertyDecorator { + return (target: any): void => { }; +} +export class ClassA { + @annotation() array: SomeClass | null | string; +} + +//// [auxiliry.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SomeClass = void 0; +class SomeClass { +} +exports.SomeClass = SomeClass; +//// [test.js] +"use strict"; +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ClassA = void 0; +function annotation() { + return (target) => { }; +} +class ClassA { +} +exports.ClassA = ClassA; +__decorate([ + annotation(), + __metadata("design:type", Object) +], ClassA.prototype, "array", void 0); diff --git a/tests/baselines/reference/metadataOfClassFromAlias2.symbols b/tests/baselines/reference/metadataOfClassFromAlias2(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/metadataOfClassFromAlias2.symbols rename to tests/baselines/reference/metadataOfClassFromAlias2(target=es2015).symbols diff --git a/tests/baselines/reference/metadataOfClassFromAlias2.types b/tests/baselines/reference/metadataOfClassFromAlias2(target=es2015).types similarity index 100% rename from tests/baselines/reference/metadataOfClassFromAlias2.types rename to tests/baselines/reference/metadataOfClassFromAlias2(target=es2015).types diff --git a/tests/baselines/reference/metadataOfClassFromAlias2.js b/tests/baselines/reference/metadataOfClassFromAlias2(target=es5).js similarity index 100% rename from tests/baselines/reference/metadataOfClassFromAlias2.js rename to tests/baselines/reference/metadataOfClassFromAlias2(target=es5).js diff --git a/tests/baselines/reference/metadataOfClassFromAlias2(target=es5).symbols b/tests/baselines/reference/metadataOfClassFromAlias2(target=es5).symbols new file mode 100644 index 0000000000000..d11060e79169e --- /dev/null +++ b/tests/baselines/reference/metadataOfClassFromAlias2(target=es5).symbols @@ -0,0 +1,29 @@ +//// [tests/cases/compiler/metadataOfClassFromAlias2.ts] //// + +=== auxiliry.ts === +export class SomeClass { +>SomeClass : Symbol(SomeClass, Decl(auxiliry.ts, 0, 0)) + + field: string; +>field : Symbol(SomeClass.field, Decl(auxiliry.ts, 0, 24)) +} + +=== test.ts === +import { SomeClass } from './auxiliry'; +>SomeClass : Symbol(SomeClass, Decl(test.ts, 0, 8)) + +function annotation(): PropertyDecorator { +>annotation : Symbol(annotation, Decl(test.ts, 0, 39)) +>PropertyDecorator : Symbol(PropertyDecorator, Decl(lib.decorators.legacy.d.ts, --, --)) + + return (target: any): void => { }; +>target : Symbol(target, Decl(test.ts, 2, 12)) +} +export class ClassA { +>ClassA : Symbol(ClassA, Decl(test.ts, 3, 1)) + + @annotation() array: SomeClass | null | string; +>annotation : Symbol(annotation, Decl(test.ts, 0, 39)) +>array : Symbol(ClassA.array, Decl(test.ts, 4, 21)) +>SomeClass : Symbol(SomeClass, Decl(test.ts, 0, 8)) +} diff --git a/tests/baselines/reference/metadataOfClassFromAlias2(target=es5).types b/tests/baselines/reference/metadataOfClassFromAlias2(target=es5).types new file mode 100644 index 0000000000000..cdffa195252bc --- /dev/null +++ b/tests/baselines/reference/metadataOfClassFromAlias2(target=es5).types @@ -0,0 +1,38 @@ +//// [tests/cases/compiler/metadataOfClassFromAlias2.ts] //// + +=== auxiliry.ts === +export class SomeClass { +>SomeClass : SomeClass +> : ^^^^^^^^^ + + field: string; +>field : string +> : ^^^^^^ +} + +=== test.ts === +import { SomeClass } from './auxiliry'; +>SomeClass : typeof SomeClass +> : ^^^^^^^^^^^^^^^^ + +function annotation(): PropertyDecorator { +>annotation : () => PropertyDecorator +> : ^^^^^^ + + return (target: any): void => { }; +>(target: any): void => { } : (target: any) => void +> : ^ ^^ ^^^^^ +>target : any +} +export class ClassA { +>ClassA : ClassA +> : ^^^^^^ + + @annotation() array: SomeClass | null | string; +>annotation() : PropertyDecorator +> : ^^^^^^^^^^^^^^^^^ +>annotation : () => PropertyDecorator +> : ^^^^^^ +>array : string | SomeClass +> : ^^^^^^^^^^^^^^^^^^ +} diff --git a/tests/baselines/reference/metadataOfClassFromModule(target=es2015).js b/tests/baselines/reference/metadataOfClassFromModule(target=es2015).js new file mode 100644 index 0000000000000..d2357a81633e0 --- /dev/null +++ b/tests/baselines/reference/metadataOfClassFromModule(target=es2015).js @@ -0,0 +1,40 @@ +//// [tests/cases/compiler/metadataOfClassFromModule.ts] //// + +//// [metadataOfClassFromModule.ts] +namespace MyModule { + + export function inject(target: any, key: string): void { } + + export class Leg { } + + export class Person { + @inject leftLeg: Leg; + } + +} + +//// [metadataOfClassFromModule.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; +var MyModule; +(function (MyModule) { + function inject(target, key) { } + MyModule.inject = inject; + class Leg { + } + MyModule.Leg = Leg; + class Person { + } + __decorate([ + inject, + __metadata("design:type", Leg) + ], Person.prototype, "leftLeg", void 0); + MyModule.Person = Person; +})(MyModule || (MyModule = {})); diff --git a/tests/baselines/reference/metadataOfClassFromModule.symbols b/tests/baselines/reference/metadataOfClassFromModule(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/metadataOfClassFromModule.symbols rename to tests/baselines/reference/metadataOfClassFromModule(target=es2015).symbols diff --git a/tests/baselines/reference/metadataOfClassFromModule.types b/tests/baselines/reference/metadataOfClassFromModule(target=es2015).types similarity index 100% rename from tests/baselines/reference/metadataOfClassFromModule.types rename to tests/baselines/reference/metadataOfClassFromModule(target=es2015).types diff --git a/tests/baselines/reference/metadataOfClassFromModule.js b/tests/baselines/reference/metadataOfClassFromModule(target=es5).js similarity index 100% rename from tests/baselines/reference/metadataOfClassFromModule.js rename to tests/baselines/reference/metadataOfClassFromModule(target=es5).js diff --git a/tests/baselines/reference/metadataOfClassFromModule(target=es5).symbols b/tests/baselines/reference/metadataOfClassFromModule(target=es5).symbols new file mode 100644 index 0000000000000..d8258d95cedae --- /dev/null +++ b/tests/baselines/reference/metadataOfClassFromModule(target=es5).symbols @@ -0,0 +1,24 @@ +//// [tests/cases/compiler/metadataOfClassFromModule.ts] //// + +=== metadataOfClassFromModule.ts === +namespace MyModule { +>MyModule : Symbol(MyModule, Decl(metadataOfClassFromModule.ts, 0, 0)) + + export function inject(target: any, key: string): void { } +>inject : Symbol(inject, Decl(metadataOfClassFromModule.ts, 0, 20)) +>target : Symbol(target, Decl(metadataOfClassFromModule.ts, 2, 27)) +>key : Symbol(key, Decl(metadataOfClassFromModule.ts, 2, 39)) + + export class Leg { } +>Leg : Symbol(Leg, Decl(metadataOfClassFromModule.ts, 2, 62)) + + export class Person { +>Person : Symbol(Person, Decl(metadataOfClassFromModule.ts, 4, 24)) + + @inject leftLeg: Leg; +>inject : Symbol(inject, Decl(metadataOfClassFromModule.ts, 0, 20)) +>leftLeg : Symbol(Person.leftLeg, Decl(metadataOfClassFromModule.ts, 6, 25)) +>Leg : Symbol(Leg, Decl(metadataOfClassFromModule.ts, 2, 62)) + } + +} diff --git a/tests/baselines/reference/metadataOfClassFromModule(target=es5).types b/tests/baselines/reference/metadataOfClassFromModule(target=es5).types new file mode 100644 index 0000000000000..99224772ae2c2 --- /dev/null +++ b/tests/baselines/reference/metadataOfClassFromModule(target=es5).types @@ -0,0 +1,30 @@ +//// [tests/cases/compiler/metadataOfClassFromModule.ts] //// + +=== metadataOfClassFromModule.ts === +namespace MyModule { +>MyModule : typeof MyModule +> : ^^^^^^^^^^^^^^^ + + export function inject(target: any, key: string): void { } +>inject : (target: any, key: string) => void +> : ^ ^^ ^^ ^^ ^^^^^ +>target : any +>key : string +> : ^^^^^^ + + export class Leg { } +>Leg : Leg +> : ^^^ + + export class Person { +>Person : Person +> : ^^^^^^ + + @inject leftLeg: Leg; +>inject : (target: any, key: string) => void +> : ^ ^^ ^^ ^^ ^^^^^ +>leftLeg : Leg +> : ^^^ + } + +} diff --git a/tests/baselines/reference/metadataOfEventAlias(target=es2015).js b/tests/baselines/reference/metadataOfEventAlias(target=es2015).js new file mode 100644 index 0000000000000..f4541dd270e75 --- /dev/null +++ b/tests/baselines/reference/metadataOfEventAlias(target=es2015).js @@ -0,0 +1,32 @@ +//// [tests/cases/compiler/metadataOfEventAlias.ts] //// + +//// [event.ts] +export interface Event { title: string }; + +//// [test.ts] +import { Event } from './event'; +function Input(target: any, key: string): void { } +export class SomeClass { + @Input event: Event; +} + +//// [event.js] +; +export {}; +//// [test.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; +function Input(target, key) { } +export class SomeClass { +} +__decorate([ + Input, + __metadata("design:type", Object) +], SomeClass.prototype, "event", void 0); diff --git a/tests/baselines/reference/metadataOfEventAlias.symbols b/tests/baselines/reference/metadataOfEventAlias(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/metadataOfEventAlias.symbols rename to tests/baselines/reference/metadataOfEventAlias(target=es2015).symbols diff --git a/tests/baselines/reference/metadataOfEventAlias.types b/tests/baselines/reference/metadataOfEventAlias(target=es2015).types similarity index 100% rename from tests/baselines/reference/metadataOfEventAlias.types rename to tests/baselines/reference/metadataOfEventAlias(target=es2015).types diff --git a/tests/baselines/reference/metadataOfEventAlias.js b/tests/baselines/reference/metadataOfEventAlias(target=es5).js similarity index 100% rename from tests/baselines/reference/metadataOfEventAlias.js rename to tests/baselines/reference/metadataOfEventAlias(target=es5).js diff --git a/tests/baselines/reference/metadataOfEventAlias(target=es5).symbols b/tests/baselines/reference/metadataOfEventAlias(target=es5).symbols new file mode 100644 index 0000000000000..a32d9412ea6d2 --- /dev/null +++ b/tests/baselines/reference/metadataOfEventAlias(target=es5).symbols @@ -0,0 +1,24 @@ +//// [tests/cases/compiler/metadataOfEventAlias.ts] //// + +=== event.ts === +export interface Event { title: string }; +>Event : Symbol(Event, Decl(event.ts, 0, 0)) +>title : Symbol(Event.title, Decl(event.ts, 0, 24)) + +=== test.ts === +import { Event } from './event'; +>Event : Symbol(Event, Decl(test.ts, 0, 8)) + +function Input(target: any, key: string): void { } +>Input : Symbol(Input, Decl(test.ts, 0, 32)) +>target : Symbol(target, Decl(test.ts, 1, 15)) +>key : Symbol(key, Decl(test.ts, 1, 27)) + +export class SomeClass { +>SomeClass : Symbol(SomeClass, Decl(test.ts, 1, 50)) + + @Input event: Event; +>Input : Symbol(Input, Decl(test.ts, 0, 32)) +>event : Symbol(SomeClass.event, Decl(test.ts, 2, 24)) +>Event : Symbol(Event, Decl(test.ts, 0, 8)) +} diff --git a/tests/baselines/reference/metadataOfEventAlias(target=es5).types b/tests/baselines/reference/metadataOfEventAlias(target=es5).types new file mode 100644 index 0000000000000..2c6af74915eb6 --- /dev/null +++ b/tests/baselines/reference/metadataOfEventAlias(target=es5).types @@ -0,0 +1,29 @@ +//// [tests/cases/compiler/metadataOfEventAlias.ts] //// + +=== event.ts === +export interface Event { title: string }; +>title : string +> : ^^^^^^ + +=== test.ts === +import { Event } from './event'; +>Event : any +> : ^^^ + +function Input(target: any, key: string): void { } +>Input : (target: any, key: string) => void +> : ^ ^^ ^^ ^^ ^^^^^ +>target : any +>key : string +> : ^^^^^^ + +export class SomeClass { +>SomeClass : SomeClass +> : ^^^^^^^^^ + + @Input event: Event; +>Input : (target: any, key: string) => void +> : ^ ^^ ^^ ^^ ^^^^^ +>event : Event +> : ^^^^^ +} diff --git a/tests/baselines/reference/metadataReferencedWithinFilteredUnion(strictnullchecks=false,target=es2015).js b/tests/baselines/reference/metadataReferencedWithinFilteredUnion(strictnullchecks=false,target=es2015).js new file mode 100644 index 0000000000000..70aa2973031c7 --- /dev/null +++ b/tests/baselines/reference/metadataReferencedWithinFilteredUnion(strictnullchecks=false,target=es2015).js @@ -0,0 +1,56 @@ +//// [tests/cases/compiler/metadataReferencedWithinFilteredUnion.ts] //// + +//// [Class1.ts] +export class Class1 { +} +//// [Class2.ts] +import { Class1 } from './Class1'; + +function decorate(target: any, propertyKey: string) { +} + +export class Class2 { + @decorate + get maybeProp(): Class1 | undefined { + return undefined; + } + @decorate + get prop(): Class1 { + return undefined; + } +} + +//// [Class1.js] +export class Class1 { +} +//// [Class2.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; +import { Class1 } from './Class1'; +function decorate(target, propertyKey) { +} +export class Class2 { + get maybeProp() { + return undefined; + } + get prop() { + return undefined; + } +} +__decorate([ + decorate, + __metadata("design:type", Class1), + __metadata("design:paramtypes", []) +], Class2.prototype, "maybeProp", null); +__decorate([ + decorate, + __metadata("design:type", Class1), + __metadata("design:paramtypes", []) +], Class2.prototype, "prop", null); diff --git a/tests/baselines/reference/metadataReferencedWithinFilteredUnion(strictnullchecks=false).symbols b/tests/baselines/reference/metadataReferencedWithinFilteredUnion(strictnullchecks=false,target=es2015).symbols similarity index 100% rename from tests/baselines/reference/metadataReferencedWithinFilteredUnion(strictnullchecks=false).symbols rename to tests/baselines/reference/metadataReferencedWithinFilteredUnion(strictnullchecks=false,target=es2015).symbols diff --git a/tests/baselines/reference/metadataReferencedWithinFilteredUnion(strictnullchecks=false).types b/tests/baselines/reference/metadataReferencedWithinFilteredUnion(strictnullchecks=false,target=es2015).types similarity index 100% rename from tests/baselines/reference/metadataReferencedWithinFilteredUnion(strictnullchecks=false).types rename to tests/baselines/reference/metadataReferencedWithinFilteredUnion(strictnullchecks=false,target=es2015).types diff --git a/tests/baselines/reference/metadataReferencedWithinFilteredUnion(strictnullchecks=false).js b/tests/baselines/reference/metadataReferencedWithinFilteredUnion(strictnullchecks=false,target=es5).js similarity index 100% rename from tests/baselines/reference/metadataReferencedWithinFilteredUnion(strictnullchecks=false).js rename to tests/baselines/reference/metadataReferencedWithinFilteredUnion(strictnullchecks=false,target=es5).js diff --git a/tests/baselines/reference/metadataReferencedWithinFilteredUnion(strictnullchecks=true).symbols b/tests/baselines/reference/metadataReferencedWithinFilteredUnion(strictnullchecks=false,target=es5).symbols similarity index 100% rename from tests/baselines/reference/metadataReferencedWithinFilteredUnion(strictnullchecks=true).symbols rename to tests/baselines/reference/metadataReferencedWithinFilteredUnion(strictnullchecks=false,target=es5).symbols diff --git a/tests/baselines/reference/metadataReferencedWithinFilteredUnion(strictnullchecks=false,target=es5).types b/tests/baselines/reference/metadataReferencedWithinFilteredUnion(strictnullchecks=false,target=es5).types new file mode 100644 index 0000000000000..5a596676a3f05 --- /dev/null +++ b/tests/baselines/reference/metadataReferencedWithinFilteredUnion(strictnullchecks=false,target=es5).types @@ -0,0 +1,49 @@ +//// [tests/cases/compiler/metadataReferencedWithinFilteredUnion.ts] //// + +=== Class1.ts === +export class Class1 { +>Class1 : Class1 +> : ^^^^^^ +} +=== Class2.ts === +import { Class1 } from './Class1'; +>Class1 : typeof Class1 +> : ^^^^^^^^^^^^^ + +function decorate(target: any, propertyKey: string) { +>decorate : (target: any, propertyKey: string) => void +> : ^ ^^ ^^ ^^ ^^^^^^^^^ +>target : any +>propertyKey : string +> : ^^^^^^ +} + +export class Class2 { +>Class2 : Class2 +> : ^^^^^^ + + @decorate +>decorate : (target: any, propertyKey: string) => void +> : ^ ^^ ^^ ^^ ^^^^^^^^^ + + get maybeProp(): Class1 | undefined { +>maybeProp : Class1 +> : ^^^^^^ + + return undefined; +>undefined : undefined +> : ^^^^^^^^^ + } + @decorate +>decorate : (target: any, propertyKey: string) => void +> : ^ ^^ ^^ ^^ ^^^^^^^^^ + + get prop(): Class1 { +>prop : Class1 +> : ^^^^^^ + + return undefined; +>undefined : undefined +> : ^^^^^^^^^ + } +} diff --git a/tests/baselines/reference/metadataReferencedWithinFilteredUnion(strictnullchecks=true).errors.txt b/tests/baselines/reference/metadataReferencedWithinFilteredUnion(strictnullchecks=true,target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/metadataReferencedWithinFilteredUnion(strictnullchecks=true).errors.txt rename to tests/baselines/reference/metadataReferencedWithinFilteredUnion(strictnullchecks=true,target=es2015).errors.txt diff --git a/tests/baselines/reference/metadataReferencedWithinFilteredUnion(strictnullchecks=true,target=es2015).js b/tests/baselines/reference/metadataReferencedWithinFilteredUnion(strictnullchecks=true,target=es2015).js new file mode 100644 index 0000000000000..2b8af8aba4fd1 --- /dev/null +++ b/tests/baselines/reference/metadataReferencedWithinFilteredUnion(strictnullchecks=true,target=es2015).js @@ -0,0 +1,56 @@ +//// [tests/cases/compiler/metadataReferencedWithinFilteredUnion.ts] //// + +//// [Class1.ts] +export class Class1 { +} +//// [Class2.ts] +import { Class1 } from './Class1'; + +function decorate(target: any, propertyKey: string) { +} + +export class Class2 { + @decorate + get maybeProp(): Class1 | undefined { + return undefined; + } + @decorate + get prop(): Class1 { + return undefined; + } +} + +//// [Class1.js] +export class Class1 { +} +//// [Class2.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; +import { Class1 } from './Class1'; +function decorate(target, propertyKey) { +} +export class Class2 { + get maybeProp() { + return undefined; + } + get prop() { + return undefined; + } +} +__decorate([ + decorate, + __metadata("design:type", Object), + __metadata("design:paramtypes", []) +], Class2.prototype, "maybeProp", null); +__decorate([ + decorate, + __metadata("design:type", Class1), + __metadata("design:paramtypes", []) +], Class2.prototype, "prop", null); diff --git a/tests/baselines/reference/metadataReferencedWithinFilteredUnion(strictnullchecks=true,target=es2015).symbols b/tests/baselines/reference/metadataReferencedWithinFilteredUnion(strictnullchecks=true,target=es2015).symbols new file mode 100644 index 0000000000000..cf34ba8b9fe0d --- /dev/null +++ b/tests/baselines/reference/metadataReferencedWithinFilteredUnion(strictnullchecks=true,target=es2015).symbols @@ -0,0 +1,40 @@ +//// [tests/cases/compiler/metadataReferencedWithinFilteredUnion.ts] //// + +=== Class1.ts === +export class Class1 { +>Class1 : Symbol(Class1, Decl(Class1.ts, 0, 0)) +} +=== Class2.ts === +import { Class1 } from './Class1'; +>Class1 : Symbol(Class1, Decl(Class2.ts, 0, 8)) + +function decorate(target: any, propertyKey: string) { +>decorate : Symbol(decorate, Decl(Class2.ts, 0, 34)) +>target : Symbol(target, Decl(Class2.ts, 2, 18)) +>propertyKey : Symbol(propertyKey, Decl(Class2.ts, 2, 30)) +} + +export class Class2 { +>Class2 : Symbol(Class2, Decl(Class2.ts, 3, 1)) + + @decorate +>decorate : Symbol(decorate, Decl(Class2.ts, 0, 34)) + + get maybeProp(): Class1 | undefined { +>maybeProp : Symbol(Class2.maybeProp, Decl(Class2.ts, 5, 21)) +>Class1 : Symbol(Class1, Decl(Class2.ts, 0, 8)) + + return undefined; +>undefined : Symbol(undefined) + } + @decorate +>decorate : Symbol(decorate, Decl(Class2.ts, 0, 34)) + + get prop(): Class1 { +>prop : Symbol(Class2.prop, Decl(Class2.ts, 9, 5)) +>Class1 : Symbol(Class1, Decl(Class2.ts, 0, 8)) + + return undefined; +>undefined : Symbol(undefined) + } +} diff --git a/tests/baselines/reference/metadataReferencedWithinFilteredUnion(strictnullchecks=true).types b/tests/baselines/reference/metadataReferencedWithinFilteredUnion(strictnullchecks=true,target=es2015).types similarity index 100% rename from tests/baselines/reference/metadataReferencedWithinFilteredUnion(strictnullchecks=true).types rename to tests/baselines/reference/metadataReferencedWithinFilteredUnion(strictnullchecks=true,target=es2015).types diff --git a/tests/baselines/reference/metadataReferencedWithinFilteredUnion(strictnullchecks=true,target=es5).errors.txt b/tests/baselines/reference/metadataReferencedWithinFilteredUnion(strictnullchecks=true,target=es5).errors.txt new file mode 100644 index 0000000000000..4e39e852206b1 --- /dev/null +++ b/tests/baselines/reference/metadataReferencedWithinFilteredUnion(strictnullchecks=true,target=es5).errors.txt @@ -0,0 +1,24 @@ +Class2.ts(13,9): error TS2322: Type 'undefined' is not assignable to type 'Class1'. + + +==== Class1.ts (0 errors) ==== + export class Class1 { + } +==== Class2.ts (1 errors) ==== + import { Class1 } from './Class1'; + + function decorate(target: any, propertyKey: string) { + } + + export class Class2 { + @decorate + get maybeProp(): Class1 | undefined { + return undefined; + } + @decorate + get prop(): Class1 { + return undefined; + ~~~~~~ +!!! error TS2322: Type 'undefined' is not assignable to type 'Class1'. + } + } \ No newline at end of file diff --git a/tests/baselines/reference/metadataReferencedWithinFilteredUnion(strictnullchecks=true).js b/tests/baselines/reference/metadataReferencedWithinFilteredUnion(strictnullchecks=true,target=es5).js similarity index 100% rename from tests/baselines/reference/metadataReferencedWithinFilteredUnion(strictnullchecks=true).js rename to tests/baselines/reference/metadataReferencedWithinFilteredUnion(strictnullchecks=true,target=es5).js diff --git a/tests/baselines/reference/metadataReferencedWithinFilteredUnion(strictnullchecks=true,target=es5).symbols b/tests/baselines/reference/metadataReferencedWithinFilteredUnion(strictnullchecks=true,target=es5).symbols new file mode 100644 index 0000000000000..cf34ba8b9fe0d --- /dev/null +++ b/tests/baselines/reference/metadataReferencedWithinFilteredUnion(strictnullchecks=true,target=es5).symbols @@ -0,0 +1,40 @@ +//// [tests/cases/compiler/metadataReferencedWithinFilteredUnion.ts] //// + +=== Class1.ts === +export class Class1 { +>Class1 : Symbol(Class1, Decl(Class1.ts, 0, 0)) +} +=== Class2.ts === +import { Class1 } from './Class1'; +>Class1 : Symbol(Class1, Decl(Class2.ts, 0, 8)) + +function decorate(target: any, propertyKey: string) { +>decorate : Symbol(decorate, Decl(Class2.ts, 0, 34)) +>target : Symbol(target, Decl(Class2.ts, 2, 18)) +>propertyKey : Symbol(propertyKey, Decl(Class2.ts, 2, 30)) +} + +export class Class2 { +>Class2 : Symbol(Class2, Decl(Class2.ts, 3, 1)) + + @decorate +>decorate : Symbol(decorate, Decl(Class2.ts, 0, 34)) + + get maybeProp(): Class1 | undefined { +>maybeProp : Symbol(Class2.maybeProp, Decl(Class2.ts, 5, 21)) +>Class1 : Symbol(Class1, Decl(Class2.ts, 0, 8)) + + return undefined; +>undefined : Symbol(undefined) + } + @decorate +>decorate : Symbol(decorate, Decl(Class2.ts, 0, 34)) + + get prop(): Class1 { +>prop : Symbol(Class2.prop, Decl(Class2.ts, 9, 5)) +>Class1 : Symbol(Class1, Decl(Class2.ts, 0, 8)) + + return undefined; +>undefined : Symbol(undefined) + } +} diff --git a/tests/baselines/reference/metadataReferencedWithinFilteredUnion(strictnullchecks=true,target=es5).types b/tests/baselines/reference/metadataReferencedWithinFilteredUnion(strictnullchecks=true,target=es5).types new file mode 100644 index 0000000000000..248837954bead --- /dev/null +++ b/tests/baselines/reference/metadataReferencedWithinFilteredUnion(strictnullchecks=true,target=es5).types @@ -0,0 +1,50 @@ +//// [tests/cases/compiler/metadataReferencedWithinFilteredUnion.ts] //// + +=== Class1.ts === +export class Class1 { +>Class1 : Class1 +> : ^^^^^^ +} +=== Class2.ts === +import { Class1 } from './Class1'; +>Class1 : typeof Class1 +> : ^^^^^^^^^^^^^ + +function decorate(target: any, propertyKey: string) { +>decorate : (target: any, propertyKey: string) => void +> : ^ ^^ ^^ ^^ ^^^^^^^^^ +>target : any +> : ^^^ +>propertyKey : string +> : ^^^^^^ +} + +export class Class2 { +>Class2 : Class2 +> : ^^^^^^ + + @decorate +>decorate : (target: any, propertyKey: string) => void +> : ^ ^^ ^^ ^^ ^^^^^^^^^ + + get maybeProp(): Class1 | undefined { +>maybeProp : Class1 | undefined +> : ^^^^^^^^^^^^^^^^^^ + + return undefined; +>undefined : undefined +> : ^^^^^^^^^ + } + @decorate +>decorate : (target: any, propertyKey: string) => void +> : ^ ^^ ^^ ^^ ^^^^^^^^^ + + get prop(): Class1 { +>prop : Class1 +> : ^^^^^^ + + return undefined; +>undefined : undefined +> : ^^^^^^^^^ + } +} diff --git a/tests/baselines/reference/methodContainingLocalFunction(target=es2015).js b/tests/baselines/reference/methodContainingLocalFunction(target=es2015).js new file mode 100644 index 0000000000000..d0c76ddccf2c3 --- /dev/null +++ b/tests/baselines/reference/methodContainingLocalFunction(target=es2015).js @@ -0,0 +1,103 @@ +//// [tests/cases/compiler/methodContainingLocalFunction.ts] //// + +//// [methodContainingLocalFunction.ts] +// The first case here (BugExhibition) caused a crash. Try with different permutations of features. +class BugExhibition { + public exhibitBug() { + function localFunction() { } + var x: { (): void; }; + x = localFunction; + } +} + +class BugExhibition2 { + private static get exhibitBug() { + function localFunction() { } + var x: { (): void; }; + x = localFunction; + return null; + } +} + +class BugExhibition3 { + public exhibitBug() { + function localGenericFunction(u?: U) { } + var x: { (): void; }; + x = localGenericFunction; + } +} + +class C { + exhibit() { + var funcExpr = (u?: U) => { }; + var x: { (): void; }; + x = funcExpr; + } +} + +namespace M { + export function exhibitBug() { + function localFunction() { } + var x: { (): void; }; + x = localFunction; + } +} + +enum E { + A = (() => { + function localFunction() { } + var x: { (): void; }; + x = localFunction; + return 0; + })() +} + +//// [methodContainingLocalFunction.js] +// The first case here (BugExhibition) caused a crash. Try with different permutations of features. +class BugExhibition { + exhibitBug() { + function localFunction() { } + var x; + x = localFunction; + } +} +class BugExhibition2 { + static get exhibitBug() { + function localFunction() { } + var x; + x = localFunction; + return null; + } +} +class BugExhibition3 { + exhibitBug() { + function localGenericFunction(u) { } + var x; + x = localGenericFunction; + } +} +class C { + exhibit() { + var funcExpr = (u) => { }; + var x; + x = funcExpr; + } +} +var M; +(function (M) { + function exhibitBug() { + function localFunction() { } + var x; + x = localFunction; + } + M.exhibitBug = exhibitBug; +})(M || (M = {})); +var E; +(function (E) { + E[E["A"] = (() => { + function localFunction() { } + var x; + x = localFunction; + return 0; + })()] = "A"; +})(E || (E = {})); diff --git a/tests/baselines/reference/methodContainingLocalFunction.symbols b/tests/baselines/reference/methodContainingLocalFunction(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/methodContainingLocalFunction.symbols rename to tests/baselines/reference/methodContainingLocalFunction(target=es2015).symbols diff --git a/tests/baselines/reference/methodContainingLocalFunction.types b/tests/baselines/reference/methodContainingLocalFunction(target=es2015).types similarity index 100% rename from tests/baselines/reference/methodContainingLocalFunction.types rename to tests/baselines/reference/methodContainingLocalFunction(target=es2015).types diff --git a/tests/baselines/reference/methodContainingLocalFunction.js b/tests/baselines/reference/methodContainingLocalFunction(target=es5).js similarity index 100% rename from tests/baselines/reference/methodContainingLocalFunction.js rename to tests/baselines/reference/methodContainingLocalFunction(target=es5).js diff --git a/tests/baselines/reference/methodContainingLocalFunction(target=es5).symbols b/tests/baselines/reference/methodContainingLocalFunction(target=es5).symbols new file mode 100644 index 0000000000000..ed1e6806ef67b --- /dev/null +++ b/tests/baselines/reference/methodContainingLocalFunction(target=es5).symbols @@ -0,0 +1,124 @@ +//// [tests/cases/compiler/methodContainingLocalFunction.ts] //// + +=== methodContainingLocalFunction.ts === +// The first case here (BugExhibition) caused a crash. Try with different permutations of features. +class BugExhibition { +>BugExhibition : Symbol(BugExhibition, Decl(methodContainingLocalFunction.ts, 0, 0)) +>T : Symbol(T, Decl(methodContainingLocalFunction.ts, 1, 20)) + + public exhibitBug() { +>exhibitBug : Symbol(BugExhibition.exhibitBug, Decl(methodContainingLocalFunction.ts, 1, 24)) + + function localFunction() { } +>localFunction : Symbol(localFunction, Decl(methodContainingLocalFunction.ts, 2, 25)) + + var x: { (): void; }; +>x : Symbol(x, Decl(methodContainingLocalFunction.ts, 4, 11)) + + x = localFunction; +>x : Symbol(x, Decl(methodContainingLocalFunction.ts, 4, 11)) +>localFunction : Symbol(localFunction, Decl(methodContainingLocalFunction.ts, 2, 25)) + } +} + +class BugExhibition2 { +>BugExhibition2 : Symbol(BugExhibition2, Decl(methodContainingLocalFunction.ts, 7, 1)) +>T : Symbol(T, Decl(methodContainingLocalFunction.ts, 9, 21)) + + private static get exhibitBug() { +>exhibitBug : Symbol(BugExhibition2.exhibitBug, Decl(methodContainingLocalFunction.ts, 9, 25)) + + function localFunction() { } +>localFunction : Symbol(localFunction, Decl(methodContainingLocalFunction.ts, 10, 37)) + + var x: { (): void; }; +>x : Symbol(x, Decl(methodContainingLocalFunction.ts, 12, 11)) + + x = localFunction; +>x : Symbol(x, Decl(methodContainingLocalFunction.ts, 12, 11)) +>localFunction : Symbol(localFunction, Decl(methodContainingLocalFunction.ts, 10, 37)) + + return null; + } +} + +class BugExhibition3 { +>BugExhibition3 : Symbol(BugExhibition3, Decl(methodContainingLocalFunction.ts, 16, 1)) +>T : Symbol(T, Decl(methodContainingLocalFunction.ts, 18, 21)) + + public exhibitBug() { +>exhibitBug : Symbol(BugExhibition3.exhibitBug, Decl(methodContainingLocalFunction.ts, 18, 25)) + + function localGenericFunction(u?: U) { } +>localGenericFunction : Symbol(localGenericFunction, Decl(methodContainingLocalFunction.ts, 19, 25)) +>U : Symbol(U, Decl(methodContainingLocalFunction.ts, 20, 38)) +>u : Symbol(u, Decl(methodContainingLocalFunction.ts, 20, 41)) +>U : Symbol(U, Decl(methodContainingLocalFunction.ts, 20, 38)) + + var x: { (): void; }; +>x : Symbol(x, Decl(methodContainingLocalFunction.ts, 21, 11)) + + x = localGenericFunction; +>x : Symbol(x, Decl(methodContainingLocalFunction.ts, 21, 11)) +>localGenericFunction : Symbol(localGenericFunction, Decl(methodContainingLocalFunction.ts, 19, 25)) + } +} + +class C { +>C : Symbol(C, Decl(methodContainingLocalFunction.ts, 24, 1)) + + exhibit() { +>exhibit : Symbol(C.exhibit, Decl(methodContainingLocalFunction.ts, 26, 9)) + + var funcExpr = (u?: U) => { }; +>funcExpr : Symbol(funcExpr, Decl(methodContainingLocalFunction.ts, 28, 11)) +>U : Symbol(U, Decl(methodContainingLocalFunction.ts, 28, 24)) +>u : Symbol(u, Decl(methodContainingLocalFunction.ts, 28, 27)) +>U : Symbol(U, Decl(methodContainingLocalFunction.ts, 28, 24)) + + var x: { (): void; }; +>x : Symbol(x, Decl(methodContainingLocalFunction.ts, 29, 11)) + + x = funcExpr; +>x : Symbol(x, Decl(methodContainingLocalFunction.ts, 29, 11)) +>funcExpr : Symbol(funcExpr, Decl(methodContainingLocalFunction.ts, 28, 11)) + } +} + +namespace M { +>M : Symbol(M, Decl(methodContainingLocalFunction.ts, 32, 1)) + + export function exhibitBug() { +>exhibitBug : Symbol(exhibitBug, Decl(methodContainingLocalFunction.ts, 34, 13)) + + function localFunction() { } +>localFunction : Symbol(localFunction, Decl(methodContainingLocalFunction.ts, 35, 34)) + + var x: { (): void; }; +>x : Symbol(x, Decl(methodContainingLocalFunction.ts, 37, 11)) + + x = localFunction; +>x : Symbol(x, Decl(methodContainingLocalFunction.ts, 37, 11)) +>localFunction : Symbol(localFunction, Decl(methodContainingLocalFunction.ts, 35, 34)) + } +} + +enum E { +>E : Symbol(E, Decl(methodContainingLocalFunction.ts, 40, 1)) + + A = (() => { +>A : Symbol(E.A, Decl(methodContainingLocalFunction.ts, 42, 8)) + + function localFunction() { } +>localFunction : Symbol(localFunction, Decl(methodContainingLocalFunction.ts, 43, 16)) + + var x: { (): void; }; +>x : Symbol(x, Decl(methodContainingLocalFunction.ts, 45, 11)) + + x = localFunction; +>x : Symbol(x, Decl(methodContainingLocalFunction.ts, 45, 11)) +>localFunction : Symbol(localFunction, Decl(methodContainingLocalFunction.ts, 43, 16)) + + return 0; + })() +} diff --git a/tests/baselines/reference/methodContainingLocalFunction(target=es5).types b/tests/baselines/reference/methodContainingLocalFunction(target=es5).types new file mode 100644 index 0000000000000..4b964d817d05e --- /dev/null +++ b/tests/baselines/reference/methodContainingLocalFunction(target=es5).types @@ -0,0 +1,177 @@ +//// [tests/cases/compiler/methodContainingLocalFunction.ts] //// + +=== methodContainingLocalFunction.ts === +// The first case here (BugExhibition) caused a crash. Try with different permutations of features. +class BugExhibition { +>BugExhibition : BugExhibition +> : ^^^^^^^^^^^^^^^^ + + public exhibitBug() { +>exhibitBug : () => void +> : ^^^^^^^^^^ + + function localFunction() { } +>localFunction : () => void +> : ^^^^^^^^^^ + + var x: { (): void; }; +>x : () => void +> : ^^^^^^ + + x = localFunction; +>x = localFunction : () => void +> : ^^^^^^^^^^ +>x : () => void +> : ^^^^^^ +>localFunction : () => void +> : ^^^^^^^^^^ + } +} + +class BugExhibition2 { +>BugExhibition2 : BugExhibition2 +> : ^^^^^^^^^^^^^^^^^ + + private static get exhibitBug() { +>exhibitBug : any + + function localFunction() { } +>localFunction : () => void +> : ^^^^^^^^^^ + + var x: { (): void; }; +>x : () => void +> : ^^^^^^ + + x = localFunction; +>x = localFunction : () => void +> : ^^^^^^^^^^ +>x : () => void +> : ^^^^^^ +>localFunction : () => void +> : ^^^^^^^^^^ + + return null; + } +} + +class BugExhibition3 { +>BugExhibition3 : BugExhibition3 +> : ^^^^^^^^^^^^^^^^^ + + public exhibitBug() { +>exhibitBug : () => void +> : ^^^^^^^^^^ + + function localGenericFunction(u?: U) { } +>localGenericFunction : (u?: U) => void +> : ^ ^^ ^^^ ^^^^^^^^^ +>u : U +> : ^ + + var x: { (): void; }; +>x : () => void +> : ^^^^^^ + + x = localGenericFunction; +>x = localGenericFunction : (u?: U) => void +> : ^ ^^ ^^^ ^^^^^^^^^ +>x : () => void +> : ^^^^^^ +>localGenericFunction : (u?: U) => void +> : ^ ^^ ^^^ ^^^^^^^^^ + } +} + +class C { +>C : C +> : ^ + + exhibit() { +>exhibit : () => void +> : ^^^^^^^^^^ + + var funcExpr = (u?: U) => { }; +>funcExpr : (u?: U) => void +> : ^ ^^ ^^^ ^^^^^^^^^ +>(u?: U) => { } : (u?: U) => void +> : ^ ^^ ^^^ ^^^^^^^^^ +>u : U +> : ^ + + var x: { (): void; }; +>x : () => void +> : ^^^^^^ + + x = funcExpr; +>x = funcExpr : (u?: U) => void +> : ^ ^^ ^^^ ^^^^^^^^^ +>x : () => void +> : ^^^^^^ +>funcExpr : (u?: U) => void +> : ^ ^^ ^^^ ^^^^^^^^^ + } +} + +namespace M { +>M : typeof M +> : ^^^^^^^^ + + export function exhibitBug() { +>exhibitBug : () => void +> : ^^^^^^^^^^ + + function localFunction() { } +>localFunction : () => void +> : ^^^^^^^^^^ + + var x: { (): void; }; +>x : () => void +> : ^^^^^^ + + x = localFunction; +>x = localFunction : () => void +> : ^^^^^^^^^^ +>x : () => void +> : ^^^^^^ +>localFunction : () => void +> : ^^^^^^^^^^ + } +} + +enum E { +>E : E +> : ^ + + A = (() => { +>A : E.A +> : ^^^ +>(() => { function localFunction() { } var x: { (): void; }; x = localFunction; return 0; })() : number +> : ^^^^^^ +>(() => { function localFunction() { } var x: { (): void; }; x = localFunction; return 0; }) : () => number +> : ^^^^^^^^^^^^ +>() => { function localFunction() { } var x: { (): void; }; x = localFunction; return 0; } : () => number +> : ^^^^^^^^^^^^ + + function localFunction() { } +>localFunction : () => void +> : ^^^^^^^^^^ + + var x: { (): void; }; +>x : () => void +> : ^^^^^^ + + x = localFunction; +>x = localFunction : () => void +> : ^^^^^^^^^^ +>x : () => void +> : ^^^^^^ +>localFunction : () => void +> : ^^^^^^^^^^ + + return 0; +>0 : 0 +> : ^ + + })() +} diff --git a/tests/baselines/reference/missingDecoratorType.errors.txt b/tests/baselines/reference/missingDecoratorType(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/missingDecoratorType.errors.txt rename to tests/baselines/reference/missingDecoratorType(target=es2015).errors.txt diff --git a/tests/baselines/reference/missingDecoratorType(target=es2015).js b/tests/baselines/reference/missingDecoratorType(target=es2015).js new file mode 100644 index 0000000000000..4987fdd545af3 --- /dev/null +++ b/tests/baselines/reference/missingDecoratorType(target=es2015).js @@ -0,0 +1,36 @@ +//// [tests/cases/conformance/decorators/missingDecoratorType.ts] //// + +//// [a.ts] +interface Object { } +interface Array { } +interface String { } +interface Boolean { } +interface Number { } +interface Function { } +interface RegExp { } +interface IArguments { } + +//// [b.ts] +declare function dec(t, k, d); + +class C { + @dec + method() {} +} + + + +//// [a.js] +//// [b.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +class C { + method() { } +} +__decorate([ + dec +], C.prototype, "method", null); diff --git a/tests/baselines/reference/missingDecoratorType.symbols b/tests/baselines/reference/missingDecoratorType(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/missingDecoratorType.symbols rename to tests/baselines/reference/missingDecoratorType(target=es2015).symbols diff --git a/tests/baselines/reference/missingDecoratorType.types b/tests/baselines/reference/missingDecoratorType(target=es2015).types similarity index 100% rename from tests/baselines/reference/missingDecoratorType.types rename to tests/baselines/reference/missingDecoratorType(target=es2015).types diff --git a/tests/baselines/reference/missingDecoratorType(target=es5).errors.txt b/tests/baselines/reference/missingDecoratorType(target=es5).errors.txt new file mode 100644 index 0000000000000..85cb3b7db8f22 --- /dev/null +++ b/tests/baselines/reference/missingDecoratorType(target=es5).errors.txt @@ -0,0 +1,23 @@ +error TS2318: Cannot find global type 'TypedPropertyDescriptor'. + + +!!! error TS2318: Cannot find global type 'TypedPropertyDescriptor'. +==== a.ts (0 errors) ==== + interface Object { } + interface Array { } + interface String { } + interface Boolean { } + interface Number { } + interface Function { } + interface RegExp { } + interface IArguments { } + +==== b.ts (0 errors) ==== + declare function dec(t, k, d); + + class C { + @dec + method() {} + } + + \ No newline at end of file diff --git a/tests/baselines/reference/missingDecoratorType.js b/tests/baselines/reference/missingDecoratorType(target=es5).js similarity index 100% rename from tests/baselines/reference/missingDecoratorType.js rename to tests/baselines/reference/missingDecoratorType(target=es5).js diff --git a/tests/baselines/reference/missingDecoratorType(target=es5).symbols b/tests/baselines/reference/missingDecoratorType(target=es5).symbols new file mode 100644 index 0000000000000..f1b9dba7b13d9 --- /dev/null +++ b/tests/baselines/reference/missingDecoratorType(target=es5).symbols @@ -0,0 +1,46 @@ +//// [tests/cases/conformance/decorators/missingDecoratorType.ts] //// + +=== a.ts === +interface Object { } +>Object : Symbol(Object, Decl(a.ts, 0, 0)) + +interface Array { } +>Array : Symbol(Array, Decl(a.ts, 0, 20)) +>T : Symbol(T, Decl(a.ts, 1, 16)) + +interface String { } +>String : Symbol(String, Decl(a.ts, 1, 22)) + +interface Boolean { } +>Boolean : Symbol(Boolean, Decl(a.ts, 2, 20)) + +interface Number { } +>Number : Symbol(Number, Decl(a.ts, 3, 21)) + +interface Function { } +>Function : Symbol(Function, Decl(a.ts, 4, 20)) + +interface RegExp { } +>RegExp : Symbol(RegExp, Decl(a.ts, 5, 22)) + +interface IArguments { } +>IArguments : Symbol(IArguments, Decl(a.ts, 6, 20)) + +=== b.ts === +declare function dec(t, k, d); +>dec : Symbol(dec, Decl(b.ts, 0, 0)) +>t : Symbol(t, Decl(b.ts, 0, 21)) +>k : Symbol(k, Decl(b.ts, 0, 23)) +>d : Symbol(d, Decl(b.ts, 0, 26)) + +class C { +>C : Symbol(C, Decl(b.ts, 0, 30)) + + @dec +>dec : Symbol(dec, Decl(b.ts, 0, 0)) + + method() {} +>method : Symbol(C.method, Decl(b.ts, 2, 9)) +} + + diff --git a/tests/baselines/reference/missingDecoratorType(target=es5).types b/tests/baselines/reference/missingDecoratorType(target=es5).types new file mode 100644 index 0000000000000..27dc6877846c3 --- /dev/null +++ b/tests/baselines/reference/missingDecoratorType(target=es5).types @@ -0,0 +1,38 @@ +//// [tests/cases/conformance/decorators/missingDecoratorType.ts] //// + +=== a.ts === + +interface Object { } +interface Array { } +interface String { } +interface Boolean { } +interface Number { } +interface Function { } +interface RegExp { } +interface IArguments { } + +=== b.ts === +declare function dec(t, k, d); +>dec : (t: any, k: any, d: any) => any +> : ^ ^^^^^^^ ^^^^^^^ ^^^^^^^^^^^^^ +>t : any +> : ^^^ +>k : any +> : ^^^ +>d : any +> : ^^^ + +class C { +>C : C +> : ^ + + @dec +>dec : (t: any, k: any, d: any) => any +> : ^ ^^^^^^^ ^^^^^^^ ^^^^^^^^^^^^^ + + method() {} +>method : () => void +> : ^^^^^^^^^^ +} + + diff --git a/tests/baselines/reference/modifierParenCast(target=es2015).js b/tests/baselines/reference/modifierParenCast(target=es2015).js new file mode 100644 index 0000000000000..ea2af4af9d323 --- /dev/null +++ b/tests/baselines/reference/modifierParenCast(target=es2015).js @@ -0,0 +1,22 @@ +//// [tests/cases/compiler/modifierParenCast.ts] //// + +//// [modifierParenCast.ts] +let readonly: any = undefined; +let override: any = undefined; +let out: any = undefined; +let declare: any = undefined; + +export const a = (readonly as number); +export const b = (override as number); +export const c = (out as number); +export const d = (declare as number); + +//// [modifierParenCast.js] +let readonly = undefined; +let override = undefined; +let out = undefined; +let declare = undefined; +export const a = readonly; +export const b = override; +export const c = out; +export const d = declare; diff --git a/tests/baselines/reference/modifierParenCast.symbols b/tests/baselines/reference/modifierParenCast(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/modifierParenCast.symbols rename to tests/baselines/reference/modifierParenCast(target=es2015).symbols diff --git a/tests/baselines/reference/modifierParenCast.types b/tests/baselines/reference/modifierParenCast(target=es2015).types similarity index 100% rename from tests/baselines/reference/modifierParenCast.types rename to tests/baselines/reference/modifierParenCast(target=es2015).types diff --git a/tests/baselines/reference/modifierParenCast.js b/tests/baselines/reference/modifierParenCast(target=es5).js similarity index 100% rename from tests/baselines/reference/modifierParenCast.js rename to tests/baselines/reference/modifierParenCast(target=es5).js diff --git a/tests/baselines/reference/modifierParenCast(target=es5).symbols b/tests/baselines/reference/modifierParenCast(target=es5).symbols new file mode 100644 index 0000000000000..d5714119b8171 --- /dev/null +++ b/tests/baselines/reference/modifierParenCast(target=es5).symbols @@ -0,0 +1,35 @@ +//// [tests/cases/compiler/modifierParenCast.ts] //// + +=== modifierParenCast.ts === +let readonly: any = undefined; +>readonly : Symbol(readonly, Decl(modifierParenCast.ts, 0, 3)) +>undefined : Symbol(undefined) + +let override: any = undefined; +>override : Symbol(override, Decl(modifierParenCast.ts, 1, 3)) +>undefined : Symbol(undefined) + +let out: any = undefined; +>out : Symbol(out, Decl(modifierParenCast.ts, 2, 3)) +>undefined : Symbol(undefined) + +let declare: any = undefined; +>declare : Symbol(declare, Decl(modifierParenCast.ts, 3, 3)) +>undefined : Symbol(undefined) + +export const a = (readonly as number); +>a : Symbol(a, Decl(modifierParenCast.ts, 5, 12)) +>readonly : Symbol(readonly, Decl(modifierParenCast.ts, 0, 3)) + +export const b = (override as number); +>b : Symbol(b, Decl(modifierParenCast.ts, 6, 12)) +>override : Symbol(override, Decl(modifierParenCast.ts, 1, 3)) + +export const c = (out as number); +>c : Symbol(c, Decl(modifierParenCast.ts, 7, 12)) +>out : Symbol(out, Decl(modifierParenCast.ts, 2, 3)) + +export const d = (declare as number); +>d : Symbol(d, Decl(modifierParenCast.ts, 8, 12)) +>declare : Symbol(declare, Decl(modifierParenCast.ts, 3, 3)) + diff --git a/tests/baselines/reference/modifierParenCast(target=es5).types b/tests/baselines/reference/modifierParenCast(target=es5).types new file mode 100644 index 0000000000000..7e3555464015b --- /dev/null +++ b/tests/baselines/reference/modifierParenCast(target=es5).types @@ -0,0 +1,59 @@ +//// [tests/cases/compiler/modifierParenCast.ts] //// + +=== modifierParenCast.ts === +let readonly: any = undefined; +>readonly : any +>undefined : undefined +> : ^^^^^^^^^ + +let override: any = undefined; +>override : any +>undefined : undefined +> : ^^^^^^^^^ + +let out: any = undefined; +>out : any +>undefined : undefined +> : ^^^^^^^^^ + +let declare: any = undefined; +>declare : any +>undefined : undefined +> : ^^^^^^^^^ + +export const a = (readonly as number); +>a : number +> : ^^^^^^ +>(readonly as number) : number +> : ^^^^^^ +>readonly as number : number +> : ^^^^^^ +>readonly : any + +export const b = (override as number); +>b : number +> : ^^^^^^ +>(override as number) : number +> : ^^^^^^ +>override as number : number +> : ^^^^^^ +>override : any + +export const c = (out as number); +>c : number +> : ^^^^^^ +>(out as number) : number +> : ^^^^^^ +>out as number : number +> : ^^^^^^ +>out : any + +export const d = (declare as number); +>d : number +> : ^^^^^^ +>(declare as number) : number +> : ^^^^^^ +>declare as number : number +> : ^^^^^^ +>declare : any + diff --git a/tests/baselines/reference/modularizeLibrary_ErrorFromUsingES6ArrayWithOnlyES6ArrayLib.errors.txt b/tests/baselines/reference/modularizeLibrary_ErrorFromUsingES6ArrayWithOnlyES6ArrayLib(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/modularizeLibrary_ErrorFromUsingES6ArrayWithOnlyES6ArrayLib.errors.txt rename to tests/baselines/reference/modularizeLibrary_ErrorFromUsingES6ArrayWithOnlyES6ArrayLib(target=es2015).errors.txt diff --git a/tests/baselines/reference/modularizeLibrary_ErrorFromUsingES6ArrayWithOnlyES6ArrayLib.js b/tests/baselines/reference/modularizeLibrary_ErrorFromUsingES6ArrayWithOnlyES6ArrayLib(target=es2015).js similarity index 100% rename from tests/baselines/reference/modularizeLibrary_ErrorFromUsingES6ArrayWithOnlyES6ArrayLib.js rename to tests/baselines/reference/modularizeLibrary_ErrorFromUsingES6ArrayWithOnlyES6ArrayLib(target=es2015).js diff --git a/tests/baselines/reference/modularizeLibrary_ErrorFromUsingES6ArrayWithOnlyES6ArrayLib.symbols b/tests/baselines/reference/modularizeLibrary_ErrorFromUsingES6ArrayWithOnlyES6ArrayLib(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/modularizeLibrary_ErrorFromUsingES6ArrayWithOnlyES6ArrayLib.symbols rename to tests/baselines/reference/modularizeLibrary_ErrorFromUsingES6ArrayWithOnlyES6ArrayLib(target=es2015).symbols diff --git a/tests/baselines/reference/modularizeLibrary_ErrorFromUsingES6ArrayWithOnlyES6ArrayLib.types b/tests/baselines/reference/modularizeLibrary_ErrorFromUsingES6ArrayWithOnlyES6ArrayLib(target=es2015).types similarity index 100% rename from tests/baselines/reference/modularizeLibrary_ErrorFromUsingES6ArrayWithOnlyES6ArrayLib.types rename to tests/baselines/reference/modularizeLibrary_ErrorFromUsingES6ArrayWithOnlyES6ArrayLib(target=es2015).types diff --git a/tests/baselines/reference/modularizeLibrary_ErrorFromUsingES6ArrayWithOnlyES6ArrayLib(target=es5).errors.txt b/tests/baselines/reference/modularizeLibrary_ErrorFromUsingES6ArrayWithOnlyES6ArrayLib(target=es5).errors.txt new file mode 100644 index 0000000000000..3eeefbff8eae6 --- /dev/null +++ b/tests/baselines/reference/modularizeLibrary_ErrorFromUsingES6ArrayWithOnlyES6ArrayLib(target=es5).errors.txt @@ -0,0 +1,21 @@ +error TS2318: Cannot find global type 'Boolean'. +error TS2318: Cannot find global type 'IArguments'. +error TS2318: Cannot find global type 'Number'. +error TS2318: Cannot find global type 'Object'. +modularizeLibrary_ErrorFromUsingES6ArrayWithOnlyES6ArrayLib.ts(3,12): error TS2693: 'Array' only refers to a type, but is being used as a value here. + + +!!! error TS2318: Cannot find global type 'Boolean'. +!!! error TS2318: Cannot find global type 'IArguments'. +!!! error TS2318: Cannot find global type 'Number'. +!!! error TS2318: Cannot find global type 'Object'. +==== modularizeLibrary_ErrorFromUsingES6ArrayWithOnlyES6ArrayLib.ts (1 errors) ==== + // Error missing basic JavaScript objects + function f(x: number, y: number, z: number) { + return Array.from(arguments); + ~~~~~ +!!! error TS2693: 'Array' only refers to a type, but is being used as a value here. + } + + f(1, 2, 3); + \ No newline at end of file diff --git a/tests/baselines/reference/modularizeLibrary_ErrorFromUsingES6ArrayWithOnlyES6ArrayLib(target=es5).js b/tests/baselines/reference/modularizeLibrary_ErrorFromUsingES6ArrayWithOnlyES6ArrayLib(target=es5).js new file mode 100644 index 0000000000000..7820fcaeeb072 --- /dev/null +++ b/tests/baselines/reference/modularizeLibrary_ErrorFromUsingES6ArrayWithOnlyES6ArrayLib(target=es5).js @@ -0,0 +1,17 @@ +//// [tests/cases/compiler/modularizeLibrary_ErrorFromUsingES6ArrayWithOnlyES6ArrayLib.ts] //// + +//// [modularizeLibrary_ErrorFromUsingES6ArrayWithOnlyES6ArrayLib.ts] +// Error missing basic JavaScript objects +function f(x: number, y: number, z: number) { + return Array.from(arguments); +} + +f(1, 2, 3); + + +//// [modularizeLibrary_ErrorFromUsingES6ArrayWithOnlyES6ArrayLib.js] +// Error missing basic JavaScript objects +function f(x, y, z) { + return Array.from(arguments); +} +f(1, 2, 3); diff --git a/tests/baselines/reference/modularizeLibrary_ErrorFromUsingES6ArrayWithOnlyES6ArrayLib(target=es5).symbols b/tests/baselines/reference/modularizeLibrary_ErrorFromUsingES6ArrayWithOnlyES6ArrayLib(target=es5).symbols new file mode 100644 index 0000000000000..289bc397e37ee --- /dev/null +++ b/tests/baselines/reference/modularizeLibrary_ErrorFromUsingES6ArrayWithOnlyES6ArrayLib(target=es5).symbols @@ -0,0 +1,17 @@ +//// [tests/cases/compiler/modularizeLibrary_ErrorFromUsingES6ArrayWithOnlyES6ArrayLib.ts] //// + +=== modularizeLibrary_ErrorFromUsingES6ArrayWithOnlyES6ArrayLib.ts === +// Error missing basic JavaScript objects +function f(x: number, y: number, z: number) { +>f : Symbol(f, Decl(modularizeLibrary_ErrorFromUsingES6ArrayWithOnlyES6ArrayLib.ts, 0, 0)) +>x : Symbol(x, Decl(modularizeLibrary_ErrorFromUsingES6ArrayWithOnlyES6ArrayLib.ts, 1, 11)) +>y : Symbol(y, Decl(modularizeLibrary_ErrorFromUsingES6ArrayWithOnlyES6ArrayLib.ts, 1, 21)) +>z : Symbol(z, Decl(modularizeLibrary_ErrorFromUsingES6ArrayWithOnlyES6ArrayLib.ts, 1, 32)) + + return Array.from(arguments); +>arguments : Symbol(arguments) +} + +f(1, 2, 3); +>f : Symbol(f, Decl(modularizeLibrary_ErrorFromUsingES6ArrayWithOnlyES6ArrayLib.ts, 0, 0)) + diff --git a/tests/baselines/reference/modularizeLibrary_ErrorFromUsingES6ArrayWithOnlyES6ArrayLib(target=es5).types b/tests/baselines/reference/modularizeLibrary_ErrorFromUsingES6ArrayWithOnlyES6ArrayLib(target=es5).types new file mode 100644 index 0000000000000..106548afd59e9 --- /dev/null +++ b/tests/baselines/reference/modularizeLibrary_ErrorFromUsingES6ArrayWithOnlyES6ArrayLib(target=es5).types @@ -0,0 +1,39 @@ +//// [tests/cases/compiler/modularizeLibrary_ErrorFromUsingES6ArrayWithOnlyES6ArrayLib.ts] //// + +=== modularizeLibrary_ErrorFromUsingES6ArrayWithOnlyES6ArrayLib.ts === +// Error missing basic JavaScript objects +function f(x: number, y: number, z: number) { +>f : (x: number, y: number, z: number) => any +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^^^^ +>x : number +> : ^^^^^^ +>y : number +> : ^^^^^^ +>z : number +> : ^^^^^^ + + return Array.from(arguments); +>Array.from(arguments) : any +> : ^^^ +>Array.from : any +> : ^^^ +>Array : any +> : ^^^ +>from : any +> : ^^^ +>arguments : {} +> : ^^ +} + +f(1, 2, 3); +>f(1, 2, 3) : any +> : ^^^ +>f : (x: number, y: number, z: number) => any +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ +>3 : 3 +> : ^ + diff --git a/tests/baselines/reference/modularizeLibrary_UsingES5LibAndES6ArrayLib.js b/tests/baselines/reference/modularizeLibrary_UsingES5LibAndES6ArrayLib(target=es2015).js similarity index 100% rename from tests/baselines/reference/modularizeLibrary_UsingES5LibAndES6ArrayLib.js rename to tests/baselines/reference/modularizeLibrary_UsingES5LibAndES6ArrayLib(target=es2015).js diff --git a/tests/baselines/reference/modularizeLibrary_UsingES5LibAndES6ArrayLib.symbols b/tests/baselines/reference/modularizeLibrary_UsingES5LibAndES6ArrayLib(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/modularizeLibrary_UsingES5LibAndES6ArrayLib.symbols rename to tests/baselines/reference/modularizeLibrary_UsingES5LibAndES6ArrayLib(target=es2015).symbols diff --git a/tests/baselines/reference/modularizeLibrary_UsingES5LibAndES6ArrayLib.types b/tests/baselines/reference/modularizeLibrary_UsingES5LibAndES6ArrayLib(target=es2015).types similarity index 100% rename from tests/baselines/reference/modularizeLibrary_UsingES5LibAndES6ArrayLib.types rename to tests/baselines/reference/modularizeLibrary_UsingES5LibAndES6ArrayLib(target=es2015).types diff --git a/tests/baselines/reference/modularizeLibrary_UsingES5LibAndES6ArrayLib(target=es5).js b/tests/baselines/reference/modularizeLibrary_UsingES5LibAndES6ArrayLib(target=es5).js new file mode 100644 index 0000000000000..79f042c09e830 --- /dev/null +++ b/tests/baselines/reference/modularizeLibrary_UsingES5LibAndES6ArrayLib(target=es5).js @@ -0,0 +1,16 @@ +//// [tests/cases/compiler/modularizeLibrary_UsingES5LibAndES6ArrayLib.ts] //// + +//// [modularizeLibrary_UsingES5LibAndES6ArrayLib.ts] +// No error +function f(x: number, y: number, z: number) { + return Array.from(arguments); +} + +f(1, 2, 3); + +//// [modularizeLibrary_UsingES5LibAndES6ArrayLib.js] +// No error +function f(x, y, z) { + return Array.from(arguments); +} +f(1, 2, 3); diff --git a/tests/baselines/reference/modularizeLibrary_UsingES5LibAndES6ArrayLib(target=es5).symbols b/tests/baselines/reference/modularizeLibrary_UsingES5LibAndES6ArrayLib(target=es5).symbols new file mode 100644 index 0000000000000..556acc341571f --- /dev/null +++ b/tests/baselines/reference/modularizeLibrary_UsingES5LibAndES6ArrayLib(target=es5).symbols @@ -0,0 +1,20 @@ +//// [tests/cases/compiler/modularizeLibrary_UsingES5LibAndES6ArrayLib.ts] //// + +=== modularizeLibrary_UsingES5LibAndES6ArrayLib.ts === +// No error +function f(x: number, y: number, z: number) { +>f : Symbol(f, Decl(modularizeLibrary_UsingES5LibAndES6ArrayLib.ts, 0, 0)) +>x : Symbol(x, Decl(modularizeLibrary_UsingES5LibAndES6ArrayLib.ts, 1, 11)) +>y : Symbol(y, Decl(modularizeLibrary_UsingES5LibAndES6ArrayLib.ts, 1, 21)) +>z : Symbol(z, Decl(modularizeLibrary_UsingES5LibAndES6ArrayLib.ts, 1, 32)) + + return Array.from(arguments); +>Array.from : Symbol(ArrayConstructor.from, Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) +>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) +>from : Symbol(ArrayConstructor.from, Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) +>arguments : Symbol(arguments) +} + +f(1, 2, 3); +>f : Symbol(f, Decl(modularizeLibrary_UsingES5LibAndES6ArrayLib.ts, 0, 0)) + diff --git a/tests/baselines/reference/modularizeLibrary_UsingES5LibAndES6ArrayLib(target=es5).types b/tests/baselines/reference/modularizeLibrary_UsingES5LibAndES6ArrayLib(target=es5).types new file mode 100644 index 0000000000000..1925491a33863 --- /dev/null +++ b/tests/baselines/reference/modularizeLibrary_UsingES5LibAndES6ArrayLib(target=es5).types @@ -0,0 +1,39 @@ +//// [tests/cases/compiler/modularizeLibrary_UsingES5LibAndES6ArrayLib.ts] //// + +=== modularizeLibrary_UsingES5LibAndES6ArrayLib.ts === +// No error +function f(x: number, y: number, z: number) { +>f : (x: number, y: number, z: number) => any[] +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^^^^^^ +>x : number +> : ^^^^^^ +>y : number +> : ^^^^^^ +>z : number +> : ^^^^^^ + + return Array.from(arguments); +>Array.from(arguments) : any[] +> : ^^^^^ +>Array.from : { (arrayLike: ArrayLike): T[]; (arrayLike: ArrayLike, mapfn: (v: T, k: number) => U, thisArg?: any): U[]; } +> : ^^^ ^^ ^^ ^^^ ^^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^ ^^^ ^^^ +>Array : ArrayConstructor +> : ^^^^^^^^^^^^^^^^ +>from : { (arrayLike: ArrayLike): T[]; (arrayLike: ArrayLike, mapfn: (v: T, k: number) => U, thisArg?: any): U[]; } +> : ^^^ ^^ ^^ ^^^ ^^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^ ^^^ ^^^ +>arguments : IArguments +> : ^^^^^^^^^^ +} + +f(1, 2, 3); +>f(1, 2, 3) : any[] +> : ^^^^^ +>f : (x: number, y: number, z: number) => any[] +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ +>3 : 3 +> : ^ + diff --git a/tests/baselines/reference/moduleAugmentationGlobal8.errors.txt b/tests/baselines/reference/moduleAugmentationGlobal8(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/moduleAugmentationGlobal8.errors.txt rename to tests/baselines/reference/moduleAugmentationGlobal8(target=es2015).errors.txt diff --git a/tests/baselines/reference/moduleAugmentationGlobal8.js b/tests/baselines/reference/moduleAugmentationGlobal8(target=es2015).js similarity index 100% rename from tests/baselines/reference/moduleAugmentationGlobal8.js rename to tests/baselines/reference/moduleAugmentationGlobal8(target=es2015).js diff --git a/tests/baselines/reference/moduleAugmentationGlobal8.symbols b/tests/baselines/reference/moduleAugmentationGlobal8(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/moduleAugmentationGlobal8.symbols rename to tests/baselines/reference/moduleAugmentationGlobal8(target=es2015).symbols diff --git a/tests/baselines/reference/moduleAugmentationGlobal8.types b/tests/baselines/reference/moduleAugmentationGlobal8(target=es2015).types similarity index 100% rename from tests/baselines/reference/moduleAugmentationGlobal8.types rename to tests/baselines/reference/moduleAugmentationGlobal8(target=es2015).types diff --git a/tests/baselines/reference/moduleAugmentationGlobal8(target=es5).errors.txt b/tests/baselines/reference/moduleAugmentationGlobal8(target=es5).errors.txt new file mode 100644 index 0000000000000..5baaa2e211ab1 --- /dev/null +++ b/tests/baselines/reference/moduleAugmentationGlobal8(target=es5).errors.txt @@ -0,0 +1,13 @@ +moduleAugmentationGlobal8.ts(2,13): error TS2669: Augmentations for the global scope can only be directly nested in external modules or ambient module declarations. + + +==== moduleAugmentationGlobal8.ts (1 errors) ==== + namespace A { + declare global { + ~~~~~~ +!!! error TS2669: Augmentations for the global scope can only be directly nested in external modules or ambient module declarations. + interface Array { x } + } + } + export {} + \ No newline at end of file diff --git a/tests/baselines/reference/moduleAugmentationGlobal8(target=es5).js b/tests/baselines/reference/moduleAugmentationGlobal8(target=es5).js new file mode 100644 index 0000000000000..6b4db1bd3fdbf --- /dev/null +++ b/tests/baselines/reference/moduleAugmentationGlobal8(target=es5).js @@ -0,0 +1,13 @@ +//// [tests/cases/compiler/moduleAugmentationGlobal8.ts] //// + +//// [moduleAugmentationGlobal8.ts] +namespace A { + declare global { + interface Array { x } + } +} +export {} + + +//// [moduleAugmentationGlobal8.js] +export {}; diff --git a/tests/baselines/reference/moduleAugmentationGlobal8(target=es5).symbols b/tests/baselines/reference/moduleAugmentationGlobal8(target=es5).symbols new file mode 100644 index 0000000000000..5d142e7237447 --- /dev/null +++ b/tests/baselines/reference/moduleAugmentationGlobal8(target=es5).symbols @@ -0,0 +1,17 @@ +//// [tests/cases/compiler/moduleAugmentationGlobal8.ts] //// + +=== moduleAugmentationGlobal8.ts === +namespace A { +>A : Symbol(A, Decl(moduleAugmentationGlobal8.ts, 0, 0)) + + declare global { +>global : Symbol(global, Decl(moduleAugmentationGlobal8.ts, 0, 13)) + + interface Array { x } +>Array : Symbol(Array, Decl(moduleAugmentationGlobal8.ts, 1, 20)) +>T : Symbol(T, Decl(moduleAugmentationGlobal8.ts, 2, 24)) +>x : Symbol(Array.x, Decl(moduleAugmentationGlobal8.ts, 2, 28)) + } +} +export {} + diff --git a/tests/baselines/reference/moduleAugmentationGlobal8(target=es5).types b/tests/baselines/reference/moduleAugmentationGlobal8(target=es5).types new file mode 100644 index 0000000000000..6a5307968b7c3 --- /dev/null +++ b/tests/baselines/reference/moduleAugmentationGlobal8(target=es5).types @@ -0,0 +1,15 @@ +//// [tests/cases/compiler/moduleAugmentationGlobal8.ts] //// + +=== moduleAugmentationGlobal8.ts === +namespace A { + declare global { +>global : typeof global +> : ^^^^^^^^^^^^^ + + interface Array { x } +>x : any +> : ^^^ + } +} +export {} + diff --git a/tests/baselines/reference/moduleAugmentationGlobal8_1.errors.txt b/tests/baselines/reference/moduleAugmentationGlobal8_1(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/moduleAugmentationGlobal8_1.errors.txt rename to tests/baselines/reference/moduleAugmentationGlobal8_1(target=es2015).errors.txt diff --git a/tests/baselines/reference/moduleAugmentationGlobal8_1.js b/tests/baselines/reference/moduleAugmentationGlobal8_1(target=es2015).js similarity index 100% rename from tests/baselines/reference/moduleAugmentationGlobal8_1.js rename to tests/baselines/reference/moduleAugmentationGlobal8_1(target=es2015).js diff --git a/tests/baselines/reference/moduleAugmentationGlobal8_1.symbols b/tests/baselines/reference/moduleAugmentationGlobal8_1(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/moduleAugmentationGlobal8_1.symbols rename to tests/baselines/reference/moduleAugmentationGlobal8_1(target=es2015).symbols diff --git a/tests/baselines/reference/moduleAugmentationGlobal8_1.types b/tests/baselines/reference/moduleAugmentationGlobal8_1(target=es2015).types similarity index 100% rename from tests/baselines/reference/moduleAugmentationGlobal8_1.types rename to tests/baselines/reference/moduleAugmentationGlobal8_1(target=es2015).types diff --git a/tests/baselines/reference/moduleAugmentationGlobal8_1(target=es5).errors.txt b/tests/baselines/reference/moduleAugmentationGlobal8_1(target=es5).errors.txt new file mode 100644 index 0000000000000..603a7a8196932 --- /dev/null +++ b/tests/baselines/reference/moduleAugmentationGlobal8_1(target=es5).errors.txt @@ -0,0 +1,16 @@ +moduleAugmentationGlobal8_1.ts(2,5): error TS2669: Augmentations for the global scope can only be directly nested in external modules or ambient module declarations. +moduleAugmentationGlobal8_1.ts(2,5): error TS2670: Augmentations for the global scope should have 'declare' modifier unless they appear in already ambient context. + + +==== moduleAugmentationGlobal8_1.ts (2 errors) ==== + namespace A { + global { + ~~~~~~ +!!! error TS2669: Augmentations for the global scope can only be directly nested in external modules or ambient module declarations. + ~~~~~~ +!!! error TS2670: Augmentations for the global scope should have 'declare' modifier unless they appear in already ambient context. + interface Array { x } + } + } + export {} + \ No newline at end of file diff --git a/tests/baselines/reference/moduleAugmentationGlobal8_1(target=es5).js b/tests/baselines/reference/moduleAugmentationGlobal8_1(target=es5).js new file mode 100644 index 0000000000000..66a7d16991c4d --- /dev/null +++ b/tests/baselines/reference/moduleAugmentationGlobal8_1(target=es5).js @@ -0,0 +1,13 @@ +//// [tests/cases/compiler/moduleAugmentationGlobal8_1.ts] //// + +//// [moduleAugmentationGlobal8_1.ts] +namespace A { + global { + interface Array { x } + } +} +export {} + + +//// [moduleAugmentationGlobal8_1.js] +export {}; diff --git a/tests/baselines/reference/moduleAugmentationGlobal8_1(target=es5).symbols b/tests/baselines/reference/moduleAugmentationGlobal8_1(target=es5).symbols new file mode 100644 index 0000000000000..3d0e3d3b78d59 --- /dev/null +++ b/tests/baselines/reference/moduleAugmentationGlobal8_1(target=es5).symbols @@ -0,0 +1,17 @@ +//// [tests/cases/compiler/moduleAugmentationGlobal8_1.ts] //// + +=== moduleAugmentationGlobal8_1.ts === +namespace A { +>A : Symbol(A, Decl(moduleAugmentationGlobal8_1.ts, 0, 0)) + + global { +>global : Symbol(global, Decl(moduleAugmentationGlobal8_1.ts, 0, 13)) + + interface Array { x } +>Array : Symbol(Array, Decl(moduleAugmentationGlobal8_1.ts, 1, 12)) +>T : Symbol(T, Decl(moduleAugmentationGlobal8_1.ts, 2, 24)) +>x : Symbol(Array.x, Decl(moduleAugmentationGlobal8_1.ts, 2, 28)) + } +} +export {} + diff --git a/tests/baselines/reference/moduleAugmentationGlobal8_1(target=es5).types b/tests/baselines/reference/moduleAugmentationGlobal8_1(target=es5).types new file mode 100644 index 0000000000000..ca84b97b2e2a0 --- /dev/null +++ b/tests/baselines/reference/moduleAugmentationGlobal8_1(target=es5).types @@ -0,0 +1,15 @@ +//// [tests/cases/compiler/moduleAugmentationGlobal8_1.ts] //// + +=== moduleAugmentationGlobal8_1.ts === +namespace A { + global { +>global : typeof global +> : ^^^^^^^^^^^^^ + + interface Array { x } +>x : any +> : ^^^ + } +} +export {} + diff --git a/tests/baselines/reference/moduleAugmentationsBundledOutput1.errors.txt b/tests/baselines/reference/moduleAugmentationsBundledOutput1(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/moduleAugmentationsBundledOutput1.errors.txt rename to tests/baselines/reference/moduleAugmentationsBundledOutput1(target=es2015).errors.txt diff --git a/tests/baselines/reference/moduleAugmentationsBundledOutput1(target=es2015).js b/tests/baselines/reference/moduleAugmentationsBundledOutput1(target=es2015).js new file mode 100644 index 0000000000000..66ebf4b8a147f --- /dev/null +++ b/tests/baselines/reference/moduleAugmentationsBundledOutput1(target=es2015).js @@ -0,0 +1,141 @@ +//// [tests/cases/compiler/moduleAugmentationsBundledOutput1.ts] //// + +//// [m1.ts] +export class Cls { +} + +//// [m2.ts] +import {Cls} from "./m1"; +(Cls.prototype).foo = function() { return 1; }; +(Cls.prototype).bar = function() { return "1"; }; + +declare module "./m1" { + interface Cls { + foo(): number; + } +} + +declare module "./m1" { + interface Cls { + bar(): string; + } +} + +//// [m3.ts] +export class C1 { x: number } +export class C2 { x: string } + +//// [m4.ts] +import {Cls} from "./m1"; +import {C1, C2} from "./m3"; +(Cls.prototype).baz1 = function() { return undefined }; +(Cls.prototype).baz2 = function() { return undefined }; + +declare module "./m1" { + interface Cls { + baz1(): C1; + } +} + +declare module "./m1" { + interface Cls { + baz2(): C2; + } +} + +//// [test.ts] +import { Cls } from "./m1"; +import "m2"; +import "m4"; +let c: Cls; +c.foo().toExponential(); +c.bar().toLowerCase(); +c.baz1().x.toExponential(); +c.baz2().x.toLowerCase(); + + +//// [out.js] +define("m1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.Cls = void 0; + class Cls { + } + exports.Cls = Cls; +}); +define("m2", ["require", "exports", "m1"], function (require, exports, m1_1) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + m1_1.Cls.prototype.foo = function () { return 1; }; + m1_1.Cls.prototype.bar = function () { return "1"; }; +}); +define("m3", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.C2 = exports.C1 = void 0; + class C1 { + } + exports.C1 = C1; + class C2 { + } + exports.C2 = C2; +}); +define("m4", ["require", "exports", "m1"], function (require, exports, m1_2) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + m1_2.Cls.prototype.baz1 = function () { return undefined; }; + m1_2.Cls.prototype.baz2 = function () { return undefined; }; +}); +define("test", ["require", "exports", "m2", "m4"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + let c; + c.foo().toExponential(); + c.bar().toLowerCase(); + c.baz1().x.toExponential(); + c.baz2().x.toLowerCase(); +}); + + +//// [out.d.ts] +declare module "m1" { + export class Cls { + } +} +declare module "m2" { + module "m1" { + interface Cls { + foo(): number; + } + } + module "m1" { + interface Cls { + bar(): string; + } + } +} +declare module "m3" { + export class C1 { + x: number; + } + export class C2 { + x: string; + } +} +declare module "m4" { + import { C1, C2 } from "m3"; + module "m1" { + interface Cls { + baz1(): C1; + } + } + module "m1" { + interface Cls { + baz2(): C2; + } + } +} +declare module "test" { + import "m2"; + import "m4"; +} diff --git a/tests/baselines/reference/moduleAugmentationsBundledOutput1.symbols b/tests/baselines/reference/moduleAugmentationsBundledOutput1(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/moduleAugmentationsBundledOutput1.symbols rename to tests/baselines/reference/moduleAugmentationsBundledOutput1(target=es2015).symbols diff --git a/tests/baselines/reference/moduleAugmentationsBundledOutput1.types b/tests/baselines/reference/moduleAugmentationsBundledOutput1(target=es2015).types similarity index 100% rename from tests/baselines/reference/moduleAugmentationsBundledOutput1.types rename to tests/baselines/reference/moduleAugmentationsBundledOutput1(target=es2015).types diff --git a/tests/baselines/reference/moduleAugmentationsBundledOutput1(target=es5).errors.txt b/tests/baselines/reference/moduleAugmentationsBundledOutput1(target=es5).errors.txt new file mode 100644 index 0000000000000..5e87069549d3c --- /dev/null +++ b/tests/baselines/reference/moduleAugmentationsBundledOutput1(target=es5).errors.txt @@ -0,0 +1,59 @@ +error TS5101: Option 'outFile' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5101: Option 'outFile' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== m1.ts (0 errors) ==== + export class Cls { + } + +==== m2.ts (0 errors) ==== + import {Cls} from "./m1"; + (Cls.prototype).foo = function() { return 1; }; + (Cls.prototype).bar = function() { return "1"; }; + + declare module "./m1" { + interface Cls { + foo(): number; + } + } + + declare module "./m1" { + interface Cls { + bar(): string; + } + } + +==== m3.ts (0 errors) ==== + export class C1 { x: number } + export class C2 { x: string } + +==== m4.ts (0 errors) ==== + import {Cls} from "./m1"; + import {C1, C2} from "./m3"; + (Cls.prototype).baz1 = function() { return undefined }; + (Cls.prototype).baz2 = function() { return undefined }; + + declare module "./m1" { + interface Cls { + baz1(): C1; + } + } + + declare module "./m1" { + interface Cls { + baz2(): C2; + } + } + +==== test.ts (0 errors) ==== + import { Cls } from "./m1"; + import "m2"; + import "m4"; + let c: Cls; + c.foo().toExponential(); + c.bar().toLowerCase(); + c.baz1().x.toExponential(); + c.baz2().x.toLowerCase(); + \ No newline at end of file diff --git a/tests/baselines/reference/moduleAugmentationsBundledOutput1.js b/tests/baselines/reference/moduleAugmentationsBundledOutput1(target=es5).js similarity index 100% rename from tests/baselines/reference/moduleAugmentationsBundledOutput1.js rename to tests/baselines/reference/moduleAugmentationsBundledOutput1(target=es5).js diff --git a/tests/baselines/reference/moduleAugmentationsBundledOutput1(target=es5).symbols b/tests/baselines/reference/moduleAugmentationsBundledOutput1(target=es5).symbols new file mode 100644 index 0000000000000..4f518c9150db8 --- /dev/null +++ b/tests/baselines/reference/moduleAugmentationsBundledOutput1(target=es5).symbols @@ -0,0 +1,138 @@ +//// [tests/cases/compiler/moduleAugmentationsBundledOutput1.ts] //// + +=== m1.ts === +export class Cls { +>Cls : Symbol(Cls, Decl(m1.ts, 0, 0), Decl(m2.ts, 4, 23), Decl(m2.ts, 10, 23), Decl(m4.ts, 5, 23), Decl(m4.ts, 11, 23)) +} + +=== m2.ts === +import {Cls} from "./m1"; +>Cls : Symbol(Cls, Decl(m2.ts, 0, 8)) + +(Cls.prototype).foo = function() { return 1; }; +>Cls.prototype : Symbol(Cls.prototype) +>Cls : Symbol(Cls, Decl(m2.ts, 0, 8)) +>prototype : Symbol(Cls.prototype) + +(Cls.prototype).bar = function() { return "1"; }; +>Cls.prototype : Symbol(Cls.prototype) +>Cls : Symbol(Cls, Decl(m2.ts, 0, 8)) +>prototype : Symbol(Cls.prototype) + +declare module "./m1" { +>"./m1" : Symbol("m1", Decl(m1.ts, 0, 0), Decl(m2.ts, 2, 54), Decl(m2.ts, 8, 1), Decl(m4.ts, 3, 60), Decl(m4.ts, 9, 1)) + + interface Cls { +>Cls : Symbol(Cls, Decl(m1.ts, 0, 0), Decl(m2.ts, 4, 23), Decl(m2.ts, 10, 23), Decl(m4.ts, 5, 23), Decl(m4.ts, 11, 23)) + + foo(): number; +>foo : Symbol(Cls.foo, Decl(m2.ts, 5, 19)) + } +} + +declare module "./m1" { +>"./m1" : Symbol("m1", Decl(m1.ts, 0, 0), Decl(m2.ts, 2, 54), Decl(m2.ts, 8, 1), Decl(m4.ts, 3, 60), Decl(m4.ts, 9, 1)) + + interface Cls { +>Cls : Symbol(Cls, Decl(m1.ts, 0, 0), Decl(m2.ts, 4, 23), Decl(m2.ts, 10, 23), Decl(m4.ts, 5, 23), Decl(m4.ts, 11, 23)) + + bar(): string; +>bar : Symbol(Cls.bar, Decl(m2.ts, 11, 19)) + } +} + +=== m3.ts === +export class C1 { x: number } +>C1 : Symbol(C1, Decl(m3.ts, 0, 0)) +>x : Symbol(C1.x, Decl(m3.ts, 0, 17)) + +export class C2 { x: string } +>C2 : Symbol(C2, Decl(m3.ts, 0, 29)) +>x : Symbol(C2.x, Decl(m3.ts, 1, 17)) + +=== m4.ts === +import {Cls} from "./m1"; +>Cls : Symbol(Cls, Decl(m4.ts, 0, 8)) + +import {C1, C2} from "./m3"; +>C1 : Symbol(C1, Decl(m4.ts, 1, 8)) +>C2 : Symbol(C2, Decl(m4.ts, 1, 11)) + +(Cls.prototype).baz1 = function() { return undefined }; +>Cls.prototype : Symbol(Cls.prototype) +>Cls : Symbol(Cls, Decl(m4.ts, 0, 8)) +>prototype : Symbol(Cls.prototype) +>undefined : Symbol(undefined) + +(Cls.prototype).baz2 = function() { return undefined }; +>Cls.prototype : Symbol(Cls.prototype) +>Cls : Symbol(Cls, Decl(m4.ts, 0, 8)) +>prototype : Symbol(Cls.prototype) +>undefined : Symbol(undefined) + +declare module "./m1" { +>"./m1" : Symbol("m1", Decl(m1.ts, 0, 0), Decl(m2.ts, 2, 54), Decl(m2.ts, 8, 1), Decl(m4.ts, 3, 60), Decl(m4.ts, 9, 1)) + + interface Cls { +>Cls : Symbol(Cls, Decl(m1.ts, 0, 0), Decl(m2.ts, 4, 23), Decl(m2.ts, 10, 23), Decl(m4.ts, 5, 23), Decl(m4.ts, 11, 23)) + + baz1(): C1; +>baz1 : Symbol(Cls.baz1, Decl(m4.ts, 6, 19)) +>C1 : Symbol(C1, Decl(m4.ts, 1, 8)) + } +} + +declare module "./m1" { +>"./m1" : Symbol("m1", Decl(m1.ts, 0, 0), Decl(m2.ts, 2, 54), Decl(m2.ts, 8, 1), Decl(m4.ts, 3, 60), Decl(m4.ts, 9, 1)) + + interface Cls { +>Cls : Symbol(Cls, Decl(m1.ts, 0, 0), Decl(m2.ts, 4, 23), Decl(m2.ts, 10, 23), Decl(m4.ts, 5, 23), Decl(m4.ts, 11, 23)) + + baz2(): C2; +>baz2 : Symbol(Cls.baz2, Decl(m4.ts, 12, 19)) +>C2 : Symbol(C2, Decl(m4.ts, 1, 11)) + } +} + +=== test.ts === +import { Cls } from "./m1"; +>Cls : Symbol(Cls, Decl(test.ts, 0, 8)) + +import "m2"; +import "m4"; +let c: Cls; +>c : Symbol(c, Decl(test.ts, 3, 3)) +>Cls : Symbol(Cls, Decl(test.ts, 0, 8)) + +c.foo().toExponential(); +>c.foo().toExponential : Symbol(Number.toExponential, Decl(lib.es5.d.ts, --, --)) +>c.foo : Symbol(Cls.foo, Decl(m2.ts, 5, 19)) +>c : Symbol(c, Decl(test.ts, 3, 3)) +>foo : Symbol(Cls.foo, Decl(m2.ts, 5, 19)) +>toExponential : Symbol(Number.toExponential, Decl(lib.es5.d.ts, --, --)) + +c.bar().toLowerCase(); +>c.bar().toLowerCase : Symbol(String.toLowerCase, Decl(lib.es5.d.ts, --, --)) +>c.bar : Symbol(Cls.bar, Decl(m2.ts, 11, 19)) +>c : Symbol(c, Decl(test.ts, 3, 3)) +>bar : Symbol(Cls.bar, Decl(m2.ts, 11, 19)) +>toLowerCase : Symbol(String.toLowerCase, Decl(lib.es5.d.ts, --, --)) + +c.baz1().x.toExponential(); +>c.baz1().x.toExponential : Symbol(Number.toExponential, Decl(lib.es5.d.ts, --, --)) +>c.baz1().x : Symbol(C1.x, Decl(m3.ts, 0, 17)) +>c.baz1 : Symbol(Cls.baz1, Decl(m4.ts, 6, 19)) +>c : Symbol(c, Decl(test.ts, 3, 3)) +>baz1 : Symbol(Cls.baz1, Decl(m4.ts, 6, 19)) +>x : Symbol(C1.x, Decl(m3.ts, 0, 17)) +>toExponential : Symbol(Number.toExponential, Decl(lib.es5.d.ts, --, --)) + +c.baz2().x.toLowerCase(); +>c.baz2().x.toLowerCase : Symbol(String.toLowerCase, Decl(lib.es5.d.ts, --, --)) +>c.baz2().x : Symbol(C2.x, Decl(m3.ts, 1, 17)) +>c.baz2 : Symbol(Cls.baz2, Decl(m4.ts, 12, 19)) +>c : Symbol(c, Decl(test.ts, 3, 3)) +>baz2 : Symbol(Cls.baz2, Decl(m4.ts, 12, 19)) +>x : Symbol(C2.x, Decl(m3.ts, 1, 17)) +>toLowerCase : Symbol(String.toLowerCase, Decl(lib.es5.d.ts, --, --)) + diff --git a/tests/baselines/reference/moduleAugmentationsBundledOutput1(target=es5).types b/tests/baselines/reference/moduleAugmentationsBundledOutput1(target=es5).types new file mode 100644 index 0000000000000..665aff9a89ab8 --- /dev/null +++ b/tests/baselines/reference/moduleAugmentationsBundledOutput1(target=es5).types @@ -0,0 +1,252 @@ +//// [tests/cases/compiler/moduleAugmentationsBundledOutput1.ts] //// + +=== m1.ts === +export class Cls { +>Cls : Cls +> : ^^^ +} + +=== m2.ts === +import {Cls} from "./m1"; +>Cls : typeof Cls +> : ^^^^^^^^^^ + +(Cls.prototype).foo = function() { return 1; }; +>(Cls.prototype).foo = function() { return 1; } : () => number +> : ^^^^^^^^^^^^ +>(Cls.prototype).foo : any +> : ^^^ +>(Cls.prototype) : any +> : ^^^ +>Cls.prototype : any +> : ^^^ +>Cls.prototype : Cls +> : ^^^ +>Cls : typeof Cls +> : ^^^^^^^^^^ +>prototype : Cls +> : ^^^ +>foo : any +> : ^^^ +>function() { return 1; } : () => number +> : ^^^^^^^^^^^^ +>1 : 1 +> : ^ + +(Cls.prototype).bar = function() { return "1"; }; +>(Cls.prototype).bar = function() { return "1"; } : () => string +> : ^^^^^^^^^^^^ +>(Cls.prototype).bar : any +> : ^^^ +>(Cls.prototype) : any +> : ^^^ +>Cls.prototype : any +> : ^^^ +>Cls.prototype : Cls +> : ^^^ +>Cls : typeof Cls +> : ^^^^^^^^^^ +>prototype : Cls +> : ^^^ +>bar : any +> : ^^^ +>function() { return "1"; } : () => string +> : ^^^^^^^^^^^^ +>"1" : "1" +> : ^^^ + +declare module "./m1" { +>"./m1" : typeof import("m1") +> : ^^^^^^^^^^^^^^^^^^^ + + interface Cls { + foo(): number; +>foo : () => number +> : ^^^^^^ + } +} + +declare module "./m1" { +>"./m1" : typeof import("m1") +> : ^^^^^^^^^^^^^^^^^^^ + + interface Cls { + bar(): string; +>bar : () => string +> : ^^^^^^ + } +} + +=== m3.ts === +export class C1 { x: number } +>C1 : C1 +> : ^^ +>x : number +> : ^^^^^^ + +export class C2 { x: string } +>C2 : C2 +> : ^^ +>x : string +> : ^^^^^^ + +=== m4.ts === +import {Cls} from "./m1"; +>Cls : typeof Cls +> : ^^^^^^^^^^ + +import {C1, C2} from "./m3"; +>C1 : typeof C1 +> : ^^^^^^^^^ +>C2 : typeof C2 +> : ^^^^^^^^^ + +(Cls.prototype).baz1 = function() { return undefined }; +>(Cls.prototype).baz1 = function() { return undefined } : () => any +> : ^^^^^^^^^ +>(Cls.prototype).baz1 : any +> : ^^^ +>(Cls.prototype) : any +> : ^^^ +>Cls.prototype : any +> : ^^^ +>Cls.prototype : Cls +> : ^^^ +>Cls : typeof Cls +> : ^^^^^^^^^^ +>prototype : Cls +> : ^^^ +>baz1 : any +> : ^^^ +>function() { return undefined } : () => any +> : ^^^^^^^^^ +>undefined : undefined +> : ^^^^^^^^^ + +(Cls.prototype).baz2 = function() { return undefined }; +>(Cls.prototype).baz2 = function() { return undefined } : () => any +> : ^^^^^^^^^ +>(Cls.prototype).baz2 : any +> : ^^^ +>(Cls.prototype) : any +> : ^^^ +>Cls.prototype : any +> : ^^^ +>Cls.prototype : Cls +> : ^^^ +>Cls : typeof Cls +> : ^^^^^^^^^^ +>prototype : Cls +> : ^^^ +>baz2 : any +> : ^^^ +>function() { return undefined } : () => any +> : ^^^^^^^^^ +>undefined : undefined +> : ^^^^^^^^^ + +declare module "./m1" { +>"./m1" : typeof import("m1") +> : ^^^^^^^^^^^^^^^^^^^ + + interface Cls { + baz1(): C1; +>baz1 : () => C1 +> : ^^^^^^ + } +} + +declare module "./m1" { +>"./m1" : typeof import("m1") +> : ^^^^^^^^^^^^^^^^^^^ + + interface Cls { + baz2(): C2; +>baz2 : () => C2 +> : ^^^^^^ + } +} + +=== test.ts === +import { Cls } from "./m1"; +>Cls : typeof Cls +> : ^^^^^^^^^^ + +import "m2"; +import "m4"; +let c: Cls; +>c : Cls +> : ^^^ + +c.foo().toExponential(); +>c.foo().toExponential() : string +> : ^^^^^^ +>c.foo().toExponential : (fractionDigits?: number) => string +> : ^ ^^^ ^^^^^ +>c.foo() : number +> : ^^^^^^ +>c.foo : () => number +> : ^^^^^^ +>c : Cls +> : ^^^ +>foo : () => number +> : ^^^^^^ +>toExponential : (fractionDigits?: number) => string +> : ^ ^^^ ^^^^^ + +c.bar().toLowerCase(); +>c.bar().toLowerCase() : string +> : ^^^^^^ +>c.bar().toLowerCase : () => string +> : ^^^^^^ +>c.bar() : string +> : ^^^^^^ +>c.bar : () => string +> : ^^^^^^ +>c : Cls +> : ^^^ +>bar : () => string +> : ^^^^^^ +>toLowerCase : () => string +> : ^^^^^^ + +c.baz1().x.toExponential(); +>c.baz1().x.toExponential() : string +> : ^^^^^^ +>c.baz1().x.toExponential : (fractionDigits?: number) => string +> : ^ ^^^ ^^^^^ +>c.baz1().x : number +> : ^^^^^^ +>c.baz1() : import("m3").C1 +> : ^^^^^^^^^^^^^^^ +>c.baz1 : () => import("m3").C1 +> : ^^^^^^ ^^^^ ^^ +>c : Cls +> : ^^^ +>baz1 : () => import("m3").C1 +> : ^^^^^^ ^^^^ ^^ +>x : number +> : ^^^^^^ +>toExponential : (fractionDigits?: number) => string +> : ^ ^^^ ^^^^^ + +c.baz2().x.toLowerCase(); +>c.baz2().x.toLowerCase() : string +> : ^^^^^^ +>c.baz2().x.toLowerCase : () => string +> : ^^^^^^ +>c.baz2().x : string +> : ^^^^^^ +>c.baz2() : import("m3").C2 +> : ^^^^^^^^^^^^^^^ +>c.baz2 : () => import("m3").C2 +> : ^^^^^^ ^^^^ ^^ +>c : Cls +> : ^^^ +>baz2 : () => import("m3").C2 +> : ^^^^^^ ^^^^ ^^ +>x : string +> : ^^^^^^ +>toLowerCase : () => string +> : ^^^^^^ + diff --git a/tests/baselines/reference/moduledecl(target=es2015).js b/tests/baselines/reference/moduledecl(target=es2015).js new file mode 100644 index 0000000000000..7b75a84216b04 --- /dev/null +++ b/tests/baselines/reference/moduledecl(target=es2015).js @@ -0,0 +1,488 @@ +//// [tests/cases/compiler/moduledecl.ts] //// + +//// [moduledecl.ts] +namespace a { +} + +namespace b.a { +} + +namespace c.a.b { + import ma = a; +} + +namespace mImport { + import d = a; + import e = b.a; + import d1 = a; + import e1 = b.a; +} + +namespace m0 { + function f1() { + } + + function f2(s: string); + function f2(n: number); + function f2(ns: any) { + } + + class c1 { + public a : ()=>string; + private b: ()=>number; + private static s1; + public static s2; + } + + interface i1 { + () : Object; + [n: number]: c1; + } + + import m2 = a; + import m3 = b; + import m4 = b.a; + import m5 = c; + import m6 = c.a; + import m7 = c.a.b; +} + +namespace m1 { + export function f1() { + } + + export function f2(s: string); + export function f2(n: number); + export function f2(ns: any) { + } + + export class c1 { + public a: () =>string; + private b: () =>number; + private static s1; + public static s2; + + public d() { + return "Hello"; + } + + public e: { x: number; y: string; }; + constructor (public n, public n2: number, private n3, private n4: string) { + } + } + + export interface i1 { + () : Object; + [n: number]: c1; + } + + import m2 = a; + import m3 = b; + import m4 = b.a; + import m5 = c; + import m6 = c.a; + import m7 = c.a.b; +} + +namespace m { + export namespace m2 { + var a = 10; + export var b: number; + } + + export namespace m3 { + export var c: number; + } +} + +namespace m { + + export namespace m25 { + export namespace m5 { + export var c: number; + } + } +} + +namespace m13 { + export namespace m4 { + export namespace m2 { + export namespace m3 { + export var c: number; + } + } + + export function f() { + return 20; + } + } +} + +declare namespace m4 { + export var b; +} + +declare namespace m5 { + export var c; +} + +declare namespace m43 { + export var b; +} + +declare namespace m55 { + export var c; +} + +declare module "m3" { + export var b: number; +} + +namespace exportTests { + export class C1_public { + private f2() { + return 30; + } + + public f3() { + return "string"; + } + } + class C2_private { + private f2() { + return 30; + } + + public f3() { + return "string"; + } + } + + export class C3_public { + private getC2_private() { + return new C2_private(); + } + private setC2_private(arg: C2_private) { + } + private get c2() { + return new C2_private(); + } + public getC1_public() { + return new C1_public(); + } + public setC1_public(arg: C1_public) { + } + public get c1() { + return new C1_public(); + } + } +} + +declare namespace mAmbient { + class C { + public myProp: number; + } + + function foo() : C; + var aVar: C; + interface B { + x: number; + y: C; + } + enum e { + x, + y, + z + } + + namespace m3 { + class C { + public myProp: number; + } + + function foo(): C; + var aVar: C; + interface B { + x: number; + y: C; + } + enum e { + x, + y, + z + } + } +} + +function foo() { + return mAmbient.foo(); +} + +var cVar = new mAmbient.C(); +var aVar = mAmbient.aVar; +var bB: mAmbient.B; +var eVar: mAmbient.e; + +function m3foo() { + return mAmbient.m3.foo(); +} + +var m3cVar = new mAmbient.m3.C(); +var m3aVar = mAmbient.m3.aVar; +var m3bB: mAmbient.m3.B; +var m3eVar: mAmbient.m3.e; + + + +//// [moduledecl.js] +var m0; +(function (m0) { + function f1() { + } + function f2(ns) { + } + class c1 { + } +})(m0 || (m0 = {})); +var m1; +(function (m1) { + function f1() { + } + m1.f1 = f1; + function f2(ns) { + } + m1.f2 = f2; + class c1 { + d() { + return "Hello"; + } + constructor(n, n2, n3, n4) { + this.n = n; + this.n2 = n2; + this.n3 = n3; + this.n4 = n4; + } + } + m1.c1 = c1; +})(m1 || (m1 = {})); +var m; +(function (m) { + let m2; + (function (m2) { + var a = 10; + })(m2 = m.m2 || (m.m2 = {})); + let m3; + (function (m3) { + })(m3 = m.m3 || (m.m3 = {})); +})(m || (m = {})); +(function (m) { + let m25; + (function (m25) { + let m5; + (function (m5) { + })(m5 = m25.m5 || (m25.m5 = {})); + })(m25 = m.m25 || (m.m25 = {})); +})(m || (m = {})); +var m13; +(function (m13) { + let m4; + (function (m4) { + let m2; + (function (m2) { + let m3; + (function (m3) { + })(m3 = m2.m3 || (m2.m3 = {})); + })(m2 = m4.m2 || (m4.m2 = {})); + function f() { + return 20; + } + m4.f = f; + })(m4 = m13.m4 || (m13.m4 = {})); +})(m13 || (m13 = {})); +var exportTests; +(function (exportTests) { + class C1_public { + f2() { + return 30; + } + f3() { + return "string"; + } + } + exportTests.C1_public = C1_public; + class C2_private { + f2() { + return 30; + } + f3() { + return "string"; + } + } + class C3_public { + getC2_private() { + return new C2_private(); + } + setC2_private(arg) { + } + get c2() { + return new C2_private(); + } + getC1_public() { + return new C1_public(); + } + setC1_public(arg) { + } + get c1() { + return new C1_public(); + } + } + exportTests.C3_public = C3_public; +})(exportTests || (exportTests = {})); +function foo() { + return mAmbient.foo(); +} +var cVar = new mAmbient.C(); +var aVar = mAmbient.aVar; +var bB; +var eVar; +function m3foo() { + return mAmbient.m3.foo(); +} +var m3cVar = new mAmbient.m3.C(); +var m3aVar = mAmbient.m3.aVar; +var m3bB; +var m3eVar; + + +//// [moduledecl.d.ts] +declare namespace a { +} +declare namespace b.a { +} +declare namespace c.a.b { +} +declare namespace mImport { +} +declare namespace m0 { +} +declare namespace m1 { + function f1(): void; + function f2(s: string): any; + function f2(n: number): any; + class c1 { + n: any; + n2: number; + private n3; + private n4; + a: () => string; + private b; + private static s1; + static s2: any; + d(): string; + e: { + x: number; + y: string; + }; + constructor(n: any, n2: number, n3: any, n4: string); + } + interface i1 { + (): Object; + [n: number]: c1; + } +} +declare namespace m { + namespace m2 { + var b: number; + } + namespace m3 { + var c: number; + } +} +declare namespace m { + namespace m25 { + namespace m5 { + var c: number; + } + } +} +declare namespace m13 { + namespace m4 { + namespace m2 { + namespace m3 { + var c: number; + } + } + function f(): number; + } +} +declare namespace m4 { + var b: any; +} +declare namespace m5 { + var c: any; +} +declare namespace m43 { + var b: any; +} +declare namespace m55 { + var c: any; +} +declare module "m3" { + var b: number; +} +declare namespace exportTests { + class C1_public { + private f2; + f3(): string; + } + class C3_public { + private getC2_private; + private setC2_private; + private get c2(); + getC1_public(): C1_public; + setC1_public(arg: C1_public): void; + get c1(): C1_public; + } +} +declare namespace mAmbient { + class C { + myProp: number; + } + function foo(): C; + var aVar: C; + interface B { + x: number; + y: C; + } + enum e { + x, + y, + z + } + namespace m3 { + class C { + myProp: number; + } + function foo(): C; + var aVar: C; + interface B { + x: number; + y: C; + } + enum e { + x, + y, + z + } + } +} +declare function foo(): mAmbient.C; +declare var cVar: mAmbient.C; +declare var aVar: mAmbient.C; +declare var bB: mAmbient.B; +declare var eVar: mAmbient.e; +declare function m3foo(): mAmbient.m3.C; +declare var m3cVar: mAmbient.m3.C; +declare var m3aVar: mAmbient.m3.C; +declare var m3bB: mAmbient.m3.B; +declare var m3eVar: mAmbient.m3.e; diff --git a/tests/baselines/reference/moduledecl.symbols b/tests/baselines/reference/moduledecl(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/moduledecl.symbols rename to tests/baselines/reference/moduledecl(target=es2015).symbols diff --git a/tests/baselines/reference/moduledecl.types b/tests/baselines/reference/moduledecl(target=es2015).types similarity index 100% rename from tests/baselines/reference/moduledecl.types rename to tests/baselines/reference/moduledecl(target=es2015).types diff --git a/tests/baselines/reference/moduledecl.js b/tests/baselines/reference/moduledecl(target=es5).js similarity index 100% rename from tests/baselines/reference/moduledecl.js rename to tests/baselines/reference/moduledecl(target=es5).js diff --git a/tests/baselines/reference/moduledecl(target=es5).symbols b/tests/baselines/reference/moduledecl(target=es5).symbols new file mode 100644 index 0000000000000..64bce6bf73795 --- /dev/null +++ b/tests/baselines/reference/moduledecl(target=es5).symbols @@ -0,0 +1,539 @@ +//// [tests/cases/compiler/moduledecl.ts] //// + +=== moduledecl.ts === +namespace a { +>a : Symbol(a, Decl(moduledecl.ts, 0, 0)) +} + +namespace b.a { +>b : Symbol(b, Decl(moduledecl.ts, 1, 1)) +>a : Symbol(a, Decl(moduledecl.ts, 3, 12)) +} + +namespace c.a.b { +>c : Symbol(c, Decl(moduledecl.ts, 4, 1)) +>a : Symbol(a, Decl(moduledecl.ts, 6, 12)) +>b : Symbol(ma.b, Decl(moduledecl.ts, 6, 14)) + + import ma = a; +>ma : Symbol(ma, Decl(moduledecl.ts, 6, 17)) +>a : Symbol(ma, Decl(moduledecl.ts, 6, 12)) +} + +namespace mImport { +>mImport : Symbol(mImport, Decl(moduledecl.ts, 8, 1)) + + import d = a; +>d : Symbol(d, Decl(moduledecl.ts, 10, 19)) +>a : Symbol(d, Decl(moduledecl.ts, 0, 0)) + + import e = b.a; +>e : Symbol(e, Decl(moduledecl.ts, 11, 17)) +>b : Symbol(b, Decl(moduledecl.ts, 1, 1)) +>a : Symbol(e, Decl(moduledecl.ts, 3, 12)) + + import d1 = a; +>d1 : Symbol(d1, Decl(moduledecl.ts, 12, 19)) +>a : Symbol(d, Decl(moduledecl.ts, 0, 0)) + + import e1 = b.a; +>e1 : Symbol(e1, Decl(moduledecl.ts, 13, 18)) +>b : Symbol(b, Decl(moduledecl.ts, 1, 1)) +>a : Symbol(e, Decl(moduledecl.ts, 3, 12)) +} + +namespace m0 { +>m0 : Symbol(m0, Decl(moduledecl.ts, 15, 1)) + + function f1() { +>f1 : Symbol(f1, Decl(moduledecl.ts, 17, 14)) + } + + function f2(s: string); +>f2 : Symbol(f2, Decl(moduledecl.ts, 19, 5), Decl(moduledecl.ts, 21, 27), Decl(moduledecl.ts, 22, 27)) +>s : Symbol(s, Decl(moduledecl.ts, 21, 16)) + + function f2(n: number); +>f2 : Symbol(f2, Decl(moduledecl.ts, 19, 5), Decl(moduledecl.ts, 21, 27), Decl(moduledecl.ts, 22, 27)) +>n : Symbol(n, Decl(moduledecl.ts, 22, 16)) + + function f2(ns: any) { +>f2 : Symbol(f2, Decl(moduledecl.ts, 19, 5), Decl(moduledecl.ts, 21, 27), Decl(moduledecl.ts, 22, 27)) +>ns : Symbol(ns, Decl(moduledecl.ts, 23, 16)) + } + + class c1 { +>c1 : Symbol(c1, Decl(moduledecl.ts, 24, 5)) + + public a : ()=>string; +>a : Symbol(c1.a, Decl(moduledecl.ts, 26, 14)) + + private b: ()=>number; +>b : Symbol(c1.b, Decl(moduledecl.ts, 27, 30)) + + private static s1; +>s1 : Symbol(c1.s1, Decl(moduledecl.ts, 28, 30)) + + public static s2; +>s2 : Symbol(c1.s2, Decl(moduledecl.ts, 29, 26)) + } + + interface i1 { +>i1 : Symbol(i1, Decl(moduledecl.ts, 31, 5)) + + () : Object; +>Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) + + [n: number]: c1; +>n : Symbol(n, Decl(moduledecl.ts, 35, 9)) +>c1 : Symbol(c1, Decl(moduledecl.ts, 24, 5)) + } + + import m2 = a; +>m2 : Symbol(m2, Decl(moduledecl.ts, 36, 5)) +>a : Symbol(m2, Decl(moduledecl.ts, 0, 0)) + + import m3 = b; +>m3 : Symbol(m3, Decl(moduledecl.ts, 38, 18)) +>b : Symbol(m3, Decl(moduledecl.ts, 1, 1)) + + import m4 = b.a; +>m4 : Symbol(m4, Decl(moduledecl.ts, 39, 18)) +>b : Symbol(m3, Decl(moduledecl.ts, 1, 1)) +>a : Symbol(m3.a, Decl(moduledecl.ts, 3, 12)) + + import m5 = c; +>m5 : Symbol(m5, Decl(moduledecl.ts, 40, 20)) +>c : Symbol(m5, Decl(moduledecl.ts, 4, 1)) + + import m6 = c.a; +>m6 : Symbol(m6, Decl(moduledecl.ts, 41, 18)) +>c : Symbol(m5, Decl(moduledecl.ts, 4, 1)) +>a : Symbol(m5.a, Decl(moduledecl.ts, 6, 12)) + + import m7 = c.a.b; +>m7 : Symbol(m7, Decl(moduledecl.ts, 42, 20)) +>c : Symbol(m5, Decl(moduledecl.ts, 4, 1)) +>a : Symbol(m5.a, Decl(moduledecl.ts, 6, 12)) +>b : Symbol(m6.b, Decl(moduledecl.ts, 6, 14)) +} + +namespace m1 { +>m1 : Symbol(m1, Decl(moduledecl.ts, 44, 1)) + + export function f1() { +>f1 : Symbol(f1, Decl(moduledecl.ts, 46, 14)) + } + + export function f2(s: string); +>f2 : Symbol(f2, Decl(moduledecl.ts, 48, 5), Decl(moduledecl.ts, 50, 34), Decl(moduledecl.ts, 51, 34)) +>s : Symbol(s, Decl(moduledecl.ts, 50, 23)) + + export function f2(n: number); +>f2 : Symbol(f2, Decl(moduledecl.ts, 48, 5), Decl(moduledecl.ts, 50, 34), Decl(moduledecl.ts, 51, 34)) +>n : Symbol(n, Decl(moduledecl.ts, 51, 23)) + + export function f2(ns: any) { +>f2 : Symbol(f2, Decl(moduledecl.ts, 48, 5), Decl(moduledecl.ts, 50, 34), Decl(moduledecl.ts, 51, 34)) +>ns : Symbol(ns, Decl(moduledecl.ts, 52, 23)) + } + + export class c1 { +>c1 : Symbol(c1, Decl(moduledecl.ts, 53, 5)) + + public a: () =>string; +>a : Symbol(c1.a, Decl(moduledecl.ts, 55, 21)) + + private b: () =>number; +>b : Symbol(c1.b, Decl(moduledecl.ts, 56, 30)) + + private static s1; +>s1 : Symbol(c1.s1, Decl(moduledecl.ts, 57, 31)) + + public static s2; +>s2 : Symbol(c1.s2, Decl(moduledecl.ts, 58, 26)) + + public d() { +>d : Symbol(c1.d, Decl(moduledecl.ts, 59, 25)) + + return "Hello"; + } + + public e: { x: number; y: string; }; +>e : Symbol(c1.e, Decl(moduledecl.ts, 63, 9)) +>x : Symbol(x, Decl(moduledecl.ts, 65, 19)) +>y : Symbol(y, Decl(moduledecl.ts, 65, 30)) + + constructor (public n, public n2: number, private n3, private n4: string) { +>n : Symbol(c1.n, Decl(moduledecl.ts, 66, 21)) +>n2 : Symbol(c1.n2, Decl(moduledecl.ts, 66, 30)) +>n3 : Symbol(c1.n3, Decl(moduledecl.ts, 66, 49)) +>n4 : Symbol(c1.n4, Decl(moduledecl.ts, 66, 61)) + } + } + + export interface i1 { +>i1 : Symbol(i1, Decl(moduledecl.ts, 68, 5)) + + () : Object; +>Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) + + [n: number]: c1; +>n : Symbol(n, Decl(moduledecl.ts, 72, 9)) +>c1 : Symbol(c1, Decl(moduledecl.ts, 53, 5)) + } + + import m2 = a; +>m2 : Symbol(m2, Decl(moduledecl.ts, 73, 5)) +>a : Symbol(m2, Decl(moduledecl.ts, 0, 0)) + + import m3 = b; +>m3 : Symbol(m3, Decl(moduledecl.ts, 75, 18)) +>b : Symbol(m3, Decl(moduledecl.ts, 1, 1)) + + import m4 = b.a; +>m4 : Symbol(m4, Decl(moduledecl.ts, 76, 18)) +>b : Symbol(m3, Decl(moduledecl.ts, 1, 1)) +>a : Symbol(m3.a, Decl(moduledecl.ts, 3, 12)) + + import m5 = c; +>m5 : Symbol(m5, Decl(moduledecl.ts, 77, 20)) +>c : Symbol(m5, Decl(moduledecl.ts, 4, 1)) + + import m6 = c.a; +>m6 : Symbol(m6, Decl(moduledecl.ts, 78, 18)) +>c : Symbol(m5, Decl(moduledecl.ts, 4, 1)) +>a : Symbol(m5.a, Decl(moduledecl.ts, 6, 12)) + + import m7 = c.a.b; +>m7 : Symbol(m7, Decl(moduledecl.ts, 79, 20)) +>c : Symbol(m5, Decl(moduledecl.ts, 4, 1)) +>a : Symbol(m5.a, Decl(moduledecl.ts, 6, 12)) +>b : Symbol(m6.b, Decl(moduledecl.ts, 6, 14)) +} + +namespace m { +>m : Symbol(m, Decl(moduledecl.ts, 81, 1), Decl(moduledecl.ts, 92, 1)) + + export namespace m2 { +>m2 : Symbol(m2, Decl(moduledecl.ts, 83, 13)) + + var a = 10; +>a : Symbol(a, Decl(moduledecl.ts, 85, 11)) + + export var b: number; +>b : Symbol(b, Decl(moduledecl.ts, 86, 18)) + } + + export namespace m3 { +>m3 : Symbol(m3, Decl(moduledecl.ts, 87, 5)) + + export var c: number; +>c : Symbol(c, Decl(moduledecl.ts, 90, 18)) + } +} + +namespace m { +>m : Symbol(m, Decl(moduledecl.ts, 81, 1), Decl(moduledecl.ts, 92, 1)) + + export namespace m25 { +>m25 : Symbol(m25, Decl(moduledecl.ts, 94, 13)) + + export namespace m5 { +>m5 : Symbol(m5, Decl(moduledecl.ts, 96, 26)) + + export var c: number; +>c : Symbol(c, Decl(moduledecl.ts, 98, 22)) + } + } +} + +namespace m13 { +>m13 : Symbol(m13, Decl(moduledecl.ts, 101, 1)) + + export namespace m4 { +>m4 : Symbol(m4, Decl(moduledecl.ts, 103, 15)) + + export namespace m2 { +>m2 : Symbol(m2, Decl(moduledecl.ts, 104, 25)) + + export namespace m3 { +>m3 : Symbol(m3, Decl(moduledecl.ts, 105, 29)) + + export var c: number; +>c : Symbol(c, Decl(moduledecl.ts, 107, 26)) + } + } + + export function f() { +>f : Symbol(f, Decl(moduledecl.ts, 109, 9)) + + return 20; + } + } +} + +declare namespace m4 { +>m4 : Symbol(m4, Decl(moduledecl.ts, 115, 1)) + + export var b; +>b : Symbol(b, Decl(moduledecl.ts, 118, 14)) +} + +declare namespace m5 { +>m5 : Symbol(m5, Decl(moduledecl.ts, 119, 1)) + + export var c; +>c : Symbol(c, Decl(moduledecl.ts, 122, 14)) +} + +declare namespace m43 { +>m43 : Symbol(m43, Decl(moduledecl.ts, 123, 1)) + + export var b; +>b : Symbol(b, Decl(moduledecl.ts, 126, 14)) +} + +declare namespace m55 { +>m55 : Symbol(m55, Decl(moduledecl.ts, 127, 1)) + + export var c; +>c : Symbol(c, Decl(moduledecl.ts, 130, 14)) +} + +declare module "m3" { +>"m3" : Symbol("m3", Decl(moduledecl.ts, 131, 1)) + + export var b: number; +>b : Symbol(b, Decl(moduledecl.ts, 134, 14)) +} + +namespace exportTests { +>exportTests : Symbol(exportTests, Decl(moduledecl.ts, 135, 1)) + + export class C1_public { +>C1_public : Symbol(C1_public, Decl(moduledecl.ts, 137, 23)) + + private f2() { +>f2 : Symbol(C1_public.f2, Decl(moduledecl.ts, 138, 28)) + + return 30; + } + + public f3() { +>f3 : Symbol(C1_public.f3, Decl(moduledecl.ts, 141, 9)) + + return "string"; + } + } + class C2_private { +>C2_private : Symbol(C2_private, Decl(moduledecl.ts, 146, 5)) + + private f2() { +>f2 : Symbol(C2_private.f2, Decl(moduledecl.ts, 147, 22)) + + return 30; + } + + public f3() { +>f3 : Symbol(C2_private.f3, Decl(moduledecl.ts, 150, 9)) + + return "string"; + } + } + + export class C3_public { +>C3_public : Symbol(C3_public, Decl(moduledecl.ts, 155, 5)) + + private getC2_private() { +>getC2_private : Symbol(C3_public.getC2_private, Decl(moduledecl.ts, 157, 28)) + + return new C2_private(); +>C2_private : Symbol(C2_private, Decl(moduledecl.ts, 146, 5)) + } + private setC2_private(arg: C2_private) { +>setC2_private : Symbol(C3_public.setC2_private, Decl(moduledecl.ts, 160, 9)) +>arg : Symbol(arg, Decl(moduledecl.ts, 161, 30)) +>C2_private : Symbol(C2_private, Decl(moduledecl.ts, 146, 5)) + } + private get c2() { +>c2 : Symbol(C3_public.c2, Decl(moduledecl.ts, 162, 9)) + + return new C2_private(); +>C2_private : Symbol(C2_private, Decl(moduledecl.ts, 146, 5)) + } + public getC1_public() { +>getC1_public : Symbol(C3_public.getC1_public, Decl(moduledecl.ts, 165, 9)) + + return new C1_public(); +>C1_public : Symbol(C1_public, Decl(moduledecl.ts, 137, 23)) + } + public setC1_public(arg: C1_public) { +>setC1_public : Symbol(C3_public.setC1_public, Decl(moduledecl.ts, 168, 9)) +>arg : Symbol(arg, Decl(moduledecl.ts, 169, 28)) +>C1_public : Symbol(C1_public, Decl(moduledecl.ts, 137, 23)) + } + public get c1() { +>c1 : Symbol(C3_public.c1, Decl(moduledecl.ts, 170, 9)) + + return new C1_public(); +>C1_public : Symbol(C1_public, Decl(moduledecl.ts, 137, 23)) + } + } +} + +declare namespace mAmbient { +>mAmbient : Symbol(mAmbient, Decl(moduledecl.ts, 175, 1)) + + class C { +>C : Symbol(C, Decl(moduledecl.ts, 177, 28)) + + public myProp: number; +>myProp : Symbol(C.myProp, Decl(moduledecl.ts, 178, 13)) + } + + function foo() : C; +>foo : Symbol(foo, Decl(moduledecl.ts, 180, 5)) +>C : Symbol(C, Decl(moduledecl.ts, 177, 28)) + + var aVar: C; +>aVar : Symbol(aVar, Decl(moduledecl.ts, 183, 7)) +>C : Symbol(C, Decl(moduledecl.ts, 177, 28)) + + interface B { +>B : Symbol(B, Decl(moduledecl.ts, 183, 16)) + + x: number; +>x : Symbol(B.x, Decl(moduledecl.ts, 184, 17)) + + y: C; +>y : Symbol(B.y, Decl(moduledecl.ts, 185, 18)) +>C : Symbol(C, Decl(moduledecl.ts, 177, 28)) + } + enum e { +>e : Symbol(e, Decl(moduledecl.ts, 187, 5)) + + x, +>x : Symbol(e.x, Decl(moduledecl.ts, 188, 12)) + + y, +>y : Symbol(e.y, Decl(moduledecl.ts, 189, 10)) + + z +>z : Symbol(e.z, Decl(moduledecl.ts, 190, 10)) + } + + namespace m3 { +>m3 : Symbol(m3, Decl(moduledecl.ts, 192, 5)) + + class C { +>C : Symbol(C, Decl(moduledecl.ts, 194, 18)) + + public myProp: number; +>myProp : Symbol(C.myProp, Decl(moduledecl.ts, 195, 17)) + } + + function foo(): C; +>foo : Symbol(foo, Decl(moduledecl.ts, 197, 9)) +>C : Symbol(C, Decl(moduledecl.ts, 194, 18)) + + var aVar: C; +>aVar : Symbol(aVar, Decl(moduledecl.ts, 200, 11)) +>C : Symbol(C, Decl(moduledecl.ts, 194, 18)) + + interface B { +>B : Symbol(B, Decl(moduledecl.ts, 200, 20)) + + x: number; +>x : Symbol(B.x, Decl(moduledecl.ts, 201, 21)) + + y: C; +>y : Symbol(B.y, Decl(moduledecl.ts, 202, 22)) +>C : Symbol(C, Decl(moduledecl.ts, 194, 18)) + } + enum e { +>e : Symbol(e, Decl(moduledecl.ts, 204, 9)) + + x, +>x : Symbol(e.x, Decl(moduledecl.ts, 205, 16)) + + y, +>y : Symbol(e.y, Decl(moduledecl.ts, 206, 14)) + + z +>z : Symbol(e.z, Decl(moduledecl.ts, 207, 14)) + } + } +} + +function foo() { +>foo : Symbol(foo, Decl(moduledecl.ts, 211, 1)) + + return mAmbient.foo(); +>mAmbient.foo : Symbol(mAmbient.foo, Decl(moduledecl.ts, 180, 5)) +>mAmbient : Symbol(mAmbient, Decl(moduledecl.ts, 175, 1)) +>foo : Symbol(mAmbient.foo, Decl(moduledecl.ts, 180, 5)) +} + +var cVar = new mAmbient.C(); +>cVar : Symbol(cVar, Decl(moduledecl.ts, 217, 3)) +>mAmbient.C : Symbol(mAmbient.C, Decl(moduledecl.ts, 177, 28)) +>mAmbient : Symbol(mAmbient, Decl(moduledecl.ts, 175, 1)) +>C : Symbol(mAmbient.C, Decl(moduledecl.ts, 177, 28)) + +var aVar = mAmbient.aVar; +>aVar : Symbol(aVar, Decl(moduledecl.ts, 218, 3)) +>mAmbient.aVar : Symbol(mAmbient.aVar, Decl(moduledecl.ts, 183, 7)) +>mAmbient : Symbol(mAmbient, Decl(moduledecl.ts, 175, 1)) +>aVar : Symbol(mAmbient.aVar, Decl(moduledecl.ts, 183, 7)) + +var bB: mAmbient.B; +>bB : Symbol(bB, Decl(moduledecl.ts, 219, 3)) +>mAmbient : Symbol(mAmbient, Decl(moduledecl.ts, 175, 1)) +>B : Symbol(mAmbient.B, Decl(moduledecl.ts, 183, 16)) + +var eVar: mAmbient.e; +>eVar : Symbol(eVar, Decl(moduledecl.ts, 220, 3)) +>mAmbient : Symbol(mAmbient, Decl(moduledecl.ts, 175, 1)) +>e : Symbol(mAmbient.e, Decl(moduledecl.ts, 187, 5)) + +function m3foo() { +>m3foo : Symbol(m3foo, Decl(moduledecl.ts, 220, 21)) + + return mAmbient.m3.foo(); +>mAmbient.m3.foo : Symbol(mAmbient.m3.foo, Decl(moduledecl.ts, 197, 9)) +>mAmbient.m3 : Symbol(mAmbient.m3, Decl(moduledecl.ts, 192, 5)) +>mAmbient : Symbol(mAmbient, Decl(moduledecl.ts, 175, 1)) +>m3 : Symbol(mAmbient.m3, Decl(moduledecl.ts, 192, 5)) +>foo : Symbol(mAmbient.m3.foo, Decl(moduledecl.ts, 197, 9)) +} + +var m3cVar = new mAmbient.m3.C(); +>m3cVar : Symbol(m3cVar, Decl(moduledecl.ts, 226, 3)) +>mAmbient.m3.C : Symbol(mAmbient.m3.C, Decl(moduledecl.ts, 194, 18)) +>mAmbient.m3 : Symbol(mAmbient.m3, Decl(moduledecl.ts, 192, 5)) +>mAmbient : Symbol(mAmbient, Decl(moduledecl.ts, 175, 1)) +>m3 : Symbol(mAmbient.m3, Decl(moduledecl.ts, 192, 5)) +>C : Symbol(mAmbient.m3.C, Decl(moduledecl.ts, 194, 18)) + +var m3aVar = mAmbient.m3.aVar; +>m3aVar : Symbol(m3aVar, Decl(moduledecl.ts, 227, 3)) +>mAmbient.m3.aVar : Symbol(mAmbient.m3.aVar, Decl(moduledecl.ts, 200, 11)) +>mAmbient.m3 : Symbol(mAmbient.m3, Decl(moduledecl.ts, 192, 5)) +>mAmbient : Symbol(mAmbient, Decl(moduledecl.ts, 175, 1)) +>m3 : Symbol(mAmbient.m3, Decl(moduledecl.ts, 192, 5)) +>aVar : Symbol(mAmbient.m3.aVar, Decl(moduledecl.ts, 200, 11)) + +var m3bB: mAmbient.m3.B; +>m3bB : Symbol(m3bB, Decl(moduledecl.ts, 228, 3)) +>mAmbient : Symbol(mAmbient, Decl(moduledecl.ts, 175, 1)) +>m3 : Symbol(mAmbient.m3, Decl(moduledecl.ts, 192, 5)) +>B : Symbol(mAmbient.m3.B, Decl(moduledecl.ts, 200, 20)) + +var m3eVar: mAmbient.m3.e; +>m3eVar : Symbol(m3eVar, Decl(moduledecl.ts, 229, 3)) +>mAmbient : Symbol(mAmbient, Decl(moduledecl.ts, 175, 1)) +>m3 : Symbol(mAmbient.m3, Decl(moduledecl.ts, 192, 5)) +>e : Symbol(mAmbient.m3.e, Decl(moduledecl.ts, 204, 9)) + + diff --git a/tests/baselines/reference/moduledecl(target=es5).types b/tests/baselines/reference/moduledecl(target=es5).types new file mode 100644 index 0000000000000..3f73baec83104 --- /dev/null +++ b/tests/baselines/reference/moduledecl(target=es5).types @@ -0,0 +1,701 @@ +//// [tests/cases/compiler/moduledecl.ts] //// + +=== moduledecl.ts === +namespace a { +} + +namespace b.a { +} + +namespace c.a.b { + import ma = a; +>ma : any +> : ^^^ +>a : error +} + +namespace mImport { + import d = a; +>d : any +> : ^^^ +>a : error + + import e = b.a; +>e : any +> : ^^^ +>b : any +> : ^^^ +>a : any +> : ^^^ + + import d1 = a; +>d1 : any +> : ^^^ +>a : error + + import e1 = b.a; +>e1 : any +> : ^^^ +>b : any +> : ^^^ +>a : any +> : ^^^ +} + +namespace m0 { +>m0 : typeof m0 +> : ^^^^^^^^^ + + function f1() { +>f1 : () => void +> : ^^^^^^^^^^ + } + + function f2(s: string); +>f2 : { (s: string): any; (n: number): any; } +> : ^^^ ^^ ^^^^^^^^^ ^^ ^^^^^^^^^ +>s : string +> : ^^^^^^ + + function f2(n: number); +>f2 : { (s: string): any; (n: number): any; } +> : ^^^ ^^ ^^^^^^^^^ ^^ ^^^^^^^^^ +>n : number +> : ^^^^^^ + + function f2(ns: any) { +>f2 : { (s: string): any; (n: number): any; } +> : ^^^ ^^ ^^^^^^^^^ ^^ ^^^^^^^^^ +>ns : any + } + + class c1 { +>c1 : c1 +> : ^^ + + public a : ()=>string; +>a : () => string +> : ^^^^^^ + + private b: ()=>number; +>b : () => number +> : ^^^^^^ + + private static s1; +>s1 : any + + public static s2; +>s2 : any + } + + interface i1 { + () : Object; + [n: number]: c1; +>n : number +> : ^^^^^^ + } + + import m2 = a; +>m2 : any +> : ^^^ +>a : error + + import m3 = b; +>m3 : any +> : ^^^ +>b : error + + import m4 = b.a; +>m4 : any +> : ^^^ +>b : any +> : ^^^ +>a : any +> : ^^^ + + import m5 = c; +>m5 : any +> : ^^^ +>c : error + + import m6 = c.a; +>m6 : any +> : ^^^ +>c : any +> : ^^^ +>a : any +> : ^^^ + + import m7 = c.a.b; +>m7 : any +> : ^^^ +>c : any +> : ^^^ +>a : any +> : ^^^ +>b : any +> : ^^^ +} + +namespace m1 { +>m1 : typeof m1 +> : ^^^^^^^^^ + + export function f1() { +>f1 : () => void +> : ^^^^^^^^^^ + } + + export function f2(s: string); +>f2 : { (s: string): any; (n: number): any; } +> : ^^^ ^^ ^^^^^^^^^ ^^ ^^^^^^^^^ +>s : string +> : ^^^^^^ + + export function f2(n: number); +>f2 : { (s: string): any; (n: number): any; } +> : ^^^ ^^ ^^^^^^^^^ ^^ ^^^^^^^^^ +>n : number +> : ^^^^^^ + + export function f2(ns: any) { +>f2 : { (s: string): any; (n: number): any; } +> : ^^^ ^^ ^^^^^^^^^ ^^ ^^^^^^^^^ +>ns : any + } + + export class c1 { +>c1 : c1 +> : ^^ + + public a: () =>string; +>a : () => string +> : ^^^^^^ + + private b: () =>number; +>b : () => number +> : ^^^^^^ + + private static s1; +>s1 : any + + public static s2; +>s2 : any + + public d() { +>d : () => string +> : ^^^^^^^^^^^^ + + return "Hello"; +>"Hello" : "Hello" +> : ^^^^^^^ + } + + public e: { x: number; y: string; }; +>e : { x: number; y: string; } +> : ^^^^^ ^^^^^ ^^^ +>x : number +> : ^^^^^^ +>y : string +> : ^^^^^^ + + constructor (public n, public n2: number, private n3, private n4: string) { +>n : any +>n2 : number +> : ^^^^^^ +>n3 : any +>n4 : string +> : ^^^^^^ + } + } + + export interface i1 { + () : Object; + [n: number]: c1; +>n : number +> : ^^^^^^ + } + + import m2 = a; +>m2 : any +> : ^^^ +>a : error + + import m3 = b; +>m3 : any +> : ^^^ +>b : error + + import m4 = b.a; +>m4 : any +> : ^^^ +>b : any +> : ^^^ +>a : any +> : ^^^ + + import m5 = c; +>m5 : any +> : ^^^ +>c : error + + import m6 = c.a; +>m6 : any +> : ^^^ +>c : any +> : ^^^ +>a : any +> : ^^^ + + import m7 = c.a.b; +>m7 : any +> : ^^^ +>c : any +> : ^^^ +>a : any +> : ^^^ +>b : any +> : ^^^ +} + +namespace m { +>m : typeof m +> : ^^^^^^^^ + + export namespace m2 { +>m2 : typeof m2 +> : ^^^^^^^^^ + + var a = 10; +>a : number +> : ^^^^^^ +>10 : 10 +> : ^^ + + export var b: number; +>b : number +> : ^^^^^^ + } + + export namespace m3 { +>m3 : typeof m3 +> : ^^^^^^^^^ + + export var c: number; +>c : number +> : ^^^^^^ + } +} + +namespace m { +>m : typeof m +> : ^^^^^^^^ + + export namespace m25 { +>m25 : typeof m25 +> : ^^^^^^^^^^ + + export namespace m5 { +>m5 : typeof m5 +> : ^^^^^^^^^ + + export var c: number; +>c : number +> : ^^^^^^ + } + } +} + +namespace m13 { +>m13 : typeof m13 +> : ^^^^^^^^^^ + + export namespace m4 { +>m4 : typeof m4 +> : ^^^^^^^^^ + + export namespace m2 { +>m2 : typeof m2 +> : ^^^^^^^^^ + + export namespace m3 { +>m3 : typeof m3 +> : ^^^^^^^^^ + + export var c: number; +>c : number +> : ^^^^^^ + } + } + + export function f() { +>f : () => number +> : ^^^^^^^^^^^^ + + return 20; +>20 : 20 +> : ^^ + } + } +} + +declare namespace m4 { +>m4 : typeof m4 +> : ^^^^^^^^^ + + export var b; +>b : any +} + +declare namespace m5 { +>m5 : typeof m5 +> : ^^^^^^^^^ + + export var c; +>c : any +} + +declare namespace m43 { +>m43 : typeof m43 +> : ^^^^^^^^^^ + + export var b; +>b : any +} + +declare namespace m55 { +>m55 : typeof m55 +> : ^^^^^^^^^^ + + export var c; +>c : any +} + +declare module "m3" { +>"m3" : typeof import("m3") +> : ^^^^^^^^^^^^^^^^^^^ + + export var b: number; +>b : number +> : ^^^^^^ +} + +namespace exportTests { +>exportTests : typeof exportTests +> : ^^^^^^^^^^^^^^^^^^ + + export class C1_public { +>C1_public : C1_public +> : ^^^^^^^^^ + + private f2() { +>f2 : () => number +> : ^^^^^^^^^^^^ + + return 30; +>30 : 30 +> : ^^ + } + + public f3() { +>f3 : () => string +> : ^^^^^^^^^^^^ + + return "string"; +>"string" : "string" +> : ^^^^^^^^ + } + } + class C2_private { +>C2_private : C2_private +> : ^^^^^^^^^^ + + private f2() { +>f2 : () => number +> : ^^^^^^^^^^^^ + + return 30; +>30 : 30 +> : ^^ + } + + public f3() { +>f3 : () => string +> : ^^^^^^^^^^^^ + + return "string"; +>"string" : "string" +> : ^^^^^^^^ + } + } + + export class C3_public { +>C3_public : C3_public +> : ^^^^^^^^^ + + private getC2_private() { +>getC2_private : () => C2_private +> : ^^^^^^^^^^^^^^^^ + + return new C2_private(); +>new C2_private() : C2_private +> : ^^^^^^^^^^ +>C2_private : typeof C2_private +> : ^^^^^^^^^^^^^^^^^ + } + private setC2_private(arg: C2_private) { +>setC2_private : (arg: C2_private) => void +> : ^ ^^ ^^^^^^^^^ +>arg : C2_private +> : ^^^^^^^^^^ + } + private get c2() { +>c2 : C2_private +> : ^^^^^^^^^^ + + return new C2_private(); +>new C2_private() : C2_private +> : ^^^^^^^^^^ +>C2_private : typeof C2_private +> : ^^^^^^^^^^^^^^^^^ + } + public getC1_public() { +>getC1_public : () => C1_public +> : ^^^^^^^^^^^^^^^ + + return new C1_public(); +>new C1_public() : C1_public +> : ^^^^^^^^^ +>C1_public : typeof C1_public +> : ^^^^^^^^^^^^^^^^ + } + public setC1_public(arg: C1_public) { +>setC1_public : (arg: C1_public) => void +> : ^ ^^ ^^^^^^^^^ +>arg : C1_public +> : ^^^^^^^^^ + } + public get c1() { +>c1 : C1_public +> : ^^^^^^^^^ + + return new C1_public(); +>new C1_public() : C1_public +> : ^^^^^^^^^ +>C1_public : typeof C1_public +> : ^^^^^^^^^^^^^^^^ + } + } +} + +declare namespace mAmbient { +>mAmbient : typeof mAmbient +> : ^^^^^^^^^^^^^^^ + + class C { +>C : C +> : ^ + + public myProp: number; +>myProp : number +> : ^^^^^^ + } + + function foo() : C; +>foo : () => C +> : ^^^^^^ + + var aVar: C; +>aVar : C +> : ^ + + interface B { + x: number; +>x : number +> : ^^^^^^ + + y: C; +>y : C +> : ^ + } + enum e { +>e : e +> : ^ + + x, +>x : e.x +> : ^^^ + + y, +>y : e.y +> : ^^^ + + z +>z : e.z +> : ^^^ + } + + namespace m3 { +>m3 : typeof m3 +> : ^^^^^^^^^ + + class C { +>C : C +> : ^ + + public myProp: number; +>myProp : number +> : ^^^^^^ + } + + function foo(): C; +>foo : () => C +> : ^^^^^^ + + var aVar: C; +>aVar : C +> : ^ + + interface B { + x: number; +>x : number +> : ^^^^^^ + + y: C; +>y : C +> : ^ + } + enum e { +>e : e +> : ^ + + x, +>x : e.x +> : ^^^ + + y, +>y : e.y +> : ^^^ + + z +>z : e.z +> : ^^^ + } + } +} + +function foo() { +>foo : () => mAmbient.C +> : ^^^^^^^^^^^^^^^^ + + return mAmbient.foo(); +>mAmbient.foo() : mAmbient.C +> : ^^^^^^^^^^ +>mAmbient.foo : () => mAmbient.C +> : ^^^^^^^^^^^^^^^^ +>mAmbient : typeof mAmbient +> : ^^^^^^^^^^^^^^^ +>foo : () => mAmbient.C +> : ^^^^^^^^^^^^^^^^ +} + +var cVar = new mAmbient.C(); +>cVar : mAmbient.C +> : ^^^^^^^^^^ +>new mAmbient.C() : mAmbient.C +> : ^^^^^^^^^^ +>mAmbient.C : typeof mAmbient.C +> : ^^^^^^^^^^^^^^^^^ +>mAmbient : typeof mAmbient +> : ^^^^^^^^^^^^^^^ +>C : typeof mAmbient.C +> : ^^^^^^^^^^^^^^^^^ + +var aVar = mAmbient.aVar; +>aVar : mAmbient.C +> : ^^^^^^^^^^ +>mAmbient.aVar : mAmbient.C +> : ^^^^^^^^^^ +>mAmbient : typeof mAmbient +> : ^^^^^^^^^^^^^^^ +>aVar : mAmbient.C +> : ^^^^^^^^^^ + +var bB: mAmbient.B; +>bB : mAmbient.B +> : ^^^^^^^^^^ +>mAmbient : any +> : ^^^ + +var eVar: mAmbient.e; +>eVar : mAmbient.e +> : ^^^^^^^^^^ +>mAmbient : any +> : ^^^ + +function m3foo() { +>m3foo : () => mAmbient.m3.C +> : ^^^^^^^^^^^^^^^^^^^ + + return mAmbient.m3.foo(); +>mAmbient.m3.foo() : mAmbient.m3.C +> : ^^^^^^^^^^^^^ +>mAmbient.m3.foo : () => mAmbient.m3.C +> : ^^^^^^^^^^^^^^^^^^^ +>mAmbient.m3 : typeof mAmbient.m3 +> : ^^^^^^^^^^^^^^^^^^ +>mAmbient : typeof mAmbient +> : ^^^^^^^^^^^^^^^ +>m3 : typeof mAmbient.m3 +> : ^^^^^^^^^^^^^^^^^^ +>foo : () => mAmbient.m3.C +> : ^^^^^^^^^^^^^^^^^^^ +} + +var m3cVar = new mAmbient.m3.C(); +>m3cVar : mAmbient.m3.C +> : ^^^^^^^^^^^^^ +>new mAmbient.m3.C() : mAmbient.m3.C +> : ^^^^^^^^^^^^^ +>mAmbient.m3.C : typeof mAmbient.m3.C +> : ^^^^^^^^^^^^^^^^^^^^ +>mAmbient.m3 : typeof mAmbient.m3 +> : ^^^^^^^^^^^^^^^^^^ +>mAmbient : typeof mAmbient +> : ^^^^^^^^^^^^^^^ +>m3 : typeof mAmbient.m3 +> : ^^^^^^^^^^^^^^^^^^ +>C : typeof mAmbient.m3.C +> : ^^^^^^^^^^^^^^^^^^^^ + +var m3aVar = mAmbient.m3.aVar; +>m3aVar : mAmbient.m3.C +> : ^^^^^^^^^^^^^ +>mAmbient.m3.aVar : mAmbient.m3.C +> : ^^^^^^^^^^^^^ +>mAmbient.m3 : typeof mAmbient.m3 +> : ^^^^^^^^^^^^^^^^^^ +>mAmbient : typeof mAmbient +> : ^^^^^^^^^^^^^^^ +>m3 : typeof mAmbient.m3 +> : ^^^^^^^^^^^^^^^^^^ +>aVar : mAmbient.m3.C +> : ^^^^^^^^^^^^^ + +var m3bB: mAmbient.m3.B; +>m3bB : mAmbient.m3.B +> : ^^^^^^^^^^^^^ +>mAmbient : any +> : ^^^ +>m3 : any +> : ^^^ + +var m3eVar: mAmbient.m3.e; +>m3eVar : mAmbient.m3.e +> : ^^^^^^^^^^^^^ +>mAmbient : any +> : ^^^ +>m3 : any +> : ^^^ + + diff --git a/tests/baselines/reference/multipleDefaultExports01.errors.txt b/tests/baselines/reference/multipleDefaultExports01(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/multipleDefaultExports01.errors.txt rename to tests/baselines/reference/multipleDefaultExports01(target=es2015).errors.txt diff --git a/tests/baselines/reference/multipleDefaultExports01(target=es2015).js b/tests/baselines/reference/multipleDefaultExports01(target=es2015).js new file mode 100644 index 0000000000000..f05e251cd5e43 --- /dev/null +++ b/tests/baselines/reference/multipleDefaultExports01(target=es2015).js @@ -0,0 +1,38 @@ +//// [tests/cases/conformance/es6/modules/multipleDefaultExports01.ts] //// + +//// [m1.ts] +export default class foo { + +} + +export default function bar() { + +} + +var x = 10; +export default x; + +//// [m2.ts] +import Entity from "./m1" + +Entity(); + +//// [m1.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = bar; +class foo { +} +exports.default = foo; +function bar() { +} +var x = 10; +exports.default = x; +//// [m2.js] +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const m1_1 = __importDefault(require("./m1")); +(0, m1_1.default)(); diff --git a/tests/baselines/reference/multipleDefaultExports01.symbols b/tests/baselines/reference/multipleDefaultExports01(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/multipleDefaultExports01.symbols rename to tests/baselines/reference/multipleDefaultExports01(target=es2015).symbols diff --git a/tests/baselines/reference/multipleDefaultExports01.types b/tests/baselines/reference/multipleDefaultExports01(target=es2015).types similarity index 100% rename from tests/baselines/reference/multipleDefaultExports01.types rename to tests/baselines/reference/multipleDefaultExports01(target=es2015).types diff --git a/tests/baselines/reference/multipleDefaultExports01(target=es5).errors.txt b/tests/baselines/reference/multipleDefaultExports01(target=es5).errors.txt new file mode 100644 index 0000000000000..6bd81bec83774 --- /dev/null +++ b/tests/baselines/reference/multipleDefaultExports01(target=es5).errors.txt @@ -0,0 +1,45 @@ +m1.ts(1,22): error TS2323: Cannot redeclare exported variable 'default'. +m1.ts(1,22): error TS2528: A module cannot have multiple default exports. +m1.ts(1,22): error TS2813: Class declaration cannot implement overload list for 'default'. +m1.ts(5,25): error TS2323: Cannot redeclare exported variable 'default'. +m1.ts(5,25): error TS2528: A module cannot have multiple default exports. +m1.ts(5,25): error TS2814: Function with bodies can only merge with classes that are ambient. +m1.ts(10,16): error TS2528: A module cannot have multiple default exports. + + +==== m1.ts (7 errors) ==== + export default class foo { + ~~~ +!!! error TS2323: Cannot redeclare exported variable 'default'. + ~~~ +!!! error TS2528: A module cannot have multiple default exports. +!!! related TS6204 m1.ts:10:16: and here. + ~~~ +!!! error TS2813: Class declaration cannot implement overload list for 'default'. +!!! related TS6506 m1.ts:1:22: Consider adding a 'declare' modifier to this class. + + } + + export default function bar() { + ~~~ +!!! error TS2323: Cannot redeclare exported variable 'default'. + ~~~ +!!! error TS2528: A module cannot have multiple default exports. +!!! related TS2753 m1.ts:10:16: Another export default is here. + ~~~ +!!! error TS2814: Function with bodies can only merge with classes that are ambient. +!!! related TS6506 m1.ts:1:22: Consider adding a 'declare' modifier to this class. + + } + + var x = 10; + export default x; + ~ +!!! error TS2528: A module cannot have multiple default exports. +!!! related TS2752 m1.ts:5:25: The first export default is here. +!!! related TS2752 m1.ts:1:22: The first export default is here. + +==== m2.ts (0 errors) ==== + import Entity from "./m1" + + Entity(); \ No newline at end of file diff --git a/tests/baselines/reference/multipleDefaultExports01.js b/tests/baselines/reference/multipleDefaultExports01(target=es5).js similarity index 100% rename from tests/baselines/reference/multipleDefaultExports01.js rename to tests/baselines/reference/multipleDefaultExports01(target=es5).js diff --git a/tests/baselines/reference/multipleDefaultExports01(target=es5).symbols b/tests/baselines/reference/multipleDefaultExports01(target=es5).symbols new file mode 100644 index 0000000000000..e56d7a79d7ae7 --- /dev/null +++ b/tests/baselines/reference/multipleDefaultExports01(target=es5).symbols @@ -0,0 +1,26 @@ +//// [tests/cases/conformance/es6/modules/multipleDefaultExports01.ts] //// + +=== m1.ts === +export default class foo { +>foo : Symbol(bar, Decl(m1.ts, 2, 1), Decl(m1.ts, 0, 0)) + +} + +export default function bar() { +>bar : Symbol(bar, Decl(m1.ts, 2, 1), Decl(m1.ts, 0, 0)) + +} + +var x = 10; +>x : Symbol(x, Decl(m1.ts, 8, 3)) + +export default x; +>x : Symbol(x, Decl(m1.ts, 8, 3)) + +=== m2.ts === +import Entity from "./m1" +>Entity : Symbol(Entity, Decl(m2.ts, 0, 6)) + +Entity(); +>Entity : Symbol(Entity, Decl(m2.ts, 0, 6)) + diff --git a/tests/baselines/reference/multipleDefaultExports01(target=es5).types b/tests/baselines/reference/multipleDefaultExports01(target=es5).types new file mode 100644 index 0000000000000..134198cd64d44 --- /dev/null +++ b/tests/baselines/reference/multipleDefaultExports01(target=es5).types @@ -0,0 +1,36 @@ +//// [tests/cases/conformance/es6/modules/multipleDefaultExports01.ts] //// + +=== m1.ts === +export default class foo { +>foo : bar +> : ^^^ + +} + +export default function bar() { +>bar : typeof bar +> : ^^^^^^^^^^ + +} + +var x = 10; +>x : number +> : ^^^^^^ +>10 : 10 +> : ^^ + +export default x; +>x : number +> : ^^^^^^ + +=== m2.ts === +import Entity from "./m1" +>Entity : typeof Entity +> : ^^^^^^^^^^^^^ + +Entity(); +>Entity() : void +> : ^^^^ +>Entity : typeof Entity +> : ^^^^^^^^^^^^^ + diff --git a/tests/baselines/reference/multipleDefaultExports02.errors.txt b/tests/baselines/reference/multipleDefaultExports02(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/multipleDefaultExports02.errors.txt rename to tests/baselines/reference/multipleDefaultExports02(target=es2015).errors.txt diff --git a/tests/baselines/reference/multipleDefaultExports02(target=es2015).js b/tests/baselines/reference/multipleDefaultExports02(target=es2015).js new file mode 100644 index 0000000000000..c4869009b6ad9 --- /dev/null +++ b/tests/baselines/reference/multipleDefaultExports02(target=es2015).js @@ -0,0 +1,33 @@ +//// [tests/cases/conformance/es6/modules/multipleDefaultExports02.ts] //// + +//// [m1.ts] +export default function foo() { + +} + +export default function bar() { + +} + +//// [m2.ts] +import Entity from "./m1" + +Entity(); + +//// [m1.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = foo; +exports.default = bar; +function foo() { +} +function bar() { +} +//// [m2.js] +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const m1_1 = __importDefault(require("./m1")); +(0, m1_1.default)(); diff --git a/tests/baselines/reference/multipleDefaultExports02.symbols b/tests/baselines/reference/multipleDefaultExports02(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/multipleDefaultExports02.symbols rename to tests/baselines/reference/multipleDefaultExports02(target=es2015).symbols diff --git a/tests/baselines/reference/multipleDefaultExports02.types b/tests/baselines/reference/multipleDefaultExports02(target=es2015).types similarity index 100% rename from tests/baselines/reference/multipleDefaultExports02.types rename to tests/baselines/reference/multipleDefaultExports02(target=es2015).types diff --git a/tests/baselines/reference/multipleDefaultExports02(target=es5).errors.txt b/tests/baselines/reference/multipleDefaultExports02(target=es5).errors.txt new file mode 100644 index 0000000000000..6445cd3deb638 --- /dev/null +++ b/tests/baselines/reference/multipleDefaultExports02(target=es5).errors.txt @@ -0,0 +1,27 @@ +m1.ts(1,25): error TS2323: Cannot redeclare exported variable 'default'. +m1.ts(1,25): error TS2393: Duplicate function implementation. +m1.ts(5,25): error TS2323: Cannot redeclare exported variable 'default'. +m1.ts(5,25): error TS2393: Duplicate function implementation. + + +==== m1.ts (4 errors) ==== + export default function foo() { + ~~~ +!!! error TS2323: Cannot redeclare exported variable 'default'. + ~~~ +!!! error TS2393: Duplicate function implementation. + + } + + export default function bar() { + ~~~ +!!! error TS2323: Cannot redeclare exported variable 'default'. + ~~~ +!!! error TS2393: Duplicate function implementation. + + } + +==== m2.ts (0 errors) ==== + import Entity from "./m1" + + Entity(); \ No newline at end of file diff --git a/tests/baselines/reference/multipleDefaultExports02.js b/tests/baselines/reference/multipleDefaultExports02(target=es5).js similarity index 100% rename from tests/baselines/reference/multipleDefaultExports02.js rename to tests/baselines/reference/multipleDefaultExports02(target=es5).js diff --git a/tests/baselines/reference/multipleDefaultExports02(target=es5).symbols b/tests/baselines/reference/multipleDefaultExports02(target=es5).symbols new file mode 100644 index 0000000000000..00d604d78bf35 --- /dev/null +++ b/tests/baselines/reference/multipleDefaultExports02(target=es5).symbols @@ -0,0 +1,20 @@ +//// [tests/cases/conformance/es6/modules/multipleDefaultExports02.ts] //// + +=== m1.ts === +export default function foo() { +>foo : Symbol(foo, Decl(m1.ts, 0, 0), Decl(m1.ts, 2, 1)) + +} + +export default function bar() { +>bar : Symbol(foo, Decl(m1.ts, 0, 0), Decl(m1.ts, 2, 1)) + +} + +=== m2.ts === +import Entity from "./m1" +>Entity : Symbol(Entity, Decl(m2.ts, 0, 6)) + +Entity(); +>Entity : Symbol(Entity, Decl(m2.ts, 0, 6)) + diff --git a/tests/baselines/reference/multipleDefaultExports02(target=es5).types b/tests/baselines/reference/multipleDefaultExports02(target=es5).types new file mode 100644 index 0000000000000..27a8f507448a6 --- /dev/null +++ b/tests/baselines/reference/multipleDefaultExports02(target=es5).types @@ -0,0 +1,26 @@ +//// [tests/cases/conformance/es6/modules/multipleDefaultExports02.ts] //// + +=== m1.ts === +export default function foo() { +>foo : () => void +> : ^^^^^^^^^^ + +} + +export default function bar() { +>bar : () => void +> : ^^^^^^^^^^ + +} + +=== m2.ts === +import Entity from "./m1" +>Entity : () => void +> : ^^^^^^^^^^ + +Entity(); +>Entity() : void +> : ^^^^ +>Entity : () => void +> : ^^^^^^^^^^ + diff --git a/tests/baselines/reference/multipleDefaultExports03.errors.txt b/tests/baselines/reference/multipleDefaultExports03(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/multipleDefaultExports03.errors.txt rename to tests/baselines/reference/multipleDefaultExports03(target=es2015).errors.txt diff --git a/tests/baselines/reference/multipleDefaultExports03(target=es2015).js b/tests/baselines/reference/multipleDefaultExports03(target=es2015).js new file mode 100644 index 0000000000000..b585d7ab3e3aa --- /dev/null +++ b/tests/baselines/reference/multipleDefaultExports03(target=es2015).js @@ -0,0 +1,18 @@ +//// [tests/cases/conformance/es6/modules/multipleDefaultExports03.ts] //// + +//// [multipleDefaultExports03.ts] +export default class C { +} + +export default class C { +} + +//// [multipleDefaultExports03.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +class C { +} +exports.default = C; +class C { +} +exports.default = C; diff --git a/tests/baselines/reference/multipleDefaultExports03.symbols b/tests/baselines/reference/multipleDefaultExports03(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/multipleDefaultExports03.symbols rename to tests/baselines/reference/multipleDefaultExports03(target=es2015).symbols diff --git a/tests/baselines/reference/multipleDefaultExports03.types b/tests/baselines/reference/multipleDefaultExports03(target=es2015).types similarity index 100% rename from tests/baselines/reference/multipleDefaultExports03.types rename to tests/baselines/reference/multipleDefaultExports03(target=es2015).types diff --git a/tests/baselines/reference/multipleDefaultExports03(target=es5).errors.txt b/tests/baselines/reference/multipleDefaultExports03(target=es5).errors.txt new file mode 100644 index 0000000000000..80bd18ea44357 --- /dev/null +++ b/tests/baselines/reference/multipleDefaultExports03(target=es5).errors.txt @@ -0,0 +1,16 @@ +multipleDefaultExports03.ts(1,22): error TS2528: A module cannot have multiple default exports. +multipleDefaultExports03.ts(4,22): error TS2528: A module cannot have multiple default exports. + + +==== multipleDefaultExports03.ts (2 errors) ==== + export default class C { + ~ +!!! error TS2528: A module cannot have multiple default exports. +!!! related TS2753 multipleDefaultExports03.ts:4:22: Another export default is here. + } + + export default class C { + ~ +!!! error TS2528: A module cannot have multiple default exports. +!!! related TS2752 multipleDefaultExports03.ts:1:22: The first export default is here. + } \ No newline at end of file diff --git a/tests/baselines/reference/multipleDefaultExports03.js b/tests/baselines/reference/multipleDefaultExports03(target=es5).js similarity index 100% rename from tests/baselines/reference/multipleDefaultExports03.js rename to tests/baselines/reference/multipleDefaultExports03(target=es5).js diff --git a/tests/baselines/reference/multipleDefaultExports03(target=es5).symbols b/tests/baselines/reference/multipleDefaultExports03(target=es5).symbols new file mode 100644 index 0000000000000..5a960040917f8 --- /dev/null +++ b/tests/baselines/reference/multipleDefaultExports03(target=es5).symbols @@ -0,0 +1,10 @@ +//// [tests/cases/conformance/es6/modules/multipleDefaultExports03.ts] //// + +=== multipleDefaultExports03.ts === +export default class C { +>C : Symbol(C, Decl(multipleDefaultExports03.ts, 0, 0)) +} + +export default class C { +>C : Symbol(C, Decl(multipleDefaultExports03.ts, 1, 1)) +} diff --git a/tests/baselines/reference/multipleDefaultExports03(target=es5).types b/tests/baselines/reference/multipleDefaultExports03(target=es5).types new file mode 100644 index 0000000000000..7d7617c50b77d --- /dev/null +++ b/tests/baselines/reference/multipleDefaultExports03(target=es5).types @@ -0,0 +1,12 @@ +//// [tests/cases/conformance/es6/modules/multipleDefaultExports03.ts] //// + +=== multipleDefaultExports03.ts === +export default class C { +>C : C +> : ^ +} + +export default class C { +>C : import("multipleDefaultExports03").default +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +} diff --git a/tests/baselines/reference/multipleDefaultExports04.errors.txt b/tests/baselines/reference/multipleDefaultExports04(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/multipleDefaultExports04.errors.txt rename to tests/baselines/reference/multipleDefaultExports04(target=es2015).errors.txt diff --git a/tests/baselines/reference/multipleDefaultExports04.js b/tests/baselines/reference/multipleDefaultExports04(target=es2015).js similarity index 100% rename from tests/baselines/reference/multipleDefaultExports04.js rename to tests/baselines/reference/multipleDefaultExports04(target=es2015).js diff --git a/tests/baselines/reference/multipleDefaultExports04.symbols b/tests/baselines/reference/multipleDefaultExports04(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/multipleDefaultExports04.symbols rename to tests/baselines/reference/multipleDefaultExports04(target=es2015).symbols diff --git a/tests/baselines/reference/multipleDefaultExports04.types b/tests/baselines/reference/multipleDefaultExports04(target=es2015).types similarity index 100% rename from tests/baselines/reference/multipleDefaultExports04.types rename to tests/baselines/reference/multipleDefaultExports04(target=es2015).types diff --git a/tests/baselines/reference/multipleDefaultExports04(target=es5).errors.txt b/tests/baselines/reference/multipleDefaultExports04(target=es5).errors.txt new file mode 100644 index 0000000000000..a5dc2f89960f4 --- /dev/null +++ b/tests/baselines/reference/multipleDefaultExports04(target=es5).errors.txt @@ -0,0 +1,20 @@ +multipleDefaultExports04.ts(1,25): error TS2323: Cannot redeclare exported variable 'default'. +multipleDefaultExports04.ts(1,25): error TS2393: Duplicate function implementation. +multipleDefaultExports04.ts(4,25): error TS2323: Cannot redeclare exported variable 'default'. +multipleDefaultExports04.ts(4,25): error TS2393: Duplicate function implementation. + + +==== multipleDefaultExports04.ts (4 errors) ==== + export default function f() { + ~ +!!! error TS2323: Cannot redeclare exported variable 'default'. + ~ +!!! error TS2393: Duplicate function implementation. + } + + export default function f() { + ~ +!!! error TS2323: Cannot redeclare exported variable 'default'. + ~ +!!! error TS2393: Duplicate function implementation. + } \ No newline at end of file diff --git a/tests/baselines/reference/multipleDefaultExports04(target=es5).js b/tests/baselines/reference/multipleDefaultExports04(target=es5).js new file mode 100644 index 0000000000000..e0e75120c7a1f --- /dev/null +++ b/tests/baselines/reference/multipleDefaultExports04(target=es5).js @@ -0,0 +1,18 @@ +//// [tests/cases/conformance/es6/modules/multipleDefaultExports04.ts] //// + +//// [multipleDefaultExports04.ts] +export default function f() { +} + +export default function f() { +} + +//// [multipleDefaultExports04.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = f; +exports.default = f; +function f() { +} +function f() { +} diff --git a/tests/baselines/reference/multipleDefaultExports04(target=es5).symbols b/tests/baselines/reference/multipleDefaultExports04(target=es5).symbols new file mode 100644 index 0000000000000..e77a85f66cbb4 --- /dev/null +++ b/tests/baselines/reference/multipleDefaultExports04(target=es5).symbols @@ -0,0 +1,10 @@ +//// [tests/cases/conformance/es6/modules/multipleDefaultExports04.ts] //// + +=== multipleDefaultExports04.ts === +export default function f() { +>f : Symbol(f, Decl(multipleDefaultExports04.ts, 0, 0), Decl(multipleDefaultExports04.ts, 1, 1)) +} + +export default function f() { +>f : Symbol(f, Decl(multipleDefaultExports04.ts, 0, 0), Decl(multipleDefaultExports04.ts, 1, 1)) +} diff --git a/tests/baselines/reference/multipleDefaultExports04(target=es5).types b/tests/baselines/reference/multipleDefaultExports04(target=es5).types new file mode 100644 index 0000000000000..2c0769cc7560d --- /dev/null +++ b/tests/baselines/reference/multipleDefaultExports04(target=es5).types @@ -0,0 +1,12 @@ +//// [tests/cases/conformance/es6/modules/multipleDefaultExports04.ts] //// + +=== multipleDefaultExports04.ts === +export default function f() { +>f : () => void +> : ^^^^^^^^^^ +} + +export default function f() { +>f : () => void +> : ^^^^^^^^^^ +} diff --git a/tests/baselines/reference/multipleDefaultExports05.errors.txt b/tests/baselines/reference/multipleDefaultExports05(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/multipleDefaultExports05.errors.txt rename to tests/baselines/reference/multipleDefaultExports05(target=es2015).errors.txt diff --git a/tests/baselines/reference/multipleDefaultExports05(target=es2015).js b/tests/baselines/reference/multipleDefaultExports05(target=es2015).js new file mode 100644 index 0000000000000..402f2a06bb9a8 --- /dev/null +++ b/tests/baselines/reference/multipleDefaultExports05(target=es2015).js @@ -0,0 +1,22 @@ +//// [tests/cases/conformance/es6/modules/multipleDefaultExports05.ts] //// + +//// [multipleDefaultExports05.ts] +export default class AA1 {} + +export default class BB1 {} + +export default class CC1 {} + + +//// [multipleDefaultExports05.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +class AA1 { +} +exports.default = AA1; +class BB1 { +} +exports.default = BB1; +class CC1 { +} +exports.default = CC1; diff --git a/tests/baselines/reference/multipleDefaultExports05.symbols b/tests/baselines/reference/multipleDefaultExports05(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/multipleDefaultExports05.symbols rename to tests/baselines/reference/multipleDefaultExports05(target=es2015).symbols diff --git a/tests/baselines/reference/multipleDefaultExports05.types b/tests/baselines/reference/multipleDefaultExports05(target=es2015).types similarity index 100% rename from tests/baselines/reference/multipleDefaultExports05.types rename to tests/baselines/reference/multipleDefaultExports05(target=es2015).types diff --git a/tests/baselines/reference/multipleDefaultExports05(target=es5).errors.txt b/tests/baselines/reference/multipleDefaultExports05(target=es5).errors.txt new file mode 100644 index 0000000000000..3f07b6e127951 --- /dev/null +++ b/tests/baselines/reference/multipleDefaultExports05(target=es5).errors.txt @@ -0,0 +1,21 @@ +multipleDefaultExports05.ts(1,22): error TS2528: A module cannot have multiple default exports. +multipleDefaultExports05.ts(3,22): error TS2528: A module cannot have multiple default exports. +multipleDefaultExports05.ts(5,22): error TS2528: A module cannot have multiple default exports. + + +==== multipleDefaultExports05.ts (3 errors) ==== + export default class AA1 {} + ~~~ +!!! error TS2528: A module cannot have multiple default exports. +!!! related TS2753 multipleDefaultExports05.ts:3:22: Another export default is here. + + export default class BB1 {} + ~~~ +!!! error TS2528: A module cannot have multiple default exports. +!!! related TS2752 multipleDefaultExports05.ts:1:22: The first export default is here. + + export default class CC1 {} + ~~~ +!!! error TS2528: A module cannot have multiple default exports. +!!! related TS2752 multipleDefaultExports05.ts:1:22: The first export default is here. + \ No newline at end of file diff --git a/tests/baselines/reference/multipleDefaultExports05.js b/tests/baselines/reference/multipleDefaultExports05(target=es5).js similarity index 100% rename from tests/baselines/reference/multipleDefaultExports05.js rename to tests/baselines/reference/multipleDefaultExports05(target=es5).js diff --git a/tests/baselines/reference/multipleDefaultExports05(target=es5).symbols b/tests/baselines/reference/multipleDefaultExports05(target=es5).symbols new file mode 100644 index 0000000000000..46e913756db36 --- /dev/null +++ b/tests/baselines/reference/multipleDefaultExports05(target=es5).symbols @@ -0,0 +1,12 @@ +//// [tests/cases/conformance/es6/modules/multipleDefaultExports05.ts] //// + +=== multipleDefaultExports05.ts === +export default class AA1 {} +>AA1 : Symbol(AA1, Decl(multipleDefaultExports05.ts, 0, 0)) + +export default class BB1 {} +>BB1 : Symbol(BB1, Decl(multipleDefaultExports05.ts, 0, 27)) + +export default class CC1 {} +>CC1 : Symbol(CC1, Decl(multipleDefaultExports05.ts, 2, 27)) + diff --git a/tests/baselines/reference/multipleDefaultExports05(target=es5).types b/tests/baselines/reference/multipleDefaultExports05(target=es5).types new file mode 100644 index 0000000000000..c4a83d0ffd13d --- /dev/null +++ b/tests/baselines/reference/multipleDefaultExports05(target=es5).types @@ -0,0 +1,15 @@ +//// [tests/cases/conformance/es6/modules/multipleDefaultExports05.ts] //// + +=== multipleDefaultExports05.ts === +export default class AA1 {} +>AA1 : AA1 +> : ^^^ + +export default class BB1 {} +>BB1 : import("multipleDefaultExports05").default +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +export default class CC1 {} +>CC1 : import("multipleDefaultExports05").default +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + diff --git a/tests/baselines/reference/nestedLoopWithOnlyInnerLetCaptured(target=es2015).js b/tests/baselines/reference/nestedLoopWithOnlyInnerLetCaptured(target=es2015).js new file mode 100644 index 0000000000000..8f2dc0ec12118 --- /dev/null +++ b/tests/baselines/reference/nestedLoopWithOnlyInnerLetCaptured(target=es2015).js @@ -0,0 +1,13 @@ +//// [tests/cases/compiler/nestedLoopWithOnlyInnerLetCaptured.ts] //// + +//// [nestedLoopWithOnlyInnerLetCaptured.ts] +declare let doSomething; + +for (let a1 of []) + for (let a2 of a1.someArray) + doSomething(() => a2); + +//// [nestedLoopWithOnlyInnerLetCaptured.js] +for (let a1 of []) + for (let a2 of a1.someArray) + doSomething(() => a2); diff --git a/tests/baselines/reference/nestedLoopWithOnlyInnerLetCaptured.symbols b/tests/baselines/reference/nestedLoopWithOnlyInnerLetCaptured(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/nestedLoopWithOnlyInnerLetCaptured.symbols rename to tests/baselines/reference/nestedLoopWithOnlyInnerLetCaptured(target=es2015).symbols diff --git a/tests/baselines/reference/nestedLoopWithOnlyInnerLetCaptured.types b/tests/baselines/reference/nestedLoopWithOnlyInnerLetCaptured(target=es2015).types similarity index 100% rename from tests/baselines/reference/nestedLoopWithOnlyInnerLetCaptured.types rename to tests/baselines/reference/nestedLoopWithOnlyInnerLetCaptured(target=es2015).types diff --git a/tests/baselines/reference/nestedLoopWithOnlyInnerLetCaptured.js b/tests/baselines/reference/nestedLoopWithOnlyInnerLetCaptured(target=es5).js similarity index 100% rename from tests/baselines/reference/nestedLoopWithOnlyInnerLetCaptured.js rename to tests/baselines/reference/nestedLoopWithOnlyInnerLetCaptured(target=es5).js diff --git a/tests/baselines/reference/nestedLoopWithOnlyInnerLetCaptured(target=es5).symbols b/tests/baselines/reference/nestedLoopWithOnlyInnerLetCaptured(target=es5).symbols new file mode 100644 index 0000000000000..77586c42141bc --- /dev/null +++ b/tests/baselines/reference/nestedLoopWithOnlyInnerLetCaptured(target=es5).symbols @@ -0,0 +1,17 @@ +//// [tests/cases/compiler/nestedLoopWithOnlyInnerLetCaptured.ts] //// + +=== nestedLoopWithOnlyInnerLetCaptured.ts === +declare let doSomething; +>doSomething : Symbol(doSomething, Decl(nestedLoopWithOnlyInnerLetCaptured.ts, 0, 11)) + +for (let a1 of []) +>a1 : Symbol(a1, Decl(nestedLoopWithOnlyInnerLetCaptured.ts, 2, 8)) + + for (let a2 of a1.someArray) +>a2 : Symbol(a2, Decl(nestedLoopWithOnlyInnerLetCaptured.ts, 3, 12)) +>a1 : Symbol(a1, Decl(nestedLoopWithOnlyInnerLetCaptured.ts, 2, 8)) + + doSomething(() => a2); +>doSomething : Symbol(doSomething, Decl(nestedLoopWithOnlyInnerLetCaptured.ts, 0, 11)) +>a2 : Symbol(a2, Decl(nestedLoopWithOnlyInnerLetCaptured.ts, 3, 12)) + diff --git a/tests/baselines/reference/nestedLoopWithOnlyInnerLetCaptured(target=es5).types b/tests/baselines/reference/nestedLoopWithOnlyInnerLetCaptured(target=es5).types new file mode 100644 index 0000000000000..bf98dd109001b --- /dev/null +++ b/tests/baselines/reference/nestedLoopWithOnlyInnerLetCaptured(target=es5).types @@ -0,0 +1,26 @@ +//// [tests/cases/compiler/nestedLoopWithOnlyInnerLetCaptured.ts] //// + +=== nestedLoopWithOnlyInnerLetCaptured.ts === +declare let doSomething; +>doSomething : any + +for (let a1 of []) +>a1 : any +>[] : undefined[] +> : ^^^^^^^^^^^ + + for (let a2 of a1.someArray) +>a2 : any +>a1.someArray : any +>a1 : any +> : ^^^ +>someArray : any +> : ^^^ + + doSomething(() => a2); +>doSomething(() => a2) : any +>doSomething : any +>() => a2 : () => any +> : ^^^^^^^^^ +>a2 : any + diff --git a/tests/baselines/reference/nestedLoops(target=es2015).js b/tests/baselines/reference/nestedLoops(target=es2015).js new file mode 100644 index 0000000000000..39572881dd0e4 --- /dev/null +++ b/tests/baselines/reference/nestedLoops(target=es2015).js @@ -0,0 +1,36 @@ +//// [tests/cases/compiler/nestedLoops.ts] //// + +//// [nestedLoops.ts] +export class Test { + constructor() { + + let outerArray: Array = [1, 2, 3]; + let innerArray: Array = [1, 2, 3]; + + for (let outer of outerArray) + for (let inner of innerArray) { + this.aFunction((newValue, oldValue) => { + let x = outer + inner + newValue; + }); + } + } + + public aFunction(func: (newValue: any, oldValue: any) => void): void { + } +} + +//// [nestedLoops.js] +export class Test { + constructor() { + let outerArray = [1, 2, 3]; + let innerArray = [1, 2, 3]; + for (let outer of outerArray) + for (let inner of innerArray) { + this.aFunction((newValue, oldValue) => { + let x = outer + inner + newValue; + }); + } + } + aFunction(func) { + } +} diff --git a/tests/baselines/reference/nestedLoops.symbols b/tests/baselines/reference/nestedLoops(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/nestedLoops.symbols rename to tests/baselines/reference/nestedLoops(target=es2015).symbols diff --git a/tests/baselines/reference/nestedLoops.types b/tests/baselines/reference/nestedLoops(target=es2015).types similarity index 100% rename from tests/baselines/reference/nestedLoops.types rename to tests/baselines/reference/nestedLoops(target=es2015).types diff --git a/tests/baselines/reference/nestedLoops.js b/tests/baselines/reference/nestedLoops(target=es5).js similarity index 100% rename from tests/baselines/reference/nestedLoops.js rename to tests/baselines/reference/nestedLoops(target=es5).js diff --git a/tests/baselines/reference/nestedLoops(target=es5).symbols b/tests/baselines/reference/nestedLoops(target=es5).symbols new file mode 100644 index 0000000000000..0d0e0539427a2 --- /dev/null +++ b/tests/baselines/reference/nestedLoops(target=es5).symbols @@ -0,0 +1,48 @@ +//// [tests/cases/compiler/nestedLoops.ts] //// + +=== nestedLoops.ts === +export class Test { +>Test : Symbol(Test, Decl(nestedLoops.ts, 0, 0)) + + constructor() { + + let outerArray: Array = [1, 2, 3]; +>outerArray : Symbol(outerArray, Decl(nestedLoops.ts, 3, 11)) +>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + + let innerArray: Array = [1, 2, 3]; +>innerArray : Symbol(innerArray, Decl(nestedLoops.ts, 4, 11)) +>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + + for (let outer of outerArray) +>outer : Symbol(outer, Decl(nestedLoops.ts, 6, 16)) +>outerArray : Symbol(outerArray, Decl(nestedLoops.ts, 3, 11)) + + for (let inner of innerArray) { +>inner : Symbol(inner, Decl(nestedLoops.ts, 7, 20)) +>innerArray : Symbol(innerArray, Decl(nestedLoops.ts, 4, 11)) + + this.aFunction((newValue, oldValue) => { +>this.aFunction : Symbol(Test.aFunction, Decl(nestedLoops.ts, 12, 5)) +>this : Symbol(Test, Decl(nestedLoops.ts, 0, 0)) +>aFunction : Symbol(Test.aFunction, Decl(nestedLoops.ts, 12, 5)) +>newValue : Symbol(newValue, Decl(nestedLoops.ts, 8, 32)) +>oldValue : Symbol(oldValue, Decl(nestedLoops.ts, 8, 41)) + + let x = outer + inner + newValue; +>x : Symbol(x, Decl(nestedLoops.ts, 9, 23)) +>outer : Symbol(outer, Decl(nestedLoops.ts, 6, 16)) +>inner : Symbol(inner, Decl(nestedLoops.ts, 7, 20)) +>newValue : Symbol(newValue, Decl(nestedLoops.ts, 8, 32)) + + }); + } + } + + public aFunction(func: (newValue: any, oldValue: any) => void): void { +>aFunction : Symbol(Test.aFunction, Decl(nestedLoops.ts, 12, 5)) +>func : Symbol(func, Decl(nestedLoops.ts, 14, 21)) +>newValue : Symbol(newValue, Decl(nestedLoops.ts, 14, 28)) +>oldValue : Symbol(oldValue, Decl(nestedLoops.ts, 14, 42)) + } +} diff --git a/tests/baselines/reference/nestedLoops(target=es5).types b/tests/baselines/reference/nestedLoops(target=es5).types new file mode 100644 index 0000000000000..a762de1050d43 --- /dev/null +++ b/tests/baselines/reference/nestedLoops(target=es5).types @@ -0,0 +1,83 @@ +//// [tests/cases/compiler/nestedLoops.ts] //// + +=== nestedLoops.ts === +export class Test { +>Test : Test +> : ^^^^ + + constructor() { + + let outerArray: Array = [1, 2, 3]; +>outerArray : number[] +> : ^^^^^^^^ +>[1, 2, 3] : number[] +> : ^^^^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ +>3 : 3 +> : ^ + + let innerArray: Array = [1, 2, 3]; +>innerArray : number[] +> : ^^^^^^^^ +>[1, 2, 3] : number[] +> : ^^^^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ +>3 : 3 +> : ^ + + for (let outer of outerArray) +>outer : number +> : ^^^^^^ +>outerArray : number[] +> : ^^^^^^^^ + + for (let inner of innerArray) { +>inner : number +> : ^^^^^^ +>innerArray : number[] +> : ^^^^^^^^ + + this.aFunction((newValue, oldValue) => { +>this.aFunction((newValue, oldValue) => { let x = outer + inner + newValue; }) : void +> : ^^^^ +>this.aFunction : (func: (newValue: any, oldValue: any) => void) => void +> : ^ ^^ ^^^^^ +>this : this +> : ^^^^ +>aFunction : (func: (newValue: any, oldValue: any) => void) => void +> : ^ ^^ ^^^^^ +>(newValue, oldValue) => { let x = outer + inner + newValue; } : (newValue: any, oldValue: any) => void +> : ^ ^^^^^^^ ^^^^^^^^^^^^^^ +>newValue : any +>oldValue : any + + let x = outer + inner + newValue; +>x : any +>outer + inner + newValue : any +>outer + inner : number +> : ^^^^^^ +>outer : number +> : ^^^^^^ +>inner : number +> : ^^^^^^ +>newValue : any + + }); + } + } + + public aFunction(func: (newValue: any, oldValue: any) => void): void { +>aFunction : (func: (newValue: any, oldValue: any) => void) => void +> : ^ ^^ ^^^^^ +>func : (newValue: any, oldValue: any) => void +> : ^ ^^ ^^ ^^ ^^^^^ +>newValue : any +>oldValue : any + } +} diff --git a/tests/baselines/reference/nestedSuperCallEmit(target=es2015).js b/tests/baselines/reference/nestedSuperCallEmit(target=es2015).js new file mode 100644 index 0000000000000..030b5f3802a36 --- /dev/null +++ b/tests/baselines/reference/nestedSuperCallEmit(target=es2015).js @@ -0,0 +1,54 @@ +//// [tests/cases/compiler/nestedSuperCallEmit.ts] //// + +//// [nestedSuperCallEmit.ts] +// https://github.com/microsoft/TypeScript/issues/55646 +abstract class Foo { + constructor(shouldThrow: boolean) { + if (shouldThrow) { + throw new Error('Please retry'); + } else { + console.log('OK'); + } + } +} + +class Bar extends Foo { + constructor() { + try { + super(true); + } catch (e: unknown) { + console.log('Error: ' + (e as Error).message); + // retry + super(false); + } + } +} + +new Bar(); + + +//// [nestedSuperCallEmit.js] +// https://github.com/microsoft/TypeScript/issues/55646 +class Foo { + constructor(shouldThrow) { + if (shouldThrow) { + throw new Error('Please retry'); + } + else { + console.log('OK'); + } + } +} +class Bar extends Foo { + constructor() { + try { + super(true); + } + catch (e) { + console.log('Error: ' + e.message); + // retry + super(false); + } + } +} +new Bar(); diff --git a/tests/baselines/reference/nestedSuperCallEmit.js b/tests/baselines/reference/nestedSuperCallEmit(target=es5).js similarity index 100% rename from tests/baselines/reference/nestedSuperCallEmit.js rename to tests/baselines/reference/nestedSuperCallEmit(target=es5).js diff --git a/tests/baselines/reference/newLexicalEnvironmentForConvertedLoop(target=es2015).js b/tests/baselines/reference/newLexicalEnvironmentForConvertedLoop(target=es2015).js new file mode 100644 index 0000000000000..df001ea48d920 --- /dev/null +++ b/tests/baselines/reference/newLexicalEnvironmentForConvertedLoop(target=es2015).js @@ -0,0 +1,28 @@ +//// [tests/cases/compiler/newLexicalEnvironmentForConvertedLoop.ts] //// + +//// [newLexicalEnvironmentForConvertedLoop.ts] +function baz(x: any) { + return [[x, x]]; +} + +function foo(set: any) { + for (const [value, i] of baz(set.values)) { + const bar: any = []; + (() => bar); + + set.values.push(...[]); + } +}; + +//// [newLexicalEnvironmentForConvertedLoop.js] +function baz(x) { + return [[x, x]]; +} +function foo(set) { + for (const [value, i] of baz(set.values)) { + const bar = []; + (() => bar); + set.values.push(...[]); + } +} +; diff --git a/tests/baselines/reference/newLexicalEnvironmentForConvertedLoop.symbols b/tests/baselines/reference/newLexicalEnvironmentForConvertedLoop(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/newLexicalEnvironmentForConvertedLoop.symbols rename to tests/baselines/reference/newLexicalEnvironmentForConvertedLoop(target=es2015).symbols diff --git a/tests/baselines/reference/newLexicalEnvironmentForConvertedLoop.types b/tests/baselines/reference/newLexicalEnvironmentForConvertedLoop(target=es2015).types similarity index 100% rename from tests/baselines/reference/newLexicalEnvironmentForConvertedLoop.types rename to tests/baselines/reference/newLexicalEnvironmentForConvertedLoop(target=es2015).types diff --git a/tests/baselines/reference/newLexicalEnvironmentForConvertedLoop.js b/tests/baselines/reference/newLexicalEnvironmentForConvertedLoop(target=es5).js similarity index 100% rename from tests/baselines/reference/newLexicalEnvironmentForConvertedLoop.js rename to tests/baselines/reference/newLexicalEnvironmentForConvertedLoop(target=es5).js diff --git a/tests/baselines/reference/newLexicalEnvironmentForConvertedLoop(target=es5).symbols b/tests/baselines/reference/newLexicalEnvironmentForConvertedLoop(target=es5).symbols new file mode 100644 index 0000000000000..bc6e0fd813553 --- /dev/null +++ b/tests/baselines/reference/newLexicalEnvironmentForConvertedLoop(target=es5).symbols @@ -0,0 +1,32 @@ +//// [tests/cases/compiler/newLexicalEnvironmentForConvertedLoop.ts] //// + +=== newLexicalEnvironmentForConvertedLoop.ts === +function baz(x: any) { +>baz : Symbol(baz, Decl(newLexicalEnvironmentForConvertedLoop.ts, 0, 0)) +>x : Symbol(x, Decl(newLexicalEnvironmentForConvertedLoop.ts, 0, 13)) + + return [[x, x]]; +>x : Symbol(x, Decl(newLexicalEnvironmentForConvertedLoop.ts, 0, 13)) +>x : Symbol(x, Decl(newLexicalEnvironmentForConvertedLoop.ts, 0, 13)) +} + +function foo(set: any) { +>foo : Symbol(foo, Decl(newLexicalEnvironmentForConvertedLoop.ts, 2, 1)) +>set : Symbol(set, Decl(newLexicalEnvironmentForConvertedLoop.ts, 4, 13)) + + for (const [value, i] of baz(set.values)) { +>value : Symbol(value, Decl(newLexicalEnvironmentForConvertedLoop.ts, 5, 14)) +>i : Symbol(i, Decl(newLexicalEnvironmentForConvertedLoop.ts, 5, 20)) +>baz : Symbol(baz, Decl(newLexicalEnvironmentForConvertedLoop.ts, 0, 0)) +>set : Symbol(set, Decl(newLexicalEnvironmentForConvertedLoop.ts, 4, 13)) + + const bar: any = []; +>bar : Symbol(bar, Decl(newLexicalEnvironmentForConvertedLoop.ts, 6, 9)) + + (() => bar); +>bar : Symbol(bar, Decl(newLexicalEnvironmentForConvertedLoop.ts, 6, 9)) + + set.values.push(...[]); +>set : Symbol(set, Decl(newLexicalEnvironmentForConvertedLoop.ts, 4, 13)) + } +}; diff --git a/tests/baselines/reference/newLexicalEnvironmentForConvertedLoop(target=es5).types b/tests/baselines/reference/newLexicalEnvironmentForConvertedLoop(target=es5).types new file mode 100644 index 0000000000000..1f0680f3fb7de --- /dev/null +++ b/tests/baselines/reference/newLexicalEnvironmentForConvertedLoop(target=es5).types @@ -0,0 +1,66 @@ +//// [tests/cases/compiler/newLexicalEnvironmentForConvertedLoop.ts] //// + +=== newLexicalEnvironmentForConvertedLoop.ts === +function baz(x: any) { +>baz : (x: any) => any[][] +> : ^ ^^ ^^^^^^^^^^^^ +>x : any + + return [[x, x]]; +>[[x, x]] : any[][] +> : ^^^^^^^ +>[x, x] : any[] +> : ^^^^^ +>x : any +>x : any +} + +function foo(set: any) { +>foo : (set: any) => void +> : ^ ^^ ^^^^^^^^^ +>set : any + + for (const [value, i] of baz(set.values)) { +>value : any +> : ^^^ +>i : any +> : ^^^ +>baz(set.values) : any[][] +> : ^^^^^^^ +>baz : (x: any) => any[][] +> : ^ ^^ ^^^^^^^^^^^^ +>set.values : any +>set : any +> : ^^^ +>values : any +> : ^^^ + + const bar: any = []; +>bar : any +>[] : undefined[] +> : ^^^^^^^^^^^ + + (() => bar); +>(() => bar) : () => any +> : ^^^^^^^^^ +>() => bar : () => any +> : ^^^^^^^^^ +>bar : any + + set.values.push(...[]); +>set.values.push(...[]) : any +>set.values.push : any +>set.values : any +> : ^^^ +>set : any +> : ^^^ +>values : any +> : ^^^ +>push : any +> : ^^^ +>...[] : never +> : ^^^^^ +>[] : [] +> : ^^ + } +}; diff --git a/tests/baselines/reference/newTarget.es5(target=es2015).js b/tests/baselines/reference/newTarget.es5(target=es2015).js new file mode 100644 index 0000000000000..71e6a571140f6 --- /dev/null +++ b/tests/baselines/reference/newTarget.es5(target=es2015).js @@ -0,0 +1,63 @@ +//// [tests/cases/conformance/es6/newTarget/newTarget.es5.ts] //// + +//// [newTarget.es5.ts] +class A { + constructor() { + const a = new.target; + const b = () => new.target; + } + static c = function () { return new.target; } + d = function () { return new.target; } +} + +class B extends A { + constructor() { + super(); + const e = new.target; + const f = () => new.target; + } +} + +function f1() { + const g = new.target; + const h = () => new.target; +} + +const f2 = function () { + const i = new.target; + const j = () => new.target; +} + +const O = { + k: function () { return new.target; } +}; + + + +//// [newTarget.es5.js] +class A { + constructor() { + this.d = function () { return new.target; }; + const a = new.target; + const b = () => new.target; + } +} +A.c = function () { return new.target; }; +class B extends A { + constructor() { + super(); + const e = new.target; + const f = () => new.target; + } +} +function f1() { + const g = new.target; + const h = () => new.target; +} +const f2 = function () { + const i = new.target; + const j = () => new.target; +}; +const O = { + k: function () { return new.target; } +}; diff --git a/tests/baselines/reference/newTarget.es5.symbols b/tests/baselines/reference/newTarget.es5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/newTarget.es5.symbols rename to tests/baselines/reference/newTarget.es5(target=es2015).symbols diff --git a/tests/baselines/reference/newTarget.es5.types b/tests/baselines/reference/newTarget.es5(target=es2015).types similarity index 100% rename from tests/baselines/reference/newTarget.es5.types rename to tests/baselines/reference/newTarget.es5(target=es2015).types diff --git a/tests/baselines/reference/newTarget.es5.js b/tests/baselines/reference/newTarget.es5(target=es5).js similarity index 100% rename from tests/baselines/reference/newTarget.es5.js rename to tests/baselines/reference/newTarget.es5(target=es5).js diff --git a/tests/baselines/reference/newTarget.es5(target=es5).symbols b/tests/baselines/reference/newTarget.es5(target=es5).symbols new file mode 100644 index 0000000000000..bcb04c3677d45 --- /dev/null +++ b/tests/baselines/reference/newTarget.es5(target=es5).symbols @@ -0,0 +1,87 @@ +//// [tests/cases/conformance/es6/newTarget/newTarget.es5.ts] //// + +=== newTarget.es5.ts === +class A { +>A : Symbol(A, Decl(newTarget.es5.ts, 0, 0)) + + constructor() { + const a = new.target; +>a : Symbol(a, Decl(newTarget.es5.ts, 2, 13)) +>new.target : Symbol(A, Decl(newTarget.es5.ts, 0, 0)) +>target : Symbol(A, Decl(newTarget.es5.ts, 0, 0)) + + const b = () => new.target; +>b : Symbol(b, Decl(newTarget.es5.ts, 3, 13)) +>new.target : Symbol(A, Decl(newTarget.es5.ts, 0, 0)) +>target : Symbol(A, Decl(newTarget.es5.ts, 0, 0)) + } + static c = function () { return new.target; } +>c : Symbol(A.c, Decl(newTarget.es5.ts, 4, 5)) +>new.target : Symbol((Anonymous function), Decl(newTarget.es5.ts, 5, 14)) +>target : Symbol((Anonymous function), Decl(newTarget.es5.ts, 5, 14)) + + d = function () { return new.target; } +>d : Symbol(A.d, Decl(newTarget.es5.ts, 5, 49)) +>new.target : Symbol((Anonymous function), Decl(newTarget.es5.ts, 6, 7)) +>target : Symbol((Anonymous function), Decl(newTarget.es5.ts, 6, 7)) +} + +class B extends A { +>B : Symbol(B, Decl(newTarget.es5.ts, 7, 1)) +>A : Symbol(A, Decl(newTarget.es5.ts, 0, 0)) + + constructor() { + super(); +>super : Symbol(A, Decl(newTarget.es5.ts, 0, 0)) + + const e = new.target; +>e : Symbol(e, Decl(newTarget.es5.ts, 12, 13)) +>new.target : Symbol(B, Decl(newTarget.es5.ts, 7, 1)) +>target : Symbol(B, Decl(newTarget.es5.ts, 7, 1)) + + const f = () => new.target; +>f : Symbol(f, Decl(newTarget.es5.ts, 13, 13)) +>new.target : Symbol(B, Decl(newTarget.es5.ts, 7, 1)) +>target : Symbol(B, Decl(newTarget.es5.ts, 7, 1)) + } +} + +function f1() { +>f1 : Symbol(f1, Decl(newTarget.es5.ts, 15, 1)) + + const g = new.target; +>g : Symbol(g, Decl(newTarget.es5.ts, 18, 9)) +>new.target : Symbol(f1, Decl(newTarget.es5.ts, 15, 1)) +>target : Symbol(f1, Decl(newTarget.es5.ts, 15, 1)) + + const h = () => new.target; +>h : Symbol(h, Decl(newTarget.es5.ts, 19, 9)) +>new.target : Symbol(f1, Decl(newTarget.es5.ts, 15, 1)) +>target : Symbol(f1, Decl(newTarget.es5.ts, 15, 1)) +} + +const f2 = function () { +>f2 : Symbol(f2, Decl(newTarget.es5.ts, 22, 5)) + + const i = new.target; +>i : Symbol(i, Decl(newTarget.es5.ts, 23, 9)) +>new.target : Symbol(f2, Decl(newTarget.es5.ts, 22, 10)) +>target : Symbol(f2, Decl(newTarget.es5.ts, 22, 10)) + + const j = () => new.target; +>j : Symbol(j, Decl(newTarget.es5.ts, 24, 9)) +>new.target : Symbol(f2, Decl(newTarget.es5.ts, 22, 10)) +>target : Symbol(f2, Decl(newTarget.es5.ts, 22, 10)) +} + +const O = { +>O : Symbol(O, Decl(newTarget.es5.ts, 27, 5)) + + k: function () { return new.target; } +>k : Symbol(k, Decl(newTarget.es5.ts, 27, 11)) +>new.target : Symbol(k, Decl(newTarget.es5.ts, 28, 6)) +>target : Symbol(k, Decl(newTarget.es5.ts, 28, 6)) + +}; + + diff --git a/tests/baselines/reference/newTarget.es5(target=es5).types b/tests/baselines/reference/newTarget.es5(target=es5).types new file mode 100644 index 0000000000000..a9a4aa0d2c98f --- /dev/null +++ b/tests/baselines/reference/newTarget.es5(target=es5).types @@ -0,0 +1,147 @@ +//// [tests/cases/conformance/es6/newTarget/newTarget.es5.ts] //// + +=== newTarget.es5.ts === +class A { +>A : A +> : ^ + + constructor() { + const a = new.target; +>a : typeof A +> : ^^^^^^^^ +>new.target : typeof A +> : ^^^^^^^^ +>target : typeof A +> : ^^^^^^^^ + + const b = () => new.target; +>b : () => typeof A +> : ^^^^^^^^^^^^^^ +>() => new.target : () => typeof A +> : ^^^^^^^^^^^^^^ +>new.target : typeof A +> : ^^^^^^^^ +>target : typeof A +> : ^^^^^^^^ + } + static c = function () { return new.target; } +>c : () => any +> : ^^^^^^^^^ +>function () { return new.target; } : () => any +> : ^^^^^^^^^ +>new.target : () => any +> : ^^^^^^^^^ +>target : () => any +> : ^^^^^^^^^ + + d = function () { return new.target; } +>d : () => any +> : ^^^^^^^^^ +>function () { return new.target; } : () => any +> : ^^^^^^^^^ +>new.target : () => any +> : ^^^^^^^^^ +>target : () => any +> : ^^^^^^^^^ +} + +class B extends A { +>B : B +> : ^ +>A : A +> : ^ + + constructor() { + super(); +>super() : void +> : ^^^^ +>super : typeof A +> : ^^^^^^^^ + + const e = new.target; +>e : typeof B +> : ^^^^^^^^ +>new.target : typeof B +> : ^^^^^^^^ +>target : typeof B +> : ^^^^^^^^ + + const f = () => new.target; +>f : () => typeof B +> : ^^^^^^^^^^^^^^ +>() => new.target : () => typeof B +> : ^^^^^^^^^^^^^^ +>new.target : typeof B +> : ^^^^^^^^ +>target : typeof B +> : ^^^^^^^^ + } +} + +function f1() { +>f1 : () => void +> : ^^^^^^^^^^ + + const g = new.target; +>g : () => void +> : ^^^^^^^^^^ +>new.target : () => void +> : ^^^^^^^^^^ +>target : () => void +> : ^^^^^^^^^^ + + const h = () => new.target; +>h : () => () => void +> : ^^^^^^^^^^^^^^^^ +>() => new.target : () => () => void +> : ^^^^^^^^^^^^^^^^ +>new.target : () => void +> : ^^^^^^^^^^ +>target : () => void +> : ^^^^^^^^^^ +} + +const f2 = function () { +>f2 : () => void +> : ^^^^^^^^^^ +>function () { const i = new.target; const j = () => new.target;} : () => void +> : ^^^^^^^^^^ + + const i = new.target; +>i : () => void +> : ^^^^^^^^^^ +>new.target : () => void +> : ^^^^^^^^^^ +>target : () => void +> : ^^^^^^^^^^ + + const j = () => new.target; +>j : () => () => void +> : ^^^^^^^^^^^^^^^^ +>() => new.target : () => () => void +> : ^^^^^^^^^^^^^^^^ +>new.target : () => void +> : ^^^^^^^^^^ +>target : () => void +> : ^^^^^^^^^^ +} + +const O = { +>O : { k: () => any; } +> : ^^^^^^^^^^^^^^^^^ +>{ k: function () { return new.target; }} : { k: () => any; } +> : ^^^^^^^^^^^^^^^^^ + + k: function () { return new.target; } +>k : () => any +> : ^^^^^^^^^ +>function () { return new.target; } : () => any +> : ^^^^^^^^^ +>new.target : () => any +> : ^^^^^^^^^ +>target : () => any +> : ^^^^^^^^^ + +}; + + diff --git a/tests/baselines/reference/newWithSpreadES5(target=es2015).js b/tests/baselines/reference/newWithSpreadES5(target=es2015).js new file mode 100644 index 0000000000000..ed45eb34d10cb --- /dev/null +++ b/tests/baselines/reference/newWithSpreadES5(target=es2015).js @@ -0,0 +1,165 @@ +//// [tests/cases/conformance/expressions/functionCalls/newWithSpreadES5.ts] //// + +//// [newWithSpreadES5.ts] +function f(x: number, y: number, ...z: string[]) { +} + +function f2(...x: string[]) {} + +interface A { + f: { + new (x: number, y: number, ...z: string[]); + } +} + +class B { + constructor(x: number, y: number, ...z: string[]) {} +} + +interface C { + "a-b": typeof B; +} + +interface D { + 1: typeof B; +} + +var a: string[]; +var b: A; +var c: C; +var d: A[]; +var e: { [key: string]: A }; +var g: C[]; +var h: { [key: string]: C }; +var i: C[][]; + +// Basic expression +new f(1, 2, "string"); +new f(1, 2, ...a); +new f(1, 2, ...a, "string"); + +// Multiple spreads arguments +new f2(...a, ...a); +new f(1 ,2, ...a, ...a); + +// Call expression +new f(1, 2, "string")(); +new f(1, 2, ...a)(); +new f(1, 2, ...a, "string")(); + +// Property access expression +new b.f(1, 2, "string"); +new b.f(1, 2, ...a); +new b.f(1, 2, ...a, "string"); + +// Parenthesised expression +new (b.f)(1, 2, "string"); +new (b.f)(1, 2, ...a); +new (b.f)(1, 2, ...a, "string"); + +// Element access expression +new d[1].f(1, 2, "string"); +new d[1].f(1, 2, ...a); +new d[1].f(1, 2, ...a, "string"); + +// Element access expression with a punctuated key +new e["a-b"].f(1, 2, "string"); +new e["a-b"].f(1, 2, ...a); +new e["a-b"].f(1, 2, ...a, "string"); + +// Basic expression +new B(1, 2, "string"); +new B(1, 2, ...a); +new B(1, 2, ...a, "string"); + +// Property access expression +new c["a-b"](1, 2, "string"); +new c["a-b"](1, 2, ...a); +new c["a-b"](1, 2, ...a, "string"); + +// Parenthesised expression +new (c["a-b"])(1, 2, "string"); +new (c["a-b"])(1, 2, ...a); +new (c["a-b"])(1, 2, ...a, "string"); + +// Element access expression +new g[1]["a-b"](1, 2, "string"); +new g[1]["a-b"](1, 2, ...a); +new g[1]["a-b"](1, 2, ...a, "string"); + +// Element access expression with a punctuated key +new h["a-b"]["a-b"](1, 2, "string"); +new h["a-b"]["a-b"](1, 2, ...a); +new h["a-b"]["a-b"](1, 2, ...a, "string"); + +// Element access expression with a number +new i["a-b"][1](1, 2, "string"); +new i["a-b"][1](1, 2, ...a); +new i["a-b"][1](1, 2, ...a, "string"); + +//// [newWithSpreadES5.js] +function f(x, y, ...z) { +} +function f2(...x) { } +class B { + constructor(x, y, ...z) { } +} +var a; +var b; +var c; +var d; +var e; +var g; +var h; +var i; +// Basic expression +new f(1, 2, "string"); +new f(1, 2, ...a); +new f(1, 2, ...a, "string"); +// Multiple spreads arguments +new f2(...a, ...a); +new f(1, 2, ...a, ...a); +// Call expression +new f(1, 2, "string")(); +new f(1, 2, ...a)(); +new f(1, 2, ...a, "string")(); +// Property access expression +new b.f(1, 2, "string"); +new b.f(1, 2, ...a); +new b.f(1, 2, ...a, "string"); +// Parenthesised expression +new (b.f)(1, 2, "string"); +new (b.f)(1, 2, ...a); +new (b.f)(1, 2, ...a, "string"); +// Element access expression +new d[1].f(1, 2, "string"); +new d[1].f(1, 2, ...a); +new d[1].f(1, 2, ...a, "string"); +// Element access expression with a punctuated key +new e["a-b"].f(1, 2, "string"); +new e["a-b"].f(1, 2, ...a); +new e["a-b"].f(1, 2, ...a, "string"); +// Basic expression +new B(1, 2, "string"); +new B(1, 2, ...a); +new B(1, 2, ...a, "string"); +// Property access expression +new c["a-b"](1, 2, "string"); +new c["a-b"](1, 2, ...a); +new c["a-b"](1, 2, ...a, "string"); +// Parenthesised expression +new (c["a-b"])(1, 2, "string"); +new (c["a-b"])(1, 2, ...a); +new (c["a-b"])(1, 2, ...a, "string"); +// Element access expression +new g[1]["a-b"](1, 2, "string"); +new g[1]["a-b"](1, 2, ...a); +new g[1]["a-b"](1, 2, ...a, "string"); +// Element access expression with a punctuated key +new h["a-b"]["a-b"](1, 2, "string"); +new h["a-b"]["a-b"](1, 2, ...a); +new h["a-b"]["a-b"](1, 2, ...a, "string"); +// Element access expression with a number +new i["a-b"][1](1, 2, "string"); +new i["a-b"][1](1, 2, ...a); +new i["a-b"][1](1, 2, ...a, "string"); diff --git a/tests/baselines/reference/newWithSpreadES5.symbols b/tests/baselines/reference/newWithSpreadES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/newWithSpreadES5.symbols rename to tests/baselines/reference/newWithSpreadES5(target=es2015).symbols diff --git a/tests/baselines/reference/newWithSpreadES5.types b/tests/baselines/reference/newWithSpreadES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/newWithSpreadES5.types rename to tests/baselines/reference/newWithSpreadES5(target=es2015).types diff --git a/tests/baselines/reference/newWithSpreadES5.js b/tests/baselines/reference/newWithSpreadES5(target=es5).js similarity index 100% rename from tests/baselines/reference/newWithSpreadES5.js rename to tests/baselines/reference/newWithSpreadES5(target=es5).js diff --git a/tests/baselines/reference/newWithSpreadES5(target=es5).symbols b/tests/baselines/reference/newWithSpreadES5(target=es5).symbols new file mode 100644 index 0000000000000..7b45807851692 --- /dev/null +++ b/tests/baselines/reference/newWithSpreadES5(target=es5).symbols @@ -0,0 +1,276 @@ +//// [tests/cases/conformance/expressions/functionCalls/newWithSpreadES5.ts] //// + +=== newWithSpreadES5.ts === +function f(x: number, y: number, ...z: string[]) { +>f : Symbol(f, Decl(newWithSpreadES5.ts, 0, 0)) +>x : Symbol(x, Decl(newWithSpreadES5.ts, 0, 11)) +>y : Symbol(y, Decl(newWithSpreadES5.ts, 0, 21)) +>z : Symbol(z, Decl(newWithSpreadES5.ts, 0, 32)) +} + +function f2(...x: string[]) {} +>f2 : Symbol(f2, Decl(newWithSpreadES5.ts, 1, 1)) +>x : Symbol(x, Decl(newWithSpreadES5.ts, 3, 12)) + +interface A { +>A : Symbol(A, Decl(newWithSpreadES5.ts, 3, 30)) + + f: { +>f : Symbol(A.f, Decl(newWithSpreadES5.ts, 5, 13)) + + new (x: number, y: number, ...z: string[]); +>x : Symbol(x, Decl(newWithSpreadES5.ts, 7, 13)) +>y : Symbol(y, Decl(newWithSpreadES5.ts, 7, 23)) +>z : Symbol(z, Decl(newWithSpreadES5.ts, 7, 34)) + } +} + +class B { +>B : Symbol(B, Decl(newWithSpreadES5.ts, 9, 1)) + + constructor(x: number, y: number, ...z: string[]) {} +>x : Symbol(x, Decl(newWithSpreadES5.ts, 12, 16)) +>y : Symbol(y, Decl(newWithSpreadES5.ts, 12, 26)) +>z : Symbol(z, Decl(newWithSpreadES5.ts, 12, 37)) +} + +interface C { +>C : Symbol(C, Decl(newWithSpreadES5.ts, 13, 1)) + + "a-b": typeof B; +>"a-b" : Symbol(C["a-b"], Decl(newWithSpreadES5.ts, 15, 13)) +>B : Symbol(B, Decl(newWithSpreadES5.ts, 9, 1)) +} + +interface D { +>D : Symbol(D, Decl(newWithSpreadES5.ts, 17, 1)) + + 1: typeof B; +>1 : Symbol(D[1], Decl(newWithSpreadES5.ts, 19, 13)) +>B : Symbol(B, Decl(newWithSpreadES5.ts, 9, 1)) +} + +var a: string[]; +>a : Symbol(a, Decl(newWithSpreadES5.ts, 23, 3)) + +var b: A; +>b : Symbol(b, Decl(newWithSpreadES5.ts, 24, 3)) +>A : Symbol(A, Decl(newWithSpreadES5.ts, 3, 30)) + +var c: C; +>c : Symbol(c, Decl(newWithSpreadES5.ts, 25, 3)) +>C : Symbol(C, Decl(newWithSpreadES5.ts, 13, 1)) + +var d: A[]; +>d : Symbol(d, Decl(newWithSpreadES5.ts, 26, 3)) +>A : Symbol(A, Decl(newWithSpreadES5.ts, 3, 30)) + +var e: { [key: string]: A }; +>e : Symbol(e, Decl(newWithSpreadES5.ts, 27, 3)) +>key : Symbol(key, Decl(newWithSpreadES5.ts, 27, 10)) +>A : Symbol(A, Decl(newWithSpreadES5.ts, 3, 30)) + +var g: C[]; +>g : Symbol(g, Decl(newWithSpreadES5.ts, 28, 3)) +>C : Symbol(C, Decl(newWithSpreadES5.ts, 13, 1)) + +var h: { [key: string]: C }; +>h : Symbol(h, Decl(newWithSpreadES5.ts, 29, 3)) +>key : Symbol(key, Decl(newWithSpreadES5.ts, 29, 10)) +>C : Symbol(C, Decl(newWithSpreadES5.ts, 13, 1)) + +var i: C[][]; +>i : Symbol(i, Decl(newWithSpreadES5.ts, 30, 3)) +>C : Symbol(C, Decl(newWithSpreadES5.ts, 13, 1)) + +// Basic expression +new f(1, 2, "string"); +>f : Symbol(f, Decl(newWithSpreadES5.ts, 0, 0)) + +new f(1, 2, ...a); +>f : Symbol(f, Decl(newWithSpreadES5.ts, 0, 0)) +>a : Symbol(a, Decl(newWithSpreadES5.ts, 23, 3)) + +new f(1, 2, ...a, "string"); +>f : Symbol(f, Decl(newWithSpreadES5.ts, 0, 0)) +>a : Symbol(a, Decl(newWithSpreadES5.ts, 23, 3)) + +// Multiple spreads arguments +new f2(...a, ...a); +>f2 : Symbol(f2, Decl(newWithSpreadES5.ts, 1, 1)) +>a : Symbol(a, Decl(newWithSpreadES5.ts, 23, 3)) +>a : Symbol(a, Decl(newWithSpreadES5.ts, 23, 3)) + +new f(1 ,2, ...a, ...a); +>f : Symbol(f, Decl(newWithSpreadES5.ts, 0, 0)) +>a : Symbol(a, Decl(newWithSpreadES5.ts, 23, 3)) +>a : Symbol(a, Decl(newWithSpreadES5.ts, 23, 3)) + +// Call expression +new f(1, 2, "string")(); +>f : Symbol(f, Decl(newWithSpreadES5.ts, 0, 0)) + +new f(1, 2, ...a)(); +>f : Symbol(f, Decl(newWithSpreadES5.ts, 0, 0)) +>a : Symbol(a, Decl(newWithSpreadES5.ts, 23, 3)) + +new f(1, 2, ...a, "string")(); +>f : Symbol(f, Decl(newWithSpreadES5.ts, 0, 0)) +>a : Symbol(a, Decl(newWithSpreadES5.ts, 23, 3)) + +// Property access expression +new b.f(1, 2, "string"); +>b.f : Symbol(A.f, Decl(newWithSpreadES5.ts, 5, 13)) +>b : Symbol(b, Decl(newWithSpreadES5.ts, 24, 3)) +>f : Symbol(A.f, Decl(newWithSpreadES5.ts, 5, 13)) + +new b.f(1, 2, ...a); +>b.f : Symbol(A.f, Decl(newWithSpreadES5.ts, 5, 13)) +>b : Symbol(b, Decl(newWithSpreadES5.ts, 24, 3)) +>f : Symbol(A.f, Decl(newWithSpreadES5.ts, 5, 13)) +>a : Symbol(a, Decl(newWithSpreadES5.ts, 23, 3)) + +new b.f(1, 2, ...a, "string"); +>b.f : Symbol(A.f, Decl(newWithSpreadES5.ts, 5, 13)) +>b : Symbol(b, Decl(newWithSpreadES5.ts, 24, 3)) +>f : Symbol(A.f, Decl(newWithSpreadES5.ts, 5, 13)) +>a : Symbol(a, Decl(newWithSpreadES5.ts, 23, 3)) + +// Parenthesised expression +new (b.f)(1, 2, "string"); +>b.f : Symbol(A.f, Decl(newWithSpreadES5.ts, 5, 13)) +>b : Symbol(b, Decl(newWithSpreadES5.ts, 24, 3)) +>f : Symbol(A.f, Decl(newWithSpreadES5.ts, 5, 13)) + +new (b.f)(1, 2, ...a); +>b.f : Symbol(A.f, Decl(newWithSpreadES5.ts, 5, 13)) +>b : Symbol(b, Decl(newWithSpreadES5.ts, 24, 3)) +>f : Symbol(A.f, Decl(newWithSpreadES5.ts, 5, 13)) +>a : Symbol(a, Decl(newWithSpreadES5.ts, 23, 3)) + +new (b.f)(1, 2, ...a, "string"); +>b.f : Symbol(A.f, Decl(newWithSpreadES5.ts, 5, 13)) +>b : Symbol(b, Decl(newWithSpreadES5.ts, 24, 3)) +>f : Symbol(A.f, Decl(newWithSpreadES5.ts, 5, 13)) +>a : Symbol(a, Decl(newWithSpreadES5.ts, 23, 3)) + +// Element access expression +new d[1].f(1, 2, "string"); +>d[1].f : Symbol(A.f, Decl(newWithSpreadES5.ts, 5, 13)) +>d : Symbol(d, Decl(newWithSpreadES5.ts, 26, 3)) +>f : Symbol(A.f, Decl(newWithSpreadES5.ts, 5, 13)) + +new d[1].f(1, 2, ...a); +>d[1].f : Symbol(A.f, Decl(newWithSpreadES5.ts, 5, 13)) +>d : Symbol(d, Decl(newWithSpreadES5.ts, 26, 3)) +>f : Symbol(A.f, Decl(newWithSpreadES5.ts, 5, 13)) +>a : Symbol(a, Decl(newWithSpreadES5.ts, 23, 3)) + +new d[1].f(1, 2, ...a, "string"); +>d[1].f : Symbol(A.f, Decl(newWithSpreadES5.ts, 5, 13)) +>d : Symbol(d, Decl(newWithSpreadES5.ts, 26, 3)) +>f : Symbol(A.f, Decl(newWithSpreadES5.ts, 5, 13)) +>a : Symbol(a, Decl(newWithSpreadES5.ts, 23, 3)) + +// Element access expression with a punctuated key +new e["a-b"].f(1, 2, "string"); +>e["a-b"].f : Symbol(A.f, Decl(newWithSpreadES5.ts, 5, 13)) +>e : Symbol(e, Decl(newWithSpreadES5.ts, 27, 3)) +>f : Symbol(A.f, Decl(newWithSpreadES5.ts, 5, 13)) + +new e["a-b"].f(1, 2, ...a); +>e["a-b"].f : Symbol(A.f, Decl(newWithSpreadES5.ts, 5, 13)) +>e : Symbol(e, Decl(newWithSpreadES5.ts, 27, 3)) +>f : Symbol(A.f, Decl(newWithSpreadES5.ts, 5, 13)) +>a : Symbol(a, Decl(newWithSpreadES5.ts, 23, 3)) + +new e["a-b"].f(1, 2, ...a, "string"); +>e["a-b"].f : Symbol(A.f, Decl(newWithSpreadES5.ts, 5, 13)) +>e : Symbol(e, Decl(newWithSpreadES5.ts, 27, 3)) +>f : Symbol(A.f, Decl(newWithSpreadES5.ts, 5, 13)) +>a : Symbol(a, Decl(newWithSpreadES5.ts, 23, 3)) + +// Basic expression +new B(1, 2, "string"); +>B : Symbol(B, Decl(newWithSpreadES5.ts, 9, 1)) + +new B(1, 2, ...a); +>B : Symbol(B, Decl(newWithSpreadES5.ts, 9, 1)) +>a : Symbol(a, Decl(newWithSpreadES5.ts, 23, 3)) + +new B(1, 2, ...a, "string"); +>B : Symbol(B, Decl(newWithSpreadES5.ts, 9, 1)) +>a : Symbol(a, Decl(newWithSpreadES5.ts, 23, 3)) + +// Property access expression +new c["a-b"](1, 2, "string"); +>c : Symbol(c, Decl(newWithSpreadES5.ts, 25, 3)) +>"a-b" : Symbol(C["a-b"], Decl(newWithSpreadES5.ts, 15, 13)) + +new c["a-b"](1, 2, ...a); +>c : Symbol(c, Decl(newWithSpreadES5.ts, 25, 3)) +>"a-b" : Symbol(C["a-b"], Decl(newWithSpreadES5.ts, 15, 13)) +>a : Symbol(a, Decl(newWithSpreadES5.ts, 23, 3)) + +new c["a-b"](1, 2, ...a, "string"); +>c : Symbol(c, Decl(newWithSpreadES5.ts, 25, 3)) +>"a-b" : Symbol(C["a-b"], Decl(newWithSpreadES5.ts, 15, 13)) +>a : Symbol(a, Decl(newWithSpreadES5.ts, 23, 3)) + +// Parenthesised expression +new (c["a-b"])(1, 2, "string"); +>c : Symbol(c, Decl(newWithSpreadES5.ts, 25, 3)) +>"a-b" : Symbol(C["a-b"], Decl(newWithSpreadES5.ts, 15, 13)) + +new (c["a-b"])(1, 2, ...a); +>c : Symbol(c, Decl(newWithSpreadES5.ts, 25, 3)) +>"a-b" : Symbol(C["a-b"], Decl(newWithSpreadES5.ts, 15, 13)) +>a : Symbol(a, Decl(newWithSpreadES5.ts, 23, 3)) + +new (c["a-b"])(1, 2, ...a, "string"); +>c : Symbol(c, Decl(newWithSpreadES5.ts, 25, 3)) +>"a-b" : Symbol(C["a-b"], Decl(newWithSpreadES5.ts, 15, 13)) +>a : Symbol(a, Decl(newWithSpreadES5.ts, 23, 3)) + +// Element access expression +new g[1]["a-b"](1, 2, "string"); +>g : Symbol(g, Decl(newWithSpreadES5.ts, 28, 3)) +>"a-b" : Symbol(C["a-b"], Decl(newWithSpreadES5.ts, 15, 13)) + +new g[1]["a-b"](1, 2, ...a); +>g : Symbol(g, Decl(newWithSpreadES5.ts, 28, 3)) +>"a-b" : Symbol(C["a-b"], Decl(newWithSpreadES5.ts, 15, 13)) +>a : Symbol(a, Decl(newWithSpreadES5.ts, 23, 3)) + +new g[1]["a-b"](1, 2, ...a, "string"); +>g : Symbol(g, Decl(newWithSpreadES5.ts, 28, 3)) +>"a-b" : Symbol(C["a-b"], Decl(newWithSpreadES5.ts, 15, 13)) +>a : Symbol(a, Decl(newWithSpreadES5.ts, 23, 3)) + +// Element access expression with a punctuated key +new h["a-b"]["a-b"](1, 2, "string"); +>h : Symbol(h, Decl(newWithSpreadES5.ts, 29, 3)) +>"a-b" : Symbol(C["a-b"], Decl(newWithSpreadES5.ts, 15, 13)) + +new h["a-b"]["a-b"](1, 2, ...a); +>h : Symbol(h, Decl(newWithSpreadES5.ts, 29, 3)) +>"a-b" : Symbol(C["a-b"], Decl(newWithSpreadES5.ts, 15, 13)) +>a : Symbol(a, Decl(newWithSpreadES5.ts, 23, 3)) + +new h["a-b"]["a-b"](1, 2, ...a, "string"); +>h : Symbol(h, Decl(newWithSpreadES5.ts, 29, 3)) +>"a-b" : Symbol(C["a-b"], Decl(newWithSpreadES5.ts, 15, 13)) +>a : Symbol(a, Decl(newWithSpreadES5.ts, 23, 3)) + +// Element access expression with a number +new i["a-b"][1](1, 2, "string"); +>i : Symbol(i, Decl(newWithSpreadES5.ts, 30, 3)) + +new i["a-b"][1](1, 2, ...a); +>i : Symbol(i, Decl(newWithSpreadES5.ts, 30, 3)) +>a : Symbol(a, Decl(newWithSpreadES5.ts, 23, 3)) + +new i["a-b"][1](1, 2, ...a, "string"); +>i : Symbol(i, Decl(newWithSpreadES5.ts, 30, 3)) +>a : Symbol(a, Decl(newWithSpreadES5.ts, 23, 3)) + diff --git a/tests/baselines/reference/newWithSpreadES5(target=es5).types b/tests/baselines/reference/newWithSpreadES5(target=es5).types new file mode 100644 index 0000000000000..b8c441b641dae --- /dev/null +++ b/tests/baselines/reference/newWithSpreadES5(target=es5).types @@ -0,0 +1,803 @@ +//// [tests/cases/conformance/expressions/functionCalls/newWithSpreadES5.ts] //// + +=== newWithSpreadES5.ts === +function f(x: number, y: number, ...z: string[]) { +>f : (x: number, y: number, ...z: string[]) => void +> : ^ ^^ ^^ ^^ ^^^^^ ^^ ^^^^^^^^^ +>x : number +> : ^^^^^^ +>y : number +> : ^^^^^^ +>z : string[] +> : ^^^^^^^^ +} + +function f2(...x: string[]) {} +>f2 : (...x: string[]) => void +> : ^^^^ ^^ ^^^^^^^^^ +>x : string[] +> : ^^^^^^^^ + +interface A { + f: { +>f : new (x: number, y: number, ...z: string[]) => any +> : ^^^^^ ^^ ^^ ^^ ^^^^^ ^^ ^^^^^^^^ + + new (x: number, y: number, ...z: string[]); +>x : number +> : ^^^^^^ +>y : number +> : ^^^^^^ +>z : string[] +> : ^^^^^^^^ + } +} + +class B { +>B : B +> : ^ + + constructor(x: number, y: number, ...z: string[]) {} +>x : number +> : ^^^^^^ +>y : number +> : ^^^^^^ +>z : string[] +> : ^^^^^^^^ +} + +interface C { + "a-b": typeof B; +>"a-b" : typeof B +> : ^^^^^^^^ +>B : typeof B +> : ^^^^^^^^ +} + +interface D { + 1: typeof B; +>1 : typeof B +> : ^^^^^^^^ +>B : typeof B +> : ^^^^^^^^ +} + +var a: string[]; +>a : string[] +> : ^^^^^^^^ + +var b: A; +>b : A +> : ^ + +var c: C; +>c : C +> : ^ + +var d: A[]; +>d : A[] +> : ^^^ + +var e: { [key: string]: A }; +>e : { [key: string]: A; } +> : ^^^^^^^^^^^^^^^^^^^^^ +>key : string +> : ^^^^^^ + +var g: C[]; +>g : C[] +> : ^^^ + +var h: { [key: string]: C }; +>h : { [key: string]: C; } +> : ^^^^^^^^^^^^^^^^^^^^^ +>key : string +> : ^^^^^^ + +var i: C[][]; +>i : C[][] +> : ^^^^^ + +// Basic expression +new f(1, 2, "string"); +>new f(1, 2, "string") : any +>f : (x: number, y: number, ...z: string[]) => void +> : ^ ^^ ^^ ^^ ^^^^^ ^^ ^^^^^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ +>"string" : "string" +> : ^^^^^^^^ + +new f(1, 2, ...a); +>new f(1, 2, ...a) : any +>f : (x: number, y: number, ...z: string[]) => void +> : ^ ^^ ^^ ^^ ^^^^^ ^^ ^^^^^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ +>...a : string +> : ^^^^^^ +>a : string[] +> : ^^^^^^^^ + +new f(1, 2, ...a, "string"); +>new f(1, 2, ...a, "string") : any +>f : (x: number, y: number, ...z: string[]) => void +> : ^ ^^ ^^ ^^ ^^^^^ ^^ ^^^^^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ +>...a : string +> : ^^^^^^ +>a : string[] +> : ^^^^^^^^ +>"string" : "string" +> : ^^^^^^^^ + +// Multiple spreads arguments +new f2(...a, ...a); +>new f2(...a, ...a) : any +>f2 : (...x: string[]) => void +> : ^^^^ ^^ ^^^^^^^^^ +>...a : string +> : ^^^^^^ +>a : string[] +> : ^^^^^^^^ +>...a : string +> : ^^^^^^ +>a : string[] +> : ^^^^^^^^ + +new f(1 ,2, ...a, ...a); +>new f(1 ,2, ...a, ...a) : any +>f : (x: number, y: number, ...z: string[]) => void +> : ^ ^^ ^^ ^^ ^^^^^ ^^ ^^^^^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ +>...a : string +> : ^^^^^^ +>a : string[] +> : ^^^^^^^^ +>...a : string +> : ^^^^^^ +>a : string[] +> : ^^^^^^^^ + +// Call expression +new f(1, 2, "string")(); +>new f(1, 2, "string")() : any +>new f(1, 2, "string") : any +>f : (x: number, y: number, ...z: string[]) => void +> : ^ ^^ ^^ ^^ ^^^^^ ^^ ^^^^^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ +>"string" : "string" +> : ^^^^^^^^ + +new f(1, 2, ...a)(); +>new f(1, 2, ...a)() : any +>new f(1, 2, ...a) : any +>f : (x: number, y: number, ...z: string[]) => void +> : ^ ^^ ^^ ^^ ^^^^^ ^^ ^^^^^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ +>...a : string +> : ^^^^^^ +>a : string[] +> : ^^^^^^^^ + +new f(1, 2, ...a, "string")(); +>new f(1, 2, ...a, "string")() : any +>new f(1, 2, ...a, "string") : any +>f : (x: number, y: number, ...z: string[]) => void +> : ^ ^^ ^^ ^^ ^^^^^ ^^ ^^^^^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ +>...a : string +> : ^^^^^^ +>a : string[] +> : ^^^^^^^^ +>"string" : "string" +> : ^^^^^^^^ + +// Property access expression +new b.f(1, 2, "string"); +>new b.f(1, 2, "string") : any +>b.f : new (x: number, y: number, ...z: string[]) => any +> : ^^^^^ ^^ ^^ ^^ ^^^^^ ^^ ^^^^^^^^ +>b : A +> : ^ +>f : new (x: number, y: number, ...z: string[]) => any +> : ^^^^^ ^^ ^^ ^^ ^^^^^ ^^ ^^^^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ +>"string" : "string" +> : ^^^^^^^^ + +new b.f(1, 2, ...a); +>new b.f(1, 2, ...a) : any +>b.f : new (x: number, y: number, ...z: string[]) => any +> : ^^^^^ ^^ ^^ ^^ ^^^^^ ^^ ^^^^^^^^ +>b : A +> : ^ +>f : new (x: number, y: number, ...z: string[]) => any +> : ^^^^^ ^^ ^^ ^^ ^^^^^ ^^ ^^^^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ +>...a : string +> : ^^^^^^ +>a : string[] +> : ^^^^^^^^ + +new b.f(1, 2, ...a, "string"); +>new b.f(1, 2, ...a, "string") : any +>b.f : new (x: number, y: number, ...z: string[]) => any +> : ^^^^^ ^^ ^^ ^^ ^^^^^ ^^ ^^^^^^^^ +>b : A +> : ^ +>f : new (x: number, y: number, ...z: string[]) => any +> : ^^^^^ ^^ ^^ ^^ ^^^^^ ^^ ^^^^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ +>...a : string +> : ^^^^^^ +>a : string[] +> : ^^^^^^^^ +>"string" : "string" +> : ^^^^^^^^ + +// Parenthesised expression +new (b.f)(1, 2, "string"); +>new (b.f)(1, 2, "string") : any +>(b.f) : new (x: number, y: number, ...z: string[]) => any +> : ^^^^^ ^^ ^^ ^^ ^^^^^ ^^ ^^^^^^^^ +>b.f : new (x: number, y: number, ...z: string[]) => any +> : ^^^^^ ^^ ^^ ^^ ^^^^^ ^^ ^^^^^^^^ +>b : A +> : ^ +>f : new (x: number, y: number, ...z: string[]) => any +> : ^^^^^ ^^ ^^ ^^ ^^^^^ ^^ ^^^^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ +>"string" : "string" +> : ^^^^^^^^ + +new (b.f)(1, 2, ...a); +>new (b.f)(1, 2, ...a) : any +>(b.f) : new (x: number, y: number, ...z: string[]) => any +> : ^^^^^ ^^ ^^ ^^ ^^^^^ ^^ ^^^^^^^^ +>b.f : new (x: number, y: number, ...z: string[]) => any +> : ^^^^^ ^^ ^^ ^^ ^^^^^ ^^ ^^^^^^^^ +>b : A +> : ^ +>f : new (x: number, y: number, ...z: string[]) => any +> : ^^^^^ ^^ ^^ ^^ ^^^^^ ^^ ^^^^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ +>...a : string +> : ^^^^^^ +>a : string[] +> : ^^^^^^^^ + +new (b.f)(1, 2, ...a, "string"); +>new (b.f)(1, 2, ...a, "string") : any +>(b.f) : new (x: number, y: number, ...z: string[]) => any +> : ^^^^^ ^^ ^^ ^^ ^^^^^ ^^ ^^^^^^^^ +>b.f : new (x: number, y: number, ...z: string[]) => any +> : ^^^^^ ^^ ^^ ^^ ^^^^^ ^^ ^^^^^^^^ +>b : A +> : ^ +>f : new (x: number, y: number, ...z: string[]) => any +> : ^^^^^ ^^ ^^ ^^ ^^^^^ ^^ ^^^^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ +>...a : string +> : ^^^^^^ +>a : string[] +> : ^^^^^^^^ +>"string" : "string" +> : ^^^^^^^^ + +// Element access expression +new d[1].f(1, 2, "string"); +>new d[1].f(1, 2, "string") : any +>d[1].f : new (x: number, y: number, ...z: string[]) => any +> : ^^^^^ ^^ ^^ ^^ ^^^^^ ^^ ^^^^^^^^ +>d[1] : A +> : ^ +>d : A[] +> : ^^^ +>1 : 1 +> : ^ +>f : new (x: number, y: number, ...z: string[]) => any +> : ^^^^^ ^^ ^^ ^^ ^^^^^ ^^ ^^^^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ +>"string" : "string" +> : ^^^^^^^^ + +new d[1].f(1, 2, ...a); +>new d[1].f(1, 2, ...a) : any +>d[1].f : new (x: number, y: number, ...z: string[]) => any +> : ^^^^^ ^^ ^^ ^^ ^^^^^ ^^ ^^^^^^^^ +>d[1] : A +> : ^ +>d : A[] +> : ^^^ +>1 : 1 +> : ^ +>f : new (x: number, y: number, ...z: string[]) => any +> : ^^^^^ ^^ ^^ ^^ ^^^^^ ^^ ^^^^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ +>...a : string +> : ^^^^^^ +>a : string[] +> : ^^^^^^^^ + +new d[1].f(1, 2, ...a, "string"); +>new d[1].f(1, 2, ...a, "string") : any +>d[1].f : new (x: number, y: number, ...z: string[]) => any +> : ^^^^^ ^^ ^^ ^^ ^^^^^ ^^ ^^^^^^^^ +>d[1] : A +> : ^ +>d : A[] +> : ^^^ +>1 : 1 +> : ^ +>f : new (x: number, y: number, ...z: string[]) => any +> : ^^^^^ ^^ ^^ ^^ ^^^^^ ^^ ^^^^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ +>...a : string +> : ^^^^^^ +>a : string[] +> : ^^^^^^^^ +>"string" : "string" +> : ^^^^^^^^ + +// Element access expression with a punctuated key +new e["a-b"].f(1, 2, "string"); +>new e["a-b"].f(1, 2, "string") : any +>e["a-b"].f : new (x: number, y: number, ...z: string[]) => any +> : ^^^^^ ^^ ^^ ^^ ^^^^^ ^^ ^^^^^^^^ +>e["a-b"] : A +> : ^ +>e : { [key: string]: A; } +> : ^^^^^^^^^^^^^^^^^^^^^ +>"a-b" : "a-b" +> : ^^^^^ +>f : new (x: number, y: number, ...z: string[]) => any +> : ^^^^^ ^^ ^^ ^^ ^^^^^ ^^ ^^^^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ +>"string" : "string" +> : ^^^^^^^^ + +new e["a-b"].f(1, 2, ...a); +>new e["a-b"].f(1, 2, ...a) : any +>e["a-b"].f : new (x: number, y: number, ...z: string[]) => any +> : ^^^^^ ^^ ^^ ^^ ^^^^^ ^^ ^^^^^^^^ +>e["a-b"] : A +> : ^ +>e : { [key: string]: A; } +> : ^^^^^^^^^^^^^^^^^^^^^ +>"a-b" : "a-b" +> : ^^^^^ +>f : new (x: number, y: number, ...z: string[]) => any +> : ^^^^^ ^^ ^^ ^^ ^^^^^ ^^ ^^^^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ +>...a : string +> : ^^^^^^ +>a : string[] +> : ^^^^^^^^ + +new e["a-b"].f(1, 2, ...a, "string"); +>new e["a-b"].f(1, 2, ...a, "string") : any +>e["a-b"].f : new (x: number, y: number, ...z: string[]) => any +> : ^^^^^ ^^ ^^ ^^ ^^^^^ ^^ ^^^^^^^^ +>e["a-b"] : A +> : ^ +>e : { [key: string]: A; } +> : ^^^^^^^^^^^^^^^^^^^^^ +>"a-b" : "a-b" +> : ^^^^^ +>f : new (x: number, y: number, ...z: string[]) => any +> : ^^^^^ ^^ ^^ ^^ ^^^^^ ^^ ^^^^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ +>...a : string +> : ^^^^^^ +>a : string[] +> : ^^^^^^^^ +>"string" : "string" +> : ^^^^^^^^ + +// Basic expression +new B(1, 2, "string"); +>new B(1, 2, "string") : B +> : ^ +>B : typeof B +> : ^^^^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ +>"string" : "string" +> : ^^^^^^^^ + +new B(1, 2, ...a); +>new B(1, 2, ...a) : B +> : ^ +>B : typeof B +> : ^^^^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ +>...a : string +> : ^^^^^^ +>a : string[] +> : ^^^^^^^^ + +new B(1, 2, ...a, "string"); +>new B(1, 2, ...a, "string") : B +> : ^ +>B : typeof B +> : ^^^^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ +>...a : string +> : ^^^^^^ +>a : string[] +> : ^^^^^^^^ +>"string" : "string" +> : ^^^^^^^^ + +// Property access expression +new c["a-b"](1, 2, "string"); +>new c["a-b"](1, 2, "string") : B +> : ^ +>c["a-b"] : typeof B +> : ^^^^^^^^ +>c : C +> : ^ +>"a-b" : "a-b" +> : ^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ +>"string" : "string" +> : ^^^^^^^^ + +new c["a-b"](1, 2, ...a); +>new c["a-b"](1, 2, ...a) : B +> : ^ +>c["a-b"] : typeof B +> : ^^^^^^^^ +>c : C +> : ^ +>"a-b" : "a-b" +> : ^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ +>...a : string +> : ^^^^^^ +>a : string[] +> : ^^^^^^^^ + +new c["a-b"](1, 2, ...a, "string"); +>new c["a-b"](1, 2, ...a, "string") : B +> : ^ +>c["a-b"] : typeof B +> : ^^^^^^^^ +>c : C +> : ^ +>"a-b" : "a-b" +> : ^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ +>...a : string +> : ^^^^^^ +>a : string[] +> : ^^^^^^^^ +>"string" : "string" +> : ^^^^^^^^ + +// Parenthesised expression +new (c["a-b"])(1, 2, "string"); +>new (c["a-b"])(1, 2, "string") : B +> : ^ +>(c["a-b"]) : typeof B +> : ^^^^^^^^ +>c["a-b"] : typeof B +> : ^^^^^^^^ +>c : C +> : ^ +>"a-b" : "a-b" +> : ^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ +>"string" : "string" +> : ^^^^^^^^ + +new (c["a-b"])(1, 2, ...a); +>new (c["a-b"])(1, 2, ...a) : B +> : ^ +>(c["a-b"]) : typeof B +> : ^^^^^^^^ +>c["a-b"] : typeof B +> : ^^^^^^^^ +>c : C +> : ^ +>"a-b" : "a-b" +> : ^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ +>...a : string +> : ^^^^^^ +>a : string[] +> : ^^^^^^^^ + +new (c["a-b"])(1, 2, ...a, "string"); +>new (c["a-b"])(1, 2, ...a, "string") : B +> : ^ +>(c["a-b"]) : typeof B +> : ^^^^^^^^ +>c["a-b"] : typeof B +> : ^^^^^^^^ +>c : C +> : ^ +>"a-b" : "a-b" +> : ^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ +>...a : string +> : ^^^^^^ +>a : string[] +> : ^^^^^^^^ +>"string" : "string" +> : ^^^^^^^^ + +// Element access expression +new g[1]["a-b"](1, 2, "string"); +>new g[1]["a-b"](1, 2, "string") : B +> : ^ +>g[1]["a-b"] : typeof B +> : ^^^^^^^^ +>g[1] : C +> : ^ +>g : C[] +> : ^^^ +>1 : 1 +> : ^ +>"a-b" : "a-b" +> : ^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ +>"string" : "string" +> : ^^^^^^^^ + +new g[1]["a-b"](1, 2, ...a); +>new g[1]["a-b"](1, 2, ...a) : B +> : ^ +>g[1]["a-b"] : typeof B +> : ^^^^^^^^ +>g[1] : C +> : ^ +>g : C[] +> : ^^^ +>1 : 1 +> : ^ +>"a-b" : "a-b" +> : ^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ +>...a : string +> : ^^^^^^ +>a : string[] +> : ^^^^^^^^ + +new g[1]["a-b"](1, 2, ...a, "string"); +>new g[1]["a-b"](1, 2, ...a, "string") : B +> : ^ +>g[1]["a-b"] : typeof B +> : ^^^^^^^^ +>g[1] : C +> : ^ +>g : C[] +> : ^^^ +>1 : 1 +> : ^ +>"a-b" : "a-b" +> : ^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ +>...a : string +> : ^^^^^^ +>a : string[] +> : ^^^^^^^^ +>"string" : "string" +> : ^^^^^^^^ + +// Element access expression with a punctuated key +new h["a-b"]["a-b"](1, 2, "string"); +>new h["a-b"]["a-b"](1, 2, "string") : B +> : ^ +>h["a-b"]["a-b"] : typeof B +> : ^^^^^^^^ +>h["a-b"] : C +> : ^ +>h : { [key: string]: C; } +> : ^^^^^^^^^^^^^^^^^^^^^ +>"a-b" : "a-b" +> : ^^^^^ +>"a-b" : "a-b" +> : ^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ +>"string" : "string" +> : ^^^^^^^^ + +new h["a-b"]["a-b"](1, 2, ...a); +>new h["a-b"]["a-b"](1, 2, ...a) : B +> : ^ +>h["a-b"]["a-b"] : typeof B +> : ^^^^^^^^ +>h["a-b"] : C +> : ^ +>h : { [key: string]: C; } +> : ^^^^^^^^^^^^^^^^^^^^^ +>"a-b" : "a-b" +> : ^^^^^ +>"a-b" : "a-b" +> : ^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ +>...a : string +> : ^^^^^^ +>a : string[] +> : ^^^^^^^^ + +new h["a-b"]["a-b"](1, 2, ...a, "string"); +>new h["a-b"]["a-b"](1, 2, ...a, "string") : B +> : ^ +>h["a-b"]["a-b"] : typeof B +> : ^^^^^^^^ +>h["a-b"] : C +> : ^ +>h : { [key: string]: C; } +> : ^^^^^^^^^^^^^^^^^^^^^ +>"a-b" : "a-b" +> : ^^^^^ +>"a-b" : "a-b" +> : ^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ +>...a : string +> : ^^^^^^ +>a : string[] +> : ^^^^^^^^ +>"string" : "string" +> : ^^^^^^^^ + +// Element access expression with a number +new i["a-b"][1](1, 2, "string"); +>new i["a-b"][1](1, 2, "string") : error +>i["a-b"][1] : error +>i["a-b"] : error +>i : C[][] +> : ^^^^^ +>"a-b" : "a-b" +> : ^^^^^ +>1 : 1 +> : ^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ +>"string" : "string" +> : ^^^^^^^^ + +new i["a-b"][1](1, 2, ...a); +>new i["a-b"][1](1, 2, ...a) : error +>i["a-b"][1] : error +>i["a-b"] : error +>i : C[][] +> : ^^^^^ +>"a-b" : "a-b" +> : ^^^^^ +>1 : 1 +> : ^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ +>...a : string +> : ^^^^^^ +>a : string[] +> : ^^^^^^^^ + +new i["a-b"][1](1, 2, ...a, "string"); +>new i["a-b"][1](1, 2, ...a, "string") : error +>i["a-b"][1] : error +>i["a-b"] : error +>i : C[][] +> : ^^^^^ +>"a-b" : "a-b" +> : ^^^^^ +>1 : 1 +> : ^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ +>...a : string +> : ^^^^^^ +>a : string[] +> : ^^^^^^^^ +>"string" : "string" +> : ^^^^^^^^ + diff --git a/tests/baselines/reference/noEmitHelpers2(target=es2015).js b/tests/baselines/reference/noEmitHelpers2(target=es2015).js new file mode 100644 index 0000000000000..4843574cfabd9 --- /dev/null +++ b/tests/baselines/reference/noEmitHelpers2(target=es2015).js @@ -0,0 +1,21 @@ +//// [tests/cases/compiler/noEmitHelpers2.ts] //// + +//// [noEmitHelpers2.ts] +declare var decorator: any; + +@decorator +class A { + constructor(a: number, @decorator b: string) { + } +} + +//// [noEmitHelpers2.js] +let A = class A { + constructor(a, b) { + } +}; +A = __decorate([ + decorator, + __param(1, decorator), + __metadata("design:paramtypes", [Number, String]) +], A); diff --git a/tests/baselines/reference/noEmitHelpers2.symbols b/tests/baselines/reference/noEmitHelpers2(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/noEmitHelpers2.symbols rename to tests/baselines/reference/noEmitHelpers2(target=es2015).symbols diff --git a/tests/baselines/reference/noEmitHelpers2.types b/tests/baselines/reference/noEmitHelpers2(target=es2015).types similarity index 100% rename from tests/baselines/reference/noEmitHelpers2.types rename to tests/baselines/reference/noEmitHelpers2(target=es2015).types diff --git a/tests/baselines/reference/noEmitHelpers2.js b/tests/baselines/reference/noEmitHelpers2(target=es5).js similarity index 100% rename from tests/baselines/reference/noEmitHelpers2.js rename to tests/baselines/reference/noEmitHelpers2(target=es5).js diff --git a/tests/baselines/reference/noEmitHelpers2(target=es5).symbols b/tests/baselines/reference/noEmitHelpers2(target=es5).symbols new file mode 100644 index 0000000000000..99e014545db59 --- /dev/null +++ b/tests/baselines/reference/noEmitHelpers2(target=es5).symbols @@ -0,0 +1,18 @@ +//// [tests/cases/compiler/noEmitHelpers2.ts] //// + +=== noEmitHelpers2.ts === +declare var decorator: any; +>decorator : Symbol(decorator, Decl(noEmitHelpers2.ts, 0, 11)) + +@decorator +>decorator : Symbol(decorator, Decl(noEmitHelpers2.ts, 0, 11)) + +class A { +>A : Symbol(A, Decl(noEmitHelpers2.ts, 0, 27)) + + constructor(a: number, @decorator b: string) { +>a : Symbol(a, Decl(noEmitHelpers2.ts, 4, 16)) +>decorator : Symbol(decorator, Decl(noEmitHelpers2.ts, 0, 11)) +>b : Symbol(b, Decl(noEmitHelpers2.ts, 4, 26)) + } +} diff --git a/tests/baselines/reference/noEmitHelpers2(target=es5).types b/tests/baselines/reference/noEmitHelpers2(target=es5).types new file mode 100644 index 0000000000000..0589c058e85a7 --- /dev/null +++ b/tests/baselines/reference/noEmitHelpers2(target=es5).types @@ -0,0 +1,21 @@ +//// [tests/cases/compiler/noEmitHelpers2.ts] //// + +=== noEmitHelpers2.ts === +declare var decorator: any; +>decorator : any + +@decorator +>decorator : any + +class A { +>A : A +> : ^ + + constructor(a: number, @decorator b: string) { +>a : number +> : ^^^^^^ +>decorator : any +>b : string +> : ^^^^^^ + } +} diff --git a/tests/baselines/reference/noImplicitAnyMissingGetAccessor.errors.txt b/tests/baselines/reference/noImplicitAnyMissingGetAccessor(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/noImplicitAnyMissingGetAccessor.errors.txt rename to tests/baselines/reference/noImplicitAnyMissingGetAccessor(target=es2015).errors.txt diff --git a/tests/baselines/reference/noImplicitAnyMissingGetAccessor(target=es2015).js b/tests/baselines/reference/noImplicitAnyMissingGetAccessor(target=es2015).js new file mode 100644 index 0000000000000..fe1a371f558fa --- /dev/null +++ b/tests/baselines/reference/noImplicitAnyMissingGetAccessor(target=es2015).js @@ -0,0 +1,23 @@ +//// [tests/cases/compiler/noImplicitAnyMissingGetAccessor.ts] //// + +//// [noImplicitAnyMissingGetAccessor.ts] +abstract class Parent +{ + public abstract set message(str); +} + +class Child extends Parent { + _x: any; + public set message(str) { + this._x = str; + } +} + +//// [noImplicitAnyMissingGetAccessor.js] +class Parent { +} +class Child extends Parent { + set message(str) { + this._x = str; + } +} diff --git a/tests/baselines/reference/noImplicitAnyMissingGetAccessor.symbols b/tests/baselines/reference/noImplicitAnyMissingGetAccessor(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/noImplicitAnyMissingGetAccessor.symbols rename to tests/baselines/reference/noImplicitAnyMissingGetAccessor(target=es2015).symbols diff --git a/tests/baselines/reference/noImplicitAnyMissingGetAccessor.types b/tests/baselines/reference/noImplicitAnyMissingGetAccessor(target=es2015).types similarity index 100% rename from tests/baselines/reference/noImplicitAnyMissingGetAccessor.types rename to tests/baselines/reference/noImplicitAnyMissingGetAccessor(target=es2015).types diff --git a/tests/baselines/reference/noImplicitAnyMissingGetAccessor(target=es5).errors.txt b/tests/baselines/reference/noImplicitAnyMissingGetAccessor(target=es5).errors.txt new file mode 100644 index 0000000000000..b900f4a6fc23d --- /dev/null +++ b/tests/baselines/reference/noImplicitAnyMissingGetAccessor(target=es5).errors.txt @@ -0,0 +1,26 @@ +noImplicitAnyMissingGetAccessor.ts(3,25): error TS7032: Property 'message' implicitly has type 'any', because its set accessor lacks a parameter type annotation. +noImplicitAnyMissingGetAccessor.ts(3,33): error TS7006: Parameter 'str' implicitly has an 'any' type. +noImplicitAnyMissingGetAccessor.ts(8,16): error TS7032: Property 'message' implicitly has type 'any', because its set accessor lacks a parameter type annotation. +noImplicitAnyMissingGetAccessor.ts(8,24): error TS7006: Parameter 'str' implicitly has an 'any' type. + + +==== noImplicitAnyMissingGetAccessor.ts (4 errors) ==== + abstract class Parent + { + public abstract set message(str); + ~~~~~~~ +!!! error TS7032: Property 'message' implicitly has type 'any', because its set accessor lacks a parameter type annotation. + ~~~ +!!! error TS7006: Parameter 'str' implicitly has an 'any' type. + } + + class Child extends Parent { + _x: any; + public set message(str) { + ~~~~~~~ +!!! error TS7032: Property 'message' implicitly has type 'any', because its set accessor lacks a parameter type annotation. + ~~~ +!!! error TS7006: Parameter 'str' implicitly has an 'any' type. + this._x = str; + } + } \ No newline at end of file diff --git a/tests/baselines/reference/noImplicitAnyMissingGetAccessor.js b/tests/baselines/reference/noImplicitAnyMissingGetAccessor(target=es5).js similarity index 100% rename from tests/baselines/reference/noImplicitAnyMissingGetAccessor.js rename to tests/baselines/reference/noImplicitAnyMissingGetAccessor(target=es5).js diff --git a/tests/baselines/reference/noImplicitAnyMissingGetAccessor(target=es5).symbols b/tests/baselines/reference/noImplicitAnyMissingGetAccessor(target=es5).symbols new file mode 100644 index 0000000000000..95d460d2f61c5 --- /dev/null +++ b/tests/baselines/reference/noImplicitAnyMissingGetAccessor(target=es5).symbols @@ -0,0 +1,29 @@ +//// [tests/cases/compiler/noImplicitAnyMissingGetAccessor.ts] //// + +=== noImplicitAnyMissingGetAccessor.ts === +abstract class Parent +>Parent : Symbol(Parent, Decl(noImplicitAnyMissingGetAccessor.ts, 0, 0)) +{ + public abstract set message(str); +>message : Symbol(Parent.message, Decl(noImplicitAnyMissingGetAccessor.ts, 1, 1)) +>str : Symbol(str, Decl(noImplicitAnyMissingGetAccessor.ts, 2, 32)) +} + +class Child extends Parent { +>Child : Symbol(Child, Decl(noImplicitAnyMissingGetAccessor.ts, 3, 1)) +>Parent : Symbol(Parent, Decl(noImplicitAnyMissingGetAccessor.ts, 0, 0)) + + _x: any; +>_x : Symbol(Child._x, Decl(noImplicitAnyMissingGetAccessor.ts, 5, 28)) + + public set message(str) { +>message : Symbol(Child.message, Decl(noImplicitAnyMissingGetAccessor.ts, 6, 12)) +>str : Symbol(str, Decl(noImplicitAnyMissingGetAccessor.ts, 7, 23)) + + this._x = str; +>this._x : Symbol(Child._x, Decl(noImplicitAnyMissingGetAccessor.ts, 5, 28)) +>this : Symbol(Child, Decl(noImplicitAnyMissingGetAccessor.ts, 3, 1)) +>_x : Symbol(Child._x, Decl(noImplicitAnyMissingGetAccessor.ts, 5, 28)) +>str : Symbol(str, Decl(noImplicitAnyMissingGetAccessor.ts, 7, 23)) + } +} diff --git a/tests/baselines/reference/noImplicitAnyMissingGetAccessor(target=es5).types b/tests/baselines/reference/noImplicitAnyMissingGetAccessor(target=es5).types new file mode 100644 index 0000000000000..a6d536ff0d4de --- /dev/null +++ b/tests/baselines/reference/noImplicitAnyMissingGetAccessor(target=es5).types @@ -0,0 +1,43 @@ +//// [tests/cases/compiler/noImplicitAnyMissingGetAccessor.ts] //// + +=== noImplicitAnyMissingGetAccessor.ts === +abstract class Parent +>Parent : Parent +> : ^^^^^^ +{ + public abstract set message(str); +>message : any +> : ^^^ +>str : any +> : ^^^ +} + +class Child extends Parent { +>Child : Child +> : ^^^^^ +>Parent : Parent +> : ^^^^^^ + + _x: any; +>_x : any +> : ^^^ + + public set message(str) { +>message : any +> : ^^^ +>str : any +> : ^^^ + + this._x = str; +>this._x = str : any +> : ^^^ +>this._x : any +> : ^^^ +>this : this +> : ^^^^ +>_x : any +> : ^^^ +>str : any +> : ^^^ + } +} diff --git a/tests/baselines/reference/noImplicitAnyMissingSetAccessor.errors.txt b/tests/baselines/reference/noImplicitAnyMissingSetAccessor(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/noImplicitAnyMissingSetAccessor.errors.txt rename to tests/baselines/reference/noImplicitAnyMissingSetAccessor(target=es2015).errors.txt diff --git a/tests/baselines/reference/noImplicitAnyMissingSetAccessor(target=es2015).js b/tests/baselines/reference/noImplicitAnyMissingSetAccessor(target=es2015).js new file mode 100644 index 0000000000000..79fb88c87f61d --- /dev/null +++ b/tests/baselines/reference/noImplicitAnyMissingSetAccessor(target=es2015).js @@ -0,0 +1,22 @@ +//// [tests/cases/compiler/noImplicitAnyMissingSetAccessor.ts] //// + +//// [noImplicitAnyMissingSetAccessor.ts] +abstract class Parent +{ + public abstract get message(); +} + +class Child extends Parent { + public get message() { + return ""; + } +} + +//// [noImplicitAnyMissingSetAccessor.js] +class Parent { +} +class Child extends Parent { + get message() { + return ""; + } +} diff --git a/tests/baselines/reference/noImplicitAnyMissingSetAccessor.symbols b/tests/baselines/reference/noImplicitAnyMissingSetAccessor(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/noImplicitAnyMissingSetAccessor.symbols rename to tests/baselines/reference/noImplicitAnyMissingSetAccessor(target=es2015).symbols diff --git a/tests/baselines/reference/noImplicitAnyMissingSetAccessor.types b/tests/baselines/reference/noImplicitAnyMissingSetAccessor(target=es2015).types similarity index 100% rename from tests/baselines/reference/noImplicitAnyMissingSetAccessor.types rename to tests/baselines/reference/noImplicitAnyMissingSetAccessor(target=es2015).types diff --git a/tests/baselines/reference/noImplicitAnyMissingSetAccessor(target=es5).errors.txt b/tests/baselines/reference/noImplicitAnyMissingSetAccessor(target=es5).errors.txt new file mode 100644 index 0000000000000..73978b2779c02 --- /dev/null +++ b/tests/baselines/reference/noImplicitAnyMissingSetAccessor(target=es5).errors.txt @@ -0,0 +1,16 @@ +noImplicitAnyMissingSetAccessor.ts(3,25): error TS7033: Property 'message' implicitly has type 'any', because its get accessor lacks a return type annotation. + + +==== noImplicitAnyMissingSetAccessor.ts (1 errors) ==== + abstract class Parent + { + public abstract get message(); + ~~~~~~~ +!!! error TS7033: Property 'message' implicitly has type 'any', because its get accessor lacks a return type annotation. + } + + class Child extends Parent { + public get message() { + return ""; + } + } \ No newline at end of file diff --git a/tests/baselines/reference/noImplicitAnyMissingSetAccessor.js b/tests/baselines/reference/noImplicitAnyMissingSetAccessor(target=es5).js similarity index 100% rename from tests/baselines/reference/noImplicitAnyMissingSetAccessor.js rename to tests/baselines/reference/noImplicitAnyMissingSetAccessor(target=es5).js diff --git a/tests/baselines/reference/noImplicitAnyMissingSetAccessor(target=es5).symbols b/tests/baselines/reference/noImplicitAnyMissingSetAccessor(target=es5).symbols new file mode 100644 index 0000000000000..211e259e06333 --- /dev/null +++ b/tests/baselines/reference/noImplicitAnyMissingSetAccessor(target=es5).symbols @@ -0,0 +1,20 @@ +//// [tests/cases/compiler/noImplicitAnyMissingSetAccessor.ts] //// + +=== noImplicitAnyMissingSetAccessor.ts === +abstract class Parent +>Parent : Symbol(Parent, Decl(noImplicitAnyMissingSetAccessor.ts, 0, 0)) +{ + public abstract get message(); +>message : Symbol(Parent.message, Decl(noImplicitAnyMissingSetAccessor.ts, 1, 1)) +} + +class Child extends Parent { +>Child : Symbol(Child, Decl(noImplicitAnyMissingSetAccessor.ts, 3, 1)) +>Parent : Symbol(Parent, Decl(noImplicitAnyMissingSetAccessor.ts, 0, 0)) + + public get message() { +>message : Symbol(Child.message, Decl(noImplicitAnyMissingSetAccessor.ts, 5, 28)) + + return ""; + } +} diff --git a/tests/baselines/reference/noImplicitAnyMissingSetAccessor(target=es5).types b/tests/baselines/reference/noImplicitAnyMissingSetAccessor(target=es5).types new file mode 100644 index 0000000000000..82b073fc8457b --- /dev/null +++ b/tests/baselines/reference/noImplicitAnyMissingSetAccessor(target=es5).types @@ -0,0 +1,27 @@ +//// [tests/cases/compiler/noImplicitAnyMissingSetAccessor.ts] //// + +=== noImplicitAnyMissingSetAccessor.ts === +abstract class Parent +>Parent : Parent +> : ^^^^^^ +{ + public abstract get message(); +>message : any +> : ^^^ +} + +class Child extends Parent { +>Child : Child +> : ^^^^^ +>Parent : Parent +> : ^^^^^^ + + public get message() { +>message : string +> : ^^^^^^ + + return ""; +>"" : "" +> : ^^ + } +} diff --git a/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node16).errors.txt b/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node16,target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node16).errors.txt rename to tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node16,target=es2015).errors.txt diff --git a/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node16,target=es2015).js b/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node16,target=es2015).js new file mode 100644 index 0000000000000..a65aeaf84177b --- /dev/null +++ b/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node16,target=es2015).js @@ -0,0 +1,52 @@ +//// [tests/cases/conformance/node/allowJs/nodeModulesAllowJsImportHelpersCollisions3.ts] //// + +//// [index.js] +// cjs format file +export {default} from "fs"; +export {default as foo} from "fs"; +export {bar as baz} from "fs"; +//// [index.js] +// esm format file +export {default} from "fs"; +export {default as foo} from "fs"; +export {bar as baz} from "fs"; +//// [package.json] +{ + "name": "package", + "private": true, + "type": "module" +} +//// [package.json] +{ + "type": "commonjs" +} +//// [types.d.ts] +declare module "fs"; +declare module "tslib" { + export {}; + // intentionally missing all helpers +} + +//// [index.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.baz = exports.foo = exports.default = void 0; +const tslib_1 = require("tslib"); +// cjs format file +var fs_1 = require("fs"); +Object.defineProperty(exports, "default", { enumerable: true, get: function () { return tslib_1.__importDefault(fs_1).default; } }); +var fs_2 = require("fs"); +Object.defineProperty(exports, "foo", { enumerable: true, get: function () { return tslib_1.__importDefault(fs_2).default; } }); +var fs_3 = require("fs"); +Object.defineProperty(exports, "baz", { enumerable: true, get: function () { return fs_3.bar; } }); +//// [index.js] +// esm format file +export { default } from "fs"; +export { default as foo } from "fs"; +export { bar as baz } from "fs"; + + +//// [index.d.ts] +export { default, default as foo, bar as baz } from "fs"; +//// [index.d.ts] +export { default, default as foo, bar as baz } from "fs"; diff --git a/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node16).symbols b/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node16,target=es2015).symbols similarity index 100% rename from tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node16).symbols rename to tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node16,target=es2015).symbols diff --git a/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node16).types b/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node16,target=es2015).types similarity index 100% rename from tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node16).types rename to tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node16,target=es2015).types diff --git a/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node18).errors.txt b/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node16,target=es5).errors.txt similarity index 100% rename from tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node18).errors.txt rename to tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node16,target=es5).errors.txt diff --git a/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node16).js b/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node16,target=es5).js similarity index 100% rename from tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node16).js rename to tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node16,target=es5).js diff --git a/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node18).symbols b/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node16,target=es5).symbols similarity index 100% rename from tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node18).symbols rename to tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node16,target=es5).symbols diff --git a/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node18).types b/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node16,target=es5).types similarity index 100% rename from tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node18).types rename to tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node16,target=es5).types diff --git a/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node20).errors.txt b/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node18,target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node20).errors.txt rename to tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node18,target=es2015).errors.txt diff --git a/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node18,target=es2015).js b/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node18,target=es2015).js new file mode 100644 index 0000000000000..a65aeaf84177b --- /dev/null +++ b/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node18,target=es2015).js @@ -0,0 +1,52 @@ +//// [tests/cases/conformance/node/allowJs/nodeModulesAllowJsImportHelpersCollisions3.ts] //// + +//// [index.js] +// cjs format file +export {default} from "fs"; +export {default as foo} from "fs"; +export {bar as baz} from "fs"; +//// [index.js] +// esm format file +export {default} from "fs"; +export {default as foo} from "fs"; +export {bar as baz} from "fs"; +//// [package.json] +{ + "name": "package", + "private": true, + "type": "module" +} +//// [package.json] +{ + "type": "commonjs" +} +//// [types.d.ts] +declare module "fs"; +declare module "tslib" { + export {}; + // intentionally missing all helpers +} + +//// [index.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.baz = exports.foo = exports.default = void 0; +const tslib_1 = require("tslib"); +// cjs format file +var fs_1 = require("fs"); +Object.defineProperty(exports, "default", { enumerable: true, get: function () { return tslib_1.__importDefault(fs_1).default; } }); +var fs_2 = require("fs"); +Object.defineProperty(exports, "foo", { enumerable: true, get: function () { return tslib_1.__importDefault(fs_2).default; } }); +var fs_3 = require("fs"); +Object.defineProperty(exports, "baz", { enumerable: true, get: function () { return fs_3.bar; } }); +//// [index.js] +// esm format file +export { default } from "fs"; +export { default as foo } from "fs"; +export { bar as baz } from "fs"; + + +//// [index.d.ts] +export { default, default as foo, bar as baz } from "fs"; +//// [index.d.ts] +export { default, default as foo, bar as baz } from "fs"; diff --git a/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node20).symbols b/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node18,target=es2015).symbols similarity index 100% rename from tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node20).symbols rename to tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node18,target=es2015).symbols diff --git a/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node20).types b/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node18,target=es2015).types similarity index 100% rename from tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node20).types rename to tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node18,target=es2015).types diff --git a/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=nodenext).errors.txt b/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node18,target=es5).errors.txt similarity index 100% rename from tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=nodenext).errors.txt rename to tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node18,target=es5).errors.txt diff --git a/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node18).js b/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node18,target=es5).js similarity index 100% rename from tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node18).js rename to tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node18,target=es5).js diff --git a/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=nodenext).symbols b/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node18,target=es5).symbols similarity index 100% rename from tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=nodenext).symbols rename to tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node18,target=es5).symbols diff --git a/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=nodenext).types b/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node18,target=es5).types similarity index 100% rename from tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=nodenext).types rename to tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node18,target=es5).types diff --git a/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node20,target=es2015).errors.txt b/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node20,target=es2015).errors.txt new file mode 100644 index 0000000000000..f1e751aeb0f1f --- /dev/null +++ b/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node20,target=es2015).errors.txt @@ -0,0 +1,31 @@ +subfolder/index.js(2,9): error TS2343: This syntax requires an imported helper named '__importDefault' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. + + +==== subfolder/index.js (1 errors) ==== + // cjs format file + export {default} from "fs"; + ~~~~~~~ +!!! error TS2343: This syntax requires an imported helper named '__importDefault' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. + export {default as foo} from "fs"; + export {bar as baz} from "fs"; +==== index.js (0 errors) ==== + // esm format file + export {default} from "fs"; + export {default as foo} from "fs"; + export {bar as baz} from "fs"; +==== package.json (0 errors) ==== + { + "name": "package", + "private": true, + "type": "module" + } +==== subfolder/package.json (0 errors) ==== + { + "type": "commonjs" + } +==== types.d.ts (0 errors) ==== + declare module "fs"; + declare module "tslib" { + export {}; + // intentionally missing all helpers + } \ No newline at end of file diff --git a/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node20,target=es2015).js b/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node20,target=es2015).js new file mode 100644 index 0000000000000..a65aeaf84177b --- /dev/null +++ b/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node20,target=es2015).js @@ -0,0 +1,52 @@ +//// [tests/cases/conformance/node/allowJs/nodeModulesAllowJsImportHelpersCollisions3.ts] //// + +//// [index.js] +// cjs format file +export {default} from "fs"; +export {default as foo} from "fs"; +export {bar as baz} from "fs"; +//// [index.js] +// esm format file +export {default} from "fs"; +export {default as foo} from "fs"; +export {bar as baz} from "fs"; +//// [package.json] +{ + "name": "package", + "private": true, + "type": "module" +} +//// [package.json] +{ + "type": "commonjs" +} +//// [types.d.ts] +declare module "fs"; +declare module "tslib" { + export {}; + // intentionally missing all helpers +} + +//// [index.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.baz = exports.foo = exports.default = void 0; +const tslib_1 = require("tslib"); +// cjs format file +var fs_1 = require("fs"); +Object.defineProperty(exports, "default", { enumerable: true, get: function () { return tslib_1.__importDefault(fs_1).default; } }); +var fs_2 = require("fs"); +Object.defineProperty(exports, "foo", { enumerable: true, get: function () { return tslib_1.__importDefault(fs_2).default; } }); +var fs_3 = require("fs"); +Object.defineProperty(exports, "baz", { enumerable: true, get: function () { return fs_3.bar; } }); +//// [index.js] +// esm format file +export { default } from "fs"; +export { default as foo } from "fs"; +export { bar as baz } from "fs"; + + +//// [index.d.ts] +export { default, default as foo, bar as baz } from "fs"; +//// [index.d.ts] +export { default, default as foo, bar as baz } from "fs"; diff --git a/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node20,target=es2015).symbols b/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node20,target=es2015).symbols new file mode 100644 index 0000000000000..ac8f12eb28526 --- /dev/null +++ b/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node20,target=es2015).symbols @@ -0,0 +1,38 @@ +//// [tests/cases/conformance/node/allowJs/nodeModulesAllowJsImportHelpersCollisions3.ts] //// + +=== subfolder/index.js === +// cjs format file +export {default} from "fs"; +>default : Symbol(default, Decl(index.js, 1, 8)) + +export {default as foo} from "fs"; +>default : Symbol("fs", Decl(types.d.ts, 0, 0)) +>foo : Symbol(foo, Decl(index.js, 2, 8)) + +export {bar as baz} from "fs"; +>bar : Symbol("fs", Decl(types.d.ts, 0, 0)) +>baz : Symbol(baz, Decl(index.js, 3, 8)) + +=== index.js === +// esm format file +export {default} from "fs"; +>default : Symbol(default, Decl(index.js, 1, 8)) + +export {default as foo} from "fs"; +>default : Symbol("fs", Decl(types.d.ts, 0, 0)) +>foo : Symbol(foo, Decl(index.js, 2, 8)) + +export {bar as baz} from "fs"; +>bar : Symbol("fs", Decl(types.d.ts, 0, 0)) +>baz : Symbol(baz, Decl(index.js, 3, 8)) + +=== types.d.ts === +declare module "fs"; +>"fs" : Symbol("fs", Decl(types.d.ts, 0, 0)) + +declare module "tslib" { +>"tslib" : Symbol("tslib", Decl(types.d.ts, 0, 20)) + + export {}; + // intentionally missing all helpers +} diff --git a/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node20,target=es2015).types b/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node20,target=es2015).types new file mode 100644 index 0000000000000..f610358647cd1 --- /dev/null +++ b/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node20,target=es2015).types @@ -0,0 +1,50 @@ +//// [tests/cases/conformance/node/allowJs/nodeModulesAllowJsImportHelpersCollisions3.ts] //// + +=== subfolder/index.js === +// cjs format file +export {default} from "fs"; +>default : any +> : ^^^ + +export {default as foo} from "fs"; +>default : any +> : ^^^ +>foo : any +> : ^^^ + +export {bar as baz} from "fs"; +>bar : any +> : ^^^ +>baz : any +> : ^^^ + +=== index.js === +// esm format file +export {default} from "fs"; +>default : any +> : ^^^ + +export {default as foo} from "fs"; +>default : any +> : ^^^ +>foo : any +> : ^^^ + +export {bar as baz} from "fs"; +>bar : any +> : ^^^ +>baz : any +> : ^^^ + +=== types.d.ts === +declare module "fs"; +>"fs" : any +> : ^^^ + +declare module "tslib" { +>"tslib" : typeof import("tslib") +> : ^^^^^^^^^^^^^^^^^^^^^^ + + export {}; + // intentionally missing all helpers +} diff --git a/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node20,target=es5).errors.txt b/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node20,target=es5).errors.txt new file mode 100644 index 0000000000000..f1e751aeb0f1f --- /dev/null +++ b/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node20,target=es5).errors.txt @@ -0,0 +1,31 @@ +subfolder/index.js(2,9): error TS2343: This syntax requires an imported helper named '__importDefault' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. + + +==== subfolder/index.js (1 errors) ==== + // cjs format file + export {default} from "fs"; + ~~~~~~~ +!!! error TS2343: This syntax requires an imported helper named '__importDefault' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. + export {default as foo} from "fs"; + export {bar as baz} from "fs"; +==== index.js (0 errors) ==== + // esm format file + export {default} from "fs"; + export {default as foo} from "fs"; + export {bar as baz} from "fs"; +==== package.json (0 errors) ==== + { + "name": "package", + "private": true, + "type": "module" + } +==== subfolder/package.json (0 errors) ==== + { + "type": "commonjs" + } +==== types.d.ts (0 errors) ==== + declare module "fs"; + declare module "tslib" { + export {}; + // intentionally missing all helpers + } \ No newline at end of file diff --git a/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node20).js b/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node20,target=es5).js similarity index 100% rename from tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node20).js rename to tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node20,target=es5).js diff --git a/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node20,target=es5).symbols b/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node20,target=es5).symbols new file mode 100644 index 0000000000000..ac8f12eb28526 --- /dev/null +++ b/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node20,target=es5).symbols @@ -0,0 +1,38 @@ +//// [tests/cases/conformance/node/allowJs/nodeModulesAllowJsImportHelpersCollisions3.ts] //// + +=== subfolder/index.js === +// cjs format file +export {default} from "fs"; +>default : Symbol(default, Decl(index.js, 1, 8)) + +export {default as foo} from "fs"; +>default : Symbol("fs", Decl(types.d.ts, 0, 0)) +>foo : Symbol(foo, Decl(index.js, 2, 8)) + +export {bar as baz} from "fs"; +>bar : Symbol("fs", Decl(types.d.ts, 0, 0)) +>baz : Symbol(baz, Decl(index.js, 3, 8)) + +=== index.js === +// esm format file +export {default} from "fs"; +>default : Symbol(default, Decl(index.js, 1, 8)) + +export {default as foo} from "fs"; +>default : Symbol("fs", Decl(types.d.ts, 0, 0)) +>foo : Symbol(foo, Decl(index.js, 2, 8)) + +export {bar as baz} from "fs"; +>bar : Symbol("fs", Decl(types.d.ts, 0, 0)) +>baz : Symbol(baz, Decl(index.js, 3, 8)) + +=== types.d.ts === +declare module "fs"; +>"fs" : Symbol("fs", Decl(types.d.ts, 0, 0)) + +declare module "tslib" { +>"tslib" : Symbol("tslib", Decl(types.d.ts, 0, 20)) + + export {}; + // intentionally missing all helpers +} diff --git a/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node20,target=es5).types b/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node20,target=es5).types new file mode 100644 index 0000000000000..f610358647cd1 --- /dev/null +++ b/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=node20,target=es5).types @@ -0,0 +1,50 @@ +//// [tests/cases/conformance/node/allowJs/nodeModulesAllowJsImportHelpersCollisions3.ts] //// + +=== subfolder/index.js === +// cjs format file +export {default} from "fs"; +>default : any +> : ^^^ + +export {default as foo} from "fs"; +>default : any +> : ^^^ +>foo : any +> : ^^^ + +export {bar as baz} from "fs"; +>bar : any +> : ^^^ +>baz : any +> : ^^^ + +=== index.js === +// esm format file +export {default} from "fs"; +>default : any +> : ^^^ + +export {default as foo} from "fs"; +>default : any +> : ^^^ +>foo : any +> : ^^^ + +export {bar as baz} from "fs"; +>bar : any +> : ^^^ +>baz : any +> : ^^^ + +=== types.d.ts === +declare module "fs"; +>"fs" : any +> : ^^^ + +declare module "tslib" { +>"tslib" : typeof import("tslib") +> : ^^^^^^^^^^^^^^^^^^^^^^ + + export {}; + // intentionally missing all helpers +} diff --git a/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=nodenext,target=es2015).errors.txt b/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=nodenext,target=es2015).errors.txt new file mode 100644 index 0000000000000..f1e751aeb0f1f --- /dev/null +++ b/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=nodenext,target=es2015).errors.txt @@ -0,0 +1,31 @@ +subfolder/index.js(2,9): error TS2343: This syntax requires an imported helper named '__importDefault' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. + + +==== subfolder/index.js (1 errors) ==== + // cjs format file + export {default} from "fs"; + ~~~~~~~ +!!! error TS2343: This syntax requires an imported helper named '__importDefault' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. + export {default as foo} from "fs"; + export {bar as baz} from "fs"; +==== index.js (0 errors) ==== + // esm format file + export {default} from "fs"; + export {default as foo} from "fs"; + export {bar as baz} from "fs"; +==== package.json (0 errors) ==== + { + "name": "package", + "private": true, + "type": "module" + } +==== subfolder/package.json (0 errors) ==== + { + "type": "commonjs" + } +==== types.d.ts (0 errors) ==== + declare module "fs"; + declare module "tslib" { + export {}; + // intentionally missing all helpers + } \ No newline at end of file diff --git a/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=nodenext,target=es2015).js b/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=nodenext,target=es2015).js new file mode 100644 index 0000000000000..a65aeaf84177b --- /dev/null +++ b/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=nodenext,target=es2015).js @@ -0,0 +1,52 @@ +//// [tests/cases/conformance/node/allowJs/nodeModulesAllowJsImportHelpersCollisions3.ts] //// + +//// [index.js] +// cjs format file +export {default} from "fs"; +export {default as foo} from "fs"; +export {bar as baz} from "fs"; +//// [index.js] +// esm format file +export {default} from "fs"; +export {default as foo} from "fs"; +export {bar as baz} from "fs"; +//// [package.json] +{ + "name": "package", + "private": true, + "type": "module" +} +//// [package.json] +{ + "type": "commonjs" +} +//// [types.d.ts] +declare module "fs"; +declare module "tslib" { + export {}; + // intentionally missing all helpers +} + +//// [index.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.baz = exports.foo = exports.default = void 0; +const tslib_1 = require("tslib"); +// cjs format file +var fs_1 = require("fs"); +Object.defineProperty(exports, "default", { enumerable: true, get: function () { return tslib_1.__importDefault(fs_1).default; } }); +var fs_2 = require("fs"); +Object.defineProperty(exports, "foo", { enumerable: true, get: function () { return tslib_1.__importDefault(fs_2).default; } }); +var fs_3 = require("fs"); +Object.defineProperty(exports, "baz", { enumerable: true, get: function () { return fs_3.bar; } }); +//// [index.js] +// esm format file +export { default } from "fs"; +export { default as foo } from "fs"; +export { bar as baz } from "fs"; + + +//// [index.d.ts] +export { default, default as foo, bar as baz } from "fs"; +//// [index.d.ts] +export { default, default as foo, bar as baz } from "fs"; diff --git a/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=nodenext,target=es2015).symbols b/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=nodenext,target=es2015).symbols new file mode 100644 index 0000000000000..ac8f12eb28526 --- /dev/null +++ b/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=nodenext,target=es2015).symbols @@ -0,0 +1,38 @@ +//// [tests/cases/conformance/node/allowJs/nodeModulesAllowJsImportHelpersCollisions3.ts] //// + +=== subfolder/index.js === +// cjs format file +export {default} from "fs"; +>default : Symbol(default, Decl(index.js, 1, 8)) + +export {default as foo} from "fs"; +>default : Symbol("fs", Decl(types.d.ts, 0, 0)) +>foo : Symbol(foo, Decl(index.js, 2, 8)) + +export {bar as baz} from "fs"; +>bar : Symbol("fs", Decl(types.d.ts, 0, 0)) +>baz : Symbol(baz, Decl(index.js, 3, 8)) + +=== index.js === +// esm format file +export {default} from "fs"; +>default : Symbol(default, Decl(index.js, 1, 8)) + +export {default as foo} from "fs"; +>default : Symbol("fs", Decl(types.d.ts, 0, 0)) +>foo : Symbol(foo, Decl(index.js, 2, 8)) + +export {bar as baz} from "fs"; +>bar : Symbol("fs", Decl(types.d.ts, 0, 0)) +>baz : Symbol(baz, Decl(index.js, 3, 8)) + +=== types.d.ts === +declare module "fs"; +>"fs" : Symbol("fs", Decl(types.d.ts, 0, 0)) + +declare module "tslib" { +>"tslib" : Symbol("tslib", Decl(types.d.ts, 0, 20)) + + export {}; + // intentionally missing all helpers +} diff --git a/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=nodenext,target=es2015).types b/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=nodenext,target=es2015).types new file mode 100644 index 0000000000000..f610358647cd1 --- /dev/null +++ b/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=nodenext,target=es2015).types @@ -0,0 +1,50 @@ +//// [tests/cases/conformance/node/allowJs/nodeModulesAllowJsImportHelpersCollisions3.ts] //// + +=== subfolder/index.js === +// cjs format file +export {default} from "fs"; +>default : any +> : ^^^ + +export {default as foo} from "fs"; +>default : any +> : ^^^ +>foo : any +> : ^^^ + +export {bar as baz} from "fs"; +>bar : any +> : ^^^ +>baz : any +> : ^^^ + +=== index.js === +// esm format file +export {default} from "fs"; +>default : any +> : ^^^ + +export {default as foo} from "fs"; +>default : any +> : ^^^ +>foo : any +> : ^^^ + +export {bar as baz} from "fs"; +>bar : any +> : ^^^ +>baz : any +> : ^^^ + +=== types.d.ts === +declare module "fs"; +>"fs" : any +> : ^^^ + +declare module "tslib" { +>"tslib" : typeof import("tslib") +> : ^^^^^^^^^^^^^^^^^^^^^^ + + export {}; + // intentionally missing all helpers +} diff --git a/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=nodenext,target=es5).errors.txt b/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=nodenext,target=es5).errors.txt new file mode 100644 index 0000000000000..f1e751aeb0f1f --- /dev/null +++ b/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=nodenext,target=es5).errors.txt @@ -0,0 +1,31 @@ +subfolder/index.js(2,9): error TS2343: This syntax requires an imported helper named '__importDefault' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. + + +==== subfolder/index.js (1 errors) ==== + // cjs format file + export {default} from "fs"; + ~~~~~~~ +!!! error TS2343: This syntax requires an imported helper named '__importDefault' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. + export {default as foo} from "fs"; + export {bar as baz} from "fs"; +==== index.js (0 errors) ==== + // esm format file + export {default} from "fs"; + export {default as foo} from "fs"; + export {bar as baz} from "fs"; +==== package.json (0 errors) ==== + { + "name": "package", + "private": true, + "type": "module" + } +==== subfolder/package.json (0 errors) ==== + { + "type": "commonjs" + } +==== types.d.ts (0 errors) ==== + declare module "fs"; + declare module "tslib" { + export {}; + // intentionally missing all helpers + } \ No newline at end of file diff --git a/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=nodenext).js b/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=nodenext,target=es5).js similarity index 100% rename from tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=nodenext).js rename to tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=nodenext,target=es5).js diff --git a/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=nodenext,target=es5).symbols b/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=nodenext,target=es5).symbols new file mode 100644 index 0000000000000..ac8f12eb28526 --- /dev/null +++ b/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=nodenext,target=es5).symbols @@ -0,0 +1,38 @@ +//// [tests/cases/conformance/node/allowJs/nodeModulesAllowJsImportHelpersCollisions3.ts] //// + +=== subfolder/index.js === +// cjs format file +export {default} from "fs"; +>default : Symbol(default, Decl(index.js, 1, 8)) + +export {default as foo} from "fs"; +>default : Symbol("fs", Decl(types.d.ts, 0, 0)) +>foo : Symbol(foo, Decl(index.js, 2, 8)) + +export {bar as baz} from "fs"; +>bar : Symbol("fs", Decl(types.d.ts, 0, 0)) +>baz : Symbol(baz, Decl(index.js, 3, 8)) + +=== index.js === +// esm format file +export {default} from "fs"; +>default : Symbol(default, Decl(index.js, 1, 8)) + +export {default as foo} from "fs"; +>default : Symbol("fs", Decl(types.d.ts, 0, 0)) +>foo : Symbol(foo, Decl(index.js, 2, 8)) + +export {bar as baz} from "fs"; +>bar : Symbol("fs", Decl(types.d.ts, 0, 0)) +>baz : Symbol(baz, Decl(index.js, 3, 8)) + +=== types.d.ts === +declare module "fs"; +>"fs" : Symbol("fs", Decl(types.d.ts, 0, 0)) + +declare module "tslib" { +>"tslib" : Symbol("tslib", Decl(types.d.ts, 0, 20)) + + export {}; + // intentionally missing all helpers +} diff --git a/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=nodenext,target=es5).types b/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=nodenext,target=es5).types new file mode 100644 index 0000000000000..f610358647cd1 --- /dev/null +++ b/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions3(module=nodenext,target=es5).types @@ -0,0 +1,50 @@ +//// [tests/cases/conformance/node/allowJs/nodeModulesAllowJsImportHelpersCollisions3.ts] //// + +=== subfolder/index.js === +// cjs format file +export {default} from "fs"; +>default : any +> : ^^^ + +export {default as foo} from "fs"; +>default : any +> : ^^^ +>foo : any +> : ^^^ + +export {bar as baz} from "fs"; +>bar : any +> : ^^^ +>baz : any +> : ^^^ + +=== index.js === +// esm format file +export {default} from "fs"; +>default : any +> : ^^^ + +export {default as foo} from "fs"; +>default : any +> : ^^^ +>foo : any +> : ^^^ + +export {bar as baz} from "fs"; +>bar : any +> : ^^^ +>baz : any +> : ^^^ + +=== types.d.ts === +declare module "fs"; +>"fs" : any +> : ^^^ + +declare module "tslib" { +>"tslib" : typeof import("tslib") +> : ^^^^^^^^^^^^^^^^^^^^^^ + + export {}; + // intentionally missing all helpers +} diff --git a/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node16).errors.txt b/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node16,target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node16).errors.txt rename to tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node16,target=es2015).errors.txt diff --git a/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node16,target=es2015).js b/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node16,target=es2015).js new file mode 100644 index 0000000000000..c93c7ceb55cb0 --- /dev/null +++ b/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node16,target=es2015).js @@ -0,0 +1,42 @@ +//// [tests/cases/conformance/node/nodeModulesImportHelpersCollisions3.ts] //// + +//// [index.ts] +// cjs format file +export {default} from "fs"; +//// [index.ts] +// esm format file +export {default} from "fs"; +//// [package.json] +{ + "name": "package", + "private": true, + "type": "module" +} +//// [package.json] +{ + "type": "commonjs" +} +//// [types.d.ts] +declare module "fs"; +declare module "tslib" { + export {}; + // intentionally missing all helpers +} + +//// [index.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = void 0; +const tslib_1 = require("tslib"); +// cjs format file +var fs_1 = require("fs"); +Object.defineProperty(exports, "default", { enumerable: true, get: function () { return tslib_1.__importDefault(fs_1).default; } }); +//// [index.js] +// esm format file +export { default } from "fs"; + + +//// [index.d.ts] +export { default } from "fs"; +//// [index.d.ts] +export { default } from "fs"; diff --git a/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node16).symbols b/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node16,target=es2015).symbols similarity index 100% rename from tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node16).symbols rename to tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node16,target=es2015).symbols diff --git a/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node16).types b/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node16,target=es2015).types similarity index 100% rename from tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node16).types rename to tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node16,target=es2015).types diff --git a/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node18).errors.txt b/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node16,target=es5).errors.txt similarity index 100% rename from tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node18).errors.txt rename to tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node16,target=es5).errors.txt diff --git a/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node16).js b/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node16,target=es5).js similarity index 100% rename from tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node16).js rename to tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node16,target=es5).js diff --git a/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node18).symbols b/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node16,target=es5).symbols similarity index 100% rename from tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node18).symbols rename to tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node16,target=es5).symbols diff --git a/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node18).types b/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node16,target=es5).types similarity index 100% rename from tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node18).types rename to tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node16,target=es5).types diff --git a/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node20).errors.txt b/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node18,target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node20).errors.txt rename to tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node18,target=es2015).errors.txt diff --git a/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node18,target=es2015).js b/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node18,target=es2015).js new file mode 100644 index 0000000000000..c93c7ceb55cb0 --- /dev/null +++ b/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node18,target=es2015).js @@ -0,0 +1,42 @@ +//// [tests/cases/conformance/node/nodeModulesImportHelpersCollisions3.ts] //// + +//// [index.ts] +// cjs format file +export {default} from "fs"; +//// [index.ts] +// esm format file +export {default} from "fs"; +//// [package.json] +{ + "name": "package", + "private": true, + "type": "module" +} +//// [package.json] +{ + "type": "commonjs" +} +//// [types.d.ts] +declare module "fs"; +declare module "tslib" { + export {}; + // intentionally missing all helpers +} + +//// [index.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = void 0; +const tslib_1 = require("tslib"); +// cjs format file +var fs_1 = require("fs"); +Object.defineProperty(exports, "default", { enumerable: true, get: function () { return tslib_1.__importDefault(fs_1).default; } }); +//// [index.js] +// esm format file +export { default } from "fs"; + + +//// [index.d.ts] +export { default } from "fs"; +//// [index.d.ts] +export { default } from "fs"; diff --git a/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node20).symbols b/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node18,target=es2015).symbols similarity index 100% rename from tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node20).symbols rename to tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node18,target=es2015).symbols diff --git a/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node20).types b/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node18,target=es2015).types similarity index 100% rename from tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node20).types rename to tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node18,target=es2015).types diff --git a/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=nodenext).errors.txt b/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node18,target=es5).errors.txt similarity index 100% rename from tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=nodenext).errors.txt rename to tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node18,target=es5).errors.txt diff --git a/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node18).js b/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node18,target=es5).js similarity index 100% rename from tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node18).js rename to tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node18,target=es5).js diff --git a/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=nodenext).symbols b/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node18,target=es5).symbols similarity index 100% rename from tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=nodenext).symbols rename to tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node18,target=es5).symbols diff --git a/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=nodenext).types b/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node18,target=es5).types similarity index 100% rename from tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=nodenext).types rename to tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node18,target=es5).types diff --git a/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node20,target=es2015).errors.txt b/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node20,target=es2015).errors.txt new file mode 100644 index 0000000000000..a5f7cf4be1399 --- /dev/null +++ b/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node20,target=es2015).errors.txt @@ -0,0 +1,27 @@ +subfolder/index.ts(2,9): error TS2343: This syntax requires an imported helper named '__importDefault' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. + + +==== subfolder/index.ts (1 errors) ==== + // cjs format file + export {default} from "fs"; + ~~~~~~~ +!!! error TS2343: This syntax requires an imported helper named '__importDefault' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. +==== index.ts (0 errors) ==== + // esm format file + export {default} from "fs"; +==== package.json (0 errors) ==== + { + "name": "package", + "private": true, + "type": "module" + } +==== subfolder/package.json (0 errors) ==== + { + "type": "commonjs" + } +==== types.d.ts (0 errors) ==== + declare module "fs"; + declare module "tslib" { + export {}; + // intentionally missing all helpers + } \ No newline at end of file diff --git a/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node20,target=es2015).js b/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node20,target=es2015).js new file mode 100644 index 0000000000000..c93c7ceb55cb0 --- /dev/null +++ b/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node20,target=es2015).js @@ -0,0 +1,42 @@ +//// [tests/cases/conformance/node/nodeModulesImportHelpersCollisions3.ts] //// + +//// [index.ts] +// cjs format file +export {default} from "fs"; +//// [index.ts] +// esm format file +export {default} from "fs"; +//// [package.json] +{ + "name": "package", + "private": true, + "type": "module" +} +//// [package.json] +{ + "type": "commonjs" +} +//// [types.d.ts] +declare module "fs"; +declare module "tslib" { + export {}; + // intentionally missing all helpers +} + +//// [index.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = void 0; +const tslib_1 = require("tslib"); +// cjs format file +var fs_1 = require("fs"); +Object.defineProperty(exports, "default", { enumerable: true, get: function () { return tslib_1.__importDefault(fs_1).default; } }); +//// [index.js] +// esm format file +export { default } from "fs"; + + +//// [index.d.ts] +export { default } from "fs"; +//// [index.d.ts] +export { default } from "fs"; diff --git a/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node20,target=es2015).symbols b/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node20,target=es2015).symbols new file mode 100644 index 0000000000000..db6b4d5b50a13 --- /dev/null +++ b/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node20,target=es2015).symbols @@ -0,0 +1,22 @@ +//// [tests/cases/conformance/node/nodeModulesImportHelpersCollisions3.ts] //// + +=== subfolder/index.ts === +// cjs format file +export {default} from "fs"; +>default : Symbol(default, Decl(index.ts, 1, 8)) + +=== index.ts === +// esm format file +export {default} from "fs"; +>default : Symbol(default, Decl(index.ts, 1, 8)) + +=== types.d.ts === +declare module "fs"; +>"fs" : Symbol("fs", Decl(types.d.ts, 0, 0)) + +declare module "tslib" { +>"tslib" : Symbol("tslib", Decl(types.d.ts, 0, 20)) + + export {}; + // intentionally missing all helpers +} diff --git a/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node20,target=es2015).types b/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node20,target=es2015).types new file mode 100644 index 0000000000000..fe3a6a4729b0b --- /dev/null +++ b/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node20,target=es2015).types @@ -0,0 +1,26 @@ +//// [tests/cases/conformance/node/nodeModulesImportHelpersCollisions3.ts] //// + +=== subfolder/index.ts === +// cjs format file +export {default} from "fs"; +>default : any +> : ^^^ + +=== index.ts === +// esm format file +export {default} from "fs"; +>default : any +> : ^^^ + +=== types.d.ts === +declare module "fs"; +>"fs" : any +> : ^^^ + +declare module "tslib" { +>"tslib" : typeof import("tslib") +> : ^^^^^^^^^^^^^^^^^^^^^^ + + export {}; + // intentionally missing all helpers +} diff --git a/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node20,target=es5).errors.txt b/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node20,target=es5).errors.txt new file mode 100644 index 0000000000000..a5f7cf4be1399 --- /dev/null +++ b/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node20,target=es5).errors.txt @@ -0,0 +1,27 @@ +subfolder/index.ts(2,9): error TS2343: This syntax requires an imported helper named '__importDefault' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. + + +==== subfolder/index.ts (1 errors) ==== + // cjs format file + export {default} from "fs"; + ~~~~~~~ +!!! error TS2343: This syntax requires an imported helper named '__importDefault' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. +==== index.ts (0 errors) ==== + // esm format file + export {default} from "fs"; +==== package.json (0 errors) ==== + { + "name": "package", + "private": true, + "type": "module" + } +==== subfolder/package.json (0 errors) ==== + { + "type": "commonjs" + } +==== types.d.ts (0 errors) ==== + declare module "fs"; + declare module "tslib" { + export {}; + // intentionally missing all helpers + } \ No newline at end of file diff --git a/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node20).js b/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node20,target=es5).js similarity index 100% rename from tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node20).js rename to tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node20,target=es5).js diff --git a/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node20,target=es5).symbols b/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node20,target=es5).symbols new file mode 100644 index 0000000000000..db6b4d5b50a13 --- /dev/null +++ b/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node20,target=es5).symbols @@ -0,0 +1,22 @@ +//// [tests/cases/conformance/node/nodeModulesImportHelpersCollisions3.ts] //// + +=== subfolder/index.ts === +// cjs format file +export {default} from "fs"; +>default : Symbol(default, Decl(index.ts, 1, 8)) + +=== index.ts === +// esm format file +export {default} from "fs"; +>default : Symbol(default, Decl(index.ts, 1, 8)) + +=== types.d.ts === +declare module "fs"; +>"fs" : Symbol("fs", Decl(types.d.ts, 0, 0)) + +declare module "tslib" { +>"tslib" : Symbol("tslib", Decl(types.d.ts, 0, 20)) + + export {}; + // intentionally missing all helpers +} diff --git a/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node20,target=es5).types b/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node20,target=es5).types new file mode 100644 index 0000000000000..fe3a6a4729b0b --- /dev/null +++ b/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node20,target=es5).types @@ -0,0 +1,26 @@ +//// [tests/cases/conformance/node/nodeModulesImportHelpersCollisions3.ts] //// + +=== subfolder/index.ts === +// cjs format file +export {default} from "fs"; +>default : any +> : ^^^ + +=== index.ts === +// esm format file +export {default} from "fs"; +>default : any +> : ^^^ + +=== types.d.ts === +declare module "fs"; +>"fs" : any +> : ^^^ + +declare module "tslib" { +>"tslib" : typeof import("tslib") +> : ^^^^^^^^^^^^^^^^^^^^^^ + + export {}; + // intentionally missing all helpers +} diff --git a/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=nodenext,target=es2015).errors.txt b/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=nodenext,target=es2015).errors.txt new file mode 100644 index 0000000000000..a5f7cf4be1399 --- /dev/null +++ b/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=nodenext,target=es2015).errors.txt @@ -0,0 +1,27 @@ +subfolder/index.ts(2,9): error TS2343: This syntax requires an imported helper named '__importDefault' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. + + +==== subfolder/index.ts (1 errors) ==== + // cjs format file + export {default} from "fs"; + ~~~~~~~ +!!! error TS2343: This syntax requires an imported helper named '__importDefault' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. +==== index.ts (0 errors) ==== + // esm format file + export {default} from "fs"; +==== package.json (0 errors) ==== + { + "name": "package", + "private": true, + "type": "module" + } +==== subfolder/package.json (0 errors) ==== + { + "type": "commonjs" + } +==== types.d.ts (0 errors) ==== + declare module "fs"; + declare module "tslib" { + export {}; + // intentionally missing all helpers + } \ No newline at end of file diff --git a/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=nodenext,target=es2015).js b/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=nodenext,target=es2015).js new file mode 100644 index 0000000000000..c93c7ceb55cb0 --- /dev/null +++ b/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=nodenext,target=es2015).js @@ -0,0 +1,42 @@ +//// [tests/cases/conformance/node/nodeModulesImportHelpersCollisions3.ts] //// + +//// [index.ts] +// cjs format file +export {default} from "fs"; +//// [index.ts] +// esm format file +export {default} from "fs"; +//// [package.json] +{ + "name": "package", + "private": true, + "type": "module" +} +//// [package.json] +{ + "type": "commonjs" +} +//// [types.d.ts] +declare module "fs"; +declare module "tslib" { + export {}; + // intentionally missing all helpers +} + +//// [index.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = void 0; +const tslib_1 = require("tslib"); +// cjs format file +var fs_1 = require("fs"); +Object.defineProperty(exports, "default", { enumerable: true, get: function () { return tslib_1.__importDefault(fs_1).default; } }); +//// [index.js] +// esm format file +export { default } from "fs"; + + +//// [index.d.ts] +export { default } from "fs"; +//// [index.d.ts] +export { default } from "fs"; diff --git a/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=nodenext,target=es2015).symbols b/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=nodenext,target=es2015).symbols new file mode 100644 index 0000000000000..db6b4d5b50a13 --- /dev/null +++ b/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=nodenext,target=es2015).symbols @@ -0,0 +1,22 @@ +//// [tests/cases/conformance/node/nodeModulesImportHelpersCollisions3.ts] //// + +=== subfolder/index.ts === +// cjs format file +export {default} from "fs"; +>default : Symbol(default, Decl(index.ts, 1, 8)) + +=== index.ts === +// esm format file +export {default} from "fs"; +>default : Symbol(default, Decl(index.ts, 1, 8)) + +=== types.d.ts === +declare module "fs"; +>"fs" : Symbol("fs", Decl(types.d.ts, 0, 0)) + +declare module "tslib" { +>"tslib" : Symbol("tslib", Decl(types.d.ts, 0, 20)) + + export {}; + // intentionally missing all helpers +} diff --git a/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=nodenext,target=es2015).types b/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=nodenext,target=es2015).types new file mode 100644 index 0000000000000..fe3a6a4729b0b --- /dev/null +++ b/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=nodenext,target=es2015).types @@ -0,0 +1,26 @@ +//// [tests/cases/conformance/node/nodeModulesImportHelpersCollisions3.ts] //// + +=== subfolder/index.ts === +// cjs format file +export {default} from "fs"; +>default : any +> : ^^^ + +=== index.ts === +// esm format file +export {default} from "fs"; +>default : any +> : ^^^ + +=== types.d.ts === +declare module "fs"; +>"fs" : any +> : ^^^ + +declare module "tslib" { +>"tslib" : typeof import("tslib") +> : ^^^^^^^^^^^^^^^^^^^^^^ + + export {}; + // intentionally missing all helpers +} diff --git a/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=nodenext,target=es5).errors.txt b/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=nodenext,target=es5).errors.txt new file mode 100644 index 0000000000000..a5f7cf4be1399 --- /dev/null +++ b/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=nodenext,target=es5).errors.txt @@ -0,0 +1,27 @@ +subfolder/index.ts(2,9): error TS2343: This syntax requires an imported helper named '__importDefault' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. + + +==== subfolder/index.ts (1 errors) ==== + // cjs format file + export {default} from "fs"; + ~~~~~~~ +!!! error TS2343: This syntax requires an imported helper named '__importDefault' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'. +==== index.ts (0 errors) ==== + // esm format file + export {default} from "fs"; +==== package.json (0 errors) ==== + { + "name": "package", + "private": true, + "type": "module" + } +==== subfolder/package.json (0 errors) ==== + { + "type": "commonjs" + } +==== types.d.ts (0 errors) ==== + declare module "fs"; + declare module "tslib" { + export {}; + // intentionally missing all helpers + } \ No newline at end of file diff --git a/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=nodenext).js b/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=nodenext,target=es5).js similarity index 100% rename from tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=nodenext).js rename to tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=nodenext,target=es5).js diff --git a/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=nodenext,target=es5).symbols b/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=nodenext,target=es5).symbols new file mode 100644 index 0000000000000..db6b4d5b50a13 --- /dev/null +++ b/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=nodenext,target=es5).symbols @@ -0,0 +1,22 @@ +//// [tests/cases/conformance/node/nodeModulesImportHelpersCollisions3.ts] //// + +=== subfolder/index.ts === +// cjs format file +export {default} from "fs"; +>default : Symbol(default, Decl(index.ts, 1, 8)) + +=== index.ts === +// esm format file +export {default} from "fs"; +>default : Symbol(default, Decl(index.ts, 1, 8)) + +=== types.d.ts === +declare module "fs"; +>"fs" : Symbol("fs", Decl(types.d.ts, 0, 0)) + +declare module "tslib" { +>"tslib" : Symbol("tslib", Decl(types.d.ts, 0, 20)) + + export {}; + // intentionally missing all helpers +} diff --git a/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=nodenext,target=es5).types b/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=nodenext,target=es5).types new file mode 100644 index 0000000000000..fe3a6a4729b0b --- /dev/null +++ b/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=nodenext,target=es5).types @@ -0,0 +1,26 @@ +//// [tests/cases/conformance/node/nodeModulesImportHelpersCollisions3.ts] //// + +=== subfolder/index.ts === +// cjs format file +export {default} from "fs"; +>default : any +> : ^^^ + +=== index.ts === +// esm format file +export {default} from "fs"; +>default : any +> : ^^^ + +=== types.d.ts === +declare module "fs"; +>"fs" : any +> : ^^^ + +declare module "tslib" { +>"tslib" : typeof import("tslib") +> : ^^^^^^^^^^^^^^^^^^^^^^ + + export {}; + // intentionally missing all helpers +} diff --git a/tests/baselines/reference/objectLiteralErrors.errors.txt b/tests/baselines/reference/objectLiteralErrors(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/objectLiteralErrors.errors.txt rename to tests/baselines/reference/objectLiteralErrors(target=es2015).errors.txt diff --git a/tests/baselines/reference/objectLiteralErrors(target=es2015).js b/tests/baselines/reference/objectLiteralErrors(target=es2015).js new file mode 100644 index 0000000000000..fa4d74868cc61 --- /dev/null +++ b/tests/baselines/reference/objectLiteralErrors(target=es2015).js @@ -0,0 +1,105 @@ +//// [tests/cases/conformance/expressions/objectLiterals/objectLiteralErrors.ts] //// + +//// [objectLiteralErrors.ts] +// Multiple properties with the same name +var e1 = { a: 0, a: 0 }; +var e2 = { a: '', a: '' }; +var e3 = { a: 0, a: '' }; +var e4 = { a: true, a: false }; +var e5 = { a: {}, a: {} }; +var e6 = { a: 0, 'a': 0 }; +var e7 = { 'a': 0, a: 0 }; +var e8 = { 'a': 0, "a": 0 }; +var e9 = { 'a': 0, 'a': 0 }; +var e10 = { "a": 0, 'a': 0 }; +var e11 = { 1.0: 0, '1': 0 }; +var e12 = { 0: 0, 0: 0 }; +var e13 = { 0: 0, 0: 0 }; +var e14 = { 0: 0, 0x0: 0 }; +var e14 = { 0: 0, 0o0: 0 }; +var e15 = { "100": 0, 1e2: 0 }; +var e16 = { 0x20: 0, 3.2e1: 0 }; +var e17 = { a: 0, b: 1, a: 0 }; + +// Accessor and property with the same name +var f1 = { a: 0, get a() { return 0; } }; +var f2 = { a: '', get a() { return ''; } }; +var f3 = { a: 0, get a() { return ''; } }; +var f4 = { a: true, get a() { return false; } }; +var f5 = { a: {}, get a() { return {}; } }; +var f6 = { a: 0, get 'a'() { return 0; } }; +var f7 = { 'a': 0, get a() { return 0; } }; +var f8 = { 'a': 0, get "a"() { return 0; } }; +var f9 = { 'a': 0, get 'a'() { return 0; } }; +var f10 = { "a": 0, get 'a'() { return 0; } }; +var f11 = { 1.0: 0, get '1'() { return 0; } }; +var f12 = { 0: 0, get 0() { return 0; } }; +var f13 = { 0: 0, get 0() { return 0; } }; +var f14 = { 0: 0, get 0x0() { return 0; } }; +var f14 = { 0: 0, get 0o0() { return 0; } }; +var f15 = { "100": 0, get 1e2() { return 0; } }; +var f16 = { 0x20: 0, get 3.2e1() { return 0; } }; +var f17 = { a: 0, get b() { return 1; }, get a() { return 0; } }; + +// Get and set accessor with mismatched type annotations (only g2 is an error after #43662 implemented) +var g1 = { get a(): number { return 4; }, set a(n: string) { } }; +var g2 = { get a() { return 4; }, set a(n: string) { } }; +var g3 = { get a(): number { return undefined; }, set a(n: string) { } }; + +// did you mean colon errors +var h1 = { + x = 1, + y = 2, + #z: 3 +} + + +//// [objectLiteralErrors.js] +// Multiple properties with the same name +var e1 = { a: 0, a: 0 }; +var e2 = { a: '', a: '' }; +var e3 = { a: 0, a: '' }; +var e4 = { a: true, a: false }; +var e5 = { a: {}, a: {} }; +var e6 = { a: 0, 'a': 0 }; +var e7 = { 'a': 0, a: 0 }; +var e8 = { 'a': 0, "a": 0 }; +var e9 = { 'a': 0, 'a': 0 }; +var e10 = { "a": 0, 'a': 0 }; +var e11 = { 1.0: 0, '1': 0 }; +var e12 = { 0: 0, 0: 0 }; +var e13 = { 0: 0, 0: 0 }; +var e14 = { 0: 0, 0x0: 0 }; +var e14 = { 0: 0, 0o0: 0 }; +var e15 = { "100": 0, 1e2: 0 }; +var e16 = { 0x20: 0, 3.2e1: 0 }; +var e17 = { a: 0, b: 1, a: 0 }; +// Accessor and property with the same name +var f1 = { a: 0, get a() { return 0; } }; +var f2 = { a: '', get a() { return ''; } }; +var f3 = { a: 0, get a() { return ''; } }; +var f4 = { a: true, get a() { return false; } }; +var f5 = { a: {}, get a() { return {}; } }; +var f6 = { a: 0, get 'a'() { return 0; } }; +var f7 = { 'a': 0, get a() { return 0; } }; +var f8 = { 'a': 0, get "a"() { return 0; } }; +var f9 = { 'a': 0, get 'a'() { return 0; } }; +var f10 = { "a": 0, get 'a'() { return 0; } }; +var f11 = { 1.0: 0, get '1'() { return 0; } }; +var f12 = { 0: 0, get 0() { return 0; } }; +var f13 = { 0: 0, get 0() { return 0; } }; +var f14 = { 0: 0, get 0x0() { return 0; } }; +var f14 = { 0: 0, get 0o0() { return 0; } }; +var f15 = { "100": 0, get 1e2() { return 0; } }; +var f16 = { 0x20: 0, get 3.2e1() { return 0; } }; +var f17 = { a: 0, get b() { return 1; }, get a() { return 0; } }; +// Get and set accessor with mismatched type annotations (only g2 is an error after #43662 implemented) +var g1 = { get a() { return 4; }, set a(n) { } }; +var g2 = { get a() { return 4; }, set a(n) { } }; +var g3 = { get a() { return undefined; }, set a(n) { } }; +// did you mean colon errors +var h1 = { + x = 1, + y = 2, + : 3 +}; diff --git a/tests/baselines/reference/objectLiteralErrors.symbols b/tests/baselines/reference/objectLiteralErrors(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/objectLiteralErrors.symbols rename to tests/baselines/reference/objectLiteralErrors(target=es2015).symbols diff --git a/tests/baselines/reference/objectLiteralErrors.types b/tests/baselines/reference/objectLiteralErrors(target=es2015).types similarity index 100% rename from tests/baselines/reference/objectLiteralErrors.types rename to tests/baselines/reference/objectLiteralErrors(target=es2015).types diff --git a/tests/baselines/reference/objectLiteralErrors(target=es5).errors.txt b/tests/baselines/reference/objectLiteralErrors(target=es5).errors.txt new file mode 100644 index 0000000000000..ec0bfef2bca5d --- /dev/null +++ b/tests/baselines/reference/objectLiteralErrors(target=es5).errors.txt @@ -0,0 +1,283 @@ +objectLiteralErrors.ts(2,18): error TS1117: An object literal cannot have multiple properties with the same name. +objectLiteralErrors.ts(3,19): error TS1117: An object literal cannot have multiple properties with the same name. +objectLiteralErrors.ts(4,18): error TS1117: An object literal cannot have multiple properties with the same name. +objectLiteralErrors.ts(5,21): error TS1117: An object literal cannot have multiple properties with the same name. +objectLiteralErrors.ts(6,19): error TS1117: An object literal cannot have multiple properties with the same name. +objectLiteralErrors.ts(7,18): error TS1117: An object literal cannot have multiple properties with the same name. +objectLiteralErrors.ts(8,20): error TS1117: An object literal cannot have multiple properties with the same name. +objectLiteralErrors.ts(9,20): error TS1117: An object literal cannot have multiple properties with the same name. +objectLiteralErrors.ts(10,20): error TS1117: An object literal cannot have multiple properties with the same name. +objectLiteralErrors.ts(11,21): error TS1117: An object literal cannot have multiple properties with the same name. +objectLiteralErrors.ts(12,21): error TS1117: An object literal cannot have multiple properties with the same name. +objectLiteralErrors.ts(13,19): error TS1117: An object literal cannot have multiple properties with the same name. +objectLiteralErrors.ts(14,19): error TS1117: An object literal cannot have multiple properties with the same name. +objectLiteralErrors.ts(15,19): error TS1117: An object literal cannot have multiple properties with the same name. +objectLiteralErrors.ts(16,19): error TS1117: An object literal cannot have multiple properties with the same name. +objectLiteralErrors.ts(17,23): error TS1117: An object literal cannot have multiple properties with the same name. +objectLiteralErrors.ts(18,22): error TS1117: An object literal cannot have multiple properties with the same name. +objectLiteralErrors.ts(19,25): error TS1117: An object literal cannot have multiple properties with the same name. +objectLiteralErrors.ts(22,12): error TS2300: Duplicate identifier 'a'. +objectLiteralErrors.ts(22,22): error TS1119: An object literal cannot have property and accessor with the same name. +objectLiteralErrors.ts(22,22): error TS2300: Duplicate identifier 'a'. +objectLiteralErrors.ts(23,12): error TS2300: Duplicate identifier 'a'. +objectLiteralErrors.ts(23,23): error TS1119: An object literal cannot have property and accessor with the same name. +objectLiteralErrors.ts(23,23): error TS2300: Duplicate identifier 'a'. +objectLiteralErrors.ts(24,12): error TS2300: Duplicate identifier 'a'. +objectLiteralErrors.ts(24,22): error TS1119: An object literal cannot have property and accessor with the same name. +objectLiteralErrors.ts(24,22): error TS2300: Duplicate identifier 'a'. +objectLiteralErrors.ts(25,12): error TS2300: Duplicate identifier 'a'. +objectLiteralErrors.ts(25,25): error TS1119: An object literal cannot have property and accessor with the same name. +objectLiteralErrors.ts(25,25): error TS2300: Duplicate identifier 'a'. +objectLiteralErrors.ts(26,12): error TS2300: Duplicate identifier 'a'. +objectLiteralErrors.ts(26,23): error TS1119: An object literal cannot have property and accessor with the same name. +objectLiteralErrors.ts(26,23): error TS2300: Duplicate identifier 'a'. +objectLiteralErrors.ts(27,12): error TS2300: Duplicate identifier 'a'. +objectLiteralErrors.ts(27,22): error TS1119: An object literal cannot have property and accessor with the same name. +objectLiteralErrors.ts(27,22): error TS2300: Duplicate identifier ''a''. +objectLiteralErrors.ts(28,12): error TS2300: Duplicate identifier ''a''. +objectLiteralErrors.ts(28,24): error TS1119: An object literal cannot have property and accessor with the same name. +objectLiteralErrors.ts(28,24): error TS2300: Duplicate identifier 'a'. +objectLiteralErrors.ts(29,12): error TS2300: Duplicate identifier ''a''. +objectLiteralErrors.ts(29,24): error TS1119: An object literal cannot have property and accessor with the same name. +objectLiteralErrors.ts(29,24): error TS2300: Duplicate identifier '"a"'. +objectLiteralErrors.ts(30,12): error TS2300: Duplicate identifier ''a''. +objectLiteralErrors.ts(30,24): error TS1119: An object literal cannot have property and accessor with the same name. +objectLiteralErrors.ts(30,24): error TS2300: Duplicate identifier ''a''. +objectLiteralErrors.ts(31,13): error TS2300: Duplicate identifier '"a"'. +objectLiteralErrors.ts(31,25): error TS1119: An object literal cannot have property and accessor with the same name. +objectLiteralErrors.ts(31,25): error TS2300: Duplicate identifier ''a''. +objectLiteralErrors.ts(32,13): error TS2300: Duplicate identifier '1.0'. +objectLiteralErrors.ts(32,25): error TS1119: An object literal cannot have property and accessor with the same name. +objectLiteralErrors.ts(32,25): error TS2300: Duplicate identifier ''1''. +objectLiteralErrors.ts(33,13): error TS2300: Duplicate identifier '0'. +objectLiteralErrors.ts(33,23): error TS1119: An object literal cannot have property and accessor with the same name. +objectLiteralErrors.ts(33,23): error TS2300: Duplicate identifier '0'. +objectLiteralErrors.ts(34,13): error TS2300: Duplicate identifier '0'. +objectLiteralErrors.ts(34,23): error TS1119: An object literal cannot have property and accessor with the same name. +objectLiteralErrors.ts(34,23): error TS2300: Duplicate identifier '0'. +objectLiteralErrors.ts(35,13): error TS2300: Duplicate identifier '0'. +objectLiteralErrors.ts(35,23): error TS1119: An object literal cannot have property and accessor with the same name. +objectLiteralErrors.ts(35,23): error TS2300: Duplicate identifier '0x0'. +objectLiteralErrors.ts(36,13): error TS2300: Duplicate identifier '0'. +objectLiteralErrors.ts(36,23): error TS1119: An object literal cannot have property and accessor with the same name. +objectLiteralErrors.ts(36,23): error TS2300: Duplicate identifier '0o0'. +objectLiteralErrors.ts(37,13): error TS2300: Duplicate identifier '"100"'. +objectLiteralErrors.ts(37,27): error TS1119: An object literal cannot have property and accessor with the same name. +objectLiteralErrors.ts(37,27): error TS2300: Duplicate identifier '1e2'. +objectLiteralErrors.ts(38,13): error TS2300: Duplicate identifier '0x20'. +objectLiteralErrors.ts(38,26): error TS1119: An object literal cannot have property and accessor with the same name. +objectLiteralErrors.ts(38,26): error TS2300: Duplicate identifier '3.2e1'. +objectLiteralErrors.ts(39,13): error TS2300: Duplicate identifier 'a'. +objectLiteralErrors.ts(39,46): error TS1119: An object literal cannot have property and accessor with the same name. +objectLiteralErrors.ts(39,46): error TS2300: Duplicate identifier 'a'. +objectLiteralErrors.ts(43,22): error TS2322: Type 'number' is not assignable to type 'string'. +objectLiteralErrors.ts(48,7): error TS1312: Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern. +objectLiteralErrors.ts(49,7): error TS1312: Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern. +objectLiteralErrors.ts(50,5): error TS18016: Private identifiers are not allowed outside class bodies. + + +==== objectLiteralErrors.ts (76 errors) ==== + // Multiple properties with the same name + var e1 = { a: 0, a: 0 }; + ~ +!!! error TS1117: An object literal cannot have multiple properties with the same name. + var e2 = { a: '', a: '' }; + ~ +!!! error TS1117: An object literal cannot have multiple properties with the same name. + var e3 = { a: 0, a: '' }; + ~ +!!! error TS1117: An object literal cannot have multiple properties with the same name. + var e4 = { a: true, a: false }; + ~ +!!! error TS1117: An object literal cannot have multiple properties with the same name. + var e5 = { a: {}, a: {} }; + ~ +!!! error TS1117: An object literal cannot have multiple properties with the same name. + var e6 = { a: 0, 'a': 0 }; + ~~~ +!!! error TS1117: An object literal cannot have multiple properties with the same name. + var e7 = { 'a': 0, a: 0 }; + ~ +!!! error TS1117: An object literal cannot have multiple properties with the same name. + var e8 = { 'a': 0, "a": 0 }; + ~~~ +!!! error TS1117: An object literal cannot have multiple properties with the same name. + var e9 = { 'a': 0, 'a': 0 }; + ~~~ +!!! error TS1117: An object literal cannot have multiple properties with the same name. + var e10 = { "a": 0, 'a': 0 }; + ~~~ +!!! error TS1117: An object literal cannot have multiple properties with the same name. + var e11 = { 1.0: 0, '1': 0 }; + ~~~ +!!! error TS1117: An object literal cannot have multiple properties with the same name. + var e12 = { 0: 0, 0: 0 }; + ~ +!!! error TS1117: An object literal cannot have multiple properties with the same name. + var e13 = { 0: 0, 0: 0 }; + ~ +!!! error TS1117: An object literal cannot have multiple properties with the same name. + var e14 = { 0: 0, 0x0: 0 }; + ~~~ +!!! error TS1117: An object literal cannot have multiple properties with the same name. + var e14 = { 0: 0, 0o0: 0 }; + ~~~ +!!! error TS1117: An object literal cannot have multiple properties with the same name. + var e15 = { "100": 0, 1e2: 0 }; + ~~~ +!!! error TS1117: An object literal cannot have multiple properties with the same name. + var e16 = { 0x20: 0, 3.2e1: 0 }; + ~~~~~ +!!! error TS1117: An object literal cannot have multiple properties with the same name. + var e17 = { a: 0, b: 1, a: 0 }; + ~ +!!! error TS1117: An object literal cannot have multiple properties with the same name. + + // Accessor and property with the same name + var f1 = { a: 0, get a() { return 0; } }; + ~ +!!! error TS2300: Duplicate identifier 'a'. + ~ +!!! error TS1119: An object literal cannot have property and accessor with the same name. + ~ +!!! error TS2300: Duplicate identifier 'a'. + var f2 = { a: '', get a() { return ''; } }; + ~ +!!! error TS2300: Duplicate identifier 'a'. + ~ +!!! error TS1119: An object literal cannot have property and accessor with the same name. + ~ +!!! error TS2300: Duplicate identifier 'a'. + var f3 = { a: 0, get a() { return ''; } }; + ~ +!!! error TS2300: Duplicate identifier 'a'. + ~ +!!! error TS1119: An object literal cannot have property and accessor with the same name. + ~ +!!! error TS2300: Duplicate identifier 'a'. + var f4 = { a: true, get a() { return false; } }; + ~ +!!! error TS2300: Duplicate identifier 'a'. + ~ +!!! error TS1119: An object literal cannot have property and accessor with the same name. + ~ +!!! error TS2300: Duplicate identifier 'a'. + var f5 = { a: {}, get a() { return {}; } }; + ~ +!!! error TS2300: Duplicate identifier 'a'. + ~ +!!! error TS1119: An object literal cannot have property and accessor with the same name. + ~ +!!! error TS2300: Duplicate identifier 'a'. + var f6 = { a: 0, get 'a'() { return 0; } }; + ~ +!!! error TS2300: Duplicate identifier 'a'. + ~~~ +!!! error TS1119: An object literal cannot have property and accessor with the same name. + ~~~ +!!! error TS2300: Duplicate identifier ''a''. + var f7 = { 'a': 0, get a() { return 0; } }; + ~~~ +!!! error TS2300: Duplicate identifier ''a''. + ~ +!!! error TS1119: An object literal cannot have property and accessor with the same name. + ~ +!!! error TS2300: Duplicate identifier 'a'. + var f8 = { 'a': 0, get "a"() { return 0; } }; + ~~~ +!!! error TS2300: Duplicate identifier ''a''. + ~~~ +!!! error TS1119: An object literal cannot have property and accessor with the same name. + ~~~ +!!! error TS2300: Duplicate identifier '"a"'. + var f9 = { 'a': 0, get 'a'() { return 0; } }; + ~~~ +!!! error TS2300: Duplicate identifier ''a''. + ~~~ +!!! error TS1119: An object literal cannot have property and accessor with the same name. + ~~~ +!!! error TS2300: Duplicate identifier ''a''. + var f10 = { "a": 0, get 'a'() { return 0; } }; + ~~~ +!!! error TS2300: Duplicate identifier '"a"'. + ~~~ +!!! error TS1119: An object literal cannot have property and accessor with the same name. + ~~~ +!!! error TS2300: Duplicate identifier ''a''. + var f11 = { 1.0: 0, get '1'() { return 0; } }; + ~~~ +!!! error TS2300: Duplicate identifier '1.0'. + ~~~ +!!! error TS1119: An object literal cannot have property and accessor with the same name. + ~~~ +!!! error TS2300: Duplicate identifier ''1''. + var f12 = { 0: 0, get 0() { return 0; } }; + ~ +!!! error TS2300: Duplicate identifier '0'. + ~ +!!! error TS1119: An object literal cannot have property and accessor with the same name. + ~ +!!! error TS2300: Duplicate identifier '0'. + var f13 = { 0: 0, get 0() { return 0; } }; + ~ +!!! error TS2300: Duplicate identifier '0'. + ~ +!!! error TS1119: An object literal cannot have property and accessor with the same name. + ~ +!!! error TS2300: Duplicate identifier '0'. + var f14 = { 0: 0, get 0x0() { return 0; } }; + ~ +!!! error TS2300: Duplicate identifier '0'. + ~~~ +!!! error TS1119: An object literal cannot have property and accessor with the same name. + ~~~ +!!! error TS2300: Duplicate identifier '0x0'. + var f14 = { 0: 0, get 0o0() { return 0; } }; + ~ +!!! error TS2300: Duplicate identifier '0'. + ~~~ +!!! error TS1119: An object literal cannot have property and accessor with the same name. + ~~~ +!!! error TS2300: Duplicate identifier '0o0'. + var f15 = { "100": 0, get 1e2() { return 0; } }; + ~~~~~ +!!! error TS2300: Duplicate identifier '"100"'. + ~~~ +!!! error TS1119: An object literal cannot have property and accessor with the same name. + ~~~ +!!! error TS2300: Duplicate identifier '1e2'. + var f16 = { 0x20: 0, get 3.2e1() { return 0; } }; + ~~~~ +!!! error TS2300: Duplicate identifier '0x20'. + ~~~~~ +!!! error TS1119: An object literal cannot have property and accessor with the same name. + ~~~~~ +!!! error TS2300: Duplicate identifier '3.2e1'. + var f17 = { a: 0, get b() { return 1; }, get a() { return 0; } }; + ~ +!!! error TS2300: Duplicate identifier 'a'. + ~ +!!! error TS1119: An object literal cannot have property and accessor with the same name. + ~ +!!! error TS2300: Duplicate identifier 'a'. + + // Get and set accessor with mismatched type annotations (only g2 is an error after #43662 implemented) + var g1 = { get a(): number { return 4; }, set a(n: string) { } }; + var g2 = { get a() { return 4; }, set a(n: string) { } }; + ~~~~~~ +!!! error TS2322: Type 'number' is not assignable to type 'string'. + var g3 = { get a(): number { return undefined; }, set a(n: string) { } }; + + // did you mean colon errors + var h1 = { + x = 1, + ~ +!!! error TS1312: Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern. + y = 2, + ~ +!!! error TS1312: Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern. + #z: 3 + ~~ +!!! error TS18016: Private identifiers are not allowed outside class bodies. + } + \ No newline at end of file diff --git a/tests/baselines/reference/objectLiteralErrors.js b/tests/baselines/reference/objectLiteralErrors(target=es5).js similarity index 100% rename from tests/baselines/reference/objectLiteralErrors.js rename to tests/baselines/reference/objectLiteralErrors(target=es5).js diff --git a/tests/baselines/reference/objectLiteralErrors(target=es5).symbols b/tests/baselines/reference/objectLiteralErrors(target=es5).symbols new file mode 100644 index 0000000000000..d7dd437b4f63b --- /dev/null +++ b/tests/baselines/reference/objectLiteralErrors(target=es5).symbols @@ -0,0 +1,221 @@ +//// [tests/cases/conformance/expressions/objectLiterals/objectLiteralErrors.ts] //// + +=== objectLiteralErrors.ts === +// Multiple properties with the same name +var e1 = { a: 0, a: 0 }; +>e1 : Symbol(e1, Decl(objectLiteralErrors.ts, 1, 3)) +>a : Symbol(a, Decl(objectLiteralErrors.ts, 1, 10), Decl(objectLiteralErrors.ts, 1, 16)) +>a : Symbol(a, Decl(objectLiteralErrors.ts, 1, 10), Decl(objectLiteralErrors.ts, 1, 16)) + +var e2 = { a: '', a: '' }; +>e2 : Symbol(e2, Decl(objectLiteralErrors.ts, 2, 3)) +>a : Symbol(a, Decl(objectLiteralErrors.ts, 2, 10), Decl(objectLiteralErrors.ts, 2, 17)) +>a : Symbol(a, Decl(objectLiteralErrors.ts, 2, 10), Decl(objectLiteralErrors.ts, 2, 17)) + +var e3 = { a: 0, a: '' }; +>e3 : Symbol(e3, Decl(objectLiteralErrors.ts, 3, 3)) +>a : Symbol(a, Decl(objectLiteralErrors.ts, 3, 10), Decl(objectLiteralErrors.ts, 3, 16)) +>a : Symbol(a, Decl(objectLiteralErrors.ts, 3, 10), Decl(objectLiteralErrors.ts, 3, 16)) + +var e4 = { a: true, a: false }; +>e4 : Symbol(e4, Decl(objectLiteralErrors.ts, 4, 3)) +>a : Symbol(a, Decl(objectLiteralErrors.ts, 4, 10), Decl(objectLiteralErrors.ts, 4, 19)) +>a : Symbol(a, Decl(objectLiteralErrors.ts, 4, 10), Decl(objectLiteralErrors.ts, 4, 19)) + +var e5 = { a: {}, a: {} }; +>e5 : Symbol(e5, Decl(objectLiteralErrors.ts, 5, 3)) +>a : Symbol(a, Decl(objectLiteralErrors.ts, 5, 10), Decl(objectLiteralErrors.ts, 5, 17)) +>a : Symbol(a, Decl(objectLiteralErrors.ts, 5, 10), Decl(objectLiteralErrors.ts, 5, 17)) + +var e6 = { a: 0, 'a': 0 }; +>e6 : Symbol(e6, Decl(objectLiteralErrors.ts, 6, 3)) +>a : Symbol(a, Decl(objectLiteralErrors.ts, 6, 10), Decl(objectLiteralErrors.ts, 6, 16)) +>'a' : Symbol(a, Decl(objectLiteralErrors.ts, 6, 10), Decl(objectLiteralErrors.ts, 6, 16)) + +var e7 = { 'a': 0, a: 0 }; +>e7 : Symbol(e7, Decl(objectLiteralErrors.ts, 7, 3)) +>'a' : Symbol('a', Decl(objectLiteralErrors.ts, 7, 10), Decl(objectLiteralErrors.ts, 7, 18)) +>a : Symbol('a', Decl(objectLiteralErrors.ts, 7, 10), Decl(objectLiteralErrors.ts, 7, 18)) + +var e8 = { 'a': 0, "a": 0 }; +>e8 : Symbol(e8, Decl(objectLiteralErrors.ts, 8, 3)) +>'a' : Symbol('a', Decl(objectLiteralErrors.ts, 8, 10), Decl(objectLiteralErrors.ts, 8, 18)) +>"a" : Symbol('a', Decl(objectLiteralErrors.ts, 8, 10), Decl(objectLiteralErrors.ts, 8, 18)) + +var e9 = { 'a': 0, 'a': 0 }; +>e9 : Symbol(e9, Decl(objectLiteralErrors.ts, 9, 3)) +>'a' : Symbol('a', Decl(objectLiteralErrors.ts, 9, 10), Decl(objectLiteralErrors.ts, 9, 18)) +>'a' : Symbol('a', Decl(objectLiteralErrors.ts, 9, 10), Decl(objectLiteralErrors.ts, 9, 18)) + +var e10 = { "a": 0, 'a': 0 }; +>e10 : Symbol(e10, Decl(objectLiteralErrors.ts, 10, 3)) +>"a" : Symbol("a", Decl(objectLiteralErrors.ts, 10, 11), Decl(objectLiteralErrors.ts, 10, 19)) +>'a' : Symbol("a", Decl(objectLiteralErrors.ts, 10, 11), Decl(objectLiteralErrors.ts, 10, 19)) + +var e11 = { 1.0: 0, '1': 0 }; +>e11 : Symbol(e11, Decl(objectLiteralErrors.ts, 11, 3)) +>1.0 : Symbol(1.0, Decl(objectLiteralErrors.ts, 11, 11), Decl(objectLiteralErrors.ts, 11, 19)) +>'1' : Symbol(1.0, Decl(objectLiteralErrors.ts, 11, 11), Decl(objectLiteralErrors.ts, 11, 19)) + +var e12 = { 0: 0, 0: 0 }; +>e12 : Symbol(e12, Decl(objectLiteralErrors.ts, 12, 3)) +>0 : Symbol(0, Decl(objectLiteralErrors.ts, 12, 11), Decl(objectLiteralErrors.ts, 12, 17)) +>0 : Symbol(0, Decl(objectLiteralErrors.ts, 12, 11), Decl(objectLiteralErrors.ts, 12, 17)) + +var e13 = { 0: 0, 0: 0 }; +>e13 : Symbol(e13, Decl(objectLiteralErrors.ts, 13, 3)) +>0 : Symbol(0, Decl(objectLiteralErrors.ts, 13, 11), Decl(objectLiteralErrors.ts, 13, 17)) +>0 : Symbol(0, Decl(objectLiteralErrors.ts, 13, 11), Decl(objectLiteralErrors.ts, 13, 17)) + +var e14 = { 0: 0, 0x0: 0 }; +>e14 : Symbol(e14, Decl(objectLiteralErrors.ts, 14, 3), Decl(objectLiteralErrors.ts, 15, 3)) +>0 : Symbol(0, Decl(objectLiteralErrors.ts, 14, 11), Decl(objectLiteralErrors.ts, 14, 17)) +>0x0 : Symbol(0, Decl(objectLiteralErrors.ts, 14, 11), Decl(objectLiteralErrors.ts, 14, 17)) + +var e14 = { 0: 0, 0o0: 0 }; +>e14 : Symbol(e14, Decl(objectLiteralErrors.ts, 14, 3), Decl(objectLiteralErrors.ts, 15, 3)) +>0 : Symbol(0, Decl(objectLiteralErrors.ts, 15, 11), Decl(objectLiteralErrors.ts, 15, 17)) +>0o0 : Symbol(0, Decl(objectLiteralErrors.ts, 15, 11), Decl(objectLiteralErrors.ts, 15, 17)) + +var e15 = { "100": 0, 1e2: 0 }; +>e15 : Symbol(e15, Decl(objectLiteralErrors.ts, 16, 3)) +>"100" : Symbol("100", Decl(objectLiteralErrors.ts, 16, 11), Decl(objectLiteralErrors.ts, 16, 21)) +>1e2 : Symbol("100", Decl(objectLiteralErrors.ts, 16, 11), Decl(objectLiteralErrors.ts, 16, 21)) + +var e16 = { 0x20: 0, 3.2e1: 0 }; +>e16 : Symbol(e16, Decl(objectLiteralErrors.ts, 17, 3)) +>0x20 : Symbol(0x20, Decl(objectLiteralErrors.ts, 17, 11), Decl(objectLiteralErrors.ts, 17, 20)) +>3.2e1 : Symbol(0x20, Decl(objectLiteralErrors.ts, 17, 11), Decl(objectLiteralErrors.ts, 17, 20)) + +var e17 = { a: 0, b: 1, a: 0 }; +>e17 : Symbol(e17, Decl(objectLiteralErrors.ts, 18, 3)) +>a : Symbol(a, Decl(objectLiteralErrors.ts, 18, 11), Decl(objectLiteralErrors.ts, 18, 23)) +>b : Symbol(b, Decl(objectLiteralErrors.ts, 18, 17)) +>a : Symbol(a, Decl(objectLiteralErrors.ts, 18, 11), Decl(objectLiteralErrors.ts, 18, 23)) + +// Accessor and property with the same name +var f1 = { a: 0, get a() { return 0; } }; +>f1 : Symbol(f1, Decl(objectLiteralErrors.ts, 21, 3)) +>a : Symbol(a, Decl(objectLiteralErrors.ts, 21, 10)) +>a : Symbol(a, Decl(objectLiteralErrors.ts, 21, 16)) + +var f2 = { a: '', get a() { return ''; } }; +>f2 : Symbol(f2, Decl(objectLiteralErrors.ts, 22, 3)) +>a : Symbol(a, Decl(objectLiteralErrors.ts, 22, 10)) +>a : Symbol(a, Decl(objectLiteralErrors.ts, 22, 17)) + +var f3 = { a: 0, get a() { return ''; } }; +>f3 : Symbol(f3, Decl(objectLiteralErrors.ts, 23, 3)) +>a : Symbol(a, Decl(objectLiteralErrors.ts, 23, 10)) +>a : Symbol(a, Decl(objectLiteralErrors.ts, 23, 16)) + +var f4 = { a: true, get a() { return false; } }; +>f4 : Symbol(f4, Decl(objectLiteralErrors.ts, 24, 3)) +>a : Symbol(a, Decl(objectLiteralErrors.ts, 24, 10)) +>a : Symbol(a, Decl(objectLiteralErrors.ts, 24, 19)) + +var f5 = { a: {}, get a() { return {}; } }; +>f5 : Symbol(f5, Decl(objectLiteralErrors.ts, 25, 3)) +>a : Symbol(a, Decl(objectLiteralErrors.ts, 25, 10)) +>a : Symbol(a, Decl(objectLiteralErrors.ts, 25, 17)) + +var f6 = { a: 0, get 'a'() { return 0; } }; +>f6 : Symbol(f6, Decl(objectLiteralErrors.ts, 26, 3)) +>a : Symbol(a, Decl(objectLiteralErrors.ts, 26, 10)) +>'a' : Symbol('a', Decl(objectLiteralErrors.ts, 26, 16)) + +var f7 = { 'a': 0, get a() { return 0; } }; +>f7 : Symbol(f7, Decl(objectLiteralErrors.ts, 27, 3)) +>'a' : Symbol('a', Decl(objectLiteralErrors.ts, 27, 10)) +>a : Symbol(a, Decl(objectLiteralErrors.ts, 27, 18)) + +var f8 = { 'a': 0, get "a"() { return 0; } }; +>f8 : Symbol(f8, Decl(objectLiteralErrors.ts, 28, 3)) +>'a' : Symbol('a', Decl(objectLiteralErrors.ts, 28, 10)) +>"a" : Symbol("a", Decl(objectLiteralErrors.ts, 28, 18)) + +var f9 = { 'a': 0, get 'a'() { return 0; } }; +>f9 : Symbol(f9, Decl(objectLiteralErrors.ts, 29, 3)) +>'a' : Symbol('a', Decl(objectLiteralErrors.ts, 29, 10)) +>'a' : Symbol('a', Decl(objectLiteralErrors.ts, 29, 18)) + +var f10 = { "a": 0, get 'a'() { return 0; } }; +>f10 : Symbol(f10, Decl(objectLiteralErrors.ts, 30, 3)) +>"a" : Symbol("a", Decl(objectLiteralErrors.ts, 30, 11)) +>'a' : Symbol('a', Decl(objectLiteralErrors.ts, 30, 19)) + +var f11 = { 1.0: 0, get '1'() { return 0; } }; +>f11 : Symbol(f11, Decl(objectLiteralErrors.ts, 31, 3)) +>1.0 : Symbol(1.0, Decl(objectLiteralErrors.ts, 31, 11)) +>'1' : Symbol('1', Decl(objectLiteralErrors.ts, 31, 19)) + +var f12 = { 0: 0, get 0() { return 0; } }; +>f12 : Symbol(f12, Decl(objectLiteralErrors.ts, 32, 3)) +>0 : Symbol(0, Decl(objectLiteralErrors.ts, 32, 11)) +>0 : Symbol(0, Decl(objectLiteralErrors.ts, 32, 17)) + +var f13 = { 0: 0, get 0() { return 0; } }; +>f13 : Symbol(f13, Decl(objectLiteralErrors.ts, 33, 3)) +>0 : Symbol(0, Decl(objectLiteralErrors.ts, 33, 11)) +>0 : Symbol(0, Decl(objectLiteralErrors.ts, 33, 17)) + +var f14 = { 0: 0, get 0x0() { return 0; } }; +>f14 : Symbol(f14, Decl(objectLiteralErrors.ts, 34, 3), Decl(objectLiteralErrors.ts, 35, 3)) +>0 : Symbol(0, Decl(objectLiteralErrors.ts, 34, 11)) +>0x0 : Symbol(0x0, Decl(objectLiteralErrors.ts, 34, 17)) + +var f14 = { 0: 0, get 0o0() { return 0; } }; +>f14 : Symbol(f14, Decl(objectLiteralErrors.ts, 34, 3), Decl(objectLiteralErrors.ts, 35, 3)) +>0 : Symbol(0, Decl(objectLiteralErrors.ts, 35, 11)) +>0o0 : Symbol(0o0, Decl(objectLiteralErrors.ts, 35, 17)) + +var f15 = { "100": 0, get 1e2() { return 0; } }; +>f15 : Symbol(f15, Decl(objectLiteralErrors.ts, 36, 3)) +>"100" : Symbol("100", Decl(objectLiteralErrors.ts, 36, 11)) +>1e2 : Symbol(1e2, Decl(objectLiteralErrors.ts, 36, 21)) + +var f16 = { 0x20: 0, get 3.2e1() { return 0; } }; +>f16 : Symbol(f16, Decl(objectLiteralErrors.ts, 37, 3)) +>0x20 : Symbol(0x20, Decl(objectLiteralErrors.ts, 37, 11)) +>3.2e1 : Symbol(3.2e1, Decl(objectLiteralErrors.ts, 37, 20)) + +var f17 = { a: 0, get b() { return 1; }, get a() { return 0; } }; +>f17 : Symbol(f17, Decl(objectLiteralErrors.ts, 38, 3)) +>a : Symbol(a, Decl(objectLiteralErrors.ts, 38, 11)) +>b : Symbol(b, Decl(objectLiteralErrors.ts, 38, 17)) +>a : Symbol(a, Decl(objectLiteralErrors.ts, 38, 40)) + +// Get and set accessor with mismatched type annotations (only g2 is an error after #43662 implemented) +var g1 = { get a(): number { return 4; }, set a(n: string) { } }; +>g1 : Symbol(g1, Decl(objectLiteralErrors.ts, 41, 3)) +>a : Symbol(a, Decl(objectLiteralErrors.ts, 41, 10), Decl(objectLiteralErrors.ts, 41, 41)) +>a : Symbol(a, Decl(objectLiteralErrors.ts, 41, 10), Decl(objectLiteralErrors.ts, 41, 41)) +>n : Symbol(n, Decl(objectLiteralErrors.ts, 41, 48)) + +var g2 = { get a() { return 4; }, set a(n: string) { } }; +>g2 : Symbol(g2, Decl(objectLiteralErrors.ts, 42, 3)) +>a : Symbol(a, Decl(objectLiteralErrors.ts, 42, 10), Decl(objectLiteralErrors.ts, 42, 33)) +>a : Symbol(a, Decl(objectLiteralErrors.ts, 42, 10), Decl(objectLiteralErrors.ts, 42, 33)) +>n : Symbol(n, Decl(objectLiteralErrors.ts, 42, 40)) + +var g3 = { get a(): number { return undefined; }, set a(n: string) { } }; +>g3 : Symbol(g3, Decl(objectLiteralErrors.ts, 43, 3)) +>a : Symbol(a, Decl(objectLiteralErrors.ts, 43, 10), Decl(objectLiteralErrors.ts, 43, 49)) +>undefined : Symbol(undefined) +>a : Symbol(a, Decl(objectLiteralErrors.ts, 43, 10), Decl(objectLiteralErrors.ts, 43, 49)) +>n : Symbol(n, Decl(objectLiteralErrors.ts, 43, 56)) + +// did you mean colon errors +var h1 = { +>h1 : Symbol(h1, Decl(objectLiteralErrors.ts, 46, 3)) + + x = 1, +>x : Symbol(x, Decl(objectLiteralErrors.ts, 46, 10)) + + y = 2, +>y : Symbol(y, Decl(objectLiteralErrors.ts, 47, 10)) + + #z: 3 +>#z : Symbol(#z, Decl(objectLiteralErrors.ts, 48, 10)) +} + diff --git a/tests/baselines/reference/objectLiteralErrors(target=es5).types b/tests/baselines/reference/objectLiteralErrors(target=es5).types new file mode 100644 index 0000000000000..e4df69ddc5f7d --- /dev/null +++ b/tests/baselines/reference/objectLiteralErrors(target=es5).types @@ -0,0 +1,586 @@ +//// [tests/cases/conformance/expressions/objectLiterals/objectLiteralErrors.ts] //// + +=== objectLiteralErrors.ts === +// Multiple properties with the same name +var e1 = { a: 0, a: 0 }; +>e1 : { a: number; } +> : ^^^^^^^^^^^^^^ +>{ a: 0, a: 0 } : { a: number; } +> : ^^^^^^^^^^^^^^ +>a : number +> : ^^^^^^ +>0 : 0 +> : ^ +>a : number +> : ^^^^^^ +>0 : 0 +> : ^ + +var e2 = { a: '', a: '' }; +>e2 : { a: string; } +> : ^^^^^^^^^^^^^^ +>{ a: '', a: '' } : { a: string; } +> : ^^^^^^^^^^^^^^ +>a : string +> : ^^^^^^ +>'' : "" +> : ^^ +>a : string +> : ^^^^^^ +>'' : "" +> : ^^ + +var e3 = { a: 0, a: '' }; +>e3 : { a: string; } +> : ^^^^^^^^^^^^^^ +>{ a: 0, a: '' } : { a: string; } +> : ^^^^^^^^^^^^^^ +>a : number +> : ^^^^^^ +>0 : 0 +> : ^ +>a : number +> : ^^^^^^ +>'' : "" +> : ^^ + +var e4 = { a: true, a: false }; +>e4 : { a: boolean; } +> : ^^^^^^^^^^^^^^^ +>{ a: true, a: false } : { a: boolean; } +> : ^^^^^^^^^^^^^^^ +>a : boolean +> : ^^^^^^^ +>true : true +> : ^^^^ +>a : boolean +> : ^^^^^^^ +>false : false +> : ^^^^^ + +var e5 = { a: {}, a: {} }; +>e5 : { a: {}; } +> : ^^^^^^^^^^ +>{ a: {}, a: {} } : { a: {}; } +> : ^^^^^^^^^^ +>a : {} +> : ^^ +>{} : {} +> : ^^ +>a : {} +> : ^^ +>{} : {} +> : ^^ + +var e6 = { a: 0, 'a': 0 }; +>e6 : { a: number; } +> : ^^^^^^^^^^^^^^ +>{ a: 0, 'a': 0 } : { a: number; } +> : ^^^^^^^^^^^^^^ +>a : number +> : ^^^^^^ +>0 : 0 +> : ^ +>'a' : number +> : ^^^^^^ +>0 : 0 +> : ^ + +var e7 = { 'a': 0, a: 0 }; +>e7 : { a: number; } +> : ^^^^^^^^^^^^^^ +>{ 'a': 0, a: 0 } : { a: number; } +> : ^^^^^^^^^^^^^^ +>'a' : number +> : ^^^^^^ +>0 : 0 +> : ^ +>a : number +> : ^^^^^^ +>0 : 0 +> : ^ + +var e8 = { 'a': 0, "a": 0 }; +>e8 : { a: number; } +> : ^^^^^^^^^^^^^^ +>{ 'a': 0, "a": 0 } : { a: number; } +> : ^^^^^^^^^^^^^^ +>'a' : number +> : ^^^^^^ +>0 : 0 +> : ^ +>"a" : number +> : ^^^^^^ +>0 : 0 +> : ^ + +var e9 = { 'a': 0, 'a': 0 }; +>e9 : { a: number; } +> : ^^^^^^^^^^^^^^ +>{ 'a': 0, 'a': 0 } : { a: number; } +> : ^^^^^^^^^^^^^^ +>'a' : number +> : ^^^^^^ +>0 : 0 +> : ^ +>'a' : number +> : ^^^^^^ +>0 : 0 +> : ^ + +var e10 = { "a": 0, 'a': 0 }; +>e10 : { a: number; } +> : ^^^^^^^^^^^^^^ +>{ "a": 0, 'a': 0 } : { a: number; } +> : ^^^^^^^^^^^^^^ +>"a" : number +> : ^^^^^^ +>0 : 0 +> : ^ +>'a' : number +> : ^^^^^^ +>0 : 0 +> : ^ + +var e11 = { 1.0: 0, '1': 0 }; +>e11 : { 1: number; } +> : ^^^^^^^^^^^^^^ +>{ 1.0: 0, '1': 0 } : { 1: number; } +> : ^^^^^^^^^^^^^^ +>1.0 : number +> : ^^^^^^ +>0 : 0 +> : ^ +>'1' : number +> : ^^^^^^ +>0 : 0 +> : ^ + +var e12 = { 0: 0, 0: 0 }; +>e12 : { 0: number; } +> : ^^^^^^^^^^^^^^ +>{ 0: 0, 0: 0 } : { 0: number; } +> : ^^^^^^^^^^^^^^ +>0 : number +> : ^^^^^^ +>0 : 0 +> : ^ +>0 : number +> : ^^^^^^ +>0 : 0 +> : ^ + +var e13 = { 0: 0, 0: 0 }; +>e13 : { 0: number; } +> : ^^^^^^^^^^^^^^ +>{ 0: 0, 0: 0 } : { 0: number; } +> : ^^^^^^^^^^^^^^ +>0 : number +> : ^^^^^^ +>0 : 0 +> : ^ +>0 : number +> : ^^^^^^ +>0 : 0 +> : ^ + +var e14 = { 0: 0, 0x0: 0 }; +>e14 : { 0: number; } +> : ^^^^^^^^^^^^^^ +>{ 0: 0, 0x0: 0 } : { 0: number; } +> : ^^^^^^^^^^^^^^ +>0 : number +> : ^^^^^^ +>0 : 0 +> : ^ +>0x0 : number +> : ^^^^^^ +>0 : 0 +> : ^ + +var e14 = { 0: 0, 0o0: 0 }; +>e14 : { 0: number; } +> : ^^^^^^^^^^^^^^ +>{ 0: 0, 0o0: 0 } : { 0: number; } +> : ^^^^^^^^^^^^^^ +>0 : number +> : ^^^^^^ +>0 : 0 +> : ^ +>0o0 : number +> : ^^^^^^ +>0 : 0 +> : ^ + +var e15 = { "100": 0, 1e2: 0 }; +>e15 : { 100: number; } +> : ^^^^^^^^^^^^^^^^ +>{ "100": 0, 1e2: 0 } : { 100: number; } +> : ^^^^^^^^^^^^^^^^ +>"100" : number +> : ^^^^^^ +>0 : 0 +> : ^ +>1e2 : number +> : ^^^^^^ +>0 : 0 +> : ^ + +var e16 = { 0x20: 0, 3.2e1: 0 }; +>e16 : { 32: number; } +> : ^^^^^^^^^^^^^^^ +>{ 0x20: 0, 3.2e1: 0 } : { 32: number; } +> : ^^^^^^^^^^^^^^^ +>0x20 : number +> : ^^^^^^ +>0 : 0 +> : ^ +>3.2e1 : number +> : ^^^^^^ +>0 : 0 +> : ^ + +var e17 = { a: 0, b: 1, a: 0 }; +>e17 : { a: number; b: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ a: 0, b: 1, a: 0 } : { a: number; b: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>a : number +> : ^^^^^^ +>0 : 0 +> : ^ +>b : number +> : ^^^^^^ +>1 : 1 +> : ^ +>a : number +> : ^^^^^^ +>0 : 0 +> : ^ + +// Accessor and property with the same name +var f1 = { a: 0, get a() { return 0; } }; +>f1 : { readonly a: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>{ a: 0, get a() { return 0; } } : { readonly a: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>a : number +> : ^^^^^^ +>0 : 0 +> : ^ +>a : number +> : ^^^^^^ +>0 : 0 +> : ^ + +var f2 = { a: '', get a() { return ''; } }; +>f2 : { readonly a: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>{ a: '', get a() { return ''; } } : { readonly a: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>a : string +> : ^^^^^^ +>'' : "" +> : ^^ +>a : string +> : ^^^^^^ +>'' : "" +> : ^^ + +var f3 = { a: 0, get a() { return ''; } }; +>f3 : { readonly a: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>{ a: 0, get a() { return ''; } } : { readonly a: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>a : number +> : ^^^^^^ +>0 : 0 +> : ^ +>a : string +> : ^^^^^^ +>'' : "" +> : ^^ + +var f4 = { a: true, get a() { return false; } }; +>f4 : { readonly a: boolean; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^ +>{ a: true, get a() { return false; } } : { readonly a: boolean; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^ +>a : boolean +> : ^^^^^^^ +>true : true +> : ^^^^ +>a : boolean +> : ^^^^^^^ +>false : false +> : ^^^^^ + +var f5 = { a: {}, get a() { return {}; } }; +>f5 : { readonly a: {}; } +> : ^^^^^^^^^^^^^^^^^^^ +>{ a: {}, get a() { return {}; } } : { readonly a: {}; } +> : ^^^^^^^^^^^^^^^^^^^ +>a : {} +> : ^^ +>{} : {} +> : ^^ +>a : {} +> : ^^ +>{} : {} +> : ^^ + +var f6 = { a: 0, get 'a'() { return 0; } }; +>f6 : { readonly a: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>{ a: 0, get 'a'() { return 0; } } : { readonly a: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>a : number +> : ^^^^^^ +>0 : 0 +> : ^ +>'a' : number +> : ^^^^^^ +>0 : 0 +> : ^ + +var f7 = { 'a': 0, get a() { return 0; } }; +>f7 : { readonly a: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>{ 'a': 0, get a() { return 0; } } : { readonly a: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>'a' : number +> : ^^^^^^ +>0 : 0 +> : ^ +>a : number +> : ^^^^^^ +>0 : 0 +> : ^ + +var f8 = { 'a': 0, get "a"() { return 0; } }; +>f8 : { readonly a: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>{ 'a': 0, get "a"() { return 0; } } : { readonly a: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>'a' : number +> : ^^^^^^ +>0 : 0 +> : ^ +>"a" : number +> : ^^^^^^ +>0 : 0 +> : ^ + +var f9 = { 'a': 0, get 'a'() { return 0; } }; +>f9 : { readonly a: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>{ 'a': 0, get 'a'() { return 0; } } : { readonly a: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>'a' : number +> : ^^^^^^ +>0 : 0 +> : ^ +>'a' : number +> : ^^^^^^ +>0 : 0 +> : ^ + +var f10 = { "a": 0, get 'a'() { return 0; } }; +>f10 : { readonly a: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>{ "a": 0, get 'a'() { return 0; } } : { readonly a: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>"a" : number +> : ^^^^^^ +>0 : 0 +> : ^ +>'a' : number +> : ^^^^^^ +>0 : 0 +> : ^ + +var f11 = { 1.0: 0, get '1'() { return 0; } }; +>f11 : { readonly '1': number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ 1.0: 0, get '1'() { return 0; } } : { readonly '1': number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>1.0 : number +> : ^^^^^^ +>0 : 0 +> : ^ +>'1' : number +> : ^^^^^^ +>0 : 0 +> : ^ + +var f12 = { 0: 0, get 0() { return 0; } }; +>f12 : { readonly 0: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>{ 0: 0, get 0() { return 0; } } : { readonly 0: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>0 : number +> : ^^^^^^ +>0 : 0 +> : ^ +>0 : number +> : ^^^^^^ +>0 : 0 +> : ^ + +var f13 = { 0: 0, get 0() { return 0; } }; +>f13 : { readonly 0: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>{ 0: 0, get 0() { return 0; } } : { readonly 0: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>0 : number +> : ^^^^^^ +>0 : 0 +> : ^ +>0 : number +> : ^^^^^^ +>0 : 0 +> : ^ + +var f14 = { 0: 0, get 0x0() { return 0; } }; +>f14 : { readonly 0: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>{ 0: 0, get 0x0() { return 0; } } : { readonly 0: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>0 : number +> : ^^^^^^ +>0 : 0 +> : ^ +>0x0 : number +> : ^^^^^^ +>0 : 0 +> : ^ + +var f14 = { 0: 0, get 0o0() { return 0; } }; +>f14 : { readonly 0: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>{ 0: 0, get 0o0() { return 0; } } : { readonly 0: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>0 : number +> : ^^^^^^ +>0 : 0 +> : ^ +>0o0 : number +> : ^^^^^^ +>0 : 0 +> : ^ + +var f15 = { "100": 0, get 1e2() { return 0; } }; +>f15 : { readonly 100: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ "100": 0, get 1e2() { return 0; } } : { readonly 100: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>"100" : number +> : ^^^^^^ +>0 : 0 +> : ^ +>1e2 : number +> : ^^^^^^ +>0 : 0 +> : ^ + +var f16 = { 0x20: 0, get 3.2e1() { return 0; } }; +>f16 : { readonly 32: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^ +>{ 0x20: 0, get 3.2e1() { return 0; } } : { readonly 32: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^ +>0x20 : number +> : ^^^^^^ +>0 : 0 +> : ^ +>3.2e1 : number +> : ^^^^^^ +>0 : 0 +> : ^ + +var f17 = { a: 0, get b() { return 1; }, get a() { return 0; } }; +>f17 : { readonly a: number; readonly b: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ a: 0, get b() { return 1; }, get a() { return 0; } } : { readonly a: number; readonly b: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>a : number +> : ^^^^^^ +>0 : 0 +> : ^ +>b : number +> : ^^^^^^ +>1 : 1 +> : ^ +>a : number +> : ^^^^^^ +>0 : 0 +> : ^ + +// Get and set accessor with mismatched type annotations (only g2 is an error after #43662 implemented) +var g1 = { get a(): number { return 4; }, set a(n: string) { } }; +>g1 : { get a(): number; set a(n: string); } +> : ^^^^^^^^^^^ ^^^^^^^^ ^^ ^^^^ +>{ get a(): number { return 4; }, set a(n: string) { } } : { get a(): number; set a(n: string); } +> : ^^^^^^^^^^^ ^^^^^^^^ ^^ ^^^^ +>a : number +> : ^^^^^^ +>4 : 4 +> : ^ +>a : number +> : ^^^^^^ +>n : string +> : ^^^^^^ + +var g2 = { get a() { return 4; }, set a(n: string) { } }; +>g2 : { a: string; } +> : ^^^^^ ^^^ +>{ get a() { return 4; }, set a(n: string) { } } : { a: string; } +> : ^^^^^ ^^^ +>a : string +> : ^^^^^^ +>4 : 4 +> : ^ +>a : string +> : ^^^^^^ +>n : string +> : ^^^^^^ + +var g3 = { get a(): number { return undefined; }, set a(n: string) { } }; +>g3 : { get a(): number; set a(n: string); } +> : ^^^^^^^^^^^ ^^^^^^^^ ^^ ^^^^ +>{ get a(): number { return undefined; }, set a(n: string) { } } : { get a(): number; set a(n: string); } +> : ^^^^^^^^^^^ ^^^^^^^^ ^^ ^^^^ +>a : number +> : ^^^^^^ +>undefined : undefined +> : ^^^^^^^^^ +>a : number +> : ^^^^^^ +>n : string +> : ^^^^^^ + +// did you mean colon errors +var h1 = { +>h1 : { x: number; y: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ x = 1, y = 2, #z: 3} : { x: number; y: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ + + x = 1, +>x : any +> : ^^^ +>1 : 1 +> : ^ + + y = 2, +>y : any +> : ^^^ +>2 : 2 +> : ^ + + #z: 3 +>#z : number +> : ^^^^^^ +>3 : 3 +> : ^ +} + diff --git a/tests/baselines/reference/objectLiteralShorthandProperties(target=es2015).js b/tests/baselines/reference/objectLiteralShorthandProperties(target=es2015).js new file mode 100644 index 0000000000000..c657d5483470c --- /dev/null +++ b/tests/baselines/reference/objectLiteralShorthandProperties(target=es2015).js @@ -0,0 +1,40 @@ +//// [tests/cases/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandProperties.ts] //// + +//// [objectLiteralShorthandProperties.ts] +var a, b, c; + +var x1 = { + a +}; + +var x2 = { + a, +} + +var x3 = { + a: 0, + b, + c, + d() { }, + x3, + parent: x3 +}; + + + +//// [objectLiteralShorthandProperties.js] +var a, b, c; +var x1 = { + a +}; +var x2 = { + a, +}; +var x3 = { + a: 0, + b, + c, + d() { }, + x3, + parent: x3 +}; diff --git a/tests/baselines/reference/objectLiteralShorthandProperties.symbols b/tests/baselines/reference/objectLiteralShorthandProperties(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/objectLiteralShorthandProperties.symbols rename to tests/baselines/reference/objectLiteralShorthandProperties(target=es2015).symbols diff --git a/tests/baselines/reference/objectLiteralShorthandProperties.types b/tests/baselines/reference/objectLiteralShorthandProperties(target=es2015).types similarity index 100% rename from tests/baselines/reference/objectLiteralShorthandProperties.types rename to tests/baselines/reference/objectLiteralShorthandProperties(target=es2015).types diff --git a/tests/baselines/reference/objectLiteralShorthandProperties.js b/tests/baselines/reference/objectLiteralShorthandProperties(target=es5).js similarity index 100% rename from tests/baselines/reference/objectLiteralShorthandProperties.js rename to tests/baselines/reference/objectLiteralShorthandProperties(target=es5).js diff --git a/tests/baselines/reference/objectLiteralShorthandProperties(target=es5).symbols b/tests/baselines/reference/objectLiteralShorthandProperties(target=es5).symbols new file mode 100644 index 0000000000000..cb22d3cdc1397 --- /dev/null +++ b/tests/baselines/reference/objectLiteralShorthandProperties(target=es5).symbols @@ -0,0 +1,48 @@ +//// [tests/cases/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandProperties.ts] //// + +=== objectLiteralShorthandProperties.ts === +var a, b, c; +>a : Symbol(a, Decl(objectLiteralShorthandProperties.ts, 0, 3)) +>b : Symbol(b, Decl(objectLiteralShorthandProperties.ts, 0, 6)) +>c : Symbol(c, Decl(objectLiteralShorthandProperties.ts, 0, 9)) + +var x1 = { +>x1 : Symbol(x1, Decl(objectLiteralShorthandProperties.ts, 2, 3)) + + a +>a : Symbol(a, Decl(objectLiteralShorthandProperties.ts, 2, 10)) + +}; + +var x2 = { +>x2 : Symbol(x2, Decl(objectLiteralShorthandProperties.ts, 6, 3)) + + a, +>a : Symbol(a, Decl(objectLiteralShorthandProperties.ts, 6, 10)) +} + +var x3 = { +>x3 : Symbol(x3, Decl(objectLiteralShorthandProperties.ts, 10, 3)) + + a: 0, +>a : Symbol(a, Decl(objectLiteralShorthandProperties.ts, 10, 10)) + + b, +>b : Symbol(b, Decl(objectLiteralShorthandProperties.ts, 11, 9)) + + c, +>c : Symbol(c, Decl(objectLiteralShorthandProperties.ts, 12, 6)) + + d() { }, +>d : Symbol(d, Decl(objectLiteralShorthandProperties.ts, 13, 6)) + + x3, +>x3 : Symbol(x3, Decl(objectLiteralShorthandProperties.ts, 14, 12)) + + parent: x3 +>parent : Symbol(parent, Decl(objectLiteralShorthandProperties.ts, 15, 7)) +>x3 : Symbol(x3, Decl(objectLiteralShorthandProperties.ts, 10, 3)) + +}; + + diff --git a/tests/baselines/reference/objectLiteralShorthandProperties(target=es5).types b/tests/baselines/reference/objectLiteralShorthandProperties(target=es5).types new file mode 100644 index 0000000000000..122f27c45bdeb --- /dev/null +++ b/tests/baselines/reference/objectLiteralShorthandProperties(target=es5).types @@ -0,0 +1,60 @@ +//// [tests/cases/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandProperties.ts] //// + +=== objectLiteralShorthandProperties.ts === +var a, b, c; +>a : any +>b : any +>c : any + +var x1 = { +>x1 : { a: any; } +> : ^^^^^^^^^^^ +>{ a} : { a: any; } +> : ^^^^^^^^^^^ + + a +>a : any + +}; + +var x2 = { +>x2 : { a: any; } +> : ^^^^^^^^^^^ +>{ a,} : { a: any; } +> : ^^^^^^^^^^^ + + a, +>a : any +} + +var x3 = { +>x3 : any +>{ a: 0, b, c, d() { }, x3, parent: x3} : { a: number; b: any; c: any; d(): void; x3: any; parent: any; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + a: 0, +>a : number +> : ^^^^^^ +>0 : 0 +> : ^ + + b, +>b : any + + c, +>c : any + + d() { }, +>d : () => void +> : ^^^^^^^^^^ + + x3, +>x3 : any + + parent: x3 +>parent : any +>x3 : any + +}; + + diff --git a/tests/baselines/reference/objectRestParameterES5(target=es2015).js b/tests/baselines/reference/objectRestParameterES5(target=es2015).js new file mode 100644 index 0000000000000..85d8bf58bbecf --- /dev/null +++ b/tests/baselines/reference/objectRestParameterES5(target=es2015).js @@ -0,0 +1,64 @@ +//// [tests/cases/conformance/types/rest/objectRestParameterES5.ts] //// + +//// [objectRestParameterES5.ts] +function cloneAgain({ a, ...clone }: { a: number, b: string }): void { +} + +declare function suddenly(f: (a: { x: { z, ka }, y: string }) => void); +suddenly(({ x: a, ...rest }) => rest.y); +suddenly(({ x: { z = 12, ...nested }, ...rest } = { x: { z: 1, ka: 1 }, y: 'noo' }) => rest.y + nested.ka); + +class C { + m({ a, ...clone }: { a: number, b: string}): void { + // actually, never mind, don't clone + } + set p({ a, ...clone }: { a: number, b: string}) { + // actually, never mind, don't clone + } +} +function foobar({ bar={}, ...opts }: any = {}) { +} +foobar(); +foobar({ baz: 'hello' }); +foobar({ bar: { greeting: 'hello' } }); + + +//// [objectRestParameterES5.js] +var __rest = (this && this.__rest) || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +function cloneAgain(_a) { + var { a } = _a, clone = __rest(_a, ["a"]); +} +suddenly((_a) => { + var { x: a } = _a, rest = __rest(_a, ["x"]); + return rest.y; +}); +suddenly((_a = { x: { z: 1, ka: 1 }, y: 'noo' }) => { + var _b = _a.x, { z = 12 } = _b, nested = __rest(_b, ["z"]), rest = __rest(_a, ["x"]); + return rest.y + nested.ka; +}); +class C { + m(_a) { + var { a } = _a, clone = __rest(_a, ["a"]); + // actually, never mind, don't clone + } + set p(_a) { + var { a } = _a, clone = __rest(_a, ["a"]); + // actually, never mind, don't clone + } +} +function foobar(_a = {}) { + var { bar = {} } = _a, opts = __rest(_a, ["bar"]); +} +foobar(); +foobar({ baz: 'hello' }); +foobar({ bar: { greeting: 'hello' } }); diff --git a/tests/baselines/reference/objectRestParameterES5.symbols b/tests/baselines/reference/objectRestParameterES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/objectRestParameterES5.symbols rename to tests/baselines/reference/objectRestParameterES5(target=es2015).symbols diff --git a/tests/baselines/reference/objectRestParameterES5.types b/tests/baselines/reference/objectRestParameterES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/objectRestParameterES5.types rename to tests/baselines/reference/objectRestParameterES5(target=es2015).types diff --git a/tests/baselines/reference/objectRestParameterES5.js b/tests/baselines/reference/objectRestParameterES5(target=es5).js similarity index 100% rename from tests/baselines/reference/objectRestParameterES5.js rename to tests/baselines/reference/objectRestParameterES5(target=es5).js diff --git a/tests/baselines/reference/objectRestParameterES5(target=es5).symbols b/tests/baselines/reference/objectRestParameterES5(target=es5).symbols new file mode 100644 index 0000000000000..8c652031d3178 --- /dev/null +++ b/tests/baselines/reference/objectRestParameterES5(target=es5).symbols @@ -0,0 +1,85 @@ +//// [tests/cases/conformance/types/rest/objectRestParameterES5.ts] //// + +=== objectRestParameterES5.ts === +function cloneAgain({ a, ...clone }: { a: number, b: string }): void { +>cloneAgain : Symbol(cloneAgain, Decl(objectRestParameterES5.ts, 0, 0)) +>a : Symbol(a, Decl(objectRestParameterES5.ts, 0, 21)) +>clone : Symbol(clone, Decl(objectRestParameterES5.ts, 0, 24)) +>a : Symbol(a, Decl(objectRestParameterES5.ts, 0, 38)) +>b : Symbol(b, Decl(objectRestParameterES5.ts, 0, 49)) +} + +declare function suddenly(f: (a: { x: { z, ka }, y: string }) => void); +>suddenly : Symbol(suddenly, Decl(objectRestParameterES5.ts, 1, 1)) +>f : Symbol(f, Decl(objectRestParameterES5.ts, 3, 26)) +>a : Symbol(a, Decl(objectRestParameterES5.ts, 3, 30)) +>x : Symbol(x, Decl(objectRestParameterES5.ts, 3, 34)) +>z : Symbol(z, Decl(objectRestParameterES5.ts, 3, 39)) +>ka : Symbol(ka, Decl(objectRestParameterES5.ts, 3, 42)) +>y : Symbol(y, Decl(objectRestParameterES5.ts, 3, 48)) + +suddenly(({ x: a, ...rest }) => rest.y); +>suddenly : Symbol(suddenly, Decl(objectRestParameterES5.ts, 1, 1)) +>x : Symbol(x, Decl(objectRestParameterES5.ts, 3, 34)) +>a : Symbol(a, Decl(objectRestParameterES5.ts, 4, 11)) +>rest : Symbol(rest, Decl(objectRestParameterES5.ts, 4, 17)) +>rest.y : Symbol(y, Decl(objectRestParameterES5.ts, 3, 48)) +>rest : Symbol(rest, Decl(objectRestParameterES5.ts, 4, 17)) +>y : Symbol(y, Decl(objectRestParameterES5.ts, 3, 48)) + +suddenly(({ x: { z = 12, ...nested }, ...rest } = { x: { z: 1, ka: 1 }, y: 'noo' }) => rest.y + nested.ka); +>suddenly : Symbol(suddenly, Decl(objectRestParameterES5.ts, 1, 1)) +>x : Symbol(x, Decl(objectRestParameterES5.ts, 3, 34)) +>z : Symbol(z, Decl(objectRestParameterES5.ts, 5, 16)) +>nested : Symbol(nested, Decl(objectRestParameterES5.ts, 5, 24)) +>rest : Symbol(rest, Decl(objectRestParameterES5.ts, 5, 37)) +>x : Symbol(x, Decl(objectRestParameterES5.ts, 5, 51)) +>z : Symbol(z, Decl(objectRestParameterES5.ts, 5, 56)) +>ka : Symbol(ka, Decl(objectRestParameterES5.ts, 5, 62)) +>y : Symbol(y, Decl(objectRestParameterES5.ts, 5, 71)) +>rest.y : Symbol(y, Decl(objectRestParameterES5.ts, 3, 48)) +>rest : Symbol(rest, Decl(objectRestParameterES5.ts, 5, 37)) +>y : Symbol(y, Decl(objectRestParameterES5.ts, 3, 48)) +>nested.ka : Symbol(ka, Decl(objectRestParameterES5.ts, 3, 42)) +>nested : Symbol(nested, Decl(objectRestParameterES5.ts, 5, 24)) +>ka : Symbol(ka, Decl(objectRestParameterES5.ts, 3, 42)) + +class C { +>C : Symbol(C, Decl(objectRestParameterES5.ts, 5, 107)) + + m({ a, ...clone }: { a: number, b: string}): void { +>m : Symbol(C.m, Decl(objectRestParameterES5.ts, 7, 9)) +>a : Symbol(a, Decl(objectRestParameterES5.ts, 8, 7)) +>clone : Symbol(clone, Decl(objectRestParameterES5.ts, 8, 10)) +>a : Symbol(a, Decl(objectRestParameterES5.ts, 8, 24)) +>b : Symbol(b, Decl(objectRestParameterES5.ts, 8, 35)) + + // actually, never mind, don't clone + } + set p({ a, ...clone }: { a: number, b: string}) { +>p : Symbol(C.p, Decl(objectRestParameterES5.ts, 10, 5)) +>a : Symbol(a, Decl(objectRestParameterES5.ts, 11, 11)) +>clone : Symbol(clone, Decl(objectRestParameterES5.ts, 11, 14)) +>a : Symbol(a, Decl(objectRestParameterES5.ts, 11, 28)) +>b : Symbol(b, Decl(objectRestParameterES5.ts, 11, 39)) + + // actually, never mind, don't clone + } +} +function foobar({ bar={}, ...opts }: any = {}) { +>foobar : Symbol(foobar, Decl(objectRestParameterES5.ts, 14, 1)) +>bar : Symbol(bar, Decl(objectRestParameterES5.ts, 15, 17)) +>opts : Symbol(opts, Decl(objectRestParameterES5.ts, 15, 25)) +} +foobar(); +>foobar : Symbol(foobar, Decl(objectRestParameterES5.ts, 14, 1)) + +foobar({ baz: 'hello' }); +>foobar : Symbol(foobar, Decl(objectRestParameterES5.ts, 14, 1)) +>baz : Symbol(baz, Decl(objectRestParameterES5.ts, 18, 8)) + +foobar({ bar: { greeting: 'hello' } }); +>foobar : Symbol(foobar, Decl(objectRestParameterES5.ts, 14, 1)) +>bar : Symbol(bar, Decl(objectRestParameterES5.ts, 19, 8)) +>greeting : Symbol(greeting, Decl(objectRestParameterES5.ts, 19, 15)) + diff --git a/tests/baselines/reference/objectRestParameterES5(target=es5).types b/tests/baselines/reference/objectRestParameterES5(target=es5).types new file mode 100644 index 0000000000000..bb237dd286d39 --- /dev/null +++ b/tests/baselines/reference/objectRestParameterES5(target=es5).types @@ -0,0 +1,176 @@ +//// [tests/cases/conformance/types/rest/objectRestParameterES5.ts] //// + +=== objectRestParameterES5.ts === +function cloneAgain({ a, ...clone }: { a: number, b: string }): void { +>cloneAgain : ({ a, ...clone }: { a: number; b: string; }) => void +> : ^ ^^ ^^^^^ +>a : number +> : ^^^^^^ +>clone : { b: string; } +> : ^^^^^ ^^^ +>a : number +> : ^^^^^^ +>b : string +> : ^^^^^^ +} + +declare function suddenly(f: (a: { x: { z, ka }, y: string }) => void); +>suddenly : (f: (a: { x: { z: any; ka: any; }; y: string; }) => void) => any +> : ^ ^^ ^^^ ^^^ ^^^^^^^^ +>f : (a: { x: { z: any; ka: any; }; y: string; }) => void +> : ^ ^^ ^^^ ^^^ ^^^^^ +>a : { x: { z: any; ka: any; }; y: string; } +> : ^^^^^ ^^^ ^^^ ^^^^^ ^^^ +>x : { z: any; ka: any; } +> : ^^^^^^^^^^^^^^^^^^^^ +>z : any +>ka : any +>y : string +> : ^^^^^^ + +suddenly(({ x: a, ...rest }) => rest.y); +>suddenly(({ x: a, ...rest }) => rest.y) : any +>suddenly : (f: (a: { x: { z: any; ka: any; }; y: string; }) => void) => any +> : ^ ^^ ^^^ ^^^ ^^^^^^^^ +>({ x: a, ...rest }) => rest.y : ({ x: a, ...rest }: { x: { z: any; ka: any; }; y: string; }) => string +> : ^ ^^^^^^^ ^^^ ^^^ ^^^^^ ^^^^^^^^^^^^^^ +>x : any +> : ^^^ +>a : { z: any; ka: any; } +> : ^^^^^^^^^^^^^^^^^^^^ +>rest : { y: string; } +> : ^^^^^ ^^^ +>rest.y : string +> : ^^^^^^ +>rest : { y: string; } +> : ^^^^^ ^^^ +>y : string +> : ^^^^^^ + +suddenly(({ x: { z = 12, ...nested }, ...rest } = { x: { z: 1, ka: 1 }, y: 'noo' }) => rest.y + nested.ka); +>suddenly(({ x: { z = 12, ...nested }, ...rest } = { x: { z: 1, ka: 1 }, y: 'noo' }) => rest.y + nested.ka) : any +>suddenly : (f: (a: { x: { z: any; ka: any; }; y: string; }) => void) => any +> : ^ ^^ ^^^ ^^^ ^^^^^^^^ +>({ x: { z = 12, ...nested }, ...rest } = { x: { z: 1, ka: 1 }, y: 'noo' }) => rest.y + nested.ka : ({ x: { z, ...nested }, ...rest }?: { x: { z: any; ka: any; }; y: string; }) => string +> : ^ ^^^^^^^^ ^^^ ^^^ ^^^^^ ^^^^^^^^^^^^^^ +>x : any +> : ^^^ +>z : any +> : ^^^ +>12 : 12 +> : ^^ +>nested : { ka: any; } +> : ^^^^^^^^^^^^ +>rest : { y: string; } +> : ^^^^^ ^^^ +>{ x: { z: 1, ka: 1 }, y: 'noo' } : { x: { z: number; ka: number; }; y: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>x : { z: number; ka: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ z: 1, ka: 1 } : { z: number; ka: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^ +>z : number +> : ^^^^^^ +>1 : 1 +> : ^ +>ka : number +> : ^^^^^^ +>1 : 1 +> : ^ +>y : string +> : ^^^^^^ +>'noo' : "noo" +> : ^^^^^ +>rest.y + nested.ka : string +> : ^^^^^^ +>rest.y : string +> : ^^^^^^ +>rest : { y: string; } +> : ^^^^^ ^^^ +>y : string +> : ^^^^^^ +>nested.ka : any +>nested : { ka: any; } +> : ^^^^^^^^^^^^ +>ka : any +> : ^^^ + +class C { +>C : C +> : ^ + + m({ a, ...clone }: { a: number, b: string}): void { +>m : ({ a, ...clone }: { a: number; b: string; }) => void +> : ^ ^^ ^^^^^ +>a : number +> : ^^^^^^ +>clone : { b: string; } +> : ^^^^^ ^^^ +>a : number +> : ^^^^^^ +>b : string +> : ^^^^^^ + + // actually, never mind, don't clone + } + set p({ a, ...clone }: { a: number, b: string}) { +>p : { a: number; b: string; } +> : ^^^^^ ^^^^^ ^^^ +>a : number +> : ^^^^^^ +>clone : { b: string; } +> : ^^^^^ ^^^ +>a : number +> : ^^^^^^ +>b : string +> : ^^^^^^ + + // actually, never mind, don't clone + } +} +function foobar({ bar={}, ...opts }: any = {}) { +>foobar : ({ bar, ...opts }?: any) => void +> : ^ ^^^ ^^^^^^^^^ +>bar : any +> : ^^^ +>{} : {} +> : ^^ +>opts : any +> : ^^^ +>{} : {} +> : ^^ +} +foobar(); +>foobar() : void +> : ^^^^ +>foobar : ({ bar, ...opts }?: any) => void +> : ^ ^^^ ^^^^^^^^^ + +foobar({ baz: 'hello' }); +>foobar({ baz: 'hello' }) : void +> : ^^^^ +>foobar : ({ bar, ...opts }?: any) => void +> : ^ ^^^ ^^^^^^^^^ +>{ baz: 'hello' } : { baz: string; } +> : ^^^^^^^^^^^^^^^^ +>baz : string +> : ^^^^^^ +>'hello' : "hello" +> : ^^^^^^^ + +foobar({ bar: { greeting: 'hello' } }); +>foobar({ bar: { greeting: 'hello' } }) : void +> : ^^^^ +>foobar : ({ bar, ...opts }?: any) => void +> : ^ ^^^ ^^^^^^^^^ +>{ bar: { greeting: 'hello' } } : { bar: { greeting: string; }; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>bar : { greeting: string; } +> : ^^^^^^^^^^^^^^^^^^^^^ +>{ greeting: 'hello' } : { greeting: string; } +> : ^^^^^^^^^^^^^^^^^^^^^ +>greeting : string +> : ^^^^^^ +>'hello' : "hello" +> : ^^^^^^^ + diff --git a/tests/baselines/reference/objectSpread(target=es2015).js b/tests/baselines/reference/objectSpread(target=es2015).js new file mode 100644 index 0000000000000..61742822759b5 --- /dev/null +++ b/tests/baselines/reference/objectSpread(target=es2015).js @@ -0,0 +1,247 @@ +//// [tests/cases/conformance/types/spread/objectSpread.ts] //// + +//// [objectSpread.ts] +let o = { a: 1, b: 'no' } +let o2 = { b: 'yes', c: true } +let swap = { a: 'yes', b: -1 }; + +let addAfter: { a: number, b: string, c: boolean } = + { ...o, c: false } +let addBefore: { a: number, b: string, c: boolean } = + { c: false, ...o } +let override: { a: number, b: string } = + { ...o, b: 'override' } +let nested: { a: number, b: boolean, c: string } = + { ...{ a: 3, ...{ b: false, c: 'overriden' } }, c: 'whatever' } +let combined: { a: number, b: string, c: boolean } = + { ...o, ...o2 } +let combinedAfter: { a: number, b: string, c: boolean } = + { ...o, ...o2, b: 'ok' } +let combinedNestedChangeType: { a: number, b: boolean, c: number } = + { ...{ a: 1, ...{ b: false, c: 'overriden' } }, c: -1 } +let propertyNested: { a: { a: number, b: string } } = + { a: { ... o } } +// accessors don't copy the descriptor +// (which means that readonly getters become read/write properties) +let op = { get a () { return 6 } }; +let getter: { a: number, c: number } = + { ...op, c: 7 } +getter.a = 12; + +// functions result in { } +let spreadFunc = { ...(function () { }) }; + +type Header = { head: string, body: string, authToken: string } +function from16326(this: { header: Header }, header: Header, authToken: string): Header { + return { + ...this.header, + ...header, + ...authToken && { authToken } + } +} +// boolean && T results in Partial +function conditionalSpreadBoolean(b: boolean) : { x: number, y: number } { + let o = { x: 12, y: 13 } + o = { + ...o, + ...b && { x: 14 } + } + let o2 = { ...b && { x: 21 }} + return o; +} +function conditionalSpreadNumber(nt: number): { x: number, y: number } { + let o = { x: 15, y: 16 } + o = { + ...o, + ...nt && { x: nt } + } + let o2 = { ...nt && { x: nt }} + return o; +} +function conditionalSpreadString(st: string): { x: string, y: number } { + let o = { x: 'hi', y: 17 } + o = { + ...o, + ...st && { x: st } + } + let o2 = { ...st && { x: st }} + return o; +} + +// any results in any +let anything: any; +let spreadAny = { ...anything }; + +// methods are not enumerable +class C { p = 1; m() { } } +let c: C = new C() +let spreadC: { p: number } = { ...c } + +// own methods are enumerable +let cplus: { p: number, plus(): void } = { ...c, plus() { return this.p + 1; } }; +cplus.plus(); + +// new field's type conflicting with existing field is OK +let changeTypeAfter: { a: string, b: string } = + { ...o, a: 'wrong type?' } +let changeTypeBoth: { a: string, b: number } = + { ...o, ...swap }; + +// optional +function container( + definiteBoolean: { sn: boolean }, + definiteString: { sn: string }, + optionalString: { sn?: string }, + optionalNumber: { sn?: number }) { + let optionalUnionStops: { sn: string | number | boolean } = { ...definiteBoolean, ...definiteString, ...optionalNumber }; + let optionalUnionDuplicates: { sn: string | number } = { ...definiteBoolean, ...definiteString, ...optionalString, ...optionalNumber }; + let allOptional: { sn?: string | number } = { ...optionalString, ...optionalNumber }; + + // computed property + let computedFirst: { a: number, b: string, "before everything": number } = + { ['before everything']: 12, ...o, b: 'yes' } + let computedAfter: { a: number, b: string, "at the end": number } = + { ...o, b: 'yeah', ['at the end']: 14 } +} +// shortcut syntax +let a = 12; +let shortCutted: { a: number, b: string } = { ...o, a } +// non primitive +let spreadNonPrimitive = { ...{}}; + +// generic spreads + +function f(t: T, u: U) { + return { ...t, ...u, id: 'id' }; +} + +let exclusive: { id: string, a: number, b: string, c: string, d: boolean } = + f({ a: 1, b: 'yes' }, { c: 'no', d: false }) +let overlap: { id: string, a: number, b: string } = + f({ a: 1 }, { a: 2, b: 'extra' }) +let overlapConflict: { id:string, a: string } = + f({ a: 1 }, { a: 'mismatch' }) +let overwriteId: { id: string, a: number, c: number, d: string } = + f({ a: 1, id: true }, { c: 1, d: 'no' }) + +function genericSpread(t: T, u: U, v: T | U, w: T | { s: string }, obj: { x: number }) { + let x01 = { ...t }; + let x02 = { ...t, ...t }; + let x03 = { ...t, ...u }; + let x04 = { ...u, ...t }; + let x05 = { a: 5, b: 'hi', ...t }; + let x06 = { ...t, a: 5, b: 'hi' }; + let x07 = { a: 5, b: 'hi', ...t, c: true, ...obj }; + let x09 = { a: 5, ...t, b: 'hi', c: true, ...obj }; + let x10 = { a: 5, ...t, b: 'hi', ...u, ...obj }; + let x11 = { ...v }; + let x12 = { ...v, ...obj }; + let x13 = { ...w }; + let x14 = { ...w, ...obj }; + let x15 = { ...t, ...v }; + let x16 = { ...t, ...w }; + let x17 = { ...t, ...w, ...obj }; + let x18 = { ...t, ...v, ...w }; +} + + +//// [objectSpread.js] +let o = { a: 1, b: 'no' }; +let o2 = { b: 'yes', c: true }; +let swap = { a: 'yes', b: -1 }; +let addAfter = Object.assign(Object.assign({}, o), { c: false }); +let addBefore = Object.assign({ c: false }, o); +let override = Object.assign(Object.assign({}, o), { b: 'override' }); +let nested = Object.assign(Object.assign({}, Object.assign({ a: 3 }, { b: false, c: 'overriden' })), { c: 'whatever' }); +let combined = Object.assign(Object.assign({}, o), o2); +let combinedAfter = Object.assign(Object.assign(Object.assign({}, o), o2), { b: 'ok' }); +let combinedNestedChangeType = Object.assign(Object.assign({}, Object.assign({ a: 1 }, { b: false, c: 'overriden' })), { c: -1 }); +let propertyNested = { a: Object.assign({}, o) }; +// accessors don't copy the descriptor +// (which means that readonly getters become read/write properties) +let op = { get a() { return 6; } }; +let getter = Object.assign(Object.assign({}, op), { c: 7 }); +getter.a = 12; +// functions result in { } +let spreadFunc = Object.assign({}, (function () { })); +function from16326(header, authToken) { + return Object.assign(Object.assign(Object.assign({}, this.header), header), authToken && { authToken }); +} +// boolean && T results in Partial +function conditionalSpreadBoolean(b) { + let o = { x: 12, y: 13 }; + o = Object.assign(Object.assign({}, o), b && { x: 14 }); + let o2 = Object.assign({}, b && { x: 21 }); + return o; +} +function conditionalSpreadNumber(nt) { + let o = { x: 15, y: 16 }; + o = Object.assign(Object.assign({}, o), nt && { x: nt }); + let o2 = Object.assign({}, nt && { x: nt }); + return o; +} +function conditionalSpreadString(st) { + let o = { x: 'hi', y: 17 }; + o = Object.assign(Object.assign({}, o), st && { x: st }); + let o2 = Object.assign({}, st && { x: st }); + return o; +} +// any results in any +let anything; +let spreadAny = Object.assign({}, anything); +// methods are not enumerable +class C { + constructor() { + this.p = 1; + } + m() { } +} +let c = new C(); +let spreadC = Object.assign({}, c); +// own methods are enumerable +let cplus = Object.assign(Object.assign({}, c), { plus() { return this.p + 1; } }); +cplus.plus(); +// new field's type conflicting with existing field is OK +let changeTypeAfter = Object.assign(Object.assign({}, o), { a: 'wrong type?' }); +let changeTypeBoth = Object.assign(Object.assign({}, o), swap); +// optional +function container(definiteBoolean, definiteString, optionalString, optionalNumber) { + let optionalUnionStops = Object.assign(Object.assign(Object.assign({}, definiteBoolean), definiteString), optionalNumber); + let optionalUnionDuplicates = Object.assign(Object.assign(Object.assign(Object.assign({}, definiteBoolean), definiteString), optionalString), optionalNumber); + let allOptional = Object.assign(Object.assign({}, optionalString), optionalNumber); + // computed property + let computedFirst = Object.assign(Object.assign({ ['before everything']: 12 }, o), { b: 'yes' }); + let computedAfter = Object.assign(Object.assign({}, o), { b: 'yeah', ['at the end']: 14 }); +} +// shortcut syntax +let a = 12; +let shortCutted = Object.assign(Object.assign({}, o), { a }); +// non primitive +let spreadNonPrimitive = Object.assign({}, {}); +// generic spreads +function f(t, u) { + return Object.assign(Object.assign(Object.assign({}, t), u), { id: 'id' }); +} +let exclusive = f({ a: 1, b: 'yes' }, { c: 'no', d: false }); +let overlap = f({ a: 1 }, { a: 2, b: 'extra' }); +let overlapConflict = f({ a: 1 }, { a: 'mismatch' }); +let overwriteId = f({ a: 1, id: true }, { c: 1, d: 'no' }); +function genericSpread(t, u, v, w, obj) { + let x01 = Object.assign({}, t); + let x02 = Object.assign(Object.assign({}, t), t); + let x03 = Object.assign(Object.assign({}, t), u); + let x04 = Object.assign(Object.assign({}, u), t); + let x05 = Object.assign({ a: 5, b: 'hi' }, t); + let x06 = Object.assign(Object.assign({}, t), { a: 5, b: 'hi' }); + let x07 = Object.assign(Object.assign(Object.assign({ a: 5, b: 'hi' }, t), { c: true }), obj); + let x09 = Object.assign(Object.assign(Object.assign({ a: 5 }, t), { b: 'hi', c: true }), obj); + let x10 = Object.assign(Object.assign(Object.assign(Object.assign({ a: 5 }, t), { b: 'hi' }), u), obj); + let x11 = Object.assign({}, v); + let x12 = Object.assign(Object.assign({}, v), obj); + let x13 = Object.assign({}, w); + let x14 = Object.assign(Object.assign({}, w), obj); + let x15 = Object.assign(Object.assign({}, t), v); + let x16 = Object.assign(Object.assign({}, t), w); + let x17 = Object.assign(Object.assign(Object.assign({}, t), w), obj); + let x18 = Object.assign(Object.assign(Object.assign({}, t), v), w); +} diff --git a/tests/baselines/reference/objectSpread.symbols b/tests/baselines/reference/objectSpread(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/objectSpread.symbols rename to tests/baselines/reference/objectSpread(target=es2015).symbols diff --git a/tests/baselines/reference/objectSpread.types b/tests/baselines/reference/objectSpread(target=es2015).types similarity index 100% rename from tests/baselines/reference/objectSpread.types rename to tests/baselines/reference/objectSpread(target=es2015).types diff --git a/tests/baselines/reference/objectSpread.js b/tests/baselines/reference/objectSpread(target=es5).js similarity index 100% rename from tests/baselines/reference/objectSpread.js rename to tests/baselines/reference/objectSpread(target=es5).js diff --git a/tests/baselines/reference/objectSpread(target=es5).symbols b/tests/baselines/reference/objectSpread(target=es5).symbols new file mode 100644 index 0000000000000..88416752533b3 --- /dev/null +++ b/tests/baselines/reference/objectSpread(target=es5).symbols @@ -0,0 +1,567 @@ +//// [tests/cases/conformance/types/spread/objectSpread.ts] //// + +=== objectSpread.ts === +let o = { a: 1, b: 'no' } +>o : Symbol(o, Decl(objectSpread.ts, 0, 3)) +>a : Symbol(a, Decl(objectSpread.ts, 0, 9)) +>b : Symbol(b, Decl(objectSpread.ts, 0, 15)) + +let o2 = { b: 'yes', c: true } +>o2 : Symbol(o2, Decl(objectSpread.ts, 1, 3)) +>b : Symbol(b, Decl(objectSpread.ts, 1, 10)) +>c : Symbol(c, Decl(objectSpread.ts, 1, 20)) + +let swap = { a: 'yes', b: -1 }; +>swap : Symbol(swap, Decl(objectSpread.ts, 2, 3)) +>a : Symbol(a, Decl(objectSpread.ts, 2, 12)) +>b : Symbol(b, Decl(objectSpread.ts, 2, 22)) + +let addAfter: { a: number, b: string, c: boolean } = +>addAfter : Symbol(addAfter, Decl(objectSpread.ts, 4, 3)) +>a : Symbol(a, Decl(objectSpread.ts, 4, 15)) +>b : Symbol(b, Decl(objectSpread.ts, 4, 26)) +>c : Symbol(c, Decl(objectSpread.ts, 4, 37)) + + { ...o, c: false } +>o : Symbol(o, Decl(objectSpread.ts, 0, 3)) +>c : Symbol(c, Decl(objectSpread.ts, 5, 11)) + +let addBefore: { a: number, b: string, c: boolean } = +>addBefore : Symbol(addBefore, Decl(objectSpread.ts, 6, 3)) +>a : Symbol(a, Decl(objectSpread.ts, 6, 16)) +>b : Symbol(b, Decl(objectSpread.ts, 6, 27)) +>c : Symbol(c, Decl(objectSpread.ts, 6, 38)) + + { c: false, ...o } +>c : Symbol(c, Decl(objectSpread.ts, 7, 5)) +>o : Symbol(o, Decl(objectSpread.ts, 0, 3)) + +let override: { a: number, b: string } = +>override : Symbol(override, Decl(objectSpread.ts, 8, 3)) +>a : Symbol(a, Decl(objectSpread.ts, 8, 15)) +>b : Symbol(b, Decl(objectSpread.ts, 8, 26)) + + { ...o, b: 'override' } +>o : Symbol(o, Decl(objectSpread.ts, 0, 3)) +>b : Symbol(b, Decl(objectSpread.ts, 9, 11)) + +let nested: { a: number, b: boolean, c: string } = +>nested : Symbol(nested, Decl(objectSpread.ts, 10, 3)) +>a : Symbol(a, Decl(objectSpread.ts, 10, 13)) +>b : Symbol(b, Decl(objectSpread.ts, 10, 24)) +>c : Symbol(c, Decl(objectSpread.ts, 10, 36)) + + { ...{ a: 3, ...{ b: false, c: 'overriden' } }, c: 'whatever' } +>a : Symbol(a, Decl(objectSpread.ts, 11, 10)) +>b : Symbol(b, Decl(objectSpread.ts, 11, 21)) +>c : Symbol(c, Decl(objectSpread.ts, 11, 31)) +>c : Symbol(c, Decl(objectSpread.ts, 11, 51)) + +let combined: { a: number, b: string, c: boolean } = +>combined : Symbol(combined, Decl(objectSpread.ts, 12, 3)) +>a : Symbol(a, Decl(objectSpread.ts, 12, 15)) +>b : Symbol(b, Decl(objectSpread.ts, 12, 26)) +>c : Symbol(c, Decl(objectSpread.ts, 12, 37)) + + { ...o, ...o2 } +>o : Symbol(o, Decl(objectSpread.ts, 0, 3)) +>o2 : Symbol(o2, Decl(objectSpread.ts, 1, 3)) + +let combinedAfter: { a: number, b: string, c: boolean } = +>combinedAfter : Symbol(combinedAfter, Decl(objectSpread.ts, 14, 3)) +>a : Symbol(a, Decl(objectSpread.ts, 14, 20)) +>b : Symbol(b, Decl(objectSpread.ts, 14, 31)) +>c : Symbol(c, Decl(objectSpread.ts, 14, 42)) + + { ...o, ...o2, b: 'ok' } +>o : Symbol(o, Decl(objectSpread.ts, 0, 3)) +>o2 : Symbol(o2, Decl(objectSpread.ts, 1, 3)) +>b : Symbol(b, Decl(objectSpread.ts, 15, 18)) + +let combinedNestedChangeType: { a: number, b: boolean, c: number } = +>combinedNestedChangeType : Symbol(combinedNestedChangeType, Decl(objectSpread.ts, 16, 3)) +>a : Symbol(a, Decl(objectSpread.ts, 16, 31)) +>b : Symbol(b, Decl(objectSpread.ts, 16, 42)) +>c : Symbol(c, Decl(objectSpread.ts, 16, 54)) + + { ...{ a: 1, ...{ b: false, c: 'overriden' } }, c: -1 } +>a : Symbol(a, Decl(objectSpread.ts, 17, 10)) +>b : Symbol(b, Decl(objectSpread.ts, 17, 21)) +>c : Symbol(c, Decl(objectSpread.ts, 17, 31)) +>c : Symbol(c, Decl(objectSpread.ts, 17, 51)) + +let propertyNested: { a: { a: number, b: string } } = +>propertyNested : Symbol(propertyNested, Decl(objectSpread.ts, 18, 3)) +>a : Symbol(a, Decl(objectSpread.ts, 18, 21)) +>a : Symbol(a, Decl(objectSpread.ts, 18, 26)) +>b : Symbol(b, Decl(objectSpread.ts, 18, 37)) + + { a: { ... o } } +>a : Symbol(a, Decl(objectSpread.ts, 19, 5)) +>o : Symbol(o, Decl(objectSpread.ts, 0, 3)) + +// accessors don't copy the descriptor +// (which means that readonly getters become read/write properties) +let op = { get a () { return 6 } }; +>op : Symbol(op, Decl(objectSpread.ts, 22, 3)) +>a : Symbol(a, Decl(objectSpread.ts, 22, 10)) + +let getter: { a: number, c: number } = +>getter : Symbol(getter, Decl(objectSpread.ts, 23, 3)) +>a : Symbol(a, Decl(objectSpread.ts, 23, 13)) +>c : Symbol(c, Decl(objectSpread.ts, 23, 24)) + + { ...op, c: 7 } +>op : Symbol(op, Decl(objectSpread.ts, 22, 3)) +>c : Symbol(c, Decl(objectSpread.ts, 24, 12)) + +getter.a = 12; +>getter.a : Symbol(a, Decl(objectSpread.ts, 23, 13)) +>getter : Symbol(getter, Decl(objectSpread.ts, 23, 3)) +>a : Symbol(a, Decl(objectSpread.ts, 23, 13)) + +// functions result in { } +let spreadFunc = { ...(function () { }) }; +>spreadFunc : Symbol(spreadFunc, Decl(objectSpread.ts, 28, 3)) + +type Header = { head: string, body: string, authToken: string } +>Header : Symbol(Header, Decl(objectSpread.ts, 28, 42)) +>head : Symbol(head, Decl(objectSpread.ts, 30, 15)) +>body : Symbol(body, Decl(objectSpread.ts, 30, 29)) +>authToken : Symbol(authToken, Decl(objectSpread.ts, 30, 43)) + +function from16326(this: { header: Header }, header: Header, authToken: string): Header { +>from16326 : Symbol(from16326, Decl(objectSpread.ts, 30, 63)) +>this : Symbol(this, Decl(objectSpread.ts, 31, 19)) +>header : Symbol(header, Decl(objectSpread.ts, 31, 26)) +>Header : Symbol(Header, Decl(objectSpread.ts, 28, 42)) +>header : Symbol(header, Decl(objectSpread.ts, 31, 44)) +>Header : Symbol(Header, Decl(objectSpread.ts, 28, 42)) +>authToken : Symbol(authToken, Decl(objectSpread.ts, 31, 60)) +>Header : Symbol(Header, Decl(objectSpread.ts, 28, 42)) + + return { + ...this.header, +>this.header : Symbol(header, Decl(objectSpread.ts, 31, 26)) +>this : Symbol(this, Decl(objectSpread.ts, 31, 19)) +>header : Symbol(header, Decl(objectSpread.ts, 31, 26)) + + ...header, +>header : Symbol(header, Decl(objectSpread.ts, 31, 44)) + + ...authToken && { authToken } +>authToken : Symbol(authToken, Decl(objectSpread.ts, 31, 60)) +>authToken : Symbol(authToken, Decl(objectSpread.ts, 35, 25)) + } +} +// boolean && T results in Partial +function conditionalSpreadBoolean(b: boolean) : { x: number, y: number } { +>conditionalSpreadBoolean : Symbol(conditionalSpreadBoolean, Decl(objectSpread.ts, 37, 1)) +>b : Symbol(b, Decl(objectSpread.ts, 39, 34)) +>x : Symbol(x, Decl(objectSpread.ts, 39, 49)) +>y : Symbol(y, Decl(objectSpread.ts, 39, 60)) + + let o = { x: 12, y: 13 } +>o : Symbol(o, Decl(objectSpread.ts, 40, 7)) +>x : Symbol(x, Decl(objectSpread.ts, 40, 13)) +>y : Symbol(y, Decl(objectSpread.ts, 40, 20)) + + o = { +>o : Symbol(o, Decl(objectSpread.ts, 40, 7)) + + ...o, +>o : Symbol(o, Decl(objectSpread.ts, 40, 7)) + + ...b && { x: 14 } +>b : Symbol(b, Decl(objectSpread.ts, 39, 34)) +>x : Symbol(x, Decl(objectSpread.ts, 43, 17)) + } + let o2 = { ...b && { x: 21 }} +>o2 : Symbol(o2, Decl(objectSpread.ts, 45, 7)) +>b : Symbol(b, Decl(objectSpread.ts, 39, 34)) +>x : Symbol(x, Decl(objectSpread.ts, 45, 24)) + + return o; +>o : Symbol(o, Decl(objectSpread.ts, 40, 7)) +} +function conditionalSpreadNumber(nt: number): { x: number, y: number } { +>conditionalSpreadNumber : Symbol(conditionalSpreadNumber, Decl(objectSpread.ts, 47, 1)) +>nt : Symbol(nt, Decl(objectSpread.ts, 48, 33)) +>x : Symbol(x, Decl(objectSpread.ts, 48, 47)) +>y : Symbol(y, Decl(objectSpread.ts, 48, 58)) + + let o = { x: 15, y: 16 } +>o : Symbol(o, Decl(objectSpread.ts, 49, 7)) +>x : Symbol(x, Decl(objectSpread.ts, 49, 13)) +>y : Symbol(y, Decl(objectSpread.ts, 49, 20)) + + o = { +>o : Symbol(o, Decl(objectSpread.ts, 49, 7)) + + ...o, +>o : Symbol(o, Decl(objectSpread.ts, 49, 7)) + + ...nt && { x: nt } +>nt : Symbol(nt, Decl(objectSpread.ts, 48, 33)) +>x : Symbol(x, Decl(objectSpread.ts, 52, 18)) +>nt : Symbol(nt, Decl(objectSpread.ts, 48, 33)) + } + let o2 = { ...nt && { x: nt }} +>o2 : Symbol(o2, Decl(objectSpread.ts, 54, 7)) +>nt : Symbol(nt, Decl(objectSpread.ts, 48, 33)) +>x : Symbol(x, Decl(objectSpread.ts, 54, 25)) +>nt : Symbol(nt, Decl(objectSpread.ts, 48, 33)) + + return o; +>o : Symbol(o, Decl(objectSpread.ts, 49, 7)) +} +function conditionalSpreadString(st: string): { x: string, y: number } { +>conditionalSpreadString : Symbol(conditionalSpreadString, Decl(objectSpread.ts, 56, 1)) +>st : Symbol(st, Decl(objectSpread.ts, 57, 33)) +>x : Symbol(x, Decl(objectSpread.ts, 57, 47)) +>y : Symbol(y, Decl(objectSpread.ts, 57, 58)) + + let o = { x: 'hi', y: 17 } +>o : Symbol(o, Decl(objectSpread.ts, 58, 7)) +>x : Symbol(x, Decl(objectSpread.ts, 58, 13)) +>y : Symbol(y, Decl(objectSpread.ts, 58, 22)) + + o = { +>o : Symbol(o, Decl(objectSpread.ts, 58, 7)) + + ...o, +>o : Symbol(o, Decl(objectSpread.ts, 58, 7)) + + ...st && { x: st } +>st : Symbol(st, Decl(objectSpread.ts, 57, 33)) +>x : Symbol(x, Decl(objectSpread.ts, 61, 18)) +>st : Symbol(st, Decl(objectSpread.ts, 57, 33)) + } + let o2 = { ...st && { x: st }} +>o2 : Symbol(o2, Decl(objectSpread.ts, 63, 7)) +>st : Symbol(st, Decl(objectSpread.ts, 57, 33)) +>x : Symbol(x, Decl(objectSpread.ts, 63, 25)) +>st : Symbol(st, Decl(objectSpread.ts, 57, 33)) + + return o; +>o : Symbol(o, Decl(objectSpread.ts, 58, 7)) +} + +// any results in any +let anything: any; +>anything : Symbol(anything, Decl(objectSpread.ts, 68, 3)) + +let spreadAny = { ...anything }; +>spreadAny : Symbol(spreadAny, Decl(objectSpread.ts, 69, 3)) +>anything : Symbol(anything, Decl(objectSpread.ts, 68, 3)) + +// methods are not enumerable +class C { p = 1; m() { } } +>C : Symbol(C, Decl(objectSpread.ts, 69, 32)) +>p : Symbol(C.p, Decl(objectSpread.ts, 72, 9)) +>m : Symbol(C.m, Decl(objectSpread.ts, 72, 16)) + +let c: C = new C() +>c : Symbol(c, Decl(objectSpread.ts, 73, 3)) +>C : Symbol(C, Decl(objectSpread.ts, 69, 32)) +>C : Symbol(C, Decl(objectSpread.ts, 69, 32)) + +let spreadC: { p: number } = { ...c } +>spreadC : Symbol(spreadC, Decl(objectSpread.ts, 74, 3)) +>p : Symbol(p, Decl(objectSpread.ts, 74, 14)) +>c : Symbol(c, Decl(objectSpread.ts, 73, 3)) + +// own methods are enumerable +let cplus: { p: number, plus(): void } = { ...c, plus() { return this.p + 1; } }; +>cplus : Symbol(cplus, Decl(objectSpread.ts, 77, 3)) +>p : Symbol(p, Decl(objectSpread.ts, 77, 12)) +>plus : Symbol(plus, Decl(objectSpread.ts, 77, 23)) +>c : Symbol(c, Decl(objectSpread.ts, 73, 3)) +>plus : Symbol(plus, Decl(objectSpread.ts, 77, 48)) + +cplus.plus(); +>cplus.plus : Symbol(plus, Decl(objectSpread.ts, 77, 23)) +>cplus : Symbol(cplus, Decl(objectSpread.ts, 77, 3)) +>plus : Symbol(plus, Decl(objectSpread.ts, 77, 23)) + +// new field's type conflicting with existing field is OK +let changeTypeAfter: { a: string, b: string } = +>changeTypeAfter : Symbol(changeTypeAfter, Decl(objectSpread.ts, 81, 3)) +>a : Symbol(a, Decl(objectSpread.ts, 81, 22)) +>b : Symbol(b, Decl(objectSpread.ts, 81, 33)) + + { ...o, a: 'wrong type?' } +>o : Symbol(o, Decl(objectSpread.ts, 0, 3)) +>a : Symbol(a, Decl(objectSpread.ts, 82, 11)) + +let changeTypeBoth: { a: string, b: number } = +>changeTypeBoth : Symbol(changeTypeBoth, Decl(objectSpread.ts, 83, 3)) +>a : Symbol(a, Decl(objectSpread.ts, 83, 21)) +>b : Symbol(b, Decl(objectSpread.ts, 83, 32)) + + { ...o, ...swap }; +>o : Symbol(o, Decl(objectSpread.ts, 0, 3)) +>swap : Symbol(swap, Decl(objectSpread.ts, 2, 3)) + +// optional +function container( +>container : Symbol(container, Decl(objectSpread.ts, 84, 22)) + + definiteBoolean: { sn: boolean }, +>definiteBoolean : Symbol(definiteBoolean, Decl(objectSpread.ts, 87, 19)) +>sn : Symbol(sn, Decl(objectSpread.ts, 88, 22)) + + definiteString: { sn: string }, +>definiteString : Symbol(definiteString, Decl(objectSpread.ts, 88, 37)) +>sn : Symbol(sn, Decl(objectSpread.ts, 89, 21)) + + optionalString: { sn?: string }, +>optionalString : Symbol(optionalString, Decl(objectSpread.ts, 89, 35)) +>sn : Symbol(sn, Decl(objectSpread.ts, 90, 21)) + + optionalNumber: { sn?: number }) { +>optionalNumber : Symbol(optionalNumber, Decl(objectSpread.ts, 90, 36)) +>sn : Symbol(sn, Decl(objectSpread.ts, 91, 21)) + + let optionalUnionStops: { sn: string | number | boolean } = { ...definiteBoolean, ...definiteString, ...optionalNumber }; +>optionalUnionStops : Symbol(optionalUnionStops, Decl(objectSpread.ts, 92, 7)) +>sn : Symbol(sn, Decl(objectSpread.ts, 92, 29)) +>definiteBoolean : Symbol(definiteBoolean, Decl(objectSpread.ts, 87, 19)) +>definiteString : Symbol(definiteString, Decl(objectSpread.ts, 88, 37)) +>optionalNumber : Symbol(optionalNumber, Decl(objectSpread.ts, 90, 36)) + + let optionalUnionDuplicates: { sn: string | number } = { ...definiteBoolean, ...definiteString, ...optionalString, ...optionalNumber }; +>optionalUnionDuplicates : Symbol(optionalUnionDuplicates, Decl(objectSpread.ts, 93, 7)) +>sn : Symbol(sn, Decl(objectSpread.ts, 93, 34)) +>definiteBoolean : Symbol(definiteBoolean, Decl(objectSpread.ts, 87, 19)) +>definiteString : Symbol(definiteString, Decl(objectSpread.ts, 88, 37)) +>optionalString : Symbol(optionalString, Decl(objectSpread.ts, 89, 35)) +>optionalNumber : Symbol(optionalNumber, Decl(objectSpread.ts, 90, 36)) + + let allOptional: { sn?: string | number } = { ...optionalString, ...optionalNumber }; +>allOptional : Symbol(allOptional, Decl(objectSpread.ts, 94, 7)) +>sn : Symbol(sn, Decl(objectSpread.ts, 94, 22)) +>optionalString : Symbol(optionalString, Decl(objectSpread.ts, 89, 35)) +>optionalNumber : Symbol(optionalNumber, Decl(objectSpread.ts, 90, 36)) + + // computed property + let computedFirst: { a: number, b: string, "before everything": number } = +>computedFirst : Symbol(computedFirst, Decl(objectSpread.ts, 97, 7)) +>a : Symbol(a, Decl(objectSpread.ts, 97, 24)) +>b : Symbol(b, Decl(objectSpread.ts, 97, 35)) +>"before everything" : Symbol("before everything", Decl(objectSpread.ts, 97, 46)) + + { ['before everything']: 12, ...o, b: 'yes' } +>['before everything'] : Symbol(['before everything'], Decl(objectSpread.ts, 98, 9)) +>'before everything' : Symbol(['before everything'], Decl(objectSpread.ts, 98, 9)) +>o : Symbol(o, Decl(objectSpread.ts, 0, 3)) +>b : Symbol(b, Decl(objectSpread.ts, 98, 42)) + + let computedAfter: { a: number, b: string, "at the end": number } = +>computedAfter : Symbol(computedAfter, Decl(objectSpread.ts, 99, 7)) +>a : Symbol(a, Decl(objectSpread.ts, 99, 24)) +>b : Symbol(b, Decl(objectSpread.ts, 99, 35)) +>"at the end" : Symbol("at the end", Decl(objectSpread.ts, 99, 46)) + + { ...o, b: 'yeah', ['at the end']: 14 } +>o : Symbol(o, Decl(objectSpread.ts, 0, 3)) +>b : Symbol(b, Decl(objectSpread.ts, 100, 15)) +>['at the end'] : Symbol(['at the end'], Decl(objectSpread.ts, 100, 26)) +>'at the end' : Symbol(['at the end'], Decl(objectSpread.ts, 100, 26)) +} +// shortcut syntax +let a = 12; +>a : Symbol(a, Decl(objectSpread.ts, 103, 3)) + +let shortCutted: { a: number, b: string } = { ...o, a } +>shortCutted : Symbol(shortCutted, Decl(objectSpread.ts, 104, 3)) +>a : Symbol(a, Decl(objectSpread.ts, 104, 18)) +>b : Symbol(b, Decl(objectSpread.ts, 104, 29)) +>o : Symbol(o, Decl(objectSpread.ts, 0, 3)) +>a : Symbol(a, Decl(objectSpread.ts, 104, 51)) + +// non primitive +let spreadNonPrimitive = { ...{}}; +>spreadNonPrimitive : Symbol(spreadNonPrimitive, Decl(objectSpread.ts, 106, 3)) + +// generic spreads + +function f(t: T, u: U) { +>f : Symbol(f, Decl(objectSpread.ts, 106, 42)) +>T : Symbol(T, Decl(objectSpread.ts, 110, 11)) +>U : Symbol(U, Decl(objectSpread.ts, 110, 13)) +>t : Symbol(t, Decl(objectSpread.ts, 110, 17)) +>T : Symbol(T, Decl(objectSpread.ts, 110, 11)) +>u : Symbol(u, Decl(objectSpread.ts, 110, 22)) +>U : Symbol(U, Decl(objectSpread.ts, 110, 13)) + + return { ...t, ...u, id: 'id' }; +>t : Symbol(t, Decl(objectSpread.ts, 110, 17)) +>u : Symbol(u, Decl(objectSpread.ts, 110, 22)) +>id : Symbol(id, Decl(objectSpread.ts, 111, 24)) +} + +let exclusive: { id: string, a: number, b: string, c: string, d: boolean } = +>exclusive : Symbol(exclusive, Decl(objectSpread.ts, 114, 3)) +>id : Symbol(id, Decl(objectSpread.ts, 114, 16)) +>a : Symbol(a, Decl(objectSpread.ts, 114, 28)) +>b : Symbol(b, Decl(objectSpread.ts, 114, 39)) +>c : Symbol(c, Decl(objectSpread.ts, 114, 50)) +>d : Symbol(d, Decl(objectSpread.ts, 114, 61)) + + f({ a: 1, b: 'yes' }, { c: 'no', d: false }) +>f : Symbol(f, Decl(objectSpread.ts, 106, 42)) +>a : Symbol(a, Decl(objectSpread.ts, 115, 7)) +>b : Symbol(b, Decl(objectSpread.ts, 115, 13)) +>c : Symbol(c, Decl(objectSpread.ts, 115, 27)) +>d : Symbol(d, Decl(objectSpread.ts, 115, 36)) + +let overlap: { id: string, a: number, b: string } = +>overlap : Symbol(overlap, Decl(objectSpread.ts, 116, 3)) +>id : Symbol(id, Decl(objectSpread.ts, 116, 14)) +>a : Symbol(a, Decl(objectSpread.ts, 116, 26)) +>b : Symbol(b, Decl(objectSpread.ts, 116, 37)) + + f({ a: 1 }, { a: 2, b: 'extra' }) +>f : Symbol(f, Decl(objectSpread.ts, 106, 42)) +>a : Symbol(a, Decl(objectSpread.ts, 117, 7)) +>a : Symbol(a, Decl(objectSpread.ts, 117, 17)) +>b : Symbol(b, Decl(objectSpread.ts, 117, 23)) + +let overlapConflict: { id:string, a: string } = +>overlapConflict : Symbol(overlapConflict, Decl(objectSpread.ts, 118, 3)) +>id : Symbol(id, Decl(objectSpread.ts, 118, 22)) +>a : Symbol(a, Decl(objectSpread.ts, 118, 33)) + + f({ a: 1 }, { a: 'mismatch' }) +>f : Symbol(f, Decl(objectSpread.ts, 106, 42)) +>a : Symbol(a, Decl(objectSpread.ts, 119, 7)) +>a : Symbol(a, Decl(objectSpread.ts, 119, 17)) + +let overwriteId: { id: string, a: number, c: number, d: string } = +>overwriteId : Symbol(overwriteId, Decl(objectSpread.ts, 120, 3)) +>id : Symbol(id, Decl(objectSpread.ts, 120, 18)) +>a : Symbol(a, Decl(objectSpread.ts, 120, 30)) +>c : Symbol(c, Decl(objectSpread.ts, 120, 41)) +>d : Symbol(d, Decl(objectSpread.ts, 120, 52)) + + f({ a: 1, id: true }, { c: 1, d: 'no' }) +>f : Symbol(f, Decl(objectSpread.ts, 106, 42)) +>a : Symbol(a, Decl(objectSpread.ts, 121, 7)) +>id : Symbol(id, Decl(objectSpread.ts, 121, 13)) +>c : Symbol(c, Decl(objectSpread.ts, 121, 27)) +>d : Symbol(d, Decl(objectSpread.ts, 121, 33)) + +function genericSpread(t: T, u: U, v: T | U, w: T | { s: string }, obj: { x: number }) { +>genericSpread : Symbol(genericSpread, Decl(objectSpread.ts, 121, 44)) +>T : Symbol(T, Decl(objectSpread.ts, 123, 23)) +>U : Symbol(U, Decl(objectSpread.ts, 123, 25)) +>t : Symbol(t, Decl(objectSpread.ts, 123, 29)) +>T : Symbol(T, Decl(objectSpread.ts, 123, 23)) +>u : Symbol(u, Decl(objectSpread.ts, 123, 34)) +>U : Symbol(U, Decl(objectSpread.ts, 123, 25)) +>v : Symbol(v, Decl(objectSpread.ts, 123, 40)) +>T : Symbol(T, Decl(objectSpread.ts, 123, 23)) +>U : Symbol(U, Decl(objectSpread.ts, 123, 25)) +>w : Symbol(w, Decl(objectSpread.ts, 123, 50)) +>T : Symbol(T, Decl(objectSpread.ts, 123, 23)) +>s : Symbol(s, Decl(objectSpread.ts, 123, 59)) +>obj : Symbol(obj, Decl(objectSpread.ts, 123, 72)) +>x : Symbol(x, Decl(objectSpread.ts, 123, 79)) + + let x01 = { ...t }; +>x01 : Symbol(x01, Decl(objectSpread.ts, 124, 7)) +>t : Symbol(t, Decl(objectSpread.ts, 123, 29)) + + let x02 = { ...t, ...t }; +>x02 : Symbol(x02, Decl(objectSpread.ts, 125, 7)) +>t : Symbol(t, Decl(objectSpread.ts, 123, 29)) +>t : Symbol(t, Decl(objectSpread.ts, 123, 29)) + + let x03 = { ...t, ...u }; +>x03 : Symbol(x03, Decl(objectSpread.ts, 126, 7)) +>t : Symbol(t, Decl(objectSpread.ts, 123, 29)) +>u : Symbol(u, Decl(objectSpread.ts, 123, 34)) + + let x04 = { ...u, ...t }; +>x04 : Symbol(x04, Decl(objectSpread.ts, 127, 7)) +>u : Symbol(u, Decl(objectSpread.ts, 123, 34)) +>t : Symbol(t, Decl(objectSpread.ts, 123, 29)) + + let x05 = { a: 5, b: 'hi', ...t }; +>x05 : Symbol(x05, Decl(objectSpread.ts, 128, 7)) +>a : Symbol(a, Decl(objectSpread.ts, 128, 15)) +>b : Symbol(b, Decl(objectSpread.ts, 128, 21)) +>t : Symbol(t, Decl(objectSpread.ts, 123, 29)) + + let x06 = { ...t, a: 5, b: 'hi' }; +>x06 : Symbol(x06, Decl(objectSpread.ts, 129, 7)) +>t : Symbol(t, Decl(objectSpread.ts, 123, 29)) +>a : Symbol(a, Decl(objectSpread.ts, 129, 21)) +>b : Symbol(b, Decl(objectSpread.ts, 129, 27)) + + let x07 = { a: 5, b: 'hi', ...t, c: true, ...obj }; +>x07 : Symbol(x07, Decl(objectSpread.ts, 130, 7)) +>a : Symbol(a, Decl(objectSpread.ts, 130, 15)) +>b : Symbol(b, Decl(objectSpread.ts, 130, 21)) +>t : Symbol(t, Decl(objectSpread.ts, 123, 29)) +>c : Symbol(c, Decl(objectSpread.ts, 130, 36)) +>obj : Symbol(obj, Decl(objectSpread.ts, 123, 72)) + + let x09 = { a: 5, ...t, b: 'hi', c: true, ...obj }; +>x09 : Symbol(x09, Decl(objectSpread.ts, 131, 7)) +>a : Symbol(a, Decl(objectSpread.ts, 131, 15)) +>t : Symbol(t, Decl(objectSpread.ts, 123, 29)) +>b : Symbol(b, Decl(objectSpread.ts, 131, 27)) +>c : Symbol(c, Decl(objectSpread.ts, 131, 36)) +>obj : Symbol(obj, Decl(objectSpread.ts, 123, 72)) + + let x10 = { a: 5, ...t, b: 'hi', ...u, ...obj }; +>x10 : Symbol(x10, Decl(objectSpread.ts, 132, 7)) +>a : Symbol(a, Decl(objectSpread.ts, 132, 15)) +>t : Symbol(t, Decl(objectSpread.ts, 123, 29)) +>b : Symbol(b, Decl(objectSpread.ts, 132, 27)) +>u : Symbol(u, Decl(objectSpread.ts, 123, 34)) +>obj : Symbol(obj, Decl(objectSpread.ts, 123, 72)) + + let x11 = { ...v }; +>x11 : Symbol(x11, Decl(objectSpread.ts, 133, 7)) +>v : Symbol(v, Decl(objectSpread.ts, 123, 40)) + + let x12 = { ...v, ...obj }; +>x12 : Symbol(x12, Decl(objectSpread.ts, 134, 7)) +>v : Symbol(v, Decl(objectSpread.ts, 123, 40)) +>obj : Symbol(obj, Decl(objectSpread.ts, 123, 72)) + + let x13 = { ...w }; +>x13 : Symbol(x13, Decl(objectSpread.ts, 135, 7)) +>w : Symbol(w, Decl(objectSpread.ts, 123, 50)) + + let x14 = { ...w, ...obj }; +>x14 : Symbol(x14, Decl(objectSpread.ts, 136, 7)) +>w : Symbol(w, Decl(objectSpread.ts, 123, 50)) +>obj : Symbol(obj, Decl(objectSpread.ts, 123, 72)) + + let x15 = { ...t, ...v }; +>x15 : Symbol(x15, Decl(objectSpread.ts, 137, 7)) +>t : Symbol(t, Decl(objectSpread.ts, 123, 29)) +>v : Symbol(v, Decl(objectSpread.ts, 123, 40)) + + let x16 = { ...t, ...w }; +>x16 : Symbol(x16, Decl(objectSpread.ts, 138, 7)) +>t : Symbol(t, Decl(objectSpread.ts, 123, 29)) +>w : Symbol(w, Decl(objectSpread.ts, 123, 50)) + + let x17 = { ...t, ...w, ...obj }; +>x17 : Symbol(x17, Decl(objectSpread.ts, 139, 7)) +>t : Symbol(t, Decl(objectSpread.ts, 123, 29)) +>w : Symbol(w, Decl(objectSpread.ts, 123, 50)) +>obj : Symbol(obj, Decl(objectSpread.ts, 123, 72)) + + let x18 = { ...t, ...v, ...w }; +>x18 : Symbol(x18, Decl(objectSpread.ts, 140, 7)) +>t : Symbol(t, Decl(objectSpread.ts, 123, 29)) +>v : Symbol(v, Decl(objectSpread.ts, 123, 40)) +>w : Symbol(w, Decl(objectSpread.ts, 123, 50)) +} + diff --git a/tests/baselines/reference/objectSpread(target=es5).types b/tests/baselines/reference/objectSpread(target=es5).types new file mode 100644 index 0000000000000..92ca81fce93ad --- /dev/null +++ b/tests/baselines/reference/objectSpread(target=es5).types @@ -0,0 +1,1197 @@ +//// [tests/cases/conformance/types/spread/objectSpread.ts] //// + +=== objectSpread.ts === +let o = { a: 1, b: 'no' } +>o : { a: number; b: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ a: 1, b: 'no' } : { a: number; b: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>a : number +> : ^^^^^^ +>1 : 1 +> : ^ +>b : string +> : ^^^^^^ +>'no' : "no" +> : ^^^^ + +let o2 = { b: 'yes', c: true } +>o2 : { b: string; c: boolean; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ b: 'yes', c: true } : { b: string; c: boolean; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^ +>b : string +> : ^^^^^^ +>'yes' : "yes" +> : ^^^^^ +>c : boolean +> : ^^^^^^^ +>true : true +> : ^^^^ + +let swap = { a: 'yes', b: -1 }; +>swap : { a: string; b: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ a: 'yes', b: -1 } : { a: string; b: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>a : string +> : ^^^^^^ +>'yes' : "yes" +> : ^^^^^ +>b : number +> : ^^^^^^ +>-1 : -1 +> : ^^ +>1 : 1 +> : ^ + +let addAfter: { a: number, b: string, c: boolean } = +>addAfter : { a: number; b: string; c: boolean; } +> : ^^^^^ ^^^^^ ^^^^^ ^^^ +>a : number +> : ^^^^^^ +>b : string +> : ^^^^^^ +>c : boolean +> : ^^^^^^^ + + { ...o, c: false } +>{ ...o, c: false } : { c: false; a: number; b: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>o : { a: number; b: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>c : false +> : ^^^^^ +>false : false +> : ^^^^^ + +let addBefore: { a: number, b: string, c: boolean } = +>addBefore : { a: number; b: string; c: boolean; } +> : ^^^^^ ^^^^^ ^^^^^ ^^^ +>a : number +> : ^^^^^^ +>b : string +> : ^^^^^^ +>c : boolean +> : ^^^^^^^ + + { c: false, ...o } +>{ c: false, ...o } : { a: number; b: string; c: false; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>c : false +> : ^^^^^ +>false : false +> : ^^^^^ +>o : { a: number; b: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ + +let override: { a: number, b: string } = +>override : { a: number; b: string; } +> : ^^^^^ ^^^^^ ^^^ +>a : number +> : ^^^^^^ +>b : string +> : ^^^^^^ + + { ...o, b: 'override' } +>{ ...o, b: 'override' } : { b: string; a: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>o : { a: number; b: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>b : string +> : ^^^^^^ +>'override' : "override" +> : ^^^^^^^^^^ + +let nested: { a: number, b: boolean, c: string } = +>nested : { a: number; b: boolean; c: string; } +> : ^^^^^ ^^^^^ ^^^^^ ^^^ +>a : number +> : ^^^^^^ +>b : boolean +> : ^^^^^^^ +>c : string +> : ^^^^^^ + + { ...{ a: 3, ...{ b: false, c: 'overriden' } }, c: 'whatever' } +>{ ...{ a: 3, ...{ b: false, c: 'overriden' } }, c: 'whatever' } : { c: string; b: false; a: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ a: 3, ...{ b: false, c: 'overriden' } } : { b: false; c: string; a: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>a : number +> : ^^^^^^ +>3 : 3 +> : ^ +>{ b: false, c: 'overriden' } : { b: false; c: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^ +>b : false +> : ^^^^^ +>false : false +> : ^^^^^ +>c : string +> : ^^^^^^ +>'overriden' : "overriden" +> : ^^^^^^^^^^^ +>c : string +> : ^^^^^^ +>'whatever' : "whatever" +> : ^^^^^^^^^^ + +let combined: { a: number, b: string, c: boolean } = +>combined : { a: number; b: string; c: boolean; } +> : ^^^^^ ^^^^^ ^^^^^ ^^^ +>a : number +> : ^^^^^^ +>b : string +> : ^^^^^^ +>c : boolean +> : ^^^^^^^ + + { ...o, ...o2 } +>{ ...o, ...o2 } : { b: string; c: boolean; a: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>o : { a: number; b: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>o2 : { b: string; c: boolean; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^ + +let combinedAfter: { a: number, b: string, c: boolean } = +>combinedAfter : { a: number; b: string; c: boolean; } +> : ^^^^^ ^^^^^ ^^^^^ ^^^ +>a : number +> : ^^^^^^ +>b : string +> : ^^^^^^ +>c : boolean +> : ^^^^^^^ + + { ...o, ...o2, b: 'ok' } +>{ ...o, ...o2, b: 'ok' } : { b: string; c: boolean; a: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>o : { a: number; b: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>o2 : { b: string; c: boolean; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^ +>b : string +> : ^^^^^^ +>'ok' : "ok" +> : ^^^^ + +let combinedNestedChangeType: { a: number, b: boolean, c: number } = +>combinedNestedChangeType : { a: number; b: boolean; c: number; } +> : ^^^^^ ^^^^^ ^^^^^ ^^^ +>a : number +> : ^^^^^^ +>b : boolean +> : ^^^^^^^ +>c : number +> : ^^^^^^ + + { ...{ a: 1, ...{ b: false, c: 'overriden' } }, c: -1 } +>{ ...{ a: 1, ...{ b: false, c: 'overriden' } }, c: -1 } : { c: number; b: false; a: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ a: 1, ...{ b: false, c: 'overriden' } } : { b: false; c: string; a: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>a : number +> : ^^^^^^ +>1 : 1 +> : ^ +>{ b: false, c: 'overriden' } : { b: false; c: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^ +>b : false +> : ^^^^^ +>false : false +> : ^^^^^ +>c : string +> : ^^^^^^ +>'overriden' : "overriden" +> : ^^^^^^^^^^^ +>c : number +> : ^^^^^^ +>-1 : -1 +> : ^^ +>1 : 1 +> : ^ + +let propertyNested: { a: { a: number, b: string } } = +>propertyNested : { a: { a: number; b: string; }; } +> : ^^^^^ ^^^ +>a : { a: number; b: string; } +> : ^^^^^ ^^^^^ ^^^ +>a : number +> : ^^^^^^ +>b : string +> : ^^^^^^ + + { a: { ... o } } +>{ a: { ... o } } : { a: { a: number; b: string; }; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>a : { a: number; b: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ ... o } : { a: number; b: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>o : { a: number; b: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ + +// accessors don't copy the descriptor +// (which means that readonly getters become read/write properties) +let op = { get a () { return 6 } }; +>op : { readonly a: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>{ get a () { return 6 } } : { readonly a: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>a : number +> : ^^^^^^ +>6 : 6 +> : ^ + +let getter: { a: number, c: number } = +>getter : { a: number; c: number; } +> : ^^^^^ ^^^^^ ^^^ +>a : number +> : ^^^^^^ +>c : number +> : ^^^^^^ + + { ...op, c: 7 } +>{ ...op, c: 7 } : { c: number; a: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>op : { readonly a: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>c : number +> : ^^^^^^ +>7 : 7 +> : ^ + +getter.a = 12; +>getter.a = 12 : 12 +> : ^^ +>getter.a : number +> : ^^^^^^ +>getter : { a: number; c: number; } +> : ^^^^^ ^^^^^ ^^^ +>a : number +> : ^^^^^^ +>12 : 12 +> : ^^ + +// functions result in { } +let spreadFunc = { ...(function () { }) }; +>spreadFunc : {} +> : ^^ +>{ ...(function () { }) } : {} +> : ^^ +>(function () { }) : () => void +> : ^^^^^^^^^^ +>function () { } : () => void +> : ^^^^^^^^^^ + +type Header = { head: string, body: string, authToken: string } +>Header : Header +> : ^^^^^^ +>head : string +> : ^^^^^^ +>body : string +> : ^^^^^^ +>authToken : string +> : ^^^^^^ + +function from16326(this: { header: Header }, header: Header, authToken: string): Header { +>from16326 : (this: { header: Header; }, header: Header, authToken: string) => Header +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>this : { header: Header; } +> : ^^^^^^^^^^ ^^^ +>header : Header +> : ^^^^^^ +>header : Header +> : ^^^^^^ +>authToken : string +> : ^^^^^^ + + return { +>{ ...this.header, ...header, ...authToken && { authToken } } : { authToken: string; head: string; body: string; } +> : ^^^^^^^^^^^^^ ^^^^^^^^ ^^^^^^^^ ^^^ + + ...this.header, +>this.header : Header +> : ^^^^^^ +>this : { header: Header; } +> : ^^^^^^^^^^ ^^^ +>header : Header +> : ^^^^^^ + + ...header, +>header : Header +> : ^^^^^^ + + ...authToken && { authToken } +>authToken && { authToken } : "" | { authToken: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>authToken : string +> : ^^^^^^ +>{ authToken } : { authToken: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^ +>authToken : string +> : ^^^^^^ + } +} +// boolean && T results in Partial +function conditionalSpreadBoolean(b: boolean) : { x: number, y: number } { +>conditionalSpreadBoolean : (b: boolean) => { x: number; y: number; } +> : ^ ^^ ^^^^^ +>b : boolean +> : ^^^^^^^ +>x : number +> : ^^^^^^ +>y : number +> : ^^^^^^ + + let o = { x: 12, y: 13 } +>o : { x: number; y: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ x: 12, y: 13 } : { x: number; y: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>x : number +> : ^^^^^^ +>12 : 12 +> : ^^ +>y : number +> : ^^^^^^ +>13 : 13 +> : ^^ + + o = { +>o = { ...o, ...b && { x: 14 } } : { x: number; y: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>o : { x: number; y: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ ...o, ...b && { x: 14 } } : { x: number; y: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ + + ...o, +>o : { x: number; y: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ + + ...b && { x: 14 } +>b && { x: 14 } : false | { x: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^ +>b : boolean +> : ^^^^^^^ +>{ x: 14 } : { x: number; } +> : ^^^^^^^^^^^^^^ +>x : number +> : ^^^^^^ +>14 : 14 +> : ^^ + } + let o2 = { ...b && { x: 21 }} +>o2 : { x?: number | undefined; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ ...b && { x: 21 }} : { x?: number | undefined; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>b && { x: 21 } : false | { x: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^ +>b : boolean +> : ^^^^^^^ +>{ x: 21 } : { x: number; } +> : ^^^^^^^^^^^^^^ +>x : number +> : ^^^^^^ +>21 : 21 +> : ^^ + + return o; +>o : { x: number; y: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +} +function conditionalSpreadNumber(nt: number): { x: number, y: number } { +>conditionalSpreadNumber : (nt: number) => { x: number; y: number; } +> : ^ ^^ ^^^^^ +>nt : number +> : ^^^^^^ +>x : number +> : ^^^^^^ +>y : number +> : ^^^^^^ + + let o = { x: 15, y: 16 } +>o : { x: number; y: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ x: 15, y: 16 } : { x: number; y: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>x : number +> : ^^^^^^ +>15 : 15 +> : ^^ +>y : number +> : ^^^^^^ +>16 : 16 +> : ^^ + + o = { +>o = { ...o, ...nt && { x: nt } } : { x: number; y: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>o : { x: number; y: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ ...o, ...nt && { x: nt } } : { x: number; y: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ + + ...o, +>o : { x: number; y: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ + + ...nt && { x: nt } +>nt && { x: nt } : 0 | { x: number; } +> : ^^^^^^^^^^^^^^^^^^ +>nt : number +> : ^^^^^^ +>{ x: nt } : { x: number; } +> : ^^^^^^^^^^^^^^ +>x : number +> : ^^^^^^ +>nt : number +> : ^^^^^^ + } + let o2 = { ...nt && { x: nt }} +>o2 : { x?: number | undefined; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ ...nt && { x: nt }} : { x?: number | undefined; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>nt && { x: nt } : 0 | { x: number; } +> : ^^^^^^^^^^^^^^^^^^ +>nt : number +> : ^^^^^^ +>{ x: nt } : { x: number; } +> : ^^^^^^^^^^^^^^ +>x : number +> : ^^^^^^ +>nt : number +> : ^^^^^^ + + return o; +>o : { x: number; y: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +} +function conditionalSpreadString(st: string): { x: string, y: number } { +>conditionalSpreadString : (st: string) => { x: string; y: number; } +> : ^ ^^ ^^^^^ +>st : string +> : ^^^^^^ +>x : string +> : ^^^^^^ +>y : number +> : ^^^^^^ + + let o = { x: 'hi', y: 17 } +>o : { x: string; y: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ x: 'hi', y: 17 } : { x: string; y: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>x : string +> : ^^^^^^ +>'hi' : "hi" +> : ^^^^ +>y : number +> : ^^^^^^ +>17 : 17 +> : ^^ + + o = { +>o = { ...o, ...st && { x: st } } : { x: string; y: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>o : { x: string; y: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ ...o, ...st && { x: st } } : { x: string; y: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ + + ...o, +>o : { x: string; y: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ + + ...st && { x: st } +>st && { x: st } : "" | { x: string; } +> : ^^^^^^^^^^^^^^^^^^^ +>st : string +> : ^^^^^^ +>{ x: st } : { x: string; } +> : ^^^^^^^^^^^^^^ +>x : string +> : ^^^^^^ +>st : string +> : ^^^^^^ + } + let o2 = { ...st && { x: st }} +>o2 : { x?: string | undefined; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ ...st && { x: st }} : { x?: string | undefined; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>st && { x: st } : "" | { x: string; } +> : ^^^^^^^^^^^^^^^^^^^ +>st : string +> : ^^^^^^ +>{ x: st } : { x: string; } +> : ^^^^^^^^^^^^^^ +>x : string +> : ^^^^^^ +>st : string +> : ^^^^^^ + + return o; +>o : { x: string; y: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +} + +// any results in any +let anything: any; +>anything : any + +let spreadAny = { ...anything }; +>spreadAny : any +>{ ...anything } : any +>anything : any + +// methods are not enumerable +class C { p = 1; m() { } } +>C : C +> : ^ +>p : number +> : ^^^^^^ +>1 : 1 +> : ^ +>m : () => void +> : ^^^^^^^^^^ + +let c: C = new C() +>c : C +> : ^ +>new C() : C +> : ^ +>C : typeof C +> : ^^^^^^^^ + +let spreadC: { p: number } = { ...c } +>spreadC : { p: number; } +> : ^^^^^ ^^^ +>p : number +> : ^^^^^^ +>{ ...c } : { p: number; } +> : ^^^^^^^^^^^^^^ +>c : C +> : ^ + +// own methods are enumerable +let cplus: { p: number, plus(): void } = { ...c, plus() { return this.p + 1; } }; +>cplus : { p: number; plus(): void; } +> : ^^^^^ ^^^^^^^^^^ ^^^ +>p : number +> : ^^^^^^ +>plus : () => void +> : ^^^^^^ +>{ ...c, plus() { return this.p + 1; } } : { plus(): any; p: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>c : C +> : ^ +>plus : () => any +> : ^^^^^^^^^ +>this.p + 1 : any +>this.p : any +>this : any +> : ^^^ +>p : any +> : ^^^ +>1 : 1 +> : ^ + +cplus.plus(); +>cplus.plus() : void +> : ^^^^ +>cplus.plus : () => void +> : ^^^^^^ +>cplus : { p: number; plus(): void; } +> : ^^^^^ ^^^^^^^^^^ ^^^ +>plus : () => void +> : ^^^^^^ + +// new field's type conflicting with existing field is OK +let changeTypeAfter: { a: string, b: string } = +>changeTypeAfter : { a: string; b: string; } +> : ^^^^^ ^^^^^ ^^^ +>a : string +> : ^^^^^^ +>b : string +> : ^^^^^^ + + { ...o, a: 'wrong type?' } +>{ ...o, a: 'wrong type?' } : { a: string; b: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>o : { a: number; b: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>a : string +> : ^^^^^^ +>'wrong type?' : "wrong type?" +> : ^^^^^^^^^^^^^ + +let changeTypeBoth: { a: string, b: number } = +>changeTypeBoth : { a: string; b: number; } +> : ^^^^^ ^^^^^ ^^^ +>a : string +> : ^^^^^^ +>b : number +> : ^^^^^^ + + { ...o, ...swap }; +>{ ...o, ...swap } : { a: string; b: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>o : { a: number; b: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>swap : { a: string; b: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ + +// optional +function container( +>container : (definiteBoolean: { sn: boolean; }, definiteString: { sn: string; }, optionalString: { sn?: string; }, optionalNumber: { sn?: number; }) => void +> : ^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^^^^^^^ + + definiteBoolean: { sn: boolean }, +>definiteBoolean : { sn: boolean; } +> : ^^^^^^ ^^^ +>sn : boolean +> : ^^^^^^^ + + definiteString: { sn: string }, +>definiteString : { sn: string; } +> : ^^^^^^ ^^^ +>sn : string +> : ^^^^^^ + + optionalString: { sn?: string }, +>optionalString : { sn?: string; } +> : ^^^^^^^ ^^^ +>sn : string | undefined +> : ^^^^^^^^^^^^^^^^^^ + + optionalNumber: { sn?: number }) { +>optionalNumber : { sn?: number; } +> : ^^^^^^^ ^^^ +>sn : number | undefined +> : ^^^^^^^^^^^^^^^^^^ + + let optionalUnionStops: { sn: string | number | boolean } = { ...definiteBoolean, ...definiteString, ...optionalNumber }; +>optionalUnionStops : { sn: string | number | boolean; } +> : ^^^^^^ ^^^ +>sn : string | number | boolean +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ ...definiteBoolean, ...definiteString, ...optionalNumber } : { sn: string | number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^ +>definiteBoolean : { sn: boolean; } +> : ^^^^^^ ^^^ +>definiteString : { sn: string; } +> : ^^^^^^ ^^^ +>optionalNumber : { sn?: number; } +> : ^^^^^^^ ^^^ + + let optionalUnionDuplicates: { sn: string | number } = { ...definiteBoolean, ...definiteString, ...optionalString, ...optionalNumber }; +>optionalUnionDuplicates : { sn: string | number; } +> : ^^^^^^ ^^^ +>sn : string | number +> : ^^^^^^^^^^^^^^^ +>{ ...definiteBoolean, ...definiteString, ...optionalString, ...optionalNumber } : { sn: string | number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^ +>definiteBoolean : { sn: boolean; } +> : ^^^^^^ ^^^ +>definiteString : { sn: string; } +> : ^^^^^^ ^^^ +>optionalString : { sn?: string; } +> : ^^^^^^^ ^^^ +>optionalNumber : { sn?: number; } +> : ^^^^^^^ ^^^ + + let allOptional: { sn?: string | number } = { ...optionalString, ...optionalNumber }; +>allOptional : { sn?: string | number; } +> : ^^^^^^^ ^^^ +>sn : string | number | undefined +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ ...optionalString, ...optionalNumber } : { sn?: string | number | undefined; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>optionalString : { sn?: string; } +> : ^^^^^^^ ^^^ +>optionalNumber : { sn?: number; } +> : ^^^^^^^ ^^^ + + // computed property + let computedFirst: { a: number, b: string, "before everything": number } = +>computedFirst : { a: number; b: string; "before everything": number; } +> : ^^^^^ ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ ^^^ +>a : number +> : ^^^^^^ +>b : string +> : ^^^^^^ +>"before everything" : number +> : ^^^^^^ + + { ['before everything']: 12, ...o, b: 'yes' } +>{ ['before everything']: 12, ...o, b: 'yes' } : { b: string; a: number; "before everything": number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>['before everything'] : number +> : ^^^^^^ +>'before everything' : "before everything" +> : ^^^^^^^^^^^^^^^^^^^ +>12 : 12 +> : ^^ +>o : { a: number; b: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>b : string +> : ^^^^^^ +>'yes' : "yes" +> : ^^^^^ + + let computedAfter: { a: number, b: string, "at the end": number } = +>computedAfter : { a: number; b: string; "at the end": number; } +> : ^^^^^ ^^^^^ ^^^^^^^^^^^^^^^^ ^^^ +>a : number +> : ^^^^^^ +>b : string +> : ^^^^^^ +>"at the end" : number +> : ^^^^^^ + + { ...o, b: 'yeah', ['at the end']: 14 } +>{ ...o, b: 'yeah', ['at the end']: 14 } : { b: string; "at the end": number; a: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>o : { a: number; b: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>b : string +> : ^^^^^^ +>'yeah' : "yeah" +> : ^^^^^^ +>['at the end'] : number +> : ^^^^^^ +>'at the end' : "at the end" +> : ^^^^^^^^^^^^ +>14 : 14 +> : ^^ +} +// shortcut syntax +let a = 12; +>a : number +> : ^^^^^^ +>12 : 12 +> : ^^ + +let shortCutted: { a: number, b: string } = { ...o, a } +>shortCutted : { a: number; b: string; } +> : ^^^^^ ^^^^^ ^^^ +>a : number +> : ^^^^^^ +>b : string +> : ^^^^^^ +>{ ...o, a } : { a: number; b: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>o : { a: number; b: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>a : number +> : ^^^^^^ + +// non primitive +let spreadNonPrimitive = { ...{}}; +>spreadNonPrimitive : {} +> : ^^ +>{ ...{}} : {} +> : ^^ +>{} : object +> : ^^^^^^ +>{} : {} +> : ^^ + +// generic spreads + +function f(t: T, u: U) { +>f : (t: T, u: U) => T & U & { id: string; } +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>t : T +> : ^ +>u : U +> : ^ + + return { ...t, ...u, id: 'id' }; +>{ ...t, ...u, id: 'id' } : T & U & { id: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>t : T +> : ^ +>u : U +> : ^ +>id : string +> : ^^^^^^ +>'id' : "id" +> : ^^^^ +} + +let exclusive: { id: string, a: number, b: string, c: string, d: boolean } = +>exclusive : { id: string; a: number; b: string; c: string; d: boolean; } +> : ^^^^^^ ^^^^^ ^^^^^ ^^^^^ ^^^^^ ^^^ +>id : string +> : ^^^^^^ +>a : number +> : ^^^^^^ +>b : string +> : ^^^^^^ +>c : string +> : ^^^^^^ +>d : boolean +> : ^^^^^^^ + + f({ a: 1, b: 'yes' }, { c: 'no', d: false }) +>f({ a: 1, b: 'yes' }, { c: 'no', d: false }) : { a: number; b: string; } & { c: string; d: boolean; } & { id: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>f : (t: T, u: U) => T & U & { id: string; } +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ a: 1, b: 'yes' } : { a: number; b: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>a : number +> : ^^^^^^ +>1 : 1 +> : ^ +>b : string +> : ^^^^^^ +>'yes' : "yes" +> : ^^^^^ +>{ c: 'no', d: false } : { c: string; d: false; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^ +>c : string +> : ^^^^^^ +>'no' : "no" +> : ^^^^ +>d : false +> : ^^^^^ +>false : false +> : ^^^^^ + +let overlap: { id: string, a: number, b: string } = +>overlap : { id: string; a: number; b: string; } +> : ^^^^^^ ^^^^^ ^^^^^ ^^^ +>id : string +> : ^^^^^^ +>a : number +> : ^^^^^^ +>b : string +> : ^^^^^^ + + f({ a: 1 }, { a: 2, b: 'extra' }) +>f({ a: 1 }, { a: 2, b: 'extra' }) : { a: number; } & { a: number; b: string; } & { id: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>f : (t: T, u: U) => T & U & { id: string; } +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ a: 1 } : { a: number; } +> : ^^^^^^^^^^^^^^ +>a : number +> : ^^^^^^ +>1 : 1 +> : ^ +>{ a: 2, b: 'extra' } : { a: number; b: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>a : number +> : ^^^^^^ +>2 : 2 +> : ^ +>b : string +> : ^^^^^^ +>'extra' : "extra" +> : ^^^^^^^ + +let overlapConflict: { id:string, a: string } = +>overlapConflict : { id: string; a: string; } +> : ^^^^^^ ^^^^^ ^^^ +>id : string +> : ^^^^^^ +>a : string +> : ^^^^^^ + + f({ a: 1 }, { a: 'mismatch' }) +>f({ a: 1 }, { a: 'mismatch' }) : { a: number; } & { a: string; } & { id: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>f : (t: T, u: U) => T & U & { id: string; } +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ a: 1 } : { a: number; } +> : ^^^^^^^^^^^^^^ +>a : number +> : ^^^^^^ +>1 : 1 +> : ^ +>{ a: 'mismatch' } : { a: string; } +> : ^^^^^^^^^^^^^^ +>a : string +> : ^^^^^^ +>'mismatch' : "mismatch" +> : ^^^^^^^^^^ + +let overwriteId: { id: string, a: number, c: number, d: string } = +>overwriteId : { id: string; a: number; c: number; d: string; } +> : ^^^^^^ ^^^^^ ^^^^^ ^^^^^ ^^^ +>id : string +> : ^^^^^^ +>a : number +> : ^^^^^^ +>c : number +> : ^^^^^^ +>d : string +> : ^^^^^^ + + f({ a: 1, id: true }, { c: 1, d: 'no' }) +>f({ a: 1, id: true }, { c: 1, d: 'no' }) : never +> : ^^^^^ +>f : (t: T, u: U) => T & U & { id: string; } +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ a: 1, id: true } : { a: number; id: true; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^ +>a : number +> : ^^^^^^ +>1 : 1 +> : ^ +>id : true +> : ^^^^ +>true : true +> : ^^^^ +>{ c: 1, d: 'no' } : { c: number; d: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>c : number +> : ^^^^^^ +>1 : 1 +> : ^ +>d : string +> : ^^^^^^ +>'no' : "no" +> : ^^^^ + +function genericSpread(t: T, u: U, v: T | U, w: T | { s: string }, obj: { x: number }) { +>genericSpread : (t: T, u: U, v: T | U, w: T | { s: string; }, obj: { x: number; }) => void +> : ^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^^^^^^^ +>t : T +> : ^ +>u : U +> : ^ +>v : T | U +> : ^^^^^ +>w : T | { s: string; } +> : ^^^^^^^^^ ^^^ +>s : string +> : ^^^^^^ +>obj : { x: number; } +> : ^^^^^ ^^^ +>x : number +> : ^^^^^^ + + let x01 = { ...t }; +>x01 : T +> : ^ +>{ ...t } : T +> : ^ +>t : T +> : ^ + + let x02 = { ...t, ...t }; +>x02 : T +> : ^ +>{ ...t, ...t } : T +> : ^ +>t : T +> : ^ +>t : T +> : ^ + + let x03 = { ...t, ...u }; +>x03 : T & U +> : ^^^^^ +>{ ...t, ...u } : T & U +> : ^^^^^ +>t : T +> : ^ +>u : U +> : ^ + + let x04 = { ...u, ...t }; +>x04 : U & T +> : ^^^^^ +>{ ...u, ...t } : U & T +> : ^^^^^ +>u : U +> : ^ +>t : T +> : ^ + + let x05 = { a: 5, b: 'hi', ...t }; +>x05 : { a: number; b: string; } & T +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ a: 5, b: 'hi', ...t } : { a: number; b: string; } & T +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>a : number +> : ^^^^^^ +>5 : 5 +> : ^ +>b : string +> : ^^^^^^ +>'hi' : "hi" +> : ^^^^ +>t : T +> : ^ + + let x06 = { ...t, a: 5, b: 'hi' }; +>x06 : T & { a: number; b: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ ...t, a: 5, b: 'hi' } : T & { a: number; b: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>t : T +> : ^ +>a : number +> : ^^^^^^ +>5 : 5 +> : ^ +>b : string +> : ^^^^^^ +>'hi' : "hi" +> : ^^^^ + + let x07 = { a: 5, b: 'hi', ...t, c: true, ...obj }; +>x07 : { a: number; b: string; } & T & { x: number; c: boolean; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ +>{ a: 5, b: 'hi', ...t, c: true, ...obj } : { a: number; b: string; } & T & { x: number; c: boolean; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ +>a : number +> : ^^^^^^ +>5 : 5 +> : ^ +>b : string +> : ^^^^^^ +>'hi' : "hi" +> : ^^^^ +>t : T +> : ^ +>c : boolean +> : ^^^^^^^ +>true : true +> : ^^^^ +>obj : { x: number; } +> : ^^^^^ ^^^ + + let x09 = { a: 5, ...t, b: 'hi', c: true, ...obj }; +>x09 : { a: number; } & T & { x: number; b: string; c: boolean; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ a: 5, ...t, b: 'hi', c: true, ...obj } : { a: number; } & T & { x: number; b: string; c: boolean; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ +>a : number +> : ^^^^^^ +>5 : 5 +> : ^ +>t : T +> : ^ +>b : string +> : ^^^^^^ +>'hi' : "hi" +> : ^^^^ +>c : boolean +> : ^^^^^^^ +>true : true +> : ^^^^ +>obj : { x: number; } +> : ^^^^^ ^^^ + + let x10 = { a: 5, ...t, b: 'hi', ...u, ...obj }; +>x10 : { a: number; } & T & { b: string; } & U & { x: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^ +>{ a: 5, ...t, b: 'hi', ...u, ...obj } : { a: number; } & T & { b: string; } & U & { x: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^ +>a : number +> : ^^^^^^ +>5 : 5 +> : ^ +>t : T +> : ^ +>b : string +> : ^^^^^^ +>'hi' : "hi" +> : ^^^^ +>u : U +> : ^ +>obj : { x: number; } +> : ^^^^^ ^^^ + + let x11 = { ...v }; +>x11 : T | U +> : ^^^^^ +>{ ...v } : T | U +> : ^^^^^ +>v : T | U +> : ^^^^^ + + let x12 = { ...v, ...obj }; +>x12 : (T & { x: number; }) | (U & { x: number; }) +> : ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^ +>{ ...v, ...obj } : (T & { x: number; }) | (U & { x: number; }) +> : ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^ +>v : T | U +> : ^^^^^ +>obj : { x: number; } +> : ^^^^^ ^^^ + + let x13 = { ...w }; +>x13 : T | { s: string; } +> : ^^^^^^^^^ ^^^ +>{ ...w } : T | { s: string; } +> : ^^^^^^^^^ ^^^ +>w : T | { s: string; } +> : ^^^^^^^^^ ^^^ + + let x14 = { ...w, ...obj }; +>x14 : (T & { x: number; }) | { x: number; s: string; } +> : ^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^ ^^^ +>{ ...w, ...obj } : (T & { x: number; }) | { x: number; s: string; } +> : ^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^ ^^^ +>w : T | { s: string; } +> : ^^^^^^^^^ ^^^ +>obj : { x: number; } +> : ^^^^^ ^^^ + + let x15 = { ...t, ...v }; +>x15 : T | (T & U) +> : ^^^^^^^^^^^ +>{ ...t, ...v } : T | (T & U) +> : ^^^^^^^^^^^ +>t : T +> : ^ +>v : T | U +> : ^^^^^ + + let x16 = { ...t, ...w }; +>x16 : T | (T & { s: string; }) +> : ^^^^^^^^^^^^^^ ^^^^ +>{ ...t, ...w } : T | (T & { s: string; }) +> : ^^^^^^^^^^^^^^ ^^^^ +>t : T +> : ^ +>w : T | { s: string; } +> : ^^^^^^^^^ ^^^ + + let x17 = { ...t, ...w, ...obj }; +>x17 : (T & { x: number; }) | (T & { x: number; s: string; }) +> : ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^ ^^^^ +>{ ...t, ...w, ...obj } : (T & { x: number; }) | (T & { x: number; s: string; }) +> : ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^ ^^^^ +>t : T +> : ^ +>w : T | { s: string; } +> : ^^^^^^^^^ ^^^ +>obj : { x: number; } +> : ^^^^^ ^^^ + + let x18 = { ...t, ...v, ...w }; +>x18 : T | (T & U) | (T & { s: string; }) | (T & U & { s: string; }) +> : ^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ ^^^^ +>{ ...t, ...v, ...w } : T | (T & U) | (T & { s: string; }) | (T & U & { s: string; }) +> : ^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ ^^^^ +>t : T +> : ^ +>v : T | U +> : ^^^^^ +>w : T | { s: string; } +> : ^^^^^^^^^ ^^^ +} + diff --git a/tests/baselines/reference/objectSpreadNegative.errors.txt b/tests/baselines/reference/objectSpreadNegative(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/objectSpreadNegative.errors.txt rename to tests/baselines/reference/objectSpreadNegative(target=es2015).errors.txt diff --git a/tests/baselines/reference/objectSpreadNegative(target=es2015).js b/tests/baselines/reference/objectSpreadNegative(target=es2015).js new file mode 100644 index 0000000000000..d98b3b8a0dfec --- /dev/null +++ b/tests/baselines/reference/objectSpreadNegative(target=es2015).js @@ -0,0 +1,140 @@ +//// [tests/cases/conformance/types/spread/objectSpreadNegative.ts] //// + +//// [objectSpreadNegative.ts] +let o = { a: 1, b: 'no' } + +/// private propagates +class PrivateOptionalX { + private x?: number; +} +class PublicX { + public x: number = 42; +} +declare let publicX: PublicX; +declare let privateOptionalX: PrivateOptionalX; +let o2 = { ...publicX, ...privateOptionalX }; +let sn: number = o2.x; // error, x is private +declare let optionalString: { sn?: string }; +declare let optionalNumber: { sn?: number }; +let allOptional: { sn: string | number } = { ...optionalString, ...optionalNumber }; +// error, 'sn' is optional in source, required in target + +// assignability as target +interface Bool { b: boolean }; +interface Str { s: string }; +let spread = { ...{ b: true }, ...{s: "foo" } }; +spread = { s: "foo" }; // error, missing 'b' +let b = { b: false }; +spread = b; // error, missing 's' + +// literal repeats are not allowed, but spread repeats are fine +let duplicated = { b: 'bad', ...o, b: 'bad', ...o2, b: 'bad' } +let duplicatedSpread = { ...o, ...o } +// Note: ignore changes the order that properties are printed +let ignore: { a: number, b: string } = + { b: 'ignored', ...o } + +let o3 = { a: 1, b: 'no' } +let o4 = { b: 'yes', c: true } +let combinedBefore: { a: number, b: string, c: boolean } = + { b: 'ok', ...o3, ...o4 } +let combinedMid: { a: number, b: string, c: boolean } = + { ...o3, b: 'ok', ...o4 } +let combinedNested: { a: number, b: boolean, c: string, d: string } = + { ...{ a: 4, ...{ b: false, c: 'overriden' } }, d: 'actually new', ...{ a: 5, d: 'maybe new' } } +let changeTypeBefore: { a: number, b: string } = + { a: 'wrong type?', ...o3 }; +let computedMiddle: { a: number, b: string, c: boolean, "in the middle": number } = + { ...o3, ['in the middle']: 13, b: 'maybe?', ...o4 } + +// primitives are not allowed, except for falsy ones +let spreadNum = { ...12 }; +let spreadSum = { ...1 + 1 }; +let spreadZero = { ...0 }; +spreadZero.toFixed(); // error, no methods even from a falsy number +let spreadBool = { ...true }; +spreadBool.valueOf(); +let spreadStr = { ...'foo' }; +spreadStr.length; // error, no 'length' +spreadStr.charAt(1); // error, no methods either +// functions are skipped +let spreadFunc = { ...function () { } } +spreadFunc(); // error, no call signature + +// write-only properties get skipped +let setterOnly = { ...{ set b (bad: number) { } } }; +setterOnly.b = 12; // error, 'b' does not exist + +// methods are skipped because they aren't enumerable +class C { p = 1; m() { } } +let c: C = new C() +let spreadC = { ...c } +spreadC.m(); // error 'm' is not in '{ ... c }' + +// non primitive +let obj: object = { a: 123 }; +let spreadObj = { ...obj }; +spreadObj.a; // error 'a' is not in {} + + +//// [objectSpreadNegative.js] +let o = { a: 1, b: 'no' }; +/// private propagates +class PrivateOptionalX { +} +class PublicX { + constructor() { + this.x = 42; + } +} +let o2 = Object.assign(Object.assign({}, publicX), privateOptionalX); +let sn = o2.x; // error, x is private +let allOptional = Object.assign(Object.assign({}, optionalString), optionalNumber); +; +; +let spread = Object.assign({ b: true }, { s: "foo" }); +spread = { s: "foo" }; // error, missing 'b' +let b = { b: false }; +spread = b; // error, missing 's' +// literal repeats are not allowed, but spread repeats are fine +let duplicated = Object.assign(Object.assign(Object.assign(Object.assign({ b: 'bad' }, o), { b: 'bad' }), o2), { b: 'bad' }); +let duplicatedSpread = Object.assign(Object.assign({}, o), o); +// Note: ignore changes the order that properties are printed +let ignore = Object.assign({ b: 'ignored' }, o); +let o3 = { a: 1, b: 'no' }; +let o4 = { b: 'yes', c: true }; +let combinedBefore = Object.assign(Object.assign({ b: 'ok' }, o3), o4); +let combinedMid = Object.assign(Object.assign(Object.assign({}, o3), { b: 'ok' }), o4); +let combinedNested = Object.assign(Object.assign(Object.assign({}, Object.assign({ a: 4 }, { b: false, c: 'overriden' })), { d: 'actually new' }), { a: 5, d: 'maybe new' }); +let changeTypeBefore = Object.assign({ a: 'wrong type?' }, o3); +let computedMiddle = Object.assign(Object.assign(Object.assign({}, o3), { ['in the middle']: 13, b: 'maybe?' }), o4); +// primitives are not allowed, except for falsy ones +let spreadNum = Object.assign({}, 12); +let spreadSum = Object.assign({}, 1 + 1); +let spreadZero = Object.assign({}, 0); +spreadZero.toFixed(); // error, no methods even from a falsy number +let spreadBool = Object.assign({}, true); +spreadBool.valueOf(); +let spreadStr = Object.assign({}, 'foo'); +spreadStr.length; // error, no 'length' +spreadStr.charAt(1); // error, no methods either +// functions are skipped +let spreadFunc = Object.assign({}, function () { }); +spreadFunc(); // error, no call signature +// write-only properties get skipped +let setterOnly = Object.assign({ set b(bad) { } }); +setterOnly.b = 12; // error, 'b' does not exist +// methods are skipped because they aren't enumerable +class C { + constructor() { + this.p = 1; + } + m() { } +} +let c = new C(); +let spreadC = Object.assign({}, c); +spreadC.m(); // error 'm' is not in '{ ... c }' +// non primitive +let obj = { a: 123 }; +let spreadObj = Object.assign({}, obj); +spreadObj.a; // error 'a' is not in {} diff --git a/tests/baselines/reference/objectSpreadNegative.symbols b/tests/baselines/reference/objectSpreadNegative(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/objectSpreadNegative.symbols rename to tests/baselines/reference/objectSpreadNegative(target=es2015).symbols diff --git a/tests/baselines/reference/objectSpreadNegative.types b/tests/baselines/reference/objectSpreadNegative(target=es2015).types similarity index 100% rename from tests/baselines/reference/objectSpreadNegative.types rename to tests/baselines/reference/objectSpreadNegative(target=es2015).types diff --git a/tests/baselines/reference/objectSpreadNegative(target=es5).errors.txt b/tests/baselines/reference/objectSpreadNegative(target=es5).errors.txt new file mode 100644 index 0000000000000..248cf36e66580 --- /dev/null +++ b/tests/baselines/reference/objectSpreadNegative(target=es5).errors.txt @@ -0,0 +1,161 @@ +objectSpreadNegative.ts(13,21): error TS2339: Property 'x' does not exist on type '{}'. +objectSpreadNegative.ts(16,5): error TS2322: Type '{ sn?: string | number | undefined; }' is not assignable to type '{ sn: string | number; }'. + Types of property 'sn' are incompatible. + Type 'string | number | undefined' is not assignable to type 'string | number'. + Type 'undefined' is not assignable to type 'string | number'. +objectSpreadNegative.ts(23,1): error TS2741: Property 'b' is missing in type '{ s: string; }' but required in type '{ s: string; b: boolean; }'. +objectSpreadNegative.ts(25,1): error TS2741: Property 's' is missing in type '{ b: boolean; }' but required in type '{ s: string; b: boolean; }'. +objectSpreadNegative.ts(28,20): error TS2783: 'b' is specified more than once, so this usage will be overwritten. +objectSpreadNegative.ts(28,36): error TS1117: An object literal cannot have multiple properties with the same name. +objectSpreadNegative.ts(28,53): error TS1117: An object literal cannot have multiple properties with the same name. +objectSpreadNegative.ts(32,7): error TS2783: 'b' is specified more than once, so this usage will be overwritten. +objectSpreadNegative.ts(37,7): error TS2783: 'b' is specified more than once, so this usage will be overwritten. +objectSpreadNegative.ts(39,14): error TS2783: 'b' is specified more than once, so this usage will be overwritten. +objectSpreadNegative.ts(41,53): error TS2783: 'd' is specified more than once, so this usage will be overwritten. +objectSpreadNegative.ts(43,7): error TS2783: 'a' is specified more than once, so this usage will be overwritten. +objectSpreadNegative.ts(45,37): error TS2783: 'b' is specified more than once, so this usage will be overwritten. +objectSpreadNegative.ts(48,19): error TS2698: Spread types may only be created from object types. +objectSpreadNegative.ts(49,19): error TS2698: Spread types may only be created from object types. +objectSpreadNegative.ts(50,20): error TS2698: Spread types may only be created from object types. +objectSpreadNegative.ts(52,20): error TS2698: Spread types may only be created from object types. +objectSpreadNegative.ts(54,19): error TS2698: Spread types may only be created from object types. +objectSpreadNegative.ts(59,1): error TS2349: This expression is not callable. + Type '{}' has no call signatures. +objectSpreadNegative.ts(63,1): error TS2322: Type '12' is not assignable to type 'undefined'. +objectSpreadNegative.ts(69,9): error TS2339: Property 'm' does not exist on type '{ p: number; }'. +objectSpreadNegative.ts(74,11): error TS2339: Property 'a' does not exist on type '{}'. + + +==== objectSpreadNegative.ts (22 errors) ==== + let o = { a: 1, b: 'no' } + + /// private propagates + class PrivateOptionalX { + private x?: number; + } + class PublicX { + public x: number = 42; + } + declare let publicX: PublicX; + declare let privateOptionalX: PrivateOptionalX; + let o2 = { ...publicX, ...privateOptionalX }; + let sn: number = o2.x; // error, x is private + ~ +!!! error TS2339: Property 'x' does not exist on type '{}'. + declare let optionalString: { sn?: string }; + declare let optionalNumber: { sn?: number }; + let allOptional: { sn: string | number } = { ...optionalString, ...optionalNumber }; + ~~~~~~~~~~~ +!!! error TS2322: Type '{ sn?: string | number | undefined; }' is not assignable to type '{ sn: string | number; }'. +!!! error TS2322: Types of property 'sn' are incompatible. +!!! error TS2322: Type 'string | number | undefined' is not assignable to type 'string | number'. +!!! error TS2322: Type 'undefined' is not assignable to type 'string | number'. + // error, 'sn' is optional in source, required in target + + // assignability as target + interface Bool { b: boolean }; + interface Str { s: string }; + let spread = { ...{ b: true }, ...{s: "foo" } }; + spread = { s: "foo" }; // error, missing 'b' + ~~~~~~ +!!! error TS2741: Property 'b' is missing in type '{ s: string; }' but required in type '{ s: string; b: boolean; }'. +!!! related TS2728 objectSpreadNegative.ts:22:21: 'b' is declared here. + let b = { b: false }; + spread = b; // error, missing 's' + ~~~~~~ +!!! error TS2741: Property 's' is missing in type '{ b: boolean; }' but required in type '{ s: string; b: boolean; }'. +!!! related TS2728 objectSpreadNegative.ts:22:36: 's' is declared here. + + // literal repeats are not allowed, but spread repeats are fine + let duplicated = { b: 'bad', ...o, b: 'bad', ...o2, b: 'bad' } + ~~~~~~~~ +!!! error TS2783: 'b' is specified more than once, so this usage will be overwritten. +!!! related TS2785 objectSpreadNegative.ts:28:30: This spread always overwrites this property. + ~ +!!! error TS1117: An object literal cannot have multiple properties with the same name. + ~ +!!! error TS1117: An object literal cannot have multiple properties with the same name. + let duplicatedSpread = { ...o, ...o } + // Note: ignore changes the order that properties are printed + let ignore: { a: number, b: string } = + { b: 'ignored', ...o } + ~~~~~~~~~~~~ +!!! error TS2783: 'b' is specified more than once, so this usage will be overwritten. +!!! related TS2785 objectSpreadNegative.ts:32:21: This spread always overwrites this property. + + let o3 = { a: 1, b: 'no' } + let o4 = { b: 'yes', c: true } + let combinedBefore: { a: number, b: string, c: boolean } = + { b: 'ok', ...o3, ...o4 } + ~~~~~~~ +!!! error TS2783: 'b' is specified more than once, so this usage will be overwritten. +!!! related TS2785 objectSpreadNegative.ts:37:16: This spread always overwrites this property. + let combinedMid: { a: number, b: string, c: boolean } = + { ...o3, b: 'ok', ...o4 } + ~~~~~~~ +!!! error TS2783: 'b' is specified more than once, so this usage will be overwritten. +!!! related TS2785 objectSpreadNegative.ts:39:23: This spread always overwrites this property. + let combinedNested: { a: number, b: boolean, c: string, d: string } = + { ...{ a: 4, ...{ b: false, c: 'overriden' } }, d: 'actually new', ...{ a: 5, d: 'maybe new' } } + ~~~~~~~~~~~~~~~~~ +!!! error TS2783: 'd' is specified more than once, so this usage will be overwritten. +!!! related TS2785 objectSpreadNegative.ts:41:72: This spread always overwrites this property. + let changeTypeBefore: { a: number, b: string } = + { a: 'wrong type?', ...o3 }; + ~~~~~~~~~~~~~~~~ +!!! error TS2783: 'a' is specified more than once, so this usage will be overwritten. +!!! related TS2785 objectSpreadNegative.ts:43:25: This spread always overwrites this property. + let computedMiddle: { a: number, b: string, c: boolean, "in the middle": number } = + { ...o3, ['in the middle']: 13, b: 'maybe?', ...o4 } + ~~~~~~~~~~~ +!!! error TS2783: 'b' is specified more than once, so this usage will be overwritten. +!!! related TS2785 objectSpreadNegative.ts:45:50: This spread always overwrites this property. + + // primitives are not allowed, except for falsy ones + let spreadNum = { ...12 }; + ~~~~~ +!!! error TS2698: Spread types may only be created from object types. + let spreadSum = { ...1 + 1 }; + ~~~~~~~~ +!!! error TS2698: Spread types may only be created from object types. + let spreadZero = { ...0 }; + ~~~~ +!!! error TS2698: Spread types may only be created from object types. + spreadZero.toFixed(); // error, no methods even from a falsy number + let spreadBool = { ...true }; + ~~~~~~~ +!!! error TS2698: Spread types may only be created from object types. + spreadBool.valueOf(); + let spreadStr = { ...'foo' }; + ~~~~~~~~ +!!! error TS2698: Spread types may only be created from object types. + spreadStr.length; // error, no 'length' + spreadStr.charAt(1); // error, no methods either + // functions are skipped + let spreadFunc = { ...function () { } } + spreadFunc(); // error, no call signature + ~~~~~~~~~~ +!!! error TS2349: This expression is not callable. +!!! error TS2349: Type '{}' has no call signatures. + + // write-only properties get skipped + let setterOnly = { ...{ set b (bad: number) { } } }; + setterOnly.b = 12; // error, 'b' does not exist + ~~~~~~~~~~~~ +!!! error TS2322: Type '12' is not assignable to type 'undefined'. + + // methods are skipped because they aren't enumerable + class C { p = 1; m() { } } + let c: C = new C() + let spreadC = { ...c } + spreadC.m(); // error 'm' is not in '{ ... c }' + ~ +!!! error TS2339: Property 'm' does not exist on type '{ p: number; }'. + + // non primitive + let obj: object = { a: 123 }; + let spreadObj = { ...obj }; + spreadObj.a; // error 'a' is not in {} + ~ +!!! error TS2339: Property 'a' does not exist on type '{}'. + \ No newline at end of file diff --git a/tests/baselines/reference/objectSpreadNegative.js b/tests/baselines/reference/objectSpreadNegative(target=es5).js similarity index 100% rename from tests/baselines/reference/objectSpreadNegative.js rename to tests/baselines/reference/objectSpreadNegative(target=es5).js diff --git a/tests/baselines/reference/objectSpreadNegative(target=es5).symbols b/tests/baselines/reference/objectSpreadNegative(target=es5).symbols new file mode 100644 index 0000000000000..2862a1b864548 --- /dev/null +++ b/tests/baselines/reference/objectSpreadNegative(target=es5).symbols @@ -0,0 +1,250 @@ +//// [tests/cases/conformance/types/spread/objectSpreadNegative.ts] //// + +=== objectSpreadNegative.ts === +let o = { a: 1, b: 'no' } +>o : Symbol(o, Decl(objectSpreadNegative.ts, 0, 3)) +>a : Symbol(a, Decl(objectSpreadNegative.ts, 0, 9)) +>b : Symbol(b, Decl(objectSpreadNegative.ts, 0, 15)) + +/// private propagates +class PrivateOptionalX { +>PrivateOptionalX : Symbol(PrivateOptionalX, Decl(objectSpreadNegative.ts, 0, 25)) + + private x?: number; +>x : Symbol(PrivateOptionalX.x, Decl(objectSpreadNegative.ts, 3, 24)) +} +class PublicX { +>PublicX : Symbol(PublicX, Decl(objectSpreadNegative.ts, 5, 1)) + + public x: number = 42; +>x : Symbol(PublicX.x, Decl(objectSpreadNegative.ts, 6, 15)) +} +declare let publicX: PublicX; +>publicX : Symbol(publicX, Decl(objectSpreadNegative.ts, 9, 11)) +>PublicX : Symbol(PublicX, Decl(objectSpreadNegative.ts, 5, 1)) + +declare let privateOptionalX: PrivateOptionalX; +>privateOptionalX : Symbol(privateOptionalX, Decl(objectSpreadNegative.ts, 10, 11)) +>PrivateOptionalX : Symbol(PrivateOptionalX, Decl(objectSpreadNegative.ts, 0, 25)) + +let o2 = { ...publicX, ...privateOptionalX }; +>o2 : Symbol(o2, Decl(objectSpreadNegative.ts, 11, 3)) +>publicX : Symbol(publicX, Decl(objectSpreadNegative.ts, 9, 11)) +>privateOptionalX : Symbol(privateOptionalX, Decl(objectSpreadNegative.ts, 10, 11)) + +let sn: number = o2.x; // error, x is private +>sn : Symbol(sn, Decl(objectSpreadNegative.ts, 12, 3)) +>o2 : Symbol(o2, Decl(objectSpreadNegative.ts, 11, 3)) + +declare let optionalString: { sn?: string }; +>optionalString : Symbol(optionalString, Decl(objectSpreadNegative.ts, 13, 11)) +>sn : Symbol(sn, Decl(objectSpreadNegative.ts, 13, 29)) + +declare let optionalNumber: { sn?: number }; +>optionalNumber : Symbol(optionalNumber, Decl(objectSpreadNegative.ts, 14, 11)) +>sn : Symbol(sn, Decl(objectSpreadNegative.ts, 14, 29)) + +let allOptional: { sn: string | number } = { ...optionalString, ...optionalNumber }; +>allOptional : Symbol(allOptional, Decl(objectSpreadNegative.ts, 15, 3)) +>sn : Symbol(sn, Decl(objectSpreadNegative.ts, 15, 18)) +>optionalString : Symbol(optionalString, Decl(objectSpreadNegative.ts, 13, 11)) +>optionalNumber : Symbol(optionalNumber, Decl(objectSpreadNegative.ts, 14, 11)) + +// error, 'sn' is optional in source, required in target + +// assignability as target +interface Bool { b: boolean }; +>Bool : Symbol(Bool, Decl(objectSpreadNegative.ts, 15, 84)) +>b : Symbol(Bool.b, Decl(objectSpreadNegative.ts, 19, 16)) + +interface Str { s: string }; +>Str : Symbol(Str, Decl(objectSpreadNegative.ts, 19, 30)) +>s : Symbol(Str.s, Decl(objectSpreadNegative.ts, 20, 15)) + +let spread = { ...{ b: true }, ...{s: "foo" } }; +>spread : Symbol(spread, Decl(objectSpreadNegative.ts, 21, 3)) +>b : Symbol(b, Decl(objectSpreadNegative.ts, 21, 19)) +>s : Symbol(s, Decl(objectSpreadNegative.ts, 21, 35)) + +spread = { s: "foo" }; // error, missing 'b' +>spread : Symbol(spread, Decl(objectSpreadNegative.ts, 21, 3)) +>s : Symbol(s, Decl(objectSpreadNegative.ts, 22, 10)) + +let b = { b: false }; +>b : Symbol(b, Decl(objectSpreadNegative.ts, 23, 3)) +>b : Symbol(b, Decl(objectSpreadNegative.ts, 23, 9)) + +spread = b; // error, missing 's' +>spread : Symbol(spread, Decl(objectSpreadNegative.ts, 21, 3)) +>b : Symbol(b, Decl(objectSpreadNegative.ts, 23, 3)) + +// literal repeats are not allowed, but spread repeats are fine +let duplicated = { b: 'bad', ...o, b: 'bad', ...o2, b: 'bad' } +>duplicated : Symbol(duplicated, Decl(objectSpreadNegative.ts, 27, 3)) +>b : Symbol(b, Decl(objectSpreadNegative.ts, 27, 18), Decl(objectSpreadNegative.ts, 27, 34), Decl(objectSpreadNegative.ts, 27, 51)) +>o : Symbol(o, Decl(objectSpreadNegative.ts, 0, 3)) +>b : Symbol(b, Decl(objectSpreadNegative.ts, 27, 18), Decl(objectSpreadNegative.ts, 27, 34), Decl(objectSpreadNegative.ts, 27, 51)) +>o2 : Symbol(o2, Decl(objectSpreadNegative.ts, 11, 3)) +>b : Symbol(b, Decl(objectSpreadNegative.ts, 27, 18), Decl(objectSpreadNegative.ts, 27, 34), Decl(objectSpreadNegative.ts, 27, 51)) + +let duplicatedSpread = { ...o, ...o } +>duplicatedSpread : Symbol(duplicatedSpread, Decl(objectSpreadNegative.ts, 28, 3)) +>o : Symbol(o, Decl(objectSpreadNegative.ts, 0, 3)) +>o : Symbol(o, Decl(objectSpreadNegative.ts, 0, 3)) + +// Note: ignore changes the order that properties are printed +let ignore: { a: number, b: string } = +>ignore : Symbol(ignore, Decl(objectSpreadNegative.ts, 30, 3)) +>a : Symbol(a, Decl(objectSpreadNegative.ts, 30, 13)) +>b : Symbol(b, Decl(objectSpreadNegative.ts, 30, 24)) + + { b: 'ignored', ...o } +>b : Symbol(b, Decl(objectSpreadNegative.ts, 31, 5)) +>o : Symbol(o, Decl(objectSpreadNegative.ts, 0, 3)) + +let o3 = { a: 1, b: 'no' } +>o3 : Symbol(o3, Decl(objectSpreadNegative.ts, 33, 3)) +>a : Symbol(a, Decl(objectSpreadNegative.ts, 33, 10)) +>b : Symbol(b, Decl(objectSpreadNegative.ts, 33, 16)) + +let o4 = { b: 'yes', c: true } +>o4 : Symbol(o4, Decl(objectSpreadNegative.ts, 34, 3)) +>b : Symbol(b, Decl(objectSpreadNegative.ts, 34, 10)) +>c : Symbol(c, Decl(objectSpreadNegative.ts, 34, 20)) + +let combinedBefore: { a: number, b: string, c: boolean } = +>combinedBefore : Symbol(combinedBefore, Decl(objectSpreadNegative.ts, 35, 3)) +>a : Symbol(a, Decl(objectSpreadNegative.ts, 35, 21)) +>b : Symbol(b, Decl(objectSpreadNegative.ts, 35, 32)) +>c : Symbol(c, Decl(objectSpreadNegative.ts, 35, 43)) + + { b: 'ok', ...o3, ...o4 } +>b : Symbol(b, Decl(objectSpreadNegative.ts, 36, 5)) +>o3 : Symbol(o3, Decl(objectSpreadNegative.ts, 33, 3)) +>o4 : Symbol(o4, Decl(objectSpreadNegative.ts, 34, 3)) + +let combinedMid: { a: number, b: string, c: boolean } = +>combinedMid : Symbol(combinedMid, Decl(objectSpreadNegative.ts, 37, 3)) +>a : Symbol(a, Decl(objectSpreadNegative.ts, 37, 18)) +>b : Symbol(b, Decl(objectSpreadNegative.ts, 37, 29)) +>c : Symbol(c, Decl(objectSpreadNegative.ts, 37, 40)) + + { ...o3, b: 'ok', ...o4 } +>o3 : Symbol(o3, Decl(objectSpreadNegative.ts, 33, 3)) +>b : Symbol(b, Decl(objectSpreadNegative.ts, 38, 12)) +>o4 : Symbol(o4, Decl(objectSpreadNegative.ts, 34, 3)) + +let combinedNested: { a: number, b: boolean, c: string, d: string } = +>combinedNested : Symbol(combinedNested, Decl(objectSpreadNegative.ts, 39, 3)) +>a : Symbol(a, Decl(objectSpreadNegative.ts, 39, 21)) +>b : Symbol(b, Decl(objectSpreadNegative.ts, 39, 32)) +>c : Symbol(c, Decl(objectSpreadNegative.ts, 39, 44)) +>d : Symbol(d, Decl(objectSpreadNegative.ts, 39, 55)) + + { ...{ a: 4, ...{ b: false, c: 'overriden' } }, d: 'actually new', ...{ a: 5, d: 'maybe new' } } +>a : Symbol(a, Decl(objectSpreadNegative.ts, 40, 10)) +>b : Symbol(b, Decl(objectSpreadNegative.ts, 40, 21)) +>c : Symbol(c, Decl(objectSpreadNegative.ts, 40, 31)) +>d : Symbol(d, Decl(objectSpreadNegative.ts, 40, 51)) +>a : Symbol(a, Decl(objectSpreadNegative.ts, 40, 75)) +>d : Symbol(d, Decl(objectSpreadNegative.ts, 40, 81)) + +let changeTypeBefore: { a: number, b: string } = +>changeTypeBefore : Symbol(changeTypeBefore, Decl(objectSpreadNegative.ts, 41, 3)) +>a : Symbol(a, Decl(objectSpreadNegative.ts, 41, 23)) +>b : Symbol(b, Decl(objectSpreadNegative.ts, 41, 34)) + + { a: 'wrong type?', ...o3 }; +>a : Symbol(a, Decl(objectSpreadNegative.ts, 42, 5)) +>o3 : Symbol(o3, Decl(objectSpreadNegative.ts, 33, 3)) + +let computedMiddle: { a: number, b: string, c: boolean, "in the middle": number } = +>computedMiddle : Symbol(computedMiddle, Decl(objectSpreadNegative.ts, 43, 3)) +>a : Symbol(a, Decl(objectSpreadNegative.ts, 43, 21)) +>b : Symbol(b, Decl(objectSpreadNegative.ts, 43, 32)) +>c : Symbol(c, Decl(objectSpreadNegative.ts, 43, 43)) +>"in the middle" : Symbol("in the middle", Decl(objectSpreadNegative.ts, 43, 55)) + + { ...o3, ['in the middle']: 13, b: 'maybe?', ...o4 } +>o3 : Symbol(o3, Decl(objectSpreadNegative.ts, 33, 3)) +>['in the middle'] : Symbol(['in the middle'], Decl(objectSpreadNegative.ts, 44, 12)) +>'in the middle' : Symbol(['in the middle'], Decl(objectSpreadNegative.ts, 44, 12)) +>b : Symbol(b, Decl(objectSpreadNegative.ts, 44, 35)) +>o4 : Symbol(o4, Decl(objectSpreadNegative.ts, 34, 3)) + +// primitives are not allowed, except for falsy ones +let spreadNum = { ...12 }; +>spreadNum : Symbol(spreadNum, Decl(objectSpreadNegative.ts, 47, 3)) + +let spreadSum = { ...1 + 1 }; +>spreadSum : Symbol(spreadSum, Decl(objectSpreadNegative.ts, 48, 3)) + +let spreadZero = { ...0 }; +>spreadZero : Symbol(spreadZero, Decl(objectSpreadNegative.ts, 49, 3)) + +spreadZero.toFixed(); // error, no methods even from a falsy number +>spreadZero : Symbol(spreadZero, Decl(objectSpreadNegative.ts, 49, 3)) + +let spreadBool = { ...true }; +>spreadBool : Symbol(spreadBool, Decl(objectSpreadNegative.ts, 51, 3)) + +spreadBool.valueOf(); +>spreadBool : Symbol(spreadBool, Decl(objectSpreadNegative.ts, 51, 3)) + +let spreadStr = { ...'foo' }; +>spreadStr : Symbol(spreadStr, Decl(objectSpreadNegative.ts, 53, 3)) + +spreadStr.length; // error, no 'length' +>spreadStr : Symbol(spreadStr, Decl(objectSpreadNegative.ts, 53, 3)) + +spreadStr.charAt(1); // error, no methods either +>spreadStr : Symbol(spreadStr, Decl(objectSpreadNegative.ts, 53, 3)) + +// functions are skipped +let spreadFunc = { ...function () { } } +>spreadFunc : Symbol(spreadFunc, Decl(objectSpreadNegative.ts, 57, 3)) + +spreadFunc(); // error, no call signature +>spreadFunc : Symbol(spreadFunc, Decl(objectSpreadNegative.ts, 57, 3)) + +// write-only properties get skipped +let setterOnly = { ...{ set b (bad: number) { } } }; +>setterOnly : Symbol(setterOnly, Decl(objectSpreadNegative.ts, 61, 3)) +>b : Symbol(b, Decl(objectSpreadNegative.ts, 61, 23)) +>bad : Symbol(bad, Decl(objectSpreadNegative.ts, 61, 31)) + +setterOnly.b = 12; // error, 'b' does not exist +>setterOnly.b : Symbol(b, Decl(objectSpreadNegative.ts, 61, 23)) +>setterOnly : Symbol(setterOnly, Decl(objectSpreadNegative.ts, 61, 3)) +>b : Symbol(b, Decl(objectSpreadNegative.ts, 61, 23)) + +// methods are skipped because they aren't enumerable +class C { p = 1; m() { } } +>C : Symbol(C, Decl(objectSpreadNegative.ts, 62, 18)) +>p : Symbol(C.p, Decl(objectSpreadNegative.ts, 65, 9)) +>m : Symbol(C.m, Decl(objectSpreadNegative.ts, 65, 16)) + +let c: C = new C() +>c : Symbol(c, Decl(objectSpreadNegative.ts, 66, 3)) +>C : Symbol(C, Decl(objectSpreadNegative.ts, 62, 18)) +>C : Symbol(C, Decl(objectSpreadNegative.ts, 62, 18)) + +let spreadC = { ...c } +>spreadC : Symbol(spreadC, Decl(objectSpreadNegative.ts, 67, 3)) +>c : Symbol(c, Decl(objectSpreadNegative.ts, 66, 3)) + +spreadC.m(); // error 'm' is not in '{ ... c }' +>spreadC : Symbol(spreadC, Decl(objectSpreadNegative.ts, 67, 3)) + +// non primitive +let obj: object = { a: 123 }; +>obj : Symbol(obj, Decl(objectSpreadNegative.ts, 71, 3)) +>a : Symbol(a, Decl(objectSpreadNegative.ts, 71, 19)) + +let spreadObj = { ...obj }; +>spreadObj : Symbol(spreadObj, Decl(objectSpreadNegative.ts, 72, 3)) +>obj : Symbol(obj, Decl(objectSpreadNegative.ts, 71, 3)) + +spreadObj.a; // error 'a' is not in {} +>spreadObj : Symbol(spreadObj, Decl(objectSpreadNegative.ts, 72, 3)) + diff --git a/tests/baselines/reference/objectSpreadNegative(target=es5).types b/tests/baselines/reference/objectSpreadNegative(target=es5).types new file mode 100644 index 0000000000000..0e1c4abe618c2 --- /dev/null +++ b/tests/baselines/reference/objectSpreadNegative(target=es5).types @@ -0,0 +1,554 @@ +//// [tests/cases/conformance/types/spread/objectSpreadNegative.ts] //// + +=== objectSpreadNegative.ts === +let o = { a: 1, b: 'no' } +>o : { a: number; b: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ a: 1, b: 'no' } : { a: number; b: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>a : number +> : ^^^^^^ +>1 : 1 +> : ^ +>b : string +> : ^^^^^^ +>'no' : "no" +> : ^^^^ + +/// private propagates +class PrivateOptionalX { +>PrivateOptionalX : PrivateOptionalX +> : ^^^^^^^^^^^^^^^^ + + private x?: number; +>x : number | undefined +> : ^^^^^^^^^^^^^^^^^^ +} +class PublicX { +>PublicX : PublicX +> : ^^^^^^^ + + public x: number = 42; +>x : number +> : ^^^^^^ +>42 : 42 +> : ^^ +} +declare let publicX: PublicX; +>publicX : PublicX +> : ^^^^^^^ + +declare let privateOptionalX: PrivateOptionalX; +>privateOptionalX : PrivateOptionalX +> : ^^^^^^^^^^^^^^^^ + +let o2 = { ...publicX, ...privateOptionalX }; +>o2 : {} +> : ^^ +>{ ...publicX, ...privateOptionalX } : {} +> : ^^ +>publicX : PublicX +> : ^^^^^^^ +>privateOptionalX : PrivateOptionalX +> : ^^^^^^^^^^^^^^^^ + +let sn: number = o2.x; // error, x is private +>sn : number +> : ^^^^^^ +>o2.x : any +> : ^^^ +>o2 : {} +> : ^^ +>x : any +> : ^^^ + +declare let optionalString: { sn?: string }; +>optionalString : { sn?: string; } +> : ^^^^^^^ ^^^ +>sn : string | undefined +> : ^^^^^^^^^^^^^^^^^^ + +declare let optionalNumber: { sn?: number }; +>optionalNumber : { sn?: number; } +> : ^^^^^^^ ^^^ +>sn : number | undefined +> : ^^^^^^^^^^^^^^^^^^ + +let allOptional: { sn: string | number } = { ...optionalString, ...optionalNumber }; +>allOptional : { sn: string | number; } +> : ^^^^^^ ^^^ +>sn : string | number +> : ^^^^^^^^^^^^^^^ +>{ ...optionalString, ...optionalNumber } : { sn?: string | number | undefined; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>optionalString : { sn?: string; } +> : ^^^^^^^ ^^^ +>optionalNumber : { sn?: number; } +> : ^^^^^^^ ^^^ + +// error, 'sn' is optional in source, required in target + +// assignability as target +interface Bool { b: boolean }; +>b : boolean +> : ^^^^^^^ + +interface Str { s: string }; +>s : string +> : ^^^^^^ + +let spread = { ...{ b: true }, ...{s: "foo" } }; +>spread : { s: string; b: boolean; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ ...{ b: true }, ...{s: "foo" } } : { s: string; b: boolean; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ b: true } : { b: boolean; } +> : ^^^^^^^^^^^^^^^ +>b : boolean +> : ^^^^^^^ +>true : true +> : ^^^^ +>{s: "foo" } : { s: string; } +> : ^^^^^^^^^^^^^^ +>s : string +> : ^^^^^^ +>"foo" : "foo" +> : ^^^^^ + +spread = { s: "foo" }; // error, missing 'b' +>spread = { s: "foo" } : { s: string; } +> : ^^^^^^^^^^^^^^ +>spread : { s: string; b: boolean; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ s: "foo" } : { s: string; } +> : ^^^^^^^^^^^^^^ +>s : string +> : ^^^^^^ +>"foo" : "foo" +> : ^^^^^ + +let b = { b: false }; +>b : { b: boolean; } +> : ^^^^^^^^^^^^^^^ +>{ b: false } : { b: boolean; } +> : ^^^^^^^^^^^^^^^ +>b : boolean +> : ^^^^^^^ +>false : false +> : ^^^^^ + +spread = b; // error, missing 's' +>spread = b : { b: boolean; } +> : ^^^^^^^^^^^^^^^ +>spread : { s: string; b: boolean; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^ +>b : { b: boolean; } +> : ^^^^^^^^^^^^^^^ + +// literal repeats are not allowed, but spread repeats are fine +let duplicated = { b: 'bad', ...o, b: 'bad', ...o2, b: 'bad' } +>duplicated : { b: string; a: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ b: 'bad', ...o, b: 'bad', ...o2, b: 'bad' } : { b: string; a: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>b : string +> : ^^^^^^ +>'bad' : "bad" +> : ^^^^^ +>o : { a: number; b: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>b : string +> : ^^^^^^ +>'bad' : "bad" +> : ^^^^^ +>o2 : {} +> : ^^ +>b : string +> : ^^^^^^ +>'bad' : "bad" +> : ^^^^^ + +let duplicatedSpread = { ...o, ...o } +>duplicatedSpread : { a: number; b: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ ...o, ...o } : { a: number; b: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>o : { a: number; b: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>o : { a: number; b: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ + +// Note: ignore changes the order that properties are printed +let ignore: { a: number, b: string } = +>ignore : { a: number; b: string; } +> : ^^^^^ ^^^^^ ^^^ +>a : number +> : ^^^^^^ +>b : string +> : ^^^^^^ + + { b: 'ignored', ...o } +>{ b: 'ignored', ...o } : { a: number; b: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>b : string +> : ^^^^^^ +>'ignored' : "ignored" +> : ^^^^^^^^^ +>o : { a: number; b: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ + +let o3 = { a: 1, b: 'no' } +>o3 : { a: number; b: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ a: 1, b: 'no' } : { a: number; b: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>a : number +> : ^^^^^^ +>1 : 1 +> : ^ +>b : string +> : ^^^^^^ +>'no' : "no" +> : ^^^^ + +let o4 = { b: 'yes', c: true } +>o4 : { b: string; c: boolean; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ b: 'yes', c: true } : { b: string; c: boolean; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^ +>b : string +> : ^^^^^^ +>'yes' : "yes" +> : ^^^^^ +>c : boolean +> : ^^^^^^^ +>true : true +> : ^^^^ + +let combinedBefore: { a: number, b: string, c: boolean } = +>combinedBefore : { a: number; b: string; c: boolean; } +> : ^^^^^ ^^^^^ ^^^^^ ^^^ +>a : number +> : ^^^^^^ +>b : string +> : ^^^^^^ +>c : boolean +> : ^^^^^^^ + + { b: 'ok', ...o3, ...o4 } +>{ b: 'ok', ...o3, ...o4 } : { b: string; c: boolean; a: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>b : string +> : ^^^^^^ +>'ok' : "ok" +> : ^^^^ +>o3 : { a: number; b: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>o4 : { b: string; c: boolean; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^ + +let combinedMid: { a: number, b: string, c: boolean } = +>combinedMid : { a: number; b: string; c: boolean; } +> : ^^^^^ ^^^^^ ^^^^^ ^^^ +>a : number +> : ^^^^^^ +>b : string +> : ^^^^^^ +>c : boolean +> : ^^^^^^^ + + { ...o3, b: 'ok', ...o4 } +>{ ...o3, b: 'ok', ...o4 } : { b: string; c: boolean; a: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>o3 : { a: number; b: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>b : string +> : ^^^^^^ +>'ok' : "ok" +> : ^^^^ +>o4 : { b: string; c: boolean; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^ + +let combinedNested: { a: number, b: boolean, c: string, d: string } = +>combinedNested : { a: number; b: boolean; c: string; d: string; } +> : ^^^^^ ^^^^^ ^^^^^ ^^^^^ ^^^ +>a : number +> : ^^^^^^ +>b : boolean +> : ^^^^^^^ +>c : string +> : ^^^^^^ +>d : string +> : ^^^^^^ + + { ...{ a: 4, ...{ b: false, c: 'overriden' } }, d: 'actually new', ...{ a: 5, d: 'maybe new' } } +>{ ...{ a: 4, ...{ b: false, c: 'overriden' } }, d: 'actually new', ...{ a: 5, d: 'maybe new' } } : { a: number; d: string; b: false; c: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ a: 4, ...{ b: false, c: 'overriden' } } : { b: false; c: string; a: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>a : number +> : ^^^^^^ +>4 : 4 +> : ^ +>{ b: false, c: 'overriden' } : { b: false; c: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^ +>b : false +> : ^^^^^ +>false : false +> : ^^^^^ +>c : string +> : ^^^^^^ +>'overriden' : "overriden" +> : ^^^^^^^^^^^ +>d : string +> : ^^^^^^ +>'actually new' : "actually new" +> : ^^^^^^^^^^^^^^ +>{ a: 5, d: 'maybe new' } : { a: number; d: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>a : number +> : ^^^^^^ +>5 : 5 +> : ^ +>d : string +> : ^^^^^^ +>'maybe new' : "maybe new" +> : ^^^^^^^^^^^ + +let changeTypeBefore: { a: number, b: string } = +>changeTypeBefore : { a: number; b: string; } +> : ^^^^^ ^^^^^ ^^^ +>a : number +> : ^^^^^^ +>b : string +> : ^^^^^^ + + { a: 'wrong type?', ...o3 }; +>{ a: 'wrong type?', ...o3 } : { a: number; b: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>a : string +> : ^^^^^^ +>'wrong type?' : "wrong type?" +> : ^^^^^^^^^^^^^ +>o3 : { a: number; b: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ + +let computedMiddle: { a: number, b: string, c: boolean, "in the middle": number } = +>computedMiddle : { a: number; b: string; c: boolean; "in the middle": number; } +> : ^^^^^ ^^^^^ ^^^^^ ^^^^^^^^^^^^^^^^^^^ ^^^ +>a : number +> : ^^^^^^ +>b : string +> : ^^^^^^ +>c : boolean +> : ^^^^^^^ +>"in the middle" : number +> : ^^^^^^ + + { ...o3, ['in the middle']: 13, b: 'maybe?', ...o4 } +>{ ...o3, ['in the middle']: 13, b: 'maybe?', ...o4 } : { b: string; c: boolean; "in the middle": number; a: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>o3 : { a: number; b: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>['in the middle'] : number +> : ^^^^^^ +>'in the middle' : "in the middle" +> : ^^^^^^^^^^^^^^^ +>13 : 13 +> : ^^ +>b : string +> : ^^^^^^ +>'maybe?' : "maybe?" +> : ^^^^^^^^ +>o4 : { b: string; c: boolean; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^ + +// primitives are not allowed, except for falsy ones +let spreadNum = { ...12 }; +>spreadNum : any +> : ^^^ +>{ ...12 } : any +> : ^^^ +>12 : 12 +> : ^^ + +let spreadSum = { ...1 + 1 }; +>spreadSum : any +> : ^^^ +>{ ...1 + 1 } : any +> : ^^^ +>1 + 1 : number +> : ^^^^^^ +>1 : 1 +> : ^ +>1 : 1 +> : ^ + +let spreadZero = { ...0 }; +>spreadZero : any +> : ^^^ +>{ ...0 } : any +> : ^^^ +>0 : 0 +> : ^ + +spreadZero.toFixed(); // error, no methods even from a falsy number +>spreadZero.toFixed() : any +> : ^^^ +>spreadZero.toFixed : any +> : ^^^ +>spreadZero : any +> : ^^^ +>toFixed : any +> : ^^^ + +let spreadBool = { ...true }; +>spreadBool : any +> : ^^^ +>{ ...true } : any +> : ^^^ +>true : true +> : ^^^^ + +spreadBool.valueOf(); +>spreadBool.valueOf() : any +> : ^^^ +>spreadBool.valueOf : any +> : ^^^ +>spreadBool : any +> : ^^^ +>valueOf : any +> : ^^^ + +let spreadStr = { ...'foo' }; +>spreadStr : any +> : ^^^ +>{ ...'foo' } : any +> : ^^^ +>'foo' : "foo" +> : ^^^^^ + +spreadStr.length; // error, no 'length' +>spreadStr.length : any +> : ^^^ +>spreadStr : any +> : ^^^ +>length : any +> : ^^^ + +spreadStr.charAt(1); // error, no methods either +>spreadStr.charAt(1) : any +> : ^^^ +>spreadStr.charAt : any +> : ^^^ +>spreadStr : any +> : ^^^ +>charAt : any +> : ^^^ +>1 : 1 +> : ^ + +// functions are skipped +let spreadFunc = { ...function () { } } +>spreadFunc : {} +> : ^^ +>{ ...function () { } } : {} +> : ^^ +>function () { } : () => void +> : ^^^^^^^^^^ + +spreadFunc(); // error, no call signature +>spreadFunc() : any +> : ^^^ +>spreadFunc : {} +> : ^^ + +// write-only properties get skipped +let setterOnly = { ...{ set b (bad: number) { } } }; +>setterOnly : { b: undefined; } +> : ^^^^^^^^^^^^^^^^^ +>{ ...{ set b (bad: number) { } } } : { b: undefined; } +> : ^^^^^^^^^^^^^^^^^ +>{ set b (bad: number) { } } : { b: number; } +> : ^^^^^ ^^^ +>b : number +> : ^^^^^^ +>bad : number +> : ^^^^^^ + +setterOnly.b = 12; // error, 'b' does not exist +>setterOnly.b = 12 : 12 +> : ^^ +>setterOnly.b : undefined +> : ^^^^^^^^^ +>setterOnly : { b: undefined; } +> : ^^^^^^^^^^^^^^^^^ +>b : undefined +> : ^^^^^^^^^ +>12 : 12 +> : ^^ + +// methods are skipped because they aren't enumerable +class C { p = 1; m() { } } +>C : C +> : ^ +>p : number +> : ^^^^^^ +>1 : 1 +> : ^ +>m : () => void +> : ^^^^^^^^^^ + +let c: C = new C() +>c : C +> : ^ +>new C() : C +> : ^ +>C : typeof C +> : ^^^^^^^^ + +let spreadC = { ...c } +>spreadC : { p: number; } +> : ^^^^^^^^^^^^^^ +>{ ...c } : { p: number; } +> : ^^^^^^^^^^^^^^ +>c : C +> : ^ + +spreadC.m(); // error 'm' is not in '{ ... c }' +>spreadC.m() : any +> : ^^^ +>spreadC.m : any +> : ^^^ +>spreadC : { p: number; } +> : ^^^^^^^^^^^^^^ +>m : any +> : ^^^ + +// non primitive +let obj: object = { a: 123 }; +>obj : object +> : ^^^^^^ +>{ a: 123 } : { a: number; } +> : ^^^^^^^^^^^^^^ +>a : number +> : ^^^^^^ +>123 : 123 +> : ^^^ + +let spreadObj = { ...obj }; +>spreadObj : {} +> : ^^ +>{ ...obj } : {} +> : ^^ +>obj : object +> : ^^^^^^ + +spreadObj.a; // error 'a' is not in {} +>spreadObj.a : any +> : ^^^ +>spreadObj : {} +> : ^^ +>a : any +> : ^^^ + diff --git a/tests/baselines/reference/objectTypeWithStringNamedNumericProperty.errors.txt b/tests/baselines/reference/objectTypeWithStringNamedNumericProperty(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/objectTypeWithStringNamedNumericProperty.errors.txt rename to tests/baselines/reference/objectTypeWithStringNamedNumericProperty(target=es2015).errors.txt diff --git a/tests/baselines/reference/objectTypeWithStringNamedNumericProperty(target=es2015).js b/tests/baselines/reference/objectTypeWithStringNamedNumericProperty(target=es2015).js new file mode 100644 index 0000000000000..bc4db71014f4a --- /dev/null +++ b/tests/baselines/reference/objectTypeWithStringNamedNumericProperty(target=es2015).js @@ -0,0 +1,218 @@ +//// [tests/cases/conformance/types/members/objectTypeWithStringNamedNumericProperty.ts] //// + +//// [objectTypeWithStringNamedNumericProperty.ts] +// string named numeric properties are legal and distinct when indexed by string values +// indexed numerically the value is converted to a number +// no errors expected below + +class C { + "0.1": void; + ".1": Object; + "1": number; + "1.": string; + "1..": boolean; + "1.0": Date; + "-1.0": RegExp; + "-1": Date; +} + +declare var c: C; +var r1 = c['0.1']; +var r2 = c['.1']; +var r3 = c['1']; +var r3 = c[1]; +var r4 = c['1.']; +var r3 = c[1.]; // same as indexing by 1 when done numerically +var r5 = c['1..']; +var r6 = c['1.0']; +var r3 = c[1.0]; // same as indexing by 1 when done numerically +// BUG 823822 +var r7 = i[-1]; +var r7 = i[-1.0]; +var r8 = i["-1.0"]; +var r9 = i["-1"]; +var r10 = i[0x1] +var r11 = i[-0x1] +var r12 = i[01] +var r13 = i[-01] + +interface I { + "0.1": void; + ".1": Object; + "1": number; + "1.": string; + "1..": boolean; + "1.0": Date; + "-1.0": RegExp; + "-1": Date; +} + +declare var i: I; +var r1 = i['0.1']; +var r2 = i['.1']; +var r3 = i['1']; +var r3 = c[1]; +var r4 = i['1.']; +var r3 = c[1.]; // same as indexing by 1 when done numerically +var r5 = i['1..']; +var r6 = i['1.0']; +var r3 = c[1.0]; // same as indexing by 1 when done numerically +// BUG 823822 +var r7 = i[-1]; +var r7 = i[-1.0]; +var r8 = i["-1.0"]; +var r9 = i["-1"]; +var r10 = i[0x1] +var r11 = i[-0x1] +var r12 = i[01] +var r13 = i[-01] + +declare var a: { + "0.1": void; + ".1": Object; + "1": number; + "1.": string; + "1..": boolean; + "1.0": Date; + "-1.0": RegExp; + "-1": Date; +} + +var r1 = a['0.1']; +var r2 = a['.1']; +var r3 = a['1']; +var r3 = c[1]; +var r4 = a['1.']; +var r3 = c[1.]; // same as indexing by 1 when done numerically +var r5 = a['1..']; +var r6 = a['1.0']; +var r3 = c[1.0]; // same as indexing by 1 when done numerically +// BUG 823822 +var r7 = i[-1]; +var r7 = i[-1.0]; +var r8 = i["-1.0"]; +var r9 = i["-1"]; +var r10 = i[0x1] +var r11 = i[-0x1] +var r12 = i[01] +var r13 = i[-01] + +var b = { + "0.1": null, + ".1": new Object(), + "1": 1, + "1.": "", + "1..": true, + "1.0": new Date(), + "-1.0": /123/, + "-1": Date +}; + +var r1 = b['0.1']; +var r2 = b['.1']; +var r3 = b['1']; +var r3 = c[1]; +var r4 = b['1.']; +var r3 = c[1.]; // same as indexing by 1 when done numerically +var r5 = b['1..']; +var r6 = b['1.0']; +var r3 = c[1.0]; // same as indexing by 1 when done numerically +// BUG 823822 +var r7 = i[-1]; +var r7 = i[-1.0]; +var r8 = i["-1.0"]; +var r9 = i["-1"]; +var r10 = i[0x1] +var r11 = i[-0x1] +var r12 = i[01] +var r13 = i[-01] + + +//// [objectTypeWithStringNamedNumericProperty.js] +// string named numeric properties are legal and distinct when indexed by string values +// indexed numerically the value is converted to a number +// no errors expected below +class C { +} +var r1 = c['0.1']; +var r2 = c['.1']; +var r3 = c['1']; +var r3 = c[1]; +var r4 = c['1.']; +var r3 = c[1.]; // same as indexing by 1 when done numerically +var r5 = c['1..']; +var r6 = c['1.0']; +var r3 = c[1.0]; // same as indexing by 1 when done numerically +// BUG 823822 +var r7 = i[-1]; +var r7 = i[-1.0]; +var r8 = i["-1.0"]; +var r9 = i["-1"]; +var r10 = i[0x1]; +var r11 = i[-0x1]; +var r12 = i[1]; +var r13 = i[-1]; +var r1 = i['0.1']; +var r2 = i['.1']; +var r3 = i['1']; +var r3 = c[1]; +var r4 = i['1.']; +var r3 = c[1.]; // same as indexing by 1 when done numerically +var r5 = i['1..']; +var r6 = i['1.0']; +var r3 = c[1.0]; // same as indexing by 1 when done numerically +// BUG 823822 +var r7 = i[-1]; +var r7 = i[-1.0]; +var r8 = i["-1.0"]; +var r9 = i["-1"]; +var r10 = i[0x1]; +var r11 = i[-0x1]; +var r12 = i[1]; +var r13 = i[-1]; +var r1 = a['0.1']; +var r2 = a['.1']; +var r3 = a['1']; +var r3 = c[1]; +var r4 = a['1.']; +var r3 = c[1.]; // same as indexing by 1 when done numerically +var r5 = a['1..']; +var r6 = a['1.0']; +var r3 = c[1.0]; // same as indexing by 1 when done numerically +// BUG 823822 +var r7 = i[-1]; +var r7 = i[-1.0]; +var r8 = i["-1.0"]; +var r9 = i["-1"]; +var r10 = i[0x1]; +var r11 = i[-0x1]; +var r12 = i[1]; +var r13 = i[-1]; +var b = { + "0.1": null, + ".1": new Object(), + "1": 1, + "1.": "", + "1..": true, + "1.0": new Date(), + "-1.0": /123/, + "-1": Date +}; +var r1 = b['0.1']; +var r2 = b['.1']; +var r3 = b['1']; +var r3 = c[1]; +var r4 = b['1.']; +var r3 = c[1.]; // same as indexing by 1 when done numerically +var r5 = b['1..']; +var r6 = b['1.0']; +var r3 = c[1.0]; // same as indexing by 1 when done numerically +// BUG 823822 +var r7 = i[-1]; +var r7 = i[-1.0]; +var r8 = i["-1.0"]; +var r9 = i["-1"]; +var r10 = i[0x1]; +var r11 = i[-0x1]; +var r12 = i[1]; +var r13 = i[-1]; diff --git a/tests/baselines/reference/objectTypeWithStringNamedNumericProperty.symbols b/tests/baselines/reference/objectTypeWithStringNamedNumericProperty(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/objectTypeWithStringNamedNumericProperty.symbols rename to tests/baselines/reference/objectTypeWithStringNamedNumericProperty(target=es2015).symbols diff --git a/tests/baselines/reference/objectTypeWithStringNamedNumericProperty.types b/tests/baselines/reference/objectTypeWithStringNamedNumericProperty(target=es2015).types similarity index 100% rename from tests/baselines/reference/objectTypeWithStringNamedNumericProperty.types rename to tests/baselines/reference/objectTypeWithStringNamedNumericProperty(target=es2015).types diff --git a/tests/baselines/reference/objectTypeWithStringNamedNumericProperty(target=es5).errors.txt b/tests/baselines/reference/objectTypeWithStringNamedNumericProperty(target=es5).errors.txt new file mode 100644 index 0000000000000..fc992449f5dad --- /dev/null +++ b/tests/baselines/reference/objectTypeWithStringNamedNumericProperty(target=es5).errors.txt @@ -0,0 +1,153 @@ +objectTypeWithStringNamedNumericProperty.ts(33,13): error TS1121: Octal literals are not allowed. Use the syntax '0o1'. +objectTypeWithStringNamedNumericProperty.ts(34,13): error TS1121: Octal literals are not allowed. Use the syntax '-0o1'. +objectTypeWithStringNamedNumericProperty.ts(64,13): error TS1121: Octal literals are not allowed. Use the syntax '0o1'. +objectTypeWithStringNamedNumericProperty.ts(65,13): error TS1121: Octal literals are not allowed. Use the syntax '-0o1'. +objectTypeWithStringNamedNumericProperty.ts(94,13): error TS1121: Octal literals are not allowed. Use the syntax '0o1'. +objectTypeWithStringNamedNumericProperty.ts(95,13): error TS1121: Octal literals are not allowed. Use the syntax '-0o1'. +objectTypeWithStringNamedNumericProperty.ts(124,13): error TS1121: Octal literals are not allowed. Use the syntax '0o1'. +objectTypeWithStringNamedNumericProperty.ts(125,13): error TS1121: Octal literals are not allowed. Use the syntax '-0o1'. + + +==== objectTypeWithStringNamedNumericProperty.ts (8 errors) ==== + // string named numeric properties are legal and distinct when indexed by string values + // indexed numerically the value is converted to a number + // no errors expected below + + class C { + "0.1": void; + ".1": Object; + "1": number; + "1.": string; + "1..": boolean; + "1.0": Date; + "-1.0": RegExp; + "-1": Date; + } + + declare var c: C; + var r1 = c['0.1']; + var r2 = c['.1']; + var r3 = c['1']; + var r3 = c[1]; + var r4 = c['1.']; + var r3 = c[1.]; // same as indexing by 1 when done numerically + var r5 = c['1..']; + var r6 = c['1.0']; + var r3 = c[1.0]; // same as indexing by 1 when done numerically + // BUG 823822 + var r7 = i[-1]; + var r7 = i[-1.0]; + var r8 = i["-1.0"]; + var r9 = i["-1"]; + var r10 = i[0x1] + var r11 = i[-0x1] + var r12 = i[01] + ~~ +!!! error TS1121: Octal literals are not allowed. Use the syntax '0o1'. + var r13 = i[-01] + ~~~ +!!! error TS1121: Octal literals are not allowed. Use the syntax '-0o1'. + + interface I { + "0.1": void; + ".1": Object; + "1": number; + "1.": string; + "1..": boolean; + "1.0": Date; + "-1.0": RegExp; + "-1": Date; + } + + declare var i: I; + var r1 = i['0.1']; + var r2 = i['.1']; + var r3 = i['1']; + var r3 = c[1]; + var r4 = i['1.']; + var r3 = c[1.]; // same as indexing by 1 when done numerically + var r5 = i['1..']; + var r6 = i['1.0']; + var r3 = c[1.0]; // same as indexing by 1 when done numerically + // BUG 823822 + var r7 = i[-1]; + var r7 = i[-1.0]; + var r8 = i["-1.0"]; + var r9 = i["-1"]; + var r10 = i[0x1] + var r11 = i[-0x1] + var r12 = i[01] + ~~ +!!! error TS1121: Octal literals are not allowed. Use the syntax '0o1'. + var r13 = i[-01] + ~~~ +!!! error TS1121: Octal literals are not allowed. Use the syntax '-0o1'. + + declare var a: { + "0.1": void; + ".1": Object; + "1": number; + "1.": string; + "1..": boolean; + "1.0": Date; + "-1.0": RegExp; + "-1": Date; + } + + var r1 = a['0.1']; + var r2 = a['.1']; + var r3 = a['1']; + var r3 = c[1]; + var r4 = a['1.']; + var r3 = c[1.]; // same as indexing by 1 when done numerically + var r5 = a['1..']; + var r6 = a['1.0']; + var r3 = c[1.0]; // same as indexing by 1 when done numerically + // BUG 823822 + var r7 = i[-1]; + var r7 = i[-1.0]; + var r8 = i["-1.0"]; + var r9 = i["-1"]; + var r10 = i[0x1] + var r11 = i[-0x1] + var r12 = i[01] + ~~ +!!! error TS1121: Octal literals are not allowed. Use the syntax '0o1'. + var r13 = i[-01] + ~~~ +!!! error TS1121: Octal literals are not allowed. Use the syntax '-0o1'. + + var b = { + "0.1": null, + ".1": new Object(), + "1": 1, + "1.": "", + "1..": true, + "1.0": new Date(), + "-1.0": /123/, + "-1": Date + }; + + var r1 = b['0.1']; + var r2 = b['.1']; + var r3 = b['1']; + var r3 = c[1]; + var r4 = b['1.']; + var r3 = c[1.]; // same as indexing by 1 when done numerically + var r5 = b['1..']; + var r6 = b['1.0']; + var r3 = c[1.0]; // same as indexing by 1 when done numerically + // BUG 823822 + var r7 = i[-1]; + var r7 = i[-1.0]; + var r8 = i["-1.0"]; + var r9 = i["-1"]; + var r10 = i[0x1] + var r11 = i[-0x1] + var r12 = i[01] + ~~ +!!! error TS1121: Octal literals are not allowed. Use the syntax '0o1'. + var r13 = i[-01] + ~~~ +!!! error TS1121: Octal literals are not allowed. Use the syntax '-0o1'. + \ No newline at end of file diff --git a/tests/baselines/reference/objectTypeWithStringNamedNumericProperty.js b/tests/baselines/reference/objectTypeWithStringNamedNumericProperty(target=es5).js similarity index 100% rename from tests/baselines/reference/objectTypeWithStringNamedNumericProperty.js rename to tests/baselines/reference/objectTypeWithStringNamedNumericProperty(target=es5).js diff --git a/tests/baselines/reference/objectTypeWithStringNamedNumericProperty(target=es5).symbols b/tests/baselines/reference/objectTypeWithStringNamedNumericProperty(target=es5).symbols new file mode 100644 index 0000000000000..81187b6fad8f4 --- /dev/null +++ b/tests/baselines/reference/objectTypeWithStringNamedNumericProperty(target=es5).symbols @@ -0,0 +1,471 @@ +//// [tests/cases/conformance/types/members/objectTypeWithStringNamedNumericProperty.ts] //// + +=== objectTypeWithStringNamedNumericProperty.ts === +// string named numeric properties are legal and distinct when indexed by string values +// indexed numerically the value is converted to a number +// no errors expected below + +class C { +>C : Symbol(C, Decl(objectTypeWithStringNamedNumericProperty.ts, 0, 0)) + + "0.1": void; +>"0.1" : Symbol(C["0.1"], Decl(objectTypeWithStringNamedNumericProperty.ts, 4, 9)) + + ".1": Object; +>".1" : Symbol(C[".1"], Decl(objectTypeWithStringNamedNumericProperty.ts, 5, 16)) +>Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) + + "1": number; +>"1" : Symbol(C["1"], Decl(objectTypeWithStringNamedNumericProperty.ts, 6, 17)) + + "1.": string; +>"1." : Symbol(C["1."], Decl(objectTypeWithStringNamedNumericProperty.ts, 7, 16)) + + "1..": boolean; +>"1.." : Symbol(C["1.."], Decl(objectTypeWithStringNamedNumericProperty.ts, 8, 17)) + + "1.0": Date; +>"1.0" : Symbol(C["1.0"], Decl(objectTypeWithStringNamedNumericProperty.ts, 9, 19)) +>Date : Symbol(Date, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.scripthost.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + + "-1.0": RegExp; +>"-1.0" : Symbol(C["-1.0"], Decl(objectTypeWithStringNamedNumericProperty.ts, 10, 16)) +>RegExp : Symbol(RegExp, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + + "-1": Date; +>"-1" : Symbol(C["-1"], Decl(objectTypeWithStringNamedNumericProperty.ts, 11, 19)) +>Date : Symbol(Date, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.scripthost.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +} + +declare var c: C; +>c : Symbol(c, Decl(objectTypeWithStringNamedNumericProperty.ts, 15, 11)) +>C : Symbol(C, Decl(objectTypeWithStringNamedNumericProperty.ts, 0, 0)) + +var r1 = c['0.1']; +>r1 : Symbol(r1, Decl(objectTypeWithStringNamedNumericProperty.ts, 16, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 47, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 77, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 107, 3)) +>c : Symbol(c, Decl(objectTypeWithStringNamedNumericProperty.ts, 15, 11)) +>'0.1' : Symbol(C["0.1"], Decl(objectTypeWithStringNamedNumericProperty.ts, 4, 9)) + +var r2 = c['.1']; +>r2 : Symbol(r2, Decl(objectTypeWithStringNamedNumericProperty.ts, 17, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 48, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 78, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 108, 3)) +>c : Symbol(c, Decl(objectTypeWithStringNamedNumericProperty.ts, 15, 11)) +>'.1' : Symbol(C[".1"], Decl(objectTypeWithStringNamedNumericProperty.ts, 5, 16)) + +var r3 = c['1']; +>r3 : Symbol(r3, Decl(objectTypeWithStringNamedNumericProperty.ts, 18, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 19, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 21, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 24, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 49, 3) ... and 11 more) +>c : Symbol(c, Decl(objectTypeWithStringNamedNumericProperty.ts, 15, 11)) +>'1' : Symbol(C["1"], Decl(objectTypeWithStringNamedNumericProperty.ts, 6, 17)) + +var r3 = c[1]; +>r3 : Symbol(r3, Decl(objectTypeWithStringNamedNumericProperty.ts, 18, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 19, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 21, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 24, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 49, 3) ... and 11 more) +>c : Symbol(c, Decl(objectTypeWithStringNamedNumericProperty.ts, 15, 11)) +>1 : Symbol(C["1"], Decl(objectTypeWithStringNamedNumericProperty.ts, 6, 17)) + +var r4 = c['1.']; +>r4 : Symbol(r4, Decl(objectTypeWithStringNamedNumericProperty.ts, 20, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 51, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 81, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 111, 3)) +>c : Symbol(c, Decl(objectTypeWithStringNamedNumericProperty.ts, 15, 11)) +>'1.' : Symbol(C["1."], Decl(objectTypeWithStringNamedNumericProperty.ts, 7, 16)) + +var r3 = c[1.]; // same as indexing by 1 when done numerically +>r3 : Symbol(r3, Decl(objectTypeWithStringNamedNumericProperty.ts, 18, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 19, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 21, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 24, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 49, 3) ... and 11 more) +>c : Symbol(c, Decl(objectTypeWithStringNamedNumericProperty.ts, 15, 11)) +>1. : Symbol(C["1"], Decl(objectTypeWithStringNamedNumericProperty.ts, 6, 17)) + +var r5 = c['1..']; +>r5 : Symbol(r5, Decl(objectTypeWithStringNamedNumericProperty.ts, 22, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 53, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 83, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 113, 3)) +>c : Symbol(c, Decl(objectTypeWithStringNamedNumericProperty.ts, 15, 11)) +>'1..' : Symbol(C["1.."], Decl(objectTypeWithStringNamedNumericProperty.ts, 8, 17)) + +var r6 = c['1.0']; +>r6 : Symbol(r6, Decl(objectTypeWithStringNamedNumericProperty.ts, 23, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 54, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 84, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 114, 3)) +>c : Symbol(c, Decl(objectTypeWithStringNamedNumericProperty.ts, 15, 11)) +>'1.0' : Symbol(C["1.0"], Decl(objectTypeWithStringNamedNumericProperty.ts, 9, 19)) + +var r3 = c[1.0]; // same as indexing by 1 when done numerically +>r3 : Symbol(r3, Decl(objectTypeWithStringNamedNumericProperty.ts, 18, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 19, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 21, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 24, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 49, 3) ... and 11 more) +>c : Symbol(c, Decl(objectTypeWithStringNamedNumericProperty.ts, 15, 11)) +>1.0 : Symbol(C["1"], Decl(objectTypeWithStringNamedNumericProperty.ts, 6, 17)) + +// BUG 823822 +var r7 = i[-1]; +>r7 : Symbol(r7, Decl(objectTypeWithStringNamedNumericProperty.ts, 26, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 27, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 57, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 58, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 87, 3) ... and 3 more) +>i : Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 46, 11)) + +var r7 = i[-1.0]; +>r7 : Symbol(r7, Decl(objectTypeWithStringNamedNumericProperty.ts, 26, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 27, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 57, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 58, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 87, 3) ... and 3 more) +>i : Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 46, 11)) + +var r8 = i["-1.0"]; +>r8 : Symbol(r8, Decl(objectTypeWithStringNamedNumericProperty.ts, 28, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 59, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 89, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 119, 3)) +>i : Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 46, 11)) +>"-1.0" : Symbol(I["-1.0"], Decl(objectTypeWithStringNamedNumericProperty.ts, 41, 16)) + +var r9 = i["-1"]; +>r9 : Symbol(r9, Decl(objectTypeWithStringNamedNumericProperty.ts, 29, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 60, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 90, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 120, 3)) +>i : Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 46, 11)) +>"-1" : Symbol(I["-1"], Decl(objectTypeWithStringNamedNumericProperty.ts, 42, 19)) + +var r10 = i[0x1] +>r10 : Symbol(r10, Decl(objectTypeWithStringNamedNumericProperty.ts, 30, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 61, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 91, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 121, 3)) +>i : Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 46, 11)) +>0x1 : Symbol(I["1"], Decl(objectTypeWithStringNamedNumericProperty.ts, 37, 17)) + +var r11 = i[-0x1] +>r11 : Symbol(r11, Decl(objectTypeWithStringNamedNumericProperty.ts, 31, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 62, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 92, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 122, 3)) +>i : Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 46, 11)) + +var r12 = i[01] +>r12 : Symbol(r12, Decl(objectTypeWithStringNamedNumericProperty.ts, 32, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 63, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 93, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 123, 3)) +>i : Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 46, 11)) +>01 : Symbol(I["1"], Decl(objectTypeWithStringNamedNumericProperty.ts, 37, 17)) + +var r13 = i[-01] +>r13 : Symbol(r13, Decl(objectTypeWithStringNamedNumericProperty.ts, 33, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 64, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 94, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 124, 3)) +>i : Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 46, 11)) + +interface I { +>I : Symbol(I, Decl(objectTypeWithStringNamedNumericProperty.ts, 33, 16)) + + "0.1": void; +>"0.1" : Symbol(I["0.1"], Decl(objectTypeWithStringNamedNumericProperty.ts, 35, 13)) + + ".1": Object; +>".1" : Symbol(I[".1"], Decl(objectTypeWithStringNamedNumericProperty.ts, 36, 16)) +>Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) + + "1": number; +>"1" : Symbol(I["1"], Decl(objectTypeWithStringNamedNumericProperty.ts, 37, 17)) + + "1.": string; +>"1." : Symbol(I["1."], Decl(objectTypeWithStringNamedNumericProperty.ts, 38, 16)) + + "1..": boolean; +>"1.." : Symbol(I["1.."], Decl(objectTypeWithStringNamedNumericProperty.ts, 39, 17)) + + "1.0": Date; +>"1.0" : Symbol(I["1.0"], Decl(objectTypeWithStringNamedNumericProperty.ts, 40, 19)) +>Date : Symbol(Date, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.scripthost.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + + "-1.0": RegExp; +>"-1.0" : Symbol(I["-1.0"], Decl(objectTypeWithStringNamedNumericProperty.ts, 41, 16)) +>RegExp : Symbol(RegExp, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + + "-1": Date; +>"-1" : Symbol(I["-1"], Decl(objectTypeWithStringNamedNumericProperty.ts, 42, 19)) +>Date : Symbol(Date, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.scripthost.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +} + +declare var i: I; +>i : Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 46, 11)) +>I : Symbol(I, Decl(objectTypeWithStringNamedNumericProperty.ts, 33, 16)) + +var r1 = i['0.1']; +>r1 : Symbol(r1, Decl(objectTypeWithStringNamedNumericProperty.ts, 16, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 47, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 77, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 107, 3)) +>i : Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 46, 11)) +>'0.1' : Symbol(I["0.1"], Decl(objectTypeWithStringNamedNumericProperty.ts, 35, 13)) + +var r2 = i['.1']; +>r2 : Symbol(r2, Decl(objectTypeWithStringNamedNumericProperty.ts, 17, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 48, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 78, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 108, 3)) +>i : Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 46, 11)) +>'.1' : Symbol(I[".1"], Decl(objectTypeWithStringNamedNumericProperty.ts, 36, 16)) + +var r3 = i['1']; +>r3 : Symbol(r3, Decl(objectTypeWithStringNamedNumericProperty.ts, 18, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 19, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 21, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 24, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 49, 3) ... and 11 more) +>i : Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 46, 11)) +>'1' : Symbol(I["1"], Decl(objectTypeWithStringNamedNumericProperty.ts, 37, 17)) + +var r3 = c[1]; +>r3 : Symbol(r3, Decl(objectTypeWithStringNamedNumericProperty.ts, 18, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 19, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 21, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 24, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 49, 3) ... and 11 more) +>c : Symbol(c, Decl(objectTypeWithStringNamedNumericProperty.ts, 15, 11)) +>1 : Symbol(C["1"], Decl(objectTypeWithStringNamedNumericProperty.ts, 6, 17)) + +var r4 = i['1.']; +>r4 : Symbol(r4, Decl(objectTypeWithStringNamedNumericProperty.ts, 20, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 51, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 81, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 111, 3)) +>i : Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 46, 11)) +>'1.' : Symbol(I["1."], Decl(objectTypeWithStringNamedNumericProperty.ts, 38, 16)) + +var r3 = c[1.]; // same as indexing by 1 when done numerically +>r3 : Symbol(r3, Decl(objectTypeWithStringNamedNumericProperty.ts, 18, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 19, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 21, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 24, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 49, 3) ... and 11 more) +>c : Symbol(c, Decl(objectTypeWithStringNamedNumericProperty.ts, 15, 11)) +>1. : Symbol(C["1"], Decl(objectTypeWithStringNamedNumericProperty.ts, 6, 17)) + +var r5 = i['1..']; +>r5 : Symbol(r5, Decl(objectTypeWithStringNamedNumericProperty.ts, 22, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 53, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 83, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 113, 3)) +>i : Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 46, 11)) +>'1..' : Symbol(I["1.."], Decl(objectTypeWithStringNamedNumericProperty.ts, 39, 17)) + +var r6 = i['1.0']; +>r6 : Symbol(r6, Decl(objectTypeWithStringNamedNumericProperty.ts, 23, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 54, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 84, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 114, 3)) +>i : Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 46, 11)) +>'1.0' : Symbol(I["1.0"], Decl(objectTypeWithStringNamedNumericProperty.ts, 40, 19)) + +var r3 = c[1.0]; // same as indexing by 1 when done numerically +>r3 : Symbol(r3, Decl(objectTypeWithStringNamedNumericProperty.ts, 18, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 19, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 21, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 24, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 49, 3) ... and 11 more) +>c : Symbol(c, Decl(objectTypeWithStringNamedNumericProperty.ts, 15, 11)) +>1.0 : Symbol(C["1"], Decl(objectTypeWithStringNamedNumericProperty.ts, 6, 17)) + +// BUG 823822 +var r7 = i[-1]; +>r7 : Symbol(r7, Decl(objectTypeWithStringNamedNumericProperty.ts, 26, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 27, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 57, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 58, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 87, 3) ... and 3 more) +>i : Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 46, 11)) + +var r7 = i[-1.0]; +>r7 : Symbol(r7, Decl(objectTypeWithStringNamedNumericProperty.ts, 26, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 27, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 57, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 58, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 87, 3) ... and 3 more) +>i : Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 46, 11)) + +var r8 = i["-1.0"]; +>r8 : Symbol(r8, Decl(objectTypeWithStringNamedNumericProperty.ts, 28, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 59, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 89, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 119, 3)) +>i : Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 46, 11)) +>"-1.0" : Symbol(I["-1.0"], Decl(objectTypeWithStringNamedNumericProperty.ts, 41, 16)) + +var r9 = i["-1"]; +>r9 : Symbol(r9, Decl(objectTypeWithStringNamedNumericProperty.ts, 29, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 60, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 90, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 120, 3)) +>i : Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 46, 11)) +>"-1" : Symbol(I["-1"], Decl(objectTypeWithStringNamedNumericProperty.ts, 42, 19)) + +var r10 = i[0x1] +>r10 : Symbol(r10, Decl(objectTypeWithStringNamedNumericProperty.ts, 30, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 61, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 91, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 121, 3)) +>i : Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 46, 11)) +>0x1 : Symbol(I["1"], Decl(objectTypeWithStringNamedNumericProperty.ts, 37, 17)) + +var r11 = i[-0x1] +>r11 : Symbol(r11, Decl(objectTypeWithStringNamedNumericProperty.ts, 31, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 62, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 92, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 122, 3)) +>i : Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 46, 11)) + +var r12 = i[01] +>r12 : Symbol(r12, Decl(objectTypeWithStringNamedNumericProperty.ts, 32, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 63, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 93, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 123, 3)) +>i : Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 46, 11)) +>01 : Symbol(I["1"], Decl(objectTypeWithStringNamedNumericProperty.ts, 37, 17)) + +var r13 = i[-01] +>r13 : Symbol(r13, Decl(objectTypeWithStringNamedNumericProperty.ts, 33, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 64, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 94, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 124, 3)) +>i : Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 46, 11)) + +declare var a: { +>a : Symbol(a, Decl(objectTypeWithStringNamedNumericProperty.ts, 66, 11)) + + "0.1": void; +>"0.1" : Symbol("0.1", Decl(objectTypeWithStringNamedNumericProperty.ts, 66, 16)) + + ".1": Object; +>".1" : Symbol(".1", Decl(objectTypeWithStringNamedNumericProperty.ts, 67, 16)) +>Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) + + "1": number; +>"1" : Symbol("1", Decl(objectTypeWithStringNamedNumericProperty.ts, 68, 17)) + + "1.": string; +>"1." : Symbol("1.", Decl(objectTypeWithStringNamedNumericProperty.ts, 69, 16)) + + "1..": boolean; +>"1.." : Symbol("1..", Decl(objectTypeWithStringNamedNumericProperty.ts, 70, 17)) + + "1.0": Date; +>"1.0" : Symbol("1.0", Decl(objectTypeWithStringNamedNumericProperty.ts, 71, 19)) +>Date : Symbol(Date, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.scripthost.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + + "-1.0": RegExp; +>"-1.0" : Symbol("-1.0", Decl(objectTypeWithStringNamedNumericProperty.ts, 72, 16)) +>RegExp : Symbol(RegExp, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + + "-1": Date; +>"-1" : Symbol("-1", Decl(objectTypeWithStringNamedNumericProperty.ts, 73, 19)) +>Date : Symbol(Date, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.scripthost.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +} + +var r1 = a['0.1']; +>r1 : Symbol(r1, Decl(objectTypeWithStringNamedNumericProperty.ts, 16, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 47, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 77, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 107, 3)) +>a : Symbol(a, Decl(objectTypeWithStringNamedNumericProperty.ts, 66, 11)) +>'0.1' : Symbol("0.1", Decl(objectTypeWithStringNamedNumericProperty.ts, 66, 16)) + +var r2 = a['.1']; +>r2 : Symbol(r2, Decl(objectTypeWithStringNamedNumericProperty.ts, 17, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 48, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 78, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 108, 3)) +>a : Symbol(a, Decl(objectTypeWithStringNamedNumericProperty.ts, 66, 11)) +>'.1' : Symbol(".1", Decl(objectTypeWithStringNamedNumericProperty.ts, 67, 16)) + +var r3 = a['1']; +>r3 : Symbol(r3, Decl(objectTypeWithStringNamedNumericProperty.ts, 18, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 19, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 21, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 24, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 49, 3) ... and 11 more) +>a : Symbol(a, Decl(objectTypeWithStringNamedNumericProperty.ts, 66, 11)) +>'1' : Symbol("1", Decl(objectTypeWithStringNamedNumericProperty.ts, 68, 17)) + +var r3 = c[1]; +>r3 : Symbol(r3, Decl(objectTypeWithStringNamedNumericProperty.ts, 18, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 19, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 21, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 24, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 49, 3) ... and 11 more) +>c : Symbol(c, Decl(objectTypeWithStringNamedNumericProperty.ts, 15, 11)) +>1 : Symbol(C["1"], Decl(objectTypeWithStringNamedNumericProperty.ts, 6, 17)) + +var r4 = a['1.']; +>r4 : Symbol(r4, Decl(objectTypeWithStringNamedNumericProperty.ts, 20, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 51, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 81, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 111, 3)) +>a : Symbol(a, Decl(objectTypeWithStringNamedNumericProperty.ts, 66, 11)) +>'1.' : Symbol("1.", Decl(objectTypeWithStringNamedNumericProperty.ts, 69, 16)) + +var r3 = c[1.]; // same as indexing by 1 when done numerically +>r3 : Symbol(r3, Decl(objectTypeWithStringNamedNumericProperty.ts, 18, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 19, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 21, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 24, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 49, 3) ... and 11 more) +>c : Symbol(c, Decl(objectTypeWithStringNamedNumericProperty.ts, 15, 11)) +>1. : Symbol(C["1"], Decl(objectTypeWithStringNamedNumericProperty.ts, 6, 17)) + +var r5 = a['1..']; +>r5 : Symbol(r5, Decl(objectTypeWithStringNamedNumericProperty.ts, 22, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 53, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 83, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 113, 3)) +>a : Symbol(a, Decl(objectTypeWithStringNamedNumericProperty.ts, 66, 11)) +>'1..' : Symbol("1..", Decl(objectTypeWithStringNamedNumericProperty.ts, 70, 17)) + +var r6 = a['1.0']; +>r6 : Symbol(r6, Decl(objectTypeWithStringNamedNumericProperty.ts, 23, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 54, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 84, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 114, 3)) +>a : Symbol(a, Decl(objectTypeWithStringNamedNumericProperty.ts, 66, 11)) +>'1.0' : Symbol("1.0", Decl(objectTypeWithStringNamedNumericProperty.ts, 71, 19)) + +var r3 = c[1.0]; // same as indexing by 1 when done numerically +>r3 : Symbol(r3, Decl(objectTypeWithStringNamedNumericProperty.ts, 18, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 19, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 21, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 24, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 49, 3) ... and 11 more) +>c : Symbol(c, Decl(objectTypeWithStringNamedNumericProperty.ts, 15, 11)) +>1.0 : Symbol(C["1"], Decl(objectTypeWithStringNamedNumericProperty.ts, 6, 17)) + +// BUG 823822 +var r7 = i[-1]; +>r7 : Symbol(r7, Decl(objectTypeWithStringNamedNumericProperty.ts, 26, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 27, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 57, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 58, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 87, 3) ... and 3 more) +>i : Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 46, 11)) + +var r7 = i[-1.0]; +>r7 : Symbol(r7, Decl(objectTypeWithStringNamedNumericProperty.ts, 26, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 27, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 57, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 58, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 87, 3) ... and 3 more) +>i : Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 46, 11)) + +var r8 = i["-1.0"]; +>r8 : Symbol(r8, Decl(objectTypeWithStringNamedNumericProperty.ts, 28, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 59, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 89, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 119, 3)) +>i : Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 46, 11)) +>"-1.0" : Symbol(I["-1.0"], Decl(objectTypeWithStringNamedNumericProperty.ts, 41, 16)) + +var r9 = i["-1"]; +>r9 : Symbol(r9, Decl(objectTypeWithStringNamedNumericProperty.ts, 29, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 60, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 90, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 120, 3)) +>i : Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 46, 11)) +>"-1" : Symbol(I["-1"], Decl(objectTypeWithStringNamedNumericProperty.ts, 42, 19)) + +var r10 = i[0x1] +>r10 : Symbol(r10, Decl(objectTypeWithStringNamedNumericProperty.ts, 30, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 61, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 91, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 121, 3)) +>i : Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 46, 11)) +>0x1 : Symbol(I["1"], Decl(objectTypeWithStringNamedNumericProperty.ts, 37, 17)) + +var r11 = i[-0x1] +>r11 : Symbol(r11, Decl(objectTypeWithStringNamedNumericProperty.ts, 31, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 62, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 92, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 122, 3)) +>i : Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 46, 11)) + +var r12 = i[01] +>r12 : Symbol(r12, Decl(objectTypeWithStringNamedNumericProperty.ts, 32, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 63, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 93, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 123, 3)) +>i : Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 46, 11)) +>01 : Symbol(I["1"], Decl(objectTypeWithStringNamedNumericProperty.ts, 37, 17)) + +var r13 = i[-01] +>r13 : Symbol(r13, Decl(objectTypeWithStringNamedNumericProperty.ts, 33, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 64, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 94, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 124, 3)) +>i : Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 46, 11)) + +var b = { +>b : Symbol(b, Decl(objectTypeWithStringNamedNumericProperty.ts, 96, 3)) + + "0.1": null, +>"0.1" : Symbol("0.1", Decl(objectTypeWithStringNamedNumericProperty.ts, 96, 9)) + + ".1": new Object(), +>".1" : Symbol(".1", Decl(objectTypeWithStringNamedNumericProperty.ts, 97, 22)) +>Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) + + "1": 1, +>"1" : Symbol("1", Decl(objectTypeWithStringNamedNumericProperty.ts, 98, 23)) + + "1.": "", +>"1." : Symbol("1.", Decl(objectTypeWithStringNamedNumericProperty.ts, 99, 11)) + + "1..": true, +>"1.." : Symbol("1..", Decl(objectTypeWithStringNamedNumericProperty.ts, 100, 13)) + + "1.0": new Date(), +>"1.0" : Symbol("1.0", Decl(objectTypeWithStringNamedNumericProperty.ts, 101, 16)) +>Date : Symbol(Date, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.scripthost.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + + "-1.0": /123/, +>"-1.0" : Symbol("-1.0", Decl(objectTypeWithStringNamedNumericProperty.ts, 102, 22)) + + "-1": Date +>"-1" : Symbol("-1", Decl(objectTypeWithStringNamedNumericProperty.ts, 103, 18)) +>Date : Symbol(Date, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.scripthost.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + +}; + +var r1 = b['0.1']; +>r1 : Symbol(r1, Decl(objectTypeWithStringNamedNumericProperty.ts, 16, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 47, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 77, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 107, 3)) +>b : Symbol(b, Decl(objectTypeWithStringNamedNumericProperty.ts, 96, 3)) +>'0.1' : Symbol("0.1", Decl(objectTypeWithStringNamedNumericProperty.ts, 96, 9)) + +var r2 = b['.1']; +>r2 : Symbol(r2, Decl(objectTypeWithStringNamedNumericProperty.ts, 17, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 48, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 78, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 108, 3)) +>b : Symbol(b, Decl(objectTypeWithStringNamedNumericProperty.ts, 96, 3)) +>'.1' : Symbol(".1", Decl(objectTypeWithStringNamedNumericProperty.ts, 97, 22)) + +var r3 = b['1']; +>r3 : Symbol(r3, Decl(objectTypeWithStringNamedNumericProperty.ts, 18, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 19, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 21, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 24, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 49, 3) ... and 11 more) +>b : Symbol(b, Decl(objectTypeWithStringNamedNumericProperty.ts, 96, 3)) +>'1' : Symbol("1", Decl(objectTypeWithStringNamedNumericProperty.ts, 98, 23)) + +var r3 = c[1]; +>r3 : Symbol(r3, Decl(objectTypeWithStringNamedNumericProperty.ts, 18, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 19, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 21, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 24, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 49, 3) ... and 11 more) +>c : Symbol(c, Decl(objectTypeWithStringNamedNumericProperty.ts, 15, 11)) +>1 : Symbol(C["1"], Decl(objectTypeWithStringNamedNumericProperty.ts, 6, 17)) + +var r4 = b['1.']; +>r4 : Symbol(r4, Decl(objectTypeWithStringNamedNumericProperty.ts, 20, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 51, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 81, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 111, 3)) +>b : Symbol(b, Decl(objectTypeWithStringNamedNumericProperty.ts, 96, 3)) +>'1.' : Symbol("1.", Decl(objectTypeWithStringNamedNumericProperty.ts, 99, 11)) + +var r3 = c[1.]; // same as indexing by 1 when done numerically +>r3 : Symbol(r3, Decl(objectTypeWithStringNamedNumericProperty.ts, 18, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 19, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 21, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 24, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 49, 3) ... and 11 more) +>c : Symbol(c, Decl(objectTypeWithStringNamedNumericProperty.ts, 15, 11)) +>1. : Symbol(C["1"], Decl(objectTypeWithStringNamedNumericProperty.ts, 6, 17)) + +var r5 = b['1..']; +>r5 : Symbol(r5, Decl(objectTypeWithStringNamedNumericProperty.ts, 22, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 53, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 83, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 113, 3)) +>b : Symbol(b, Decl(objectTypeWithStringNamedNumericProperty.ts, 96, 3)) +>'1..' : Symbol("1..", Decl(objectTypeWithStringNamedNumericProperty.ts, 100, 13)) + +var r6 = b['1.0']; +>r6 : Symbol(r6, Decl(objectTypeWithStringNamedNumericProperty.ts, 23, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 54, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 84, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 114, 3)) +>b : Symbol(b, Decl(objectTypeWithStringNamedNumericProperty.ts, 96, 3)) +>'1.0' : Symbol("1.0", Decl(objectTypeWithStringNamedNumericProperty.ts, 101, 16)) + +var r3 = c[1.0]; // same as indexing by 1 when done numerically +>r3 : Symbol(r3, Decl(objectTypeWithStringNamedNumericProperty.ts, 18, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 19, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 21, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 24, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 49, 3) ... and 11 more) +>c : Symbol(c, Decl(objectTypeWithStringNamedNumericProperty.ts, 15, 11)) +>1.0 : Symbol(C["1"], Decl(objectTypeWithStringNamedNumericProperty.ts, 6, 17)) + +// BUG 823822 +var r7 = i[-1]; +>r7 : Symbol(r7, Decl(objectTypeWithStringNamedNumericProperty.ts, 26, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 27, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 57, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 58, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 87, 3) ... and 3 more) +>i : Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 46, 11)) + +var r7 = i[-1.0]; +>r7 : Symbol(r7, Decl(objectTypeWithStringNamedNumericProperty.ts, 26, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 27, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 57, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 58, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 87, 3) ... and 3 more) +>i : Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 46, 11)) + +var r8 = i["-1.0"]; +>r8 : Symbol(r8, Decl(objectTypeWithStringNamedNumericProperty.ts, 28, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 59, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 89, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 119, 3)) +>i : Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 46, 11)) +>"-1.0" : Symbol(I["-1.0"], Decl(objectTypeWithStringNamedNumericProperty.ts, 41, 16)) + +var r9 = i["-1"]; +>r9 : Symbol(r9, Decl(objectTypeWithStringNamedNumericProperty.ts, 29, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 60, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 90, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 120, 3)) +>i : Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 46, 11)) +>"-1" : Symbol(I["-1"], Decl(objectTypeWithStringNamedNumericProperty.ts, 42, 19)) + +var r10 = i[0x1] +>r10 : Symbol(r10, Decl(objectTypeWithStringNamedNumericProperty.ts, 30, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 61, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 91, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 121, 3)) +>i : Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 46, 11)) +>0x1 : Symbol(I["1"], Decl(objectTypeWithStringNamedNumericProperty.ts, 37, 17)) + +var r11 = i[-0x1] +>r11 : Symbol(r11, Decl(objectTypeWithStringNamedNumericProperty.ts, 31, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 62, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 92, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 122, 3)) +>i : Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 46, 11)) + +var r12 = i[01] +>r12 : Symbol(r12, Decl(objectTypeWithStringNamedNumericProperty.ts, 32, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 63, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 93, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 123, 3)) +>i : Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 46, 11)) +>01 : Symbol(I["1"], Decl(objectTypeWithStringNamedNumericProperty.ts, 37, 17)) + +var r13 = i[-01] +>r13 : Symbol(r13, Decl(objectTypeWithStringNamedNumericProperty.ts, 33, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 64, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 94, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 124, 3)) +>i : Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 46, 11)) + diff --git a/tests/baselines/reference/objectTypeWithStringNamedNumericProperty(target=es5).types b/tests/baselines/reference/objectTypeWithStringNamedNumericProperty(target=es5).types new file mode 100644 index 0000000000000..b1143edd8655b --- /dev/null +++ b/tests/baselines/reference/objectTypeWithStringNamedNumericProperty(target=es5).types @@ -0,0 +1,899 @@ +//// [tests/cases/conformance/types/members/objectTypeWithStringNamedNumericProperty.ts] //// + +=== objectTypeWithStringNamedNumericProperty.ts === +// string named numeric properties are legal and distinct when indexed by string values +// indexed numerically the value is converted to a number +// no errors expected below + +class C { +>C : C +> : ^ + + "0.1": void; +>"0.1" : void +> : ^^^^ + + ".1": Object; +>".1" : Object +> : ^^^^^^ + + "1": number; +>"1" : number +> : ^^^^^^ + + "1.": string; +>"1." : string +> : ^^^^^^ + + "1..": boolean; +>"1.." : boolean +> : ^^^^^^^ + + "1.0": Date; +>"1.0" : Date +> : ^^^^ + + "-1.0": RegExp; +>"-1.0" : RegExp +> : ^^^^^^ + + "-1": Date; +>"-1" : Date +> : ^^^^ +} + +declare var c: C; +>c : C +> : ^ + +var r1 = c['0.1']; +>r1 : void +> : ^^^^ +>c['0.1'] : void +> : ^^^^ +>c : C +> : ^ +>'0.1' : "0.1" +> : ^^^^^ + +var r2 = c['.1']; +>r2 : Object +> : ^^^^^^ +>c['.1'] : Object +> : ^^^^^^ +>c : C +> : ^ +>'.1' : ".1" +> : ^^^^ + +var r3 = c['1']; +>r3 : number +> : ^^^^^^ +>c['1'] : number +> : ^^^^^^ +>c : C +> : ^ +>'1' : "1" +> : ^^^ + +var r3 = c[1]; +>r3 : number +> : ^^^^^^ +>c[1] : number +> : ^^^^^^ +>c : C +> : ^ +>1 : 1 +> : ^ + +var r4 = c['1.']; +>r4 : string +> : ^^^^^^ +>c['1.'] : string +> : ^^^^^^ +>c : C +> : ^ +>'1.' : "1." +> : ^^^^ + +var r3 = c[1.]; // same as indexing by 1 when done numerically +>r3 : number +> : ^^^^^^ +>c[1.] : number +> : ^^^^^^ +>c : C +> : ^ +>1. : 1 +> : ^ + +var r5 = c['1..']; +>r5 : boolean +> : ^^^^^^^ +>c['1..'] : boolean +> : ^^^^^^^ +>c : C +> : ^ +>'1..' : "1.." +> : ^^^^^ + +var r6 = c['1.0']; +>r6 : Date +> : ^^^^ +>c['1.0'] : Date +> : ^^^^ +>c : C +> : ^ +>'1.0' : "1.0" +> : ^^^^^ + +var r3 = c[1.0]; // same as indexing by 1 when done numerically +>r3 : number +> : ^^^^^^ +>c[1.0] : number +> : ^^^^^^ +>c : C +> : ^ +>1.0 : 1 +> : ^ + +// BUG 823822 +var r7 = i[-1]; +>r7 : Date +> : ^^^^ +>i[-1] : Date +> : ^^^^ +>i : I +> : ^ +>-1 : -1 +> : ^^ +>1 : 1 +> : ^ + +var r7 = i[-1.0]; +>r7 : Date +> : ^^^^ +>i[-1.0] : Date +> : ^^^^ +>i : I +> : ^ +>-1.0 : -1 +> : ^^ +>1.0 : 1 +> : ^ + +var r8 = i["-1.0"]; +>r8 : RegExp +> : ^^^^^^ +>i["-1.0"] : RegExp +> : ^^^^^^ +>i : I +> : ^ +>"-1.0" : "-1.0" +> : ^^^^^^ + +var r9 = i["-1"]; +>r9 : Date +> : ^^^^ +>i["-1"] : Date +> : ^^^^ +>i : I +> : ^ +>"-1" : "-1" +> : ^^^^ + +var r10 = i[0x1] +>r10 : number +> : ^^^^^^ +>i[0x1] : number +> : ^^^^^^ +>i : I +> : ^ +>0x1 : 1 +> : ^ + +var r11 = i[-0x1] +>r11 : Date +> : ^^^^ +>i[-0x1] : Date +> : ^^^^ +>i : I +> : ^ +>-0x1 : -1 +> : ^^ +>0x1 : 1 +> : ^ + +var r12 = i[01] +>r12 : number +> : ^^^^^^ +>i[01] : number +> : ^^^^^^ +>i : I +> : ^ +>01 : 1 +> : ^ + +var r13 = i[-01] +>r13 : Date +> : ^^^^ +>i[-01] : Date +> : ^^^^ +>i : I +> : ^ +>-01 : -1 +> : ^^ +>01 : 1 +> : ^ + +interface I { + "0.1": void; +>"0.1" : void +> : ^^^^ + + ".1": Object; +>".1" : Object +> : ^^^^^^ + + "1": number; +>"1" : number +> : ^^^^^^ + + "1.": string; +>"1." : string +> : ^^^^^^ + + "1..": boolean; +>"1.." : boolean +> : ^^^^^^^ + + "1.0": Date; +>"1.0" : Date +> : ^^^^ + + "-1.0": RegExp; +>"-1.0" : RegExp +> : ^^^^^^ + + "-1": Date; +>"-1" : Date +> : ^^^^ +} + +declare var i: I; +>i : I +> : ^ + +var r1 = i['0.1']; +>r1 : void +> : ^^^^ +>i['0.1'] : void +> : ^^^^ +>i : I +> : ^ +>'0.1' : "0.1" +> : ^^^^^ + +var r2 = i['.1']; +>r2 : Object +> : ^^^^^^ +>i['.1'] : Object +> : ^^^^^^ +>i : I +> : ^ +>'.1' : ".1" +> : ^^^^ + +var r3 = i['1']; +>r3 : number +> : ^^^^^^ +>i['1'] : number +> : ^^^^^^ +>i : I +> : ^ +>'1' : "1" +> : ^^^ + +var r3 = c[1]; +>r3 : number +> : ^^^^^^ +>c[1] : number +> : ^^^^^^ +>c : C +> : ^ +>1 : 1 +> : ^ + +var r4 = i['1.']; +>r4 : string +> : ^^^^^^ +>i['1.'] : string +> : ^^^^^^ +>i : I +> : ^ +>'1.' : "1." +> : ^^^^ + +var r3 = c[1.]; // same as indexing by 1 when done numerically +>r3 : number +> : ^^^^^^ +>c[1.] : number +> : ^^^^^^ +>c : C +> : ^ +>1. : 1 +> : ^ + +var r5 = i['1..']; +>r5 : boolean +> : ^^^^^^^ +>i['1..'] : boolean +> : ^^^^^^^ +>i : I +> : ^ +>'1..' : "1.." +> : ^^^^^ + +var r6 = i['1.0']; +>r6 : Date +> : ^^^^ +>i['1.0'] : Date +> : ^^^^ +>i : I +> : ^ +>'1.0' : "1.0" +> : ^^^^^ + +var r3 = c[1.0]; // same as indexing by 1 when done numerically +>r3 : number +> : ^^^^^^ +>c[1.0] : number +> : ^^^^^^ +>c : C +> : ^ +>1.0 : 1 +> : ^ + +// BUG 823822 +var r7 = i[-1]; +>r7 : Date +> : ^^^^ +>i[-1] : Date +> : ^^^^ +>i : I +> : ^ +>-1 : -1 +> : ^^ +>1 : 1 +> : ^ + +var r7 = i[-1.0]; +>r7 : Date +> : ^^^^ +>i[-1.0] : Date +> : ^^^^ +>i : I +> : ^ +>-1.0 : -1 +> : ^^ +>1.0 : 1 +> : ^ + +var r8 = i["-1.0"]; +>r8 : RegExp +> : ^^^^^^ +>i["-1.0"] : RegExp +> : ^^^^^^ +>i : I +> : ^ +>"-1.0" : "-1.0" +> : ^^^^^^ + +var r9 = i["-1"]; +>r9 : Date +> : ^^^^ +>i["-1"] : Date +> : ^^^^ +>i : I +> : ^ +>"-1" : "-1" +> : ^^^^ + +var r10 = i[0x1] +>r10 : number +> : ^^^^^^ +>i[0x1] : number +> : ^^^^^^ +>i : I +> : ^ +>0x1 : 1 +> : ^ + +var r11 = i[-0x1] +>r11 : Date +> : ^^^^ +>i[-0x1] : Date +> : ^^^^ +>i : I +> : ^ +>-0x1 : -1 +> : ^^ +>0x1 : 1 +> : ^ + +var r12 = i[01] +>r12 : number +> : ^^^^^^ +>i[01] : number +> : ^^^^^^ +>i : I +> : ^ +>01 : 1 +> : ^ + +var r13 = i[-01] +>r13 : Date +> : ^^^^ +>i[-01] : Date +> : ^^^^ +>i : I +> : ^ +>-01 : -1 +> : ^^ +>01 : 1 +> : ^ + +declare var a: { +>a : { "0.1": void; ".1": Object; "1": number; "1.": string; "1..": boolean; "1.0": Date; "-1.0": RegExp; "-1": Date; } +> : ^^^^^^^^^ ^^^^^^^^ ^^^^^^^ ^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^ ^^^ + + "0.1": void; +>"0.1" : void +> : ^^^^ + + ".1": Object; +>".1" : Object +> : ^^^^^^ + + "1": number; +>"1" : number +> : ^^^^^^ + + "1.": string; +>"1." : string +> : ^^^^^^ + + "1..": boolean; +>"1.." : boolean +> : ^^^^^^^ + + "1.0": Date; +>"1.0" : Date +> : ^^^^ + + "-1.0": RegExp; +>"-1.0" : RegExp +> : ^^^^^^ + + "-1": Date; +>"-1" : Date +> : ^^^^ +} + +var r1 = a['0.1']; +>r1 : void +> : ^^^^ +>a['0.1'] : void +> : ^^^^ +>a : { "0.1": void; ".1": Object; "1": number; "1.": string; "1..": boolean; "1.0": Date; "-1.0": RegExp; "-1": Date; } +> : ^^^^^^^^^ ^^^^^^^^ ^^^^^^^ ^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^ ^^^ +>'0.1' : "0.1" +> : ^^^^^ + +var r2 = a['.1']; +>r2 : Object +> : ^^^^^^ +>a['.1'] : Object +> : ^^^^^^ +>a : { "0.1": void; ".1": Object; "1": number; "1.": string; "1..": boolean; "1.0": Date; "-1.0": RegExp; "-1": Date; } +> : ^^^^^^^^^ ^^^^^^^^ ^^^^^^^ ^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^ ^^^ +>'.1' : ".1" +> : ^^^^ + +var r3 = a['1']; +>r3 : number +> : ^^^^^^ +>a['1'] : number +> : ^^^^^^ +>a : { "0.1": void; ".1": Object; "1": number; "1.": string; "1..": boolean; "1.0": Date; "-1.0": RegExp; "-1": Date; } +> : ^^^^^^^^^ ^^^^^^^^ ^^^^^^^ ^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^ ^^^ +>'1' : "1" +> : ^^^ + +var r3 = c[1]; +>r3 : number +> : ^^^^^^ +>c[1] : number +> : ^^^^^^ +>c : C +> : ^ +>1 : 1 +> : ^ + +var r4 = a['1.']; +>r4 : string +> : ^^^^^^ +>a['1.'] : string +> : ^^^^^^ +>a : { "0.1": void; ".1": Object; "1": number; "1.": string; "1..": boolean; "1.0": Date; "-1.0": RegExp; "-1": Date; } +> : ^^^^^^^^^ ^^^^^^^^ ^^^^^^^ ^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^ ^^^ +>'1.' : "1." +> : ^^^^ + +var r3 = c[1.]; // same as indexing by 1 when done numerically +>r3 : number +> : ^^^^^^ +>c[1.] : number +> : ^^^^^^ +>c : C +> : ^ +>1. : 1 +> : ^ + +var r5 = a['1..']; +>r5 : boolean +> : ^^^^^^^ +>a['1..'] : boolean +> : ^^^^^^^ +>a : { "0.1": void; ".1": Object; "1": number; "1.": string; "1..": boolean; "1.0": Date; "-1.0": RegExp; "-1": Date; } +> : ^^^^^^^^^ ^^^^^^^^ ^^^^^^^ ^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^ ^^^ +>'1..' : "1.." +> : ^^^^^ + +var r6 = a['1.0']; +>r6 : Date +> : ^^^^ +>a['1.0'] : Date +> : ^^^^ +>a : { "0.1": void; ".1": Object; "1": number; "1.": string; "1..": boolean; "1.0": Date; "-1.0": RegExp; "-1": Date; } +> : ^^^^^^^^^ ^^^^^^^^ ^^^^^^^ ^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^ ^^^ +>'1.0' : "1.0" +> : ^^^^^ + +var r3 = c[1.0]; // same as indexing by 1 when done numerically +>r3 : number +> : ^^^^^^ +>c[1.0] : number +> : ^^^^^^ +>c : C +> : ^ +>1.0 : 1 +> : ^ + +// BUG 823822 +var r7 = i[-1]; +>r7 : Date +> : ^^^^ +>i[-1] : Date +> : ^^^^ +>i : I +> : ^ +>-1 : -1 +> : ^^ +>1 : 1 +> : ^ + +var r7 = i[-1.0]; +>r7 : Date +> : ^^^^ +>i[-1.0] : Date +> : ^^^^ +>i : I +> : ^ +>-1.0 : -1 +> : ^^ +>1.0 : 1 +> : ^ + +var r8 = i["-1.0"]; +>r8 : RegExp +> : ^^^^^^ +>i["-1.0"] : RegExp +> : ^^^^^^ +>i : I +> : ^ +>"-1.0" : "-1.0" +> : ^^^^^^ + +var r9 = i["-1"]; +>r9 : Date +> : ^^^^ +>i["-1"] : Date +> : ^^^^ +>i : I +> : ^ +>"-1" : "-1" +> : ^^^^ + +var r10 = i[0x1] +>r10 : number +> : ^^^^^^ +>i[0x1] : number +> : ^^^^^^ +>i : I +> : ^ +>0x1 : 1 +> : ^ + +var r11 = i[-0x1] +>r11 : Date +> : ^^^^ +>i[-0x1] : Date +> : ^^^^ +>i : I +> : ^ +>-0x1 : -1 +> : ^^ +>0x1 : 1 +> : ^ + +var r12 = i[01] +>r12 : number +> : ^^^^^^ +>i[01] : number +> : ^^^^^^ +>i : I +> : ^ +>01 : 1 +> : ^ + +var r13 = i[-01] +>r13 : Date +> : ^^^^ +>i[-01] : Date +> : ^^^^ +>i : I +> : ^ +>-01 : -1 +> : ^^ +>01 : 1 +> : ^ + +var b = { +>b : { "0.1": void; ".1": Object; "1": number; "1.": string; "1..": boolean; "1.0": Date; "-1.0": RegExp; "-1": DateConstructor; } +> : ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ "0.1": null, ".1": new Object(), "1": 1, "1.": "", "1..": true, "1.0": new Date(), "-1.0": /123/, "-1": Date} : { "0.1": void; ".1": Object; "1": number; "1.": string; "1..": boolean; "1.0": Date; "-1.0": RegExp; "-1": DateConstructor; } +> : ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + "0.1": null, +>"0.1" : void +> : ^^^^ +>null : void +> : ^^^^ + + ".1": new Object(), +>".1" : Object +> : ^^^^^^ +>new Object() : Object +> : ^^^^^^ +>Object : ObjectConstructor +> : ^^^^^^^^^^^^^^^^^ + + "1": 1, +>"1" : number +> : ^^^^^^ +>1 : 1 +> : ^ + + "1.": "", +>"1." : string +> : ^^^^^^ +>"" : "" +> : ^^ + + "1..": true, +>"1.." : boolean +> : ^^^^^^^ +>true : true +> : ^^^^ + + "1.0": new Date(), +>"1.0" : Date +> : ^^^^ +>new Date() : Date +> : ^^^^ +>Date : DateConstructor +> : ^^^^^^^^^^^^^^^ + + "-1.0": /123/, +>"-1.0" : RegExp +> : ^^^^^^ +>/123/ : RegExp +> : ^^^^^^ + + "-1": Date +>"-1" : DateConstructor +> : ^^^^^^^^^^^^^^^ +>Date : DateConstructor +> : ^^^^^^^^^^^^^^^ + +}; + +var r1 = b['0.1']; +>r1 : void +> : ^^^^ +>b['0.1'] : void +> : ^^^^ +>b : { "0.1": void; ".1": Object; "1": number; "1.": string; "1..": boolean; "1.0": Date; "-1.0": RegExp; "-1": DateConstructor; } +> : ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>'0.1' : "0.1" +> : ^^^^^ + +var r2 = b['.1']; +>r2 : Object +> : ^^^^^^ +>b['.1'] : Object +> : ^^^^^^ +>b : { "0.1": void; ".1": Object; "1": number; "1.": string; "1..": boolean; "1.0": Date; "-1.0": RegExp; "-1": DateConstructor; } +> : ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>'.1' : ".1" +> : ^^^^ + +var r3 = b['1']; +>r3 : number +> : ^^^^^^ +>b['1'] : number +> : ^^^^^^ +>b : { "0.1": void; ".1": Object; "1": number; "1.": string; "1..": boolean; "1.0": Date; "-1.0": RegExp; "-1": DateConstructor; } +> : ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>'1' : "1" +> : ^^^ + +var r3 = c[1]; +>r3 : number +> : ^^^^^^ +>c[1] : number +> : ^^^^^^ +>c : C +> : ^ +>1 : 1 +> : ^ + +var r4 = b['1.']; +>r4 : string +> : ^^^^^^ +>b['1.'] : string +> : ^^^^^^ +>b : { "0.1": void; ".1": Object; "1": number; "1.": string; "1..": boolean; "1.0": Date; "-1.0": RegExp; "-1": DateConstructor; } +> : ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>'1.' : "1." +> : ^^^^ + +var r3 = c[1.]; // same as indexing by 1 when done numerically +>r3 : number +> : ^^^^^^ +>c[1.] : number +> : ^^^^^^ +>c : C +> : ^ +>1. : 1 +> : ^ + +var r5 = b['1..']; +>r5 : boolean +> : ^^^^^^^ +>b['1..'] : boolean +> : ^^^^^^^ +>b : { "0.1": void; ".1": Object; "1": number; "1.": string; "1..": boolean; "1.0": Date; "-1.0": RegExp; "-1": DateConstructor; } +> : ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>'1..' : "1.." +> : ^^^^^ + +var r6 = b['1.0']; +>r6 : Date +> : ^^^^ +>b['1.0'] : Date +> : ^^^^ +>b : { "0.1": void; ".1": Object; "1": number; "1.": string; "1..": boolean; "1.0": Date; "-1.0": RegExp; "-1": DateConstructor; } +> : ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>'1.0' : "1.0" +> : ^^^^^ + +var r3 = c[1.0]; // same as indexing by 1 when done numerically +>r3 : number +> : ^^^^^^ +>c[1.0] : number +> : ^^^^^^ +>c : C +> : ^ +>1.0 : 1 +> : ^ + +// BUG 823822 +var r7 = i[-1]; +>r7 : Date +> : ^^^^ +>i[-1] : Date +> : ^^^^ +>i : I +> : ^ +>-1 : -1 +> : ^^ +>1 : 1 +> : ^ + +var r7 = i[-1.0]; +>r7 : Date +> : ^^^^ +>i[-1.0] : Date +> : ^^^^ +>i : I +> : ^ +>-1.0 : -1 +> : ^^ +>1.0 : 1 +> : ^ + +var r8 = i["-1.0"]; +>r8 : RegExp +> : ^^^^^^ +>i["-1.0"] : RegExp +> : ^^^^^^ +>i : I +> : ^ +>"-1.0" : "-1.0" +> : ^^^^^^ + +var r9 = i["-1"]; +>r9 : Date +> : ^^^^ +>i["-1"] : Date +> : ^^^^ +>i : I +> : ^ +>"-1" : "-1" +> : ^^^^ + +var r10 = i[0x1] +>r10 : number +> : ^^^^^^ +>i[0x1] : number +> : ^^^^^^ +>i : I +> : ^ +>0x1 : 1 +> : ^ + +var r11 = i[-0x1] +>r11 : Date +> : ^^^^ +>i[-0x1] : Date +> : ^^^^ +>i : I +> : ^ +>-0x1 : -1 +> : ^^ +>0x1 : 1 +> : ^ + +var r12 = i[01] +>r12 : number +> : ^^^^^^ +>i[01] : number +> : ^^^^^^ +>i : I +> : ^ +>01 : 1 +> : ^ + +var r13 = i[-01] +>r13 : Date +> : ^^^^ +>i[-01] : Date +> : ^^^^ +>i : I +> : ^ +>-01 : -1 +> : ^^ +>01 : 1 +> : ^ + diff --git a/tests/baselines/reference/octalIntegerLiteral(target=es2015).js b/tests/baselines/reference/octalIntegerLiteral(target=es2015).js new file mode 100644 index 0000000000000..8aa9b0b309168 --- /dev/null +++ b/tests/baselines/reference/octalIntegerLiteral(target=es2015).js @@ -0,0 +1,81 @@ +//// [tests/cases/conformance/es6/binaryAndOctalIntegerLiteral/octalIntegerLiteral.ts] //// + +//// [octalIntegerLiteral.ts] +var oct1 = 0o45436; +var oct2 = 0O45436; +var oct3 = 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777; +var oct4 = 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777; + +var obj1 = { + 0o45436: "Hello", + a: 0o45436, + b: oct1, + oct1, + 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: true +} + +var obj2 = { + 0O45436: "hi", + a: 0O45436, + b: oct2, + oct2, + 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: false, +} + +obj1[0o45436]; // string +obj1["0o45436"]; // any +obj1["19230"]; // string +obj1[19230]; // string +obj1["a"]; // number +obj1["b"]; // number +obj1["oct1"]; // number +obj1["Infinity"]; // boolean + +obj2[0O45436]; // string +obj2["0O45436"]; // any +obj2["19230"]; // string +obj2[19230]; // string +obj2["a"]; // number +obj2["b"]; // number +obj2["oct2"]; // number +obj2[5.462437423415177e+244]; // boolean +obj2["5.462437423415177e+244"]; // boolean +obj2["Infinity"]; // any + +//// [octalIntegerLiteral.js] +var oct1 = 0o45436; +var oct2 = 0O45436; +var oct3 = 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777; +var oct4 = 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777; +var obj1 = { + 0o45436: "Hello", + a: 0o45436, + b: oct1, + oct1, + 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: true +}; +var obj2 = { + 0O45436: "hi", + a: 0O45436, + b: oct2, + oct2, + 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: false, +}; +obj1[0o45436]; // string +obj1["0o45436"]; // any +obj1["19230"]; // string +obj1[19230]; // string +obj1["a"]; // number +obj1["b"]; // number +obj1["oct1"]; // number +obj1["Infinity"]; // boolean +obj2[0O45436]; // string +obj2["0O45436"]; // any +obj2["19230"]; // string +obj2[19230]; // string +obj2["a"]; // number +obj2["b"]; // number +obj2["oct2"]; // number +obj2[5.462437423415177e+244]; // boolean +obj2["5.462437423415177e+244"]; // boolean +obj2["Infinity"]; // any diff --git a/tests/baselines/reference/octalIntegerLiteral.symbols b/tests/baselines/reference/octalIntegerLiteral(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/octalIntegerLiteral.symbols rename to tests/baselines/reference/octalIntegerLiteral(target=es2015).symbols diff --git a/tests/baselines/reference/octalIntegerLiteral.types b/tests/baselines/reference/octalIntegerLiteral(target=es2015).types similarity index 100% rename from tests/baselines/reference/octalIntegerLiteral.types rename to tests/baselines/reference/octalIntegerLiteral(target=es2015).types diff --git a/tests/baselines/reference/octalIntegerLiteral.js b/tests/baselines/reference/octalIntegerLiteral(target=es5).js similarity index 100% rename from tests/baselines/reference/octalIntegerLiteral.js rename to tests/baselines/reference/octalIntegerLiteral(target=es5).js diff --git a/tests/baselines/reference/octalIntegerLiteral(target=es5).symbols b/tests/baselines/reference/octalIntegerLiteral(target=es5).symbols new file mode 100644 index 0000000000000..808f56dd397bc --- /dev/null +++ b/tests/baselines/reference/octalIntegerLiteral(target=es5).symbols @@ -0,0 +1,124 @@ +//// [tests/cases/conformance/es6/binaryAndOctalIntegerLiteral/octalIntegerLiteral.ts] //// + +=== octalIntegerLiteral.ts === +var oct1 = 0o45436; +>oct1 : Symbol(oct1, Decl(octalIntegerLiteral.ts, 0, 3)) + +var oct2 = 0O45436; +>oct2 : Symbol(oct2, Decl(octalIntegerLiteral.ts, 1, 3)) + +var oct3 = 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777; +>oct3 : Symbol(oct3, Decl(octalIntegerLiteral.ts, 2, 3)) + +var oct4 = 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777; +>oct4 : Symbol(oct4, Decl(octalIntegerLiteral.ts, 3, 3)) + +var obj1 = { +>obj1 : Symbol(obj1, Decl(octalIntegerLiteral.ts, 5, 3)) + + 0o45436: "Hello", +>0o45436 : Symbol(0o45436, Decl(octalIntegerLiteral.ts, 5, 12)) + + a: 0o45436, +>a : Symbol(a, Decl(octalIntegerLiteral.ts, 6, 21)) + + b: oct1, +>b : Symbol(b, Decl(octalIntegerLiteral.ts, 7, 15)) +>oct1 : Symbol(oct1, Decl(octalIntegerLiteral.ts, 0, 3)) + + oct1, +>oct1 : Symbol(oct1, Decl(octalIntegerLiteral.ts, 8, 12)) + + 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: true +>0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777 : Symbol(0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777, Decl(octalIntegerLiteral.ts, 9, 9)) +} + +var obj2 = { +>obj2 : Symbol(obj2, Decl(octalIntegerLiteral.ts, 13, 3)) + + 0O45436: "hi", +>0O45436 : Symbol(0O45436, Decl(octalIntegerLiteral.ts, 13, 12)) + + a: 0O45436, +>a : Symbol(a, Decl(octalIntegerLiteral.ts, 14, 18)) + + b: oct2, +>b : Symbol(b, Decl(octalIntegerLiteral.ts, 15, 15)) +>oct2 : Symbol(oct2, Decl(octalIntegerLiteral.ts, 1, 3)) + + oct2, +>oct2 : Symbol(oct2, Decl(octalIntegerLiteral.ts, 16, 12)) + + 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: false, +>0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777 : Symbol(0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777, Decl(octalIntegerLiteral.ts, 17, 9)) +} + +obj1[0o45436]; // string +>obj1 : Symbol(obj1, Decl(octalIntegerLiteral.ts, 5, 3)) +>0o45436 : Symbol(0o45436, Decl(octalIntegerLiteral.ts, 5, 12)) + +obj1["0o45436"]; // any +>obj1 : Symbol(obj1, Decl(octalIntegerLiteral.ts, 5, 3)) + +obj1["19230"]; // string +>obj1 : Symbol(obj1, Decl(octalIntegerLiteral.ts, 5, 3)) +>"19230" : Symbol(0o45436, Decl(octalIntegerLiteral.ts, 5, 12)) + +obj1[19230]; // string +>obj1 : Symbol(obj1, Decl(octalIntegerLiteral.ts, 5, 3)) +>19230 : Symbol(0o45436, Decl(octalIntegerLiteral.ts, 5, 12)) + +obj1["a"]; // number +>obj1 : Symbol(obj1, Decl(octalIntegerLiteral.ts, 5, 3)) +>"a" : Symbol(a, Decl(octalIntegerLiteral.ts, 6, 21)) + +obj1["b"]; // number +>obj1 : Symbol(obj1, Decl(octalIntegerLiteral.ts, 5, 3)) +>"b" : Symbol(b, Decl(octalIntegerLiteral.ts, 7, 15)) + +obj1["oct1"]; // number +>obj1 : Symbol(obj1, Decl(octalIntegerLiteral.ts, 5, 3)) +>"oct1" : Symbol(oct1, Decl(octalIntegerLiteral.ts, 8, 12)) + +obj1["Infinity"]; // boolean +>obj1 : Symbol(obj1, Decl(octalIntegerLiteral.ts, 5, 3)) +>"Infinity" : Symbol(0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777, Decl(octalIntegerLiteral.ts, 9, 9)) + +obj2[0O45436]; // string +>obj2 : Symbol(obj2, Decl(octalIntegerLiteral.ts, 13, 3)) +>0O45436 : Symbol(0O45436, Decl(octalIntegerLiteral.ts, 13, 12)) + +obj2["0O45436"]; // any +>obj2 : Symbol(obj2, Decl(octalIntegerLiteral.ts, 13, 3)) + +obj2["19230"]; // string +>obj2 : Symbol(obj2, Decl(octalIntegerLiteral.ts, 13, 3)) +>"19230" : Symbol(0O45436, Decl(octalIntegerLiteral.ts, 13, 12)) + +obj2[19230]; // string +>obj2 : Symbol(obj2, Decl(octalIntegerLiteral.ts, 13, 3)) +>19230 : Symbol(0O45436, Decl(octalIntegerLiteral.ts, 13, 12)) + +obj2["a"]; // number +>obj2 : Symbol(obj2, Decl(octalIntegerLiteral.ts, 13, 3)) +>"a" : Symbol(a, Decl(octalIntegerLiteral.ts, 14, 18)) + +obj2["b"]; // number +>obj2 : Symbol(obj2, Decl(octalIntegerLiteral.ts, 13, 3)) +>"b" : Symbol(b, Decl(octalIntegerLiteral.ts, 15, 15)) + +obj2["oct2"]; // number +>obj2 : Symbol(obj2, Decl(octalIntegerLiteral.ts, 13, 3)) +>"oct2" : Symbol(oct2, Decl(octalIntegerLiteral.ts, 16, 12)) + +obj2[5.462437423415177e+244]; // boolean +>obj2 : Symbol(obj2, Decl(octalIntegerLiteral.ts, 13, 3)) +>5.462437423415177e+244 : Symbol(0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777, Decl(octalIntegerLiteral.ts, 17, 9)) + +obj2["5.462437423415177e+244"]; // boolean +>obj2 : Symbol(obj2, Decl(octalIntegerLiteral.ts, 13, 3)) +>"5.462437423415177e+244" : Symbol(0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777, Decl(octalIntegerLiteral.ts, 17, 9)) + +obj2["Infinity"]; // any +>obj2 : Symbol(obj2, Decl(octalIntegerLiteral.ts, 13, 3)) + diff --git a/tests/baselines/reference/octalIntegerLiteral(target=es5).types b/tests/baselines/reference/octalIntegerLiteral(target=es5).types new file mode 100644 index 0000000000000..9f31cbad6f95e --- /dev/null +++ b/tests/baselines/reference/octalIntegerLiteral(target=es5).types @@ -0,0 +1,238 @@ +//// [tests/cases/conformance/es6/binaryAndOctalIntegerLiteral/octalIntegerLiteral.ts] //// + +=== octalIntegerLiteral.ts === +var oct1 = 0o45436; +>oct1 : number +> : ^^^^^^ +>0o45436 : 19230 +> : ^^^^^ + +var oct2 = 0O45436; +>oct2 : number +> : ^^^^^^ +>0O45436 : 19230 +> : ^^^^^ + +var oct3 = 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777; +>oct3 : number +> : ^^^^^^ +>0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777 : Infinity +> : ^^^^^^^^ + +var oct4 = 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777; +>oct4 : number +> : ^^^^^^ +>0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777 : 5.462437423415177e+244 +> : ^^^^^^^^^^^^^^^^^^^^^^ + +var obj1 = { +>obj1 : { 19230: string; a: number; b: number; oct1: number; Infinity: boolean; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ 0o45436: "Hello", a: 0o45436, b: oct1, oct1, 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: true} : { 19230: string; a: number; b: number; oct1: number; Infinity: boolean; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + 0o45436: "Hello", +>0o45436 : string +> : ^^^^^^ +>"Hello" : "Hello" +> : ^^^^^^^ + + a: 0o45436, +>a : number +> : ^^^^^^ +>0o45436 : 19230 +> : ^^^^^ + + b: oct1, +>b : number +> : ^^^^^^ +>oct1 : number +> : ^^^^^^ + + oct1, +>oct1 : number +> : ^^^^^^ + + 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: true +>0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777 : boolean +> : ^^^^^^^ +>true : true +> : ^^^^ +} + +var obj2 = { +>obj2 : { 19230: string; a: number; b: number; oct2: number; 5.462437423415177e+244: boolean; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ 0O45436: "hi", a: 0O45436, b: oct2, oct2, 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: false,} : { 19230: string; a: number; b: number; oct2: number; 5.462437423415177e+244: boolean; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + 0O45436: "hi", +>0O45436 : string +> : ^^^^^^ +>"hi" : "hi" +> : ^^^^ + + a: 0O45436, +>a : number +> : ^^^^^^ +>0O45436 : 19230 +> : ^^^^^ + + b: oct2, +>b : number +> : ^^^^^^ +>oct2 : number +> : ^^^^^^ + + oct2, +>oct2 : number +> : ^^^^^^ + + 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: false, +>0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777 : boolean +> : ^^^^^^^ +>false : false +> : ^^^^^ +} + +obj1[0o45436]; // string +>obj1[0o45436] : string +> : ^^^^^^ +>obj1 : { 19230: string; a: number; b: number; oct1: number; Infinity: boolean; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>0o45436 : 19230 +> : ^^^^^ + +obj1["0o45436"]; // any +>obj1["0o45436"] : error +>obj1 : { 19230: string; a: number; b: number; oct1: number; Infinity: boolean; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>"0o45436" : "0o45436" +> : ^^^^^^^^^ + +obj1["19230"]; // string +>obj1["19230"] : string +> : ^^^^^^ +>obj1 : { 19230: string; a: number; b: number; oct1: number; Infinity: boolean; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>"19230" : "19230" +> : ^^^^^^^ + +obj1[19230]; // string +>obj1[19230] : string +> : ^^^^^^ +>obj1 : { 19230: string; a: number; b: number; oct1: number; Infinity: boolean; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>19230 : 19230 +> : ^^^^^ + +obj1["a"]; // number +>obj1["a"] : number +> : ^^^^^^ +>obj1 : { 19230: string; a: number; b: number; oct1: number; Infinity: boolean; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>"a" : "a" +> : ^^^ + +obj1["b"]; // number +>obj1["b"] : number +> : ^^^^^^ +>obj1 : { 19230: string; a: number; b: number; oct1: number; Infinity: boolean; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>"b" : "b" +> : ^^^ + +obj1["oct1"]; // number +>obj1["oct1"] : number +> : ^^^^^^ +>obj1 : { 19230: string; a: number; b: number; oct1: number; Infinity: boolean; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>"oct1" : "oct1" +> : ^^^^^^ + +obj1["Infinity"]; // boolean +>obj1["Infinity"] : boolean +> : ^^^^^^^ +>obj1 : { 19230: string; a: number; b: number; oct1: number; Infinity: boolean; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>"Infinity" : "Infinity" +> : ^^^^^^^^^^ + +obj2[0O45436]; // string +>obj2[0O45436] : string +> : ^^^^^^ +>obj2 : { 19230: string; a: number; b: number; oct2: number; 5.462437423415177e+244: boolean; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>0O45436 : 19230 +> : ^^^^^ + +obj2["0O45436"]; // any +>obj2["0O45436"] : error +>obj2 : { 19230: string; a: number; b: number; oct2: number; 5.462437423415177e+244: boolean; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>"0O45436" : "0O45436" +> : ^^^^^^^^^ + +obj2["19230"]; // string +>obj2["19230"] : string +> : ^^^^^^ +>obj2 : { 19230: string; a: number; b: number; oct2: number; 5.462437423415177e+244: boolean; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>"19230" : "19230" +> : ^^^^^^^ + +obj2[19230]; // string +>obj2[19230] : string +> : ^^^^^^ +>obj2 : { 19230: string; a: number; b: number; oct2: number; 5.462437423415177e+244: boolean; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>19230 : 19230 +> : ^^^^^ + +obj2["a"]; // number +>obj2["a"] : number +> : ^^^^^^ +>obj2 : { 19230: string; a: number; b: number; oct2: number; 5.462437423415177e+244: boolean; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>"a" : "a" +> : ^^^ + +obj2["b"]; // number +>obj2["b"] : number +> : ^^^^^^ +>obj2 : { 19230: string; a: number; b: number; oct2: number; 5.462437423415177e+244: boolean; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>"b" : "b" +> : ^^^ + +obj2["oct2"]; // number +>obj2["oct2"] : number +> : ^^^^^^ +>obj2 : { 19230: string; a: number; b: number; oct2: number; 5.462437423415177e+244: boolean; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>"oct2" : "oct2" +> : ^^^^^^ + +obj2[5.462437423415177e+244]; // boolean +>obj2[5.462437423415177e+244] : boolean +> : ^^^^^^^ +>obj2 : { 19230: string; a: number; b: number; oct2: number; 5.462437423415177e+244: boolean; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>5.462437423415177e+244 : 5.462437423415177e+244 +> : ^^^^^^^^^^^^^^^^^^^^^^ + +obj2["5.462437423415177e+244"]; // boolean +>obj2["5.462437423415177e+244"] : boolean +> : ^^^^^^^ +>obj2 : { 19230: string; a: number; b: number; oct2: number; 5.462437423415177e+244: boolean; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>"5.462437423415177e+244" : "5.462437423415177e+244" +> : ^^^^^^^^^^^^^^^^^^^^^^^^ + +obj2["Infinity"]; // any +>obj2["Infinity"] : error +>obj2 : { 19230: string; a: number; b: number; oct2: number; 5.462437423415177e+244: boolean; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>"Infinity" : "Infinity" +> : ^^^^^^^^^^ + diff --git a/tests/baselines/reference/optionalChainingInArrow(target=es2015).js b/tests/baselines/reference/optionalChainingInArrow(target=es2015).js new file mode 100644 index 0000000000000..bb86bff8f4f7a --- /dev/null +++ b/tests/baselines/reference/optionalChainingInArrow(target=es2015).js @@ -0,0 +1,14 @@ +//// [tests/cases/conformance/expressions/optionalChaining/optionalChainingInArrow.ts] //// + +//// [optionalChainingInArrow.ts] +// https://github.com/microsoft/TypeScript/issues/41814 +const test = (names: string[]) => + // single-line comment + names?.filter(x => x); + + +//// [optionalChainingInArrow.js] +// https://github.com/microsoft/TypeScript/issues/41814 +const test = (names) => +// single-line comment +names === null || names === void 0 ? void 0 : names.filter(x => x); diff --git a/tests/baselines/reference/optionalChainingInArrow.js b/tests/baselines/reference/optionalChainingInArrow(target=es5).js similarity index 100% rename from tests/baselines/reference/optionalChainingInArrow.js rename to tests/baselines/reference/optionalChainingInArrow(target=es5).js diff --git a/tests/baselines/reference/optionalChainingInLoop(target=es2015).js b/tests/baselines/reference/optionalChainingInLoop(target=es2015).js new file mode 100644 index 0000000000000..5a57e6ac84e46 --- /dev/null +++ b/tests/baselines/reference/optionalChainingInLoop(target=es2015).js @@ -0,0 +1,22 @@ +//// [tests/cases/conformance/expressions/optionalChaining/optionalChainingInLoop.ts] //// + +//// [optionalChainingInLoop.ts] +// https://github.com/microsoft/TypeScript/issues/40643 +const list: any[] = [] +for (const comp of list) { + comp.sp.y = comp.sp.r.find((k: any) => k.c == (comp.xp ? '1' : '0')) + for (const item of comp.c) { + item.v = !!item.t?.length + } +} + +//// [optionalChainingInLoop.js] +var _a; +// https://github.com/microsoft/TypeScript/issues/40643 +const list = []; +for (const comp of list) { + comp.sp.y = comp.sp.r.find((k) => k.c == (comp.xp ? '1' : '0')); + for (const item of comp.c) { + item.v = !!((_a = item.t) === null || _a === void 0 ? void 0 : _a.length); + } +} diff --git a/tests/baselines/reference/optionalChainingInLoop.js b/tests/baselines/reference/optionalChainingInLoop(target=es5).js similarity index 100% rename from tests/baselines/reference/optionalChainingInLoop.js rename to tests/baselines/reference/optionalChainingInLoop(target=es5).js diff --git a/tests/baselines/reference/out-flag(target=es2015).js b/tests/baselines/reference/out-flag(target=es2015).js new file mode 100644 index 0000000000000..5bc5e22fe5f2b --- /dev/null +++ b/tests/baselines/reference/out-flag(target=es2015).js @@ -0,0 +1,40 @@ +//// [tests/cases/compiler/out-flag.ts] //// + +//// [out-flag.ts] +//// @outFile: bin\ + +// my class comments +class MyClass +{ + // my function comments + public Count(): number + { + return 42; + } + + public SetCount(value: number) + { + // + } +} + + +//// [out-flag.js] +//// @outFile: bin\ +// my class comments +class MyClass { + // my function comments + Count() { + return 42; + } + SetCount(value) { + // + } +} +//# sourceMappingURL=out-flag.js.map + +//// [out-flag.d.ts] +declare class MyClass { + Count(): number; + SetCount(value: number): void; +} diff --git a/tests/baselines/reference/out-flag(target=es2015).js.map b/tests/baselines/reference/out-flag(target=es2015).js.map new file mode 100644 index 0000000000000..51be216ce9a46 --- /dev/null +++ b/tests/baselines/reference/out-flag(target=es2015).js.map @@ -0,0 +1,3 @@ +//// [out-flag.js.map] +{"version":3,"file":"out-flag.js","sourceRoot":"","sources":["out-flag.ts"],"names":[],"mappings":"AAAA,mBAAmB;AAEnB,oBAAoB;AACpB,MAAM,OAAO;IAET,uBAAuB;IAChB,KAAK;QAER,OAAO,EAAE,CAAC;IACd,CAAC;IAEM,QAAQ,CAAC,KAAa;QAEzB,EAAE;IACN,CAAC;CACJ"} +//// https://sokra.github.io/source-map-visualization#base64,Ly8vLyBAb3V0RmlsZTogYmluXA0KLy8gbXkgY2xhc3MgY29tbWVudHMNCmNsYXNzIE15Q2xhc3Mgew0KICAgIC8vIG15IGZ1bmN0aW9uIGNvbW1lbnRzDQogICAgQ291bnQoKSB7DQogICAgICAgIHJldHVybiA0MjsNCiAgICB9DQogICAgU2V0Q291bnQodmFsdWUpIHsNCiAgICAgICAgLy8NCiAgICB9DQp9DQovLyMgc291cmNlTWFwcGluZ1VSTD1vdXQtZmxhZy5qcy5tYXA=,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3V0LWZsYWcuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJvdXQtZmxhZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxtQkFBbUI7QUFFbkIsb0JBQW9CO0FBQ3BCLE1BQU0sT0FBTztJQUVULHVCQUF1QjtJQUNoQixLQUFLO1FBRVIsT0FBTyxFQUFFLENBQUM7SUFDZCxDQUFDO0lBRU0sUUFBUSxDQUFDLEtBQWE7UUFFekIsRUFBRTtJQUNOLENBQUM7Q0FDSiJ9,Ly8vLyBAb3V0RmlsZTogYmluXAoKLy8gbXkgY2xhc3MgY29tbWVudHMKY2xhc3MgTXlDbGFzcwp7CiAgICAvLyBteSBmdW5jdGlvbiBjb21tZW50cwogICAgcHVibGljIENvdW50KCk6IG51bWJlcgogICAgewogICAgICAgIHJldHVybiA0MjsKICAgIH0KCiAgICBwdWJsaWMgU2V0Q291bnQodmFsdWU6IG51bWJlcikKICAgIHsKICAgICAgICAvLwogICAgfQp9Cg== diff --git a/tests/baselines/reference/out-flag(target=es2015).sourcemap.txt b/tests/baselines/reference/out-flag(target=es2015).sourcemap.txt new file mode 100644 index 0000000000000..f74ec99a14945 --- /dev/null +++ b/tests/baselines/reference/out-flag(target=es2015).sourcemap.txt @@ -0,0 +1,131 @@ +=================================================================== +JsFile: out-flag.js +mapUrl: out-flag.js.map +sourceRoot: +sources: out-flag.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:out-flag.js +sourceFile:out-flag.ts +------------------------------------------------------------------- +>>>//// @outFile: bin\ +1 > +2 >^^^^^^^^^^^^^^^^^^^ +3 > ^^-> +1 > +2 >//// @outFile: bin\ +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 20) Source(1, 20) + SourceIndex(0) +--- +>>>// my class comments +1-> +2 >^^^^^^^^^^^^^^^^^^^^ +1-> + > + > +2 >// my class comments +1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(2, 21) Source(3, 21) + SourceIndex(0) +--- +>>>class MyClass { +1 > +2 >^^^^^^ +3 > ^^^^^^^ +4 > ^^^^^^^^^^^^^^^-> +1 > + > +2 >class +3 > MyClass +1 >Emitted(3, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(3, 7) Source(4, 7) + SourceIndex(0) +3 >Emitted(3, 14) Source(4, 14) + SourceIndex(0) +--- +>>> // my function comments +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +1-> + >{ + > +2 > // my function comments +1->Emitted(4, 5) Source(6, 5) + SourceIndex(0) +2 >Emitted(4, 28) Source(6, 28) + SourceIndex(0) +--- +>>> Count() { +1 >^^^^ +2 > ^^^^^ +3 > ^^^^^^^^^^-> +1 > + > public +2 > Count +1 >Emitted(5, 5) Source(7, 12) + SourceIndex(0) +2 >Emitted(5, 10) Source(7, 17) + SourceIndex(0) +--- +>>> return 42; +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^^ +4 > ^ +1->(): number + > { + > +2 > return +3 > 42 +4 > ; +1->Emitted(6, 9) Source(9, 9) + SourceIndex(0) +2 >Emitted(6, 16) Source(9, 16) + SourceIndex(0) +3 >Emitted(6, 18) Source(9, 18) + SourceIndex(0) +4 >Emitted(6, 19) Source(9, 19) + SourceIndex(0) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(7, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(7, 6) Source(10, 6) + SourceIndex(0) +--- +>>> SetCount(value) { +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^^^ +1-> + > + > public +2 > SetCount +3 > ( +4 > value: number +1->Emitted(8, 5) Source(12, 12) + SourceIndex(0) +2 >Emitted(8, 13) Source(12, 20) + SourceIndex(0) +3 >Emitted(8, 14) Source(12, 21) + SourceIndex(0) +4 >Emitted(8, 19) Source(12, 34) + SourceIndex(0) +--- +>>> // +1 >^^^^^^^^ +2 > ^^ +1 >) + > { + > +2 > // +1 >Emitted(9, 9) Source(14, 9) + SourceIndex(0) +2 >Emitted(9, 11) Source(14, 11) + SourceIndex(0) +--- +>>> } +1 >^^^^ +2 > ^ +1 > + > +2 > } +1 >Emitted(10, 5) Source(15, 5) + SourceIndex(0) +2 >Emitted(10, 6) Source(15, 6) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(11, 2) Source(16, 2) + SourceIndex(0) +--- +>>>//# sourceMappingURL=out-flag.js.map \ No newline at end of file diff --git a/tests/baselines/reference/out-flag.symbols b/tests/baselines/reference/out-flag(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/out-flag.symbols rename to tests/baselines/reference/out-flag(target=es2015).symbols diff --git a/tests/baselines/reference/out-flag.types b/tests/baselines/reference/out-flag(target=es2015).types similarity index 100% rename from tests/baselines/reference/out-flag.types rename to tests/baselines/reference/out-flag(target=es2015).types diff --git a/tests/baselines/reference/out-flag.js b/tests/baselines/reference/out-flag(target=es5).js similarity index 100% rename from tests/baselines/reference/out-flag.js rename to tests/baselines/reference/out-flag(target=es5).js diff --git a/tests/baselines/reference/out-flag.js.map b/tests/baselines/reference/out-flag(target=es5).js.map similarity index 100% rename from tests/baselines/reference/out-flag.js.map rename to tests/baselines/reference/out-flag(target=es5).js.map diff --git a/tests/baselines/reference/out-flag.sourcemap.txt b/tests/baselines/reference/out-flag(target=es5).sourcemap.txt similarity index 100% rename from tests/baselines/reference/out-flag.sourcemap.txt rename to tests/baselines/reference/out-flag(target=es5).sourcemap.txt diff --git a/tests/baselines/reference/out-flag(target=es5).symbols b/tests/baselines/reference/out-flag(target=es5).symbols new file mode 100644 index 0000000000000..0cfcee5e5e9a3 --- /dev/null +++ b/tests/baselines/reference/out-flag(target=es5).symbols @@ -0,0 +1,24 @@ +//// [tests/cases/compiler/out-flag.ts] //// + +=== out-flag.ts === +//// @outFile: bin\ + +// my class comments +class MyClass +>MyClass : Symbol(MyClass, Decl(out-flag.ts, 0, 0)) +{ + // my function comments + public Count(): number +>Count : Symbol(MyClass.Count, Decl(out-flag.ts, 4, 1)) + { + return 42; + } + + public SetCount(value: number) +>SetCount : Symbol(MyClass.SetCount, Decl(out-flag.ts, 9, 5)) +>value : Symbol(value, Decl(out-flag.ts, 11, 20)) + { + // + } +} + diff --git a/tests/baselines/reference/out-flag(target=es5).types b/tests/baselines/reference/out-flag(target=es5).types new file mode 100644 index 0000000000000..058787f681196 --- /dev/null +++ b/tests/baselines/reference/out-flag(target=es5).types @@ -0,0 +1,30 @@ +//// [tests/cases/compiler/out-flag.ts] //// + +=== out-flag.ts === +//// @outFile: bin\ + +// my class comments +class MyClass +>MyClass : MyClass +> : ^^^^^^^ +{ + // my function comments + public Count(): number +>Count : () => number +> : ^^^^^^ + { + return 42; +>42 : 42 +> : ^^ + } + + public SetCount(value: number) +>SetCount : (value: number) => void +> : ^ ^^ ^^^^^^^^^ +>value : number +> : ^^^^^^ + { + // + } +} + diff --git a/tests/baselines/reference/out-flag2.errors.txt b/tests/baselines/reference/out-flag2(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/out-flag2.errors.txt rename to tests/baselines/reference/out-flag2(target=es2015).errors.txt diff --git a/tests/baselines/reference/out-flag2(target=es2015).js b/tests/baselines/reference/out-flag2(target=es2015).js new file mode 100644 index 0000000000000..60c8e156849ec --- /dev/null +++ b/tests/baselines/reference/out-flag2(target=es2015).js @@ -0,0 +1,21 @@ +//// [tests/cases/compiler/out-flag2.ts] //// + +//// [a.ts] +class A { } + +//// [b.ts] +class B { } + + +//// [c.js] +class A { +} +class B { +} +//# sourceMappingURL=c.js.map + +//// [c.d.ts] +declare class A { +} +declare class B { +} diff --git a/tests/baselines/reference/out-flag2(target=es2015).js.map b/tests/baselines/reference/out-flag2(target=es2015).js.map new file mode 100644 index 0000000000000..381c36d2c0455 --- /dev/null +++ b/tests/baselines/reference/out-flag2(target=es2015).js.map @@ -0,0 +1,3 @@ +//// [c.js.map] +{"version":3,"file":"c.js","sourceRoot":"","sources":["a.ts","b.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC;CAAI;ACAX,MAAM,CAAC;CAAI"} +//// https://sokra.github.io/source-map-visualization#base64,Y2xhc3MgQSB7DQp9DQpjbGFzcyBCIHsNCn0NCi8vIyBzb3VyY2VNYXBwaW5nVVJMPWMuanMubWFw,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImEudHMiLCJiLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE1BQU0sQ0FBQztDQUFJO0FDQVgsTUFBTSxDQUFDO0NBQUkifQ==,Y2xhc3MgQSB7IH0K,Y2xhc3MgQiB7IH0K diff --git a/tests/baselines/reference/out-flag2(target=es2015).sourcemap.txt b/tests/baselines/reference/out-flag2(target=es2015).sourcemap.txt new file mode 100644 index 0000000000000..079ed0d311544 --- /dev/null +++ b/tests/baselines/reference/out-flag2(target=es2015).sourcemap.txt @@ -0,0 +1,49 @@ +=================================================================== +JsFile: c.js +mapUrl: c.js.map +sourceRoot: +sources: a.ts,b.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:c.js +sourceFile:a.ts +------------------------------------------------------------------- +>>>class A { +1 > +2 >^^^^^^ +3 > ^ +1 > +2 >class +3 > A +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 7) Source(1, 7) + SourceIndex(0) +3 >Emitted(1, 8) Source(1, 8) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^-> +1 > { } +1 >Emitted(2, 2) Source(1, 12) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:c.js +sourceFile:b.ts +------------------------------------------------------------------- +>>>class B { +1-> +2 >^^^^^^ +3 > ^ +1-> +2 >class +3 > B +1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 7) Source(1, 7) + SourceIndex(1) +3 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > { } +1 >Emitted(4, 2) Source(1, 12) + SourceIndex(1) +--- +>>>//# sourceMappingURL=c.js.map \ No newline at end of file diff --git a/tests/baselines/reference/out-flag2.symbols b/tests/baselines/reference/out-flag2(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/out-flag2.symbols rename to tests/baselines/reference/out-flag2(target=es2015).symbols diff --git a/tests/baselines/reference/out-flag2.types b/tests/baselines/reference/out-flag2(target=es2015).types similarity index 100% rename from tests/baselines/reference/out-flag2.types rename to tests/baselines/reference/out-flag2(target=es2015).types diff --git a/tests/baselines/reference/out-flag3.errors.txt b/tests/baselines/reference/out-flag2(target=es5).errors.txt similarity index 100% rename from tests/baselines/reference/out-flag3.errors.txt rename to tests/baselines/reference/out-flag2(target=es5).errors.txt diff --git a/tests/baselines/reference/out-flag2.js b/tests/baselines/reference/out-flag2(target=es5).js similarity index 100% rename from tests/baselines/reference/out-flag2.js rename to tests/baselines/reference/out-flag2(target=es5).js diff --git a/tests/baselines/reference/out-flag2.js.map b/tests/baselines/reference/out-flag2(target=es5).js.map similarity index 100% rename from tests/baselines/reference/out-flag2.js.map rename to tests/baselines/reference/out-flag2(target=es5).js.map diff --git a/tests/baselines/reference/out-flag2.sourcemap.txt b/tests/baselines/reference/out-flag2(target=es5).sourcemap.txt similarity index 100% rename from tests/baselines/reference/out-flag2.sourcemap.txt rename to tests/baselines/reference/out-flag2(target=es5).sourcemap.txt diff --git a/tests/baselines/reference/out-flag2(target=es5).symbols b/tests/baselines/reference/out-flag2(target=es5).symbols new file mode 100644 index 0000000000000..705820e3b4b74 --- /dev/null +++ b/tests/baselines/reference/out-flag2(target=es5).symbols @@ -0,0 +1,10 @@ +//// [tests/cases/compiler/out-flag2.ts] //// + +=== a.ts === +class A { } +>A : Symbol(A, Decl(a.ts, 0, 0)) + +=== b.ts === +class B { } +>B : Symbol(B, Decl(b.ts, 0, 0)) + diff --git a/tests/baselines/reference/out-flag2(target=es5).types b/tests/baselines/reference/out-flag2(target=es5).types new file mode 100644 index 0000000000000..66c42d49d4f29 --- /dev/null +++ b/tests/baselines/reference/out-flag2(target=es5).types @@ -0,0 +1,12 @@ +//// [tests/cases/compiler/out-flag2.ts] //// + +=== a.ts === +class A { } +>A : A +> : ^ + +=== b.ts === +class B { } +>B : B +> : ^ + diff --git a/tests/baselines/reference/out-flag3(target=es2015).errors.txt b/tests/baselines/reference/out-flag3(target=es2015).errors.txt new file mode 100644 index 0000000000000..0bfe608ab46cc --- /dev/null +++ b/tests/baselines/reference/out-flag3(target=es2015).errors.txt @@ -0,0 +1,12 @@ +error TS5101: Option 'outFile' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. + + +!!! error TS5101: Option 'outFile' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +==== a.ts (0 errors) ==== + class A { } + +==== b.ts (0 errors) ==== + class B { } + \ No newline at end of file diff --git a/tests/baselines/reference/out-flag3(target=es2015).js b/tests/baselines/reference/out-flag3(target=es2015).js new file mode 100644 index 0000000000000..79b2f10949221 --- /dev/null +++ b/tests/baselines/reference/out-flag3(target=es2015).js @@ -0,0 +1,21 @@ +//// [tests/cases/compiler/out-flag3.ts] //// + +//// [a.ts] +class A { } + +//// [b.ts] +class B { } + + +//// [d.js] +class A { +} +class B { +} +//# sourceMappingURL=d.js.map + +//// [d.d.ts] +declare class A { +} +declare class B { +} diff --git a/tests/baselines/reference/out-flag3(target=es2015).js.map b/tests/baselines/reference/out-flag3(target=es2015).js.map new file mode 100644 index 0000000000000..e0dede53ddcb5 --- /dev/null +++ b/tests/baselines/reference/out-flag3(target=es2015).js.map @@ -0,0 +1,3 @@ +//// [d.js.map] +{"version":3,"file":"d.js","sourceRoot":"","sources":["a.ts","b.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC;CAAI;ACAX,MAAM,CAAC;CAAI"} +//// https://sokra.github.io/source-map-visualization#base64,Y2xhc3MgQSB7DQp9DQpjbGFzcyBCIHsNCn0NCi8vIyBzb3VyY2VNYXBwaW5nVVJMPWQuanMubWFw,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImEudHMiLCJiLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE1BQU0sQ0FBQztDQUFJO0FDQVgsTUFBTSxDQUFDO0NBQUkifQ==,Y2xhc3MgQSB7IH0K,Y2xhc3MgQiB7IH0K diff --git a/tests/baselines/reference/out-flag3(target=es2015).sourcemap.txt b/tests/baselines/reference/out-flag3(target=es2015).sourcemap.txt new file mode 100644 index 0000000000000..6f87802f9892d --- /dev/null +++ b/tests/baselines/reference/out-flag3(target=es2015).sourcemap.txt @@ -0,0 +1,49 @@ +=================================================================== +JsFile: d.js +mapUrl: d.js.map +sourceRoot: +sources: a.ts,b.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:d.js +sourceFile:a.ts +------------------------------------------------------------------- +>>>class A { +1 > +2 >^^^^^^ +3 > ^ +1 > +2 >class +3 > A +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 7) Source(1, 7) + SourceIndex(0) +3 >Emitted(1, 8) Source(1, 8) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^-> +1 > { } +1 >Emitted(2, 2) Source(1, 12) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:d.js +sourceFile:b.ts +------------------------------------------------------------------- +>>>class B { +1-> +2 >^^^^^^ +3 > ^ +1-> +2 >class +3 > B +1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 7) Source(1, 7) + SourceIndex(1) +3 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > { } +1 >Emitted(4, 2) Source(1, 12) + SourceIndex(1) +--- +>>>//# sourceMappingURL=d.js.map \ No newline at end of file diff --git a/tests/baselines/reference/out-flag3.symbols b/tests/baselines/reference/out-flag3(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/out-flag3.symbols rename to tests/baselines/reference/out-flag3(target=es2015).symbols diff --git a/tests/baselines/reference/out-flag3.types b/tests/baselines/reference/out-flag3(target=es2015).types similarity index 100% rename from tests/baselines/reference/out-flag3.types rename to tests/baselines/reference/out-flag3(target=es2015).types diff --git a/tests/baselines/reference/out-flag3(target=es5).errors.txt b/tests/baselines/reference/out-flag3(target=es5).errors.txt new file mode 100644 index 0000000000000..0bfe608ab46cc --- /dev/null +++ b/tests/baselines/reference/out-flag3(target=es5).errors.txt @@ -0,0 +1,12 @@ +error TS5101: Option 'outFile' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. + + +!!! error TS5101: Option 'outFile' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +==== a.ts (0 errors) ==== + class A { } + +==== b.ts (0 errors) ==== + class B { } + \ No newline at end of file diff --git a/tests/baselines/reference/out-flag3.js b/tests/baselines/reference/out-flag3(target=es5).js similarity index 100% rename from tests/baselines/reference/out-flag3.js rename to tests/baselines/reference/out-flag3(target=es5).js diff --git a/tests/baselines/reference/out-flag3.js.map b/tests/baselines/reference/out-flag3(target=es5).js.map similarity index 100% rename from tests/baselines/reference/out-flag3.js.map rename to tests/baselines/reference/out-flag3(target=es5).js.map diff --git a/tests/baselines/reference/out-flag3.sourcemap.txt b/tests/baselines/reference/out-flag3(target=es5).sourcemap.txt similarity index 100% rename from tests/baselines/reference/out-flag3.sourcemap.txt rename to tests/baselines/reference/out-flag3(target=es5).sourcemap.txt diff --git a/tests/baselines/reference/out-flag3(target=es5).symbols b/tests/baselines/reference/out-flag3(target=es5).symbols new file mode 100644 index 0000000000000..4a70037a376e6 --- /dev/null +++ b/tests/baselines/reference/out-flag3(target=es5).symbols @@ -0,0 +1,10 @@ +//// [tests/cases/compiler/out-flag3.ts] //// + +=== a.ts === +class A { } +>A : Symbol(A, Decl(a.ts, 0, 0)) + +=== b.ts === +class B { } +>B : Symbol(B, Decl(b.ts, 0, 0)) + diff --git a/tests/baselines/reference/out-flag3(target=es5).types b/tests/baselines/reference/out-flag3(target=es5).types new file mode 100644 index 0000000000000..6c469a3f1c2bf --- /dev/null +++ b/tests/baselines/reference/out-flag3(target=es5).types @@ -0,0 +1,12 @@ +//// [tests/cases/compiler/out-flag3.ts] //// + +=== a.ts === +class A { } +>A : A +> : ^ + +=== b.ts === +class B { } +>B : B +> : ^ + diff --git a/tests/baselines/reference/outModuleConcatAmd.errors.txt b/tests/baselines/reference/outModuleConcatAmd(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/outModuleConcatAmd.errors.txt rename to tests/baselines/reference/outModuleConcatAmd(target=es2015).errors.txt diff --git a/tests/baselines/reference/outModuleConcatAmd(target=es2015).js b/tests/baselines/reference/outModuleConcatAmd(target=es2015).js new file mode 100644 index 0000000000000..c4defa78d3170 --- /dev/null +++ b/tests/baselines/reference/outModuleConcatAmd(target=es2015).js @@ -0,0 +1,38 @@ +//// [tests/cases/compiler/outModuleConcatAmd.ts] //// + +//// [a.ts] +export class A { } + +//// [b.ts] +import {A} from "./ref/a"; +export class B extends A { } + +//// [all.js] +define("ref/a", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.A = void 0; + class A { + } + exports.A = A; +}); +define("b", ["require", "exports", "ref/a"], function (require, exports, a_1) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.B = void 0; + class B extends a_1.A { + } + exports.B = B; +}); +//# sourceMappingURL=all.js.map + +//// [all.d.ts] +declare module "ref/a" { + export class A { + } +} +declare module "b" { + import { A } from "ref/a"; + export class B extends A { + } +} diff --git a/tests/baselines/reference/outModuleConcatAmd(target=es2015).js.map b/tests/baselines/reference/outModuleConcatAmd(target=es2015).js.map new file mode 100644 index 0000000000000..80f45f6dd5322 --- /dev/null +++ b/tests/baselines/reference/outModuleConcatAmd(target=es2015).js.map @@ -0,0 +1,3 @@ +//// [all.js.map] +{"version":3,"file":"all.js","sourceRoot":"","sources":["ref/a.ts","b.ts"],"names":[],"mappings":";;;;IAAA,MAAa,CAAC;KAAI;IAAlB,cAAkB;;;;;;ICClB,MAAa,CAAE,SAAQ,KAAC;KAAI;IAA5B,cAA4B"} +//// https://sokra.github.io/source-map-visualization#base64,ZGVmaW5lKCJyZWYvYSIsIFsicmVxdWlyZSIsICJleHBvcnRzIl0sIGZ1bmN0aW9uIChyZXF1aXJlLCBleHBvcnRzKSB7DQogICAgInVzZSBzdHJpY3QiOw0KICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShleHBvcnRzLCAiX19lc01vZHVsZSIsIHsgdmFsdWU6IHRydWUgfSk7DQogICAgZXhwb3J0cy5BID0gdm9pZCAwOw0KICAgIGNsYXNzIEEgew0KICAgIH0NCiAgICBleHBvcnRzLkEgPSBBOw0KfSk7DQpkZWZpbmUoImIiLCBbInJlcXVpcmUiLCAiZXhwb3J0cyIsICJyZWYvYSJdLCBmdW5jdGlvbiAocmVxdWlyZSwgZXhwb3J0cywgYV8xKSB7DQogICAgInVzZSBzdHJpY3QiOw0KICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShleHBvcnRzLCAiX19lc01vZHVsZSIsIHsgdmFsdWU6IHRydWUgfSk7DQogICAgZXhwb3J0cy5CID0gdm9pZCAwOw0KICAgIGNsYXNzIEIgZXh0ZW5kcyBhXzEuQSB7DQogICAgfQ0KICAgIGV4cG9ydHMuQiA9IEI7DQp9KTsNCi8vIyBzb3VyY2VNYXBwaW5nVVJMPWFsbC5qcy5tYXA=,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWxsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsicmVmL2EudHMiLCJiLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7SUFBQSxNQUFhLENBQUM7S0FBSTtJQUFsQixjQUFrQjs7Ozs7O0lDQ2xCLE1BQWEsQ0FBRSxTQUFRLEtBQUM7S0FBSTtJQUE1QixjQUE0QiJ9,ZXhwb3J0IGNsYXNzIEEgeyB9Cg==,aW1wb3J0IHtBfSBmcm9tICIuL3JlZi9hIjsKZXhwb3J0IGNsYXNzIEIgZXh0ZW5kcyBBIHsgfQ== diff --git a/tests/baselines/reference/outModuleConcatAmd(target=es2015).sourcemap.txt b/tests/baselines/reference/outModuleConcatAmd(target=es2015).sourcemap.txt new file mode 100644 index 0000000000000..a5307849edbde --- /dev/null +++ b/tests/baselines/reference/outModuleConcatAmd(target=es2015).sourcemap.txt @@ -0,0 +1,82 @@ +=================================================================== +JsFile: all.js +mapUrl: all.js.map +sourceRoot: +sources: ref/a.ts,b.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:all.js +sourceFile:ref/a.ts +------------------------------------------------------------------- +>>>define("ref/a", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.A = void 0; +>>> class A { +1 >^^^^ +2 > ^^^^^^ +3 > ^ +1 > +2 > export class +3 > A +1 >Emitted(5, 5) Source(1, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(1, 14) + SourceIndex(0) +3 >Emitted(5, 12) Source(1, 15) + SourceIndex(0) +--- +>>> } +1 >^^^^^ +2 > ^^^^^^^^^^^^^^-> +1 > { } +1 >Emitted(6, 6) Source(1, 19) + SourceIndex(0) +--- +>>> exports.A = A; +1->^^^^ +2 > ^^^^^^^^^^^^^^ +1-> +2 > export class A { } +1->Emitted(7, 5) Source(1, 1) + SourceIndex(0) +2 >Emitted(7, 19) Source(1, 19) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:all.js +sourceFile:b.ts +------------------------------------------------------------------- +>>>}); +>>>define("b", ["require", "exports", "ref/a"], function (require, exports, a_1) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.B = void 0; +>>> class B extends a_1.A { +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^^^^ +5 > ^^^^^ +1 >import {A} from "./ref/a"; + > +2 > export class +3 > B +4 > extends +5 > A +1 >Emitted(13, 5) Source(2, 1) + SourceIndex(1) +2 >Emitted(13, 11) Source(2, 14) + SourceIndex(1) +3 >Emitted(13, 12) Source(2, 16) + SourceIndex(1) +4 >Emitted(13, 21) Source(2, 24) + SourceIndex(1) +5 >Emitted(13, 26) Source(2, 25) + SourceIndex(1) +--- +>>> } +1 >^^^^^ +2 > ^^^^^^^^^^^^^^-> +1 > { } +1 >Emitted(14, 6) Source(2, 29) + SourceIndex(1) +--- +>>> exports.B = B; +1->^^^^ +2 > ^^^^^^^^^^^^^^ +1-> +2 > export class B extends A { } +1->Emitted(15, 5) Source(2, 1) + SourceIndex(1) +2 >Emitted(15, 19) Source(2, 29) + SourceIndex(1) +--- +>>>}); +>>>//# sourceMappingURL=all.js.map \ No newline at end of file diff --git a/tests/baselines/reference/outModuleConcatAmd.symbols b/tests/baselines/reference/outModuleConcatAmd(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/outModuleConcatAmd.symbols rename to tests/baselines/reference/outModuleConcatAmd(target=es2015).symbols diff --git a/tests/baselines/reference/outModuleConcatAmd.types b/tests/baselines/reference/outModuleConcatAmd(target=es2015).types similarity index 100% rename from tests/baselines/reference/outModuleConcatAmd.types rename to tests/baselines/reference/outModuleConcatAmd(target=es2015).types diff --git a/tests/baselines/reference/outModuleConcatAmd(target=es5).errors.txt b/tests/baselines/reference/outModuleConcatAmd(target=es5).errors.txt new file mode 100644 index 0000000000000..30eab78f2d2ca --- /dev/null +++ b/tests/baselines/reference/outModuleConcatAmd(target=es5).errors.txt @@ -0,0 +1,12 @@ +error TS5101: Option 'outFile' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5101: Option 'outFile' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/a.ts (0 errors) ==== + export class A { } + +==== b.ts (0 errors) ==== + import {A} from "./ref/a"; + export class B extends A { } \ No newline at end of file diff --git a/tests/baselines/reference/outModuleConcatAmd.js b/tests/baselines/reference/outModuleConcatAmd(target=es5).js similarity index 100% rename from tests/baselines/reference/outModuleConcatAmd.js rename to tests/baselines/reference/outModuleConcatAmd(target=es5).js diff --git a/tests/baselines/reference/outModuleConcatAmd.js.map b/tests/baselines/reference/outModuleConcatAmd(target=es5).js.map similarity index 100% rename from tests/baselines/reference/outModuleConcatAmd.js.map rename to tests/baselines/reference/outModuleConcatAmd(target=es5).js.map diff --git a/tests/baselines/reference/outModuleConcatAmd.sourcemap.txt b/tests/baselines/reference/outModuleConcatAmd(target=es5).sourcemap.txt similarity index 100% rename from tests/baselines/reference/outModuleConcatAmd.sourcemap.txt rename to tests/baselines/reference/outModuleConcatAmd(target=es5).sourcemap.txt diff --git a/tests/baselines/reference/outModuleConcatAmd(target=es5).symbols b/tests/baselines/reference/outModuleConcatAmd(target=es5).symbols new file mode 100644 index 0000000000000..1a33acd3d9c97 --- /dev/null +++ b/tests/baselines/reference/outModuleConcatAmd(target=es5).symbols @@ -0,0 +1,14 @@ +//// [tests/cases/compiler/outModuleConcatAmd.ts] //// + +=== ref/a.ts === +export class A { } +>A : Symbol(A, Decl(a.ts, 0, 0)) + +=== b.ts === +import {A} from "./ref/a"; +>A : Symbol(A, Decl(b.ts, 0, 8)) + +export class B extends A { } +>B : Symbol(B, Decl(b.ts, 0, 26)) +>A : Symbol(A, Decl(b.ts, 0, 8)) + diff --git a/tests/baselines/reference/outModuleConcatAmd(target=es5).types b/tests/baselines/reference/outModuleConcatAmd(target=es5).types new file mode 100644 index 0000000000000..7a7d859eb462a --- /dev/null +++ b/tests/baselines/reference/outModuleConcatAmd(target=es5).types @@ -0,0 +1,18 @@ +//// [tests/cases/compiler/outModuleConcatAmd.ts] //// + +=== ref/a.ts === +export class A { } +>A : A +> : ^ + +=== b.ts === +import {A} from "./ref/a"; +>A : typeof A +> : ^^^^^^^^ + +export class B extends A { } +>B : B +> : ^ +>A : A +> : ^ + diff --git a/tests/baselines/reference/outModuleConcatCommonjs.errors.txt b/tests/baselines/reference/outModuleConcatCommonjs(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/outModuleConcatCommonjs.errors.txt rename to tests/baselines/reference/outModuleConcatCommonjs(target=es2015).errors.txt diff --git a/tests/baselines/reference/outModuleConcatCommonjs.symbols b/tests/baselines/reference/outModuleConcatCommonjs(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/outModuleConcatCommonjs.symbols rename to tests/baselines/reference/outModuleConcatCommonjs(target=es2015).symbols diff --git a/tests/baselines/reference/outModuleConcatCommonjs.types b/tests/baselines/reference/outModuleConcatCommonjs(target=es2015).types similarity index 100% rename from tests/baselines/reference/outModuleConcatCommonjs.types rename to tests/baselines/reference/outModuleConcatCommonjs(target=es2015).types diff --git a/tests/baselines/reference/outModuleConcatCommonjs(target=es5).errors.txt b/tests/baselines/reference/outModuleConcatCommonjs(target=es5).errors.txt new file mode 100644 index 0000000000000..3aafc61deaea9 --- /dev/null +++ b/tests/baselines/reference/outModuleConcatCommonjs(target=es5).errors.txt @@ -0,0 +1,13 @@ +error TS5101: Option 'outFile' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. + + +!!! error TS5101: Option 'outFile' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +==== ref/a.ts (0 errors) ==== + export class A { } + +==== b.ts (0 errors) ==== + import {A} from "./ref/a"; + export class B extends A { } + \ No newline at end of file diff --git a/tests/baselines/reference/outModuleConcatCommonjs(target=es5).symbols b/tests/baselines/reference/outModuleConcatCommonjs(target=es5).symbols new file mode 100644 index 0000000000000..a79dd18231f02 --- /dev/null +++ b/tests/baselines/reference/outModuleConcatCommonjs(target=es5).symbols @@ -0,0 +1,14 @@ +//// [tests/cases/compiler/outModuleConcatCommonjs.ts] //// + +=== ref/a.ts === +export class A { } +>A : Symbol(A, Decl(a.ts, 0, 0)) + +=== b.ts === +import {A} from "./ref/a"; +>A : Symbol(A, Decl(b.ts, 0, 8)) + +export class B extends A { } +>B : Symbol(B, Decl(b.ts, 0, 26)) +>A : Symbol(A, Decl(b.ts, 0, 8)) + diff --git a/tests/baselines/reference/outModuleConcatCommonjs(target=es5).types b/tests/baselines/reference/outModuleConcatCommonjs(target=es5).types new file mode 100644 index 0000000000000..d80e2d599689f --- /dev/null +++ b/tests/baselines/reference/outModuleConcatCommonjs(target=es5).types @@ -0,0 +1,18 @@ +//// [tests/cases/compiler/outModuleConcatCommonjs.ts] //// + +=== ref/a.ts === +export class A { } +>A : A +> : ^ + +=== b.ts === +import {A} from "./ref/a"; +>A : typeof A +> : ^^^^^^^^ + +export class B extends A { } +>B : B +> : ^ +>A : A +> : ^ + diff --git a/tests/baselines/reference/outModuleConcatCommonjsDeclarationOnly.errors.txt b/tests/baselines/reference/outModuleConcatCommonjsDeclarationOnly(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/outModuleConcatCommonjsDeclarationOnly.errors.txt rename to tests/baselines/reference/outModuleConcatCommonjsDeclarationOnly(target=es2015).errors.txt diff --git a/tests/baselines/reference/outModuleConcatCommonjsDeclarationOnly.js b/tests/baselines/reference/outModuleConcatCommonjsDeclarationOnly(target=es2015).js similarity index 100% rename from tests/baselines/reference/outModuleConcatCommonjsDeclarationOnly.js rename to tests/baselines/reference/outModuleConcatCommonjsDeclarationOnly(target=es2015).js diff --git a/tests/baselines/reference/outModuleConcatCommonjsDeclarationOnly.symbols b/tests/baselines/reference/outModuleConcatCommonjsDeclarationOnly(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/outModuleConcatCommonjsDeclarationOnly.symbols rename to tests/baselines/reference/outModuleConcatCommonjsDeclarationOnly(target=es2015).symbols diff --git a/tests/baselines/reference/outModuleConcatCommonjsDeclarationOnly.types b/tests/baselines/reference/outModuleConcatCommonjsDeclarationOnly(target=es2015).types similarity index 100% rename from tests/baselines/reference/outModuleConcatCommonjsDeclarationOnly.types rename to tests/baselines/reference/outModuleConcatCommonjsDeclarationOnly(target=es2015).types diff --git a/tests/baselines/reference/outModuleConcatCommonjsDeclarationOnly(target=es5).errors.txt b/tests/baselines/reference/outModuleConcatCommonjsDeclarationOnly(target=es5).errors.txt new file mode 100644 index 0000000000000..d9377e42f4d43 --- /dev/null +++ b/tests/baselines/reference/outModuleConcatCommonjsDeclarationOnly(target=es5).errors.txt @@ -0,0 +1,11 @@ +error TS5101: Option 'outFile' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5101: Option 'outFile' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/a.ts (0 errors) ==== + export class A { } + +==== b.ts (0 errors) ==== + import {A} from "./ref/a"; + export class B extends A { } + \ No newline at end of file diff --git a/tests/baselines/reference/outModuleConcatCommonjsDeclarationOnly(target=es5).js b/tests/baselines/reference/outModuleConcatCommonjsDeclarationOnly(target=es5).js new file mode 100644 index 0000000000000..dccf40461dcac --- /dev/null +++ b/tests/baselines/reference/outModuleConcatCommonjsDeclarationOnly(target=es5).js @@ -0,0 +1,22 @@ +//// [tests/cases/compiler/outModuleConcatCommonjsDeclarationOnly.ts] //// + +//// [a.ts] +export class A { } + +//// [b.ts] +import {A} from "./ref/a"; +export class B extends A { } + + + + +//// [all.d.ts] +declare module "ref/a" { + export class A { + } +} +declare module "b" { + import { A } from "ref/a"; + export class B extends A { + } +} diff --git a/tests/baselines/reference/outModuleConcatCommonjsDeclarationOnly(target=es5).symbols b/tests/baselines/reference/outModuleConcatCommonjsDeclarationOnly(target=es5).symbols new file mode 100644 index 0000000000000..e352a0e06ac84 --- /dev/null +++ b/tests/baselines/reference/outModuleConcatCommonjsDeclarationOnly(target=es5).symbols @@ -0,0 +1,14 @@ +//// [tests/cases/compiler/outModuleConcatCommonjsDeclarationOnly.ts] //// + +=== ref/a.ts === +export class A { } +>A : Symbol(A, Decl(a.ts, 0, 0)) + +=== b.ts === +import {A} from "./ref/a"; +>A : Symbol(A, Decl(b.ts, 0, 8)) + +export class B extends A { } +>B : Symbol(B, Decl(b.ts, 0, 26)) +>A : Symbol(A, Decl(b.ts, 0, 8)) + diff --git a/tests/baselines/reference/outModuleConcatCommonjsDeclarationOnly(target=es5).types b/tests/baselines/reference/outModuleConcatCommonjsDeclarationOnly(target=es5).types new file mode 100644 index 0000000000000..430cffe7b0bb3 --- /dev/null +++ b/tests/baselines/reference/outModuleConcatCommonjsDeclarationOnly(target=es5).types @@ -0,0 +1,18 @@ +//// [tests/cases/compiler/outModuleConcatCommonjsDeclarationOnly.ts] //// + +=== ref/a.ts === +export class A { } +>A : A +> : ^ + +=== b.ts === +import {A} from "./ref/a"; +>A : typeof A +> : ^^^^^^^^ + +export class B extends A { } +>B : B +> : ^ +>A : A +> : ^ + diff --git a/tests/baselines/reference/outModuleConcatSystem.errors.txt b/tests/baselines/reference/outModuleConcatSystem(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/outModuleConcatSystem.errors.txt rename to tests/baselines/reference/outModuleConcatSystem(target=es2015).errors.txt diff --git a/tests/baselines/reference/outModuleConcatSystem(target=es2015).js b/tests/baselines/reference/outModuleConcatSystem(target=es2015).js new file mode 100644 index 0000000000000..a2443e6555cce --- /dev/null +++ b/tests/baselines/reference/outModuleConcatSystem(target=es2015).js @@ -0,0 +1,52 @@ +//// [tests/cases/compiler/outModuleConcatSystem.ts] //// + +//// [a.ts] +export class A { } + +//// [b.ts] +import {A} from "./ref/a"; +export class B extends A { } + +//// [all.js] +System.register("ref/a", [], function (exports_1, context_1) { + "use strict"; + var A; + var __moduleName = context_1 && context_1.id; + return { + setters: [], + execute: function () { + A = class A { + }; + exports_1("A", A); + } + }; +}); +System.register("b", ["ref/a"], function (exports_2, context_2) { + "use strict"; + var a_1, B; + var __moduleName = context_2 && context_2.id; + return { + setters: [ + function (a_1_1) { + a_1 = a_1_1; + } + ], + execute: function () { + B = class B extends a_1.A { + }; + exports_2("B", B); + } + }; +}); +//# sourceMappingURL=all.js.map + +//// [all.d.ts] +declare module "ref/a" { + export class A { + } +} +declare module "b" { + import { A } from "ref/a"; + export class B extends A { + } +} diff --git a/tests/baselines/reference/outModuleConcatSystem(target=es2015).js.map b/tests/baselines/reference/outModuleConcatSystem(target=es2015).js.map new file mode 100644 index 0000000000000..eedd2e25c802b --- /dev/null +++ b/tests/baselines/reference/outModuleConcatSystem(target=es2015).js.map @@ -0,0 +1,3 @@ +//// [all.js.map] +{"version":3,"file":"all.js","sourceRoot":"","sources":["ref/a.ts","b.ts"],"names":[],"mappings":";;;;;;;YAAA,IAAA,MAAa,CAAC;aAAI,CAAA;;QAClB,CAAC;;;;;;;;;;;;;;YCAD,IAAA,MAAa,CAAE,SAAQ,KAAC;aAAI,CAAA;;QAAA,CAAC"} +//// https://sokra.github.io/source-map-visualization#base64,U3lzdGVtLnJlZ2lzdGVyKCJyZWYvYSIsIFtdLCBmdW5jdGlvbiAoZXhwb3J0c18xLCBjb250ZXh0XzEpIHsNCiAgICAidXNlIHN0cmljdCI7DQogICAgdmFyIEE7DQogICAgdmFyIF9fbW9kdWxlTmFtZSA9IGNvbnRleHRfMSAmJiBjb250ZXh0XzEuaWQ7DQogICAgcmV0dXJuIHsNCiAgICAgICAgc2V0dGVyczogW10sDQogICAgICAgIGV4ZWN1dGU6IGZ1bmN0aW9uICgpIHsNCiAgICAgICAgICAgIEEgPSBjbGFzcyBBIHsNCiAgICAgICAgICAgIH07DQogICAgICAgICAgICBleHBvcnRzXzEoIkEiLCBBKTsNCiAgICAgICAgfQ0KICAgIH07DQp9KTsNClN5c3RlbS5yZWdpc3RlcigiYiIsIFsicmVmL2EiXSwgZnVuY3Rpb24gKGV4cG9ydHNfMiwgY29udGV4dF8yKSB7DQogICAgInVzZSBzdHJpY3QiOw0KICAgIHZhciBhXzEsIEI7DQogICAgdmFyIF9fbW9kdWxlTmFtZSA9IGNvbnRleHRfMiAmJiBjb250ZXh0XzIuaWQ7DQogICAgcmV0dXJuIHsNCiAgICAgICAgc2V0dGVyczogWw0KICAgICAgICAgICAgZnVuY3Rpb24gKGFfMV8xKSB7DQogICAgICAgICAgICAgICAgYV8xID0gYV8xXzE7DQogICAgICAgICAgICB9DQogICAgICAgIF0sDQogICAgICAgIGV4ZWN1dGU6IGZ1bmN0aW9uICgpIHsNCiAgICAgICAgICAgIEIgPSBjbGFzcyBCIGV4dGVuZHMgYV8xLkEgew0KICAgICAgICAgICAgfTsNCiAgICAgICAgICAgIGV4cG9ydHNfMigiQiIsIEIpOw0KICAgICAgICB9DQogICAgfTsNCn0pOw0KLy8jIHNvdXJjZU1hcHBpbmdVUkw9YWxsLmpzLm1hcA==,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWxsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsicmVmL2EudHMiLCJiLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7WUFBQSxJQUFBLE1BQWEsQ0FBQzthQUFJLENBQUE7O1FBQ2xCLENBQUM7Ozs7Ozs7Ozs7Ozs7O1lDQUQsSUFBQSxNQUFhLENBQUUsU0FBUSxLQUFDO2FBQUksQ0FBQTs7UUFBQSxDQUFDIn0=,ZXhwb3J0IGNsYXNzIEEgeyB9Cg==,aW1wb3J0IHtBfSBmcm9tICIuL3JlZi9hIjsKZXhwb3J0IGNsYXNzIEIgZXh0ZW5kcyBBIHsgfQ== diff --git a/tests/baselines/reference/outModuleConcatSystem(target=es2015).sourcemap.txt b/tests/baselines/reference/outModuleConcatSystem(target=es2015).sourcemap.txt new file mode 100644 index 0000000000000..7fe9974615542 --- /dev/null +++ b/tests/baselines/reference/outModuleConcatSystem(target=es2015).sourcemap.txt @@ -0,0 +1,109 @@ +=================================================================== +JsFile: all.js +mapUrl: all.js.map +sourceRoot: +sources: ref/a.ts,b.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:all.js +sourceFile:ref/a.ts +------------------------------------------------------------------- +>>>System.register("ref/a", [], function (exports_1, context_1) { +>>> "use strict"; +>>> var A; +>>> var __moduleName = context_1 && context_1.id; +>>> return { +>>> setters: [], +>>> execute: function () { +>>> A = class A { +1 >^^^^^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^ +4 > ^ +1 > +2 > +3 > export class +4 > A +1 >Emitted(8, 13) Source(1, 1) + SourceIndex(0) +2 >Emitted(8, 17) Source(1, 1) + SourceIndex(0) +3 >Emitted(8, 23) Source(1, 14) + SourceIndex(0) +4 >Emitted(8, 24) Source(1, 15) + SourceIndex(0) +--- +>>> }; +1 >^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1 > { } +2 > +1 >Emitted(9, 14) Source(1, 19) + SourceIndex(0) +2 >Emitted(9, 15) Source(1, 19) + SourceIndex(0) +--- +>>> exports_1("A", A); +>>> } +1->^^^^^^^^ +2 > ^ +1-> + > +2 > +1->Emitted(11, 9) Source(2, 1) + SourceIndex(0) +2 >Emitted(11, 10) Source(2, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:all.js +sourceFile:b.ts +------------------------------------------------------------------- +>>> }; +>>>}); +>>>System.register("b", ["ref/a"], function (exports_2, context_2) { +>>> "use strict"; +>>> var a_1, B; +>>> var __moduleName = context_2 && context_2.id; +>>> return { +>>> setters: [ +>>> function (a_1_1) { +>>> a_1 = a_1_1; +>>> } +>>> ], +>>> execute: function () { +>>> B = class B extends a_1.A { +1 >^^^^^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^ +6 > ^^^^^ +1 >import {A} from "./ref/a"; + > +2 > +3 > export class +4 > B +5 > extends +6 > A +1 >Emitted(25, 13) Source(2, 1) + SourceIndex(1) +2 >Emitted(25, 17) Source(2, 1) + SourceIndex(1) +3 >Emitted(25, 23) Source(2, 14) + SourceIndex(1) +4 >Emitted(25, 24) Source(2, 16) + SourceIndex(1) +5 >Emitted(25, 33) Source(2, 24) + SourceIndex(1) +6 >Emitted(25, 38) Source(2, 25) + SourceIndex(1) +--- +>>> }; +1 >^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1 > { } +2 > +1 >Emitted(26, 14) Source(2, 29) + SourceIndex(1) +2 >Emitted(26, 15) Source(2, 29) + SourceIndex(1) +--- +>>> exports_2("B", B); +>>> } +1->^^^^^^^^ +2 > ^ +1-> +2 > +1->Emitted(28, 9) Source(2, 29) + SourceIndex(1) +2 >Emitted(28, 10) Source(2, 30) + SourceIndex(1) +--- +>>> }; +>>>}); +>>>//# sourceMappingURL=all.js.map \ No newline at end of file diff --git a/tests/baselines/reference/outModuleConcatSystem.symbols b/tests/baselines/reference/outModuleConcatSystem(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/outModuleConcatSystem.symbols rename to tests/baselines/reference/outModuleConcatSystem(target=es2015).symbols diff --git a/tests/baselines/reference/outModuleConcatSystem.types b/tests/baselines/reference/outModuleConcatSystem(target=es2015).types similarity index 100% rename from tests/baselines/reference/outModuleConcatSystem.types rename to tests/baselines/reference/outModuleConcatSystem(target=es2015).types diff --git a/tests/baselines/reference/outModuleConcatSystem(target=es5).errors.txt b/tests/baselines/reference/outModuleConcatSystem(target=es5).errors.txt new file mode 100644 index 0000000000000..dd3172aee8fa9 --- /dev/null +++ b/tests/baselines/reference/outModuleConcatSystem(target=es5).errors.txt @@ -0,0 +1,12 @@ +error TS5101: Option 'outFile' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5101: Option 'outFile' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/a.ts (0 errors) ==== + export class A { } + +==== b.ts (0 errors) ==== + import {A} from "./ref/a"; + export class B extends A { } \ No newline at end of file diff --git a/tests/baselines/reference/outModuleConcatSystem.js b/tests/baselines/reference/outModuleConcatSystem(target=es5).js similarity index 100% rename from tests/baselines/reference/outModuleConcatSystem.js rename to tests/baselines/reference/outModuleConcatSystem(target=es5).js diff --git a/tests/baselines/reference/outModuleConcatSystem.js.map b/tests/baselines/reference/outModuleConcatSystem(target=es5).js.map similarity index 100% rename from tests/baselines/reference/outModuleConcatSystem.js.map rename to tests/baselines/reference/outModuleConcatSystem(target=es5).js.map diff --git a/tests/baselines/reference/outModuleConcatSystem.sourcemap.txt b/tests/baselines/reference/outModuleConcatSystem(target=es5).sourcemap.txt similarity index 100% rename from tests/baselines/reference/outModuleConcatSystem.sourcemap.txt rename to tests/baselines/reference/outModuleConcatSystem(target=es5).sourcemap.txt diff --git a/tests/baselines/reference/outModuleConcatSystem(target=es5).symbols b/tests/baselines/reference/outModuleConcatSystem(target=es5).symbols new file mode 100644 index 0000000000000..1923c74c2279e --- /dev/null +++ b/tests/baselines/reference/outModuleConcatSystem(target=es5).symbols @@ -0,0 +1,14 @@ +//// [tests/cases/compiler/outModuleConcatSystem.ts] //// + +=== ref/a.ts === +export class A { } +>A : Symbol(A, Decl(a.ts, 0, 0)) + +=== b.ts === +import {A} from "./ref/a"; +>A : Symbol(A, Decl(b.ts, 0, 8)) + +export class B extends A { } +>B : Symbol(B, Decl(b.ts, 0, 26)) +>A : Symbol(A, Decl(b.ts, 0, 8)) + diff --git a/tests/baselines/reference/outModuleConcatSystem(target=es5).types b/tests/baselines/reference/outModuleConcatSystem(target=es5).types new file mode 100644 index 0000000000000..859f5ba7364ee --- /dev/null +++ b/tests/baselines/reference/outModuleConcatSystem(target=es5).types @@ -0,0 +1,18 @@ +//// [tests/cases/compiler/outModuleConcatSystem.ts] //// + +=== ref/a.ts === +export class A { } +>A : A +> : ^ + +=== b.ts === +import {A} from "./ref/a"; +>A : typeof A +> : ^^^^^^^^ + +export class B extends A { } +>B : B +> : ^ +>A : A +> : ^ + diff --git a/tests/baselines/reference/outModuleConcatUmd.errors.txt b/tests/baselines/reference/outModuleConcatUmd(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/outModuleConcatUmd.errors.txt rename to tests/baselines/reference/outModuleConcatUmd(target=es2015).errors.txt diff --git a/tests/baselines/reference/outModuleConcatUmd.symbols b/tests/baselines/reference/outModuleConcatUmd(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/outModuleConcatUmd.symbols rename to tests/baselines/reference/outModuleConcatUmd(target=es2015).symbols diff --git a/tests/baselines/reference/outModuleConcatUmd.types b/tests/baselines/reference/outModuleConcatUmd(target=es2015).types similarity index 100% rename from tests/baselines/reference/outModuleConcatUmd.types rename to tests/baselines/reference/outModuleConcatUmd(target=es2015).types diff --git a/tests/baselines/reference/outModuleConcatUmd(target=es5).errors.txt b/tests/baselines/reference/outModuleConcatUmd(target=es5).errors.txt new file mode 100644 index 0000000000000..d7af8b0ddf54e --- /dev/null +++ b/tests/baselines/reference/outModuleConcatUmd(target=es5).errors.txt @@ -0,0 +1,14 @@ +error TS5101: Option 'outFile' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. + + +!!! error TS5101: Option 'outFile' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'module=UMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile. +==== ref/a.ts (0 errors) ==== + export class A { } + +==== b.ts (0 errors) ==== + import {A} from "./ref/a"; + export class B extends A { } \ No newline at end of file diff --git a/tests/baselines/reference/outModuleConcatUmd(target=es5).symbols b/tests/baselines/reference/outModuleConcatUmd(target=es5).symbols new file mode 100644 index 0000000000000..f9b8fc6f3e75e --- /dev/null +++ b/tests/baselines/reference/outModuleConcatUmd(target=es5).symbols @@ -0,0 +1,14 @@ +//// [tests/cases/compiler/outModuleConcatUmd.ts] //// + +=== ref/a.ts === +export class A { } +>A : Symbol(A, Decl(a.ts, 0, 0)) + +=== b.ts === +import {A} from "./ref/a"; +>A : Symbol(A, Decl(b.ts, 0, 8)) + +export class B extends A { } +>B : Symbol(B, Decl(b.ts, 0, 26)) +>A : Symbol(A, Decl(b.ts, 0, 8)) + diff --git a/tests/baselines/reference/outModuleConcatUmd(target=es5).types b/tests/baselines/reference/outModuleConcatUmd(target=es5).types new file mode 100644 index 0000000000000..dc343d1420bde --- /dev/null +++ b/tests/baselines/reference/outModuleConcatUmd(target=es5).types @@ -0,0 +1,18 @@ +//// [tests/cases/compiler/outModuleConcatUmd.ts] //// + +=== ref/a.ts === +export class A { } +>A : A +> : ^ + +=== b.ts === +import {A} from "./ref/a"; +>A : typeof A +> : ^^^^^^^^ + +export class B extends A { } +>B : B +> : ^ +>A : A +> : ^ + diff --git a/tests/baselines/reference/outModuleConcatUnspecifiedModuleKind.errors.txt b/tests/baselines/reference/outModuleConcatUnspecifiedModuleKind(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/outModuleConcatUnspecifiedModuleKind.errors.txt rename to tests/baselines/reference/outModuleConcatUnspecifiedModuleKind(target=es2015).errors.txt diff --git a/tests/baselines/reference/outModuleConcatUnspecifiedModuleKind.js b/tests/baselines/reference/outModuleConcatUnspecifiedModuleKind(target=es2015).js similarity index 100% rename from tests/baselines/reference/outModuleConcatUnspecifiedModuleKind.js rename to tests/baselines/reference/outModuleConcatUnspecifiedModuleKind(target=es2015).js diff --git a/tests/baselines/reference/outModuleConcatUnspecifiedModuleKind.symbols b/tests/baselines/reference/outModuleConcatUnspecifiedModuleKind(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/outModuleConcatUnspecifiedModuleKind.symbols rename to tests/baselines/reference/outModuleConcatUnspecifiedModuleKind(target=es2015).symbols diff --git a/tests/baselines/reference/outModuleConcatUnspecifiedModuleKind.types b/tests/baselines/reference/outModuleConcatUnspecifiedModuleKind(target=es2015).types similarity index 100% rename from tests/baselines/reference/outModuleConcatUnspecifiedModuleKind.types rename to tests/baselines/reference/outModuleConcatUnspecifiedModuleKind(target=es2015).types diff --git a/tests/baselines/reference/outModuleConcatUnspecifiedModuleKind(target=es5).errors.txt b/tests/baselines/reference/outModuleConcatUnspecifiedModuleKind(target=es5).errors.txt new file mode 100644 index 0000000000000..cf248dbdb0ee3 --- /dev/null +++ b/tests/baselines/reference/outModuleConcatUnspecifiedModuleKind(target=es5).errors.txt @@ -0,0 +1,12 @@ +error TS5101: Option 'outFile' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +a.ts(1,14): error TS6131: Cannot compile modules using option 'outFile' unless the '--module' flag is 'amd' or 'system'. + + +!!! error TS5101: Option 'outFile' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== a.ts (1 errors) ==== + export class A { } // module + ~ +!!! error TS6131: Cannot compile modules using option 'outFile' unless the '--module' flag is 'amd' or 'system'. + +==== b.ts (0 errors) ==== + var x = 0; // global \ No newline at end of file diff --git a/tests/baselines/reference/outModuleConcatUnspecifiedModuleKind(target=es5).js b/tests/baselines/reference/outModuleConcatUnspecifiedModuleKind(target=es5).js new file mode 100644 index 0000000000000..a705539797a50 --- /dev/null +++ b/tests/baselines/reference/outModuleConcatUnspecifiedModuleKind(target=es5).js @@ -0,0 +1,10 @@ +//// [tests/cases/compiler/outModuleConcatUnspecifiedModuleKind.ts] //// + +//// [a.ts] +export class A { } // module + +//// [b.ts] +var x = 0; // global + +//// [out.js] +var x = 0; // global diff --git a/tests/baselines/reference/outModuleConcatUnspecifiedModuleKind(target=es5).symbols b/tests/baselines/reference/outModuleConcatUnspecifiedModuleKind(target=es5).symbols new file mode 100644 index 0000000000000..857c186146fe8 --- /dev/null +++ b/tests/baselines/reference/outModuleConcatUnspecifiedModuleKind(target=es5).symbols @@ -0,0 +1,10 @@ +//// [tests/cases/compiler/outModuleConcatUnspecifiedModuleKind.ts] //// + +=== a.ts === +export class A { } // module +>A : Symbol(A, Decl(a.ts, 0, 0)) + +=== b.ts === +var x = 0; // global +>x : Symbol(x, Decl(b.ts, 0, 3)) + diff --git a/tests/baselines/reference/outModuleConcatUnspecifiedModuleKind(target=es5).types b/tests/baselines/reference/outModuleConcatUnspecifiedModuleKind(target=es5).types new file mode 100644 index 0000000000000..5e8f18e2fdfcb --- /dev/null +++ b/tests/baselines/reference/outModuleConcatUnspecifiedModuleKind(target=es5).types @@ -0,0 +1,14 @@ +//// [tests/cases/compiler/outModuleConcatUnspecifiedModuleKind.ts] //// + +=== a.ts === +export class A { } // module +>A : A +> : ^ + +=== b.ts === +var x = 0; // global +>x : number +> : ^^^^^^ +>0 : 0 +> : ^ + diff --git a/tests/baselines/reference/outModuleConcatUnspecifiedModuleKindDeclarationOnly.errors.txt b/tests/baselines/reference/outModuleConcatUnspecifiedModuleKindDeclarationOnly(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/outModuleConcatUnspecifiedModuleKindDeclarationOnly.errors.txt rename to tests/baselines/reference/outModuleConcatUnspecifiedModuleKindDeclarationOnly(target=es2015).errors.txt diff --git a/tests/baselines/reference/outModuleConcatUnspecifiedModuleKindDeclarationOnly.symbols b/tests/baselines/reference/outModuleConcatUnspecifiedModuleKindDeclarationOnly(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/outModuleConcatUnspecifiedModuleKindDeclarationOnly.symbols rename to tests/baselines/reference/outModuleConcatUnspecifiedModuleKindDeclarationOnly(target=es2015).symbols diff --git a/tests/baselines/reference/outModuleConcatUnspecifiedModuleKindDeclarationOnly.types b/tests/baselines/reference/outModuleConcatUnspecifiedModuleKindDeclarationOnly(target=es2015).types similarity index 100% rename from tests/baselines/reference/outModuleConcatUnspecifiedModuleKindDeclarationOnly.types rename to tests/baselines/reference/outModuleConcatUnspecifiedModuleKindDeclarationOnly(target=es2015).types diff --git a/tests/baselines/reference/outModuleConcatUnspecifiedModuleKindDeclarationOnly(target=es5).errors.txt b/tests/baselines/reference/outModuleConcatUnspecifiedModuleKindDeclarationOnly(target=es5).errors.txt new file mode 100644 index 0000000000000..c9d61aef9369a --- /dev/null +++ b/tests/baselines/reference/outModuleConcatUnspecifiedModuleKindDeclarationOnly(target=es5).errors.txt @@ -0,0 +1,12 @@ +error TS5069: Option 'emitDeclarationOnly' cannot be specified without specifying option 'declaration' or option 'composite'. +error TS5101: Option 'outFile' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5069: Option 'emitDeclarationOnly' cannot be specified without specifying option 'declaration' or option 'composite'. +!!! error TS5101: Option 'outFile' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== a.ts (0 errors) ==== + export class A { } // module + +==== b.ts (0 errors) ==== + var x = 0; // global + \ No newline at end of file diff --git a/tests/baselines/reference/outModuleConcatUnspecifiedModuleKindDeclarationOnly(target=es5).symbols b/tests/baselines/reference/outModuleConcatUnspecifiedModuleKindDeclarationOnly(target=es5).symbols new file mode 100644 index 0000000000000..8e8ce431bcf0a --- /dev/null +++ b/tests/baselines/reference/outModuleConcatUnspecifiedModuleKindDeclarationOnly(target=es5).symbols @@ -0,0 +1,10 @@ +//// [tests/cases/compiler/outModuleConcatUnspecifiedModuleKindDeclarationOnly.ts] //// + +=== a.ts === +export class A { } // module +>A : Symbol(A, Decl(a.ts, 0, 0)) + +=== b.ts === +var x = 0; // global +>x : Symbol(x, Decl(b.ts, 0, 3)) + diff --git a/tests/baselines/reference/outModuleConcatUnspecifiedModuleKindDeclarationOnly(target=es5).types b/tests/baselines/reference/outModuleConcatUnspecifiedModuleKindDeclarationOnly(target=es5).types new file mode 100644 index 0000000000000..4bacd587990e3 --- /dev/null +++ b/tests/baselines/reference/outModuleConcatUnspecifiedModuleKindDeclarationOnly(target=es5).types @@ -0,0 +1,14 @@ +//// [tests/cases/compiler/outModuleConcatUnspecifiedModuleKindDeclarationOnly.ts] //// + +=== a.ts === +export class A { } // module +>A : A +> : ^ + +=== b.ts === +var x = 0; // global +>x : number +> : ^^^^^^ +>0 : 0 +> : ^ + diff --git a/tests/baselines/reference/outModuleTripleSlashRefs.errors.txt b/tests/baselines/reference/outModuleTripleSlashRefs(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/outModuleTripleSlashRefs.errors.txt rename to tests/baselines/reference/outModuleTripleSlashRefs(target=es2015).errors.txt diff --git a/tests/baselines/reference/outModuleTripleSlashRefs(target=es2015).js b/tests/baselines/reference/outModuleTripleSlashRefs(target=es2015).js new file mode 100644 index 0000000000000..5aed483f99485 --- /dev/null +++ b/tests/baselines/reference/outModuleTripleSlashRefs(target=es2015).js @@ -0,0 +1,69 @@ +//// [tests/cases/compiler/outModuleTripleSlashRefs.ts] //// + +//// [a.ts] +/// +export class A { + member: typeof GlobalFoo; +} + +//// [b.ts] +/// +class Foo { + member: Bar; +} +declare var GlobalFoo: Foo; + +//// [c.d.ts] +/// +declare class Bar { + member: Baz; +} + +//// [d.d.ts] +declare class Baz { + member: number; +} + +//// [b.ts] +import {A} from "./ref/a"; +export class B extends A { } + + +//// [all.js] +/// +class Foo { +} +define("ref/a", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.A = void 0; + /// + class A { + } + exports.A = A; +}); +define("b", ["require", "exports", "ref/a"], function (require, exports, a_1) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.B = void 0; + class B extends a_1.A { + } + exports.B = B; +}); +//# sourceMappingURL=all.js.map + +//// [all.d.ts] +declare class Foo { + member: Bar; +} +declare var GlobalFoo: Foo; +declare module "ref/a" { + export class A { + member: typeof GlobalFoo; + } +} +declare module "b" { + import { A } from "ref/a"; + export class B extends A { + } +} diff --git a/tests/baselines/reference/outModuleTripleSlashRefs(target=es2015).js.map b/tests/baselines/reference/outModuleTripleSlashRefs(target=es2015).js.map new file mode 100644 index 0000000000000..55a99a775348f --- /dev/null +++ b/tests/baselines/reference/outModuleTripleSlashRefs(target=es2015).js.map @@ -0,0 +1,3 @@ +//// [all.js.map] +{"version":3,"file":"all.js","sourceRoot":"","sources":["ref/b.ts","ref/a.ts","b.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,MAAM,GAAG;CAER;;;;;ICHD,+BAA+B;IAC/B,MAAa,CAAC;KAEb;IAFD,cAEC;;;;;;ICFD,MAAa,CAAE,SAAQ,KAAC;KAAI;IAA5B,cAA4B"} +//// https://sokra.github.io/source-map-visualization#base64,Ly8vIDxyZWZlcmVuY2UgcGF0aD0iLi9jLmQudHMiIC8+DQpjbGFzcyBGb28gew0KfQ0KZGVmaW5lKCJyZWYvYSIsIFsicmVxdWlyZSIsICJleHBvcnRzIl0sIGZ1bmN0aW9uIChyZXF1aXJlLCBleHBvcnRzKSB7DQogICAgInVzZSBzdHJpY3QiOw0KICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShleHBvcnRzLCAiX19lc01vZHVsZSIsIHsgdmFsdWU6IHRydWUgfSk7DQogICAgZXhwb3J0cy5BID0gdm9pZCAwOw0KICAgIC8vLyA8cmVmZXJlbmNlIHBhdGg9Ii4vYi50cyIgLz4NCiAgICBjbGFzcyBBIHsNCiAgICB9DQogICAgZXhwb3J0cy5BID0gQTsNCn0pOw0KZGVmaW5lKCJiIiwgWyJyZXF1aXJlIiwgImV4cG9ydHMiLCAicmVmL2EiXSwgZnVuY3Rpb24gKHJlcXVpcmUsIGV4cG9ydHMsIGFfMSkgew0KICAgICJ1c2Ugc3RyaWN0IjsNCiAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoZXhwb3J0cywgIl9fZXNNb2R1bGUiLCB7IHZhbHVlOiB0cnVlIH0pOw0KICAgIGV4cG9ydHMuQiA9IHZvaWQgMDsNCiAgICBjbGFzcyBCIGV4dGVuZHMgYV8xLkEgew0KICAgIH0NCiAgICBleHBvcnRzLkIgPSBCOw0KfSk7DQovLyMgc291cmNlTWFwcGluZ1VSTD1hbGwuanMubWFw,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWxsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsicmVmL2IudHMiLCJyZWYvYS50cyIsImIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsaUNBQWlDO0FBQ2pDLE1BQU0sR0FBRztDQUVSOzs7OztJQ0hELCtCQUErQjtJQUMvQixNQUFhLENBQUM7S0FFYjtJQUZELGNBRUM7Ozs7OztJQ0ZELE1BQWEsQ0FBRSxTQUFRLEtBQUM7S0FBSTtJQUE1QixjQUE0QiJ9,Ly8vIDxyZWZlcmVuY2UgcGF0aD0iLi9jLmQudHMiIC8+CmNsYXNzIEZvbyB7CgltZW1iZXI6IEJhcjsKfQpkZWNsYXJlIHZhciBHbG9iYWxGb286IEZvbzsK,Ly8vIDxyZWZlcmVuY2UgcGF0aD0iLi9iLnRzIiAvPgpleHBvcnQgY2xhc3MgQSB7CgltZW1iZXI6IHR5cGVvZiBHbG9iYWxGb287Cn0K,Ly8vIDxyZWZlcmVuY2UgcGF0aD0iLi9jLmQudHMiIC8+CmNsYXNzIEZvbyB7CgltZW1iZXI6IEJhcjsKfQpkZWNsYXJlIHZhciBHbG9iYWxGb286IEZvbzsK diff --git a/tests/baselines/reference/outModuleTripleSlashRefs(target=es2015).sourcemap.txt b/tests/baselines/reference/outModuleTripleSlashRefs(target=es2015).sourcemap.txt new file mode 100644 index 0000000000000..f3d15b1fa89a9 --- /dev/null +++ b/tests/baselines/reference/outModuleTripleSlashRefs(target=es2015).sourcemap.txt @@ -0,0 +1,127 @@ +=================================================================== +JsFile: all.js +mapUrl: all.js.map +sourceRoot: +sources: ref/b.ts,ref/a.ts,b.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:all.js +sourceFile:ref/b.ts +------------------------------------------------------------------- +>>>/// +1 > +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1 > +2 >/// +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>class Foo { +1 > +2 >^^^^^^ +3 > ^^^ +1 > + > +2 >class +3 > Foo +1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > { + > member: Bar; + >} +1 >Emitted(3, 2) Source(4, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:all.js +sourceFile:ref/a.ts +------------------------------------------------------------------- +>>>define("ref/a", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.A = void 0; +>>> /// +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> +2 > /// +1->Emitted(8, 5) Source(1, 1) + SourceIndex(1) +2 >Emitted(8, 36) Source(1, 32) + SourceIndex(1) +--- +>>> class A { +1 >^^^^ +2 > ^^^^^^ +3 > ^ +1 > + > +2 > export class +3 > A +1 >Emitted(9, 5) Source(2, 1) + SourceIndex(1) +2 >Emitted(9, 11) Source(2, 14) + SourceIndex(1) +3 >Emitted(9, 12) Source(2, 15) + SourceIndex(1) +--- +>>> } +1 >^^^^^ +2 > ^^^^^^^^^^^^^^-> +1 > { + > member: typeof GlobalFoo; + >} +1 >Emitted(10, 6) Source(4, 2) + SourceIndex(1) +--- +>>> exports.A = A; +1->^^^^ +2 > ^^^^^^^^^^^^^^ +1-> +2 > export class A { + > member: typeof GlobalFoo; + > } +1->Emitted(11, 5) Source(2, 1) + SourceIndex(1) +2 >Emitted(11, 19) Source(4, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:all.js +sourceFile:b.ts +------------------------------------------------------------------- +>>>}); +>>>define("b", ["require", "exports", "ref/a"], function (require, exports, a_1) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.B = void 0; +>>> class B extends a_1.A { +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^^^^ +5 > ^^^^^ +1 >import {A} from "./ref/a"; + > +2 > export class +3 > B +4 > extends +5 > A +1 >Emitted(17, 5) Source(2, 1) + SourceIndex(2) +2 >Emitted(17, 11) Source(2, 14) + SourceIndex(2) +3 >Emitted(17, 12) Source(2, 16) + SourceIndex(2) +4 >Emitted(17, 21) Source(2, 24) + SourceIndex(2) +5 >Emitted(17, 26) Source(2, 25) + SourceIndex(2) +--- +>>> } +1 >^^^^^ +2 > ^^^^^^^^^^^^^^-> +1 > { } +1 >Emitted(18, 6) Source(2, 29) + SourceIndex(2) +--- +>>> exports.B = B; +1->^^^^ +2 > ^^^^^^^^^^^^^^ +1-> +2 > export class B extends A { } +1->Emitted(19, 5) Source(2, 1) + SourceIndex(2) +2 >Emitted(19, 19) Source(2, 29) + SourceIndex(2) +--- +>>>}); +>>>//# sourceMappingURL=all.js.map \ No newline at end of file diff --git a/tests/baselines/reference/outModuleTripleSlashRefs.symbols b/tests/baselines/reference/outModuleTripleSlashRefs(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/outModuleTripleSlashRefs.symbols rename to tests/baselines/reference/outModuleTripleSlashRefs(target=es2015).symbols diff --git a/tests/baselines/reference/outModuleTripleSlashRefs.types b/tests/baselines/reference/outModuleTripleSlashRefs(target=es2015).types similarity index 100% rename from tests/baselines/reference/outModuleTripleSlashRefs.types rename to tests/baselines/reference/outModuleTripleSlashRefs(target=es2015).types diff --git a/tests/baselines/reference/outModuleTripleSlashRefs(target=es5).errors.txt b/tests/baselines/reference/outModuleTripleSlashRefs(target=es5).errors.txt new file mode 100644 index 0000000000000..21cbb79b14952 --- /dev/null +++ b/tests/baselines/reference/outModuleTripleSlashRefs(target=es5).errors.txt @@ -0,0 +1,34 @@ +error TS5101: Option 'outFile' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5101: Option 'outFile' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== ref/a.ts (0 errors) ==== + /// + export class A { + member: typeof GlobalFoo; + } + +==== ref/b.ts (0 errors) ==== + /// + class Foo { + member: Bar; + } + declare var GlobalFoo: Foo; + +==== ref/c.d.ts (0 errors) ==== + /// + declare class Bar { + member: Baz; + } + +==== ref/d.d.ts (0 errors) ==== + declare class Baz { + member: number; + } + +==== b.ts (0 errors) ==== + import {A} from "./ref/a"; + export class B extends A { } + \ No newline at end of file diff --git a/tests/baselines/reference/outModuleTripleSlashRefs.js b/tests/baselines/reference/outModuleTripleSlashRefs(target=es5).js similarity index 100% rename from tests/baselines/reference/outModuleTripleSlashRefs.js rename to tests/baselines/reference/outModuleTripleSlashRefs(target=es5).js diff --git a/tests/baselines/reference/outModuleTripleSlashRefs.js.map b/tests/baselines/reference/outModuleTripleSlashRefs(target=es5).js.map similarity index 100% rename from tests/baselines/reference/outModuleTripleSlashRefs.js.map rename to tests/baselines/reference/outModuleTripleSlashRefs(target=es5).js.map diff --git a/tests/baselines/reference/outModuleTripleSlashRefs.sourcemap.txt b/tests/baselines/reference/outModuleTripleSlashRefs(target=es5).sourcemap.txt similarity index 100% rename from tests/baselines/reference/outModuleTripleSlashRefs.sourcemap.txt rename to tests/baselines/reference/outModuleTripleSlashRefs(target=es5).sourcemap.txt diff --git a/tests/baselines/reference/outModuleTripleSlashRefs(target=es5).symbols b/tests/baselines/reference/outModuleTripleSlashRefs(target=es5).symbols new file mode 100644 index 0000000000000..f98759f0e7550 --- /dev/null +++ b/tests/baselines/reference/outModuleTripleSlashRefs(target=es5).symbols @@ -0,0 +1,51 @@ +//// [tests/cases/compiler/outModuleTripleSlashRefs.ts] //// + +=== ref/a.ts === +/// +export class A { +>A : Symbol(A, Decl(a.ts, 0, 0)) + + member: typeof GlobalFoo; +>member : Symbol(A.member, Decl(a.ts, 1, 16)) +>GlobalFoo : Symbol(GlobalFoo, Decl(b.ts, 4, 11)) +} + +=== ref/b.ts === +/// +class Foo { +>Foo : Symbol(Foo, Decl(b.ts, 0, 0)) + + member: Bar; +>member : Symbol(Foo.member, Decl(b.ts, 1, 11)) +>Bar : Symbol(Bar, Decl(c.d.ts, 0, 0)) +} +declare var GlobalFoo: Foo; +>GlobalFoo : Symbol(GlobalFoo, Decl(b.ts, 4, 11)) +>Foo : Symbol(Foo, Decl(b.ts, 0, 0)) + +=== ref/c.d.ts === +/// +declare class Bar { +>Bar : Symbol(Bar, Decl(c.d.ts, 0, 0)) + + member: Baz; +>member : Symbol(Bar.member, Decl(c.d.ts, 1, 19)) +>Baz : Symbol(Baz, Decl(d.d.ts, 0, 0)) +} + +=== ref/d.d.ts === +declare class Baz { +>Baz : Symbol(Baz, Decl(d.d.ts, 0, 0)) + + member: number; +>member : Symbol(Baz.member, Decl(d.d.ts, 0, 19)) +} + +=== b.ts === +import {A} from "./ref/a"; +>A : Symbol(A, Decl(b.ts, 0, 8)) + +export class B extends A { } +>B : Symbol(B, Decl(b.ts, 0, 26)) +>A : Symbol(A, Decl(b.ts, 0, 8)) + diff --git a/tests/baselines/reference/outModuleTripleSlashRefs(target=es5).types b/tests/baselines/reference/outModuleTripleSlashRefs(target=es5).types new file mode 100644 index 0000000000000..44b884fb2c38b --- /dev/null +++ b/tests/baselines/reference/outModuleTripleSlashRefs(target=es5).types @@ -0,0 +1,61 @@ +//// [tests/cases/compiler/outModuleTripleSlashRefs.ts] //// + +=== ref/a.ts === +/// +export class A { +>A : A +> : ^ + + member: typeof GlobalFoo; +>member : Foo +> : ^^^ +>GlobalFoo : Foo +> : ^^^ +} + +=== ref/b.ts === +/// +class Foo { +>Foo : Foo +> : ^^^ + + member: Bar; +>member : Bar +> : ^^^ +} +declare var GlobalFoo: Foo; +>GlobalFoo : Foo +> : ^^^ + +=== ref/c.d.ts === +/// +declare class Bar { +>Bar : Bar +> : ^^^ + + member: Baz; +>member : Baz +> : ^^^ +} + +=== ref/d.d.ts === +declare class Baz { +>Baz : Baz +> : ^^^ + + member: number; +>member : number +> : ^^^^^^ +} + +=== b.ts === +import {A} from "./ref/a"; +>A : typeof A +> : ^^^^^^^^ + +export class B extends A { } +>B : B +> : ^ +>A : A +> : ^ + diff --git a/tests/baselines/reference/parserAccessors1.errors.txt b/tests/baselines/reference/parserAccessors1(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/parserAccessors1.errors.txt rename to tests/baselines/reference/parserAccessors1(target=es2015).errors.txt diff --git a/tests/baselines/reference/parserAccessors1(target=es2015).js b/tests/baselines/reference/parserAccessors1(target=es2015).js new file mode 100644 index 0000000000000..6c958f863cf5e --- /dev/null +++ b/tests/baselines/reference/parserAccessors1(target=es2015).js @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors1.ts] //// + +//// [parserAccessors1.ts] +class C { + get Foo() { } +} + +//// [parserAccessors1.js] +class C { + get Foo() { } +} diff --git a/tests/baselines/reference/parserAccessors1.symbols b/tests/baselines/reference/parserAccessors1(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/parserAccessors1.symbols rename to tests/baselines/reference/parserAccessors1(target=es2015).symbols diff --git a/tests/baselines/reference/parserAccessors1.types b/tests/baselines/reference/parserAccessors1(target=es2015).types similarity index 100% rename from tests/baselines/reference/parserAccessors1.types rename to tests/baselines/reference/parserAccessors1(target=es2015).types diff --git a/tests/baselines/reference/parserAccessors1(target=es5).errors.txt b/tests/baselines/reference/parserAccessors1(target=es5).errors.txt new file mode 100644 index 0000000000000..e9e26e5ea8aef --- /dev/null +++ b/tests/baselines/reference/parserAccessors1(target=es5).errors.txt @@ -0,0 +1,9 @@ +parserAccessors1.ts(2,9): error TS2378: A 'get' accessor must return a value. + + +==== parserAccessors1.ts (1 errors) ==== + class C { + get Foo() { } + ~~~ +!!! error TS2378: A 'get' accessor must return a value. + } \ No newline at end of file diff --git a/tests/baselines/reference/parserAccessors1.js b/tests/baselines/reference/parserAccessors1(target=es5).js similarity index 100% rename from tests/baselines/reference/parserAccessors1.js rename to tests/baselines/reference/parserAccessors1(target=es5).js diff --git a/tests/baselines/reference/parserAccessors1(target=es5).symbols b/tests/baselines/reference/parserAccessors1(target=es5).symbols new file mode 100644 index 0000000000000..6185e00f09d60 --- /dev/null +++ b/tests/baselines/reference/parserAccessors1(target=es5).symbols @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors1.ts] //// + +=== parserAccessors1.ts === +class C { +>C : Symbol(C, Decl(parserAccessors1.ts, 0, 0)) + + get Foo() { } +>Foo : Symbol(C.Foo, Decl(parserAccessors1.ts, 0, 9)) +} diff --git a/tests/baselines/reference/parserAccessors1(target=es5).types b/tests/baselines/reference/parserAccessors1(target=es5).types new file mode 100644 index 0000000000000..f97186c032481 --- /dev/null +++ b/tests/baselines/reference/parserAccessors1(target=es5).types @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors1.ts] //// + +=== parserAccessors1.ts === +class C { +>C : C +> : ^ + + get Foo() { } +>Foo : void +> : ^^^^ +} diff --git a/tests/baselines/reference/parserAccessors10.errors.txt b/tests/baselines/reference/parserAccessors10(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/parserAccessors10.errors.txt rename to tests/baselines/reference/parserAccessors10(target=es2015).errors.txt diff --git a/tests/baselines/reference/parserAccessors10.js b/tests/baselines/reference/parserAccessors10(target=es2015).js similarity index 100% rename from tests/baselines/reference/parserAccessors10.js rename to tests/baselines/reference/parserAccessors10(target=es2015).js diff --git a/tests/baselines/reference/parserAccessors10.symbols b/tests/baselines/reference/parserAccessors10(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/parserAccessors10.symbols rename to tests/baselines/reference/parserAccessors10(target=es2015).symbols diff --git a/tests/baselines/reference/parserAccessors10.types b/tests/baselines/reference/parserAccessors10(target=es2015).types similarity index 100% rename from tests/baselines/reference/parserAccessors10.types rename to tests/baselines/reference/parserAccessors10(target=es2015).types diff --git a/tests/baselines/reference/parserAccessors10(target=es5).errors.txt b/tests/baselines/reference/parserAccessors10(target=es5).errors.txt new file mode 100644 index 0000000000000..30a437b023427 --- /dev/null +++ b/tests/baselines/reference/parserAccessors10(target=es5).errors.txt @@ -0,0 +1,12 @@ +parserAccessors10.ts(2,3): error TS1042: 'public' modifier cannot be used here. +parserAccessors10.ts(2,14): error TS2378: A 'get' accessor must return a value. + + +==== parserAccessors10.ts (2 errors) ==== + var v = { + public get foo() { } + ~~~~~~ +!!! error TS1042: 'public' modifier cannot be used here. + ~~~ +!!! error TS2378: A 'get' accessor must return a value. + }; \ No newline at end of file diff --git a/tests/baselines/reference/parserAccessors10(target=es5).js b/tests/baselines/reference/parserAccessors10(target=es5).js new file mode 100644 index 0000000000000..5b4f06075a78a --- /dev/null +++ b/tests/baselines/reference/parserAccessors10(target=es5).js @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors10.ts] //// + +//// [parserAccessors10.ts] +var v = { + public get foo() { } +}; + +//// [parserAccessors10.js] +var v = { + get foo() { } +}; diff --git a/tests/baselines/reference/parserAccessors10(target=es5).symbols b/tests/baselines/reference/parserAccessors10(target=es5).symbols new file mode 100644 index 0000000000000..f1abe02fb2bb8 --- /dev/null +++ b/tests/baselines/reference/parserAccessors10(target=es5).symbols @@ -0,0 +1,10 @@ +//// [tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors10.ts] //// + +=== parserAccessors10.ts === +var v = { +>v : Symbol(v, Decl(parserAccessors10.ts, 0, 3)) + + public get foo() { } +>foo : Symbol(foo, Decl(parserAccessors10.ts, 0, 9)) + +}; diff --git a/tests/baselines/reference/parserAccessors10(target=es5).types b/tests/baselines/reference/parserAccessors10(target=es5).types new file mode 100644 index 0000000000000..4d88671c964e9 --- /dev/null +++ b/tests/baselines/reference/parserAccessors10(target=es5).types @@ -0,0 +1,14 @@ +//// [tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors10.ts] //// + +=== parserAccessors10.ts === +var v = { +>v : { readonly foo: void; } +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>{ public get foo() { }} : { readonly foo: void; } +> : ^^^^^^^^^^^^^^^^^^^^^^^ + + public get foo() { } +>foo : void +> : ^^^^ + +}; diff --git a/tests/baselines/reference/parserAccessors2(target=es2015).js b/tests/baselines/reference/parserAccessors2(target=es2015).js new file mode 100644 index 0000000000000..e1dcb287d007a --- /dev/null +++ b/tests/baselines/reference/parserAccessors2(target=es2015).js @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors2.ts] //// + +//// [parserAccessors2.ts] +class C { + set Foo(a) { } +} + +//// [parserAccessors2.js] +class C { + set Foo(a) { } +} diff --git a/tests/baselines/reference/parserAccessors2.symbols b/tests/baselines/reference/parserAccessors2(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/parserAccessors2.symbols rename to tests/baselines/reference/parserAccessors2(target=es2015).symbols diff --git a/tests/baselines/reference/parserAccessors2.types b/tests/baselines/reference/parserAccessors2(target=es2015).types similarity index 100% rename from tests/baselines/reference/parserAccessors2.types rename to tests/baselines/reference/parserAccessors2(target=es2015).types diff --git a/tests/baselines/reference/parserAccessors2.js b/tests/baselines/reference/parserAccessors2(target=es5).js similarity index 100% rename from tests/baselines/reference/parserAccessors2.js rename to tests/baselines/reference/parserAccessors2(target=es5).js diff --git a/tests/baselines/reference/parserAccessors2(target=es5).symbols b/tests/baselines/reference/parserAccessors2(target=es5).symbols new file mode 100644 index 0000000000000..3e720287ae4dc --- /dev/null +++ b/tests/baselines/reference/parserAccessors2(target=es5).symbols @@ -0,0 +1,10 @@ +//// [tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors2.ts] //// + +=== parserAccessors2.ts === +class C { +>C : Symbol(C, Decl(parserAccessors2.ts, 0, 0)) + + set Foo(a) { } +>Foo : Symbol(C.Foo, Decl(parserAccessors2.ts, 0, 9)) +>a : Symbol(a, Decl(parserAccessors2.ts, 1, 12)) +} diff --git a/tests/baselines/reference/parserAccessors2(target=es5).types b/tests/baselines/reference/parserAccessors2(target=es5).types new file mode 100644 index 0000000000000..f093147e7be5c --- /dev/null +++ b/tests/baselines/reference/parserAccessors2(target=es5).types @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors2.ts] //// + +=== parserAccessors2.ts === +class C { +>C : C +> : ^ + + set Foo(a) { } +>Foo : any +>a : any +} diff --git a/tests/baselines/reference/parserAccessors3.errors.txt b/tests/baselines/reference/parserAccessors3(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/parserAccessors3.errors.txt rename to tests/baselines/reference/parserAccessors3(target=es2015).errors.txt diff --git a/tests/baselines/reference/parserAccessors3.js b/tests/baselines/reference/parserAccessors3(target=es2015).js similarity index 100% rename from tests/baselines/reference/parserAccessors3.js rename to tests/baselines/reference/parserAccessors3(target=es2015).js diff --git a/tests/baselines/reference/parserAccessors3.symbols b/tests/baselines/reference/parserAccessors3(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/parserAccessors3.symbols rename to tests/baselines/reference/parserAccessors3(target=es2015).symbols diff --git a/tests/baselines/reference/parserAccessors3.types b/tests/baselines/reference/parserAccessors3(target=es2015).types similarity index 100% rename from tests/baselines/reference/parserAccessors3.types rename to tests/baselines/reference/parserAccessors3(target=es2015).types diff --git a/tests/baselines/reference/parserAccessors3(target=es5).errors.txt b/tests/baselines/reference/parserAccessors3(target=es5).errors.txt new file mode 100644 index 0000000000000..2c04392ce58b2 --- /dev/null +++ b/tests/baselines/reference/parserAccessors3(target=es5).errors.txt @@ -0,0 +1,7 @@ +parserAccessors3.ts(1,15): error TS2378: A 'get' accessor must return a value. + + +==== parserAccessors3.ts (1 errors) ==== + var v = { get Foo() { } }; + ~~~ +!!! error TS2378: A 'get' accessor must return a value. \ No newline at end of file diff --git a/tests/baselines/reference/parserAccessors3(target=es5).js b/tests/baselines/reference/parserAccessors3(target=es5).js new file mode 100644 index 0000000000000..940cc45cd950d --- /dev/null +++ b/tests/baselines/reference/parserAccessors3(target=es5).js @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors3.ts] //// + +//// [parserAccessors3.ts] +var v = { get Foo() { } }; + +//// [parserAccessors3.js] +var v = { get Foo() { } }; diff --git a/tests/baselines/reference/parserAccessors3(target=es5).symbols b/tests/baselines/reference/parserAccessors3(target=es5).symbols new file mode 100644 index 0000000000000..70695cfae7b8b --- /dev/null +++ b/tests/baselines/reference/parserAccessors3(target=es5).symbols @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors3.ts] //// + +=== parserAccessors3.ts === +var v = { get Foo() { } }; +>v : Symbol(v, Decl(parserAccessors3.ts, 0, 3)) +>Foo : Symbol(Foo, Decl(parserAccessors3.ts, 0, 9)) + diff --git a/tests/baselines/reference/parserAccessors3(target=es5).types b/tests/baselines/reference/parserAccessors3(target=es5).types new file mode 100644 index 0000000000000..9206e79086b9e --- /dev/null +++ b/tests/baselines/reference/parserAccessors3(target=es5).types @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors3.ts] //// + +=== parserAccessors3.ts === +var v = { get Foo() { } }; +>v : { readonly Foo: void; } +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>{ get Foo() { } } : { readonly Foo: void; } +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>Foo : void +> : ^^^^ + diff --git a/tests/baselines/reference/parserAccessors4.js b/tests/baselines/reference/parserAccessors4(target=es2015).js similarity index 100% rename from tests/baselines/reference/parserAccessors4.js rename to tests/baselines/reference/parserAccessors4(target=es2015).js diff --git a/tests/baselines/reference/parserAccessors4.symbols b/tests/baselines/reference/parserAccessors4(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/parserAccessors4.symbols rename to tests/baselines/reference/parserAccessors4(target=es2015).symbols diff --git a/tests/baselines/reference/parserAccessors4.types b/tests/baselines/reference/parserAccessors4(target=es2015).types similarity index 100% rename from tests/baselines/reference/parserAccessors4.types rename to tests/baselines/reference/parserAccessors4(target=es2015).types diff --git a/tests/baselines/reference/parserAccessors4(target=es5).js b/tests/baselines/reference/parserAccessors4(target=es5).js new file mode 100644 index 0000000000000..fb1ba4194d2a4 --- /dev/null +++ b/tests/baselines/reference/parserAccessors4(target=es5).js @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors4.ts] //// + +//// [parserAccessors4.ts] +var v = { set Foo(a) { } }; + +//// [parserAccessors4.js] +var v = { set Foo(a) { } }; diff --git a/tests/baselines/reference/parserAccessors4(target=es5).symbols b/tests/baselines/reference/parserAccessors4(target=es5).symbols new file mode 100644 index 0000000000000..43c7f1597defd --- /dev/null +++ b/tests/baselines/reference/parserAccessors4(target=es5).symbols @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors4.ts] //// + +=== parserAccessors4.ts === +var v = { set Foo(a) { } }; +>v : Symbol(v, Decl(parserAccessors4.ts, 0, 3)) +>Foo : Symbol(Foo, Decl(parserAccessors4.ts, 0, 9)) +>a : Symbol(a, Decl(parserAccessors4.ts, 0, 18)) + diff --git a/tests/baselines/reference/parserAccessors4(target=es5).types b/tests/baselines/reference/parserAccessors4(target=es5).types new file mode 100644 index 0000000000000..c14ee089f5f7b --- /dev/null +++ b/tests/baselines/reference/parserAccessors4(target=es5).types @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors4.ts] //// + +=== parserAccessors4.ts === +var v = { set Foo(a) { } }; +>v : { Foo: any; } +> : ^^^^^^^^^^^^^ +>{ set Foo(a) { } } : { Foo: any; } +> : ^^^^^^^^^^^^^ +>Foo : any +>a : any + diff --git a/tests/baselines/reference/parserAccessors5.errors.txt b/tests/baselines/reference/parserAccessors5(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/parserAccessors5.errors.txt rename to tests/baselines/reference/parserAccessors5(target=es2015).errors.txt diff --git a/tests/baselines/reference/parserAccessors5.js b/tests/baselines/reference/parserAccessors5(target=es2015).js similarity index 100% rename from tests/baselines/reference/parserAccessors5.js rename to tests/baselines/reference/parserAccessors5(target=es2015).js diff --git a/tests/baselines/reference/parserAccessors5.symbols b/tests/baselines/reference/parserAccessors5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/parserAccessors5.symbols rename to tests/baselines/reference/parserAccessors5(target=es2015).symbols diff --git a/tests/baselines/reference/parserAccessors5.types b/tests/baselines/reference/parserAccessors5(target=es2015).types similarity index 100% rename from tests/baselines/reference/parserAccessors5.types rename to tests/baselines/reference/parserAccessors5(target=es2015).types diff --git a/tests/baselines/reference/parserAccessors5(target=es5).errors.txt b/tests/baselines/reference/parserAccessors5(target=es5).errors.txt new file mode 100644 index 0000000000000..85f592d0f7a54 --- /dev/null +++ b/tests/baselines/reference/parserAccessors5(target=es5).errors.txt @@ -0,0 +1,9 @@ +parserAccessors5.ts(2,13): error TS1183: An implementation cannot be declared in ambient contexts. + + +==== parserAccessors5.ts (1 errors) ==== + declare class C { + get foo() { return 0; } + ~ +!!! error TS1183: An implementation cannot be declared in ambient contexts. + } \ No newline at end of file diff --git a/tests/baselines/reference/parserAccessors5(target=es5).js b/tests/baselines/reference/parserAccessors5(target=es5).js new file mode 100644 index 0000000000000..e0d7d5f1995e3 --- /dev/null +++ b/tests/baselines/reference/parserAccessors5(target=es5).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors5.ts] //// + +//// [parserAccessors5.ts] +declare class C { + get foo() { return 0; } +} + +//// [parserAccessors5.js] diff --git a/tests/baselines/reference/parserAccessors5(target=es5).symbols b/tests/baselines/reference/parserAccessors5(target=es5).symbols new file mode 100644 index 0000000000000..6757e86e3dd74 --- /dev/null +++ b/tests/baselines/reference/parserAccessors5(target=es5).symbols @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors5.ts] //// + +=== parserAccessors5.ts === +declare class C { +>C : Symbol(C, Decl(parserAccessors5.ts, 0, 0)) + + get foo() { return 0; } +>foo : Symbol(C.foo, Decl(parserAccessors5.ts, 0, 17)) +} diff --git a/tests/baselines/reference/parserAccessors5(target=es5).types b/tests/baselines/reference/parserAccessors5(target=es5).types new file mode 100644 index 0000000000000..03c8f09a50077 --- /dev/null +++ b/tests/baselines/reference/parserAccessors5(target=es5).types @@ -0,0 +1,13 @@ +//// [tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors5.ts] //// + +=== parserAccessors5.ts === +declare class C { +>C : C +> : ^ + + get foo() { return 0; } +>foo : number +> : ^^^^^^ +>0 : 0 +> : ^ +} diff --git a/tests/baselines/reference/parserAccessors6.errors.txt b/tests/baselines/reference/parserAccessors6(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/parserAccessors6.errors.txt rename to tests/baselines/reference/parserAccessors6(target=es2015).errors.txt diff --git a/tests/baselines/reference/parserAccessors6.js b/tests/baselines/reference/parserAccessors6(target=es2015).js similarity index 100% rename from tests/baselines/reference/parserAccessors6.js rename to tests/baselines/reference/parserAccessors6(target=es2015).js diff --git a/tests/baselines/reference/parserAccessors6.symbols b/tests/baselines/reference/parserAccessors6(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/parserAccessors6.symbols rename to tests/baselines/reference/parserAccessors6(target=es2015).symbols diff --git a/tests/baselines/reference/parserAccessors6.types b/tests/baselines/reference/parserAccessors6(target=es2015).types similarity index 100% rename from tests/baselines/reference/parserAccessors6.types rename to tests/baselines/reference/parserAccessors6(target=es2015).types diff --git a/tests/baselines/reference/parserAccessors6(target=es5).errors.txt b/tests/baselines/reference/parserAccessors6(target=es5).errors.txt new file mode 100644 index 0000000000000..931d79c190e95 --- /dev/null +++ b/tests/baselines/reference/parserAccessors6(target=es5).errors.txt @@ -0,0 +1,9 @@ +parserAccessors6.ts(2,14): error TS1183: An implementation cannot be declared in ambient contexts. + + +==== parserAccessors6.ts (1 errors) ==== + declare class C { + set foo(v) { } + ~ +!!! error TS1183: An implementation cannot be declared in ambient contexts. + } \ No newline at end of file diff --git a/tests/baselines/reference/parserAccessors6(target=es5).js b/tests/baselines/reference/parserAccessors6(target=es5).js new file mode 100644 index 0000000000000..605a993238d54 --- /dev/null +++ b/tests/baselines/reference/parserAccessors6(target=es5).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors6.ts] //// + +//// [parserAccessors6.ts] +declare class C { + set foo(v) { } +} + +//// [parserAccessors6.js] diff --git a/tests/baselines/reference/parserAccessors6(target=es5).symbols b/tests/baselines/reference/parserAccessors6(target=es5).symbols new file mode 100644 index 0000000000000..8c10da0bcedaf --- /dev/null +++ b/tests/baselines/reference/parserAccessors6(target=es5).symbols @@ -0,0 +1,10 @@ +//// [tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors6.ts] //// + +=== parserAccessors6.ts === +declare class C { +>C : Symbol(C, Decl(parserAccessors6.ts, 0, 0)) + + set foo(v) { } +>foo : Symbol(C.foo, Decl(parserAccessors6.ts, 0, 17)) +>v : Symbol(v, Decl(parserAccessors6.ts, 1, 10)) +} diff --git a/tests/baselines/reference/parserAccessors6(target=es5).types b/tests/baselines/reference/parserAccessors6(target=es5).types new file mode 100644 index 0000000000000..8d3186978679d --- /dev/null +++ b/tests/baselines/reference/parserAccessors6(target=es5).types @@ -0,0 +1,13 @@ +//// [tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors6.ts] //// + +=== parserAccessors6.ts === +declare class C { +>C : C +> : ^ + + set foo(v) { } +>foo : any +> : ^^^ +>v : any +> : ^^^ +} diff --git a/tests/baselines/reference/parserAccessors7.errors.txt b/tests/baselines/reference/parserAccessors7(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/parserAccessors7.errors.txt rename to tests/baselines/reference/parserAccessors7(target=es2015).errors.txt diff --git a/tests/baselines/reference/parserAccessors7.js b/tests/baselines/reference/parserAccessors7(target=es2015).js similarity index 100% rename from tests/baselines/reference/parserAccessors7.js rename to tests/baselines/reference/parserAccessors7(target=es2015).js diff --git a/tests/baselines/reference/parserAccessors7.symbols b/tests/baselines/reference/parserAccessors7(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/parserAccessors7.symbols rename to tests/baselines/reference/parserAccessors7(target=es2015).symbols diff --git a/tests/baselines/reference/parserAccessors7.types b/tests/baselines/reference/parserAccessors7(target=es2015).types similarity index 100% rename from tests/baselines/reference/parserAccessors7.types rename to tests/baselines/reference/parserAccessors7(target=es2015).types diff --git a/tests/baselines/reference/parserAccessors7(target=es5).errors.txt b/tests/baselines/reference/parserAccessors7(target=es5).errors.txt new file mode 100644 index 0000000000000..caf3f89024069 --- /dev/null +++ b/tests/baselines/reference/parserAccessors7(target=es5).errors.txt @@ -0,0 +1,10 @@ +parserAccessors7.ts(1,15): error TS1054: A 'get' accessor cannot have parameters. +parserAccessors7.ts(1,15): error TS2378: A 'get' accessor must return a value. + + +==== parserAccessors7.ts (2 errors) ==== + var v = { get foo(v: number) { } }; + ~~~ +!!! error TS1054: A 'get' accessor cannot have parameters. + ~~~ +!!! error TS2378: A 'get' accessor must return a value. \ No newline at end of file diff --git a/tests/baselines/reference/parserAccessors7(target=es5).js b/tests/baselines/reference/parserAccessors7(target=es5).js new file mode 100644 index 0000000000000..0445c59e29f84 --- /dev/null +++ b/tests/baselines/reference/parserAccessors7(target=es5).js @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors7.ts] //// + +//// [parserAccessors7.ts] +var v = { get foo(v: number) { } }; + +//// [parserAccessors7.js] +var v = { get foo(v) { } }; diff --git a/tests/baselines/reference/parserAccessors7(target=es5).symbols b/tests/baselines/reference/parserAccessors7(target=es5).symbols new file mode 100644 index 0000000000000..d217a19c60d10 --- /dev/null +++ b/tests/baselines/reference/parserAccessors7(target=es5).symbols @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors7.ts] //// + +=== parserAccessors7.ts === +var v = { get foo(v: number) { } }; +>v : Symbol(v, Decl(parserAccessors7.ts, 0, 3)) +>foo : Symbol(foo, Decl(parserAccessors7.ts, 0, 9)) +>v : Symbol(v, Decl(parserAccessors7.ts, 0, 18)) + diff --git a/tests/baselines/reference/parserAccessors7(target=es5).types b/tests/baselines/reference/parserAccessors7(target=es5).types new file mode 100644 index 0000000000000..655b96a60316f --- /dev/null +++ b/tests/baselines/reference/parserAccessors7(target=es5).types @@ -0,0 +1,13 @@ +//// [tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors7.ts] //// + +=== parserAccessors7.ts === +var v = { get foo(v: number) { } }; +>v : { readonly foo: void; } +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>{ get foo(v: number) { } } : { readonly foo: void; } +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>foo : void +> : ^^^^ +>v : number +> : ^^^^^^ + diff --git a/tests/baselines/reference/parserAccessors8.errors.txt b/tests/baselines/reference/parserAccessors8(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/parserAccessors8.errors.txt rename to tests/baselines/reference/parserAccessors8(target=es2015).errors.txt diff --git a/tests/baselines/reference/parserAccessors8.js b/tests/baselines/reference/parserAccessors8(target=es2015).js similarity index 100% rename from tests/baselines/reference/parserAccessors8.js rename to tests/baselines/reference/parserAccessors8(target=es2015).js diff --git a/tests/baselines/reference/parserAccessors8.symbols b/tests/baselines/reference/parserAccessors8(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/parserAccessors8.symbols rename to tests/baselines/reference/parserAccessors8(target=es2015).symbols diff --git a/tests/baselines/reference/parserAccessors8.types b/tests/baselines/reference/parserAccessors8(target=es2015).types similarity index 100% rename from tests/baselines/reference/parserAccessors8.types rename to tests/baselines/reference/parserAccessors8(target=es2015).types diff --git a/tests/baselines/reference/parserAccessors8(target=es5).errors.txt b/tests/baselines/reference/parserAccessors8(target=es5).errors.txt new file mode 100644 index 0000000000000..893005575c371 --- /dev/null +++ b/tests/baselines/reference/parserAccessors8(target=es5).errors.txt @@ -0,0 +1,7 @@ +parserAccessors8.ts(1,15): error TS1049: A 'set' accessor must have exactly one parameter. + + +==== parserAccessors8.ts (1 errors) ==== + var v = { set foo() { } } + ~~~ +!!! error TS1049: A 'set' accessor must have exactly one parameter. \ No newline at end of file diff --git a/tests/baselines/reference/parserAccessors8(target=es5).js b/tests/baselines/reference/parserAccessors8(target=es5).js new file mode 100644 index 0000000000000..90f5a3abe3aaf --- /dev/null +++ b/tests/baselines/reference/parserAccessors8(target=es5).js @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors8.ts] //// + +//// [parserAccessors8.ts] +var v = { set foo() { } } + +//// [parserAccessors8.js] +var v = { set foo() { } }; diff --git a/tests/baselines/reference/parserAccessors8(target=es5).symbols b/tests/baselines/reference/parserAccessors8(target=es5).symbols new file mode 100644 index 0000000000000..16d8c15c2324b --- /dev/null +++ b/tests/baselines/reference/parserAccessors8(target=es5).symbols @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors8.ts] //// + +=== parserAccessors8.ts === +var v = { set foo() { } } +>v : Symbol(v, Decl(parserAccessors8.ts, 0, 3)) +>foo : Symbol(foo, Decl(parserAccessors8.ts, 0, 9)) + diff --git a/tests/baselines/reference/parserAccessors8(target=es5).types b/tests/baselines/reference/parserAccessors8(target=es5).types new file mode 100644 index 0000000000000..f78d25517f68b --- /dev/null +++ b/tests/baselines/reference/parserAccessors8(target=es5).types @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors8.ts] //// + +=== parserAccessors8.ts === +var v = { set foo() { } } +>v : { foo: any; } +> : ^^^^^^^^^^^^^ +>{ set foo() { } } : { foo: any; } +> : ^^^^^^^^^^^^^ +>foo : any +> : ^^^ + diff --git a/tests/baselines/reference/parserAccessors9.errors.txt b/tests/baselines/reference/parserAccessors9(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/parserAccessors9.errors.txt rename to tests/baselines/reference/parserAccessors9(target=es2015).errors.txt diff --git a/tests/baselines/reference/parserAccessors9.js b/tests/baselines/reference/parserAccessors9(target=es2015).js similarity index 100% rename from tests/baselines/reference/parserAccessors9.js rename to tests/baselines/reference/parserAccessors9(target=es2015).js diff --git a/tests/baselines/reference/parserAccessors9.symbols b/tests/baselines/reference/parserAccessors9(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/parserAccessors9.symbols rename to tests/baselines/reference/parserAccessors9(target=es2015).symbols diff --git a/tests/baselines/reference/parserAccessors9.types b/tests/baselines/reference/parserAccessors9(target=es2015).types similarity index 100% rename from tests/baselines/reference/parserAccessors9.types rename to tests/baselines/reference/parserAccessors9(target=es2015).types diff --git a/tests/baselines/reference/parserAccessors9(target=es5).errors.txt b/tests/baselines/reference/parserAccessors9(target=es5).errors.txt new file mode 100644 index 0000000000000..7d7b805dfd054 --- /dev/null +++ b/tests/baselines/reference/parserAccessors9(target=es5).errors.txt @@ -0,0 +1,7 @@ +parserAccessors9.ts(1,15): error TS1049: A 'set' accessor must have exactly one parameter. + + +==== parserAccessors9.ts (1 errors) ==== + var v = { set foo(a, b) { } } + ~~~ +!!! error TS1049: A 'set' accessor must have exactly one parameter. \ No newline at end of file diff --git a/tests/baselines/reference/parserAccessors9(target=es5).js b/tests/baselines/reference/parserAccessors9(target=es5).js new file mode 100644 index 0000000000000..a2b9b86fada6b --- /dev/null +++ b/tests/baselines/reference/parserAccessors9(target=es5).js @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors9.ts] //// + +//// [parserAccessors9.ts] +var v = { set foo(a, b) { } } + +//// [parserAccessors9.js] +var v = { set foo(a, b) { } }; diff --git a/tests/baselines/reference/parserAccessors9(target=es5).symbols b/tests/baselines/reference/parserAccessors9(target=es5).symbols new file mode 100644 index 0000000000000..55e2822af2fc4 --- /dev/null +++ b/tests/baselines/reference/parserAccessors9(target=es5).symbols @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors9.ts] //// + +=== parserAccessors9.ts === +var v = { set foo(a, b) { } } +>v : Symbol(v, Decl(parserAccessors9.ts, 0, 3)) +>foo : Symbol(foo, Decl(parserAccessors9.ts, 0, 9)) +>a : Symbol(a, Decl(parserAccessors9.ts, 0, 18)) +>b : Symbol(b, Decl(parserAccessors9.ts, 0, 20)) + diff --git a/tests/baselines/reference/parserAccessors9(target=es5).types b/tests/baselines/reference/parserAccessors9(target=es5).types new file mode 100644 index 0000000000000..5328d0ea1d8f2 --- /dev/null +++ b/tests/baselines/reference/parserAccessors9(target=es5).types @@ -0,0 +1,15 @@ +//// [tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors9.ts] //// + +=== parserAccessors9.ts === +var v = { set foo(a, b) { } } +>v : { foo: any; } +> : ^^^^^^^^^^^^^ +>{ set foo(a, b) { } } : { foo: any; } +> : ^^^^^^^^^^^^^ +>foo : any +> : ^^^ +>a : any +> : ^^^ +>b : any +> : ^^^ + diff --git a/tests/baselines/reference/parserES5ComputedPropertyName1.errors.txt b/tests/baselines/reference/parserES5ComputedPropertyName1(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/parserES5ComputedPropertyName1.errors.txt rename to tests/baselines/reference/parserES5ComputedPropertyName1(target=es2015).errors.txt diff --git a/tests/baselines/reference/parserES5ComputedPropertyName1.js b/tests/baselines/reference/parserES5ComputedPropertyName1(target=es2015).js similarity index 100% rename from tests/baselines/reference/parserES5ComputedPropertyName1.js rename to tests/baselines/reference/parserES5ComputedPropertyName1(target=es2015).js diff --git a/tests/baselines/reference/parserES5ComputedPropertyName1.symbols b/tests/baselines/reference/parserES5ComputedPropertyName1(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/parserES5ComputedPropertyName1.symbols rename to tests/baselines/reference/parserES5ComputedPropertyName1(target=es2015).symbols diff --git a/tests/baselines/reference/parserES5ComputedPropertyName1.types b/tests/baselines/reference/parserES5ComputedPropertyName1(target=es2015).types similarity index 100% rename from tests/baselines/reference/parserES5ComputedPropertyName1.types rename to tests/baselines/reference/parserES5ComputedPropertyName1(target=es2015).types diff --git a/tests/baselines/reference/parserES5ComputedPropertyName1(target=es5).errors.txt b/tests/baselines/reference/parserES5ComputedPropertyName1(target=es5).errors.txt new file mode 100644 index 0000000000000..63fbb6b4237cb --- /dev/null +++ b/tests/baselines/reference/parserES5ComputedPropertyName1(target=es5).errors.txt @@ -0,0 +1,9 @@ +parserES5ComputedPropertyName1.ts(2,6): error TS2304: Cannot find name 'e'. + + +==== parserES5ComputedPropertyName1.ts (1 errors) ==== + declare class C { + [e]: number + ~ +!!! error TS2304: Cannot find name 'e'. + } \ No newline at end of file diff --git a/tests/baselines/reference/parserES5ComputedPropertyName1(target=es5).js b/tests/baselines/reference/parserES5ComputedPropertyName1(target=es5).js new file mode 100644 index 0000000000000..cb00d6f4b6d33 --- /dev/null +++ b/tests/baselines/reference/parserES5ComputedPropertyName1(target=es5).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName1.ts] //// + +//// [parserES5ComputedPropertyName1.ts] +declare class C { + [e]: number +} + +//// [parserES5ComputedPropertyName1.js] diff --git a/tests/baselines/reference/parserES5ComputedPropertyName1(target=es5).symbols b/tests/baselines/reference/parserES5ComputedPropertyName1(target=es5).symbols new file mode 100644 index 0000000000000..98dbc0bce30d0 --- /dev/null +++ b/tests/baselines/reference/parserES5ComputedPropertyName1(target=es5).symbols @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName1.ts] //// + +=== parserES5ComputedPropertyName1.ts === +declare class C { +>C : Symbol(C, Decl(parserES5ComputedPropertyName1.ts, 0, 0)) + + [e]: number +>[e] : Symbol(C[e], Decl(parserES5ComputedPropertyName1.ts, 0, 17)) +} diff --git a/tests/baselines/reference/parserES5ComputedPropertyName1(target=es5).types b/tests/baselines/reference/parserES5ComputedPropertyName1(target=es5).types new file mode 100644 index 0000000000000..755f1a696c47d --- /dev/null +++ b/tests/baselines/reference/parserES5ComputedPropertyName1(target=es5).types @@ -0,0 +1,13 @@ +//// [tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName1.ts] //// + +=== parserES5ComputedPropertyName1.ts === +declare class C { +>C : C +> : ^ + + [e]: number +>[e] : number +> : ^^^^^^ +>e : any +> : ^^^ +} diff --git a/tests/baselines/reference/parserES5ComputedPropertyName10.errors.txt b/tests/baselines/reference/parserES5ComputedPropertyName10(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/parserES5ComputedPropertyName10.errors.txt rename to tests/baselines/reference/parserES5ComputedPropertyName10(target=es2015).errors.txt diff --git a/tests/baselines/reference/parserES5ComputedPropertyName10(target=es2015).js b/tests/baselines/reference/parserES5ComputedPropertyName10(target=es2015).js new file mode 100644 index 0000000000000..91212c778e2ea --- /dev/null +++ b/tests/baselines/reference/parserES5ComputedPropertyName10(target=es2015).js @@ -0,0 +1,15 @@ +//// [tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName10.ts] //// + +//// [parserES5ComputedPropertyName10.ts] +class C { + [e] = 1 +} + +//// [parserES5ComputedPropertyName10.js] +var _a; +class C { + constructor() { + this[_a] = 1; + } +} +_a = e; diff --git a/tests/baselines/reference/parserES5ComputedPropertyName10.symbols b/tests/baselines/reference/parserES5ComputedPropertyName10(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/parserES5ComputedPropertyName10.symbols rename to tests/baselines/reference/parserES5ComputedPropertyName10(target=es2015).symbols diff --git a/tests/baselines/reference/parserES5ComputedPropertyName10.types b/tests/baselines/reference/parserES5ComputedPropertyName10(target=es2015).types similarity index 100% rename from tests/baselines/reference/parserES5ComputedPropertyName10.types rename to tests/baselines/reference/parserES5ComputedPropertyName10(target=es2015).types diff --git a/tests/baselines/reference/parserES5ComputedPropertyName10(target=es5).errors.txt b/tests/baselines/reference/parserES5ComputedPropertyName10(target=es5).errors.txt new file mode 100644 index 0000000000000..be53362605576 --- /dev/null +++ b/tests/baselines/reference/parserES5ComputedPropertyName10(target=es5).errors.txt @@ -0,0 +1,9 @@ +parserES5ComputedPropertyName10.ts(2,5): error TS2304: Cannot find name 'e'. + + +==== parserES5ComputedPropertyName10.ts (1 errors) ==== + class C { + [e] = 1 + ~ +!!! error TS2304: Cannot find name 'e'. + } \ No newline at end of file diff --git a/tests/baselines/reference/parserES5ComputedPropertyName10.js b/tests/baselines/reference/parserES5ComputedPropertyName10(target=es5).js similarity index 100% rename from tests/baselines/reference/parserES5ComputedPropertyName10.js rename to tests/baselines/reference/parserES5ComputedPropertyName10(target=es5).js diff --git a/tests/baselines/reference/parserES5ComputedPropertyName10(target=es5).symbols b/tests/baselines/reference/parserES5ComputedPropertyName10(target=es5).symbols new file mode 100644 index 0000000000000..dcb60d5036b7d --- /dev/null +++ b/tests/baselines/reference/parserES5ComputedPropertyName10(target=es5).symbols @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName10.ts] //// + +=== parserES5ComputedPropertyName10.ts === +class C { +>C : Symbol(C, Decl(parserES5ComputedPropertyName10.ts, 0, 0)) + + [e] = 1 +>[e] : Symbol(C[e], Decl(parserES5ComputedPropertyName10.ts, 0, 9)) +} diff --git a/tests/baselines/reference/parserES5ComputedPropertyName10(target=es5).types b/tests/baselines/reference/parserES5ComputedPropertyName10(target=es5).types new file mode 100644 index 0000000000000..23c6c0ce4cff4 --- /dev/null +++ b/tests/baselines/reference/parserES5ComputedPropertyName10(target=es5).types @@ -0,0 +1,15 @@ +//// [tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName10.ts] //// + +=== parserES5ComputedPropertyName10.ts === +class C { +>C : C +> : ^ + + [e] = 1 +>[e] : number +> : ^^^^^^ +>e : any +> : ^^^ +>1 : 1 +> : ^ +} diff --git a/tests/baselines/reference/parserES5ComputedPropertyName11.errors.txt b/tests/baselines/reference/parserES5ComputedPropertyName11(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/parserES5ComputedPropertyName11.errors.txt rename to tests/baselines/reference/parserES5ComputedPropertyName11(target=es2015).errors.txt diff --git a/tests/baselines/reference/parserES5ComputedPropertyName11(target=es2015).js b/tests/baselines/reference/parserES5ComputedPropertyName11(target=es2015).js new file mode 100644 index 0000000000000..5ef81f71b20c5 --- /dev/null +++ b/tests/baselines/reference/parserES5ComputedPropertyName11(target=es2015).js @@ -0,0 +1,10 @@ +//// [tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName11.ts] //// + +//// [parserES5ComputedPropertyName11.ts] +class C { + [e](); +} + +//// [parserES5ComputedPropertyName11.js] +class C { +} diff --git a/tests/baselines/reference/parserES5ComputedPropertyName11.symbols b/tests/baselines/reference/parserES5ComputedPropertyName11(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/parserES5ComputedPropertyName11.symbols rename to tests/baselines/reference/parserES5ComputedPropertyName11(target=es2015).symbols diff --git a/tests/baselines/reference/parserES5ComputedPropertyName11.types b/tests/baselines/reference/parserES5ComputedPropertyName11(target=es2015).types similarity index 100% rename from tests/baselines/reference/parserES5ComputedPropertyName11.types rename to tests/baselines/reference/parserES5ComputedPropertyName11(target=es2015).types diff --git a/tests/baselines/reference/parserES5ComputedPropertyName11(target=es5).errors.txt b/tests/baselines/reference/parserES5ComputedPropertyName11(target=es5).errors.txt new file mode 100644 index 0000000000000..d216c821625d2 --- /dev/null +++ b/tests/baselines/reference/parserES5ComputedPropertyName11(target=es5).errors.txt @@ -0,0 +1,9 @@ +parserES5ComputedPropertyName11.ts(2,5): error TS2304: Cannot find name 'e'. + + +==== parserES5ComputedPropertyName11.ts (1 errors) ==== + class C { + [e](); + ~ +!!! error TS2304: Cannot find name 'e'. + } \ No newline at end of file diff --git a/tests/baselines/reference/parserES5ComputedPropertyName11.js b/tests/baselines/reference/parserES5ComputedPropertyName11(target=es5).js similarity index 100% rename from tests/baselines/reference/parserES5ComputedPropertyName11.js rename to tests/baselines/reference/parserES5ComputedPropertyName11(target=es5).js diff --git a/tests/baselines/reference/parserES5ComputedPropertyName11(target=es5).symbols b/tests/baselines/reference/parserES5ComputedPropertyName11(target=es5).symbols new file mode 100644 index 0000000000000..04c665d6a13c7 --- /dev/null +++ b/tests/baselines/reference/parserES5ComputedPropertyName11(target=es5).symbols @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName11.ts] //// + +=== parserES5ComputedPropertyName11.ts === +class C { +>C : Symbol(C, Decl(parserES5ComputedPropertyName11.ts, 0, 0)) + + [e](); +>[e] : Symbol(C[e], Decl(parserES5ComputedPropertyName11.ts, 0, 9)) +} diff --git a/tests/baselines/reference/parserES5ComputedPropertyName11(target=es5).types b/tests/baselines/reference/parserES5ComputedPropertyName11(target=es5).types new file mode 100644 index 0000000000000..c62dd010a9007 --- /dev/null +++ b/tests/baselines/reference/parserES5ComputedPropertyName11(target=es5).types @@ -0,0 +1,13 @@ +//// [tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName11.ts] //// + +=== parserES5ComputedPropertyName11.ts === +class C { +>C : C +> : ^ + + [e](); +>[e] : () => any +> : ^^^^^^^^^ +>e : any +> : ^^^ +} diff --git a/tests/baselines/reference/parserES5ComputedPropertyName2.errors.txt b/tests/baselines/reference/parserES5ComputedPropertyName2(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/parserES5ComputedPropertyName2.errors.txt rename to tests/baselines/reference/parserES5ComputedPropertyName2(target=es2015).errors.txt diff --git a/tests/baselines/reference/parserES5ComputedPropertyName2(target=es2015).js b/tests/baselines/reference/parserES5ComputedPropertyName2(target=es2015).js new file mode 100644 index 0000000000000..76b2f0bf54e53 --- /dev/null +++ b/tests/baselines/reference/parserES5ComputedPropertyName2(target=es2015).js @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName2.ts] //// + +//// [parserES5ComputedPropertyName2.ts] +var v = { [e]: 1 }; + +//// [parserES5ComputedPropertyName2.js] +var v = { [e]: 1 }; diff --git a/tests/baselines/reference/parserES5ComputedPropertyName2.symbols b/tests/baselines/reference/parserES5ComputedPropertyName2(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/parserES5ComputedPropertyName2.symbols rename to tests/baselines/reference/parserES5ComputedPropertyName2(target=es2015).symbols diff --git a/tests/baselines/reference/parserES5ComputedPropertyName2.types b/tests/baselines/reference/parserES5ComputedPropertyName2(target=es2015).types similarity index 100% rename from tests/baselines/reference/parserES5ComputedPropertyName2.types rename to tests/baselines/reference/parserES5ComputedPropertyName2(target=es2015).types diff --git a/tests/baselines/reference/parserES5ComputedPropertyName2(target=es5).errors.txt b/tests/baselines/reference/parserES5ComputedPropertyName2(target=es5).errors.txt new file mode 100644 index 0000000000000..4c4f96d7db2d5 --- /dev/null +++ b/tests/baselines/reference/parserES5ComputedPropertyName2(target=es5).errors.txt @@ -0,0 +1,7 @@ +parserES5ComputedPropertyName2.ts(1,12): error TS2304: Cannot find name 'e'. + + +==== parserES5ComputedPropertyName2.ts (1 errors) ==== + var v = { [e]: 1 }; + ~ +!!! error TS2304: Cannot find name 'e'. \ No newline at end of file diff --git a/tests/baselines/reference/parserES5ComputedPropertyName2.js b/tests/baselines/reference/parserES5ComputedPropertyName2(target=es5).js similarity index 100% rename from tests/baselines/reference/parserES5ComputedPropertyName2.js rename to tests/baselines/reference/parserES5ComputedPropertyName2(target=es5).js diff --git a/tests/baselines/reference/parserES5ComputedPropertyName2(target=es5).symbols b/tests/baselines/reference/parserES5ComputedPropertyName2(target=es5).symbols new file mode 100644 index 0000000000000..c9e49a1ad0a58 --- /dev/null +++ b/tests/baselines/reference/parserES5ComputedPropertyName2(target=es5).symbols @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName2.ts] //// + +=== parserES5ComputedPropertyName2.ts === +var v = { [e]: 1 }; +>v : Symbol(v, Decl(parserES5ComputedPropertyName2.ts, 0, 3)) +>[e] : Symbol([e], Decl(parserES5ComputedPropertyName2.ts, 0, 9)) + diff --git a/tests/baselines/reference/parserES5ComputedPropertyName2(target=es5).types b/tests/baselines/reference/parserES5ComputedPropertyName2(target=es5).types new file mode 100644 index 0000000000000..9891cfe829810 --- /dev/null +++ b/tests/baselines/reference/parserES5ComputedPropertyName2(target=es5).types @@ -0,0 +1,15 @@ +//// [tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName2.ts] //// + +=== parserES5ComputedPropertyName2.ts === +var v = { [e]: 1 }; +>v : { [x: number]: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^ +>{ [e]: 1 } : { [x: number]: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^ +>[e] : number +> : ^^^^^^ +>e : any +> : ^^^ +>1 : 1 +> : ^ + diff --git a/tests/baselines/reference/parserES5ComputedPropertyName3.errors.txt b/tests/baselines/reference/parserES5ComputedPropertyName3(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/parserES5ComputedPropertyName3.errors.txt rename to tests/baselines/reference/parserES5ComputedPropertyName3(target=es2015).errors.txt diff --git a/tests/baselines/reference/parserES5ComputedPropertyName3(target=es2015).js b/tests/baselines/reference/parserES5ComputedPropertyName3(target=es2015).js new file mode 100644 index 0000000000000..b5f924d88a997 --- /dev/null +++ b/tests/baselines/reference/parserES5ComputedPropertyName3(target=es2015).js @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName3.ts] //// + +//// [parserES5ComputedPropertyName3.ts] +var v = { [e]() { } }; + +//// [parserES5ComputedPropertyName3.js] +var v = { [e]() { } }; diff --git a/tests/baselines/reference/parserES5ComputedPropertyName3.symbols b/tests/baselines/reference/parserES5ComputedPropertyName3(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/parserES5ComputedPropertyName3.symbols rename to tests/baselines/reference/parserES5ComputedPropertyName3(target=es2015).symbols diff --git a/tests/baselines/reference/parserES5ComputedPropertyName3.types b/tests/baselines/reference/parserES5ComputedPropertyName3(target=es2015).types similarity index 100% rename from tests/baselines/reference/parserES5ComputedPropertyName3.types rename to tests/baselines/reference/parserES5ComputedPropertyName3(target=es2015).types diff --git a/tests/baselines/reference/parserES5ComputedPropertyName3(target=es5).errors.txt b/tests/baselines/reference/parserES5ComputedPropertyName3(target=es5).errors.txt new file mode 100644 index 0000000000000..6eb6f959e1f9b --- /dev/null +++ b/tests/baselines/reference/parserES5ComputedPropertyName3(target=es5).errors.txt @@ -0,0 +1,7 @@ +parserES5ComputedPropertyName3.ts(1,12): error TS2304: Cannot find name 'e'. + + +==== parserES5ComputedPropertyName3.ts (1 errors) ==== + var v = { [e]() { } }; + ~ +!!! error TS2304: Cannot find name 'e'. \ No newline at end of file diff --git a/tests/baselines/reference/parserES5ComputedPropertyName3.js b/tests/baselines/reference/parserES5ComputedPropertyName3(target=es5).js similarity index 100% rename from tests/baselines/reference/parserES5ComputedPropertyName3.js rename to tests/baselines/reference/parserES5ComputedPropertyName3(target=es5).js diff --git a/tests/baselines/reference/parserES5ComputedPropertyName3(target=es5).symbols b/tests/baselines/reference/parserES5ComputedPropertyName3(target=es5).symbols new file mode 100644 index 0000000000000..9039c0b0738c0 --- /dev/null +++ b/tests/baselines/reference/parserES5ComputedPropertyName3(target=es5).symbols @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName3.ts] //// + +=== parserES5ComputedPropertyName3.ts === +var v = { [e]() { } }; +>v : Symbol(v, Decl(parserES5ComputedPropertyName3.ts, 0, 3)) +>[e] : Symbol([e], Decl(parserES5ComputedPropertyName3.ts, 0, 9)) + diff --git a/tests/baselines/reference/parserES5ComputedPropertyName3(target=es5).types b/tests/baselines/reference/parserES5ComputedPropertyName3(target=es5).types new file mode 100644 index 0000000000000..d6fa902f29832 --- /dev/null +++ b/tests/baselines/reference/parserES5ComputedPropertyName3(target=es5).types @@ -0,0 +1,13 @@ +//// [tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName3.ts] //// + +=== parserES5ComputedPropertyName3.ts === +var v = { [e]() { } }; +>v : { [x: number]: () => void; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ [e]() { } } : { [x: number]: () => void; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>[e] : () => void +> : ^^^^^^^^^^ +>e : any +> : ^^^ + diff --git a/tests/baselines/reference/parserES5ComputedPropertyName4.errors.txt b/tests/baselines/reference/parserES5ComputedPropertyName4(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/parserES5ComputedPropertyName4.errors.txt rename to tests/baselines/reference/parserES5ComputedPropertyName4(target=es2015).errors.txt diff --git a/tests/baselines/reference/parserES5ComputedPropertyName4(target=es2015).js b/tests/baselines/reference/parserES5ComputedPropertyName4(target=es2015).js new file mode 100644 index 0000000000000..371cced869a5d --- /dev/null +++ b/tests/baselines/reference/parserES5ComputedPropertyName4(target=es2015).js @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName4.ts] //// + +//// [parserES5ComputedPropertyName4.ts] +var v = { get [e]() { } }; + +//// [parserES5ComputedPropertyName4.js] +var v = { get [e]() { } }; diff --git a/tests/baselines/reference/parserES5ComputedPropertyName4.symbols b/tests/baselines/reference/parserES5ComputedPropertyName4(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/parserES5ComputedPropertyName4.symbols rename to tests/baselines/reference/parserES5ComputedPropertyName4(target=es2015).symbols diff --git a/tests/baselines/reference/parserES5ComputedPropertyName4.types b/tests/baselines/reference/parserES5ComputedPropertyName4(target=es2015).types similarity index 100% rename from tests/baselines/reference/parserES5ComputedPropertyName4.types rename to tests/baselines/reference/parserES5ComputedPropertyName4(target=es2015).types diff --git a/tests/baselines/reference/parserES5ComputedPropertyName4(target=es5).errors.txt b/tests/baselines/reference/parserES5ComputedPropertyName4(target=es5).errors.txt new file mode 100644 index 0000000000000..d75c57eca6a48 --- /dev/null +++ b/tests/baselines/reference/parserES5ComputedPropertyName4(target=es5).errors.txt @@ -0,0 +1,10 @@ +parserES5ComputedPropertyName4.ts(1,15): error TS2378: A 'get' accessor must return a value. +parserES5ComputedPropertyName4.ts(1,16): error TS2304: Cannot find name 'e'. + + +==== parserES5ComputedPropertyName4.ts (2 errors) ==== + var v = { get [e]() { } }; + ~~~ +!!! error TS2378: A 'get' accessor must return a value. + ~ +!!! error TS2304: Cannot find name 'e'. \ No newline at end of file diff --git a/tests/baselines/reference/parserES5ComputedPropertyName4.js b/tests/baselines/reference/parserES5ComputedPropertyName4(target=es5).js similarity index 100% rename from tests/baselines/reference/parserES5ComputedPropertyName4.js rename to tests/baselines/reference/parserES5ComputedPropertyName4(target=es5).js diff --git a/tests/baselines/reference/parserES5ComputedPropertyName4(target=es5).symbols b/tests/baselines/reference/parserES5ComputedPropertyName4(target=es5).symbols new file mode 100644 index 0000000000000..39f03780bcd7b --- /dev/null +++ b/tests/baselines/reference/parserES5ComputedPropertyName4(target=es5).symbols @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName4.ts] //// + +=== parserES5ComputedPropertyName4.ts === +var v = { get [e]() { } }; +>v : Symbol(v, Decl(parserES5ComputedPropertyName4.ts, 0, 3)) +>[e] : Symbol([e], Decl(parserES5ComputedPropertyName4.ts, 0, 9)) + diff --git a/tests/baselines/reference/parserES5ComputedPropertyName4(target=es5).types b/tests/baselines/reference/parserES5ComputedPropertyName4(target=es5).types new file mode 100644 index 0000000000000..eadd6fff2a0c9 --- /dev/null +++ b/tests/baselines/reference/parserES5ComputedPropertyName4(target=es5).types @@ -0,0 +1,13 @@ +//// [tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName4.ts] //// + +=== parserES5ComputedPropertyName4.ts === +var v = { get [e]() { } }; +>v : { [x: number]: void; } +> : ^^^^^^^^^^^^^^^^^^^^^^ +>{ get [e]() { } } : { [x: number]: void; } +> : ^^^^^^^^^^^^^^^^^^^^^^ +>[e] : void +> : ^^^^ +>e : any +> : ^^^ + diff --git a/tests/baselines/reference/parserES5ComputedPropertyName5.errors.txt b/tests/baselines/reference/parserES5ComputedPropertyName5(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/parserES5ComputedPropertyName5.errors.txt rename to tests/baselines/reference/parserES5ComputedPropertyName5(target=es2015).errors.txt diff --git a/tests/baselines/reference/parserES5ComputedPropertyName5.js b/tests/baselines/reference/parserES5ComputedPropertyName5(target=es2015).js similarity index 100% rename from tests/baselines/reference/parserES5ComputedPropertyName5.js rename to tests/baselines/reference/parserES5ComputedPropertyName5(target=es2015).js diff --git a/tests/baselines/reference/parserES5ComputedPropertyName5.symbols b/tests/baselines/reference/parserES5ComputedPropertyName5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/parserES5ComputedPropertyName5.symbols rename to tests/baselines/reference/parserES5ComputedPropertyName5(target=es2015).symbols diff --git a/tests/baselines/reference/parserES5ComputedPropertyName5.types b/tests/baselines/reference/parserES5ComputedPropertyName5(target=es2015).types similarity index 100% rename from tests/baselines/reference/parserES5ComputedPropertyName5.types rename to tests/baselines/reference/parserES5ComputedPropertyName5(target=es2015).types diff --git a/tests/baselines/reference/parserES5ComputedPropertyName5(target=es5).errors.txt b/tests/baselines/reference/parserES5ComputedPropertyName5(target=es5).errors.txt new file mode 100644 index 0000000000000..c54d1e44b5f8f --- /dev/null +++ b/tests/baselines/reference/parserES5ComputedPropertyName5(target=es5).errors.txt @@ -0,0 +1,9 @@ +parserES5ComputedPropertyName5.ts(2,6): error TS2304: Cannot find name 'e'. + + +==== parserES5ComputedPropertyName5.ts (1 errors) ==== + interface I { + [e]: number + ~ +!!! error TS2304: Cannot find name 'e'. + } \ No newline at end of file diff --git a/tests/baselines/reference/parserES5ComputedPropertyName5(target=es5).js b/tests/baselines/reference/parserES5ComputedPropertyName5(target=es5).js new file mode 100644 index 0000000000000..2ce9c10fec47f --- /dev/null +++ b/tests/baselines/reference/parserES5ComputedPropertyName5(target=es5).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName5.ts] //// + +//// [parserES5ComputedPropertyName5.ts] +interface I { + [e]: number +} + +//// [parserES5ComputedPropertyName5.js] diff --git a/tests/baselines/reference/parserES5ComputedPropertyName5(target=es5).symbols b/tests/baselines/reference/parserES5ComputedPropertyName5(target=es5).symbols new file mode 100644 index 0000000000000..8ed3b4b9089d7 --- /dev/null +++ b/tests/baselines/reference/parserES5ComputedPropertyName5(target=es5).symbols @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName5.ts] //// + +=== parserES5ComputedPropertyName5.ts === +interface I { +>I : Symbol(I, Decl(parserES5ComputedPropertyName5.ts, 0, 0)) + + [e]: number +>[e] : Symbol(I[e], Decl(parserES5ComputedPropertyName5.ts, 0, 13)) +} diff --git a/tests/baselines/reference/parserES5ComputedPropertyName5(target=es5).types b/tests/baselines/reference/parserES5ComputedPropertyName5(target=es5).types new file mode 100644 index 0000000000000..8aeda590ac6f5 --- /dev/null +++ b/tests/baselines/reference/parserES5ComputedPropertyName5(target=es5).types @@ -0,0 +1,10 @@ +//// [tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName5.ts] //// + +=== parserES5ComputedPropertyName5.ts === +interface I { + [e]: number +>[e] : number +> : ^^^^^^ +>e : any +> : ^^^ +} diff --git a/tests/baselines/reference/parserES5ComputedPropertyName6.errors.txt b/tests/baselines/reference/parserES5ComputedPropertyName6(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/parserES5ComputedPropertyName6.errors.txt rename to tests/baselines/reference/parserES5ComputedPropertyName6(target=es2015).errors.txt diff --git a/tests/baselines/reference/parserES5ComputedPropertyName6.js b/tests/baselines/reference/parserES5ComputedPropertyName6(target=es2015).js similarity index 100% rename from tests/baselines/reference/parserES5ComputedPropertyName6.js rename to tests/baselines/reference/parserES5ComputedPropertyName6(target=es2015).js diff --git a/tests/baselines/reference/parserES5ComputedPropertyName6.symbols b/tests/baselines/reference/parserES5ComputedPropertyName6(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/parserES5ComputedPropertyName6.symbols rename to tests/baselines/reference/parserES5ComputedPropertyName6(target=es2015).symbols diff --git a/tests/baselines/reference/parserES5ComputedPropertyName6.types b/tests/baselines/reference/parserES5ComputedPropertyName6(target=es2015).types similarity index 100% rename from tests/baselines/reference/parserES5ComputedPropertyName6.types rename to tests/baselines/reference/parserES5ComputedPropertyName6(target=es2015).types diff --git a/tests/baselines/reference/parserES5ComputedPropertyName6(target=es5).errors.txt b/tests/baselines/reference/parserES5ComputedPropertyName6(target=es5).errors.txt new file mode 100644 index 0000000000000..eb5f013cbfc8b --- /dev/null +++ b/tests/baselines/reference/parserES5ComputedPropertyName6(target=es5).errors.txt @@ -0,0 +1,9 @@ +parserES5ComputedPropertyName6.ts(2,3): error TS1164: Computed property names are not allowed in enums. + + +==== parserES5ComputedPropertyName6.ts (1 errors) ==== + enum E { + [e] = 1 + ~~~ +!!! error TS1164: Computed property names are not allowed in enums. + } \ No newline at end of file diff --git a/tests/baselines/reference/parserES5ComputedPropertyName6(target=es5).js b/tests/baselines/reference/parserES5ComputedPropertyName6(target=es5).js new file mode 100644 index 0000000000000..9c92d075bf7da --- /dev/null +++ b/tests/baselines/reference/parserES5ComputedPropertyName6(target=es5).js @@ -0,0 +1,12 @@ +//// [tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName6.ts] //// + +//// [parserES5ComputedPropertyName6.ts] +enum E { + [e] = 1 +} + +//// [parserES5ComputedPropertyName6.js] +var E; +(function (E) { + E[E[e] = 1] = e; +})(E || (E = {})); diff --git a/tests/baselines/reference/parserES5ComputedPropertyName6(target=es5).symbols b/tests/baselines/reference/parserES5ComputedPropertyName6(target=es5).symbols new file mode 100644 index 0000000000000..680bb07195c5f --- /dev/null +++ b/tests/baselines/reference/parserES5ComputedPropertyName6(target=es5).symbols @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName6.ts] //// + +=== parserES5ComputedPropertyName6.ts === +enum E { +>E : Symbol(E, Decl(parserES5ComputedPropertyName6.ts, 0, 0)) + + [e] = 1 +>[e] : Symbol(E[e], Decl(parserES5ComputedPropertyName6.ts, 0, 8)) +} diff --git a/tests/baselines/reference/parserES5ComputedPropertyName6(target=es5).types b/tests/baselines/reference/parserES5ComputedPropertyName6(target=es5).types new file mode 100644 index 0000000000000..196b834ad31c0 --- /dev/null +++ b/tests/baselines/reference/parserES5ComputedPropertyName6(target=es5).types @@ -0,0 +1,15 @@ +//// [tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName6.ts] //// + +=== parserES5ComputedPropertyName6.ts === +enum E { +>E : E +> : ^ + + [e] = 1 +>[e] : E +> : ^ +>e : any +> : ^^^ +>1 : 1 +> : ^ +} diff --git a/tests/baselines/reference/parserES5ComputedPropertyName7.errors.txt b/tests/baselines/reference/parserES5ComputedPropertyName7(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/parserES5ComputedPropertyName7.errors.txt rename to tests/baselines/reference/parserES5ComputedPropertyName7(target=es2015).errors.txt diff --git a/tests/baselines/reference/parserES5ComputedPropertyName7(target=es2015).js b/tests/baselines/reference/parserES5ComputedPropertyName7(target=es2015).js new file mode 100644 index 0000000000000..8093391a6d0ac --- /dev/null +++ b/tests/baselines/reference/parserES5ComputedPropertyName7(target=es2015).js @@ -0,0 +1,10 @@ +//// [tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName7.ts] //// + +//// [parserES5ComputedPropertyName7.ts] +class C { + [e] +} + +//// [parserES5ComputedPropertyName7.js] +class C { +} diff --git a/tests/baselines/reference/parserES5ComputedPropertyName7.symbols b/tests/baselines/reference/parserES5ComputedPropertyName7(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/parserES5ComputedPropertyName7.symbols rename to tests/baselines/reference/parserES5ComputedPropertyName7(target=es2015).symbols diff --git a/tests/baselines/reference/parserES5ComputedPropertyName7.types b/tests/baselines/reference/parserES5ComputedPropertyName7(target=es2015).types similarity index 100% rename from tests/baselines/reference/parserES5ComputedPropertyName7.types rename to tests/baselines/reference/parserES5ComputedPropertyName7(target=es2015).types diff --git a/tests/baselines/reference/parserES5ComputedPropertyName7(target=es5).errors.txt b/tests/baselines/reference/parserES5ComputedPropertyName7(target=es5).errors.txt new file mode 100644 index 0000000000000..bffd87321cbac --- /dev/null +++ b/tests/baselines/reference/parserES5ComputedPropertyName7(target=es5).errors.txt @@ -0,0 +1,9 @@ +parserES5ComputedPropertyName7.ts(2,5): error TS2304: Cannot find name 'e'. + + +==== parserES5ComputedPropertyName7.ts (1 errors) ==== + class C { + [e] + ~ +!!! error TS2304: Cannot find name 'e'. + } \ No newline at end of file diff --git a/tests/baselines/reference/parserES5ComputedPropertyName7.js b/tests/baselines/reference/parserES5ComputedPropertyName7(target=es5).js similarity index 100% rename from tests/baselines/reference/parserES5ComputedPropertyName7.js rename to tests/baselines/reference/parserES5ComputedPropertyName7(target=es5).js diff --git a/tests/baselines/reference/parserES5ComputedPropertyName7(target=es5).symbols b/tests/baselines/reference/parserES5ComputedPropertyName7(target=es5).symbols new file mode 100644 index 0000000000000..69c5b44d3d38a --- /dev/null +++ b/tests/baselines/reference/parserES5ComputedPropertyName7(target=es5).symbols @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName7.ts] //// + +=== parserES5ComputedPropertyName7.ts === +class C { +>C : Symbol(C, Decl(parserES5ComputedPropertyName7.ts, 0, 0)) + + [e] +>[e] : Symbol(C[e], Decl(parserES5ComputedPropertyName7.ts, 0, 9)) +} diff --git a/tests/baselines/reference/parserES5ComputedPropertyName7(target=es5).types b/tests/baselines/reference/parserES5ComputedPropertyName7(target=es5).types new file mode 100644 index 0000000000000..49d2ac2619843 --- /dev/null +++ b/tests/baselines/reference/parserES5ComputedPropertyName7(target=es5).types @@ -0,0 +1,13 @@ +//// [tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName7.ts] //// + +=== parserES5ComputedPropertyName7.ts === +class C { +>C : C +> : ^ + + [e] +>[e] : any +> : ^^^ +>e : any +> : ^^^ +} diff --git a/tests/baselines/reference/parserES5ComputedPropertyName8.errors.txt b/tests/baselines/reference/parserES5ComputedPropertyName8(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/parserES5ComputedPropertyName8.errors.txt rename to tests/baselines/reference/parserES5ComputedPropertyName8(target=es2015).errors.txt diff --git a/tests/baselines/reference/parserES5ComputedPropertyName8.js b/tests/baselines/reference/parserES5ComputedPropertyName8(target=es2015).js similarity index 100% rename from tests/baselines/reference/parserES5ComputedPropertyName8.js rename to tests/baselines/reference/parserES5ComputedPropertyName8(target=es2015).js diff --git a/tests/baselines/reference/parserES5ComputedPropertyName8.symbols b/tests/baselines/reference/parserES5ComputedPropertyName8(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/parserES5ComputedPropertyName8.symbols rename to tests/baselines/reference/parserES5ComputedPropertyName8(target=es2015).symbols diff --git a/tests/baselines/reference/parserES5ComputedPropertyName8.types b/tests/baselines/reference/parserES5ComputedPropertyName8(target=es2015).types similarity index 100% rename from tests/baselines/reference/parserES5ComputedPropertyName8.types rename to tests/baselines/reference/parserES5ComputedPropertyName8(target=es2015).types diff --git a/tests/baselines/reference/parserES5ComputedPropertyName8(target=es5).errors.txt b/tests/baselines/reference/parserES5ComputedPropertyName8(target=es5).errors.txt new file mode 100644 index 0000000000000..2295c143ba179 --- /dev/null +++ b/tests/baselines/reference/parserES5ComputedPropertyName8(target=es5).errors.txt @@ -0,0 +1,7 @@ +parserES5ComputedPropertyName8.ts(1,11): error TS2304: Cannot find name 'e'. + + +==== parserES5ComputedPropertyName8.ts (1 errors) ==== + var v: { [e]: number }; + ~ +!!! error TS2304: Cannot find name 'e'. \ No newline at end of file diff --git a/tests/baselines/reference/parserES5ComputedPropertyName8(target=es5).js b/tests/baselines/reference/parserES5ComputedPropertyName8(target=es5).js new file mode 100644 index 0000000000000..eaa0558f771c2 --- /dev/null +++ b/tests/baselines/reference/parserES5ComputedPropertyName8(target=es5).js @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName8.ts] //// + +//// [parserES5ComputedPropertyName8.ts] +var v: { [e]: number }; + +//// [parserES5ComputedPropertyName8.js] +var v; diff --git a/tests/baselines/reference/parserES5ComputedPropertyName8(target=es5).symbols b/tests/baselines/reference/parserES5ComputedPropertyName8(target=es5).symbols new file mode 100644 index 0000000000000..4488ac97d1b98 --- /dev/null +++ b/tests/baselines/reference/parserES5ComputedPropertyName8(target=es5).symbols @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName8.ts] //// + +=== parserES5ComputedPropertyName8.ts === +var v: { [e]: number }; +>v : Symbol(v, Decl(parserES5ComputedPropertyName8.ts, 0, 3)) +>[e] : Symbol([e], Decl(parserES5ComputedPropertyName8.ts, 0, 8)) + diff --git a/tests/baselines/reference/parserES5ComputedPropertyName8(target=es5).types b/tests/baselines/reference/parserES5ComputedPropertyName8(target=es5).types new file mode 100644 index 0000000000000..104894c313e2a --- /dev/null +++ b/tests/baselines/reference/parserES5ComputedPropertyName8(target=es5).types @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName8.ts] //// + +=== parserES5ComputedPropertyName8.ts === +var v: { [e]: number }; +>v : { [x: number]: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^ +>[e] : number +> : ^^^^^^ +>e : any +> : ^^^ + diff --git a/tests/baselines/reference/parserES5ComputedPropertyName9.errors.txt b/tests/baselines/reference/parserES5ComputedPropertyName9(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/parserES5ComputedPropertyName9.errors.txt rename to tests/baselines/reference/parserES5ComputedPropertyName9(target=es2015).errors.txt diff --git a/tests/baselines/reference/parserES5ComputedPropertyName9(target=es2015).js b/tests/baselines/reference/parserES5ComputedPropertyName9(target=es2015).js new file mode 100644 index 0000000000000..e1d0a80f24d89 --- /dev/null +++ b/tests/baselines/reference/parserES5ComputedPropertyName9(target=es2015).js @@ -0,0 +1,10 @@ +//// [tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName9.ts] //// + +//// [parserES5ComputedPropertyName9.ts] +class C { + [e]: Type +} + +//// [parserES5ComputedPropertyName9.js] +class C { +} diff --git a/tests/baselines/reference/parserES5ComputedPropertyName9.symbols b/tests/baselines/reference/parserES5ComputedPropertyName9(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/parserES5ComputedPropertyName9.symbols rename to tests/baselines/reference/parserES5ComputedPropertyName9(target=es2015).symbols diff --git a/tests/baselines/reference/parserES5ComputedPropertyName9.types b/tests/baselines/reference/parserES5ComputedPropertyName9(target=es2015).types similarity index 100% rename from tests/baselines/reference/parserES5ComputedPropertyName9.types rename to tests/baselines/reference/parserES5ComputedPropertyName9(target=es2015).types diff --git a/tests/baselines/reference/parserES5ComputedPropertyName9(target=es5).errors.txt b/tests/baselines/reference/parserES5ComputedPropertyName9(target=es5).errors.txt new file mode 100644 index 0000000000000..361313645c7ee --- /dev/null +++ b/tests/baselines/reference/parserES5ComputedPropertyName9(target=es5).errors.txt @@ -0,0 +1,12 @@ +parserES5ComputedPropertyName9.ts(2,5): error TS2304: Cannot find name 'e'. +parserES5ComputedPropertyName9.ts(2,9): error TS2304: Cannot find name 'Type'. + + +==== parserES5ComputedPropertyName9.ts (2 errors) ==== + class C { + [e]: Type + ~ +!!! error TS2304: Cannot find name 'e'. + ~~~~ +!!! error TS2304: Cannot find name 'Type'. + } \ No newline at end of file diff --git a/tests/baselines/reference/parserES5ComputedPropertyName9.js b/tests/baselines/reference/parserES5ComputedPropertyName9(target=es5).js similarity index 100% rename from tests/baselines/reference/parserES5ComputedPropertyName9.js rename to tests/baselines/reference/parserES5ComputedPropertyName9(target=es5).js diff --git a/tests/baselines/reference/parserES5ComputedPropertyName9(target=es5).symbols b/tests/baselines/reference/parserES5ComputedPropertyName9(target=es5).symbols new file mode 100644 index 0000000000000..3a156390fd0ac --- /dev/null +++ b/tests/baselines/reference/parserES5ComputedPropertyName9(target=es5).symbols @@ -0,0 +1,10 @@ +//// [tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName9.ts] //// + +=== parserES5ComputedPropertyName9.ts === +class C { +>C : Symbol(C, Decl(parserES5ComputedPropertyName9.ts, 0, 0)) + + [e]: Type +>[e] : Symbol(C[e], Decl(parserES5ComputedPropertyName9.ts, 0, 9)) +>Type : Symbol(Type) +} diff --git a/tests/baselines/reference/parserES5ComputedPropertyName9(target=es5).types b/tests/baselines/reference/parserES5ComputedPropertyName9(target=es5).types new file mode 100644 index 0000000000000..0edda70bf7a34 --- /dev/null +++ b/tests/baselines/reference/parserES5ComputedPropertyName9(target=es5).types @@ -0,0 +1,13 @@ +//// [tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName9.ts] //// + +=== parserES5ComputedPropertyName9.ts === +class C { +>C : C +> : ^ + + [e]: Type +>[e] : Type +> : ^^^^ +>e : any +> : ^^^ +} diff --git a/tests/baselines/reference/parserES5ForOfStatement1.d.errors.txt b/tests/baselines/reference/parserES5ForOfStatement1.d(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/parserES5ForOfStatement1.d.errors.txt rename to tests/baselines/reference/parserES5ForOfStatement1.d(target=es2015).errors.txt diff --git a/tests/baselines/reference/parserES5ForOfStatement1.d.symbols b/tests/baselines/reference/parserES5ForOfStatement1.d(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/parserES5ForOfStatement1.d.symbols rename to tests/baselines/reference/parserES5ForOfStatement1.d(target=es2015).symbols diff --git a/tests/baselines/reference/parserES5ForOfStatement1.d.types b/tests/baselines/reference/parserES5ForOfStatement1.d(target=es2015).types similarity index 100% rename from tests/baselines/reference/parserES5ForOfStatement1.d.types rename to tests/baselines/reference/parserES5ForOfStatement1.d(target=es2015).types diff --git a/tests/baselines/reference/parserES5ForOfStatement1.d(target=es5).errors.txt b/tests/baselines/reference/parserES5ForOfStatement1.d(target=es5).errors.txt new file mode 100644 index 0000000000000..84fc212fa299f --- /dev/null +++ b/tests/baselines/reference/parserES5ForOfStatement1.d(target=es5).errors.txt @@ -0,0 +1,11 @@ +parserES5ForOfStatement1.d.ts(1,1): error TS1036: Statements are not allowed in ambient contexts. +parserES5ForOfStatement1.d.ts(1,15): error TS2304: Cannot find name 'e'. + + +==== parserES5ForOfStatement1.d.ts (2 errors) ==== + for (var i of e) { + ~~~ +!!! error TS1036: Statements are not allowed in ambient contexts. + ~ +!!! error TS2304: Cannot find name 'e'. + } \ No newline at end of file diff --git a/tests/baselines/reference/parserES5ForOfStatement1.d(target=es5).symbols b/tests/baselines/reference/parserES5ForOfStatement1.d(target=es5).symbols new file mode 100644 index 0000000000000..0ef631c6d4787 --- /dev/null +++ b/tests/baselines/reference/parserES5ForOfStatement1.d(target=es5).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement1.d.ts] //// + +=== parserES5ForOfStatement1.d.ts === +for (var i of e) { +>i : Symbol(i, Decl(parserES5ForOfStatement1.d.ts, 0, 8)) +} diff --git a/tests/baselines/reference/parserES5ForOfStatement1.d(target=es5).types b/tests/baselines/reference/parserES5ForOfStatement1.d(target=es5).types new file mode 100644 index 0000000000000..6e14452fc92fd --- /dev/null +++ b/tests/baselines/reference/parserES5ForOfStatement1.d(target=es5).types @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement1.d.ts] //// + +=== parserES5ForOfStatement1.d.ts === +for (var i of e) { +>i : any +> : ^^^ +>e : any +> : ^^^ +} diff --git a/tests/baselines/reference/parserES5ForOfStatement10.errors.txt b/tests/baselines/reference/parserES5ForOfStatement10(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/parserES5ForOfStatement10.errors.txt rename to tests/baselines/reference/parserES5ForOfStatement10(target=es2015).errors.txt diff --git a/tests/baselines/reference/parserES5ForOfStatement10(target=es2015).js b/tests/baselines/reference/parserES5ForOfStatement10(target=es2015).js new file mode 100644 index 0000000000000..808b2e9257ec1 --- /dev/null +++ b/tests/baselines/reference/parserES5ForOfStatement10(target=es2015).js @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement10.ts] //// + +//// [parserES5ForOfStatement10.ts] +for (const v of X) { +} + +//// [parserES5ForOfStatement10.js] +for (const v of X) { +} diff --git a/tests/baselines/reference/parserES5ForOfStatement10.symbols b/tests/baselines/reference/parserES5ForOfStatement10(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/parserES5ForOfStatement10.symbols rename to tests/baselines/reference/parserES5ForOfStatement10(target=es2015).symbols diff --git a/tests/baselines/reference/parserES5ForOfStatement10.types b/tests/baselines/reference/parserES5ForOfStatement10(target=es2015).types similarity index 100% rename from tests/baselines/reference/parserES5ForOfStatement10.types rename to tests/baselines/reference/parserES5ForOfStatement10(target=es2015).types diff --git a/tests/baselines/reference/parserES5ForOfStatement10(target=es5).errors.txt b/tests/baselines/reference/parserES5ForOfStatement10(target=es5).errors.txt new file mode 100644 index 0000000000000..2168d44725bde --- /dev/null +++ b/tests/baselines/reference/parserES5ForOfStatement10(target=es5).errors.txt @@ -0,0 +1,8 @@ +parserES5ForOfStatement10.ts(1,17): error TS2304: Cannot find name 'X'. + + +==== parserES5ForOfStatement10.ts (1 errors) ==== + for (const v of X) { + ~ +!!! error TS2304: Cannot find name 'X'. + } \ No newline at end of file diff --git a/tests/baselines/reference/parserES5ForOfStatement10.js b/tests/baselines/reference/parserES5ForOfStatement10(target=es5).js similarity index 100% rename from tests/baselines/reference/parserES5ForOfStatement10.js rename to tests/baselines/reference/parserES5ForOfStatement10(target=es5).js diff --git a/tests/baselines/reference/parserES5ForOfStatement10(target=es5).symbols b/tests/baselines/reference/parserES5ForOfStatement10(target=es5).symbols new file mode 100644 index 0000000000000..14c1b190e523c --- /dev/null +++ b/tests/baselines/reference/parserES5ForOfStatement10(target=es5).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement10.ts] //// + +=== parserES5ForOfStatement10.ts === +for (const v of X) { +>v : Symbol(v, Decl(parserES5ForOfStatement10.ts, 0, 10)) +} diff --git a/tests/baselines/reference/parserES5ForOfStatement10(target=es5).types b/tests/baselines/reference/parserES5ForOfStatement10(target=es5).types new file mode 100644 index 0000000000000..2aa12f3a7d22a --- /dev/null +++ b/tests/baselines/reference/parserES5ForOfStatement10(target=es5).types @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement10.ts] //// + +=== parserES5ForOfStatement10.ts === +for (const v of X) { +>v : any +> : ^^^ +>X : any +> : ^^^ +} diff --git a/tests/baselines/reference/parserES5ForOfStatement11.errors.txt b/tests/baselines/reference/parserES5ForOfStatement11(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/parserES5ForOfStatement11.errors.txt rename to tests/baselines/reference/parserES5ForOfStatement11(target=es2015).errors.txt diff --git a/tests/baselines/reference/parserES5ForOfStatement11(target=es2015).js b/tests/baselines/reference/parserES5ForOfStatement11(target=es2015).js new file mode 100644 index 0000000000000..9b7a2abb34eef --- /dev/null +++ b/tests/baselines/reference/parserES5ForOfStatement11(target=es2015).js @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement11.ts] //// + +//// [parserES5ForOfStatement11.ts] +for (const [a, b] of X) { +} + +//// [parserES5ForOfStatement11.js] +for (const [a, b] of X) { +} diff --git a/tests/baselines/reference/parserES5ForOfStatement11.symbols b/tests/baselines/reference/parserES5ForOfStatement11(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/parserES5ForOfStatement11.symbols rename to tests/baselines/reference/parserES5ForOfStatement11(target=es2015).symbols diff --git a/tests/baselines/reference/parserES5ForOfStatement11.types b/tests/baselines/reference/parserES5ForOfStatement11(target=es2015).types similarity index 100% rename from tests/baselines/reference/parserES5ForOfStatement11.types rename to tests/baselines/reference/parserES5ForOfStatement11(target=es2015).types diff --git a/tests/baselines/reference/parserES5ForOfStatement11(target=es5).errors.txt b/tests/baselines/reference/parserES5ForOfStatement11(target=es5).errors.txt new file mode 100644 index 0000000000000..4164186a2d010 --- /dev/null +++ b/tests/baselines/reference/parserES5ForOfStatement11(target=es5).errors.txt @@ -0,0 +1,8 @@ +parserES5ForOfStatement11.ts(1,22): error TS2304: Cannot find name 'X'. + + +==== parserES5ForOfStatement11.ts (1 errors) ==== + for (const [a, b] of X) { + ~ +!!! error TS2304: Cannot find name 'X'. + } \ No newline at end of file diff --git a/tests/baselines/reference/parserES5ForOfStatement11.js b/tests/baselines/reference/parserES5ForOfStatement11(target=es5).js similarity index 100% rename from tests/baselines/reference/parserES5ForOfStatement11.js rename to tests/baselines/reference/parserES5ForOfStatement11(target=es5).js diff --git a/tests/baselines/reference/parserES5ForOfStatement11(target=es5).symbols b/tests/baselines/reference/parserES5ForOfStatement11(target=es5).symbols new file mode 100644 index 0000000000000..6c8dd5d7ab1f7 --- /dev/null +++ b/tests/baselines/reference/parserES5ForOfStatement11(target=es5).symbols @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement11.ts] //// + +=== parserES5ForOfStatement11.ts === +for (const [a, b] of X) { +>a : Symbol(a, Decl(parserES5ForOfStatement11.ts, 0, 12)) +>b : Symbol(b, Decl(parserES5ForOfStatement11.ts, 0, 14)) +} diff --git a/tests/baselines/reference/parserES5ForOfStatement11(target=es5).types b/tests/baselines/reference/parserES5ForOfStatement11(target=es5).types new file mode 100644 index 0000000000000..ce91fef6f4dd3 --- /dev/null +++ b/tests/baselines/reference/parserES5ForOfStatement11(target=es5).types @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement11.ts] //// + +=== parserES5ForOfStatement11.ts === +for (const [a, b] of X) { +>a : any +> : ^^^ +>b : any +> : ^^^ +>X : any +> : ^^^ +} diff --git a/tests/baselines/reference/parserES5ForOfStatement12.errors.txt b/tests/baselines/reference/parserES5ForOfStatement12(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/parserES5ForOfStatement12.errors.txt rename to tests/baselines/reference/parserES5ForOfStatement12(target=es2015).errors.txt diff --git a/tests/baselines/reference/parserES5ForOfStatement12(target=es2015).js b/tests/baselines/reference/parserES5ForOfStatement12(target=es2015).js new file mode 100644 index 0000000000000..0fd95fb23ad63 --- /dev/null +++ b/tests/baselines/reference/parserES5ForOfStatement12(target=es2015).js @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement12.ts] //// + +//// [parserES5ForOfStatement12.ts] +for (const {a, b} of X) { +} + +//// [parserES5ForOfStatement12.js] +for (const { a, b } of X) { +} diff --git a/tests/baselines/reference/parserES5ForOfStatement12.symbols b/tests/baselines/reference/parserES5ForOfStatement12(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/parserES5ForOfStatement12.symbols rename to tests/baselines/reference/parserES5ForOfStatement12(target=es2015).symbols diff --git a/tests/baselines/reference/parserES5ForOfStatement12.types b/tests/baselines/reference/parserES5ForOfStatement12(target=es2015).types similarity index 100% rename from tests/baselines/reference/parserES5ForOfStatement12.types rename to tests/baselines/reference/parserES5ForOfStatement12(target=es2015).types diff --git a/tests/baselines/reference/parserES5ForOfStatement12(target=es5).errors.txt b/tests/baselines/reference/parserES5ForOfStatement12(target=es5).errors.txt new file mode 100644 index 0000000000000..c966982ff2bab --- /dev/null +++ b/tests/baselines/reference/parserES5ForOfStatement12(target=es5).errors.txt @@ -0,0 +1,8 @@ +parserES5ForOfStatement12.ts(1,22): error TS2304: Cannot find name 'X'. + + +==== parserES5ForOfStatement12.ts (1 errors) ==== + for (const {a, b} of X) { + ~ +!!! error TS2304: Cannot find name 'X'. + } \ No newline at end of file diff --git a/tests/baselines/reference/parserES5ForOfStatement12.js b/tests/baselines/reference/parserES5ForOfStatement12(target=es5).js similarity index 100% rename from tests/baselines/reference/parserES5ForOfStatement12.js rename to tests/baselines/reference/parserES5ForOfStatement12(target=es5).js diff --git a/tests/baselines/reference/parserES5ForOfStatement12(target=es5).symbols b/tests/baselines/reference/parserES5ForOfStatement12(target=es5).symbols new file mode 100644 index 0000000000000..486409baa0012 --- /dev/null +++ b/tests/baselines/reference/parserES5ForOfStatement12(target=es5).symbols @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement12.ts] //// + +=== parserES5ForOfStatement12.ts === +for (const {a, b} of X) { +>a : Symbol(a, Decl(parserES5ForOfStatement12.ts, 0, 12)) +>b : Symbol(b, Decl(parserES5ForOfStatement12.ts, 0, 14)) +} diff --git a/tests/baselines/reference/parserES5ForOfStatement12(target=es5).types b/tests/baselines/reference/parserES5ForOfStatement12(target=es5).types new file mode 100644 index 0000000000000..2d3540c67eaa2 --- /dev/null +++ b/tests/baselines/reference/parserES5ForOfStatement12(target=es5).types @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement12.ts] //// + +=== parserES5ForOfStatement12.ts === +for (const {a, b} of X) { +>a : any +> : ^^^ +>b : any +> : ^^^ +>X : any +> : ^^^ +} diff --git a/tests/baselines/reference/parserES5ForOfStatement13.errors.txt b/tests/baselines/reference/parserES5ForOfStatement13(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/parserES5ForOfStatement13.errors.txt rename to tests/baselines/reference/parserES5ForOfStatement13(target=es2015).errors.txt diff --git a/tests/baselines/reference/parserES5ForOfStatement13(target=es2015).js b/tests/baselines/reference/parserES5ForOfStatement13(target=es2015).js new file mode 100644 index 0000000000000..c95a744318115 --- /dev/null +++ b/tests/baselines/reference/parserES5ForOfStatement13(target=es2015).js @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement13.ts] //// + +//// [parserES5ForOfStatement13.ts] +for (let {a, b} of X) { +} + +//// [parserES5ForOfStatement13.js] +for (let { a, b } of X) { +} diff --git a/tests/baselines/reference/parserES5ForOfStatement13.symbols b/tests/baselines/reference/parserES5ForOfStatement13(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/parserES5ForOfStatement13.symbols rename to tests/baselines/reference/parserES5ForOfStatement13(target=es2015).symbols diff --git a/tests/baselines/reference/parserES5ForOfStatement13.types b/tests/baselines/reference/parserES5ForOfStatement13(target=es2015).types similarity index 100% rename from tests/baselines/reference/parserES5ForOfStatement13.types rename to tests/baselines/reference/parserES5ForOfStatement13(target=es2015).types diff --git a/tests/baselines/reference/parserES5ForOfStatement13(target=es5).errors.txt b/tests/baselines/reference/parserES5ForOfStatement13(target=es5).errors.txt new file mode 100644 index 0000000000000..edf16f2abf6bf --- /dev/null +++ b/tests/baselines/reference/parserES5ForOfStatement13(target=es5).errors.txt @@ -0,0 +1,8 @@ +parserES5ForOfStatement13.ts(1,20): error TS2304: Cannot find name 'X'. + + +==== parserES5ForOfStatement13.ts (1 errors) ==== + for (let {a, b} of X) { + ~ +!!! error TS2304: Cannot find name 'X'. + } \ No newline at end of file diff --git a/tests/baselines/reference/parserES5ForOfStatement13.js b/tests/baselines/reference/parserES5ForOfStatement13(target=es5).js similarity index 100% rename from tests/baselines/reference/parserES5ForOfStatement13.js rename to tests/baselines/reference/parserES5ForOfStatement13(target=es5).js diff --git a/tests/baselines/reference/parserES5ForOfStatement13(target=es5).symbols b/tests/baselines/reference/parserES5ForOfStatement13(target=es5).symbols new file mode 100644 index 0000000000000..bf1bbc608233f --- /dev/null +++ b/tests/baselines/reference/parserES5ForOfStatement13(target=es5).symbols @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement13.ts] //// + +=== parserES5ForOfStatement13.ts === +for (let {a, b} of X) { +>a : Symbol(a, Decl(parserES5ForOfStatement13.ts, 0, 10)) +>b : Symbol(b, Decl(parserES5ForOfStatement13.ts, 0, 12)) +} diff --git a/tests/baselines/reference/parserES5ForOfStatement13(target=es5).types b/tests/baselines/reference/parserES5ForOfStatement13(target=es5).types new file mode 100644 index 0000000000000..8e8da4f6ee27a --- /dev/null +++ b/tests/baselines/reference/parserES5ForOfStatement13(target=es5).types @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement13.ts] //// + +=== parserES5ForOfStatement13.ts === +for (let {a, b} of X) { +>a : any +> : ^^^ +>b : any +> : ^^^ +>X : any +> : ^^^ +} diff --git a/tests/baselines/reference/parserES5ForOfStatement14.errors.txt b/tests/baselines/reference/parserES5ForOfStatement14(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/parserES5ForOfStatement14.errors.txt rename to tests/baselines/reference/parserES5ForOfStatement14(target=es2015).errors.txt diff --git a/tests/baselines/reference/parserES5ForOfStatement14(target=es2015).js b/tests/baselines/reference/parserES5ForOfStatement14(target=es2015).js new file mode 100644 index 0000000000000..99277f39432af --- /dev/null +++ b/tests/baselines/reference/parserES5ForOfStatement14(target=es2015).js @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement14.ts] //// + +//// [parserES5ForOfStatement14.ts] +for (let [a, b] of X) { +} + +//// [parserES5ForOfStatement14.js] +for (let [a, b] of X) { +} diff --git a/tests/baselines/reference/parserES5ForOfStatement14.symbols b/tests/baselines/reference/parserES5ForOfStatement14(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/parserES5ForOfStatement14.symbols rename to tests/baselines/reference/parserES5ForOfStatement14(target=es2015).symbols diff --git a/tests/baselines/reference/parserES5ForOfStatement14.types b/tests/baselines/reference/parserES5ForOfStatement14(target=es2015).types similarity index 100% rename from tests/baselines/reference/parserES5ForOfStatement14.types rename to tests/baselines/reference/parserES5ForOfStatement14(target=es2015).types diff --git a/tests/baselines/reference/parserES5ForOfStatement14(target=es5).errors.txt b/tests/baselines/reference/parserES5ForOfStatement14(target=es5).errors.txt new file mode 100644 index 0000000000000..d66e3a6c3d1ae --- /dev/null +++ b/tests/baselines/reference/parserES5ForOfStatement14(target=es5).errors.txt @@ -0,0 +1,8 @@ +parserES5ForOfStatement14.ts(1,20): error TS2304: Cannot find name 'X'. + + +==== parserES5ForOfStatement14.ts (1 errors) ==== + for (let [a, b] of X) { + ~ +!!! error TS2304: Cannot find name 'X'. + } \ No newline at end of file diff --git a/tests/baselines/reference/parserES5ForOfStatement14.js b/tests/baselines/reference/parserES5ForOfStatement14(target=es5).js similarity index 100% rename from tests/baselines/reference/parserES5ForOfStatement14.js rename to tests/baselines/reference/parserES5ForOfStatement14(target=es5).js diff --git a/tests/baselines/reference/parserES5ForOfStatement14(target=es5).symbols b/tests/baselines/reference/parserES5ForOfStatement14(target=es5).symbols new file mode 100644 index 0000000000000..6e549cf5df2c4 --- /dev/null +++ b/tests/baselines/reference/parserES5ForOfStatement14(target=es5).symbols @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement14.ts] //// + +=== parserES5ForOfStatement14.ts === +for (let [a, b] of X) { +>a : Symbol(a, Decl(parserES5ForOfStatement14.ts, 0, 10)) +>b : Symbol(b, Decl(parserES5ForOfStatement14.ts, 0, 12)) +} diff --git a/tests/baselines/reference/parserES5ForOfStatement14(target=es5).types b/tests/baselines/reference/parserES5ForOfStatement14(target=es5).types new file mode 100644 index 0000000000000..ac6d171120f95 --- /dev/null +++ b/tests/baselines/reference/parserES5ForOfStatement14(target=es5).types @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement14.ts] //// + +=== parserES5ForOfStatement14.ts === +for (let [a, b] of X) { +>a : any +> : ^^^ +>b : any +> : ^^^ +>X : any +> : ^^^ +} diff --git a/tests/baselines/reference/parserES5ForOfStatement15.errors.txt b/tests/baselines/reference/parserES5ForOfStatement15(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/parserES5ForOfStatement15.errors.txt rename to tests/baselines/reference/parserES5ForOfStatement15(target=es2015).errors.txt diff --git a/tests/baselines/reference/parserES5ForOfStatement15(target=es2015).js b/tests/baselines/reference/parserES5ForOfStatement15(target=es2015).js new file mode 100644 index 0000000000000..e09698faa2aae --- /dev/null +++ b/tests/baselines/reference/parserES5ForOfStatement15(target=es2015).js @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement15.ts] //// + +//// [parserES5ForOfStatement15.ts] +for (var [a, b] of X) { +} + +//// [parserES5ForOfStatement15.js] +for (var [a, b] of X) { +} diff --git a/tests/baselines/reference/parserES5ForOfStatement15.symbols b/tests/baselines/reference/parserES5ForOfStatement15(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/parserES5ForOfStatement15.symbols rename to tests/baselines/reference/parserES5ForOfStatement15(target=es2015).symbols diff --git a/tests/baselines/reference/parserES5ForOfStatement15.types b/tests/baselines/reference/parserES5ForOfStatement15(target=es2015).types similarity index 100% rename from tests/baselines/reference/parserES5ForOfStatement15.types rename to tests/baselines/reference/parserES5ForOfStatement15(target=es2015).types diff --git a/tests/baselines/reference/parserES5ForOfStatement15(target=es5).errors.txt b/tests/baselines/reference/parserES5ForOfStatement15(target=es5).errors.txt new file mode 100644 index 0000000000000..fda1d52e35171 --- /dev/null +++ b/tests/baselines/reference/parserES5ForOfStatement15(target=es5).errors.txt @@ -0,0 +1,8 @@ +parserES5ForOfStatement15.ts(1,20): error TS2304: Cannot find name 'X'. + + +==== parserES5ForOfStatement15.ts (1 errors) ==== + for (var [a, b] of X) { + ~ +!!! error TS2304: Cannot find name 'X'. + } \ No newline at end of file diff --git a/tests/baselines/reference/parserES5ForOfStatement15.js b/tests/baselines/reference/parserES5ForOfStatement15(target=es5).js similarity index 100% rename from tests/baselines/reference/parserES5ForOfStatement15.js rename to tests/baselines/reference/parserES5ForOfStatement15(target=es5).js diff --git a/tests/baselines/reference/parserES5ForOfStatement15(target=es5).symbols b/tests/baselines/reference/parserES5ForOfStatement15(target=es5).symbols new file mode 100644 index 0000000000000..65511ba224988 --- /dev/null +++ b/tests/baselines/reference/parserES5ForOfStatement15(target=es5).symbols @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement15.ts] //// + +=== parserES5ForOfStatement15.ts === +for (var [a, b] of X) { +>a : Symbol(a, Decl(parserES5ForOfStatement15.ts, 0, 10)) +>b : Symbol(b, Decl(parserES5ForOfStatement15.ts, 0, 12)) +} diff --git a/tests/baselines/reference/parserES5ForOfStatement15(target=es5).types b/tests/baselines/reference/parserES5ForOfStatement15(target=es5).types new file mode 100644 index 0000000000000..bb4b3911ab994 --- /dev/null +++ b/tests/baselines/reference/parserES5ForOfStatement15(target=es5).types @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement15.ts] //// + +=== parserES5ForOfStatement15.ts === +for (var [a, b] of X) { +>a : any +> : ^^^ +>b : any +> : ^^^ +>X : any +> : ^^^ +} diff --git a/tests/baselines/reference/parserES5ForOfStatement16.errors.txt b/tests/baselines/reference/parserES5ForOfStatement16(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/parserES5ForOfStatement16.errors.txt rename to tests/baselines/reference/parserES5ForOfStatement16(target=es2015).errors.txt diff --git a/tests/baselines/reference/parserES5ForOfStatement16(target=es2015).js b/tests/baselines/reference/parserES5ForOfStatement16(target=es2015).js new file mode 100644 index 0000000000000..68452716046b0 --- /dev/null +++ b/tests/baselines/reference/parserES5ForOfStatement16(target=es2015).js @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement16.ts] //// + +//// [parserES5ForOfStatement16.ts] +for (var {a, b} of X) { +} + +//// [parserES5ForOfStatement16.js] +for (var { a, b } of X) { +} diff --git a/tests/baselines/reference/parserES5ForOfStatement16.symbols b/tests/baselines/reference/parserES5ForOfStatement16(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/parserES5ForOfStatement16.symbols rename to tests/baselines/reference/parserES5ForOfStatement16(target=es2015).symbols diff --git a/tests/baselines/reference/parserES5ForOfStatement16.types b/tests/baselines/reference/parserES5ForOfStatement16(target=es2015).types similarity index 100% rename from tests/baselines/reference/parserES5ForOfStatement16.types rename to tests/baselines/reference/parserES5ForOfStatement16(target=es2015).types diff --git a/tests/baselines/reference/parserES5ForOfStatement16(target=es5).errors.txt b/tests/baselines/reference/parserES5ForOfStatement16(target=es5).errors.txt new file mode 100644 index 0000000000000..12212c0af3dd1 --- /dev/null +++ b/tests/baselines/reference/parserES5ForOfStatement16(target=es5).errors.txt @@ -0,0 +1,8 @@ +parserES5ForOfStatement16.ts(1,20): error TS2304: Cannot find name 'X'. + + +==== parserES5ForOfStatement16.ts (1 errors) ==== + for (var {a, b} of X) { + ~ +!!! error TS2304: Cannot find name 'X'. + } \ No newline at end of file diff --git a/tests/baselines/reference/parserES5ForOfStatement16.js b/tests/baselines/reference/parserES5ForOfStatement16(target=es5).js similarity index 100% rename from tests/baselines/reference/parserES5ForOfStatement16.js rename to tests/baselines/reference/parserES5ForOfStatement16(target=es5).js diff --git a/tests/baselines/reference/parserES5ForOfStatement16(target=es5).symbols b/tests/baselines/reference/parserES5ForOfStatement16(target=es5).symbols new file mode 100644 index 0000000000000..91a646007513b --- /dev/null +++ b/tests/baselines/reference/parserES5ForOfStatement16(target=es5).symbols @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement16.ts] //// + +=== parserES5ForOfStatement16.ts === +for (var {a, b} of X) { +>a : Symbol(a, Decl(parserES5ForOfStatement16.ts, 0, 10)) +>b : Symbol(b, Decl(parserES5ForOfStatement16.ts, 0, 12)) +} diff --git a/tests/baselines/reference/parserES5ForOfStatement16(target=es5).types b/tests/baselines/reference/parserES5ForOfStatement16(target=es5).types new file mode 100644 index 0000000000000..ca78cdf271930 --- /dev/null +++ b/tests/baselines/reference/parserES5ForOfStatement16(target=es5).types @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement16.ts] //// + +=== parserES5ForOfStatement16.ts === +for (var {a, b} of X) { +>a : any +> : ^^^ +>b : any +> : ^^^ +>X : any +> : ^^^ +} diff --git a/tests/baselines/reference/parserES5ForOfStatement17.js b/tests/baselines/reference/parserES5ForOfStatement17(target=es2015).js similarity index 100% rename from tests/baselines/reference/parserES5ForOfStatement17.js rename to tests/baselines/reference/parserES5ForOfStatement17(target=es2015).js diff --git a/tests/baselines/reference/parserES5ForOfStatement17.symbols b/tests/baselines/reference/parserES5ForOfStatement17(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/parserES5ForOfStatement17.symbols rename to tests/baselines/reference/parserES5ForOfStatement17(target=es2015).symbols diff --git a/tests/baselines/reference/parserES5ForOfStatement17.types b/tests/baselines/reference/parserES5ForOfStatement17(target=es2015).types similarity index 100% rename from tests/baselines/reference/parserES5ForOfStatement17.types rename to tests/baselines/reference/parserES5ForOfStatement17(target=es2015).types diff --git a/tests/baselines/reference/parserES5ForOfStatement17(target=es5).js b/tests/baselines/reference/parserES5ForOfStatement17(target=es5).js new file mode 100644 index 0000000000000..f02afb55e9d3b --- /dev/null +++ b/tests/baselines/reference/parserES5ForOfStatement17(target=es5).js @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement17.ts] //// + +//// [parserES5ForOfStatement17.ts] +for (var of; ;) { } + +//// [parserES5ForOfStatement17.js] +for (var of;;) { } diff --git a/tests/baselines/reference/parserES5ForOfStatement17(target=es5).symbols b/tests/baselines/reference/parserES5ForOfStatement17(target=es5).symbols new file mode 100644 index 0000000000000..52e13803344eb --- /dev/null +++ b/tests/baselines/reference/parserES5ForOfStatement17(target=es5).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement17.ts] //// + +=== parserES5ForOfStatement17.ts === +for (var of; ;) { } +>of : Symbol(of, Decl(parserES5ForOfStatement17.ts, 0, 8)) + diff --git a/tests/baselines/reference/parserES5ForOfStatement17(target=es5).types b/tests/baselines/reference/parserES5ForOfStatement17(target=es5).types new file mode 100644 index 0000000000000..2d602c34a327e --- /dev/null +++ b/tests/baselines/reference/parserES5ForOfStatement17(target=es5).types @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement17.ts] //// + +=== parserES5ForOfStatement17.ts === +for (var of; ;) { } +>of : any + diff --git a/tests/baselines/reference/parserES5ForOfStatement18(target=es2015).js b/tests/baselines/reference/parserES5ForOfStatement18(target=es2015).js new file mode 100644 index 0000000000000..f3b5a427d8fa1 --- /dev/null +++ b/tests/baselines/reference/parserES5ForOfStatement18(target=es2015).js @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement18.ts] //// + +//// [parserES5ForOfStatement18.ts] +for (var of of of) { } + +//// [parserES5ForOfStatement18.js] +for (var of of of) { } diff --git a/tests/baselines/reference/parserES5ForOfStatement18.symbols b/tests/baselines/reference/parserES5ForOfStatement18(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/parserES5ForOfStatement18.symbols rename to tests/baselines/reference/parserES5ForOfStatement18(target=es2015).symbols diff --git a/tests/baselines/reference/parserES5ForOfStatement18.types b/tests/baselines/reference/parserES5ForOfStatement18(target=es2015).types similarity index 100% rename from tests/baselines/reference/parserES5ForOfStatement18.types rename to tests/baselines/reference/parserES5ForOfStatement18(target=es2015).types diff --git a/tests/baselines/reference/parserES5ForOfStatement18.js b/tests/baselines/reference/parserES5ForOfStatement18(target=es5).js similarity index 100% rename from tests/baselines/reference/parserES5ForOfStatement18.js rename to tests/baselines/reference/parserES5ForOfStatement18(target=es5).js diff --git a/tests/baselines/reference/parserES5ForOfStatement18(target=es5).symbols b/tests/baselines/reference/parserES5ForOfStatement18(target=es5).symbols new file mode 100644 index 0000000000000..b9eee2f895704 --- /dev/null +++ b/tests/baselines/reference/parserES5ForOfStatement18(target=es5).symbols @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement18.ts] //// + +=== parserES5ForOfStatement18.ts === +for (var of of of) { } +>of : Symbol(of, Decl(parserES5ForOfStatement18.ts, 0, 8)) +>of : Symbol(of, Decl(parserES5ForOfStatement18.ts, 0, 8)) + diff --git a/tests/baselines/reference/parserES5ForOfStatement18(target=es5).types b/tests/baselines/reference/parserES5ForOfStatement18(target=es5).types new file mode 100644 index 0000000000000..029dae57b1f38 --- /dev/null +++ b/tests/baselines/reference/parserES5ForOfStatement18(target=es5).types @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement18.ts] //// + +=== parserES5ForOfStatement18.ts === +for (var of of of) { } +>of : any +>of : any + diff --git a/tests/baselines/reference/parserES5ForOfStatement19.js b/tests/baselines/reference/parserES5ForOfStatement19(target=es2015).js similarity index 100% rename from tests/baselines/reference/parserES5ForOfStatement19.js rename to tests/baselines/reference/parserES5ForOfStatement19(target=es2015).js diff --git a/tests/baselines/reference/parserES5ForOfStatement19.symbols b/tests/baselines/reference/parserES5ForOfStatement19(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/parserES5ForOfStatement19.symbols rename to tests/baselines/reference/parserES5ForOfStatement19(target=es2015).symbols diff --git a/tests/baselines/reference/parserES5ForOfStatement19.types b/tests/baselines/reference/parserES5ForOfStatement19(target=es2015).types similarity index 100% rename from tests/baselines/reference/parserES5ForOfStatement19.types rename to tests/baselines/reference/parserES5ForOfStatement19(target=es2015).types diff --git a/tests/baselines/reference/parserES5ForOfStatement19(target=es5).js b/tests/baselines/reference/parserES5ForOfStatement19(target=es5).js new file mode 100644 index 0000000000000..6dd8ba508bd99 --- /dev/null +++ b/tests/baselines/reference/parserES5ForOfStatement19(target=es5).js @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement19.ts] //// + +//// [parserES5ForOfStatement19.ts] +for (var of in of) { } + +//// [parserES5ForOfStatement19.js] +for (var of in of) { } diff --git a/tests/baselines/reference/parserES5ForOfStatement19(target=es5).symbols b/tests/baselines/reference/parserES5ForOfStatement19(target=es5).symbols new file mode 100644 index 0000000000000..fd647f7ee6c9e --- /dev/null +++ b/tests/baselines/reference/parserES5ForOfStatement19(target=es5).symbols @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement19.ts] //// + +=== parserES5ForOfStatement19.ts === +for (var of in of) { } +>of : Symbol(of, Decl(parserES5ForOfStatement19.ts, 0, 8)) +>of : Symbol(of, Decl(parserES5ForOfStatement19.ts, 0, 8)) + diff --git a/tests/baselines/reference/parserES5ForOfStatement19(target=es5).types b/tests/baselines/reference/parserES5ForOfStatement19(target=es5).types new file mode 100644 index 0000000000000..b46f470c960a6 --- /dev/null +++ b/tests/baselines/reference/parserES5ForOfStatement19(target=es5).types @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement19.ts] //// + +=== parserES5ForOfStatement19.ts === +for (var of in of) { } +>of : any +>of : any + diff --git a/tests/baselines/reference/parserES5ForOfStatement2.errors.txt b/tests/baselines/reference/parserES5ForOfStatement2(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/parserES5ForOfStatement2.errors.txt rename to tests/baselines/reference/parserES5ForOfStatement2(target=es2015).errors.txt diff --git a/tests/baselines/reference/parserES5ForOfStatement2(target=es2015).js b/tests/baselines/reference/parserES5ForOfStatement2(target=es2015).js new file mode 100644 index 0000000000000..85a8c8a19c354 --- /dev/null +++ b/tests/baselines/reference/parserES5ForOfStatement2(target=es2015).js @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement2.ts] //// + +//// [parserES5ForOfStatement2.ts] +for (var of X) { +} + +//// [parserES5ForOfStatement2.js] +for (var of X) { +} diff --git a/tests/baselines/reference/parserES5ForOfStatement2.symbols b/tests/baselines/reference/parserES5ForOfStatement2(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/parserES5ForOfStatement2.symbols rename to tests/baselines/reference/parserES5ForOfStatement2(target=es2015).symbols diff --git a/tests/baselines/reference/parserES5ForOfStatement2.types b/tests/baselines/reference/parserES5ForOfStatement2(target=es2015).types similarity index 100% rename from tests/baselines/reference/parserES5ForOfStatement2.types rename to tests/baselines/reference/parserES5ForOfStatement2(target=es2015).types diff --git a/tests/baselines/reference/parserES5ForOfStatement2(target=es5).errors.txt b/tests/baselines/reference/parserES5ForOfStatement2(target=es5).errors.txt new file mode 100644 index 0000000000000..0e7dcd5230a64 --- /dev/null +++ b/tests/baselines/reference/parserES5ForOfStatement2(target=es5).errors.txt @@ -0,0 +1,8 @@ +parserES5ForOfStatement2.ts(1,9): error TS1123: Variable declaration list cannot be empty. + + +==== parserES5ForOfStatement2.ts (1 errors) ==== + for (var of X) { + +!!! error TS1123: Variable declaration list cannot be empty. + } \ No newline at end of file diff --git a/tests/baselines/reference/parserES5ForOfStatement2.js b/tests/baselines/reference/parserES5ForOfStatement2(target=es5).js similarity index 100% rename from tests/baselines/reference/parserES5ForOfStatement2.js rename to tests/baselines/reference/parserES5ForOfStatement2(target=es5).js diff --git a/tests/baselines/reference/parserES5ForOfStatement2(target=es5).symbols b/tests/baselines/reference/parserES5ForOfStatement2(target=es5).symbols new file mode 100644 index 0000000000000..6f86795bdba01 --- /dev/null +++ b/tests/baselines/reference/parserES5ForOfStatement2(target=es5).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement2.ts] //// + +=== parserES5ForOfStatement2.ts === + +for (var of X) { +} diff --git a/tests/baselines/reference/parserES5ForOfStatement2(target=es5).types b/tests/baselines/reference/parserES5ForOfStatement2(target=es5).types new file mode 100644 index 0000000000000..27d731bd857ce --- /dev/null +++ b/tests/baselines/reference/parserES5ForOfStatement2(target=es5).types @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement2.ts] //// + +=== parserES5ForOfStatement2.ts === +for (var of X) { +>X : any +> : ^^^ +} diff --git a/tests/baselines/reference/parserES5ForOfStatement20.errors.txt b/tests/baselines/reference/parserES5ForOfStatement20(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/parserES5ForOfStatement20.errors.txt rename to tests/baselines/reference/parserES5ForOfStatement20(target=es2015).errors.txt diff --git a/tests/baselines/reference/parserES5ForOfStatement20.js b/tests/baselines/reference/parserES5ForOfStatement20(target=es2015).js similarity index 100% rename from tests/baselines/reference/parserES5ForOfStatement20.js rename to tests/baselines/reference/parserES5ForOfStatement20(target=es2015).js diff --git a/tests/baselines/reference/parserES5ForOfStatement20.symbols b/tests/baselines/reference/parserES5ForOfStatement20(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/parserES5ForOfStatement20.symbols rename to tests/baselines/reference/parserES5ForOfStatement20(target=es2015).symbols diff --git a/tests/baselines/reference/parserES5ForOfStatement20.types b/tests/baselines/reference/parserES5ForOfStatement20(target=es2015).types similarity index 100% rename from tests/baselines/reference/parserES5ForOfStatement20.types rename to tests/baselines/reference/parserES5ForOfStatement20(target=es2015).types diff --git a/tests/baselines/reference/parserES5ForOfStatement20(target=es5).errors.txt b/tests/baselines/reference/parserES5ForOfStatement20(target=es5).errors.txt new file mode 100644 index 0000000000000..9b89ab736bbf1 --- /dev/null +++ b/tests/baselines/reference/parserES5ForOfStatement20(target=es5).errors.txt @@ -0,0 +1,7 @@ +parserES5ForOfStatement20.ts(1,10): error TS1189: The variable declaration of a 'for...in' statement cannot have an initializer. + + +==== parserES5ForOfStatement20.ts (1 errors) ==== + for (var of = 0 in of) { } + ~~ +!!! error TS1189: The variable declaration of a 'for...in' statement cannot have an initializer. \ No newline at end of file diff --git a/tests/baselines/reference/parserES5ForOfStatement20(target=es5).js b/tests/baselines/reference/parserES5ForOfStatement20(target=es5).js new file mode 100644 index 0000000000000..c844c7dbae7a7 --- /dev/null +++ b/tests/baselines/reference/parserES5ForOfStatement20(target=es5).js @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement20.ts] //// + +//// [parserES5ForOfStatement20.ts] +for (var of = 0 in of) { } + +//// [parserES5ForOfStatement20.js] +for (var of = 0 in of) { } diff --git a/tests/baselines/reference/parserES5ForOfStatement20(target=es5).symbols b/tests/baselines/reference/parserES5ForOfStatement20(target=es5).symbols new file mode 100644 index 0000000000000..f7d7d82afc258 --- /dev/null +++ b/tests/baselines/reference/parserES5ForOfStatement20(target=es5).symbols @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement20.ts] //// + +=== parserES5ForOfStatement20.ts === +for (var of = 0 in of) { } +>of : Symbol(of, Decl(parserES5ForOfStatement20.ts, 0, 8)) +>of : Symbol(of, Decl(parserES5ForOfStatement20.ts, 0, 8)) + diff --git a/tests/baselines/reference/parserES5ForOfStatement20(target=es5).types b/tests/baselines/reference/parserES5ForOfStatement20(target=es5).types new file mode 100644 index 0000000000000..da8c9881086d4 --- /dev/null +++ b/tests/baselines/reference/parserES5ForOfStatement20(target=es5).types @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement20.ts] //// + +=== parserES5ForOfStatement20.ts === +for (var of = 0 in of) { } +>of : any +> : ^^^ +>0 : 0 +> : ^ +>of : any +> : ^^^ + diff --git a/tests/baselines/reference/parserES5ForOfStatement21.errors.txt b/tests/baselines/reference/parserES5ForOfStatement21(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/parserES5ForOfStatement21.errors.txt rename to tests/baselines/reference/parserES5ForOfStatement21(target=es2015).errors.txt diff --git a/tests/baselines/reference/parserES5ForOfStatement21(target=es2015).js b/tests/baselines/reference/parserES5ForOfStatement21(target=es2015).js new file mode 100644 index 0000000000000..e26f5b6129d99 --- /dev/null +++ b/tests/baselines/reference/parserES5ForOfStatement21(target=es2015).js @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement21.ts] //// + +//// [parserES5ForOfStatement21.ts] +for (var of of) { } + +//// [parserES5ForOfStatement21.js] +for (var of of) { } diff --git a/tests/baselines/reference/parserES5ForOfStatement21.symbols b/tests/baselines/reference/parserES5ForOfStatement21(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/parserES5ForOfStatement21.symbols rename to tests/baselines/reference/parserES5ForOfStatement21(target=es2015).symbols diff --git a/tests/baselines/reference/parserES5ForOfStatement21.types b/tests/baselines/reference/parserES5ForOfStatement21(target=es2015).types similarity index 100% rename from tests/baselines/reference/parserES5ForOfStatement21.types rename to tests/baselines/reference/parserES5ForOfStatement21(target=es2015).types diff --git a/tests/baselines/reference/parserES5ForOfStatement21(target=es5).errors.txt b/tests/baselines/reference/parserES5ForOfStatement21(target=es5).errors.txt new file mode 100644 index 0000000000000..9fdaa2372b6bb --- /dev/null +++ b/tests/baselines/reference/parserES5ForOfStatement21(target=es5).errors.txt @@ -0,0 +1,7 @@ +parserES5ForOfStatement21.ts(1,9): error TS1123: Variable declaration list cannot be empty. + + +==== parserES5ForOfStatement21.ts (1 errors) ==== + for (var of of) { } + +!!! error TS1123: Variable declaration list cannot be empty. \ No newline at end of file diff --git a/tests/baselines/reference/parserES5ForOfStatement21.js b/tests/baselines/reference/parserES5ForOfStatement21(target=es5).js similarity index 100% rename from tests/baselines/reference/parserES5ForOfStatement21.js rename to tests/baselines/reference/parserES5ForOfStatement21(target=es5).js diff --git a/tests/baselines/reference/parserES5ForOfStatement21(target=es5).symbols b/tests/baselines/reference/parserES5ForOfStatement21(target=es5).symbols new file mode 100644 index 0000000000000..13f64929e694c --- /dev/null +++ b/tests/baselines/reference/parserES5ForOfStatement21(target=es5).symbols @@ -0,0 +1,5 @@ +//// [tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement21.ts] //// + +=== parserES5ForOfStatement21.ts === + +for (var of of) { } diff --git a/tests/baselines/reference/parserES5ForOfStatement21(target=es5).types b/tests/baselines/reference/parserES5ForOfStatement21(target=es5).types new file mode 100644 index 0000000000000..884f9b9fea29c --- /dev/null +++ b/tests/baselines/reference/parserES5ForOfStatement21(target=es5).types @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement21.ts] //// + +=== parserES5ForOfStatement21.ts === +for (var of of) { } +>of : any +> : ^^^ + diff --git a/tests/baselines/reference/parserES5ForOfStatement3.errors.txt b/tests/baselines/reference/parserES5ForOfStatement3(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/parserES5ForOfStatement3.errors.txt rename to tests/baselines/reference/parserES5ForOfStatement3(target=es2015).errors.txt diff --git a/tests/baselines/reference/parserES5ForOfStatement3(target=es2015).js b/tests/baselines/reference/parserES5ForOfStatement3(target=es2015).js new file mode 100644 index 0000000000000..9d8fa74e296b8 --- /dev/null +++ b/tests/baselines/reference/parserES5ForOfStatement3(target=es2015).js @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement3.ts] //// + +//// [parserES5ForOfStatement3.ts] +for (var a, b of X) { +} + +//// [parserES5ForOfStatement3.js] +for (var a, b of X) { +} diff --git a/tests/baselines/reference/parserES5ForOfStatement3.symbols b/tests/baselines/reference/parserES5ForOfStatement3(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/parserES5ForOfStatement3.symbols rename to tests/baselines/reference/parserES5ForOfStatement3(target=es2015).symbols diff --git a/tests/baselines/reference/parserES5ForOfStatement3.types b/tests/baselines/reference/parserES5ForOfStatement3(target=es2015).types similarity index 100% rename from tests/baselines/reference/parserES5ForOfStatement3.types rename to tests/baselines/reference/parserES5ForOfStatement3(target=es2015).types diff --git a/tests/baselines/reference/parserES5ForOfStatement3(target=es5).errors.txt b/tests/baselines/reference/parserES5ForOfStatement3(target=es5).errors.txt new file mode 100644 index 0000000000000..0d2025b4b0e08 --- /dev/null +++ b/tests/baselines/reference/parserES5ForOfStatement3(target=es5).errors.txt @@ -0,0 +1,11 @@ +parserES5ForOfStatement3.ts(1,13): error TS1188: Only a single variable declaration is allowed in a 'for...of' statement. +parserES5ForOfStatement3.ts(1,18): error TS2304: Cannot find name 'X'. + + +==== parserES5ForOfStatement3.ts (2 errors) ==== + for (var a, b of X) { + ~ +!!! error TS1188: Only a single variable declaration is allowed in a 'for...of' statement. + ~ +!!! error TS2304: Cannot find name 'X'. + } \ No newline at end of file diff --git a/tests/baselines/reference/parserES5ForOfStatement3.js b/tests/baselines/reference/parserES5ForOfStatement3(target=es5).js similarity index 100% rename from tests/baselines/reference/parserES5ForOfStatement3.js rename to tests/baselines/reference/parserES5ForOfStatement3(target=es5).js diff --git a/tests/baselines/reference/parserES5ForOfStatement3(target=es5).symbols b/tests/baselines/reference/parserES5ForOfStatement3(target=es5).symbols new file mode 100644 index 0000000000000..e21bb581b219e --- /dev/null +++ b/tests/baselines/reference/parserES5ForOfStatement3(target=es5).symbols @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement3.ts] //// + +=== parserES5ForOfStatement3.ts === +for (var a, b of X) { +>a : Symbol(a, Decl(parserES5ForOfStatement3.ts, 0, 8)) +>b : Symbol(b, Decl(parserES5ForOfStatement3.ts, 0, 11)) +} diff --git a/tests/baselines/reference/parserES5ForOfStatement3(target=es5).types b/tests/baselines/reference/parserES5ForOfStatement3(target=es5).types new file mode 100644 index 0000000000000..6f532a841fae5 --- /dev/null +++ b/tests/baselines/reference/parserES5ForOfStatement3(target=es5).types @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement3.ts] //// + +=== parserES5ForOfStatement3.ts === +for (var a, b of X) { +>a : any +> : ^^^ +>b : any +> : ^^^ +>X : any +> : ^^^ +} diff --git a/tests/baselines/reference/parserES5ForOfStatement4.errors.txt b/tests/baselines/reference/parserES5ForOfStatement4(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/parserES5ForOfStatement4.errors.txt rename to tests/baselines/reference/parserES5ForOfStatement4(target=es2015).errors.txt diff --git a/tests/baselines/reference/parserES5ForOfStatement4(target=es2015).js b/tests/baselines/reference/parserES5ForOfStatement4(target=es2015).js new file mode 100644 index 0000000000000..dcbc6758db092 --- /dev/null +++ b/tests/baselines/reference/parserES5ForOfStatement4(target=es2015).js @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement4.ts] //// + +//// [parserES5ForOfStatement4.ts] +for (var a = 1 of X) { +} + +//// [parserES5ForOfStatement4.js] +for (var a = 1 of X) { +} diff --git a/tests/baselines/reference/parserES5ForOfStatement4.symbols b/tests/baselines/reference/parserES5ForOfStatement4(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/parserES5ForOfStatement4.symbols rename to tests/baselines/reference/parserES5ForOfStatement4(target=es2015).symbols diff --git a/tests/baselines/reference/parserES5ForOfStatement4.types b/tests/baselines/reference/parserES5ForOfStatement4(target=es2015).types similarity index 100% rename from tests/baselines/reference/parserES5ForOfStatement4.types rename to tests/baselines/reference/parserES5ForOfStatement4(target=es2015).types diff --git a/tests/baselines/reference/parserES5ForOfStatement4(target=es5).errors.txt b/tests/baselines/reference/parserES5ForOfStatement4(target=es5).errors.txt new file mode 100644 index 0000000000000..2734048b65182 --- /dev/null +++ b/tests/baselines/reference/parserES5ForOfStatement4(target=es5).errors.txt @@ -0,0 +1,11 @@ +parserES5ForOfStatement4.ts(1,10): error TS1190: The variable declaration of a 'for...of' statement cannot have an initializer. +parserES5ForOfStatement4.ts(1,19): error TS2304: Cannot find name 'X'. + + +==== parserES5ForOfStatement4.ts (2 errors) ==== + for (var a = 1 of X) { + ~ +!!! error TS1190: The variable declaration of a 'for...of' statement cannot have an initializer. + ~ +!!! error TS2304: Cannot find name 'X'. + } \ No newline at end of file diff --git a/tests/baselines/reference/parserES5ForOfStatement4.js b/tests/baselines/reference/parserES5ForOfStatement4(target=es5).js similarity index 100% rename from tests/baselines/reference/parserES5ForOfStatement4.js rename to tests/baselines/reference/parserES5ForOfStatement4(target=es5).js diff --git a/tests/baselines/reference/parserES5ForOfStatement4(target=es5).symbols b/tests/baselines/reference/parserES5ForOfStatement4(target=es5).symbols new file mode 100644 index 0000000000000..22264cff6bafb --- /dev/null +++ b/tests/baselines/reference/parserES5ForOfStatement4(target=es5).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement4.ts] //// + +=== parserES5ForOfStatement4.ts === +for (var a = 1 of X) { +>a : Symbol(a, Decl(parserES5ForOfStatement4.ts, 0, 8)) +} diff --git a/tests/baselines/reference/parserES5ForOfStatement4(target=es5).types b/tests/baselines/reference/parserES5ForOfStatement4(target=es5).types new file mode 100644 index 0000000000000..4481d356c1303 --- /dev/null +++ b/tests/baselines/reference/parserES5ForOfStatement4(target=es5).types @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement4.ts] //// + +=== parserES5ForOfStatement4.ts === +for (var a = 1 of X) { +>a : any +> : ^^^ +>1 : 1 +> : ^ +>X : any +> : ^^^ +} diff --git a/tests/baselines/reference/parserES5ForOfStatement5.errors.txt b/tests/baselines/reference/parserES5ForOfStatement5(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/parserES5ForOfStatement5.errors.txt rename to tests/baselines/reference/parserES5ForOfStatement5(target=es2015).errors.txt diff --git a/tests/baselines/reference/parserES5ForOfStatement5(target=es2015).js b/tests/baselines/reference/parserES5ForOfStatement5(target=es2015).js new file mode 100644 index 0000000000000..dc85e7bfe891f --- /dev/null +++ b/tests/baselines/reference/parserES5ForOfStatement5(target=es2015).js @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement5.ts] //// + +//// [parserES5ForOfStatement5.ts] +for (var a: number of X) { +} + +//// [parserES5ForOfStatement5.js] +for (var a of X) { +} diff --git a/tests/baselines/reference/parserES5ForOfStatement5.symbols b/tests/baselines/reference/parserES5ForOfStatement5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/parserES5ForOfStatement5.symbols rename to tests/baselines/reference/parserES5ForOfStatement5(target=es2015).symbols diff --git a/tests/baselines/reference/parserES5ForOfStatement5.types b/tests/baselines/reference/parserES5ForOfStatement5(target=es2015).types similarity index 100% rename from tests/baselines/reference/parserES5ForOfStatement5.types rename to tests/baselines/reference/parserES5ForOfStatement5(target=es2015).types diff --git a/tests/baselines/reference/parserES5ForOfStatement5(target=es5).errors.txt b/tests/baselines/reference/parserES5ForOfStatement5(target=es5).errors.txt new file mode 100644 index 0000000000000..189402f294d94 --- /dev/null +++ b/tests/baselines/reference/parserES5ForOfStatement5(target=es5).errors.txt @@ -0,0 +1,11 @@ +parserES5ForOfStatement5.ts(1,10): error TS2483: The left-hand side of a 'for...of' statement cannot use a type annotation. +parserES5ForOfStatement5.ts(1,23): error TS2304: Cannot find name 'X'. + + +==== parserES5ForOfStatement5.ts (2 errors) ==== + for (var a: number of X) { + ~ +!!! error TS2483: The left-hand side of a 'for...of' statement cannot use a type annotation. + ~ +!!! error TS2304: Cannot find name 'X'. + } \ No newline at end of file diff --git a/tests/baselines/reference/parserES5ForOfStatement5.js b/tests/baselines/reference/parserES5ForOfStatement5(target=es5).js similarity index 100% rename from tests/baselines/reference/parserES5ForOfStatement5.js rename to tests/baselines/reference/parserES5ForOfStatement5(target=es5).js diff --git a/tests/baselines/reference/parserES5ForOfStatement5(target=es5).symbols b/tests/baselines/reference/parserES5ForOfStatement5(target=es5).symbols new file mode 100644 index 0000000000000..1a41f344fb2c3 --- /dev/null +++ b/tests/baselines/reference/parserES5ForOfStatement5(target=es5).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement5.ts] //// + +=== parserES5ForOfStatement5.ts === +for (var a: number of X) { +>a : Symbol(a, Decl(parserES5ForOfStatement5.ts, 0, 8)) +} diff --git a/tests/baselines/reference/parserES5ForOfStatement5(target=es5).types b/tests/baselines/reference/parserES5ForOfStatement5(target=es5).types new file mode 100644 index 0000000000000..a0b3da12542e6 --- /dev/null +++ b/tests/baselines/reference/parserES5ForOfStatement5(target=es5).types @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement5.ts] //// + +=== parserES5ForOfStatement5.ts === +for (var a: number of X) { +>a : any +> : ^^^ +>X : any +> : ^^^ +} diff --git a/tests/baselines/reference/parserES5ForOfStatement6.errors.txt b/tests/baselines/reference/parserES5ForOfStatement6(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/parserES5ForOfStatement6.errors.txt rename to tests/baselines/reference/parserES5ForOfStatement6(target=es2015).errors.txt diff --git a/tests/baselines/reference/parserES5ForOfStatement6(target=es2015).js b/tests/baselines/reference/parserES5ForOfStatement6(target=es2015).js new file mode 100644 index 0000000000000..0dce77f07e6f8 --- /dev/null +++ b/tests/baselines/reference/parserES5ForOfStatement6(target=es2015).js @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement6.ts] //// + +//// [parserES5ForOfStatement6.ts] +for (var a = 1, b = 2 of X) { +} + +//// [parserES5ForOfStatement6.js] +for (var a = 1, b = 2 of X) { +} diff --git a/tests/baselines/reference/parserES5ForOfStatement6.symbols b/tests/baselines/reference/parserES5ForOfStatement6(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/parserES5ForOfStatement6.symbols rename to tests/baselines/reference/parserES5ForOfStatement6(target=es2015).symbols diff --git a/tests/baselines/reference/parserES5ForOfStatement6.types b/tests/baselines/reference/parserES5ForOfStatement6(target=es2015).types similarity index 100% rename from tests/baselines/reference/parserES5ForOfStatement6.types rename to tests/baselines/reference/parserES5ForOfStatement6(target=es2015).types diff --git a/tests/baselines/reference/parserES5ForOfStatement6(target=es5).errors.txt b/tests/baselines/reference/parserES5ForOfStatement6(target=es5).errors.txt new file mode 100644 index 0000000000000..1fe7dc667044c --- /dev/null +++ b/tests/baselines/reference/parserES5ForOfStatement6(target=es5).errors.txt @@ -0,0 +1,11 @@ +parserES5ForOfStatement6.ts(1,17): error TS1188: Only a single variable declaration is allowed in a 'for...of' statement. +parserES5ForOfStatement6.ts(1,26): error TS2304: Cannot find name 'X'. + + +==== parserES5ForOfStatement6.ts (2 errors) ==== + for (var a = 1, b = 2 of X) { + ~ +!!! error TS1188: Only a single variable declaration is allowed in a 'for...of' statement. + ~ +!!! error TS2304: Cannot find name 'X'. + } \ No newline at end of file diff --git a/tests/baselines/reference/parserES5ForOfStatement6.js b/tests/baselines/reference/parserES5ForOfStatement6(target=es5).js similarity index 100% rename from tests/baselines/reference/parserES5ForOfStatement6.js rename to tests/baselines/reference/parserES5ForOfStatement6(target=es5).js diff --git a/tests/baselines/reference/parserES5ForOfStatement6(target=es5).symbols b/tests/baselines/reference/parserES5ForOfStatement6(target=es5).symbols new file mode 100644 index 0000000000000..053587bdcea25 --- /dev/null +++ b/tests/baselines/reference/parserES5ForOfStatement6(target=es5).symbols @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement6.ts] //// + +=== parserES5ForOfStatement6.ts === +for (var a = 1, b = 2 of X) { +>a : Symbol(a, Decl(parserES5ForOfStatement6.ts, 0, 8)) +>b : Symbol(b, Decl(parserES5ForOfStatement6.ts, 0, 15)) +} diff --git a/tests/baselines/reference/parserES5ForOfStatement6(target=es5).types b/tests/baselines/reference/parserES5ForOfStatement6(target=es5).types new file mode 100644 index 0000000000000..450a879336ea9 --- /dev/null +++ b/tests/baselines/reference/parserES5ForOfStatement6(target=es5).types @@ -0,0 +1,15 @@ +//// [tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement6.ts] //// + +=== parserES5ForOfStatement6.ts === +for (var a = 1, b = 2 of X) { +>a : any +> : ^^^ +>1 : 1 +> : ^ +>b : any +> : ^^^ +>2 : 2 +> : ^ +>X : any +> : ^^^ +} diff --git a/tests/baselines/reference/parserES5ForOfStatement7.errors.txt b/tests/baselines/reference/parserES5ForOfStatement7(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/parserES5ForOfStatement7.errors.txt rename to tests/baselines/reference/parserES5ForOfStatement7(target=es2015).errors.txt diff --git a/tests/baselines/reference/parserES5ForOfStatement7(target=es2015).js b/tests/baselines/reference/parserES5ForOfStatement7(target=es2015).js new file mode 100644 index 0000000000000..ab712cd83d49f --- /dev/null +++ b/tests/baselines/reference/parserES5ForOfStatement7(target=es2015).js @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement7.ts] //// + +//// [parserES5ForOfStatement7.ts] +for (var a: number = 1, b: string = "" of X) { +} + +//// [parserES5ForOfStatement7.js] +for (var a = 1, b = "" of X) { +} diff --git a/tests/baselines/reference/parserES5ForOfStatement7.symbols b/tests/baselines/reference/parserES5ForOfStatement7(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/parserES5ForOfStatement7.symbols rename to tests/baselines/reference/parserES5ForOfStatement7(target=es2015).symbols diff --git a/tests/baselines/reference/parserES5ForOfStatement7.types b/tests/baselines/reference/parserES5ForOfStatement7(target=es2015).types similarity index 100% rename from tests/baselines/reference/parserES5ForOfStatement7.types rename to tests/baselines/reference/parserES5ForOfStatement7(target=es2015).types diff --git a/tests/baselines/reference/parserES5ForOfStatement7(target=es5).errors.txt b/tests/baselines/reference/parserES5ForOfStatement7(target=es5).errors.txt new file mode 100644 index 0000000000000..ce1ec2ee59786 --- /dev/null +++ b/tests/baselines/reference/parserES5ForOfStatement7(target=es5).errors.txt @@ -0,0 +1,11 @@ +parserES5ForOfStatement7.ts(1,25): error TS1188: Only a single variable declaration is allowed in a 'for...of' statement. +parserES5ForOfStatement7.ts(1,43): error TS2304: Cannot find name 'X'. + + +==== parserES5ForOfStatement7.ts (2 errors) ==== + for (var a: number = 1, b: string = "" of X) { + ~ +!!! error TS1188: Only a single variable declaration is allowed in a 'for...of' statement. + ~ +!!! error TS2304: Cannot find name 'X'. + } \ No newline at end of file diff --git a/tests/baselines/reference/parserES5ForOfStatement7.js b/tests/baselines/reference/parserES5ForOfStatement7(target=es5).js similarity index 100% rename from tests/baselines/reference/parserES5ForOfStatement7.js rename to tests/baselines/reference/parserES5ForOfStatement7(target=es5).js diff --git a/tests/baselines/reference/parserES5ForOfStatement7(target=es5).symbols b/tests/baselines/reference/parserES5ForOfStatement7(target=es5).symbols new file mode 100644 index 0000000000000..4cf24963bb627 --- /dev/null +++ b/tests/baselines/reference/parserES5ForOfStatement7(target=es5).symbols @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement7.ts] //// + +=== parserES5ForOfStatement7.ts === +for (var a: number = 1, b: string = "" of X) { +>a : Symbol(a, Decl(parserES5ForOfStatement7.ts, 0, 8)) +>b : Symbol(b, Decl(parserES5ForOfStatement7.ts, 0, 23)) +} diff --git a/tests/baselines/reference/parserES5ForOfStatement7(target=es5).types b/tests/baselines/reference/parserES5ForOfStatement7(target=es5).types new file mode 100644 index 0000000000000..4c595e321c500 --- /dev/null +++ b/tests/baselines/reference/parserES5ForOfStatement7(target=es5).types @@ -0,0 +1,15 @@ +//// [tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement7.ts] //// + +=== parserES5ForOfStatement7.ts === +for (var a: number = 1, b: string = "" of X) { +>a : any +> : ^^^ +>1 : 1 +> : ^ +>b : any +> : ^^^ +>"" : "" +> : ^^ +>X : any +> : ^^^ +} diff --git a/tests/baselines/reference/parserES5ForOfStatement8.errors.txt b/tests/baselines/reference/parserES5ForOfStatement8(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/parserES5ForOfStatement8.errors.txt rename to tests/baselines/reference/parserES5ForOfStatement8(target=es2015).errors.txt diff --git a/tests/baselines/reference/parserES5ForOfStatement8(target=es2015).js b/tests/baselines/reference/parserES5ForOfStatement8(target=es2015).js new file mode 100644 index 0000000000000..bc3c9a0997cbd --- /dev/null +++ b/tests/baselines/reference/parserES5ForOfStatement8(target=es2015).js @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement8.ts] //// + +//// [parserES5ForOfStatement8.ts] +for (var v of X) { +} + +//// [parserES5ForOfStatement8.js] +for (var v of X) { +} diff --git a/tests/baselines/reference/parserES5ForOfStatement8.symbols b/tests/baselines/reference/parserES5ForOfStatement8(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/parserES5ForOfStatement8.symbols rename to tests/baselines/reference/parserES5ForOfStatement8(target=es2015).symbols diff --git a/tests/baselines/reference/parserES5ForOfStatement8.types b/tests/baselines/reference/parserES5ForOfStatement8(target=es2015).types similarity index 100% rename from tests/baselines/reference/parserES5ForOfStatement8.types rename to tests/baselines/reference/parserES5ForOfStatement8(target=es2015).types diff --git a/tests/baselines/reference/parserES5ForOfStatement8(target=es5).errors.txt b/tests/baselines/reference/parserES5ForOfStatement8(target=es5).errors.txt new file mode 100644 index 0000000000000..b38bda881cea0 --- /dev/null +++ b/tests/baselines/reference/parserES5ForOfStatement8(target=es5).errors.txt @@ -0,0 +1,8 @@ +parserES5ForOfStatement8.ts(1,15): error TS2304: Cannot find name 'X'. + + +==== parserES5ForOfStatement8.ts (1 errors) ==== + for (var v of X) { + ~ +!!! error TS2304: Cannot find name 'X'. + } \ No newline at end of file diff --git a/tests/baselines/reference/parserES5ForOfStatement8.js b/tests/baselines/reference/parserES5ForOfStatement8(target=es5).js similarity index 100% rename from tests/baselines/reference/parserES5ForOfStatement8.js rename to tests/baselines/reference/parserES5ForOfStatement8(target=es5).js diff --git a/tests/baselines/reference/parserES5ForOfStatement8(target=es5).symbols b/tests/baselines/reference/parserES5ForOfStatement8(target=es5).symbols new file mode 100644 index 0000000000000..f03b2b1c2163a --- /dev/null +++ b/tests/baselines/reference/parserES5ForOfStatement8(target=es5).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement8.ts] //// + +=== parserES5ForOfStatement8.ts === +for (var v of X) { +>v : Symbol(v, Decl(parserES5ForOfStatement8.ts, 0, 8)) +} diff --git a/tests/baselines/reference/parserES5ForOfStatement8(target=es5).types b/tests/baselines/reference/parserES5ForOfStatement8(target=es5).types new file mode 100644 index 0000000000000..28efd33de662f --- /dev/null +++ b/tests/baselines/reference/parserES5ForOfStatement8(target=es5).types @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement8.ts] //// + +=== parserES5ForOfStatement8.ts === +for (var v of X) { +>v : any +> : ^^^ +>X : any +> : ^^^ +} diff --git a/tests/baselines/reference/parserES5ForOfStatement9.errors.txt b/tests/baselines/reference/parserES5ForOfStatement9(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/parserES5ForOfStatement9.errors.txt rename to tests/baselines/reference/parserES5ForOfStatement9(target=es2015).errors.txt diff --git a/tests/baselines/reference/parserES5ForOfStatement9(target=es2015).js b/tests/baselines/reference/parserES5ForOfStatement9(target=es2015).js new file mode 100644 index 0000000000000..2d1e6f3f383bc --- /dev/null +++ b/tests/baselines/reference/parserES5ForOfStatement9(target=es2015).js @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement9.ts] //// + +//// [parserES5ForOfStatement9.ts] +for (let v of X) { +} + +//// [parserES5ForOfStatement9.js] +for (let v of X) { +} diff --git a/tests/baselines/reference/parserES5ForOfStatement9.symbols b/tests/baselines/reference/parserES5ForOfStatement9(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/parserES5ForOfStatement9.symbols rename to tests/baselines/reference/parserES5ForOfStatement9(target=es2015).symbols diff --git a/tests/baselines/reference/parserES5ForOfStatement9.types b/tests/baselines/reference/parserES5ForOfStatement9(target=es2015).types similarity index 100% rename from tests/baselines/reference/parserES5ForOfStatement9.types rename to tests/baselines/reference/parserES5ForOfStatement9(target=es2015).types diff --git a/tests/baselines/reference/parserES5ForOfStatement9(target=es5).errors.txt b/tests/baselines/reference/parserES5ForOfStatement9(target=es5).errors.txt new file mode 100644 index 0000000000000..2fa2cb75a5eab --- /dev/null +++ b/tests/baselines/reference/parserES5ForOfStatement9(target=es5).errors.txt @@ -0,0 +1,8 @@ +parserES5ForOfStatement9.ts(1,15): error TS2304: Cannot find name 'X'. + + +==== parserES5ForOfStatement9.ts (1 errors) ==== + for (let v of X) { + ~ +!!! error TS2304: Cannot find name 'X'. + } \ No newline at end of file diff --git a/tests/baselines/reference/parserES5ForOfStatement9.js b/tests/baselines/reference/parserES5ForOfStatement9(target=es5).js similarity index 100% rename from tests/baselines/reference/parserES5ForOfStatement9.js rename to tests/baselines/reference/parserES5ForOfStatement9(target=es5).js diff --git a/tests/baselines/reference/parserES5ForOfStatement9(target=es5).symbols b/tests/baselines/reference/parserES5ForOfStatement9(target=es5).symbols new file mode 100644 index 0000000000000..94397a52b2724 --- /dev/null +++ b/tests/baselines/reference/parserES5ForOfStatement9(target=es5).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement9.ts] //// + +=== parserES5ForOfStatement9.ts === +for (let v of X) { +>v : Symbol(v, Decl(parserES5ForOfStatement9.ts, 0, 8)) +} diff --git a/tests/baselines/reference/parserES5ForOfStatement9(target=es5).types b/tests/baselines/reference/parserES5ForOfStatement9(target=es5).types new file mode 100644 index 0000000000000..374bb34210ad8 --- /dev/null +++ b/tests/baselines/reference/parserES5ForOfStatement9(target=es5).types @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement9.ts] //// + +=== parserES5ForOfStatement9.ts === +for (let v of X) { +>v : any +> : ^^^ +>X : any +> : ^^^ +} diff --git a/tests/baselines/reference/parserES5SymbolIndexer1.js b/tests/baselines/reference/parserES5SymbolIndexer1(target=es2015).js similarity index 100% rename from tests/baselines/reference/parserES5SymbolIndexer1.js rename to tests/baselines/reference/parserES5SymbolIndexer1(target=es2015).js diff --git a/tests/baselines/reference/parserES5SymbolIndexer1.symbols b/tests/baselines/reference/parserES5SymbolIndexer1(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/parserES5SymbolIndexer1.symbols rename to tests/baselines/reference/parserES5SymbolIndexer1(target=es2015).symbols diff --git a/tests/baselines/reference/parserES5SymbolIndexer1.types b/tests/baselines/reference/parserES5SymbolIndexer1(target=es2015).types similarity index 100% rename from tests/baselines/reference/parserES5SymbolIndexer1.types rename to tests/baselines/reference/parserES5SymbolIndexer1(target=es2015).types diff --git a/tests/baselines/reference/parserES5SymbolIndexer1(target=es5).js b/tests/baselines/reference/parserES5SymbolIndexer1(target=es5).js new file mode 100644 index 0000000000000..ed982f5358494 --- /dev/null +++ b/tests/baselines/reference/parserES5SymbolIndexer1(target=es5).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolIndexer1.ts] //// + +//// [parserES5SymbolIndexer1.ts] +interface I { + [s: symbol]: string; +} + +//// [parserES5SymbolIndexer1.js] diff --git a/tests/baselines/reference/parserES5SymbolIndexer1(target=es5).symbols b/tests/baselines/reference/parserES5SymbolIndexer1(target=es5).symbols new file mode 100644 index 0000000000000..708fdd0f79fe0 --- /dev/null +++ b/tests/baselines/reference/parserES5SymbolIndexer1(target=es5).symbols @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolIndexer1.ts] //// + +=== parserES5SymbolIndexer1.ts === +interface I { +>I : Symbol(I, Decl(parserES5SymbolIndexer1.ts, 0, 0)) + + [s: symbol]: string; +>s : Symbol(s, Decl(parserES5SymbolIndexer1.ts, 1, 5)) +} diff --git a/tests/baselines/reference/parserES5SymbolIndexer1(target=es5).types b/tests/baselines/reference/parserES5SymbolIndexer1(target=es5).types new file mode 100644 index 0000000000000..a302e4b865016 --- /dev/null +++ b/tests/baselines/reference/parserES5SymbolIndexer1(target=es5).types @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolIndexer1.ts] //// + +=== parserES5SymbolIndexer1.ts === +interface I { + [s: symbol]: string; +>s : symbol +> : ^^^^^^ +} diff --git a/tests/baselines/reference/parserES5SymbolIndexer2(target=es2015).js b/tests/baselines/reference/parserES5SymbolIndexer2(target=es2015).js new file mode 100644 index 0000000000000..4c6d7ef02d04c --- /dev/null +++ b/tests/baselines/reference/parserES5SymbolIndexer2(target=es2015).js @@ -0,0 +1,10 @@ +//// [tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolIndexer2.ts] //// + +//// [parserES5SymbolIndexer2.ts] +class C { + [s: symbol]: string; +} + +//// [parserES5SymbolIndexer2.js] +class C { +} diff --git a/tests/baselines/reference/parserES5SymbolIndexer2.symbols b/tests/baselines/reference/parserES5SymbolIndexer2(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/parserES5SymbolIndexer2.symbols rename to tests/baselines/reference/parserES5SymbolIndexer2(target=es2015).symbols diff --git a/tests/baselines/reference/parserES5SymbolIndexer2.types b/tests/baselines/reference/parserES5SymbolIndexer2(target=es2015).types similarity index 100% rename from tests/baselines/reference/parserES5SymbolIndexer2.types rename to tests/baselines/reference/parserES5SymbolIndexer2(target=es2015).types diff --git a/tests/baselines/reference/parserES5SymbolIndexer2.js b/tests/baselines/reference/parserES5SymbolIndexer2(target=es5).js similarity index 100% rename from tests/baselines/reference/parserES5SymbolIndexer2.js rename to tests/baselines/reference/parserES5SymbolIndexer2(target=es5).js diff --git a/tests/baselines/reference/parserES5SymbolIndexer2(target=es5).symbols b/tests/baselines/reference/parserES5SymbolIndexer2(target=es5).symbols new file mode 100644 index 0000000000000..3330ac164fb86 --- /dev/null +++ b/tests/baselines/reference/parserES5SymbolIndexer2(target=es5).symbols @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolIndexer2.ts] //// + +=== parserES5SymbolIndexer2.ts === +class C { +>C : Symbol(C, Decl(parserES5SymbolIndexer2.ts, 0, 0)) + + [s: symbol]: string; +>s : Symbol(s, Decl(parserES5SymbolIndexer2.ts, 1, 5)) +} diff --git a/tests/baselines/reference/parserES5SymbolIndexer2(target=es5).types b/tests/baselines/reference/parserES5SymbolIndexer2(target=es5).types new file mode 100644 index 0000000000000..aa88c9dc0d38f --- /dev/null +++ b/tests/baselines/reference/parserES5SymbolIndexer2(target=es5).types @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolIndexer2.ts] //// + +=== parserES5SymbolIndexer2.ts === +class C { +>C : C +> : ^ + + [s: symbol]: string; +>s : symbol +> : ^^^^^^ +} diff --git a/tests/baselines/reference/parserES5SymbolIndexer3.js b/tests/baselines/reference/parserES5SymbolIndexer3(target=es2015).js similarity index 100% rename from tests/baselines/reference/parserES5SymbolIndexer3.js rename to tests/baselines/reference/parserES5SymbolIndexer3(target=es2015).js diff --git a/tests/baselines/reference/parserES5SymbolIndexer3.symbols b/tests/baselines/reference/parserES5SymbolIndexer3(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/parserES5SymbolIndexer3.symbols rename to tests/baselines/reference/parserES5SymbolIndexer3(target=es2015).symbols diff --git a/tests/baselines/reference/parserES5SymbolIndexer3.types b/tests/baselines/reference/parserES5SymbolIndexer3(target=es2015).types similarity index 100% rename from tests/baselines/reference/parserES5SymbolIndexer3.types rename to tests/baselines/reference/parserES5SymbolIndexer3(target=es2015).types diff --git a/tests/baselines/reference/parserES5SymbolIndexer3(target=es5).js b/tests/baselines/reference/parserES5SymbolIndexer3(target=es5).js new file mode 100644 index 0000000000000..b34876669dee1 --- /dev/null +++ b/tests/baselines/reference/parserES5SymbolIndexer3(target=es5).js @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolIndexer3.ts] //// + +//// [parserES5SymbolIndexer3.ts] +var x: { + [s: symbol]: string; +} + +//// [parserES5SymbolIndexer3.js] +var x; diff --git a/tests/baselines/reference/parserES5SymbolIndexer3(target=es5).symbols b/tests/baselines/reference/parserES5SymbolIndexer3(target=es5).symbols new file mode 100644 index 0000000000000..8ada8e8098587 --- /dev/null +++ b/tests/baselines/reference/parserES5SymbolIndexer3(target=es5).symbols @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolIndexer3.ts] //// + +=== parserES5SymbolIndexer3.ts === +var x: { +>x : Symbol(x, Decl(parserES5SymbolIndexer3.ts, 0, 3)) + + [s: symbol]: string; +>s : Symbol(s, Decl(parserES5SymbolIndexer3.ts, 1, 5)) +} diff --git a/tests/baselines/reference/parserES5SymbolIndexer3(target=es5).types b/tests/baselines/reference/parserES5SymbolIndexer3(target=es5).types new file mode 100644 index 0000000000000..dd67ba4a55b43 --- /dev/null +++ b/tests/baselines/reference/parserES5SymbolIndexer3(target=es5).types @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolIndexer3.ts] //// + +=== parserES5SymbolIndexer3.ts === +var x: { +>x : { [s: symbol]: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^ + + [s: symbol]: string; +>s : symbol +> : ^^^^^^ +} diff --git a/tests/baselines/reference/parserES5SymbolProperty1.js b/tests/baselines/reference/parserES5SymbolProperty1(target=es2015).js similarity index 100% rename from tests/baselines/reference/parserES5SymbolProperty1.js rename to tests/baselines/reference/parserES5SymbolProperty1(target=es2015).js diff --git a/tests/baselines/reference/parserES5SymbolProperty1.symbols b/tests/baselines/reference/parserES5SymbolProperty1(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/parserES5SymbolProperty1.symbols rename to tests/baselines/reference/parserES5SymbolProperty1(target=es2015).symbols diff --git a/tests/baselines/reference/parserES5SymbolProperty1.types b/tests/baselines/reference/parserES5SymbolProperty1(target=es2015).types similarity index 100% rename from tests/baselines/reference/parserES5SymbolProperty1.types rename to tests/baselines/reference/parserES5SymbolProperty1(target=es2015).types diff --git a/tests/baselines/reference/parserES5SymbolProperty1(target=es5).js b/tests/baselines/reference/parserES5SymbolProperty1(target=es5).js new file mode 100644 index 0000000000000..b72412307a09b --- /dev/null +++ b/tests/baselines/reference/parserES5SymbolProperty1(target=es5).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolProperty1.ts] //// + +//// [parserES5SymbolProperty1.ts] +interface I { + [Symbol.iterator]: string; +} + +//// [parserES5SymbolProperty1.js] diff --git a/tests/baselines/reference/parserES5SymbolProperty1(target=es5).symbols b/tests/baselines/reference/parserES5SymbolProperty1(target=es5).symbols new file mode 100644 index 0000000000000..5d4241269a0d4 --- /dev/null +++ b/tests/baselines/reference/parserES5SymbolProperty1(target=es5).symbols @@ -0,0 +1,12 @@ +//// [tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolProperty1.ts] //// + +=== parserES5SymbolProperty1.ts === +interface I { +>I : Symbol(I, Decl(parserES5SymbolProperty1.ts, 0, 0)) + + [Symbol.iterator]: string; +>[Symbol.iterator] : Symbol(I[Symbol.iterator], Decl(parserES5SymbolProperty1.ts, 0, 13)) +>Symbol.iterator : Symbol(SymbolConstructor.iterator, Decl(lib.es2015.iterable.d.ts, --, --)) +>Symbol : Symbol(Symbol, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>iterator : Symbol(SymbolConstructor.iterator, Decl(lib.es2015.iterable.d.ts, --, --)) +} diff --git a/tests/baselines/reference/parserES5SymbolProperty1(target=es5).types b/tests/baselines/reference/parserES5SymbolProperty1(target=es5).types new file mode 100644 index 0000000000000..53c771232b6cc --- /dev/null +++ b/tests/baselines/reference/parserES5SymbolProperty1(target=es5).types @@ -0,0 +1,14 @@ +//// [tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolProperty1.ts] //// + +=== parserES5SymbolProperty1.ts === +interface I { + [Symbol.iterator]: string; +>[Symbol.iterator] : string +> : ^^^^^^ +>Symbol.iterator : unique symbol +> : ^^^^^^^^^^^^^ +>Symbol : SymbolConstructor +> : ^^^^^^^^^^^^^^^^^ +>iterator : unique symbol +> : ^^^^^^^^^^^^^ +} diff --git a/tests/baselines/reference/parserES5SymbolProperty2.js b/tests/baselines/reference/parserES5SymbolProperty2(target=es2015).js similarity index 100% rename from tests/baselines/reference/parserES5SymbolProperty2.js rename to tests/baselines/reference/parserES5SymbolProperty2(target=es2015).js diff --git a/tests/baselines/reference/parserES5SymbolProperty2.symbols b/tests/baselines/reference/parserES5SymbolProperty2(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/parserES5SymbolProperty2.symbols rename to tests/baselines/reference/parserES5SymbolProperty2(target=es2015).symbols diff --git a/tests/baselines/reference/parserES5SymbolProperty2.types b/tests/baselines/reference/parserES5SymbolProperty2(target=es2015).types similarity index 100% rename from tests/baselines/reference/parserES5SymbolProperty2.types rename to tests/baselines/reference/parserES5SymbolProperty2(target=es2015).types diff --git a/tests/baselines/reference/parserES5SymbolProperty2(target=es5).js b/tests/baselines/reference/parserES5SymbolProperty2(target=es5).js new file mode 100644 index 0000000000000..7c37e0b4cbdc3 --- /dev/null +++ b/tests/baselines/reference/parserES5SymbolProperty2(target=es5).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolProperty2.ts] //// + +//// [parserES5SymbolProperty2.ts] +interface I { + [Symbol.unscopables](): string; +} + +//// [parserES5SymbolProperty2.js] diff --git a/tests/baselines/reference/parserES5SymbolProperty2(target=es5).symbols b/tests/baselines/reference/parserES5SymbolProperty2(target=es5).symbols new file mode 100644 index 0000000000000..3dad9088b806e --- /dev/null +++ b/tests/baselines/reference/parserES5SymbolProperty2(target=es5).symbols @@ -0,0 +1,12 @@ +//// [tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolProperty2.ts] //// + +=== parserES5SymbolProperty2.ts === +interface I { +>I : Symbol(I, Decl(parserES5SymbolProperty2.ts, 0, 0)) + + [Symbol.unscopables](): string; +>[Symbol.unscopables] : Symbol(I[Symbol.unscopables], Decl(parserES5SymbolProperty2.ts, 0, 13)) +>Symbol.unscopables : Symbol(SymbolConstructor.unscopables, Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>Symbol : Symbol(Symbol, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>unscopables : Symbol(SymbolConstructor.unscopables, Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +} diff --git a/tests/baselines/reference/parserES5SymbolProperty2(target=es5).types b/tests/baselines/reference/parserES5SymbolProperty2(target=es5).types new file mode 100644 index 0000000000000..c11e08ff79bcc --- /dev/null +++ b/tests/baselines/reference/parserES5SymbolProperty2(target=es5).types @@ -0,0 +1,14 @@ +//// [tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolProperty2.ts] //// + +=== parserES5SymbolProperty2.ts === +interface I { + [Symbol.unscopables](): string; +>[Symbol.unscopables] : () => string +> : ^^^^^^ +>Symbol.unscopables : unique symbol +> : ^^^^^^^^^^^^^ +>Symbol : SymbolConstructor +> : ^^^^^^^^^^^^^^^^^ +>unscopables : unique symbol +> : ^^^^^^^^^^^^^ +} diff --git a/tests/baselines/reference/parserES5SymbolProperty3.js b/tests/baselines/reference/parserES5SymbolProperty3(target=es2015).js similarity index 100% rename from tests/baselines/reference/parserES5SymbolProperty3.js rename to tests/baselines/reference/parserES5SymbolProperty3(target=es2015).js diff --git a/tests/baselines/reference/parserES5SymbolProperty3.symbols b/tests/baselines/reference/parserES5SymbolProperty3(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/parserES5SymbolProperty3.symbols rename to tests/baselines/reference/parserES5SymbolProperty3(target=es2015).symbols diff --git a/tests/baselines/reference/parserES5SymbolProperty3.types b/tests/baselines/reference/parserES5SymbolProperty3(target=es2015).types similarity index 100% rename from tests/baselines/reference/parserES5SymbolProperty3.types rename to tests/baselines/reference/parserES5SymbolProperty3(target=es2015).types diff --git a/tests/baselines/reference/parserES5SymbolProperty3(target=es5).js b/tests/baselines/reference/parserES5SymbolProperty3(target=es5).js new file mode 100644 index 0000000000000..e404c0500dace --- /dev/null +++ b/tests/baselines/reference/parserES5SymbolProperty3(target=es5).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolProperty3.ts] //// + +//// [parserES5SymbolProperty3.ts] +declare class C { + [Symbol.unscopables](): string; +} + +//// [parserES5SymbolProperty3.js] diff --git a/tests/baselines/reference/parserES5SymbolProperty3(target=es5).symbols b/tests/baselines/reference/parserES5SymbolProperty3(target=es5).symbols new file mode 100644 index 0000000000000..f7dfd0768a6fe --- /dev/null +++ b/tests/baselines/reference/parserES5SymbolProperty3(target=es5).symbols @@ -0,0 +1,12 @@ +//// [tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolProperty3.ts] //// + +=== parserES5SymbolProperty3.ts === +declare class C { +>C : Symbol(C, Decl(parserES5SymbolProperty3.ts, 0, 0)) + + [Symbol.unscopables](): string; +>[Symbol.unscopables] : Symbol(C[Symbol.unscopables], Decl(parserES5SymbolProperty3.ts, 0, 17)) +>Symbol.unscopables : Symbol(SymbolConstructor.unscopables, Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>Symbol : Symbol(Symbol, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>unscopables : Symbol(SymbolConstructor.unscopables, Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +} diff --git a/tests/baselines/reference/parserES5SymbolProperty3(target=es5).types b/tests/baselines/reference/parserES5SymbolProperty3(target=es5).types new file mode 100644 index 0000000000000..ce589e9fd1a5c --- /dev/null +++ b/tests/baselines/reference/parserES5SymbolProperty3(target=es5).types @@ -0,0 +1,17 @@ +//// [tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolProperty3.ts] //// + +=== parserES5SymbolProperty3.ts === +declare class C { +>C : C +> : ^ + + [Symbol.unscopables](): string; +>[Symbol.unscopables] : () => string +> : ^^^^^^ +>Symbol.unscopables : unique symbol +> : ^^^^^^^^^^^^^ +>Symbol : SymbolConstructor +> : ^^^^^^^^^^^^^^^^^ +>unscopables : unique symbol +> : ^^^^^^^^^^^^^ +} diff --git a/tests/baselines/reference/parserES5SymbolProperty4.errors.txt b/tests/baselines/reference/parserES5SymbolProperty4(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/parserES5SymbolProperty4.errors.txt rename to tests/baselines/reference/parserES5SymbolProperty4(target=es2015).errors.txt diff --git a/tests/baselines/reference/parserES5SymbolProperty4.js b/tests/baselines/reference/parserES5SymbolProperty4(target=es2015).js similarity index 100% rename from tests/baselines/reference/parserES5SymbolProperty4.js rename to tests/baselines/reference/parserES5SymbolProperty4(target=es2015).js diff --git a/tests/baselines/reference/parserES5SymbolProperty4.symbols b/tests/baselines/reference/parserES5SymbolProperty4(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/parserES5SymbolProperty4.symbols rename to tests/baselines/reference/parserES5SymbolProperty4(target=es2015).symbols diff --git a/tests/baselines/reference/parserES5SymbolProperty4.types b/tests/baselines/reference/parserES5SymbolProperty4(target=es2015).types similarity index 100% rename from tests/baselines/reference/parserES5SymbolProperty4.types rename to tests/baselines/reference/parserES5SymbolProperty4(target=es2015).types diff --git a/tests/baselines/reference/parserES5SymbolProperty4(target=es5).errors.txt b/tests/baselines/reference/parserES5SymbolProperty4(target=es5).errors.txt new file mode 100644 index 0000000000000..48d228b6c60a9 --- /dev/null +++ b/tests/baselines/reference/parserES5SymbolProperty4(target=es5).errors.txt @@ -0,0 +1,9 @@ +parserES5SymbolProperty4.ts(2,13): error TS2339: Property 'isRegExp' does not exist on type 'SymbolConstructor'. + + +==== parserES5SymbolProperty4.ts (1 errors) ==== + declare class C { + [Symbol.isRegExp]: string; + ~~~~~~~~ +!!! error TS2339: Property 'isRegExp' does not exist on type 'SymbolConstructor'. + } \ No newline at end of file diff --git a/tests/baselines/reference/parserES5SymbolProperty4(target=es5).js b/tests/baselines/reference/parserES5SymbolProperty4(target=es5).js new file mode 100644 index 0000000000000..913f2028cf4b9 --- /dev/null +++ b/tests/baselines/reference/parserES5SymbolProperty4(target=es5).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolProperty4.ts] //// + +//// [parserES5SymbolProperty4.ts] +declare class C { + [Symbol.isRegExp]: string; +} + +//// [parserES5SymbolProperty4.js] diff --git a/tests/baselines/reference/parserES5SymbolProperty4(target=es5).symbols b/tests/baselines/reference/parserES5SymbolProperty4(target=es5).symbols new file mode 100644 index 0000000000000..7ac44e595962a --- /dev/null +++ b/tests/baselines/reference/parserES5SymbolProperty4(target=es5).symbols @@ -0,0 +1,10 @@ +//// [tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolProperty4.ts] //// + +=== parserES5SymbolProperty4.ts === +declare class C { +>C : Symbol(C, Decl(parserES5SymbolProperty4.ts, 0, 0)) + + [Symbol.isRegExp]: string; +>[Symbol.isRegExp] : Symbol(C[Symbol.isRegExp], Decl(parserES5SymbolProperty4.ts, 0, 17)) +>Symbol : Symbol(Symbol, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +} diff --git a/tests/baselines/reference/parserES5SymbolProperty4(target=es5).types b/tests/baselines/reference/parserES5SymbolProperty4(target=es5).types new file mode 100644 index 0000000000000..d55fadf177193 --- /dev/null +++ b/tests/baselines/reference/parserES5SymbolProperty4(target=es5).types @@ -0,0 +1,17 @@ +//// [tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolProperty4.ts] //// + +=== parserES5SymbolProperty4.ts === +declare class C { +>C : C +> : ^ + + [Symbol.isRegExp]: string; +>[Symbol.isRegExp] : string +> : ^^^^^^ +>Symbol.isRegExp : any +> : ^^^ +>Symbol : SymbolConstructor +> : ^^^^^^^^^^^^^^^^^ +>isRegExp : any +> : ^^^ +} diff --git a/tests/baselines/reference/parserES5SymbolProperty5.errors.txt b/tests/baselines/reference/parserES5SymbolProperty5(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/parserES5SymbolProperty5.errors.txt rename to tests/baselines/reference/parserES5SymbolProperty5(target=es2015).errors.txt diff --git a/tests/baselines/reference/parserES5SymbolProperty5(target=es2015).js b/tests/baselines/reference/parserES5SymbolProperty5(target=es2015).js new file mode 100644 index 0000000000000..ea59d1815faf8 --- /dev/null +++ b/tests/baselines/reference/parserES5SymbolProperty5(target=es2015).js @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolProperty5.ts] //// + +//// [parserES5SymbolProperty5.ts] +class C { + [Symbol.isRegExp]: string; +} + +//// [parserES5SymbolProperty5.js] +class C { +} +Symbol.isRegExp; diff --git a/tests/baselines/reference/parserES5SymbolProperty5.symbols b/tests/baselines/reference/parserES5SymbolProperty5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/parserES5SymbolProperty5.symbols rename to tests/baselines/reference/parserES5SymbolProperty5(target=es2015).symbols diff --git a/tests/baselines/reference/parserES5SymbolProperty5.types b/tests/baselines/reference/parserES5SymbolProperty5(target=es2015).types similarity index 100% rename from tests/baselines/reference/parserES5SymbolProperty5.types rename to tests/baselines/reference/parserES5SymbolProperty5(target=es2015).types diff --git a/tests/baselines/reference/parserES5SymbolProperty5(target=es5).errors.txt b/tests/baselines/reference/parserES5SymbolProperty5(target=es5).errors.txt new file mode 100644 index 0000000000000..fb55c84e8a266 --- /dev/null +++ b/tests/baselines/reference/parserES5SymbolProperty5(target=es5).errors.txt @@ -0,0 +1,9 @@ +parserES5SymbolProperty5.ts(2,13): error TS2339: Property 'isRegExp' does not exist on type 'SymbolConstructor'. + + +==== parserES5SymbolProperty5.ts (1 errors) ==== + class C { + [Symbol.isRegExp]: string; + ~~~~~~~~ +!!! error TS2339: Property 'isRegExp' does not exist on type 'SymbolConstructor'. + } \ No newline at end of file diff --git a/tests/baselines/reference/parserES5SymbolProperty5.js b/tests/baselines/reference/parserES5SymbolProperty5(target=es5).js similarity index 100% rename from tests/baselines/reference/parserES5SymbolProperty5.js rename to tests/baselines/reference/parserES5SymbolProperty5(target=es5).js diff --git a/tests/baselines/reference/parserES5SymbolProperty5(target=es5).symbols b/tests/baselines/reference/parserES5SymbolProperty5(target=es5).symbols new file mode 100644 index 0000000000000..c134ed4126662 --- /dev/null +++ b/tests/baselines/reference/parserES5SymbolProperty5(target=es5).symbols @@ -0,0 +1,10 @@ +//// [tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolProperty5.ts] //// + +=== parserES5SymbolProperty5.ts === +class C { +>C : Symbol(C, Decl(parserES5SymbolProperty5.ts, 0, 0)) + + [Symbol.isRegExp]: string; +>[Symbol.isRegExp] : Symbol(C[Symbol.isRegExp], Decl(parserES5SymbolProperty5.ts, 0, 9)) +>Symbol : Symbol(Symbol, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +} diff --git a/tests/baselines/reference/parserES5SymbolProperty5(target=es5).types b/tests/baselines/reference/parserES5SymbolProperty5(target=es5).types new file mode 100644 index 0000000000000..ab48812486003 --- /dev/null +++ b/tests/baselines/reference/parserES5SymbolProperty5(target=es5).types @@ -0,0 +1,17 @@ +//// [tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolProperty5.ts] //// + +=== parserES5SymbolProperty5.ts === +class C { +>C : C +> : ^ + + [Symbol.isRegExp]: string; +>[Symbol.isRegExp] : string +> : ^^^^^^ +>Symbol.isRegExp : any +> : ^^^ +>Symbol : SymbolConstructor +> : ^^^^^^^^^^^^^^^^^ +>isRegExp : any +> : ^^^ +} diff --git a/tests/baselines/reference/parserES5SymbolProperty6(target=es2015).js b/tests/baselines/reference/parserES5SymbolProperty6(target=es2015).js new file mode 100644 index 0000000000000..322a67966fe2e --- /dev/null +++ b/tests/baselines/reference/parserES5SymbolProperty6(target=es2015).js @@ -0,0 +1,15 @@ +//// [tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolProperty6.ts] //// + +//// [parserES5SymbolProperty6.ts] +class C { + [Symbol.toStringTag]: string = ""; +} + +//// [parserES5SymbolProperty6.js] +var _a; +class C { + constructor() { + this[_a] = ""; + } +} +_a = Symbol.toStringTag; diff --git a/tests/baselines/reference/parserES5SymbolProperty6.symbols b/tests/baselines/reference/parserES5SymbolProperty6(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/parserES5SymbolProperty6.symbols rename to tests/baselines/reference/parserES5SymbolProperty6(target=es2015).symbols diff --git a/tests/baselines/reference/parserES5SymbolProperty6.types b/tests/baselines/reference/parserES5SymbolProperty6(target=es2015).types similarity index 100% rename from tests/baselines/reference/parserES5SymbolProperty6.types rename to tests/baselines/reference/parserES5SymbolProperty6(target=es2015).types diff --git a/tests/baselines/reference/parserES5SymbolProperty6.js b/tests/baselines/reference/parserES5SymbolProperty6(target=es5).js similarity index 100% rename from tests/baselines/reference/parserES5SymbolProperty6.js rename to tests/baselines/reference/parserES5SymbolProperty6(target=es5).js diff --git a/tests/baselines/reference/parserES5SymbolProperty6(target=es5).symbols b/tests/baselines/reference/parserES5SymbolProperty6(target=es5).symbols new file mode 100644 index 0000000000000..4b21464aedd0f --- /dev/null +++ b/tests/baselines/reference/parserES5SymbolProperty6(target=es5).symbols @@ -0,0 +1,12 @@ +//// [tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolProperty6.ts] //// + +=== parserES5SymbolProperty6.ts === +class C { +>C : Symbol(C, Decl(parserES5SymbolProperty6.ts, 0, 0)) + + [Symbol.toStringTag]: string = ""; +>[Symbol.toStringTag] : Symbol(C[Symbol.toStringTag], Decl(parserES5SymbolProperty6.ts, 0, 9)) +>Symbol.toStringTag : Symbol(SymbolConstructor.toStringTag, Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>Symbol : Symbol(Symbol, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>toStringTag : Symbol(SymbolConstructor.toStringTag, Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +} diff --git a/tests/baselines/reference/parserES5SymbolProperty6(target=es5).types b/tests/baselines/reference/parserES5SymbolProperty6(target=es5).types new file mode 100644 index 0000000000000..5f56cf55c07d1 --- /dev/null +++ b/tests/baselines/reference/parserES5SymbolProperty6(target=es5).types @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolProperty6.ts] //// + +=== parserES5SymbolProperty6.ts === +class C { +>C : C +> : ^ + + [Symbol.toStringTag]: string = ""; +>[Symbol.toStringTag] : string +> : ^^^^^^ +>Symbol.toStringTag : unique symbol +> : ^^^^^^^^^^^^^ +>Symbol : SymbolConstructor +> : ^^^^^^^^^^^^^^^^^ +>toStringTag : unique symbol +> : ^^^^^^^^^^^^^ +>"" : "" +> : ^^ +} diff --git a/tests/baselines/reference/parserES5SymbolProperty7(target=es2015).js b/tests/baselines/reference/parserES5SymbolProperty7(target=es2015).js new file mode 100644 index 0000000000000..11714773390f7 --- /dev/null +++ b/tests/baselines/reference/parserES5SymbolProperty7(target=es2015).js @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolProperty7.ts] //// + +//// [parserES5SymbolProperty7.ts] +class C { + [Symbol.toStringTag](): void { } +} + +//// [parserES5SymbolProperty7.js] +class C { + [Symbol.toStringTag]() { } +} diff --git a/tests/baselines/reference/parserES5SymbolProperty7.symbols b/tests/baselines/reference/parserES5SymbolProperty7(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/parserES5SymbolProperty7.symbols rename to tests/baselines/reference/parserES5SymbolProperty7(target=es2015).symbols diff --git a/tests/baselines/reference/parserES5SymbolProperty7.types b/tests/baselines/reference/parserES5SymbolProperty7(target=es2015).types similarity index 100% rename from tests/baselines/reference/parserES5SymbolProperty7.types rename to tests/baselines/reference/parserES5SymbolProperty7(target=es2015).types diff --git a/tests/baselines/reference/parserES5SymbolProperty7.js b/tests/baselines/reference/parserES5SymbolProperty7(target=es5).js similarity index 100% rename from tests/baselines/reference/parserES5SymbolProperty7.js rename to tests/baselines/reference/parserES5SymbolProperty7(target=es5).js diff --git a/tests/baselines/reference/parserES5SymbolProperty7(target=es5).symbols b/tests/baselines/reference/parserES5SymbolProperty7(target=es5).symbols new file mode 100644 index 0000000000000..fd1e53d5f83d1 --- /dev/null +++ b/tests/baselines/reference/parserES5SymbolProperty7(target=es5).symbols @@ -0,0 +1,12 @@ +//// [tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolProperty7.ts] //// + +=== parserES5SymbolProperty7.ts === +class C { +>C : Symbol(C, Decl(parserES5SymbolProperty7.ts, 0, 0)) + + [Symbol.toStringTag](): void { } +>[Symbol.toStringTag] : Symbol(C[Symbol.toStringTag], Decl(parserES5SymbolProperty7.ts, 0, 9)) +>Symbol.toStringTag : Symbol(SymbolConstructor.toStringTag, Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>Symbol : Symbol(Symbol, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>toStringTag : Symbol(SymbolConstructor.toStringTag, Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +} diff --git a/tests/baselines/reference/parserES5SymbolProperty7(target=es5).types b/tests/baselines/reference/parserES5SymbolProperty7(target=es5).types new file mode 100644 index 0000000000000..73b7f4e8358d8 --- /dev/null +++ b/tests/baselines/reference/parserES5SymbolProperty7(target=es5).types @@ -0,0 +1,17 @@ +//// [tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolProperty7.ts] //// + +=== parserES5SymbolProperty7.ts === +class C { +>C : C +> : ^ + + [Symbol.toStringTag](): void { } +>[Symbol.toStringTag] : () => void +> : ^^^^^^ +>Symbol.toStringTag : unique symbol +> : ^^^^^^^^^^^^^ +>Symbol : SymbolConstructor +> : ^^^^^^^^^^^^^^^^^ +>toStringTag : unique symbol +> : ^^^^^^^^^^^^^ +} diff --git a/tests/baselines/reference/parserES5SymbolProperty8.js b/tests/baselines/reference/parserES5SymbolProperty8(target=es2015).js similarity index 100% rename from tests/baselines/reference/parserES5SymbolProperty8.js rename to tests/baselines/reference/parserES5SymbolProperty8(target=es2015).js diff --git a/tests/baselines/reference/parserES5SymbolProperty8.symbols b/tests/baselines/reference/parserES5SymbolProperty8(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/parserES5SymbolProperty8.symbols rename to tests/baselines/reference/parserES5SymbolProperty8(target=es2015).symbols diff --git a/tests/baselines/reference/parserES5SymbolProperty8.types b/tests/baselines/reference/parserES5SymbolProperty8(target=es2015).types similarity index 100% rename from tests/baselines/reference/parserES5SymbolProperty8.types rename to tests/baselines/reference/parserES5SymbolProperty8(target=es2015).types diff --git a/tests/baselines/reference/parserES5SymbolProperty8(target=es5).js b/tests/baselines/reference/parserES5SymbolProperty8(target=es5).js new file mode 100644 index 0000000000000..574920777251e --- /dev/null +++ b/tests/baselines/reference/parserES5SymbolProperty8(target=es5).js @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolProperty8.ts] //// + +//// [parserES5SymbolProperty8.ts] +var x: { + [Symbol.toPrimitive](): string +} + +//// [parserES5SymbolProperty8.js] +var x; diff --git a/tests/baselines/reference/parserES5SymbolProperty8(target=es5).symbols b/tests/baselines/reference/parserES5SymbolProperty8(target=es5).symbols new file mode 100644 index 0000000000000..2aec9fa8b5368 --- /dev/null +++ b/tests/baselines/reference/parserES5SymbolProperty8(target=es5).symbols @@ -0,0 +1,12 @@ +//// [tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolProperty8.ts] //// + +=== parserES5SymbolProperty8.ts === +var x: { +>x : Symbol(x, Decl(parserES5SymbolProperty8.ts, 0, 3)) + + [Symbol.toPrimitive](): string +>[Symbol.toPrimitive] : Symbol([Symbol.toPrimitive], Decl(parserES5SymbolProperty8.ts, 0, 8)) +>Symbol.toPrimitive : Symbol(SymbolConstructor.toPrimitive, Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>Symbol : Symbol(Symbol, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>toPrimitive : Symbol(SymbolConstructor.toPrimitive, Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +} diff --git a/tests/baselines/reference/parserES5SymbolProperty8(target=es5).types b/tests/baselines/reference/parserES5SymbolProperty8(target=es5).types new file mode 100644 index 0000000000000..9b8bdf2a827b4 --- /dev/null +++ b/tests/baselines/reference/parserES5SymbolProperty8(target=es5).types @@ -0,0 +1,17 @@ +//// [tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolProperty8.ts] //// + +=== parserES5SymbolProperty8.ts === +var x: { +>x : { [Symbol.toPrimitive](): string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^ + + [Symbol.toPrimitive](): string +>[Symbol.toPrimitive] : () => string +> : ^^^^^^ +>Symbol.toPrimitive : unique symbol +> : ^^^^^^^^^^^^^ +>Symbol : SymbolConstructor +> : ^^^^^^^^^^^^^^^^^ +>toPrimitive : unique symbol +> : ^^^^^^^^^^^^^ +} diff --git a/tests/baselines/reference/parserES5SymbolProperty9.js b/tests/baselines/reference/parserES5SymbolProperty9(target=es2015).js similarity index 100% rename from tests/baselines/reference/parserES5SymbolProperty9.js rename to tests/baselines/reference/parserES5SymbolProperty9(target=es2015).js diff --git a/tests/baselines/reference/parserES5SymbolProperty9.symbols b/tests/baselines/reference/parserES5SymbolProperty9(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/parserES5SymbolProperty9.symbols rename to tests/baselines/reference/parserES5SymbolProperty9(target=es2015).symbols diff --git a/tests/baselines/reference/parserES5SymbolProperty9.types b/tests/baselines/reference/parserES5SymbolProperty9(target=es2015).types similarity index 100% rename from tests/baselines/reference/parserES5SymbolProperty9.types rename to tests/baselines/reference/parserES5SymbolProperty9(target=es2015).types diff --git a/tests/baselines/reference/parserES5SymbolProperty9(target=es5).js b/tests/baselines/reference/parserES5SymbolProperty9(target=es5).js new file mode 100644 index 0000000000000..92e5cf40fdef2 --- /dev/null +++ b/tests/baselines/reference/parserES5SymbolProperty9(target=es5).js @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolProperty9.ts] //// + +//// [parserES5SymbolProperty9.ts] +var x: { + [Symbol.toPrimitive]: string +} + +//// [parserES5SymbolProperty9.js] +var x; diff --git a/tests/baselines/reference/parserES5SymbolProperty9(target=es5).symbols b/tests/baselines/reference/parserES5SymbolProperty9(target=es5).symbols new file mode 100644 index 0000000000000..a93bff8391718 --- /dev/null +++ b/tests/baselines/reference/parserES5SymbolProperty9(target=es5).symbols @@ -0,0 +1,12 @@ +//// [tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolProperty9.ts] //// + +=== parserES5SymbolProperty9.ts === +var x: { +>x : Symbol(x, Decl(parserES5SymbolProperty9.ts, 0, 3)) + + [Symbol.toPrimitive]: string +>[Symbol.toPrimitive] : Symbol([Symbol.toPrimitive], Decl(parserES5SymbolProperty9.ts, 0, 8)) +>Symbol.toPrimitive : Symbol(SymbolConstructor.toPrimitive, Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>Symbol : Symbol(Symbol, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>toPrimitive : Symbol(SymbolConstructor.toPrimitive, Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +} diff --git a/tests/baselines/reference/parserES5SymbolProperty9(target=es5).types b/tests/baselines/reference/parserES5SymbolProperty9(target=es5).types new file mode 100644 index 0000000000000..384fe3060d823 --- /dev/null +++ b/tests/baselines/reference/parserES5SymbolProperty9(target=es5).types @@ -0,0 +1,17 @@ +//// [tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolProperty9.ts] //// + +=== parserES5SymbolProperty9.ts === +var x: { +>x : { [Symbol.toPrimitive]: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^ ^^^ + + [Symbol.toPrimitive]: string +>[Symbol.toPrimitive] : string +> : ^^^^^^ +>Symbol.toPrimitive : unique symbol +> : ^^^^^^^^^^^^^ +>Symbol : SymbolConstructor +> : ^^^^^^^^^^^^^^^^^ +>toPrimitive : unique symbol +> : ^^^^^^^^^^^^^ +} diff --git a/tests/baselines/reference/parserGetAccessorWithTypeParameters1.errors.txt b/tests/baselines/reference/parserGetAccessorWithTypeParameters1(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/parserGetAccessorWithTypeParameters1.errors.txt rename to tests/baselines/reference/parserGetAccessorWithTypeParameters1(target=es2015).errors.txt diff --git a/tests/baselines/reference/parserGetAccessorWithTypeParameters1(target=es2015).js b/tests/baselines/reference/parserGetAccessorWithTypeParameters1(target=es2015).js new file mode 100644 index 0000000000000..9b7afa8271e58 --- /dev/null +++ b/tests/baselines/reference/parserGetAccessorWithTypeParameters1(target=es2015).js @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/parser/ecmascript5/Accessors/parserGetAccessorWithTypeParameters1.ts] //// + +//// [parserGetAccessorWithTypeParameters1.ts] +class C { + get foo() { } +} + +//// [parserGetAccessorWithTypeParameters1.js] +class C { + get foo() { } +} diff --git a/tests/baselines/reference/parserGetAccessorWithTypeParameters1.symbols b/tests/baselines/reference/parserGetAccessorWithTypeParameters1(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/parserGetAccessorWithTypeParameters1.symbols rename to tests/baselines/reference/parserGetAccessorWithTypeParameters1(target=es2015).symbols diff --git a/tests/baselines/reference/parserGetAccessorWithTypeParameters1.types b/tests/baselines/reference/parserGetAccessorWithTypeParameters1(target=es2015).types similarity index 100% rename from tests/baselines/reference/parserGetAccessorWithTypeParameters1.types rename to tests/baselines/reference/parserGetAccessorWithTypeParameters1(target=es2015).types diff --git a/tests/baselines/reference/parserGetAccessorWithTypeParameters1(target=es5).errors.txt b/tests/baselines/reference/parserGetAccessorWithTypeParameters1(target=es5).errors.txt new file mode 100644 index 0000000000000..6bb18aa3135be --- /dev/null +++ b/tests/baselines/reference/parserGetAccessorWithTypeParameters1(target=es5).errors.txt @@ -0,0 +1,12 @@ +parserGetAccessorWithTypeParameters1.ts(2,7): error TS1094: An accessor cannot have type parameters. +parserGetAccessorWithTypeParameters1.ts(2,7): error TS2378: A 'get' accessor must return a value. + + +==== parserGetAccessorWithTypeParameters1.ts (2 errors) ==== + class C { + get foo() { } + ~~~ +!!! error TS1094: An accessor cannot have type parameters. + ~~~ +!!! error TS2378: A 'get' accessor must return a value. + } \ No newline at end of file diff --git a/tests/baselines/reference/parserGetAccessorWithTypeParameters1.js b/tests/baselines/reference/parserGetAccessorWithTypeParameters1(target=es5).js similarity index 100% rename from tests/baselines/reference/parserGetAccessorWithTypeParameters1.js rename to tests/baselines/reference/parserGetAccessorWithTypeParameters1(target=es5).js diff --git a/tests/baselines/reference/parserGetAccessorWithTypeParameters1(target=es5).symbols b/tests/baselines/reference/parserGetAccessorWithTypeParameters1(target=es5).symbols new file mode 100644 index 0000000000000..82c7fa7e2ce0a --- /dev/null +++ b/tests/baselines/reference/parserGetAccessorWithTypeParameters1(target=es5).symbols @@ -0,0 +1,10 @@ +//// [tests/cases/conformance/parser/ecmascript5/Accessors/parserGetAccessorWithTypeParameters1.ts] //// + +=== parserGetAccessorWithTypeParameters1.ts === +class C { +>C : Symbol(C, Decl(parserGetAccessorWithTypeParameters1.ts, 0, 0)) + + get foo() { } +>foo : Symbol(C.foo, Decl(parserGetAccessorWithTypeParameters1.ts, 0, 9)) +>T : Symbol(T, Decl(parserGetAccessorWithTypeParameters1.ts, 1, 10)) +} diff --git a/tests/baselines/reference/parserGetAccessorWithTypeParameters1(target=es5).types b/tests/baselines/reference/parserGetAccessorWithTypeParameters1(target=es5).types new file mode 100644 index 0000000000000..94dfee70e60dd --- /dev/null +++ b/tests/baselines/reference/parserGetAccessorWithTypeParameters1(target=es5).types @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/parser/ecmascript5/Accessors/parserGetAccessorWithTypeParameters1.ts] //// + +=== parserGetAccessorWithTypeParameters1.ts === +class C { +>C : C +> : ^ + + get foo() { } +>foo : void +> : ^^^^ +} diff --git a/tests/baselines/reference/parserMemberAccessor1.errors.txt b/tests/baselines/reference/parserMemberAccessor1(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/parserMemberAccessor1.errors.txt rename to tests/baselines/reference/parserMemberAccessor1(target=es2015).errors.txt diff --git a/tests/baselines/reference/parserMemberAccessor1(target=es2015).js b/tests/baselines/reference/parserMemberAccessor1(target=es2015).js new file mode 100644 index 0000000000000..e327a6e8bc25f --- /dev/null +++ b/tests/baselines/reference/parserMemberAccessor1(target=es2015).js @@ -0,0 +1,13 @@ +//// [tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessor1.ts] //// + +//// [parserMemberAccessor1.ts] +class C { + get foo() { } + set foo(a) { } +} + +//// [parserMemberAccessor1.js] +class C { + get foo() { } + set foo(a) { } +} diff --git a/tests/baselines/reference/parserMemberAccessor1.symbols b/tests/baselines/reference/parserMemberAccessor1(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/parserMemberAccessor1.symbols rename to tests/baselines/reference/parserMemberAccessor1(target=es2015).symbols diff --git a/tests/baselines/reference/parserMemberAccessor1.types b/tests/baselines/reference/parserMemberAccessor1(target=es2015).types similarity index 100% rename from tests/baselines/reference/parserMemberAccessor1.types rename to tests/baselines/reference/parserMemberAccessor1(target=es2015).types diff --git a/tests/baselines/reference/parserMemberAccessor1(target=es5).errors.txt b/tests/baselines/reference/parserMemberAccessor1(target=es5).errors.txt new file mode 100644 index 0000000000000..619d3cf12866b --- /dev/null +++ b/tests/baselines/reference/parserMemberAccessor1(target=es5).errors.txt @@ -0,0 +1,10 @@ +parserMemberAccessor1.ts(2,7): error TS2378: A 'get' accessor must return a value. + + +==== parserMemberAccessor1.ts (1 errors) ==== + class C { + get foo() { } + ~~~ +!!! error TS2378: A 'get' accessor must return a value. + set foo(a) { } + } \ No newline at end of file diff --git a/tests/baselines/reference/parserMemberAccessor1.js b/tests/baselines/reference/parserMemberAccessor1(target=es5).js similarity index 100% rename from tests/baselines/reference/parserMemberAccessor1.js rename to tests/baselines/reference/parserMemberAccessor1(target=es5).js diff --git a/tests/baselines/reference/parserMemberAccessor1(target=es5).symbols b/tests/baselines/reference/parserMemberAccessor1(target=es5).symbols new file mode 100644 index 0000000000000..4b9da7f04254f --- /dev/null +++ b/tests/baselines/reference/parserMemberAccessor1(target=es5).symbols @@ -0,0 +1,13 @@ +//// [tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessor1.ts] //// + +=== parserMemberAccessor1.ts === +class C { +>C : Symbol(C, Decl(parserMemberAccessor1.ts, 0, 0)) + + get foo() { } +>foo : Symbol(C.foo, Decl(parserMemberAccessor1.ts, 0, 9), Decl(parserMemberAccessor1.ts, 1, 15)) + + set foo(a) { } +>foo : Symbol(C.foo, Decl(parserMemberAccessor1.ts, 0, 9), Decl(parserMemberAccessor1.ts, 1, 15)) +>a : Symbol(a, Decl(parserMemberAccessor1.ts, 2, 10)) +} diff --git a/tests/baselines/reference/parserMemberAccessor1(target=es5).types b/tests/baselines/reference/parserMemberAccessor1(target=es5).types new file mode 100644 index 0000000000000..9da24747c60d4 --- /dev/null +++ b/tests/baselines/reference/parserMemberAccessor1(target=es5).types @@ -0,0 +1,17 @@ +//// [tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessor1.ts] //// + +=== parserMemberAccessor1.ts === +class C { +>C : C +> : ^ + + get foo() { } +>foo : void +> : ^^^^ + + set foo(a) { } +>foo : void +> : ^^^^ +>a : void +> : ^^^^ +} diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration1.errors.txt b/tests/baselines/reference/parserMemberAccessorDeclaration1(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/parserMemberAccessorDeclaration1.errors.txt rename to tests/baselines/reference/parserMemberAccessorDeclaration1(target=es2015).errors.txt diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration1(target=es2015).js b/tests/baselines/reference/parserMemberAccessorDeclaration1(target=es2015).js new file mode 100644 index 0000000000000..4f4c6d6f59978 --- /dev/null +++ b/tests/baselines/reference/parserMemberAccessorDeclaration1(target=es2015).js @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration1.ts] //// + +//// [parserMemberAccessorDeclaration1.ts] +class C { + get a() { } +} + +//// [parserMemberAccessorDeclaration1.js] +class C { + get a() { } +} diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration1.symbols b/tests/baselines/reference/parserMemberAccessorDeclaration1(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/parserMemberAccessorDeclaration1.symbols rename to tests/baselines/reference/parserMemberAccessorDeclaration1(target=es2015).symbols diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration1.types b/tests/baselines/reference/parserMemberAccessorDeclaration1(target=es2015).types similarity index 100% rename from tests/baselines/reference/parserMemberAccessorDeclaration1.types rename to tests/baselines/reference/parserMemberAccessorDeclaration1(target=es2015).types diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration1(target=es5).errors.txt b/tests/baselines/reference/parserMemberAccessorDeclaration1(target=es5).errors.txt new file mode 100644 index 0000000000000..46624f41d91bf --- /dev/null +++ b/tests/baselines/reference/parserMemberAccessorDeclaration1(target=es5).errors.txt @@ -0,0 +1,9 @@ +parserMemberAccessorDeclaration1.ts(2,7): error TS2378: A 'get' accessor must return a value. + + +==== parserMemberAccessorDeclaration1.ts (1 errors) ==== + class C { + get a() { } + ~ +!!! error TS2378: A 'get' accessor must return a value. + } \ No newline at end of file diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration1.js b/tests/baselines/reference/parserMemberAccessorDeclaration1(target=es5).js similarity index 100% rename from tests/baselines/reference/parserMemberAccessorDeclaration1.js rename to tests/baselines/reference/parserMemberAccessorDeclaration1(target=es5).js diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration1(target=es5).symbols b/tests/baselines/reference/parserMemberAccessorDeclaration1(target=es5).symbols new file mode 100644 index 0000000000000..ae97454962020 --- /dev/null +++ b/tests/baselines/reference/parserMemberAccessorDeclaration1(target=es5).symbols @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration1.ts] //// + +=== parserMemberAccessorDeclaration1.ts === +class C { +>C : Symbol(C, Decl(parserMemberAccessorDeclaration1.ts, 0, 0)) + + get a() { } +>a : Symbol(C.a, Decl(parserMemberAccessorDeclaration1.ts, 0, 9)) +} diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration1(target=es5).types b/tests/baselines/reference/parserMemberAccessorDeclaration1(target=es5).types new file mode 100644 index 0000000000000..5805ab2e66b5b --- /dev/null +++ b/tests/baselines/reference/parserMemberAccessorDeclaration1(target=es5).types @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration1.ts] //// + +=== parserMemberAccessorDeclaration1.ts === +class C { +>C : C +> : ^ + + get a() { } +>a : void +> : ^^^^ +} diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration10.errors.txt b/tests/baselines/reference/parserMemberAccessorDeclaration10(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/parserMemberAccessorDeclaration10.errors.txt rename to tests/baselines/reference/parserMemberAccessorDeclaration10(target=es2015).errors.txt diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration10(target=es2015).js b/tests/baselines/reference/parserMemberAccessorDeclaration10(target=es2015).js new file mode 100644 index 0000000000000..2bb04a99fb842 --- /dev/null +++ b/tests/baselines/reference/parserMemberAccessorDeclaration10(target=es2015).js @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration10.ts] //// + +//// [parserMemberAccessorDeclaration10.ts] +class C { + export get Foo() { } +} + +//// [parserMemberAccessorDeclaration10.js] +class C { + export get Foo() { } +} diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration10.symbols b/tests/baselines/reference/parserMemberAccessorDeclaration10(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/parserMemberAccessorDeclaration10.symbols rename to tests/baselines/reference/parserMemberAccessorDeclaration10(target=es2015).symbols diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration10.types b/tests/baselines/reference/parserMemberAccessorDeclaration10(target=es2015).types similarity index 100% rename from tests/baselines/reference/parserMemberAccessorDeclaration10.types rename to tests/baselines/reference/parserMemberAccessorDeclaration10(target=es2015).types diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration10(target=es5).errors.txt b/tests/baselines/reference/parserMemberAccessorDeclaration10(target=es5).errors.txt new file mode 100644 index 0000000000000..21bd634511824 --- /dev/null +++ b/tests/baselines/reference/parserMemberAccessorDeclaration10(target=es5).errors.txt @@ -0,0 +1,12 @@ +parserMemberAccessorDeclaration10.ts(2,5): error TS1031: 'export' modifier cannot appear on class elements of this kind. +parserMemberAccessorDeclaration10.ts(2,16): error TS2378: A 'get' accessor must return a value. + + +==== parserMemberAccessorDeclaration10.ts (2 errors) ==== + class C { + export get Foo() { } + ~~~~~~ +!!! error TS1031: 'export' modifier cannot appear on class elements of this kind. + ~~~ +!!! error TS2378: A 'get' accessor must return a value. + } \ No newline at end of file diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration10.js b/tests/baselines/reference/parserMemberAccessorDeclaration10(target=es5).js similarity index 100% rename from tests/baselines/reference/parserMemberAccessorDeclaration10.js rename to tests/baselines/reference/parserMemberAccessorDeclaration10(target=es5).js diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration10(target=es5).symbols b/tests/baselines/reference/parserMemberAccessorDeclaration10(target=es5).symbols new file mode 100644 index 0000000000000..77b5a01aceed2 --- /dev/null +++ b/tests/baselines/reference/parserMemberAccessorDeclaration10(target=es5).symbols @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration10.ts] //// + +=== parserMemberAccessorDeclaration10.ts === +class C { +>C : Symbol(C, Decl(parserMemberAccessorDeclaration10.ts, 0, 0)) + + export get Foo() { } +>Foo : Symbol(C.Foo, Decl(parserMemberAccessorDeclaration10.ts, 0, 9)) +} diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration10(target=es5).types b/tests/baselines/reference/parserMemberAccessorDeclaration10(target=es5).types new file mode 100644 index 0000000000000..24fa57f20906e --- /dev/null +++ b/tests/baselines/reference/parserMemberAccessorDeclaration10(target=es5).types @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration10.ts] //// + +=== parserMemberAccessorDeclaration10.ts === +class C { +>C : C +> : ^ + + export get Foo() { } +>Foo : void +> : ^^^^ +} diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration11.errors.txt b/tests/baselines/reference/parserMemberAccessorDeclaration11(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/parserMemberAccessorDeclaration11.errors.txt rename to tests/baselines/reference/parserMemberAccessorDeclaration11(target=es2015).errors.txt diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration11(target=es2015).js b/tests/baselines/reference/parserMemberAccessorDeclaration11(target=es2015).js new file mode 100644 index 0000000000000..ad70bd759614c --- /dev/null +++ b/tests/baselines/reference/parserMemberAccessorDeclaration11(target=es2015).js @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration11.ts] //// + +//// [parserMemberAccessorDeclaration11.ts] +class C { + declare get Foo() { } +} + +//// [parserMemberAccessorDeclaration11.js] +class C { + get Foo() { } +} diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration11.symbols b/tests/baselines/reference/parserMemberAccessorDeclaration11(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/parserMemberAccessorDeclaration11.symbols rename to tests/baselines/reference/parserMemberAccessorDeclaration11(target=es2015).symbols diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration11.types b/tests/baselines/reference/parserMemberAccessorDeclaration11(target=es2015).types similarity index 100% rename from tests/baselines/reference/parserMemberAccessorDeclaration11.types rename to tests/baselines/reference/parserMemberAccessorDeclaration11(target=es2015).types diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration11(target=es5).errors.txt b/tests/baselines/reference/parserMemberAccessorDeclaration11(target=es5).errors.txt new file mode 100644 index 0000000000000..db9f5318d199e --- /dev/null +++ b/tests/baselines/reference/parserMemberAccessorDeclaration11(target=es5).errors.txt @@ -0,0 +1,12 @@ +parserMemberAccessorDeclaration11.ts(2,5): error TS1031: 'declare' modifier cannot appear on class elements of this kind. +parserMemberAccessorDeclaration11.ts(2,17): error TS2378: A 'get' accessor must return a value. + + +==== parserMemberAccessorDeclaration11.ts (2 errors) ==== + class C { + declare get Foo() { } + ~~~~~~~ +!!! error TS1031: 'declare' modifier cannot appear on class elements of this kind. + ~~~ +!!! error TS2378: A 'get' accessor must return a value. + } \ No newline at end of file diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration11.js b/tests/baselines/reference/parserMemberAccessorDeclaration11(target=es5).js similarity index 100% rename from tests/baselines/reference/parserMemberAccessorDeclaration11.js rename to tests/baselines/reference/parserMemberAccessorDeclaration11(target=es5).js diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration11(target=es5).symbols b/tests/baselines/reference/parserMemberAccessorDeclaration11(target=es5).symbols new file mode 100644 index 0000000000000..e39569f86bce5 --- /dev/null +++ b/tests/baselines/reference/parserMemberAccessorDeclaration11(target=es5).symbols @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration11.ts] //// + +=== parserMemberAccessorDeclaration11.ts === +class C { +>C : Symbol(C, Decl(parserMemberAccessorDeclaration11.ts, 0, 0)) + + declare get Foo() { } +>Foo : Symbol(C.Foo, Decl(parserMemberAccessorDeclaration11.ts, 0, 9)) +} diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration11(target=es5).types b/tests/baselines/reference/parserMemberAccessorDeclaration11(target=es5).types new file mode 100644 index 0000000000000..2d04951c02d18 --- /dev/null +++ b/tests/baselines/reference/parserMemberAccessorDeclaration11(target=es5).types @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration11.ts] //// + +=== parserMemberAccessorDeclaration11.ts === +class C { +>C : C +> : ^ + + declare get Foo() { } +>Foo : void +> : ^^^^ +} diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration12.errors.txt b/tests/baselines/reference/parserMemberAccessorDeclaration12(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/parserMemberAccessorDeclaration12.errors.txt rename to tests/baselines/reference/parserMemberAccessorDeclaration12(target=es2015).errors.txt diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration12(target=es2015).js b/tests/baselines/reference/parserMemberAccessorDeclaration12(target=es2015).js new file mode 100644 index 0000000000000..486d8db5ae5d6 --- /dev/null +++ b/tests/baselines/reference/parserMemberAccessorDeclaration12(target=es2015).js @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration12.ts] //// + +//// [parserMemberAccessorDeclaration12.ts] +class C { + get Foo(a: number) { } +} + +//// [parserMemberAccessorDeclaration12.js] +class C { + get Foo(a) { } +} diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration12.symbols b/tests/baselines/reference/parserMemberAccessorDeclaration12(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/parserMemberAccessorDeclaration12.symbols rename to tests/baselines/reference/parserMemberAccessorDeclaration12(target=es2015).symbols diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration12.types b/tests/baselines/reference/parserMemberAccessorDeclaration12(target=es2015).types similarity index 100% rename from tests/baselines/reference/parserMemberAccessorDeclaration12.types rename to tests/baselines/reference/parserMemberAccessorDeclaration12(target=es2015).types diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration12(target=es5).errors.txt b/tests/baselines/reference/parserMemberAccessorDeclaration12(target=es5).errors.txt new file mode 100644 index 0000000000000..a7b7b7b9582c3 --- /dev/null +++ b/tests/baselines/reference/parserMemberAccessorDeclaration12(target=es5).errors.txt @@ -0,0 +1,12 @@ +parserMemberAccessorDeclaration12.ts(2,8): error TS1054: A 'get' accessor cannot have parameters. +parserMemberAccessorDeclaration12.ts(2,8): error TS2378: A 'get' accessor must return a value. + + +==== parserMemberAccessorDeclaration12.ts (2 errors) ==== + class C { + get Foo(a: number) { } + ~~~ +!!! error TS1054: A 'get' accessor cannot have parameters. + ~~~ +!!! error TS2378: A 'get' accessor must return a value. + } \ No newline at end of file diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration12.js b/tests/baselines/reference/parserMemberAccessorDeclaration12(target=es5).js similarity index 100% rename from tests/baselines/reference/parserMemberAccessorDeclaration12.js rename to tests/baselines/reference/parserMemberAccessorDeclaration12(target=es5).js diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration12(target=es5).symbols b/tests/baselines/reference/parserMemberAccessorDeclaration12(target=es5).symbols new file mode 100644 index 0000000000000..060a8946d26b2 --- /dev/null +++ b/tests/baselines/reference/parserMemberAccessorDeclaration12(target=es5).symbols @@ -0,0 +1,10 @@ +//// [tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration12.ts] //// + +=== parserMemberAccessorDeclaration12.ts === +class C { +>C : Symbol(C, Decl(parserMemberAccessorDeclaration12.ts, 0, 0)) + + get Foo(a: number) { } +>Foo : Symbol(C.Foo, Decl(parserMemberAccessorDeclaration12.ts, 0, 9)) +>a : Symbol(a, Decl(parserMemberAccessorDeclaration12.ts, 1, 11)) +} diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration12(target=es5).types b/tests/baselines/reference/parserMemberAccessorDeclaration12(target=es5).types new file mode 100644 index 0000000000000..25a6484ac2679 --- /dev/null +++ b/tests/baselines/reference/parserMemberAccessorDeclaration12(target=es5).types @@ -0,0 +1,13 @@ +//// [tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration12.ts] //// + +=== parserMemberAccessorDeclaration12.ts === +class C { +>C : C +> : ^ + + get Foo(a: number) { } +>Foo : void +> : ^^^^ +>a : number +> : ^^^^^^ +} diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration13.errors.txt b/tests/baselines/reference/parserMemberAccessorDeclaration13(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/parserMemberAccessorDeclaration13.errors.txt rename to tests/baselines/reference/parserMemberAccessorDeclaration13(target=es2015).errors.txt diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration13(target=es2015).js b/tests/baselines/reference/parserMemberAccessorDeclaration13(target=es2015).js new file mode 100644 index 0000000000000..a32fcadd567eb --- /dev/null +++ b/tests/baselines/reference/parserMemberAccessorDeclaration13(target=es2015).js @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration13.ts] //// + +//// [parserMemberAccessorDeclaration13.ts] +class C { + set Foo() { } +} + +//// [parserMemberAccessorDeclaration13.js] +class C { + set Foo() { } +} diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration13.symbols b/tests/baselines/reference/parserMemberAccessorDeclaration13(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/parserMemberAccessorDeclaration13.symbols rename to tests/baselines/reference/parserMemberAccessorDeclaration13(target=es2015).symbols diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration13.types b/tests/baselines/reference/parserMemberAccessorDeclaration13(target=es2015).types similarity index 100% rename from tests/baselines/reference/parserMemberAccessorDeclaration13.types rename to tests/baselines/reference/parserMemberAccessorDeclaration13(target=es2015).types diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration13(target=es5).errors.txt b/tests/baselines/reference/parserMemberAccessorDeclaration13(target=es5).errors.txt new file mode 100644 index 0000000000000..6394c66245c72 --- /dev/null +++ b/tests/baselines/reference/parserMemberAccessorDeclaration13(target=es5).errors.txt @@ -0,0 +1,9 @@ +parserMemberAccessorDeclaration13.ts(2,8): error TS1049: A 'set' accessor must have exactly one parameter. + + +==== parserMemberAccessorDeclaration13.ts (1 errors) ==== + class C { + set Foo() { } + ~~~ +!!! error TS1049: A 'set' accessor must have exactly one parameter. + } \ No newline at end of file diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration13.js b/tests/baselines/reference/parserMemberAccessorDeclaration13(target=es5).js similarity index 100% rename from tests/baselines/reference/parserMemberAccessorDeclaration13.js rename to tests/baselines/reference/parserMemberAccessorDeclaration13(target=es5).js diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration13(target=es5).symbols b/tests/baselines/reference/parserMemberAccessorDeclaration13(target=es5).symbols new file mode 100644 index 0000000000000..ee976c5611d8b --- /dev/null +++ b/tests/baselines/reference/parserMemberAccessorDeclaration13(target=es5).symbols @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration13.ts] //// + +=== parserMemberAccessorDeclaration13.ts === +class C { +>C : Symbol(C, Decl(parserMemberAccessorDeclaration13.ts, 0, 0)) + + set Foo() { } +>Foo : Symbol(C.Foo, Decl(parserMemberAccessorDeclaration13.ts, 0, 9)) +} diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration13(target=es5).types b/tests/baselines/reference/parserMemberAccessorDeclaration13(target=es5).types new file mode 100644 index 0000000000000..22fffbe2221fd --- /dev/null +++ b/tests/baselines/reference/parserMemberAccessorDeclaration13(target=es5).types @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration13.ts] //// + +=== parserMemberAccessorDeclaration13.ts === +class C { +>C : C +> : ^ + + set Foo() { } +>Foo : any +> : ^^^ +} diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration14.errors.txt b/tests/baselines/reference/parserMemberAccessorDeclaration14(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/parserMemberAccessorDeclaration14.errors.txt rename to tests/baselines/reference/parserMemberAccessorDeclaration14(target=es2015).errors.txt diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration14(target=es2015).js b/tests/baselines/reference/parserMemberAccessorDeclaration14(target=es2015).js new file mode 100644 index 0000000000000..36403be6ac5aa --- /dev/null +++ b/tests/baselines/reference/parserMemberAccessorDeclaration14(target=es2015).js @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration14.ts] //// + +//// [parserMemberAccessorDeclaration14.ts] +class C { + set Foo(a: number, b: number) { } +} + +//// [parserMemberAccessorDeclaration14.js] +class C { + set Foo(a, b) { } +} diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration14.symbols b/tests/baselines/reference/parserMemberAccessorDeclaration14(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/parserMemberAccessorDeclaration14.symbols rename to tests/baselines/reference/parserMemberAccessorDeclaration14(target=es2015).symbols diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration14.types b/tests/baselines/reference/parserMemberAccessorDeclaration14(target=es2015).types similarity index 100% rename from tests/baselines/reference/parserMemberAccessorDeclaration14.types rename to tests/baselines/reference/parserMemberAccessorDeclaration14(target=es2015).types diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration14(target=es5).errors.txt b/tests/baselines/reference/parserMemberAccessorDeclaration14(target=es5).errors.txt new file mode 100644 index 0000000000000..c7bbfc477558d --- /dev/null +++ b/tests/baselines/reference/parserMemberAccessorDeclaration14(target=es5).errors.txt @@ -0,0 +1,9 @@ +parserMemberAccessorDeclaration14.ts(2,8): error TS1049: A 'set' accessor must have exactly one parameter. + + +==== parserMemberAccessorDeclaration14.ts (1 errors) ==== + class C { + set Foo(a: number, b: number) { } + ~~~ +!!! error TS1049: A 'set' accessor must have exactly one parameter. + } \ No newline at end of file diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration14.js b/tests/baselines/reference/parserMemberAccessorDeclaration14(target=es5).js similarity index 100% rename from tests/baselines/reference/parserMemberAccessorDeclaration14.js rename to tests/baselines/reference/parserMemberAccessorDeclaration14(target=es5).js diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration14(target=es5).symbols b/tests/baselines/reference/parserMemberAccessorDeclaration14(target=es5).symbols new file mode 100644 index 0000000000000..65c9aa0b1a424 --- /dev/null +++ b/tests/baselines/reference/parserMemberAccessorDeclaration14(target=es5).symbols @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration14.ts] //// + +=== parserMemberAccessorDeclaration14.ts === +class C { +>C : Symbol(C, Decl(parserMemberAccessorDeclaration14.ts, 0, 0)) + + set Foo(a: number, b: number) { } +>Foo : Symbol(C.Foo, Decl(parserMemberAccessorDeclaration14.ts, 0, 9)) +>a : Symbol(a, Decl(parserMemberAccessorDeclaration14.ts, 1, 11)) +>b : Symbol(b, Decl(parserMemberAccessorDeclaration14.ts, 1, 21)) +} diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration14(target=es5).types b/tests/baselines/reference/parserMemberAccessorDeclaration14(target=es5).types new file mode 100644 index 0000000000000..89e354b2d09f4 --- /dev/null +++ b/tests/baselines/reference/parserMemberAccessorDeclaration14(target=es5).types @@ -0,0 +1,15 @@ +//// [tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration14.ts] //// + +=== parserMemberAccessorDeclaration14.ts === +class C { +>C : C +> : ^ + + set Foo(a: number, b: number) { } +>Foo : number +> : ^^^^^^ +>a : number +> : ^^^^^^ +>b : number +> : ^^^^^^ +} diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration15.errors.txt b/tests/baselines/reference/parserMemberAccessorDeclaration15(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/parserMemberAccessorDeclaration15.errors.txt rename to tests/baselines/reference/parserMemberAccessorDeclaration15(target=es2015).errors.txt diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration15(target=es2015).js b/tests/baselines/reference/parserMemberAccessorDeclaration15(target=es2015).js new file mode 100644 index 0000000000000..f254ce57b6ddd --- /dev/null +++ b/tests/baselines/reference/parserMemberAccessorDeclaration15(target=es2015).js @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration15.ts] //// + +//// [parserMemberAccessorDeclaration15.ts] +class C { + set Foo(public a: number) { } +} + +//// [parserMemberAccessorDeclaration15.js] +class C { + set Foo(a) { } +} diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration15.symbols b/tests/baselines/reference/parserMemberAccessorDeclaration15(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/parserMemberAccessorDeclaration15.symbols rename to tests/baselines/reference/parserMemberAccessorDeclaration15(target=es2015).symbols diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration15.types b/tests/baselines/reference/parserMemberAccessorDeclaration15(target=es2015).types similarity index 100% rename from tests/baselines/reference/parserMemberAccessorDeclaration15.types rename to tests/baselines/reference/parserMemberAccessorDeclaration15(target=es2015).types diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration15(target=es5).errors.txt b/tests/baselines/reference/parserMemberAccessorDeclaration15(target=es5).errors.txt new file mode 100644 index 0000000000000..dd2e422b0c1d3 --- /dev/null +++ b/tests/baselines/reference/parserMemberAccessorDeclaration15(target=es5).errors.txt @@ -0,0 +1,9 @@ +parserMemberAccessorDeclaration15.ts(2,12): error TS2369: A parameter property is only allowed in a constructor implementation. + + +==== parserMemberAccessorDeclaration15.ts (1 errors) ==== + class C { + set Foo(public a: number) { } + ~~~~~~~~~~~~~~~~ +!!! error TS2369: A parameter property is only allowed in a constructor implementation. + } \ No newline at end of file diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration15.js b/tests/baselines/reference/parserMemberAccessorDeclaration15(target=es5).js similarity index 100% rename from tests/baselines/reference/parserMemberAccessorDeclaration15.js rename to tests/baselines/reference/parserMemberAccessorDeclaration15(target=es5).js diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration15(target=es5).symbols b/tests/baselines/reference/parserMemberAccessorDeclaration15(target=es5).symbols new file mode 100644 index 0000000000000..c608853c67d95 --- /dev/null +++ b/tests/baselines/reference/parserMemberAccessorDeclaration15(target=es5).symbols @@ -0,0 +1,10 @@ +//// [tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration15.ts] //// + +=== parserMemberAccessorDeclaration15.ts === +class C { +>C : Symbol(C, Decl(parserMemberAccessorDeclaration15.ts, 0, 0)) + + set Foo(public a: number) { } +>Foo : Symbol(C.Foo, Decl(parserMemberAccessorDeclaration15.ts, 0, 9)) +>a : Symbol(a, Decl(parserMemberAccessorDeclaration15.ts, 1, 11)) +} diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration15(target=es5).types b/tests/baselines/reference/parserMemberAccessorDeclaration15(target=es5).types new file mode 100644 index 0000000000000..93be1cd0107ef --- /dev/null +++ b/tests/baselines/reference/parserMemberAccessorDeclaration15(target=es5).types @@ -0,0 +1,13 @@ +//// [tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration15.ts] //// + +=== parserMemberAccessorDeclaration15.ts === +class C { +>C : C +> : ^ + + set Foo(public a: number) { } +>Foo : number +> : ^^^^^^ +>a : number +> : ^^^^^^ +} diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration16.errors.txt b/tests/baselines/reference/parserMemberAccessorDeclaration16(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/parserMemberAccessorDeclaration16.errors.txt rename to tests/baselines/reference/parserMemberAccessorDeclaration16(target=es2015).errors.txt diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration16(target=es2015).js b/tests/baselines/reference/parserMemberAccessorDeclaration16(target=es2015).js new file mode 100644 index 0000000000000..d0bfd2a7ca635 --- /dev/null +++ b/tests/baselines/reference/parserMemberAccessorDeclaration16(target=es2015).js @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration16.ts] //// + +//// [parserMemberAccessorDeclaration16.ts] +class C { + set Foo(a = 1) { } +} + +//// [parserMemberAccessorDeclaration16.js] +class C { + set Foo(a = 1) { } +} diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration16.symbols b/tests/baselines/reference/parserMemberAccessorDeclaration16(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/parserMemberAccessorDeclaration16.symbols rename to tests/baselines/reference/parserMemberAccessorDeclaration16(target=es2015).symbols diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration16.types b/tests/baselines/reference/parserMemberAccessorDeclaration16(target=es2015).types similarity index 100% rename from tests/baselines/reference/parserMemberAccessorDeclaration16.types rename to tests/baselines/reference/parserMemberAccessorDeclaration16(target=es2015).types diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration16(target=es5).errors.txt b/tests/baselines/reference/parserMemberAccessorDeclaration16(target=es5).errors.txt new file mode 100644 index 0000000000000..c7a45f569c64d --- /dev/null +++ b/tests/baselines/reference/parserMemberAccessorDeclaration16(target=es5).errors.txt @@ -0,0 +1,9 @@ +parserMemberAccessorDeclaration16.ts(2,8): error TS1052: A 'set' accessor parameter cannot have an initializer. + + +==== parserMemberAccessorDeclaration16.ts (1 errors) ==== + class C { + set Foo(a = 1) { } + ~~~ +!!! error TS1052: A 'set' accessor parameter cannot have an initializer. + } \ No newline at end of file diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration16.js b/tests/baselines/reference/parserMemberAccessorDeclaration16(target=es5).js similarity index 100% rename from tests/baselines/reference/parserMemberAccessorDeclaration16.js rename to tests/baselines/reference/parserMemberAccessorDeclaration16(target=es5).js diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration16(target=es5).symbols b/tests/baselines/reference/parserMemberAccessorDeclaration16(target=es5).symbols new file mode 100644 index 0000000000000..24b84534eb497 --- /dev/null +++ b/tests/baselines/reference/parserMemberAccessorDeclaration16(target=es5).symbols @@ -0,0 +1,10 @@ +//// [tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration16.ts] //// + +=== parserMemberAccessorDeclaration16.ts === +class C { +>C : Symbol(C, Decl(parserMemberAccessorDeclaration16.ts, 0, 0)) + + set Foo(a = 1) { } +>Foo : Symbol(C.Foo, Decl(parserMemberAccessorDeclaration16.ts, 0, 9)) +>a : Symbol(a, Decl(parserMemberAccessorDeclaration16.ts, 1, 11)) +} diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration16(target=es5).types b/tests/baselines/reference/parserMemberAccessorDeclaration16(target=es5).types new file mode 100644 index 0000000000000..e723f0e24ea16 --- /dev/null +++ b/tests/baselines/reference/parserMemberAccessorDeclaration16(target=es5).types @@ -0,0 +1,15 @@ +//// [tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration16.ts] //// + +=== parserMemberAccessorDeclaration16.ts === +class C { +>C : C +> : ^ + + set Foo(a = 1) { } +>Foo : any +> : ^^^ +>a : number +> : ^^^^^^ +>1 : 1 +> : ^ +} diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration17.errors.txt b/tests/baselines/reference/parserMemberAccessorDeclaration17(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/parserMemberAccessorDeclaration17.errors.txt rename to tests/baselines/reference/parserMemberAccessorDeclaration17(target=es2015).errors.txt diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration17(target=es2015).js b/tests/baselines/reference/parserMemberAccessorDeclaration17(target=es2015).js new file mode 100644 index 0000000000000..a757ca147d0db --- /dev/null +++ b/tests/baselines/reference/parserMemberAccessorDeclaration17(target=es2015).js @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration17.ts] //// + +//// [parserMemberAccessorDeclaration17.ts] +class C { + set Foo(a?: number) { } +} + +//// [parserMemberAccessorDeclaration17.js] +class C { + set Foo(a) { } +} diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration17.symbols b/tests/baselines/reference/parserMemberAccessorDeclaration17(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/parserMemberAccessorDeclaration17.symbols rename to tests/baselines/reference/parserMemberAccessorDeclaration17(target=es2015).symbols diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration17.types b/tests/baselines/reference/parserMemberAccessorDeclaration17(target=es2015).types similarity index 100% rename from tests/baselines/reference/parserMemberAccessorDeclaration17.types rename to tests/baselines/reference/parserMemberAccessorDeclaration17(target=es2015).types diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration17(target=es5).errors.txt b/tests/baselines/reference/parserMemberAccessorDeclaration17(target=es5).errors.txt new file mode 100644 index 0000000000000..5c5bd460b58f9 --- /dev/null +++ b/tests/baselines/reference/parserMemberAccessorDeclaration17(target=es5).errors.txt @@ -0,0 +1,9 @@ +parserMemberAccessorDeclaration17.ts(2,13): error TS1051: A 'set' accessor cannot have an optional parameter. + + +==== parserMemberAccessorDeclaration17.ts (1 errors) ==== + class C { + set Foo(a?: number) { } + ~ +!!! error TS1051: A 'set' accessor cannot have an optional parameter. + } \ No newline at end of file diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration17.js b/tests/baselines/reference/parserMemberAccessorDeclaration17(target=es5).js similarity index 100% rename from tests/baselines/reference/parserMemberAccessorDeclaration17.js rename to tests/baselines/reference/parserMemberAccessorDeclaration17(target=es5).js diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration17(target=es5).symbols b/tests/baselines/reference/parserMemberAccessorDeclaration17(target=es5).symbols new file mode 100644 index 0000000000000..151893e88544c --- /dev/null +++ b/tests/baselines/reference/parserMemberAccessorDeclaration17(target=es5).symbols @@ -0,0 +1,10 @@ +//// [tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration17.ts] //// + +=== parserMemberAccessorDeclaration17.ts === +class C { +>C : Symbol(C, Decl(parserMemberAccessorDeclaration17.ts, 0, 0)) + + set Foo(a?: number) { } +>Foo : Symbol(C.Foo, Decl(parserMemberAccessorDeclaration17.ts, 0, 9)) +>a : Symbol(a, Decl(parserMemberAccessorDeclaration17.ts, 1, 11)) +} diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration17(target=es5).types b/tests/baselines/reference/parserMemberAccessorDeclaration17(target=es5).types new file mode 100644 index 0000000000000..dc8e018ff543f --- /dev/null +++ b/tests/baselines/reference/parserMemberAccessorDeclaration17(target=es5).types @@ -0,0 +1,13 @@ +//// [tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration17.ts] //// + +=== parserMemberAccessorDeclaration17.ts === +class C { +>C : C +> : ^ + + set Foo(a?: number) { } +>Foo : number +> : ^^^^^^ +>a : number +> : ^^^^^^ +} diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration18.errors.txt b/tests/baselines/reference/parserMemberAccessorDeclaration18(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/parserMemberAccessorDeclaration18.errors.txt rename to tests/baselines/reference/parserMemberAccessorDeclaration18(target=es2015).errors.txt diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration18(target=es2015).js b/tests/baselines/reference/parserMemberAccessorDeclaration18(target=es2015).js new file mode 100644 index 0000000000000..fb7087abdf841 --- /dev/null +++ b/tests/baselines/reference/parserMemberAccessorDeclaration18(target=es2015).js @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration18.ts] //// + +//// [parserMemberAccessorDeclaration18.ts] +class C { + set Foo(...a) { } +} + +//// [parserMemberAccessorDeclaration18.js] +class C { + set Foo(...a) { } +} diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration18.symbols b/tests/baselines/reference/parserMemberAccessorDeclaration18(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/parserMemberAccessorDeclaration18.symbols rename to tests/baselines/reference/parserMemberAccessorDeclaration18(target=es2015).symbols diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration18.types b/tests/baselines/reference/parserMemberAccessorDeclaration18(target=es2015).types similarity index 100% rename from tests/baselines/reference/parserMemberAccessorDeclaration18.types rename to tests/baselines/reference/parserMemberAccessorDeclaration18(target=es2015).types diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration18(target=es5).errors.txt b/tests/baselines/reference/parserMemberAccessorDeclaration18(target=es5).errors.txt new file mode 100644 index 0000000000000..f2dbad66b4e0e --- /dev/null +++ b/tests/baselines/reference/parserMemberAccessorDeclaration18(target=es5).errors.txt @@ -0,0 +1,9 @@ +parserMemberAccessorDeclaration18.ts(2,12): error TS1053: A 'set' accessor cannot have rest parameter. + + +==== parserMemberAccessorDeclaration18.ts (1 errors) ==== + class C { + set Foo(...a) { } + ~~~ +!!! error TS1053: A 'set' accessor cannot have rest parameter. + } \ No newline at end of file diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration18.js b/tests/baselines/reference/parserMemberAccessorDeclaration18(target=es5).js similarity index 100% rename from tests/baselines/reference/parserMemberAccessorDeclaration18.js rename to tests/baselines/reference/parserMemberAccessorDeclaration18(target=es5).js diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration18(target=es5).symbols b/tests/baselines/reference/parserMemberAccessorDeclaration18(target=es5).symbols new file mode 100644 index 0000000000000..5277d6048963a --- /dev/null +++ b/tests/baselines/reference/parserMemberAccessorDeclaration18(target=es5).symbols @@ -0,0 +1,10 @@ +//// [tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration18.ts] //// + +=== parserMemberAccessorDeclaration18.ts === +class C { +>C : Symbol(C, Decl(parserMemberAccessorDeclaration18.ts, 0, 0)) + + set Foo(...a) { } +>Foo : Symbol(C.Foo, Decl(parserMemberAccessorDeclaration18.ts, 0, 9)) +>a : Symbol(a, Decl(parserMemberAccessorDeclaration18.ts, 1, 11)) +} diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration18(target=es5).types b/tests/baselines/reference/parserMemberAccessorDeclaration18(target=es5).types new file mode 100644 index 0000000000000..f002b4cb08ae5 --- /dev/null +++ b/tests/baselines/reference/parserMemberAccessorDeclaration18(target=es5).types @@ -0,0 +1,13 @@ +//// [tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration18.ts] //// + +=== parserMemberAccessorDeclaration18.ts === +class C { +>C : C +> : ^ + + set Foo(...a) { } +>Foo : any +> : ^^^ +>a : any[] +> : ^^^^^ +} diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration2.errors.txt b/tests/baselines/reference/parserMemberAccessorDeclaration2(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/parserMemberAccessorDeclaration2.errors.txt rename to tests/baselines/reference/parserMemberAccessorDeclaration2(target=es2015).errors.txt diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration2(target=es2015).js b/tests/baselines/reference/parserMemberAccessorDeclaration2(target=es2015).js new file mode 100644 index 0000000000000..3bafc0253af23 --- /dev/null +++ b/tests/baselines/reference/parserMemberAccessorDeclaration2(target=es2015).js @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration2.ts] //// + +//// [parserMemberAccessorDeclaration2.ts] +class C { + get "b"() { } +} + +//// [parserMemberAccessorDeclaration2.js] +class C { + get "b"() { } +} diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration2.symbols b/tests/baselines/reference/parserMemberAccessorDeclaration2(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/parserMemberAccessorDeclaration2.symbols rename to tests/baselines/reference/parserMemberAccessorDeclaration2(target=es2015).symbols diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration2.types b/tests/baselines/reference/parserMemberAccessorDeclaration2(target=es2015).types similarity index 100% rename from tests/baselines/reference/parserMemberAccessorDeclaration2.types rename to tests/baselines/reference/parserMemberAccessorDeclaration2(target=es2015).types diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration2(target=es5).errors.txt b/tests/baselines/reference/parserMemberAccessorDeclaration2(target=es5).errors.txt new file mode 100644 index 0000000000000..c5f140e24a824 --- /dev/null +++ b/tests/baselines/reference/parserMemberAccessorDeclaration2(target=es5).errors.txt @@ -0,0 +1,9 @@ +parserMemberAccessorDeclaration2.ts(2,7): error TS2378: A 'get' accessor must return a value. + + +==== parserMemberAccessorDeclaration2.ts (1 errors) ==== + class C { + get "b"() { } + ~~~ +!!! error TS2378: A 'get' accessor must return a value. + } \ No newline at end of file diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration2.js b/tests/baselines/reference/parserMemberAccessorDeclaration2(target=es5).js similarity index 100% rename from tests/baselines/reference/parserMemberAccessorDeclaration2.js rename to tests/baselines/reference/parserMemberAccessorDeclaration2(target=es5).js diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration2(target=es5).symbols b/tests/baselines/reference/parserMemberAccessorDeclaration2(target=es5).symbols new file mode 100644 index 0000000000000..f8ef708cc482b --- /dev/null +++ b/tests/baselines/reference/parserMemberAccessorDeclaration2(target=es5).symbols @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration2.ts] //// + +=== parserMemberAccessorDeclaration2.ts === +class C { +>C : Symbol(C, Decl(parserMemberAccessorDeclaration2.ts, 0, 0)) + + get "b"() { } +>"b" : Symbol(C["b"], Decl(parserMemberAccessorDeclaration2.ts, 0, 9)) +} diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration2(target=es5).types b/tests/baselines/reference/parserMemberAccessorDeclaration2(target=es5).types new file mode 100644 index 0000000000000..e7ac6b314b009 --- /dev/null +++ b/tests/baselines/reference/parserMemberAccessorDeclaration2(target=es5).types @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration2.ts] //// + +=== parserMemberAccessorDeclaration2.ts === +class C { +>C : C +> : ^ + + get "b"() { } +>"b" : void +> : ^^^^ +} diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration3.errors.txt b/tests/baselines/reference/parserMemberAccessorDeclaration3(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/parserMemberAccessorDeclaration3.errors.txt rename to tests/baselines/reference/parserMemberAccessorDeclaration3(target=es2015).errors.txt diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration3(target=es2015).js b/tests/baselines/reference/parserMemberAccessorDeclaration3(target=es2015).js new file mode 100644 index 0000000000000..a8c22488e59fd --- /dev/null +++ b/tests/baselines/reference/parserMemberAccessorDeclaration3(target=es2015).js @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration3.ts] //// + +//// [parserMemberAccessorDeclaration3.ts] +class C { + get 0() { } +} + +//// [parserMemberAccessorDeclaration3.js] +class C { + get 0() { } +} diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration3.symbols b/tests/baselines/reference/parserMemberAccessorDeclaration3(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/parserMemberAccessorDeclaration3.symbols rename to tests/baselines/reference/parserMemberAccessorDeclaration3(target=es2015).symbols diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration3.types b/tests/baselines/reference/parserMemberAccessorDeclaration3(target=es2015).types similarity index 100% rename from tests/baselines/reference/parserMemberAccessorDeclaration3.types rename to tests/baselines/reference/parserMemberAccessorDeclaration3(target=es2015).types diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration3(target=es5).errors.txt b/tests/baselines/reference/parserMemberAccessorDeclaration3(target=es5).errors.txt new file mode 100644 index 0000000000000..6b6a9d6486101 --- /dev/null +++ b/tests/baselines/reference/parserMemberAccessorDeclaration3(target=es5).errors.txt @@ -0,0 +1,9 @@ +parserMemberAccessorDeclaration3.ts(2,7): error TS2378: A 'get' accessor must return a value. + + +==== parserMemberAccessorDeclaration3.ts (1 errors) ==== + class C { + get 0() { } + ~ +!!! error TS2378: A 'get' accessor must return a value. + } \ No newline at end of file diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration3.js b/tests/baselines/reference/parserMemberAccessorDeclaration3(target=es5).js similarity index 100% rename from tests/baselines/reference/parserMemberAccessorDeclaration3.js rename to tests/baselines/reference/parserMemberAccessorDeclaration3(target=es5).js diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration3(target=es5).symbols b/tests/baselines/reference/parserMemberAccessorDeclaration3(target=es5).symbols new file mode 100644 index 0000000000000..4b7ea46136a37 --- /dev/null +++ b/tests/baselines/reference/parserMemberAccessorDeclaration3(target=es5).symbols @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration3.ts] //// + +=== parserMemberAccessorDeclaration3.ts === +class C { +>C : Symbol(C, Decl(parserMemberAccessorDeclaration3.ts, 0, 0)) + + get 0() { } +>0 : Symbol(C[0], Decl(parserMemberAccessorDeclaration3.ts, 0, 9)) +} diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration3(target=es5).types b/tests/baselines/reference/parserMemberAccessorDeclaration3(target=es5).types new file mode 100644 index 0000000000000..825b9e8f30f4e --- /dev/null +++ b/tests/baselines/reference/parserMemberAccessorDeclaration3(target=es5).types @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration3.ts] //// + +=== parserMemberAccessorDeclaration3.ts === +class C { +>C : C +> : ^ + + get 0() { } +>0 : void +> : ^^^^ +} diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration4(target=es2015).js b/tests/baselines/reference/parserMemberAccessorDeclaration4(target=es2015).js new file mode 100644 index 0000000000000..1ec315c099886 --- /dev/null +++ b/tests/baselines/reference/parserMemberAccessorDeclaration4(target=es2015).js @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration4.ts] //// + +//// [parserMemberAccessorDeclaration4.ts] +class C { + set a(i) { } +} + +//// [parserMemberAccessorDeclaration4.js] +class C { + set a(i) { } +} diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration4.symbols b/tests/baselines/reference/parserMemberAccessorDeclaration4(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/parserMemberAccessorDeclaration4.symbols rename to tests/baselines/reference/parserMemberAccessorDeclaration4(target=es2015).symbols diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration4.types b/tests/baselines/reference/parserMemberAccessorDeclaration4(target=es2015).types similarity index 100% rename from tests/baselines/reference/parserMemberAccessorDeclaration4.types rename to tests/baselines/reference/parserMemberAccessorDeclaration4(target=es2015).types diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration4.js b/tests/baselines/reference/parserMemberAccessorDeclaration4(target=es5).js similarity index 100% rename from tests/baselines/reference/parserMemberAccessorDeclaration4.js rename to tests/baselines/reference/parserMemberAccessorDeclaration4(target=es5).js diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration4(target=es5).symbols b/tests/baselines/reference/parserMemberAccessorDeclaration4(target=es5).symbols new file mode 100644 index 0000000000000..e9a31c4791910 --- /dev/null +++ b/tests/baselines/reference/parserMemberAccessorDeclaration4(target=es5).symbols @@ -0,0 +1,10 @@ +//// [tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration4.ts] //// + +=== parserMemberAccessorDeclaration4.ts === +class C { +>C : Symbol(C, Decl(parserMemberAccessorDeclaration4.ts, 0, 0)) + + set a(i) { } +>a : Symbol(C.a, Decl(parserMemberAccessorDeclaration4.ts, 0, 9)) +>i : Symbol(i, Decl(parserMemberAccessorDeclaration4.ts, 1, 8)) +} diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration4(target=es5).types b/tests/baselines/reference/parserMemberAccessorDeclaration4(target=es5).types new file mode 100644 index 0000000000000..0a6a66b52e908 --- /dev/null +++ b/tests/baselines/reference/parserMemberAccessorDeclaration4(target=es5).types @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration4.ts] //// + +=== parserMemberAccessorDeclaration4.ts === +class C { +>C : C +> : ^ + + set a(i) { } +>a : any +>i : any +} diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration5(target=es2015).js b/tests/baselines/reference/parserMemberAccessorDeclaration5(target=es2015).js new file mode 100644 index 0000000000000..989afac8e96ba --- /dev/null +++ b/tests/baselines/reference/parserMemberAccessorDeclaration5(target=es2015).js @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration5.ts] //// + +//// [parserMemberAccessorDeclaration5.ts] +class C { + set "a"(i) { } +} + +//// [parserMemberAccessorDeclaration5.js] +class C { + set "a"(i) { } +} diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration5.symbols b/tests/baselines/reference/parserMemberAccessorDeclaration5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/parserMemberAccessorDeclaration5.symbols rename to tests/baselines/reference/parserMemberAccessorDeclaration5(target=es2015).symbols diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration5.types b/tests/baselines/reference/parserMemberAccessorDeclaration5(target=es2015).types similarity index 100% rename from tests/baselines/reference/parserMemberAccessorDeclaration5.types rename to tests/baselines/reference/parserMemberAccessorDeclaration5(target=es2015).types diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration5.js b/tests/baselines/reference/parserMemberAccessorDeclaration5(target=es5).js similarity index 100% rename from tests/baselines/reference/parserMemberAccessorDeclaration5.js rename to tests/baselines/reference/parserMemberAccessorDeclaration5(target=es5).js diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration5(target=es5).symbols b/tests/baselines/reference/parserMemberAccessorDeclaration5(target=es5).symbols new file mode 100644 index 0000000000000..1ea3d780af883 --- /dev/null +++ b/tests/baselines/reference/parserMemberAccessorDeclaration5(target=es5).symbols @@ -0,0 +1,10 @@ +//// [tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration5.ts] //// + +=== parserMemberAccessorDeclaration5.ts === +class C { +>C : Symbol(C, Decl(parserMemberAccessorDeclaration5.ts, 0, 0)) + + set "a"(i) { } +>"a" : Symbol(C["a"], Decl(parserMemberAccessorDeclaration5.ts, 0, 9)) +>i : Symbol(i, Decl(parserMemberAccessorDeclaration5.ts, 1, 10)) +} diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration5(target=es5).types b/tests/baselines/reference/parserMemberAccessorDeclaration5(target=es5).types new file mode 100644 index 0000000000000..f887d3b49fd60 --- /dev/null +++ b/tests/baselines/reference/parserMemberAccessorDeclaration5(target=es5).types @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration5.ts] //// + +=== parserMemberAccessorDeclaration5.ts === +class C { +>C : C +> : ^ + + set "a"(i) { } +>"a" : any +>i : any +} diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration6(target=es2015).js b/tests/baselines/reference/parserMemberAccessorDeclaration6(target=es2015).js new file mode 100644 index 0000000000000..e2e9c0ba7daa7 --- /dev/null +++ b/tests/baselines/reference/parserMemberAccessorDeclaration6(target=es2015).js @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration6.ts] //// + +//// [parserMemberAccessorDeclaration6.ts] +class C { + set 0(i) { } +} + +//// [parserMemberAccessorDeclaration6.js] +class C { + set 0(i) { } +} diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration6.symbols b/tests/baselines/reference/parserMemberAccessorDeclaration6(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/parserMemberAccessorDeclaration6.symbols rename to tests/baselines/reference/parserMemberAccessorDeclaration6(target=es2015).symbols diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration6.types b/tests/baselines/reference/parserMemberAccessorDeclaration6(target=es2015).types similarity index 100% rename from tests/baselines/reference/parserMemberAccessorDeclaration6.types rename to tests/baselines/reference/parserMemberAccessorDeclaration6(target=es2015).types diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration6.js b/tests/baselines/reference/parserMemberAccessorDeclaration6(target=es5).js similarity index 100% rename from tests/baselines/reference/parserMemberAccessorDeclaration6.js rename to tests/baselines/reference/parserMemberAccessorDeclaration6(target=es5).js diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration6(target=es5).symbols b/tests/baselines/reference/parserMemberAccessorDeclaration6(target=es5).symbols new file mode 100644 index 0000000000000..afe8fc9c29466 --- /dev/null +++ b/tests/baselines/reference/parserMemberAccessorDeclaration6(target=es5).symbols @@ -0,0 +1,10 @@ +//// [tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration6.ts] //// + +=== parserMemberAccessorDeclaration6.ts === +class C { +>C : Symbol(C, Decl(parserMemberAccessorDeclaration6.ts, 0, 0)) + + set 0(i) { } +>0 : Symbol(C[0], Decl(parserMemberAccessorDeclaration6.ts, 0, 9)) +>i : Symbol(i, Decl(parserMemberAccessorDeclaration6.ts, 1, 8)) +} diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration6(target=es5).types b/tests/baselines/reference/parserMemberAccessorDeclaration6(target=es5).types new file mode 100644 index 0000000000000..fa3c1bac998a5 --- /dev/null +++ b/tests/baselines/reference/parserMemberAccessorDeclaration6(target=es5).types @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration6.ts] //// + +=== parserMemberAccessorDeclaration6.ts === +class C { +>C : C +> : ^ + + set 0(i) { } +>0 : any +>i : any +} diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration7.errors.txt b/tests/baselines/reference/parserMemberAccessorDeclaration7(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/parserMemberAccessorDeclaration7.errors.txt rename to tests/baselines/reference/parserMemberAccessorDeclaration7(target=es2015).errors.txt diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration7(target=es2015).js b/tests/baselines/reference/parserMemberAccessorDeclaration7(target=es2015).js new file mode 100644 index 0000000000000..233fb102b0034 --- /dev/null +++ b/tests/baselines/reference/parserMemberAccessorDeclaration7(target=es2015).js @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration7.ts] //// + +//// [parserMemberAccessorDeclaration7.ts] +class C { + public public get Foo() { } +} + +//// [parserMemberAccessorDeclaration7.js] +class C { + get Foo() { } +} diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration7.symbols b/tests/baselines/reference/parserMemberAccessorDeclaration7(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/parserMemberAccessorDeclaration7.symbols rename to tests/baselines/reference/parserMemberAccessorDeclaration7(target=es2015).symbols diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration7.types b/tests/baselines/reference/parserMemberAccessorDeclaration7(target=es2015).types similarity index 100% rename from tests/baselines/reference/parserMemberAccessorDeclaration7.types rename to tests/baselines/reference/parserMemberAccessorDeclaration7(target=es2015).types diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration7(target=es5).errors.txt b/tests/baselines/reference/parserMemberAccessorDeclaration7(target=es5).errors.txt new file mode 100644 index 0000000000000..ffb3bc2092117 --- /dev/null +++ b/tests/baselines/reference/parserMemberAccessorDeclaration7(target=es5).errors.txt @@ -0,0 +1,12 @@ +parserMemberAccessorDeclaration7.ts(2,12): error TS1028: Accessibility modifier already seen. +parserMemberAccessorDeclaration7.ts(2,23): error TS2378: A 'get' accessor must return a value. + + +==== parserMemberAccessorDeclaration7.ts (2 errors) ==== + class C { + public public get Foo() { } + ~~~~~~ +!!! error TS1028: Accessibility modifier already seen. + ~~~ +!!! error TS2378: A 'get' accessor must return a value. + } \ No newline at end of file diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration7.js b/tests/baselines/reference/parserMemberAccessorDeclaration7(target=es5).js similarity index 100% rename from tests/baselines/reference/parserMemberAccessorDeclaration7.js rename to tests/baselines/reference/parserMemberAccessorDeclaration7(target=es5).js diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration7(target=es5).symbols b/tests/baselines/reference/parserMemberAccessorDeclaration7(target=es5).symbols new file mode 100644 index 0000000000000..027c80b869100 --- /dev/null +++ b/tests/baselines/reference/parserMemberAccessorDeclaration7(target=es5).symbols @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration7.ts] //// + +=== parserMemberAccessorDeclaration7.ts === +class C { +>C : Symbol(C, Decl(parserMemberAccessorDeclaration7.ts, 0, 0)) + + public public get Foo() { } +>Foo : Symbol(C.Foo, Decl(parserMemberAccessorDeclaration7.ts, 0, 9)) +} diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration7(target=es5).types b/tests/baselines/reference/parserMemberAccessorDeclaration7(target=es5).types new file mode 100644 index 0000000000000..0fa7836660455 --- /dev/null +++ b/tests/baselines/reference/parserMemberAccessorDeclaration7(target=es5).types @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration7.ts] //// + +=== parserMemberAccessorDeclaration7.ts === +class C { +>C : C +> : ^ + + public public get Foo() { } +>Foo : void +> : ^^^^ +} diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration8.errors.txt b/tests/baselines/reference/parserMemberAccessorDeclaration8(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/parserMemberAccessorDeclaration8.errors.txt rename to tests/baselines/reference/parserMemberAccessorDeclaration8(target=es2015).errors.txt diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration8(target=es2015).js b/tests/baselines/reference/parserMemberAccessorDeclaration8(target=es2015).js new file mode 100644 index 0000000000000..46f0b906da63d --- /dev/null +++ b/tests/baselines/reference/parserMemberAccessorDeclaration8(target=es2015).js @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration8.ts] //// + +//// [parserMemberAccessorDeclaration8.ts] +class C { + static static get Foo() { } +} + +//// [parserMemberAccessorDeclaration8.js] +class C { + get Foo() { } +} diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration8.symbols b/tests/baselines/reference/parserMemberAccessorDeclaration8(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/parserMemberAccessorDeclaration8.symbols rename to tests/baselines/reference/parserMemberAccessorDeclaration8(target=es2015).symbols diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration8.types b/tests/baselines/reference/parserMemberAccessorDeclaration8(target=es2015).types similarity index 100% rename from tests/baselines/reference/parserMemberAccessorDeclaration8.types rename to tests/baselines/reference/parserMemberAccessorDeclaration8(target=es2015).types diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration8(target=es5).errors.txt b/tests/baselines/reference/parserMemberAccessorDeclaration8(target=es5).errors.txt new file mode 100644 index 0000000000000..3b6d40c1e174a --- /dev/null +++ b/tests/baselines/reference/parserMemberAccessorDeclaration8(target=es5).errors.txt @@ -0,0 +1,12 @@ +parserMemberAccessorDeclaration8.ts(2,12): error TS1434: Unexpected keyword or identifier. +parserMemberAccessorDeclaration8.ts(2,23): error TS2378: A 'get' accessor must return a value. + + +==== parserMemberAccessorDeclaration8.ts (2 errors) ==== + class C { + static static get Foo() { } + ~~~~~~ +!!! error TS1434: Unexpected keyword or identifier. + ~~~ +!!! error TS2378: A 'get' accessor must return a value. + } \ No newline at end of file diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration8.js b/tests/baselines/reference/parserMemberAccessorDeclaration8(target=es5).js similarity index 100% rename from tests/baselines/reference/parserMemberAccessorDeclaration8.js rename to tests/baselines/reference/parserMemberAccessorDeclaration8(target=es5).js diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration8(target=es5).symbols b/tests/baselines/reference/parserMemberAccessorDeclaration8(target=es5).symbols new file mode 100644 index 0000000000000..87a76766c4d31 --- /dev/null +++ b/tests/baselines/reference/parserMemberAccessorDeclaration8(target=es5).symbols @@ -0,0 +1,10 @@ +//// [tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration8.ts] //// + +=== parserMemberAccessorDeclaration8.ts === +class C { +>C : Symbol(C, Decl(parserMemberAccessorDeclaration8.ts, 0, 0)) + + static static get Foo() { } +>static : Symbol(C.static, Decl(parserMemberAccessorDeclaration8.ts, 0, 9)) +>Foo : Symbol(C.Foo, Decl(parserMemberAccessorDeclaration8.ts, 1, 17)) +} diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration8(target=es5).types b/tests/baselines/reference/parserMemberAccessorDeclaration8(target=es5).types new file mode 100644 index 0000000000000..64cc953beb655 --- /dev/null +++ b/tests/baselines/reference/parserMemberAccessorDeclaration8(target=es5).types @@ -0,0 +1,13 @@ +//// [tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration8.ts] //// + +=== parserMemberAccessorDeclaration8.ts === +class C { +>C : C +> : ^ + + static static get Foo() { } +>static : any +> : ^^^ +>Foo : void +> : ^^^^ +} diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration9.errors.txt b/tests/baselines/reference/parserMemberAccessorDeclaration9(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/parserMemberAccessorDeclaration9.errors.txt rename to tests/baselines/reference/parserMemberAccessorDeclaration9(target=es2015).errors.txt diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration9(target=es2015).js b/tests/baselines/reference/parserMemberAccessorDeclaration9(target=es2015).js new file mode 100644 index 0000000000000..09370ebe4e165 --- /dev/null +++ b/tests/baselines/reference/parserMemberAccessorDeclaration9(target=es2015).js @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration9.ts] //// + +//// [parserMemberAccessorDeclaration9.ts] +class C { + static public get Foo() { } +} + +//// [parserMemberAccessorDeclaration9.js] +class C { + static get Foo() { } +} diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration9.symbols b/tests/baselines/reference/parserMemberAccessorDeclaration9(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/parserMemberAccessorDeclaration9.symbols rename to tests/baselines/reference/parserMemberAccessorDeclaration9(target=es2015).symbols diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration9.types b/tests/baselines/reference/parserMemberAccessorDeclaration9(target=es2015).types similarity index 100% rename from tests/baselines/reference/parserMemberAccessorDeclaration9.types rename to tests/baselines/reference/parserMemberAccessorDeclaration9(target=es2015).types diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration9(target=es5).errors.txt b/tests/baselines/reference/parserMemberAccessorDeclaration9(target=es5).errors.txt new file mode 100644 index 0000000000000..ad771f11baf91 --- /dev/null +++ b/tests/baselines/reference/parserMemberAccessorDeclaration9(target=es5).errors.txt @@ -0,0 +1,12 @@ +parserMemberAccessorDeclaration9.ts(2,12): error TS1029: 'public' modifier must precede 'static' modifier. +parserMemberAccessorDeclaration9.ts(2,23): error TS2378: A 'get' accessor must return a value. + + +==== parserMemberAccessorDeclaration9.ts (2 errors) ==== + class C { + static public get Foo() { } + ~~~~~~ +!!! error TS1029: 'public' modifier must precede 'static' modifier. + ~~~ +!!! error TS2378: A 'get' accessor must return a value. + } \ No newline at end of file diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration9.js b/tests/baselines/reference/parserMemberAccessorDeclaration9(target=es5).js similarity index 100% rename from tests/baselines/reference/parserMemberAccessorDeclaration9.js rename to tests/baselines/reference/parserMemberAccessorDeclaration9(target=es5).js diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration9(target=es5).symbols b/tests/baselines/reference/parserMemberAccessorDeclaration9(target=es5).symbols new file mode 100644 index 0000000000000..73906f8a241bc --- /dev/null +++ b/tests/baselines/reference/parserMemberAccessorDeclaration9(target=es5).symbols @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration9.ts] //// + +=== parserMemberAccessorDeclaration9.ts === +class C { +>C : Symbol(C, Decl(parserMemberAccessorDeclaration9.ts, 0, 0)) + + static public get Foo() { } +>Foo : Symbol(C.Foo, Decl(parserMemberAccessorDeclaration9.ts, 0, 9)) +} diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration9(target=es5).types b/tests/baselines/reference/parserMemberAccessorDeclaration9(target=es5).types new file mode 100644 index 0000000000000..4359dc380715f --- /dev/null +++ b/tests/baselines/reference/parserMemberAccessorDeclaration9(target=es5).types @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration9.ts] //// + +=== parserMemberAccessorDeclaration9.ts === +class C { +>C : C +> : ^ + + static public get Foo() { } +>Foo : void +> : ^^^^ +} diff --git a/tests/baselines/reference/parserSetAccessorWithTypeAnnotation1.errors.txt b/tests/baselines/reference/parserSetAccessorWithTypeAnnotation1(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/parserSetAccessorWithTypeAnnotation1.errors.txt rename to tests/baselines/reference/parserSetAccessorWithTypeAnnotation1(target=es2015).errors.txt diff --git a/tests/baselines/reference/parserSetAccessorWithTypeAnnotation1(target=es2015).js b/tests/baselines/reference/parserSetAccessorWithTypeAnnotation1(target=es2015).js new file mode 100644 index 0000000000000..6160420dc8543 --- /dev/null +++ b/tests/baselines/reference/parserSetAccessorWithTypeAnnotation1(target=es2015).js @@ -0,0 +1,13 @@ +//// [tests/cases/conformance/parser/ecmascript5/Accessors/parserSetAccessorWithTypeAnnotation1.ts] //// + +//// [parserSetAccessorWithTypeAnnotation1.ts] +class C { + set foo(v): number { + } +} + +//// [parserSetAccessorWithTypeAnnotation1.js] +class C { + set foo(v): number { + } +} diff --git a/tests/baselines/reference/parserSetAccessorWithTypeAnnotation1.symbols b/tests/baselines/reference/parserSetAccessorWithTypeAnnotation1(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/parserSetAccessorWithTypeAnnotation1.symbols rename to tests/baselines/reference/parserSetAccessorWithTypeAnnotation1(target=es2015).symbols diff --git a/tests/baselines/reference/parserSetAccessorWithTypeAnnotation1.types b/tests/baselines/reference/parserSetAccessorWithTypeAnnotation1(target=es2015).types similarity index 100% rename from tests/baselines/reference/parserSetAccessorWithTypeAnnotation1.types rename to tests/baselines/reference/parserSetAccessorWithTypeAnnotation1(target=es2015).types diff --git a/tests/baselines/reference/parserSetAccessorWithTypeAnnotation1(target=es5).errors.txt b/tests/baselines/reference/parserSetAccessorWithTypeAnnotation1(target=es5).errors.txt new file mode 100644 index 0000000000000..015bcae1677ea --- /dev/null +++ b/tests/baselines/reference/parserSetAccessorWithTypeAnnotation1(target=es5).errors.txt @@ -0,0 +1,10 @@ +parserSetAccessorWithTypeAnnotation1.ts(2,8): error TS1095: A 'set' accessor cannot have a return type annotation. + + +==== parserSetAccessorWithTypeAnnotation1.ts (1 errors) ==== + class C { + set foo(v): number { + ~~~ +!!! error TS1095: A 'set' accessor cannot have a return type annotation. + } + } \ No newline at end of file diff --git a/tests/baselines/reference/parserSetAccessorWithTypeAnnotation1.js b/tests/baselines/reference/parserSetAccessorWithTypeAnnotation1(target=es5).js similarity index 100% rename from tests/baselines/reference/parserSetAccessorWithTypeAnnotation1.js rename to tests/baselines/reference/parserSetAccessorWithTypeAnnotation1(target=es5).js diff --git a/tests/baselines/reference/parserSetAccessorWithTypeAnnotation1(target=es5).symbols b/tests/baselines/reference/parserSetAccessorWithTypeAnnotation1(target=es5).symbols new file mode 100644 index 0000000000000..7562df0609e58 --- /dev/null +++ b/tests/baselines/reference/parserSetAccessorWithTypeAnnotation1(target=es5).symbols @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/parser/ecmascript5/Accessors/parserSetAccessorWithTypeAnnotation1.ts] //// + +=== parserSetAccessorWithTypeAnnotation1.ts === +class C { +>C : Symbol(C, Decl(parserSetAccessorWithTypeAnnotation1.ts, 0, 0)) + + set foo(v): number { +>foo : Symbol(C.foo, Decl(parserSetAccessorWithTypeAnnotation1.ts, 0, 9)) +>v : Symbol(v, Decl(parserSetAccessorWithTypeAnnotation1.ts, 1, 11)) + } +} diff --git a/tests/baselines/reference/parserSetAccessorWithTypeAnnotation1(target=es5).types b/tests/baselines/reference/parserSetAccessorWithTypeAnnotation1(target=es5).types new file mode 100644 index 0000000000000..a9552dbf156a0 --- /dev/null +++ b/tests/baselines/reference/parserSetAccessorWithTypeAnnotation1(target=es5).types @@ -0,0 +1,14 @@ +//// [tests/cases/conformance/parser/ecmascript5/Accessors/parserSetAccessorWithTypeAnnotation1.ts] //// + +=== parserSetAccessorWithTypeAnnotation1.ts === +class C { +>C : C +> : ^ + + set foo(v): number { +>foo : any +> : ^^^ +>v : any +> : ^^^ + } +} diff --git a/tests/baselines/reference/parserSetAccessorWithTypeParameters1.errors.txt b/tests/baselines/reference/parserSetAccessorWithTypeParameters1(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/parserSetAccessorWithTypeParameters1.errors.txt rename to tests/baselines/reference/parserSetAccessorWithTypeParameters1(target=es2015).errors.txt diff --git a/tests/baselines/reference/parserSetAccessorWithTypeParameters1(target=es2015).js b/tests/baselines/reference/parserSetAccessorWithTypeParameters1(target=es2015).js new file mode 100644 index 0000000000000..9654ee5a2abfc --- /dev/null +++ b/tests/baselines/reference/parserSetAccessorWithTypeParameters1(target=es2015).js @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/parser/ecmascript5/Accessors/parserSetAccessorWithTypeParameters1.ts] //// + +//// [parserSetAccessorWithTypeParameters1.ts] +class C { + set foo(v) { } +} + +//// [parserSetAccessorWithTypeParameters1.js] +class C { + set foo(v) { } +} diff --git a/tests/baselines/reference/parserSetAccessorWithTypeParameters1.symbols b/tests/baselines/reference/parserSetAccessorWithTypeParameters1(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/parserSetAccessorWithTypeParameters1.symbols rename to tests/baselines/reference/parserSetAccessorWithTypeParameters1(target=es2015).symbols diff --git a/tests/baselines/reference/parserSetAccessorWithTypeParameters1.types b/tests/baselines/reference/parserSetAccessorWithTypeParameters1(target=es2015).types similarity index 100% rename from tests/baselines/reference/parserSetAccessorWithTypeParameters1.types rename to tests/baselines/reference/parserSetAccessorWithTypeParameters1(target=es2015).types diff --git a/tests/baselines/reference/parserSetAccessorWithTypeParameters1(target=es5).errors.txt b/tests/baselines/reference/parserSetAccessorWithTypeParameters1(target=es5).errors.txt new file mode 100644 index 0000000000000..106767660b8b8 --- /dev/null +++ b/tests/baselines/reference/parserSetAccessorWithTypeParameters1(target=es5).errors.txt @@ -0,0 +1,9 @@ +parserSetAccessorWithTypeParameters1.ts(2,8): error TS1094: An accessor cannot have type parameters. + + +==== parserSetAccessorWithTypeParameters1.ts (1 errors) ==== + class C { + set foo(v) { } + ~~~ +!!! error TS1094: An accessor cannot have type parameters. + } \ No newline at end of file diff --git a/tests/baselines/reference/parserSetAccessorWithTypeParameters1.js b/tests/baselines/reference/parserSetAccessorWithTypeParameters1(target=es5).js similarity index 100% rename from tests/baselines/reference/parserSetAccessorWithTypeParameters1.js rename to tests/baselines/reference/parserSetAccessorWithTypeParameters1(target=es5).js diff --git a/tests/baselines/reference/parserSetAccessorWithTypeParameters1(target=es5).symbols b/tests/baselines/reference/parserSetAccessorWithTypeParameters1(target=es5).symbols new file mode 100644 index 0000000000000..159be9423908c --- /dev/null +++ b/tests/baselines/reference/parserSetAccessorWithTypeParameters1(target=es5).symbols @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/parser/ecmascript5/Accessors/parserSetAccessorWithTypeParameters1.ts] //// + +=== parserSetAccessorWithTypeParameters1.ts === +class C { +>C : Symbol(C, Decl(parserSetAccessorWithTypeParameters1.ts, 0, 0)) + + set foo(v) { } +>foo : Symbol(C.foo, Decl(parserSetAccessorWithTypeParameters1.ts, 0, 9)) +>T : Symbol(T, Decl(parserSetAccessorWithTypeParameters1.ts, 1, 11)) +>v : Symbol(v, Decl(parserSetAccessorWithTypeParameters1.ts, 1, 14)) +} diff --git a/tests/baselines/reference/parserSetAccessorWithTypeParameters1(target=es5).types b/tests/baselines/reference/parserSetAccessorWithTypeParameters1(target=es5).types new file mode 100644 index 0000000000000..dd67f48cc56f9 --- /dev/null +++ b/tests/baselines/reference/parserSetAccessorWithTypeParameters1(target=es5).types @@ -0,0 +1,13 @@ +//// [tests/cases/conformance/parser/ecmascript5/Accessors/parserSetAccessorWithTypeParameters1.ts] //// + +=== parserSetAccessorWithTypeParameters1.ts === +class C { +>C : C +> : ^ + + set foo(v) { } +>foo : any +> : ^^^ +>v : any +> : ^^^ +} diff --git a/tests/baselines/reference/parserStrictMode12.errors.txt b/tests/baselines/reference/parserStrictMode12(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/parserStrictMode12.errors.txt rename to tests/baselines/reference/parserStrictMode12(target=es2015).errors.txt diff --git a/tests/baselines/reference/parserStrictMode12.js b/tests/baselines/reference/parserStrictMode12(target=es2015).js similarity index 100% rename from tests/baselines/reference/parserStrictMode12.js rename to tests/baselines/reference/parserStrictMode12(target=es2015).js diff --git a/tests/baselines/reference/parserStrictMode12.symbols b/tests/baselines/reference/parserStrictMode12(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/parserStrictMode12.symbols rename to tests/baselines/reference/parserStrictMode12(target=es2015).symbols diff --git a/tests/baselines/reference/parserStrictMode12.types b/tests/baselines/reference/parserStrictMode12(target=es2015).types similarity index 100% rename from tests/baselines/reference/parserStrictMode12.types rename to tests/baselines/reference/parserStrictMode12(target=es2015).types diff --git a/tests/baselines/reference/parserStrictMode12(target=es5).errors.txt b/tests/baselines/reference/parserStrictMode12(target=es5).errors.txt new file mode 100644 index 0000000000000..d90922fa5d1b3 --- /dev/null +++ b/tests/baselines/reference/parserStrictMode12(target=es5).errors.txt @@ -0,0 +1,8 @@ +parserStrictMode12.ts(2,19): error TS1100: Invalid use of 'eval' in strict mode. + + +==== parserStrictMode12.ts (1 errors) ==== + "use strict"; + var v = { set foo(eval) { } } + ~~~~ +!!! error TS1100: Invalid use of 'eval' in strict mode. \ No newline at end of file diff --git a/tests/baselines/reference/parserStrictMode12(target=es5).js b/tests/baselines/reference/parserStrictMode12(target=es5).js new file mode 100644 index 0000000000000..177dc06a88c92 --- /dev/null +++ b/tests/baselines/reference/parserStrictMode12(target=es5).js @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode12.ts] //// + +//// [parserStrictMode12.ts] +"use strict"; +var v = { set foo(eval) { } } + +//// [parserStrictMode12.js] +"use strict"; +var v = { set foo(eval) { } }; diff --git a/tests/baselines/reference/parserStrictMode12(target=es5).symbols b/tests/baselines/reference/parserStrictMode12(target=es5).symbols new file mode 100644 index 0000000000000..cd557e76df8b0 --- /dev/null +++ b/tests/baselines/reference/parserStrictMode12(target=es5).symbols @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode12.ts] //// + +=== parserStrictMode12.ts === +"use strict"; +var v = { set foo(eval) { } } +>v : Symbol(v, Decl(parserStrictMode12.ts, 1, 3)) +>foo : Symbol(foo, Decl(parserStrictMode12.ts, 1, 9)) +>eval : Symbol(eval, Decl(parserStrictMode12.ts, 1, 18)) + diff --git a/tests/baselines/reference/parserStrictMode12(target=es5).types b/tests/baselines/reference/parserStrictMode12(target=es5).types new file mode 100644 index 0000000000000..1df64fca3b6eb --- /dev/null +++ b/tests/baselines/reference/parserStrictMode12(target=es5).types @@ -0,0 +1,17 @@ +//// [tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode12.ts] //// + +=== parserStrictMode12.ts === +"use strict"; +>"use strict" : "use strict" +> : ^^^^^^^^^^^^ + +var v = { set foo(eval) { } } +>v : { foo: any; } +> : ^^^^^^^^^^^^^ +>{ set foo(eval) { } } : { foo: any; } +> : ^^^^^^^^^^^^^ +>foo : any +> : ^^^ +>eval : any +> : ^^^ + diff --git a/tests/baselines/reference/prefixUnaryOperatorsOnExportedVariables.errors.txt b/tests/baselines/reference/prefixUnaryOperatorsOnExportedVariables(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/prefixUnaryOperatorsOnExportedVariables.errors.txt rename to tests/baselines/reference/prefixUnaryOperatorsOnExportedVariables(target=es2015).errors.txt diff --git a/tests/baselines/reference/prefixUnaryOperatorsOnExportedVariables.js b/tests/baselines/reference/prefixUnaryOperatorsOnExportedVariables(target=es2015).js similarity index 100% rename from tests/baselines/reference/prefixUnaryOperatorsOnExportedVariables.js rename to tests/baselines/reference/prefixUnaryOperatorsOnExportedVariables(target=es2015).js diff --git a/tests/baselines/reference/prefixUnaryOperatorsOnExportedVariables.symbols b/tests/baselines/reference/prefixUnaryOperatorsOnExportedVariables(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/prefixUnaryOperatorsOnExportedVariables.symbols rename to tests/baselines/reference/prefixUnaryOperatorsOnExportedVariables(target=es2015).symbols diff --git a/tests/baselines/reference/prefixUnaryOperatorsOnExportedVariables.types b/tests/baselines/reference/prefixUnaryOperatorsOnExportedVariables(target=es2015).types similarity index 100% rename from tests/baselines/reference/prefixUnaryOperatorsOnExportedVariables.types rename to tests/baselines/reference/prefixUnaryOperatorsOnExportedVariables(target=es2015).types diff --git a/tests/baselines/reference/prefixUnaryOperatorsOnExportedVariables(target=es5).errors.txt b/tests/baselines/reference/prefixUnaryOperatorsOnExportedVariables(target=es5).errors.txt new file mode 100644 index 0000000000000..d120082362e17 --- /dev/null +++ b/tests/baselines/reference/prefixUnaryOperatorsOnExportedVariables(target=es5).errors.txt @@ -0,0 +1,37 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +prefixUnaryOperatorsOnExportedVariables.ts(19,5): error TS2873: This kind of expression is always falsy. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== prefixUnaryOperatorsOnExportedVariables.ts (1 errors) ==== + export var x = false; + export var y = 1; + if (!x) { + + } + + if (+x) { + + } + + if (-x) { + + } + + if (~x) { + + } + + if (void x) { + ~~~~~~ +!!! error TS2873: This kind of expression is always falsy. + + } + + if (typeof x) { + + } + + if (++y) { + + } \ No newline at end of file diff --git a/tests/baselines/reference/prefixUnaryOperatorsOnExportedVariables(target=es5).js b/tests/baselines/reference/prefixUnaryOperatorsOnExportedVariables(target=es5).js new file mode 100644 index 0000000000000..28e07112c40c8 --- /dev/null +++ b/tests/baselines/reference/prefixUnaryOperatorsOnExportedVariables(target=es5).js @@ -0,0 +1,60 @@ +//// [tests/cases/compiler/prefixUnaryOperatorsOnExportedVariables.ts] //// + +//// [prefixUnaryOperatorsOnExportedVariables.ts] +export var x = false; +export var y = 1; +if (!x) { + +} + +if (+x) { + +} + +if (-x) { + +} + +if (~x) { + +} + +if (void x) { + +} + +if (typeof x) { + +} + +if (++y) { + +} + +//// [prefixUnaryOperatorsOnExportedVariables.js] +System.register([], function (exports_1, context_1) { + "use strict"; + var x, y; + var __moduleName = context_1 && context_1.id; + return { + setters: [], + execute: function () { + exports_1("x", x = false); + exports_1("y", y = 1); + if (!x) { + } + if (+x) { + } + if (-x) { + } + if (~x) { + } + if (void x) { + } + if (typeof x) { + } + if (exports_1("y", ++y)) { + } + } + }; +}); diff --git a/tests/baselines/reference/prefixUnaryOperatorsOnExportedVariables(target=es5).symbols b/tests/baselines/reference/prefixUnaryOperatorsOnExportedVariables(target=es5).symbols new file mode 100644 index 0000000000000..6624b5bae393c --- /dev/null +++ b/tests/baselines/reference/prefixUnaryOperatorsOnExportedVariables(target=es5).symbols @@ -0,0 +1,43 @@ +//// [tests/cases/compiler/prefixUnaryOperatorsOnExportedVariables.ts] //// + +=== prefixUnaryOperatorsOnExportedVariables.ts === +export var x = false; +>x : Symbol(x, Decl(prefixUnaryOperatorsOnExportedVariables.ts, 0, 10)) + +export var y = 1; +>y : Symbol(y, Decl(prefixUnaryOperatorsOnExportedVariables.ts, 1, 10)) + +if (!x) { +>x : Symbol(x, Decl(prefixUnaryOperatorsOnExportedVariables.ts, 0, 10)) + +} + +if (+x) { +>x : Symbol(x, Decl(prefixUnaryOperatorsOnExportedVariables.ts, 0, 10)) + +} + +if (-x) { +>x : Symbol(x, Decl(prefixUnaryOperatorsOnExportedVariables.ts, 0, 10)) + +} + +if (~x) { +>x : Symbol(x, Decl(prefixUnaryOperatorsOnExportedVariables.ts, 0, 10)) + +} + +if (void x) { +>x : Symbol(x, Decl(prefixUnaryOperatorsOnExportedVariables.ts, 0, 10)) + +} + +if (typeof x) { +>x : Symbol(x, Decl(prefixUnaryOperatorsOnExportedVariables.ts, 0, 10)) + +} + +if (++y) { +>y : Symbol(y, Decl(prefixUnaryOperatorsOnExportedVariables.ts, 1, 10)) + +} diff --git a/tests/baselines/reference/prefixUnaryOperatorsOnExportedVariables(target=es5).types b/tests/baselines/reference/prefixUnaryOperatorsOnExportedVariables(target=es5).types new file mode 100644 index 0000000000000..27d016dfd78db --- /dev/null +++ b/tests/baselines/reference/prefixUnaryOperatorsOnExportedVariables(target=es5).types @@ -0,0 +1,70 @@ +//// [tests/cases/compiler/prefixUnaryOperatorsOnExportedVariables.ts] //// + +=== prefixUnaryOperatorsOnExportedVariables.ts === +export var x = false; +>x : boolean +> : ^^^^^^^ +>false : false +> : ^^^^^ + +export var y = 1; +>y : number +> : ^^^^^^ +>1 : 1 +> : ^ + +if (!x) { +>!x : true +> : ^^^^ +>x : false +> : ^^^^^ + +} + +if (+x) { +>+x : number +> : ^^^^^^ +>x : false +> : ^^^^^ + +} + +if (-x) { +>-x : number +> : ^^^^^^ +>x : false +> : ^^^^^ + +} + +if (~x) { +>~x : number +> : ^^^^^^ +>x : false +> : ^^^^^ + +} + +if (void x) { +>void x : undefined +> : ^^^^^^^^^ +>x : false +> : ^^^^^ + +} + +if (typeof x) { +>typeof x : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>x : false +> : ^^^^^ + +} + +if (++y) { +>++y : number +> : ^^^^^^ +>y : number +> : ^^^^^^ + +} diff --git a/tests/baselines/reference/privacyAccessorDeclFile(target=es2015).js b/tests/baselines/reference/privacyAccessorDeclFile(target=es2015).js new file mode 100644 index 0000000000000..209077395094a --- /dev/null +++ b/tests/baselines/reference/privacyAccessorDeclFile(target=es2015).js @@ -0,0 +1,2355 @@ +//// [tests/cases/compiler/privacyAccessorDeclFile.ts] //// + +//// [privacyAccessorDeclFile_externalModule.ts] +class privateClass { +} + +export class publicClass { +} + +export class publicClassWithWithPrivateGetAccessorTypes { + static get myPublicStaticMethod(): privateClass { // Error + return null; + } + private static get myPrivateStaticMethod(): privateClass { + return null; + } + get myPublicMethod(): privateClass { // Error + return null; + } + private get myPrivateMethod(): privateClass { + return null; + } + static get myPublicStaticMethod1() { // Error + return new privateClass(); + } + private static get myPrivateStaticMethod1() { + return new privateClass(); + } + get myPublicMethod1() { // Error + return new privateClass(); + } + private get myPrivateMethod1() { + return new privateClass(); + } +} + +export class publicClassWithWithPublicGetAccessorTypes { + static get myPublicStaticMethod(): publicClass { + return null; + } + private static get myPrivateStaticMethod(): publicClass { + return null; + } + get myPublicMethod(): publicClass { + return null; + } + private get myPrivateMethod(): publicClass { + return null; + } + static get myPublicStaticMethod1() { + return new publicClass(); + } + private static get myPrivateStaticMethod1() { + return new publicClass(); + } + get myPublicMethod1() { + return new publicClass(); + } + private get myPrivateMethod1() { + return new publicClass(); + } +} + +class privateClassWithWithPrivateGetAccessorTypes { + static get myPublicStaticMethod(): privateClass { + return null; + } + private static get myPrivateStaticMethod(): privateClass { + return null; + } + get myPublicMethod(): privateClass { + return null; + } + private get myPrivateMethod(): privateClass { + return null; + } + static get myPublicStaticMethod1() { + return new privateClass(); + } + private static get myPrivateStaticMethod1() { + return new privateClass(); + } + get myPublicMethod1() { + return new privateClass(); + } + private get myPrivateMethod1() { + return new privateClass(); + } +} + +class privateClassWithWithPublicGetAccessorTypes { + static get myPublicStaticMethod(): publicClass { + return null; + } + private static get myPrivateStaticMethod(): publicClass { + return null; + } + get myPublicMethod(): publicClass { + return null; + } + private get myPrivateMethod(): publicClass { + return null; + } + static get myPublicStaticMethod1() { + return new publicClass(); + } + private static get myPrivateStaticMethod1() { + return new publicClass(); + } + get myPublicMethod1() { + return new publicClass(); + } + private get myPrivateMethod1() { + return new publicClass(); + } +} + +export class publicClassWithWithPrivateSetAccessorTypes { + static set myPublicStaticMethod(param: privateClass) { // Error + } + private static set myPrivateStaticMethod(param: privateClass) { + } + set myPublicMethod(param: privateClass) { // Error + } + private set myPrivateMethod(param: privateClass) { + } +} + +export class publicClassWithWithPublicSetAccessorTypes { + static set myPublicStaticMethod(param: publicClass) { + } + private static set myPrivateStaticMethod(param: publicClass) { + } + set myPublicMethod(param: publicClass) { + } + private set myPrivateMethod(param: publicClass) { + } +} + +class privateClassWithWithPrivateSetAccessorTypes { + static set myPublicStaticMethod(param: privateClass) { + } + private static set myPrivateStaticMethod(param: privateClass) { + } + set myPublicMethod(param: privateClass) { + } + private set myPrivateMethod(param: privateClass) { + } +} + +class privateClassWithWithPublicSetAccessorTypes { + static set myPublicStaticMethod(param: publicClass) { + } + private static set myPrivateStaticMethod(param: publicClass) { + } + set myPublicMethod(param: publicClass) { + } + private set myPrivateMethod(param: publicClass) { + } +} + +export class publicClassWithPrivateModuleGetAccessorTypes { + static get myPublicStaticMethod(): privateModule.publicClass { // Error + return null; + } + get myPublicMethod(): privateModule.publicClass { // Error + return null; + } + static get myPublicStaticMethod1() { // Error + return new privateModule.publicClass(); + } + get myPublicMethod1() { // Error + return new privateModule.publicClass(); + } +} + +export class publicClassWithPrivateModuleSetAccessorTypes { + static set myPublicStaticMethod(param: privateModule.publicClass) { // Error + } + set myPublicMethod(param: privateModule.publicClass) { // Error + } +} + +class privateClassWithPrivateModuleGetAccessorTypes { + static get myPublicStaticMethod(): privateModule.publicClass { + return null; + } + get myPublicMethod(): privateModule.publicClass { + return null; + } + static get myPublicStaticMethod1() { + return new privateModule.publicClass(); + } + get myPublicMethod1() { + return new privateModule.publicClass(); + } +} + +class privateClassWithPrivateModuleSetAccessorTypes { + static set myPublicStaticMethod(param: privateModule.publicClass) { + } + set myPublicMethod(param: privateModule.publicClass) { + } +} + +export namespace publicModule { + class privateClass { + } + + export class publicClass { + } + export class publicClassWithWithPrivateGetAccessorTypes { + static get myPublicStaticMethod(): privateClass { // Error + return null; + } + private static get myPrivateStaticMethod(): privateClass { + return null; + } + get myPublicMethod(): privateClass { // Error + return null; + } + private get myPrivateMethod(): privateClass { + return null; + } + static get myPublicStaticMethod1() { // Error + return new privateClass(); + } + private static get myPrivateStaticMethod1() { + return new privateClass(); + } + get myPublicMethod1() { // Error + return new privateClass(); + } + private get myPrivateMethod1() { + return new privateClass(); + } + } + + export class publicClassWithWithPublicGetAccessorTypes { + static get myPublicStaticMethod(): publicClass { + return null; + } + private static get myPrivateStaticMethod(): publicClass { + return null; + } + get myPublicMethod(): publicClass { + return null; + } + private get myPrivateMethod(): publicClass { + return null; + } + static get myPublicStaticMethod1() { + return new publicClass(); + } + private static get myPrivateStaticMethod1() { + return new publicClass(); + } + get myPublicMethod1() { + return new publicClass(); + } + private get myPrivateMethod1() { + return new publicClass(); + } + } + + class privateClassWithWithPrivateGetAccessorTypes { + static get myPublicStaticMethod(): privateClass { + return null; + } + private static get myPrivateStaticMethod(): privateClass { + return null; + } + get myPublicMethod(): privateClass { + return null; + } + private get myPrivateMethod(): privateClass { + return null; + } + static get myPublicStaticMethod1() { + return new privateClass(); + } + private static get myPrivateStaticMethod1() { + return new privateClass(); + } + get myPublicMethod1() { + return new privateClass(); + } + private get myPrivateMethod1() { + return new privateClass(); + } + } + + class privateClassWithWithPublicGetAccessorTypes { + static get myPublicStaticMethod(): publicClass { + return null; + } + private static get myPrivateStaticMethod(): publicClass { + return null; + } + get myPublicMethod(): publicClass { + return null; + } + private get myPrivateMethod(): publicClass { + return null; + } + static get myPublicStaticMethod1() { + return new publicClass(); + } + private static get myPrivateStaticMethod1() { + return new publicClass(); + } + get myPublicMethod1() { + return new publicClass(); + } + private get myPrivateMethod1() { + return new publicClass(); + } + } + + export class publicClassWithWithPrivateSetAccessorTypes { + static set myPublicStaticMethod(param: privateClass) { // Error + } + private static set myPrivateStaticMethod(param: privateClass) { + } + set myPublicMethod(param: privateClass) { // Error + } + private set myPrivateMethod(param: privateClass) { + } + } + + export class publicClassWithWithPublicSetAccessorTypes { + static set myPublicStaticMethod(param: publicClass) { + } + private static set myPrivateStaticMethod(param: publicClass) { + } + set myPublicMethod(param: publicClass) { + } + private set myPrivateMethod(param: publicClass) { + } + } + + class privateClassWithWithPrivateSetAccessorTypes { + static set myPublicStaticMethod(param: privateClass) { + } + private static set myPrivateStaticMethod(param: privateClass) { + } + set myPublicMethod(param: privateClass) { + } + private set myPrivateMethod(param: privateClass) { + } + } + + class privateClassWithWithPublicSetAccessorTypes { + static set myPublicStaticMethod(param: publicClass) { + } + private static set myPrivateStaticMethod(param: publicClass) { + } + set myPublicMethod(param: publicClass) { + } + private set myPrivateMethod(param: publicClass) { + } + } + + export class publicClassWithPrivateModuleGetAccessorTypes { + static get myPublicStaticMethod(): privateModule.publicClass { // Error + return null; + } + get myPublicMethod(): privateModule.publicClass { // Error + return null; + } + static get myPublicStaticMethod1() { // Error + return new privateModule.publicClass(); + } + get myPublicMethod1() { // Error + return new privateModule.publicClass(); + } + } + + export class publicClassWithPrivateModuleSetAccessorTypes { + static set myPublicStaticMethod(param: privateModule.publicClass) { // Error + } + set myPublicMethod(param: privateModule.publicClass) { // Error + } + } + + class privateClassWithPrivateModuleGetAccessorTypes { + static get myPublicStaticMethod(): privateModule.publicClass { + return null; + } + get myPublicMethod(): privateModule.publicClass { + return null; + } + static get myPublicStaticMethod1() { + return new privateModule.publicClass(); + } + get myPublicMethod1() { + return new privateModule.publicClass(); + } + } + + class privateClassWithPrivateModuleSetAccessorTypes { + static set myPublicStaticMethod(param: privateModule.publicClass) { + } + set myPublicMethod(param: privateModule.publicClass) { + } + } +} + +namespace privateModule { + class privateClass { + } + + export class publicClass { + } + export class publicClassWithWithPrivateGetAccessorTypes { + static get myPublicStaticMethod(): privateClass { + return null; + } + private static get myPrivateStaticMethod(): privateClass { + return null; + } + get myPublicMethod(): privateClass { + return null; + } + private get myPrivateMethod(): privateClass { + return null; + } + static get myPublicStaticMethod1() { + return new privateClass(); + } + private static get myPrivateStaticMethod1() { + return new privateClass(); + } + get myPublicMethod1() { + return new privateClass(); + } + private get myPrivateMethod1() { + return new privateClass(); + } + } + + export class publicClassWithWithPublicGetAccessorTypes { + static get myPublicStaticMethod(): publicClass { + return null; + } + private static get myPrivateStaticMethod(): publicClass { + return null; + } + get myPublicMethod(): publicClass { + return null; + } + private get myPrivateMethod(): publicClass { + return null; + } + static get myPublicStaticMethod1() { + return new publicClass(); + } + private static get myPrivateStaticMethod1() { + return new publicClass(); + } + get myPublicMethod1() { + return new publicClass(); + } + private get myPrivateMethod1() { + return new publicClass(); + } + } + + class privateClassWithWithPrivateGetAccessorTypes { + static get myPublicStaticMethod(): privateClass { + return null; + } + private static get myPrivateStaticMethod(): privateClass { + return null; + } + get myPublicMethod(): privateClass { + return null; + } + private get myPrivateMethod(): privateClass { + return null; + } + static get myPublicStaticMethod1() { + return new privateClass(); + } + private static get myPrivateStaticMethod1() { + return new privateClass(); + } + get myPublicMethod1() { + return new privateClass(); + } + private get myPrivateMethod1() { + return new privateClass(); + } + } + + class privateClassWithWithPublicGetAccessorTypes { + static get myPublicStaticMethod(): publicClass { + return null; + } + private static get myPrivateStaticMethod(): publicClass { + return null; + } + get myPublicMethod(): publicClass { + return null; + } + private get myPrivateMethod(): publicClass { + return null; + } + static get myPublicStaticMethod1() { + return new publicClass(); + } + private static get myPrivateStaticMethod1() { + return new publicClass(); + } + get myPublicMethod1() { + return new publicClass(); + } + private get myPrivateMethod1() { + return new publicClass(); + } + } + + export class publicClassWithWithPrivateSetAccessorTypes { + static set myPublicStaticMethod(param: privateClass) { + } + private static set myPrivateStaticMethod(param: privateClass) { + } + set myPublicMethod(param: privateClass) { + } + private set myPrivateMethod(param: privateClass) { + } + } + + export class publicClassWithWithPublicSetAccessorTypes { + static set myPublicStaticMethod(param: publicClass) { + } + private static set myPrivateStaticMethod(param: publicClass) { + } + set myPublicMethod(param: publicClass) { + } + private set myPrivateMethod(param: publicClass) { + } + } + + class privateClassWithWithPrivateSetAccessorTypes { + static set myPublicStaticMethod(param: privateClass) { + } + private static set myPrivateStaticMethod(param: privateClass) { + } + set myPublicMethod(param: privateClass) { + } + private set myPrivateMethod(param: privateClass) { + } + } + + class privateClassWithWithPublicSetAccessorTypes { + static set myPublicStaticMethod(param: publicClass) { + } + private static set myPrivateStaticMethod(param: publicClass) { + } + set myPublicMethod(param: publicClass) { + } + private set myPrivateMethod(param: publicClass) { + } + } + + export class publicClassWithPrivateModuleGetAccessorTypes { + static get myPublicStaticMethod(): privateModule.publicClass { + return null; + } + get myPublicMethod(): privateModule.publicClass { + return null; + } + static get myPublicStaticMethod1() { + return new privateModule.publicClass(); + } + get myPublicMethod1() { + return new privateModule.publicClass(); + } + } + + export class publicClassWithPrivateModuleSetAccessorTypes { + static set myPublicStaticMethod(param: privateModule.publicClass) { + } + set myPublicMethod(param: privateModule.publicClass) { + } + } + + class privateClassWithPrivateModuleGetAccessorTypes { + static get myPublicStaticMethod(): privateModule.publicClass { + return null; + } + get myPublicMethod(): privateModule.publicClass { + return null; + } + static get myPublicStaticMethod1() { + return new privateModule.publicClass(); + } + get myPublicMethod1() { + return new privateModule.publicClass(); + } + } + + class privateClassWithPrivateModuleSetAccessorTypes { + static set myPublicStaticMethod(param: privateModule.publicClass) { + } + set myPublicMethod(param: privateModule.publicClass) { + } + } +} + +//// [privacyAccessorDeclFile_GlobalFile.ts] +class publicClassInGlobal { +} + +class publicClassInGlobalWithPublicGetAccessorTypes { + static get myPublicStaticMethod(): publicClassInGlobal { + return null; + } + private static get myPrivateStaticMethod(): publicClassInGlobal { + return null; + } + get myPublicMethod(): publicClassInGlobal { + return null; + } + private get myPrivateMethod(): publicClassInGlobal { + return null; + } + static get myPublicStaticMethod1() { + return new publicClassInGlobal(); + } + private static get myPrivateStaticMethod1() { + return new publicClassInGlobal(); + } + get myPublicMethod1() { + return new publicClassInGlobal(); + } + private get myPrivateMethod1() { + return new publicClassInGlobal(); + } +} + +class publicClassInGlobalWithWithPublicSetAccessorTypes { + static set myPublicStaticMethod(param: publicClassInGlobal) { + } + private static set myPrivateStaticMethod(param: publicClassInGlobal) { + } + set myPublicMethod(param: publicClassInGlobal) { + } + private set myPrivateMethod(param: publicClassInGlobal) { + } +} + +namespace publicModuleInGlobal { + class privateClass { + } + + export class publicClass { + } + + namespace privateModule { + class privateClass { + } + + export class publicClass { + } + export class publicClassWithWithPrivateGetAccessorTypes { + static get myPublicStaticMethod(): privateClass { + return null; + } + private static get myPrivateStaticMethod(): privateClass { + return null; + } + get myPublicMethod(): privateClass { + return null; + } + private get myPrivateMethod(): privateClass { + return null; + } + static get myPublicStaticMethod1() { + return new privateClass(); + } + private static get myPrivateStaticMethod1() { + return new privateClass(); + } + get myPublicMethod1() { + return new privateClass(); + } + private get myPrivateMethod1() { + return new privateClass(); + } + } + + export class publicClassWithWithPublicGetAccessorTypes { + static get myPublicStaticMethod(): publicClass { + return null; + } + private static get myPrivateStaticMethod(): publicClass { + return null; + } + get myPublicMethod(): publicClass { + return null; + } + private get myPrivateMethod(): publicClass { + return null; + } + static get myPublicStaticMethod1() { + return new publicClass(); + } + private static get myPrivateStaticMethod1() { + return new publicClass(); + } + get myPublicMethod1() { + return new publicClass(); + } + private get myPrivateMethod1() { + return new publicClass(); + } + } + + class privateClassWithWithPrivateGetAccessorTypes { + static get myPublicStaticMethod(): privateClass { + return null; + } + private static get myPrivateStaticMethod(): privateClass { + return null; + } + get myPublicMethod(): privateClass { + return null; + } + private get myPrivateMethod(): privateClass { + return null; + } + static get myPublicStaticMethod1() { + return new privateClass(); + } + private static get myPrivateStaticMethod1() { + return new privateClass(); + } + get myPublicMethod1() { + return new privateClass(); + } + private get myPrivateMethod1() { + return new privateClass(); + } + } + + class privateClassWithWithPublicGetAccessorTypes { + static get myPublicStaticMethod(): publicClass { + return null; + } + private static get myPrivateStaticMethod(): publicClass { + return null; + } + get myPublicMethod(): publicClass { + return null; + } + private get myPrivateMethod(): publicClass { + return null; + } + static get myPublicStaticMethod1() { + return new publicClass(); + } + private static get myPrivateStaticMethod1() { + return new publicClass(); + } + get myPublicMethod1() { + return new publicClass(); + } + private get myPrivateMethod1() { + return new publicClass(); + } + } + + export class publicClassWithWithPrivateSetAccessorTypes { + static set myPublicStaticMethod(param: privateClass) { + } + private static set myPrivateStaticMethod(param: privateClass) { + } + set myPublicMethod(param: privateClass) { + } + private set myPrivateMethod(param: privateClass) { + } + } + + export class publicClassWithWithPublicSetAccessorTypes { + static set myPublicStaticMethod(param: publicClass) { + } + private static set myPrivateStaticMethod(param: publicClass) { + } + set myPublicMethod(param: publicClass) { + } + private set myPrivateMethod(param: publicClass) { + } + } + + class privateClassWithWithPrivateSetAccessorTypes { + static set myPublicStaticMethod(param: privateClass) { + } + private static set myPrivateStaticMethod(param: privateClass) { + } + set myPublicMethod(param: privateClass) { + } + private set myPrivateMethod(param: privateClass) { + } + } + + class privateClassWithWithPublicSetAccessorTypes { + static set myPublicStaticMethod(param: publicClass) { + } + private static set myPrivateStaticMethod(param: publicClass) { + } + set myPublicMethod(param: publicClass) { + } + private set myPrivateMethod(param: publicClass) { + } + } + + export class publicClassWithPrivateModuleGetAccessorTypes { + static get myPublicStaticMethod(): privateModule.publicClass { + return null; + } + get myPublicMethod(): privateModule.publicClass { + return null; + } + static get myPublicStaticMethod1() { + return new privateModule.publicClass(); + } + get myPublicMethod1() { + return new privateModule.publicClass(); + } + } + + export class publicClassWithPrivateModuleSetAccessorTypes { + static set myPublicStaticMethod(param: privateModule.publicClass) { + } + set myPublicMethod(param: privateModule.publicClass) { + } + } + + class privateClassWithPrivateModuleGetAccessorTypes { + static get myPublicStaticMethod(): privateModule.publicClass { + return null; + } + get myPublicMethod(): privateModule.publicClass { + return null; + } + static get myPublicStaticMethod1() { + return new privateModule.publicClass(); + } + get myPublicMethod1() { + return new privateModule.publicClass(); + } + } + + class privateClassWithPrivateModuleSetAccessorTypes { + static set myPublicStaticMethod(param: privateModule.publicClass) { + } + set myPublicMethod(param: privateModule.publicClass) { + } + } + } + + export class publicClassWithWithPrivateGetAccessorTypes { + static get myPublicStaticMethod(): privateClass { // Error + return null; + } + private static get myPrivateStaticMethod(): privateClass { + return null; + } + get myPublicMethod(): privateClass { // Error + return null; + } + private get myPrivateMethod(): privateClass { + return null; + } + static get myPublicStaticMethod1() { // Error + return new privateClass(); + } + private static get myPrivateStaticMethod1() { + return new privateClass(); + } + get myPublicMethod1() { // Error + return new privateClass(); + } + private get myPrivateMethod1() { + return new privateClass(); + } + } + + export class publicClassWithWithPublicGetAccessorTypes { + static get myPublicStaticMethod(): publicClass { + return null; + } + private static get myPrivateStaticMethod(): publicClass { + return null; + } + get myPublicMethod(): publicClass { + return null; + } + private get myPrivateMethod(): publicClass { + return null; + } + static get myPublicStaticMethod1() { + return new publicClass(); + } + private static get myPrivateStaticMethod1() { + return new publicClass(); + } + get myPublicMethod1() { + return new publicClass(); + } + private get myPrivateMethod1() { + return new publicClass(); + } + } + + class privateClassWithWithPrivateGetAccessorTypes { + static get myPublicStaticMethod(): privateClass { + return null; + } + private static get myPrivateStaticMethod(): privateClass { + return null; + } + get myPublicMethod(): privateClass { + return null; + } + private get myPrivateMethod(): privateClass { + return null; + } + static get myPublicStaticMethod1() { + return new privateClass(); + } + private static get myPrivateStaticMethod1() { + return new privateClass(); + } + get myPublicMethod1() { + return new privateClass(); + } + private get myPrivateMethod1() { + return new privateClass(); + } + } + + class privateClassWithWithPublicGetAccessorTypes { + static get myPublicStaticMethod(): publicClass { + return null; + } + private static get myPrivateStaticMethod(): publicClass { + return null; + } + get myPublicMethod(): publicClass { + return null; + } + private get myPrivateMethod(): publicClass { + return null; + } + static get myPublicStaticMethod1() { + return new publicClass(); + } + private static get myPrivateStaticMethod1() { + return new publicClass(); + } + get myPublicMethod1() { + return new publicClass(); + } + private get myPrivateMethod1() { + return new publicClass(); + } + } + + export class publicClassWithWithPrivateSetAccessorTypes { + static set myPublicStaticMethod(param: privateClass) { // Error + } + private static set myPrivateStaticMethod(param: privateClass) { + } + set myPublicMethod(param: privateClass) { // Error + } + private set myPrivateMethod(param: privateClass) { + } + } + + export class publicClassWithWithPublicSetAccessorTypes { + static set myPublicStaticMethod(param: publicClass) { + } + private static set myPrivateStaticMethod(param: publicClass) { + } + set myPublicMethod(param: publicClass) { + } + private set myPrivateMethod(param: publicClass) { + } + } + + class privateClassWithWithPrivateSetAccessorTypes { + static set myPublicStaticMethod(param: privateClass) { + } + private static set myPrivateStaticMethod(param: privateClass) { + } + set myPublicMethod(param: privateClass) { + } + private set myPrivateMethod(param: privateClass) { + } + } + + class privateClassWithWithPublicSetAccessorTypes { + static set myPublicStaticMethod(param: publicClass) { + } + private static set myPrivateStaticMethod(param: publicClass) { + } + set myPublicMethod(param: publicClass) { + } + private set myPrivateMethod(param: publicClass) { + } + } + + export class publicClassWithPrivateModuleGetAccessorTypes { + static get myPublicStaticMethod(): privateModule.publicClass { // Error + return null; + } + get myPublicMethod(): privateModule.publicClass { // Error + return null; + } + static get myPublicStaticMethod1() { // Error + return new privateModule.publicClass(); + } + get myPublicMethod1() { // Error + return new privateModule.publicClass(); + } + } + + export class publicClassWithPrivateModuleSetAccessorTypes { + static set myPublicStaticMethod(param: privateModule.publicClass) { // Error + } + set myPublicMethod(param: privateModule.publicClass) { // Error + } + } + + class privateClassWithPrivateModuleGetAccessorTypes { + static get myPublicStaticMethod(): privateModule.publicClass { + return null; + } + get myPublicMethod(): privateModule.publicClass { + return null; + } + static get myPublicStaticMethod1() { + return new privateModule.publicClass(); + } + get myPublicMethod1() { + return new privateModule.publicClass(); + } + } + + class privateClassWithPrivateModuleSetAccessorTypes { + static set myPublicStaticMethod(param: privateModule.publicClass) { + } + set myPublicMethod(param: privateModule.publicClass) { + } + } +} + +//// [privacyAccessorDeclFile_externalModule.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.publicModule = exports.publicClassWithPrivateModuleSetAccessorTypes = exports.publicClassWithPrivateModuleGetAccessorTypes = exports.publicClassWithWithPublicSetAccessorTypes = exports.publicClassWithWithPrivateSetAccessorTypes = exports.publicClassWithWithPublicGetAccessorTypes = exports.publicClassWithWithPrivateGetAccessorTypes = exports.publicClass = void 0; +class privateClass { +} +class publicClass { +} +exports.publicClass = publicClass; +class publicClassWithWithPrivateGetAccessorTypes { + static get myPublicStaticMethod() { + return null; + } + static get myPrivateStaticMethod() { + return null; + } + get myPublicMethod() { + return null; + } + get myPrivateMethod() { + return null; + } + static get myPublicStaticMethod1() { + return new privateClass(); + } + static get myPrivateStaticMethod1() { + return new privateClass(); + } + get myPublicMethod1() { + return new privateClass(); + } + get myPrivateMethod1() { + return new privateClass(); + } +} +exports.publicClassWithWithPrivateGetAccessorTypes = publicClassWithWithPrivateGetAccessorTypes; +class publicClassWithWithPublicGetAccessorTypes { + static get myPublicStaticMethod() { + return null; + } + static get myPrivateStaticMethod() { + return null; + } + get myPublicMethod() { + return null; + } + get myPrivateMethod() { + return null; + } + static get myPublicStaticMethod1() { + return new publicClass(); + } + static get myPrivateStaticMethod1() { + return new publicClass(); + } + get myPublicMethod1() { + return new publicClass(); + } + get myPrivateMethod1() { + return new publicClass(); + } +} +exports.publicClassWithWithPublicGetAccessorTypes = publicClassWithWithPublicGetAccessorTypes; +class privateClassWithWithPrivateGetAccessorTypes { + static get myPublicStaticMethod() { + return null; + } + static get myPrivateStaticMethod() { + return null; + } + get myPublicMethod() { + return null; + } + get myPrivateMethod() { + return null; + } + static get myPublicStaticMethod1() { + return new privateClass(); + } + static get myPrivateStaticMethod1() { + return new privateClass(); + } + get myPublicMethod1() { + return new privateClass(); + } + get myPrivateMethod1() { + return new privateClass(); + } +} +class privateClassWithWithPublicGetAccessorTypes { + static get myPublicStaticMethod() { + return null; + } + static get myPrivateStaticMethod() { + return null; + } + get myPublicMethod() { + return null; + } + get myPrivateMethod() { + return null; + } + static get myPublicStaticMethod1() { + return new publicClass(); + } + static get myPrivateStaticMethod1() { + return new publicClass(); + } + get myPublicMethod1() { + return new publicClass(); + } + get myPrivateMethod1() { + return new publicClass(); + } +} +class publicClassWithWithPrivateSetAccessorTypes { + static set myPublicStaticMethod(param) { + } + static set myPrivateStaticMethod(param) { + } + set myPublicMethod(param) { + } + set myPrivateMethod(param) { + } +} +exports.publicClassWithWithPrivateSetAccessorTypes = publicClassWithWithPrivateSetAccessorTypes; +class publicClassWithWithPublicSetAccessorTypes { + static set myPublicStaticMethod(param) { + } + static set myPrivateStaticMethod(param) { + } + set myPublicMethod(param) { + } + set myPrivateMethod(param) { + } +} +exports.publicClassWithWithPublicSetAccessorTypes = publicClassWithWithPublicSetAccessorTypes; +class privateClassWithWithPrivateSetAccessorTypes { + static set myPublicStaticMethod(param) { + } + static set myPrivateStaticMethod(param) { + } + set myPublicMethod(param) { + } + set myPrivateMethod(param) { + } +} +class privateClassWithWithPublicSetAccessorTypes { + static set myPublicStaticMethod(param) { + } + static set myPrivateStaticMethod(param) { + } + set myPublicMethod(param) { + } + set myPrivateMethod(param) { + } +} +class publicClassWithPrivateModuleGetAccessorTypes { + static get myPublicStaticMethod() { + return null; + } + get myPublicMethod() { + return null; + } + static get myPublicStaticMethod1() { + return new privateModule.publicClass(); + } + get myPublicMethod1() { + return new privateModule.publicClass(); + } +} +exports.publicClassWithPrivateModuleGetAccessorTypes = publicClassWithPrivateModuleGetAccessorTypes; +class publicClassWithPrivateModuleSetAccessorTypes { + static set myPublicStaticMethod(param) { + } + set myPublicMethod(param) { + } +} +exports.publicClassWithPrivateModuleSetAccessorTypes = publicClassWithPrivateModuleSetAccessorTypes; +class privateClassWithPrivateModuleGetAccessorTypes { + static get myPublicStaticMethod() { + return null; + } + get myPublicMethod() { + return null; + } + static get myPublicStaticMethod1() { + return new privateModule.publicClass(); + } + get myPublicMethod1() { + return new privateModule.publicClass(); + } +} +class privateClassWithPrivateModuleSetAccessorTypes { + static set myPublicStaticMethod(param) { + } + set myPublicMethod(param) { + } +} +var publicModule; +(function (publicModule) { + class privateClass { + } + class publicClass { + } + publicModule.publicClass = publicClass; + class publicClassWithWithPrivateGetAccessorTypes { + static get myPublicStaticMethod() { + return null; + } + static get myPrivateStaticMethod() { + return null; + } + get myPublicMethod() { + return null; + } + get myPrivateMethod() { + return null; + } + static get myPublicStaticMethod1() { + return new privateClass(); + } + static get myPrivateStaticMethod1() { + return new privateClass(); + } + get myPublicMethod1() { + return new privateClass(); + } + get myPrivateMethod1() { + return new privateClass(); + } + } + publicModule.publicClassWithWithPrivateGetAccessorTypes = publicClassWithWithPrivateGetAccessorTypes; + class publicClassWithWithPublicGetAccessorTypes { + static get myPublicStaticMethod() { + return null; + } + static get myPrivateStaticMethod() { + return null; + } + get myPublicMethod() { + return null; + } + get myPrivateMethod() { + return null; + } + static get myPublicStaticMethod1() { + return new publicClass(); + } + static get myPrivateStaticMethod1() { + return new publicClass(); + } + get myPublicMethod1() { + return new publicClass(); + } + get myPrivateMethod1() { + return new publicClass(); + } + } + publicModule.publicClassWithWithPublicGetAccessorTypes = publicClassWithWithPublicGetAccessorTypes; + class privateClassWithWithPrivateGetAccessorTypes { + static get myPublicStaticMethod() { + return null; + } + static get myPrivateStaticMethod() { + return null; + } + get myPublicMethod() { + return null; + } + get myPrivateMethod() { + return null; + } + static get myPublicStaticMethod1() { + return new privateClass(); + } + static get myPrivateStaticMethod1() { + return new privateClass(); + } + get myPublicMethod1() { + return new privateClass(); + } + get myPrivateMethod1() { + return new privateClass(); + } + } + class privateClassWithWithPublicGetAccessorTypes { + static get myPublicStaticMethod() { + return null; + } + static get myPrivateStaticMethod() { + return null; + } + get myPublicMethod() { + return null; + } + get myPrivateMethod() { + return null; + } + static get myPublicStaticMethod1() { + return new publicClass(); + } + static get myPrivateStaticMethod1() { + return new publicClass(); + } + get myPublicMethod1() { + return new publicClass(); + } + get myPrivateMethod1() { + return new publicClass(); + } + } + class publicClassWithWithPrivateSetAccessorTypes { + static set myPublicStaticMethod(param) { + } + static set myPrivateStaticMethod(param) { + } + set myPublicMethod(param) { + } + set myPrivateMethod(param) { + } + } + publicModule.publicClassWithWithPrivateSetAccessorTypes = publicClassWithWithPrivateSetAccessorTypes; + class publicClassWithWithPublicSetAccessorTypes { + static set myPublicStaticMethod(param) { + } + static set myPrivateStaticMethod(param) { + } + set myPublicMethod(param) { + } + set myPrivateMethod(param) { + } + } + publicModule.publicClassWithWithPublicSetAccessorTypes = publicClassWithWithPublicSetAccessorTypes; + class privateClassWithWithPrivateSetAccessorTypes { + static set myPublicStaticMethod(param) { + } + static set myPrivateStaticMethod(param) { + } + set myPublicMethod(param) { + } + set myPrivateMethod(param) { + } + } + class privateClassWithWithPublicSetAccessorTypes { + static set myPublicStaticMethod(param) { + } + static set myPrivateStaticMethod(param) { + } + set myPublicMethod(param) { + } + set myPrivateMethod(param) { + } + } + class publicClassWithPrivateModuleGetAccessorTypes { + static get myPublicStaticMethod() { + return null; + } + get myPublicMethod() { + return null; + } + static get myPublicStaticMethod1() { + return new privateModule.publicClass(); + } + get myPublicMethod1() { + return new privateModule.publicClass(); + } + } + publicModule.publicClassWithPrivateModuleGetAccessorTypes = publicClassWithPrivateModuleGetAccessorTypes; + class publicClassWithPrivateModuleSetAccessorTypes { + static set myPublicStaticMethod(param) { + } + set myPublicMethod(param) { + } + } + publicModule.publicClassWithPrivateModuleSetAccessorTypes = publicClassWithPrivateModuleSetAccessorTypes; + class privateClassWithPrivateModuleGetAccessorTypes { + static get myPublicStaticMethod() { + return null; + } + get myPublicMethod() { + return null; + } + static get myPublicStaticMethod1() { + return new privateModule.publicClass(); + } + get myPublicMethod1() { + return new privateModule.publicClass(); + } + } + class privateClassWithPrivateModuleSetAccessorTypes { + static set myPublicStaticMethod(param) { + } + set myPublicMethod(param) { + } + } +})(publicModule || (exports.publicModule = publicModule = {})); +var privateModule; +(function (privateModule) { + class privateClass { + } + class publicClass { + } + privateModule.publicClass = publicClass; + class publicClassWithWithPrivateGetAccessorTypes { + static get myPublicStaticMethod() { + return null; + } + static get myPrivateStaticMethod() { + return null; + } + get myPublicMethod() { + return null; + } + get myPrivateMethod() { + return null; + } + static get myPublicStaticMethod1() { + return new privateClass(); + } + static get myPrivateStaticMethod1() { + return new privateClass(); + } + get myPublicMethod1() { + return new privateClass(); + } + get myPrivateMethod1() { + return new privateClass(); + } + } + privateModule.publicClassWithWithPrivateGetAccessorTypes = publicClassWithWithPrivateGetAccessorTypes; + class publicClassWithWithPublicGetAccessorTypes { + static get myPublicStaticMethod() { + return null; + } + static get myPrivateStaticMethod() { + return null; + } + get myPublicMethod() { + return null; + } + get myPrivateMethod() { + return null; + } + static get myPublicStaticMethod1() { + return new publicClass(); + } + static get myPrivateStaticMethod1() { + return new publicClass(); + } + get myPublicMethod1() { + return new publicClass(); + } + get myPrivateMethod1() { + return new publicClass(); + } + } + privateModule.publicClassWithWithPublicGetAccessorTypes = publicClassWithWithPublicGetAccessorTypes; + class privateClassWithWithPrivateGetAccessorTypes { + static get myPublicStaticMethod() { + return null; + } + static get myPrivateStaticMethod() { + return null; + } + get myPublicMethod() { + return null; + } + get myPrivateMethod() { + return null; + } + static get myPublicStaticMethod1() { + return new privateClass(); + } + static get myPrivateStaticMethod1() { + return new privateClass(); + } + get myPublicMethod1() { + return new privateClass(); + } + get myPrivateMethod1() { + return new privateClass(); + } + } + class privateClassWithWithPublicGetAccessorTypes { + static get myPublicStaticMethod() { + return null; + } + static get myPrivateStaticMethod() { + return null; + } + get myPublicMethod() { + return null; + } + get myPrivateMethod() { + return null; + } + static get myPublicStaticMethod1() { + return new publicClass(); + } + static get myPrivateStaticMethod1() { + return new publicClass(); + } + get myPublicMethod1() { + return new publicClass(); + } + get myPrivateMethod1() { + return new publicClass(); + } + } + class publicClassWithWithPrivateSetAccessorTypes { + static set myPublicStaticMethod(param) { + } + static set myPrivateStaticMethod(param) { + } + set myPublicMethod(param) { + } + set myPrivateMethod(param) { + } + } + privateModule.publicClassWithWithPrivateSetAccessorTypes = publicClassWithWithPrivateSetAccessorTypes; + class publicClassWithWithPublicSetAccessorTypes { + static set myPublicStaticMethod(param) { + } + static set myPrivateStaticMethod(param) { + } + set myPublicMethod(param) { + } + set myPrivateMethod(param) { + } + } + privateModule.publicClassWithWithPublicSetAccessorTypes = publicClassWithWithPublicSetAccessorTypes; + class privateClassWithWithPrivateSetAccessorTypes { + static set myPublicStaticMethod(param) { + } + static set myPrivateStaticMethod(param) { + } + set myPublicMethod(param) { + } + set myPrivateMethod(param) { + } + } + class privateClassWithWithPublicSetAccessorTypes { + static set myPublicStaticMethod(param) { + } + static set myPrivateStaticMethod(param) { + } + set myPublicMethod(param) { + } + set myPrivateMethod(param) { + } + } + class publicClassWithPrivateModuleGetAccessorTypes { + static get myPublicStaticMethod() { + return null; + } + get myPublicMethod() { + return null; + } + static get myPublicStaticMethod1() { + return new privateModule.publicClass(); + } + get myPublicMethod1() { + return new privateModule.publicClass(); + } + } + privateModule.publicClassWithPrivateModuleGetAccessorTypes = publicClassWithPrivateModuleGetAccessorTypes; + class publicClassWithPrivateModuleSetAccessorTypes { + static set myPublicStaticMethod(param) { + } + set myPublicMethod(param) { + } + } + privateModule.publicClassWithPrivateModuleSetAccessorTypes = publicClassWithPrivateModuleSetAccessorTypes; + class privateClassWithPrivateModuleGetAccessorTypes { + static get myPublicStaticMethod() { + return null; + } + get myPublicMethod() { + return null; + } + static get myPublicStaticMethod1() { + return new privateModule.publicClass(); + } + get myPublicMethod1() { + return new privateModule.publicClass(); + } + } + class privateClassWithPrivateModuleSetAccessorTypes { + static set myPublicStaticMethod(param) { + } + set myPublicMethod(param) { + } + } +})(privateModule || (privateModule = {})); +//// [privacyAccessorDeclFile_GlobalFile.js] +class publicClassInGlobal { +} +class publicClassInGlobalWithPublicGetAccessorTypes { + static get myPublicStaticMethod() { + return null; + } + static get myPrivateStaticMethod() { + return null; + } + get myPublicMethod() { + return null; + } + get myPrivateMethod() { + return null; + } + static get myPublicStaticMethod1() { + return new publicClassInGlobal(); + } + static get myPrivateStaticMethod1() { + return new publicClassInGlobal(); + } + get myPublicMethod1() { + return new publicClassInGlobal(); + } + get myPrivateMethod1() { + return new publicClassInGlobal(); + } +} +class publicClassInGlobalWithWithPublicSetAccessorTypes { + static set myPublicStaticMethod(param) { + } + static set myPrivateStaticMethod(param) { + } + set myPublicMethod(param) { + } + set myPrivateMethod(param) { + } +} +var publicModuleInGlobal; +(function (publicModuleInGlobal) { + class privateClass { + } + class publicClass { + } + publicModuleInGlobal.publicClass = publicClass; + let privateModule; + (function (privateModule) { + class privateClass { + } + class publicClass { + } + privateModule.publicClass = publicClass; + class publicClassWithWithPrivateGetAccessorTypes { + static get myPublicStaticMethod() { + return null; + } + static get myPrivateStaticMethod() { + return null; + } + get myPublicMethod() { + return null; + } + get myPrivateMethod() { + return null; + } + static get myPublicStaticMethod1() { + return new privateClass(); + } + static get myPrivateStaticMethod1() { + return new privateClass(); + } + get myPublicMethod1() { + return new privateClass(); + } + get myPrivateMethod1() { + return new privateClass(); + } + } + privateModule.publicClassWithWithPrivateGetAccessorTypes = publicClassWithWithPrivateGetAccessorTypes; + class publicClassWithWithPublicGetAccessorTypes { + static get myPublicStaticMethod() { + return null; + } + static get myPrivateStaticMethod() { + return null; + } + get myPublicMethod() { + return null; + } + get myPrivateMethod() { + return null; + } + static get myPublicStaticMethod1() { + return new publicClass(); + } + static get myPrivateStaticMethod1() { + return new publicClass(); + } + get myPublicMethod1() { + return new publicClass(); + } + get myPrivateMethod1() { + return new publicClass(); + } + } + privateModule.publicClassWithWithPublicGetAccessorTypes = publicClassWithWithPublicGetAccessorTypes; + class privateClassWithWithPrivateGetAccessorTypes { + static get myPublicStaticMethod() { + return null; + } + static get myPrivateStaticMethod() { + return null; + } + get myPublicMethod() { + return null; + } + get myPrivateMethod() { + return null; + } + static get myPublicStaticMethod1() { + return new privateClass(); + } + static get myPrivateStaticMethod1() { + return new privateClass(); + } + get myPublicMethod1() { + return new privateClass(); + } + get myPrivateMethod1() { + return new privateClass(); + } + } + class privateClassWithWithPublicGetAccessorTypes { + static get myPublicStaticMethod() { + return null; + } + static get myPrivateStaticMethod() { + return null; + } + get myPublicMethod() { + return null; + } + get myPrivateMethod() { + return null; + } + static get myPublicStaticMethod1() { + return new publicClass(); + } + static get myPrivateStaticMethod1() { + return new publicClass(); + } + get myPublicMethod1() { + return new publicClass(); + } + get myPrivateMethod1() { + return new publicClass(); + } + } + class publicClassWithWithPrivateSetAccessorTypes { + static set myPublicStaticMethod(param) { + } + static set myPrivateStaticMethod(param) { + } + set myPublicMethod(param) { + } + set myPrivateMethod(param) { + } + } + privateModule.publicClassWithWithPrivateSetAccessorTypes = publicClassWithWithPrivateSetAccessorTypes; + class publicClassWithWithPublicSetAccessorTypes { + static set myPublicStaticMethod(param) { + } + static set myPrivateStaticMethod(param) { + } + set myPublicMethod(param) { + } + set myPrivateMethod(param) { + } + } + privateModule.publicClassWithWithPublicSetAccessorTypes = publicClassWithWithPublicSetAccessorTypes; + class privateClassWithWithPrivateSetAccessorTypes { + static set myPublicStaticMethod(param) { + } + static set myPrivateStaticMethod(param) { + } + set myPublicMethod(param) { + } + set myPrivateMethod(param) { + } + } + class privateClassWithWithPublicSetAccessorTypes { + static set myPublicStaticMethod(param) { + } + static set myPrivateStaticMethod(param) { + } + set myPublicMethod(param) { + } + set myPrivateMethod(param) { + } + } + class publicClassWithPrivateModuleGetAccessorTypes { + static get myPublicStaticMethod() { + return null; + } + get myPublicMethod() { + return null; + } + static get myPublicStaticMethod1() { + return new privateModule.publicClass(); + } + get myPublicMethod1() { + return new privateModule.publicClass(); + } + } + privateModule.publicClassWithPrivateModuleGetAccessorTypes = publicClassWithPrivateModuleGetAccessorTypes; + class publicClassWithPrivateModuleSetAccessorTypes { + static set myPublicStaticMethod(param) { + } + set myPublicMethod(param) { + } + } + privateModule.publicClassWithPrivateModuleSetAccessorTypes = publicClassWithPrivateModuleSetAccessorTypes; + class privateClassWithPrivateModuleGetAccessorTypes { + static get myPublicStaticMethod() { + return null; + } + get myPublicMethod() { + return null; + } + static get myPublicStaticMethod1() { + return new privateModule.publicClass(); + } + get myPublicMethod1() { + return new privateModule.publicClass(); + } + } + class privateClassWithPrivateModuleSetAccessorTypes { + static set myPublicStaticMethod(param) { + } + set myPublicMethod(param) { + } + } + })(privateModule || (privateModule = {})); + class publicClassWithWithPrivateGetAccessorTypes { + static get myPublicStaticMethod() { + return null; + } + static get myPrivateStaticMethod() { + return null; + } + get myPublicMethod() { + return null; + } + get myPrivateMethod() { + return null; + } + static get myPublicStaticMethod1() { + return new privateClass(); + } + static get myPrivateStaticMethod1() { + return new privateClass(); + } + get myPublicMethod1() { + return new privateClass(); + } + get myPrivateMethod1() { + return new privateClass(); + } + } + publicModuleInGlobal.publicClassWithWithPrivateGetAccessorTypes = publicClassWithWithPrivateGetAccessorTypes; + class publicClassWithWithPublicGetAccessorTypes { + static get myPublicStaticMethod() { + return null; + } + static get myPrivateStaticMethod() { + return null; + } + get myPublicMethod() { + return null; + } + get myPrivateMethod() { + return null; + } + static get myPublicStaticMethod1() { + return new publicClass(); + } + static get myPrivateStaticMethod1() { + return new publicClass(); + } + get myPublicMethod1() { + return new publicClass(); + } + get myPrivateMethod1() { + return new publicClass(); + } + } + publicModuleInGlobal.publicClassWithWithPublicGetAccessorTypes = publicClassWithWithPublicGetAccessorTypes; + class privateClassWithWithPrivateGetAccessorTypes { + static get myPublicStaticMethod() { + return null; + } + static get myPrivateStaticMethod() { + return null; + } + get myPublicMethod() { + return null; + } + get myPrivateMethod() { + return null; + } + static get myPublicStaticMethod1() { + return new privateClass(); + } + static get myPrivateStaticMethod1() { + return new privateClass(); + } + get myPublicMethod1() { + return new privateClass(); + } + get myPrivateMethod1() { + return new privateClass(); + } + } + class privateClassWithWithPublicGetAccessorTypes { + static get myPublicStaticMethod() { + return null; + } + static get myPrivateStaticMethod() { + return null; + } + get myPublicMethod() { + return null; + } + get myPrivateMethod() { + return null; + } + static get myPublicStaticMethod1() { + return new publicClass(); + } + static get myPrivateStaticMethod1() { + return new publicClass(); + } + get myPublicMethod1() { + return new publicClass(); + } + get myPrivateMethod1() { + return new publicClass(); + } + } + class publicClassWithWithPrivateSetAccessorTypes { + static set myPublicStaticMethod(param) { + } + static set myPrivateStaticMethod(param) { + } + set myPublicMethod(param) { + } + set myPrivateMethod(param) { + } + } + publicModuleInGlobal.publicClassWithWithPrivateSetAccessorTypes = publicClassWithWithPrivateSetAccessorTypes; + class publicClassWithWithPublicSetAccessorTypes { + static set myPublicStaticMethod(param) { + } + static set myPrivateStaticMethod(param) { + } + set myPublicMethod(param) { + } + set myPrivateMethod(param) { + } + } + publicModuleInGlobal.publicClassWithWithPublicSetAccessorTypes = publicClassWithWithPublicSetAccessorTypes; + class privateClassWithWithPrivateSetAccessorTypes { + static set myPublicStaticMethod(param) { + } + static set myPrivateStaticMethod(param) { + } + set myPublicMethod(param) { + } + set myPrivateMethod(param) { + } + } + class privateClassWithWithPublicSetAccessorTypes { + static set myPublicStaticMethod(param) { + } + static set myPrivateStaticMethod(param) { + } + set myPublicMethod(param) { + } + set myPrivateMethod(param) { + } + } + class publicClassWithPrivateModuleGetAccessorTypes { + static get myPublicStaticMethod() { + return null; + } + get myPublicMethod() { + return null; + } + static get myPublicStaticMethod1() { + return new privateModule.publicClass(); + } + get myPublicMethod1() { + return new privateModule.publicClass(); + } + } + publicModuleInGlobal.publicClassWithPrivateModuleGetAccessorTypes = publicClassWithPrivateModuleGetAccessorTypes; + class publicClassWithPrivateModuleSetAccessorTypes { + static set myPublicStaticMethod(param) { + } + set myPublicMethod(param) { + } + } + publicModuleInGlobal.publicClassWithPrivateModuleSetAccessorTypes = publicClassWithPrivateModuleSetAccessorTypes; + class privateClassWithPrivateModuleGetAccessorTypes { + static get myPublicStaticMethod() { + return null; + } + get myPublicMethod() { + return null; + } + static get myPublicStaticMethod1() { + return new privateModule.publicClass(); + } + get myPublicMethod1() { + return new privateModule.publicClass(); + } + } + class privateClassWithPrivateModuleSetAccessorTypes { + static set myPublicStaticMethod(param) { + } + set myPublicMethod(param) { + } + } +})(publicModuleInGlobal || (publicModuleInGlobal = {})); + + +//// [privacyAccessorDeclFile_externalModule.d.ts] +declare class privateClass { +} +export declare class publicClass { +} +export declare class publicClassWithWithPrivateGetAccessorTypes { + static get myPublicStaticMethod(): privateClass; + private static get myPrivateStaticMethod(); + get myPublicMethod(): privateClass; + private get myPrivateMethod(); + static get myPublicStaticMethod1(): privateClass; + private static get myPrivateStaticMethod1(); + get myPublicMethod1(): privateClass; + private get myPrivateMethod1(); +} +export declare class publicClassWithWithPublicGetAccessorTypes { + static get myPublicStaticMethod(): publicClass; + private static get myPrivateStaticMethod(); + get myPublicMethod(): publicClass; + private get myPrivateMethod(); + static get myPublicStaticMethod1(): publicClass; + private static get myPrivateStaticMethod1(); + get myPublicMethod1(): publicClass; + private get myPrivateMethod1(); +} +export declare class publicClassWithWithPrivateSetAccessorTypes { + static set myPublicStaticMethod(param: privateClass); + private static set myPrivateStaticMethod(value); + set myPublicMethod(param: privateClass); + private set myPrivateMethod(value); +} +export declare class publicClassWithWithPublicSetAccessorTypes { + static set myPublicStaticMethod(param: publicClass); + private static set myPrivateStaticMethod(value); + set myPublicMethod(param: publicClass); + private set myPrivateMethod(value); +} +export declare class publicClassWithPrivateModuleGetAccessorTypes { + static get myPublicStaticMethod(): privateModule.publicClass; + get myPublicMethod(): privateModule.publicClass; + static get myPublicStaticMethod1(): privateModule.publicClass; + get myPublicMethod1(): privateModule.publicClass; +} +export declare class publicClassWithPrivateModuleSetAccessorTypes { + static set myPublicStaticMethod(param: privateModule.publicClass); + set myPublicMethod(param: privateModule.publicClass); +} +export declare namespace publicModule { + class privateClass { + } + export class publicClass { + } + export class publicClassWithWithPrivateGetAccessorTypes { + static get myPublicStaticMethod(): privateClass; + private static get myPrivateStaticMethod(); + get myPublicMethod(): privateClass; + private get myPrivateMethod(); + static get myPublicStaticMethod1(): privateClass; + private static get myPrivateStaticMethod1(); + get myPublicMethod1(): privateClass; + private get myPrivateMethod1(); + } + export class publicClassWithWithPublicGetAccessorTypes { + static get myPublicStaticMethod(): publicClass; + private static get myPrivateStaticMethod(); + get myPublicMethod(): publicClass; + private get myPrivateMethod(); + static get myPublicStaticMethod1(): publicClass; + private static get myPrivateStaticMethod1(); + get myPublicMethod1(): publicClass; + private get myPrivateMethod1(); + } + export class publicClassWithWithPrivateSetAccessorTypes { + static set myPublicStaticMethod(param: privateClass); + private static set myPrivateStaticMethod(value); + set myPublicMethod(param: privateClass); + private set myPrivateMethod(value); + } + export class publicClassWithWithPublicSetAccessorTypes { + static set myPublicStaticMethod(param: publicClass); + private static set myPrivateStaticMethod(value); + set myPublicMethod(param: publicClass); + private set myPrivateMethod(value); + } + export class publicClassWithPrivateModuleGetAccessorTypes { + static get myPublicStaticMethod(): privateModule.publicClass; + get myPublicMethod(): privateModule.publicClass; + static get myPublicStaticMethod1(): privateModule.publicClass; + get myPublicMethod1(): privateModule.publicClass; + } + export class publicClassWithPrivateModuleSetAccessorTypes { + static set myPublicStaticMethod(param: privateModule.publicClass); + set myPublicMethod(param: privateModule.publicClass); + } + export {}; +} +declare namespace privateModule { + class privateClass { + } + export class publicClass { + } + export class publicClassWithWithPrivateGetAccessorTypes { + static get myPublicStaticMethod(): privateClass; + private static get myPrivateStaticMethod(); + get myPublicMethod(): privateClass; + private get myPrivateMethod(); + static get myPublicStaticMethod1(): privateClass; + private static get myPrivateStaticMethod1(); + get myPublicMethod1(): privateClass; + private get myPrivateMethod1(); + } + export class publicClassWithWithPublicGetAccessorTypes { + static get myPublicStaticMethod(): publicClass; + private static get myPrivateStaticMethod(); + get myPublicMethod(): publicClass; + private get myPrivateMethod(); + static get myPublicStaticMethod1(): publicClass; + private static get myPrivateStaticMethod1(); + get myPublicMethod1(): publicClass; + private get myPrivateMethod1(); + } + export class publicClassWithWithPrivateSetAccessorTypes { + static set myPublicStaticMethod(param: privateClass); + private static set myPrivateStaticMethod(value); + set myPublicMethod(param: privateClass); + private set myPrivateMethod(value); + } + export class publicClassWithWithPublicSetAccessorTypes { + static set myPublicStaticMethod(param: publicClass); + private static set myPrivateStaticMethod(value); + set myPublicMethod(param: publicClass); + private set myPrivateMethod(value); + } + export class publicClassWithPrivateModuleGetAccessorTypes { + static get myPublicStaticMethod(): privateModule.publicClass; + get myPublicMethod(): privateModule.publicClass; + static get myPublicStaticMethod1(): publicClass; + get myPublicMethod1(): publicClass; + } + export class publicClassWithPrivateModuleSetAccessorTypes { + static set myPublicStaticMethod(param: privateModule.publicClass); + set myPublicMethod(param: privateModule.publicClass); + } + export {}; +} +export {}; +//// [privacyAccessorDeclFile_GlobalFile.d.ts] +declare class publicClassInGlobal { +} +declare class publicClassInGlobalWithPublicGetAccessorTypes { + static get myPublicStaticMethod(): publicClassInGlobal; + private static get myPrivateStaticMethod(); + get myPublicMethod(): publicClassInGlobal; + private get myPrivateMethod(); + static get myPublicStaticMethod1(): publicClassInGlobal; + private static get myPrivateStaticMethod1(); + get myPublicMethod1(): publicClassInGlobal; + private get myPrivateMethod1(); +} +declare class publicClassInGlobalWithWithPublicSetAccessorTypes { + static set myPublicStaticMethod(param: publicClassInGlobal); + private static set myPrivateStaticMethod(value); + set myPublicMethod(param: publicClassInGlobal); + private set myPrivateMethod(value); +} +declare namespace publicModuleInGlobal { + class privateClass { + } + export class publicClass { + } + namespace privateModule { + class privateClass { + } + export class publicClass { + } + export class publicClassWithWithPrivateGetAccessorTypes { + static get myPublicStaticMethod(): privateClass; + private static get myPrivateStaticMethod(); + get myPublicMethod(): privateClass; + private get myPrivateMethod(); + static get myPublicStaticMethod1(): privateClass; + private static get myPrivateStaticMethod1(); + get myPublicMethod1(): privateClass; + private get myPrivateMethod1(); + } + export class publicClassWithWithPublicGetAccessorTypes { + static get myPublicStaticMethod(): publicClass; + private static get myPrivateStaticMethod(); + get myPublicMethod(): publicClass; + private get myPrivateMethod(); + static get myPublicStaticMethod1(): publicClass; + private static get myPrivateStaticMethod1(); + get myPublicMethod1(): publicClass; + private get myPrivateMethod1(); + } + export class publicClassWithWithPrivateSetAccessorTypes { + static set myPublicStaticMethod(param: privateClass); + private static set myPrivateStaticMethod(value); + set myPublicMethod(param: privateClass); + private set myPrivateMethod(value); + } + export class publicClassWithWithPublicSetAccessorTypes { + static set myPublicStaticMethod(param: publicClass); + private static set myPrivateStaticMethod(value); + set myPublicMethod(param: publicClass); + private set myPrivateMethod(value); + } + export class publicClassWithPrivateModuleGetAccessorTypes { + static get myPublicStaticMethod(): privateModule.publicClass; + get myPublicMethod(): privateModule.publicClass; + static get myPublicStaticMethod1(): publicClass; + get myPublicMethod1(): publicClass; + } + export class publicClassWithPrivateModuleSetAccessorTypes { + static set myPublicStaticMethod(param: privateModule.publicClass); + set myPublicMethod(param: privateModule.publicClass); + } + export {}; + } + export class publicClassWithWithPrivateGetAccessorTypes { + static get myPublicStaticMethod(): privateClass; + private static get myPrivateStaticMethod(); + get myPublicMethod(): privateClass; + private get myPrivateMethod(); + static get myPublicStaticMethod1(): privateClass; + private static get myPrivateStaticMethod1(); + get myPublicMethod1(): privateClass; + private get myPrivateMethod1(); + } + export class publicClassWithWithPublicGetAccessorTypes { + static get myPublicStaticMethod(): publicClass; + private static get myPrivateStaticMethod(); + get myPublicMethod(): publicClass; + private get myPrivateMethod(); + static get myPublicStaticMethod1(): publicClass; + private static get myPrivateStaticMethod1(); + get myPublicMethod1(): publicClass; + private get myPrivateMethod1(); + } + export class publicClassWithWithPrivateSetAccessorTypes { + static set myPublicStaticMethod(param: privateClass); + private static set myPrivateStaticMethod(value); + set myPublicMethod(param: privateClass); + private set myPrivateMethod(value); + } + export class publicClassWithWithPublicSetAccessorTypes { + static set myPublicStaticMethod(param: publicClass); + private static set myPrivateStaticMethod(value); + set myPublicMethod(param: publicClass); + private set myPrivateMethod(value); + } + export class publicClassWithPrivateModuleGetAccessorTypes { + static get myPublicStaticMethod(): privateModule.publicClass; + get myPublicMethod(): privateModule.publicClass; + static get myPublicStaticMethod1(): privateModule.publicClass; + get myPublicMethod1(): privateModule.publicClass; + } + export class publicClassWithPrivateModuleSetAccessorTypes { + static set myPublicStaticMethod(param: privateModule.publicClass); + set myPublicMethod(param: privateModule.publicClass); + } + export {}; +} diff --git a/tests/baselines/reference/privacyAccessorDeclFile.symbols b/tests/baselines/reference/privacyAccessorDeclFile(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/privacyAccessorDeclFile.symbols rename to tests/baselines/reference/privacyAccessorDeclFile(target=es2015).symbols diff --git a/tests/baselines/reference/privacyAccessorDeclFile.types b/tests/baselines/reference/privacyAccessorDeclFile(target=es2015).types similarity index 100% rename from tests/baselines/reference/privacyAccessorDeclFile.types rename to tests/baselines/reference/privacyAccessorDeclFile(target=es2015).types diff --git a/tests/baselines/reference/privacyAccessorDeclFile.js b/tests/baselines/reference/privacyAccessorDeclFile(target=es5).js similarity index 100% rename from tests/baselines/reference/privacyAccessorDeclFile.js rename to tests/baselines/reference/privacyAccessorDeclFile(target=es5).js diff --git a/tests/baselines/reference/privacyAccessorDeclFile(target=es5).symbols b/tests/baselines/reference/privacyAccessorDeclFile(target=es5).symbols new file mode 100644 index 0000000000000..8265f5dd8da95 --- /dev/null +++ b/tests/baselines/reference/privacyAccessorDeclFile(target=es5).symbols @@ -0,0 +1,2218 @@ +//// [tests/cases/compiler/privacyAccessorDeclFile.ts] //// + +=== privacyAccessorDeclFile_externalModule.ts === +class privateClass { +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_externalModule.ts, 0, 0)) +} + +export class publicClass { +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 1, 1)) +} + +export class publicClassWithWithPrivateGetAccessorTypes { +>publicClassWithWithPrivateGetAccessorTypes : Symbol(publicClassWithWithPrivateGetAccessorTypes, Decl(privacyAccessorDeclFile_externalModule.ts, 4, 1)) + + static get myPublicStaticMethod(): privateClass { // Error +>myPublicStaticMethod : Symbol(publicClassWithWithPrivateGetAccessorTypes.myPublicStaticMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 6, 57)) +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_externalModule.ts, 0, 0)) + + return null; + } + private static get myPrivateStaticMethod(): privateClass { +>myPrivateStaticMethod : Symbol(publicClassWithWithPrivateGetAccessorTypes.myPrivateStaticMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 9, 5)) +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_externalModule.ts, 0, 0)) + + return null; + } + get myPublicMethod(): privateClass { // Error +>myPublicMethod : Symbol(publicClassWithWithPrivateGetAccessorTypes.myPublicMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 12, 5)) +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_externalModule.ts, 0, 0)) + + return null; + } + private get myPrivateMethod(): privateClass { +>myPrivateMethod : Symbol(publicClassWithWithPrivateGetAccessorTypes.myPrivateMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 15, 5)) +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_externalModule.ts, 0, 0)) + + return null; + } + static get myPublicStaticMethod1() { // Error +>myPublicStaticMethod1 : Symbol(publicClassWithWithPrivateGetAccessorTypes.myPublicStaticMethod1, Decl(privacyAccessorDeclFile_externalModule.ts, 18, 5)) + + return new privateClass(); +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_externalModule.ts, 0, 0)) + } + private static get myPrivateStaticMethod1() { +>myPrivateStaticMethod1 : Symbol(publicClassWithWithPrivateGetAccessorTypes.myPrivateStaticMethod1, Decl(privacyAccessorDeclFile_externalModule.ts, 21, 5)) + + return new privateClass(); +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_externalModule.ts, 0, 0)) + } + get myPublicMethod1() { // Error +>myPublicMethod1 : Symbol(publicClassWithWithPrivateGetAccessorTypes.myPublicMethod1, Decl(privacyAccessorDeclFile_externalModule.ts, 24, 5)) + + return new privateClass(); +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_externalModule.ts, 0, 0)) + } + private get myPrivateMethod1() { +>myPrivateMethod1 : Symbol(publicClassWithWithPrivateGetAccessorTypes.myPrivateMethod1, Decl(privacyAccessorDeclFile_externalModule.ts, 27, 5)) + + return new privateClass(); +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_externalModule.ts, 0, 0)) + } +} + +export class publicClassWithWithPublicGetAccessorTypes { +>publicClassWithWithPublicGetAccessorTypes : Symbol(publicClassWithWithPublicGetAccessorTypes, Decl(privacyAccessorDeclFile_externalModule.ts, 31, 1)) + + static get myPublicStaticMethod(): publicClass { +>myPublicStaticMethod : Symbol(publicClassWithWithPublicGetAccessorTypes.myPublicStaticMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 33, 56)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 1, 1)) + + return null; + } + private static get myPrivateStaticMethod(): publicClass { +>myPrivateStaticMethod : Symbol(publicClassWithWithPublicGetAccessorTypes.myPrivateStaticMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 36, 5)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 1, 1)) + + return null; + } + get myPublicMethod(): publicClass { +>myPublicMethod : Symbol(publicClassWithWithPublicGetAccessorTypes.myPublicMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 39, 5)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 1, 1)) + + return null; + } + private get myPrivateMethod(): publicClass { +>myPrivateMethod : Symbol(publicClassWithWithPublicGetAccessorTypes.myPrivateMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 42, 5)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 1, 1)) + + return null; + } + static get myPublicStaticMethod1() { +>myPublicStaticMethod1 : Symbol(publicClassWithWithPublicGetAccessorTypes.myPublicStaticMethod1, Decl(privacyAccessorDeclFile_externalModule.ts, 45, 5)) + + return new publicClass(); +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 1, 1)) + } + private static get myPrivateStaticMethod1() { +>myPrivateStaticMethod1 : Symbol(publicClassWithWithPublicGetAccessorTypes.myPrivateStaticMethod1, Decl(privacyAccessorDeclFile_externalModule.ts, 48, 5)) + + return new publicClass(); +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 1, 1)) + } + get myPublicMethod1() { +>myPublicMethod1 : Symbol(publicClassWithWithPublicGetAccessorTypes.myPublicMethod1, Decl(privacyAccessorDeclFile_externalModule.ts, 51, 5)) + + return new publicClass(); +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 1, 1)) + } + private get myPrivateMethod1() { +>myPrivateMethod1 : Symbol(publicClassWithWithPublicGetAccessorTypes.myPrivateMethod1, Decl(privacyAccessorDeclFile_externalModule.ts, 54, 5)) + + return new publicClass(); +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 1, 1)) + } +} + +class privateClassWithWithPrivateGetAccessorTypes { +>privateClassWithWithPrivateGetAccessorTypes : Symbol(privateClassWithWithPrivateGetAccessorTypes, Decl(privacyAccessorDeclFile_externalModule.ts, 58, 1)) + + static get myPublicStaticMethod(): privateClass { +>myPublicStaticMethod : Symbol(privateClassWithWithPrivateGetAccessorTypes.myPublicStaticMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 60, 51)) +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_externalModule.ts, 0, 0)) + + return null; + } + private static get myPrivateStaticMethod(): privateClass { +>myPrivateStaticMethod : Symbol(privateClassWithWithPrivateGetAccessorTypes.myPrivateStaticMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 63, 5)) +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_externalModule.ts, 0, 0)) + + return null; + } + get myPublicMethod(): privateClass { +>myPublicMethod : Symbol(privateClassWithWithPrivateGetAccessorTypes.myPublicMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 66, 5)) +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_externalModule.ts, 0, 0)) + + return null; + } + private get myPrivateMethod(): privateClass { +>myPrivateMethod : Symbol(privateClassWithWithPrivateGetAccessorTypes.myPrivateMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 69, 5)) +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_externalModule.ts, 0, 0)) + + return null; + } + static get myPublicStaticMethod1() { +>myPublicStaticMethod1 : Symbol(privateClassWithWithPrivateGetAccessorTypes.myPublicStaticMethod1, Decl(privacyAccessorDeclFile_externalModule.ts, 72, 5)) + + return new privateClass(); +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_externalModule.ts, 0, 0)) + } + private static get myPrivateStaticMethod1() { +>myPrivateStaticMethod1 : Symbol(privateClassWithWithPrivateGetAccessorTypes.myPrivateStaticMethod1, Decl(privacyAccessorDeclFile_externalModule.ts, 75, 5)) + + return new privateClass(); +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_externalModule.ts, 0, 0)) + } + get myPublicMethod1() { +>myPublicMethod1 : Symbol(privateClassWithWithPrivateGetAccessorTypes.myPublicMethod1, Decl(privacyAccessorDeclFile_externalModule.ts, 78, 5)) + + return new privateClass(); +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_externalModule.ts, 0, 0)) + } + private get myPrivateMethod1() { +>myPrivateMethod1 : Symbol(privateClassWithWithPrivateGetAccessorTypes.myPrivateMethod1, Decl(privacyAccessorDeclFile_externalModule.ts, 81, 5)) + + return new privateClass(); +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_externalModule.ts, 0, 0)) + } +} + +class privateClassWithWithPublicGetAccessorTypes { +>privateClassWithWithPublicGetAccessorTypes : Symbol(privateClassWithWithPublicGetAccessorTypes, Decl(privacyAccessorDeclFile_externalModule.ts, 85, 1)) + + static get myPublicStaticMethod(): publicClass { +>myPublicStaticMethod : Symbol(privateClassWithWithPublicGetAccessorTypes.myPublicStaticMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 87, 50)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 1, 1)) + + return null; + } + private static get myPrivateStaticMethod(): publicClass { +>myPrivateStaticMethod : Symbol(privateClassWithWithPublicGetAccessorTypes.myPrivateStaticMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 90, 5)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 1, 1)) + + return null; + } + get myPublicMethod(): publicClass { +>myPublicMethod : Symbol(privateClassWithWithPublicGetAccessorTypes.myPublicMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 93, 5)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 1, 1)) + + return null; + } + private get myPrivateMethod(): publicClass { +>myPrivateMethod : Symbol(privateClassWithWithPublicGetAccessorTypes.myPrivateMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 96, 5)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 1, 1)) + + return null; + } + static get myPublicStaticMethod1() { +>myPublicStaticMethod1 : Symbol(privateClassWithWithPublicGetAccessorTypes.myPublicStaticMethod1, Decl(privacyAccessorDeclFile_externalModule.ts, 99, 5)) + + return new publicClass(); +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 1, 1)) + } + private static get myPrivateStaticMethod1() { +>myPrivateStaticMethod1 : Symbol(privateClassWithWithPublicGetAccessorTypes.myPrivateStaticMethod1, Decl(privacyAccessorDeclFile_externalModule.ts, 102, 5)) + + return new publicClass(); +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 1, 1)) + } + get myPublicMethod1() { +>myPublicMethod1 : Symbol(privateClassWithWithPublicGetAccessorTypes.myPublicMethod1, Decl(privacyAccessorDeclFile_externalModule.ts, 105, 5)) + + return new publicClass(); +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 1, 1)) + } + private get myPrivateMethod1() { +>myPrivateMethod1 : Symbol(privateClassWithWithPublicGetAccessorTypes.myPrivateMethod1, Decl(privacyAccessorDeclFile_externalModule.ts, 108, 5)) + + return new publicClass(); +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 1, 1)) + } +} + +export class publicClassWithWithPrivateSetAccessorTypes { +>publicClassWithWithPrivateSetAccessorTypes : Symbol(publicClassWithWithPrivateSetAccessorTypes, Decl(privacyAccessorDeclFile_externalModule.ts, 112, 1)) + + static set myPublicStaticMethod(param: privateClass) { // Error +>myPublicStaticMethod : Symbol(publicClassWithWithPrivateSetAccessorTypes.myPublicStaticMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 114, 57)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_externalModule.ts, 115, 36)) +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_externalModule.ts, 0, 0)) + } + private static set myPrivateStaticMethod(param: privateClass) { +>myPrivateStaticMethod : Symbol(publicClassWithWithPrivateSetAccessorTypes.myPrivateStaticMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 116, 5)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_externalModule.ts, 117, 45)) +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_externalModule.ts, 0, 0)) + } + set myPublicMethod(param: privateClass) { // Error +>myPublicMethod : Symbol(publicClassWithWithPrivateSetAccessorTypes.myPublicMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 118, 5)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_externalModule.ts, 119, 23)) +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_externalModule.ts, 0, 0)) + } + private set myPrivateMethod(param: privateClass) { +>myPrivateMethod : Symbol(publicClassWithWithPrivateSetAccessorTypes.myPrivateMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 120, 5)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_externalModule.ts, 121, 32)) +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_externalModule.ts, 0, 0)) + } +} + +export class publicClassWithWithPublicSetAccessorTypes { +>publicClassWithWithPublicSetAccessorTypes : Symbol(publicClassWithWithPublicSetAccessorTypes, Decl(privacyAccessorDeclFile_externalModule.ts, 123, 1)) + + static set myPublicStaticMethod(param: publicClass) { +>myPublicStaticMethod : Symbol(publicClassWithWithPublicSetAccessorTypes.myPublicStaticMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 125, 56)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_externalModule.ts, 126, 36)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 1, 1)) + } + private static set myPrivateStaticMethod(param: publicClass) { +>myPrivateStaticMethod : Symbol(publicClassWithWithPublicSetAccessorTypes.myPrivateStaticMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 127, 5)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_externalModule.ts, 128, 45)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 1, 1)) + } + set myPublicMethod(param: publicClass) { +>myPublicMethod : Symbol(publicClassWithWithPublicSetAccessorTypes.myPublicMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 129, 5)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_externalModule.ts, 130, 23)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 1, 1)) + } + private set myPrivateMethod(param: publicClass) { +>myPrivateMethod : Symbol(publicClassWithWithPublicSetAccessorTypes.myPrivateMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 131, 5)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_externalModule.ts, 132, 32)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 1, 1)) + } +} + +class privateClassWithWithPrivateSetAccessorTypes { +>privateClassWithWithPrivateSetAccessorTypes : Symbol(privateClassWithWithPrivateSetAccessorTypes, Decl(privacyAccessorDeclFile_externalModule.ts, 134, 1)) + + static set myPublicStaticMethod(param: privateClass) { +>myPublicStaticMethod : Symbol(privateClassWithWithPrivateSetAccessorTypes.myPublicStaticMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 136, 51)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_externalModule.ts, 137, 36)) +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_externalModule.ts, 0, 0)) + } + private static set myPrivateStaticMethod(param: privateClass) { +>myPrivateStaticMethod : Symbol(privateClassWithWithPrivateSetAccessorTypes.myPrivateStaticMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 138, 5)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_externalModule.ts, 139, 45)) +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_externalModule.ts, 0, 0)) + } + set myPublicMethod(param: privateClass) { +>myPublicMethod : Symbol(privateClassWithWithPrivateSetAccessorTypes.myPublicMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 140, 5)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_externalModule.ts, 141, 23)) +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_externalModule.ts, 0, 0)) + } + private set myPrivateMethod(param: privateClass) { +>myPrivateMethod : Symbol(privateClassWithWithPrivateSetAccessorTypes.myPrivateMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 142, 5)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_externalModule.ts, 143, 32)) +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_externalModule.ts, 0, 0)) + } +} + +class privateClassWithWithPublicSetAccessorTypes { +>privateClassWithWithPublicSetAccessorTypes : Symbol(privateClassWithWithPublicSetAccessorTypes, Decl(privacyAccessorDeclFile_externalModule.ts, 145, 1)) + + static set myPublicStaticMethod(param: publicClass) { +>myPublicStaticMethod : Symbol(privateClassWithWithPublicSetAccessorTypes.myPublicStaticMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 147, 50)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_externalModule.ts, 148, 36)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 1, 1)) + } + private static set myPrivateStaticMethod(param: publicClass) { +>myPrivateStaticMethod : Symbol(privateClassWithWithPublicSetAccessorTypes.myPrivateStaticMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 149, 5)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_externalModule.ts, 150, 45)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 1, 1)) + } + set myPublicMethod(param: publicClass) { +>myPublicMethod : Symbol(privateClassWithWithPublicSetAccessorTypes.myPublicMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 151, 5)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_externalModule.ts, 152, 23)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 1, 1)) + } + private set myPrivateMethod(param: publicClass) { +>myPrivateMethod : Symbol(privateClassWithWithPublicSetAccessorTypes.myPrivateMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 153, 5)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_externalModule.ts, 154, 32)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 1, 1)) + } +} + +export class publicClassWithPrivateModuleGetAccessorTypes { +>publicClassWithPrivateModuleGetAccessorTypes : Symbol(publicClassWithPrivateModuleGetAccessorTypes, Decl(privacyAccessorDeclFile_externalModule.ts, 156, 1)) + + static get myPublicStaticMethod(): privateModule.publicClass { // Error +>myPublicStaticMethod : Symbol(publicClassWithPrivateModuleGetAccessorTypes.myPublicStaticMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 158, 59)) +>privateModule : Symbol(privateModule, Decl(privacyAccessorDeclFile_externalModule.ts, 403, 1)) +>publicClass : Symbol(privateModule.publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 407, 5)) + + return null; + } + get myPublicMethod(): privateModule.publicClass { // Error +>myPublicMethod : Symbol(publicClassWithPrivateModuleGetAccessorTypes.myPublicMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 161, 5)) +>privateModule : Symbol(privateModule, Decl(privacyAccessorDeclFile_externalModule.ts, 403, 1)) +>publicClass : Symbol(privateModule.publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 407, 5)) + + return null; + } + static get myPublicStaticMethod1() { // Error +>myPublicStaticMethod1 : Symbol(publicClassWithPrivateModuleGetAccessorTypes.myPublicStaticMethod1, Decl(privacyAccessorDeclFile_externalModule.ts, 164, 5)) + + return new privateModule.publicClass(); +>privateModule.publicClass : Symbol(privateModule.publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 407, 5)) +>privateModule : Symbol(privateModule, Decl(privacyAccessorDeclFile_externalModule.ts, 403, 1)) +>publicClass : Symbol(privateModule.publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 407, 5)) + } + get myPublicMethod1() { // Error +>myPublicMethod1 : Symbol(publicClassWithPrivateModuleGetAccessorTypes.myPublicMethod1, Decl(privacyAccessorDeclFile_externalModule.ts, 167, 5)) + + return new privateModule.publicClass(); +>privateModule.publicClass : Symbol(privateModule.publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 407, 5)) +>privateModule : Symbol(privateModule, Decl(privacyAccessorDeclFile_externalModule.ts, 403, 1)) +>publicClass : Symbol(privateModule.publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 407, 5)) + } +} + +export class publicClassWithPrivateModuleSetAccessorTypes { +>publicClassWithPrivateModuleSetAccessorTypes : Symbol(publicClassWithPrivateModuleSetAccessorTypes, Decl(privacyAccessorDeclFile_externalModule.ts, 171, 1)) + + static set myPublicStaticMethod(param: privateModule.publicClass) { // Error +>myPublicStaticMethod : Symbol(publicClassWithPrivateModuleSetAccessorTypes.myPublicStaticMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 173, 59)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_externalModule.ts, 174, 36)) +>privateModule : Symbol(privateModule, Decl(privacyAccessorDeclFile_externalModule.ts, 403, 1)) +>publicClass : Symbol(privateModule.publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 407, 5)) + } + set myPublicMethod(param: privateModule.publicClass) { // Error +>myPublicMethod : Symbol(publicClassWithPrivateModuleSetAccessorTypes.myPublicMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 175, 5)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_externalModule.ts, 176, 23)) +>privateModule : Symbol(privateModule, Decl(privacyAccessorDeclFile_externalModule.ts, 403, 1)) +>publicClass : Symbol(privateModule.publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 407, 5)) + } +} + +class privateClassWithPrivateModuleGetAccessorTypes { +>privateClassWithPrivateModuleGetAccessorTypes : Symbol(privateClassWithPrivateModuleGetAccessorTypes, Decl(privacyAccessorDeclFile_externalModule.ts, 178, 1)) + + static get myPublicStaticMethod(): privateModule.publicClass { +>myPublicStaticMethod : Symbol(privateClassWithPrivateModuleGetAccessorTypes.myPublicStaticMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 180, 53)) +>privateModule : Symbol(privateModule, Decl(privacyAccessorDeclFile_externalModule.ts, 403, 1)) +>publicClass : Symbol(privateModule.publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 407, 5)) + + return null; + } + get myPublicMethod(): privateModule.publicClass { +>myPublicMethod : Symbol(privateClassWithPrivateModuleGetAccessorTypes.myPublicMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 183, 5)) +>privateModule : Symbol(privateModule, Decl(privacyAccessorDeclFile_externalModule.ts, 403, 1)) +>publicClass : Symbol(privateModule.publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 407, 5)) + + return null; + } + static get myPublicStaticMethod1() { +>myPublicStaticMethod1 : Symbol(privateClassWithPrivateModuleGetAccessorTypes.myPublicStaticMethod1, Decl(privacyAccessorDeclFile_externalModule.ts, 186, 5)) + + return new privateModule.publicClass(); +>privateModule.publicClass : Symbol(privateModule.publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 407, 5)) +>privateModule : Symbol(privateModule, Decl(privacyAccessorDeclFile_externalModule.ts, 403, 1)) +>publicClass : Symbol(privateModule.publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 407, 5)) + } + get myPublicMethod1() { +>myPublicMethod1 : Symbol(privateClassWithPrivateModuleGetAccessorTypes.myPublicMethod1, Decl(privacyAccessorDeclFile_externalModule.ts, 189, 5)) + + return new privateModule.publicClass(); +>privateModule.publicClass : Symbol(privateModule.publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 407, 5)) +>privateModule : Symbol(privateModule, Decl(privacyAccessorDeclFile_externalModule.ts, 403, 1)) +>publicClass : Symbol(privateModule.publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 407, 5)) + } +} + +class privateClassWithPrivateModuleSetAccessorTypes { +>privateClassWithPrivateModuleSetAccessorTypes : Symbol(privateClassWithPrivateModuleSetAccessorTypes, Decl(privacyAccessorDeclFile_externalModule.ts, 193, 1)) + + static set myPublicStaticMethod(param: privateModule.publicClass) { +>myPublicStaticMethod : Symbol(privateClassWithPrivateModuleSetAccessorTypes.myPublicStaticMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 195, 53)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_externalModule.ts, 196, 36)) +>privateModule : Symbol(privateModule, Decl(privacyAccessorDeclFile_externalModule.ts, 403, 1)) +>publicClass : Symbol(privateModule.publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 407, 5)) + } + set myPublicMethod(param: privateModule.publicClass) { +>myPublicMethod : Symbol(privateClassWithPrivateModuleSetAccessorTypes.myPublicMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 197, 5)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_externalModule.ts, 198, 23)) +>privateModule : Symbol(privateModule, Decl(privacyAccessorDeclFile_externalModule.ts, 403, 1)) +>publicClass : Symbol(privateModule.publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 407, 5)) + } +} + +export namespace publicModule { +>publicModule : Symbol(publicModule, Decl(privacyAccessorDeclFile_externalModule.ts, 200, 1)) + + class privateClass { +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_externalModule.ts, 202, 31)) + } + + export class publicClass { +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 204, 5)) + } + export class publicClassWithWithPrivateGetAccessorTypes { +>publicClassWithWithPrivateGetAccessorTypes : Symbol(publicClassWithWithPrivateGetAccessorTypes, Decl(privacyAccessorDeclFile_externalModule.ts, 207, 5)) + + static get myPublicStaticMethod(): privateClass { // Error +>myPublicStaticMethod : Symbol(publicClassWithWithPrivateGetAccessorTypes.myPublicStaticMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 208, 61)) +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_externalModule.ts, 202, 31)) + + return null; + } + private static get myPrivateStaticMethod(): privateClass { +>myPrivateStaticMethod : Symbol(publicClassWithWithPrivateGetAccessorTypes.myPrivateStaticMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 211, 9)) +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_externalModule.ts, 202, 31)) + + return null; + } + get myPublicMethod(): privateClass { // Error +>myPublicMethod : Symbol(publicClassWithWithPrivateGetAccessorTypes.myPublicMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 214, 9)) +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_externalModule.ts, 202, 31)) + + return null; + } + private get myPrivateMethod(): privateClass { +>myPrivateMethod : Symbol(publicClassWithWithPrivateGetAccessorTypes.myPrivateMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 217, 9)) +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_externalModule.ts, 202, 31)) + + return null; + } + static get myPublicStaticMethod1() { // Error +>myPublicStaticMethod1 : Symbol(publicClassWithWithPrivateGetAccessorTypes.myPublicStaticMethod1, Decl(privacyAccessorDeclFile_externalModule.ts, 220, 9)) + + return new privateClass(); +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_externalModule.ts, 202, 31)) + } + private static get myPrivateStaticMethod1() { +>myPrivateStaticMethod1 : Symbol(publicClassWithWithPrivateGetAccessorTypes.myPrivateStaticMethod1, Decl(privacyAccessorDeclFile_externalModule.ts, 223, 9)) + + return new privateClass(); +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_externalModule.ts, 202, 31)) + } + get myPublicMethod1() { // Error +>myPublicMethod1 : Symbol(publicClassWithWithPrivateGetAccessorTypes.myPublicMethod1, Decl(privacyAccessorDeclFile_externalModule.ts, 226, 9)) + + return new privateClass(); +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_externalModule.ts, 202, 31)) + } + private get myPrivateMethod1() { +>myPrivateMethod1 : Symbol(publicClassWithWithPrivateGetAccessorTypes.myPrivateMethod1, Decl(privacyAccessorDeclFile_externalModule.ts, 229, 9)) + + return new privateClass(); +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_externalModule.ts, 202, 31)) + } + } + + export class publicClassWithWithPublicGetAccessorTypes { +>publicClassWithWithPublicGetAccessorTypes : Symbol(publicClassWithWithPublicGetAccessorTypes, Decl(privacyAccessorDeclFile_externalModule.ts, 233, 5)) + + static get myPublicStaticMethod(): publicClass { +>myPublicStaticMethod : Symbol(publicClassWithWithPublicGetAccessorTypes.myPublicStaticMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 235, 60)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 204, 5)) + + return null; + } + private static get myPrivateStaticMethod(): publicClass { +>myPrivateStaticMethod : Symbol(publicClassWithWithPublicGetAccessorTypes.myPrivateStaticMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 238, 9)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 204, 5)) + + return null; + } + get myPublicMethod(): publicClass { +>myPublicMethod : Symbol(publicClassWithWithPublicGetAccessorTypes.myPublicMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 241, 9)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 204, 5)) + + return null; + } + private get myPrivateMethod(): publicClass { +>myPrivateMethod : Symbol(publicClassWithWithPublicGetAccessorTypes.myPrivateMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 244, 9)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 204, 5)) + + return null; + } + static get myPublicStaticMethod1() { +>myPublicStaticMethod1 : Symbol(publicClassWithWithPublicGetAccessorTypes.myPublicStaticMethod1, Decl(privacyAccessorDeclFile_externalModule.ts, 247, 9)) + + return new publicClass(); +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 204, 5)) + } + private static get myPrivateStaticMethod1() { +>myPrivateStaticMethod1 : Symbol(publicClassWithWithPublicGetAccessorTypes.myPrivateStaticMethod1, Decl(privacyAccessorDeclFile_externalModule.ts, 250, 9)) + + return new publicClass(); +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 204, 5)) + } + get myPublicMethod1() { +>myPublicMethod1 : Symbol(publicClassWithWithPublicGetAccessorTypes.myPublicMethod1, Decl(privacyAccessorDeclFile_externalModule.ts, 253, 9)) + + return new publicClass(); +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 204, 5)) + } + private get myPrivateMethod1() { +>myPrivateMethod1 : Symbol(publicClassWithWithPublicGetAccessorTypes.myPrivateMethod1, Decl(privacyAccessorDeclFile_externalModule.ts, 256, 9)) + + return new publicClass(); +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 204, 5)) + } + } + + class privateClassWithWithPrivateGetAccessorTypes { +>privateClassWithWithPrivateGetAccessorTypes : Symbol(privateClassWithWithPrivateGetAccessorTypes, Decl(privacyAccessorDeclFile_externalModule.ts, 260, 5)) + + static get myPublicStaticMethod(): privateClass { +>myPublicStaticMethod : Symbol(privateClassWithWithPrivateGetAccessorTypes.myPublicStaticMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 262, 55)) +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_externalModule.ts, 202, 31)) + + return null; + } + private static get myPrivateStaticMethod(): privateClass { +>myPrivateStaticMethod : Symbol(privateClassWithWithPrivateGetAccessorTypes.myPrivateStaticMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 265, 9)) +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_externalModule.ts, 202, 31)) + + return null; + } + get myPublicMethod(): privateClass { +>myPublicMethod : Symbol(privateClassWithWithPrivateGetAccessorTypes.myPublicMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 268, 9)) +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_externalModule.ts, 202, 31)) + + return null; + } + private get myPrivateMethod(): privateClass { +>myPrivateMethod : Symbol(privateClassWithWithPrivateGetAccessorTypes.myPrivateMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 271, 9)) +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_externalModule.ts, 202, 31)) + + return null; + } + static get myPublicStaticMethod1() { +>myPublicStaticMethod1 : Symbol(privateClassWithWithPrivateGetAccessorTypes.myPublicStaticMethod1, Decl(privacyAccessorDeclFile_externalModule.ts, 274, 9)) + + return new privateClass(); +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_externalModule.ts, 202, 31)) + } + private static get myPrivateStaticMethod1() { +>myPrivateStaticMethod1 : Symbol(privateClassWithWithPrivateGetAccessorTypes.myPrivateStaticMethod1, Decl(privacyAccessorDeclFile_externalModule.ts, 277, 9)) + + return new privateClass(); +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_externalModule.ts, 202, 31)) + } + get myPublicMethod1() { +>myPublicMethod1 : Symbol(privateClassWithWithPrivateGetAccessorTypes.myPublicMethod1, Decl(privacyAccessorDeclFile_externalModule.ts, 280, 9)) + + return new privateClass(); +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_externalModule.ts, 202, 31)) + } + private get myPrivateMethod1() { +>myPrivateMethod1 : Symbol(privateClassWithWithPrivateGetAccessorTypes.myPrivateMethod1, Decl(privacyAccessorDeclFile_externalModule.ts, 283, 9)) + + return new privateClass(); +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_externalModule.ts, 202, 31)) + } + } + + class privateClassWithWithPublicGetAccessorTypes { +>privateClassWithWithPublicGetAccessorTypes : Symbol(privateClassWithWithPublicGetAccessorTypes, Decl(privacyAccessorDeclFile_externalModule.ts, 287, 5)) + + static get myPublicStaticMethod(): publicClass { +>myPublicStaticMethod : Symbol(privateClassWithWithPublicGetAccessorTypes.myPublicStaticMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 289, 54)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 204, 5)) + + return null; + } + private static get myPrivateStaticMethod(): publicClass { +>myPrivateStaticMethod : Symbol(privateClassWithWithPublicGetAccessorTypes.myPrivateStaticMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 292, 9)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 204, 5)) + + return null; + } + get myPublicMethod(): publicClass { +>myPublicMethod : Symbol(privateClassWithWithPublicGetAccessorTypes.myPublicMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 295, 9)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 204, 5)) + + return null; + } + private get myPrivateMethod(): publicClass { +>myPrivateMethod : Symbol(privateClassWithWithPublicGetAccessorTypes.myPrivateMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 298, 9)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 204, 5)) + + return null; + } + static get myPublicStaticMethod1() { +>myPublicStaticMethod1 : Symbol(privateClassWithWithPublicGetAccessorTypes.myPublicStaticMethod1, Decl(privacyAccessorDeclFile_externalModule.ts, 301, 9)) + + return new publicClass(); +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 204, 5)) + } + private static get myPrivateStaticMethod1() { +>myPrivateStaticMethod1 : Symbol(privateClassWithWithPublicGetAccessorTypes.myPrivateStaticMethod1, Decl(privacyAccessorDeclFile_externalModule.ts, 304, 9)) + + return new publicClass(); +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 204, 5)) + } + get myPublicMethod1() { +>myPublicMethod1 : Symbol(privateClassWithWithPublicGetAccessorTypes.myPublicMethod1, Decl(privacyAccessorDeclFile_externalModule.ts, 307, 9)) + + return new publicClass(); +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 204, 5)) + } + private get myPrivateMethod1() { +>myPrivateMethod1 : Symbol(privateClassWithWithPublicGetAccessorTypes.myPrivateMethod1, Decl(privacyAccessorDeclFile_externalModule.ts, 310, 9)) + + return new publicClass(); +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 204, 5)) + } + } + + export class publicClassWithWithPrivateSetAccessorTypes { +>publicClassWithWithPrivateSetAccessorTypes : Symbol(publicClassWithWithPrivateSetAccessorTypes, Decl(privacyAccessorDeclFile_externalModule.ts, 314, 5)) + + static set myPublicStaticMethod(param: privateClass) { // Error +>myPublicStaticMethod : Symbol(publicClassWithWithPrivateSetAccessorTypes.myPublicStaticMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 316, 61)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_externalModule.ts, 317, 40)) +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_externalModule.ts, 202, 31)) + } + private static set myPrivateStaticMethod(param: privateClass) { +>myPrivateStaticMethod : Symbol(publicClassWithWithPrivateSetAccessorTypes.myPrivateStaticMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 318, 9)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_externalModule.ts, 319, 49)) +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_externalModule.ts, 202, 31)) + } + set myPublicMethod(param: privateClass) { // Error +>myPublicMethod : Symbol(publicClassWithWithPrivateSetAccessorTypes.myPublicMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 320, 9)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_externalModule.ts, 321, 27)) +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_externalModule.ts, 202, 31)) + } + private set myPrivateMethod(param: privateClass) { +>myPrivateMethod : Symbol(publicClassWithWithPrivateSetAccessorTypes.myPrivateMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 322, 9)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_externalModule.ts, 323, 36)) +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_externalModule.ts, 202, 31)) + } + } + + export class publicClassWithWithPublicSetAccessorTypes { +>publicClassWithWithPublicSetAccessorTypes : Symbol(publicClassWithWithPublicSetAccessorTypes, Decl(privacyAccessorDeclFile_externalModule.ts, 325, 5)) + + static set myPublicStaticMethod(param: publicClass) { +>myPublicStaticMethod : Symbol(publicClassWithWithPublicSetAccessorTypes.myPublicStaticMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 327, 60)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_externalModule.ts, 328, 40)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 204, 5)) + } + private static set myPrivateStaticMethod(param: publicClass) { +>myPrivateStaticMethod : Symbol(publicClassWithWithPublicSetAccessorTypes.myPrivateStaticMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 329, 9)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_externalModule.ts, 330, 49)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 204, 5)) + } + set myPublicMethod(param: publicClass) { +>myPublicMethod : Symbol(publicClassWithWithPublicSetAccessorTypes.myPublicMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 331, 9)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_externalModule.ts, 332, 27)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 204, 5)) + } + private set myPrivateMethod(param: publicClass) { +>myPrivateMethod : Symbol(publicClassWithWithPublicSetAccessorTypes.myPrivateMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 333, 9)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_externalModule.ts, 334, 36)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 204, 5)) + } + } + + class privateClassWithWithPrivateSetAccessorTypes { +>privateClassWithWithPrivateSetAccessorTypes : Symbol(privateClassWithWithPrivateSetAccessorTypes, Decl(privacyAccessorDeclFile_externalModule.ts, 336, 5)) + + static set myPublicStaticMethod(param: privateClass) { +>myPublicStaticMethod : Symbol(privateClassWithWithPrivateSetAccessorTypes.myPublicStaticMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 338, 55)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_externalModule.ts, 339, 40)) +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_externalModule.ts, 202, 31)) + } + private static set myPrivateStaticMethod(param: privateClass) { +>myPrivateStaticMethod : Symbol(privateClassWithWithPrivateSetAccessorTypes.myPrivateStaticMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 340, 9)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_externalModule.ts, 341, 49)) +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_externalModule.ts, 202, 31)) + } + set myPublicMethod(param: privateClass) { +>myPublicMethod : Symbol(privateClassWithWithPrivateSetAccessorTypes.myPublicMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 342, 9)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_externalModule.ts, 343, 27)) +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_externalModule.ts, 202, 31)) + } + private set myPrivateMethod(param: privateClass) { +>myPrivateMethod : Symbol(privateClassWithWithPrivateSetAccessorTypes.myPrivateMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 344, 9)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_externalModule.ts, 345, 36)) +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_externalModule.ts, 202, 31)) + } + } + + class privateClassWithWithPublicSetAccessorTypes { +>privateClassWithWithPublicSetAccessorTypes : Symbol(privateClassWithWithPublicSetAccessorTypes, Decl(privacyAccessorDeclFile_externalModule.ts, 347, 5)) + + static set myPublicStaticMethod(param: publicClass) { +>myPublicStaticMethod : Symbol(privateClassWithWithPublicSetAccessorTypes.myPublicStaticMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 349, 54)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_externalModule.ts, 350, 40)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 204, 5)) + } + private static set myPrivateStaticMethod(param: publicClass) { +>myPrivateStaticMethod : Symbol(privateClassWithWithPublicSetAccessorTypes.myPrivateStaticMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 351, 9)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_externalModule.ts, 352, 49)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 204, 5)) + } + set myPublicMethod(param: publicClass) { +>myPublicMethod : Symbol(privateClassWithWithPublicSetAccessorTypes.myPublicMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 353, 9)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_externalModule.ts, 354, 27)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 204, 5)) + } + private set myPrivateMethod(param: publicClass) { +>myPrivateMethod : Symbol(privateClassWithWithPublicSetAccessorTypes.myPrivateMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 355, 9)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_externalModule.ts, 356, 36)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 204, 5)) + } + } + + export class publicClassWithPrivateModuleGetAccessorTypes { +>publicClassWithPrivateModuleGetAccessorTypes : Symbol(publicClassWithPrivateModuleGetAccessorTypes, Decl(privacyAccessorDeclFile_externalModule.ts, 358, 5)) + + static get myPublicStaticMethod(): privateModule.publicClass { // Error +>myPublicStaticMethod : Symbol(publicClassWithPrivateModuleGetAccessorTypes.myPublicStaticMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 360, 63)) +>privateModule : Symbol(privateModule, Decl(privacyAccessorDeclFile_externalModule.ts, 403, 1)) +>publicClass : Symbol(privateModule.publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 407, 5)) + + return null; + } + get myPublicMethod(): privateModule.publicClass { // Error +>myPublicMethod : Symbol(publicClassWithPrivateModuleGetAccessorTypes.myPublicMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 363, 9)) +>privateModule : Symbol(privateModule, Decl(privacyAccessorDeclFile_externalModule.ts, 403, 1)) +>publicClass : Symbol(privateModule.publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 407, 5)) + + return null; + } + static get myPublicStaticMethod1() { // Error +>myPublicStaticMethod1 : Symbol(publicClassWithPrivateModuleGetAccessorTypes.myPublicStaticMethod1, Decl(privacyAccessorDeclFile_externalModule.ts, 366, 9)) + + return new privateModule.publicClass(); +>privateModule.publicClass : Symbol(privateModule.publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 407, 5)) +>privateModule : Symbol(privateModule, Decl(privacyAccessorDeclFile_externalModule.ts, 403, 1)) +>publicClass : Symbol(privateModule.publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 407, 5)) + } + get myPublicMethod1() { // Error +>myPublicMethod1 : Symbol(publicClassWithPrivateModuleGetAccessorTypes.myPublicMethod1, Decl(privacyAccessorDeclFile_externalModule.ts, 369, 9)) + + return new privateModule.publicClass(); +>privateModule.publicClass : Symbol(privateModule.publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 407, 5)) +>privateModule : Symbol(privateModule, Decl(privacyAccessorDeclFile_externalModule.ts, 403, 1)) +>publicClass : Symbol(privateModule.publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 407, 5)) + } + } + + export class publicClassWithPrivateModuleSetAccessorTypes { +>publicClassWithPrivateModuleSetAccessorTypes : Symbol(publicClassWithPrivateModuleSetAccessorTypes, Decl(privacyAccessorDeclFile_externalModule.ts, 373, 5)) + + static set myPublicStaticMethod(param: privateModule.publicClass) { // Error +>myPublicStaticMethod : Symbol(publicClassWithPrivateModuleSetAccessorTypes.myPublicStaticMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 375, 63)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_externalModule.ts, 376, 40)) +>privateModule : Symbol(privateModule, Decl(privacyAccessorDeclFile_externalModule.ts, 403, 1)) +>publicClass : Symbol(privateModule.publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 407, 5)) + } + set myPublicMethod(param: privateModule.publicClass) { // Error +>myPublicMethod : Symbol(publicClassWithPrivateModuleSetAccessorTypes.myPublicMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 377, 9)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_externalModule.ts, 378, 27)) +>privateModule : Symbol(privateModule, Decl(privacyAccessorDeclFile_externalModule.ts, 403, 1)) +>publicClass : Symbol(privateModule.publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 407, 5)) + } + } + + class privateClassWithPrivateModuleGetAccessorTypes { +>privateClassWithPrivateModuleGetAccessorTypes : Symbol(privateClassWithPrivateModuleGetAccessorTypes, Decl(privacyAccessorDeclFile_externalModule.ts, 380, 5)) + + static get myPublicStaticMethod(): privateModule.publicClass { +>myPublicStaticMethod : Symbol(privateClassWithPrivateModuleGetAccessorTypes.myPublicStaticMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 382, 57)) +>privateModule : Symbol(privateModule, Decl(privacyAccessorDeclFile_externalModule.ts, 403, 1)) +>publicClass : Symbol(privateModule.publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 407, 5)) + + return null; + } + get myPublicMethod(): privateModule.publicClass { +>myPublicMethod : Symbol(privateClassWithPrivateModuleGetAccessorTypes.myPublicMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 385, 9)) +>privateModule : Symbol(privateModule, Decl(privacyAccessorDeclFile_externalModule.ts, 403, 1)) +>publicClass : Symbol(privateModule.publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 407, 5)) + + return null; + } + static get myPublicStaticMethod1() { +>myPublicStaticMethod1 : Symbol(privateClassWithPrivateModuleGetAccessorTypes.myPublicStaticMethod1, Decl(privacyAccessorDeclFile_externalModule.ts, 388, 9)) + + return new privateModule.publicClass(); +>privateModule.publicClass : Symbol(privateModule.publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 407, 5)) +>privateModule : Symbol(privateModule, Decl(privacyAccessorDeclFile_externalModule.ts, 403, 1)) +>publicClass : Symbol(privateModule.publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 407, 5)) + } + get myPublicMethod1() { +>myPublicMethod1 : Symbol(privateClassWithPrivateModuleGetAccessorTypes.myPublicMethod1, Decl(privacyAccessorDeclFile_externalModule.ts, 391, 9)) + + return new privateModule.publicClass(); +>privateModule.publicClass : Symbol(privateModule.publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 407, 5)) +>privateModule : Symbol(privateModule, Decl(privacyAccessorDeclFile_externalModule.ts, 403, 1)) +>publicClass : Symbol(privateModule.publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 407, 5)) + } + } + + class privateClassWithPrivateModuleSetAccessorTypes { +>privateClassWithPrivateModuleSetAccessorTypes : Symbol(privateClassWithPrivateModuleSetAccessorTypes, Decl(privacyAccessorDeclFile_externalModule.ts, 395, 5)) + + static set myPublicStaticMethod(param: privateModule.publicClass) { +>myPublicStaticMethod : Symbol(privateClassWithPrivateModuleSetAccessorTypes.myPublicStaticMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 397, 57)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_externalModule.ts, 398, 40)) +>privateModule : Symbol(privateModule, Decl(privacyAccessorDeclFile_externalModule.ts, 403, 1)) +>publicClass : Symbol(privateModule.publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 407, 5)) + } + set myPublicMethod(param: privateModule.publicClass) { +>myPublicMethod : Symbol(privateClassWithPrivateModuleSetAccessorTypes.myPublicMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 399, 9)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_externalModule.ts, 400, 27)) +>privateModule : Symbol(privateModule, Decl(privacyAccessorDeclFile_externalModule.ts, 403, 1)) +>publicClass : Symbol(privateModule.publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 407, 5)) + } + } +} + +namespace privateModule { +>privateModule : Symbol(privateModule, Decl(privacyAccessorDeclFile_externalModule.ts, 403, 1)) + + class privateClass { +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_externalModule.ts, 405, 25)) + } + + export class publicClass { +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 407, 5)) + } + export class publicClassWithWithPrivateGetAccessorTypes { +>publicClassWithWithPrivateGetAccessorTypes : Symbol(publicClassWithWithPrivateGetAccessorTypes, Decl(privacyAccessorDeclFile_externalModule.ts, 410, 5)) + + static get myPublicStaticMethod(): privateClass { +>myPublicStaticMethod : Symbol(publicClassWithWithPrivateGetAccessorTypes.myPublicStaticMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 411, 61)) +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_externalModule.ts, 405, 25)) + + return null; + } + private static get myPrivateStaticMethod(): privateClass { +>myPrivateStaticMethod : Symbol(publicClassWithWithPrivateGetAccessorTypes.myPrivateStaticMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 414, 9)) +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_externalModule.ts, 405, 25)) + + return null; + } + get myPublicMethod(): privateClass { +>myPublicMethod : Symbol(publicClassWithWithPrivateGetAccessorTypes.myPublicMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 417, 9)) +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_externalModule.ts, 405, 25)) + + return null; + } + private get myPrivateMethod(): privateClass { +>myPrivateMethod : Symbol(publicClassWithWithPrivateGetAccessorTypes.myPrivateMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 420, 9)) +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_externalModule.ts, 405, 25)) + + return null; + } + static get myPublicStaticMethod1() { +>myPublicStaticMethod1 : Symbol(publicClassWithWithPrivateGetAccessorTypes.myPublicStaticMethod1, Decl(privacyAccessorDeclFile_externalModule.ts, 423, 9)) + + return new privateClass(); +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_externalModule.ts, 405, 25)) + } + private static get myPrivateStaticMethod1() { +>myPrivateStaticMethod1 : Symbol(publicClassWithWithPrivateGetAccessorTypes.myPrivateStaticMethod1, Decl(privacyAccessorDeclFile_externalModule.ts, 426, 9)) + + return new privateClass(); +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_externalModule.ts, 405, 25)) + } + get myPublicMethod1() { +>myPublicMethod1 : Symbol(publicClassWithWithPrivateGetAccessorTypes.myPublicMethod1, Decl(privacyAccessorDeclFile_externalModule.ts, 429, 9)) + + return new privateClass(); +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_externalModule.ts, 405, 25)) + } + private get myPrivateMethod1() { +>myPrivateMethod1 : Symbol(publicClassWithWithPrivateGetAccessorTypes.myPrivateMethod1, Decl(privacyAccessorDeclFile_externalModule.ts, 432, 9)) + + return new privateClass(); +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_externalModule.ts, 405, 25)) + } + } + + export class publicClassWithWithPublicGetAccessorTypes { +>publicClassWithWithPublicGetAccessorTypes : Symbol(publicClassWithWithPublicGetAccessorTypes, Decl(privacyAccessorDeclFile_externalModule.ts, 436, 5)) + + static get myPublicStaticMethod(): publicClass { +>myPublicStaticMethod : Symbol(publicClassWithWithPublicGetAccessorTypes.myPublicStaticMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 438, 60)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 407, 5)) + + return null; + } + private static get myPrivateStaticMethod(): publicClass { +>myPrivateStaticMethod : Symbol(publicClassWithWithPublicGetAccessorTypes.myPrivateStaticMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 441, 9)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 407, 5)) + + return null; + } + get myPublicMethod(): publicClass { +>myPublicMethod : Symbol(publicClassWithWithPublicGetAccessorTypes.myPublicMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 444, 9)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 407, 5)) + + return null; + } + private get myPrivateMethod(): publicClass { +>myPrivateMethod : Symbol(publicClassWithWithPublicGetAccessorTypes.myPrivateMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 447, 9)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 407, 5)) + + return null; + } + static get myPublicStaticMethod1() { +>myPublicStaticMethod1 : Symbol(publicClassWithWithPublicGetAccessorTypes.myPublicStaticMethod1, Decl(privacyAccessorDeclFile_externalModule.ts, 450, 9)) + + return new publicClass(); +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 407, 5)) + } + private static get myPrivateStaticMethod1() { +>myPrivateStaticMethod1 : Symbol(publicClassWithWithPublicGetAccessorTypes.myPrivateStaticMethod1, Decl(privacyAccessorDeclFile_externalModule.ts, 453, 9)) + + return new publicClass(); +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 407, 5)) + } + get myPublicMethod1() { +>myPublicMethod1 : Symbol(publicClassWithWithPublicGetAccessorTypes.myPublicMethod1, Decl(privacyAccessorDeclFile_externalModule.ts, 456, 9)) + + return new publicClass(); +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 407, 5)) + } + private get myPrivateMethod1() { +>myPrivateMethod1 : Symbol(publicClassWithWithPublicGetAccessorTypes.myPrivateMethod1, Decl(privacyAccessorDeclFile_externalModule.ts, 459, 9)) + + return new publicClass(); +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 407, 5)) + } + } + + class privateClassWithWithPrivateGetAccessorTypes { +>privateClassWithWithPrivateGetAccessorTypes : Symbol(privateClassWithWithPrivateGetAccessorTypes, Decl(privacyAccessorDeclFile_externalModule.ts, 463, 5)) + + static get myPublicStaticMethod(): privateClass { +>myPublicStaticMethod : Symbol(privateClassWithWithPrivateGetAccessorTypes.myPublicStaticMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 465, 55)) +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_externalModule.ts, 405, 25)) + + return null; + } + private static get myPrivateStaticMethod(): privateClass { +>myPrivateStaticMethod : Symbol(privateClassWithWithPrivateGetAccessorTypes.myPrivateStaticMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 468, 9)) +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_externalModule.ts, 405, 25)) + + return null; + } + get myPublicMethod(): privateClass { +>myPublicMethod : Symbol(privateClassWithWithPrivateGetAccessorTypes.myPublicMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 471, 9)) +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_externalModule.ts, 405, 25)) + + return null; + } + private get myPrivateMethod(): privateClass { +>myPrivateMethod : Symbol(privateClassWithWithPrivateGetAccessorTypes.myPrivateMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 474, 9)) +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_externalModule.ts, 405, 25)) + + return null; + } + static get myPublicStaticMethod1() { +>myPublicStaticMethod1 : Symbol(privateClassWithWithPrivateGetAccessorTypes.myPublicStaticMethod1, Decl(privacyAccessorDeclFile_externalModule.ts, 477, 9)) + + return new privateClass(); +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_externalModule.ts, 405, 25)) + } + private static get myPrivateStaticMethod1() { +>myPrivateStaticMethod1 : Symbol(privateClassWithWithPrivateGetAccessorTypes.myPrivateStaticMethod1, Decl(privacyAccessorDeclFile_externalModule.ts, 480, 9)) + + return new privateClass(); +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_externalModule.ts, 405, 25)) + } + get myPublicMethod1() { +>myPublicMethod1 : Symbol(privateClassWithWithPrivateGetAccessorTypes.myPublicMethod1, Decl(privacyAccessorDeclFile_externalModule.ts, 483, 9)) + + return new privateClass(); +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_externalModule.ts, 405, 25)) + } + private get myPrivateMethod1() { +>myPrivateMethod1 : Symbol(privateClassWithWithPrivateGetAccessorTypes.myPrivateMethod1, Decl(privacyAccessorDeclFile_externalModule.ts, 486, 9)) + + return new privateClass(); +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_externalModule.ts, 405, 25)) + } + } + + class privateClassWithWithPublicGetAccessorTypes { +>privateClassWithWithPublicGetAccessorTypes : Symbol(privateClassWithWithPublicGetAccessorTypes, Decl(privacyAccessorDeclFile_externalModule.ts, 490, 5)) + + static get myPublicStaticMethod(): publicClass { +>myPublicStaticMethod : Symbol(privateClassWithWithPublicGetAccessorTypes.myPublicStaticMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 492, 54)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 407, 5)) + + return null; + } + private static get myPrivateStaticMethod(): publicClass { +>myPrivateStaticMethod : Symbol(privateClassWithWithPublicGetAccessorTypes.myPrivateStaticMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 495, 9)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 407, 5)) + + return null; + } + get myPublicMethod(): publicClass { +>myPublicMethod : Symbol(privateClassWithWithPublicGetAccessorTypes.myPublicMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 498, 9)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 407, 5)) + + return null; + } + private get myPrivateMethod(): publicClass { +>myPrivateMethod : Symbol(privateClassWithWithPublicGetAccessorTypes.myPrivateMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 501, 9)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 407, 5)) + + return null; + } + static get myPublicStaticMethod1() { +>myPublicStaticMethod1 : Symbol(privateClassWithWithPublicGetAccessorTypes.myPublicStaticMethod1, Decl(privacyAccessorDeclFile_externalModule.ts, 504, 9)) + + return new publicClass(); +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 407, 5)) + } + private static get myPrivateStaticMethod1() { +>myPrivateStaticMethod1 : Symbol(privateClassWithWithPublicGetAccessorTypes.myPrivateStaticMethod1, Decl(privacyAccessorDeclFile_externalModule.ts, 507, 9)) + + return new publicClass(); +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 407, 5)) + } + get myPublicMethod1() { +>myPublicMethod1 : Symbol(privateClassWithWithPublicGetAccessorTypes.myPublicMethod1, Decl(privacyAccessorDeclFile_externalModule.ts, 510, 9)) + + return new publicClass(); +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 407, 5)) + } + private get myPrivateMethod1() { +>myPrivateMethod1 : Symbol(privateClassWithWithPublicGetAccessorTypes.myPrivateMethod1, Decl(privacyAccessorDeclFile_externalModule.ts, 513, 9)) + + return new publicClass(); +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 407, 5)) + } + } + + export class publicClassWithWithPrivateSetAccessorTypes { +>publicClassWithWithPrivateSetAccessorTypes : Symbol(publicClassWithWithPrivateSetAccessorTypes, Decl(privacyAccessorDeclFile_externalModule.ts, 517, 5)) + + static set myPublicStaticMethod(param: privateClass) { +>myPublicStaticMethod : Symbol(publicClassWithWithPrivateSetAccessorTypes.myPublicStaticMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 519, 61)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_externalModule.ts, 520, 40)) +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_externalModule.ts, 405, 25)) + } + private static set myPrivateStaticMethod(param: privateClass) { +>myPrivateStaticMethod : Symbol(publicClassWithWithPrivateSetAccessorTypes.myPrivateStaticMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 521, 9)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_externalModule.ts, 522, 49)) +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_externalModule.ts, 405, 25)) + } + set myPublicMethod(param: privateClass) { +>myPublicMethod : Symbol(publicClassWithWithPrivateSetAccessorTypes.myPublicMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 523, 9)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_externalModule.ts, 524, 27)) +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_externalModule.ts, 405, 25)) + } + private set myPrivateMethod(param: privateClass) { +>myPrivateMethod : Symbol(publicClassWithWithPrivateSetAccessorTypes.myPrivateMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 525, 9)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_externalModule.ts, 526, 36)) +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_externalModule.ts, 405, 25)) + } + } + + export class publicClassWithWithPublicSetAccessorTypes { +>publicClassWithWithPublicSetAccessorTypes : Symbol(publicClassWithWithPublicSetAccessorTypes, Decl(privacyAccessorDeclFile_externalModule.ts, 528, 5)) + + static set myPublicStaticMethod(param: publicClass) { +>myPublicStaticMethod : Symbol(publicClassWithWithPublicSetAccessorTypes.myPublicStaticMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 530, 60)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_externalModule.ts, 531, 40)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 407, 5)) + } + private static set myPrivateStaticMethod(param: publicClass) { +>myPrivateStaticMethod : Symbol(publicClassWithWithPublicSetAccessorTypes.myPrivateStaticMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 532, 9)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_externalModule.ts, 533, 49)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 407, 5)) + } + set myPublicMethod(param: publicClass) { +>myPublicMethod : Symbol(publicClassWithWithPublicSetAccessorTypes.myPublicMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 534, 9)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_externalModule.ts, 535, 27)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 407, 5)) + } + private set myPrivateMethod(param: publicClass) { +>myPrivateMethod : Symbol(publicClassWithWithPublicSetAccessorTypes.myPrivateMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 536, 9)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_externalModule.ts, 537, 36)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 407, 5)) + } + } + + class privateClassWithWithPrivateSetAccessorTypes { +>privateClassWithWithPrivateSetAccessorTypes : Symbol(privateClassWithWithPrivateSetAccessorTypes, Decl(privacyAccessorDeclFile_externalModule.ts, 539, 5)) + + static set myPublicStaticMethod(param: privateClass) { +>myPublicStaticMethod : Symbol(privateClassWithWithPrivateSetAccessorTypes.myPublicStaticMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 541, 55)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_externalModule.ts, 542, 40)) +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_externalModule.ts, 405, 25)) + } + private static set myPrivateStaticMethod(param: privateClass) { +>myPrivateStaticMethod : Symbol(privateClassWithWithPrivateSetAccessorTypes.myPrivateStaticMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 543, 9)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_externalModule.ts, 544, 49)) +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_externalModule.ts, 405, 25)) + } + set myPublicMethod(param: privateClass) { +>myPublicMethod : Symbol(privateClassWithWithPrivateSetAccessorTypes.myPublicMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 545, 9)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_externalModule.ts, 546, 27)) +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_externalModule.ts, 405, 25)) + } + private set myPrivateMethod(param: privateClass) { +>myPrivateMethod : Symbol(privateClassWithWithPrivateSetAccessorTypes.myPrivateMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 547, 9)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_externalModule.ts, 548, 36)) +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_externalModule.ts, 405, 25)) + } + } + + class privateClassWithWithPublicSetAccessorTypes { +>privateClassWithWithPublicSetAccessorTypes : Symbol(privateClassWithWithPublicSetAccessorTypes, Decl(privacyAccessorDeclFile_externalModule.ts, 550, 5)) + + static set myPublicStaticMethod(param: publicClass) { +>myPublicStaticMethod : Symbol(privateClassWithWithPublicSetAccessorTypes.myPublicStaticMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 552, 54)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_externalModule.ts, 553, 40)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 407, 5)) + } + private static set myPrivateStaticMethod(param: publicClass) { +>myPrivateStaticMethod : Symbol(privateClassWithWithPublicSetAccessorTypes.myPrivateStaticMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 554, 9)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_externalModule.ts, 555, 49)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 407, 5)) + } + set myPublicMethod(param: publicClass) { +>myPublicMethod : Symbol(privateClassWithWithPublicSetAccessorTypes.myPublicMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 556, 9)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_externalModule.ts, 557, 27)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 407, 5)) + } + private set myPrivateMethod(param: publicClass) { +>myPrivateMethod : Symbol(privateClassWithWithPublicSetAccessorTypes.myPrivateMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 558, 9)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_externalModule.ts, 559, 36)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 407, 5)) + } + } + + export class publicClassWithPrivateModuleGetAccessorTypes { +>publicClassWithPrivateModuleGetAccessorTypes : Symbol(publicClassWithPrivateModuleGetAccessorTypes, Decl(privacyAccessorDeclFile_externalModule.ts, 561, 5)) + + static get myPublicStaticMethod(): privateModule.publicClass { +>myPublicStaticMethod : Symbol(publicClassWithPrivateModuleGetAccessorTypes.myPublicStaticMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 563, 63)) +>privateModule : Symbol(privateModule, Decl(privacyAccessorDeclFile_externalModule.ts, 403, 1)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 407, 5)) + + return null; + } + get myPublicMethod(): privateModule.publicClass { +>myPublicMethod : Symbol(publicClassWithPrivateModuleGetAccessorTypes.myPublicMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 566, 9)) +>privateModule : Symbol(privateModule, Decl(privacyAccessorDeclFile_externalModule.ts, 403, 1)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 407, 5)) + + return null; + } + static get myPublicStaticMethod1() { +>myPublicStaticMethod1 : Symbol(publicClassWithPrivateModuleGetAccessorTypes.myPublicStaticMethod1, Decl(privacyAccessorDeclFile_externalModule.ts, 569, 9)) + + return new privateModule.publicClass(); +>privateModule.publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 407, 5)) +>privateModule : Symbol(privateModule, Decl(privacyAccessorDeclFile_externalModule.ts, 403, 1)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 407, 5)) + } + get myPublicMethod1() { +>myPublicMethod1 : Symbol(publicClassWithPrivateModuleGetAccessorTypes.myPublicMethod1, Decl(privacyAccessorDeclFile_externalModule.ts, 572, 9)) + + return new privateModule.publicClass(); +>privateModule.publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 407, 5)) +>privateModule : Symbol(privateModule, Decl(privacyAccessorDeclFile_externalModule.ts, 403, 1)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 407, 5)) + } + } + + export class publicClassWithPrivateModuleSetAccessorTypes { +>publicClassWithPrivateModuleSetAccessorTypes : Symbol(publicClassWithPrivateModuleSetAccessorTypes, Decl(privacyAccessorDeclFile_externalModule.ts, 576, 5)) + + static set myPublicStaticMethod(param: privateModule.publicClass) { +>myPublicStaticMethod : Symbol(publicClassWithPrivateModuleSetAccessorTypes.myPublicStaticMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 578, 63)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_externalModule.ts, 579, 40)) +>privateModule : Symbol(privateModule, Decl(privacyAccessorDeclFile_externalModule.ts, 403, 1)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 407, 5)) + } + set myPublicMethod(param: privateModule.publicClass) { +>myPublicMethod : Symbol(publicClassWithPrivateModuleSetAccessorTypes.myPublicMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 580, 9)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_externalModule.ts, 581, 27)) +>privateModule : Symbol(privateModule, Decl(privacyAccessorDeclFile_externalModule.ts, 403, 1)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 407, 5)) + } + } + + class privateClassWithPrivateModuleGetAccessorTypes { +>privateClassWithPrivateModuleGetAccessorTypes : Symbol(privateClassWithPrivateModuleGetAccessorTypes, Decl(privacyAccessorDeclFile_externalModule.ts, 583, 5)) + + static get myPublicStaticMethod(): privateModule.publicClass { +>myPublicStaticMethod : Symbol(privateClassWithPrivateModuleGetAccessorTypes.myPublicStaticMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 585, 57)) +>privateModule : Symbol(privateModule, Decl(privacyAccessorDeclFile_externalModule.ts, 403, 1)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 407, 5)) + + return null; + } + get myPublicMethod(): privateModule.publicClass { +>myPublicMethod : Symbol(privateClassWithPrivateModuleGetAccessorTypes.myPublicMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 588, 9)) +>privateModule : Symbol(privateModule, Decl(privacyAccessorDeclFile_externalModule.ts, 403, 1)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 407, 5)) + + return null; + } + static get myPublicStaticMethod1() { +>myPublicStaticMethod1 : Symbol(privateClassWithPrivateModuleGetAccessorTypes.myPublicStaticMethod1, Decl(privacyAccessorDeclFile_externalModule.ts, 591, 9)) + + return new privateModule.publicClass(); +>privateModule.publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 407, 5)) +>privateModule : Symbol(privateModule, Decl(privacyAccessorDeclFile_externalModule.ts, 403, 1)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 407, 5)) + } + get myPublicMethod1() { +>myPublicMethod1 : Symbol(privateClassWithPrivateModuleGetAccessorTypes.myPublicMethod1, Decl(privacyAccessorDeclFile_externalModule.ts, 594, 9)) + + return new privateModule.publicClass(); +>privateModule.publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 407, 5)) +>privateModule : Symbol(privateModule, Decl(privacyAccessorDeclFile_externalModule.ts, 403, 1)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 407, 5)) + } + } + + class privateClassWithPrivateModuleSetAccessorTypes { +>privateClassWithPrivateModuleSetAccessorTypes : Symbol(privateClassWithPrivateModuleSetAccessorTypes, Decl(privacyAccessorDeclFile_externalModule.ts, 598, 5)) + + static set myPublicStaticMethod(param: privateModule.publicClass) { +>myPublicStaticMethod : Symbol(privateClassWithPrivateModuleSetAccessorTypes.myPublicStaticMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 600, 57)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_externalModule.ts, 601, 40)) +>privateModule : Symbol(privateModule, Decl(privacyAccessorDeclFile_externalModule.ts, 403, 1)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 407, 5)) + } + set myPublicMethod(param: privateModule.publicClass) { +>myPublicMethod : Symbol(privateClassWithPrivateModuleSetAccessorTypes.myPublicMethod, Decl(privacyAccessorDeclFile_externalModule.ts, 602, 9)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_externalModule.ts, 603, 27)) +>privateModule : Symbol(privateModule, Decl(privacyAccessorDeclFile_externalModule.ts, 403, 1)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_externalModule.ts, 407, 5)) + } + } +} + +=== privacyAccessorDeclFile_GlobalFile.ts === +class publicClassInGlobal { +>publicClassInGlobal : Symbol(publicClassInGlobal, Decl(privacyAccessorDeclFile_GlobalFile.ts, 0, 0)) +} + +class publicClassInGlobalWithPublicGetAccessorTypes { +>publicClassInGlobalWithPublicGetAccessorTypes : Symbol(publicClassInGlobalWithPublicGetAccessorTypes, Decl(privacyAccessorDeclFile_GlobalFile.ts, 1, 1)) + + static get myPublicStaticMethod(): publicClassInGlobal { +>myPublicStaticMethod : Symbol(publicClassInGlobalWithPublicGetAccessorTypes.myPublicStaticMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 3, 53)) +>publicClassInGlobal : Symbol(publicClassInGlobal, Decl(privacyAccessorDeclFile_GlobalFile.ts, 0, 0)) + + return null; + } + private static get myPrivateStaticMethod(): publicClassInGlobal { +>myPrivateStaticMethod : Symbol(publicClassInGlobalWithPublicGetAccessorTypes.myPrivateStaticMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 6, 5)) +>publicClassInGlobal : Symbol(publicClassInGlobal, Decl(privacyAccessorDeclFile_GlobalFile.ts, 0, 0)) + + return null; + } + get myPublicMethod(): publicClassInGlobal { +>myPublicMethod : Symbol(publicClassInGlobalWithPublicGetAccessorTypes.myPublicMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 9, 5)) +>publicClassInGlobal : Symbol(publicClassInGlobal, Decl(privacyAccessorDeclFile_GlobalFile.ts, 0, 0)) + + return null; + } + private get myPrivateMethod(): publicClassInGlobal { +>myPrivateMethod : Symbol(publicClassInGlobalWithPublicGetAccessorTypes.myPrivateMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 12, 5)) +>publicClassInGlobal : Symbol(publicClassInGlobal, Decl(privacyAccessorDeclFile_GlobalFile.ts, 0, 0)) + + return null; + } + static get myPublicStaticMethod1() { +>myPublicStaticMethod1 : Symbol(publicClassInGlobalWithPublicGetAccessorTypes.myPublicStaticMethod1, Decl(privacyAccessorDeclFile_GlobalFile.ts, 15, 5)) + + return new publicClassInGlobal(); +>publicClassInGlobal : Symbol(publicClassInGlobal, Decl(privacyAccessorDeclFile_GlobalFile.ts, 0, 0)) + } + private static get myPrivateStaticMethod1() { +>myPrivateStaticMethod1 : Symbol(publicClassInGlobalWithPublicGetAccessorTypes.myPrivateStaticMethod1, Decl(privacyAccessorDeclFile_GlobalFile.ts, 18, 5)) + + return new publicClassInGlobal(); +>publicClassInGlobal : Symbol(publicClassInGlobal, Decl(privacyAccessorDeclFile_GlobalFile.ts, 0, 0)) + } + get myPublicMethod1() { +>myPublicMethod1 : Symbol(publicClassInGlobalWithPublicGetAccessorTypes.myPublicMethod1, Decl(privacyAccessorDeclFile_GlobalFile.ts, 21, 5)) + + return new publicClassInGlobal(); +>publicClassInGlobal : Symbol(publicClassInGlobal, Decl(privacyAccessorDeclFile_GlobalFile.ts, 0, 0)) + } + private get myPrivateMethod1() { +>myPrivateMethod1 : Symbol(publicClassInGlobalWithPublicGetAccessorTypes.myPrivateMethod1, Decl(privacyAccessorDeclFile_GlobalFile.ts, 24, 5)) + + return new publicClassInGlobal(); +>publicClassInGlobal : Symbol(publicClassInGlobal, Decl(privacyAccessorDeclFile_GlobalFile.ts, 0, 0)) + } +} + +class publicClassInGlobalWithWithPublicSetAccessorTypes { +>publicClassInGlobalWithWithPublicSetAccessorTypes : Symbol(publicClassInGlobalWithWithPublicSetAccessorTypes, Decl(privacyAccessorDeclFile_GlobalFile.ts, 28, 1)) + + static set myPublicStaticMethod(param: publicClassInGlobal) { +>myPublicStaticMethod : Symbol(publicClassInGlobalWithWithPublicSetAccessorTypes.myPublicStaticMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 30, 57)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_GlobalFile.ts, 31, 36)) +>publicClassInGlobal : Symbol(publicClassInGlobal, Decl(privacyAccessorDeclFile_GlobalFile.ts, 0, 0)) + } + private static set myPrivateStaticMethod(param: publicClassInGlobal) { +>myPrivateStaticMethod : Symbol(publicClassInGlobalWithWithPublicSetAccessorTypes.myPrivateStaticMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 32, 5)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_GlobalFile.ts, 33, 45)) +>publicClassInGlobal : Symbol(publicClassInGlobal, Decl(privacyAccessorDeclFile_GlobalFile.ts, 0, 0)) + } + set myPublicMethod(param: publicClassInGlobal) { +>myPublicMethod : Symbol(publicClassInGlobalWithWithPublicSetAccessorTypes.myPublicMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 34, 5)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_GlobalFile.ts, 35, 23)) +>publicClassInGlobal : Symbol(publicClassInGlobal, Decl(privacyAccessorDeclFile_GlobalFile.ts, 0, 0)) + } + private set myPrivateMethod(param: publicClassInGlobal) { +>myPrivateMethod : Symbol(publicClassInGlobalWithWithPublicSetAccessorTypes.myPrivateMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 36, 5)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_GlobalFile.ts, 37, 32)) +>publicClassInGlobal : Symbol(publicClassInGlobal, Decl(privacyAccessorDeclFile_GlobalFile.ts, 0, 0)) + } +} + +namespace publicModuleInGlobal { +>publicModuleInGlobal : Symbol(publicModuleInGlobal, Decl(privacyAccessorDeclFile_GlobalFile.ts, 39, 1)) + + class privateClass { +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 41, 32)) + } + + export class publicClass { +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 43, 5)) + } + + namespace privateModule { +>privateModule : Symbol(privateModule, Decl(privacyAccessorDeclFile_GlobalFile.ts, 46, 5)) + + class privateClass { +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 48, 29)) + } + + export class publicClass { +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 50, 9)) + } + export class publicClassWithWithPrivateGetAccessorTypes { +>publicClassWithWithPrivateGetAccessorTypes : Symbol(publicClassWithWithPrivateGetAccessorTypes, Decl(privacyAccessorDeclFile_GlobalFile.ts, 53, 9)) + + static get myPublicStaticMethod(): privateClass { +>myPublicStaticMethod : Symbol(publicClassWithWithPrivateGetAccessorTypes.myPublicStaticMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 54, 65)) +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 48, 29)) + + return null; + } + private static get myPrivateStaticMethod(): privateClass { +>myPrivateStaticMethod : Symbol(publicClassWithWithPrivateGetAccessorTypes.myPrivateStaticMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 57, 13)) +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 48, 29)) + + return null; + } + get myPublicMethod(): privateClass { +>myPublicMethod : Symbol(publicClassWithWithPrivateGetAccessorTypes.myPublicMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 60, 13)) +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 48, 29)) + + return null; + } + private get myPrivateMethod(): privateClass { +>myPrivateMethod : Symbol(publicClassWithWithPrivateGetAccessorTypes.myPrivateMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 63, 13)) +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 48, 29)) + + return null; + } + static get myPublicStaticMethod1() { +>myPublicStaticMethod1 : Symbol(publicClassWithWithPrivateGetAccessorTypes.myPublicStaticMethod1, Decl(privacyAccessorDeclFile_GlobalFile.ts, 66, 13)) + + return new privateClass(); +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 48, 29)) + } + private static get myPrivateStaticMethod1() { +>myPrivateStaticMethod1 : Symbol(publicClassWithWithPrivateGetAccessorTypes.myPrivateStaticMethod1, Decl(privacyAccessorDeclFile_GlobalFile.ts, 69, 13)) + + return new privateClass(); +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 48, 29)) + } + get myPublicMethod1() { +>myPublicMethod1 : Symbol(publicClassWithWithPrivateGetAccessorTypes.myPublicMethod1, Decl(privacyAccessorDeclFile_GlobalFile.ts, 72, 13)) + + return new privateClass(); +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 48, 29)) + } + private get myPrivateMethod1() { +>myPrivateMethod1 : Symbol(publicClassWithWithPrivateGetAccessorTypes.myPrivateMethod1, Decl(privacyAccessorDeclFile_GlobalFile.ts, 75, 13)) + + return new privateClass(); +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 48, 29)) + } + } + + export class publicClassWithWithPublicGetAccessorTypes { +>publicClassWithWithPublicGetAccessorTypes : Symbol(publicClassWithWithPublicGetAccessorTypes, Decl(privacyAccessorDeclFile_GlobalFile.ts, 79, 9)) + + static get myPublicStaticMethod(): publicClass { +>myPublicStaticMethod : Symbol(publicClassWithWithPublicGetAccessorTypes.myPublicStaticMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 81, 64)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 50, 9)) + + return null; + } + private static get myPrivateStaticMethod(): publicClass { +>myPrivateStaticMethod : Symbol(publicClassWithWithPublicGetAccessorTypes.myPrivateStaticMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 84, 13)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 50, 9)) + + return null; + } + get myPublicMethod(): publicClass { +>myPublicMethod : Symbol(publicClassWithWithPublicGetAccessorTypes.myPublicMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 87, 13)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 50, 9)) + + return null; + } + private get myPrivateMethod(): publicClass { +>myPrivateMethod : Symbol(publicClassWithWithPublicGetAccessorTypes.myPrivateMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 90, 13)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 50, 9)) + + return null; + } + static get myPublicStaticMethod1() { +>myPublicStaticMethod1 : Symbol(publicClassWithWithPublicGetAccessorTypes.myPublicStaticMethod1, Decl(privacyAccessorDeclFile_GlobalFile.ts, 93, 13)) + + return new publicClass(); +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 50, 9)) + } + private static get myPrivateStaticMethod1() { +>myPrivateStaticMethod1 : Symbol(publicClassWithWithPublicGetAccessorTypes.myPrivateStaticMethod1, Decl(privacyAccessorDeclFile_GlobalFile.ts, 96, 13)) + + return new publicClass(); +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 50, 9)) + } + get myPublicMethod1() { +>myPublicMethod1 : Symbol(publicClassWithWithPublicGetAccessorTypes.myPublicMethod1, Decl(privacyAccessorDeclFile_GlobalFile.ts, 99, 13)) + + return new publicClass(); +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 50, 9)) + } + private get myPrivateMethod1() { +>myPrivateMethod1 : Symbol(publicClassWithWithPublicGetAccessorTypes.myPrivateMethod1, Decl(privacyAccessorDeclFile_GlobalFile.ts, 102, 13)) + + return new publicClass(); +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 50, 9)) + } + } + + class privateClassWithWithPrivateGetAccessorTypes { +>privateClassWithWithPrivateGetAccessorTypes : Symbol(privateClassWithWithPrivateGetAccessorTypes, Decl(privacyAccessorDeclFile_GlobalFile.ts, 106, 9)) + + static get myPublicStaticMethod(): privateClass { +>myPublicStaticMethod : Symbol(privateClassWithWithPrivateGetAccessorTypes.myPublicStaticMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 108, 59)) +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 48, 29)) + + return null; + } + private static get myPrivateStaticMethod(): privateClass { +>myPrivateStaticMethod : Symbol(privateClassWithWithPrivateGetAccessorTypes.myPrivateStaticMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 111, 13)) +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 48, 29)) + + return null; + } + get myPublicMethod(): privateClass { +>myPublicMethod : Symbol(privateClassWithWithPrivateGetAccessorTypes.myPublicMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 114, 13)) +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 48, 29)) + + return null; + } + private get myPrivateMethod(): privateClass { +>myPrivateMethod : Symbol(privateClassWithWithPrivateGetAccessorTypes.myPrivateMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 117, 13)) +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 48, 29)) + + return null; + } + static get myPublicStaticMethod1() { +>myPublicStaticMethod1 : Symbol(privateClassWithWithPrivateGetAccessorTypes.myPublicStaticMethod1, Decl(privacyAccessorDeclFile_GlobalFile.ts, 120, 13)) + + return new privateClass(); +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 48, 29)) + } + private static get myPrivateStaticMethod1() { +>myPrivateStaticMethod1 : Symbol(privateClassWithWithPrivateGetAccessorTypes.myPrivateStaticMethod1, Decl(privacyAccessorDeclFile_GlobalFile.ts, 123, 13)) + + return new privateClass(); +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 48, 29)) + } + get myPublicMethod1() { +>myPublicMethod1 : Symbol(privateClassWithWithPrivateGetAccessorTypes.myPublicMethod1, Decl(privacyAccessorDeclFile_GlobalFile.ts, 126, 13)) + + return new privateClass(); +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 48, 29)) + } + private get myPrivateMethod1() { +>myPrivateMethod1 : Symbol(privateClassWithWithPrivateGetAccessorTypes.myPrivateMethod1, Decl(privacyAccessorDeclFile_GlobalFile.ts, 129, 13)) + + return new privateClass(); +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 48, 29)) + } + } + + class privateClassWithWithPublicGetAccessorTypes { +>privateClassWithWithPublicGetAccessorTypes : Symbol(privateClassWithWithPublicGetAccessorTypes, Decl(privacyAccessorDeclFile_GlobalFile.ts, 133, 9)) + + static get myPublicStaticMethod(): publicClass { +>myPublicStaticMethod : Symbol(privateClassWithWithPublicGetAccessorTypes.myPublicStaticMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 135, 58)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 50, 9)) + + return null; + } + private static get myPrivateStaticMethod(): publicClass { +>myPrivateStaticMethod : Symbol(privateClassWithWithPublicGetAccessorTypes.myPrivateStaticMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 138, 13)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 50, 9)) + + return null; + } + get myPublicMethod(): publicClass { +>myPublicMethod : Symbol(privateClassWithWithPublicGetAccessorTypes.myPublicMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 141, 13)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 50, 9)) + + return null; + } + private get myPrivateMethod(): publicClass { +>myPrivateMethod : Symbol(privateClassWithWithPublicGetAccessorTypes.myPrivateMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 144, 13)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 50, 9)) + + return null; + } + static get myPublicStaticMethod1() { +>myPublicStaticMethod1 : Symbol(privateClassWithWithPublicGetAccessorTypes.myPublicStaticMethod1, Decl(privacyAccessorDeclFile_GlobalFile.ts, 147, 13)) + + return new publicClass(); +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 50, 9)) + } + private static get myPrivateStaticMethod1() { +>myPrivateStaticMethod1 : Symbol(privateClassWithWithPublicGetAccessorTypes.myPrivateStaticMethod1, Decl(privacyAccessorDeclFile_GlobalFile.ts, 150, 13)) + + return new publicClass(); +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 50, 9)) + } + get myPublicMethod1() { +>myPublicMethod1 : Symbol(privateClassWithWithPublicGetAccessorTypes.myPublicMethod1, Decl(privacyAccessorDeclFile_GlobalFile.ts, 153, 13)) + + return new publicClass(); +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 50, 9)) + } + private get myPrivateMethod1() { +>myPrivateMethod1 : Symbol(privateClassWithWithPublicGetAccessorTypes.myPrivateMethod1, Decl(privacyAccessorDeclFile_GlobalFile.ts, 156, 13)) + + return new publicClass(); +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 50, 9)) + } + } + + export class publicClassWithWithPrivateSetAccessorTypes { +>publicClassWithWithPrivateSetAccessorTypes : Symbol(publicClassWithWithPrivateSetAccessorTypes, Decl(privacyAccessorDeclFile_GlobalFile.ts, 160, 9)) + + static set myPublicStaticMethod(param: privateClass) { +>myPublicStaticMethod : Symbol(publicClassWithWithPrivateSetAccessorTypes.myPublicStaticMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 162, 65)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_GlobalFile.ts, 163, 44)) +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 48, 29)) + } + private static set myPrivateStaticMethod(param: privateClass) { +>myPrivateStaticMethod : Symbol(publicClassWithWithPrivateSetAccessorTypes.myPrivateStaticMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 164, 13)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_GlobalFile.ts, 165, 53)) +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 48, 29)) + } + set myPublicMethod(param: privateClass) { +>myPublicMethod : Symbol(publicClassWithWithPrivateSetAccessorTypes.myPublicMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 166, 13)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_GlobalFile.ts, 167, 31)) +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 48, 29)) + } + private set myPrivateMethod(param: privateClass) { +>myPrivateMethod : Symbol(publicClassWithWithPrivateSetAccessorTypes.myPrivateMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 168, 13)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_GlobalFile.ts, 169, 40)) +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 48, 29)) + } + } + + export class publicClassWithWithPublicSetAccessorTypes { +>publicClassWithWithPublicSetAccessorTypes : Symbol(publicClassWithWithPublicSetAccessorTypes, Decl(privacyAccessorDeclFile_GlobalFile.ts, 171, 9)) + + static set myPublicStaticMethod(param: publicClass) { +>myPublicStaticMethod : Symbol(publicClassWithWithPublicSetAccessorTypes.myPublicStaticMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 173, 64)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_GlobalFile.ts, 174, 44)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 50, 9)) + } + private static set myPrivateStaticMethod(param: publicClass) { +>myPrivateStaticMethod : Symbol(publicClassWithWithPublicSetAccessorTypes.myPrivateStaticMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 175, 13)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_GlobalFile.ts, 176, 53)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 50, 9)) + } + set myPublicMethod(param: publicClass) { +>myPublicMethod : Symbol(publicClassWithWithPublicSetAccessorTypes.myPublicMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 177, 13)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_GlobalFile.ts, 178, 31)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 50, 9)) + } + private set myPrivateMethod(param: publicClass) { +>myPrivateMethod : Symbol(publicClassWithWithPublicSetAccessorTypes.myPrivateMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 179, 13)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_GlobalFile.ts, 180, 40)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 50, 9)) + } + } + + class privateClassWithWithPrivateSetAccessorTypes { +>privateClassWithWithPrivateSetAccessorTypes : Symbol(privateClassWithWithPrivateSetAccessorTypes, Decl(privacyAccessorDeclFile_GlobalFile.ts, 182, 9)) + + static set myPublicStaticMethod(param: privateClass) { +>myPublicStaticMethod : Symbol(privateClassWithWithPrivateSetAccessorTypes.myPublicStaticMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 184, 59)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_GlobalFile.ts, 185, 44)) +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 48, 29)) + } + private static set myPrivateStaticMethod(param: privateClass) { +>myPrivateStaticMethod : Symbol(privateClassWithWithPrivateSetAccessorTypes.myPrivateStaticMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 186, 13)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_GlobalFile.ts, 187, 53)) +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 48, 29)) + } + set myPublicMethod(param: privateClass) { +>myPublicMethod : Symbol(privateClassWithWithPrivateSetAccessorTypes.myPublicMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 188, 13)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_GlobalFile.ts, 189, 31)) +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 48, 29)) + } + private set myPrivateMethod(param: privateClass) { +>myPrivateMethod : Symbol(privateClassWithWithPrivateSetAccessorTypes.myPrivateMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 190, 13)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_GlobalFile.ts, 191, 40)) +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 48, 29)) + } + } + + class privateClassWithWithPublicSetAccessorTypes { +>privateClassWithWithPublicSetAccessorTypes : Symbol(privateClassWithWithPublicSetAccessorTypes, Decl(privacyAccessorDeclFile_GlobalFile.ts, 193, 9)) + + static set myPublicStaticMethod(param: publicClass) { +>myPublicStaticMethod : Symbol(privateClassWithWithPublicSetAccessorTypes.myPublicStaticMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 195, 58)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_GlobalFile.ts, 196, 44)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 50, 9)) + } + private static set myPrivateStaticMethod(param: publicClass) { +>myPrivateStaticMethod : Symbol(privateClassWithWithPublicSetAccessorTypes.myPrivateStaticMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 197, 13)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_GlobalFile.ts, 198, 53)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 50, 9)) + } + set myPublicMethod(param: publicClass) { +>myPublicMethod : Symbol(privateClassWithWithPublicSetAccessorTypes.myPublicMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 199, 13)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_GlobalFile.ts, 200, 31)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 50, 9)) + } + private set myPrivateMethod(param: publicClass) { +>myPrivateMethod : Symbol(privateClassWithWithPublicSetAccessorTypes.myPrivateMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 201, 13)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_GlobalFile.ts, 202, 40)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 50, 9)) + } + } + + export class publicClassWithPrivateModuleGetAccessorTypes { +>publicClassWithPrivateModuleGetAccessorTypes : Symbol(publicClassWithPrivateModuleGetAccessorTypes, Decl(privacyAccessorDeclFile_GlobalFile.ts, 204, 9)) + + static get myPublicStaticMethod(): privateModule.publicClass { +>myPublicStaticMethod : Symbol(publicClassWithPrivateModuleGetAccessorTypes.myPublicStaticMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 206, 67)) +>privateModule : Symbol(privateModule, Decl(privacyAccessorDeclFile_GlobalFile.ts, 46, 5)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 50, 9)) + + return null; + } + get myPublicMethod(): privateModule.publicClass { +>myPublicMethod : Symbol(publicClassWithPrivateModuleGetAccessorTypes.myPublicMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 209, 13)) +>privateModule : Symbol(privateModule, Decl(privacyAccessorDeclFile_GlobalFile.ts, 46, 5)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 50, 9)) + + return null; + } + static get myPublicStaticMethod1() { +>myPublicStaticMethod1 : Symbol(publicClassWithPrivateModuleGetAccessorTypes.myPublicStaticMethod1, Decl(privacyAccessorDeclFile_GlobalFile.ts, 212, 13)) + + return new privateModule.publicClass(); +>privateModule.publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 50, 9)) +>privateModule : Symbol(privateModule, Decl(privacyAccessorDeclFile_GlobalFile.ts, 46, 5)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 50, 9)) + } + get myPublicMethod1() { +>myPublicMethod1 : Symbol(publicClassWithPrivateModuleGetAccessorTypes.myPublicMethod1, Decl(privacyAccessorDeclFile_GlobalFile.ts, 215, 13)) + + return new privateModule.publicClass(); +>privateModule.publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 50, 9)) +>privateModule : Symbol(privateModule, Decl(privacyAccessorDeclFile_GlobalFile.ts, 46, 5)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 50, 9)) + } + } + + export class publicClassWithPrivateModuleSetAccessorTypes { +>publicClassWithPrivateModuleSetAccessorTypes : Symbol(publicClassWithPrivateModuleSetAccessorTypes, Decl(privacyAccessorDeclFile_GlobalFile.ts, 219, 9)) + + static set myPublicStaticMethod(param: privateModule.publicClass) { +>myPublicStaticMethod : Symbol(publicClassWithPrivateModuleSetAccessorTypes.myPublicStaticMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 221, 67)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_GlobalFile.ts, 222, 44)) +>privateModule : Symbol(privateModule, Decl(privacyAccessorDeclFile_GlobalFile.ts, 46, 5)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 50, 9)) + } + set myPublicMethod(param: privateModule.publicClass) { +>myPublicMethod : Symbol(publicClassWithPrivateModuleSetAccessorTypes.myPublicMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 223, 13)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_GlobalFile.ts, 224, 31)) +>privateModule : Symbol(privateModule, Decl(privacyAccessorDeclFile_GlobalFile.ts, 46, 5)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 50, 9)) + } + } + + class privateClassWithPrivateModuleGetAccessorTypes { +>privateClassWithPrivateModuleGetAccessorTypes : Symbol(privateClassWithPrivateModuleGetAccessorTypes, Decl(privacyAccessorDeclFile_GlobalFile.ts, 226, 9)) + + static get myPublicStaticMethod(): privateModule.publicClass { +>myPublicStaticMethod : Symbol(privateClassWithPrivateModuleGetAccessorTypes.myPublicStaticMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 228, 61)) +>privateModule : Symbol(privateModule, Decl(privacyAccessorDeclFile_GlobalFile.ts, 46, 5)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 50, 9)) + + return null; + } + get myPublicMethod(): privateModule.publicClass { +>myPublicMethod : Symbol(privateClassWithPrivateModuleGetAccessorTypes.myPublicMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 231, 13)) +>privateModule : Symbol(privateModule, Decl(privacyAccessorDeclFile_GlobalFile.ts, 46, 5)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 50, 9)) + + return null; + } + static get myPublicStaticMethod1() { +>myPublicStaticMethod1 : Symbol(privateClassWithPrivateModuleGetAccessorTypes.myPublicStaticMethod1, Decl(privacyAccessorDeclFile_GlobalFile.ts, 234, 13)) + + return new privateModule.publicClass(); +>privateModule.publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 50, 9)) +>privateModule : Symbol(privateModule, Decl(privacyAccessorDeclFile_GlobalFile.ts, 46, 5)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 50, 9)) + } + get myPublicMethod1() { +>myPublicMethod1 : Symbol(privateClassWithPrivateModuleGetAccessorTypes.myPublicMethod1, Decl(privacyAccessorDeclFile_GlobalFile.ts, 237, 13)) + + return new privateModule.publicClass(); +>privateModule.publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 50, 9)) +>privateModule : Symbol(privateModule, Decl(privacyAccessorDeclFile_GlobalFile.ts, 46, 5)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 50, 9)) + } + } + + class privateClassWithPrivateModuleSetAccessorTypes { +>privateClassWithPrivateModuleSetAccessorTypes : Symbol(privateClassWithPrivateModuleSetAccessorTypes, Decl(privacyAccessorDeclFile_GlobalFile.ts, 241, 9)) + + static set myPublicStaticMethod(param: privateModule.publicClass) { +>myPublicStaticMethod : Symbol(privateClassWithPrivateModuleSetAccessorTypes.myPublicStaticMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 243, 61)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_GlobalFile.ts, 244, 44)) +>privateModule : Symbol(privateModule, Decl(privacyAccessorDeclFile_GlobalFile.ts, 46, 5)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 50, 9)) + } + set myPublicMethod(param: privateModule.publicClass) { +>myPublicMethod : Symbol(privateClassWithPrivateModuleSetAccessorTypes.myPublicMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 245, 13)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_GlobalFile.ts, 246, 31)) +>privateModule : Symbol(privateModule, Decl(privacyAccessorDeclFile_GlobalFile.ts, 46, 5)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 50, 9)) + } + } + } + + export class publicClassWithWithPrivateGetAccessorTypes { +>publicClassWithWithPrivateGetAccessorTypes : Symbol(publicClassWithWithPrivateGetAccessorTypes, Decl(privacyAccessorDeclFile_GlobalFile.ts, 249, 5)) + + static get myPublicStaticMethod(): privateClass { // Error +>myPublicStaticMethod : Symbol(publicClassWithWithPrivateGetAccessorTypes.myPublicStaticMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 251, 61)) +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 41, 32)) + + return null; + } + private static get myPrivateStaticMethod(): privateClass { +>myPrivateStaticMethod : Symbol(publicClassWithWithPrivateGetAccessorTypes.myPrivateStaticMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 254, 9)) +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 41, 32)) + + return null; + } + get myPublicMethod(): privateClass { // Error +>myPublicMethod : Symbol(publicClassWithWithPrivateGetAccessorTypes.myPublicMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 257, 9)) +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 41, 32)) + + return null; + } + private get myPrivateMethod(): privateClass { +>myPrivateMethod : Symbol(publicClassWithWithPrivateGetAccessorTypes.myPrivateMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 260, 9)) +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 41, 32)) + + return null; + } + static get myPublicStaticMethod1() { // Error +>myPublicStaticMethod1 : Symbol(publicClassWithWithPrivateGetAccessorTypes.myPublicStaticMethod1, Decl(privacyAccessorDeclFile_GlobalFile.ts, 263, 9)) + + return new privateClass(); +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 41, 32)) + } + private static get myPrivateStaticMethod1() { +>myPrivateStaticMethod1 : Symbol(publicClassWithWithPrivateGetAccessorTypes.myPrivateStaticMethod1, Decl(privacyAccessorDeclFile_GlobalFile.ts, 266, 9)) + + return new privateClass(); +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 41, 32)) + } + get myPublicMethod1() { // Error +>myPublicMethod1 : Symbol(publicClassWithWithPrivateGetAccessorTypes.myPublicMethod1, Decl(privacyAccessorDeclFile_GlobalFile.ts, 269, 9)) + + return new privateClass(); +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 41, 32)) + } + private get myPrivateMethod1() { +>myPrivateMethod1 : Symbol(publicClassWithWithPrivateGetAccessorTypes.myPrivateMethod1, Decl(privacyAccessorDeclFile_GlobalFile.ts, 272, 9)) + + return new privateClass(); +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 41, 32)) + } + } + + export class publicClassWithWithPublicGetAccessorTypes { +>publicClassWithWithPublicGetAccessorTypes : Symbol(publicClassWithWithPublicGetAccessorTypes, Decl(privacyAccessorDeclFile_GlobalFile.ts, 276, 5)) + + static get myPublicStaticMethod(): publicClass { +>myPublicStaticMethod : Symbol(publicClassWithWithPublicGetAccessorTypes.myPublicStaticMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 278, 60)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 43, 5)) + + return null; + } + private static get myPrivateStaticMethod(): publicClass { +>myPrivateStaticMethod : Symbol(publicClassWithWithPublicGetAccessorTypes.myPrivateStaticMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 281, 9)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 43, 5)) + + return null; + } + get myPublicMethod(): publicClass { +>myPublicMethod : Symbol(publicClassWithWithPublicGetAccessorTypes.myPublicMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 284, 9)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 43, 5)) + + return null; + } + private get myPrivateMethod(): publicClass { +>myPrivateMethod : Symbol(publicClassWithWithPublicGetAccessorTypes.myPrivateMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 287, 9)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 43, 5)) + + return null; + } + static get myPublicStaticMethod1() { +>myPublicStaticMethod1 : Symbol(publicClassWithWithPublicGetAccessorTypes.myPublicStaticMethod1, Decl(privacyAccessorDeclFile_GlobalFile.ts, 290, 9)) + + return new publicClass(); +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 43, 5)) + } + private static get myPrivateStaticMethod1() { +>myPrivateStaticMethod1 : Symbol(publicClassWithWithPublicGetAccessorTypes.myPrivateStaticMethod1, Decl(privacyAccessorDeclFile_GlobalFile.ts, 293, 9)) + + return new publicClass(); +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 43, 5)) + } + get myPublicMethod1() { +>myPublicMethod1 : Symbol(publicClassWithWithPublicGetAccessorTypes.myPublicMethod1, Decl(privacyAccessorDeclFile_GlobalFile.ts, 296, 9)) + + return new publicClass(); +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 43, 5)) + } + private get myPrivateMethod1() { +>myPrivateMethod1 : Symbol(publicClassWithWithPublicGetAccessorTypes.myPrivateMethod1, Decl(privacyAccessorDeclFile_GlobalFile.ts, 299, 9)) + + return new publicClass(); +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 43, 5)) + } + } + + class privateClassWithWithPrivateGetAccessorTypes { +>privateClassWithWithPrivateGetAccessorTypes : Symbol(privateClassWithWithPrivateGetAccessorTypes, Decl(privacyAccessorDeclFile_GlobalFile.ts, 303, 5)) + + static get myPublicStaticMethod(): privateClass { +>myPublicStaticMethod : Symbol(privateClassWithWithPrivateGetAccessorTypes.myPublicStaticMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 305, 55)) +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 41, 32)) + + return null; + } + private static get myPrivateStaticMethod(): privateClass { +>myPrivateStaticMethod : Symbol(privateClassWithWithPrivateGetAccessorTypes.myPrivateStaticMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 308, 9)) +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 41, 32)) + + return null; + } + get myPublicMethod(): privateClass { +>myPublicMethod : Symbol(privateClassWithWithPrivateGetAccessorTypes.myPublicMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 311, 9)) +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 41, 32)) + + return null; + } + private get myPrivateMethod(): privateClass { +>myPrivateMethod : Symbol(privateClassWithWithPrivateGetAccessorTypes.myPrivateMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 314, 9)) +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 41, 32)) + + return null; + } + static get myPublicStaticMethod1() { +>myPublicStaticMethod1 : Symbol(privateClassWithWithPrivateGetAccessorTypes.myPublicStaticMethod1, Decl(privacyAccessorDeclFile_GlobalFile.ts, 317, 9)) + + return new privateClass(); +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 41, 32)) + } + private static get myPrivateStaticMethod1() { +>myPrivateStaticMethod1 : Symbol(privateClassWithWithPrivateGetAccessorTypes.myPrivateStaticMethod1, Decl(privacyAccessorDeclFile_GlobalFile.ts, 320, 9)) + + return new privateClass(); +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 41, 32)) + } + get myPublicMethod1() { +>myPublicMethod1 : Symbol(privateClassWithWithPrivateGetAccessorTypes.myPublicMethod1, Decl(privacyAccessorDeclFile_GlobalFile.ts, 323, 9)) + + return new privateClass(); +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 41, 32)) + } + private get myPrivateMethod1() { +>myPrivateMethod1 : Symbol(privateClassWithWithPrivateGetAccessorTypes.myPrivateMethod1, Decl(privacyAccessorDeclFile_GlobalFile.ts, 326, 9)) + + return new privateClass(); +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 41, 32)) + } + } + + class privateClassWithWithPublicGetAccessorTypes { +>privateClassWithWithPublicGetAccessorTypes : Symbol(privateClassWithWithPublicGetAccessorTypes, Decl(privacyAccessorDeclFile_GlobalFile.ts, 330, 5)) + + static get myPublicStaticMethod(): publicClass { +>myPublicStaticMethod : Symbol(privateClassWithWithPublicGetAccessorTypes.myPublicStaticMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 332, 54)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 43, 5)) + + return null; + } + private static get myPrivateStaticMethod(): publicClass { +>myPrivateStaticMethod : Symbol(privateClassWithWithPublicGetAccessorTypes.myPrivateStaticMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 335, 9)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 43, 5)) + + return null; + } + get myPublicMethod(): publicClass { +>myPublicMethod : Symbol(privateClassWithWithPublicGetAccessorTypes.myPublicMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 338, 9)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 43, 5)) + + return null; + } + private get myPrivateMethod(): publicClass { +>myPrivateMethod : Symbol(privateClassWithWithPublicGetAccessorTypes.myPrivateMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 341, 9)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 43, 5)) + + return null; + } + static get myPublicStaticMethod1() { +>myPublicStaticMethod1 : Symbol(privateClassWithWithPublicGetAccessorTypes.myPublicStaticMethod1, Decl(privacyAccessorDeclFile_GlobalFile.ts, 344, 9)) + + return new publicClass(); +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 43, 5)) + } + private static get myPrivateStaticMethod1() { +>myPrivateStaticMethod1 : Symbol(privateClassWithWithPublicGetAccessorTypes.myPrivateStaticMethod1, Decl(privacyAccessorDeclFile_GlobalFile.ts, 347, 9)) + + return new publicClass(); +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 43, 5)) + } + get myPublicMethod1() { +>myPublicMethod1 : Symbol(privateClassWithWithPublicGetAccessorTypes.myPublicMethod1, Decl(privacyAccessorDeclFile_GlobalFile.ts, 350, 9)) + + return new publicClass(); +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 43, 5)) + } + private get myPrivateMethod1() { +>myPrivateMethod1 : Symbol(privateClassWithWithPublicGetAccessorTypes.myPrivateMethod1, Decl(privacyAccessorDeclFile_GlobalFile.ts, 353, 9)) + + return new publicClass(); +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 43, 5)) + } + } + + export class publicClassWithWithPrivateSetAccessorTypes { +>publicClassWithWithPrivateSetAccessorTypes : Symbol(publicClassWithWithPrivateSetAccessorTypes, Decl(privacyAccessorDeclFile_GlobalFile.ts, 357, 5)) + + static set myPublicStaticMethod(param: privateClass) { // Error +>myPublicStaticMethod : Symbol(publicClassWithWithPrivateSetAccessorTypes.myPublicStaticMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 359, 61)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_GlobalFile.ts, 360, 40)) +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 41, 32)) + } + private static set myPrivateStaticMethod(param: privateClass) { +>myPrivateStaticMethod : Symbol(publicClassWithWithPrivateSetAccessorTypes.myPrivateStaticMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 361, 9)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_GlobalFile.ts, 362, 49)) +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 41, 32)) + } + set myPublicMethod(param: privateClass) { // Error +>myPublicMethod : Symbol(publicClassWithWithPrivateSetAccessorTypes.myPublicMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 363, 9)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_GlobalFile.ts, 364, 27)) +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 41, 32)) + } + private set myPrivateMethod(param: privateClass) { +>myPrivateMethod : Symbol(publicClassWithWithPrivateSetAccessorTypes.myPrivateMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 365, 9)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_GlobalFile.ts, 366, 36)) +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 41, 32)) + } + } + + export class publicClassWithWithPublicSetAccessorTypes { +>publicClassWithWithPublicSetAccessorTypes : Symbol(publicClassWithWithPublicSetAccessorTypes, Decl(privacyAccessorDeclFile_GlobalFile.ts, 368, 5)) + + static set myPublicStaticMethod(param: publicClass) { +>myPublicStaticMethod : Symbol(publicClassWithWithPublicSetAccessorTypes.myPublicStaticMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 370, 60)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_GlobalFile.ts, 371, 40)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 43, 5)) + } + private static set myPrivateStaticMethod(param: publicClass) { +>myPrivateStaticMethod : Symbol(publicClassWithWithPublicSetAccessorTypes.myPrivateStaticMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 372, 9)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_GlobalFile.ts, 373, 49)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 43, 5)) + } + set myPublicMethod(param: publicClass) { +>myPublicMethod : Symbol(publicClassWithWithPublicSetAccessorTypes.myPublicMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 374, 9)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_GlobalFile.ts, 375, 27)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 43, 5)) + } + private set myPrivateMethod(param: publicClass) { +>myPrivateMethod : Symbol(publicClassWithWithPublicSetAccessorTypes.myPrivateMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 376, 9)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_GlobalFile.ts, 377, 36)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 43, 5)) + } + } + + class privateClassWithWithPrivateSetAccessorTypes { +>privateClassWithWithPrivateSetAccessorTypes : Symbol(privateClassWithWithPrivateSetAccessorTypes, Decl(privacyAccessorDeclFile_GlobalFile.ts, 379, 5)) + + static set myPublicStaticMethod(param: privateClass) { +>myPublicStaticMethod : Symbol(privateClassWithWithPrivateSetAccessorTypes.myPublicStaticMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 381, 55)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_GlobalFile.ts, 382, 40)) +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 41, 32)) + } + private static set myPrivateStaticMethod(param: privateClass) { +>myPrivateStaticMethod : Symbol(privateClassWithWithPrivateSetAccessorTypes.myPrivateStaticMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 383, 9)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_GlobalFile.ts, 384, 49)) +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 41, 32)) + } + set myPublicMethod(param: privateClass) { +>myPublicMethod : Symbol(privateClassWithWithPrivateSetAccessorTypes.myPublicMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 385, 9)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_GlobalFile.ts, 386, 27)) +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 41, 32)) + } + private set myPrivateMethod(param: privateClass) { +>myPrivateMethod : Symbol(privateClassWithWithPrivateSetAccessorTypes.myPrivateMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 387, 9)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_GlobalFile.ts, 388, 36)) +>privateClass : Symbol(privateClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 41, 32)) + } + } + + class privateClassWithWithPublicSetAccessorTypes { +>privateClassWithWithPublicSetAccessorTypes : Symbol(privateClassWithWithPublicSetAccessorTypes, Decl(privacyAccessorDeclFile_GlobalFile.ts, 390, 5)) + + static set myPublicStaticMethod(param: publicClass) { +>myPublicStaticMethod : Symbol(privateClassWithWithPublicSetAccessorTypes.myPublicStaticMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 392, 54)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_GlobalFile.ts, 393, 40)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 43, 5)) + } + private static set myPrivateStaticMethod(param: publicClass) { +>myPrivateStaticMethod : Symbol(privateClassWithWithPublicSetAccessorTypes.myPrivateStaticMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 394, 9)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_GlobalFile.ts, 395, 49)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 43, 5)) + } + set myPublicMethod(param: publicClass) { +>myPublicMethod : Symbol(privateClassWithWithPublicSetAccessorTypes.myPublicMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 396, 9)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_GlobalFile.ts, 397, 27)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 43, 5)) + } + private set myPrivateMethod(param: publicClass) { +>myPrivateMethod : Symbol(privateClassWithWithPublicSetAccessorTypes.myPrivateMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 398, 9)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_GlobalFile.ts, 399, 36)) +>publicClass : Symbol(publicClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 43, 5)) + } + } + + export class publicClassWithPrivateModuleGetAccessorTypes { +>publicClassWithPrivateModuleGetAccessorTypes : Symbol(publicClassWithPrivateModuleGetAccessorTypes, Decl(privacyAccessorDeclFile_GlobalFile.ts, 401, 5)) + + static get myPublicStaticMethod(): privateModule.publicClass { // Error +>myPublicStaticMethod : Symbol(publicClassWithPrivateModuleGetAccessorTypes.myPublicStaticMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 403, 63)) +>privateModule : Symbol(privateModule, Decl(privacyAccessorDeclFile_GlobalFile.ts, 46, 5)) +>publicClass : Symbol(privateModule.publicClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 50, 9)) + + return null; + } + get myPublicMethod(): privateModule.publicClass { // Error +>myPublicMethod : Symbol(publicClassWithPrivateModuleGetAccessorTypes.myPublicMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 406, 9)) +>privateModule : Symbol(privateModule, Decl(privacyAccessorDeclFile_GlobalFile.ts, 46, 5)) +>publicClass : Symbol(privateModule.publicClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 50, 9)) + + return null; + } + static get myPublicStaticMethod1() { // Error +>myPublicStaticMethod1 : Symbol(publicClassWithPrivateModuleGetAccessorTypes.myPublicStaticMethod1, Decl(privacyAccessorDeclFile_GlobalFile.ts, 409, 9)) + + return new privateModule.publicClass(); +>privateModule.publicClass : Symbol(privateModule.publicClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 50, 9)) +>privateModule : Symbol(privateModule, Decl(privacyAccessorDeclFile_GlobalFile.ts, 46, 5)) +>publicClass : Symbol(privateModule.publicClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 50, 9)) + } + get myPublicMethod1() { // Error +>myPublicMethod1 : Symbol(publicClassWithPrivateModuleGetAccessorTypes.myPublicMethod1, Decl(privacyAccessorDeclFile_GlobalFile.ts, 412, 9)) + + return new privateModule.publicClass(); +>privateModule.publicClass : Symbol(privateModule.publicClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 50, 9)) +>privateModule : Symbol(privateModule, Decl(privacyAccessorDeclFile_GlobalFile.ts, 46, 5)) +>publicClass : Symbol(privateModule.publicClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 50, 9)) + } + } + + export class publicClassWithPrivateModuleSetAccessorTypes { +>publicClassWithPrivateModuleSetAccessorTypes : Symbol(publicClassWithPrivateModuleSetAccessorTypes, Decl(privacyAccessorDeclFile_GlobalFile.ts, 416, 5)) + + static set myPublicStaticMethod(param: privateModule.publicClass) { // Error +>myPublicStaticMethod : Symbol(publicClassWithPrivateModuleSetAccessorTypes.myPublicStaticMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 418, 63)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_GlobalFile.ts, 419, 40)) +>privateModule : Symbol(privateModule, Decl(privacyAccessorDeclFile_GlobalFile.ts, 46, 5)) +>publicClass : Symbol(privateModule.publicClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 50, 9)) + } + set myPublicMethod(param: privateModule.publicClass) { // Error +>myPublicMethod : Symbol(publicClassWithPrivateModuleSetAccessorTypes.myPublicMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 420, 9)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_GlobalFile.ts, 421, 27)) +>privateModule : Symbol(privateModule, Decl(privacyAccessorDeclFile_GlobalFile.ts, 46, 5)) +>publicClass : Symbol(privateModule.publicClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 50, 9)) + } + } + + class privateClassWithPrivateModuleGetAccessorTypes { +>privateClassWithPrivateModuleGetAccessorTypes : Symbol(privateClassWithPrivateModuleGetAccessorTypes, Decl(privacyAccessorDeclFile_GlobalFile.ts, 423, 5)) + + static get myPublicStaticMethod(): privateModule.publicClass { +>myPublicStaticMethod : Symbol(privateClassWithPrivateModuleGetAccessorTypes.myPublicStaticMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 425, 57)) +>privateModule : Symbol(privateModule, Decl(privacyAccessorDeclFile_GlobalFile.ts, 46, 5)) +>publicClass : Symbol(privateModule.publicClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 50, 9)) + + return null; + } + get myPublicMethod(): privateModule.publicClass { +>myPublicMethod : Symbol(privateClassWithPrivateModuleGetAccessorTypes.myPublicMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 428, 9)) +>privateModule : Symbol(privateModule, Decl(privacyAccessorDeclFile_GlobalFile.ts, 46, 5)) +>publicClass : Symbol(privateModule.publicClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 50, 9)) + + return null; + } + static get myPublicStaticMethod1() { +>myPublicStaticMethod1 : Symbol(privateClassWithPrivateModuleGetAccessorTypes.myPublicStaticMethod1, Decl(privacyAccessorDeclFile_GlobalFile.ts, 431, 9)) + + return new privateModule.publicClass(); +>privateModule.publicClass : Symbol(privateModule.publicClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 50, 9)) +>privateModule : Symbol(privateModule, Decl(privacyAccessorDeclFile_GlobalFile.ts, 46, 5)) +>publicClass : Symbol(privateModule.publicClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 50, 9)) + } + get myPublicMethod1() { +>myPublicMethod1 : Symbol(privateClassWithPrivateModuleGetAccessorTypes.myPublicMethod1, Decl(privacyAccessorDeclFile_GlobalFile.ts, 434, 9)) + + return new privateModule.publicClass(); +>privateModule.publicClass : Symbol(privateModule.publicClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 50, 9)) +>privateModule : Symbol(privateModule, Decl(privacyAccessorDeclFile_GlobalFile.ts, 46, 5)) +>publicClass : Symbol(privateModule.publicClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 50, 9)) + } + } + + class privateClassWithPrivateModuleSetAccessorTypes { +>privateClassWithPrivateModuleSetAccessorTypes : Symbol(privateClassWithPrivateModuleSetAccessorTypes, Decl(privacyAccessorDeclFile_GlobalFile.ts, 438, 5)) + + static set myPublicStaticMethod(param: privateModule.publicClass) { +>myPublicStaticMethod : Symbol(privateClassWithPrivateModuleSetAccessorTypes.myPublicStaticMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 440, 57)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_GlobalFile.ts, 441, 40)) +>privateModule : Symbol(privateModule, Decl(privacyAccessorDeclFile_GlobalFile.ts, 46, 5)) +>publicClass : Symbol(privateModule.publicClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 50, 9)) + } + set myPublicMethod(param: privateModule.publicClass) { +>myPublicMethod : Symbol(privateClassWithPrivateModuleSetAccessorTypes.myPublicMethod, Decl(privacyAccessorDeclFile_GlobalFile.ts, 442, 9)) +>param : Symbol(param, Decl(privacyAccessorDeclFile_GlobalFile.ts, 443, 27)) +>privateModule : Symbol(privateModule, Decl(privacyAccessorDeclFile_GlobalFile.ts, 46, 5)) +>publicClass : Symbol(privateModule.publicClass, Decl(privacyAccessorDeclFile_GlobalFile.ts, 50, 9)) + } + } +} diff --git a/tests/baselines/reference/privacyAccessorDeclFile(target=es5).types b/tests/baselines/reference/privacyAccessorDeclFile(target=es5).types new file mode 100644 index 0000000000000..3a5b108ed49be --- /dev/null +++ b/tests/baselines/reference/privacyAccessorDeclFile(target=es5).types @@ -0,0 +1,2895 @@ +//// [tests/cases/compiler/privacyAccessorDeclFile.ts] //// + +=== privacyAccessorDeclFile_externalModule.ts === +class privateClass { +>privateClass : privateClass +> : ^^^^^^^^^^^^ +} + +export class publicClass { +>publicClass : publicClass +> : ^^^^^^^^^^^ +} + +export class publicClassWithWithPrivateGetAccessorTypes { +>publicClassWithWithPrivateGetAccessorTypes : publicClassWithWithPrivateGetAccessorTypes +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static get myPublicStaticMethod(): privateClass { // Error +>myPublicStaticMethod : privateClass +> : ^^^^^^^^^^^^ + + return null; + } + private static get myPrivateStaticMethod(): privateClass { +>myPrivateStaticMethod : privateClass +> : ^^^^^^^^^^^^ + + return null; + } + get myPublicMethod(): privateClass { // Error +>myPublicMethod : privateClass +> : ^^^^^^^^^^^^ + + return null; + } + private get myPrivateMethod(): privateClass { +>myPrivateMethod : privateClass +> : ^^^^^^^^^^^^ + + return null; + } + static get myPublicStaticMethod1() { // Error +>myPublicStaticMethod1 : privateClass +> : ^^^^^^^^^^^^ + + return new privateClass(); +>new privateClass() : privateClass +> : ^^^^^^^^^^^^ +>privateClass : typeof privateClass +> : ^^^^^^^^^^^^^^^^^^^ + } + private static get myPrivateStaticMethod1() { +>myPrivateStaticMethod1 : privateClass +> : ^^^^^^^^^^^^ + + return new privateClass(); +>new privateClass() : privateClass +> : ^^^^^^^^^^^^ +>privateClass : typeof privateClass +> : ^^^^^^^^^^^^^^^^^^^ + } + get myPublicMethod1() { // Error +>myPublicMethod1 : privateClass +> : ^^^^^^^^^^^^ + + return new privateClass(); +>new privateClass() : privateClass +> : ^^^^^^^^^^^^ +>privateClass : typeof privateClass +> : ^^^^^^^^^^^^^^^^^^^ + } + private get myPrivateMethod1() { +>myPrivateMethod1 : privateClass +> : ^^^^^^^^^^^^ + + return new privateClass(); +>new privateClass() : privateClass +> : ^^^^^^^^^^^^ +>privateClass : typeof privateClass +> : ^^^^^^^^^^^^^^^^^^^ + } +} + +export class publicClassWithWithPublicGetAccessorTypes { +>publicClassWithWithPublicGetAccessorTypes : publicClassWithWithPublicGetAccessorTypes +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static get myPublicStaticMethod(): publicClass { +>myPublicStaticMethod : publicClass +> : ^^^^^^^^^^^ + + return null; + } + private static get myPrivateStaticMethod(): publicClass { +>myPrivateStaticMethod : publicClass +> : ^^^^^^^^^^^ + + return null; + } + get myPublicMethod(): publicClass { +>myPublicMethod : publicClass +> : ^^^^^^^^^^^ + + return null; + } + private get myPrivateMethod(): publicClass { +>myPrivateMethod : publicClass +> : ^^^^^^^^^^^ + + return null; + } + static get myPublicStaticMethod1() { +>myPublicStaticMethod1 : publicClass +> : ^^^^^^^^^^^ + + return new publicClass(); +>new publicClass() : publicClass +> : ^^^^^^^^^^^ +>publicClass : typeof publicClass +> : ^^^^^^^^^^^^^^^^^^ + } + private static get myPrivateStaticMethod1() { +>myPrivateStaticMethod1 : publicClass +> : ^^^^^^^^^^^ + + return new publicClass(); +>new publicClass() : publicClass +> : ^^^^^^^^^^^ +>publicClass : typeof publicClass +> : ^^^^^^^^^^^^^^^^^^ + } + get myPublicMethod1() { +>myPublicMethod1 : publicClass +> : ^^^^^^^^^^^ + + return new publicClass(); +>new publicClass() : publicClass +> : ^^^^^^^^^^^ +>publicClass : typeof publicClass +> : ^^^^^^^^^^^^^^^^^^ + } + private get myPrivateMethod1() { +>myPrivateMethod1 : publicClass +> : ^^^^^^^^^^^ + + return new publicClass(); +>new publicClass() : publicClass +> : ^^^^^^^^^^^ +>publicClass : typeof publicClass +> : ^^^^^^^^^^^^^^^^^^ + } +} + +class privateClassWithWithPrivateGetAccessorTypes { +>privateClassWithWithPrivateGetAccessorTypes : privateClassWithWithPrivateGetAccessorTypes +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static get myPublicStaticMethod(): privateClass { +>myPublicStaticMethod : privateClass +> : ^^^^^^^^^^^^ + + return null; + } + private static get myPrivateStaticMethod(): privateClass { +>myPrivateStaticMethod : privateClass +> : ^^^^^^^^^^^^ + + return null; + } + get myPublicMethod(): privateClass { +>myPublicMethod : privateClass +> : ^^^^^^^^^^^^ + + return null; + } + private get myPrivateMethod(): privateClass { +>myPrivateMethod : privateClass +> : ^^^^^^^^^^^^ + + return null; + } + static get myPublicStaticMethod1() { +>myPublicStaticMethod1 : privateClass +> : ^^^^^^^^^^^^ + + return new privateClass(); +>new privateClass() : privateClass +> : ^^^^^^^^^^^^ +>privateClass : typeof privateClass +> : ^^^^^^^^^^^^^^^^^^^ + } + private static get myPrivateStaticMethod1() { +>myPrivateStaticMethod1 : privateClass +> : ^^^^^^^^^^^^ + + return new privateClass(); +>new privateClass() : privateClass +> : ^^^^^^^^^^^^ +>privateClass : typeof privateClass +> : ^^^^^^^^^^^^^^^^^^^ + } + get myPublicMethod1() { +>myPublicMethod1 : privateClass +> : ^^^^^^^^^^^^ + + return new privateClass(); +>new privateClass() : privateClass +> : ^^^^^^^^^^^^ +>privateClass : typeof privateClass +> : ^^^^^^^^^^^^^^^^^^^ + } + private get myPrivateMethod1() { +>myPrivateMethod1 : privateClass +> : ^^^^^^^^^^^^ + + return new privateClass(); +>new privateClass() : privateClass +> : ^^^^^^^^^^^^ +>privateClass : typeof privateClass +> : ^^^^^^^^^^^^^^^^^^^ + } +} + +class privateClassWithWithPublicGetAccessorTypes { +>privateClassWithWithPublicGetAccessorTypes : privateClassWithWithPublicGetAccessorTypes +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static get myPublicStaticMethod(): publicClass { +>myPublicStaticMethod : publicClass +> : ^^^^^^^^^^^ + + return null; + } + private static get myPrivateStaticMethod(): publicClass { +>myPrivateStaticMethod : publicClass +> : ^^^^^^^^^^^ + + return null; + } + get myPublicMethod(): publicClass { +>myPublicMethod : publicClass +> : ^^^^^^^^^^^ + + return null; + } + private get myPrivateMethod(): publicClass { +>myPrivateMethod : publicClass +> : ^^^^^^^^^^^ + + return null; + } + static get myPublicStaticMethod1() { +>myPublicStaticMethod1 : publicClass +> : ^^^^^^^^^^^ + + return new publicClass(); +>new publicClass() : publicClass +> : ^^^^^^^^^^^ +>publicClass : typeof publicClass +> : ^^^^^^^^^^^^^^^^^^ + } + private static get myPrivateStaticMethod1() { +>myPrivateStaticMethod1 : publicClass +> : ^^^^^^^^^^^ + + return new publicClass(); +>new publicClass() : publicClass +> : ^^^^^^^^^^^ +>publicClass : typeof publicClass +> : ^^^^^^^^^^^^^^^^^^ + } + get myPublicMethod1() { +>myPublicMethod1 : publicClass +> : ^^^^^^^^^^^ + + return new publicClass(); +>new publicClass() : publicClass +> : ^^^^^^^^^^^ +>publicClass : typeof publicClass +> : ^^^^^^^^^^^^^^^^^^ + } + private get myPrivateMethod1() { +>myPrivateMethod1 : publicClass +> : ^^^^^^^^^^^ + + return new publicClass(); +>new publicClass() : publicClass +> : ^^^^^^^^^^^ +>publicClass : typeof publicClass +> : ^^^^^^^^^^^^^^^^^^ + } +} + +export class publicClassWithWithPrivateSetAccessorTypes { +>publicClassWithWithPrivateSetAccessorTypes : publicClassWithWithPrivateSetAccessorTypes +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static set myPublicStaticMethod(param: privateClass) { // Error +>myPublicStaticMethod : privateClass +> : ^^^^^^^^^^^^ +>param : privateClass +> : ^^^^^^^^^^^^ + } + private static set myPrivateStaticMethod(param: privateClass) { +>myPrivateStaticMethod : privateClass +> : ^^^^^^^^^^^^ +>param : privateClass +> : ^^^^^^^^^^^^ + } + set myPublicMethod(param: privateClass) { // Error +>myPublicMethod : privateClass +> : ^^^^^^^^^^^^ +>param : privateClass +> : ^^^^^^^^^^^^ + } + private set myPrivateMethod(param: privateClass) { +>myPrivateMethod : privateClass +> : ^^^^^^^^^^^^ +>param : privateClass +> : ^^^^^^^^^^^^ + } +} + +export class publicClassWithWithPublicSetAccessorTypes { +>publicClassWithWithPublicSetAccessorTypes : publicClassWithWithPublicSetAccessorTypes +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static set myPublicStaticMethod(param: publicClass) { +>myPublicStaticMethod : publicClass +> : ^^^^^^^^^^^ +>param : publicClass +> : ^^^^^^^^^^^ + } + private static set myPrivateStaticMethod(param: publicClass) { +>myPrivateStaticMethod : publicClass +> : ^^^^^^^^^^^ +>param : publicClass +> : ^^^^^^^^^^^ + } + set myPublicMethod(param: publicClass) { +>myPublicMethod : publicClass +> : ^^^^^^^^^^^ +>param : publicClass +> : ^^^^^^^^^^^ + } + private set myPrivateMethod(param: publicClass) { +>myPrivateMethod : publicClass +> : ^^^^^^^^^^^ +>param : publicClass +> : ^^^^^^^^^^^ + } +} + +class privateClassWithWithPrivateSetAccessorTypes { +>privateClassWithWithPrivateSetAccessorTypes : privateClassWithWithPrivateSetAccessorTypes +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static set myPublicStaticMethod(param: privateClass) { +>myPublicStaticMethod : privateClass +> : ^^^^^^^^^^^^ +>param : privateClass +> : ^^^^^^^^^^^^ + } + private static set myPrivateStaticMethod(param: privateClass) { +>myPrivateStaticMethod : privateClass +> : ^^^^^^^^^^^^ +>param : privateClass +> : ^^^^^^^^^^^^ + } + set myPublicMethod(param: privateClass) { +>myPublicMethod : privateClass +> : ^^^^^^^^^^^^ +>param : privateClass +> : ^^^^^^^^^^^^ + } + private set myPrivateMethod(param: privateClass) { +>myPrivateMethod : privateClass +> : ^^^^^^^^^^^^ +>param : privateClass +> : ^^^^^^^^^^^^ + } +} + +class privateClassWithWithPublicSetAccessorTypes { +>privateClassWithWithPublicSetAccessorTypes : privateClassWithWithPublicSetAccessorTypes +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static set myPublicStaticMethod(param: publicClass) { +>myPublicStaticMethod : publicClass +> : ^^^^^^^^^^^ +>param : publicClass +> : ^^^^^^^^^^^ + } + private static set myPrivateStaticMethod(param: publicClass) { +>myPrivateStaticMethod : publicClass +> : ^^^^^^^^^^^ +>param : publicClass +> : ^^^^^^^^^^^ + } + set myPublicMethod(param: publicClass) { +>myPublicMethod : publicClass +> : ^^^^^^^^^^^ +>param : publicClass +> : ^^^^^^^^^^^ + } + private set myPrivateMethod(param: publicClass) { +>myPrivateMethod : publicClass +> : ^^^^^^^^^^^ +>param : publicClass +> : ^^^^^^^^^^^ + } +} + +export class publicClassWithPrivateModuleGetAccessorTypes { +>publicClassWithPrivateModuleGetAccessorTypes : publicClassWithPrivateModuleGetAccessorTypes +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static get myPublicStaticMethod(): privateModule.publicClass { // Error +>myPublicStaticMethod : privateModule.publicClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>privateModule : any +> : ^^^ + + return null; + } + get myPublicMethod(): privateModule.publicClass { // Error +>myPublicMethod : privateModule.publicClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>privateModule : any +> : ^^^ + + return null; + } + static get myPublicStaticMethod1() { // Error +>myPublicStaticMethod1 : privateModule.publicClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ + + return new privateModule.publicClass(); +>new privateModule.publicClass() : privateModule.publicClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>privateModule.publicClass : typeof privateModule.publicClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>privateModule : typeof privateModule +> : ^^^^^^^^^^^^^^^^^^^^ +>publicClass : typeof privateModule.publicClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + } + get myPublicMethod1() { // Error +>myPublicMethod1 : privateModule.publicClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ + + return new privateModule.publicClass(); +>new privateModule.publicClass() : privateModule.publicClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>privateModule.publicClass : typeof privateModule.publicClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>privateModule : typeof privateModule +> : ^^^^^^^^^^^^^^^^^^^^ +>publicClass : typeof privateModule.publicClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + } +} + +export class publicClassWithPrivateModuleSetAccessorTypes { +>publicClassWithPrivateModuleSetAccessorTypes : publicClassWithPrivateModuleSetAccessorTypes +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static set myPublicStaticMethod(param: privateModule.publicClass) { // Error +>myPublicStaticMethod : privateModule.publicClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>param : privateModule.publicClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>privateModule : any +> : ^^^ + } + set myPublicMethod(param: privateModule.publicClass) { // Error +>myPublicMethod : privateModule.publicClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>param : privateModule.publicClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>privateModule : any +> : ^^^ + } +} + +class privateClassWithPrivateModuleGetAccessorTypes { +>privateClassWithPrivateModuleGetAccessorTypes : privateClassWithPrivateModuleGetAccessorTypes +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static get myPublicStaticMethod(): privateModule.publicClass { +>myPublicStaticMethod : privateModule.publicClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>privateModule : any +> : ^^^ + + return null; + } + get myPublicMethod(): privateModule.publicClass { +>myPublicMethod : privateModule.publicClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>privateModule : any +> : ^^^ + + return null; + } + static get myPublicStaticMethod1() { +>myPublicStaticMethod1 : privateModule.publicClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ + + return new privateModule.publicClass(); +>new privateModule.publicClass() : privateModule.publicClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>privateModule.publicClass : typeof privateModule.publicClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>privateModule : typeof privateModule +> : ^^^^^^^^^^^^^^^^^^^^ +>publicClass : typeof privateModule.publicClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + } + get myPublicMethod1() { +>myPublicMethod1 : privateModule.publicClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ + + return new privateModule.publicClass(); +>new privateModule.publicClass() : privateModule.publicClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>privateModule.publicClass : typeof privateModule.publicClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>privateModule : typeof privateModule +> : ^^^^^^^^^^^^^^^^^^^^ +>publicClass : typeof privateModule.publicClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + } +} + +class privateClassWithPrivateModuleSetAccessorTypes { +>privateClassWithPrivateModuleSetAccessorTypes : privateClassWithPrivateModuleSetAccessorTypes +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static set myPublicStaticMethod(param: privateModule.publicClass) { +>myPublicStaticMethod : privateModule.publicClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>param : privateModule.publicClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>privateModule : any +> : ^^^ + } + set myPublicMethod(param: privateModule.publicClass) { +>myPublicMethod : privateModule.publicClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>param : privateModule.publicClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>privateModule : any +> : ^^^ + } +} + +export namespace publicModule { +>publicModule : typeof publicModule +> : ^^^^^^^^^^^^^^^^^^^ + + class privateClass { +>privateClass : privateClass +> : ^^^^^^^^^^^^ + } + + export class publicClass { +>publicClass : publicClass +> : ^^^^^^^^^^^ + } + export class publicClassWithWithPrivateGetAccessorTypes { +>publicClassWithWithPrivateGetAccessorTypes : publicClassWithWithPrivateGetAccessorTypes +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static get myPublicStaticMethod(): privateClass { // Error +>myPublicStaticMethod : privateClass +> : ^^^^^^^^^^^^ + + return null; + } + private static get myPrivateStaticMethod(): privateClass { +>myPrivateStaticMethod : privateClass +> : ^^^^^^^^^^^^ + + return null; + } + get myPublicMethod(): privateClass { // Error +>myPublicMethod : privateClass +> : ^^^^^^^^^^^^ + + return null; + } + private get myPrivateMethod(): privateClass { +>myPrivateMethod : privateClass +> : ^^^^^^^^^^^^ + + return null; + } + static get myPublicStaticMethod1() { // Error +>myPublicStaticMethod1 : privateClass +> : ^^^^^^^^^^^^ + + return new privateClass(); +>new privateClass() : privateClass +> : ^^^^^^^^^^^^ +>privateClass : typeof privateClass +> : ^^^^^^^^^^^^^^^^^^^ + } + private static get myPrivateStaticMethod1() { +>myPrivateStaticMethod1 : privateClass +> : ^^^^^^^^^^^^ + + return new privateClass(); +>new privateClass() : privateClass +> : ^^^^^^^^^^^^ +>privateClass : typeof privateClass +> : ^^^^^^^^^^^^^^^^^^^ + } + get myPublicMethod1() { // Error +>myPublicMethod1 : privateClass +> : ^^^^^^^^^^^^ + + return new privateClass(); +>new privateClass() : privateClass +> : ^^^^^^^^^^^^ +>privateClass : typeof privateClass +> : ^^^^^^^^^^^^^^^^^^^ + } + private get myPrivateMethod1() { +>myPrivateMethod1 : privateClass +> : ^^^^^^^^^^^^ + + return new privateClass(); +>new privateClass() : privateClass +> : ^^^^^^^^^^^^ +>privateClass : typeof privateClass +> : ^^^^^^^^^^^^^^^^^^^ + } + } + + export class publicClassWithWithPublicGetAccessorTypes { +>publicClassWithWithPublicGetAccessorTypes : publicClassWithWithPublicGetAccessorTypes +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static get myPublicStaticMethod(): publicClass { +>myPublicStaticMethod : publicClass +> : ^^^^^^^^^^^ + + return null; + } + private static get myPrivateStaticMethod(): publicClass { +>myPrivateStaticMethod : publicClass +> : ^^^^^^^^^^^ + + return null; + } + get myPublicMethod(): publicClass { +>myPublicMethod : publicClass +> : ^^^^^^^^^^^ + + return null; + } + private get myPrivateMethod(): publicClass { +>myPrivateMethod : publicClass +> : ^^^^^^^^^^^ + + return null; + } + static get myPublicStaticMethod1() { +>myPublicStaticMethod1 : publicClass +> : ^^^^^^^^^^^ + + return new publicClass(); +>new publicClass() : publicClass +> : ^^^^^^^^^^^ +>publicClass : typeof publicClass +> : ^^^^^^^^^^^^^^^^^^ + } + private static get myPrivateStaticMethod1() { +>myPrivateStaticMethod1 : publicClass +> : ^^^^^^^^^^^ + + return new publicClass(); +>new publicClass() : publicClass +> : ^^^^^^^^^^^ +>publicClass : typeof publicClass +> : ^^^^^^^^^^^^^^^^^^ + } + get myPublicMethod1() { +>myPublicMethod1 : publicClass +> : ^^^^^^^^^^^ + + return new publicClass(); +>new publicClass() : publicClass +> : ^^^^^^^^^^^ +>publicClass : typeof publicClass +> : ^^^^^^^^^^^^^^^^^^ + } + private get myPrivateMethod1() { +>myPrivateMethod1 : publicClass +> : ^^^^^^^^^^^ + + return new publicClass(); +>new publicClass() : publicClass +> : ^^^^^^^^^^^ +>publicClass : typeof publicClass +> : ^^^^^^^^^^^^^^^^^^ + } + } + + class privateClassWithWithPrivateGetAccessorTypes { +>privateClassWithWithPrivateGetAccessorTypes : privateClassWithWithPrivateGetAccessorTypes +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static get myPublicStaticMethod(): privateClass { +>myPublicStaticMethod : privateClass +> : ^^^^^^^^^^^^ + + return null; + } + private static get myPrivateStaticMethod(): privateClass { +>myPrivateStaticMethod : privateClass +> : ^^^^^^^^^^^^ + + return null; + } + get myPublicMethod(): privateClass { +>myPublicMethod : privateClass +> : ^^^^^^^^^^^^ + + return null; + } + private get myPrivateMethod(): privateClass { +>myPrivateMethod : privateClass +> : ^^^^^^^^^^^^ + + return null; + } + static get myPublicStaticMethod1() { +>myPublicStaticMethod1 : privateClass +> : ^^^^^^^^^^^^ + + return new privateClass(); +>new privateClass() : privateClass +> : ^^^^^^^^^^^^ +>privateClass : typeof privateClass +> : ^^^^^^^^^^^^^^^^^^^ + } + private static get myPrivateStaticMethod1() { +>myPrivateStaticMethod1 : privateClass +> : ^^^^^^^^^^^^ + + return new privateClass(); +>new privateClass() : privateClass +> : ^^^^^^^^^^^^ +>privateClass : typeof privateClass +> : ^^^^^^^^^^^^^^^^^^^ + } + get myPublicMethod1() { +>myPublicMethod1 : privateClass +> : ^^^^^^^^^^^^ + + return new privateClass(); +>new privateClass() : privateClass +> : ^^^^^^^^^^^^ +>privateClass : typeof privateClass +> : ^^^^^^^^^^^^^^^^^^^ + } + private get myPrivateMethod1() { +>myPrivateMethod1 : privateClass +> : ^^^^^^^^^^^^ + + return new privateClass(); +>new privateClass() : privateClass +> : ^^^^^^^^^^^^ +>privateClass : typeof privateClass +> : ^^^^^^^^^^^^^^^^^^^ + } + } + + class privateClassWithWithPublicGetAccessorTypes { +>privateClassWithWithPublicGetAccessorTypes : privateClassWithWithPublicGetAccessorTypes +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static get myPublicStaticMethod(): publicClass { +>myPublicStaticMethod : publicClass +> : ^^^^^^^^^^^ + + return null; + } + private static get myPrivateStaticMethod(): publicClass { +>myPrivateStaticMethod : publicClass +> : ^^^^^^^^^^^ + + return null; + } + get myPublicMethod(): publicClass { +>myPublicMethod : publicClass +> : ^^^^^^^^^^^ + + return null; + } + private get myPrivateMethod(): publicClass { +>myPrivateMethod : publicClass +> : ^^^^^^^^^^^ + + return null; + } + static get myPublicStaticMethod1() { +>myPublicStaticMethod1 : publicClass +> : ^^^^^^^^^^^ + + return new publicClass(); +>new publicClass() : publicClass +> : ^^^^^^^^^^^ +>publicClass : typeof publicClass +> : ^^^^^^^^^^^^^^^^^^ + } + private static get myPrivateStaticMethod1() { +>myPrivateStaticMethod1 : publicClass +> : ^^^^^^^^^^^ + + return new publicClass(); +>new publicClass() : publicClass +> : ^^^^^^^^^^^ +>publicClass : typeof publicClass +> : ^^^^^^^^^^^^^^^^^^ + } + get myPublicMethod1() { +>myPublicMethod1 : publicClass +> : ^^^^^^^^^^^ + + return new publicClass(); +>new publicClass() : publicClass +> : ^^^^^^^^^^^ +>publicClass : typeof publicClass +> : ^^^^^^^^^^^^^^^^^^ + } + private get myPrivateMethod1() { +>myPrivateMethod1 : publicClass +> : ^^^^^^^^^^^ + + return new publicClass(); +>new publicClass() : publicClass +> : ^^^^^^^^^^^ +>publicClass : typeof publicClass +> : ^^^^^^^^^^^^^^^^^^ + } + } + + export class publicClassWithWithPrivateSetAccessorTypes { +>publicClassWithWithPrivateSetAccessorTypes : publicClassWithWithPrivateSetAccessorTypes +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static set myPublicStaticMethod(param: privateClass) { // Error +>myPublicStaticMethod : privateClass +> : ^^^^^^^^^^^^ +>param : privateClass +> : ^^^^^^^^^^^^ + } + private static set myPrivateStaticMethod(param: privateClass) { +>myPrivateStaticMethod : privateClass +> : ^^^^^^^^^^^^ +>param : privateClass +> : ^^^^^^^^^^^^ + } + set myPublicMethod(param: privateClass) { // Error +>myPublicMethod : privateClass +> : ^^^^^^^^^^^^ +>param : privateClass +> : ^^^^^^^^^^^^ + } + private set myPrivateMethod(param: privateClass) { +>myPrivateMethod : privateClass +> : ^^^^^^^^^^^^ +>param : privateClass +> : ^^^^^^^^^^^^ + } + } + + export class publicClassWithWithPublicSetAccessorTypes { +>publicClassWithWithPublicSetAccessorTypes : publicClassWithWithPublicSetAccessorTypes +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static set myPublicStaticMethod(param: publicClass) { +>myPublicStaticMethod : publicClass +> : ^^^^^^^^^^^ +>param : publicClass +> : ^^^^^^^^^^^ + } + private static set myPrivateStaticMethod(param: publicClass) { +>myPrivateStaticMethod : publicClass +> : ^^^^^^^^^^^ +>param : publicClass +> : ^^^^^^^^^^^ + } + set myPublicMethod(param: publicClass) { +>myPublicMethod : publicClass +> : ^^^^^^^^^^^ +>param : publicClass +> : ^^^^^^^^^^^ + } + private set myPrivateMethod(param: publicClass) { +>myPrivateMethod : publicClass +> : ^^^^^^^^^^^ +>param : publicClass +> : ^^^^^^^^^^^ + } + } + + class privateClassWithWithPrivateSetAccessorTypes { +>privateClassWithWithPrivateSetAccessorTypes : privateClassWithWithPrivateSetAccessorTypes +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static set myPublicStaticMethod(param: privateClass) { +>myPublicStaticMethod : privateClass +> : ^^^^^^^^^^^^ +>param : privateClass +> : ^^^^^^^^^^^^ + } + private static set myPrivateStaticMethod(param: privateClass) { +>myPrivateStaticMethod : privateClass +> : ^^^^^^^^^^^^ +>param : privateClass +> : ^^^^^^^^^^^^ + } + set myPublicMethod(param: privateClass) { +>myPublicMethod : privateClass +> : ^^^^^^^^^^^^ +>param : privateClass +> : ^^^^^^^^^^^^ + } + private set myPrivateMethod(param: privateClass) { +>myPrivateMethod : privateClass +> : ^^^^^^^^^^^^ +>param : privateClass +> : ^^^^^^^^^^^^ + } + } + + class privateClassWithWithPublicSetAccessorTypes { +>privateClassWithWithPublicSetAccessorTypes : privateClassWithWithPublicSetAccessorTypes +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static set myPublicStaticMethod(param: publicClass) { +>myPublicStaticMethod : publicClass +> : ^^^^^^^^^^^ +>param : publicClass +> : ^^^^^^^^^^^ + } + private static set myPrivateStaticMethod(param: publicClass) { +>myPrivateStaticMethod : publicClass +> : ^^^^^^^^^^^ +>param : publicClass +> : ^^^^^^^^^^^ + } + set myPublicMethod(param: publicClass) { +>myPublicMethod : publicClass +> : ^^^^^^^^^^^ +>param : publicClass +> : ^^^^^^^^^^^ + } + private set myPrivateMethod(param: publicClass) { +>myPrivateMethod : publicClass +> : ^^^^^^^^^^^ +>param : publicClass +> : ^^^^^^^^^^^ + } + } + + export class publicClassWithPrivateModuleGetAccessorTypes { +>publicClassWithPrivateModuleGetAccessorTypes : publicClassWithPrivateModuleGetAccessorTypes +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static get myPublicStaticMethod(): privateModule.publicClass { // Error +>myPublicStaticMethod : privateModule.publicClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>privateModule : any +> : ^^^ + + return null; + } + get myPublicMethod(): privateModule.publicClass { // Error +>myPublicMethod : privateModule.publicClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>privateModule : any +> : ^^^ + + return null; + } + static get myPublicStaticMethod1() { // Error +>myPublicStaticMethod1 : privateModule.publicClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ + + return new privateModule.publicClass(); +>new privateModule.publicClass() : privateModule.publicClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>privateModule.publicClass : typeof privateModule.publicClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>privateModule : typeof privateModule +> : ^^^^^^^^^^^^^^^^^^^^ +>publicClass : typeof privateModule.publicClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + } + get myPublicMethod1() { // Error +>myPublicMethod1 : privateModule.publicClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ + + return new privateModule.publicClass(); +>new privateModule.publicClass() : privateModule.publicClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>privateModule.publicClass : typeof privateModule.publicClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>privateModule : typeof privateModule +> : ^^^^^^^^^^^^^^^^^^^^ +>publicClass : typeof privateModule.publicClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + } + } + + export class publicClassWithPrivateModuleSetAccessorTypes { +>publicClassWithPrivateModuleSetAccessorTypes : publicClassWithPrivateModuleSetAccessorTypes +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static set myPublicStaticMethod(param: privateModule.publicClass) { // Error +>myPublicStaticMethod : privateModule.publicClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>param : privateModule.publicClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>privateModule : any +> : ^^^ + } + set myPublicMethod(param: privateModule.publicClass) { // Error +>myPublicMethod : privateModule.publicClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>param : privateModule.publicClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>privateModule : any +> : ^^^ + } + } + + class privateClassWithPrivateModuleGetAccessorTypes { +>privateClassWithPrivateModuleGetAccessorTypes : privateClassWithPrivateModuleGetAccessorTypes +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static get myPublicStaticMethod(): privateModule.publicClass { +>myPublicStaticMethod : privateModule.publicClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>privateModule : any +> : ^^^ + + return null; + } + get myPublicMethod(): privateModule.publicClass { +>myPublicMethod : privateModule.publicClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>privateModule : any +> : ^^^ + + return null; + } + static get myPublicStaticMethod1() { +>myPublicStaticMethod1 : privateModule.publicClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ + + return new privateModule.publicClass(); +>new privateModule.publicClass() : privateModule.publicClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>privateModule.publicClass : typeof privateModule.publicClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>privateModule : typeof privateModule +> : ^^^^^^^^^^^^^^^^^^^^ +>publicClass : typeof privateModule.publicClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + } + get myPublicMethod1() { +>myPublicMethod1 : privateModule.publicClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ + + return new privateModule.publicClass(); +>new privateModule.publicClass() : privateModule.publicClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>privateModule.publicClass : typeof privateModule.publicClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>privateModule : typeof privateModule +> : ^^^^^^^^^^^^^^^^^^^^ +>publicClass : typeof privateModule.publicClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + } + } + + class privateClassWithPrivateModuleSetAccessorTypes { +>privateClassWithPrivateModuleSetAccessorTypes : privateClassWithPrivateModuleSetAccessorTypes +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static set myPublicStaticMethod(param: privateModule.publicClass) { +>myPublicStaticMethod : privateModule.publicClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>param : privateModule.publicClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>privateModule : any +> : ^^^ + } + set myPublicMethod(param: privateModule.publicClass) { +>myPublicMethod : privateModule.publicClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>param : privateModule.publicClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>privateModule : any +> : ^^^ + } + } +} + +namespace privateModule { +>privateModule : typeof privateModule +> : ^^^^^^^^^^^^^^^^^^^^ + + class privateClass { +>privateClass : privateClass +> : ^^^^^^^^^^^^ + } + + export class publicClass { +>publicClass : publicClass +> : ^^^^^^^^^^^ + } + export class publicClassWithWithPrivateGetAccessorTypes { +>publicClassWithWithPrivateGetAccessorTypes : publicClassWithWithPrivateGetAccessorTypes +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static get myPublicStaticMethod(): privateClass { +>myPublicStaticMethod : privateClass +> : ^^^^^^^^^^^^ + + return null; + } + private static get myPrivateStaticMethod(): privateClass { +>myPrivateStaticMethod : privateClass +> : ^^^^^^^^^^^^ + + return null; + } + get myPublicMethod(): privateClass { +>myPublicMethod : privateClass +> : ^^^^^^^^^^^^ + + return null; + } + private get myPrivateMethod(): privateClass { +>myPrivateMethod : privateClass +> : ^^^^^^^^^^^^ + + return null; + } + static get myPublicStaticMethod1() { +>myPublicStaticMethod1 : privateClass +> : ^^^^^^^^^^^^ + + return new privateClass(); +>new privateClass() : privateClass +> : ^^^^^^^^^^^^ +>privateClass : typeof privateClass +> : ^^^^^^^^^^^^^^^^^^^ + } + private static get myPrivateStaticMethod1() { +>myPrivateStaticMethod1 : privateClass +> : ^^^^^^^^^^^^ + + return new privateClass(); +>new privateClass() : privateClass +> : ^^^^^^^^^^^^ +>privateClass : typeof privateClass +> : ^^^^^^^^^^^^^^^^^^^ + } + get myPublicMethod1() { +>myPublicMethod1 : privateClass +> : ^^^^^^^^^^^^ + + return new privateClass(); +>new privateClass() : privateClass +> : ^^^^^^^^^^^^ +>privateClass : typeof privateClass +> : ^^^^^^^^^^^^^^^^^^^ + } + private get myPrivateMethod1() { +>myPrivateMethod1 : privateClass +> : ^^^^^^^^^^^^ + + return new privateClass(); +>new privateClass() : privateClass +> : ^^^^^^^^^^^^ +>privateClass : typeof privateClass +> : ^^^^^^^^^^^^^^^^^^^ + } + } + + export class publicClassWithWithPublicGetAccessorTypes { +>publicClassWithWithPublicGetAccessorTypes : publicClassWithWithPublicGetAccessorTypes +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static get myPublicStaticMethod(): publicClass { +>myPublicStaticMethod : publicClass +> : ^^^^^^^^^^^ + + return null; + } + private static get myPrivateStaticMethod(): publicClass { +>myPrivateStaticMethod : publicClass +> : ^^^^^^^^^^^ + + return null; + } + get myPublicMethod(): publicClass { +>myPublicMethod : publicClass +> : ^^^^^^^^^^^ + + return null; + } + private get myPrivateMethod(): publicClass { +>myPrivateMethod : publicClass +> : ^^^^^^^^^^^ + + return null; + } + static get myPublicStaticMethod1() { +>myPublicStaticMethod1 : publicClass +> : ^^^^^^^^^^^ + + return new publicClass(); +>new publicClass() : publicClass +> : ^^^^^^^^^^^ +>publicClass : typeof publicClass +> : ^^^^^^^^^^^^^^^^^^ + } + private static get myPrivateStaticMethod1() { +>myPrivateStaticMethod1 : publicClass +> : ^^^^^^^^^^^ + + return new publicClass(); +>new publicClass() : publicClass +> : ^^^^^^^^^^^ +>publicClass : typeof publicClass +> : ^^^^^^^^^^^^^^^^^^ + } + get myPublicMethod1() { +>myPublicMethod1 : publicClass +> : ^^^^^^^^^^^ + + return new publicClass(); +>new publicClass() : publicClass +> : ^^^^^^^^^^^ +>publicClass : typeof publicClass +> : ^^^^^^^^^^^^^^^^^^ + } + private get myPrivateMethod1() { +>myPrivateMethod1 : publicClass +> : ^^^^^^^^^^^ + + return new publicClass(); +>new publicClass() : publicClass +> : ^^^^^^^^^^^ +>publicClass : typeof publicClass +> : ^^^^^^^^^^^^^^^^^^ + } + } + + class privateClassWithWithPrivateGetAccessorTypes { +>privateClassWithWithPrivateGetAccessorTypes : privateClassWithWithPrivateGetAccessorTypes +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static get myPublicStaticMethod(): privateClass { +>myPublicStaticMethod : privateClass +> : ^^^^^^^^^^^^ + + return null; + } + private static get myPrivateStaticMethod(): privateClass { +>myPrivateStaticMethod : privateClass +> : ^^^^^^^^^^^^ + + return null; + } + get myPublicMethod(): privateClass { +>myPublicMethod : privateClass +> : ^^^^^^^^^^^^ + + return null; + } + private get myPrivateMethod(): privateClass { +>myPrivateMethod : privateClass +> : ^^^^^^^^^^^^ + + return null; + } + static get myPublicStaticMethod1() { +>myPublicStaticMethod1 : privateClass +> : ^^^^^^^^^^^^ + + return new privateClass(); +>new privateClass() : privateClass +> : ^^^^^^^^^^^^ +>privateClass : typeof privateClass +> : ^^^^^^^^^^^^^^^^^^^ + } + private static get myPrivateStaticMethod1() { +>myPrivateStaticMethod1 : privateClass +> : ^^^^^^^^^^^^ + + return new privateClass(); +>new privateClass() : privateClass +> : ^^^^^^^^^^^^ +>privateClass : typeof privateClass +> : ^^^^^^^^^^^^^^^^^^^ + } + get myPublicMethod1() { +>myPublicMethod1 : privateClass +> : ^^^^^^^^^^^^ + + return new privateClass(); +>new privateClass() : privateClass +> : ^^^^^^^^^^^^ +>privateClass : typeof privateClass +> : ^^^^^^^^^^^^^^^^^^^ + } + private get myPrivateMethod1() { +>myPrivateMethod1 : privateClass +> : ^^^^^^^^^^^^ + + return new privateClass(); +>new privateClass() : privateClass +> : ^^^^^^^^^^^^ +>privateClass : typeof privateClass +> : ^^^^^^^^^^^^^^^^^^^ + } + } + + class privateClassWithWithPublicGetAccessorTypes { +>privateClassWithWithPublicGetAccessorTypes : privateClassWithWithPublicGetAccessorTypes +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static get myPublicStaticMethod(): publicClass { +>myPublicStaticMethod : publicClass +> : ^^^^^^^^^^^ + + return null; + } + private static get myPrivateStaticMethod(): publicClass { +>myPrivateStaticMethod : publicClass +> : ^^^^^^^^^^^ + + return null; + } + get myPublicMethod(): publicClass { +>myPublicMethod : publicClass +> : ^^^^^^^^^^^ + + return null; + } + private get myPrivateMethod(): publicClass { +>myPrivateMethod : publicClass +> : ^^^^^^^^^^^ + + return null; + } + static get myPublicStaticMethod1() { +>myPublicStaticMethod1 : publicClass +> : ^^^^^^^^^^^ + + return new publicClass(); +>new publicClass() : publicClass +> : ^^^^^^^^^^^ +>publicClass : typeof publicClass +> : ^^^^^^^^^^^^^^^^^^ + } + private static get myPrivateStaticMethod1() { +>myPrivateStaticMethod1 : publicClass +> : ^^^^^^^^^^^ + + return new publicClass(); +>new publicClass() : publicClass +> : ^^^^^^^^^^^ +>publicClass : typeof publicClass +> : ^^^^^^^^^^^^^^^^^^ + } + get myPublicMethod1() { +>myPublicMethod1 : publicClass +> : ^^^^^^^^^^^ + + return new publicClass(); +>new publicClass() : publicClass +> : ^^^^^^^^^^^ +>publicClass : typeof publicClass +> : ^^^^^^^^^^^^^^^^^^ + } + private get myPrivateMethod1() { +>myPrivateMethod1 : publicClass +> : ^^^^^^^^^^^ + + return new publicClass(); +>new publicClass() : publicClass +> : ^^^^^^^^^^^ +>publicClass : typeof publicClass +> : ^^^^^^^^^^^^^^^^^^ + } + } + + export class publicClassWithWithPrivateSetAccessorTypes { +>publicClassWithWithPrivateSetAccessorTypes : publicClassWithWithPrivateSetAccessorTypes +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static set myPublicStaticMethod(param: privateClass) { +>myPublicStaticMethod : privateClass +> : ^^^^^^^^^^^^ +>param : privateClass +> : ^^^^^^^^^^^^ + } + private static set myPrivateStaticMethod(param: privateClass) { +>myPrivateStaticMethod : privateClass +> : ^^^^^^^^^^^^ +>param : privateClass +> : ^^^^^^^^^^^^ + } + set myPublicMethod(param: privateClass) { +>myPublicMethod : privateClass +> : ^^^^^^^^^^^^ +>param : privateClass +> : ^^^^^^^^^^^^ + } + private set myPrivateMethod(param: privateClass) { +>myPrivateMethod : privateClass +> : ^^^^^^^^^^^^ +>param : privateClass +> : ^^^^^^^^^^^^ + } + } + + export class publicClassWithWithPublicSetAccessorTypes { +>publicClassWithWithPublicSetAccessorTypes : publicClassWithWithPublicSetAccessorTypes +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static set myPublicStaticMethod(param: publicClass) { +>myPublicStaticMethod : publicClass +> : ^^^^^^^^^^^ +>param : publicClass +> : ^^^^^^^^^^^ + } + private static set myPrivateStaticMethod(param: publicClass) { +>myPrivateStaticMethod : publicClass +> : ^^^^^^^^^^^ +>param : publicClass +> : ^^^^^^^^^^^ + } + set myPublicMethod(param: publicClass) { +>myPublicMethod : publicClass +> : ^^^^^^^^^^^ +>param : publicClass +> : ^^^^^^^^^^^ + } + private set myPrivateMethod(param: publicClass) { +>myPrivateMethod : publicClass +> : ^^^^^^^^^^^ +>param : publicClass +> : ^^^^^^^^^^^ + } + } + + class privateClassWithWithPrivateSetAccessorTypes { +>privateClassWithWithPrivateSetAccessorTypes : privateClassWithWithPrivateSetAccessorTypes +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static set myPublicStaticMethod(param: privateClass) { +>myPublicStaticMethod : privateClass +> : ^^^^^^^^^^^^ +>param : privateClass +> : ^^^^^^^^^^^^ + } + private static set myPrivateStaticMethod(param: privateClass) { +>myPrivateStaticMethod : privateClass +> : ^^^^^^^^^^^^ +>param : privateClass +> : ^^^^^^^^^^^^ + } + set myPublicMethod(param: privateClass) { +>myPublicMethod : privateClass +> : ^^^^^^^^^^^^ +>param : privateClass +> : ^^^^^^^^^^^^ + } + private set myPrivateMethod(param: privateClass) { +>myPrivateMethod : privateClass +> : ^^^^^^^^^^^^ +>param : privateClass +> : ^^^^^^^^^^^^ + } + } + + class privateClassWithWithPublicSetAccessorTypes { +>privateClassWithWithPublicSetAccessorTypes : privateClassWithWithPublicSetAccessorTypes +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static set myPublicStaticMethod(param: publicClass) { +>myPublicStaticMethod : publicClass +> : ^^^^^^^^^^^ +>param : publicClass +> : ^^^^^^^^^^^ + } + private static set myPrivateStaticMethod(param: publicClass) { +>myPrivateStaticMethod : publicClass +> : ^^^^^^^^^^^ +>param : publicClass +> : ^^^^^^^^^^^ + } + set myPublicMethod(param: publicClass) { +>myPublicMethod : publicClass +> : ^^^^^^^^^^^ +>param : publicClass +> : ^^^^^^^^^^^ + } + private set myPrivateMethod(param: publicClass) { +>myPrivateMethod : publicClass +> : ^^^^^^^^^^^ +>param : publicClass +> : ^^^^^^^^^^^ + } + } + + export class publicClassWithPrivateModuleGetAccessorTypes { +>publicClassWithPrivateModuleGetAccessorTypes : publicClassWithPrivateModuleGetAccessorTypes +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static get myPublicStaticMethod(): privateModule.publicClass { +>myPublicStaticMethod : publicClass +> : ^^^^^^^^^^^ +>privateModule : any +> : ^^^ + + return null; + } + get myPublicMethod(): privateModule.publicClass { +>myPublicMethod : publicClass +> : ^^^^^^^^^^^ +>privateModule : any +> : ^^^ + + return null; + } + static get myPublicStaticMethod1() { +>myPublicStaticMethod1 : publicClass +> : ^^^^^^^^^^^ + + return new privateModule.publicClass(); +>new privateModule.publicClass() : publicClass +> : ^^^^^^^^^^^ +>privateModule.publicClass : typeof publicClass +> : ^^^^^^^^^^^^^^^^^^ +>privateModule : typeof privateModule +> : ^^^^^^^^^^^^^^^^^^^^ +>publicClass : typeof publicClass +> : ^^^^^^^^^^^^^^^^^^ + } + get myPublicMethod1() { +>myPublicMethod1 : publicClass +> : ^^^^^^^^^^^ + + return new privateModule.publicClass(); +>new privateModule.publicClass() : publicClass +> : ^^^^^^^^^^^ +>privateModule.publicClass : typeof publicClass +> : ^^^^^^^^^^^^^^^^^^ +>privateModule : typeof privateModule +> : ^^^^^^^^^^^^^^^^^^^^ +>publicClass : typeof publicClass +> : ^^^^^^^^^^^^^^^^^^ + } + } + + export class publicClassWithPrivateModuleSetAccessorTypes { +>publicClassWithPrivateModuleSetAccessorTypes : publicClassWithPrivateModuleSetAccessorTypes +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static set myPublicStaticMethod(param: privateModule.publicClass) { +>myPublicStaticMethod : publicClass +> : ^^^^^^^^^^^ +>param : publicClass +> : ^^^^^^^^^^^ +>privateModule : any +> : ^^^ + } + set myPublicMethod(param: privateModule.publicClass) { +>myPublicMethod : publicClass +> : ^^^^^^^^^^^ +>param : publicClass +> : ^^^^^^^^^^^ +>privateModule : any +> : ^^^ + } + } + + class privateClassWithPrivateModuleGetAccessorTypes { +>privateClassWithPrivateModuleGetAccessorTypes : privateClassWithPrivateModuleGetAccessorTypes +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static get myPublicStaticMethod(): privateModule.publicClass { +>myPublicStaticMethod : publicClass +> : ^^^^^^^^^^^ +>privateModule : any +> : ^^^ + + return null; + } + get myPublicMethod(): privateModule.publicClass { +>myPublicMethod : publicClass +> : ^^^^^^^^^^^ +>privateModule : any +> : ^^^ + + return null; + } + static get myPublicStaticMethod1() { +>myPublicStaticMethod1 : publicClass +> : ^^^^^^^^^^^ + + return new privateModule.publicClass(); +>new privateModule.publicClass() : publicClass +> : ^^^^^^^^^^^ +>privateModule.publicClass : typeof publicClass +> : ^^^^^^^^^^^^^^^^^^ +>privateModule : typeof privateModule +> : ^^^^^^^^^^^^^^^^^^^^ +>publicClass : typeof publicClass +> : ^^^^^^^^^^^^^^^^^^ + } + get myPublicMethod1() { +>myPublicMethod1 : publicClass +> : ^^^^^^^^^^^ + + return new privateModule.publicClass(); +>new privateModule.publicClass() : publicClass +> : ^^^^^^^^^^^ +>privateModule.publicClass : typeof publicClass +> : ^^^^^^^^^^^^^^^^^^ +>privateModule : typeof privateModule +> : ^^^^^^^^^^^^^^^^^^^^ +>publicClass : typeof publicClass +> : ^^^^^^^^^^^^^^^^^^ + } + } + + class privateClassWithPrivateModuleSetAccessorTypes { +>privateClassWithPrivateModuleSetAccessorTypes : privateClassWithPrivateModuleSetAccessorTypes +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static set myPublicStaticMethod(param: privateModule.publicClass) { +>myPublicStaticMethod : publicClass +> : ^^^^^^^^^^^ +>param : publicClass +> : ^^^^^^^^^^^ +>privateModule : any +> : ^^^ + } + set myPublicMethod(param: privateModule.publicClass) { +>myPublicMethod : publicClass +> : ^^^^^^^^^^^ +>param : publicClass +> : ^^^^^^^^^^^ +>privateModule : any +> : ^^^ + } + } +} + +=== privacyAccessorDeclFile_GlobalFile.ts === +class publicClassInGlobal { +>publicClassInGlobal : publicClassInGlobal +> : ^^^^^^^^^^^^^^^^^^^ +} + +class publicClassInGlobalWithPublicGetAccessorTypes { +>publicClassInGlobalWithPublicGetAccessorTypes : publicClassInGlobalWithPublicGetAccessorTypes +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static get myPublicStaticMethod(): publicClassInGlobal { +>myPublicStaticMethod : publicClassInGlobal +> : ^^^^^^^^^^^^^^^^^^^ + + return null; + } + private static get myPrivateStaticMethod(): publicClassInGlobal { +>myPrivateStaticMethod : publicClassInGlobal +> : ^^^^^^^^^^^^^^^^^^^ + + return null; + } + get myPublicMethod(): publicClassInGlobal { +>myPublicMethod : publicClassInGlobal +> : ^^^^^^^^^^^^^^^^^^^ + + return null; + } + private get myPrivateMethod(): publicClassInGlobal { +>myPrivateMethod : publicClassInGlobal +> : ^^^^^^^^^^^^^^^^^^^ + + return null; + } + static get myPublicStaticMethod1() { +>myPublicStaticMethod1 : publicClassInGlobal +> : ^^^^^^^^^^^^^^^^^^^ + + return new publicClassInGlobal(); +>new publicClassInGlobal() : publicClassInGlobal +> : ^^^^^^^^^^^^^^^^^^^ +>publicClassInGlobal : typeof publicClassInGlobal +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^ + } + private static get myPrivateStaticMethod1() { +>myPrivateStaticMethod1 : publicClassInGlobal +> : ^^^^^^^^^^^^^^^^^^^ + + return new publicClassInGlobal(); +>new publicClassInGlobal() : publicClassInGlobal +> : ^^^^^^^^^^^^^^^^^^^ +>publicClassInGlobal : typeof publicClassInGlobal +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^ + } + get myPublicMethod1() { +>myPublicMethod1 : publicClassInGlobal +> : ^^^^^^^^^^^^^^^^^^^ + + return new publicClassInGlobal(); +>new publicClassInGlobal() : publicClassInGlobal +> : ^^^^^^^^^^^^^^^^^^^ +>publicClassInGlobal : typeof publicClassInGlobal +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^ + } + private get myPrivateMethod1() { +>myPrivateMethod1 : publicClassInGlobal +> : ^^^^^^^^^^^^^^^^^^^ + + return new publicClassInGlobal(); +>new publicClassInGlobal() : publicClassInGlobal +> : ^^^^^^^^^^^^^^^^^^^ +>publicClassInGlobal : typeof publicClassInGlobal +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^ + } +} + +class publicClassInGlobalWithWithPublicSetAccessorTypes { +>publicClassInGlobalWithWithPublicSetAccessorTypes : publicClassInGlobalWithWithPublicSetAccessorTypes +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static set myPublicStaticMethod(param: publicClassInGlobal) { +>myPublicStaticMethod : publicClassInGlobal +> : ^^^^^^^^^^^^^^^^^^^ +>param : publicClassInGlobal +> : ^^^^^^^^^^^^^^^^^^^ + } + private static set myPrivateStaticMethod(param: publicClassInGlobal) { +>myPrivateStaticMethod : publicClassInGlobal +> : ^^^^^^^^^^^^^^^^^^^ +>param : publicClassInGlobal +> : ^^^^^^^^^^^^^^^^^^^ + } + set myPublicMethod(param: publicClassInGlobal) { +>myPublicMethod : publicClassInGlobal +> : ^^^^^^^^^^^^^^^^^^^ +>param : publicClassInGlobal +> : ^^^^^^^^^^^^^^^^^^^ + } + private set myPrivateMethod(param: publicClassInGlobal) { +>myPrivateMethod : publicClassInGlobal +> : ^^^^^^^^^^^^^^^^^^^ +>param : publicClassInGlobal +> : ^^^^^^^^^^^^^^^^^^^ + } +} + +namespace publicModuleInGlobal { +>publicModuleInGlobal : typeof publicModuleInGlobal +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + class privateClass { +>privateClass : privateClass +> : ^^^^^^^^^^^^ + } + + export class publicClass { +>publicClass : publicClass +> : ^^^^^^^^^^^ + } + + namespace privateModule { +>privateModule : typeof privateModule +> : ^^^^^^^^^^^^^^^^^^^^ + + class privateClass { +>privateClass : privateClass +> : ^^^^^^^^^^^^ + } + + export class publicClass { +>publicClass : publicClass +> : ^^^^^^^^^^^ + } + export class publicClassWithWithPrivateGetAccessorTypes { +>publicClassWithWithPrivateGetAccessorTypes : publicClassWithWithPrivateGetAccessorTypes +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static get myPublicStaticMethod(): privateClass { +>myPublicStaticMethod : privateClass +> : ^^^^^^^^^^^^ + + return null; + } + private static get myPrivateStaticMethod(): privateClass { +>myPrivateStaticMethod : privateClass +> : ^^^^^^^^^^^^ + + return null; + } + get myPublicMethod(): privateClass { +>myPublicMethod : privateClass +> : ^^^^^^^^^^^^ + + return null; + } + private get myPrivateMethod(): privateClass { +>myPrivateMethod : privateClass +> : ^^^^^^^^^^^^ + + return null; + } + static get myPublicStaticMethod1() { +>myPublicStaticMethod1 : privateClass +> : ^^^^^^^^^^^^ + + return new privateClass(); +>new privateClass() : privateClass +> : ^^^^^^^^^^^^ +>privateClass : typeof privateClass +> : ^^^^^^^^^^^^^^^^^^^ + } + private static get myPrivateStaticMethod1() { +>myPrivateStaticMethod1 : privateClass +> : ^^^^^^^^^^^^ + + return new privateClass(); +>new privateClass() : privateClass +> : ^^^^^^^^^^^^ +>privateClass : typeof privateClass +> : ^^^^^^^^^^^^^^^^^^^ + } + get myPublicMethod1() { +>myPublicMethod1 : privateClass +> : ^^^^^^^^^^^^ + + return new privateClass(); +>new privateClass() : privateClass +> : ^^^^^^^^^^^^ +>privateClass : typeof privateClass +> : ^^^^^^^^^^^^^^^^^^^ + } + private get myPrivateMethod1() { +>myPrivateMethod1 : privateClass +> : ^^^^^^^^^^^^ + + return new privateClass(); +>new privateClass() : privateClass +> : ^^^^^^^^^^^^ +>privateClass : typeof privateClass +> : ^^^^^^^^^^^^^^^^^^^ + } + } + + export class publicClassWithWithPublicGetAccessorTypes { +>publicClassWithWithPublicGetAccessorTypes : publicClassWithWithPublicGetAccessorTypes +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static get myPublicStaticMethod(): publicClass { +>myPublicStaticMethod : publicClass +> : ^^^^^^^^^^^ + + return null; + } + private static get myPrivateStaticMethod(): publicClass { +>myPrivateStaticMethod : publicClass +> : ^^^^^^^^^^^ + + return null; + } + get myPublicMethod(): publicClass { +>myPublicMethod : publicClass +> : ^^^^^^^^^^^ + + return null; + } + private get myPrivateMethod(): publicClass { +>myPrivateMethod : publicClass +> : ^^^^^^^^^^^ + + return null; + } + static get myPublicStaticMethod1() { +>myPublicStaticMethod1 : publicClass +> : ^^^^^^^^^^^ + + return new publicClass(); +>new publicClass() : publicClass +> : ^^^^^^^^^^^ +>publicClass : typeof publicClass +> : ^^^^^^^^^^^^^^^^^^ + } + private static get myPrivateStaticMethod1() { +>myPrivateStaticMethod1 : publicClass +> : ^^^^^^^^^^^ + + return new publicClass(); +>new publicClass() : publicClass +> : ^^^^^^^^^^^ +>publicClass : typeof publicClass +> : ^^^^^^^^^^^^^^^^^^ + } + get myPublicMethod1() { +>myPublicMethod1 : publicClass +> : ^^^^^^^^^^^ + + return new publicClass(); +>new publicClass() : publicClass +> : ^^^^^^^^^^^ +>publicClass : typeof publicClass +> : ^^^^^^^^^^^^^^^^^^ + } + private get myPrivateMethod1() { +>myPrivateMethod1 : publicClass +> : ^^^^^^^^^^^ + + return new publicClass(); +>new publicClass() : publicClass +> : ^^^^^^^^^^^ +>publicClass : typeof publicClass +> : ^^^^^^^^^^^^^^^^^^ + } + } + + class privateClassWithWithPrivateGetAccessorTypes { +>privateClassWithWithPrivateGetAccessorTypes : privateClassWithWithPrivateGetAccessorTypes +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static get myPublicStaticMethod(): privateClass { +>myPublicStaticMethod : privateClass +> : ^^^^^^^^^^^^ + + return null; + } + private static get myPrivateStaticMethod(): privateClass { +>myPrivateStaticMethod : privateClass +> : ^^^^^^^^^^^^ + + return null; + } + get myPublicMethod(): privateClass { +>myPublicMethod : privateClass +> : ^^^^^^^^^^^^ + + return null; + } + private get myPrivateMethod(): privateClass { +>myPrivateMethod : privateClass +> : ^^^^^^^^^^^^ + + return null; + } + static get myPublicStaticMethod1() { +>myPublicStaticMethod1 : privateClass +> : ^^^^^^^^^^^^ + + return new privateClass(); +>new privateClass() : privateClass +> : ^^^^^^^^^^^^ +>privateClass : typeof privateClass +> : ^^^^^^^^^^^^^^^^^^^ + } + private static get myPrivateStaticMethod1() { +>myPrivateStaticMethod1 : privateClass +> : ^^^^^^^^^^^^ + + return new privateClass(); +>new privateClass() : privateClass +> : ^^^^^^^^^^^^ +>privateClass : typeof privateClass +> : ^^^^^^^^^^^^^^^^^^^ + } + get myPublicMethod1() { +>myPublicMethod1 : privateClass +> : ^^^^^^^^^^^^ + + return new privateClass(); +>new privateClass() : privateClass +> : ^^^^^^^^^^^^ +>privateClass : typeof privateClass +> : ^^^^^^^^^^^^^^^^^^^ + } + private get myPrivateMethod1() { +>myPrivateMethod1 : privateClass +> : ^^^^^^^^^^^^ + + return new privateClass(); +>new privateClass() : privateClass +> : ^^^^^^^^^^^^ +>privateClass : typeof privateClass +> : ^^^^^^^^^^^^^^^^^^^ + } + } + + class privateClassWithWithPublicGetAccessorTypes { +>privateClassWithWithPublicGetAccessorTypes : privateClassWithWithPublicGetAccessorTypes +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static get myPublicStaticMethod(): publicClass { +>myPublicStaticMethod : publicClass +> : ^^^^^^^^^^^ + + return null; + } + private static get myPrivateStaticMethod(): publicClass { +>myPrivateStaticMethod : publicClass +> : ^^^^^^^^^^^ + + return null; + } + get myPublicMethod(): publicClass { +>myPublicMethod : publicClass +> : ^^^^^^^^^^^ + + return null; + } + private get myPrivateMethod(): publicClass { +>myPrivateMethod : publicClass +> : ^^^^^^^^^^^ + + return null; + } + static get myPublicStaticMethod1() { +>myPublicStaticMethod1 : publicClass +> : ^^^^^^^^^^^ + + return new publicClass(); +>new publicClass() : publicClass +> : ^^^^^^^^^^^ +>publicClass : typeof publicClass +> : ^^^^^^^^^^^^^^^^^^ + } + private static get myPrivateStaticMethod1() { +>myPrivateStaticMethod1 : publicClass +> : ^^^^^^^^^^^ + + return new publicClass(); +>new publicClass() : publicClass +> : ^^^^^^^^^^^ +>publicClass : typeof publicClass +> : ^^^^^^^^^^^^^^^^^^ + } + get myPublicMethod1() { +>myPublicMethod1 : publicClass +> : ^^^^^^^^^^^ + + return new publicClass(); +>new publicClass() : publicClass +> : ^^^^^^^^^^^ +>publicClass : typeof publicClass +> : ^^^^^^^^^^^^^^^^^^ + } + private get myPrivateMethod1() { +>myPrivateMethod1 : publicClass +> : ^^^^^^^^^^^ + + return new publicClass(); +>new publicClass() : publicClass +> : ^^^^^^^^^^^ +>publicClass : typeof publicClass +> : ^^^^^^^^^^^^^^^^^^ + } + } + + export class publicClassWithWithPrivateSetAccessorTypes { +>publicClassWithWithPrivateSetAccessorTypes : publicClassWithWithPrivateSetAccessorTypes +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static set myPublicStaticMethod(param: privateClass) { +>myPublicStaticMethod : privateClass +> : ^^^^^^^^^^^^ +>param : privateClass +> : ^^^^^^^^^^^^ + } + private static set myPrivateStaticMethod(param: privateClass) { +>myPrivateStaticMethod : privateClass +> : ^^^^^^^^^^^^ +>param : privateClass +> : ^^^^^^^^^^^^ + } + set myPublicMethod(param: privateClass) { +>myPublicMethod : privateClass +> : ^^^^^^^^^^^^ +>param : privateClass +> : ^^^^^^^^^^^^ + } + private set myPrivateMethod(param: privateClass) { +>myPrivateMethod : privateClass +> : ^^^^^^^^^^^^ +>param : privateClass +> : ^^^^^^^^^^^^ + } + } + + export class publicClassWithWithPublicSetAccessorTypes { +>publicClassWithWithPublicSetAccessorTypes : publicClassWithWithPublicSetAccessorTypes +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static set myPublicStaticMethod(param: publicClass) { +>myPublicStaticMethod : publicClass +> : ^^^^^^^^^^^ +>param : publicClass +> : ^^^^^^^^^^^ + } + private static set myPrivateStaticMethod(param: publicClass) { +>myPrivateStaticMethod : publicClass +> : ^^^^^^^^^^^ +>param : publicClass +> : ^^^^^^^^^^^ + } + set myPublicMethod(param: publicClass) { +>myPublicMethod : publicClass +> : ^^^^^^^^^^^ +>param : publicClass +> : ^^^^^^^^^^^ + } + private set myPrivateMethod(param: publicClass) { +>myPrivateMethod : publicClass +> : ^^^^^^^^^^^ +>param : publicClass +> : ^^^^^^^^^^^ + } + } + + class privateClassWithWithPrivateSetAccessorTypes { +>privateClassWithWithPrivateSetAccessorTypes : privateClassWithWithPrivateSetAccessorTypes +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static set myPublicStaticMethod(param: privateClass) { +>myPublicStaticMethod : privateClass +> : ^^^^^^^^^^^^ +>param : privateClass +> : ^^^^^^^^^^^^ + } + private static set myPrivateStaticMethod(param: privateClass) { +>myPrivateStaticMethod : privateClass +> : ^^^^^^^^^^^^ +>param : privateClass +> : ^^^^^^^^^^^^ + } + set myPublicMethod(param: privateClass) { +>myPublicMethod : privateClass +> : ^^^^^^^^^^^^ +>param : privateClass +> : ^^^^^^^^^^^^ + } + private set myPrivateMethod(param: privateClass) { +>myPrivateMethod : privateClass +> : ^^^^^^^^^^^^ +>param : privateClass +> : ^^^^^^^^^^^^ + } + } + + class privateClassWithWithPublicSetAccessorTypes { +>privateClassWithWithPublicSetAccessorTypes : privateClassWithWithPublicSetAccessorTypes +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static set myPublicStaticMethod(param: publicClass) { +>myPublicStaticMethod : publicClass +> : ^^^^^^^^^^^ +>param : publicClass +> : ^^^^^^^^^^^ + } + private static set myPrivateStaticMethod(param: publicClass) { +>myPrivateStaticMethod : publicClass +> : ^^^^^^^^^^^ +>param : publicClass +> : ^^^^^^^^^^^ + } + set myPublicMethod(param: publicClass) { +>myPublicMethod : publicClass +> : ^^^^^^^^^^^ +>param : publicClass +> : ^^^^^^^^^^^ + } + private set myPrivateMethod(param: publicClass) { +>myPrivateMethod : publicClass +> : ^^^^^^^^^^^ +>param : publicClass +> : ^^^^^^^^^^^ + } + } + + export class publicClassWithPrivateModuleGetAccessorTypes { +>publicClassWithPrivateModuleGetAccessorTypes : publicClassWithPrivateModuleGetAccessorTypes +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static get myPublicStaticMethod(): privateModule.publicClass { +>myPublicStaticMethod : publicClass +> : ^^^^^^^^^^^ +>privateModule : any +> : ^^^ + + return null; + } + get myPublicMethod(): privateModule.publicClass { +>myPublicMethod : publicClass +> : ^^^^^^^^^^^ +>privateModule : any +> : ^^^ + + return null; + } + static get myPublicStaticMethod1() { +>myPublicStaticMethod1 : publicClass +> : ^^^^^^^^^^^ + + return new privateModule.publicClass(); +>new privateModule.publicClass() : publicClass +> : ^^^^^^^^^^^ +>privateModule.publicClass : typeof publicClass +> : ^^^^^^^^^^^^^^^^^^ +>privateModule : typeof privateModule +> : ^^^^^^^^^^^^^^^^^^^^ +>publicClass : typeof publicClass +> : ^^^^^^^^^^^^^^^^^^ + } + get myPublicMethod1() { +>myPublicMethod1 : publicClass +> : ^^^^^^^^^^^ + + return new privateModule.publicClass(); +>new privateModule.publicClass() : publicClass +> : ^^^^^^^^^^^ +>privateModule.publicClass : typeof publicClass +> : ^^^^^^^^^^^^^^^^^^ +>privateModule : typeof privateModule +> : ^^^^^^^^^^^^^^^^^^^^ +>publicClass : typeof publicClass +> : ^^^^^^^^^^^^^^^^^^ + } + } + + export class publicClassWithPrivateModuleSetAccessorTypes { +>publicClassWithPrivateModuleSetAccessorTypes : publicClassWithPrivateModuleSetAccessorTypes +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static set myPublicStaticMethod(param: privateModule.publicClass) { +>myPublicStaticMethod : publicClass +> : ^^^^^^^^^^^ +>param : publicClass +> : ^^^^^^^^^^^ +>privateModule : any +> : ^^^ + } + set myPublicMethod(param: privateModule.publicClass) { +>myPublicMethod : publicClass +> : ^^^^^^^^^^^ +>param : publicClass +> : ^^^^^^^^^^^ +>privateModule : any +> : ^^^ + } + } + + class privateClassWithPrivateModuleGetAccessorTypes { +>privateClassWithPrivateModuleGetAccessorTypes : privateClassWithPrivateModuleGetAccessorTypes +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static get myPublicStaticMethod(): privateModule.publicClass { +>myPublicStaticMethod : publicClass +> : ^^^^^^^^^^^ +>privateModule : any +> : ^^^ + + return null; + } + get myPublicMethod(): privateModule.publicClass { +>myPublicMethod : publicClass +> : ^^^^^^^^^^^ +>privateModule : any +> : ^^^ + + return null; + } + static get myPublicStaticMethod1() { +>myPublicStaticMethod1 : publicClass +> : ^^^^^^^^^^^ + + return new privateModule.publicClass(); +>new privateModule.publicClass() : publicClass +> : ^^^^^^^^^^^ +>privateModule.publicClass : typeof publicClass +> : ^^^^^^^^^^^^^^^^^^ +>privateModule : typeof privateModule +> : ^^^^^^^^^^^^^^^^^^^^ +>publicClass : typeof publicClass +> : ^^^^^^^^^^^^^^^^^^ + } + get myPublicMethod1() { +>myPublicMethod1 : publicClass +> : ^^^^^^^^^^^ + + return new privateModule.publicClass(); +>new privateModule.publicClass() : publicClass +> : ^^^^^^^^^^^ +>privateModule.publicClass : typeof publicClass +> : ^^^^^^^^^^^^^^^^^^ +>privateModule : typeof privateModule +> : ^^^^^^^^^^^^^^^^^^^^ +>publicClass : typeof publicClass +> : ^^^^^^^^^^^^^^^^^^ + } + } + + class privateClassWithPrivateModuleSetAccessorTypes { +>privateClassWithPrivateModuleSetAccessorTypes : privateClassWithPrivateModuleSetAccessorTypes +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static set myPublicStaticMethod(param: privateModule.publicClass) { +>myPublicStaticMethod : publicClass +> : ^^^^^^^^^^^ +>param : publicClass +> : ^^^^^^^^^^^ +>privateModule : any +> : ^^^ + } + set myPublicMethod(param: privateModule.publicClass) { +>myPublicMethod : publicClass +> : ^^^^^^^^^^^ +>param : publicClass +> : ^^^^^^^^^^^ +>privateModule : any +> : ^^^ + } + } + } + + export class publicClassWithWithPrivateGetAccessorTypes { +>publicClassWithWithPrivateGetAccessorTypes : publicClassWithWithPrivateGetAccessorTypes +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static get myPublicStaticMethod(): privateClass { // Error +>myPublicStaticMethod : privateClass +> : ^^^^^^^^^^^^ + + return null; + } + private static get myPrivateStaticMethod(): privateClass { +>myPrivateStaticMethod : privateClass +> : ^^^^^^^^^^^^ + + return null; + } + get myPublicMethod(): privateClass { // Error +>myPublicMethod : privateClass +> : ^^^^^^^^^^^^ + + return null; + } + private get myPrivateMethod(): privateClass { +>myPrivateMethod : privateClass +> : ^^^^^^^^^^^^ + + return null; + } + static get myPublicStaticMethod1() { // Error +>myPublicStaticMethod1 : privateClass +> : ^^^^^^^^^^^^ + + return new privateClass(); +>new privateClass() : privateClass +> : ^^^^^^^^^^^^ +>privateClass : typeof privateClass +> : ^^^^^^^^^^^^^^^^^^^ + } + private static get myPrivateStaticMethod1() { +>myPrivateStaticMethod1 : privateClass +> : ^^^^^^^^^^^^ + + return new privateClass(); +>new privateClass() : privateClass +> : ^^^^^^^^^^^^ +>privateClass : typeof privateClass +> : ^^^^^^^^^^^^^^^^^^^ + } + get myPublicMethod1() { // Error +>myPublicMethod1 : privateClass +> : ^^^^^^^^^^^^ + + return new privateClass(); +>new privateClass() : privateClass +> : ^^^^^^^^^^^^ +>privateClass : typeof privateClass +> : ^^^^^^^^^^^^^^^^^^^ + } + private get myPrivateMethod1() { +>myPrivateMethod1 : privateClass +> : ^^^^^^^^^^^^ + + return new privateClass(); +>new privateClass() : privateClass +> : ^^^^^^^^^^^^ +>privateClass : typeof privateClass +> : ^^^^^^^^^^^^^^^^^^^ + } + } + + export class publicClassWithWithPublicGetAccessorTypes { +>publicClassWithWithPublicGetAccessorTypes : publicClassWithWithPublicGetAccessorTypes +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static get myPublicStaticMethod(): publicClass { +>myPublicStaticMethod : publicClass +> : ^^^^^^^^^^^ + + return null; + } + private static get myPrivateStaticMethod(): publicClass { +>myPrivateStaticMethod : publicClass +> : ^^^^^^^^^^^ + + return null; + } + get myPublicMethod(): publicClass { +>myPublicMethod : publicClass +> : ^^^^^^^^^^^ + + return null; + } + private get myPrivateMethod(): publicClass { +>myPrivateMethod : publicClass +> : ^^^^^^^^^^^ + + return null; + } + static get myPublicStaticMethod1() { +>myPublicStaticMethod1 : publicClass +> : ^^^^^^^^^^^ + + return new publicClass(); +>new publicClass() : publicClass +> : ^^^^^^^^^^^ +>publicClass : typeof publicClass +> : ^^^^^^^^^^^^^^^^^^ + } + private static get myPrivateStaticMethod1() { +>myPrivateStaticMethod1 : publicClass +> : ^^^^^^^^^^^ + + return new publicClass(); +>new publicClass() : publicClass +> : ^^^^^^^^^^^ +>publicClass : typeof publicClass +> : ^^^^^^^^^^^^^^^^^^ + } + get myPublicMethod1() { +>myPublicMethod1 : publicClass +> : ^^^^^^^^^^^ + + return new publicClass(); +>new publicClass() : publicClass +> : ^^^^^^^^^^^ +>publicClass : typeof publicClass +> : ^^^^^^^^^^^^^^^^^^ + } + private get myPrivateMethod1() { +>myPrivateMethod1 : publicClass +> : ^^^^^^^^^^^ + + return new publicClass(); +>new publicClass() : publicClass +> : ^^^^^^^^^^^ +>publicClass : typeof publicClass +> : ^^^^^^^^^^^^^^^^^^ + } + } + + class privateClassWithWithPrivateGetAccessorTypes { +>privateClassWithWithPrivateGetAccessorTypes : privateClassWithWithPrivateGetAccessorTypes +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static get myPublicStaticMethod(): privateClass { +>myPublicStaticMethod : privateClass +> : ^^^^^^^^^^^^ + + return null; + } + private static get myPrivateStaticMethod(): privateClass { +>myPrivateStaticMethod : privateClass +> : ^^^^^^^^^^^^ + + return null; + } + get myPublicMethod(): privateClass { +>myPublicMethod : privateClass +> : ^^^^^^^^^^^^ + + return null; + } + private get myPrivateMethod(): privateClass { +>myPrivateMethod : privateClass +> : ^^^^^^^^^^^^ + + return null; + } + static get myPublicStaticMethod1() { +>myPublicStaticMethod1 : privateClass +> : ^^^^^^^^^^^^ + + return new privateClass(); +>new privateClass() : privateClass +> : ^^^^^^^^^^^^ +>privateClass : typeof privateClass +> : ^^^^^^^^^^^^^^^^^^^ + } + private static get myPrivateStaticMethod1() { +>myPrivateStaticMethod1 : privateClass +> : ^^^^^^^^^^^^ + + return new privateClass(); +>new privateClass() : privateClass +> : ^^^^^^^^^^^^ +>privateClass : typeof privateClass +> : ^^^^^^^^^^^^^^^^^^^ + } + get myPublicMethod1() { +>myPublicMethod1 : privateClass +> : ^^^^^^^^^^^^ + + return new privateClass(); +>new privateClass() : privateClass +> : ^^^^^^^^^^^^ +>privateClass : typeof privateClass +> : ^^^^^^^^^^^^^^^^^^^ + } + private get myPrivateMethod1() { +>myPrivateMethod1 : privateClass +> : ^^^^^^^^^^^^ + + return new privateClass(); +>new privateClass() : privateClass +> : ^^^^^^^^^^^^ +>privateClass : typeof privateClass +> : ^^^^^^^^^^^^^^^^^^^ + } + } + + class privateClassWithWithPublicGetAccessorTypes { +>privateClassWithWithPublicGetAccessorTypes : privateClassWithWithPublicGetAccessorTypes +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static get myPublicStaticMethod(): publicClass { +>myPublicStaticMethod : publicClass +> : ^^^^^^^^^^^ + + return null; + } + private static get myPrivateStaticMethod(): publicClass { +>myPrivateStaticMethod : publicClass +> : ^^^^^^^^^^^ + + return null; + } + get myPublicMethod(): publicClass { +>myPublicMethod : publicClass +> : ^^^^^^^^^^^ + + return null; + } + private get myPrivateMethod(): publicClass { +>myPrivateMethod : publicClass +> : ^^^^^^^^^^^ + + return null; + } + static get myPublicStaticMethod1() { +>myPublicStaticMethod1 : publicClass +> : ^^^^^^^^^^^ + + return new publicClass(); +>new publicClass() : publicClass +> : ^^^^^^^^^^^ +>publicClass : typeof publicClass +> : ^^^^^^^^^^^^^^^^^^ + } + private static get myPrivateStaticMethod1() { +>myPrivateStaticMethod1 : publicClass +> : ^^^^^^^^^^^ + + return new publicClass(); +>new publicClass() : publicClass +> : ^^^^^^^^^^^ +>publicClass : typeof publicClass +> : ^^^^^^^^^^^^^^^^^^ + } + get myPublicMethod1() { +>myPublicMethod1 : publicClass +> : ^^^^^^^^^^^ + + return new publicClass(); +>new publicClass() : publicClass +> : ^^^^^^^^^^^ +>publicClass : typeof publicClass +> : ^^^^^^^^^^^^^^^^^^ + } + private get myPrivateMethod1() { +>myPrivateMethod1 : publicClass +> : ^^^^^^^^^^^ + + return new publicClass(); +>new publicClass() : publicClass +> : ^^^^^^^^^^^ +>publicClass : typeof publicClass +> : ^^^^^^^^^^^^^^^^^^ + } + } + + export class publicClassWithWithPrivateSetAccessorTypes { +>publicClassWithWithPrivateSetAccessorTypes : publicClassWithWithPrivateSetAccessorTypes +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static set myPublicStaticMethod(param: privateClass) { // Error +>myPublicStaticMethod : privateClass +> : ^^^^^^^^^^^^ +>param : privateClass +> : ^^^^^^^^^^^^ + } + private static set myPrivateStaticMethod(param: privateClass) { +>myPrivateStaticMethod : privateClass +> : ^^^^^^^^^^^^ +>param : privateClass +> : ^^^^^^^^^^^^ + } + set myPublicMethod(param: privateClass) { // Error +>myPublicMethod : privateClass +> : ^^^^^^^^^^^^ +>param : privateClass +> : ^^^^^^^^^^^^ + } + private set myPrivateMethod(param: privateClass) { +>myPrivateMethod : privateClass +> : ^^^^^^^^^^^^ +>param : privateClass +> : ^^^^^^^^^^^^ + } + } + + export class publicClassWithWithPublicSetAccessorTypes { +>publicClassWithWithPublicSetAccessorTypes : publicClassWithWithPublicSetAccessorTypes +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static set myPublicStaticMethod(param: publicClass) { +>myPublicStaticMethod : publicClass +> : ^^^^^^^^^^^ +>param : publicClass +> : ^^^^^^^^^^^ + } + private static set myPrivateStaticMethod(param: publicClass) { +>myPrivateStaticMethod : publicClass +> : ^^^^^^^^^^^ +>param : publicClass +> : ^^^^^^^^^^^ + } + set myPublicMethod(param: publicClass) { +>myPublicMethod : publicClass +> : ^^^^^^^^^^^ +>param : publicClass +> : ^^^^^^^^^^^ + } + private set myPrivateMethod(param: publicClass) { +>myPrivateMethod : publicClass +> : ^^^^^^^^^^^ +>param : publicClass +> : ^^^^^^^^^^^ + } + } + + class privateClassWithWithPrivateSetAccessorTypes { +>privateClassWithWithPrivateSetAccessorTypes : privateClassWithWithPrivateSetAccessorTypes +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static set myPublicStaticMethod(param: privateClass) { +>myPublicStaticMethod : privateClass +> : ^^^^^^^^^^^^ +>param : privateClass +> : ^^^^^^^^^^^^ + } + private static set myPrivateStaticMethod(param: privateClass) { +>myPrivateStaticMethod : privateClass +> : ^^^^^^^^^^^^ +>param : privateClass +> : ^^^^^^^^^^^^ + } + set myPublicMethod(param: privateClass) { +>myPublicMethod : privateClass +> : ^^^^^^^^^^^^ +>param : privateClass +> : ^^^^^^^^^^^^ + } + private set myPrivateMethod(param: privateClass) { +>myPrivateMethod : privateClass +> : ^^^^^^^^^^^^ +>param : privateClass +> : ^^^^^^^^^^^^ + } + } + + class privateClassWithWithPublicSetAccessorTypes { +>privateClassWithWithPublicSetAccessorTypes : privateClassWithWithPublicSetAccessorTypes +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static set myPublicStaticMethod(param: publicClass) { +>myPublicStaticMethod : publicClass +> : ^^^^^^^^^^^ +>param : publicClass +> : ^^^^^^^^^^^ + } + private static set myPrivateStaticMethod(param: publicClass) { +>myPrivateStaticMethod : publicClass +> : ^^^^^^^^^^^ +>param : publicClass +> : ^^^^^^^^^^^ + } + set myPublicMethod(param: publicClass) { +>myPublicMethod : publicClass +> : ^^^^^^^^^^^ +>param : publicClass +> : ^^^^^^^^^^^ + } + private set myPrivateMethod(param: publicClass) { +>myPrivateMethod : publicClass +> : ^^^^^^^^^^^ +>param : publicClass +> : ^^^^^^^^^^^ + } + } + + export class publicClassWithPrivateModuleGetAccessorTypes { +>publicClassWithPrivateModuleGetAccessorTypes : publicClassWithPrivateModuleGetAccessorTypes +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static get myPublicStaticMethod(): privateModule.publicClass { // Error +>myPublicStaticMethod : privateModule.publicClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>privateModule : any +> : ^^^ + + return null; + } + get myPublicMethod(): privateModule.publicClass { // Error +>myPublicMethod : privateModule.publicClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>privateModule : any +> : ^^^ + + return null; + } + static get myPublicStaticMethod1() { // Error +>myPublicStaticMethod1 : privateModule.publicClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ + + return new privateModule.publicClass(); +>new privateModule.publicClass() : privateModule.publicClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>privateModule.publicClass : typeof privateModule.publicClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>privateModule : typeof privateModule +> : ^^^^^^^^^^^^^^^^^^^^ +>publicClass : typeof privateModule.publicClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + } + get myPublicMethod1() { // Error +>myPublicMethod1 : privateModule.publicClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ + + return new privateModule.publicClass(); +>new privateModule.publicClass() : privateModule.publicClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>privateModule.publicClass : typeof privateModule.publicClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>privateModule : typeof privateModule +> : ^^^^^^^^^^^^^^^^^^^^ +>publicClass : typeof privateModule.publicClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + } + } + + export class publicClassWithPrivateModuleSetAccessorTypes { +>publicClassWithPrivateModuleSetAccessorTypes : publicClassWithPrivateModuleSetAccessorTypes +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static set myPublicStaticMethod(param: privateModule.publicClass) { // Error +>myPublicStaticMethod : privateModule.publicClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>param : privateModule.publicClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>privateModule : any +> : ^^^ + } + set myPublicMethod(param: privateModule.publicClass) { // Error +>myPublicMethod : privateModule.publicClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>param : privateModule.publicClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>privateModule : any +> : ^^^ + } + } + + class privateClassWithPrivateModuleGetAccessorTypes { +>privateClassWithPrivateModuleGetAccessorTypes : privateClassWithPrivateModuleGetAccessorTypes +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static get myPublicStaticMethod(): privateModule.publicClass { +>myPublicStaticMethod : privateModule.publicClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>privateModule : any +> : ^^^ + + return null; + } + get myPublicMethod(): privateModule.publicClass { +>myPublicMethod : privateModule.publicClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>privateModule : any +> : ^^^ + + return null; + } + static get myPublicStaticMethod1() { +>myPublicStaticMethod1 : privateModule.publicClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ + + return new privateModule.publicClass(); +>new privateModule.publicClass() : privateModule.publicClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>privateModule.publicClass : typeof privateModule.publicClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>privateModule : typeof privateModule +> : ^^^^^^^^^^^^^^^^^^^^ +>publicClass : typeof privateModule.publicClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + } + get myPublicMethod1() { +>myPublicMethod1 : privateModule.publicClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ + + return new privateModule.publicClass(); +>new privateModule.publicClass() : privateModule.publicClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>privateModule.publicClass : typeof privateModule.publicClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>privateModule : typeof privateModule +> : ^^^^^^^^^^^^^^^^^^^^ +>publicClass : typeof privateModule.publicClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + } + } + + class privateClassWithPrivateModuleSetAccessorTypes { +>privateClassWithPrivateModuleSetAccessorTypes : privateClassWithPrivateModuleSetAccessorTypes +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static set myPublicStaticMethod(param: privateModule.publicClass) { +>myPublicStaticMethod : privateModule.publicClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>param : privateModule.publicClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>privateModule : any +> : ^^^ + } + set myPublicMethod(param: privateModule.publicClass) { +>myPublicMethod : privateModule.publicClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>param : privateModule.publicClass +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>privateModule : any +> : ^^^ + } + } +} diff --git a/tests/baselines/reference/privacyCannotNameAccessorDeclFile(target=es2015).js b/tests/baselines/reference/privacyCannotNameAccessorDeclFile(target=es2015).js new file mode 100644 index 0000000000000..e7bdfba0a0f32 --- /dev/null +++ b/tests/baselines/reference/privacyCannotNameAccessorDeclFile(target=es2015).js @@ -0,0 +1,395 @@ +//// [tests/cases/compiler/privacyCannotNameAccessorDeclFile.ts] //// + +//// [privacyCannotNameAccessorDeclFile_GlobalWidgets.ts] +declare module "GlobalWidgets" { + export class Widget3 { + name: string; + } + export function createWidget3(): Widget3; + + export namespace SpecializedGlobalWidget { + export class Widget4 { + name: string; + } + function createWidget4(): Widget4; + } +} + +//// [privacyCannotNameAccessorDeclFile_Widgets.ts] +export class Widget1 { + name = 'one'; +} +export function createWidget1() { + return new Widget1(); +} + +export namespace SpecializedWidget { + export class Widget2 { + name = 'one'; + } + export function createWidget2() { + return new Widget2(); + } +} + +//// [privacyCannotNameAccessorDeclFile_exporter.ts] +/// +import Widgets = require("./privacyCannotNameAccessorDeclFile_Widgets"); +import Widgets1 = require("GlobalWidgets"); +export function createExportedWidget1() { + return Widgets.createWidget1(); +} +export function createExportedWidget2() { + return Widgets.SpecializedWidget.createWidget2(); +} +export function createExportedWidget3() { + return Widgets1.createWidget3(); +} +export function createExportedWidget4() { + return Widgets1.SpecializedGlobalWidget.createWidget4(); +} + +//// [privacyCannotNameAccessorDeclFile_consumer.ts] +import exporter = require("./privacyCannotNameAccessorDeclFile_exporter"); +export class publicClassWithWithPrivateGetAccessorTypes { + static get myPublicStaticMethod() { // Error + return exporter.createExportedWidget1(); + } + private static get myPrivateStaticMethod() { + return exporter.createExportedWidget1(); + } + get myPublicMethod() { // Error + return exporter.createExportedWidget1(); + } + private get myPrivateMethod() { + return exporter.createExportedWidget1(); + } + static get myPublicStaticMethod1() { // Error + return exporter.createExportedWidget3(); + } + private static get myPrivateStaticMethod1() { + return exporter.createExportedWidget3(); + } + get myPublicMethod1() { // Error + return exporter.createExportedWidget3(); + } + private get myPrivateMethod1() { + return exporter.createExportedWidget3(); + } +} + +class privateClassWithWithPrivateGetAccessorTypes { + static get myPublicStaticMethod() { + return exporter.createExportedWidget1(); + } + private static get myPrivateStaticMethod() { + return exporter.createExportedWidget1(); + } + get myPublicMethod() { + return exporter.createExportedWidget1(); + } + private get myPrivateMethod() { + return exporter.createExportedWidget1(); + } + static get myPublicStaticMethod1() { + return exporter.createExportedWidget3(); + } + private static get myPrivateStaticMethod1() { + return exporter.createExportedWidget3(); + } + get myPublicMethod1() { + return exporter.createExportedWidget3(); + } + private get myPrivateMethod1() { + return exporter.createExportedWidget3(); + } +} + +export class publicClassWithPrivateModuleGetAccessorTypes { + static get myPublicStaticMethod() { // Error + return exporter.createExportedWidget2(); + } + get myPublicMethod() { // Error + return exporter.createExportedWidget2(); + } + static get myPublicStaticMethod1() { // Error + return exporter.createExportedWidget4(); + } + get myPublicMethod1() { // Error + return exporter.createExportedWidget4(); + } +} + +class privateClassWithPrivateModuleGetAccessorTypes { + static get myPublicStaticMethod() { + return exporter.createExportedWidget2(); + } + get myPublicMethod() { + return exporter.createExportedWidget2(); + } + static get myPublicStaticMethod1() { + return exporter.createExportedWidget4(); + } + get myPublicMethod1() { + return exporter.createExportedWidget4(); + } +} + +//// [privacyCannotNameAccessorDeclFile_GlobalWidgets.js] +//// [privacyCannotNameAccessorDeclFile_Widgets.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SpecializedWidget = exports.Widget1 = void 0; +exports.createWidget1 = createWidget1; +class Widget1 { + constructor() { + this.name = 'one'; + } +} +exports.Widget1 = Widget1; +function createWidget1() { + return new Widget1(); +} +var SpecializedWidget; +(function (SpecializedWidget) { + class Widget2 { + constructor() { + this.name = 'one'; + } + } + SpecializedWidget.Widget2 = Widget2; + function createWidget2() { + return new Widget2(); + } + SpecializedWidget.createWidget2 = createWidget2; +})(SpecializedWidget || (exports.SpecializedWidget = SpecializedWidget = {})); +//// [privacyCannotNameAccessorDeclFile_exporter.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createExportedWidget1 = createExportedWidget1; +exports.createExportedWidget2 = createExportedWidget2; +exports.createExportedWidget3 = createExportedWidget3; +exports.createExportedWidget4 = createExportedWidget4; +/// +const Widgets = require("./privacyCannotNameAccessorDeclFile_Widgets"); +const Widgets1 = require("GlobalWidgets"); +function createExportedWidget1() { + return Widgets.createWidget1(); +} +function createExportedWidget2() { + return Widgets.SpecializedWidget.createWidget2(); +} +function createExportedWidget3() { + return Widgets1.createWidget3(); +} +function createExportedWidget4() { + return Widgets1.SpecializedGlobalWidget.createWidget4(); +} +//// [privacyCannotNameAccessorDeclFile_consumer.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.publicClassWithPrivateModuleGetAccessorTypes = exports.publicClassWithWithPrivateGetAccessorTypes = void 0; +const exporter = require("./privacyCannotNameAccessorDeclFile_exporter"); +class publicClassWithWithPrivateGetAccessorTypes { + static get myPublicStaticMethod() { + return exporter.createExportedWidget1(); + } + static get myPrivateStaticMethod() { + return exporter.createExportedWidget1(); + } + get myPublicMethod() { + return exporter.createExportedWidget1(); + } + get myPrivateMethod() { + return exporter.createExportedWidget1(); + } + static get myPublicStaticMethod1() { + return exporter.createExportedWidget3(); + } + static get myPrivateStaticMethod1() { + return exporter.createExportedWidget3(); + } + get myPublicMethod1() { + return exporter.createExportedWidget3(); + } + get myPrivateMethod1() { + return exporter.createExportedWidget3(); + } +} +exports.publicClassWithWithPrivateGetAccessorTypes = publicClassWithWithPrivateGetAccessorTypes; +class privateClassWithWithPrivateGetAccessorTypes { + static get myPublicStaticMethod() { + return exporter.createExportedWidget1(); + } + static get myPrivateStaticMethod() { + return exporter.createExportedWidget1(); + } + get myPublicMethod() { + return exporter.createExportedWidget1(); + } + get myPrivateMethod() { + return exporter.createExportedWidget1(); + } + static get myPublicStaticMethod1() { + return exporter.createExportedWidget3(); + } + static get myPrivateStaticMethod1() { + return exporter.createExportedWidget3(); + } + get myPublicMethod1() { + return exporter.createExportedWidget3(); + } + get myPrivateMethod1() { + return exporter.createExportedWidget3(); + } +} +class publicClassWithPrivateModuleGetAccessorTypes { + static get myPublicStaticMethod() { + return exporter.createExportedWidget2(); + } + get myPublicMethod() { + return exporter.createExportedWidget2(); + } + static get myPublicStaticMethod1() { + return exporter.createExportedWidget4(); + } + get myPublicMethod1() { + return exporter.createExportedWidget4(); + } +} +exports.publicClassWithPrivateModuleGetAccessorTypes = publicClassWithPrivateModuleGetAccessorTypes; +class privateClassWithPrivateModuleGetAccessorTypes { + static get myPublicStaticMethod() { + return exporter.createExportedWidget2(); + } + get myPublicMethod() { + return exporter.createExportedWidget2(); + } + static get myPublicStaticMethod1() { + return exporter.createExportedWidget4(); + } + get myPublicMethod1() { + return exporter.createExportedWidget4(); + } +} + + +//// [privacyCannotNameAccessorDeclFile_GlobalWidgets.d.ts] +declare module "GlobalWidgets" { + class Widget3 { + name: string; + } + function createWidget3(): Widget3; + namespace SpecializedGlobalWidget { + class Widget4 { + name: string; + } + function createWidget4(): Widget4; + } +} +//// [privacyCannotNameAccessorDeclFile_Widgets.d.ts] +export declare class Widget1 { + name: string; +} +export declare function createWidget1(): Widget1; +export declare namespace SpecializedWidget { + class Widget2 { + name: string; + } + function createWidget2(): Widget2; +} +//// [privacyCannotNameAccessorDeclFile_exporter.d.ts] +import Widgets = require("./privacyCannotNameAccessorDeclFile_Widgets"); +import Widgets1 = require("GlobalWidgets"); +export declare function createExportedWidget1(): Widgets.Widget1; +export declare function createExportedWidget2(): Widgets.SpecializedWidget.Widget2; +export declare function createExportedWidget3(): Widgets1.Widget3; +export declare function createExportedWidget4(): Widgets1.SpecializedGlobalWidget.Widget4; +//// [privacyCannotNameAccessorDeclFile_consumer.d.ts] +export declare class publicClassWithWithPrivateGetAccessorTypes { + static get myPublicStaticMethod(): import("./privacyCannotNameAccessorDeclFile_Widgets").Widget1; + private static get myPrivateStaticMethod(); + get myPublicMethod(): import("./privacyCannotNameAccessorDeclFile_Widgets").Widget1; + private get myPrivateMethod(); + static get myPublicStaticMethod1(): import("GlobalWidgets").Widget3; + private static get myPrivateStaticMethod1(); + get myPublicMethod1(): import("GlobalWidgets").Widget3; + private get myPrivateMethod1(); +} +export declare class publicClassWithPrivateModuleGetAccessorTypes { + static get myPublicStaticMethod(): import("./privacyCannotNameAccessorDeclFile_Widgets").SpecializedWidget.Widget2; + get myPublicMethod(): import("./privacyCannotNameAccessorDeclFile_Widgets").SpecializedWidget.Widget2; + static get myPublicStaticMethod1(): import("GlobalWidgets").SpecializedGlobalWidget.Widget4; + get myPublicMethod1(): import("GlobalWidgets").SpecializedGlobalWidget.Widget4; +} + + +//// [DtsFileErrors] + + +privacyCannotNameAccessorDeclFile_consumer.d.ts(6,48): error TS2307: Cannot find module 'GlobalWidgets' or its corresponding type declarations. +privacyCannotNameAccessorDeclFile_consumer.d.ts(8,35): error TS2307: Cannot find module 'GlobalWidgets' or its corresponding type declarations. +privacyCannotNameAccessorDeclFile_consumer.d.ts(14,48): error TS2307: Cannot find module 'GlobalWidgets' or its corresponding type declarations. +privacyCannotNameAccessorDeclFile_consumer.d.ts(15,35): error TS2307: Cannot find module 'GlobalWidgets' or its corresponding type declarations. + + +==== privacyCannotNameAccessorDeclFile_consumer.d.ts (4 errors) ==== + export declare class publicClassWithWithPrivateGetAccessorTypes { + static get myPublicStaticMethod(): import("./privacyCannotNameAccessorDeclFile_Widgets").Widget1; + private static get myPrivateStaticMethod(); + get myPublicMethod(): import("./privacyCannotNameAccessorDeclFile_Widgets").Widget1; + private get myPrivateMethod(); + static get myPublicStaticMethod1(): import("GlobalWidgets").Widget3; + ~~~~~~~~~~~~~~~ +!!! error TS2307: Cannot find module 'GlobalWidgets' or its corresponding type declarations. + private static get myPrivateStaticMethod1(); + get myPublicMethod1(): import("GlobalWidgets").Widget3; + ~~~~~~~~~~~~~~~ +!!! error TS2307: Cannot find module 'GlobalWidgets' or its corresponding type declarations. + private get myPrivateMethod1(); + } + export declare class publicClassWithPrivateModuleGetAccessorTypes { + static get myPublicStaticMethod(): import("./privacyCannotNameAccessorDeclFile_Widgets").SpecializedWidget.Widget2; + get myPublicMethod(): import("./privacyCannotNameAccessorDeclFile_Widgets").SpecializedWidget.Widget2; + static get myPublicStaticMethod1(): import("GlobalWidgets").SpecializedGlobalWidget.Widget4; + ~~~~~~~~~~~~~~~ +!!! error TS2307: Cannot find module 'GlobalWidgets' or its corresponding type declarations. + get myPublicMethod1(): import("GlobalWidgets").SpecializedGlobalWidget.Widget4; + ~~~~~~~~~~~~~~~ +!!! error TS2307: Cannot find module 'GlobalWidgets' or its corresponding type declarations. + } + +==== privacyCannotNameAccessorDeclFile_GlobalWidgets.d.ts (0 errors) ==== + declare module "GlobalWidgets" { + class Widget3 { + name: string; + } + function createWidget3(): Widget3; + namespace SpecializedGlobalWidget { + class Widget4 { + name: string; + } + function createWidget4(): Widget4; + } + } + +==== privacyCannotNameAccessorDeclFile_Widgets.d.ts (0 errors) ==== + export declare class Widget1 { + name: string; + } + export declare function createWidget1(): Widget1; + export declare namespace SpecializedWidget { + class Widget2 { + name: string; + } + function createWidget2(): Widget2; + } + +==== privacyCannotNameAccessorDeclFile_exporter.d.ts (0 errors) ==== + import Widgets = require("./privacyCannotNameAccessorDeclFile_Widgets"); + import Widgets1 = require("GlobalWidgets"); + export declare function createExportedWidget1(): Widgets.Widget1; + export declare function createExportedWidget2(): Widgets.SpecializedWidget.Widget2; + export declare function createExportedWidget3(): Widgets1.Widget3; + export declare function createExportedWidget4(): Widgets1.SpecializedGlobalWidget.Widget4; + \ No newline at end of file diff --git a/tests/baselines/reference/privacyCannotNameAccessorDeclFile.symbols b/tests/baselines/reference/privacyCannotNameAccessorDeclFile(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/privacyCannotNameAccessorDeclFile.symbols rename to tests/baselines/reference/privacyCannotNameAccessorDeclFile(target=es2015).symbols diff --git a/tests/baselines/reference/privacyCannotNameAccessorDeclFile.types b/tests/baselines/reference/privacyCannotNameAccessorDeclFile(target=es2015).types similarity index 100% rename from tests/baselines/reference/privacyCannotNameAccessorDeclFile.types rename to tests/baselines/reference/privacyCannotNameAccessorDeclFile(target=es2015).types diff --git a/tests/baselines/reference/privacyCannotNameAccessorDeclFile.js b/tests/baselines/reference/privacyCannotNameAccessorDeclFile(target=es5).js similarity index 100% rename from tests/baselines/reference/privacyCannotNameAccessorDeclFile.js rename to tests/baselines/reference/privacyCannotNameAccessorDeclFile(target=es5).js diff --git a/tests/baselines/reference/privacyCannotNameAccessorDeclFile(target=es5).symbols b/tests/baselines/reference/privacyCannotNameAccessorDeclFile(target=es5).symbols new file mode 100644 index 0000000000000..a599808d17f4c --- /dev/null +++ b/tests/baselines/reference/privacyCannotNameAccessorDeclFile(target=es5).symbols @@ -0,0 +1,322 @@ +//// [tests/cases/compiler/privacyCannotNameAccessorDeclFile.ts] //// + +=== privacyCannotNameAccessorDeclFile_consumer.ts === +import exporter = require("./privacyCannotNameAccessorDeclFile_exporter"); +>exporter : Symbol(exporter, Decl(privacyCannotNameAccessorDeclFile_consumer.ts, 0, 0)) + +export class publicClassWithWithPrivateGetAccessorTypes { +>publicClassWithWithPrivateGetAccessorTypes : Symbol(publicClassWithWithPrivateGetAccessorTypes, Decl(privacyCannotNameAccessorDeclFile_consumer.ts, 0, 74)) + + static get myPublicStaticMethod() { // Error +>myPublicStaticMethod : Symbol(publicClassWithWithPrivateGetAccessorTypes.myPublicStaticMethod, Decl(privacyCannotNameAccessorDeclFile_consumer.ts, 1, 57)) + + return exporter.createExportedWidget1(); +>exporter.createExportedWidget1 : Symbol(exporter.createExportedWidget1, Decl(privacyCannotNameAccessorDeclFile_exporter.ts, 2, 43)) +>exporter : Symbol(exporter, Decl(privacyCannotNameAccessorDeclFile_consumer.ts, 0, 0)) +>createExportedWidget1 : Symbol(exporter.createExportedWidget1, Decl(privacyCannotNameAccessorDeclFile_exporter.ts, 2, 43)) + } + private static get myPrivateStaticMethod() { +>myPrivateStaticMethod : Symbol(publicClassWithWithPrivateGetAccessorTypes.myPrivateStaticMethod, Decl(privacyCannotNameAccessorDeclFile_consumer.ts, 4, 5)) + + return exporter.createExportedWidget1(); +>exporter.createExportedWidget1 : Symbol(exporter.createExportedWidget1, Decl(privacyCannotNameAccessorDeclFile_exporter.ts, 2, 43)) +>exporter : Symbol(exporter, Decl(privacyCannotNameAccessorDeclFile_consumer.ts, 0, 0)) +>createExportedWidget1 : Symbol(exporter.createExportedWidget1, Decl(privacyCannotNameAccessorDeclFile_exporter.ts, 2, 43)) + } + get myPublicMethod() { // Error +>myPublicMethod : Symbol(publicClassWithWithPrivateGetAccessorTypes.myPublicMethod, Decl(privacyCannotNameAccessorDeclFile_consumer.ts, 7, 5)) + + return exporter.createExportedWidget1(); +>exporter.createExportedWidget1 : Symbol(exporter.createExportedWidget1, Decl(privacyCannotNameAccessorDeclFile_exporter.ts, 2, 43)) +>exporter : Symbol(exporter, Decl(privacyCannotNameAccessorDeclFile_consumer.ts, 0, 0)) +>createExportedWidget1 : Symbol(exporter.createExportedWidget1, Decl(privacyCannotNameAccessorDeclFile_exporter.ts, 2, 43)) + } + private get myPrivateMethod() { +>myPrivateMethod : Symbol(publicClassWithWithPrivateGetAccessorTypes.myPrivateMethod, Decl(privacyCannotNameAccessorDeclFile_consumer.ts, 10, 5)) + + return exporter.createExportedWidget1(); +>exporter.createExportedWidget1 : Symbol(exporter.createExportedWidget1, Decl(privacyCannotNameAccessorDeclFile_exporter.ts, 2, 43)) +>exporter : Symbol(exporter, Decl(privacyCannotNameAccessorDeclFile_consumer.ts, 0, 0)) +>createExportedWidget1 : Symbol(exporter.createExportedWidget1, Decl(privacyCannotNameAccessorDeclFile_exporter.ts, 2, 43)) + } + static get myPublicStaticMethod1() { // Error +>myPublicStaticMethod1 : Symbol(publicClassWithWithPrivateGetAccessorTypes.myPublicStaticMethod1, Decl(privacyCannotNameAccessorDeclFile_consumer.ts, 13, 5)) + + return exporter.createExportedWidget3(); +>exporter.createExportedWidget3 : Symbol(exporter.createExportedWidget3, Decl(privacyCannotNameAccessorDeclFile_exporter.ts, 8, 1)) +>exporter : Symbol(exporter, Decl(privacyCannotNameAccessorDeclFile_consumer.ts, 0, 0)) +>createExportedWidget3 : Symbol(exporter.createExportedWidget3, Decl(privacyCannotNameAccessorDeclFile_exporter.ts, 8, 1)) + } + private static get myPrivateStaticMethod1() { +>myPrivateStaticMethod1 : Symbol(publicClassWithWithPrivateGetAccessorTypes.myPrivateStaticMethod1, Decl(privacyCannotNameAccessorDeclFile_consumer.ts, 16, 5)) + + return exporter.createExportedWidget3(); +>exporter.createExportedWidget3 : Symbol(exporter.createExportedWidget3, Decl(privacyCannotNameAccessorDeclFile_exporter.ts, 8, 1)) +>exporter : Symbol(exporter, Decl(privacyCannotNameAccessorDeclFile_consumer.ts, 0, 0)) +>createExportedWidget3 : Symbol(exporter.createExportedWidget3, Decl(privacyCannotNameAccessorDeclFile_exporter.ts, 8, 1)) + } + get myPublicMethod1() { // Error +>myPublicMethod1 : Symbol(publicClassWithWithPrivateGetAccessorTypes.myPublicMethod1, Decl(privacyCannotNameAccessorDeclFile_consumer.ts, 19, 5)) + + return exporter.createExportedWidget3(); +>exporter.createExportedWidget3 : Symbol(exporter.createExportedWidget3, Decl(privacyCannotNameAccessorDeclFile_exporter.ts, 8, 1)) +>exporter : Symbol(exporter, Decl(privacyCannotNameAccessorDeclFile_consumer.ts, 0, 0)) +>createExportedWidget3 : Symbol(exporter.createExportedWidget3, Decl(privacyCannotNameAccessorDeclFile_exporter.ts, 8, 1)) + } + private get myPrivateMethod1() { +>myPrivateMethod1 : Symbol(publicClassWithWithPrivateGetAccessorTypes.myPrivateMethod1, Decl(privacyCannotNameAccessorDeclFile_consumer.ts, 22, 5)) + + return exporter.createExportedWidget3(); +>exporter.createExportedWidget3 : Symbol(exporter.createExportedWidget3, Decl(privacyCannotNameAccessorDeclFile_exporter.ts, 8, 1)) +>exporter : Symbol(exporter, Decl(privacyCannotNameAccessorDeclFile_consumer.ts, 0, 0)) +>createExportedWidget3 : Symbol(exporter.createExportedWidget3, Decl(privacyCannotNameAccessorDeclFile_exporter.ts, 8, 1)) + } +} + +class privateClassWithWithPrivateGetAccessorTypes { +>privateClassWithWithPrivateGetAccessorTypes : Symbol(privateClassWithWithPrivateGetAccessorTypes, Decl(privacyCannotNameAccessorDeclFile_consumer.ts, 26, 1)) + + static get myPublicStaticMethod() { +>myPublicStaticMethod : Symbol(privateClassWithWithPrivateGetAccessorTypes.myPublicStaticMethod, Decl(privacyCannotNameAccessorDeclFile_consumer.ts, 28, 51)) + + return exporter.createExportedWidget1(); +>exporter.createExportedWidget1 : Symbol(exporter.createExportedWidget1, Decl(privacyCannotNameAccessorDeclFile_exporter.ts, 2, 43)) +>exporter : Symbol(exporter, Decl(privacyCannotNameAccessorDeclFile_consumer.ts, 0, 0)) +>createExportedWidget1 : Symbol(exporter.createExportedWidget1, Decl(privacyCannotNameAccessorDeclFile_exporter.ts, 2, 43)) + } + private static get myPrivateStaticMethod() { +>myPrivateStaticMethod : Symbol(privateClassWithWithPrivateGetAccessorTypes.myPrivateStaticMethod, Decl(privacyCannotNameAccessorDeclFile_consumer.ts, 31, 5)) + + return exporter.createExportedWidget1(); +>exporter.createExportedWidget1 : Symbol(exporter.createExportedWidget1, Decl(privacyCannotNameAccessorDeclFile_exporter.ts, 2, 43)) +>exporter : Symbol(exporter, Decl(privacyCannotNameAccessorDeclFile_consumer.ts, 0, 0)) +>createExportedWidget1 : Symbol(exporter.createExportedWidget1, Decl(privacyCannotNameAccessorDeclFile_exporter.ts, 2, 43)) + } + get myPublicMethod() { +>myPublicMethod : Symbol(privateClassWithWithPrivateGetAccessorTypes.myPublicMethod, Decl(privacyCannotNameAccessorDeclFile_consumer.ts, 34, 5)) + + return exporter.createExportedWidget1(); +>exporter.createExportedWidget1 : Symbol(exporter.createExportedWidget1, Decl(privacyCannotNameAccessorDeclFile_exporter.ts, 2, 43)) +>exporter : Symbol(exporter, Decl(privacyCannotNameAccessorDeclFile_consumer.ts, 0, 0)) +>createExportedWidget1 : Symbol(exporter.createExportedWidget1, Decl(privacyCannotNameAccessorDeclFile_exporter.ts, 2, 43)) + } + private get myPrivateMethod() { +>myPrivateMethod : Symbol(privateClassWithWithPrivateGetAccessorTypes.myPrivateMethod, Decl(privacyCannotNameAccessorDeclFile_consumer.ts, 37, 5)) + + return exporter.createExportedWidget1(); +>exporter.createExportedWidget1 : Symbol(exporter.createExportedWidget1, Decl(privacyCannotNameAccessorDeclFile_exporter.ts, 2, 43)) +>exporter : Symbol(exporter, Decl(privacyCannotNameAccessorDeclFile_consumer.ts, 0, 0)) +>createExportedWidget1 : Symbol(exporter.createExportedWidget1, Decl(privacyCannotNameAccessorDeclFile_exporter.ts, 2, 43)) + } + static get myPublicStaticMethod1() { +>myPublicStaticMethod1 : Symbol(privateClassWithWithPrivateGetAccessorTypes.myPublicStaticMethod1, Decl(privacyCannotNameAccessorDeclFile_consumer.ts, 40, 5)) + + return exporter.createExportedWidget3(); +>exporter.createExportedWidget3 : Symbol(exporter.createExportedWidget3, Decl(privacyCannotNameAccessorDeclFile_exporter.ts, 8, 1)) +>exporter : Symbol(exporter, Decl(privacyCannotNameAccessorDeclFile_consumer.ts, 0, 0)) +>createExportedWidget3 : Symbol(exporter.createExportedWidget3, Decl(privacyCannotNameAccessorDeclFile_exporter.ts, 8, 1)) + } + private static get myPrivateStaticMethod1() { +>myPrivateStaticMethod1 : Symbol(privateClassWithWithPrivateGetAccessorTypes.myPrivateStaticMethod1, Decl(privacyCannotNameAccessorDeclFile_consumer.ts, 43, 5)) + + return exporter.createExportedWidget3(); +>exporter.createExportedWidget3 : Symbol(exporter.createExportedWidget3, Decl(privacyCannotNameAccessorDeclFile_exporter.ts, 8, 1)) +>exporter : Symbol(exporter, Decl(privacyCannotNameAccessorDeclFile_consumer.ts, 0, 0)) +>createExportedWidget3 : Symbol(exporter.createExportedWidget3, Decl(privacyCannotNameAccessorDeclFile_exporter.ts, 8, 1)) + } + get myPublicMethod1() { +>myPublicMethod1 : Symbol(privateClassWithWithPrivateGetAccessorTypes.myPublicMethod1, Decl(privacyCannotNameAccessorDeclFile_consumer.ts, 46, 5)) + + return exporter.createExportedWidget3(); +>exporter.createExportedWidget3 : Symbol(exporter.createExportedWidget3, Decl(privacyCannotNameAccessorDeclFile_exporter.ts, 8, 1)) +>exporter : Symbol(exporter, Decl(privacyCannotNameAccessorDeclFile_consumer.ts, 0, 0)) +>createExportedWidget3 : Symbol(exporter.createExportedWidget3, Decl(privacyCannotNameAccessorDeclFile_exporter.ts, 8, 1)) + } + private get myPrivateMethod1() { +>myPrivateMethod1 : Symbol(privateClassWithWithPrivateGetAccessorTypes.myPrivateMethod1, Decl(privacyCannotNameAccessorDeclFile_consumer.ts, 49, 5)) + + return exporter.createExportedWidget3(); +>exporter.createExportedWidget3 : Symbol(exporter.createExportedWidget3, Decl(privacyCannotNameAccessorDeclFile_exporter.ts, 8, 1)) +>exporter : Symbol(exporter, Decl(privacyCannotNameAccessorDeclFile_consumer.ts, 0, 0)) +>createExportedWidget3 : Symbol(exporter.createExportedWidget3, Decl(privacyCannotNameAccessorDeclFile_exporter.ts, 8, 1)) + } +} + +export class publicClassWithPrivateModuleGetAccessorTypes { +>publicClassWithPrivateModuleGetAccessorTypes : Symbol(publicClassWithPrivateModuleGetAccessorTypes, Decl(privacyCannotNameAccessorDeclFile_consumer.ts, 53, 1)) + + static get myPublicStaticMethod() { // Error +>myPublicStaticMethod : Symbol(publicClassWithPrivateModuleGetAccessorTypes.myPublicStaticMethod, Decl(privacyCannotNameAccessorDeclFile_consumer.ts, 55, 59)) + + return exporter.createExportedWidget2(); +>exporter.createExportedWidget2 : Symbol(exporter.createExportedWidget2, Decl(privacyCannotNameAccessorDeclFile_exporter.ts, 5, 1)) +>exporter : Symbol(exporter, Decl(privacyCannotNameAccessorDeclFile_consumer.ts, 0, 0)) +>createExportedWidget2 : Symbol(exporter.createExportedWidget2, Decl(privacyCannotNameAccessorDeclFile_exporter.ts, 5, 1)) + } + get myPublicMethod() { // Error +>myPublicMethod : Symbol(publicClassWithPrivateModuleGetAccessorTypes.myPublicMethod, Decl(privacyCannotNameAccessorDeclFile_consumer.ts, 58, 5)) + + return exporter.createExportedWidget2(); +>exporter.createExportedWidget2 : Symbol(exporter.createExportedWidget2, Decl(privacyCannotNameAccessorDeclFile_exporter.ts, 5, 1)) +>exporter : Symbol(exporter, Decl(privacyCannotNameAccessorDeclFile_consumer.ts, 0, 0)) +>createExportedWidget2 : Symbol(exporter.createExportedWidget2, Decl(privacyCannotNameAccessorDeclFile_exporter.ts, 5, 1)) + } + static get myPublicStaticMethod1() { // Error +>myPublicStaticMethod1 : Symbol(publicClassWithPrivateModuleGetAccessorTypes.myPublicStaticMethod1, Decl(privacyCannotNameAccessorDeclFile_consumer.ts, 61, 5)) + + return exporter.createExportedWidget4(); +>exporter.createExportedWidget4 : Symbol(exporter.createExportedWidget4, Decl(privacyCannotNameAccessorDeclFile_exporter.ts, 11, 1)) +>exporter : Symbol(exporter, Decl(privacyCannotNameAccessorDeclFile_consumer.ts, 0, 0)) +>createExportedWidget4 : Symbol(exporter.createExportedWidget4, Decl(privacyCannotNameAccessorDeclFile_exporter.ts, 11, 1)) + } + get myPublicMethod1() { // Error +>myPublicMethod1 : Symbol(publicClassWithPrivateModuleGetAccessorTypes.myPublicMethod1, Decl(privacyCannotNameAccessorDeclFile_consumer.ts, 64, 5)) + + return exporter.createExportedWidget4(); +>exporter.createExportedWidget4 : Symbol(exporter.createExportedWidget4, Decl(privacyCannotNameAccessorDeclFile_exporter.ts, 11, 1)) +>exporter : Symbol(exporter, Decl(privacyCannotNameAccessorDeclFile_consumer.ts, 0, 0)) +>createExportedWidget4 : Symbol(exporter.createExportedWidget4, Decl(privacyCannotNameAccessorDeclFile_exporter.ts, 11, 1)) + } +} + +class privateClassWithPrivateModuleGetAccessorTypes { +>privateClassWithPrivateModuleGetAccessorTypes : Symbol(privateClassWithPrivateModuleGetAccessorTypes, Decl(privacyCannotNameAccessorDeclFile_consumer.ts, 68, 1)) + + static get myPublicStaticMethod() { +>myPublicStaticMethod : Symbol(privateClassWithPrivateModuleGetAccessorTypes.myPublicStaticMethod, Decl(privacyCannotNameAccessorDeclFile_consumer.ts, 70, 53)) + + return exporter.createExportedWidget2(); +>exporter.createExportedWidget2 : Symbol(exporter.createExportedWidget2, Decl(privacyCannotNameAccessorDeclFile_exporter.ts, 5, 1)) +>exporter : Symbol(exporter, Decl(privacyCannotNameAccessorDeclFile_consumer.ts, 0, 0)) +>createExportedWidget2 : Symbol(exporter.createExportedWidget2, Decl(privacyCannotNameAccessorDeclFile_exporter.ts, 5, 1)) + } + get myPublicMethod() { +>myPublicMethod : Symbol(privateClassWithPrivateModuleGetAccessorTypes.myPublicMethod, Decl(privacyCannotNameAccessorDeclFile_consumer.ts, 73, 5)) + + return exporter.createExportedWidget2(); +>exporter.createExportedWidget2 : Symbol(exporter.createExportedWidget2, Decl(privacyCannotNameAccessorDeclFile_exporter.ts, 5, 1)) +>exporter : Symbol(exporter, Decl(privacyCannotNameAccessorDeclFile_consumer.ts, 0, 0)) +>createExportedWidget2 : Symbol(exporter.createExportedWidget2, Decl(privacyCannotNameAccessorDeclFile_exporter.ts, 5, 1)) + } + static get myPublicStaticMethod1() { +>myPublicStaticMethod1 : Symbol(privateClassWithPrivateModuleGetAccessorTypes.myPublicStaticMethod1, Decl(privacyCannotNameAccessorDeclFile_consumer.ts, 76, 5)) + + return exporter.createExportedWidget4(); +>exporter.createExportedWidget4 : Symbol(exporter.createExportedWidget4, Decl(privacyCannotNameAccessorDeclFile_exporter.ts, 11, 1)) +>exporter : Symbol(exporter, Decl(privacyCannotNameAccessorDeclFile_consumer.ts, 0, 0)) +>createExportedWidget4 : Symbol(exporter.createExportedWidget4, Decl(privacyCannotNameAccessorDeclFile_exporter.ts, 11, 1)) + } + get myPublicMethod1() { +>myPublicMethod1 : Symbol(privateClassWithPrivateModuleGetAccessorTypes.myPublicMethod1, Decl(privacyCannotNameAccessorDeclFile_consumer.ts, 79, 5)) + + return exporter.createExportedWidget4(); +>exporter.createExportedWidget4 : Symbol(exporter.createExportedWidget4, Decl(privacyCannotNameAccessorDeclFile_exporter.ts, 11, 1)) +>exporter : Symbol(exporter, Decl(privacyCannotNameAccessorDeclFile_consumer.ts, 0, 0)) +>createExportedWidget4 : Symbol(exporter.createExportedWidget4, Decl(privacyCannotNameAccessorDeclFile_exporter.ts, 11, 1)) + } +} +=== privacyCannotNameAccessorDeclFile_GlobalWidgets.ts === +declare module "GlobalWidgets" { +>"GlobalWidgets" : Symbol("GlobalWidgets", Decl(privacyCannotNameAccessorDeclFile_GlobalWidgets.ts, 0, 0)) + + export class Widget3 { +>Widget3 : Symbol(Widget3, Decl(privacyCannotNameAccessorDeclFile_GlobalWidgets.ts, 0, 32)) + + name: string; +>name : Symbol(Widget3.name, Decl(privacyCannotNameAccessorDeclFile_GlobalWidgets.ts, 1, 26)) + } + export function createWidget3(): Widget3; +>createWidget3 : Symbol(createWidget3, Decl(privacyCannotNameAccessorDeclFile_GlobalWidgets.ts, 3, 5)) +>Widget3 : Symbol(Widget3, Decl(privacyCannotNameAccessorDeclFile_GlobalWidgets.ts, 0, 32)) + + export namespace SpecializedGlobalWidget { +>SpecializedGlobalWidget : Symbol(SpecializedGlobalWidget, Decl(privacyCannotNameAccessorDeclFile_GlobalWidgets.ts, 4, 45)) + + export class Widget4 { +>Widget4 : Symbol(Widget4, Decl(privacyCannotNameAccessorDeclFile_GlobalWidgets.ts, 6, 46)) + + name: string; +>name : Symbol(Widget4.name, Decl(privacyCannotNameAccessorDeclFile_GlobalWidgets.ts, 7, 30)) + } + function createWidget4(): Widget4; +>createWidget4 : Symbol(createWidget4, Decl(privacyCannotNameAccessorDeclFile_GlobalWidgets.ts, 9, 9)) +>Widget4 : Symbol(Widget4, Decl(privacyCannotNameAccessorDeclFile_GlobalWidgets.ts, 6, 46)) + } +} + +=== privacyCannotNameAccessorDeclFile_Widgets.ts === +export class Widget1 { +>Widget1 : Symbol(Widget1, Decl(privacyCannotNameAccessorDeclFile_Widgets.ts, 0, 0)) + + name = 'one'; +>name : Symbol(Widget1.name, Decl(privacyCannotNameAccessorDeclFile_Widgets.ts, 0, 22)) +} +export function createWidget1() { +>createWidget1 : Symbol(createWidget1, Decl(privacyCannotNameAccessorDeclFile_Widgets.ts, 2, 1)) + + return new Widget1(); +>Widget1 : Symbol(Widget1, Decl(privacyCannotNameAccessorDeclFile_Widgets.ts, 0, 0)) +} + +export namespace SpecializedWidget { +>SpecializedWidget : Symbol(SpecializedWidget, Decl(privacyCannotNameAccessorDeclFile_Widgets.ts, 5, 1)) + + export class Widget2 { +>Widget2 : Symbol(Widget2, Decl(privacyCannotNameAccessorDeclFile_Widgets.ts, 7, 36)) + + name = 'one'; +>name : Symbol(Widget2.name, Decl(privacyCannotNameAccessorDeclFile_Widgets.ts, 8, 26)) + } + export function createWidget2() { +>createWidget2 : Symbol(createWidget2, Decl(privacyCannotNameAccessorDeclFile_Widgets.ts, 10, 5)) + + return new Widget2(); +>Widget2 : Symbol(Widget2, Decl(privacyCannotNameAccessorDeclFile_Widgets.ts, 7, 36)) + } +} + +=== privacyCannotNameAccessorDeclFile_exporter.ts === +/// +import Widgets = require("./privacyCannotNameAccessorDeclFile_Widgets"); +>Widgets : Symbol(Widgets, Decl(privacyCannotNameAccessorDeclFile_exporter.ts, 0, 0)) + +import Widgets1 = require("GlobalWidgets"); +>Widgets1 : Symbol(Widgets1, Decl(privacyCannotNameAccessorDeclFile_exporter.ts, 1, 72)) + +export function createExportedWidget1() { +>createExportedWidget1 : Symbol(createExportedWidget1, Decl(privacyCannotNameAccessorDeclFile_exporter.ts, 2, 43)) + + return Widgets.createWidget1(); +>Widgets.createWidget1 : Symbol(Widgets.createWidget1, Decl(privacyCannotNameAccessorDeclFile_Widgets.ts, 2, 1)) +>Widgets : Symbol(Widgets, Decl(privacyCannotNameAccessorDeclFile_exporter.ts, 0, 0)) +>createWidget1 : Symbol(Widgets.createWidget1, Decl(privacyCannotNameAccessorDeclFile_Widgets.ts, 2, 1)) +} +export function createExportedWidget2() { +>createExportedWidget2 : Symbol(createExportedWidget2, Decl(privacyCannotNameAccessorDeclFile_exporter.ts, 5, 1)) + + return Widgets.SpecializedWidget.createWidget2(); +>Widgets.SpecializedWidget.createWidget2 : Symbol(Widgets.SpecializedWidget.createWidget2, Decl(privacyCannotNameAccessorDeclFile_Widgets.ts, 10, 5)) +>Widgets.SpecializedWidget : Symbol(Widgets.SpecializedWidget, Decl(privacyCannotNameAccessorDeclFile_Widgets.ts, 5, 1)) +>Widgets : Symbol(Widgets, Decl(privacyCannotNameAccessorDeclFile_exporter.ts, 0, 0)) +>SpecializedWidget : Symbol(Widgets.SpecializedWidget, Decl(privacyCannotNameAccessorDeclFile_Widgets.ts, 5, 1)) +>createWidget2 : Symbol(Widgets.SpecializedWidget.createWidget2, Decl(privacyCannotNameAccessorDeclFile_Widgets.ts, 10, 5)) +} +export function createExportedWidget3() { +>createExportedWidget3 : Symbol(createExportedWidget3, Decl(privacyCannotNameAccessorDeclFile_exporter.ts, 8, 1)) + + return Widgets1.createWidget3(); +>Widgets1.createWidget3 : Symbol(Widgets1.createWidget3, Decl(privacyCannotNameAccessorDeclFile_GlobalWidgets.ts, 3, 5)) +>Widgets1 : Symbol(Widgets1, Decl(privacyCannotNameAccessorDeclFile_exporter.ts, 1, 72)) +>createWidget3 : Symbol(Widgets1.createWidget3, Decl(privacyCannotNameAccessorDeclFile_GlobalWidgets.ts, 3, 5)) +} +export function createExportedWidget4() { +>createExportedWidget4 : Symbol(createExportedWidget4, Decl(privacyCannotNameAccessorDeclFile_exporter.ts, 11, 1)) + + return Widgets1.SpecializedGlobalWidget.createWidget4(); +>Widgets1.SpecializedGlobalWidget.createWidget4 : Symbol(Widgets1.SpecializedGlobalWidget.createWidget4, Decl(privacyCannotNameAccessorDeclFile_GlobalWidgets.ts, 9, 9)) +>Widgets1.SpecializedGlobalWidget : Symbol(Widgets1.SpecializedGlobalWidget, Decl(privacyCannotNameAccessorDeclFile_GlobalWidgets.ts, 4, 45)) +>Widgets1 : Symbol(Widgets1, Decl(privacyCannotNameAccessorDeclFile_exporter.ts, 1, 72)) +>SpecializedGlobalWidget : Symbol(Widgets1.SpecializedGlobalWidget, Decl(privacyCannotNameAccessorDeclFile_GlobalWidgets.ts, 4, 45)) +>createWidget4 : Symbol(Widgets1.SpecializedGlobalWidget.createWidget4, Decl(privacyCannotNameAccessorDeclFile_GlobalWidgets.ts, 9, 9)) +} + diff --git a/tests/baselines/reference/privacyCannotNameAccessorDeclFile(target=es5).types b/tests/baselines/reference/privacyCannotNameAccessorDeclFile(target=es5).types new file mode 100644 index 0000000000000..1a65feb24cd8c --- /dev/null +++ b/tests/baselines/reference/privacyCannotNameAccessorDeclFile(target=es5).types @@ -0,0 +1,524 @@ +//// [tests/cases/compiler/privacyCannotNameAccessorDeclFile.ts] //// + +=== privacyCannotNameAccessorDeclFile_consumer.ts === +import exporter = require("./privacyCannotNameAccessorDeclFile_exporter"); +>exporter : typeof exporter +> : ^^^^^^^^^^^^^^^ + +export class publicClassWithWithPrivateGetAccessorTypes { +>publicClassWithWithPrivateGetAccessorTypes : publicClassWithWithPrivateGetAccessorTypes +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static get myPublicStaticMethod() { // Error +>myPublicStaticMethod : import("privacyCannotNameAccessorDeclFile_Widgets").Widget1 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + return exporter.createExportedWidget1(); +>exporter.createExportedWidget1() : import("privacyCannotNameAccessorDeclFile_Widgets").Widget1 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exporter.createExportedWidget1 : () => import("privacyCannotNameAccessorDeclFile_Widgets").Widget1 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exporter : typeof exporter +> : ^^^^^^^^^^^^^^^ +>createExportedWidget1 : () => import("privacyCannotNameAccessorDeclFile_Widgets").Widget1 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + } + private static get myPrivateStaticMethod() { +>myPrivateStaticMethod : import("privacyCannotNameAccessorDeclFile_Widgets").Widget1 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + return exporter.createExportedWidget1(); +>exporter.createExportedWidget1() : import("privacyCannotNameAccessorDeclFile_Widgets").Widget1 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exporter.createExportedWidget1 : () => import("privacyCannotNameAccessorDeclFile_Widgets").Widget1 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exporter : typeof exporter +> : ^^^^^^^^^^^^^^^ +>createExportedWidget1 : () => import("privacyCannotNameAccessorDeclFile_Widgets").Widget1 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + } + get myPublicMethod() { // Error +>myPublicMethod : import("privacyCannotNameAccessorDeclFile_Widgets").Widget1 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + return exporter.createExportedWidget1(); +>exporter.createExportedWidget1() : import("privacyCannotNameAccessorDeclFile_Widgets").Widget1 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exporter.createExportedWidget1 : () => import("privacyCannotNameAccessorDeclFile_Widgets").Widget1 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exporter : typeof exporter +> : ^^^^^^^^^^^^^^^ +>createExportedWidget1 : () => import("privacyCannotNameAccessorDeclFile_Widgets").Widget1 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + } + private get myPrivateMethod() { +>myPrivateMethod : import("privacyCannotNameAccessorDeclFile_Widgets").Widget1 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + return exporter.createExportedWidget1(); +>exporter.createExportedWidget1() : import("privacyCannotNameAccessorDeclFile_Widgets").Widget1 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exporter.createExportedWidget1 : () => import("privacyCannotNameAccessorDeclFile_Widgets").Widget1 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exporter : typeof exporter +> : ^^^^^^^^^^^^^^^ +>createExportedWidget1 : () => import("privacyCannotNameAccessorDeclFile_Widgets").Widget1 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + } + static get myPublicStaticMethod1() { // Error +>myPublicStaticMethod1 : import("GlobalWidgets").Widget3 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + return exporter.createExportedWidget3(); +>exporter.createExportedWidget3() : import("GlobalWidgets").Widget3 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exporter.createExportedWidget3 : () => import("GlobalWidgets").Widget3 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exporter : typeof exporter +> : ^^^^^^^^^^^^^^^ +>createExportedWidget3 : () => import("GlobalWidgets").Widget3 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + } + private static get myPrivateStaticMethod1() { +>myPrivateStaticMethod1 : import("GlobalWidgets").Widget3 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + return exporter.createExportedWidget3(); +>exporter.createExportedWidget3() : import("GlobalWidgets").Widget3 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exporter.createExportedWidget3 : () => import("GlobalWidgets").Widget3 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exporter : typeof exporter +> : ^^^^^^^^^^^^^^^ +>createExportedWidget3 : () => import("GlobalWidgets").Widget3 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + } + get myPublicMethod1() { // Error +>myPublicMethod1 : import("GlobalWidgets").Widget3 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + return exporter.createExportedWidget3(); +>exporter.createExportedWidget3() : import("GlobalWidgets").Widget3 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exporter.createExportedWidget3 : () => import("GlobalWidgets").Widget3 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exporter : typeof exporter +> : ^^^^^^^^^^^^^^^ +>createExportedWidget3 : () => import("GlobalWidgets").Widget3 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + } + private get myPrivateMethod1() { +>myPrivateMethod1 : import("GlobalWidgets").Widget3 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + return exporter.createExportedWidget3(); +>exporter.createExportedWidget3() : import("GlobalWidgets").Widget3 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exporter.createExportedWidget3 : () => import("GlobalWidgets").Widget3 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exporter : typeof exporter +> : ^^^^^^^^^^^^^^^ +>createExportedWidget3 : () => import("GlobalWidgets").Widget3 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + } +} + +class privateClassWithWithPrivateGetAccessorTypes { +>privateClassWithWithPrivateGetAccessorTypes : privateClassWithWithPrivateGetAccessorTypes +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static get myPublicStaticMethod() { +>myPublicStaticMethod : import("privacyCannotNameAccessorDeclFile_Widgets").Widget1 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + return exporter.createExportedWidget1(); +>exporter.createExportedWidget1() : import("privacyCannotNameAccessorDeclFile_Widgets").Widget1 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exporter.createExportedWidget1 : () => import("privacyCannotNameAccessorDeclFile_Widgets").Widget1 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exporter : typeof exporter +> : ^^^^^^^^^^^^^^^ +>createExportedWidget1 : () => import("privacyCannotNameAccessorDeclFile_Widgets").Widget1 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + } + private static get myPrivateStaticMethod() { +>myPrivateStaticMethod : import("privacyCannotNameAccessorDeclFile_Widgets").Widget1 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + return exporter.createExportedWidget1(); +>exporter.createExportedWidget1() : import("privacyCannotNameAccessorDeclFile_Widgets").Widget1 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exporter.createExportedWidget1 : () => import("privacyCannotNameAccessorDeclFile_Widgets").Widget1 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exporter : typeof exporter +> : ^^^^^^^^^^^^^^^ +>createExportedWidget1 : () => import("privacyCannotNameAccessorDeclFile_Widgets").Widget1 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + } + get myPublicMethod() { +>myPublicMethod : import("privacyCannotNameAccessorDeclFile_Widgets").Widget1 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + return exporter.createExportedWidget1(); +>exporter.createExportedWidget1() : import("privacyCannotNameAccessorDeclFile_Widgets").Widget1 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exporter.createExportedWidget1 : () => import("privacyCannotNameAccessorDeclFile_Widgets").Widget1 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exporter : typeof exporter +> : ^^^^^^^^^^^^^^^ +>createExportedWidget1 : () => import("privacyCannotNameAccessorDeclFile_Widgets").Widget1 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + } + private get myPrivateMethod() { +>myPrivateMethod : import("privacyCannotNameAccessorDeclFile_Widgets").Widget1 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + return exporter.createExportedWidget1(); +>exporter.createExportedWidget1() : import("privacyCannotNameAccessorDeclFile_Widgets").Widget1 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exporter.createExportedWidget1 : () => import("privacyCannotNameAccessorDeclFile_Widgets").Widget1 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exporter : typeof exporter +> : ^^^^^^^^^^^^^^^ +>createExportedWidget1 : () => import("privacyCannotNameAccessorDeclFile_Widgets").Widget1 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + } + static get myPublicStaticMethod1() { +>myPublicStaticMethod1 : import("GlobalWidgets").Widget3 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + return exporter.createExportedWidget3(); +>exporter.createExportedWidget3() : import("GlobalWidgets").Widget3 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exporter.createExportedWidget3 : () => import("GlobalWidgets").Widget3 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exporter : typeof exporter +> : ^^^^^^^^^^^^^^^ +>createExportedWidget3 : () => import("GlobalWidgets").Widget3 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + } + private static get myPrivateStaticMethod1() { +>myPrivateStaticMethod1 : import("GlobalWidgets").Widget3 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + return exporter.createExportedWidget3(); +>exporter.createExportedWidget3() : import("GlobalWidgets").Widget3 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exporter.createExportedWidget3 : () => import("GlobalWidgets").Widget3 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exporter : typeof exporter +> : ^^^^^^^^^^^^^^^ +>createExportedWidget3 : () => import("GlobalWidgets").Widget3 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + } + get myPublicMethod1() { +>myPublicMethod1 : import("GlobalWidgets").Widget3 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + return exporter.createExportedWidget3(); +>exporter.createExportedWidget3() : import("GlobalWidgets").Widget3 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exporter.createExportedWidget3 : () => import("GlobalWidgets").Widget3 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exporter : typeof exporter +> : ^^^^^^^^^^^^^^^ +>createExportedWidget3 : () => import("GlobalWidgets").Widget3 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + } + private get myPrivateMethod1() { +>myPrivateMethod1 : import("GlobalWidgets").Widget3 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + return exporter.createExportedWidget3(); +>exporter.createExportedWidget3() : import("GlobalWidgets").Widget3 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exporter.createExportedWidget3 : () => import("GlobalWidgets").Widget3 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exporter : typeof exporter +> : ^^^^^^^^^^^^^^^ +>createExportedWidget3 : () => import("GlobalWidgets").Widget3 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + } +} + +export class publicClassWithPrivateModuleGetAccessorTypes { +>publicClassWithPrivateModuleGetAccessorTypes : publicClassWithPrivateModuleGetAccessorTypes +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static get myPublicStaticMethod() { // Error +>myPublicStaticMethod : import("privacyCannotNameAccessorDeclFile_Widgets").SpecializedWidget.Widget2 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + return exporter.createExportedWidget2(); +>exporter.createExportedWidget2() : import("privacyCannotNameAccessorDeclFile_Widgets").SpecializedWidget.Widget2 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exporter.createExportedWidget2 : () => import("privacyCannotNameAccessorDeclFile_Widgets").SpecializedWidget.Widget2 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exporter : typeof exporter +> : ^^^^^^^^^^^^^^^ +>createExportedWidget2 : () => import("privacyCannotNameAccessorDeclFile_Widgets").SpecializedWidget.Widget2 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + } + get myPublicMethod() { // Error +>myPublicMethod : import("privacyCannotNameAccessorDeclFile_Widgets").SpecializedWidget.Widget2 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + return exporter.createExportedWidget2(); +>exporter.createExportedWidget2() : import("privacyCannotNameAccessorDeclFile_Widgets").SpecializedWidget.Widget2 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exporter.createExportedWidget2 : () => import("privacyCannotNameAccessorDeclFile_Widgets").SpecializedWidget.Widget2 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exporter : typeof exporter +> : ^^^^^^^^^^^^^^^ +>createExportedWidget2 : () => import("privacyCannotNameAccessorDeclFile_Widgets").SpecializedWidget.Widget2 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + } + static get myPublicStaticMethod1() { // Error +>myPublicStaticMethod1 : import("GlobalWidgets").SpecializedGlobalWidget.Widget4 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + return exporter.createExportedWidget4(); +>exporter.createExportedWidget4() : import("GlobalWidgets").SpecializedGlobalWidget.Widget4 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exporter.createExportedWidget4 : () => import("GlobalWidgets").SpecializedGlobalWidget.Widget4 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exporter : typeof exporter +> : ^^^^^^^^^^^^^^^ +>createExportedWidget4 : () => import("GlobalWidgets").SpecializedGlobalWidget.Widget4 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + } + get myPublicMethod1() { // Error +>myPublicMethod1 : import("GlobalWidgets").SpecializedGlobalWidget.Widget4 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + return exporter.createExportedWidget4(); +>exporter.createExportedWidget4() : import("GlobalWidgets").SpecializedGlobalWidget.Widget4 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exporter.createExportedWidget4 : () => import("GlobalWidgets").SpecializedGlobalWidget.Widget4 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exporter : typeof exporter +> : ^^^^^^^^^^^^^^^ +>createExportedWidget4 : () => import("GlobalWidgets").SpecializedGlobalWidget.Widget4 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + } +} + +class privateClassWithPrivateModuleGetAccessorTypes { +>privateClassWithPrivateModuleGetAccessorTypes : privateClassWithPrivateModuleGetAccessorTypes +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static get myPublicStaticMethod() { +>myPublicStaticMethod : import("privacyCannotNameAccessorDeclFile_Widgets").SpecializedWidget.Widget2 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + return exporter.createExportedWidget2(); +>exporter.createExportedWidget2() : import("privacyCannotNameAccessorDeclFile_Widgets").SpecializedWidget.Widget2 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exporter.createExportedWidget2 : () => import("privacyCannotNameAccessorDeclFile_Widgets").SpecializedWidget.Widget2 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exporter : typeof exporter +> : ^^^^^^^^^^^^^^^ +>createExportedWidget2 : () => import("privacyCannotNameAccessorDeclFile_Widgets").SpecializedWidget.Widget2 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + } + get myPublicMethod() { +>myPublicMethod : import("privacyCannotNameAccessorDeclFile_Widgets").SpecializedWidget.Widget2 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + return exporter.createExportedWidget2(); +>exporter.createExportedWidget2() : import("privacyCannotNameAccessorDeclFile_Widgets").SpecializedWidget.Widget2 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exporter.createExportedWidget2 : () => import("privacyCannotNameAccessorDeclFile_Widgets").SpecializedWidget.Widget2 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exporter : typeof exporter +> : ^^^^^^^^^^^^^^^ +>createExportedWidget2 : () => import("privacyCannotNameAccessorDeclFile_Widgets").SpecializedWidget.Widget2 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + } + static get myPublicStaticMethod1() { +>myPublicStaticMethod1 : import("GlobalWidgets").SpecializedGlobalWidget.Widget4 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + return exporter.createExportedWidget4(); +>exporter.createExportedWidget4() : import("GlobalWidgets").SpecializedGlobalWidget.Widget4 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exporter.createExportedWidget4 : () => import("GlobalWidgets").SpecializedGlobalWidget.Widget4 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exporter : typeof exporter +> : ^^^^^^^^^^^^^^^ +>createExportedWidget4 : () => import("GlobalWidgets").SpecializedGlobalWidget.Widget4 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + } + get myPublicMethod1() { +>myPublicMethod1 : import("GlobalWidgets").SpecializedGlobalWidget.Widget4 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + return exporter.createExportedWidget4(); +>exporter.createExportedWidget4() : import("GlobalWidgets").SpecializedGlobalWidget.Widget4 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exporter.createExportedWidget4 : () => import("GlobalWidgets").SpecializedGlobalWidget.Widget4 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exporter : typeof exporter +> : ^^^^^^^^^^^^^^^ +>createExportedWidget4 : () => import("GlobalWidgets").SpecializedGlobalWidget.Widget4 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + } +} +=== privacyCannotNameAccessorDeclFile_GlobalWidgets.ts === +declare module "GlobalWidgets" { +>"GlobalWidgets" : typeof import("GlobalWidgets") +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + export class Widget3 { +>Widget3 : Widget3 +> : ^^^^^^^ + + name: string; +>name : string +> : ^^^^^^ + } + export function createWidget3(): Widget3; +>createWidget3 : () => Widget3 +> : ^^^^^^ + + export namespace SpecializedGlobalWidget { +>SpecializedGlobalWidget : typeof SpecializedGlobalWidget +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + export class Widget4 { +>Widget4 : Widget4 +> : ^^^^^^^ + + name: string; +>name : string +> : ^^^^^^ + } + function createWidget4(): Widget4; +>createWidget4 : () => Widget4 +> : ^^^^^^ + } +} + +=== privacyCannotNameAccessorDeclFile_Widgets.ts === +export class Widget1 { +>Widget1 : Widget1 +> : ^^^^^^^ + + name = 'one'; +>name : string +> : ^^^^^^ +>'one' : "one" +> : ^^^^^ +} +export function createWidget1() { +>createWidget1 : () => Widget1 +> : ^^^^^^^^^^^^^ + + return new Widget1(); +>new Widget1() : Widget1 +> : ^^^^^^^ +>Widget1 : typeof Widget1 +> : ^^^^^^^^^^^^^^ +} + +export namespace SpecializedWidget { +>SpecializedWidget : typeof SpecializedWidget +> : ^^^^^^^^^^^^^^^^^^^^^^^^ + + export class Widget2 { +>Widget2 : Widget2 +> : ^^^^^^^ + + name = 'one'; +>name : string +> : ^^^^^^ +>'one' : "one" +> : ^^^^^ + } + export function createWidget2() { +>createWidget2 : () => Widget2 +> : ^^^^^^^^^^^^^ + + return new Widget2(); +>new Widget2() : Widget2 +> : ^^^^^^^ +>Widget2 : typeof Widget2 +> : ^^^^^^^^^^^^^^ + } +} + +=== privacyCannotNameAccessorDeclFile_exporter.ts === +/// +import Widgets = require("./privacyCannotNameAccessorDeclFile_Widgets"); +>Widgets : typeof Widgets +> : ^^^^^^^^^^^^^^ + +import Widgets1 = require("GlobalWidgets"); +>Widgets1 : typeof Widgets1 +> : ^^^^^^^^^^^^^^^ + +export function createExportedWidget1() { +>createExportedWidget1 : () => Widgets.Widget1 +> : ^^^^^^^^^^^^^^^^^^^^^ + + return Widgets.createWidget1(); +>Widgets.createWidget1() : Widgets.Widget1 +> : ^^^^^^^^^^^^^^^ +>Widgets.createWidget1 : () => Widgets.Widget1 +> : ^^^^^^^^^^^^^^^^^^^^^ +>Widgets : typeof Widgets +> : ^^^^^^^^^^^^^^ +>createWidget1 : () => Widgets.Widget1 +> : ^^^^^^^^^^^^^^^^^^^^^ +} +export function createExportedWidget2() { +>createExportedWidget2 : () => Widgets.SpecializedWidget.Widget2 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + return Widgets.SpecializedWidget.createWidget2(); +>Widgets.SpecializedWidget.createWidget2() : Widgets.SpecializedWidget.Widget2 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>Widgets.SpecializedWidget.createWidget2 : () => Widgets.SpecializedWidget.Widget2 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>Widgets.SpecializedWidget : typeof Widgets.SpecializedWidget +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>Widgets : typeof Widgets +> : ^^^^^^^^^^^^^^ +>SpecializedWidget : typeof Widgets.SpecializedWidget +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>createWidget2 : () => Widgets.SpecializedWidget.Widget2 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +} +export function createExportedWidget3() { +>createExportedWidget3 : () => Widgets1.Widget3 +> : ^^^^^^^^^^^^^^^^^^^^^^ + + return Widgets1.createWidget3(); +>Widgets1.createWidget3() : Widgets1.Widget3 +> : ^^^^^^^^^^^^^^^^ +>Widgets1.createWidget3 : () => Widgets1.Widget3 +> : ^^^^^^^^^^^^^^^^^^^^^^ +>Widgets1 : typeof Widgets1 +> : ^^^^^^^^^^^^^^^ +>createWidget3 : () => Widgets1.Widget3 +> : ^^^^^^^^^^^^^^^^^^^^^^ +} +export function createExportedWidget4() { +>createExportedWidget4 : () => Widgets1.SpecializedGlobalWidget.Widget4 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + return Widgets1.SpecializedGlobalWidget.createWidget4(); +>Widgets1.SpecializedGlobalWidget.createWidget4() : Widgets1.SpecializedGlobalWidget.Widget4 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>Widgets1.SpecializedGlobalWidget.createWidget4 : () => Widgets1.SpecializedGlobalWidget.Widget4 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>Widgets1.SpecializedGlobalWidget : typeof Widgets1.SpecializedGlobalWidget +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>Widgets1 : typeof Widgets1 +> : ^^^^^^^^^^^^^^^ +>SpecializedGlobalWidget : typeof Widgets1.SpecializedGlobalWidget +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>createWidget4 : () => Widgets1.SpecializedGlobalWidget.Widget4 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +} + diff --git a/tests/baselines/reference/privacyGetter.errors.txt b/tests/baselines/reference/privacyGetter(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/privacyGetter.errors.txt rename to tests/baselines/reference/privacyGetter(target=es2015).errors.txt diff --git a/tests/baselines/reference/privacyGetter(target=es2015).js b/tests/baselines/reference/privacyGetter(target=es2015).js new file mode 100644 index 0000000000000..3d4d0400d63ef --- /dev/null +++ b/tests/baselines/reference/privacyGetter(target=es2015).js @@ -0,0 +1,379 @@ +//// [tests/cases/compiler/privacyGetter.ts] //// + +//// [privacyGetter.ts] +export namespace m1 { + export class C1_public { + private f1() { + } + } + + class C2_private { + } + + export class C3_public { + private get p1_private() { + return new C1_public(); + } + + private set p1_private(m1_c3_p1_arg: C1_public) { + } + + private get p2_private() { + return new C1_public(); + } + + private set p2_private(m1_c3_p2_arg: C1_public) { + } + + private get p3_private() { + return new C2_private(); + } + + private set p3_private(m1_c3_p3_arg: C2_private) { + } + + public get p4_public(): C2_private { // error + return new C2_private(); //error + } + + public set p4_public(m1_c3_p4_arg: C2_private) { // error + } + } + + class C4_private { + private get p1_private() { + return new C1_public(); + } + + private set p1_private(m1_c3_p1_arg: C1_public) { + } + + private get p2_private() { + return new C1_public(); + } + + private set p2_private(m1_c3_p2_arg: C1_public) { + } + + private get p3_private() { + return new C2_private(); + } + + private set p3_private(m1_c3_p3_arg: C2_private) { + } + + public get p4_public(): C2_private { + return new C2_private(); + } + + public set p4_public(m1_c3_p4_arg: C2_private) { + } + } +} + +namespace m2 { + export class m2_C1_public { + private f1() { + } + } + + class m2_C2_private { + } + + export class m2_C3_public { + private get p1_private() { + return new m2_C1_public(); + } + + private set p1_private(m2_c3_p1_arg: m2_C1_public) { + } + + private get p2_private() { + return new m2_C1_public(); + } + + private set p2_private(m2_c3_p2_arg: m2_C1_public) { + } + + private get p3_private() { + return new m2_C2_private(); + } + + private set p3_private(m2_c3_p3_arg: m2_C2_private) { + } + + public get p4_public(): m2_C2_private { + return new m2_C2_private(); + } + + public set p4_public(m2_c3_p4_arg: m2_C2_private) { + } + } + + class m2_C4_private { + private get p1_private() { + return new m2_C1_public(); + } + + private set p1_private(m2_c3_p1_arg: m2_C1_public) { + } + + private get p2_private() { + return new m2_C1_public(); + } + + private set p2_private(m2_c3_p2_arg: m2_C1_public) { + } + + private get p3_private() { + return new m2_C2_private(); + } + + private set p3_private(m2_c3_p3_arg: m2_C2_private) { + } + + public get p4_public(): m2_C2_private { + return new m2_C2_private(); + } + + public set p4_public(m2_c3_p4_arg: m2_C2_private) { + } + } +} + +class C5_private { + private f() { + } +} + +export class C6_public { +} + +export class C7_public { + private get p1_private() { + return new C6_public(); + } + + private set p1_private(m1_c3_p1_arg: C6_public) { + } + + private get p2_private() { + return new C6_public(); + } + + private set p2_private(m1_c3_p2_arg: C6_public) { + } + + private get p3_private() { + return new C5_private(); + } + + private set p3_private(m1_c3_p3_arg: C5_private) { + } + + public get p4_public(): C5_private { // error + return new C5_private(); //error + } + + public set p4_public(m1_c3_p4_arg: C5_private) { // error + } +} + +class C8_private { + private get p1_private() { + return new C6_public(); + } + + private set p1_private(m1_c3_p1_arg: C6_public) { + } + + private get p2_private() { + return new C6_public(); + } + + private set p2_private(m1_c3_p2_arg: C6_public) { + } + + private get p3_private() { + return new C5_private(); + } + + private set p3_private(m1_c3_p3_arg: C5_private) { + } + + public get p4_public(): C5_private { + return new C5_private(); + } + + public set p4_public(m1_c3_p4_arg: C5_private) { + } +} + +//// [privacyGetter.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.C7_public = exports.C6_public = exports.m1 = void 0; + var m1; + (function (m1) { + class C1_public { + f1() { + } + } + m1.C1_public = C1_public; + class C2_private { + } + class C3_public { + get p1_private() { + return new C1_public(); + } + set p1_private(m1_c3_p1_arg) { + } + get p2_private() { + return new C1_public(); + } + set p2_private(m1_c3_p2_arg) { + } + get p3_private() { + return new C2_private(); + } + set p3_private(m1_c3_p3_arg) { + } + get p4_public() { + return new C2_private(); //error + } + set p4_public(m1_c3_p4_arg) { + } + } + m1.C3_public = C3_public; + class C4_private { + get p1_private() { + return new C1_public(); + } + set p1_private(m1_c3_p1_arg) { + } + get p2_private() { + return new C1_public(); + } + set p2_private(m1_c3_p2_arg) { + } + get p3_private() { + return new C2_private(); + } + set p3_private(m1_c3_p3_arg) { + } + get p4_public() { + return new C2_private(); + } + set p4_public(m1_c3_p4_arg) { + } + } + })(m1 || (exports.m1 = m1 = {})); + var m2; + (function (m2) { + class m2_C1_public { + f1() { + } + } + m2.m2_C1_public = m2_C1_public; + class m2_C2_private { + } + class m2_C3_public { + get p1_private() { + return new m2_C1_public(); + } + set p1_private(m2_c3_p1_arg) { + } + get p2_private() { + return new m2_C1_public(); + } + set p2_private(m2_c3_p2_arg) { + } + get p3_private() { + return new m2_C2_private(); + } + set p3_private(m2_c3_p3_arg) { + } + get p4_public() { + return new m2_C2_private(); + } + set p4_public(m2_c3_p4_arg) { + } + } + m2.m2_C3_public = m2_C3_public; + class m2_C4_private { + get p1_private() { + return new m2_C1_public(); + } + set p1_private(m2_c3_p1_arg) { + } + get p2_private() { + return new m2_C1_public(); + } + set p2_private(m2_c3_p2_arg) { + } + get p3_private() { + return new m2_C2_private(); + } + set p3_private(m2_c3_p3_arg) { + } + get p4_public() { + return new m2_C2_private(); + } + set p4_public(m2_c3_p4_arg) { + } + } + })(m2 || (m2 = {})); + class C5_private { + f() { + } + } + class C6_public { + } + exports.C6_public = C6_public; + class C7_public { + get p1_private() { + return new C6_public(); + } + set p1_private(m1_c3_p1_arg) { + } + get p2_private() { + return new C6_public(); + } + set p2_private(m1_c3_p2_arg) { + } + get p3_private() { + return new C5_private(); + } + set p3_private(m1_c3_p3_arg) { + } + get p4_public() { + return new C5_private(); //error + } + set p4_public(m1_c3_p4_arg) { + } + } + exports.C7_public = C7_public; + class C8_private { + get p1_private() { + return new C6_public(); + } + set p1_private(m1_c3_p1_arg) { + } + get p2_private() { + return new C6_public(); + } + set p2_private(m1_c3_p2_arg) { + } + get p3_private() { + return new C5_private(); + } + set p3_private(m1_c3_p3_arg) { + } + get p4_public() { + return new C5_private(); + } + set p4_public(m1_c3_p4_arg) { + } + } +}); diff --git a/tests/baselines/reference/privacyGetter.symbols b/tests/baselines/reference/privacyGetter(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/privacyGetter.symbols rename to tests/baselines/reference/privacyGetter(target=es2015).symbols diff --git a/tests/baselines/reference/privacyGetter.types b/tests/baselines/reference/privacyGetter(target=es2015).types similarity index 100% rename from tests/baselines/reference/privacyGetter.types rename to tests/baselines/reference/privacyGetter(target=es2015).types diff --git a/tests/baselines/reference/privacyGetter(target=es5).errors.txt b/tests/baselines/reference/privacyGetter(target=es5).errors.txt new file mode 100644 index 0000000000000..e8b11e2d53e4b --- /dev/null +++ b/tests/baselines/reference/privacyGetter(target=es5).errors.txt @@ -0,0 +1,212 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== privacyGetter.ts (0 errors) ==== + export namespace m1 { + export class C1_public { + private f1() { + } + } + + class C2_private { + } + + export class C3_public { + private get p1_private() { + return new C1_public(); + } + + private set p1_private(m1_c3_p1_arg: C1_public) { + } + + private get p2_private() { + return new C1_public(); + } + + private set p2_private(m1_c3_p2_arg: C1_public) { + } + + private get p3_private() { + return new C2_private(); + } + + private set p3_private(m1_c3_p3_arg: C2_private) { + } + + public get p4_public(): C2_private { // error + return new C2_private(); //error + } + + public set p4_public(m1_c3_p4_arg: C2_private) { // error + } + } + + class C4_private { + private get p1_private() { + return new C1_public(); + } + + private set p1_private(m1_c3_p1_arg: C1_public) { + } + + private get p2_private() { + return new C1_public(); + } + + private set p2_private(m1_c3_p2_arg: C1_public) { + } + + private get p3_private() { + return new C2_private(); + } + + private set p3_private(m1_c3_p3_arg: C2_private) { + } + + public get p4_public(): C2_private { + return new C2_private(); + } + + public set p4_public(m1_c3_p4_arg: C2_private) { + } + } + } + + namespace m2 { + export class m2_C1_public { + private f1() { + } + } + + class m2_C2_private { + } + + export class m2_C3_public { + private get p1_private() { + return new m2_C1_public(); + } + + private set p1_private(m2_c3_p1_arg: m2_C1_public) { + } + + private get p2_private() { + return new m2_C1_public(); + } + + private set p2_private(m2_c3_p2_arg: m2_C1_public) { + } + + private get p3_private() { + return new m2_C2_private(); + } + + private set p3_private(m2_c3_p3_arg: m2_C2_private) { + } + + public get p4_public(): m2_C2_private { + return new m2_C2_private(); + } + + public set p4_public(m2_c3_p4_arg: m2_C2_private) { + } + } + + class m2_C4_private { + private get p1_private() { + return new m2_C1_public(); + } + + private set p1_private(m2_c3_p1_arg: m2_C1_public) { + } + + private get p2_private() { + return new m2_C1_public(); + } + + private set p2_private(m2_c3_p2_arg: m2_C1_public) { + } + + private get p3_private() { + return new m2_C2_private(); + } + + private set p3_private(m2_c3_p3_arg: m2_C2_private) { + } + + public get p4_public(): m2_C2_private { + return new m2_C2_private(); + } + + public set p4_public(m2_c3_p4_arg: m2_C2_private) { + } + } + } + + class C5_private { + private f() { + } + } + + export class C6_public { + } + + export class C7_public { + private get p1_private() { + return new C6_public(); + } + + private set p1_private(m1_c3_p1_arg: C6_public) { + } + + private get p2_private() { + return new C6_public(); + } + + private set p2_private(m1_c3_p2_arg: C6_public) { + } + + private get p3_private() { + return new C5_private(); + } + + private set p3_private(m1_c3_p3_arg: C5_private) { + } + + public get p4_public(): C5_private { // error + return new C5_private(); //error + } + + public set p4_public(m1_c3_p4_arg: C5_private) { // error + } + } + + class C8_private { + private get p1_private() { + return new C6_public(); + } + + private set p1_private(m1_c3_p1_arg: C6_public) { + } + + private get p2_private() { + return new C6_public(); + } + + private set p2_private(m1_c3_p2_arg: C6_public) { + } + + private get p3_private() { + return new C5_private(); + } + + private set p3_private(m1_c3_p3_arg: C5_private) { + } + + public get p4_public(): C5_private { + return new C5_private(); + } + + public set p4_public(m1_c3_p4_arg: C5_private) { + } + } \ No newline at end of file diff --git a/tests/baselines/reference/privacyGetter.js b/tests/baselines/reference/privacyGetter(target=es5).js similarity index 100% rename from tests/baselines/reference/privacyGetter.js rename to tests/baselines/reference/privacyGetter(target=es5).js diff --git a/tests/baselines/reference/privacyGetter(target=es5).symbols b/tests/baselines/reference/privacyGetter(target=es5).symbols new file mode 100644 index 0000000000000..b66717922bf1e --- /dev/null +++ b/tests/baselines/reference/privacyGetter(target=es5).symbols @@ -0,0 +1,388 @@ +//// [tests/cases/compiler/privacyGetter.ts] //// + +=== privacyGetter.ts === +export namespace m1 { +>m1 : Symbol(m1, Decl(privacyGetter.ts, 0, 0)) + + export class C1_public { +>C1_public : Symbol(C1_public, Decl(privacyGetter.ts, 0, 21)) + + private f1() { +>f1 : Symbol(C1_public.f1, Decl(privacyGetter.ts, 1, 28)) + } + } + + class C2_private { +>C2_private : Symbol(C2_private, Decl(privacyGetter.ts, 4, 5)) + } + + export class C3_public { +>C3_public : Symbol(C3_public, Decl(privacyGetter.ts, 7, 5)) + + private get p1_private() { +>p1_private : Symbol(C3_public.p1_private, Decl(privacyGetter.ts, 9, 28), Decl(privacyGetter.ts, 12, 9)) + + return new C1_public(); +>C1_public : Symbol(C1_public, Decl(privacyGetter.ts, 0, 21)) + } + + private set p1_private(m1_c3_p1_arg: C1_public) { +>p1_private : Symbol(C3_public.p1_private, Decl(privacyGetter.ts, 9, 28), Decl(privacyGetter.ts, 12, 9)) +>m1_c3_p1_arg : Symbol(m1_c3_p1_arg, Decl(privacyGetter.ts, 14, 31)) +>C1_public : Symbol(C1_public, Decl(privacyGetter.ts, 0, 21)) + } + + private get p2_private() { +>p2_private : Symbol(C3_public.p2_private, Decl(privacyGetter.ts, 15, 9), Decl(privacyGetter.ts, 19, 9)) + + return new C1_public(); +>C1_public : Symbol(C1_public, Decl(privacyGetter.ts, 0, 21)) + } + + private set p2_private(m1_c3_p2_arg: C1_public) { +>p2_private : Symbol(C3_public.p2_private, Decl(privacyGetter.ts, 15, 9), Decl(privacyGetter.ts, 19, 9)) +>m1_c3_p2_arg : Symbol(m1_c3_p2_arg, Decl(privacyGetter.ts, 21, 31)) +>C1_public : Symbol(C1_public, Decl(privacyGetter.ts, 0, 21)) + } + + private get p3_private() { +>p3_private : Symbol(C3_public.p3_private, Decl(privacyGetter.ts, 22, 9), Decl(privacyGetter.ts, 26, 9)) + + return new C2_private(); +>C2_private : Symbol(C2_private, Decl(privacyGetter.ts, 4, 5)) + } + + private set p3_private(m1_c3_p3_arg: C2_private) { +>p3_private : Symbol(C3_public.p3_private, Decl(privacyGetter.ts, 22, 9), Decl(privacyGetter.ts, 26, 9)) +>m1_c3_p3_arg : Symbol(m1_c3_p3_arg, Decl(privacyGetter.ts, 28, 31)) +>C2_private : Symbol(C2_private, Decl(privacyGetter.ts, 4, 5)) + } + + public get p4_public(): C2_private { // error +>p4_public : Symbol(C3_public.p4_public, Decl(privacyGetter.ts, 29, 9), Decl(privacyGetter.ts, 33, 9)) +>C2_private : Symbol(C2_private, Decl(privacyGetter.ts, 4, 5)) + + return new C2_private(); //error +>C2_private : Symbol(C2_private, Decl(privacyGetter.ts, 4, 5)) + } + + public set p4_public(m1_c3_p4_arg: C2_private) { // error +>p4_public : Symbol(C3_public.p4_public, Decl(privacyGetter.ts, 29, 9), Decl(privacyGetter.ts, 33, 9)) +>m1_c3_p4_arg : Symbol(m1_c3_p4_arg, Decl(privacyGetter.ts, 35, 29)) +>C2_private : Symbol(C2_private, Decl(privacyGetter.ts, 4, 5)) + } + } + + class C4_private { +>C4_private : Symbol(C4_private, Decl(privacyGetter.ts, 37, 5)) + + private get p1_private() { +>p1_private : Symbol(C4_private.p1_private, Decl(privacyGetter.ts, 39, 22), Decl(privacyGetter.ts, 42, 9)) + + return new C1_public(); +>C1_public : Symbol(C1_public, Decl(privacyGetter.ts, 0, 21)) + } + + private set p1_private(m1_c3_p1_arg: C1_public) { +>p1_private : Symbol(C4_private.p1_private, Decl(privacyGetter.ts, 39, 22), Decl(privacyGetter.ts, 42, 9)) +>m1_c3_p1_arg : Symbol(m1_c3_p1_arg, Decl(privacyGetter.ts, 44, 31)) +>C1_public : Symbol(C1_public, Decl(privacyGetter.ts, 0, 21)) + } + + private get p2_private() { +>p2_private : Symbol(C4_private.p2_private, Decl(privacyGetter.ts, 45, 9), Decl(privacyGetter.ts, 49, 9)) + + return new C1_public(); +>C1_public : Symbol(C1_public, Decl(privacyGetter.ts, 0, 21)) + } + + private set p2_private(m1_c3_p2_arg: C1_public) { +>p2_private : Symbol(C4_private.p2_private, Decl(privacyGetter.ts, 45, 9), Decl(privacyGetter.ts, 49, 9)) +>m1_c3_p2_arg : Symbol(m1_c3_p2_arg, Decl(privacyGetter.ts, 51, 31)) +>C1_public : Symbol(C1_public, Decl(privacyGetter.ts, 0, 21)) + } + + private get p3_private() { +>p3_private : Symbol(C4_private.p3_private, Decl(privacyGetter.ts, 52, 9), Decl(privacyGetter.ts, 56, 9)) + + return new C2_private(); +>C2_private : Symbol(C2_private, Decl(privacyGetter.ts, 4, 5)) + } + + private set p3_private(m1_c3_p3_arg: C2_private) { +>p3_private : Symbol(C4_private.p3_private, Decl(privacyGetter.ts, 52, 9), Decl(privacyGetter.ts, 56, 9)) +>m1_c3_p3_arg : Symbol(m1_c3_p3_arg, Decl(privacyGetter.ts, 58, 31)) +>C2_private : Symbol(C2_private, Decl(privacyGetter.ts, 4, 5)) + } + + public get p4_public(): C2_private { +>p4_public : Symbol(C4_private.p4_public, Decl(privacyGetter.ts, 59, 9), Decl(privacyGetter.ts, 63, 9)) +>C2_private : Symbol(C2_private, Decl(privacyGetter.ts, 4, 5)) + + return new C2_private(); +>C2_private : Symbol(C2_private, Decl(privacyGetter.ts, 4, 5)) + } + + public set p4_public(m1_c3_p4_arg: C2_private) { +>p4_public : Symbol(C4_private.p4_public, Decl(privacyGetter.ts, 59, 9), Decl(privacyGetter.ts, 63, 9)) +>m1_c3_p4_arg : Symbol(m1_c3_p4_arg, Decl(privacyGetter.ts, 65, 29)) +>C2_private : Symbol(C2_private, Decl(privacyGetter.ts, 4, 5)) + } + } +} + +namespace m2 { +>m2 : Symbol(m2, Decl(privacyGetter.ts, 68, 1)) + + export class m2_C1_public { +>m2_C1_public : Symbol(m2_C1_public, Decl(privacyGetter.ts, 70, 14)) + + private f1() { +>f1 : Symbol(m2_C1_public.f1, Decl(privacyGetter.ts, 71, 31)) + } + } + + class m2_C2_private { +>m2_C2_private : Symbol(m2_C2_private, Decl(privacyGetter.ts, 74, 5)) + } + + export class m2_C3_public { +>m2_C3_public : Symbol(m2_C3_public, Decl(privacyGetter.ts, 77, 5)) + + private get p1_private() { +>p1_private : Symbol(m2_C3_public.p1_private, Decl(privacyGetter.ts, 79, 31), Decl(privacyGetter.ts, 82, 9)) + + return new m2_C1_public(); +>m2_C1_public : Symbol(m2_C1_public, Decl(privacyGetter.ts, 70, 14)) + } + + private set p1_private(m2_c3_p1_arg: m2_C1_public) { +>p1_private : Symbol(m2_C3_public.p1_private, Decl(privacyGetter.ts, 79, 31), Decl(privacyGetter.ts, 82, 9)) +>m2_c3_p1_arg : Symbol(m2_c3_p1_arg, Decl(privacyGetter.ts, 84, 31)) +>m2_C1_public : Symbol(m2_C1_public, Decl(privacyGetter.ts, 70, 14)) + } + + private get p2_private() { +>p2_private : Symbol(m2_C3_public.p2_private, Decl(privacyGetter.ts, 85, 9), Decl(privacyGetter.ts, 89, 9)) + + return new m2_C1_public(); +>m2_C1_public : Symbol(m2_C1_public, Decl(privacyGetter.ts, 70, 14)) + } + + private set p2_private(m2_c3_p2_arg: m2_C1_public) { +>p2_private : Symbol(m2_C3_public.p2_private, Decl(privacyGetter.ts, 85, 9), Decl(privacyGetter.ts, 89, 9)) +>m2_c3_p2_arg : Symbol(m2_c3_p2_arg, Decl(privacyGetter.ts, 91, 31)) +>m2_C1_public : Symbol(m2_C1_public, Decl(privacyGetter.ts, 70, 14)) + } + + private get p3_private() { +>p3_private : Symbol(m2_C3_public.p3_private, Decl(privacyGetter.ts, 92, 9), Decl(privacyGetter.ts, 96, 9)) + + return new m2_C2_private(); +>m2_C2_private : Symbol(m2_C2_private, Decl(privacyGetter.ts, 74, 5)) + } + + private set p3_private(m2_c3_p3_arg: m2_C2_private) { +>p3_private : Symbol(m2_C3_public.p3_private, Decl(privacyGetter.ts, 92, 9), Decl(privacyGetter.ts, 96, 9)) +>m2_c3_p3_arg : Symbol(m2_c3_p3_arg, Decl(privacyGetter.ts, 98, 31)) +>m2_C2_private : Symbol(m2_C2_private, Decl(privacyGetter.ts, 74, 5)) + } + + public get p4_public(): m2_C2_private { +>p4_public : Symbol(m2_C3_public.p4_public, Decl(privacyGetter.ts, 99, 9), Decl(privacyGetter.ts, 103, 9)) +>m2_C2_private : Symbol(m2_C2_private, Decl(privacyGetter.ts, 74, 5)) + + return new m2_C2_private(); +>m2_C2_private : Symbol(m2_C2_private, Decl(privacyGetter.ts, 74, 5)) + } + + public set p4_public(m2_c3_p4_arg: m2_C2_private) { +>p4_public : Symbol(m2_C3_public.p4_public, Decl(privacyGetter.ts, 99, 9), Decl(privacyGetter.ts, 103, 9)) +>m2_c3_p4_arg : Symbol(m2_c3_p4_arg, Decl(privacyGetter.ts, 105, 29)) +>m2_C2_private : Symbol(m2_C2_private, Decl(privacyGetter.ts, 74, 5)) + } + } + + class m2_C4_private { +>m2_C4_private : Symbol(m2_C4_private, Decl(privacyGetter.ts, 107, 5)) + + private get p1_private() { +>p1_private : Symbol(m2_C4_private.p1_private, Decl(privacyGetter.ts, 109, 25), Decl(privacyGetter.ts, 112, 9)) + + return new m2_C1_public(); +>m2_C1_public : Symbol(m2_C1_public, Decl(privacyGetter.ts, 70, 14)) + } + + private set p1_private(m2_c3_p1_arg: m2_C1_public) { +>p1_private : Symbol(m2_C4_private.p1_private, Decl(privacyGetter.ts, 109, 25), Decl(privacyGetter.ts, 112, 9)) +>m2_c3_p1_arg : Symbol(m2_c3_p1_arg, Decl(privacyGetter.ts, 114, 31)) +>m2_C1_public : Symbol(m2_C1_public, Decl(privacyGetter.ts, 70, 14)) + } + + private get p2_private() { +>p2_private : Symbol(m2_C4_private.p2_private, Decl(privacyGetter.ts, 115, 9), Decl(privacyGetter.ts, 119, 9)) + + return new m2_C1_public(); +>m2_C1_public : Symbol(m2_C1_public, Decl(privacyGetter.ts, 70, 14)) + } + + private set p2_private(m2_c3_p2_arg: m2_C1_public) { +>p2_private : Symbol(m2_C4_private.p2_private, Decl(privacyGetter.ts, 115, 9), Decl(privacyGetter.ts, 119, 9)) +>m2_c3_p2_arg : Symbol(m2_c3_p2_arg, Decl(privacyGetter.ts, 121, 31)) +>m2_C1_public : Symbol(m2_C1_public, Decl(privacyGetter.ts, 70, 14)) + } + + private get p3_private() { +>p3_private : Symbol(m2_C4_private.p3_private, Decl(privacyGetter.ts, 122, 9), Decl(privacyGetter.ts, 126, 9)) + + return new m2_C2_private(); +>m2_C2_private : Symbol(m2_C2_private, Decl(privacyGetter.ts, 74, 5)) + } + + private set p3_private(m2_c3_p3_arg: m2_C2_private) { +>p3_private : Symbol(m2_C4_private.p3_private, Decl(privacyGetter.ts, 122, 9), Decl(privacyGetter.ts, 126, 9)) +>m2_c3_p3_arg : Symbol(m2_c3_p3_arg, Decl(privacyGetter.ts, 128, 31)) +>m2_C2_private : Symbol(m2_C2_private, Decl(privacyGetter.ts, 74, 5)) + } + + public get p4_public(): m2_C2_private { +>p4_public : Symbol(m2_C4_private.p4_public, Decl(privacyGetter.ts, 129, 9), Decl(privacyGetter.ts, 133, 9)) +>m2_C2_private : Symbol(m2_C2_private, Decl(privacyGetter.ts, 74, 5)) + + return new m2_C2_private(); +>m2_C2_private : Symbol(m2_C2_private, Decl(privacyGetter.ts, 74, 5)) + } + + public set p4_public(m2_c3_p4_arg: m2_C2_private) { +>p4_public : Symbol(m2_C4_private.p4_public, Decl(privacyGetter.ts, 129, 9), Decl(privacyGetter.ts, 133, 9)) +>m2_c3_p4_arg : Symbol(m2_c3_p4_arg, Decl(privacyGetter.ts, 135, 29)) +>m2_C2_private : Symbol(m2_C2_private, Decl(privacyGetter.ts, 74, 5)) + } + } +} + +class C5_private { +>C5_private : Symbol(C5_private, Decl(privacyGetter.ts, 138, 1)) + + private f() { +>f : Symbol(C5_private.f, Decl(privacyGetter.ts, 140, 18)) + } +} + +export class C6_public { +>C6_public : Symbol(C6_public, Decl(privacyGetter.ts, 143, 1)) +} + +export class C7_public { +>C7_public : Symbol(C7_public, Decl(privacyGetter.ts, 146, 1)) + + private get p1_private() { +>p1_private : Symbol(C7_public.p1_private, Decl(privacyGetter.ts, 148, 24), Decl(privacyGetter.ts, 151, 5)) + + return new C6_public(); +>C6_public : Symbol(C6_public, Decl(privacyGetter.ts, 143, 1)) + } + + private set p1_private(m1_c3_p1_arg: C6_public) { +>p1_private : Symbol(C7_public.p1_private, Decl(privacyGetter.ts, 148, 24), Decl(privacyGetter.ts, 151, 5)) +>m1_c3_p1_arg : Symbol(m1_c3_p1_arg, Decl(privacyGetter.ts, 153, 27)) +>C6_public : Symbol(C6_public, Decl(privacyGetter.ts, 143, 1)) + } + + private get p2_private() { +>p2_private : Symbol(C7_public.p2_private, Decl(privacyGetter.ts, 154, 5), Decl(privacyGetter.ts, 158, 5)) + + return new C6_public(); +>C6_public : Symbol(C6_public, Decl(privacyGetter.ts, 143, 1)) + } + + private set p2_private(m1_c3_p2_arg: C6_public) { +>p2_private : Symbol(C7_public.p2_private, Decl(privacyGetter.ts, 154, 5), Decl(privacyGetter.ts, 158, 5)) +>m1_c3_p2_arg : Symbol(m1_c3_p2_arg, Decl(privacyGetter.ts, 160, 27)) +>C6_public : Symbol(C6_public, Decl(privacyGetter.ts, 143, 1)) + } + + private get p3_private() { +>p3_private : Symbol(C7_public.p3_private, Decl(privacyGetter.ts, 161, 5), Decl(privacyGetter.ts, 165, 5)) + + return new C5_private(); +>C5_private : Symbol(C5_private, Decl(privacyGetter.ts, 138, 1)) + } + + private set p3_private(m1_c3_p3_arg: C5_private) { +>p3_private : Symbol(C7_public.p3_private, Decl(privacyGetter.ts, 161, 5), Decl(privacyGetter.ts, 165, 5)) +>m1_c3_p3_arg : Symbol(m1_c3_p3_arg, Decl(privacyGetter.ts, 167, 27)) +>C5_private : Symbol(C5_private, Decl(privacyGetter.ts, 138, 1)) + } + + public get p4_public(): C5_private { // error +>p4_public : Symbol(C7_public.p4_public, Decl(privacyGetter.ts, 168, 5), Decl(privacyGetter.ts, 172, 5)) +>C5_private : Symbol(C5_private, Decl(privacyGetter.ts, 138, 1)) + + return new C5_private(); //error +>C5_private : Symbol(C5_private, Decl(privacyGetter.ts, 138, 1)) + } + + public set p4_public(m1_c3_p4_arg: C5_private) { // error +>p4_public : Symbol(C7_public.p4_public, Decl(privacyGetter.ts, 168, 5), Decl(privacyGetter.ts, 172, 5)) +>m1_c3_p4_arg : Symbol(m1_c3_p4_arg, Decl(privacyGetter.ts, 174, 25)) +>C5_private : Symbol(C5_private, Decl(privacyGetter.ts, 138, 1)) + } +} + +class C8_private { +>C8_private : Symbol(C8_private, Decl(privacyGetter.ts, 176, 1)) + + private get p1_private() { +>p1_private : Symbol(C8_private.p1_private, Decl(privacyGetter.ts, 178, 18), Decl(privacyGetter.ts, 181, 5)) + + return new C6_public(); +>C6_public : Symbol(C6_public, Decl(privacyGetter.ts, 143, 1)) + } + + private set p1_private(m1_c3_p1_arg: C6_public) { +>p1_private : Symbol(C8_private.p1_private, Decl(privacyGetter.ts, 178, 18), Decl(privacyGetter.ts, 181, 5)) +>m1_c3_p1_arg : Symbol(m1_c3_p1_arg, Decl(privacyGetter.ts, 183, 27)) +>C6_public : Symbol(C6_public, Decl(privacyGetter.ts, 143, 1)) + } + + private get p2_private() { +>p2_private : Symbol(C8_private.p2_private, Decl(privacyGetter.ts, 184, 5), Decl(privacyGetter.ts, 188, 5)) + + return new C6_public(); +>C6_public : Symbol(C6_public, Decl(privacyGetter.ts, 143, 1)) + } + + private set p2_private(m1_c3_p2_arg: C6_public) { +>p2_private : Symbol(C8_private.p2_private, Decl(privacyGetter.ts, 184, 5), Decl(privacyGetter.ts, 188, 5)) +>m1_c3_p2_arg : Symbol(m1_c3_p2_arg, Decl(privacyGetter.ts, 190, 27)) +>C6_public : Symbol(C6_public, Decl(privacyGetter.ts, 143, 1)) + } + + private get p3_private() { +>p3_private : Symbol(C8_private.p3_private, Decl(privacyGetter.ts, 191, 5), Decl(privacyGetter.ts, 195, 5)) + + return new C5_private(); +>C5_private : Symbol(C5_private, Decl(privacyGetter.ts, 138, 1)) + } + + private set p3_private(m1_c3_p3_arg: C5_private) { +>p3_private : Symbol(C8_private.p3_private, Decl(privacyGetter.ts, 191, 5), Decl(privacyGetter.ts, 195, 5)) +>m1_c3_p3_arg : Symbol(m1_c3_p3_arg, Decl(privacyGetter.ts, 197, 27)) +>C5_private : Symbol(C5_private, Decl(privacyGetter.ts, 138, 1)) + } + + public get p4_public(): C5_private { +>p4_public : Symbol(C8_private.p4_public, Decl(privacyGetter.ts, 198, 5), Decl(privacyGetter.ts, 202, 5)) +>C5_private : Symbol(C5_private, Decl(privacyGetter.ts, 138, 1)) + + return new C5_private(); +>C5_private : Symbol(C5_private, Decl(privacyGetter.ts, 138, 1)) + } + + public set p4_public(m1_c3_p4_arg: C5_private) { +>p4_public : Symbol(C8_private.p4_public, Decl(privacyGetter.ts, 198, 5), Decl(privacyGetter.ts, 202, 5)) +>m1_c3_p4_arg : Symbol(m1_c3_p4_arg, Decl(privacyGetter.ts, 204, 25)) +>C5_private : Symbol(C5_private, Decl(privacyGetter.ts, 138, 1)) + } +} diff --git a/tests/baselines/reference/privacyGetter(target=es5).types b/tests/baselines/reference/privacyGetter(target=es5).types new file mode 100644 index 0000000000000..65e21f1a005ce --- /dev/null +++ b/tests/baselines/reference/privacyGetter(target=es5).types @@ -0,0 +1,519 @@ +//// [tests/cases/compiler/privacyGetter.ts] //// + +=== privacyGetter.ts === +export namespace m1 { +>m1 : typeof m1 +> : ^^^^^^^^^ + + export class C1_public { +>C1_public : C1_public +> : ^^^^^^^^^ + + private f1() { +>f1 : () => void +> : ^^^^^^^^^^ + } + } + + class C2_private { +>C2_private : C2_private +> : ^^^^^^^^^^ + } + + export class C3_public { +>C3_public : C3_public +> : ^^^^^^^^^ + + private get p1_private() { +>p1_private : C1_public +> : ^^^^^^^^^ + + return new C1_public(); +>new C1_public() : C1_public +> : ^^^^^^^^^ +>C1_public : typeof C1_public +> : ^^^^^^^^^^^^^^^^ + } + + private set p1_private(m1_c3_p1_arg: C1_public) { +>p1_private : C1_public +> : ^^^^^^^^^ +>m1_c3_p1_arg : C1_public +> : ^^^^^^^^^ + } + + private get p2_private() { +>p2_private : C1_public +> : ^^^^^^^^^ + + return new C1_public(); +>new C1_public() : C1_public +> : ^^^^^^^^^ +>C1_public : typeof C1_public +> : ^^^^^^^^^^^^^^^^ + } + + private set p2_private(m1_c3_p2_arg: C1_public) { +>p2_private : C1_public +> : ^^^^^^^^^ +>m1_c3_p2_arg : C1_public +> : ^^^^^^^^^ + } + + private get p3_private() { +>p3_private : C2_private +> : ^^^^^^^^^^ + + return new C2_private(); +>new C2_private() : C2_private +> : ^^^^^^^^^^ +>C2_private : typeof C2_private +> : ^^^^^^^^^^^^^^^^^ + } + + private set p3_private(m1_c3_p3_arg: C2_private) { +>p3_private : C2_private +> : ^^^^^^^^^^ +>m1_c3_p3_arg : C2_private +> : ^^^^^^^^^^ + } + + public get p4_public(): C2_private { // error +>p4_public : C2_private +> : ^^^^^^^^^^ + + return new C2_private(); //error +>new C2_private() : C2_private +> : ^^^^^^^^^^ +>C2_private : typeof C2_private +> : ^^^^^^^^^^^^^^^^^ + } + + public set p4_public(m1_c3_p4_arg: C2_private) { // error +>p4_public : C2_private +> : ^^^^^^^^^^ +>m1_c3_p4_arg : C2_private +> : ^^^^^^^^^^ + } + } + + class C4_private { +>C4_private : C4_private +> : ^^^^^^^^^^ + + private get p1_private() { +>p1_private : C1_public +> : ^^^^^^^^^ + + return new C1_public(); +>new C1_public() : C1_public +> : ^^^^^^^^^ +>C1_public : typeof C1_public +> : ^^^^^^^^^^^^^^^^ + } + + private set p1_private(m1_c3_p1_arg: C1_public) { +>p1_private : C1_public +> : ^^^^^^^^^ +>m1_c3_p1_arg : C1_public +> : ^^^^^^^^^ + } + + private get p2_private() { +>p2_private : C1_public +> : ^^^^^^^^^ + + return new C1_public(); +>new C1_public() : C1_public +> : ^^^^^^^^^ +>C1_public : typeof C1_public +> : ^^^^^^^^^^^^^^^^ + } + + private set p2_private(m1_c3_p2_arg: C1_public) { +>p2_private : C1_public +> : ^^^^^^^^^ +>m1_c3_p2_arg : C1_public +> : ^^^^^^^^^ + } + + private get p3_private() { +>p3_private : C2_private +> : ^^^^^^^^^^ + + return new C2_private(); +>new C2_private() : C2_private +> : ^^^^^^^^^^ +>C2_private : typeof C2_private +> : ^^^^^^^^^^^^^^^^^ + } + + private set p3_private(m1_c3_p3_arg: C2_private) { +>p3_private : C2_private +> : ^^^^^^^^^^ +>m1_c3_p3_arg : C2_private +> : ^^^^^^^^^^ + } + + public get p4_public(): C2_private { +>p4_public : C2_private +> : ^^^^^^^^^^ + + return new C2_private(); +>new C2_private() : C2_private +> : ^^^^^^^^^^ +>C2_private : typeof C2_private +> : ^^^^^^^^^^^^^^^^^ + } + + public set p4_public(m1_c3_p4_arg: C2_private) { +>p4_public : C2_private +> : ^^^^^^^^^^ +>m1_c3_p4_arg : C2_private +> : ^^^^^^^^^^ + } + } +} + +namespace m2 { +>m2 : typeof m2 +> : ^^^^^^^^^ + + export class m2_C1_public { +>m2_C1_public : m2_C1_public +> : ^^^^^^^^^^^^ + + private f1() { +>f1 : () => void +> : ^^^^^^^^^^ + } + } + + class m2_C2_private { +>m2_C2_private : m2_C2_private +> : ^^^^^^^^^^^^^ + } + + export class m2_C3_public { +>m2_C3_public : m2_C3_public +> : ^^^^^^^^^^^^ + + private get p1_private() { +>p1_private : m2_C1_public +> : ^^^^^^^^^^^^ + + return new m2_C1_public(); +>new m2_C1_public() : m2_C1_public +> : ^^^^^^^^^^^^ +>m2_C1_public : typeof m2_C1_public +> : ^^^^^^^^^^^^^^^^^^^ + } + + private set p1_private(m2_c3_p1_arg: m2_C1_public) { +>p1_private : m2_C1_public +> : ^^^^^^^^^^^^ +>m2_c3_p1_arg : m2_C1_public +> : ^^^^^^^^^^^^ + } + + private get p2_private() { +>p2_private : m2_C1_public +> : ^^^^^^^^^^^^ + + return new m2_C1_public(); +>new m2_C1_public() : m2_C1_public +> : ^^^^^^^^^^^^ +>m2_C1_public : typeof m2_C1_public +> : ^^^^^^^^^^^^^^^^^^^ + } + + private set p2_private(m2_c3_p2_arg: m2_C1_public) { +>p2_private : m2_C1_public +> : ^^^^^^^^^^^^ +>m2_c3_p2_arg : m2_C1_public +> : ^^^^^^^^^^^^ + } + + private get p3_private() { +>p3_private : m2_C2_private +> : ^^^^^^^^^^^^^ + + return new m2_C2_private(); +>new m2_C2_private() : m2_C2_private +> : ^^^^^^^^^^^^^ +>m2_C2_private : typeof m2_C2_private +> : ^^^^^^^^^^^^^^^^^^^^ + } + + private set p3_private(m2_c3_p3_arg: m2_C2_private) { +>p3_private : m2_C2_private +> : ^^^^^^^^^^^^^ +>m2_c3_p3_arg : m2_C2_private +> : ^^^^^^^^^^^^^ + } + + public get p4_public(): m2_C2_private { +>p4_public : m2_C2_private +> : ^^^^^^^^^^^^^ + + return new m2_C2_private(); +>new m2_C2_private() : m2_C2_private +> : ^^^^^^^^^^^^^ +>m2_C2_private : typeof m2_C2_private +> : ^^^^^^^^^^^^^^^^^^^^ + } + + public set p4_public(m2_c3_p4_arg: m2_C2_private) { +>p4_public : m2_C2_private +> : ^^^^^^^^^^^^^ +>m2_c3_p4_arg : m2_C2_private +> : ^^^^^^^^^^^^^ + } + } + + class m2_C4_private { +>m2_C4_private : m2_C4_private +> : ^^^^^^^^^^^^^ + + private get p1_private() { +>p1_private : m2_C1_public +> : ^^^^^^^^^^^^ + + return new m2_C1_public(); +>new m2_C1_public() : m2_C1_public +> : ^^^^^^^^^^^^ +>m2_C1_public : typeof m2_C1_public +> : ^^^^^^^^^^^^^^^^^^^ + } + + private set p1_private(m2_c3_p1_arg: m2_C1_public) { +>p1_private : m2_C1_public +> : ^^^^^^^^^^^^ +>m2_c3_p1_arg : m2_C1_public +> : ^^^^^^^^^^^^ + } + + private get p2_private() { +>p2_private : m2_C1_public +> : ^^^^^^^^^^^^ + + return new m2_C1_public(); +>new m2_C1_public() : m2_C1_public +> : ^^^^^^^^^^^^ +>m2_C1_public : typeof m2_C1_public +> : ^^^^^^^^^^^^^^^^^^^ + } + + private set p2_private(m2_c3_p2_arg: m2_C1_public) { +>p2_private : m2_C1_public +> : ^^^^^^^^^^^^ +>m2_c3_p2_arg : m2_C1_public +> : ^^^^^^^^^^^^ + } + + private get p3_private() { +>p3_private : m2_C2_private +> : ^^^^^^^^^^^^^ + + return new m2_C2_private(); +>new m2_C2_private() : m2_C2_private +> : ^^^^^^^^^^^^^ +>m2_C2_private : typeof m2_C2_private +> : ^^^^^^^^^^^^^^^^^^^^ + } + + private set p3_private(m2_c3_p3_arg: m2_C2_private) { +>p3_private : m2_C2_private +> : ^^^^^^^^^^^^^ +>m2_c3_p3_arg : m2_C2_private +> : ^^^^^^^^^^^^^ + } + + public get p4_public(): m2_C2_private { +>p4_public : m2_C2_private +> : ^^^^^^^^^^^^^ + + return new m2_C2_private(); +>new m2_C2_private() : m2_C2_private +> : ^^^^^^^^^^^^^ +>m2_C2_private : typeof m2_C2_private +> : ^^^^^^^^^^^^^^^^^^^^ + } + + public set p4_public(m2_c3_p4_arg: m2_C2_private) { +>p4_public : m2_C2_private +> : ^^^^^^^^^^^^^ +>m2_c3_p4_arg : m2_C2_private +> : ^^^^^^^^^^^^^ + } + } +} + +class C5_private { +>C5_private : C5_private +> : ^^^^^^^^^^ + + private f() { +>f : () => void +> : ^^^^^^^^^^ + } +} + +export class C6_public { +>C6_public : C6_public +> : ^^^^^^^^^ +} + +export class C7_public { +>C7_public : C7_public +> : ^^^^^^^^^ + + private get p1_private() { +>p1_private : C6_public +> : ^^^^^^^^^ + + return new C6_public(); +>new C6_public() : C6_public +> : ^^^^^^^^^ +>C6_public : typeof C6_public +> : ^^^^^^^^^^^^^^^^ + } + + private set p1_private(m1_c3_p1_arg: C6_public) { +>p1_private : C6_public +> : ^^^^^^^^^ +>m1_c3_p1_arg : C6_public +> : ^^^^^^^^^ + } + + private get p2_private() { +>p2_private : C6_public +> : ^^^^^^^^^ + + return new C6_public(); +>new C6_public() : C6_public +> : ^^^^^^^^^ +>C6_public : typeof C6_public +> : ^^^^^^^^^^^^^^^^ + } + + private set p2_private(m1_c3_p2_arg: C6_public) { +>p2_private : C6_public +> : ^^^^^^^^^ +>m1_c3_p2_arg : C6_public +> : ^^^^^^^^^ + } + + private get p3_private() { +>p3_private : C5_private +> : ^^^^^^^^^^ + + return new C5_private(); +>new C5_private() : C5_private +> : ^^^^^^^^^^ +>C5_private : typeof C5_private +> : ^^^^^^^^^^^^^^^^^ + } + + private set p3_private(m1_c3_p3_arg: C5_private) { +>p3_private : C5_private +> : ^^^^^^^^^^ +>m1_c3_p3_arg : C5_private +> : ^^^^^^^^^^ + } + + public get p4_public(): C5_private { // error +>p4_public : C5_private +> : ^^^^^^^^^^ + + return new C5_private(); //error +>new C5_private() : C5_private +> : ^^^^^^^^^^ +>C5_private : typeof C5_private +> : ^^^^^^^^^^^^^^^^^ + } + + public set p4_public(m1_c3_p4_arg: C5_private) { // error +>p4_public : C5_private +> : ^^^^^^^^^^ +>m1_c3_p4_arg : C5_private +> : ^^^^^^^^^^ + } +} + +class C8_private { +>C8_private : C8_private +> : ^^^^^^^^^^ + + private get p1_private() { +>p1_private : C6_public +> : ^^^^^^^^^ + + return new C6_public(); +>new C6_public() : C6_public +> : ^^^^^^^^^ +>C6_public : typeof C6_public +> : ^^^^^^^^^^^^^^^^ + } + + private set p1_private(m1_c3_p1_arg: C6_public) { +>p1_private : C6_public +> : ^^^^^^^^^ +>m1_c3_p1_arg : C6_public +> : ^^^^^^^^^ + } + + private get p2_private() { +>p2_private : C6_public +> : ^^^^^^^^^ + + return new C6_public(); +>new C6_public() : C6_public +> : ^^^^^^^^^ +>C6_public : typeof C6_public +> : ^^^^^^^^^^^^^^^^ + } + + private set p2_private(m1_c3_p2_arg: C6_public) { +>p2_private : C6_public +> : ^^^^^^^^^ +>m1_c3_p2_arg : C6_public +> : ^^^^^^^^^ + } + + private get p3_private() { +>p3_private : C5_private +> : ^^^^^^^^^^ + + return new C5_private(); +>new C5_private() : C5_private +> : ^^^^^^^^^^ +>C5_private : typeof C5_private +> : ^^^^^^^^^^^^^^^^^ + } + + private set p3_private(m1_c3_p3_arg: C5_private) { +>p3_private : C5_private +> : ^^^^^^^^^^ +>m1_c3_p3_arg : C5_private +> : ^^^^^^^^^^ + } + + public get p4_public(): C5_private { +>p4_public : C5_private +> : ^^^^^^^^^^ + + return new C5_private(); +>new C5_private() : C5_private +> : ^^^^^^^^^^ +>C5_private : typeof C5_private +> : ^^^^^^^^^^^^^^^^^ + } + + public set p4_public(m1_c3_p4_arg: C5_private) { +>p4_public : C5_private +> : ^^^^^^^^^^ +>m1_c3_p4_arg : C5_private +> : ^^^^^^^^^^ + } +} diff --git a/tests/baselines/reference/privacyGloGetter(target=es2015).js b/tests/baselines/reference/privacyGloGetter(target=es2015).js new file mode 100644 index 0000000000000..93156a2d43514 --- /dev/null +++ b/tests/baselines/reference/privacyGloGetter(target=es2015).js @@ -0,0 +1,162 @@ +//// [tests/cases/compiler/privacyGloGetter.ts] //// + +//// [privacyGloGetter.ts] +namespace m1 { + export class C1_public { + private f1() { + } + } + + class C2_private { + } + + export class C3_public { + private get p1_private() { + return new C1_public(); + } + + private set p1_private(m1_c3_p1_arg: C1_public) { + } + + private get p2_private() { + return new C1_public(); + } + + private set p2_private(m1_c3_p2_arg: C1_public) { + } + + private get p3_private() { + return new C2_private(); + } + + private set p3_private(m1_c3_p3_arg: C2_private) { + } + + public get p4_public(): C2_private { // error + return new C2_private(); //error + } + + public set p4_public(m1_c3_p4_arg: C2_private) { // error + } + } + + class C4_private { + private get p1_private() { + return new C1_public(); + } + + private set p1_private(m1_c3_p1_arg: C1_public) { + } + + private get p2_private() { + return new C1_public(); + } + + private set p2_private(m1_c3_p2_arg: C1_public) { + } + + private get p3_private() { + return new C2_private(); + } + + private set p3_private(m1_c3_p3_arg: C2_private) { + } + + public get p4_public(): C2_private { + return new C2_private(); + } + + public set p4_public(m1_c3_p4_arg: C2_private) { + } + } +} + +class C6_public { +} + +class C7_public { + private get p1_private() { + return new C6_public(); + } + + private set p1_private(m1_c3_p1_arg: C6_public) { + } + + private get p2_private() { + return new C6_public(); + } + + private set p2_private(m1_c3_p2_arg: C6_public) { + } +} + +//// [privacyGloGetter.js] +var m1; +(function (m1) { + class C1_public { + f1() { + } + } + m1.C1_public = C1_public; + class C2_private { + } + class C3_public { + get p1_private() { + return new C1_public(); + } + set p1_private(m1_c3_p1_arg) { + } + get p2_private() { + return new C1_public(); + } + set p2_private(m1_c3_p2_arg) { + } + get p3_private() { + return new C2_private(); + } + set p3_private(m1_c3_p3_arg) { + } + get p4_public() { + return new C2_private(); //error + } + set p4_public(m1_c3_p4_arg) { + } + } + m1.C3_public = C3_public; + class C4_private { + get p1_private() { + return new C1_public(); + } + set p1_private(m1_c3_p1_arg) { + } + get p2_private() { + return new C1_public(); + } + set p2_private(m1_c3_p2_arg) { + } + get p3_private() { + return new C2_private(); + } + set p3_private(m1_c3_p3_arg) { + } + get p4_public() { + return new C2_private(); + } + set p4_public(m1_c3_p4_arg) { + } + } +})(m1 || (m1 = {})); +class C6_public { +} +class C7_public { + get p1_private() { + return new C6_public(); + } + set p1_private(m1_c3_p1_arg) { + } + get p2_private() { + return new C6_public(); + } + set p2_private(m1_c3_p2_arg) { + } +} diff --git a/tests/baselines/reference/privacyGloGetter.symbols b/tests/baselines/reference/privacyGloGetter(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/privacyGloGetter.symbols rename to tests/baselines/reference/privacyGloGetter(target=es2015).symbols diff --git a/tests/baselines/reference/privacyGloGetter.types b/tests/baselines/reference/privacyGloGetter(target=es2015).types similarity index 100% rename from tests/baselines/reference/privacyGloGetter.types rename to tests/baselines/reference/privacyGloGetter(target=es2015).types diff --git a/tests/baselines/reference/privacyGloGetter.js b/tests/baselines/reference/privacyGloGetter(target=es5).js similarity index 100% rename from tests/baselines/reference/privacyGloGetter.js rename to tests/baselines/reference/privacyGloGetter(target=es5).js diff --git a/tests/baselines/reference/privacyGloGetter(target=es5).symbols b/tests/baselines/reference/privacyGloGetter(target=es5).symbols new file mode 100644 index 0000000000000..5a668e00256e1 --- /dev/null +++ b/tests/baselines/reference/privacyGloGetter(target=es5).symbols @@ -0,0 +1,166 @@ +//// [tests/cases/compiler/privacyGloGetter.ts] //// + +=== privacyGloGetter.ts === +namespace m1 { +>m1 : Symbol(m1, Decl(privacyGloGetter.ts, 0, 0)) + + export class C1_public { +>C1_public : Symbol(C1_public, Decl(privacyGloGetter.ts, 0, 14)) + + private f1() { +>f1 : Symbol(C1_public.f1, Decl(privacyGloGetter.ts, 1, 28)) + } + } + + class C2_private { +>C2_private : Symbol(C2_private, Decl(privacyGloGetter.ts, 4, 5)) + } + + export class C3_public { +>C3_public : Symbol(C3_public, Decl(privacyGloGetter.ts, 7, 5)) + + private get p1_private() { +>p1_private : Symbol(C3_public.p1_private, Decl(privacyGloGetter.ts, 9, 28), Decl(privacyGloGetter.ts, 12, 9)) + + return new C1_public(); +>C1_public : Symbol(C1_public, Decl(privacyGloGetter.ts, 0, 14)) + } + + private set p1_private(m1_c3_p1_arg: C1_public) { +>p1_private : Symbol(C3_public.p1_private, Decl(privacyGloGetter.ts, 9, 28), Decl(privacyGloGetter.ts, 12, 9)) +>m1_c3_p1_arg : Symbol(m1_c3_p1_arg, Decl(privacyGloGetter.ts, 14, 31)) +>C1_public : Symbol(C1_public, Decl(privacyGloGetter.ts, 0, 14)) + } + + private get p2_private() { +>p2_private : Symbol(C3_public.p2_private, Decl(privacyGloGetter.ts, 15, 9), Decl(privacyGloGetter.ts, 19, 9)) + + return new C1_public(); +>C1_public : Symbol(C1_public, Decl(privacyGloGetter.ts, 0, 14)) + } + + private set p2_private(m1_c3_p2_arg: C1_public) { +>p2_private : Symbol(C3_public.p2_private, Decl(privacyGloGetter.ts, 15, 9), Decl(privacyGloGetter.ts, 19, 9)) +>m1_c3_p2_arg : Symbol(m1_c3_p2_arg, Decl(privacyGloGetter.ts, 21, 31)) +>C1_public : Symbol(C1_public, Decl(privacyGloGetter.ts, 0, 14)) + } + + private get p3_private() { +>p3_private : Symbol(C3_public.p3_private, Decl(privacyGloGetter.ts, 22, 9), Decl(privacyGloGetter.ts, 26, 9)) + + return new C2_private(); +>C2_private : Symbol(C2_private, Decl(privacyGloGetter.ts, 4, 5)) + } + + private set p3_private(m1_c3_p3_arg: C2_private) { +>p3_private : Symbol(C3_public.p3_private, Decl(privacyGloGetter.ts, 22, 9), Decl(privacyGloGetter.ts, 26, 9)) +>m1_c3_p3_arg : Symbol(m1_c3_p3_arg, Decl(privacyGloGetter.ts, 28, 31)) +>C2_private : Symbol(C2_private, Decl(privacyGloGetter.ts, 4, 5)) + } + + public get p4_public(): C2_private { // error +>p4_public : Symbol(C3_public.p4_public, Decl(privacyGloGetter.ts, 29, 9), Decl(privacyGloGetter.ts, 33, 9)) +>C2_private : Symbol(C2_private, Decl(privacyGloGetter.ts, 4, 5)) + + return new C2_private(); //error +>C2_private : Symbol(C2_private, Decl(privacyGloGetter.ts, 4, 5)) + } + + public set p4_public(m1_c3_p4_arg: C2_private) { // error +>p4_public : Symbol(C3_public.p4_public, Decl(privacyGloGetter.ts, 29, 9), Decl(privacyGloGetter.ts, 33, 9)) +>m1_c3_p4_arg : Symbol(m1_c3_p4_arg, Decl(privacyGloGetter.ts, 35, 29)) +>C2_private : Symbol(C2_private, Decl(privacyGloGetter.ts, 4, 5)) + } + } + + class C4_private { +>C4_private : Symbol(C4_private, Decl(privacyGloGetter.ts, 37, 5)) + + private get p1_private() { +>p1_private : Symbol(C4_private.p1_private, Decl(privacyGloGetter.ts, 39, 22), Decl(privacyGloGetter.ts, 42, 9)) + + return new C1_public(); +>C1_public : Symbol(C1_public, Decl(privacyGloGetter.ts, 0, 14)) + } + + private set p1_private(m1_c3_p1_arg: C1_public) { +>p1_private : Symbol(C4_private.p1_private, Decl(privacyGloGetter.ts, 39, 22), Decl(privacyGloGetter.ts, 42, 9)) +>m1_c3_p1_arg : Symbol(m1_c3_p1_arg, Decl(privacyGloGetter.ts, 44, 31)) +>C1_public : Symbol(C1_public, Decl(privacyGloGetter.ts, 0, 14)) + } + + private get p2_private() { +>p2_private : Symbol(C4_private.p2_private, Decl(privacyGloGetter.ts, 45, 9), Decl(privacyGloGetter.ts, 49, 9)) + + return new C1_public(); +>C1_public : Symbol(C1_public, Decl(privacyGloGetter.ts, 0, 14)) + } + + private set p2_private(m1_c3_p2_arg: C1_public) { +>p2_private : Symbol(C4_private.p2_private, Decl(privacyGloGetter.ts, 45, 9), Decl(privacyGloGetter.ts, 49, 9)) +>m1_c3_p2_arg : Symbol(m1_c3_p2_arg, Decl(privacyGloGetter.ts, 51, 31)) +>C1_public : Symbol(C1_public, Decl(privacyGloGetter.ts, 0, 14)) + } + + private get p3_private() { +>p3_private : Symbol(C4_private.p3_private, Decl(privacyGloGetter.ts, 52, 9), Decl(privacyGloGetter.ts, 56, 9)) + + return new C2_private(); +>C2_private : Symbol(C2_private, Decl(privacyGloGetter.ts, 4, 5)) + } + + private set p3_private(m1_c3_p3_arg: C2_private) { +>p3_private : Symbol(C4_private.p3_private, Decl(privacyGloGetter.ts, 52, 9), Decl(privacyGloGetter.ts, 56, 9)) +>m1_c3_p3_arg : Symbol(m1_c3_p3_arg, Decl(privacyGloGetter.ts, 58, 31)) +>C2_private : Symbol(C2_private, Decl(privacyGloGetter.ts, 4, 5)) + } + + public get p4_public(): C2_private { +>p4_public : Symbol(C4_private.p4_public, Decl(privacyGloGetter.ts, 59, 9), Decl(privacyGloGetter.ts, 63, 9)) +>C2_private : Symbol(C2_private, Decl(privacyGloGetter.ts, 4, 5)) + + return new C2_private(); +>C2_private : Symbol(C2_private, Decl(privacyGloGetter.ts, 4, 5)) + } + + public set p4_public(m1_c3_p4_arg: C2_private) { +>p4_public : Symbol(C4_private.p4_public, Decl(privacyGloGetter.ts, 59, 9), Decl(privacyGloGetter.ts, 63, 9)) +>m1_c3_p4_arg : Symbol(m1_c3_p4_arg, Decl(privacyGloGetter.ts, 65, 29)) +>C2_private : Symbol(C2_private, Decl(privacyGloGetter.ts, 4, 5)) + } + } +} + +class C6_public { +>C6_public : Symbol(C6_public, Decl(privacyGloGetter.ts, 68, 1)) +} + +class C7_public { +>C7_public : Symbol(C7_public, Decl(privacyGloGetter.ts, 71, 1)) + + private get p1_private() { +>p1_private : Symbol(C7_public.p1_private, Decl(privacyGloGetter.ts, 73, 17), Decl(privacyGloGetter.ts, 76, 5)) + + return new C6_public(); +>C6_public : Symbol(C6_public, Decl(privacyGloGetter.ts, 68, 1)) + } + + private set p1_private(m1_c3_p1_arg: C6_public) { +>p1_private : Symbol(C7_public.p1_private, Decl(privacyGloGetter.ts, 73, 17), Decl(privacyGloGetter.ts, 76, 5)) +>m1_c3_p1_arg : Symbol(m1_c3_p1_arg, Decl(privacyGloGetter.ts, 78, 27)) +>C6_public : Symbol(C6_public, Decl(privacyGloGetter.ts, 68, 1)) + } + + private get p2_private() { +>p2_private : Symbol(C7_public.p2_private, Decl(privacyGloGetter.ts, 79, 5), Decl(privacyGloGetter.ts, 83, 5)) + + return new C6_public(); +>C6_public : Symbol(C6_public, Decl(privacyGloGetter.ts, 68, 1)) + } + + private set p2_private(m1_c3_p2_arg: C6_public) { +>p2_private : Symbol(C7_public.p2_private, Decl(privacyGloGetter.ts, 79, 5), Decl(privacyGloGetter.ts, 83, 5)) +>m1_c3_p2_arg : Symbol(m1_c3_p2_arg, Decl(privacyGloGetter.ts, 85, 27)) +>C6_public : Symbol(C6_public, Decl(privacyGloGetter.ts, 68, 1)) + } +} diff --git a/tests/baselines/reference/privacyGloGetter(target=es5).types b/tests/baselines/reference/privacyGloGetter(target=es5).types new file mode 100644 index 0000000000000..1ddcabd7be5c5 --- /dev/null +++ b/tests/baselines/reference/privacyGloGetter(target=es5).types @@ -0,0 +1,222 @@ +//// [tests/cases/compiler/privacyGloGetter.ts] //// + +=== privacyGloGetter.ts === +namespace m1 { +>m1 : typeof m1 +> : ^^^^^^^^^ + + export class C1_public { +>C1_public : C1_public +> : ^^^^^^^^^ + + private f1() { +>f1 : () => void +> : ^^^^^^^^^^ + } + } + + class C2_private { +>C2_private : C2_private +> : ^^^^^^^^^^ + } + + export class C3_public { +>C3_public : C3_public +> : ^^^^^^^^^ + + private get p1_private() { +>p1_private : C1_public +> : ^^^^^^^^^ + + return new C1_public(); +>new C1_public() : C1_public +> : ^^^^^^^^^ +>C1_public : typeof C1_public +> : ^^^^^^^^^^^^^^^^ + } + + private set p1_private(m1_c3_p1_arg: C1_public) { +>p1_private : C1_public +> : ^^^^^^^^^ +>m1_c3_p1_arg : C1_public +> : ^^^^^^^^^ + } + + private get p2_private() { +>p2_private : C1_public +> : ^^^^^^^^^ + + return new C1_public(); +>new C1_public() : C1_public +> : ^^^^^^^^^ +>C1_public : typeof C1_public +> : ^^^^^^^^^^^^^^^^ + } + + private set p2_private(m1_c3_p2_arg: C1_public) { +>p2_private : C1_public +> : ^^^^^^^^^ +>m1_c3_p2_arg : C1_public +> : ^^^^^^^^^ + } + + private get p3_private() { +>p3_private : C2_private +> : ^^^^^^^^^^ + + return new C2_private(); +>new C2_private() : C2_private +> : ^^^^^^^^^^ +>C2_private : typeof C2_private +> : ^^^^^^^^^^^^^^^^^ + } + + private set p3_private(m1_c3_p3_arg: C2_private) { +>p3_private : C2_private +> : ^^^^^^^^^^ +>m1_c3_p3_arg : C2_private +> : ^^^^^^^^^^ + } + + public get p4_public(): C2_private { // error +>p4_public : C2_private +> : ^^^^^^^^^^ + + return new C2_private(); //error +>new C2_private() : C2_private +> : ^^^^^^^^^^ +>C2_private : typeof C2_private +> : ^^^^^^^^^^^^^^^^^ + } + + public set p4_public(m1_c3_p4_arg: C2_private) { // error +>p4_public : C2_private +> : ^^^^^^^^^^ +>m1_c3_p4_arg : C2_private +> : ^^^^^^^^^^ + } + } + + class C4_private { +>C4_private : C4_private +> : ^^^^^^^^^^ + + private get p1_private() { +>p1_private : C1_public +> : ^^^^^^^^^ + + return new C1_public(); +>new C1_public() : C1_public +> : ^^^^^^^^^ +>C1_public : typeof C1_public +> : ^^^^^^^^^^^^^^^^ + } + + private set p1_private(m1_c3_p1_arg: C1_public) { +>p1_private : C1_public +> : ^^^^^^^^^ +>m1_c3_p1_arg : C1_public +> : ^^^^^^^^^ + } + + private get p2_private() { +>p2_private : C1_public +> : ^^^^^^^^^ + + return new C1_public(); +>new C1_public() : C1_public +> : ^^^^^^^^^ +>C1_public : typeof C1_public +> : ^^^^^^^^^^^^^^^^ + } + + private set p2_private(m1_c3_p2_arg: C1_public) { +>p2_private : C1_public +> : ^^^^^^^^^ +>m1_c3_p2_arg : C1_public +> : ^^^^^^^^^ + } + + private get p3_private() { +>p3_private : C2_private +> : ^^^^^^^^^^ + + return new C2_private(); +>new C2_private() : C2_private +> : ^^^^^^^^^^ +>C2_private : typeof C2_private +> : ^^^^^^^^^^^^^^^^^ + } + + private set p3_private(m1_c3_p3_arg: C2_private) { +>p3_private : C2_private +> : ^^^^^^^^^^ +>m1_c3_p3_arg : C2_private +> : ^^^^^^^^^^ + } + + public get p4_public(): C2_private { +>p4_public : C2_private +> : ^^^^^^^^^^ + + return new C2_private(); +>new C2_private() : C2_private +> : ^^^^^^^^^^ +>C2_private : typeof C2_private +> : ^^^^^^^^^^^^^^^^^ + } + + public set p4_public(m1_c3_p4_arg: C2_private) { +>p4_public : C2_private +> : ^^^^^^^^^^ +>m1_c3_p4_arg : C2_private +> : ^^^^^^^^^^ + } + } +} + +class C6_public { +>C6_public : C6_public +> : ^^^^^^^^^ +} + +class C7_public { +>C7_public : C7_public +> : ^^^^^^^^^ + + private get p1_private() { +>p1_private : C6_public +> : ^^^^^^^^^ + + return new C6_public(); +>new C6_public() : C6_public +> : ^^^^^^^^^ +>C6_public : typeof C6_public +> : ^^^^^^^^^^^^^^^^ + } + + private set p1_private(m1_c3_p1_arg: C6_public) { +>p1_private : C6_public +> : ^^^^^^^^^ +>m1_c3_p1_arg : C6_public +> : ^^^^^^^^^ + } + + private get p2_private() { +>p2_private : C6_public +> : ^^^^^^^^^ + + return new C6_public(); +>new C6_public() : C6_public +> : ^^^^^^^^^ +>C6_public : typeof C6_public +> : ^^^^^^^^^^^^^^^^ + } + + private set p2_private(m1_c3_p2_arg: C6_public) { +>p2_private : C6_public +> : ^^^^^^^^^ +>m1_c3_p2_arg : C6_public +> : ^^^^^^^^^ + } +} diff --git a/tests/baselines/reference/privateClassPropertyAccessibleWithinNestedClass(target=es2015).js b/tests/baselines/reference/privateClassPropertyAccessibleWithinNestedClass(target=es2015).js new file mode 100644 index 0000000000000..9d0d5d96c785a --- /dev/null +++ b/tests/baselines/reference/privateClassPropertyAccessibleWithinNestedClass(target=es2015).js @@ -0,0 +1,72 @@ +//// [tests/cases/conformance/classes/members/accessibility/privateClassPropertyAccessibleWithinNestedClass.ts] //// + +//// [privateClassPropertyAccessibleWithinNestedClass.ts] +// no errors + +class C { + private x: string; + private get y() { return this.x; } + private set y(x) { this.y = this.x; } + private foo() { return this.foo; } + + private static x: string; + private static get y() { return this.x; } + private static set y(x) { this.y = this.x; } + private static foo() { return this.foo; } + private static bar() { this.foo(); } + + private bar() { + class C2 { + private foo() { + let x: C; + var x1 = x.foo; + var x2 = x.bar; + var x3 = x.x; + var x4 = x.y; + + var sx1 = C.x; + var sx2 = C.y; + var sx3 = C.bar; + var sx4 = C.foo; + + let y = new C(); + var y1 = y.foo; + var y2 = y.bar; + var y3 = y.x; + var y4 = y.y; + } + } + } +} + +//// [privateClassPropertyAccessibleWithinNestedClass.js] +// no errors +class C { + get y() { return this.x; } + set y(x) { this.y = this.x; } + foo() { return this.foo; } + static get y() { return this.x; } + static set y(x) { this.y = this.x; } + static foo() { return this.foo; } + static bar() { this.foo(); } + bar() { + class C2 { + foo() { + let x; + var x1 = x.foo; + var x2 = x.bar; + var x3 = x.x; + var x4 = x.y; + var sx1 = C.x; + var sx2 = C.y; + var sx3 = C.bar; + var sx4 = C.foo; + let y = new C(); + var y1 = y.foo; + var y2 = y.bar; + var y3 = y.x; + var y4 = y.y; + } + } + } +} diff --git a/tests/baselines/reference/privateClassPropertyAccessibleWithinNestedClass.symbols b/tests/baselines/reference/privateClassPropertyAccessibleWithinNestedClass(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/privateClassPropertyAccessibleWithinNestedClass.symbols rename to tests/baselines/reference/privateClassPropertyAccessibleWithinNestedClass(target=es2015).symbols diff --git a/tests/baselines/reference/privateClassPropertyAccessibleWithinNestedClass.types b/tests/baselines/reference/privateClassPropertyAccessibleWithinNestedClass(target=es2015).types similarity index 100% rename from tests/baselines/reference/privateClassPropertyAccessibleWithinNestedClass.types rename to tests/baselines/reference/privateClassPropertyAccessibleWithinNestedClass(target=es2015).types diff --git a/tests/baselines/reference/privateClassPropertyAccessibleWithinNestedClass.js b/tests/baselines/reference/privateClassPropertyAccessibleWithinNestedClass(target=es5).js similarity index 100% rename from tests/baselines/reference/privateClassPropertyAccessibleWithinNestedClass.js rename to tests/baselines/reference/privateClassPropertyAccessibleWithinNestedClass(target=es5).js diff --git a/tests/baselines/reference/privateClassPropertyAccessibleWithinNestedClass(target=es5).symbols b/tests/baselines/reference/privateClassPropertyAccessibleWithinNestedClass(target=es5).symbols new file mode 100644 index 0000000000000..d263981161b8b --- /dev/null +++ b/tests/baselines/reference/privateClassPropertyAccessibleWithinNestedClass(target=es5).symbols @@ -0,0 +1,156 @@ +//// [tests/cases/conformance/classes/members/accessibility/privateClassPropertyAccessibleWithinNestedClass.ts] //// + +=== privateClassPropertyAccessibleWithinNestedClass.ts === +// no errors + +class C { +>C : Symbol(C, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 0, 0)) + + private x: string; +>x : Symbol(C.x, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 2, 9)) + + private get y() { return this.x; } +>y : Symbol(C.y, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 3, 22), Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 4, 38)) +>this.x : Symbol(C.x, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 2, 9)) +>this : Symbol(C, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 0, 0)) +>x : Symbol(C.x, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 2, 9)) + + private set y(x) { this.y = this.x; } +>y : Symbol(C.y, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 3, 22), Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 4, 38)) +>x : Symbol(x, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 5, 18)) +>this.y : Symbol(C.y, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 3, 22), Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 4, 38)) +>this : Symbol(C, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 0, 0)) +>y : Symbol(C.y, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 3, 22), Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 4, 38)) +>this.x : Symbol(C.x, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 2, 9)) +>this : Symbol(C, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 0, 0)) +>x : Symbol(C.x, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 2, 9)) + + private foo() { return this.foo; } +>foo : Symbol(C.foo, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 5, 41)) +>this.foo : Symbol(C.foo, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 5, 41)) +>this : Symbol(C, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 0, 0)) +>foo : Symbol(C.foo, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 5, 41)) + + private static x: string; +>x : Symbol(C.x, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 6, 38)) + + private static get y() { return this.x; } +>y : Symbol(C.y, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 8, 29), Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 9, 45)) +>this.x : Symbol(C.x, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 6, 38)) +>this : Symbol(C, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 0, 0)) +>x : Symbol(C.x, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 6, 38)) + + private static set y(x) { this.y = this.x; } +>y : Symbol(C.y, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 8, 29), Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 9, 45)) +>x : Symbol(x, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 10, 25)) +>this.y : Symbol(C.y, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 8, 29), Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 9, 45)) +>this : Symbol(C, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 0, 0)) +>y : Symbol(C.y, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 8, 29), Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 9, 45)) +>this.x : Symbol(C.x, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 6, 38)) +>this : Symbol(C, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 0, 0)) +>x : Symbol(C.x, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 6, 38)) + + private static foo() { return this.foo; } +>foo : Symbol(C.foo, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 10, 48)) +>this.foo : Symbol(C.foo, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 10, 48)) +>this : Symbol(C, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 0, 0)) +>foo : Symbol(C.foo, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 10, 48)) + + private static bar() { this.foo(); } +>bar : Symbol(C.bar, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 11, 45)) +>this.foo : Symbol(C.foo, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 10, 48)) +>this : Symbol(C, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 0, 0)) +>foo : Symbol(C.foo, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 10, 48)) + + private bar() { +>bar : Symbol(C.bar, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 12, 40)) + + class C2 { +>C2 : Symbol(C2, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 14, 19)) + + private foo() { +>foo : Symbol(C2.foo, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 15, 18)) + + let x: C; +>x : Symbol(x, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 17, 19)) +>C : Symbol(C, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 0, 0)) + + var x1 = x.foo; +>x1 : Symbol(x1, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 18, 19)) +>x.foo : Symbol(C.foo, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 5, 41)) +>x : Symbol(x, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 17, 19)) +>foo : Symbol(C.foo, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 5, 41)) + + var x2 = x.bar; +>x2 : Symbol(x2, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 19, 19)) +>x.bar : Symbol(C.bar, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 12, 40)) +>x : Symbol(x, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 17, 19)) +>bar : Symbol(C.bar, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 12, 40)) + + var x3 = x.x; +>x3 : Symbol(x3, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 20, 19)) +>x.x : Symbol(C.x, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 2, 9)) +>x : Symbol(x, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 17, 19)) +>x : Symbol(C.x, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 2, 9)) + + var x4 = x.y; +>x4 : Symbol(x4, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 21, 19)) +>x.y : Symbol(C.y, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 3, 22), Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 4, 38)) +>x : Symbol(x, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 17, 19)) +>y : Symbol(C.y, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 3, 22), Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 4, 38)) + + var sx1 = C.x; +>sx1 : Symbol(sx1, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 23, 19)) +>C.x : Symbol(C.x, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 6, 38)) +>C : Symbol(C, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 0, 0)) +>x : Symbol(C.x, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 6, 38)) + + var sx2 = C.y; +>sx2 : Symbol(sx2, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 24, 19)) +>C.y : Symbol(C.y, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 8, 29), Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 9, 45)) +>C : Symbol(C, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 0, 0)) +>y : Symbol(C.y, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 8, 29), Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 9, 45)) + + var sx3 = C.bar; +>sx3 : Symbol(sx3, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 25, 19)) +>C.bar : Symbol(C.bar, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 11, 45)) +>C : Symbol(C, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 0, 0)) +>bar : Symbol(C.bar, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 11, 45)) + + var sx4 = C.foo; +>sx4 : Symbol(sx4, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 26, 19)) +>C.foo : Symbol(C.foo, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 10, 48)) +>C : Symbol(C, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 0, 0)) +>foo : Symbol(C.foo, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 10, 48)) + + let y = new C(); +>y : Symbol(y, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 28, 19)) +>C : Symbol(C, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 0, 0)) + + var y1 = y.foo; +>y1 : Symbol(y1, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 29, 19)) +>y.foo : Symbol(C.foo, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 5, 41)) +>y : Symbol(y, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 28, 19)) +>foo : Symbol(C.foo, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 5, 41)) + + var y2 = y.bar; +>y2 : Symbol(y2, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 30, 19)) +>y.bar : Symbol(C.bar, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 12, 40)) +>y : Symbol(y, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 28, 19)) +>bar : Symbol(C.bar, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 12, 40)) + + var y3 = y.x; +>y3 : Symbol(y3, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 31, 19)) +>y.x : Symbol(C.x, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 2, 9)) +>y : Symbol(y, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 28, 19)) +>x : Symbol(C.x, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 2, 9)) + + var y4 = y.y; +>y4 : Symbol(y4, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 32, 19)) +>y.y : Symbol(C.y, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 3, 22), Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 4, 38)) +>y : Symbol(y, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 28, 19)) +>y : Symbol(C.y, Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 3, 22), Decl(privateClassPropertyAccessibleWithinNestedClass.ts, 4, 38)) + } + } + } +} diff --git a/tests/baselines/reference/privateClassPropertyAccessibleWithinNestedClass(target=es5).types b/tests/baselines/reference/privateClassPropertyAccessibleWithinNestedClass(target=es5).types new file mode 100644 index 0000000000000..c299e0734fc12 --- /dev/null +++ b/tests/baselines/reference/privateClassPropertyAccessibleWithinNestedClass(target=es5).types @@ -0,0 +1,256 @@ +//// [tests/cases/conformance/classes/members/accessibility/privateClassPropertyAccessibleWithinNestedClass.ts] //// + +=== privateClassPropertyAccessibleWithinNestedClass.ts === +// no errors + +class C { +>C : C +> : ^ + + private x: string; +>x : string +> : ^^^^^^ + + private get y() { return this.x; } +>y : string +> : ^^^^^^ +>this.x : string +> : ^^^^^^ +>this : this +> : ^^^^ +>x : string +> : ^^^^^^ + + private set y(x) { this.y = this.x; } +>y : string +> : ^^^^^^ +>x : string +> : ^^^^^^ +>this.y = this.x : string +> : ^^^^^^ +>this.y : string +> : ^^^^^^ +>this : this +> : ^^^^ +>y : string +> : ^^^^^^ +>this.x : string +> : ^^^^^^ +>this : this +> : ^^^^ +>x : string +> : ^^^^^^ + + private foo() { return this.foo; } +>foo : () => any +> : ^^^^^^^^^ +>this.foo : () => any +> : ^^^^^^^^^ +>this : this +> : ^^^^ +>foo : () => any +> : ^^^^^^^^^ + + private static x: string; +>x : string +> : ^^^^^^ + + private static get y() { return this.x; } +>y : string +> : ^^^^^^ +>this.x : string +> : ^^^^^^ +>this : typeof C +> : ^^^^^^^^ +>x : string +> : ^^^^^^ + + private static set y(x) { this.y = this.x; } +>y : string +> : ^^^^^^ +>x : string +> : ^^^^^^ +>this.y = this.x : string +> : ^^^^^^ +>this.y : string +> : ^^^^^^ +>this : typeof C +> : ^^^^^^^^ +>y : string +> : ^^^^^^ +>this.x : string +> : ^^^^^^ +>this : typeof C +> : ^^^^^^^^ +>x : string +> : ^^^^^^ + + private static foo() { return this.foo; } +>foo : () => typeof C.foo +> : ^^^^^^^^^^^^^^^^^^ +>this.foo : () => typeof C.foo +> : ^^^^^^^^^^^^^^^^^^ +>this : typeof C +> : ^^^^^^^^ +>foo : () => typeof C.foo +> : ^^^^^^^^^^^^^^^^^^ + + private static bar() { this.foo(); } +>bar : () => void +> : ^^^^^^^^^^ +>this.foo() : () => typeof C.foo +> : ^^^^^^^^^^^^^^^^^^ +>this.foo : () => typeof C.foo +> : ^^^^^^^^^^^^^^^^^^ +>this : typeof C +> : ^^^^^^^^ +>foo : () => typeof C.foo +> : ^^^^^^^^^^^^^^^^^^ + + private bar() { +>bar : () => void +> : ^^^^^^^^^^ + + class C2 { +>C2 : C2 +> : ^^ + + private foo() { +>foo : () => void +> : ^^^^^^^^^^ + + let x: C; +>x : C +> : ^ + + var x1 = x.foo; +>x1 : () => any +> : ^^^^^^^^^ +>x.foo : () => any +> : ^^^^^^^^^ +>x : C +> : ^ +>foo : () => any +> : ^^^^^^^^^ + + var x2 = x.bar; +>x2 : () => void +> : ^^^^^^^^^^ +>x.bar : () => void +> : ^^^^^^^^^^ +>x : C +> : ^ +>bar : () => void +> : ^^^^^^^^^^ + + var x3 = x.x; +>x3 : string +> : ^^^^^^ +>x.x : string +> : ^^^^^^ +>x : C +> : ^ +>x : string +> : ^^^^^^ + + var x4 = x.y; +>x4 : string +> : ^^^^^^ +>x.y : string +> : ^^^^^^ +>x : C +> : ^ +>y : string +> : ^^^^^^ + + var sx1 = C.x; +>sx1 : string +> : ^^^^^^ +>C.x : string +> : ^^^^^^ +>C : typeof C +> : ^^^^^^^^ +>x : string +> : ^^^^^^ + + var sx2 = C.y; +>sx2 : string +> : ^^^^^^ +>C.y : string +> : ^^^^^^ +>C : typeof C +> : ^^^^^^^^ +>y : string +> : ^^^^^^ + + var sx3 = C.bar; +>sx3 : () => void +> : ^^^^^^^^^^ +>C.bar : () => void +> : ^^^^^^^^^^ +>C : typeof C +> : ^^^^^^^^ +>bar : () => void +> : ^^^^^^^^^^ + + var sx4 = C.foo; +>sx4 : () => typeof C.foo +> : ^^^^^^^^^^^^^^^^^^ +>C.foo : () => typeof C.foo +> : ^^^^^^^^^^^^^^^^^^ +>C : typeof C +> : ^^^^^^^^ +>foo : () => typeof C.foo +> : ^^^^^^^^^^^^^^^^^^ + + let y = new C(); +>y : C +> : ^ +>new C() : C +> : ^ +>C : typeof C +> : ^^^^^^^^ + + var y1 = y.foo; +>y1 : () => any +> : ^^^^^^^^^ +>y.foo : () => any +> : ^^^^^^^^^ +>y : C +> : ^ +>foo : () => any +> : ^^^^^^^^^ + + var y2 = y.bar; +>y2 : () => void +> : ^^^^^^^^^^ +>y.bar : () => void +> : ^^^^^^^^^^ +>y : C +> : ^ +>bar : () => void +> : ^^^^^^^^^^ + + var y3 = y.x; +>y3 : string +> : ^^^^^^ +>y.x : string +> : ^^^^^^ +>y : C +> : ^ +>x : string +> : ^^^^^^ + + var y4 = y.y; +>y4 : string +> : ^^^^^^ +>y.y : string +> : ^^^^^^ +>y : C +> : ^ +>y : string +> : ^^^^^^ + } + } + } +} diff --git a/tests/baselines/reference/privateNameES5Ban(target=es2015).js b/tests/baselines/reference/privateNameES5Ban(target=es2015).js new file mode 100644 index 0000000000000..596bb122d0799 --- /dev/null +++ b/tests/baselines/reference/privateNameES5Ban(target=es2015).js @@ -0,0 +1,27 @@ +//// [tests/cases/conformance/classes/members/privateNames/privateNameES5Ban.ts] //// + +//// [privateNameES5Ban.ts] +class A { + constructor() {} + #field = 123; + #method() {} + static #sField = "hello world"; + static #sMethod() {} + get #acc() { return ""; } + set #acc(x: string) {} + static get #sAcc() { return 0; } + static set #sAcc(x: number) {} +} + + + +//// [privateNameES5Ban.js] +var _A_instances, _a, _A_field, _A_method, _A_sField, _A_sMethod, _A_acc_get, _A_acc_set, _A_sAcc_get, _A_sAcc_set; +class A { + constructor() { + _A_instances.add(this); + _A_field.set(this, 123); + } +} +_a = A, _A_field = new WeakMap(), _A_instances = new WeakSet(), _A_method = function _A_method() { }, _A_sMethod = function _A_sMethod() { }, _A_acc_get = function _A_acc_get() { return ""; }, _A_acc_set = function _A_acc_set(x) { }, _A_sAcc_get = function _A_sAcc_get() { return 0; }, _A_sAcc_set = function _A_sAcc_set(x) { }; +_A_sField = { value: "hello world" }; diff --git a/tests/baselines/reference/privateNameES5Ban.symbols b/tests/baselines/reference/privateNameES5Ban(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/privateNameES5Ban.symbols rename to tests/baselines/reference/privateNameES5Ban(target=es2015).symbols diff --git a/tests/baselines/reference/privateNameES5Ban.types b/tests/baselines/reference/privateNameES5Ban(target=es2015).types similarity index 100% rename from tests/baselines/reference/privateNameES5Ban.types rename to tests/baselines/reference/privateNameES5Ban(target=es2015).types diff --git a/tests/baselines/reference/privateNameES5Ban.errors.txt b/tests/baselines/reference/privateNameES5Ban(target=es5).errors.txt similarity index 100% rename from tests/baselines/reference/privateNameES5Ban.errors.txt rename to tests/baselines/reference/privateNameES5Ban(target=es5).errors.txt diff --git a/tests/baselines/reference/privateNameES5Ban.js b/tests/baselines/reference/privateNameES5Ban(target=es5).js similarity index 100% rename from tests/baselines/reference/privateNameES5Ban.js rename to tests/baselines/reference/privateNameES5Ban(target=es5).js diff --git a/tests/baselines/reference/privateNameES5Ban(target=es5).symbols b/tests/baselines/reference/privateNameES5Ban(target=es5).symbols new file mode 100644 index 0000000000000..ff7b0b03f633c --- /dev/null +++ b/tests/baselines/reference/privateNameES5Ban(target=es5).symbols @@ -0,0 +1,35 @@ +//// [tests/cases/conformance/classes/members/privateNames/privateNameES5Ban.ts] //// + +=== privateNameES5Ban.ts === +class A { +>A : Symbol(A, Decl(privateNameES5Ban.ts, 0, 0)) + + constructor() {} + #field = 123; +>#field : Symbol(A.#field, Decl(privateNameES5Ban.ts, 1, 20)) + + #method() {} +>#method : Symbol(A.#method, Decl(privateNameES5Ban.ts, 2, 17)) + + static #sField = "hello world"; +>#sField : Symbol(A.#sField, Decl(privateNameES5Ban.ts, 3, 16)) + + static #sMethod() {} +>#sMethod : Symbol(A.#sMethod, Decl(privateNameES5Ban.ts, 4, 35)) + + get #acc() { return ""; } +>#acc : Symbol(A.#acc, Decl(privateNameES5Ban.ts, 5, 24), Decl(privateNameES5Ban.ts, 6, 29)) + + set #acc(x: string) {} +>#acc : Symbol(A.#acc, Decl(privateNameES5Ban.ts, 5, 24), Decl(privateNameES5Ban.ts, 6, 29)) +>x : Symbol(x, Decl(privateNameES5Ban.ts, 7, 13)) + + static get #sAcc() { return 0; } +>#sAcc : Symbol(A.#sAcc, Decl(privateNameES5Ban.ts, 7, 26), Decl(privateNameES5Ban.ts, 8, 36)) + + static set #sAcc(x: number) {} +>#sAcc : Symbol(A.#sAcc, Decl(privateNameES5Ban.ts, 7, 26), Decl(privateNameES5Ban.ts, 8, 36)) +>x : Symbol(x, Decl(privateNameES5Ban.ts, 9, 21)) +} + + diff --git a/tests/baselines/reference/privateNameES5Ban(target=es5).types b/tests/baselines/reference/privateNameES5Ban(target=es5).types new file mode 100644 index 0000000000000..b67296938a9bf --- /dev/null +++ b/tests/baselines/reference/privateNameES5Ban(target=es5).types @@ -0,0 +1,54 @@ +//// [tests/cases/conformance/classes/members/privateNames/privateNameES5Ban.ts] //// + +=== privateNameES5Ban.ts === +class A { +>A : A +> : ^ + + constructor() {} + #field = 123; +>#field : number +> : ^^^^^^ +>123 : 123 +> : ^^^ + + #method() {} +>#method : () => void +> : ^^^^^^^^^^ + + static #sField = "hello world"; +>#sField : string +> : ^^^^^^ +>"hello world" : "hello world" +> : ^^^^^^^^^^^^^ + + static #sMethod() {} +>#sMethod : () => void +> : ^^^^^^^^^^ + + get #acc() { return ""; } +>#acc : string +> : ^^^^^^ +>"" : "" +> : ^^ + + set #acc(x: string) {} +>#acc : string +> : ^^^^^^ +>x : string +> : ^^^^^^ + + static get #sAcc() { return 0; } +>#sAcc : number +> : ^^^^^^ +>0 : 0 +> : ^ + + static set #sAcc(x: number) {} +>#sAcc : number +> : ^^^^^^ +>x : number +> : ^^^^^^ +} + + diff --git a/tests/baselines/reference/promiseDefinitionTest.errors.txt b/tests/baselines/reference/promiseDefinitionTest(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/promiseDefinitionTest.errors.txt rename to tests/baselines/reference/promiseDefinitionTest(target=es2015).errors.txt diff --git a/tests/baselines/reference/promiseDefinitionTest(target=es2015).js b/tests/baselines/reference/promiseDefinitionTest(target=es2015).js new file mode 100644 index 0000000000000..e283c60a2ee62 --- /dev/null +++ b/tests/baselines/reference/promiseDefinitionTest(target=es2015).js @@ -0,0 +1,24 @@ +//// [tests/cases/compiler/promiseDefinitionTest.ts] //// + +//// [promiseDefinitionTest.ts] +class Promise {} +async function foo() {} +const x = foo(); + + +//// [promiseDefinitionTest.js] +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +class Promise { +} +function foo() { + return __awaiter(this, void 0, void 0, function* () { }); +} +const x = foo(); diff --git a/tests/baselines/reference/promiseDefinitionTest.symbols b/tests/baselines/reference/promiseDefinitionTest(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/promiseDefinitionTest.symbols rename to tests/baselines/reference/promiseDefinitionTest(target=es2015).symbols diff --git a/tests/baselines/reference/promiseDefinitionTest.types b/tests/baselines/reference/promiseDefinitionTest(target=es2015).types similarity index 100% rename from tests/baselines/reference/promiseDefinitionTest.types rename to tests/baselines/reference/promiseDefinitionTest(target=es2015).types diff --git a/tests/baselines/reference/promiseDefinitionTest(target=es5).errors.txt b/tests/baselines/reference/promiseDefinitionTest(target=es5).errors.txt new file mode 100644 index 0000000000000..caa8cea19b34a --- /dev/null +++ b/tests/baselines/reference/promiseDefinitionTest(target=es5).errors.txt @@ -0,0 +1,14 @@ +promiseDefinitionTest.ts(1,7): error TS2300: Duplicate identifier 'Promise'. + + +==== promiseDefinitionTest.ts (1 errors) ==== + class Promise {} + ~~~~~~~ +!!! error TS2300: Duplicate identifier 'Promise'. +!!! related TS6203 lib.es5.d.ts:--:--: 'Promise' was also declared here. +!!! related TS6204 lib.es2015.iterable.d.ts:--:--: and here. +!!! related TS6204 lib.es2015.promise.d.ts:--:--: and here. +!!! related TS6204 lib.es2015.symbol.wellknown.d.ts:--:--: and here. + async function foo() {} + const x = foo(); + \ No newline at end of file diff --git a/tests/baselines/reference/promiseDefinitionTest.js b/tests/baselines/reference/promiseDefinitionTest(target=es5).js similarity index 100% rename from tests/baselines/reference/promiseDefinitionTest.js rename to tests/baselines/reference/promiseDefinitionTest(target=es5).js diff --git a/tests/baselines/reference/promiseDefinitionTest(target=es5).symbols b/tests/baselines/reference/promiseDefinitionTest(target=es5).symbols new file mode 100644 index 0000000000000..79995e8ffed0e --- /dev/null +++ b/tests/baselines/reference/promiseDefinitionTest(target=es5).symbols @@ -0,0 +1,14 @@ +//// [tests/cases/compiler/promiseDefinitionTest.ts] //// + +=== promiseDefinitionTest.ts === +class Promise {} +>Promise : Symbol(Promise, Decl(promiseDefinitionTest.ts, 0, 0)) +>T : Symbol(T, Decl(promiseDefinitionTest.ts, 0, 14)) + +async function foo() {} +>foo : Symbol(foo, Decl(promiseDefinitionTest.ts, 0, 19)) + +const x = foo(); +>x : Symbol(x, Decl(promiseDefinitionTest.ts, 2, 5)) +>foo : Symbol(foo, Decl(promiseDefinitionTest.ts, 0, 19)) + diff --git a/tests/baselines/reference/promiseDefinitionTest(target=es5).types b/tests/baselines/reference/promiseDefinitionTest(target=es5).types new file mode 100644 index 0000000000000..02d206ab923eb --- /dev/null +++ b/tests/baselines/reference/promiseDefinitionTest(target=es5).types @@ -0,0 +1,19 @@ +//// [tests/cases/compiler/promiseDefinitionTest.ts] //// + +=== promiseDefinitionTest.ts === +class Promise {} +>Promise : Promise +> : ^^^^^^^^^^ + +async function foo() {} +>foo : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + +const x = foo(); +>x : Promise +> : ^^^^^^^^^^^^^ +>foo() : Promise +> : ^^^^^^^^^^^^^ +>foo : () => Promise +> : ^^^^^^^^^^^^^^^^^^^ + diff --git a/tests/baselines/reference/properties(target=es2015).js b/tests/baselines/reference/properties(target=es2015).js new file mode 100644 index 0000000000000..48e860eb43227 --- /dev/null +++ b/tests/baselines/reference/properties(target=es2015).js @@ -0,0 +1,32 @@ +//// [tests/cases/compiler/properties.ts] //// + +//// [properties.ts] +class MyClass +{ + public get Count(): number + { + return 42; + } + + public set Count(value: number) + { + // + } +} + +//// [properties.js] +class MyClass { + get Count() { + return 42; + } + set Count(value) { + // + } +} +//# sourceMappingURL=properties.js.map + +//// [properties.d.ts] +declare class MyClass { + get Count(): number; + set Count(value: number); +} diff --git a/tests/baselines/reference/properties(target=es2015).js.map b/tests/baselines/reference/properties(target=es2015).js.map new file mode 100644 index 0000000000000..5d9d1ecab016c --- /dev/null +++ b/tests/baselines/reference/properties(target=es2015).js.map @@ -0,0 +1,3 @@ +//// [properties.js.map] +{"version":3,"file":"properties.js","sourceRoot":"","sources":["properties.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO;IAET,IAAW,KAAK;QAEZ,OAAO,EAAE,CAAC;IACd,CAAC;IAED,IAAW,KAAK,CAAC,KAAa;QAE1B,EAAE;IACN,CAAC;CACJ"} +//// https://sokra.github.io/source-map-visualization#base64,Y2xhc3MgTXlDbGFzcyB7DQogICAgZ2V0IENvdW50KCkgew0KICAgICAgICByZXR1cm4gNDI7DQogICAgfQ0KICAgIHNldCBDb3VudCh2YWx1ZSkgew0KICAgICAgICAvLw0KICAgIH0NCn0NCi8vIyBzb3VyY2VNYXBwaW5nVVJMPXByb3BlcnRpZXMuanMubWFw,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvcGVydGllcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInByb3BlcnRpZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxPQUFPO0lBRVQsSUFBVyxLQUFLO1FBRVosT0FBTyxFQUFFLENBQUM7SUFDZCxDQUFDO0lBRUQsSUFBVyxLQUFLLENBQUMsS0FBYTtRQUUxQixFQUFFO0lBQ04sQ0FBQztDQUNKIn0=,Y2xhc3MgTXlDbGFzcwp7CiAgICBwdWJsaWMgZ2V0IENvdW50KCk6IG51bWJlcgogICAgewogICAgICAgIHJldHVybiA0MjsKICAgIH0KCiAgICBwdWJsaWMgc2V0IENvdW50KHZhbHVlOiBudW1iZXIpCiAgICB7CiAgICAgICAgLy8KICAgIH0KfQ== diff --git a/tests/baselines/reference/properties(target=es2015).sourcemap.txt b/tests/baselines/reference/properties(target=es2015).sourcemap.txt new file mode 100644 index 0000000000000..4edd8762ea193 --- /dev/null +++ b/tests/baselines/reference/properties(target=es2015).sourcemap.txt @@ -0,0 +1,108 @@ +=================================================================== +JsFile: properties.js +mapUrl: properties.js.map +sourceRoot: +sources: properties.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:properties.js +sourceFile:properties.ts +------------------------------------------------------------------- +>>>class MyClass { +1 > +2 >^^^^^^ +3 > ^^^^^^^ +4 > ^^^^^-> +1 > +2 >class +3 > MyClass +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 7) Source(1, 7) + SourceIndex(0) +3 >Emitted(1, 14) Source(1, 14) + SourceIndex(0) +--- +>>> get Count() { +1->^^^^ +2 > ^^^^ +3 > ^^^^^ +4 > ^^^^^^-> +1-> + >{ + > +2 > public get +3 > Count +1->Emitted(2, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(3, 16) + SourceIndex(0) +3 >Emitted(2, 14) Source(3, 21) + SourceIndex(0) +--- +>>> return 42; +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^^ +4 > ^ +1->(): number + > { + > +2 > return +3 > 42 +4 > ; +1->Emitted(3, 9) Source(5, 9) + SourceIndex(0) +2 >Emitted(3, 16) Source(5, 16) + SourceIndex(0) +3 >Emitted(3, 18) Source(5, 18) + SourceIndex(0) +4 >Emitted(3, 19) Source(5, 19) + SourceIndex(0) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(4, 5) Source(6, 5) + SourceIndex(0) +2 >Emitted(4, 6) Source(6, 6) + SourceIndex(0) +--- +>>> set Count(value) { +1->^^^^ +2 > ^^^^ +3 > ^^^^^ +4 > ^ +5 > ^^^^^ +1-> + > + > +2 > public set +3 > Count +4 > ( +5 > value: number +1->Emitted(5, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(5, 9) Source(8, 16) + SourceIndex(0) +3 >Emitted(5, 14) Source(8, 21) + SourceIndex(0) +4 >Emitted(5, 15) Source(8, 22) + SourceIndex(0) +5 >Emitted(5, 20) Source(8, 35) + SourceIndex(0) +--- +>>> // +1 >^^^^^^^^ +2 > ^^ +1 >) + > { + > +2 > // +1 >Emitted(6, 9) Source(10, 9) + SourceIndex(0) +2 >Emitted(6, 11) Source(10, 11) + SourceIndex(0) +--- +>>> } +1 >^^^^ +2 > ^ +1 > + > +2 > } +1 >Emitted(7, 5) Source(11, 5) + SourceIndex(0) +2 >Emitted(7, 6) Source(11, 6) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(8, 2) Source(12, 2) + SourceIndex(0) +--- +>>>//# sourceMappingURL=properties.js.map \ No newline at end of file diff --git a/tests/baselines/reference/properties.symbols b/tests/baselines/reference/properties(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/properties.symbols rename to tests/baselines/reference/properties(target=es2015).symbols diff --git a/tests/baselines/reference/properties.types b/tests/baselines/reference/properties(target=es2015).types similarity index 100% rename from tests/baselines/reference/properties.types rename to tests/baselines/reference/properties(target=es2015).types diff --git a/tests/baselines/reference/properties.js b/tests/baselines/reference/properties(target=es5).js similarity index 100% rename from tests/baselines/reference/properties.js rename to tests/baselines/reference/properties(target=es5).js diff --git a/tests/baselines/reference/properties.js.map b/tests/baselines/reference/properties(target=es5).js.map similarity index 100% rename from tests/baselines/reference/properties.js.map rename to tests/baselines/reference/properties(target=es5).js.map diff --git a/tests/baselines/reference/properties.sourcemap.txt b/tests/baselines/reference/properties(target=es5).sourcemap.txt similarity index 100% rename from tests/baselines/reference/properties.sourcemap.txt rename to tests/baselines/reference/properties(target=es5).sourcemap.txt diff --git a/tests/baselines/reference/properties(target=es5).symbols b/tests/baselines/reference/properties(target=es5).symbols new file mode 100644 index 0000000000000..600124be2de88 --- /dev/null +++ b/tests/baselines/reference/properties(target=es5).symbols @@ -0,0 +1,19 @@ +//// [tests/cases/compiler/properties.ts] //// + +=== properties.ts === +class MyClass +>MyClass : Symbol(MyClass, Decl(properties.ts, 0, 0)) +{ + public get Count(): number +>Count : Symbol(MyClass.Count, Decl(properties.ts, 1, 1), Decl(properties.ts, 5, 5)) + { + return 42; + } + + public set Count(value: number) +>Count : Symbol(MyClass.Count, Decl(properties.ts, 1, 1), Decl(properties.ts, 5, 5)) +>value : Symbol(value, Decl(properties.ts, 7, 21)) + { + // + } +} diff --git a/tests/baselines/reference/properties(target=es5).types b/tests/baselines/reference/properties(target=es5).types new file mode 100644 index 0000000000000..bf71a4e5e81cb --- /dev/null +++ b/tests/baselines/reference/properties(target=es5).types @@ -0,0 +1,25 @@ +//// [tests/cases/compiler/properties.ts] //// + +=== properties.ts === +class MyClass +>MyClass : MyClass +> : ^^^^^^^ +{ + public get Count(): number +>Count : number +> : ^^^^^^ + { + return 42; +>42 : 42 +> : ^^ + } + + public set Count(value: number) +>Count : number +> : ^^^^^^ +>value : number +> : ^^^^^^ + { + // + } +} diff --git a/tests/baselines/reference/propertyOverridesAccessors4.errors.txt b/tests/baselines/reference/propertyOverridesAccessors4(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/propertyOverridesAccessors4.errors.txt rename to tests/baselines/reference/propertyOverridesAccessors4(target=es2015).errors.txt diff --git a/tests/baselines/reference/propertyOverridesAccessors4(target=es2015).js b/tests/baselines/reference/propertyOverridesAccessors4(target=es2015).js new file mode 100644 index 0000000000000..7310c558d64e0 --- /dev/null +++ b/tests/baselines/reference/propertyOverridesAccessors4(target=es2015).js @@ -0,0 +1,24 @@ +//// [tests/cases/conformance/classes/propertyMemberDeclarations/propertyOverridesAccessors4.ts] //// + +//// [propertyOverridesAccessors4.ts] +declare class Animal { + get sound(): string + set sound(val: string) +} +class Lion extends Animal { + sound = 'RAWR!' // error here +} + + +//// [propertyOverridesAccessors4.js] +class Lion extends Animal { + constructor() { + super(...arguments); + Object.defineProperty(this, "sound", { + enumerable: true, + configurable: true, + writable: true, + value: 'RAWR!' + }); // error here + } +} diff --git a/tests/baselines/reference/propertyOverridesAccessors4.symbols b/tests/baselines/reference/propertyOverridesAccessors4(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/propertyOverridesAccessors4.symbols rename to tests/baselines/reference/propertyOverridesAccessors4(target=es2015).symbols diff --git a/tests/baselines/reference/propertyOverridesAccessors4.types b/tests/baselines/reference/propertyOverridesAccessors4(target=es2015).types similarity index 100% rename from tests/baselines/reference/propertyOverridesAccessors4.types rename to tests/baselines/reference/propertyOverridesAccessors4(target=es2015).types diff --git a/tests/baselines/reference/propertyOverridesAccessors4(target=es5).errors.txt b/tests/baselines/reference/propertyOverridesAccessors4(target=es5).errors.txt new file mode 100644 index 0000000000000..7e6866a5bdc98 --- /dev/null +++ b/tests/baselines/reference/propertyOverridesAccessors4(target=es5).errors.txt @@ -0,0 +1,14 @@ +propertyOverridesAccessors4.ts(6,5): error TS2610: 'sound' is defined as an accessor in class 'Animal', but is overridden here in 'Lion' as an instance property. + + +==== propertyOverridesAccessors4.ts (1 errors) ==== + declare class Animal { + get sound(): string + set sound(val: string) + } + class Lion extends Animal { + sound = 'RAWR!' // error here + ~~~~~ +!!! error TS2610: 'sound' is defined as an accessor in class 'Animal', but is overridden here in 'Lion' as an instance property. + } + \ No newline at end of file diff --git a/tests/baselines/reference/propertyOverridesAccessors4.js b/tests/baselines/reference/propertyOverridesAccessors4(target=es5).js similarity index 100% rename from tests/baselines/reference/propertyOverridesAccessors4.js rename to tests/baselines/reference/propertyOverridesAccessors4(target=es5).js diff --git a/tests/baselines/reference/propertyOverridesAccessors4(target=es5).symbols b/tests/baselines/reference/propertyOverridesAccessors4(target=es5).symbols new file mode 100644 index 0000000000000..8c12f5353c82a --- /dev/null +++ b/tests/baselines/reference/propertyOverridesAccessors4(target=es5).symbols @@ -0,0 +1,21 @@ +//// [tests/cases/conformance/classes/propertyMemberDeclarations/propertyOverridesAccessors4.ts] //// + +=== propertyOverridesAccessors4.ts === +declare class Animal { +>Animal : Symbol(Animal, Decl(propertyOverridesAccessors4.ts, 0, 0)) + + get sound(): string +>sound : Symbol(Animal.sound, Decl(propertyOverridesAccessors4.ts, 0, 22), Decl(propertyOverridesAccessors4.ts, 1, 23)) + + set sound(val: string) +>sound : Symbol(Animal.sound, Decl(propertyOverridesAccessors4.ts, 0, 22), Decl(propertyOverridesAccessors4.ts, 1, 23)) +>val : Symbol(val, Decl(propertyOverridesAccessors4.ts, 2, 14)) +} +class Lion extends Animal { +>Lion : Symbol(Lion, Decl(propertyOverridesAccessors4.ts, 3, 1)) +>Animal : Symbol(Animal, Decl(propertyOverridesAccessors4.ts, 0, 0)) + + sound = 'RAWR!' // error here +>sound : Symbol(Lion.sound, Decl(propertyOverridesAccessors4.ts, 4, 27)) +} + diff --git a/tests/baselines/reference/propertyOverridesAccessors4(target=es5).types b/tests/baselines/reference/propertyOverridesAccessors4(target=es5).types new file mode 100644 index 0000000000000..8c122f1e60854 --- /dev/null +++ b/tests/baselines/reference/propertyOverridesAccessors4(target=es5).types @@ -0,0 +1,30 @@ +//// [tests/cases/conformance/classes/propertyMemberDeclarations/propertyOverridesAccessors4.ts] //// + +=== propertyOverridesAccessors4.ts === +declare class Animal { +>Animal : Animal +> : ^^^^^^ + + get sound(): string +>sound : string +> : ^^^^^^ + + set sound(val: string) +>sound : string +> : ^^^^^^ +>val : string +> : ^^^^^^ +} +class Lion extends Animal { +>Lion : Lion +> : ^^^^ +>Animal : Animal +> : ^^^^^^ + + sound = 'RAWR!' // error here +>sound : string +> : ^^^^^^ +>'RAWR!' : "RAWR!" +> : ^^^^^^^ +} + diff --git a/tests/baselines/reference/protectedClassPropertyAccessibleWithinClass(target=es2015).js b/tests/baselines/reference/protectedClassPropertyAccessibleWithinClass(target=es2015).js new file mode 100644 index 0000000000000..905123552356a --- /dev/null +++ b/tests/baselines/reference/protectedClassPropertyAccessibleWithinClass(target=es2015).js @@ -0,0 +1,58 @@ +//// [tests/cases/conformance/classes/members/accessibility/protectedClassPropertyAccessibleWithinClass.ts] //// + +//// [protectedClassPropertyAccessibleWithinClass.ts] +// no errors + +class C { + protected x: string; + protected get y() { return this.x; } + protected set y(x) { this.y = this.x; } + protected foo() { return this.foo; } + + protected static x: string; + protected static get y() { return this.x; } + protected static set y(x) { this.y = this.x; } + protected static foo() { return this.foo; } + protected static bar() { this.foo(); } +} + +// added level of function nesting +class C2 { + protected x: string; + protected get y() { () => this.x; return null; } + protected set y(x) { () => { this.y = this.x; } } + protected foo() { () => this.foo; } + + protected static x: string; + protected static get y() { () => this.x; return null; } + protected static set y(x) { + () => { this.y = this.x; } + } + protected static foo() { () => this.foo; } + protected static bar() { () => this.foo(); } +} + + +//// [protectedClassPropertyAccessibleWithinClass.js] +// no errors +class C { + get y() { return this.x; } + set y(x) { this.y = this.x; } + foo() { return this.foo; } + static get y() { return this.x; } + static set y(x) { this.y = this.x; } + static foo() { return this.foo; } + static bar() { this.foo(); } +} +// added level of function nesting +class C2 { + get y() { () => this.x; return null; } + set y(x) { () => { this.y = this.x; }; } + foo() { () => this.foo; } + static get y() { () => this.x; return null; } + static set y(x) { + () => { this.y = this.x; }; + } + static foo() { () => this.foo; } + static bar() { () => this.foo(); } +} diff --git a/tests/baselines/reference/protectedClassPropertyAccessibleWithinClass.symbols b/tests/baselines/reference/protectedClassPropertyAccessibleWithinClass(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/protectedClassPropertyAccessibleWithinClass.symbols rename to tests/baselines/reference/protectedClassPropertyAccessibleWithinClass(target=es2015).symbols diff --git a/tests/baselines/reference/protectedClassPropertyAccessibleWithinClass.types b/tests/baselines/reference/protectedClassPropertyAccessibleWithinClass(target=es2015).types similarity index 100% rename from tests/baselines/reference/protectedClassPropertyAccessibleWithinClass.types rename to tests/baselines/reference/protectedClassPropertyAccessibleWithinClass(target=es2015).types diff --git a/tests/baselines/reference/protectedClassPropertyAccessibleWithinClass.js b/tests/baselines/reference/protectedClassPropertyAccessibleWithinClass(target=es5).js similarity index 100% rename from tests/baselines/reference/protectedClassPropertyAccessibleWithinClass.js rename to tests/baselines/reference/protectedClassPropertyAccessibleWithinClass(target=es5).js diff --git a/tests/baselines/reference/protectedClassPropertyAccessibleWithinClass(target=es5).symbols b/tests/baselines/reference/protectedClassPropertyAccessibleWithinClass(target=es5).symbols new file mode 100644 index 0000000000000..12d6e72ba0237 --- /dev/null +++ b/tests/baselines/reference/protectedClassPropertyAccessibleWithinClass(target=es5).symbols @@ -0,0 +1,128 @@ +//// [tests/cases/conformance/classes/members/accessibility/protectedClassPropertyAccessibleWithinClass.ts] //// + +=== protectedClassPropertyAccessibleWithinClass.ts === +// no errors + +class C { +>C : Symbol(C, Decl(protectedClassPropertyAccessibleWithinClass.ts, 0, 0)) + + protected x: string; +>x : Symbol(C.x, Decl(protectedClassPropertyAccessibleWithinClass.ts, 2, 9)) + + protected get y() { return this.x; } +>y : Symbol(C.y, Decl(protectedClassPropertyAccessibleWithinClass.ts, 3, 24), Decl(protectedClassPropertyAccessibleWithinClass.ts, 4, 40)) +>this.x : Symbol(C.x, Decl(protectedClassPropertyAccessibleWithinClass.ts, 2, 9)) +>this : Symbol(C, Decl(protectedClassPropertyAccessibleWithinClass.ts, 0, 0)) +>x : Symbol(C.x, Decl(protectedClassPropertyAccessibleWithinClass.ts, 2, 9)) + + protected set y(x) { this.y = this.x; } +>y : Symbol(C.y, Decl(protectedClassPropertyAccessibleWithinClass.ts, 3, 24), Decl(protectedClassPropertyAccessibleWithinClass.ts, 4, 40)) +>x : Symbol(x, Decl(protectedClassPropertyAccessibleWithinClass.ts, 5, 20)) +>this.y : Symbol(C.y, Decl(protectedClassPropertyAccessibleWithinClass.ts, 3, 24), Decl(protectedClassPropertyAccessibleWithinClass.ts, 4, 40)) +>this : Symbol(C, Decl(protectedClassPropertyAccessibleWithinClass.ts, 0, 0)) +>y : Symbol(C.y, Decl(protectedClassPropertyAccessibleWithinClass.ts, 3, 24), Decl(protectedClassPropertyAccessibleWithinClass.ts, 4, 40)) +>this.x : Symbol(C.x, Decl(protectedClassPropertyAccessibleWithinClass.ts, 2, 9)) +>this : Symbol(C, Decl(protectedClassPropertyAccessibleWithinClass.ts, 0, 0)) +>x : Symbol(C.x, Decl(protectedClassPropertyAccessibleWithinClass.ts, 2, 9)) + + protected foo() { return this.foo; } +>foo : Symbol(C.foo, Decl(protectedClassPropertyAccessibleWithinClass.ts, 5, 43)) +>this.foo : Symbol(C.foo, Decl(protectedClassPropertyAccessibleWithinClass.ts, 5, 43)) +>this : Symbol(C, Decl(protectedClassPropertyAccessibleWithinClass.ts, 0, 0)) +>foo : Symbol(C.foo, Decl(protectedClassPropertyAccessibleWithinClass.ts, 5, 43)) + + protected static x: string; +>x : Symbol(C.x, Decl(protectedClassPropertyAccessibleWithinClass.ts, 6, 40)) + + protected static get y() { return this.x; } +>y : Symbol(C.y, Decl(protectedClassPropertyAccessibleWithinClass.ts, 8, 31), Decl(protectedClassPropertyAccessibleWithinClass.ts, 9, 47)) +>this.x : Symbol(C.x, Decl(protectedClassPropertyAccessibleWithinClass.ts, 6, 40)) +>this : Symbol(C, Decl(protectedClassPropertyAccessibleWithinClass.ts, 0, 0)) +>x : Symbol(C.x, Decl(protectedClassPropertyAccessibleWithinClass.ts, 6, 40)) + + protected static set y(x) { this.y = this.x; } +>y : Symbol(C.y, Decl(protectedClassPropertyAccessibleWithinClass.ts, 8, 31), Decl(protectedClassPropertyAccessibleWithinClass.ts, 9, 47)) +>x : Symbol(x, Decl(protectedClassPropertyAccessibleWithinClass.ts, 10, 27)) +>this.y : Symbol(C.y, Decl(protectedClassPropertyAccessibleWithinClass.ts, 8, 31), Decl(protectedClassPropertyAccessibleWithinClass.ts, 9, 47)) +>this : Symbol(C, Decl(protectedClassPropertyAccessibleWithinClass.ts, 0, 0)) +>y : Symbol(C.y, Decl(protectedClassPropertyAccessibleWithinClass.ts, 8, 31), Decl(protectedClassPropertyAccessibleWithinClass.ts, 9, 47)) +>this.x : Symbol(C.x, Decl(protectedClassPropertyAccessibleWithinClass.ts, 6, 40)) +>this : Symbol(C, Decl(protectedClassPropertyAccessibleWithinClass.ts, 0, 0)) +>x : Symbol(C.x, Decl(protectedClassPropertyAccessibleWithinClass.ts, 6, 40)) + + protected static foo() { return this.foo; } +>foo : Symbol(C.foo, Decl(protectedClassPropertyAccessibleWithinClass.ts, 10, 50)) +>this.foo : Symbol(C.foo, Decl(protectedClassPropertyAccessibleWithinClass.ts, 10, 50)) +>this : Symbol(C, Decl(protectedClassPropertyAccessibleWithinClass.ts, 0, 0)) +>foo : Symbol(C.foo, Decl(protectedClassPropertyAccessibleWithinClass.ts, 10, 50)) + + protected static bar() { this.foo(); } +>bar : Symbol(C.bar, Decl(protectedClassPropertyAccessibleWithinClass.ts, 11, 47)) +>this.foo : Symbol(C.foo, Decl(protectedClassPropertyAccessibleWithinClass.ts, 10, 50)) +>this : Symbol(C, Decl(protectedClassPropertyAccessibleWithinClass.ts, 0, 0)) +>foo : Symbol(C.foo, Decl(protectedClassPropertyAccessibleWithinClass.ts, 10, 50)) +} + +// added level of function nesting +class C2 { +>C2 : Symbol(C2, Decl(protectedClassPropertyAccessibleWithinClass.ts, 13, 1)) + + protected x: string; +>x : Symbol(C2.x, Decl(protectedClassPropertyAccessibleWithinClass.ts, 16, 10)) + + protected get y() { () => this.x; return null; } +>y : Symbol(C2.y, Decl(protectedClassPropertyAccessibleWithinClass.ts, 17, 24), Decl(protectedClassPropertyAccessibleWithinClass.ts, 18, 52)) +>this.x : Symbol(C2.x, Decl(protectedClassPropertyAccessibleWithinClass.ts, 16, 10)) +>this : Symbol(C2, Decl(protectedClassPropertyAccessibleWithinClass.ts, 13, 1)) +>x : Symbol(C2.x, Decl(protectedClassPropertyAccessibleWithinClass.ts, 16, 10)) + + protected set y(x) { () => { this.y = this.x; } } +>y : Symbol(C2.y, Decl(protectedClassPropertyAccessibleWithinClass.ts, 17, 24), Decl(protectedClassPropertyAccessibleWithinClass.ts, 18, 52)) +>x : Symbol(x, Decl(protectedClassPropertyAccessibleWithinClass.ts, 19, 20)) +>this.y : Symbol(C2.y, Decl(protectedClassPropertyAccessibleWithinClass.ts, 17, 24), Decl(protectedClassPropertyAccessibleWithinClass.ts, 18, 52)) +>this : Symbol(C2, Decl(protectedClassPropertyAccessibleWithinClass.ts, 13, 1)) +>y : Symbol(C2.y, Decl(protectedClassPropertyAccessibleWithinClass.ts, 17, 24), Decl(protectedClassPropertyAccessibleWithinClass.ts, 18, 52)) +>this.x : Symbol(C2.x, Decl(protectedClassPropertyAccessibleWithinClass.ts, 16, 10)) +>this : Symbol(C2, Decl(protectedClassPropertyAccessibleWithinClass.ts, 13, 1)) +>x : Symbol(C2.x, Decl(protectedClassPropertyAccessibleWithinClass.ts, 16, 10)) + + protected foo() { () => this.foo; } +>foo : Symbol(C2.foo, Decl(protectedClassPropertyAccessibleWithinClass.ts, 19, 53)) +>this.foo : Symbol(C2.foo, Decl(protectedClassPropertyAccessibleWithinClass.ts, 19, 53)) +>this : Symbol(C2, Decl(protectedClassPropertyAccessibleWithinClass.ts, 13, 1)) +>foo : Symbol(C2.foo, Decl(protectedClassPropertyAccessibleWithinClass.ts, 19, 53)) + + protected static x: string; +>x : Symbol(C2.x, Decl(protectedClassPropertyAccessibleWithinClass.ts, 20, 39)) + + protected static get y() { () => this.x; return null; } +>y : Symbol(C2.y, Decl(protectedClassPropertyAccessibleWithinClass.ts, 22, 31), Decl(protectedClassPropertyAccessibleWithinClass.ts, 23, 59)) +>this.x : Symbol(C2.x, Decl(protectedClassPropertyAccessibleWithinClass.ts, 20, 39)) +>this : Symbol(C2, Decl(protectedClassPropertyAccessibleWithinClass.ts, 13, 1)) +>x : Symbol(C2.x, Decl(protectedClassPropertyAccessibleWithinClass.ts, 20, 39)) + + protected static set y(x) { +>y : Symbol(C2.y, Decl(protectedClassPropertyAccessibleWithinClass.ts, 22, 31), Decl(protectedClassPropertyAccessibleWithinClass.ts, 23, 59)) +>x : Symbol(x, Decl(protectedClassPropertyAccessibleWithinClass.ts, 24, 27)) + + () => { this.y = this.x; } +>this.y : Symbol(C2.y, Decl(protectedClassPropertyAccessibleWithinClass.ts, 22, 31), Decl(protectedClassPropertyAccessibleWithinClass.ts, 23, 59)) +>this : Symbol(C2, Decl(protectedClassPropertyAccessibleWithinClass.ts, 13, 1)) +>y : Symbol(C2.y, Decl(protectedClassPropertyAccessibleWithinClass.ts, 22, 31), Decl(protectedClassPropertyAccessibleWithinClass.ts, 23, 59)) +>this.x : Symbol(C2.x, Decl(protectedClassPropertyAccessibleWithinClass.ts, 20, 39)) +>this : Symbol(C2, Decl(protectedClassPropertyAccessibleWithinClass.ts, 13, 1)) +>x : Symbol(C2.x, Decl(protectedClassPropertyAccessibleWithinClass.ts, 20, 39)) + } + protected static foo() { () => this.foo; } +>foo : Symbol(C2.foo, Decl(protectedClassPropertyAccessibleWithinClass.ts, 26, 6)) +>this.foo : Symbol(C2.foo, Decl(protectedClassPropertyAccessibleWithinClass.ts, 26, 6)) +>this : Symbol(C2, Decl(protectedClassPropertyAccessibleWithinClass.ts, 13, 1)) +>foo : Symbol(C2.foo, Decl(protectedClassPropertyAccessibleWithinClass.ts, 26, 6)) + + protected static bar() { () => this.foo(); } +>bar : Symbol(C2.bar, Decl(protectedClassPropertyAccessibleWithinClass.ts, 27, 46)) +>this.foo : Symbol(C2.foo, Decl(protectedClassPropertyAccessibleWithinClass.ts, 26, 6)) +>this : Symbol(C2, Decl(protectedClassPropertyAccessibleWithinClass.ts, 13, 1)) +>foo : Symbol(C2.foo, Decl(protectedClassPropertyAccessibleWithinClass.ts, 26, 6)) +} + diff --git a/tests/baselines/reference/protectedClassPropertyAccessibleWithinClass(target=es5).types b/tests/baselines/reference/protectedClassPropertyAccessibleWithinClass(target=es5).types new file mode 100644 index 0000000000000..ca32a8a1d53a3 --- /dev/null +++ b/tests/baselines/reference/protectedClassPropertyAccessibleWithinClass(target=es5).types @@ -0,0 +1,224 @@ +//// [tests/cases/conformance/classes/members/accessibility/protectedClassPropertyAccessibleWithinClass.ts] //// + +=== protectedClassPropertyAccessibleWithinClass.ts === +// no errors + +class C { +>C : C +> : ^ + + protected x: string; +>x : string +> : ^^^^^^ + + protected get y() { return this.x; } +>y : string +> : ^^^^^^ +>this.x : string +> : ^^^^^^ +>this : this +> : ^^^^ +>x : string +> : ^^^^^^ + + protected set y(x) { this.y = this.x; } +>y : string +> : ^^^^^^ +>x : string +> : ^^^^^^ +>this.y = this.x : string +> : ^^^^^^ +>this.y : string +> : ^^^^^^ +>this : this +> : ^^^^ +>y : string +> : ^^^^^^ +>this.x : string +> : ^^^^^^ +>this : this +> : ^^^^ +>x : string +> : ^^^^^^ + + protected foo() { return this.foo; } +>foo : () => any +> : ^^^^^^^^^ +>this.foo : () => any +> : ^^^^^^^^^ +>this : this +> : ^^^^ +>foo : () => any +> : ^^^^^^^^^ + + protected static x: string; +>x : string +> : ^^^^^^ + + protected static get y() { return this.x; } +>y : string +> : ^^^^^^ +>this.x : string +> : ^^^^^^ +>this : typeof C +> : ^^^^^^^^ +>x : string +> : ^^^^^^ + + protected static set y(x) { this.y = this.x; } +>y : string +> : ^^^^^^ +>x : string +> : ^^^^^^ +>this.y = this.x : string +> : ^^^^^^ +>this.y : string +> : ^^^^^^ +>this : typeof C +> : ^^^^^^^^ +>y : string +> : ^^^^^^ +>this.x : string +> : ^^^^^^ +>this : typeof C +> : ^^^^^^^^ +>x : string +> : ^^^^^^ + + protected static foo() { return this.foo; } +>foo : () => typeof C.foo +> : ^^^^^^^^^^^^^^^^^^ +>this.foo : () => typeof C.foo +> : ^^^^^^^^^^^^^^^^^^ +>this : typeof C +> : ^^^^^^^^ +>foo : () => typeof C.foo +> : ^^^^^^^^^^^^^^^^^^ + + protected static bar() { this.foo(); } +>bar : () => void +> : ^^^^^^^^^^ +>this.foo() : () => typeof C.foo +> : ^^^^^^^^^^^^^^^^^^ +>this.foo : () => typeof C.foo +> : ^^^^^^^^^^^^^^^^^^ +>this : typeof C +> : ^^^^^^^^ +>foo : () => typeof C.foo +> : ^^^^^^^^^^^^^^^^^^ +} + +// added level of function nesting +class C2 { +>C2 : C2 +> : ^^ + + protected x: string; +>x : string +> : ^^^^^^ + + protected get y() { () => this.x; return null; } +>y : any +>() => this.x : () => string +> : ^^^^^^^^^^^^ +>this.x : string +> : ^^^^^^ +>this : this +> : ^^^^ +>x : string +> : ^^^^^^ + + protected set y(x) { () => { this.y = this.x; } } +>y : any +>x : any +>() => { this.y = this.x; } : () => void +> : ^^^^^^^^^^ +>this.y = this.x : string +> : ^^^^^^ +>this.y : any +>this : this +> : ^^^^ +>y : any +> : ^^^ +>this.x : string +> : ^^^^^^ +>this : this +> : ^^^^ +>x : string +> : ^^^^^^ + + protected foo() { () => this.foo; } +>foo : () => void +> : ^^^^^^^^^^ +>() => this.foo : () => () => void +> : ^^^^^^^^^^^^^^^^ +>this.foo : () => void +> : ^^^^^^^^^^ +>this : this +> : ^^^^ +>foo : () => void +> : ^^^^^^^^^^ + + protected static x: string; +>x : string +> : ^^^^^^ + + protected static get y() { () => this.x; return null; } +>y : any +>() => this.x : () => string +> : ^^^^^^^^^^^^ +>this.x : string +> : ^^^^^^ +>this : typeof C2 +> : ^^^^^^^^^ +>x : string +> : ^^^^^^ + + protected static set y(x) { +>y : any +>x : any + + () => { this.y = this.x; } +>() => { this.y = this.x; } : () => void +> : ^^^^^^^^^^ +>this.y = this.x : string +> : ^^^^^^ +>this.y : any +>this : typeof C2 +> : ^^^^^^^^^ +>y : any +> : ^^^ +>this.x : string +> : ^^^^^^ +>this : typeof C2 +> : ^^^^^^^^^ +>x : string +> : ^^^^^^ + } + protected static foo() { () => this.foo; } +>foo : () => void +> : ^^^^^^^^^^ +>() => this.foo : () => () => void +> : ^^^^^^^^^^^^^^^^ +>this.foo : () => void +> : ^^^^^^^^^^ +>this : typeof C2 +> : ^^^^^^^^^ +>foo : () => void +> : ^^^^^^^^^^ + + protected static bar() { () => this.foo(); } +>bar : () => void +> : ^^^^^^^^^^ +>() => this.foo() : () => void +> : ^^^^^^^^^^ +>this.foo() : void +> : ^^^^ +>this.foo : () => void +> : ^^^^^^^^^^ +>this : typeof C2 +> : ^^^^^^^^^ +>foo : () => void +> : ^^^^^^^^^^ +} + diff --git a/tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedClass(target=es2015).js b/tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedClass(target=es2015).js new file mode 100644 index 0000000000000..f74705e41f7b2 --- /dev/null +++ b/tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedClass(target=es2015).js @@ -0,0 +1,72 @@ +//// [tests/cases/conformance/classes/members/accessibility/protectedClassPropertyAccessibleWithinNestedClass.ts] //// + +//// [protectedClassPropertyAccessibleWithinNestedClass.ts] +// no errors + +class C { + protected x: string; + protected get y() { return this.x; } + protected set y(x) { this.y = this.x; } + protected foo() { return this.foo; } + + protected static x: string; + protected static get y() { return this.x; } + protected static set y(x) { this.y = this.x; } + protected static foo() { return this.foo; } + protected static bar() { this.foo(); } + + protected bar() { + class C2 { + protected foo() { + let x: C; + var x1 = x.foo; + var x2 = x.bar; + var x3 = x.x; + var x4 = x.y; + + var sx1 = C.x; + var sx2 = C.y; + var sx3 = C.bar; + var sx4 = C.foo; + + let y = new C(); + var y1 = y.foo; + var y2 = y.bar; + var y3 = y.x; + var y4 = y.y; + } + } + } +} + +//// [protectedClassPropertyAccessibleWithinNestedClass.js] +// no errors +class C { + get y() { return this.x; } + set y(x) { this.y = this.x; } + foo() { return this.foo; } + static get y() { return this.x; } + static set y(x) { this.y = this.x; } + static foo() { return this.foo; } + static bar() { this.foo(); } + bar() { + class C2 { + foo() { + let x; + var x1 = x.foo; + var x2 = x.bar; + var x3 = x.x; + var x4 = x.y; + var sx1 = C.x; + var sx2 = C.y; + var sx3 = C.bar; + var sx4 = C.foo; + let y = new C(); + var y1 = y.foo; + var y2 = y.bar; + var y3 = y.x; + var y4 = y.y; + } + } + } +} diff --git a/tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedClass.symbols b/tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedClass(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedClass.symbols rename to tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedClass(target=es2015).symbols diff --git a/tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedClass.types b/tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedClass(target=es2015).types similarity index 100% rename from tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedClass.types rename to tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedClass(target=es2015).types diff --git a/tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedClass.js b/tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedClass(target=es5).js similarity index 100% rename from tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedClass.js rename to tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedClass(target=es5).js diff --git a/tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedClass(target=es5).symbols b/tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedClass(target=es5).symbols new file mode 100644 index 0000000000000..c9398156c5ec9 --- /dev/null +++ b/tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedClass(target=es5).symbols @@ -0,0 +1,156 @@ +//// [tests/cases/conformance/classes/members/accessibility/protectedClassPropertyAccessibleWithinNestedClass.ts] //// + +=== protectedClassPropertyAccessibleWithinNestedClass.ts === +// no errors + +class C { +>C : Symbol(C, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 0, 0)) + + protected x: string; +>x : Symbol(C.x, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 2, 9)) + + protected get y() { return this.x; } +>y : Symbol(C.y, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 3, 24), Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 4, 40)) +>this.x : Symbol(C.x, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 2, 9)) +>this : Symbol(C, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 0, 0)) +>x : Symbol(C.x, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 2, 9)) + + protected set y(x) { this.y = this.x; } +>y : Symbol(C.y, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 3, 24), Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 4, 40)) +>x : Symbol(x, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 5, 20)) +>this.y : Symbol(C.y, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 3, 24), Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 4, 40)) +>this : Symbol(C, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 0, 0)) +>y : Symbol(C.y, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 3, 24), Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 4, 40)) +>this.x : Symbol(C.x, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 2, 9)) +>this : Symbol(C, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 0, 0)) +>x : Symbol(C.x, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 2, 9)) + + protected foo() { return this.foo; } +>foo : Symbol(C.foo, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 5, 43)) +>this.foo : Symbol(C.foo, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 5, 43)) +>this : Symbol(C, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 0, 0)) +>foo : Symbol(C.foo, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 5, 43)) + + protected static x: string; +>x : Symbol(C.x, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 6, 40)) + + protected static get y() { return this.x; } +>y : Symbol(C.y, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 8, 31), Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 9, 47)) +>this.x : Symbol(C.x, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 6, 40)) +>this : Symbol(C, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 0, 0)) +>x : Symbol(C.x, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 6, 40)) + + protected static set y(x) { this.y = this.x; } +>y : Symbol(C.y, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 8, 31), Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 9, 47)) +>x : Symbol(x, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 10, 27)) +>this.y : Symbol(C.y, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 8, 31), Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 9, 47)) +>this : Symbol(C, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 0, 0)) +>y : Symbol(C.y, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 8, 31), Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 9, 47)) +>this.x : Symbol(C.x, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 6, 40)) +>this : Symbol(C, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 0, 0)) +>x : Symbol(C.x, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 6, 40)) + + protected static foo() { return this.foo; } +>foo : Symbol(C.foo, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 10, 50)) +>this.foo : Symbol(C.foo, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 10, 50)) +>this : Symbol(C, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 0, 0)) +>foo : Symbol(C.foo, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 10, 50)) + + protected static bar() { this.foo(); } +>bar : Symbol(C.bar, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 11, 47)) +>this.foo : Symbol(C.foo, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 10, 50)) +>this : Symbol(C, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 0, 0)) +>foo : Symbol(C.foo, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 10, 50)) + + protected bar() { +>bar : Symbol(C.bar, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 12, 42)) + + class C2 { +>C2 : Symbol(C2, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 14, 21)) + + protected foo() { +>foo : Symbol(C2.foo, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 15, 18)) + + let x: C; +>x : Symbol(x, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 17, 19)) +>C : Symbol(C, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 0, 0)) + + var x1 = x.foo; +>x1 : Symbol(x1, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 18, 19)) +>x.foo : Symbol(C.foo, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 5, 43)) +>x : Symbol(x, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 17, 19)) +>foo : Symbol(C.foo, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 5, 43)) + + var x2 = x.bar; +>x2 : Symbol(x2, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 19, 19)) +>x.bar : Symbol(C.bar, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 12, 42)) +>x : Symbol(x, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 17, 19)) +>bar : Symbol(C.bar, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 12, 42)) + + var x3 = x.x; +>x3 : Symbol(x3, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 20, 19)) +>x.x : Symbol(C.x, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 2, 9)) +>x : Symbol(x, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 17, 19)) +>x : Symbol(C.x, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 2, 9)) + + var x4 = x.y; +>x4 : Symbol(x4, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 21, 19)) +>x.y : Symbol(C.y, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 3, 24), Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 4, 40)) +>x : Symbol(x, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 17, 19)) +>y : Symbol(C.y, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 3, 24), Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 4, 40)) + + var sx1 = C.x; +>sx1 : Symbol(sx1, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 23, 19)) +>C.x : Symbol(C.x, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 6, 40)) +>C : Symbol(C, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 0, 0)) +>x : Symbol(C.x, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 6, 40)) + + var sx2 = C.y; +>sx2 : Symbol(sx2, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 24, 19)) +>C.y : Symbol(C.y, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 8, 31), Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 9, 47)) +>C : Symbol(C, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 0, 0)) +>y : Symbol(C.y, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 8, 31), Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 9, 47)) + + var sx3 = C.bar; +>sx3 : Symbol(sx3, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 25, 19)) +>C.bar : Symbol(C.bar, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 11, 47)) +>C : Symbol(C, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 0, 0)) +>bar : Symbol(C.bar, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 11, 47)) + + var sx4 = C.foo; +>sx4 : Symbol(sx4, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 26, 19)) +>C.foo : Symbol(C.foo, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 10, 50)) +>C : Symbol(C, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 0, 0)) +>foo : Symbol(C.foo, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 10, 50)) + + let y = new C(); +>y : Symbol(y, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 28, 19)) +>C : Symbol(C, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 0, 0)) + + var y1 = y.foo; +>y1 : Symbol(y1, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 29, 19)) +>y.foo : Symbol(C.foo, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 5, 43)) +>y : Symbol(y, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 28, 19)) +>foo : Symbol(C.foo, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 5, 43)) + + var y2 = y.bar; +>y2 : Symbol(y2, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 30, 19)) +>y.bar : Symbol(C.bar, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 12, 42)) +>y : Symbol(y, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 28, 19)) +>bar : Symbol(C.bar, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 12, 42)) + + var y3 = y.x; +>y3 : Symbol(y3, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 31, 19)) +>y.x : Symbol(C.x, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 2, 9)) +>y : Symbol(y, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 28, 19)) +>x : Symbol(C.x, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 2, 9)) + + var y4 = y.y; +>y4 : Symbol(y4, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 32, 19)) +>y.y : Symbol(C.y, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 3, 24), Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 4, 40)) +>y : Symbol(y, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 28, 19)) +>y : Symbol(C.y, Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 3, 24), Decl(protectedClassPropertyAccessibleWithinNestedClass.ts, 4, 40)) + } + } + } +} diff --git a/tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedClass(target=es5).types b/tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedClass(target=es5).types new file mode 100644 index 0000000000000..30690e7531e60 --- /dev/null +++ b/tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedClass(target=es5).types @@ -0,0 +1,256 @@ +//// [tests/cases/conformance/classes/members/accessibility/protectedClassPropertyAccessibleWithinNestedClass.ts] //// + +=== protectedClassPropertyAccessibleWithinNestedClass.ts === +// no errors + +class C { +>C : C +> : ^ + + protected x: string; +>x : string +> : ^^^^^^ + + protected get y() { return this.x; } +>y : string +> : ^^^^^^ +>this.x : string +> : ^^^^^^ +>this : this +> : ^^^^ +>x : string +> : ^^^^^^ + + protected set y(x) { this.y = this.x; } +>y : string +> : ^^^^^^ +>x : string +> : ^^^^^^ +>this.y = this.x : string +> : ^^^^^^ +>this.y : string +> : ^^^^^^ +>this : this +> : ^^^^ +>y : string +> : ^^^^^^ +>this.x : string +> : ^^^^^^ +>this : this +> : ^^^^ +>x : string +> : ^^^^^^ + + protected foo() { return this.foo; } +>foo : () => any +> : ^^^^^^^^^ +>this.foo : () => any +> : ^^^^^^^^^ +>this : this +> : ^^^^ +>foo : () => any +> : ^^^^^^^^^ + + protected static x: string; +>x : string +> : ^^^^^^ + + protected static get y() { return this.x; } +>y : string +> : ^^^^^^ +>this.x : string +> : ^^^^^^ +>this : typeof C +> : ^^^^^^^^ +>x : string +> : ^^^^^^ + + protected static set y(x) { this.y = this.x; } +>y : string +> : ^^^^^^ +>x : string +> : ^^^^^^ +>this.y = this.x : string +> : ^^^^^^ +>this.y : string +> : ^^^^^^ +>this : typeof C +> : ^^^^^^^^ +>y : string +> : ^^^^^^ +>this.x : string +> : ^^^^^^ +>this : typeof C +> : ^^^^^^^^ +>x : string +> : ^^^^^^ + + protected static foo() { return this.foo; } +>foo : () => typeof C.foo +> : ^^^^^^^^^^^^^^^^^^ +>this.foo : () => typeof C.foo +> : ^^^^^^^^^^^^^^^^^^ +>this : typeof C +> : ^^^^^^^^ +>foo : () => typeof C.foo +> : ^^^^^^^^^^^^^^^^^^ + + protected static bar() { this.foo(); } +>bar : () => void +> : ^^^^^^^^^^ +>this.foo() : () => typeof C.foo +> : ^^^^^^^^^^^^^^^^^^ +>this.foo : () => typeof C.foo +> : ^^^^^^^^^^^^^^^^^^ +>this : typeof C +> : ^^^^^^^^ +>foo : () => typeof C.foo +> : ^^^^^^^^^^^^^^^^^^ + + protected bar() { +>bar : () => void +> : ^^^^^^^^^^ + + class C2 { +>C2 : C2 +> : ^^ + + protected foo() { +>foo : () => void +> : ^^^^^^^^^^ + + let x: C; +>x : C +> : ^ + + var x1 = x.foo; +>x1 : () => any +> : ^^^^^^^^^ +>x.foo : () => any +> : ^^^^^^^^^ +>x : C +> : ^ +>foo : () => any +> : ^^^^^^^^^ + + var x2 = x.bar; +>x2 : () => void +> : ^^^^^^^^^^ +>x.bar : () => void +> : ^^^^^^^^^^ +>x : C +> : ^ +>bar : () => void +> : ^^^^^^^^^^ + + var x3 = x.x; +>x3 : string +> : ^^^^^^ +>x.x : string +> : ^^^^^^ +>x : C +> : ^ +>x : string +> : ^^^^^^ + + var x4 = x.y; +>x4 : string +> : ^^^^^^ +>x.y : string +> : ^^^^^^ +>x : C +> : ^ +>y : string +> : ^^^^^^ + + var sx1 = C.x; +>sx1 : string +> : ^^^^^^ +>C.x : string +> : ^^^^^^ +>C : typeof C +> : ^^^^^^^^ +>x : string +> : ^^^^^^ + + var sx2 = C.y; +>sx2 : string +> : ^^^^^^ +>C.y : string +> : ^^^^^^ +>C : typeof C +> : ^^^^^^^^ +>y : string +> : ^^^^^^ + + var sx3 = C.bar; +>sx3 : () => void +> : ^^^^^^^^^^ +>C.bar : () => void +> : ^^^^^^^^^^ +>C : typeof C +> : ^^^^^^^^ +>bar : () => void +> : ^^^^^^^^^^ + + var sx4 = C.foo; +>sx4 : () => typeof C.foo +> : ^^^^^^^^^^^^^^^^^^ +>C.foo : () => typeof C.foo +> : ^^^^^^^^^^^^^^^^^^ +>C : typeof C +> : ^^^^^^^^ +>foo : () => typeof C.foo +> : ^^^^^^^^^^^^^^^^^^ + + let y = new C(); +>y : C +> : ^ +>new C() : C +> : ^ +>C : typeof C +> : ^^^^^^^^ + + var y1 = y.foo; +>y1 : () => any +> : ^^^^^^^^^ +>y.foo : () => any +> : ^^^^^^^^^ +>y : C +> : ^ +>foo : () => any +> : ^^^^^^^^^ + + var y2 = y.bar; +>y2 : () => void +> : ^^^^^^^^^^ +>y.bar : () => void +> : ^^^^^^^^^^ +>y : C +> : ^ +>bar : () => void +> : ^^^^^^^^^^ + + var y3 = y.x; +>y3 : string +> : ^^^^^^ +>y.x : string +> : ^^^^^^ +>y : C +> : ^ +>x : string +> : ^^^^^^ + + var y4 = y.y; +>y4 : string +> : ^^^^^^ +>y.y : string +> : ^^^^^^ +>y : C +> : ^ +>y : string +> : ^^^^^^ + } + } + } +} diff --git a/tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedSubclass.errors.txt b/tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedSubclass(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedSubclass.errors.txt rename to tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedSubclass(target=es2015).errors.txt diff --git a/tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedSubclass(target=es2015).js b/tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedSubclass(target=es2015).js new file mode 100644 index 0000000000000..7b86e693bd8d3 --- /dev/null +++ b/tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedSubclass(target=es2015).js @@ -0,0 +1,71 @@ +//// [tests/cases/conformance/classes/members/accessibility/protectedClassPropertyAccessibleWithinNestedSubclass.ts] //// + +//// [protectedClassPropertyAccessibleWithinNestedSubclass.ts] +class B { + protected x: string; + protected static x: string; +} + +class C extends B { + protected get y() { return this.x; } + protected set y(x) { this.y = this.x; } + protected foo() { return this.x; } + + protected static get y() { return this.x; } + protected static set y(x) { this.y = this.x; } + protected static foo() { return this.x; } + protected static bar() { this.foo(); } + + protected bar() { + class D { + protected foo() { + var c = new C(); + var c1 = c.y; + var c2 = c.x; + var c3 = c.foo; + var c4 = c.bar; + var c5 = c.z; // error + + var sc1 = C.x; + var sc2 = C.y; + var sc3 = C.foo; + var sc4 = C.bar; + } + } + } +} + +class E extends C { + protected z: string; +} + +//// [protectedClassPropertyAccessibleWithinNestedSubclass.js] +class B { +} +class C extends B { + get y() { return this.x; } + set y(x) { this.y = this.x; } + foo() { return this.x; } + static get y() { return this.x; } + static set y(x) { this.y = this.x; } + static foo() { return this.x; } + static bar() { this.foo(); } + bar() { + class D { + foo() { + var c = new C(); + var c1 = c.y; + var c2 = c.x; + var c3 = c.foo; + var c4 = c.bar; + var c5 = c.z; // error + var sc1 = C.x; + var sc2 = C.y; + var sc3 = C.foo; + var sc4 = C.bar; + } + } + } +} +class E extends C { +} diff --git a/tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedSubclass.symbols b/tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedSubclass(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedSubclass.symbols rename to tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedSubclass(target=es2015).symbols diff --git a/tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedSubclass.types b/tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedSubclass(target=es2015).types similarity index 100% rename from tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedSubclass.types rename to tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedSubclass(target=es2015).types diff --git a/tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedSubclass(target=es5).errors.txt b/tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedSubclass(target=es5).errors.txt new file mode 100644 index 0000000000000..ad66b5be194c8 --- /dev/null +++ b/tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedSubclass(target=es5).errors.txt @@ -0,0 +1,43 @@ +protectedClassPropertyAccessibleWithinNestedSubclass.ts(24,28): error TS2339: Property 'z' does not exist on type 'C'. + + +==== protectedClassPropertyAccessibleWithinNestedSubclass.ts (1 errors) ==== + class B { + protected x: string; + protected static x: string; + } + + class C extends B { + protected get y() { return this.x; } + protected set y(x) { this.y = this.x; } + protected foo() { return this.x; } + + protected static get y() { return this.x; } + protected static set y(x) { this.y = this.x; } + protected static foo() { return this.x; } + protected static bar() { this.foo(); } + + protected bar() { + class D { + protected foo() { + var c = new C(); + var c1 = c.y; + var c2 = c.x; + var c3 = c.foo; + var c4 = c.bar; + var c5 = c.z; // error + ~ +!!! error TS2339: Property 'z' does not exist on type 'C'. + + var sc1 = C.x; + var sc2 = C.y; + var sc3 = C.foo; + var sc4 = C.bar; + } + } + } + } + + class E extends C { + protected z: string; + } \ No newline at end of file diff --git a/tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedSubclass.js b/tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedSubclass(target=es5).js similarity index 100% rename from tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedSubclass.js rename to tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedSubclass(target=es5).js diff --git a/tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedSubclass(target=es5).symbols b/tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedSubclass(target=es5).symbols new file mode 100644 index 0000000000000..00d799a556a5f --- /dev/null +++ b/tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedSubclass(target=es5).symbols @@ -0,0 +1,143 @@ +//// [tests/cases/conformance/classes/members/accessibility/protectedClassPropertyAccessibleWithinNestedSubclass.ts] //// + +=== protectedClassPropertyAccessibleWithinNestedSubclass.ts === +class B { +>B : Symbol(B, Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 0, 0)) + + protected x: string; +>x : Symbol(B.x, Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 0, 9)) + + protected static x: string; +>x : Symbol(B.x, Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 1, 24)) +} + +class C extends B { +>C : Symbol(C, Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 3, 1)) +>B : Symbol(B, Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 0, 0)) + + protected get y() { return this.x; } +>y : Symbol(C.y, Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 5, 19), Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 6, 40)) +>this.x : Symbol(B.x, Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 0, 9)) +>this : Symbol(C, Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 3, 1)) +>x : Symbol(B.x, Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 0, 9)) + + protected set y(x) { this.y = this.x; } +>y : Symbol(C.y, Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 5, 19), Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 6, 40)) +>x : Symbol(x, Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 7, 20)) +>this.y : Symbol(C.y, Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 5, 19), Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 6, 40)) +>this : Symbol(C, Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 3, 1)) +>y : Symbol(C.y, Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 5, 19), Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 6, 40)) +>this.x : Symbol(B.x, Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 0, 9)) +>this : Symbol(C, Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 3, 1)) +>x : Symbol(B.x, Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 0, 9)) + + protected foo() { return this.x; } +>foo : Symbol(C.foo, Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 7, 43)) +>this.x : Symbol(B.x, Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 0, 9)) +>this : Symbol(C, Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 3, 1)) +>x : Symbol(B.x, Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 0, 9)) + + protected static get y() { return this.x; } +>y : Symbol(C.y, Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 8, 38), Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 10, 47)) +>this.x : Symbol(B.x, Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 1, 24)) +>this : Symbol(C, Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 3, 1)) +>x : Symbol(B.x, Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 1, 24)) + + protected static set y(x) { this.y = this.x; } +>y : Symbol(C.y, Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 8, 38), Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 10, 47)) +>x : Symbol(x, Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 11, 27)) +>this.y : Symbol(C.y, Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 8, 38), Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 10, 47)) +>this : Symbol(C, Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 3, 1)) +>y : Symbol(C.y, Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 8, 38), Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 10, 47)) +>this.x : Symbol(B.x, Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 1, 24)) +>this : Symbol(C, Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 3, 1)) +>x : Symbol(B.x, Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 1, 24)) + + protected static foo() { return this.x; } +>foo : Symbol(C.foo, Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 11, 50)) +>this.x : Symbol(B.x, Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 1, 24)) +>this : Symbol(C, Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 3, 1)) +>x : Symbol(B.x, Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 1, 24)) + + protected static bar() { this.foo(); } +>bar : Symbol(C.bar, Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 12, 45)) +>this.foo : Symbol(C.foo, Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 11, 50)) +>this : Symbol(C, Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 3, 1)) +>foo : Symbol(C.foo, Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 11, 50)) + + protected bar() { +>bar : Symbol(C.bar, Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 13, 42)) + + class D { +>D : Symbol(D, Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 15, 21)) + + protected foo() { +>foo : Symbol(D.foo, Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 16, 17)) + + var c = new C(); +>c : Symbol(c, Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 18, 19)) +>C : Symbol(C, Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 3, 1)) + + var c1 = c.y; +>c1 : Symbol(c1, Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 19, 19)) +>c.y : Symbol(C.y, Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 5, 19), Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 6, 40)) +>c : Symbol(c, Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 18, 19)) +>y : Symbol(C.y, Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 5, 19), Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 6, 40)) + + var c2 = c.x; +>c2 : Symbol(c2, Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 20, 19)) +>c.x : Symbol(B.x, Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 0, 9)) +>c : Symbol(c, Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 18, 19)) +>x : Symbol(B.x, Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 0, 9)) + + var c3 = c.foo; +>c3 : Symbol(c3, Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 21, 19)) +>c.foo : Symbol(C.foo, Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 7, 43)) +>c : Symbol(c, Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 18, 19)) +>foo : Symbol(C.foo, Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 7, 43)) + + var c4 = c.bar; +>c4 : Symbol(c4, Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 22, 19)) +>c.bar : Symbol(C.bar, Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 13, 42)) +>c : Symbol(c, Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 18, 19)) +>bar : Symbol(C.bar, Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 13, 42)) + + var c5 = c.z; // error +>c5 : Symbol(c5, Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 23, 19)) +>c : Symbol(c, Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 18, 19)) + + var sc1 = C.x; +>sc1 : Symbol(sc1, Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 25, 19)) +>C.x : Symbol(B.x, Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 1, 24)) +>C : Symbol(C, Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 3, 1)) +>x : Symbol(B.x, Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 1, 24)) + + var sc2 = C.y; +>sc2 : Symbol(sc2, Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 26, 19)) +>C.y : Symbol(C.y, Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 8, 38), Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 10, 47)) +>C : Symbol(C, Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 3, 1)) +>y : Symbol(C.y, Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 8, 38), Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 10, 47)) + + var sc3 = C.foo; +>sc3 : Symbol(sc3, Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 27, 19)) +>C.foo : Symbol(C.foo, Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 11, 50)) +>C : Symbol(C, Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 3, 1)) +>foo : Symbol(C.foo, Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 11, 50)) + + var sc4 = C.bar; +>sc4 : Symbol(sc4, Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 28, 19)) +>C.bar : Symbol(C.bar, Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 12, 45)) +>C : Symbol(C, Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 3, 1)) +>bar : Symbol(C.bar, Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 12, 45)) + } + } + } +} + +class E extends C { +>E : Symbol(E, Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 32, 1)) +>C : Symbol(C, Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 3, 1)) + + protected z: string; +>z : Symbol(E.z, Decl(protectedClassPropertyAccessibleWithinNestedSubclass.ts, 34, 19)) +} diff --git a/tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedSubclass(target=es5).types b/tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedSubclass(target=es5).types new file mode 100644 index 0000000000000..eee9ef3974cbd --- /dev/null +++ b/tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedSubclass(target=es5).types @@ -0,0 +1,238 @@ +//// [tests/cases/conformance/classes/members/accessibility/protectedClassPropertyAccessibleWithinNestedSubclass.ts] //// + +=== protectedClassPropertyAccessibleWithinNestedSubclass.ts === +class B { +>B : B +> : ^ + + protected x: string; +>x : string +> : ^^^^^^ + + protected static x: string; +>x : string +> : ^^^^^^ +} + +class C extends B { +>C : C +> : ^ +>B : B +> : ^ + + protected get y() { return this.x; } +>y : string +> : ^^^^^^ +>this.x : string +> : ^^^^^^ +>this : this +> : ^^^^ +>x : string +> : ^^^^^^ + + protected set y(x) { this.y = this.x; } +>y : string +> : ^^^^^^ +>x : string +> : ^^^^^^ +>this.y = this.x : string +> : ^^^^^^ +>this.y : string +> : ^^^^^^ +>this : this +> : ^^^^ +>y : string +> : ^^^^^^ +>this.x : string +> : ^^^^^^ +>this : this +> : ^^^^ +>x : string +> : ^^^^^^ + + protected foo() { return this.x; } +>foo : () => string +> : ^^^^^^^^^^^^ +>this.x : string +> : ^^^^^^ +>this : this +> : ^^^^ +>x : string +> : ^^^^^^ + + protected static get y() { return this.x; } +>y : string +> : ^^^^^^ +>this.x : string +> : ^^^^^^ +>this : typeof C +> : ^^^^^^^^ +>x : string +> : ^^^^^^ + + protected static set y(x) { this.y = this.x; } +>y : string +> : ^^^^^^ +>x : string +> : ^^^^^^ +>this.y = this.x : string +> : ^^^^^^ +>this.y : string +> : ^^^^^^ +>this : typeof C +> : ^^^^^^^^ +>y : string +> : ^^^^^^ +>this.x : string +> : ^^^^^^ +>this : typeof C +> : ^^^^^^^^ +>x : string +> : ^^^^^^ + + protected static foo() { return this.x; } +>foo : () => string +> : ^^^^^^^^^^^^ +>this.x : string +> : ^^^^^^ +>this : typeof C +> : ^^^^^^^^ +>x : string +> : ^^^^^^ + + protected static bar() { this.foo(); } +>bar : () => void +> : ^^^^^^^^^^ +>this.foo() : string +> : ^^^^^^ +>this.foo : () => string +> : ^^^^^^^^^^^^ +>this : typeof C +> : ^^^^^^^^ +>foo : () => string +> : ^^^^^^^^^^^^ + + protected bar() { +>bar : () => void +> : ^^^^^^^^^^ + + class D { +>D : D +> : ^ + + protected foo() { +>foo : () => void +> : ^^^^^^^^^^ + + var c = new C(); +>c : C +> : ^ +>new C() : C +> : ^ +>C : typeof C +> : ^^^^^^^^ + + var c1 = c.y; +>c1 : string +> : ^^^^^^ +>c.y : string +> : ^^^^^^ +>c : C +> : ^ +>y : string +> : ^^^^^^ + + var c2 = c.x; +>c2 : string +> : ^^^^^^ +>c.x : string +> : ^^^^^^ +>c : C +> : ^ +>x : string +> : ^^^^^^ + + var c3 = c.foo; +>c3 : () => string +> : ^^^^^^^^^^^^ +>c.foo : () => string +> : ^^^^^^^^^^^^ +>c : C +> : ^ +>foo : () => string +> : ^^^^^^^^^^^^ + + var c4 = c.bar; +>c4 : () => void +> : ^^^^^^^^^^ +>c.bar : () => void +> : ^^^^^^^^^^ +>c : C +> : ^ +>bar : () => void +> : ^^^^^^^^^^ + + var c5 = c.z; // error +>c5 : any +> : ^^^ +>c.z : any +> : ^^^ +>c : C +> : ^ +>z : any +> : ^^^ + + var sc1 = C.x; +>sc1 : string +> : ^^^^^^ +>C.x : string +> : ^^^^^^ +>C : typeof C +> : ^^^^^^^^ +>x : string +> : ^^^^^^ + + var sc2 = C.y; +>sc2 : string +> : ^^^^^^ +>C.y : string +> : ^^^^^^ +>C : typeof C +> : ^^^^^^^^ +>y : string +> : ^^^^^^ + + var sc3 = C.foo; +>sc3 : () => string +> : ^^^^^^^^^^^^ +>C.foo : () => string +> : ^^^^^^^^^^^^ +>C : typeof C +> : ^^^^^^^^ +>foo : () => string +> : ^^^^^^^^^^^^ + + var sc4 = C.bar; +>sc4 : () => void +> : ^^^^^^^^^^ +>C.bar : () => void +> : ^^^^^^^^^^ +>C : typeof C +> : ^^^^^^^^ +>bar : () => void +> : ^^^^^^^^^^ + } + } + } +} + +class E extends C { +>E : E +> : ^ +>C : C +> : ^ + + protected z: string; +>z : string +> : ^^^^^^ +} diff --git a/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass(target=es2015).js b/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass(target=es2015).js new file mode 100644 index 0000000000000..25f607cc2173a --- /dev/null +++ b/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass(target=es2015).js @@ -0,0 +1,37 @@ +//// [tests/cases/conformance/classes/members/accessibility/protectedClassPropertyAccessibleWithinSubclass.ts] //// + +//// [protectedClassPropertyAccessibleWithinSubclass.ts] +// no errors + +class B { + protected x: string; + protected static x: string; +} + +class C extends B { + protected get y() { return this.x; } + protected set y(x) { this.y = this.x; } + protected foo() { return this.x; } + protected bar() { return this.foo(); } + + protected static get y() { return this.x; } + protected static set y(x) { this.y = this.x; } + protected static foo() { return this.x; } + protected static bar() { this.foo(); } +} + + +//// [protectedClassPropertyAccessibleWithinSubclass.js] +// no errors +class B { +} +class C extends B { + get y() { return this.x; } + set y(x) { this.y = this.x; } + foo() { return this.x; } + bar() { return this.foo(); } + static get y() { return this.x; } + static set y(x) { this.y = this.x; } + static foo() { return this.x; } + static bar() { this.foo(); } +} diff --git a/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass.symbols b/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass.symbols rename to tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass(target=es2015).symbols diff --git a/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass.types b/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass(target=es2015).types similarity index 100% rename from tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass.types rename to tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass(target=es2015).types diff --git a/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass.js b/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass(target=es5).js similarity index 100% rename from tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass.js rename to tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass(target=es5).js diff --git a/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass(target=es5).symbols b/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass(target=es5).symbols new file mode 100644 index 0000000000000..eef5ba494de44 --- /dev/null +++ b/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass(target=es5).symbols @@ -0,0 +1,76 @@ +//// [tests/cases/conformance/classes/members/accessibility/protectedClassPropertyAccessibleWithinSubclass.ts] //// + +=== protectedClassPropertyAccessibleWithinSubclass.ts === +// no errors + +class B { +>B : Symbol(B, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 0, 0)) + + protected x: string; +>x : Symbol(B.x, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 2, 9)) + + protected static x: string; +>x : Symbol(B.x, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 3, 24)) +} + +class C extends B { +>C : Symbol(C, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 5, 1)) +>B : Symbol(B, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 0, 0)) + + protected get y() { return this.x; } +>y : Symbol(C.y, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 7, 19), Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 8, 40)) +>this.x : Symbol(B.x, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 2, 9)) +>this : Symbol(C, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 5, 1)) +>x : Symbol(B.x, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 2, 9)) + + protected set y(x) { this.y = this.x; } +>y : Symbol(C.y, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 7, 19), Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 8, 40)) +>x : Symbol(x, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 9, 20)) +>this.y : Symbol(C.y, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 7, 19), Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 8, 40)) +>this : Symbol(C, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 5, 1)) +>y : Symbol(C.y, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 7, 19), Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 8, 40)) +>this.x : Symbol(B.x, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 2, 9)) +>this : Symbol(C, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 5, 1)) +>x : Symbol(B.x, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 2, 9)) + + protected foo() { return this.x; } +>foo : Symbol(C.foo, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 9, 43)) +>this.x : Symbol(B.x, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 2, 9)) +>this : Symbol(C, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 5, 1)) +>x : Symbol(B.x, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 2, 9)) + + protected bar() { return this.foo(); } +>bar : Symbol(C.bar, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 10, 38)) +>this.foo : Symbol(C.foo, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 9, 43)) +>this : Symbol(C, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 5, 1)) +>foo : Symbol(C.foo, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 9, 43)) + + protected static get y() { return this.x; } +>y : Symbol(C.y, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 11, 42), Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 13, 47)) +>this.x : Symbol(B.x, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 3, 24)) +>this : Symbol(C, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 5, 1)) +>x : Symbol(B.x, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 3, 24)) + + protected static set y(x) { this.y = this.x; } +>y : Symbol(C.y, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 11, 42), Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 13, 47)) +>x : Symbol(x, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 14, 27)) +>this.y : Symbol(C.y, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 11, 42), Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 13, 47)) +>this : Symbol(C, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 5, 1)) +>y : Symbol(C.y, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 11, 42), Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 13, 47)) +>this.x : Symbol(B.x, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 3, 24)) +>this : Symbol(C, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 5, 1)) +>x : Symbol(B.x, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 3, 24)) + + protected static foo() { return this.x; } +>foo : Symbol(C.foo, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 14, 50)) +>this.x : Symbol(B.x, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 3, 24)) +>this : Symbol(C, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 5, 1)) +>x : Symbol(B.x, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 3, 24)) + + protected static bar() { this.foo(); } +>bar : Symbol(C.bar, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 15, 45)) +>this.foo : Symbol(C.foo, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 14, 50)) +>this : Symbol(C, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 5, 1)) +>foo : Symbol(C.foo, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 14, 50)) +} + diff --git a/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass(target=es5).types b/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass(target=es5).types new file mode 100644 index 0000000000000..453b5b91f743f --- /dev/null +++ b/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass(target=es5).types @@ -0,0 +1,129 @@ +//// [tests/cases/conformance/classes/members/accessibility/protectedClassPropertyAccessibleWithinSubclass.ts] //// + +=== protectedClassPropertyAccessibleWithinSubclass.ts === +// no errors + +class B { +>B : B +> : ^ + + protected x: string; +>x : string +> : ^^^^^^ + + protected static x: string; +>x : string +> : ^^^^^^ +} + +class C extends B { +>C : C +> : ^ +>B : B +> : ^ + + protected get y() { return this.x; } +>y : string +> : ^^^^^^ +>this.x : string +> : ^^^^^^ +>this : this +> : ^^^^ +>x : string +> : ^^^^^^ + + protected set y(x) { this.y = this.x; } +>y : string +> : ^^^^^^ +>x : string +> : ^^^^^^ +>this.y = this.x : string +> : ^^^^^^ +>this.y : string +> : ^^^^^^ +>this : this +> : ^^^^ +>y : string +> : ^^^^^^ +>this.x : string +> : ^^^^^^ +>this : this +> : ^^^^ +>x : string +> : ^^^^^^ + + protected foo() { return this.x; } +>foo : () => string +> : ^^^^^^^^^^^^ +>this.x : string +> : ^^^^^^ +>this : this +> : ^^^^ +>x : string +> : ^^^^^^ + + protected bar() { return this.foo(); } +>bar : () => string +> : ^^^^^^^^^^^^ +>this.foo() : string +> : ^^^^^^ +>this.foo : () => string +> : ^^^^^^^^^^^^ +>this : this +> : ^^^^ +>foo : () => string +> : ^^^^^^^^^^^^ + + protected static get y() { return this.x; } +>y : string +> : ^^^^^^ +>this.x : string +> : ^^^^^^ +>this : typeof C +> : ^^^^^^^^ +>x : string +> : ^^^^^^ + + protected static set y(x) { this.y = this.x; } +>y : string +> : ^^^^^^ +>x : string +> : ^^^^^^ +>this.y = this.x : string +> : ^^^^^^ +>this.y : string +> : ^^^^^^ +>this : typeof C +> : ^^^^^^^^ +>y : string +> : ^^^^^^ +>this.x : string +> : ^^^^^^ +>this : typeof C +> : ^^^^^^^^ +>x : string +> : ^^^^^^ + + protected static foo() { return this.x; } +>foo : () => string +> : ^^^^^^^^^^^^ +>this.x : string +> : ^^^^^^ +>this : typeof C +> : ^^^^^^^^ +>x : string +> : ^^^^^^ + + protected static bar() { this.foo(); } +>bar : () => void +> : ^^^^^^^^^^ +>this.foo() : string +> : ^^^^^^ +>this.foo : () => string +> : ^^^^^^^^^^^^ +>this : typeof C +> : ^^^^^^^^ +>foo : () => string +> : ^^^^^^^^^^^^ +} + diff --git a/tests/baselines/reference/publicGetterProtectedSetterFromThisParameter.errors.txt b/tests/baselines/reference/publicGetterProtectedSetterFromThisParameter(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/publicGetterProtectedSetterFromThisParameter.errors.txt rename to tests/baselines/reference/publicGetterProtectedSetterFromThisParameter(target=es2015).errors.txt diff --git a/tests/baselines/reference/publicGetterProtectedSetterFromThisParameter(target=es2015).js b/tests/baselines/reference/publicGetterProtectedSetterFromThisParameter(target=es2015).js new file mode 100644 index 0000000000000..f3cd3db71c7d8 --- /dev/null +++ b/tests/baselines/reference/publicGetterProtectedSetterFromThisParameter(target=es2015).js @@ -0,0 +1,71 @@ +//// [tests/cases/compiler/publicGetterProtectedSetterFromThisParameter.ts] //// + +//// [publicGetterProtectedSetterFromThisParameter.ts] +class A { + get x() { return 0; } + protected set x(v: number) { } + + public get y() { return 0; } + protected set y(v: number) { } +} + +class B { + get q() { return 0; } + protected set q(v: number) { } + + protected get u() { return 0; } + protected set u(v: number) { } + + foo(this: A, a: A, b: B) { + // Should have no errors in this block + this.x = 0; + this.y = 0; + a.x = 0; + a.y = 0; + b.q = 0; + b.u = 0; + } +} + +function bar(this: A, a: A, b: B) { + this.x = 0; + this.y = 0; + a.x = 0; + a.y = 0; + // These should error + b.q = 0; + b.u = 0; +} + + +//// [publicGetterProtectedSetterFromThisParameter.js] +class A { + get x() { return 0; } + set x(v) { } + get y() { return 0; } + set y(v) { } +} +class B { + get q() { return 0; } + set q(v) { } + get u() { return 0; } + set u(v) { } + foo(a, b) { + // Should have no errors in this block + this.x = 0; + this.y = 0; + a.x = 0; + a.y = 0; + b.q = 0; + b.u = 0; + } +} +function bar(a, b) { + this.x = 0; + this.y = 0; + a.x = 0; + a.y = 0; + // These should error + b.q = 0; + b.u = 0; +} diff --git a/tests/baselines/reference/publicGetterProtectedSetterFromThisParameter.symbols b/tests/baselines/reference/publicGetterProtectedSetterFromThisParameter(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/publicGetterProtectedSetterFromThisParameter.symbols rename to tests/baselines/reference/publicGetterProtectedSetterFromThisParameter(target=es2015).symbols diff --git a/tests/baselines/reference/publicGetterProtectedSetterFromThisParameter.types b/tests/baselines/reference/publicGetterProtectedSetterFromThisParameter(target=es2015).types similarity index 100% rename from tests/baselines/reference/publicGetterProtectedSetterFromThisParameter.types rename to tests/baselines/reference/publicGetterProtectedSetterFromThisParameter(target=es2015).types diff --git a/tests/baselines/reference/publicGetterProtectedSetterFromThisParameter(target=es5).errors.txt b/tests/baselines/reference/publicGetterProtectedSetterFromThisParameter(target=es5).errors.txt new file mode 100644 index 0000000000000..20e2c2b12e4c3 --- /dev/null +++ b/tests/baselines/reference/publicGetterProtectedSetterFromThisParameter(target=es5).errors.txt @@ -0,0 +1,45 @@ +publicGetterProtectedSetterFromThisParameter.ts(33,7): error TS2445: Property 'q' is protected and only accessible within class 'B' and its subclasses. +publicGetterProtectedSetterFromThisParameter.ts(34,7): error TS2445: Property 'u' is protected and only accessible within class 'B' and its subclasses. + + +==== publicGetterProtectedSetterFromThisParameter.ts (2 errors) ==== + class A { + get x() { return 0; } + protected set x(v: number) { } + + public get y() { return 0; } + protected set y(v: number) { } + } + + class B { + get q() { return 0; } + protected set q(v: number) { } + + protected get u() { return 0; } + protected set u(v: number) { } + + foo(this: A, a: A, b: B) { + // Should have no errors in this block + this.x = 0; + this.y = 0; + a.x = 0; + a.y = 0; + b.q = 0; + b.u = 0; + } + } + + function bar(this: A, a: A, b: B) { + this.x = 0; + this.y = 0; + a.x = 0; + a.y = 0; + // These should error + b.q = 0; + ~ +!!! error TS2445: Property 'q' is protected and only accessible within class 'B' and its subclasses. + b.u = 0; + ~ +!!! error TS2445: Property 'u' is protected and only accessible within class 'B' and its subclasses. + } + \ No newline at end of file diff --git a/tests/baselines/reference/publicGetterProtectedSetterFromThisParameter.js b/tests/baselines/reference/publicGetterProtectedSetterFromThisParameter(target=es5).js similarity index 100% rename from tests/baselines/reference/publicGetterProtectedSetterFromThisParameter.js rename to tests/baselines/reference/publicGetterProtectedSetterFromThisParameter(target=es5).js diff --git a/tests/baselines/reference/publicGetterProtectedSetterFromThisParameter(target=es5).symbols b/tests/baselines/reference/publicGetterProtectedSetterFromThisParameter(target=es5).symbols new file mode 100644 index 0000000000000..9aa902c4297fb --- /dev/null +++ b/tests/baselines/reference/publicGetterProtectedSetterFromThisParameter(target=es5).symbols @@ -0,0 +1,121 @@ +//// [tests/cases/compiler/publicGetterProtectedSetterFromThisParameter.ts] //// + +=== publicGetterProtectedSetterFromThisParameter.ts === +class A { +>A : Symbol(A, Decl(publicGetterProtectedSetterFromThisParameter.ts, 0, 0)) + + get x() { return 0; } +>x : Symbol(A.x, Decl(publicGetterProtectedSetterFromThisParameter.ts, 0, 9), Decl(publicGetterProtectedSetterFromThisParameter.ts, 1, 23)) + + protected set x(v: number) { } +>x : Symbol(A.x, Decl(publicGetterProtectedSetterFromThisParameter.ts, 0, 9), Decl(publicGetterProtectedSetterFromThisParameter.ts, 1, 23)) +>v : Symbol(v, Decl(publicGetterProtectedSetterFromThisParameter.ts, 2, 18)) + + public get y() { return 0; } +>y : Symbol(A.y, Decl(publicGetterProtectedSetterFromThisParameter.ts, 2, 32), Decl(publicGetterProtectedSetterFromThisParameter.ts, 4, 30)) + + protected set y(v: number) { } +>y : Symbol(A.y, Decl(publicGetterProtectedSetterFromThisParameter.ts, 2, 32), Decl(publicGetterProtectedSetterFromThisParameter.ts, 4, 30)) +>v : Symbol(v, Decl(publicGetterProtectedSetterFromThisParameter.ts, 5, 18)) +} + +class B { +>B : Symbol(B, Decl(publicGetterProtectedSetterFromThisParameter.ts, 6, 1)) + + get q() { return 0; } +>q : Symbol(B.q, Decl(publicGetterProtectedSetterFromThisParameter.ts, 8, 9), Decl(publicGetterProtectedSetterFromThisParameter.ts, 9, 23)) + + protected set q(v: number) { } +>q : Symbol(B.q, Decl(publicGetterProtectedSetterFromThisParameter.ts, 8, 9), Decl(publicGetterProtectedSetterFromThisParameter.ts, 9, 23)) +>v : Symbol(v, Decl(publicGetterProtectedSetterFromThisParameter.ts, 10, 18)) + + protected get u() { return 0; } +>u : Symbol(B.u, Decl(publicGetterProtectedSetterFromThisParameter.ts, 10, 32), Decl(publicGetterProtectedSetterFromThisParameter.ts, 12, 33)) + + protected set u(v: number) { } +>u : Symbol(B.u, Decl(publicGetterProtectedSetterFromThisParameter.ts, 10, 32), Decl(publicGetterProtectedSetterFromThisParameter.ts, 12, 33)) +>v : Symbol(v, Decl(publicGetterProtectedSetterFromThisParameter.ts, 13, 18)) + + foo(this: A, a: A, b: B) { +>foo : Symbol(B.foo, Decl(publicGetterProtectedSetterFromThisParameter.ts, 13, 32)) +>this : Symbol(this, Decl(publicGetterProtectedSetterFromThisParameter.ts, 15, 6)) +>A : Symbol(A, Decl(publicGetterProtectedSetterFromThisParameter.ts, 0, 0)) +>a : Symbol(a, Decl(publicGetterProtectedSetterFromThisParameter.ts, 15, 14)) +>A : Symbol(A, Decl(publicGetterProtectedSetterFromThisParameter.ts, 0, 0)) +>b : Symbol(b, Decl(publicGetterProtectedSetterFromThisParameter.ts, 15, 20)) +>B : Symbol(B, Decl(publicGetterProtectedSetterFromThisParameter.ts, 6, 1)) + + // Should have no errors in this block + this.x = 0; +>this.x : Symbol(A.x, Decl(publicGetterProtectedSetterFromThisParameter.ts, 0, 9), Decl(publicGetterProtectedSetterFromThisParameter.ts, 1, 23)) +>this : Symbol(this, Decl(publicGetterProtectedSetterFromThisParameter.ts, 15, 6)) +>x : Symbol(A.x, Decl(publicGetterProtectedSetterFromThisParameter.ts, 0, 9), Decl(publicGetterProtectedSetterFromThisParameter.ts, 1, 23)) + + this.y = 0; +>this.y : Symbol(A.y, Decl(publicGetterProtectedSetterFromThisParameter.ts, 2, 32), Decl(publicGetterProtectedSetterFromThisParameter.ts, 4, 30)) +>this : Symbol(this, Decl(publicGetterProtectedSetterFromThisParameter.ts, 15, 6)) +>y : Symbol(A.y, Decl(publicGetterProtectedSetterFromThisParameter.ts, 2, 32), Decl(publicGetterProtectedSetterFromThisParameter.ts, 4, 30)) + + a.x = 0; +>a.x : Symbol(A.x, Decl(publicGetterProtectedSetterFromThisParameter.ts, 0, 9), Decl(publicGetterProtectedSetterFromThisParameter.ts, 1, 23)) +>a : Symbol(a, Decl(publicGetterProtectedSetterFromThisParameter.ts, 15, 14)) +>x : Symbol(A.x, Decl(publicGetterProtectedSetterFromThisParameter.ts, 0, 9), Decl(publicGetterProtectedSetterFromThisParameter.ts, 1, 23)) + + a.y = 0; +>a.y : Symbol(A.y, Decl(publicGetterProtectedSetterFromThisParameter.ts, 2, 32), Decl(publicGetterProtectedSetterFromThisParameter.ts, 4, 30)) +>a : Symbol(a, Decl(publicGetterProtectedSetterFromThisParameter.ts, 15, 14)) +>y : Symbol(A.y, Decl(publicGetterProtectedSetterFromThisParameter.ts, 2, 32), Decl(publicGetterProtectedSetterFromThisParameter.ts, 4, 30)) + + b.q = 0; +>b.q : Symbol(B.q, Decl(publicGetterProtectedSetterFromThisParameter.ts, 8, 9), Decl(publicGetterProtectedSetterFromThisParameter.ts, 9, 23)) +>b : Symbol(b, Decl(publicGetterProtectedSetterFromThisParameter.ts, 15, 20)) +>q : Symbol(B.q, Decl(publicGetterProtectedSetterFromThisParameter.ts, 8, 9), Decl(publicGetterProtectedSetterFromThisParameter.ts, 9, 23)) + + b.u = 0; +>b.u : Symbol(B.u, Decl(publicGetterProtectedSetterFromThisParameter.ts, 10, 32), Decl(publicGetterProtectedSetterFromThisParameter.ts, 12, 33)) +>b : Symbol(b, Decl(publicGetterProtectedSetterFromThisParameter.ts, 15, 20)) +>u : Symbol(B.u, Decl(publicGetterProtectedSetterFromThisParameter.ts, 10, 32), Decl(publicGetterProtectedSetterFromThisParameter.ts, 12, 33)) + } +} + +function bar(this: A, a: A, b: B) { +>bar : Symbol(bar, Decl(publicGetterProtectedSetterFromThisParameter.ts, 24, 1)) +>this : Symbol(this, Decl(publicGetterProtectedSetterFromThisParameter.ts, 26, 13)) +>A : Symbol(A, Decl(publicGetterProtectedSetterFromThisParameter.ts, 0, 0)) +>a : Symbol(a, Decl(publicGetterProtectedSetterFromThisParameter.ts, 26, 21)) +>A : Symbol(A, Decl(publicGetterProtectedSetterFromThisParameter.ts, 0, 0)) +>b : Symbol(b, Decl(publicGetterProtectedSetterFromThisParameter.ts, 26, 27)) +>B : Symbol(B, Decl(publicGetterProtectedSetterFromThisParameter.ts, 6, 1)) + + this.x = 0; +>this.x : Symbol(A.x, Decl(publicGetterProtectedSetterFromThisParameter.ts, 0, 9), Decl(publicGetterProtectedSetterFromThisParameter.ts, 1, 23)) +>this : Symbol(this, Decl(publicGetterProtectedSetterFromThisParameter.ts, 26, 13)) +>x : Symbol(A.x, Decl(publicGetterProtectedSetterFromThisParameter.ts, 0, 9), Decl(publicGetterProtectedSetterFromThisParameter.ts, 1, 23)) + + this.y = 0; +>this.y : Symbol(A.y, Decl(publicGetterProtectedSetterFromThisParameter.ts, 2, 32), Decl(publicGetterProtectedSetterFromThisParameter.ts, 4, 30)) +>this : Symbol(this, Decl(publicGetterProtectedSetterFromThisParameter.ts, 26, 13)) +>y : Symbol(A.y, Decl(publicGetterProtectedSetterFromThisParameter.ts, 2, 32), Decl(publicGetterProtectedSetterFromThisParameter.ts, 4, 30)) + + a.x = 0; +>a.x : Symbol(A.x, Decl(publicGetterProtectedSetterFromThisParameter.ts, 0, 9), Decl(publicGetterProtectedSetterFromThisParameter.ts, 1, 23)) +>a : Symbol(a, Decl(publicGetterProtectedSetterFromThisParameter.ts, 26, 21)) +>x : Symbol(A.x, Decl(publicGetterProtectedSetterFromThisParameter.ts, 0, 9), Decl(publicGetterProtectedSetterFromThisParameter.ts, 1, 23)) + + a.y = 0; +>a.y : Symbol(A.y, Decl(publicGetterProtectedSetterFromThisParameter.ts, 2, 32), Decl(publicGetterProtectedSetterFromThisParameter.ts, 4, 30)) +>a : Symbol(a, Decl(publicGetterProtectedSetterFromThisParameter.ts, 26, 21)) +>y : Symbol(A.y, Decl(publicGetterProtectedSetterFromThisParameter.ts, 2, 32), Decl(publicGetterProtectedSetterFromThisParameter.ts, 4, 30)) + + // These should error + b.q = 0; +>b.q : Symbol(B.q, Decl(publicGetterProtectedSetterFromThisParameter.ts, 8, 9), Decl(publicGetterProtectedSetterFromThisParameter.ts, 9, 23)) +>b : Symbol(b, Decl(publicGetterProtectedSetterFromThisParameter.ts, 26, 27)) +>q : Symbol(B.q, Decl(publicGetterProtectedSetterFromThisParameter.ts, 8, 9), Decl(publicGetterProtectedSetterFromThisParameter.ts, 9, 23)) + + b.u = 0; +>b.u : Symbol(B.u, Decl(publicGetterProtectedSetterFromThisParameter.ts, 10, 32), Decl(publicGetterProtectedSetterFromThisParameter.ts, 12, 33)) +>b : Symbol(b, Decl(publicGetterProtectedSetterFromThisParameter.ts, 26, 27)) +>u : Symbol(B.u, Decl(publicGetterProtectedSetterFromThisParameter.ts, 10, 32), Decl(publicGetterProtectedSetterFromThisParameter.ts, 12, 33)) +} + diff --git a/tests/baselines/reference/publicGetterProtectedSetterFromThisParameter(target=es5).types b/tests/baselines/reference/publicGetterProtectedSetterFromThisParameter(target=es5).types new file mode 100644 index 0000000000000..711c8c86018fd --- /dev/null +++ b/tests/baselines/reference/publicGetterProtectedSetterFromThisParameter(target=es5).types @@ -0,0 +1,229 @@ +//// [tests/cases/compiler/publicGetterProtectedSetterFromThisParameter.ts] //// + +=== publicGetterProtectedSetterFromThisParameter.ts === +class A { +>A : A +> : ^ + + get x() { return 0; } +>x : number +> : ^^^^^^ +>0 : 0 +> : ^ + + protected set x(v: number) { } +>x : number +> : ^^^^^^ +>v : number +> : ^^^^^^ + + public get y() { return 0; } +>y : number +> : ^^^^^^ +>0 : 0 +> : ^ + + protected set y(v: number) { } +>y : number +> : ^^^^^^ +>v : number +> : ^^^^^^ +} + +class B { +>B : B +> : ^ + + get q() { return 0; } +>q : number +> : ^^^^^^ +>0 : 0 +> : ^ + + protected set q(v: number) { } +>q : number +> : ^^^^^^ +>v : number +> : ^^^^^^ + + protected get u() { return 0; } +>u : number +> : ^^^^^^ +>0 : 0 +> : ^ + + protected set u(v: number) { } +>u : number +> : ^^^^^^ +>v : number +> : ^^^^^^ + + foo(this: A, a: A, b: B) { +>foo : (this: A, a: A, b: B) => void +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^^^^^ +>this : A +> : ^ +>a : A +> : ^ +>b : B +> : ^ + + // Should have no errors in this block + this.x = 0; +>this.x = 0 : 0 +> : ^ +>this.x : number +> : ^^^^^^ +>this : A +> : ^ +>x : number +> : ^^^^^^ +>0 : 0 +> : ^ + + this.y = 0; +>this.y = 0 : 0 +> : ^ +>this.y : number +> : ^^^^^^ +>this : A +> : ^ +>y : number +> : ^^^^^^ +>0 : 0 +> : ^ + + a.x = 0; +>a.x = 0 : 0 +> : ^ +>a.x : number +> : ^^^^^^ +>a : A +> : ^ +>x : number +> : ^^^^^^ +>0 : 0 +> : ^ + + a.y = 0; +>a.y = 0 : 0 +> : ^ +>a.y : number +> : ^^^^^^ +>a : A +> : ^ +>y : number +> : ^^^^^^ +>0 : 0 +> : ^ + + b.q = 0; +>b.q = 0 : 0 +> : ^ +>b.q : number +> : ^^^^^^ +>b : B +> : ^ +>q : number +> : ^^^^^^ +>0 : 0 +> : ^ + + b.u = 0; +>b.u = 0 : 0 +> : ^ +>b.u : number +> : ^^^^^^ +>b : B +> : ^ +>u : number +> : ^^^^^^ +>0 : 0 +> : ^ + } +} + +function bar(this: A, a: A, b: B) { +>bar : (this: A, a: A, b: B) => void +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^^^^^ +>this : A +> : ^ +>a : A +> : ^ +>b : B +> : ^ + + this.x = 0; +>this.x = 0 : 0 +> : ^ +>this.x : number +> : ^^^^^^ +>this : A +> : ^ +>x : number +> : ^^^^^^ +>0 : 0 +> : ^ + + this.y = 0; +>this.y = 0 : 0 +> : ^ +>this.y : number +> : ^^^^^^ +>this : A +> : ^ +>y : number +> : ^^^^^^ +>0 : 0 +> : ^ + + a.x = 0; +>a.x = 0 : 0 +> : ^ +>a.x : number +> : ^^^^^^ +>a : A +> : ^ +>x : number +> : ^^^^^^ +>0 : 0 +> : ^ + + a.y = 0; +>a.y = 0 : 0 +> : ^ +>a.y : number +> : ^^^^^^ +>a : A +> : ^ +>y : number +> : ^^^^^^ +>0 : 0 +> : ^ + + // These should error + b.q = 0; +>b.q = 0 : 0 +> : ^ +>b.q : number +> : ^^^^^^ +>b : B +> : ^ +>q : number +> : ^^^^^^ +>0 : 0 +> : ^ + + b.u = 0; +>b.u = 0 : 0 +> : ^ +>b.u : number +> : ^^^^^^ +>b : B +> : ^ +>u : number +> : ^^^^^^ +>0 : 0 +> : ^ +} + diff --git a/tests/baselines/reference/reExportDefaultExport(target=es2015).js b/tests/baselines/reference/reExportDefaultExport(target=es2015).js new file mode 100644 index 0000000000000..ee1e11e0e4e83 --- /dev/null +++ b/tests/baselines/reference/reExportDefaultExport(target=es2015).js @@ -0,0 +1,32 @@ +//// [tests/cases/conformance/es6/modules/reExportDefaultExport.ts] //// + +//// [m1.ts] +export default function f() { +} +export {f}; + + +//// [m2.ts] +import foo from "./m1"; +import {f} from "./m1"; + +f(); +foo(); + +//// [m1.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = f; +exports.f = f; +function f() { +} +//// [m2.js] +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const m1_1 = __importDefault(require("./m1")); +const m1_2 = require("./m1"); +(0, m1_2.f)(); +(0, m1_1.default)(); diff --git a/tests/baselines/reference/reExportDefaultExport.symbols b/tests/baselines/reference/reExportDefaultExport(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/reExportDefaultExport.symbols rename to tests/baselines/reference/reExportDefaultExport(target=es2015).symbols diff --git a/tests/baselines/reference/reExportDefaultExport.types b/tests/baselines/reference/reExportDefaultExport(target=es2015).types similarity index 100% rename from tests/baselines/reference/reExportDefaultExport.types rename to tests/baselines/reference/reExportDefaultExport(target=es2015).types diff --git a/tests/baselines/reference/reExportDefaultExport.js b/tests/baselines/reference/reExportDefaultExport(target=es5).js similarity index 100% rename from tests/baselines/reference/reExportDefaultExport.js rename to tests/baselines/reference/reExportDefaultExport(target=es5).js diff --git a/tests/baselines/reference/reExportDefaultExport(target=es5).symbols b/tests/baselines/reference/reExportDefaultExport(target=es5).symbols new file mode 100644 index 0000000000000..4a70de256a3ba --- /dev/null +++ b/tests/baselines/reference/reExportDefaultExport(target=es5).symbols @@ -0,0 +1,23 @@ +//// [tests/cases/conformance/es6/modules/reExportDefaultExport.ts] //// + +=== m1.ts === +export default function f() { +>f : Symbol(f, Decl(m1.ts, 0, 0)) +} +export {f}; +>f : Symbol(f, Decl(m1.ts, 2, 8)) + + +=== m2.ts === +import foo from "./m1"; +>foo : Symbol(foo, Decl(m2.ts, 0, 6)) + +import {f} from "./m1"; +>f : Symbol(f, Decl(m2.ts, 1, 8)) + +f(); +>f : Symbol(f, Decl(m2.ts, 1, 8)) + +foo(); +>foo : Symbol(foo, Decl(m2.ts, 0, 6)) + diff --git a/tests/baselines/reference/reExportDefaultExport(target=es5).types b/tests/baselines/reference/reExportDefaultExport(target=es5).types new file mode 100644 index 0000000000000..389241b4dac77 --- /dev/null +++ b/tests/baselines/reference/reExportDefaultExport(target=es5).types @@ -0,0 +1,33 @@ +//// [tests/cases/conformance/es6/modules/reExportDefaultExport.ts] //// + +=== m1.ts === +export default function f() { +>f : () => void +> : ^^^^^^^^^^ +} +export {f}; +>f : () => void +> : ^^^^^^^^^^ + + +=== m2.ts === +import foo from "./m1"; +>foo : () => void +> : ^^^^^^^^^^ + +import {f} from "./m1"; +>f : () => void +> : ^^^^^^^^^^ + +f(); +>f() : void +> : ^^^^ +>f : () => void +> : ^^^^^^^^^^ + +foo(); +>foo() : void +> : ^^^^ +>foo : () => void +> : ^^^^^^^^^^ + diff --git a/tests/baselines/reference/readonlyInDeclarationFile(target=es2015).js b/tests/baselines/reference/readonlyInDeclarationFile(target=es2015).js new file mode 100644 index 0000000000000..677ed59eb9bb4 --- /dev/null +++ b/tests/baselines/reference/readonlyInDeclarationFile(target=es2015).js @@ -0,0 +1,136 @@ +//// [tests/cases/compiler/readonlyInDeclarationFile.ts] //// + +//// [readonlyInDeclarationFile.ts] +interface Foo { + readonly x: number; + readonly [x: string]: Object; +} + +class C { + readonly [x: string]: Object; + private readonly a1: number; + protected readonly a2: number; + public readonly a3: number; + private get b1() { return 1 } + protected get b2() { return 1 } + public get b3() { return 1 } + private get c1() { return 1 } + private set c1(value) { } + protected get c2() { return 1 } + protected set c2(value) { } + public get c3() { return 1 } + public set c3(value) { } + private static readonly s1: number; + protected static readonly s2: number; + public static readonly s3: number; + private static get t1() { return 1 } + protected static get t2() { return 1 } + public static get t3() { return 1 } + private static get u1() { return 1 } + private static set u1(value) { } + protected static get u2() { return 1 } + protected static set u2(value) { } + public static get u3() { return 1 } + public static set u3(value) { } +} + +var z: { + readonly a: string; + readonly [x: string]: Object; +} + +function f() { + return { + get x() { return 1; }, + get y() { return 1; }, + set y(value) { } + } +} + +function g() { + var x: { + readonly a: string; + readonly [x: string]: Object; + } + return x; +} + +//// [readonlyInDeclarationFile.js] +class C { + get b1() { return 1; } + get b2() { return 1; } + get b3() { return 1; } + get c1() { return 1; } + set c1(value) { } + get c2() { return 1; } + set c2(value) { } + get c3() { return 1; } + set c3(value) { } + static get t1() { return 1; } + static get t2() { return 1; } + static get t3() { return 1; } + static get u1() { return 1; } + static set u1(value) { } + static get u2() { return 1; } + static set u2(value) { } + static get u3() { return 1; } + static set u3(value) { } +} +var z; +function f() { + return { + get x() { return 1; }, + get y() { return 1; }, + set y(value) { } + }; +} +function g() { + var x; + return x; +} + + +//// [readonlyInDeclarationFile.d.ts] +interface Foo { + readonly x: number; + readonly [x: string]: Object; +} +declare class C { + readonly [x: string]: Object; + private readonly a1; + protected readonly a2: number; + readonly a3: number; + private get b1(); + protected get b2(): number; + get b3(): number; + private get c1(); + private set c1(value); + protected get c2(): number; + protected set c2(value: number); + get c3(): number; + set c3(value: number); + private static readonly s1; + protected static readonly s2: number; + static readonly s3: number; + private static get t1(); + protected static get t2(): number; + static get t3(): number; + private static get u1(); + private static set u1(value); + protected static get u2(): number; + protected static set u2(value: number); + static get u3(): number; + static set u3(value: number); +} +declare var z: { + readonly a: string; + readonly [x: string]: Object; +}; +declare function f(): { + readonly x: number; + y: number; +}; +declare function g(): { + readonly [x: string]: Object; + readonly a: string; +}; diff --git a/tests/baselines/reference/readonlyInDeclarationFile.symbols b/tests/baselines/reference/readonlyInDeclarationFile(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/readonlyInDeclarationFile.symbols rename to tests/baselines/reference/readonlyInDeclarationFile(target=es2015).symbols diff --git a/tests/baselines/reference/readonlyInDeclarationFile.types b/tests/baselines/reference/readonlyInDeclarationFile(target=es2015).types similarity index 100% rename from tests/baselines/reference/readonlyInDeclarationFile.types rename to tests/baselines/reference/readonlyInDeclarationFile(target=es2015).types diff --git a/tests/baselines/reference/readonlyInDeclarationFile.js b/tests/baselines/reference/readonlyInDeclarationFile(target=es5).js similarity index 100% rename from tests/baselines/reference/readonlyInDeclarationFile.js rename to tests/baselines/reference/readonlyInDeclarationFile(target=es5).js diff --git a/tests/baselines/reference/readonlyInDeclarationFile(target=es5).symbols b/tests/baselines/reference/readonlyInDeclarationFile(target=es5).symbols new file mode 100644 index 0000000000000..f45840ecd17dd --- /dev/null +++ b/tests/baselines/reference/readonlyInDeclarationFile(target=es5).symbols @@ -0,0 +1,143 @@ +//// [tests/cases/compiler/readonlyInDeclarationFile.ts] //// + +=== readonlyInDeclarationFile.ts === +interface Foo { +>Foo : Symbol(Foo, Decl(readonlyInDeclarationFile.ts, 0, 0)) + + readonly x: number; +>x : Symbol(Foo.x, Decl(readonlyInDeclarationFile.ts, 0, 15)) + + readonly [x: string]: Object; +>x : Symbol(x, Decl(readonlyInDeclarationFile.ts, 2, 14)) +>Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +} + +class C { +>C : Symbol(C, Decl(readonlyInDeclarationFile.ts, 3, 1)) + + readonly [x: string]: Object; +>x : Symbol(x, Decl(readonlyInDeclarationFile.ts, 6, 14)) +>Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) + + private readonly a1: number; +>a1 : Symbol(C.a1, Decl(readonlyInDeclarationFile.ts, 6, 33)) + + protected readonly a2: number; +>a2 : Symbol(C.a2, Decl(readonlyInDeclarationFile.ts, 7, 32)) + + public readonly a3: number; +>a3 : Symbol(C.a3, Decl(readonlyInDeclarationFile.ts, 8, 34)) + + private get b1() { return 1 } +>b1 : Symbol(C.b1, Decl(readonlyInDeclarationFile.ts, 9, 31)) + + protected get b2() { return 1 } +>b2 : Symbol(C.b2, Decl(readonlyInDeclarationFile.ts, 10, 33)) + + public get b3() { return 1 } +>b3 : Symbol(C.b3, Decl(readonlyInDeclarationFile.ts, 11, 35)) + + private get c1() { return 1 } +>c1 : Symbol(C.c1, Decl(readonlyInDeclarationFile.ts, 12, 32), Decl(readonlyInDeclarationFile.ts, 13, 33)) + + private set c1(value) { } +>c1 : Symbol(C.c1, Decl(readonlyInDeclarationFile.ts, 12, 32), Decl(readonlyInDeclarationFile.ts, 13, 33)) +>value : Symbol(value, Decl(readonlyInDeclarationFile.ts, 14, 19)) + + protected get c2() { return 1 } +>c2 : Symbol(C.c2, Decl(readonlyInDeclarationFile.ts, 14, 29), Decl(readonlyInDeclarationFile.ts, 15, 35)) + + protected set c2(value) { } +>c2 : Symbol(C.c2, Decl(readonlyInDeclarationFile.ts, 14, 29), Decl(readonlyInDeclarationFile.ts, 15, 35)) +>value : Symbol(value, Decl(readonlyInDeclarationFile.ts, 16, 21)) + + public get c3() { return 1 } +>c3 : Symbol(C.c3, Decl(readonlyInDeclarationFile.ts, 16, 31), Decl(readonlyInDeclarationFile.ts, 17, 32)) + + public set c3(value) { } +>c3 : Symbol(C.c3, Decl(readonlyInDeclarationFile.ts, 16, 31), Decl(readonlyInDeclarationFile.ts, 17, 32)) +>value : Symbol(value, Decl(readonlyInDeclarationFile.ts, 18, 18)) + + private static readonly s1: number; +>s1 : Symbol(C.s1, Decl(readonlyInDeclarationFile.ts, 18, 28)) + + protected static readonly s2: number; +>s2 : Symbol(C.s2, Decl(readonlyInDeclarationFile.ts, 19, 39)) + + public static readonly s3: number; +>s3 : Symbol(C.s3, Decl(readonlyInDeclarationFile.ts, 20, 41)) + + private static get t1() { return 1 } +>t1 : Symbol(C.t1, Decl(readonlyInDeclarationFile.ts, 21, 38)) + + protected static get t2() { return 1 } +>t2 : Symbol(C.t2, Decl(readonlyInDeclarationFile.ts, 22, 40)) + + public static get t3() { return 1 } +>t3 : Symbol(C.t3, Decl(readonlyInDeclarationFile.ts, 23, 42)) + + private static get u1() { return 1 } +>u1 : Symbol(C.u1, Decl(readonlyInDeclarationFile.ts, 24, 39), Decl(readonlyInDeclarationFile.ts, 25, 40)) + + private static set u1(value) { } +>u1 : Symbol(C.u1, Decl(readonlyInDeclarationFile.ts, 24, 39), Decl(readonlyInDeclarationFile.ts, 25, 40)) +>value : Symbol(value, Decl(readonlyInDeclarationFile.ts, 26, 26)) + + protected static get u2() { return 1 } +>u2 : Symbol(C.u2, Decl(readonlyInDeclarationFile.ts, 26, 36), Decl(readonlyInDeclarationFile.ts, 27, 42)) + + protected static set u2(value) { } +>u2 : Symbol(C.u2, Decl(readonlyInDeclarationFile.ts, 26, 36), Decl(readonlyInDeclarationFile.ts, 27, 42)) +>value : Symbol(value, Decl(readonlyInDeclarationFile.ts, 28, 28)) + + public static get u3() { return 1 } +>u3 : Symbol(C.u3, Decl(readonlyInDeclarationFile.ts, 28, 38), Decl(readonlyInDeclarationFile.ts, 29, 39)) + + public static set u3(value) { } +>u3 : Symbol(C.u3, Decl(readonlyInDeclarationFile.ts, 28, 38), Decl(readonlyInDeclarationFile.ts, 29, 39)) +>value : Symbol(value, Decl(readonlyInDeclarationFile.ts, 30, 25)) +} + +var z: { +>z : Symbol(z, Decl(readonlyInDeclarationFile.ts, 33, 3)) + + readonly a: string; +>a : Symbol(a, Decl(readonlyInDeclarationFile.ts, 33, 8)) + + readonly [x: string]: Object; +>x : Symbol(x, Decl(readonlyInDeclarationFile.ts, 35, 14)) +>Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +} + +function f() { +>f : Symbol(f, Decl(readonlyInDeclarationFile.ts, 36, 1)) + + return { + get x() { return 1; }, +>x : Symbol(x, Decl(readonlyInDeclarationFile.ts, 39, 12)) + + get y() { return 1; }, +>y : Symbol(y, Decl(readonlyInDeclarationFile.ts, 40, 30), Decl(readonlyInDeclarationFile.ts, 41, 30)) + + set y(value) { } +>y : Symbol(y, Decl(readonlyInDeclarationFile.ts, 40, 30), Decl(readonlyInDeclarationFile.ts, 41, 30)) +>value : Symbol(value, Decl(readonlyInDeclarationFile.ts, 42, 14)) + } +} + +function g() { +>g : Symbol(g, Decl(readonlyInDeclarationFile.ts, 44, 1)) + + var x: { +>x : Symbol(x, Decl(readonlyInDeclarationFile.ts, 47, 7)) + + readonly a: string; +>a : Symbol(a, Decl(readonlyInDeclarationFile.ts, 47, 12)) + + readonly [x: string]: Object; +>x : Symbol(x, Decl(readonlyInDeclarationFile.ts, 49, 18)) +>Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) + } + return x; +>x : Symbol(x, Decl(readonlyInDeclarationFile.ts, 47, 7)) +} diff --git a/tests/baselines/reference/readonlyInDeclarationFile(target=es5).types b/tests/baselines/reference/readonlyInDeclarationFile(target=es5).types new file mode 100644 index 0000000000000..ac3d899754fd4 --- /dev/null +++ b/tests/baselines/reference/readonlyInDeclarationFile(target=es5).types @@ -0,0 +1,215 @@ +//// [tests/cases/compiler/readonlyInDeclarationFile.ts] //// + +=== readonlyInDeclarationFile.ts === +interface Foo { + readonly x: number; +>x : number +> : ^^^^^^ + + readonly [x: string]: Object; +>x : string +> : ^^^^^^ +} + +class C { +>C : C +> : ^ + + readonly [x: string]: Object; +>x : string +> : ^^^^^^ + + private readonly a1: number; +>a1 : number +> : ^^^^^^ + + protected readonly a2: number; +>a2 : number +> : ^^^^^^ + + public readonly a3: number; +>a3 : number +> : ^^^^^^ + + private get b1() { return 1 } +>b1 : number +> : ^^^^^^ +>1 : 1 +> : ^ + + protected get b2() { return 1 } +>b2 : number +> : ^^^^^^ +>1 : 1 +> : ^ + + public get b3() { return 1 } +>b3 : number +> : ^^^^^^ +>1 : 1 +> : ^ + + private get c1() { return 1 } +>c1 : number +> : ^^^^^^ +>1 : 1 +> : ^ + + private set c1(value) { } +>c1 : number +> : ^^^^^^ +>value : number +> : ^^^^^^ + + protected get c2() { return 1 } +>c2 : number +> : ^^^^^^ +>1 : 1 +> : ^ + + protected set c2(value) { } +>c2 : number +> : ^^^^^^ +>value : number +> : ^^^^^^ + + public get c3() { return 1 } +>c3 : number +> : ^^^^^^ +>1 : 1 +> : ^ + + public set c3(value) { } +>c3 : number +> : ^^^^^^ +>value : number +> : ^^^^^^ + + private static readonly s1: number; +>s1 : number +> : ^^^^^^ + + protected static readonly s2: number; +>s2 : number +> : ^^^^^^ + + public static readonly s3: number; +>s3 : number +> : ^^^^^^ + + private static get t1() { return 1 } +>t1 : number +> : ^^^^^^ +>1 : 1 +> : ^ + + protected static get t2() { return 1 } +>t2 : number +> : ^^^^^^ +>1 : 1 +> : ^ + + public static get t3() { return 1 } +>t3 : number +> : ^^^^^^ +>1 : 1 +> : ^ + + private static get u1() { return 1 } +>u1 : number +> : ^^^^^^ +>1 : 1 +> : ^ + + private static set u1(value) { } +>u1 : number +> : ^^^^^^ +>value : number +> : ^^^^^^ + + protected static get u2() { return 1 } +>u2 : number +> : ^^^^^^ +>1 : 1 +> : ^ + + protected static set u2(value) { } +>u2 : number +> : ^^^^^^ +>value : number +> : ^^^^^^ + + public static get u3() { return 1 } +>u3 : number +> : ^^^^^^ +>1 : 1 +> : ^ + + public static set u3(value) { } +>u3 : number +> : ^^^^^^ +>value : number +> : ^^^^^^ +} + +var z: { +>z : { readonly [x: string]: Object; readonly a: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^ + + readonly a: string; +>a : string +> : ^^^^^^ + + readonly [x: string]: Object; +>x : string +> : ^^^^^^ +} + +function f() { +>f : () => { readonly x: number; y: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + return { +>{ get x() { return 1; }, get y() { return 1; }, set y(value) { } } : { readonly x: number; y: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + get x() { return 1; }, +>x : number +> : ^^^^^^ +>1 : 1 +> : ^ + + get y() { return 1; }, +>y : number +> : ^^^^^^ +>1 : 1 +> : ^ + + set y(value) { } +>y : number +> : ^^^^^^ +>value : number +> : ^^^^^^ + } +} + +function g() { +>g : () => { readonly [x: string]: Object; readonly a: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^ + + var x: { +>x : { readonly [x: string]: Object; readonly a: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^ + + readonly a: string; +>a : string +> : ^^^^^^ + + readonly [x: string]: Object; +>x : string +> : ^^^^^^ + } + return x; +>x : { readonly [x: string]: Object; readonly a: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^ +} diff --git a/tests/baselines/reference/readonlyInNonPropertyParameters.errors.txt b/tests/baselines/reference/readonlyInNonPropertyParameters(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/readonlyInNonPropertyParameters.errors.txt rename to tests/baselines/reference/readonlyInNonPropertyParameters(target=es2015).errors.txt diff --git a/tests/baselines/reference/readonlyInNonPropertyParameters(target=es2015).js b/tests/baselines/reference/readonlyInNonPropertyParameters(target=es2015).js new file mode 100644 index 0000000000000..2ee3c0172c278 --- /dev/null +++ b/tests/baselines/reference/readonlyInNonPropertyParameters(target=es2015).js @@ -0,0 +1,21 @@ +//// [tests/cases/compiler/readonlyInNonPropertyParameters.ts] //// + +//// [readonlyInNonPropertyParameters.ts] +// `readonly` won't work outside of property parameters +class X { + method(readonly x: number) {} + set x(readonly value: number) {} +} +(readonly x) => 0; +// OK to use `readonly` as a name +(readonly) => 0; + +//// [readonlyInNonPropertyParameters.js] +// `readonly` won't work outside of property parameters +class X { + method(x) { } + set x(value) { } +} +(x) => 0; +// OK to use `readonly` as a name +(readonly) => 0; diff --git a/tests/baselines/reference/readonlyInNonPropertyParameters.symbols b/tests/baselines/reference/readonlyInNonPropertyParameters(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/readonlyInNonPropertyParameters.symbols rename to tests/baselines/reference/readonlyInNonPropertyParameters(target=es2015).symbols diff --git a/tests/baselines/reference/readonlyInNonPropertyParameters.types b/tests/baselines/reference/readonlyInNonPropertyParameters(target=es2015).types similarity index 100% rename from tests/baselines/reference/readonlyInNonPropertyParameters.types rename to tests/baselines/reference/readonlyInNonPropertyParameters(target=es2015).types diff --git a/tests/baselines/reference/readonlyInNonPropertyParameters(target=es5).errors.txt b/tests/baselines/reference/readonlyInNonPropertyParameters(target=es5).errors.txt new file mode 100644 index 0000000000000..8ee767e2c22d1 --- /dev/null +++ b/tests/baselines/reference/readonlyInNonPropertyParameters(target=es5).errors.txt @@ -0,0 +1,20 @@ +readonlyInNonPropertyParameters.ts(3,9): error TS2369: A parameter property is only allowed in a constructor implementation. +readonlyInNonPropertyParameters.ts(4,8): error TS2369: A parameter property is only allowed in a constructor implementation. +readonlyInNonPropertyParameters.ts(6,2): error TS2369: A parameter property is only allowed in a constructor implementation. + + +==== readonlyInNonPropertyParameters.ts (3 errors) ==== + // `readonly` won't work outside of property parameters + class X { + method(readonly x: number) {} + ~~~~~~~~~~~~~~~~~~ +!!! error TS2369: A parameter property is only allowed in a constructor implementation. + set x(readonly value: number) {} + ~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2369: A parameter property is only allowed in a constructor implementation. + } + (readonly x) => 0; + ~~~~~~~~~~ +!!! error TS2369: A parameter property is only allowed in a constructor implementation. + // OK to use `readonly` as a name + (readonly) => 0; \ No newline at end of file diff --git a/tests/baselines/reference/readonlyInNonPropertyParameters.js b/tests/baselines/reference/readonlyInNonPropertyParameters(target=es5).js similarity index 100% rename from tests/baselines/reference/readonlyInNonPropertyParameters.js rename to tests/baselines/reference/readonlyInNonPropertyParameters(target=es5).js diff --git a/tests/baselines/reference/readonlyInNonPropertyParameters(target=es5).symbols b/tests/baselines/reference/readonlyInNonPropertyParameters(target=es5).symbols new file mode 100644 index 0000000000000..4177e2d343e92 --- /dev/null +++ b/tests/baselines/reference/readonlyInNonPropertyParameters(target=es5).symbols @@ -0,0 +1,22 @@ +//// [tests/cases/compiler/readonlyInNonPropertyParameters.ts] //// + +=== readonlyInNonPropertyParameters.ts === +// `readonly` won't work outside of property parameters +class X { +>X : Symbol(X, Decl(readonlyInNonPropertyParameters.ts, 0, 0)) + + method(readonly x: number) {} +>method : Symbol(X.method, Decl(readonlyInNonPropertyParameters.ts, 1, 9)) +>x : Symbol(x, Decl(readonlyInNonPropertyParameters.ts, 2, 8)) + + set x(readonly value: number) {} +>x : Symbol(X.x, Decl(readonlyInNonPropertyParameters.ts, 2, 30)) +>value : Symbol(value, Decl(readonlyInNonPropertyParameters.ts, 3, 7)) +} +(readonly x) => 0; +>x : Symbol(x, Decl(readonlyInNonPropertyParameters.ts, 5, 1)) + +// OK to use `readonly` as a name +(readonly) => 0; +>readonly : Symbol(readonly, Decl(readonlyInNonPropertyParameters.ts, 7, 1)) + diff --git a/tests/baselines/reference/readonlyInNonPropertyParameters(target=es5).types b/tests/baselines/reference/readonlyInNonPropertyParameters(target=es5).types new file mode 100644 index 0000000000000..46f40c838049b --- /dev/null +++ b/tests/baselines/reference/readonlyInNonPropertyParameters(target=es5).types @@ -0,0 +1,37 @@ +//// [tests/cases/compiler/readonlyInNonPropertyParameters.ts] //// + +=== readonlyInNonPropertyParameters.ts === +// `readonly` won't work outside of property parameters +class X { +>X : X +> : ^ + + method(readonly x: number) {} +>method : (x: number) => void +> : ^ ^^ ^^^^^^^^^ +>x : number +> : ^^^^^^ + + set x(readonly value: number) {} +>x : number +> : ^^^^^^ +>value : number +> : ^^^^^^ +} +(readonly x) => 0; +>(readonly x) => 0 : (x: any) => number +> : ^ ^^^^^^^^^^^^^^^^ +>x : any +> : ^^^ +>0 : 0 +> : ^ + +// OK to use `readonly` as a name +(readonly) => 0; +>(readonly) => 0 : (readonly: any) => number +> : ^ ^^^^^^^^^^^^^^^^ +>readonly : any +> : ^^^ +>0 : 0 +> : ^ + diff --git a/tests/baselines/reference/readonlyMembers.errors.txt b/tests/baselines/reference/readonlyMembers(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/readonlyMembers.errors.txt rename to tests/baselines/reference/readonlyMembers(target=es2015).errors.txt diff --git a/tests/baselines/reference/readonlyMembers(target=es2015).js b/tests/baselines/reference/readonlyMembers(target=es2015).js new file mode 100644 index 0000000000000..6e7043605a941 --- /dev/null +++ b/tests/baselines/reference/readonlyMembers(target=es2015).js @@ -0,0 +1,135 @@ +//// [tests/cases/compiler/readonlyMembers.ts] //// + +//// [readonlyMembers.ts] +interface X { + readonly a: number; + readonly b?: number; +} +var x: X = { a: 0 }; +x.a = 1; // Error +x.b = 1; // Error + +class C { + readonly a: number; + readonly b = 1; + get c() { return 1 } + constructor() { + this.a = 1; // Ok + this.b = 1; // Ok + this.c = 1; // Error + const f = () => { + this.a = 1; // Error + this.b = 1; // Error + this.c = 1; // Error + }; + (() => { + this.a = 1; // Ok + this.b = 1; // Ok + this.c = 1; // Error + })(); + } + foo() { + this.a = 1; // Error + this.b = 1; // Error + this.c = 1; // Error + } +} + +var o = { + get a() { return 1 }, + get b() { return 1 }, + set b(value) { } +}; +o.a = 1; // Error +o.b = 1; + +var p: { readonly a: number, b: number } = { a: 1, b: 1 }; +p.a = 1; // Error +p.b = 1; +var q: { a: number, b: number } = p; +q.a = 1; +q.b = 1; + +enum E { + A, B, C +} +E.A = 1; // Error + +namespace N { + export const a = 1; + export let b = 1; + export var c = 1; +} +N.a = 1; // Error +N.b = 1; +N.c = 1; + +declare let xx: { readonly [x: string]: string }; +let s = xx["foo"]; +xx["foo"] = "abc"; // Error + +declare let yy: { readonly [x: number]: string, [x: string]: string }; +yy[1] = "abc"; // Error +yy["foo"] = "abc"; + +//// [readonlyMembers.js] +var x = { a: 0 }; +x.a = 1; // Error +x.b = 1; // Error +class C { + get c() { return 1; } + constructor() { + this.b = 1; + this.a = 1; // Ok + this.b = 1; // Ok + this.c = 1; // Error + const f = () => { + this.a = 1; // Error + this.b = 1; // Error + this.c = 1; // Error + }; + (() => { + this.a = 1; // Ok + this.b = 1; // Ok + this.c = 1; // Error + })(); + } + foo() { + this.a = 1; // Error + this.b = 1; // Error + this.c = 1; // Error + } +} +var o = { + get a() { return 1; }, + get b() { return 1; }, + set b(value) { } +}; +o.a = 1; // Error +o.b = 1; +var p = { a: 1, b: 1 }; +p.a = 1; // Error +p.b = 1; +var q = p; +q.a = 1; +q.b = 1; +var E; +(function (E) { + E[E["A"] = 0] = "A"; + E[E["B"] = 1] = "B"; + E[E["C"] = 2] = "C"; +})(E || (E = {})); +E.A = 1; // Error +var N; +(function (N) { + N.a = 1; + N.b = 1; + N.c = 1; +})(N || (N = {})); +N.a = 1; // Error +N.b = 1; +N.c = 1; +let s = xx["foo"]; +xx["foo"] = "abc"; // Error +yy[1] = "abc"; // Error +yy["foo"] = "abc"; diff --git a/tests/baselines/reference/readonlyMembers.symbols b/tests/baselines/reference/readonlyMembers(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/readonlyMembers.symbols rename to tests/baselines/reference/readonlyMembers(target=es2015).symbols diff --git a/tests/baselines/reference/readonlyMembers.types b/tests/baselines/reference/readonlyMembers(target=es2015).types similarity index 100% rename from tests/baselines/reference/readonlyMembers.types rename to tests/baselines/reference/readonlyMembers(target=es2015).types diff --git a/tests/baselines/reference/readonlyMembers(target=es5).errors.txt b/tests/baselines/reference/readonlyMembers(target=es5).errors.txt new file mode 100644 index 0000000000000..4d1793bda4fd2 --- /dev/null +++ b/tests/baselines/reference/readonlyMembers(target=es5).errors.txt @@ -0,0 +1,121 @@ +readonlyMembers.ts(6,3): error TS2540: Cannot assign to 'a' because it is a read-only property. +readonlyMembers.ts(7,3): error TS2540: Cannot assign to 'b' because it is a read-only property. +readonlyMembers.ts(16,14): error TS2540: Cannot assign to 'c' because it is a read-only property. +readonlyMembers.ts(18,18): error TS2540: Cannot assign to 'a' because it is a read-only property. +readonlyMembers.ts(19,18): error TS2540: Cannot assign to 'b' because it is a read-only property. +readonlyMembers.ts(20,18): error TS2540: Cannot assign to 'c' because it is a read-only property. +readonlyMembers.ts(25,18): error TS2540: Cannot assign to 'c' because it is a read-only property. +readonlyMembers.ts(29,14): error TS2540: Cannot assign to 'a' because it is a read-only property. +readonlyMembers.ts(30,14): error TS2540: Cannot assign to 'b' because it is a read-only property. +readonlyMembers.ts(31,14): error TS2540: Cannot assign to 'c' because it is a read-only property. +readonlyMembers.ts(40,3): error TS2540: Cannot assign to 'a' because it is a read-only property. +readonlyMembers.ts(44,3): error TS2540: Cannot assign to 'a' because it is a read-only property. +readonlyMembers.ts(53,3): error TS2540: Cannot assign to 'A' because it is a read-only property. +readonlyMembers.ts(60,3): error TS2540: Cannot assign to 'a' because it is a read-only property. +readonlyMembers.ts(66,1): error TS2542: Index signature in type '{ readonly [x: string]: string; }' only permits reading. +readonlyMembers.ts(69,1): error TS2542: Index signature in type '{ readonly [x: number]: string; [x: string]: string; }' only permits reading. + + +==== readonlyMembers.ts (16 errors) ==== + interface X { + readonly a: number; + readonly b?: number; + } + var x: X = { a: 0 }; + x.a = 1; // Error + ~ +!!! error TS2540: Cannot assign to 'a' because it is a read-only property. + x.b = 1; // Error + ~ +!!! error TS2540: Cannot assign to 'b' because it is a read-only property. + + class C { + readonly a: number; + readonly b = 1; + get c() { return 1 } + constructor() { + this.a = 1; // Ok + this.b = 1; // Ok + this.c = 1; // Error + ~ +!!! error TS2540: Cannot assign to 'c' because it is a read-only property. + const f = () => { + this.a = 1; // Error + ~ +!!! error TS2540: Cannot assign to 'a' because it is a read-only property. + this.b = 1; // Error + ~ +!!! error TS2540: Cannot assign to 'b' because it is a read-only property. + this.c = 1; // Error + ~ +!!! error TS2540: Cannot assign to 'c' because it is a read-only property. + }; + (() => { + this.a = 1; // Ok + this.b = 1; // Ok + this.c = 1; // Error + ~ +!!! error TS2540: Cannot assign to 'c' because it is a read-only property. + })(); + } + foo() { + this.a = 1; // Error + ~ +!!! error TS2540: Cannot assign to 'a' because it is a read-only property. + this.b = 1; // Error + ~ +!!! error TS2540: Cannot assign to 'b' because it is a read-only property. + this.c = 1; // Error + ~ +!!! error TS2540: Cannot assign to 'c' because it is a read-only property. + } + } + + var o = { + get a() { return 1 }, + get b() { return 1 }, + set b(value) { } + }; + o.a = 1; // Error + ~ +!!! error TS2540: Cannot assign to 'a' because it is a read-only property. + o.b = 1; + + var p: { readonly a: number, b: number } = { a: 1, b: 1 }; + p.a = 1; // Error + ~ +!!! error TS2540: Cannot assign to 'a' because it is a read-only property. + p.b = 1; + var q: { a: number, b: number } = p; + q.a = 1; + q.b = 1; + + enum E { + A, B, C + } + E.A = 1; // Error + ~ +!!! error TS2540: Cannot assign to 'A' because it is a read-only property. + + namespace N { + export const a = 1; + export let b = 1; + export var c = 1; + } + N.a = 1; // Error + ~ +!!! error TS2540: Cannot assign to 'a' because it is a read-only property. + N.b = 1; + N.c = 1; + + declare let xx: { readonly [x: string]: string }; + let s = xx["foo"]; + xx["foo"] = "abc"; // Error + ~~~~~~~~~ +!!! error TS2542: Index signature in type '{ readonly [x: string]: string; }' only permits reading. + + declare let yy: { readonly [x: number]: string, [x: string]: string }; + yy[1] = "abc"; // Error + ~~~~~ +!!! error TS2542: Index signature in type '{ readonly [x: number]: string; [x: string]: string; }' only permits reading. + yy["foo"] = "abc"; \ No newline at end of file diff --git a/tests/baselines/reference/readonlyMembers.js b/tests/baselines/reference/readonlyMembers(target=es5).js similarity index 100% rename from tests/baselines/reference/readonlyMembers.js rename to tests/baselines/reference/readonlyMembers(target=es5).js diff --git a/tests/baselines/reference/readonlyMembers(target=es5).symbols b/tests/baselines/reference/readonlyMembers(target=es5).symbols new file mode 100644 index 0000000000000..1b44f766817d1 --- /dev/null +++ b/tests/baselines/reference/readonlyMembers(target=es5).symbols @@ -0,0 +1,231 @@ +//// [tests/cases/compiler/readonlyMembers.ts] //// + +=== readonlyMembers.ts === +interface X { +>X : Symbol(X, Decl(readonlyMembers.ts, 0, 0)) + + readonly a: number; +>a : Symbol(X.a, Decl(readonlyMembers.ts, 0, 13)) + + readonly b?: number; +>b : Symbol(X.b, Decl(readonlyMembers.ts, 1, 23)) +} +var x: X = { a: 0 }; +>x : Symbol(x, Decl(readonlyMembers.ts, 4, 3)) +>X : Symbol(X, Decl(readonlyMembers.ts, 0, 0)) +>a : Symbol(a, Decl(readonlyMembers.ts, 4, 12)) + +x.a = 1; // Error +>x.a : Symbol(X.a, Decl(readonlyMembers.ts, 0, 13)) +>x : Symbol(x, Decl(readonlyMembers.ts, 4, 3)) +>a : Symbol(X.a, Decl(readonlyMembers.ts, 0, 13)) + +x.b = 1; // Error +>x.b : Symbol(X.b, Decl(readonlyMembers.ts, 1, 23)) +>x : Symbol(x, Decl(readonlyMembers.ts, 4, 3)) +>b : Symbol(X.b, Decl(readonlyMembers.ts, 1, 23)) + +class C { +>C : Symbol(C, Decl(readonlyMembers.ts, 6, 8)) + + readonly a: number; +>a : Symbol(C.a, Decl(readonlyMembers.ts, 8, 9)) + + readonly b = 1; +>b : Symbol(C.b, Decl(readonlyMembers.ts, 9, 23)) + + get c() { return 1 } +>c : Symbol(C.c, Decl(readonlyMembers.ts, 10, 19)) + + constructor() { + this.a = 1; // Ok +>this.a : Symbol(C.a, Decl(readonlyMembers.ts, 8, 9)) +>this : Symbol(C, Decl(readonlyMembers.ts, 6, 8)) +>a : Symbol(C.a, Decl(readonlyMembers.ts, 8, 9)) + + this.b = 1; // Ok +>this.b : Symbol(C.b, Decl(readonlyMembers.ts, 9, 23)) +>this : Symbol(C, Decl(readonlyMembers.ts, 6, 8)) +>b : Symbol(C.b, Decl(readonlyMembers.ts, 9, 23)) + + this.c = 1; // Error +>this.c : Symbol(C.c, Decl(readonlyMembers.ts, 10, 19)) +>this : Symbol(C, Decl(readonlyMembers.ts, 6, 8)) +>c : Symbol(C.c, Decl(readonlyMembers.ts, 10, 19)) + + const f = () => { +>f : Symbol(f, Decl(readonlyMembers.ts, 16, 13)) + + this.a = 1; // Error +>this.a : Symbol(C.a, Decl(readonlyMembers.ts, 8, 9)) +>this : Symbol(C, Decl(readonlyMembers.ts, 6, 8)) +>a : Symbol(C.a, Decl(readonlyMembers.ts, 8, 9)) + + this.b = 1; // Error +>this.b : Symbol(C.b, Decl(readonlyMembers.ts, 9, 23)) +>this : Symbol(C, Decl(readonlyMembers.ts, 6, 8)) +>b : Symbol(C.b, Decl(readonlyMembers.ts, 9, 23)) + + this.c = 1; // Error +>this.c : Symbol(C.c, Decl(readonlyMembers.ts, 10, 19)) +>this : Symbol(C, Decl(readonlyMembers.ts, 6, 8)) +>c : Symbol(C.c, Decl(readonlyMembers.ts, 10, 19)) + + }; + (() => { + this.a = 1; // Ok +>this.a : Symbol(C.a, Decl(readonlyMembers.ts, 8, 9)) +>this : Symbol(C, Decl(readonlyMembers.ts, 6, 8)) +>a : Symbol(C.a, Decl(readonlyMembers.ts, 8, 9)) + + this.b = 1; // Ok +>this.b : Symbol(C.b, Decl(readonlyMembers.ts, 9, 23)) +>this : Symbol(C, Decl(readonlyMembers.ts, 6, 8)) +>b : Symbol(C.b, Decl(readonlyMembers.ts, 9, 23)) + + this.c = 1; // Error +>this.c : Symbol(C.c, Decl(readonlyMembers.ts, 10, 19)) +>this : Symbol(C, Decl(readonlyMembers.ts, 6, 8)) +>c : Symbol(C.c, Decl(readonlyMembers.ts, 10, 19)) + + })(); + } + foo() { +>foo : Symbol(C.foo, Decl(readonlyMembers.ts, 26, 5)) + + this.a = 1; // Error +>this.a : Symbol(C.a, Decl(readonlyMembers.ts, 8, 9)) +>this : Symbol(C, Decl(readonlyMembers.ts, 6, 8)) +>a : Symbol(C.a, Decl(readonlyMembers.ts, 8, 9)) + + this.b = 1; // Error +>this.b : Symbol(C.b, Decl(readonlyMembers.ts, 9, 23)) +>this : Symbol(C, Decl(readonlyMembers.ts, 6, 8)) +>b : Symbol(C.b, Decl(readonlyMembers.ts, 9, 23)) + + this.c = 1; // Error +>this.c : Symbol(C.c, Decl(readonlyMembers.ts, 10, 19)) +>this : Symbol(C, Decl(readonlyMembers.ts, 6, 8)) +>c : Symbol(C.c, Decl(readonlyMembers.ts, 10, 19)) + } +} + +var o = { +>o : Symbol(o, Decl(readonlyMembers.ts, 34, 3)) + + get a() { return 1 }, +>a : Symbol(a, Decl(readonlyMembers.ts, 34, 9)) + + get b() { return 1 }, +>b : Symbol(b, Decl(readonlyMembers.ts, 35, 25), Decl(readonlyMembers.ts, 36, 25)) + + set b(value) { } +>b : Symbol(b, Decl(readonlyMembers.ts, 35, 25), Decl(readonlyMembers.ts, 36, 25)) +>value : Symbol(value, Decl(readonlyMembers.ts, 37, 10)) + +}; +o.a = 1; // Error +>o.a : Symbol(a, Decl(readonlyMembers.ts, 34, 9)) +>o : Symbol(o, Decl(readonlyMembers.ts, 34, 3)) +>a : Symbol(a, Decl(readonlyMembers.ts, 34, 9)) + +o.b = 1; +>o.b : Symbol(b, Decl(readonlyMembers.ts, 35, 25), Decl(readonlyMembers.ts, 36, 25)) +>o : Symbol(o, Decl(readonlyMembers.ts, 34, 3)) +>b : Symbol(b, Decl(readonlyMembers.ts, 35, 25), Decl(readonlyMembers.ts, 36, 25)) + +var p: { readonly a: number, b: number } = { a: 1, b: 1 }; +>p : Symbol(p, Decl(readonlyMembers.ts, 42, 3)) +>a : Symbol(a, Decl(readonlyMembers.ts, 42, 8)) +>b : Symbol(b, Decl(readonlyMembers.ts, 42, 28)) +>a : Symbol(a, Decl(readonlyMembers.ts, 42, 44)) +>b : Symbol(b, Decl(readonlyMembers.ts, 42, 50)) + +p.a = 1; // Error +>p.a : Symbol(a, Decl(readonlyMembers.ts, 42, 8)) +>p : Symbol(p, Decl(readonlyMembers.ts, 42, 3)) +>a : Symbol(a, Decl(readonlyMembers.ts, 42, 8)) + +p.b = 1; +>p.b : Symbol(b, Decl(readonlyMembers.ts, 42, 28)) +>p : Symbol(p, Decl(readonlyMembers.ts, 42, 3)) +>b : Symbol(b, Decl(readonlyMembers.ts, 42, 28)) + +var q: { a: number, b: number } = p; +>q : Symbol(q, Decl(readonlyMembers.ts, 45, 3)) +>a : Symbol(a, Decl(readonlyMembers.ts, 45, 8)) +>b : Symbol(b, Decl(readonlyMembers.ts, 45, 19)) +>p : Symbol(p, Decl(readonlyMembers.ts, 42, 3)) + +q.a = 1; +>q.a : Symbol(a, Decl(readonlyMembers.ts, 45, 8)) +>q : Symbol(q, Decl(readonlyMembers.ts, 45, 3)) +>a : Symbol(a, Decl(readonlyMembers.ts, 45, 8)) + +q.b = 1; +>q.b : Symbol(b, Decl(readonlyMembers.ts, 45, 19)) +>q : Symbol(q, Decl(readonlyMembers.ts, 45, 3)) +>b : Symbol(b, Decl(readonlyMembers.ts, 45, 19)) + +enum E { +>E : Symbol(E, Decl(readonlyMembers.ts, 47, 8)) + + A, B, C +>A : Symbol(E.A, Decl(readonlyMembers.ts, 49, 8)) +>B : Symbol(E.B, Decl(readonlyMembers.ts, 50, 6)) +>C : Symbol(E.C, Decl(readonlyMembers.ts, 50, 9)) +} +E.A = 1; // Error +>E.A : Symbol(E.A, Decl(readonlyMembers.ts, 49, 8)) +>E : Symbol(E, Decl(readonlyMembers.ts, 47, 8)) +>A : Symbol(E.A, Decl(readonlyMembers.ts, 49, 8)) + +namespace N { +>N : Symbol(N, Decl(readonlyMembers.ts, 52, 8)) + + export const a = 1; +>a : Symbol(a, Decl(readonlyMembers.ts, 55, 16)) + + export let b = 1; +>b : Symbol(b, Decl(readonlyMembers.ts, 56, 14)) + + export var c = 1; +>c : Symbol(c, Decl(readonlyMembers.ts, 57, 14)) +} +N.a = 1; // Error +>N.a : Symbol(N.a, Decl(readonlyMembers.ts, 55, 16)) +>N : Symbol(N, Decl(readonlyMembers.ts, 52, 8)) +>a : Symbol(N.a, Decl(readonlyMembers.ts, 55, 16)) + +N.b = 1; +>N.b : Symbol(N.b, Decl(readonlyMembers.ts, 56, 14)) +>N : Symbol(N, Decl(readonlyMembers.ts, 52, 8)) +>b : Symbol(N.b, Decl(readonlyMembers.ts, 56, 14)) + +N.c = 1; +>N.c : Symbol(N.c, Decl(readonlyMembers.ts, 57, 14)) +>N : Symbol(N, Decl(readonlyMembers.ts, 52, 8)) +>c : Symbol(N.c, Decl(readonlyMembers.ts, 57, 14)) + +declare let xx: { readonly [x: string]: string }; +>xx : Symbol(xx, Decl(readonlyMembers.ts, 63, 11)) +>x : Symbol(x, Decl(readonlyMembers.ts, 63, 28)) + +let s = xx["foo"]; +>s : Symbol(s, Decl(readonlyMembers.ts, 64, 3)) +>xx : Symbol(xx, Decl(readonlyMembers.ts, 63, 11)) + +xx["foo"] = "abc"; // Error +>xx : Symbol(xx, Decl(readonlyMembers.ts, 63, 11)) + +declare let yy: { readonly [x: number]: string, [x: string]: string }; +>yy : Symbol(yy, Decl(readonlyMembers.ts, 67, 11)) +>x : Symbol(x, Decl(readonlyMembers.ts, 67, 28)) +>x : Symbol(x, Decl(readonlyMembers.ts, 67, 49)) + +yy[1] = "abc"; // Error +>yy : Symbol(yy, Decl(readonlyMembers.ts, 67, 11)) + +yy["foo"] = "abc"; +>yy : Symbol(yy, Decl(readonlyMembers.ts, 67, 11)) + diff --git a/tests/baselines/reference/readonlyMembers(target=es5).types b/tests/baselines/reference/readonlyMembers(target=es5).types new file mode 100644 index 0000000000000..de4e18aa81f4b --- /dev/null +++ b/tests/baselines/reference/readonlyMembers(target=es5).types @@ -0,0 +1,501 @@ +//// [tests/cases/compiler/readonlyMembers.ts] //// + +=== readonlyMembers.ts === +interface X { + readonly a: number; +>a : number +> : ^^^^^^ + + readonly b?: number; +>b : number +> : ^^^^^^ +} +var x: X = { a: 0 }; +>x : X +> : ^ +>{ a: 0 } : { a: number; } +> : ^^^^^^^^^^^^^^ +>a : number +> : ^^^^^^ +>0 : 0 +> : ^ + +x.a = 1; // Error +>x.a = 1 : 1 +> : ^ +>x.a : any +> : ^^^ +>x : X +> : ^ +>a : any +> : ^^^ +>1 : 1 +> : ^ + +x.b = 1; // Error +>x.b = 1 : 1 +> : ^ +>x.b : any +> : ^^^ +>x : X +> : ^ +>b : any +> : ^^^ +>1 : 1 +> : ^ + +class C { +>C : C +> : ^ + + readonly a: number; +>a : number +> : ^^^^^^ + + readonly b = 1; +>b : 1 +> : ^ +>1 : 1 +> : ^ + + get c() { return 1 } +>c : number +> : ^^^^^^ +>1 : 1 +> : ^ + + constructor() { + this.a = 1; // Ok +>this.a = 1 : 1 +> : ^ +>this.a : number +> : ^^^^^^ +>this : this +> : ^^^^ +>a : number +> : ^^^^^^ +>1 : 1 +> : ^ + + this.b = 1; // Ok +>this.b = 1 : 1 +> : ^ +>this.b : 1 +> : ^ +>this : this +> : ^^^^ +>b : 1 +> : ^ +>1 : 1 +> : ^ + + this.c = 1; // Error +>this.c = 1 : 1 +> : ^ +>this.c : any +> : ^^^ +>this : this +> : ^^^^ +>c : any +> : ^^^ +>1 : 1 +> : ^ + + const f = () => { +>f : () => void +> : ^^^^^^^^^^ +>() => { this.a = 1; // Error this.b = 1; // Error this.c = 1; // Error } : () => void +> : ^^^^^^^^^^ + + this.a = 1; // Error +>this.a = 1 : 1 +> : ^ +>this.a : any +> : ^^^ +>this : this +> : ^^^^ +>a : any +> : ^^^ +>1 : 1 +> : ^ + + this.b = 1; // Error +>this.b = 1 : 1 +> : ^ +>this.b : any +> : ^^^ +>this : this +> : ^^^^ +>b : any +> : ^^^ +>1 : 1 +> : ^ + + this.c = 1; // Error +>this.c = 1 : 1 +> : ^ +>this.c : any +> : ^^^ +>this : this +> : ^^^^ +>c : any +> : ^^^ +>1 : 1 +> : ^ + + }; + (() => { +>(() => { this.a = 1; // Ok this.b = 1; // Ok this.c = 1; // Error })() : void +> : ^^^^ +>(() => { this.a = 1; // Ok this.b = 1; // Ok this.c = 1; // Error }) : () => void +> : ^^^^^^^^^^ +>() => { this.a = 1; // Ok this.b = 1; // Ok this.c = 1; // Error } : () => void +> : ^^^^^^^^^^ + + this.a = 1; // Ok +>this.a = 1 : 1 +> : ^ +>this.a : number +> : ^^^^^^ +>this : this +> : ^^^^ +>a : number +> : ^^^^^^ +>1 : 1 +> : ^ + + this.b = 1; // Ok +>this.b = 1 : 1 +> : ^ +>this.b : 1 +> : ^ +>this : this +> : ^^^^ +>b : 1 +> : ^ +>1 : 1 +> : ^ + + this.c = 1; // Error +>this.c = 1 : 1 +> : ^ +>this.c : any +> : ^^^ +>this : this +> : ^^^^ +>c : any +> : ^^^ +>1 : 1 +> : ^ + + })(); + } + foo() { +>foo : () => void +> : ^^^^^^^^^^ + + this.a = 1; // Error +>this.a = 1 : 1 +> : ^ +>this.a : any +> : ^^^ +>this : this +> : ^^^^ +>a : any +> : ^^^ +>1 : 1 +> : ^ + + this.b = 1; // Error +>this.b = 1 : 1 +> : ^ +>this.b : any +> : ^^^ +>this : this +> : ^^^^ +>b : any +> : ^^^ +>1 : 1 +> : ^ + + this.c = 1; // Error +>this.c = 1 : 1 +> : ^ +>this.c : any +> : ^^^ +>this : this +> : ^^^^ +>c : any +> : ^^^ +>1 : 1 +> : ^ + } +} + +var o = { +>o : { readonly a: number; b: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ get a() { return 1 }, get b() { return 1 }, set b(value) { }} : { readonly a: number; b: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + get a() { return 1 }, +>a : number +> : ^^^^^^ +>1 : 1 +> : ^ + + get b() { return 1 }, +>b : number +> : ^^^^^^ +>1 : 1 +> : ^ + + set b(value) { } +>b : number +> : ^^^^^^ +>value : number +> : ^^^^^^ + +}; +o.a = 1; // Error +>o.a = 1 : 1 +> : ^ +>o.a : any +> : ^^^ +>o : { readonly a: number; b: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>a : any +> : ^^^ +>1 : 1 +> : ^ + +o.b = 1; +>o.b = 1 : 1 +> : ^ +>o.b : number +> : ^^^^^^ +>o : { readonly a: number; b: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>b : number +> : ^^^^^^ +>1 : 1 +> : ^ + +var p: { readonly a: number, b: number } = { a: 1, b: 1 }; +>p : { readonly a: number; b: number; } +> : ^^^^^^^^^^^^^^ ^^^^^ ^^^ +>a : number +> : ^^^^^^ +>b : number +> : ^^^^^^ +>{ a: 1, b: 1 } : { a: number; b: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>a : number +> : ^^^^^^ +>1 : 1 +> : ^ +>b : number +> : ^^^^^^ +>1 : 1 +> : ^ + +p.a = 1; // Error +>p.a = 1 : 1 +> : ^ +>p.a : any +> : ^^^ +>p : { readonly a: number; b: number; } +> : ^^^^^^^^^^^^^^ ^^^^^ ^^^ +>a : any +> : ^^^ +>1 : 1 +> : ^ + +p.b = 1; +>p.b = 1 : 1 +> : ^ +>p.b : number +> : ^^^^^^ +>p : { readonly a: number; b: number; } +> : ^^^^^^^^^^^^^^ ^^^^^ ^^^ +>b : number +> : ^^^^^^ +>1 : 1 +> : ^ + +var q: { a: number, b: number } = p; +>q : { a: number; b: number; } +> : ^^^^^ ^^^^^ ^^^ +>a : number +> : ^^^^^^ +>b : number +> : ^^^^^^ +>p : { readonly a: number; b: number; } +> : ^^^^^^^^^^^^^^ ^^^^^ ^^^ + +q.a = 1; +>q.a = 1 : 1 +> : ^ +>q.a : number +> : ^^^^^^ +>q : { a: number; b: number; } +> : ^^^^^ ^^^^^ ^^^ +>a : number +> : ^^^^^^ +>1 : 1 +> : ^ + +q.b = 1; +>q.b = 1 : 1 +> : ^ +>q.b : number +> : ^^^^^^ +>q : { a: number; b: number; } +> : ^^^^^ ^^^^^ ^^^ +>b : number +> : ^^^^^^ +>1 : 1 +> : ^ + +enum E { +>E : E +> : ^ + + A, B, C +>A : E.A +> : ^^^ +>B : E.B +> : ^^^ +>C : E.C +> : ^^^ +} +E.A = 1; // Error +>E.A = 1 : 1 +> : ^ +>E.A : any +> : ^^^ +>E : typeof E +> : ^^^^^^^^ +>A : any +> : ^^^ +>1 : 1 +> : ^ + +namespace N { +>N : typeof N +> : ^^^^^^^^ + + export const a = 1; +>a : 1 +> : ^ +>1 : 1 +> : ^ + + export let b = 1; +>b : number +> : ^^^^^^ +>1 : 1 +> : ^ + + export var c = 1; +>c : number +> : ^^^^^^ +>1 : 1 +> : ^ +} +N.a = 1; // Error +>N.a = 1 : 1 +> : ^ +>N.a : any +> : ^^^ +>N : typeof N +> : ^^^^^^^^ +>a : any +> : ^^^ +>1 : 1 +> : ^ + +N.b = 1; +>N.b = 1 : 1 +> : ^ +>N.b : number +> : ^^^^^^ +>N : typeof N +> : ^^^^^^^^ +>b : number +> : ^^^^^^ +>1 : 1 +> : ^ + +N.c = 1; +>N.c = 1 : 1 +> : ^ +>N.c : number +> : ^^^^^^ +>N : typeof N +> : ^^^^^^^^ +>c : number +> : ^^^^^^ +>1 : 1 +> : ^ + +declare let xx: { readonly [x: string]: string }; +>xx : { readonly [x: string]: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>x : string +> : ^^^^^^ + +let s = xx["foo"]; +>s : string +> : ^^^^^^ +>xx["foo"] : string +> : ^^^^^^ +>xx : { readonly [x: string]: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>"foo" : "foo" +> : ^^^^^ + +xx["foo"] = "abc"; // Error +>xx["foo"] = "abc" : "abc" +> : ^^^^^ +>xx["foo"] : string +> : ^^^^^^ +>xx : { readonly [x: string]: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>"foo" : "foo" +> : ^^^^^ +>"abc" : "abc" +> : ^^^^^ + +declare let yy: { readonly [x: number]: string, [x: string]: string }; +>yy : { readonly [x: number]: string; [x: string]: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>x : number +> : ^^^^^^ +>x : string +> : ^^^^^^ + +yy[1] = "abc"; // Error +>yy[1] = "abc" : "abc" +> : ^^^^^ +>yy[1] : string +> : ^^^^^^ +>yy : { readonly [x: number]: string; [x: string]: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>1 : 1 +> : ^ +>"abc" : "abc" +> : ^^^^^ + +yy["foo"] = "abc"; +>yy["foo"] = "abc" : "abc" +> : ^^^^^ +>yy["foo"] : string +> : ^^^^^^ +>yy : { readonly [x: number]: string; [x: string]: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>"foo" : "foo" +> : ^^^^^ +>"abc" : "abc" +> : ^^^^^ + diff --git a/tests/baselines/reference/recursiveProperties(target=es2015).js b/tests/baselines/reference/recursiveProperties(target=es2015).js new file mode 100644 index 0000000000000..4741a22aea793 --- /dev/null +++ b/tests/baselines/reference/recursiveProperties(target=es2015).js @@ -0,0 +1,18 @@ +//// [tests/cases/compiler/recursiveProperties.ts] //// + +//// [recursiveProperties.ts] +class A { + get testProp() { return this.testProp; } +} + +class B { + set testProp(value:string) { this.testProp = value; } +} + +//// [recursiveProperties.js] +class A { + get testProp() { return this.testProp; } +} +class B { + set testProp(value) { this.testProp = value; } +} diff --git a/tests/baselines/reference/recursiveProperties.symbols b/tests/baselines/reference/recursiveProperties(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/recursiveProperties.symbols rename to tests/baselines/reference/recursiveProperties(target=es2015).symbols diff --git a/tests/baselines/reference/recursiveProperties.types b/tests/baselines/reference/recursiveProperties(target=es2015).types similarity index 100% rename from tests/baselines/reference/recursiveProperties.types rename to tests/baselines/reference/recursiveProperties(target=es2015).types diff --git a/tests/baselines/reference/recursiveProperties.js b/tests/baselines/reference/recursiveProperties(target=es5).js similarity index 100% rename from tests/baselines/reference/recursiveProperties.js rename to tests/baselines/reference/recursiveProperties(target=es5).js diff --git a/tests/baselines/reference/recursiveProperties(target=es5).symbols b/tests/baselines/reference/recursiveProperties(target=es5).symbols new file mode 100644 index 0000000000000..c840f9f19a69b --- /dev/null +++ b/tests/baselines/reference/recursiveProperties(target=es5).symbols @@ -0,0 +1,24 @@ +//// [tests/cases/compiler/recursiveProperties.ts] //// + +=== recursiveProperties.ts === +class A { +>A : Symbol(A, Decl(recursiveProperties.ts, 0, 0)) + + get testProp() { return this.testProp; } +>testProp : Symbol(A.testProp, Decl(recursiveProperties.ts, 0, 9)) +>this.testProp : Symbol(A.testProp, Decl(recursiveProperties.ts, 0, 9)) +>this : Symbol(A, Decl(recursiveProperties.ts, 0, 0)) +>testProp : Symbol(A.testProp, Decl(recursiveProperties.ts, 0, 9)) +} + +class B { +>B : Symbol(B, Decl(recursiveProperties.ts, 2, 1)) + + set testProp(value:string) { this.testProp = value; } +>testProp : Symbol(B.testProp, Decl(recursiveProperties.ts, 4, 9)) +>value : Symbol(value, Decl(recursiveProperties.ts, 5, 17)) +>this.testProp : Symbol(B.testProp, Decl(recursiveProperties.ts, 4, 9)) +>this : Symbol(B, Decl(recursiveProperties.ts, 2, 1)) +>testProp : Symbol(B.testProp, Decl(recursiveProperties.ts, 4, 9)) +>value : Symbol(value, Decl(recursiveProperties.ts, 5, 17)) +} diff --git a/tests/baselines/reference/recursiveProperties(target=es5).types b/tests/baselines/reference/recursiveProperties(target=es5).types new file mode 100644 index 0000000000000..d20f40ed793bb --- /dev/null +++ b/tests/baselines/reference/recursiveProperties(target=es5).types @@ -0,0 +1,36 @@ +//// [tests/cases/compiler/recursiveProperties.ts] //// + +=== recursiveProperties.ts === +class A { +>A : A +> : ^ + + get testProp() { return this.testProp; } +>testProp : any +>this.testProp : any +>this : this +> : ^^^^ +>testProp : any +> : ^^^ +} + +class B { +>B : B +> : ^ + + set testProp(value:string) { this.testProp = value; } +>testProp : string +> : ^^^^^^ +>value : string +> : ^^^^^^ +>this.testProp = value : string +> : ^^^^^^ +>this.testProp : string +> : ^^^^^^ +>this : this +> : ^^^^ +>testProp : string +> : ^^^^^^ +>value : string +> : ^^^^^^ +} diff --git a/tests/baselines/reference/restElementWithNumberPropertyName(target=es2015).js b/tests/baselines/reference/restElementWithNumberPropertyName(target=es2015).js new file mode 100644 index 0000000000000..9c3847fd61993 --- /dev/null +++ b/tests/baselines/reference/restElementWithNumberPropertyName(target=es2015).js @@ -0,0 +1,19 @@ +//// [tests/cases/compiler/restElementWithNumberPropertyName.ts] //// + +//// [restElementWithNumberPropertyName.ts] +const { 0: a, ...b } = [0, 1, 2]; + + +//// [restElementWithNumberPropertyName.js] +var __rest = (this && this.__rest) || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +const _a = [0, 1, 2], { 0: a } = _a, b = __rest(_a, ["0"]); diff --git a/tests/baselines/reference/restElementWithNumberPropertyName.symbols b/tests/baselines/reference/restElementWithNumberPropertyName(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/restElementWithNumberPropertyName.symbols rename to tests/baselines/reference/restElementWithNumberPropertyName(target=es2015).symbols diff --git a/tests/baselines/reference/restElementWithNumberPropertyName.types b/tests/baselines/reference/restElementWithNumberPropertyName(target=es2015).types similarity index 100% rename from tests/baselines/reference/restElementWithNumberPropertyName.types rename to tests/baselines/reference/restElementWithNumberPropertyName(target=es2015).types diff --git a/tests/baselines/reference/restElementWithNumberPropertyName.js b/tests/baselines/reference/restElementWithNumberPropertyName(target=es5).js similarity index 100% rename from tests/baselines/reference/restElementWithNumberPropertyName.js rename to tests/baselines/reference/restElementWithNumberPropertyName(target=es5).js diff --git a/tests/baselines/reference/restElementWithNumberPropertyName(target=es5).symbols b/tests/baselines/reference/restElementWithNumberPropertyName(target=es5).symbols new file mode 100644 index 0000000000000..e51e2672ab12c --- /dev/null +++ b/tests/baselines/reference/restElementWithNumberPropertyName(target=es5).symbols @@ -0,0 +1,7 @@ +//// [tests/cases/compiler/restElementWithNumberPropertyName.ts] //// + +=== restElementWithNumberPropertyName.ts === +const { 0: a, ...b } = [0, 1, 2]; +>a : Symbol(a, Decl(restElementWithNumberPropertyName.ts, 0, 7)) +>b : Symbol(b, Decl(restElementWithNumberPropertyName.ts, 0, 13)) + diff --git a/tests/baselines/reference/restElementWithNumberPropertyName(target=es5).types b/tests/baselines/reference/restElementWithNumberPropertyName(target=es5).types new file mode 100644 index 0000000000000..a8fb68e1f6245 --- /dev/null +++ b/tests/baselines/reference/restElementWithNumberPropertyName(target=es5).types @@ -0,0 +1,17 @@ +//// [tests/cases/compiler/restElementWithNumberPropertyName.ts] //// + +=== restElementWithNumberPropertyName.ts === +const { 0: a, ...b } = [0, 1, 2]; +>a : number +> : ^^^^^^ +>b : { [n: number]: number; 0: number; 1: number; 2: number; length: 3; toString(): string; toLocaleString(): string; toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions & Intl.DateTimeFormatOptions): string; pop(): number; push(...items: number[]): number; concat(...items: ConcatArray[]): number[]; concat(...items: (number | ConcatArray)[]): number[]; join(separator?: string): string; reverse(): number[]; shift(): number; slice(start?: number, end?: number): number[]; sort(compareFn?: (a: number, b: number) => number): [number, number, number]; splice(start: number, deleteCount?: number): number[]; splice(start: number, deleteCount: number, ...items: number[]): number[]; unshift(...items: number[]): number; indexOf(searchElement: number, fromIndex?: number): number; lastIndexOf(searchElement: number, fromIndex?: number): number; every(predicate: (value: number, index: number, array: number[]) => value is S, thisArg?: any): this is S[]; every(predicate: (value: number, index: number, array: number[]) => unknown, thisArg?: any): boolean; some(predicate: (value: number, index: number, array: number[]) => unknown, thisArg?: any): boolean; forEach(callbackfn: (value: number, index: number, array: number[]) => void, thisArg?: any): void; map(callbackfn: (value: number, index: number, array: number[]) => U, thisArg?: any): U[]; filter(predicate: (value: number, index: number, array: number[]) => value is S, thisArg?: any): S[]; filter(predicate: (value: number, index: number, array: number[]) => unknown, thisArg?: any): number[]; reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: number[]) => number): number; reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: number[]) => number, initialValue: number): number; reduce(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: number[]) => U, initialValue: U): U; reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: number[]) => number): number; reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: number[]) => number, initialValue: number): number; reduceRight(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: number[]) => U, initialValue: U): U; find(predicate: (value: number, index: number, obj: number[]) => value is S, thisArg?: any): S; find(predicate: (value: number, index: number, obj: number[]) => unknown, thisArg?: any): number; findIndex(predicate: (value: number, index: number, obj: number[]) => unknown, thisArg?: any): number; fill(value: number, start?: number, end?: number): [number, number, number]; copyWithin(target: number, start: number, end?: number): [number, number, number]; entries(): ArrayIterator<[number, number]>; keys(): ArrayIterator; values(): ArrayIterator; [Symbol.iterator](): ArrayIterator; [Symbol.unscopables]: { [x: number]: boolean; length?: boolean; toString?: boolean; toLocaleString?: boolean; pop?: boolean; push?: boolean; concat?: boolean; join?: boolean; reverse?: boolean; shift?: boolean; slice?: boolean; sort?: boolean; splice?: boolean; unshift?: boolean; indexOf?: boolean; lastIndexOf?: boolean; every?: boolean; some?: boolean; forEach?: boolean; map?: boolean; filter?: boolean; reduce?: boolean; reduceRight?: boolean; find?: boolean; findIndex?: boolean; fill?: boolean; copyWithin?: boolean; entries?: boolean; keys?: boolean; values?: boolean; [Symbol.iterator]?: boolean; readonly [Symbol.unscopables]?: boolean; }; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^ ^^ ^^^ ^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^ ^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^ ^^ ^^^ ^^^^^^^^^^^^^^^^^^ ^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^ ^^ ^^^ ^^^^^^^^^^^^^^^^^^^^ ^^ ^^ ^^ ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^ ^^^ ^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^ ^^^ ^^^ ^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^ ^^^^^^^^^^ ^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^ ^^^ ^ ^^^^^^^^ ^^^ ^^^^^^^^^^ ^^ ^^ ^^^^^^^^^^^^^^^ ^^ ^^^ ^^^ ^^^^^^^ ^^^ ^^^^^^^^^^ ^^ ^^ ^^^^^^^^^^^^^^^ ^^ ^^^ ^^^ ^^^^^^^^^^ ^^^ ^^^^^^^^^^ ^^ ^^ ^^^^^^^^^^^^^^^ ^^ ^^^ ^^^ ^^^^^^ ^^ ^^^ ^^^^^^^^^^ ^^ ^^ ^^^^^^^^^^^^^^^^^^ ^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^ ^^^^^^^^^^ ^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^ ^^^^^^^^^^^^^^^ ^^^ ^^^^^^^^^^ ^^ ^^ ^^^^^^^^^^^^^^^ ^^ ^^^ ^^^^^^^^^^^^^^^^^^^^ ^^^ ^^^^^^^^^^ ^^^^^^^^^^ ^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^ ^^^^^^^^^^ ^^^^^^^^^^ ^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^ ^^^ ^^^^^ ^^^^^^^^^^ ^^ ^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ ^^^ ^^^^^^^^^^ ^^^^^^^^^^ ^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^ ^^^^^^^^^^ ^^^^^^^^^^ ^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^ ^^^ ^^^^^ ^^^^^^^^^^ ^^ ^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^ ^^^^^^^^^^ ^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^ ^^^^^^^^^^^ ^^^ ^^^^^^^^^^ ^^ ^^ ^^^^^^^^^^^^^^^ ^^ ^^^ ^^^^^^^^^^^^^^^^^^^^^ ^^^ ^^^^^^^^^^ ^^ ^^ ^^^^^^^^^^^^^^^ ^^ ^^^ ^^^ ^^^^^^^ ^^^^^^^^^^ ^^^ ^^ ^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^ ^^ ^^ ^^ ^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>[0, 1, 2] : [number, number, number] +> : ^^^^^^^^^^^^^^^^^^^^^^^^ +>0 : 0 +> : ^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ + diff --git a/tests/baselines/reference/restParameterInDownlevelGenerator(target=es2015).js b/tests/baselines/reference/restParameterInDownlevelGenerator(target=es2015).js new file mode 100644 index 0000000000000..6c11e364b07b7 --- /dev/null +++ b/tests/baselines/reference/restParameterInDownlevelGenerator(target=es2015).js @@ -0,0 +1,14 @@ +//// [tests/cases/conformance/generators/restParameterInDownlevelGenerator.ts] //// + +//// [restParameterInDownlevelGenerator.ts] +// https://github.com/Microsoft/TypeScript/issues/30653 +function * mergeStringLists(...strings: string[]) { + for (var str of strings); +} + +//// [restParameterInDownlevelGenerator.js] +// https://github.com/Microsoft/TypeScript/issues/30653 +function* mergeStringLists(...strings) { + for (var str of strings) + ; +} diff --git a/tests/baselines/reference/restParameterInDownlevelGenerator.symbols b/tests/baselines/reference/restParameterInDownlevelGenerator(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/restParameterInDownlevelGenerator.symbols rename to tests/baselines/reference/restParameterInDownlevelGenerator(target=es2015).symbols diff --git a/tests/baselines/reference/restParameterInDownlevelGenerator.types b/tests/baselines/reference/restParameterInDownlevelGenerator(target=es2015).types similarity index 100% rename from tests/baselines/reference/restParameterInDownlevelGenerator.types rename to tests/baselines/reference/restParameterInDownlevelGenerator(target=es2015).types diff --git a/tests/baselines/reference/restParameterInDownlevelGenerator.js b/tests/baselines/reference/restParameterInDownlevelGenerator(target=es5).js similarity index 100% rename from tests/baselines/reference/restParameterInDownlevelGenerator.js rename to tests/baselines/reference/restParameterInDownlevelGenerator(target=es5).js diff --git a/tests/baselines/reference/restParameterInDownlevelGenerator(target=es5).symbols b/tests/baselines/reference/restParameterInDownlevelGenerator(target=es5).symbols new file mode 100644 index 0000000000000..acc027e7ec4ed --- /dev/null +++ b/tests/baselines/reference/restParameterInDownlevelGenerator(target=es5).symbols @@ -0,0 +1,12 @@ +//// [tests/cases/conformance/generators/restParameterInDownlevelGenerator.ts] //// + +=== restParameterInDownlevelGenerator.ts === +// https://github.com/Microsoft/TypeScript/issues/30653 +function * mergeStringLists(...strings: string[]) { +>mergeStringLists : Symbol(mergeStringLists, Decl(restParameterInDownlevelGenerator.ts, 0, 0)) +>strings : Symbol(strings, Decl(restParameterInDownlevelGenerator.ts, 1, 28)) + + for (var str of strings); +>str : Symbol(str, Decl(restParameterInDownlevelGenerator.ts, 2, 12)) +>strings : Symbol(strings, Decl(restParameterInDownlevelGenerator.ts, 1, 28)) +} diff --git a/tests/baselines/reference/restParameterInDownlevelGenerator(target=es5).types b/tests/baselines/reference/restParameterInDownlevelGenerator(target=es5).types new file mode 100644 index 0000000000000..47785ae58b9b6 --- /dev/null +++ b/tests/baselines/reference/restParameterInDownlevelGenerator(target=es5).types @@ -0,0 +1,16 @@ +//// [tests/cases/conformance/generators/restParameterInDownlevelGenerator.ts] //// + +=== restParameterInDownlevelGenerator.ts === +// https://github.com/Microsoft/TypeScript/issues/30653 +function * mergeStringLists(...strings: string[]) { +>mergeStringLists : (...strings: string[]) => Generator +> : ^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>strings : string[] +> : ^^^^^^^^ + + for (var str of strings); +>str : string +> : ^^^^^^ +>strings : string[] +> : ^^^^^^^^ +} diff --git a/tests/baselines/reference/scannerNumericLiteral1.js b/tests/baselines/reference/scannerNumericLiteral1(target=es2015).js similarity index 100% rename from tests/baselines/reference/scannerNumericLiteral1.js rename to tests/baselines/reference/scannerNumericLiteral1(target=es2015).js diff --git a/tests/baselines/reference/scannerNumericLiteral1.symbols b/tests/baselines/reference/scannerNumericLiteral1(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/scannerNumericLiteral1.symbols rename to tests/baselines/reference/scannerNumericLiteral1(target=es2015).symbols diff --git a/tests/baselines/reference/scannerNumericLiteral1.types b/tests/baselines/reference/scannerNumericLiteral1(target=es2015).types similarity index 100% rename from tests/baselines/reference/scannerNumericLiteral1.types rename to tests/baselines/reference/scannerNumericLiteral1(target=es2015).types diff --git a/tests/baselines/reference/scannerNumericLiteral1(target=es5).js b/tests/baselines/reference/scannerNumericLiteral1(target=es5).js new file mode 100644 index 0000000000000..5cbdcba381559 --- /dev/null +++ b/tests/baselines/reference/scannerNumericLiteral1(target=es5).js @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/scanner/ecmascript5/scannerNumericLiteral1.ts] //// + +//// [scannerNumericLiteral1.ts] +0 + +//// [scannerNumericLiteral1.js] +0; diff --git a/tests/baselines/reference/scannerNumericLiteral1(target=es5).symbols b/tests/baselines/reference/scannerNumericLiteral1(target=es5).symbols new file mode 100644 index 0000000000000..2efc9896343ad --- /dev/null +++ b/tests/baselines/reference/scannerNumericLiteral1(target=es5).symbols @@ -0,0 +1,5 @@ +//// [tests/cases/conformance/scanner/ecmascript5/scannerNumericLiteral1.ts] //// + +=== scannerNumericLiteral1.ts === + +0 diff --git a/tests/baselines/reference/scannerNumericLiteral1(target=es5).types b/tests/baselines/reference/scannerNumericLiteral1(target=es5).types new file mode 100644 index 0000000000000..ed2a3a07329be --- /dev/null +++ b/tests/baselines/reference/scannerNumericLiteral1(target=es5).types @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/scanner/ecmascript5/scannerNumericLiteral1.ts] //// + +=== scannerNumericLiteral1.ts === +0 +>0 : 0 +> : ^ + diff --git a/tests/baselines/reference/scannerNumericLiteral2.errors.txt b/tests/baselines/reference/scannerNumericLiteral2(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/scannerNumericLiteral2.errors.txt rename to tests/baselines/reference/scannerNumericLiteral2(target=es2015).errors.txt diff --git a/tests/baselines/reference/scannerNumericLiteral2.js b/tests/baselines/reference/scannerNumericLiteral2(target=es2015).js similarity index 100% rename from tests/baselines/reference/scannerNumericLiteral2.js rename to tests/baselines/reference/scannerNumericLiteral2(target=es2015).js diff --git a/tests/baselines/reference/scannerNumericLiteral2.symbols b/tests/baselines/reference/scannerNumericLiteral2(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/scannerNumericLiteral2.symbols rename to tests/baselines/reference/scannerNumericLiteral2(target=es2015).symbols diff --git a/tests/baselines/reference/scannerNumericLiteral2.types b/tests/baselines/reference/scannerNumericLiteral2(target=es2015).types similarity index 100% rename from tests/baselines/reference/scannerNumericLiteral2.types rename to tests/baselines/reference/scannerNumericLiteral2(target=es2015).types diff --git a/tests/baselines/reference/scannerNumericLiteral2(target=es5).errors.txt b/tests/baselines/reference/scannerNumericLiteral2(target=es5).errors.txt new file mode 100644 index 0000000000000..d2edf1320cd9b --- /dev/null +++ b/tests/baselines/reference/scannerNumericLiteral2(target=es5).errors.txt @@ -0,0 +1,7 @@ +scannerNumericLiteral2.ts(1,1): error TS1121: Octal literals are not allowed. Use the syntax '0o1'. + + +==== scannerNumericLiteral2.ts (1 errors) ==== + 01 + ~~ +!!! error TS1121: Octal literals are not allowed. Use the syntax '0o1'. \ No newline at end of file diff --git a/tests/baselines/reference/scannerNumericLiteral2(target=es5).js b/tests/baselines/reference/scannerNumericLiteral2(target=es5).js new file mode 100644 index 0000000000000..ff84df86264d7 --- /dev/null +++ b/tests/baselines/reference/scannerNumericLiteral2(target=es5).js @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/scanner/ecmascript5/scannerNumericLiteral2.ts] //// + +//// [scannerNumericLiteral2.ts] +01 + +//// [scannerNumericLiteral2.js] +1; diff --git a/tests/baselines/reference/scannerNumericLiteral2(target=es5).symbols b/tests/baselines/reference/scannerNumericLiteral2(target=es5).symbols new file mode 100644 index 0000000000000..f3d13e8a0c320 --- /dev/null +++ b/tests/baselines/reference/scannerNumericLiteral2(target=es5).symbols @@ -0,0 +1,5 @@ +//// [tests/cases/conformance/scanner/ecmascript5/scannerNumericLiteral2.ts] //// + +=== scannerNumericLiteral2.ts === + +01 diff --git a/tests/baselines/reference/scannerNumericLiteral2(target=es5).types b/tests/baselines/reference/scannerNumericLiteral2(target=es5).types new file mode 100644 index 0000000000000..d06f71c2dd486 --- /dev/null +++ b/tests/baselines/reference/scannerNumericLiteral2(target=es5).types @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/scanner/ecmascript5/scannerNumericLiteral2.ts] //// + +=== scannerNumericLiteral2.ts === +01 +>01 : 1 +> : ^ + diff --git a/tests/baselines/reference/scannerNumericLiteral3.errors.txt b/tests/baselines/reference/scannerNumericLiteral3(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/scannerNumericLiteral3.errors.txt rename to tests/baselines/reference/scannerNumericLiteral3(target=es2015).errors.txt diff --git a/tests/baselines/reference/scannerNumericLiteral3.js b/tests/baselines/reference/scannerNumericLiteral3(target=es2015).js similarity index 100% rename from tests/baselines/reference/scannerNumericLiteral3.js rename to tests/baselines/reference/scannerNumericLiteral3(target=es2015).js diff --git a/tests/baselines/reference/scannerNumericLiteral3.symbols b/tests/baselines/reference/scannerNumericLiteral3(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/scannerNumericLiteral3.symbols rename to tests/baselines/reference/scannerNumericLiteral3(target=es2015).symbols diff --git a/tests/baselines/reference/scannerNumericLiteral3.types b/tests/baselines/reference/scannerNumericLiteral3(target=es2015).types similarity index 100% rename from tests/baselines/reference/scannerNumericLiteral3.types rename to tests/baselines/reference/scannerNumericLiteral3(target=es2015).types diff --git a/tests/baselines/reference/scannerNumericLiteral3(target=es5).errors.txt b/tests/baselines/reference/scannerNumericLiteral3(target=es5).errors.txt new file mode 100644 index 0000000000000..8ea6348309144 --- /dev/null +++ b/tests/baselines/reference/scannerNumericLiteral3(target=es5).errors.txt @@ -0,0 +1,10 @@ +scannerNumericLiteral3.ts(1,1): error TS1121: Octal literals are not allowed. Use the syntax '0o1'. +scannerNumericLiteral3.ts(1,3): error TS1005: ';' expected. + + +==== scannerNumericLiteral3.ts (2 errors) ==== + 01.0 + ~~ +!!! error TS1121: Octal literals are not allowed. Use the syntax '0o1'. + ~~ +!!! error TS1005: ';' expected. \ No newline at end of file diff --git a/tests/baselines/reference/scannerNumericLiteral3(target=es5).js b/tests/baselines/reference/scannerNumericLiteral3(target=es5).js new file mode 100644 index 0000000000000..af350a14f2267 --- /dev/null +++ b/tests/baselines/reference/scannerNumericLiteral3(target=es5).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/scanner/ecmascript5/scannerNumericLiteral3.ts] //// + +//// [scannerNumericLiteral3.ts] +01.0 + +//// [scannerNumericLiteral3.js] +1; +.0; diff --git a/tests/baselines/reference/scannerNumericLiteral3(target=es5).symbols b/tests/baselines/reference/scannerNumericLiteral3(target=es5).symbols new file mode 100644 index 0000000000000..97fada5a591c7 --- /dev/null +++ b/tests/baselines/reference/scannerNumericLiteral3(target=es5).symbols @@ -0,0 +1,5 @@ +//// [tests/cases/conformance/scanner/ecmascript5/scannerNumericLiteral3.ts] //// + +=== scannerNumericLiteral3.ts === + +01.0 diff --git a/tests/baselines/reference/scannerNumericLiteral3(target=es5).types b/tests/baselines/reference/scannerNumericLiteral3(target=es5).types new file mode 100644 index 0000000000000..f5c53ebb368e4 --- /dev/null +++ b/tests/baselines/reference/scannerNumericLiteral3(target=es5).types @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/scanner/ecmascript5/scannerNumericLiteral3.ts] //// + +=== scannerNumericLiteral3.ts === +01.0 +>01 : 1 +> : ^ +>.0 : 0 +> : ^ + diff --git a/tests/baselines/reference/scannerNumericLiteral4.errors.txt b/tests/baselines/reference/scannerNumericLiteral4(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/scannerNumericLiteral4.errors.txt rename to tests/baselines/reference/scannerNumericLiteral4(target=es2015).errors.txt diff --git a/tests/baselines/reference/scannerNumericLiteral4.js b/tests/baselines/reference/scannerNumericLiteral4(target=es2015).js similarity index 100% rename from tests/baselines/reference/scannerNumericLiteral4.js rename to tests/baselines/reference/scannerNumericLiteral4(target=es2015).js diff --git a/tests/baselines/reference/scannerNumericLiteral4.symbols b/tests/baselines/reference/scannerNumericLiteral4(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/scannerNumericLiteral4.symbols rename to tests/baselines/reference/scannerNumericLiteral4(target=es2015).symbols diff --git a/tests/baselines/reference/scannerNumericLiteral4.types b/tests/baselines/reference/scannerNumericLiteral4(target=es2015).types similarity index 100% rename from tests/baselines/reference/scannerNumericLiteral4.types rename to tests/baselines/reference/scannerNumericLiteral4(target=es2015).types diff --git a/tests/baselines/reference/scannerNumericLiteral4(target=es5).errors.txt b/tests/baselines/reference/scannerNumericLiteral4(target=es5).errors.txt new file mode 100644 index 0000000000000..a6cac8bd78afb --- /dev/null +++ b/tests/baselines/reference/scannerNumericLiteral4(target=es5).errors.txt @@ -0,0 +1,7 @@ +scannerNumericLiteral4.ts(1,3): error TS1124: Digit expected. + + +==== scannerNumericLiteral4.ts (1 errors) ==== + 1e + +!!! error TS1124: Digit expected. \ No newline at end of file diff --git a/tests/baselines/reference/scannerNumericLiteral4(target=es5).js b/tests/baselines/reference/scannerNumericLiteral4(target=es5).js new file mode 100644 index 0000000000000..c1523aecd1b74 --- /dev/null +++ b/tests/baselines/reference/scannerNumericLiteral4(target=es5).js @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/scanner/ecmascript5/scannerNumericLiteral4.ts] //// + +//// [scannerNumericLiteral4.ts] +1e + +//// [scannerNumericLiteral4.js] +1e; diff --git a/tests/baselines/reference/scannerNumericLiteral4(target=es5).symbols b/tests/baselines/reference/scannerNumericLiteral4(target=es5).symbols new file mode 100644 index 0000000000000..c2841d716ace7 --- /dev/null +++ b/tests/baselines/reference/scannerNumericLiteral4(target=es5).symbols @@ -0,0 +1,5 @@ +//// [tests/cases/conformance/scanner/ecmascript5/scannerNumericLiteral4.ts] //// + +=== scannerNumericLiteral4.ts === + +1e diff --git a/tests/baselines/reference/scannerNumericLiteral4(target=es5).types b/tests/baselines/reference/scannerNumericLiteral4(target=es5).types new file mode 100644 index 0000000000000..eb900278e2ee8 --- /dev/null +++ b/tests/baselines/reference/scannerNumericLiteral4(target=es5).types @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/scanner/ecmascript5/scannerNumericLiteral4.ts] //// + +=== scannerNumericLiteral4.ts === +1e +>1e : 1 +> : ^ + diff --git a/tests/baselines/reference/scannerNumericLiteral5.js b/tests/baselines/reference/scannerNumericLiteral5(target=es2015).js similarity index 100% rename from tests/baselines/reference/scannerNumericLiteral5.js rename to tests/baselines/reference/scannerNumericLiteral5(target=es2015).js diff --git a/tests/baselines/reference/scannerNumericLiteral5.symbols b/tests/baselines/reference/scannerNumericLiteral5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/scannerNumericLiteral5.symbols rename to tests/baselines/reference/scannerNumericLiteral5(target=es2015).symbols diff --git a/tests/baselines/reference/scannerNumericLiteral5.types b/tests/baselines/reference/scannerNumericLiteral5(target=es2015).types similarity index 100% rename from tests/baselines/reference/scannerNumericLiteral5.types rename to tests/baselines/reference/scannerNumericLiteral5(target=es2015).types diff --git a/tests/baselines/reference/scannerNumericLiteral5(target=es5).js b/tests/baselines/reference/scannerNumericLiteral5(target=es5).js new file mode 100644 index 0000000000000..0fd1109e8402b --- /dev/null +++ b/tests/baselines/reference/scannerNumericLiteral5(target=es5).js @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/scanner/ecmascript5/scannerNumericLiteral5.ts] //// + +//// [scannerNumericLiteral5.ts] +1e0 + +//// [scannerNumericLiteral5.js] +1e0; diff --git a/tests/baselines/reference/scannerNumericLiteral5(target=es5).symbols b/tests/baselines/reference/scannerNumericLiteral5(target=es5).symbols new file mode 100644 index 0000000000000..2d8b2849c0548 --- /dev/null +++ b/tests/baselines/reference/scannerNumericLiteral5(target=es5).symbols @@ -0,0 +1,5 @@ +//// [tests/cases/conformance/scanner/ecmascript5/scannerNumericLiteral5.ts] //// + +=== scannerNumericLiteral5.ts === + +1e0 diff --git a/tests/baselines/reference/scannerNumericLiteral5(target=es5).types b/tests/baselines/reference/scannerNumericLiteral5(target=es5).types new file mode 100644 index 0000000000000..7472bd819f053 --- /dev/null +++ b/tests/baselines/reference/scannerNumericLiteral5(target=es5).types @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/scanner/ecmascript5/scannerNumericLiteral5.ts] //// + +=== scannerNumericLiteral5.ts === +1e0 +>1e0 : 1 +> : ^ + diff --git a/tests/baselines/reference/scannerNumericLiteral6.errors.txt b/tests/baselines/reference/scannerNumericLiteral6(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/scannerNumericLiteral6.errors.txt rename to tests/baselines/reference/scannerNumericLiteral6(target=es2015).errors.txt diff --git a/tests/baselines/reference/scannerNumericLiteral6.js b/tests/baselines/reference/scannerNumericLiteral6(target=es2015).js similarity index 100% rename from tests/baselines/reference/scannerNumericLiteral6.js rename to tests/baselines/reference/scannerNumericLiteral6(target=es2015).js diff --git a/tests/baselines/reference/scannerNumericLiteral6.symbols b/tests/baselines/reference/scannerNumericLiteral6(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/scannerNumericLiteral6.symbols rename to tests/baselines/reference/scannerNumericLiteral6(target=es2015).symbols diff --git a/tests/baselines/reference/scannerNumericLiteral6.types b/tests/baselines/reference/scannerNumericLiteral6(target=es2015).types similarity index 100% rename from tests/baselines/reference/scannerNumericLiteral6.types rename to tests/baselines/reference/scannerNumericLiteral6(target=es2015).types diff --git a/tests/baselines/reference/scannerNumericLiteral6(target=es5).errors.txt b/tests/baselines/reference/scannerNumericLiteral6(target=es5).errors.txt new file mode 100644 index 0000000000000..d604ebeb4a568 --- /dev/null +++ b/tests/baselines/reference/scannerNumericLiteral6(target=es5).errors.txt @@ -0,0 +1,7 @@ +scannerNumericLiteral6.ts(1,4): error TS1124: Digit expected. + + +==== scannerNumericLiteral6.ts (1 errors) ==== + 1e+ + +!!! error TS1124: Digit expected. \ No newline at end of file diff --git a/tests/baselines/reference/scannerNumericLiteral6(target=es5).js b/tests/baselines/reference/scannerNumericLiteral6(target=es5).js new file mode 100644 index 0000000000000..b1d2c5d3c0164 --- /dev/null +++ b/tests/baselines/reference/scannerNumericLiteral6(target=es5).js @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/scanner/ecmascript5/scannerNumericLiteral6.ts] //// + +//// [scannerNumericLiteral6.ts] +1e+ + +//// [scannerNumericLiteral6.js] +1e+; diff --git a/tests/baselines/reference/scannerNumericLiteral6(target=es5).symbols b/tests/baselines/reference/scannerNumericLiteral6(target=es5).symbols new file mode 100644 index 0000000000000..4c0fb27206f03 --- /dev/null +++ b/tests/baselines/reference/scannerNumericLiteral6(target=es5).symbols @@ -0,0 +1,5 @@ +//// [tests/cases/conformance/scanner/ecmascript5/scannerNumericLiteral6.ts] //// + +=== scannerNumericLiteral6.ts === + +1e+ diff --git a/tests/baselines/reference/scannerNumericLiteral6(target=es5).types b/tests/baselines/reference/scannerNumericLiteral6(target=es5).types new file mode 100644 index 0000000000000..caee537b794c7 --- /dev/null +++ b/tests/baselines/reference/scannerNumericLiteral6(target=es5).types @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/scanner/ecmascript5/scannerNumericLiteral6.ts] //// + +=== scannerNumericLiteral6.ts === +1e+ +>1e+ : 1 +> : ^ + diff --git a/tests/baselines/reference/scannerNumericLiteral7.js b/tests/baselines/reference/scannerNumericLiteral7(target=es2015).js similarity index 100% rename from tests/baselines/reference/scannerNumericLiteral7.js rename to tests/baselines/reference/scannerNumericLiteral7(target=es2015).js diff --git a/tests/baselines/reference/scannerNumericLiteral7.symbols b/tests/baselines/reference/scannerNumericLiteral7(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/scannerNumericLiteral7.symbols rename to tests/baselines/reference/scannerNumericLiteral7(target=es2015).symbols diff --git a/tests/baselines/reference/scannerNumericLiteral7.types b/tests/baselines/reference/scannerNumericLiteral7(target=es2015).types similarity index 100% rename from tests/baselines/reference/scannerNumericLiteral7.types rename to tests/baselines/reference/scannerNumericLiteral7(target=es2015).types diff --git a/tests/baselines/reference/scannerNumericLiteral7(target=es5).js b/tests/baselines/reference/scannerNumericLiteral7(target=es5).js new file mode 100644 index 0000000000000..aa78e28d101ef --- /dev/null +++ b/tests/baselines/reference/scannerNumericLiteral7(target=es5).js @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/scanner/ecmascript5/scannerNumericLiteral7.ts] //// + +//// [scannerNumericLiteral7.ts] +1e+0 + +//// [scannerNumericLiteral7.js] +1e+0; diff --git a/tests/baselines/reference/scannerNumericLiteral7(target=es5).symbols b/tests/baselines/reference/scannerNumericLiteral7(target=es5).symbols new file mode 100644 index 0000000000000..68186d422d744 --- /dev/null +++ b/tests/baselines/reference/scannerNumericLiteral7(target=es5).symbols @@ -0,0 +1,5 @@ +//// [tests/cases/conformance/scanner/ecmascript5/scannerNumericLiteral7.ts] //// + +=== scannerNumericLiteral7.ts === + +1e+0 diff --git a/tests/baselines/reference/scannerNumericLiteral7(target=es5).types b/tests/baselines/reference/scannerNumericLiteral7(target=es5).types new file mode 100644 index 0000000000000..5184578e368ff --- /dev/null +++ b/tests/baselines/reference/scannerNumericLiteral7(target=es5).types @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/scanner/ecmascript5/scannerNumericLiteral7.ts] //// + +=== scannerNumericLiteral7.ts === +1e+0 +>1e+0 : 1 +> : ^ + diff --git a/tests/baselines/reference/scannerNumericLiteral8.errors.txt b/tests/baselines/reference/scannerNumericLiteral8(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/scannerNumericLiteral8.errors.txt rename to tests/baselines/reference/scannerNumericLiteral8(target=es2015).errors.txt diff --git a/tests/baselines/reference/scannerNumericLiteral8.js b/tests/baselines/reference/scannerNumericLiteral8(target=es2015).js similarity index 100% rename from tests/baselines/reference/scannerNumericLiteral8.js rename to tests/baselines/reference/scannerNumericLiteral8(target=es2015).js diff --git a/tests/baselines/reference/scannerNumericLiteral8.symbols b/tests/baselines/reference/scannerNumericLiteral8(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/scannerNumericLiteral8.symbols rename to tests/baselines/reference/scannerNumericLiteral8(target=es2015).symbols diff --git a/tests/baselines/reference/scannerNumericLiteral8.types b/tests/baselines/reference/scannerNumericLiteral8(target=es2015).types similarity index 100% rename from tests/baselines/reference/scannerNumericLiteral8.types rename to tests/baselines/reference/scannerNumericLiteral8(target=es2015).types diff --git a/tests/baselines/reference/scannerNumericLiteral8(target=es5).errors.txt b/tests/baselines/reference/scannerNumericLiteral8(target=es5).errors.txt new file mode 100644 index 0000000000000..970824ba5ce0f --- /dev/null +++ b/tests/baselines/reference/scannerNumericLiteral8(target=es5).errors.txt @@ -0,0 +1,7 @@ +scannerNumericLiteral8.ts(1,1): error TS1121: Octal literals are not allowed. Use the syntax '-0o3'. + + +==== scannerNumericLiteral8.ts (1 errors) ==== + -03 + ~~~ +!!! error TS1121: Octal literals are not allowed. Use the syntax '-0o3'. \ No newline at end of file diff --git a/tests/baselines/reference/scannerNumericLiteral8(target=es5).js b/tests/baselines/reference/scannerNumericLiteral8(target=es5).js new file mode 100644 index 0000000000000..071134f843678 --- /dev/null +++ b/tests/baselines/reference/scannerNumericLiteral8(target=es5).js @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/scanner/ecmascript5/scannerNumericLiteral8.ts] //// + +//// [scannerNumericLiteral8.ts] +-03 + +//// [scannerNumericLiteral8.js] +-3; diff --git a/tests/baselines/reference/scannerNumericLiteral8(target=es5).symbols b/tests/baselines/reference/scannerNumericLiteral8(target=es5).symbols new file mode 100644 index 0000000000000..6d91bb5111e1d --- /dev/null +++ b/tests/baselines/reference/scannerNumericLiteral8(target=es5).symbols @@ -0,0 +1,5 @@ +//// [tests/cases/conformance/scanner/ecmascript5/scannerNumericLiteral8.ts] //// + +=== scannerNumericLiteral8.ts === + +-03 diff --git a/tests/baselines/reference/scannerNumericLiteral8(target=es5).types b/tests/baselines/reference/scannerNumericLiteral8(target=es5).types new file mode 100644 index 0000000000000..252da0202e866 --- /dev/null +++ b/tests/baselines/reference/scannerNumericLiteral8(target=es5).types @@ -0,0 +1,9 @@ +//// [tests/cases/conformance/scanner/ecmascript5/scannerNumericLiteral8.ts] //// + +=== scannerNumericLiteral8.ts === +-03 +>-03 : -3 +> : ^^ +>03 : 3 +> : ^ + diff --git a/tests/baselines/reference/scannerNumericLiteral9.errors.txt b/tests/baselines/reference/scannerNumericLiteral9(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/scannerNumericLiteral9.errors.txt rename to tests/baselines/reference/scannerNumericLiteral9(target=es2015).errors.txt diff --git a/tests/baselines/reference/scannerNumericLiteral9.js b/tests/baselines/reference/scannerNumericLiteral9(target=es2015).js similarity index 100% rename from tests/baselines/reference/scannerNumericLiteral9.js rename to tests/baselines/reference/scannerNumericLiteral9(target=es2015).js diff --git a/tests/baselines/reference/scannerNumericLiteral9.symbols b/tests/baselines/reference/scannerNumericLiteral9(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/scannerNumericLiteral9.symbols rename to tests/baselines/reference/scannerNumericLiteral9(target=es2015).symbols diff --git a/tests/baselines/reference/scannerNumericLiteral9.types b/tests/baselines/reference/scannerNumericLiteral9(target=es2015).types similarity index 100% rename from tests/baselines/reference/scannerNumericLiteral9.types rename to tests/baselines/reference/scannerNumericLiteral9(target=es2015).types diff --git a/tests/baselines/reference/scannerNumericLiteral9(target=es5).errors.txt b/tests/baselines/reference/scannerNumericLiteral9(target=es5).errors.txt new file mode 100644 index 0000000000000..93ae6266ab43b --- /dev/null +++ b/tests/baselines/reference/scannerNumericLiteral9(target=es5).errors.txt @@ -0,0 +1,7 @@ +scannerNumericLiteral9.ts(1,1): error TS1489: Decimals with leading zeros are not allowed. + + +==== scannerNumericLiteral9.ts (1 errors) ==== + 009 + ~~~ +!!! error TS1489: Decimals with leading zeros are not allowed. \ No newline at end of file diff --git a/tests/baselines/reference/scannerNumericLiteral9(target=es5).js b/tests/baselines/reference/scannerNumericLiteral9(target=es5).js new file mode 100644 index 0000000000000..c851a84f250fd --- /dev/null +++ b/tests/baselines/reference/scannerNumericLiteral9(target=es5).js @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/scanner/ecmascript5/scannerNumericLiteral9.ts] //// + +//// [scannerNumericLiteral9.ts] +009 + +//// [scannerNumericLiteral9.js] +9; diff --git a/tests/baselines/reference/scannerNumericLiteral9(target=es5).symbols b/tests/baselines/reference/scannerNumericLiteral9(target=es5).symbols new file mode 100644 index 0000000000000..24a771effff9e --- /dev/null +++ b/tests/baselines/reference/scannerNumericLiteral9(target=es5).symbols @@ -0,0 +1,5 @@ +//// [tests/cases/conformance/scanner/ecmascript5/scannerNumericLiteral9.ts] //// + +=== scannerNumericLiteral9.ts === + +009 diff --git a/tests/baselines/reference/scannerNumericLiteral9(target=es5).types b/tests/baselines/reference/scannerNumericLiteral9(target=es5).types new file mode 100644 index 0000000000000..06af23af7bfa7 --- /dev/null +++ b/tests/baselines/reference/scannerNumericLiteral9(target=es5).types @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/scanner/ecmascript5/scannerNumericLiteral9.ts] //// + +=== scannerNumericLiteral9.ts === +009 +>009 : 9 +> : ^ + diff --git a/tests/baselines/reference/shadowedReservedCompilerDeclarationsWithNoEmit.errors.txt b/tests/baselines/reference/shadowedReservedCompilerDeclarationsWithNoEmit(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/shadowedReservedCompilerDeclarationsWithNoEmit.errors.txt rename to tests/baselines/reference/shadowedReservedCompilerDeclarationsWithNoEmit(target=es2015).errors.txt diff --git a/tests/baselines/reference/shadowedReservedCompilerDeclarationsWithNoEmit.symbols b/tests/baselines/reference/shadowedReservedCompilerDeclarationsWithNoEmit(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/shadowedReservedCompilerDeclarationsWithNoEmit.symbols rename to tests/baselines/reference/shadowedReservedCompilerDeclarationsWithNoEmit(target=es2015).symbols diff --git a/tests/baselines/reference/shadowedReservedCompilerDeclarationsWithNoEmit.types b/tests/baselines/reference/shadowedReservedCompilerDeclarationsWithNoEmit(target=es2015).types similarity index 100% rename from tests/baselines/reference/shadowedReservedCompilerDeclarationsWithNoEmit.types rename to tests/baselines/reference/shadowedReservedCompilerDeclarationsWithNoEmit(target=es2015).types diff --git a/tests/baselines/reference/shadowedReservedCompilerDeclarationsWithNoEmit(target=es5).errors.txt b/tests/baselines/reference/shadowedReservedCompilerDeclarationsWithNoEmit(target=es5).errors.txt new file mode 100644 index 0000000000000..c3b0e5b0e9332 --- /dev/null +++ b/tests/baselines/reference/shadowedReservedCompilerDeclarationsWithNoEmit(target=es5).errors.txt @@ -0,0 +1,56 @@ +shadowedReservedCompilerDeclarationsWithNoEmit.ts(23,13): error TS1215: Invalid use of 'arguments'. Modules are automatically in strict mode. + + +==== shadowedReservedCompilerDeclarationsWithNoEmit.ts (1 errors) ==== + // Shadowed captured this and super + class Base { } + class C extends Base { + constructor() { + super(); + } + + foo() { + let _this = this; + + () => { + _this; + }; + } + + bar() { + let _super = this; + } + } + + + /// shadowed arguments + function f1(arguments, ...a) { + ~~~~~~~~~ +!!! error TS1215: Invalid use of 'arguments'. Modules are automatically in strict mode. + } + + class C2 extends Base { + constructor() { + super(); + var _newTarget = ""; + var t = new.target; + var y = _newTarget; + } + } + + + // Shadowed Promise + var Promise = null; + async function f4() { + return 0; + } + + + // shadowed require + var require = 0; + + // shadowed exports + var exports = 0; + + + export { }; \ No newline at end of file diff --git a/tests/baselines/reference/shadowedReservedCompilerDeclarationsWithNoEmit(target=es5).symbols b/tests/baselines/reference/shadowedReservedCompilerDeclarationsWithNoEmit(target=es5).symbols new file mode 100644 index 0000000000000..304bbb22bc5c5 --- /dev/null +++ b/tests/baselines/reference/shadowedReservedCompilerDeclarationsWithNoEmit(target=es5).symbols @@ -0,0 +1,91 @@ +//// [tests/cases/compiler/shadowedReservedCompilerDeclarationsWithNoEmit.ts] //// + +=== shadowedReservedCompilerDeclarationsWithNoEmit.ts === +// Shadowed captured this and super +class Base { } +>Base : Symbol(Base, Decl(shadowedReservedCompilerDeclarationsWithNoEmit.ts, 0, 0)) + +class C extends Base { +>C : Symbol(C, Decl(shadowedReservedCompilerDeclarationsWithNoEmit.ts, 1, 14)) +>Base : Symbol(Base, Decl(shadowedReservedCompilerDeclarationsWithNoEmit.ts, 0, 0)) + + constructor() { + super(); +>super : Symbol(Base, Decl(shadowedReservedCompilerDeclarationsWithNoEmit.ts, 0, 0)) + } + + foo() { +>foo : Symbol(C.foo, Decl(shadowedReservedCompilerDeclarationsWithNoEmit.ts, 5, 5)) + + let _this = this; +>_this : Symbol(_this, Decl(shadowedReservedCompilerDeclarationsWithNoEmit.ts, 8, 11)) +>this : Symbol(C, Decl(shadowedReservedCompilerDeclarationsWithNoEmit.ts, 1, 14)) + + () => { + _this; +>_this : Symbol(_this, Decl(shadowedReservedCompilerDeclarationsWithNoEmit.ts, 8, 11)) + + }; + } + + bar() { +>bar : Symbol(C.bar, Decl(shadowedReservedCompilerDeclarationsWithNoEmit.ts, 13, 5)) + + let _super = this; +>_super : Symbol(_super, Decl(shadowedReservedCompilerDeclarationsWithNoEmit.ts, 16, 11)) +>this : Symbol(C, Decl(shadowedReservedCompilerDeclarationsWithNoEmit.ts, 1, 14)) + } +} + + +/// shadowed arguments +function f1(arguments, ...a) { +>f1 : Symbol(f1, Decl(shadowedReservedCompilerDeclarationsWithNoEmit.ts, 18, 1)) +>arguments : Symbol(arguments, Decl(shadowedReservedCompilerDeclarationsWithNoEmit.ts, 22, 12)) +>a : Symbol(a, Decl(shadowedReservedCompilerDeclarationsWithNoEmit.ts, 22, 22)) +} + +class C2 extends Base { +>C2 : Symbol(C2, Decl(shadowedReservedCompilerDeclarationsWithNoEmit.ts, 23, 1)) +>Base : Symbol(Base, Decl(shadowedReservedCompilerDeclarationsWithNoEmit.ts, 0, 0)) + + constructor() { + super(); +>super : Symbol(Base, Decl(shadowedReservedCompilerDeclarationsWithNoEmit.ts, 0, 0)) + + var _newTarget = ""; +>_newTarget : Symbol(_newTarget, Decl(shadowedReservedCompilerDeclarationsWithNoEmit.ts, 28, 11)) + + var t = new.target; +>t : Symbol(t, Decl(shadowedReservedCompilerDeclarationsWithNoEmit.ts, 29, 11)) +>new.target : Symbol(C2, Decl(shadowedReservedCompilerDeclarationsWithNoEmit.ts, 23, 1)) +>target : Symbol(C2, Decl(shadowedReservedCompilerDeclarationsWithNoEmit.ts, 23, 1)) + + var y = _newTarget; +>y : Symbol(y, Decl(shadowedReservedCompilerDeclarationsWithNoEmit.ts, 30, 11)) +>_newTarget : Symbol(_newTarget, Decl(shadowedReservedCompilerDeclarationsWithNoEmit.ts, 28, 11)) + } +} + + +// Shadowed Promise +var Promise = null; +>Promise : Symbol(Promise, Decl(shadowedReservedCompilerDeclarationsWithNoEmit.ts, 36, 3)) + +async function f4() { +>f4 : Symbol(f4, Decl(shadowedReservedCompilerDeclarationsWithNoEmit.ts, 36, 19)) + + return 0; +} + + +// shadowed require +var require = 0; +>require : Symbol(require, Decl(shadowedReservedCompilerDeclarationsWithNoEmit.ts, 43, 3)) + +// shadowed exports +var exports = 0; +>exports : Symbol(exports, Decl(shadowedReservedCompilerDeclarationsWithNoEmit.ts, 46, 3)) + + +export { }; diff --git a/tests/baselines/reference/shadowedReservedCompilerDeclarationsWithNoEmit(target=es5).types b/tests/baselines/reference/shadowedReservedCompilerDeclarationsWithNoEmit(target=es5).types new file mode 100644 index 0000000000000..ddfe37a0d059d --- /dev/null +++ b/tests/baselines/reference/shadowedReservedCompilerDeclarationsWithNoEmit(target=es5).types @@ -0,0 +1,133 @@ +//// [tests/cases/compiler/shadowedReservedCompilerDeclarationsWithNoEmit.ts] //// + +=== shadowedReservedCompilerDeclarationsWithNoEmit.ts === +// Shadowed captured this and super +class Base { } +>Base : Base +> : ^^^^ + +class C extends Base { +>C : C +> : ^ +>Base : Base +> : ^^^^ + + constructor() { + super(); +>super() : void +> : ^^^^ +>super : typeof Base +> : ^^^^^^^^^^^ + } + + foo() { +>foo : () => void +> : ^^^^^^^^^^ + + let _this = this; +>_this : this +> : ^^^^ +>this : this +> : ^^^^ + + () => { +>() => { _this; } : () => void +> : ^^^^^^^^^^ + + _this; +>_this : this +> : ^^^^ + + }; + } + + bar() { +>bar : () => void +> : ^^^^^^^^^^ + + let _super = this; +>_super : this +> : ^^^^ +>this : this +> : ^^^^ + } +} + + +/// shadowed arguments +function f1(arguments, ...a) { +>f1 : (arguments: any, ...a: any[]) => void +> : ^ ^^^^^^^^^^ ^^^^^^^^^^^^^^^^ +>arguments : any +> : ^^^ +>a : any[] +> : ^^^^^ +} + +class C2 extends Base { +>C2 : C2 +> : ^^ +>Base : Base +> : ^^^^ + + constructor() { + super(); +>super() : void +> : ^^^^ +>super : typeof Base +> : ^^^^^^^^^^^ + + var _newTarget = ""; +>_newTarget : string +> : ^^^^^^ +>"" : "" +> : ^^ + + var t = new.target; +>t : typeof C2 +> : ^^^^^^^^^ +>new.target : typeof C2 +> : ^^^^^^^^^ +>target : typeof C2 +> : ^^^^^^^^^ + + var y = _newTarget; +>y : string +> : ^^^^^^ +>_newTarget : string +> : ^^^^^^ + } +} + + +// Shadowed Promise +var Promise = null; +>Promise : any +> : ^^^ + +async function f4() { +>f4 : () => Promise +> : ^^^^^^^^^^^^^^^^^^^^^ + + return 0; +>0 : 0 +> : ^ +} + + +// shadowed require +var require = 0; +>require : number +> : ^^^^^^ +>0 : 0 +> : ^ + +// shadowed exports +var exports = 0; +>exports : number +> : ^^^^^^ +>0 : 0 +> : ^ + + +export { }; diff --git a/tests/baselines/reference/shorthand-property-es5-es6.errors.txt b/tests/baselines/reference/shorthand-property-es5-es6(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/shorthand-property-es5-es6.errors.txt rename to tests/baselines/reference/shorthand-property-es5-es6(target=es2015).errors.txt diff --git a/tests/baselines/reference/shorthand-property-es5-es6(target=es2015).js b/tests/baselines/reference/shorthand-property-es5-es6(target=es2015).js new file mode 100644 index 0000000000000..7ee476b4f7108 --- /dev/null +++ b/tests/baselines/reference/shorthand-property-es5-es6(target=es2015).js @@ -0,0 +1,16 @@ +//// [tests/cases/compiler/shorthand-property-es5-es6.ts] //// + +//// [test.ts] +import {foo} from './foo'; +const baz = 42; +const bar = { foo, baz }; + + +//// [test.js] +import { foo } from './foo'; +const baz = 42; +const bar = { foo, baz }; + + +//// [test.d.ts] +export {}; diff --git a/tests/baselines/reference/shorthand-property-es5-es6.symbols b/tests/baselines/reference/shorthand-property-es5-es6(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/shorthand-property-es5-es6.symbols rename to tests/baselines/reference/shorthand-property-es5-es6(target=es2015).symbols diff --git a/tests/baselines/reference/shorthand-property-es5-es6.types b/tests/baselines/reference/shorthand-property-es5-es6(target=es2015).types similarity index 100% rename from tests/baselines/reference/shorthand-property-es5-es6.types rename to tests/baselines/reference/shorthand-property-es5-es6(target=es2015).types diff --git a/tests/baselines/reference/shorthand-property-es5-es6(target=es5).errors.txt b/tests/baselines/reference/shorthand-property-es5-es6(target=es5).errors.txt new file mode 100644 index 0000000000000..5ce21bfdd8af2 --- /dev/null +++ b/tests/baselines/reference/shorthand-property-es5-es6(target=es5).errors.txt @@ -0,0 +1,10 @@ +test.ts(1,19): error TS2307: Cannot find module './foo' or its corresponding type declarations. + + +==== test.ts (1 errors) ==== + import {foo} from './foo'; + ~~~~~~~ +!!! error TS2307: Cannot find module './foo' or its corresponding type declarations. + const baz = 42; + const bar = { foo, baz }; + \ No newline at end of file diff --git a/tests/baselines/reference/shorthand-property-es5-es6.js b/tests/baselines/reference/shorthand-property-es5-es6(target=es5).js similarity index 100% rename from tests/baselines/reference/shorthand-property-es5-es6.js rename to tests/baselines/reference/shorthand-property-es5-es6(target=es5).js diff --git a/tests/baselines/reference/shorthand-property-es5-es6(target=es5).symbols b/tests/baselines/reference/shorthand-property-es5-es6(target=es5).symbols new file mode 100644 index 0000000000000..2021e79cc37f7 --- /dev/null +++ b/tests/baselines/reference/shorthand-property-es5-es6(target=es5).symbols @@ -0,0 +1,14 @@ +//// [tests/cases/compiler/shorthand-property-es5-es6.ts] //// + +=== test.ts === +import {foo} from './foo'; +>foo : Symbol(foo, Decl(test.ts, 0, 8)) + +const baz = 42; +>baz : Symbol(baz, Decl(test.ts, 1, 5)) + +const bar = { foo, baz }; +>bar : Symbol(bar, Decl(test.ts, 2, 5)) +>foo : Symbol(foo, Decl(test.ts, 2, 13)) +>baz : Symbol(baz, Decl(test.ts, 2, 18)) + diff --git a/tests/baselines/reference/shorthand-property-es5-es6(target=es5).types b/tests/baselines/reference/shorthand-property-es5-es6(target=es5).types new file mode 100644 index 0000000000000..c9c9040effc70 --- /dev/null +++ b/tests/baselines/reference/shorthand-property-es5-es6(target=es5).types @@ -0,0 +1,23 @@ +//// [tests/cases/compiler/shorthand-property-es5-es6.ts] //// + +=== test.ts === +import {foo} from './foo'; +>foo : any +> : ^^^ + +const baz = 42; +>baz : 42 +> : ^^ +>42 : 42 +> : ^^ + +const bar = { foo, baz }; +>bar : { foo: any; baz: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ foo, baz } : { foo: any; baz: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^ +>foo : any +> : ^^^ +>baz : number +> : ^^^^^^ + diff --git a/tests/baselines/reference/shorthandOfExportedEntity02_targetES5_CommonJS(target=es2015).js b/tests/baselines/reference/shorthandOfExportedEntity02_targetES5_CommonJS(target=es2015).js new file mode 100644 index 0000000000000..f095def0425ed --- /dev/null +++ b/tests/baselines/reference/shorthandOfExportedEntity02_targetES5_CommonJS(target=es2015).js @@ -0,0 +1,24 @@ +//// [tests/cases/compiler/shorthandOfExportedEntity02_targetES5_CommonJS.ts] //// + +//// [shorthandOfExportedEntity02_targetES5_CommonJS.ts] +export const test = "test"; + +export function foo () { + const x = { test }; +} + + +//// [shorthandOfExportedEntity02_targetES5_CommonJS.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.test = void 0; +exports.foo = foo; +exports.test = "test"; +function foo() { + const x = { test: exports.test }; +} + + +//// [shorthandOfExportedEntity02_targetES5_CommonJS.d.ts] +export declare const test = "test"; +export declare function foo(): void; diff --git a/tests/baselines/reference/shorthandOfExportedEntity02_targetES5_CommonJS.symbols b/tests/baselines/reference/shorthandOfExportedEntity02_targetES5_CommonJS(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/shorthandOfExportedEntity02_targetES5_CommonJS.symbols rename to tests/baselines/reference/shorthandOfExportedEntity02_targetES5_CommonJS(target=es2015).symbols diff --git a/tests/baselines/reference/shorthandOfExportedEntity02_targetES5_CommonJS.types b/tests/baselines/reference/shorthandOfExportedEntity02_targetES5_CommonJS(target=es2015).types similarity index 100% rename from tests/baselines/reference/shorthandOfExportedEntity02_targetES5_CommonJS.types rename to tests/baselines/reference/shorthandOfExportedEntity02_targetES5_CommonJS(target=es2015).types diff --git a/tests/baselines/reference/shorthandOfExportedEntity02_targetES5_CommonJS.js b/tests/baselines/reference/shorthandOfExportedEntity02_targetES5_CommonJS(target=es5).js similarity index 100% rename from tests/baselines/reference/shorthandOfExportedEntity02_targetES5_CommonJS.js rename to tests/baselines/reference/shorthandOfExportedEntity02_targetES5_CommonJS(target=es5).js diff --git a/tests/baselines/reference/shorthandOfExportedEntity02_targetES5_CommonJS(target=es5).symbols b/tests/baselines/reference/shorthandOfExportedEntity02_targetES5_CommonJS(target=es5).symbols new file mode 100644 index 0000000000000..f6a0ce233b086 --- /dev/null +++ b/tests/baselines/reference/shorthandOfExportedEntity02_targetES5_CommonJS(target=es5).symbols @@ -0,0 +1,14 @@ +//// [tests/cases/compiler/shorthandOfExportedEntity02_targetES5_CommonJS.ts] //// + +=== shorthandOfExportedEntity02_targetES5_CommonJS.ts === +export const test = "test"; +>test : Symbol(test, Decl(shorthandOfExportedEntity02_targetES5_CommonJS.ts, 0, 12)) + +export function foo () { +>foo : Symbol(foo, Decl(shorthandOfExportedEntity02_targetES5_CommonJS.ts, 0, 27)) + + const x = { test }; +>x : Symbol(x, Decl(shorthandOfExportedEntity02_targetES5_CommonJS.ts, 3, 7)) +>test : Symbol(test, Decl(shorthandOfExportedEntity02_targetES5_CommonJS.ts, 3, 13)) +} + diff --git a/tests/baselines/reference/shorthandOfExportedEntity02_targetES5_CommonJS(target=es5).types b/tests/baselines/reference/shorthandOfExportedEntity02_targetES5_CommonJS(target=es5).types new file mode 100644 index 0000000000000..537247f166780 --- /dev/null +++ b/tests/baselines/reference/shorthandOfExportedEntity02_targetES5_CommonJS(target=es5).types @@ -0,0 +1,22 @@ +//// [tests/cases/compiler/shorthandOfExportedEntity02_targetES5_CommonJS.ts] //// + +=== shorthandOfExportedEntity02_targetES5_CommonJS.ts === +export const test = "test"; +>test : "test" +> : ^^^^^^ +>"test" : "test" +> : ^^^^^^ + +export function foo () { +>foo : () => void +> : ^^^^^^^^^^ + + const x = { test }; +>x : { test: string; } +> : ^^^^^^^^^^^^^^^^^ +>{ test } : { test: string; } +> : ^^^^^^^^^^^^^^^^^ +>test : string +> : ^^^^^^ +} + diff --git a/tests/baselines/reference/shorthandPropertyAssignmentsInDestructuring.errors.txt b/tests/baselines/reference/shorthandPropertyAssignmentsInDestructuring(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/shorthandPropertyAssignmentsInDestructuring.errors.txt rename to tests/baselines/reference/shorthandPropertyAssignmentsInDestructuring(target=es2015).errors.txt diff --git a/tests/baselines/reference/shorthandPropertyAssignmentsInDestructuring(target=es2015).js b/tests/baselines/reference/shorthandPropertyAssignmentsInDestructuring(target=es2015).js new file mode 100644 index 0000000000000..3b3dd594d7444 --- /dev/null +++ b/tests/baselines/reference/shorthandPropertyAssignmentsInDestructuring(target=es2015).js @@ -0,0 +1,213 @@ +//// [tests/cases/compiler/shorthandPropertyAssignmentsInDestructuring.ts] //// + +//// [shorthandPropertyAssignmentsInDestructuring.ts] +(function() { + var s0; + for ({ s0 = 5 } of [{ s0: 1 }]) { + } +}); +(function() { + var s0; + for ({ s0:s0 = 5 } of [{ s0: 1 }]) { + } +}); + +(function() { + var s1; + for ({ s1 = 5 } of [{}]) { + } +}); + +(function() { + var s1; + for ({ s1:s1 = 5 } of [{}]) { + } +}); + +(function() { + var s2; + for ({ s2 = 5 } of [{ s2: "" }]) { + } +}); + +(function() { + var s2; + for ({ s2:s2 = 5 } of [{ s2: "" }]) { + } +}); + +(function() { + var s3: string; + for ({ s3 = 5 } of [{ s3: "" }]) { + } +}); + +(function() { + var s3: string; + for ({ s3:s3 = 5 } of [{ s3: "" }]) { + } +}); + +(function() { + let y; + ({ y = 5 } = { y: 1 }) +}); + +(function() { + let y; + ({ y:y = 5 } = { y: 1 }) +}); + +(function() { + let y0: number; + ({ y0 = 5 } = { y0: 1 }) +}); + +(function() { + let y0: number; + ({ y0:y0 = 5 } = { y0: 1 }) +}); + +(function() { + let y1: string; + ({ y1 = 5 } = {}) +}); + +(function() { + let y1: string; + ({ y1:y1 = 5 } = {}) +}); + +(function() { + let y2: string, y3: { x: string }; + ({ y2 = 5, y3 = { x: 1 } } = {}) +}); + +(function() { + let y2: string, y3: { x: string }; + ({ y2:y2 = 5, y3:y3 = { x: 1 } } = {}) +}); + +(function() { + let y4: number, y5: { x: number }; + ({ y4 = 5, y5 = { x: 1 } } = {}) +}); + +(function() { + let y4: number, y5: { x: number }; + ({ y4:y4 = 5, y5:y5 = { x: 1 } } = {}) +}); + + +(function() { + let z; + ({ z = { x: 5 } } = { z: { x: 1 } }); +}); + + +(function() { + let z; + ({ z:z = { x: 5 } } = { z: { x: 1 } }); +}); + +(function() { + let a = { s = 5 }; +}); + +function foo({a = 4, b = { x: 5 }}) { +} + +//// [shorthandPropertyAssignmentsInDestructuring.js] +(function () { + var s0; + for ({ s0 = 5 } of [{ s0: 1 }]) { + } +}); +(function () { + var s0; + for ({ s0: s0 = 5 } of [{ s0: 1 }]) { + } +}); +(function () { + var s1; + for ({ s1 = 5 } of [{}]) { + } +}); +(function () { + var s1; + for ({ s1: s1 = 5 } of [{}]) { + } +}); +(function () { + var s2; + for ({ s2 = 5 } of [{ s2: "" }]) { + } +}); +(function () { + var s2; + for ({ s2: s2 = 5 } of [{ s2: "" }]) { + } +}); +(function () { + var s3; + for ({ s3 = 5 } of [{ s3: "" }]) { + } +}); +(function () { + var s3; + for ({ s3: s3 = 5 } of [{ s3: "" }]) { + } +}); +(function () { + let y; + ({ y = 5 } = { y: 1 }); +}); +(function () { + let y; + ({ y: y = 5 } = { y: 1 }); +}); +(function () { + let y0; + ({ y0 = 5 } = { y0: 1 }); +}); +(function () { + let y0; + ({ y0: y0 = 5 } = { y0: 1 }); +}); +(function () { + let y1; + ({ y1 = 5 } = {}); +}); +(function () { + let y1; + ({ y1: y1 = 5 } = {}); +}); +(function () { + let y2, y3; + ({ y2 = 5, y3 = { x: 1 } } = {}); +}); +(function () { + let y2, y3; + ({ y2: y2 = 5, y3: y3 = { x: 1 } } = {}); +}); +(function () { + let y4, y5; + ({ y4 = 5, y5 = { x: 1 } } = {}); +}); +(function () { + let y4, y5; + ({ y4: y4 = 5, y5: y5 = { x: 1 } } = {}); +}); +(function () { + let z; + ({ z = { x: 5 } } = { z: { x: 1 } }); +}); +(function () { + let z; + ({ z: z = { x: 5 } } = { z: { x: 1 } }); +}); +(function () { + let a = { s = 5 }; +}); +function foo({ a = 4, b = { x: 5 } }) { +} diff --git a/tests/baselines/reference/shorthandPropertyAssignmentsInDestructuring.symbols b/tests/baselines/reference/shorthandPropertyAssignmentsInDestructuring(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/shorthandPropertyAssignmentsInDestructuring.symbols rename to tests/baselines/reference/shorthandPropertyAssignmentsInDestructuring(target=es2015).symbols diff --git a/tests/baselines/reference/shorthandPropertyAssignmentsInDestructuring.types b/tests/baselines/reference/shorthandPropertyAssignmentsInDestructuring(target=es2015).types similarity index 100% rename from tests/baselines/reference/shorthandPropertyAssignmentsInDestructuring.types rename to tests/baselines/reference/shorthandPropertyAssignmentsInDestructuring(target=es2015).types diff --git a/tests/baselines/reference/shorthandPropertyAssignmentsInDestructuring(target=es5).errors.txt b/tests/baselines/reference/shorthandPropertyAssignmentsInDestructuring(target=es5).errors.txt new file mode 100644 index 0000000000000..6a12186cc76bd --- /dev/null +++ b/tests/baselines/reference/shorthandPropertyAssignmentsInDestructuring(target=es5).errors.txt @@ -0,0 +1,147 @@ +shorthandPropertyAssignmentsInDestructuring.ts(38,9): error TS2322: Type 'number' is not assignable to type 'string'. +shorthandPropertyAssignmentsInDestructuring.ts(44,12): error TS2322: Type 'number' is not assignable to type 'string'. +shorthandPropertyAssignmentsInDestructuring.ts(70,5): error TS2322: Type 'number' is not assignable to type 'string'. +shorthandPropertyAssignmentsInDestructuring.ts(75,8): error TS2322: Type 'number' is not assignable to type 'string'. +shorthandPropertyAssignmentsInDestructuring.ts(80,5): error TS2322: Type 'number' is not assignable to type 'string'. +shorthandPropertyAssignmentsInDestructuring.ts(80,20): error TS2322: Type 'number' is not assignable to type 'string'. +shorthandPropertyAssignmentsInDestructuring.ts(85,8): error TS2322: Type 'number' is not assignable to type 'string'. +shorthandPropertyAssignmentsInDestructuring.ts(85,26): error TS2322: Type 'number' is not assignable to type 'string'. +shorthandPropertyAssignmentsInDestructuring.ts(111,14): error TS1312: Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern. + + +==== shorthandPropertyAssignmentsInDestructuring.ts (9 errors) ==== + (function() { + var s0; + for ({ s0 = 5 } of [{ s0: 1 }]) { + } + }); + (function() { + var s0; + for ({ s0:s0 = 5 } of [{ s0: 1 }]) { + } + }); + + (function() { + var s1; + for ({ s1 = 5 } of [{}]) { + } + }); + + (function() { + var s1; + for ({ s1:s1 = 5 } of [{}]) { + } + }); + + (function() { + var s2; + for ({ s2 = 5 } of [{ s2: "" }]) { + } + }); + + (function() { + var s2; + for ({ s2:s2 = 5 } of [{ s2: "" }]) { + } + }); + + (function() { + var s3: string; + for ({ s3 = 5 } of [{ s3: "" }]) { + ~~ +!!! error TS2322: Type 'number' is not assignable to type 'string'. + } + }); + + (function() { + var s3: string; + for ({ s3:s3 = 5 } of [{ s3: "" }]) { + ~~ +!!! error TS2322: Type 'number' is not assignable to type 'string'. + } + }); + + (function() { + let y; + ({ y = 5 } = { y: 1 }) + }); + + (function() { + let y; + ({ y:y = 5 } = { y: 1 }) + }); + + (function() { + let y0: number; + ({ y0 = 5 } = { y0: 1 }) + }); + + (function() { + let y0: number; + ({ y0:y0 = 5 } = { y0: 1 }) + }); + + (function() { + let y1: string; + ({ y1 = 5 } = {}) + ~~ +!!! error TS2322: Type 'number' is not assignable to type 'string'. + }); + + (function() { + let y1: string; + ({ y1:y1 = 5 } = {}) + ~~ +!!! error TS2322: Type 'number' is not assignable to type 'string'. + }); + + (function() { + let y2: string, y3: { x: string }; + ({ y2 = 5, y3 = { x: 1 } } = {}) + ~~ +!!! error TS2322: Type 'number' is not assignable to type 'string'. + ~ +!!! error TS2322: Type 'number' is not assignable to type 'string'. +!!! related TS6500 shorthandPropertyAssignmentsInDestructuring.ts:79:24: The expected type comes from property 'x' which is declared here on type '{ x: string; }' + }); + + (function() { + let y2: string, y3: { x: string }; + ({ y2:y2 = 5, y3:y3 = { x: 1 } } = {}) + ~~ +!!! error TS2322: Type 'number' is not assignable to type 'string'. + ~ +!!! error TS2322: Type 'number' is not assignable to type 'string'. +!!! related TS6500 shorthandPropertyAssignmentsInDestructuring.ts:84:24: The expected type comes from property 'x' which is declared here on type '{ x: string; }' + }); + + (function() { + let y4: number, y5: { x: number }; + ({ y4 = 5, y5 = { x: 1 } } = {}) + }); + + (function() { + let y4: number, y5: { x: number }; + ({ y4:y4 = 5, y5:y5 = { x: 1 } } = {}) + }); + + + (function() { + let z; + ({ z = { x: 5 } } = { z: { x: 1 } }); + }); + + + (function() { + let z; + ({ z:z = { x: 5 } } = { z: { x: 1 } }); + }); + + (function() { + let a = { s = 5 }; + ~ +!!! error TS1312: Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern. + }); + + function foo({a = 4, b = { x: 5 }}) { + } \ No newline at end of file diff --git a/tests/baselines/reference/shorthandPropertyAssignmentsInDestructuring.js b/tests/baselines/reference/shorthandPropertyAssignmentsInDestructuring(target=es5).js similarity index 100% rename from tests/baselines/reference/shorthandPropertyAssignmentsInDestructuring.js rename to tests/baselines/reference/shorthandPropertyAssignmentsInDestructuring(target=es5).js diff --git a/tests/baselines/reference/shorthandPropertyAssignmentsInDestructuring(target=es5).symbols b/tests/baselines/reference/shorthandPropertyAssignmentsInDestructuring(target=es5).symbols new file mode 100644 index 0000000000000..60dba3a6d733d --- /dev/null +++ b/tests/baselines/reference/shorthandPropertyAssignmentsInDestructuring(target=es5).symbols @@ -0,0 +1,241 @@ +//// [tests/cases/compiler/shorthandPropertyAssignmentsInDestructuring.ts] //// + +=== shorthandPropertyAssignmentsInDestructuring.ts === +(function() { + var s0; +>s0 : Symbol(s0, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 1, 4)) + + for ({ s0 = 5 } of [{ s0: 1 }]) { +>s0 : Symbol(s0, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 2, 7)) +>s0 : Symbol(s0, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 2, 22)) + } +}); +(function() { + var s0; +>s0 : Symbol(s0, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 6, 4)) + + for ({ s0:s0 = 5 } of [{ s0: 1 }]) { +>s0 : Symbol(s0, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 7, 7)) +>s0 : Symbol(s0, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 6, 4)) +>s0 : Symbol(s0, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 7, 25)) + } +}); + +(function() { + var s1; +>s1 : Symbol(s1, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 12, 4)) + + for ({ s1 = 5 } of [{}]) { +>s1 : Symbol(s1, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 13, 7)) + } +}); + +(function() { + var s1; +>s1 : Symbol(s1, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 18, 4)) + + for ({ s1:s1 = 5 } of [{}]) { +>s1 : Symbol(s1, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 19, 7)) +>s1 : Symbol(s1, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 18, 4)) + } +}); + +(function() { + var s2; +>s2 : Symbol(s2, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 24, 4)) + + for ({ s2 = 5 } of [{ s2: "" }]) { +>s2 : Symbol(s2, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 25, 7)) +>s2 : Symbol(s2, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 25, 22)) + } +}); + +(function() { + var s2; +>s2 : Symbol(s2, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 30, 4)) + + for ({ s2:s2 = 5 } of [{ s2: "" }]) { +>s2 : Symbol(s2, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 31, 7)) +>s2 : Symbol(s2, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 30, 4)) +>s2 : Symbol(s2, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 31, 25)) + } +}); + +(function() { + var s3: string; +>s3 : Symbol(s3, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 36, 4)) + + for ({ s3 = 5 } of [{ s3: "" }]) { +>s3 : Symbol(s3, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 37, 7)) +>s3 : Symbol(s3, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 37, 22)) + } +}); + +(function() { + var s3: string; +>s3 : Symbol(s3, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 42, 4)) + + for ({ s3:s3 = 5 } of [{ s3: "" }]) { +>s3 : Symbol(s3, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 43, 7)) +>s3 : Symbol(s3, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 42, 4)) +>s3 : Symbol(s3, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 43, 25)) + } +}); + +(function() { + let y; +>y : Symbol(y, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 48, 4)) + + ({ y = 5 } = { y: 1 }) +>y : Symbol(y, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 49, 3)) +>y : Symbol(y, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 49, 15)) + +}); + +(function() { + let y; +>y : Symbol(y, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 53, 4)) + + ({ y:y = 5 } = { y: 1 }) +>y : Symbol(y, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 54, 3)) +>y : Symbol(y, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 53, 4)) +>y : Symbol(y, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 54, 17)) + +}); + +(function() { + let y0: number; +>y0 : Symbol(y0, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 58, 4)) + + ({ y0 = 5 } = { y0: 1 }) +>y0 : Symbol(y0, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 59, 3)) +>y0 : Symbol(y0, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 59, 16)) + +}); + +(function() { + let y0: number; +>y0 : Symbol(y0, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 63, 4)) + + ({ y0:y0 = 5 } = { y0: 1 }) +>y0 : Symbol(y0, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 64, 3)) +>y0 : Symbol(y0, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 63, 4)) +>y0 : Symbol(y0, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 64, 19)) + +}); + +(function() { + let y1: string; +>y1 : Symbol(y1, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 68, 4)) + + ({ y1 = 5 } = {}) +>y1 : Symbol(y1, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 69, 3)) + +}); + +(function() { + let y1: string; +>y1 : Symbol(y1, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 73, 4)) + + ({ y1:y1 = 5 } = {}) +>y1 : Symbol(y1, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 74, 3)) +>y1 : Symbol(y1, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 73, 4)) + +}); + +(function() { + let y2: string, y3: { x: string }; +>y2 : Symbol(y2, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 78, 4)) +>y3 : Symbol(y3, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 78, 16)) +>x : Symbol(x, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 78, 22)) + + ({ y2 = 5, y3 = { x: 1 } } = {}) +>y2 : Symbol(y2, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 79, 3)) +>y3 : Symbol(y3, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 79, 11)) +>x : Symbol(x, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 79, 18)) + +}); + +(function() { + let y2: string, y3: { x: string }; +>y2 : Symbol(y2, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 83, 4)) +>y3 : Symbol(y3, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 83, 16)) +>x : Symbol(x, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 83, 22)) + + ({ y2:y2 = 5, y3:y3 = { x: 1 } } = {}) +>y2 : Symbol(y2, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 84, 3)) +>y2 : Symbol(y2, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 83, 4)) +>y3 : Symbol(y3, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 84, 14)) +>y3 : Symbol(y3, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 83, 16)) +>x : Symbol(x, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 84, 24)) + +}); + +(function() { + let y4: number, y5: { x: number }; +>y4 : Symbol(y4, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 88, 4)) +>y5 : Symbol(y5, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 88, 16)) +>x : Symbol(x, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 88, 22)) + + ({ y4 = 5, y5 = { x: 1 } } = {}) +>y4 : Symbol(y4, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 89, 3)) +>y5 : Symbol(y5, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 89, 11)) +>x : Symbol(x, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 89, 18)) + +}); + +(function() { + let y4: number, y5: { x: number }; +>y4 : Symbol(y4, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 93, 4)) +>y5 : Symbol(y5, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 93, 16)) +>x : Symbol(x, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 93, 22)) + + ({ y4:y4 = 5, y5:y5 = { x: 1 } } = {}) +>y4 : Symbol(y4, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 94, 3)) +>y4 : Symbol(y4, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 93, 4)) +>y5 : Symbol(y5, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 94, 14)) +>y5 : Symbol(y5, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 93, 16)) +>x : Symbol(x, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 94, 24)) + +}); + + +(function() { + let z; +>z : Symbol(z, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 99, 4)) + + ({ z = { x: 5 } } = { z: { x: 1 } }); +>z : Symbol(z, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 100, 3)) +>x : Symbol(x, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 100, 9)) +>z : Symbol(z, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 100, 22)) +>x : Symbol(x, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 100, 27)) + +}); + + +(function() { + let z; +>z : Symbol(z, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 105, 4)) + + ({ z:z = { x: 5 } } = { z: { x: 1 } }); +>z : Symbol(z, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 106, 3)) +>z : Symbol(z, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 105, 4)) +>x : Symbol(x, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 106, 11)) +>z : Symbol(z, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 106, 24)) +>x : Symbol(x, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 106, 29)) + +}); + +(function() { + let a = { s = 5 }; +>a : Symbol(a, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 110, 4)) +>s : Symbol(s, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 110, 10)) + +}); + +function foo({a = 4, b = { x: 5 }}) { +>foo : Symbol(foo, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 111, 3)) +>a : Symbol(a, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 113, 14)) +>b : Symbol(b, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 113, 20)) +>x : Symbol(x, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 113, 26)) +} diff --git a/tests/baselines/reference/shorthandPropertyAssignmentsInDestructuring(target=es5).types b/tests/baselines/reference/shorthandPropertyAssignmentsInDestructuring(target=es5).types new file mode 100644 index 0000000000000..32af2c239484c --- /dev/null +++ b/tests/baselines/reference/shorthandPropertyAssignmentsInDestructuring(target=es5).types @@ -0,0 +1,702 @@ +//// [tests/cases/compiler/shorthandPropertyAssignmentsInDestructuring.ts] //// + +=== shorthandPropertyAssignmentsInDestructuring.ts === +(function() { +>(function() { var s0; for ({ s0 = 5 } of [{ s0: 1 }]) { }}) : () => void +> : ^^^^^^^^^^ +>function() { var s0; for ({ s0 = 5 } of [{ s0: 1 }]) { }} : () => void +> : ^^^^^^^^^^ + + var s0; +>s0 : any +> : ^^^ + + for ({ s0 = 5 } of [{ s0: 1 }]) { +>{ s0 = 5 } : { s0?: any; } +> : ^^^^^^^^^^^^^ +>s0 : any +> : ^^^ +>5 : 5 +> : ^ +>[{ s0: 1 }] : { s0: number; }[] +> : ^^^^^^^^^^^^^^^^^ +>{ s0: 1 } : { s0: number; } +> : ^^^^^^^^^^^^^^^ +>s0 : number +> : ^^^^^^ +>1 : 1 +> : ^ + } +}); +(function() { +>(function() { var s0; for ({ s0:s0 = 5 } of [{ s0: 1 }]) { }}) : () => void +> : ^^^^^^^^^^ +>function() { var s0; for ({ s0:s0 = 5 } of [{ s0: 1 }]) { }} : () => void +> : ^^^^^^^^^^ + + var s0; +>s0 : any +> : ^^^ + + for ({ s0:s0 = 5 } of [{ s0: 1 }]) { +>{ s0:s0 = 5 } : { s0?: number; } +> : ^^^^^^^^^^^^^^^^ +>s0 : number +> : ^^^^^^ +>s0 = 5 : 5 +> : ^ +>s0 : any +> : ^^^ +>5 : 5 +> : ^ +>[{ s0: 1 }] : { s0: number; }[] +> : ^^^^^^^^^^^^^^^^^ +>{ s0: 1 } : { s0: number; } +> : ^^^^^^^^^^^^^^^ +>s0 : number +> : ^^^^^^ +>1 : 1 +> : ^ + } +}); + +(function() { +>(function() { var s1; for ({ s1 = 5 } of [{}]) { }}) : () => void +> : ^^^^^^^^^^ +>function() { var s1; for ({ s1 = 5 } of [{}]) { }} : () => void +> : ^^^^^^^^^^ + + var s1; +>s1 : any +> : ^^^ + + for ({ s1 = 5 } of [{}]) { +>{ s1 = 5 } : { s1?: any; } +> : ^^^^^^^^^^^^^ +>s1 : any +> : ^^^ +>5 : 5 +> : ^ +>[{}] : {}[] +> : ^^^^ +>{} : {} +> : ^^ + } +}); + +(function() { +>(function() { var s1; for ({ s1:s1 = 5 } of [{}]) { }}) : () => void +> : ^^^^^^^^^^ +>function() { var s1; for ({ s1:s1 = 5 } of [{}]) { }} : () => void +> : ^^^^^^^^^^ + + var s1; +>s1 : any +> : ^^^ + + for ({ s1:s1 = 5 } of [{}]) { +>{ s1:s1 = 5 } : { s1?: number; } +> : ^^^^^^^^^^^^^^^^ +>s1 : number +> : ^^^^^^ +>s1 = 5 : 5 +> : ^ +>s1 : any +> : ^^^ +>5 : 5 +> : ^ +>[{}] : {}[] +> : ^^^^ +>{} : {} +> : ^^ + } +}); + +(function() { +>(function() { var s2; for ({ s2 = 5 } of [{ s2: "" }]) { }}) : () => void +> : ^^^^^^^^^^ +>function() { var s2; for ({ s2 = 5 } of [{ s2: "" }]) { }} : () => void +> : ^^^^^^^^^^ + + var s2; +>s2 : any +> : ^^^ + + for ({ s2 = 5 } of [{ s2: "" }]) { +>{ s2 = 5 } : { s2?: any; } +> : ^^^^^^^^^^^^^ +>s2 : any +> : ^^^ +>5 : 5 +> : ^ +>[{ s2: "" }] : { s2: string; }[] +> : ^^^^^^^^^^^^^^^^^ +>{ s2: "" } : { s2: string; } +> : ^^^^^^^^^^^^^^^ +>s2 : string +> : ^^^^^^ +>"" : "" +> : ^^ + } +}); + +(function() { +>(function() { var s2; for ({ s2:s2 = 5 } of [{ s2: "" }]) { }}) : () => void +> : ^^^^^^^^^^ +>function() { var s2; for ({ s2:s2 = 5 } of [{ s2: "" }]) { }} : () => void +> : ^^^^^^^^^^ + + var s2; +>s2 : any +> : ^^^ + + for ({ s2:s2 = 5 } of [{ s2: "" }]) { +>{ s2:s2 = 5 } : { s2?: number; } +> : ^^^^^^^^^^^^^^^^ +>s2 : number +> : ^^^^^^ +>s2 = 5 : 5 +> : ^ +>s2 : any +> : ^^^ +>5 : 5 +> : ^ +>[{ s2: "" }] : { s2: string; }[] +> : ^^^^^^^^^^^^^^^^^ +>{ s2: "" } : { s2: string; } +> : ^^^^^^^^^^^^^^^ +>s2 : string +> : ^^^^^^ +>"" : "" +> : ^^ + } +}); + +(function() { +>(function() { var s3: string; for ({ s3 = 5 } of [{ s3: "" }]) { }}) : () => void +> : ^^^^^^^^^^ +>function() { var s3: string; for ({ s3 = 5 } of [{ s3: "" }]) { }} : () => void +> : ^^^^^^^^^^ + + var s3: string; +>s3 : string +> : ^^^^^^ + + for ({ s3 = 5 } of [{ s3: "" }]) { +>{ s3 = 5 } : { s3?: string; } +> : ^^^^^^^^^^^^^^^^ +>s3 : string +> : ^^^^^^ +>5 : 5 +> : ^ +>[{ s3: "" }] : { s3: string; }[] +> : ^^^^^^^^^^^^^^^^^ +>{ s3: "" } : { s3: string; } +> : ^^^^^^^^^^^^^^^ +>s3 : string +> : ^^^^^^ +>"" : "" +> : ^^ + } +}); + +(function() { +>(function() { var s3: string; for ({ s3:s3 = 5 } of [{ s3: "" }]) { }}) : () => void +> : ^^^^^^^^^^ +>function() { var s3: string; for ({ s3:s3 = 5 } of [{ s3: "" }]) { }} : () => void +> : ^^^^^^^^^^ + + var s3: string; +>s3 : string +> : ^^^^^^ + + for ({ s3:s3 = 5 } of [{ s3: "" }]) { +>{ s3:s3 = 5 } : { s3?: number; } +> : ^^^^^^^^^^^^^^^^ +>s3 : number +> : ^^^^^^ +>s3 = 5 : 5 +> : ^ +>s3 : string +> : ^^^^^^ +>5 : 5 +> : ^ +>[{ s3: "" }] : { s3: string; }[] +> : ^^^^^^^^^^^^^^^^^ +>{ s3: "" } : { s3: string; } +> : ^^^^^^^^^^^^^^^ +>s3 : string +> : ^^^^^^ +>"" : "" +> : ^^ + } +}); + +(function() { +>(function() { let y; ({ y = 5 } = { y: 1 })}) : () => void +> : ^^^^^^^^^^ +>function() { let y; ({ y = 5 } = { y: 1 })} : () => void +> : ^^^^^^^^^^ + + let y; +>y : any +> : ^^^ + + ({ y = 5 } = { y: 1 }) +>({ y = 5 } = { y: 1 }) : { y?: number; } +> : ^^^^^^^^^^^^^^^ +>{ y = 5 } = { y: 1 } : { y?: number; } +> : ^^^^^^^^^^^^^^^ +>{ y = 5 } : { y?: any; } +> : ^^^^^^^^^^^^ +>y : any +> : ^^^ +>5 : 5 +> : ^ +>{ y: 1 } : { y?: number; } +> : ^^^^^^^^^^^^^^^ +>y : number +> : ^^^^^^ +>1 : 1 +> : ^ + +}); + +(function() { +>(function() { let y; ({ y:y = 5 } = { y: 1 })}) : () => void +> : ^^^^^^^^^^ +>function() { let y; ({ y:y = 5 } = { y: 1 })} : () => void +> : ^^^^^^^^^^ + + let y; +>y : any +> : ^^^ + + ({ y:y = 5 } = { y: 1 }) +>({ y:y = 5 } = { y: 1 }) : { y?: number; } +> : ^^^^^^^^^^^^^^^ +>{ y:y = 5 } = { y: 1 } : { y?: number; } +> : ^^^^^^^^^^^^^^^ +>{ y:y = 5 } : { y?: number; } +> : ^^^^^^^^^^^^^^^ +>y : number +> : ^^^^^^ +>y = 5 : 5 +> : ^ +>y : any +> : ^^^ +>5 : 5 +> : ^ +>{ y: 1 } : { y?: number; } +> : ^^^^^^^^^^^^^^^ +>y : number +> : ^^^^^^ +>1 : 1 +> : ^ + +}); + +(function() { +>(function() { let y0: number; ({ y0 = 5 } = { y0: 1 })}) : () => void +> : ^^^^^^^^^^ +>function() { let y0: number; ({ y0 = 5 } = { y0: 1 })} : () => void +> : ^^^^^^^^^^ + + let y0: number; +>y0 : number +> : ^^^^^^ + + ({ y0 = 5 } = { y0: 1 }) +>({ y0 = 5 } = { y0: 1 }) : { y0?: number; } +> : ^^^^^^^^^^^^^^^^ +>{ y0 = 5 } = { y0: 1 } : { y0?: number; } +> : ^^^^^^^^^^^^^^^^ +>{ y0 = 5 } : { y0?: number; } +> : ^^^^^^^^^^^^^^^^ +>y0 : number +> : ^^^^^^ +>5 : 5 +> : ^ +>{ y0: 1 } : { y0?: number; } +> : ^^^^^^^^^^^^^^^^ +>y0 : number +> : ^^^^^^ +>1 : 1 +> : ^ + +}); + +(function() { +>(function() { let y0: number; ({ y0:y0 = 5 } = { y0: 1 })}) : () => void +> : ^^^^^^^^^^ +>function() { let y0: number; ({ y0:y0 = 5 } = { y0: 1 })} : () => void +> : ^^^^^^^^^^ + + let y0: number; +>y0 : number +> : ^^^^^^ + + ({ y0:y0 = 5 } = { y0: 1 }) +>({ y0:y0 = 5 } = { y0: 1 }) : { y0?: number; } +> : ^^^^^^^^^^^^^^^^ +>{ y0:y0 = 5 } = { y0: 1 } : { y0?: number; } +> : ^^^^^^^^^^^^^^^^ +>{ y0:y0 = 5 } : { y0?: number; } +> : ^^^^^^^^^^^^^^^^ +>y0 : number +> : ^^^^^^ +>y0 = 5 : 5 +> : ^ +>y0 : number +> : ^^^^^^ +>5 : 5 +> : ^ +>{ y0: 1 } : { y0?: number; } +> : ^^^^^^^^^^^^^^^^ +>y0 : number +> : ^^^^^^ +>1 : 1 +> : ^ + +}); + +(function() { +>(function() { let y1: string; ({ y1 = 5 } = {})}) : () => void +> : ^^^^^^^^^^ +>function() { let y1: string; ({ y1 = 5 } = {})} : () => void +> : ^^^^^^^^^^ + + let y1: string; +>y1 : string +> : ^^^^^^ + + ({ y1 = 5 } = {}) +>({ y1 = 5 } = {}) : {} +> : ^^ +>{ y1 = 5 } = {} : {} +> : ^^ +>{ y1 = 5 } : { y1?: string; } +> : ^^^^^^^^^^^^^^^^ +>y1 : string +> : ^^^^^^ +>5 : 5 +> : ^ +>{} : {} +> : ^^ + +}); + +(function() { +>(function() { let y1: string; ({ y1:y1 = 5 } = {})}) : () => void +> : ^^^^^^^^^^ +>function() { let y1: string; ({ y1:y1 = 5 } = {})} : () => void +> : ^^^^^^^^^^ + + let y1: string; +>y1 : string +> : ^^^^^^ + + ({ y1:y1 = 5 } = {}) +>({ y1:y1 = 5 } = {}) : {} +> : ^^ +>{ y1:y1 = 5 } = {} : {} +> : ^^ +>{ y1:y1 = 5 } : { y1?: number; } +> : ^^^^^^^^^^^^^^^^ +>y1 : number +> : ^^^^^^ +>y1 = 5 : 5 +> : ^ +>y1 : string +> : ^^^^^^ +>5 : 5 +> : ^ +>{} : {} +> : ^^ + +}); + +(function() { +>(function() { let y2: string, y3: { x: string }; ({ y2 = 5, y3 = { x: 1 } } = {})}) : () => void +> : ^^^^^^^^^^ +>function() { let y2: string, y3: { x: string }; ({ y2 = 5, y3 = { x: 1 } } = {})} : () => void +> : ^^^^^^^^^^ + + let y2: string, y3: { x: string }; +>y2 : string +> : ^^^^^^ +>y3 : { x: string; } +> : ^^^^^ ^^^ +>x : string +> : ^^^^^^ + + ({ y2 = 5, y3 = { x: 1 } } = {}) +>({ y2 = 5, y3 = { x: 1 } } = {}) : {} +> : ^^ +>{ y2 = 5, y3 = { x: 1 } } = {} : {} +> : ^^ +>{ y2 = 5, y3 = { x: 1 } } : { y2?: string; y3?: { x: string; }; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^ +>y2 : string +> : ^^^^^^ +>5 : 5 +> : ^ +>y3 : { x: string; } +> : ^^^^^ ^^^ +>{ x: 1 } : { x: number; } +> : ^^^^^^^^^^^^^^ +>x : number +> : ^^^^^^ +>1 : 1 +> : ^ +>{} : {} +> : ^^ + +}); + +(function() { +>(function() { let y2: string, y3: { x: string }; ({ y2:y2 = 5, y3:y3 = { x: 1 } } = {})}) : () => void +> : ^^^^^^^^^^ +>function() { let y2: string, y3: { x: string }; ({ y2:y2 = 5, y3:y3 = { x: 1 } } = {})} : () => void +> : ^^^^^^^^^^ + + let y2: string, y3: { x: string }; +>y2 : string +> : ^^^^^^ +>y3 : { x: string; } +> : ^^^^^ ^^^ +>x : string +> : ^^^^^^ + + ({ y2:y2 = 5, y3:y3 = { x: 1 } } = {}) +>({ y2:y2 = 5, y3:y3 = { x: 1 } } = {}) : {} +> : ^^ +>{ y2:y2 = 5, y3:y3 = { x: 1 } } = {} : {} +> : ^^ +>{ y2:y2 = 5, y3:y3 = { x: 1 } } : { y2?: number; y3?: { x: number; }; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>y2 : number +> : ^^^^^^ +>y2 = 5 : 5 +> : ^ +>y2 : string +> : ^^^^^^ +>5 : 5 +> : ^ +>y3 : { x: number; } +> : ^^^^^^^^^^^^^^ +>y3 = { x: 1 } : { x: number; } +> : ^^^^^^^^^^^^^^ +>y3 : { x: string; } +> : ^^^^^ ^^^ +>{ x: 1 } : { x: number; } +> : ^^^^^^^^^^^^^^ +>x : number +> : ^^^^^^ +>1 : 1 +> : ^ +>{} : {} +> : ^^ + +}); + +(function() { +>(function() { let y4: number, y5: { x: number }; ({ y4 = 5, y5 = { x: 1 } } = {})}) : () => void +> : ^^^^^^^^^^ +>function() { let y4: number, y5: { x: number }; ({ y4 = 5, y5 = { x: 1 } } = {})} : () => void +> : ^^^^^^^^^^ + + let y4: number, y5: { x: number }; +>y4 : number +> : ^^^^^^ +>y5 : { x: number; } +> : ^^^^^ ^^^ +>x : number +> : ^^^^^^ + + ({ y4 = 5, y5 = { x: 1 } } = {}) +>({ y4 = 5, y5 = { x: 1 } } = {}) : {} +> : ^^ +>{ y4 = 5, y5 = { x: 1 } } = {} : {} +> : ^^ +>{ y4 = 5, y5 = { x: 1 } } : { y4?: number; y5?: { x: number; }; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^ +>y4 : number +> : ^^^^^^ +>5 : 5 +> : ^ +>y5 : { x: number; } +> : ^^^^^ ^^^ +>{ x: 1 } : { x: number; } +> : ^^^^^^^^^^^^^^ +>x : number +> : ^^^^^^ +>1 : 1 +> : ^ +>{} : {} +> : ^^ + +}); + +(function() { +>(function() { let y4: number, y5: { x: number }; ({ y4:y4 = 5, y5:y5 = { x: 1 } } = {})}) : () => void +> : ^^^^^^^^^^ +>function() { let y4: number, y5: { x: number }; ({ y4:y4 = 5, y5:y5 = { x: 1 } } = {})} : () => void +> : ^^^^^^^^^^ + + let y4: number, y5: { x: number }; +>y4 : number +> : ^^^^^^ +>y5 : { x: number; } +> : ^^^^^ ^^^ +>x : number +> : ^^^^^^ + + ({ y4:y4 = 5, y5:y5 = { x: 1 } } = {}) +>({ y4:y4 = 5, y5:y5 = { x: 1 } } = {}) : {} +> : ^^ +>{ y4:y4 = 5, y5:y5 = { x: 1 } } = {} : {} +> : ^^ +>{ y4:y4 = 5, y5:y5 = { x: 1 } } : { y4?: number; y5?: { x: number; }; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>y4 : number +> : ^^^^^^ +>y4 = 5 : 5 +> : ^ +>y4 : number +> : ^^^^^^ +>5 : 5 +> : ^ +>y5 : { x: number; } +> : ^^^^^^^^^^^^^^ +>y5 = { x: 1 } : { x: number; } +> : ^^^^^^^^^^^^^^ +>y5 : { x: number; } +> : ^^^^^ ^^^ +>{ x: 1 } : { x: number; } +> : ^^^^^^^^^^^^^^ +>x : number +> : ^^^^^^ +>1 : 1 +> : ^ +>{} : {} +> : ^^ + +}); + + +(function() { +>(function() { let z; ({ z = { x: 5 } } = { z: { x: 1 } });}) : () => void +> : ^^^^^^^^^^ +>function() { let z; ({ z = { x: 5 } } = { z: { x: 1 } });} : () => void +> : ^^^^^^^^^^ + + let z; +>z : any +> : ^^^ + + ({ z = { x: 5 } } = { z: { x: 1 } }); +>({ z = { x: 5 } } = { z: { x: 1 } }) : { z?: { x: number; }; } +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>{ z = { x: 5 } } = { z: { x: 1 } } : { z?: { x: number; }; } +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>{ z = { x: 5 } } : { z?: any; } +> : ^^^^^^^^^^^^ +>z : any +> : ^^^ +>{ x: 5 } : { x: number; } +> : ^^^^^^^^^^^^^^ +>x : number +> : ^^^^^^ +>5 : 5 +> : ^ +>{ z: { x: 1 } } : { z?: { x: number; }; } +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>z : { x: number; } +> : ^^^^^^^^^^^^^^ +>{ x: 1 } : { x: number; } +> : ^^^^^^^^^^^^^^ +>x : number +> : ^^^^^^ +>1 : 1 +> : ^ + +}); + + +(function() { +>(function() { let z; ({ z:z = { x: 5 } } = { z: { x: 1 } });}) : () => void +> : ^^^^^^^^^^ +>function() { let z; ({ z:z = { x: 5 } } = { z: { x: 1 } });} : () => void +> : ^^^^^^^^^^ + + let z; +>z : any +> : ^^^ + + ({ z:z = { x: 5 } } = { z: { x: 1 } }); +>({ z:z = { x: 5 } } = { z: { x: 1 } }) : { z?: { x: number; }; } +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>{ z:z = { x: 5 } } = { z: { x: 1 } } : { z?: { x: number; }; } +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>{ z:z = { x: 5 } } : { z?: { x: number; }; } +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>z : { x: number; } +> : ^^^^^^^^^^^^^^ +>z = { x: 5 } : { x: number; } +> : ^^^^^^^^^^^^^^ +>z : any +> : ^^^ +>{ x: 5 } : { x: number; } +> : ^^^^^^^^^^^^^^ +>x : number +> : ^^^^^^ +>5 : 5 +> : ^ +>{ z: { x: 1 } } : { z?: { x: number; }; } +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>z : { x: number; } +> : ^^^^^^^^^^^^^^ +>{ x: 1 } : { x: number; } +> : ^^^^^^^^^^^^^^ +>x : number +> : ^^^^^^ +>1 : 1 +> : ^ + +}); + +(function() { +>(function() { let a = { s = 5 };}) : () => void +> : ^^^^^^^^^^ +>function() { let a = { s = 5 };} : () => void +> : ^^^^^^^^^^ + + let a = { s = 5 }; +>a : { s: number; } +> : ^^^^^^^^^^^^^^ +>{ s = 5 } : { s: number; } +> : ^^^^^^^^^^^^^^ +>s : any +> : ^^^ +>5 : 5 +> : ^ + +}); + +function foo({a = 4, b = { x: 5 }}) { +>foo : ({ a, b }: { a?: number; b?: { x: number; }; }) => void +> : ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>a : number +> : ^^^^^^ +>4 : 4 +> : ^ +>b : { x: number; } +> : ^^^^^^^^^^^^^^ +>{ x: 5 } : { x: number; } +> : ^^^^^^^^^^^^^^ +>x : number +> : ^^^^^^ +>5 : 5 +> : ^ +} diff --git a/tests/baselines/reference/sourceMap-Comment1.js b/tests/baselines/reference/sourceMap-Comment1(target=es2015).js similarity index 100% rename from tests/baselines/reference/sourceMap-Comment1.js rename to tests/baselines/reference/sourceMap-Comment1(target=es2015).js diff --git a/tests/baselines/reference/sourceMap-Comment1.js.map b/tests/baselines/reference/sourceMap-Comment1(target=es2015).js.map similarity index 100% rename from tests/baselines/reference/sourceMap-Comment1.js.map rename to tests/baselines/reference/sourceMap-Comment1(target=es2015).js.map diff --git a/tests/baselines/reference/sourceMap-Comment1.sourcemap.txt b/tests/baselines/reference/sourceMap-Comment1(target=es2015).sourcemap.txt similarity index 100% rename from tests/baselines/reference/sourceMap-Comment1.sourcemap.txt rename to tests/baselines/reference/sourceMap-Comment1(target=es2015).sourcemap.txt diff --git a/tests/baselines/reference/sourceMap-Comment1.symbols b/tests/baselines/reference/sourceMap-Comment1(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/sourceMap-Comment1.symbols rename to tests/baselines/reference/sourceMap-Comment1(target=es2015).symbols diff --git a/tests/baselines/reference/sourceMap-Comment1.types b/tests/baselines/reference/sourceMap-Comment1(target=es2015).types similarity index 100% rename from tests/baselines/reference/sourceMap-Comment1.types rename to tests/baselines/reference/sourceMap-Comment1(target=es2015).types diff --git a/tests/baselines/reference/sourceMap-Comment1(target=es5).js b/tests/baselines/reference/sourceMap-Comment1(target=es5).js new file mode 100644 index 0000000000000..89fe479269910 --- /dev/null +++ b/tests/baselines/reference/sourceMap-Comment1(target=es5).js @@ -0,0 +1,8 @@ +//// [tests/cases/compiler/sourceMap-Comment1.ts] //// + +//// [sourceMap-Comment1.ts] +// Comment + +//// [sourceMap-Comment1.js] +// Comment +//# sourceMappingURL=sourceMap-Comment1.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMap-Comment1(target=es5).js.map b/tests/baselines/reference/sourceMap-Comment1(target=es5).js.map new file mode 100644 index 0000000000000..847b4782e7c16 --- /dev/null +++ b/tests/baselines/reference/sourceMap-Comment1(target=es5).js.map @@ -0,0 +1,3 @@ +//// [sourceMap-Comment1.js.map] +{"version":3,"file":"sourceMap-Comment1.js","sourceRoot":"","sources":["sourceMap-Comment1.ts"],"names":[],"mappings":"AAAA,UAAU"} +//// https://sokra.github.io/source-map-visualization#base64,Ly8gQ29tbWVudA0KLy8jIHNvdXJjZU1hcHBpbmdVUkw9c291cmNlTWFwLUNvbW1lbnQxLmpzLm1hcA==,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic291cmNlTWFwLUNvbW1lbnQxLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsic291cmNlTWFwLUNvbW1lbnQxLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLFVBQVUifQ==,Ly8gQ29tbWVudA== diff --git a/tests/baselines/reference/sourceMap-Comment1(target=es5).sourcemap.txt b/tests/baselines/reference/sourceMap-Comment1(target=es5).sourcemap.txt new file mode 100644 index 0000000000000..ebc6822babb4f --- /dev/null +++ b/tests/baselines/reference/sourceMap-Comment1(target=es5).sourcemap.txt @@ -0,0 +1,20 @@ +=================================================================== +JsFile: sourceMap-Comment1.js +mapUrl: sourceMap-Comment1.js.map +sourceRoot: +sources: sourceMap-Comment1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:sourceMap-Comment1.js +sourceFile:sourceMap-Comment1.ts +------------------------------------------------------------------- +>>>// Comment +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >// Comment +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +--- +>>>//# sourceMappingURL=sourceMap-Comment1.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMap-Comment1(target=es5).symbols b/tests/baselines/reference/sourceMap-Comment1(target=es5).symbols new file mode 100644 index 0000000000000..fc259db9bbb3e --- /dev/null +++ b/tests/baselines/reference/sourceMap-Comment1(target=es5).symbols @@ -0,0 +1,5 @@ +//// [tests/cases/compiler/sourceMap-Comment1.ts] //// + +=== sourceMap-Comment1.ts === + +// Comment diff --git a/tests/baselines/reference/sourceMap-Comment1(target=es5).types b/tests/baselines/reference/sourceMap-Comment1(target=es5).types new file mode 100644 index 0000000000000..fc259db9bbb3e --- /dev/null +++ b/tests/baselines/reference/sourceMap-Comment1(target=es5).types @@ -0,0 +1,5 @@ +//// [tests/cases/compiler/sourceMap-Comment1.ts] //// + +=== sourceMap-Comment1.ts === + +// Comment diff --git a/tests/baselines/reference/sourceMap-Comments(target=es2015).js b/tests/baselines/reference/sourceMap-Comments(target=es2015).js new file mode 100644 index 0000000000000..0d7a65afd490e --- /dev/null +++ b/tests/baselines/reference/sourceMap-Comments(target=es2015).js @@ -0,0 +1,49 @@ +//// [tests/cases/compiler/sourceMap-Comments.ts] //// + +//// [sourceMap-Comments.ts] +namespace sas.tools { + export class Test { + public doX(): void { + let f: number = 2; + switch (f) { + case 1: + break; + case 2: + //line comment 1 + //line comment 2 + break; + case 3: + //a comment + break; + } + } + } + +} + + +//// [sourceMap-Comments.js] +var sas; +(function (sas) { + var tools; + (function (tools) { + class Test { + doX() { + let f = 2; + switch (f) { + case 1: + break; + case 2: + //line comment 1 + //line comment 2 + break; + case 3: + //a comment + break; + } + } + } + tools.Test = Test; + })(tools = sas.tools || (sas.tools = {})); +})(sas || (sas = {})); +//# sourceMappingURL=sourceMap-Comments.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMap-Comments(target=es2015).js.map b/tests/baselines/reference/sourceMap-Comments(target=es2015).js.map new file mode 100644 index 0000000000000..ad15f9a379d7e --- /dev/null +++ b/tests/baselines/reference/sourceMap-Comments(target=es2015).js.map @@ -0,0 +1,3 @@ +//// [sourceMap-Comments.js.map] +{"version":3,"file":"sourceMap-Comments.js","sourceRoot":"","sources":["sourceMap-Comments.ts"],"names":[],"mappings":"AAAA,IAAU,GAAG,CAkBZ;AAlBD,WAAU,GAAG;IAAC,IAAA,KAAK,CAkBlB;IAlBa,WAAA,KAAK;QACf,MAAa,IAAI;YACN,GAAG;gBACN,IAAI,CAAC,GAAW,CAAC,CAAC;gBAClB,QAAQ,CAAC,EAAE,CAAC;oBACR,KAAK,CAAC;wBACF,MAAM;oBACV,KAAK,CAAC;wBACF,gBAAgB;wBAChB,gBAAgB;wBAChB,MAAM;oBACV,KAAK,CAAC;wBACF,WAAW;wBACX,MAAM;gBACd,CAAC;YACL,CAAC;SACJ;QAfY,UAAI,OAehB,CAAA;IAEL,CAAC,EAlBa,KAAK,GAAL,SAAK,KAAL,SAAK,QAkBlB;AAAD,CAAC,EAlBS,GAAG,KAAH,GAAG,QAkBZ"} +//// https://sokra.github.io/source-map-visualization#base64,dmFyIHNhczsNCihmdW5jdGlvbiAoc2FzKSB7DQogICAgdmFyIHRvb2xzOw0KICAgIChmdW5jdGlvbiAodG9vbHMpIHsNCiAgICAgICAgY2xhc3MgVGVzdCB7DQogICAgICAgICAgICBkb1goKSB7DQogICAgICAgICAgICAgICAgbGV0IGYgPSAyOw0KICAgICAgICAgICAgICAgIHN3aXRjaCAoZikgew0KICAgICAgICAgICAgICAgICAgICBjYXNlIDE6DQogICAgICAgICAgICAgICAgICAgICAgICBicmVhazsNCiAgICAgICAgICAgICAgICAgICAgY2FzZSAyOg0KICAgICAgICAgICAgICAgICAgICAgICAgLy9saW5lIGNvbW1lbnQgMQ0KICAgICAgICAgICAgICAgICAgICAgICAgLy9saW5lIGNvbW1lbnQgMg0KICAgICAgICAgICAgICAgICAgICAgICAgYnJlYWs7DQogICAgICAgICAgICAgICAgICAgIGNhc2UgMzoNCiAgICAgICAgICAgICAgICAgICAgICAgIC8vYSBjb21tZW50DQogICAgICAgICAgICAgICAgICAgICAgICBicmVhazsNCiAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICB9DQogICAgICAgIH0NCiAgICAgICAgdG9vbHMuVGVzdCA9IFRlc3Q7DQogICAgfSkodG9vbHMgPSBzYXMudG9vbHMgfHwgKHNhcy50b29scyA9IHt9KSk7DQp9KShzYXMgfHwgKHNhcyA9IHt9KSk7DQovLyMgc291cmNlTWFwcGluZ1VSTD1zb3VyY2VNYXAtQ29tbWVudHMuanMubWFw,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic291cmNlTWFwLUNvbW1lbnRzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsic291cmNlTWFwLUNvbW1lbnRzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLElBQVUsR0FBRyxDQWtCWjtBQWxCRCxXQUFVLEdBQUc7SUFBQyxJQUFBLEtBQUssQ0FrQmxCO0lBbEJhLFdBQUEsS0FBSztRQUNmLE1BQWEsSUFBSTtZQUNOLEdBQUc7Z0JBQ04sSUFBSSxDQUFDLEdBQVcsQ0FBQyxDQUFDO2dCQUNsQixRQUFRLENBQUMsRUFBRSxDQUFDO29CQUNSLEtBQUssQ0FBQzt3QkFDRixNQUFNO29CQUNWLEtBQUssQ0FBQzt3QkFDRixnQkFBZ0I7d0JBQ2hCLGdCQUFnQjt3QkFDaEIsTUFBTTtvQkFDVixLQUFLLENBQUM7d0JBQ0YsV0FBVzt3QkFDWCxNQUFNO2dCQUNkLENBQUM7WUFDTCxDQUFDO1NBQ0o7UUFmWSxVQUFJLE9BZWhCLENBQUE7SUFFTCxDQUFDLEVBbEJhLEtBQUssR0FBTCxTQUFLLEtBQUwsU0FBSyxRQWtCbEI7QUFBRCxDQUFDLEVBbEJTLEdBQUcsS0FBSCxHQUFHLFFBa0JaIn0=,bmFtZXNwYWNlIHNhcy50b29scyB7CiAgICBleHBvcnQgY2xhc3MgVGVzdCB7CiAgICAgICAgcHVibGljIGRvWCgpOiB2b2lkIHsKICAgICAgICAgICAgbGV0IGY6IG51bWJlciA9IDI7CiAgICAgICAgICAgIHN3aXRjaCAoZikgewogICAgICAgICAgICAgICAgY2FzZSAxOgogICAgICAgICAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgICAgICAgY2FzZSAyOgogICAgICAgICAgICAgICAgICAgIC8vbGluZSBjb21tZW50IDEKICAgICAgICAgICAgICAgICAgICAvL2xpbmUgY29tbWVudCAyCiAgICAgICAgICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgICAgICAgICBjYXNlIDM6CiAgICAgICAgICAgICAgICAgICAgLy9hIGNvbW1lbnQKICAgICAgICAgICAgICAgICAgICBicmVhazsKICAgICAgICAgICAgfQogICAgICAgIH0KICAgIH0KCn0K diff --git a/tests/baselines/reference/sourceMap-Comments(target=es2015).sourcemap.txt b/tests/baselines/reference/sourceMap-Comments(target=es2015).sourcemap.txt new file mode 100644 index 0000000000000..2e0bd47ce9310 --- /dev/null +++ b/tests/baselines/reference/sourceMap-Comments(target=es2015).sourcemap.txt @@ -0,0 +1,404 @@ +=================================================================== +JsFile: sourceMap-Comments.js +mapUrl: sourceMap-Comments.js.map +sourceRoot: +sources: sourceMap-Comments.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:sourceMap-Comments.js +sourceFile:sourceMap-Comments.ts +------------------------------------------------------------------- +>>>var sas; +1 > +2 >^^^^ +3 > ^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > +2 >namespace +3 > sas +4 > .tools { + > export class Test { + > public doX(): void { + > let f: number = 2; + > switch (f) { + > case 1: + > break; + > case 2: + > //line comment 1 + > //line comment 2 + > break; + > case 3: + > //a comment + > break; + > } + > } + > } + > + > } +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 8) Source(1, 14) + SourceIndex(0) +4 >Emitted(1, 9) Source(19, 2) + SourceIndex(0) +--- +>>>(function (sas) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^ +4 > ^-> +1-> +2 >namespace +3 > sas +1->Emitted(2, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(2, 12) Source(1, 11) + SourceIndex(0) +3 >Emitted(2, 15) Source(1, 14) + SourceIndex(0) +--- +>>> var tools; +1->^^^^ +2 > ^^^^ +3 > ^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1->. +2 > +3 > tools +4 > { + > export class Test { + > public doX(): void { + > let f: number = 2; + > switch (f) { + > case 1: + > break; + > case 2: + > //line comment 1 + > //line comment 2 + > break; + > case 3: + > //a comment + > break; + > } + > } + > } + > + > } +1->Emitted(3, 5) Source(1, 15) + SourceIndex(0) +2 >Emitted(3, 9) Source(1, 15) + SourceIndex(0) +3 >Emitted(3, 14) Source(1, 20) + SourceIndex(0) +4 >Emitted(3, 15) Source(19, 2) + SourceIndex(0) +--- +>>> (function (tools) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^ +4 > ^-> +1-> +2 > +3 > tools +1->Emitted(4, 5) Source(1, 15) + SourceIndex(0) +2 >Emitted(4, 16) Source(1, 15) + SourceIndex(0) +3 >Emitted(4, 21) Source(1, 20) + SourceIndex(0) +--- +>>> class Test { +1->^^^^^^^^ +2 > ^^^^^^ +3 > ^^^^ +4 > ^^-> +1-> { + > +2 > export class +3 > Test +1->Emitted(5, 9) Source(2, 5) + SourceIndex(0) +2 >Emitted(5, 15) Source(2, 18) + SourceIndex(0) +3 >Emitted(5, 19) Source(2, 22) + SourceIndex(0) +--- +>>> doX() { +1->^^^^^^^^^^^^ +2 > ^^^ +3 > ^^^^^^^^^^^^-> +1-> { + > public +2 > doX +1->Emitted(6, 13) Source(3, 16) + SourceIndex(0) +2 >Emitted(6, 16) Source(3, 19) + SourceIndex(0) +--- +>>> let f = 2; +1->^^^^^^^^^^^^^^^^ +2 > ^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^^-> +1->(): void { + > +2 > let +3 > f +4 > : number = +5 > 2 +6 > ; +1->Emitted(7, 17) Source(4, 13) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 17) + SourceIndex(0) +3 >Emitted(7, 22) Source(4, 18) + SourceIndex(0) +4 >Emitted(7, 25) Source(4, 29) + SourceIndex(0) +5 >Emitted(7, 26) Source(4, 30) + SourceIndex(0) +6 >Emitted(7, 27) Source(4, 31) + SourceIndex(0) +--- +>>> switch (f) { +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^ +5 > ^ +1-> + > +2 > switch ( +3 > f +4 > ) +5 > { +1->Emitted(8, 17) Source(5, 13) + SourceIndex(0) +2 >Emitted(8, 25) Source(5, 21) + SourceIndex(0) +3 >Emitted(8, 26) Source(5, 22) + SourceIndex(0) +4 >Emitted(8, 28) Source(5, 24) + SourceIndex(0) +5 >Emitted(8, 29) Source(5, 25) + SourceIndex(0) +--- +>>> case 1: +1 >^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^ +3 > ^ +4 > ^^^^^-> +1 > + > +2 > case +3 > 1 +1 >Emitted(9, 21) Source(6, 17) + SourceIndex(0) +2 >Emitted(9, 26) Source(6, 22) + SourceIndex(0) +3 >Emitted(9, 27) Source(6, 23) + SourceIndex(0) +--- +>>> break; +1->^^^^^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^ +1->: + > +2 > break; +1->Emitted(10, 25) Source(7, 21) + SourceIndex(0) +2 >Emitted(10, 31) Source(7, 27) + SourceIndex(0) +--- +>>> case 2: +1 >^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^-> +1 > + > +2 > case +3 > 2 +1 >Emitted(11, 21) Source(8, 17) + SourceIndex(0) +2 >Emitted(11, 26) Source(8, 22) + SourceIndex(0) +3 >Emitted(11, 27) Source(8, 23) + SourceIndex(0) +--- +>>> //line comment 1 +1->^^^^^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +3 > ^-> +1->: + > +2 > //line comment 1 +1->Emitted(12, 25) Source(9, 21) + SourceIndex(0) +2 >Emitted(12, 41) Source(9, 37) + SourceIndex(0) +--- +>>> //line comment 2 +1->^^^^^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> + > +2 > //line comment 2 +1->Emitted(13, 25) Source(10, 21) + SourceIndex(0) +2 >Emitted(13, 41) Source(10, 37) + SourceIndex(0) +--- +>>> break; +1 >^^^^^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^ +1 > + > +2 > break; +1 >Emitted(14, 25) Source(11, 21) + SourceIndex(0) +2 >Emitted(14, 31) Source(11, 27) + SourceIndex(0) +--- +>>> case 3: +1 >^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1 > + > +2 > case +3 > 3 +1 >Emitted(15, 21) Source(12, 17) + SourceIndex(0) +2 >Emitted(15, 26) Source(12, 22) + SourceIndex(0) +3 >Emitted(15, 27) Source(12, 23) + SourceIndex(0) +--- +>>> //a comment +1->^^^^^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^ +1->: + > +2 > //a comment +1->Emitted(16, 25) Source(13, 21) + SourceIndex(0) +2 >Emitted(16, 36) Source(13, 32) + SourceIndex(0) +--- +>>> break; +1 >^^^^^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^ +1 > + > +2 > break; +1 >Emitted(17, 25) Source(14, 21) + SourceIndex(0) +2 >Emitted(17, 31) Source(14, 27) + SourceIndex(0) +--- +>>> } +1 >^^^^^^^^^^^^^^^^ +2 > ^ +1 > + > +2 > } +1 >Emitted(18, 17) Source(15, 13) + SourceIndex(0) +2 >Emitted(18, 18) Source(15, 14) + SourceIndex(0) +--- +>>> } +1 >^^^^^^^^^^^^ +2 > ^ +1 > + > +2 > } +1 >Emitted(19, 13) Source(16, 9) + SourceIndex(0) +2 >Emitted(19, 14) Source(16, 10) + SourceIndex(0) +--- +>>> } +1 >^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^-> +1 > + > } +1 >Emitted(20, 10) Source(17, 6) + SourceIndex(0) +--- +>>> tools.Test = Test; +1->^^^^^^^^ +2 > ^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > Test +3 > { + > public doX(): void { + > let f: number = 2; + > switch (f) { + > case 1: + > break; + > case 2: + > //line comment 1 + > //line comment 2 + > break; + > case 3: + > //a comment + > break; + > } + > } + > } +4 > +1->Emitted(21, 9) Source(2, 18) + SourceIndex(0) +2 >Emitted(21, 19) Source(2, 22) + SourceIndex(0) +3 >Emitted(21, 26) Source(17, 6) + SourceIndex(0) +4 >Emitted(21, 27) Source(17, 6) + SourceIndex(0) +--- +>>> })(tools = sas.tools || (sas.tools = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^ +5 > ^^^ +6 > ^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^ +9 > ^^^^^^^^ +1-> + > + > +2 > } +3 > +4 > tools +5 > +6 > tools +7 > +8 > tools +9 > { + > export class Test { + > public doX(): void { + > let f: number = 2; + > switch (f) { + > case 1: + > break; + > case 2: + > //line comment 1 + > //line comment 2 + > break; + > case 3: + > //a comment + > break; + > } + > } + > } + > + > } +1->Emitted(22, 5) Source(19, 1) + SourceIndex(0) +2 >Emitted(22, 6) Source(19, 2) + SourceIndex(0) +3 >Emitted(22, 8) Source(1, 15) + SourceIndex(0) +4 >Emitted(22, 13) Source(1, 20) + SourceIndex(0) +5 >Emitted(22, 16) Source(1, 15) + SourceIndex(0) +6 >Emitted(22, 25) Source(1, 20) + SourceIndex(0) +7 >Emitted(22, 30) Source(1, 15) + SourceIndex(0) +8 >Emitted(22, 39) Source(1, 20) + SourceIndex(0) +9 >Emitted(22, 47) Source(19, 2) + SourceIndex(0) +--- +>>>})(sas || (sas = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^ +5 > ^^^^^ +6 > ^^^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > sas +5 > +6 > sas +7 > .tools { + > export class Test { + > public doX(): void { + > let f: number = 2; + > switch (f) { + > case 1: + > break; + > case 2: + > //line comment 1 + > //line comment 2 + > break; + > case 3: + > //a comment + > break; + > } + > } + > } + > + > } +1 >Emitted(23, 1) Source(19, 1) + SourceIndex(0) +2 >Emitted(23, 2) Source(19, 2) + SourceIndex(0) +3 >Emitted(23, 4) Source(1, 11) + SourceIndex(0) +4 >Emitted(23, 7) Source(1, 14) + SourceIndex(0) +5 >Emitted(23, 12) Source(1, 11) + SourceIndex(0) +6 >Emitted(23, 15) Source(1, 14) + SourceIndex(0) +7 >Emitted(23, 23) Source(19, 2) + SourceIndex(0) +--- +>>>//# sourceMappingURL=sourceMap-Comments.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMap-Comments.symbols b/tests/baselines/reference/sourceMap-Comments(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/sourceMap-Comments.symbols rename to tests/baselines/reference/sourceMap-Comments(target=es2015).symbols diff --git a/tests/baselines/reference/sourceMap-Comments.types b/tests/baselines/reference/sourceMap-Comments(target=es2015).types similarity index 100% rename from tests/baselines/reference/sourceMap-Comments.types rename to tests/baselines/reference/sourceMap-Comments(target=es2015).types diff --git a/tests/baselines/reference/sourceMap-Comments.js b/tests/baselines/reference/sourceMap-Comments(target=es5).js similarity index 100% rename from tests/baselines/reference/sourceMap-Comments.js rename to tests/baselines/reference/sourceMap-Comments(target=es5).js diff --git a/tests/baselines/reference/sourceMap-Comments.js.map b/tests/baselines/reference/sourceMap-Comments(target=es5).js.map similarity index 100% rename from tests/baselines/reference/sourceMap-Comments.js.map rename to tests/baselines/reference/sourceMap-Comments(target=es5).js.map diff --git a/tests/baselines/reference/sourceMap-Comments.sourcemap.txt b/tests/baselines/reference/sourceMap-Comments(target=es5).sourcemap.txt similarity index 100% rename from tests/baselines/reference/sourceMap-Comments.sourcemap.txt rename to tests/baselines/reference/sourceMap-Comments(target=es5).sourcemap.txt diff --git a/tests/baselines/reference/sourceMap-Comments(target=es5).symbols b/tests/baselines/reference/sourceMap-Comments(target=es5).symbols new file mode 100644 index 0000000000000..fbaad65ff687d --- /dev/null +++ b/tests/baselines/reference/sourceMap-Comments(target=es5).symbols @@ -0,0 +1,34 @@ +//// [tests/cases/compiler/sourceMap-Comments.ts] //// + +=== sourceMap-Comments.ts === +namespace sas.tools { +>sas : Symbol(sas, Decl(sourceMap-Comments.ts, 0, 0)) +>tools : Symbol(tools, Decl(sourceMap-Comments.ts, 0, 14)) + + export class Test { +>Test : Symbol(Test, Decl(sourceMap-Comments.ts, 0, 21)) + + public doX(): void { +>doX : Symbol(Test.doX, Decl(sourceMap-Comments.ts, 1, 23)) + + let f: number = 2; +>f : Symbol(f, Decl(sourceMap-Comments.ts, 3, 15)) + + switch (f) { +>f : Symbol(f, Decl(sourceMap-Comments.ts, 3, 15)) + + case 1: + break; + case 2: + //line comment 1 + //line comment 2 + break; + case 3: + //a comment + break; + } + } + } + +} + diff --git a/tests/baselines/reference/sourceMap-Comments(target=es5).types b/tests/baselines/reference/sourceMap-Comments(target=es5).types new file mode 100644 index 0000000000000..55207e4ec9c36 --- /dev/null +++ b/tests/baselines/reference/sourceMap-Comments(target=es5).types @@ -0,0 +1,51 @@ +//// [tests/cases/compiler/sourceMap-Comments.ts] //// + +=== sourceMap-Comments.ts === +namespace sas.tools { +>sas : typeof sas +> : ^^^^^^^^^^ +>tools : typeof tools +> : ^^^^^^^^^^^^ + + export class Test { +>Test : Test +> : ^^^^ + + public doX(): void { +>doX : () => void +> : ^^^^^^ + + let f: number = 2; +>f : number +> : ^^^^^^ +>2 : 2 +> : ^ + + switch (f) { +>f : number +> : ^^^^^^ + + case 1: +>1 : 1 +> : ^ + + break; + case 2: +>2 : 2 +> : ^ + + //line comment 1 + //line comment 2 + break; + case 3: +>3 : 3 +> : ^ + + //a comment + break; + } + } + } + +} + diff --git a/tests/baselines/reference/sourceMap-Comments2.js b/tests/baselines/reference/sourceMap-Comments2(target=es2015).js similarity index 100% rename from tests/baselines/reference/sourceMap-Comments2.js rename to tests/baselines/reference/sourceMap-Comments2(target=es2015).js diff --git a/tests/baselines/reference/sourceMap-Comments2.js.map b/tests/baselines/reference/sourceMap-Comments2(target=es2015).js.map similarity index 100% rename from tests/baselines/reference/sourceMap-Comments2.js.map rename to tests/baselines/reference/sourceMap-Comments2(target=es2015).js.map diff --git a/tests/baselines/reference/sourceMap-Comments2.sourcemap.txt b/tests/baselines/reference/sourceMap-Comments2(target=es2015).sourcemap.txt similarity index 100% rename from tests/baselines/reference/sourceMap-Comments2.sourcemap.txt rename to tests/baselines/reference/sourceMap-Comments2(target=es2015).sourcemap.txt diff --git a/tests/baselines/reference/sourceMap-Comments2.symbols b/tests/baselines/reference/sourceMap-Comments2(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/sourceMap-Comments2.symbols rename to tests/baselines/reference/sourceMap-Comments2(target=es2015).symbols diff --git a/tests/baselines/reference/sourceMap-Comments2.types b/tests/baselines/reference/sourceMap-Comments2(target=es2015).types similarity index 100% rename from tests/baselines/reference/sourceMap-Comments2.types rename to tests/baselines/reference/sourceMap-Comments2(target=es2015).types diff --git a/tests/baselines/reference/sourceMap-Comments2(target=es5).js b/tests/baselines/reference/sourceMap-Comments2(target=es5).js new file mode 100644 index 0000000000000..33f845dd65234 --- /dev/null +++ b/tests/baselines/reference/sourceMap-Comments2(target=es5).js @@ -0,0 +1,41 @@ +//// [tests/cases/compiler/sourceMap-Comments2.ts] //// + +//// [sourceMap-Comments2.ts] +function foo(str: string, num: number): void { + return; +} + +/** + * some sort of block quote + */ +function bar(str: string, num: number): void { + return; +} + +// some sort of comment +function baz(str: string, num: number): void { + return; +} + +function qat(str: string, num: number): void { + return; +} + +//// [sourceMap-Comments2.js] +function foo(str, num) { + return; +} +/** + * some sort of block quote + */ +function bar(str, num) { + return; +} +// some sort of comment +function baz(str, num) { + return; +} +function qat(str, num) { + return; +} +//# sourceMappingURL=sourceMap-Comments2.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMap-Comments2(target=es5).js.map b/tests/baselines/reference/sourceMap-Comments2(target=es5).js.map new file mode 100644 index 0000000000000..f1d6a4588e90b --- /dev/null +++ b/tests/baselines/reference/sourceMap-Comments2(target=es5).js.map @@ -0,0 +1,3 @@ +//// [sourceMap-Comments2.js.map] +{"version":3,"file":"sourceMap-Comments2.js","sourceRoot":"","sources":["sourceMap-Comments2.ts"],"names":[],"mappings":"AAAA,SAAS,GAAG,CAAC,GAAW,EAAE,GAAW;IACjC,OAAO;AACX,CAAC;AAED;;GAEG;AACH,SAAS,GAAG,CAAC,GAAW,EAAE,GAAW;IACjC,OAAO;AACX,CAAC;AAED,uBAAuB;AACvB,SAAS,GAAG,CAAC,GAAW,EAAE,GAAW;IACjC,OAAO;AACX,CAAC;AAED,SAAS,GAAG,CAAC,GAAW,EAAE,GAAW;IACjC,OAAO;AACX,CAAC"} +//// https://sokra.github.io/source-map-visualization#base64,ZnVuY3Rpb24gZm9vKHN0ciwgbnVtKSB7DQogICAgcmV0dXJuOw0KfQ0KLyoqDQogKiBzb21lIHNvcnQgb2YgYmxvY2sgcXVvdGUNCiAqLw0KZnVuY3Rpb24gYmFyKHN0ciwgbnVtKSB7DQogICAgcmV0dXJuOw0KfQ0KLy8gc29tZSBzb3J0IG9mIGNvbW1lbnQNCmZ1bmN0aW9uIGJheihzdHIsIG51bSkgew0KICAgIHJldHVybjsNCn0NCmZ1bmN0aW9uIHFhdChzdHIsIG51bSkgew0KICAgIHJldHVybjsNCn0NCi8vIyBzb3VyY2VNYXBwaW5nVVJMPXNvdXJjZU1hcC1Db21tZW50czIuanMubWFw,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic291cmNlTWFwLUNvbW1lbnRzMi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInNvdXJjZU1hcC1Db21tZW50czIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsU0FBUyxHQUFHLENBQUMsR0FBVyxFQUFFLEdBQVc7SUFDakMsT0FBTztBQUNYLENBQUM7QUFFRDs7R0FFRztBQUNILFNBQVMsR0FBRyxDQUFDLEdBQVcsRUFBRSxHQUFXO0lBQ2pDLE9BQU87QUFDWCxDQUFDO0FBRUQsdUJBQXVCO0FBQ3ZCLFNBQVMsR0FBRyxDQUFDLEdBQVcsRUFBRSxHQUFXO0lBQ2pDLE9BQU87QUFDWCxDQUFDO0FBRUQsU0FBUyxHQUFHLENBQUMsR0FBVyxFQUFFLEdBQVc7SUFDakMsT0FBTztBQUNYLENBQUMifQ==,ZnVuY3Rpb24gZm9vKHN0cjogc3RyaW5nLCBudW06IG51bWJlcik6IHZvaWQgewogICAgcmV0dXJuOwp9CgovKioKICogc29tZSBzb3J0IG9mIGJsb2NrIHF1b3RlCiAqLwpmdW5jdGlvbiBiYXIoc3RyOiBzdHJpbmcsIG51bTogbnVtYmVyKTogdm9pZCB7CiAgICByZXR1cm47Cn0KCi8vIHNvbWUgc29ydCBvZiBjb21tZW50CmZ1bmN0aW9uIGJheihzdHI6IHN0cmluZywgbnVtOiBudW1iZXIpOiB2b2lkIHsKICAgIHJldHVybjsKfQoKZnVuY3Rpb24gcWF0KHN0cjogc3RyaW5nLCBudW06IG51bWJlcik6IHZvaWQgewogICAgcmV0dXJuOwp9 diff --git a/tests/baselines/reference/sourceMap-Comments2(target=es5).sourcemap.txt b/tests/baselines/reference/sourceMap-Comments2(target=es5).sourcemap.txt new file mode 100644 index 0000000000000..d944c44952693 --- /dev/null +++ b/tests/baselines/reference/sourceMap-Comments2(target=es5).sourcemap.txt @@ -0,0 +1,211 @@ +=================================================================== +JsFile: sourceMap-Comments2.js +mapUrl: sourceMap-Comments2.js.map +sourceRoot: +sources: sourceMap-Comments2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:sourceMap-Comments2.js +sourceFile:sourceMap-Comments2.ts +------------------------------------------------------------------- +>>>function foo(str, num) { +1 > +2 >^^^^^^^^^ +3 > ^^^ +4 > ^ +5 > ^^^ +6 > ^^ +7 > ^^^ +1 > +2 >function +3 > foo +4 > ( +5 > str: string +6 > , +7 > num: number +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 10) Source(1, 10) + SourceIndex(0) +3 >Emitted(1, 13) Source(1, 13) + SourceIndex(0) +4 >Emitted(1, 14) Source(1, 14) + SourceIndex(0) +5 >Emitted(1, 17) Source(1, 25) + SourceIndex(0) +6 >Emitted(1, 19) Source(1, 27) + SourceIndex(0) +7 >Emitted(1, 22) Source(1, 38) + SourceIndex(0) +--- +>>> return; +1 >^^^^ +2 > ^^^^^^^ +1 >): void { + > +2 > return; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +--- +>>>} +1 > +2 >^ +3 > ^^^-> +1 > + > +2 >} +1 >Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>/** +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > + > +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +--- +>>> * some sort of block quote +>>> */ +1->^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^-> +1->/** + > * some sort of block quote + > */ +1->Emitted(6, 4) Source(7, 4) + SourceIndex(0) +--- +>>>function bar(str, num) { +1-> +2 >^^^^^^^^^ +3 > ^^^ +4 > ^ +5 > ^^^ +6 > ^^ +7 > ^^^ +1-> + > +2 >function +3 > bar +4 > ( +5 > str: string +6 > , +7 > num: number +1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(7, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(7, 13) Source(8, 13) + SourceIndex(0) +4 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(7, 17) Source(8, 25) + SourceIndex(0) +6 >Emitted(7, 19) Source(8, 27) + SourceIndex(0) +7 >Emitted(7, 22) Source(8, 38) + SourceIndex(0) +--- +>>> return; +1 >^^^^ +2 > ^^^^^^^ +1 >): void { + > +2 > return; +1 >Emitted(8, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(9, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(9, 2) Source(10, 2) + SourceIndex(0) +--- +>>>// some sort of comment +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^-> +1-> + > + > +2 >// some sort of comment +1->Emitted(10, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(10, 24) Source(12, 24) + SourceIndex(0) +--- +>>>function baz(str, num) { +1-> +2 >^^^^^^^^^ +3 > ^^^ +4 > ^ +5 > ^^^ +6 > ^^ +7 > ^^^ +1-> + > +2 >function +3 > baz +4 > ( +5 > str: string +6 > , +7 > num: number +1->Emitted(11, 1) Source(13, 1) + SourceIndex(0) +2 >Emitted(11, 10) Source(13, 10) + SourceIndex(0) +3 >Emitted(11, 13) Source(13, 13) + SourceIndex(0) +4 >Emitted(11, 14) Source(13, 14) + SourceIndex(0) +5 >Emitted(11, 17) Source(13, 25) + SourceIndex(0) +6 >Emitted(11, 19) Source(13, 27) + SourceIndex(0) +7 >Emitted(11, 22) Source(13, 38) + SourceIndex(0) +--- +>>> return; +1 >^^^^ +2 > ^^^^^^^ +1 >): void { + > +2 > return; +1 >Emitted(12, 5) Source(14, 5) + SourceIndex(0) +2 >Emitted(12, 12) Source(14, 12) + SourceIndex(0) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(13, 1) Source(15, 1) + SourceIndex(0) +2 >Emitted(13, 2) Source(15, 2) + SourceIndex(0) +--- +>>>function qat(str, num) { +1-> +2 >^^^^^^^^^ +3 > ^^^ +4 > ^ +5 > ^^^ +6 > ^^ +7 > ^^^ +1-> + > + > +2 >function +3 > qat +4 > ( +5 > str: string +6 > , +7 > num: number +1->Emitted(14, 1) Source(17, 1) + SourceIndex(0) +2 >Emitted(14, 10) Source(17, 10) + SourceIndex(0) +3 >Emitted(14, 13) Source(17, 13) + SourceIndex(0) +4 >Emitted(14, 14) Source(17, 14) + SourceIndex(0) +5 >Emitted(14, 17) Source(17, 25) + SourceIndex(0) +6 >Emitted(14, 19) Source(17, 27) + SourceIndex(0) +7 >Emitted(14, 22) Source(17, 38) + SourceIndex(0) +--- +>>> return; +1 >^^^^ +2 > ^^^^^^^ +1 >): void { + > +2 > return; +1 >Emitted(15, 5) Source(18, 5) + SourceIndex(0) +2 >Emitted(15, 12) Source(18, 12) + SourceIndex(0) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(16, 1) Source(19, 1) + SourceIndex(0) +2 >Emitted(16, 2) Source(19, 2) + SourceIndex(0) +--- +>>>//# sourceMappingURL=sourceMap-Comments2.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMap-Comments2(target=es5).symbols b/tests/baselines/reference/sourceMap-Comments2(target=es5).symbols new file mode 100644 index 0000000000000..35cbf239c569a --- /dev/null +++ b/tests/baselines/reference/sourceMap-Comments2(target=es5).symbols @@ -0,0 +1,38 @@ +//// [tests/cases/compiler/sourceMap-Comments2.ts] //// + +=== sourceMap-Comments2.ts === +function foo(str: string, num: number): void { +>foo : Symbol(foo, Decl(sourceMap-Comments2.ts, 0, 0)) +>str : Symbol(str, Decl(sourceMap-Comments2.ts, 0, 13)) +>num : Symbol(num, Decl(sourceMap-Comments2.ts, 0, 25)) + + return; +} + +/** + * some sort of block quote + */ +function bar(str: string, num: number): void { +>bar : Symbol(bar, Decl(sourceMap-Comments2.ts, 2, 1)) +>str : Symbol(str, Decl(sourceMap-Comments2.ts, 7, 13)) +>num : Symbol(num, Decl(sourceMap-Comments2.ts, 7, 25)) + + return; +} + +// some sort of comment +function baz(str: string, num: number): void { +>baz : Symbol(baz, Decl(sourceMap-Comments2.ts, 9, 1)) +>str : Symbol(str, Decl(sourceMap-Comments2.ts, 12, 13)) +>num : Symbol(num, Decl(sourceMap-Comments2.ts, 12, 25)) + + return; +} + +function qat(str: string, num: number): void { +>qat : Symbol(qat, Decl(sourceMap-Comments2.ts, 14, 1)) +>str : Symbol(str, Decl(sourceMap-Comments2.ts, 16, 13)) +>num : Symbol(num, Decl(sourceMap-Comments2.ts, 16, 25)) + + return; +} diff --git a/tests/baselines/reference/sourceMap-Comments2(target=es5).types b/tests/baselines/reference/sourceMap-Comments2(target=es5).types new file mode 100644 index 0000000000000..f96ef19bf280a --- /dev/null +++ b/tests/baselines/reference/sourceMap-Comments2(target=es5).types @@ -0,0 +1,50 @@ +//// [tests/cases/compiler/sourceMap-Comments2.ts] //// + +=== sourceMap-Comments2.ts === +function foo(str: string, num: number): void { +>foo : (str: string, num: number) => void +> : ^ ^^ ^^ ^^ ^^^^^ +>str : string +> : ^^^^^^ +>num : number +> : ^^^^^^ + + return; +} + +/** + * some sort of block quote + */ +function bar(str: string, num: number): void { +>bar : (str: string, num: number) => void +> : ^ ^^ ^^ ^^ ^^^^^ +>str : string +> : ^^^^^^ +>num : number +> : ^^^^^^ + + return; +} + +// some sort of comment +function baz(str: string, num: number): void { +>baz : (str: string, num: number) => void +> : ^ ^^ ^^ ^^ ^^^^^ +>str : string +> : ^^^^^^ +>num : number +> : ^^^^^^ + + return; +} + +function qat(str: string, num: number): void { +>qat : (str: string, num: number) => void +> : ^ ^^ ^^ ^^ ^^^^^ +>str : string +> : ^^^^^^ +>num : number +> : ^^^^^^ + + return; +} diff --git a/tests/baselines/reference/sourceMap-EmptyFile1.js b/tests/baselines/reference/sourceMap-EmptyFile1(target=es2015).js similarity index 100% rename from tests/baselines/reference/sourceMap-EmptyFile1.js rename to tests/baselines/reference/sourceMap-EmptyFile1(target=es2015).js diff --git a/tests/baselines/reference/sourceMap-EmptyFile1.js.map b/tests/baselines/reference/sourceMap-EmptyFile1(target=es2015).js.map similarity index 100% rename from tests/baselines/reference/sourceMap-EmptyFile1.js.map rename to tests/baselines/reference/sourceMap-EmptyFile1(target=es2015).js.map diff --git a/tests/baselines/reference/sourceMap-EmptyFile1.sourcemap.txt b/tests/baselines/reference/sourceMap-EmptyFile1(target=es2015).sourcemap.txt similarity index 100% rename from tests/baselines/reference/sourceMap-EmptyFile1.sourcemap.txt rename to tests/baselines/reference/sourceMap-EmptyFile1(target=es2015).sourcemap.txt diff --git a/tests/baselines/reference/sourceMap-EmptyFile1.symbols b/tests/baselines/reference/sourceMap-EmptyFile1(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/sourceMap-EmptyFile1.symbols rename to tests/baselines/reference/sourceMap-EmptyFile1(target=es2015).symbols diff --git a/tests/baselines/reference/sourceMap-EmptyFile1.types b/tests/baselines/reference/sourceMap-EmptyFile1(target=es2015).types similarity index 100% rename from tests/baselines/reference/sourceMap-EmptyFile1.types rename to tests/baselines/reference/sourceMap-EmptyFile1(target=es2015).types diff --git a/tests/baselines/reference/sourceMap-EmptyFile1(target=es5).js b/tests/baselines/reference/sourceMap-EmptyFile1(target=es5).js new file mode 100644 index 0000000000000..4d36f78adb99b --- /dev/null +++ b/tests/baselines/reference/sourceMap-EmptyFile1(target=es5).js @@ -0,0 +1,7 @@ +//// [tests/cases/compiler/sourceMap-EmptyFile1.ts] //// + +//// [sourceMap-EmptyFile1.ts] + + +//// [sourceMap-EmptyFile1.js] +//# sourceMappingURL=sourceMap-EmptyFile1.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMap-EmptyFile1(target=es5).js.map b/tests/baselines/reference/sourceMap-EmptyFile1(target=es5).js.map new file mode 100644 index 0000000000000..1913d73094221 --- /dev/null +++ b/tests/baselines/reference/sourceMap-EmptyFile1(target=es5).js.map @@ -0,0 +1,3 @@ +//// [sourceMap-EmptyFile1.js.map] +{"version":3,"file":"sourceMap-EmptyFile1.js","sourceRoot":"","sources":["sourceMap-EmptyFile1.ts"],"names":[],"mappings":""} +//// https://sokra.github.io/source-map-visualization#base64,Ly8jIHNvdXJjZU1hcHBpbmdVUkw9c291cmNlTWFwLUVtcHR5RmlsZTEuanMubWFw,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic291cmNlTWFwLUVtcHR5RmlsZTEuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJzb3VyY2VNYXAtRW1wdHlGaWxlMS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIn0=, diff --git a/tests/baselines/reference/sourceMap-EmptyFile1(target=es5).sourcemap.txt b/tests/baselines/reference/sourceMap-EmptyFile1(target=es5).sourcemap.txt new file mode 100644 index 0000000000000..989f104b8b330 --- /dev/null +++ b/tests/baselines/reference/sourceMap-EmptyFile1(target=es5).sourcemap.txt @@ -0,0 +1,7 @@ +=================================================================== +JsFile: sourceMap-EmptyFile1.js +mapUrl: sourceMap-EmptyFile1.js.map +sourceRoot: +sources: sourceMap-EmptyFile1.ts +=================================================================== +>>>//# sourceMappingURL=sourceMap-EmptyFile1.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMap-EmptyFile1(target=es5).symbols b/tests/baselines/reference/sourceMap-EmptyFile1(target=es5).symbols new file mode 100644 index 0000000000000..7b3f9d7ebb8bf --- /dev/null +++ b/tests/baselines/reference/sourceMap-EmptyFile1(target=es5).symbols @@ -0,0 +1,4 @@ +//// [tests/cases/compiler/sourceMap-EmptyFile1.ts] //// + +=== sourceMap-EmptyFile1.ts === + diff --git a/tests/baselines/reference/sourceMap-EmptyFile1(target=es5).types b/tests/baselines/reference/sourceMap-EmptyFile1(target=es5).types new file mode 100644 index 0000000000000..7b3f9d7ebb8bf --- /dev/null +++ b/tests/baselines/reference/sourceMap-EmptyFile1(target=es5).types @@ -0,0 +1,4 @@ +//// [tests/cases/compiler/sourceMap-EmptyFile1.ts] //// + +=== sourceMap-EmptyFile1.ts === + diff --git a/tests/baselines/reference/sourceMap-InterfacePrecedingVariableDeclaration1.js b/tests/baselines/reference/sourceMap-InterfacePrecedingVariableDeclaration1(target=es2015).js similarity index 100% rename from tests/baselines/reference/sourceMap-InterfacePrecedingVariableDeclaration1.js rename to tests/baselines/reference/sourceMap-InterfacePrecedingVariableDeclaration1(target=es2015).js diff --git a/tests/baselines/reference/sourceMap-InterfacePrecedingVariableDeclaration1.js.map b/tests/baselines/reference/sourceMap-InterfacePrecedingVariableDeclaration1(target=es2015).js.map similarity index 100% rename from tests/baselines/reference/sourceMap-InterfacePrecedingVariableDeclaration1.js.map rename to tests/baselines/reference/sourceMap-InterfacePrecedingVariableDeclaration1(target=es2015).js.map diff --git a/tests/baselines/reference/sourceMap-InterfacePrecedingVariableDeclaration1.sourcemap.txt b/tests/baselines/reference/sourceMap-InterfacePrecedingVariableDeclaration1(target=es2015).sourcemap.txt similarity index 100% rename from tests/baselines/reference/sourceMap-InterfacePrecedingVariableDeclaration1.sourcemap.txt rename to tests/baselines/reference/sourceMap-InterfacePrecedingVariableDeclaration1(target=es2015).sourcemap.txt diff --git a/tests/baselines/reference/sourceMap-InterfacePrecedingVariableDeclaration1.symbols b/tests/baselines/reference/sourceMap-InterfacePrecedingVariableDeclaration1(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/sourceMap-InterfacePrecedingVariableDeclaration1.symbols rename to tests/baselines/reference/sourceMap-InterfacePrecedingVariableDeclaration1(target=es2015).symbols diff --git a/tests/baselines/reference/sourceMap-InterfacePrecedingVariableDeclaration1.types b/tests/baselines/reference/sourceMap-InterfacePrecedingVariableDeclaration1(target=es2015).types similarity index 100% rename from tests/baselines/reference/sourceMap-InterfacePrecedingVariableDeclaration1.types rename to tests/baselines/reference/sourceMap-InterfacePrecedingVariableDeclaration1(target=es2015).types diff --git a/tests/baselines/reference/sourceMap-InterfacePrecedingVariableDeclaration1(target=es5).js b/tests/baselines/reference/sourceMap-InterfacePrecedingVariableDeclaration1(target=es5).js new file mode 100644 index 0000000000000..12181dc7ef532 --- /dev/null +++ b/tests/baselines/reference/sourceMap-InterfacePrecedingVariableDeclaration1(target=es5).js @@ -0,0 +1,9 @@ +//// [tests/cases/compiler/sourceMap-InterfacePrecedingVariableDeclaration1.ts] //// + +//// [sourceMap-InterfacePrecedingVariableDeclaration1.ts] +interface I {} +var x = 0; + +//// [sourceMap-InterfacePrecedingVariableDeclaration1.js] +var x = 0; +//# sourceMappingURL=sourceMap-InterfacePrecedingVariableDeclaration1.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMap-InterfacePrecedingVariableDeclaration1(target=es5).js.map b/tests/baselines/reference/sourceMap-InterfacePrecedingVariableDeclaration1(target=es5).js.map new file mode 100644 index 0000000000000..2e808f081e393 --- /dev/null +++ b/tests/baselines/reference/sourceMap-InterfacePrecedingVariableDeclaration1(target=es5).js.map @@ -0,0 +1,3 @@ +//// [sourceMap-InterfacePrecedingVariableDeclaration1.js.map] +{"version":3,"file":"sourceMap-InterfacePrecedingVariableDeclaration1.js","sourceRoot":"","sources":["sourceMap-InterfacePrecedingVariableDeclaration1.ts"],"names":[],"mappings":"AACA,IAAI,CAAC,GAAG,CAAC,CAAC"} +//// https://sokra.github.io/source-map-visualization#base64,dmFyIHggPSAwOw0KLy8jIHNvdXJjZU1hcHBpbmdVUkw9c291cmNlTWFwLUludGVyZmFjZVByZWNlZGluZ1ZhcmlhYmxlRGVjbGFyYXRpb24xLmpzLm1hcA==,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic291cmNlTWFwLUludGVyZmFjZVByZWNlZGluZ1ZhcmlhYmxlRGVjbGFyYXRpb24xLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsic291cmNlTWFwLUludGVyZmFjZVByZWNlZGluZ1ZhcmlhYmxlRGVjbGFyYXRpb24xLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUNBLElBQUksQ0FBQyxHQUFHLENBQUMsQ0FBQyJ9,aW50ZXJmYWNlIEkge30KdmFyIHggPSAwOw== diff --git a/tests/baselines/reference/sourceMap-InterfacePrecedingVariableDeclaration1(target=es5).sourcemap.txt b/tests/baselines/reference/sourceMap-InterfacePrecedingVariableDeclaration1(target=es5).sourcemap.txt new file mode 100644 index 0000000000000..fab99048a84b5 --- /dev/null +++ b/tests/baselines/reference/sourceMap-InterfacePrecedingVariableDeclaration1(target=es5).sourcemap.txt @@ -0,0 +1,33 @@ +=================================================================== +JsFile: sourceMap-InterfacePrecedingVariableDeclaration1.js +mapUrl: sourceMap-InterfacePrecedingVariableDeclaration1.js.map +sourceRoot: +sources: sourceMap-InterfacePrecedingVariableDeclaration1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:sourceMap-InterfacePrecedingVariableDeclaration1.js +sourceFile:sourceMap-InterfacePrecedingVariableDeclaration1.ts +------------------------------------------------------------------- +>>>var x = 0; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >interface I {} + > +2 >var +3 > x +4 > = +5 > 0 +6 > ; +1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) +3 >Emitted(1, 6) Source(2, 6) + SourceIndex(0) +4 >Emitted(1, 9) Source(2, 9) + SourceIndex(0) +5 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) +6 >Emitted(1, 11) Source(2, 11) + SourceIndex(0) +--- +>>>//# sourceMappingURL=sourceMap-InterfacePrecedingVariableDeclaration1.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMap-InterfacePrecedingVariableDeclaration1(target=es5).symbols b/tests/baselines/reference/sourceMap-InterfacePrecedingVariableDeclaration1(target=es5).symbols new file mode 100644 index 0000000000000..6eee78d036a5c --- /dev/null +++ b/tests/baselines/reference/sourceMap-InterfacePrecedingVariableDeclaration1(target=es5).symbols @@ -0,0 +1,9 @@ +//// [tests/cases/compiler/sourceMap-InterfacePrecedingVariableDeclaration1.ts] //// + +=== sourceMap-InterfacePrecedingVariableDeclaration1.ts === +interface I {} +>I : Symbol(I, Decl(sourceMap-InterfacePrecedingVariableDeclaration1.ts, 0, 0)) + +var x = 0; +>x : Symbol(x, Decl(sourceMap-InterfacePrecedingVariableDeclaration1.ts, 1, 3)) + diff --git a/tests/baselines/reference/sourceMap-InterfacePrecedingVariableDeclaration1(target=es5).types b/tests/baselines/reference/sourceMap-InterfacePrecedingVariableDeclaration1(target=es5).types new file mode 100644 index 0000000000000..81f9e6fa410ff --- /dev/null +++ b/tests/baselines/reference/sourceMap-InterfacePrecedingVariableDeclaration1(target=es5).types @@ -0,0 +1,10 @@ +//// [tests/cases/compiler/sourceMap-InterfacePrecedingVariableDeclaration1.ts] //// + +=== sourceMap-InterfacePrecedingVariableDeclaration1.ts === +interface I {} +var x = 0; +>x : number +> : ^^^^^^ +>0 : 0 +> : ^ + diff --git a/tests/baselines/reference/sourceMap-LineBreaks.js b/tests/baselines/reference/sourceMap-LineBreaks(target=es2015).js similarity index 82% rename from tests/baselines/reference/sourceMap-LineBreaks.js rename to tests/baselines/reference/sourceMap-LineBreaks(target=es2015).js index 715e01c05c5fb..7a0564f7bf450 100644 --- a/tests/baselines/reference/sourceMap-LineBreaks.js +++ b/tests/baselines/reference/sourceMap-LineBreaks(target=es2015).js @@ -3,14 +3,17 @@ //// [sourceMap-LineBreaks.ts] var endsWithlineSeparator = 10; 
var endsWithParagraphSeparator = 10; 
var endsWithNextLine = 1;…var endsWithLineFeed = 1; var endsWithCarriageReturnLineFeed = 1; -var endsWithCarriageReturn = 1; var endsWithLineFeedCarriageReturn = 1; - var endsWithLineFeedCarriageReturnLineFeed = 1; +var endsWithCarriageReturn = 1; +var endsWithLineFeedCarriageReturn = 1; + +var endsWithLineFeedCarriageReturnLineFeed = 1; var stringLiteralWithLineFeed = "line 1\ line 2"; var stringLiteralWithCarriageReturnLineFeed = "line 1\ line 2"; -var stringLiteralWithCarriageReturn = "line 1\ line 2"; +var stringLiteralWithCarriageReturn = "line 1\ +line 2"; var stringLiteralWithLineSeparator = "line 1\
line 2";
var stringLiteralWithParagraphSeparator = "line 1\
line 2";
var stringLiteralWithNextLine = "line 1\…line 2"; @@ -27,7 +30,8 @@ var stringLiteralWithLineFeed = "line 1\ line 2"; var stringLiteralWithCarriageReturnLineFeed = "line 1\ line 2"; -var stringLiteralWithCarriageReturn = "line 1\ line 2"; +var stringLiteralWithCarriageReturn = "line 1\ +line 2"; var stringLiteralWithLineSeparator = "line 1\
line 2"; var stringLiteralWithParagraphSeparator = "line 1\
line 2"; var stringLiteralWithNextLine = "line 1\…line 2"; diff --git a/tests/baselines/reference/sourceMap-LineBreaks.js.map b/tests/baselines/reference/sourceMap-LineBreaks(target=es2015).js.map similarity index 92% rename from tests/baselines/reference/sourceMap-LineBreaks.js.map rename to tests/baselines/reference/sourceMap-LineBreaks(target=es2015).js.map index b9f8a26fbb4c5..99b2836e033d3 100644 --- a/tests/baselines/reference/sourceMap-LineBreaks.js.map +++ b/tests/baselines/reference/sourceMap-LineBreaks(target=es2015).js.map @@ -1,3 +1,3 @@ //// [sourceMap-LineBreaks.js.map] {"version":3,"file":"sourceMap-LineBreaks.js","sourceRoot":"","sources":["sourceMap-LineBreaks.ts"],"names":[],"mappings":"AAAA,IAAI,qBAAqB,GAAG,EAAE,CAAC;AAC/B,IAAI,0BAA0B,GAAG,EAAE,CAAC;AACpC,IAAI,gBAAgB,GAAG,CAAC,CAAC;AAAC,IAAI,gBAAgB,GAAG,CAAC,CAAC;AACnD,IAAI,8BAA8B,GAAG,CAAC,CAAC;AACvC,IAAI,sBAAsB,GAAG,CAAC,CAAC;AAC/B,IAAI,8BAA8B,GAAG,CAAC,CAAC;AAEvC,IAAI,sCAAsC,GAAG,CAAC,CAAC;AAE/C,IAAI,yBAAyB,GAAG;OACzB,CAAC;AACR,IAAI,uCAAuC,GAAG;OACvC,CAAC;AACR,IAAI,+BAA+B,GAAG;OAC/B,CAAC;AAER,IAAI,8BAA8B,GAAG;OAC9B,CAAC;AACR,IAAI,mCAAmC,GAAG;OACnC,CAAC;AACR,IAAI,yBAAyB,GAAG,gBAAgB,CAAC"} -//// https://sokra.github.io/source-map-visualization#base64,dmFyIGVuZHNXaXRobGluZVNlcGFyYXRvciA9IDEwOw0KdmFyIGVuZHNXaXRoUGFyYWdyYXBoU2VwYXJhdG9yID0gMTA7DQp2YXIgZW5kc1dpdGhOZXh0TGluZSA9IDE7DQp2YXIgZW5kc1dpdGhMaW5lRmVlZCA9IDE7DQp2YXIgZW5kc1dpdGhDYXJyaWFnZVJldHVybkxpbmVGZWVkID0gMTsNCnZhciBlbmRzV2l0aENhcnJpYWdlUmV0dXJuID0gMTsNCnZhciBlbmRzV2l0aExpbmVGZWVkQ2FycmlhZ2VSZXR1cm4gPSAxOw0KdmFyIGVuZHNXaXRoTGluZUZlZWRDYXJyaWFnZVJldHVybkxpbmVGZWVkID0gMTsNCnZhciBzdHJpbmdMaXRlcmFsV2l0aExpbmVGZWVkID0gImxpbmUgMVwKbGluZSAyIjsNCnZhciBzdHJpbmdMaXRlcmFsV2l0aENhcnJpYWdlUmV0dXJuTGluZUZlZWQgPSAibGluZSAxXApsaW5lIDIiOw0KdmFyIHN0cmluZ0xpdGVyYWxXaXRoQ2FycmlhZ2VSZXR1cm4gPSAibGluZSAxXA1saW5lIDIiOw0KdmFyIHN0cmluZ0xpdGVyYWxXaXRoTGluZVNlcGFyYXRvciA9ICJsaW5lIDFc4oCobGluZSAyIjsNCnZhciBzdHJpbmdMaXRlcmFsV2l0aFBhcmFncmFwaFNlcGFyYXRvciA9ICJsaW5lIDFc4oCpbGluZSAyIjsNCnZhciBzdHJpbmdMaXRlcmFsV2l0aE5leHRMaW5lID0gImxpbmUgMVzChWxpbmUgMiI7DQovLyMgc291cmNlTWFwcGluZ1VSTD1zb3VyY2VNYXAtTGluZUJyZWFrcy5qcy5tYXA=,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic291cmNlTWFwLUxpbmVCcmVha3MuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJzb3VyY2VNYXAtTGluZUJyZWFrcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxJQUFJLHFCQUFxQixHQUFHLEVBQUUsQ0FBQztBQUMvQixJQUFJLDBCQUEwQixHQUFHLEVBQUUsQ0FBQztBQUNwQyxJQUFJLGdCQUFnQixHQUFHLENBQUMsQ0FBQztBQUFDLElBQUksZ0JBQWdCLEdBQUcsQ0FBQyxDQUFDO0FBQ25ELElBQUksOEJBQThCLEdBQUcsQ0FBQyxDQUFDO0FBQ3ZDLElBQUksc0JBQXNCLEdBQUcsQ0FBQyxDQUFDO0FBQy9CLElBQUksOEJBQThCLEdBQUcsQ0FBQyxDQUFDO0FBRXZDLElBQUksc0NBQXNDLEdBQUcsQ0FBQyxDQUFDO0FBRS9DLElBQUkseUJBQXlCLEdBQUc7T0FDekIsQ0FBQztBQUNSLElBQUksdUNBQXVDLEdBQUc7T0FDdkMsQ0FBQztBQUNSLElBQUksK0JBQStCLEdBQUc7T0FDL0IsQ0FBQztBQUVSLElBQUksOEJBQThCLEdBQUc7T0FDOUIsQ0FBQztBQUNSLElBQUksbUNBQW1DLEdBQUc7T0FDbkMsQ0FBQztBQUNSLElBQUkseUJBQXlCLEdBQUcsZ0JBQWdCLENBQUMifQ==,dmFyIGVuZHNXaXRobGluZVNlcGFyYXRvciA9IDEwOyDigKh2YXIgZW5kc1dpdGhQYXJhZ3JhcGhTZXBhcmF0b3IgPSAxMDsg4oCpdmFyIGVuZHNXaXRoTmV4dExpbmUgPSAxO8KFdmFyIGVuZHNXaXRoTGluZUZlZWQgPSAxOwp2YXIgZW5kc1dpdGhDYXJyaWFnZVJldHVybkxpbmVGZWVkID0gMTsKdmFyIGVuZHNXaXRoQ2FycmlhZ2VSZXR1cm4gPSAxOw12YXIgZW5kc1dpdGhMaW5lRmVlZENhcnJpYWdlUmV0dXJuID0gMTsKDXZhciBlbmRzV2l0aExpbmVGZWVkQ2FycmlhZ2VSZXR1cm5MaW5lRmVlZCA9IDE7Cgp2YXIgc3RyaW5nTGl0ZXJhbFdpdGhMaW5lRmVlZCA9ICJsaW5lIDFcCmxpbmUgMiI7CnZhciBzdHJpbmdMaXRlcmFsV2l0aENhcnJpYWdlUmV0dXJuTGluZUZlZWQgPSAibGluZSAxXApsaW5lIDIiOwp2YXIgc3RyaW5nTGl0ZXJhbFdpdGhDYXJyaWFnZVJldHVybiA9ICJsaW5lIDFcDWxpbmUgMiI7Cgp2YXIgc3RyaW5nTGl0ZXJhbFdpdGhMaW5lU2VwYXJhdG9yID0gImxpbmUgMVzigKhsaW5lIDIiO+KAqXZhciBzdHJpbmdMaXRlcmFsV2l0aFBhcmFncmFwaFNlcGFyYXRvciA9ICJsaW5lIDFc4oCpbGluZSAyIjvigKl2YXIgc3RyaW5nTGl0ZXJhbFdpdGhOZXh0TGluZSA9ICJsaW5lIDFcwoVsaW5lIDIiOw== +//// https://sokra.github.io/source-map-visualization#base64,dmFyIGVuZHNXaXRobGluZVNlcGFyYXRvciA9IDEwOw0KdmFyIGVuZHNXaXRoUGFyYWdyYXBoU2VwYXJhdG9yID0gMTA7DQp2YXIgZW5kc1dpdGhOZXh0TGluZSA9IDE7DQp2YXIgZW5kc1dpdGhMaW5lRmVlZCA9IDE7DQp2YXIgZW5kc1dpdGhDYXJyaWFnZVJldHVybkxpbmVGZWVkID0gMTsNCnZhciBlbmRzV2l0aENhcnJpYWdlUmV0dXJuID0gMTsNCnZhciBlbmRzV2l0aExpbmVGZWVkQ2FycmlhZ2VSZXR1cm4gPSAxOw0KdmFyIGVuZHNXaXRoTGluZUZlZWRDYXJyaWFnZVJldHVybkxpbmVGZWVkID0gMTsNCnZhciBzdHJpbmdMaXRlcmFsV2l0aExpbmVGZWVkID0gImxpbmUgMVwKbGluZSAyIjsNCnZhciBzdHJpbmdMaXRlcmFsV2l0aENhcnJpYWdlUmV0dXJuTGluZUZlZWQgPSAibGluZSAxXApsaW5lIDIiOw0KdmFyIHN0cmluZ0xpdGVyYWxXaXRoQ2FycmlhZ2VSZXR1cm4gPSAibGluZSAxXApsaW5lIDIiOw0KdmFyIHN0cmluZ0xpdGVyYWxXaXRoTGluZVNlcGFyYXRvciA9ICJsaW5lIDFc4oCobGluZSAyIjsNCnZhciBzdHJpbmdMaXRlcmFsV2l0aFBhcmFncmFwaFNlcGFyYXRvciA9ICJsaW5lIDFc4oCpbGluZSAyIjsNCnZhciBzdHJpbmdMaXRlcmFsV2l0aE5leHRMaW5lID0gImxpbmUgMVzChWxpbmUgMiI7DQovLyMgc291cmNlTWFwcGluZ1VSTD1zb3VyY2VNYXAtTGluZUJyZWFrcy5qcy5tYXA=,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic291cmNlTWFwLUxpbmVCcmVha3MuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJzb3VyY2VNYXAtTGluZUJyZWFrcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxJQUFJLHFCQUFxQixHQUFHLEVBQUUsQ0FBQztBQUMvQixJQUFJLDBCQUEwQixHQUFHLEVBQUUsQ0FBQztBQUNwQyxJQUFJLGdCQUFnQixHQUFHLENBQUMsQ0FBQztBQUFDLElBQUksZ0JBQWdCLEdBQUcsQ0FBQyxDQUFDO0FBQ25ELElBQUksOEJBQThCLEdBQUcsQ0FBQyxDQUFDO0FBQ3ZDLElBQUksc0JBQXNCLEdBQUcsQ0FBQyxDQUFDO0FBQy9CLElBQUksOEJBQThCLEdBQUcsQ0FBQyxDQUFDO0FBRXZDLElBQUksc0NBQXNDLEdBQUcsQ0FBQyxDQUFDO0FBRS9DLElBQUkseUJBQXlCLEdBQUc7T0FDekIsQ0FBQztBQUNSLElBQUksdUNBQXVDLEdBQUc7T0FDdkMsQ0FBQztBQUNSLElBQUksK0JBQStCLEdBQUc7T0FDL0IsQ0FBQztBQUVSLElBQUksOEJBQThCLEdBQUc7T0FDOUIsQ0FBQztBQUNSLElBQUksbUNBQW1DLEdBQUc7T0FDbkMsQ0FBQztBQUNSLElBQUkseUJBQXlCLEdBQUcsZ0JBQWdCLENBQUMifQ==,dmFyIGVuZHNXaXRobGluZVNlcGFyYXRvciA9IDEwOyDigKh2YXIgZW5kc1dpdGhQYXJhZ3JhcGhTZXBhcmF0b3IgPSAxMDsg4oCpdmFyIGVuZHNXaXRoTmV4dExpbmUgPSAxO8KFdmFyIGVuZHNXaXRoTGluZUZlZWQgPSAxOwp2YXIgZW5kc1dpdGhDYXJyaWFnZVJldHVybkxpbmVGZWVkID0gMTsKdmFyIGVuZHNXaXRoQ2FycmlhZ2VSZXR1cm4gPSAxOwp2YXIgZW5kc1dpdGhMaW5lRmVlZENhcnJpYWdlUmV0dXJuID0gMTsKCnZhciBlbmRzV2l0aExpbmVGZWVkQ2FycmlhZ2VSZXR1cm5MaW5lRmVlZCA9IDE7Cgp2YXIgc3RyaW5nTGl0ZXJhbFdpdGhMaW5lRmVlZCA9ICJsaW5lIDFcCmxpbmUgMiI7CnZhciBzdHJpbmdMaXRlcmFsV2l0aENhcnJpYWdlUmV0dXJuTGluZUZlZWQgPSAibGluZSAxXApsaW5lIDIiOwp2YXIgc3RyaW5nTGl0ZXJhbFdpdGhDYXJyaWFnZVJldHVybiA9ICJsaW5lIDFcCmxpbmUgMiI7Cgp2YXIgc3RyaW5nTGl0ZXJhbFdpdGhMaW5lU2VwYXJhdG9yID0gImxpbmUgMVzigKhsaW5lIDIiO+KAqXZhciBzdHJpbmdMaXRlcmFsV2l0aFBhcmFncmFwaFNlcGFyYXRvciA9ICJsaW5lIDFc4oCpbGluZSAyIjvigKl2YXIgc3RyaW5nTGl0ZXJhbFdpdGhOZXh0TGluZSA9ICJsaW5lIDFcwoVsaW5lIDIiOw== diff --git a/tests/baselines/reference/sourceMap-LineBreaks.sourcemap.txt b/tests/baselines/reference/sourceMap-LineBreaks(target=es2015).sourcemap.txt similarity index 96% rename from tests/baselines/reference/sourceMap-LineBreaks.sourcemap.txt rename to tests/baselines/reference/sourceMap-LineBreaks(target=es2015).sourcemap.txt index 8f364cbe660d0..24fcbd646303a 100644 --- a/tests/baselines/reference/sourceMap-LineBreaks.sourcemap.txt +++ b/tests/baselines/reference/sourceMap-LineBreaks(target=es2015).sourcemap.txt @@ -142,7 +142,8 @@ sourceFile:sourceMap-LineBreaks.ts 5 > ^ 6 > ^ 7 > ^^^^^^^^^-> -1-> > +1-> + > 2 >var 3 > endsWithLineFeedCarriageReturn 4 > = @@ -163,7 +164,8 @@ sourceFile:sourceMap-LineBreaks.ts 5 > ^ 6 > ^ 1-> - > > + > + > 2 >var 3 > endsWithLineFeedCarriageReturnLineFeed 4 > = @@ -227,7 +229,8 @@ sourceFile:sourceMap-LineBreaks.ts 1 >Emitted(12, 8) Source(13, 8) + SourceIndex(0) 2 >Emitted(12, 9) Source(13, 9) + SourceIndex(0) --- ->>>var stringLiteralWithCarriageReturn = "line 1\ 1-> +>>>var stringLiteralWithCarriageReturn = "line 1\ +1-> 2 >^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^ @@ -245,7 +248,8 @@ sourceFile:sourceMap-LineBreaks.ts 1 >^^^^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >"line 1\ >line 2" +1 >"line 1\ + >line 2" 2 > ; 1 >Emitted(14, 8) Source(15, 8) + SourceIndex(0) 2 >Emitted(14, 9) Source(15, 9) + SourceIndex(0) diff --git a/tests/baselines/reference/sourceMap-LineBreaks.symbols b/tests/baselines/reference/sourceMap-LineBreaks(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/sourceMap-LineBreaks.symbols rename to tests/baselines/reference/sourceMap-LineBreaks(target=es2015).symbols diff --git a/tests/baselines/reference/sourceMap-LineBreaks.types b/tests/baselines/reference/sourceMap-LineBreaks(target=es2015).types similarity index 93% rename from tests/baselines/reference/sourceMap-LineBreaks.types rename to tests/baselines/reference/sourceMap-LineBreaks(target=es2015).types index 0a52ace81a6ee..d78c8caddc6b5 100644 --- a/tests/baselines/reference/sourceMap-LineBreaks.types +++ b/tests/baselines/reference/sourceMap-LineBreaks(target=es2015).types @@ -64,8 +64,8 @@ line 2"; var stringLiteralWithCarriageReturn = "line 1\ >stringLiteralWithCarriageReturn : string > : ^^^^^^ ->"line 1\ line 2" : "line 1line 2" -> : ^^^^^^^^^^^^^^ +>"line 1\line 2" : "line 1line 2" +> : ^^^^^^^^^^^^^^ line 2"; diff --git a/tests/baselines/reference/sourceMap-LineBreaks(target=es5).js b/tests/baselines/reference/sourceMap-LineBreaks(target=es5).js new file mode 100644 index 0000000000000..7a0564f7bf450 --- /dev/null +++ b/tests/baselines/reference/sourceMap-LineBreaks(target=es5).js @@ -0,0 +1,38 @@ +//// [tests/cases/compiler/sourceMap-LineBreaks.ts] //// + +//// [sourceMap-LineBreaks.ts] +var endsWithlineSeparator = 10; 
var endsWithParagraphSeparator = 10; 
var endsWithNextLine = 1;…var endsWithLineFeed = 1; +var endsWithCarriageReturnLineFeed = 1; +var endsWithCarriageReturn = 1; +var endsWithLineFeedCarriageReturn = 1; + +var endsWithLineFeedCarriageReturnLineFeed = 1; + +var stringLiteralWithLineFeed = "line 1\ +line 2"; +var stringLiteralWithCarriageReturnLineFeed = "line 1\ +line 2"; +var stringLiteralWithCarriageReturn = "line 1\ +line 2"; + +var stringLiteralWithLineSeparator = "line 1\
line 2";
var stringLiteralWithParagraphSeparator = "line 1\
line 2";
var stringLiteralWithNextLine = "line 1\…line 2"; + +//// [sourceMap-LineBreaks.js] +var endsWithlineSeparator = 10; +var endsWithParagraphSeparator = 10; +var endsWithNextLine = 1; +var endsWithLineFeed = 1; +var endsWithCarriageReturnLineFeed = 1; +var endsWithCarriageReturn = 1; +var endsWithLineFeedCarriageReturn = 1; +var endsWithLineFeedCarriageReturnLineFeed = 1; +var stringLiteralWithLineFeed = "line 1\ +line 2"; +var stringLiteralWithCarriageReturnLineFeed = "line 1\ +line 2"; +var stringLiteralWithCarriageReturn = "line 1\ +line 2"; +var stringLiteralWithLineSeparator = "line 1\
line 2"; +var stringLiteralWithParagraphSeparator = "line 1\
line 2"; +var stringLiteralWithNextLine = "line 1\…line 2"; +//# sourceMappingURL=sourceMap-LineBreaks.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMap-LineBreaks(target=es5).js.map b/tests/baselines/reference/sourceMap-LineBreaks(target=es5).js.map new file mode 100644 index 0000000000000..99b2836e033d3 --- /dev/null +++ b/tests/baselines/reference/sourceMap-LineBreaks(target=es5).js.map @@ -0,0 +1,3 @@ +//// [sourceMap-LineBreaks.js.map] +{"version":3,"file":"sourceMap-LineBreaks.js","sourceRoot":"","sources":["sourceMap-LineBreaks.ts"],"names":[],"mappings":"AAAA,IAAI,qBAAqB,GAAG,EAAE,CAAC;AAC/B,IAAI,0BAA0B,GAAG,EAAE,CAAC;AACpC,IAAI,gBAAgB,GAAG,CAAC,CAAC;AAAC,IAAI,gBAAgB,GAAG,CAAC,CAAC;AACnD,IAAI,8BAA8B,GAAG,CAAC,CAAC;AACvC,IAAI,sBAAsB,GAAG,CAAC,CAAC;AAC/B,IAAI,8BAA8B,GAAG,CAAC,CAAC;AAEvC,IAAI,sCAAsC,GAAG,CAAC,CAAC;AAE/C,IAAI,yBAAyB,GAAG;OACzB,CAAC;AACR,IAAI,uCAAuC,GAAG;OACvC,CAAC;AACR,IAAI,+BAA+B,GAAG;OAC/B,CAAC;AAER,IAAI,8BAA8B,GAAG;OAC9B,CAAC;AACR,IAAI,mCAAmC,GAAG;OACnC,CAAC;AACR,IAAI,yBAAyB,GAAG,gBAAgB,CAAC"} +//// https://sokra.github.io/source-map-visualization#base64,dmFyIGVuZHNXaXRobGluZVNlcGFyYXRvciA9IDEwOw0KdmFyIGVuZHNXaXRoUGFyYWdyYXBoU2VwYXJhdG9yID0gMTA7DQp2YXIgZW5kc1dpdGhOZXh0TGluZSA9IDE7DQp2YXIgZW5kc1dpdGhMaW5lRmVlZCA9IDE7DQp2YXIgZW5kc1dpdGhDYXJyaWFnZVJldHVybkxpbmVGZWVkID0gMTsNCnZhciBlbmRzV2l0aENhcnJpYWdlUmV0dXJuID0gMTsNCnZhciBlbmRzV2l0aExpbmVGZWVkQ2FycmlhZ2VSZXR1cm4gPSAxOw0KdmFyIGVuZHNXaXRoTGluZUZlZWRDYXJyaWFnZVJldHVybkxpbmVGZWVkID0gMTsNCnZhciBzdHJpbmdMaXRlcmFsV2l0aExpbmVGZWVkID0gImxpbmUgMVwKbGluZSAyIjsNCnZhciBzdHJpbmdMaXRlcmFsV2l0aENhcnJpYWdlUmV0dXJuTGluZUZlZWQgPSAibGluZSAxXApsaW5lIDIiOw0KdmFyIHN0cmluZ0xpdGVyYWxXaXRoQ2FycmlhZ2VSZXR1cm4gPSAibGluZSAxXApsaW5lIDIiOw0KdmFyIHN0cmluZ0xpdGVyYWxXaXRoTGluZVNlcGFyYXRvciA9ICJsaW5lIDFc4oCobGluZSAyIjsNCnZhciBzdHJpbmdMaXRlcmFsV2l0aFBhcmFncmFwaFNlcGFyYXRvciA9ICJsaW5lIDFc4oCpbGluZSAyIjsNCnZhciBzdHJpbmdMaXRlcmFsV2l0aE5leHRMaW5lID0gImxpbmUgMVzChWxpbmUgMiI7DQovLyMgc291cmNlTWFwcGluZ1VSTD1zb3VyY2VNYXAtTGluZUJyZWFrcy5qcy5tYXA=,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic291cmNlTWFwLUxpbmVCcmVha3MuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJzb3VyY2VNYXAtTGluZUJyZWFrcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxJQUFJLHFCQUFxQixHQUFHLEVBQUUsQ0FBQztBQUMvQixJQUFJLDBCQUEwQixHQUFHLEVBQUUsQ0FBQztBQUNwQyxJQUFJLGdCQUFnQixHQUFHLENBQUMsQ0FBQztBQUFDLElBQUksZ0JBQWdCLEdBQUcsQ0FBQyxDQUFDO0FBQ25ELElBQUksOEJBQThCLEdBQUcsQ0FBQyxDQUFDO0FBQ3ZDLElBQUksc0JBQXNCLEdBQUcsQ0FBQyxDQUFDO0FBQy9CLElBQUksOEJBQThCLEdBQUcsQ0FBQyxDQUFDO0FBRXZDLElBQUksc0NBQXNDLEdBQUcsQ0FBQyxDQUFDO0FBRS9DLElBQUkseUJBQXlCLEdBQUc7T0FDekIsQ0FBQztBQUNSLElBQUksdUNBQXVDLEdBQUc7T0FDdkMsQ0FBQztBQUNSLElBQUksK0JBQStCLEdBQUc7T0FDL0IsQ0FBQztBQUVSLElBQUksOEJBQThCLEdBQUc7T0FDOUIsQ0FBQztBQUNSLElBQUksbUNBQW1DLEdBQUc7T0FDbkMsQ0FBQztBQUNSLElBQUkseUJBQXlCLEdBQUcsZ0JBQWdCLENBQUMifQ==,dmFyIGVuZHNXaXRobGluZVNlcGFyYXRvciA9IDEwOyDigKh2YXIgZW5kc1dpdGhQYXJhZ3JhcGhTZXBhcmF0b3IgPSAxMDsg4oCpdmFyIGVuZHNXaXRoTmV4dExpbmUgPSAxO8KFdmFyIGVuZHNXaXRoTGluZUZlZWQgPSAxOwp2YXIgZW5kc1dpdGhDYXJyaWFnZVJldHVybkxpbmVGZWVkID0gMTsKdmFyIGVuZHNXaXRoQ2FycmlhZ2VSZXR1cm4gPSAxOwp2YXIgZW5kc1dpdGhMaW5lRmVlZENhcnJpYWdlUmV0dXJuID0gMTsKCnZhciBlbmRzV2l0aExpbmVGZWVkQ2FycmlhZ2VSZXR1cm5MaW5lRmVlZCA9IDE7Cgp2YXIgc3RyaW5nTGl0ZXJhbFdpdGhMaW5lRmVlZCA9ICJsaW5lIDFcCmxpbmUgMiI7CnZhciBzdHJpbmdMaXRlcmFsV2l0aENhcnJpYWdlUmV0dXJuTGluZUZlZWQgPSAibGluZSAxXApsaW5lIDIiOwp2YXIgc3RyaW5nTGl0ZXJhbFdpdGhDYXJyaWFnZVJldHVybiA9ICJsaW5lIDFcCmxpbmUgMiI7Cgp2YXIgc3RyaW5nTGl0ZXJhbFdpdGhMaW5lU2VwYXJhdG9yID0gImxpbmUgMVzigKhsaW5lIDIiO+KAqXZhciBzdHJpbmdMaXRlcmFsV2l0aFBhcmFncmFwaFNlcGFyYXRvciA9ICJsaW5lIDFc4oCpbGluZSAyIjvigKl2YXIgc3RyaW5nTGl0ZXJhbFdpdGhOZXh0TGluZSA9ICJsaW5lIDFcwoVsaW5lIDIiOw== diff --git a/tests/baselines/reference/sourceMap-LineBreaks(target=es5).sourcemap.txt b/tests/baselines/reference/sourceMap-LineBreaks(target=es5).sourcemap.txt new file mode 100644 index 0000000000000..24fcbd646303a --- /dev/null +++ b/tests/baselines/reference/sourceMap-LineBreaks(target=es5).sourcemap.txt @@ -0,0 +1,323 @@ +=================================================================== +JsFile: sourceMap-LineBreaks.js +mapUrl: sourceMap-LineBreaks.js.map +sourceRoot: +sources: sourceMap-LineBreaks.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:sourceMap-LineBreaks.js +sourceFile:sourceMap-LineBreaks.ts +------------------------------------------------------------------- +>>>var endsWithlineSeparator = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^-> +1 > +2 >var +3 > endsWithlineSeparator +4 > = +5 > 10 +6 > ; +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(1, 5) + SourceIndex(0) +3 >Emitted(1, 26) Source(1, 26) + SourceIndex(0) +4 >Emitted(1, 29) Source(1, 29) + SourceIndex(0) +5 >Emitted(1, 31) Source(1, 31) + SourceIndex(0) +6 >Emitted(1, 32) Source(1, 32) + SourceIndex(0) +--- +>>>var endsWithParagraphSeparator = 10; +1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +1-> 
 > +2 >var +3 > endsWithParagraphSeparator +4 > = +5 > 10 +6 > ; +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +3 >Emitted(2, 31) Source(2, 31) + SourceIndex(0) +4 >Emitted(2, 34) Source(2, 34) + SourceIndex(0) +5 >Emitted(2, 36) Source(2, 36) + SourceIndex(0) +6 >Emitted(2, 37) Source(2, 37) + SourceIndex(0) +--- +>>>var endsWithNextLine = 1; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^-> +1 > 
 > +2 >var +3 > endsWithNextLine +4 > = +5 > 1 +6 > ; +1 >Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +3 >Emitted(3, 21) Source(3, 21) + SourceIndex(0) +4 >Emitted(3, 24) Source(3, 24) + SourceIndex(0) +5 >Emitted(3, 25) Source(3, 25) + SourceIndex(0) +6 >Emitted(3, 26) Source(3, 26) + SourceIndex(0) +--- +>>>var endsWithLineFeed = 1; +1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^^^^^^^^^^^^^^-> +1->… +2 >var +3 > endsWithLineFeed +4 > = +5 > 1 +6 > ; +1->Emitted(4, 1) Source(3, 27) + SourceIndex(0) +2 >Emitted(4, 5) Source(3, 31) + SourceIndex(0) +3 >Emitted(4, 21) Source(3, 47) + SourceIndex(0) +4 >Emitted(4, 24) Source(3, 50) + SourceIndex(0) +5 >Emitted(4, 25) Source(3, 51) + SourceIndex(0) +6 >Emitted(4, 26) Source(3, 52) + SourceIndex(0) +--- +>>>var endsWithCarriageReturnLineFeed = 1; +1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^ +6 > ^ +1-> + > +2 >var +3 > endsWithCarriageReturnLineFeed +4 > = +5 > 1 +6 > ; +1->Emitted(5, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 5) Source(4, 5) + SourceIndex(0) +3 >Emitted(5, 35) Source(4, 35) + SourceIndex(0) +4 >Emitted(5, 38) Source(4, 38) + SourceIndex(0) +5 >Emitted(5, 39) Source(4, 39) + SourceIndex(0) +6 >Emitted(5, 40) Source(4, 40) + SourceIndex(0) +--- +>>>var endsWithCarriageReturn = 1; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^^^^^^^^-> +1 > + > +2 >var +3 > endsWithCarriageReturn +4 > = +5 > 1 +6 > ; +1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 5) Source(5, 5) + SourceIndex(0) +3 >Emitted(6, 27) Source(5, 27) + SourceIndex(0) +4 >Emitted(6, 30) Source(5, 30) + SourceIndex(0) +5 >Emitted(6, 31) Source(5, 31) + SourceIndex(0) +6 >Emitted(6, 32) Source(5, 32) + SourceIndex(0) +--- +>>>var endsWithLineFeedCarriageReturn = 1; +1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^^^^^^^^-> +1-> + > +2 >var +3 > endsWithLineFeedCarriageReturn +4 > = +5 > 1 +6 > ; +1->Emitted(7, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 5) Source(6, 5) + SourceIndex(0) +3 >Emitted(7, 35) Source(6, 35) + SourceIndex(0) +4 >Emitted(7, 38) Source(6, 38) + SourceIndex(0) +5 >Emitted(7, 39) Source(6, 39) + SourceIndex(0) +6 >Emitted(7, 40) Source(6, 40) + SourceIndex(0) +--- +>>>var endsWithLineFeedCarriageReturnLineFeed = 1; +1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^ +6 > ^ +1-> + > + > +2 >var +3 > endsWithLineFeedCarriageReturnLineFeed +4 > = +5 > 1 +6 > ; +1->Emitted(8, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(8, 43) Source(8, 43) + SourceIndex(0) +4 >Emitted(8, 46) Source(8, 46) + SourceIndex(0) +5 >Emitted(8, 47) Source(8, 47) + SourceIndex(0) +6 >Emitted(8, 48) Source(8, 48) + SourceIndex(0) +--- +>>>var stringLiteralWithLineFeed = "line 1\ +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^ +1 > + > + > +2 >var +3 > stringLiteralWithLineFeed +4 > = +1 >Emitted(9, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(10, 5) + SourceIndex(0) +3 >Emitted(9, 30) Source(10, 30) + SourceIndex(0) +4 >Emitted(9, 33) Source(10, 33) + SourceIndex(0) +--- +>>>line 2"; +1 >^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >"line 1\ + >line 2" +2 > ; +1 >Emitted(10, 8) Source(11, 8) + SourceIndex(0) +2 >Emitted(10, 9) Source(11, 9) + SourceIndex(0) +--- +>>>var stringLiteralWithCarriageReturnLineFeed = "line 1\ +1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^ +1-> + > +2 >var +3 > stringLiteralWithCarriageReturnLineFeed +4 > = +1->Emitted(11, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(11, 5) Source(12, 5) + SourceIndex(0) +3 >Emitted(11, 44) Source(12, 44) + SourceIndex(0) +4 >Emitted(11, 47) Source(12, 47) + SourceIndex(0) +--- +>>>line 2"; +1 >^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >"line 1\ + >line 2" +2 > ; +1 >Emitted(12, 8) Source(13, 8) + SourceIndex(0) +2 >Emitted(12, 9) Source(13, 9) + SourceIndex(0) +--- +>>>var stringLiteralWithCarriageReturn = "line 1\ +1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^ +1-> + > +2 >var +3 > stringLiteralWithCarriageReturn +4 > = +1->Emitted(13, 1) Source(14, 1) + SourceIndex(0) +2 >Emitted(13, 5) Source(14, 5) + SourceIndex(0) +3 >Emitted(13, 36) Source(14, 36) + SourceIndex(0) +4 >Emitted(13, 39) Source(14, 39) + SourceIndex(0) +--- +>>>line 2"; +1 >^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >"line 1\ + >line 2" +2 > ; +1 >Emitted(14, 8) Source(15, 8) + SourceIndex(0) +2 >Emitted(14, 9) Source(15, 9) + SourceIndex(0) +--- +>>>var stringLiteralWithLineSeparator = "line 1\
1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^ +1-> + > + > +2 >var +3 > stringLiteralWithLineSeparator +4 > = +1->Emitted(15, 1) Source(17, 1) + SourceIndex(0) +2 >Emitted(15, 5) Source(17, 5) + SourceIndex(0) +3 >Emitted(15, 35) Source(17, 35) + SourceIndex(0) +4 >Emitted(15, 38) Source(17, 38) + SourceIndex(0) +--- +>>>line 2"; +1 >^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >"line 1\
 >line 2" +2 > ; +1 >Emitted(16, 8) Source(18, 8) + SourceIndex(0) +2 >Emitted(16, 9) Source(18, 9) + SourceIndex(0) +--- +>>>var stringLiteralWithParagraphSeparator = "line 1\
1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^ +1->
 > +2 >var +3 > stringLiteralWithParagraphSeparator +4 > = +1->Emitted(17, 1) Source(19, 1) + SourceIndex(0) +2 >Emitted(17, 5) Source(19, 5) + SourceIndex(0) +3 >Emitted(17, 40) Source(19, 40) + SourceIndex(0) +4 >Emitted(17, 43) Source(19, 43) + SourceIndex(0) +--- +>>>line 2"; +1 >^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >"line 1\
 >line 2" +2 > ; +1 >Emitted(18, 8) Source(20, 8) + SourceIndex(0) +2 >Emitted(18, 9) Source(20, 9) + SourceIndex(0) +--- +>>>var stringLiteralWithNextLine = "line 1\…line 2"; +1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^^^ +6 > ^ +1->
 > +2 >var +3 > stringLiteralWithNextLine +4 > = +5 > "line 1\…line 2" +6 > ; +1->Emitted(19, 1) Source(21, 1) + SourceIndex(0) +2 >Emitted(19, 5) Source(21, 5) + SourceIndex(0) +3 >Emitted(19, 30) Source(21, 30) + SourceIndex(0) +4 >Emitted(19, 33) Source(21, 33) + SourceIndex(0) +5 >Emitted(19, 49) Source(21, 49) + SourceIndex(0) +6 >Emitted(19, 50) Source(21, 50) + SourceIndex(0) +--- +>>>//# sourceMappingURL=sourceMap-LineBreaks.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMap-LineBreaks(target=es5).symbols b/tests/baselines/reference/sourceMap-LineBreaks(target=es5).symbols new file mode 100644 index 0000000000000..f2feb6024d64f --- /dev/null +++ b/tests/baselines/reference/sourceMap-LineBreaks(target=es5).symbols @@ -0,0 +1,49 @@ +//// [tests/cases/compiler/sourceMap-LineBreaks.ts] //// + +=== sourceMap-LineBreaks.ts === +var endsWithlineSeparator = 10; +>endsWithlineSeparator : Symbol(endsWithlineSeparator, Decl(sourceMap-LineBreaks.ts, 0, 3)) + +var endsWithParagraphSeparator = 10; +>endsWithParagraphSeparator : Symbol(endsWithParagraphSeparator, Decl(sourceMap-LineBreaks.ts, 1, 3)) + +var endsWithNextLine = 1;…var endsWithLineFeed = 1; +>endsWithNextLine : Symbol(endsWithNextLine, Decl(sourceMap-LineBreaks.ts, 2, 3)) +>endsWithLineFeed : Symbol(endsWithLineFeed, Decl(sourceMap-LineBreaks.ts, 2, 29)) + +var endsWithCarriageReturnLineFeed = 1; +>endsWithCarriageReturnLineFeed : Symbol(endsWithCarriageReturnLineFeed, Decl(sourceMap-LineBreaks.ts, 3, 3)) + +var endsWithCarriageReturn = 1; +>endsWithCarriageReturn : Symbol(endsWithCarriageReturn, Decl(sourceMap-LineBreaks.ts, 4, 3)) + +var endsWithLineFeedCarriageReturn = 1; +>endsWithLineFeedCarriageReturn : Symbol(endsWithLineFeedCarriageReturn, Decl(sourceMap-LineBreaks.ts, 5, 3)) + +var endsWithLineFeedCarriageReturnLineFeed = 1; +>endsWithLineFeedCarriageReturnLineFeed : Symbol(endsWithLineFeedCarriageReturnLineFeed, Decl(sourceMap-LineBreaks.ts, 7, 3)) + +var stringLiteralWithLineFeed = "line 1\ +>stringLiteralWithLineFeed : Symbol(stringLiteralWithLineFeed, Decl(sourceMap-LineBreaks.ts, 9, 3)) + +line 2"; +var stringLiteralWithCarriageReturnLineFeed = "line 1\ +>stringLiteralWithCarriageReturnLineFeed : Symbol(stringLiteralWithCarriageReturnLineFeed, Decl(sourceMap-LineBreaks.ts, 11, 3)) + +line 2"; +var stringLiteralWithCarriageReturn = "line 1\ +>stringLiteralWithCarriageReturn : Symbol(stringLiteralWithCarriageReturn, Decl(sourceMap-LineBreaks.ts, 13, 3)) + +line 2"; + +var stringLiteralWithLineSeparator = "line 1\ +>stringLiteralWithLineSeparator : Symbol(stringLiteralWithLineSeparator, Decl(sourceMap-LineBreaks.ts, 16, 3)) + +line 2"; +var stringLiteralWithParagraphSeparator = "line 1\ +>stringLiteralWithParagraphSeparator : Symbol(stringLiteralWithParagraphSeparator, Decl(sourceMap-LineBreaks.ts, 18, 3)) + +line 2"; +var stringLiteralWithNextLine = "line 1\…line 2"; +>stringLiteralWithNextLine : Symbol(stringLiteralWithNextLine, Decl(sourceMap-LineBreaks.ts, 20, 3)) + diff --git a/tests/baselines/reference/sourceMap-LineBreaks(target=es5).types b/tests/baselines/reference/sourceMap-LineBreaks(target=es5).types new file mode 100644 index 0000000000000..d78c8caddc6b5 --- /dev/null +++ b/tests/baselines/reference/sourceMap-LineBreaks(target=es5).types @@ -0,0 +1,91 @@ +//// [tests/cases/compiler/sourceMap-LineBreaks.ts] //// + +=== sourceMap-LineBreaks.ts === +var endsWithlineSeparator = 10; +>endsWithlineSeparator : number +> : ^^^^^^ +>10 : 10 +> : ^^ + +var endsWithParagraphSeparator = 10; +>endsWithParagraphSeparator : number +> : ^^^^^^ +>10 : 10 +> : ^^ + +var endsWithNextLine = 1;…var endsWithLineFeed = 1; +>endsWithNextLine : number +> : ^^^^^^ +>1 : 1 +> : ^ +>endsWithLineFeed : number +> : ^^^^^^ +>1 : 1 +> : ^ + +var endsWithCarriageReturnLineFeed = 1; +>endsWithCarriageReturnLineFeed : number +> : ^^^^^^ +>1 : 1 +> : ^ + +var endsWithCarriageReturn = 1; +>endsWithCarriageReturn : number +> : ^^^^^^ +>1 : 1 +> : ^ + +var endsWithLineFeedCarriageReturn = 1; +>endsWithLineFeedCarriageReturn : number +> : ^^^^^^ +>1 : 1 +> : ^ + +var endsWithLineFeedCarriageReturnLineFeed = 1; +>endsWithLineFeedCarriageReturnLineFeed : number +> : ^^^^^^ +>1 : 1 +> : ^ + +var stringLiteralWithLineFeed = "line 1\ +>stringLiteralWithLineFeed : string +> : ^^^^^^ +>"line 1\line 2" : "line 1line 2" +> : ^^^^^^^^^^^^^^ + +line 2"; +var stringLiteralWithCarriageReturnLineFeed = "line 1\ +>stringLiteralWithCarriageReturnLineFeed : string +> : ^^^^^^ +>"line 1\line 2" : "line 1line 2" +> : ^^^^^^^^^^^^^^ + +line 2"; +var stringLiteralWithCarriageReturn = "line 1\ +>stringLiteralWithCarriageReturn : string +> : ^^^^^^ +>"line 1\line 2" : "line 1line 2" +> : ^^^^^^^^^^^^^^ + +line 2"; + +var stringLiteralWithLineSeparator = "line 1\ +>stringLiteralWithLineSeparator : string +> : ^^^^^^ +>"line 1\
line 2" : "line 1line 2" +> : ^^^^^^^^^^^^^^ + +line 2"; +var stringLiteralWithParagraphSeparator = "line 1\ +>stringLiteralWithParagraphSeparator : string +> : ^^^^^^ +>"line 1\
line 2" : "line 1line 2" +> : ^^^^^^^^^^^^^^ + +line 2"; +var stringLiteralWithNextLine = "line 1\…line 2"; +>stringLiteralWithNextLine : string +> : ^^^^^^ +>"line 1\…line 2" : "line 1\u0085line 2" +> : ^^^^^^^^^^^^^^^^^^^^ + diff --git a/tests/baselines/reference/sourceMap-NewLine1.js b/tests/baselines/reference/sourceMap-NewLine1(target=es2015).js similarity index 100% rename from tests/baselines/reference/sourceMap-NewLine1.js rename to tests/baselines/reference/sourceMap-NewLine1(target=es2015).js diff --git a/tests/baselines/reference/sourceMap-NewLine1.js.map b/tests/baselines/reference/sourceMap-NewLine1(target=es2015).js.map similarity index 100% rename from tests/baselines/reference/sourceMap-NewLine1.js.map rename to tests/baselines/reference/sourceMap-NewLine1(target=es2015).js.map diff --git a/tests/baselines/reference/sourceMap-NewLine1.sourcemap.txt b/tests/baselines/reference/sourceMap-NewLine1(target=es2015).sourcemap.txt similarity index 100% rename from tests/baselines/reference/sourceMap-NewLine1.sourcemap.txt rename to tests/baselines/reference/sourceMap-NewLine1(target=es2015).sourcemap.txt diff --git a/tests/baselines/reference/sourceMap-NewLine1.symbols b/tests/baselines/reference/sourceMap-NewLine1(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/sourceMap-NewLine1.symbols rename to tests/baselines/reference/sourceMap-NewLine1(target=es2015).symbols diff --git a/tests/baselines/reference/sourceMap-NewLine1.types b/tests/baselines/reference/sourceMap-NewLine1(target=es2015).types similarity index 100% rename from tests/baselines/reference/sourceMap-NewLine1.types rename to tests/baselines/reference/sourceMap-NewLine1(target=es2015).types diff --git a/tests/baselines/reference/sourceMap-NewLine1(target=es5).js b/tests/baselines/reference/sourceMap-NewLine1(target=es5).js new file mode 100644 index 0000000000000..207752a3a019e --- /dev/null +++ b/tests/baselines/reference/sourceMap-NewLine1(target=es5).js @@ -0,0 +1,7 @@ +//// [tests/cases/compiler/sourceMap-NewLine1.ts] //// + +//// [sourceMap-NewLine1.ts] + + +//// [sourceMap-NewLine1.js] +//# sourceMappingURL=sourceMap-NewLine1.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMap-NewLine1(target=es5).js.map b/tests/baselines/reference/sourceMap-NewLine1(target=es5).js.map new file mode 100644 index 0000000000000..392b7430552f6 --- /dev/null +++ b/tests/baselines/reference/sourceMap-NewLine1(target=es5).js.map @@ -0,0 +1,3 @@ +//// [sourceMap-NewLine1.js.map] +{"version":3,"file":"sourceMap-NewLine1.js","sourceRoot":"","sources":["sourceMap-NewLine1.ts"],"names":[],"mappings":""} +//// https://sokra.github.io/source-map-visualization#base64,Ly8jIHNvdXJjZU1hcHBpbmdVUkw9c291cmNlTWFwLU5ld0xpbmUxLmpzLm1hcA==,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic291cmNlTWFwLU5ld0xpbmUxLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsic291cmNlTWFwLU5ld0xpbmUxLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIifQ==, diff --git a/tests/baselines/reference/sourceMap-NewLine1(target=es5).sourcemap.txt b/tests/baselines/reference/sourceMap-NewLine1(target=es5).sourcemap.txt new file mode 100644 index 0000000000000..b6f7132dd2e4a --- /dev/null +++ b/tests/baselines/reference/sourceMap-NewLine1(target=es5).sourcemap.txt @@ -0,0 +1,7 @@ +=================================================================== +JsFile: sourceMap-NewLine1.js +mapUrl: sourceMap-NewLine1.js.map +sourceRoot: +sources: sourceMap-NewLine1.ts +=================================================================== +>>>//# sourceMappingURL=sourceMap-NewLine1.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMap-NewLine1(target=es5).symbols b/tests/baselines/reference/sourceMap-NewLine1(target=es5).symbols new file mode 100644 index 0000000000000..2282f81039d03 --- /dev/null +++ b/tests/baselines/reference/sourceMap-NewLine1(target=es5).symbols @@ -0,0 +1,4 @@ +//// [tests/cases/compiler/sourceMap-NewLine1.ts] //// + +=== sourceMap-NewLine1.ts === + diff --git a/tests/baselines/reference/sourceMap-NewLine1(target=es5).types b/tests/baselines/reference/sourceMap-NewLine1(target=es5).types new file mode 100644 index 0000000000000..2282f81039d03 --- /dev/null +++ b/tests/baselines/reference/sourceMap-NewLine1(target=es5).types @@ -0,0 +1,4 @@ +//// [tests/cases/compiler/sourceMap-NewLine1.ts] //// + +=== sourceMap-NewLine1.ts === + diff --git a/tests/baselines/reference/sourceMap-SemiColon1.js b/tests/baselines/reference/sourceMap-SemiColon1(target=es2015).js similarity index 100% rename from tests/baselines/reference/sourceMap-SemiColon1.js rename to tests/baselines/reference/sourceMap-SemiColon1(target=es2015).js diff --git a/tests/baselines/reference/sourceMap-SemiColon1.js.map b/tests/baselines/reference/sourceMap-SemiColon1(target=es2015).js.map similarity index 100% rename from tests/baselines/reference/sourceMap-SemiColon1.js.map rename to tests/baselines/reference/sourceMap-SemiColon1(target=es2015).js.map diff --git a/tests/baselines/reference/sourceMap-SemiColon1.sourcemap.txt b/tests/baselines/reference/sourceMap-SemiColon1(target=es2015).sourcemap.txt similarity index 100% rename from tests/baselines/reference/sourceMap-SemiColon1.sourcemap.txt rename to tests/baselines/reference/sourceMap-SemiColon1(target=es2015).sourcemap.txt diff --git a/tests/baselines/reference/sourceMap-SemiColon1.symbols b/tests/baselines/reference/sourceMap-SemiColon1(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/sourceMap-SemiColon1.symbols rename to tests/baselines/reference/sourceMap-SemiColon1(target=es2015).symbols diff --git a/tests/baselines/reference/sourceMap-SemiColon1.types b/tests/baselines/reference/sourceMap-SemiColon1(target=es2015).types similarity index 100% rename from tests/baselines/reference/sourceMap-SemiColon1.types rename to tests/baselines/reference/sourceMap-SemiColon1(target=es2015).types diff --git a/tests/baselines/reference/sourceMap-SemiColon1(target=es5).js b/tests/baselines/reference/sourceMap-SemiColon1(target=es5).js new file mode 100644 index 0000000000000..a59db953e3581 --- /dev/null +++ b/tests/baselines/reference/sourceMap-SemiColon1(target=es5).js @@ -0,0 +1,9 @@ +//// [tests/cases/compiler/sourceMap-SemiColon1.ts] //// + +//// [sourceMap-SemiColon1.ts] +; + + +//// [sourceMap-SemiColon1.js] +; +//# sourceMappingURL=sourceMap-SemiColon1.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMap-SemiColon1(target=es5).js.map b/tests/baselines/reference/sourceMap-SemiColon1(target=es5).js.map new file mode 100644 index 0000000000000..c0d465a7af68a --- /dev/null +++ b/tests/baselines/reference/sourceMap-SemiColon1(target=es5).js.map @@ -0,0 +1,3 @@ +//// [sourceMap-SemiColon1.js.map] +{"version":3,"file":"sourceMap-SemiColon1.js","sourceRoot":"","sources":["sourceMap-SemiColon1.ts"],"names":[],"mappings":"AAAA,CAAC"} +//// https://sokra.github.io/source-map-visualization#base64,Ow0KLy8jIHNvdXJjZU1hcHBpbmdVUkw9c291cmNlTWFwLVNlbWlDb2xvbjEuanMubWFw,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic291cmNlTWFwLVNlbWlDb2xvbjEuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJzb3VyY2VNYXAtU2VtaUNvbG9uMS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxDQUFDIn0=,Owo= diff --git a/tests/baselines/reference/sourceMap-SemiColon1(target=es5).sourcemap.txt b/tests/baselines/reference/sourceMap-SemiColon1(target=es5).sourcemap.txt new file mode 100644 index 0000000000000..f5fdf4766229d --- /dev/null +++ b/tests/baselines/reference/sourceMap-SemiColon1(target=es5).sourcemap.txt @@ -0,0 +1,20 @@ +=================================================================== +JsFile: sourceMap-SemiColon1.js +mapUrl: sourceMap-SemiColon1.js.map +sourceRoot: +sources: sourceMap-SemiColon1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:sourceMap-SemiColon1.js +sourceFile:sourceMap-SemiColon1.ts +------------------------------------------------------------------- +>>>; +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >; +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 2) Source(1, 2) + SourceIndex(0) +--- +>>>//# sourceMappingURL=sourceMap-SemiColon1.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMap-SemiColon1(target=es5).symbols b/tests/baselines/reference/sourceMap-SemiColon1(target=es5).symbols new file mode 100644 index 0000000000000..2c7e2050bcc71 --- /dev/null +++ b/tests/baselines/reference/sourceMap-SemiColon1(target=es5).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/compiler/sourceMap-SemiColon1.ts] //// + +=== sourceMap-SemiColon1.ts === + +; + diff --git a/tests/baselines/reference/sourceMap-SemiColon1(target=es5).types b/tests/baselines/reference/sourceMap-SemiColon1(target=es5).types new file mode 100644 index 0000000000000..2c7e2050bcc71 --- /dev/null +++ b/tests/baselines/reference/sourceMap-SemiColon1(target=es5).types @@ -0,0 +1,6 @@ +//// [tests/cases/compiler/sourceMap-SemiColon1.ts] //// + +=== sourceMap-SemiColon1.ts === + +; + diff --git a/tests/baselines/reference/sourceMap-SingleSpace1.js b/tests/baselines/reference/sourceMap-SingleSpace1(target=es2015).js similarity index 100% rename from tests/baselines/reference/sourceMap-SingleSpace1.js rename to tests/baselines/reference/sourceMap-SingleSpace1(target=es2015).js diff --git a/tests/baselines/reference/sourceMap-SingleSpace1.js.map b/tests/baselines/reference/sourceMap-SingleSpace1(target=es2015).js.map similarity index 100% rename from tests/baselines/reference/sourceMap-SingleSpace1.js.map rename to tests/baselines/reference/sourceMap-SingleSpace1(target=es2015).js.map diff --git a/tests/baselines/reference/sourceMap-SingleSpace1.sourcemap.txt b/tests/baselines/reference/sourceMap-SingleSpace1(target=es2015).sourcemap.txt similarity index 100% rename from tests/baselines/reference/sourceMap-SingleSpace1.sourcemap.txt rename to tests/baselines/reference/sourceMap-SingleSpace1(target=es2015).sourcemap.txt diff --git a/tests/baselines/reference/sourceMap-SingleSpace1.symbols b/tests/baselines/reference/sourceMap-SingleSpace1(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/sourceMap-SingleSpace1.symbols rename to tests/baselines/reference/sourceMap-SingleSpace1(target=es2015).symbols diff --git a/tests/baselines/reference/sourceMap-SingleSpace1.types b/tests/baselines/reference/sourceMap-SingleSpace1(target=es2015).types similarity index 100% rename from tests/baselines/reference/sourceMap-SingleSpace1.types rename to tests/baselines/reference/sourceMap-SingleSpace1(target=es2015).types diff --git a/tests/baselines/reference/sourceMap-SingleSpace1(target=es5).js b/tests/baselines/reference/sourceMap-SingleSpace1(target=es5).js new file mode 100644 index 0000000000000..42092ac1a4cd8 --- /dev/null +++ b/tests/baselines/reference/sourceMap-SingleSpace1(target=es5).js @@ -0,0 +1,7 @@ +//// [tests/cases/compiler/sourceMap-SingleSpace1.ts] //// + +//// [sourceMap-SingleSpace1.ts] + + +//// [sourceMap-SingleSpace1.js] +//# sourceMappingURL=sourceMap-SingleSpace1.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMap-SingleSpace1(target=es5).js.map b/tests/baselines/reference/sourceMap-SingleSpace1(target=es5).js.map new file mode 100644 index 0000000000000..9df2ccd19fe2d --- /dev/null +++ b/tests/baselines/reference/sourceMap-SingleSpace1(target=es5).js.map @@ -0,0 +1,3 @@ +//// [sourceMap-SingleSpace1.js.map] +{"version":3,"file":"sourceMap-SingleSpace1.js","sourceRoot":"","sources":["sourceMap-SingleSpace1.ts"],"names":[],"mappings":""} +//// https://sokra.github.io/source-map-visualization#base64,Ly8jIHNvdXJjZU1hcHBpbmdVUkw9c291cmNlTWFwLVNpbmdsZVNwYWNlMS5qcy5tYXA=,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic291cmNlTWFwLVNpbmdsZVNwYWNlMS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInNvdXJjZU1hcC1TaW5nbGVTcGFjZTEudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiJ9,IA== diff --git a/tests/baselines/reference/sourceMap-SingleSpace1(target=es5).sourcemap.txt b/tests/baselines/reference/sourceMap-SingleSpace1(target=es5).sourcemap.txt new file mode 100644 index 0000000000000..1fc769eb779c9 --- /dev/null +++ b/tests/baselines/reference/sourceMap-SingleSpace1(target=es5).sourcemap.txt @@ -0,0 +1,7 @@ +=================================================================== +JsFile: sourceMap-SingleSpace1.js +mapUrl: sourceMap-SingleSpace1.js.map +sourceRoot: +sources: sourceMap-SingleSpace1.ts +=================================================================== +>>>//# sourceMappingURL=sourceMap-SingleSpace1.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMap-SingleSpace1(target=es5).symbols b/tests/baselines/reference/sourceMap-SingleSpace1(target=es5).symbols new file mode 100644 index 0000000000000..46313f227cf93 --- /dev/null +++ b/tests/baselines/reference/sourceMap-SingleSpace1(target=es5).symbols @@ -0,0 +1,4 @@ +//// [tests/cases/compiler/sourceMap-SingleSpace1.ts] //// + +=== sourceMap-SingleSpace1.ts === + diff --git a/tests/baselines/reference/sourceMap-SingleSpace1(target=es5).types b/tests/baselines/reference/sourceMap-SingleSpace1(target=es5).types new file mode 100644 index 0000000000000..46313f227cf93 --- /dev/null +++ b/tests/baselines/reference/sourceMap-SingleSpace1(target=es5).types @@ -0,0 +1,4 @@ +//// [tests/cases/compiler/sourceMap-SingleSpace1.ts] //// + +=== sourceMap-SingleSpace1.ts === + diff --git a/tests/baselines/reference/sourceMap-StringLiteralWithNewLine.js b/tests/baselines/reference/sourceMap-StringLiteralWithNewLine(target=es2015).js similarity index 100% rename from tests/baselines/reference/sourceMap-StringLiteralWithNewLine.js rename to tests/baselines/reference/sourceMap-StringLiteralWithNewLine(target=es2015).js diff --git a/tests/baselines/reference/sourceMap-StringLiteralWithNewLine.js.map b/tests/baselines/reference/sourceMap-StringLiteralWithNewLine(target=es2015).js.map similarity index 100% rename from tests/baselines/reference/sourceMap-StringLiteralWithNewLine.js.map rename to tests/baselines/reference/sourceMap-StringLiteralWithNewLine(target=es2015).js.map diff --git a/tests/baselines/reference/sourceMap-StringLiteralWithNewLine.sourcemap.txt b/tests/baselines/reference/sourceMap-StringLiteralWithNewLine(target=es2015).sourcemap.txt similarity index 100% rename from tests/baselines/reference/sourceMap-StringLiteralWithNewLine.sourcemap.txt rename to tests/baselines/reference/sourceMap-StringLiteralWithNewLine(target=es2015).sourcemap.txt diff --git a/tests/baselines/reference/sourceMap-StringLiteralWithNewLine.symbols b/tests/baselines/reference/sourceMap-StringLiteralWithNewLine(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/sourceMap-StringLiteralWithNewLine.symbols rename to tests/baselines/reference/sourceMap-StringLiteralWithNewLine(target=es2015).symbols diff --git a/tests/baselines/reference/sourceMap-StringLiteralWithNewLine.types b/tests/baselines/reference/sourceMap-StringLiteralWithNewLine(target=es2015).types similarity index 100% rename from tests/baselines/reference/sourceMap-StringLiteralWithNewLine.types rename to tests/baselines/reference/sourceMap-StringLiteralWithNewLine(target=es2015).types diff --git a/tests/baselines/reference/sourceMap-StringLiteralWithNewLine(target=es5).js b/tests/baselines/reference/sourceMap-StringLiteralWithNewLine(target=es5).js new file mode 100644 index 0000000000000..9c156c6e7e99f --- /dev/null +++ b/tests/baselines/reference/sourceMap-StringLiteralWithNewLine(target=es5).js @@ -0,0 +1,26 @@ +//// [tests/cases/compiler/sourceMap-StringLiteralWithNewLine.ts] //// + +//// [sourceMap-StringLiteralWithNewLine.ts] +interface Document { +} +interface Window { + document: Document; +} +declare var window: Window; + +namespace Foo { + var x = "test1"; + var y = "test 2\ +isn't this a lot of fun"; + var z = window.document; +} + +//// [sourceMap-StringLiteralWithNewLine.js] +var Foo; +(function (Foo) { + var x = "test1"; + var y = "test 2\ +isn't this a lot of fun"; + var z = window.document; +})(Foo || (Foo = {})); +//# sourceMappingURL=sourceMap-StringLiteralWithNewLine.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMap-StringLiteralWithNewLine(target=es5).js.map b/tests/baselines/reference/sourceMap-StringLiteralWithNewLine(target=es5).js.map new file mode 100644 index 0000000000000..01c7bb3513c2a --- /dev/null +++ b/tests/baselines/reference/sourceMap-StringLiteralWithNewLine(target=es5).js.map @@ -0,0 +1,3 @@ +//// [sourceMap-StringLiteralWithNewLine.js.map] +{"version":3,"file":"sourceMap-StringLiteralWithNewLine.js","sourceRoot":"","sources":["sourceMap-StringLiteralWithNewLine.ts"],"names":[],"mappings":"AAOA,IAAU,GAAG,CAKZ;AALD,WAAU,GAAG;IACT,IAAI,CAAC,GAAG,OAAO,CAAC;IAChB,IAAI,CAAC,GAAG;wBACY,CAAC;IACrB,IAAI,CAAC,GAAG,MAAM,CAAC,QAAQ,CAAC;AAC5B,CAAC,EALS,GAAG,KAAH,GAAG,QAKZ"} +//// https://sokra.github.io/source-map-visualization#base64,dmFyIEZvbzsNCihmdW5jdGlvbiAoRm9vKSB7DQogICAgdmFyIHggPSAidGVzdDEiOw0KICAgIHZhciB5ID0gInRlc3QgMlwKaXNuJ3QgdGhpcyBhIGxvdCBvZiBmdW4iOw0KICAgIHZhciB6ID0gd2luZG93LmRvY3VtZW50Ow0KfSkoRm9vIHx8IChGb28gPSB7fSkpOw0KLy8jIHNvdXJjZU1hcHBpbmdVUkw9c291cmNlTWFwLVN0cmluZ0xpdGVyYWxXaXRoTmV3TGluZS5qcy5tYXA=,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic291cmNlTWFwLVN0cmluZ0xpdGVyYWxXaXRoTmV3TGluZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInNvdXJjZU1hcC1TdHJpbmdMaXRlcmFsV2l0aE5ld0xpbmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBT0EsSUFBVSxHQUFHLENBS1o7QUFMRCxXQUFVLEdBQUc7SUFDVCxJQUFJLENBQUMsR0FBRyxPQUFPLENBQUM7SUFDaEIsSUFBSSxDQUFDLEdBQUc7d0JBQ1ksQ0FBQztJQUNyQixJQUFJLENBQUMsR0FBRyxNQUFNLENBQUMsUUFBUSxDQUFDO0FBQzVCLENBQUMsRUFMUyxHQUFHLEtBQUgsR0FBRyxRQUtaIn0=,aW50ZXJmYWNlIERvY3VtZW50IHsKfQppbnRlcmZhY2UgV2luZG93IHsKICAgIGRvY3VtZW50OiBEb2N1bWVudDsKfQpkZWNsYXJlIHZhciB3aW5kb3c6IFdpbmRvdzsKCm5hbWVzcGFjZSBGb28gewogICAgdmFyIHggPSAidGVzdDEiOwogICAgdmFyIHkgPSAidGVzdCAyXAppc24ndCB0aGlzIGEgbG90IG9mIGZ1biI7CiAgICB2YXIgeiA9IHdpbmRvdy5kb2N1bWVudDsKfQ== diff --git a/tests/baselines/reference/sourceMap-StringLiteralWithNewLine(target=es5).sourcemap.txt b/tests/baselines/reference/sourceMap-StringLiteralWithNewLine(target=es5).sourcemap.txt new file mode 100644 index 0000000000000..1e69dfbef8816 --- /dev/null +++ b/tests/baselines/reference/sourceMap-StringLiteralWithNewLine(target=es5).sourcemap.txt @@ -0,0 +1,154 @@ +=================================================================== +JsFile: sourceMap-StringLiteralWithNewLine.js +mapUrl: sourceMap-StringLiteralWithNewLine.js.map +sourceRoot: +sources: sourceMap-StringLiteralWithNewLine.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:sourceMap-StringLiteralWithNewLine.js +sourceFile:sourceMap-StringLiteralWithNewLine.ts +------------------------------------------------------------------- +>>>var Foo; +1 > +2 >^^^^ +3 > ^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >interface Document { + >} + >interface Window { + > document: Document; + >} + >declare var window: Window; + > + > +2 >namespace +3 > Foo +4 > { + > var x = "test1"; + > var y = "test 2\ + > isn't this a lot of fun"; + > var z = window.document; + > } +1 >Emitted(1, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(8, 11) + SourceIndex(0) +3 >Emitted(1, 8) Source(8, 14) + SourceIndex(0) +4 >Emitted(1, 9) Source(13, 2) + SourceIndex(0) +--- +>>>(function (Foo) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > Foo +1->Emitted(2, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(2, 12) Source(8, 11) + SourceIndex(0) +3 >Emitted(2, 15) Source(8, 14) + SourceIndex(0) +--- +>>> var x = "test1"; +1->^^^^ +2 > ^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^ +6 > ^ +1-> { + > +2 > var +3 > x +4 > = +5 > "test1" +6 > ; +1->Emitted(3, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(3, 9) Source(9, 9) + SourceIndex(0) +3 >Emitted(3, 10) Source(9, 10) + SourceIndex(0) +4 >Emitted(3, 13) Source(9, 13) + SourceIndex(0) +5 >Emitted(3, 20) Source(9, 20) + SourceIndex(0) +6 >Emitted(3, 21) Source(9, 21) + SourceIndex(0) +--- +>>> var y = "test 2\ +1 >^^^^ +2 > ^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^-> +1 > + > +2 > var +3 > y +4 > = +1 >Emitted(4, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(4, 9) Source(10, 9) + SourceIndex(0) +3 >Emitted(4, 10) Source(10, 10) + SourceIndex(0) +4 >Emitted(4, 13) Source(10, 13) + SourceIndex(0) +--- +>>>isn't this a lot of fun"; +1->^^^^^^^^^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^-> +1->"test 2\ + >isn't this a lot of fun" +2 > ; +1->Emitted(5, 25) Source(11, 25) + SourceIndex(0) +2 >Emitted(5, 26) Source(11, 26) + SourceIndex(0) +--- +>>> var z = window.document; +1->^^^^ +2 > ^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^ +1-> + > +2 > var +3 > z +4 > = +5 > window +6 > . +7 > document +8 > ; +1->Emitted(6, 5) Source(12, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(12, 9) + SourceIndex(0) +3 >Emitted(6, 10) Source(12, 10) + SourceIndex(0) +4 >Emitted(6, 13) Source(12, 13) + SourceIndex(0) +5 >Emitted(6, 19) Source(12, 19) + SourceIndex(0) +6 >Emitted(6, 20) Source(12, 20) + SourceIndex(0) +7 >Emitted(6, 28) Source(12, 28) + SourceIndex(0) +8 >Emitted(6, 29) Source(12, 29) + SourceIndex(0) +--- +>>>})(Foo || (Foo = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^ +5 > ^^^^^ +6 > ^^^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +3 > +4 > Foo +5 > +6 > Foo +7 > { + > var x = "test1"; + > var y = "test 2\ + > isn't this a lot of fun"; + > var z = window.document; + > } +1 >Emitted(7, 1) Source(13, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(13, 2) + SourceIndex(0) +3 >Emitted(7, 4) Source(8, 11) + SourceIndex(0) +4 >Emitted(7, 7) Source(8, 14) + SourceIndex(0) +5 >Emitted(7, 12) Source(8, 11) + SourceIndex(0) +6 >Emitted(7, 15) Source(8, 14) + SourceIndex(0) +7 >Emitted(7, 23) Source(13, 2) + SourceIndex(0) +--- +>>>//# sourceMappingURL=sourceMap-StringLiteralWithNewLine.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMap-StringLiteralWithNewLine(target=es5).symbols b/tests/baselines/reference/sourceMap-StringLiteralWithNewLine(target=es5).symbols new file mode 100644 index 0000000000000..c4bbe7ce81ca5 --- /dev/null +++ b/tests/baselines/reference/sourceMap-StringLiteralWithNewLine(target=es5).symbols @@ -0,0 +1,33 @@ +//// [tests/cases/compiler/sourceMap-StringLiteralWithNewLine.ts] //// + +=== sourceMap-StringLiteralWithNewLine.ts === +interface Document { +>Document : Symbol(Document, Decl(sourceMap-StringLiteralWithNewLine.ts, 0, 0)) +} +interface Window { +>Window : Symbol(Window, Decl(sourceMap-StringLiteralWithNewLine.ts, 1, 1)) + + document: Document; +>document : Symbol(Window.document, Decl(sourceMap-StringLiteralWithNewLine.ts, 2, 18)) +>Document : Symbol(Document, Decl(sourceMap-StringLiteralWithNewLine.ts, 0, 0)) +} +declare var window: Window; +>window : Symbol(window, Decl(sourceMap-StringLiteralWithNewLine.ts, 5, 11)) +>Window : Symbol(Window, Decl(sourceMap-StringLiteralWithNewLine.ts, 1, 1)) + +namespace Foo { +>Foo : Symbol(Foo, Decl(sourceMap-StringLiteralWithNewLine.ts, 5, 27)) + + var x = "test1"; +>x : Symbol(x, Decl(sourceMap-StringLiteralWithNewLine.ts, 8, 7)) + + var y = "test 2\ +>y : Symbol(y, Decl(sourceMap-StringLiteralWithNewLine.ts, 9, 7)) + +isn't this a lot of fun"; + var z = window.document; +>z : Symbol(z, Decl(sourceMap-StringLiteralWithNewLine.ts, 11, 7)) +>window.document : Symbol(Window.document, Decl(sourceMap-StringLiteralWithNewLine.ts, 2, 18)) +>window : Symbol(window, Decl(sourceMap-StringLiteralWithNewLine.ts, 5, 11)) +>document : Symbol(Window.document, Decl(sourceMap-StringLiteralWithNewLine.ts, 2, 18)) +} diff --git a/tests/baselines/reference/sourceMap-StringLiteralWithNewLine(target=es5).types b/tests/baselines/reference/sourceMap-StringLiteralWithNewLine(target=es5).types new file mode 100644 index 0000000000000..3e2d21e4aced1 --- /dev/null +++ b/tests/baselines/reference/sourceMap-StringLiteralWithNewLine(target=es5).types @@ -0,0 +1,41 @@ +//// [tests/cases/compiler/sourceMap-StringLiteralWithNewLine.ts] //// + +=== sourceMap-StringLiteralWithNewLine.ts === +interface Document { +} +interface Window { + document: Document; +>document : Document +> : ^^^^^^^^ +} +declare var window: Window; +>window : Window +> : ^^^^^^ + +namespace Foo { +>Foo : typeof Foo +> : ^^^^^^^^^^ + + var x = "test1"; +>x : string +> : ^^^^^^ +>"test1" : "test1" +> : ^^^^^^^ + + var y = "test 2\ +>y : string +> : ^^^^^^ +>"test 2\isn't this a lot of fun" : "test 2isn't this a lot of fun" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +isn't this a lot of fun"; + var z = window.document; +>z : Document +> : ^^^^^^^^ +>window.document : Document +> : ^^^^^^^^ +>window : Window +> : ^^^^^^ +>document : Document +> : ^^^^^^^^ +} diff --git a/tests/baselines/reference/sourceMapValidationClass(target=es2015).js b/tests/baselines/reference/sourceMapValidationClass(target=es2015).js new file mode 100644 index 0000000000000..a9f56dc9487f8 --- /dev/null +++ b/tests/baselines/reference/sourceMapValidationClass(target=es2015).js @@ -0,0 +1,42 @@ +//// [tests/cases/compiler/sourceMapValidationClass.ts] //// + +//// [sourceMapValidationClass.ts] +class Greeter { + constructor(public greeting: string, ...b: string[]) { + } + greet() { + return "

" + this.greeting + "

"; + } + private x: string; + private x1: number = 10; + private fn() { + return this.greeting; + } + get greetings() { + return this.greeting; + } + set greetings(greetings: string) { + this.greeting = greetings; + } +} + +//// [sourceMapValidationClass.js] +class Greeter { + constructor(greeting, ...b) { + this.greeting = greeting; + this.x1 = 10; + } + greet() { + return "

" + this.greeting + "

"; + } + fn() { + return this.greeting; + } + get greetings() { + return this.greeting; + } + set greetings(greetings) { + this.greeting = greetings; + } +} +//# sourceMappingURL=sourceMapValidationClass.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationClass(target=es2015).js.map b/tests/baselines/reference/sourceMapValidationClass(target=es2015).js.map new file mode 100644 index 0000000000000..ed273846b8791 --- /dev/null +++ b/tests/baselines/reference/sourceMapValidationClass(target=es2015).js.map @@ -0,0 +1,3 @@ +//// [sourceMapValidationClass.js.map] +{"version":3,"file":"sourceMapValidationClass.js","sourceRoot":"","sources":["sourceMapValidationClass.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO;IACT,YAAmB,QAAgB,EAAE,GAAG,CAAW;QAAhC,aAAQ,GAAR,QAAQ,CAAQ;QAM3B,OAAE,GAAW,EAAE,CAAC;IALxB,CAAC;IACD,KAAK;QACD,OAAO,MAAM,GAAG,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;IAC5C,CAAC;IAGO,EAAE;QACN,OAAO,IAAI,CAAC,QAAQ,CAAC;IACzB,CAAC;IACD,IAAI,SAAS;QACT,OAAO,IAAI,CAAC,QAAQ,CAAC;IACzB,CAAC;IACD,IAAI,SAAS,CAAC,SAAiB;QAC3B,IAAI,CAAC,QAAQ,GAAG,SAAS,CAAC;IAC9B,CAAC;CACJ"} +//// https://sokra.github.io/source-map-visualization#base64,Y2xhc3MgR3JlZXRlciB7DQogICAgY29uc3RydWN0b3IoZ3JlZXRpbmcsIC4uLmIpIHsNCiAgICAgICAgdGhpcy5ncmVldGluZyA9IGdyZWV0aW5nOw0KICAgICAgICB0aGlzLngxID0gMTA7DQogICAgfQ0KICAgIGdyZWV0KCkgew0KICAgICAgICByZXR1cm4gIjxoMT4iICsgdGhpcy5ncmVldGluZyArICI8L2gxPiI7DQogICAgfQ0KICAgIGZuKCkgew0KICAgICAgICByZXR1cm4gdGhpcy5ncmVldGluZzsNCiAgICB9DQogICAgZ2V0IGdyZWV0aW5ncygpIHsNCiAgICAgICAgcmV0dXJuIHRoaXMuZ3JlZXRpbmc7DQogICAgfQ0KICAgIHNldCBncmVldGluZ3MoZ3JlZXRpbmdzKSB7DQogICAgICAgIHRoaXMuZ3JlZXRpbmcgPSBncmVldGluZ3M7DQogICAgfQ0KfQ0KLy8jIHNvdXJjZU1hcHBpbmdVUkw9c291cmNlTWFwVmFsaWRhdGlvbkNsYXNzLmpzLm1hcA==,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic291cmNlTWFwVmFsaWRhdGlvbkNsYXNzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsic291cmNlTWFwVmFsaWRhdGlvbkNsYXNzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE1BQU0sT0FBTztJQUNULFlBQW1CLFFBQWdCLEVBQUUsR0FBRyxDQUFXO1FBQWhDLGFBQVEsR0FBUixRQUFRLENBQVE7UUFNM0IsT0FBRSxHQUFXLEVBQUUsQ0FBQztJQUx4QixDQUFDO0lBQ0QsS0FBSztRQUNELE9BQU8sTUFBTSxHQUFHLElBQUksQ0FBQyxRQUFRLEdBQUcsT0FBTyxDQUFDO0lBQzVDLENBQUM7SUFHTyxFQUFFO1FBQ04sT0FBTyxJQUFJLENBQUMsUUFBUSxDQUFDO0lBQ3pCLENBQUM7SUFDRCxJQUFJLFNBQVM7UUFDVCxPQUFPLElBQUksQ0FBQyxRQUFRLENBQUM7SUFDekIsQ0FBQztJQUNELElBQUksU0FBUyxDQUFDLFNBQWlCO1FBQzNCLElBQUksQ0FBQyxRQUFRLEdBQUcsU0FBUyxDQUFDO0lBQzlCLENBQUM7Q0FDSiJ9,Y2xhc3MgR3JlZXRlciB7CiAgICBjb25zdHJ1Y3RvcihwdWJsaWMgZ3JlZXRpbmc6IHN0cmluZywgLi4uYjogc3RyaW5nW10pIHsKICAgIH0KICAgIGdyZWV0KCkgewogICAgICAgIHJldHVybiAiPGgxPiIgKyB0aGlzLmdyZWV0aW5nICsgIjwvaDE+IjsKICAgIH0KICAgIHByaXZhdGUgeDogc3RyaW5nOwogICAgcHJpdmF0ZSB4MTogbnVtYmVyID0gMTA7CiAgICBwcml2YXRlIGZuKCkgewogICAgICAgIHJldHVybiB0aGlzLmdyZWV0aW5nOwogICAgfQogICAgZ2V0IGdyZWV0aW5ncygpIHsKICAgICAgICByZXR1cm4gdGhpcy5ncmVldGluZzsKICAgIH0KICAgIHNldCBncmVldGluZ3MoZ3JlZXRpbmdzOiBzdHJpbmcpIHsKICAgICAgICB0aGlzLmdyZWV0aW5nID0gZ3JlZXRpbmdzOwogICAgfQp9 diff --git a/tests/baselines/reference/sourceMapValidationClass(target=es2015).sourcemap.txt b/tests/baselines/reference/sourceMapValidationClass(target=es2015).sourcemap.txt new file mode 100644 index 0000000000000..24fea489c7b42 --- /dev/null +++ b/tests/baselines/reference/sourceMapValidationClass(target=es2015).sourcemap.txt @@ -0,0 +1,293 @@ +=================================================================== +JsFile: sourceMapValidationClass.js +mapUrl: sourceMapValidationClass.js.map +sourceRoot: +sources: sourceMapValidationClass.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:sourceMapValidationClass.js +sourceFile:sourceMapValidationClass.ts +------------------------------------------------------------------- +>>>class Greeter { +1 > +2 >^^^^^^ +3 > ^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >class +3 > Greeter +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 7) Source(1, 7) + SourceIndex(0) +3 >Emitted(1, 14) Source(1, 14) + SourceIndex(0) +--- +>>> constructor(greeting, ...b) { +1->^^^^ +2 > ^^^^^^^^^^^^ +3 > ^^^^^^^^ +4 > ^^ +5 > ^^^ +6 > ^ +7 > ^^^^-> +1-> { + > +2 > constructor(public +3 > greeting: string +4 > , +5 > ... +6 > b: string[] +1->Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 17) Source(2, 24) + SourceIndex(0) +3 >Emitted(2, 25) Source(2, 40) + SourceIndex(0) +4 >Emitted(2, 27) Source(2, 42) + SourceIndex(0) +5 >Emitted(2, 30) Source(2, 45) + SourceIndex(0) +6 >Emitted(2, 31) Source(2, 56) + SourceIndex(0) +--- +>>> this.greeting = greeting; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^ +5 > ^ +1-> +2 > greeting +3 > +4 > greeting +5 > : string +1->Emitted(3, 9) Source(2, 24) + SourceIndex(0) +2 >Emitted(3, 22) Source(2, 32) + SourceIndex(0) +3 >Emitted(3, 25) Source(2, 24) + SourceIndex(0) +4 >Emitted(3, 33) Source(2, 32) + SourceIndex(0) +5 >Emitted(3, 34) Source(2, 40) + SourceIndex(0) +--- +>>> this.x1 = 10; +1 >^^^^^^^^ +2 > ^^^^^^^ +3 > ^^^ +4 > ^^ +5 > ^ +1 >, ...b: string[]) { + > } + > greet() { + > return "

" + this.greeting + "

"; + > } + > private x: string; + > private +2 > x1 +3 > : number = +4 > 10 +5 > ; +1 >Emitted(4, 9) Source(8, 13) + SourceIndex(0) +2 >Emitted(4, 16) Source(8, 15) + SourceIndex(0) +3 >Emitted(4, 19) Source(8, 26) + SourceIndex(0) +4 >Emitted(4, 21) Source(8, 28) + SourceIndex(0) +5 >Emitted(4, 22) Source(8, 29) + SourceIndex(0) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > +2 > } +1 >Emitted(5, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(5, 6) Source(3, 6) + SourceIndex(0) +--- +>>> greet() { +1->^^^^ +2 > ^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 > greet +1->Emitted(6, 5) Source(4, 5) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 10) + SourceIndex(0) +--- +>>> return "

" + this.greeting + "

"; +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^^^^^^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^ +9 > ^^^^^^^ +10> ^ +1->() { + > +2 > return +3 > "

" +4 > + +5 > this +6 > . +7 > greeting +8 > + +9 > "

" +10> ; +1->Emitted(7, 9) Source(5, 9) + SourceIndex(0) +2 >Emitted(7, 16) Source(5, 16) + SourceIndex(0) +3 >Emitted(7, 22) Source(5, 22) + SourceIndex(0) +4 >Emitted(7, 25) Source(5, 25) + SourceIndex(0) +5 >Emitted(7, 29) Source(5, 29) + SourceIndex(0) +6 >Emitted(7, 30) Source(5, 30) + SourceIndex(0) +7 >Emitted(7, 38) Source(5, 38) + SourceIndex(0) +8 >Emitted(7, 41) Source(5, 41) + SourceIndex(0) +9 >Emitted(7, 48) Source(5, 48) + SourceIndex(0) +10>Emitted(7, 49) Source(5, 49) + SourceIndex(0) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^^^-> +1 > + > +2 > } +1 >Emitted(8, 5) Source(6, 5) + SourceIndex(0) +2 >Emitted(8, 6) Source(6, 6) + SourceIndex(0) +--- +>>> fn() { +1->^^^^ +2 > ^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > private x: string; + > private x1: number = 10; + > private +2 > fn +1->Emitted(9, 5) Source(9, 13) + SourceIndex(0) +2 >Emitted(9, 7) Source(9, 15) + SourceIndex(0) +--- +>>> return this.greeting; +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^ +6 > ^ +1->() { + > +2 > return +3 > this +4 > . +5 > greeting +6 > ; +1->Emitted(10, 9) Source(10, 9) + SourceIndex(0) +2 >Emitted(10, 16) Source(10, 16) + SourceIndex(0) +3 >Emitted(10, 20) Source(10, 20) + SourceIndex(0) +4 >Emitted(10, 21) Source(10, 21) + SourceIndex(0) +5 >Emitted(10, 29) Source(10, 29) + SourceIndex(0) +6 >Emitted(10, 30) Source(10, 30) + SourceIndex(0) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(11, 5) Source(11, 5) + SourceIndex(0) +2 >Emitted(11, 6) Source(11, 6) + SourceIndex(0) +--- +>>> get greetings() { +1->^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^-> +1-> + > +2 > get +3 > greetings +1->Emitted(12, 5) Source(12, 5) + SourceIndex(0) +2 >Emitted(12, 9) Source(12, 9) + SourceIndex(0) +3 >Emitted(12, 18) Source(12, 18) + SourceIndex(0) +--- +>>> return this.greeting; +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^ +6 > ^ +1->() { + > +2 > return +3 > this +4 > . +5 > greeting +6 > ; +1->Emitted(13, 9) Source(13, 9) + SourceIndex(0) +2 >Emitted(13, 16) Source(13, 16) + SourceIndex(0) +3 >Emitted(13, 20) Source(13, 20) + SourceIndex(0) +4 >Emitted(13, 21) Source(13, 21) + SourceIndex(0) +5 >Emitted(13, 29) Source(13, 29) + SourceIndex(0) +6 >Emitted(13, 30) Source(13, 30) + SourceIndex(0) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(14, 5) Source(14, 5) + SourceIndex(0) +2 >Emitted(14, 6) Source(14, 6) + SourceIndex(0) +--- +>>> set greetings(greetings) { +1->^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^ +6 > ^^^^^^^^-> +1-> + > +2 > set +3 > greetings +4 > ( +5 > greetings: string +1->Emitted(15, 5) Source(15, 5) + SourceIndex(0) +2 >Emitted(15, 9) Source(15, 9) + SourceIndex(0) +3 >Emitted(15, 18) Source(15, 18) + SourceIndex(0) +4 >Emitted(15, 19) Source(15, 19) + SourceIndex(0) +5 >Emitted(15, 28) Source(15, 36) + SourceIndex(0) +--- +>>> this.greeting = greetings; +1->^^^^^^^^ +2 > ^^^^ +3 > ^ +4 > ^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^ +7 > ^ +1->) { + > +2 > this +3 > . +4 > greeting +5 > = +6 > greetings +7 > ; +1->Emitted(16, 9) Source(16, 9) + SourceIndex(0) +2 >Emitted(16, 13) Source(16, 13) + SourceIndex(0) +3 >Emitted(16, 14) Source(16, 14) + SourceIndex(0) +4 >Emitted(16, 22) Source(16, 22) + SourceIndex(0) +5 >Emitted(16, 25) Source(16, 25) + SourceIndex(0) +6 >Emitted(16, 34) Source(16, 34) + SourceIndex(0) +7 >Emitted(16, 35) Source(16, 35) + SourceIndex(0) +--- +>>> } +1 >^^^^ +2 > ^ +1 > + > +2 > } +1 >Emitted(17, 5) Source(17, 5) + SourceIndex(0) +2 >Emitted(17, 6) Source(17, 6) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(18, 2) Source(18, 2) + SourceIndex(0) +--- +>>>//# sourceMappingURL=sourceMapValidationClass.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationClass.symbols b/tests/baselines/reference/sourceMapValidationClass(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/sourceMapValidationClass.symbols rename to tests/baselines/reference/sourceMapValidationClass(target=es2015).symbols diff --git a/tests/baselines/reference/sourceMapValidationClass.types b/tests/baselines/reference/sourceMapValidationClass(target=es2015).types similarity index 100% rename from tests/baselines/reference/sourceMapValidationClass.types rename to tests/baselines/reference/sourceMapValidationClass(target=es2015).types diff --git a/tests/baselines/reference/sourceMapValidationClass.js b/tests/baselines/reference/sourceMapValidationClass(target=es5).js similarity index 100% rename from tests/baselines/reference/sourceMapValidationClass.js rename to tests/baselines/reference/sourceMapValidationClass(target=es5).js diff --git a/tests/baselines/reference/sourceMapValidationClass.js.map b/tests/baselines/reference/sourceMapValidationClass(target=es5).js.map similarity index 100% rename from tests/baselines/reference/sourceMapValidationClass.js.map rename to tests/baselines/reference/sourceMapValidationClass(target=es5).js.map diff --git a/tests/baselines/reference/sourceMapValidationClass.sourcemap.txt b/tests/baselines/reference/sourceMapValidationClass(target=es5).sourcemap.txt similarity index 100% rename from tests/baselines/reference/sourceMapValidationClass.sourcemap.txt rename to tests/baselines/reference/sourceMapValidationClass(target=es5).sourcemap.txt diff --git a/tests/baselines/reference/sourceMapValidationClass(target=es5).symbols b/tests/baselines/reference/sourceMapValidationClass(target=es5).symbols new file mode 100644 index 0000000000000..ff7e26fab911c --- /dev/null +++ b/tests/baselines/reference/sourceMapValidationClass(target=es5).symbols @@ -0,0 +1,51 @@ +//// [tests/cases/compiler/sourceMapValidationClass.ts] //// + +=== sourceMapValidationClass.ts === +class Greeter { +>Greeter : Symbol(Greeter, Decl(sourceMapValidationClass.ts, 0, 0)) + + constructor(public greeting: string, ...b: string[]) { +>greeting : Symbol(Greeter.greeting, Decl(sourceMapValidationClass.ts, 1, 16)) +>b : Symbol(b, Decl(sourceMapValidationClass.ts, 1, 40)) + } + greet() { +>greet : Symbol(Greeter.greet, Decl(sourceMapValidationClass.ts, 2, 5)) + + return "

" + this.greeting + "

"; +>this.greeting : Symbol(Greeter.greeting, Decl(sourceMapValidationClass.ts, 1, 16)) +>this : Symbol(Greeter, Decl(sourceMapValidationClass.ts, 0, 0)) +>greeting : Symbol(Greeter.greeting, Decl(sourceMapValidationClass.ts, 1, 16)) + } + private x: string; +>x : Symbol(Greeter.x, Decl(sourceMapValidationClass.ts, 5, 5)) + + private x1: number = 10; +>x1 : Symbol(Greeter.x1, Decl(sourceMapValidationClass.ts, 6, 22)) + + private fn() { +>fn : Symbol(Greeter.fn, Decl(sourceMapValidationClass.ts, 7, 28)) + + return this.greeting; +>this.greeting : Symbol(Greeter.greeting, Decl(sourceMapValidationClass.ts, 1, 16)) +>this : Symbol(Greeter, Decl(sourceMapValidationClass.ts, 0, 0)) +>greeting : Symbol(Greeter.greeting, Decl(sourceMapValidationClass.ts, 1, 16)) + } + get greetings() { +>greetings : Symbol(Greeter.greetings, Decl(sourceMapValidationClass.ts, 10, 5), Decl(sourceMapValidationClass.ts, 13, 5)) + + return this.greeting; +>this.greeting : Symbol(Greeter.greeting, Decl(sourceMapValidationClass.ts, 1, 16)) +>this : Symbol(Greeter, Decl(sourceMapValidationClass.ts, 0, 0)) +>greeting : Symbol(Greeter.greeting, Decl(sourceMapValidationClass.ts, 1, 16)) + } + set greetings(greetings: string) { +>greetings : Symbol(Greeter.greetings, Decl(sourceMapValidationClass.ts, 10, 5), Decl(sourceMapValidationClass.ts, 13, 5)) +>greetings : Symbol(greetings, Decl(sourceMapValidationClass.ts, 14, 18)) + + this.greeting = greetings; +>this.greeting : Symbol(Greeter.greeting, Decl(sourceMapValidationClass.ts, 1, 16)) +>this : Symbol(Greeter, Decl(sourceMapValidationClass.ts, 0, 0)) +>greeting : Symbol(Greeter.greeting, Decl(sourceMapValidationClass.ts, 1, 16)) +>greetings : Symbol(greetings, Decl(sourceMapValidationClass.ts, 14, 18)) + } +} diff --git a/tests/baselines/reference/sourceMapValidationClass(target=es5).types b/tests/baselines/reference/sourceMapValidationClass(target=es5).types new file mode 100644 index 0000000000000..65fa7a9b79041 --- /dev/null +++ b/tests/baselines/reference/sourceMapValidationClass(target=es5).types @@ -0,0 +1,86 @@ +//// [tests/cases/compiler/sourceMapValidationClass.ts] //// + +=== sourceMapValidationClass.ts === +class Greeter { +>Greeter : Greeter +> : ^^^^^^^ + + constructor(public greeting: string, ...b: string[]) { +>greeting : string +> : ^^^^^^ +>b : string[] +> : ^^^^^^^^ + } + greet() { +>greet : () => string +> : ^^^^^^^^^^^^ + + return "

" + this.greeting + "

"; +>"

" + this.greeting + "

" : string +> : ^^^^^^ +>"

" + this.greeting : string +> : ^^^^^^ +>"

" : "

" +> : ^^^^^^ +>this.greeting : string +> : ^^^^^^ +>this : this +> : ^^^^ +>greeting : string +> : ^^^^^^ +>"

" : "" +> : ^^^^^^^ + } + private x: string; +>x : string +> : ^^^^^^ + + private x1: number = 10; +>x1 : number +> : ^^^^^^ +>10 : 10 +> : ^^ + + private fn() { +>fn : () => string +> : ^^^^^^^^^^^^ + + return this.greeting; +>this.greeting : string +> : ^^^^^^ +>this : this +> : ^^^^ +>greeting : string +> : ^^^^^^ + } + get greetings() { +>greetings : string +> : ^^^^^^ + + return this.greeting; +>this.greeting : string +> : ^^^^^^ +>this : this +> : ^^^^ +>greeting : string +> : ^^^^^^ + } + set greetings(greetings: string) { +>greetings : string +> : ^^^^^^ +>greetings : string +> : ^^^^^^ + + this.greeting = greetings; +>this.greeting = greetings : string +> : ^^^^^^ +>this.greeting : string +> : ^^^^^^ +>this : this +> : ^^^^ +>greeting : string +> : ^^^^^^ +>greetings : string +> : ^^^^^^ + } +} diff --git a/tests/baselines/reference/sourceMapValidationDecorators(target=es2015).js b/tests/baselines/reference/sourceMapValidationDecorators(target=es2015).js new file mode 100644 index 0000000000000..9e3b84064fa82 --- /dev/null +++ b/tests/baselines/reference/sourceMapValidationDecorators(target=es2015).js @@ -0,0 +1,117 @@ +//// [tests/cases/compiler/sourceMapValidationDecorators.ts] //// + +//// [sourceMapValidationDecorators.ts] +declare function ClassDecorator1(target: Function): void; +declare function ClassDecorator2(x: number): (target: Function) => void; +declare function PropertyDecorator1(target: Object, key: string | symbol, descriptor?: PropertyDescriptor): void; +declare function PropertyDecorator2(x: number): (target: Object, key: string | symbol, descriptor?: PropertyDescriptor) => void; +declare function ParameterDecorator1(target: Object, key: string | symbol, paramIndex: number): void; +declare function ParameterDecorator2(x: number): (target: Object, key: string | symbol, paramIndex: number) => void; + +@ClassDecorator1 +@ClassDecorator2(10) +class Greeter { + constructor( + @ParameterDecorator1 + @ParameterDecorator2(20) + public greeting: string, + + @ParameterDecorator1 + @ParameterDecorator2(30) + ...b: string[]) { + } + + @PropertyDecorator1 + @PropertyDecorator2(40) + greet() { + return "

" + this.greeting + "

"; + } + + @PropertyDecorator1 + @PropertyDecorator2(50) + private x: string; + + @PropertyDecorator1 + @PropertyDecorator2(60) + private static x1: number = 10; + + private fn( + @ParameterDecorator1 + @ParameterDecorator2(70) + x: number) { + return this.greeting; + } + + @PropertyDecorator1 + @PropertyDecorator2(80) + get greetings() { + return this.greeting; + } + + set greetings( + @ParameterDecorator1 + @ParameterDecorator2(90) + greetings: string) { + this.greeting = greetings; + } +} + +//// [sourceMapValidationDecorators.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __param = (this && this.__param) || function (paramIndex, decorator) { + return function (target, key) { decorator(target, key, paramIndex); } +}; +let Greeter = class Greeter { + constructor(greeting, ...b) { + this.greeting = greeting; + } + greet() { + return "

" + this.greeting + "

"; + } + fn(x) { + return this.greeting; + } + get greetings() { + return this.greeting; + } + set greetings(greetings) { + this.greeting = greetings; + } +}; +Greeter.x1 = 10; +__decorate([ + PropertyDecorator1, + PropertyDecorator2(40) +], Greeter.prototype, "greet", null); +__decorate([ + PropertyDecorator1, + PropertyDecorator2(50) +], Greeter.prototype, "x", void 0); +__decorate([ + __param(0, ParameterDecorator1), + __param(0, ParameterDecorator2(70)) +], Greeter.prototype, "fn", null); +__decorate([ + PropertyDecorator1, + PropertyDecorator2(80), + __param(0, ParameterDecorator1), + __param(0, ParameterDecorator2(90)) +], Greeter.prototype, "greetings", null); +__decorate([ + PropertyDecorator1, + PropertyDecorator2(60) +], Greeter, "x1", void 0); +Greeter = __decorate([ + ClassDecorator1, + ClassDecorator2(10), + __param(0, ParameterDecorator1), + __param(0, ParameterDecorator2(20)), + __param(1, ParameterDecorator1), + __param(1, ParameterDecorator2(30)) +], Greeter); +//# sourceMappingURL=sourceMapValidationDecorators.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationDecorators(target=es2015).js.map b/tests/baselines/reference/sourceMapValidationDecorators(target=es2015).js.map new file mode 100644 index 0000000000000..6e9fe65548c49 --- /dev/null +++ b/tests/baselines/reference/sourceMapValidationDecorators(target=es2015).js.map @@ -0,0 +1,3 @@ +//// [sourceMapValidationDecorators.js.map] +{"version":3,"file":"sourceMapValidationDecorators.js","sourceRoot":"","sources":["sourceMapValidationDecorators.ts"],"names":[],"mappings":";;;;;;;;;AASA,IAAM,OAAO,GAAb,MAAM,OAAO;IACT,YAGS,QAAgB,EAIvB,GAAG,CAAW;QAJP,aAAQ,GAAR,QAAQ,CAAQ;IAKzB,CAAC;IAID,KAAK;QACD,OAAO,MAAM,GAAG,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;IAC5C,CAAC;IAUO,EAAE,CAGR,CAAS;QACP,OAAO,IAAI,CAAC,QAAQ,CAAC;IACzB,CAAC;IAID,IAAI,SAAS;QACT,OAAO,IAAI,CAAC,QAAQ,CAAC;IACzB,CAAC;IAED,IAAI,SAAS,CAGX,SAAiB;QACf,IAAI,CAAC,QAAQ,GAAG,SAAS,CAAC;IAC9B,CAAC;;AApBc,UAAE,GAAW,EAAE,AAAb,CAAc;AAV/B;IAFC,kBAAkB;IAClB,kBAAkB,CAAC,EAAE,CAAC;oCAGtB;AAIO;IAFP,kBAAkB;IAClB,kBAAkB,CAAC,EAAE,CAAC;kCACL;AAMV;IACL,WAAA,mBAAmB,CAAA;IACnB,WAAA,mBAAmB,CAAC,EAAE,CAAC,CAAA;iCAGzB;AAID;IAFC,kBAAkB;IAClB,kBAAkB,CAAC,EAAE,CAAC;IAMpB,WAAA,mBAAmB,CAAA;IACnB,WAAA,mBAAmB,CAAC,EAAE,CAAC,CAAA;wCAJzB;AAbc;IAFd,kBAAkB;IAClB,kBAAkB,CAAC,EAAE,CAAC;yBACQ;AAvB7B,OAAO;IAFZ,eAAe;IACf,eAAe,CAAC,EAAE,CAAC;IAGb,WAAA,mBAAmB,CAAA;IACnB,WAAA,mBAAmB,CAAC,EAAE,CAAC,CAAA;IAGvB,WAAA,mBAAmB,CAAA;IACnB,WAAA,mBAAmB,CAAC,EAAE,CAAC,CAAA;GAPxB,OAAO,CA4CZ"} +//// https://sokra.github.io/source-map-visualization#base64,dmFyIF9fZGVjb3JhdGUgPSAodGhpcyAmJiB0aGlzLl9fZGVjb3JhdGUpIHx8IGZ1bmN0aW9uIChkZWNvcmF0b3JzLCB0YXJnZXQsIGtleSwgZGVzYykgew0KICAgIHZhciBjID0gYXJndW1lbnRzLmxlbmd0aCwgciA9IGMgPCAzID8gdGFyZ2V0IDogZGVzYyA9PT0gbnVsbCA/IGRlc2MgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKHRhcmdldCwga2V5KSA6IGRlc2MsIGQ7DQogICAgaWYgKHR5cGVvZiBSZWZsZWN0ID09PSAib2JqZWN0IiAmJiB0eXBlb2YgUmVmbGVjdC5kZWNvcmF0ZSA9PT0gImZ1bmN0aW9uIikgciA9IFJlZmxlY3QuZGVjb3JhdGUoZGVjb3JhdG9ycywgdGFyZ2V0LCBrZXksIGRlc2MpOw0KICAgIGVsc2UgZm9yICh2YXIgaSA9IGRlY29yYXRvcnMubGVuZ3RoIC0gMTsgaSA+PSAwOyBpLS0pIGlmIChkID0gZGVjb3JhdG9yc1tpXSkgciA9IChjIDwgMyA/IGQocikgOiBjID4gMyA/IGQodGFyZ2V0LCBrZXksIHIpIDogZCh0YXJnZXQsIGtleSkpIHx8IHI7DQogICAgcmV0dXJuIGMgPiAzICYmIHIgJiYgT2JqZWN0LmRlZmluZVByb3BlcnR5KHRhcmdldCwga2V5LCByKSwgcjsNCn07DQp2YXIgX19wYXJhbSA9ICh0aGlzICYmIHRoaXMuX19wYXJhbSkgfHwgZnVuY3Rpb24gKHBhcmFtSW5kZXgsIGRlY29yYXRvcikgew0KICAgIHJldHVybiBmdW5jdGlvbiAodGFyZ2V0LCBrZXkpIHsgZGVjb3JhdG9yKHRhcmdldCwga2V5LCBwYXJhbUluZGV4KTsgfQ0KfTsNCmxldCBHcmVldGVyID0gY2xhc3MgR3JlZXRlciB7DQogICAgY29uc3RydWN0b3IoZ3JlZXRpbmcsIC4uLmIpIHsNCiAgICAgICAgdGhpcy5ncmVldGluZyA9IGdyZWV0aW5nOw0KICAgIH0NCiAgICBncmVldCgpIHsNCiAgICAgICAgcmV0dXJuICI8aDE+IiArIHRoaXMuZ3JlZXRpbmcgKyAiPC9oMT4iOw0KICAgIH0NCiAgICBmbih4KSB7DQogICAgICAgIHJldHVybiB0aGlzLmdyZWV0aW5nOw0KICAgIH0NCiAgICBnZXQgZ3JlZXRpbmdzKCkgew0KICAgICAgICByZXR1cm4gdGhpcy5ncmVldGluZzsNCiAgICB9DQogICAgc2V0IGdyZWV0aW5ncyhncmVldGluZ3MpIHsNCiAgICAgICAgdGhpcy5ncmVldGluZyA9IGdyZWV0aW5nczsNCiAgICB9DQp9Ow0KR3JlZXRlci54MSA9IDEwOw0KX19kZWNvcmF0ZShbDQogICAgUHJvcGVydHlEZWNvcmF0b3IxLA0KICAgIFByb3BlcnR5RGVjb3JhdG9yMig0MCkNCl0sIEdyZWV0ZXIucHJvdG90eXBlLCAiZ3JlZXQiLCBudWxsKTsNCl9fZGVjb3JhdGUoWw0KICAgIFByb3BlcnR5RGVjb3JhdG9yMSwNCiAgICBQcm9wZXJ0eURlY29yYXRvcjIoNTApDQpdLCBHcmVldGVyLnByb3RvdHlwZSwgIngiLCB2b2lkIDApOw0KX19kZWNvcmF0ZShbDQogICAgX19wYXJhbSgwLCBQYXJhbWV0ZXJEZWNvcmF0b3IxKSwNCiAgICBfX3BhcmFtKDAsIFBhcmFtZXRlckRlY29yYXRvcjIoNzApKQ0KXSwgR3JlZXRlci5wcm90b3R5cGUsICJmbiIsIG51bGwpOw0KX19kZWNvcmF0ZShbDQogICAgUHJvcGVydHlEZWNvcmF0b3IxLA0KICAgIFByb3BlcnR5RGVjb3JhdG9yMig4MCksDQogICAgX19wYXJhbSgwLCBQYXJhbWV0ZXJEZWNvcmF0b3IxKSwNCiAgICBfX3BhcmFtKDAsIFBhcmFtZXRlckRlY29yYXRvcjIoOTApKQ0KXSwgR3JlZXRlci5wcm90b3R5cGUsICJncmVldGluZ3MiLCBudWxsKTsNCl9fZGVjb3JhdGUoWw0KICAgIFByb3BlcnR5RGVjb3JhdG9yMSwNCiAgICBQcm9wZXJ0eURlY29yYXRvcjIoNjApDQpdLCBHcmVldGVyLCAieDEiLCB2b2lkIDApOw0KR3JlZXRlciA9IF9fZGVjb3JhdGUoWw0KICAgIENsYXNzRGVjb3JhdG9yMSwNCiAgICBDbGFzc0RlY29yYXRvcjIoMTApLA0KICAgIF9fcGFyYW0oMCwgUGFyYW1ldGVyRGVjb3JhdG9yMSksDQogICAgX19wYXJhbSgwLCBQYXJhbWV0ZXJEZWNvcmF0b3IyKDIwKSksDQogICAgX19wYXJhbSgxLCBQYXJhbWV0ZXJEZWNvcmF0b3IxKSwNCiAgICBfX3BhcmFtKDEsIFBhcmFtZXRlckRlY29yYXRvcjIoMzApKQ0KXSwgR3JlZXRlcik7DQovLyMgc291cmNlTWFwcGluZ1VSTD1zb3VyY2VNYXBWYWxpZGF0aW9uRGVjb3JhdG9ycy5qcy5tYXA=,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic291cmNlTWFwVmFsaWRhdGlvbkRlY29yYXRvcnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJzb3VyY2VNYXBWYWxpZGF0aW9uRGVjb3JhdG9ycy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7QUFTQSxJQUFNLE9BQU8sR0FBYixNQUFNLE9BQU87SUFDVCxZQUdTLFFBQWdCLEVBSXZCLEdBQUcsQ0FBVztRQUpQLGFBQVEsR0FBUixRQUFRLENBQVE7SUFLekIsQ0FBQztJQUlELEtBQUs7UUFDRCxPQUFPLE1BQU0sR0FBRyxJQUFJLENBQUMsUUFBUSxHQUFHLE9BQU8sQ0FBQztJQUM1QyxDQUFDO0lBVU8sRUFBRSxDQUdSLENBQVM7UUFDUCxPQUFPLElBQUksQ0FBQyxRQUFRLENBQUM7SUFDekIsQ0FBQztJQUlELElBQUksU0FBUztRQUNULE9BQU8sSUFBSSxDQUFDLFFBQVEsQ0FBQztJQUN6QixDQUFDO0lBRUQsSUFBSSxTQUFTLENBR1gsU0FBaUI7UUFDZixJQUFJLENBQUMsUUFBUSxHQUFHLFNBQVMsQ0FBQztJQUM5QixDQUFDOztBQXBCYyxVQUFFLEdBQVcsRUFBRSxBQUFiLENBQWM7QUFWL0I7SUFGQyxrQkFBa0I7SUFDbEIsa0JBQWtCLENBQUMsRUFBRSxDQUFDO29DQUd0QjtBQUlPO0lBRlAsa0JBQWtCO0lBQ2xCLGtCQUFrQixDQUFDLEVBQUUsQ0FBQztrQ0FDTDtBQU1WO0lBQ0wsV0FBQSxtQkFBbUIsQ0FBQTtJQUNuQixXQUFBLG1CQUFtQixDQUFDLEVBQUUsQ0FBQyxDQUFBO2lDQUd6QjtBQUlEO0lBRkMsa0JBQWtCO0lBQ2xCLGtCQUFrQixDQUFDLEVBQUUsQ0FBQztJQU1wQixXQUFBLG1CQUFtQixDQUFBO0lBQ25CLFdBQUEsbUJBQW1CLENBQUMsRUFBRSxDQUFDLENBQUE7d0NBSnpCO0FBYmM7SUFGZCxrQkFBa0I7SUFDbEIsa0JBQWtCLENBQUMsRUFBRSxDQUFDO3lCQUNRO0FBdkI3QixPQUFPO0lBRlosZUFBZTtJQUNmLGVBQWUsQ0FBQyxFQUFFLENBQUM7SUFHYixXQUFBLG1CQUFtQixDQUFBO0lBQ25CLFdBQUEsbUJBQW1CLENBQUMsRUFBRSxDQUFDLENBQUE7SUFHdkIsV0FBQSxtQkFBbUIsQ0FBQTtJQUNuQixXQUFBLG1CQUFtQixDQUFDLEVBQUUsQ0FBQyxDQUFBO0dBUHhCLE9BQU8sQ0E0Q1oifQ==,ZGVjbGFyZSBmdW5jdGlvbiBDbGFzc0RlY29yYXRvcjEodGFyZ2V0OiBGdW5jdGlvbik6IHZvaWQ7CmRlY2xhcmUgZnVuY3Rpb24gQ2xhc3NEZWNvcmF0b3IyKHg6IG51bWJlcik6ICh0YXJnZXQ6IEZ1bmN0aW9uKSA9PiB2b2lkOwpkZWNsYXJlIGZ1bmN0aW9uIFByb3BlcnR5RGVjb3JhdG9yMSh0YXJnZXQ6IE9iamVjdCwga2V5OiBzdHJpbmcgfCBzeW1ib2wsIGRlc2NyaXB0b3I/OiBQcm9wZXJ0eURlc2NyaXB0b3IpOiB2b2lkOwpkZWNsYXJlIGZ1bmN0aW9uIFByb3BlcnR5RGVjb3JhdG9yMih4OiBudW1iZXIpOiAodGFyZ2V0OiBPYmplY3QsIGtleTogc3RyaW5nIHwgc3ltYm9sLCBkZXNjcmlwdG9yPzogUHJvcGVydHlEZXNjcmlwdG9yKSA9PiB2b2lkOwpkZWNsYXJlIGZ1bmN0aW9uIFBhcmFtZXRlckRlY29yYXRvcjEodGFyZ2V0OiBPYmplY3QsIGtleTogc3RyaW5nIHwgc3ltYm9sLCBwYXJhbUluZGV4OiBudW1iZXIpOiB2b2lkOwpkZWNsYXJlIGZ1bmN0aW9uIFBhcmFtZXRlckRlY29yYXRvcjIoeDogbnVtYmVyKTogKHRhcmdldDogT2JqZWN0LCBrZXk6IHN0cmluZyB8IHN5bWJvbCwgcGFyYW1JbmRleDogbnVtYmVyKSA9PiB2b2lkOwoKQENsYXNzRGVjb3JhdG9yMQpAQ2xhc3NEZWNvcmF0b3IyKDEwKQpjbGFzcyBHcmVldGVyIHsKICAgIGNvbnN0cnVjdG9yKAogICAgICBAUGFyYW1ldGVyRGVjb3JhdG9yMSAKICAgICAgQFBhcmFtZXRlckRlY29yYXRvcjIoMjApIAogICAgICBwdWJsaWMgZ3JlZXRpbmc6IHN0cmluZywgCiAgICAgIAogICAgICBAUGFyYW1ldGVyRGVjb3JhdG9yMSAKICAgICAgQFBhcmFtZXRlckRlY29yYXRvcjIoMzApIAogICAgICAuLi5iOiBzdHJpbmdbXSkgewogICAgfQogICAgCiAgICBAUHJvcGVydHlEZWNvcmF0b3IxCiAgICBAUHJvcGVydHlEZWNvcmF0b3IyKDQwKQogICAgZ3JlZXQoKSB7CiAgICAgICAgcmV0dXJuICI8aDE+IiArIHRoaXMuZ3JlZXRpbmcgKyAiPC9oMT4iOwogICAgfQoKICAgIEBQcm9wZXJ0eURlY29yYXRvcjEKICAgIEBQcm9wZXJ0eURlY29yYXRvcjIoNTApCiAgICBwcml2YXRlIHg6IHN0cmluZzsKCiAgICBAUHJvcGVydHlEZWNvcmF0b3IxCiAgICBAUHJvcGVydHlEZWNvcmF0b3IyKDYwKQogICAgcHJpdmF0ZSBzdGF0aWMgeDE6IG51bWJlciA9IDEwOwogICAgCiAgICBwcml2YXRlIGZuKAogICAgICBAUGFyYW1ldGVyRGVjb3JhdG9yMSAKICAgICAgQFBhcmFtZXRlckRlY29yYXRvcjIoNzApIAogICAgICB4OiBudW1iZXIpIHsKICAgICAgICByZXR1cm4gdGhpcy5ncmVldGluZzsKICAgIH0KCiAgICBAUHJvcGVydHlEZWNvcmF0b3IxCiAgICBAUHJvcGVydHlEZWNvcmF0b3IyKDgwKQogICAgZ2V0IGdyZWV0aW5ncygpIHsKICAgICAgICByZXR1cm4gdGhpcy5ncmVldGluZzsKICAgIH0KCiAgICBzZXQgZ3JlZXRpbmdzKAogICAgICBAUGFyYW1ldGVyRGVjb3JhdG9yMSAKICAgICAgQFBhcmFtZXRlckRlY29yYXRvcjIoOTApIAogICAgICBncmVldGluZ3M6IHN0cmluZykgewogICAgICAgIHRoaXMuZ3JlZXRpbmcgPSBncmVldGluZ3M7CiAgICB9ICAgIAp9 diff --git a/tests/baselines/reference/sourceMapValidationDecorators(target=es2015).sourcemap.txt b/tests/baselines/reference/sourceMapValidationDecorators(target=es2015).sourcemap.txt new file mode 100644 index 0000000000000..034737ee379f7 --- /dev/null +++ b/tests/baselines/reference/sourceMapValidationDecorators(target=es2015).sourcemap.txt @@ -0,0 +1,801 @@ +=================================================================== +JsFile: sourceMapValidationDecorators.js +mapUrl: sourceMapValidationDecorators.js.map +sourceRoot: +sources: sourceMapValidationDecorators.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:sourceMapValidationDecorators.js +sourceFile:sourceMapValidationDecorators.ts +------------------------------------------------------------------- +>>>var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { +>>> var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; +>>> if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); +>>> else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; +>>> return c > 3 && r && Object.defineProperty(target, key, r), r; +>>>}; +>>>var __param = (this && this.__param) || function (paramIndex, decorator) { +>>> return function (target, key) { decorator(target, key, paramIndex); } +>>>}; +>>>let Greeter = class Greeter { +1 > +2 >^^^^ +3 > ^^^^^^^ +4 > ^^^ +5 > ^^^^^^ +6 > ^^^^^^^ +7 > ^^^^^^^-> +1 >declare function ClassDecorator1(target: Function): void; + >declare function ClassDecorator2(x: number): (target: Function) => void; + >declare function PropertyDecorator1(target: Object, key: string | symbol, descriptor?: PropertyDescriptor): void; + >declare function PropertyDecorator2(x: number): (target: Object, key: string | symbol, descriptor?: PropertyDescriptor) => void; + >declare function ParameterDecorator1(target: Object, key: string | symbol, paramIndex: number): void; + >declare function ParameterDecorator2(x: number): (target: Object, key: string | symbol, paramIndex: number) => void; + > + >@ClassDecorator1 + >@ClassDecorator2(10) + > +2 >class +3 > Greeter +4 > +5 > class +6 > Greeter +1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(10, 5) Source(10, 7) + SourceIndex(0) +3 >Emitted(10, 12) Source(10, 14) + SourceIndex(0) +4 >Emitted(10, 15) Source(10, 1) + SourceIndex(0) +5 >Emitted(10, 21) Source(10, 7) + SourceIndex(0) +6 >Emitted(10, 28) Source(10, 14) + SourceIndex(0) +--- +>>> constructor(greeting, ...b) { +1->^^^^ +2 > ^^^^^^^^^^^^ +3 > ^^^^^^^^ +4 > ^^ +5 > ^^^ +6 > ^ +7 > ^^^^-> +1-> { + > +2 > constructor( + > @ParameterDecorator1 + > @ParameterDecorator2(20) + > public +3 > greeting: string +4 > , + > + > @ParameterDecorator1 + > @ParameterDecorator2(30) + > +5 > ... +6 > b: string[] +1->Emitted(11, 5) Source(11, 5) + SourceIndex(0) +2 >Emitted(11, 17) Source(14, 14) + SourceIndex(0) +3 >Emitted(11, 25) Source(14, 30) + SourceIndex(0) +4 >Emitted(11, 27) Source(18, 7) + SourceIndex(0) +5 >Emitted(11, 30) Source(18, 10) + SourceIndex(0) +6 >Emitted(11, 31) Source(18, 21) + SourceIndex(0) +--- +>>> this.greeting = greeting; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^ +5 > ^ +1-> +2 > greeting +3 > +4 > greeting +5 > : string +1->Emitted(12, 9) Source(14, 14) + SourceIndex(0) +2 >Emitted(12, 22) Source(14, 22) + SourceIndex(0) +3 >Emitted(12, 25) Source(14, 14) + SourceIndex(0) +4 >Emitted(12, 33) Source(14, 22) + SourceIndex(0) +5 >Emitted(12, 34) Source(14, 30) + SourceIndex(0) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 >, + > + > @ParameterDecorator1 + > @ParameterDecorator2(30) + > ...b: string[]) { + > +2 > } +1 >Emitted(13, 5) Source(19, 5) + SourceIndex(0) +2 >Emitted(13, 6) Source(19, 6) + SourceIndex(0) +--- +>>> greet() { +1->^^^^ +2 > ^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > + > @PropertyDecorator1 + > @PropertyDecorator2(40) + > +2 > greet +1->Emitted(14, 5) Source(23, 5) + SourceIndex(0) +2 >Emitted(14, 10) Source(23, 10) + SourceIndex(0) +--- +>>> return "

" + this.greeting + "

"; +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^^^^^^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^ +9 > ^^^^^^^ +10> ^ +1->() { + > +2 > return +3 > "

" +4 > + +5 > this +6 > . +7 > greeting +8 > + +9 > "

" +10> ; +1->Emitted(15, 9) Source(24, 9) + SourceIndex(0) +2 >Emitted(15, 16) Source(24, 16) + SourceIndex(0) +3 >Emitted(15, 22) Source(24, 22) + SourceIndex(0) +4 >Emitted(15, 25) Source(24, 25) + SourceIndex(0) +5 >Emitted(15, 29) Source(24, 29) + SourceIndex(0) +6 >Emitted(15, 30) Source(24, 30) + SourceIndex(0) +7 >Emitted(15, 38) Source(24, 38) + SourceIndex(0) +8 >Emitted(15, 41) Source(24, 41) + SourceIndex(0) +9 >Emitted(15, 48) Source(24, 48) + SourceIndex(0) +10>Emitted(15, 49) Source(24, 49) + SourceIndex(0) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^^^^-> +1 > + > +2 > } +1 >Emitted(16, 5) Source(25, 5) + SourceIndex(0) +2 >Emitted(16, 6) Source(25, 6) + SourceIndex(0) +--- +>>> fn(x) { +1->^^^^ +2 > ^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > + > @PropertyDecorator1 + > @PropertyDecorator2(50) + > private x: string; + > + > @PropertyDecorator1 + > @PropertyDecorator2(60) + > private static x1: number = 10; + > + > private +2 > fn +3 > ( + > @ParameterDecorator1 + > @ParameterDecorator2(70) + > +4 > x: number +1->Emitted(17, 5) Source(35, 13) + SourceIndex(0) +2 >Emitted(17, 7) Source(35, 15) + SourceIndex(0) +3 >Emitted(17, 8) Source(38, 7) + SourceIndex(0) +4 >Emitted(17, 9) Source(38, 16) + SourceIndex(0) +--- +>>> return this.greeting; +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^ +6 > ^ +1->) { + > +2 > return +3 > this +4 > . +5 > greeting +6 > ; +1->Emitted(18, 9) Source(39, 9) + SourceIndex(0) +2 >Emitted(18, 16) Source(39, 16) + SourceIndex(0) +3 >Emitted(18, 20) Source(39, 20) + SourceIndex(0) +4 >Emitted(18, 21) Source(39, 21) + SourceIndex(0) +5 >Emitted(18, 29) Source(39, 29) + SourceIndex(0) +6 >Emitted(18, 30) Source(39, 30) + SourceIndex(0) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(19, 5) Source(40, 5) + SourceIndex(0) +2 >Emitted(19, 6) Source(40, 6) + SourceIndex(0) +--- +>>> get greetings() { +1->^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^-> +1-> + > + > @PropertyDecorator1 + > @PropertyDecorator2(80) + > +2 > get +3 > greetings +1->Emitted(20, 5) Source(44, 5) + SourceIndex(0) +2 >Emitted(20, 9) Source(44, 9) + SourceIndex(0) +3 >Emitted(20, 18) Source(44, 18) + SourceIndex(0) +--- +>>> return this.greeting; +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^ +6 > ^ +1->() { + > +2 > return +3 > this +4 > . +5 > greeting +6 > ; +1->Emitted(21, 9) Source(45, 9) + SourceIndex(0) +2 >Emitted(21, 16) Source(45, 16) + SourceIndex(0) +3 >Emitted(21, 20) Source(45, 20) + SourceIndex(0) +4 >Emitted(21, 21) Source(45, 21) + SourceIndex(0) +5 >Emitted(21, 29) Source(45, 29) + SourceIndex(0) +6 >Emitted(21, 30) Source(45, 30) + SourceIndex(0) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(22, 5) Source(46, 5) + SourceIndex(0) +2 >Emitted(22, 6) Source(46, 6) + SourceIndex(0) +--- +>>> set greetings(greetings) { +1->^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^ +6 > ^^^^^^^^-> +1-> + > + > +2 > set +3 > greetings +4 > ( + > @ParameterDecorator1 + > @ParameterDecorator2(90) + > +5 > greetings: string +1->Emitted(23, 5) Source(48, 5) + SourceIndex(0) +2 >Emitted(23, 9) Source(48, 9) + SourceIndex(0) +3 >Emitted(23, 18) Source(48, 18) + SourceIndex(0) +4 >Emitted(23, 19) Source(51, 7) + SourceIndex(0) +5 >Emitted(23, 28) Source(51, 24) + SourceIndex(0) +--- +>>> this.greeting = greetings; +1->^^^^^^^^ +2 > ^^^^ +3 > ^ +4 > ^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^ +7 > ^ +1->) { + > +2 > this +3 > . +4 > greeting +5 > = +6 > greetings +7 > ; +1->Emitted(24, 9) Source(52, 9) + SourceIndex(0) +2 >Emitted(24, 13) Source(52, 13) + SourceIndex(0) +3 >Emitted(24, 14) Source(52, 14) + SourceIndex(0) +4 >Emitted(24, 22) Source(52, 22) + SourceIndex(0) +5 >Emitted(24, 25) Source(52, 25) + SourceIndex(0) +6 >Emitted(24, 34) Source(52, 34) + SourceIndex(0) +7 >Emitted(24, 35) Source(52, 35) + SourceIndex(0) +--- +>>> } +1 >^^^^ +2 > ^ +1 > + > +2 > } +1 >Emitted(25, 5) Source(53, 5) + SourceIndex(0) +2 >Emitted(25, 6) Source(53, 6) + SourceIndex(0) +--- +>>>}; +>>>Greeter.x1 = 10; +1 > +2 >^^^^^^^^^^ +3 > ^^^ +4 > ^^ +5 > +6 > ^ +1 > +2 >x1 +3 > : number = +4 > 10 +5 > +6 > : number = 10; +1 >Emitted(27, 1) Source(33, 20) + SourceIndex(0) +2 >Emitted(27, 11) Source(33, 22) + SourceIndex(0) +3 >Emitted(27, 14) Source(33, 33) + SourceIndex(0) +4 >Emitted(27, 16) Source(33, 35) + SourceIndex(0) +5 >Emitted(27, 16) Source(33, 22) + SourceIndex(0) +6 >Emitted(27, 17) Source(33, 36) + SourceIndex(0) +--- +>>>__decorate([ +1 > +2 >^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +1 >Emitted(28, 1) Source(23, 5) + SourceIndex(0) +--- +>>> PropertyDecorator1, +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^ +3 > ^^^^^-> +1-> +2 > PropertyDecorator1 +1->Emitted(29, 5) Source(21, 6) + SourceIndex(0) +2 >Emitted(29, 23) Source(21, 24) + SourceIndex(0) +--- +>>> PropertyDecorator2(40) +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1-> + > @ +2 > PropertyDecorator2 +3 > ( +4 > 40 +5 > ) +1->Emitted(30, 5) Source(22, 6) + SourceIndex(0) +2 >Emitted(30, 23) Source(22, 24) + SourceIndex(0) +3 >Emitted(30, 24) Source(22, 25) + SourceIndex(0) +4 >Emitted(30, 26) Source(22, 27) + SourceIndex(0) +5 >Emitted(30, 27) Source(22, 28) + SourceIndex(0) +--- +>>>], Greeter.prototype, "greet", null); +1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > greet() { + > return "

" + this.greeting + "

"; + > } +1->Emitted(31, 37) Source(25, 6) + SourceIndex(0) +--- +>>>__decorate([ +1 > +2 >^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > + > @PropertyDecorator1 + > @PropertyDecorator2(50) + > private +1 >Emitted(32, 1) Source(29, 13) + SourceIndex(0) +--- +>>> PropertyDecorator1, +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^ +3 > ^^^^^-> +1-> +2 > PropertyDecorator1 +1->Emitted(33, 5) Source(27, 6) + SourceIndex(0) +2 >Emitted(33, 23) Source(27, 24) + SourceIndex(0) +--- +>>> PropertyDecorator2(50) +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^-> +1-> + > @ +2 > PropertyDecorator2 +3 > ( +4 > 50 +5 > ) +1->Emitted(34, 5) Source(28, 6) + SourceIndex(0) +2 >Emitted(34, 23) Source(28, 24) + SourceIndex(0) +3 >Emitted(34, 24) Source(28, 25) + SourceIndex(0) +4 >Emitted(34, 26) Source(28, 27) + SourceIndex(0) +5 >Emitted(34, 27) Source(28, 28) + SourceIndex(0) +--- +>>>], Greeter.prototype, "x", void 0); +1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > private x: string; +1->Emitted(35, 35) Source(29, 23) + SourceIndex(0) +--- +>>>__decorate([ +1 > +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > + > @PropertyDecorator1 + > @PropertyDecorator2(60) + > private static x1: number = 10; + > + > private +1 >Emitted(36, 1) Source(35, 13) + SourceIndex(0) +--- +>>> __param(0, ParameterDecorator1), +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^-> +1->fn( + > @ +2 > +3 > ParameterDecorator1 +4 > +1->Emitted(37, 5) Source(36, 8) + SourceIndex(0) +2 >Emitted(37, 16) Source(36, 8) + SourceIndex(0) +3 >Emitted(37, 35) Source(36, 27) + SourceIndex(0) +4 >Emitted(37, 36) Source(36, 27) + SourceIndex(0) +--- +>>> __param(0, ParameterDecorator2(70)) +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^ +6 > ^ +7 > ^ +1-> + > @ +2 > +3 > ParameterDecorator2 +4 > ( +5 > 70 +6 > ) +7 > +1->Emitted(38, 5) Source(37, 8) + SourceIndex(0) +2 >Emitted(38, 16) Source(37, 8) + SourceIndex(0) +3 >Emitted(38, 35) Source(37, 27) + SourceIndex(0) +4 >Emitted(38, 36) Source(37, 28) + SourceIndex(0) +5 >Emitted(38, 38) Source(37, 30) + SourceIndex(0) +6 >Emitted(38, 39) Source(37, 31) + SourceIndex(0) +7 >Emitted(38, 40) Source(37, 31) + SourceIndex(0) +--- +>>>], Greeter.prototype, "fn", null); +1 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1 > + > x: number) { + > return this.greeting; + > } +1 >Emitted(39, 34) Source(40, 6) + SourceIndex(0) +--- +>>>__decorate([ +1 > +2 >^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > + > @PropertyDecorator1 + > @PropertyDecorator2(80) + > +1 >Emitted(40, 1) Source(44, 5) + SourceIndex(0) +--- +>>> PropertyDecorator1, +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^-> +1-> +2 > PropertyDecorator1 +1->Emitted(41, 5) Source(42, 6) + SourceIndex(0) +2 >Emitted(41, 23) Source(42, 24) + SourceIndex(0) +--- +>>> PropertyDecorator2(80), +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^-> +1-> + > @ +2 > PropertyDecorator2 +3 > ( +4 > 80 +5 > ) +1->Emitted(42, 5) Source(43, 6) + SourceIndex(0) +2 >Emitted(42, 23) Source(43, 24) + SourceIndex(0) +3 >Emitted(42, 24) Source(43, 25) + SourceIndex(0) +4 >Emitted(42, 26) Source(43, 27) + SourceIndex(0) +5 >Emitted(42, 27) Source(43, 28) + SourceIndex(0) +--- +>>> __param(0, ParameterDecorator1), +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^-> +1-> + > get greetings() { + > return this.greeting; + > } + > + > set greetings( + > @ +2 > +3 > ParameterDecorator1 +4 > +1->Emitted(43, 5) Source(49, 8) + SourceIndex(0) +2 >Emitted(43, 16) Source(49, 8) + SourceIndex(0) +3 >Emitted(43, 35) Source(49, 27) + SourceIndex(0) +4 >Emitted(43, 36) Source(49, 27) + SourceIndex(0) +--- +>>> __param(0, ParameterDecorator2(90)) +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^ +6 > ^ +7 > ^ +8 > ^^^-> +1-> + > @ +2 > +3 > ParameterDecorator2 +4 > ( +5 > 90 +6 > ) +7 > +1->Emitted(44, 5) Source(50, 8) + SourceIndex(0) +2 >Emitted(44, 16) Source(50, 8) + SourceIndex(0) +3 >Emitted(44, 35) Source(50, 27) + SourceIndex(0) +4 >Emitted(44, 36) Source(50, 28) + SourceIndex(0) +5 >Emitted(44, 38) Source(50, 30) + SourceIndex(0) +6 >Emitted(44, 39) Source(50, 31) + SourceIndex(0) +7 >Emitted(44, 40) Source(50, 31) + SourceIndex(0) +--- +>>>], Greeter.prototype, "greetings", null); +1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> +1->Emitted(45, 41) Source(46, 6) + SourceIndex(0) +--- +>>>__decorate([ +1 > +2 >^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +1 >Emitted(46, 1) Source(33, 20) + SourceIndex(0) +--- +>>> PropertyDecorator1, +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^ +3 > ^^^^^-> +1-> +2 > PropertyDecorator1 +1->Emitted(47, 5) Source(31, 6) + SourceIndex(0) +2 >Emitted(47, 23) Source(31, 24) + SourceIndex(0) +--- +>>> PropertyDecorator2(60) +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^ +5 > ^ +6 > ^-> +1-> + > @ +2 > PropertyDecorator2 +3 > ( +4 > 60 +5 > ) +1->Emitted(48, 5) Source(32, 6) + SourceIndex(0) +2 >Emitted(48, 23) Source(32, 24) + SourceIndex(0) +3 >Emitted(48, 24) Source(32, 25) + SourceIndex(0) +4 >Emitted(48, 26) Source(32, 27) + SourceIndex(0) +5 >Emitted(48, 27) Source(32, 28) + SourceIndex(0) +--- +>>>], Greeter, "x1", void 0); +1->^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > private static x1: number = 10; +1->Emitted(49, 26) Source(33, 36) + SourceIndex(0) +--- +>>>Greeter = __decorate([ +1 > +2 >^^^^^^^ +3 > ^^^^^^^^^^^^^^-> +1 > +2 >Greeter +1 >Emitted(50, 1) Source(10, 7) + SourceIndex(0) +2 >Emitted(50, 8) Source(10, 14) + SourceIndex(0) +--- +>>> ClassDecorator1, +1->^^^^ +2 > ^^^^^^^^^^^^^^^ +3 > ^^^^^^-> +1-> +2 > ClassDecorator1 +1->Emitted(51, 5) Source(8, 2) + SourceIndex(0) +2 >Emitted(51, 20) Source(8, 17) + SourceIndex(0) +--- +>>> ClassDecorator2(10), +1->^^^^ +2 > ^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^^^-> +1-> + >@ +2 > ClassDecorator2 +3 > ( +4 > 10 +5 > ) +1->Emitted(52, 5) Source(9, 2) + SourceIndex(0) +2 >Emitted(52, 20) Source(9, 17) + SourceIndex(0) +3 >Emitted(52, 21) Source(9, 18) + SourceIndex(0) +4 >Emitted(52, 23) Source(9, 20) + SourceIndex(0) +5 >Emitted(52, 24) Source(9, 21) + SourceIndex(0) +--- +>>> __param(0, ParameterDecorator1), +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^-> +1-> + >class Greeter { + > constructor( + > @ +2 > +3 > ParameterDecorator1 +4 > +1->Emitted(53, 5) Source(12, 8) + SourceIndex(0) +2 >Emitted(53, 16) Source(12, 8) + SourceIndex(0) +3 >Emitted(53, 35) Source(12, 27) + SourceIndex(0) +4 >Emitted(53, 36) Source(12, 27) + SourceIndex(0) +--- +>>> __param(0, ParameterDecorator2(20)), +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^ +6 > ^ +7 > ^ +1-> + > @ +2 > +3 > ParameterDecorator2 +4 > ( +5 > 20 +6 > ) +7 > +1->Emitted(54, 5) Source(13, 8) + SourceIndex(0) +2 >Emitted(54, 16) Source(13, 8) + SourceIndex(0) +3 >Emitted(54, 35) Source(13, 27) + SourceIndex(0) +4 >Emitted(54, 36) Source(13, 28) + SourceIndex(0) +5 >Emitted(54, 38) Source(13, 30) + SourceIndex(0) +6 >Emitted(54, 39) Source(13, 31) + SourceIndex(0) +7 >Emitted(54, 40) Source(13, 31) + SourceIndex(0) +--- +>>> __param(1, ParameterDecorator1), +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^-> +1 > + > public greeting: string, + > + > @ +2 > +3 > ParameterDecorator1 +4 > +1 >Emitted(55, 5) Source(16, 8) + SourceIndex(0) +2 >Emitted(55, 16) Source(16, 8) + SourceIndex(0) +3 >Emitted(55, 35) Source(16, 27) + SourceIndex(0) +4 >Emitted(55, 36) Source(16, 27) + SourceIndex(0) +--- +>>> __param(1, ParameterDecorator2(30)) +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^ +6 > ^ +7 > ^ +1-> + > @ +2 > +3 > ParameterDecorator2 +4 > ( +5 > 30 +6 > ) +7 > +1->Emitted(56, 5) Source(17, 8) + SourceIndex(0) +2 >Emitted(56, 16) Source(17, 8) + SourceIndex(0) +3 >Emitted(56, 35) Source(17, 27) + SourceIndex(0) +4 >Emitted(56, 36) Source(17, 28) + SourceIndex(0) +5 >Emitted(56, 38) Source(17, 30) + SourceIndex(0) +6 >Emitted(56, 39) Source(17, 31) + SourceIndex(0) +7 >Emitted(56, 40) Source(17, 31) + SourceIndex(0) +--- +>>>], Greeter); +1 >^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > Greeter +3 > { + > constructor( + > @ParameterDecorator1 + > @ParameterDecorator2(20) + > public greeting: string, + > + > @ParameterDecorator1 + > @ParameterDecorator2(30) + > ...b: string[]) { + > } + > + > @PropertyDecorator1 + > @PropertyDecorator2(40) + > greet() { + > return "

" + this.greeting + "

"; + > } + > + > @PropertyDecorator1 + > @PropertyDecorator2(50) + > private x: string; + > + > @PropertyDecorator1 + > @PropertyDecorator2(60) + > private static x1: number = 10; + > + > private fn( + > @ParameterDecorator1 + > @ParameterDecorator2(70) + > x: number) { + > return this.greeting; + > } + > + > @PropertyDecorator1 + > @PropertyDecorator2(80) + > get greetings() { + > return this.greeting; + > } + > + > set greetings( + > @ParameterDecorator1 + > @ParameterDecorator2(90) + > greetings: string) { + > this.greeting = greetings; + > } + > } +1 >Emitted(57, 4) Source(10, 7) + SourceIndex(0) +2 >Emitted(57, 11) Source(10, 14) + SourceIndex(0) +3 >Emitted(57, 12) Source(54, 2) + SourceIndex(0) +--- +>>>//# sourceMappingURL=sourceMapValidationDecorators.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationDecorators.symbols b/tests/baselines/reference/sourceMapValidationDecorators(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/sourceMapValidationDecorators.symbols rename to tests/baselines/reference/sourceMapValidationDecorators(target=es2015).symbols diff --git a/tests/baselines/reference/sourceMapValidationDecorators.types b/tests/baselines/reference/sourceMapValidationDecorators(target=es2015).types similarity index 100% rename from tests/baselines/reference/sourceMapValidationDecorators.types rename to tests/baselines/reference/sourceMapValidationDecorators(target=es2015).types diff --git a/tests/baselines/reference/sourceMapValidationDecorators.js b/tests/baselines/reference/sourceMapValidationDecorators(target=es5).js similarity index 100% rename from tests/baselines/reference/sourceMapValidationDecorators.js rename to tests/baselines/reference/sourceMapValidationDecorators(target=es5).js diff --git a/tests/baselines/reference/sourceMapValidationDecorators.js.map b/tests/baselines/reference/sourceMapValidationDecorators(target=es5).js.map similarity index 100% rename from tests/baselines/reference/sourceMapValidationDecorators.js.map rename to tests/baselines/reference/sourceMapValidationDecorators(target=es5).js.map diff --git a/tests/baselines/reference/sourceMapValidationDecorators.sourcemap.txt b/tests/baselines/reference/sourceMapValidationDecorators(target=es5).sourcemap.txt similarity index 100% rename from tests/baselines/reference/sourceMapValidationDecorators.sourcemap.txt rename to tests/baselines/reference/sourceMapValidationDecorators(target=es5).sourcemap.txt diff --git a/tests/baselines/reference/sourceMapValidationDecorators(target=es5).symbols b/tests/baselines/reference/sourceMapValidationDecorators(target=es5).symbols new file mode 100644 index 0000000000000..aef3b2df7bfc4 --- /dev/null +++ b/tests/baselines/reference/sourceMapValidationDecorators(target=es5).symbols @@ -0,0 +1,160 @@ +//// [tests/cases/compiler/sourceMapValidationDecorators.ts] //// + +=== sourceMapValidationDecorators.ts === +declare function ClassDecorator1(target: Function): void; +>ClassDecorator1 : Symbol(ClassDecorator1, Decl(sourceMapValidationDecorators.ts, 0, 0)) +>target : Symbol(target, Decl(sourceMapValidationDecorators.ts, 0, 33)) +>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + +declare function ClassDecorator2(x: number): (target: Function) => void; +>ClassDecorator2 : Symbol(ClassDecorator2, Decl(sourceMapValidationDecorators.ts, 0, 57)) +>x : Symbol(x, Decl(sourceMapValidationDecorators.ts, 1, 33)) +>target : Symbol(target, Decl(sourceMapValidationDecorators.ts, 1, 46)) +>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + +declare function PropertyDecorator1(target: Object, key: string | symbol, descriptor?: PropertyDescriptor): void; +>PropertyDecorator1 : Symbol(PropertyDecorator1, Decl(sourceMapValidationDecorators.ts, 1, 72)) +>target : Symbol(target, Decl(sourceMapValidationDecorators.ts, 2, 36)) +>Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>key : Symbol(key, Decl(sourceMapValidationDecorators.ts, 2, 51)) +>descriptor : Symbol(descriptor, Decl(sourceMapValidationDecorators.ts, 2, 73)) +>PropertyDescriptor : Symbol(PropertyDescriptor, Decl(lib.es5.d.ts, --, --)) + +declare function PropertyDecorator2(x: number): (target: Object, key: string | symbol, descriptor?: PropertyDescriptor) => void; +>PropertyDecorator2 : Symbol(PropertyDecorator2, Decl(sourceMapValidationDecorators.ts, 2, 113)) +>x : Symbol(x, Decl(sourceMapValidationDecorators.ts, 3, 36)) +>target : Symbol(target, Decl(sourceMapValidationDecorators.ts, 3, 49)) +>Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>key : Symbol(key, Decl(sourceMapValidationDecorators.ts, 3, 64)) +>descriptor : Symbol(descriptor, Decl(sourceMapValidationDecorators.ts, 3, 86)) +>PropertyDescriptor : Symbol(PropertyDescriptor, Decl(lib.es5.d.ts, --, --)) + +declare function ParameterDecorator1(target: Object, key: string | symbol, paramIndex: number): void; +>ParameterDecorator1 : Symbol(ParameterDecorator1, Decl(sourceMapValidationDecorators.ts, 3, 128)) +>target : Symbol(target, Decl(sourceMapValidationDecorators.ts, 4, 37)) +>Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>key : Symbol(key, Decl(sourceMapValidationDecorators.ts, 4, 52)) +>paramIndex : Symbol(paramIndex, Decl(sourceMapValidationDecorators.ts, 4, 74)) + +declare function ParameterDecorator2(x: number): (target: Object, key: string | symbol, paramIndex: number) => void; +>ParameterDecorator2 : Symbol(ParameterDecorator2, Decl(sourceMapValidationDecorators.ts, 4, 101)) +>x : Symbol(x, Decl(sourceMapValidationDecorators.ts, 5, 37)) +>target : Symbol(target, Decl(sourceMapValidationDecorators.ts, 5, 50)) +>Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>key : Symbol(key, Decl(sourceMapValidationDecorators.ts, 5, 65)) +>paramIndex : Symbol(paramIndex, Decl(sourceMapValidationDecorators.ts, 5, 87)) + +@ClassDecorator1 +>ClassDecorator1 : Symbol(ClassDecorator1, Decl(sourceMapValidationDecorators.ts, 0, 0)) + +@ClassDecorator2(10) +>ClassDecorator2 : Symbol(ClassDecorator2, Decl(sourceMapValidationDecorators.ts, 0, 57)) + +class Greeter { +>Greeter : Symbol(Greeter, Decl(sourceMapValidationDecorators.ts, 5, 116)) + + constructor( + @ParameterDecorator1 +>ParameterDecorator1 : Symbol(ParameterDecorator1, Decl(sourceMapValidationDecorators.ts, 3, 128)) + + @ParameterDecorator2(20) +>ParameterDecorator2 : Symbol(ParameterDecorator2, Decl(sourceMapValidationDecorators.ts, 4, 101)) + + public greeting: string, +>greeting : Symbol(Greeter.greeting, Decl(sourceMapValidationDecorators.ts, 10, 16)) + + @ParameterDecorator1 +>ParameterDecorator1 : Symbol(ParameterDecorator1, Decl(sourceMapValidationDecorators.ts, 3, 128)) + + @ParameterDecorator2(30) +>ParameterDecorator2 : Symbol(ParameterDecorator2, Decl(sourceMapValidationDecorators.ts, 4, 101)) + + ...b: string[]) { +>b : Symbol(b, Decl(sourceMapValidationDecorators.ts, 13, 30)) + } + + @PropertyDecorator1 +>PropertyDecorator1 : Symbol(PropertyDecorator1, Decl(sourceMapValidationDecorators.ts, 1, 72)) + + @PropertyDecorator2(40) +>PropertyDecorator2 : Symbol(PropertyDecorator2, Decl(sourceMapValidationDecorators.ts, 2, 113)) + + greet() { +>greet : Symbol(Greeter.greet, Decl(sourceMapValidationDecorators.ts, 18, 5)) + + return "

" + this.greeting + "

"; +>this.greeting : Symbol(Greeter.greeting, Decl(sourceMapValidationDecorators.ts, 10, 16)) +>this : Symbol(Greeter, Decl(sourceMapValidationDecorators.ts, 5, 116)) +>greeting : Symbol(Greeter.greeting, Decl(sourceMapValidationDecorators.ts, 10, 16)) + } + + @PropertyDecorator1 +>PropertyDecorator1 : Symbol(PropertyDecorator1, Decl(sourceMapValidationDecorators.ts, 1, 72)) + + @PropertyDecorator2(50) +>PropertyDecorator2 : Symbol(PropertyDecorator2, Decl(sourceMapValidationDecorators.ts, 2, 113)) + + private x: string; +>x : Symbol(Greeter.x, Decl(sourceMapValidationDecorators.ts, 24, 5)) + + @PropertyDecorator1 +>PropertyDecorator1 : Symbol(PropertyDecorator1, Decl(sourceMapValidationDecorators.ts, 1, 72)) + + @PropertyDecorator2(60) +>PropertyDecorator2 : Symbol(PropertyDecorator2, Decl(sourceMapValidationDecorators.ts, 2, 113)) + + private static x1: number = 10; +>x1 : Symbol(Greeter.x1, Decl(sourceMapValidationDecorators.ts, 28, 22)) + + private fn( +>fn : Symbol(Greeter.fn, Decl(sourceMapValidationDecorators.ts, 32, 35)) + + @ParameterDecorator1 +>ParameterDecorator1 : Symbol(ParameterDecorator1, Decl(sourceMapValidationDecorators.ts, 3, 128)) + + @ParameterDecorator2(70) +>ParameterDecorator2 : Symbol(ParameterDecorator2, Decl(sourceMapValidationDecorators.ts, 4, 101)) + + x: number) { +>x : Symbol(x, Decl(sourceMapValidationDecorators.ts, 34, 15)) + + return this.greeting; +>this.greeting : Symbol(Greeter.greeting, Decl(sourceMapValidationDecorators.ts, 10, 16)) +>this : Symbol(Greeter, Decl(sourceMapValidationDecorators.ts, 5, 116)) +>greeting : Symbol(Greeter.greeting, Decl(sourceMapValidationDecorators.ts, 10, 16)) + } + + @PropertyDecorator1 +>PropertyDecorator1 : Symbol(PropertyDecorator1, Decl(sourceMapValidationDecorators.ts, 1, 72)) + + @PropertyDecorator2(80) +>PropertyDecorator2 : Symbol(PropertyDecorator2, Decl(sourceMapValidationDecorators.ts, 2, 113)) + + get greetings() { +>greetings : Symbol(Greeter.greetings, Decl(sourceMapValidationDecorators.ts, 39, 5), Decl(sourceMapValidationDecorators.ts, 45, 5)) + + return this.greeting; +>this.greeting : Symbol(Greeter.greeting, Decl(sourceMapValidationDecorators.ts, 10, 16)) +>this : Symbol(Greeter, Decl(sourceMapValidationDecorators.ts, 5, 116)) +>greeting : Symbol(Greeter.greeting, Decl(sourceMapValidationDecorators.ts, 10, 16)) + } + + set greetings( +>greetings : Symbol(Greeter.greetings, Decl(sourceMapValidationDecorators.ts, 39, 5), Decl(sourceMapValidationDecorators.ts, 45, 5)) + + @ParameterDecorator1 +>ParameterDecorator1 : Symbol(ParameterDecorator1, Decl(sourceMapValidationDecorators.ts, 3, 128)) + + @ParameterDecorator2(90) +>ParameterDecorator2 : Symbol(ParameterDecorator2, Decl(sourceMapValidationDecorators.ts, 4, 101)) + + greetings: string) { +>greetings : Symbol(greetings, Decl(sourceMapValidationDecorators.ts, 47, 18)) + + this.greeting = greetings; +>this.greeting : Symbol(Greeter.greeting, Decl(sourceMapValidationDecorators.ts, 10, 16)) +>this : Symbol(Greeter, Decl(sourceMapValidationDecorators.ts, 5, 116)) +>greeting : Symbol(Greeter.greeting, Decl(sourceMapValidationDecorators.ts, 10, 16)) +>greetings : Symbol(greetings, Decl(sourceMapValidationDecorators.ts, 47, 18)) + } +} diff --git a/tests/baselines/reference/sourceMapValidationDecorators(target=es5).types b/tests/baselines/reference/sourceMapValidationDecorators(target=es5).types new file mode 100644 index 0000000000000..9d156eec61d5d --- /dev/null +++ b/tests/baselines/reference/sourceMapValidationDecorators(target=es5).types @@ -0,0 +1,265 @@ +//// [tests/cases/compiler/sourceMapValidationDecorators.ts] //// + +=== sourceMapValidationDecorators.ts === +declare function ClassDecorator1(target: Function): void; +>ClassDecorator1 : (target: Function) => void +> : ^ ^^ ^^^^^ +>target : Function +> : ^^^^^^^^ + +declare function ClassDecorator2(x: number): (target: Function) => void; +>ClassDecorator2 : (x: number) => (target: Function) => void +> : ^ ^^ ^^^^^ +>x : number +> : ^^^^^^ +>target : Function +> : ^^^^^^^^ + +declare function PropertyDecorator1(target: Object, key: string | symbol, descriptor?: PropertyDescriptor): void; +>PropertyDecorator1 : (target: Object, key: string | symbol, descriptor?: PropertyDescriptor) => void +> : ^ ^^ ^^ ^^ ^^ ^^^ ^^^^^ +>target : Object +> : ^^^^^^ +>key : string | symbol +> : ^^^^^^^^^^^^^^^ +>descriptor : PropertyDescriptor +> : ^^^^^^^^^^^^^^^^^^ + +declare function PropertyDecorator2(x: number): (target: Object, key: string | symbol, descriptor?: PropertyDescriptor) => void; +>PropertyDecorator2 : (x: number) => (target: Object, key: string | symbol, descriptor?: PropertyDescriptor) => void +> : ^ ^^ ^^^^^ +>x : number +> : ^^^^^^ +>target : Object +> : ^^^^^^ +>key : string | symbol +> : ^^^^^^^^^^^^^^^ +>descriptor : PropertyDescriptor +> : ^^^^^^^^^^^^^^^^^^ + +declare function ParameterDecorator1(target: Object, key: string | symbol, paramIndex: number): void; +>ParameterDecorator1 : (target: Object, key: string | symbol, paramIndex: number) => void +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>target : Object +> : ^^^^^^ +>key : string | symbol +> : ^^^^^^^^^^^^^^^ +>paramIndex : number +> : ^^^^^^ + +declare function ParameterDecorator2(x: number): (target: Object, key: string | symbol, paramIndex: number) => void; +>ParameterDecorator2 : (x: number) => (target: Object, key: string | symbol, paramIndex: number) => void +> : ^ ^^ ^^^^^ +>x : number +> : ^^^^^^ +>target : Object +> : ^^^^^^ +>key : string | symbol +> : ^^^^^^^^^^^^^^^ +>paramIndex : number +> : ^^^^^^ + +@ClassDecorator1 +>ClassDecorator1 : (target: Function) => void +> : ^ ^^ ^^^^^ + +@ClassDecorator2(10) +>ClassDecorator2(10) : (target: Function) => void +> : ^ ^^ ^^^^^ +>ClassDecorator2 : (x: number) => (target: Function) => void +> : ^ ^^ ^^^^^ +>10 : 10 +> : ^^ + +class Greeter { +>Greeter : Greeter +> : ^^^^^^^ + + constructor( + @ParameterDecorator1 +>ParameterDecorator1 : (target: Object, key: string | symbol, paramIndex: number) => void +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^ + + @ParameterDecorator2(20) +>ParameterDecorator2(20) : (target: Object, key: string | symbol, paramIndex: number) => void +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>ParameterDecorator2 : (x: number) => (target: Object, key: string | symbol, paramIndex: number) => void +> : ^ ^^ ^^^^^ +>20 : 20 +> : ^^ + + public greeting: string, +>greeting : string +> : ^^^^^^ + + @ParameterDecorator1 +>ParameterDecorator1 : (target: Object, key: string | symbol, paramIndex: number) => void +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^ + + @ParameterDecorator2(30) +>ParameterDecorator2(30) : (target: Object, key: string | symbol, paramIndex: number) => void +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>ParameterDecorator2 : (x: number) => (target: Object, key: string | symbol, paramIndex: number) => void +> : ^ ^^ ^^^^^ +>30 : 30 +> : ^^ + + ...b: string[]) { +>b : string[] +> : ^^^^^^^^ + } + + @PropertyDecorator1 +>PropertyDecorator1 : (target: Object, key: string | symbol, descriptor?: PropertyDescriptor) => void +> : ^ ^^ ^^ ^^ ^^ ^^^ ^^^^^ + + @PropertyDecorator2(40) +>PropertyDecorator2(40) : (target: Object, key: string | symbol, descriptor?: PropertyDescriptor) => void +> : ^ ^^ ^^ ^^ ^^ ^^^ ^^^^^ +>PropertyDecorator2 : (x: number) => (target: Object, key: string | symbol, descriptor?: PropertyDescriptor) => void +> : ^ ^^ ^^^^^ +>40 : 40 +> : ^^ + + greet() { +>greet : () => string +> : ^^^^^^^^^^^^ + + return "

" + this.greeting + "

"; +>"

" + this.greeting + "

" : string +> : ^^^^^^ +>"

" + this.greeting : string +> : ^^^^^^ +>"

" : "

" +> : ^^^^^^ +>this.greeting : string +> : ^^^^^^ +>this : this +> : ^^^^ +>greeting : string +> : ^^^^^^ +>"

" : "" +> : ^^^^^^^ + } + + @PropertyDecorator1 +>PropertyDecorator1 : (target: Object, key: string | symbol, descriptor?: PropertyDescriptor) => void +> : ^ ^^ ^^ ^^ ^^ ^^^ ^^^^^ + + @PropertyDecorator2(50) +>PropertyDecorator2(50) : (target: Object, key: string | symbol, descriptor?: PropertyDescriptor) => void +> : ^ ^^ ^^ ^^ ^^ ^^^ ^^^^^ +>PropertyDecorator2 : (x: number) => (target: Object, key: string | symbol, descriptor?: PropertyDescriptor) => void +> : ^ ^^ ^^^^^ +>50 : 50 +> : ^^ + + private x: string; +>x : string +> : ^^^^^^ + + @PropertyDecorator1 +>PropertyDecorator1 : (target: Object, key: string | symbol, descriptor?: PropertyDescriptor) => void +> : ^ ^^ ^^ ^^ ^^ ^^^ ^^^^^ + + @PropertyDecorator2(60) +>PropertyDecorator2(60) : (target: Object, key: string | symbol, descriptor?: PropertyDescriptor) => void +> : ^ ^^ ^^ ^^ ^^ ^^^ ^^^^^ +>PropertyDecorator2 : (x: number) => (target: Object, key: string | symbol, descriptor?: PropertyDescriptor) => void +> : ^ ^^ ^^^^^ +>60 : 60 +> : ^^ + + private static x1: number = 10; +>x1 : number +> : ^^^^^^ +>10 : 10 +> : ^^ + + private fn( +>fn : (x: number) => string +> : ^ ^^ ^^^^^^^^^^^ + + @ParameterDecorator1 +>ParameterDecorator1 : (target: Object, key: string | symbol, paramIndex: number) => void +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^ + + @ParameterDecorator2(70) +>ParameterDecorator2(70) : (target: Object, key: string | symbol, paramIndex: number) => void +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>ParameterDecorator2 : (x: number) => (target: Object, key: string | symbol, paramIndex: number) => void +> : ^ ^^ ^^^^^ +>70 : 70 +> : ^^ + + x: number) { +>x : number +> : ^^^^^^ + + return this.greeting; +>this.greeting : string +> : ^^^^^^ +>this : this +> : ^^^^ +>greeting : string +> : ^^^^^^ + } + + @PropertyDecorator1 +>PropertyDecorator1 : (target: Object, key: string | symbol, descriptor?: PropertyDescriptor) => void +> : ^ ^^ ^^ ^^ ^^ ^^^ ^^^^^ + + @PropertyDecorator2(80) +>PropertyDecorator2(80) : (target: Object, key: string | symbol, descriptor?: PropertyDescriptor) => void +> : ^ ^^ ^^ ^^ ^^ ^^^ ^^^^^ +>PropertyDecorator2 : (x: number) => (target: Object, key: string | symbol, descriptor?: PropertyDescriptor) => void +> : ^ ^^ ^^^^^ +>80 : 80 +> : ^^ + + get greetings() { +>greetings : string +> : ^^^^^^ + + return this.greeting; +>this.greeting : string +> : ^^^^^^ +>this : this +> : ^^^^ +>greeting : string +> : ^^^^^^ + } + + set greetings( +>greetings : string +> : ^^^^^^ + + @ParameterDecorator1 +>ParameterDecorator1 : (target: Object, key: string | symbol, paramIndex: number) => void +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^ + + @ParameterDecorator2(90) +>ParameterDecorator2(90) : (target: Object, key: string | symbol, paramIndex: number) => void +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>ParameterDecorator2 : (x: number) => (target: Object, key: string | symbol, paramIndex: number) => void +> : ^ ^^ ^^^^^ +>90 : 90 +> : ^^ + + greetings: string) { +>greetings : string +> : ^^^^^^ + + this.greeting = greetings; +>this.greeting = greetings : string +> : ^^^^^^ +>this.greeting : string +> : ^^^^^^ +>this : this +> : ^^^^ +>greeting : string +> : ^^^^^^ +>greetings : string +> : ^^^^^^ + } +} diff --git a/tests/baselines/reference/staticPropertyNameConflicts(usedefineforclassfields=false).errors.txt b/tests/baselines/reference/staticPropertyNameConflicts(target=es2015,usedefineforclassfields=false).errors.txt similarity index 100% rename from tests/baselines/reference/staticPropertyNameConflicts(usedefineforclassfields=false).errors.txt rename to tests/baselines/reference/staticPropertyNameConflicts(target=es2015,usedefineforclassfields=false).errors.txt diff --git a/tests/baselines/reference/staticPropertyNameConflicts(target=es2015,usedefineforclassfields=false).js b/tests/baselines/reference/staticPropertyNameConflicts(target=es2015,usedefineforclassfields=false).js new file mode 100644 index 0000000000000..c51ce8a89b44a --- /dev/null +++ b/tests/baselines/reference/staticPropertyNameConflicts(target=es2015,usedefineforclassfields=false).js @@ -0,0 +1,621 @@ +//// [tests/cases/conformance/classes/propertyMemberDeclarations/staticPropertyNameConflicts.ts] //// + +//// [staticPropertyNameConflicts.ts] +const FunctionPropertyNames = { + name: 'name', + length: 'length', + prototype: 'prototype', + caller: 'caller', + arguments: 'arguments', +} as const; + +// name +class StaticName { + static name: number; // error without useDefineForClassFields + name: string; // ok +} + +class StaticName2 { + static [FunctionPropertyNames.name]: number; // error without useDefineForClassFields + [FunctionPropertyNames.name]: number; // ok +} + +class StaticNameFn { + static name() {} // error without useDefineForClassFields + name() {} // ok +} + +class StaticNameFn2 { + static [FunctionPropertyNames.name]() {} // error without useDefineForClassFields + [FunctionPropertyNames.name]() {} // ok +} + +// length +class StaticLength { + static length: number; // error without useDefineForClassFields + length: string; // ok +} + +class StaticLength2 { + static [FunctionPropertyNames.length]: number; // error without useDefineForClassFields + [FunctionPropertyNames.length]: number; // ok +} + +class StaticLengthFn { + static length() {} // error without useDefineForClassFields + length() {} // ok +} + +class StaticLengthFn2 { + static [FunctionPropertyNames.length]() {} // error without useDefineForClassFields + [FunctionPropertyNames.length]() {} // ok +} + +// prototype +class StaticPrototype { + static prototype: number; // always an error + prototype: string; // ok +} + +class StaticPrototype2 { + static [FunctionPropertyNames.prototype]: number; // always an error + [FunctionPropertyNames.prototype]: string; // ok +} + +class StaticPrototypeFn { + static prototype() {} // always an error + prototype() {} // ok +} + +class StaticPrototypeFn2 { + static [FunctionPropertyNames.prototype]() {} // always an error + [FunctionPropertyNames.prototype]() {} // ok +} + +// caller +class StaticCaller { + static caller: number; // error without useDefineForClassFields + caller: string; // ok +} + +class StaticCaller2 { + static [FunctionPropertyNames.caller]: number; // error without useDefineForClassFields + [FunctionPropertyNames.caller]: string; // ok +} + +class StaticCallerFn { + static caller() {} // error without useDefineForClassFields + caller() {} // ok +} + +class StaticCallerFn2 { + static [FunctionPropertyNames.caller]() {} // error without useDefineForClassFields + [FunctionPropertyNames.caller]() {} // ok +} + +// arguments +class StaticArguments { + static arguments: number; // error without useDefineForClassFields + arguments: string; // ok +} + +class StaticArguments2 { + static [FunctionPropertyNames.arguments]: number; // error without useDefineForClassFields + [FunctionPropertyNames.arguments]: string; // ok +} + +class StaticArgumentsFn { + static arguments() {} // error without useDefineForClassFields + arguments() {} // ok +} + +class StaticArgumentsFn2 { + static [FunctionPropertyNames.arguments]() {} // error without useDefineForClassFields + [FunctionPropertyNames.arguments]() {} // ok +} + + +// === Static properties on anonymous classes === + +// name +var StaticName_Anonymous = class { + static name: number; // error without useDefineForClassFields + name: string; // ok +} + +var StaticName_Anonymous2 = class { + static [FunctionPropertyNames.name]: number; // error without useDefineForClassFields + [FunctionPropertyNames.name]: string; // ok +} + +var StaticNameFn_Anonymous = class { + static name() {} // error without useDefineForClassFields + name() {} // ok +} + +var StaticNameFn_Anonymous2 = class { + static [FunctionPropertyNames.name]() {} // error without useDefineForClassFields + [FunctionPropertyNames.name]() {} // ok +} + +// length +var StaticLength_Anonymous = class { + static length: number; // error without useDefineForClassFields + length: string; // ok +} + +var StaticLength_Anonymous2 = class { + static [FunctionPropertyNames.length]: number; // error without useDefineForClassFields + [FunctionPropertyNames.length]: string; // ok +} + +var StaticLengthFn_Anonymous = class { + static length() {} // error without useDefineForClassFields + length() {} // ok +} + +var StaticLengthFn_Anonymous2 = class { + static [FunctionPropertyNames.length]() {} // error without useDefineForClassFields + [FunctionPropertyNames.length]() {} // ok +} + +// prototype +var StaticPrototype_Anonymous = class { + static prototype: number; // always an error + prototype: string; // ok +} + +var StaticPrototype_Anonymous2 = class { + static [FunctionPropertyNames.prototype]: number; // always an error + [FunctionPropertyNames.prototype]: string; // ok +} + +var StaticPrototypeFn_Anonymous = class { + static prototype() {} // always an error + prototype() {} // ok +} + +var StaticPrototypeFn_Anonymous2 = class { + static [FunctionPropertyNames.prototype]() {} // always an error + [FunctionPropertyNames.prototype]() {} // ok +} + +// caller +var StaticCaller_Anonymous = class { + static caller: number; // error without useDefineForClassFields + caller: string; // ok +} + +var StaticCaller_Anonymous2 = class { + static [FunctionPropertyNames.caller]: number; // error without useDefineForClassFields + [FunctionPropertyNames.caller]: string; // ok +} + +var StaticCallerFn_Anonymous = class { + static caller() {} // error without useDefineForClassFields + caller() {} // ok +} + +var StaticCallerFn_Anonymous2 = class { + static [FunctionPropertyNames.caller]() {} // error without useDefineForClassFields + [FunctionPropertyNames.caller]() {} // ok +} + +// arguments +var StaticArguments_Anonymous = class { + static arguments: number; // error without useDefineForClassFields + arguments: string; // ok +} + +var StaticArguments_Anonymous2 = class { + static [FunctionPropertyNames.arguments]: number; // error without useDefineForClassFields + [FunctionPropertyNames.arguments]: string; // ok +} + +var StaticArgumentsFn_Anonymous = class { + static arguments() {} // error without useDefineForClassFields + arguments() {} // ok +} + +var StaticArgumentsFn_Anonymous2 = class { + static [FunctionPropertyNames.arguments]() {} // error without useDefineForClassFields + [FunctionPropertyNames.arguments]() {} // ok +} + + +// === Static properties on default exported classes === + +// name +namespace TestOnDefaultExportedClass_1 { + class StaticName { + static name: number; // error without useDefineForClassFields + name: string; // ok + } +} + +export class ExportedStaticName { + static [FunctionPropertyNames.name]: number; // error without useDefineForClassFields + [FunctionPropertyNames.name]: string; // ok +} + +namespace TestOnDefaultExportedClass_2 { + class StaticNameFn { + static name() {} // error without useDefineForClassFields + name() {} // ok + } +} + +export class ExportedStaticNameFn { + static [FunctionPropertyNames.name]() {} // error without useDefineForClassFields + [FunctionPropertyNames.name]() {} // ok +} + +// length +namespace TestOnDefaultExportedClass_3 { + export default class StaticLength { + static length: number; // error without useDefineForClassFields + length: string; // ok + } +} + +export class ExportedStaticLength { + static [FunctionPropertyNames.length]: number; // error without useDefineForClassFields + [FunctionPropertyNames.length]: string; // ok +} + +namespace TestOnDefaultExportedClass_4 { + export default class StaticLengthFn { + static length() {} // error without useDefineForClassFields + length() {} // ok + } +} + +export class ExportedStaticLengthFn { + static [FunctionPropertyNames.length]() {} // error without useDefineForClassFields + [FunctionPropertyNames.length]() {} // ok +} + +// prototype +namespace TestOnDefaultExportedClass_5 { + export default class StaticPrototype { + static prototype: number; // always an error + prototype: string; // ok + } +} + +export class ExportedStaticPrototype { + static [FunctionPropertyNames.prototype]: number; // always an error + [FunctionPropertyNames.prototype]: string; // ok +} + +namespace TestOnDefaultExportedClass_6 { + export default class StaticPrototypeFn { + static prototype() {} // always an error + prototype() {} // ok + } +} + +export class ExportedStaticPrototypeFn { + static [FunctionPropertyNames.prototype]() {} // always an error + [FunctionPropertyNames.prototype]() {} // ok +} + +// caller +namespace TestOnDefaultExportedClass_7 { + export default class StaticCaller { + static caller: number; // error without useDefineForClassFields + caller: string; // ok + } +} + +export class ExportedStaticCaller { + static [FunctionPropertyNames.caller]: number; // error without useDefineForClassFields + [FunctionPropertyNames.caller]: string; // ok +} + +namespace TestOnDefaultExportedClass_8 { + export default class StaticCallerFn { + static caller() {} // error without useDefineForClassFields + caller() {} // ok + } +} + +export class ExportedStaticCallerFn { + static [FunctionPropertyNames.caller]() {} // error without useDefineForClassFields + [FunctionPropertyNames.caller]() {} // ok +} + +// arguments +namespace TestOnDefaultExportedClass_9 { + export default class StaticArguments { + static arguments: number; // error without useDefineForClassFields + arguments: string; // ok + } +} + +export class ExportedStaticArguments { + static [FunctionPropertyNames.arguments]: number; // error without useDefineForClassFields + [FunctionPropertyNames.arguments]: string; // ok +} + +namespace TestOnDefaultExportedClass_10 { + export default class StaticArgumentsFn { + static arguments() {} // error without useDefineForClassFields + arguments() {} // ok + } +} + +export class ExportedStaticArgumentsFn { + static [FunctionPropertyNames.arguments]() {} // error without useDefineForClassFields + [FunctionPropertyNames.arguments]() {} // ok +} + +//// [staticPropertyNameConflicts.js] +var _a, _b, _c, _d, _e; +const FunctionPropertyNames = { + name: 'name', + length: 'length', + prototype: 'prototype', + caller: 'caller', + arguments: 'arguments', +}; +// name +class StaticName { +} +class StaticName2 { +} +FunctionPropertyNames.name, FunctionPropertyNames.name; +class StaticNameFn { + static name() { } // error without useDefineForClassFields + name() { } // ok +} +class StaticNameFn2 { + static [FunctionPropertyNames.name]() { } // error without useDefineForClassFields + [FunctionPropertyNames.name]() { } // ok +} +// length +class StaticLength { +} +class StaticLength2 { +} +FunctionPropertyNames.length, FunctionPropertyNames.length; +class StaticLengthFn { + static length() { } // error without useDefineForClassFields + length() { } // ok +} +class StaticLengthFn2 { + static [FunctionPropertyNames.length]() { } // error without useDefineForClassFields + [FunctionPropertyNames.length]() { } // ok +} +// prototype +class StaticPrototype { +} +class StaticPrototype2 { +} +FunctionPropertyNames.prototype, FunctionPropertyNames.prototype; +class StaticPrototypeFn { + static prototype() { } // always an error + prototype() { } // ok +} +class StaticPrototypeFn2 { + static [FunctionPropertyNames.prototype]() { } // always an error + [FunctionPropertyNames.prototype]() { } // ok +} +// caller +class StaticCaller { +} +class StaticCaller2 { +} +FunctionPropertyNames.caller, FunctionPropertyNames.caller; +class StaticCallerFn { + static caller() { } // error without useDefineForClassFields + caller() { } // ok +} +class StaticCallerFn2 { + static [FunctionPropertyNames.caller]() { } // error without useDefineForClassFields + [FunctionPropertyNames.caller]() { } // ok +} +// arguments +class StaticArguments { +} +class StaticArguments2 { +} +FunctionPropertyNames.arguments, FunctionPropertyNames.arguments; +class StaticArgumentsFn { + static arguments() { } // error without useDefineForClassFields + arguments() { } // ok +} +class StaticArgumentsFn2 { + static [FunctionPropertyNames.arguments]() { } // error without useDefineForClassFields + [FunctionPropertyNames.arguments]() { } // ok +} +// === Static properties on anonymous classes === +// name +var StaticName_Anonymous = class { +}; +var StaticName_Anonymous2 = (_a = class { + }, + FunctionPropertyNames.name, + FunctionPropertyNames.name, + _a); +var StaticNameFn_Anonymous = class { + static name() { } // error without useDefineForClassFields + name() { } // ok +}; +var StaticNameFn_Anonymous2 = class { + static [FunctionPropertyNames.name]() { } // error without useDefineForClassFields + [FunctionPropertyNames.name]() { } // ok +}; +// length +var StaticLength_Anonymous = class { +}; +var StaticLength_Anonymous2 = (_b = class { + }, + FunctionPropertyNames.length, + FunctionPropertyNames.length, + _b); +var StaticLengthFn_Anonymous = class { + static length() { } // error without useDefineForClassFields + length() { } // ok +}; +var StaticLengthFn_Anonymous2 = class { + static [FunctionPropertyNames.length]() { } // error without useDefineForClassFields + [FunctionPropertyNames.length]() { } // ok +}; +// prototype +var StaticPrototype_Anonymous = class { +}; +var StaticPrototype_Anonymous2 = (_c = class { + }, + FunctionPropertyNames.prototype, + FunctionPropertyNames.prototype, + _c); +var StaticPrototypeFn_Anonymous = class { + static prototype() { } // always an error + prototype() { } // ok +}; +var StaticPrototypeFn_Anonymous2 = class { + static [FunctionPropertyNames.prototype]() { } // always an error + [FunctionPropertyNames.prototype]() { } // ok +}; +// caller +var StaticCaller_Anonymous = class { +}; +var StaticCaller_Anonymous2 = (_d = class { + }, + FunctionPropertyNames.caller, + FunctionPropertyNames.caller, + _d); +var StaticCallerFn_Anonymous = class { + static caller() { } // error without useDefineForClassFields + caller() { } // ok +}; +var StaticCallerFn_Anonymous2 = class { + static [FunctionPropertyNames.caller]() { } // error without useDefineForClassFields + [FunctionPropertyNames.caller]() { } // ok +}; +// arguments +var StaticArguments_Anonymous = class { +}; +var StaticArguments_Anonymous2 = (_e = class { + }, + FunctionPropertyNames.arguments, + FunctionPropertyNames.arguments, + _e); +var StaticArgumentsFn_Anonymous = class { + static arguments() { } // error without useDefineForClassFields + arguments() { } // ok +}; +var StaticArgumentsFn_Anonymous2 = class { + static [FunctionPropertyNames.arguments]() { } // error without useDefineForClassFields + [FunctionPropertyNames.arguments]() { } // ok +}; +// === Static properties on default exported classes === +// name +var TestOnDefaultExportedClass_1; +(function (TestOnDefaultExportedClass_1) { + class StaticName { + } +})(TestOnDefaultExportedClass_1 || (TestOnDefaultExportedClass_1 = {})); +export class ExportedStaticName { +} +FunctionPropertyNames.name, FunctionPropertyNames.name; +var TestOnDefaultExportedClass_2; +(function (TestOnDefaultExportedClass_2) { + class StaticNameFn { + static name() { } // error without useDefineForClassFields + name() { } // ok + } +})(TestOnDefaultExportedClass_2 || (TestOnDefaultExportedClass_2 = {})); +export class ExportedStaticNameFn { + static [FunctionPropertyNames.name]() { } // error without useDefineForClassFields + [FunctionPropertyNames.name]() { } // ok +} +// length +var TestOnDefaultExportedClass_3; +(function (TestOnDefaultExportedClass_3) { + class StaticLength { + } + TestOnDefaultExportedClass_3.StaticLength = StaticLength; +})(TestOnDefaultExportedClass_3 || (TestOnDefaultExportedClass_3 = {})); +export class ExportedStaticLength { +} +FunctionPropertyNames.length, FunctionPropertyNames.length; +var TestOnDefaultExportedClass_4; +(function (TestOnDefaultExportedClass_4) { + class StaticLengthFn { + static length() { } // error without useDefineForClassFields + length() { } // ok + } + TestOnDefaultExportedClass_4.StaticLengthFn = StaticLengthFn; +})(TestOnDefaultExportedClass_4 || (TestOnDefaultExportedClass_4 = {})); +export class ExportedStaticLengthFn { + static [FunctionPropertyNames.length]() { } // error without useDefineForClassFields + [FunctionPropertyNames.length]() { } // ok +} +// prototype +var TestOnDefaultExportedClass_5; +(function (TestOnDefaultExportedClass_5) { + class StaticPrototype { + } + TestOnDefaultExportedClass_5.StaticPrototype = StaticPrototype; +})(TestOnDefaultExportedClass_5 || (TestOnDefaultExportedClass_5 = {})); +export class ExportedStaticPrototype { +} +FunctionPropertyNames.prototype, FunctionPropertyNames.prototype; +var TestOnDefaultExportedClass_6; +(function (TestOnDefaultExportedClass_6) { + class StaticPrototypeFn { + static prototype() { } // always an error + prototype() { } // ok + } + TestOnDefaultExportedClass_6.StaticPrototypeFn = StaticPrototypeFn; +})(TestOnDefaultExportedClass_6 || (TestOnDefaultExportedClass_6 = {})); +export class ExportedStaticPrototypeFn { + static [FunctionPropertyNames.prototype]() { } // always an error + [FunctionPropertyNames.prototype]() { } // ok +} +// caller +var TestOnDefaultExportedClass_7; +(function (TestOnDefaultExportedClass_7) { + class StaticCaller { + } + TestOnDefaultExportedClass_7.StaticCaller = StaticCaller; +})(TestOnDefaultExportedClass_7 || (TestOnDefaultExportedClass_7 = {})); +export class ExportedStaticCaller { +} +FunctionPropertyNames.caller, FunctionPropertyNames.caller; +var TestOnDefaultExportedClass_8; +(function (TestOnDefaultExportedClass_8) { + class StaticCallerFn { + static caller() { } // error without useDefineForClassFields + caller() { } // ok + } + TestOnDefaultExportedClass_8.StaticCallerFn = StaticCallerFn; +})(TestOnDefaultExportedClass_8 || (TestOnDefaultExportedClass_8 = {})); +export class ExportedStaticCallerFn { + static [FunctionPropertyNames.caller]() { } // error without useDefineForClassFields + [FunctionPropertyNames.caller]() { } // ok +} +// arguments +var TestOnDefaultExportedClass_9; +(function (TestOnDefaultExportedClass_9) { + class StaticArguments { + } + TestOnDefaultExportedClass_9.StaticArguments = StaticArguments; +})(TestOnDefaultExportedClass_9 || (TestOnDefaultExportedClass_9 = {})); +export class ExportedStaticArguments { +} +FunctionPropertyNames.arguments, FunctionPropertyNames.arguments; +var TestOnDefaultExportedClass_10; +(function (TestOnDefaultExportedClass_10) { + class StaticArgumentsFn { + static arguments() { } // error without useDefineForClassFields + arguments() { } // ok + } + TestOnDefaultExportedClass_10.StaticArgumentsFn = StaticArgumentsFn; +})(TestOnDefaultExportedClass_10 || (TestOnDefaultExportedClass_10 = {})); +export class ExportedStaticArgumentsFn { + static [FunctionPropertyNames.arguments]() { } // error without useDefineForClassFields + [FunctionPropertyNames.arguments]() { } // ok +} diff --git a/tests/baselines/reference/staticPropertyNameConflicts(usedefineforclassfields=false).symbols b/tests/baselines/reference/staticPropertyNameConflicts(target=es2015,usedefineforclassfields=false).symbols similarity index 100% rename from tests/baselines/reference/staticPropertyNameConflicts(usedefineforclassfields=false).symbols rename to tests/baselines/reference/staticPropertyNameConflicts(target=es2015,usedefineforclassfields=false).symbols diff --git a/tests/baselines/reference/staticPropertyNameConflicts(usedefineforclassfields=false).types b/tests/baselines/reference/staticPropertyNameConflicts(target=es2015,usedefineforclassfields=false).types similarity index 100% rename from tests/baselines/reference/staticPropertyNameConflicts(usedefineforclassfields=false).types rename to tests/baselines/reference/staticPropertyNameConflicts(target=es2015,usedefineforclassfields=false).types diff --git a/tests/baselines/reference/staticPropertyNameConflicts(usedefineforclassfields=true).errors.txt b/tests/baselines/reference/staticPropertyNameConflicts(target=es2015,usedefineforclassfields=true).errors.txt similarity index 100% rename from tests/baselines/reference/staticPropertyNameConflicts(usedefineforclassfields=true).errors.txt rename to tests/baselines/reference/staticPropertyNameConflicts(target=es2015,usedefineforclassfields=true).errors.txt diff --git a/tests/baselines/reference/staticPropertyNameConflicts(target=es2015,usedefineforclassfields=true).js b/tests/baselines/reference/staticPropertyNameConflicts(target=es2015,usedefineforclassfields=true).js new file mode 100644 index 0000000000000..95b6cbca6a6cc --- /dev/null +++ b/tests/baselines/reference/staticPropertyNameConflicts(target=es2015,usedefineforclassfields=true).js @@ -0,0 +1,861 @@ +//// [tests/cases/conformance/classes/propertyMemberDeclarations/staticPropertyNameConflicts.ts] //// + +//// [staticPropertyNameConflicts.ts] +const FunctionPropertyNames = { + name: 'name', + length: 'length', + prototype: 'prototype', + caller: 'caller', + arguments: 'arguments', +} as const; + +// name +class StaticName { + static name: number; // error without useDefineForClassFields + name: string; // ok +} + +class StaticName2 { + static [FunctionPropertyNames.name]: number; // error without useDefineForClassFields + [FunctionPropertyNames.name]: number; // ok +} + +class StaticNameFn { + static name() {} // error without useDefineForClassFields + name() {} // ok +} + +class StaticNameFn2 { + static [FunctionPropertyNames.name]() {} // error without useDefineForClassFields + [FunctionPropertyNames.name]() {} // ok +} + +// length +class StaticLength { + static length: number; // error without useDefineForClassFields + length: string; // ok +} + +class StaticLength2 { + static [FunctionPropertyNames.length]: number; // error without useDefineForClassFields + [FunctionPropertyNames.length]: number; // ok +} + +class StaticLengthFn { + static length() {} // error without useDefineForClassFields + length() {} // ok +} + +class StaticLengthFn2 { + static [FunctionPropertyNames.length]() {} // error without useDefineForClassFields + [FunctionPropertyNames.length]() {} // ok +} + +// prototype +class StaticPrototype { + static prototype: number; // always an error + prototype: string; // ok +} + +class StaticPrototype2 { + static [FunctionPropertyNames.prototype]: number; // always an error + [FunctionPropertyNames.prototype]: string; // ok +} + +class StaticPrototypeFn { + static prototype() {} // always an error + prototype() {} // ok +} + +class StaticPrototypeFn2 { + static [FunctionPropertyNames.prototype]() {} // always an error + [FunctionPropertyNames.prototype]() {} // ok +} + +// caller +class StaticCaller { + static caller: number; // error without useDefineForClassFields + caller: string; // ok +} + +class StaticCaller2 { + static [FunctionPropertyNames.caller]: number; // error without useDefineForClassFields + [FunctionPropertyNames.caller]: string; // ok +} + +class StaticCallerFn { + static caller() {} // error without useDefineForClassFields + caller() {} // ok +} + +class StaticCallerFn2 { + static [FunctionPropertyNames.caller]() {} // error without useDefineForClassFields + [FunctionPropertyNames.caller]() {} // ok +} + +// arguments +class StaticArguments { + static arguments: number; // error without useDefineForClassFields + arguments: string; // ok +} + +class StaticArguments2 { + static [FunctionPropertyNames.arguments]: number; // error without useDefineForClassFields + [FunctionPropertyNames.arguments]: string; // ok +} + +class StaticArgumentsFn { + static arguments() {} // error without useDefineForClassFields + arguments() {} // ok +} + +class StaticArgumentsFn2 { + static [FunctionPropertyNames.arguments]() {} // error without useDefineForClassFields + [FunctionPropertyNames.arguments]() {} // ok +} + + +// === Static properties on anonymous classes === + +// name +var StaticName_Anonymous = class { + static name: number; // error without useDefineForClassFields + name: string; // ok +} + +var StaticName_Anonymous2 = class { + static [FunctionPropertyNames.name]: number; // error without useDefineForClassFields + [FunctionPropertyNames.name]: string; // ok +} + +var StaticNameFn_Anonymous = class { + static name() {} // error without useDefineForClassFields + name() {} // ok +} + +var StaticNameFn_Anonymous2 = class { + static [FunctionPropertyNames.name]() {} // error without useDefineForClassFields + [FunctionPropertyNames.name]() {} // ok +} + +// length +var StaticLength_Anonymous = class { + static length: number; // error without useDefineForClassFields + length: string; // ok +} + +var StaticLength_Anonymous2 = class { + static [FunctionPropertyNames.length]: number; // error without useDefineForClassFields + [FunctionPropertyNames.length]: string; // ok +} + +var StaticLengthFn_Anonymous = class { + static length() {} // error without useDefineForClassFields + length() {} // ok +} + +var StaticLengthFn_Anonymous2 = class { + static [FunctionPropertyNames.length]() {} // error without useDefineForClassFields + [FunctionPropertyNames.length]() {} // ok +} + +// prototype +var StaticPrototype_Anonymous = class { + static prototype: number; // always an error + prototype: string; // ok +} + +var StaticPrototype_Anonymous2 = class { + static [FunctionPropertyNames.prototype]: number; // always an error + [FunctionPropertyNames.prototype]: string; // ok +} + +var StaticPrototypeFn_Anonymous = class { + static prototype() {} // always an error + prototype() {} // ok +} + +var StaticPrototypeFn_Anonymous2 = class { + static [FunctionPropertyNames.prototype]() {} // always an error + [FunctionPropertyNames.prototype]() {} // ok +} + +// caller +var StaticCaller_Anonymous = class { + static caller: number; // error without useDefineForClassFields + caller: string; // ok +} + +var StaticCaller_Anonymous2 = class { + static [FunctionPropertyNames.caller]: number; // error without useDefineForClassFields + [FunctionPropertyNames.caller]: string; // ok +} + +var StaticCallerFn_Anonymous = class { + static caller() {} // error without useDefineForClassFields + caller() {} // ok +} + +var StaticCallerFn_Anonymous2 = class { + static [FunctionPropertyNames.caller]() {} // error without useDefineForClassFields + [FunctionPropertyNames.caller]() {} // ok +} + +// arguments +var StaticArguments_Anonymous = class { + static arguments: number; // error without useDefineForClassFields + arguments: string; // ok +} + +var StaticArguments_Anonymous2 = class { + static [FunctionPropertyNames.arguments]: number; // error without useDefineForClassFields + [FunctionPropertyNames.arguments]: string; // ok +} + +var StaticArgumentsFn_Anonymous = class { + static arguments() {} // error without useDefineForClassFields + arguments() {} // ok +} + +var StaticArgumentsFn_Anonymous2 = class { + static [FunctionPropertyNames.arguments]() {} // error without useDefineForClassFields + [FunctionPropertyNames.arguments]() {} // ok +} + + +// === Static properties on default exported classes === + +// name +namespace TestOnDefaultExportedClass_1 { + class StaticName { + static name: number; // error without useDefineForClassFields + name: string; // ok + } +} + +export class ExportedStaticName { + static [FunctionPropertyNames.name]: number; // error without useDefineForClassFields + [FunctionPropertyNames.name]: string; // ok +} + +namespace TestOnDefaultExportedClass_2 { + class StaticNameFn { + static name() {} // error without useDefineForClassFields + name() {} // ok + } +} + +export class ExportedStaticNameFn { + static [FunctionPropertyNames.name]() {} // error without useDefineForClassFields + [FunctionPropertyNames.name]() {} // ok +} + +// length +namespace TestOnDefaultExportedClass_3 { + export default class StaticLength { + static length: number; // error without useDefineForClassFields + length: string; // ok + } +} + +export class ExportedStaticLength { + static [FunctionPropertyNames.length]: number; // error without useDefineForClassFields + [FunctionPropertyNames.length]: string; // ok +} + +namespace TestOnDefaultExportedClass_4 { + export default class StaticLengthFn { + static length() {} // error without useDefineForClassFields + length() {} // ok + } +} + +export class ExportedStaticLengthFn { + static [FunctionPropertyNames.length]() {} // error without useDefineForClassFields + [FunctionPropertyNames.length]() {} // ok +} + +// prototype +namespace TestOnDefaultExportedClass_5 { + export default class StaticPrototype { + static prototype: number; // always an error + prototype: string; // ok + } +} + +export class ExportedStaticPrototype { + static [FunctionPropertyNames.prototype]: number; // always an error + [FunctionPropertyNames.prototype]: string; // ok +} + +namespace TestOnDefaultExportedClass_6 { + export default class StaticPrototypeFn { + static prototype() {} // always an error + prototype() {} // ok + } +} + +export class ExportedStaticPrototypeFn { + static [FunctionPropertyNames.prototype]() {} // always an error + [FunctionPropertyNames.prototype]() {} // ok +} + +// caller +namespace TestOnDefaultExportedClass_7 { + export default class StaticCaller { + static caller: number; // error without useDefineForClassFields + caller: string; // ok + } +} + +export class ExportedStaticCaller { + static [FunctionPropertyNames.caller]: number; // error without useDefineForClassFields + [FunctionPropertyNames.caller]: string; // ok +} + +namespace TestOnDefaultExportedClass_8 { + export default class StaticCallerFn { + static caller() {} // error without useDefineForClassFields + caller() {} // ok + } +} + +export class ExportedStaticCallerFn { + static [FunctionPropertyNames.caller]() {} // error without useDefineForClassFields + [FunctionPropertyNames.caller]() {} // ok +} + +// arguments +namespace TestOnDefaultExportedClass_9 { + export default class StaticArguments { + static arguments: number; // error without useDefineForClassFields + arguments: string; // ok + } +} + +export class ExportedStaticArguments { + static [FunctionPropertyNames.arguments]: number; // error without useDefineForClassFields + [FunctionPropertyNames.arguments]: string; // ok +} + +namespace TestOnDefaultExportedClass_10 { + export default class StaticArgumentsFn { + static arguments() {} // error without useDefineForClassFields + arguments() {} // ok + } +} + +export class ExportedStaticArgumentsFn { + static [FunctionPropertyNames.arguments]() {} // error without useDefineForClassFields + [FunctionPropertyNames.arguments]() {} // ok +} + +//// [staticPropertyNameConflicts.js] +var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10; +const FunctionPropertyNames = { + name: 'name', + length: 'length', + prototype: 'prototype', + caller: 'caller', + arguments: 'arguments', +}; +// name +class StaticName { + constructor() { + Object.defineProperty(this, "name", { + enumerable: true, + configurable: true, + writable: true, + value: void 0 + }); // ok + } +} +class StaticName2 { + constructor() { + Object.defineProperty(this, _b, { + enumerable: true, + configurable: true, + writable: true, + value: void 0 + }); // ok + } +} +_a = FunctionPropertyNames.name, _b = FunctionPropertyNames.name; +class StaticNameFn { + static name() { } // error without useDefineForClassFields + name() { } // ok +} +class StaticNameFn2 { + static [FunctionPropertyNames.name]() { } // error without useDefineForClassFields + [FunctionPropertyNames.name]() { } // ok +} +// length +class StaticLength { + constructor() { + Object.defineProperty(this, "length", { + enumerable: true, + configurable: true, + writable: true, + value: void 0 + }); // ok + } +} +class StaticLength2 { + constructor() { + Object.defineProperty(this, _d, { + enumerable: true, + configurable: true, + writable: true, + value: void 0 + }); // ok + } +} +_c = FunctionPropertyNames.length, _d = FunctionPropertyNames.length; +class StaticLengthFn { + static length() { } // error without useDefineForClassFields + length() { } // ok +} +class StaticLengthFn2 { + static [FunctionPropertyNames.length]() { } // error without useDefineForClassFields + [FunctionPropertyNames.length]() { } // ok +} +// prototype +class StaticPrototype { + constructor() { + Object.defineProperty(this, "prototype", { + enumerable: true, + configurable: true, + writable: true, + value: void 0 + }); // ok + } +} +class StaticPrototype2 { + constructor() { + Object.defineProperty(this, _f, { + enumerable: true, + configurable: true, + writable: true, + value: void 0 + }); // ok + } +} +_e = FunctionPropertyNames.prototype, _f = FunctionPropertyNames.prototype; +class StaticPrototypeFn { + static prototype() { } // always an error + prototype() { } // ok +} +class StaticPrototypeFn2 { + static [FunctionPropertyNames.prototype]() { } // always an error + [FunctionPropertyNames.prototype]() { } // ok +} +// caller +class StaticCaller { + constructor() { + Object.defineProperty(this, "caller", { + enumerable: true, + configurable: true, + writable: true, + value: void 0 + }); // ok + } +} +class StaticCaller2 { + constructor() { + Object.defineProperty(this, _h, { + enumerable: true, + configurable: true, + writable: true, + value: void 0 + }); // ok + } +} +_g = FunctionPropertyNames.caller, _h = FunctionPropertyNames.caller; +class StaticCallerFn { + static caller() { } // error without useDefineForClassFields + caller() { } // ok +} +class StaticCallerFn2 { + static [FunctionPropertyNames.caller]() { } // error without useDefineForClassFields + [FunctionPropertyNames.caller]() { } // ok +} +// arguments +class StaticArguments { + constructor() { + Object.defineProperty(this, "arguments", { + enumerable: true, + configurable: true, + writable: true, + value: void 0 + }); // ok + } +} +class StaticArguments2 { + constructor() { + Object.defineProperty(this, _k, { + enumerable: true, + configurable: true, + writable: true, + value: void 0 + }); // ok + } +} +_j = FunctionPropertyNames.arguments, _k = FunctionPropertyNames.arguments; +class StaticArgumentsFn { + static arguments() { } // error without useDefineForClassFields + arguments() { } // ok +} +class StaticArgumentsFn2 { + static [FunctionPropertyNames.arguments]() { } // error without useDefineForClassFields + [FunctionPropertyNames.arguments]() { } // ok +} +// === Static properties on anonymous classes === +// name +var StaticName_Anonymous = class { + constructor() { + Object.defineProperty(this, "name", { + enumerable: true, + configurable: true, + writable: true, + value: void 0 + }); // ok + } +}; +var StaticName_Anonymous2 = (_o = class { + constructor() { + Object.defineProperty(this, _m, { + enumerable: true, + configurable: true, + writable: true, + value: void 0 + }); // ok + } + }, + _l = FunctionPropertyNames.name, + _m = FunctionPropertyNames.name, + _o); +var StaticNameFn_Anonymous = class { + static name() { } // error without useDefineForClassFields + name() { } // ok +}; +var StaticNameFn_Anonymous2 = class { + static [FunctionPropertyNames.name]() { } // error without useDefineForClassFields + [FunctionPropertyNames.name]() { } // ok +}; +// length +var StaticLength_Anonymous = class { + constructor() { + Object.defineProperty(this, "length", { + enumerable: true, + configurable: true, + writable: true, + value: void 0 + }); // ok + } +}; +var StaticLength_Anonymous2 = (_r = class { + constructor() { + Object.defineProperty(this, _q, { + enumerable: true, + configurable: true, + writable: true, + value: void 0 + }); // ok + } + }, + _p = FunctionPropertyNames.length, + _q = FunctionPropertyNames.length, + _r); +var StaticLengthFn_Anonymous = class { + static length() { } // error without useDefineForClassFields + length() { } // ok +}; +var StaticLengthFn_Anonymous2 = class { + static [FunctionPropertyNames.length]() { } // error without useDefineForClassFields + [FunctionPropertyNames.length]() { } // ok +}; +// prototype +var StaticPrototype_Anonymous = class { + constructor() { + Object.defineProperty(this, "prototype", { + enumerable: true, + configurable: true, + writable: true, + value: void 0 + }); // ok + } +}; +var StaticPrototype_Anonymous2 = (_u = class { + constructor() { + Object.defineProperty(this, _t, { + enumerable: true, + configurable: true, + writable: true, + value: void 0 + }); // ok + } + }, + _s = FunctionPropertyNames.prototype, + _t = FunctionPropertyNames.prototype, + _u); +var StaticPrototypeFn_Anonymous = class { + static prototype() { } // always an error + prototype() { } // ok +}; +var StaticPrototypeFn_Anonymous2 = class { + static [FunctionPropertyNames.prototype]() { } // always an error + [FunctionPropertyNames.prototype]() { } // ok +}; +// caller +var StaticCaller_Anonymous = class { + constructor() { + Object.defineProperty(this, "caller", { + enumerable: true, + configurable: true, + writable: true, + value: void 0 + }); // ok + } +}; +var StaticCaller_Anonymous2 = (_x = class { + constructor() { + Object.defineProperty(this, _w, { + enumerable: true, + configurable: true, + writable: true, + value: void 0 + }); // ok + } + }, + _v = FunctionPropertyNames.caller, + _w = FunctionPropertyNames.caller, + _x); +var StaticCallerFn_Anonymous = class { + static caller() { } // error without useDefineForClassFields + caller() { } // ok +}; +var StaticCallerFn_Anonymous2 = class { + static [FunctionPropertyNames.caller]() { } // error without useDefineForClassFields + [FunctionPropertyNames.caller]() { } // ok +}; +// arguments +var StaticArguments_Anonymous = class { + constructor() { + Object.defineProperty(this, "arguments", { + enumerable: true, + configurable: true, + writable: true, + value: void 0 + }); // ok + } +}; +var StaticArguments_Anonymous2 = (_0 = class { + constructor() { + Object.defineProperty(this, _z, { + enumerable: true, + configurable: true, + writable: true, + value: void 0 + }); // ok + } + }, + _y = FunctionPropertyNames.arguments, + _z = FunctionPropertyNames.arguments, + _0); +var StaticArgumentsFn_Anonymous = class { + static arguments() { } // error without useDefineForClassFields + arguments() { } // ok +}; +var StaticArgumentsFn_Anonymous2 = class { + static [FunctionPropertyNames.arguments]() { } // error without useDefineForClassFields + [FunctionPropertyNames.arguments]() { } // ok +}; +// === Static properties on default exported classes === +// name +var TestOnDefaultExportedClass_1; +(function (TestOnDefaultExportedClass_1) { + class StaticName { + constructor() { + Object.defineProperty(this, "name", { + enumerable: true, + configurable: true, + writable: true, + value: void 0 + }); // ok + } + } +})(TestOnDefaultExportedClass_1 || (TestOnDefaultExportedClass_1 = {})); +export class ExportedStaticName { + constructor() { + Object.defineProperty(this, _2, { + enumerable: true, + configurable: true, + writable: true, + value: void 0 + }); // ok + } +} +_1 = FunctionPropertyNames.name, _2 = FunctionPropertyNames.name; +var TestOnDefaultExportedClass_2; +(function (TestOnDefaultExportedClass_2) { + class StaticNameFn { + static name() { } // error without useDefineForClassFields + name() { } // ok + } +})(TestOnDefaultExportedClass_2 || (TestOnDefaultExportedClass_2 = {})); +export class ExportedStaticNameFn { + static [FunctionPropertyNames.name]() { } // error without useDefineForClassFields + [FunctionPropertyNames.name]() { } // ok +} +// length +var TestOnDefaultExportedClass_3; +(function (TestOnDefaultExportedClass_3) { + class StaticLength { + constructor() { + Object.defineProperty(this, "length", { + enumerable: true, + configurable: true, + writable: true, + value: void 0 + }); // ok + } + } + TestOnDefaultExportedClass_3.StaticLength = StaticLength; +})(TestOnDefaultExportedClass_3 || (TestOnDefaultExportedClass_3 = {})); +export class ExportedStaticLength { + constructor() { + Object.defineProperty(this, _4, { + enumerable: true, + configurable: true, + writable: true, + value: void 0 + }); // ok + } +} +_3 = FunctionPropertyNames.length, _4 = FunctionPropertyNames.length; +var TestOnDefaultExportedClass_4; +(function (TestOnDefaultExportedClass_4) { + class StaticLengthFn { + static length() { } // error without useDefineForClassFields + length() { } // ok + } + TestOnDefaultExportedClass_4.StaticLengthFn = StaticLengthFn; +})(TestOnDefaultExportedClass_4 || (TestOnDefaultExportedClass_4 = {})); +export class ExportedStaticLengthFn { + static [FunctionPropertyNames.length]() { } // error without useDefineForClassFields + [FunctionPropertyNames.length]() { } // ok +} +// prototype +var TestOnDefaultExportedClass_5; +(function (TestOnDefaultExportedClass_5) { + class StaticPrototype { + constructor() { + Object.defineProperty(this, "prototype", { + enumerable: true, + configurable: true, + writable: true, + value: void 0 + }); // ok + } + } + TestOnDefaultExportedClass_5.StaticPrototype = StaticPrototype; +})(TestOnDefaultExportedClass_5 || (TestOnDefaultExportedClass_5 = {})); +export class ExportedStaticPrototype { + constructor() { + Object.defineProperty(this, _6, { + enumerable: true, + configurable: true, + writable: true, + value: void 0 + }); // ok + } +} +_5 = FunctionPropertyNames.prototype, _6 = FunctionPropertyNames.prototype; +var TestOnDefaultExportedClass_6; +(function (TestOnDefaultExportedClass_6) { + class StaticPrototypeFn { + static prototype() { } // always an error + prototype() { } // ok + } + TestOnDefaultExportedClass_6.StaticPrototypeFn = StaticPrototypeFn; +})(TestOnDefaultExportedClass_6 || (TestOnDefaultExportedClass_6 = {})); +export class ExportedStaticPrototypeFn { + static [FunctionPropertyNames.prototype]() { } // always an error + [FunctionPropertyNames.prototype]() { } // ok +} +// caller +var TestOnDefaultExportedClass_7; +(function (TestOnDefaultExportedClass_7) { + class StaticCaller { + constructor() { + Object.defineProperty(this, "caller", { + enumerable: true, + configurable: true, + writable: true, + value: void 0 + }); // ok + } + } + TestOnDefaultExportedClass_7.StaticCaller = StaticCaller; +})(TestOnDefaultExportedClass_7 || (TestOnDefaultExportedClass_7 = {})); +export class ExportedStaticCaller { + constructor() { + Object.defineProperty(this, _8, { + enumerable: true, + configurable: true, + writable: true, + value: void 0 + }); // ok + } +} +_7 = FunctionPropertyNames.caller, _8 = FunctionPropertyNames.caller; +var TestOnDefaultExportedClass_8; +(function (TestOnDefaultExportedClass_8) { + class StaticCallerFn { + static caller() { } // error without useDefineForClassFields + caller() { } // ok + } + TestOnDefaultExportedClass_8.StaticCallerFn = StaticCallerFn; +})(TestOnDefaultExportedClass_8 || (TestOnDefaultExportedClass_8 = {})); +export class ExportedStaticCallerFn { + static [FunctionPropertyNames.caller]() { } // error without useDefineForClassFields + [FunctionPropertyNames.caller]() { } // ok +} +// arguments +var TestOnDefaultExportedClass_9; +(function (TestOnDefaultExportedClass_9) { + class StaticArguments { + constructor() { + Object.defineProperty(this, "arguments", { + enumerable: true, + configurable: true, + writable: true, + value: void 0 + }); // ok + } + } + TestOnDefaultExportedClass_9.StaticArguments = StaticArguments; +})(TestOnDefaultExportedClass_9 || (TestOnDefaultExportedClass_9 = {})); +export class ExportedStaticArguments { + constructor() { + Object.defineProperty(this, _10, { + enumerable: true, + configurable: true, + writable: true, + value: void 0 + }); // ok + } +} +_9 = FunctionPropertyNames.arguments, _10 = FunctionPropertyNames.arguments; +var TestOnDefaultExportedClass_10; +(function (TestOnDefaultExportedClass_10) { + class StaticArgumentsFn { + static arguments() { } // error without useDefineForClassFields + arguments() { } // ok + } + TestOnDefaultExportedClass_10.StaticArgumentsFn = StaticArgumentsFn; +})(TestOnDefaultExportedClass_10 || (TestOnDefaultExportedClass_10 = {})); +export class ExportedStaticArgumentsFn { + static [FunctionPropertyNames.arguments]() { } // error without useDefineForClassFields + [FunctionPropertyNames.arguments]() { } // ok +} diff --git a/tests/baselines/reference/staticPropertyNameConflicts(usedefineforclassfields=true).symbols b/tests/baselines/reference/staticPropertyNameConflicts(target=es2015,usedefineforclassfields=true).symbols similarity index 100% rename from tests/baselines/reference/staticPropertyNameConflicts(usedefineforclassfields=true).symbols rename to tests/baselines/reference/staticPropertyNameConflicts(target=es2015,usedefineforclassfields=true).symbols diff --git a/tests/baselines/reference/staticPropertyNameConflicts(usedefineforclassfields=true).types b/tests/baselines/reference/staticPropertyNameConflicts(target=es2015,usedefineforclassfields=true).types similarity index 100% rename from tests/baselines/reference/staticPropertyNameConflicts(usedefineforclassfields=true).types rename to tests/baselines/reference/staticPropertyNameConflicts(target=es2015,usedefineforclassfields=true).types diff --git a/tests/baselines/reference/staticPropertyNameConflicts(target=es5,usedefineforclassfields=false).errors.txt b/tests/baselines/reference/staticPropertyNameConflicts(target=es5,usedefineforclassfields=false).errors.txt new file mode 100644 index 0000000000000..b2590432eae80 --- /dev/null +++ b/tests/baselines/reference/staticPropertyNameConflicts(target=es5,usedefineforclassfields=false).errors.txt @@ -0,0 +1,573 @@ +staticPropertyNameConflicts.ts(11,12): error TS2699: Static property 'name' conflicts with built-in property 'Function.name' of constructor function 'StaticName'. +staticPropertyNameConflicts.ts(16,12): error TS2699: Static property 'name' conflicts with built-in property 'Function.name' of constructor function 'StaticName2'. +staticPropertyNameConflicts.ts(21,12): error TS2699: Static property 'name' conflicts with built-in property 'Function.name' of constructor function 'StaticNameFn'. +staticPropertyNameConflicts.ts(26,12): error TS2699: Static property 'name' conflicts with built-in property 'Function.name' of constructor function 'StaticNameFn2'. +staticPropertyNameConflicts.ts(32,12): error TS2699: Static property 'length' conflicts with built-in property 'Function.length' of constructor function 'StaticLength'. +staticPropertyNameConflicts.ts(37,12): error TS2699: Static property 'length' conflicts with built-in property 'Function.length' of constructor function 'StaticLength2'. +staticPropertyNameConflicts.ts(42,12): error TS2699: Static property 'length' conflicts with built-in property 'Function.length' of constructor function 'StaticLengthFn'. +staticPropertyNameConflicts.ts(47,12): error TS2699: Static property 'length' conflicts with built-in property 'Function.length' of constructor function 'StaticLengthFn2'. +staticPropertyNameConflicts.ts(53,12): error TS2699: Static property 'prototype' conflicts with built-in property 'Function.prototype' of constructor function 'StaticPrototype'. +staticPropertyNameConflicts.ts(58,12): error TS2699: Static property 'prototype' conflicts with built-in property 'Function.prototype' of constructor function 'StaticPrototype2'. +staticPropertyNameConflicts.ts(63,12): error TS2300: Duplicate identifier 'prototype'. +staticPropertyNameConflicts.ts(63,12): error TS2699: Static property 'prototype' conflicts with built-in property 'Function.prototype' of constructor function 'StaticPrototypeFn'. +staticPropertyNameConflicts.ts(68,12): error TS2300: Duplicate identifier '[FunctionPropertyNames.prototype]'. +staticPropertyNameConflicts.ts(68,12): error TS2699: Static property 'prototype' conflicts with built-in property 'Function.prototype' of constructor function 'StaticPrototypeFn2'. +staticPropertyNameConflicts.ts(74,12): error TS2699: Static property 'caller' conflicts with built-in property 'Function.caller' of constructor function 'StaticCaller'. +staticPropertyNameConflicts.ts(79,12): error TS2699: Static property 'caller' conflicts with built-in property 'Function.caller' of constructor function 'StaticCaller2'. +staticPropertyNameConflicts.ts(84,12): error TS2699: Static property 'caller' conflicts with built-in property 'Function.caller' of constructor function 'StaticCallerFn'. +staticPropertyNameConflicts.ts(89,12): error TS2699: Static property 'caller' conflicts with built-in property 'Function.caller' of constructor function 'StaticCallerFn2'. +staticPropertyNameConflicts.ts(95,12): error TS2699: Static property 'arguments' conflicts with built-in property 'Function.arguments' of constructor function 'StaticArguments'. +staticPropertyNameConflicts.ts(100,12): error TS2699: Static property 'arguments' conflicts with built-in property 'Function.arguments' of constructor function 'StaticArguments2'. +staticPropertyNameConflicts.ts(105,12): error TS2699: Static property 'arguments' conflicts with built-in property 'Function.arguments' of constructor function 'StaticArgumentsFn'. +staticPropertyNameConflicts.ts(110,12): error TS2699: Static property 'arguments' conflicts with built-in property 'Function.arguments' of constructor function 'StaticArgumentsFn2'. +staticPropertyNameConflicts.ts(119,12): error TS2699: Static property 'name' conflicts with built-in property 'Function.name' of constructor function 'StaticName_Anonymous'. +staticPropertyNameConflicts.ts(124,12): error TS2699: Static property 'name' conflicts with built-in property 'Function.name' of constructor function 'StaticName_Anonymous2'. +staticPropertyNameConflicts.ts(129,12): error TS2699: Static property 'name' conflicts with built-in property 'Function.name' of constructor function 'StaticNameFn_Anonymous'. +staticPropertyNameConflicts.ts(134,12): error TS2699: Static property 'name' conflicts with built-in property 'Function.name' of constructor function 'StaticNameFn_Anonymous2'. +staticPropertyNameConflicts.ts(140,12): error TS2699: Static property 'length' conflicts with built-in property 'Function.length' of constructor function 'StaticLength_Anonymous'. +staticPropertyNameConflicts.ts(145,12): error TS2699: Static property 'length' conflicts with built-in property 'Function.length' of constructor function 'StaticLength_Anonymous2'. +staticPropertyNameConflicts.ts(150,12): error TS2699: Static property 'length' conflicts with built-in property 'Function.length' of constructor function 'StaticLengthFn_Anonymous'. +staticPropertyNameConflicts.ts(155,12): error TS2699: Static property 'length' conflicts with built-in property 'Function.length' of constructor function 'StaticLengthFn_Anonymous2'. +staticPropertyNameConflicts.ts(161,12): error TS2699: Static property 'prototype' conflicts with built-in property 'Function.prototype' of constructor function 'StaticPrototype_Anonymous'. +staticPropertyNameConflicts.ts(166,12): error TS2699: Static property 'prototype' conflicts with built-in property 'Function.prototype' of constructor function 'StaticPrototype_Anonymous2'. +staticPropertyNameConflicts.ts(171,12): error TS2300: Duplicate identifier 'prototype'. +staticPropertyNameConflicts.ts(171,12): error TS2699: Static property 'prototype' conflicts with built-in property 'Function.prototype' of constructor function 'StaticPrototypeFn_Anonymous'. +staticPropertyNameConflicts.ts(176,12): error TS2300: Duplicate identifier '[FunctionPropertyNames.prototype]'. +staticPropertyNameConflicts.ts(176,12): error TS2699: Static property 'prototype' conflicts with built-in property 'Function.prototype' of constructor function 'StaticPrototypeFn_Anonymous2'. +staticPropertyNameConflicts.ts(182,12): error TS2699: Static property 'caller' conflicts with built-in property 'Function.caller' of constructor function 'StaticCaller_Anonymous'. +staticPropertyNameConflicts.ts(187,12): error TS2699: Static property 'caller' conflicts with built-in property 'Function.caller' of constructor function 'StaticCaller_Anonymous2'. +staticPropertyNameConflicts.ts(192,12): error TS2699: Static property 'caller' conflicts with built-in property 'Function.caller' of constructor function 'StaticCallerFn_Anonymous'. +staticPropertyNameConflicts.ts(197,12): error TS2699: Static property 'caller' conflicts with built-in property 'Function.caller' of constructor function 'StaticCallerFn_Anonymous2'. +staticPropertyNameConflicts.ts(203,12): error TS2699: Static property 'arguments' conflicts with built-in property 'Function.arguments' of constructor function 'StaticArguments_Anonymous'. +staticPropertyNameConflicts.ts(208,12): error TS2699: Static property 'arguments' conflicts with built-in property 'Function.arguments' of constructor function 'StaticArguments_Anonymous2'. +staticPropertyNameConflicts.ts(213,12): error TS2699: Static property 'arguments' conflicts with built-in property 'Function.arguments' of constructor function 'StaticArgumentsFn_Anonymous'. +staticPropertyNameConflicts.ts(218,12): error TS2699: Static property 'arguments' conflicts with built-in property 'Function.arguments' of constructor function 'StaticArgumentsFn_Anonymous2'. +staticPropertyNameConflicts.ts(228,16): error TS2699: Static property 'name' conflicts with built-in property 'Function.name' of constructor function 'StaticName'. +staticPropertyNameConflicts.ts(234,12): error TS2699: Static property 'name' conflicts with built-in property 'Function.name' of constructor function 'ExportedStaticName'. +staticPropertyNameConflicts.ts(240,16): error TS2699: Static property 'name' conflicts with built-in property 'Function.name' of constructor function 'StaticNameFn'. +staticPropertyNameConflicts.ts(246,12): error TS2699: Static property 'name' conflicts with built-in property 'Function.name' of constructor function 'ExportedStaticNameFn'. +staticPropertyNameConflicts.ts(252,12): error TS1319: A default export can only be used in an ECMAScript-style module. +staticPropertyNameConflicts.ts(253,16): error TS2699: Static property 'length' conflicts with built-in property 'Function.length' of constructor function 'StaticLength'. +staticPropertyNameConflicts.ts(259,12): error TS2699: Static property 'length' conflicts with built-in property 'Function.length' of constructor function 'ExportedStaticLength'. +staticPropertyNameConflicts.ts(264,12): error TS1319: A default export can only be used in an ECMAScript-style module. +staticPropertyNameConflicts.ts(265,16): error TS2699: Static property 'length' conflicts with built-in property 'Function.length' of constructor function 'StaticLengthFn'. +staticPropertyNameConflicts.ts(271,12): error TS2699: Static property 'length' conflicts with built-in property 'Function.length' of constructor function 'ExportedStaticLengthFn'. +staticPropertyNameConflicts.ts(277,12): error TS1319: A default export can only be used in an ECMAScript-style module. +staticPropertyNameConflicts.ts(278,16): error TS2699: Static property 'prototype' conflicts with built-in property 'Function.prototype' of constructor function 'StaticPrototype'. +staticPropertyNameConflicts.ts(284,12): error TS2699: Static property 'prototype' conflicts with built-in property 'Function.prototype' of constructor function 'ExportedStaticPrototype'. +staticPropertyNameConflicts.ts(289,12): error TS1319: A default export can only be used in an ECMAScript-style module. +staticPropertyNameConflicts.ts(290,16): error TS2300: Duplicate identifier 'prototype'. +staticPropertyNameConflicts.ts(290,16): error TS2699: Static property 'prototype' conflicts with built-in property 'Function.prototype' of constructor function 'StaticPrototypeFn'. +staticPropertyNameConflicts.ts(296,12): error TS2300: Duplicate identifier '[FunctionPropertyNames.prototype]'. +staticPropertyNameConflicts.ts(296,12): error TS2699: Static property 'prototype' conflicts with built-in property 'Function.prototype' of constructor function 'ExportedStaticPrototypeFn'. +staticPropertyNameConflicts.ts(302,12): error TS1319: A default export can only be used in an ECMAScript-style module. +staticPropertyNameConflicts.ts(303,16): error TS2699: Static property 'caller' conflicts with built-in property 'Function.caller' of constructor function 'StaticCaller'. +staticPropertyNameConflicts.ts(309,12): error TS2699: Static property 'caller' conflicts with built-in property 'Function.caller' of constructor function 'ExportedStaticCaller'. +staticPropertyNameConflicts.ts(314,12): error TS1319: A default export can only be used in an ECMAScript-style module. +staticPropertyNameConflicts.ts(315,16): error TS2699: Static property 'caller' conflicts with built-in property 'Function.caller' of constructor function 'StaticCallerFn'. +staticPropertyNameConflicts.ts(321,12): error TS2699: Static property 'caller' conflicts with built-in property 'Function.caller' of constructor function 'ExportedStaticCallerFn'. +staticPropertyNameConflicts.ts(327,12): error TS1319: A default export can only be used in an ECMAScript-style module. +staticPropertyNameConflicts.ts(328,16): error TS2699: Static property 'arguments' conflicts with built-in property 'Function.arguments' of constructor function 'StaticArguments'. +staticPropertyNameConflicts.ts(334,12): error TS2699: Static property 'arguments' conflicts with built-in property 'Function.arguments' of constructor function 'ExportedStaticArguments'. +staticPropertyNameConflicts.ts(339,12): error TS1319: A default export can only be used in an ECMAScript-style module. +staticPropertyNameConflicts.ts(340,16): error TS2699: Static property 'arguments' conflicts with built-in property 'Function.arguments' of constructor function 'StaticArgumentsFn'. +staticPropertyNameConflicts.ts(346,12): error TS2699: Static property 'arguments' conflicts with built-in property 'Function.arguments' of constructor function 'ExportedStaticArgumentsFn'. + + +==== staticPropertyNameConflicts.ts (74 errors) ==== + const FunctionPropertyNames = { + name: 'name', + length: 'length', + prototype: 'prototype', + caller: 'caller', + arguments: 'arguments', + } as const; + + // name + class StaticName { + static name: number; // error without useDefineForClassFields + ~~~~ +!!! error TS2699: Static property 'name' conflicts with built-in property 'Function.name' of constructor function 'StaticName'. + name: string; // ok + } + + class StaticName2 { + static [FunctionPropertyNames.name]: number; // error without useDefineForClassFields + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2699: Static property 'name' conflicts with built-in property 'Function.name' of constructor function 'StaticName2'. + [FunctionPropertyNames.name]: number; // ok + } + + class StaticNameFn { + static name() {} // error without useDefineForClassFields + ~~~~ +!!! error TS2699: Static property 'name' conflicts with built-in property 'Function.name' of constructor function 'StaticNameFn'. + name() {} // ok + } + + class StaticNameFn2 { + static [FunctionPropertyNames.name]() {} // error without useDefineForClassFields + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2699: Static property 'name' conflicts with built-in property 'Function.name' of constructor function 'StaticNameFn2'. + [FunctionPropertyNames.name]() {} // ok + } + + // length + class StaticLength { + static length: number; // error without useDefineForClassFields + ~~~~~~ +!!! error TS2699: Static property 'length' conflicts with built-in property 'Function.length' of constructor function 'StaticLength'. + length: string; // ok + } + + class StaticLength2 { + static [FunctionPropertyNames.length]: number; // error without useDefineForClassFields + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2699: Static property 'length' conflicts with built-in property 'Function.length' of constructor function 'StaticLength2'. + [FunctionPropertyNames.length]: number; // ok + } + + class StaticLengthFn { + static length() {} // error without useDefineForClassFields + ~~~~~~ +!!! error TS2699: Static property 'length' conflicts with built-in property 'Function.length' of constructor function 'StaticLengthFn'. + length() {} // ok + } + + class StaticLengthFn2 { + static [FunctionPropertyNames.length]() {} // error without useDefineForClassFields + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2699: Static property 'length' conflicts with built-in property 'Function.length' of constructor function 'StaticLengthFn2'. + [FunctionPropertyNames.length]() {} // ok + } + + // prototype + class StaticPrototype { + static prototype: number; // always an error + ~~~~~~~~~ +!!! error TS2699: Static property 'prototype' conflicts with built-in property 'Function.prototype' of constructor function 'StaticPrototype'. + prototype: string; // ok + } + + class StaticPrototype2 { + static [FunctionPropertyNames.prototype]: number; // always an error + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2699: Static property 'prototype' conflicts with built-in property 'Function.prototype' of constructor function 'StaticPrototype2'. + [FunctionPropertyNames.prototype]: string; // ok + } + + class StaticPrototypeFn { + static prototype() {} // always an error + ~~~~~~~~~ +!!! error TS2300: Duplicate identifier 'prototype'. + ~~~~~~~~~ +!!! error TS2699: Static property 'prototype' conflicts with built-in property 'Function.prototype' of constructor function 'StaticPrototypeFn'. + prototype() {} // ok + } + + class StaticPrototypeFn2 { + static [FunctionPropertyNames.prototype]() {} // always an error + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2300: Duplicate identifier '[FunctionPropertyNames.prototype]'. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2699: Static property 'prototype' conflicts with built-in property 'Function.prototype' of constructor function 'StaticPrototypeFn2'. + [FunctionPropertyNames.prototype]() {} // ok + } + + // caller + class StaticCaller { + static caller: number; // error without useDefineForClassFields + ~~~~~~ +!!! error TS2699: Static property 'caller' conflicts with built-in property 'Function.caller' of constructor function 'StaticCaller'. + caller: string; // ok + } + + class StaticCaller2 { + static [FunctionPropertyNames.caller]: number; // error without useDefineForClassFields + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2699: Static property 'caller' conflicts with built-in property 'Function.caller' of constructor function 'StaticCaller2'. + [FunctionPropertyNames.caller]: string; // ok + } + + class StaticCallerFn { + static caller() {} // error without useDefineForClassFields + ~~~~~~ +!!! error TS2699: Static property 'caller' conflicts with built-in property 'Function.caller' of constructor function 'StaticCallerFn'. + caller() {} // ok + } + + class StaticCallerFn2 { + static [FunctionPropertyNames.caller]() {} // error without useDefineForClassFields + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2699: Static property 'caller' conflicts with built-in property 'Function.caller' of constructor function 'StaticCallerFn2'. + [FunctionPropertyNames.caller]() {} // ok + } + + // arguments + class StaticArguments { + static arguments: number; // error without useDefineForClassFields + ~~~~~~~~~ +!!! error TS2699: Static property 'arguments' conflicts with built-in property 'Function.arguments' of constructor function 'StaticArguments'. + arguments: string; // ok + } + + class StaticArguments2 { + static [FunctionPropertyNames.arguments]: number; // error without useDefineForClassFields + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2699: Static property 'arguments' conflicts with built-in property 'Function.arguments' of constructor function 'StaticArguments2'. + [FunctionPropertyNames.arguments]: string; // ok + } + + class StaticArgumentsFn { + static arguments() {} // error without useDefineForClassFields + ~~~~~~~~~ +!!! error TS2699: Static property 'arguments' conflicts with built-in property 'Function.arguments' of constructor function 'StaticArgumentsFn'. + arguments() {} // ok + } + + class StaticArgumentsFn2 { + static [FunctionPropertyNames.arguments]() {} // error without useDefineForClassFields + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2699: Static property 'arguments' conflicts with built-in property 'Function.arguments' of constructor function 'StaticArgumentsFn2'. + [FunctionPropertyNames.arguments]() {} // ok + } + + + // === Static properties on anonymous classes === + + // name + var StaticName_Anonymous = class { + static name: number; // error without useDefineForClassFields + ~~~~ +!!! error TS2699: Static property 'name' conflicts with built-in property 'Function.name' of constructor function 'StaticName_Anonymous'. + name: string; // ok + } + + var StaticName_Anonymous2 = class { + static [FunctionPropertyNames.name]: number; // error without useDefineForClassFields + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2699: Static property 'name' conflicts with built-in property 'Function.name' of constructor function 'StaticName_Anonymous2'. + [FunctionPropertyNames.name]: string; // ok + } + + var StaticNameFn_Anonymous = class { + static name() {} // error without useDefineForClassFields + ~~~~ +!!! error TS2699: Static property 'name' conflicts with built-in property 'Function.name' of constructor function 'StaticNameFn_Anonymous'. + name() {} // ok + } + + var StaticNameFn_Anonymous2 = class { + static [FunctionPropertyNames.name]() {} // error without useDefineForClassFields + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2699: Static property 'name' conflicts with built-in property 'Function.name' of constructor function 'StaticNameFn_Anonymous2'. + [FunctionPropertyNames.name]() {} // ok + } + + // length + var StaticLength_Anonymous = class { + static length: number; // error without useDefineForClassFields + ~~~~~~ +!!! error TS2699: Static property 'length' conflicts with built-in property 'Function.length' of constructor function 'StaticLength_Anonymous'. + length: string; // ok + } + + var StaticLength_Anonymous2 = class { + static [FunctionPropertyNames.length]: number; // error without useDefineForClassFields + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2699: Static property 'length' conflicts with built-in property 'Function.length' of constructor function 'StaticLength_Anonymous2'. + [FunctionPropertyNames.length]: string; // ok + } + + var StaticLengthFn_Anonymous = class { + static length() {} // error without useDefineForClassFields + ~~~~~~ +!!! error TS2699: Static property 'length' conflicts with built-in property 'Function.length' of constructor function 'StaticLengthFn_Anonymous'. + length() {} // ok + } + + var StaticLengthFn_Anonymous2 = class { + static [FunctionPropertyNames.length]() {} // error without useDefineForClassFields + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2699: Static property 'length' conflicts with built-in property 'Function.length' of constructor function 'StaticLengthFn_Anonymous2'. + [FunctionPropertyNames.length]() {} // ok + } + + // prototype + var StaticPrototype_Anonymous = class { + static prototype: number; // always an error + ~~~~~~~~~ +!!! error TS2699: Static property 'prototype' conflicts with built-in property 'Function.prototype' of constructor function 'StaticPrototype_Anonymous'. + prototype: string; // ok + } + + var StaticPrototype_Anonymous2 = class { + static [FunctionPropertyNames.prototype]: number; // always an error + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2699: Static property 'prototype' conflicts with built-in property 'Function.prototype' of constructor function 'StaticPrototype_Anonymous2'. + [FunctionPropertyNames.prototype]: string; // ok + } + + var StaticPrototypeFn_Anonymous = class { + static prototype() {} // always an error + ~~~~~~~~~ +!!! error TS2300: Duplicate identifier 'prototype'. + ~~~~~~~~~ +!!! error TS2699: Static property 'prototype' conflicts with built-in property 'Function.prototype' of constructor function 'StaticPrototypeFn_Anonymous'. + prototype() {} // ok + } + + var StaticPrototypeFn_Anonymous2 = class { + static [FunctionPropertyNames.prototype]() {} // always an error + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2300: Duplicate identifier '[FunctionPropertyNames.prototype]'. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2699: Static property 'prototype' conflicts with built-in property 'Function.prototype' of constructor function 'StaticPrototypeFn_Anonymous2'. + [FunctionPropertyNames.prototype]() {} // ok + } + + // caller + var StaticCaller_Anonymous = class { + static caller: number; // error without useDefineForClassFields + ~~~~~~ +!!! error TS2699: Static property 'caller' conflicts with built-in property 'Function.caller' of constructor function 'StaticCaller_Anonymous'. + caller: string; // ok + } + + var StaticCaller_Anonymous2 = class { + static [FunctionPropertyNames.caller]: number; // error without useDefineForClassFields + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2699: Static property 'caller' conflicts with built-in property 'Function.caller' of constructor function 'StaticCaller_Anonymous2'. + [FunctionPropertyNames.caller]: string; // ok + } + + var StaticCallerFn_Anonymous = class { + static caller() {} // error without useDefineForClassFields + ~~~~~~ +!!! error TS2699: Static property 'caller' conflicts with built-in property 'Function.caller' of constructor function 'StaticCallerFn_Anonymous'. + caller() {} // ok + } + + var StaticCallerFn_Anonymous2 = class { + static [FunctionPropertyNames.caller]() {} // error without useDefineForClassFields + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2699: Static property 'caller' conflicts with built-in property 'Function.caller' of constructor function 'StaticCallerFn_Anonymous2'. + [FunctionPropertyNames.caller]() {} // ok + } + + // arguments + var StaticArguments_Anonymous = class { + static arguments: number; // error without useDefineForClassFields + ~~~~~~~~~ +!!! error TS2699: Static property 'arguments' conflicts with built-in property 'Function.arguments' of constructor function 'StaticArguments_Anonymous'. + arguments: string; // ok + } + + var StaticArguments_Anonymous2 = class { + static [FunctionPropertyNames.arguments]: number; // error without useDefineForClassFields + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2699: Static property 'arguments' conflicts with built-in property 'Function.arguments' of constructor function 'StaticArguments_Anonymous2'. + [FunctionPropertyNames.arguments]: string; // ok + } + + var StaticArgumentsFn_Anonymous = class { + static arguments() {} // error without useDefineForClassFields + ~~~~~~~~~ +!!! error TS2699: Static property 'arguments' conflicts with built-in property 'Function.arguments' of constructor function 'StaticArgumentsFn_Anonymous'. + arguments() {} // ok + } + + var StaticArgumentsFn_Anonymous2 = class { + static [FunctionPropertyNames.arguments]() {} // error without useDefineForClassFields + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2699: Static property 'arguments' conflicts with built-in property 'Function.arguments' of constructor function 'StaticArgumentsFn_Anonymous2'. + [FunctionPropertyNames.arguments]() {} // ok + } + + + // === Static properties on default exported classes === + + // name + namespace TestOnDefaultExportedClass_1 { + class StaticName { + static name: number; // error without useDefineForClassFields + ~~~~ +!!! error TS2699: Static property 'name' conflicts with built-in property 'Function.name' of constructor function 'StaticName'. + name: string; // ok + } + } + + export class ExportedStaticName { + static [FunctionPropertyNames.name]: number; // error without useDefineForClassFields + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2699: Static property 'name' conflicts with built-in property 'Function.name' of constructor function 'ExportedStaticName'. + [FunctionPropertyNames.name]: string; // ok + } + + namespace TestOnDefaultExportedClass_2 { + class StaticNameFn { + static name() {} // error without useDefineForClassFields + ~~~~ +!!! error TS2699: Static property 'name' conflicts with built-in property 'Function.name' of constructor function 'StaticNameFn'. + name() {} // ok + } + } + + export class ExportedStaticNameFn { + static [FunctionPropertyNames.name]() {} // error without useDefineForClassFields + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2699: Static property 'name' conflicts with built-in property 'Function.name' of constructor function 'ExportedStaticNameFn'. + [FunctionPropertyNames.name]() {} // ok + } + + // length + namespace TestOnDefaultExportedClass_3 { + export default class StaticLength { + ~~~~~~~ +!!! error TS1319: A default export can only be used in an ECMAScript-style module. + static length: number; // error without useDefineForClassFields + ~~~~~~ +!!! error TS2699: Static property 'length' conflicts with built-in property 'Function.length' of constructor function 'StaticLength'. + length: string; // ok + } + } + + export class ExportedStaticLength { + static [FunctionPropertyNames.length]: number; // error without useDefineForClassFields + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2699: Static property 'length' conflicts with built-in property 'Function.length' of constructor function 'ExportedStaticLength'. + [FunctionPropertyNames.length]: string; // ok + } + + namespace TestOnDefaultExportedClass_4 { + export default class StaticLengthFn { + ~~~~~~~ +!!! error TS1319: A default export can only be used in an ECMAScript-style module. + static length() {} // error without useDefineForClassFields + ~~~~~~ +!!! error TS2699: Static property 'length' conflicts with built-in property 'Function.length' of constructor function 'StaticLengthFn'. + length() {} // ok + } + } + + export class ExportedStaticLengthFn { + static [FunctionPropertyNames.length]() {} // error without useDefineForClassFields + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2699: Static property 'length' conflicts with built-in property 'Function.length' of constructor function 'ExportedStaticLengthFn'. + [FunctionPropertyNames.length]() {} // ok + } + + // prototype + namespace TestOnDefaultExportedClass_5 { + export default class StaticPrototype { + ~~~~~~~ +!!! error TS1319: A default export can only be used in an ECMAScript-style module. + static prototype: number; // always an error + ~~~~~~~~~ +!!! error TS2699: Static property 'prototype' conflicts with built-in property 'Function.prototype' of constructor function 'StaticPrototype'. + prototype: string; // ok + } + } + + export class ExportedStaticPrototype { + static [FunctionPropertyNames.prototype]: number; // always an error + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2699: Static property 'prototype' conflicts with built-in property 'Function.prototype' of constructor function 'ExportedStaticPrototype'. + [FunctionPropertyNames.prototype]: string; // ok + } + + namespace TestOnDefaultExportedClass_6 { + export default class StaticPrototypeFn { + ~~~~~~~ +!!! error TS1319: A default export can only be used in an ECMAScript-style module. + static prototype() {} // always an error + ~~~~~~~~~ +!!! error TS2300: Duplicate identifier 'prototype'. + ~~~~~~~~~ +!!! error TS2699: Static property 'prototype' conflicts with built-in property 'Function.prototype' of constructor function 'StaticPrototypeFn'. + prototype() {} // ok + } + } + + export class ExportedStaticPrototypeFn { + static [FunctionPropertyNames.prototype]() {} // always an error + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2300: Duplicate identifier '[FunctionPropertyNames.prototype]'. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2699: Static property 'prototype' conflicts with built-in property 'Function.prototype' of constructor function 'ExportedStaticPrototypeFn'. + [FunctionPropertyNames.prototype]() {} // ok + } + + // caller + namespace TestOnDefaultExportedClass_7 { + export default class StaticCaller { + ~~~~~~~ +!!! error TS1319: A default export can only be used in an ECMAScript-style module. + static caller: number; // error without useDefineForClassFields + ~~~~~~ +!!! error TS2699: Static property 'caller' conflicts with built-in property 'Function.caller' of constructor function 'StaticCaller'. + caller: string; // ok + } + } + + export class ExportedStaticCaller { + static [FunctionPropertyNames.caller]: number; // error without useDefineForClassFields + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2699: Static property 'caller' conflicts with built-in property 'Function.caller' of constructor function 'ExportedStaticCaller'. + [FunctionPropertyNames.caller]: string; // ok + } + + namespace TestOnDefaultExportedClass_8 { + export default class StaticCallerFn { + ~~~~~~~ +!!! error TS1319: A default export can only be used in an ECMAScript-style module. + static caller() {} // error without useDefineForClassFields + ~~~~~~ +!!! error TS2699: Static property 'caller' conflicts with built-in property 'Function.caller' of constructor function 'StaticCallerFn'. + caller() {} // ok + } + } + + export class ExportedStaticCallerFn { + static [FunctionPropertyNames.caller]() {} // error without useDefineForClassFields + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2699: Static property 'caller' conflicts with built-in property 'Function.caller' of constructor function 'ExportedStaticCallerFn'. + [FunctionPropertyNames.caller]() {} // ok + } + + // arguments + namespace TestOnDefaultExportedClass_9 { + export default class StaticArguments { + ~~~~~~~ +!!! error TS1319: A default export can only be used in an ECMAScript-style module. + static arguments: number; // error without useDefineForClassFields + ~~~~~~~~~ +!!! error TS2699: Static property 'arguments' conflicts with built-in property 'Function.arguments' of constructor function 'StaticArguments'. + arguments: string; // ok + } + } + + export class ExportedStaticArguments { + static [FunctionPropertyNames.arguments]: number; // error without useDefineForClassFields + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2699: Static property 'arguments' conflicts with built-in property 'Function.arguments' of constructor function 'ExportedStaticArguments'. + [FunctionPropertyNames.arguments]: string; // ok + } + + namespace TestOnDefaultExportedClass_10 { + export default class StaticArgumentsFn { + ~~~~~~~ +!!! error TS1319: A default export can only be used in an ECMAScript-style module. + static arguments() {} // error without useDefineForClassFields + ~~~~~~~~~ +!!! error TS2699: Static property 'arguments' conflicts with built-in property 'Function.arguments' of constructor function 'StaticArgumentsFn'. + arguments() {} // ok + } + } + + export class ExportedStaticArgumentsFn { + static [FunctionPropertyNames.arguments]() {} // error without useDefineForClassFields + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2699: Static property 'arguments' conflicts with built-in property 'Function.arguments' of constructor function 'ExportedStaticArgumentsFn'. + [FunctionPropertyNames.arguments]() {} // ok + } \ No newline at end of file diff --git a/tests/baselines/reference/staticPropertyNameConflicts(usedefineforclassfields=false).js b/tests/baselines/reference/staticPropertyNameConflicts(target=es5,usedefineforclassfields=false).js similarity index 100% rename from tests/baselines/reference/staticPropertyNameConflicts(usedefineforclassfields=false).js rename to tests/baselines/reference/staticPropertyNameConflicts(target=es5,usedefineforclassfields=false).js diff --git a/tests/baselines/reference/staticPropertyNameConflicts(target=es5,usedefineforclassfields=false).symbols b/tests/baselines/reference/staticPropertyNameConflicts(target=es5,usedefineforclassfields=false).symbols new file mode 100644 index 0000000000000..f9cf9064c688b --- /dev/null +++ b/tests/baselines/reference/staticPropertyNameConflicts(target=es5,usedefineforclassfields=false).symbols @@ -0,0 +1,864 @@ +//// [tests/cases/conformance/classes/propertyMemberDeclarations/staticPropertyNameConflicts.ts] //// + +=== staticPropertyNameConflicts.ts === +const FunctionPropertyNames = { +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) + + name: 'name', +>name : Symbol(name, Decl(staticPropertyNameConflicts.ts, 0, 31)) + + length: 'length', +>length : Symbol(length, Decl(staticPropertyNameConflicts.ts, 1, 17)) + + prototype: 'prototype', +>prototype : Symbol(prototype, Decl(staticPropertyNameConflicts.ts, 2, 21)) + + caller: 'caller', +>caller : Symbol(caller, Decl(staticPropertyNameConflicts.ts, 3, 27)) + + arguments: 'arguments', +>arguments : Symbol(arguments, Decl(staticPropertyNameConflicts.ts, 4, 21)) + +} as const; +>const : Symbol(const) + +// name +class StaticName { +>StaticName : Symbol(StaticName, Decl(staticPropertyNameConflicts.ts, 6, 11)) + + static name: number; // error without useDefineForClassFields +>name : Symbol(StaticName.name, Decl(staticPropertyNameConflicts.ts, 9, 18)) + + name: string; // ok +>name : Symbol(StaticName.name, Decl(staticPropertyNameConflicts.ts, 10, 24)) +} + +class StaticName2 { +>StaticName2 : Symbol(StaticName2, Decl(staticPropertyNameConflicts.ts, 12, 1)) + + static [FunctionPropertyNames.name]: number; // error without useDefineForClassFields +>[FunctionPropertyNames.name] : Symbol(StaticName2[FunctionPropertyNames.name], Decl(staticPropertyNameConflicts.ts, 14, 19)) +>FunctionPropertyNames.name : Symbol(name, Decl(staticPropertyNameConflicts.ts, 0, 31)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>name : Symbol(name, Decl(staticPropertyNameConflicts.ts, 0, 31)) + + [FunctionPropertyNames.name]: number; // ok +>[FunctionPropertyNames.name] : Symbol(StaticName2[FunctionPropertyNames.name], Decl(staticPropertyNameConflicts.ts, 15, 48)) +>FunctionPropertyNames.name : Symbol(name, Decl(staticPropertyNameConflicts.ts, 0, 31)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>name : Symbol(name, Decl(staticPropertyNameConflicts.ts, 0, 31)) +} + +class StaticNameFn { +>StaticNameFn : Symbol(StaticNameFn, Decl(staticPropertyNameConflicts.ts, 17, 1)) + + static name() {} // error without useDefineForClassFields +>name : Symbol(StaticNameFn.name, Decl(staticPropertyNameConflicts.ts, 19, 20)) + + name() {} // ok +>name : Symbol(StaticNameFn.name, Decl(staticPropertyNameConflicts.ts, 20, 20)) +} + +class StaticNameFn2 { +>StaticNameFn2 : Symbol(StaticNameFn2, Decl(staticPropertyNameConflicts.ts, 22, 1)) + + static [FunctionPropertyNames.name]() {} // error without useDefineForClassFields +>[FunctionPropertyNames.name] : Symbol(StaticNameFn2[FunctionPropertyNames.name], Decl(staticPropertyNameConflicts.ts, 24, 21)) +>FunctionPropertyNames.name : Symbol(name, Decl(staticPropertyNameConflicts.ts, 0, 31)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>name : Symbol(name, Decl(staticPropertyNameConflicts.ts, 0, 31)) + + [FunctionPropertyNames.name]() {} // ok +>[FunctionPropertyNames.name] : Symbol(StaticNameFn2[FunctionPropertyNames.name], Decl(staticPropertyNameConflicts.ts, 25, 44)) +>FunctionPropertyNames.name : Symbol(name, Decl(staticPropertyNameConflicts.ts, 0, 31)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>name : Symbol(name, Decl(staticPropertyNameConflicts.ts, 0, 31)) +} + +// length +class StaticLength { +>StaticLength : Symbol(StaticLength, Decl(staticPropertyNameConflicts.ts, 27, 1)) + + static length: number; // error without useDefineForClassFields +>length : Symbol(StaticLength.length, Decl(staticPropertyNameConflicts.ts, 30, 20)) + + length: string; // ok +>length : Symbol(StaticLength.length, Decl(staticPropertyNameConflicts.ts, 31, 26)) +} + +class StaticLength2 { +>StaticLength2 : Symbol(StaticLength2, Decl(staticPropertyNameConflicts.ts, 33, 1)) + + static [FunctionPropertyNames.length]: number; // error without useDefineForClassFields +>[FunctionPropertyNames.length] : Symbol(StaticLength2[FunctionPropertyNames.length], Decl(staticPropertyNameConflicts.ts, 35, 21)) +>FunctionPropertyNames.length : Symbol(length, Decl(staticPropertyNameConflicts.ts, 1, 17)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>length : Symbol(length, Decl(staticPropertyNameConflicts.ts, 1, 17)) + + [FunctionPropertyNames.length]: number; // ok +>[FunctionPropertyNames.length] : Symbol(StaticLength2[FunctionPropertyNames.length], Decl(staticPropertyNameConflicts.ts, 36, 50)) +>FunctionPropertyNames.length : Symbol(length, Decl(staticPropertyNameConflicts.ts, 1, 17)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>length : Symbol(length, Decl(staticPropertyNameConflicts.ts, 1, 17)) +} + +class StaticLengthFn { +>StaticLengthFn : Symbol(StaticLengthFn, Decl(staticPropertyNameConflicts.ts, 38, 1)) + + static length() {} // error without useDefineForClassFields +>length : Symbol(StaticLengthFn.length, Decl(staticPropertyNameConflicts.ts, 40, 22)) + + length() {} // ok +>length : Symbol(StaticLengthFn.length, Decl(staticPropertyNameConflicts.ts, 41, 22)) +} + +class StaticLengthFn2 { +>StaticLengthFn2 : Symbol(StaticLengthFn2, Decl(staticPropertyNameConflicts.ts, 43, 1)) + + static [FunctionPropertyNames.length]() {} // error without useDefineForClassFields +>[FunctionPropertyNames.length] : Symbol(StaticLengthFn2[FunctionPropertyNames.length], Decl(staticPropertyNameConflicts.ts, 45, 23)) +>FunctionPropertyNames.length : Symbol(length, Decl(staticPropertyNameConflicts.ts, 1, 17)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>length : Symbol(length, Decl(staticPropertyNameConflicts.ts, 1, 17)) + + [FunctionPropertyNames.length]() {} // ok +>[FunctionPropertyNames.length] : Symbol(StaticLengthFn2[FunctionPropertyNames.length], Decl(staticPropertyNameConflicts.ts, 46, 46)) +>FunctionPropertyNames.length : Symbol(length, Decl(staticPropertyNameConflicts.ts, 1, 17)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>length : Symbol(length, Decl(staticPropertyNameConflicts.ts, 1, 17)) +} + +// prototype +class StaticPrototype { +>StaticPrototype : Symbol(StaticPrototype, Decl(staticPropertyNameConflicts.ts, 48, 1)) + + static prototype: number; // always an error +>prototype : Symbol(StaticPrototype.prototype, Decl(staticPropertyNameConflicts.ts, 51, 23)) + + prototype: string; // ok +>prototype : Symbol(StaticPrototype.prototype, Decl(staticPropertyNameConflicts.ts, 52, 29)) +} + +class StaticPrototype2 { +>StaticPrototype2 : Symbol(StaticPrototype2, Decl(staticPropertyNameConflicts.ts, 54, 1)) + + static [FunctionPropertyNames.prototype]: number; // always an error +>[FunctionPropertyNames.prototype] : Symbol(StaticPrototype2[FunctionPropertyNames.prototype], Decl(staticPropertyNameConflicts.ts, 56, 24)) +>FunctionPropertyNames.prototype : Symbol(prototype, Decl(staticPropertyNameConflicts.ts, 2, 21)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>prototype : Symbol(prototype, Decl(staticPropertyNameConflicts.ts, 2, 21)) + + [FunctionPropertyNames.prototype]: string; // ok +>[FunctionPropertyNames.prototype] : Symbol(StaticPrototype2[FunctionPropertyNames.prototype], Decl(staticPropertyNameConflicts.ts, 57, 53)) +>FunctionPropertyNames.prototype : Symbol(prototype, Decl(staticPropertyNameConflicts.ts, 2, 21)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>prototype : Symbol(prototype, Decl(staticPropertyNameConflicts.ts, 2, 21)) +} + +class StaticPrototypeFn { +>StaticPrototypeFn : Symbol(StaticPrototypeFn, Decl(staticPropertyNameConflicts.ts, 59, 1)) + + static prototype() {} // always an error +>prototype : Symbol(StaticPrototypeFn.prototype, Decl(staticPropertyNameConflicts.ts, 61, 25)) + + prototype() {} // ok +>prototype : Symbol(StaticPrototypeFn.prototype, Decl(staticPropertyNameConflicts.ts, 62, 25)) +} + +class StaticPrototypeFn2 { +>StaticPrototypeFn2 : Symbol(StaticPrototypeFn2, Decl(staticPropertyNameConflicts.ts, 64, 1)) + + static [FunctionPropertyNames.prototype]() {} // always an error +>[FunctionPropertyNames.prototype] : Symbol(StaticPrototypeFn2[FunctionPropertyNames.prototype], Decl(staticPropertyNameConflicts.ts, 66, 26)) +>FunctionPropertyNames.prototype : Symbol(prototype, Decl(staticPropertyNameConflicts.ts, 2, 21)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>prototype : Symbol(prototype, Decl(staticPropertyNameConflicts.ts, 2, 21)) + + [FunctionPropertyNames.prototype]() {} // ok +>[FunctionPropertyNames.prototype] : Symbol(StaticPrototypeFn2[FunctionPropertyNames.prototype], Decl(staticPropertyNameConflicts.ts, 67, 49)) +>FunctionPropertyNames.prototype : Symbol(prototype, Decl(staticPropertyNameConflicts.ts, 2, 21)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>prototype : Symbol(prototype, Decl(staticPropertyNameConflicts.ts, 2, 21)) +} + +// caller +class StaticCaller { +>StaticCaller : Symbol(StaticCaller, Decl(staticPropertyNameConflicts.ts, 69, 1)) + + static caller: number; // error without useDefineForClassFields +>caller : Symbol(StaticCaller.caller, Decl(staticPropertyNameConflicts.ts, 72, 20)) + + caller: string; // ok +>caller : Symbol(StaticCaller.caller, Decl(staticPropertyNameConflicts.ts, 73, 26)) +} + +class StaticCaller2 { +>StaticCaller2 : Symbol(StaticCaller2, Decl(staticPropertyNameConflicts.ts, 75, 1)) + + static [FunctionPropertyNames.caller]: number; // error without useDefineForClassFields +>[FunctionPropertyNames.caller] : Symbol(StaticCaller2[FunctionPropertyNames.caller], Decl(staticPropertyNameConflicts.ts, 77, 21)) +>FunctionPropertyNames.caller : Symbol(caller, Decl(staticPropertyNameConflicts.ts, 3, 27)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>caller : Symbol(caller, Decl(staticPropertyNameConflicts.ts, 3, 27)) + + [FunctionPropertyNames.caller]: string; // ok +>[FunctionPropertyNames.caller] : Symbol(StaticCaller2[FunctionPropertyNames.caller], Decl(staticPropertyNameConflicts.ts, 78, 50)) +>FunctionPropertyNames.caller : Symbol(caller, Decl(staticPropertyNameConflicts.ts, 3, 27)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>caller : Symbol(caller, Decl(staticPropertyNameConflicts.ts, 3, 27)) +} + +class StaticCallerFn { +>StaticCallerFn : Symbol(StaticCallerFn, Decl(staticPropertyNameConflicts.ts, 80, 1)) + + static caller() {} // error without useDefineForClassFields +>caller : Symbol(StaticCallerFn.caller, Decl(staticPropertyNameConflicts.ts, 82, 22)) + + caller() {} // ok +>caller : Symbol(StaticCallerFn.caller, Decl(staticPropertyNameConflicts.ts, 83, 22)) +} + +class StaticCallerFn2 { +>StaticCallerFn2 : Symbol(StaticCallerFn2, Decl(staticPropertyNameConflicts.ts, 85, 1)) + + static [FunctionPropertyNames.caller]() {} // error without useDefineForClassFields +>[FunctionPropertyNames.caller] : Symbol(StaticCallerFn2[FunctionPropertyNames.caller], Decl(staticPropertyNameConflicts.ts, 87, 23)) +>FunctionPropertyNames.caller : Symbol(caller, Decl(staticPropertyNameConflicts.ts, 3, 27)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>caller : Symbol(caller, Decl(staticPropertyNameConflicts.ts, 3, 27)) + + [FunctionPropertyNames.caller]() {} // ok +>[FunctionPropertyNames.caller] : Symbol(StaticCallerFn2[FunctionPropertyNames.caller], Decl(staticPropertyNameConflicts.ts, 88, 46)) +>FunctionPropertyNames.caller : Symbol(caller, Decl(staticPropertyNameConflicts.ts, 3, 27)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>caller : Symbol(caller, Decl(staticPropertyNameConflicts.ts, 3, 27)) +} + +// arguments +class StaticArguments { +>StaticArguments : Symbol(StaticArguments, Decl(staticPropertyNameConflicts.ts, 90, 1)) + + static arguments: number; // error without useDefineForClassFields +>arguments : Symbol(StaticArguments.arguments, Decl(staticPropertyNameConflicts.ts, 93, 23)) + + arguments: string; // ok +>arguments : Symbol(StaticArguments.arguments, Decl(staticPropertyNameConflicts.ts, 94, 29)) +} + +class StaticArguments2 { +>StaticArguments2 : Symbol(StaticArguments2, Decl(staticPropertyNameConflicts.ts, 96, 1)) + + static [FunctionPropertyNames.arguments]: number; // error without useDefineForClassFields +>[FunctionPropertyNames.arguments] : Symbol(StaticArguments2[FunctionPropertyNames.arguments], Decl(staticPropertyNameConflicts.ts, 98, 24)) +>FunctionPropertyNames.arguments : Symbol(arguments, Decl(staticPropertyNameConflicts.ts, 4, 21)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>arguments : Symbol(arguments, Decl(staticPropertyNameConflicts.ts, 4, 21)) + + [FunctionPropertyNames.arguments]: string; // ok +>[FunctionPropertyNames.arguments] : Symbol(StaticArguments2[FunctionPropertyNames.arguments], Decl(staticPropertyNameConflicts.ts, 99, 53)) +>FunctionPropertyNames.arguments : Symbol(arguments, Decl(staticPropertyNameConflicts.ts, 4, 21)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>arguments : Symbol(arguments, Decl(staticPropertyNameConflicts.ts, 4, 21)) +} + +class StaticArgumentsFn { +>StaticArgumentsFn : Symbol(StaticArgumentsFn, Decl(staticPropertyNameConflicts.ts, 101, 1)) + + static arguments() {} // error without useDefineForClassFields +>arguments : Symbol(StaticArgumentsFn.arguments, Decl(staticPropertyNameConflicts.ts, 103, 25)) + + arguments() {} // ok +>arguments : Symbol(StaticArgumentsFn.arguments, Decl(staticPropertyNameConflicts.ts, 104, 25)) +} + +class StaticArgumentsFn2 { +>StaticArgumentsFn2 : Symbol(StaticArgumentsFn2, Decl(staticPropertyNameConflicts.ts, 106, 1)) + + static [FunctionPropertyNames.arguments]() {} // error without useDefineForClassFields +>[FunctionPropertyNames.arguments] : Symbol(StaticArgumentsFn2[FunctionPropertyNames.arguments], Decl(staticPropertyNameConflicts.ts, 108, 26)) +>FunctionPropertyNames.arguments : Symbol(arguments, Decl(staticPropertyNameConflicts.ts, 4, 21)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>arguments : Symbol(arguments, Decl(staticPropertyNameConflicts.ts, 4, 21)) + + [FunctionPropertyNames.arguments]() {} // ok +>[FunctionPropertyNames.arguments] : Symbol(StaticArgumentsFn2[FunctionPropertyNames.arguments], Decl(staticPropertyNameConflicts.ts, 109, 49)) +>FunctionPropertyNames.arguments : Symbol(arguments, Decl(staticPropertyNameConflicts.ts, 4, 21)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>arguments : Symbol(arguments, Decl(staticPropertyNameConflicts.ts, 4, 21)) +} + + +// === Static properties on anonymous classes === + +// name +var StaticName_Anonymous = class { +>StaticName_Anonymous : Symbol(StaticName_Anonymous, Decl(staticPropertyNameConflicts.ts, 117, 3)) + + static name: number; // error without useDefineForClassFields +>name : Symbol(StaticName_Anonymous.name, Decl(staticPropertyNameConflicts.ts, 117, 34)) + + name: string; // ok +>name : Symbol(StaticName_Anonymous.name, Decl(staticPropertyNameConflicts.ts, 118, 24)) +} + +var StaticName_Anonymous2 = class { +>StaticName_Anonymous2 : Symbol(StaticName_Anonymous2, Decl(staticPropertyNameConflicts.ts, 122, 3)) + + static [FunctionPropertyNames.name]: number; // error without useDefineForClassFields +>[FunctionPropertyNames.name] : Symbol(StaticName_Anonymous2[FunctionPropertyNames.name], Decl(staticPropertyNameConflicts.ts, 122, 35)) +>FunctionPropertyNames.name : Symbol(name, Decl(staticPropertyNameConflicts.ts, 0, 31)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>name : Symbol(name, Decl(staticPropertyNameConflicts.ts, 0, 31)) + + [FunctionPropertyNames.name]: string; // ok +>[FunctionPropertyNames.name] : Symbol(StaticName_Anonymous2[FunctionPropertyNames.name], Decl(staticPropertyNameConflicts.ts, 123, 48)) +>FunctionPropertyNames.name : Symbol(name, Decl(staticPropertyNameConflicts.ts, 0, 31)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>name : Symbol(name, Decl(staticPropertyNameConflicts.ts, 0, 31)) +} + +var StaticNameFn_Anonymous = class { +>StaticNameFn_Anonymous : Symbol(StaticNameFn_Anonymous, Decl(staticPropertyNameConflicts.ts, 127, 3)) + + static name() {} // error without useDefineForClassFields +>name : Symbol(StaticNameFn_Anonymous.name, Decl(staticPropertyNameConflicts.ts, 127, 36)) + + name() {} // ok +>name : Symbol(StaticNameFn_Anonymous.name, Decl(staticPropertyNameConflicts.ts, 128, 20)) +} + +var StaticNameFn_Anonymous2 = class { +>StaticNameFn_Anonymous2 : Symbol(StaticNameFn_Anonymous2, Decl(staticPropertyNameConflicts.ts, 132, 3)) + + static [FunctionPropertyNames.name]() {} // error without useDefineForClassFields +>[FunctionPropertyNames.name] : Symbol(StaticNameFn_Anonymous2[FunctionPropertyNames.name], Decl(staticPropertyNameConflicts.ts, 132, 37)) +>FunctionPropertyNames.name : Symbol(name, Decl(staticPropertyNameConflicts.ts, 0, 31)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>name : Symbol(name, Decl(staticPropertyNameConflicts.ts, 0, 31)) + + [FunctionPropertyNames.name]() {} // ok +>[FunctionPropertyNames.name] : Symbol(StaticNameFn_Anonymous2[FunctionPropertyNames.name], Decl(staticPropertyNameConflicts.ts, 133, 44)) +>FunctionPropertyNames.name : Symbol(name, Decl(staticPropertyNameConflicts.ts, 0, 31)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>name : Symbol(name, Decl(staticPropertyNameConflicts.ts, 0, 31)) +} + +// length +var StaticLength_Anonymous = class { +>StaticLength_Anonymous : Symbol(StaticLength_Anonymous, Decl(staticPropertyNameConflicts.ts, 138, 3)) + + static length: number; // error without useDefineForClassFields +>length : Symbol(StaticLength_Anonymous.length, Decl(staticPropertyNameConflicts.ts, 138, 36)) + + length: string; // ok +>length : Symbol(StaticLength_Anonymous.length, Decl(staticPropertyNameConflicts.ts, 139, 26)) +} + +var StaticLength_Anonymous2 = class { +>StaticLength_Anonymous2 : Symbol(StaticLength_Anonymous2, Decl(staticPropertyNameConflicts.ts, 143, 3)) + + static [FunctionPropertyNames.length]: number; // error without useDefineForClassFields +>[FunctionPropertyNames.length] : Symbol(StaticLength_Anonymous2[FunctionPropertyNames.length], Decl(staticPropertyNameConflicts.ts, 143, 37)) +>FunctionPropertyNames.length : Symbol(length, Decl(staticPropertyNameConflicts.ts, 1, 17)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>length : Symbol(length, Decl(staticPropertyNameConflicts.ts, 1, 17)) + + [FunctionPropertyNames.length]: string; // ok +>[FunctionPropertyNames.length] : Symbol(StaticLength_Anonymous2[FunctionPropertyNames.length], Decl(staticPropertyNameConflicts.ts, 144, 50)) +>FunctionPropertyNames.length : Symbol(length, Decl(staticPropertyNameConflicts.ts, 1, 17)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>length : Symbol(length, Decl(staticPropertyNameConflicts.ts, 1, 17)) +} + +var StaticLengthFn_Anonymous = class { +>StaticLengthFn_Anonymous : Symbol(StaticLengthFn_Anonymous, Decl(staticPropertyNameConflicts.ts, 148, 3)) + + static length() {} // error without useDefineForClassFields +>length : Symbol(StaticLengthFn_Anonymous.length, Decl(staticPropertyNameConflicts.ts, 148, 38)) + + length() {} // ok +>length : Symbol(StaticLengthFn_Anonymous.length, Decl(staticPropertyNameConflicts.ts, 149, 22)) +} + +var StaticLengthFn_Anonymous2 = class { +>StaticLengthFn_Anonymous2 : Symbol(StaticLengthFn_Anonymous2, Decl(staticPropertyNameConflicts.ts, 153, 3)) + + static [FunctionPropertyNames.length]() {} // error without useDefineForClassFields +>[FunctionPropertyNames.length] : Symbol(StaticLengthFn_Anonymous2[FunctionPropertyNames.length], Decl(staticPropertyNameConflicts.ts, 153, 39)) +>FunctionPropertyNames.length : Symbol(length, Decl(staticPropertyNameConflicts.ts, 1, 17)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>length : Symbol(length, Decl(staticPropertyNameConflicts.ts, 1, 17)) + + [FunctionPropertyNames.length]() {} // ok +>[FunctionPropertyNames.length] : Symbol(StaticLengthFn_Anonymous2[FunctionPropertyNames.length], Decl(staticPropertyNameConflicts.ts, 154, 46)) +>FunctionPropertyNames.length : Symbol(length, Decl(staticPropertyNameConflicts.ts, 1, 17)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>length : Symbol(length, Decl(staticPropertyNameConflicts.ts, 1, 17)) +} + +// prototype +var StaticPrototype_Anonymous = class { +>StaticPrototype_Anonymous : Symbol(StaticPrototype_Anonymous, Decl(staticPropertyNameConflicts.ts, 159, 3)) + + static prototype: number; // always an error +>prototype : Symbol(StaticPrototype_Anonymous.prototype, Decl(staticPropertyNameConflicts.ts, 159, 39)) + + prototype: string; // ok +>prototype : Symbol(StaticPrototype_Anonymous.prototype, Decl(staticPropertyNameConflicts.ts, 160, 29)) +} + +var StaticPrototype_Anonymous2 = class { +>StaticPrototype_Anonymous2 : Symbol(StaticPrototype_Anonymous2, Decl(staticPropertyNameConflicts.ts, 164, 3)) + + static [FunctionPropertyNames.prototype]: number; // always an error +>[FunctionPropertyNames.prototype] : Symbol(StaticPrototype_Anonymous2[FunctionPropertyNames.prototype], Decl(staticPropertyNameConflicts.ts, 164, 40)) +>FunctionPropertyNames.prototype : Symbol(prototype, Decl(staticPropertyNameConflicts.ts, 2, 21)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>prototype : Symbol(prototype, Decl(staticPropertyNameConflicts.ts, 2, 21)) + + [FunctionPropertyNames.prototype]: string; // ok +>[FunctionPropertyNames.prototype] : Symbol(StaticPrototype_Anonymous2[FunctionPropertyNames.prototype], Decl(staticPropertyNameConflicts.ts, 165, 53)) +>FunctionPropertyNames.prototype : Symbol(prototype, Decl(staticPropertyNameConflicts.ts, 2, 21)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>prototype : Symbol(prototype, Decl(staticPropertyNameConflicts.ts, 2, 21)) +} + +var StaticPrototypeFn_Anonymous = class { +>StaticPrototypeFn_Anonymous : Symbol(StaticPrototypeFn_Anonymous, Decl(staticPropertyNameConflicts.ts, 169, 3)) + + static prototype() {} // always an error +>prototype : Symbol(StaticPrototypeFn_Anonymous.prototype, Decl(staticPropertyNameConflicts.ts, 169, 41)) + + prototype() {} // ok +>prototype : Symbol(StaticPrototypeFn_Anonymous.prototype, Decl(staticPropertyNameConflicts.ts, 170, 25)) +} + +var StaticPrototypeFn_Anonymous2 = class { +>StaticPrototypeFn_Anonymous2 : Symbol(StaticPrototypeFn_Anonymous2, Decl(staticPropertyNameConflicts.ts, 174, 3)) + + static [FunctionPropertyNames.prototype]() {} // always an error +>[FunctionPropertyNames.prototype] : Symbol(StaticPrototypeFn_Anonymous2[FunctionPropertyNames.prototype], Decl(staticPropertyNameConflicts.ts, 174, 42)) +>FunctionPropertyNames.prototype : Symbol(prototype, Decl(staticPropertyNameConflicts.ts, 2, 21)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>prototype : Symbol(prototype, Decl(staticPropertyNameConflicts.ts, 2, 21)) + + [FunctionPropertyNames.prototype]() {} // ok +>[FunctionPropertyNames.prototype] : Symbol(StaticPrototypeFn_Anonymous2[FunctionPropertyNames.prototype], Decl(staticPropertyNameConflicts.ts, 175, 49)) +>FunctionPropertyNames.prototype : Symbol(prototype, Decl(staticPropertyNameConflicts.ts, 2, 21)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>prototype : Symbol(prototype, Decl(staticPropertyNameConflicts.ts, 2, 21)) +} + +// caller +var StaticCaller_Anonymous = class { +>StaticCaller_Anonymous : Symbol(StaticCaller_Anonymous, Decl(staticPropertyNameConflicts.ts, 180, 3)) + + static caller: number; // error without useDefineForClassFields +>caller : Symbol(StaticCaller_Anonymous.caller, Decl(staticPropertyNameConflicts.ts, 180, 36)) + + caller: string; // ok +>caller : Symbol(StaticCaller_Anonymous.caller, Decl(staticPropertyNameConflicts.ts, 181, 26)) +} + +var StaticCaller_Anonymous2 = class { +>StaticCaller_Anonymous2 : Symbol(StaticCaller_Anonymous2, Decl(staticPropertyNameConflicts.ts, 185, 3)) + + static [FunctionPropertyNames.caller]: number; // error without useDefineForClassFields +>[FunctionPropertyNames.caller] : Symbol(StaticCaller_Anonymous2[FunctionPropertyNames.caller], Decl(staticPropertyNameConflicts.ts, 185, 37)) +>FunctionPropertyNames.caller : Symbol(caller, Decl(staticPropertyNameConflicts.ts, 3, 27)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>caller : Symbol(caller, Decl(staticPropertyNameConflicts.ts, 3, 27)) + + [FunctionPropertyNames.caller]: string; // ok +>[FunctionPropertyNames.caller] : Symbol(StaticCaller_Anonymous2[FunctionPropertyNames.caller], Decl(staticPropertyNameConflicts.ts, 186, 50)) +>FunctionPropertyNames.caller : Symbol(caller, Decl(staticPropertyNameConflicts.ts, 3, 27)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>caller : Symbol(caller, Decl(staticPropertyNameConflicts.ts, 3, 27)) +} + +var StaticCallerFn_Anonymous = class { +>StaticCallerFn_Anonymous : Symbol(StaticCallerFn_Anonymous, Decl(staticPropertyNameConflicts.ts, 190, 3)) + + static caller() {} // error without useDefineForClassFields +>caller : Symbol(StaticCallerFn_Anonymous.caller, Decl(staticPropertyNameConflicts.ts, 190, 38)) + + caller() {} // ok +>caller : Symbol(StaticCallerFn_Anonymous.caller, Decl(staticPropertyNameConflicts.ts, 191, 22)) +} + +var StaticCallerFn_Anonymous2 = class { +>StaticCallerFn_Anonymous2 : Symbol(StaticCallerFn_Anonymous2, Decl(staticPropertyNameConflicts.ts, 195, 3)) + + static [FunctionPropertyNames.caller]() {} // error without useDefineForClassFields +>[FunctionPropertyNames.caller] : Symbol(StaticCallerFn_Anonymous2[FunctionPropertyNames.caller], Decl(staticPropertyNameConflicts.ts, 195, 39)) +>FunctionPropertyNames.caller : Symbol(caller, Decl(staticPropertyNameConflicts.ts, 3, 27)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>caller : Symbol(caller, Decl(staticPropertyNameConflicts.ts, 3, 27)) + + [FunctionPropertyNames.caller]() {} // ok +>[FunctionPropertyNames.caller] : Symbol(StaticCallerFn_Anonymous2[FunctionPropertyNames.caller], Decl(staticPropertyNameConflicts.ts, 196, 46)) +>FunctionPropertyNames.caller : Symbol(caller, Decl(staticPropertyNameConflicts.ts, 3, 27)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>caller : Symbol(caller, Decl(staticPropertyNameConflicts.ts, 3, 27)) +} + +// arguments +var StaticArguments_Anonymous = class { +>StaticArguments_Anonymous : Symbol(StaticArguments_Anonymous, Decl(staticPropertyNameConflicts.ts, 201, 3)) + + static arguments: number; // error without useDefineForClassFields +>arguments : Symbol(StaticArguments_Anonymous.arguments, Decl(staticPropertyNameConflicts.ts, 201, 39)) + + arguments: string; // ok +>arguments : Symbol(StaticArguments_Anonymous.arguments, Decl(staticPropertyNameConflicts.ts, 202, 29)) +} + +var StaticArguments_Anonymous2 = class { +>StaticArguments_Anonymous2 : Symbol(StaticArguments_Anonymous2, Decl(staticPropertyNameConflicts.ts, 206, 3)) + + static [FunctionPropertyNames.arguments]: number; // error without useDefineForClassFields +>[FunctionPropertyNames.arguments] : Symbol(StaticArguments_Anonymous2[FunctionPropertyNames.arguments], Decl(staticPropertyNameConflicts.ts, 206, 40)) +>FunctionPropertyNames.arguments : Symbol(arguments, Decl(staticPropertyNameConflicts.ts, 4, 21)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>arguments : Symbol(arguments, Decl(staticPropertyNameConflicts.ts, 4, 21)) + + [FunctionPropertyNames.arguments]: string; // ok +>[FunctionPropertyNames.arguments] : Symbol(StaticArguments_Anonymous2[FunctionPropertyNames.arguments], Decl(staticPropertyNameConflicts.ts, 207, 53)) +>FunctionPropertyNames.arguments : Symbol(arguments, Decl(staticPropertyNameConflicts.ts, 4, 21)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>arguments : Symbol(arguments, Decl(staticPropertyNameConflicts.ts, 4, 21)) +} + +var StaticArgumentsFn_Anonymous = class { +>StaticArgumentsFn_Anonymous : Symbol(StaticArgumentsFn_Anonymous, Decl(staticPropertyNameConflicts.ts, 211, 3)) + + static arguments() {} // error without useDefineForClassFields +>arguments : Symbol(StaticArgumentsFn_Anonymous.arguments, Decl(staticPropertyNameConflicts.ts, 211, 41)) + + arguments() {} // ok +>arguments : Symbol(StaticArgumentsFn_Anonymous.arguments, Decl(staticPropertyNameConflicts.ts, 212, 25)) +} + +var StaticArgumentsFn_Anonymous2 = class { +>StaticArgumentsFn_Anonymous2 : Symbol(StaticArgumentsFn_Anonymous2, Decl(staticPropertyNameConflicts.ts, 216, 3)) + + static [FunctionPropertyNames.arguments]() {} // error without useDefineForClassFields +>[FunctionPropertyNames.arguments] : Symbol(StaticArgumentsFn_Anonymous2[FunctionPropertyNames.arguments], Decl(staticPropertyNameConflicts.ts, 216, 42)) +>FunctionPropertyNames.arguments : Symbol(arguments, Decl(staticPropertyNameConflicts.ts, 4, 21)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>arguments : Symbol(arguments, Decl(staticPropertyNameConflicts.ts, 4, 21)) + + [FunctionPropertyNames.arguments]() {} // ok +>[FunctionPropertyNames.arguments] : Symbol(StaticArgumentsFn_Anonymous2[FunctionPropertyNames.arguments], Decl(staticPropertyNameConflicts.ts, 217, 49)) +>FunctionPropertyNames.arguments : Symbol(arguments, Decl(staticPropertyNameConflicts.ts, 4, 21)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>arguments : Symbol(arguments, Decl(staticPropertyNameConflicts.ts, 4, 21)) +} + + +// === Static properties on default exported classes === + +// name +namespace TestOnDefaultExportedClass_1 { +>TestOnDefaultExportedClass_1 : Symbol(TestOnDefaultExportedClass_1, Decl(staticPropertyNameConflicts.ts, 219, 1)) + + class StaticName { +>StaticName : Symbol(StaticName, Decl(staticPropertyNameConflicts.ts, 225, 40)) + + static name: number; // error without useDefineForClassFields +>name : Symbol(StaticName.name, Decl(staticPropertyNameConflicts.ts, 226, 22)) + + name: string; // ok +>name : Symbol(StaticName.name, Decl(staticPropertyNameConflicts.ts, 227, 28)) + } +} + +export class ExportedStaticName { +>ExportedStaticName : Symbol(ExportedStaticName, Decl(staticPropertyNameConflicts.ts, 230, 1)) + + static [FunctionPropertyNames.name]: number; // error without useDefineForClassFields +>[FunctionPropertyNames.name] : Symbol(ExportedStaticName[FunctionPropertyNames.name], Decl(staticPropertyNameConflicts.ts, 232, 33)) +>FunctionPropertyNames.name : Symbol(name, Decl(staticPropertyNameConflicts.ts, 0, 31)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>name : Symbol(name, Decl(staticPropertyNameConflicts.ts, 0, 31)) + + [FunctionPropertyNames.name]: string; // ok +>[FunctionPropertyNames.name] : Symbol(ExportedStaticName[FunctionPropertyNames.name], Decl(staticPropertyNameConflicts.ts, 233, 48)) +>FunctionPropertyNames.name : Symbol(name, Decl(staticPropertyNameConflicts.ts, 0, 31)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>name : Symbol(name, Decl(staticPropertyNameConflicts.ts, 0, 31)) +} + +namespace TestOnDefaultExportedClass_2 { +>TestOnDefaultExportedClass_2 : Symbol(TestOnDefaultExportedClass_2, Decl(staticPropertyNameConflicts.ts, 235, 1)) + + class StaticNameFn { +>StaticNameFn : Symbol(StaticNameFn, Decl(staticPropertyNameConflicts.ts, 237, 40)) + + static name() {} // error without useDefineForClassFields +>name : Symbol(StaticNameFn.name, Decl(staticPropertyNameConflicts.ts, 238, 24)) + + name() {} // ok +>name : Symbol(StaticNameFn.name, Decl(staticPropertyNameConflicts.ts, 239, 24)) + } +} + +export class ExportedStaticNameFn { +>ExportedStaticNameFn : Symbol(ExportedStaticNameFn, Decl(staticPropertyNameConflicts.ts, 242, 1)) + + static [FunctionPropertyNames.name]() {} // error without useDefineForClassFields +>[FunctionPropertyNames.name] : Symbol(ExportedStaticNameFn[FunctionPropertyNames.name], Decl(staticPropertyNameConflicts.ts, 244, 35)) +>FunctionPropertyNames.name : Symbol(name, Decl(staticPropertyNameConflicts.ts, 0, 31)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>name : Symbol(name, Decl(staticPropertyNameConflicts.ts, 0, 31)) + + [FunctionPropertyNames.name]() {} // ok +>[FunctionPropertyNames.name] : Symbol(ExportedStaticNameFn[FunctionPropertyNames.name], Decl(staticPropertyNameConflicts.ts, 245, 44)) +>FunctionPropertyNames.name : Symbol(name, Decl(staticPropertyNameConflicts.ts, 0, 31)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>name : Symbol(name, Decl(staticPropertyNameConflicts.ts, 0, 31)) +} + +// length +namespace TestOnDefaultExportedClass_3 { +>TestOnDefaultExportedClass_3 : Symbol(TestOnDefaultExportedClass_3, Decl(staticPropertyNameConflicts.ts, 247, 1)) + + export default class StaticLength { +>StaticLength : Symbol(StaticLength, Decl(staticPropertyNameConflicts.ts, 250, 40)) + + static length: number; // error without useDefineForClassFields +>length : Symbol(StaticLength.length, Decl(staticPropertyNameConflicts.ts, 251, 39)) + + length: string; // ok +>length : Symbol(StaticLength.length, Decl(staticPropertyNameConflicts.ts, 252, 30)) + } +} + +export class ExportedStaticLength { +>ExportedStaticLength : Symbol(ExportedStaticLength, Decl(staticPropertyNameConflicts.ts, 255, 1)) + + static [FunctionPropertyNames.length]: number; // error without useDefineForClassFields +>[FunctionPropertyNames.length] : Symbol(ExportedStaticLength[FunctionPropertyNames.length], Decl(staticPropertyNameConflicts.ts, 257, 35)) +>FunctionPropertyNames.length : Symbol(length, Decl(staticPropertyNameConflicts.ts, 1, 17)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>length : Symbol(length, Decl(staticPropertyNameConflicts.ts, 1, 17)) + + [FunctionPropertyNames.length]: string; // ok +>[FunctionPropertyNames.length] : Symbol(ExportedStaticLength[FunctionPropertyNames.length], Decl(staticPropertyNameConflicts.ts, 258, 50)) +>FunctionPropertyNames.length : Symbol(length, Decl(staticPropertyNameConflicts.ts, 1, 17)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>length : Symbol(length, Decl(staticPropertyNameConflicts.ts, 1, 17)) +} + +namespace TestOnDefaultExportedClass_4 { +>TestOnDefaultExportedClass_4 : Symbol(TestOnDefaultExportedClass_4, Decl(staticPropertyNameConflicts.ts, 260, 1)) + + export default class StaticLengthFn { +>StaticLengthFn : Symbol(StaticLengthFn, Decl(staticPropertyNameConflicts.ts, 262, 40)) + + static length() {} // error without useDefineForClassFields +>length : Symbol(StaticLengthFn.length, Decl(staticPropertyNameConflicts.ts, 263, 41)) + + length() {} // ok +>length : Symbol(StaticLengthFn.length, Decl(staticPropertyNameConflicts.ts, 264, 26)) + } +} + +export class ExportedStaticLengthFn { +>ExportedStaticLengthFn : Symbol(ExportedStaticLengthFn, Decl(staticPropertyNameConflicts.ts, 267, 1)) + + static [FunctionPropertyNames.length]() {} // error without useDefineForClassFields +>[FunctionPropertyNames.length] : Symbol(ExportedStaticLengthFn[FunctionPropertyNames.length], Decl(staticPropertyNameConflicts.ts, 269, 37)) +>FunctionPropertyNames.length : Symbol(length, Decl(staticPropertyNameConflicts.ts, 1, 17)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>length : Symbol(length, Decl(staticPropertyNameConflicts.ts, 1, 17)) + + [FunctionPropertyNames.length]() {} // ok +>[FunctionPropertyNames.length] : Symbol(ExportedStaticLengthFn[FunctionPropertyNames.length], Decl(staticPropertyNameConflicts.ts, 270, 46)) +>FunctionPropertyNames.length : Symbol(length, Decl(staticPropertyNameConflicts.ts, 1, 17)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>length : Symbol(length, Decl(staticPropertyNameConflicts.ts, 1, 17)) +} + +// prototype +namespace TestOnDefaultExportedClass_5 { +>TestOnDefaultExportedClass_5 : Symbol(TestOnDefaultExportedClass_5, Decl(staticPropertyNameConflicts.ts, 272, 1)) + + export default class StaticPrototype { +>StaticPrototype : Symbol(StaticPrototype, Decl(staticPropertyNameConflicts.ts, 275, 40)) + + static prototype: number; // always an error +>prototype : Symbol(StaticPrototype.prototype, Decl(staticPropertyNameConflicts.ts, 276, 42)) + + prototype: string; // ok +>prototype : Symbol(StaticPrototype.prototype, Decl(staticPropertyNameConflicts.ts, 277, 33)) + } +} + +export class ExportedStaticPrototype { +>ExportedStaticPrototype : Symbol(ExportedStaticPrototype, Decl(staticPropertyNameConflicts.ts, 280, 1)) + + static [FunctionPropertyNames.prototype]: number; // always an error +>[FunctionPropertyNames.prototype] : Symbol(ExportedStaticPrototype[FunctionPropertyNames.prototype], Decl(staticPropertyNameConflicts.ts, 282, 38)) +>FunctionPropertyNames.prototype : Symbol(prototype, Decl(staticPropertyNameConflicts.ts, 2, 21)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>prototype : Symbol(prototype, Decl(staticPropertyNameConflicts.ts, 2, 21)) + + [FunctionPropertyNames.prototype]: string; // ok +>[FunctionPropertyNames.prototype] : Symbol(ExportedStaticPrototype[FunctionPropertyNames.prototype], Decl(staticPropertyNameConflicts.ts, 283, 53)) +>FunctionPropertyNames.prototype : Symbol(prototype, Decl(staticPropertyNameConflicts.ts, 2, 21)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>prototype : Symbol(prototype, Decl(staticPropertyNameConflicts.ts, 2, 21)) +} + +namespace TestOnDefaultExportedClass_6 { +>TestOnDefaultExportedClass_6 : Symbol(TestOnDefaultExportedClass_6, Decl(staticPropertyNameConflicts.ts, 285, 1)) + + export default class StaticPrototypeFn { +>StaticPrototypeFn : Symbol(StaticPrototypeFn, Decl(staticPropertyNameConflicts.ts, 287, 40)) + + static prototype() {} // always an error +>prototype : Symbol(StaticPrototypeFn.prototype, Decl(staticPropertyNameConflicts.ts, 288, 44)) + + prototype() {} // ok +>prototype : Symbol(StaticPrototypeFn.prototype, Decl(staticPropertyNameConflicts.ts, 289, 29)) + } +} + +export class ExportedStaticPrototypeFn { +>ExportedStaticPrototypeFn : Symbol(ExportedStaticPrototypeFn, Decl(staticPropertyNameConflicts.ts, 292, 1)) + + static [FunctionPropertyNames.prototype]() {} // always an error +>[FunctionPropertyNames.prototype] : Symbol(ExportedStaticPrototypeFn[FunctionPropertyNames.prototype], Decl(staticPropertyNameConflicts.ts, 294, 40)) +>FunctionPropertyNames.prototype : Symbol(prototype, Decl(staticPropertyNameConflicts.ts, 2, 21)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>prototype : Symbol(prototype, Decl(staticPropertyNameConflicts.ts, 2, 21)) + + [FunctionPropertyNames.prototype]() {} // ok +>[FunctionPropertyNames.prototype] : Symbol(ExportedStaticPrototypeFn[FunctionPropertyNames.prototype], Decl(staticPropertyNameConflicts.ts, 295, 49)) +>FunctionPropertyNames.prototype : Symbol(prototype, Decl(staticPropertyNameConflicts.ts, 2, 21)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>prototype : Symbol(prototype, Decl(staticPropertyNameConflicts.ts, 2, 21)) +} + +// caller +namespace TestOnDefaultExportedClass_7 { +>TestOnDefaultExportedClass_7 : Symbol(TestOnDefaultExportedClass_7, Decl(staticPropertyNameConflicts.ts, 297, 1)) + + export default class StaticCaller { +>StaticCaller : Symbol(StaticCaller, Decl(staticPropertyNameConflicts.ts, 300, 40)) + + static caller: number; // error without useDefineForClassFields +>caller : Symbol(StaticCaller.caller, Decl(staticPropertyNameConflicts.ts, 301, 39)) + + caller: string; // ok +>caller : Symbol(StaticCaller.caller, Decl(staticPropertyNameConflicts.ts, 302, 30)) + } +} + +export class ExportedStaticCaller { +>ExportedStaticCaller : Symbol(ExportedStaticCaller, Decl(staticPropertyNameConflicts.ts, 305, 1)) + + static [FunctionPropertyNames.caller]: number; // error without useDefineForClassFields +>[FunctionPropertyNames.caller] : Symbol(ExportedStaticCaller[FunctionPropertyNames.caller], Decl(staticPropertyNameConflicts.ts, 307, 35)) +>FunctionPropertyNames.caller : Symbol(caller, Decl(staticPropertyNameConflicts.ts, 3, 27)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>caller : Symbol(caller, Decl(staticPropertyNameConflicts.ts, 3, 27)) + + [FunctionPropertyNames.caller]: string; // ok +>[FunctionPropertyNames.caller] : Symbol(ExportedStaticCaller[FunctionPropertyNames.caller], Decl(staticPropertyNameConflicts.ts, 308, 50)) +>FunctionPropertyNames.caller : Symbol(caller, Decl(staticPropertyNameConflicts.ts, 3, 27)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>caller : Symbol(caller, Decl(staticPropertyNameConflicts.ts, 3, 27)) +} + +namespace TestOnDefaultExportedClass_8 { +>TestOnDefaultExportedClass_8 : Symbol(TestOnDefaultExportedClass_8, Decl(staticPropertyNameConflicts.ts, 310, 1)) + + export default class StaticCallerFn { +>StaticCallerFn : Symbol(StaticCallerFn, Decl(staticPropertyNameConflicts.ts, 312, 40)) + + static caller() {} // error without useDefineForClassFields +>caller : Symbol(StaticCallerFn.caller, Decl(staticPropertyNameConflicts.ts, 313, 41)) + + caller() {} // ok +>caller : Symbol(StaticCallerFn.caller, Decl(staticPropertyNameConflicts.ts, 314, 26)) + } +} + +export class ExportedStaticCallerFn { +>ExportedStaticCallerFn : Symbol(ExportedStaticCallerFn, Decl(staticPropertyNameConflicts.ts, 317, 1)) + + static [FunctionPropertyNames.caller]() {} // error without useDefineForClassFields +>[FunctionPropertyNames.caller] : Symbol(ExportedStaticCallerFn[FunctionPropertyNames.caller], Decl(staticPropertyNameConflicts.ts, 319, 37)) +>FunctionPropertyNames.caller : Symbol(caller, Decl(staticPropertyNameConflicts.ts, 3, 27)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>caller : Symbol(caller, Decl(staticPropertyNameConflicts.ts, 3, 27)) + + [FunctionPropertyNames.caller]() {} // ok +>[FunctionPropertyNames.caller] : Symbol(ExportedStaticCallerFn[FunctionPropertyNames.caller], Decl(staticPropertyNameConflicts.ts, 320, 46)) +>FunctionPropertyNames.caller : Symbol(caller, Decl(staticPropertyNameConflicts.ts, 3, 27)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>caller : Symbol(caller, Decl(staticPropertyNameConflicts.ts, 3, 27)) +} + +// arguments +namespace TestOnDefaultExportedClass_9 { +>TestOnDefaultExportedClass_9 : Symbol(TestOnDefaultExportedClass_9, Decl(staticPropertyNameConflicts.ts, 322, 1)) + + export default class StaticArguments { +>StaticArguments : Symbol(StaticArguments, Decl(staticPropertyNameConflicts.ts, 325, 40)) + + static arguments: number; // error without useDefineForClassFields +>arguments : Symbol(StaticArguments.arguments, Decl(staticPropertyNameConflicts.ts, 326, 42)) + + arguments: string; // ok +>arguments : Symbol(StaticArguments.arguments, Decl(staticPropertyNameConflicts.ts, 327, 33)) + } +} + +export class ExportedStaticArguments { +>ExportedStaticArguments : Symbol(ExportedStaticArguments, Decl(staticPropertyNameConflicts.ts, 330, 1)) + + static [FunctionPropertyNames.arguments]: number; // error without useDefineForClassFields +>[FunctionPropertyNames.arguments] : Symbol(ExportedStaticArguments[FunctionPropertyNames.arguments], Decl(staticPropertyNameConflicts.ts, 332, 38)) +>FunctionPropertyNames.arguments : Symbol(arguments, Decl(staticPropertyNameConflicts.ts, 4, 21)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>arguments : Symbol(arguments, Decl(staticPropertyNameConflicts.ts, 4, 21)) + + [FunctionPropertyNames.arguments]: string; // ok +>[FunctionPropertyNames.arguments] : Symbol(ExportedStaticArguments[FunctionPropertyNames.arguments], Decl(staticPropertyNameConflicts.ts, 333, 53)) +>FunctionPropertyNames.arguments : Symbol(arguments, Decl(staticPropertyNameConflicts.ts, 4, 21)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>arguments : Symbol(arguments, Decl(staticPropertyNameConflicts.ts, 4, 21)) +} + +namespace TestOnDefaultExportedClass_10 { +>TestOnDefaultExportedClass_10 : Symbol(TestOnDefaultExportedClass_10, Decl(staticPropertyNameConflicts.ts, 335, 1)) + + export default class StaticArgumentsFn { +>StaticArgumentsFn : Symbol(StaticArgumentsFn, Decl(staticPropertyNameConflicts.ts, 337, 41)) + + static arguments() {} // error without useDefineForClassFields +>arguments : Symbol(StaticArgumentsFn.arguments, Decl(staticPropertyNameConflicts.ts, 338, 44)) + + arguments() {} // ok +>arguments : Symbol(StaticArgumentsFn.arguments, Decl(staticPropertyNameConflicts.ts, 339, 29)) + } +} + +export class ExportedStaticArgumentsFn { +>ExportedStaticArgumentsFn : Symbol(ExportedStaticArgumentsFn, Decl(staticPropertyNameConflicts.ts, 342, 1)) + + static [FunctionPropertyNames.arguments]() {} // error without useDefineForClassFields +>[FunctionPropertyNames.arguments] : Symbol(ExportedStaticArgumentsFn[FunctionPropertyNames.arguments], Decl(staticPropertyNameConflicts.ts, 344, 40)) +>FunctionPropertyNames.arguments : Symbol(arguments, Decl(staticPropertyNameConflicts.ts, 4, 21)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>arguments : Symbol(arguments, Decl(staticPropertyNameConflicts.ts, 4, 21)) + + [FunctionPropertyNames.arguments]() {} // ok +>[FunctionPropertyNames.arguments] : Symbol(ExportedStaticArgumentsFn[FunctionPropertyNames.arguments], Decl(staticPropertyNameConflicts.ts, 345, 49)) +>FunctionPropertyNames.arguments : Symbol(arguments, Decl(staticPropertyNameConflicts.ts, 4, 21)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>arguments : Symbol(arguments, Decl(staticPropertyNameConflicts.ts, 4, 21)) +} diff --git a/tests/baselines/reference/staticPropertyNameConflicts(target=es5,usedefineforclassfields=false).types b/tests/baselines/reference/staticPropertyNameConflicts(target=es5,usedefineforclassfields=false).types new file mode 100644 index 0000000000000..ea7ff4d80440a --- /dev/null +++ b/tests/baselines/reference/staticPropertyNameConflicts(target=es5,usedefineforclassfields=false).types @@ -0,0 +1,1293 @@ +//// [tests/cases/conformance/classes/propertyMemberDeclarations/staticPropertyNameConflicts.ts] //// + +=== staticPropertyNameConflicts.ts === +const FunctionPropertyNames = { +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ name: 'name', length: 'length', prototype: 'prototype', caller: 'caller', arguments: 'arguments',} as const : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ name: 'name', length: 'length', prototype: 'prototype', caller: 'caller', arguments: 'arguments',} : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + name: 'name', +>name : "name" +> : ^^^^^^ +>'name' : "name" +> : ^^^^^^ + + length: 'length', +>length : "length" +> : ^^^^^^^^ +>'length' : "length" +> : ^^^^^^^^ + + prototype: 'prototype', +>prototype : "prototype" +> : ^^^^^^^^^^^ +>'prototype' : "prototype" +> : ^^^^^^^^^^^ + + caller: 'caller', +>caller : "caller" +> : ^^^^^^^^ +>'caller' : "caller" +> : ^^^^^^^^ + + arguments: 'arguments', +>arguments : "arguments" +> : ^^^^^^^^^^^ +>'arguments' : "arguments" +> : ^^^^^^^^^^^ + +} as const; + +// name +class StaticName { +>StaticName : StaticName +> : ^^^^^^^^^^ + + static name: number; // error without useDefineForClassFields +>name : number +> : ^^^^^^ + + name: string; // ok +>name : string +> : ^^^^^^ +} + +class StaticName2 { +>StaticName2 : StaticName2 +> : ^^^^^^^^^^^ + + static [FunctionPropertyNames.name]: number; // error without useDefineForClassFields +>[FunctionPropertyNames.name] : number +> : ^^^^^^ +>FunctionPropertyNames.name : "name" +> : ^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>name : "name" +> : ^^^^^^ + + [FunctionPropertyNames.name]: number; // ok +>[FunctionPropertyNames.name] : number +> : ^^^^^^ +>FunctionPropertyNames.name : "name" +> : ^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>name : "name" +> : ^^^^^^ +} + +class StaticNameFn { +>StaticNameFn : StaticNameFn +> : ^^^^^^^^^^^^ + + static name() {} // error without useDefineForClassFields +>name : () => void +> : ^^^^^^^^^^ + + name() {} // ok +>name : () => void +> : ^^^^^^^^^^ +} + +class StaticNameFn2 { +>StaticNameFn2 : StaticNameFn2 +> : ^^^^^^^^^^^^^ + + static [FunctionPropertyNames.name]() {} // error without useDefineForClassFields +>[FunctionPropertyNames.name] : () => void +> : ^^^^^^^^^^ +>FunctionPropertyNames.name : "name" +> : ^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>name : "name" +> : ^^^^^^ + + [FunctionPropertyNames.name]() {} // ok +>[FunctionPropertyNames.name] : () => void +> : ^^^^^^^^^^ +>FunctionPropertyNames.name : "name" +> : ^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>name : "name" +> : ^^^^^^ +} + +// length +class StaticLength { +>StaticLength : StaticLength +> : ^^^^^^^^^^^^ + + static length: number; // error without useDefineForClassFields +>length : number +> : ^^^^^^ + + length: string; // ok +>length : string +> : ^^^^^^ +} + +class StaticLength2 { +>StaticLength2 : StaticLength2 +> : ^^^^^^^^^^^^^ + + static [FunctionPropertyNames.length]: number; // error without useDefineForClassFields +>[FunctionPropertyNames.length] : number +> : ^^^^^^ +>FunctionPropertyNames.length : "length" +> : ^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>length : "length" +> : ^^^^^^^^ + + [FunctionPropertyNames.length]: number; // ok +>[FunctionPropertyNames.length] : number +> : ^^^^^^ +>FunctionPropertyNames.length : "length" +> : ^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>length : "length" +> : ^^^^^^^^ +} + +class StaticLengthFn { +>StaticLengthFn : StaticLengthFn +> : ^^^^^^^^^^^^^^ + + static length() {} // error without useDefineForClassFields +>length : () => void +> : ^^^^^^^^^^ + + length() {} // ok +>length : () => void +> : ^^^^^^^^^^ +} + +class StaticLengthFn2 { +>StaticLengthFn2 : StaticLengthFn2 +> : ^^^^^^^^^^^^^^^ + + static [FunctionPropertyNames.length]() {} // error without useDefineForClassFields +>[FunctionPropertyNames.length] : () => void +> : ^^^^^^^^^^ +>FunctionPropertyNames.length : "length" +> : ^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>length : "length" +> : ^^^^^^^^ + + [FunctionPropertyNames.length]() {} // ok +>[FunctionPropertyNames.length] : () => void +> : ^^^^^^^^^^ +>FunctionPropertyNames.length : "length" +> : ^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>length : "length" +> : ^^^^^^^^ +} + +// prototype +class StaticPrototype { +>StaticPrototype : StaticPrototype +> : ^^^^^^^^^^^^^^^ + + static prototype: number; // always an error +>prototype : StaticPrototype +> : ^^^^^^^^^^^^^^^ + + prototype: string; // ok +>prototype : string +> : ^^^^^^ +} + +class StaticPrototype2 { +>StaticPrototype2 : StaticPrototype2 +> : ^^^^^^^^^^^^^^^^ + + static [FunctionPropertyNames.prototype]: number; // always an error +>[FunctionPropertyNames.prototype] : StaticPrototype2 +> : ^^^^^^^^^^^^^^^^ +>FunctionPropertyNames.prototype : "prototype" +> : ^^^^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>prototype : "prototype" +> : ^^^^^^^^^^^ + + [FunctionPropertyNames.prototype]: string; // ok +>[FunctionPropertyNames.prototype] : string +> : ^^^^^^ +>FunctionPropertyNames.prototype : "prototype" +> : ^^^^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>prototype : "prototype" +> : ^^^^^^^^^^^ +} + +class StaticPrototypeFn { +>StaticPrototypeFn : StaticPrototypeFn +> : ^^^^^^^^^^^^^^^^^ + + static prototype() {} // always an error +>prototype : () => void +> : ^^^^^^^^^^ + + prototype() {} // ok +>prototype : () => void +> : ^^^^^^^^^^ +} + +class StaticPrototypeFn2 { +>StaticPrototypeFn2 : StaticPrototypeFn2 +> : ^^^^^^^^^^^^^^^^^^ + + static [FunctionPropertyNames.prototype]() {} // always an error +>[FunctionPropertyNames.prototype] : () => void +> : ^^^^^^^^^^ +>FunctionPropertyNames.prototype : "prototype" +> : ^^^^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>prototype : "prototype" +> : ^^^^^^^^^^^ + + [FunctionPropertyNames.prototype]() {} // ok +>[FunctionPropertyNames.prototype] : () => void +> : ^^^^^^^^^^ +>FunctionPropertyNames.prototype : "prototype" +> : ^^^^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>prototype : "prototype" +> : ^^^^^^^^^^^ +} + +// caller +class StaticCaller { +>StaticCaller : StaticCaller +> : ^^^^^^^^^^^^ + + static caller: number; // error without useDefineForClassFields +>caller : number +> : ^^^^^^ + + caller: string; // ok +>caller : string +> : ^^^^^^ +} + +class StaticCaller2 { +>StaticCaller2 : StaticCaller2 +> : ^^^^^^^^^^^^^ + + static [FunctionPropertyNames.caller]: number; // error without useDefineForClassFields +>[FunctionPropertyNames.caller] : number +> : ^^^^^^ +>FunctionPropertyNames.caller : "caller" +> : ^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>caller : "caller" +> : ^^^^^^^^ + + [FunctionPropertyNames.caller]: string; // ok +>[FunctionPropertyNames.caller] : string +> : ^^^^^^ +>FunctionPropertyNames.caller : "caller" +> : ^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>caller : "caller" +> : ^^^^^^^^ +} + +class StaticCallerFn { +>StaticCallerFn : StaticCallerFn +> : ^^^^^^^^^^^^^^ + + static caller() {} // error without useDefineForClassFields +>caller : () => void +> : ^^^^^^^^^^ + + caller() {} // ok +>caller : () => void +> : ^^^^^^^^^^ +} + +class StaticCallerFn2 { +>StaticCallerFn2 : StaticCallerFn2 +> : ^^^^^^^^^^^^^^^ + + static [FunctionPropertyNames.caller]() {} // error without useDefineForClassFields +>[FunctionPropertyNames.caller] : () => void +> : ^^^^^^^^^^ +>FunctionPropertyNames.caller : "caller" +> : ^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>caller : "caller" +> : ^^^^^^^^ + + [FunctionPropertyNames.caller]() {} // ok +>[FunctionPropertyNames.caller] : () => void +> : ^^^^^^^^^^ +>FunctionPropertyNames.caller : "caller" +> : ^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>caller : "caller" +> : ^^^^^^^^ +} + +// arguments +class StaticArguments { +>StaticArguments : StaticArguments +> : ^^^^^^^^^^^^^^^ + + static arguments: number; // error without useDefineForClassFields +>arguments : number +> : ^^^^^^ + + arguments: string; // ok +>arguments : string +> : ^^^^^^ +} + +class StaticArguments2 { +>StaticArguments2 : StaticArguments2 +> : ^^^^^^^^^^^^^^^^ + + static [FunctionPropertyNames.arguments]: number; // error without useDefineForClassFields +>[FunctionPropertyNames.arguments] : number +> : ^^^^^^ +>FunctionPropertyNames.arguments : "arguments" +> : ^^^^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>arguments : "arguments" +> : ^^^^^^^^^^^ + + [FunctionPropertyNames.arguments]: string; // ok +>[FunctionPropertyNames.arguments] : string +> : ^^^^^^ +>FunctionPropertyNames.arguments : "arguments" +> : ^^^^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>arguments : "arguments" +> : ^^^^^^^^^^^ +} + +class StaticArgumentsFn { +>StaticArgumentsFn : StaticArgumentsFn +> : ^^^^^^^^^^^^^^^^^ + + static arguments() {} // error without useDefineForClassFields +>arguments : () => void +> : ^^^^^^^^^^ + + arguments() {} // ok +>arguments : () => void +> : ^^^^^^^^^^ +} + +class StaticArgumentsFn2 { +>StaticArgumentsFn2 : StaticArgumentsFn2 +> : ^^^^^^^^^^^^^^^^^^ + + static [FunctionPropertyNames.arguments]() {} // error without useDefineForClassFields +>[FunctionPropertyNames.arguments] : () => void +> : ^^^^^^^^^^ +>FunctionPropertyNames.arguments : "arguments" +> : ^^^^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>arguments : "arguments" +> : ^^^^^^^^^^^ + + [FunctionPropertyNames.arguments]() {} // ok +>[FunctionPropertyNames.arguments] : () => void +> : ^^^^^^^^^^ +>FunctionPropertyNames.arguments : "arguments" +> : ^^^^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>arguments : "arguments" +> : ^^^^^^^^^^^ +} + + +// === Static properties on anonymous classes === + +// name +var StaticName_Anonymous = class { +>StaticName_Anonymous : typeof StaticName_Anonymous +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>class { static name: number; // error without useDefineForClassFields name: string; // ok} : typeof StaticName_Anonymous +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static name: number; // error without useDefineForClassFields +>name : number +> : ^^^^^^ + + name: string; // ok +>name : string +> : ^^^^^^ +} + +var StaticName_Anonymous2 = class { +>StaticName_Anonymous2 : typeof StaticName_Anonymous2 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>class { static [FunctionPropertyNames.name]: number; // error without useDefineForClassFields [FunctionPropertyNames.name]: string; // ok} : typeof StaticName_Anonymous2 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static [FunctionPropertyNames.name]: number; // error without useDefineForClassFields +>[FunctionPropertyNames.name] : number +> : ^^^^^^ +>FunctionPropertyNames.name : "name" +> : ^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>name : "name" +> : ^^^^^^ + + [FunctionPropertyNames.name]: string; // ok +>[FunctionPropertyNames.name] : string +> : ^^^^^^ +>FunctionPropertyNames.name : "name" +> : ^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>name : "name" +> : ^^^^^^ +} + +var StaticNameFn_Anonymous = class { +>StaticNameFn_Anonymous : typeof StaticNameFn_Anonymous +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>class { static name() {} // error without useDefineForClassFields name() {} // ok} : typeof StaticNameFn_Anonymous +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static name() {} // error without useDefineForClassFields +>name : () => void +> : ^^^^^^^^^^ + + name() {} // ok +>name : () => void +> : ^^^^^^^^^^ +} + +var StaticNameFn_Anonymous2 = class { +>StaticNameFn_Anonymous2 : typeof StaticNameFn_Anonymous2 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>class { static [FunctionPropertyNames.name]() {} // error without useDefineForClassFields [FunctionPropertyNames.name]() {} // ok} : typeof StaticNameFn_Anonymous2 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static [FunctionPropertyNames.name]() {} // error without useDefineForClassFields +>[FunctionPropertyNames.name] : () => void +> : ^^^^^^^^^^ +>FunctionPropertyNames.name : "name" +> : ^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>name : "name" +> : ^^^^^^ + + [FunctionPropertyNames.name]() {} // ok +>[FunctionPropertyNames.name] : () => void +> : ^^^^^^^^^^ +>FunctionPropertyNames.name : "name" +> : ^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>name : "name" +> : ^^^^^^ +} + +// length +var StaticLength_Anonymous = class { +>StaticLength_Anonymous : typeof StaticLength_Anonymous +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>class { static length: number; // error without useDefineForClassFields length: string; // ok} : typeof StaticLength_Anonymous +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static length: number; // error without useDefineForClassFields +>length : number +> : ^^^^^^ + + length: string; // ok +>length : string +> : ^^^^^^ +} + +var StaticLength_Anonymous2 = class { +>StaticLength_Anonymous2 : typeof StaticLength_Anonymous2 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>class { static [FunctionPropertyNames.length]: number; // error without useDefineForClassFields [FunctionPropertyNames.length]: string; // ok} : typeof StaticLength_Anonymous2 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static [FunctionPropertyNames.length]: number; // error without useDefineForClassFields +>[FunctionPropertyNames.length] : number +> : ^^^^^^ +>FunctionPropertyNames.length : "length" +> : ^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>length : "length" +> : ^^^^^^^^ + + [FunctionPropertyNames.length]: string; // ok +>[FunctionPropertyNames.length] : string +> : ^^^^^^ +>FunctionPropertyNames.length : "length" +> : ^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>length : "length" +> : ^^^^^^^^ +} + +var StaticLengthFn_Anonymous = class { +>StaticLengthFn_Anonymous : typeof StaticLengthFn_Anonymous +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>class { static length() {} // error without useDefineForClassFields length() {} // ok} : typeof StaticLengthFn_Anonymous +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static length() {} // error without useDefineForClassFields +>length : () => void +> : ^^^^^^^^^^ + + length() {} // ok +>length : () => void +> : ^^^^^^^^^^ +} + +var StaticLengthFn_Anonymous2 = class { +>StaticLengthFn_Anonymous2 : typeof StaticLengthFn_Anonymous2 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>class { static [FunctionPropertyNames.length]() {} // error without useDefineForClassFields [FunctionPropertyNames.length]() {} // ok} : typeof StaticLengthFn_Anonymous2 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static [FunctionPropertyNames.length]() {} // error without useDefineForClassFields +>[FunctionPropertyNames.length] : () => void +> : ^^^^^^^^^^ +>FunctionPropertyNames.length : "length" +> : ^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>length : "length" +> : ^^^^^^^^ + + [FunctionPropertyNames.length]() {} // ok +>[FunctionPropertyNames.length] : () => void +> : ^^^^^^^^^^ +>FunctionPropertyNames.length : "length" +> : ^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>length : "length" +> : ^^^^^^^^ +} + +// prototype +var StaticPrototype_Anonymous = class { +>StaticPrototype_Anonymous : typeof StaticPrototype_Anonymous +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>class { static prototype: number; // always an error prototype: string; // ok} : typeof StaticPrototype_Anonymous +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static prototype: number; // always an error +>prototype : StaticPrototype_Anonymous +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ + + prototype: string; // ok +>prototype : string +> : ^^^^^^ +} + +var StaticPrototype_Anonymous2 = class { +>StaticPrototype_Anonymous2 : typeof StaticPrototype_Anonymous2 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>class { static [FunctionPropertyNames.prototype]: number; // always an error [FunctionPropertyNames.prototype]: string; // ok} : typeof StaticPrototype_Anonymous2 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static [FunctionPropertyNames.prototype]: number; // always an error +>[FunctionPropertyNames.prototype] : StaticPrototype_Anonymous2 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^ +>FunctionPropertyNames.prototype : "prototype" +> : ^^^^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>prototype : "prototype" +> : ^^^^^^^^^^^ + + [FunctionPropertyNames.prototype]: string; // ok +>[FunctionPropertyNames.prototype] : string +> : ^^^^^^ +>FunctionPropertyNames.prototype : "prototype" +> : ^^^^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>prototype : "prototype" +> : ^^^^^^^^^^^ +} + +var StaticPrototypeFn_Anonymous = class { +>StaticPrototypeFn_Anonymous : typeof StaticPrototypeFn_Anonymous +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>class { static prototype() {} // always an error prototype() {} // ok} : typeof StaticPrototypeFn_Anonymous +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static prototype() {} // always an error +>prototype : () => void +> : ^^^^^^^^^^ + + prototype() {} // ok +>prototype : () => void +> : ^^^^^^^^^^ +} + +var StaticPrototypeFn_Anonymous2 = class { +>StaticPrototypeFn_Anonymous2 : typeof StaticPrototypeFn_Anonymous2 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>class { static [FunctionPropertyNames.prototype]() {} // always an error [FunctionPropertyNames.prototype]() {} // ok} : typeof StaticPrototypeFn_Anonymous2 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static [FunctionPropertyNames.prototype]() {} // always an error +>[FunctionPropertyNames.prototype] : () => void +> : ^^^^^^^^^^ +>FunctionPropertyNames.prototype : "prototype" +> : ^^^^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>prototype : "prototype" +> : ^^^^^^^^^^^ + + [FunctionPropertyNames.prototype]() {} // ok +>[FunctionPropertyNames.prototype] : () => void +> : ^^^^^^^^^^ +>FunctionPropertyNames.prototype : "prototype" +> : ^^^^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>prototype : "prototype" +> : ^^^^^^^^^^^ +} + +// caller +var StaticCaller_Anonymous = class { +>StaticCaller_Anonymous : typeof StaticCaller_Anonymous +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>class { static caller: number; // error without useDefineForClassFields caller: string; // ok} : typeof StaticCaller_Anonymous +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static caller: number; // error without useDefineForClassFields +>caller : number +> : ^^^^^^ + + caller: string; // ok +>caller : string +> : ^^^^^^ +} + +var StaticCaller_Anonymous2 = class { +>StaticCaller_Anonymous2 : typeof StaticCaller_Anonymous2 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>class { static [FunctionPropertyNames.caller]: number; // error without useDefineForClassFields [FunctionPropertyNames.caller]: string; // ok} : typeof StaticCaller_Anonymous2 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static [FunctionPropertyNames.caller]: number; // error without useDefineForClassFields +>[FunctionPropertyNames.caller] : number +> : ^^^^^^ +>FunctionPropertyNames.caller : "caller" +> : ^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>caller : "caller" +> : ^^^^^^^^ + + [FunctionPropertyNames.caller]: string; // ok +>[FunctionPropertyNames.caller] : string +> : ^^^^^^ +>FunctionPropertyNames.caller : "caller" +> : ^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>caller : "caller" +> : ^^^^^^^^ +} + +var StaticCallerFn_Anonymous = class { +>StaticCallerFn_Anonymous : typeof StaticCallerFn_Anonymous +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>class { static caller() {} // error without useDefineForClassFields caller() {} // ok} : typeof StaticCallerFn_Anonymous +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static caller() {} // error without useDefineForClassFields +>caller : () => void +> : ^^^^^^^^^^ + + caller() {} // ok +>caller : () => void +> : ^^^^^^^^^^ +} + +var StaticCallerFn_Anonymous2 = class { +>StaticCallerFn_Anonymous2 : typeof StaticCallerFn_Anonymous2 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>class { static [FunctionPropertyNames.caller]() {} // error without useDefineForClassFields [FunctionPropertyNames.caller]() {} // ok} : typeof StaticCallerFn_Anonymous2 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static [FunctionPropertyNames.caller]() {} // error without useDefineForClassFields +>[FunctionPropertyNames.caller] : () => void +> : ^^^^^^^^^^ +>FunctionPropertyNames.caller : "caller" +> : ^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>caller : "caller" +> : ^^^^^^^^ + + [FunctionPropertyNames.caller]() {} // ok +>[FunctionPropertyNames.caller] : () => void +> : ^^^^^^^^^^ +>FunctionPropertyNames.caller : "caller" +> : ^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>caller : "caller" +> : ^^^^^^^^ +} + +// arguments +var StaticArguments_Anonymous = class { +>StaticArguments_Anonymous : typeof StaticArguments_Anonymous +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>class { static arguments: number; // error without useDefineForClassFields arguments: string; // ok} : typeof StaticArguments_Anonymous +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static arguments: number; // error without useDefineForClassFields +>arguments : number +> : ^^^^^^ + + arguments: string; // ok +>arguments : string +> : ^^^^^^ +} + +var StaticArguments_Anonymous2 = class { +>StaticArguments_Anonymous2 : typeof StaticArguments_Anonymous2 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>class { static [FunctionPropertyNames.arguments]: number; // error without useDefineForClassFields [FunctionPropertyNames.arguments]: string; // ok} : typeof StaticArguments_Anonymous2 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static [FunctionPropertyNames.arguments]: number; // error without useDefineForClassFields +>[FunctionPropertyNames.arguments] : number +> : ^^^^^^ +>FunctionPropertyNames.arguments : "arguments" +> : ^^^^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>arguments : "arguments" +> : ^^^^^^^^^^^ + + [FunctionPropertyNames.arguments]: string; // ok +>[FunctionPropertyNames.arguments] : string +> : ^^^^^^ +>FunctionPropertyNames.arguments : "arguments" +> : ^^^^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>arguments : "arguments" +> : ^^^^^^^^^^^ +} + +var StaticArgumentsFn_Anonymous = class { +>StaticArgumentsFn_Anonymous : typeof StaticArgumentsFn_Anonymous +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>class { static arguments() {} // error without useDefineForClassFields arguments() {} // ok} : typeof StaticArgumentsFn_Anonymous +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static arguments() {} // error without useDefineForClassFields +>arguments : () => void +> : ^^^^^^^^^^ + + arguments() {} // ok +>arguments : () => void +> : ^^^^^^^^^^ +} + +var StaticArgumentsFn_Anonymous2 = class { +>StaticArgumentsFn_Anonymous2 : typeof StaticArgumentsFn_Anonymous2 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>class { static [FunctionPropertyNames.arguments]() {} // error without useDefineForClassFields [FunctionPropertyNames.arguments]() {} // ok} : typeof StaticArgumentsFn_Anonymous2 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static [FunctionPropertyNames.arguments]() {} // error without useDefineForClassFields +>[FunctionPropertyNames.arguments] : () => void +> : ^^^^^^^^^^ +>FunctionPropertyNames.arguments : "arguments" +> : ^^^^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>arguments : "arguments" +> : ^^^^^^^^^^^ + + [FunctionPropertyNames.arguments]() {} // ok +>[FunctionPropertyNames.arguments] : () => void +> : ^^^^^^^^^^ +>FunctionPropertyNames.arguments : "arguments" +> : ^^^^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>arguments : "arguments" +> : ^^^^^^^^^^^ +} + + +// === Static properties on default exported classes === + +// name +namespace TestOnDefaultExportedClass_1 { +>TestOnDefaultExportedClass_1 : typeof TestOnDefaultExportedClass_1 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + class StaticName { +>StaticName : StaticName +> : ^^^^^^^^^^ + + static name: number; // error without useDefineForClassFields +>name : number +> : ^^^^^^ + + name: string; // ok +>name : string +> : ^^^^^^ + } +} + +export class ExportedStaticName { +>ExportedStaticName : ExportedStaticName +> : ^^^^^^^^^^^^^^^^^^ + + static [FunctionPropertyNames.name]: number; // error without useDefineForClassFields +>[FunctionPropertyNames.name] : number +> : ^^^^^^ +>FunctionPropertyNames.name : "name" +> : ^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>name : "name" +> : ^^^^^^ + + [FunctionPropertyNames.name]: string; // ok +>[FunctionPropertyNames.name] : string +> : ^^^^^^ +>FunctionPropertyNames.name : "name" +> : ^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>name : "name" +> : ^^^^^^ +} + +namespace TestOnDefaultExportedClass_2 { +>TestOnDefaultExportedClass_2 : typeof TestOnDefaultExportedClass_2 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + class StaticNameFn { +>StaticNameFn : StaticNameFn +> : ^^^^^^^^^^^^ + + static name() {} // error without useDefineForClassFields +>name : () => void +> : ^^^^^^^^^^ + + name() {} // ok +>name : () => void +> : ^^^^^^^^^^ + } +} + +export class ExportedStaticNameFn { +>ExportedStaticNameFn : ExportedStaticNameFn +> : ^^^^^^^^^^^^^^^^^^^^ + + static [FunctionPropertyNames.name]() {} // error without useDefineForClassFields +>[FunctionPropertyNames.name] : () => void +> : ^^^^^^^^^^ +>FunctionPropertyNames.name : "name" +> : ^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>name : "name" +> : ^^^^^^ + + [FunctionPropertyNames.name]() {} // ok +>[FunctionPropertyNames.name] : () => void +> : ^^^^^^^^^^ +>FunctionPropertyNames.name : "name" +> : ^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>name : "name" +> : ^^^^^^ +} + +// length +namespace TestOnDefaultExportedClass_3 { +>TestOnDefaultExportedClass_3 : typeof TestOnDefaultExportedClass_3 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + export default class StaticLength { +>StaticLength : StaticLength +> : ^^^^^^^^^^^^ + + static length: number; // error without useDefineForClassFields +>length : number +> : ^^^^^^ + + length: string; // ok +>length : string +> : ^^^^^^ + } +} + +export class ExportedStaticLength { +>ExportedStaticLength : ExportedStaticLength +> : ^^^^^^^^^^^^^^^^^^^^ + + static [FunctionPropertyNames.length]: number; // error without useDefineForClassFields +>[FunctionPropertyNames.length] : number +> : ^^^^^^ +>FunctionPropertyNames.length : "length" +> : ^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>length : "length" +> : ^^^^^^^^ + + [FunctionPropertyNames.length]: string; // ok +>[FunctionPropertyNames.length] : string +> : ^^^^^^ +>FunctionPropertyNames.length : "length" +> : ^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>length : "length" +> : ^^^^^^^^ +} + +namespace TestOnDefaultExportedClass_4 { +>TestOnDefaultExportedClass_4 : typeof TestOnDefaultExportedClass_4 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + export default class StaticLengthFn { +>StaticLengthFn : StaticLengthFn +> : ^^^^^^^^^^^^^^ + + static length() {} // error without useDefineForClassFields +>length : () => void +> : ^^^^^^^^^^ + + length() {} // ok +>length : () => void +> : ^^^^^^^^^^ + } +} + +export class ExportedStaticLengthFn { +>ExportedStaticLengthFn : ExportedStaticLengthFn +> : ^^^^^^^^^^^^^^^^^^^^^^ + + static [FunctionPropertyNames.length]() {} // error without useDefineForClassFields +>[FunctionPropertyNames.length] : () => void +> : ^^^^^^^^^^ +>FunctionPropertyNames.length : "length" +> : ^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>length : "length" +> : ^^^^^^^^ + + [FunctionPropertyNames.length]() {} // ok +>[FunctionPropertyNames.length] : () => void +> : ^^^^^^^^^^ +>FunctionPropertyNames.length : "length" +> : ^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>length : "length" +> : ^^^^^^^^ +} + +// prototype +namespace TestOnDefaultExportedClass_5 { +>TestOnDefaultExportedClass_5 : typeof TestOnDefaultExportedClass_5 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + export default class StaticPrototype { +>StaticPrototype : StaticPrototype +> : ^^^^^^^^^^^^^^^ + + static prototype: number; // always an error +>prototype : StaticPrototype +> : ^^^^^^^^^^^^^^^ + + prototype: string; // ok +>prototype : string +> : ^^^^^^ + } +} + +export class ExportedStaticPrototype { +>ExportedStaticPrototype : ExportedStaticPrototype +> : ^^^^^^^^^^^^^^^^^^^^^^^ + + static [FunctionPropertyNames.prototype]: number; // always an error +>[FunctionPropertyNames.prototype] : ExportedStaticPrototype +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>FunctionPropertyNames.prototype : "prototype" +> : ^^^^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>prototype : "prototype" +> : ^^^^^^^^^^^ + + [FunctionPropertyNames.prototype]: string; // ok +>[FunctionPropertyNames.prototype] : string +> : ^^^^^^ +>FunctionPropertyNames.prototype : "prototype" +> : ^^^^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>prototype : "prototype" +> : ^^^^^^^^^^^ +} + +namespace TestOnDefaultExportedClass_6 { +>TestOnDefaultExportedClass_6 : typeof TestOnDefaultExportedClass_6 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + export default class StaticPrototypeFn { +>StaticPrototypeFn : StaticPrototypeFn +> : ^^^^^^^^^^^^^^^^^ + + static prototype() {} // always an error +>prototype : () => void +> : ^^^^^^^^^^ + + prototype() {} // ok +>prototype : () => void +> : ^^^^^^^^^^ + } +} + +export class ExportedStaticPrototypeFn { +>ExportedStaticPrototypeFn : ExportedStaticPrototypeFn +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ + + static [FunctionPropertyNames.prototype]() {} // always an error +>[FunctionPropertyNames.prototype] : () => void +> : ^^^^^^^^^^ +>FunctionPropertyNames.prototype : "prototype" +> : ^^^^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>prototype : "prototype" +> : ^^^^^^^^^^^ + + [FunctionPropertyNames.prototype]() {} // ok +>[FunctionPropertyNames.prototype] : () => void +> : ^^^^^^^^^^ +>FunctionPropertyNames.prototype : "prototype" +> : ^^^^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>prototype : "prototype" +> : ^^^^^^^^^^^ +} + +// caller +namespace TestOnDefaultExportedClass_7 { +>TestOnDefaultExportedClass_7 : typeof TestOnDefaultExportedClass_7 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + export default class StaticCaller { +>StaticCaller : StaticCaller +> : ^^^^^^^^^^^^ + + static caller: number; // error without useDefineForClassFields +>caller : number +> : ^^^^^^ + + caller: string; // ok +>caller : string +> : ^^^^^^ + } +} + +export class ExportedStaticCaller { +>ExportedStaticCaller : ExportedStaticCaller +> : ^^^^^^^^^^^^^^^^^^^^ + + static [FunctionPropertyNames.caller]: number; // error without useDefineForClassFields +>[FunctionPropertyNames.caller] : number +> : ^^^^^^ +>FunctionPropertyNames.caller : "caller" +> : ^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>caller : "caller" +> : ^^^^^^^^ + + [FunctionPropertyNames.caller]: string; // ok +>[FunctionPropertyNames.caller] : string +> : ^^^^^^ +>FunctionPropertyNames.caller : "caller" +> : ^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>caller : "caller" +> : ^^^^^^^^ +} + +namespace TestOnDefaultExportedClass_8 { +>TestOnDefaultExportedClass_8 : typeof TestOnDefaultExportedClass_8 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + export default class StaticCallerFn { +>StaticCallerFn : StaticCallerFn +> : ^^^^^^^^^^^^^^ + + static caller() {} // error without useDefineForClassFields +>caller : () => void +> : ^^^^^^^^^^ + + caller() {} // ok +>caller : () => void +> : ^^^^^^^^^^ + } +} + +export class ExportedStaticCallerFn { +>ExportedStaticCallerFn : ExportedStaticCallerFn +> : ^^^^^^^^^^^^^^^^^^^^^^ + + static [FunctionPropertyNames.caller]() {} // error without useDefineForClassFields +>[FunctionPropertyNames.caller] : () => void +> : ^^^^^^^^^^ +>FunctionPropertyNames.caller : "caller" +> : ^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>caller : "caller" +> : ^^^^^^^^ + + [FunctionPropertyNames.caller]() {} // ok +>[FunctionPropertyNames.caller] : () => void +> : ^^^^^^^^^^ +>FunctionPropertyNames.caller : "caller" +> : ^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>caller : "caller" +> : ^^^^^^^^ +} + +// arguments +namespace TestOnDefaultExportedClass_9 { +>TestOnDefaultExportedClass_9 : typeof TestOnDefaultExportedClass_9 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + export default class StaticArguments { +>StaticArguments : StaticArguments +> : ^^^^^^^^^^^^^^^ + + static arguments: number; // error without useDefineForClassFields +>arguments : number +> : ^^^^^^ + + arguments: string; // ok +>arguments : string +> : ^^^^^^ + } +} + +export class ExportedStaticArguments { +>ExportedStaticArguments : ExportedStaticArguments +> : ^^^^^^^^^^^^^^^^^^^^^^^ + + static [FunctionPropertyNames.arguments]: number; // error without useDefineForClassFields +>[FunctionPropertyNames.arguments] : number +> : ^^^^^^ +>FunctionPropertyNames.arguments : "arguments" +> : ^^^^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>arguments : "arguments" +> : ^^^^^^^^^^^ + + [FunctionPropertyNames.arguments]: string; // ok +>[FunctionPropertyNames.arguments] : string +> : ^^^^^^ +>FunctionPropertyNames.arguments : "arguments" +> : ^^^^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>arguments : "arguments" +> : ^^^^^^^^^^^ +} + +namespace TestOnDefaultExportedClass_10 { +>TestOnDefaultExportedClass_10 : typeof TestOnDefaultExportedClass_10 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + export default class StaticArgumentsFn { +>StaticArgumentsFn : StaticArgumentsFn +> : ^^^^^^^^^^^^^^^^^ + + static arguments() {} // error without useDefineForClassFields +>arguments : () => void +> : ^^^^^^^^^^ + + arguments() {} // ok +>arguments : () => void +> : ^^^^^^^^^^ + } +} + +export class ExportedStaticArgumentsFn { +>ExportedStaticArgumentsFn : ExportedStaticArgumentsFn +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ + + static [FunctionPropertyNames.arguments]() {} // error without useDefineForClassFields +>[FunctionPropertyNames.arguments] : () => void +> : ^^^^^^^^^^ +>FunctionPropertyNames.arguments : "arguments" +> : ^^^^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>arguments : "arguments" +> : ^^^^^^^^^^^ + + [FunctionPropertyNames.arguments]() {} // ok +>[FunctionPropertyNames.arguments] : () => void +> : ^^^^^^^^^^ +>FunctionPropertyNames.arguments : "arguments" +> : ^^^^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>arguments : "arguments" +> : ^^^^^^^^^^^ +} diff --git a/tests/baselines/reference/staticPropertyNameConflicts(target=es5,usedefineforclassfields=true).errors.txt b/tests/baselines/reference/staticPropertyNameConflicts(target=es5,usedefineforclassfields=true).errors.txt new file mode 100644 index 0000000000000..4d4d2b4442b44 --- /dev/null +++ b/tests/baselines/reference/staticPropertyNameConflicts(target=es5,usedefineforclassfields=true).errors.txt @@ -0,0 +1,429 @@ +staticPropertyNameConflicts.ts(53,12): error TS2699: Static property 'prototype' conflicts with built-in property 'Function.prototype' of constructor function 'StaticPrototype'. +staticPropertyNameConflicts.ts(58,12): error TS2699: Static property 'prototype' conflicts with built-in property 'Function.prototype' of constructor function 'StaticPrototype2'. +staticPropertyNameConflicts.ts(63,12): error TS2300: Duplicate identifier 'prototype'. +staticPropertyNameConflicts.ts(63,12): error TS2699: Static property 'prototype' conflicts with built-in property 'Function.prototype' of constructor function 'StaticPrototypeFn'. +staticPropertyNameConflicts.ts(68,12): error TS2300: Duplicate identifier '[FunctionPropertyNames.prototype]'. +staticPropertyNameConflicts.ts(68,12): error TS2699: Static property 'prototype' conflicts with built-in property 'Function.prototype' of constructor function 'StaticPrototypeFn2'. +staticPropertyNameConflicts.ts(161,12): error TS2699: Static property 'prototype' conflicts with built-in property 'Function.prototype' of constructor function 'StaticPrototype_Anonymous'. +staticPropertyNameConflicts.ts(166,12): error TS2699: Static property 'prototype' conflicts with built-in property 'Function.prototype' of constructor function 'StaticPrototype_Anonymous2'. +staticPropertyNameConflicts.ts(171,12): error TS2300: Duplicate identifier 'prototype'. +staticPropertyNameConflicts.ts(171,12): error TS2699: Static property 'prototype' conflicts with built-in property 'Function.prototype' of constructor function 'StaticPrototypeFn_Anonymous'. +staticPropertyNameConflicts.ts(176,12): error TS2300: Duplicate identifier '[FunctionPropertyNames.prototype]'. +staticPropertyNameConflicts.ts(176,12): error TS2699: Static property 'prototype' conflicts with built-in property 'Function.prototype' of constructor function 'StaticPrototypeFn_Anonymous2'. +staticPropertyNameConflicts.ts(252,12): error TS1319: A default export can only be used in an ECMAScript-style module. +staticPropertyNameConflicts.ts(264,12): error TS1319: A default export can only be used in an ECMAScript-style module. +staticPropertyNameConflicts.ts(277,12): error TS1319: A default export can only be used in an ECMAScript-style module. +staticPropertyNameConflicts.ts(278,16): error TS2699: Static property 'prototype' conflicts with built-in property 'Function.prototype' of constructor function 'StaticPrototype'. +staticPropertyNameConflicts.ts(284,12): error TS2699: Static property 'prototype' conflicts with built-in property 'Function.prototype' of constructor function 'ExportedStaticPrototype'. +staticPropertyNameConflicts.ts(289,12): error TS1319: A default export can only be used in an ECMAScript-style module. +staticPropertyNameConflicts.ts(290,16): error TS2300: Duplicate identifier 'prototype'. +staticPropertyNameConflicts.ts(290,16): error TS2699: Static property 'prototype' conflicts with built-in property 'Function.prototype' of constructor function 'StaticPrototypeFn'. +staticPropertyNameConflicts.ts(296,12): error TS2300: Duplicate identifier '[FunctionPropertyNames.prototype]'. +staticPropertyNameConflicts.ts(296,12): error TS2699: Static property 'prototype' conflicts with built-in property 'Function.prototype' of constructor function 'ExportedStaticPrototypeFn'. +staticPropertyNameConflicts.ts(302,12): error TS1319: A default export can only be used in an ECMAScript-style module. +staticPropertyNameConflicts.ts(314,12): error TS1319: A default export can only be used in an ECMAScript-style module. +staticPropertyNameConflicts.ts(327,12): error TS1319: A default export can only be used in an ECMAScript-style module. +staticPropertyNameConflicts.ts(339,12): error TS1319: A default export can only be used in an ECMAScript-style module. + + +==== staticPropertyNameConflicts.ts (26 errors) ==== + const FunctionPropertyNames = { + name: 'name', + length: 'length', + prototype: 'prototype', + caller: 'caller', + arguments: 'arguments', + } as const; + + // name + class StaticName { + static name: number; // error without useDefineForClassFields + name: string; // ok + } + + class StaticName2 { + static [FunctionPropertyNames.name]: number; // error without useDefineForClassFields + [FunctionPropertyNames.name]: number; // ok + } + + class StaticNameFn { + static name() {} // error without useDefineForClassFields + name() {} // ok + } + + class StaticNameFn2 { + static [FunctionPropertyNames.name]() {} // error without useDefineForClassFields + [FunctionPropertyNames.name]() {} // ok + } + + // length + class StaticLength { + static length: number; // error without useDefineForClassFields + length: string; // ok + } + + class StaticLength2 { + static [FunctionPropertyNames.length]: number; // error without useDefineForClassFields + [FunctionPropertyNames.length]: number; // ok + } + + class StaticLengthFn { + static length() {} // error without useDefineForClassFields + length() {} // ok + } + + class StaticLengthFn2 { + static [FunctionPropertyNames.length]() {} // error without useDefineForClassFields + [FunctionPropertyNames.length]() {} // ok + } + + // prototype + class StaticPrototype { + static prototype: number; // always an error + ~~~~~~~~~ +!!! error TS2699: Static property 'prototype' conflicts with built-in property 'Function.prototype' of constructor function 'StaticPrototype'. + prototype: string; // ok + } + + class StaticPrototype2 { + static [FunctionPropertyNames.prototype]: number; // always an error + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2699: Static property 'prototype' conflicts with built-in property 'Function.prototype' of constructor function 'StaticPrototype2'. + [FunctionPropertyNames.prototype]: string; // ok + } + + class StaticPrototypeFn { + static prototype() {} // always an error + ~~~~~~~~~ +!!! error TS2300: Duplicate identifier 'prototype'. + ~~~~~~~~~ +!!! error TS2699: Static property 'prototype' conflicts with built-in property 'Function.prototype' of constructor function 'StaticPrototypeFn'. + prototype() {} // ok + } + + class StaticPrototypeFn2 { + static [FunctionPropertyNames.prototype]() {} // always an error + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2300: Duplicate identifier '[FunctionPropertyNames.prototype]'. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2699: Static property 'prototype' conflicts with built-in property 'Function.prototype' of constructor function 'StaticPrototypeFn2'. + [FunctionPropertyNames.prototype]() {} // ok + } + + // caller + class StaticCaller { + static caller: number; // error without useDefineForClassFields + caller: string; // ok + } + + class StaticCaller2 { + static [FunctionPropertyNames.caller]: number; // error without useDefineForClassFields + [FunctionPropertyNames.caller]: string; // ok + } + + class StaticCallerFn { + static caller() {} // error without useDefineForClassFields + caller() {} // ok + } + + class StaticCallerFn2 { + static [FunctionPropertyNames.caller]() {} // error without useDefineForClassFields + [FunctionPropertyNames.caller]() {} // ok + } + + // arguments + class StaticArguments { + static arguments: number; // error without useDefineForClassFields + arguments: string; // ok + } + + class StaticArguments2 { + static [FunctionPropertyNames.arguments]: number; // error without useDefineForClassFields + [FunctionPropertyNames.arguments]: string; // ok + } + + class StaticArgumentsFn { + static arguments() {} // error without useDefineForClassFields + arguments() {} // ok + } + + class StaticArgumentsFn2 { + static [FunctionPropertyNames.arguments]() {} // error without useDefineForClassFields + [FunctionPropertyNames.arguments]() {} // ok + } + + + // === Static properties on anonymous classes === + + // name + var StaticName_Anonymous = class { + static name: number; // error without useDefineForClassFields + name: string; // ok + } + + var StaticName_Anonymous2 = class { + static [FunctionPropertyNames.name]: number; // error without useDefineForClassFields + [FunctionPropertyNames.name]: string; // ok + } + + var StaticNameFn_Anonymous = class { + static name() {} // error without useDefineForClassFields + name() {} // ok + } + + var StaticNameFn_Anonymous2 = class { + static [FunctionPropertyNames.name]() {} // error without useDefineForClassFields + [FunctionPropertyNames.name]() {} // ok + } + + // length + var StaticLength_Anonymous = class { + static length: number; // error without useDefineForClassFields + length: string; // ok + } + + var StaticLength_Anonymous2 = class { + static [FunctionPropertyNames.length]: number; // error without useDefineForClassFields + [FunctionPropertyNames.length]: string; // ok + } + + var StaticLengthFn_Anonymous = class { + static length() {} // error without useDefineForClassFields + length() {} // ok + } + + var StaticLengthFn_Anonymous2 = class { + static [FunctionPropertyNames.length]() {} // error without useDefineForClassFields + [FunctionPropertyNames.length]() {} // ok + } + + // prototype + var StaticPrototype_Anonymous = class { + static prototype: number; // always an error + ~~~~~~~~~ +!!! error TS2699: Static property 'prototype' conflicts with built-in property 'Function.prototype' of constructor function 'StaticPrototype_Anonymous'. + prototype: string; // ok + } + + var StaticPrototype_Anonymous2 = class { + static [FunctionPropertyNames.prototype]: number; // always an error + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2699: Static property 'prototype' conflicts with built-in property 'Function.prototype' of constructor function 'StaticPrototype_Anonymous2'. + [FunctionPropertyNames.prototype]: string; // ok + } + + var StaticPrototypeFn_Anonymous = class { + static prototype() {} // always an error + ~~~~~~~~~ +!!! error TS2300: Duplicate identifier 'prototype'. + ~~~~~~~~~ +!!! error TS2699: Static property 'prototype' conflicts with built-in property 'Function.prototype' of constructor function 'StaticPrototypeFn_Anonymous'. + prototype() {} // ok + } + + var StaticPrototypeFn_Anonymous2 = class { + static [FunctionPropertyNames.prototype]() {} // always an error + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2300: Duplicate identifier '[FunctionPropertyNames.prototype]'. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2699: Static property 'prototype' conflicts with built-in property 'Function.prototype' of constructor function 'StaticPrototypeFn_Anonymous2'. + [FunctionPropertyNames.prototype]() {} // ok + } + + // caller + var StaticCaller_Anonymous = class { + static caller: number; // error without useDefineForClassFields + caller: string; // ok + } + + var StaticCaller_Anonymous2 = class { + static [FunctionPropertyNames.caller]: number; // error without useDefineForClassFields + [FunctionPropertyNames.caller]: string; // ok + } + + var StaticCallerFn_Anonymous = class { + static caller() {} // error without useDefineForClassFields + caller() {} // ok + } + + var StaticCallerFn_Anonymous2 = class { + static [FunctionPropertyNames.caller]() {} // error without useDefineForClassFields + [FunctionPropertyNames.caller]() {} // ok + } + + // arguments + var StaticArguments_Anonymous = class { + static arguments: number; // error without useDefineForClassFields + arguments: string; // ok + } + + var StaticArguments_Anonymous2 = class { + static [FunctionPropertyNames.arguments]: number; // error without useDefineForClassFields + [FunctionPropertyNames.arguments]: string; // ok + } + + var StaticArgumentsFn_Anonymous = class { + static arguments() {} // error without useDefineForClassFields + arguments() {} // ok + } + + var StaticArgumentsFn_Anonymous2 = class { + static [FunctionPropertyNames.arguments]() {} // error without useDefineForClassFields + [FunctionPropertyNames.arguments]() {} // ok + } + + + // === Static properties on default exported classes === + + // name + namespace TestOnDefaultExportedClass_1 { + class StaticName { + static name: number; // error without useDefineForClassFields + name: string; // ok + } + } + + export class ExportedStaticName { + static [FunctionPropertyNames.name]: number; // error without useDefineForClassFields + [FunctionPropertyNames.name]: string; // ok + } + + namespace TestOnDefaultExportedClass_2 { + class StaticNameFn { + static name() {} // error without useDefineForClassFields + name() {} // ok + } + } + + export class ExportedStaticNameFn { + static [FunctionPropertyNames.name]() {} // error without useDefineForClassFields + [FunctionPropertyNames.name]() {} // ok + } + + // length + namespace TestOnDefaultExportedClass_3 { + export default class StaticLength { + ~~~~~~~ +!!! error TS1319: A default export can only be used in an ECMAScript-style module. + static length: number; // error without useDefineForClassFields + length: string; // ok + } + } + + export class ExportedStaticLength { + static [FunctionPropertyNames.length]: number; // error without useDefineForClassFields + [FunctionPropertyNames.length]: string; // ok + } + + namespace TestOnDefaultExportedClass_4 { + export default class StaticLengthFn { + ~~~~~~~ +!!! error TS1319: A default export can only be used in an ECMAScript-style module. + static length() {} // error without useDefineForClassFields + length() {} // ok + } + } + + export class ExportedStaticLengthFn { + static [FunctionPropertyNames.length]() {} // error without useDefineForClassFields + [FunctionPropertyNames.length]() {} // ok + } + + // prototype + namespace TestOnDefaultExportedClass_5 { + export default class StaticPrototype { + ~~~~~~~ +!!! error TS1319: A default export can only be used in an ECMAScript-style module. + static prototype: number; // always an error + ~~~~~~~~~ +!!! error TS2699: Static property 'prototype' conflicts with built-in property 'Function.prototype' of constructor function 'StaticPrototype'. + prototype: string; // ok + } + } + + export class ExportedStaticPrototype { + static [FunctionPropertyNames.prototype]: number; // always an error + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2699: Static property 'prototype' conflicts with built-in property 'Function.prototype' of constructor function 'ExportedStaticPrototype'. + [FunctionPropertyNames.prototype]: string; // ok + } + + namespace TestOnDefaultExportedClass_6 { + export default class StaticPrototypeFn { + ~~~~~~~ +!!! error TS1319: A default export can only be used in an ECMAScript-style module. + static prototype() {} // always an error + ~~~~~~~~~ +!!! error TS2300: Duplicate identifier 'prototype'. + ~~~~~~~~~ +!!! error TS2699: Static property 'prototype' conflicts with built-in property 'Function.prototype' of constructor function 'StaticPrototypeFn'. + prototype() {} // ok + } + } + + export class ExportedStaticPrototypeFn { + static [FunctionPropertyNames.prototype]() {} // always an error + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2300: Duplicate identifier '[FunctionPropertyNames.prototype]'. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2699: Static property 'prototype' conflicts with built-in property 'Function.prototype' of constructor function 'ExportedStaticPrototypeFn'. + [FunctionPropertyNames.prototype]() {} // ok + } + + // caller + namespace TestOnDefaultExportedClass_7 { + export default class StaticCaller { + ~~~~~~~ +!!! error TS1319: A default export can only be used in an ECMAScript-style module. + static caller: number; // error without useDefineForClassFields + caller: string; // ok + } + } + + export class ExportedStaticCaller { + static [FunctionPropertyNames.caller]: number; // error without useDefineForClassFields + [FunctionPropertyNames.caller]: string; // ok + } + + namespace TestOnDefaultExportedClass_8 { + export default class StaticCallerFn { + ~~~~~~~ +!!! error TS1319: A default export can only be used in an ECMAScript-style module. + static caller() {} // error without useDefineForClassFields + caller() {} // ok + } + } + + export class ExportedStaticCallerFn { + static [FunctionPropertyNames.caller]() {} // error without useDefineForClassFields + [FunctionPropertyNames.caller]() {} // ok + } + + // arguments + namespace TestOnDefaultExportedClass_9 { + export default class StaticArguments { + ~~~~~~~ +!!! error TS1319: A default export can only be used in an ECMAScript-style module. + static arguments: number; // error without useDefineForClassFields + arguments: string; // ok + } + } + + export class ExportedStaticArguments { + static [FunctionPropertyNames.arguments]: number; // error without useDefineForClassFields + [FunctionPropertyNames.arguments]: string; // ok + } + + namespace TestOnDefaultExportedClass_10 { + export default class StaticArgumentsFn { + ~~~~~~~ +!!! error TS1319: A default export can only be used in an ECMAScript-style module. + static arguments() {} // error without useDefineForClassFields + arguments() {} // ok + } + } + + export class ExportedStaticArgumentsFn { + static [FunctionPropertyNames.arguments]() {} // error without useDefineForClassFields + [FunctionPropertyNames.arguments]() {} // ok + } \ No newline at end of file diff --git a/tests/baselines/reference/staticPropertyNameConflicts(usedefineforclassfields=true).js b/tests/baselines/reference/staticPropertyNameConflicts(target=es5,usedefineforclassfields=true).js similarity index 100% rename from tests/baselines/reference/staticPropertyNameConflicts(usedefineforclassfields=true).js rename to tests/baselines/reference/staticPropertyNameConflicts(target=es5,usedefineforclassfields=true).js diff --git a/tests/baselines/reference/staticPropertyNameConflicts(target=es5,usedefineforclassfields=true).symbols b/tests/baselines/reference/staticPropertyNameConflicts(target=es5,usedefineforclassfields=true).symbols new file mode 100644 index 0000000000000..f9cf9064c688b --- /dev/null +++ b/tests/baselines/reference/staticPropertyNameConflicts(target=es5,usedefineforclassfields=true).symbols @@ -0,0 +1,864 @@ +//// [tests/cases/conformance/classes/propertyMemberDeclarations/staticPropertyNameConflicts.ts] //// + +=== staticPropertyNameConflicts.ts === +const FunctionPropertyNames = { +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) + + name: 'name', +>name : Symbol(name, Decl(staticPropertyNameConflicts.ts, 0, 31)) + + length: 'length', +>length : Symbol(length, Decl(staticPropertyNameConflicts.ts, 1, 17)) + + prototype: 'prototype', +>prototype : Symbol(prototype, Decl(staticPropertyNameConflicts.ts, 2, 21)) + + caller: 'caller', +>caller : Symbol(caller, Decl(staticPropertyNameConflicts.ts, 3, 27)) + + arguments: 'arguments', +>arguments : Symbol(arguments, Decl(staticPropertyNameConflicts.ts, 4, 21)) + +} as const; +>const : Symbol(const) + +// name +class StaticName { +>StaticName : Symbol(StaticName, Decl(staticPropertyNameConflicts.ts, 6, 11)) + + static name: number; // error without useDefineForClassFields +>name : Symbol(StaticName.name, Decl(staticPropertyNameConflicts.ts, 9, 18)) + + name: string; // ok +>name : Symbol(StaticName.name, Decl(staticPropertyNameConflicts.ts, 10, 24)) +} + +class StaticName2 { +>StaticName2 : Symbol(StaticName2, Decl(staticPropertyNameConflicts.ts, 12, 1)) + + static [FunctionPropertyNames.name]: number; // error without useDefineForClassFields +>[FunctionPropertyNames.name] : Symbol(StaticName2[FunctionPropertyNames.name], Decl(staticPropertyNameConflicts.ts, 14, 19)) +>FunctionPropertyNames.name : Symbol(name, Decl(staticPropertyNameConflicts.ts, 0, 31)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>name : Symbol(name, Decl(staticPropertyNameConflicts.ts, 0, 31)) + + [FunctionPropertyNames.name]: number; // ok +>[FunctionPropertyNames.name] : Symbol(StaticName2[FunctionPropertyNames.name], Decl(staticPropertyNameConflicts.ts, 15, 48)) +>FunctionPropertyNames.name : Symbol(name, Decl(staticPropertyNameConflicts.ts, 0, 31)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>name : Symbol(name, Decl(staticPropertyNameConflicts.ts, 0, 31)) +} + +class StaticNameFn { +>StaticNameFn : Symbol(StaticNameFn, Decl(staticPropertyNameConflicts.ts, 17, 1)) + + static name() {} // error without useDefineForClassFields +>name : Symbol(StaticNameFn.name, Decl(staticPropertyNameConflicts.ts, 19, 20)) + + name() {} // ok +>name : Symbol(StaticNameFn.name, Decl(staticPropertyNameConflicts.ts, 20, 20)) +} + +class StaticNameFn2 { +>StaticNameFn2 : Symbol(StaticNameFn2, Decl(staticPropertyNameConflicts.ts, 22, 1)) + + static [FunctionPropertyNames.name]() {} // error without useDefineForClassFields +>[FunctionPropertyNames.name] : Symbol(StaticNameFn2[FunctionPropertyNames.name], Decl(staticPropertyNameConflicts.ts, 24, 21)) +>FunctionPropertyNames.name : Symbol(name, Decl(staticPropertyNameConflicts.ts, 0, 31)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>name : Symbol(name, Decl(staticPropertyNameConflicts.ts, 0, 31)) + + [FunctionPropertyNames.name]() {} // ok +>[FunctionPropertyNames.name] : Symbol(StaticNameFn2[FunctionPropertyNames.name], Decl(staticPropertyNameConflicts.ts, 25, 44)) +>FunctionPropertyNames.name : Symbol(name, Decl(staticPropertyNameConflicts.ts, 0, 31)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>name : Symbol(name, Decl(staticPropertyNameConflicts.ts, 0, 31)) +} + +// length +class StaticLength { +>StaticLength : Symbol(StaticLength, Decl(staticPropertyNameConflicts.ts, 27, 1)) + + static length: number; // error without useDefineForClassFields +>length : Symbol(StaticLength.length, Decl(staticPropertyNameConflicts.ts, 30, 20)) + + length: string; // ok +>length : Symbol(StaticLength.length, Decl(staticPropertyNameConflicts.ts, 31, 26)) +} + +class StaticLength2 { +>StaticLength2 : Symbol(StaticLength2, Decl(staticPropertyNameConflicts.ts, 33, 1)) + + static [FunctionPropertyNames.length]: number; // error without useDefineForClassFields +>[FunctionPropertyNames.length] : Symbol(StaticLength2[FunctionPropertyNames.length], Decl(staticPropertyNameConflicts.ts, 35, 21)) +>FunctionPropertyNames.length : Symbol(length, Decl(staticPropertyNameConflicts.ts, 1, 17)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>length : Symbol(length, Decl(staticPropertyNameConflicts.ts, 1, 17)) + + [FunctionPropertyNames.length]: number; // ok +>[FunctionPropertyNames.length] : Symbol(StaticLength2[FunctionPropertyNames.length], Decl(staticPropertyNameConflicts.ts, 36, 50)) +>FunctionPropertyNames.length : Symbol(length, Decl(staticPropertyNameConflicts.ts, 1, 17)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>length : Symbol(length, Decl(staticPropertyNameConflicts.ts, 1, 17)) +} + +class StaticLengthFn { +>StaticLengthFn : Symbol(StaticLengthFn, Decl(staticPropertyNameConflicts.ts, 38, 1)) + + static length() {} // error without useDefineForClassFields +>length : Symbol(StaticLengthFn.length, Decl(staticPropertyNameConflicts.ts, 40, 22)) + + length() {} // ok +>length : Symbol(StaticLengthFn.length, Decl(staticPropertyNameConflicts.ts, 41, 22)) +} + +class StaticLengthFn2 { +>StaticLengthFn2 : Symbol(StaticLengthFn2, Decl(staticPropertyNameConflicts.ts, 43, 1)) + + static [FunctionPropertyNames.length]() {} // error without useDefineForClassFields +>[FunctionPropertyNames.length] : Symbol(StaticLengthFn2[FunctionPropertyNames.length], Decl(staticPropertyNameConflicts.ts, 45, 23)) +>FunctionPropertyNames.length : Symbol(length, Decl(staticPropertyNameConflicts.ts, 1, 17)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>length : Symbol(length, Decl(staticPropertyNameConflicts.ts, 1, 17)) + + [FunctionPropertyNames.length]() {} // ok +>[FunctionPropertyNames.length] : Symbol(StaticLengthFn2[FunctionPropertyNames.length], Decl(staticPropertyNameConflicts.ts, 46, 46)) +>FunctionPropertyNames.length : Symbol(length, Decl(staticPropertyNameConflicts.ts, 1, 17)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>length : Symbol(length, Decl(staticPropertyNameConflicts.ts, 1, 17)) +} + +// prototype +class StaticPrototype { +>StaticPrototype : Symbol(StaticPrototype, Decl(staticPropertyNameConflicts.ts, 48, 1)) + + static prototype: number; // always an error +>prototype : Symbol(StaticPrototype.prototype, Decl(staticPropertyNameConflicts.ts, 51, 23)) + + prototype: string; // ok +>prototype : Symbol(StaticPrototype.prototype, Decl(staticPropertyNameConflicts.ts, 52, 29)) +} + +class StaticPrototype2 { +>StaticPrototype2 : Symbol(StaticPrototype2, Decl(staticPropertyNameConflicts.ts, 54, 1)) + + static [FunctionPropertyNames.prototype]: number; // always an error +>[FunctionPropertyNames.prototype] : Symbol(StaticPrototype2[FunctionPropertyNames.prototype], Decl(staticPropertyNameConflicts.ts, 56, 24)) +>FunctionPropertyNames.prototype : Symbol(prototype, Decl(staticPropertyNameConflicts.ts, 2, 21)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>prototype : Symbol(prototype, Decl(staticPropertyNameConflicts.ts, 2, 21)) + + [FunctionPropertyNames.prototype]: string; // ok +>[FunctionPropertyNames.prototype] : Symbol(StaticPrototype2[FunctionPropertyNames.prototype], Decl(staticPropertyNameConflicts.ts, 57, 53)) +>FunctionPropertyNames.prototype : Symbol(prototype, Decl(staticPropertyNameConflicts.ts, 2, 21)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>prototype : Symbol(prototype, Decl(staticPropertyNameConflicts.ts, 2, 21)) +} + +class StaticPrototypeFn { +>StaticPrototypeFn : Symbol(StaticPrototypeFn, Decl(staticPropertyNameConflicts.ts, 59, 1)) + + static prototype() {} // always an error +>prototype : Symbol(StaticPrototypeFn.prototype, Decl(staticPropertyNameConflicts.ts, 61, 25)) + + prototype() {} // ok +>prototype : Symbol(StaticPrototypeFn.prototype, Decl(staticPropertyNameConflicts.ts, 62, 25)) +} + +class StaticPrototypeFn2 { +>StaticPrototypeFn2 : Symbol(StaticPrototypeFn2, Decl(staticPropertyNameConflicts.ts, 64, 1)) + + static [FunctionPropertyNames.prototype]() {} // always an error +>[FunctionPropertyNames.prototype] : Symbol(StaticPrototypeFn2[FunctionPropertyNames.prototype], Decl(staticPropertyNameConflicts.ts, 66, 26)) +>FunctionPropertyNames.prototype : Symbol(prototype, Decl(staticPropertyNameConflicts.ts, 2, 21)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>prototype : Symbol(prototype, Decl(staticPropertyNameConflicts.ts, 2, 21)) + + [FunctionPropertyNames.prototype]() {} // ok +>[FunctionPropertyNames.prototype] : Symbol(StaticPrototypeFn2[FunctionPropertyNames.prototype], Decl(staticPropertyNameConflicts.ts, 67, 49)) +>FunctionPropertyNames.prototype : Symbol(prototype, Decl(staticPropertyNameConflicts.ts, 2, 21)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>prototype : Symbol(prototype, Decl(staticPropertyNameConflicts.ts, 2, 21)) +} + +// caller +class StaticCaller { +>StaticCaller : Symbol(StaticCaller, Decl(staticPropertyNameConflicts.ts, 69, 1)) + + static caller: number; // error without useDefineForClassFields +>caller : Symbol(StaticCaller.caller, Decl(staticPropertyNameConflicts.ts, 72, 20)) + + caller: string; // ok +>caller : Symbol(StaticCaller.caller, Decl(staticPropertyNameConflicts.ts, 73, 26)) +} + +class StaticCaller2 { +>StaticCaller2 : Symbol(StaticCaller2, Decl(staticPropertyNameConflicts.ts, 75, 1)) + + static [FunctionPropertyNames.caller]: number; // error without useDefineForClassFields +>[FunctionPropertyNames.caller] : Symbol(StaticCaller2[FunctionPropertyNames.caller], Decl(staticPropertyNameConflicts.ts, 77, 21)) +>FunctionPropertyNames.caller : Symbol(caller, Decl(staticPropertyNameConflicts.ts, 3, 27)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>caller : Symbol(caller, Decl(staticPropertyNameConflicts.ts, 3, 27)) + + [FunctionPropertyNames.caller]: string; // ok +>[FunctionPropertyNames.caller] : Symbol(StaticCaller2[FunctionPropertyNames.caller], Decl(staticPropertyNameConflicts.ts, 78, 50)) +>FunctionPropertyNames.caller : Symbol(caller, Decl(staticPropertyNameConflicts.ts, 3, 27)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>caller : Symbol(caller, Decl(staticPropertyNameConflicts.ts, 3, 27)) +} + +class StaticCallerFn { +>StaticCallerFn : Symbol(StaticCallerFn, Decl(staticPropertyNameConflicts.ts, 80, 1)) + + static caller() {} // error without useDefineForClassFields +>caller : Symbol(StaticCallerFn.caller, Decl(staticPropertyNameConflicts.ts, 82, 22)) + + caller() {} // ok +>caller : Symbol(StaticCallerFn.caller, Decl(staticPropertyNameConflicts.ts, 83, 22)) +} + +class StaticCallerFn2 { +>StaticCallerFn2 : Symbol(StaticCallerFn2, Decl(staticPropertyNameConflicts.ts, 85, 1)) + + static [FunctionPropertyNames.caller]() {} // error without useDefineForClassFields +>[FunctionPropertyNames.caller] : Symbol(StaticCallerFn2[FunctionPropertyNames.caller], Decl(staticPropertyNameConflicts.ts, 87, 23)) +>FunctionPropertyNames.caller : Symbol(caller, Decl(staticPropertyNameConflicts.ts, 3, 27)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>caller : Symbol(caller, Decl(staticPropertyNameConflicts.ts, 3, 27)) + + [FunctionPropertyNames.caller]() {} // ok +>[FunctionPropertyNames.caller] : Symbol(StaticCallerFn2[FunctionPropertyNames.caller], Decl(staticPropertyNameConflicts.ts, 88, 46)) +>FunctionPropertyNames.caller : Symbol(caller, Decl(staticPropertyNameConflicts.ts, 3, 27)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>caller : Symbol(caller, Decl(staticPropertyNameConflicts.ts, 3, 27)) +} + +// arguments +class StaticArguments { +>StaticArguments : Symbol(StaticArguments, Decl(staticPropertyNameConflicts.ts, 90, 1)) + + static arguments: number; // error without useDefineForClassFields +>arguments : Symbol(StaticArguments.arguments, Decl(staticPropertyNameConflicts.ts, 93, 23)) + + arguments: string; // ok +>arguments : Symbol(StaticArguments.arguments, Decl(staticPropertyNameConflicts.ts, 94, 29)) +} + +class StaticArguments2 { +>StaticArguments2 : Symbol(StaticArguments2, Decl(staticPropertyNameConflicts.ts, 96, 1)) + + static [FunctionPropertyNames.arguments]: number; // error without useDefineForClassFields +>[FunctionPropertyNames.arguments] : Symbol(StaticArguments2[FunctionPropertyNames.arguments], Decl(staticPropertyNameConflicts.ts, 98, 24)) +>FunctionPropertyNames.arguments : Symbol(arguments, Decl(staticPropertyNameConflicts.ts, 4, 21)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>arguments : Symbol(arguments, Decl(staticPropertyNameConflicts.ts, 4, 21)) + + [FunctionPropertyNames.arguments]: string; // ok +>[FunctionPropertyNames.arguments] : Symbol(StaticArguments2[FunctionPropertyNames.arguments], Decl(staticPropertyNameConflicts.ts, 99, 53)) +>FunctionPropertyNames.arguments : Symbol(arguments, Decl(staticPropertyNameConflicts.ts, 4, 21)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>arguments : Symbol(arguments, Decl(staticPropertyNameConflicts.ts, 4, 21)) +} + +class StaticArgumentsFn { +>StaticArgumentsFn : Symbol(StaticArgumentsFn, Decl(staticPropertyNameConflicts.ts, 101, 1)) + + static arguments() {} // error without useDefineForClassFields +>arguments : Symbol(StaticArgumentsFn.arguments, Decl(staticPropertyNameConflicts.ts, 103, 25)) + + arguments() {} // ok +>arguments : Symbol(StaticArgumentsFn.arguments, Decl(staticPropertyNameConflicts.ts, 104, 25)) +} + +class StaticArgumentsFn2 { +>StaticArgumentsFn2 : Symbol(StaticArgumentsFn2, Decl(staticPropertyNameConflicts.ts, 106, 1)) + + static [FunctionPropertyNames.arguments]() {} // error without useDefineForClassFields +>[FunctionPropertyNames.arguments] : Symbol(StaticArgumentsFn2[FunctionPropertyNames.arguments], Decl(staticPropertyNameConflicts.ts, 108, 26)) +>FunctionPropertyNames.arguments : Symbol(arguments, Decl(staticPropertyNameConflicts.ts, 4, 21)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>arguments : Symbol(arguments, Decl(staticPropertyNameConflicts.ts, 4, 21)) + + [FunctionPropertyNames.arguments]() {} // ok +>[FunctionPropertyNames.arguments] : Symbol(StaticArgumentsFn2[FunctionPropertyNames.arguments], Decl(staticPropertyNameConflicts.ts, 109, 49)) +>FunctionPropertyNames.arguments : Symbol(arguments, Decl(staticPropertyNameConflicts.ts, 4, 21)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>arguments : Symbol(arguments, Decl(staticPropertyNameConflicts.ts, 4, 21)) +} + + +// === Static properties on anonymous classes === + +// name +var StaticName_Anonymous = class { +>StaticName_Anonymous : Symbol(StaticName_Anonymous, Decl(staticPropertyNameConflicts.ts, 117, 3)) + + static name: number; // error without useDefineForClassFields +>name : Symbol(StaticName_Anonymous.name, Decl(staticPropertyNameConflicts.ts, 117, 34)) + + name: string; // ok +>name : Symbol(StaticName_Anonymous.name, Decl(staticPropertyNameConflicts.ts, 118, 24)) +} + +var StaticName_Anonymous2 = class { +>StaticName_Anonymous2 : Symbol(StaticName_Anonymous2, Decl(staticPropertyNameConflicts.ts, 122, 3)) + + static [FunctionPropertyNames.name]: number; // error without useDefineForClassFields +>[FunctionPropertyNames.name] : Symbol(StaticName_Anonymous2[FunctionPropertyNames.name], Decl(staticPropertyNameConflicts.ts, 122, 35)) +>FunctionPropertyNames.name : Symbol(name, Decl(staticPropertyNameConflicts.ts, 0, 31)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>name : Symbol(name, Decl(staticPropertyNameConflicts.ts, 0, 31)) + + [FunctionPropertyNames.name]: string; // ok +>[FunctionPropertyNames.name] : Symbol(StaticName_Anonymous2[FunctionPropertyNames.name], Decl(staticPropertyNameConflicts.ts, 123, 48)) +>FunctionPropertyNames.name : Symbol(name, Decl(staticPropertyNameConflicts.ts, 0, 31)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>name : Symbol(name, Decl(staticPropertyNameConflicts.ts, 0, 31)) +} + +var StaticNameFn_Anonymous = class { +>StaticNameFn_Anonymous : Symbol(StaticNameFn_Anonymous, Decl(staticPropertyNameConflicts.ts, 127, 3)) + + static name() {} // error without useDefineForClassFields +>name : Symbol(StaticNameFn_Anonymous.name, Decl(staticPropertyNameConflicts.ts, 127, 36)) + + name() {} // ok +>name : Symbol(StaticNameFn_Anonymous.name, Decl(staticPropertyNameConflicts.ts, 128, 20)) +} + +var StaticNameFn_Anonymous2 = class { +>StaticNameFn_Anonymous2 : Symbol(StaticNameFn_Anonymous2, Decl(staticPropertyNameConflicts.ts, 132, 3)) + + static [FunctionPropertyNames.name]() {} // error without useDefineForClassFields +>[FunctionPropertyNames.name] : Symbol(StaticNameFn_Anonymous2[FunctionPropertyNames.name], Decl(staticPropertyNameConflicts.ts, 132, 37)) +>FunctionPropertyNames.name : Symbol(name, Decl(staticPropertyNameConflicts.ts, 0, 31)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>name : Symbol(name, Decl(staticPropertyNameConflicts.ts, 0, 31)) + + [FunctionPropertyNames.name]() {} // ok +>[FunctionPropertyNames.name] : Symbol(StaticNameFn_Anonymous2[FunctionPropertyNames.name], Decl(staticPropertyNameConflicts.ts, 133, 44)) +>FunctionPropertyNames.name : Symbol(name, Decl(staticPropertyNameConflicts.ts, 0, 31)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>name : Symbol(name, Decl(staticPropertyNameConflicts.ts, 0, 31)) +} + +// length +var StaticLength_Anonymous = class { +>StaticLength_Anonymous : Symbol(StaticLength_Anonymous, Decl(staticPropertyNameConflicts.ts, 138, 3)) + + static length: number; // error without useDefineForClassFields +>length : Symbol(StaticLength_Anonymous.length, Decl(staticPropertyNameConflicts.ts, 138, 36)) + + length: string; // ok +>length : Symbol(StaticLength_Anonymous.length, Decl(staticPropertyNameConflicts.ts, 139, 26)) +} + +var StaticLength_Anonymous2 = class { +>StaticLength_Anonymous2 : Symbol(StaticLength_Anonymous2, Decl(staticPropertyNameConflicts.ts, 143, 3)) + + static [FunctionPropertyNames.length]: number; // error without useDefineForClassFields +>[FunctionPropertyNames.length] : Symbol(StaticLength_Anonymous2[FunctionPropertyNames.length], Decl(staticPropertyNameConflicts.ts, 143, 37)) +>FunctionPropertyNames.length : Symbol(length, Decl(staticPropertyNameConflicts.ts, 1, 17)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>length : Symbol(length, Decl(staticPropertyNameConflicts.ts, 1, 17)) + + [FunctionPropertyNames.length]: string; // ok +>[FunctionPropertyNames.length] : Symbol(StaticLength_Anonymous2[FunctionPropertyNames.length], Decl(staticPropertyNameConflicts.ts, 144, 50)) +>FunctionPropertyNames.length : Symbol(length, Decl(staticPropertyNameConflicts.ts, 1, 17)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>length : Symbol(length, Decl(staticPropertyNameConflicts.ts, 1, 17)) +} + +var StaticLengthFn_Anonymous = class { +>StaticLengthFn_Anonymous : Symbol(StaticLengthFn_Anonymous, Decl(staticPropertyNameConflicts.ts, 148, 3)) + + static length() {} // error without useDefineForClassFields +>length : Symbol(StaticLengthFn_Anonymous.length, Decl(staticPropertyNameConflicts.ts, 148, 38)) + + length() {} // ok +>length : Symbol(StaticLengthFn_Anonymous.length, Decl(staticPropertyNameConflicts.ts, 149, 22)) +} + +var StaticLengthFn_Anonymous2 = class { +>StaticLengthFn_Anonymous2 : Symbol(StaticLengthFn_Anonymous2, Decl(staticPropertyNameConflicts.ts, 153, 3)) + + static [FunctionPropertyNames.length]() {} // error without useDefineForClassFields +>[FunctionPropertyNames.length] : Symbol(StaticLengthFn_Anonymous2[FunctionPropertyNames.length], Decl(staticPropertyNameConflicts.ts, 153, 39)) +>FunctionPropertyNames.length : Symbol(length, Decl(staticPropertyNameConflicts.ts, 1, 17)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>length : Symbol(length, Decl(staticPropertyNameConflicts.ts, 1, 17)) + + [FunctionPropertyNames.length]() {} // ok +>[FunctionPropertyNames.length] : Symbol(StaticLengthFn_Anonymous2[FunctionPropertyNames.length], Decl(staticPropertyNameConflicts.ts, 154, 46)) +>FunctionPropertyNames.length : Symbol(length, Decl(staticPropertyNameConflicts.ts, 1, 17)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>length : Symbol(length, Decl(staticPropertyNameConflicts.ts, 1, 17)) +} + +// prototype +var StaticPrototype_Anonymous = class { +>StaticPrototype_Anonymous : Symbol(StaticPrototype_Anonymous, Decl(staticPropertyNameConflicts.ts, 159, 3)) + + static prototype: number; // always an error +>prototype : Symbol(StaticPrototype_Anonymous.prototype, Decl(staticPropertyNameConflicts.ts, 159, 39)) + + prototype: string; // ok +>prototype : Symbol(StaticPrototype_Anonymous.prototype, Decl(staticPropertyNameConflicts.ts, 160, 29)) +} + +var StaticPrototype_Anonymous2 = class { +>StaticPrototype_Anonymous2 : Symbol(StaticPrototype_Anonymous2, Decl(staticPropertyNameConflicts.ts, 164, 3)) + + static [FunctionPropertyNames.prototype]: number; // always an error +>[FunctionPropertyNames.prototype] : Symbol(StaticPrototype_Anonymous2[FunctionPropertyNames.prototype], Decl(staticPropertyNameConflicts.ts, 164, 40)) +>FunctionPropertyNames.prototype : Symbol(prototype, Decl(staticPropertyNameConflicts.ts, 2, 21)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>prototype : Symbol(prototype, Decl(staticPropertyNameConflicts.ts, 2, 21)) + + [FunctionPropertyNames.prototype]: string; // ok +>[FunctionPropertyNames.prototype] : Symbol(StaticPrototype_Anonymous2[FunctionPropertyNames.prototype], Decl(staticPropertyNameConflicts.ts, 165, 53)) +>FunctionPropertyNames.prototype : Symbol(prototype, Decl(staticPropertyNameConflicts.ts, 2, 21)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>prototype : Symbol(prototype, Decl(staticPropertyNameConflicts.ts, 2, 21)) +} + +var StaticPrototypeFn_Anonymous = class { +>StaticPrototypeFn_Anonymous : Symbol(StaticPrototypeFn_Anonymous, Decl(staticPropertyNameConflicts.ts, 169, 3)) + + static prototype() {} // always an error +>prototype : Symbol(StaticPrototypeFn_Anonymous.prototype, Decl(staticPropertyNameConflicts.ts, 169, 41)) + + prototype() {} // ok +>prototype : Symbol(StaticPrototypeFn_Anonymous.prototype, Decl(staticPropertyNameConflicts.ts, 170, 25)) +} + +var StaticPrototypeFn_Anonymous2 = class { +>StaticPrototypeFn_Anonymous2 : Symbol(StaticPrototypeFn_Anonymous2, Decl(staticPropertyNameConflicts.ts, 174, 3)) + + static [FunctionPropertyNames.prototype]() {} // always an error +>[FunctionPropertyNames.prototype] : Symbol(StaticPrototypeFn_Anonymous2[FunctionPropertyNames.prototype], Decl(staticPropertyNameConflicts.ts, 174, 42)) +>FunctionPropertyNames.prototype : Symbol(prototype, Decl(staticPropertyNameConflicts.ts, 2, 21)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>prototype : Symbol(prototype, Decl(staticPropertyNameConflicts.ts, 2, 21)) + + [FunctionPropertyNames.prototype]() {} // ok +>[FunctionPropertyNames.prototype] : Symbol(StaticPrototypeFn_Anonymous2[FunctionPropertyNames.prototype], Decl(staticPropertyNameConflicts.ts, 175, 49)) +>FunctionPropertyNames.prototype : Symbol(prototype, Decl(staticPropertyNameConflicts.ts, 2, 21)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>prototype : Symbol(prototype, Decl(staticPropertyNameConflicts.ts, 2, 21)) +} + +// caller +var StaticCaller_Anonymous = class { +>StaticCaller_Anonymous : Symbol(StaticCaller_Anonymous, Decl(staticPropertyNameConflicts.ts, 180, 3)) + + static caller: number; // error without useDefineForClassFields +>caller : Symbol(StaticCaller_Anonymous.caller, Decl(staticPropertyNameConflicts.ts, 180, 36)) + + caller: string; // ok +>caller : Symbol(StaticCaller_Anonymous.caller, Decl(staticPropertyNameConflicts.ts, 181, 26)) +} + +var StaticCaller_Anonymous2 = class { +>StaticCaller_Anonymous2 : Symbol(StaticCaller_Anonymous2, Decl(staticPropertyNameConflicts.ts, 185, 3)) + + static [FunctionPropertyNames.caller]: number; // error without useDefineForClassFields +>[FunctionPropertyNames.caller] : Symbol(StaticCaller_Anonymous2[FunctionPropertyNames.caller], Decl(staticPropertyNameConflicts.ts, 185, 37)) +>FunctionPropertyNames.caller : Symbol(caller, Decl(staticPropertyNameConflicts.ts, 3, 27)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>caller : Symbol(caller, Decl(staticPropertyNameConflicts.ts, 3, 27)) + + [FunctionPropertyNames.caller]: string; // ok +>[FunctionPropertyNames.caller] : Symbol(StaticCaller_Anonymous2[FunctionPropertyNames.caller], Decl(staticPropertyNameConflicts.ts, 186, 50)) +>FunctionPropertyNames.caller : Symbol(caller, Decl(staticPropertyNameConflicts.ts, 3, 27)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>caller : Symbol(caller, Decl(staticPropertyNameConflicts.ts, 3, 27)) +} + +var StaticCallerFn_Anonymous = class { +>StaticCallerFn_Anonymous : Symbol(StaticCallerFn_Anonymous, Decl(staticPropertyNameConflicts.ts, 190, 3)) + + static caller() {} // error without useDefineForClassFields +>caller : Symbol(StaticCallerFn_Anonymous.caller, Decl(staticPropertyNameConflicts.ts, 190, 38)) + + caller() {} // ok +>caller : Symbol(StaticCallerFn_Anonymous.caller, Decl(staticPropertyNameConflicts.ts, 191, 22)) +} + +var StaticCallerFn_Anonymous2 = class { +>StaticCallerFn_Anonymous2 : Symbol(StaticCallerFn_Anonymous2, Decl(staticPropertyNameConflicts.ts, 195, 3)) + + static [FunctionPropertyNames.caller]() {} // error without useDefineForClassFields +>[FunctionPropertyNames.caller] : Symbol(StaticCallerFn_Anonymous2[FunctionPropertyNames.caller], Decl(staticPropertyNameConflicts.ts, 195, 39)) +>FunctionPropertyNames.caller : Symbol(caller, Decl(staticPropertyNameConflicts.ts, 3, 27)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>caller : Symbol(caller, Decl(staticPropertyNameConflicts.ts, 3, 27)) + + [FunctionPropertyNames.caller]() {} // ok +>[FunctionPropertyNames.caller] : Symbol(StaticCallerFn_Anonymous2[FunctionPropertyNames.caller], Decl(staticPropertyNameConflicts.ts, 196, 46)) +>FunctionPropertyNames.caller : Symbol(caller, Decl(staticPropertyNameConflicts.ts, 3, 27)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>caller : Symbol(caller, Decl(staticPropertyNameConflicts.ts, 3, 27)) +} + +// arguments +var StaticArguments_Anonymous = class { +>StaticArguments_Anonymous : Symbol(StaticArguments_Anonymous, Decl(staticPropertyNameConflicts.ts, 201, 3)) + + static arguments: number; // error without useDefineForClassFields +>arguments : Symbol(StaticArguments_Anonymous.arguments, Decl(staticPropertyNameConflicts.ts, 201, 39)) + + arguments: string; // ok +>arguments : Symbol(StaticArguments_Anonymous.arguments, Decl(staticPropertyNameConflicts.ts, 202, 29)) +} + +var StaticArguments_Anonymous2 = class { +>StaticArguments_Anonymous2 : Symbol(StaticArguments_Anonymous2, Decl(staticPropertyNameConflicts.ts, 206, 3)) + + static [FunctionPropertyNames.arguments]: number; // error without useDefineForClassFields +>[FunctionPropertyNames.arguments] : Symbol(StaticArguments_Anonymous2[FunctionPropertyNames.arguments], Decl(staticPropertyNameConflicts.ts, 206, 40)) +>FunctionPropertyNames.arguments : Symbol(arguments, Decl(staticPropertyNameConflicts.ts, 4, 21)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>arguments : Symbol(arguments, Decl(staticPropertyNameConflicts.ts, 4, 21)) + + [FunctionPropertyNames.arguments]: string; // ok +>[FunctionPropertyNames.arguments] : Symbol(StaticArguments_Anonymous2[FunctionPropertyNames.arguments], Decl(staticPropertyNameConflicts.ts, 207, 53)) +>FunctionPropertyNames.arguments : Symbol(arguments, Decl(staticPropertyNameConflicts.ts, 4, 21)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>arguments : Symbol(arguments, Decl(staticPropertyNameConflicts.ts, 4, 21)) +} + +var StaticArgumentsFn_Anonymous = class { +>StaticArgumentsFn_Anonymous : Symbol(StaticArgumentsFn_Anonymous, Decl(staticPropertyNameConflicts.ts, 211, 3)) + + static arguments() {} // error without useDefineForClassFields +>arguments : Symbol(StaticArgumentsFn_Anonymous.arguments, Decl(staticPropertyNameConflicts.ts, 211, 41)) + + arguments() {} // ok +>arguments : Symbol(StaticArgumentsFn_Anonymous.arguments, Decl(staticPropertyNameConflicts.ts, 212, 25)) +} + +var StaticArgumentsFn_Anonymous2 = class { +>StaticArgumentsFn_Anonymous2 : Symbol(StaticArgumentsFn_Anonymous2, Decl(staticPropertyNameConflicts.ts, 216, 3)) + + static [FunctionPropertyNames.arguments]() {} // error without useDefineForClassFields +>[FunctionPropertyNames.arguments] : Symbol(StaticArgumentsFn_Anonymous2[FunctionPropertyNames.arguments], Decl(staticPropertyNameConflicts.ts, 216, 42)) +>FunctionPropertyNames.arguments : Symbol(arguments, Decl(staticPropertyNameConflicts.ts, 4, 21)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>arguments : Symbol(arguments, Decl(staticPropertyNameConflicts.ts, 4, 21)) + + [FunctionPropertyNames.arguments]() {} // ok +>[FunctionPropertyNames.arguments] : Symbol(StaticArgumentsFn_Anonymous2[FunctionPropertyNames.arguments], Decl(staticPropertyNameConflicts.ts, 217, 49)) +>FunctionPropertyNames.arguments : Symbol(arguments, Decl(staticPropertyNameConflicts.ts, 4, 21)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>arguments : Symbol(arguments, Decl(staticPropertyNameConflicts.ts, 4, 21)) +} + + +// === Static properties on default exported classes === + +// name +namespace TestOnDefaultExportedClass_1 { +>TestOnDefaultExportedClass_1 : Symbol(TestOnDefaultExportedClass_1, Decl(staticPropertyNameConflicts.ts, 219, 1)) + + class StaticName { +>StaticName : Symbol(StaticName, Decl(staticPropertyNameConflicts.ts, 225, 40)) + + static name: number; // error without useDefineForClassFields +>name : Symbol(StaticName.name, Decl(staticPropertyNameConflicts.ts, 226, 22)) + + name: string; // ok +>name : Symbol(StaticName.name, Decl(staticPropertyNameConflicts.ts, 227, 28)) + } +} + +export class ExportedStaticName { +>ExportedStaticName : Symbol(ExportedStaticName, Decl(staticPropertyNameConflicts.ts, 230, 1)) + + static [FunctionPropertyNames.name]: number; // error without useDefineForClassFields +>[FunctionPropertyNames.name] : Symbol(ExportedStaticName[FunctionPropertyNames.name], Decl(staticPropertyNameConflicts.ts, 232, 33)) +>FunctionPropertyNames.name : Symbol(name, Decl(staticPropertyNameConflicts.ts, 0, 31)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>name : Symbol(name, Decl(staticPropertyNameConflicts.ts, 0, 31)) + + [FunctionPropertyNames.name]: string; // ok +>[FunctionPropertyNames.name] : Symbol(ExportedStaticName[FunctionPropertyNames.name], Decl(staticPropertyNameConflicts.ts, 233, 48)) +>FunctionPropertyNames.name : Symbol(name, Decl(staticPropertyNameConflicts.ts, 0, 31)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>name : Symbol(name, Decl(staticPropertyNameConflicts.ts, 0, 31)) +} + +namespace TestOnDefaultExportedClass_2 { +>TestOnDefaultExportedClass_2 : Symbol(TestOnDefaultExportedClass_2, Decl(staticPropertyNameConflicts.ts, 235, 1)) + + class StaticNameFn { +>StaticNameFn : Symbol(StaticNameFn, Decl(staticPropertyNameConflicts.ts, 237, 40)) + + static name() {} // error without useDefineForClassFields +>name : Symbol(StaticNameFn.name, Decl(staticPropertyNameConflicts.ts, 238, 24)) + + name() {} // ok +>name : Symbol(StaticNameFn.name, Decl(staticPropertyNameConflicts.ts, 239, 24)) + } +} + +export class ExportedStaticNameFn { +>ExportedStaticNameFn : Symbol(ExportedStaticNameFn, Decl(staticPropertyNameConflicts.ts, 242, 1)) + + static [FunctionPropertyNames.name]() {} // error without useDefineForClassFields +>[FunctionPropertyNames.name] : Symbol(ExportedStaticNameFn[FunctionPropertyNames.name], Decl(staticPropertyNameConflicts.ts, 244, 35)) +>FunctionPropertyNames.name : Symbol(name, Decl(staticPropertyNameConflicts.ts, 0, 31)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>name : Symbol(name, Decl(staticPropertyNameConflicts.ts, 0, 31)) + + [FunctionPropertyNames.name]() {} // ok +>[FunctionPropertyNames.name] : Symbol(ExportedStaticNameFn[FunctionPropertyNames.name], Decl(staticPropertyNameConflicts.ts, 245, 44)) +>FunctionPropertyNames.name : Symbol(name, Decl(staticPropertyNameConflicts.ts, 0, 31)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>name : Symbol(name, Decl(staticPropertyNameConflicts.ts, 0, 31)) +} + +// length +namespace TestOnDefaultExportedClass_3 { +>TestOnDefaultExportedClass_3 : Symbol(TestOnDefaultExportedClass_3, Decl(staticPropertyNameConflicts.ts, 247, 1)) + + export default class StaticLength { +>StaticLength : Symbol(StaticLength, Decl(staticPropertyNameConflicts.ts, 250, 40)) + + static length: number; // error without useDefineForClassFields +>length : Symbol(StaticLength.length, Decl(staticPropertyNameConflicts.ts, 251, 39)) + + length: string; // ok +>length : Symbol(StaticLength.length, Decl(staticPropertyNameConflicts.ts, 252, 30)) + } +} + +export class ExportedStaticLength { +>ExportedStaticLength : Symbol(ExportedStaticLength, Decl(staticPropertyNameConflicts.ts, 255, 1)) + + static [FunctionPropertyNames.length]: number; // error without useDefineForClassFields +>[FunctionPropertyNames.length] : Symbol(ExportedStaticLength[FunctionPropertyNames.length], Decl(staticPropertyNameConflicts.ts, 257, 35)) +>FunctionPropertyNames.length : Symbol(length, Decl(staticPropertyNameConflicts.ts, 1, 17)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>length : Symbol(length, Decl(staticPropertyNameConflicts.ts, 1, 17)) + + [FunctionPropertyNames.length]: string; // ok +>[FunctionPropertyNames.length] : Symbol(ExportedStaticLength[FunctionPropertyNames.length], Decl(staticPropertyNameConflicts.ts, 258, 50)) +>FunctionPropertyNames.length : Symbol(length, Decl(staticPropertyNameConflicts.ts, 1, 17)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>length : Symbol(length, Decl(staticPropertyNameConflicts.ts, 1, 17)) +} + +namespace TestOnDefaultExportedClass_4 { +>TestOnDefaultExportedClass_4 : Symbol(TestOnDefaultExportedClass_4, Decl(staticPropertyNameConflicts.ts, 260, 1)) + + export default class StaticLengthFn { +>StaticLengthFn : Symbol(StaticLengthFn, Decl(staticPropertyNameConflicts.ts, 262, 40)) + + static length() {} // error without useDefineForClassFields +>length : Symbol(StaticLengthFn.length, Decl(staticPropertyNameConflicts.ts, 263, 41)) + + length() {} // ok +>length : Symbol(StaticLengthFn.length, Decl(staticPropertyNameConflicts.ts, 264, 26)) + } +} + +export class ExportedStaticLengthFn { +>ExportedStaticLengthFn : Symbol(ExportedStaticLengthFn, Decl(staticPropertyNameConflicts.ts, 267, 1)) + + static [FunctionPropertyNames.length]() {} // error without useDefineForClassFields +>[FunctionPropertyNames.length] : Symbol(ExportedStaticLengthFn[FunctionPropertyNames.length], Decl(staticPropertyNameConflicts.ts, 269, 37)) +>FunctionPropertyNames.length : Symbol(length, Decl(staticPropertyNameConflicts.ts, 1, 17)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>length : Symbol(length, Decl(staticPropertyNameConflicts.ts, 1, 17)) + + [FunctionPropertyNames.length]() {} // ok +>[FunctionPropertyNames.length] : Symbol(ExportedStaticLengthFn[FunctionPropertyNames.length], Decl(staticPropertyNameConflicts.ts, 270, 46)) +>FunctionPropertyNames.length : Symbol(length, Decl(staticPropertyNameConflicts.ts, 1, 17)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>length : Symbol(length, Decl(staticPropertyNameConflicts.ts, 1, 17)) +} + +// prototype +namespace TestOnDefaultExportedClass_5 { +>TestOnDefaultExportedClass_5 : Symbol(TestOnDefaultExportedClass_5, Decl(staticPropertyNameConflicts.ts, 272, 1)) + + export default class StaticPrototype { +>StaticPrototype : Symbol(StaticPrototype, Decl(staticPropertyNameConflicts.ts, 275, 40)) + + static prototype: number; // always an error +>prototype : Symbol(StaticPrototype.prototype, Decl(staticPropertyNameConflicts.ts, 276, 42)) + + prototype: string; // ok +>prototype : Symbol(StaticPrototype.prototype, Decl(staticPropertyNameConflicts.ts, 277, 33)) + } +} + +export class ExportedStaticPrototype { +>ExportedStaticPrototype : Symbol(ExportedStaticPrototype, Decl(staticPropertyNameConflicts.ts, 280, 1)) + + static [FunctionPropertyNames.prototype]: number; // always an error +>[FunctionPropertyNames.prototype] : Symbol(ExportedStaticPrototype[FunctionPropertyNames.prototype], Decl(staticPropertyNameConflicts.ts, 282, 38)) +>FunctionPropertyNames.prototype : Symbol(prototype, Decl(staticPropertyNameConflicts.ts, 2, 21)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>prototype : Symbol(prototype, Decl(staticPropertyNameConflicts.ts, 2, 21)) + + [FunctionPropertyNames.prototype]: string; // ok +>[FunctionPropertyNames.prototype] : Symbol(ExportedStaticPrototype[FunctionPropertyNames.prototype], Decl(staticPropertyNameConflicts.ts, 283, 53)) +>FunctionPropertyNames.prototype : Symbol(prototype, Decl(staticPropertyNameConflicts.ts, 2, 21)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>prototype : Symbol(prototype, Decl(staticPropertyNameConflicts.ts, 2, 21)) +} + +namespace TestOnDefaultExportedClass_6 { +>TestOnDefaultExportedClass_6 : Symbol(TestOnDefaultExportedClass_6, Decl(staticPropertyNameConflicts.ts, 285, 1)) + + export default class StaticPrototypeFn { +>StaticPrototypeFn : Symbol(StaticPrototypeFn, Decl(staticPropertyNameConflicts.ts, 287, 40)) + + static prototype() {} // always an error +>prototype : Symbol(StaticPrototypeFn.prototype, Decl(staticPropertyNameConflicts.ts, 288, 44)) + + prototype() {} // ok +>prototype : Symbol(StaticPrototypeFn.prototype, Decl(staticPropertyNameConflicts.ts, 289, 29)) + } +} + +export class ExportedStaticPrototypeFn { +>ExportedStaticPrototypeFn : Symbol(ExportedStaticPrototypeFn, Decl(staticPropertyNameConflicts.ts, 292, 1)) + + static [FunctionPropertyNames.prototype]() {} // always an error +>[FunctionPropertyNames.prototype] : Symbol(ExportedStaticPrototypeFn[FunctionPropertyNames.prototype], Decl(staticPropertyNameConflicts.ts, 294, 40)) +>FunctionPropertyNames.prototype : Symbol(prototype, Decl(staticPropertyNameConflicts.ts, 2, 21)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>prototype : Symbol(prototype, Decl(staticPropertyNameConflicts.ts, 2, 21)) + + [FunctionPropertyNames.prototype]() {} // ok +>[FunctionPropertyNames.prototype] : Symbol(ExportedStaticPrototypeFn[FunctionPropertyNames.prototype], Decl(staticPropertyNameConflicts.ts, 295, 49)) +>FunctionPropertyNames.prototype : Symbol(prototype, Decl(staticPropertyNameConflicts.ts, 2, 21)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>prototype : Symbol(prototype, Decl(staticPropertyNameConflicts.ts, 2, 21)) +} + +// caller +namespace TestOnDefaultExportedClass_7 { +>TestOnDefaultExportedClass_7 : Symbol(TestOnDefaultExportedClass_7, Decl(staticPropertyNameConflicts.ts, 297, 1)) + + export default class StaticCaller { +>StaticCaller : Symbol(StaticCaller, Decl(staticPropertyNameConflicts.ts, 300, 40)) + + static caller: number; // error without useDefineForClassFields +>caller : Symbol(StaticCaller.caller, Decl(staticPropertyNameConflicts.ts, 301, 39)) + + caller: string; // ok +>caller : Symbol(StaticCaller.caller, Decl(staticPropertyNameConflicts.ts, 302, 30)) + } +} + +export class ExportedStaticCaller { +>ExportedStaticCaller : Symbol(ExportedStaticCaller, Decl(staticPropertyNameConflicts.ts, 305, 1)) + + static [FunctionPropertyNames.caller]: number; // error without useDefineForClassFields +>[FunctionPropertyNames.caller] : Symbol(ExportedStaticCaller[FunctionPropertyNames.caller], Decl(staticPropertyNameConflicts.ts, 307, 35)) +>FunctionPropertyNames.caller : Symbol(caller, Decl(staticPropertyNameConflicts.ts, 3, 27)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>caller : Symbol(caller, Decl(staticPropertyNameConflicts.ts, 3, 27)) + + [FunctionPropertyNames.caller]: string; // ok +>[FunctionPropertyNames.caller] : Symbol(ExportedStaticCaller[FunctionPropertyNames.caller], Decl(staticPropertyNameConflicts.ts, 308, 50)) +>FunctionPropertyNames.caller : Symbol(caller, Decl(staticPropertyNameConflicts.ts, 3, 27)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>caller : Symbol(caller, Decl(staticPropertyNameConflicts.ts, 3, 27)) +} + +namespace TestOnDefaultExportedClass_8 { +>TestOnDefaultExportedClass_8 : Symbol(TestOnDefaultExportedClass_8, Decl(staticPropertyNameConflicts.ts, 310, 1)) + + export default class StaticCallerFn { +>StaticCallerFn : Symbol(StaticCallerFn, Decl(staticPropertyNameConflicts.ts, 312, 40)) + + static caller() {} // error without useDefineForClassFields +>caller : Symbol(StaticCallerFn.caller, Decl(staticPropertyNameConflicts.ts, 313, 41)) + + caller() {} // ok +>caller : Symbol(StaticCallerFn.caller, Decl(staticPropertyNameConflicts.ts, 314, 26)) + } +} + +export class ExportedStaticCallerFn { +>ExportedStaticCallerFn : Symbol(ExportedStaticCallerFn, Decl(staticPropertyNameConflicts.ts, 317, 1)) + + static [FunctionPropertyNames.caller]() {} // error without useDefineForClassFields +>[FunctionPropertyNames.caller] : Symbol(ExportedStaticCallerFn[FunctionPropertyNames.caller], Decl(staticPropertyNameConflicts.ts, 319, 37)) +>FunctionPropertyNames.caller : Symbol(caller, Decl(staticPropertyNameConflicts.ts, 3, 27)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>caller : Symbol(caller, Decl(staticPropertyNameConflicts.ts, 3, 27)) + + [FunctionPropertyNames.caller]() {} // ok +>[FunctionPropertyNames.caller] : Symbol(ExportedStaticCallerFn[FunctionPropertyNames.caller], Decl(staticPropertyNameConflicts.ts, 320, 46)) +>FunctionPropertyNames.caller : Symbol(caller, Decl(staticPropertyNameConflicts.ts, 3, 27)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>caller : Symbol(caller, Decl(staticPropertyNameConflicts.ts, 3, 27)) +} + +// arguments +namespace TestOnDefaultExportedClass_9 { +>TestOnDefaultExportedClass_9 : Symbol(TestOnDefaultExportedClass_9, Decl(staticPropertyNameConflicts.ts, 322, 1)) + + export default class StaticArguments { +>StaticArguments : Symbol(StaticArguments, Decl(staticPropertyNameConflicts.ts, 325, 40)) + + static arguments: number; // error without useDefineForClassFields +>arguments : Symbol(StaticArguments.arguments, Decl(staticPropertyNameConflicts.ts, 326, 42)) + + arguments: string; // ok +>arguments : Symbol(StaticArguments.arguments, Decl(staticPropertyNameConflicts.ts, 327, 33)) + } +} + +export class ExportedStaticArguments { +>ExportedStaticArguments : Symbol(ExportedStaticArguments, Decl(staticPropertyNameConflicts.ts, 330, 1)) + + static [FunctionPropertyNames.arguments]: number; // error without useDefineForClassFields +>[FunctionPropertyNames.arguments] : Symbol(ExportedStaticArguments[FunctionPropertyNames.arguments], Decl(staticPropertyNameConflicts.ts, 332, 38)) +>FunctionPropertyNames.arguments : Symbol(arguments, Decl(staticPropertyNameConflicts.ts, 4, 21)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>arguments : Symbol(arguments, Decl(staticPropertyNameConflicts.ts, 4, 21)) + + [FunctionPropertyNames.arguments]: string; // ok +>[FunctionPropertyNames.arguments] : Symbol(ExportedStaticArguments[FunctionPropertyNames.arguments], Decl(staticPropertyNameConflicts.ts, 333, 53)) +>FunctionPropertyNames.arguments : Symbol(arguments, Decl(staticPropertyNameConflicts.ts, 4, 21)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>arguments : Symbol(arguments, Decl(staticPropertyNameConflicts.ts, 4, 21)) +} + +namespace TestOnDefaultExportedClass_10 { +>TestOnDefaultExportedClass_10 : Symbol(TestOnDefaultExportedClass_10, Decl(staticPropertyNameConflicts.ts, 335, 1)) + + export default class StaticArgumentsFn { +>StaticArgumentsFn : Symbol(StaticArgumentsFn, Decl(staticPropertyNameConflicts.ts, 337, 41)) + + static arguments() {} // error without useDefineForClassFields +>arguments : Symbol(StaticArgumentsFn.arguments, Decl(staticPropertyNameConflicts.ts, 338, 44)) + + arguments() {} // ok +>arguments : Symbol(StaticArgumentsFn.arguments, Decl(staticPropertyNameConflicts.ts, 339, 29)) + } +} + +export class ExportedStaticArgumentsFn { +>ExportedStaticArgumentsFn : Symbol(ExportedStaticArgumentsFn, Decl(staticPropertyNameConflicts.ts, 342, 1)) + + static [FunctionPropertyNames.arguments]() {} // error without useDefineForClassFields +>[FunctionPropertyNames.arguments] : Symbol(ExportedStaticArgumentsFn[FunctionPropertyNames.arguments], Decl(staticPropertyNameConflicts.ts, 344, 40)) +>FunctionPropertyNames.arguments : Symbol(arguments, Decl(staticPropertyNameConflicts.ts, 4, 21)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>arguments : Symbol(arguments, Decl(staticPropertyNameConflicts.ts, 4, 21)) + + [FunctionPropertyNames.arguments]() {} // ok +>[FunctionPropertyNames.arguments] : Symbol(ExportedStaticArgumentsFn[FunctionPropertyNames.arguments], Decl(staticPropertyNameConflicts.ts, 345, 49)) +>FunctionPropertyNames.arguments : Symbol(arguments, Decl(staticPropertyNameConflicts.ts, 4, 21)) +>FunctionPropertyNames : Symbol(FunctionPropertyNames, Decl(staticPropertyNameConflicts.ts, 0, 5)) +>arguments : Symbol(arguments, Decl(staticPropertyNameConflicts.ts, 4, 21)) +} diff --git a/tests/baselines/reference/staticPropertyNameConflicts(target=es5,usedefineforclassfields=true).types b/tests/baselines/reference/staticPropertyNameConflicts(target=es5,usedefineforclassfields=true).types new file mode 100644 index 0000000000000..ea7ff4d80440a --- /dev/null +++ b/tests/baselines/reference/staticPropertyNameConflicts(target=es5,usedefineforclassfields=true).types @@ -0,0 +1,1293 @@ +//// [tests/cases/conformance/classes/propertyMemberDeclarations/staticPropertyNameConflicts.ts] //// + +=== staticPropertyNameConflicts.ts === +const FunctionPropertyNames = { +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ name: 'name', length: 'length', prototype: 'prototype', caller: 'caller', arguments: 'arguments',} as const : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ name: 'name', length: 'length', prototype: 'prototype', caller: 'caller', arguments: 'arguments',} : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + name: 'name', +>name : "name" +> : ^^^^^^ +>'name' : "name" +> : ^^^^^^ + + length: 'length', +>length : "length" +> : ^^^^^^^^ +>'length' : "length" +> : ^^^^^^^^ + + prototype: 'prototype', +>prototype : "prototype" +> : ^^^^^^^^^^^ +>'prototype' : "prototype" +> : ^^^^^^^^^^^ + + caller: 'caller', +>caller : "caller" +> : ^^^^^^^^ +>'caller' : "caller" +> : ^^^^^^^^ + + arguments: 'arguments', +>arguments : "arguments" +> : ^^^^^^^^^^^ +>'arguments' : "arguments" +> : ^^^^^^^^^^^ + +} as const; + +// name +class StaticName { +>StaticName : StaticName +> : ^^^^^^^^^^ + + static name: number; // error without useDefineForClassFields +>name : number +> : ^^^^^^ + + name: string; // ok +>name : string +> : ^^^^^^ +} + +class StaticName2 { +>StaticName2 : StaticName2 +> : ^^^^^^^^^^^ + + static [FunctionPropertyNames.name]: number; // error without useDefineForClassFields +>[FunctionPropertyNames.name] : number +> : ^^^^^^ +>FunctionPropertyNames.name : "name" +> : ^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>name : "name" +> : ^^^^^^ + + [FunctionPropertyNames.name]: number; // ok +>[FunctionPropertyNames.name] : number +> : ^^^^^^ +>FunctionPropertyNames.name : "name" +> : ^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>name : "name" +> : ^^^^^^ +} + +class StaticNameFn { +>StaticNameFn : StaticNameFn +> : ^^^^^^^^^^^^ + + static name() {} // error without useDefineForClassFields +>name : () => void +> : ^^^^^^^^^^ + + name() {} // ok +>name : () => void +> : ^^^^^^^^^^ +} + +class StaticNameFn2 { +>StaticNameFn2 : StaticNameFn2 +> : ^^^^^^^^^^^^^ + + static [FunctionPropertyNames.name]() {} // error without useDefineForClassFields +>[FunctionPropertyNames.name] : () => void +> : ^^^^^^^^^^ +>FunctionPropertyNames.name : "name" +> : ^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>name : "name" +> : ^^^^^^ + + [FunctionPropertyNames.name]() {} // ok +>[FunctionPropertyNames.name] : () => void +> : ^^^^^^^^^^ +>FunctionPropertyNames.name : "name" +> : ^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>name : "name" +> : ^^^^^^ +} + +// length +class StaticLength { +>StaticLength : StaticLength +> : ^^^^^^^^^^^^ + + static length: number; // error without useDefineForClassFields +>length : number +> : ^^^^^^ + + length: string; // ok +>length : string +> : ^^^^^^ +} + +class StaticLength2 { +>StaticLength2 : StaticLength2 +> : ^^^^^^^^^^^^^ + + static [FunctionPropertyNames.length]: number; // error without useDefineForClassFields +>[FunctionPropertyNames.length] : number +> : ^^^^^^ +>FunctionPropertyNames.length : "length" +> : ^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>length : "length" +> : ^^^^^^^^ + + [FunctionPropertyNames.length]: number; // ok +>[FunctionPropertyNames.length] : number +> : ^^^^^^ +>FunctionPropertyNames.length : "length" +> : ^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>length : "length" +> : ^^^^^^^^ +} + +class StaticLengthFn { +>StaticLengthFn : StaticLengthFn +> : ^^^^^^^^^^^^^^ + + static length() {} // error without useDefineForClassFields +>length : () => void +> : ^^^^^^^^^^ + + length() {} // ok +>length : () => void +> : ^^^^^^^^^^ +} + +class StaticLengthFn2 { +>StaticLengthFn2 : StaticLengthFn2 +> : ^^^^^^^^^^^^^^^ + + static [FunctionPropertyNames.length]() {} // error without useDefineForClassFields +>[FunctionPropertyNames.length] : () => void +> : ^^^^^^^^^^ +>FunctionPropertyNames.length : "length" +> : ^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>length : "length" +> : ^^^^^^^^ + + [FunctionPropertyNames.length]() {} // ok +>[FunctionPropertyNames.length] : () => void +> : ^^^^^^^^^^ +>FunctionPropertyNames.length : "length" +> : ^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>length : "length" +> : ^^^^^^^^ +} + +// prototype +class StaticPrototype { +>StaticPrototype : StaticPrototype +> : ^^^^^^^^^^^^^^^ + + static prototype: number; // always an error +>prototype : StaticPrototype +> : ^^^^^^^^^^^^^^^ + + prototype: string; // ok +>prototype : string +> : ^^^^^^ +} + +class StaticPrototype2 { +>StaticPrototype2 : StaticPrototype2 +> : ^^^^^^^^^^^^^^^^ + + static [FunctionPropertyNames.prototype]: number; // always an error +>[FunctionPropertyNames.prototype] : StaticPrototype2 +> : ^^^^^^^^^^^^^^^^ +>FunctionPropertyNames.prototype : "prototype" +> : ^^^^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>prototype : "prototype" +> : ^^^^^^^^^^^ + + [FunctionPropertyNames.prototype]: string; // ok +>[FunctionPropertyNames.prototype] : string +> : ^^^^^^ +>FunctionPropertyNames.prototype : "prototype" +> : ^^^^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>prototype : "prototype" +> : ^^^^^^^^^^^ +} + +class StaticPrototypeFn { +>StaticPrototypeFn : StaticPrototypeFn +> : ^^^^^^^^^^^^^^^^^ + + static prototype() {} // always an error +>prototype : () => void +> : ^^^^^^^^^^ + + prototype() {} // ok +>prototype : () => void +> : ^^^^^^^^^^ +} + +class StaticPrototypeFn2 { +>StaticPrototypeFn2 : StaticPrototypeFn2 +> : ^^^^^^^^^^^^^^^^^^ + + static [FunctionPropertyNames.prototype]() {} // always an error +>[FunctionPropertyNames.prototype] : () => void +> : ^^^^^^^^^^ +>FunctionPropertyNames.prototype : "prototype" +> : ^^^^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>prototype : "prototype" +> : ^^^^^^^^^^^ + + [FunctionPropertyNames.prototype]() {} // ok +>[FunctionPropertyNames.prototype] : () => void +> : ^^^^^^^^^^ +>FunctionPropertyNames.prototype : "prototype" +> : ^^^^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>prototype : "prototype" +> : ^^^^^^^^^^^ +} + +// caller +class StaticCaller { +>StaticCaller : StaticCaller +> : ^^^^^^^^^^^^ + + static caller: number; // error without useDefineForClassFields +>caller : number +> : ^^^^^^ + + caller: string; // ok +>caller : string +> : ^^^^^^ +} + +class StaticCaller2 { +>StaticCaller2 : StaticCaller2 +> : ^^^^^^^^^^^^^ + + static [FunctionPropertyNames.caller]: number; // error without useDefineForClassFields +>[FunctionPropertyNames.caller] : number +> : ^^^^^^ +>FunctionPropertyNames.caller : "caller" +> : ^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>caller : "caller" +> : ^^^^^^^^ + + [FunctionPropertyNames.caller]: string; // ok +>[FunctionPropertyNames.caller] : string +> : ^^^^^^ +>FunctionPropertyNames.caller : "caller" +> : ^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>caller : "caller" +> : ^^^^^^^^ +} + +class StaticCallerFn { +>StaticCallerFn : StaticCallerFn +> : ^^^^^^^^^^^^^^ + + static caller() {} // error without useDefineForClassFields +>caller : () => void +> : ^^^^^^^^^^ + + caller() {} // ok +>caller : () => void +> : ^^^^^^^^^^ +} + +class StaticCallerFn2 { +>StaticCallerFn2 : StaticCallerFn2 +> : ^^^^^^^^^^^^^^^ + + static [FunctionPropertyNames.caller]() {} // error without useDefineForClassFields +>[FunctionPropertyNames.caller] : () => void +> : ^^^^^^^^^^ +>FunctionPropertyNames.caller : "caller" +> : ^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>caller : "caller" +> : ^^^^^^^^ + + [FunctionPropertyNames.caller]() {} // ok +>[FunctionPropertyNames.caller] : () => void +> : ^^^^^^^^^^ +>FunctionPropertyNames.caller : "caller" +> : ^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>caller : "caller" +> : ^^^^^^^^ +} + +// arguments +class StaticArguments { +>StaticArguments : StaticArguments +> : ^^^^^^^^^^^^^^^ + + static arguments: number; // error without useDefineForClassFields +>arguments : number +> : ^^^^^^ + + arguments: string; // ok +>arguments : string +> : ^^^^^^ +} + +class StaticArguments2 { +>StaticArguments2 : StaticArguments2 +> : ^^^^^^^^^^^^^^^^ + + static [FunctionPropertyNames.arguments]: number; // error without useDefineForClassFields +>[FunctionPropertyNames.arguments] : number +> : ^^^^^^ +>FunctionPropertyNames.arguments : "arguments" +> : ^^^^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>arguments : "arguments" +> : ^^^^^^^^^^^ + + [FunctionPropertyNames.arguments]: string; // ok +>[FunctionPropertyNames.arguments] : string +> : ^^^^^^ +>FunctionPropertyNames.arguments : "arguments" +> : ^^^^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>arguments : "arguments" +> : ^^^^^^^^^^^ +} + +class StaticArgumentsFn { +>StaticArgumentsFn : StaticArgumentsFn +> : ^^^^^^^^^^^^^^^^^ + + static arguments() {} // error without useDefineForClassFields +>arguments : () => void +> : ^^^^^^^^^^ + + arguments() {} // ok +>arguments : () => void +> : ^^^^^^^^^^ +} + +class StaticArgumentsFn2 { +>StaticArgumentsFn2 : StaticArgumentsFn2 +> : ^^^^^^^^^^^^^^^^^^ + + static [FunctionPropertyNames.arguments]() {} // error without useDefineForClassFields +>[FunctionPropertyNames.arguments] : () => void +> : ^^^^^^^^^^ +>FunctionPropertyNames.arguments : "arguments" +> : ^^^^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>arguments : "arguments" +> : ^^^^^^^^^^^ + + [FunctionPropertyNames.arguments]() {} // ok +>[FunctionPropertyNames.arguments] : () => void +> : ^^^^^^^^^^ +>FunctionPropertyNames.arguments : "arguments" +> : ^^^^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>arguments : "arguments" +> : ^^^^^^^^^^^ +} + + +// === Static properties on anonymous classes === + +// name +var StaticName_Anonymous = class { +>StaticName_Anonymous : typeof StaticName_Anonymous +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>class { static name: number; // error without useDefineForClassFields name: string; // ok} : typeof StaticName_Anonymous +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static name: number; // error without useDefineForClassFields +>name : number +> : ^^^^^^ + + name: string; // ok +>name : string +> : ^^^^^^ +} + +var StaticName_Anonymous2 = class { +>StaticName_Anonymous2 : typeof StaticName_Anonymous2 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>class { static [FunctionPropertyNames.name]: number; // error without useDefineForClassFields [FunctionPropertyNames.name]: string; // ok} : typeof StaticName_Anonymous2 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static [FunctionPropertyNames.name]: number; // error without useDefineForClassFields +>[FunctionPropertyNames.name] : number +> : ^^^^^^ +>FunctionPropertyNames.name : "name" +> : ^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>name : "name" +> : ^^^^^^ + + [FunctionPropertyNames.name]: string; // ok +>[FunctionPropertyNames.name] : string +> : ^^^^^^ +>FunctionPropertyNames.name : "name" +> : ^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>name : "name" +> : ^^^^^^ +} + +var StaticNameFn_Anonymous = class { +>StaticNameFn_Anonymous : typeof StaticNameFn_Anonymous +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>class { static name() {} // error without useDefineForClassFields name() {} // ok} : typeof StaticNameFn_Anonymous +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static name() {} // error without useDefineForClassFields +>name : () => void +> : ^^^^^^^^^^ + + name() {} // ok +>name : () => void +> : ^^^^^^^^^^ +} + +var StaticNameFn_Anonymous2 = class { +>StaticNameFn_Anonymous2 : typeof StaticNameFn_Anonymous2 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>class { static [FunctionPropertyNames.name]() {} // error without useDefineForClassFields [FunctionPropertyNames.name]() {} // ok} : typeof StaticNameFn_Anonymous2 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static [FunctionPropertyNames.name]() {} // error without useDefineForClassFields +>[FunctionPropertyNames.name] : () => void +> : ^^^^^^^^^^ +>FunctionPropertyNames.name : "name" +> : ^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>name : "name" +> : ^^^^^^ + + [FunctionPropertyNames.name]() {} // ok +>[FunctionPropertyNames.name] : () => void +> : ^^^^^^^^^^ +>FunctionPropertyNames.name : "name" +> : ^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>name : "name" +> : ^^^^^^ +} + +// length +var StaticLength_Anonymous = class { +>StaticLength_Anonymous : typeof StaticLength_Anonymous +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>class { static length: number; // error without useDefineForClassFields length: string; // ok} : typeof StaticLength_Anonymous +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static length: number; // error without useDefineForClassFields +>length : number +> : ^^^^^^ + + length: string; // ok +>length : string +> : ^^^^^^ +} + +var StaticLength_Anonymous2 = class { +>StaticLength_Anonymous2 : typeof StaticLength_Anonymous2 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>class { static [FunctionPropertyNames.length]: number; // error without useDefineForClassFields [FunctionPropertyNames.length]: string; // ok} : typeof StaticLength_Anonymous2 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static [FunctionPropertyNames.length]: number; // error without useDefineForClassFields +>[FunctionPropertyNames.length] : number +> : ^^^^^^ +>FunctionPropertyNames.length : "length" +> : ^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>length : "length" +> : ^^^^^^^^ + + [FunctionPropertyNames.length]: string; // ok +>[FunctionPropertyNames.length] : string +> : ^^^^^^ +>FunctionPropertyNames.length : "length" +> : ^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>length : "length" +> : ^^^^^^^^ +} + +var StaticLengthFn_Anonymous = class { +>StaticLengthFn_Anonymous : typeof StaticLengthFn_Anonymous +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>class { static length() {} // error without useDefineForClassFields length() {} // ok} : typeof StaticLengthFn_Anonymous +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static length() {} // error without useDefineForClassFields +>length : () => void +> : ^^^^^^^^^^ + + length() {} // ok +>length : () => void +> : ^^^^^^^^^^ +} + +var StaticLengthFn_Anonymous2 = class { +>StaticLengthFn_Anonymous2 : typeof StaticLengthFn_Anonymous2 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>class { static [FunctionPropertyNames.length]() {} // error without useDefineForClassFields [FunctionPropertyNames.length]() {} // ok} : typeof StaticLengthFn_Anonymous2 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static [FunctionPropertyNames.length]() {} // error without useDefineForClassFields +>[FunctionPropertyNames.length] : () => void +> : ^^^^^^^^^^ +>FunctionPropertyNames.length : "length" +> : ^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>length : "length" +> : ^^^^^^^^ + + [FunctionPropertyNames.length]() {} // ok +>[FunctionPropertyNames.length] : () => void +> : ^^^^^^^^^^ +>FunctionPropertyNames.length : "length" +> : ^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>length : "length" +> : ^^^^^^^^ +} + +// prototype +var StaticPrototype_Anonymous = class { +>StaticPrototype_Anonymous : typeof StaticPrototype_Anonymous +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>class { static prototype: number; // always an error prototype: string; // ok} : typeof StaticPrototype_Anonymous +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static prototype: number; // always an error +>prototype : StaticPrototype_Anonymous +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ + + prototype: string; // ok +>prototype : string +> : ^^^^^^ +} + +var StaticPrototype_Anonymous2 = class { +>StaticPrototype_Anonymous2 : typeof StaticPrototype_Anonymous2 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>class { static [FunctionPropertyNames.prototype]: number; // always an error [FunctionPropertyNames.prototype]: string; // ok} : typeof StaticPrototype_Anonymous2 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static [FunctionPropertyNames.prototype]: number; // always an error +>[FunctionPropertyNames.prototype] : StaticPrototype_Anonymous2 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^ +>FunctionPropertyNames.prototype : "prototype" +> : ^^^^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>prototype : "prototype" +> : ^^^^^^^^^^^ + + [FunctionPropertyNames.prototype]: string; // ok +>[FunctionPropertyNames.prototype] : string +> : ^^^^^^ +>FunctionPropertyNames.prototype : "prototype" +> : ^^^^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>prototype : "prototype" +> : ^^^^^^^^^^^ +} + +var StaticPrototypeFn_Anonymous = class { +>StaticPrototypeFn_Anonymous : typeof StaticPrototypeFn_Anonymous +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>class { static prototype() {} // always an error prototype() {} // ok} : typeof StaticPrototypeFn_Anonymous +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static prototype() {} // always an error +>prototype : () => void +> : ^^^^^^^^^^ + + prototype() {} // ok +>prototype : () => void +> : ^^^^^^^^^^ +} + +var StaticPrototypeFn_Anonymous2 = class { +>StaticPrototypeFn_Anonymous2 : typeof StaticPrototypeFn_Anonymous2 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>class { static [FunctionPropertyNames.prototype]() {} // always an error [FunctionPropertyNames.prototype]() {} // ok} : typeof StaticPrototypeFn_Anonymous2 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static [FunctionPropertyNames.prototype]() {} // always an error +>[FunctionPropertyNames.prototype] : () => void +> : ^^^^^^^^^^ +>FunctionPropertyNames.prototype : "prototype" +> : ^^^^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>prototype : "prototype" +> : ^^^^^^^^^^^ + + [FunctionPropertyNames.prototype]() {} // ok +>[FunctionPropertyNames.prototype] : () => void +> : ^^^^^^^^^^ +>FunctionPropertyNames.prototype : "prototype" +> : ^^^^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>prototype : "prototype" +> : ^^^^^^^^^^^ +} + +// caller +var StaticCaller_Anonymous = class { +>StaticCaller_Anonymous : typeof StaticCaller_Anonymous +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>class { static caller: number; // error without useDefineForClassFields caller: string; // ok} : typeof StaticCaller_Anonymous +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static caller: number; // error without useDefineForClassFields +>caller : number +> : ^^^^^^ + + caller: string; // ok +>caller : string +> : ^^^^^^ +} + +var StaticCaller_Anonymous2 = class { +>StaticCaller_Anonymous2 : typeof StaticCaller_Anonymous2 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>class { static [FunctionPropertyNames.caller]: number; // error without useDefineForClassFields [FunctionPropertyNames.caller]: string; // ok} : typeof StaticCaller_Anonymous2 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static [FunctionPropertyNames.caller]: number; // error without useDefineForClassFields +>[FunctionPropertyNames.caller] : number +> : ^^^^^^ +>FunctionPropertyNames.caller : "caller" +> : ^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>caller : "caller" +> : ^^^^^^^^ + + [FunctionPropertyNames.caller]: string; // ok +>[FunctionPropertyNames.caller] : string +> : ^^^^^^ +>FunctionPropertyNames.caller : "caller" +> : ^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>caller : "caller" +> : ^^^^^^^^ +} + +var StaticCallerFn_Anonymous = class { +>StaticCallerFn_Anonymous : typeof StaticCallerFn_Anonymous +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>class { static caller() {} // error without useDefineForClassFields caller() {} // ok} : typeof StaticCallerFn_Anonymous +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static caller() {} // error without useDefineForClassFields +>caller : () => void +> : ^^^^^^^^^^ + + caller() {} // ok +>caller : () => void +> : ^^^^^^^^^^ +} + +var StaticCallerFn_Anonymous2 = class { +>StaticCallerFn_Anonymous2 : typeof StaticCallerFn_Anonymous2 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>class { static [FunctionPropertyNames.caller]() {} // error without useDefineForClassFields [FunctionPropertyNames.caller]() {} // ok} : typeof StaticCallerFn_Anonymous2 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static [FunctionPropertyNames.caller]() {} // error without useDefineForClassFields +>[FunctionPropertyNames.caller] : () => void +> : ^^^^^^^^^^ +>FunctionPropertyNames.caller : "caller" +> : ^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>caller : "caller" +> : ^^^^^^^^ + + [FunctionPropertyNames.caller]() {} // ok +>[FunctionPropertyNames.caller] : () => void +> : ^^^^^^^^^^ +>FunctionPropertyNames.caller : "caller" +> : ^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>caller : "caller" +> : ^^^^^^^^ +} + +// arguments +var StaticArguments_Anonymous = class { +>StaticArguments_Anonymous : typeof StaticArguments_Anonymous +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>class { static arguments: number; // error without useDefineForClassFields arguments: string; // ok} : typeof StaticArguments_Anonymous +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static arguments: number; // error without useDefineForClassFields +>arguments : number +> : ^^^^^^ + + arguments: string; // ok +>arguments : string +> : ^^^^^^ +} + +var StaticArguments_Anonymous2 = class { +>StaticArguments_Anonymous2 : typeof StaticArguments_Anonymous2 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>class { static [FunctionPropertyNames.arguments]: number; // error without useDefineForClassFields [FunctionPropertyNames.arguments]: string; // ok} : typeof StaticArguments_Anonymous2 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static [FunctionPropertyNames.arguments]: number; // error without useDefineForClassFields +>[FunctionPropertyNames.arguments] : number +> : ^^^^^^ +>FunctionPropertyNames.arguments : "arguments" +> : ^^^^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>arguments : "arguments" +> : ^^^^^^^^^^^ + + [FunctionPropertyNames.arguments]: string; // ok +>[FunctionPropertyNames.arguments] : string +> : ^^^^^^ +>FunctionPropertyNames.arguments : "arguments" +> : ^^^^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>arguments : "arguments" +> : ^^^^^^^^^^^ +} + +var StaticArgumentsFn_Anonymous = class { +>StaticArgumentsFn_Anonymous : typeof StaticArgumentsFn_Anonymous +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>class { static arguments() {} // error without useDefineForClassFields arguments() {} // ok} : typeof StaticArgumentsFn_Anonymous +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static arguments() {} // error without useDefineForClassFields +>arguments : () => void +> : ^^^^^^^^^^ + + arguments() {} // ok +>arguments : () => void +> : ^^^^^^^^^^ +} + +var StaticArgumentsFn_Anonymous2 = class { +>StaticArgumentsFn_Anonymous2 : typeof StaticArgumentsFn_Anonymous2 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>class { static [FunctionPropertyNames.arguments]() {} // error without useDefineForClassFields [FunctionPropertyNames.arguments]() {} // ok} : typeof StaticArgumentsFn_Anonymous2 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + static [FunctionPropertyNames.arguments]() {} // error without useDefineForClassFields +>[FunctionPropertyNames.arguments] : () => void +> : ^^^^^^^^^^ +>FunctionPropertyNames.arguments : "arguments" +> : ^^^^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>arguments : "arguments" +> : ^^^^^^^^^^^ + + [FunctionPropertyNames.arguments]() {} // ok +>[FunctionPropertyNames.arguments] : () => void +> : ^^^^^^^^^^ +>FunctionPropertyNames.arguments : "arguments" +> : ^^^^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>arguments : "arguments" +> : ^^^^^^^^^^^ +} + + +// === Static properties on default exported classes === + +// name +namespace TestOnDefaultExportedClass_1 { +>TestOnDefaultExportedClass_1 : typeof TestOnDefaultExportedClass_1 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + class StaticName { +>StaticName : StaticName +> : ^^^^^^^^^^ + + static name: number; // error without useDefineForClassFields +>name : number +> : ^^^^^^ + + name: string; // ok +>name : string +> : ^^^^^^ + } +} + +export class ExportedStaticName { +>ExportedStaticName : ExportedStaticName +> : ^^^^^^^^^^^^^^^^^^ + + static [FunctionPropertyNames.name]: number; // error without useDefineForClassFields +>[FunctionPropertyNames.name] : number +> : ^^^^^^ +>FunctionPropertyNames.name : "name" +> : ^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>name : "name" +> : ^^^^^^ + + [FunctionPropertyNames.name]: string; // ok +>[FunctionPropertyNames.name] : string +> : ^^^^^^ +>FunctionPropertyNames.name : "name" +> : ^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>name : "name" +> : ^^^^^^ +} + +namespace TestOnDefaultExportedClass_2 { +>TestOnDefaultExportedClass_2 : typeof TestOnDefaultExportedClass_2 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + class StaticNameFn { +>StaticNameFn : StaticNameFn +> : ^^^^^^^^^^^^ + + static name() {} // error without useDefineForClassFields +>name : () => void +> : ^^^^^^^^^^ + + name() {} // ok +>name : () => void +> : ^^^^^^^^^^ + } +} + +export class ExportedStaticNameFn { +>ExportedStaticNameFn : ExportedStaticNameFn +> : ^^^^^^^^^^^^^^^^^^^^ + + static [FunctionPropertyNames.name]() {} // error without useDefineForClassFields +>[FunctionPropertyNames.name] : () => void +> : ^^^^^^^^^^ +>FunctionPropertyNames.name : "name" +> : ^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>name : "name" +> : ^^^^^^ + + [FunctionPropertyNames.name]() {} // ok +>[FunctionPropertyNames.name] : () => void +> : ^^^^^^^^^^ +>FunctionPropertyNames.name : "name" +> : ^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>name : "name" +> : ^^^^^^ +} + +// length +namespace TestOnDefaultExportedClass_3 { +>TestOnDefaultExportedClass_3 : typeof TestOnDefaultExportedClass_3 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + export default class StaticLength { +>StaticLength : StaticLength +> : ^^^^^^^^^^^^ + + static length: number; // error without useDefineForClassFields +>length : number +> : ^^^^^^ + + length: string; // ok +>length : string +> : ^^^^^^ + } +} + +export class ExportedStaticLength { +>ExportedStaticLength : ExportedStaticLength +> : ^^^^^^^^^^^^^^^^^^^^ + + static [FunctionPropertyNames.length]: number; // error without useDefineForClassFields +>[FunctionPropertyNames.length] : number +> : ^^^^^^ +>FunctionPropertyNames.length : "length" +> : ^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>length : "length" +> : ^^^^^^^^ + + [FunctionPropertyNames.length]: string; // ok +>[FunctionPropertyNames.length] : string +> : ^^^^^^ +>FunctionPropertyNames.length : "length" +> : ^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>length : "length" +> : ^^^^^^^^ +} + +namespace TestOnDefaultExportedClass_4 { +>TestOnDefaultExportedClass_4 : typeof TestOnDefaultExportedClass_4 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + export default class StaticLengthFn { +>StaticLengthFn : StaticLengthFn +> : ^^^^^^^^^^^^^^ + + static length() {} // error without useDefineForClassFields +>length : () => void +> : ^^^^^^^^^^ + + length() {} // ok +>length : () => void +> : ^^^^^^^^^^ + } +} + +export class ExportedStaticLengthFn { +>ExportedStaticLengthFn : ExportedStaticLengthFn +> : ^^^^^^^^^^^^^^^^^^^^^^ + + static [FunctionPropertyNames.length]() {} // error without useDefineForClassFields +>[FunctionPropertyNames.length] : () => void +> : ^^^^^^^^^^ +>FunctionPropertyNames.length : "length" +> : ^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>length : "length" +> : ^^^^^^^^ + + [FunctionPropertyNames.length]() {} // ok +>[FunctionPropertyNames.length] : () => void +> : ^^^^^^^^^^ +>FunctionPropertyNames.length : "length" +> : ^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>length : "length" +> : ^^^^^^^^ +} + +// prototype +namespace TestOnDefaultExportedClass_5 { +>TestOnDefaultExportedClass_5 : typeof TestOnDefaultExportedClass_5 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + export default class StaticPrototype { +>StaticPrototype : StaticPrototype +> : ^^^^^^^^^^^^^^^ + + static prototype: number; // always an error +>prototype : StaticPrototype +> : ^^^^^^^^^^^^^^^ + + prototype: string; // ok +>prototype : string +> : ^^^^^^ + } +} + +export class ExportedStaticPrototype { +>ExportedStaticPrototype : ExportedStaticPrototype +> : ^^^^^^^^^^^^^^^^^^^^^^^ + + static [FunctionPropertyNames.prototype]: number; // always an error +>[FunctionPropertyNames.prototype] : ExportedStaticPrototype +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>FunctionPropertyNames.prototype : "prototype" +> : ^^^^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>prototype : "prototype" +> : ^^^^^^^^^^^ + + [FunctionPropertyNames.prototype]: string; // ok +>[FunctionPropertyNames.prototype] : string +> : ^^^^^^ +>FunctionPropertyNames.prototype : "prototype" +> : ^^^^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>prototype : "prototype" +> : ^^^^^^^^^^^ +} + +namespace TestOnDefaultExportedClass_6 { +>TestOnDefaultExportedClass_6 : typeof TestOnDefaultExportedClass_6 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + export default class StaticPrototypeFn { +>StaticPrototypeFn : StaticPrototypeFn +> : ^^^^^^^^^^^^^^^^^ + + static prototype() {} // always an error +>prototype : () => void +> : ^^^^^^^^^^ + + prototype() {} // ok +>prototype : () => void +> : ^^^^^^^^^^ + } +} + +export class ExportedStaticPrototypeFn { +>ExportedStaticPrototypeFn : ExportedStaticPrototypeFn +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ + + static [FunctionPropertyNames.prototype]() {} // always an error +>[FunctionPropertyNames.prototype] : () => void +> : ^^^^^^^^^^ +>FunctionPropertyNames.prototype : "prototype" +> : ^^^^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>prototype : "prototype" +> : ^^^^^^^^^^^ + + [FunctionPropertyNames.prototype]() {} // ok +>[FunctionPropertyNames.prototype] : () => void +> : ^^^^^^^^^^ +>FunctionPropertyNames.prototype : "prototype" +> : ^^^^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>prototype : "prototype" +> : ^^^^^^^^^^^ +} + +// caller +namespace TestOnDefaultExportedClass_7 { +>TestOnDefaultExportedClass_7 : typeof TestOnDefaultExportedClass_7 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + export default class StaticCaller { +>StaticCaller : StaticCaller +> : ^^^^^^^^^^^^ + + static caller: number; // error without useDefineForClassFields +>caller : number +> : ^^^^^^ + + caller: string; // ok +>caller : string +> : ^^^^^^ + } +} + +export class ExportedStaticCaller { +>ExportedStaticCaller : ExportedStaticCaller +> : ^^^^^^^^^^^^^^^^^^^^ + + static [FunctionPropertyNames.caller]: number; // error without useDefineForClassFields +>[FunctionPropertyNames.caller] : number +> : ^^^^^^ +>FunctionPropertyNames.caller : "caller" +> : ^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>caller : "caller" +> : ^^^^^^^^ + + [FunctionPropertyNames.caller]: string; // ok +>[FunctionPropertyNames.caller] : string +> : ^^^^^^ +>FunctionPropertyNames.caller : "caller" +> : ^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>caller : "caller" +> : ^^^^^^^^ +} + +namespace TestOnDefaultExportedClass_8 { +>TestOnDefaultExportedClass_8 : typeof TestOnDefaultExportedClass_8 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + export default class StaticCallerFn { +>StaticCallerFn : StaticCallerFn +> : ^^^^^^^^^^^^^^ + + static caller() {} // error without useDefineForClassFields +>caller : () => void +> : ^^^^^^^^^^ + + caller() {} // ok +>caller : () => void +> : ^^^^^^^^^^ + } +} + +export class ExportedStaticCallerFn { +>ExportedStaticCallerFn : ExportedStaticCallerFn +> : ^^^^^^^^^^^^^^^^^^^^^^ + + static [FunctionPropertyNames.caller]() {} // error without useDefineForClassFields +>[FunctionPropertyNames.caller] : () => void +> : ^^^^^^^^^^ +>FunctionPropertyNames.caller : "caller" +> : ^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>caller : "caller" +> : ^^^^^^^^ + + [FunctionPropertyNames.caller]() {} // ok +>[FunctionPropertyNames.caller] : () => void +> : ^^^^^^^^^^ +>FunctionPropertyNames.caller : "caller" +> : ^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>caller : "caller" +> : ^^^^^^^^ +} + +// arguments +namespace TestOnDefaultExportedClass_9 { +>TestOnDefaultExportedClass_9 : typeof TestOnDefaultExportedClass_9 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + export default class StaticArguments { +>StaticArguments : StaticArguments +> : ^^^^^^^^^^^^^^^ + + static arguments: number; // error without useDefineForClassFields +>arguments : number +> : ^^^^^^ + + arguments: string; // ok +>arguments : string +> : ^^^^^^ + } +} + +export class ExportedStaticArguments { +>ExportedStaticArguments : ExportedStaticArguments +> : ^^^^^^^^^^^^^^^^^^^^^^^ + + static [FunctionPropertyNames.arguments]: number; // error without useDefineForClassFields +>[FunctionPropertyNames.arguments] : number +> : ^^^^^^ +>FunctionPropertyNames.arguments : "arguments" +> : ^^^^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>arguments : "arguments" +> : ^^^^^^^^^^^ + + [FunctionPropertyNames.arguments]: string; // ok +>[FunctionPropertyNames.arguments] : string +> : ^^^^^^ +>FunctionPropertyNames.arguments : "arguments" +> : ^^^^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>arguments : "arguments" +> : ^^^^^^^^^^^ +} + +namespace TestOnDefaultExportedClass_10 { +>TestOnDefaultExportedClass_10 : typeof TestOnDefaultExportedClass_10 +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + export default class StaticArgumentsFn { +>StaticArgumentsFn : StaticArgumentsFn +> : ^^^^^^^^^^^^^^^^^ + + static arguments() {} // error without useDefineForClassFields +>arguments : () => void +> : ^^^^^^^^^^ + + arguments() {} // ok +>arguments : () => void +> : ^^^^^^^^^^ + } +} + +export class ExportedStaticArgumentsFn { +>ExportedStaticArgumentsFn : ExportedStaticArgumentsFn +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ + + static [FunctionPropertyNames.arguments]() {} // error without useDefineForClassFields +>[FunctionPropertyNames.arguments] : () => void +> : ^^^^^^^^^^ +>FunctionPropertyNames.arguments : "arguments" +> : ^^^^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>arguments : "arguments" +> : ^^^^^^^^^^^ + + [FunctionPropertyNames.arguments]() {} // ok +>[FunctionPropertyNames.arguments] : () => void +> : ^^^^^^^^^^ +>FunctionPropertyNames.arguments : "arguments" +> : ^^^^^^^^^^^ +>FunctionPropertyNames : { readonly name: "name"; readonly length: "length"; readonly prototype: "prototype"; readonly caller: "caller"; readonly arguments: "arguments"; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>arguments : "arguments" +> : ^^^^^^^^^^^ +} diff --git a/tests/baselines/reference/superInObjectLiterals_ES5(target=es2015).errors.txt b/tests/baselines/reference/superInObjectLiterals_ES5(target=es2015).errors.txt new file mode 100644 index 0000000000000..bd90e5e1b7d38 --- /dev/null +++ b/tests/baselines/reference/superInObjectLiterals_ES5(target=es2015).errors.txt @@ -0,0 +1,77 @@ +superInObjectLiterals_ES5.ts(17,9): error TS2660: 'super' can only be referenced in members of derived classes or object literal expressions. +superInObjectLiterals_ES5.ts(20,9): error TS2660: 'super' can only be referenced in members of derived classes or object literal expressions. +superInObjectLiterals_ES5.ts(23,9): error TS2660: 'super' can only be referenced in members of derived classes or object literal expressions. +superInObjectLiterals_ES5.ts(49,17): error TS2660: 'super' can only be referenced in members of derived classes or object literal expressions. +superInObjectLiterals_ES5.ts(52,17): error TS2660: 'super' can only be referenced in members of derived classes or object literal expressions. + + +==== superInObjectLiterals_ES5.ts (5 errors) ==== + var obj = { + __proto__: { + method() { + } + }, + method() { + super.method(); + }, + get prop() { + super.method(); + return 10; + }, + set prop(value) { + super.method(); + }, + p1: function () { + super.method(); + ~~~~~ +!!! error TS2660: 'super' can only be referenced in members of derived classes or object literal expressions. + }, + p2: function f() { + super.method(); + ~~~~~ +!!! error TS2660: 'super' can only be referenced in members of derived classes or object literal expressions. + }, + p3: () => { + super.method(); + ~~~~~ +!!! error TS2660: 'super' can only be referenced in members of derived classes or object literal expressions. + } + }; + + class A { + method() { } + } + + class B extends A { + f() { + var obj = { + __proto__: { + method() { + } + }, + method() { + super.method(); + }, + get prop() { + super.method(); + return 10; + }, + set prop(value) { + super.method(); + }, + p1: function () { + super.method(); + ~~~~~ +!!! error TS2660: 'super' can only be referenced in members of derived classes or object literal expressions. + }, + p2: function f() { + super.method(); + ~~~~~ +!!! error TS2660: 'super' can only be referenced in members of derived classes or object literal expressions. + }, + p3: () => { + super.method(); + } + }; + } + } \ No newline at end of file diff --git a/tests/baselines/reference/superInObjectLiterals_ES5(target=es2015).js b/tests/baselines/reference/superInObjectLiterals_ES5(target=es2015).js new file mode 100644 index 0000000000000..1feac01ec9ab3 --- /dev/null +++ b/tests/baselines/reference/superInObjectLiterals_ES5(target=es2015).js @@ -0,0 +1,121 @@ +//// [tests/cases/compiler/superInObjectLiterals_ES5.ts] //// + +//// [superInObjectLiterals_ES5.ts] +var obj = { + __proto__: { + method() { + } + }, + method() { + super.method(); + }, + get prop() { + super.method(); + return 10; + }, + set prop(value) { + super.method(); + }, + p1: function () { + super.method(); + }, + p2: function f() { + super.method(); + }, + p3: () => { + super.method(); + } +}; + +class A { + method() { } +} + +class B extends A { + f() { + var obj = { + __proto__: { + method() { + } + }, + method() { + super.method(); + }, + get prop() { + super.method(); + return 10; + }, + set prop(value) { + super.method(); + }, + p1: function () { + super.method(); + }, + p2: function f() { + super.method(); + }, + p3: () => { + super.method(); + } + }; + } +} + +//// [superInObjectLiterals_ES5.js] +var obj = { + __proto__: { + method() { + } + }, + method() { + super.method(); + }, + get prop() { + super.method(); + return 10; + }, + set prop(value) { + super.method(); + }, + p1: function () { + super.method(); + }, + p2: function f() { + super.method(); + }, + p3: () => { + super.method(); + } +}; +class A { + method() { } +} +class B extends A { + f() { + var obj = { + __proto__: { + method() { + } + }, + method() { + super.method(); + }, + get prop() { + super.method(); + return 10; + }, + set prop(value) { + super.method(); + }, + p1: function () { + super.method(); + }, + p2: function f() { + super.method(); + }, + p3: () => { + super.method(); + } + }; + } +} diff --git a/tests/baselines/reference/superInObjectLiterals_ES5.symbols b/tests/baselines/reference/superInObjectLiterals_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/superInObjectLiterals_ES5.symbols rename to tests/baselines/reference/superInObjectLiterals_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/superInObjectLiterals_ES5.types b/tests/baselines/reference/superInObjectLiterals_ES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/superInObjectLiterals_ES5.types rename to tests/baselines/reference/superInObjectLiterals_ES5(target=es2015).types diff --git a/tests/baselines/reference/superInObjectLiterals_ES5.errors.txt b/tests/baselines/reference/superInObjectLiterals_ES5(target=es5).errors.txt similarity index 100% rename from tests/baselines/reference/superInObjectLiterals_ES5.errors.txt rename to tests/baselines/reference/superInObjectLiterals_ES5(target=es5).errors.txt diff --git a/tests/baselines/reference/superInObjectLiterals_ES5.js b/tests/baselines/reference/superInObjectLiterals_ES5(target=es5).js similarity index 100% rename from tests/baselines/reference/superInObjectLiterals_ES5.js rename to tests/baselines/reference/superInObjectLiterals_ES5(target=es5).js diff --git a/tests/baselines/reference/superInObjectLiterals_ES5(target=es5).symbols b/tests/baselines/reference/superInObjectLiterals_ES5(target=es5).symbols new file mode 100644 index 0000000000000..38ebfd8474228 --- /dev/null +++ b/tests/baselines/reference/superInObjectLiterals_ES5(target=es5).symbols @@ -0,0 +1,111 @@ +//// [tests/cases/compiler/superInObjectLiterals_ES5.ts] //// + +=== superInObjectLiterals_ES5.ts === +var obj = { +>obj : Symbol(obj, Decl(superInObjectLiterals_ES5.ts, 0, 3)) + + __proto__: { +>__proto__ : Symbol(__proto__, Decl(superInObjectLiterals_ES5.ts, 0, 11)) + + method() { +>method : Symbol(method, Decl(superInObjectLiterals_ES5.ts, 1, 16)) + } + }, + method() { +>method : Symbol(method, Decl(superInObjectLiterals_ES5.ts, 4, 6)) + + super.method(); + }, + get prop() { +>prop : Symbol(prop, Decl(superInObjectLiterals_ES5.ts, 7, 6), Decl(superInObjectLiterals_ES5.ts, 11, 6)) + + super.method(); + return 10; + }, + set prop(value) { +>prop : Symbol(prop, Decl(superInObjectLiterals_ES5.ts, 7, 6), Decl(superInObjectLiterals_ES5.ts, 11, 6)) +>value : Symbol(value, Decl(superInObjectLiterals_ES5.ts, 12, 13)) + + super.method(); + }, + p1: function () { +>p1 : Symbol(p1, Decl(superInObjectLiterals_ES5.ts, 14, 6)) + + super.method(); + }, + p2: function f() { +>p2 : Symbol(p2, Decl(superInObjectLiterals_ES5.ts, 17, 6)) +>f : Symbol(f, Decl(superInObjectLiterals_ES5.ts, 18, 7)) + + super.method(); + }, + p3: () => { +>p3 : Symbol(p3, Decl(superInObjectLiterals_ES5.ts, 20, 6)) + + super.method(); + } +}; + +class A { +>A : Symbol(A, Decl(superInObjectLiterals_ES5.ts, 24, 2)) + + method() { } +>method : Symbol(A.method, Decl(superInObjectLiterals_ES5.ts, 26, 9)) +} + +class B extends A { +>B : Symbol(B, Decl(superInObjectLiterals_ES5.ts, 28, 1)) +>A : Symbol(A, Decl(superInObjectLiterals_ES5.ts, 24, 2)) + + f() { +>f : Symbol(B.f, Decl(superInObjectLiterals_ES5.ts, 30, 19)) + + var obj = { +>obj : Symbol(obj, Decl(superInObjectLiterals_ES5.ts, 32, 11)) + + __proto__: { +>__proto__ : Symbol(__proto__, Decl(superInObjectLiterals_ES5.ts, 32, 19)) + + method() { +>method : Symbol(method, Decl(superInObjectLiterals_ES5.ts, 33, 24)) + } + }, + method() { +>method : Symbol(method, Decl(superInObjectLiterals_ES5.ts, 36, 14)) + + super.method(); + }, + get prop() { +>prop : Symbol(prop, Decl(superInObjectLiterals_ES5.ts, 39, 14), Decl(superInObjectLiterals_ES5.ts, 43, 14)) + + super.method(); + return 10; + }, + set prop(value) { +>prop : Symbol(prop, Decl(superInObjectLiterals_ES5.ts, 39, 14), Decl(superInObjectLiterals_ES5.ts, 43, 14)) +>value : Symbol(value, Decl(superInObjectLiterals_ES5.ts, 44, 21)) + + super.method(); + }, + p1: function () { +>p1 : Symbol(p1, Decl(superInObjectLiterals_ES5.ts, 46, 14)) + + super.method(); + }, + p2: function f() { +>p2 : Symbol(p2, Decl(superInObjectLiterals_ES5.ts, 49, 14)) +>f : Symbol(f, Decl(superInObjectLiterals_ES5.ts, 50, 15)) + + super.method(); + }, + p3: () => { +>p3 : Symbol(p3, Decl(superInObjectLiterals_ES5.ts, 52, 14)) + + super.method(); +>super.method : Symbol(A.method, Decl(superInObjectLiterals_ES5.ts, 26, 9)) +>super : Symbol(A, Decl(superInObjectLiterals_ES5.ts, 24, 2)) +>method : Symbol(A.method, Decl(superInObjectLiterals_ES5.ts, 26, 9)) + } + }; + } +} diff --git a/tests/baselines/reference/superInObjectLiterals_ES5(target=es5).types b/tests/baselines/reference/superInObjectLiterals_ES5(target=es5).types new file mode 100644 index 0000000000000..2f4dcaefa30ff --- /dev/null +++ b/tests/baselines/reference/superInObjectLiterals_ES5(target=es5).types @@ -0,0 +1,267 @@ +//// [tests/cases/compiler/superInObjectLiterals_ES5.ts] //// + +=== superInObjectLiterals_ES5.ts === +var obj = { +>obj : { __proto__: { method(): void; }; method(): void; prop: number; p1: () => void; p2: () => void; p3: () => void; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ __proto__: { method() { } }, method() { super.method(); }, get prop() { super.method(); return 10; }, set prop(value) { super.method(); }, p1: function () { super.method(); }, p2: function f() { super.method(); }, p3: () => { super.method(); }} : { __proto__: { method(): void; }; method(): void; prop: number; p1: () => void; p2: () => void; p3: () => void; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + __proto__: { +>__proto__ : { method(): void; } +> : ^^^^^^^^^^^^^^^^^^^ +>{ method() { } } : { method(): void; } +> : ^^^^^^^^^^^^^^^^^^^ + + method() { +>method : () => void +> : ^^^^^^^^^^ + } + }, + method() { +>method : () => void +> : ^^^^^^^^^^ + + super.method(); +>super.method() : any +> : ^^^ +>super.method : any +> : ^^^ +>super : any +> : ^^^ +>method : any +> : ^^^ + + }, + get prop() { +>prop : number +> : ^^^^^^ + + super.method(); +>super.method() : any +> : ^^^ +>super.method : any +> : ^^^ +>super : any +> : ^^^ +>method : any +> : ^^^ + + return 10; +>10 : 10 +> : ^^ + + }, + set prop(value) { +>prop : number +> : ^^^^^^ +>value : number +> : ^^^^^^ + + super.method(); +>super.method() : any +> : ^^^ +>super.method : any +> : ^^^ +>super : any +> : ^^^ +>method : any +> : ^^^ + + }, + p1: function () { +>p1 : () => void +> : ^^^^^^^^^^ +>function () { super.method(); } : () => void +> : ^^^^^^^^^^ + + super.method(); +>super.method() : any +> : ^^^ +>super.method : any +> : ^^^ +>super : any +> : ^^^ +>method : any +> : ^^^ + + }, + p2: function f() { +>p2 : () => void +> : ^^^^^^^^^^ +>function f() { super.method(); } : () => void +> : ^^^^^^^^^^ +>f : () => void +> : ^^^^^^^^^^ + + super.method(); +>super.method() : any +> : ^^^ +>super.method : any +> : ^^^ +>super : any +> : ^^^ +>method : any +> : ^^^ + + }, + p3: () => { +>p3 : () => void +> : ^^^^^^^^^^ +>() => { super.method(); } : () => void +> : ^^^^^^^^^^ + + super.method(); +>super.method() : any +> : ^^^ +>super.method : any +> : ^^^ +>super : any +> : ^^^ +>method : any +> : ^^^ + } +}; + +class A { +>A : A +> : ^ + + method() { } +>method : () => void +> : ^^^^^^^^^^ +} + +class B extends A { +>B : B +> : ^ +>A : A +> : ^ + + f() { +>f : () => void +> : ^^^^^^^^^^ + + var obj = { +>obj : { __proto__: { method(): void; }; method(): void; prop: number; p1: () => void; p2: () => void; p3: () => void; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ __proto__: { method() { } }, method() { super.method(); }, get prop() { super.method(); return 10; }, set prop(value) { super.method(); }, p1: function () { super.method(); }, p2: function f() { super.method(); }, p3: () => { super.method(); } } : { __proto__: { method(): void; }; method(): void; prop: number; p1: () => void; p2: () => void; p3: () => void; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + __proto__: { +>__proto__ : { method(): void; } +> : ^^^^^^^^^^^^^^^^^^^ +>{ method() { } } : { method(): void; } +> : ^^^^^^^^^^^^^^^^^^^ + + method() { +>method : () => void +> : ^^^^^^^^^^ + } + }, + method() { +>method : () => void +> : ^^^^^^^^^^ + + super.method(); +>super.method() : any +> : ^^^ +>super.method : any +> : ^^^ +>super : any +> : ^^^ +>method : any +> : ^^^ + + }, + get prop() { +>prop : number +> : ^^^^^^ + + super.method(); +>super.method() : any +> : ^^^ +>super.method : any +> : ^^^ +>super : any +> : ^^^ +>method : any +> : ^^^ + + return 10; +>10 : 10 +> : ^^ + + }, + set prop(value) { +>prop : number +> : ^^^^^^ +>value : number +> : ^^^^^^ + + super.method(); +>super.method() : any +> : ^^^ +>super.method : any +> : ^^^ +>super : any +> : ^^^ +>method : any +> : ^^^ + + }, + p1: function () { +>p1 : () => void +> : ^^^^^^^^^^ +>function () { super.method(); } : () => void +> : ^^^^^^^^^^ + + super.method(); +>super.method() : any +> : ^^^ +>super.method : any +> : ^^^ +>super : any +> : ^^^ +>method : any +> : ^^^ + + }, + p2: function f() { +>p2 : () => void +> : ^^^^^^^^^^ +>function f() { super.method(); } : () => void +> : ^^^^^^^^^^ +>f : () => void +> : ^^^^^^^^^^ + + super.method(); +>super.method() : any +> : ^^^ +>super.method : any +> : ^^^ +>super : any +> : ^^^ +>method : any +> : ^^^ + + }, + p3: () => { +>p3 : () => void +> : ^^^^^^^^^^ +>() => { super.method(); } : () => void +> : ^^^^^^^^^^ + + super.method(); +>super.method() : void +> : ^^^^ +>super.method : () => void +> : ^^^^^^^^^^ +>super : A +> : ^ +>method : () => void +> : ^^^^^^^^^^ + } + }; + } +} diff --git a/tests/baselines/reference/superPropertyAccessInComputedPropertiesOfNestedType_ES5(target=es2015).js b/tests/baselines/reference/superPropertyAccessInComputedPropertiesOfNestedType_ES5(target=es2015).js new file mode 100644 index 0000000000000..f5364b2d5d14f --- /dev/null +++ b/tests/baselines/reference/superPropertyAccessInComputedPropertiesOfNestedType_ES5(target=es2015).js @@ -0,0 +1,32 @@ +//// [tests/cases/compiler/superPropertyAccessInComputedPropertiesOfNestedType_ES5.ts] //// + +//// [superPropertyAccessInComputedPropertiesOfNestedType_ES5.ts] +class A { + foo() { return 1; } +} + +class B extends A { + foo() { return 2; } + bar() { + return class { + [super.foo()]() { + return 100; + } + } + } +} + +//// [superPropertyAccessInComputedPropertiesOfNestedType_ES5.js] +class A { + foo() { return 1; } +} +class B extends A { + foo() { return 2; } + bar() { + return class { + [super.foo()]() { + return 100; + } + }; + } +} diff --git a/tests/baselines/reference/superPropertyAccessInComputedPropertiesOfNestedType_ES5.symbols b/tests/baselines/reference/superPropertyAccessInComputedPropertiesOfNestedType_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/superPropertyAccessInComputedPropertiesOfNestedType_ES5.symbols rename to tests/baselines/reference/superPropertyAccessInComputedPropertiesOfNestedType_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/superPropertyAccessInComputedPropertiesOfNestedType_ES5.types b/tests/baselines/reference/superPropertyAccessInComputedPropertiesOfNestedType_ES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/superPropertyAccessInComputedPropertiesOfNestedType_ES5.types rename to tests/baselines/reference/superPropertyAccessInComputedPropertiesOfNestedType_ES5(target=es2015).types diff --git a/tests/baselines/reference/superPropertyAccessInComputedPropertiesOfNestedType_ES5.js b/tests/baselines/reference/superPropertyAccessInComputedPropertiesOfNestedType_ES5(target=es5).js similarity index 100% rename from tests/baselines/reference/superPropertyAccessInComputedPropertiesOfNestedType_ES5.js rename to tests/baselines/reference/superPropertyAccessInComputedPropertiesOfNestedType_ES5(target=es5).js diff --git a/tests/baselines/reference/superPropertyAccessInComputedPropertiesOfNestedType_ES5(target=es5).symbols b/tests/baselines/reference/superPropertyAccessInComputedPropertiesOfNestedType_ES5(target=es5).symbols new file mode 100644 index 0000000000000..62e585949fbbd --- /dev/null +++ b/tests/baselines/reference/superPropertyAccessInComputedPropertiesOfNestedType_ES5(target=es5).symbols @@ -0,0 +1,32 @@ +//// [tests/cases/compiler/superPropertyAccessInComputedPropertiesOfNestedType_ES5.ts] //// + +=== superPropertyAccessInComputedPropertiesOfNestedType_ES5.ts === +class A { +>A : Symbol(A, Decl(superPropertyAccessInComputedPropertiesOfNestedType_ES5.ts, 0, 0)) + + foo() { return 1; } +>foo : Symbol(A.foo, Decl(superPropertyAccessInComputedPropertiesOfNestedType_ES5.ts, 0, 9)) +} + +class B extends A { +>B : Symbol(B, Decl(superPropertyAccessInComputedPropertiesOfNestedType_ES5.ts, 2, 1)) +>A : Symbol(A, Decl(superPropertyAccessInComputedPropertiesOfNestedType_ES5.ts, 0, 0)) + + foo() { return 2; } +>foo : Symbol(B.foo, Decl(superPropertyAccessInComputedPropertiesOfNestedType_ES5.ts, 4, 19)) + + bar() { +>bar : Symbol(B.bar, Decl(superPropertyAccessInComputedPropertiesOfNestedType_ES5.ts, 5, 23)) + + return class { + [super.foo()]() { +>[super.foo()] : Symbol((Anonymous class)[super.foo()], Decl(superPropertyAccessInComputedPropertiesOfNestedType_ES5.ts, 7, 22)) +>super.foo : Symbol(A.foo, Decl(superPropertyAccessInComputedPropertiesOfNestedType_ES5.ts, 0, 9)) +>super : Symbol(A, Decl(superPropertyAccessInComputedPropertiesOfNestedType_ES5.ts, 0, 0)) +>foo : Symbol(A.foo, Decl(superPropertyAccessInComputedPropertiesOfNestedType_ES5.ts, 0, 9)) + + return 100; + } + } + } +} diff --git a/tests/baselines/reference/superPropertyAccessInComputedPropertiesOfNestedType_ES5(target=es5).types b/tests/baselines/reference/superPropertyAccessInComputedPropertiesOfNestedType_ES5(target=es5).types new file mode 100644 index 0000000000000..8d0d9354c7520 --- /dev/null +++ b/tests/baselines/reference/superPropertyAccessInComputedPropertiesOfNestedType_ES5(target=es5).types @@ -0,0 +1,53 @@ +//// [tests/cases/compiler/superPropertyAccessInComputedPropertiesOfNestedType_ES5.ts] //// + +=== superPropertyAccessInComputedPropertiesOfNestedType_ES5.ts === +class A { +>A : A +> : ^ + + foo() { return 1; } +>foo : () => number +> : ^^^^^^^^^^^^ +>1 : 1 +> : ^ +} + +class B extends A { +>B : B +> : ^ +>A : A +> : ^ + + foo() { return 2; } +>foo : () => number +> : ^^^^^^^^^^^^ +>2 : 2 +> : ^ + + bar() { +>bar : () => typeof (Anonymous class) +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + return class { +>class { [super.foo()]() { return 100; } } : typeof (Anonymous class) +> : ^^^^^^^^^^^^^^^^^^^^^^^^ + + [super.foo()]() { +>[super.foo()] : () => number +> : ^^^^^^^^^^^^ +>super.foo() : number +> : ^^^^^^ +>super.foo : () => number +> : ^^^^^^^^^^^^ +>super : A +> : ^ +>foo : () => number +> : ^^^^^^^^^^^^ + + return 100; +>100 : 100 +> : ^^^ + } + } + } +} diff --git a/tests/baselines/reference/superPropertyAccessNoError(target=es2015).js b/tests/baselines/reference/superPropertyAccessNoError(target=es2015).js new file mode 100644 index 0000000000000..1620dd2db1719 --- /dev/null +++ b/tests/baselines/reference/superPropertyAccessNoError(target=es2015).js @@ -0,0 +1,131 @@ +//// [tests/cases/conformance/expressions/superPropertyAccess/superPropertyAccessNoError.ts] //// + +//// [superPropertyAccessNoError.ts] +//super.publicInstanceMemberFunction in constructor of derived class +//super.publicInstanceMemberFunction in instance member function of derived class +//super.publicInstanceMemberFunction in instance member accessor(get and set) of derived class +//super.publicInstanceMemberFunction in lambda in member function +//super.publicStaticMemberFunction in static member function of derived class +//super.publicStaticMemberFunction in static member accessor(get and set) of derived class + + +class SomeBaseClass { + public func() { + return ''; + } + + static func() { + return 3; + } + + returnThis() { + return this; + } +} + +class SomeDerivedClass extends SomeBaseClass { + constructor() { + super(); + var x = super.func(); + var x: string; + } + + fn() { + var x = super.func(); + var x: string; + var y = () => super.func(); + } + + get a() { + var x = super.func(); + var x: string; + return null; + } + + set a(n) { + var x = super.func(); + var x: string; + } + + static fn() { + var x = super.func(); + var x: number; + } + + static get a() { + var x = super.func(); + var x: number; + return null; + } + + static set a(n) { + var x = super.func(); + var x: number; + } + + returnThis() { + return super.returnThis(); + } +} + +let instance = new SomeDerivedClass(); +instance.returnThis().fn(); + + +//// [superPropertyAccessNoError.js] +//super.publicInstanceMemberFunction in constructor of derived class +//super.publicInstanceMemberFunction in instance member function of derived class +//super.publicInstanceMemberFunction in instance member accessor(get and set) of derived class +//super.publicInstanceMemberFunction in lambda in member function +//super.publicStaticMemberFunction in static member function of derived class +//super.publicStaticMemberFunction in static member accessor(get and set) of derived class +class SomeBaseClass { + func() { + return ''; + } + static func() { + return 3; + } + returnThis() { + return this; + } +} +class SomeDerivedClass extends SomeBaseClass { + constructor() { + super(); + var x = super.func(); + var x; + } + fn() { + var x = super.func(); + var x; + var y = () => super.func(); + } + get a() { + var x = super.func(); + var x; + return null; + } + set a(n) { + var x = super.func(); + var x; + } + static fn() { + var x = super.func(); + var x; + } + static get a() { + var x = super.func(); + var x; + return null; + } + static set a(n) { + var x = super.func(); + var x; + } + returnThis() { + return super.returnThis(); + } +} +let instance = new SomeDerivedClass(); +instance.returnThis().fn(); diff --git a/tests/baselines/reference/superPropertyAccessNoError.symbols b/tests/baselines/reference/superPropertyAccessNoError(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/superPropertyAccessNoError.symbols rename to tests/baselines/reference/superPropertyAccessNoError(target=es2015).symbols diff --git a/tests/baselines/reference/superPropertyAccessNoError.types b/tests/baselines/reference/superPropertyAccessNoError(target=es2015).types similarity index 100% rename from tests/baselines/reference/superPropertyAccessNoError.types rename to tests/baselines/reference/superPropertyAccessNoError(target=es2015).types diff --git a/tests/baselines/reference/superPropertyAccessNoError.js b/tests/baselines/reference/superPropertyAccessNoError(target=es5).js similarity index 100% rename from tests/baselines/reference/superPropertyAccessNoError.js rename to tests/baselines/reference/superPropertyAccessNoError(target=es5).js diff --git a/tests/baselines/reference/superPropertyAccessNoError(target=es5).symbols b/tests/baselines/reference/superPropertyAccessNoError(target=es5).symbols new file mode 100644 index 0000000000000..1ce1275bea839 --- /dev/null +++ b/tests/baselines/reference/superPropertyAccessNoError(target=es5).symbols @@ -0,0 +1,163 @@ +//// [tests/cases/conformance/expressions/superPropertyAccess/superPropertyAccessNoError.ts] //// + +=== superPropertyAccessNoError.ts === +//super.publicInstanceMemberFunction in constructor of derived class +//super.publicInstanceMemberFunction in instance member function of derived class +//super.publicInstanceMemberFunction in instance member accessor(get and set) of derived class +//super.publicInstanceMemberFunction in lambda in member function +//super.publicStaticMemberFunction in static member function of derived class +//super.publicStaticMemberFunction in static member accessor(get and set) of derived class + + +class SomeBaseClass { +>SomeBaseClass : Symbol(SomeBaseClass, Decl(superPropertyAccessNoError.ts, 0, 0)) + + public func() { +>func : Symbol(SomeBaseClass.func, Decl(superPropertyAccessNoError.ts, 8, 21)) + + return ''; + } + + static func() { +>func : Symbol(SomeBaseClass.func, Decl(superPropertyAccessNoError.ts, 11, 5)) + + return 3; + } + + returnThis() { +>returnThis : Symbol(SomeBaseClass.returnThis, Decl(superPropertyAccessNoError.ts, 15, 5)) + + return this; +>this : Symbol(SomeBaseClass, Decl(superPropertyAccessNoError.ts, 0, 0)) + } +} + +class SomeDerivedClass extends SomeBaseClass { +>SomeDerivedClass : Symbol(SomeDerivedClass, Decl(superPropertyAccessNoError.ts, 20, 1)) +>SomeBaseClass : Symbol(SomeBaseClass, Decl(superPropertyAccessNoError.ts, 0, 0)) + + constructor() { + super(); +>super : Symbol(SomeBaseClass, Decl(superPropertyAccessNoError.ts, 0, 0)) + + var x = super.func(); +>x : Symbol(x, Decl(superPropertyAccessNoError.ts, 25, 11), Decl(superPropertyAccessNoError.ts, 26, 11)) +>super.func : Symbol(SomeBaseClass.func, Decl(superPropertyAccessNoError.ts, 8, 21)) +>super : Symbol(SomeBaseClass, Decl(superPropertyAccessNoError.ts, 0, 0)) +>func : Symbol(SomeBaseClass.func, Decl(superPropertyAccessNoError.ts, 8, 21)) + + var x: string; +>x : Symbol(x, Decl(superPropertyAccessNoError.ts, 25, 11), Decl(superPropertyAccessNoError.ts, 26, 11)) + } + + fn() { +>fn : Symbol(SomeDerivedClass.fn, Decl(superPropertyAccessNoError.ts, 27, 5)) + + var x = super.func(); +>x : Symbol(x, Decl(superPropertyAccessNoError.ts, 30, 11), Decl(superPropertyAccessNoError.ts, 31, 11)) +>super.func : Symbol(SomeBaseClass.func, Decl(superPropertyAccessNoError.ts, 8, 21)) +>super : Symbol(SomeBaseClass, Decl(superPropertyAccessNoError.ts, 0, 0)) +>func : Symbol(SomeBaseClass.func, Decl(superPropertyAccessNoError.ts, 8, 21)) + + var x: string; +>x : Symbol(x, Decl(superPropertyAccessNoError.ts, 30, 11), Decl(superPropertyAccessNoError.ts, 31, 11)) + + var y = () => super.func(); +>y : Symbol(y, Decl(superPropertyAccessNoError.ts, 32, 11)) +>super.func : Symbol(SomeBaseClass.func, Decl(superPropertyAccessNoError.ts, 8, 21)) +>super : Symbol(SomeBaseClass, Decl(superPropertyAccessNoError.ts, 0, 0)) +>func : Symbol(SomeBaseClass.func, Decl(superPropertyAccessNoError.ts, 8, 21)) + } + + get a() { +>a : Symbol(SomeDerivedClass.a, Decl(superPropertyAccessNoError.ts, 33, 5), Decl(superPropertyAccessNoError.ts, 39, 5)) + + var x = super.func(); +>x : Symbol(x, Decl(superPropertyAccessNoError.ts, 36, 11), Decl(superPropertyAccessNoError.ts, 37, 11)) +>super.func : Symbol(SomeBaseClass.func, Decl(superPropertyAccessNoError.ts, 8, 21)) +>super : Symbol(SomeBaseClass, Decl(superPropertyAccessNoError.ts, 0, 0)) +>func : Symbol(SomeBaseClass.func, Decl(superPropertyAccessNoError.ts, 8, 21)) + + var x: string; +>x : Symbol(x, Decl(superPropertyAccessNoError.ts, 36, 11), Decl(superPropertyAccessNoError.ts, 37, 11)) + + return null; + } + + set a(n) { +>a : Symbol(SomeDerivedClass.a, Decl(superPropertyAccessNoError.ts, 33, 5), Decl(superPropertyAccessNoError.ts, 39, 5)) +>n : Symbol(n, Decl(superPropertyAccessNoError.ts, 41, 10)) + + var x = super.func(); +>x : Symbol(x, Decl(superPropertyAccessNoError.ts, 42, 11), Decl(superPropertyAccessNoError.ts, 43, 11)) +>super.func : Symbol(SomeBaseClass.func, Decl(superPropertyAccessNoError.ts, 8, 21)) +>super : Symbol(SomeBaseClass, Decl(superPropertyAccessNoError.ts, 0, 0)) +>func : Symbol(SomeBaseClass.func, Decl(superPropertyAccessNoError.ts, 8, 21)) + + var x: string; +>x : Symbol(x, Decl(superPropertyAccessNoError.ts, 42, 11), Decl(superPropertyAccessNoError.ts, 43, 11)) + } + + static fn() { +>fn : Symbol(SomeDerivedClass.fn, Decl(superPropertyAccessNoError.ts, 44, 5)) + + var x = super.func(); +>x : Symbol(x, Decl(superPropertyAccessNoError.ts, 47, 11), Decl(superPropertyAccessNoError.ts, 48, 11)) +>super.func : Symbol(SomeBaseClass.func, Decl(superPropertyAccessNoError.ts, 11, 5)) +>super : Symbol(SomeBaseClass, Decl(superPropertyAccessNoError.ts, 0, 0)) +>func : Symbol(SomeBaseClass.func, Decl(superPropertyAccessNoError.ts, 11, 5)) + + var x: number; +>x : Symbol(x, Decl(superPropertyAccessNoError.ts, 47, 11), Decl(superPropertyAccessNoError.ts, 48, 11)) + } + + static get a() { +>a : Symbol(SomeDerivedClass.a, Decl(superPropertyAccessNoError.ts, 49, 5), Decl(superPropertyAccessNoError.ts, 55, 5)) + + var x = super.func(); +>x : Symbol(x, Decl(superPropertyAccessNoError.ts, 52, 11), Decl(superPropertyAccessNoError.ts, 53, 11)) +>super.func : Symbol(SomeBaseClass.func, Decl(superPropertyAccessNoError.ts, 11, 5)) +>super : Symbol(SomeBaseClass, Decl(superPropertyAccessNoError.ts, 0, 0)) +>func : Symbol(SomeBaseClass.func, Decl(superPropertyAccessNoError.ts, 11, 5)) + + var x: number; +>x : Symbol(x, Decl(superPropertyAccessNoError.ts, 52, 11), Decl(superPropertyAccessNoError.ts, 53, 11)) + + return null; + } + + static set a(n) { +>a : Symbol(SomeDerivedClass.a, Decl(superPropertyAccessNoError.ts, 49, 5), Decl(superPropertyAccessNoError.ts, 55, 5)) +>n : Symbol(n, Decl(superPropertyAccessNoError.ts, 57, 17)) + + var x = super.func(); +>x : Symbol(x, Decl(superPropertyAccessNoError.ts, 58, 11), Decl(superPropertyAccessNoError.ts, 59, 11)) +>super.func : Symbol(SomeBaseClass.func, Decl(superPropertyAccessNoError.ts, 11, 5)) +>super : Symbol(SomeBaseClass, Decl(superPropertyAccessNoError.ts, 0, 0)) +>func : Symbol(SomeBaseClass.func, Decl(superPropertyAccessNoError.ts, 11, 5)) + + var x: number; +>x : Symbol(x, Decl(superPropertyAccessNoError.ts, 58, 11), Decl(superPropertyAccessNoError.ts, 59, 11)) + } + + returnThis() { +>returnThis : Symbol(SomeDerivedClass.returnThis, Decl(superPropertyAccessNoError.ts, 60, 5)) + + return super.returnThis(); +>super.returnThis : Symbol(SomeBaseClass.returnThis, Decl(superPropertyAccessNoError.ts, 15, 5)) +>super : Symbol(SomeBaseClass, Decl(superPropertyAccessNoError.ts, 0, 0)) +>returnThis : Symbol(SomeBaseClass.returnThis, Decl(superPropertyAccessNoError.ts, 15, 5)) + } +} + +let instance = new SomeDerivedClass(); +>instance : Symbol(instance, Decl(superPropertyAccessNoError.ts, 67, 3)) +>SomeDerivedClass : Symbol(SomeDerivedClass, Decl(superPropertyAccessNoError.ts, 20, 1)) + +instance.returnThis().fn(); +>instance.returnThis().fn : Symbol(SomeDerivedClass.fn, Decl(superPropertyAccessNoError.ts, 27, 5)) +>instance.returnThis : Symbol(SomeDerivedClass.returnThis, Decl(superPropertyAccessNoError.ts, 60, 5)) +>instance : Symbol(instance, Decl(superPropertyAccessNoError.ts, 67, 3)) +>returnThis : Symbol(SomeDerivedClass.returnThis, Decl(superPropertyAccessNoError.ts, 60, 5)) +>fn : Symbol(SomeDerivedClass.fn, Decl(superPropertyAccessNoError.ts, 27, 5)) + diff --git a/tests/baselines/reference/superPropertyAccessNoError(target=es5).types b/tests/baselines/reference/superPropertyAccessNoError(target=es5).types new file mode 100644 index 0000000000000..3bb36a2241e11 --- /dev/null +++ b/tests/baselines/reference/superPropertyAccessNoError(target=es5).types @@ -0,0 +1,255 @@ +//// [tests/cases/conformance/expressions/superPropertyAccess/superPropertyAccessNoError.ts] //// + +=== superPropertyAccessNoError.ts === +//super.publicInstanceMemberFunction in constructor of derived class +//super.publicInstanceMemberFunction in instance member function of derived class +//super.publicInstanceMemberFunction in instance member accessor(get and set) of derived class +//super.publicInstanceMemberFunction in lambda in member function +//super.publicStaticMemberFunction in static member function of derived class +//super.publicStaticMemberFunction in static member accessor(get and set) of derived class + + +class SomeBaseClass { +>SomeBaseClass : SomeBaseClass +> : ^^^^^^^^^^^^^ + + public func() { +>func : () => string +> : ^^^^^^^^^^^^ + + return ''; +>'' : "" +> : ^^ + } + + static func() { +>func : () => number +> : ^^^^^^^^^^^^ + + return 3; +>3 : 3 +> : ^ + } + + returnThis() { +>returnThis : () => this +> : ^^^^^^^^^^ + + return this; +>this : this +> : ^^^^ + } +} + +class SomeDerivedClass extends SomeBaseClass { +>SomeDerivedClass : SomeDerivedClass +> : ^^^^^^^^^^^^^^^^ +>SomeBaseClass : SomeBaseClass +> : ^^^^^^^^^^^^^ + + constructor() { + super(); +>super() : void +> : ^^^^ +>super : typeof SomeBaseClass +> : ^^^^^^^^^^^^^^^^^^^^ + + var x = super.func(); +>x : string +> : ^^^^^^ +>super.func() : string +> : ^^^^^^ +>super.func : () => string +> : ^^^^^^^^^^^^ +>super : SomeBaseClass +> : ^^^^^^^^^^^^^ +>func : () => string +> : ^^^^^^^^^^^^ + + var x: string; +>x : string +> : ^^^^^^ + } + + fn() { +>fn : () => void +> : ^^^^^^^^^^ + + var x = super.func(); +>x : string +> : ^^^^^^ +>super.func() : string +> : ^^^^^^ +>super.func : () => string +> : ^^^^^^^^^^^^ +>super : SomeBaseClass +> : ^^^^^^^^^^^^^ +>func : () => string +> : ^^^^^^^^^^^^ + + var x: string; +>x : string +> : ^^^^^^ + + var y = () => super.func(); +>y : () => string +> : ^^^^^^^^^^^^ +>() => super.func() : () => string +> : ^^^^^^^^^^^^ +>super.func() : string +> : ^^^^^^ +>super.func : () => string +> : ^^^^^^^^^^^^ +>super : SomeBaseClass +> : ^^^^^^^^^^^^^ +>func : () => string +> : ^^^^^^^^^^^^ + } + + get a() { +>a : any + + var x = super.func(); +>x : string +> : ^^^^^^ +>super.func() : string +> : ^^^^^^ +>super.func : () => string +> : ^^^^^^^^^^^^ +>super : SomeBaseClass +> : ^^^^^^^^^^^^^ +>func : () => string +> : ^^^^^^^^^^^^ + + var x: string; +>x : string +> : ^^^^^^ + + return null; + } + + set a(n) { +>a : any +>n : any + + var x = super.func(); +>x : string +> : ^^^^^^ +>super.func() : string +> : ^^^^^^ +>super.func : () => string +> : ^^^^^^^^^^^^ +>super : SomeBaseClass +> : ^^^^^^^^^^^^^ +>func : () => string +> : ^^^^^^^^^^^^ + + var x: string; +>x : string +> : ^^^^^^ + } + + static fn() { +>fn : () => void +> : ^^^^^^^^^^ + + var x = super.func(); +>x : number +> : ^^^^^^ +>super.func() : number +> : ^^^^^^ +>super.func : () => number +> : ^^^^^^^^^^^^ +>super : typeof SomeBaseClass +> : ^^^^^^^^^^^^^^^^^^^^ +>func : () => number +> : ^^^^^^^^^^^^ + + var x: number; +>x : number +> : ^^^^^^ + } + + static get a() { +>a : any + + var x = super.func(); +>x : number +> : ^^^^^^ +>super.func() : number +> : ^^^^^^ +>super.func : () => number +> : ^^^^^^^^^^^^ +>super : typeof SomeBaseClass +> : ^^^^^^^^^^^^^^^^^^^^ +>func : () => number +> : ^^^^^^^^^^^^ + + var x: number; +>x : number +> : ^^^^^^ + + return null; + } + + static set a(n) { +>a : any +>n : any + + var x = super.func(); +>x : number +> : ^^^^^^ +>super.func() : number +> : ^^^^^^ +>super.func : () => number +> : ^^^^^^^^^^^^ +>super : typeof SomeBaseClass +> : ^^^^^^^^^^^^^^^^^^^^ +>func : () => number +> : ^^^^^^^^^^^^ + + var x: number; +>x : number +> : ^^^^^^ + } + + returnThis() { +>returnThis : () => this +> : ^^^^^^^^^^ + + return super.returnThis(); +>super.returnThis() : this +> : ^^^^ +>super.returnThis : () => this +> : ^^^^^^^^^^ +>super : SomeBaseClass +> : ^^^^^^^^^^^^^ +>returnThis : () => this +> : ^^^^^^^^^^ + } +} + +let instance = new SomeDerivedClass(); +>instance : SomeDerivedClass +> : ^^^^^^^^^^^^^^^^ +>new SomeDerivedClass() : SomeDerivedClass +> : ^^^^^^^^^^^^^^^^ +>SomeDerivedClass : typeof SomeDerivedClass +> : ^^^^^^^^^^^^^^^^^^^^^^^ + +instance.returnThis().fn(); +>instance.returnThis().fn() : void +> : ^^^^ +>instance.returnThis().fn : () => void +> : ^^^^^^^^^^ +>instance.returnThis() : SomeDerivedClass +> : ^^^^^^^^^^^^^^^^ +>instance.returnThis : () => SomeDerivedClass +> : ^^^^^^^^^^^^^^^^^^^^^^ +>instance : SomeDerivedClass +> : ^^^^^^^^^^^^^^^^ +>returnThis : () => SomeDerivedClass +> : ^^^^^^^^^^^^^^^^^^^^^^ +>fn : () => void +> : ^^^^^^^^^^ + diff --git a/tests/baselines/reference/superPropertyAccess_ES5(target=es2015).js b/tests/baselines/reference/superPropertyAccess_ES5(target=es2015).js new file mode 100644 index 0000000000000..7a1dd2a94b910 --- /dev/null +++ b/tests/baselines/reference/superPropertyAccess_ES5(target=es2015).js @@ -0,0 +1,55 @@ +//// [tests/cases/compiler/superPropertyAccess_ES5.ts] //// + +//// [superPropertyAccess_ES5.ts] +class MyBase { + getValue(): number { return 1; } + get value(): number { return 1; } +} + +class MyDerived extends MyBase { + constructor() { + super(); + + const f1 = super.getValue(); + const f2 = super.value; + } +} + +var d = new MyDerived(); +var f3 = d.value; + +class A { + private _property: string; + get property() { return this._property; } + set property(value: string) { this._property = value } +} + +class B extends A { + set property(value: string) { + super.property = value + " addition"; + } +} + +//// [superPropertyAccess_ES5.js] +class MyBase { + getValue() { return 1; } + get value() { return 1; } +} +class MyDerived extends MyBase { + constructor() { + super(); + const f1 = super.getValue(); + const f2 = super.value; + } +} +var d = new MyDerived(); +var f3 = d.value; +class A { + get property() { return this._property; } + set property(value) { this._property = value; } +} +class B extends A { + set property(value) { + super.property = value + " addition"; + } +} diff --git a/tests/baselines/reference/superPropertyAccess_ES5.symbols b/tests/baselines/reference/superPropertyAccess_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/superPropertyAccess_ES5.symbols rename to tests/baselines/reference/superPropertyAccess_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/superPropertyAccess_ES5.types b/tests/baselines/reference/superPropertyAccess_ES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/superPropertyAccess_ES5.types rename to tests/baselines/reference/superPropertyAccess_ES5(target=es2015).types diff --git a/tests/baselines/reference/superPropertyAccess_ES5.errors.txt b/tests/baselines/reference/superPropertyAccess_ES5(target=es5).errors.txt similarity index 100% rename from tests/baselines/reference/superPropertyAccess_ES5.errors.txt rename to tests/baselines/reference/superPropertyAccess_ES5(target=es5).errors.txt diff --git a/tests/baselines/reference/superPropertyAccess_ES5.js b/tests/baselines/reference/superPropertyAccess_ES5(target=es5).js similarity index 100% rename from tests/baselines/reference/superPropertyAccess_ES5.js rename to tests/baselines/reference/superPropertyAccess_ES5(target=es5).js diff --git a/tests/baselines/reference/superPropertyAccess_ES5(target=es5).symbols b/tests/baselines/reference/superPropertyAccess_ES5(target=es5).symbols new file mode 100644 index 0000000000000..8fe0305848c1a --- /dev/null +++ b/tests/baselines/reference/superPropertyAccess_ES5(target=es5).symbols @@ -0,0 +1,81 @@ +//// [tests/cases/compiler/superPropertyAccess_ES5.ts] //// + +=== superPropertyAccess_ES5.ts === +class MyBase { +>MyBase : Symbol(MyBase, Decl(superPropertyAccess_ES5.ts, 0, 0)) + + getValue(): number { return 1; } +>getValue : Symbol(MyBase.getValue, Decl(superPropertyAccess_ES5.ts, 0, 14)) + + get value(): number { return 1; } +>value : Symbol(MyBase.value, Decl(superPropertyAccess_ES5.ts, 1, 34)) +} + +class MyDerived extends MyBase { +>MyDerived : Symbol(MyDerived, Decl(superPropertyAccess_ES5.ts, 3, 1)) +>MyBase : Symbol(MyBase, Decl(superPropertyAccess_ES5.ts, 0, 0)) + + constructor() { + super(); +>super : Symbol(MyBase, Decl(superPropertyAccess_ES5.ts, 0, 0)) + + const f1 = super.getValue(); +>f1 : Symbol(f1, Decl(superPropertyAccess_ES5.ts, 9, 9)) +>super.getValue : Symbol(MyBase.getValue, Decl(superPropertyAccess_ES5.ts, 0, 14)) +>super : Symbol(MyBase, Decl(superPropertyAccess_ES5.ts, 0, 0)) +>getValue : Symbol(MyBase.getValue, Decl(superPropertyAccess_ES5.ts, 0, 14)) + + const f2 = super.value; +>f2 : Symbol(f2, Decl(superPropertyAccess_ES5.ts, 10, 9)) +>super.value : Symbol(MyBase.value, Decl(superPropertyAccess_ES5.ts, 1, 34)) +>super : Symbol(MyBase, Decl(superPropertyAccess_ES5.ts, 0, 0)) +>value : Symbol(MyBase.value, Decl(superPropertyAccess_ES5.ts, 1, 34)) + } +} + +var d = new MyDerived(); +>d : Symbol(d, Decl(superPropertyAccess_ES5.ts, 14, 3)) +>MyDerived : Symbol(MyDerived, Decl(superPropertyAccess_ES5.ts, 3, 1)) + +var f3 = d.value; +>f3 : Symbol(f3, Decl(superPropertyAccess_ES5.ts, 15, 3)) +>d.value : Symbol(MyBase.value, Decl(superPropertyAccess_ES5.ts, 1, 34)) +>d : Symbol(d, Decl(superPropertyAccess_ES5.ts, 14, 3)) +>value : Symbol(MyBase.value, Decl(superPropertyAccess_ES5.ts, 1, 34)) + +class A { +>A : Symbol(A, Decl(superPropertyAccess_ES5.ts, 15, 17)) + + private _property: string; +>_property : Symbol(A._property, Decl(superPropertyAccess_ES5.ts, 17, 9)) + + get property() { return this._property; } +>property : Symbol(A.property, Decl(superPropertyAccess_ES5.ts, 18, 30), Decl(superPropertyAccess_ES5.ts, 19, 45)) +>this._property : Symbol(A._property, Decl(superPropertyAccess_ES5.ts, 17, 9)) +>this : Symbol(A, Decl(superPropertyAccess_ES5.ts, 15, 17)) +>_property : Symbol(A._property, Decl(superPropertyAccess_ES5.ts, 17, 9)) + + set property(value: string) { this._property = value } +>property : Symbol(A.property, Decl(superPropertyAccess_ES5.ts, 18, 30), Decl(superPropertyAccess_ES5.ts, 19, 45)) +>value : Symbol(value, Decl(superPropertyAccess_ES5.ts, 20, 17)) +>this._property : Symbol(A._property, Decl(superPropertyAccess_ES5.ts, 17, 9)) +>this : Symbol(A, Decl(superPropertyAccess_ES5.ts, 15, 17)) +>_property : Symbol(A._property, Decl(superPropertyAccess_ES5.ts, 17, 9)) +>value : Symbol(value, Decl(superPropertyAccess_ES5.ts, 20, 17)) +} + +class B extends A { +>B : Symbol(B, Decl(superPropertyAccess_ES5.ts, 21, 1)) +>A : Symbol(A, Decl(superPropertyAccess_ES5.ts, 15, 17)) + + set property(value: string) { +>property : Symbol(B.property, Decl(superPropertyAccess_ES5.ts, 23, 19)) +>value : Symbol(value, Decl(superPropertyAccess_ES5.ts, 24, 17)) + + super.property = value + " addition"; +>super.property : Symbol(A.property, Decl(superPropertyAccess_ES5.ts, 18, 30), Decl(superPropertyAccess_ES5.ts, 19, 45)) +>super : Symbol(A, Decl(superPropertyAccess_ES5.ts, 15, 17)) +>property : Symbol(A.property, Decl(superPropertyAccess_ES5.ts, 18, 30), Decl(superPropertyAccess_ES5.ts, 19, 45)) +>value : Symbol(value, Decl(superPropertyAccess_ES5.ts, 24, 17)) + } +} diff --git a/tests/baselines/reference/superPropertyAccess_ES5(target=es5).types b/tests/baselines/reference/superPropertyAccess_ES5(target=es5).types new file mode 100644 index 0000000000000..e18478006e2aa --- /dev/null +++ b/tests/baselines/reference/superPropertyAccess_ES5(target=es5).types @@ -0,0 +1,139 @@ +//// [tests/cases/compiler/superPropertyAccess_ES5.ts] //// + +=== superPropertyAccess_ES5.ts === +class MyBase { +>MyBase : MyBase +> : ^^^^^^ + + getValue(): number { return 1; } +>getValue : () => number +> : ^^^^^^ +>1 : 1 +> : ^ + + get value(): number { return 1; } +>value : number +> : ^^^^^^ +>1 : 1 +> : ^ +} + +class MyDerived extends MyBase { +>MyDerived : MyDerived +> : ^^^^^^^^^ +>MyBase : MyBase +> : ^^^^^^ + + constructor() { + super(); +>super() : void +> : ^^^^ +>super : typeof MyBase +> : ^^^^^^^^^^^^^ + + const f1 = super.getValue(); +>f1 : number +> : ^^^^^^ +>super.getValue() : number +> : ^^^^^^ +>super.getValue : () => number +> : ^^^^^^ +>super : MyBase +> : ^^^^^^ +>getValue : () => number +> : ^^^^^^ + + const f2 = super.value; +>f2 : number +> : ^^^^^^ +>super.value : number +> : ^^^^^^ +>super : MyBase +> : ^^^^^^ +>value : number +> : ^^^^^^ + } +} + +var d = new MyDerived(); +>d : MyDerived +> : ^^^^^^^^^ +>new MyDerived() : MyDerived +> : ^^^^^^^^^ +>MyDerived : typeof MyDerived +> : ^^^^^^^^^^^^^^^^ + +var f3 = d.value; +>f3 : number +> : ^^^^^^ +>d.value : number +> : ^^^^^^ +>d : MyDerived +> : ^^^^^^^^^ +>value : number +> : ^^^^^^ + +class A { +>A : A +> : ^ + + private _property: string; +>_property : string +> : ^^^^^^ + + get property() { return this._property; } +>property : string +> : ^^^^^^ +>this._property : string +> : ^^^^^^ +>this : this +> : ^^^^ +>_property : string +> : ^^^^^^ + + set property(value: string) { this._property = value } +>property : string +> : ^^^^^^ +>value : string +> : ^^^^^^ +>this._property = value : string +> : ^^^^^^ +>this._property : string +> : ^^^^^^ +>this : this +> : ^^^^ +>_property : string +> : ^^^^^^ +>value : string +> : ^^^^^^ +} + +class B extends A { +>B : B +> : ^ +>A : A +> : ^ + + set property(value: string) { +>property : string +> : ^^^^^^ +>value : string +> : ^^^^^^ + + super.property = value + " addition"; +>super.property = value + " addition" : string +> : ^^^^^^ +>super.property : string +> : ^^^^^^ +>super : A +> : ^ +>property : string +> : ^^^^^^ +>value + " addition" : string +> : ^^^^^^ +>value : string +> : ^^^^^^ +>" addition" : " addition" +> : ^^^^^^^^^^^ + } +} diff --git a/tests/baselines/reference/superSymbolIndexedAccess5(target=es2015).js b/tests/baselines/reference/superSymbolIndexedAccess5(target=es2015).js new file mode 100644 index 0000000000000..d912b4461d173 --- /dev/null +++ b/tests/baselines/reference/superSymbolIndexedAccess5(target=es2015).js @@ -0,0 +1,29 @@ +//// [tests/cases/conformance/expressions/superPropertyAccess/superSymbolIndexedAccess5.ts] //// + +//// [superSymbolIndexedAccess5.ts] +var symbol: any; + +class Foo { + [symbol]() { + return 0; + } +} + +class Bar extends Foo { + [symbol]() { + return super[symbol](); + } +} + +//// [superSymbolIndexedAccess5.js] +var symbol; +class Foo { + [symbol]() { + return 0; + } +} +class Bar extends Foo { + [symbol]() { + return super[symbol](); + } +} diff --git a/tests/baselines/reference/superSymbolIndexedAccess5.symbols b/tests/baselines/reference/superSymbolIndexedAccess5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/superSymbolIndexedAccess5.symbols rename to tests/baselines/reference/superSymbolIndexedAccess5(target=es2015).symbols diff --git a/tests/baselines/reference/superSymbolIndexedAccess5.types b/tests/baselines/reference/superSymbolIndexedAccess5(target=es2015).types similarity index 100% rename from tests/baselines/reference/superSymbolIndexedAccess5.types rename to tests/baselines/reference/superSymbolIndexedAccess5(target=es2015).types diff --git a/tests/baselines/reference/superSymbolIndexedAccess5.js b/tests/baselines/reference/superSymbolIndexedAccess5(target=es5).js similarity index 100% rename from tests/baselines/reference/superSymbolIndexedAccess5.js rename to tests/baselines/reference/superSymbolIndexedAccess5(target=es5).js diff --git a/tests/baselines/reference/superSymbolIndexedAccess5(target=es5).symbols b/tests/baselines/reference/superSymbolIndexedAccess5(target=es5).symbols new file mode 100644 index 0000000000000..7fe83c1ccb555 --- /dev/null +++ b/tests/baselines/reference/superSymbolIndexedAccess5(target=es5).symbols @@ -0,0 +1,30 @@ +//// [tests/cases/conformance/expressions/superPropertyAccess/superSymbolIndexedAccess5.ts] //// + +=== superSymbolIndexedAccess5.ts === +var symbol: any; +>symbol : Symbol(symbol, Decl(superSymbolIndexedAccess5.ts, 0, 3)) + +class Foo { +>Foo : Symbol(Foo, Decl(superSymbolIndexedAccess5.ts, 0, 16)) + + [symbol]() { +>[symbol] : Symbol(Foo[symbol], Decl(superSymbolIndexedAccess5.ts, 2, 11)) +>symbol : Symbol(symbol, Decl(superSymbolIndexedAccess5.ts, 0, 3)) + + return 0; + } +} + +class Bar extends Foo { +>Bar : Symbol(Bar, Decl(superSymbolIndexedAccess5.ts, 6, 1)) +>Foo : Symbol(Foo, Decl(superSymbolIndexedAccess5.ts, 0, 16)) + + [symbol]() { +>[symbol] : Symbol(Bar[symbol], Decl(superSymbolIndexedAccess5.ts, 8, 23)) +>symbol : Symbol(symbol, Decl(superSymbolIndexedAccess5.ts, 0, 3)) + + return super[symbol](); +>super : Symbol(Foo, Decl(superSymbolIndexedAccess5.ts, 0, 16)) +>symbol : Symbol(symbol, Decl(superSymbolIndexedAccess5.ts, 0, 3)) + } +} diff --git a/tests/baselines/reference/superSymbolIndexedAccess5(target=es5).types b/tests/baselines/reference/superSymbolIndexedAccess5(target=es5).types new file mode 100644 index 0000000000000..26144f60740e4 --- /dev/null +++ b/tests/baselines/reference/superSymbolIndexedAccess5(target=es5).types @@ -0,0 +1,42 @@ +//// [tests/cases/conformance/expressions/superPropertyAccess/superSymbolIndexedAccess5.ts] //// + +=== superSymbolIndexedAccess5.ts === +var symbol: any; +>symbol : any + +class Foo { +>Foo : Foo +> : ^^^ + + [symbol]() { +>[symbol] : () => number +> : ^^^^^^^^^^^^ +>symbol : any + + return 0; +>0 : 0 +> : ^ + } +} + +class Bar extends Foo { +>Bar : Bar +> : ^^^ +>Foo : Foo +> : ^^^ + + [symbol]() { +>[symbol] : () => number +> : ^^^^^^^^^^^^ +>symbol : any + + return super[symbol](); +>super[symbol]() : number +> : ^^^^^^ +>super[symbol] : () => number +> : ^^^^^^^^^^^^ +>super : Foo +> : ^^^ +>symbol : any + } +} diff --git a/tests/baselines/reference/superSymbolIndexedAccess6(target=es2015).js b/tests/baselines/reference/superSymbolIndexedAccess6(target=es2015).js new file mode 100644 index 0000000000000..ef28edd5aa0b5 --- /dev/null +++ b/tests/baselines/reference/superSymbolIndexedAccess6(target=es2015).js @@ -0,0 +1,29 @@ +//// [tests/cases/conformance/expressions/superPropertyAccess/superSymbolIndexedAccess6.ts] //// + +//// [superSymbolIndexedAccess6.ts] +var symbol: any; + +class Foo { + static [symbol]() { + return 0; + } +} + +class Bar extends Foo { + static [symbol]() { + return super[symbol](); + } +} + +//// [superSymbolIndexedAccess6.js] +var symbol; +class Foo { + static [symbol]() { + return 0; + } +} +class Bar extends Foo { + static [symbol]() { + return super[symbol](); + } +} diff --git a/tests/baselines/reference/superSymbolIndexedAccess6.symbols b/tests/baselines/reference/superSymbolIndexedAccess6(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/superSymbolIndexedAccess6.symbols rename to tests/baselines/reference/superSymbolIndexedAccess6(target=es2015).symbols diff --git a/tests/baselines/reference/superSymbolIndexedAccess6.types b/tests/baselines/reference/superSymbolIndexedAccess6(target=es2015).types similarity index 100% rename from tests/baselines/reference/superSymbolIndexedAccess6.types rename to tests/baselines/reference/superSymbolIndexedAccess6(target=es2015).types diff --git a/tests/baselines/reference/superSymbolIndexedAccess6.js b/tests/baselines/reference/superSymbolIndexedAccess6(target=es5).js similarity index 100% rename from tests/baselines/reference/superSymbolIndexedAccess6.js rename to tests/baselines/reference/superSymbolIndexedAccess6(target=es5).js diff --git a/tests/baselines/reference/superSymbolIndexedAccess6(target=es5).symbols b/tests/baselines/reference/superSymbolIndexedAccess6(target=es5).symbols new file mode 100644 index 0000000000000..ac936a5e515d7 --- /dev/null +++ b/tests/baselines/reference/superSymbolIndexedAccess6(target=es5).symbols @@ -0,0 +1,30 @@ +//// [tests/cases/conformance/expressions/superPropertyAccess/superSymbolIndexedAccess6.ts] //// + +=== superSymbolIndexedAccess6.ts === +var symbol: any; +>symbol : Symbol(symbol, Decl(superSymbolIndexedAccess6.ts, 0, 3)) + +class Foo { +>Foo : Symbol(Foo, Decl(superSymbolIndexedAccess6.ts, 0, 16)) + + static [symbol]() { +>[symbol] : Symbol(Foo[symbol], Decl(superSymbolIndexedAccess6.ts, 2, 11)) +>symbol : Symbol(symbol, Decl(superSymbolIndexedAccess6.ts, 0, 3)) + + return 0; + } +} + +class Bar extends Foo { +>Bar : Symbol(Bar, Decl(superSymbolIndexedAccess6.ts, 6, 1)) +>Foo : Symbol(Foo, Decl(superSymbolIndexedAccess6.ts, 0, 16)) + + static [symbol]() { +>[symbol] : Symbol(Bar[symbol], Decl(superSymbolIndexedAccess6.ts, 8, 23)) +>symbol : Symbol(symbol, Decl(superSymbolIndexedAccess6.ts, 0, 3)) + + return super[symbol](); +>super : Symbol(Foo, Decl(superSymbolIndexedAccess6.ts, 0, 16)) +>symbol : Symbol(symbol, Decl(superSymbolIndexedAccess6.ts, 0, 3)) + } +} diff --git a/tests/baselines/reference/superSymbolIndexedAccess6(target=es5).types b/tests/baselines/reference/superSymbolIndexedAccess6(target=es5).types new file mode 100644 index 0000000000000..2c86a253d7f8c --- /dev/null +++ b/tests/baselines/reference/superSymbolIndexedAccess6(target=es5).types @@ -0,0 +1,42 @@ +//// [tests/cases/conformance/expressions/superPropertyAccess/superSymbolIndexedAccess6.ts] //// + +=== superSymbolIndexedAccess6.ts === +var symbol: any; +>symbol : any + +class Foo { +>Foo : Foo +> : ^^^ + + static [symbol]() { +>[symbol] : () => number +> : ^^^^^^^^^^^^ +>symbol : any + + return 0; +>0 : 0 +> : ^ + } +} + +class Bar extends Foo { +>Bar : Bar +> : ^^^ +>Foo : Foo +> : ^^^ + + static [symbol]() { +>[symbol] : () => number +> : ^^^^^^^^^^^^ +>symbol : any + + return super[symbol](); +>super[symbol]() : number +> : ^^^^^^ +>super[symbol] : () => number +> : ^^^^^^^^^^^^ +>super : typeof Foo +> : ^^^^^^^^^^ +>symbol : any + } +} diff --git a/tests/baselines/reference/systemExportAssignment.errors.txt b/tests/baselines/reference/systemExportAssignment(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/systemExportAssignment.errors.txt rename to tests/baselines/reference/systemExportAssignment(target=es2015).errors.txt diff --git a/tests/baselines/reference/systemExportAssignment.js b/tests/baselines/reference/systemExportAssignment(target=es2015).js similarity index 100% rename from tests/baselines/reference/systemExportAssignment.js rename to tests/baselines/reference/systemExportAssignment(target=es2015).js diff --git a/tests/baselines/reference/systemExportAssignment.symbols b/tests/baselines/reference/systemExportAssignment(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/systemExportAssignment.symbols rename to tests/baselines/reference/systemExportAssignment(target=es2015).symbols diff --git a/tests/baselines/reference/systemExportAssignment.types b/tests/baselines/reference/systemExportAssignment(target=es2015).types similarity index 100% rename from tests/baselines/reference/systemExportAssignment.types rename to tests/baselines/reference/systemExportAssignment(target=es2015).types diff --git a/tests/baselines/reference/systemExportAssignment(target=es5).errors.txt b/tests/baselines/reference/systemExportAssignment(target=es5).errors.txt new file mode 100644 index 0000000000000..e395bb6ce9566 --- /dev/null +++ b/tests/baselines/reference/systemExportAssignment(target=es5).errors.txt @@ -0,0 +1,11 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== a.d.ts (0 errors) ==== + declare var a: number; + export = a; // OK, in ambient context + +==== b.ts (0 errors) ==== + import * as a from "a"; + \ No newline at end of file diff --git a/tests/baselines/reference/systemExportAssignment(target=es5).js b/tests/baselines/reference/systemExportAssignment(target=es5).js new file mode 100644 index 0000000000000..8878da7b57be7 --- /dev/null +++ b/tests/baselines/reference/systemExportAssignment(target=es5).js @@ -0,0 +1,20 @@ +//// [tests/cases/compiler/systemExportAssignment.ts] //// + +//// [a.d.ts] +declare var a: number; +export = a; // OK, in ambient context + +//// [b.ts] +import * as a from "a"; + + +//// [b.js] +System.register([], function (exports_1, context_1) { + "use strict"; + var __moduleName = context_1 && context_1.id; + return { + setters: [], + execute: function () { + } + }; +}); diff --git a/tests/baselines/reference/systemExportAssignment(target=es5).symbols b/tests/baselines/reference/systemExportAssignment(target=es5).symbols new file mode 100644 index 0000000000000..93c4e1b6c8651 --- /dev/null +++ b/tests/baselines/reference/systemExportAssignment(target=es5).symbols @@ -0,0 +1,13 @@ +//// [tests/cases/compiler/systemExportAssignment.ts] //// + +=== a.d.ts === +declare var a: number; +>a : Symbol(a, Decl(a.d.ts, 0, 11)) + +export = a; // OK, in ambient context +>a : Symbol(a, Decl(a.d.ts, 0, 11)) + +=== b.ts === +import * as a from "a"; +>a : Symbol(a, Decl(b.ts, 0, 6)) + diff --git a/tests/baselines/reference/systemExportAssignment(target=es5).types b/tests/baselines/reference/systemExportAssignment(target=es5).types new file mode 100644 index 0000000000000..89816f2b89e91 --- /dev/null +++ b/tests/baselines/reference/systemExportAssignment(target=es5).types @@ -0,0 +1,16 @@ +//// [tests/cases/compiler/systemExportAssignment.ts] //// + +=== a.d.ts === +declare var a: number; +>a : number +> : ^^^^^^ + +export = a; // OK, in ambient context +>a : number +> : ^^^^^^ + +=== b.ts === +import * as a from "a"; +>a : number +> : ^^^^^^ + diff --git a/tests/baselines/reference/systemExportAssignment2.errors.txt b/tests/baselines/reference/systemExportAssignment2(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/systemExportAssignment2.errors.txt rename to tests/baselines/reference/systemExportAssignment2(target=es2015).errors.txt diff --git a/tests/baselines/reference/systemExportAssignment2.js b/tests/baselines/reference/systemExportAssignment2(target=es2015).js similarity index 100% rename from tests/baselines/reference/systemExportAssignment2.js rename to tests/baselines/reference/systemExportAssignment2(target=es2015).js diff --git a/tests/baselines/reference/systemExportAssignment2.symbols b/tests/baselines/reference/systemExportAssignment2(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/systemExportAssignment2.symbols rename to tests/baselines/reference/systemExportAssignment2(target=es2015).symbols diff --git a/tests/baselines/reference/systemExportAssignment2.types b/tests/baselines/reference/systemExportAssignment2(target=es2015).types similarity index 100% rename from tests/baselines/reference/systemExportAssignment2.types rename to tests/baselines/reference/systemExportAssignment2(target=es2015).types diff --git a/tests/baselines/reference/systemExportAssignment2(target=es5).errors.txt b/tests/baselines/reference/systemExportAssignment2(target=es5).errors.txt new file mode 100644 index 0000000000000..b9a7639bdf430 --- /dev/null +++ b/tests/baselines/reference/systemExportAssignment2(target=es5).errors.txt @@ -0,0 +1,14 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +a.ts(2,1): error TS1218: Export assignment is not supported when '--module' flag is 'system'. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== a.ts (1 errors) ==== + var a = 10; + export = a; // Error: export = not allowed in ES6 + ~~~~~~~~~~~ +!!! error TS1218: Export assignment is not supported when '--module' flag is 'system'. + +==== b.ts (0 errors) ==== + import * as a from "a"; + \ No newline at end of file diff --git a/tests/baselines/reference/systemExportAssignment2(target=es5).js b/tests/baselines/reference/systemExportAssignment2(target=es5).js new file mode 100644 index 0000000000000..f4d56cffa6ca6 --- /dev/null +++ b/tests/baselines/reference/systemExportAssignment2(target=es5).js @@ -0,0 +1,32 @@ +//// [tests/cases/compiler/systemExportAssignment2.ts] //// + +//// [a.ts] +var a = 10; +export = a; // Error: export = not allowed in ES6 + +//// [b.ts] +import * as a from "a"; + + +//// [a.js] +System.register([], function (exports_1, context_1) { + "use strict"; + var a; + var __moduleName = context_1 && context_1.id; + return { + setters: [], + execute: function () { + a = 10; + } + }; +}); +//// [b.js] +System.register([], function (exports_1, context_1) { + "use strict"; + var __moduleName = context_1 && context_1.id; + return { + setters: [], + execute: function () { + } + }; +}); diff --git a/tests/baselines/reference/systemExportAssignment2(target=es5).symbols b/tests/baselines/reference/systemExportAssignment2(target=es5).symbols new file mode 100644 index 0000000000000..99fb838302a47 --- /dev/null +++ b/tests/baselines/reference/systemExportAssignment2(target=es5).symbols @@ -0,0 +1,13 @@ +//// [tests/cases/compiler/systemExportAssignment2.ts] //// + +=== a.ts === +var a = 10; +>a : Symbol(a, Decl(a.ts, 0, 3)) + +export = a; // Error: export = not allowed in ES6 +>a : Symbol(a, Decl(a.ts, 0, 3)) + +=== b.ts === +import * as a from "a"; +>a : Symbol(a, Decl(b.ts, 0, 6)) + diff --git a/tests/baselines/reference/systemExportAssignment2(target=es5).types b/tests/baselines/reference/systemExportAssignment2(target=es5).types new file mode 100644 index 0000000000000..485908ed98832 --- /dev/null +++ b/tests/baselines/reference/systemExportAssignment2(target=es5).types @@ -0,0 +1,18 @@ +//// [tests/cases/compiler/systemExportAssignment2.ts] //// + +=== a.ts === +var a = 10; +>a : number +> : ^^^^^^ +>10 : 10 +> : ^^ + +export = a; // Error: export = not allowed in ES6 +>a : number +> : ^^^^^^ + +=== b.ts === +import * as a from "a"; +>a : number +> : ^^^^^^ + diff --git a/tests/baselines/reference/systemExportAssignment3.errors.txt b/tests/baselines/reference/systemExportAssignment3(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/systemExportAssignment3.errors.txt rename to tests/baselines/reference/systemExportAssignment3(target=es2015).errors.txt diff --git a/tests/baselines/reference/systemExportAssignment3.js b/tests/baselines/reference/systemExportAssignment3(target=es2015).js similarity index 100% rename from tests/baselines/reference/systemExportAssignment3.js rename to tests/baselines/reference/systemExportAssignment3(target=es2015).js diff --git a/tests/baselines/reference/systemExportAssignment3.symbols b/tests/baselines/reference/systemExportAssignment3(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/systemExportAssignment3.symbols rename to tests/baselines/reference/systemExportAssignment3(target=es2015).symbols diff --git a/tests/baselines/reference/systemExportAssignment3.types b/tests/baselines/reference/systemExportAssignment3(target=es2015).types similarity index 100% rename from tests/baselines/reference/systemExportAssignment3.types rename to tests/baselines/reference/systemExportAssignment3(target=es2015).types diff --git a/tests/baselines/reference/systemExportAssignment3(target=es5).errors.txt b/tests/baselines/reference/systemExportAssignment3(target=es5).errors.txt new file mode 100644 index 0000000000000..1cba25055d5a6 --- /dev/null +++ b/tests/baselines/reference/systemExportAssignment3(target=es5).errors.txt @@ -0,0 +1,13 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== modules.d.ts (0 errors) ==== + declare module "a" { + var a: number; + export = a; // OK, in ambient context + } + +==== b.ts (0 errors) ==== + import * as a from "a"; + \ No newline at end of file diff --git a/tests/baselines/reference/systemExportAssignment3(target=es5).js b/tests/baselines/reference/systemExportAssignment3(target=es5).js new file mode 100644 index 0000000000000..5c59fdf21e4fd --- /dev/null +++ b/tests/baselines/reference/systemExportAssignment3(target=es5).js @@ -0,0 +1,22 @@ +//// [tests/cases/compiler/systemExportAssignment3.ts] //// + +//// [modules.d.ts] +declare module "a" { + var a: number; + export = a; // OK, in ambient context +} + +//// [b.ts] +import * as a from "a"; + + +//// [b.js] +System.register([], function (exports_1, context_1) { + "use strict"; + var __moduleName = context_1 && context_1.id; + return { + setters: [], + execute: function () { + } + }; +}); diff --git a/tests/baselines/reference/systemExportAssignment3(target=es5).symbols b/tests/baselines/reference/systemExportAssignment3(target=es5).symbols new file mode 100644 index 0000000000000..30ac93003ec13 --- /dev/null +++ b/tests/baselines/reference/systemExportAssignment3(target=es5).symbols @@ -0,0 +1,17 @@ +//// [tests/cases/compiler/systemExportAssignment3.ts] //// + +=== modules.d.ts === +declare module "a" { +>"a" : Symbol("a", Decl(modules.d.ts, 0, 0)) + + var a: number; +>a : Symbol(a, Decl(modules.d.ts, 1, 7)) + + export = a; // OK, in ambient context +>a : Symbol(a, Decl(modules.d.ts, 1, 7)) +} + +=== b.ts === +import * as a from "a"; +>a : Symbol(a, Decl(b.ts, 0, 6)) + diff --git a/tests/baselines/reference/systemExportAssignment3(target=es5).types b/tests/baselines/reference/systemExportAssignment3(target=es5).types new file mode 100644 index 0000000000000..9372d7527e0c5 --- /dev/null +++ b/tests/baselines/reference/systemExportAssignment3(target=es5).types @@ -0,0 +1,21 @@ +//// [tests/cases/compiler/systemExportAssignment3.ts] //// + +=== modules.d.ts === +declare module "a" { +>"a" : typeof import("a") +> : ^^^^^^^^^^^^^^^^^^ + + var a: number; +>a : number +> : ^^^^^^ + + export = a; // OK, in ambient context +>a : number +> : ^^^^^^ +} + +=== b.ts === +import * as a from "a"; +>a : number +> : ^^^^^^ + diff --git a/tests/baselines/reference/systemModule10_ES5.errors.txt b/tests/baselines/reference/systemModule10_ES5(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/systemModule10_ES5.errors.txt rename to tests/baselines/reference/systemModule10_ES5(target=es2015).errors.txt diff --git a/tests/baselines/reference/systemModule10_ES5.js b/tests/baselines/reference/systemModule10_ES5(target=es2015).js similarity index 100% rename from tests/baselines/reference/systemModule10_ES5.js rename to tests/baselines/reference/systemModule10_ES5(target=es2015).js diff --git a/tests/baselines/reference/systemModule10_ES5.symbols b/tests/baselines/reference/systemModule10_ES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/systemModule10_ES5.symbols rename to tests/baselines/reference/systemModule10_ES5(target=es2015).symbols diff --git a/tests/baselines/reference/systemModule10_ES5.types b/tests/baselines/reference/systemModule10_ES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/systemModule10_ES5.types rename to tests/baselines/reference/systemModule10_ES5(target=es2015).types diff --git a/tests/baselines/reference/systemModule10_ES5(target=es5).errors.txt b/tests/baselines/reference/systemModule10_ES5(target=es5).errors.txt new file mode 100644 index 0000000000000..74d1e205ec46c --- /dev/null +++ b/tests/baselines/reference/systemModule10_ES5(target=es5).errors.txt @@ -0,0 +1,19 @@ +error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +systemModule10_ES5.ts(1,20): error TS2792: Cannot find module 'file1'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? +systemModule10_ES5.ts(2,21): error TS2792: Cannot find module 'file2'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? + + +!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== systemModule10_ES5.ts (2 errors) ==== + import n, {x} from 'file1' + ~~~~~~~ +!!! error TS2792: Cannot find module 'file1'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? + import n2 = require('file2'); + ~~~~~~~ +!!! error TS2792: Cannot find module 'file2'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? + export {x} + export {x as y} + export {n} + export {n as n1} + export {n2} + export {n2 as n3} \ No newline at end of file diff --git a/tests/baselines/reference/systemModule10_ES5(target=es5).js b/tests/baselines/reference/systemModule10_ES5(target=es5).js new file mode 100644 index 0000000000000..4860baf7419e2 --- /dev/null +++ b/tests/baselines/reference/systemModule10_ES5(target=es5).js @@ -0,0 +1,36 @@ +//// [tests/cases/compiler/systemModule10_ES5.ts] //// + +//// [systemModule10_ES5.ts] +import n, {x} from 'file1' +import n2 = require('file2'); +export {x} +export {x as y} +export {n} +export {n as n1} +export {n2} +export {n2 as n3} + +//// [systemModule10_ES5.js] +System.register(["file1", "file2"], function (exports_1, context_1) { + "use strict"; + var file1_1, n2; + var __moduleName = context_1 && context_1.id; + return { + setters: [ + function (file1_1_1) { + file1_1 = file1_1_1; + }, + function (n2_1) { + n2 = n2_1; + } + ], + execute: function () { + exports_1("n", file1_1.default); + exports_1("n1", file1_1.default); + exports_1("x", file1_1.x); + exports_1("y", file1_1.x); + exports_1("n2", n2); + exports_1("n3", n2); + } + }; +}); diff --git a/tests/baselines/reference/systemModule10_ES5(target=es5).symbols b/tests/baselines/reference/systemModule10_ES5(target=es5).symbols new file mode 100644 index 0000000000000..7828e46e6338c --- /dev/null +++ b/tests/baselines/reference/systemModule10_ES5(target=es5).symbols @@ -0,0 +1,31 @@ +//// [tests/cases/compiler/systemModule10_ES5.ts] //// + +=== systemModule10_ES5.ts === +import n, {x} from 'file1' +>n : Symbol(n, Decl(systemModule10_ES5.ts, 0, 6)) +>x : Symbol(x, Decl(systemModule10_ES5.ts, 0, 11)) + +import n2 = require('file2'); +>n2 : Symbol(n2, Decl(systemModule10_ES5.ts, 0, 26)) + +export {x} +>x : Symbol(x, Decl(systemModule10_ES5.ts, 2, 8)) + +export {x as y} +>x : Symbol(x, Decl(systemModule10_ES5.ts, 0, 11)) +>y : Symbol(y, Decl(systemModule10_ES5.ts, 3, 8)) + +export {n} +>n : Symbol(n, Decl(systemModule10_ES5.ts, 4, 8)) + +export {n as n1} +>n : Symbol(n, Decl(systemModule10_ES5.ts, 0, 6)) +>n1 : Symbol(n1, Decl(systemModule10_ES5.ts, 5, 8)) + +export {n2} +>n2 : Symbol(n2, Decl(systemModule10_ES5.ts, 6, 8)) + +export {n2 as n3} +>n2 : Symbol(n2, Decl(systemModule10_ES5.ts, 0, 26)) +>n3 : Symbol(n3, Decl(systemModule10_ES5.ts, 7, 8)) + diff --git a/tests/baselines/reference/systemModule10_ES5(target=es5).types b/tests/baselines/reference/systemModule10_ES5(target=es5).types new file mode 100644 index 0000000000000..3ce2b53fd77f2 --- /dev/null +++ b/tests/baselines/reference/systemModule10_ES5(target=es5).types @@ -0,0 +1,43 @@ +//// [tests/cases/compiler/systemModule10_ES5.ts] //// + +=== systemModule10_ES5.ts === +import n, {x} from 'file1' +>n : any +> : ^^^ +>x : any +> : ^^^ + +import n2 = require('file2'); +>n2 : any +> : ^^^ + +export {x} +>x : any +> : ^^^ + +export {x as y} +>x : any +> : ^^^ +>y : any +> : ^^^ + +export {n} +>n : any +> : ^^^ + +export {n as n1} +>n : any +> : ^^^ +>n1 : any +> : ^^^ + +export {n2} +>n2 : any +> : ^^^ + +export {n2 as n3} +>n2 : any +> : ^^^ +>n3 : any +> : ^^^ + diff --git a/tests/baselines/reference/taggedTemplateStringsWithCurriedFunction(target=es2015).js b/tests/baselines/reference/taggedTemplateStringsWithCurriedFunction(target=es2015).js new file mode 100644 index 0000000000000..28216ca976a1c --- /dev/null +++ b/tests/baselines/reference/taggedTemplateStringsWithCurriedFunction(target=es2015).js @@ -0,0 +1,22 @@ +//// [tests/cases/compiler/taggedTemplateStringsWithCurriedFunction.ts] //// + +//// [taggedTemplateStringsWithCurriedFunction.ts] +// Originated from #38558 + +const f = _ => (..._) => ""; + +f({ ...{ x: 0 } })``; +f({ ...{ x: 0 } })`x`; +f({ ...{ x: 0 } })`x${f}x`; +f({ ...{ x: 0 }, y: (() => 1)() })``; +f({ x: (() => 1)(), ...{ y: 1 } })``; + + +//// [taggedTemplateStringsWithCurriedFunction.js] +// Originated from #38558 +const f = _ => (..._) => ""; +f(Object.assign({ x: 0 })) ``; +f(Object.assign({ x: 0 })) `x`; +f(Object.assign({ x: 0 })) `x${f}x`; +f(Object.assign({ x: 0 }, { y: (() => 1)() })) ``; +f(Object.assign({ x: (() => 1)() }, { y: 1 })) ``; diff --git a/tests/baselines/reference/taggedTemplateStringsWithCurriedFunction.symbols b/tests/baselines/reference/taggedTemplateStringsWithCurriedFunction(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/taggedTemplateStringsWithCurriedFunction.symbols rename to tests/baselines/reference/taggedTemplateStringsWithCurriedFunction(target=es2015).symbols diff --git a/tests/baselines/reference/taggedTemplateStringsWithCurriedFunction.types b/tests/baselines/reference/taggedTemplateStringsWithCurriedFunction(target=es2015).types similarity index 100% rename from tests/baselines/reference/taggedTemplateStringsWithCurriedFunction.types rename to tests/baselines/reference/taggedTemplateStringsWithCurriedFunction(target=es2015).types diff --git a/tests/baselines/reference/taggedTemplateStringsWithCurriedFunction.js b/tests/baselines/reference/taggedTemplateStringsWithCurriedFunction(target=es5).js similarity index 100% rename from tests/baselines/reference/taggedTemplateStringsWithCurriedFunction.js rename to tests/baselines/reference/taggedTemplateStringsWithCurriedFunction(target=es5).js diff --git a/tests/baselines/reference/taggedTemplateStringsWithCurriedFunction(target=es5).symbols b/tests/baselines/reference/taggedTemplateStringsWithCurriedFunction(target=es5).symbols new file mode 100644 index 0000000000000..66811d7e95707 --- /dev/null +++ b/tests/baselines/reference/taggedTemplateStringsWithCurriedFunction(target=es5).symbols @@ -0,0 +1,33 @@ +//// [tests/cases/compiler/taggedTemplateStringsWithCurriedFunction.ts] //// + +=== taggedTemplateStringsWithCurriedFunction.ts === +// Originated from #38558 + +const f = _ => (..._) => ""; +>f : Symbol(f, Decl(taggedTemplateStringsWithCurriedFunction.ts, 2, 5)) +>_ : Symbol(_, Decl(taggedTemplateStringsWithCurriedFunction.ts, 2, 9)) +>_ : Symbol(_, Decl(taggedTemplateStringsWithCurriedFunction.ts, 2, 16)) + +f({ ...{ x: 0 } })``; +>f : Symbol(f, Decl(taggedTemplateStringsWithCurriedFunction.ts, 2, 5)) +>x : Symbol(x, Decl(taggedTemplateStringsWithCurriedFunction.ts, 4, 8)) + +f({ ...{ x: 0 } })`x`; +>f : Symbol(f, Decl(taggedTemplateStringsWithCurriedFunction.ts, 2, 5)) +>x : Symbol(x, Decl(taggedTemplateStringsWithCurriedFunction.ts, 5, 8)) + +f({ ...{ x: 0 } })`x${f}x`; +>f : Symbol(f, Decl(taggedTemplateStringsWithCurriedFunction.ts, 2, 5)) +>x : Symbol(x, Decl(taggedTemplateStringsWithCurriedFunction.ts, 6, 8)) +>f : Symbol(f, Decl(taggedTemplateStringsWithCurriedFunction.ts, 2, 5)) + +f({ ...{ x: 0 }, y: (() => 1)() })``; +>f : Symbol(f, Decl(taggedTemplateStringsWithCurriedFunction.ts, 2, 5)) +>x : Symbol(x, Decl(taggedTemplateStringsWithCurriedFunction.ts, 7, 8)) +>y : Symbol(y, Decl(taggedTemplateStringsWithCurriedFunction.ts, 7, 16)) + +f({ x: (() => 1)(), ...{ y: 1 } })``; +>f : Symbol(f, Decl(taggedTemplateStringsWithCurriedFunction.ts, 2, 5)) +>x : Symbol(x, Decl(taggedTemplateStringsWithCurriedFunction.ts, 8, 3)) +>y : Symbol(y, Decl(taggedTemplateStringsWithCurriedFunction.ts, 8, 24)) + diff --git a/tests/baselines/reference/taggedTemplateStringsWithCurriedFunction(target=es5).types b/tests/baselines/reference/taggedTemplateStringsWithCurriedFunction(target=es5).types new file mode 100644 index 0000000000000..91bf8b50792b8 --- /dev/null +++ b/tests/baselines/reference/taggedTemplateStringsWithCurriedFunction(target=es5).types @@ -0,0 +1,130 @@ +//// [tests/cases/compiler/taggedTemplateStringsWithCurriedFunction.ts] //// + +=== taggedTemplateStringsWithCurriedFunction.ts === +// Originated from #38558 + +const f = _ => (..._) => ""; +>f : (_: any) => (..._: any[]) => string +> : ^ ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ +>_ => (..._) => "" : (_: any) => (..._: any[]) => string +> : ^ ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ +>_ : any +>(..._) => "" : (..._: any[]) => string +> : ^^^^ ^^^^^^^^^^^^^^^^^^ +>_ : any[] +> : ^^^^^ +>"" : "" +> : ^^ + +f({ ...{ x: 0 } })``; +>f({ ...{ x: 0 } })`` : string +> : ^^^^^^ +>f({ ...{ x: 0 } }) : (..._: any[]) => string +> : ^^^^ ^^^^^^^^^^^^^^^^^^ +>f : (_: any) => (..._: any[]) => string +> : ^ ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ +>{ ...{ x: 0 } } : { x: number; } +> : ^^^^^^^^^^^^^^ +>{ x: 0 } : { x: number; } +> : ^^^^^^^^^^^^^^ +>x : number +> : ^^^^^^ +>0 : 0 +> : ^ +>`` : "" +> : ^^ + +f({ ...{ x: 0 } })`x`; +>f({ ...{ x: 0 } })`x` : string +> : ^^^^^^ +>f({ ...{ x: 0 } }) : (..._: any[]) => string +> : ^^^^ ^^^^^^^^^^^^^^^^^^ +>f : (_: any) => (..._: any[]) => string +> : ^ ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ +>{ ...{ x: 0 } } : { x: number; } +> : ^^^^^^^^^^^^^^ +>{ x: 0 } : { x: number; } +> : ^^^^^^^^^^^^^^ +>x : number +> : ^^^^^^ +>0 : 0 +> : ^ +>`x` : "x" +> : ^^^ + +f({ ...{ x: 0 } })`x${f}x`; +>f({ ...{ x: 0 } })`x${f}x` : string +> : ^^^^^^ +>f({ ...{ x: 0 } }) : (..._: any[]) => string +> : ^^^^ ^^^^^^^^^^^^^^^^^^ +>f : (_: any) => (..._: any[]) => string +> : ^ ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ +>{ ...{ x: 0 } } : { x: number; } +> : ^^^^^^^^^^^^^^ +>{ x: 0 } : { x: number; } +> : ^^^^^^^^^^^^^^ +>x : number +> : ^^^^^^ +>0 : 0 +> : ^ +>`x${f}x` : string +> : ^^^^^^ +>f : (_: any) => (..._: any[]) => string +> : ^ ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ + +f({ ...{ x: 0 }, y: (() => 1)() })``; +>f({ ...{ x: 0 }, y: (() => 1)() })`` : string +> : ^^^^^^ +>f({ ...{ x: 0 }, y: (() => 1)() }) : (..._: any[]) => string +> : ^^^^ ^^^^^^^^^^^^^^^^^^ +>f : (_: any) => (..._: any[]) => string +> : ^ ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ +>{ ...{ x: 0 }, y: (() => 1)() } : { y: number; x: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ x: 0 } : { x: number; } +> : ^^^^^^^^^^^^^^ +>x : number +> : ^^^^^^ +>0 : 0 +> : ^ +>y : number +> : ^^^^^^ +>(() => 1)() : number +> : ^^^^^^ +>(() => 1) : () => number +> : ^^^^^^^^^^^^ +>() => 1 : () => number +> : ^^^^^^^^^^^^ +>1 : 1 +> : ^ +>`` : "" +> : ^^ + +f({ x: (() => 1)(), ...{ y: 1 } })``; +>f({ x: (() => 1)(), ...{ y: 1 } })`` : string +> : ^^^^^^ +>f({ x: (() => 1)(), ...{ y: 1 } }) : (..._: any[]) => string +> : ^^^^ ^^^^^^^^^^^^^^^^^^ +>f : (_: any) => (..._: any[]) => string +> : ^ ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ +>{ x: (() => 1)(), ...{ y: 1 } } : { y: number; x: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>x : number +> : ^^^^^^ +>(() => 1)() : number +> : ^^^^^^ +>(() => 1) : () => number +> : ^^^^^^^^^^^^ +>() => 1 : () => number +> : ^^^^^^^^^^^^ +>1 : 1 +> : ^ +>{ y: 1 } : { y: number; } +> : ^^^^^^^^^^^^^^ +>y : number +> : ^^^^^^ +>1 : 1 +> : ^ +>`` : "" +> : ^^ + diff --git a/tests/baselines/reference/taggedTemplateWithoutDeclaredHelper(target=es2015).js b/tests/baselines/reference/taggedTemplateWithoutDeclaredHelper(target=es2015).js new file mode 100644 index 0000000000000..61408cd9a08a3 --- /dev/null +++ b/tests/baselines/reference/taggedTemplateWithoutDeclaredHelper(target=es2015).js @@ -0,0 +1,21 @@ +//// [tests/cases/compiler/taggedTemplateWithoutDeclaredHelper.ts] //// + +//// [foo.ts] +function id(x: T) { + return x; +} + +export const result = id `hello world`; + +//// [index.d.ts] +export { }; + + +//// [foo.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.result = void 0; +function id(x) { + return x; +} +exports.result = id `hello world`; diff --git a/tests/baselines/reference/taggedTemplateWithoutDeclaredHelper.symbols b/tests/baselines/reference/taggedTemplateWithoutDeclaredHelper(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/taggedTemplateWithoutDeclaredHelper.symbols rename to tests/baselines/reference/taggedTemplateWithoutDeclaredHelper(target=es2015).symbols diff --git a/tests/baselines/reference/taggedTemplateWithoutDeclaredHelper.types b/tests/baselines/reference/taggedTemplateWithoutDeclaredHelper(target=es2015).types similarity index 100% rename from tests/baselines/reference/taggedTemplateWithoutDeclaredHelper.types rename to tests/baselines/reference/taggedTemplateWithoutDeclaredHelper(target=es2015).types diff --git a/tests/baselines/reference/taggedTemplateWithoutDeclaredHelper.errors.txt b/tests/baselines/reference/taggedTemplateWithoutDeclaredHelper(target=es5).errors.txt similarity index 100% rename from tests/baselines/reference/taggedTemplateWithoutDeclaredHelper.errors.txt rename to tests/baselines/reference/taggedTemplateWithoutDeclaredHelper(target=es5).errors.txt diff --git a/tests/baselines/reference/taggedTemplateWithoutDeclaredHelper.js b/tests/baselines/reference/taggedTemplateWithoutDeclaredHelper(target=es5).js similarity index 100% rename from tests/baselines/reference/taggedTemplateWithoutDeclaredHelper.js rename to tests/baselines/reference/taggedTemplateWithoutDeclaredHelper(target=es5).js diff --git a/tests/baselines/reference/taggedTemplateWithoutDeclaredHelper(target=es5).symbols b/tests/baselines/reference/taggedTemplateWithoutDeclaredHelper(target=es5).symbols new file mode 100644 index 0000000000000..c6eaec9c65f71 --- /dev/null +++ b/tests/baselines/reference/taggedTemplateWithoutDeclaredHelper(target=es5).symbols @@ -0,0 +1,21 @@ +//// [tests/cases/compiler/taggedTemplateWithoutDeclaredHelper.ts] //// + +=== foo.ts === +function id(x: T) { +>id : Symbol(id, Decl(foo.ts, 0, 0)) +>T : Symbol(T, Decl(foo.ts, 0, 12)) +>x : Symbol(x, Decl(foo.ts, 0, 15)) +>T : Symbol(T, Decl(foo.ts, 0, 12)) + + return x; +>x : Symbol(x, Decl(foo.ts, 0, 15)) +} + +export const result = id `hello world`; +>result : Symbol(result, Decl(foo.ts, 4, 12)) +>id : Symbol(id, Decl(foo.ts, 0, 0)) + +=== ./node_modules/tslib/index.d.ts === + +export { }; + diff --git a/tests/baselines/reference/taggedTemplateWithoutDeclaredHelper(target=es5).types b/tests/baselines/reference/taggedTemplateWithoutDeclaredHelper(target=es5).types new file mode 100644 index 0000000000000..b8497dca75e20 --- /dev/null +++ b/tests/baselines/reference/taggedTemplateWithoutDeclaredHelper(target=es5).types @@ -0,0 +1,28 @@ +//// [tests/cases/compiler/taggedTemplateWithoutDeclaredHelper.ts] //// + +=== foo.ts === +function id(x: T) { +>id : (x: T) => T +> : ^ ^^ ^^ ^^^^^^ +>x : T +> : ^ + + return x; +>x : T +> : ^ +} + +export const result = id `hello world`; +>result : TemplateStringsArray +> : ^^^^^^^^^^^^^^^^^^^^ +>id `hello world` : TemplateStringsArray +> : ^^^^^^^^^^^^^^^^^^^^ +>id : (x: T) => T +> : ^ ^^ ^^ ^^^^^^ +>`hello world` : "hello world" +> : ^^^^^^^^^^^^^ + +=== ./node_modules/tslib/index.d.ts === + +export { }; + diff --git a/tests/baselines/reference/taggedTemplatesInModuleAndGlobal(target=es2015).js b/tests/baselines/reference/taggedTemplatesInModuleAndGlobal(target=es2015).js new file mode 100644 index 0000000000000..030c0fd2658f4 --- /dev/null +++ b/tests/baselines/reference/taggedTemplatesInModuleAndGlobal(target=es2015).js @@ -0,0 +1,46 @@ +//// [tests/cases/compiler/taggedTemplatesInModuleAndGlobal.ts] //// + +//// [global.ts] +namespace n { + function id(x: T): T { + return x; + } + + function templateObjectFactory() { + return id`hello world`; + } + let result = templateObjectFactory() === templateObjectFactory(); +} +//// [module.ts] +export { } +function id(x: T): T { + return x; +} + +function templateObjectFactory() { + return id`hello world`; +} +let result = templateObjectFactory() === templateObjectFactory(); + + +//// [global.js] +var n; +(function (n) { + function id(x) { + return x; + } + function templateObjectFactory() { + return id `hello world`; + } + let result = templateObjectFactory() === templateObjectFactory(); +})(n || (n = {})); +//// [module.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +function id(x) { + return x; +} +function templateObjectFactory() { + return id `hello world`; +} +let result = templateObjectFactory() === templateObjectFactory(); diff --git a/tests/baselines/reference/taggedTemplatesInModuleAndGlobal.symbols b/tests/baselines/reference/taggedTemplatesInModuleAndGlobal(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/taggedTemplatesInModuleAndGlobal.symbols rename to tests/baselines/reference/taggedTemplatesInModuleAndGlobal(target=es2015).symbols diff --git a/tests/baselines/reference/taggedTemplatesInModuleAndGlobal.types b/tests/baselines/reference/taggedTemplatesInModuleAndGlobal(target=es2015).types similarity index 100% rename from tests/baselines/reference/taggedTemplatesInModuleAndGlobal.types rename to tests/baselines/reference/taggedTemplatesInModuleAndGlobal(target=es2015).types diff --git a/tests/baselines/reference/taggedTemplatesInModuleAndGlobal.js b/tests/baselines/reference/taggedTemplatesInModuleAndGlobal(target=es5).js similarity index 100% rename from tests/baselines/reference/taggedTemplatesInModuleAndGlobal.js rename to tests/baselines/reference/taggedTemplatesInModuleAndGlobal(target=es5).js diff --git a/tests/baselines/reference/taggedTemplatesInModuleAndGlobal(target=es5).symbols b/tests/baselines/reference/taggedTemplatesInModuleAndGlobal(target=es5).symbols new file mode 100644 index 0000000000000..c336f629e4fd8 --- /dev/null +++ b/tests/baselines/reference/taggedTemplatesInModuleAndGlobal(target=es5).symbols @@ -0,0 +1,52 @@ +//// [tests/cases/compiler/taggedTemplatesInModuleAndGlobal.ts] //// + +=== global.ts === +namespace n { +>n : Symbol(n, Decl(global.ts, 0, 0)) + + function id(x: T): T { +>id : Symbol(id, Decl(global.ts, 0, 13)) +>T : Symbol(T, Decl(global.ts, 1, 16)) +>x : Symbol(x, Decl(global.ts, 1, 19)) +>T : Symbol(T, Decl(global.ts, 1, 16)) +>T : Symbol(T, Decl(global.ts, 1, 16)) + + return x; +>x : Symbol(x, Decl(global.ts, 1, 19)) + } + + function templateObjectFactory() { +>templateObjectFactory : Symbol(templateObjectFactory, Decl(global.ts, 3, 5)) + + return id`hello world`; +>id : Symbol(id, Decl(global.ts, 0, 13)) + } + let result = templateObjectFactory() === templateObjectFactory(); +>result : Symbol(result, Decl(global.ts, 8, 7)) +>templateObjectFactory : Symbol(templateObjectFactory, Decl(global.ts, 3, 5)) +>templateObjectFactory : Symbol(templateObjectFactory, Decl(global.ts, 3, 5)) +} +=== module.ts === +export { } +function id(x: T): T { +>id : Symbol(id, Decl(module.ts, 0, 10)) +>T : Symbol(T, Decl(module.ts, 1, 12)) +>x : Symbol(x, Decl(module.ts, 1, 15)) +>T : Symbol(T, Decl(module.ts, 1, 12)) +>T : Symbol(T, Decl(module.ts, 1, 12)) + + return x; +>x : Symbol(x, Decl(module.ts, 1, 15)) +} + +function templateObjectFactory() { +>templateObjectFactory : Symbol(templateObjectFactory, Decl(module.ts, 3, 1)) + + return id`hello world`; +>id : Symbol(id, Decl(module.ts, 0, 10)) +} +let result = templateObjectFactory() === templateObjectFactory(); +>result : Symbol(result, Decl(module.ts, 8, 3)) +>templateObjectFactory : Symbol(templateObjectFactory, Decl(module.ts, 3, 1)) +>templateObjectFactory : Symbol(templateObjectFactory, Decl(module.ts, 3, 1)) + diff --git a/tests/baselines/reference/taggedTemplatesInModuleAndGlobal(target=es5).types b/tests/baselines/reference/taggedTemplatesInModuleAndGlobal(target=es5).types new file mode 100644 index 0000000000000..f1d4d66df6f9c --- /dev/null +++ b/tests/baselines/reference/taggedTemplatesInModuleAndGlobal(target=es5).types @@ -0,0 +1,83 @@ +//// [tests/cases/compiler/taggedTemplatesInModuleAndGlobal.ts] //// + +=== global.ts === +namespace n { +>n : typeof n +> : ^^^^^^^^ + + function id(x: T): T { +>id : (x: T) => T +> : ^ ^^ ^^ ^^^^^ +>x : T +> : ^ + + return x; +>x : T +> : ^ + } + + function templateObjectFactory() { +>templateObjectFactory : () => TemplateStringsArray +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^ + + return id`hello world`; +>id`hello world` : TemplateStringsArray +> : ^^^^^^^^^^^^^^^^^^^^ +>id : (x: T) => T +> : ^ ^^ ^^ ^^^^^ +>`hello world` : "hello world" +> : ^^^^^^^^^^^^^ + } + let result = templateObjectFactory() === templateObjectFactory(); +>result : boolean +> : ^^^^^^^ +>templateObjectFactory() === templateObjectFactory() : boolean +> : ^^^^^^^ +>templateObjectFactory() : TemplateStringsArray +> : ^^^^^^^^^^^^^^^^^^^^ +>templateObjectFactory : () => TemplateStringsArray +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^ +>templateObjectFactory() : TemplateStringsArray +> : ^^^^^^^^^^^^^^^^^^^^ +>templateObjectFactory : () => TemplateStringsArray +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^ +} +=== module.ts === +export { } +function id(x: T): T { +>id : (x: T) => T +> : ^ ^^ ^^ ^^^^^ +>x : T +> : ^ + + return x; +>x : T +> : ^ +} + +function templateObjectFactory() { +>templateObjectFactory : () => TemplateStringsArray +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^ + + return id`hello world`; +>id`hello world` : TemplateStringsArray +> : ^^^^^^^^^^^^^^^^^^^^ +>id : (x: T) => T +> : ^ ^^ ^^ ^^^^^ +>`hello world` : "hello world" +> : ^^^^^^^^^^^^^ +} +let result = templateObjectFactory() === templateObjectFactory(); +>result : boolean +> : ^^^^^^^ +>templateObjectFactory() === templateObjectFactory() : boolean +> : ^^^^^^^ +>templateObjectFactory() : TemplateStringsArray +> : ^^^^^^^^^^^^^^^^^^^^ +>templateObjectFactory : () => TemplateStringsArray +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^ +>templateObjectFactory() : TemplateStringsArray +> : ^^^^^^^^^^^^^^^^^^^^ +>templateObjectFactory : () => TemplateStringsArray +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^ + diff --git a/tests/baselines/reference/targetEs6DecoratorMetadataImportNotElided(target=es2015).js b/tests/baselines/reference/targetEs6DecoratorMetadataImportNotElided(target=es2015).js new file mode 100644 index 0000000000000..8e0fca5029de2 --- /dev/null +++ b/tests/baselines/reference/targetEs6DecoratorMetadataImportNotElided(target=es2015).js @@ -0,0 +1,42 @@ +//// [tests/cases/compiler/targetEs6DecoratorMetadataImportNotElided.ts] //// + +//// [deps.ts] +export function Input(): any { } +export class TemplateRef { } + +//// [index.ts] +import { Input, TemplateRef } from './deps'; + +export class MyComponent { + _ref: TemplateRef; + + @Input() + get ref() { return this._ref; } + set ref(value: TemplateRef) { this._ref = value; } +} + + +//// [deps.js] +export function Input() { } +export class TemplateRef { +} +//// [index.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; +import { Input, TemplateRef } from './deps'; +export class MyComponent { + get ref() { return this._ref; } + set ref(value) { this._ref = value; } +} +__decorate([ + Input(), + __metadata("design:type", TemplateRef), + __metadata("design:paramtypes", [TemplateRef]) +], MyComponent.prototype, "ref", null); diff --git a/tests/baselines/reference/targetEs6DecoratorMetadataImportNotElided.symbols b/tests/baselines/reference/targetEs6DecoratorMetadataImportNotElided(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/targetEs6DecoratorMetadataImportNotElided.symbols rename to tests/baselines/reference/targetEs6DecoratorMetadataImportNotElided(target=es2015).symbols diff --git a/tests/baselines/reference/targetEs6DecoratorMetadataImportNotElided.types b/tests/baselines/reference/targetEs6DecoratorMetadataImportNotElided(target=es2015).types similarity index 100% rename from tests/baselines/reference/targetEs6DecoratorMetadataImportNotElided.types rename to tests/baselines/reference/targetEs6DecoratorMetadataImportNotElided(target=es2015).types diff --git a/tests/baselines/reference/targetEs6DecoratorMetadataImportNotElided.js b/tests/baselines/reference/targetEs6DecoratorMetadataImportNotElided(target=es5).js similarity index 100% rename from tests/baselines/reference/targetEs6DecoratorMetadataImportNotElided.js rename to tests/baselines/reference/targetEs6DecoratorMetadataImportNotElided(target=es5).js diff --git a/tests/baselines/reference/targetEs6DecoratorMetadataImportNotElided(target=es5).symbols b/tests/baselines/reference/targetEs6DecoratorMetadataImportNotElided(target=es5).symbols new file mode 100644 index 0000000000000..7769d69f21f91 --- /dev/null +++ b/tests/baselines/reference/targetEs6DecoratorMetadataImportNotElided(target=es5).symbols @@ -0,0 +1,40 @@ +//// [tests/cases/compiler/targetEs6DecoratorMetadataImportNotElided.ts] //// + +=== deps.ts === +export function Input(): any { } +>Input : Symbol(Input, Decl(deps.ts, 0, 0)) + +export class TemplateRef { } +>TemplateRef : Symbol(TemplateRef, Decl(deps.ts, 0, 32)) + +=== index.ts === +import { Input, TemplateRef } from './deps'; +>Input : Symbol(Input, Decl(index.ts, 0, 8)) +>TemplateRef : Symbol(TemplateRef, Decl(index.ts, 0, 15)) + +export class MyComponent { +>MyComponent : Symbol(MyComponent, Decl(index.ts, 0, 44)) + + _ref: TemplateRef; +>_ref : Symbol(MyComponent._ref, Decl(index.ts, 2, 26)) +>TemplateRef : Symbol(TemplateRef, Decl(index.ts, 0, 15)) + + @Input() +>Input : Symbol(Input, Decl(index.ts, 0, 8)) + + get ref() { return this._ref; } +>ref : Symbol(MyComponent.ref, Decl(index.ts, 3, 22), Decl(index.ts, 6, 35)) +>this._ref : Symbol(MyComponent._ref, Decl(index.ts, 2, 26)) +>this : Symbol(MyComponent, Decl(index.ts, 0, 44)) +>_ref : Symbol(MyComponent._ref, Decl(index.ts, 2, 26)) + + set ref(value: TemplateRef) { this._ref = value; } +>ref : Symbol(MyComponent.ref, Decl(index.ts, 3, 22), Decl(index.ts, 6, 35)) +>value : Symbol(value, Decl(index.ts, 7, 12)) +>TemplateRef : Symbol(TemplateRef, Decl(index.ts, 0, 15)) +>this._ref : Symbol(MyComponent._ref, Decl(index.ts, 2, 26)) +>this : Symbol(MyComponent, Decl(index.ts, 0, 44)) +>_ref : Symbol(MyComponent._ref, Decl(index.ts, 2, 26)) +>value : Symbol(value, Decl(index.ts, 7, 12)) +} + diff --git a/tests/baselines/reference/targetEs6DecoratorMetadataImportNotElided(target=es5).types b/tests/baselines/reference/targetEs6DecoratorMetadataImportNotElided(target=es5).types new file mode 100644 index 0000000000000..9b0a412a1b946 --- /dev/null +++ b/tests/baselines/reference/targetEs6DecoratorMetadataImportNotElided(target=es5).types @@ -0,0 +1,58 @@ +//// [tests/cases/compiler/targetEs6DecoratorMetadataImportNotElided.ts] //// + +=== deps.ts === +export function Input(): any { } +>Input : () => any +> : ^^^^^^ + +export class TemplateRef { } +>TemplateRef : TemplateRef +> : ^^^^^^^^^^^ + +=== index.ts === +import { Input, TemplateRef } from './deps'; +>Input : () => any +> : ^^^^^^ +>TemplateRef : typeof TemplateRef +> : ^^^^^^^^^^^^^^^^^^ + +export class MyComponent { +>MyComponent : MyComponent +> : ^^^^^^^^^^^ + + _ref: TemplateRef; +>_ref : TemplateRef +> : ^^^^^^^^^^^ + + @Input() +>Input() : any +>Input : () => any +> : ^^^^^^ + + get ref() { return this._ref; } +>ref : TemplateRef +> : ^^^^^^^^^^^ +>this._ref : TemplateRef +> : ^^^^^^^^^^^ +>this : this +> : ^^^^ +>_ref : TemplateRef +> : ^^^^^^^^^^^ + + set ref(value: TemplateRef) { this._ref = value; } +>ref : TemplateRef +> : ^^^^^^^^^^^ +>value : TemplateRef +> : ^^^^^^^^^^^ +>this._ref = value : TemplateRef +> : ^^^^^^^^^^^ +>this._ref : TemplateRef +> : ^^^^^^^^^^^ +>this : this +> : ^^^^ +>_ref : TemplateRef +> : ^^^^^^^^^^^ +>value : TemplateRef +> : ^^^^^^^^^^^ +} + diff --git a/tests/baselines/reference/templateStringsArrayTypeDefinedInES5Mode.errors.txt b/tests/baselines/reference/templateStringsArrayTypeDefinedInES5Mode(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/templateStringsArrayTypeDefinedInES5Mode.errors.txt rename to tests/baselines/reference/templateStringsArrayTypeDefinedInES5Mode(target=es2015).errors.txt diff --git a/tests/baselines/reference/templateStringsArrayTypeDefinedInES5Mode(target=es2015).js b/tests/baselines/reference/templateStringsArrayTypeDefinedInES5Mode(target=es2015).js new file mode 100644 index 0000000000000..c86d4abf89c1e --- /dev/null +++ b/tests/baselines/reference/templateStringsArrayTypeDefinedInES5Mode(target=es2015).js @@ -0,0 +1,20 @@ +//// [tests/cases/compiler/templateStringsArrayTypeDefinedInES5Mode.ts] //// + +//// [templateStringsArrayTypeDefinedInES5Mode.ts] +class TemplateStringsArray { +} + +function f(x: TemplateStringsArray, y: number, z: number) { +} + +f({}, 10, 10); + +f `abcdef${ 1234 }${ 5678 }ghijkl`; + +//// [templateStringsArrayTypeDefinedInES5Mode.js] +class TemplateStringsArray { +} +function f(x, y, z) { +} +f({}, 10, 10); +f `abcdef${1234}${5678}ghijkl`; diff --git a/tests/baselines/reference/templateStringsArrayTypeDefinedInES5Mode.symbols b/tests/baselines/reference/templateStringsArrayTypeDefinedInES5Mode(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/templateStringsArrayTypeDefinedInES5Mode.symbols rename to tests/baselines/reference/templateStringsArrayTypeDefinedInES5Mode(target=es2015).symbols diff --git a/tests/baselines/reference/templateStringsArrayTypeDefinedInES5Mode.types b/tests/baselines/reference/templateStringsArrayTypeDefinedInES5Mode(target=es2015).types similarity index 100% rename from tests/baselines/reference/templateStringsArrayTypeDefinedInES5Mode.types rename to tests/baselines/reference/templateStringsArrayTypeDefinedInES5Mode(target=es2015).types diff --git a/tests/baselines/reference/templateStringsArrayTypeDefinedInES5Mode(target=es5).errors.txt b/tests/baselines/reference/templateStringsArrayTypeDefinedInES5Mode(target=es5).errors.txt new file mode 100644 index 0000000000000..0a0fd319b9689 --- /dev/null +++ b/tests/baselines/reference/templateStringsArrayTypeDefinedInES5Mode(target=es5).errors.txt @@ -0,0 +1,17 @@ +templateStringsArrayTypeDefinedInES5Mode.ts(7,3): error TS2345: Argument of type '{}' is not assignable to parameter of type 'TemplateStringsArray'. + Type '{}' is missing the following properties from type 'TemplateStringsArray': raw, length, concat, join, and 17 more. + + +==== templateStringsArrayTypeDefinedInES5Mode.ts (1 errors) ==== + class TemplateStringsArray { + } + + function f(x: TemplateStringsArray, y: number, z: number) { + } + + f({}, 10, 10); + ~~ +!!! error TS2345: Argument of type '{}' is not assignable to parameter of type 'TemplateStringsArray'. +!!! error TS2345: Type '{}' is missing the following properties from type 'TemplateStringsArray': raw, length, concat, join, and 17 more. + + f `abcdef${ 1234 }${ 5678 }ghijkl`; \ No newline at end of file diff --git a/tests/baselines/reference/templateStringsArrayTypeDefinedInES5Mode.js b/tests/baselines/reference/templateStringsArrayTypeDefinedInES5Mode(target=es5).js similarity index 100% rename from tests/baselines/reference/templateStringsArrayTypeDefinedInES5Mode.js rename to tests/baselines/reference/templateStringsArrayTypeDefinedInES5Mode(target=es5).js diff --git a/tests/baselines/reference/templateStringsArrayTypeDefinedInES5Mode(target=es5).symbols b/tests/baselines/reference/templateStringsArrayTypeDefinedInES5Mode(target=es5).symbols new file mode 100644 index 0000000000000..47a6d9af67929 --- /dev/null +++ b/tests/baselines/reference/templateStringsArrayTypeDefinedInES5Mode(target=es5).symbols @@ -0,0 +1,21 @@ +//// [tests/cases/compiler/templateStringsArrayTypeDefinedInES5Mode.ts] //// + +=== templateStringsArrayTypeDefinedInES5Mode.ts === +class TemplateStringsArray { +>TemplateStringsArray : Symbol(TemplateStringsArray, Decl(lib.es5.d.ts, --, --), Decl(templateStringsArrayTypeDefinedInES5Mode.ts, 0, 0)) +} + +function f(x: TemplateStringsArray, y: number, z: number) { +>f : Symbol(f, Decl(templateStringsArrayTypeDefinedInES5Mode.ts, 1, 1)) +>x : Symbol(x, Decl(templateStringsArrayTypeDefinedInES5Mode.ts, 3, 11)) +>TemplateStringsArray : Symbol(TemplateStringsArray, Decl(lib.es5.d.ts, --, --), Decl(templateStringsArrayTypeDefinedInES5Mode.ts, 0, 0)) +>y : Symbol(y, Decl(templateStringsArrayTypeDefinedInES5Mode.ts, 3, 35)) +>z : Symbol(z, Decl(templateStringsArrayTypeDefinedInES5Mode.ts, 3, 46)) +} + +f({}, 10, 10); +>f : Symbol(f, Decl(templateStringsArrayTypeDefinedInES5Mode.ts, 1, 1)) + +f `abcdef${ 1234 }${ 5678 }ghijkl`; +>f : Symbol(f, Decl(templateStringsArrayTypeDefinedInES5Mode.ts, 1, 1)) + diff --git a/tests/baselines/reference/templateStringsArrayTypeDefinedInES5Mode(target=es5).types b/tests/baselines/reference/templateStringsArrayTypeDefinedInES5Mode(target=es5).types new file mode 100644 index 0000000000000..9fc2dea4c8c04 --- /dev/null +++ b/tests/baselines/reference/templateStringsArrayTypeDefinedInES5Mode(target=es5).types @@ -0,0 +1,43 @@ +//// [tests/cases/compiler/templateStringsArrayTypeDefinedInES5Mode.ts] //// + +=== templateStringsArrayTypeDefinedInES5Mode.ts === +class TemplateStringsArray { +>TemplateStringsArray : TemplateStringsArray +> : ^^^^^^^^^^^^^^^^^^^^ +} + +function f(x: TemplateStringsArray, y: number, z: number) { +>f : (x: TemplateStringsArray, y: number, z: number) => void +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^^^^^ +>x : TemplateStringsArray +> : ^^^^^^^^^^^^^^^^^^^^ +>y : number +> : ^^^^^^ +>z : number +> : ^^^^^^ +} + +f({}, 10, 10); +>f({}, 10, 10) : void +> : ^^^^ +>f : (x: TemplateStringsArray, y: number, z: number) => void +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^^^^^ +>{} : {} +> : ^^ +>10 : 10 +> : ^^ +>10 : 10 +> : ^^ + +f `abcdef${ 1234 }${ 5678 }ghijkl`; +>f `abcdef${ 1234 }${ 5678 }ghijkl` : void +> : ^^^^ +>f : (x: TemplateStringsArray, y: number, z: number) => void +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^^^^^ +>`abcdef${ 1234 }${ 5678 }ghijkl` : string +> : ^^^^^^ +>1234 : 1234 +> : ^^^^ +>5678 : 5678 +> : ^^^^ + diff --git a/tests/baselines/reference/templateStringsArrayTypeNotDefinedES5Mode.errors.txt b/tests/baselines/reference/templateStringsArrayTypeNotDefinedES5Mode(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/templateStringsArrayTypeNotDefinedES5Mode.errors.txt rename to tests/baselines/reference/templateStringsArrayTypeNotDefinedES5Mode(target=es2015).errors.txt diff --git a/tests/baselines/reference/templateStringsArrayTypeNotDefinedES5Mode(target=es2015).js b/tests/baselines/reference/templateStringsArrayTypeNotDefinedES5Mode(target=es2015).js new file mode 100644 index 0000000000000..06810aaabb1ad --- /dev/null +++ b/tests/baselines/reference/templateStringsArrayTypeNotDefinedES5Mode(target=es2015).js @@ -0,0 +1,15 @@ +//// [tests/cases/compiler/templateStringsArrayTypeNotDefinedES5Mode.ts] //// + +//// [templateStringsArrayTypeNotDefinedES5Mode.ts] +function f(x: TemplateStringsArray, y: number, z: number) { +} + +f({}, 10, 10); + +f `abcdef${ 1234 }${ 5678 }ghijkl`; + +//// [templateStringsArrayTypeNotDefinedES5Mode.js] +function f(x, y, z) { +} +f({}, 10, 10); +f `abcdef${1234}${5678}ghijkl`; diff --git a/tests/baselines/reference/templateStringsArrayTypeNotDefinedES5Mode.symbols b/tests/baselines/reference/templateStringsArrayTypeNotDefinedES5Mode(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/templateStringsArrayTypeNotDefinedES5Mode.symbols rename to tests/baselines/reference/templateStringsArrayTypeNotDefinedES5Mode(target=es2015).symbols diff --git a/tests/baselines/reference/templateStringsArrayTypeNotDefinedES5Mode.types b/tests/baselines/reference/templateStringsArrayTypeNotDefinedES5Mode(target=es2015).types similarity index 100% rename from tests/baselines/reference/templateStringsArrayTypeNotDefinedES5Mode.types rename to tests/baselines/reference/templateStringsArrayTypeNotDefinedES5Mode(target=es2015).types diff --git a/tests/baselines/reference/templateStringsArrayTypeNotDefinedES5Mode(target=es5).errors.txt b/tests/baselines/reference/templateStringsArrayTypeNotDefinedES5Mode(target=es5).errors.txt new file mode 100644 index 0000000000000..5dbc43f2055ba --- /dev/null +++ b/tests/baselines/reference/templateStringsArrayTypeNotDefinedES5Mode(target=es5).errors.txt @@ -0,0 +1,14 @@ +templateStringsArrayTypeNotDefinedES5Mode.ts(4,3): error TS2345: Argument of type '{}' is not assignable to parameter of type 'TemplateStringsArray'. + Type '{}' is missing the following properties from type 'TemplateStringsArray': raw, length, concat, join, and 17 more. + + +==== templateStringsArrayTypeNotDefinedES5Mode.ts (1 errors) ==== + function f(x: TemplateStringsArray, y: number, z: number) { + } + + f({}, 10, 10); + ~~ +!!! error TS2345: Argument of type '{}' is not assignable to parameter of type 'TemplateStringsArray'. +!!! error TS2345: Type '{}' is missing the following properties from type 'TemplateStringsArray': raw, length, concat, join, and 17 more. + + f `abcdef${ 1234 }${ 5678 }ghijkl`; \ No newline at end of file diff --git a/tests/baselines/reference/templateStringsArrayTypeNotDefinedES5Mode.js b/tests/baselines/reference/templateStringsArrayTypeNotDefinedES5Mode(target=es5).js similarity index 100% rename from tests/baselines/reference/templateStringsArrayTypeNotDefinedES5Mode.js rename to tests/baselines/reference/templateStringsArrayTypeNotDefinedES5Mode(target=es5).js diff --git a/tests/baselines/reference/templateStringsArrayTypeNotDefinedES5Mode(target=es5).symbols b/tests/baselines/reference/templateStringsArrayTypeNotDefinedES5Mode(target=es5).symbols new file mode 100644 index 0000000000000..603b7a4763f3f --- /dev/null +++ b/tests/baselines/reference/templateStringsArrayTypeNotDefinedES5Mode(target=es5).symbols @@ -0,0 +1,17 @@ +//// [tests/cases/compiler/templateStringsArrayTypeNotDefinedES5Mode.ts] //// + +=== templateStringsArrayTypeNotDefinedES5Mode.ts === +function f(x: TemplateStringsArray, y: number, z: number) { +>f : Symbol(f, Decl(templateStringsArrayTypeNotDefinedES5Mode.ts, 0, 0)) +>x : Symbol(x, Decl(templateStringsArrayTypeNotDefinedES5Mode.ts, 0, 11)) +>TemplateStringsArray : Symbol(TemplateStringsArray, Decl(lib.es5.d.ts, --, --)) +>y : Symbol(y, Decl(templateStringsArrayTypeNotDefinedES5Mode.ts, 0, 35)) +>z : Symbol(z, Decl(templateStringsArrayTypeNotDefinedES5Mode.ts, 0, 46)) +} + +f({}, 10, 10); +>f : Symbol(f, Decl(templateStringsArrayTypeNotDefinedES5Mode.ts, 0, 0)) + +f `abcdef${ 1234 }${ 5678 }ghijkl`; +>f : Symbol(f, Decl(templateStringsArrayTypeNotDefinedES5Mode.ts, 0, 0)) + diff --git a/tests/baselines/reference/templateStringsArrayTypeNotDefinedES5Mode(target=es5).types b/tests/baselines/reference/templateStringsArrayTypeNotDefinedES5Mode(target=es5).types new file mode 100644 index 0000000000000..f8a8049965508 --- /dev/null +++ b/tests/baselines/reference/templateStringsArrayTypeNotDefinedES5Mode(target=es5).types @@ -0,0 +1,38 @@ +//// [tests/cases/compiler/templateStringsArrayTypeNotDefinedES5Mode.ts] //// + +=== templateStringsArrayTypeNotDefinedES5Mode.ts === +function f(x: TemplateStringsArray, y: number, z: number) { +>f : (x: TemplateStringsArray, y: number, z: number) => void +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^^^^^ +>x : TemplateStringsArray +> : ^^^^^^^^^^^^^^^^^^^^ +>y : number +> : ^^^^^^ +>z : number +> : ^^^^^^ +} + +f({}, 10, 10); +>f({}, 10, 10) : void +> : ^^^^ +>f : (x: TemplateStringsArray, y: number, z: number) => void +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^^^^^ +>{} : {} +> : ^^ +>10 : 10 +> : ^^ +>10 : 10 +> : ^^ + +f `abcdef${ 1234 }${ 5678 }ghijkl`; +>f `abcdef${ 1234 }${ 5678 }ghijkl` : void +> : ^^^^ +>f : (x: TemplateStringsArray, y: number, z: number) => void +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^^^^^ +>`abcdef${ 1234 }${ 5678 }ghijkl` : string +> : ^^^^^^ +>1234 : 1234 +> : ^^^^ +>5678 : 5678 +> : ^^^^ + diff --git a/tests/baselines/reference/thisAndSuperInStaticMembers3(target=es2015).js b/tests/baselines/reference/thisAndSuperInStaticMembers3(target=es2015).js new file mode 100644 index 0000000000000..8ab6b91d5525c --- /dev/null +++ b/tests/baselines/reference/thisAndSuperInStaticMembers3(target=es2015).js @@ -0,0 +1,101 @@ +//// [tests/cases/conformance/classes/members/instanceAndStaticMembers/thisAndSuperInStaticMembers3.ts] //// + +//// [thisAndSuperInStaticMembers3.ts] +declare class B { + static a: any; + static f(): number; + a: number; + f(): number; +} + +class C extends B { + static x: any = undefined!; + static y1 = this.x; + static y2 = this.x(); + static y3 = this?.x(); + static y4 = this[("x")](); + static y5 = this?.[("x")](); + static z3 = super.f(); + static z4 = super["f"](); + + // these should be unaffected + x = 1; + y = this.x; + z = super.f(); +} + +//// [thisAndSuperInStaticMembers3.js] +var _a, _b; +class C extends (_b = B) { + constructor() { + super(...arguments); + // these should be unaffected + Object.defineProperty(this, "x", { + enumerable: true, + configurable: true, + writable: true, + value: 1 + }); + Object.defineProperty(this, "y", { + enumerable: true, + configurable: true, + writable: true, + value: this.x + }); + Object.defineProperty(this, "z", { + enumerable: true, + configurable: true, + writable: true, + value: super.f() + }); + } +} +_a = C; +Object.defineProperty(C, "x", { + enumerable: true, + configurable: true, + writable: true, + value: undefined +}); +Object.defineProperty(C, "y1", { + enumerable: true, + configurable: true, + writable: true, + value: _a.x +}); +Object.defineProperty(C, "y2", { + enumerable: true, + configurable: true, + writable: true, + value: _a.x() +}); +Object.defineProperty(C, "y3", { + enumerable: true, + configurable: true, + writable: true, + value: _a === null || _a === void 0 ? void 0 : _a.x() +}); +Object.defineProperty(C, "y4", { + enumerable: true, + configurable: true, + writable: true, + value: _a[("x")]() +}); +Object.defineProperty(C, "y5", { + enumerable: true, + configurable: true, + writable: true, + value: _a === null || _a === void 0 ? void 0 : _a[("x")]() +}); +Object.defineProperty(C, "z3", { + enumerable: true, + configurable: true, + writable: true, + value: Reflect.get(_b, "f", _a).call(_a) +}); +Object.defineProperty(C, "z4", { + enumerable: true, + configurable: true, + writable: true, + value: Reflect.get(_b, "f", _a).call(_a) +}); diff --git a/tests/baselines/reference/thisAndSuperInStaticMembers3.js b/tests/baselines/reference/thisAndSuperInStaticMembers3(target=es5).js similarity index 100% rename from tests/baselines/reference/thisAndSuperInStaticMembers3.js rename to tests/baselines/reference/thisAndSuperInStaticMembers3(target=es5).js diff --git a/tests/baselines/reference/thisAndSuperInStaticMembers4(target=es2015).js b/tests/baselines/reference/thisAndSuperInStaticMembers4(target=es2015).js new file mode 100644 index 0000000000000..dcb95691f8b90 --- /dev/null +++ b/tests/baselines/reference/thisAndSuperInStaticMembers4(target=es2015).js @@ -0,0 +1,46 @@ +//// [tests/cases/conformance/classes/members/instanceAndStaticMembers/thisAndSuperInStaticMembers4.ts] //// + +//// [thisAndSuperInStaticMembers4.ts] +declare class B { + static a: any; + static f(): number; + a: number; + f(): number; +} + +class C extends B { + static x: any = undefined!; + static y1 = this.x; + static y2 = this.x(); + static y3 = this?.x(); + static y4 = this[("x")](); + static y5 = this?.[("x")](); + static z3 = super.f(); + static z4 = super["f"](); + + // these should be unaffected + x = 1; + y = this.x; + z = super.f(); +} + +//// [thisAndSuperInStaticMembers4.js] +var _a, _b; +class C extends (_b = B) { + constructor() { + super(...arguments); + // these should be unaffected + this.x = 1; + this.y = this.x; + this.z = super.f(); + } +} +_a = C; +C.x = undefined; +C.y1 = _a.x; +C.y2 = _a.x(); +C.y3 = _a === null || _a === void 0 ? void 0 : _a.x(); +C.y4 = _a[("x")](); +C.y5 = _a === null || _a === void 0 ? void 0 : _a[("x")](); +C.z3 = Reflect.get(_b, "f", _a).call(_a); +C.z4 = Reflect.get(_b, "f", _a).call(_a); diff --git a/tests/baselines/reference/thisAndSuperInStaticMembers4.js b/tests/baselines/reference/thisAndSuperInStaticMembers4(target=es5).js similarity index 100% rename from tests/baselines/reference/thisAndSuperInStaticMembers4.js rename to tests/baselines/reference/thisAndSuperInStaticMembers4(target=es5).js diff --git a/tests/baselines/reference/thisTypeInAccessors.errors.txt b/tests/baselines/reference/thisTypeInAccessors(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/thisTypeInAccessors.errors.txt rename to tests/baselines/reference/thisTypeInAccessors(target=es2015).errors.txt diff --git a/tests/baselines/reference/thisTypeInAccessors(target=es2015).js b/tests/baselines/reference/thisTypeInAccessors(target=es2015).js new file mode 100644 index 0000000000000..19c76a4c22a25 --- /dev/null +++ b/tests/baselines/reference/thisTypeInAccessors(target=es2015).js @@ -0,0 +1,74 @@ +//// [tests/cases/conformance/types/thisType/thisTypeInAccessors.ts] //// + +//// [thisTypeInAccessors.ts] +interface Foo { + n: number; + x: number; +} + +const explicit = { + n: 12, + get x(this: Foo): number { return this.n; }, + set x(this: Foo, n: number) { this.n = n; } +} +const copiedFromGetter = { + n: 14, + get x(this: Foo): number { return this.n; }, + set x(n) { this.n = n; } +} +const copiedFromSetter = { + n: 15, + get x() { return this.n }, + set x(this: Foo, n: number) { this.n = n; } +} +const copiedFromGetterUnannotated = { + n: 16, + get x(this: Foo) { return this.n }, + set x(this, n) { this.n = n; } +} + +class Explicit { + n = 17; + get x(this: Foo): number { return this.n; } + set x(this: Foo, n: number) { this.n = n; } +} +class Contextual { + n = 21; + get x() { return this.n } // inside a class, so already correct +} + + +//// [thisTypeInAccessors.js] +const explicit = { + n: 12, + get x() { return this.n; }, + set x(n) { this.n = n; } +}; +const copiedFromGetter = { + n: 14, + get x() { return this.n; }, + set x(n) { this.n = n; } +}; +const copiedFromSetter = { + n: 15, + get x() { return this.n; }, + set x(n) { this.n = n; } +}; +const copiedFromGetterUnannotated = { + n: 16, + get x() { return this.n; }, + set x(n) { this.n = n; } +}; +class Explicit { + constructor() { + this.n = 17; + } + get x() { return this.n; } + set x(n) { this.n = n; } +} +class Contextual { + constructor() { + this.n = 21; + } + get x() { return this.n; } // inside a class, so already correct +} diff --git a/tests/baselines/reference/thisTypeInAccessors.symbols b/tests/baselines/reference/thisTypeInAccessors(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/thisTypeInAccessors.symbols rename to tests/baselines/reference/thisTypeInAccessors(target=es2015).symbols diff --git a/tests/baselines/reference/thisTypeInAccessors.types b/tests/baselines/reference/thisTypeInAccessors(target=es2015).types similarity index 100% rename from tests/baselines/reference/thisTypeInAccessors.types rename to tests/baselines/reference/thisTypeInAccessors(target=es2015).types diff --git a/tests/baselines/reference/thisTypeInAccessors(target=es5).errors.txt b/tests/baselines/reference/thisTypeInAccessors(target=es5).errors.txt new file mode 100644 index 0000000000000..78fef479d3105 --- /dev/null +++ b/tests/baselines/reference/thisTypeInAccessors(target=es5).errors.txt @@ -0,0 +1,63 @@ +thisTypeInAccessors.ts(8,11): error TS2784: 'get' and 'set' accessors cannot declare 'this' parameters. +thisTypeInAccessors.ts(9,11): error TS2784: 'get' and 'set' accessors cannot declare 'this' parameters. +thisTypeInAccessors.ts(13,11): error TS2784: 'get' and 'set' accessors cannot declare 'this' parameters. +thisTypeInAccessors.ts(19,11): error TS2784: 'get' and 'set' accessors cannot declare 'this' parameters. +thisTypeInAccessors.ts(23,11): error TS2784: 'get' and 'set' accessors cannot declare 'this' parameters. +thisTypeInAccessors.ts(24,11): error TS2784: 'get' and 'set' accessors cannot declare 'this' parameters. +thisTypeInAccessors.ts(29,11): error TS2784: 'get' and 'set' accessors cannot declare 'this' parameters. +thisTypeInAccessors.ts(30,11): error TS2784: 'get' and 'set' accessors cannot declare 'this' parameters. + + +==== thisTypeInAccessors.ts (8 errors) ==== + interface Foo { + n: number; + x: number; + } + + const explicit = { + n: 12, + get x(this: Foo): number { return this.n; }, + ~~~~~~~~~ +!!! error TS2784: 'get' and 'set' accessors cannot declare 'this' parameters. + set x(this: Foo, n: number) { this.n = n; } + ~~~~~~~~~ +!!! error TS2784: 'get' and 'set' accessors cannot declare 'this' parameters. + } + const copiedFromGetter = { + n: 14, + get x(this: Foo): number { return this.n; }, + ~~~~~~~~~ +!!! error TS2784: 'get' and 'set' accessors cannot declare 'this' parameters. + set x(n) { this.n = n; } + } + const copiedFromSetter = { + n: 15, + get x() { return this.n }, + set x(this: Foo, n: number) { this.n = n; } + ~~~~~~~~~ +!!! error TS2784: 'get' and 'set' accessors cannot declare 'this' parameters. + } + const copiedFromGetterUnannotated = { + n: 16, + get x(this: Foo) { return this.n }, + ~~~~~~~~~ +!!! error TS2784: 'get' and 'set' accessors cannot declare 'this' parameters. + set x(this, n) { this.n = n; } + ~~~~ +!!! error TS2784: 'get' and 'set' accessors cannot declare 'this' parameters. + } + + class Explicit { + n = 17; + get x(this: Foo): number { return this.n; } + ~~~~~~~~~ +!!! error TS2784: 'get' and 'set' accessors cannot declare 'this' parameters. + set x(this: Foo, n: number) { this.n = n; } + ~~~~~~~~~ +!!! error TS2784: 'get' and 'set' accessors cannot declare 'this' parameters. + } + class Contextual { + n = 21; + get x() { return this.n } // inside a class, so already correct + } + \ No newline at end of file diff --git a/tests/baselines/reference/thisTypeInAccessors.js b/tests/baselines/reference/thisTypeInAccessors(target=es5).js similarity index 100% rename from tests/baselines/reference/thisTypeInAccessors.js rename to tests/baselines/reference/thisTypeInAccessors(target=es5).js diff --git a/tests/baselines/reference/thisTypeInAccessors(target=es5).symbols b/tests/baselines/reference/thisTypeInAccessors(target=es5).symbols new file mode 100644 index 0000000000000..241c774b914f0 --- /dev/null +++ b/tests/baselines/reference/thisTypeInAccessors(target=es5).symbols @@ -0,0 +1,142 @@ +//// [tests/cases/conformance/types/thisType/thisTypeInAccessors.ts] //// + +=== thisTypeInAccessors.ts === +interface Foo { +>Foo : Symbol(Foo, Decl(thisTypeInAccessors.ts, 0, 0)) + + n: number; +>n : Symbol(Foo.n, Decl(thisTypeInAccessors.ts, 0, 15)) + + x: number; +>x : Symbol(Foo.x, Decl(thisTypeInAccessors.ts, 1, 14)) +} + +const explicit = { +>explicit : Symbol(explicit, Decl(thisTypeInAccessors.ts, 5, 5)) + + n: 12, +>n : Symbol(n, Decl(thisTypeInAccessors.ts, 5, 18)) + + get x(this: Foo): number { return this.n; }, +>x : Symbol(x, Decl(thisTypeInAccessors.ts, 6, 10), Decl(thisTypeInAccessors.ts, 7, 48)) +>this : Symbol(this, Decl(thisTypeInAccessors.ts, 7, 10)) +>Foo : Symbol(Foo, Decl(thisTypeInAccessors.ts, 0, 0)) +>this.n : Symbol(Foo.n, Decl(thisTypeInAccessors.ts, 0, 15)) +>this : Symbol(this, Decl(thisTypeInAccessors.ts, 7, 10)) +>n : Symbol(Foo.n, Decl(thisTypeInAccessors.ts, 0, 15)) + + set x(this: Foo, n: number) { this.n = n; } +>x : Symbol(x, Decl(thisTypeInAccessors.ts, 6, 10), Decl(thisTypeInAccessors.ts, 7, 48)) +>this : Symbol(this, Decl(thisTypeInAccessors.ts, 8, 10)) +>Foo : Symbol(Foo, Decl(thisTypeInAccessors.ts, 0, 0)) +>n : Symbol(n, Decl(thisTypeInAccessors.ts, 8, 20)) +>this.n : Symbol(Foo.n, Decl(thisTypeInAccessors.ts, 0, 15)) +>this : Symbol(this, Decl(thisTypeInAccessors.ts, 8, 10)) +>n : Symbol(Foo.n, Decl(thisTypeInAccessors.ts, 0, 15)) +>n : Symbol(n, Decl(thisTypeInAccessors.ts, 8, 20)) +} +const copiedFromGetter = { +>copiedFromGetter : Symbol(copiedFromGetter, Decl(thisTypeInAccessors.ts, 10, 5)) + + n: 14, +>n : Symbol(n, Decl(thisTypeInAccessors.ts, 10, 26)) + + get x(this: Foo): number { return this.n; }, +>x : Symbol(x, Decl(thisTypeInAccessors.ts, 11, 10), Decl(thisTypeInAccessors.ts, 12, 48)) +>this : Symbol(this, Decl(thisTypeInAccessors.ts, 12, 10)) +>Foo : Symbol(Foo, Decl(thisTypeInAccessors.ts, 0, 0)) +>this.n : Symbol(Foo.n, Decl(thisTypeInAccessors.ts, 0, 15)) +>this : Symbol(this, Decl(thisTypeInAccessors.ts, 12, 10)) +>n : Symbol(Foo.n, Decl(thisTypeInAccessors.ts, 0, 15)) + + set x(n) { this.n = n; } +>x : Symbol(x, Decl(thisTypeInAccessors.ts, 11, 10), Decl(thisTypeInAccessors.ts, 12, 48)) +>n : Symbol(n, Decl(thisTypeInAccessors.ts, 13, 10)) +>this.n : Symbol(Foo.n, Decl(thisTypeInAccessors.ts, 0, 15)) +>this : Symbol(this, Decl(thisTypeInAccessors.ts, 12, 10)) +>n : Symbol(Foo.n, Decl(thisTypeInAccessors.ts, 0, 15)) +>n : Symbol(n, Decl(thisTypeInAccessors.ts, 13, 10)) +} +const copiedFromSetter = { +>copiedFromSetter : Symbol(copiedFromSetter, Decl(thisTypeInAccessors.ts, 15, 5)) + + n: 15, +>n : Symbol(n, Decl(thisTypeInAccessors.ts, 15, 26)) + + get x() { return this.n }, +>x : Symbol(x, Decl(thisTypeInAccessors.ts, 16, 10), Decl(thisTypeInAccessors.ts, 17, 30)) +>this.n : Symbol(Foo.n, Decl(thisTypeInAccessors.ts, 0, 15)) +>this : Symbol(this, Decl(thisTypeInAccessors.ts, 18, 10)) +>n : Symbol(Foo.n, Decl(thisTypeInAccessors.ts, 0, 15)) + + set x(this: Foo, n: number) { this.n = n; } +>x : Symbol(x, Decl(thisTypeInAccessors.ts, 16, 10), Decl(thisTypeInAccessors.ts, 17, 30)) +>this : Symbol(this, Decl(thisTypeInAccessors.ts, 18, 10)) +>Foo : Symbol(Foo, Decl(thisTypeInAccessors.ts, 0, 0)) +>n : Symbol(n, Decl(thisTypeInAccessors.ts, 18, 20)) +>this.n : Symbol(Foo.n, Decl(thisTypeInAccessors.ts, 0, 15)) +>this : Symbol(this, Decl(thisTypeInAccessors.ts, 18, 10)) +>n : Symbol(Foo.n, Decl(thisTypeInAccessors.ts, 0, 15)) +>n : Symbol(n, Decl(thisTypeInAccessors.ts, 18, 20)) +} +const copiedFromGetterUnannotated = { +>copiedFromGetterUnannotated : Symbol(copiedFromGetterUnannotated, Decl(thisTypeInAccessors.ts, 20, 5)) + + n: 16, +>n : Symbol(n, Decl(thisTypeInAccessors.ts, 20, 37)) + + get x(this: Foo) { return this.n }, +>x : Symbol(x, Decl(thisTypeInAccessors.ts, 21, 10), Decl(thisTypeInAccessors.ts, 22, 39)) +>this : Symbol(this, Decl(thisTypeInAccessors.ts, 22, 10)) +>Foo : Symbol(Foo, Decl(thisTypeInAccessors.ts, 0, 0)) +>this.n : Symbol(Foo.n, Decl(thisTypeInAccessors.ts, 0, 15)) +>this : Symbol(this, Decl(thisTypeInAccessors.ts, 22, 10)) +>n : Symbol(Foo.n, Decl(thisTypeInAccessors.ts, 0, 15)) + + set x(this, n) { this.n = n; } +>x : Symbol(x, Decl(thisTypeInAccessors.ts, 21, 10), Decl(thisTypeInAccessors.ts, 22, 39)) +>this : Symbol(this, Decl(thisTypeInAccessors.ts, 23, 10)) +>n : Symbol(n, Decl(thisTypeInAccessors.ts, 23, 15)) +>this.n : Symbol(Foo.n, Decl(thisTypeInAccessors.ts, 0, 15)) +>this : Symbol(this, Decl(thisTypeInAccessors.ts, 23, 10)) +>n : Symbol(Foo.n, Decl(thisTypeInAccessors.ts, 0, 15)) +>n : Symbol(n, Decl(thisTypeInAccessors.ts, 23, 15)) +} + +class Explicit { +>Explicit : Symbol(Explicit, Decl(thisTypeInAccessors.ts, 24, 1)) + + n = 17; +>n : Symbol(Explicit.n, Decl(thisTypeInAccessors.ts, 26, 16)) + + get x(this: Foo): number { return this.n; } +>x : Symbol(Explicit.x, Decl(thisTypeInAccessors.ts, 27, 11), Decl(thisTypeInAccessors.ts, 28, 47)) +>this : Symbol(this, Decl(thisTypeInAccessors.ts, 28, 10)) +>Foo : Symbol(Foo, Decl(thisTypeInAccessors.ts, 0, 0)) +>this.n : Symbol(Foo.n, Decl(thisTypeInAccessors.ts, 0, 15)) +>this : Symbol(this, Decl(thisTypeInAccessors.ts, 28, 10)) +>n : Symbol(Foo.n, Decl(thisTypeInAccessors.ts, 0, 15)) + + set x(this: Foo, n: number) { this.n = n; } +>x : Symbol(Explicit.x, Decl(thisTypeInAccessors.ts, 27, 11), Decl(thisTypeInAccessors.ts, 28, 47)) +>this : Symbol(this, Decl(thisTypeInAccessors.ts, 29, 10)) +>Foo : Symbol(Foo, Decl(thisTypeInAccessors.ts, 0, 0)) +>n : Symbol(n, Decl(thisTypeInAccessors.ts, 29, 20)) +>this.n : Symbol(Foo.n, Decl(thisTypeInAccessors.ts, 0, 15)) +>this : Symbol(this, Decl(thisTypeInAccessors.ts, 29, 10)) +>n : Symbol(Foo.n, Decl(thisTypeInAccessors.ts, 0, 15)) +>n : Symbol(n, Decl(thisTypeInAccessors.ts, 29, 20)) +} +class Contextual { +>Contextual : Symbol(Contextual, Decl(thisTypeInAccessors.ts, 30, 1)) + + n = 21; +>n : Symbol(Contextual.n, Decl(thisTypeInAccessors.ts, 31, 18)) + + get x() { return this.n } // inside a class, so already correct +>x : Symbol(Contextual.x, Decl(thisTypeInAccessors.ts, 32, 11)) +>this.n : Symbol(Contextual.n, Decl(thisTypeInAccessors.ts, 31, 18)) +>this : Symbol(Contextual, Decl(thisTypeInAccessors.ts, 30, 1)) +>n : Symbol(Contextual.n, Decl(thisTypeInAccessors.ts, 31, 18)) +} + diff --git a/tests/baselines/reference/thisTypeInAccessors(target=es5).types b/tests/baselines/reference/thisTypeInAccessors(target=es5).types new file mode 100644 index 0000000000000..0bf407a676836 --- /dev/null +++ b/tests/baselines/reference/thisTypeInAccessors(target=es5).types @@ -0,0 +1,239 @@ +//// [tests/cases/conformance/types/thisType/thisTypeInAccessors.ts] //// + +=== thisTypeInAccessors.ts === +interface Foo { + n: number; +>n : number +> : ^^^^^^ + + x: number; +>x : number +> : ^^^^^^ +} + +const explicit = { +>explicit : { n: number; x: number; } +> : ^^^^^^^^^^^^^^^^ ^^^ +>{ n: 12, get x(this: Foo): number { return this.n; }, set x(this: Foo, n: number) { this.n = n; }} : { n: number; x: number; } +> : ^^^^^^^^^^^^^^^^ ^^^ + + n: 12, +>n : number +> : ^^^^^^ +>12 : 12 +> : ^^ + + get x(this: Foo): number { return this.n; }, +>x : number +> : ^^^^^^ +>this : Foo +> : ^^^ +>this.n : number +> : ^^^^^^ +>this : Foo +> : ^^^ +>n : number +> : ^^^^^^ + + set x(this: Foo, n: number) { this.n = n; } +>x : number +> : ^^^^^^ +>this : Foo +> : ^^^ +>n : number +> : ^^^^^^ +>this.n = n : number +> : ^^^^^^ +>this.n : number +> : ^^^^^^ +>this : Foo +> : ^^^ +>n : number +> : ^^^^^^ +>n : number +> : ^^^^^^ +} +const copiedFromGetter = { +>copiedFromGetter : { n: number; x: number; } +> : ^^^^^^^^^^^^^^^^ ^^^ +>{ n: 14, get x(this: Foo): number { return this.n; }, set x(n) { this.n = n; }} : { n: number; x: number; } +> : ^^^^^^^^^^^^^^^^ ^^^ + + n: 14, +>n : number +> : ^^^^^^ +>14 : 14 +> : ^^ + + get x(this: Foo): number { return this.n; }, +>x : number +> : ^^^^^^ +>this : Foo +> : ^^^ +>this.n : number +> : ^^^^^^ +>this : Foo +> : ^^^ +>n : number +> : ^^^^^^ + + set x(n) { this.n = n; } +>x : number +> : ^^^^^^ +>n : number +> : ^^^^^^ +>this.n = n : number +> : ^^^^^^ +>this.n : number +> : ^^^^^^ +>this : Foo +> : ^^^ +>n : number +> : ^^^^^^ +>n : number +> : ^^^^^^ +} +const copiedFromSetter = { +>copiedFromSetter : { n: number; x: number; } +> : ^^^^^^^^^^^^^^^^ ^^^ +>{ n: 15, get x() { return this.n }, set x(this: Foo, n: number) { this.n = n; }} : { n: number; x: number; } +> : ^^^^^^^^^^^^^^^^ ^^^ + + n: 15, +>n : number +> : ^^^^^^ +>15 : 15 +> : ^^ + + get x() { return this.n }, +>x : number +> : ^^^^^^ +>this.n : number +> : ^^^^^^ +>this : Foo +> : ^^^ +>n : number +> : ^^^^^^ + + set x(this: Foo, n: number) { this.n = n; } +>x : number +> : ^^^^^^ +>this : Foo +> : ^^^ +>n : number +> : ^^^^^^ +>this.n = n : number +> : ^^^^^^ +>this.n : number +> : ^^^^^^ +>this : Foo +> : ^^^ +>n : number +> : ^^^^^^ +>n : number +> : ^^^^^^ +} +const copiedFromGetterUnannotated = { +>copiedFromGetterUnannotated : { n: number; x: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ n: 16, get x(this: Foo) { return this.n }, set x(this, n) { this.n = n; }} : { n: number; x: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ + + n: 16, +>n : number +> : ^^^^^^ +>16 : 16 +> : ^^ + + get x(this: Foo) { return this.n }, +>x : number +> : ^^^^^^ +>this : Foo +> : ^^^ +>this.n : number +> : ^^^^^^ +>this : Foo +> : ^^^ +>n : number +> : ^^^^^^ + + set x(this, n) { this.n = n; } +>x : number +> : ^^^^^^ +>this : Foo +> : ^^^ +>n : number +> : ^^^^^^ +>this.n = n : number +> : ^^^^^^ +>this.n : number +> : ^^^^^^ +>this : Foo +> : ^^^ +>n : number +> : ^^^^^^ +>n : number +> : ^^^^^^ +} + +class Explicit { +>Explicit : Explicit +> : ^^^^^^^^ + + n = 17; +>n : number +> : ^^^^^^ +>17 : 17 +> : ^^ + + get x(this: Foo): number { return this.n; } +>x : number +> : ^^^^^^ +>this : Foo +> : ^^^ +>this.n : number +> : ^^^^^^ +>this : Foo +> : ^^^ +>n : number +> : ^^^^^^ + + set x(this: Foo, n: number) { this.n = n; } +>x : number +> : ^^^^^^ +>this : Foo +> : ^^^ +>n : number +> : ^^^^^^ +>this.n = n : number +> : ^^^^^^ +>this.n : number +> : ^^^^^^ +>this : Foo +> : ^^^ +>n : number +> : ^^^^^^ +>n : number +> : ^^^^^^ +} +class Contextual { +>Contextual : Contextual +> : ^^^^^^^^^^ + + n = 21; +>n : number +> : ^^^^^^ +>21 : 21 +> : ^^ + + get x() { return this.n } // inside a class, so already correct +>x : number +> : ^^^^^^ +>this.n : number +> : ^^^^^^ +>this : this +> : ^^^^ +>n : number +> : ^^^^^^ +} + diff --git a/tests/baselines/reference/thisTypeInAccessorsNegative.errors.txt b/tests/baselines/reference/thisTypeInAccessorsNegative(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/thisTypeInAccessorsNegative.errors.txt rename to tests/baselines/reference/thisTypeInAccessorsNegative(target=es2015).errors.txt diff --git a/tests/baselines/reference/thisTypeInAccessorsNegative(target=es2015).js b/tests/baselines/reference/thisTypeInAccessorsNegative(target=es2015).js new file mode 100644 index 0000000000000..75b3751dd52c3 --- /dev/null +++ b/tests/baselines/reference/thisTypeInAccessorsNegative(target=es2015).js @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/types/thisType/thisTypeInAccessorsNegative.ts] //// + +//// [thisTypeInAccessorsNegative.ts] +interface Foo { + n: number; + x: number; +} +interface Bar { + wrong: "place" | "time" | "method" | "technique"; +} +const mismatch = { + n: 13, + get x(this: Foo) { return this.n; }, + set x(this: Bar, n) { this.wrong = "method"; } +} +const contextual: Foo = { + n: 16, + get x() { return this.n; } +} + + +//// [thisTypeInAccessorsNegative.js] +const mismatch = { + n: 13, + get x() { return this.n; }, + set x(n) { this.wrong = "method"; } +}; +const contextual = { + n: 16, + get x() { return this.n; } +}; diff --git a/tests/baselines/reference/thisTypeInAccessorsNegative.symbols b/tests/baselines/reference/thisTypeInAccessorsNegative(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/thisTypeInAccessorsNegative.symbols rename to tests/baselines/reference/thisTypeInAccessorsNegative(target=es2015).symbols diff --git a/tests/baselines/reference/thisTypeInAccessorsNegative.types b/tests/baselines/reference/thisTypeInAccessorsNegative(target=es2015).types similarity index 100% rename from tests/baselines/reference/thisTypeInAccessorsNegative.types rename to tests/baselines/reference/thisTypeInAccessorsNegative(target=es2015).types diff --git a/tests/baselines/reference/thisTypeInAccessorsNegative(target=es5).errors.txt b/tests/baselines/reference/thisTypeInAccessorsNegative(target=es5).errors.txt new file mode 100644 index 0000000000000..82d8514c5a77c --- /dev/null +++ b/tests/baselines/reference/thisTypeInAccessorsNegative(target=es5).errors.txt @@ -0,0 +1,26 @@ +thisTypeInAccessorsNegative.ts(10,11): error TS2784: 'get' and 'set' accessors cannot declare 'this' parameters. +thisTypeInAccessorsNegative.ts(11,11): error TS2784: 'get' and 'set' accessors cannot declare 'this' parameters. + + +==== thisTypeInAccessorsNegative.ts (2 errors) ==== + interface Foo { + n: number; + x: number; + } + interface Bar { + wrong: "place" | "time" | "method" | "technique"; + } + const mismatch = { + n: 13, + get x(this: Foo) { return this.n; }, + ~~~~~~~~~ +!!! error TS2784: 'get' and 'set' accessors cannot declare 'this' parameters. + set x(this: Bar, n) { this.wrong = "method"; } + ~~~~~~~~~ +!!! error TS2784: 'get' and 'set' accessors cannot declare 'this' parameters. + } + const contextual: Foo = { + n: 16, + get x() { return this.n; } + } + \ No newline at end of file diff --git a/tests/baselines/reference/thisTypeInAccessorsNegative.js b/tests/baselines/reference/thisTypeInAccessorsNegative(target=es5).js similarity index 100% rename from tests/baselines/reference/thisTypeInAccessorsNegative.js rename to tests/baselines/reference/thisTypeInAccessorsNegative(target=es5).js diff --git a/tests/baselines/reference/thisTypeInAccessorsNegative(target=es5).symbols b/tests/baselines/reference/thisTypeInAccessorsNegative(target=es5).symbols new file mode 100644 index 0000000000000..129c5ee4e911a --- /dev/null +++ b/tests/baselines/reference/thisTypeInAccessorsNegative(target=es5).symbols @@ -0,0 +1,55 @@ +//// [tests/cases/conformance/types/thisType/thisTypeInAccessorsNegative.ts] //// + +=== thisTypeInAccessorsNegative.ts === +interface Foo { +>Foo : Symbol(Foo, Decl(thisTypeInAccessorsNegative.ts, 0, 0)) + + n: number; +>n : Symbol(Foo.n, Decl(thisTypeInAccessorsNegative.ts, 0, 15)) + + x: number; +>x : Symbol(Foo.x, Decl(thisTypeInAccessorsNegative.ts, 1, 14)) +} +interface Bar { +>Bar : Symbol(Bar, Decl(thisTypeInAccessorsNegative.ts, 3, 1)) + + wrong: "place" | "time" | "method" | "technique"; +>wrong : Symbol(Bar.wrong, Decl(thisTypeInAccessorsNegative.ts, 4, 15)) +} +const mismatch = { +>mismatch : Symbol(mismatch, Decl(thisTypeInAccessorsNegative.ts, 7, 5)) + + n: 13, +>n : Symbol(n, Decl(thisTypeInAccessorsNegative.ts, 7, 18)) + + get x(this: Foo) { return this.n; }, +>x : Symbol(x, Decl(thisTypeInAccessorsNegative.ts, 8, 10), Decl(thisTypeInAccessorsNegative.ts, 9, 40)) +>this : Symbol(this, Decl(thisTypeInAccessorsNegative.ts, 9, 10)) +>Foo : Symbol(Foo, Decl(thisTypeInAccessorsNegative.ts, 0, 0)) +>this.n : Symbol(Foo.n, Decl(thisTypeInAccessorsNegative.ts, 0, 15)) +>this : Symbol(this, Decl(thisTypeInAccessorsNegative.ts, 9, 10)) +>n : Symbol(Foo.n, Decl(thisTypeInAccessorsNegative.ts, 0, 15)) + + set x(this: Bar, n) { this.wrong = "method"; } +>x : Symbol(x, Decl(thisTypeInAccessorsNegative.ts, 8, 10), Decl(thisTypeInAccessorsNegative.ts, 9, 40)) +>this : Symbol(this, Decl(thisTypeInAccessorsNegative.ts, 10, 10)) +>Bar : Symbol(Bar, Decl(thisTypeInAccessorsNegative.ts, 3, 1)) +>n : Symbol(n, Decl(thisTypeInAccessorsNegative.ts, 10, 20)) +>this.wrong : Symbol(Bar.wrong, Decl(thisTypeInAccessorsNegative.ts, 4, 15)) +>this : Symbol(this, Decl(thisTypeInAccessorsNegative.ts, 10, 10)) +>wrong : Symbol(Bar.wrong, Decl(thisTypeInAccessorsNegative.ts, 4, 15)) +} +const contextual: Foo = { +>contextual : Symbol(contextual, Decl(thisTypeInAccessorsNegative.ts, 12, 5)) +>Foo : Symbol(Foo, Decl(thisTypeInAccessorsNegative.ts, 0, 0)) + + n: 16, +>n : Symbol(n, Decl(thisTypeInAccessorsNegative.ts, 12, 25)) + + get x() { return this.n; } +>x : Symbol(x, Decl(thisTypeInAccessorsNegative.ts, 13, 10)) +>this.n : Symbol(Foo.n, Decl(thisTypeInAccessorsNegative.ts, 0, 15)) +>this : Symbol(Foo, Decl(thisTypeInAccessorsNegative.ts, 0, 0)) +>n : Symbol(Foo.n, Decl(thisTypeInAccessorsNegative.ts, 0, 15)) +} + diff --git a/tests/baselines/reference/thisTypeInAccessorsNegative(target=es5).types b/tests/baselines/reference/thisTypeInAccessorsNegative(target=es5).types new file mode 100644 index 0000000000000..43bb1b789ed59 --- /dev/null +++ b/tests/baselines/reference/thisTypeInAccessorsNegative(target=es5).types @@ -0,0 +1,82 @@ +//// [tests/cases/conformance/types/thisType/thisTypeInAccessorsNegative.ts] //// + +=== thisTypeInAccessorsNegative.ts === +interface Foo { + n: number; +>n : number +> : ^^^^^^ + + x: number; +>x : number +> : ^^^^^^ +} +interface Bar { + wrong: "place" | "time" | "method" | "technique"; +>wrong : "place" | "time" | "method" | "technique" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +} +const mismatch = { +>mismatch : { n: number; x: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ n: 13, get x(this: Foo) { return this.n; }, set x(this: Bar, n) { this.wrong = "method"; }} : { n: number; x: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ + + n: 13, +>n : number +> : ^^^^^^ +>13 : 13 +> : ^^ + + get x(this: Foo) { return this.n; }, +>x : number +> : ^^^^^^ +>this : Foo +> : ^^^ +>this.n : number +> : ^^^^^^ +>this : Foo +> : ^^^ +>n : number +> : ^^^^^^ + + set x(this: Bar, n) { this.wrong = "method"; } +>x : number +> : ^^^^^^ +>this : Bar +> : ^^^ +>n : number +> : ^^^^^^ +>this.wrong = "method" : "method" +> : ^^^^^^^^ +>this.wrong : "place" | "time" | "method" | "technique" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>this : Bar +> : ^^^ +>wrong : "place" | "time" | "method" | "technique" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>"method" : "method" +> : ^^^^^^^^ +} +const contextual: Foo = { +>contextual : Foo +> : ^^^ +>{ n: 16, get x() { return this.n; }} : { n: number; readonly x: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + n: 16, +>n : number +> : ^^^^^^ +>16 : 16 +> : ^^ + + get x() { return this.n; } +>x : number +> : ^^^^^^ +>this.n : number +> : ^^^^^^ +>this : Foo +> : ^^^ +>n : number +> : ^^^^^^ +} + diff --git a/tests/baselines/reference/thisTypeInObjectLiterals2(target=es2015).js b/tests/baselines/reference/thisTypeInObjectLiterals2(target=es2015).js new file mode 100644 index 0000000000000..cfa663611c943 --- /dev/null +++ b/tests/baselines/reference/thisTypeInObjectLiterals2(target=es2015).js @@ -0,0 +1,494 @@ +//// [tests/cases/conformance/types/thisType/thisTypeInObjectLiterals2.ts] //// + +//// [thisTypeInObjectLiterals2.ts] +// In methods of an object literal with no contextual type, 'this' has the type +// of the object literal. + +let obj1 = { + a: 1, + f() { + return this.a; + }, + b: "hello", + c: { + g() { + this.g(); + } + }, + get d() { + return this.a; + }, + get e() { + return this.b; + }, + set e(value) { + this.b = value; + } +}; + +// In methods of an object literal with a contextual type, 'this' has the +// contextual type. + +type Point = { + x: number; + y: number; + z?: number; + moveBy(dx: number, dy: number, dz?: number): void; +} + +let p1: Point = { + x: 10, + y: 20, + moveBy(dx, dy, dz) { + this.x += dx; + this.y += dy; + if (this.z && dz) { + this.z += dz; + } + } +}; + +let p2: Point | null = { + x: 10, + y: 20, + moveBy(dx, dy, dz) { + this.x += dx; + this.y += dy; + if (this.z && dz) { + this.z += dz; + } + } +}; + +let p3: Point | undefined = { + x: 10, + y: 20, + moveBy(dx, dy, dz) { + this.x += dx; + this.y += dy; + if (this.z && dz) { + this.z += dz; + } + } +}; + +let p4: Point | null | undefined = { + x: 10, + y: 20, + moveBy(dx, dy, dz) { + this.x += dx; + this.y += dy; + if (this.z && dz) { + this.z += dz; + } + } +}; + +declare function f1(p: Point): void; + +f1({ + x: 10, + y: 20, + moveBy(dx, dy, dz) { + this.x += dx; + this.y += dy; + if (this.z && dz) { + this.z += dz; + } + } +}); + +declare function f2(p: Point | null | undefined): void; + +f2({ + x: 10, + y: 20, + moveBy(dx, dy, dz) { + this.x += dx; + this.y += dy; + if (this.z && dz) { + this.z += dz; + } + } +}); + +// In methods of an object literal with a contextual type that includes some +// ThisType, 'this' is of type T. + +type ObjectDescriptor = { + data?: D; + methods?: M & ThisType; // Type of 'this' in methods is D & M +} + +declare function makeObject(desc: ObjectDescriptor): D & M; + +let x1 = makeObject({ + data: { x: 0, y: 0 }, + methods: { + moveBy(dx: number, dy: number) { + this.x += dx; // Strongly typed this + this.y += dy; // Strongly typed this + } + } +}); + +// In methods contained in an object literal with a contextual type that includes +// some ThisType, 'this' is of type T. + +type ObjectDescriptor2 = ThisType & { + data?: D; + methods?: M; +} + +declare function makeObject2(desc: ObjectDescriptor): D & M; + +let x2 = makeObject2({ + data: { x: 0, y: 0 }, + methods: { + moveBy(dx: number, dy: number) { + this.x += dx; // Strongly typed this + this.y += dy; // Strongly typed this + } + } +}); + +// Check pattern similar to Object.defineProperty and Object.defineProperties + +type PropDesc = { + value?: T; + get?(): T; + set?(value: T): void; +} + +type PropDescMap = { + [K in keyof T]: PropDesc; +} + +declare function defineProp(obj: T, name: K, desc: PropDesc & ThisType): T & Record; + +declare function defineProps(obj: T, descs: PropDescMap & ThisType): T & U; + +let p10 = defineProp(p1, "foo", { value: 42 }); +p10.foo = p10.foo + 1; + +let p11 = defineProp(p1, "bar", { + get() { + return this.x; + }, + set(value: number) { + this.x = value; + } +}); +p11.bar = p11.bar + 1; + +let p12 = defineProps(p1, { + foo: { + value: 42 + }, + bar: { + get(): number { + return this.x; + }, + set(value: number) { + this.x = value; + } + } +}); +p12.foo = p12.foo + 1; +p12.bar = p12.bar + 1; + +// Proof of concept for typing of Vue.js + +type Accessors = { [K in keyof T]: (() => T[K]) | Computed }; + +type Dictionary = { [x: string]: T } + +type Computed = { + get?(): T; + set?(value: T): void; +} + +type VueOptions = ThisType & { + data?: D | (() => D); + methods?: M; + computed?: Accessors

; +} + +declare const Vue: new (options: VueOptions) => D & M & P; + +let vue = new Vue({ + data: () => ({ x: 1, y: 2 }), + methods: { + f(x: string) { + return this.x; + } + }, + computed: { + test(): number { + return this.x; + }, + hello: { + get() { + return "hi"; + }, + set(value: string) { + } + } + } +}); + +vue; +vue.x; +vue.f("abc"); +vue.test; +vue.hello; + + +//// [thisTypeInObjectLiterals2.js] +"use strict"; +// In methods of an object literal with no contextual type, 'this' has the type +// of the object literal. +let obj1 = { + a: 1, + f() { + return this.a; + }, + b: "hello", + c: { + g() { + this.g(); + } + }, + get d() { + return this.a; + }, + get e() { + return this.b; + }, + set e(value) { + this.b = value; + } +}; +let p1 = { + x: 10, + y: 20, + moveBy(dx, dy, dz) { + this.x += dx; + this.y += dy; + if (this.z && dz) { + this.z += dz; + } + } +}; +let p2 = { + x: 10, + y: 20, + moveBy(dx, dy, dz) { + this.x += dx; + this.y += dy; + if (this.z && dz) { + this.z += dz; + } + } +}; +let p3 = { + x: 10, + y: 20, + moveBy(dx, dy, dz) { + this.x += dx; + this.y += dy; + if (this.z && dz) { + this.z += dz; + } + } +}; +let p4 = { + x: 10, + y: 20, + moveBy(dx, dy, dz) { + this.x += dx; + this.y += dy; + if (this.z && dz) { + this.z += dz; + } + } +}; +f1({ + x: 10, + y: 20, + moveBy(dx, dy, dz) { + this.x += dx; + this.y += dy; + if (this.z && dz) { + this.z += dz; + } + } +}); +f2({ + x: 10, + y: 20, + moveBy(dx, dy, dz) { + this.x += dx; + this.y += dy; + if (this.z && dz) { + this.z += dz; + } + } +}); +let x1 = makeObject({ + data: { x: 0, y: 0 }, + methods: { + moveBy(dx, dy) { + this.x += dx; // Strongly typed this + this.y += dy; // Strongly typed this + } + } +}); +let x2 = makeObject2({ + data: { x: 0, y: 0 }, + methods: { + moveBy(dx, dy) { + this.x += dx; // Strongly typed this + this.y += dy; // Strongly typed this + } + } +}); +let p10 = defineProp(p1, "foo", { value: 42 }); +p10.foo = p10.foo + 1; +let p11 = defineProp(p1, "bar", { + get() { + return this.x; + }, + set(value) { + this.x = value; + } +}); +p11.bar = p11.bar + 1; +let p12 = defineProps(p1, { + foo: { + value: 42 + }, + bar: { + get() { + return this.x; + }, + set(value) { + this.x = value; + } + } +}); +p12.foo = p12.foo + 1; +p12.bar = p12.bar + 1; +let vue = new Vue({ + data: () => ({ x: 1, y: 2 }), + methods: { + f(x) { + return this.x; + } + }, + computed: { + test() { + return this.x; + }, + hello: { + get() { + return "hi"; + }, + set(value) { + } + } + } +}); +vue; +vue.x; +vue.f("abc"); +vue.test; +vue.hello; + + +//// [thisTypeInObjectLiterals2.d.ts] +declare let obj1: { + a: number; + f(): number; + b: string; + c: { + g(): void; + }; + readonly d: number; + e: string; +}; +type Point = { + x: number; + y: number; + z?: number; + moveBy(dx: number, dy: number, dz?: number): void; +}; +declare let p1: Point; +declare let p2: Point | null; +declare let p3: Point | undefined; +declare let p4: Point | null | undefined; +declare function f1(p: Point): void; +declare function f2(p: Point | null | undefined): void; +type ObjectDescriptor = { + data?: D; + methods?: M & ThisType; +}; +declare function makeObject(desc: ObjectDescriptor): D & M; +declare let x1: { + x: number; + y: number; +} & { + moveBy(dx: number, dy: number): void; +}; +type ObjectDescriptor2 = ThisType & { + data?: D; + methods?: M; +}; +declare function makeObject2(desc: ObjectDescriptor): D & M; +declare let x2: { + x: number; + y: number; +} & { + moveBy(dx: number, dy: number): void; +}; +type PropDesc = { + value?: T; + get?(): T; + set?(value: T): void; +}; +type PropDescMap = { + [K in keyof T]: PropDesc; +}; +declare function defineProp(obj: T, name: K, desc: PropDesc & ThisType): T & Record; +declare function defineProps(obj: T, descs: PropDescMap & ThisType): T & U; +declare let p10: Point & Record<"foo", number>; +declare let p11: Point & Record<"bar", number>; +declare let p12: Point & { + foo: number; + bar: number; +}; +type Accessors = { + [K in keyof T]: (() => T[K]) | Computed; +}; +type Dictionary = { + [x: string]: T; +}; +type Computed = { + get?(): T; + set?(value: T): void; +}; +type VueOptions = ThisType & { + data?: D | (() => D); + methods?: M; + computed?: Accessors

; +}; +declare const Vue: new (options: VueOptions) => D & M & P; +declare let vue: { + x: number; + y: number; +} & { + f(x: string): number; +} & { + test: number; + hello: string; +}; diff --git a/tests/baselines/reference/thisTypeInObjectLiterals2.symbols b/tests/baselines/reference/thisTypeInObjectLiterals2(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/thisTypeInObjectLiterals2.symbols rename to tests/baselines/reference/thisTypeInObjectLiterals2(target=es2015).symbols diff --git a/tests/baselines/reference/thisTypeInObjectLiterals2.types b/tests/baselines/reference/thisTypeInObjectLiterals2(target=es2015).types similarity index 100% rename from tests/baselines/reference/thisTypeInObjectLiterals2.types rename to tests/baselines/reference/thisTypeInObjectLiterals2(target=es2015).types diff --git a/tests/baselines/reference/thisTypeInObjectLiterals2.js b/tests/baselines/reference/thisTypeInObjectLiterals2(target=es5).js similarity index 100% rename from tests/baselines/reference/thisTypeInObjectLiterals2.js rename to tests/baselines/reference/thisTypeInObjectLiterals2(target=es5).js diff --git a/tests/baselines/reference/thisTypeInObjectLiterals2(target=es5).symbols b/tests/baselines/reference/thisTypeInObjectLiterals2(target=es5).symbols new file mode 100644 index 0000000000000..b373f4fa07bad --- /dev/null +++ b/tests/baselines/reference/thisTypeInObjectLiterals2(target=es5).symbols @@ -0,0 +1,783 @@ +//// [tests/cases/conformance/types/thisType/thisTypeInObjectLiterals2.ts] //// + +=== thisTypeInObjectLiterals2.ts === +// In methods of an object literal with no contextual type, 'this' has the type +// of the object literal. + +let obj1 = { +>obj1 : Symbol(obj1, Decl(thisTypeInObjectLiterals2.ts, 3, 3)) + + a: 1, +>a : Symbol(a, Decl(thisTypeInObjectLiterals2.ts, 3, 12)) + + f() { +>f : Symbol(f, Decl(thisTypeInObjectLiterals2.ts, 4, 9)) + + return this.a; +>this.a : Symbol(a, Decl(thisTypeInObjectLiterals2.ts, 3, 12)) +>this : Symbol(obj1, Decl(thisTypeInObjectLiterals2.ts, 3, 10)) +>a : Symbol(a, Decl(thisTypeInObjectLiterals2.ts, 3, 12)) + + }, + b: "hello", +>b : Symbol(b, Decl(thisTypeInObjectLiterals2.ts, 7, 6)) + + c: { +>c : Symbol(c, Decl(thisTypeInObjectLiterals2.ts, 8, 15)) + + g() { +>g : Symbol(g, Decl(thisTypeInObjectLiterals2.ts, 9, 8)) + + this.g(); +>this.g : Symbol(g, Decl(thisTypeInObjectLiterals2.ts, 9, 8)) +>this : Symbol(__object, Decl(thisTypeInObjectLiterals2.ts, 9, 6)) +>g : Symbol(g, Decl(thisTypeInObjectLiterals2.ts, 9, 8)) + } + }, + get d() { +>d : Symbol(d, Decl(thisTypeInObjectLiterals2.ts, 13, 6)) + + return this.a; +>this.a : Symbol(a, Decl(thisTypeInObjectLiterals2.ts, 3, 12)) +>this : Symbol(obj1, Decl(thisTypeInObjectLiterals2.ts, 3, 10)) +>a : Symbol(a, Decl(thisTypeInObjectLiterals2.ts, 3, 12)) + + }, + get e() { +>e : Symbol(e, Decl(thisTypeInObjectLiterals2.ts, 16, 6), Decl(thisTypeInObjectLiterals2.ts, 19, 6)) + + return this.b; +>this.b : Symbol(b, Decl(thisTypeInObjectLiterals2.ts, 7, 6)) +>this : Symbol(obj1, Decl(thisTypeInObjectLiterals2.ts, 3, 10)) +>b : Symbol(b, Decl(thisTypeInObjectLiterals2.ts, 7, 6)) + + }, + set e(value) { +>e : Symbol(e, Decl(thisTypeInObjectLiterals2.ts, 16, 6), Decl(thisTypeInObjectLiterals2.ts, 19, 6)) +>value : Symbol(value, Decl(thisTypeInObjectLiterals2.ts, 20, 10)) + + this.b = value; +>this.b : Symbol(b, Decl(thisTypeInObjectLiterals2.ts, 7, 6)) +>this : Symbol(obj1, Decl(thisTypeInObjectLiterals2.ts, 3, 10)) +>b : Symbol(b, Decl(thisTypeInObjectLiterals2.ts, 7, 6)) +>value : Symbol(value, Decl(thisTypeInObjectLiterals2.ts, 20, 10)) + } +}; + +// In methods of an object literal with a contextual type, 'this' has the +// contextual type. + +type Point = { +>Point : Symbol(Point, Decl(thisTypeInObjectLiterals2.ts, 23, 2)) + + x: number; +>x : Symbol(x, Decl(thisTypeInObjectLiterals2.ts, 28, 14)) + + y: number; +>y : Symbol(y, Decl(thisTypeInObjectLiterals2.ts, 29, 14)) + + z?: number; +>z : Symbol(z, Decl(thisTypeInObjectLiterals2.ts, 30, 14)) + + moveBy(dx: number, dy: number, dz?: number): void; +>moveBy : Symbol(moveBy, Decl(thisTypeInObjectLiterals2.ts, 31, 15)) +>dx : Symbol(dx, Decl(thisTypeInObjectLiterals2.ts, 32, 11)) +>dy : Symbol(dy, Decl(thisTypeInObjectLiterals2.ts, 32, 22)) +>dz : Symbol(dz, Decl(thisTypeInObjectLiterals2.ts, 32, 34)) +} + +let p1: Point = { +>p1 : Symbol(p1, Decl(thisTypeInObjectLiterals2.ts, 35, 3)) +>Point : Symbol(Point, Decl(thisTypeInObjectLiterals2.ts, 23, 2)) + + x: 10, +>x : Symbol(x, Decl(thisTypeInObjectLiterals2.ts, 35, 17)) + + y: 20, +>y : Symbol(y, Decl(thisTypeInObjectLiterals2.ts, 36, 10)) + + moveBy(dx, dy, dz) { +>moveBy : Symbol(moveBy, Decl(thisTypeInObjectLiterals2.ts, 37, 10)) +>dx : Symbol(dx, Decl(thisTypeInObjectLiterals2.ts, 38, 11)) +>dy : Symbol(dy, Decl(thisTypeInObjectLiterals2.ts, 38, 14)) +>dz : Symbol(dz, Decl(thisTypeInObjectLiterals2.ts, 38, 18)) + + this.x += dx; +>this.x : Symbol(x, Decl(thisTypeInObjectLiterals2.ts, 28, 14)) +>this : Symbol(__type, Decl(thisTypeInObjectLiterals2.ts, 28, 12)) +>x : Symbol(x, Decl(thisTypeInObjectLiterals2.ts, 28, 14)) +>dx : Symbol(dx, Decl(thisTypeInObjectLiterals2.ts, 38, 11)) + + this.y += dy; +>this.y : Symbol(y, Decl(thisTypeInObjectLiterals2.ts, 29, 14)) +>this : Symbol(__type, Decl(thisTypeInObjectLiterals2.ts, 28, 12)) +>y : Symbol(y, Decl(thisTypeInObjectLiterals2.ts, 29, 14)) +>dy : Symbol(dy, Decl(thisTypeInObjectLiterals2.ts, 38, 14)) + + if (this.z && dz) { +>this.z : Symbol(z, Decl(thisTypeInObjectLiterals2.ts, 30, 14)) +>this : Symbol(__type, Decl(thisTypeInObjectLiterals2.ts, 28, 12)) +>z : Symbol(z, Decl(thisTypeInObjectLiterals2.ts, 30, 14)) +>dz : Symbol(dz, Decl(thisTypeInObjectLiterals2.ts, 38, 18)) + + this.z += dz; +>this.z : Symbol(z, Decl(thisTypeInObjectLiterals2.ts, 30, 14)) +>this : Symbol(__type, Decl(thisTypeInObjectLiterals2.ts, 28, 12)) +>z : Symbol(z, Decl(thisTypeInObjectLiterals2.ts, 30, 14)) +>dz : Symbol(dz, Decl(thisTypeInObjectLiterals2.ts, 38, 18)) + } + } +}; + +let p2: Point | null = { +>p2 : Symbol(p2, Decl(thisTypeInObjectLiterals2.ts, 47, 3)) +>Point : Symbol(Point, Decl(thisTypeInObjectLiterals2.ts, 23, 2)) + + x: 10, +>x : Symbol(x, Decl(thisTypeInObjectLiterals2.ts, 47, 24)) + + y: 20, +>y : Symbol(y, Decl(thisTypeInObjectLiterals2.ts, 48, 10)) + + moveBy(dx, dy, dz) { +>moveBy : Symbol(moveBy, Decl(thisTypeInObjectLiterals2.ts, 49, 10)) +>dx : Symbol(dx, Decl(thisTypeInObjectLiterals2.ts, 50, 11)) +>dy : Symbol(dy, Decl(thisTypeInObjectLiterals2.ts, 50, 14)) +>dz : Symbol(dz, Decl(thisTypeInObjectLiterals2.ts, 50, 18)) + + this.x += dx; +>this.x : Symbol(x, Decl(thisTypeInObjectLiterals2.ts, 28, 14)) +>this : Symbol(__type, Decl(thisTypeInObjectLiterals2.ts, 28, 12)) +>x : Symbol(x, Decl(thisTypeInObjectLiterals2.ts, 28, 14)) +>dx : Symbol(dx, Decl(thisTypeInObjectLiterals2.ts, 50, 11)) + + this.y += dy; +>this.y : Symbol(y, Decl(thisTypeInObjectLiterals2.ts, 29, 14)) +>this : Symbol(__type, Decl(thisTypeInObjectLiterals2.ts, 28, 12)) +>y : Symbol(y, Decl(thisTypeInObjectLiterals2.ts, 29, 14)) +>dy : Symbol(dy, Decl(thisTypeInObjectLiterals2.ts, 50, 14)) + + if (this.z && dz) { +>this.z : Symbol(z, Decl(thisTypeInObjectLiterals2.ts, 30, 14)) +>this : Symbol(__type, Decl(thisTypeInObjectLiterals2.ts, 28, 12)) +>z : Symbol(z, Decl(thisTypeInObjectLiterals2.ts, 30, 14)) +>dz : Symbol(dz, Decl(thisTypeInObjectLiterals2.ts, 50, 18)) + + this.z += dz; +>this.z : Symbol(z, Decl(thisTypeInObjectLiterals2.ts, 30, 14)) +>this : Symbol(__type, Decl(thisTypeInObjectLiterals2.ts, 28, 12)) +>z : Symbol(z, Decl(thisTypeInObjectLiterals2.ts, 30, 14)) +>dz : Symbol(dz, Decl(thisTypeInObjectLiterals2.ts, 50, 18)) + } + } +}; + +let p3: Point | undefined = { +>p3 : Symbol(p3, Decl(thisTypeInObjectLiterals2.ts, 59, 3)) +>Point : Symbol(Point, Decl(thisTypeInObjectLiterals2.ts, 23, 2)) + + x: 10, +>x : Symbol(x, Decl(thisTypeInObjectLiterals2.ts, 59, 29)) + + y: 20, +>y : Symbol(y, Decl(thisTypeInObjectLiterals2.ts, 60, 10)) + + moveBy(dx, dy, dz) { +>moveBy : Symbol(moveBy, Decl(thisTypeInObjectLiterals2.ts, 61, 10)) +>dx : Symbol(dx, Decl(thisTypeInObjectLiterals2.ts, 62, 11)) +>dy : Symbol(dy, Decl(thisTypeInObjectLiterals2.ts, 62, 14)) +>dz : Symbol(dz, Decl(thisTypeInObjectLiterals2.ts, 62, 18)) + + this.x += dx; +>this.x : Symbol(x, Decl(thisTypeInObjectLiterals2.ts, 28, 14)) +>this : Symbol(__type, Decl(thisTypeInObjectLiterals2.ts, 28, 12)) +>x : Symbol(x, Decl(thisTypeInObjectLiterals2.ts, 28, 14)) +>dx : Symbol(dx, Decl(thisTypeInObjectLiterals2.ts, 62, 11)) + + this.y += dy; +>this.y : Symbol(y, Decl(thisTypeInObjectLiterals2.ts, 29, 14)) +>this : Symbol(__type, Decl(thisTypeInObjectLiterals2.ts, 28, 12)) +>y : Symbol(y, Decl(thisTypeInObjectLiterals2.ts, 29, 14)) +>dy : Symbol(dy, Decl(thisTypeInObjectLiterals2.ts, 62, 14)) + + if (this.z && dz) { +>this.z : Symbol(z, Decl(thisTypeInObjectLiterals2.ts, 30, 14)) +>this : Symbol(__type, Decl(thisTypeInObjectLiterals2.ts, 28, 12)) +>z : Symbol(z, Decl(thisTypeInObjectLiterals2.ts, 30, 14)) +>dz : Symbol(dz, Decl(thisTypeInObjectLiterals2.ts, 62, 18)) + + this.z += dz; +>this.z : Symbol(z, Decl(thisTypeInObjectLiterals2.ts, 30, 14)) +>this : Symbol(__type, Decl(thisTypeInObjectLiterals2.ts, 28, 12)) +>z : Symbol(z, Decl(thisTypeInObjectLiterals2.ts, 30, 14)) +>dz : Symbol(dz, Decl(thisTypeInObjectLiterals2.ts, 62, 18)) + } + } +}; + +let p4: Point | null | undefined = { +>p4 : Symbol(p4, Decl(thisTypeInObjectLiterals2.ts, 71, 3)) +>Point : Symbol(Point, Decl(thisTypeInObjectLiterals2.ts, 23, 2)) + + x: 10, +>x : Symbol(x, Decl(thisTypeInObjectLiterals2.ts, 71, 36)) + + y: 20, +>y : Symbol(y, Decl(thisTypeInObjectLiterals2.ts, 72, 10)) + + moveBy(dx, dy, dz) { +>moveBy : Symbol(moveBy, Decl(thisTypeInObjectLiterals2.ts, 73, 10)) +>dx : Symbol(dx, Decl(thisTypeInObjectLiterals2.ts, 74, 11)) +>dy : Symbol(dy, Decl(thisTypeInObjectLiterals2.ts, 74, 14)) +>dz : Symbol(dz, Decl(thisTypeInObjectLiterals2.ts, 74, 18)) + + this.x += dx; +>this.x : Symbol(x, Decl(thisTypeInObjectLiterals2.ts, 28, 14)) +>this : Symbol(__type, Decl(thisTypeInObjectLiterals2.ts, 28, 12)) +>x : Symbol(x, Decl(thisTypeInObjectLiterals2.ts, 28, 14)) +>dx : Symbol(dx, Decl(thisTypeInObjectLiterals2.ts, 74, 11)) + + this.y += dy; +>this.y : Symbol(y, Decl(thisTypeInObjectLiterals2.ts, 29, 14)) +>this : Symbol(__type, Decl(thisTypeInObjectLiterals2.ts, 28, 12)) +>y : Symbol(y, Decl(thisTypeInObjectLiterals2.ts, 29, 14)) +>dy : Symbol(dy, Decl(thisTypeInObjectLiterals2.ts, 74, 14)) + + if (this.z && dz) { +>this.z : Symbol(z, Decl(thisTypeInObjectLiterals2.ts, 30, 14)) +>this : Symbol(__type, Decl(thisTypeInObjectLiterals2.ts, 28, 12)) +>z : Symbol(z, Decl(thisTypeInObjectLiterals2.ts, 30, 14)) +>dz : Symbol(dz, Decl(thisTypeInObjectLiterals2.ts, 74, 18)) + + this.z += dz; +>this.z : Symbol(z, Decl(thisTypeInObjectLiterals2.ts, 30, 14)) +>this : Symbol(__type, Decl(thisTypeInObjectLiterals2.ts, 28, 12)) +>z : Symbol(z, Decl(thisTypeInObjectLiterals2.ts, 30, 14)) +>dz : Symbol(dz, Decl(thisTypeInObjectLiterals2.ts, 74, 18)) + } + } +}; + +declare function f1(p: Point): void; +>f1 : Symbol(f1, Decl(thisTypeInObjectLiterals2.ts, 81, 2)) +>p : Symbol(p, Decl(thisTypeInObjectLiterals2.ts, 83, 20)) +>Point : Symbol(Point, Decl(thisTypeInObjectLiterals2.ts, 23, 2)) + +f1({ +>f1 : Symbol(f1, Decl(thisTypeInObjectLiterals2.ts, 81, 2)) + + x: 10, +>x : Symbol(x, Decl(thisTypeInObjectLiterals2.ts, 85, 4)) + + y: 20, +>y : Symbol(y, Decl(thisTypeInObjectLiterals2.ts, 86, 10)) + + moveBy(dx, dy, dz) { +>moveBy : Symbol(moveBy, Decl(thisTypeInObjectLiterals2.ts, 87, 10)) +>dx : Symbol(dx, Decl(thisTypeInObjectLiterals2.ts, 88, 11)) +>dy : Symbol(dy, Decl(thisTypeInObjectLiterals2.ts, 88, 14)) +>dz : Symbol(dz, Decl(thisTypeInObjectLiterals2.ts, 88, 18)) + + this.x += dx; +>this.x : Symbol(x, Decl(thisTypeInObjectLiterals2.ts, 28, 14)) +>this : Symbol(__type, Decl(thisTypeInObjectLiterals2.ts, 28, 12)) +>x : Symbol(x, Decl(thisTypeInObjectLiterals2.ts, 28, 14)) +>dx : Symbol(dx, Decl(thisTypeInObjectLiterals2.ts, 88, 11)) + + this.y += dy; +>this.y : Symbol(y, Decl(thisTypeInObjectLiterals2.ts, 29, 14)) +>this : Symbol(__type, Decl(thisTypeInObjectLiterals2.ts, 28, 12)) +>y : Symbol(y, Decl(thisTypeInObjectLiterals2.ts, 29, 14)) +>dy : Symbol(dy, Decl(thisTypeInObjectLiterals2.ts, 88, 14)) + + if (this.z && dz) { +>this.z : Symbol(z, Decl(thisTypeInObjectLiterals2.ts, 30, 14)) +>this : Symbol(__type, Decl(thisTypeInObjectLiterals2.ts, 28, 12)) +>z : Symbol(z, Decl(thisTypeInObjectLiterals2.ts, 30, 14)) +>dz : Symbol(dz, Decl(thisTypeInObjectLiterals2.ts, 88, 18)) + + this.z += dz; +>this.z : Symbol(z, Decl(thisTypeInObjectLiterals2.ts, 30, 14)) +>this : Symbol(__type, Decl(thisTypeInObjectLiterals2.ts, 28, 12)) +>z : Symbol(z, Decl(thisTypeInObjectLiterals2.ts, 30, 14)) +>dz : Symbol(dz, Decl(thisTypeInObjectLiterals2.ts, 88, 18)) + } + } +}); + +declare function f2(p: Point | null | undefined): void; +>f2 : Symbol(f2, Decl(thisTypeInObjectLiterals2.ts, 95, 3)) +>p : Symbol(p, Decl(thisTypeInObjectLiterals2.ts, 97, 20)) +>Point : Symbol(Point, Decl(thisTypeInObjectLiterals2.ts, 23, 2)) + +f2({ +>f2 : Symbol(f2, Decl(thisTypeInObjectLiterals2.ts, 95, 3)) + + x: 10, +>x : Symbol(x, Decl(thisTypeInObjectLiterals2.ts, 99, 4)) + + y: 20, +>y : Symbol(y, Decl(thisTypeInObjectLiterals2.ts, 100, 10)) + + moveBy(dx, dy, dz) { +>moveBy : Symbol(moveBy, Decl(thisTypeInObjectLiterals2.ts, 101, 10)) +>dx : Symbol(dx, Decl(thisTypeInObjectLiterals2.ts, 102, 11)) +>dy : Symbol(dy, Decl(thisTypeInObjectLiterals2.ts, 102, 14)) +>dz : Symbol(dz, Decl(thisTypeInObjectLiterals2.ts, 102, 18)) + + this.x += dx; +>this.x : Symbol(x, Decl(thisTypeInObjectLiterals2.ts, 28, 14)) +>this : Symbol(__type, Decl(thisTypeInObjectLiterals2.ts, 28, 12)) +>x : Symbol(x, Decl(thisTypeInObjectLiterals2.ts, 28, 14)) +>dx : Symbol(dx, Decl(thisTypeInObjectLiterals2.ts, 102, 11)) + + this.y += dy; +>this.y : Symbol(y, Decl(thisTypeInObjectLiterals2.ts, 29, 14)) +>this : Symbol(__type, Decl(thisTypeInObjectLiterals2.ts, 28, 12)) +>y : Symbol(y, Decl(thisTypeInObjectLiterals2.ts, 29, 14)) +>dy : Symbol(dy, Decl(thisTypeInObjectLiterals2.ts, 102, 14)) + + if (this.z && dz) { +>this.z : Symbol(z, Decl(thisTypeInObjectLiterals2.ts, 30, 14)) +>this : Symbol(__type, Decl(thisTypeInObjectLiterals2.ts, 28, 12)) +>z : Symbol(z, Decl(thisTypeInObjectLiterals2.ts, 30, 14)) +>dz : Symbol(dz, Decl(thisTypeInObjectLiterals2.ts, 102, 18)) + + this.z += dz; +>this.z : Symbol(z, Decl(thisTypeInObjectLiterals2.ts, 30, 14)) +>this : Symbol(__type, Decl(thisTypeInObjectLiterals2.ts, 28, 12)) +>z : Symbol(z, Decl(thisTypeInObjectLiterals2.ts, 30, 14)) +>dz : Symbol(dz, Decl(thisTypeInObjectLiterals2.ts, 102, 18)) + } + } +}); + +// In methods of an object literal with a contextual type that includes some +// ThisType, 'this' is of type T. + +type ObjectDescriptor = { +>ObjectDescriptor : Symbol(ObjectDescriptor, Decl(thisTypeInObjectLiterals2.ts, 109, 3)) +>D : Symbol(D, Decl(thisTypeInObjectLiterals2.ts, 114, 22)) +>M : Symbol(M, Decl(thisTypeInObjectLiterals2.ts, 114, 24)) + + data?: D; +>data : Symbol(data, Decl(thisTypeInObjectLiterals2.ts, 114, 31)) +>D : Symbol(D, Decl(thisTypeInObjectLiterals2.ts, 114, 22)) + + methods?: M & ThisType; // Type of 'this' in methods is D & M +>methods : Symbol(methods, Decl(thisTypeInObjectLiterals2.ts, 115, 13)) +>M : Symbol(M, Decl(thisTypeInObjectLiterals2.ts, 114, 24)) +>ThisType : Symbol(ThisType, Decl(lib.es5.d.ts, --, --)) +>D : Symbol(D, Decl(thisTypeInObjectLiterals2.ts, 114, 22)) +>M : Symbol(M, Decl(thisTypeInObjectLiterals2.ts, 114, 24)) +} + +declare function makeObject(desc: ObjectDescriptor): D & M; +>makeObject : Symbol(makeObject, Decl(thisTypeInObjectLiterals2.ts, 117, 1)) +>D : Symbol(D, Decl(thisTypeInObjectLiterals2.ts, 119, 28)) +>M : Symbol(M, Decl(thisTypeInObjectLiterals2.ts, 119, 30)) +>desc : Symbol(desc, Decl(thisTypeInObjectLiterals2.ts, 119, 34)) +>ObjectDescriptor : Symbol(ObjectDescriptor, Decl(thisTypeInObjectLiterals2.ts, 109, 3)) +>D : Symbol(D, Decl(thisTypeInObjectLiterals2.ts, 119, 28)) +>M : Symbol(M, Decl(thisTypeInObjectLiterals2.ts, 119, 30)) +>D : Symbol(D, Decl(thisTypeInObjectLiterals2.ts, 119, 28)) +>M : Symbol(M, Decl(thisTypeInObjectLiterals2.ts, 119, 30)) + +let x1 = makeObject({ +>x1 : Symbol(x1, Decl(thisTypeInObjectLiterals2.ts, 121, 3)) +>makeObject : Symbol(makeObject, Decl(thisTypeInObjectLiterals2.ts, 117, 1)) + + data: { x: 0, y: 0 }, +>data : Symbol(data, Decl(thisTypeInObjectLiterals2.ts, 121, 21)) +>x : Symbol(x, Decl(thisTypeInObjectLiterals2.ts, 122, 11)) +>y : Symbol(y, Decl(thisTypeInObjectLiterals2.ts, 122, 17)) + + methods: { +>methods : Symbol(methods, Decl(thisTypeInObjectLiterals2.ts, 122, 25)) + + moveBy(dx: number, dy: number) { +>moveBy : Symbol(moveBy, Decl(thisTypeInObjectLiterals2.ts, 123, 14)) +>dx : Symbol(dx, Decl(thisTypeInObjectLiterals2.ts, 124, 15)) +>dy : Symbol(dy, Decl(thisTypeInObjectLiterals2.ts, 124, 26)) + + this.x += dx; // Strongly typed this +>this.x : Symbol(x, Decl(thisTypeInObjectLiterals2.ts, 122, 11)) +>x : Symbol(x, Decl(thisTypeInObjectLiterals2.ts, 122, 11)) +>dx : Symbol(dx, Decl(thisTypeInObjectLiterals2.ts, 124, 15)) + + this.y += dy; // Strongly typed this +>this.y : Symbol(y, Decl(thisTypeInObjectLiterals2.ts, 122, 17)) +>y : Symbol(y, Decl(thisTypeInObjectLiterals2.ts, 122, 17)) +>dy : Symbol(dy, Decl(thisTypeInObjectLiterals2.ts, 124, 26)) + } + } +}); + +// In methods contained in an object literal with a contextual type that includes +// some ThisType, 'this' is of type T. + +type ObjectDescriptor2 = ThisType & { +>ObjectDescriptor2 : Symbol(ObjectDescriptor2, Decl(thisTypeInObjectLiterals2.ts, 129, 3)) +>D : Symbol(D, Decl(thisTypeInObjectLiterals2.ts, 134, 23)) +>M : Symbol(M, Decl(thisTypeInObjectLiterals2.ts, 134, 25)) +>ThisType : Symbol(ThisType, Decl(lib.es5.d.ts, --, --)) +>D : Symbol(D, Decl(thisTypeInObjectLiterals2.ts, 134, 23)) +>M : Symbol(M, Decl(thisTypeInObjectLiterals2.ts, 134, 25)) + + data?: D; +>data : Symbol(data, Decl(thisTypeInObjectLiterals2.ts, 134, 50)) +>D : Symbol(D, Decl(thisTypeInObjectLiterals2.ts, 134, 23)) + + methods?: M; +>methods : Symbol(methods, Decl(thisTypeInObjectLiterals2.ts, 135, 13)) +>M : Symbol(M, Decl(thisTypeInObjectLiterals2.ts, 134, 25)) +} + +declare function makeObject2(desc: ObjectDescriptor): D & M; +>makeObject2 : Symbol(makeObject2, Decl(thisTypeInObjectLiterals2.ts, 137, 1)) +>D : Symbol(D, Decl(thisTypeInObjectLiterals2.ts, 139, 29)) +>M : Symbol(M, Decl(thisTypeInObjectLiterals2.ts, 139, 31)) +>desc : Symbol(desc, Decl(thisTypeInObjectLiterals2.ts, 139, 35)) +>ObjectDescriptor : Symbol(ObjectDescriptor, Decl(thisTypeInObjectLiterals2.ts, 109, 3)) +>D : Symbol(D, Decl(thisTypeInObjectLiterals2.ts, 139, 29)) +>M : Symbol(M, Decl(thisTypeInObjectLiterals2.ts, 139, 31)) +>D : Symbol(D, Decl(thisTypeInObjectLiterals2.ts, 139, 29)) +>M : Symbol(M, Decl(thisTypeInObjectLiterals2.ts, 139, 31)) + +let x2 = makeObject2({ +>x2 : Symbol(x2, Decl(thisTypeInObjectLiterals2.ts, 141, 3)) +>makeObject2 : Symbol(makeObject2, Decl(thisTypeInObjectLiterals2.ts, 137, 1)) + + data: { x: 0, y: 0 }, +>data : Symbol(data, Decl(thisTypeInObjectLiterals2.ts, 141, 22)) +>x : Symbol(x, Decl(thisTypeInObjectLiterals2.ts, 142, 11)) +>y : Symbol(y, Decl(thisTypeInObjectLiterals2.ts, 142, 17)) + + methods: { +>methods : Symbol(methods, Decl(thisTypeInObjectLiterals2.ts, 142, 25)) + + moveBy(dx: number, dy: number) { +>moveBy : Symbol(moveBy, Decl(thisTypeInObjectLiterals2.ts, 143, 14)) +>dx : Symbol(dx, Decl(thisTypeInObjectLiterals2.ts, 144, 15)) +>dy : Symbol(dy, Decl(thisTypeInObjectLiterals2.ts, 144, 26)) + + this.x += dx; // Strongly typed this +>this.x : Symbol(x, Decl(thisTypeInObjectLiterals2.ts, 142, 11)) +>x : Symbol(x, Decl(thisTypeInObjectLiterals2.ts, 142, 11)) +>dx : Symbol(dx, Decl(thisTypeInObjectLiterals2.ts, 144, 15)) + + this.y += dy; // Strongly typed this +>this.y : Symbol(y, Decl(thisTypeInObjectLiterals2.ts, 142, 17)) +>y : Symbol(y, Decl(thisTypeInObjectLiterals2.ts, 142, 17)) +>dy : Symbol(dy, Decl(thisTypeInObjectLiterals2.ts, 144, 26)) + } + } +}); + +// Check pattern similar to Object.defineProperty and Object.defineProperties + +type PropDesc = { +>PropDesc : Symbol(PropDesc, Decl(thisTypeInObjectLiterals2.ts, 149, 3)) +>T : Symbol(T, Decl(thisTypeInObjectLiterals2.ts, 153, 14)) + + value?: T; +>value : Symbol(value, Decl(thisTypeInObjectLiterals2.ts, 153, 20)) +>T : Symbol(T, Decl(thisTypeInObjectLiterals2.ts, 153, 14)) + + get?(): T; +>get : Symbol(get, Decl(thisTypeInObjectLiterals2.ts, 154, 14)) +>T : Symbol(T, Decl(thisTypeInObjectLiterals2.ts, 153, 14)) + + set?(value: T): void; +>set : Symbol(set, Decl(thisTypeInObjectLiterals2.ts, 155, 14)) +>value : Symbol(value, Decl(thisTypeInObjectLiterals2.ts, 156, 9)) +>T : Symbol(T, Decl(thisTypeInObjectLiterals2.ts, 153, 14)) +} + +type PropDescMap = { +>PropDescMap : Symbol(PropDescMap, Decl(thisTypeInObjectLiterals2.ts, 157, 1)) +>T : Symbol(T, Decl(thisTypeInObjectLiterals2.ts, 159, 17)) + + [K in keyof T]: PropDesc; +>K : Symbol(K, Decl(thisTypeInObjectLiterals2.ts, 160, 5)) +>T : Symbol(T, Decl(thisTypeInObjectLiterals2.ts, 159, 17)) +>PropDesc : Symbol(PropDesc, Decl(thisTypeInObjectLiterals2.ts, 149, 3)) +>T : Symbol(T, Decl(thisTypeInObjectLiterals2.ts, 159, 17)) +>K : Symbol(K, Decl(thisTypeInObjectLiterals2.ts, 160, 5)) +} + +declare function defineProp(obj: T, name: K, desc: PropDesc & ThisType): T & Record; +>defineProp : Symbol(defineProp, Decl(thisTypeInObjectLiterals2.ts, 161, 1)) +>T : Symbol(T, Decl(thisTypeInObjectLiterals2.ts, 163, 28)) +>K : Symbol(K, Decl(thisTypeInObjectLiterals2.ts, 163, 30)) +>U : Symbol(U, Decl(thisTypeInObjectLiterals2.ts, 163, 48)) +>obj : Symbol(obj, Decl(thisTypeInObjectLiterals2.ts, 163, 52)) +>T : Symbol(T, Decl(thisTypeInObjectLiterals2.ts, 163, 28)) +>name : Symbol(name, Decl(thisTypeInObjectLiterals2.ts, 163, 59)) +>K : Symbol(K, Decl(thisTypeInObjectLiterals2.ts, 163, 30)) +>desc : Symbol(desc, Decl(thisTypeInObjectLiterals2.ts, 163, 68)) +>PropDesc : Symbol(PropDesc, Decl(thisTypeInObjectLiterals2.ts, 149, 3)) +>U : Symbol(U, Decl(thisTypeInObjectLiterals2.ts, 163, 48)) +>ThisType : Symbol(ThisType, Decl(lib.es5.d.ts, --, --)) +>T : Symbol(T, Decl(thisTypeInObjectLiterals2.ts, 163, 28)) +>T : Symbol(T, Decl(thisTypeInObjectLiterals2.ts, 163, 28)) +>Record : Symbol(Record, Decl(lib.es5.d.ts, --, --)) +>K : Symbol(K, Decl(thisTypeInObjectLiterals2.ts, 163, 30)) +>U : Symbol(U, Decl(thisTypeInObjectLiterals2.ts, 163, 48)) + +declare function defineProps(obj: T, descs: PropDescMap & ThisType): T & U; +>defineProps : Symbol(defineProps, Decl(thisTypeInObjectLiterals2.ts, 163, 120)) +>T : Symbol(T, Decl(thisTypeInObjectLiterals2.ts, 165, 29)) +>U : Symbol(U, Decl(thisTypeInObjectLiterals2.ts, 165, 31)) +>obj : Symbol(obj, Decl(thisTypeInObjectLiterals2.ts, 165, 35)) +>T : Symbol(T, Decl(thisTypeInObjectLiterals2.ts, 165, 29)) +>descs : Symbol(descs, Decl(thisTypeInObjectLiterals2.ts, 165, 42)) +>PropDescMap : Symbol(PropDescMap, Decl(thisTypeInObjectLiterals2.ts, 157, 1)) +>U : Symbol(U, Decl(thisTypeInObjectLiterals2.ts, 165, 31)) +>ThisType : Symbol(ThisType, Decl(lib.es5.d.ts, --, --)) +>T : Symbol(T, Decl(thisTypeInObjectLiterals2.ts, 165, 29)) +>T : Symbol(T, Decl(thisTypeInObjectLiterals2.ts, 165, 29)) +>U : Symbol(U, Decl(thisTypeInObjectLiterals2.ts, 165, 31)) + +let p10 = defineProp(p1, "foo", { value: 42 }); +>p10 : Symbol(p10, Decl(thisTypeInObjectLiterals2.ts, 167, 3)) +>defineProp : Symbol(defineProp, Decl(thisTypeInObjectLiterals2.ts, 161, 1)) +>p1 : Symbol(p1, Decl(thisTypeInObjectLiterals2.ts, 35, 3)) +>value : Symbol(value, Decl(thisTypeInObjectLiterals2.ts, 167, 33)) + +p10.foo = p10.foo + 1; +>p10.foo : Symbol(foo) +>p10 : Symbol(p10, Decl(thisTypeInObjectLiterals2.ts, 167, 3)) +>foo : Symbol(foo) +>p10.foo : Symbol(foo) +>p10 : Symbol(p10, Decl(thisTypeInObjectLiterals2.ts, 167, 3)) +>foo : Symbol(foo) + +let p11 = defineProp(p1, "bar", { +>p11 : Symbol(p11, Decl(thisTypeInObjectLiterals2.ts, 170, 3)) +>defineProp : Symbol(defineProp, Decl(thisTypeInObjectLiterals2.ts, 161, 1)) +>p1 : Symbol(p1, Decl(thisTypeInObjectLiterals2.ts, 35, 3)) + + get() { +>get : Symbol(get, Decl(thisTypeInObjectLiterals2.ts, 170, 33)) + + return this.x; +>this.x : Symbol(x, Decl(thisTypeInObjectLiterals2.ts, 28, 14)) +>this : Symbol(__type, Decl(thisTypeInObjectLiterals2.ts, 28, 12)) +>x : Symbol(x, Decl(thisTypeInObjectLiterals2.ts, 28, 14)) + + }, + set(value: number) { +>set : Symbol(set, Decl(thisTypeInObjectLiterals2.ts, 173, 6)) +>value : Symbol(value, Decl(thisTypeInObjectLiterals2.ts, 174, 8)) + + this.x = value; +>this.x : Symbol(x, Decl(thisTypeInObjectLiterals2.ts, 28, 14)) +>this : Symbol(__type, Decl(thisTypeInObjectLiterals2.ts, 28, 12)) +>x : Symbol(x, Decl(thisTypeInObjectLiterals2.ts, 28, 14)) +>value : Symbol(value, Decl(thisTypeInObjectLiterals2.ts, 174, 8)) + } +}); +p11.bar = p11.bar + 1; +>p11.bar : Symbol(bar) +>p11 : Symbol(p11, Decl(thisTypeInObjectLiterals2.ts, 170, 3)) +>bar : Symbol(bar) +>p11.bar : Symbol(bar) +>p11 : Symbol(p11, Decl(thisTypeInObjectLiterals2.ts, 170, 3)) +>bar : Symbol(bar) + +let p12 = defineProps(p1, { +>p12 : Symbol(p12, Decl(thisTypeInObjectLiterals2.ts, 180, 3)) +>defineProps : Symbol(defineProps, Decl(thisTypeInObjectLiterals2.ts, 163, 120)) +>p1 : Symbol(p1, Decl(thisTypeInObjectLiterals2.ts, 35, 3)) + + foo: { +>foo : Symbol(foo, Decl(thisTypeInObjectLiterals2.ts, 180, 27)) + + value: 42 +>value : Symbol(value, Decl(thisTypeInObjectLiterals2.ts, 181, 10)) + + }, + bar: { +>bar : Symbol(bar, Decl(thisTypeInObjectLiterals2.ts, 183, 6)) + + get(): number { +>get : Symbol(get, Decl(thisTypeInObjectLiterals2.ts, 184, 10)) + + return this.x; +>this.x : Symbol(x, Decl(thisTypeInObjectLiterals2.ts, 28, 14)) +>this : Symbol(__type, Decl(thisTypeInObjectLiterals2.ts, 28, 12)) +>x : Symbol(x, Decl(thisTypeInObjectLiterals2.ts, 28, 14)) + + }, + set(value: number) { +>set : Symbol(set, Decl(thisTypeInObjectLiterals2.ts, 187, 10)) +>value : Symbol(value, Decl(thisTypeInObjectLiterals2.ts, 188, 12)) + + this.x = value; +>this.x : Symbol(x, Decl(thisTypeInObjectLiterals2.ts, 28, 14)) +>this : Symbol(__type, Decl(thisTypeInObjectLiterals2.ts, 28, 12)) +>x : Symbol(x, Decl(thisTypeInObjectLiterals2.ts, 28, 14)) +>value : Symbol(value, Decl(thisTypeInObjectLiterals2.ts, 188, 12)) + } + } +}); +p12.foo = p12.foo + 1; +>p12.foo : Symbol(foo, Decl(thisTypeInObjectLiterals2.ts, 180, 27)) +>p12 : Symbol(p12, Decl(thisTypeInObjectLiterals2.ts, 180, 3)) +>foo : Symbol(foo, Decl(thisTypeInObjectLiterals2.ts, 180, 27)) +>p12.foo : Symbol(foo, Decl(thisTypeInObjectLiterals2.ts, 180, 27)) +>p12 : Symbol(p12, Decl(thisTypeInObjectLiterals2.ts, 180, 3)) +>foo : Symbol(foo, Decl(thisTypeInObjectLiterals2.ts, 180, 27)) + +p12.bar = p12.bar + 1; +>p12.bar : Symbol(bar, Decl(thisTypeInObjectLiterals2.ts, 183, 6)) +>p12 : Symbol(p12, Decl(thisTypeInObjectLiterals2.ts, 180, 3)) +>bar : Symbol(bar, Decl(thisTypeInObjectLiterals2.ts, 183, 6)) +>p12.bar : Symbol(bar, Decl(thisTypeInObjectLiterals2.ts, 183, 6)) +>p12 : Symbol(p12, Decl(thisTypeInObjectLiterals2.ts, 180, 3)) +>bar : Symbol(bar, Decl(thisTypeInObjectLiterals2.ts, 183, 6)) + +// Proof of concept for typing of Vue.js + +type Accessors = { [K in keyof T]: (() => T[K]) | Computed }; +>Accessors : Symbol(Accessors, Decl(thisTypeInObjectLiterals2.ts, 194, 22)) +>T : Symbol(T, Decl(thisTypeInObjectLiterals2.ts, 198, 15)) +>K : Symbol(K, Decl(thisTypeInObjectLiterals2.ts, 198, 23)) +>T : Symbol(T, Decl(thisTypeInObjectLiterals2.ts, 198, 15)) +>T : Symbol(T, Decl(thisTypeInObjectLiterals2.ts, 198, 15)) +>K : Symbol(K, Decl(thisTypeInObjectLiterals2.ts, 198, 23)) +>Computed : Symbol(Computed, Decl(thisTypeInObjectLiterals2.ts, 200, 39)) +>T : Symbol(T, Decl(thisTypeInObjectLiterals2.ts, 198, 15)) +>K : Symbol(K, Decl(thisTypeInObjectLiterals2.ts, 198, 23)) + +type Dictionary = { [x: string]: T } +>Dictionary : Symbol(Dictionary, Decl(thisTypeInObjectLiterals2.ts, 198, 70)) +>T : Symbol(T, Decl(thisTypeInObjectLiterals2.ts, 200, 16)) +>x : Symbol(x, Decl(thisTypeInObjectLiterals2.ts, 200, 24)) +>T : Symbol(T, Decl(thisTypeInObjectLiterals2.ts, 200, 16)) + +type Computed = { +>Computed : Symbol(Computed, Decl(thisTypeInObjectLiterals2.ts, 200, 39)) +>T : Symbol(T, Decl(thisTypeInObjectLiterals2.ts, 202, 14)) + + get?(): T; +>get : Symbol(get, Decl(thisTypeInObjectLiterals2.ts, 202, 20)) +>T : Symbol(T, Decl(thisTypeInObjectLiterals2.ts, 202, 14)) + + set?(value: T): void; +>set : Symbol(set, Decl(thisTypeInObjectLiterals2.ts, 203, 14)) +>value : Symbol(value, Decl(thisTypeInObjectLiterals2.ts, 204, 9)) +>T : Symbol(T, Decl(thisTypeInObjectLiterals2.ts, 202, 14)) +} + +type VueOptions = ThisType & { +>VueOptions : Symbol(VueOptions, Decl(thisTypeInObjectLiterals2.ts, 205, 1)) +>D : Symbol(D, Decl(thisTypeInObjectLiterals2.ts, 207, 16)) +>M : Symbol(M, Decl(thisTypeInObjectLiterals2.ts, 207, 18)) +>P : Symbol(P, Decl(thisTypeInObjectLiterals2.ts, 207, 21)) +>ThisType : Symbol(ThisType, Decl(lib.es5.d.ts, --, --)) +>D : Symbol(D, Decl(thisTypeInObjectLiterals2.ts, 207, 16)) +>M : Symbol(M, Decl(thisTypeInObjectLiterals2.ts, 207, 18)) +>P : Symbol(P, Decl(thisTypeInObjectLiterals2.ts, 207, 21)) + + data?: D | (() => D); +>data : Symbol(data, Decl(thisTypeInObjectLiterals2.ts, 207, 50)) +>D : Symbol(D, Decl(thisTypeInObjectLiterals2.ts, 207, 16)) +>D : Symbol(D, Decl(thisTypeInObjectLiterals2.ts, 207, 16)) + + methods?: M; +>methods : Symbol(methods, Decl(thisTypeInObjectLiterals2.ts, 208, 25)) +>M : Symbol(M, Decl(thisTypeInObjectLiterals2.ts, 207, 18)) + + computed?: Accessors

; +>computed : Symbol(computed, Decl(thisTypeInObjectLiterals2.ts, 209, 16)) +>Accessors : Symbol(Accessors, Decl(thisTypeInObjectLiterals2.ts, 194, 22)) +>P : Symbol(P, Decl(thisTypeInObjectLiterals2.ts, 207, 21)) +} + +declare const Vue: new (options: VueOptions) => D & M & P; +>Vue : Symbol(Vue, Decl(thisTypeInObjectLiterals2.ts, 213, 13)) +>D : Symbol(D, Decl(thisTypeInObjectLiterals2.ts, 213, 24)) +>M : Symbol(M, Decl(thisTypeInObjectLiterals2.ts, 213, 26)) +>P : Symbol(P, Decl(thisTypeInObjectLiterals2.ts, 213, 29)) +>options : Symbol(options, Decl(thisTypeInObjectLiterals2.ts, 213, 33)) +>VueOptions : Symbol(VueOptions, Decl(thisTypeInObjectLiterals2.ts, 205, 1)) +>D : Symbol(D, Decl(thisTypeInObjectLiterals2.ts, 213, 24)) +>M : Symbol(M, Decl(thisTypeInObjectLiterals2.ts, 213, 26)) +>P : Symbol(P, Decl(thisTypeInObjectLiterals2.ts, 213, 29)) +>D : Symbol(D, Decl(thisTypeInObjectLiterals2.ts, 213, 24)) +>M : Symbol(M, Decl(thisTypeInObjectLiterals2.ts, 213, 26)) +>P : Symbol(P, Decl(thisTypeInObjectLiterals2.ts, 213, 29)) + +let vue = new Vue({ +>vue : Symbol(vue, Decl(thisTypeInObjectLiterals2.ts, 215, 3)) +>Vue : Symbol(Vue, Decl(thisTypeInObjectLiterals2.ts, 213, 13)) + + data: () => ({ x: 1, y: 2 }), +>data : Symbol(data, Decl(thisTypeInObjectLiterals2.ts, 215, 19)) +>x : Symbol(x, Decl(thisTypeInObjectLiterals2.ts, 216, 18)) +>y : Symbol(y, Decl(thisTypeInObjectLiterals2.ts, 216, 24)) + + methods: { +>methods : Symbol(methods, Decl(thisTypeInObjectLiterals2.ts, 216, 33)) + + f(x: string) { +>f : Symbol(f, Decl(thisTypeInObjectLiterals2.ts, 217, 14)) +>x : Symbol(x, Decl(thisTypeInObjectLiterals2.ts, 218, 10)) + + return this.x; +>this.x : Symbol(x, Decl(thisTypeInObjectLiterals2.ts, 216, 18)) +>x : Symbol(x, Decl(thisTypeInObjectLiterals2.ts, 216, 18)) + } + }, + computed: { +>computed : Symbol(computed, Decl(thisTypeInObjectLiterals2.ts, 221, 6)) + + test(): number { +>test : Symbol(test, Decl(thisTypeInObjectLiterals2.ts, 222, 15)) + + return this.x; +>this.x : Symbol(x, Decl(thisTypeInObjectLiterals2.ts, 216, 18)) +>x : Symbol(x, Decl(thisTypeInObjectLiterals2.ts, 216, 18)) + + }, + hello: { +>hello : Symbol(hello, Decl(thisTypeInObjectLiterals2.ts, 225, 10)) + + get() { +>get : Symbol(get, Decl(thisTypeInObjectLiterals2.ts, 226, 16)) + + return "hi"; + }, + set(value: string) { +>set : Symbol(set, Decl(thisTypeInObjectLiterals2.ts, 229, 14)) +>value : Symbol(value, Decl(thisTypeInObjectLiterals2.ts, 230, 16)) + } + } + } +}); + +vue; +>vue : Symbol(vue, Decl(thisTypeInObjectLiterals2.ts, 215, 3)) + +vue.x; +>vue.x : Symbol(x, Decl(thisTypeInObjectLiterals2.ts, 216, 18)) +>vue : Symbol(vue, Decl(thisTypeInObjectLiterals2.ts, 215, 3)) +>x : Symbol(x, Decl(thisTypeInObjectLiterals2.ts, 216, 18)) + +vue.f("abc"); +>vue.f : Symbol(f, Decl(thisTypeInObjectLiterals2.ts, 217, 14)) +>vue : Symbol(vue, Decl(thisTypeInObjectLiterals2.ts, 215, 3)) +>f : Symbol(f, Decl(thisTypeInObjectLiterals2.ts, 217, 14)) + +vue.test; +>vue.test : Symbol(test, Decl(thisTypeInObjectLiterals2.ts, 222, 15)) +>vue : Symbol(vue, Decl(thisTypeInObjectLiterals2.ts, 215, 3)) +>test : Symbol(test, Decl(thisTypeInObjectLiterals2.ts, 222, 15)) + +vue.hello; +>vue.hello : Symbol(hello, Decl(thisTypeInObjectLiterals2.ts, 225, 10)) +>vue : Symbol(vue, Decl(thisTypeInObjectLiterals2.ts, 215, 3)) +>hello : Symbol(hello, Decl(thisTypeInObjectLiterals2.ts, 225, 10)) + diff --git a/tests/baselines/reference/thisTypeInObjectLiterals2(target=es5).types b/tests/baselines/reference/thisTypeInObjectLiterals2(target=es5).types new file mode 100644 index 0000000000000..05cb646d4eea8 --- /dev/null +++ b/tests/baselines/reference/thisTypeInObjectLiterals2(target=es5).types @@ -0,0 +1,1235 @@ +//// [tests/cases/conformance/types/thisType/thisTypeInObjectLiterals2.ts] //// + +=== thisTypeInObjectLiterals2.ts === +// In methods of an object literal with no contextual type, 'this' has the type +// of the object literal. + +let obj1 = { +>obj1 : { a: number; f(): number; b: string; c: { g(): void; }; readonly d: number; e: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ a: 1, f() { return this.a; }, b: "hello", c: { g() { this.g(); } }, get d() { return this.a; }, get e() { return this.b; }, set e(value) { this.b = value; }} : { a: number; f(): number; b: string; c: { g(): void; }; readonly d: number; e: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + a: 1, +>a : number +> : ^^^^^^ +>1 : 1 +> : ^ + + f() { +>f : () => number +> : ^^^^^^^^^^^^ + + return this.a; +>this.a : number +> : ^^^^^^ +>this : { a: number; f(): number; b: string; c: { g(): void; }; readonly d: number; e: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>a : number +> : ^^^^^^ + + }, + b: "hello", +>b : string +> : ^^^^^^ +>"hello" : "hello" +> : ^^^^^^^ + + c: { +>c : { g(): void; } +> : ^^^^^^^^^^^^^^ +>{ g() { this.g(); } } : { g(): void; } +> : ^^^^^^^^^^^^^^ + + g() { +>g : () => void +> : ^^^^^^^^^^ + + this.g(); +>this.g() : void +> : ^^^^ +>this.g : () => void +> : ^^^^^^^^^^ +>this : { g(): void; } +> : ^^^^^^^^^^^^^^ +>g : () => void +> : ^^^^^^^^^^ + } + }, + get d() { +>d : number +> : ^^^^^^ + + return this.a; +>this.a : number +> : ^^^^^^ +>this : { a: number; f(): number; b: string; c: { g(): void; }; readonly d: number; e: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>a : number +> : ^^^^^^ + + }, + get e() { +>e : string +> : ^^^^^^ + + return this.b; +>this.b : string +> : ^^^^^^ +>this : { a: number; f(): number; b: string; c: { g(): void; }; readonly d: number; e: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>b : string +> : ^^^^^^ + + }, + set e(value) { +>e : string +> : ^^^^^^ +>value : string +> : ^^^^^^ + + this.b = value; +>this.b = value : string +> : ^^^^^^ +>this.b : string +> : ^^^^^^ +>this : { a: number; f(): number; b: string; c: { g(): void; }; readonly d: number; e: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>b : string +> : ^^^^^^ +>value : string +> : ^^^^^^ + } +}; + +// In methods of an object literal with a contextual type, 'this' has the +// contextual type. + +type Point = { +>Point : Point +> : ^^^^^ + + x: number; +>x : number +> : ^^^^^^ + + y: number; +>y : number +> : ^^^^^^ + + z?: number; +>z : number | undefined +> : ^^^^^^^^^^^^^^^^^^ + + moveBy(dx: number, dy: number, dz?: number): void; +>moveBy : (dx: number, dy: number, dz?: number) => void +> : ^ ^^ ^^ ^^ ^^ ^^^ ^^^^^ +>dx : number +> : ^^^^^^ +>dy : number +> : ^^^^^^ +>dz : number | undefined +> : ^^^^^^^^^^^^^^^^^^ +} + +let p1: Point = { +>p1 : Point +> : ^^^^^ +>{ x: 10, y: 20, moveBy(dx, dy, dz) { this.x += dx; this.y += dy; if (this.z && dz) { this.z += dz; } }} : { x: number; y: number; moveBy(dx: number, dy: number, dz: number | undefined): void; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + x: 10, +>x : number +> : ^^^^^^ +>10 : 10 +> : ^^ + + y: 20, +>y : number +> : ^^^^^^ +>20 : 20 +> : ^^ + + moveBy(dx, dy, dz) { +>moveBy : (dx: number, dy: number, dz: number | undefined) => void +> : ^ ^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>dx : number +> : ^^^^^^ +>dy : number +> : ^^^^^^ +>dz : number | undefined +> : ^^^^^^^^^^^^^^^^^^ + + this.x += dx; +>this.x += dx : number +> : ^^^^^^ +>this.x : number +> : ^^^^^^ +>this : Point +> : ^^^^^ +>x : number +> : ^^^^^^ +>dx : number +> : ^^^^^^ + + this.y += dy; +>this.y += dy : number +> : ^^^^^^ +>this.y : number +> : ^^^^^^ +>this : Point +> : ^^^^^ +>y : number +> : ^^^^^^ +>dy : number +> : ^^^^^^ + + if (this.z && dz) { +>this.z && dz : number | undefined +> : ^^^^^^^^^^^^^^^^^^ +>this.z : number | undefined +> : ^^^^^^^^^^^^^^^^^^ +>this : Point +> : ^^^^^ +>z : number | undefined +> : ^^^^^^^^^^^^^^^^^^ +>dz : number | undefined +> : ^^^^^^^^^^^^^^^^^^ + + this.z += dz; +>this.z += dz : number +> : ^^^^^^ +>this.z : number +> : ^^^^^^ +>this : Point +> : ^^^^^ +>z : number +> : ^^^^^^ +>dz : number +> : ^^^^^^ + } + } +}; + +let p2: Point | null = { +>p2 : Point | null +> : ^^^^^^^^^^^^ +>{ x: 10, y: 20, moveBy(dx, dy, dz) { this.x += dx; this.y += dy; if (this.z && dz) { this.z += dz; } }} : { x: number; y: number; moveBy(dx: number, dy: number, dz: number | undefined): void; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + x: 10, +>x : number +> : ^^^^^^ +>10 : 10 +> : ^^ + + y: 20, +>y : number +> : ^^^^^^ +>20 : 20 +> : ^^ + + moveBy(dx, dy, dz) { +>moveBy : (dx: number, dy: number, dz: number | undefined) => void +> : ^ ^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>dx : number +> : ^^^^^^ +>dy : number +> : ^^^^^^ +>dz : number | undefined +> : ^^^^^^^^^^^^^^^^^^ + + this.x += dx; +>this.x += dx : number +> : ^^^^^^ +>this.x : number +> : ^^^^^^ +>this : Point +> : ^^^^^ +>x : number +> : ^^^^^^ +>dx : number +> : ^^^^^^ + + this.y += dy; +>this.y += dy : number +> : ^^^^^^ +>this.y : number +> : ^^^^^^ +>this : Point +> : ^^^^^ +>y : number +> : ^^^^^^ +>dy : number +> : ^^^^^^ + + if (this.z && dz) { +>this.z && dz : number | undefined +> : ^^^^^^^^^^^^^^^^^^ +>this.z : number | undefined +> : ^^^^^^^^^^^^^^^^^^ +>this : Point +> : ^^^^^ +>z : number | undefined +> : ^^^^^^^^^^^^^^^^^^ +>dz : number | undefined +> : ^^^^^^^^^^^^^^^^^^ + + this.z += dz; +>this.z += dz : number +> : ^^^^^^ +>this.z : number +> : ^^^^^^ +>this : Point +> : ^^^^^ +>z : number +> : ^^^^^^ +>dz : number +> : ^^^^^^ + } + } +}; + +let p3: Point | undefined = { +>p3 : Point | undefined +> : ^^^^^^^^^^^^^^^^^ +>{ x: 10, y: 20, moveBy(dx, dy, dz) { this.x += dx; this.y += dy; if (this.z && dz) { this.z += dz; } }} : { x: number; y: number; moveBy(dx: number, dy: number, dz: number | undefined): void; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + x: 10, +>x : number +> : ^^^^^^ +>10 : 10 +> : ^^ + + y: 20, +>y : number +> : ^^^^^^ +>20 : 20 +> : ^^ + + moveBy(dx, dy, dz) { +>moveBy : (dx: number, dy: number, dz: number | undefined) => void +> : ^ ^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>dx : number +> : ^^^^^^ +>dy : number +> : ^^^^^^ +>dz : number | undefined +> : ^^^^^^^^^^^^^^^^^^ + + this.x += dx; +>this.x += dx : number +> : ^^^^^^ +>this.x : number +> : ^^^^^^ +>this : Point +> : ^^^^^ +>x : number +> : ^^^^^^ +>dx : number +> : ^^^^^^ + + this.y += dy; +>this.y += dy : number +> : ^^^^^^ +>this.y : number +> : ^^^^^^ +>this : Point +> : ^^^^^ +>y : number +> : ^^^^^^ +>dy : number +> : ^^^^^^ + + if (this.z && dz) { +>this.z && dz : number | undefined +> : ^^^^^^^^^^^^^^^^^^ +>this.z : number | undefined +> : ^^^^^^^^^^^^^^^^^^ +>this : Point +> : ^^^^^ +>z : number | undefined +> : ^^^^^^^^^^^^^^^^^^ +>dz : number | undefined +> : ^^^^^^^^^^^^^^^^^^ + + this.z += dz; +>this.z += dz : number +> : ^^^^^^ +>this.z : number +> : ^^^^^^ +>this : Point +> : ^^^^^ +>z : number +> : ^^^^^^ +>dz : number +> : ^^^^^^ + } + } +}; + +let p4: Point | null | undefined = { +>p4 : Point | null | undefined +> : ^^^^^^^^^^^^^^^^^^^^^^^^ +>{ x: 10, y: 20, moveBy(dx, dy, dz) { this.x += dx; this.y += dy; if (this.z && dz) { this.z += dz; } }} : { x: number; y: number; moveBy(dx: number, dy: number, dz: number | undefined): void; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + x: 10, +>x : number +> : ^^^^^^ +>10 : 10 +> : ^^ + + y: 20, +>y : number +> : ^^^^^^ +>20 : 20 +> : ^^ + + moveBy(dx, dy, dz) { +>moveBy : (dx: number, dy: number, dz: number | undefined) => void +> : ^ ^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>dx : number +> : ^^^^^^ +>dy : number +> : ^^^^^^ +>dz : number | undefined +> : ^^^^^^^^^^^^^^^^^^ + + this.x += dx; +>this.x += dx : number +> : ^^^^^^ +>this.x : number +> : ^^^^^^ +>this : Point +> : ^^^^^ +>x : number +> : ^^^^^^ +>dx : number +> : ^^^^^^ + + this.y += dy; +>this.y += dy : number +> : ^^^^^^ +>this.y : number +> : ^^^^^^ +>this : Point +> : ^^^^^ +>y : number +> : ^^^^^^ +>dy : number +> : ^^^^^^ + + if (this.z && dz) { +>this.z && dz : number | undefined +> : ^^^^^^^^^^^^^^^^^^ +>this.z : number | undefined +> : ^^^^^^^^^^^^^^^^^^ +>this : Point +> : ^^^^^ +>z : number | undefined +> : ^^^^^^^^^^^^^^^^^^ +>dz : number | undefined +> : ^^^^^^^^^^^^^^^^^^ + + this.z += dz; +>this.z += dz : number +> : ^^^^^^ +>this.z : number +> : ^^^^^^ +>this : Point +> : ^^^^^ +>z : number +> : ^^^^^^ +>dz : number +> : ^^^^^^ + } + } +}; + +declare function f1(p: Point): void; +>f1 : (p: Point) => void +> : ^ ^^ ^^^^^ +>p : Point +> : ^^^^^ + +f1({ +>f1({ x: 10, y: 20, moveBy(dx, dy, dz) { this.x += dx; this.y += dy; if (this.z && dz) { this.z += dz; } }}) : void +> : ^^^^ +>f1 : (p: Point) => void +> : ^ ^^ ^^^^^ +>{ x: 10, y: 20, moveBy(dx, dy, dz) { this.x += dx; this.y += dy; if (this.z && dz) { this.z += dz; } }} : { x: number; y: number; moveBy(dx: number, dy: number, dz: number | undefined): void; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + x: 10, +>x : number +> : ^^^^^^ +>10 : 10 +> : ^^ + + y: 20, +>y : number +> : ^^^^^^ +>20 : 20 +> : ^^ + + moveBy(dx, dy, dz) { +>moveBy : (dx: number, dy: number, dz: number | undefined) => void +> : ^ ^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>dx : number +> : ^^^^^^ +>dy : number +> : ^^^^^^ +>dz : number | undefined +> : ^^^^^^^^^^^^^^^^^^ + + this.x += dx; +>this.x += dx : number +> : ^^^^^^ +>this.x : number +> : ^^^^^^ +>this : Point +> : ^^^^^ +>x : number +> : ^^^^^^ +>dx : number +> : ^^^^^^ + + this.y += dy; +>this.y += dy : number +> : ^^^^^^ +>this.y : number +> : ^^^^^^ +>this : Point +> : ^^^^^ +>y : number +> : ^^^^^^ +>dy : number +> : ^^^^^^ + + if (this.z && dz) { +>this.z && dz : number | undefined +> : ^^^^^^^^^^^^^^^^^^ +>this.z : number | undefined +> : ^^^^^^^^^^^^^^^^^^ +>this : Point +> : ^^^^^ +>z : number | undefined +> : ^^^^^^^^^^^^^^^^^^ +>dz : number | undefined +> : ^^^^^^^^^^^^^^^^^^ + + this.z += dz; +>this.z += dz : number +> : ^^^^^^ +>this.z : number +> : ^^^^^^ +>this : Point +> : ^^^^^ +>z : number +> : ^^^^^^ +>dz : number +> : ^^^^^^ + } + } +}); + +declare function f2(p: Point | null | undefined): void; +>f2 : (p: Point | null | undefined) => void +> : ^ ^^ ^^^^^ +>p : Point | null | undefined +> : ^^^^^^^^^^^^^^^^^^^^^^^^ + +f2({ +>f2({ x: 10, y: 20, moveBy(dx, dy, dz) { this.x += dx; this.y += dy; if (this.z && dz) { this.z += dz; } }}) : void +> : ^^^^ +>f2 : (p: Point | null | undefined) => void +> : ^ ^^ ^^^^^ +>{ x: 10, y: 20, moveBy(dx, dy, dz) { this.x += dx; this.y += dy; if (this.z && dz) { this.z += dz; } }} : { x: number; y: number; moveBy(dx: number, dy: number, dz: number | undefined): void; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + x: 10, +>x : number +> : ^^^^^^ +>10 : 10 +> : ^^ + + y: 20, +>y : number +> : ^^^^^^ +>20 : 20 +> : ^^ + + moveBy(dx, dy, dz) { +>moveBy : (dx: number, dy: number, dz: number | undefined) => void +> : ^ ^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>dx : number +> : ^^^^^^ +>dy : number +> : ^^^^^^ +>dz : number | undefined +> : ^^^^^^^^^^^^^^^^^^ + + this.x += dx; +>this.x += dx : number +> : ^^^^^^ +>this.x : number +> : ^^^^^^ +>this : Point +> : ^^^^^ +>x : number +> : ^^^^^^ +>dx : number +> : ^^^^^^ + + this.y += dy; +>this.y += dy : number +> : ^^^^^^ +>this.y : number +> : ^^^^^^ +>this : Point +> : ^^^^^ +>y : number +> : ^^^^^^ +>dy : number +> : ^^^^^^ + + if (this.z && dz) { +>this.z && dz : number | undefined +> : ^^^^^^^^^^^^^^^^^^ +>this.z : number | undefined +> : ^^^^^^^^^^^^^^^^^^ +>this : Point +> : ^^^^^ +>z : number | undefined +> : ^^^^^^^^^^^^^^^^^^ +>dz : number | undefined +> : ^^^^^^^^^^^^^^^^^^ + + this.z += dz; +>this.z += dz : number +> : ^^^^^^ +>this.z : number +> : ^^^^^^ +>this : Point +> : ^^^^^ +>z : number +> : ^^^^^^ +>dz : number +> : ^^^^^^ + } + } +}); + +// In methods of an object literal with a contextual type that includes some +// ThisType, 'this' is of type T. + +type ObjectDescriptor = { +>ObjectDescriptor : ObjectDescriptor +> : ^^^^^^^^^^^^^^^^^^^^^^ + + data?: D; +>data : D | undefined +> : ^^^^^^^^^^^^^ + + methods?: M & ThisType; // Type of 'this' in methods is D & M +>methods : (M & ThisType) | undefined +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +} + +declare function makeObject(desc: ObjectDescriptor): D & M; +>makeObject : (desc: ObjectDescriptor) => D & M +> : ^ ^^ ^^ ^^ ^^^^^ +>desc : ObjectDescriptor +> : ^^^^^^^^^^^^^^^^^^^^^^ + +let x1 = makeObject({ +>x1 : { x: number; y: number; } & { moveBy(dx: number, dy: number): void; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^ ^^ ^^ ^^^^^^^^^^ +>makeObject({ data: { x: 0, y: 0 }, methods: { moveBy(dx: number, dy: number) { this.x += dx; // Strongly typed this this.y += dy; // Strongly typed this } }}) : { x: number; y: number; } & { moveBy(dx: number, dy: number): void; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^ ^^ ^^ ^^^^^^^^^^ +>makeObject : (desc: ObjectDescriptor) => D & M +> : ^ ^^ ^^ ^^ ^^^^^ +>{ data: { x: 0, y: 0 }, methods: { moveBy(dx: number, dy: number) { this.x += dx; // Strongly typed this this.y += dy; // Strongly typed this } }} : { data: { x: number; y: number; }; methods: { moveBy(dx: number, dy: number): void; }; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^ ^^ ^^ ^^^^^^^^^^^^^ + + data: { x: 0, y: 0 }, +>data : { x: number; y: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ x: 0, y: 0 } : { x: number; y: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>x : number +> : ^^^^^^ +>0 : 0 +> : ^ +>y : number +> : ^^^^^^ +>0 : 0 +> : ^ + + methods: { +>methods : { moveBy(dx: number, dy: number): void; } +> : ^^^^^^^^^ ^^ ^^ ^^ ^^^^^^^^^^ +>{ moveBy(dx: number, dy: number) { this.x += dx; // Strongly typed this this.y += dy; // Strongly typed this } } : { moveBy(dx: number, dy: number): void; } +> : ^^^^^^^^^ ^^ ^^ ^^ ^^^^^^^^^^ + + moveBy(dx: number, dy: number) { +>moveBy : (dx: number, dy: number) => void +> : ^ ^^ ^^ ^^ ^^^^^^^^^ +>dx : number +> : ^^^^^^ +>dy : number +> : ^^^^^^ + + this.x += dx; // Strongly typed this +>this.x += dx : number +> : ^^^^^^ +>this.x : number +> : ^^^^^^ +>this : { x: number; y: number; } & { moveBy(dx: number, dy: number): void; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^ ^^ ^^ ^^^^^^^^^^ +>x : number +> : ^^^^^^ +>dx : number +> : ^^^^^^ + + this.y += dy; // Strongly typed this +>this.y += dy : number +> : ^^^^^^ +>this.y : number +> : ^^^^^^ +>this : { x: number; y: number; } & { moveBy(dx: number, dy: number): void; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^ ^^ ^^ ^^^^^^^^^^ +>y : number +> : ^^^^^^ +>dy : number +> : ^^^^^^ + } + } +}); + +// In methods contained in an object literal with a contextual type that includes +// some ThisType, 'this' is of type T. + +type ObjectDescriptor2 = ThisType & { +>ObjectDescriptor2 : ObjectDescriptor2 +> : ^^^^^^^^^^^^^^^^^^^^^^^ + + data?: D; +>data : D | undefined +> : ^^^^^^^^^^^^^ + + methods?: M; +>methods : M | undefined +> : ^^^^^^^^^^^^^ +} + +declare function makeObject2(desc: ObjectDescriptor): D & M; +>makeObject2 : (desc: ObjectDescriptor) => D & M +> : ^ ^^ ^^ ^^ ^^^^^ +>desc : ObjectDescriptor +> : ^^^^^^^^^^^^^^^^^^^^^^ + +let x2 = makeObject2({ +>x2 : { x: number; y: number; } & { moveBy(dx: number, dy: number): void; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^ ^^ ^^ ^^^^^^^^^^ +>makeObject2({ data: { x: 0, y: 0 }, methods: { moveBy(dx: number, dy: number) { this.x += dx; // Strongly typed this this.y += dy; // Strongly typed this } }}) : { x: number; y: number; } & { moveBy(dx: number, dy: number): void; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^ ^^ ^^ ^^^^^^^^^^ +>makeObject2 : (desc: ObjectDescriptor) => D & M +> : ^ ^^ ^^ ^^ ^^^^^ +>{ data: { x: 0, y: 0 }, methods: { moveBy(dx: number, dy: number) { this.x += dx; // Strongly typed this this.y += dy; // Strongly typed this } }} : { data: { x: number; y: number; }; methods: { moveBy(dx: number, dy: number): void; }; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^ ^^ ^^ ^^^^^^^^^^^^^ + + data: { x: 0, y: 0 }, +>data : { x: number; y: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ x: 0, y: 0 } : { x: number; y: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>x : number +> : ^^^^^^ +>0 : 0 +> : ^ +>y : number +> : ^^^^^^ +>0 : 0 +> : ^ + + methods: { +>methods : { moveBy(dx: number, dy: number): void; } +> : ^^^^^^^^^ ^^ ^^ ^^ ^^^^^^^^^^ +>{ moveBy(dx: number, dy: number) { this.x += dx; // Strongly typed this this.y += dy; // Strongly typed this } } : { moveBy(dx: number, dy: number): void; } +> : ^^^^^^^^^ ^^ ^^ ^^ ^^^^^^^^^^ + + moveBy(dx: number, dy: number) { +>moveBy : (dx: number, dy: number) => void +> : ^ ^^ ^^ ^^ ^^^^^^^^^ +>dx : number +> : ^^^^^^ +>dy : number +> : ^^^^^^ + + this.x += dx; // Strongly typed this +>this.x += dx : number +> : ^^^^^^ +>this.x : number +> : ^^^^^^ +>this : { x: number; y: number; } & { moveBy(dx: number, dy: number): void; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^ ^^ ^^ ^^^^^^^^^^ +>x : number +> : ^^^^^^ +>dx : number +> : ^^^^^^ + + this.y += dy; // Strongly typed this +>this.y += dy : number +> : ^^^^^^ +>this.y : number +> : ^^^^^^ +>this : { x: number; y: number; } & { moveBy(dx: number, dy: number): void; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^ ^^ ^^ ^^^^^^^^^^ +>y : number +> : ^^^^^^ +>dy : number +> : ^^^^^^ + } + } +}); + +// Check pattern similar to Object.defineProperty and Object.defineProperties + +type PropDesc = { +>PropDesc : PropDesc +> : ^^^^^^^^^^^ + + value?: T; +>value : T | undefined +> : ^^^^^^^^^^^^^ + + get?(): T; +>get : (() => T) | undefined +> : ^^^^^^^ ^^^^^^^^^^^^^ + + set?(value: T): void; +>set : ((value: T) => void) | undefined +> : ^^ ^^ ^^^^^ ^^^^^^^^^^^^^ +>value : T +> : ^ +} + +type PropDescMap = { +>PropDescMap : PropDescMap +> : ^^^^^^^^^^^^^^ + + [K in keyof T]: PropDesc; +} + +declare function defineProp(obj: T, name: K, desc: PropDesc & ThisType): T & Record; +>defineProp : (obj: T, name: K, desc: PropDesc & ThisType) => T & Record +> : ^ ^^ ^^^^^^^^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>obj : T +> : ^ +>name : K +> : ^ +>desc : PropDesc & ThisType +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ + +declare function defineProps(obj: T, descs: PropDescMap & ThisType): T & U; +>defineProps : (obj: T, descs: PropDescMap & ThisType) => T & U +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>obj : T +> : ^ +>descs : PropDescMap & ThisType +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +let p10 = defineProp(p1, "foo", { value: 42 }); +>p10 : Point & Record<"foo", number> +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>defineProp(p1, "foo", { value: 42 }) : Point & Record<"foo", number> +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>defineProp : (obj: T, name: K, desc: PropDesc & ThisType) => T & Record +> : ^ ^^ ^^^^^^^^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>p1 : Point +> : ^^^^^ +>"foo" : "foo" +> : ^^^^^ +>{ value: 42 } : { value: number; } +> : ^^^^^^^^^^^^^^^^^^ +>value : number +> : ^^^^^^ +>42 : 42 +> : ^^ + +p10.foo = p10.foo + 1; +>p10.foo = p10.foo + 1 : number +> : ^^^^^^ +>p10.foo : number +> : ^^^^^^ +>p10 : Point & Record<"foo", number> +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>foo : number +> : ^^^^^^ +>p10.foo + 1 : number +> : ^^^^^^ +>p10.foo : number +> : ^^^^^^ +>p10 : Point & Record<"foo", number> +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>foo : number +> : ^^^^^^ +>1 : 1 +> : ^ + +let p11 = defineProp(p1, "bar", { +>p11 : Point & Record<"bar", number> +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>defineProp(p1, "bar", { get() { return this.x; }, set(value: number) { this.x = value; }}) : Point & Record<"bar", number> +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>defineProp : (obj: T, name: K, desc: PropDesc & ThisType) => T & Record +> : ^ ^^ ^^^^^^^^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>p1 : Point +> : ^^^^^ +>"bar" : "bar" +> : ^^^^^ +>{ get() { return this.x; }, set(value: number) { this.x = value; }} : { get(): number; set(value: number): void; } +> : ^^^^^^^^^^^^^^^^^^^^^ ^^ ^^^^^^^^^^ + + get() { +>get : () => number +> : ^^^^^^^^^^^^ + + return this.x; +>this.x : number +> : ^^^^^^ +>this : Point +> : ^^^^^ +>x : number +> : ^^^^^^ + + }, + set(value: number) { +>set : (value: number) => void +> : ^ ^^ ^^^^^^^^^ +>value : number +> : ^^^^^^ + + this.x = value; +>this.x = value : number +> : ^^^^^^ +>this.x : number +> : ^^^^^^ +>this : Point +> : ^^^^^ +>x : number +> : ^^^^^^ +>value : number +> : ^^^^^^ + } +}); +p11.bar = p11.bar + 1; +>p11.bar = p11.bar + 1 : number +> : ^^^^^^ +>p11.bar : number +> : ^^^^^^ +>p11 : Point & Record<"bar", number> +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>bar : number +> : ^^^^^^ +>p11.bar + 1 : number +> : ^^^^^^ +>p11.bar : number +> : ^^^^^^ +>p11 : Point & Record<"bar", number> +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>bar : number +> : ^^^^^^ +>1 : 1 +> : ^ + +let p12 = defineProps(p1, { +>p12 : Point & { foo: number; bar: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>defineProps(p1, { foo: { value: 42 }, bar: { get(): number { return this.x; }, set(value: number) { this.x = value; } }}) : Point & { foo: number; bar: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>defineProps : (obj: T, descs: PropDescMap & ThisType) => T & U +> : ^ ^^ ^^ ^^ ^^ ^^ ^^^^^ +>p1 : Point +> : ^^^^^ +>{ foo: { value: 42 }, bar: { get(): number { return this.x; }, set(value: number) { this.x = value; } }} : { foo: { value: number; }; bar: { get(): number; set(value: number): void; }; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^ ^^ ^^^^^^^^^^^^^ + + foo: { +>foo : { value: number; } +> : ^^^^^^^^^^^^^^^^^^ +>{ value: 42 } : { value: number; } +> : ^^^^^^^^^^^^^^^^^^ + + value: 42 +>value : number +> : ^^^^^^ +>42 : 42 +> : ^^ + + }, + bar: { +>bar : { get(): number; set(value: number): void; } +> : ^^^^^^^^^ ^^^^^^ ^^ ^^^^^^^^^^ +>{ get(): number { return this.x; }, set(value: number) { this.x = value; } } : { get(): number; set(value: number): void; } +> : ^^^^^^^^^ ^^^^^^ ^^ ^^^^^^^^^^ + + get(): number { +>get : () => number +> : ^^^^^^ + + return this.x; +>this.x : number +> : ^^^^^^ +>this : Point +> : ^^^^^ +>x : number +> : ^^^^^^ + + }, + set(value: number) { +>set : (value: number) => void +> : ^ ^^ ^^^^^^^^^ +>value : number +> : ^^^^^^ + + this.x = value; +>this.x = value : number +> : ^^^^^^ +>this.x : number +> : ^^^^^^ +>this : Point +> : ^^^^^ +>x : number +> : ^^^^^^ +>value : number +> : ^^^^^^ + } + } +}); +p12.foo = p12.foo + 1; +>p12.foo = p12.foo + 1 : number +> : ^^^^^^ +>p12.foo : number +> : ^^^^^^ +>p12 : Point & { foo: number; bar: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>foo : number +> : ^^^^^^ +>p12.foo + 1 : number +> : ^^^^^^ +>p12.foo : number +> : ^^^^^^ +>p12 : Point & { foo: number; bar: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>foo : number +> : ^^^^^^ +>1 : 1 +> : ^ + +p12.bar = p12.bar + 1; +>p12.bar = p12.bar + 1 : number +> : ^^^^^^ +>p12.bar : number +> : ^^^^^^ +>p12 : Point & { foo: number; bar: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>bar : number +> : ^^^^^^ +>p12.bar + 1 : number +> : ^^^^^^ +>p12.bar : number +> : ^^^^^^ +>p12 : Point & { foo: number; bar: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>bar : number +> : ^^^^^^ +>1 : 1 +> : ^ + +// Proof of concept for typing of Vue.js + +type Accessors = { [K in keyof T]: (() => T[K]) | Computed }; +>Accessors : Accessors +> : ^^^^^^^^^^^^ + +type Dictionary = { [x: string]: T } +>Dictionary : Dictionary +> : ^^^^^^^^^^^^^ +>x : string +> : ^^^^^^ + +type Computed = { +>Computed : Computed +> : ^^^^^^^^^^^ + + get?(): T; +>get : (() => T) | undefined +> : ^^^^^^^ ^^^^^^^^^^^^^ + + set?(value: T): void; +>set : ((value: T) => void) | undefined +> : ^^ ^^ ^^^^^ ^^^^^^^^^^^^^ +>value : T +> : ^ +} + +type VueOptions = ThisType & { +>VueOptions : VueOptions +> : ^^^^^^^^^^^^^^^^^^^ + + data?: D | (() => D); +>data : D | (() => D) | undefined +> : ^^^^^^^^^^^ ^^^^^^^^^^^^^ + + methods?: M; +>methods : M | undefined +> : ^^^^^^^^^^^^^ + + computed?: Accessors

; +>computed : Accessors

| undefined +> : ^^^^^^^^^^^^^^^^^^^^^^^^ +} + +declare const Vue: new (options: VueOptions) => D & M & P; +>Vue : new (options: VueOptions) => D & M & P +> : ^^^^^ ^^ ^^ ^^ ^^ ^^^^^ +>options : VueOptions +> : ^^^^^^^^^^^^^^^^^^^ + +let vue = new Vue({ +>vue : { x: number; y: number; } & { f(x: string): number; } & { test: number; hello: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>new Vue({ data: () => ({ x: 1, y: 2 }), methods: { f(x: string) { return this.x; } }, computed: { test(): number { return this.x; }, hello: { get() { return "hi"; }, set(value: string) { } } }}) : { x: number; y: number; } & { f(x: string): number; } & { test: number; hello: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>Vue : new (options: VueOptions) => D & M & P +> : ^^^^^ ^^ ^^ ^^ ^^ ^^^^^ +>{ data: () => ({ x: 1, y: 2 }), methods: { f(x: string) { return this.x; } }, computed: { test(): number { return this.x; }, hello: { get() { return "hi"; }, set(value: string) { } } }} : { data: () => { x: number; y: number; }; methods: { f(x: string): number; }; computed: { test(): number; hello: { get(): string; set(value: string): void; }; }; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^ ^^^^^^^^^^^^^^^^ + + data: () => ({ x: 1, y: 2 }), +>data : () => { x: number; y: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>() => ({ x: 1, y: 2 }) : () => { x: number; y: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>({ x: 1, y: 2 }) : { x: number; y: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ x: 1, y: 2 } : { x: number; y: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>x : number +> : ^^^^^^ +>1 : 1 +> : ^ +>y : number +> : ^^^^^^ +>2 : 2 +> : ^ + + methods: { +>methods : { f(x: string): number; } +> : ^^^^ ^^ ^^^^^^^^^^^^ +>{ f(x: string) { return this.x; } } : { f(x: string): number; } +> : ^^^^ ^^ ^^^^^^^^^^^^ + + f(x: string) { +>f : (x: string) => number +> : ^ ^^ ^^^^^^^^^^^ +>x : string +> : ^^^^^^ + + return this.x; +>this.x : number +> : ^^^^^^ +>this : { x: number; y: number; } & { f(x: string): number; } & { test: number; hello: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>x : number +> : ^^^^^^ + } + }, + computed: { +>computed : { test(): number; hello: { get(): string; set(value: string): void; }; } +> : ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^ ^^^^^^^^^^^^^ +>{ test(): number { return this.x; }, hello: { get() { return "hi"; }, set(value: string) { } } } : { test(): number; hello: { get(): string; set(value: string): void; }; } +> : ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^ ^^^^^^^^^^^^^ + + test(): number { +>test : () => number +> : ^^^^^^ + + return this.x; +>this.x : number +> : ^^^^^^ +>this : { x: number; y: number; } & { f(x: string): number; } & { test: number; hello: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>x : number +> : ^^^^^^ + + }, + hello: { +>hello : { get(): string; set(value: string): void; } +> : ^^^^^^^^^^^^^^^^^^^^^ ^^ ^^^^^^^^^^ +>{ get() { return "hi"; }, set(value: string) { } } : { get(): string; set(value: string): void; } +> : ^^^^^^^^^^^^^^^^^^^^^ ^^ ^^^^^^^^^^ + + get() { +>get : () => string +> : ^^^^^^^^^^^^ + + return "hi"; +>"hi" : "hi" +> : ^^^^ + + }, + set(value: string) { +>set : (value: string) => void +> : ^ ^^ ^^^^^^^^^ +>value : string +> : ^^^^^^ + } + } + } +}); + +vue; +>vue : { x: number; y: number; } & { f(x: string): number; } & { test: number; hello: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +vue.x; +>vue.x : number +> : ^^^^^^ +>vue : { x: number; y: number; } & { f(x: string): number; } & { test: number; hello: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>x : number +> : ^^^^^^ + +vue.f("abc"); +>vue.f("abc") : number +> : ^^^^^^ +>vue.f : (x: string) => number +> : ^ ^^ ^^^^^^^^^^^ +>vue : { x: number; y: number; } & { f(x: string): number; } & { test: number; hello: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>f : (x: string) => number +> : ^ ^^ ^^^^^^^^^^^ +>"abc" : "abc" +> : ^^^^^ + +vue.test; +>vue.test : number +> : ^^^^^^ +>vue : { x: number; y: number; } & { f(x: string): number; } & { test: number; hello: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>test : number +> : ^^^^^^ + +vue.hello; +>vue.hello : string +> : ^^^^^^ +>vue : { x: number; y: number; } & { f(x: string): number; } & { test: number; hello: string; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>hello : string +> : ^^^^^^ + diff --git a/tests/baselines/reference/trailingCommasES5.js b/tests/baselines/reference/trailingCommasES5(target=es2015).js similarity index 100% rename from tests/baselines/reference/trailingCommasES5.js rename to tests/baselines/reference/trailingCommasES5(target=es2015).js diff --git a/tests/baselines/reference/trailingCommasES5.symbols b/tests/baselines/reference/trailingCommasES5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/trailingCommasES5.symbols rename to tests/baselines/reference/trailingCommasES5(target=es2015).symbols diff --git a/tests/baselines/reference/trailingCommasES5.types b/tests/baselines/reference/trailingCommasES5(target=es2015).types similarity index 100% rename from tests/baselines/reference/trailingCommasES5.types rename to tests/baselines/reference/trailingCommasES5(target=es2015).types diff --git a/tests/baselines/reference/trailingCommasES5(target=es5).js b/tests/baselines/reference/trailingCommasES5(target=es5).js new file mode 100644 index 0000000000000..1ae92ee09f57a --- /dev/null +++ b/tests/baselines/reference/trailingCommasES5(target=es5).js @@ -0,0 +1,26 @@ +//// [tests/cases/compiler/trailingCommasES5.ts] //// + +//// [trailingCommasES5.ts] +var o1 = { a: 1, b: 2 }; +var o2 = { a: 1, b: 2, }; +var o3 = { a: 1, }; +var o4 = {}; + +var a1 = [1, 2]; +var a2 = [1, 2, ]; +var a3 = [1, ]; +var a4 = []; +var a5 = [1, , ]; +var a6 = [, , ]; + +//// [trailingCommasES5.js] +var o1 = { a: 1, b: 2 }; +var o2 = { a: 1, b: 2, }; +var o3 = { a: 1, }; +var o4 = {}; +var a1 = [1, 2]; +var a2 = [1, 2,]; +var a3 = [1,]; +var a4 = []; +var a5 = [1, ,]; +var a6 = [, ,]; diff --git a/tests/baselines/reference/trailingCommasES5(target=es5).symbols b/tests/baselines/reference/trailingCommasES5(target=es5).symbols new file mode 100644 index 0000000000000..b50da9138d28a --- /dev/null +++ b/tests/baselines/reference/trailingCommasES5(target=es5).symbols @@ -0,0 +1,38 @@ +//// [tests/cases/compiler/trailingCommasES5.ts] //// + +=== trailingCommasES5.ts === +var o1 = { a: 1, b: 2 }; +>o1 : Symbol(o1, Decl(trailingCommasES5.ts, 0, 3)) +>a : Symbol(a, Decl(trailingCommasES5.ts, 0, 10)) +>b : Symbol(b, Decl(trailingCommasES5.ts, 0, 16)) + +var o2 = { a: 1, b: 2, }; +>o2 : Symbol(o2, Decl(trailingCommasES5.ts, 1, 3)) +>a : Symbol(a, Decl(trailingCommasES5.ts, 1, 10)) +>b : Symbol(b, Decl(trailingCommasES5.ts, 1, 16)) + +var o3 = { a: 1, }; +>o3 : Symbol(o3, Decl(trailingCommasES5.ts, 2, 3)) +>a : Symbol(a, Decl(trailingCommasES5.ts, 2, 10)) + +var o4 = {}; +>o4 : Symbol(o4, Decl(trailingCommasES5.ts, 3, 3)) + +var a1 = [1, 2]; +>a1 : Symbol(a1, Decl(trailingCommasES5.ts, 5, 3)) + +var a2 = [1, 2, ]; +>a2 : Symbol(a2, Decl(trailingCommasES5.ts, 6, 3)) + +var a3 = [1, ]; +>a3 : Symbol(a3, Decl(trailingCommasES5.ts, 7, 3)) + +var a4 = []; +>a4 : Symbol(a4, Decl(trailingCommasES5.ts, 8, 3)) + +var a5 = [1, , ]; +>a5 : Symbol(a5, Decl(trailingCommasES5.ts, 9, 3)) + +var a6 = [, , ]; +>a6 : Symbol(a6, Decl(trailingCommasES5.ts, 10, 3)) + diff --git a/tests/baselines/reference/trailingCommasES5(target=es5).types b/tests/baselines/reference/trailingCommasES5(target=es5).types new file mode 100644 index 0000000000000..f3513728896db --- /dev/null +++ b/tests/baselines/reference/trailingCommasES5(target=es5).types @@ -0,0 +1,101 @@ +//// [tests/cases/compiler/trailingCommasES5.ts] //// + +=== trailingCommasES5.ts === +var o1 = { a: 1, b: 2 }; +>o1 : { a: number; b: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ a: 1, b: 2 } : { a: number; b: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>a : number +> : ^^^^^^ +>1 : 1 +> : ^ +>b : number +> : ^^^^^^ +>2 : 2 +> : ^ + +var o2 = { a: 1, b: 2, }; +>o2 : { a: number; b: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ a: 1, b: 2, } : { a: number; b: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>a : number +> : ^^^^^^ +>1 : 1 +> : ^ +>b : number +> : ^^^^^^ +>2 : 2 +> : ^ + +var o3 = { a: 1, }; +>o3 : { a: number; } +> : ^^^^^^^^^^^^^^ +>{ a: 1, } : { a: number; } +> : ^^^^^^^^^^^^^^ +>a : number +> : ^^^^^^ +>1 : 1 +> : ^ + +var o4 = {}; +>o4 : {} +> : ^^ +>{} : {} +> : ^^ + +var a1 = [1, 2]; +>a1 : number[] +> : ^^^^^^^^ +>[1, 2] : number[] +> : ^^^^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ + +var a2 = [1, 2, ]; +>a2 : number[] +> : ^^^^^^^^ +>[1, 2, ] : number[] +> : ^^^^^^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ + +var a3 = [1, ]; +>a3 : number[] +> : ^^^^^^^^ +>[1, ] : number[] +> : ^^^^^^^^ +>1 : 1 +> : ^ + +var a4 = []; +>a4 : any[] +> : ^^^^^ +>[] : undefined[] +> : ^^^^^^^^^^^ + +var a5 = [1, , ]; +>a5 : number[] +> : ^^^^^^^^ +>[1, , ] : number[] +> : ^^^^^^^^ +>1 : 1 +> : ^ +> : undefined +> : ^^^^^^^^^ + +var a6 = [, , ]; +>a6 : any[] +> : ^^^^^ +>[, , ] : undefined[] +> : ^^^^^^^^^^^ +> : undefined +> : ^^^^^^^^^ +> : undefined +> : ^^^^^^^^^ + diff --git a/tests/baselines/reference/trailingCommasInFunctionParametersAndArguments.errors.txt b/tests/baselines/reference/trailingCommasInFunctionParametersAndArguments(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/trailingCommasInFunctionParametersAndArguments.errors.txt rename to tests/baselines/reference/trailingCommasInFunctionParametersAndArguments(target=es2015).errors.txt diff --git a/tests/baselines/reference/trailingCommasInFunctionParametersAndArguments(target=es2015).js b/tests/baselines/reference/trailingCommasInFunctionParametersAndArguments(target=es2015).js new file mode 100644 index 0000000000000..bcbe4f997af3d --- /dev/null +++ b/tests/baselines/reference/trailingCommasInFunctionParametersAndArguments(target=es2015).js @@ -0,0 +1,49 @@ +//// [tests/cases/conformance/es7/trailingCommasInFunctionParametersAndArguments.ts] //// + +//// [trailingCommasInFunctionParametersAndArguments.ts] +function f1(x,) {} + +f1(1,); + +function f2(...args,) {} + +// Allowed for ambient declarations +declare function f25(...args,): void; + +f2(...[],); + +// Not confused by overloads +declare function f3(x, ): number; +declare function f3(x, y,): string; + +f3(1,); +f3(1, 2,); + +// Works for constructors too +class X { + constructor(a,) { } + // See trailingCommasInGetter.ts + set x(value,) { } +} +interface Y { + new(x,); + (x,); +} + +new X(1,); + + +//// [trailingCommasInFunctionParametersAndArguments.js] +function f1(x) { } +f1(1); +function f2(...args) { } +f2(...[]); +f3(1); +f3(1, 2); +// Works for constructors too +class X { + constructor(a) { } + // See trailingCommasInGetter.ts + set x(value) { } +} +new X(1); diff --git a/tests/baselines/reference/trailingCommasInFunctionParametersAndArguments.symbols b/tests/baselines/reference/trailingCommasInFunctionParametersAndArguments(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/trailingCommasInFunctionParametersAndArguments.symbols rename to tests/baselines/reference/trailingCommasInFunctionParametersAndArguments(target=es2015).symbols diff --git a/tests/baselines/reference/trailingCommasInFunctionParametersAndArguments.types b/tests/baselines/reference/trailingCommasInFunctionParametersAndArguments(target=es2015).types similarity index 100% rename from tests/baselines/reference/trailingCommasInFunctionParametersAndArguments.types rename to tests/baselines/reference/trailingCommasInFunctionParametersAndArguments(target=es2015).types diff --git a/tests/baselines/reference/trailingCommasInFunctionParametersAndArguments(target=es5).errors.txt b/tests/baselines/reference/trailingCommasInFunctionParametersAndArguments(target=es5).errors.txt new file mode 100644 index 0000000000000..104391fd758d0 --- /dev/null +++ b/tests/baselines/reference/trailingCommasInFunctionParametersAndArguments(target=es5).errors.txt @@ -0,0 +1,37 @@ +trailingCommasInFunctionParametersAndArguments.ts(5,20): error TS1013: A rest parameter or binding pattern may not have a trailing comma. + + +==== trailingCommasInFunctionParametersAndArguments.ts (1 errors) ==== + function f1(x,) {} + + f1(1,); + + function f2(...args,) {} + ~ +!!! error TS1013: A rest parameter or binding pattern may not have a trailing comma. + + // Allowed for ambient declarations + declare function f25(...args,): void; + + f2(...[],); + + // Not confused by overloads + declare function f3(x, ): number; + declare function f3(x, y,): string; + + f3(1,); + f3(1, 2,); + + // Works for constructors too + class X { + constructor(a,) { } + // See trailingCommasInGetter.ts + set x(value,) { } + } + interface Y { + new(x,); + (x,); + } + + new X(1,); + \ No newline at end of file diff --git a/tests/baselines/reference/trailingCommasInFunctionParametersAndArguments.js b/tests/baselines/reference/trailingCommasInFunctionParametersAndArguments(target=es5).js similarity index 100% rename from tests/baselines/reference/trailingCommasInFunctionParametersAndArguments.js rename to tests/baselines/reference/trailingCommasInFunctionParametersAndArguments(target=es5).js diff --git a/tests/baselines/reference/trailingCommasInFunctionParametersAndArguments(target=es5).symbols b/tests/baselines/reference/trailingCommasInFunctionParametersAndArguments(target=es5).symbols new file mode 100644 index 0000000000000..fdcd49a8f54ce --- /dev/null +++ b/tests/baselines/reference/trailingCommasInFunctionParametersAndArguments(target=es5).symbols @@ -0,0 +1,63 @@ +//// [tests/cases/conformance/es7/trailingCommasInFunctionParametersAndArguments.ts] //// + +=== trailingCommasInFunctionParametersAndArguments.ts === +function f1(x,) {} +>f1 : Symbol(f1, Decl(trailingCommasInFunctionParametersAndArguments.ts, 0, 0)) +>x : Symbol(x, Decl(trailingCommasInFunctionParametersAndArguments.ts, 0, 12)) + +f1(1,); +>f1 : Symbol(f1, Decl(trailingCommasInFunctionParametersAndArguments.ts, 0, 0)) + +function f2(...args,) {} +>f2 : Symbol(f2, Decl(trailingCommasInFunctionParametersAndArguments.ts, 2, 7)) +>args : Symbol(args, Decl(trailingCommasInFunctionParametersAndArguments.ts, 4, 12)) + +// Allowed for ambient declarations +declare function f25(...args,): void; +>f25 : Symbol(f25, Decl(trailingCommasInFunctionParametersAndArguments.ts, 4, 24)) +>args : Symbol(args, Decl(trailingCommasInFunctionParametersAndArguments.ts, 7, 21)) + +f2(...[],); +>f2 : Symbol(f2, Decl(trailingCommasInFunctionParametersAndArguments.ts, 2, 7)) + +// Not confused by overloads +declare function f3(x, ): number; +>f3 : Symbol(f3, Decl(trailingCommasInFunctionParametersAndArguments.ts, 9, 11), Decl(trailingCommasInFunctionParametersAndArguments.ts, 12, 33)) +>x : Symbol(x, Decl(trailingCommasInFunctionParametersAndArguments.ts, 12, 20)) + +declare function f3(x, y,): string; +>f3 : Symbol(f3, Decl(trailingCommasInFunctionParametersAndArguments.ts, 9, 11), Decl(trailingCommasInFunctionParametersAndArguments.ts, 12, 33)) +>x : Symbol(x, Decl(trailingCommasInFunctionParametersAndArguments.ts, 13, 20)) +>y : Symbol(y, Decl(trailingCommasInFunctionParametersAndArguments.ts, 13, 22)) + +f3(1,); +>f3 : Symbol(f3, Decl(trailingCommasInFunctionParametersAndArguments.ts, 9, 11), Decl(trailingCommasInFunctionParametersAndArguments.ts, 12, 33)) + +f3(1, 2,); +>f3 : Symbol(f3, Decl(trailingCommasInFunctionParametersAndArguments.ts, 9, 11), Decl(trailingCommasInFunctionParametersAndArguments.ts, 12, 33)) + +// Works for constructors too +class X { +>X : Symbol(X, Decl(trailingCommasInFunctionParametersAndArguments.ts, 16, 18)) + + constructor(a,) { } +>a : Symbol(a, Decl(trailingCommasInFunctionParametersAndArguments.ts, 20, 16)) + + // See trailingCommasInGetter.ts + set x(value,) { } +>x : Symbol(X.x, Decl(trailingCommasInFunctionParametersAndArguments.ts, 20, 23)) +>value : Symbol(value, Decl(trailingCommasInFunctionParametersAndArguments.ts, 22, 10)) +} +interface Y { +>Y : Symbol(Y, Decl(trailingCommasInFunctionParametersAndArguments.ts, 23, 1)) + + new(x,); +>x : Symbol(x, Decl(trailingCommasInFunctionParametersAndArguments.ts, 25, 8)) + + (x,); +>x : Symbol(x, Decl(trailingCommasInFunctionParametersAndArguments.ts, 26, 5)) +} + +new X(1,); +>X : Symbol(X, Decl(trailingCommasInFunctionParametersAndArguments.ts, 16, 18)) + diff --git a/tests/baselines/reference/trailingCommasInFunctionParametersAndArguments(target=es5).types b/tests/baselines/reference/trailingCommasInFunctionParametersAndArguments(target=es5).types new file mode 100644 index 0000000000000..48452d9ddfc38 --- /dev/null +++ b/tests/baselines/reference/trailingCommasInFunctionParametersAndArguments(target=es5).types @@ -0,0 +1,111 @@ +//// [tests/cases/conformance/es7/trailingCommasInFunctionParametersAndArguments.ts] //// + +=== trailingCommasInFunctionParametersAndArguments.ts === +function f1(x,) {} +>f1 : (x: any) => void +> : ^ ^^^^^^^^^^^^^^ +>x : any +> : ^^^ + +f1(1,); +>f1(1,) : void +> : ^^^^ +>f1 : (x: any) => void +> : ^ ^^^^^^^^^^^^^^ +>1 : 1 +> : ^ + +function f2(...args,) {} +>f2 : (...args: any[]) => void +> : ^^^^ ^^^^^^^^^^^^^^^^ +>args : any[] +> : ^^^^^ + +// Allowed for ambient declarations +declare function f25(...args,): void; +>f25 : (...args: any[]) => void +> : ^^^^ ^^^^^^^^^^^^ +>args : any[] +> : ^^^^^ + +f2(...[],); +>f2(...[],) : void +> : ^^^^ +>f2 : (...args: any[]) => void +> : ^^^^ ^^^^^^^^^^^^^^^^ +>...[] : never +> : ^^^^^ +>[] : [] +> : ^^ + +// Not confused by overloads +declare function f3(x, ): number; +>f3 : { (x: any): number; (x: any, y: any): string; } +> : ^^^ ^^^^^^^^ ^^^ ^^^^^^^ ^^^^^^^^ ^^^ +>x : any +> : ^^^ + +declare function f3(x, y,): string; +>f3 : { (x: any): number; (x: any, y: any): string; } +> : ^^^ ^^^^^^^^ ^^^ ^^^^^^^ ^^^^^^^^ ^^^ +>x : any +> : ^^^ +>y : any +> : ^^^ + +f3(1,); +>f3(1,) : number +> : ^^^^^^ +>f3(1,) : number +> : ^^^^^^ +>f3 : { (x: any): number; (x: any, y: any): string; } +> : ^^^ ^^^^^^^^ ^^^ ^^^^^^^ ^^^^^^^^ ^^^ +>1 : 1 +> : ^ + +f3(1, 2,); +>f3(1, 2,) : string +> : ^^^^^^ +>f3(1, 2,) : string +> : ^^^^^^ +>f3 : { (x: any): number; (x: any, y: any): string; } +> : ^^^ ^^^^^^^^ ^^^ ^^^^^^^ ^^^^^^^^ ^^^ +>1 : 1 +> : ^ +>2 : 2 +> : ^ + +// Works for constructors too +class X { +>X : X +> : ^ + + constructor(a,) { } +>a : any +> : ^^^ + + // See trailingCommasInGetter.ts + set x(value,) { } +>x : any +> : ^^^ +>value : any +> : ^^^ +} +interface Y { + new(x,); +>x : any +> : ^^^ + + (x,); +>x : any +> : ^^^ +} + +new X(1,); +>new X(1,) : X +> : ^ +>X : typeof X +> : ^^^^^^^^ +>1 : 1 +> : ^ + diff --git a/tests/baselines/reference/transformArrowInBlockScopedLoopVarInitializer(target=es2015).js b/tests/baselines/reference/transformArrowInBlockScopedLoopVarInitializer(target=es2015).js new file mode 100644 index 0000000000000..c36b736a1c25e --- /dev/null +++ b/tests/baselines/reference/transformArrowInBlockScopedLoopVarInitializer(target=es2015).js @@ -0,0 +1,16 @@ +//// [tests/cases/compiler/transformArrowInBlockScopedLoopVarInitializer.ts] //// + +//// [transformArrowInBlockScopedLoopVarInitializer.ts] +// https://github.com/Microsoft/TypeScript/issues/11236 +while (true) +{ + let local = null; + var a = () => local; // <-- Lambda should be converted to function() +} + +//// [transformArrowInBlockScopedLoopVarInitializer.js] +// https://github.com/Microsoft/TypeScript/issues/11236 +while (true) { + let local = null; + var a = () => local; // <-- Lambda should be converted to function() +} diff --git a/tests/baselines/reference/transformArrowInBlockScopedLoopVarInitializer.symbols b/tests/baselines/reference/transformArrowInBlockScopedLoopVarInitializer(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/transformArrowInBlockScopedLoopVarInitializer.symbols rename to tests/baselines/reference/transformArrowInBlockScopedLoopVarInitializer(target=es2015).symbols diff --git a/tests/baselines/reference/transformArrowInBlockScopedLoopVarInitializer.types b/tests/baselines/reference/transformArrowInBlockScopedLoopVarInitializer(target=es2015).types similarity index 100% rename from tests/baselines/reference/transformArrowInBlockScopedLoopVarInitializer.types rename to tests/baselines/reference/transformArrowInBlockScopedLoopVarInitializer(target=es2015).types diff --git a/tests/baselines/reference/transformArrowInBlockScopedLoopVarInitializer.js b/tests/baselines/reference/transformArrowInBlockScopedLoopVarInitializer(target=es5).js similarity index 100% rename from tests/baselines/reference/transformArrowInBlockScopedLoopVarInitializer.js rename to tests/baselines/reference/transformArrowInBlockScopedLoopVarInitializer(target=es5).js diff --git a/tests/baselines/reference/transformArrowInBlockScopedLoopVarInitializer(target=es5).symbols b/tests/baselines/reference/transformArrowInBlockScopedLoopVarInitializer(target=es5).symbols new file mode 100644 index 0000000000000..3219cc03ce576 --- /dev/null +++ b/tests/baselines/reference/transformArrowInBlockScopedLoopVarInitializer(target=es5).symbols @@ -0,0 +1,13 @@ +//// [tests/cases/compiler/transformArrowInBlockScopedLoopVarInitializer.ts] //// + +=== transformArrowInBlockScopedLoopVarInitializer.ts === +// https://github.com/Microsoft/TypeScript/issues/11236 +while (true) +{ + let local = null; +>local : Symbol(local, Decl(transformArrowInBlockScopedLoopVarInitializer.ts, 3, 7)) + + var a = () => local; // <-- Lambda should be converted to function() +>a : Symbol(a, Decl(transformArrowInBlockScopedLoopVarInitializer.ts, 4, 7)) +>local : Symbol(local, Decl(transformArrowInBlockScopedLoopVarInitializer.ts, 3, 7)) +} diff --git a/tests/baselines/reference/transformArrowInBlockScopedLoopVarInitializer(target=es5).types b/tests/baselines/reference/transformArrowInBlockScopedLoopVarInitializer(target=es5).types new file mode 100644 index 0000000000000..d2f388c986ddd --- /dev/null +++ b/tests/baselines/reference/transformArrowInBlockScopedLoopVarInitializer(target=es5).types @@ -0,0 +1,18 @@ +//// [tests/cases/compiler/transformArrowInBlockScopedLoopVarInitializer.ts] //// + +=== transformArrowInBlockScopedLoopVarInitializer.ts === +// https://github.com/Microsoft/TypeScript/issues/11236 +while (true) +>true : true +> : ^^^^ +{ + let local = null; +>local : any + + var a = () => local; // <-- Lambda should be converted to function() +>a : () => any +> : ^^^^^^^^^ +>() => local : () => any +> : ^^^^^^^^^ +>local : any +} diff --git a/tests/baselines/reference/transformNestedGeneratorsWithTry(target=es2015).js b/tests/baselines/reference/transformNestedGeneratorsWithTry(target=es2015).js new file mode 100644 index 0000000000000..fb36f86cf44d9 --- /dev/null +++ b/tests/baselines/reference/transformNestedGeneratorsWithTry(target=es2015).js @@ -0,0 +1,52 @@ +//// [tests/cases/compiler/transformNestedGeneratorsWithTry.ts] //// + +//// [main.ts] +// https://github.com/Microsoft/TypeScript/issues/11177 +import * as Bluebird from 'bluebird'; +async function a(): Bluebird { + try { + const b = async function b(): Bluebird { + try { + await Bluebird.resolve(); // -- remove this and it compiles + } catch (error) { } + }; + + await b(); // -- or remove this and it compiles + } catch (error) { } +} + +//// [bluebird.d.ts] +declare module "bluebird" { + type Bluebird = Promise; + const Bluebird: typeof Promise; + export = Bluebird; +} + +//// [main.js] +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +// https://github.com/Microsoft/TypeScript/issues/11177 +import * as Bluebird from 'bluebird'; +function a() { + return __awaiter(this, void 0, void 0, function* () { + try { + const b = function b() { + return __awaiter(this, void 0, void 0, function* () { + try { + yield Bluebird.resolve(); // -- remove this and it compiles + } + catch (error) { } + }); + }; + yield b(); // -- or remove this and it compiles + } + catch (error) { } + }); +} diff --git a/tests/baselines/reference/transformNestedGeneratorsWithTry.symbols b/tests/baselines/reference/transformNestedGeneratorsWithTry(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/transformNestedGeneratorsWithTry.symbols rename to tests/baselines/reference/transformNestedGeneratorsWithTry(target=es2015).symbols diff --git a/tests/baselines/reference/transformNestedGeneratorsWithTry(target=es2015).types b/tests/baselines/reference/transformNestedGeneratorsWithTry(target=es2015).types new file mode 100644 index 0000000000000..2d88f0f728416 --- /dev/null +++ b/tests/baselines/reference/transformNestedGeneratorsWithTry(target=es2015).types @@ -0,0 +1,70 @@ +//// [tests/cases/compiler/transformNestedGeneratorsWithTry.ts] //// + +=== main.ts === +// https://github.com/Microsoft/TypeScript/issues/11177 +import * as Bluebird from 'bluebird'; +>Bluebird : { default: PromiseConstructor; all(values: Iterable>): Promise[]>; all(values: T): Promise<{ -readonly [P in keyof T]: Awaited; }>; race(values: Iterable>): Promise>; race(values: T): Promise>; prototype: Promise; reject(reason?: any): Promise; resolve(): Promise; resolve(value: T): Promise>; resolve(value: T | PromiseLike): Promise>; [Symbol.species]: PromiseConstructor; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^ ^^ ^^^ ^^^^^^ ^^^^^^^^^ ^^ ^^ ^^^ ^^^^^^^ ^^ ^^ ^^^ ^^^^^^^ ^^^^^^^^^ ^^ ^^ ^^^ ^^^^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^ ^^^ ^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^ ^^ ^^ ^^^ ^^^^^^^^^^ ^^ ^^ ^^^ ^^^^^^^^^^^^^^^^^^^^ ^^^ + +async function a(): Bluebird { +>a : () => Bluebird +> : ^^^^^^ + + try { + const b = async function b(): Bluebird { +>b : () => Bluebird +> : ^^^^^^ +>async function b(): Bluebird { try { await Bluebird.resolve(); // -- remove this and it compiles } catch (error) { } } : () => Bluebird +> : ^^^^^^ +>b : () => Bluebird +> : ^^^^^^ + + try { + await Bluebird.resolve(); // -- remove this and it compiles +>await Bluebird.resolve() : void +> : ^^^^ +>Bluebird.resolve() : Promise +> : ^^^^^^^^^^^^^ +>Bluebird.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^ ^^ ^^^ ^^^ +>Bluebird : { default: PromiseConstructor; all(values: Iterable>): Promise[]>; all(values: T): Promise<{ -readonly [P in keyof T]: Awaited; }>; race(values: Iterable>): Promise>; race(values: T): Promise>; prototype: Promise; reject(reason?: any): Promise; resolve(): Promise; resolve(value: T): Promise>; resolve(value: T | PromiseLike): Promise>; [Symbol.species]: PromiseConstructor; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^ ^^ ^^^ ^^^^^^ ^^^^^^^^^ ^^ ^^ ^^^ ^^^^^^^ ^^ ^^ ^^^ ^^^^^^^ ^^^^^^^^^ ^^ ^^ ^^^ ^^^^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^ ^^^ ^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^ ^^ ^^ ^^^ ^^^^^^^^^^ ^^ ^^ ^^^ ^^^^^^^^^^^^^^^^^^^^ ^^^ +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } +> : ^^^^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^ ^^ ^^^ ^^^ + + } catch (error) { } +>error : any + + }; + + await b(); // -- or remove this and it compiles +>await b() : void +> : ^^^^ +>b() : Bluebird +> : ^^^^^^^^^^^^^^ +>b : () => Bluebird +> : ^^^^^^ + + } catch (error) { } +>error : any +} + +=== bluebird.d.ts === +declare module "bluebird" { +>"bluebird" : typeof import("bluebird") +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ + + type Bluebird = Promise; +>Bluebird : Bluebird +> : ^^^^^^^^^^^ + + const Bluebird: typeof Promise; +>Bluebird : PromiseConstructor +> : ^^^^^^^^^^^^^^^^^^ +>Promise : PromiseConstructor +> : ^^^^^^^^^^^^^^^^^^ + + export = Bluebird; +>Bluebird : Bluebird +> : ^^^^^^^^^^^ +} diff --git a/tests/baselines/reference/transformNestedGeneratorsWithTry.errors.txt b/tests/baselines/reference/transformNestedGeneratorsWithTry(target=es5).errors.txt similarity index 100% rename from tests/baselines/reference/transformNestedGeneratorsWithTry.errors.txt rename to tests/baselines/reference/transformNestedGeneratorsWithTry(target=es5).errors.txt diff --git a/tests/baselines/reference/transformNestedGeneratorsWithTry.js b/tests/baselines/reference/transformNestedGeneratorsWithTry(target=es5).js similarity index 100% rename from tests/baselines/reference/transformNestedGeneratorsWithTry.js rename to tests/baselines/reference/transformNestedGeneratorsWithTry(target=es5).js diff --git a/tests/baselines/reference/transformNestedGeneratorsWithTry(target=es5).symbols b/tests/baselines/reference/transformNestedGeneratorsWithTry(target=es5).symbols new file mode 100644 index 0000000000000..5cb082a827ab8 --- /dev/null +++ b/tests/baselines/reference/transformNestedGeneratorsWithTry(target=es5).symbols @@ -0,0 +1,52 @@ +//// [tests/cases/compiler/transformNestedGeneratorsWithTry.ts] //// + +=== main.ts === +// https://github.com/Microsoft/TypeScript/issues/11177 +import * as Bluebird from 'bluebird'; +>Bluebird : Symbol(Bluebird, Decl(main.ts, 1, 6)) + +async function a(): Bluebird { +>a : Symbol(a, Decl(main.ts, 1, 37)) +>Bluebird : Symbol(Bluebird, Decl(main.ts, 1, 6)) + + try { + const b = async function b(): Bluebird { +>b : Symbol(b, Decl(main.ts, 4, 9)) +>b : Symbol(b, Decl(main.ts, 4, 13)) +>Bluebird : Symbol(Bluebird, Decl(main.ts, 1, 6)) + + try { + await Bluebird.resolve(); // -- remove this and it compiles +>Bluebird.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Bluebird : Symbol(Bluebird, Decl(main.ts, 1, 6)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) + + } catch (error) { } +>error : Symbol(error, Decl(main.ts, 7, 15)) + + }; + + await b(); // -- or remove this and it compiles +>b : Symbol(b, Decl(main.ts, 4, 9)) + + } catch (error) { } +>error : Symbol(error, Decl(main.ts, 11, 11)) +} + +=== bluebird.d.ts === +declare module "bluebird" { +>"bluebird" : Symbol("bluebird", Decl(bluebird.d.ts, 0, 0)) + + type Bluebird = Promise; +>Bluebird : Symbol(Bluebird, Decl(bluebird.d.ts, 0, 27), Decl(bluebird.d.ts, 2, 9)) +>T : Symbol(T, Decl(bluebird.d.ts, 1, 18)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>T : Symbol(T, Decl(bluebird.d.ts, 1, 18)) + + const Bluebird: typeof Promise; +>Bluebird : Symbol(Bluebird, Decl(bluebird.d.ts, 0, 27), Decl(bluebird.d.ts, 2, 9)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + + export = Bluebird; +>Bluebird : Symbol(Bluebird, Decl(bluebird.d.ts, 0, 27), Decl(bluebird.d.ts, 2, 9)) +} diff --git a/tests/baselines/reference/transformNestedGeneratorsWithTry.types b/tests/baselines/reference/transformNestedGeneratorsWithTry(target=es5).types similarity index 100% rename from tests/baselines/reference/transformNestedGeneratorsWithTry.types rename to tests/baselines/reference/transformNestedGeneratorsWithTry(target=es5).types diff --git a/tests/baselines/reference/transformParenthesizesConditionalSubexpression(target=es2015).js b/tests/baselines/reference/transformParenthesizesConditionalSubexpression(target=es2015).js new file mode 100644 index 0000000000000..523f7805e7f12 --- /dev/null +++ b/tests/baselines/reference/transformParenthesizesConditionalSubexpression(target=es2015).js @@ -0,0 +1,11 @@ +//// [tests/cases/compiler/transformParenthesizesConditionalSubexpression.ts] //// + +//// [transformParenthesizesConditionalSubexpression.ts] +var K = 'k' +var a = { p : (true ? { [K] : 'v'} : null) } +var b = { p : (true ? { [K] : 'v'} as any : null) } + +//// [transformParenthesizesConditionalSubexpression.js] +var K = 'k'; +var a = { p: (true ? { [K]: 'v' } : null) }; +var b = { p: (true ? { [K]: 'v' } : null) }; diff --git a/tests/baselines/reference/transformParenthesizesConditionalSubexpression.symbols b/tests/baselines/reference/transformParenthesizesConditionalSubexpression(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/transformParenthesizesConditionalSubexpression.symbols rename to tests/baselines/reference/transformParenthesizesConditionalSubexpression(target=es2015).symbols diff --git a/tests/baselines/reference/transformParenthesizesConditionalSubexpression.types b/tests/baselines/reference/transformParenthesizesConditionalSubexpression(target=es2015).types similarity index 100% rename from tests/baselines/reference/transformParenthesizesConditionalSubexpression.types rename to tests/baselines/reference/transformParenthesizesConditionalSubexpression(target=es2015).types diff --git a/tests/baselines/reference/transformParenthesizesConditionalSubexpression.js b/tests/baselines/reference/transformParenthesizesConditionalSubexpression(target=es5).js similarity index 100% rename from tests/baselines/reference/transformParenthesizesConditionalSubexpression.js rename to tests/baselines/reference/transformParenthesizesConditionalSubexpression(target=es5).js diff --git a/tests/baselines/reference/transformParenthesizesConditionalSubexpression(target=es5).symbols b/tests/baselines/reference/transformParenthesizesConditionalSubexpression(target=es5).symbols new file mode 100644 index 0000000000000..21978eb58c11c --- /dev/null +++ b/tests/baselines/reference/transformParenthesizesConditionalSubexpression(target=es5).symbols @@ -0,0 +1,18 @@ +//// [tests/cases/compiler/transformParenthesizesConditionalSubexpression.ts] //// + +=== transformParenthesizesConditionalSubexpression.ts === +var K = 'k' +>K : Symbol(K, Decl(transformParenthesizesConditionalSubexpression.ts, 0, 3)) + +var a = { p : (true ? { [K] : 'v'} : null) } +>a : Symbol(a, Decl(transformParenthesizesConditionalSubexpression.ts, 1, 3)) +>p : Symbol(p, Decl(transformParenthesizesConditionalSubexpression.ts, 1, 9)) +>[K] : Symbol([K], Decl(transformParenthesizesConditionalSubexpression.ts, 1, 24)) +>K : Symbol(K, Decl(transformParenthesizesConditionalSubexpression.ts, 0, 3)) + +var b = { p : (true ? { [K] : 'v'} as any : null) } +>b : Symbol(b, Decl(transformParenthesizesConditionalSubexpression.ts, 2, 3)) +>p : Symbol(p, Decl(transformParenthesizesConditionalSubexpression.ts, 2, 9)) +>[K] : Symbol([K], Decl(transformParenthesizesConditionalSubexpression.ts, 2, 24)) +>K : Symbol(K, Decl(transformParenthesizesConditionalSubexpression.ts, 0, 3)) + diff --git a/tests/baselines/reference/transformParenthesizesConditionalSubexpression(target=es5).types b/tests/baselines/reference/transformParenthesizesConditionalSubexpression(target=es5).types new file mode 100644 index 0000000000000..1ffd170d76a8a --- /dev/null +++ b/tests/baselines/reference/transformParenthesizesConditionalSubexpression(target=es5).types @@ -0,0 +1,51 @@ +//// [tests/cases/compiler/transformParenthesizesConditionalSubexpression.ts] //// + +=== transformParenthesizesConditionalSubexpression.ts === +var K = 'k' +>K : string +> : ^^^^^^ +>'k' : "k" +> : ^^^ + +var a = { p : (true ? { [K] : 'v'} : null) } +>a : { p: { [K]: string; }; } +> : ^^^^^^^ ^^^^^^ ^^^^^ +>{ p : (true ? { [K] : 'v'} : null) } : { p: { [K]: string; }; } +> : ^^^^^^^ ^^^^^^ ^^^^^ +>p : { [K]: string; } +> : ^^ ^^^^^^ ^^ +>(true ? { [K] : 'v'} : null) : { [K]: string; } +> : ^^ ^^^^^^ ^^ +>true ? { [K] : 'v'} : null : { [K]: string; } +> : ^^ ^^^^^^ ^^ +>true : true +> : ^^^^ +>{ [K] : 'v'} : { [K]: string; } +> : ^^ ^^^^^^ ^^ +>[K] : string +> : ^^^^^^ +>K : string +> : ^^^^^^ +>'v' : "v" +> : ^^^ + +var b = { p : (true ? { [K] : 'v'} as any : null) } +>b : { p: any; } +> : ^^^^^^^^^^^ +>{ p : (true ? { [K] : 'v'} as any : null) } : { p: any; } +> : ^^^^^^^^^^^ +>p : any +>(true ? { [K] : 'v'} as any : null) : any +>true ? { [K] : 'v'} as any : null : any +>true : true +> : ^^^^ +>{ [K] : 'v'} as any : any +>{ [K] : 'v'} : { [K]: string; } +> : ^^ ^^^^^^ ^^ +>[K] : string +> : ^^^^^^ +>K : string +> : ^^^^^^ +>'v' : "v" +> : ^^^ + diff --git a/tests/baselines/reference/trivialSubtypeReductionNoStructuralCheck.errors.txt b/tests/baselines/reference/trivialSubtypeReductionNoStructuralCheck(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/trivialSubtypeReductionNoStructuralCheck.errors.txt rename to tests/baselines/reference/trivialSubtypeReductionNoStructuralCheck(target=es2015).errors.txt diff --git a/tests/baselines/reference/trivialSubtypeReductionNoStructuralCheck(target=es2015).js b/tests/baselines/reference/trivialSubtypeReductionNoStructuralCheck(target=es2015).js new file mode 100644 index 0000000000000..1fc443c4f00ed --- /dev/null +++ b/tests/baselines/reference/trivialSubtypeReductionNoStructuralCheck(target=es2015).js @@ -0,0 +1,23 @@ +//// [tests/cases/compiler/trivialSubtypeReductionNoStructuralCheck.ts] //// + +//// [trivialSubtypeReductionNoStructuralCheck.ts] +declare const props: WizardStepProps; +export class Wizard { + get steps() { + return { + wizard: this, + ...props, + } as WizardStepProps; + } +} + +export interface WizardStepProps { + wizard?: Wizard; +} + +//// [trivialSubtypeReductionNoStructuralCheck.js] +export class Wizard { + get steps() { + return Object.assign({ wizard: this }, props); + } +} diff --git a/tests/baselines/reference/trivialSubtypeReductionNoStructuralCheck.symbols b/tests/baselines/reference/trivialSubtypeReductionNoStructuralCheck(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/trivialSubtypeReductionNoStructuralCheck.symbols rename to tests/baselines/reference/trivialSubtypeReductionNoStructuralCheck(target=es2015).symbols diff --git a/tests/baselines/reference/trivialSubtypeReductionNoStructuralCheck.types b/tests/baselines/reference/trivialSubtypeReductionNoStructuralCheck(target=es2015).types similarity index 100% rename from tests/baselines/reference/trivialSubtypeReductionNoStructuralCheck.types rename to tests/baselines/reference/trivialSubtypeReductionNoStructuralCheck(target=es2015).types diff --git a/tests/baselines/reference/trivialSubtypeReductionNoStructuralCheck(target=es5).errors.txt b/tests/baselines/reference/trivialSubtypeReductionNoStructuralCheck(target=es5).errors.txt new file mode 100644 index 0000000000000..fe164aeca2ca7 --- /dev/null +++ b/tests/baselines/reference/trivialSubtypeReductionNoStructuralCheck(target=es5).errors.txt @@ -0,0 +1,19 @@ +trivialSubtypeReductionNoStructuralCheck.ts(3,7): error TS7023: 'steps' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions. + + +==== trivialSubtypeReductionNoStructuralCheck.ts (1 errors) ==== + declare const props: WizardStepProps; + export class Wizard { + get steps() { + ~~~~~ +!!! error TS7023: 'steps' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions. + return { + wizard: this, + ...props, + } as WizardStepProps; + } + } + + export interface WizardStepProps { + wizard?: Wizard; + } \ No newline at end of file diff --git a/tests/baselines/reference/trivialSubtypeReductionNoStructuralCheck.js b/tests/baselines/reference/trivialSubtypeReductionNoStructuralCheck(target=es5).js similarity index 100% rename from tests/baselines/reference/trivialSubtypeReductionNoStructuralCheck.js rename to tests/baselines/reference/trivialSubtypeReductionNoStructuralCheck(target=es5).js diff --git a/tests/baselines/reference/trivialSubtypeReductionNoStructuralCheck(target=es5).symbols b/tests/baselines/reference/trivialSubtypeReductionNoStructuralCheck(target=es5).symbols new file mode 100644 index 0000000000000..7c7f1d08dcf2e --- /dev/null +++ b/tests/baselines/reference/trivialSubtypeReductionNoStructuralCheck(target=es5).symbols @@ -0,0 +1,33 @@ +//// [tests/cases/compiler/trivialSubtypeReductionNoStructuralCheck.ts] //// + +=== trivialSubtypeReductionNoStructuralCheck.ts === +declare const props: WizardStepProps; +>props : Symbol(props, Decl(trivialSubtypeReductionNoStructuralCheck.ts, 0, 13)) +>WizardStepProps : Symbol(WizardStepProps, Decl(trivialSubtypeReductionNoStructuralCheck.ts, 8, 1)) + +export class Wizard { +>Wizard : Symbol(Wizard, Decl(trivialSubtypeReductionNoStructuralCheck.ts, 0, 37)) + + get steps() { +>steps : Symbol(Wizard.steps, Decl(trivialSubtypeReductionNoStructuralCheck.ts, 1, 21)) + + return { + wizard: this, +>wizard : Symbol(wizard, Decl(trivialSubtypeReductionNoStructuralCheck.ts, 3, 12)) +>this : Symbol(Wizard, Decl(trivialSubtypeReductionNoStructuralCheck.ts, 0, 37)) + + ...props, +>props : Symbol(props, Decl(trivialSubtypeReductionNoStructuralCheck.ts, 0, 13)) + + } as WizardStepProps; +>WizardStepProps : Symbol(WizardStepProps, Decl(trivialSubtypeReductionNoStructuralCheck.ts, 8, 1)) + } +} + +export interface WizardStepProps { +>WizardStepProps : Symbol(WizardStepProps, Decl(trivialSubtypeReductionNoStructuralCheck.ts, 8, 1)) + + wizard?: Wizard; +>wizard : Symbol(WizardStepProps.wizard, Decl(trivialSubtypeReductionNoStructuralCheck.ts, 10, 34)) +>Wizard : Symbol(Wizard, Decl(trivialSubtypeReductionNoStructuralCheck.ts, 0, 37)) +} diff --git a/tests/baselines/reference/trivialSubtypeReductionNoStructuralCheck(target=es5).types b/tests/baselines/reference/trivialSubtypeReductionNoStructuralCheck(target=es5).types new file mode 100644 index 0000000000000..ea7aa086e8cd9 --- /dev/null +++ b/tests/baselines/reference/trivialSubtypeReductionNoStructuralCheck(target=es5).types @@ -0,0 +1,40 @@ +//// [tests/cases/compiler/trivialSubtypeReductionNoStructuralCheck.ts] //// + +=== trivialSubtypeReductionNoStructuralCheck.ts === +declare const props: WizardStepProps; +>props : WizardStepProps +> : ^^^^^^^^^^^^^^^ + +export class Wizard { +>Wizard : Wizard +> : ^^^^^^ + + get steps() { +>steps : any +> : ^^^ + + return { +>{ wizard: this, ...props, } as WizardStepProps : WizardStepProps +> : ^^^^^^^^^^^^^^^ +>{ wizard: this, ...props, } : { wizard: Wizard; } +> : ^^^^^^^^^^ ^^^ + + wizard: this, +>wizard : this +> : ^^^^ +>this : this +> : ^^^^ + + ...props, +>props : WizardStepProps +> : ^^^^^^^^^^^^^^^ + + } as WizardStepProps; + } +} + +export interface WizardStepProps { + wizard?: Wizard; +>wizard : Wizard | undefined +> : ^^^^^^^^^^^^^^^^^^ +} diff --git a/tests/baselines/reference/trivialSubtypeReductionNoStructuralCheck2(target=es2015).js b/tests/baselines/reference/trivialSubtypeReductionNoStructuralCheck2(target=es2015).js new file mode 100644 index 0000000000000..24188b423c8e0 --- /dev/null +++ b/tests/baselines/reference/trivialSubtypeReductionNoStructuralCheck2(target=es2015).js @@ -0,0 +1,23 @@ +//// [tests/cases/compiler/trivialSubtypeReductionNoStructuralCheck2.ts] //// + +//// [trivialSubtypeReductionNoStructuralCheck2.ts] +declare const props: WizardStepProps; +export class Wizard { + get steps() { + return { + wizard: this as Wizard, + ...props, + } as WizardStepProps; + } +} + +export interface WizardStepProps { + wizard?: Wizard; +} + +//// [trivialSubtypeReductionNoStructuralCheck2.js] +export class Wizard { + get steps() { + return Object.assign({ wizard: this }, props); + } +} diff --git a/tests/baselines/reference/trivialSubtypeReductionNoStructuralCheck2.symbols b/tests/baselines/reference/trivialSubtypeReductionNoStructuralCheck2(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/trivialSubtypeReductionNoStructuralCheck2.symbols rename to tests/baselines/reference/trivialSubtypeReductionNoStructuralCheck2(target=es2015).symbols diff --git a/tests/baselines/reference/trivialSubtypeReductionNoStructuralCheck2.types b/tests/baselines/reference/trivialSubtypeReductionNoStructuralCheck2(target=es2015).types similarity index 100% rename from tests/baselines/reference/trivialSubtypeReductionNoStructuralCheck2.types rename to tests/baselines/reference/trivialSubtypeReductionNoStructuralCheck2(target=es2015).types diff --git a/tests/baselines/reference/trivialSubtypeReductionNoStructuralCheck2.js b/tests/baselines/reference/trivialSubtypeReductionNoStructuralCheck2(target=es5).js similarity index 100% rename from tests/baselines/reference/trivialSubtypeReductionNoStructuralCheck2.js rename to tests/baselines/reference/trivialSubtypeReductionNoStructuralCheck2(target=es5).js diff --git a/tests/baselines/reference/trivialSubtypeReductionNoStructuralCheck2(target=es5).symbols b/tests/baselines/reference/trivialSubtypeReductionNoStructuralCheck2(target=es5).symbols new file mode 100644 index 0000000000000..12570aa06918f --- /dev/null +++ b/tests/baselines/reference/trivialSubtypeReductionNoStructuralCheck2(target=es5).symbols @@ -0,0 +1,34 @@ +//// [tests/cases/compiler/trivialSubtypeReductionNoStructuralCheck2.ts] //// + +=== trivialSubtypeReductionNoStructuralCheck2.ts === +declare const props: WizardStepProps; +>props : Symbol(props, Decl(trivialSubtypeReductionNoStructuralCheck2.ts, 0, 13)) +>WizardStepProps : Symbol(WizardStepProps, Decl(trivialSubtypeReductionNoStructuralCheck2.ts, 8, 1)) + +export class Wizard { +>Wizard : Symbol(Wizard, Decl(trivialSubtypeReductionNoStructuralCheck2.ts, 0, 37)) + + get steps() { +>steps : Symbol(Wizard.steps, Decl(trivialSubtypeReductionNoStructuralCheck2.ts, 1, 21)) + + return { + wizard: this as Wizard, +>wizard : Symbol(wizard, Decl(trivialSubtypeReductionNoStructuralCheck2.ts, 3, 12)) +>this : Symbol(Wizard, Decl(trivialSubtypeReductionNoStructuralCheck2.ts, 0, 37)) +>Wizard : Symbol(Wizard, Decl(trivialSubtypeReductionNoStructuralCheck2.ts, 0, 37)) + + ...props, +>props : Symbol(props, Decl(trivialSubtypeReductionNoStructuralCheck2.ts, 0, 13)) + + } as WizardStepProps; +>WizardStepProps : Symbol(WizardStepProps, Decl(trivialSubtypeReductionNoStructuralCheck2.ts, 8, 1)) + } +} + +export interface WizardStepProps { +>WizardStepProps : Symbol(WizardStepProps, Decl(trivialSubtypeReductionNoStructuralCheck2.ts, 8, 1)) + + wizard?: Wizard; +>wizard : Symbol(WizardStepProps.wizard, Decl(trivialSubtypeReductionNoStructuralCheck2.ts, 10, 34)) +>Wizard : Symbol(Wizard, Decl(trivialSubtypeReductionNoStructuralCheck2.ts, 0, 37)) +} diff --git a/tests/baselines/reference/trivialSubtypeReductionNoStructuralCheck2(target=es5).types b/tests/baselines/reference/trivialSubtypeReductionNoStructuralCheck2(target=es5).types new file mode 100644 index 0000000000000..4def691542e8c --- /dev/null +++ b/tests/baselines/reference/trivialSubtypeReductionNoStructuralCheck2(target=es5).types @@ -0,0 +1,42 @@ +//// [tests/cases/compiler/trivialSubtypeReductionNoStructuralCheck2.ts] //// + +=== trivialSubtypeReductionNoStructuralCheck2.ts === +declare const props: WizardStepProps; +>props : WizardStepProps +> : ^^^^^^^^^^^^^^^ + +export class Wizard { +>Wizard : Wizard +> : ^^^^^^ + + get steps() { +>steps : WizardStepProps +> : ^^^^^^^^^^^^^^^ + + return { +>{ wizard: this as Wizard, ...props, } as WizardStepProps : WizardStepProps +> : ^^^^^^^^^^^^^^^ +>{ wizard: this as Wizard, ...props, } : { wizard: Wizard; } +> : ^^^^^^^^^^ ^^^ + + wizard: this as Wizard, +>wizard : Wizard +> : ^^^^^^ +>this as Wizard : Wizard +> : ^^^^^^ +>this : this +> : ^^^^ + + ...props, +>props : WizardStepProps +> : ^^^^^^^^^^^^^^^ + + } as WizardStepProps; + } +} + +export interface WizardStepProps { + wizard?: Wizard; +>wizard : Wizard | undefined +> : ^^^^^^^^^^^^^^^^^^ +} diff --git a/tests/baselines/reference/tsxPreserveEmit1.errors.txt b/tests/baselines/reference/tsxPreserveEmit1(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/tsxPreserveEmit1.errors.txt rename to tests/baselines/reference/tsxPreserveEmit1(target=es2015).errors.txt diff --git a/tests/baselines/reference/tsxPreserveEmit1.js b/tests/baselines/reference/tsxPreserveEmit1(target=es2015).js similarity index 100% rename from tests/baselines/reference/tsxPreserveEmit1.js rename to tests/baselines/reference/tsxPreserveEmit1(target=es2015).js diff --git a/tests/baselines/reference/tsxPreserveEmit1.symbols b/tests/baselines/reference/tsxPreserveEmit1(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/tsxPreserveEmit1.symbols rename to tests/baselines/reference/tsxPreserveEmit1(target=es2015).symbols diff --git a/tests/baselines/reference/tsxPreserveEmit1.types b/tests/baselines/reference/tsxPreserveEmit1(target=es2015).types similarity index 100% rename from tests/baselines/reference/tsxPreserveEmit1.types rename to tests/baselines/reference/tsxPreserveEmit1(target=es2015).types diff --git a/tests/baselines/reference/tsxPreserveEmit1(target=es5).errors.txt b/tests/baselines/reference/tsxPreserveEmit1(target=es5).errors.txt new file mode 100644 index 0000000000000..cad606d8c3434 --- /dev/null +++ b/tests/baselines/reference/tsxPreserveEmit1(target=es5).errors.txt @@ -0,0 +1,35 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== test.tsx (0 errors) ==== + // Should emit 'react-router' in the AMD dependency list + import React = require('react'); + import ReactRouter = require('react-router'); + + import Route = ReactRouter.Route; + + var routes1 = ; + + namespace M { + export var X: any; + } + namespace M { + // Should emit 'M.X' in both opening and closing tags + var y = ; + } + +==== react.d.ts (0 errors) ==== + declare module 'react' { + var x: any; + export = x; + } + + declare namespace ReactRouter { + var Route: any; + interface Thing { } + } + declare module 'react-router' { + export = ReactRouter; + } + \ No newline at end of file diff --git a/tests/baselines/reference/tsxPreserveEmit1(target=es5).js b/tests/baselines/reference/tsxPreserveEmit1(target=es5).js new file mode 100644 index 0000000000000..4afc9532fdde7 --- /dev/null +++ b/tests/baselines/reference/tsxPreserveEmit1(target=es5).js @@ -0,0 +1,48 @@ +//// [tests/cases/conformance/jsx/tsxPreserveEmit1.tsx] //// + +//// [react.d.ts] +declare module 'react' { + var x: any; + export = x; +} + +declare namespace ReactRouter { + var Route: any; + interface Thing { } +} +declare module 'react-router' { + export = ReactRouter; +} + +//// [test.tsx] +// Should emit 'react-router' in the AMD dependency list +import React = require('react'); +import ReactRouter = require('react-router'); + +import Route = ReactRouter.Route; + +var routes1 = ; + +namespace M { + export var X: any; +} +namespace M { + // Should emit 'M.X' in both opening and closing tags + var y = ; +} + + +//// [test.jsx] +define(["require", "exports", "react", "react-router"], function (require, exports, React, ReactRouter) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var Route = ReactRouter.Route; + var routes1 = ; + var M; + (function (M) { + })(M || (M = {})); + (function (M) { + // Should emit 'M.X' in both opening and closing tags + var y = ; + })(M || (M = {})); +}); diff --git a/tests/baselines/reference/tsxPreserveEmit1(target=es5).symbols b/tests/baselines/reference/tsxPreserveEmit1(target=es5).symbols new file mode 100644 index 0000000000000..055cbc86d8724 --- /dev/null +++ b/tests/baselines/reference/tsxPreserveEmit1(target=es5).symbols @@ -0,0 +1,62 @@ +//// [tests/cases/conformance/jsx/tsxPreserveEmit1.tsx] //// + +=== test.tsx === +// Should emit 'react-router' in the AMD dependency list +import React = require('react'); +>React : Symbol(React, Decl(test.tsx, 0, 0)) + +import ReactRouter = require('react-router'); +>ReactRouter : Symbol(ReactRouter, Decl(test.tsx, 1, 32)) + +import Route = ReactRouter.Route; +>Route : Symbol(Route, Decl(test.tsx, 2, 45)) +>ReactRouter : Symbol(ReactRouter, Decl(test.tsx, 1, 32)) +>Route : Symbol(ReactRouter.Route, Decl(react.d.ts, 6, 4)) + +var routes1 = ; +>routes1 : Symbol(routes1, Decl(test.tsx, 6, 3)) +>Route : Symbol(Route, Decl(test.tsx, 2, 45)) + +namespace M { +>M : Symbol(M, Decl(test.tsx, 6, 24), Decl(test.tsx, 10, 1)) + + export var X: any; +>X : Symbol(X, Decl(test.tsx, 9, 11)) +} +namespace M { +>M : Symbol(M, Decl(test.tsx, 6, 24), Decl(test.tsx, 10, 1)) + + // Should emit 'M.X' in both opening and closing tags + var y = ; +>y : Symbol(y, Decl(test.tsx, 13, 4)) +>X : Symbol(X, Decl(test.tsx, 9, 11)) +>X : Symbol(X, Decl(test.tsx, 9, 11)) +} + +=== react.d.ts === +declare module 'react' { +>'react' : Symbol("react", Decl(react.d.ts, 0, 0)) + + var x: any; +>x : Symbol(x, Decl(react.d.ts, 1, 4)) + + export = x; +>x : Symbol(x, Decl(react.d.ts, 1, 4)) +} + +declare namespace ReactRouter { +>ReactRouter : Symbol(ReactRouter, Decl(react.d.ts, 3, 1)) + + var Route: any; +>Route : Symbol(Route, Decl(react.d.ts, 6, 4)) + + interface Thing { } +>Thing : Symbol(Thing, Decl(react.d.ts, 6, 16)) +} +declare module 'react-router' { +>'react-router' : Symbol("react-router", Decl(react.d.ts, 8, 1)) + + export = ReactRouter; +>ReactRouter : Symbol(ReactRouter, Decl(react.d.ts, 3, 1)) +} + diff --git a/tests/baselines/reference/tsxPreserveEmit1(target=es5).types b/tests/baselines/reference/tsxPreserveEmit1(target=es5).types new file mode 100644 index 0000000000000..878742f74c95a --- /dev/null +++ b/tests/baselines/reference/tsxPreserveEmit1(target=es5).types @@ -0,0 +1,85 @@ +//// [tests/cases/conformance/jsx/tsxPreserveEmit1.tsx] //// + +=== test.tsx === +// Should emit 'react-router' in the AMD dependency list +import React = require('react'); +>React : any +> : ^^^ + +import ReactRouter = require('react-router'); +>ReactRouter : typeof ReactRouter +> : ^^^^^^^^^^^^^^^^^^ + +import Route = ReactRouter.Route; +>Route : any +> : ^^^ +>ReactRouter : typeof ReactRouter +> : ^^^^^^^^^^^^^^^^^^ +>Route : any +> : ^^^ + +var routes1 = ; +>routes1 : any +> : ^^^ +> : any +> : ^^^ +>Route : any +> : ^^^ + +namespace M { +>M : typeof M +> : ^^^^^^^^ + + export var X: any; +>X : any +> : ^^^ +} +namespace M { +>M : typeof M +> : ^^^^^^^^ + + // Should emit 'M.X' in both opening and closing tags + var y = ; +>y : any +> : ^^^ +> : any +> : ^^^ +>X : any +> : ^^^ +>X : any +> : ^^^ +} + +=== react.d.ts === +declare module 'react' { +>'react' : typeof import("react") +> : ^^^^^^^^^^^^^^^^^^^^^^ + + var x: any; +>x : any +> : ^^^ + + export = x; +>x : any +> : ^^^ +} + +declare namespace ReactRouter { +>ReactRouter : typeof ReactRouter +> : ^^^^^^^^^^^^^^^^^^ + + var Route: any; +>Route : any +> : ^^^ + + interface Thing { } +} +declare module 'react-router' { +>'react-router' : typeof import("react-router") +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + export = ReactRouter; +>ReactRouter : typeof ReactRouter +> : ^^^^^^^^^^^^^^^^^^ +} + diff --git a/tests/baselines/reference/tsxPreserveEmit2.errors.txt b/tests/baselines/reference/tsxPreserveEmit2(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/tsxPreserveEmit2.errors.txt rename to tests/baselines/reference/tsxPreserveEmit2(target=es2015).errors.txt diff --git a/tests/baselines/reference/tsxPreserveEmit2.js b/tests/baselines/reference/tsxPreserveEmit2(target=es2015).js similarity index 100% rename from tests/baselines/reference/tsxPreserveEmit2.js rename to tests/baselines/reference/tsxPreserveEmit2(target=es2015).js diff --git a/tests/baselines/reference/tsxPreserveEmit2.symbols b/tests/baselines/reference/tsxPreserveEmit2(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/tsxPreserveEmit2.symbols rename to tests/baselines/reference/tsxPreserveEmit2(target=es2015).symbols diff --git a/tests/baselines/reference/tsxPreserveEmit2.types b/tests/baselines/reference/tsxPreserveEmit2(target=es2015).types similarity index 100% rename from tests/baselines/reference/tsxPreserveEmit2.types rename to tests/baselines/reference/tsxPreserveEmit2(target=es2015).types diff --git a/tests/baselines/reference/tsxPreserveEmit2(target=es5).errors.txt b/tests/baselines/reference/tsxPreserveEmit2(target=es5).errors.txt new file mode 100644 index 0000000000000..352e49180d059 --- /dev/null +++ b/tests/baselines/reference/tsxPreserveEmit2(target=es5).errors.txt @@ -0,0 +1,8 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== test.tsx (0 errors) ==== + var Route: any; + var routes1 = ; + \ No newline at end of file diff --git a/tests/baselines/reference/tsxPreserveEmit2(target=es5).js b/tests/baselines/reference/tsxPreserveEmit2(target=es5).js new file mode 100644 index 0000000000000..7a2062277d1b6 --- /dev/null +++ b/tests/baselines/reference/tsxPreserveEmit2(target=es5).js @@ -0,0 +1,10 @@ +//// [tests/cases/conformance/jsx/tsxPreserveEmit2.tsx] //// + +//// [test.tsx] +var Route: any; +var routes1 = ; + + +//// [test.jsx] +var Route; +var routes1 = ; diff --git a/tests/baselines/reference/tsxPreserveEmit2(target=es5).symbols b/tests/baselines/reference/tsxPreserveEmit2(target=es5).symbols new file mode 100644 index 0000000000000..2814b37a7ff86 --- /dev/null +++ b/tests/baselines/reference/tsxPreserveEmit2(target=es5).symbols @@ -0,0 +1,10 @@ +//// [tests/cases/conformance/jsx/tsxPreserveEmit2.tsx] //// + +=== test.tsx === +var Route: any; +>Route : Symbol(Route, Decl(test.tsx, 0, 3)) + +var routes1 = ; +>routes1 : Symbol(routes1, Decl(test.tsx, 1, 3)) +>Route : Symbol(Route, Decl(test.tsx, 0, 3)) + diff --git a/tests/baselines/reference/tsxPreserveEmit2(target=es5).types b/tests/baselines/reference/tsxPreserveEmit2(target=es5).types new file mode 100644 index 0000000000000..7d04b8e11f400 --- /dev/null +++ b/tests/baselines/reference/tsxPreserveEmit2(target=es5).types @@ -0,0 +1,15 @@ +//// [tests/cases/conformance/jsx/tsxPreserveEmit2.tsx] //// + +=== test.tsx === +var Route: any; +>Route : any +> : ^^^ + +var routes1 = ; +>routes1 : any +> : ^^^ +> : any +> : ^^^ +>Route : any +> : ^^^ + diff --git a/tests/baselines/reference/twoAccessorsWithSameName.errors.txt b/tests/baselines/reference/twoAccessorsWithSameName(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/twoAccessorsWithSameName.errors.txt rename to tests/baselines/reference/twoAccessorsWithSameName(target=es2015).errors.txt diff --git a/tests/baselines/reference/twoAccessorsWithSameName(target=es2015).js b/tests/baselines/reference/twoAccessorsWithSameName(target=es2015).js new file mode 100644 index 0000000000000..ecc5047023be6 --- /dev/null +++ b/tests/baselines/reference/twoAccessorsWithSameName(target=es2015).js @@ -0,0 +1,68 @@ +//// [tests/cases/conformance/classes/propertyMemberDeclarations/twoAccessorsWithSameName.ts] //// + +//// [twoAccessorsWithSameName.ts] +class C { + get x() { return 1; } + get x() { return 1; } // error +} + +class D { + set x(v) { } + set x(v) { } // error +} + +class E { + get x() { + return 1; + } + set x(v) { } +} + +var x = { + get x() { + return 1; + }, + + // error + get x() { + return 1; + } +} + +var y = { + get x() { + return 1; + }, + set x(v) { } +} + +//// [twoAccessorsWithSameName.js] +class C { + get x() { return 1; } + get x() { return 1; } // error +} +class D { + set x(v) { } + set x(v) { } // error +} +class E { + get x() { + return 1; + } + set x(v) { } +} +var x = { + get x() { + return 1; + }, + // error + get x() { + return 1; + } +}; +var y = { + get x() { + return 1; + }, + set x(v) { } +}; diff --git a/tests/baselines/reference/twoAccessorsWithSameName.symbols b/tests/baselines/reference/twoAccessorsWithSameName(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/twoAccessorsWithSameName.symbols rename to tests/baselines/reference/twoAccessorsWithSameName(target=es2015).symbols diff --git a/tests/baselines/reference/twoAccessorsWithSameName.types b/tests/baselines/reference/twoAccessorsWithSameName(target=es2015).types similarity index 100% rename from tests/baselines/reference/twoAccessorsWithSameName.types rename to tests/baselines/reference/twoAccessorsWithSameName(target=es2015).types diff --git a/tests/baselines/reference/twoAccessorsWithSameName(target=es5).errors.txt b/tests/baselines/reference/twoAccessorsWithSameName(target=es5).errors.txt new file mode 100644 index 0000000000000..cbe9ec18d7a90 --- /dev/null +++ b/tests/baselines/reference/twoAccessorsWithSameName(target=es5).errors.txt @@ -0,0 +1,58 @@ +twoAccessorsWithSameName.ts(2,9): error TS2300: Duplicate identifier 'x'. +twoAccessorsWithSameName.ts(3,9): error TS2300: Duplicate identifier 'x'. +twoAccessorsWithSameName.ts(7,9): error TS2300: Duplicate identifier 'x'. +twoAccessorsWithSameName.ts(8,9): error TS2300: Duplicate identifier 'x'. +twoAccessorsWithSameName.ts(19,9): error TS2300: Duplicate identifier 'x'. +twoAccessorsWithSameName.ts(24,9): error TS1118: An object literal cannot have multiple get/set accessors with the same name. +twoAccessorsWithSameName.ts(24,9): error TS2300: Duplicate identifier 'x'. + + +==== twoAccessorsWithSameName.ts (7 errors) ==== + class C { + get x() { return 1; } + ~ +!!! error TS2300: Duplicate identifier 'x'. + get x() { return 1; } // error + ~ +!!! error TS2300: Duplicate identifier 'x'. + } + + class D { + set x(v) { } + ~ +!!! error TS2300: Duplicate identifier 'x'. + set x(v) { } // error + ~ +!!! error TS2300: Duplicate identifier 'x'. + } + + class E { + get x() { + return 1; + } + set x(v) { } + } + + var x = { + get x() { + ~ +!!! error TS2300: Duplicate identifier 'x'. + return 1; + }, + + // error + get x() { + ~ +!!! error TS1118: An object literal cannot have multiple get/set accessors with the same name. + ~ +!!! error TS2300: Duplicate identifier 'x'. + return 1; + } + } + + var y = { + get x() { + return 1; + }, + set x(v) { } + } \ No newline at end of file diff --git a/tests/baselines/reference/twoAccessorsWithSameName.js b/tests/baselines/reference/twoAccessorsWithSameName(target=es5).js similarity index 100% rename from tests/baselines/reference/twoAccessorsWithSameName.js rename to tests/baselines/reference/twoAccessorsWithSameName(target=es5).js diff --git a/tests/baselines/reference/twoAccessorsWithSameName(target=es5).symbols b/tests/baselines/reference/twoAccessorsWithSameName(target=es5).symbols new file mode 100644 index 0000000000000..18228caace0fb --- /dev/null +++ b/tests/baselines/reference/twoAccessorsWithSameName(target=es5).symbols @@ -0,0 +1,67 @@ +//// [tests/cases/conformance/classes/propertyMemberDeclarations/twoAccessorsWithSameName.ts] //// + +=== twoAccessorsWithSameName.ts === +class C { +>C : Symbol(C, Decl(twoAccessorsWithSameName.ts, 0, 0)) + + get x() { return 1; } +>x : Symbol(C.x, Decl(twoAccessorsWithSameName.ts, 0, 9)) + + get x() { return 1; } // error +>x : Symbol(C.x, Decl(twoAccessorsWithSameName.ts, 1, 25)) +} + +class D { +>D : Symbol(D, Decl(twoAccessorsWithSameName.ts, 3, 1)) + + set x(v) { } +>x : Symbol(D.x, Decl(twoAccessorsWithSameName.ts, 5, 9)) +>v : Symbol(v, Decl(twoAccessorsWithSameName.ts, 6, 10)) + + set x(v) { } // error +>x : Symbol(D.x, Decl(twoAccessorsWithSameName.ts, 6, 17)) +>v : Symbol(v, Decl(twoAccessorsWithSameName.ts, 7, 10)) +} + +class E { +>E : Symbol(E, Decl(twoAccessorsWithSameName.ts, 8, 1)) + + get x() { +>x : Symbol(E.x, Decl(twoAccessorsWithSameName.ts, 10, 9), Decl(twoAccessorsWithSameName.ts, 13, 5)) + + return 1; + } + set x(v) { } +>x : Symbol(E.x, Decl(twoAccessorsWithSameName.ts, 10, 9), Decl(twoAccessorsWithSameName.ts, 13, 5)) +>v : Symbol(v, Decl(twoAccessorsWithSameName.ts, 14, 10)) +} + +var x = { +>x : Symbol(x, Decl(twoAccessorsWithSameName.ts, 17, 3)) + + get x() { +>x : Symbol(x, Decl(twoAccessorsWithSameName.ts, 17, 9)) + + return 1; + }, + + // error + get x() { +>x : Symbol(x, Decl(twoAccessorsWithSameName.ts, 20, 6)) + + return 1; + } +} + +var y = { +>y : Symbol(y, Decl(twoAccessorsWithSameName.ts, 28, 3)) + + get x() { +>x : Symbol(x, Decl(twoAccessorsWithSameName.ts, 28, 9), Decl(twoAccessorsWithSameName.ts, 31, 6)) + + return 1; + }, + set x(v) { } +>x : Symbol(x, Decl(twoAccessorsWithSameName.ts, 28, 9), Decl(twoAccessorsWithSameName.ts, 31, 6)) +>v : Symbol(v, Decl(twoAccessorsWithSameName.ts, 32, 10)) +} diff --git a/tests/baselines/reference/twoAccessorsWithSameName(target=es5).types b/tests/baselines/reference/twoAccessorsWithSameName(target=es5).types new file mode 100644 index 0000000000000..8eac1a289bc25 --- /dev/null +++ b/tests/baselines/reference/twoAccessorsWithSameName(target=es5).types @@ -0,0 +1,104 @@ +//// [tests/cases/conformance/classes/propertyMemberDeclarations/twoAccessorsWithSameName.ts] //// + +=== twoAccessorsWithSameName.ts === +class C { +>C : C +> : ^ + + get x() { return 1; } +>x : number +> : ^^^^^^ +>1 : 1 +> : ^ + + get x() { return 1; } // error +>x : number +> : ^^^^^^ +>1 : 1 +> : ^ +} + +class D { +>D : D +> : ^ + + set x(v) { } +>x : any +> : ^^^ +>v : any +> : ^^^ + + set x(v) { } // error +>x : any +> : ^^^ +>v : any +> : ^^^ +} + +class E { +>E : E +> : ^ + + get x() { +>x : number +> : ^^^^^^ + + return 1; +>1 : 1 +> : ^ + } + set x(v) { } +>x : number +> : ^^^^^^ +>v : number +> : ^^^^^^ +} + +var x = { +>x : { readonly x: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>{ get x() { return 1; }, // error get x() { return 1; }} : { readonly x: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^ + + get x() { +>x : number +> : ^^^^^^ + + return 1; +>1 : 1 +> : ^ + + }, + + // error + get x() { +>x : number +> : ^^^^^^ + + return 1; +>1 : 1 +> : ^ + } +} + +var y = { +>y : { x: number; } +> : ^^^^^^^^^^^^^^ +>{ get x() { return 1; }, set x(v) { }} : { x: number; } +> : ^^^^^^^^^^^^^^ + + get x() { +>x : number +> : ^^^^^^ + + return 1; +>1 : 1 +> : ^ + + }, + set x(v) { } +>x : number +> : ^^^^^^ +>v : number +> : ^^^^^^ +} diff --git a/tests/baselines/reference/typeAliasDeclarationEmit.errors.txt b/tests/baselines/reference/typeAliasDeclarationEmit(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/typeAliasDeclarationEmit.errors.txt rename to tests/baselines/reference/typeAliasDeclarationEmit(target=es2015).errors.txt diff --git a/tests/baselines/reference/typeAliasDeclarationEmit.js b/tests/baselines/reference/typeAliasDeclarationEmit(target=es2015).js similarity index 100% rename from tests/baselines/reference/typeAliasDeclarationEmit.js rename to tests/baselines/reference/typeAliasDeclarationEmit(target=es2015).js diff --git a/tests/baselines/reference/typeAliasDeclarationEmit.symbols b/tests/baselines/reference/typeAliasDeclarationEmit(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/typeAliasDeclarationEmit.symbols rename to tests/baselines/reference/typeAliasDeclarationEmit(target=es2015).symbols diff --git a/tests/baselines/reference/typeAliasDeclarationEmit.types b/tests/baselines/reference/typeAliasDeclarationEmit(target=es2015).types similarity index 100% rename from tests/baselines/reference/typeAliasDeclarationEmit.types rename to tests/baselines/reference/typeAliasDeclarationEmit(target=es2015).types diff --git a/tests/baselines/reference/typeAliasDeclarationEmit(target=es5).errors.txt b/tests/baselines/reference/typeAliasDeclarationEmit(target=es5).errors.txt new file mode 100644 index 0000000000000..fea09b9ba2ca4 --- /dev/null +++ b/tests/baselines/reference/typeAliasDeclarationEmit(target=es5).errors.txt @@ -0,0 +1,9 @@ +typeAliasDeclarationEmit.ts(3,37): error TS2314: Generic type 'callback' requires 1 type argument(s). + + +==== typeAliasDeclarationEmit.ts (1 errors) ==== + export type callback = () => T; + + export type CallbackArray = () => T; + ~~~~~~~~ +!!! error TS2314: Generic type 'callback' requires 1 type argument(s). \ No newline at end of file diff --git a/tests/baselines/reference/typeAliasDeclarationEmit(target=es5).js b/tests/baselines/reference/typeAliasDeclarationEmit(target=es5).js new file mode 100644 index 0000000000000..8413241fabb1f --- /dev/null +++ b/tests/baselines/reference/typeAliasDeclarationEmit(target=es5).js @@ -0,0 +1,15 @@ +//// [tests/cases/compiler/typeAliasDeclarationEmit.ts] //// + +//// [typeAliasDeclarationEmit.ts] +export type callback = () => T; + +export type CallbackArray = () => T; + +//// [typeAliasDeclarationEmit.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + + +//// [typeAliasDeclarationEmit.d.ts] +export type callback = () => T; +export type CallbackArray = () => T; diff --git a/tests/baselines/reference/typeAliasDeclarationEmit(target=es5).symbols b/tests/baselines/reference/typeAliasDeclarationEmit(target=es5).symbols new file mode 100644 index 0000000000000..f07f6a2727715 --- /dev/null +++ b/tests/baselines/reference/typeAliasDeclarationEmit(target=es5).symbols @@ -0,0 +1,14 @@ +//// [tests/cases/compiler/typeAliasDeclarationEmit.ts] //// + +=== typeAliasDeclarationEmit.ts === +export type callback = () => T; +>callback : Symbol(callback, Decl(typeAliasDeclarationEmit.ts, 0, 0)) +>T : Symbol(T, Decl(typeAliasDeclarationEmit.ts, 0, 21)) +>T : Symbol(T, Decl(typeAliasDeclarationEmit.ts, 0, 21)) + +export type CallbackArray = () => T; +>CallbackArray : Symbol(CallbackArray, Decl(typeAliasDeclarationEmit.ts, 0, 34)) +>T : Symbol(T, Decl(typeAliasDeclarationEmit.ts, 2, 26)) +>callback : Symbol(callback, Decl(typeAliasDeclarationEmit.ts, 0, 0)) +>T : Symbol(T, Decl(typeAliasDeclarationEmit.ts, 2, 26)) + diff --git a/tests/baselines/reference/typeAliasDeclarationEmit(target=es5).types b/tests/baselines/reference/typeAliasDeclarationEmit(target=es5).types new file mode 100644 index 0000000000000..8c5bf2b384f0b --- /dev/null +++ b/tests/baselines/reference/typeAliasDeclarationEmit(target=es5).types @@ -0,0 +1,11 @@ +//// [tests/cases/compiler/typeAliasDeclarationEmit.ts] //// + +=== typeAliasDeclarationEmit.ts === +export type callback = () => T; +>callback : callback +> : ^^^^^^^^^^^ + +export type CallbackArray = () => T; +>CallbackArray : CallbackArray +> : ^^^^^^^^^^^^^^^^ + diff --git a/tests/baselines/reference/typeAliasDeclarationEmit2.errors.txt b/tests/baselines/reference/typeAliasDeclarationEmit2(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/typeAliasDeclarationEmit2.errors.txt rename to tests/baselines/reference/typeAliasDeclarationEmit2(target=es2015).errors.txt diff --git a/tests/baselines/reference/typeAliasDeclarationEmit2.js b/tests/baselines/reference/typeAliasDeclarationEmit2(target=es2015).js similarity index 100% rename from tests/baselines/reference/typeAliasDeclarationEmit2.js rename to tests/baselines/reference/typeAliasDeclarationEmit2(target=es2015).js diff --git a/tests/baselines/reference/typeAliasDeclarationEmit2.symbols b/tests/baselines/reference/typeAliasDeclarationEmit2(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/typeAliasDeclarationEmit2.symbols rename to tests/baselines/reference/typeAliasDeclarationEmit2(target=es2015).symbols diff --git a/tests/baselines/reference/typeAliasDeclarationEmit2.types b/tests/baselines/reference/typeAliasDeclarationEmit2(target=es2015).types similarity index 100% rename from tests/baselines/reference/typeAliasDeclarationEmit2.types rename to tests/baselines/reference/typeAliasDeclarationEmit2(target=es2015).types diff --git a/tests/baselines/reference/typeAliasDeclarationEmit2(target=es5).errors.txt b/tests/baselines/reference/typeAliasDeclarationEmit2(target=es5).errors.txt new file mode 100644 index 0000000000000..f832ebfd15ebd --- /dev/null +++ b/tests/baselines/reference/typeAliasDeclarationEmit2(target=es5).errors.txt @@ -0,0 +1,6 @@ +error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. + + +!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. +==== typeAliasDeclarationEmit2.ts (0 errors) ==== + export type A = { value: a }; \ No newline at end of file diff --git a/tests/baselines/reference/typeAliasDeclarationEmit2(target=es5).js b/tests/baselines/reference/typeAliasDeclarationEmit2(target=es5).js new file mode 100644 index 0000000000000..abfdf221b5947 --- /dev/null +++ b/tests/baselines/reference/typeAliasDeclarationEmit2(target=es5).js @@ -0,0 +1,16 @@ +//// [tests/cases/compiler/typeAliasDeclarationEmit2.ts] //// + +//// [typeAliasDeclarationEmit2.ts] +export type A = { value: a }; + +//// [typeAliasDeclarationEmit2.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); +}); + + +//// [typeAliasDeclarationEmit2.d.ts] +export type A = { + value: a; +}; diff --git a/tests/baselines/reference/typeAliasDeclarationEmit2(target=es5).symbols b/tests/baselines/reference/typeAliasDeclarationEmit2(target=es5).symbols new file mode 100644 index 0000000000000..b39aa15995452 --- /dev/null +++ b/tests/baselines/reference/typeAliasDeclarationEmit2(target=es5).symbols @@ -0,0 +1,9 @@ +//// [tests/cases/compiler/typeAliasDeclarationEmit2.ts] //// + +=== typeAliasDeclarationEmit2.ts === +export type A = { value: a }; +>A : Symbol(A, Decl(typeAliasDeclarationEmit2.ts, 0, 0)) +>a : Symbol(a, Decl(typeAliasDeclarationEmit2.ts, 0, 14)) +>value : Symbol(value, Decl(typeAliasDeclarationEmit2.ts, 0, 20)) +>a : Symbol(a, Decl(typeAliasDeclarationEmit2.ts, 0, 14)) + diff --git a/tests/baselines/reference/typeAliasDeclarationEmit2(target=es5).types b/tests/baselines/reference/typeAliasDeclarationEmit2(target=es5).types new file mode 100644 index 0000000000000..c73db65a61460 --- /dev/null +++ b/tests/baselines/reference/typeAliasDeclarationEmit2(target=es5).types @@ -0,0 +1,9 @@ +//// [tests/cases/compiler/typeAliasDeclarationEmit2.ts] //// + +=== typeAliasDeclarationEmit2.ts === +export type A = { value: a }; +>A : A +> : ^^^^ +>value : a +> : ^ + diff --git a/tests/baselines/reference/typeFromPropertyAssignmentOutOfOrder.symbols b/tests/baselines/reference/typeFromPropertyAssignmentOutOfOrder(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/typeFromPropertyAssignmentOutOfOrder.symbols rename to tests/baselines/reference/typeFromPropertyAssignmentOutOfOrder(target=es2015).symbols diff --git a/tests/baselines/reference/typeFromPropertyAssignmentOutOfOrder.types b/tests/baselines/reference/typeFromPropertyAssignmentOutOfOrder(target=es2015).types similarity index 100% rename from tests/baselines/reference/typeFromPropertyAssignmentOutOfOrder.types rename to tests/baselines/reference/typeFromPropertyAssignmentOutOfOrder(target=es2015).types diff --git a/tests/baselines/reference/typeFromPropertyAssignmentOutOfOrder(target=es5).symbols b/tests/baselines/reference/typeFromPropertyAssignmentOutOfOrder(target=es5).symbols new file mode 100644 index 0000000000000..5222302bf321d --- /dev/null +++ b/tests/baselines/reference/typeFromPropertyAssignmentOutOfOrder(target=es5).symbols @@ -0,0 +1,39 @@ +//// [tests/cases/conformance/salsa/typeFromPropertyAssignmentOutOfOrder.ts] //// + +=== index.js === +First.Item = class I {} +>First.Item : Symbol(First.Item, Decl(index.js, 0, 0)) +>First : Symbol(First, Decl(index.js, 0, 0), Decl(roots.js, 0, 3)) +>Item : Symbol(First.Item, Decl(index.js, 0, 0)) +>I : Symbol(I, Decl(index.js, 0, 12)) + +Common.Object = class extends First.Item {} +>Common.Object : Symbol(Common.Object, Decl(index.js, 0, 23)) +>Common : Symbol(Common, Decl(index.js, 0, 23), Decl(roots.js, 1, 3)) +>Object : Symbol(Common.Object, Decl(index.js, 0, 23)) +>First.Item : Symbol(First.Item, Decl(index.js, 0, 0)) +>First : Symbol(First, Decl(index.js, 0, 0), Decl(roots.js, 0, 3)) +>Item : Symbol(First.Item, Decl(index.js, 0, 0)) + +Workspace.Object = class extends Common.Object {} +>Workspace.Object : Symbol(Workspace.Object, Decl(index.js, 1, 43)) +>Workspace : Symbol(Workspace, Decl(index.js, 1, 43), Decl(roots.js, 2, 3)) +>Object : Symbol(Workspace.Object, Decl(index.js, 1, 43)) +>Common.Object : Symbol(Common.Object, Decl(index.js, 0, 23)) +>Common : Symbol(Common, Decl(index.js, 0, 23), Decl(roots.js, 1, 3)) +>Object : Symbol(Common.Object, Decl(index.js, 0, 23)) + +/** @type {Workspace.Object} */ +var am; +>am : Symbol(am, Decl(index.js, 6, 3)) + +=== roots.js === +var First = {}; +>First : Symbol(First, Decl(index.js, 0, 0), Decl(roots.js, 0, 3)) + +var Common = {}; +>Common : Symbol(Common, Decl(index.js, 0, 23), Decl(roots.js, 1, 3)) + +var Workspace = {}; +>Workspace : Symbol(Workspace, Decl(index.js, 1, 43), Decl(roots.js, 2, 3)) + diff --git a/tests/baselines/reference/typeFromPropertyAssignmentOutOfOrder(target=es5).types b/tests/baselines/reference/typeFromPropertyAssignmentOutOfOrder(target=es5).types new file mode 100644 index 0000000000000..eae511f26c5a2 --- /dev/null +++ b/tests/baselines/reference/typeFromPropertyAssignmentOutOfOrder(target=es5).types @@ -0,0 +1,77 @@ +//// [tests/cases/conformance/salsa/typeFromPropertyAssignmentOutOfOrder.ts] //// + +=== index.js === +First.Item = class I {} +>First.Item = class I {} : typeof I +> : ^^^^^^^^ +>First.Item : typeof I +> : ^^^^^^^^ +>First : typeof First +> : ^^^^^^^^^^^^ +>Item : typeof I +> : ^^^^^^^^ +>class I {} : typeof I +> : ^^^^^^^^ +>I : typeof I +> : ^^^^^^^^ + +Common.Object = class extends First.Item {} +>Common.Object = class extends First.Item {} : typeof Object +> : ^^^^^^^^^^^^^ +>Common.Object : typeof Object +> : ^^^^^^^^^^^^^ +>Common : typeof Common +> : ^^^^^^^^^^^^^ +>Object : typeof Object +> : ^^^^^^^^^^^^^ +>class extends First.Item {} : typeof Object +> : ^^^^^^^^^^^^^ +>First.Item : I +> : ^ +>First : typeof First +> : ^^^^^^^^^^^^ +>Item : typeof I +> : ^^^^^^^^ + +Workspace.Object = class extends Common.Object {} +>Workspace.Object = class extends Common.Object {} : typeof Object +> : ^^^^^^^^^^^^^ +>Workspace.Object : typeof Object +> : ^^^^^^^^^^^^^ +>Workspace : typeof Workspace +> : ^^^^^^^^^^^^^^^^ +>Object : typeof Object +> : ^^^^^^^^^^^^^ +>class extends Common.Object {} : typeof Object +> : ^^^^^^^^^^^^^ +>Common.Object : Object +> : ^^^^^^ +>Common : typeof Common +> : ^^^^^^^^^^^^^ +>Object : typeof Object +> : ^^^^^^^^^^^^^ + +/** @type {Workspace.Object} */ +var am; +>am : Object +> : ^^^^^^ + +=== roots.js === +var First = {}; +>First : typeof First +> : ^^^^^^^^^^^^ +>{} : {} +> : ^^ + +var Common = {}; +>Common : typeof Common +> : ^^^^^^^^^^^^^ +>{} : {} +> : ^^ + +var Workspace = {}; +>Workspace : typeof Workspace +> : ^^^^^^^^^^^^^^^^ +>{} : {} +> : ^^ + diff --git a/tests/baselines/reference/typeGuardOfFormThisMember.errors.txt b/tests/baselines/reference/typeGuardOfFormThisMember(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/typeGuardOfFormThisMember.errors.txt rename to tests/baselines/reference/typeGuardOfFormThisMember(target=es2015).errors.txt diff --git a/tests/baselines/reference/typeGuardOfFormThisMember(target=es2015).js b/tests/baselines/reference/typeGuardOfFormThisMember(target=es2015).js new file mode 100644 index 0000000000000..0de78320ee814 --- /dev/null +++ b/tests/baselines/reference/typeGuardOfFormThisMember(target=es2015).js @@ -0,0 +1,167 @@ +//// [tests/cases/conformance/expressions/typeGuards/typeGuardOfFormThisMember.ts] //// + +//// [typeGuardOfFormThisMember.ts] +// There's a 'File' class in the stdlib, wrap with a namespace to avoid collision +namespace Test { + export class FileSystemObject { + isFSO: this is FileSystemObject; + get isFile(): this is File { + return this instanceof File; + } + set isFile(param) { + // noop + } + get isDirectory(): this is Directory { + return this instanceof Directory; + } + isNetworked: this is (Networked & this); + constructor(public path: string) {} + } + + export class File extends FileSystemObject { + constructor(path: string, public content: string) { super(path); } + } + export class Directory extends FileSystemObject { + children: FileSystemObject[]; + } + export interface Networked { + host: string; + } + + let file: FileSystemObject = new File("foo/bar.txt", "foo"); + file.isNetworked = false; + file.isFSO = file.isFile; + file.isFile = true; + let x = file.isFile; + if (file.isFile) { + file.content; + if (file.isNetworked) { + file.host; + file.content; + } + } + else if (file.isDirectory) { + file.children; + } + else if (file.isNetworked) { + file.host; + } + + interface GenericLeadGuard extends GenericGuard { + lead(): void; + } + + interface GenericFollowerGuard extends GenericGuard { + follow(): void; + } + + interface GenericGuard { + target: T; + isLeader: this is (GenericLeadGuard); + isFollower: this is GenericFollowerGuard; + } + + declare var guard: GenericGuard; + if (guard.isLeader) { + guard.lead(); + } + else if (guard.isFollower) { + guard.follow(); + } + + interface SpecificGuard { + isMoreSpecific: this is MoreSpecificGuard; + } + + interface MoreSpecificGuard extends SpecificGuard { + do(): void; + } + + declare var general: SpecificGuard; + if (general.isMoreSpecific) { + general.do(); + } +} + + +//// [typeGuardOfFormThisMember.js] +// There's a 'File' class in the stdlib, wrap with a namespace to avoid collision +var Test; +(function (Test) { + class FileSystemObject { + get isFile() { + return this instanceof File; + } + set isFile(param) { + // noop + } + get isDirectory() { + return this instanceof Directory; + } + constructor(path) { + this.path = path; + } + } + Test.FileSystemObject = FileSystemObject; + class File extends FileSystemObject { + constructor(path, content) { + super(path); + this.content = content; + } + } + Test.File = File; + class Directory extends FileSystemObject { + } + Test.Directory = Directory; + let file = new File("foo/bar.txt", "foo"); + file.isNetworked = false; + file.isFSO = file.isFile; + file.isFile = true; + let x = file.isFile; + if (file.isFile) { + file.content; + if (file.isNetworked) { + file.host; + file.content; + } + } + else if (file.isDirectory) { + file.children; + } + else if (file.isNetworked) { + file.host; + } + if (guard.isLeader) { + guard.lead(); + } + else if (guard.isFollower) { + guard.follow(); + } + if (general.isMoreSpecific) { + general.do(); + } +})(Test || (Test = {})); + + +//// [typeGuardOfFormThisMember.d.ts] +declare namespace Test { + class FileSystemObject { + path: string; + isFSO: this is FileSystemObject; + get isFile(): this is File; + set isFile(param: this is File); + get isDirectory(): this is Directory; + isNetworked: this is (Networked & this); + constructor(path: string); + } + class File extends FileSystemObject { + content: string; + constructor(path: string, content: string); + } + class Directory extends FileSystemObject { + children: FileSystemObject[]; + } + interface Networked { + host: string; + } +} diff --git a/tests/baselines/reference/typeGuardOfFormThisMember.symbols b/tests/baselines/reference/typeGuardOfFormThisMember(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/typeGuardOfFormThisMember.symbols rename to tests/baselines/reference/typeGuardOfFormThisMember(target=es2015).symbols diff --git a/tests/baselines/reference/typeGuardOfFormThisMember.types b/tests/baselines/reference/typeGuardOfFormThisMember(target=es2015).types similarity index 100% rename from tests/baselines/reference/typeGuardOfFormThisMember.types rename to tests/baselines/reference/typeGuardOfFormThisMember(target=es2015).types diff --git a/tests/baselines/reference/typeGuardOfFormThisMember(target=es5).errors.txt b/tests/baselines/reference/typeGuardOfFormThisMember(target=es5).errors.txt new file mode 100644 index 0000000000000..35aa351318d29 --- /dev/null +++ b/tests/baselines/reference/typeGuardOfFormThisMember(target=es5).errors.txt @@ -0,0 +1,130 @@ +typeGuardOfFormThisMember.ts(4,10): error TS1228: A type predicate is only allowed in return type position for functions and methods. +typeGuardOfFormThisMember.ts(5,17): error TS1228: A type predicate is only allowed in return type position for functions and methods. +typeGuardOfFormThisMember.ts(11,22): error TS1228: A type predicate is only allowed in return type position for functions and methods. +typeGuardOfFormThisMember.ts(14,16): error TS1228: A type predicate is only allowed in return type position for functions and methods. +typeGuardOfFormThisMember.ts(34,8): error TS2339: Property 'content' does not exist on type 'FileSystemObject'. +typeGuardOfFormThisMember.ts(36,9): error TS2339: Property 'host' does not exist on type 'FileSystemObject'. +typeGuardOfFormThisMember.ts(37,9): error TS2339: Property 'content' does not exist on type 'FileSystemObject'. +typeGuardOfFormThisMember.ts(41,8): error TS2339: Property 'children' does not exist on type 'FileSystemObject'. +typeGuardOfFormThisMember.ts(44,8): error TS2339: Property 'host' does not exist on type 'FileSystemObject'. +typeGuardOfFormThisMember.ts(57,13): error TS1228: A type predicate is only allowed in return type position for functions and methods. +typeGuardOfFormThisMember.ts(58,15): error TS1228: A type predicate is only allowed in return type position for functions and methods. +typeGuardOfFormThisMember.ts(63,9): error TS2339: Property 'lead' does not exist on type 'GenericGuard'. +typeGuardOfFormThisMember.ts(66,9): error TS2339: Property 'follow' does not exist on type 'GenericGuard'. +typeGuardOfFormThisMember.ts(70,19): error TS1228: A type predicate is only allowed in return type position for functions and methods. +typeGuardOfFormThisMember.ts(79,11): error TS2339: Property 'do' does not exist on type 'SpecificGuard'. + + +==== typeGuardOfFormThisMember.ts (15 errors) ==== + // There's a 'File' class in the stdlib, wrap with a namespace to avoid collision + namespace Test { + export class FileSystemObject { + isFSO: this is FileSystemObject; + ~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS1228: A type predicate is only allowed in return type position for functions and methods. + get isFile(): this is File { + ~~~~~~~~~~~~ +!!! error TS1228: A type predicate is only allowed in return type position for functions and methods. + return this instanceof File; + } + set isFile(param) { + // noop + } + get isDirectory(): this is Directory { + ~~~~~~~~~~~~~~~~~ +!!! error TS1228: A type predicate is only allowed in return type position for functions and methods. + return this instanceof Directory; + } + isNetworked: this is (Networked & this); + ~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS1228: A type predicate is only allowed in return type position for functions and methods. + constructor(public path: string) {} + } + + export class File extends FileSystemObject { + constructor(path: string, public content: string) { super(path); } + } + export class Directory extends FileSystemObject { + children: FileSystemObject[]; + } + export interface Networked { + host: string; + } + + let file: FileSystemObject = new File("foo/bar.txt", "foo"); + file.isNetworked = false; + file.isFSO = file.isFile; + file.isFile = true; + let x = file.isFile; + if (file.isFile) { + file.content; + ~~~~~~~ +!!! error TS2339: Property 'content' does not exist on type 'FileSystemObject'. + if (file.isNetworked) { + file.host; + ~~~~ +!!! error TS2339: Property 'host' does not exist on type 'FileSystemObject'. + file.content; + ~~~~~~~ +!!! error TS2339: Property 'content' does not exist on type 'FileSystemObject'. + } + } + else if (file.isDirectory) { + file.children; + ~~~~~~~~ +!!! error TS2339: Property 'children' does not exist on type 'FileSystemObject'. + } + else if (file.isNetworked) { + file.host; + ~~~~ +!!! error TS2339: Property 'host' does not exist on type 'FileSystemObject'. + } + + interface GenericLeadGuard extends GenericGuard { + lead(): void; + } + + interface GenericFollowerGuard extends GenericGuard { + follow(): void; + } + + interface GenericGuard { + target: T; + isLeader: this is (GenericLeadGuard); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS1228: A type predicate is only allowed in return type position for functions and methods. + isFollower: this is GenericFollowerGuard; + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS1228: A type predicate is only allowed in return type position for functions and methods. + } + + declare var guard: GenericGuard; + if (guard.isLeader) { + guard.lead(); + ~~~~ +!!! error TS2339: Property 'lead' does not exist on type 'GenericGuard'. + } + else if (guard.isFollower) { + guard.follow(); + ~~~~~~ +!!! error TS2339: Property 'follow' does not exist on type 'GenericGuard'. + } + + interface SpecificGuard { + isMoreSpecific: this is MoreSpecificGuard; + ~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS1228: A type predicate is only allowed in return type position for functions and methods. + } + + interface MoreSpecificGuard extends SpecificGuard { + do(): void; + } + + declare var general: SpecificGuard; + if (general.isMoreSpecific) { + general.do(); + ~~ +!!! error TS2339: Property 'do' does not exist on type 'SpecificGuard'. + } + } + \ No newline at end of file diff --git a/tests/baselines/reference/typeGuardOfFormThisMember.js b/tests/baselines/reference/typeGuardOfFormThisMember(target=es5).js similarity index 100% rename from tests/baselines/reference/typeGuardOfFormThisMember.js rename to tests/baselines/reference/typeGuardOfFormThisMember(target=es5).js diff --git a/tests/baselines/reference/typeGuardOfFormThisMember(target=es5).symbols b/tests/baselines/reference/typeGuardOfFormThisMember(target=es5).symbols new file mode 100644 index 0000000000000..e546c3430e5e5 --- /dev/null +++ b/tests/baselines/reference/typeGuardOfFormThisMember(target=es5).symbols @@ -0,0 +1,226 @@ +//// [tests/cases/conformance/expressions/typeGuards/typeGuardOfFormThisMember.ts] //// + +=== typeGuardOfFormThisMember.ts === +// There's a 'File' class in the stdlib, wrap with a namespace to avoid collision +namespace Test { +>Test : Symbol(Test, Decl(typeGuardOfFormThisMember.ts, 0, 0)) + + export class FileSystemObject { +>FileSystemObject : Symbol(FileSystemObject, Decl(typeGuardOfFormThisMember.ts, 1, 16)) + + isFSO: this is FileSystemObject; +>isFSO : Symbol(FileSystemObject.isFSO, Decl(typeGuardOfFormThisMember.ts, 2, 32)) +>FileSystemObject : Symbol(FileSystemObject, Decl(typeGuardOfFormThisMember.ts, 1, 16)) + + get isFile(): this is File { +>isFile : Symbol(FileSystemObject.isFile, Decl(typeGuardOfFormThisMember.ts, 3, 34), Decl(typeGuardOfFormThisMember.ts, 6, 3)) +>File : Symbol(File, Decl(typeGuardOfFormThisMember.ts, 15, 2)) + + return this instanceof File; +>this : Symbol(FileSystemObject, Decl(typeGuardOfFormThisMember.ts, 1, 16)) +>File : Symbol(File, Decl(typeGuardOfFormThisMember.ts, 15, 2)) + } + set isFile(param) { +>isFile : Symbol(FileSystemObject.isFile, Decl(typeGuardOfFormThisMember.ts, 3, 34), Decl(typeGuardOfFormThisMember.ts, 6, 3)) +>param : Symbol(param, Decl(typeGuardOfFormThisMember.ts, 7, 13)) + + // noop + } + get isDirectory(): this is Directory { +>isDirectory : Symbol(FileSystemObject.isDirectory, Decl(typeGuardOfFormThisMember.ts, 9, 3)) +>Directory : Symbol(Directory, Decl(typeGuardOfFormThisMember.ts, 19, 2)) + + return this instanceof Directory; +>this : Symbol(FileSystemObject, Decl(typeGuardOfFormThisMember.ts, 1, 16)) +>Directory : Symbol(Directory, Decl(typeGuardOfFormThisMember.ts, 19, 2)) + } + isNetworked: this is (Networked & this); +>isNetworked : Symbol(FileSystemObject.isNetworked, Decl(typeGuardOfFormThisMember.ts, 12, 3)) +>Networked : Symbol(Networked, Decl(typeGuardOfFormThisMember.ts, 22, 2)) + + constructor(public path: string) {} +>path : Symbol(FileSystemObject.path, Decl(typeGuardOfFormThisMember.ts, 14, 14)) + } + + export class File extends FileSystemObject { +>File : Symbol(File, Decl(typeGuardOfFormThisMember.ts, 15, 2)) +>FileSystemObject : Symbol(FileSystemObject, Decl(typeGuardOfFormThisMember.ts, 1, 16)) + + constructor(path: string, public content: string) { super(path); } +>path : Symbol(path, Decl(typeGuardOfFormThisMember.ts, 18, 14)) +>content : Symbol(File.content, Decl(typeGuardOfFormThisMember.ts, 18, 27)) +>super : Symbol(FileSystemObject, Decl(typeGuardOfFormThisMember.ts, 1, 16)) +>path : Symbol(path, Decl(typeGuardOfFormThisMember.ts, 18, 14)) + } + export class Directory extends FileSystemObject { +>Directory : Symbol(Directory, Decl(typeGuardOfFormThisMember.ts, 19, 2)) +>FileSystemObject : Symbol(FileSystemObject, Decl(typeGuardOfFormThisMember.ts, 1, 16)) + + children: FileSystemObject[]; +>children : Symbol(Directory.children, Decl(typeGuardOfFormThisMember.ts, 20, 50)) +>FileSystemObject : Symbol(FileSystemObject, Decl(typeGuardOfFormThisMember.ts, 1, 16)) + } + export interface Networked { +>Networked : Symbol(Networked, Decl(typeGuardOfFormThisMember.ts, 22, 2)) + + host: string; +>host : Symbol(Networked.host, Decl(typeGuardOfFormThisMember.ts, 23, 29)) + } + + let file: FileSystemObject = new File("foo/bar.txt", "foo"); +>file : Symbol(file, Decl(typeGuardOfFormThisMember.ts, 27, 4)) +>FileSystemObject : Symbol(FileSystemObject, Decl(typeGuardOfFormThisMember.ts, 1, 16)) +>File : Symbol(File, Decl(typeGuardOfFormThisMember.ts, 15, 2)) + + file.isNetworked = false; +>file.isNetworked : Symbol(FileSystemObject.isNetworked, Decl(typeGuardOfFormThisMember.ts, 12, 3)) +>file : Symbol(file, Decl(typeGuardOfFormThisMember.ts, 27, 4)) +>isNetworked : Symbol(FileSystemObject.isNetworked, Decl(typeGuardOfFormThisMember.ts, 12, 3)) + + file.isFSO = file.isFile; +>file.isFSO : Symbol(FileSystemObject.isFSO, Decl(typeGuardOfFormThisMember.ts, 2, 32)) +>file : Symbol(file, Decl(typeGuardOfFormThisMember.ts, 27, 4)) +>isFSO : Symbol(FileSystemObject.isFSO, Decl(typeGuardOfFormThisMember.ts, 2, 32)) +>file.isFile : Symbol(FileSystemObject.isFile, Decl(typeGuardOfFormThisMember.ts, 3, 34), Decl(typeGuardOfFormThisMember.ts, 6, 3)) +>file : Symbol(file, Decl(typeGuardOfFormThisMember.ts, 27, 4)) +>isFile : Symbol(FileSystemObject.isFile, Decl(typeGuardOfFormThisMember.ts, 3, 34), Decl(typeGuardOfFormThisMember.ts, 6, 3)) + + file.isFile = true; +>file.isFile : Symbol(FileSystemObject.isFile, Decl(typeGuardOfFormThisMember.ts, 3, 34), Decl(typeGuardOfFormThisMember.ts, 6, 3)) +>file : Symbol(file, Decl(typeGuardOfFormThisMember.ts, 27, 4)) +>isFile : Symbol(FileSystemObject.isFile, Decl(typeGuardOfFormThisMember.ts, 3, 34), Decl(typeGuardOfFormThisMember.ts, 6, 3)) + + let x = file.isFile; +>x : Symbol(x, Decl(typeGuardOfFormThisMember.ts, 31, 4)) +>file.isFile : Symbol(FileSystemObject.isFile, Decl(typeGuardOfFormThisMember.ts, 3, 34), Decl(typeGuardOfFormThisMember.ts, 6, 3)) +>file : Symbol(file, Decl(typeGuardOfFormThisMember.ts, 27, 4)) +>isFile : Symbol(FileSystemObject.isFile, Decl(typeGuardOfFormThisMember.ts, 3, 34), Decl(typeGuardOfFormThisMember.ts, 6, 3)) + + if (file.isFile) { +>file.isFile : Symbol(FileSystemObject.isFile, Decl(typeGuardOfFormThisMember.ts, 3, 34), Decl(typeGuardOfFormThisMember.ts, 6, 3)) +>file : Symbol(file, Decl(typeGuardOfFormThisMember.ts, 27, 4)) +>isFile : Symbol(FileSystemObject.isFile, Decl(typeGuardOfFormThisMember.ts, 3, 34), Decl(typeGuardOfFormThisMember.ts, 6, 3)) + + file.content; +>file : Symbol(file, Decl(typeGuardOfFormThisMember.ts, 27, 4)) + + if (file.isNetworked) { +>file.isNetworked : Symbol(FileSystemObject.isNetworked, Decl(typeGuardOfFormThisMember.ts, 12, 3)) +>file : Symbol(file, Decl(typeGuardOfFormThisMember.ts, 27, 4)) +>isNetworked : Symbol(FileSystemObject.isNetworked, Decl(typeGuardOfFormThisMember.ts, 12, 3)) + + file.host; +>file : Symbol(file, Decl(typeGuardOfFormThisMember.ts, 27, 4)) + + file.content; +>file : Symbol(file, Decl(typeGuardOfFormThisMember.ts, 27, 4)) + } + } + else if (file.isDirectory) { +>file.isDirectory : Symbol(FileSystemObject.isDirectory, Decl(typeGuardOfFormThisMember.ts, 9, 3)) +>file : Symbol(file, Decl(typeGuardOfFormThisMember.ts, 27, 4)) +>isDirectory : Symbol(FileSystemObject.isDirectory, Decl(typeGuardOfFormThisMember.ts, 9, 3)) + + file.children; +>file : Symbol(file, Decl(typeGuardOfFormThisMember.ts, 27, 4)) + } + else if (file.isNetworked) { +>file.isNetworked : Symbol(FileSystemObject.isNetworked, Decl(typeGuardOfFormThisMember.ts, 12, 3)) +>file : Symbol(file, Decl(typeGuardOfFormThisMember.ts, 27, 4)) +>isNetworked : Symbol(FileSystemObject.isNetworked, Decl(typeGuardOfFormThisMember.ts, 12, 3)) + + file.host; +>file : Symbol(file, Decl(typeGuardOfFormThisMember.ts, 27, 4)) + } + + interface GenericLeadGuard extends GenericGuard { +>GenericLeadGuard : Symbol(GenericLeadGuard, Decl(typeGuardOfFormThisMember.ts, 44, 2)) +>T : Symbol(T, Decl(typeGuardOfFormThisMember.ts, 46, 28)) +>GenericGuard : Symbol(GenericGuard, Decl(typeGuardOfFormThisMember.ts, 52, 2)) +>T : Symbol(T, Decl(typeGuardOfFormThisMember.ts, 46, 28)) + + lead(): void; +>lead : Symbol(GenericLeadGuard.lead, Decl(typeGuardOfFormThisMember.ts, 46, 56)) + } + + interface GenericFollowerGuard extends GenericGuard { +>GenericFollowerGuard : Symbol(GenericFollowerGuard, Decl(typeGuardOfFormThisMember.ts, 48, 2)) +>T : Symbol(T, Decl(typeGuardOfFormThisMember.ts, 50, 32)) +>GenericGuard : Symbol(GenericGuard, Decl(typeGuardOfFormThisMember.ts, 52, 2)) +>T : Symbol(T, Decl(typeGuardOfFormThisMember.ts, 50, 32)) + + follow(): void; +>follow : Symbol(GenericFollowerGuard.follow, Decl(typeGuardOfFormThisMember.ts, 50, 60)) + } + + interface GenericGuard { +>GenericGuard : Symbol(GenericGuard, Decl(typeGuardOfFormThisMember.ts, 52, 2)) +>T : Symbol(T, Decl(typeGuardOfFormThisMember.ts, 54, 24)) + + target: T; +>target : Symbol(GenericGuard.target, Decl(typeGuardOfFormThisMember.ts, 54, 28)) +>T : Symbol(T, Decl(typeGuardOfFormThisMember.ts, 54, 24)) + + isLeader: this is (GenericLeadGuard); +>isLeader : Symbol(GenericGuard.isLeader, Decl(typeGuardOfFormThisMember.ts, 55, 12)) +>GenericLeadGuard : Symbol(GenericLeadGuard, Decl(typeGuardOfFormThisMember.ts, 44, 2)) +>T : Symbol(T, Decl(typeGuardOfFormThisMember.ts, 54, 24)) + + isFollower: this is GenericFollowerGuard; +>isFollower : Symbol(GenericGuard.isFollower, Decl(typeGuardOfFormThisMember.ts, 56, 42)) +>GenericFollowerGuard : Symbol(GenericFollowerGuard, Decl(typeGuardOfFormThisMember.ts, 48, 2)) +>T : Symbol(T, Decl(typeGuardOfFormThisMember.ts, 54, 24)) + } + + declare var guard: GenericGuard; +>guard : Symbol(guard, Decl(typeGuardOfFormThisMember.ts, 60, 12)) +>GenericGuard : Symbol(GenericGuard, Decl(typeGuardOfFormThisMember.ts, 52, 2)) +>File : Symbol(File, Decl(typeGuardOfFormThisMember.ts, 15, 2)) + + if (guard.isLeader) { +>guard.isLeader : Symbol(GenericGuard.isLeader, Decl(typeGuardOfFormThisMember.ts, 55, 12)) +>guard : Symbol(guard, Decl(typeGuardOfFormThisMember.ts, 60, 12)) +>isLeader : Symbol(GenericGuard.isLeader, Decl(typeGuardOfFormThisMember.ts, 55, 12)) + + guard.lead(); +>guard : Symbol(guard, Decl(typeGuardOfFormThisMember.ts, 60, 12)) + } + else if (guard.isFollower) { +>guard.isFollower : Symbol(GenericGuard.isFollower, Decl(typeGuardOfFormThisMember.ts, 56, 42)) +>guard : Symbol(guard, Decl(typeGuardOfFormThisMember.ts, 60, 12)) +>isFollower : Symbol(GenericGuard.isFollower, Decl(typeGuardOfFormThisMember.ts, 56, 42)) + + guard.follow(); +>guard : Symbol(guard, Decl(typeGuardOfFormThisMember.ts, 60, 12)) + } + + interface SpecificGuard { +>SpecificGuard : Symbol(SpecificGuard, Decl(typeGuardOfFormThisMember.ts, 66, 2)) + + isMoreSpecific: this is MoreSpecificGuard; +>isMoreSpecific : Symbol(SpecificGuard.isMoreSpecific, Decl(typeGuardOfFormThisMember.ts, 68, 26)) +>MoreSpecificGuard : Symbol(MoreSpecificGuard, Decl(typeGuardOfFormThisMember.ts, 70, 2)) + } + + interface MoreSpecificGuard extends SpecificGuard { +>MoreSpecificGuard : Symbol(MoreSpecificGuard, Decl(typeGuardOfFormThisMember.ts, 70, 2)) +>SpecificGuard : Symbol(SpecificGuard, Decl(typeGuardOfFormThisMember.ts, 66, 2)) + + do(): void; +>do : Symbol(MoreSpecificGuard.do, Decl(typeGuardOfFormThisMember.ts, 72, 52)) + } + + declare var general: SpecificGuard; +>general : Symbol(general, Decl(typeGuardOfFormThisMember.ts, 76, 12)) +>SpecificGuard : Symbol(SpecificGuard, Decl(typeGuardOfFormThisMember.ts, 66, 2)) + + if (general.isMoreSpecific) { +>general.isMoreSpecific : Symbol(SpecificGuard.isMoreSpecific, Decl(typeGuardOfFormThisMember.ts, 68, 26)) +>general : Symbol(general, Decl(typeGuardOfFormThisMember.ts, 76, 12)) +>isMoreSpecific : Symbol(SpecificGuard.isMoreSpecific, Decl(typeGuardOfFormThisMember.ts, 68, 26)) + + general.do(); +>general : Symbol(general, Decl(typeGuardOfFormThisMember.ts, 76, 12)) + } +} + diff --git a/tests/baselines/reference/typeGuardOfFormThisMember(target=es5).types b/tests/baselines/reference/typeGuardOfFormThisMember(target=es5).types new file mode 100644 index 0000000000000..220996fb07760 --- /dev/null +++ b/tests/baselines/reference/typeGuardOfFormThisMember(target=es5).types @@ -0,0 +1,330 @@ +//// [tests/cases/conformance/expressions/typeGuards/typeGuardOfFormThisMember.ts] //// + +=== typeGuardOfFormThisMember.ts === +// There's a 'File' class in the stdlib, wrap with a namespace to avoid collision +namespace Test { +>Test : typeof Test +> : ^^^^^^^^^^^ + + export class FileSystemObject { +>FileSystemObject : FileSystemObject +> : ^^^^^^^^^^^^^^^^ + + isFSO: this is FileSystemObject; +>isFSO : boolean +> : ^^^^^^^ + + get isFile(): this is File { +>isFile : boolean +> : ^^^^^^^ + + return this instanceof File; +>this instanceof File : boolean +> : ^^^^^^^ +>this : this +> : ^^^^ +>File : typeof File +> : ^^^^^^^^^^^ + } + set isFile(param) { +>isFile : boolean +> : ^^^^^^^ +>param : boolean +> : ^^^^^^^ + + // noop + } + get isDirectory(): this is Directory { +>isDirectory : boolean +> : ^^^^^^^ + + return this instanceof Directory; +>this instanceof Directory : boolean +> : ^^^^^^^ +>this : this +> : ^^^^ +>Directory : typeof Directory +> : ^^^^^^^^^^^^^^^^ + } + isNetworked: this is (Networked & this); +>isNetworked : boolean +> : ^^^^^^^ + + constructor(public path: string) {} +>path : string +> : ^^^^^^ + } + + export class File extends FileSystemObject { +>File : File +> : ^^^^ +>FileSystemObject : FileSystemObject +> : ^^^^^^^^^^^^^^^^ + + constructor(path: string, public content: string) { super(path); } +>path : string +> : ^^^^^^ +>content : string +> : ^^^^^^ +>super(path) : void +> : ^^^^ +>super : typeof FileSystemObject +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>path : string +> : ^^^^^^ + } + export class Directory extends FileSystemObject { +>Directory : Directory +> : ^^^^^^^^^ +>FileSystemObject : FileSystemObject +> : ^^^^^^^^^^^^^^^^ + + children: FileSystemObject[]; +>children : FileSystemObject[] +> : ^^^^^^^^^^^^^^^^^^ + } + export interface Networked { + host: string; +>host : string +> : ^^^^^^ + } + + let file: FileSystemObject = new File("foo/bar.txt", "foo"); +>file : FileSystemObject +> : ^^^^^^^^^^^^^^^^ +>new File("foo/bar.txt", "foo") : File +> : ^^^^ +>File : typeof File +> : ^^^^^^^^^^^ +>"foo/bar.txt" : "foo/bar.txt" +> : ^^^^^^^^^^^^^ +>"foo" : "foo" +> : ^^^^^ + + file.isNetworked = false; +>file.isNetworked = false : false +> : ^^^^^ +>file.isNetworked : boolean +> : ^^^^^^^ +>file : FileSystemObject +> : ^^^^^^^^^^^^^^^^ +>isNetworked : boolean +> : ^^^^^^^ +>false : false +> : ^^^^^ + + file.isFSO = file.isFile; +>file.isFSO = file.isFile : boolean +> : ^^^^^^^ +>file.isFSO : boolean +> : ^^^^^^^ +>file : FileSystemObject +> : ^^^^^^^^^^^^^^^^ +>isFSO : boolean +> : ^^^^^^^ +>file.isFile : boolean +> : ^^^^^^^ +>file : FileSystemObject +> : ^^^^^^^^^^^^^^^^ +>isFile : boolean +> : ^^^^^^^ + + file.isFile = true; +>file.isFile = true : true +> : ^^^^ +>file.isFile : boolean +> : ^^^^^^^ +>file : FileSystemObject +> : ^^^^^^^^^^^^^^^^ +>isFile : boolean +> : ^^^^^^^ +>true : true +> : ^^^^ + + let x = file.isFile; +>x : boolean +> : ^^^^^^^ +>file.isFile : true +> : ^^^^ +>file : FileSystemObject +> : ^^^^^^^^^^^^^^^^ +>isFile : true +> : ^^^^ + + if (file.isFile) { +>file.isFile : true +> : ^^^^ +>file : FileSystemObject +> : ^^^^^^^^^^^^^^^^ +>isFile : true +> : ^^^^ + + file.content; +>file.content : any +> : ^^^ +>file : FileSystemObject +> : ^^^^^^^^^^^^^^^^ +>content : any +> : ^^^ + + if (file.isNetworked) { +>file.isNetworked : false +> : ^^^^^ +>file : FileSystemObject +> : ^^^^^^^^^^^^^^^^ +>isNetworked : false +> : ^^^^^ + + file.host; +>file.host : any +> : ^^^ +>file : FileSystemObject +> : ^^^^^^^^^^^^^^^^ +>host : any +> : ^^^ + + file.content; +>file.content : any +> : ^^^ +>file : FileSystemObject +> : ^^^^^^^^^^^^^^^^ +>content : any +> : ^^^ + } + } + else if (file.isDirectory) { +>file.isDirectory : boolean +> : ^^^^^^^ +>file : FileSystemObject +> : ^^^^^^^^^^^^^^^^ +>isDirectory : boolean +> : ^^^^^^^ + + file.children; +>file.children : any +> : ^^^ +>file : FileSystemObject +> : ^^^^^^^^^^^^^^^^ +>children : any +> : ^^^ + } + else if (file.isNetworked) { +>file.isNetworked : false +> : ^^^^^ +>file : FileSystemObject +> : ^^^^^^^^^^^^^^^^ +>isNetworked : false +> : ^^^^^ + + file.host; +>file.host : any +> : ^^^ +>file : FileSystemObject +> : ^^^^^^^^^^^^^^^^ +>host : any +> : ^^^ + } + + interface GenericLeadGuard extends GenericGuard { + lead(): void; +>lead : () => void +> : ^^^^^^ + } + + interface GenericFollowerGuard extends GenericGuard { + follow(): void; +>follow : () => void +> : ^^^^^^ + } + + interface GenericGuard { + target: T; +>target : T +> : ^ + + isLeader: this is (GenericLeadGuard); +>isLeader : boolean +> : ^^^^^^^ + + isFollower: this is GenericFollowerGuard; +>isFollower : boolean +> : ^^^^^^^ + } + + declare var guard: GenericGuard; +>guard : GenericGuard +> : ^^^^^^^^^^^^^^^^^^ + + if (guard.isLeader) { +>guard.isLeader : boolean +> : ^^^^^^^ +>guard : GenericGuard +> : ^^^^^^^^^^^^^^^^^^ +>isLeader : boolean +> : ^^^^^^^ + + guard.lead(); +>guard.lead() : any +> : ^^^ +>guard.lead : any +> : ^^^ +>guard : GenericGuard +> : ^^^^^^^^^^^^^^^^^^ +>lead : any +> : ^^^ + } + else if (guard.isFollower) { +>guard.isFollower : boolean +> : ^^^^^^^ +>guard : GenericGuard +> : ^^^^^^^^^^^^^^^^^^ +>isFollower : boolean +> : ^^^^^^^ + + guard.follow(); +>guard.follow() : any +> : ^^^ +>guard.follow : any +> : ^^^ +>guard : GenericGuard +> : ^^^^^^^^^^^^^^^^^^ +>follow : any +> : ^^^ + } + + interface SpecificGuard { + isMoreSpecific: this is MoreSpecificGuard; +>isMoreSpecific : boolean +> : ^^^^^^^ + } + + interface MoreSpecificGuard extends SpecificGuard { + do(): void; +>do : () => void +> : ^^^^^^ + } + + declare var general: SpecificGuard; +>general : SpecificGuard +> : ^^^^^^^^^^^^^ + + if (general.isMoreSpecific) { +>general.isMoreSpecific : boolean +> : ^^^^^^^ +>general : SpecificGuard +> : ^^^^^^^^^^^^^ +>isMoreSpecific : boolean +> : ^^^^^^^ + + general.do(); +>general.do() : any +> : ^^^ +>general.do : any +> : ^^^ +>general : SpecificGuard +> : ^^^^^^^^^^^^^ +>do : any +> : ^^^ + } +} + diff --git a/tests/baselines/reference/typeGuardOfFormThisMemberErrors.errors.txt b/tests/baselines/reference/typeGuardOfFormThisMemberErrors(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/typeGuardOfFormThisMemberErrors.errors.txt rename to tests/baselines/reference/typeGuardOfFormThisMemberErrors(target=es2015).errors.txt diff --git a/tests/baselines/reference/typeGuardOfFormThisMemberErrors(target=es2015).js b/tests/baselines/reference/typeGuardOfFormThisMemberErrors(target=es2015).js new file mode 100644 index 0000000000000..168d193b69099 --- /dev/null +++ b/tests/baselines/reference/typeGuardOfFormThisMemberErrors(target=es2015).js @@ -0,0 +1,94 @@ +//// [tests/cases/conformance/expressions/typeGuards/typeGuardOfFormThisMemberErrors.ts] //// + +//// [typeGuardOfFormThisMemberErrors.ts] +// There's a 'File' class in the stdlib, wrap with a namespace to avoid collision +namespace Test { + export class FileSystemObject { + isFSO: this is FileSystemObject; + get isFile(): this is File { + return this instanceof File; + } + set isFile(param) { + // noop + } + get isDirectory(): this is Directory { + return this instanceof Directory; + } + isNetworked: this is (Networked & this); + constructor(public path: string) {} + } + + export class File extends FileSystemObject { + constructor(path: string, public content: string) { super(path); } + } + export class Directory extends FileSystemObject { + children: FileSystemObject[]; + } + export interface Networked { + host: string; + } + + let file: FileSystemObject = new File("foo/bar.txt", "foo"); + file.isNetworked = file.isFile; + file.isFSO = file.isNetworked; + file.isFile = file.isFSO; +} + +//// [typeGuardOfFormThisMemberErrors.js] +// There's a 'File' class in the stdlib, wrap with a namespace to avoid collision +var Test; +(function (Test) { + class FileSystemObject { + get isFile() { + return this instanceof File; + } + set isFile(param) { + // noop + } + get isDirectory() { + return this instanceof Directory; + } + constructor(path) { + this.path = path; + } + } + Test.FileSystemObject = FileSystemObject; + class File extends FileSystemObject { + constructor(path, content) { + super(path); + this.content = content; + } + } + Test.File = File; + class Directory extends FileSystemObject { + } + Test.Directory = Directory; + let file = new File("foo/bar.txt", "foo"); + file.isNetworked = file.isFile; + file.isFSO = file.isNetworked; + file.isFile = file.isFSO; +})(Test || (Test = {})); + + +//// [typeGuardOfFormThisMemberErrors.d.ts] +declare namespace Test { + class FileSystemObject { + path: string; + isFSO: this is FileSystemObject; + get isFile(): this is File; + set isFile(param: this is File); + get isDirectory(): this is Directory; + isNetworked: this is (Networked & this); + constructor(path: string); + } + class File extends FileSystemObject { + content: string; + constructor(path: string, content: string); + } + class Directory extends FileSystemObject { + children: FileSystemObject[]; + } + interface Networked { + host: string; + } +} diff --git a/tests/baselines/reference/typeGuardOfFormThisMemberErrors.symbols b/tests/baselines/reference/typeGuardOfFormThisMemberErrors(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/typeGuardOfFormThisMemberErrors.symbols rename to tests/baselines/reference/typeGuardOfFormThisMemberErrors(target=es2015).symbols diff --git a/tests/baselines/reference/typeGuardOfFormThisMemberErrors.types b/tests/baselines/reference/typeGuardOfFormThisMemberErrors(target=es2015).types similarity index 100% rename from tests/baselines/reference/typeGuardOfFormThisMemberErrors.types rename to tests/baselines/reference/typeGuardOfFormThisMemberErrors(target=es2015).types diff --git a/tests/baselines/reference/typeGuardOfFormThisMemberErrors(target=es5).errors.txt b/tests/baselines/reference/typeGuardOfFormThisMemberErrors(target=es5).errors.txt new file mode 100644 index 0000000000000..109751136c536 --- /dev/null +++ b/tests/baselines/reference/typeGuardOfFormThisMemberErrors(target=es5).errors.txt @@ -0,0 +1,47 @@ +typeGuardOfFormThisMemberErrors.ts(4,10): error TS1228: A type predicate is only allowed in return type position for functions and methods. +typeGuardOfFormThisMemberErrors.ts(5,17): error TS1228: A type predicate is only allowed in return type position for functions and methods. +typeGuardOfFormThisMemberErrors.ts(11,22): error TS1228: A type predicate is only allowed in return type position for functions and methods. +typeGuardOfFormThisMemberErrors.ts(14,16): error TS1228: A type predicate is only allowed in return type position for functions and methods. + + +==== typeGuardOfFormThisMemberErrors.ts (4 errors) ==== + // There's a 'File' class in the stdlib, wrap with a namespace to avoid collision + namespace Test { + export class FileSystemObject { + isFSO: this is FileSystemObject; + ~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS1228: A type predicate is only allowed in return type position for functions and methods. + get isFile(): this is File { + ~~~~~~~~~~~~ +!!! error TS1228: A type predicate is only allowed in return type position for functions and methods. + return this instanceof File; + } + set isFile(param) { + // noop + } + get isDirectory(): this is Directory { + ~~~~~~~~~~~~~~~~~ +!!! error TS1228: A type predicate is only allowed in return type position for functions and methods. + return this instanceof Directory; + } + isNetworked: this is (Networked & this); + ~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS1228: A type predicate is only allowed in return type position for functions and methods. + constructor(public path: string) {} + } + + export class File extends FileSystemObject { + constructor(path: string, public content: string) { super(path); } + } + export class Directory extends FileSystemObject { + children: FileSystemObject[]; + } + export interface Networked { + host: string; + } + + let file: FileSystemObject = new File("foo/bar.txt", "foo"); + file.isNetworked = file.isFile; + file.isFSO = file.isNetworked; + file.isFile = file.isFSO; + } \ No newline at end of file diff --git a/tests/baselines/reference/typeGuardOfFormThisMemberErrors.js b/tests/baselines/reference/typeGuardOfFormThisMemberErrors(target=es5).js similarity index 100% rename from tests/baselines/reference/typeGuardOfFormThisMemberErrors.js rename to tests/baselines/reference/typeGuardOfFormThisMemberErrors(target=es5).js diff --git a/tests/baselines/reference/typeGuardOfFormThisMemberErrors(target=es5).symbols b/tests/baselines/reference/typeGuardOfFormThisMemberErrors(target=es5).symbols new file mode 100644 index 0000000000000..263777714ea3d --- /dev/null +++ b/tests/baselines/reference/typeGuardOfFormThisMemberErrors(target=es5).symbols @@ -0,0 +1,98 @@ +//// [tests/cases/conformance/expressions/typeGuards/typeGuardOfFormThisMemberErrors.ts] //// + +=== typeGuardOfFormThisMemberErrors.ts === +// There's a 'File' class in the stdlib, wrap with a namespace to avoid collision +namespace Test { +>Test : Symbol(Test, Decl(typeGuardOfFormThisMemberErrors.ts, 0, 0)) + + export class FileSystemObject { +>FileSystemObject : Symbol(FileSystemObject, Decl(typeGuardOfFormThisMemberErrors.ts, 1, 16)) + + isFSO: this is FileSystemObject; +>isFSO : Symbol(FileSystemObject.isFSO, Decl(typeGuardOfFormThisMemberErrors.ts, 2, 32)) +>FileSystemObject : Symbol(FileSystemObject, Decl(typeGuardOfFormThisMemberErrors.ts, 1, 16)) + + get isFile(): this is File { +>isFile : Symbol(FileSystemObject.isFile, Decl(typeGuardOfFormThisMemberErrors.ts, 3, 34), Decl(typeGuardOfFormThisMemberErrors.ts, 6, 3)) +>File : Symbol(File, Decl(typeGuardOfFormThisMemberErrors.ts, 15, 2)) + + return this instanceof File; +>this : Symbol(FileSystemObject, Decl(typeGuardOfFormThisMemberErrors.ts, 1, 16)) +>File : Symbol(File, Decl(typeGuardOfFormThisMemberErrors.ts, 15, 2)) + } + set isFile(param) { +>isFile : Symbol(FileSystemObject.isFile, Decl(typeGuardOfFormThisMemberErrors.ts, 3, 34), Decl(typeGuardOfFormThisMemberErrors.ts, 6, 3)) +>param : Symbol(param, Decl(typeGuardOfFormThisMemberErrors.ts, 7, 13)) + + // noop + } + get isDirectory(): this is Directory { +>isDirectory : Symbol(FileSystemObject.isDirectory, Decl(typeGuardOfFormThisMemberErrors.ts, 9, 3)) +>Directory : Symbol(Directory, Decl(typeGuardOfFormThisMemberErrors.ts, 19, 2)) + + return this instanceof Directory; +>this : Symbol(FileSystemObject, Decl(typeGuardOfFormThisMemberErrors.ts, 1, 16)) +>Directory : Symbol(Directory, Decl(typeGuardOfFormThisMemberErrors.ts, 19, 2)) + } + isNetworked: this is (Networked & this); +>isNetworked : Symbol(FileSystemObject.isNetworked, Decl(typeGuardOfFormThisMemberErrors.ts, 12, 3)) +>Networked : Symbol(Networked, Decl(typeGuardOfFormThisMemberErrors.ts, 22, 2)) + + constructor(public path: string) {} +>path : Symbol(FileSystemObject.path, Decl(typeGuardOfFormThisMemberErrors.ts, 14, 14)) + } + + export class File extends FileSystemObject { +>File : Symbol(File, Decl(typeGuardOfFormThisMemberErrors.ts, 15, 2)) +>FileSystemObject : Symbol(FileSystemObject, Decl(typeGuardOfFormThisMemberErrors.ts, 1, 16)) + + constructor(path: string, public content: string) { super(path); } +>path : Symbol(path, Decl(typeGuardOfFormThisMemberErrors.ts, 18, 14)) +>content : Symbol(File.content, Decl(typeGuardOfFormThisMemberErrors.ts, 18, 27)) +>super : Symbol(FileSystemObject, Decl(typeGuardOfFormThisMemberErrors.ts, 1, 16)) +>path : Symbol(path, Decl(typeGuardOfFormThisMemberErrors.ts, 18, 14)) + } + export class Directory extends FileSystemObject { +>Directory : Symbol(Directory, Decl(typeGuardOfFormThisMemberErrors.ts, 19, 2)) +>FileSystemObject : Symbol(FileSystemObject, Decl(typeGuardOfFormThisMemberErrors.ts, 1, 16)) + + children: FileSystemObject[]; +>children : Symbol(Directory.children, Decl(typeGuardOfFormThisMemberErrors.ts, 20, 50)) +>FileSystemObject : Symbol(FileSystemObject, Decl(typeGuardOfFormThisMemberErrors.ts, 1, 16)) + } + export interface Networked { +>Networked : Symbol(Networked, Decl(typeGuardOfFormThisMemberErrors.ts, 22, 2)) + + host: string; +>host : Symbol(Networked.host, Decl(typeGuardOfFormThisMemberErrors.ts, 23, 29)) + } + + let file: FileSystemObject = new File("foo/bar.txt", "foo"); +>file : Symbol(file, Decl(typeGuardOfFormThisMemberErrors.ts, 27, 4)) +>FileSystemObject : Symbol(FileSystemObject, Decl(typeGuardOfFormThisMemberErrors.ts, 1, 16)) +>File : Symbol(File, Decl(typeGuardOfFormThisMemberErrors.ts, 15, 2)) + + file.isNetworked = file.isFile; +>file.isNetworked : Symbol(FileSystemObject.isNetworked, Decl(typeGuardOfFormThisMemberErrors.ts, 12, 3)) +>file : Symbol(file, Decl(typeGuardOfFormThisMemberErrors.ts, 27, 4)) +>isNetworked : Symbol(FileSystemObject.isNetworked, Decl(typeGuardOfFormThisMemberErrors.ts, 12, 3)) +>file.isFile : Symbol(FileSystemObject.isFile, Decl(typeGuardOfFormThisMemberErrors.ts, 3, 34), Decl(typeGuardOfFormThisMemberErrors.ts, 6, 3)) +>file : Symbol(file, Decl(typeGuardOfFormThisMemberErrors.ts, 27, 4)) +>isFile : Symbol(FileSystemObject.isFile, Decl(typeGuardOfFormThisMemberErrors.ts, 3, 34), Decl(typeGuardOfFormThisMemberErrors.ts, 6, 3)) + + file.isFSO = file.isNetworked; +>file.isFSO : Symbol(FileSystemObject.isFSO, Decl(typeGuardOfFormThisMemberErrors.ts, 2, 32)) +>file : Symbol(file, Decl(typeGuardOfFormThisMemberErrors.ts, 27, 4)) +>isFSO : Symbol(FileSystemObject.isFSO, Decl(typeGuardOfFormThisMemberErrors.ts, 2, 32)) +>file.isNetworked : Symbol(FileSystemObject.isNetworked, Decl(typeGuardOfFormThisMemberErrors.ts, 12, 3)) +>file : Symbol(file, Decl(typeGuardOfFormThisMemberErrors.ts, 27, 4)) +>isNetworked : Symbol(FileSystemObject.isNetworked, Decl(typeGuardOfFormThisMemberErrors.ts, 12, 3)) + + file.isFile = file.isFSO; +>file.isFile : Symbol(FileSystemObject.isFile, Decl(typeGuardOfFormThisMemberErrors.ts, 3, 34), Decl(typeGuardOfFormThisMemberErrors.ts, 6, 3)) +>file : Symbol(file, Decl(typeGuardOfFormThisMemberErrors.ts, 27, 4)) +>isFile : Symbol(FileSystemObject.isFile, Decl(typeGuardOfFormThisMemberErrors.ts, 3, 34), Decl(typeGuardOfFormThisMemberErrors.ts, 6, 3)) +>file.isFSO : Symbol(FileSystemObject.isFSO, Decl(typeGuardOfFormThisMemberErrors.ts, 2, 32)) +>file : Symbol(file, Decl(typeGuardOfFormThisMemberErrors.ts, 27, 4)) +>isFSO : Symbol(FileSystemObject.isFSO, Decl(typeGuardOfFormThisMemberErrors.ts, 2, 32)) +} diff --git a/tests/baselines/reference/typeGuardOfFormThisMemberErrors(target=es5).types b/tests/baselines/reference/typeGuardOfFormThisMemberErrors(target=es5).types new file mode 100644 index 0000000000000..31d51f9665696 --- /dev/null +++ b/tests/baselines/reference/typeGuardOfFormThisMemberErrors(target=es5).types @@ -0,0 +1,151 @@ +//// [tests/cases/conformance/expressions/typeGuards/typeGuardOfFormThisMemberErrors.ts] //// + +=== typeGuardOfFormThisMemberErrors.ts === +// There's a 'File' class in the stdlib, wrap with a namespace to avoid collision +namespace Test { +>Test : typeof Test +> : ^^^^^^^^^^^ + + export class FileSystemObject { +>FileSystemObject : FileSystemObject +> : ^^^^^^^^^^^^^^^^ + + isFSO: this is FileSystemObject; +>isFSO : boolean +> : ^^^^^^^ + + get isFile(): this is File { +>isFile : boolean +> : ^^^^^^^ + + return this instanceof File; +>this instanceof File : boolean +> : ^^^^^^^ +>this : this +> : ^^^^ +>File : typeof File +> : ^^^^^^^^^^^ + } + set isFile(param) { +>isFile : boolean +> : ^^^^^^^ +>param : boolean +> : ^^^^^^^ + + // noop + } + get isDirectory(): this is Directory { +>isDirectory : boolean +> : ^^^^^^^ + + return this instanceof Directory; +>this instanceof Directory : boolean +> : ^^^^^^^ +>this : this +> : ^^^^ +>Directory : typeof Directory +> : ^^^^^^^^^^^^^^^^ + } + isNetworked: this is (Networked & this); +>isNetworked : boolean +> : ^^^^^^^ + + constructor(public path: string) {} +>path : string +> : ^^^^^^ + } + + export class File extends FileSystemObject { +>File : File +> : ^^^^ +>FileSystemObject : FileSystemObject +> : ^^^^^^^^^^^^^^^^ + + constructor(path: string, public content: string) { super(path); } +>path : string +> : ^^^^^^ +>content : string +> : ^^^^^^ +>super(path) : void +> : ^^^^ +>super : typeof FileSystemObject +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>path : string +> : ^^^^^^ + } + export class Directory extends FileSystemObject { +>Directory : Directory +> : ^^^^^^^^^ +>FileSystemObject : FileSystemObject +> : ^^^^^^^^^^^^^^^^ + + children: FileSystemObject[]; +>children : FileSystemObject[] +> : ^^^^^^^^^^^^^^^^^^ + } + export interface Networked { + host: string; +>host : string +> : ^^^^^^ + } + + let file: FileSystemObject = new File("foo/bar.txt", "foo"); +>file : FileSystemObject +> : ^^^^^^^^^^^^^^^^ +>new File("foo/bar.txt", "foo") : File +> : ^^^^ +>File : typeof File +> : ^^^^^^^^^^^ +>"foo/bar.txt" : "foo/bar.txt" +> : ^^^^^^^^^^^^^ +>"foo" : "foo" +> : ^^^^^ + + file.isNetworked = file.isFile; +>file.isNetworked = file.isFile : boolean +> : ^^^^^^^ +>file.isNetworked : boolean +> : ^^^^^^^ +>file : FileSystemObject +> : ^^^^^^^^^^^^^^^^ +>isNetworked : boolean +> : ^^^^^^^ +>file.isFile : boolean +> : ^^^^^^^ +>file : FileSystemObject +> : ^^^^^^^^^^^^^^^^ +>isFile : boolean +> : ^^^^^^^ + + file.isFSO = file.isNetworked; +>file.isFSO = file.isNetworked : boolean +> : ^^^^^^^ +>file.isFSO : boolean +> : ^^^^^^^ +>file : FileSystemObject +> : ^^^^^^^^^^^^^^^^ +>isFSO : boolean +> : ^^^^^^^ +>file.isNetworked : boolean +> : ^^^^^^^ +>file : FileSystemObject +> : ^^^^^^^^^^^^^^^^ +>isNetworked : boolean +> : ^^^^^^^ + + file.isFile = file.isFSO; +>file.isFile = file.isFSO : boolean +> : ^^^^^^^ +>file.isFile : boolean +> : ^^^^^^^ +>file : FileSystemObject +> : ^^^^^^^^^^^^^^^^ +>isFile : boolean +> : ^^^^^^^ +>file.isFSO : boolean +> : ^^^^^^^ +>file : FileSystemObject +> : ^^^^^^^^^^^^^^^^ +>isFSO : boolean +> : ^^^^^^^ +} diff --git a/tests/baselines/reference/typeGuardsInClassAccessors(target=es2015).js b/tests/baselines/reference/typeGuardsInClassAccessors(target=es2015).js new file mode 100644 index 0000000000000..b5b6007641852 --- /dev/null +++ b/tests/baselines/reference/typeGuardsInClassAccessors(target=es2015).js @@ -0,0 +1,191 @@ +//// [tests/cases/conformance/expressions/typeGuards/typeGuardsInClassAccessors.ts] //// + +//// [typeGuardsInClassAccessors.ts] +// Note that type guards affect types of variables and parameters only and +// have no effect on members of objects such as properties. + +// variables in global +var num: number; +var strOrNum: string | number; +var var1: string | number; +class ClassWithAccessors { + // Inside public accessor getter + get p1() { + // global vars in function declaration + num = typeof var1 === "string" && var1.length; // string + + // variables in function declaration + var var2: string | number; + num = typeof var2 === "string" && var2.length; // string + + return strOrNum; + } + // Inside public accessor setter + set p1(param: string | number) { + // global vars in function declaration + num = typeof var1 === "string" && var1.length; // string + + // parameter of function declaration + num = typeof param === "string" && param.length; // string + + // variables in function declaration + var var2: string | number; + num = typeof var2 === "string" && var2.length; // string + } + // Inside private accessor getter + private get pp1() { + // global vars in function declaration + num = typeof var1 === "string" && var1.length; // string + + // variables in function declaration + var var2: string | number; + num = typeof var2 === "string" && var2.length; // string + + return strOrNum; + } + // Inside private accessor setter + private set pp1(param: string | number) { + // global vars in function declaration + num = typeof var1 === "string" && var1.length; // string + + // parameter of function declaration + num = typeof param === "string" && param.length; // string + + // variables in function declaration + var var2: string | number; + num = typeof var2 === "string" && var2.length; // string + } + // Inside static accessor getter + static get s1() { + // global vars in function declaration + num = typeof var1 === "string" && var1.length; // string + + // variables in function declaration + var var2: string | number; + num = typeof var2 === "string" && var2.length; // string + + return strOrNum; + } + // Inside static accessor setter + static set s1(param: string | number) { + // global vars in function declaration + num = typeof var1 === "string" && var1.length; // string + + // parameter of function declaration + num = typeof param === "string" && param.length; // string + + // variables in function declaration + var var2: string | number; + num = typeof var2 === "string" && var2.length; // string + } + // Inside private static accessor getter + private static get ss1() { + // global vars in function declaration + num = typeof var1 === "string" && var1.length; // string + + // variables in function declaration + var var2: string | number; + num = typeof var2 === "string" && var2.length; // string + + return strOrNum; + } + // Inside private static accessor setter + private static set ss1(param: string | number) { + // global vars in function declaration + num = typeof var1 === "string" && var1.length; // string + + // parameter of function declaration + num = typeof param === "string" && param.length; // string + + // variables in function declaration + var var2: string | number; + num = typeof var2 === "string" && var2.length; // string + } +} + + +//// [typeGuardsInClassAccessors.js] +// Note that type guards affect types of variables and parameters only and +// have no effect on members of objects such as properties. +// variables in global +var num; +var strOrNum; +var var1; +class ClassWithAccessors { + // Inside public accessor getter + get p1() { + // global vars in function declaration + num = typeof var1 === "string" && var1.length; // string + // variables in function declaration + var var2; + num = typeof var2 === "string" && var2.length; // string + return strOrNum; + } + // Inside public accessor setter + set p1(param) { + // global vars in function declaration + num = typeof var1 === "string" && var1.length; // string + // parameter of function declaration + num = typeof param === "string" && param.length; // string + // variables in function declaration + var var2; + num = typeof var2 === "string" && var2.length; // string + } + // Inside private accessor getter + get pp1() { + // global vars in function declaration + num = typeof var1 === "string" && var1.length; // string + // variables in function declaration + var var2; + num = typeof var2 === "string" && var2.length; // string + return strOrNum; + } + // Inside private accessor setter + set pp1(param) { + // global vars in function declaration + num = typeof var1 === "string" && var1.length; // string + // parameter of function declaration + num = typeof param === "string" && param.length; // string + // variables in function declaration + var var2; + num = typeof var2 === "string" && var2.length; // string + } + // Inside static accessor getter + static get s1() { + // global vars in function declaration + num = typeof var1 === "string" && var1.length; // string + // variables in function declaration + var var2; + num = typeof var2 === "string" && var2.length; // string + return strOrNum; + } + // Inside static accessor setter + static set s1(param) { + // global vars in function declaration + num = typeof var1 === "string" && var1.length; // string + // parameter of function declaration + num = typeof param === "string" && param.length; // string + // variables in function declaration + var var2; + num = typeof var2 === "string" && var2.length; // string + } + // Inside private static accessor getter + static get ss1() { + // global vars in function declaration + num = typeof var1 === "string" && var1.length; // string + // variables in function declaration + var var2; + num = typeof var2 === "string" && var2.length; // string + return strOrNum; + } + // Inside private static accessor setter + static set ss1(param) { + // global vars in function declaration + num = typeof var1 === "string" && var1.length; // string + // parameter of function declaration + num = typeof param === "string" && param.length; // string + // variables in function declaration + var var2; + num = typeof var2 === "string" && var2.length; // string + } +} diff --git a/tests/baselines/reference/typeGuardsInClassAccessors.symbols b/tests/baselines/reference/typeGuardsInClassAccessors(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/typeGuardsInClassAccessors.symbols rename to tests/baselines/reference/typeGuardsInClassAccessors(target=es2015).symbols diff --git a/tests/baselines/reference/typeGuardsInClassAccessors.types b/tests/baselines/reference/typeGuardsInClassAccessors(target=es2015).types similarity index 100% rename from tests/baselines/reference/typeGuardsInClassAccessors.types rename to tests/baselines/reference/typeGuardsInClassAccessors(target=es2015).types diff --git a/tests/baselines/reference/typeGuardsInClassAccessors.js b/tests/baselines/reference/typeGuardsInClassAccessors(target=es5).js similarity index 100% rename from tests/baselines/reference/typeGuardsInClassAccessors.js rename to tests/baselines/reference/typeGuardsInClassAccessors(target=es5).js diff --git a/tests/baselines/reference/typeGuardsInClassAccessors(target=es5).symbols b/tests/baselines/reference/typeGuardsInClassAccessors(target=es5).symbols new file mode 100644 index 0000000000000..769c7926d71d9 --- /dev/null +++ b/tests/baselines/reference/typeGuardsInClassAccessors(target=es5).symbols @@ -0,0 +1,253 @@ +//// [tests/cases/conformance/expressions/typeGuards/typeGuardsInClassAccessors.ts] //// + +=== typeGuardsInClassAccessors.ts === +// Note that type guards affect types of variables and parameters only and +// have no effect on members of objects such as properties. + +// variables in global +var num: number; +>num : Symbol(num, Decl(typeGuardsInClassAccessors.ts, 4, 3)) + +var strOrNum: string | number; +>strOrNum : Symbol(strOrNum, Decl(typeGuardsInClassAccessors.ts, 5, 3)) + +var var1: string | number; +>var1 : Symbol(var1, Decl(typeGuardsInClassAccessors.ts, 6, 3)) + +class ClassWithAccessors { +>ClassWithAccessors : Symbol(ClassWithAccessors, Decl(typeGuardsInClassAccessors.ts, 6, 26)) + + // Inside public accessor getter + get p1() { +>p1 : Symbol(ClassWithAccessors.p1, Decl(typeGuardsInClassAccessors.ts, 7, 26), Decl(typeGuardsInClassAccessors.ts, 18, 5)) + + // global vars in function declaration + num = typeof var1 === "string" && var1.length; // string +>num : Symbol(num, Decl(typeGuardsInClassAccessors.ts, 4, 3)) +>var1 : Symbol(var1, Decl(typeGuardsInClassAccessors.ts, 6, 3)) +>var1.length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) +>var1 : Symbol(var1, Decl(typeGuardsInClassAccessors.ts, 6, 3)) +>length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) + + // variables in function declaration + var var2: string | number; +>var2 : Symbol(var2, Decl(typeGuardsInClassAccessors.ts, 14, 11)) + + num = typeof var2 === "string" && var2.length; // string +>num : Symbol(num, Decl(typeGuardsInClassAccessors.ts, 4, 3)) +>var2 : Symbol(var2, Decl(typeGuardsInClassAccessors.ts, 14, 11)) +>var2.length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) +>var2 : Symbol(var2, Decl(typeGuardsInClassAccessors.ts, 14, 11)) +>length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) + + return strOrNum; +>strOrNum : Symbol(strOrNum, Decl(typeGuardsInClassAccessors.ts, 5, 3)) + } + // Inside public accessor setter + set p1(param: string | number) { +>p1 : Symbol(ClassWithAccessors.p1, Decl(typeGuardsInClassAccessors.ts, 7, 26), Decl(typeGuardsInClassAccessors.ts, 18, 5)) +>param : Symbol(param, Decl(typeGuardsInClassAccessors.ts, 20, 11)) + + // global vars in function declaration + num = typeof var1 === "string" && var1.length; // string +>num : Symbol(num, Decl(typeGuardsInClassAccessors.ts, 4, 3)) +>var1 : Symbol(var1, Decl(typeGuardsInClassAccessors.ts, 6, 3)) +>var1.length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) +>var1 : Symbol(var1, Decl(typeGuardsInClassAccessors.ts, 6, 3)) +>length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) + + // parameter of function declaration + num = typeof param === "string" && param.length; // string +>num : Symbol(num, Decl(typeGuardsInClassAccessors.ts, 4, 3)) +>param : Symbol(param, Decl(typeGuardsInClassAccessors.ts, 20, 11)) +>param.length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) +>param : Symbol(param, Decl(typeGuardsInClassAccessors.ts, 20, 11)) +>length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) + + // variables in function declaration + var var2: string | number; +>var2 : Symbol(var2, Decl(typeGuardsInClassAccessors.ts, 28, 11)) + + num = typeof var2 === "string" && var2.length; // string +>num : Symbol(num, Decl(typeGuardsInClassAccessors.ts, 4, 3)) +>var2 : Symbol(var2, Decl(typeGuardsInClassAccessors.ts, 28, 11)) +>var2.length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) +>var2 : Symbol(var2, Decl(typeGuardsInClassAccessors.ts, 28, 11)) +>length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) + } + // Inside private accessor getter + private get pp1() { +>pp1 : Symbol(ClassWithAccessors.pp1, Decl(typeGuardsInClassAccessors.ts, 30, 5), Decl(typeGuardsInClassAccessors.ts, 41, 5)) + + // global vars in function declaration + num = typeof var1 === "string" && var1.length; // string +>num : Symbol(num, Decl(typeGuardsInClassAccessors.ts, 4, 3)) +>var1 : Symbol(var1, Decl(typeGuardsInClassAccessors.ts, 6, 3)) +>var1.length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) +>var1 : Symbol(var1, Decl(typeGuardsInClassAccessors.ts, 6, 3)) +>length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) + + // variables in function declaration + var var2: string | number; +>var2 : Symbol(var2, Decl(typeGuardsInClassAccessors.ts, 37, 11)) + + num = typeof var2 === "string" && var2.length; // string +>num : Symbol(num, Decl(typeGuardsInClassAccessors.ts, 4, 3)) +>var2 : Symbol(var2, Decl(typeGuardsInClassAccessors.ts, 37, 11)) +>var2.length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) +>var2 : Symbol(var2, Decl(typeGuardsInClassAccessors.ts, 37, 11)) +>length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) + + return strOrNum; +>strOrNum : Symbol(strOrNum, Decl(typeGuardsInClassAccessors.ts, 5, 3)) + } + // Inside private accessor setter + private set pp1(param: string | number) { +>pp1 : Symbol(ClassWithAccessors.pp1, Decl(typeGuardsInClassAccessors.ts, 30, 5), Decl(typeGuardsInClassAccessors.ts, 41, 5)) +>param : Symbol(param, Decl(typeGuardsInClassAccessors.ts, 43, 20)) + + // global vars in function declaration + num = typeof var1 === "string" && var1.length; // string +>num : Symbol(num, Decl(typeGuardsInClassAccessors.ts, 4, 3)) +>var1 : Symbol(var1, Decl(typeGuardsInClassAccessors.ts, 6, 3)) +>var1.length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) +>var1 : Symbol(var1, Decl(typeGuardsInClassAccessors.ts, 6, 3)) +>length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) + + // parameter of function declaration + num = typeof param === "string" && param.length; // string +>num : Symbol(num, Decl(typeGuardsInClassAccessors.ts, 4, 3)) +>param : Symbol(param, Decl(typeGuardsInClassAccessors.ts, 43, 20)) +>param.length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) +>param : Symbol(param, Decl(typeGuardsInClassAccessors.ts, 43, 20)) +>length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) + + // variables in function declaration + var var2: string | number; +>var2 : Symbol(var2, Decl(typeGuardsInClassAccessors.ts, 51, 11)) + + num = typeof var2 === "string" && var2.length; // string +>num : Symbol(num, Decl(typeGuardsInClassAccessors.ts, 4, 3)) +>var2 : Symbol(var2, Decl(typeGuardsInClassAccessors.ts, 51, 11)) +>var2.length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) +>var2 : Symbol(var2, Decl(typeGuardsInClassAccessors.ts, 51, 11)) +>length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) + } + // Inside static accessor getter + static get s1() { +>s1 : Symbol(ClassWithAccessors.s1, Decl(typeGuardsInClassAccessors.ts, 53, 5), Decl(typeGuardsInClassAccessors.ts, 64, 5)) + + // global vars in function declaration + num = typeof var1 === "string" && var1.length; // string +>num : Symbol(num, Decl(typeGuardsInClassAccessors.ts, 4, 3)) +>var1 : Symbol(var1, Decl(typeGuardsInClassAccessors.ts, 6, 3)) +>var1.length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) +>var1 : Symbol(var1, Decl(typeGuardsInClassAccessors.ts, 6, 3)) +>length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) + + // variables in function declaration + var var2: string | number; +>var2 : Symbol(var2, Decl(typeGuardsInClassAccessors.ts, 60, 11)) + + num = typeof var2 === "string" && var2.length; // string +>num : Symbol(num, Decl(typeGuardsInClassAccessors.ts, 4, 3)) +>var2 : Symbol(var2, Decl(typeGuardsInClassAccessors.ts, 60, 11)) +>var2.length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) +>var2 : Symbol(var2, Decl(typeGuardsInClassAccessors.ts, 60, 11)) +>length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) + + return strOrNum; +>strOrNum : Symbol(strOrNum, Decl(typeGuardsInClassAccessors.ts, 5, 3)) + } + // Inside static accessor setter + static set s1(param: string | number) { +>s1 : Symbol(ClassWithAccessors.s1, Decl(typeGuardsInClassAccessors.ts, 53, 5), Decl(typeGuardsInClassAccessors.ts, 64, 5)) +>param : Symbol(param, Decl(typeGuardsInClassAccessors.ts, 66, 18)) + + // global vars in function declaration + num = typeof var1 === "string" && var1.length; // string +>num : Symbol(num, Decl(typeGuardsInClassAccessors.ts, 4, 3)) +>var1 : Symbol(var1, Decl(typeGuardsInClassAccessors.ts, 6, 3)) +>var1.length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) +>var1 : Symbol(var1, Decl(typeGuardsInClassAccessors.ts, 6, 3)) +>length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) + + // parameter of function declaration + num = typeof param === "string" && param.length; // string +>num : Symbol(num, Decl(typeGuardsInClassAccessors.ts, 4, 3)) +>param : Symbol(param, Decl(typeGuardsInClassAccessors.ts, 66, 18)) +>param.length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) +>param : Symbol(param, Decl(typeGuardsInClassAccessors.ts, 66, 18)) +>length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) + + // variables in function declaration + var var2: string | number; +>var2 : Symbol(var2, Decl(typeGuardsInClassAccessors.ts, 74, 11)) + + num = typeof var2 === "string" && var2.length; // string +>num : Symbol(num, Decl(typeGuardsInClassAccessors.ts, 4, 3)) +>var2 : Symbol(var2, Decl(typeGuardsInClassAccessors.ts, 74, 11)) +>var2.length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) +>var2 : Symbol(var2, Decl(typeGuardsInClassAccessors.ts, 74, 11)) +>length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) + } + // Inside private static accessor getter + private static get ss1() { +>ss1 : Symbol(ClassWithAccessors.ss1, Decl(typeGuardsInClassAccessors.ts, 76, 5), Decl(typeGuardsInClassAccessors.ts, 87, 5)) + + // global vars in function declaration + num = typeof var1 === "string" && var1.length; // string +>num : Symbol(num, Decl(typeGuardsInClassAccessors.ts, 4, 3)) +>var1 : Symbol(var1, Decl(typeGuardsInClassAccessors.ts, 6, 3)) +>var1.length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) +>var1 : Symbol(var1, Decl(typeGuardsInClassAccessors.ts, 6, 3)) +>length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) + + // variables in function declaration + var var2: string | number; +>var2 : Symbol(var2, Decl(typeGuardsInClassAccessors.ts, 83, 11)) + + num = typeof var2 === "string" && var2.length; // string +>num : Symbol(num, Decl(typeGuardsInClassAccessors.ts, 4, 3)) +>var2 : Symbol(var2, Decl(typeGuardsInClassAccessors.ts, 83, 11)) +>var2.length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) +>var2 : Symbol(var2, Decl(typeGuardsInClassAccessors.ts, 83, 11)) +>length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) + + return strOrNum; +>strOrNum : Symbol(strOrNum, Decl(typeGuardsInClassAccessors.ts, 5, 3)) + } + // Inside private static accessor setter + private static set ss1(param: string | number) { +>ss1 : Symbol(ClassWithAccessors.ss1, Decl(typeGuardsInClassAccessors.ts, 76, 5), Decl(typeGuardsInClassAccessors.ts, 87, 5)) +>param : Symbol(param, Decl(typeGuardsInClassAccessors.ts, 89, 27)) + + // global vars in function declaration + num = typeof var1 === "string" && var1.length; // string +>num : Symbol(num, Decl(typeGuardsInClassAccessors.ts, 4, 3)) +>var1 : Symbol(var1, Decl(typeGuardsInClassAccessors.ts, 6, 3)) +>var1.length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) +>var1 : Symbol(var1, Decl(typeGuardsInClassAccessors.ts, 6, 3)) +>length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) + + // parameter of function declaration + num = typeof param === "string" && param.length; // string +>num : Symbol(num, Decl(typeGuardsInClassAccessors.ts, 4, 3)) +>param : Symbol(param, Decl(typeGuardsInClassAccessors.ts, 89, 27)) +>param.length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) +>param : Symbol(param, Decl(typeGuardsInClassAccessors.ts, 89, 27)) +>length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) + + // variables in function declaration + var var2: string | number; +>var2 : Symbol(var2, Decl(typeGuardsInClassAccessors.ts, 97, 11)) + + num = typeof var2 === "string" && var2.length; // string +>num : Symbol(num, Decl(typeGuardsInClassAccessors.ts, 4, 3)) +>var2 : Symbol(var2, Decl(typeGuardsInClassAccessors.ts, 97, 11)) +>var2.length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) +>var2 : Symbol(var2, Decl(typeGuardsInClassAccessors.ts, 97, 11)) +>length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) + } +} + diff --git a/tests/baselines/reference/typeGuardsInClassAccessors(target=es5).types b/tests/baselines/reference/typeGuardsInClassAccessors(target=es5).types new file mode 100644 index 0000000000000..e22c1f0093d5f --- /dev/null +++ b/tests/baselines/reference/typeGuardsInClassAccessors(target=es5).types @@ -0,0 +1,581 @@ +//// [tests/cases/conformance/expressions/typeGuards/typeGuardsInClassAccessors.ts] //// + +=== typeGuardsInClassAccessors.ts === +// Note that type guards affect types of variables and parameters only and +// have no effect on members of objects such as properties. + +// variables in global +var num: number; +>num : number +> : ^^^^^^ + +var strOrNum: string | number; +>strOrNum : string | number +> : ^^^^^^^^^^^^^^^ + +var var1: string | number; +>var1 : string | number +> : ^^^^^^^^^^^^^^^ + +class ClassWithAccessors { +>ClassWithAccessors : ClassWithAccessors +> : ^^^^^^^^^^^^^^^^^^ + + // Inside public accessor getter + get p1() { +>p1 : string | number +> : ^^^^^^^^^^^^^^^ + + // global vars in function declaration + num = typeof var1 === "string" && var1.length; // string +>num = typeof var1 === "string" && var1.length : number +> : ^^^^^^ +>num : number +> : ^^^^^^ +>typeof var1 === "string" && var1.length : number +> : ^^^^^^ +>typeof var1 === "string" : boolean +> : ^^^^^^^ +>typeof var1 : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>var1 : string | number +> : ^^^^^^^^^^^^^^^ +>"string" : "string" +> : ^^^^^^^^ +>var1.length : number +> : ^^^^^^ +>var1 : string +> : ^^^^^^ +>length : number +> : ^^^^^^ + + // variables in function declaration + var var2: string | number; +>var2 : string | number +> : ^^^^^^^^^^^^^^^ + + num = typeof var2 === "string" && var2.length; // string +>num = typeof var2 === "string" && var2.length : number +> : ^^^^^^ +>num : number +> : ^^^^^^ +>typeof var2 === "string" && var2.length : number +> : ^^^^^^ +>typeof var2 === "string" : boolean +> : ^^^^^^^ +>typeof var2 : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>var2 : string | number +> : ^^^^^^^^^^^^^^^ +>"string" : "string" +> : ^^^^^^^^ +>var2.length : number +> : ^^^^^^ +>var2 : string +> : ^^^^^^ +>length : number +> : ^^^^^^ + + return strOrNum; +>strOrNum : string | number +> : ^^^^^^^^^^^^^^^ + } + // Inside public accessor setter + set p1(param: string | number) { +>p1 : string | number +> : ^^^^^^^^^^^^^^^ +>param : string | number +> : ^^^^^^^^^^^^^^^ + + // global vars in function declaration + num = typeof var1 === "string" && var1.length; // string +>num = typeof var1 === "string" && var1.length : number +> : ^^^^^^ +>num : number +> : ^^^^^^ +>typeof var1 === "string" && var1.length : number +> : ^^^^^^ +>typeof var1 === "string" : boolean +> : ^^^^^^^ +>typeof var1 : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>var1 : string | number +> : ^^^^^^^^^^^^^^^ +>"string" : "string" +> : ^^^^^^^^ +>var1.length : number +> : ^^^^^^ +>var1 : string +> : ^^^^^^ +>length : number +> : ^^^^^^ + + // parameter of function declaration + num = typeof param === "string" && param.length; // string +>num = typeof param === "string" && param.length : number +> : ^^^^^^ +>num : number +> : ^^^^^^ +>typeof param === "string" && param.length : number +> : ^^^^^^ +>typeof param === "string" : boolean +> : ^^^^^^^ +>typeof param : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>param : string | number +> : ^^^^^^^^^^^^^^^ +>"string" : "string" +> : ^^^^^^^^ +>param.length : number +> : ^^^^^^ +>param : string +> : ^^^^^^ +>length : number +> : ^^^^^^ + + // variables in function declaration + var var2: string | number; +>var2 : string | number +> : ^^^^^^^^^^^^^^^ + + num = typeof var2 === "string" && var2.length; // string +>num = typeof var2 === "string" && var2.length : number +> : ^^^^^^ +>num : number +> : ^^^^^^ +>typeof var2 === "string" && var2.length : number +> : ^^^^^^ +>typeof var2 === "string" : boolean +> : ^^^^^^^ +>typeof var2 : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>var2 : string | number +> : ^^^^^^^^^^^^^^^ +>"string" : "string" +> : ^^^^^^^^ +>var2.length : number +> : ^^^^^^ +>var2 : string +> : ^^^^^^ +>length : number +> : ^^^^^^ + } + // Inside private accessor getter + private get pp1() { +>pp1 : string | number +> : ^^^^^^^^^^^^^^^ + + // global vars in function declaration + num = typeof var1 === "string" && var1.length; // string +>num = typeof var1 === "string" && var1.length : number +> : ^^^^^^ +>num : number +> : ^^^^^^ +>typeof var1 === "string" && var1.length : number +> : ^^^^^^ +>typeof var1 === "string" : boolean +> : ^^^^^^^ +>typeof var1 : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>var1 : string | number +> : ^^^^^^^^^^^^^^^ +>"string" : "string" +> : ^^^^^^^^ +>var1.length : number +> : ^^^^^^ +>var1 : string +> : ^^^^^^ +>length : number +> : ^^^^^^ + + // variables in function declaration + var var2: string | number; +>var2 : string | number +> : ^^^^^^^^^^^^^^^ + + num = typeof var2 === "string" && var2.length; // string +>num = typeof var2 === "string" && var2.length : number +> : ^^^^^^ +>num : number +> : ^^^^^^ +>typeof var2 === "string" && var2.length : number +> : ^^^^^^ +>typeof var2 === "string" : boolean +> : ^^^^^^^ +>typeof var2 : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>var2 : string | number +> : ^^^^^^^^^^^^^^^ +>"string" : "string" +> : ^^^^^^^^ +>var2.length : number +> : ^^^^^^ +>var2 : string +> : ^^^^^^ +>length : number +> : ^^^^^^ + + return strOrNum; +>strOrNum : string | number +> : ^^^^^^^^^^^^^^^ + } + // Inside private accessor setter + private set pp1(param: string | number) { +>pp1 : string | number +> : ^^^^^^^^^^^^^^^ +>param : string | number +> : ^^^^^^^^^^^^^^^ + + // global vars in function declaration + num = typeof var1 === "string" && var1.length; // string +>num = typeof var1 === "string" && var1.length : number +> : ^^^^^^ +>num : number +> : ^^^^^^ +>typeof var1 === "string" && var1.length : number +> : ^^^^^^ +>typeof var1 === "string" : boolean +> : ^^^^^^^ +>typeof var1 : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>var1 : string | number +> : ^^^^^^^^^^^^^^^ +>"string" : "string" +> : ^^^^^^^^ +>var1.length : number +> : ^^^^^^ +>var1 : string +> : ^^^^^^ +>length : number +> : ^^^^^^ + + // parameter of function declaration + num = typeof param === "string" && param.length; // string +>num = typeof param === "string" && param.length : number +> : ^^^^^^ +>num : number +> : ^^^^^^ +>typeof param === "string" && param.length : number +> : ^^^^^^ +>typeof param === "string" : boolean +> : ^^^^^^^ +>typeof param : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>param : string | number +> : ^^^^^^^^^^^^^^^ +>"string" : "string" +> : ^^^^^^^^ +>param.length : number +> : ^^^^^^ +>param : string +> : ^^^^^^ +>length : number +> : ^^^^^^ + + // variables in function declaration + var var2: string | number; +>var2 : string | number +> : ^^^^^^^^^^^^^^^ + + num = typeof var2 === "string" && var2.length; // string +>num = typeof var2 === "string" && var2.length : number +> : ^^^^^^ +>num : number +> : ^^^^^^ +>typeof var2 === "string" && var2.length : number +> : ^^^^^^ +>typeof var2 === "string" : boolean +> : ^^^^^^^ +>typeof var2 : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>var2 : string | number +> : ^^^^^^^^^^^^^^^ +>"string" : "string" +> : ^^^^^^^^ +>var2.length : number +> : ^^^^^^ +>var2 : string +> : ^^^^^^ +>length : number +> : ^^^^^^ + } + // Inside static accessor getter + static get s1() { +>s1 : string | number +> : ^^^^^^^^^^^^^^^ + + // global vars in function declaration + num = typeof var1 === "string" && var1.length; // string +>num = typeof var1 === "string" && var1.length : number +> : ^^^^^^ +>num : number +> : ^^^^^^ +>typeof var1 === "string" && var1.length : number +> : ^^^^^^ +>typeof var1 === "string" : boolean +> : ^^^^^^^ +>typeof var1 : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>var1 : string | number +> : ^^^^^^^^^^^^^^^ +>"string" : "string" +> : ^^^^^^^^ +>var1.length : number +> : ^^^^^^ +>var1 : string +> : ^^^^^^ +>length : number +> : ^^^^^^ + + // variables in function declaration + var var2: string | number; +>var2 : string | number +> : ^^^^^^^^^^^^^^^ + + num = typeof var2 === "string" && var2.length; // string +>num = typeof var2 === "string" && var2.length : number +> : ^^^^^^ +>num : number +> : ^^^^^^ +>typeof var2 === "string" && var2.length : number +> : ^^^^^^ +>typeof var2 === "string" : boolean +> : ^^^^^^^ +>typeof var2 : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>var2 : string | number +> : ^^^^^^^^^^^^^^^ +>"string" : "string" +> : ^^^^^^^^ +>var2.length : number +> : ^^^^^^ +>var2 : string +> : ^^^^^^ +>length : number +> : ^^^^^^ + + return strOrNum; +>strOrNum : string | number +> : ^^^^^^^^^^^^^^^ + } + // Inside static accessor setter + static set s1(param: string | number) { +>s1 : string | number +> : ^^^^^^^^^^^^^^^ +>param : string | number +> : ^^^^^^^^^^^^^^^ + + // global vars in function declaration + num = typeof var1 === "string" && var1.length; // string +>num = typeof var1 === "string" && var1.length : number +> : ^^^^^^ +>num : number +> : ^^^^^^ +>typeof var1 === "string" && var1.length : number +> : ^^^^^^ +>typeof var1 === "string" : boolean +> : ^^^^^^^ +>typeof var1 : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>var1 : string | number +> : ^^^^^^^^^^^^^^^ +>"string" : "string" +> : ^^^^^^^^ +>var1.length : number +> : ^^^^^^ +>var1 : string +> : ^^^^^^ +>length : number +> : ^^^^^^ + + // parameter of function declaration + num = typeof param === "string" && param.length; // string +>num = typeof param === "string" && param.length : number +> : ^^^^^^ +>num : number +> : ^^^^^^ +>typeof param === "string" && param.length : number +> : ^^^^^^ +>typeof param === "string" : boolean +> : ^^^^^^^ +>typeof param : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>param : string | number +> : ^^^^^^^^^^^^^^^ +>"string" : "string" +> : ^^^^^^^^ +>param.length : number +> : ^^^^^^ +>param : string +> : ^^^^^^ +>length : number +> : ^^^^^^ + + // variables in function declaration + var var2: string | number; +>var2 : string | number +> : ^^^^^^^^^^^^^^^ + + num = typeof var2 === "string" && var2.length; // string +>num = typeof var2 === "string" && var2.length : number +> : ^^^^^^ +>num : number +> : ^^^^^^ +>typeof var2 === "string" && var2.length : number +> : ^^^^^^ +>typeof var2 === "string" : boolean +> : ^^^^^^^ +>typeof var2 : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>var2 : string | number +> : ^^^^^^^^^^^^^^^ +>"string" : "string" +> : ^^^^^^^^ +>var2.length : number +> : ^^^^^^ +>var2 : string +> : ^^^^^^ +>length : number +> : ^^^^^^ + } + // Inside private static accessor getter + private static get ss1() { +>ss1 : string | number +> : ^^^^^^^^^^^^^^^ + + // global vars in function declaration + num = typeof var1 === "string" && var1.length; // string +>num = typeof var1 === "string" && var1.length : number +> : ^^^^^^ +>num : number +> : ^^^^^^ +>typeof var1 === "string" && var1.length : number +> : ^^^^^^ +>typeof var1 === "string" : boolean +> : ^^^^^^^ +>typeof var1 : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>var1 : string | number +> : ^^^^^^^^^^^^^^^ +>"string" : "string" +> : ^^^^^^^^ +>var1.length : number +> : ^^^^^^ +>var1 : string +> : ^^^^^^ +>length : number +> : ^^^^^^ + + // variables in function declaration + var var2: string | number; +>var2 : string | number +> : ^^^^^^^^^^^^^^^ + + num = typeof var2 === "string" && var2.length; // string +>num = typeof var2 === "string" && var2.length : number +> : ^^^^^^ +>num : number +> : ^^^^^^ +>typeof var2 === "string" && var2.length : number +> : ^^^^^^ +>typeof var2 === "string" : boolean +> : ^^^^^^^ +>typeof var2 : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>var2 : string | number +> : ^^^^^^^^^^^^^^^ +>"string" : "string" +> : ^^^^^^^^ +>var2.length : number +> : ^^^^^^ +>var2 : string +> : ^^^^^^ +>length : number +> : ^^^^^^ + + return strOrNum; +>strOrNum : string | number +> : ^^^^^^^^^^^^^^^ + } + // Inside private static accessor setter + private static set ss1(param: string | number) { +>ss1 : string | number +> : ^^^^^^^^^^^^^^^ +>param : string | number +> : ^^^^^^^^^^^^^^^ + + // global vars in function declaration + num = typeof var1 === "string" && var1.length; // string +>num = typeof var1 === "string" && var1.length : number +> : ^^^^^^ +>num : number +> : ^^^^^^ +>typeof var1 === "string" && var1.length : number +> : ^^^^^^ +>typeof var1 === "string" : boolean +> : ^^^^^^^ +>typeof var1 : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>var1 : string | number +> : ^^^^^^^^^^^^^^^ +>"string" : "string" +> : ^^^^^^^^ +>var1.length : number +> : ^^^^^^ +>var1 : string +> : ^^^^^^ +>length : number +> : ^^^^^^ + + // parameter of function declaration + num = typeof param === "string" && param.length; // string +>num = typeof param === "string" && param.length : number +> : ^^^^^^ +>num : number +> : ^^^^^^ +>typeof param === "string" && param.length : number +> : ^^^^^^ +>typeof param === "string" : boolean +> : ^^^^^^^ +>typeof param : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>param : string | number +> : ^^^^^^^^^^^^^^^ +>"string" : "string" +> : ^^^^^^^^ +>param.length : number +> : ^^^^^^ +>param : string +> : ^^^^^^ +>length : number +> : ^^^^^^ + + // variables in function declaration + var var2: string | number; +>var2 : string | number +> : ^^^^^^^^^^^^^^^ + + num = typeof var2 === "string" && var2.length; // string +>num = typeof var2 === "string" && var2.length : number +> : ^^^^^^ +>num : number +> : ^^^^^^ +>typeof var2 === "string" && var2.length : number +> : ^^^^^^ +>typeof var2 === "string" : boolean +> : ^^^^^^^ +>typeof var2 : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>var2 : string | number +> : ^^^^^^^^^^^^^^^ +>"string" : "string" +> : ^^^^^^^^ +>var2.length : number +> : ^^^^^^ +>var2 : string +> : ^^^^^^ +>length : number +> : ^^^^^^ + } +} + diff --git a/tests/baselines/reference/typeGuardsInProperties(target=es2015).js b/tests/baselines/reference/typeGuardsInProperties(target=es2015).js new file mode 100644 index 0000000000000..ac7fce9526080 --- /dev/null +++ b/tests/baselines/reference/typeGuardsInProperties(target=es2015).js @@ -0,0 +1,50 @@ +//// [tests/cases/conformance/expressions/typeGuards/typeGuardsInProperties.ts] //// + +//// [typeGuardsInProperties.ts] +// Note that type guards affect types of variables and parameters only and +// have no effect on members of objects such as properties. + +var num: number; +var strOrNum: string | number; +class C1 { + private pp1: string | number; + pp2: string | number; + // Inside public accessor getter + get pp3() { + return strOrNum; + } + method() { + strOrNum = typeof this.pp1 === "string" && this.pp1; // string | number + strOrNum = typeof this.pp2 === "string" && this.pp2; // string | number + strOrNum = typeof this.pp3 === "string" && this.pp3; // string | number + } +} +var c1: C1; +strOrNum = typeof c1.pp2 === "string" && c1.pp2; // string | number +strOrNum = typeof c1.pp3 === "string" && c1.pp3; // string | number +var obj1: { + x: string | number; +}; +strOrNum = typeof obj1.x === "string" && obj1.x; // string | number + +//// [typeGuardsInProperties.js] +// Note that type guards affect types of variables and parameters only and +// have no effect on members of objects such as properties. +var num; +var strOrNum; +class C1 { + // Inside public accessor getter + get pp3() { + return strOrNum; + } + method() { + strOrNum = typeof this.pp1 === "string" && this.pp1; // string | number + strOrNum = typeof this.pp2 === "string" && this.pp2; // string | number + strOrNum = typeof this.pp3 === "string" && this.pp3; // string | number + } +} +var c1; +strOrNum = typeof c1.pp2 === "string" && c1.pp2; // string | number +strOrNum = typeof c1.pp3 === "string" && c1.pp3; // string | number +var obj1; +strOrNum = typeof obj1.x === "string" && obj1.x; // string | number diff --git a/tests/baselines/reference/typeGuardsInProperties.symbols b/tests/baselines/reference/typeGuardsInProperties(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/typeGuardsInProperties.symbols rename to tests/baselines/reference/typeGuardsInProperties(target=es2015).symbols diff --git a/tests/baselines/reference/typeGuardsInProperties.types b/tests/baselines/reference/typeGuardsInProperties(target=es2015).types similarity index 100% rename from tests/baselines/reference/typeGuardsInProperties.types rename to tests/baselines/reference/typeGuardsInProperties(target=es2015).types diff --git a/tests/baselines/reference/typeGuardsInProperties.js b/tests/baselines/reference/typeGuardsInProperties(target=es5).js similarity index 100% rename from tests/baselines/reference/typeGuardsInProperties.js rename to tests/baselines/reference/typeGuardsInProperties(target=es5).js diff --git a/tests/baselines/reference/typeGuardsInProperties(target=es5).symbols b/tests/baselines/reference/typeGuardsInProperties(target=es5).symbols new file mode 100644 index 0000000000000..71cac5974b193 --- /dev/null +++ b/tests/baselines/reference/typeGuardsInProperties(target=es5).symbols @@ -0,0 +1,97 @@ +//// [tests/cases/conformance/expressions/typeGuards/typeGuardsInProperties.ts] //// + +=== typeGuardsInProperties.ts === +// Note that type guards affect types of variables and parameters only and +// have no effect on members of objects such as properties. + +var num: number; +>num : Symbol(num, Decl(typeGuardsInProperties.ts, 3, 3)) + +var strOrNum: string | number; +>strOrNum : Symbol(strOrNum, Decl(typeGuardsInProperties.ts, 4, 3)) + +class C1 { +>C1 : Symbol(C1, Decl(typeGuardsInProperties.ts, 4, 30)) + + private pp1: string | number; +>pp1 : Symbol(C1.pp1, Decl(typeGuardsInProperties.ts, 5, 10)) + + pp2: string | number; +>pp2 : Symbol(C1.pp2, Decl(typeGuardsInProperties.ts, 6, 33)) + + // Inside public accessor getter + get pp3() { +>pp3 : Symbol(C1.pp3, Decl(typeGuardsInProperties.ts, 7, 25)) + + return strOrNum; +>strOrNum : Symbol(strOrNum, Decl(typeGuardsInProperties.ts, 4, 3)) + } + method() { +>method : Symbol(C1.method, Decl(typeGuardsInProperties.ts, 11, 5)) + + strOrNum = typeof this.pp1 === "string" && this.pp1; // string | number +>strOrNum : Symbol(strOrNum, Decl(typeGuardsInProperties.ts, 4, 3)) +>this.pp1 : Symbol(C1.pp1, Decl(typeGuardsInProperties.ts, 5, 10)) +>this : Symbol(C1, Decl(typeGuardsInProperties.ts, 4, 30)) +>pp1 : Symbol(C1.pp1, Decl(typeGuardsInProperties.ts, 5, 10)) +>this.pp1 : Symbol(C1.pp1, Decl(typeGuardsInProperties.ts, 5, 10)) +>this : Symbol(C1, Decl(typeGuardsInProperties.ts, 4, 30)) +>pp1 : Symbol(C1.pp1, Decl(typeGuardsInProperties.ts, 5, 10)) + + strOrNum = typeof this.pp2 === "string" && this.pp2; // string | number +>strOrNum : Symbol(strOrNum, Decl(typeGuardsInProperties.ts, 4, 3)) +>this.pp2 : Symbol(C1.pp2, Decl(typeGuardsInProperties.ts, 6, 33)) +>this : Symbol(C1, Decl(typeGuardsInProperties.ts, 4, 30)) +>pp2 : Symbol(C1.pp2, Decl(typeGuardsInProperties.ts, 6, 33)) +>this.pp2 : Symbol(C1.pp2, Decl(typeGuardsInProperties.ts, 6, 33)) +>this : Symbol(C1, Decl(typeGuardsInProperties.ts, 4, 30)) +>pp2 : Symbol(C1.pp2, Decl(typeGuardsInProperties.ts, 6, 33)) + + strOrNum = typeof this.pp3 === "string" && this.pp3; // string | number +>strOrNum : Symbol(strOrNum, Decl(typeGuardsInProperties.ts, 4, 3)) +>this.pp3 : Symbol(C1.pp3, Decl(typeGuardsInProperties.ts, 7, 25)) +>this : Symbol(C1, Decl(typeGuardsInProperties.ts, 4, 30)) +>pp3 : Symbol(C1.pp3, Decl(typeGuardsInProperties.ts, 7, 25)) +>this.pp3 : Symbol(C1.pp3, Decl(typeGuardsInProperties.ts, 7, 25)) +>this : Symbol(C1, Decl(typeGuardsInProperties.ts, 4, 30)) +>pp3 : Symbol(C1.pp3, Decl(typeGuardsInProperties.ts, 7, 25)) + } +} +var c1: C1; +>c1 : Symbol(c1, Decl(typeGuardsInProperties.ts, 18, 3)) +>C1 : Symbol(C1, Decl(typeGuardsInProperties.ts, 4, 30)) + +strOrNum = typeof c1.pp2 === "string" && c1.pp2; // string | number +>strOrNum : Symbol(strOrNum, Decl(typeGuardsInProperties.ts, 4, 3)) +>c1.pp2 : Symbol(C1.pp2, Decl(typeGuardsInProperties.ts, 6, 33)) +>c1 : Symbol(c1, Decl(typeGuardsInProperties.ts, 18, 3)) +>pp2 : Symbol(C1.pp2, Decl(typeGuardsInProperties.ts, 6, 33)) +>c1.pp2 : Symbol(C1.pp2, Decl(typeGuardsInProperties.ts, 6, 33)) +>c1 : Symbol(c1, Decl(typeGuardsInProperties.ts, 18, 3)) +>pp2 : Symbol(C1.pp2, Decl(typeGuardsInProperties.ts, 6, 33)) + +strOrNum = typeof c1.pp3 === "string" && c1.pp3; // string | number +>strOrNum : Symbol(strOrNum, Decl(typeGuardsInProperties.ts, 4, 3)) +>c1.pp3 : Symbol(C1.pp3, Decl(typeGuardsInProperties.ts, 7, 25)) +>c1 : Symbol(c1, Decl(typeGuardsInProperties.ts, 18, 3)) +>pp3 : Symbol(C1.pp3, Decl(typeGuardsInProperties.ts, 7, 25)) +>c1.pp3 : Symbol(C1.pp3, Decl(typeGuardsInProperties.ts, 7, 25)) +>c1 : Symbol(c1, Decl(typeGuardsInProperties.ts, 18, 3)) +>pp3 : Symbol(C1.pp3, Decl(typeGuardsInProperties.ts, 7, 25)) + +var obj1: { +>obj1 : Symbol(obj1, Decl(typeGuardsInProperties.ts, 21, 3)) + + x: string | number; +>x : Symbol(x, Decl(typeGuardsInProperties.ts, 21, 11)) + +}; +strOrNum = typeof obj1.x === "string" && obj1.x; // string | number +>strOrNum : Symbol(strOrNum, Decl(typeGuardsInProperties.ts, 4, 3)) +>obj1.x : Symbol(x, Decl(typeGuardsInProperties.ts, 21, 11)) +>obj1 : Symbol(obj1, Decl(typeGuardsInProperties.ts, 21, 3)) +>x : Symbol(x, Decl(typeGuardsInProperties.ts, 21, 11)) +>obj1.x : Symbol(x, Decl(typeGuardsInProperties.ts, 21, 11)) +>obj1 : Symbol(obj1, Decl(typeGuardsInProperties.ts, 21, 3)) +>x : Symbol(x, Decl(typeGuardsInProperties.ts, 21, 11)) + diff --git a/tests/baselines/reference/typeGuardsInProperties(target=es5).types b/tests/baselines/reference/typeGuardsInProperties(target=es5).types new file mode 100644 index 0000000000000..21e8dbe7998dd --- /dev/null +++ b/tests/baselines/reference/typeGuardsInProperties(target=es5).types @@ -0,0 +1,209 @@ +//// [tests/cases/conformance/expressions/typeGuards/typeGuardsInProperties.ts] //// + +=== typeGuardsInProperties.ts === +// Note that type guards affect types of variables and parameters only and +// have no effect on members of objects such as properties. + +var num: number; +>num : number +> : ^^^^^^ + +var strOrNum: string | number; +>strOrNum : string | number +> : ^^^^^^^^^^^^^^^ + +class C1 { +>C1 : C1 +> : ^^ + + private pp1: string | number; +>pp1 : string | number +> : ^^^^^^^^^^^^^^^ + + pp2: string | number; +>pp2 : string | number +> : ^^^^^^^^^^^^^^^ + + // Inside public accessor getter + get pp3() { +>pp3 : string | number +> : ^^^^^^^^^^^^^^^ + + return strOrNum; +>strOrNum : string | number +> : ^^^^^^^^^^^^^^^ + } + method() { +>method : () => void +> : ^^^^^^^^^^ + + strOrNum = typeof this.pp1 === "string" && this.pp1; // string | number +>strOrNum = typeof this.pp1 === "string" && this.pp1 : string +> : ^^^^^^ +>strOrNum : string | number +> : ^^^^^^^^^^^^^^^ +>typeof this.pp1 === "string" && this.pp1 : string +> : ^^^^^^ +>typeof this.pp1 === "string" : boolean +> : ^^^^^^^ +>typeof this.pp1 : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>this.pp1 : string | number +> : ^^^^^^^^^^^^^^^ +>this : this +> : ^^^^ +>pp1 : string | number +> : ^^^^^^^^^^^^^^^ +>"string" : "string" +> : ^^^^^^^^ +>this.pp1 : string +> : ^^^^^^ +>this : this +> : ^^^^ +>pp1 : string +> : ^^^^^^ + + strOrNum = typeof this.pp2 === "string" && this.pp2; // string | number +>strOrNum = typeof this.pp2 === "string" && this.pp2 : string +> : ^^^^^^ +>strOrNum : string | number +> : ^^^^^^^^^^^^^^^ +>typeof this.pp2 === "string" && this.pp2 : string +> : ^^^^^^ +>typeof this.pp2 === "string" : boolean +> : ^^^^^^^ +>typeof this.pp2 : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>this.pp2 : string | number +> : ^^^^^^^^^^^^^^^ +>this : this +> : ^^^^ +>pp2 : string | number +> : ^^^^^^^^^^^^^^^ +>"string" : "string" +> : ^^^^^^^^ +>this.pp2 : string +> : ^^^^^^ +>this : this +> : ^^^^ +>pp2 : string +> : ^^^^^^ + + strOrNum = typeof this.pp3 === "string" && this.pp3; // string | number +>strOrNum = typeof this.pp3 === "string" && this.pp3 : string +> : ^^^^^^ +>strOrNum : string | number +> : ^^^^^^^^^^^^^^^ +>typeof this.pp3 === "string" && this.pp3 : string +> : ^^^^^^ +>typeof this.pp3 === "string" : boolean +> : ^^^^^^^ +>typeof this.pp3 : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>this.pp3 : string | number +> : ^^^^^^^^^^^^^^^ +>this : this +> : ^^^^ +>pp3 : string | number +> : ^^^^^^^^^^^^^^^ +>"string" : "string" +> : ^^^^^^^^ +>this.pp3 : string +> : ^^^^^^ +>this : this +> : ^^^^ +>pp3 : string +> : ^^^^^^ + } +} +var c1: C1; +>c1 : C1 +> : ^^ + +strOrNum = typeof c1.pp2 === "string" && c1.pp2; // string | number +>strOrNum = typeof c1.pp2 === "string" && c1.pp2 : string +> : ^^^^^^ +>strOrNum : string | number +> : ^^^^^^^^^^^^^^^ +>typeof c1.pp2 === "string" && c1.pp2 : string +> : ^^^^^^ +>typeof c1.pp2 === "string" : boolean +> : ^^^^^^^ +>typeof c1.pp2 : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>c1.pp2 : string | number +> : ^^^^^^^^^^^^^^^ +>c1 : C1 +> : ^^ +>pp2 : string | number +> : ^^^^^^^^^^^^^^^ +>"string" : "string" +> : ^^^^^^^^ +>c1.pp2 : string +> : ^^^^^^ +>c1 : C1 +> : ^^ +>pp2 : string +> : ^^^^^^ + +strOrNum = typeof c1.pp3 === "string" && c1.pp3; // string | number +>strOrNum = typeof c1.pp3 === "string" && c1.pp3 : string +> : ^^^^^^ +>strOrNum : string | number +> : ^^^^^^^^^^^^^^^ +>typeof c1.pp3 === "string" && c1.pp3 : string +> : ^^^^^^ +>typeof c1.pp3 === "string" : boolean +> : ^^^^^^^ +>typeof c1.pp3 : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>c1.pp3 : string | number +> : ^^^^^^^^^^^^^^^ +>c1 : C1 +> : ^^ +>pp3 : string | number +> : ^^^^^^^^^^^^^^^ +>"string" : "string" +> : ^^^^^^^^ +>c1.pp3 : string +> : ^^^^^^ +>c1 : C1 +> : ^^ +>pp3 : string +> : ^^^^^^ + +var obj1: { +>obj1 : { x: string | number; } +> : ^^^^^ ^^^ + + x: string | number; +>x : string | number +> : ^^^^^^^^^^^^^^^ + +}; +strOrNum = typeof obj1.x === "string" && obj1.x; // string | number +>strOrNum = typeof obj1.x === "string" && obj1.x : string +> : ^^^^^^ +>strOrNum : string | number +> : ^^^^^^^^^^^^^^^ +>typeof obj1.x === "string" && obj1.x : string +> : ^^^^^^ +>typeof obj1.x === "string" : boolean +> : ^^^^^^^ +>typeof obj1.x : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>obj1.x : string | number +> : ^^^^^^^^^^^^^^^ +>obj1 : { x: string | number; } +> : ^^^^^ ^^^ +>x : string | number +> : ^^^^^^^^^^^^^^^ +>"string" : "string" +> : ^^^^^^^^ +>obj1.x : string +> : ^^^^^^ +>obj1 : { x: string | number; } +> : ^^^^^ ^^^ +>x : string +> : ^^^^^^ + diff --git a/tests/baselines/reference/typeGuardsObjectMethods(target=es2015).js b/tests/baselines/reference/typeGuardsObjectMethods(target=es2015).js new file mode 100644 index 0000000000000..a401e7e8571e8 --- /dev/null +++ b/tests/baselines/reference/typeGuardsObjectMethods(target=es2015).js @@ -0,0 +1,94 @@ +//// [tests/cases/conformance/expressions/typeGuards/typeGuardsObjectMethods.ts] //// + +//// [typeGuardsObjectMethods.ts] +// Note that type guards affect types of variables and parameters only and +// have no effect on members of objects such as properties. + +// variables in global +var num: number; +var strOrNum: string | number; +var var1: string | number; +var obj1 = { + // Inside method + method(param: string | number) { + // global vars in function declaration + num = typeof var1 === "string" && var1.length; // string + + // variables in function declaration + var var2: string | number; + num = typeof var2 === "string" && var2.length; // string + + // parameters in function declaration + num = typeof param === "string" && param.length; // string + + return strOrNum; + }, + get prop() { + // global vars in function declaration + num = typeof var1 === "string" && var1.length; // string + + // variables in function declaration + var var2: string | number; + num = typeof var2 === "string" && var2.length; // string + + return strOrNum; + }, + set prop(param: string | number) { + // global vars in function declaration + num = typeof var1 === "string" && var1.length; // string + + // variables in function declaration + var var2: string | number; + num = typeof var2 === "string" && var2.length; // string + + // parameters in function declaration + num = typeof param === "string" && param.length; // string + } +}; +// return expression of the method +strOrNum = typeof obj1.method(strOrNum) === "string" && obj1.method(strOrNum); + +// accessing getter property +strOrNum = typeof obj1.prop === "string" && obj1.prop; + +//// [typeGuardsObjectMethods.js] +// Note that type guards affect types of variables and parameters only and +// have no effect on members of objects such as properties. +// variables in global +var num; +var strOrNum; +var var1; +var obj1 = { + // Inside method + method(param) { + // global vars in function declaration + num = typeof var1 === "string" && var1.length; // string + // variables in function declaration + var var2; + num = typeof var2 === "string" && var2.length; // string + // parameters in function declaration + num = typeof param === "string" && param.length; // string + return strOrNum; + }, + get prop() { + // global vars in function declaration + num = typeof var1 === "string" && var1.length; // string + // variables in function declaration + var var2; + num = typeof var2 === "string" && var2.length; // string + return strOrNum; + }, + set prop(param) { + // global vars in function declaration + num = typeof var1 === "string" && var1.length; // string + // variables in function declaration + var var2; + num = typeof var2 === "string" && var2.length; // string + // parameters in function declaration + num = typeof param === "string" && param.length; // string + } +}; +// return expression of the method +strOrNum = typeof obj1.method(strOrNum) === "string" && obj1.method(strOrNum); +// accessing getter property +strOrNum = typeof obj1.prop === "string" && obj1.prop; diff --git a/tests/baselines/reference/typeGuardsObjectMethods.symbols b/tests/baselines/reference/typeGuardsObjectMethods(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/typeGuardsObjectMethods.symbols rename to tests/baselines/reference/typeGuardsObjectMethods(target=es2015).symbols diff --git a/tests/baselines/reference/typeGuardsObjectMethods.types b/tests/baselines/reference/typeGuardsObjectMethods(target=es2015).types similarity index 100% rename from tests/baselines/reference/typeGuardsObjectMethods.types rename to tests/baselines/reference/typeGuardsObjectMethods(target=es2015).types diff --git a/tests/baselines/reference/typeGuardsObjectMethods.js b/tests/baselines/reference/typeGuardsObjectMethods(target=es5).js similarity index 100% rename from tests/baselines/reference/typeGuardsObjectMethods.js rename to tests/baselines/reference/typeGuardsObjectMethods(target=es5).js diff --git a/tests/baselines/reference/typeGuardsObjectMethods(target=es5).symbols b/tests/baselines/reference/typeGuardsObjectMethods(target=es5).symbols new file mode 100644 index 0000000000000..4e5e9ba86de4e --- /dev/null +++ b/tests/baselines/reference/typeGuardsObjectMethods(target=es5).symbols @@ -0,0 +1,135 @@ +//// [tests/cases/conformance/expressions/typeGuards/typeGuardsObjectMethods.ts] //// + +=== typeGuardsObjectMethods.ts === +// Note that type guards affect types of variables and parameters only and +// have no effect on members of objects such as properties. + +// variables in global +var num: number; +>num : Symbol(num, Decl(typeGuardsObjectMethods.ts, 4, 3)) + +var strOrNum: string | number; +>strOrNum : Symbol(strOrNum, Decl(typeGuardsObjectMethods.ts, 5, 3)) + +var var1: string | number; +>var1 : Symbol(var1, Decl(typeGuardsObjectMethods.ts, 6, 3)) + +var obj1 = { +>obj1 : Symbol(obj1, Decl(typeGuardsObjectMethods.ts, 7, 3)) + + // Inside method + method(param: string | number) { +>method : Symbol(method, Decl(typeGuardsObjectMethods.ts, 7, 12)) +>param : Symbol(param, Decl(typeGuardsObjectMethods.ts, 9, 11)) + + // global vars in function declaration + num = typeof var1 === "string" && var1.length; // string +>num : Symbol(num, Decl(typeGuardsObjectMethods.ts, 4, 3)) +>var1 : Symbol(var1, Decl(typeGuardsObjectMethods.ts, 6, 3)) +>var1.length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) +>var1 : Symbol(var1, Decl(typeGuardsObjectMethods.ts, 6, 3)) +>length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) + + // variables in function declaration + var var2: string | number; +>var2 : Symbol(var2, Decl(typeGuardsObjectMethods.ts, 14, 11)) + + num = typeof var2 === "string" && var2.length; // string +>num : Symbol(num, Decl(typeGuardsObjectMethods.ts, 4, 3)) +>var2 : Symbol(var2, Decl(typeGuardsObjectMethods.ts, 14, 11)) +>var2.length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) +>var2 : Symbol(var2, Decl(typeGuardsObjectMethods.ts, 14, 11)) +>length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) + + // parameters in function declaration + num = typeof param === "string" && param.length; // string +>num : Symbol(num, Decl(typeGuardsObjectMethods.ts, 4, 3)) +>param : Symbol(param, Decl(typeGuardsObjectMethods.ts, 9, 11)) +>param.length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) +>param : Symbol(param, Decl(typeGuardsObjectMethods.ts, 9, 11)) +>length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) + + return strOrNum; +>strOrNum : Symbol(strOrNum, Decl(typeGuardsObjectMethods.ts, 5, 3)) + + }, + get prop() { +>prop : Symbol(prop, Decl(typeGuardsObjectMethods.ts, 21, 6), Decl(typeGuardsObjectMethods.ts, 31, 6)) + + // global vars in function declaration + num = typeof var1 === "string" && var1.length; // string +>num : Symbol(num, Decl(typeGuardsObjectMethods.ts, 4, 3)) +>var1 : Symbol(var1, Decl(typeGuardsObjectMethods.ts, 6, 3)) +>var1.length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) +>var1 : Symbol(var1, Decl(typeGuardsObjectMethods.ts, 6, 3)) +>length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) + + // variables in function declaration + var var2: string | number; +>var2 : Symbol(var2, Decl(typeGuardsObjectMethods.ts, 27, 11)) + + num = typeof var2 === "string" && var2.length; // string +>num : Symbol(num, Decl(typeGuardsObjectMethods.ts, 4, 3)) +>var2 : Symbol(var2, Decl(typeGuardsObjectMethods.ts, 27, 11)) +>var2.length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) +>var2 : Symbol(var2, Decl(typeGuardsObjectMethods.ts, 27, 11)) +>length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) + + return strOrNum; +>strOrNum : Symbol(strOrNum, Decl(typeGuardsObjectMethods.ts, 5, 3)) + + }, + set prop(param: string | number) { +>prop : Symbol(prop, Decl(typeGuardsObjectMethods.ts, 21, 6), Decl(typeGuardsObjectMethods.ts, 31, 6)) +>param : Symbol(param, Decl(typeGuardsObjectMethods.ts, 32, 13)) + + // global vars in function declaration + num = typeof var1 === "string" && var1.length; // string +>num : Symbol(num, Decl(typeGuardsObjectMethods.ts, 4, 3)) +>var1 : Symbol(var1, Decl(typeGuardsObjectMethods.ts, 6, 3)) +>var1.length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) +>var1 : Symbol(var1, Decl(typeGuardsObjectMethods.ts, 6, 3)) +>length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) + + // variables in function declaration + var var2: string | number; +>var2 : Symbol(var2, Decl(typeGuardsObjectMethods.ts, 37, 11)) + + num = typeof var2 === "string" && var2.length; // string +>num : Symbol(num, Decl(typeGuardsObjectMethods.ts, 4, 3)) +>var2 : Symbol(var2, Decl(typeGuardsObjectMethods.ts, 37, 11)) +>var2.length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) +>var2 : Symbol(var2, Decl(typeGuardsObjectMethods.ts, 37, 11)) +>length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) + + // parameters in function declaration + num = typeof param === "string" && param.length; // string +>num : Symbol(num, Decl(typeGuardsObjectMethods.ts, 4, 3)) +>param : Symbol(param, Decl(typeGuardsObjectMethods.ts, 32, 13)) +>param.length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) +>param : Symbol(param, Decl(typeGuardsObjectMethods.ts, 32, 13)) +>length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) + } +}; +// return expression of the method +strOrNum = typeof obj1.method(strOrNum) === "string" && obj1.method(strOrNum); +>strOrNum : Symbol(strOrNum, Decl(typeGuardsObjectMethods.ts, 5, 3)) +>obj1.method : Symbol(method, Decl(typeGuardsObjectMethods.ts, 7, 12)) +>obj1 : Symbol(obj1, Decl(typeGuardsObjectMethods.ts, 7, 3)) +>method : Symbol(method, Decl(typeGuardsObjectMethods.ts, 7, 12)) +>strOrNum : Symbol(strOrNum, Decl(typeGuardsObjectMethods.ts, 5, 3)) +>obj1.method : Symbol(method, Decl(typeGuardsObjectMethods.ts, 7, 12)) +>obj1 : Symbol(obj1, Decl(typeGuardsObjectMethods.ts, 7, 3)) +>method : Symbol(method, Decl(typeGuardsObjectMethods.ts, 7, 12)) +>strOrNum : Symbol(strOrNum, Decl(typeGuardsObjectMethods.ts, 5, 3)) + +// accessing getter property +strOrNum = typeof obj1.prop === "string" && obj1.prop; +>strOrNum : Symbol(strOrNum, Decl(typeGuardsObjectMethods.ts, 5, 3)) +>obj1.prop : Symbol(prop, Decl(typeGuardsObjectMethods.ts, 21, 6), Decl(typeGuardsObjectMethods.ts, 31, 6)) +>obj1 : Symbol(obj1, Decl(typeGuardsObjectMethods.ts, 7, 3)) +>prop : Symbol(prop, Decl(typeGuardsObjectMethods.ts, 21, 6), Decl(typeGuardsObjectMethods.ts, 31, 6)) +>obj1.prop : Symbol(prop, Decl(typeGuardsObjectMethods.ts, 21, 6), Decl(typeGuardsObjectMethods.ts, 31, 6)) +>obj1 : Symbol(obj1, Decl(typeGuardsObjectMethods.ts, 7, 3)) +>prop : Symbol(prop, Decl(typeGuardsObjectMethods.ts, 21, 6), Decl(typeGuardsObjectMethods.ts, 31, 6)) + diff --git a/tests/baselines/reference/typeGuardsObjectMethods(target=es5).types b/tests/baselines/reference/typeGuardsObjectMethods(target=es5).types new file mode 100644 index 0000000000000..4861303c59e98 --- /dev/null +++ b/tests/baselines/reference/typeGuardsObjectMethods(target=es5).types @@ -0,0 +1,311 @@ +//// [tests/cases/conformance/expressions/typeGuards/typeGuardsObjectMethods.ts] //// + +=== typeGuardsObjectMethods.ts === +// Note that type guards affect types of variables and parameters only and +// have no effect on members of objects such as properties. + +// variables in global +var num: number; +>num : number +> : ^^^^^^ + +var strOrNum: string | number; +>strOrNum : string | number +> : ^^^^^^^^^^^^^^^ + +var var1: string | number; +>var1 : string | number +> : ^^^^^^^^^^^^^^^ + +var obj1 = { +>obj1 : { method(param: string | number): string | number; prop: string | number; } +> : ^^^^^^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^ +>{ // Inside method method(param: string | number) { // global vars in function declaration num = typeof var1 === "string" && var1.length; // string // variables in function declaration var var2: string | number; num = typeof var2 === "string" && var2.length; // string // parameters in function declaration num = typeof param === "string" && param.length; // string return strOrNum; }, get prop() { // global vars in function declaration num = typeof var1 === "string" && var1.length; // string // variables in function declaration var var2: string | number; num = typeof var2 === "string" && var2.length; // string return strOrNum; }, set prop(param: string | number) { // global vars in function declaration num = typeof var1 === "string" && var1.length; // string // variables in function declaration var var2: string | number; num = typeof var2 === "string" && var2.length; // string // parameters in function declaration num = typeof param === "string" && param.length; // string }} : { method(param: string | number): string | number; prop: string | number; } +> : ^^^^^^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^ + + // Inside method + method(param: string | number) { +>method : (param: string | number) => string | number +> : ^ ^^ ^^^^^^^^^^^^^^^^^^^^ +>param : string | number +> : ^^^^^^^^^^^^^^^ + + // global vars in function declaration + num = typeof var1 === "string" && var1.length; // string +>num = typeof var1 === "string" && var1.length : number +> : ^^^^^^ +>num : number +> : ^^^^^^ +>typeof var1 === "string" && var1.length : number +> : ^^^^^^ +>typeof var1 === "string" : boolean +> : ^^^^^^^ +>typeof var1 : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>var1 : string | number +> : ^^^^^^^^^^^^^^^ +>"string" : "string" +> : ^^^^^^^^ +>var1.length : number +> : ^^^^^^ +>var1 : string +> : ^^^^^^ +>length : number +> : ^^^^^^ + + // variables in function declaration + var var2: string | number; +>var2 : string | number +> : ^^^^^^^^^^^^^^^ + + num = typeof var2 === "string" && var2.length; // string +>num = typeof var2 === "string" && var2.length : number +> : ^^^^^^ +>num : number +> : ^^^^^^ +>typeof var2 === "string" && var2.length : number +> : ^^^^^^ +>typeof var2 === "string" : boolean +> : ^^^^^^^ +>typeof var2 : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>var2 : string | number +> : ^^^^^^^^^^^^^^^ +>"string" : "string" +> : ^^^^^^^^ +>var2.length : number +> : ^^^^^^ +>var2 : string +> : ^^^^^^ +>length : number +> : ^^^^^^ + + // parameters in function declaration + num = typeof param === "string" && param.length; // string +>num = typeof param === "string" && param.length : number +> : ^^^^^^ +>num : number +> : ^^^^^^ +>typeof param === "string" && param.length : number +> : ^^^^^^ +>typeof param === "string" : boolean +> : ^^^^^^^ +>typeof param : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>param : string | number +> : ^^^^^^^^^^^^^^^ +>"string" : "string" +> : ^^^^^^^^ +>param.length : number +> : ^^^^^^ +>param : string +> : ^^^^^^ +>length : number +> : ^^^^^^ + + return strOrNum; +>strOrNum : string | number +> : ^^^^^^^^^^^^^^^ + + }, + get prop() { +>prop : string | number +> : ^^^^^^^^^^^^^^^ + + // global vars in function declaration + num = typeof var1 === "string" && var1.length; // string +>num = typeof var1 === "string" && var1.length : number +> : ^^^^^^ +>num : number +> : ^^^^^^ +>typeof var1 === "string" && var1.length : number +> : ^^^^^^ +>typeof var1 === "string" : boolean +> : ^^^^^^^ +>typeof var1 : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>var1 : string | number +> : ^^^^^^^^^^^^^^^ +>"string" : "string" +> : ^^^^^^^^ +>var1.length : number +> : ^^^^^^ +>var1 : string +> : ^^^^^^ +>length : number +> : ^^^^^^ + + // variables in function declaration + var var2: string | number; +>var2 : string | number +> : ^^^^^^^^^^^^^^^ + + num = typeof var2 === "string" && var2.length; // string +>num = typeof var2 === "string" && var2.length : number +> : ^^^^^^ +>num : number +> : ^^^^^^ +>typeof var2 === "string" && var2.length : number +> : ^^^^^^ +>typeof var2 === "string" : boolean +> : ^^^^^^^ +>typeof var2 : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>var2 : string | number +> : ^^^^^^^^^^^^^^^ +>"string" : "string" +> : ^^^^^^^^ +>var2.length : number +> : ^^^^^^ +>var2 : string +> : ^^^^^^ +>length : number +> : ^^^^^^ + + return strOrNum; +>strOrNum : string | number +> : ^^^^^^^^^^^^^^^ + + }, + set prop(param: string | number) { +>prop : string | number +> : ^^^^^^^^^^^^^^^ +>param : string | number +> : ^^^^^^^^^^^^^^^ + + // global vars in function declaration + num = typeof var1 === "string" && var1.length; // string +>num = typeof var1 === "string" && var1.length : number +> : ^^^^^^ +>num : number +> : ^^^^^^ +>typeof var1 === "string" && var1.length : number +> : ^^^^^^ +>typeof var1 === "string" : boolean +> : ^^^^^^^ +>typeof var1 : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>var1 : string | number +> : ^^^^^^^^^^^^^^^ +>"string" : "string" +> : ^^^^^^^^ +>var1.length : number +> : ^^^^^^ +>var1 : string +> : ^^^^^^ +>length : number +> : ^^^^^^ + + // variables in function declaration + var var2: string | number; +>var2 : string | number +> : ^^^^^^^^^^^^^^^ + + num = typeof var2 === "string" && var2.length; // string +>num = typeof var2 === "string" && var2.length : number +> : ^^^^^^ +>num : number +> : ^^^^^^ +>typeof var2 === "string" && var2.length : number +> : ^^^^^^ +>typeof var2 === "string" : boolean +> : ^^^^^^^ +>typeof var2 : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>var2 : string | number +> : ^^^^^^^^^^^^^^^ +>"string" : "string" +> : ^^^^^^^^ +>var2.length : number +> : ^^^^^^ +>var2 : string +> : ^^^^^^ +>length : number +> : ^^^^^^ + + // parameters in function declaration + num = typeof param === "string" && param.length; // string +>num = typeof param === "string" && param.length : number +> : ^^^^^^ +>num : number +> : ^^^^^^ +>typeof param === "string" && param.length : number +> : ^^^^^^ +>typeof param === "string" : boolean +> : ^^^^^^^ +>typeof param : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>param : string | number +> : ^^^^^^^^^^^^^^^ +>"string" : "string" +> : ^^^^^^^^ +>param.length : number +> : ^^^^^^ +>param : string +> : ^^^^^^ +>length : number +> : ^^^^^^ + } +}; +// return expression of the method +strOrNum = typeof obj1.method(strOrNum) === "string" && obj1.method(strOrNum); +>strOrNum = typeof obj1.method(strOrNum) === "string" && obj1.method(strOrNum) : string | number +> : ^^^^^^^^^^^^^^^ +>strOrNum : string | number +> : ^^^^^^^^^^^^^^^ +>typeof obj1.method(strOrNum) === "string" && obj1.method(strOrNum) : string | number +> : ^^^^^^^^^^^^^^^ +>typeof obj1.method(strOrNum) === "string" : boolean +> : ^^^^^^^ +>typeof obj1.method(strOrNum) : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>obj1.method(strOrNum) : string | number +> : ^^^^^^^^^^^^^^^ +>obj1.method : (param: string | number) => string | number +> : ^ ^^ ^^^^^^^^^^^^^^^^^^^^ +>obj1 : { method(param: string | number): string | number; prop: string | number; } +> : ^^^^^^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^ +>method : (param: string | number) => string | number +> : ^ ^^ ^^^^^^^^^^^^^^^^^^^^ +>strOrNum : string | number +> : ^^^^^^^^^^^^^^^ +>"string" : "string" +> : ^^^^^^^^ +>obj1.method(strOrNum) : string | number +> : ^^^^^^^^^^^^^^^ +>obj1.method : (param: string | number) => string | number +> : ^ ^^ ^^^^^^^^^^^^^^^^^^^^ +>obj1 : { method(param: string | number): string | number; prop: string | number; } +> : ^^^^^^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^ +>method : (param: string | number) => string | number +> : ^ ^^ ^^^^^^^^^^^^^^^^^^^^ +>strOrNum : string | number +> : ^^^^^^^^^^^^^^^ + +// accessing getter property +strOrNum = typeof obj1.prop === "string" && obj1.prop; +>strOrNum = typeof obj1.prop === "string" && obj1.prop : string +> : ^^^^^^ +>strOrNum : string | number +> : ^^^^^^^^^^^^^^^ +>typeof obj1.prop === "string" && obj1.prop : string +> : ^^^^^^ +>typeof obj1.prop === "string" : boolean +> : ^^^^^^^ +>typeof obj1.prop : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>obj1.prop : string | number +> : ^^^^^^^^^^^^^^^ +>obj1 : { method(param: string | number): string | number; prop: string | number; } +> : ^^^^^^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^ +>prop : string | number +> : ^^^^^^^^^^^^^^^ +>"string" : "string" +> : ^^^^^^^^ +>obj1.prop : string +> : ^^^^^^ +>obj1 : { method(param: string | number): string | number; prop: string | number; } +> : ^^^^^^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^ +>prop : string +> : ^^^^^^ + diff --git a/tests/baselines/reference/typedArrays-es5(target=es2015).js b/tests/baselines/reference/typedArrays-es5(target=es2015).js new file mode 100644 index 0000000000000..bfac166b11c63 --- /dev/null +++ b/tests/baselines/reference/typedArrays-es5(target=es2015).js @@ -0,0 +1,57 @@ +//// [tests/cases/compiler/typedArrays-es5.ts] //// + +//// [typedArrays-es5.ts] +const float32Array = new Float32Array(1); +[...float32Array]; + +const float64Array = new Float64Array(1); +[...float64Array]; + +const int16Array = new Int16Array(1); +[...int16Array]; + +const int32Array = new Int32Array(1); +[...int32Array]; + +const int8Array = new Int8Array(1); +[...int8Array]; + +const nodeList = new NodeList(); +[...nodeList]; + +const uint16Array = new Uint16Array(1); +[...uint16Array]; + +const uint32Array = new Uint32Array(1); +[...uint32Array]; + +const uint8Array = new Uint8Array(1); +[...uint8Array]; + +const uint8ClampedArray = new Uint8ClampedArray(1); +[...uint8ClampedArray]; + + + + +//// [typedArrays-es5.js] +const float32Array = new Float32Array(1); +[...float32Array]; +const float64Array = new Float64Array(1); +[...float64Array]; +const int16Array = new Int16Array(1); +[...int16Array]; +const int32Array = new Int32Array(1); +[...int32Array]; +const int8Array = new Int8Array(1); +[...int8Array]; +const nodeList = new NodeList(); +[...nodeList]; +const uint16Array = new Uint16Array(1); +[...uint16Array]; +const uint32Array = new Uint32Array(1); +[...uint32Array]; +const uint8Array = new Uint8Array(1); +[...uint8Array]; +const uint8ClampedArray = new Uint8ClampedArray(1); +[...uint8ClampedArray]; diff --git a/tests/baselines/reference/typedArrays-es5.symbols b/tests/baselines/reference/typedArrays-es5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/typedArrays-es5.symbols rename to tests/baselines/reference/typedArrays-es5(target=es2015).symbols diff --git a/tests/baselines/reference/typedArrays-es5(target=es2015).types b/tests/baselines/reference/typedArrays-es5(target=es2015).types new file mode 100644 index 0000000000000..eca7290bfc37a --- /dev/null +++ b/tests/baselines/reference/typedArrays-es5(target=es2015).types @@ -0,0 +1,183 @@ +//// [tests/cases/compiler/typedArrays-es5.ts] //// + +=== typedArrays-es5.ts === +const float32Array = new Float32Array(1); +>float32Array : Float32Array +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>new Float32Array(1) : Float32Array +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>Float32Array : Float32ArrayConstructor +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>1 : 1 +> : ^ + +[...float32Array]; +>[...float32Array] : number[] +> : ^^^^^^^^ +>...float32Array : number +> : ^^^^^^ +>float32Array : Float32Array +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ + +const float64Array = new Float64Array(1); +>float64Array : Float64Array +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>new Float64Array(1) : Float64Array +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>Float64Array : Float64ArrayConstructor +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>1 : 1 +> : ^ + +[...float64Array]; +>[...float64Array] : number[] +> : ^^^^^^^^ +>...float64Array : number +> : ^^^^^^ +>float64Array : Float64Array +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ + +const int16Array = new Int16Array(1); +>int16Array : Int16Array +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>new Int16Array(1) : Int16Array +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>Int16Array : Int16ArrayConstructor +> : ^^^^^^^^^^^^^^^^^^^^^ +>1 : 1 +> : ^ + +[...int16Array]; +>[...int16Array] : number[] +> : ^^^^^^^^ +>...int16Array : number +> : ^^^^^^ +>int16Array : Int16Array +> : ^^^^^^^^^^^^^^^^^^^^^^^ + +const int32Array = new Int32Array(1); +>int32Array : Int32Array +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>new Int32Array(1) : Int32Array +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>Int32Array : Int32ArrayConstructor +> : ^^^^^^^^^^^^^^^^^^^^^ +>1 : 1 +> : ^ + +[...int32Array]; +>[...int32Array] : number[] +> : ^^^^^^^^ +>...int32Array : number +> : ^^^^^^ +>int32Array : Int32Array +> : ^^^^^^^^^^^^^^^^^^^^^^^ + +const int8Array = new Int8Array(1); +>int8Array : Int8Array +> : ^^^^^^^^^^^^^^^^^^^^^^ +>new Int8Array(1) : Int8Array +> : ^^^^^^^^^^^^^^^^^^^^^^ +>Int8Array : Int8ArrayConstructor +> : ^^^^^^^^^^^^^^^^^^^^ +>1 : 1 +> : ^ + +[...int8Array]; +>[...int8Array] : number[] +> : ^^^^^^^^ +>...int8Array : number +> : ^^^^^^ +>int8Array : Int8Array +> : ^^^^^^^^^^^^^^^^^^^^^^ + +const nodeList = new NodeList(); +>nodeList : NodeList +> : ^^^^^^^^ +>new NodeList() : NodeList +> : ^^^^^^^^ +>NodeList : { new (): NodeList; prototype: NodeList; } +> : ^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^ + +[...nodeList]; +>[...nodeList] : Node[] +> : ^^^^^^ +>...nodeList : Node +> : ^^^^ +>nodeList : NodeList +> : ^^^^^^^^ + +const uint16Array = new Uint16Array(1); +>uint16Array : Uint16Array +> : ^^^^^^^^^^^^^^^^^^^^^^^^ +>new Uint16Array(1) : Uint16Array +> : ^^^^^^^^^^^^^^^^^^^^^^^^ +>Uint16Array : Uint16ArrayConstructor +> : ^^^^^^^^^^^^^^^^^^^^^^ +>1 : 1 +> : ^ + +[...uint16Array]; +>[...uint16Array] : number[] +> : ^^^^^^^^ +>...uint16Array : number +> : ^^^^^^ +>uint16Array : Uint16Array +> : ^^^^^^^^^^^^^^^^^^^^^^^^ + +const uint32Array = new Uint32Array(1); +>uint32Array : Uint32Array +> : ^^^^^^^^^^^^^^^^^^^^^^^^ +>new Uint32Array(1) : Uint32Array +> : ^^^^^^^^^^^^^^^^^^^^^^^^ +>Uint32Array : Uint32ArrayConstructor +> : ^^^^^^^^^^^^^^^^^^^^^^ +>1 : 1 +> : ^ + +[...uint32Array]; +>[...uint32Array] : number[] +> : ^^^^^^^^ +>...uint32Array : number +> : ^^^^^^ +>uint32Array : Uint32Array +> : ^^^^^^^^^^^^^^^^^^^^^^^^ + +const uint8Array = new Uint8Array(1); +>uint8Array : Uint8Array +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>new Uint8Array(1) : Uint8Array +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>Uint8Array : Uint8ArrayConstructor +> : ^^^^^^^^^^^^^^^^^^^^^ +>1 : 1 +> : ^ + +[...uint8Array]; +>[...uint8Array] : number[] +> : ^^^^^^^^ +>...uint8Array : number +> : ^^^^^^ +>uint8Array : Uint8Array +> : ^^^^^^^^^^^^^^^^^^^^^^^ + +const uint8ClampedArray = new Uint8ClampedArray(1); +>uint8ClampedArray : Uint8ClampedArray +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>new Uint8ClampedArray(1) : Uint8ClampedArray +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>Uint8ClampedArray : Uint8ClampedArrayConstructor +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>1 : 1 +> : ^ + +[...uint8ClampedArray]; +>[...uint8ClampedArray] : number[] +> : ^^^^^^^^ +>...uint8ClampedArray : number +> : ^^^^^^ +>uint8ClampedArray : Uint8ClampedArray +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + + diff --git a/tests/baselines/reference/typedArrays-es5.errors.txt b/tests/baselines/reference/typedArrays-es5(target=es5).errors.txt similarity index 100% rename from tests/baselines/reference/typedArrays-es5.errors.txt rename to tests/baselines/reference/typedArrays-es5(target=es5).errors.txt diff --git a/tests/baselines/reference/typedArrays-es5.js b/tests/baselines/reference/typedArrays-es5(target=es5).js similarity index 100% rename from tests/baselines/reference/typedArrays-es5.js rename to tests/baselines/reference/typedArrays-es5(target=es5).js diff --git a/tests/baselines/reference/typedArrays-es5(target=es5).symbols b/tests/baselines/reference/typedArrays-es5(target=es5).symbols new file mode 100644 index 0000000000000..81ca1ace9245b --- /dev/null +++ b/tests/baselines/reference/typedArrays-es5(target=es5).symbols @@ -0,0 +1,75 @@ +//// [tests/cases/compiler/typedArrays-es5.ts] //// + +=== typedArrays-es5.ts === +const float32Array = new Float32Array(1); +>float32Array : Symbol(float32Array, Decl(typedArrays-es5.ts, 0, 5)) +>Float32Array : Symbol(Float32Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + +[...float32Array]; +>float32Array : Symbol(float32Array, Decl(typedArrays-es5.ts, 0, 5)) + +const float64Array = new Float64Array(1); +>float64Array : Symbol(float64Array, Decl(typedArrays-es5.ts, 3, 5)) +>Float64Array : Symbol(Float64Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + +[...float64Array]; +>float64Array : Symbol(float64Array, Decl(typedArrays-es5.ts, 3, 5)) + +const int16Array = new Int16Array(1); +>int16Array : Symbol(int16Array, Decl(typedArrays-es5.ts, 6, 5)) +>Int16Array : Symbol(Int16Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + +[...int16Array]; +>int16Array : Symbol(int16Array, Decl(typedArrays-es5.ts, 6, 5)) + +const int32Array = new Int32Array(1); +>int32Array : Symbol(int32Array, Decl(typedArrays-es5.ts, 9, 5)) +>Int32Array : Symbol(Int32Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + +[...int32Array]; +>int32Array : Symbol(int32Array, Decl(typedArrays-es5.ts, 9, 5)) + +const int8Array = new Int8Array(1); +>int8Array : Symbol(int8Array, Decl(typedArrays-es5.ts, 12, 5)) +>Int8Array : Symbol(Int8Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + +[...int8Array]; +>int8Array : Symbol(int8Array, Decl(typedArrays-es5.ts, 12, 5)) + +const nodeList = new NodeList(); +>nodeList : Symbol(nodeList, Decl(typedArrays-es5.ts, 15, 5)) +>NodeList : Symbol(NodeList, Decl(lib.dom.d.ts, --, --), Decl(lib.dom.d.ts, --, --), Decl(lib.dom.d.ts, --, --)) + +[...nodeList]; +>nodeList : Symbol(nodeList, Decl(typedArrays-es5.ts, 15, 5)) + +const uint16Array = new Uint16Array(1); +>uint16Array : Symbol(uint16Array, Decl(typedArrays-es5.ts, 18, 5)) +>Uint16Array : Symbol(Uint16Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + +[...uint16Array]; +>uint16Array : Symbol(uint16Array, Decl(typedArrays-es5.ts, 18, 5)) + +const uint32Array = new Uint32Array(1); +>uint32Array : Symbol(uint32Array, Decl(typedArrays-es5.ts, 21, 5)) +>Uint32Array : Symbol(Uint32Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + +[...uint32Array]; +>uint32Array : Symbol(uint32Array, Decl(typedArrays-es5.ts, 21, 5)) + +const uint8Array = new Uint8Array(1); +>uint8Array : Symbol(uint8Array, Decl(typedArrays-es5.ts, 24, 5)) +>Uint8Array : Symbol(Uint8Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + +[...uint8Array]; +>uint8Array : Symbol(uint8Array, Decl(typedArrays-es5.ts, 24, 5)) + +const uint8ClampedArray = new Uint8ClampedArray(1); +>uint8ClampedArray : Symbol(uint8ClampedArray, Decl(typedArrays-es5.ts, 27, 5)) +>Uint8ClampedArray : Symbol(Uint8ClampedArray, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + +[...uint8ClampedArray]; +>uint8ClampedArray : Symbol(uint8ClampedArray, Decl(typedArrays-es5.ts, 27, 5)) + + + diff --git a/tests/baselines/reference/typedArrays-es5.types b/tests/baselines/reference/typedArrays-es5(target=es5).types similarity index 100% rename from tests/baselines/reference/typedArrays-es5.types rename to tests/baselines/reference/typedArrays-es5(target=es5).types diff --git a/tests/baselines/reference/unusedGetterInClass.errors.txt b/tests/baselines/reference/unusedGetterInClass(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/unusedGetterInClass.errors.txt rename to tests/baselines/reference/unusedGetterInClass(target=es2015).errors.txt diff --git a/tests/baselines/reference/unusedGetterInClass(target=es2015).js b/tests/baselines/reference/unusedGetterInClass(target=es2015).js new file mode 100644 index 0000000000000..afe7782af7453 --- /dev/null +++ b/tests/baselines/reference/unusedGetterInClass(target=es2015).js @@ -0,0 +1,21 @@ +//// [tests/cases/compiler/unusedGetterInClass.ts] //// + +//// [unusedGetterInClass.ts] +class Employee { + private _fullName: string; + + private get fullName(): string { + return this._fullName; + } + // Will not also error on the setter + private set fullName(_: string) {} +} + +//// [unusedGetterInClass.js] +class Employee { + get fullName() { + return this._fullName; + } + // Will not also error on the setter + set fullName(_) { } +} diff --git a/tests/baselines/reference/unusedGetterInClass.symbols b/tests/baselines/reference/unusedGetterInClass(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/unusedGetterInClass.symbols rename to tests/baselines/reference/unusedGetterInClass(target=es2015).symbols diff --git a/tests/baselines/reference/unusedGetterInClass.types b/tests/baselines/reference/unusedGetterInClass(target=es2015).types similarity index 100% rename from tests/baselines/reference/unusedGetterInClass.types rename to tests/baselines/reference/unusedGetterInClass(target=es2015).types diff --git a/tests/baselines/reference/unusedGetterInClass(target=es5).errors.txt b/tests/baselines/reference/unusedGetterInClass(target=es5).errors.txt new file mode 100644 index 0000000000000..ddc0cffcd7b8c --- /dev/null +++ b/tests/baselines/reference/unusedGetterInClass(target=es5).errors.txt @@ -0,0 +1,15 @@ +unusedGetterInClass.ts(4,17): error TS6133: 'fullName' is declared but its value is never read. + + +==== unusedGetterInClass.ts (1 errors) ==== + class Employee { + private _fullName: string; + + private get fullName(): string { + ~~~~~~~~ +!!! error TS6133: 'fullName' is declared but its value is never read. + return this._fullName; + } + // Will not also error on the setter + private set fullName(_: string) {} + } \ No newline at end of file diff --git a/tests/baselines/reference/unusedGetterInClass.js b/tests/baselines/reference/unusedGetterInClass(target=es5).js similarity index 100% rename from tests/baselines/reference/unusedGetterInClass.js rename to tests/baselines/reference/unusedGetterInClass(target=es5).js diff --git a/tests/baselines/reference/unusedGetterInClass(target=es5).symbols b/tests/baselines/reference/unusedGetterInClass(target=es5).symbols new file mode 100644 index 0000000000000..b7a6b7e795aa6 --- /dev/null +++ b/tests/baselines/reference/unusedGetterInClass(target=es5).symbols @@ -0,0 +1,22 @@ +//// [tests/cases/compiler/unusedGetterInClass.ts] //// + +=== unusedGetterInClass.ts === +class Employee { +>Employee : Symbol(Employee, Decl(unusedGetterInClass.ts, 0, 0)) + + private _fullName: string; +>_fullName : Symbol(Employee._fullName, Decl(unusedGetterInClass.ts, 0, 16)) + + private get fullName(): string { +>fullName : Symbol(Employee.fullName, Decl(unusedGetterInClass.ts, 1, 30), Decl(unusedGetterInClass.ts, 5, 5)) + + return this._fullName; +>this._fullName : Symbol(Employee._fullName, Decl(unusedGetterInClass.ts, 0, 16)) +>this : Symbol(Employee, Decl(unusedGetterInClass.ts, 0, 0)) +>_fullName : Symbol(Employee._fullName, Decl(unusedGetterInClass.ts, 0, 16)) + } + // Will not also error on the setter + private set fullName(_: string) {} +>fullName : Symbol(Employee.fullName, Decl(unusedGetterInClass.ts, 1, 30), Decl(unusedGetterInClass.ts, 5, 5)) +>_ : Symbol(_, Decl(unusedGetterInClass.ts, 7, 25)) +} diff --git a/tests/baselines/reference/unusedGetterInClass(target=es5).types b/tests/baselines/reference/unusedGetterInClass(target=es5).types new file mode 100644 index 0000000000000..3cac1990b31b6 --- /dev/null +++ b/tests/baselines/reference/unusedGetterInClass(target=es5).types @@ -0,0 +1,30 @@ +//// [tests/cases/compiler/unusedGetterInClass.ts] //// + +=== unusedGetterInClass.ts === +class Employee { +>Employee : Employee +> : ^^^^^^^^ + + private _fullName: string; +>_fullName : string +> : ^^^^^^ + + private get fullName(): string { +>fullName : string +> : ^^^^^^ + + return this._fullName; +>this._fullName : string +> : ^^^^^^ +>this : this +> : ^^^^ +>_fullName : string +> : ^^^^^^ + } + // Will not also error on the setter + private set fullName(_: string) {} +>fullName : string +> : ^^^^^^ +>_ : string +> : ^^^^^^ +} diff --git a/tests/baselines/reference/unusedParameterUsedInTypeOf.js b/tests/baselines/reference/unusedParameterUsedInTypeOf(target=es2015).js similarity index 100% rename from tests/baselines/reference/unusedParameterUsedInTypeOf.js rename to tests/baselines/reference/unusedParameterUsedInTypeOf(target=es2015).js diff --git a/tests/baselines/reference/unusedParameterUsedInTypeOf.symbols b/tests/baselines/reference/unusedParameterUsedInTypeOf(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/unusedParameterUsedInTypeOf.symbols rename to tests/baselines/reference/unusedParameterUsedInTypeOf(target=es2015).symbols diff --git a/tests/baselines/reference/unusedParameterUsedInTypeOf.types b/tests/baselines/reference/unusedParameterUsedInTypeOf(target=es2015).types similarity index 100% rename from tests/baselines/reference/unusedParameterUsedInTypeOf.types rename to tests/baselines/reference/unusedParameterUsedInTypeOf(target=es2015).types diff --git a/tests/baselines/reference/unusedParameterUsedInTypeOf(target=es5).js b/tests/baselines/reference/unusedParameterUsedInTypeOf(target=es5).js new file mode 100644 index 0000000000000..b38791c028cb5 --- /dev/null +++ b/tests/baselines/reference/unusedParameterUsedInTypeOf(target=es5).js @@ -0,0 +1,11 @@ +//// [tests/cases/compiler/unusedParameterUsedInTypeOf.ts] //// + +//// [unusedParameterUsedInTypeOf.ts] +function f1 (a: number, b: typeof a) { + return b; +} + +//// [unusedParameterUsedInTypeOf.js] +function f1(a, b) { + return b; +} diff --git a/tests/baselines/reference/unusedParameterUsedInTypeOf(target=es5).symbols b/tests/baselines/reference/unusedParameterUsedInTypeOf(target=es5).symbols new file mode 100644 index 0000000000000..34b1d5c95967b --- /dev/null +++ b/tests/baselines/reference/unusedParameterUsedInTypeOf(target=es5).symbols @@ -0,0 +1,12 @@ +//// [tests/cases/compiler/unusedParameterUsedInTypeOf.ts] //// + +=== unusedParameterUsedInTypeOf.ts === +function f1 (a: number, b: typeof a) { +>f1 : Symbol(f1, Decl(unusedParameterUsedInTypeOf.ts, 0, 0)) +>a : Symbol(a, Decl(unusedParameterUsedInTypeOf.ts, 0, 13)) +>b : Symbol(b, Decl(unusedParameterUsedInTypeOf.ts, 0, 23)) +>a : Symbol(a, Decl(unusedParameterUsedInTypeOf.ts, 0, 13)) + + return b; +>b : Symbol(b, Decl(unusedParameterUsedInTypeOf.ts, 0, 23)) +} diff --git a/tests/baselines/reference/unusedParameterUsedInTypeOf(target=es5).types b/tests/baselines/reference/unusedParameterUsedInTypeOf(target=es5).types new file mode 100644 index 0000000000000..fb5487906db3f --- /dev/null +++ b/tests/baselines/reference/unusedParameterUsedInTypeOf(target=es5).types @@ -0,0 +1,17 @@ +//// [tests/cases/compiler/unusedParameterUsedInTypeOf.ts] //// + +=== unusedParameterUsedInTypeOf.ts === +function f1 (a: number, b: typeof a) { +>f1 : (a: number, b: typeof a) => number +> : ^ ^^ ^^ ^^ ^^^^^^^^^^^ +>a : number +> : ^^^^^^ +>b : number +> : ^^^^^^ +>a : number +> : ^^^^^^ + + return b; +>b : number +> : ^^^^^^ +} diff --git a/tests/baselines/reference/unusedPrivateMembers.errors.txt b/tests/baselines/reference/unusedPrivateMembers(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/unusedPrivateMembers.errors.txt rename to tests/baselines/reference/unusedPrivateMembers(target=es2015).errors.txt diff --git a/tests/baselines/reference/unusedPrivateMembers(target=es2015).js b/tests/baselines/reference/unusedPrivateMembers(target=es2015).js new file mode 100644 index 0000000000000..1883f742ae8be --- /dev/null +++ b/tests/baselines/reference/unusedPrivateMembers(target=es2015).js @@ -0,0 +1,124 @@ +//// [tests/cases/compiler/unusedPrivateMembers.ts] //// + +//// [unusedPrivateMembers.ts] +class Test1 { + private initializeInternal() { + } + + public test() { + var x = new Test1(); + x.initializeInternal(); + } +} + +class Test2 { + private p = 0; + public test() { + var x = new Test2(); + x.p; + } +} + +class Test3 { + private get x () { + return 0; + } + + public test() { + var x = new Test3(); + x.x; + } +} + +class Test4 { + private set x(v) { + v; + } + + public test() { + var x = new Test4(); + x.x; + } +} + +class Test5 { + private p: T; + public test() { + var x = new Test5(); + x.p; + } +} + +class Test6 { + private get a() { + return 0; + } + private set a(v) { + v; + } + private b = 0; + + public test() { + var x = new Test6(); + x.a++; + } +} + + +//// [unusedPrivateMembers.js] +class Test1 { + initializeInternal() { + } + test() { + var x = new Test1(); + x.initializeInternal(); + } +} +class Test2 { + constructor() { + this.p = 0; + } + test() { + var x = new Test2(); + x.p; + } +} +class Test3 { + get x() { + return 0; + } + test() { + var x = new Test3(); + x.x; + } +} +class Test4 { + set x(v) { + v; + } + test() { + var x = new Test4(); + x.x; + } +} +class Test5 { + test() { + var x = new Test5(); + x.p; + } +} +class Test6 { + constructor() { + this.b = 0; + } + get a() { + return 0; + } + set a(v) { + v; + } + test() { + var x = new Test6(); + x.a++; + } +} diff --git a/tests/baselines/reference/unusedPrivateMembers.symbols b/tests/baselines/reference/unusedPrivateMembers(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/unusedPrivateMembers.symbols rename to tests/baselines/reference/unusedPrivateMembers(target=es2015).symbols diff --git a/tests/baselines/reference/unusedPrivateMembers.types b/tests/baselines/reference/unusedPrivateMembers(target=es2015).types similarity index 100% rename from tests/baselines/reference/unusedPrivateMembers.types rename to tests/baselines/reference/unusedPrivateMembers(target=es2015).types diff --git a/tests/baselines/reference/unusedPrivateMembers(target=es5).errors.txt b/tests/baselines/reference/unusedPrivateMembers(target=es5).errors.txt new file mode 100644 index 0000000000000..b9b15fc8f7dcd --- /dev/null +++ b/tests/baselines/reference/unusedPrivateMembers(target=es5).errors.txt @@ -0,0 +1,69 @@ +unusedPrivateMembers.ts(56,13): error TS6133: 'b' is declared but its value is never read. + + +==== unusedPrivateMembers.ts (1 errors) ==== + class Test1 { + private initializeInternal() { + } + + public test() { + var x = new Test1(); + x.initializeInternal(); + } + } + + class Test2 { + private p = 0; + public test() { + var x = new Test2(); + x.p; + } + } + + class Test3 { + private get x () { + return 0; + } + + public test() { + var x = new Test3(); + x.x; + } + } + + class Test4 { + private set x(v) { + v; + } + + public test() { + var x = new Test4(); + x.x; + } + } + + class Test5 { + private p: T; + public test() { + var x = new Test5(); + x.p; + } + } + + class Test6 { + private get a() { + return 0; + } + private set a(v) { + v; + } + private b = 0; + ~ +!!! error TS6133: 'b' is declared but its value is never read. + + public test() { + var x = new Test6(); + x.a++; + } + } + \ No newline at end of file diff --git a/tests/baselines/reference/unusedPrivateMembers.js b/tests/baselines/reference/unusedPrivateMembers(target=es5).js similarity index 100% rename from tests/baselines/reference/unusedPrivateMembers.js rename to tests/baselines/reference/unusedPrivateMembers(target=es5).js diff --git a/tests/baselines/reference/unusedPrivateMembers(target=es5).symbols b/tests/baselines/reference/unusedPrivateMembers(target=es5).symbols new file mode 100644 index 0000000000000..08094dd12529e --- /dev/null +++ b/tests/baselines/reference/unusedPrivateMembers(target=es5).symbols @@ -0,0 +1,146 @@ +//// [tests/cases/compiler/unusedPrivateMembers.ts] //// + +=== unusedPrivateMembers.ts === +class Test1 { +>Test1 : Symbol(Test1, Decl(unusedPrivateMembers.ts, 0, 0)) + + private initializeInternal() { +>initializeInternal : Symbol(Test1.initializeInternal, Decl(unusedPrivateMembers.ts, 0, 13)) + } + + public test() { +>test : Symbol(Test1.test, Decl(unusedPrivateMembers.ts, 2, 5)) + + var x = new Test1(); +>x : Symbol(x, Decl(unusedPrivateMembers.ts, 5, 11)) +>Test1 : Symbol(Test1, Decl(unusedPrivateMembers.ts, 0, 0)) + + x.initializeInternal(); +>x.initializeInternal : Symbol(Test1.initializeInternal, Decl(unusedPrivateMembers.ts, 0, 13)) +>x : Symbol(x, Decl(unusedPrivateMembers.ts, 5, 11)) +>initializeInternal : Symbol(Test1.initializeInternal, Decl(unusedPrivateMembers.ts, 0, 13)) + } +} + +class Test2 { +>Test2 : Symbol(Test2, Decl(unusedPrivateMembers.ts, 8, 1)) + + private p = 0; +>p : Symbol(Test2.p, Decl(unusedPrivateMembers.ts, 10, 13)) + + public test() { +>test : Symbol(Test2.test, Decl(unusedPrivateMembers.ts, 11, 18)) + + var x = new Test2(); +>x : Symbol(x, Decl(unusedPrivateMembers.ts, 13, 11)) +>Test2 : Symbol(Test2, Decl(unusedPrivateMembers.ts, 8, 1)) + + x.p; +>x.p : Symbol(Test2.p, Decl(unusedPrivateMembers.ts, 10, 13)) +>x : Symbol(x, Decl(unusedPrivateMembers.ts, 13, 11)) +>p : Symbol(Test2.p, Decl(unusedPrivateMembers.ts, 10, 13)) + } +} + +class Test3 { +>Test3 : Symbol(Test3, Decl(unusedPrivateMembers.ts, 16, 1)) + + private get x () { +>x : Symbol(Test3.x, Decl(unusedPrivateMembers.ts, 18, 13)) + + return 0; + } + + public test() { +>test : Symbol(Test3.test, Decl(unusedPrivateMembers.ts, 21, 5)) + + var x = new Test3(); +>x : Symbol(x, Decl(unusedPrivateMembers.ts, 24, 11)) +>Test3 : Symbol(Test3, Decl(unusedPrivateMembers.ts, 16, 1)) + + x.x; +>x.x : Symbol(Test3.x, Decl(unusedPrivateMembers.ts, 18, 13)) +>x : Symbol(x, Decl(unusedPrivateMembers.ts, 24, 11)) +>x : Symbol(Test3.x, Decl(unusedPrivateMembers.ts, 18, 13)) + } +} + +class Test4 { +>Test4 : Symbol(Test4, Decl(unusedPrivateMembers.ts, 27, 1)) + + private set x(v) { +>x : Symbol(Test4.x, Decl(unusedPrivateMembers.ts, 29, 13)) +>v : Symbol(v, Decl(unusedPrivateMembers.ts, 30, 18)) + + v; +>v : Symbol(v, Decl(unusedPrivateMembers.ts, 30, 18)) + } + + public test() { +>test : Symbol(Test4.test, Decl(unusedPrivateMembers.ts, 32, 5)) + + var x = new Test4(); +>x : Symbol(x, Decl(unusedPrivateMembers.ts, 35, 11)) +>Test4 : Symbol(Test4, Decl(unusedPrivateMembers.ts, 27, 1)) + + x.x; +>x.x : Symbol(Test4.x, Decl(unusedPrivateMembers.ts, 29, 13)) +>x : Symbol(x, Decl(unusedPrivateMembers.ts, 35, 11)) +>x : Symbol(Test4.x, Decl(unusedPrivateMembers.ts, 29, 13)) + } +} + +class Test5 { +>Test5 : Symbol(Test5, Decl(unusedPrivateMembers.ts, 38, 1)) +>T : Symbol(T, Decl(unusedPrivateMembers.ts, 40, 12)) + + private p: T; +>p : Symbol(Test5.p, Decl(unusedPrivateMembers.ts, 40, 16)) +>T : Symbol(T, Decl(unusedPrivateMembers.ts, 40, 12)) + + public test() { +>test : Symbol(Test5.test, Decl(unusedPrivateMembers.ts, 41, 17)) + + var x = new Test5(); +>x : Symbol(x, Decl(unusedPrivateMembers.ts, 43, 11)) +>Test5 : Symbol(Test5, Decl(unusedPrivateMembers.ts, 38, 1)) + + x.p; +>x.p : Symbol(Test5.p, Decl(unusedPrivateMembers.ts, 40, 16)) +>x : Symbol(x, Decl(unusedPrivateMembers.ts, 43, 11)) +>p : Symbol(Test5.p, Decl(unusedPrivateMembers.ts, 40, 16)) + } +} + +class Test6 { +>Test6 : Symbol(Test6, Decl(unusedPrivateMembers.ts, 46, 1)) + + private get a() { +>a : Symbol(Test6.a, Decl(unusedPrivateMembers.ts, 48, 13), Decl(unusedPrivateMembers.ts, 51, 5)) + + return 0; + } + private set a(v) { +>a : Symbol(Test6.a, Decl(unusedPrivateMembers.ts, 48, 13), Decl(unusedPrivateMembers.ts, 51, 5)) +>v : Symbol(v, Decl(unusedPrivateMembers.ts, 52, 18)) + + v; +>v : Symbol(v, Decl(unusedPrivateMembers.ts, 52, 18)) + } + private b = 0; +>b : Symbol(Test6.b, Decl(unusedPrivateMembers.ts, 54, 5)) + + public test() { +>test : Symbol(Test6.test, Decl(unusedPrivateMembers.ts, 55, 18)) + + var x = new Test6(); +>x : Symbol(x, Decl(unusedPrivateMembers.ts, 58, 11)) +>Test6 : Symbol(Test6, Decl(unusedPrivateMembers.ts, 46, 1)) + + x.a++; +>x.a : Symbol(Test6.a, Decl(unusedPrivateMembers.ts, 48, 13), Decl(unusedPrivateMembers.ts, 51, 5)) +>x : Symbol(x, Decl(unusedPrivateMembers.ts, 58, 11)) +>a : Symbol(Test6.a, Decl(unusedPrivateMembers.ts, 48, 13), Decl(unusedPrivateMembers.ts, 51, 5)) + } +} + diff --git a/tests/baselines/reference/unusedPrivateMembers(target=es5).types b/tests/baselines/reference/unusedPrivateMembers(target=es5).types new file mode 100644 index 0000000000000..aa675349f935e --- /dev/null +++ b/tests/baselines/reference/unusedPrivateMembers(target=es5).types @@ -0,0 +1,222 @@ +//// [tests/cases/compiler/unusedPrivateMembers.ts] //// + +=== unusedPrivateMembers.ts === +class Test1 { +>Test1 : Test1 +> : ^^^^^ + + private initializeInternal() { +>initializeInternal : () => void +> : ^^^^^^^^^^ + } + + public test() { +>test : () => void +> : ^^^^^^^^^^ + + var x = new Test1(); +>x : Test1 +> : ^^^^^ +>new Test1() : Test1 +> : ^^^^^ +>Test1 : typeof Test1 +> : ^^^^^^^^^^^^ + + x.initializeInternal(); +>x.initializeInternal() : void +> : ^^^^ +>x.initializeInternal : () => void +> : ^^^^^^^^^^ +>x : Test1 +> : ^^^^^ +>initializeInternal : () => void +> : ^^^^^^^^^^ + } +} + +class Test2 { +>Test2 : Test2 +> : ^^^^^ + + private p = 0; +>p : number +> : ^^^^^^ +>0 : 0 +> : ^ + + public test() { +>test : () => void +> : ^^^^^^^^^^ + + var x = new Test2(); +>x : Test2 +> : ^^^^^ +>new Test2() : Test2 +> : ^^^^^ +>Test2 : typeof Test2 +> : ^^^^^^^^^^^^ + + x.p; +>x.p : number +> : ^^^^^^ +>x : Test2 +> : ^^^^^ +>p : number +> : ^^^^^^ + } +} + +class Test3 { +>Test3 : Test3 +> : ^^^^^ + + private get x () { +>x : number +> : ^^^^^^ + + return 0; +>0 : 0 +> : ^ + } + + public test() { +>test : () => void +> : ^^^^^^^^^^ + + var x = new Test3(); +>x : Test3 +> : ^^^^^ +>new Test3() : Test3 +> : ^^^^^ +>Test3 : typeof Test3 +> : ^^^^^^^^^^^^ + + x.x; +>x.x : number +> : ^^^^^^ +>x : Test3 +> : ^^^^^ +>x : number +> : ^^^^^^ + } +} + +class Test4 { +>Test4 : Test4 +> : ^^^^^ + + private set x(v) { +>x : any +> : ^^^ +>v : any +> : ^^^ + + v; +>v : any +> : ^^^ + } + + public test() { +>test : () => void +> : ^^^^^^^^^^ + + var x = new Test4(); +>x : Test4 +> : ^^^^^ +>new Test4() : Test4 +> : ^^^^^ +>Test4 : typeof Test4 +> : ^^^^^^^^^^^^ + + x.x; +>x.x : any +> : ^^^ +>x : Test4 +> : ^^^^^ +>x : any +> : ^^^ + } +} + +class Test5 { +>Test5 : Test5 +> : ^^^^^^^^ + + private p: T; +>p : T +> : ^ + + public test() { +>test : () => void +> : ^^^^^^^^^^ + + var x = new Test5(); +>x : Test5 +> : ^^^^^^^^^^^^^ +>new Test5() : Test5 +> : ^^^^^^^^^^^^^ +>Test5 : typeof Test5 +> : ^^^^^^^^^^^^ + + x.p; +>x.p : number +> : ^^^^^^ +>x : Test5 +> : ^^^^^^^^^^^^^ +>p : number +> : ^^^^^^ + } +} + +class Test6 { +>Test6 : Test6 +> : ^^^^^ + + private get a() { +>a : number +> : ^^^^^^ + + return 0; +>0 : 0 +> : ^ + } + private set a(v) { +>a : number +> : ^^^^^^ +>v : number +> : ^^^^^^ + + v; +>v : number +> : ^^^^^^ + } + private b = 0; +>b : number +> : ^^^^^^ +>0 : 0 +> : ^ + + public test() { +>test : () => void +> : ^^^^^^^^^^ + + var x = new Test6(); +>x : Test6 +> : ^^^^^ +>new Test6() : Test6 +> : ^^^^^ +>Test6 : typeof Test6 +> : ^^^^^^^^^^^^ + + x.a++; +>x.a++ : number +> : ^^^^^^ +>x.a : number +> : ^^^^^^ +>x : Test6 +> : ^^^^^ +>a : number +> : ^^^^^^ + } +} + diff --git a/tests/baselines/reference/unusedSetterInClass.errors.txt b/tests/baselines/reference/unusedSetterInClass(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/unusedSetterInClass.errors.txt rename to tests/baselines/reference/unusedSetterInClass(target=es2015).errors.txt diff --git a/tests/baselines/reference/unusedSetterInClass(target=es2015).js b/tests/baselines/reference/unusedSetterInClass(target=es2015).js new file mode 100644 index 0000000000000..4311373d313e5 --- /dev/null +++ b/tests/baselines/reference/unusedSetterInClass(target=es2015).js @@ -0,0 +1,17 @@ +//// [tests/cases/compiler/unusedSetterInClass.ts] //// + +//// [unusedSetterInClass.ts] +class Employee { + private _fullName: string; + + private set fullName(newName: string) { + this._fullName = newName; + } +} + +//// [unusedSetterInClass.js] +class Employee { + set fullName(newName) { + this._fullName = newName; + } +} diff --git a/tests/baselines/reference/unusedSetterInClass.symbols b/tests/baselines/reference/unusedSetterInClass(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/unusedSetterInClass.symbols rename to tests/baselines/reference/unusedSetterInClass(target=es2015).symbols diff --git a/tests/baselines/reference/unusedSetterInClass.types b/tests/baselines/reference/unusedSetterInClass(target=es2015).types similarity index 100% rename from tests/baselines/reference/unusedSetterInClass.types rename to tests/baselines/reference/unusedSetterInClass(target=es2015).types diff --git a/tests/baselines/reference/unusedSetterInClass(target=es5).errors.txt b/tests/baselines/reference/unusedSetterInClass(target=es5).errors.txt new file mode 100644 index 0000000000000..98c7083b34770 --- /dev/null +++ b/tests/baselines/reference/unusedSetterInClass(target=es5).errors.txt @@ -0,0 +1,16 @@ +unusedSetterInClass.ts(2,13): error TS6133: '_fullName' is declared but its value is never read. +unusedSetterInClass.ts(4,17): error TS6133: 'fullName' is declared but its value is never read. + + +==== unusedSetterInClass.ts (2 errors) ==== + class Employee { + private _fullName: string; + ~~~~~~~~~ +!!! error TS6133: '_fullName' is declared but its value is never read. + + private set fullName(newName: string) { + ~~~~~~~~ +!!! error TS6133: 'fullName' is declared but its value is never read. + this._fullName = newName; + } + } \ No newline at end of file diff --git a/tests/baselines/reference/unusedSetterInClass.js b/tests/baselines/reference/unusedSetterInClass(target=es5).js similarity index 100% rename from tests/baselines/reference/unusedSetterInClass.js rename to tests/baselines/reference/unusedSetterInClass(target=es5).js diff --git a/tests/baselines/reference/unusedSetterInClass(target=es5).symbols b/tests/baselines/reference/unusedSetterInClass(target=es5).symbols new file mode 100644 index 0000000000000..81339d149dc0f --- /dev/null +++ b/tests/baselines/reference/unusedSetterInClass(target=es5).symbols @@ -0,0 +1,20 @@ +//// [tests/cases/compiler/unusedSetterInClass.ts] //// + +=== unusedSetterInClass.ts === +class Employee { +>Employee : Symbol(Employee, Decl(unusedSetterInClass.ts, 0, 0)) + + private _fullName: string; +>_fullName : Symbol(Employee._fullName, Decl(unusedSetterInClass.ts, 0, 16)) + + private set fullName(newName: string) { +>fullName : Symbol(Employee.fullName, Decl(unusedSetterInClass.ts, 1, 30)) +>newName : Symbol(newName, Decl(unusedSetterInClass.ts, 3, 25)) + + this._fullName = newName; +>this._fullName : Symbol(Employee._fullName, Decl(unusedSetterInClass.ts, 0, 16)) +>this : Symbol(Employee, Decl(unusedSetterInClass.ts, 0, 0)) +>_fullName : Symbol(Employee._fullName, Decl(unusedSetterInClass.ts, 0, 16)) +>newName : Symbol(newName, Decl(unusedSetterInClass.ts, 3, 25)) + } +} diff --git a/tests/baselines/reference/unusedSetterInClass(target=es5).types b/tests/baselines/reference/unusedSetterInClass(target=es5).types new file mode 100644 index 0000000000000..b271d616a9bc9 --- /dev/null +++ b/tests/baselines/reference/unusedSetterInClass(target=es5).types @@ -0,0 +1,30 @@ +//// [tests/cases/compiler/unusedSetterInClass.ts] //// + +=== unusedSetterInClass.ts === +class Employee { +>Employee : Employee +> : ^^^^^^^^ + + private _fullName: string; +>_fullName : string +> : ^^^^^^ + + private set fullName(newName: string) { +>fullName : string +> : ^^^^^^ +>newName : string +> : ^^^^^^ + + this._fullName = newName; +>this._fullName = newName : string +> : ^^^^^^ +>this._fullName : string +> : ^^^^^^ +>this : this +> : ^^^^ +>_fullName : string +> : ^^^^^^ +>newName : string +> : ^^^^^^ + } +} diff --git a/tests/baselines/reference/useObjectValuesAndEntries1(target=es2015).errors.txt b/tests/baselines/reference/useObjectValuesAndEntries1(target=es2015).errors.txt new file mode 100644 index 0000000000000..29baa9866f372 --- /dev/null +++ b/tests/baselines/reference/useObjectValuesAndEntries1(target=es2015).errors.txt @@ -0,0 +1,36 @@ +useObjectValuesAndEntries1.ts(3,15): error TS2488: Type 'number[]' must have a '[Symbol.iterator]()' method that returns an iterator. + + +==== useObjectValuesAndEntries1.ts (1 errors) ==== + var o = { a: 1, b: 2 }; + + for (var x of Object.values(o)) { + ~~~~~~~~~~~~~~~~ +!!! error TS2488: Type 'number[]' must have a '[Symbol.iterator]()' method that returns an iterator. + let y = x; + } + + var entries = Object.entries(o); // [string, number][] + var values = Object.values(o); // number[] + + var entries1 = Object.entries(1); // [string, any][] + var values1 = Object.values(1); // any[] + + var entries2 = Object.entries({ a: true, b: 2 }); // [string, number|boolean][] + var values2 = Object.values({ a: true, b: 2 }); // (number|boolean)[] + + var entries3 = Object.entries({}); // [string, {}][] + var values3 = Object.values({}); // {}[] + + var a = ["a", "b", "c"]; + var entries4 = Object.entries(a); // [string, string][] + var values4 = Object.values(a); // string[] + + enum E { A, B } + var entries5 = Object.entries(E); // [string, any][] + var values5 = Object.values(E); // any[] + + interface I { } + var i: I = {}; + var entries6 = Object.entries(i); // [string, any][] + var values6 = Object.values(i); // any[] \ No newline at end of file diff --git a/tests/baselines/reference/useObjectValuesAndEntries1(target=es2015).js b/tests/baselines/reference/useObjectValuesAndEntries1(target=es2015).js new file mode 100644 index 0000000000000..a39c1eb3a8bbe --- /dev/null +++ b/tests/baselines/reference/useObjectValuesAndEntries1(target=es2015).js @@ -0,0 +1,60 @@ +//// [tests/cases/conformance/es2017/useObjectValuesAndEntries1.ts] //// + +//// [useObjectValuesAndEntries1.ts] +var o = { a: 1, b: 2 }; + +for (var x of Object.values(o)) { + let y = x; +} + +var entries = Object.entries(o); // [string, number][] +var values = Object.values(o); // number[] + +var entries1 = Object.entries(1); // [string, any][] +var values1 = Object.values(1); // any[] + +var entries2 = Object.entries({ a: true, b: 2 }); // [string, number|boolean][] +var values2 = Object.values({ a: true, b: 2 }); // (number|boolean)[] + +var entries3 = Object.entries({}); // [string, {}][] +var values3 = Object.values({}); // {}[] + +var a = ["a", "b", "c"]; +var entries4 = Object.entries(a); // [string, string][] +var values4 = Object.values(a); // string[] + +enum E { A, B } +var entries5 = Object.entries(E); // [string, any][] +var values5 = Object.values(E); // any[] + +interface I { } +var i: I = {}; +var entries6 = Object.entries(i); // [string, any][] +var values6 = Object.values(i); // any[] + +//// [useObjectValuesAndEntries1.js] +var o = { a: 1, b: 2 }; +for (var x of Object.values(o)) { + let y = x; +} +var entries = Object.entries(o); // [string, number][] +var values = Object.values(o); // number[] +var entries1 = Object.entries(1); // [string, any][] +var values1 = Object.values(1); // any[] +var entries2 = Object.entries({ a: true, b: 2 }); // [string, number|boolean][] +var values2 = Object.values({ a: true, b: 2 }); // (number|boolean)[] +var entries3 = Object.entries({}); // [string, {}][] +var values3 = Object.values({}); // {}[] +var a = ["a", "b", "c"]; +var entries4 = Object.entries(a); // [string, string][] +var values4 = Object.values(a); // string[] +var E; +(function (E) { + E[E["A"] = 0] = "A"; + E[E["B"] = 1] = "B"; +})(E || (E = {})); +var entries5 = Object.entries(E); // [string, any][] +var values5 = Object.values(E); // any[] +var i = {}; +var entries6 = Object.entries(i); // [string, any][] +var values6 = Object.values(i); // any[] diff --git a/tests/baselines/reference/useObjectValuesAndEntries1.symbols b/tests/baselines/reference/useObjectValuesAndEntries1(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/useObjectValuesAndEntries1.symbols rename to tests/baselines/reference/useObjectValuesAndEntries1(target=es2015).symbols diff --git a/tests/baselines/reference/useObjectValuesAndEntries1(target=es2015).types b/tests/baselines/reference/useObjectValuesAndEntries1(target=es2015).types new file mode 100644 index 0000000000000..3e1ae362fe15e --- /dev/null +++ b/tests/baselines/reference/useObjectValuesAndEntries1(target=es2015).types @@ -0,0 +1,277 @@ +//// [tests/cases/conformance/es2017/useObjectValuesAndEntries1.ts] //// + +=== useObjectValuesAndEntries1.ts === +var o = { a: 1, b: 2 }; +>o : { a: number; b: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ a: 1, b: 2 } : { a: number; b: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>a : number +> : ^^^^^^ +>1 : 1 +> : ^ +>b : number +> : ^^^^^^ +>2 : 2 +> : ^ + +for (var x of Object.values(o)) { +>x : any +> : ^^^ +>Object.values(o) : number[] +> : ^^^^^^^^ +>Object.values : { (o: { [s: string]: T; } | ArrayLike): T[]; (o: {}): any[]; } +> : ^^^ ^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>Object : ObjectConstructor +> : ^^^^^^^^^^^^^^^^^ +>values : { (o: { [s: string]: T; } | ArrayLike): T[]; (o: {}): any[]; } +> : ^^^ ^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>o : { a: number; b: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ + + let y = x; +>y : any +> : ^^^ +>x : any +> : ^^^ +} + +var entries = Object.entries(o); // [string, number][] +>entries : [string, number][] +> : ^^^^^^^^^^^^^^^^^^ +>Object.entries(o) : [string, number][] +> : ^^^^^^^^^^^^^^^^^^ +>Object.entries : { (o: { [s: string]: T; } | ArrayLike): [string, T][]; (o: {}): [string, any][]; } +> : ^^^ ^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>Object : ObjectConstructor +> : ^^^^^^^^^^^^^^^^^ +>entries : { (o: { [s: string]: T; } | ArrayLike): [string, T][]; (o: {}): [string, any][]; } +> : ^^^ ^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>o : { a: number; b: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ + +var values = Object.values(o); // number[] +>values : number[] +> : ^^^^^^^^ +>Object.values(o) : number[] +> : ^^^^^^^^ +>Object.values : { (o: { [s: string]: T; } | ArrayLike): T[]; (o: {}): any[]; } +> : ^^^ ^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>Object : ObjectConstructor +> : ^^^^^^^^^^^^^^^^^ +>values : { (o: { [s: string]: T; } | ArrayLike): T[]; (o: {}): any[]; } +> : ^^^ ^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>o : { a: number; b: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ + +var entries1 = Object.entries(1); // [string, any][] +>entries1 : [string, any][] +> : ^^^^^^^^^^^^^^^ +>Object.entries(1) : [string, any][] +> : ^^^^^^^^^^^^^^^ +>Object.entries : { (o: { [s: string]: T; } | ArrayLike): [string, T][]; (o: {}): [string, any][]; } +> : ^^^ ^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>Object : ObjectConstructor +> : ^^^^^^^^^^^^^^^^^ +>entries : { (o: { [s: string]: T; } | ArrayLike): [string, T][]; (o: {}): [string, any][]; } +> : ^^^ ^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>1 : 1 +> : ^ + +var values1 = Object.values(1); // any[] +>values1 : any[] +> : ^^^^^ +>Object.values(1) : any[] +> : ^^^^^ +>Object.values : { (o: { [s: string]: T; } | ArrayLike): T[]; (o: {}): any[]; } +> : ^^^ ^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>Object : ObjectConstructor +> : ^^^^^^^^^^^^^^^^^ +>values : { (o: { [s: string]: T; } | ArrayLike): T[]; (o: {}): any[]; } +> : ^^^ ^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>1 : 1 +> : ^ + +var entries2 = Object.entries({ a: true, b: 2 }); // [string, number|boolean][] +>entries2 : [string, number | boolean][] +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>Object.entries({ a: true, b: 2 }) : [string, number | boolean][] +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>Object.entries : { (o: { [s: string]: T; } | ArrayLike): [string, T][]; (o: {}): [string, any][]; } +> : ^^^ ^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>Object : ObjectConstructor +> : ^^^^^^^^^^^^^^^^^ +>entries : { (o: { [s: string]: T; } | ArrayLike): [string, T][]; (o: {}): [string, any][]; } +> : ^^^ ^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>{ a: true, b: 2 } : { a: true; b: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>a : true +> : ^^^^ +>true : true +> : ^^^^ +>b : number +> : ^^^^^^ +>2 : 2 +> : ^ + +var values2 = Object.values({ a: true, b: 2 }); // (number|boolean)[] +>values2 : (number | boolean)[] +> : ^^^^^^^^^^^^^^^^^^^^ +>Object.values({ a: true, b: 2 }) : (number | boolean)[] +> : ^^^^^^^^^^^^^^^^^^^^ +>Object.values : { (o: { [s: string]: T; } | ArrayLike): T[]; (o: {}): any[]; } +> : ^^^ ^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>Object : ObjectConstructor +> : ^^^^^^^^^^^^^^^^^ +>values : { (o: { [s: string]: T; } | ArrayLike): T[]; (o: {}): any[]; } +> : ^^^ ^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>{ a: true, b: 2 } : { a: true; b: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>a : true +> : ^^^^ +>true : true +> : ^^^^ +>b : number +> : ^^^^^^ +>2 : 2 +> : ^ + +var entries3 = Object.entries({}); // [string, {}][] +>entries3 : [string, unknown][] +> : ^^^^^^^^^^^^^^^^^^^ +>Object.entries({}) : [string, unknown][] +> : ^^^^^^^^^^^^^^^^^^^ +>Object.entries : { (o: { [s: string]: T; } | ArrayLike): [string, T][]; (o: {}): [string, any][]; } +> : ^^^ ^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>Object : ObjectConstructor +> : ^^^^^^^^^^^^^^^^^ +>entries : { (o: { [s: string]: T; } | ArrayLike): [string, T][]; (o: {}): [string, any][]; } +> : ^^^ ^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>{} : {} +> : ^^ + +var values3 = Object.values({}); // {}[] +>values3 : unknown[] +> : ^^^^^^^^^ +>Object.values({}) : unknown[] +> : ^^^^^^^^^ +>Object.values : { (o: { [s: string]: T; } | ArrayLike): T[]; (o: {}): any[]; } +> : ^^^ ^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>Object : ObjectConstructor +> : ^^^^^^^^^^^^^^^^^ +>values : { (o: { [s: string]: T; } | ArrayLike): T[]; (o: {}): any[]; } +> : ^^^ ^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>{} : {} +> : ^^ + +var a = ["a", "b", "c"]; +>a : string[] +> : ^^^^^^^^ +>["a", "b", "c"] : string[] +> : ^^^^^^^^ +>"a" : "a" +> : ^^^ +>"b" : "b" +> : ^^^ +>"c" : "c" +> : ^^^ + +var entries4 = Object.entries(a); // [string, string][] +>entries4 : [string, string][] +> : ^^^^^^^^^^^^^^^^^^ +>Object.entries(a) : [string, string][] +> : ^^^^^^^^^^^^^^^^^^ +>Object.entries : { (o: { [s: string]: T; } | ArrayLike): [string, T][]; (o: {}): [string, any][]; } +> : ^^^ ^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>Object : ObjectConstructor +> : ^^^^^^^^^^^^^^^^^ +>entries : { (o: { [s: string]: T; } | ArrayLike): [string, T][]; (o: {}): [string, any][]; } +> : ^^^ ^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>a : string[] +> : ^^^^^^^^ + +var values4 = Object.values(a); // string[] +>values4 : string[] +> : ^^^^^^^^ +>Object.values(a) : string[] +> : ^^^^^^^^ +>Object.values : { (o: { [s: string]: T; } | ArrayLike): T[]; (o: {}): any[]; } +> : ^^^ ^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>Object : ObjectConstructor +> : ^^^^^^^^^^^^^^^^^ +>values : { (o: { [s: string]: T; } | ArrayLike): T[]; (o: {}): any[]; } +> : ^^^ ^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>a : string[] +> : ^^^^^^^^ + +enum E { A, B } +>E : E +> : ^ +>A : E.A +> : ^^^ +>B : E.B +> : ^^^ + +var entries5 = Object.entries(E); // [string, any][] +>entries5 : [string, string | E][] +> : ^^^^^^^^^^^^^^^^^^^^^^ +>Object.entries(E) : [string, string | E][] +> : ^^^^^^^^^^^^^^^^^^^^^^ +>Object.entries : { (o: { [s: string]: T; } | ArrayLike): [string, T][]; (o: {}): [string, any][]; } +> : ^^^ ^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>Object : ObjectConstructor +> : ^^^^^^^^^^^^^^^^^ +>entries : { (o: { [s: string]: T; } | ArrayLike): [string, T][]; (o: {}): [string, any][]; } +> : ^^^ ^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>E : typeof E +> : ^^^^^^^^ + +var values5 = Object.values(E); // any[] +>values5 : (string | E)[] +> : ^^^^^^^^^^^^^^ +>Object.values(E) : (string | E)[] +> : ^^^^^^^^^^^^^^ +>Object.values : { (o: { [s: string]: T; } | ArrayLike): T[]; (o: {}): any[]; } +> : ^^^ ^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>Object : ObjectConstructor +> : ^^^^^^^^^^^^^^^^^ +>values : { (o: { [s: string]: T; } | ArrayLike): T[]; (o: {}): any[]; } +> : ^^^ ^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>E : typeof E +> : ^^^^^^^^ + +interface I { } +var i: I = {}; +>i : I +> : ^ +>{} : {} +> : ^^ + +var entries6 = Object.entries(i); // [string, any][] +>entries6 : [string, any][] +> : ^^^^^^^^^^^^^^^ +>Object.entries(i) : [string, any][] +> : ^^^^^^^^^^^^^^^ +>Object.entries : { (o: { [s: string]: T; } | ArrayLike): [string, T][]; (o: {}): [string, any][]; } +> : ^^^ ^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>Object : ObjectConstructor +> : ^^^^^^^^^^^^^^^^^ +>entries : { (o: { [s: string]: T; } | ArrayLike): [string, T][]; (o: {}): [string, any][]; } +> : ^^^ ^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>i : I +> : ^ + +var values6 = Object.values(i); // any[] +>values6 : any[] +> : ^^^^^ +>Object.values(i) : any[] +> : ^^^^^ +>Object.values : { (o: { [s: string]: T; } | ArrayLike): T[]; (o: {}): any[]; } +> : ^^^ ^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>Object : ObjectConstructor +> : ^^^^^^^^^^^^^^^^^ +>values : { (o: { [s: string]: T; } | ArrayLike): T[]; (o: {}): any[]; } +> : ^^^ ^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ +>i : I +> : ^ + diff --git a/tests/baselines/reference/useObjectValuesAndEntries1.js b/tests/baselines/reference/useObjectValuesAndEntries1(target=es5).js similarity index 100% rename from tests/baselines/reference/useObjectValuesAndEntries1.js rename to tests/baselines/reference/useObjectValuesAndEntries1(target=es5).js diff --git a/tests/baselines/reference/useObjectValuesAndEntries1(target=es5).symbols b/tests/baselines/reference/useObjectValuesAndEntries1(target=es5).symbols new file mode 100644 index 0000000000000..2edcca6d580fe --- /dev/null +++ b/tests/baselines/reference/useObjectValuesAndEntries1(target=es5).symbols @@ -0,0 +1,131 @@ +//// [tests/cases/conformance/es2017/useObjectValuesAndEntries1.ts] //// + +=== useObjectValuesAndEntries1.ts === +var o = { a: 1, b: 2 }; +>o : Symbol(o, Decl(useObjectValuesAndEntries1.ts, 0, 3)) +>a : Symbol(a, Decl(useObjectValuesAndEntries1.ts, 0, 9)) +>b : Symbol(b, Decl(useObjectValuesAndEntries1.ts, 0, 15)) + +for (var x of Object.values(o)) { +>x : Symbol(x, Decl(useObjectValuesAndEntries1.ts, 2, 8)) +>Object.values : Symbol(ObjectConstructor.values, Decl(lib.es2017.object.d.ts, --, --), Decl(lib.es2017.object.d.ts, --, --)) +>Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>values : Symbol(ObjectConstructor.values, Decl(lib.es2017.object.d.ts, --, --), Decl(lib.es2017.object.d.ts, --, --)) +>o : Symbol(o, Decl(useObjectValuesAndEntries1.ts, 0, 3)) + + let y = x; +>y : Symbol(y, Decl(useObjectValuesAndEntries1.ts, 3, 7)) +>x : Symbol(x, Decl(useObjectValuesAndEntries1.ts, 2, 8)) +} + +var entries = Object.entries(o); // [string, number][] +>entries : Symbol(entries, Decl(useObjectValuesAndEntries1.ts, 6, 3)) +>Object.entries : Symbol(ObjectConstructor.entries, Decl(lib.es2017.object.d.ts, --, --), Decl(lib.es2017.object.d.ts, --, --)) +>Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>entries : Symbol(ObjectConstructor.entries, Decl(lib.es2017.object.d.ts, --, --), Decl(lib.es2017.object.d.ts, --, --)) +>o : Symbol(o, Decl(useObjectValuesAndEntries1.ts, 0, 3)) + +var values = Object.values(o); // number[] +>values : Symbol(values, Decl(useObjectValuesAndEntries1.ts, 7, 3)) +>Object.values : Symbol(ObjectConstructor.values, Decl(lib.es2017.object.d.ts, --, --), Decl(lib.es2017.object.d.ts, --, --)) +>Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>values : Symbol(ObjectConstructor.values, Decl(lib.es2017.object.d.ts, --, --), Decl(lib.es2017.object.d.ts, --, --)) +>o : Symbol(o, Decl(useObjectValuesAndEntries1.ts, 0, 3)) + +var entries1 = Object.entries(1); // [string, any][] +>entries1 : Symbol(entries1, Decl(useObjectValuesAndEntries1.ts, 9, 3)) +>Object.entries : Symbol(ObjectConstructor.entries, Decl(lib.es2017.object.d.ts, --, --), Decl(lib.es2017.object.d.ts, --, --)) +>Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>entries : Symbol(ObjectConstructor.entries, Decl(lib.es2017.object.d.ts, --, --), Decl(lib.es2017.object.d.ts, --, --)) + +var values1 = Object.values(1); // any[] +>values1 : Symbol(values1, Decl(useObjectValuesAndEntries1.ts, 10, 3)) +>Object.values : Symbol(ObjectConstructor.values, Decl(lib.es2017.object.d.ts, --, --), Decl(lib.es2017.object.d.ts, --, --)) +>Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>values : Symbol(ObjectConstructor.values, Decl(lib.es2017.object.d.ts, --, --), Decl(lib.es2017.object.d.ts, --, --)) + +var entries2 = Object.entries({ a: true, b: 2 }); // [string, number|boolean][] +>entries2 : Symbol(entries2, Decl(useObjectValuesAndEntries1.ts, 12, 3)) +>Object.entries : Symbol(ObjectConstructor.entries, Decl(lib.es2017.object.d.ts, --, --), Decl(lib.es2017.object.d.ts, --, --)) +>Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>entries : Symbol(ObjectConstructor.entries, Decl(lib.es2017.object.d.ts, --, --), Decl(lib.es2017.object.d.ts, --, --)) +>a : Symbol(a, Decl(useObjectValuesAndEntries1.ts, 12, 31)) +>b : Symbol(b, Decl(useObjectValuesAndEntries1.ts, 12, 40)) + +var values2 = Object.values({ a: true, b: 2 }); // (number|boolean)[] +>values2 : Symbol(values2, Decl(useObjectValuesAndEntries1.ts, 13, 3)) +>Object.values : Symbol(ObjectConstructor.values, Decl(lib.es2017.object.d.ts, --, --), Decl(lib.es2017.object.d.ts, --, --)) +>Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>values : Symbol(ObjectConstructor.values, Decl(lib.es2017.object.d.ts, --, --), Decl(lib.es2017.object.d.ts, --, --)) +>a : Symbol(a, Decl(useObjectValuesAndEntries1.ts, 13, 29)) +>b : Symbol(b, Decl(useObjectValuesAndEntries1.ts, 13, 38)) + +var entries3 = Object.entries({}); // [string, {}][] +>entries3 : Symbol(entries3, Decl(useObjectValuesAndEntries1.ts, 15, 3)) +>Object.entries : Symbol(ObjectConstructor.entries, Decl(lib.es2017.object.d.ts, --, --), Decl(lib.es2017.object.d.ts, --, --)) +>Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>entries : Symbol(ObjectConstructor.entries, Decl(lib.es2017.object.d.ts, --, --), Decl(lib.es2017.object.d.ts, --, --)) + +var values3 = Object.values({}); // {}[] +>values3 : Symbol(values3, Decl(useObjectValuesAndEntries1.ts, 16, 3)) +>Object.values : Symbol(ObjectConstructor.values, Decl(lib.es2017.object.d.ts, --, --), Decl(lib.es2017.object.d.ts, --, --)) +>Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>values : Symbol(ObjectConstructor.values, Decl(lib.es2017.object.d.ts, --, --), Decl(lib.es2017.object.d.ts, --, --)) + +var a = ["a", "b", "c"]; +>a : Symbol(a, Decl(useObjectValuesAndEntries1.ts, 18, 3)) + +var entries4 = Object.entries(a); // [string, string][] +>entries4 : Symbol(entries4, Decl(useObjectValuesAndEntries1.ts, 19, 3)) +>Object.entries : Symbol(ObjectConstructor.entries, Decl(lib.es2017.object.d.ts, --, --), Decl(lib.es2017.object.d.ts, --, --)) +>Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>entries : Symbol(ObjectConstructor.entries, Decl(lib.es2017.object.d.ts, --, --), Decl(lib.es2017.object.d.ts, --, --)) +>a : Symbol(a, Decl(useObjectValuesAndEntries1.ts, 18, 3)) + +var values4 = Object.values(a); // string[] +>values4 : Symbol(values4, Decl(useObjectValuesAndEntries1.ts, 20, 3)) +>Object.values : Symbol(ObjectConstructor.values, Decl(lib.es2017.object.d.ts, --, --), Decl(lib.es2017.object.d.ts, --, --)) +>Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>values : Symbol(ObjectConstructor.values, Decl(lib.es2017.object.d.ts, --, --), Decl(lib.es2017.object.d.ts, --, --)) +>a : Symbol(a, Decl(useObjectValuesAndEntries1.ts, 18, 3)) + +enum E { A, B } +>E : Symbol(E, Decl(useObjectValuesAndEntries1.ts, 20, 31)) +>A : Symbol(E.A, Decl(useObjectValuesAndEntries1.ts, 22, 8)) +>B : Symbol(E.B, Decl(useObjectValuesAndEntries1.ts, 22, 11)) + +var entries5 = Object.entries(E); // [string, any][] +>entries5 : Symbol(entries5, Decl(useObjectValuesAndEntries1.ts, 23, 3)) +>Object.entries : Symbol(ObjectConstructor.entries, Decl(lib.es2017.object.d.ts, --, --), Decl(lib.es2017.object.d.ts, --, --)) +>Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>entries : Symbol(ObjectConstructor.entries, Decl(lib.es2017.object.d.ts, --, --), Decl(lib.es2017.object.d.ts, --, --)) +>E : Symbol(E, Decl(useObjectValuesAndEntries1.ts, 20, 31)) + +var values5 = Object.values(E); // any[] +>values5 : Symbol(values5, Decl(useObjectValuesAndEntries1.ts, 24, 3)) +>Object.values : Symbol(ObjectConstructor.values, Decl(lib.es2017.object.d.ts, --, --), Decl(lib.es2017.object.d.ts, --, --)) +>Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>values : Symbol(ObjectConstructor.values, Decl(lib.es2017.object.d.ts, --, --), Decl(lib.es2017.object.d.ts, --, --)) +>E : Symbol(E, Decl(useObjectValuesAndEntries1.ts, 20, 31)) + +interface I { } +>I : Symbol(I, Decl(useObjectValuesAndEntries1.ts, 24, 31)) + +var i: I = {}; +>i : Symbol(i, Decl(useObjectValuesAndEntries1.ts, 27, 3)) +>I : Symbol(I, Decl(useObjectValuesAndEntries1.ts, 24, 31)) + +var entries6 = Object.entries(i); // [string, any][] +>entries6 : Symbol(entries6, Decl(useObjectValuesAndEntries1.ts, 28, 3)) +>Object.entries : Symbol(ObjectConstructor.entries, Decl(lib.es2017.object.d.ts, --, --), Decl(lib.es2017.object.d.ts, --, --)) +>Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>entries : Symbol(ObjectConstructor.entries, Decl(lib.es2017.object.d.ts, --, --), Decl(lib.es2017.object.d.ts, --, --)) +>i : Symbol(i, Decl(useObjectValuesAndEntries1.ts, 27, 3)) + +var values6 = Object.values(i); // any[] +>values6 : Symbol(values6, Decl(useObjectValuesAndEntries1.ts, 29, 3)) +>Object.values : Symbol(ObjectConstructor.values, Decl(lib.es2017.object.d.ts, --, --), Decl(lib.es2017.object.d.ts, --, --)) +>Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>values : Symbol(ObjectConstructor.values, Decl(lib.es2017.object.d.ts, --, --), Decl(lib.es2017.object.d.ts, --, --)) +>i : Symbol(i, Decl(useObjectValuesAndEntries1.ts, 27, 3)) + diff --git a/tests/baselines/reference/useObjectValuesAndEntries1.types b/tests/baselines/reference/useObjectValuesAndEntries1(target=es5).types similarity index 100% rename from tests/baselines/reference/useObjectValuesAndEntries1.types rename to tests/baselines/reference/useObjectValuesAndEntries1(target=es5).types diff --git a/tests/baselines/reference/useObjectValuesAndEntries2.errors.txt b/tests/baselines/reference/useObjectValuesAndEntries2(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/useObjectValuesAndEntries2.errors.txt rename to tests/baselines/reference/useObjectValuesAndEntries2(target=es2015).errors.txt diff --git a/tests/baselines/reference/useObjectValuesAndEntries2(target=es2015).js b/tests/baselines/reference/useObjectValuesAndEntries2(target=es2015).js new file mode 100644 index 0000000000000..a236c183d8b13 --- /dev/null +++ b/tests/baselines/reference/useObjectValuesAndEntries2(target=es2015).js @@ -0,0 +1,17 @@ +//// [tests/cases/conformance/es2017/useObjectValuesAndEntries2.ts] //// + +//// [useObjectValuesAndEntries2.ts] +var o = { a: 1, b: 2 }; + +for (var x of Object.values(o)) { + let y = x; +} + +var entries = Object.entries(o); + +//// [useObjectValuesAndEntries2.js] +var o = { a: 1, b: 2 }; +for (var x of Object.values(o)) { + let y = x; +} +var entries = Object.entries(o); diff --git a/tests/baselines/reference/useObjectValuesAndEntries2.symbols b/tests/baselines/reference/useObjectValuesAndEntries2(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/useObjectValuesAndEntries2.symbols rename to tests/baselines/reference/useObjectValuesAndEntries2(target=es2015).symbols diff --git a/tests/baselines/reference/useObjectValuesAndEntries2.types b/tests/baselines/reference/useObjectValuesAndEntries2(target=es2015).types similarity index 100% rename from tests/baselines/reference/useObjectValuesAndEntries2.types rename to tests/baselines/reference/useObjectValuesAndEntries2(target=es2015).types diff --git a/tests/baselines/reference/useObjectValuesAndEntries2(target=es5).errors.txt b/tests/baselines/reference/useObjectValuesAndEntries2(target=es5).errors.txt new file mode 100644 index 0000000000000..2d5abf1643a23 --- /dev/null +++ b/tests/baselines/reference/useObjectValuesAndEntries2(target=es5).errors.txt @@ -0,0 +1,16 @@ +useObjectValuesAndEntries2.ts(3,22): error TS2550: Property 'values' does not exist on type 'ObjectConstructor'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2017' or later. +useObjectValuesAndEntries2.ts(7,22): error TS2550: Property 'entries' does not exist on type 'ObjectConstructor'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2017' or later. + + +==== useObjectValuesAndEntries2.ts (2 errors) ==== + var o = { a: 1, b: 2 }; + + for (var x of Object.values(o)) { + ~~~~~~ +!!! error TS2550: Property 'values' does not exist on type 'ObjectConstructor'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2017' or later. + let y = x; + } + + var entries = Object.entries(o); + ~~~~~~~ +!!! error TS2550: Property 'entries' does not exist on type 'ObjectConstructor'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2017' or later. \ No newline at end of file diff --git a/tests/baselines/reference/useObjectValuesAndEntries2.js b/tests/baselines/reference/useObjectValuesAndEntries2(target=es5).js similarity index 100% rename from tests/baselines/reference/useObjectValuesAndEntries2.js rename to tests/baselines/reference/useObjectValuesAndEntries2(target=es5).js diff --git a/tests/baselines/reference/useObjectValuesAndEntries2(target=es5).symbols b/tests/baselines/reference/useObjectValuesAndEntries2(target=es5).symbols new file mode 100644 index 0000000000000..9065662fa7799 --- /dev/null +++ b/tests/baselines/reference/useObjectValuesAndEntries2(target=es5).symbols @@ -0,0 +1,23 @@ +//// [tests/cases/conformance/es2017/useObjectValuesAndEntries2.ts] //// + +=== useObjectValuesAndEntries2.ts === +var o = { a: 1, b: 2 }; +>o : Symbol(o, Decl(useObjectValuesAndEntries2.ts, 0, 3)) +>a : Symbol(a, Decl(useObjectValuesAndEntries2.ts, 0, 9)) +>b : Symbol(b, Decl(useObjectValuesAndEntries2.ts, 0, 15)) + +for (var x of Object.values(o)) { +>x : Symbol(x, Decl(useObjectValuesAndEntries2.ts, 2, 8)) +>Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>o : Symbol(o, Decl(useObjectValuesAndEntries2.ts, 0, 3)) + + let y = x; +>y : Symbol(y, Decl(useObjectValuesAndEntries2.ts, 3, 7)) +>x : Symbol(x, Decl(useObjectValuesAndEntries2.ts, 2, 8)) +} + +var entries = Object.entries(o); +>entries : Symbol(entries, Decl(useObjectValuesAndEntries2.ts, 6, 3)) +>Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>o : Symbol(o, Decl(useObjectValuesAndEntries2.ts, 0, 3)) + diff --git a/tests/baselines/reference/useObjectValuesAndEntries2(target=es5).types b/tests/baselines/reference/useObjectValuesAndEntries2(target=es5).types new file mode 100644 index 0000000000000..39ac773e7f039 --- /dev/null +++ b/tests/baselines/reference/useObjectValuesAndEntries2(target=es5).types @@ -0,0 +1,52 @@ +//// [tests/cases/conformance/es2017/useObjectValuesAndEntries2.ts] //// + +=== useObjectValuesAndEntries2.ts === +var o = { a: 1, b: 2 }; +>o : { a: number; b: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ a: 1, b: 2 } : { a: number; b: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>a : number +> : ^^^^^^ +>1 : 1 +> : ^ +>b : number +> : ^^^^^^ +>2 : 2 +> : ^ + +for (var x of Object.values(o)) { +>x : any +> : ^^^ +>Object.values(o) : any +> : ^^^ +>Object.values : any +> : ^^^ +>Object : ObjectConstructor +> : ^^^^^^^^^^^^^^^^^ +>values : any +> : ^^^ +>o : { a: number; b: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ + + let y = x; +>y : any +> : ^^^ +>x : any +> : ^^^ +} + +var entries = Object.entries(o); +>entries : any +> : ^^^ +>Object.entries(o) : any +> : ^^^ +>Object.entries : any +> : ^^^ +>Object : ObjectConstructor +> : ^^^^^^^^^^^^^^^^^ +>entries : any +> : ^^^ +>o : { a: number; b: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ + diff --git a/tests/baselines/reference/usePromiseFinally(target=es2015).js b/tests/baselines/reference/usePromiseFinally(target=es2015).js new file mode 100644 index 0000000000000..a4cdfa14f6728 --- /dev/null +++ b/tests/baselines/reference/usePromiseFinally(target=es2015).js @@ -0,0 +1,10 @@ +//// [tests/cases/conformance/es2018/usePromiseFinally.ts] //// + +//// [usePromiseFinally.ts] +let promise1 = new Promise(function(resolve, reject) {}) + .finally(function() {}); + + +//// [usePromiseFinally.js] +let promise1 = new Promise(function (resolve, reject) { }) + .finally(function () { }); diff --git a/tests/baselines/reference/usePromiseFinally.symbols b/tests/baselines/reference/usePromiseFinally(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/usePromiseFinally.symbols rename to tests/baselines/reference/usePromiseFinally(target=es2015).symbols diff --git a/tests/baselines/reference/usePromiseFinally.types b/tests/baselines/reference/usePromiseFinally(target=es2015).types similarity index 100% rename from tests/baselines/reference/usePromiseFinally.types rename to tests/baselines/reference/usePromiseFinally(target=es2015).types diff --git a/tests/baselines/reference/usePromiseFinally.js b/tests/baselines/reference/usePromiseFinally(target=es5).js similarity index 100% rename from tests/baselines/reference/usePromiseFinally.js rename to tests/baselines/reference/usePromiseFinally(target=es5).js diff --git a/tests/baselines/reference/usePromiseFinally(target=es5).symbols b/tests/baselines/reference/usePromiseFinally(target=es5).symbols new file mode 100644 index 0000000000000..72e922ba3b36e --- /dev/null +++ b/tests/baselines/reference/usePromiseFinally(target=es5).symbols @@ -0,0 +1,13 @@ +//// [tests/cases/conformance/es2018/usePromiseFinally.ts] //// + +=== usePromiseFinally.ts === +let promise1 = new Promise(function(resolve, reject) {}) +>promise1 : Symbol(promise1, Decl(usePromiseFinally.ts, 0, 3)) +>new Promise(function(resolve, reject) {}) .finally : Symbol(Promise.finally, Decl(lib.es2018.promise.d.ts, --, --)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) +>resolve : Symbol(resolve, Decl(usePromiseFinally.ts, 0, 36)) +>reject : Symbol(reject, Decl(usePromiseFinally.ts, 0, 44)) + + .finally(function() {}); +>finally : Symbol(Promise.finally, Decl(lib.es2018.promise.d.ts, --, --)) + diff --git a/tests/baselines/reference/usePromiseFinally(target=es5).types b/tests/baselines/reference/usePromiseFinally(target=es5).types new file mode 100644 index 0000000000000..44b9fcaaf2eaf --- /dev/null +++ b/tests/baselines/reference/usePromiseFinally(target=es5).types @@ -0,0 +1,27 @@ +//// [tests/cases/conformance/es2018/usePromiseFinally.ts] //// + +=== usePromiseFinally.ts === +let promise1 = new Promise(function(resolve, reject) {}) +>promise1 : Promise +> : ^^^^^^^^^^^^^^^^ +>new Promise(function(resolve, reject) {}) .finally(function() {}) : Promise +> : ^^^^^^^^^^^^^^^^ +>new Promise(function(resolve, reject) {}) .finally : (onfinally?: () => void) => Promise +> : ^ ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ +>new Promise(function(resolve, reject) {}) : Promise +> : ^^^^^^^^^^^^^^^^ +>Promise : PromiseConstructor +> : ^^^^^^^^^^^^^^^^^^ +>function(resolve, reject) {} : (resolve: (value: unknown) => void, reject: (reason?: any) => void) => void +> : ^ ^^^ ^^^^^^^^^^^^^^ ^^ ^^^ ^^^ ^^^^^ ^^^^^^^^^ +>resolve : (value: unknown) => void +> : ^ ^^^^^^^^^^^^^^ +>reject : (reason?: any) => void +> : ^ ^^^ ^^^^^ + + .finally(function() {}); +>finally : (onfinally?: () => void) => Promise +> : ^ ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ +>function() {} : () => void +> : ^^^^^^^^^^ + diff --git a/tests/baselines/reference/useSharedArrayBuffer1.js b/tests/baselines/reference/useSharedArrayBuffer1(target=es2015).js similarity index 100% rename from tests/baselines/reference/useSharedArrayBuffer1.js rename to tests/baselines/reference/useSharedArrayBuffer1(target=es2015).js diff --git a/tests/baselines/reference/useSharedArrayBuffer1.symbols b/tests/baselines/reference/useSharedArrayBuffer1(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/useSharedArrayBuffer1.symbols rename to tests/baselines/reference/useSharedArrayBuffer1(target=es2015).symbols diff --git a/tests/baselines/reference/useSharedArrayBuffer1.types b/tests/baselines/reference/useSharedArrayBuffer1(target=es2015).types similarity index 100% rename from tests/baselines/reference/useSharedArrayBuffer1.types rename to tests/baselines/reference/useSharedArrayBuffer1(target=es2015).types diff --git a/tests/baselines/reference/useSharedArrayBuffer1(target=es5).js b/tests/baselines/reference/useSharedArrayBuffer1(target=es5).js new file mode 100644 index 0000000000000..54eb57299f577 --- /dev/null +++ b/tests/baselines/reference/useSharedArrayBuffer1(target=es5).js @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/es2017/useSharedArrayBuffer1.ts] //// + +//// [useSharedArrayBuffer1.ts] +var foge = new SharedArrayBuffer(1024); +var bar = foge.slice(1, 10); +var len = foge.byteLength; + +//// [useSharedArrayBuffer1.js] +var foge = new SharedArrayBuffer(1024); +var bar = foge.slice(1, 10); +var len = foge.byteLength; diff --git a/tests/baselines/reference/useSharedArrayBuffer1(target=es5).symbols b/tests/baselines/reference/useSharedArrayBuffer1(target=es5).symbols new file mode 100644 index 0000000000000..ab2fbca82a5e2 --- /dev/null +++ b/tests/baselines/reference/useSharedArrayBuffer1(target=es5).symbols @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/es2017/useSharedArrayBuffer1.ts] //// + +=== useSharedArrayBuffer1.ts === +var foge = new SharedArrayBuffer(1024); +>foge : Symbol(foge, Decl(useSharedArrayBuffer1.ts, 0, 3)) +>SharedArrayBuffer : Symbol(SharedArrayBuffer, Decl(lib.es2017.sharedmemory.d.ts, --, --), Decl(lib.es2017.sharedmemory.d.ts, --, --)) + +var bar = foge.slice(1, 10); +>bar : Symbol(bar, Decl(useSharedArrayBuffer1.ts, 1, 3)) +>foge.slice : Symbol(SharedArrayBuffer.slice, Decl(lib.es2017.sharedmemory.d.ts, --, --)) +>foge : Symbol(foge, Decl(useSharedArrayBuffer1.ts, 0, 3)) +>slice : Symbol(SharedArrayBuffer.slice, Decl(lib.es2017.sharedmemory.d.ts, --, --)) + +var len = foge.byteLength; +>len : Symbol(len, Decl(useSharedArrayBuffer1.ts, 2, 3)) +>foge.byteLength : Symbol(SharedArrayBuffer.byteLength, Decl(lib.es2017.sharedmemory.d.ts, --, --)) +>foge : Symbol(foge, Decl(useSharedArrayBuffer1.ts, 0, 3)) +>byteLength : Symbol(SharedArrayBuffer.byteLength, Decl(lib.es2017.sharedmemory.d.ts, --, --)) + diff --git a/tests/baselines/reference/useSharedArrayBuffer1(target=es5).types b/tests/baselines/reference/useSharedArrayBuffer1(target=es5).types new file mode 100644 index 0000000000000..4c2d6f87a31a5 --- /dev/null +++ b/tests/baselines/reference/useSharedArrayBuffer1(target=es5).types @@ -0,0 +1,39 @@ +//// [tests/cases/conformance/es2017/useSharedArrayBuffer1.ts] //// + +=== useSharedArrayBuffer1.ts === +var foge = new SharedArrayBuffer(1024); +>foge : SharedArrayBuffer +> : ^^^^^^^^^^^^^^^^^ +>new SharedArrayBuffer(1024) : SharedArrayBuffer +> : ^^^^^^^^^^^^^^^^^ +>SharedArrayBuffer : SharedArrayBufferConstructor +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>1024 : 1024 +> : ^^^^ + +var bar = foge.slice(1, 10); +>bar : SharedArrayBuffer +> : ^^^^^^^^^^^^^^^^^ +>foge.slice(1, 10) : SharedArrayBuffer +> : ^^^^^^^^^^^^^^^^^ +>foge.slice : (begin?: number, end?: number) => SharedArrayBuffer +> : ^ ^^^ ^^ ^^^ ^^^^^ +>foge : SharedArrayBuffer +> : ^^^^^^^^^^^^^^^^^ +>slice : (begin?: number, end?: number) => SharedArrayBuffer +> : ^ ^^^ ^^ ^^^ ^^^^^ +>1 : 1 +> : ^ +>10 : 10 +> : ^^ + +var len = foge.byteLength; +>len : number +> : ^^^^^^ +>foge.byteLength : number +> : ^^^^^^ +>foge : SharedArrayBuffer +> : ^^^^^^^^^^^^^^^^^ +>byteLength : number +> : ^^^^^^ + diff --git a/tests/baselines/reference/useSharedArrayBuffer2.errors.txt b/tests/baselines/reference/useSharedArrayBuffer2(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/useSharedArrayBuffer2.errors.txt rename to tests/baselines/reference/useSharedArrayBuffer2(target=es2015).errors.txt diff --git a/tests/baselines/reference/useSharedArrayBuffer2.js b/tests/baselines/reference/useSharedArrayBuffer2(target=es2015).js similarity index 100% rename from tests/baselines/reference/useSharedArrayBuffer2.js rename to tests/baselines/reference/useSharedArrayBuffer2(target=es2015).js diff --git a/tests/baselines/reference/useSharedArrayBuffer2.symbols b/tests/baselines/reference/useSharedArrayBuffer2(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/useSharedArrayBuffer2.symbols rename to tests/baselines/reference/useSharedArrayBuffer2(target=es2015).symbols diff --git a/tests/baselines/reference/useSharedArrayBuffer2.types b/tests/baselines/reference/useSharedArrayBuffer2(target=es2015).types similarity index 100% rename from tests/baselines/reference/useSharedArrayBuffer2.types rename to tests/baselines/reference/useSharedArrayBuffer2(target=es2015).types diff --git a/tests/baselines/reference/useSharedArrayBuffer2(target=es5).errors.txt b/tests/baselines/reference/useSharedArrayBuffer2(target=es5).errors.txt new file mode 100644 index 0000000000000..3d9a7d77cc62d --- /dev/null +++ b/tests/baselines/reference/useSharedArrayBuffer2(target=es5).errors.txt @@ -0,0 +1,9 @@ +useSharedArrayBuffer2.ts(1,16): error TS2583: Cannot find name 'SharedArrayBuffer'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2017' or later. + + +==== useSharedArrayBuffer2.ts (1 errors) ==== + var foge = new SharedArrayBuffer(1024); + ~~~~~~~~~~~~~~~~~ +!!! error TS2583: Cannot find name 'SharedArrayBuffer'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2017' or later. + var bar = foge.slice(1, 10); + var len = foge.byteLength; \ No newline at end of file diff --git a/tests/baselines/reference/useSharedArrayBuffer2(target=es5).js b/tests/baselines/reference/useSharedArrayBuffer2(target=es5).js new file mode 100644 index 0000000000000..c4410fd5ec640 --- /dev/null +++ b/tests/baselines/reference/useSharedArrayBuffer2(target=es5).js @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/es2017/useSharedArrayBuffer2.ts] //// + +//// [useSharedArrayBuffer2.ts] +var foge = new SharedArrayBuffer(1024); +var bar = foge.slice(1, 10); +var len = foge.byteLength; + +//// [useSharedArrayBuffer2.js] +var foge = new SharedArrayBuffer(1024); +var bar = foge.slice(1, 10); +var len = foge.byteLength; diff --git a/tests/baselines/reference/useSharedArrayBuffer2(target=es5).symbols b/tests/baselines/reference/useSharedArrayBuffer2(target=es5).symbols new file mode 100644 index 0000000000000..348406a758866 --- /dev/null +++ b/tests/baselines/reference/useSharedArrayBuffer2(target=es5).symbols @@ -0,0 +1,14 @@ +//// [tests/cases/conformance/es2017/useSharedArrayBuffer2.ts] //// + +=== useSharedArrayBuffer2.ts === +var foge = new SharedArrayBuffer(1024); +>foge : Symbol(foge, Decl(useSharedArrayBuffer2.ts, 0, 3)) + +var bar = foge.slice(1, 10); +>bar : Symbol(bar, Decl(useSharedArrayBuffer2.ts, 1, 3)) +>foge : Symbol(foge, Decl(useSharedArrayBuffer2.ts, 0, 3)) + +var len = foge.byteLength; +>len : Symbol(len, Decl(useSharedArrayBuffer2.ts, 2, 3)) +>foge : Symbol(foge, Decl(useSharedArrayBuffer2.ts, 0, 3)) + diff --git a/tests/baselines/reference/useSharedArrayBuffer2(target=es5).types b/tests/baselines/reference/useSharedArrayBuffer2(target=es5).types new file mode 100644 index 0000000000000..8cb4c7512d238 --- /dev/null +++ b/tests/baselines/reference/useSharedArrayBuffer2(target=es5).types @@ -0,0 +1,39 @@ +//// [tests/cases/conformance/es2017/useSharedArrayBuffer2.ts] //// + +=== useSharedArrayBuffer2.ts === +var foge = new SharedArrayBuffer(1024); +>foge : any +> : ^^^ +>new SharedArrayBuffer(1024) : any +> : ^^^ +>SharedArrayBuffer : any +> : ^^^ +>1024 : 1024 +> : ^^^^ + +var bar = foge.slice(1, 10); +>bar : any +> : ^^^ +>foge.slice(1, 10) : any +> : ^^^ +>foge.slice : any +> : ^^^ +>foge : any +> : ^^^ +>slice : any +> : ^^^ +>1 : 1 +> : ^ +>10 : 10 +> : ^^ + +var len = foge.byteLength; +>len : any +> : ^^^ +>foge.byteLength : any +> : ^^^ +>foge : any +> : ^^^ +>byteLength : any +> : ^^^ + diff --git a/tests/baselines/reference/useSharedArrayBuffer5.js b/tests/baselines/reference/useSharedArrayBuffer5(target=es2015).js similarity index 100% rename from tests/baselines/reference/useSharedArrayBuffer5.js rename to tests/baselines/reference/useSharedArrayBuffer5(target=es2015).js diff --git a/tests/baselines/reference/useSharedArrayBuffer5.symbols b/tests/baselines/reference/useSharedArrayBuffer5(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/useSharedArrayBuffer5.symbols rename to tests/baselines/reference/useSharedArrayBuffer5(target=es2015).symbols diff --git a/tests/baselines/reference/useSharedArrayBuffer5.types b/tests/baselines/reference/useSharedArrayBuffer5(target=es2015).types similarity index 100% rename from tests/baselines/reference/useSharedArrayBuffer5.types rename to tests/baselines/reference/useSharedArrayBuffer5(target=es2015).types diff --git a/tests/baselines/reference/useSharedArrayBuffer5(target=es5).js b/tests/baselines/reference/useSharedArrayBuffer5(target=es5).js new file mode 100644 index 0000000000000..7c96f2cb6b56c --- /dev/null +++ b/tests/baselines/reference/useSharedArrayBuffer5(target=es5).js @@ -0,0 +1,11 @@ +//// [tests/cases/conformance/es2017/useSharedArrayBuffer5.ts] //// + +//// [useSharedArrayBuffer5.ts] +var foge = new SharedArrayBuffer(1024); +var stringTag = foge[Symbol.toStringTag]; +var species = SharedArrayBuffer[Symbol.species]; + +//// [useSharedArrayBuffer5.js] +var foge = new SharedArrayBuffer(1024); +var stringTag = foge[Symbol.toStringTag]; +var species = SharedArrayBuffer[Symbol.species]; diff --git a/tests/baselines/reference/useSharedArrayBuffer5(target=es5).symbols b/tests/baselines/reference/useSharedArrayBuffer5(target=es5).symbols new file mode 100644 index 0000000000000..9c5fc6a70290b --- /dev/null +++ b/tests/baselines/reference/useSharedArrayBuffer5(target=es5).symbols @@ -0,0 +1,21 @@ +//// [tests/cases/conformance/es2017/useSharedArrayBuffer5.ts] //// + +=== useSharedArrayBuffer5.ts === +var foge = new SharedArrayBuffer(1024); +>foge : Symbol(foge, Decl(useSharedArrayBuffer5.ts, 0, 3)) +>SharedArrayBuffer : Symbol(SharedArrayBuffer, Decl(lib.es2017.sharedmemory.d.ts, --, --), Decl(lib.es2017.sharedmemory.d.ts, --, --)) + +var stringTag = foge[Symbol.toStringTag]; +>stringTag : Symbol(stringTag, Decl(useSharedArrayBuffer5.ts, 1, 3)) +>foge : Symbol(foge, Decl(useSharedArrayBuffer5.ts, 0, 3)) +>Symbol.toStringTag : Symbol(SymbolConstructor.toStringTag, Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>Symbol : Symbol(Symbol, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>toStringTag : Symbol(SymbolConstructor.toStringTag, Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + +var species = SharedArrayBuffer[Symbol.species]; +>species : Symbol(species, Decl(useSharedArrayBuffer5.ts, 2, 3)) +>SharedArrayBuffer : Symbol(SharedArrayBuffer, Decl(lib.es2017.sharedmemory.d.ts, --, --), Decl(lib.es2017.sharedmemory.d.ts, --, --)) +>Symbol.species : Symbol(SymbolConstructor.species, Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>Symbol : Symbol(Symbol, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>species : Symbol(SymbolConstructor.species, Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + diff --git a/tests/baselines/reference/useSharedArrayBuffer5(target=es5).types b/tests/baselines/reference/useSharedArrayBuffer5(target=es5).types new file mode 100644 index 0000000000000..9a5778b48c494 --- /dev/null +++ b/tests/baselines/reference/useSharedArrayBuffer5(target=es5).types @@ -0,0 +1,41 @@ +//// [tests/cases/conformance/es2017/useSharedArrayBuffer5.ts] //// + +=== useSharedArrayBuffer5.ts === +var foge = new SharedArrayBuffer(1024); +>foge : SharedArrayBuffer +> : ^^^^^^^^^^^^^^^^^ +>new SharedArrayBuffer(1024) : SharedArrayBuffer +> : ^^^^^^^^^^^^^^^^^ +>SharedArrayBuffer : SharedArrayBufferConstructor +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>1024 : 1024 +> : ^^^^ + +var stringTag = foge[Symbol.toStringTag]; +>stringTag : "SharedArrayBuffer" +> : ^^^^^^^^^^^^^^^^^^^ +>foge[Symbol.toStringTag] : "SharedArrayBuffer" +> : ^^^^^^^^^^^^^^^^^^^ +>foge : SharedArrayBuffer +> : ^^^^^^^^^^^^^^^^^ +>Symbol.toStringTag : unique symbol +> : ^^^^^^^^^^^^^ +>Symbol : SymbolConstructor +> : ^^^^^^^^^^^^^^^^^ +>toStringTag : unique symbol +> : ^^^^^^^^^^^^^ + +var species = SharedArrayBuffer[Symbol.species]; +>species : SharedArrayBufferConstructor +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>SharedArrayBuffer[Symbol.species] : SharedArrayBufferConstructor +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>SharedArrayBuffer : SharedArrayBufferConstructor +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>Symbol.species : unique symbol +> : ^^^^^^^^^^^^^ +>Symbol : SymbolConstructor +> : ^^^^^^^^^^^^^^^^^ +>species : unique symbol +> : ^^^^^^^^^^^^^ + diff --git a/tests/baselines/reference/useSharedArrayBuffer6.errors.txt b/tests/baselines/reference/useSharedArrayBuffer6(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/useSharedArrayBuffer6.errors.txt rename to tests/baselines/reference/useSharedArrayBuffer6(target=es2015).errors.txt diff --git a/tests/baselines/reference/useSharedArrayBuffer6.js b/tests/baselines/reference/useSharedArrayBuffer6(target=es2015).js similarity index 100% rename from tests/baselines/reference/useSharedArrayBuffer6.js rename to tests/baselines/reference/useSharedArrayBuffer6(target=es2015).js diff --git a/tests/baselines/reference/useSharedArrayBuffer6.symbols b/tests/baselines/reference/useSharedArrayBuffer6(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/useSharedArrayBuffer6.symbols rename to tests/baselines/reference/useSharedArrayBuffer6(target=es2015).symbols diff --git a/tests/baselines/reference/useSharedArrayBuffer6.types b/tests/baselines/reference/useSharedArrayBuffer6(target=es2015).types similarity index 100% rename from tests/baselines/reference/useSharedArrayBuffer6.types rename to tests/baselines/reference/useSharedArrayBuffer6(target=es2015).types diff --git a/tests/baselines/reference/useSharedArrayBuffer6(target=es5).errors.txt b/tests/baselines/reference/useSharedArrayBuffer6(target=es5).errors.txt new file mode 100644 index 0000000000000..2f20bc579bc25 --- /dev/null +++ b/tests/baselines/reference/useSharedArrayBuffer6(target=es5).errors.txt @@ -0,0 +1,11 @@ +useSharedArrayBuffer6.ts(2,6): error TS2339: Property 'length' does not exist on type 'SharedArrayBuffer'. + + +==== useSharedArrayBuffer6.ts (1 errors) ==== + var foge = new SharedArrayBuffer(1024); + foge.length; // should error + ~~~~~~ +!!! error TS2339: Property 'length' does not exist on type 'SharedArrayBuffer'. + + var length = SharedArrayBuffer.length; + \ No newline at end of file diff --git a/tests/baselines/reference/useSharedArrayBuffer6(target=es5).js b/tests/baselines/reference/useSharedArrayBuffer6(target=es5).js new file mode 100644 index 0000000000000..9a6d3e0b551b7 --- /dev/null +++ b/tests/baselines/reference/useSharedArrayBuffer6(target=es5).js @@ -0,0 +1,13 @@ +//// [tests/cases/conformance/es2017/useSharedArrayBuffer6.ts] //// + +//// [useSharedArrayBuffer6.ts] +var foge = new SharedArrayBuffer(1024); +foge.length; // should error + +var length = SharedArrayBuffer.length; + + +//// [useSharedArrayBuffer6.js] +var foge = new SharedArrayBuffer(1024); +foge.length; // should error +var length = SharedArrayBuffer.length; diff --git a/tests/baselines/reference/useSharedArrayBuffer6(target=es5).symbols b/tests/baselines/reference/useSharedArrayBuffer6(target=es5).symbols new file mode 100644 index 0000000000000..914eee91c3bf1 --- /dev/null +++ b/tests/baselines/reference/useSharedArrayBuffer6(target=es5).symbols @@ -0,0 +1,16 @@ +//// [tests/cases/conformance/es2017/useSharedArrayBuffer6.ts] //// + +=== useSharedArrayBuffer6.ts === +var foge = new SharedArrayBuffer(1024); +>foge : Symbol(foge, Decl(useSharedArrayBuffer6.ts, 0, 3)) +>SharedArrayBuffer : Symbol(SharedArrayBuffer, Decl(lib.es2017.sharedmemory.d.ts, --, --), Decl(lib.es2017.sharedmemory.d.ts, --, --)) + +foge.length; // should error +>foge : Symbol(foge, Decl(useSharedArrayBuffer6.ts, 0, 3)) + +var length = SharedArrayBuffer.length; +>length : Symbol(length, Decl(useSharedArrayBuffer6.ts, 3, 3)) +>SharedArrayBuffer.length : Symbol(Function.length, Decl(lib.es5.d.ts, --, --)) +>SharedArrayBuffer : Symbol(SharedArrayBuffer, Decl(lib.es2017.sharedmemory.d.ts, --, --), Decl(lib.es2017.sharedmemory.d.ts, --, --)) +>length : Symbol(Function.length, Decl(lib.es5.d.ts, --, --)) + diff --git a/tests/baselines/reference/useSharedArrayBuffer6(target=es5).types b/tests/baselines/reference/useSharedArrayBuffer6(target=es5).types new file mode 100644 index 0000000000000..309db3630f148 --- /dev/null +++ b/tests/baselines/reference/useSharedArrayBuffer6(target=es5).types @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/es2017/useSharedArrayBuffer6.ts] //// + +=== useSharedArrayBuffer6.ts === +var foge = new SharedArrayBuffer(1024); +>foge : SharedArrayBuffer +> : ^^^^^^^^^^^^^^^^^ +>new SharedArrayBuffer(1024) : SharedArrayBuffer +> : ^^^^^^^^^^^^^^^^^ +>SharedArrayBuffer : SharedArrayBufferConstructor +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>1024 : 1024 +> : ^^^^ + +foge.length; // should error +>foge.length : any +> : ^^^ +>foge : SharedArrayBuffer +> : ^^^^^^^^^^^^^^^^^ +>length : any +> : ^^^ + +var length = SharedArrayBuffer.length; +>length : number +> : ^^^^^^ +>SharedArrayBuffer.length : number +> : ^^^^^^ +>SharedArrayBuffer : SharedArrayBufferConstructor +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>length : number +> : ^^^^^^ + diff --git a/tests/baselines/reference/useStrictLikePrologueString01(target=es2015).js b/tests/baselines/reference/useStrictLikePrologueString01(target=es2015).js new file mode 100644 index 0000000000000..3b8582b7fe427 --- /dev/null +++ b/tests/baselines/reference/useStrictLikePrologueString01(target=es2015).js @@ -0,0 +1,13 @@ +//// [tests/cases/compiler/useStrictLikePrologueString01.ts] //// + +//// [useStrictLikePrologueString01.ts] +"hey!" +" use strict " +export function f() { +} + +//// [useStrictLikePrologueString01.js] +"hey!"; +" use strict "; +export function f() { +} diff --git a/tests/baselines/reference/useStrictLikePrologueString01.symbols b/tests/baselines/reference/useStrictLikePrologueString01(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/useStrictLikePrologueString01.symbols rename to tests/baselines/reference/useStrictLikePrologueString01(target=es2015).symbols diff --git a/tests/baselines/reference/useStrictLikePrologueString01.types b/tests/baselines/reference/useStrictLikePrologueString01(target=es2015).types similarity index 100% rename from tests/baselines/reference/useStrictLikePrologueString01.types rename to tests/baselines/reference/useStrictLikePrologueString01(target=es2015).types diff --git a/tests/baselines/reference/useStrictLikePrologueString01.js b/tests/baselines/reference/useStrictLikePrologueString01(target=es5).js similarity index 100% rename from tests/baselines/reference/useStrictLikePrologueString01.js rename to tests/baselines/reference/useStrictLikePrologueString01(target=es5).js diff --git a/tests/baselines/reference/useStrictLikePrologueString01(target=es5).symbols b/tests/baselines/reference/useStrictLikePrologueString01(target=es5).symbols new file mode 100644 index 0000000000000..2ff14ec2833e5 --- /dev/null +++ b/tests/baselines/reference/useStrictLikePrologueString01(target=es5).symbols @@ -0,0 +1,8 @@ +//// [tests/cases/compiler/useStrictLikePrologueString01.ts] //// + +=== useStrictLikePrologueString01.ts === +"hey!" +" use strict " +export function f() { +>f : Symbol(f, Decl(useStrictLikePrologueString01.ts, 1, 14)) +} diff --git a/tests/baselines/reference/useStrictLikePrologueString01(target=es5).types b/tests/baselines/reference/useStrictLikePrologueString01(target=es5).types new file mode 100644 index 0000000000000..306a236a6fa16 --- /dev/null +++ b/tests/baselines/reference/useStrictLikePrologueString01(target=es5).types @@ -0,0 +1,15 @@ +//// [tests/cases/compiler/useStrictLikePrologueString01.ts] //// + +=== useStrictLikePrologueString01.ts === +"hey!" +>"hey!" : "hey!" +> : ^^^^^^ + +" use strict " +>" use strict " : " use strict " +> : ^^^^^^^^^^^^^^ + +export function f() { +>f : () => void +> : ^^^^^^^^^^ +} diff --git a/tests/baselines/reference/usingDeclarations.11(target=es2015).js b/tests/baselines/reference/usingDeclarations.11(target=es2015).js new file mode 100644 index 0000000000000..d72f6954f8d37 --- /dev/null +++ b/tests/baselines/reference/usingDeclarations.11(target=es2015).js @@ -0,0 +1,177 @@ +//// [tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.11.ts] //// + +//// [usingDeclarations.11.ts] +class A {} +class C1 extends A { + constructor() { + using x = null; + super(); + } +} +class C2 extends A { + constructor() { + super(); + using x = null; + } +} +class C3 extends A { + y = 1; + constructor() { + using x = null; + super(); + } +} +class C4 extends A { + constructor(public y: number) { + using x = null; + super(); + } +} +class C5 extends A { + z = 1; + constructor(public y: number) { + using x = null; + super(); + } +} + + +//// [usingDeclarations.11.js] +var __addDisposableResource = (this && this.__addDisposableResource) || function (env, value, async) { + if (value !== null && value !== void 0) { + if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected."); + var dispose, inner; + if (async) { + if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined."); + dispose = value[Symbol.asyncDispose]; + } + if (dispose === void 0) { + if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined."); + dispose = value[Symbol.dispose]; + if (async) inner = dispose; + } + if (typeof dispose !== "function") throw new TypeError("Object not disposable."); + if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } }; + env.stack.push({ value: value, dispose: dispose, async: async }); + } + else if (async) { + env.stack.push({ async: true }); + } + return value; +}; +var __disposeResources = (this && this.__disposeResources) || (function (SuppressedError) { + return function (env) { + function fail(e) { + env.error = env.hasError ? new SuppressedError(e, env.error, "An error was suppressed during disposal.") : e; + env.hasError = true; + } + var r, s = 0; + function next() { + while (r = env.stack.pop()) { + try { + if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next); + if (r.dispose) { + var result = r.dispose.call(r.value); + if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); }); + } + else s |= 1; + } + catch (e) { + fail(e); + } + } + if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve(); + if (env.hasError) throw env.error; + } + return next(); + }; +})(typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) { + var e = new Error(message); + return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e; +}); +class A { +} +class C1 extends A { + constructor() { + const env_1 = { stack: [], error: void 0, hasError: false }; + try { + const x = __addDisposableResource(env_1, null, false); + super(); + } + catch (e_1) { + env_1.error = e_1; + env_1.hasError = true; + } + finally { + __disposeResources(env_1); + } + } +} +class C2 extends A { + constructor() { + const env_2 = { stack: [], error: void 0, hasError: false }; + try { + super(); + const x = __addDisposableResource(env_2, null, false); + } + catch (e_2) { + env_2.error = e_2; + env_2.hasError = true; + } + finally { + __disposeResources(env_2); + } + } +} +class C3 extends A { + constructor() { + const env_3 = { stack: [], error: void 0, hasError: false }; + try { + const x = __addDisposableResource(env_3, null, false); + super(); + this.y = 1; + } + catch (e_3) { + env_3.error = e_3; + env_3.hasError = true; + } + finally { + __disposeResources(env_3); + } + } +} +class C4 extends A { + constructor(y) { + const env_4 = { stack: [], error: void 0, hasError: false }; + try { + const x = __addDisposableResource(env_4, null, false); + super(); + this.y = y; + } + catch (e_4) { + env_4.error = e_4; + env_4.hasError = true; + } + finally { + __disposeResources(env_4); + } + } +} +class C5 extends A { + constructor(y) { + const env_5 = { stack: [], error: void 0, hasError: false }; + try { + const x = __addDisposableResource(env_5, null, false); + super(); + this.y = y; + this.z = 1; + } + catch (e_5) { + env_5.error = e_5; + env_5.hasError = true; + } + finally { + __disposeResources(env_5); + } + } +} diff --git a/tests/baselines/reference/usingDeclarations.11.js b/tests/baselines/reference/usingDeclarations.11(target=es5).js similarity index 100% rename from tests/baselines/reference/usingDeclarations.11.js rename to tests/baselines/reference/usingDeclarations.11(target=es5).js diff --git a/tests/baselines/reference/yieldInForInInDownlevelGenerator(target=es2015).js b/tests/baselines/reference/yieldInForInInDownlevelGenerator(target=es2015).js new file mode 100644 index 0000000000000..55e40d77ea4e1 --- /dev/null +++ b/tests/baselines/reference/yieldInForInInDownlevelGenerator(target=es2015).js @@ -0,0 +1,21 @@ +//// [tests/cases/compiler/yieldInForInInDownlevelGenerator.ts] //// + +//// [yieldInForInInDownlevelGenerator.ts] +// https://github.com/microsoft/TypeScript/issues/49808 +function* gen() { + var obj: any = { foo: 1, bar: 2 }; + for (var key in obj) { + yield key; + delete obj.bar; + } +} + +//// [yieldInForInInDownlevelGenerator.js] +// https://github.com/microsoft/TypeScript/issues/49808 +function* gen() { + var obj = { foo: 1, bar: 2 }; + for (var key in obj) { + yield key; + delete obj.bar; + } +} diff --git a/tests/baselines/reference/yieldInForInInDownlevelGenerator.symbols b/tests/baselines/reference/yieldInForInInDownlevelGenerator(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/yieldInForInInDownlevelGenerator.symbols rename to tests/baselines/reference/yieldInForInInDownlevelGenerator(target=es2015).symbols diff --git a/tests/baselines/reference/yieldInForInInDownlevelGenerator.types b/tests/baselines/reference/yieldInForInInDownlevelGenerator(target=es2015).types similarity index 100% rename from tests/baselines/reference/yieldInForInInDownlevelGenerator.types rename to tests/baselines/reference/yieldInForInInDownlevelGenerator(target=es2015).types diff --git a/tests/baselines/reference/yieldInForInInDownlevelGenerator.js b/tests/baselines/reference/yieldInForInInDownlevelGenerator(target=es5).js similarity index 100% rename from tests/baselines/reference/yieldInForInInDownlevelGenerator.js rename to tests/baselines/reference/yieldInForInInDownlevelGenerator(target=es5).js diff --git a/tests/baselines/reference/yieldInForInInDownlevelGenerator(target=es5).symbols b/tests/baselines/reference/yieldInForInInDownlevelGenerator(target=es5).symbols new file mode 100644 index 0000000000000..24bec32db4dc5 --- /dev/null +++ b/tests/baselines/reference/yieldInForInInDownlevelGenerator(target=es5).symbols @@ -0,0 +1,23 @@ +//// [tests/cases/compiler/yieldInForInInDownlevelGenerator.ts] //// + +=== yieldInForInInDownlevelGenerator.ts === +// https://github.com/microsoft/TypeScript/issues/49808 +function* gen() { +>gen : Symbol(gen, Decl(yieldInForInInDownlevelGenerator.ts, 0, 0)) + + var obj: any = { foo: 1, bar: 2 }; +>obj : Symbol(obj, Decl(yieldInForInInDownlevelGenerator.ts, 2, 5)) +>foo : Symbol(foo, Decl(yieldInForInInDownlevelGenerator.ts, 2, 18)) +>bar : Symbol(bar, Decl(yieldInForInInDownlevelGenerator.ts, 2, 26)) + + for (var key in obj) { +>key : Symbol(key, Decl(yieldInForInInDownlevelGenerator.ts, 3, 10)) +>obj : Symbol(obj, Decl(yieldInForInInDownlevelGenerator.ts, 2, 5)) + + yield key; +>key : Symbol(key, Decl(yieldInForInInDownlevelGenerator.ts, 3, 10)) + + delete obj.bar; +>obj : Symbol(obj, Decl(yieldInForInInDownlevelGenerator.ts, 2, 5)) + } +} diff --git a/tests/baselines/reference/yieldInForInInDownlevelGenerator(target=es5).types b/tests/baselines/reference/yieldInForInInDownlevelGenerator(target=es5).types new file mode 100644 index 0000000000000..324d21c2298c3 --- /dev/null +++ b/tests/baselines/reference/yieldInForInInDownlevelGenerator(target=es5).types @@ -0,0 +1,41 @@ +//// [tests/cases/compiler/yieldInForInInDownlevelGenerator.ts] //// + +=== yieldInForInInDownlevelGenerator.ts === +// https://github.com/microsoft/TypeScript/issues/49808 +function* gen() { +>gen : () => Generator +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + var obj: any = { foo: 1, bar: 2 }; +>obj : any +>{ foo: 1, bar: 2 } : { foo: number; bar: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>foo : number +> : ^^^^^^ +>1 : 1 +> : ^ +>bar : number +> : ^^^^^^ +>2 : 2 +> : ^ + + for (var key in obj) { +>key : string +> : ^^^^^^ +>obj : any + + yield key; +>yield key : any +>key : string +> : ^^^^^^ + + delete obj.bar; +>delete obj.bar : boolean +> : ^^^^^^^ +>obj.bar : any +>obj : any +> : ^^^ +>bar : any +> : ^^^ + } +} diff --git a/tests/cases/compiler/abstractPropertyBasics.ts b/tests/cases/compiler/abstractPropertyBasics.ts index c8fd32b52b902..8f397997f2c63 100644 --- a/tests/cases/compiler/abstractPropertyBasics.ts +++ b/tests/cases/compiler/abstractPropertyBasics.ts @@ -1,4 +1,4 @@ -//@target: ES5 +//@target: ES5, ES2015 interface A { prop: string; raw: string; diff --git a/tests/cases/compiler/abstractPropertyNegative.ts b/tests/cases/compiler/abstractPropertyNegative.ts index 6350111b395b7..665bd6007bfd7 100644 --- a/tests/cases/compiler/abstractPropertyNegative.ts +++ b/tests/cases/compiler/abstractPropertyNegative.ts @@ -1,4 +1,4 @@ -//@target: ES5 +//@target: ES5, ES2015 interface A { prop: string; m(): string; diff --git a/tests/cases/compiler/accessorAccidentalCallDiagnostic.ts b/tests/cases/compiler/accessorAccidentalCallDiagnostic.ts index a616fabe8ab6f..493cbef3708bf 100644 --- a/tests/cases/compiler/accessorAccidentalCallDiagnostic.ts +++ b/tests/cases/compiler/accessorAccidentalCallDiagnostic.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // https://github.com/microsoft/TypeScript/issues/24554 class Test24554 { diff --git a/tests/cases/compiler/accessorInAmbientContextES5.ts b/tests/cases/compiler/accessorInAmbientContextES5.ts index 42fb79e9774cf..86bbab6132259 100644 --- a/tests/cases/compiler/accessorInAmbientContextES5.ts +++ b/tests/cases/compiler/accessorInAmbientContextES5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @declaration: true // Should allow accessor in ambient contexts even when targeting ES5 diff --git a/tests/cases/compiler/accessorParameterAccessibilityModifier.ts b/tests/cases/compiler/accessorParameterAccessibilityModifier.ts index baa5841fbfe3b..9e39120b7b68e 100644 --- a/tests/cases/compiler/accessorParameterAccessibilityModifier.ts +++ b/tests/cases/compiler/accessorParameterAccessibilityModifier.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: es5 +// @target: es5, es2015 class C { set X(public v) { } diff --git a/tests/cases/compiler/accessorWithInitializer.ts b/tests/cases/compiler/accessorWithInitializer.ts index 867dc097c2043..cca7c82fc6b2b 100644 --- a/tests/cases/compiler/accessorWithInitializer.ts +++ b/tests/cases/compiler/accessorWithInitializer.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: es5 +// @target: es5, es2015 class C { set X(v = 0) { } diff --git a/tests/cases/compiler/accessorWithLineTerminator.ts b/tests/cases/compiler/accessorWithLineTerminator.ts index 184a2e9660afb..0fe4afc507212 100644 --- a/tests/cases/compiler/accessorWithLineTerminator.ts +++ b/tests/cases/compiler/accessorWithLineTerminator.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 class C { get diff --git a/tests/cases/compiler/accessorWithRestParam.ts b/tests/cases/compiler/accessorWithRestParam.ts index 677bc1fc3c25b..d75a308ce13e6 100644 --- a/tests/cases/compiler/accessorWithRestParam.ts +++ b/tests/cases/compiler/accessorWithRestParam.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: es5 +// @target: es5, es2015 class C { set X(...v) { } diff --git a/tests/cases/compiler/accessorWithoutBody1.ts b/tests/cases/compiler/accessorWithoutBody1.ts index 617afe2c8bf1d..0bcb99fa9e1dd 100644 --- a/tests/cases/compiler/accessorWithoutBody1.ts +++ b/tests/cases/compiler/accessorWithoutBody1.ts @@ -1,3 +1,3 @@ // @strict: false -// @target: ES5 +// @target: ES5, ES2015 var v = { get foo() } \ No newline at end of file diff --git a/tests/cases/compiler/accessorWithoutBody2.ts b/tests/cases/compiler/accessorWithoutBody2.ts index be30eacaad66b..107aea9662530 100644 --- a/tests/cases/compiler/accessorWithoutBody2.ts +++ b/tests/cases/compiler/accessorWithoutBody2.ts @@ -1,3 +1,3 @@ // @strict: false -// @target: ES5 +// @target: ES5, ES2015 var v = { set foo(a) } \ No newline at end of file diff --git a/tests/cases/compiler/accessorsInAmbientContext.ts b/tests/cases/compiler/accessorsInAmbientContext.ts index 9d9edd41958df..d3e9902e1556f 100644 --- a/tests/cases/compiler/accessorsInAmbientContext.ts +++ b/tests/cases/compiler/accessorsInAmbientContext.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 declare namespace M { class C { diff --git a/tests/cases/compiler/aliasUsageInAccessorsOfClass.ts b/tests/cases/compiler/aliasUsageInAccessorsOfClass.ts index c6d1b1480c0fb..375ba9bdbe4c3 100644 --- a/tests/cases/compiler/aliasUsageInAccessorsOfClass.ts +++ b/tests/cases/compiler/aliasUsageInAccessorsOfClass.ts @@ -1,5 +1,5 @@ // @module: commonjs -// @target: ES5 +// @target: ES5, ES2015 // @Filename: aliasUsage1_backbone.ts export class Model { public someData: string; diff --git a/tests/cases/compiler/alwaysStrictModule6.ts b/tests/cases/compiler/alwaysStrictModule6.ts index 064ece1a4e1a9..e8360212ba3ed 100644 --- a/tests/cases/compiler/alwaysStrictModule6.ts +++ b/tests/cases/compiler/alwaysStrictModule6.ts @@ -1,5 +1,5 @@ // @alwaysStrict: true -// @target: es5 +// @target: es5, es2015 // Targeting ES5 export const a = 1; \ No newline at end of file diff --git a/tests/cases/compiler/ambientGetters.ts b/tests/cases/compiler/ambientGetters.ts index 401eacf906633..ba956f2c62982 100644 --- a/tests/cases/compiler/ambientGetters.ts +++ b/tests/cases/compiler/ambientGetters.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 declare class A { get length() : number; diff --git a/tests/cases/compiler/argumentsObjectIterator01_ES5.ts b/tests/cases/compiler/argumentsObjectIterator01_ES5.ts index 1813eb9a16698..ab14e80c6eb8e 100644 --- a/tests/cases/compiler/argumentsObjectIterator01_ES5.ts +++ b/tests/cases/compiler/argumentsObjectIterator01_ES5.ts @@ -1,4 +1,4 @@ -//@target: ES5 +//@target: ES5, ES2015 function doubleAndReturnAsArray(x: number, y: number, z: number): [number, number, number] { let result = []; diff --git a/tests/cases/compiler/argumentsObjectIterator02_ES5.ts b/tests/cases/compiler/argumentsObjectIterator02_ES5.ts index b348765827e86..d95d7917e0db1 100644 --- a/tests/cases/compiler/argumentsObjectIterator02_ES5.ts +++ b/tests/cases/compiler/argumentsObjectIterator02_ES5.ts @@ -1,4 +1,4 @@ -//@target: ES5 +//@target: ES5, ES2015 function doubleAndReturnAsArray(x: number, y: number, z: number): [number, number, number] { let blah = arguments[Symbol.iterator]; diff --git a/tests/cases/compiler/argumentsObjectIterator03_ES5.ts b/tests/cases/compiler/argumentsObjectIterator03_ES5.ts index 8059ca3aa22b5..dfe5a4a44c680 100644 --- a/tests/cases/compiler/argumentsObjectIterator03_ES5.ts +++ b/tests/cases/compiler/argumentsObjectIterator03_ES5.ts @@ -1,4 +1,4 @@ -//@target: ES5 +//@target: ES5, ES2015 function asReversedTuple(a: number, b: string, c: boolean): [boolean, string, number] { let [x, y, z] = arguments; diff --git a/tests/cases/compiler/arrayToLocaleStringES5.ts b/tests/cases/compiler/arrayToLocaleStringES5.ts index a0d1a6464ee9e..3025a54f96a4a 100644 --- a/tests/cases/compiler/arrayToLocaleStringES5.ts +++ b/tests/cases/compiler/arrayToLocaleStringES5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 let str: string; const arr = [1, 2, 3]; diff --git a/tests/cases/compiler/asyncArrowInClassES5.ts b/tests/cases/compiler/asyncArrowInClassES5.ts index 2712372d35706..c44cbc55e4def 100644 --- a/tests/cases/compiler/asyncArrowInClassES5.ts +++ b/tests/cases/compiler/asyncArrowInClassES5.ts @@ -1,6 +1,6 @@ // @noEmitHelpers: true // @lib: es2015 -// @target: es5 +// @target: es5, es2015 // https://github.com/Microsoft/TypeScript/issues/16924 // Should capture `this` diff --git a/tests/cases/compiler/asyncAwaitWithCapturedBlockScopeVar.ts b/tests/cases/compiler/asyncAwaitWithCapturedBlockScopeVar.ts index 6db92f0273d57..4cb7da93ff8be 100644 --- a/tests/cases/compiler/asyncAwaitWithCapturedBlockScopeVar.ts +++ b/tests/cases/compiler/asyncAwaitWithCapturedBlockScopeVar.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @lib: es6 // @noEmitHelpers: true async function fn1() { diff --git a/tests/cases/compiler/asyncFunctionTempVariableScoping.ts b/tests/cases/compiler/asyncFunctionTempVariableScoping.ts index 99c51276d0a35..2ffb59258391d 100644 --- a/tests/cases/compiler/asyncFunctionTempVariableScoping.ts +++ b/tests/cases/compiler/asyncFunctionTempVariableScoping.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: es5 +// @target: es5, es2015 // @lib: es2015 // https://github.com/Microsoft/TypeScript/issues/19187 diff --git a/tests/cases/compiler/bigintAmbientMinimal.ts b/tests/cases/compiler/bigintAmbientMinimal.ts index 4bad00279bcfd..44c7f9616e900 100644 --- a/tests/cases/compiler/bigintAmbientMinimal.ts +++ b/tests/cases/compiler/bigintAmbientMinimal.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @Filename: /ambient.d.ts declare const fromDts = 789n; diff --git a/tests/cases/compiler/bigintWithoutLib.ts b/tests/cases/compiler/bigintWithoutLib.ts index da5965e3e8e9a..705e8d6630c8c 100644 --- a/tests/cases/compiler/bigintWithoutLib.ts +++ b/tests/cases/compiler/bigintWithoutLib.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // Every line should error because these builtins are not declared diff --git a/tests/cases/compiler/blockScopedBindingsInDownlevelGenerator.ts b/tests/cases/compiler/blockScopedBindingsInDownlevelGenerator.ts index ff2bb87149bf7..28c4367588dec 100644 --- a/tests/cases/compiler/blockScopedBindingsInDownlevelGenerator.ts +++ b/tests/cases/compiler/blockScopedBindingsInDownlevelGenerator.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @downlevelIteration: true // @lib: es2015 function* a() { diff --git a/tests/cases/compiler/blockScopedEnumVariablesUseBeforeDef.ts b/tests/cases/compiler/blockScopedEnumVariablesUseBeforeDef.ts index 39f5eafd733c9..2908603a93e2f 100644 --- a/tests/cases/compiler/blockScopedEnumVariablesUseBeforeDef.ts +++ b/tests/cases/compiler/blockScopedEnumVariablesUseBeforeDef.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 function foo1() { return E.A enum E { A } diff --git a/tests/cases/compiler/blockScopedEnumVariablesUseBeforeDef_isolatedModules.ts b/tests/cases/compiler/blockScopedEnumVariablesUseBeforeDef_isolatedModules.ts index 3b02ad8155766..8de170c737e66 100644 --- a/tests/cases/compiler/blockScopedEnumVariablesUseBeforeDef_isolatedModules.ts +++ b/tests/cases/compiler/blockScopedEnumVariablesUseBeforeDef_isolatedModules.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @isolatedModules: true function foo1() { diff --git a/tests/cases/compiler/blockScopedEnumVariablesUseBeforeDef_preserve.ts b/tests/cases/compiler/blockScopedEnumVariablesUseBeforeDef_preserve.ts index 381da45dbfc43..046badaf94493 100644 --- a/tests/cases/compiler/blockScopedEnumVariablesUseBeforeDef_preserve.ts +++ b/tests/cases/compiler/blockScopedEnumVariablesUseBeforeDef_preserve.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @preserveConstEnums: true function foo1() { diff --git a/tests/cases/compiler/blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax.ts b/tests/cases/compiler/blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax.ts index 20e2c68c03125..59bb788c23d70 100644 --- a/tests/cases/compiler/blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax.ts +++ b/tests/cases/compiler/blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @verbatimModuleSyntax: true function foo1() { diff --git a/tests/cases/compiler/blockScopedFunctionDeclarationES5.ts b/tests/cases/compiler/blockScopedFunctionDeclarationES5.ts index dbb725361a02b..429a6be4f88e9 100644 --- a/tests/cases/compiler/blockScopedFunctionDeclarationES5.ts +++ b/tests/cases/compiler/blockScopedFunctionDeclarationES5.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 if (true) { function foo() { } foo(); diff --git a/tests/cases/compiler/blockScopedFunctionDeclarationInStrictClass.ts b/tests/cases/compiler/blockScopedFunctionDeclarationInStrictClass.ts index 48d83e6ad87af..8906dccd2b246 100644 --- a/tests/cases/compiler/blockScopedFunctionDeclarationInStrictClass.ts +++ b/tests/cases/compiler/blockScopedFunctionDeclarationInStrictClass.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 class c { method() { if (true) { diff --git a/tests/cases/compiler/blockScopedFunctionDeclarationStrictES5.ts b/tests/cases/compiler/blockScopedFunctionDeclarationStrictES5.ts index c5035e1130c3c..de1c14bb0eca4 100644 --- a/tests/cases/compiler/blockScopedFunctionDeclarationStrictES5.ts +++ b/tests/cases/compiler/blockScopedFunctionDeclarationStrictES5.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 "use strict"; if (true) { function foo() { } // Error to declare function in block scope diff --git a/tests/cases/compiler/blockScopedNamespaceDifferentFile.ts b/tests/cases/compiler/blockScopedNamespaceDifferentFile.ts index c6e303314b24d..2c58f3e3a2a5a 100644 --- a/tests/cases/compiler/blockScopedNamespaceDifferentFile.ts +++ b/tests/cases/compiler/blockScopedNamespaceDifferentFile.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: es5 +// @target: es5, es2015 // @outFile: out.js // @module: amd diff --git a/tests/cases/compiler/blockScopedSameNameFunctionDeclarationES5.ts b/tests/cases/compiler/blockScopedSameNameFunctionDeclarationES5.ts index a5e10d19af29a..d4560c458a806 100644 --- a/tests/cases/compiler/blockScopedSameNameFunctionDeclarationES5.ts +++ b/tests/cases/compiler/blockScopedSameNameFunctionDeclarationES5.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 function foo(a: number) { if (a === 1) { function foo() { } // duplicate function diff --git a/tests/cases/compiler/blockScopedSameNameFunctionDeclarationStrictES5.ts b/tests/cases/compiler/blockScopedSameNameFunctionDeclarationStrictES5.ts index a0073c75d43f5..e9a09df30552b 100644 --- a/tests/cases/compiler/blockScopedSameNameFunctionDeclarationStrictES5.ts +++ b/tests/cases/compiler/blockScopedSameNameFunctionDeclarationStrictES5.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 "use strict"; function foo(a: number) { if (a === 1) { diff --git a/tests/cases/compiler/blockScopedVariablesUseBeforeDef.ts b/tests/cases/compiler/blockScopedVariablesUseBeforeDef.ts index 97bc54a28b1a0..111e79e191f3b 100644 --- a/tests/cases/compiler/blockScopedVariablesUseBeforeDef.ts +++ b/tests/cases/compiler/blockScopedVariablesUseBeforeDef.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: ES5 +// @target: ES5, ES2015 // @lib: esnext, dom function foo0() { let a = x; diff --git a/tests/cases/compiler/capturedLetConstInLoop14.ts b/tests/cases/compiler/capturedLetConstInLoop14.ts index 9c4d94def6ce8..fce8d587e175b 100644 --- a/tests/cases/compiler/capturedLetConstInLoop14.ts +++ b/tests/cases/compiler/capturedLetConstInLoop14.ts @@ -1,5 +1,5 @@ // @strict: true -// @target: es5 +// @target: es5, es2015 // @noTypesAndSymbols: true function use(v: number) {} diff --git a/tests/cases/compiler/capturedParametersInInitializers2.ts b/tests/cases/compiler/capturedParametersInInitializers2.ts index 852d91d374d70..8a05e2308ffeb 100644 --- a/tests/cases/compiler/capturedParametersInInitializers2.ts +++ b/tests/cases/compiler/capturedParametersInInitializers2.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 function foo( y = class { static c = x; diff --git a/tests/cases/compiler/capturedShorthandPropertyAssignmentNoCheck.ts b/tests/cases/compiler/capturedShorthandPropertyAssignmentNoCheck.ts index 6046c379844de..cbd9bc5deaa8a 100644 --- a/tests/cases/compiler/capturedShorthandPropertyAssignmentNoCheck.ts +++ b/tests/cases/compiler/capturedShorthandPropertyAssignmentNoCheck.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 const fns = []; for (const value of [1, 2, 3]) { diff --git a/tests/cases/compiler/capturedVarInLoop.ts b/tests/cases/compiler/capturedVarInLoop.ts index 59ba79dbe92e9..a45cd803d1c3e 100644 --- a/tests/cases/compiler/capturedVarInLoop.ts +++ b/tests/cases/compiler/capturedVarInLoop.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: es5 +// @target: es5, es2015 for (var i = 0; i < 10; i++) { var str = 'x', len = str.length; let lambda1 = (y) => { }; diff --git a/tests/cases/compiler/circularObjectLiteralAccessors.ts b/tests/cases/compiler/circularObjectLiteralAccessors.ts index 3546ee75e6f75..6f8360521abd8 100644 --- a/tests/cases/compiler/circularObjectLiteralAccessors.ts +++ b/tests/cases/compiler/circularObjectLiteralAccessors.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // Repro from #6000 diff --git a/tests/cases/compiler/classExpressionWithStaticProperties2.ts b/tests/cases/compiler/classExpressionWithStaticProperties2.ts index 52cd5927b713a..95714da87d07d 100644 --- a/tests/cases/compiler/classExpressionWithStaticProperties2.ts +++ b/tests/cases/compiler/classExpressionWithStaticProperties2.ts @@ -1,5 +1,5 @@ // @strict: false -//@target: es5 +//@target: es5, es2015 var v = class C { static a = 1; static b diff --git a/tests/cases/compiler/classExpressionWithStaticProperties3.ts b/tests/cases/compiler/classExpressionWithStaticProperties3.ts index fdb52f6599127..d2314e8e3b0e3 100644 --- a/tests/cases/compiler/classExpressionWithStaticProperties3.ts +++ b/tests/cases/compiler/classExpressionWithStaticProperties3.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @lib: es5 declare var console: any; diff --git a/tests/cases/compiler/classExtendsAcrossFiles.ts b/tests/cases/compiler/classExtendsAcrossFiles.ts index 14e227647e7d7..58ec1a2df13b7 100644 --- a/tests/cases/compiler/classExtendsAcrossFiles.ts +++ b/tests/cases/compiler/classExtendsAcrossFiles.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @module: commonjs // @filename: a.ts import { b } from './b'; diff --git a/tests/cases/compiler/classInConvertedLoopES5.ts b/tests/cases/compiler/classInConvertedLoopES5.ts index bc2801f5877e3..30cbd9e75867b 100644 --- a/tests/cases/compiler/classInConvertedLoopES5.ts +++ b/tests/cases/compiler/classInConvertedLoopES5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 const classesByRow: Record = {}; for (const row of ['1', '2', '3', '4', '5']) { class RowClass { diff --git a/tests/cases/compiler/classStaticPropertyAccess.ts b/tests/cases/compiler/classStaticPropertyAccess.ts index 71f10c641b349..990e724caa5b8 100644 --- a/tests/cases/compiler/classStaticPropertyAccess.ts +++ b/tests/cases/compiler/classStaticPropertyAccess.ts @@ -1,5 +1,5 @@ // @strict: true -// @target: ES5 +// @target: ES5, ES2015 class A { public static "\""() {} diff --git a/tests/cases/compiler/classStaticPropertyTypeGuard.ts b/tests/cases/compiler/classStaticPropertyTypeGuard.ts index 93655cfb0921e..9b892542ad72a 100644 --- a/tests/cases/compiler/classStaticPropertyTypeGuard.ts +++ b/tests/cases/compiler/classStaticPropertyTypeGuard.ts @@ -1,5 +1,5 @@ // @strictNullChecks: true -// @target: ES5 +// @target: ES5, ES2015 // Repro from #8923 diff --git a/tests/cases/compiler/classUsedBeforeInitializedVariables.ts b/tests/cases/compiler/classUsedBeforeInitializedVariables.ts index 74acff583dee4..3360e60797ad2 100644 --- a/tests/cases/compiler/classUsedBeforeInitializedVariables.ts +++ b/tests/cases/compiler/classUsedBeforeInitializedVariables.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 class Test { p1 = 0; diff --git a/tests/cases/compiler/classdecl.ts b/tests/cases/compiler/classdecl.ts index e8ce495898f75..1b48f0d1a0b7c 100644 --- a/tests/cases/compiler/classdecl.ts +++ b/tests/cases/compiler/classdecl.ts @@ -1,6 +1,6 @@ // @strict: false // @declaration: true -// @target: es5 +// @target: es5, es2015 class a { //constructor (); constructor (n: number); diff --git a/tests/cases/compiler/collisionSuperAndLocalFunctionInAccessors.ts b/tests/cases/compiler/collisionSuperAndLocalFunctionInAccessors.ts index 14252622a4a62..d54cd509e0766 100644 --- a/tests/cases/compiler/collisionSuperAndLocalFunctionInAccessors.ts +++ b/tests/cases/compiler/collisionSuperAndLocalFunctionInAccessors.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 function _super() { // No error } class Foo { diff --git a/tests/cases/compiler/collisionSuperAndLocalVarInAccessors.ts b/tests/cases/compiler/collisionSuperAndLocalVarInAccessors.ts index 0f45a469abda9..bea82696c6bf4 100644 --- a/tests/cases/compiler/collisionSuperAndLocalVarInAccessors.ts +++ b/tests/cases/compiler/collisionSuperAndLocalVarInAccessors.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 var _super = 10; // No Error class Foo { get prop1(): number { diff --git a/tests/cases/compiler/collisionSuperAndParameter.ts b/tests/cases/compiler/collisionSuperAndParameter.ts index ccbbde0482781..0820a5807b9f6 100644 --- a/tests/cases/compiler/collisionSuperAndParameter.ts +++ b/tests/cases/compiler/collisionSuperAndParameter.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: es5 +// @target: es5, es2015 class Foo { a() { var lamda = (_super: number) => { // No Error diff --git a/tests/cases/compiler/collisionThisExpressionAndLocalVarInAccessors.ts b/tests/cases/compiler/collisionThisExpressionAndLocalVarInAccessors.ts index 1f5384d53fa8a..4041c4b416281 100644 --- a/tests/cases/compiler/collisionThisExpressionAndLocalVarInAccessors.ts +++ b/tests/cases/compiler/collisionThisExpressionAndLocalVarInAccessors.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: es5 +// @target: es5, es2015 class class1 { get a(): number { var x2 = { diff --git a/tests/cases/compiler/commentsClass.ts b/tests/cases/compiler/commentsClass.ts index 8823f5db6d2fb..705d605a15824 100644 --- a/tests/cases/compiler/commentsClass.ts +++ b/tests/cases/compiler/commentsClass.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @declaration: true // @removeComments: false diff --git a/tests/cases/compiler/commentsClassMembers.ts b/tests/cases/compiler/commentsClassMembers.ts index 414f560c2a74e..ec0f18c9e38e7 100644 --- a/tests/cases/compiler/commentsClassMembers.ts +++ b/tests/cases/compiler/commentsClassMembers.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @declaration: true // @removeComments: false diff --git a/tests/cases/compiler/commentsCommentParsing.ts b/tests/cases/compiler/commentsCommentParsing.ts index cffdad17fa9ec..84d3bbd7b550c 100644 --- a/tests/cases/compiler/commentsCommentParsing.ts +++ b/tests/cases/compiler/commentsCommentParsing.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: ES5 +// @target: ES5, ES2015 // @declaration: true // @removeComments: false diff --git a/tests/cases/compiler/commentsDottedModuleName.ts b/tests/cases/compiler/commentsDottedModuleName.ts index 9ec13cd088350..c7af1bb9a5f1a 100644 --- a/tests/cases/compiler/commentsDottedModuleName.ts +++ b/tests/cases/compiler/commentsDottedModuleName.ts @@ -1,5 +1,5 @@ // @module: amd -// @target: ES5 +// @target: ES5, ES2015 // @declaration: true // @removeComments: false diff --git a/tests/cases/compiler/commentsEnums.ts b/tests/cases/compiler/commentsEnums.ts index d7d654c1e72b3..bdfce7bd04c77 100644 --- a/tests/cases/compiler/commentsEnums.ts +++ b/tests/cases/compiler/commentsEnums.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @declaration: true // @removeComments: false diff --git a/tests/cases/compiler/commentsExternalModules.ts b/tests/cases/compiler/commentsExternalModules.ts index 808b717fda565..0d4738e002780 100644 --- a/tests/cases/compiler/commentsExternalModules.ts +++ b/tests/cases/compiler/commentsExternalModules.ts @@ -1,5 +1,5 @@ // @module: amd -// @target: ES5 +// @target: ES5, ES2015 // @declaration: true // @removeComments: false diff --git a/tests/cases/compiler/commentsExternalModules2.ts b/tests/cases/compiler/commentsExternalModules2.ts index 538579e8adf72..c6e5380701f74 100644 --- a/tests/cases/compiler/commentsExternalModules2.ts +++ b/tests/cases/compiler/commentsExternalModules2.ts @@ -1,5 +1,5 @@ // @module: amd -// @target: ES5 +// @target: ES5, ES2015 // @declaration: true // @removeComments: false diff --git a/tests/cases/compiler/commentsExternalModules3.ts b/tests/cases/compiler/commentsExternalModules3.ts index 07d1d4bd40ce3..6ac8536c0d399 100644 --- a/tests/cases/compiler/commentsExternalModules3.ts +++ b/tests/cases/compiler/commentsExternalModules3.ts @@ -1,5 +1,5 @@ // @module: commonjs -// @target: ES5 +// @target: ES5, ES2015 // @declaration: true // @removeComments: false diff --git a/tests/cases/compiler/commentsFormatting.ts b/tests/cases/compiler/commentsFormatting.ts index 716c8acabca17..c76f332a81219 100644 --- a/tests/cases/compiler/commentsFormatting.ts +++ b/tests/cases/compiler/commentsFormatting.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @declaration: true // @removeComments: false diff --git a/tests/cases/compiler/commentsFunction.ts b/tests/cases/compiler/commentsFunction.ts index 1b379fd15c67f..da0aeebc66a5b 100644 --- a/tests/cases/compiler/commentsFunction.ts +++ b/tests/cases/compiler/commentsFunction.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @declaration: true // @removeComments: false diff --git a/tests/cases/compiler/commentsInheritance.ts b/tests/cases/compiler/commentsInheritance.ts index 4092485176636..0d2f4c8153ddd 100644 --- a/tests/cases/compiler/commentsInheritance.ts +++ b/tests/cases/compiler/commentsInheritance.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @declaration: true // @removeComments: false diff --git a/tests/cases/compiler/commentsInterface.ts b/tests/cases/compiler/commentsInterface.ts index c2438e198a918..b660837e45481 100644 --- a/tests/cases/compiler/commentsInterface.ts +++ b/tests/cases/compiler/commentsInterface.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: ES5 +// @target: ES5, ES2015 // @declaration: true // @removeComments: false /** this is interface 1*/ diff --git a/tests/cases/compiler/commentsModules.ts b/tests/cases/compiler/commentsModules.ts index ee564087c05ef..d17f8e14033ce 100644 --- a/tests/cases/compiler/commentsModules.ts +++ b/tests/cases/compiler/commentsModules.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @declaration: true // @removeComments: false /** Module comment*/ diff --git a/tests/cases/compiler/commentsMultiModuleMultiFile.ts b/tests/cases/compiler/commentsMultiModuleMultiFile.ts index 058a6400365b0..2748b2f4a301c 100644 --- a/tests/cases/compiler/commentsMultiModuleMultiFile.ts +++ b/tests/cases/compiler/commentsMultiModuleMultiFile.ts @@ -1,5 +1,5 @@ // @module: amd -// @target: ES5 +// @target: ES5, ES2015 // @declaration: true // @removeComments: false diff --git a/tests/cases/compiler/commentsMultiModuleSingleFile.ts b/tests/cases/compiler/commentsMultiModuleSingleFile.ts index 3f7668d18af79..c1efbdb16a489 100644 --- a/tests/cases/compiler/commentsMultiModuleSingleFile.ts +++ b/tests/cases/compiler/commentsMultiModuleSingleFile.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @declaration: true // @removeComments: false diff --git a/tests/cases/compiler/commentsOnObjectLiteral3.ts b/tests/cases/compiler/commentsOnObjectLiteral3.ts index b983364bf1ffb..005fa7e06c240 100644 --- a/tests/cases/compiler/commentsOnObjectLiteral3.ts +++ b/tests/cases/compiler/commentsOnObjectLiteral3.ts @@ -1,5 +1,5 @@ // @removeComments: false -// @target: ES5 +// @target: ES5, ES2015 var v = { //property diff --git a/tests/cases/compiler/commentsOnObjectLiteral4.ts b/tests/cases/compiler/commentsOnObjectLiteral4.ts index dfb9e42b3cb26..9d951d8c7a6d1 100644 --- a/tests/cases/compiler/commentsOnObjectLiteral4.ts +++ b/tests/cases/compiler/commentsOnObjectLiteral4.ts @@ -1,5 +1,5 @@ // @removeComments: false -// @target: ES5 +// @target: ES5, ES2015 var v = { /** diff --git a/tests/cases/compiler/commentsOnObjectLiteral5.ts b/tests/cases/compiler/commentsOnObjectLiteral5.ts index 726b429a71136..a4fdb1a3c695b 100644 --- a/tests/cases/compiler/commentsOnObjectLiteral5.ts +++ b/tests/cases/compiler/commentsOnObjectLiteral5.ts @@ -1,5 +1,5 @@ // @removeComments: false -// @target: ES5 +// @target: ES5, ES2015 const a = { p0: 0, // Comment 0 diff --git a/tests/cases/compiler/commentsOnRequireStatement.ts b/tests/cases/compiler/commentsOnRequireStatement.ts index c6b319d6ddf05..ec11547918f51 100644 --- a/tests/cases/compiler/commentsOnRequireStatement.ts +++ b/tests/cases/compiler/commentsOnRequireStatement.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @module: commonjs // @Filename: 0.ts diff --git a/tests/cases/compiler/commentsOverloads.ts b/tests/cases/compiler/commentsOverloads.ts index 502c54ce10345..c0f13fad87942 100644 --- a/tests/cases/compiler/commentsOverloads.ts +++ b/tests/cases/compiler/commentsOverloads.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: ES5 +// @target: ES5, ES2015 // @declaration: true // @removeComments: false /** this is signature 1*/ diff --git a/tests/cases/compiler/commentsVarDecl.ts b/tests/cases/compiler/commentsVarDecl.ts index 23cd8766653f4..b147326bda045 100644 --- a/tests/cases/compiler/commentsVarDecl.ts +++ b/tests/cases/compiler/commentsVarDecl.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @declaration: true // @removeComments: false diff --git a/tests/cases/compiler/commentsdoNotEmitComments.ts b/tests/cases/compiler/commentsdoNotEmitComments.ts index cc9dda1fa50c2..2c69afc8a5c8e 100644 --- a/tests/cases/compiler/commentsdoNotEmitComments.ts +++ b/tests/cases/compiler/commentsdoNotEmitComments.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: ES5 +// @target: ES5, ES2015 // @declaration: true // @removeComments: true diff --git a/tests/cases/compiler/commentsemitComments.ts b/tests/cases/compiler/commentsemitComments.ts index 06c7d4db7c251..ad0e5f8c9636b 100644 --- a/tests/cases/compiler/commentsemitComments.ts +++ b/tests/cases/compiler/commentsemitComments.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: ES5 +// @target: ES5, ES2015 // @declaration: true // @removeComments: false diff --git a/tests/cases/compiler/commonJsExportTypeDeclarationError.ts b/tests/cases/compiler/commonJsExportTypeDeclarationError.ts index 4de3177256e73..1edbf091d2ae6 100644 --- a/tests/cases/compiler/commonJsExportTypeDeclarationError.ts +++ b/tests/cases/compiler/commonJsExportTypeDeclarationError.ts @@ -1,7 +1,7 @@ // @esModuleInterop: true // @checkJs: true // @module: commonjs -// @target: es5 +// @target: es5, es2015 // @outDir: ./out // @Filename: ./test.js diff --git a/tests/cases/compiler/commonjsSafeImport.ts b/tests/cases/compiler/commonjsSafeImport.ts index ce494ee54ad8e..5fc09e40c13e8 100644 --- a/tests/cases/compiler/commonjsSafeImport.ts +++ b/tests/cases/compiler/commonjsSafeImport.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @module: commonjs // @declaration: true // @filename: 10_lib.ts diff --git a/tests/cases/compiler/complexClassRelationships.ts b/tests/cases/compiler/complexClassRelationships.ts index 6630069229b3c..9deabd25b08a6 100644 --- a/tests/cases/compiler/complexClassRelationships.ts +++ b/tests/cases/compiler/complexClassRelationships.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // There should be no errors in this file class Derived extends Base { public static createEmpty(): Derived { diff --git a/tests/cases/compiler/complicatedPrivacy.ts b/tests/cases/compiler/complicatedPrivacy.ts index dc748c4832632..7726362317f41 100644 --- a/tests/cases/compiler/complicatedPrivacy.ts +++ b/tests/cases/compiler/complicatedPrivacy.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: es5 +// @target: es5, es2015 namespace m1 { export namespace m2 { diff --git a/tests/cases/compiler/computerPropertiesInES5ShouldBeTransformed.ts b/tests/cases/compiler/computerPropertiesInES5ShouldBeTransformed.ts index f4817ae707c1d..49ee185826bb0 100644 --- a/tests/cases/compiler/computerPropertiesInES5ShouldBeTransformed.ts +++ b/tests/cases/compiler/computerPropertiesInES5ShouldBeTransformed.ts @@ -1,3 +1,3 @@ // @strict: false -// @target: es5 +// @target: es5, es2015 const b = ({ [`key`]: renamed }) => renamed; \ No newline at end of file diff --git a/tests/cases/compiler/constDeclarations-es5.ts b/tests/cases/compiler/constDeclarations-es5.ts index 12da20e233fb9..52da6d740f054 100644 --- a/tests/cases/compiler/constDeclarations-es5.ts +++ b/tests/cases/compiler/constDeclarations-es5.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: ES5 +// @target: ES5, ES2015 const z7 = false; const z8: number = 23; diff --git a/tests/cases/compiler/constructorWithSuperAndPrologue.es5.ts b/tests/cases/compiler/constructorWithSuperAndPrologue.es5.ts index 1f4fc747648d6..d535fc240eb83 100644 --- a/tests/cases/compiler/constructorWithSuperAndPrologue.es5.ts +++ b/tests/cases/compiler/constructorWithSuperAndPrologue.es5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // https://github.com/microsoft/TypeScript/issues/48761 "use strict"; diff --git a/tests/cases/compiler/contextualExpressionTypecheckingDoesntBlowStack.ts b/tests/cases/compiler/contextualExpressionTypecheckingDoesntBlowStack.ts index 9abff096a7631..4d753eadae7a5 100644 --- a/tests/cases/compiler/contextualExpressionTypecheckingDoesntBlowStack.ts +++ b/tests/cases/compiler/contextualExpressionTypecheckingDoesntBlowStack.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @lib: es6 // @strict: true diff --git a/tests/cases/compiler/continueInLoopsWithCapturedBlockScopedBindings1.ts b/tests/cases/compiler/continueInLoopsWithCapturedBlockScopedBindings1.ts index 8a17435edd648..a922adb678ddc 100644 --- a/tests/cases/compiler/continueInLoopsWithCapturedBlockScopedBindings1.ts +++ b/tests/cases/compiler/continueInLoopsWithCapturedBlockScopedBindings1.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 function foo() { for (const i of [0, 1]) { if (i === 0) { diff --git a/tests/cases/compiler/convertClassExpressionToFunctionFromObjectProperty1.ts b/tests/cases/compiler/convertClassExpressionToFunctionFromObjectProperty1.ts index d2eb76eb9640c..66d8b449f653b 100644 --- a/tests/cases/compiler/convertClassExpressionToFunctionFromObjectProperty1.ts +++ b/tests/cases/compiler/convertClassExpressionToFunctionFromObjectProperty1.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 const foo: any = {}; diff --git a/tests/cases/compiler/convertClassExpressionToFunctionFromObjectProperty2.ts b/tests/cases/compiler/convertClassExpressionToFunctionFromObjectProperty2.ts index 3d1c4b34bdb83..4b2acb97124fd 100644 --- a/tests/cases/compiler/convertClassExpressionToFunctionFromObjectProperty2.ts +++ b/tests/cases/compiler/convertClassExpressionToFunctionFromObjectProperty2.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 ({ x: class { diff --git a/tests/cases/compiler/declFileAccessors.ts b/tests/cases/compiler/declFileAccessors.ts index bc41722f77d3e..741dacccae22b 100644 --- a/tests/cases/compiler/declFileAccessors.ts +++ b/tests/cases/compiler/declFileAccessors.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @declaration: true // @removeComments: false // @module: commonjs diff --git a/tests/cases/compiler/declFileCallSignatures.ts b/tests/cases/compiler/declFileCallSignatures.ts index 4225c58075524..a829209b4c02b 100644 --- a/tests/cases/compiler/declFileCallSignatures.ts +++ b/tests/cases/compiler/declFileCallSignatures.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @declaration: true // @removeComments: false // @module: commonjs diff --git a/tests/cases/compiler/declFileClassExtendsNull.ts b/tests/cases/compiler/declFileClassExtendsNull.ts index d21fd5d3805ae..879208387411a 100644 --- a/tests/cases/compiler/declFileClassExtendsNull.ts +++ b/tests/cases/compiler/declFileClassExtendsNull.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @declaration: true class ExtendsNull extends null { diff --git a/tests/cases/compiler/declFileConstructSignatures.ts b/tests/cases/compiler/declFileConstructSignatures.ts index dc2120cc1ce57..b791feb38c0d4 100644 --- a/tests/cases/compiler/declFileConstructSignatures.ts +++ b/tests/cases/compiler/declFileConstructSignatures.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: ES5 +// @target: ES5, ES2015 // @declaration: true // @removeComments: false // @module: commonjs diff --git a/tests/cases/compiler/declFileConstructors.ts b/tests/cases/compiler/declFileConstructors.ts index 8a6a8a6c473aa..809a086894486 100644 --- a/tests/cases/compiler/declFileConstructors.ts +++ b/tests/cases/compiler/declFileConstructors.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @declaration: true // @removeComments: false // @module: commonjs diff --git a/tests/cases/compiler/declFileFunctions.ts b/tests/cases/compiler/declFileFunctions.ts index a5e804940ab1f..b6dc79ac2a138 100644 --- a/tests/cases/compiler/declFileFunctions.ts +++ b/tests/cases/compiler/declFileFunctions.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: ES5 +// @target: ES5, ES2015 // @declaration: true // @removeComments: false // @module: commonjs diff --git a/tests/cases/compiler/declFileIndexSignatures.ts b/tests/cases/compiler/declFileIndexSignatures.ts index efc43f80e1fa1..1f206100a4c8d 100644 --- a/tests/cases/compiler/declFileIndexSignatures.ts +++ b/tests/cases/compiler/declFileIndexSignatures.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @declaration: true // @removeComments: false // @module: commonjs diff --git a/tests/cases/compiler/declFileMethods.ts b/tests/cases/compiler/declFileMethods.ts index 50add66d97cc9..ed77b29cd124e 100644 --- a/tests/cases/compiler/declFileMethods.ts +++ b/tests/cases/compiler/declFileMethods.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @declaration: true // @removeComments: false // @module: commonjs diff --git a/tests/cases/compiler/declFileObjectLiteralWithAccessors.ts b/tests/cases/compiler/declFileObjectLiteralWithAccessors.ts index 24b094b602d87..2653573a356b2 100644 --- a/tests/cases/compiler/declFileObjectLiteralWithAccessors.ts +++ b/tests/cases/compiler/declFileObjectLiteralWithAccessors.ts @@ -1,5 +1,5 @@ // @declaration: true -// @target: es5 +// @target: es5, es2015 function /*1*/makePoint(x: number) { return { diff --git a/tests/cases/compiler/declFileObjectLiteralWithOnlyGetter.ts b/tests/cases/compiler/declFileObjectLiteralWithOnlyGetter.ts index 79c9b581e5f77..0852846dfad84 100644 --- a/tests/cases/compiler/declFileObjectLiteralWithOnlyGetter.ts +++ b/tests/cases/compiler/declFileObjectLiteralWithOnlyGetter.ts @@ -1,5 +1,5 @@ // @declaration: true -// @target: es5 +// @target: es5, es2015 function /*1*/makePoint(x: number) { return { diff --git a/tests/cases/compiler/declFileObjectLiteralWithOnlySetter.ts b/tests/cases/compiler/declFileObjectLiteralWithOnlySetter.ts index de11cec9fe8dc..953a2910e3f2b 100644 --- a/tests/cases/compiler/declFileObjectLiteralWithOnlySetter.ts +++ b/tests/cases/compiler/declFileObjectLiteralWithOnlySetter.ts @@ -1,5 +1,5 @@ // @declaration: true -// @target: es5 +// @target: es5, es2015 function /*1*/makePoint(x: number) { return { diff --git a/tests/cases/compiler/declFilePrivateStatic.ts b/tests/cases/compiler/declFilePrivateStatic.ts index 10878218cbb23..178b31caf6050 100644 --- a/tests/cases/compiler/declFilePrivateStatic.ts +++ b/tests/cases/compiler/declFilePrivateStatic.ts @@ -1,6 +1,6 @@ // @strict: false // @declaration: true -// @target: es5 +// @target: es5, es2015 class C { private static x = 1; diff --git a/tests/cases/compiler/declFileTypeAnnotationArrayType.ts b/tests/cases/compiler/declFileTypeAnnotationArrayType.ts index 5a179596690aa..11d144e374c46 100644 --- a/tests/cases/compiler/declFileTypeAnnotationArrayType.ts +++ b/tests/cases/compiler/declFileTypeAnnotationArrayType.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @declaration: true class c { diff --git a/tests/cases/compiler/declFileTypeAnnotationBuiltInType.ts b/tests/cases/compiler/declFileTypeAnnotationBuiltInType.ts index 2ac0084e8ffe3..2149717b75b9c 100644 --- a/tests/cases/compiler/declFileTypeAnnotationBuiltInType.ts +++ b/tests/cases/compiler/declFileTypeAnnotationBuiltInType.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: ES5 +// @target: ES5, ES2015 // @declaration: true // string diff --git a/tests/cases/compiler/declFileTypeAnnotationParenType.ts b/tests/cases/compiler/declFileTypeAnnotationParenType.ts index 3ac20836c77b1..a4f45ff405749 100644 --- a/tests/cases/compiler/declFileTypeAnnotationParenType.ts +++ b/tests/cases/compiler/declFileTypeAnnotationParenType.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @declaration: true class c { diff --git a/tests/cases/compiler/declFileTypeAnnotationStringLiteral.ts b/tests/cases/compiler/declFileTypeAnnotationStringLiteral.ts index 0cdd27fd6263a..77c0a6f636f64 100644 --- a/tests/cases/compiler/declFileTypeAnnotationStringLiteral.ts +++ b/tests/cases/compiler/declFileTypeAnnotationStringLiteral.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @declaration: true function foo(a: "hello"): number; diff --git a/tests/cases/compiler/declFileTypeAnnotationTupleType.ts b/tests/cases/compiler/declFileTypeAnnotationTupleType.ts index 2df63f55004ad..4da6358972c01 100644 --- a/tests/cases/compiler/declFileTypeAnnotationTupleType.ts +++ b/tests/cases/compiler/declFileTypeAnnotationTupleType.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @declaration: true class c { diff --git a/tests/cases/compiler/declFileTypeAnnotationTypeAlias.ts b/tests/cases/compiler/declFileTypeAnnotationTypeAlias.ts index 255e69f080fd8..ca64bf6718698 100644 --- a/tests/cases/compiler/declFileTypeAnnotationTypeAlias.ts +++ b/tests/cases/compiler/declFileTypeAnnotationTypeAlias.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: ES5 +// @target: ES5, ES2015 // @module: commonjs // @declaration: true diff --git a/tests/cases/compiler/declFileTypeAnnotationTypeLiteral.ts b/tests/cases/compiler/declFileTypeAnnotationTypeLiteral.ts index 9d1ed91f3e51a..8a47370bfb772 100644 --- a/tests/cases/compiler/declFileTypeAnnotationTypeLiteral.ts +++ b/tests/cases/compiler/declFileTypeAnnotationTypeLiteral.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @declaration: true class c { diff --git a/tests/cases/compiler/declFileTypeAnnotationTypeQuery.ts b/tests/cases/compiler/declFileTypeAnnotationTypeQuery.ts index 487e9a6c97b07..82ced64452348 100644 --- a/tests/cases/compiler/declFileTypeAnnotationTypeQuery.ts +++ b/tests/cases/compiler/declFileTypeAnnotationTypeQuery.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @declaration: true class c { diff --git a/tests/cases/compiler/declFileTypeAnnotationTypeReference.ts b/tests/cases/compiler/declFileTypeAnnotationTypeReference.ts index 5e551be023d08..453ea1b017694 100644 --- a/tests/cases/compiler/declFileTypeAnnotationTypeReference.ts +++ b/tests/cases/compiler/declFileTypeAnnotationTypeReference.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @declaration: true class c { diff --git a/tests/cases/compiler/declFileTypeAnnotationUnionType.ts b/tests/cases/compiler/declFileTypeAnnotationUnionType.ts index d2a5e71a3219c..770c4c7b22c13 100644 --- a/tests/cases/compiler/declFileTypeAnnotationUnionType.ts +++ b/tests/cases/compiler/declFileTypeAnnotationUnionType.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @declaration: true class c { diff --git a/tests/cases/compiler/declFileTypeAnnotationVisibilityErrorAccessors.ts b/tests/cases/compiler/declFileTypeAnnotationVisibilityErrorAccessors.ts index ae660b97c9f7f..7448ea8f194f2 100644 --- a/tests/cases/compiler/declFileTypeAnnotationVisibilityErrorAccessors.ts +++ b/tests/cases/compiler/declFileTypeAnnotationVisibilityErrorAccessors.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @module: commonjs // @declaration: true diff --git a/tests/cases/compiler/declFileTypeAnnotationVisibilityErrorParameterOfFunction.ts b/tests/cases/compiler/declFileTypeAnnotationVisibilityErrorParameterOfFunction.ts index 06b544f26fd49..7bd53d04b9676 100644 --- a/tests/cases/compiler/declFileTypeAnnotationVisibilityErrorParameterOfFunction.ts +++ b/tests/cases/compiler/declFileTypeAnnotationVisibilityErrorParameterOfFunction.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @module: commonjs // @declaration: true diff --git a/tests/cases/compiler/declFileTypeAnnotationVisibilityErrorReturnTypeOfFunction.ts b/tests/cases/compiler/declFileTypeAnnotationVisibilityErrorReturnTypeOfFunction.ts index b5f250e1126ba..f4ec9312f1e61 100644 --- a/tests/cases/compiler/declFileTypeAnnotationVisibilityErrorReturnTypeOfFunction.ts +++ b/tests/cases/compiler/declFileTypeAnnotationVisibilityErrorReturnTypeOfFunction.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @module: commonjs // @declaration: true diff --git a/tests/cases/compiler/declFileTypeAnnotationVisibilityErrorTypeAlias.ts b/tests/cases/compiler/declFileTypeAnnotationVisibilityErrorTypeAlias.ts index 01ed209152800..10c2ce323194d 100644 --- a/tests/cases/compiler/declFileTypeAnnotationVisibilityErrorTypeAlias.ts +++ b/tests/cases/compiler/declFileTypeAnnotationVisibilityErrorTypeAlias.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: ES5 +// @target: ES5, ES2015 // @module: commonjs // @declaration: true diff --git a/tests/cases/compiler/declFileTypeAnnotationVisibilityErrorTypeLiteral.ts b/tests/cases/compiler/declFileTypeAnnotationVisibilityErrorTypeLiteral.ts index 9a32ae8e8723b..be6cd1176f856 100644 --- a/tests/cases/compiler/declFileTypeAnnotationVisibilityErrorTypeLiteral.ts +++ b/tests/cases/compiler/declFileTypeAnnotationVisibilityErrorTypeLiteral.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @module: commonjs // @declaration: true diff --git a/tests/cases/compiler/declFileTypeAnnotationVisibilityErrorVariableDeclaration.ts b/tests/cases/compiler/declFileTypeAnnotationVisibilityErrorVariableDeclaration.ts index 856abc334f530..2c13424356965 100644 --- a/tests/cases/compiler/declFileTypeAnnotationVisibilityErrorVariableDeclaration.ts +++ b/tests/cases/compiler/declFileTypeAnnotationVisibilityErrorVariableDeclaration.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @module: commonjs // @declaration: true diff --git a/tests/cases/compiler/declarationEmitClassMemberNameConflict.ts b/tests/cases/compiler/declarationEmitClassMemberNameConflict.ts index 5aa8bff365d0f..eb1609170727d 100644 --- a/tests/cases/compiler/declarationEmitClassMemberNameConflict.ts +++ b/tests/cases/compiler/declarationEmitClassMemberNameConflict.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: es5 +// @target: es5, es2015 // @module: commonjs // @declaration: true diff --git a/tests/cases/compiler/declarationEmitClassMemberNameConflict2.ts b/tests/cases/compiler/declarationEmitClassMemberNameConflict2.ts index 0c519a56226bf..821da7832ad2c 100644 --- a/tests/cases/compiler/declarationEmitClassMemberNameConflict2.ts +++ b/tests/cases/compiler/declarationEmitClassMemberNameConflict2.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: es5 +// @target: es5, es2015 // @module: commonjs // @declaration: true diff --git a/tests/cases/compiler/declarationEmitClassPrivateConstructor.ts b/tests/cases/compiler/declarationEmitClassPrivateConstructor.ts index d77360496c943..fe1908ec0bbed 100644 --- a/tests/cases/compiler/declarationEmitClassPrivateConstructor.ts +++ b/tests/cases/compiler/declarationEmitClassPrivateConstructor.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @module: commonjs // @declaration: true diff --git a/tests/cases/compiler/declarationEmitClassPrivateConstructor2.ts b/tests/cases/compiler/declarationEmitClassPrivateConstructor2.ts index 900ece84f8edb..13e837bf123bd 100644 --- a/tests/cases/compiler/declarationEmitClassPrivateConstructor2.ts +++ b/tests/cases/compiler/declarationEmitClassPrivateConstructor2.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @module: commonjs // @declaration: true diff --git a/tests/cases/compiler/declarationEmitDetachedComment1.ts b/tests/cases/compiler/declarationEmitDetachedComment1.ts index 8d49482f3cce0..691e560b2c990 100644 --- a/tests/cases/compiler/declarationEmitDetachedComment1.ts +++ b/tests/cases/compiler/declarationEmitDetachedComment1.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @module: commonjs // @declaration: true // @removeComments: false diff --git a/tests/cases/compiler/declarationEmitDetachedComment2.ts b/tests/cases/compiler/declarationEmitDetachedComment2.ts index 1eed803c625e6..fa66160b97eb5 100644 --- a/tests/cases/compiler/declarationEmitDetachedComment2.ts +++ b/tests/cases/compiler/declarationEmitDetachedComment2.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @module: commonjs // @declaration: true // @removeComments: true diff --git a/tests/cases/compiler/declarationEmitExportAssignment.ts b/tests/cases/compiler/declarationEmitExportAssignment.ts index bf9e443c85a04..336d0c043c320 100644 --- a/tests/cases/compiler/declarationEmitExportAssignment.ts +++ b/tests/cases/compiler/declarationEmitExportAssignment.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @module: commonjs // @declaration: true diff --git a/tests/cases/compiler/declarationEmitExportDeclaration.ts b/tests/cases/compiler/declarationEmitExportDeclaration.ts index c7cff923b0816..8861c2417d039 100644 --- a/tests/cases/compiler/declarationEmitExportDeclaration.ts +++ b/tests/cases/compiler/declarationEmitExportDeclaration.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @module: commonjs // @declaration: true diff --git a/tests/cases/compiler/declarationEmitModuleWithScopeMarker.ts b/tests/cases/compiler/declarationEmitModuleWithScopeMarker.ts index e5f173154bcc6..83b8fb0c45aec 100644 --- a/tests/cases/compiler/declarationEmitModuleWithScopeMarker.ts +++ b/tests/cases/compiler/declarationEmitModuleWithScopeMarker.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @module: commonjs // @declaration: true diff --git a/tests/cases/compiler/declarationEmitPrefersPathKindBasedOnBundling.ts b/tests/cases/compiler/declarationEmitPrefersPathKindBasedOnBundling.ts index 4bb09d93c4486..b26cc8491d958 100644 --- a/tests/cases/compiler/declarationEmitPrefersPathKindBasedOnBundling.ts +++ b/tests/cases/compiler/declarationEmitPrefersPathKindBasedOnBundling.ts @@ -1,5 +1,5 @@ // @declaration: true -// @target: es5 +// @target: es5, es2015 // @baseUrl: . // @outDir: ./dist // @rootDir: ./src diff --git a/tests/cases/compiler/declarationEmitPrefersPathKindBasedOnBundling2.ts b/tests/cases/compiler/declarationEmitPrefersPathKindBasedOnBundling2.ts index ad40e87fffe32..5df3bb60d7129 100644 --- a/tests/cases/compiler/declarationEmitPrefersPathKindBasedOnBundling2.ts +++ b/tests/cases/compiler/declarationEmitPrefersPathKindBasedOnBundling2.ts @@ -1,5 +1,5 @@ // @declaration: true -// @target: es5 +// @target: es5, es2015 // @baseUrl: . // @module: amd // @outFile: ./dist.js diff --git a/tests/cases/compiler/declarationEmitProtectedMembers.ts b/tests/cases/compiler/declarationEmitProtectedMembers.ts index c48f0afbd78ed..3bf8d365713de 100644 --- a/tests/cases/compiler/declarationEmitProtectedMembers.ts +++ b/tests/cases/compiler/declarationEmitProtectedMembers.ts @@ -1,6 +1,6 @@ // @strict: false // @declaration: true -// @target: es5 +// @target: es5, es2015 // Class with protected members class C1 { diff --git a/tests/cases/compiler/declarationEmitSymlinkPaths.ts b/tests/cases/compiler/declarationEmitSymlinkPaths.ts index c808f17ec880c..5011f2d78c18a 100644 --- a/tests/cases/compiler/declarationEmitSymlinkPaths.ts +++ b/tests/cases/compiler/declarationEmitSymlinkPaths.ts @@ -1,7 +1,7 @@ // @declaration: true // @outDir: /packages/search-prefix/lib // @rootDir: /packages/search-prefix/src -// @target: es5 +// @target: es5, es2015 // @filename: /packages/search/package.json { "name": "search", diff --git a/tests/cases/compiler/declarationEmitUnknownImport.ts b/tests/cases/compiler/declarationEmitUnknownImport.ts index 9f6344322bcc3..ac9a34a1b60f3 100644 --- a/tests/cases/compiler/declarationEmitUnknownImport.ts +++ b/tests/cases/compiler/declarationEmitUnknownImport.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @module: commonjs // @declaration: true diff --git a/tests/cases/compiler/declarationEmitUnknownImport2.ts b/tests/cases/compiler/declarationEmitUnknownImport2.ts index 035d1d860c590..fe294d047a6cb 100644 --- a/tests/cases/compiler/declarationEmitUnknownImport2.ts +++ b/tests/cases/compiler/declarationEmitUnknownImport2.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @module: commonjs // @declaration: true diff --git a/tests/cases/compiler/declarationEmitUnnessesaryTypeReferenceNotAdded.ts b/tests/cases/compiler/declarationEmitUnnessesaryTypeReferenceNotAdded.ts index 5247514dc6fc9..0b0c338c12926 100644 --- a/tests/cases/compiler/declarationEmitUnnessesaryTypeReferenceNotAdded.ts +++ b/tests/cases/compiler/declarationEmitUnnessesaryTypeReferenceNotAdded.ts @@ -1,5 +1,5 @@ // @declaration: true -// @target: es5 +// @target: es5, es2015 // @module: commonjs // @strict: true // @noImplicitReferences: true diff --git a/tests/cases/compiler/declarationEmitWithDefaultAsComputedName.ts b/tests/cases/compiler/declarationEmitWithDefaultAsComputedName.ts index 868bad4484783..9b53c950b86e7 100644 --- a/tests/cases/compiler/declarationEmitWithDefaultAsComputedName.ts +++ b/tests/cases/compiler/declarationEmitWithDefaultAsComputedName.ts @@ -1,5 +1,5 @@ // @declaration: true -// @target: es5 +// @target: es5, es2015 // @filename: other.ts type Experiment = { diff --git a/tests/cases/compiler/declarationEmitWithDefaultAsComputedName2.ts b/tests/cases/compiler/declarationEmitWithDefaultAsComputedName2.ts index 8feeaa2fa61dc..fd068080811f1 100644 --- a/tests/cases/compiler/declarationEmitWithDefaultAsComputedName2.ts +++ b/tests/cases/compiler/declarationEmitWithDefaultAsComputedName2.ts @@ -1,5 +1,5 @@ // @declaration: true -// @target: es5 +// @target: es5, es2015 // @filename: other.ts type Experiment = { diff --git a/tests/cases/compiler/decoratorMetadataForMethodWithNoReturnTypeAnnotation01.ts b/tests/cases/compiler/decoratorMetadataForMethodWithNoReturnTypeAnnotation01.ts index b47474fdd744e..652f62783cdd3 100644 --- a/tests/cases/compiler/decoratorMetadataForMethodWithNoReturnTypeAnnotation01.ts +++ b/tests/cases/compiler/decoratorMetadataForMethodWithNoReturnTypeAnnotation01.ts @@ -1,7 +1,7 @@ // @noemithelpers: true // @experimentaldecorators: true // @emitdecoratormetadata: true -// @target: es5 +// @target: es5, es2015 declare var decorator: any; diff --git a/tests/cases/compiler/decoratorMetadataOnInferredType.ts b/tests/cases/compiler/decoratorMetadataOnInferredType.ts index 170afe3b3e5b0..291163c8ee2d6 100644 --- a/tests/cases/compiler/decoratorMetadataOnInferredType.ts +++ b/tests/cases/compiler/decoratorMetadataOnInferredType.ts @@ -1,7 +1,7 @@ -// @noemithelpers: true -// @experimentaldecorators: true -// @emitdecoratormetadata: true -// @target: es5 +// @noemithelpers: true +// @experimentaldecorators: true +// @emitdecoratormetadata: true +// @target: es5, es2015 // @module: commonjs declare var console: { @@ -18,4 +18,4 @@ function decorator(target: Object, propertyKey: string) { export class B { @decorator x = new A(); -} +} diff --git a/tests/cases/compiler/decoratorMetadataRestParameterWithImportedType.ts b/tests/cases/compiler/decoratorMetadataRestParameterWithImportedType.ts index 3bc22df89284c..cb74b08214b3d 100644 --- a/tests/cases/compiler/decoratorMetadataRestParameterWithImportedType.ts +++ b/tests/cases/compiler/decoratorMetadataRestParameterWithImportedType.ts @@ -1,6 +1,6 @@ // @experimentalDecorators: true // @emitDecoratorMetadata: true -// @target: es5 +// @target: es5, es2015 // @filename: aux.ts export class SomeClass { diff --git a/tests/cases/compiler/decoratorMetadataWithConstructorType.ts b/tests/cases/compiler/decoratorMetadataWithConstructorType.ts index 31c42ee9b437b..1ac45054f745b 100644 --- a/tests/cases/compiler/decoratorMetadataWithConstructorType.ts +++ b/tests/cases/compiler/decoratorMetadataWithConstructorType.ts @@ -1,7 +1,7 @@ -// @noemithelpers: true -// @experimentaldecorators: true -// @emitdecoratormetadata: true -// @target: es5 +// @noemithelpers: true +// @experimentaldecorators: true +// @emitdecoratormetadata: true +// @target: es5, es2015 // @module: commonjs declare var console: { @@ -18,4 +18,4 @@ function decorator(target: Object, propertyKey: string) { export class B { @decorator x: A = new A(); -} +} diff --git a/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision.ts b/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision.ts index b9fccbd42ca2f..ae3425f7a599b 100644 --- a/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision.ts +++ b/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision.ts @@ -1,8 +1,8 @@ -// @strict: false -// @noemithelpers: true -// @experimentaldecorators: true -// @emitdecoratormetadata: true -// @target: es5 +// @strict: false +// @noemithelpers: true +// @experimentaldecorators: true +// @emitdecoratormetadata: true +// @target: es5, es2015 // @module: commonjs // @filename: db.ts export class db { @@ -24,4 +24,4 @@ class MyClass { this.db.doSomething(); } } -export {MyClass}; +export {MyClass}; diff --git a/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision2.ts b/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision2.ts index fe41f67353d14..eeac392d157ec 100644 --- a/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision2.ts +++ b/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision2.ts @@ -1,8 +1,8 @@ -// @strict: false -// @noemithelpers: true -// @experimentaldecorators: true -// @emitdecoratormetadata: true -// @target: es5 +// @strict: false +// @noemithelpers: true +// @experimentaldecorators: true +// @emitdecoratormetadata: true +// @target: es5, es2015 // @module: commonjs // @filename: db.ts export class db { @@ -24,4 +24,4 @@ class MyClass { this.db.doSomething(); } } -export {MyClass}; +export {MyClass}; diff --git a/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision3.ts b/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision3.ts index 0f1bf86aa352b..a8ae5f3eac97a 100644 --- a/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision3.ts +++ b/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision3.ts @@ -1,8 +1,8 @@ -// @strict: false -// @noemithelpers: true -// @experimentaldecorators: true +// @strict: false +// @noemithelpers: true +// @experimentaldecorators: true // @emitdecoratormetadata: true -// @target: es5 +// @target: es5, es2015 // @module: commonjs // @filename: db.ts export class db { @@ -24,4 +24,4 @@ class MyClass { this.db.doSomething(); } } -export {MyClass}; +export {MyClass}; diff --git a/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision4.ts b/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision4.ts index b1adf25a05593..fe88b9158adcb 100644 --- a/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision4.ts +++ b/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision4.ts @@ -1,8 +1,8 @@ -// @strict: false -// @noemithelpers: true -// @experimentaldecorators: true +// @strict: false +// @noemithelpers: true +// @experimentaldecorators: true // @emitdecoratormetadata: true -// @target: es5 +// @target: es5, es2015 // @module: commonjs // @filename: db.ts export class db { @@ -24,4 +24,4 @@ class MyClass { this.db.doSomething(); } } -export {MyClass}; +export {MyClass}; diff --git a/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision5.ts b/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision5.ts index bec73c38baa6f..839fd961347d2 100644 --- a/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision5.ts +++ b/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision5.ts @@ -1,8 +1,8 @@ -// @strict: false -// @noemithelpers: true -// @experimentaldecorators: true +// @strict: false +// @noemithelpers: true +// @experimentaldecorators: true // @emitdecoratormetadata: true -// @target: es5 +// @target: es5, es2015 // @module: commonjs // @filename: db.ts export default class db { @@ -24,4 +24,4 @@ class MyClass { this.db.doSomething(); } } -export {MyClass}; +export {MyClass}; diff --git a/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision6.ts b/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision6.ts index 9b4e54f63dd7d..2b37e4d421807 100644 --- a/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision6.ts +++ b/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision6.ts @@ -1,8 +1,8 @@ -// @strict: false -// @noemithelpers: true -// @experimentaldecorators: true +// @strict: false +// @noemithelpers: true +// @experimentaldecorators: true // @emitdecoratormetadata: true -// @target: es5 +// @target: es5, es2015 // @module: commonjs // @filename: db.ts export default class db { @@ -24,4 +24,4 @@ class MyClass { this.db.doSomething(); } } -export {MyClass}; +export {MyClass}; diff --git a/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision7.ts b/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision7.ts index dac2ca67b0cea..638038f2745de 100644 --- a/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision7.ts +++ b/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision7.ts @@ -1,8 +1,8 @@ -// @strict: false -// @noemithelpers: true -// @experimentaldecorators: true +// @strict: false +// @noemithelpers: true +// @experimentaldecorators: true // @emitdecoratormetadata: true -// @target: es5 +// @target: es5, es2015 // @module: commonjs // @filename: db.ts export default class db { @@ -24,4 +24,4 @@ class MyClass { this.db.doSomething(); } } -export {MyClass}; +export {MyClass}; diff --git a/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision8.ts b/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision8.ts index f2b14890acd9d..d63e724907ede 100644 --- a/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision8.ts +++ b/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision8.ts @@ -1,8 +1,8 @@ -// @strict: false -// @noemithelpers: true -// @experimentaldecorators: true +// @strict: false +// @noemithelpers: true +// @experimentaldecorators: true // @emitdecoratormetadata: true -// @target: es5 +// @target: es5, es2015 // @module: commonjs // @filename: db.ts export class db { @@ -24,4 +24,4 @@ class MyClass { this.db.doSomething(); } } -export {MyClass}; +export {MyClass}; diff --git a/tests/cases/compiler/decoratorWithNegativeLiteralTypeNoCrash.ts b/tests/cases/compiler/decoratorWithNegativeLiteralTypeNoCrash.ts index 720b68a7c1655..e4a49bf9134cc 100644 --- a/tests/cases/compiler/decoratorWithNegativeLiteralTypeNoCrash.ts +++ b/tests/cases/compiler/decoratorWithNegativeLiteralTypeNoCrash.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @experimentalDecorators: true // @emitDecoratorMetadata: true class A { diff --git a/tests/cases/compiler/derivedClassConstructorWithExplicitReturns01.ts b/tests/cases/compiler/derivedClassConstructorWithExplicitReturns01.ts index 2475eac0bb2d3..f6752f0e14912 100644 --- a/tests/cases/compiler/derivedClassConstructorWithExplicitReturns01.ts +++ b/tests/cases/compiler/derivedClassConstructorWithExplicitReturns01.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @sourcemap: true class C { diff --git a/tests/cases/compiler/divergentAccessorsTypes3.ts b/tests/cases/compiler/divergentAccessorsTypes3.ts index 557c73153ce90..fe1c8ea55cacb 100644 --- a/tests/cases/compiler/divergentAccessorsTypes3.ts +++ b/tests/cases/compiler/divergentAccessorsTypes3.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 class One { get prop1(): string { return ""; } diff --git a/tests/cases/compiler/divergentAccessorsTypes4.ts b/tests/cases/compiler/divergentAccessorsTypes4.ts index 802a1b4d2c63c..387ddac0a313f 100644 --- a/tests/cases/compiler/divergentAccessorsTypes4.ts +++ b/tests/cases/compiler/divergentAccessorsTypes4.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 class One { get prop1(): string { return ""; } diff --git a/tests/cases/compiler/divergentAccessorsTypes5.ts b/tests/cases/compiler/divergentAccessorsTypes5.ts index 54d1099004a17..1748044a97006 100644 --- a/tests/cases/compiler/divergentAccessorsTypes5.ts +++ b/tests/cases/compiler/divergentAccessorsTypes5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // Not really different from divergentAccessorsTypes4.ts, // but goes through the deferred type code diff --git a/tests/cases/compiler/doNotElaborateAssignabilityToTypeParameters.ts b/tests/cases/compiler/doNotElaborateAssignabilityToTypeParameters.ts index 58845a01fc174..02349555a37c5 100644 --- a/tests/cases/compiler/doNotElaborateAssignabilityToTypeParameters.ts +++ b/tests/cases/compiler/doNotElaborateAssignabilityToTypeParameters.ts @@ -1,5 +1,5 @@ // @lib: es2015 -// @target: ES5 +// @target: ES5, ES2015 async function foo(x: T): Promise { let yaddable = await getXOrYadda(x); return yaddable; diff --git a/tests/cases/compiler/downlevelLetConst12.ts b/tests/cases/compiler/downlevelLetConst12.ts index 5acefcdf7bf49..d92a39d541599 100644 --- a/tests/cases/compiler/downlevelLetConst12.ts +++ b/tests/cases/compiler/downlevelLetConst12.ts @@ -1,4 +1,4 @@ -// @target:es5 +// @target:es5, es2015 'use strict' // top level let\const should not be renamed diff --git a/tests/cases/compiler/downlevelLetConst13.ts b/tests/cases/compiler/downlevelLetConst13.ts index 7332bcdf184e8..8eb336ef77add 100644 --- a/tests/cases/compiler/downlevelLetConst13.ts +++ b/tests/cases/compiler/downlevelLetConst13.ts @@ -1,4 +1,4 @@ -// @target:es5 +// @target:es5, es2015 // @module: commonjs 'use strict' diff --git a/tests/cases/compiler/downlevelLetConst14.ts b/tests/cases/compiler/downlevelLetConst14.ts index 9f003bc3ff954..ee2af89e8c951 100644 --- a/tests/cases/compiler/downlevelLetConst14.ts +++ b/tests/cases/compiler/downlevelLetConst14.ts @@ -1,5 +1,5 @@ // @strict: false -// @target:es5 +// @target:es5, es2015 'use strict' declare function use(a: any); diff --git a/tests/cases/compiler/downlevelLetConst15.ts b/tests/cases/compiler/downlevelLetConst15.ts index 3468b1cba8d5b..5c01023e99d22 100644 --- a/tests/cases/compiler/downlevelLetConst15.ts +++ b/tests/cases/compiler/downlevelLetConst15.ts @@ -1,5 +1,5 @@ // @strict: false -// @target:es5 +// @target:es5, es2015 'use strict' declare function use(a: any); diff --git a/tests/cases/compiler/downlevelLetConst16.ts b/tests/cases/compiler/downlevelLetConst16.ts index 77d5147bacd7b..06cd2df57be67 100644 --- a/tests/cases/compiler/downlevelLetConst16.ts +++ b/tests/cases/compiler/downlevelLetConst16.ts @@ -1,5 +1,5 @@ // @strict: false -// @target:es5 +// @target:es5, es2015 // @allowUnreachableCode: true 'use strict' diff --git a/tests/cases/compiler/downlevelLetConst17.ts b/tests/cases/compiler/downlevelLetConst17.ts index 82f594c9a2b3e..7f0ddc6e9b3e6 100644 --- a/tests/cases/compiler/downlevelLetConst17.ts +++ b/tests/cases/compiler/downlevelLetConst17.ts @@ -1,5 +1,5 @@ // @strict: false -// @target:es5 +// @target:es5, es2015 // @allowUnreachableCode: true 'use strict' diff --git a/tests/cases/compiler/downlevelLetConst18.ts b/tests/cases/compiler/downlevelLetConst18.ts index 585f15acf8ca6..0344afba5421f 100644 --- a/tests/cases/compiler/downlevelLetConst18.ts +++ b/tests/cases/compiler/downlevelLetConst18.ts @@ -1,5 +1,5 @@ // @strict: false -// @target:es5 +// @target:es5, es2015 // @allowUnreachableCode: true 'use strict' diff --git a/tests/cases/compiler/duplicateIdentifierBindingElementInParameterDeclaration1.ts b/tests/cases/compiler/duplicateIdentifierBindingElementInParameterDeclaration1.ts index 9d4a2331b4518..7dbef8f911d9b 100644 --- a/tests/cases/compiler/duplicateIdentifierBindingElementInParameterDeclaration1.ts +++ b/tests/cases/compiler/duplicateIdentifierBindingElementInParameterDeclaration1.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 function f0(a, [a, [b]], {b}) { } function f1([a, a]) { } diff --git a/tests/cases/compiler/duplicateIdentifierBindingElementInParameterDeclaration2.ts b/tests/cases/compiler/duplicateIdentifierBindingElementInParameterDeclaration2.ts index f42e490dae1aa..543261a953517 100644 --- a/tests/cases/compiler/duplicateIdentifierBindingElementInParameterDeclaration2.ts +++ b/tests/cases/compiler/duplicateIdentifierBindingElementInParameterDeclaration2.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 "use strict" function f0(a, [a, [b]], {b}) { } diff --git a/tests/cases/compiler/duplicateObjectLiteralProperty.ts b/tests/cases/compiler/duplicateObjectLiteralProperty.ts index 2591e6dd78a32..e7cdb4dbeda2d 100644 --- a/tests/cases/compiler/duplicateObjectLiteralProperty.ts +++ b/tests/cases/compiler/duplicateObjectLiteralProperty.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 var x = { a: 1, b: true, // OK diff --git a/tests/cases/compiler/dynamicImportWithNestedThis_es5.ts b/tests/cases/compiler/dynamicImportWithNestedThis_es5.ts index 5740c3f669456..2fac87daa29e4 100644 --- a/tests/cases/compiler/dynamicImportWithNestedThis_es5.ts +++ b/tests/cases/compiler/dynamicImportWithNestedThis_es5.ts @@ -1,5 +1,5 @@ // @lib: es2015 -// @target: es5 +// @target: es5, es2015 // @module: umd // https://github.com/Microsoft/TypeScript/issues/17564 class C { diff --git a/tests/cases/compiler/emitAccessExpressionOfCastedObjectLiteralExpressionInArrowFunctionES5.ts b/tests/cases/compiler/emitAccessExpressionOfCastedObjectLiteralExpressionInArrowFunctionES5.ts index 31c7face08dbd..b338203dfe41c 100644 --- a/tests/cases/compiler/emitAccessExpressionOfCastedObjectLiteralExpressionInArrowFunctionES5.ts +++ b/tests/cases/compiler/emitAccessExpressionOfCastedObjectLiteralExpressionInArrowFunctionES5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 (x) => ({ "1": "one", "2": "two" } as { [key: string]: string })[x]; (x) => ({ "1": "one", "2": "two" } as { [key: string]: string }).x; \ No newline at end of file diff --git a/tests/cases/compiler/emitBundleWithPrologueDirectives1.ts b/tests/cases/compiler/emitBundleWithPrologueDirectives1.ts index 6117c80dbdb5b..1a76e64a02d5d 100644 --- a/tests/cases/compiler/emitBundleWithPrologueDirectives1.ts +++ b/tests/cases/compiler/emitBundleWithPrologueDirectives1.ts @@ -1,6 +1,6 @@ // @outFile: outFile.js // @module: amd -// @target: es5 +// @target: es5, es2015 // @Filename: test.ts /* Detached Comment */ diff --git a/tests/cases/compiler/emitBundleWithShebang1.ts b/tests/cases/compiler/emitBundleWithShebang1.ts index 7eefb0a520309..08c7ef8825de7 100644 --- a/tests/cases/compiler/emitBundleWithShebang1.ts +++ b/tests/cases/compiler/emitBundleWithShebang1.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @outFile: outFile.js // @module: amd diff --git a/tests/cases/compiler/emitBundleWithShebang2.ts b/tests/cases/compiler/emitBundleWithShebang2.ts index 52c446b1d0893..61ea20ca444e9 100644 --- a/tests/cases/compiler/emitBundleWithShebang2.ts +++ b/tests/cases/compiler/emitBundleWithShebang2.ts @@ -1,6 +1,6 @@ // @outFile: outFile.js // @module: amd -// @target: es5 +// @target: es5, es2015 // @Filename: test.ts #!/usr/bin/env gjs diff --git a/tests/cases/compiler/emitBundleWithShebangAndPrologueDirectives1.ts b/tests/cases/compiler/emitBundleWithShebangAndPrologueDirectives1.ts index 687db1596707f..76e2b8efc0df3 100644 --- a/tests/cases/compiler/emitBundleWithShebangAndPrologueDirectives1.ts +++ b/tests/cases/compiler/emitBundleWithShebangAndPrologueDirectives1.ts @@ -1,6 +1,6 @@ // @outFile: outFile.js // @module: amd -// @target: es5 +// @target: es5, es2015 // @Filename: test.ts #!/usr/bin/env gjs diff --git a/tests/cases/compiler/emitBundleWithShebangAndPrologueDirectives2.ts b/tests/cases/compiler/emitBundleWithShebangAndPrologueDirectives2.ts index 435cad7c05428..bb30b0236ce6d 100644 --- a/tests/cases/compiler/emitBundleWithShebangAndPrologueDirectives2.ts +++ b/tests/cases/compiler/emitBundleWithShebangAndPrologueDirectives2.ts @@ -1,6 +1,6 @@ // @outFile: outFile.js // @module: amd -// @target: es5 +// @target: es5, es2015 // @Filename: test.ts #!/usr/bin/env gjs diff --git a/tests/cases/compiler/emitDecoratorMetadata_object.ts b/tests/cases/compiler/emitDecoratorMetadata_object.ts index d1bdc0c7c6b2e..0bfcf61a88f1c 100644 --- a/tests/cases/compiler/emitDecoratorMetadata_object.ts +++ b/tests/cases/compiler/emitDecoratorMetadata_object.ts @@ -1,6 +1,6 @@ // @experimentaldecorators: true // @emitdecoratormetadata: true -// @target: ES5 +// @target: ES5, ES2015 declare const MyClassDecorator: ClassDecorator; declare const MyMethodDecorator: MethodDecorator; diff --git a/tests/cases/compiler/emitDecoratorMetadata_restArgs.ts b/tests/cases/compiler/emitDecoratorMetadata_restArgs.ts index 1835876780fe3..e94254adc8fd7 100644 --- a/tests/cases/compiler/emitDecoratorMetadata_restArgs.ts +++ b/tests/cases/compiler/emitDecoratorMetadata_restArgs.ts @@ -1,7 +1,7 @@ // @strict: false // @experimentaldecorators: true // @emitdecoratormetadata: true -// @target: ES5 +// @target: ES5, ES2015 declare const MyClassDecorator: ClassDecorator; declare const MyMethodDecorator: MethodDecorator; diff --git a/tests/cases/compiler/emitThisInObjectLiteralGetter.ts b/tests/cases/compiler/emitThisInObjectLiteralGetter.ts index 4d6001f95e09d..bae8f0a5424e8 100644 --- a/tests/cases/compiler/emitThisInObjectLiteralGetter.ts +++ b/tests/cases/compiler/emitThisInObjectLiteralGetter.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: es5 +// @target: es5, es2015 const example = { get foo() { return item => this.bar(item); diff --git a/tests/cases/compiler/emptyFile-declaration.ts b/tests/cases/compiler/emptyFile-declaration.ts index 686d5ff058d7f..f3500856fdeba 100644 --- a/tests/cases/compiler/emptyFile-declaration.ts +++ b/tests/cases/compiler/emptyFile-declaration.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @sourcemap: false // @declaration: true // @module: commonjs \ No newline at end of file diff --git a/tests/cases/compiler/emptyFile-souremap.ts b/tests/cases/compiler/emptyFile-souremap.ts index 0f7b53c529c9a..68f4d847bff6a 100644 --- a/tests/cases/compiler/emptyFile-souremap.ts +++ b/tests/cases/compiler/emptyFile-souremap.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @sourcemap: true // @declaration: false // @module: commonjs \ No newline at end of file diff --git a/tests/cases/compiler/errorsOnImportedSymbol.ts b/tests/cases/compiler/errorsOnImportedSymbol.ts index b3da9da162ec0..1f5ddd16fa81a 100644 --- a/tests/cases/compiler/errorsOnImportedSymbol.ts +++ b/tests/cases/compiler/errorsOnImportedSymbol.ts @@ -1,5 +1,5 @@ // @module: commonjs -// @target: ES5 +// @target: ES5, ES2015 // @Filename: errorsOnImportedSymbol_0.ts interface Sammy { diff --git a/tests/cases/compiler/es5-amd.ts b/tests/cases/compiler/es5-amd.ts index fd7b689ce6712..d08eb5ae14996 100644 --- a/tests/cases/compiler/es5-amd.ts +++ b/tests/cases/compiler/es5-amd.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @sourcemap: false // @declaration: false // @module: amd diff --git a/tests/cases/compiler/es5-asyncFunction.ts b/tests/cases/compiler/es5-asyncFunction.ts index 9496f393c0164..1460fee2f2345 100644 --- a/tests/cases/compiler/es5-asyncFunction.ts +++ b/tests/cases/compiler/es5-asyncFunction.ts @@ -1,6 +1,6 @@ // @strict: false // @lib: es5,es2015.promise -// @target: ES5 +// @target: ES5, ES2015 declare var x; async function empty() { diff --git a/tests/cases/compiler/es5-asyncFunctionArrayLiterals.ts b/tests/cases/compiler/es5-asyncFunctionArrayLiterals.ts index 462e516b426fd..4555a2b3f552e 100644 --- a/tests/cases/compiler/es5-asyncFunctionArrayLiterals.ts +++ b/tests/cases/compiler/es5-asyncFunctionArrayLiterals.ts @@ -1,7 +1,7 @@ // @strict: false // @lib: es5,es2015.promise // @noEmitHelpers: true -// @target: ES5 +// @target: ES5, ES2015 declare var x, y, z, a; async function arrayLiteral0() { diff --git a/tests/cases/compiler/es5-asyncFunctionBinaryExpressions.ts b/tests/cases/compiler/es5-asyncFunctionBinaryExpressions.ts index d1678c5fcacd0..cc529be21934d 100644 --- a/tests/cases/compiler/es5-asyncFunctionBinaryExpressions.ts +++ b/tests/cases/compiler/es5-asyncFunctionBinaryExpressions.ts @@ -2,7 +2,7 @@ // @lib: es5,es2015.promise // @noEmitHelpers: true // @allowUnreachableCode: true -// @target: ES5 +// @target: ES5, ES2015 declare var x, y, z, a, b, c; async function binaryPlus0() { diff --git a/tests/cases/compiler/es5-asyncFunctionCallExpressions.ts b/tests/cases/compiler/es5-asyncFunctionCallExpressions.ts index 8cdb107df8ae2..2104a97ef1190 100644 --- a/tests/cases/compiler/es5-asyncFunctionCallExpressions.ts +++ b/tests/cases/compiler/es5-asyncFunctionCallExpressions.ts @@ -1,7 +1,7 @@ // @strict: false // @lib: es5,es2015.promise // @noEmitHelpers: true -// @target: ES5 +// @target: ES5, ES2015 declare var x, y, z, a, b, c; async function callExpression0() { diff --git a/tests/cases/compiler/es5-asyncFunctionConditionals.ts b/tests/cases/compiler/es5-asyncFunctionConditionals.ts index c8a5708be7f23..8645a9bc6c593 100644 --- a/tests/cases/compiler/es5-asyncFunctionConditionals.ts +++ b/tests/cases/compiler/es5-asyncFunctionConditionals.ts @@ -1,7 +1,7 @@ // @strict: false // @lib: es5,es2015.promise // @noEmitHelpers: true -// @target: ES5 +// @target: ES5, ES2015 declare var x, y, z, a, b, c; async function conditional0() { diff --git a/tests/cases/compiler/es5-asyncFunctionDoStatements.ts b/tests/cases/compiler/es5-asyncFunctionDoStatements.ts index 32a680c55158a..ded636f9763a1 100644 --- a/tests/cases/compiler/es5-asyncFunctionDoStatements.ts +++ b/tests/cases/compiler/es5-asyncFunctionDoStatements.ts @@ -1,7 +1,7 @@ // @strict: false // @lib: es5,es2015.promise // @noEmitHelpers: true -// @target: ES5 +// @target: ES5, ES2015 declare var x, y, z, a, b, c; async function doStatement0() { diff --git a/tests/cases/compiler/es5-asyncFunctionElementAccess.ts b/tests/cases/compiler/es5-asyncFunctionElementAccess.ts index 86f831122d4f7..8c86063f01a89 100644 --- a/tests/cases/compiler/es5-asyncFunctionElementAccess.ts +++ b/tests/cases/compiler/es5-asyncFunctionElementAccess.ts @@ -1,7 +1,7 @@ // @strict: false // @lib: es5,es2015.promise // @noEmitHelpers: true -// @target: ES5 +// @target: ES5, ES2015 declare var x, y, z, a, b, c; async function elementAccess0() { diff --git a/tests/cases/compiler/es5-asyncFunctionForInStatements.ts b/tests/cases/compiler/es5-asyncFunctionForInStatements.ts index 6d38b35d41d68..72115f9273145 100644 --- a/tests/cases/compiler/es5-asyncFunctionForInStatements.ts +++ b/tests/cases/compiler/es5-asyncFunctionForInStatements.ts @@ -1,7 +1,7 @@ // @strict: false // @lib: es5,es2015.promise // @noEmitHelpers: true -// @target: ES5 +// @target: ES5, ES2015 declare var x, y, z, a, b, c; async function forInStatement0() { diff --git a/tests/cases/compiler/es5-asyncFunctionForOfStatements.ts b/tests/cases/compiler/es5-asyncFunctionForOfStatements.ts index c3a949a237aad..531c62be619e7 100644 --- a/tests/cases/compiler/es5-asyncFunctionForOfStatements.ts +++ b/tests/cases/compiler/es5-asyncFunctionForOfStatements.ts @@ -1,7 +1,7 @@ // @strict: false // @lib: es5,es2015.promise // @noEmitHelpers: true -// @target: ES5 +// @target: ES5, ES2015 declare var x, y, z, a, b, c; async function forOfStatement0() { diff --git a/tests/cases/compiler/es5-asyncFunctionForStatements.ts b/tests/cases/compiler/es5-asyncFunctionForStatements.ts index e011b49af9f67..5a58540e772fb 100644 --- a/tests/cases/compiler/es5-asyncFunctionForStatements.ts +++ b/tests/cases/compiler/es5-asyncFunctionForStatements.ts @@ -1,7 +1,7 @@ // @strict: false // @lib: es5,es2015.promise // @noEmitHelpers: true -// @target: ES5 +// @target: ES5, ES2015 declare var x, y, z, a, b, c; async function forStatement0() { diff --git a/tests/cases/compiler/es5-asyncFunctionHoisting.ts b/tests/cases/compiler/es5-asyncFunctionHoisting.ts index 6f217181558a0..c910c39096165 100644 --- a/tests/cases/compiler/es5-asyncFunctionHoisting.ts +++ b/tests/cases/compiler/es5-asyncFunctionHoisting.ts @@ -1,7 +1,7 @@ // @strict: false // @lib: es5,es2015.promise // @noEmitHelpers: true -// @target: ES5 +// @target: ES5, ES2015 declare var y; async function hoisting() { diff --git a/tests/cases/compiler/es5-asyncFunctionIfStatements.ts b/tests/cases/compiler/es5-asyncFunctionIfStatements.ts index fa9f9911b5df1..a5afc408076bc 100644 --- a/tests/cases/compiler/es5-asyncFunctionIfStatements.ts +++ b/tests/cases/compiler/es5-asyncFunctionIfStatements.ts @@ -1,7 +1,7 @@ // @strict: false // @lib: es5,es2015.promise // @noEmitHelpers: true -// @target: ES5 +// @target: ES5, ES2015 declare var x, y, z, a, b, c; async function ifStatement1() { diff --git a/tests/cases/compiler/es5-asyncFunctionLongObjectLiteral.ts b/tests/cases/compiler/es5-asyncFunctionLongObjectLiteral.ts index e062de41ded35..f80c8dbd9ca07 100644 --- a/tests/cases/compiler/es5-asyncFunctionLongObjectLiteral.ts +++ b/tests/cases/compiler/es5-asyncFunctionLongObjectLiteral.ts @@ -1,6 +1,6 @@ // @strict: false // @lib: es5,es2015.promise -// @target: ES5 +// @target: ES5, ES2015 // the generated code from both should be similar diff --git a/tests/cases/compiler/es5-asyncFunctionNestedLoops.ts b/tests/cases/compiler/es5-asyncFunctionNestedLoops.ts index 1c8652b4a58f8..4c8dfc38f4e0b 100644 --- a/tests/cases/compiler/es5-asyncFunctionNestedLoops.ts +++ b/tests/cases/compiler/es5-asyncFunctionNestedLoops.ts @@ -1,7 +1,7 @@ // @strict: false // @lib: es5,es2015.promise // @noEmitHelpers: true -// @target: ES5 +// @target: ES5, ES2015 declare var x, y, z, a, b, c; async function nestedLoops() { diff --git a/tests/cases/compiler/es5-asyncFunctionNewExpressions.ts b/tests/cases/compiler/es5-asyncFunctionNewExpressions.ts index 367968124cf66..15350b1db7eb9 100644 --- a/tests/cases/compiler/es5-asyncFunctionNewExpressions.ts +++ b/tests/cases/compiler/es5-asyncFunctionNewExpressions.ts @@ -1,7 +1,7 @@ // @strict: false // @lib: es5,es2015.promise // @noEmitHelpers: true -// @target: ES5 +// @target: ES5, ES2015 declare var x, y, z, a, b, c; async function newExpression0() { diff --git a/tests/cases/compiler/es5-asyncFunctionObjectLiterals.ts b/tests/cases/compiler/es5-asyncFunctionObjectLiterals.ts index 4c8f48ea2d897..ac9d09f4f0887 100644 --- a/tests/cases/compiler/es5-asyncFunctionObjectLiterals.ts +++ b/tests/cases/compiler/es5-asyncFunctionObjectLiterals.ts @@ -1,7 +1,7 @@ // @strict: false // @lib: es5,es2015.promise // @noEmitHelpers: true -// @target: ES5 +// @target: ES5, ES2015 declare var x, y, z, a, b, c; async function objectLiteral0() { diff --git a/tests/cases/compiler/es5-asyncFunctionPropertyAccess.ts b/tests/cases/compiler/es5-asyncFunctionPropertyAccess.ts index 80ecf24c528a9..f562028331b0d 100644 --- a/tests/cases/compiler/es5-asyncFunctionPropertyAccess.ts +++ b/tests/cases/compiler/es5-asyncFunctionPropertyAccess.ts @@ -1,7 +1,7 @@ // @strict: false // @lib: es5,es2015.promise // @noEmitHelpers: true -// @target: ES5 +// @target: ES5, ES2015 declare var x, y, z, a, b, c; async function propertyAccess0() { diff --git a/tests/cases/compiler/es5-asyncFunctionReturnStatements.ts b/tests/cases/compiler/es5-asyncFunctionReturnStatements.ts index 75d05deee6b30..54e166f23161a 100644 --- a/tests/cases/compiler/es5-asyncFunctionReturnStatements.ts +++ b/tests/cases/compiler/es5-asyncFunctionReturnStatements.ts @@ -1,7 +1,7 @@ // @strict: false // @lib: es5,es2015.promise // @noEmitHelpers: true -// @target: ES5 +// @target: ES5, ES2015 declare var x, y, z, a, b, c; async function returnStatement0(): Promise { diff --git a/tests/cases/compiler/es5-asyncFunctionSwitchStatements.ts b/tests/cases/compiler/es5-asyncFunctionSwitchStatements.ts index 18cbcec9b6d9c..bd9ba9f479bca 100644 --- a/tests/cases/compiler/es5-asyncFunctionSwitchStatements.ts +++ b/tests/cases/compiler/es5-asyncFunctionSwitchStatements.ts @@ -1,7 +1,7 @@ // @strict: false // @lib: es5,es2015.promise // @noEmitHelpers: true -// @target: ES5 +// @target: ES5, ES2015 declare var x, y, z, a, b, c; async function switchStatement0() { diff --git a/tests/cases/compiler/es5-asyncFunctionTryStatements.ts b/tests/cases/compiler/es5-asyncFunctionTryStatements.ts index 24648d03a3910..3989325e6f9fe 100644 --- a/tests/cases/compiler/es5-asyncFunctionTryStatements.ts +++ b/tests/cases/compiler/es5-asyncFunctionTryStatements.ts @@ -1,7 +1,7 @@ // @strict: false // @lib: es5,es2015.promise // @noEmitHelpers: true -// @target: ES5 +// @target: ES5, ES2015 declare var x: any, y: any, z: any, a: any, b: any, c: any; async function tryCatch0() { diff --git a/tests/cases/compiler/es5-asyncFunctionWhileStatements.ts b/tests/cases/compiler/es5-asyncFunctionWhileStatements.ts index c2fb2dd6e69ba..e6ccbbb9e220e 100644 --- a/tests/cases/compiler/es5-asyncFunctionWhileStatements.ts +++ b/tests/cases/compiler/es5-asyncFunctionWhileStatements.ts @@ -1,7 +1,7 @@ // @strict: false // @lib: es5,es2015.promise // @noEmitHelpers: true -// @target: ES5 +// @target: ES5, ES2015 declare var x, y, z, a, b, c; async function whileStatement0() { diff --git a/tests/cases/compiler/es5-asyncFunctionWithStatements.ts b/tests/cases/compiler/es5-asyncFunctionWithStatements.ts index 4f02528a4dc2d..4aaf945f82b73 100644 --- a/tests/cases/compiler/es5-asyncFunctionWithStatements.ts +++ b/tests/cases/compiler/es5-asyncFunctionWithStatements.ts @@ -1,7 +1,7 @@ // @strict: false // @lib: es5,es2015.promise // @noEmitHelpers: true -// @target: ES5 +// @target: ES5, ES2015 declare var x, y, z, a, b, c; async function withStatement0() { diff --git a/tests/cases/compiler/es5-commonjs.ts b/tests/cases/compiler/es5-commonjs.ts index 21eb3732ada08..3a07aa54af23e 100644 --- a/tests/cases/compiler/es5-commonjs.ts +++ b/tests/cases/compiler/es5-commonjs.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @sourcemap: false // @declaration: false // @module: commonjs diff --git a/tests/cases/compiler/es5-commonjs2.ts b/tests/cases/compiler/es5-commonjs2.ts index c6b404c7ef5f2..2c2fdba836460 100644 --- a/tests/cases/compiler/es5-commonjs2.ts +++ b/tests/cases/compiler/es5-commonjs2.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @sourcemap: false // @declaration: false // @module: commonjs diff --git a/tests/cases/compiler/es5-commonjs3.ts b/tests/cases/compiler/es5-commonjs3.ts index 54f2c9ac6fe1c..48b7d5e237b3d 100644 --- a/tests/cases/compiler/es5-commonjs3.ts +++ b/tests/cases/compiler/es5-commonjs3.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @sourcemap: false // @declaration: false // @module: commonjs diff --git a/tests/cases/compiler/es5-commonjs4.ts b/tests/cases/compiler/es5-commonjs4.ts index ce4f8ef68832d..077a543c32f11 100644 --- a/tests/cases/compiler/es5-commonjs4.ts +++ b/tests/cases/compiler/es5-commonjs4.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @sourcemap: false // @declaration: false // @module: commonjs diff --git a/tests/cases/compiler/es5-commonjs5.ts b/tests/cases/compiler/es5-commonjs5.ts index 631dd11a39ae7..9ced70d17f2e5 100644 --- a/tests/cases/compiler/es5-commonjs5.ts +++ b/tests/cases/compiler/es5-commonjs5.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @sourcemap: false // @declaration: false // @module: commonjs diff --git a/tests/cases/compiler/es5-commonjs6.ts b/tests/cases/compiler/es5-commonjs6.ts index 676e5bddb48ff..abb0813336de3 100644 --- a/tests/cases/compiler/es5-commonjs6.ts +++ b/tests/cases/compiler/es5-commonjs6.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @sourcemap: false // @declaration: false // @module: commonjs diff --git a/tests/cases/compiler/es5-commonjs7.ts b/tests/cases/compiler/es5-commonjs7.ts index e7d56da3d6ceb..cadd1c2569d15 100644 --- a/tests/cases/compiler/es5-commonjs7.ts +++ b/tests/cases/compiler/es5-commonjs7.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: ES5 +// @target: ES5, ES2015 // @sourcemap: false // @declaration: false // @module: commonjs diff --git a/tests/cases/compiler/es5-commonjs8.ts b/tests/cases/compiler/es5-commonjs8.ts index 6926115497c02..c5a1d4cdf5387 100644 --- a/tests/cases/compiler/es5-commonjs8.ts +++ b/tests/cases/compiler/es5-commonjs8.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @sourcemap: false // @declaration: false // @module: commonjs diff --git a/tests/cases/compiler/es5-declaration-amd.ts b/tests/cases/compiler/es5-declaration-amd.ts index 1c89fd0598bd7..70f8b431c2eae 100644 --- a/tests/cases/compiler/es5-declaration-amd.ts +++ b/tests/cases/compiler/es5-declaration-amd.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @sourcemap: false // @declaration: true // @module: amd diff --git a/tests/cases/compiler/es5-importHelpersAsyncFunctions.ts b/tests/cases/compiler/es5-importHelpersAsyncFunctions.ts index 5fbdba5571738..2701458449a91 100644 --- a/tests/cases/compiler/es5-importHelpersAsyncFunctions.ts +++ b/tests/cases/compiler/es5-importHelpersAsyncFunctions.ts @@ -1,6 +1,6 @@ // @lib: es5,es2015.promise // @importHelpers: true -// @target: es5 +// @target: es5, es2015 // @module: commonjs // @filename: external.ts export async function foo() { diff --git a/tests/cases/compiler/es5-oldStyleOctalLiteralInEnums.ts b/tests/cases/compiler/es5-oldStyleOctalLiteralInEnums.ts index 42a95eff2a29d..cd86da6eee13b 100644 --- a/tests/cases/compiler/es5-oldStyleOctalLiteralInEnums.ts +++ b/tests/cases/compiler/es5-oldStyleOctalLiteralInEnums.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 enum E { x = -01, y = 02, diff --git a/tests/cases/compiler/es5-souremap-amd.ts b/tests/cases/compiler/es5-souremap-amd.ts index 4852c765065e7..810c071968592 100644 --- a/tests/cases/compiler/es5-souremap-amd.ts +++ b/tests/cases/compiler/es5-souremap-amd.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @sourcemap: true // @module: amd diff --git a/tests/cases/compiler/es5-system.ts b/tests/cases/compiler/es5-system.ts index e615f7e54121a..9453701a919f7 100644 --- a/tests/cases/compiler/es5-system.ts +++ b/tests/cases/compiler/es5-system.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @sourcemap: false // @declaration: false // @module: system diff --git a/tests/cases/compiler/es5-system2.ts b/tests/cases/compiler/es5-system2.ts index 0eb77f8b9b943..bcbfbaea559b3 100644 --- a/tests/cases/compiler/es5-system2.ts +++ b/tests/cases/compiler/es5-system2.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @sourcemap: false // @declaration: false // @module: system diff --git a/tests/cases/compiler/es5-umd.ts b/tests/cases/compiler/es5-umd.ts index d0f65f769820b..a0a1c59eacbec 100644 --- a/tests/cases/compiler/es5-umd.ts +++ b/tests/cases/compiler/es5-umd.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @sourcemap: false // @declaration: false // @module: umd diff --git a/tests/cases/compiler/es5-umd2.ts b/tests/cases/compiler/es5-umd2.ts index a74ae21f4dd83..e68cbb07ffef5 100644 --- a/tests/cases/compiler/es5-umd2.ts +++ b/tests/cases/compiler/es5-umd2.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @sourcemap: false // @declaration: false // @module: umd diff --git a/tests/cases/compiler/es5-umd3.ts b/tests/cases/compiler/es5-umd3.ts index b4ab3cc1cf1d7..5e8fef41f689a 100644 --- a/tests/cases/compiler/es5-umd3.ts +++ b/tests/cases/compiler/es5-umd3.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @sourcemap: false // @declaration: false // @module: umd diff --git a/tests/cases/compiler/es5-umd4.ts b/tests/cases/compiler/es5-umd4.ts index 5ab7e7de4e3f4..4de0cb0a8fbe0 100644 --- a/tests/cases/compiler/es5-umd4.ts +++ b/tests/cases/compiler/es5-umd4.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @sourcemap: false // @declaration: false // @module: umd diff --git a/tests/cases/compiler/es5-yieldFunctionObjectLiterals.ts b/tests/cases/compiler/es5-yieldFunctionObjectLiterals.ts index ab7854f33a0b6..91b21e6fb92f9 100644 --- a/tests/cases/compiler/es5-yieldFunctionObjectLiterals.ts +++ b/tests/cases/compiler/es5-yieldFunctionObjectLiterals.ts @@ -1,7 +1,7 @@ // @strict: false // @lib: es5,es2015.promise // @noEmitHelpers: true -// @target: ES5 +// @target: ES5, ES2015 // @lib: es2015 // mainly to verify indentation of emitted code diff --git a/tests/cases/compiler/es5ExportDefaultClassDeclaration.ts b/tests/cases/compiler/es5ExportDefaultClassDeclaration.ts index bea07832cd564..d38eb50c0ba05 100644 --- a/tests/cases/compiler/es5ExportDefaultClassDeclaration.ts +++ b/tests/cases/compiler/es5ExportDefaultClassDeclaration.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @module: commonjs // @declaration: true diff --git a/tests/cases/compiler/es5ExportDefaultClassDeclaration2.ts b/tests/cases/compiler/es5ExportDefaultClassDeclaration2.ts index e7ae24f5d879f..fe3cd2fd7c784 100644 --- a/tests/cases/compiler/es5ExportDefaultClassDeclaration2.ts +++ b/tests/cases/compiler/es5ExportDefaultClassDeclaration2.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @module: commonjs // @declaration: true diff --git a/tests/cases/compiler/es5ExportDefaultClassDeclaration3.ts b/tests/cases/compiler/es5ExportDefaultClassDeclaration3.ts index b464e329b8463..f8c51589a2000 100644 --- a/tests/cases/compiler/es5ExportDefaultClassDeclaration3.ts +++ b/tests/cases/compiler/es5ExportDefaultClassDeclaration3.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @module: commonjs // @declaration: true diff --git a/tests/cases/compiler/es5ExportDefaultClassDeclaration4.ts b/tests/cases/compiler/es5ExportDefaultClassDeclaration4.ts index 4e8acc50e292a..aaa7a80415d58 100644 --- a/tests/cases/compiler/es5ExportDefaultClassDeclaration4.ts +++ b/tests/cases/compiler/es5ExportDefaultClassDeclaration4.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @module: commonjs // @declaration: true diff --git a/tests/cases/compiler/es5ExportDefaultExpression.ts b/tests/cases/compiler/es5ExportDefaultExpression.ts index 772998decefa6..22c7a109bd750 100644 --- a/tests/cases/compiler/es5ExportDefaultExpression.ts +++ b/tests/cases/compiler/es5ExportDefaultExpression.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @module: commonjs // @declaration: true diff --git a/tests/cases/compiler/es5ExportDefaultFunctionDeclaration.ts b/tests/cases/compiler/es5ExportDefaultFunctionDeclaration.ts index ef9da753ab063..efb1f849e4ef7 100644 --- a/tests/cases/compiler/es5ExportDefaultFunctionDeclaration.ts +++ b/tests/cases/compiler/es5ExportDefaultFunctionDeclaration.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @module: commonjs // @declaration: true diff --git a/tests/cases/compiler/es5ExportDefaultFunctionDeclaration2.ts b/tests/cases/compiler/es5ExportDefaultFunctionDeclaration2.ts index 2b8a99a381780..8e5f4ed75977c 100644 --- a/tests/cases/compiler/es5ExportDefaultFunctionDeclaration2.ts +++ b/tests/cases/compiler/es5ExportDefaultFunctionDeclaration2.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @module: commonjs // @declaration: true diff --git a/tests/cases/compiler/es5ExportDefaultFunctionDeclaration3.ts b/tests/cases/compiler/es5ExportDefaultFunctionDeclaration3.ts index 7db21de339ecc..f0df7254e7fd6 100644 --- a/tests/cases/compiler/es5ExportDefaultFunctionDeclaration3.ts +++ b/tests/cases/compiler/es5ExportDefaultFunctionDeclaration3.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @module: commonjs // @declaration: true diff --git a/tests/cases/compiler/es5ExportDefaultFunctionDeclaration4.ts b/tests/cases/compiler/es5ExportDefaultFunctionDeclaration4.ts index 3d889fa445e88..6017da28e5aef 100644 --- a/tests/cases/compiler/es5ExportDefaultFunctionDeclaration4.ts +++ b/tests/cases/compiler/es5ExportDefaultFunctionDeclaration4.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @module: commonjs // @declaration: true diff --git a/tests/cases/compiler/es5ExportDefaultIdentifier.ts b/tests/cases/compiler/es5ExportDefaultIdentifier.ts index 8f34253208ed7..d80d773d37862 100644 --- a/tests/cases/compiler/es5ExportDefaultIdentifier.ts +++ b/tests/cases/compiler/es5ExportDefaultIdentifier.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @module: commonjs // @declaration: true diff --git a/tests/cases/compiler/es5ExportEquals.ts b/tests/cases/compiler/es5ExportEquals.ts index 5016bdb7b1ba0..c4fa7ac4e5716 100644 --- a/tests/cases/compiler/es5ExportEquals.ts +++ b/tests/cases/compiler/es5ExportEquals.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @module: commonjs // @declaration: true diff --git a/tests/cases/compiler/es5ExportEqualsDts.ts b/tests/cases/compiler/es5ExportEqualsDts.ts index 3bb8cb2c0465b..ebe82f8c45ea5 100644 --- a/tests/cases/compiler/es5ExportEqualsDts.ts +++ b/tests/cases/compiler/es5ExportEqualsDts.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @module: commonjs // @declaration: true diff --git a/tests/cases/compiler/es5ModuleInternalNamedImports.ts b/tests/cases/compiler/es5ModuleInternalNamedImports.ts index 25d231247bfda..1c77eead4dd09 100644 --- a/tests/cases/compiler/es5ModuleInternalNamedImports.ts +++ b/tests/cases/compiler/es5ModuleInternalNamedImports.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @module: commonjs export namespace M { diff --git a/tests/cases/compiler/es5ModuleWithModuleGenAmd.ts b/tests/cases/compiler/es5ModuleWithModuleGenAmd.ts index 051c77f808e07..c5d307d04f8d3 100644 --- a/tests/cases/compiler/es5ModuleWithModuleGenAmd.ts +++ b/tests/cases/compiler/es5ModuleWithModuleGenAmd.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @module: amd export class A { diff --git a/tests/cases/compiler/es5ModuleWithModuleGenCommonjs.ts b/tests/cases/compiler/es5ModuleWithModuleGenCommonjs.ts index 31720bddbcbbe..c787649f402b8 100644 --- a/tests/cases/compiler/es5ModuleWithModuleGenCommonjs.ts +++ b/tests/cases/compiler/es5ModuleWithModuleGenCommonjs.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @module: commonjs export class A { diff --git a/tests/cases/compiler/es5ModuleWithoutModuleGenTarget.ts b/tests/cases/compiler/es5ModuleWithoutModuleGenTarget.ts index c9504ef9fcbd9..1b9ef7dadf337 100644 --- a/tests/cases/compiler/es5ModuleWithoutModuleGenTarget.ts +++ b/tests/cases/compiler/es5ModuleWithoutModuleGenTarget.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 export class A { constructor () diff --git a/tests/cases/compiler/es5SetterparameterDestructuringNotElided.ts b/tests/cases/compiler/es5SetterparameterDestructuringNotElided.ts index dd6587e9654ba..d2552dc69081c 100644 --- a/tests/cases/compiler/es5SetterparameterDestructuringNotElided.ts +++ b/tests/cases/compiler/es5SetterparameterDestructuringNotElided.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 const foo = { set foo([start, end]: [any, any]) { void start; diff --git a/tests/cases/compiler/es5andes6module.ts b/tests/cases/compiler/es5andes6module.ts index 0fbff3c23d25d..3f0a6e32d91ef 100644 --- a/tests/cases/compiler/es5andes6module.ts +++ b/tests/cases/compiler/es5andes6module.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @sourcemap: false // @declaration: false // @module: es6 diff --git a/tests/cases/compiler/es6ExportAllInEs5.ts b/tests/cases/compiler/es6ExportAllInEs5.ts index 29e26b8923036..fb223c9db157c 100644 --- a/tests/cases/compiler/es6ExportAllInEs5.ts +++ b/tests/cases/compiler/es6ExportAllInEs5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @module: commonjs // @declaration: true diff --git a/tests/cases/compiler/es6ExportClauseInEs5.ts b/tests/cases/compiler/es6ExportClauseInEs5.ts index b4688ed06245f..d129e598cefd2 100644 --- a/tests/cases/compiler/es6ExportClauseInEs5.ts +++ b/tests/cases/compiler/es6ExportClauseInEs5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @module: commonjs // @declaration: true diff --git a/tests/cases/compiler/es6ExportClauseWithAssignmentInEs5.ts b/tests/cases/compiler/es6ExportClauseWithAssignmentInEs5.ts index fb33aee355765..13d7d74fa6c66 100644 --- a/tests/cases/compiler/es6ExportClauseWithAssignmentInEs5.ts +++ b/tests/cases/compiler/es6ExportClauseWithAssignmentInEs5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @module: commonjs // @filename: server.ts diff --git a/tests/cases/compiler/es6ExportClauseWithoutModuleSpecifierInEs5.ts b/tests/cases/compiler/es6ExportClauseWithoutModuleSpecifierInEs5.ts index 455552916b155..4d35cca5ed39c 100644 --- a/tests/cases/compiler/es6ExportClauseWithoutModuleSpecifierInEs5.ts +++ b/tests/cases/compiler/es6ExportClauseWithoutModuleSpecifierInEs5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @module: commonjs // @declaration: true diff --git a/tests/cases/compiler/es6ImportDefaultBindingAmd.ts b/tests/cases/compiler/es6ImportDefaultBindingAmd.ts index 29fb41396e9b6..7457fab64fcc4 100644 --- a/tests/cases/compiler/es6ImportDefaultBindingAmd.ts +++ b/tests/cases/compiler/es6ImportDefaultBindingAmd.ts @@ -1,6 +1,6 @@ // @module: amd // @declaration: true -// @target: ES5 +// @target: ES5, ES2015 // @filename: es6ImportDefaultBindingAmd_0.ts var a = 10; diff --git a/tests/cases/compiler/es6ImportDefaultBindingDts.ts b/tests/cases/compiler/es6ImportDefaultBindingDts.ts index b4b8276869102..34d72dbaf7fcc 100644 --- a/tests/cases/compiler/es6ImportDefaultBindingDts.ts +++ b/tests/cases/compiler/es6ImportDefaultBindingDts.ts @@ -1,6 +1,6 @@ // @module: commonjs // @declaration: true -// @target: ES5 +// @target: ES5, ES2015 // @filename: server.ts class c { } diff --git a/tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1InEs5.ts b/tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1InEs5.ts index fc13b26e73721..a214f7476a0e4 100644 --- a/tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1InEs5.ts +++ b/tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1InEs5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @module: commonjs // @declaration: true diff --git a/tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1WithExport.ts b/tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1WithExport.ts index ca2b05614339b..c367a6cef3bf6 100644 --- a/tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1WithExport.ts +++ b/tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1WithExport.ts @@ -1,6 +1,6 @@ // @module: commonjs // @declaration: true -// @target: ES5 +// @target: ES5, ES2015 // @filename: server.ts var a = 10; diff --git a/tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportDts1.ts b/tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportDts1.ts index 64e771bebd156..463adaa3667bb 100644 --- a/tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportDts1.ts +++ b/tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportDts1.ts @@ -1,6 +1,6 @@ // @module: commonjs // @declaration: true -// @target: ES5 +// @target: ES5, ES2015 // @filename: server.ts class a { } diff --git a/tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5.ts b/tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5.ts index 9a7902d66a0fb..32d1ca38cd47b 100644 --- a/tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5.ts +++ b/tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @module: commonjs // @declaration: true diff --git a/tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportWithExport.ts b/tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportWithExport.ts index 62d7977f3fe90..f59cb16fc3f35 100644 --- a/tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportWithExport.ts +++ b/tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportWithExport.ts @@ -1,6 +1,6 @@ // @module: commonjs // @declaration: true -// @target: ES5 +// @target: ES5, ES2015 // @filename: server.ts export var a = 10; diff --git a/tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding1InEs5.ts b/tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding1InEs5.ts index 133abf147cb0d..e5beee5032848 100644 --- a/tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding1InEs5.ts +++ b/tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding1InEs5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @module: commonjs // @declaration: true diff --git a/tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding1WithExport.ts b/tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding1WithExport.ts index 731843ca48b6e..ceeb933a60a35 100644 --- a/tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding1WithExport.ts +++ b/tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding1WithExport.ts @@ -1,6 +1,6 @@ // @module: amd // @declaration: true -// @target: ES5 +// @target: ES5, ES2015 // @filename: server.ts var a = 10; diff --git a/tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBindingDts1.ts b/tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBindingDts1.ts index 8f8f1fe977093..7fb7426ef9b86 100644 --- a/tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBindingDts1.ts +++ b/tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBindingDts1.ts @@ -1,6 +1,6 @@ // @module: amd // @declaration: true -// @target: ES5 +// @target: ES5, ES2015 // @filename: server.ts class a { } diff --git a/tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5.ts b/tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5.ts index cdc1590ec8fe1..88a1810fa64cb 100644 --- a/tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5.ts +++ b/tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @module: commonjs // @declaration: true diff --git a/tests/cases/compiler/es6ImportDefaultBindingInEs5.ts b/tests/cases/compiler/es6ImportDefaultBindingInEs5.ts index 261c1b6079c02..25049b2b0f0fd 100644 --- a/tests/cases/compiler/es6ImportDefaultBindingInEs5.ts +++ b/tests/cases/compiler/es6ImportDefaultBindingInEs5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @module: commonjs // @declaration: true diff --git a/tests/cases/compiler/es6ImportDefaultBindingMergeErrors.ts b/tests/cases/compiler/es6ImportDefaultBindingMergeErrors.ts index 3d637abd79885..69405468b6ee6 100644 --- a/tests/cases/compiler/es6ImportDefaultBindingMergeErrors.ts +++ b/tests/cases/compiler/es6ImportDefaultBindingMergeErrors.ts @@ -1,5 +1,5 @@ // @module: commonjs -// @target: ES5 +// @target: ES5, ES2015 // @filename: es6ImportDefaultBindingMergeErrors_0.ts var a = 10; diff --git a/tests/cases/compiler/es6ImportDefaultBindingWithExport.ts b/tests/cases/compiler/es6ImportDefaultBindingWithExport.ts index 016f7c670d56c..0ccdd8a4729f9 100644 --- a/tests/cases/compiler/es6ImportDefaultBindingWithExport.ts +++ b/tests/cases/compiler/es6ImportDefaultBindingWithExport.ts @@ -1,6 +1,6 @@ // @module: commonjs // @declaration: true -// @target: ES5 +// @target: ES5, ES2015 // @filename: server.ts var a = 10; diff --git a/tests/cases/compiler/es6ImportNameSpaceImportInEs5.ts b/tests/cases/compiler/es6ImportNameSpaceImportInEs5.ts index 7900e5b5a2b9d..87180f88b9ddf 100644 --- a/tests/cases/compiler/es6ImportNameSpaceImportInEs5.ts +++ b/tests/cases/compiler/es6ImportNameSpaceImportInEs5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @module: commonjs // @declaration: true diff --git a/tests/cases/compiler/es6ImportNameSpaceImportMergeErrors.ts b/tests/cases/compiler/es6ImportNameSpaceImportMergeErrors.ts index cdedbe3fe9bb0..cb7b2daf09e67 100644 --- a/tests/cases/compiler/es6ImportNameSpaceImportMergeErrors.ts +++ b/tests/cases/compiler/es6ImportNameSpaceImportMergeErrors.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @module: commonjs // @filename: es6ImportNameSpaceImportMergeErrors_0.ts diff --git a/tests/cases/compiler/es6ImportNameSpaceImportNoNamedExports.ts b/tests/cases/compiler/es6ImportNameSpaceImportNoNamedExports.ts index fe471dbc6c737..6436e4ac88238 100644 --- a/tests/cases/compiler/es6ImportNameSpaceImportNoNamedExports.ts +++ b/tests/cases/compiler/es6ImportNameSpaceImportNoNamedExports.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @module: commonjs // @filename: es6ImportNameSpaceImportNoNamedExports_0.ts diff --git a/tests/cases/compiler/es6ImportNamedImportInEs5.ts b/tests/cases/compiler/es6ImportNamedImportInEs5.ts index 428ad235329ec..951a56d4a199e 100644 --- a/tests/cases/compiler/es6ImportNamedImportInEs5.ts +++ b/tests/cases/compiler/es6ImportNamedImportInEs5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @module: commonjs // @declaration: true diff --git a/tests/cases/compiler/es6ImportNamedImportNoNamedExports.ts b/tests/cases/compiler/es6ImportNamedImportNoNamedExports.ts index 9e46253cc9c72..ba271787a304e 100644 --- a/tests/cases/compiler/es6ImportNamedImportNoNamedExports.ts +++ b/tests/cases/compiler/es6ImportNamedImportNoNamedExports.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @module: commonjs // @filename: es6ImportNamedImportNoNamedExports_0.ts diff --git a/tests/cases/compiler/es6ImportWithoutFromClauseInEs5.ts b/tests/cases/compiler/es6ImportWithoutFromClauseInEs5.ts index 08c21c236443a..a8a8bf0cb9f13 100644 --- a/tests/cases/compiler/es6ImportWithoutFromClauseInEs5.ts +++ b/tests/cases/compiler/es6ImportWithoutFromClauseInEs5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @module: commonjs // @declaration: true diff --git a/tests/cases/compiler/esModuleInteropWithExportStar.ts b/tests/cases/compiler/esModuleInteropWithExportStar.ts index a3ef5c2c2e56c..1d5c8e2d24d21 100644 --- a/tests/cases/compiler/esModuleInteropWithExportStar.ts +++ b/tests/cases/compiler/esModuleInteropWithExportStar.ts @@ -1,5 +1,5 @@ // @esModuleInterop: true -// @target: es5 +// @target: es5, es2015 // @filename: fs.d.ts export const x: number; // @filename: mjts.ts diff --git a/tests/cases/compiler/exportDeclarationInInternalModule.ts b/tests/cases/compiler/exportDeclarationInInternalModule.ts index b033aec79927f..ce121fc17f45c 100644 --- a/tests/cases/compiler/exportDeclarationInInternalModule.ts +++ b/tests/cases/compiler/exportDeclarationInInternalModule.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @module: commonjs // @declaration: true diff --git a/tests/cases/compiler/exportDefaultParenthesize.ts b/tests/cases/compiler/exportDefaultParenthesize.ts index 8303eea023478..5cfdba9945d96 100644 --- a/tests/cases/compiler/exportDefaultParenthesize.ts +++ b/tests/cases/compiler/exportDefaultParenthesize.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @module: esnext // @filename: commalist.ts export default { diff --git a/tests/cases/compiler/exportImportCanSubstituteConstEnumForValue.ts b/tests/cases/compiler/exportImportCanSubstituteConstEnumForValue.ts index 3ca2ea1b72792..c2a76604102fd 100644 --- a/tests/cases/compiler/exportImportCanSubstituteConstEnumForValue.ts +++ b/tests/cases/compiler/exportImportCanSubstituteConstEnumForValue.ts @@ -1,6 +1,6 @@ // @module: amd // @declaration: true -// @target: es5 +// @target: es5, es2015 namespace MsPortalFx.ViewModels.Dialogs { export const enum DialogResult { diff --git a/tests/cases/compiler/exportStarFromEmptyModule.ts b/tests/cases/compiler/exportStarFromEmptyModule.ts index 5eac2fabe810c..6c7e599fa318a 100644 --- a/tests/cases/compiler/exportStarFromEmptyModule.ts +++ b/tests/cases/compiler/exportStarFromEmptyModule.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: es5 +// @target: es5, es2015 // @module: commonjs // @declaration: true diff --git a/tests/cases/compiler/forwardDeclaredCommonTypes01.ts b/tests/cases/compiler/forwardDeclaredCommonTypes01.ts index f4eea80ab0339..26342961167a0 100644 --- a/tests/cases/compiler/forwardDeclaredCommonTypes01.ts +++ b/tests/cases/compiler/forwardDeclaredCommonTypes01.ts @@ -1,5 +1,5 @@ // @lib: es5 -// @target: es5 +// @target: es5, es2015 interface Promise {} interface Symbol {} diff --git a/tests/cases/compiler/functionsMissingReturnStatementsAndExpressions.ts b/tests/cases/compiler/functionsMissingReturnStatementsAndExpressions.ts index 6ffb50c59a2f1..26476bb090a7e 100644 --- a/tests/cases/compiler/functionsMissingReturnStatementsAndExpressions.ts +++ b/tests/cases/compiler/functionsMissingReturnStatementsAndExpressions.ts @@ -1,6 +1,6 @@ // @allowUnreachableCode: true -// @target: es5 +// @target: es5, es2015 function f1(): string { // errors because there are no return statements diff --git a/tests/cases/compiler/generatorTransformFinalLabel.ts b/tests/cases/compiler/generatorTransformFinalLabel.ts index 2dab26b1f0805..bdd39ac51af27 100644 --- a/tests/cases/compiler/generatorTransformFinalLabel.ts +++ b/tests/cases/compiler/generatorTransformFinalLabel.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @lib: es5,es6 // @noEmitHelpers: true async function test(skip: boolean) { diff --git a/tests/cases/compiler/getSetEnumerable.ts b/tests/cases/compiler/getSetEnumerable.ts index 295aaef7ffbdf..38ee916b90362 100644 --- a/tests/cases/compiler/getSetEnumerable.ts +++ b/tests/cases/compiler/getSetEnumerable.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 class GetSetEnumerableClassGet { get prop() { return true;} diff --git a/tests/cases/compiler/getterControlFlowStrictNull.ts b/tests/cases/compiler/getterControlFlowStrictNull.ts index 43a0857365c2f..9e94155693986 100644 --- a/tests/cases/compiler/getterControlFlowStrictNull.ts +++ b/tests/cases/compiler/getterControlFlowStrictNull.ts @@ -1,5 +1,5 @@ //@strictNullChecks: true -//@target: ES5 +//@target: ES5, ES2015 class A { a(): string | null { if (Math.random() > 0.5) { diff --git a/tests/cases/compiler/implicitAnyFromCircularInference.ts b/tests/cases/compiler/implicitAnyFromCircularInference.ts index 88127728ebb2b..20c9c016d9058 100644 --- a/tests/cases/compiler/implicitAnyFromCircularInference.ts +++ b/tests/cases/compiler/implicitAnyFromCircularInference.ts @@ -1,5 +1,5 @@ // @noimplicitany: true -// @target: es5 +// @target: es5, es2015 // Error expected var a: typeof a; diff --git a/tests/cases/compiler/importHelpers.ts b/tests/cases/compiler/importHelpers.ts index 319d7815f7e6c..7e7758f8adc67 100644 --- a/tests/cases/compiler/importHelpers.ts +++ b/tests/cases/compiler/importHelpers.ts @@ -1,5 +1,5 @@ // @importHelpers: true -// @target: es5 +// @target: es5, es2015 // @module: commonjs // @experimentalDecorators: true // @emitDecoratorMetadata: true diff --git a/tests/cases/compiler/importHelpersAmd.ts b/tests/cases/compiler/importHelpersAmd.ts index 38b02424b963b..e1904200ecee4 100644 --- a/tests/cases/compiler/importHelpersAmd.ts +++ b/tests/cases/compiler/importHelpersAmd.ts @@ -1,5 +1,5 @@ // @importHelpers: true -// @target: es5 +// @target: es5, es2015 // @module: amd // @filename: a.ts export class A { } diff --git a/tests/cases/compiler/importHelpersDeclarations.ts b/tests/cases/compiler/importHelpersDeclarations.ts index 943a412f162e6..7d55b70b2f249 100644 --- a/tests/cases/compiler/importHelpersDeclarations.ts +++ b/tests/cases/compiler/importHelpersDeclarations.ts @@ -1,5 +1,5 @@ // @importHelpers: true -// @target: es5 +// @target: es5, es2015 // @module: commonjs // @filename: declaration.d.ts export declare class D { diff --git a/tests/cases/compiler/importHelpersInAmbientContext.ts b/tests/cases/compiler/importHelpersInAmbientContext.ts index 340961802a311..2153248478155 100644 --- a/tests/cases/compiler/importHelpersInAmbientContext.ts +++ b/tests/cases/compiler/importHelpersInAmbientContext.ts @@ -1,5 +1,5 @@ // @importHelpers: true -// @target: es5 +// @target: es5, es2015 // @filename: a.d.ts export { }; diff --git a/tests/cases/compiler/importHelpersInIsolatedModules.ts b/tests/cases/compiler/importHelpersInIsolatedModules.ts index c954dd466f98f..479efad1e45e0 100644 --- a/tests/cases/compiler/importHelpersInIsolatedModules.ts +++ b/tests/cases/compiler/importHelpersInIsolatedModules.ts @@ -1,6 +1,6 @@ // @importHelpers: true // @isolatedModules: true -// @target: es5 +// @target: es5, es2015 // @module: commonjs // @experimentalDecorators: true // @emitDecoratorMetadata: true diff --git a/tests/cases/compiler/importHelpersInTsx.tsx b/tests/cases/compiler/importHelpersInTsx.tsx index 82b1fabc45108..fceb976857fef 100644 --- a/tests/cases/compiler/importHelpersInTsx.tsx +++ b/tests/cases/compiler/importHelpersInTsx.tsx @@ -1,5 +1,5 @@ // @importHelpers: true -// @target: es5 +// @target: es5, es2015 // @module: commonjs // @jsx: react // @experimentalDecorators: true diff --git a/tests/cases/compiler/importHelpersNoEmitHelpersExportDefault.ts b/tests/cases/compiler/importHelpersNoEmitHelpersExportDefault.ts index 86433dfb6be83..f0862eb5d88ed 100644 --- a/tests/cases/compiler/importHelpersNoEmitHelpersExportDefault.ts +++ b/tests/cases/compiler/importHelpersNoEmitHelpersExportDefault.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @module: commonjs // @importHelpers: true // @noEmitHelpers: true diff --git a/tests/cases/compiler/importHelpersNoHelpers.ts b/tests/cases/compiler/importHelpersNoHelpers.ts index 787058890a2cc..ce8b28a1aef6b 100644 --- a/tests/cases/compiler/importHelpersNoHelpers.ts +++ b/tests/cases/compiler/importHelpersNoHelpers.ts @@ -1,5 +1,5 @@ // @importHelpers: true -// @target: es5 +// @target: es5, es2015 // @module: commonjs // @moduleResolution: classic // @experimentalDecorators: true diff --git a/tests/cases/compiler/importHelpersNoHelpersForAsyncGenerators.ts b/tests/cases/compiler/importHelpersNoHelpersForAsyncGenerators.ts index a42b5148b43dc..64a2633061ad6 100644 --- a/tests/cases/compiler/importHelpersNoHelpersForAsyncGenerators.ts +++ b/tests/cases/compiler/importHelpersNoHelpersForAsyncGenerators.ts @@ -1,5 +1,5 @@ // @importHelpers: true -// @target: es5 +// @target: es5, es2015 // @module: commonjs // @lib: esnext // @moduleResolution: classic diff --git a/tests/cases/compiler/importHelpersNoModule.ts b/tests/cases/compiler/importHelpersNoModule.ts index e824f2afb4854..8f2e678121b9f 100644 --- a/tests/cases/compiler/importHelpersNoModule.ts +++ b/tests/cases/compiler/importHelpersNoModule.ts @@ -1,5 +1,5 @@ // @importHelpers: true -// @target: es5 +// @target: es5, es2015 // @module: commonjs // @moduleResolution: classic // @experimentalDecorators: true diff --git a/tests/cases/compiler/importHelpersOutFile.ts b/tests/cases/compiler/importHelpersOutFile.ts index 69e1e692617ad..c61e55077cc2c 100644 --- a/tests/cases/compiler/importHelpersOutFile.ts +++ b/tests/cases/compiler/importHelpersOutFile.ts @@ -1,5 +1,5 @@ // @importHelpers: true -// @target: es5 +// @target: es5, es2015 // @module: amd // @outfile: out.js // @filename: a.ts diff --git a/tests/cases/compiler/importHelpersSystem.ts b/tests/cases/compiler/importHelpersSystem.ts index 87e6278570868..28a5905d7945e 100644 --- a/tests/cases/compiler/importHelpersSystem.ts +++ b/tests/cases/compiler/importHelpersSystem.ts @@ -1,5 +1,5 @@ // @importHelpers: true -// @target: es5 +// @target: es5, es2015 // @module: system // @filename: a.ts export class A { } diff --git a/tests/cases/compiler/inheritanceMemberAccessorOverridingMethod.ts b/tests/cases/compiler/inheritanceMemberAccessorOverridingMethod.ts index a3be64bd5a447..09e44ff22d532 100644 --- a/tests/cases/compiler/inheritanceMemberAccessorOverridingMethod.ts +++ b/tests/cases/compiler/inheritanceMemberAccessorOverridingMethod.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: es5 +// @target: es5, es2015 class a { x() { return "20"; diff --git a/tests/cases/compiler/initializePropertiesWithRenamedLet.ts b/tests/cases/compiler/initializePropertiesWithRenamedLet.ts index b30ce60977502..3c22a3ce6b254 100644 --- a/tests/cases/compiler/initializePropertiesWithRenamedLet.ts +++ b/tests/cases/compiler/initializePropertiesWithRenamedLet.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 var x0; if (true) { diff --git a/tests/cases/compiler/inlineSourceMap.ts b/tests/cases/compiler/inlineSourceMap.ts index eaedcc8e48334..f78f6acc1bcdc 100644 --- a/tests/cases/compiler/inlineSourceMap.ts +++ b/tests/cases/compiler/inlineSourceMap.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @inlinesourcemap: true var x = 0; diff --git a/tests/cases/compiler/inlineSourceMap2.ts b/tests/cases/compiler/inlineSourceMap2.ts index a849cd97c432e..44e1602e025d6 100644 --- a/tests/cases/compiler/inlineSourceMap2.ts +++ b/tests/cases/compiler/inlineSourceMap2.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @sourcemap: true // @maproot: file:///folder // @sourceroot: file:///folder diff --git a/tests/cases/compiler/inlineSources.ts b/tests/cases/compiler/inlineSources.ts index 107b54bc95e45..73f16be0344f9 100644 --- a/tests/cases/compiler/inlineSources.ts +++ b/tests/cases/compiler/inlineSources.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @sourcemap: true // @inlinesources: true // @outFile: out.js diff --git a/tests/cases/compiler/inlineSources2.ts b/tests/cases/compiler/inlineSources2.ts index 032e60a0aa9bb..8f33c37e87697 100644 --- a/tests/cases/compiler/inlineSources2.ts +++ b/tests/cases/compiler/inlineSources2.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @inlinesourcemap: true // @inlinesources: true // @outFile: out.js diff --git a/tests/cases/compiler/isDeclarationVisibleNodeKinds.ts b/tests/cases/compiler/isDeclarationVisibleNodeKinds.ts index 5351379b55c3b..a46690f345b53 100644 --- a/tests/cases/compiler/isDeclarationVisibleNodeKinds.ts +++ b/tests/cases/compiler/isDeclarationVisibleNodeKinds.ts @@ -1,5 +1,5 @@ // @declaration: true -// @target: es5 +// @target: es5, es2015 // Function types namespace schema { diff --git a/tests/cases/compiler/isolatedModulesImportExportElision.ts b/tests/cases/compiler/isolatedModulesImportExportElision.ts index e50a0f8eb885a..6b29d756331ac 100644 --- a/tests/cases/compiler/isolatedModulesImportExportElision.ts +++ b/tests/cases/compiler/isolatedModulesImportExportElision.ts @@ -1,5 +1,5 @@ // @isolatedModules: true -// @target: es5 +// @target: es5, es2015 // @module: commonjs // @filename: file1.ts diff --git a/tests/cases/compiler/isolatedModulesPlainFile-AMD.ts b/tests/cases/compiler/isolatedModulesPlainFile-AMD.ts index d28aea8625029..23cda8623f2ee 100644 --- a/tests/cases/compiler/isolatedModulesPlainFile-AMD.ts +++ b/tests/cases/compiler/isolatedModulesPlainFile-AMD.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @module: amd // @isolatedModules: true diff --git a/tests/cases/compiler/isolatedModulesPlainFile-CommonJS.ts b/tests/cases/compiler/isolatedModulesPlainFile-CommonJS.ts index 6d07f10c4d0d8..dcf6eacbc2212 100644 --- a/tests/cases/compiler/isolatedModulesPlainFile-CommonJS.ts +++ b/tests/cases/compiler/isolatedModulesPlainFile-CommonJS.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @module: commonjs // @isolatedModules: true diff --git a/tests/cases/compiler/isolatedModulesPlainFile-System.ts b/tests/cases/compiler/isolatedModulesPlainFile-System.ts index e16720596d9e1..5cb36590f284c 100644 --- a/tests/cases/compiler/isolatedModulesPlainFile-System.ts +++ b/tests/cases/compiler/isolatedModulesPlainFile-System.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @module: system // @isolatedModules: true diff --git a/tests/cases/compiler/isolatedModulesPlainFile-UMD.ts b/tests/cases/compiler/isolatedModulesPlainFile-UMD.ts index d452bbff96b9a..1c60b9eec1a0d 100644 --- a/tests/cases/compiler/isolatedModulesPlainFile-UMD.ts +++ b/tests/cases/compiler/isolatedModulesPlainFile-UMD.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @module: umd // @isolatedModules: true diff --git a/tests/cases/compiler/jsxChildrenArrayWrongType.tsx b/tests/cases/compiler/jsxChildrenArrayWrongType.tsx index 89658a30df4cd..a3bad8c5be7ca 100644 --- a/tests/cases/compiler/jsxChildrenArrayWrongType.tsx +++ b/tests/cases/compiler/jsxChildrenArrayWrongType.tsx @@ -1,6 +1,6 @@ // @jsx: react // @strict: true -// @target: ES5 +// @target: ES5, ES2015 // @module: ESNext // @esModuleInterop: true // @skipLibCheck: true diff --git a/tests/cases/compiler/jsxFactoryQualifiedNameWithEs5.ts b/tests/cases/compiler/jsxFactoryQualifiedNameWithEs5.ts index c29c1db6deae6..ed7c3b4903005 100644 --- a/tests/cases/compiler/jsxFactoryQualifiedNameWithEs5.ts +++ b/tests/cases/compiler/jsxFactoryQualifiedNameWithEs5.ts @@ -1,6 +1,6 @@ // @strict: false //@module: commonjs -//@target: es5 +//@target: es5, es2015 //@jsx: react //@jsxFactory: skate.h //@noEmit: false diff --git a/tests/cases/compiler/letConstInCaseClauses.ts b/tests/cases/compiler/letConstInCaseClauses.ts index 4ed1c9fa36342..9191a0230d229 100644 --- a/tests/cases/compiler/letConstInCaseClauses.ts +++ b/tests/cases/compiler/letConstInCaseClauses.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 var x = 10; var y = 20; diff --git a/tests/cases/compiler/letConstMatchingParameterNames.ts b/tests/cases/compiler/letConstMatchingParameterNames.ts index 64118dd3e4fa9..a5690b3736302 100644 --- a/tests/cases/compiler/letConstMatchingParameterNames.ts +++ b/tests/cases/compiler/letConstMatchingParameterNames.ts @@ -1,6 +1,6 @@ // @strict: false // @lib: es5 -// @target: es5 +// @target: es5, es2015 let parent = true; const parent2 = true; declare function use(a: any); diff --git a/tests/cases/compiler/letDeclarations-es5-1.ts b/tests/cases/compiler/letDeclarations-es5-1.ts index cd93feeda0dc4..0531cd295592c 100644 --- a/tests/cases/compiler/letDeclarations-es5-1.ts +++ b/tests/cases/compiler/letDeclarations-es5-1.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 let l1; let l2: number; let l3, l4, l5 :string, l6; diff --git a/tests/cases/compiler/letDeclarations-es5.ts b/tests/cases/compiler/letDeclarations-es5.ts index b115c260a915c..f17789ee9db5e 100644 --- a/tests/cases/compiler/letDeclarations-es5.ts +++ b/tests/cases/compiler/letDeclarations-es5.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 let l1; let l2: number; diff --git a/tests/cases/compiler/letInConstDeclarations_ES5.ts b/tests/cases/compiler/letInConstDeclarations_ES5.ts index 2898abd1e2ae7..b071f1287e46d 100644 --- a/tests/cases/compiler/letInConstDeclarations_ES5.ts +++ b/tests/cases/compiler/letInConstDeclarations_ES5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // All use of let in const declaration should be an error const x = 50, let = 5; diff --git a/tests/cases/compiler/letInLetConstDeclOfForOfAndForIn_ES5.ts b/tests/cases/compiler/letInLetConstDeclOfForOfAndForIn_ES5.ts index 7e8b68243296a..604f02ea4c48a 100644 --- a/tests/cases/compiler/letInLetConstDeclOfForOfAndForIn_ES5.ts +++ b/tests/cases/compiler/letInLetConstDeclOfForOfAndForIn_ES5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // Should be an error for (let let of [1,2,3]) {} diff --git a/tests/cases/compiler/letInLetDeclarations_ES5.ts b/tests/cases/compiler/letInLetDeclarations_ES5.ts index 8d4a71b85c881..610c65656872c 100644 --- a/tests/cases/compiler/letInLetDeclarations_ES5.ts +++ b/tests/cases/compiler/letInLetDeclarations_ES5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // All use of let in const declaration should be an error let x = 50, let = 5; diff --git a/tests/cases/compiler/letInVarDeclOfForIn_ES5.ts b/tests/cases/compiler/letInVarDeclOfForIn_ES5.ts index 684dc3b2e9f15..ce99780ed3bd4 100644 --- a/tests/cases/compiler/letInVarDeclOfForIn_ES5.ts +++ b/tests/cases/compiler/letInVarDeclOfForIn_ES5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // should not be an error for (var let in [1,2,3]) {} diff --git a/tests/cases/compiler/letInVarDeclOfForOf_ES5.ts b/tests/cases/compiler/letInVarDeclOfForOf_ES5.ts index 2d369aa162e7d..3e4f5c17518f0 100644 --- a/tests/cases/compiler/letInVarDeclOfForOf_ES5.ts +++ b/tests/cases/compiler/letInVarDeclOfForOf_ES5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // should not be an error for (var let of [1,2,3]) {} diff --git a/tests/cases/compiler/manyConstExports.ts b/tests/cases/compiler/manyConstExports.ts index 86894e3ede61a..9a5f81b45eec7 100644 --- a/tests/cases/compiler/manyConstExports.ts +++ b/tests/cases/compiler/manyConstExports.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 export const exp0 = "test"; export const exp1 = "test"; diff --git a/tests/cases/compiler/metadataOfClassFromAlias.ts b/tests/cases/compiler/metadataOfClassFromAlias.ts index 7de4777970e15..c0cb4831ac0aa 100644 --- a/tests/cases/compiler/metadataOfClassFromAlias.ts +++ b/tests/cases/compiler/metadataOfClassFromAlias.ts @@ -1,6 +1,6 @@ // @experimentalDecorators: true // @emitDecoratorMetadata: true -// @target: es5 +// @target: es5, es2015 // @module: commonjs // @strict: true, false diff --git a/tests/cases/compiler/metadataOfClassFromAlias2.ts b/tests/cases/compiler/metadataOfClassFromAlias2.ts index 05c44d9c6776b..7497791c4d631 100644 --- a/tests/cases/compiler/metadataOfClassFromAlias2.ts +++ b/tests/cases/compiler/metadataOfClassFromAlias2.ts @@ -1,6 +1,6 @@ // @experimentalDecorators: true // @emitDecoratorMetadata: true -// @target: es5 +// @target: es5, es2015 // @module: commonjs // @filename: auxiliry.ts diff --git a/tests/cases/compiler/metadataOfClassFromModule.ts b/tests/cases/compiler/metadataOfClassFromModule.ts index a7aa5fbcce018..910251cf43c2c 100644 --- a/tests/cases/compiler/metadataOfClassFromModule.ts +++ b/tests/cases/compiler/metadataOfClassFromModule.ts @@ -1,6 +1,6 @@ // @experimentalDecorators: true // @emitDecoratorMetadata: true -// @target: es5 +// @target: es5, es2015 namespace MyModule { export function inject(target: any, key: string): void { } diff --git a/tests/cases/compiler/metadataOfEventAlias.ts b/tests/cases/compiler/metadataOfEventAlias.ts index 4f098777a9ef9..162c82cb317b0 100644 --- a/tests/cases/compiler/metadataOfEventAlias.ts +++ b/tests/cases/compiler/metadataOfEventAlias.ts @@ -1,6 +1,6 @@ // @experimentalDecorators: true // @emitDecoratorMetadata: true -// @target: es5 +// @target: es5, es2015 // @skipLibCheck: true // @filename: event.ts diff --git a/tests/cases/compiler/metadataReferencedWithinFilteredUnion.ts b/tests/cases/compiler/metadataReferencedWithinFilteredUnion.ts index 1ccb6ff5e1fcf..e3b8b63d6b4e8 100644 --- a/tests/cases/compiler/metadataReferencedWithinFilteredUnion.ts +++ b/tests/cases/compiler/metadataReferencedWithinFilteredUnion.ts @@ -1,6 +1,6 @@ // @experimentalDecorators: true // @emitDecoratorMetadata: true -// @target: es5 +// @target: es5, es2015 // @filename: Class1.ts // @strictNullChecks: true, false // @strictPropertyInitialization: false diff --git a/tests/cases/compiler/methodContainingLocalFunction.ts b/tests/cases/compiler/methodContainingLocalFunction.ts index dace65f9f8e26..b7a5204d19b21 100644 --- a/tests/cases/compiler/methodContainingLocalFunction.ts +++ b/tests/cases/compiler/methodContainingLocalFunction.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: ES5 +// @target: ES5, ES2015 // The first case here (BugExhibition) caused a crash. Try with different permutations of features. class BugExhibition { public exhibitBug() { diff --git a/tests/cases/compiler/modifierParenCast.ts b/tests/cases/compiler/modifierParenCast.ts index c2b09f54b687e..788c735019d7a 100644 --- a/tests/cases/compiler/modifierParenCast.ts +++ b/tests/cases/compiler/modifierParenCast.ts @@ -1,4 +1,4 @@ -//@target: ES5 +//@target: ES5, ES2015 let readonly: any = undefined; let override: any = undefined; diff --git a/tests/cases/compiler/modularizeLibrary_ErrorFromUsingES6ArrayWithOnlyES6ArrayLib.ts b/tests/cases/compiler/modularizeLibrary_ErrorFromUsingES6ArrayWithOnlyES6ArrayLib.ts index 3f6b9a5e35a49..42c149575c9c1 100644 --- a/tests/cases/compiler/modularizeLibrary_ErrorFromUsingES6ArrayWithOnlyES6ArrayLib.ts +++ b/tests/cases/compiler/modularizeLibrary_ErrorFromUsingES6ArrayWithOnlyES6ArrayLib.ts @@ -1,5 +1,5 @@ // @lib: es2015.core -// @target: es5 +// @target: es5, es2015 // Error missing basic JavaScript objects function f(x: number, y: number, z: number) { diff --git a/tests/cases/compiler/modularizeLibrary_UsingES5LibAndES6ArrayLib.ts b/tests/cases/compiler/modularizeLibrary_UsingES5LibAndES6ArrayLib.ts index b7697af1f7ffe..259956caca938 100644 --- a/tests/cases/compiler/modularizeLibrary_UsingES5LibAndES6ArrayLib.ts +++ b/tests/cases/compiler/modularizeLibrary_UsingES5LibAndES6ArrayLib.ts @@ -1,5 +1,5 @@ // @lib: es5,es2015.core -// @target: es5 +// @target: es5, es2015 // No error function f(x: number, y: number, z: number) { diff --git a/tests/cases/compiler/moduleAugmentationGlobal8.ts b/tests/cases/compiler/moduleAugmentationGlobal8.ts index 9014c70c7e358..1555b0c739bd4 100644 --- a/tests/cases/compiler/moduleAugmentationGlobal8.ts +++ b/tests/cases/compiler/moduleAugmentationGlobal8.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: es5 +// @target: es5, es2015 // @module: esnext namespace A { declare global { diff --git a/tests/cases/compiler/moduleAugmentationGlobal8_1.ts b/tests/cases/compiler/moduleAugmentationGlobal8_1.ts index 224363232b950..908e8bb7cd0a9 100644 --- a/tests/cases/compiler/moduleAugmentationGlobal8_1.ts +++ b/tests/cases/compiler/moduleAugmentationGlobal8_1.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: es5 +// @target: es5, es2015 // @module: esnext namespace A { global { diff --git a/tests/cases/compiler/moduleAugmentationsBundledOutput1.ts b/tests/cases/compiler/moduleAugmentationsBundledOutput1.ts index e3f153987eedd..efa3376096fe9 100644 --- a/tests/cases/compiler/moduleAugmentationsBundledOutput1.ts +++ b/tests/cases/compiler/moduleAugmentationsBundledOutput1.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: es5 +// @target: es5, es2015 // @module: amd // @declaration: true // @outFile: out.js diff --git a/tests/cases/compiler/moduledecl.ts b/tests/cases/compiler/moduledecl.ts index 0a1a9cf387751..1b5f5eae7656a 100644 --- a/tests/cases/compiler/moduledecl.ts +++ b/tests/cases/compiler/moduledecl.ts @@ -1,6 +1,6 @@ // @strict: false // @declaration: true -// @target: es5 +// @target: es5, es2015 namespace a { } diff --git a/tests/cases/compiler/nestedLoopWithOnlyInnerLetCaptured.ts b/tests/cases/compiler/nestedLoopWithOnlyInnerLetCaptured.ts index 6cbfc29c87747..5e26c6183813b 100644 --- a/tests/cases/compiler/nestedLoopWithOnlyInnerLetCaptured.ts +++ b/tests/cases/compiler/nestedLoopWithOnlyInnerLetCaptured.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: es5 +// @target: es5, es2015 declare let doSomething; for (let a1 of []) diff --git a/tests/cases/compiler/nestedLoops.ts b/tests/cases/compiler/nestedLoops.ts index c480b4b1c68f7..eece995b892b8 100644 --- a/tests/cases/compiler/nestedLoops.ts +++ b/tests/cases/compiler/nestedLoops.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 export class Test { constructor() { diff --git a/tests/cases/compiler/nestedSuperCallEmit.ts b/tests/cases/compiler/nestedSuperCallEmit.ts index 1c622f40dd016..c2fadfba4b83e 100644 --- a/tests/cases/compiler/nestedSuperCallEmit.ts +++ b/tests/cases/compiler/nestedSuperCallEmit.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @noTypesAndSymbols: true // https://github.com/microsoft/TypeScript/issues/55646 diff --git a/tests/cases/compiler/newLexicalEnvironmentForConvertedLoop.ts b/tests/cases/compiler/newLexicalEnvironmentForConvertedLoop.ts index 25b351d62a1f8..932ad856d63a4 100644 --- a/tests/cases/compiler/newLexicalEnvironmentForConvertedLoop.ts +++ b/tests/cases/compiler/newLexicalEnvironmentForConvertedLoop.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 function baz(x: any) { return [[x, x]]; } diff --git a/tests/cases/compiler/noEmitHelpers2.ts b/tests/cases/compiler/noEmitHelpers2.ts index 2487ffa1dd8b3..a4b096142fee7 100644 --- a/tests/cases/compiler/noEmitHelpers2.ts +++ b/tests/cases/compiler/noEmitHelpers2.ts @@ -1,7 +1,7 @@ // @noemithelpers: true // @experimentaldecorators: true // @emitdecoratormetadata: true -// @target: es5 +// @target: es5, es2015 declare var decorator: any; diff --git a/tests/cases/compiler/noImplicitAnyMissingGetAccessor.ts b/tests/cases/compiler/noImplicitAnyMissingGetAccessor.ts index d6c7b012cf95a..1fb393fdfc568 100644 --- a/tests/cases/compiler/noImplicitAnyMissingGetAccessor.ts +++ b/tests/cases/compiler/noImplicitAnyMissingGetAccessor.ts @@ -1,5 +1,5 @@ // @noImplicitAny : true -// @target: es5 +// @target: es5, es2015 abstract class Parent { diff --git a/tests/cases/compiler/noImplicitAnyMissingSetAccessor.ts b/tests/cases/compiler/noImplicitAnyMissingSetAccessor.ts index ae18faf1f6fef..36a2c2689395a 100644 --- a/tests/cases/compiler/noImplicitAnyMissingSetAccessor.ts +++ b/tests/cases/compiler/noImplicitAnyMissingSetAccessor.ts @@ -1,5 +1,5 @@ // @noImplicitAny: true -// @target: es5 +// @target: es5, es2015 abstract class Parent { diff --git a/tests/cases/compiler/out-flag.ts b/tests/cases/compiler/out-flag.ts index 0e63b80725f39..193b3833f1585 100644 --- a/tests/cases/compiler/out-flag.ts +++ b/tests/cases/compiler/out-flag.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @sourcemap: true // @declaration: true // @module: commonjs diff --git a/tests/cases/compiler/out-flag2.ts b/tests/cases/compiler/out-flag2.ts index c25ede07b7f34..5c387f95c4f6a 100644 --- a/tests/cases/compiler/out-flag2.ts +++ b/tests/cases/compiler/out-flag2.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @sourcemap: true // @declaration: true // @module: commonjs diff --git a/tests/cases/compiler/out-flag3.ts b/tests/cases/compiler/out-flag3.ts index a0b05ed9aab7a..c5a242268aba8 100644 --- a/tests/cases/compiler/out-flag3.ts +++ b/tests/cases/compiler/out-flag3.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @sourcemap: true // @declaration: true // @module: commonjs diff --git a/tests/cases/compiler/outModuleConcatAmd.ts b/tests/cases/compiler/outModuleConcatAmd.ts index 411a13e72a2ab..ba8ffb945a5d3 100644 --- a/tests/cases/compiler/outModuleConcatAmd.ts +++ b/tests/cases/compiler/outModuleConcatAmd.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @sourcemap: true // @declaration: true // @module: amd diff --git a/tests/cases/compiler/outModuleConcatCommonjs.ts b/tests/cases/compiler/outModuleConcatCommonjs.ts index ed94db087d1d9..2ca18e6a133c3 100644 --- a/tests/cases/compiler/outModuleConcatCommonjs.ts +++ b/tests/cases/compiler/outModuleConcatCommonjs.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @sourcemap: true // @declaration: true // @module: commonjs diff --git a/tests/cases/compiler/outModuleConcatCommonjsDeclarationOnly.ts b/tests/cases/compiler/outModuleConcatCommonjsDeclarationOnly.ts index b21794c4980ca..0f93a0d58bc92 100644 --- a/tests/cases/compiler/outModuleConcatCommonjsDeclarationOnly.ts +++ b/tests/cases/compiler/outModuleConcatCommonjsDeclarationOnly.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @sourcemap: true // @declaration: true // @emitDeclarationOnly: true diff --git a/tests/cases/compiler/outModuleConcatSystem.ts b/tests/cases/compiler/outModuleConcatSystem.ts index c8d9b4e973771..63566fb9e6a97 100644 --- a/tests/cases/compiler/outModuleConcatSystem.ts +++ b/tests/cases/compiler/outModuleConcatSystem.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @sourcemap: true // @declaration: true // @module: system diff --git a/tests/cases/compiler/outModuleConcatUmd.ts b/tests/cases/compiler/outModuleConcatUmd.ts index fa4a4a519c633..81e56933e5350 100644 --- a/tests/cases/compiler/outModuleConcatUmd.ts +++ b/tests/cases/compiler/outModuleConcatUmd.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @sourcemap: true // @declaration: true // @module: umd diff --git a/tests/cases/compiler/outModuleConcatUnspecifiedModuleKind.ts b/tests/cases/compiler/outModuleConcatUnspecifiedModuleKind.ts index 976a47e2f78f1..88cfad8f700f8 100644 --- a/tests/cases/compiler/outModuleConcatUnspecifiedModuleKind.ts +++ b/tests/cases/compiler/outModuleConcatUnspecifiedModuleKind.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @outFile: out.js // @Filename: a.ts diff --git a/tests/cases/compiler/outModuleConcatUnspecifiedModuleKindDeclarationOnly.ts b/tests/cases/compiler/outModuleConcatUnspecifiedModuleKindDeclarationOnly.ts index f928d05c9169a..18e915c0fb7e3 100644 --- a/tests/cases/compiler/outModuleConcatUnspecifiedModuleKindDeclarationOnly.ts +++ b/tests/cases/compiler/outModuleConcatUnspecifiedModuleKindDeclarationOnly.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @outFile: out.js // @declaration: true, // @emitDeclarationOnly: true diff --git a/tests/cases/compiler/outModuleTripleSlashRefs.ts b/tests/cases/compiler/outModuleTripleSlashRefs.ts index fdeb4f9345387..971aa890b9359 100644 --- a/tests/cases/compiler/outModuleTripleSlashRefs.ts +++ b/tests/cases/compiler/outModuleTripleSlashRefs.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @sourcemap: true // @declaration: true // @module: amd diff --git a/tests/cases/compiler/prefixUnaryOperatorsOnExportedVariables.ts b/tests/cases/compiler/prefixUnaryOperatorsOnExportedVariables.ts index 58b05bb513a3e..08e4cadfa9d03 100644 --- a/tests/cases/compiler/prefixUnaryOperatorsOnExportedVariables.ts +++ b/tests/cases/compiler/prefixUnaryOperatorsOnExportedVariables.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @module: system export var x = false; diff --git a/tests/cases/compiler/privacyAccessorDeclFile.ts b/tests/cases/compiler/privacyAccessorDeclFile.ts index 9df33cee7c7aa..4df1ca6043e35 100644 --- a/tests/cases/compiler/privacyAccessorDeclFile.ts +++ b/tests/cases/compiler/privacyAccessorDeclFile.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @module: commonjs // @declaration: true diff --git a/tests/cases/compiler/privacyCannotNameAccessorDeclFile.ts b/tests/cases/compiler/privacyCannotNameAccessorDeclFile.ts index f710740808908..ead5726b431cd 100644 --- a/tests/cases/compiler/privacyCannotNameAccessorDeclFile.ts +++ b/tests/cases/compiler/privacyCannotNameAccessorDeclFile.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @module: commonjs // @declaration: true diff --git a/tests/cases/compiler/privacyGetter.ts b/tests/cases/compiler/privacyGetter.ts index be469c8a537e1..b0d28e88c640c 100644 --- a/tests/cases/compiler/privacyGetter.ts +++ b/tests/cases/compiler/privacyGetter.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 //@module: amd export namespace m1 { export class C1_public { diff --git a/tests/cases/compiler/privacyGloGetter.ts b/tests/cases/compiler/privacyGloGetter.ts index b1e37317df45f..c72ba43fc8226 100644 --- a/tests/cases/compiler/privacyGloGetter.ts +++ b/tests/cases/compiler/privacyGloGetter.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 namespace m1 { export class C1_public { private f1() { diff --git a/tests/cases/compiler/promiseDefinitionTest.ts b/tests/cases/compiler/promiseDefinitionTest.ts index 0e80137983c4f..ec86640bdadff 100644 --- a/tests/cases/compiler/promiseDefinitionTest.ts +++ b/tests/cases/compiler/promiseDefinitionTest.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 class Promise {} async function foo() {} const x = foo(); diff --git a/tests/cases/compiler/properties.ts b/tests/cases/compiler/properties.ts index 49a00c51ed5bf..e0e28fb0ceebc 100644 --- a/tests/cases/compiler/properties.ts +++ b/tests/cases/compiler/properties.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @sourcemap: true // @declaration: true diff --git a/tests/cases/compiler/publicGetterProtectedSetterFromThisParameter.ts b/tests/cases/compiler/publicGetterProtectedSetterFromThisParameter.ts index 04c269cb9289b..92166ed8782fd 100644 --- a/tests/cases/compiler/publicGetterProtectedSetterFromThisParameter.ts +++ b/tests/cases/compiler/publicGetterProtectedSetterFromThisParameter.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 class A { get x() { return 0; } diff --git a/tests/cases/compiler/readonlyInDeclarationFile.ts b/tests/cases/compiler/readonlyInDeclarationFile.ts index 03e643782f01e..82e43e3a543e6 100644 --- a/tests/cases/compiler/readonlyInDeclarationFile.ts +++ b/tests/cases/compiler/readonlyInDeclarationFile.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @declaration: true interface Foo { diff --git a/tests/cases/compiler/readonlyInNonPropertyParameters.ts b/tests/cases/compiler/readonlyInNonPropertyParameters.ts index 4ecc5c9414ec2..4684488241548 100644 --- a/tests/cases/compiler/readonlyInNonPropertyParameters.ts +++ b/tests/cases/compiler/readonlyInNonPropertyParameters.ts @@ -1,5 +1,5 @@ // @strict: false -//@target: ES5 +//@target: ES5, ES2015 // `readonly` won't work outside of property parameters class X { diff --git a/tests/cases/compiler/readonlyMembers.ts b/tests/cases/compiler/readonlyMembers.ts index 2dc690cdeee28..af73e3be18ade 100644 --- a/tests/cases/compiler/readonlyMembers.ts +++ b/tests/cases/compiler/readonlyMembers.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 interface X { readonly a: number; diff --git a/tests/cases/compiler/recursiveProperties.ts b/tests/cases/compiler/recursiveProperties.ts index 59ec19c4e125d..7001fa24153c5 100644 --- a/tests/cases/compiler/recursiveProperties.ts +++ b/tests/cases/compiler/recursiveProperties.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: ES5 +// @target: ES5, ES2015 class A { get testProp() { return this.testProp; } } diff --git a/tests/cases/compiler/restElementWithNumberPropertyName.ts b/tests/cases/compiler/restElementWithNumberPropertyName.ts index 778a968c54f8d..de59477f4c8a5 100644 --- a/tests/cases/compiler/restElementWithNumberPropertyName.ts +++ b/tests/cases/compiler/restElementWithNumberPropertyName.ts @@ -1,2 +1,2 @@ -// @target: es5 +// @target: es5, es2015 const { 0: a, ...b } = [0, 1, 2]; diff --git a/tests/cases/compiler/shadowedReservedCompilerDeclarationsWithNoEmit.ts b/tests/cases/compiler/shadowedReservedCompilerDeclarationsWithNoEmit.ts index 33dd8ac15745b..c8d2f6b05b23f 100644 --- a/tests/cases/compiler/shadowedReservedCompilerDeclarationsWithNoEmit.ts +++ b/tests/cases/compiler/shadowedReservedCompilerDeclarationsWithNoEmit.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: es5 +// @target: es5, es2015 // @noemit: true // Shadowed captured this and super diff --git a/tests/cases/compiler/shorthand-property-es5-es6.ts b/tests/cases/compiler/shorthand-property-es5-es6.ts index 8c8ae4368a0d9..061cdf8dc3f59 100644 --- a/tests/cases/compiler/shorthand-property-es5-es6.ts +++ b/tests/cases/compiler/shorthand-property-es5-es6.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @module: ES6 // @declaration: true diff --git a/tests/cases/compiler/shorthandOfExportedEntity02_targetES5_CommonJS.ts b/tests/cases/compiler/shorthandOfExportedEntity02_targetES5_CommonJS.ts index c7b3a2b37ecfe..1c13ab1ce3064 100644 --- a/tests/cases/compiler/shorthandOfExportedEntity02_targetES5_CommonJS.ts +++ b/tests/cases/compiler/shorthandOfExportedEntity02_targetES5_CommonJS.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @module: commonjs // @declaration: true diff --git a/tests/cases/compiler/shorthandPropertyAssignmentsInDestructuring.ts b/tests/cases/compiler/shorthandPropertyAssignmentsInDestructuring.ts index 9750ea5d16119..ff561fa154725 100644 --- a/tests/cases/compiler/shorthandPropertyAssignmentsInDestructuring.ts +++ b/tests/cases/compiler/shorthandPropertyAssignmentsInDestructuring.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 (function() { diff --git a/tests/cases/compiler/sourceMap-Comment1.ts b/tests/cases/compiler/sourceMap-Comment1.ts index 44395be19e864..8e52d8c986d4c 100644 --- a/tests/cases/compiler/sourceMap-Comment1.ts +++ b/tests/cases/compiler/sourceMap-Comment1.ts @@ -1,3 +1,3 @@ -// @target: ES5 +// @target: ES5, ES2015 // @sourcemap: true // Comment \ No newline at end of file diff --git a/tests/cases/compiler/sourceMap-Comments.ts b/tests/cases/compiler/sourceMap-Comments.ts index 67ea08a43d6d5..b8cbfeb3b49c8 100644 --- a/tests/cases/compiler/sourceMap-Comments.ts +++ b/tests/cases/compiler/sourceMap-Comments.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @sourcemap: true namespace sas.tools { export class Test { diff --git a/tests/cases/compiler/sourceMap-Comments2.ts b/tests/cases/compiler/sourceMap-Comments2.ts index 7a064c81c9ff3..ef147fcc98768 100644 --- a/tests/cases/compiler/sourceMap-Comments2.ts +++ b/tests/cases/compiler/sourceMap-Comments2.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @sourcemap: true function foo(str: string, num: number): void { return; diff --git a/tests/cases/compiler/sourceMap-EmptyFile1.ts b/tests/cases/compiler/sourceMap-EmptyFile1.ts index efbb0920a3ef2..b04d190854f76 100644 --- a/tests/cases/compiler/sourceMap-EmptyFile1.ts +++ b/tests/cases/compiler/sourceMap-EmptyFile1.ts @@ -1,2 +1,2 @@ -// @target: ES5 +// @target: ES5, ES2015 // @sourcemap: true \ No newline at end of file diff --git a/tests/cases/compiler/sourceMap-InterfacePrecedingVariableDeclaration1.ts b/tests/cases/compiler/sourceMap-InterfacePrecedingVariableDeclaration1.ts index b87315ad278a9..13359264a0321 100644 --- a/tests/cases/compiler/sourceMap-InterfacePrecedingVariableDeclaration1.ts +++ b/tests/cases/compiler/sourceMap-InterfacePrecedingVariableDeclaration1.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @sourcemap: true interface I {} diff --git a/tests/cases/compiler/sourceMap-LineBreaks.ts b/tests/cases/compiler/sourceMap-LineBreaks.ts index db8e81a4a7a84..c6e93edc96e9b 100644 --- a/tests/cases/compiler/sourceMap-LineBreaks.ts +++ b/tests/cases/compiler/sourceMap-LineBreaks.ts @@ -1,14 +1,17 @@ -// @target: ES5 +// @target: ES5, ES2015 // @sourcemap: true -var endsWithlineSeparator = 10; 
var endsWithParagraphSeparator = 10; 
var endsWithNextLine = 1;…var endsWithLineFeed = 1; +var endsWithlineSeparator = 10; 
var endsWithParagraphSeparator = 10; 
var endsWithNextLine = 1;…var endsWithLineFeed = 1; var endsWithCarriageReturnLineFeed = 1; -var endsWithCarriageReturn = 1; var endsWithLineFeedCarriageReturn = 1; - var endsWithLineFeedCarriageReturnLineFeed = 1; +var endsWithCarriageReturn = 1; +var endsWithLineFeedCarriageReturn = 1; -var stringLiteralWithLineFeed = "line 1\ +var endsWithLineFeedCarriageReturnLineFeed = 1; + +var stringLiteralWithLineFeed = "line 1\ line 2"; var stringLiteralWithCarriageReturnLineFeed = "line 1\ line 2"; -var stringLiteralWithCarriageReturn = "line 1\ line 2"; +var stringLiteralWithCarriageReturn = "line 1\ +line 2"; var stringLiteralWithLineSeparator = "line 1\
line 2";
var stringLiteralWithParagraphSeparator = "line 1\
line 2";
var stringLiteralWithNextLine = "line 1\…line 2"; \ No newline at end of file diff --git a/tests/cases/compiler/sourceMap-NewLine1.ts b/tests/cases/compiler/sourceMap-NewLine1.ts index 7f7f9c9a147a1..9583b0a903f89 100644 --- a/tests/cases/compiler/sourceMap-NewLine1.ts +++ b/tests/cases/compiler/sourceMap-NewLine1.ts @@ -1,3 +1,3 @@ -// @target: ES5 +// @target: ES5, ES2015 // @sourcemap: true diff --git a/tests/cases/compiler/sourceMap-SemiColon1.ts b/tests/cases/compiler/sourceMap-SemiColon1.ts index c782bfac0caaa..72bc42d827a38 100644 --- a/tests/cases/compiler/sourceMap-SemiColon1.ts +++ b/tests/cases/compiler/sourceMap-SemiColon1.ts @@ -1,3 +1,3 @@ -// @target: ES5 +// @target: ES5, ES2015 // @sourcemap: true ; diff --git a/tests/cases/compiler/sourceMap-SingleSpace1.ts b/tests/cases/compiler/sourceMap-SingleSpace1.ts index 8e8ad5e608dea..bb851d980a68f 100644 --- a/tests/cases/compiler/sourceMap-SingleSpace1.ts +++ b/tests/cases/compiler/sourceMap-SingleSpace1.ts @@ -1,3 +1,3 @@ -// @target: ES5 +// @target: ES5, ES2015 // @sourcemap: true \ No newline at end of file diff --git a/tests/cases/compiler/sourceMap-StringLiteralWithNewLine.ts b/tests/cases/compiler/sourceMap-StringLiteralWithNewLine.ts index 1f800cf995aaa..91ba55cf3334d 100644 --- a/tests/cases/compiler/sourceMap-StringLiteralWithNewLine.ts +++ b/tests/cases/compiler/sourceMap-StringLiteralWithNewLine.ts @@ -1,5 +1,5 @@ // @lib: es5 -// @target: ES5 +// @target: ES5, ES2015 // @sourcemap: true interface Document { diff --git a/tests/cases/compiler/sourceMapValidationClass.ts b/tests/cases/compiler/sourceMapValidationClass.ts index 0be760d06ed7b..e75f3bad725d8 100644 --- a/tests/cases/compiler/sourceMapValidationClass.ts +++ b/tests/cases/compiler/sourceMapValidationClass.ts @@ -1,5 +1,5 @@ // @sourcemap: true -// @target: es5 +// @target: es5, es2015 class Greeter { constructor(public greeting: string, ...b: string[]) { } diff --git a/tests/cases/compiler/sourceMapValidationDecorators.ts b/tests/cases/compiler/sourceMapValidationDecorators.ts index b600691e04ba7..83e60eb9c0eeb 100644 --- a/tests/cases/compiler/sourceMapValidationDecorators.ts +++ b/tests/cases/compiler/sourceMapValidationDecorators.ts @@ -1,5 +1,5 @@ // @sourcemap: true -// @target: es5 +// @target: es5, es2015 // @experimentaldecorators: true declare function ClassDecorator1(target: Function): void; declare function ClassDecorator2(x: number): (target: Function) => void; diff --git a/tests/cases/compiler/superInObjectLiterals_ES5.ts b/tests/cases/compiler/superInObjectLiterals_ES5.ts index 96cdfaa5b7baa..c7a7d7bafadf3 100644 --- a/tests/cases/compiler/superInObjectLiterals_ES5.ts +++ b/tests/cases/compiler/superInObjectLiterals_ES5.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 var obj = { __proto__: { method() { diff --git a/tests/cases/compiler/superPropertyAccessInComputedPropertiesOfNestedType_ES5.ts b/tests/cases/compiler/superPropertyAccessInComputedPropertiesOfNestedType_ES5.ts index 9c7d28f96a435..19812e8db3c49 100644 --- a/tests/cases/compiler/superPropertyAccessInComputedPropertiesOfNestedType_ES5.ts +++ b/tests/cases/compiler/superPropertyAccessInComputedPropertiesOfNestedType_ES5.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 class A { foo() { return 1; } } diff --git a/tests/cases/compiler/superPropertyAccess_ES5.ts b/tests/cases/compiler/superPropertyAccess_ES5.ts index 37897b9e549e7..e4fca23e28562 100644 --- a/tests/cases/compiler/superPropertyAccess_ES5.ts +++ b/tests/cases/compiler/superPropertyAccess_ES5.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 class MyBase { getValue(): number { return 1; } diff --git a/tests/cases/compiler/systemExportAssignment.ts b/tests/cases/compiler/systemExportAssignment.ts index dbf2826b788d7..d40a5b1a43f4c 100644 --- a/tests/cases/compiler/systemExportAssignment.ts +++ b/tests/cases/compiler/systemExportAssignment.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @module: system // @filename: a.d.ts diff --git a/tests/cases/compiler/systemExportAssignment2.ts b/tests/cases/compiler/systemExportAssignment2.ts index e7b1bf9f24ace..224dca42cdd7e 100644 --- a/tests/cases/compiler/systemExportAssignment2.ts +++ b/tests/cases/compiler/systemExportAssignment2.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @module: system // @filename: a.ts diff --git a/tests/cases/compiler/systemExportAssignment3.ts b/tests/cases/compiler/systemExportAssignment3.ts index 6ff15b8692a81..441d4613fda83 100644 --- a/tests/cases/compiler/systemExportAssignment3.ts +++ b/tests/cases/compiler/systemExportAssignment3.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @module: system // @filename: modules.d.ts diff --git a/tests/cases/compiler/systemModule10_ES5.ts b/tests/cases/compiler/systemModule10_ES5.ts index 5e51b9152f894..e2e49f7563fe3 100644 --- a/tests/cases/compiler/systemModule10_ES5.ts +++ b/tests/cases/compiler/systemModule10_ES5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @module: system // @isolatedModules: true diff --git a/tests/cases/compiler/taggedTemplateStringsWithCurriedFunction.ts b/tests/cases/compiler/taggedTemplateStringsWithCurriedFunction.ts index 6d4ba209fe82f..dc5997e824d1f 100644 --- a/tests/cases/compiler/taggedTemplateStringsWithCurriedFunction.ts +++ b/tests/cases/compiler/taggedTemplateStringsWithCurriedFunction.ts @@ -1,5 +1,5 @@ // @strict: false -//@target: es5 +//@target: es5, es2015 // Originated from #38558 diff --git a/tests/cases/compiler/taggedTemplateWithoutDeclaredHelper.ts b/tests/cases/compiler/taggedTemplateWithoutDeclaredHelper.ts index 5e5bea3fd6a9a..003aaf201bb9b 100755 --- a/tests/cases/compiler/taggedTemplateWithoutDeclaredHelper.ts +++ b/tests/cases/compiler/taggedTemplateWithoutDeclaredHelper.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @module: commonjs // @importHelpers: true // @strict: true diff --git a/tests/cases/compiler/taggedTemplatesInModuleAndGlobal.ts b/tests/cases/compiler/taggedTemplatesInModuleAndGlobal.ts index b96b869704a97..1743bf17769d4 100644 --- a/tests/cases/compiler/taggedTemplatesInModuleAndGlobal.ts +++ b/tests/cases/compiler/taggedTemplatesInModuleAndGlobal.ts @@ -1,5 +1,5 @@ // @module: commonjs -// @target: es5 +// @target: es5, es2015 // @filename: global.ts namespace n { diff --git a/tests/cases/compiler/targetEs6DecoratorMetadataImportNotElided.ts b/tests/cases/compiler/targetEs6DecoratorMetadataImportNotElided.ts index 16629f2587992..f564ef8dc707d 100644 --- a/tests/cases/compiler/targetEs6DecoratorMetadataImportNotElided.ts +++ b/tests/cases/compiler/targetEs6DecoratorMetadataImportNotElided.ts @@ -1,5 +1,5 @@ // @module: es6 -// @target: es5 +// @target: es5, es2015 // @emitDecoratorMetadata: true // @experimentalDecorators: true // @filename: deps.ts diff --git a/tests/cases/compiler/templateStringsArrayTypeDefinedInES5Mode.ts b/tests/cases/compiler/templateStringsArrayTypeDefinedInES5Mode.ts index 1a73b7eb430b6..8eb315a956eb0 100644 --- a/tests/cases/compiler/templateStringsArrayTypeDefinedInES5Mode.ts +++ b/tests/cases/compiler/templateStringsArrayTypeDefinedInES5Mode.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 class TemplateStringsArray { } diff --git a/tests/cases/compiler/templateStringsArrayTypeNotDefinedES5Mode.ts b/tests/cases/compiler/templateStringsArrayTypeNotDefinedES5Mode.ts index 3b166baa5c13c..39ef388484fe9 100644 --- a/tests/cases/compiler/templateStringsArrayTypeNotDefinedES5Mode.ts +++ b/tests/cases/compiler/templateStringsArrayTypeNotDefinedES5Mode.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 function f(x: TemplateStringsArray, y: number, z: number) { } diff --git a/tests/cases/compiler/trailingCommasES5.ts b/tests/cases/compiler/trailingCommasES5.ts index d795edee5c173..9a10a41d2f1cc 100644 --- a/tests/cases/compiler/trailingCommasES5.ts +++ b/tests/cases/compiler/trailingCommasES5.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: es5 +// @target: es5, es2015 var o1 = { a: 1, b: 2 }; var o2 = { a: 1, b: 2, }; diff --git a/tests/cases/compiler/transformArrowInBlockScopedLoopVarInitializer.ts b/tests/cases/compiler/transformArrowInBlockScopedLoopVarInitializer.ts index 47e5987eb28a9..de5c127404ca0 100644 --- a/tests/cases/compiler/transformArrowInBlockScopedLoopVarInitializer.ts +++ b/tests/cases/compiler/transformArrowInBlockScopedLoopVarInitializer.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: es5 +// @target: es5, es2015 // https://github.com/Microsoft/TypeScript/issues/11236 while (true) diff --git a/tests/cases/compiler/transformNestedGeneratorsWithTry.ts b/tests/cases/compiler/transformNestedGeneratorsWithTry.ts index 7d57c17c7a390..c1ab6ee0b7d99 100644 --- a/tests/cases/compiler/transformNestedGeneratorsWithTry.ts +++ b/tests/cases/compiler/transformNestedGeneratorsWithTry.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @lib: es5,es6 // @filename: main.ts // https://github.com/Microsoft/TypeScript/issues/11177 diff --git a/tests/cases/compiler/transformParenthesizesConditionalSubexpression.ts b/tests/cases/compiler/transformParenthesizesConditionalSubexpression.ts index d844a91027938..30f4a3f03aa48 100644 --- a/tests/cases/compiler/transformParenthesizesConditionalSubexpression.ts +++ b/tests/cases/compiler/transformParenthesizesConditionalSubexpression.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 var K = 'k' var a = { p : (true ? { [K] : 'v'} : null) } var b = { p : (true ? { [K] : 'v'} as any : null) } \ No newline at end of file diff --git a/tests/cases/compiler/trivialSubtypeReductionNoStructuralCheck.ts b/tests/cases/compiler/trivialSubtypeReductionNoStructuralCheck.ts index b9917996dee76..603f8570e9f6b 100644 --- a/tests/cases/compiler/trivialSubtypeReductionNoStructuralCheck.ts +++ b/tests/cases/compiler/trivialSubtypeReductionNoStructuralCheck.ts @@ -1,5 +1,5 @@ // @strict: true -// @target: es5 +// @target: es5, es2015 declare const props: WizardStepProps; export class Wizard { diff --git a/tests/cases/compiler/trivialSubtypeReductionNoStructuralCheck2.ts b/tests/cases/compiler/trivialSubtypeReductionNoStructuralCheck2.ts index 2c8e0ee2c64d0..e080671af9901 100644 --- a/tests/cases/compiler/trivialSubtypeReductionNoStructuralCheck2.ts +++ b/tests/cases/compiler/trivialSubtypeReductionNoStructuralCheck2.ts @@ -1,5 +1,5 @@ // @strict: true -// @target: es5 +// @target: es5, es2015 declare const props: WizardStepProps; export class Wizard { diff --git a/tests/cases/compiler/typeAliasDeclarationEmit.ts b/tests/cases/compiler/typeAliasDeclarationEmit.ts index 205a703ae7f0b..46584df6fbfc5 100644 --- a/tests/cases/compiler/typeAliasDeclarationEmit.ts +++ b/tests/cases/compiler/typeAliasDeclarationEmit.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @module: commonjs // @declaration: true diff --git a/tests/cases/compiler/typeAliasDeclarationEmit2.ts b/tests/cases/compiler/typeAliasDeclarationEmit2.ts index 33aecd7d5c9cd..411d1a3fbfb09 100644 --- a/tests/cases/compiler/typeAliasDeclarationEmit2.ts +++ b/tests/cases/compiler/typeAliasDeclarationEmit2.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @module: AMD // @declaration: true diff --git a/tests/cases/compiler/typedArrays-es5.ts b/tests/cases/compiler/typedArrays-es5.ts index acfb3f70b237e..50f3ba92e2add 100644 --- a/tests/cases/compiler/typedArrays-es5.ts +++ b/tests/cases/compiler/typedArrays-es5.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: ES5 +// @target: ES5, ES2015 const float32Array = new Float32Array(1); [...float32Array]; diff --git a/tests/cases/compiler/unusedGetterInClass.ts b/tests/cases/compiler/unusedGetterInClass.ts index cc08954eb75ce..314a1fb511c66 100644 --- a/tests/cases/compiler/unusedGetterInClass.ts +++ b/tests/cases/compiler/unusedGetterInClass.ts @@ -1,4 +1,4 @@ -//@target: ES5 +//@target: ES5, ES2015 //@noUnusedLocals:true //@noUnusedParameters:true diff --git a/tests/cases/compiler/unusedParameterUsedInTypeOf.ts b/tests/cases/compiler/unusedParameterUsedInTypeOf.ts index f1cf83d56c4b0..bbf6c40e9a930 100644 --- a/tests/cases/compiler/unusedParameterUsedInTypeOf.ts +++ b/tests/cases/compiler/unusedParameterUsedInTypeOf.ts @@ -1,4 +1,4 @@ -//@target: ES5 +//@target: ES5, ES2015 //@noUnusedLocals:true //@noUnusedParameters:true diff --git a/tests/cases/compiler/unusedPrivateMembers.ts b/tests/cases/compiler/unusedPrivateMembers.ts index 261023d59d3f5..f872b46dd25c3 100644 --- a/tests/cases/compiler/unusedPrivateMembers.ts +++ b/tests/cases/compiler/unusedPrivateMembers.ts @@ -1,7 +1,7 @@ // @strict: false //@noUnusedLocals:true //@noUnusedParameters:true -//@target:ES5 +//@target:ES5, ES2015 class Test1 { private initializeInternal() { diff --git a/tests/cases/compiler/unusedSetterInClass.ts b/tests/cases/compiler/unusedSetterInClass.ts index 634f2b2b08ea5..3e3ca1286d124 100644 --- a/tests/cases/compiler/unusedSetterInClass.ts +++ b/tests/cases/compiler/unusedSetterInClass.ts @@ -1,4 +1,4 @@ -//@target: ES5 +//@target: ES5, ES2015 //@noUnusedLocals:true //@noUnusedParameters:true diff --git a/tests/cases/compiler/useStrictLikePrologueString01.ts b/tests/cases/compiler/useStrictLikePrologueString01.ts index b76e38ebb06a3..6f3e6e68419b2 100644 --- a/tests/cases/compiler/useStrictLikePrologueString01.ts +++ b/tests/cases/compiler/useStrictLikePrologueString01.ts @@ -1,5 +1,5 @@ //@target: commonjs -//@target: es5 +//@target: es5, es2015 "hey!" " use strict " diff --git a/tests/cases/compiler/yieldInForInInDownlevelGenerator.ts b/tests/cases/compiler/yieldInForInInDownlevelGenerator.ts index bcbd3d0fe3fe3..44b36301fed62 100644 --- a/tests/cases/compiler/yieldInForInInDownlevelGenerator.ts +++ b/tests/cases/compiler/yieldInForInInDownlevelGenerator.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @lib: esnext // https://github.com/microsoft/TypeScript/issues/49808 function* gen() { diff --git a/tests/cases/conformance/Symbols/ES5SymbolProperty1.ts b/tests/cases/conformance/Symbols/ES5SymbolProperty1.ts index 8a9276416c5e4..5433fa80fc3ae 100644 --- a/tests/cases/conformance/Symbols/ES5SymbolProperty1.ts +++ b/tests/cases/conformance/Symbols/ES5SymbolProperty1.ts @@ -1,4 +1,4 @@ -//@target: ES5 +//@target: ES5, ES2015 interface SymbolConstructor { foo: string; } diff --git a/tests/cases/conformance/Symbols/ES5SymbolProperty2.ts b/tests/cases/conformance/Symbols/ES5SymbolProperty2.ts index 00862a8821f57..5347b10e1ed41 100644 --- a/tests/cases/conformance/Symbols/ES5SymbolProperty2.ts +++ b/tests/cases/conformance/Symbols/ES5SymbolProperty2.ts @@ -1,5 +1,5 @@ // @strict: false -//@target: ES5 +//@target: ES5, ES2015 namespace M { var Symbol: any; diff --git a/tests/cases/conformance/Symbols/ES5SymbolProperty3.ts b/tests/cases/conformance/Symbols/ES5SymbolProperty3.ts index a6eecc721241d..2279766e34df0 100644 --- a/tests/cases/conformance/Symbols/ES5SymbolProperty3.ts +++ b/tests/cases/conformance/Symbols/ES5SymbolProperty3.ts @@ -1,4 +1,4 @@ -//@target: ES5 +//@target: ES5, ES2015 var Symbol: any; class C { diff --git a/tests/cases/conformance/Symbols/ES5SymbolProperty4.ts b/tests/cases/conformance/Symbols/ES5SymbolProperty4.ts index 2b14e64a33ced..0f7612454fabd 100644 --- a/tests/cases/conformance/Symbols/ES5SymbolProperty4.ts +++ b/tests/cases/conformance/Symbols/ES5SymbolProperty4.ts @@ -1,4 +1,4 @@ -//@target: ES5 +//@target: ES5, ES2015 var Symbol: { iterator: string }; class C { diff --git a/tests/cases/conformance/Symbols/ES5SymbolProperty5.ts b/tests/cases/conformance/Symbols/ES5SymbolProperty5.ts index 3da931380b43e..6f5ec8f60cf47 100644 --- a/tests/cases/conformance/Symbols/ES5SymbolProperty5.ts +++ b/tests/cases/conformance/Symbols/ES5SymbolProperty5.ts @@ -1,4 +1,4 @@ -//@target: ES5 +//@target: ES5, ES2015 declare var Symbol: { iterator: symbol }; class C { diff --git a/tests/cases/conformance/Symbols/ES5SymbolProperty6.ts b/tests/cases/conformance/Symbols/ES5SymbolProperty6.ts index 59b7d2291aada..6b677389bae26 100644 --- a/tests/cases/conformance/Symbols/ES5SymbolProperty6.ts +++ b/tests/cases/conformance/Symbols/ES5SymbolProperty6.ts @@ -1,4 +1,4 @@ -//@target: ES5 +//@target: ES5, ES2015 class C { [Symbol.iterator]() { } } diff --git a/tests/cases/conformance/Symbols/ES5SymbolProperty7.ts b/tests/cases/conformance/Symbols/ES5SymbolProperty7.ts index 766b86f9b5d33..180a5d614a6b3 100644 --- a/tests/cases/conformance/Symbols/ES5SymbolProperty7.ts +++ b/tests/cases/conformance/Symbols/ES5SymbolProperty7.ts @@ -1,4 +1,4 @@ -//@target: ES5 +//@target: ES5, ES2015 var Symbol: { iterator: any }; class C { diff --git a/tests/cases/conformance/Symbols/ES5SymbolType1.ts b/tests/cases/conformance/Symbols/ES5SymbolType1.ts index bfd5592f8e4c2..810583a1d29d5 100644 --- a/tests/cases/conformance/Symbols/ES5SymbolType1.ts +++ b/tests/cases/conformance/Symbols/ES5SymbolType1.ts @@ -1,3 +1,3 @@ -//@target: ES5 +//@target: ES5, ES2015 var s: symbol; s.toString(); \ No newline at end of file diff --git a/tests/cases/conformance/async/es2017/asyncArrowFunction/arrowFunctionWithParameterNameAsync_es2017.ts b/tests/cases/conformance/async/es2017/asyncArrowFunction/arrowFunctionWithParameterNameAsync_es2017.ts index 8f6b822448d6c..036d09674298c 100644 --- a/tests/cases/conformance/async/es2017/asyncArrowFunction/arrowFunctionWithParameterNameAsync_es2017.ts +++ b/tests/cases/conformance/async/es2017/asyncArrowFunction/arrowFunctionWithParameterNameAsync_es2017.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: ES5 +// @target: ES5, ES2015 // @noEmitHelpers: true const x = async => async; \ No newline at end of file diff --git a/tests/cases/conformance/async/es5/asyncAliasReturnType_es5.ts b/tests/cases/conformance/async/es5/asyncAliasReturnType_es5.ts index 5ab13f88b36fd..cd59c6874d8b8 100644 --- a/tests/cases/conformance/async/es5/asyncAliasReturnType_es5.ts +++ b/tests/cases/conformance/async/es5/asyncAliasReturnType_es5.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @lib: es5,es2015.promise // @noEmitHelpers: true type PromiseAlias = Promise; diff --git a/tests/cases/conformance/async/es5/asyncArrowFunction/arrowFunctionWithParameterNameAsync_es5.ts b/tests/cases/conformance/async/es5/asyncArrowFunction/arrowFunctionWithParameterNameAsync_es5.ts index 025204f36ebd5..cccc70d1b059c 100644 --- a/tests/cases/conformance/async/es5/asyncArrowFunction/arrowFunctionWithParameterNameAsync_es5.ts +++ b/tests/cases/conformance/async/es5/asyncArrowFunction/arrowFunctionWithParameterNameAsync_es5.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: ES5 +// @target: ES5, ES2015 // @lib: es5,es2015.promise // @noEmitHelpers: true diff --git a/tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction10_es5.ts b/tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction10_es5.ts index 14540c2a232e4..5140d29d888e0 100644 --- a/tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction10_es5.ts +++ b/tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction10_es5.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @lib: es5,es2015.promise // @noEmitHelpers: true diff --git a/tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction11_es5.ts b/tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction11_es5.ts index 98630114be973..97c5898bad373 100644 --- a/tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction11_es5.ts +++ b/tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction11_es5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @lib: esnext, dom // @downlevelIteration: true // https://github.com/Microsoft/TypeScript/issues/24722 diff --git a/tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction1_es5.ts b/tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction1_es5.ts index d2aaea2a481ee..19d0f3575eb07 100644 --- a/tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction1_es5.ts +++ b/tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction1_es5.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @lib: es5,es2015.promise // @noEmitHelpers: true diff --git a/tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction2_es5.ts b/tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction2_es5.ts index 8ecd94eb07b51..ab9e346523281 100644 --- a/tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction2_es5.ts +++ b/tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction2_es5.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: ES5 +// @target: ES5, ES2015 // @lib: es5,es2015.promise // @noEmitHelpers: true var f = (await) => { diff --git a/tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction3_es5.ts b/tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction3_es5.ts index 8591b110fab9a..1bdc62ffe7236 100644 --- a/tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction3_es5.ts +++ b/tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction3_es5.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: ES5 +// @target: ES5, ES2015 // @lib: es5,es2015.promise // @noEmitHelpers: true function f(await = await) { diff --git a/tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction4_es5.ts b/tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction4_es5.ts index e6b2bab3c792a..35e9b2f14faad 100644 --- a/tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction4_es5.ts +++ b/tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction4_es5.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @lib: es5,es2015.promise // @noEmitHelpers: true var await = () => { diff --git a/tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction5_es5.ts b/tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction5_es5.ts index a70d7ec5c4264..bcb705b2a9528 100644 --- a/tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction5_es5.ts +++ b/tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction5_es5.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: ES5 +// @target: ES5, ES2015 // @lib: es5,es2015.promise // @noEmitHelpers: true diff --git a/tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction6_es5.ts b/tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction6_es5.ts index 41e26b2e6955a..c8b54cd21b949 100644 --- a/tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction6_es5.ts +++ b/tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction6_es5.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @lib: es5,es2015.promise // @noEmitHelpers: true diff --git a/tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction7_es5.ts b/tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction7_es5.ts index f99ea629dd6c1..1c7764743add4 100644 --- a/tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction7_es5.ts +++ b/tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction7_es5.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @lib: es5,es2015.promise // @noEmitHelpers: true diff --git a/tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction8_es5.ts b/tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction8_es5.ts index 4331a1c151a06..7bb3a450bd37c 100644 --- a/tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction8_es5.ts +++ b/tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction8_es5.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @lib: es5,es2015.promise // @noEmitHelpers: true diff --git a/tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction9_es5.ts b/tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction9_es5.ts index 8b5bc1317b98b..714b0e4538677 100644 --- a/tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction9_es5.ts +++ b/tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction9_es5.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: ES5 +// @target: ES5, ES2015 // @lib: es5,es2015.promise // @noEmitHelpers: true var foo = async (a = await => await): Promise => { diff --git a/tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunctionCapturesArguments_es5.ts b/tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunctionCapturesArguments_es5.ts index 4a800c1c2ceb8..2abc5c8e85b8b 100644 --- a/tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunctionCapturesArguments_es5.ts +++ b/tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunctionCapturesArguments_es5.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @lib: es5,es2015.promise // @noEmitHelpers: true class C { diff --git a/tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunctionCapturesThis_es5.ts b/tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunctionCapturesThis_es5.ts index e863af244903c..ebb157bad1a0e 100644 --- a/tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunctionCapturesThis_es5.ts +++ b/tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunctionCapturesThis_es5.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @lib: es5,es2015.promise // @noEmitHelpers: true class C { diff --git a/tests/cases/conformance/async/es5/asyncArrowFunction/asyncUnParenthesizedArrowFunction_es5.ts b/tests/cases/conformance/async/es5/asyncArrowFunction/asyncUnParenthesizedArrowFunction_es5.ts index be37addad4f87..744938c116c4e 100644 --- a/tests/cases/conformance/async/es5/asyncArrowFunction/asyncUnParenthesizedArrowFunction_es5.ts +++ b/tests/cases/conformance/async/es5/asyncArrowFunction/asyncUnParenthesizedArrowFunction_es5.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: ES5 +// @target: ES5, ES2015 // @lib: es5,es2015.promise // @noEmitHelpers: true diff --git a/tests/cases/conformance/async/es5/asyncAwaitIsolatedModules_es5.ts b/tests/cases/conformance/async/es5/asyncAwaitIsolatedModules_es5.ts index 3f62db2891571..649ced0672a2b 100644 --- a/tests/cases/conformance/async/es5/asyncAwaitIsolatedModules_es5.ts +++ b/tests/cases/conformance/async/es5/asyncAwaitIsolatedModules_es5.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @lib: es5,es2015.promise // @isolatedModules: true import { MyPromise } from "missing"; diff --git a/tests/cases/conformance/async/es5/asyncAwaitNestedClasses_es5.ts b/tests/cases/conformance/async/es5/asyncAwaitNestedClasses_es5.ts index 222718122eff1..d2b75b65e8632 100644 --- a/tests/cases/conformance/async/es5/asyncAwaitNestedClasses_es5.ts +++ b/tests/cases/conformance/async/es5/asyncAwaitNestedClasses_es5.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @lib: es5,es2015.promise // @noEmitHelpers: true // https://github.com/Microsoft/TypeScript/issues/20744 diff --git a/tests/cases/conformance/async/es5/asyncAwait_es5.ts b/tests/cases/conformance/async/es5/asyncAwait_es5.ts index 0254869bfd1c3..8fcf103e478a1 100644 --- a/tests/cases/conformance/async/es5/asyncAwait_es5.ts +++ b/tests/cases/conformance/async/es5/asyncAwait_es5.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @lib: es5,es2015.promise type MyPromise = Promise; declare var MyPromise: typeof Promise; diff --git a/tests/cases/conformance/async/es5/asyncClass_es5.ts b/tests/cases/conformance/async/es5/asyncClass_es5.ts index 70f32702bd032..55b7ce1fef483 100644 --- a/tests/cases/conformance/async/es5/asyncClass_es5.ts +++ b/tests/cases/conformance/async/es5/asyncClass_es5.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @lib: es5,es2015.promise // @noEmitHelpers: true async class C { diff --git a/tests/cases/conformance/async/es5/asyncConstructor_es5.ts b/tests/cases/conformance/async/es5/asyncConstructor_es5.ts index 57cb07561b912..60f7e8743da4f 100644 --- a/tests/cases/conformance/async/es5/asyncConstructor_es5.ts +++ b/tests/cases/conformance/async/es5/asyncConstructor_es5.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @lib: es5,es2015.promise // @noEmitHelpers: true class C { diff --git a/tests/cases/conformance/async/es5/asyncDeclare_es5.ts b/tests/cases/conformance/async/es5/asyncDeclare_es5.ts index aad035337d323..22198aa5a1991 100644 --- a/tests/cases/conformance/async/es5/asyncDeclare_es5.ts +++ b/tests/cases/conformance/async/es5/asyncDeclare_es5.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @lib: es5,es2015.promise // @noEmitHelpers: true declare async function foo(): Promise; \ No newline at end of file diff --git a/tests/cases/conformance/async/es5/asyncEnum_es5.ts b/tests/cases/conformance/async/es5/asyncEnum_es5.ts index 7f0060bf04f2a..abeb94a55116c 100644 --- a/tests/cases/conformance/async/es5/asyncEnum_es5.ts +++ b/tests/cases/conformance/async/es5/asyncEnum_es5.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @lib: es5,es2015.promise // @noEmitHelpers: true async enum E { diff --git a/tests/cases/conformance/async/es5/asyncGetter_es5.ts b/tests/cases/conformance/async/es5/asyncGetter_es5.ts index 8c12c4f346294..f758fe3214256 100644 --- a/tests/cases/conformance/async/es5/asyncGetter_es5.ts +++ b/tests/cases/conformance/async/es5/asyncGetter_es5.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @lib: es5,es2015.promise // @noEmitHelpers: true class C { diff --git a/tests/cases/conformance/async/es5/asyncImportedPromise_es5.ts b/tests/cases/conformance/async/es5/asyncImportedPromise_es5.ts index 9e8494b3c2fdc..ce9bcd8143679 100644 --- a/tests/cases/conformance/async/es5/asyncImportedPromise_es5.ts +++ b/tests/cases/conformance/async/es5/asyncImportedPromise_es5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @lib: es5,es2015.promise // @module: commonjs // @filename: task.ts diff --git a/tests/cases/conformance/async/es5/asyncInterface_es5.ts b/tests/cases/conformance/async/es5/asyncInterface_es5.ts index 7ac70f40a69ac..50bd833b6c543 100644 --- a/tests/cases/conformance/async/es5/asyncInterface_es5.ts +++ b/tests/cases/conformance/async/es5/asyncInterface_es5.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @lib: es5,es2015.promise // @noEmitHelpers: true async interface I { diff --git a/tests/cases/conformance/async/es5/asyncMethodWithSuper_es5.ts b/tests/cases/conformance/async/es5/asyncMethodWithSuper_es5.ts index c89369d02b7a0..f5d60bb5d4cb7 100644 --- a/tests/cases/conformance/async/es5/asyncMethodWithSuper_es5.ts +++ b/tests/cases/conformance/async/es5/asyncMethodWithSuper_es5.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @lib: es5,es2015.promise // @noEmitHelpers: true class A { diff --git a/tests/cases/conformance/async/es5/asyncModule_es5.ts b/tests/cases/conformance/async/es5/asyncModule_es5.ts index 28b30b5a2deb2..0a1a47831eef6 100644 --- a/tests/cases/conformance/async/es5/asyncModule_es5.ts +++ b/tests/cases/conformance/async/es5/asyncModule_es5.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @lib: es5,es2015.promise // @noEmitHelpers: true async namespace M { diff --git a/tests/cases/conformance/async/es5/asyncMultiFile_es5.ts b/tests/cases/conformance/async/es5/asyncMultiFile_es5.ts index 66d4f4e673f85..93d71b0aa21bd 100644 --- a/tests/cases/conformance/async/es5/asyncMultiFile_es5.ts +++ b/tests/cases/conformance/async/es5/asyncMultiFile_es5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @lib: es5,es2015.promise // @filename: a.ts async function f() {} diff --git a/tests/cases/conformance/async/es5/asyncQualifiedReturnType_es5.ts b/tests/cases/conformance/async/es5/asyncQualifiedReturnType_es5.ts index 34fc1b13389bd..ce396994f7c86 100644 --- a/tests/cases/conformance/async/es5/asyncQualifiedReturnType_es5.ts +++ b/tests/cases/conformance/async/es5/asyncQualifiedReturnType_es5.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @lib: es5,es2015.promise // @noEmitHelpers: true namespace X { diff --git a/tests/cases/conformance/async/es5/asyncSetter_es5.ts b/tests/cases/conformance/async/es5/asyncSetter_es5.ts index 8736cccfd67a5..2f1108a0d0bff 100644 --- a/tests/cases/conformance/async/es5/asyncSetter_es5.ts +++ b/tests/cases/conformance/async/es5/asyncSetter_es5.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: ES5 +// @target: ES5, ES2015 // @lib: es5,es2015.promise // @noEmitHelpers: true class C { diff --git a/tests/cases/conformance/async/es5/asyncUseStrict_es5.ts b/tests/cases/conformance/async/es5/asyncUseStrict_es5.ts index cc20d594de55b..6fbe149e30b72 100644 --- a/tests/cases/conformance/async/es5/asyncUseStrict_es5.ts +++ b/tests/cases/conformance/async/es5/asyncUseStrict_es5.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @lib: es5,es2015.promise // @noEmitHelpers: true declare var a: boolean; diff --git a/tests/cases/conformance/async/es5/awaitBinaryExpression/awaitBinaryExpression1_es5.ts b/tests/cases/conformance/async/es5/awaitBinaryExpression/awaitBinaryExpression1_es5.ts index 3ef62d83bf81e..ece53631c483d 100644 --- a/tests/cases/conformance/async/es5/awaitBinaryExpression/awaitBinaryExpression1_es5.ts +++ b/tests/cases/conformance/async/es5/awaitBinaryExpression/awaitBinaryExpression1_es5.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @lib: es5,es2015.promise // @noEmitHelpers: true declare var a: boolean; diff --git a/tests/cases/conformance/async/es5/awaitBinaryExpression/awaitBinaryExpression2_es5.ts b/tests/cases/conformance/async/es5/awaitBinaryExpression/awaitBinaryExpression2_es5.ts index 07d9bfd221453..41771b2de09ca 100644 --- a/tests/cases/conformance/async/es5/awaitBinaryExpression/awaitBinaryExpression2_es5.ts +++ b/tests/cases/conformance/async/es5/awaitBinaryExpression/awaitBinaryExpression2_es5.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @lib: es5,es2015.promise // @noEmitHelpers: true declare var a: boolean; diff --git a/tests/cases/conformance/async/es5/awaitBinaryExpression/awaitBinaryExpression3_es5.ts b/tests/cases/conformance/async/es5/awaitBinaryExpression/awaitBinaryExpression3_es5.ts index 1acb6930b4980..ea7aeb54f4a12 100644 --- a/tests/cases/conformance/async/es5/awaitBinaryExpression/awaitBinaryExpression3_es5.ts +++ b/tests/cases/conformance/async/es5/awaitBinaryExpression/awaitBinaryExpression3_es5.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @lib: es5,es2015.promise // @noEmitHelpers: true declare var a: number; diff --git a/tests/cases/conformance/async/es5/awaitBinaryExpression/awaitBinaryExpression4_es5.ts b/tests/cases/conformance/async/es5/awaitBinaryExpression/awaitBinaryExpression4_es5.ts index 44c1f64315632..8a34e239b528b 100644 --- a/tests/cases/conformance/async/es5/awaitBinaryExpression/awaitBinaryExpression4_es5.ts +++ b/tests/cases/conformance/async/es5/awaitBinaryExpression/awaitBinaryExpression4_es5.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @lib: es5,es2015.promise // @noEmitHelpers: true declare var a: boolean; diff --git a/tests/cases/conformance/async/es5/awaitBinaryExpression/awaitBinaryExpression5_es5.ts b/tests/cases/conformance/async/es5/awaitBinaryExpression/awaitBinaryExpression5_es5.ts index 9e29c5d6cef0e..cde655edaac9e 100644 --- a/tests/cases/conformance/async/es5/awaitBinaryExpression/awaitBinaryExpression5_es5.ts +++ b/tests/cases/conformance/async/es5/awaitBinaryExpression/awaitBinaryExpression5_es5.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @lib: es5,es2015.promise // @noEmitHelpers: true declare var a: boolean; diff --git a/tests/cases/conformance/async/es5/awaitCallExpression/awaitCallExpression1_es5.ts b/tests/cases/conformance/async/es5/awaitCallExpression/awaitCallExpression1_es5.ts index 8f133327c021f..d88f405367deb 100644 --- a/tests/cases/conformance/async/es5/awaitCallExpression/awaitCallExpression1_es5.ts +++ b/tests/cases/conformance/async/es5/awaitCallExpression/awaitCallExpression1_es5.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @lib: es5,es2015.promise // @noEmitHelpers: true declare var a: boolean; diff --git a/tests/cases/conformance/async/es5/awaitCallExpression/awaitCallExpression2_es5.ts b/tests/cases/conformance/async/es5/awaitCallExpression/awaitCallExpression2_es5.ts index b6949b97fcf4c..c069570048530 100644 --- a/tests/cases/conformance/async/es5/awaitCallExpression/awaitCallExpression2_es5.ts +++ b/tests/cases/conformance/async/es5/awaitCallExpression/awaitCallExpression2_es5.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @lib: es5,es2015.promise // @noEmitHelpers: true declare var a: boolean; diff --git a/tests/cases/conformance/async/es5/awaitCallExpression/awaitCallExpression3_es5.ts b/tests/cases/conformance/async/es5/awaitCallExpression/awaitCallExpression3_es5.ts index 10eef215cccab..6ee1f456dd2c5 100644 --- a/tests/cases/conformance/async/es5/awaitCallExpression/awaitCallExpression3_es5.ts +++ b/tests/cases/conformance/async/es5/awaitCallExpression/awaitCallExpression3_es5.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @lib: es5,es2015.promise // @noEmitHelpers: true declare var a: boolean; diff --git a/tests/cases/conformance/async/es5/awaitCallExpression/awaitCallExpression4_es5.ts b/tests/cases/conformance/async/es5/awaitCallExpression/awaitCallExpression4_es5.ts index 9e2159e57304c..d093853b56d2d 100644 --- a/tests/cases/conformance/async/es5/awaitCallExpression/awaitCallExpression4_es5.ts +++ b/tests/cases/conformance/async/es5/awaitCallExpression/awaitCallExpression4_es5.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @lib: es5,es2015.promise // @noEmitHelpers: true declare var a: boolean; diff --git a/tests/cases/conformance/async/es5/awaitCallExpression/awaitCallExpression5_es5.ts b/tests/cases/conformance/async/es5/awaitCallExpression/awaitCallExpression5_es5.ts index 19415c30de544..3c226919d3603 100644 --- a/tests/cases/conformance/async/es5/awaitCallExpression/awaitCallExpression5_es5.ts +++ b/tests/cases/conformance/async/es5/awaitCallExpression/awaitCallExpression5_es5.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @lib: es5,es2015.promise // @noEmitHelpers: true declare var a: boolean; diff --git a/tests/cases/conformance/async/es5/awaitCallExpression/awaitCallExpression6_es5.ts b/tests/cases/conformance/async/es5/awaitCallExpression/awaitCallExpression6_es5.ts index 23804c47a3243..f0d33eb2fbde2 100644 --- a/tests/cases/conformance/async/es5/awaitCallExpression/awaitCallExpression6_es5.ts +++ b/tests/cases/conformance/async/es5/awaitCallExpression/awaitCallExpression6_es5.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @lib: es5,es2015.promise // @noEmitHelpers: true declare var a: boolean; diff --git a/tests/cases/conformance/async/es5/awaitCallExpression/awaitCallExpression7_es5.ts b/tests/cases/conformance/async/es5/awaitCallExpression/awaitCallExpression7_es5.ts index 5227f480c8e80..2c174cdbd968a 100644 --- a/tests/cases/conformance/async/es5/awaitCallExpression/awaitCallExpression7_es5.ts +++ b/tests/cases/conformance/async/es5/awaitCallExpression/awaitCallExpression7_es5.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @lib: es5,es2015.promise // @noEmitHelpers: true declare var a: boolean; diff --git a/tests/cases/conformance/async/es5/awaitCallExpression/awaitCallExpression8_es5.ts b/tests/cases/conformance/async/es5/awaitCallExpression/awaitCallExpression8_es5.ts index ab47d34aac063..cc2ce72c63fdb 100644 --- a/tests/cases/conformance/async/es5/awaitCallExpression/awaitCallExpression8_es5.ts +++ b/tests/cases/conformance/async/es5/awaitCallExpression/awaitCallExpression8_es5.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @lib: es5,es2015.promise // @noEmitHelpers: true declare var a: boolean; diff --git a/tests/cases/conformance/async/es5/awaitClassExpression_es5.ts b/tests/cases/conformance/async/es5/awaitClassExpression_es5.ts index 27eafeb1af596..5cd55c29590d3 100644 --- a/tests/cases/conformance/async/es5/awaitClassExpression_es5.ts +++ b/tests/cases/conformance/async/es5/awaitClassExpression_es5.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @lib: es5,es2015.promise // @noEmitHelpers: true declare class C { } diff --git a/tests/cases/conformance/async/es5/awaitUnion_es5.ts b/tests/cases/conformance/async/es5/awaitUnion_es5.ts index 44ceb1374d6f0..5c609339902a5 100644 --- a/tests/cases/conformance/async/es5/awaitUnion_es5.ts +++ b/tests/cases/conformance/async/es5/awaitUnion_es5.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @lib: es5,es2015.promise // @noEmitHelpers: true declare let a: number | string; diff --git a/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration10_es5.ts b/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration10_es5.ts index a5831c35e1174..b60b062a0e0af 100644 --- a/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration10_es5.ts +++ b/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration10_es5.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: ES5 +// @target: ES5, ES2015 // @lib: es5,es2015.promise // @noEmitHelpers: true async function foo(a = await => await): Promise { diff --git a/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration11_es5.ts b/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration11_es5.ts index 8edf36f9a2f56..4428a09b4482e 100644 --- a/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration11_es5.ts +++ b/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration11_es5.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @lib: es5,es2015.promise // @noEmitHelpers: true async function await(): Promise { diff --git a/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration12_es5.ts b/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration12_es5.ts index 4601fba6ea257..5f0e76528b3ab 100644 --- a/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration12_es5.ts +++ b/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration12_es5.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @lib: es5,es2015.promise // @noEmitHelpers: true var v = async function await(): Promise { } \ No newline at end of file diff --git a/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration13_es5.ts b/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration13_es5.ts index 2b70bc4c6415c..f65bb2a60bf71 100644 --- a/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration13_es5.ts +++ b/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration13_es5.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @lib: es5,es2015.promise // @noEmitHelpers: true async function foo(): Promise { diff --git a/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration14_es5.ts b/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration14_es5.ts index eedfd438b7c23..90b3484838ee3 100644 --- a/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration14_es5.ts +++ b/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration14_es5.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @lib: es5,es2015.promise // @noEmitHelpers: true async function foo(): Promise { diff --git a/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration15_es5.ts b/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration15_es5.ts index 2ffff7b450ee1..3f986b9a12ab8 100644 --- a/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration15_es5.ts +++ b/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration15_es5.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: ES5 +// @target: ES5, ES2015 // @lib: es5,es2015.promise // @noEmitHelpers: true declare class Thenable { then(): void; } diff --git a/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration16_es5.ts b/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration16_es5.ts index e3e15f5427957..5b0f343f142ac 100644 --- a/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration16_es5.ts +++ b/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration16_es5.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @noEmitHelpers: true // @lib: es5,es2015.promise // @allowJs: true diff --git a/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration1_es5.ts b/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration1_es5.ts index 1448b33599244..5d5fadabe970f 100644 --- a/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration1_es5.ts +++ b/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration1_es5.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @lib: es5,es2015.promise // @noEmitHelpers: true async function foo(): Promise { diff --git a/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration2_es5.ts b/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration2_es5.ts index 3a96ed9e35d40..558d46bb2f48e 100644 --- a/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration2_es5.ts +++ b/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration2_es5.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: ES5 +// @target: ES5, ES2015 // @lib: es5,es2015.promise // @noEmitHelpers: true function f(await) { diff --git a/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration3_es5.ts b/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration3_es5.ts index 8591b110fab9a..1bdc62ffe7236 100644 --- a/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration3_es5.ts +++ b/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration3_es5.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: ES5 +// @target: ES5, ES2015 // @lib: es5,es2015.promise // @noEmitHelpers: true function f(await = await) { diff --git a/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration4_es5.ts b/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration4_es5.ts index 40bd69d592fe2..6cc80c37c379c 100644 --- a/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration4_es5.ts +++ b/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration4_es5.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @lib: es5,es2015.promise // @noEmitHelpers: true function await() { diff --git a/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration5_es5.ts b/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration5_es5.ts index 0accc5cfa74a7..8cc25cb883690 100644 --- a/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration5_es5.ts +++ b/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration5_es5.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: ES5 +// @target: ES5, ES2015 // @lib: es5,es2015.promise // @noEmitHelpers: true async function foo(await): Promise { diff --git a/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration6_es5.ts b/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration6_es5.ts index 34ff3b3c4c59d..d2ba08c57dc23 100644 --- a/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration6_es5.ts +++ b/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration6_es5.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @lib: es5,es2015.promise // @noEmitHelpers: true async function foo(a = await): Promise { diff --git a/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration7_es5.ts b/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration7_es5.ts index 53d7bc5edb532..4b6a201aa5a26 100644 --- a/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration7_es5.ts +++ b/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration7_es5.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @lib: es5,es2015.promise // @noEmitHelpers: true async function bar(): Promise { diff --git a/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration8_es5.ts b/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration8_es5.ts index 27db170b08039..b78f6fbc091cb 100644 --- a/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration8_es5.ts +++ b/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration8_es5.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @lib: es5,es2015.promise // @noEmitHelpers: true var v = { [await]: foo } \ No newline at end of file diff --git a/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration9_es5.ts b/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration9_es5.ts index 7a1130f8abfbe..999fa968a85d6 100644 --- a/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration9_es5.ts +++ b/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration9_es5.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @lib: es5,es2015.promise // @noEmitHelpers: true async function foo(): Promise { diff --git a/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclarationCapturesArguments_es5.ts b/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclarationCapturesArguments_es5.ts index b5c82688ddf65..a8276fa1acb74 100644 --- a/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclarationCapturesArguments_es5.ts +++ b/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclarationCapturesArguments_es5.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @lib: es5,es2015.promise // @noEmitHelpers: true class C { diff --git a/tests/cases/conformance/async/es6/asyncArrowFunction/arrowFunctionWithParameterNameAsync_es6.ts b/tests/cases/conformance/async/es6/asyncArrowFunction/arrowFunctionWithParameterNameAsync_es6.ts index 8f6b822448d6c..036d09674298c 100644 --- a/tests/cases/conformance/async/es6/asyncArrowFunction/arrowFunctionWithParameterNameAsync_es6.ts +++ b/tests/cases/conformance/async/es6/asyncArrowFunction/arrowFunctionWithParameterNameAsync_es6.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: ES5 +// @target: ES5, ES2015 // @noEmitHelpers: true const x = async => async; \ No newline at end of file diff --git a/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractAccessor.ts b/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractAccessor.ts index 6dff4c4e54af1..98c8c947b6a72 100644 --- a/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractAccessor.ts +++ b/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractAccessor.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: es5 +// @target: es5, es2015 abstract class A { abstract get a(); diff --git a/tests/cases/conformance/classes/constructorDeclarations/superCalls/derivedClassSuperProperties.ts b/tests/cases/conformance/classes/constructorDeclarations/superCalls/derivedClassSuperProperties.ts index 2cc495efc2e2b..16b7ac13a239b 100644 --- a/tests/cases/conformance/classes/constructorDeclarations/superCalls/derivedClassSuperProperties.ts +++ b/tests/cases/conformance/classes/constructorDeclarations/superCalls/derivedClassSuperProperties.ts @@ -1,6 +1,6 @@ // @strict: false // @experimentaldecorators: true -// @target: ES5 +// @target: ES5, ES2015 declare const decorate: any; diff --git a/tests/cases/conformance/classes/constructorDeclarations/superCalls/derivedClassSuperStatementPosition.ts b/tests/cases/conformance/classes/constructorDeclarations/superCalls/derivedClassSuperStatementPosition.ts index b58c6c1574080..9c6998c646987 100644 --- a/tests/cases/conformance/classes/constructorDeclarations/superCalls/derivedClassSuperStatementPosition.ts +++ b/tests/cases/conformance/classes/constructorDeclarations/superCalls/derivedClassSuperStatementPosition.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 class DerivedBasic extends Object { prop = 1; diff --git a/tests/cases/conformance/classes/members/accessibility/privateClassPropertyAccessibleWithinNestedClass.ts b/tests/cases/conformance/classes/members/accessibility/privateClassPropertyAccessibleWithinNestedClass.ts index a958a5ae6244e..7f6d543a479cd 100644 --- a/tests/cases/conformance/classes/members/accessibility/privateClassPropertyAccessibleWithinNestedClass.ts +++ b/tests/cases/conformance/classes/members/accessibility/privateClassPropertyAccessibleWithinNestedClass.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // no errors class C { diff --git a/tests/cases/conformance/classes/members/accessibility/protectedClassPropertyAccessibleWithinClass.ts b/tests/cases/conformance/classes/members/accessibility/protectedClassPropertyAccessibleWithinClass.ts index 871261fa1315b..971ce76732560 100644 --- a/tests/cases/conformance/classes/members/accessibility/protectedClassPropertyAccessibleWithinClass.ts +++ b/tests/cases/conformance/classes/members/accessibility/protectedClassPropertyAccessibleWithinClass.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: ES5 +// @target: ES5, ES2015 // no errors class C { diff --git a/tests/cases/conformance/classes/members/accessibility/protectedClassPropertyAccessibleWithinNestedClass.ts b/tests/cases/conformance/classes/members/accessibility/protectedClassPropertyAccessibleWithinNestedClass.ts index 3482d1a09e9cd..597bb4399c024 100644 --- a/tests/cases/conformance/classes/members/accessibility/protectedClassPropertyAccessibleWithinNestedClass.ts +++ b/tests/cases/conformance/classes/members/accessibility/protectedClassPropertyAccessibleWithinNestedClass.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // no errors class C { diff --git a/tests/cases/conformance/classes/members/accessibility/protectedClassPropertyAccessibleWithinNestedSubclass.ts b/tests/cases/conformance/classes/members/accessibility/protectedClassPropertyAccessibleWithinNestedSubclass.ts index aae17b8362f98..fd55a726715a1 100644 --- a/tests/cases/conformance/classes/members/accessibility/protectedClassPropertyAccessibleWithinNestedSubclass.ts +++ b/tests/cases/conformance/classes/members/accessibility/protectedClassPropertyAccessibleWithinNestedSubclass.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 class B { protected x: string; diff --git a/tests/cases/conformance/classes/members/accessibility/protectedClassPropertyAccessibleWithinSubclass.ts b/tests/cases/conformance/classes/members/accessibility/protectedClassPropertyAccessibleWithinSubclass.ts index 56c591f41ce6d..61944ad5cd9b7 100644 --- a/tests/cases/conformance/classes/members/accessibility/protectedClassPropertyAccessibleWithinSubclass.ts +++ b/tests/cases/conformance/classes/members/accessibility/protectedClassPropertyAccessibleWithinSubclass.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // no errors class B { diff --git a/tests/cases/conformance/classes/members/inheritanceAndOverriding/derivedClassOverridesProtectedMembers.ts b/tests/cases/conformance/classes/members/inheritanceAndOverriding/derivedClassOverridesProtectedMembers.ts index 76c03c73d6336..98d33ae64c82f 100644 --- a/tests/cases/conformance/classes/members/inheritanceAndOverriding/derivedClassOverridesProtectedMembers.ts +++ b/tests/cases/conformance/classes/members/inheritanceAndOverriding/derivedClassOverridesProtectedMembers.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 var x: { foo: string; } var y: { foo: string; bar: string; } diff --git a/tests/cases/conformance/classes/members/inheritanceAndOverriding/derivedClassOverridesProtectedMembers2.ts b/tests/cases/conformance/classes/members/inheritanceAndOverriding/derivedClassOverridesProtectedMembers2.ts index fb1955f1d952d..5852d492221c9 100644 --- a/tests/cases/conformance/classes/members/inheritanceAndOverriding/derivedClassOverridesProtectedMembers2.ts +++ b/tests/cases/conformance/classes/members/inheritanceAndOverriding/derivedClassOverridesProtectedMembers2.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 var x: { foo: string; } var y: { foo: string; bar: string; } diff --git a/tests/cases/conformance/classes/members/inheritanceAndOverriding/derivedClassOverridesProtectedMembers3.ts b/tests/cases/conformance/classes/members/inheritanceAndOverriding/derivedClassOverridesProtectedMembers3.ts index d24e313c24093..87486e247c6bc 100644 --- a/tests/cases/conformance/classes/members/inheritanceAndOverriding/derivedClassOverridesProtectedMembers3.ts +++ b/tests/cases/conformance/classes/members/inheritanceAndOverriding/derivedClassOverridesProtectedMembers3.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 var x: { foo: string; } var y: { foo: string; bar: string; } diff --git a/tests/cases/conformance/classes/members/inheritanceAndOverriding/derivedClassWithPrivateInstanceShadowingProtectedInstance.ts b/tests/cases/conformance/classes/members/inheritanceAndOverriding/derivedClassWithPrivateInstanceShadowingProtectedInstance.ts index 0ccee01875ea9..3eb537e99aab6 100644 --- a/tests/cases/conformance/classes/members/inheritanceAndOverriding/derivedClassWithPrivateInstanceShadowingProtectedInstance.ts +++ b/tests/cases/conformance/classes/members/inheritanceAndOverriding/derivedClassWithPrivateInstanceShadowingProtectedInstance.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 class Base { protected x: string; diff --git a/tests/cases/conformance/classes/members/inheritanceAndOverriding/derivedClassWithPrivateStaticShadowingProtectedStatic.ts b/tests/cases/conformance/classes/members/inheritanceAndOverriding/derivedClassWithPrivateStaticShadowingProtectedStatic.ts index a9ee037315f4c..59c8ed5c412f9 100644 --- a/tests/cases/conformance/classes/members/inheritanceAndOverriding/derivedClassWithPrivateStaticShadowingProtectedStatic.ts +++ b/tests/cases/conformance/classes/members/inheritanceAndOverriding/derivedClassWithPrivateStaticShadowingProtectedStatic.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 class Base { protected static x: string; diff --git a/tests/cases/conformance/classes/members/instanceAndStaticMembers/thisAndSuperInStaticMembers3.ts b/tests/cases/conformance/classes/members/instanceAndStaticMembers/thisAndSuperInStaticMembers3.ts index 413c7c54bc832..11987b514f7d1 100644 --- a/tests/cases/conformance/classes/members/instanceAndStaticMembers/thisAndSuperInStaticMembers3.ts +++ b/tests/cases/conformance/classes/members/instanceAndStaticMembers/thisAndSuperInStaticMembers3.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @useDefineForClassFields: true // @noTypesAndSymbols: true diff --git a/tests/cases/conformance/classes/members/instanceAndStaticMembers/thisAndSuperInStaticMembers4.ts b/tests/cases/conformance/classes/members/instanceAndStaticMembers/thisAndSuperInStaticMembers4.ts index aad82e41dc531..456176121f699 100644 --- a/tests/cases/conformance/classes/members/instanceAndStaticMembers/thisAndSuperInStaticMembers4.ts +++ b/tests/cases/conformance/classes/members/instanceAndStaticMembers/thisAndSuperInStaticMembers4.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @useDefineForClassFields: false // @noTypesAndSymbols: true diff --git a/tests/cases/conformance/classes/members/privateNames/privateNameES5Ban.ts b/tests/cases/conformance/classes/members/privateNames/privateNameES5Ban.ts index 0d5ec7a66499d..b2f395438e73b 100644 --- a/tests/cases/conformance/classes/members/privateNames/privateNameES5Ban.ts +++ b/tests/cases/conformance/classes/members/privateNames/privateNameES5Ban.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 class A { constructor() {} diff --git a/tests/cases/conformance/classes/propertyMemberDeclarations/accessibilityModifiers.ts b/tests/cases/conformance/classes/propertyMemberDeclarations/accessibilityModifiers.ts index d51dd6f91cdff..00030213265a3 100644 --- a/tests/cases/conformance/classes/propertyMemberDeclarations/accessibilityModifiers.ts +++ b/tests/cases/conformance/classes/propertyMemberDeclarations/accessibilityModifiers.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: ES5 +// @target: ES5, ES2015 // No errors class C { diff --git a/tests/cases/conformance/classes/propertyMemberDeclarations/accessorsOverrideProperty7.ts b/tests/cases/conformance/classes/propertyMemberDeclarations/accessorsOverrideProperty7.ts index 9be3dad44f832..92cd0c97719d7 100644 --- a/tests/cases/conformance/classes/propertyMemberDeclarations/accessorsOverrideProperty7.ts +++ b/tests/cases/conformance/classes/propertyMemberDeclarations/accessorsOverrideProperty7.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @useDefineForClassFields: true abstract class A { abstract p = 'yep' diff --git a/tests/cases/conformance/classes/propertyMemberDeclarations/memberAccessorDeclarations/accessorWithES5.ts b/tests/cases/conformance/classes/propertyMemberDeclarations/memberAccessorDeclarations/accessorWithES5.ts index d6bbb1752f662..3a3a15bac7747 100644 --- a/tests/cases/conformance/classes/propertyMemberDeclarations/memberAccessorDeclarations/accessorWithES5.ts +++ b/tests/cases/conformance/classes/propertyMemberDeclarations/memberAccessorDeclarations/accessorWithES5.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: ES5 +// @target: ES5, ES2015 class C { get x() { diff --git a/tests/cases/conformance/classes/propertyMemberDeclarations/memberAccessorDeclarations/accessorWithMismatchedAccessibilityModifiers.ts b/tests/cases/conformance/classes/propertyMemberDeclarations/memberAccessorDeclarations/accessorWithMismatchedAccessibilityModifiers.ts index 53474743ab6aa..270cd2e58a604 100644 --- a/tests/cases/conformance/classes/propertyMemberDeclarations/memberAccessorDeclarations/accessorWithMismatchedAccessibilityModifiers.ts +++ b/tests/cases/conformance/classes/propertyMemberDeclarations/memberAccessorDeclarations/accessorWithMismatchedAccessibilityModifiers.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 class C { get x() { diff --git a/tests/cases/conformance/classes/propertyMemberDeclarations/memberAccessorDeclarations/ambientAccessors.ts b/tests/cases/conformance/classes/propertyMemberDeclarations/memberAccessorDeclarations/ambientAccessors.ts index 597a1adbf5a78..dcf7d348f842e 100644 --- a/tests/cases/conformance/classes/propertyMemberDeclarations/memberAccessorDeclarations/ambientAccessors.ts +++ b/tests/cases/conformance/classes/propertyMemberDeclarations/memberAccessorDeclarations/ambientAccessors.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @declaration: true // ok to use accessors in ambient class in ES3 declare class C { diff --git a/tests/cases/conformance/classes/propertyMemberDeclarations/propertyOverridesAccessors4.ts b/tests/cases/conformance/classes/propertyMemberDeclarations/propertyOverridesAccessors4.ts index f4357465676f0..df4621a0ee4f4 100644 --- a/tests/cases/conformance/classes/propertyMemberDeclarations/propertyOverridesAccessors4.ts +++ b/tests/cases/conformance/classes/propertyMemberDeclarations/propertyOverridesAccessors4.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @useDefineForClassFields: true declare class Animal { get sound(): string diff --git a/tests/cases/conformance/classes/propertyMemberDeclarations/staticPropertyNameConflicts.ts b/tests/cases/conformance/classes/propertyMemberDeclarations/staticPropertyNameConflicts.ts index 1ecd80f7b0dda..cc679641730b0 100644 --- a/tests/cases/conformance/classes/propertyMemberDeclarations/staticPropertyNameConflicts.ts +++ b/tests/cases/conformance/classes/propertyMemberDeclarations/staticPropertyNameConflicts.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @useDefineForClassFields: true,false const FunctionPropertyNames = { diff --git a/tests/cases/conformance/classes/propertyMemberDeclarations/twoAccessorsWithSameName.ts b/tests/cases/conformance/classes/propertyMemberDeclarations/twoAccessorsWithSameName.ts index 2c02bac5c0073..272f006ae4719 100644 --- a/tests/cases/conformance/classes/propertyMemberDeclarations/twoAccessorsWithSameName.ts +++ b/tests/cases/conformance/classes/propertyMemberDeclarations/twoAccessorsWithSameName.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: ES5 +// @target: ES5, ES2015 class C { get x() { return 1; } get x() { return 1; } // error diff --git a/tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor1.ts b/tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor1.ts index 19abd8231d695..62a8f447eed55 100644 --- a/tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor1.ts +++ b/tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor1.ts @@ -1,4 +1,4 @@ -// @target:es5 +// @target:es5, es2015 // @experimentaldecorators: true declare function dec(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor; diff --git a/tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor2.ts b/tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor2.ts index 5250b42929caa..7b2f273dcde36 100644 --- a/tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor2.ts +++ b/tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor2.ts @@ -1,4 +1,4 @@ -// @target:es5 +// @target:es5, es2015 // @experimentaldecorators: true declare function dec(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor; diff --git a/tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor3.ts b/tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor3.ts index c0545f05c9c37..3c224d6a6c841 100644 --- a/tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor3.ts +++ b/tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor3.ts @@ -1,5 +1,5 @@ // @strict: false -// @target:es5 +// @target:es5, es2015 // @experimentaldecorators: true declare function dec(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor; diff --git a/tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor4.ts b/tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor4.ts index 35c15ae7a6f31..3802bd556a546 100644 --- a/tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor4.ts +++ b/tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor4.ts @@ -1,4 +1,4 @@ -// @target:es5 +// @target:es5, es2015 // @experimentaldecorators: true declare function dec(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor; diff --git a/tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor5.ts b/tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor5.ts index b32dd98ed2a1d..a68a547501508 100644 --- a/tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor5.ts +++ b/tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor5.ts @@ -1,4 +1,4 @@ -// @target:es5 +// @target:es5, es2015 // @experimentaldecorators: true declare function dec(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor; diff --git a/tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor6.ts b/tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor6.ts index edb86bd521da5..ef87649fc280e 100644 --- a/tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor6.ts +++ b/tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor6.ts @@ -1,5 +1,5 @@ // @strict: false -// @target:es5 +// @target:es5, es2015 // @experimentaldecorators: true declare function dec(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor; diff --git a/tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor7.ts b/tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor7.ts index b20a5a85dfbf8..a63969c87a788 100644 --- a/tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor7.ts +++ b/tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor7.ts @@ -1,4 +1,4 @@ -// @target:es5 +// @target:es5, es2015 // @experimentaldecorators: true declare function dec1(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor; declare function dec2(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor; diff --git a/tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor8.ts b/tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor8.ts index 3caf4b406d24b..64942b1b347d8 100644 --- a/tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor8.ts +++ b/tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor8.ts @@ -1,4 +1,4 @@ -// @target:es5 +// @target:es5, es2015 // @experimentaldecorators: true // @emitdecoratormetadata: true declare function dec(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor; diff --git a/tests/cases/conformance/decorators/class/constructor/decoratorOnClassConstructor1.ts b/tests/cases/conformance/decorators/class/constructor/decoratorOnClassConstructor1.ts index b9ee9295744d1..a334c590e63f6 100644 --- a/tests/cases/conformance/decorators/class/constructor/decoratorOnClassConstructor1.ts +++ b/tests/cases/conformance/decorators/class/constructor/decoratorOnClassConstructor1.ts @@ -1,4 +1,4 @@ -// @target:es5 +// @target:es5, es2015 // @experimentaldecorators: true declare function dec(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor; diff --git a/tests/cases/conformance/decorators/class/constructor/decoratorOnClassConstructor2.ts b/tests/cases/conformance/decorators/class/constructor/decoratorOnClassConstructor2.ts index dece1cc992cd4..4a661f2718870 100644 --- a/tests/cases/conformance/decorators/class/constructor/decoratorOnClassConstructor2.ts +++ b/tests/cases/conformance/decorators/class/constructor/decoratorOnClassConstructor2.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @module: commonjs // @experimentaldecorators: true diff --git a/tests/cases/conformance/decorators/class/constructor/decoratorOnClassConstructor3.ts b/tests/cases/conformance/decorators/class/constructor/decoratorOnClassConstructor3.ts index ca89b65a7ac02..6c76fb81e0067 100644 --- a/tests/cases/conformance/decorators/class/constructor/decoratorOnClassConstructor3.ts +++ b/tests/cases/conformance/decorators/class/constructor/decoratorOnClassConstructor3.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @module: commonjs // @experimentaldecorators: true diff --git a/tests/cases/conformance/decorators/class/constructor/decoratorOnClassConstructor4.ts b/tests/cases/conformance/decorators/class/constructor/decoratorOnClassConstructor4.ts index 55e3a1423fafd..bce34e7b1244d 100644 --- a/tests/cases/conformance/decorators/class/constructor/decoratorOnClassConstructor4.ts +++ b/tests/cases/conformance/decorators/class/constructor/decoratorOnClassConstructor4.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @module: commonjs // @experimentaldecorators: true // @emitdecoratormetadata: true diff --git a/tests/cases/conformance/decorators/class/constructor/parameter/decoratorOnClassConstructorParameter1.ts b/tests/cases/conformance/decorators/class/constructor/parameter/decoratorOnClassConstructorParameter1.ts index dbfd38c7896d6..775d16df69000 100644 --- a/tests/cases/conformance/decorators/class/constructor/parameter/decoratorOnClassConstructorParameter1.ts +++ b/tests/cases/conformance/decorators/class/constructor/parameter/decoratorOnClassConstructorParameter1.ts @@ -1,4 +1,4 @@ -// @target:es5 +// @target:es5, es2015 // @experimentaldecorators: true declare function dec(target: Function, propertyKey: string | symbol, parameterIndex: number): void; diff --git a/tests/cases/conformance/decorators/class/constructor/parameter/decoratorOnClassConstructorParameter4.ts b/tests/cases/conformance/decorators/class/constructor/parameter/decoratorOnClassConstructorParameter4.ts index 768abd5140e8d..13532d94a20e6 100644 --- a/tests/cases/conformance/decorators/class/constructor/parameter/decoratorOnClassConstructorParameter4.ts +++ b/tests/cases/conformance/decorators/class/constructor/parameter/decoratorOnClassConstructorParameter4.ts @@ -1,5 +1,5 @@ // @strict: false -// @target:es5 +// @target:es5, es2015 // @experimentaldecorators: true declare function dec(target: Function, propertyKey: string | symbol, parameterIndex: number): void; diff --git a/tests/cases/conformance/decorators/class/decoratedBlockScopedClass1.ts b/tests/cases/conformance/decorators/class/decoratedBlockScopedClass1.ts index 521dd6a31c6aa..0d90e92c62dce 100644 --- a/tests/cases/conformance/decorators/class/decoratedBlockScopedClass1.ts +++ b/tests/cases/conformance/decorators/class/decoratedBlockScopedClass1.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @experimentaldecorators: true // @emitDecoratorMetadata: true // @filename: a.ts diff --git a/tests/cases/conformance/decorators/class/decoratedBlockScopedClass2.ts b/tests/cases/conformance/decorators/class/decoratedBlockScopedClass2.ts index 7d8de6894f783..49e7ad0a4d0e4 100644 --- a/tests/cases/conformance/decorators/class/decoratedBlockScopedClass2.ts +++ b/tests/cases/conformance/decorators/class/decoratedBlockScopedClass2.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @experimentaldecorators: true // @emitDecoratorMetadata: true // @filename: a.ts diff --git a/tests/cases/conformance/decorators/class/decoratedBlockScopedClass3.ts b/tests/cases/conformance/decorators/class/decoratedBlockScopedClass3.ts index 48eebc559f87a..ee2d46ed78dcb 100644 --- a/tests/cases/conformance/decorators/class/decoratedBlockScopedClass3.ts +++ b/tests/cases/conformance/decorators/class/decoratedBlockScopedClass3.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @experimentaldecorators: true // @emitDecoratorMetadata: true // @filename: a.ts diff --git a/tests/cases/conformance/decorators/class/decoratorChecksFunctionBodies.ts b/tests/cases/conformance/decorators/class/decoratorChecksFunctionBodies.ts index 0db73f7b1e216..49d805d18731e 100644 --- a/tests/cases/conformance/decorators/class/decoratorChecksFunctionBodies.ts +++ b/tests/cases/conformance/decorators/class/decoratorChecksFunctionBodies.ts @@ -1,4 +1,4 @@ -// @target:es5 +// @target:es5, es2015 // @experimentaldecorators: true // from #2971 diff --git a/tests/cases/conformance/decorators/class/decoratorInstantiateModulesInFunctionBodies.ts b/tests/cases/conformance/decorators/class/decoratorInstantiateModulesInFunctionBodies.ts index 7ba5a6839b936..15ac4522861a7 100644 --- a/tests/cases/conformance/decorators/class/decoratorInstantiateModulesInFunctionBodies.ts +++ b/tests/cases/conformance/decorators/class/decoratorInstantiateModulesInFunctionBodies.ts @@ -1,4 +1,4 @@ -// @target:es5 +// @target:es5, es2015 // @module:commonjs // @experimentaldecorators: true // @filename: a.ts diff --git a/tests/cases/conformance/decorators/class/decoratorOnClass1.ts b/tests/cases/conformance/decorators/class/decoratorOnClass1.ts index c1a729f56f326..e43818a2c1111 100644 --- a/tests/cases/conformance/decorators/class/decoratorOnClass1.ts +++ b/tests/cases/conformance/decorators/class/decoratorOnClass1.ts @@ -1,4 +1,4 @@ -// @target:es5 +// @target:es5, es2015 // @experimentaldecorators: true declare function dec(target: T): T; diff --git a/tests/cases/conformance/decorators/class/decoratorOnClass2.ts b/tests/cases/conformance/decorators/class/decoratorOnClass2.ts index 062ef39120522..a7e1c52ccded6 100644 --- a/tests/cases/conformance/decorators/class/decoratorOnClass2.ts +++ b/tests/cases/conformance/decorators/class/decoratorOnClass2.ts @@ -1,4 +1,4 @@ -// @target:es5 +// @target:es5, es2015 // @module: commonjs // @experimentaldecorators: true declare function dec(target: T): T; diff --git a/tests/cases/conformance/decorators/class/decoratorOnClass3.ts b/tests/cases/conformance/decorators/class/decoratorOnClass3.ts index e410eaa1b073f..ff811f8cd8f4b 100644 --- a/tests/cases/conformance/decorators/class/decoratorOnClass3.ts +++ b/tests/cases/conformance/decorators/class/decoratorOnClass3.ts @@ -1,4 +1,4 @@ -// @target:es5 +// @target:es5, es2015 // @module: commonjs // @experimentaldecorators: true declare function dec(target: T): T; diff --git a/tests/cases/conformance/decorators/class/decoratorOnClass4.ts b/tests/cases/conformance/decorators/class/decoratorOnClass4.ts index bebf595a17049..4d491f7c62485 100644 --- a/tests/cases/conformance/decorators/class/decoratorOnClass4.ts +++ b/tests/cases/conformance/decorators/class/decoratorOnClass4.ts @@ -1,4 +1,4 @@ -// @target:es5 +// @target:es5, es2015 // @experimentaldecorators: true declare function dec(): (target: T) => T; diff --git a/tests/cases/conformance/decorators/class/decoratorOnClass5.ts b/tests/cases/conformance/decorators/class/decoratorOnClass5.ts index bebf595a17049..4d491f7c62485 100644 --- a/tests/cases/conformance/decorators/class/decoratorOnClass5.ts +++ b/tests/cases/conformance/decorators/class/decoratorOnClass5.ts @@ -1,4 +1,4 @@ -// @target:es5 +// @target:es5, es2015 // @experimentaldecorators: true declare function dec(): (target: T) => T; diff --git a/tests/cases/conformance/decorators/class/decoratorOnClass8.ts b/tests/cases/conformance/decorators/class/decoratorOnClass8.ts index bade386a56b63..da3ca3f60feb2 100644 --- a/tests/cases/conformance/decorators/class/decoratorOnClass8.ts +++ b/tests/cases/conformance/decorators/class/decoratorOnClass8.ts @@ -1,4 +1,4 @@ -// @target:es5 +// @target:es5, es2015 // @experimentaldecorators: true declare function dec(): (target: Function, paramIndex: number) => void; diff --git a/tests/cases/conformance/decorators/class/decoratorOnClass9.ts b/tests/cases/conformance/decorators/class/decoratorOnClass9.ts index 6fd83cf0a0fd9..2951cf1caf9fe 100644 --- a/tests/cases/conformance/decorators/class/decoratorOnClass9.ts +++ b/tests/cases/conformance/decorators/class/decoratorOnClass9.ts @@ -1,4 +1,4 @@ -// @target:es5 +// @target:es5, es2015 // @experimentaldecorators: true declare var dec: any; diff --git a/tests/cases/conformance/decorators/class/method/decoratorOnClassMethod1.ts b/tests/cases/conformance/decorators/class/method/decoratorOnClassMethod1.ts index 418ace9a0dc1a..43fc93f885242 100644 --- a/tests/cases/conformance/decorators/class/method/decoratorOnClassMethod1.ts +++ b/tests/cases/conformance/decorators/class/method/decoratorOnClassMethod1.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @experimentaldecorators: true declare function dec(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor; diff --git a/tests/cases/conformance/decorators/class/method/decoratorOnClassMethod10.ts b/tests/cases/conformance/decorators/class/method/decoratorOnClassMethod10.ts index c4658cc6405bf..36b54189e3815 100644 --- a/tests/cases/conformance/decorators/class/method/decoratorOnClassMethod10.ts +++ b/tests/cases/conformance/decorators/class/method/decoratorOnClassMethod10.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @experimentaldecorators: true declare function dec(target: Function, paramIndex: number): void; diff --git a/tests/cases/conformance/decorators/class/method/decoratorOnClassMethod11.ts b/tests/cases/conformance/decorators/class/method/decoratorOnClassMethod11.ts index 991c2fab49b16..ad0fb9e80094a 100644 --- a/tests/cases/conformance/decorators/class/method/decoratorOnClassMethod11.ts +++ b/tests/cases/conformance/decorators/class/method/decoratorOnClassMethod11.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @experimentaldecorators: true namespace M { class C { diff --git a/tests/cases/conformance/decorators/class/method/decoratorOnClassMethod12.ts b/tests/cases/conformance/decorators/class/method/decoratorOnClassMethod12.ts index a2df01509fb17..c83e06466f131 100644 --- a/tests/cases/conformance/decorators/class/method/decoratorOnClassMethod12.ts +++ b/tests/cases/conformance/decorators/class/method/decoratorOnClassMethod12.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @experimentaldecorators: true namespace M { class S { diff --git a/tests/cases/conformance/decorators/class/method/decoratorOnClassMethod2.ts b/tests/cases/conformance/decorators/class/method/decoratorOnClassMethod2.ts index 8305ed1a4481f..d0b7ff3ea5efe 100644 --- a/tests/cases/conformance/decorators/class/method/decoratorOnClassMethod2.ts +++ b/tests/cases/conformance/decorators/class/method/decoratorOnClassMethod2.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @experimentaldecorators: true declare function dec(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor; diff --git a/tests/cases/conformance/decorators/class/method/decoratorOnClassMethod3.ts b/tests/cases/conformance/decorators/class/method/decoratorOnClassMethod3.ts index c65aac9f68f3f..9755c731926ab 100644 --- a/tests/cases/conformance/decorators/class/method/decoratorOnClassMethod3.ts +++ b/tests/cases/conformance/decorators/class/method/decoratorOnClassMethod3.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: ES5 +// @target: ES5, ES2015 // @experimentaldecorators: true declare function dec(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor; diff --git a/tests/cases/conformance/decorators/class/method/decoratorOnClassMethod8.ts b/tests/cases/conformance/decorators/class/method/decoratorOnClassMethod8.ts index 73f5880942039..540bced2fdcad 100644 --- a/tests/cases/conformance/decorators/class/method/decoratorOnClassMethod8.ts +++ b/tests/cases/conformance/decorators/class/method/decoratorOnClassMethod8.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // @experimentaldecorators: true declare function dec(target: T): T; diff --git a/tests/cases/conformance/decorators/class/method/decoratorOnClassMethodOverload1.ts b/tests/cases/conformance/decorators/class/method/decoratorOnClassMethodOverload1.ts index 3e13ebe4ddfda..1e008d96540c8 100644 --- a/tests/cases/conformance/decorators/class/method/decoratorOnClassMethodOverload1.ts +++ b/tests/cases/conformance/decorators/class/method/decoratorOnClassMethodOverload1.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: ES5 +// @target: ES5, ES2015 // @experimentaldecorators: true declare function dec(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor; diff --git a/tests/cases/conformance/decorators/class/method/decoratorOnClassMethodOverload2.ts b/tests/cases/conformance/decorators/class/method/decoratorOnClassMethodOverload2.ts index 36f780ab115b3..2358e3c1632f6 100644 --- a/tests/cases/conformance/decorators/class/method/decoratorOnClassMethodOverload2.ts +++ b/tests/cases/conformance/decorators/class/method/decoratorOnClassMethodOverload2.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: ES5 +// @target: ES5, ES2015 // @experimentaldecorators: true declare function dec(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor; diff --git a/tests/cases/conformance/decorators/class/method/parameter/decoratorOnClassMethodParameter1.ts b/tests/cases/conformance/decorators/class/method/parameter/decoratorOnClassMethodParameter1.ts index 64de61bb8a908..f9248bc728127 100644 --- a/tests/cases/conformance/decorators/class/method/parameter/decoratorOnClassMethodParameter1.ts +++ b/tests/cases/conformance/decorators/class/method/parameter/decoratorOnClassMethodParameter1.ts @@ -1,4 +1,4 @@ -// @target:es5 +// @target:es5, es2015 // @experimentaldecorators: true declare function dec(target: Object, propertyKey: string | symbol, parameterIndex: number): void; diff --git a/tests/cases/conformance/decorators/class/method/parameter/decoratorOnClassMethodParameter2.ts b/tests/cases/conformance/decorators/class/method/parameter/decoratorOnClassMethodParameter2.ts index 1a8c6faf84b10..f30e0f644cd51 100644 --- a/tests/cases/conformance/decorators/class/method/parameter/decoratorOnClassMethodParameter2.ts +++ b/tests/cases/conformance/decorators/class/method/parameter/decoratorOnClassMethodParameter2.ts @@ -1,4 +1,4 @@ -// @target:es5 +// @target:es5, es2015 // @experimentaldecorators: true declare function dec(target: Object, propertyKey: string | symbol, parameterIndex: number): void; diff --git a/tests/cases/conformance/decorators/class/method/parameter/decoratorOnClassMethodThisParameter.ts b/tests/cases/conformance/decorators/class/method/parameter/decoratorOnClassMethodThisParameter.ts index 7bc6570a8bb92..9a7e2a54764fe 100644 --- a/tests/cases/conformance/decorators/class/method/parameter/decoratorOnClassMethodThisParameter.ts +++ b/tests/cases/conformance/decorators/class/method/parameter/decoratorOnClassMethodThisParameter.ts @@ -1,4 +1,4 @@ -// @target:es5 +// @target:es5, es2015 // @experimentaldecorators: true declare function dec(target: Object, propertyKey: string | symbol, parameterIndex: number): void; diff --git a/tests/cases/conformance/decorators/class/property/decoratorOnClassProperty1.ts b/tests/cases/conformance/decorators/class/property/decoratorOnClassProperty1.ts index 5a32dcbe922f8..82ddbafa2effb 100644 --- a/tests/cases/conformance/decorators/class/property/decoratorOnClassProperty1.ts +++ b/tests/cases/conformance/decorators/class/property/decoratorOnClassProperty1.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: ES5 +// @target: ES5, ES2015 // @experimentaldecorators: true declare function dec(target: any, propertyKey: string): void; diff --git a/tests/cases/conformance/decorators/class/property/decoratorOnClassProperty10.ts b/tests/cases/conformance/decorators/class/property/decoratorOnClassProperty10.ts index 703742501bda5..0615556472804 100644 --- a/tests/cases/conformance/decorators/class/property/decoratorOnClassProperty10.ts +++ b/tests/cases/conformance/decorators/class/property/decoratorOnClassProperty10.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: ES5 +// @target: ES5, ES2015 // @experimentaldecorators: true declare function dec(): (target: any, propertyKey: string) => void; diff --git a/tests/cases/conformance/decorators/class/property/decoratorOnClassProperty11.ts b/tests/cases/conformance/decorators/class/property/decoratorOnClassProperty11.ts index 7503a8d27ca78..acf1958524d8b 100644 --- a/tests/cases/conformance/decorators/class/property/decoratorOnClassProperty11.ts +++ b/tests/cases/conformance/decorators/class/property/decoratorOnClassProperty11.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: ES5 +// @target: ES5, ES2015 // @experimentaldecorators: true declare function dec(): (target: any, propertyKey: string) => void; diff --git a/tests/cases/conformance/decorators/class/property/decoratorOnClassProperty12.ts b/tests/cases/conformance/decorators/class/property/decoratorOnClassProperty12.ts index fd2551c5c63e9..111e8d81a54f3 100644 --- a/tests/cases/conformance/decorators/class/property/decoratorOnClassProperty12.ts +++ b/tests/cases/conformance/decorators/class/property/decoratorOnClassProperty12.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: es5 +// @target: es5, es2015 // @experimentaldecorators: true // @emitdecoratormetadata: true declare function dec(): (target: any, propertyKey: string) => void; diff --git a/tests/cases/conformance/decorators/class/property/decoratorOnClassProperty2.ts b/tests/cases/conformance/decorators/class/property/decoratorOnClassProperty2.ts index c72735638f979..de618758ec66f 100644 --- a/tests/cases/conformance/decorators/class/property/decoratorOnClassProperty2.ts +++ b/tests/cases/conformance/decorators/class/property/decoratorOnClassProperty2.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: ES5 +// @target: ES5, ES2015 // @experimentaldecorators: true declare function dec(target: any, propertyKey: string): void; diff --git a/tests/cases/conformance/decorators/class/property/decoratorOnClassProperty3.ts b/tests/cases/conformance/decorators/class/property/decoratorOnClassProperty3.ts index d3937c8c6b95e..6d44c51025725 100644 --- a/tests/cases/conformance/decorators/class/property/decoratorOnClassProperty3.ts +++ b/tests/cases/conformance/decorators/class/property/decoratorOnClassProperty3.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: ES5 +// @target: ES5, ES2015 // @experimentaldecorators: true declare function dec(target: any, propertyKey: string): void; diff --git a/tests/cases/conformance/decorators/class/property/decoratorOnClassProperty6.ts b/tests/cases/conformance/decorators/class/property/decoratorOnClassProperty6.ts index 6c2512da30039..b15d2c5afddf0 100644 --- a/tests/cases/conformance/decorators/class/property/decoratorOnClassProperty6.ts +++ b/tests/cases/conformance/decorators/class/property/decoratorOnClassProperty6.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: ES5 +// @target: ES5, ES2015 // @experimentaldecorators: true declare function dec(target: Function): void; diff --git a/tests/cases/conformance/decorators/class/property/decoratorOnClassProperty7.ts b/tests/cases/conformance/decorators/class/property/decoratorOnClassProperty7.ts index 00f762e7a4e88..55a9dd0db206e 100644 --- a/tests/cases/conformance/decorators/class/property/decoratorOnClassProperty7.ts +++ b/tests/cases/conformance/decorators/class/property/decoratorOnClassProperty7.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: ES5 +// @target: ES5, ES2015 // @experimentaldecorators: true declare function dec(target: Function, propertyKey: string | symbol, paramIndex: number): void; diff --git a/tests/cases/conformance/decorators/decoratorMetadata-jsdoc.ts b/tests/cases/conformance/decorators/decoratorMetadata-jsdoc.ts index 822269366bc29..271c244298c77 100644 --- a/tests/cases/conformance/decorators/decoratorMetadata-jsdoc.ts +++ b/tests/cases/conformance/decorators/decoratorMetadata-jsdoc.ts @@ -1,6 +1,6 @@ // @experimentalDecorators: true // @emitDecoratorMetadata: true -// @target: es5 +// @target: es5, es2015 // @module: commonjs declare var decorator: any; diff --git a/tests/cases/conformance/decorators/decoratorMetadata.ts b/tests/cases/conformance/decorators/decoratorMetadata.ts index 6d7792bb832db..b94b2b0fc5a18 100644 --- a/tests/cases/conformance/decorators/decoratorMetadata.ts +++ b/tests/cases/conformance/decorators/decoratorMetadata.ts @@ -1,6 +1,6 @@ // @experimentalDecorators: true // @emitDecoratorMetadata: true -// @target: es5 +// @target: es5, es2015 // @module: commonjs // @filename: service.ts export default class Service { diff --git a/tests/cases/conformance/decorators/decoratorMetadataWithTypeOnlyImport.ts b/tests/cases/conformance/decorators/decoratorMetadataWithTypeOnlyImport.ts index e0f26d0518c44..031695567fbc3 100644 --- a/tests/cases/conformance/decorators/decoratorMetadataWithTypeOnlyImport.ts +++ b/tests/cases/conformance/decorators/decoratorMetadataWithTypeOnlyImport.ts @@ -1,6 +1,6 @@ // @experimentalDecorators: true // @emitDecoratorMetadata: true -// @target: es5 +// @target: es5, es2015 // @module: commonjs // @filename: service.ts export class Service { diff --git a/tests/cases/conformance/decorators/missingDecoratorType.ts b/tests/cases/conformance/decorators/missingDecoratorType.ts index 7980f81c87788..0ae4a11033152 100644 --- a/tests/cases/conformance/decorators/missingDecoratorType.ts +++ b/tests/cases/conformance/decorators/missingDecoratorType.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: ES5 +// @target: ES5, ES2015 // @experimentaldecorators: true // @noLib: true diff --git a/tests/cases/conformance/dynamicImport/importCallExpressionAsyncES5AMD.ts b/tests/cases/conformance/dynamicImport/importCallExpressionAsyncES5AMD.ts index 02a2feab574c7..b68439e0a0d41 100644 --- a/tests/cases/conformance/dynamicImport/importCallExpressionAsyncES5AMD.ts +++ b/tests/cases/conformance/dynamicImport/importCallExpressionAsyncES5AMD.ts @@ -1,5 +1,5 @@ // @module: amd -// @target: es5 +// @target: es5, es2015 // @lib: es6 // @filename: test.ts export async function fn() { diff --git a/tests/cases/conformance/dynamicImport/importCallExpressionAsyncES5CJS.ts b/tests/cases/conformance/dynamicImport/importCallExpressionAsyncES5CJS.ts index 0622e10a89548..351bca7ebb6e7 100644 --- a/tests/cases/conformance/dynamicImport/importCallExpressionAsyncES5CJS.ts +++ b/tests/cases/conformance/dynamicImport/importCallExpressionAsyncES5CJS.ts @@ -1,5 +1,5 @@ // @module: commonjs -// @target: es5 +// @target: es5, es2015 // @lib: es6 // @filename: test.ts export async function fn() { diff --git a/tests/cases/conformance/dynamicImport/importCallExpressionAsyncES5System.ts b/tests/cases/conformance/dynamicImport/importCallExpressionAsyncES5System.ts index b18096d244697..85918af19b2d9 100644 --- a/tests/cases/conformance/dynamicImport/importCallExpressionAsyncES5System.ts +++ b/tests/cases/conformance/dynamicImport/importCallExpressionAsyncES5System.ts @@ -1,5 +1,5 @@ // @module: system -// @target: es5 +// @target: es5, es2015 // @lib: es6 // @filename: test.ts export async function fn() { diff --git a/tests/cases/conformance/dynamicImport/importCallExpressionAsyncES5UMD.ts b/tests/cases/conformance/dynamicImport/importCallExpressionAsyncES5UMD.ts index 232211588a636..02bc70ec84632 100644 --- a/tests/cases/conformance/dynamicImport/importCallExpressionAsyncES5UMD.ts +++ b/tests/cases/conformance/dynamicImport/importCallExpressionAsyncES5UMD.ts @@ -1,5 +1,5 @@ // @module: umd -// @target: es5 +// @target: es5, es2015 // @lib: es6 // @filename: test.ts export async function fn() { diff --git a/tests/cases/conformance/dynamicImport/importCallExpressionES5AMD.ts b/tests/cases/conformance/dynamicImport/importCallExpressionES5AMD.ts index e218dd4758be6..2dff4bab1dc05 100644 --- a/tests/cases/conformance/dynamicImport/importCallExpressionES5AMD.ts +++ b/tests/cases/conformance/dynamicImport/importCallExpressionES5AMD.ts @@ -1,5 +1,5 @@ // @module: amd -// @target: es5 +// @target: es5, es2015 // @lib: es6 // @filename: 0.ts export function foo() { return "foo"; } diff --git a/tests/cases/conformance/dynamicImport/importCallExpressionES5CJS.ts b/tests/cases/conformance/dynamicImport/importCallExpressionES5CJS.ts index 2c45d42abbe92..ecbfc98403d3f 100644 --- a/tests/cases/conformance/dynamicImport/importCallExpressionES5CJS.ts +++ b/tests/cases/conformance/dynamicImport/importCallExpressionES5CJS.ts @@ -1,5 +1,5 @@ // @module: commonjs -// @target: es5 +// @target: es5, es2015 // @lib: es6 // @filename: 0.ts export function foo() { return "foo"; } diff --git a/tests/cases/conformance/dynamicImport/importCallExpressionES5System.ts b/tests/cases/conformance/dynamicImport/importCallExpressionES5System.ts index b9f8bac192032..b4f7542474c6d 100644 --- a/tests/cases/conformance/dynamicImport/importCallExpressionES5System.ts +++ b/tests/cases/conformance/dynamicImport/importCallExpressionES5System.ts @@ -1,5 +1,5 @@ // @module: system -// @target: es5 +// @target: es5, es2015 // @lib: es6 // @filename: 0.ts export function foo() { return "foo"; } diff --git a/tests/cases/conformance/dynamicImport/importCallExpressionES5UMD.ts b/tests/cases/conformance/dynamicImport/importCallExpressionES5UMD.ts index 66877c79ced1a..31522524fb573 100644 --- a/tests/cases/conformance/dynamicImport/importCallExpressionES5UMD.ts +++ b/tests/cases/conformance/dynamicImport/importCallExpressionES5UMD.ts @@ -1,5 +1,5 @@ // @module: umd -// @target: es5 +// @target: es5, es2015 // @lib: es6 // @filename: 0.ts export function foo() { return "foo"; } diff --git a/tests/cases/conformance/dynamicImport/importCallExpressionNestedAMD2.ts b/tests/cases/conformance/dynamicImport/importCallExpressionNestedAMD2.ts index 79540087a58f7..76888fdf5f106 100644 --- a/tests/cases/conformance/dynamicImport/importCallExpressionNestedAMD2.ts +++ b/tests/cases/conformance/dynamicImport/importCallExpressionNestedAMD2.ts @@ -1,5 +1,5 @@ // @module: amd -// @target: es5 +// @target: es5, es2015 // @skipLibCheck: true // @lib: es6 // @filename: foo.ts diff --git a/tests/cases/conformance/dynamicImport/importCallExpressionNestedCJS2.ts b/tests/cases/conformance/dynamicImport/importCallExpressionNestedCJS2.ts index 0776053d668ef..88e455b392b20 100644 --- a/tests/cases/conformance/dynamicImport/importCallExpressionNestedCJS2.ts +++ b/tests/cases/conformance/dynamicImport/importCallExpressionNestedCJS2.ts @@ -1,5 +1,5 @@ // @module: commonjs -// @target: es5 +// @target: es5, es2015 // @skipLibCheck: true // @lib: es6 // @filename: foo.ts diff --git a/tests/cases/conformance/dynamicImport/importCallExpressionNestedES20152.ts b/tests/cases/conformance/dynamicImport/importCallExpressionNestedES20152.ts index c78b38db193a9..c5fc778d3144d 100644 --- a/tests/cases/conformance/dynamicImport/importCallExpressionNestedES20152.ts +++ b/tests/cases/conformance/dynamicImport/importCallExpressionNestedES20152.ts @@ -1,5 +1,5 @@ // @module: es2015 -// @target: es5 +// @target: es5, es2015 // @skipLibCheck: true // @lib: es6 // @filename: foo.ts diff --git a/tests/cases/conformance/dynamicImport/importCallExpressionNestedES20202.ts b/tests/cases/conformance/dynamicImport/importCallExpressionNestedES20202.ts index 13cd890b544e2..a328d2e0c19cd 100644 --- a/tests/cases/conformance/dynamicImport/importCallExpressionNestedES20202.ts +++ b/tests/cases/conformance/dynamicImport/importCallExpressionNestedES20202.ts @@ -1,5 +1,5 @@ // @module: es2020 -// @target: es5 +// @target: es5, es2015 // @skipLibCheck: true // @lib: es6 // @filename: foo.ts diff --git a/tests/cases/conformance/dynamicImport/importCallExpressionNestedSystem2.ts b/tests/cases/conformance/dynamicImport/importCallExpressionNestedSystem2.ts index f8b2d4513ee06..c873c5a3c46ab 100644 --- a/tests/cases/conformance/dynamicImport/importCallExpressionNestedSystem2.ts +++ b/tests/cases/conformance/dynamicImport/importCallExpressionNestedSystem2.ts @@ -1,5 +1,5 @@ // @module: system -// @target: es5 +// @target: es5, es2015 // @skipLibCheck: true // @lib: es6 // @filename: foo.ts diff --git a/tests/cases/conformance/dynamicImport/importCallExpressionNestedUMD2.ts b/tests/cases/conformance/dynamicImport/importCallExpressionNestedUMD2.ts index e07dba0d2e5ed..ec827ac3f829a 100644 --- a/tests/cases/conformance/dynamicImport/importCallExpressionNestedUMD2.ts +++ b/tests/cases/conformance/dynamicImport/importCallExpressionNestedUMD2.ts @@ -1,5 +1,5 @@ // @module: umd -// @target: es5 +// @target: es5, es2015 // @skipLibCheck: true // @lib: es6 // @filename: foo.ts diff --git a/tests/cases/conformance/emitter/es5/asyncGenerators/emitter.asyncGenerators.classMethods.es5.ts b/tests/cases/conformance/emitter/es5/asyncGenerators/emitter.asyncGenerators.classMethods.es5.ts index 6ce01831bf801..ec827fd70f80c 100644 --- a/tests/cases/conformance/emitter/es5/asyncGenerators/emitter.asyncGenerators.classMethods.es5.ts +++ b/tests/cases/conformance/emitter/es5/asyncGenerators/emitter.asyncGenerators.classMethods.es5.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: es5 +// @target: es5, es2015 // @lib: esnext // @filename: C1.ts class C1 { diff --git a/tests/cases/conformance/emitter/es5/asyncGenerators/emitter.asyncGenerators.functionDeclarations.es5.ts b/tests/cases/conformance/emitter/es5/asyncGenerators/emitter.asyncGenerators.functionDeclarations.es5.ts index 038f4fef79209..e7aebcce73e09 100644 --- a/tests/cases/conformance/emitter/es5/asyncGenerators/emitter.asyncGenerators.functionDeclarations.es5.ts +++ b/tests/cases/conformance/emitter/es5/asyncGenerators/emitter.asyncGenerators.functionDeclarations.es5.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: es5 +// @target: es5, es2015 // @lib: esnext // @filename: F1.ts async function * f1() { diff --git a/tests/cases/conformance/emitter/es5/asyncGenerators/emitter.asyncGenerators.functionExpressions.es5.ts b/tests/cases/conformance/emitter/es5/asyncGenerators/emitter.asyncGenerators.functionExpressions.es5.ts index 7b1b585b11eae..4253051f58533 100644 --- a/tests/cases/conformance/emitter/es5/asyncGenerators/emitter.asyncGenerators.functionExpressions.es5.ts +++ b/tests/cases/conformance/emitter/es5/asyncGenerators/emitter.asyncGenerators.functionExpressions.es5.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: es5 +// @target: es5, es2015 // @lib: esnext // @filename: F1.ts const f1 = async function * () { diff --git a/tests/cases/conformance/emitter/es5/asyncGenerators/emitter.asyncGenerators.objectLiteralMethods.es5.ts b/tests/cases/conformance/emitter/es5/asyncGenerators/emitter.asyncGenerators.objectLiteralMethods.es5.ts index a47cf524cb0ad..268665277e47a 100644 --- a/tests/cases/conformance/emitter/es5/asyncGenerators/emitter.asyncGenerators.objectLiteralMethods.es5.ts +++ b/tests/cases/conformance/emitter/es5/asyncGenerators/emitter.asyncGenerators.objectLiteralMethods.es5.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: es5 +// @target: es5, es2015 // @lib: esnext // @filename: O1.ts const o1 = { diff --git a/tests/cases/conformance/es2017/assignSharedArrayBufferToArrayBuffer.ts b/tests/cases/conformance/es2017/assignSharedArrayBufferToArrayBuffer.ts index f0a38d9ee04f4..4b88e8b66fe4b 100644 --- a/tests/cases/conformance/es2017/assignSharedArrayBufferToArrayBuffer.ts +++ b/tests/cases/conformance/es2017/assignSharedArrayBufferToArrayBuffer.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @lib: es2015,es2017.sharedmemory var foo: ArrayBuffer = new SharedArrayBuffer(1024); // should error \ No newline at end of file diff --git a/tests/cases/conformance/es2017/useObjectValuesAndEntries1.ts b/tests/cases/conformance/es2017/useObjectValuesAndEntries1.ts index 7422826be168c..e437da0d75124 100644 --- a/tests/cases/conformance/es2017/useObjectValuesAndEntries1.ts +++ b/tests/cases/conformance/es2017/useObjectValuesAndEntries1.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @lib: es5,es2017.object var o = { a: 1, b: 2 }; diff --git a/tests/cases/conformance/es2017/useObjectValuesAndEntries2.ts b/tests/cases/conformance/es2017/useObjectValuesAndEntries2.ts index d3596222a4736..2aa70efa9fecd 100644 --- a/tests/cases/conformance/es2017/useObjectValuesAndEntries2.ts +++ b/tests/cases/conformance/es2017/useObjectValuesAndEntries2.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @lib: es5 var o = { a: 1, b: 2 }; diff --git a/tests/cases/conformance/es2017/useSharedArrayBuffer1.ts b/tests/cases/conformance/es2017/useSharedArrayBuffer1.ts index 78d8c23f98a7a..f565b48eb2835 100644 --- a/tests/cases/conformance/es2017/useSharedArrayBuffer1.ts +++ b/tests/cases/conformance/es2017/useSharedArrayBuffer1.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @lib: es5,es2017.sharedmemory var foge = new SharedArrayBuffer(1024); diff --git a/tests/cases/conformance/es2017/useSharedArrayBuffer2.ts b/tests/cases/conformance/es2017/useSharedArrayBuffer2.ts index 68d7702fa2aa6..cd2b4ce3537ed 100644 --- a/tests/cases/conformance/es2017/useSharedArrayBuffer2.ts +++ b/tests/cases/conformance/es2017/useSharedArrayBuffer2.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @lib: es5 var foge = new SharedArrayBuffer(1024); diff --git a/tests/cases/conformance/es2017/useSharedArrayBuffer5.ts b/tests/cases/conformance/es2017/useSharedArrayBuffer5.ts index e55d44a1d3cd9..bc806f6d7adce 100644 --- a/tests/cases/conformance/es2017/useSharedArrayBuffer5.ts +++ b/tests/cases/conformance/es2017/useSharedArrayBuffer5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @lib: es6,es2017.sharedmemory var foge = new SharedArrayBuffer(1024); diff --git a/tests/cases/conformance/es2017/useSharedArrayBuffer6.ts b/tests/cases/conformance/es2017/useSharedArrayBuffer6.ts index b9402409790a6..7125a90b9f97d 100644 --- a/tests/cases/conformance/es2017/useSharedArrayBuffer6.ts +++ b/tests/cases/conformance/es2017/useSharedArrayBuffer6.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @lib: es6,es2017.sharedmemory var foge = new SharedArrayBuffer(1024); diff --git a/tests/cases/conformance/es2018/usePromiseFinally.ts b/tests/cases/conformance/es2018/usePromiseFinally.ts index c9c96a913d807..56c98410986a8 100644 --- a/tests/cases/conformance/es2018/usePromiseFinally.ts +++ b/tests/cases/conformance/es2018/usePromiseFinally.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @lib: es6,es2018 let promise1 = new Promise(function(resolve, reject) {}) diff --git a/tests/cases/conformance/es2023/intlNumberFormatES5UseGrouping.ts b/tests/cases/conformance/es2023/intlNumberFormatES5UseGrouping.ts index d6ffd1c9395cb..50fb7bd23131f 100644 --- a/tests/cases/conformance/es2023/intlNumberFormatES5UseGrouping.ts +++ b/tests/cases/conformance/es2023/intlNumberFormatES5UseGrouping.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @strict: true new Intl.NumberFormat('en-GB', { useGrouping: true }); diff --git a/tests/cases/conformance/es6/arrowFunction/emitArrowFunction.ts b/tests/cases/conformance/es6/arrowFunction/emitArrowFunction.ts index cace55c05fb24..c7a92c684d24a 100644 --- a/tests/cases/conformance/es6/arrowFunction/emitArrowFunction.ts +++ b/tests/cases/conformance/es6/arrowFunction/emitArrowFunction.ts @@ -1,4 +1,4 @@ -// @target:es5 +// @target:es5, es2015 var f1 = () => { } var f2 = (x: string, y: string) => { } var f3 = (x: string, y: number, ...rest) => { } diff --git a/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionAsIs.ts b/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionAsIs.ts index 1366fff90a15a..57a6aeaad6318 100644 --- a/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionAsIs.ts +++ b/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionAsIs.ts @@ -1,4 +1,4 @@ -// @target:ES5 +// @target:ES5, ES2015 var arrow1 = a => { }; var arrow2 = (a) => { }; diff --git a/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionThisCapturing.ts b/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionThisCapturing.ts index e098874fc554c..25d4d7638389c 100644 --- a/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionThisCapturing.ts +++ b/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionThisCapturing.ts @@ -1,4 +1,4 @@ -// @target:es5 +// @target:es5, es2015 var f1 = () => { this.age = 10 }; diff --git a/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments01.ts b/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments01.ts index 762fd2a8e6461..fa51c79068ded 100644 --- a/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments01.ts +++ b/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments01.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 var a = () => { var arg = arguments[0]; // error } diff --git a/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments02.ts b/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments02.ts index 565c211724a41..d0be81ee616db 100644 --- a/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments02.ts +++ b/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments02.ts @@ -1,3 +1,3 @@ -// @target: es5 +// @target: es5, es2015 var a = () => arguments; \ No newline at end of file diff --git a/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments03.ts b/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments03.ts index d0de2a8e7c8c8..8ee9b7c2b84c4 100644 --- a/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments03.ts +++ b/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments03.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 var arguments; var a = () => arguments; \ No newline at end of file diff --git a/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments04.ts b/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments04.ts index cba24887da73a..1cedc90055d88 100644 --- a/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments04.ts +++ b/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments04.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 function f() { var arguments; diff --git a/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments05.ts b/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments05.ts index e2adfeba0fec2..04bc9d478fdb5 100644 --- a/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments05.ts +++ b/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments05.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 function f(arguments) { var a = () => arguments; diff --git a/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments06.ts b/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments06.ts index e235671a01a84..6613ea8e76a16 100644 --- a/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments06.ts +++ b/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments06.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 function f(arguments) { var a = () => () => arguments; diff --git a/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments07.ts b/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments07.ts index 07fa34a0731e3..1f8eeaa8b13e0 100644 --- a/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments07.ts +++ b/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments07.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 function f(arguments) { var a = (arguments) => () => arguments; diff --git a/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments08.ts b/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments08.ts index c53b8701fdc37..0aac98b7561fe 100644 --- a/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments08.ts +++ b/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments08.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 function f(arguments) { var a = () => (arguments) => arguments; diff --git a/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments09.ts b/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments09.ts index 06e305f40485f..8eacf1ded12b8 100644 --- a/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments09.ts +++ b/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments09.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 function f(_arguments) { var a = () => () => arguments; diff --git a/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments10.ts b/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments10.ts index 9122bb746b26d..4b758bb7e1800 100644 --- a/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments10.ts +++ b/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments10.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 function f() { var _arguments = 10; diff --git a/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments11.ts b/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments11.ts index 37542b860f4ae..c0033365eaa99 100644 --- a/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments11.ts +++ b/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments11.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 function f(arguments) { var _arguments = 10; diff --git a/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments12.ts b/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments12.ts index 39c9994bbd19f..715ed5df7a73b 100644 --- a/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments12.ts +++ b/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments12.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 class C { f(arguments) { diff --git a/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments13.ts b/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments13.ts index 6f4c2fccf550c..211c9fddd91b4 100644 --- a/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments13.ts +++ b/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments13.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 function f() { var _arguments = 10; diff --git a/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments14.ts b/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments14.ts index 0f7cee8ab97c9..9dee85edb42f5 100644 --- a/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments14.ts +++ b/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments14.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 function f() { if (Math.random()) { diff --git a/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments15.ts b/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments15.ts index cc347f9d5128d..4dcbf0c8d8ec9 100644 --- a/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments15.ts +++ b/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments15.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 function f() { var arguments = "hello"; diff --git a/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments16.ts b/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments16.ts index dbfd2c26e8117..6c416f2d414cc 100644 --- a/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments16.ts +++ b/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments16.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 function f() { var arguments = "hello"; diff --git a/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments17.ts b/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments17.ts index 77cbb07ede79b..361c9b05b8526 100644 --- a/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments17.ts +++ b/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments17.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 function f() { var { arguments } = { arguments: "hello" }; diff --git a/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments18.ts b/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments18.ts index 3d769ed62358b..1e72133132005 100644 --- a/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments18.ts +++ b/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments18.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 function f() { var { arguments: args } = { arguments }; diff --git a/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments19.ts b/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments19.ts index a968ba28d9e9e..8c8f3f8850b02 100644 --- a/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments19.ts +++ b/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments19.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 function f() { function g() { diff --git a/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionsAsIs.ts b/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionsAsIs.ts index 1366fff90a15a..57a6aeaad6318 100644 --- a/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionsAsIs.ts +++ b/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionsAsIs.ts @@ -1,4 +1,4 @@ -// @target:ES5 +// @target:ES5, ES2015 var arrow1 = a => { }; var arrow2 = (a) => { }; diff --git a/tests/cases/conformance/es6/binaryAndOctalIntegerLiteral/binaryIntegerLiteral.ts b/tests/cases/conformance/es6/binaryAndOctalIntegerLiteral/binaryIntegerLiteral.ts index 7bf60787d5cf9..1d2b5c9d14ee2 100644 --- a/tests/cases/conformance/es6/binaryAndOctalIntegerLiteral/binaryIntegerLiteral.ts +++ b/tests/cases/conformance/es6/binaryAndOctalIntegerLiteral/binaryIntegerLiteral.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 var bin1 = 0b11010; var bin2 = 0B11010; var bin3 = 0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111; diff --git a/tests/cases/conformance/es6/binaryAndOctalIntegerLiteral/octalIntegerLiteral.ts b/tests/cases/conformance/es6/binaryAndOctalIntegerLiteral/octalIntegerLiteral.ts index bfca9f1e4632a..098803f031fb2 100644 --- a/tests/cases/conformance/es6/binaryAndOctalIntegerLiteral/octalIntegerLiteral.ts +++ b/tests/cases/conformance/es6/binaryAndOctalIntegerLiteral/octalIntegerLiteral.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 var oct1 = 0o45436; var oct2 = 0O45436; var oct3 = 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777; diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNames10_ES5.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNames10_ES5.ts index 59a8e9d34200d..28e03144886ea 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames10_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames10_ES5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 var s: string; var n: number; var a: any; diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNames11_ES5.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNames11_ES5.ts index e5c1e3ed79e45..41fcd60bb0950 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames11_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames11_ES5.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: es5 +// @target: es5, es2015 var s: string; var n: number; var a: any; diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNames12_ES5.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNames12_ES5.ts index 365ca67c1a39b..c7e5424cc4b4a 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames12_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames12_ES5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 var s: string; var n: number; var a: any; diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNames13_ES5.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNames13_ES5.ts index fb44bfb41452a..fd12d6097348d 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames13_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames13_ES5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 var s: string; var n: number; var a: any; diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNames14_ES5.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNames14_ES5.ts index 8f78f279eba2f..7645bb8c14284 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames14_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames14_ES5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 var b: boolean; class C { [b]() {} diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNames15_ES5.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNames15_ES5.ts index 2baa39cf61ae7..2ab5414088974 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames15_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames15_ES5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 var p1: number | string; var p2: number | number[]; var p3: string | boolean; diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNames16_ES5.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNames16_ES5.ts index f42ec5220bffa..5fc05b34ab748 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames16_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames16_ES5.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: es5 +// @target: es5, es2015 var s: string; var n: number; var a: any; diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNames17_ES5.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNames17_ES5.ts index 643a9a846a1e1..4e4b542fd0465 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames17_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames17_ES5.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: es5 +// @target: es5, es2015 var b: boolean; class C { get [b]() { return 0;} diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNames18_ES5.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNames18_ES5.ts index 3c929b20ddf43..e48f34de46667 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames18_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames18_ES5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 function foo() { var obj = { [this.bar]: 0 diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNames19_ES5.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNames19_ES5.ts index 1b924d4f8d7cc..9571b2eedbcd1 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames19_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames19_ES5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 namespace M { var obj = { [this.bar]: 0 diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNames1_ES5.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNames1_ES5.ts index 70ba98a818ce0..171c2f44f196c 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames1_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames1_ES5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 var v = { get [0 + 1]() { return 0 }, set [0 + 1](v: string) { } //No error diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNames20_ES5.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNames20_ES5.ts index 6baf229c2d43f..61bbd24856661 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames20_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames20_ES5.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: es5 +// @target: es5, es2015 var obj = { [this.bar]: 0 } \ No newline at end of file diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNames21_ES5.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNames21_ES5.ts index caee82c8ea331..0edcfb596256b 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames21_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames21_ES5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 class C { bar() { return 0; diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNames22_ES5.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNames22_ES5.ts index 41142951421d0..719b1258888dc 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames22_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames22_ES5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 class C { bar() { var obj = { diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNames23_ES5.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNames23_ES5.ts index e0a86c21842d1..5b17b9dc3e6b1 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames23_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames23_ES5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 class C { bar() { return 0; diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNames24_ES5.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNames24_ES5.ts index ac9ffd50fd660..9dc5a86b32c60 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames24_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames24_ES5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 class Base { bar() { return 0; diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNames25_ES5.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNames25_ES5.ts index d791b8b917858..b1237e6d4fff5 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames25_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames25_ES5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 class Base { bar() { return 0; diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNames26_ES5.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNames26_ES5.ts index 3b2f66fe588fd..8039bb0528955 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames26_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames26_ES5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 class Base { bar() { return 0; diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNames27_ES5.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNames27_ES5.ts index 1cae37aa09352..c7d00de771c15 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames27_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames27_ES5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 class Base { } class C extends Base { diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNames28_ES5.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNames28_ES5.ts index c82d7b000e24c..922619e561269 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames28_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames28_ES5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 class Base { } class C extends Base { diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNames29_ES5.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNames29_ES5.ts index c650c6e6c3f63..b5d21c83090cb 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames29_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames29_ES5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 class C { bar() { () => { diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNames2_ES5.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNames2_ES5.ts index 7d72d1d233442..76a958bdbb779 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames2_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames2_ES5.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: es5 +// @target: es5, es2015 var methodName = "method"; var accessorName = "accessor"; class C { diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNames30_ES5.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNames30_ES5.ts index 528e9b7c58319..7225e7707a225 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames30_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames30_ES5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 class Base { } class C extends Base { diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNames31_ES5.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNames31_ES5.ts index 39c5ca2b74757..32f8156831d1c 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames31_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames31_ES5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 class Base { bar() { return 0; diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNames32_ES5.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNames32_ES5.ts index f9c17c632aefc..cea637bd64153 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames32_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames32_ES5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 function foo() { return '' } class C { bar() { diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNames33_ES5.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNames33_ES5.ts index 0dcbabf406331..1239145d02e82 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames33_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames33_ES5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 function foo() { return '' } class C { bar() { diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNames34_ES5.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNames34_ES5.ts index b6892f1bd80f0..069835d9a9676 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames34_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames34_ES5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 function foo() { return '' } class C { static bar() { diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNames35_ES5.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNames35_ES5.ts index 7d3df135b1083..1cb5b00181d86 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames35_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames35_ES5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 function foo() { return '' } interface I { bar(): string; diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNames36_ES5.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNames36_ES5.ts index 694737043885f..90f664392e545 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames36_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames36_ES5.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: es5 +// @target: es5, es2015 class Foo { x } class Foo2 { x; y } diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNames37_ES5.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNames37_ES5.ts index 096ee4edd6032..6b11fdb722266 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames37_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames37_ES5.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: es5 +// @target: es5, es2015 class Foo { x } class Foo2 { x; y } diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNames38_ES5.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNames38_ES5.ts index 49cd8e6d7ee19..e991cb7caee48 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames38_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames38_ES5.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: es5 +// @target: es5, es2015 class Foo { x } class Foo2 { x; y } diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNames39_ES5.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNames39_ES5.ts index fcdacbe09ba09..a0c81595c99c2 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames39_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames39_ES5.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: es5 +// @target: es5, es2015 class Foo { x } class Foo2 { x; y } diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNames3_ES5.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNames3_ES5.ts index ea6cc80a5edb6..5e4aa207ddd80 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames3_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames3_ES5.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: es5 +// @target: es5, es2015 var id; class C { [0 + 1]() { } diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNames40_ES5.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNames40_ES5.ts index 1fc31336f198a..2a0472e1be1bb 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames40_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames40_ES5.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: es5 +// @target: es5, es2015 class Foo { x } class Foo2 { x; y } diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNames41_ES5.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNames41_ES5.ts index 0cae4b439d577..f99dc213f9ff1 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames41_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames41_ES5.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: es5 +// @target: es5, es2015 class Foo { x } class Foo2 { x; y } diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNames42_ES5.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNames42_ES5.ts index baf73448b638b..932d0a68d1b6e 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames42_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames42_ES5.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: es5 +// @target: es5, es2015 class Foo { x } class Foo2 { x; y } diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNames43_ES5.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNames43_ES5.ts index 901ff61a4e689..28610725db7e2 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames43_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames43_ES5.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: es5 +// @target: es5, es2015 class Foo { x } class Foo2 { x; y } diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNames44_ES5.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNames44_ES5.ts index 3c2368c42c476..cbf9e4aae133c 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames44_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames44_ES5.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: es5 +// @target: es5, es2015 class Foo { x } class Foo2 { x; y } diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNames45_ES5.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNames45_ES5.ts index fc28430e78587..95afbeb142ed8 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames45_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames45_ES5.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: es5 +// @target: es5, es2015 class Foo { x } class Foo2 { x; y } diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNames46_ES5.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNames46_ES5.ts index d009c960d6bc1..fedfb7b049080 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames46_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames46_ES5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 var o = { ["" || 0]: 0 }; \ No newline at end of file diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNames47_ES5.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNames47_ES5.ts index b158ef7644701..15a58b4da8d7f 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames47_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames47_ES5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 enum E1 { x } enum E2 { x } var o = { diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNames48_ES5.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNames48_ES5.ts index 1c854603b096c..4fe480d95c6e6 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames48_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames48_ES5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 declare function extractIndexer(p: { [n: number]: T }): T; enum E { x } diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNames4_ES5.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNames4_ES5.ts index 17089b7244f66..3470654e1656c 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames4_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames4_ES5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 var s: string; var n: number; var a: any; diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNames5_ES5.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNames5_ES5.ts index 25358d08fe6a4..b9157174b1182 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames5_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames5_ES5.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: es5 +// @target: es5, es2015 declare var b: boolean; var v = { [b]: 0, diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNames6_ES5.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNames6_ES5.ts index 07c78ed0e5fbb..08c8b07911f97 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames6_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames6_ES5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 declare var p1: number | string; declare var p2: number | number[]; declare var p3: string | boolean; diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNames7_ES5.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNames7_ES5.ts index e3b379602b93e..0f9ae0d011b77 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames7_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames7_ES5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 enum E { member } diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNames8_ES5.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNames8_ES5.ts index 7282afcc519c9..adf4ccb3c52f7 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames8_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames8_ES5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 function f() { var t!: T; var u!: U; diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNames9_ES5.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNames9_ES5.ts index 8d5857870ce24..024ffebea349d 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames9_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames9_ES5.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: es5 +// @target: es5, es2015 function f(s: string): string; function f(n: number): number; function f(x: T): T; diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType10_ES5.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType10_ES5.ts index dd20834052015..967d716c25e68 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType10_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType10_ES5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 interface I { [s: number]: boolean; } diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType1_ES5.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType1_ES5.ts index d8aad5bf46813..c79d8f1db09fc 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType1_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType1_ES5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 interface I { [s: string]: (x: string) => number; [s: number]: (x: any) => number; // Doesn't get hit diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType2_ES5.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType2_ES5.ts index c9a425b5a996e..bb3d52c952091 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType2_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType2_ES5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 interface I { [s: string]: (x: any) => number; // Doesn't get hit [s: number]: (x: string) => number; diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType3_ES5.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType3_ES5.ts index 3f5a6f7f91f36..76b3922760a61 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType3_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType3_ES5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 interface I { [s: string]: (x: string) => number; } diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType4_ES5.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType4_ES5.ts index 8ce0503c44948..915286e5494b5 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType4_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType4_ES5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 interface I { [s: string]: any; [s: number]: any; diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType5_ES5.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType5_ES5.ts index 42acf42ee2a3a..84cd6af8fea30 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType5_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType5_ES5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 interface I { [s: string]: any; [s: number]: any; diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType6_ES5.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType6_ES5.ts index 9e6248878b9e7..4bec6af526ca2 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType6_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType6_ES5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 interface I { [s: string]: T; } diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType7_ES5.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType7_ES5.ts index 6d98092b96857..f5abf7c9d4fa0 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType7_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType7_ES5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 interface I { [n: number]: T; } diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType8_ES5.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType8_ES5.ts index 5e6835b594818..da0418eb48f75 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType8_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType8_ES5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 interface I { [s: string]: boolean; [s: number]: boolean; diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType9_ES5.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType9_ES5.ts index aa30d333d1168..4ea0959f581a3 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType9_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType9_ES5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 interface I { [s: string]: boolean; [s: number]: boolean; diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit1_ES5.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit1_ES5.ts index 72c29d742a170..04fdc6a434901 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit1_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit1_ES5.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: es5 +// @target: es5, es2015 // @declaration: true class C { ["" + ""]() { } diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit2_ES5.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit2_ES5.ts index 7e7758ab1ad1a..51b091ad4ca98 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit2_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit2_ES5.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: es5 +// @target: es5, es2015 // @declaration: true class C { static ["" + ""]() { } diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit3_ES5.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit3_ES5.ts index aa4e3b2cf2fb4..98260818f7f3f 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit3_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit3_ES5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @declaration: true interface I { ["" + ""](): void; diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit4_ES5.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit4_ES5.ts index 9a6e17f4c937c..61c86a10113b2 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit4_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit4_ES5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @declaration: true var v: { ["" + ""](): void; diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit5_ES5.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit5_ES5.ts index 02d01294445b2..2516d774a8026 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit5_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit5_ES5.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: es5 +// @target: es5, es2015 // @declaration: true var v = { ["" + ""]: 0, diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit6_ES5.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit6_ES5.ts index 002ad4be296bb..cf775bacac80c 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit6_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit6_ES5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @declaration: true var v = { [-1]: {}, diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNamesOnOverloads_ES5.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNamesOnOverloads_ES5.ts index c59c7c48bf555..8d204f6ff3f94 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNamesOnOverloads_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNamesOnOverloads_ES5.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: es5 +// @target: es5, es2015 var methodName = "method"; var accessorName = "accessor"; class C { diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNamesSourceMap1_ES5.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNamesSourceMap1_ES5.ts index 5eb378ebc4c86..940b062dd0995 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNamesSourceMap1_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNamesSourceMap1_ES5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @sourceMap: true class C { ["hello"]() { diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNamesSourceMap2_ES5.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNamesSourceMap2_ES5.ts index 53e3a515773f8..a9bfd3a0071a0 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNamesSourceMap2_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNamesSourceMap2_ES5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @sourceMap: true var v = { ["hello"]() { diff --git a/tests/cases/conformance/es6/defaultParameters/emitDefaultParametersFunction.ts b/tests/cases/conformance/es6/defaultParameters/emitDefaultParametersFunction.ts index 12480939a3956..a4049133c4463 100644 --- a/tests/cases/conformance/es6/defaultParameters/emitDefaultParametersFunction.ts +++ b/tests/cases/conformance/es6/defaultParameters/emitDefaultParametersFunction.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 function foo(x: string, y = 10) { } function baz(x: string, y = 5, ...rest) { } function bar(y = 10) { } diff --git a/tests/cases/conformance/es6/defaultParameters/emitDefaultParametersFunctionExpression.ts b/tests/cases/conformance/es6/defaultParameters/emitDefaultParametersFunctionExpression.ts index f8e10c0ae1436..a27b109b38793 100644 --- a/tests/cases/conformance/es6/defaultParameters/emitDefaultParametersFunctionExpression.ts +++ b/tests/cases/conformance/es6/defaultParameters/emitDefaultParametersFunctionExpression.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 var lambda1 = (y = "hello") => { } var lambda2 = (x: number, y = "hello") => { } var lambda3 = (x: number, y = "hello", ...rest) => { } diff --git a/tests/cases/conformance/es6/defaultParameters/emitDefaultParametersFunctionProperty.ts b/tests/cases/conformance/es6/defaultParameters/emitDefaultParametersFunctionProperty.ts index 8e280894af0a4..98d577d06fa3c 100644 --- a/tests/cases/conformance/es6/defaultParameters/emitDefaultParametersFunctionProperty.ts +++ b/tests/cases/conformance/es6/defaultParameters/emitDefaultParametersFunctionProperty.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 var obj2 = { func1(y = 10, ...rest) { }, func2(x = "hello") { }, diff --git a/tests/cases/conformance/es6/defaultParameters/emitDefaultParametersMethod.ts b/tests/cases/conformance/es6/defaultParameters/emitDefaultParametersMethod.ts index be4a563836f2a..9538b4436a2b9 100644 --- a/tests/cases/conformance/es6/defaultParameters/emitDefaultParametersMethod.ts +++ b/tests/cases/conformance/es6/defaultParameters/emitDefaultParametersMethod.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 class C { constructor(t: boolean, z: string, x: number, y = "hello") { } diff --git a/tests/cases/conformance/es6/destructuring/destructuringArrayBindingPatternAndAssignment4.ts b/tests/cases/conformance/es6/destructuring/destructuringArrayBindingPatternAndAssignment4.ts index bc5fc9a915732..3d01e9aa44717 100644 --- a/tests/cases/conformance/es6/destructuring/destructuringArrayBindingPatternAndAssignment4.ts +++ b/tests/cases/conformance/es6/destructuring/destructuringArrayBindingPatternAndAssignment4.ts @@ -1,6 +1,6 @@ // #35497 -// @target: es5 +// @target: es5, es2015 // @downlevelIteration: true // @lib: es6 // @strict: true diff --git a/tests/cases/conformance/es6/destructuring/destructuringParameterDeclaration3ES5iterable.ts b/tests/cases/conformance/es6/destructuring/destructuringParameterDeclaration3ES5iterable.ts index 53b79c04471bc..c149e5d8fd709 100644 --- a/tests/cases/conformance/es6/destructuring/destructuringParameterDeclaration3ES5iterable.ts +++ b/tests/cases/conformance/es6/destructuring/destructuringParameterDeclaration3ES5iterable.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @downlevelIteration: true // If the parameter is a rest parameter, the parameter type is any[] diff --git a/tests/cases/conformance/es6/destructuring/destructuringParameterDeclaration7ES5.ts b/tests/cases/conformance/es6/destructuring/destructuringParameterDeclaration7ES5.ts index 97822e92e2dba..3afc3c9520432 100644 --- a/tests/cases/conformance/es6/destructuring/destructuringParameterDeclaration7ES5.ts +++ b/tests/cases/conformance/es6/destructuring/destructuringParameterDeclaration7ES5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 interface ISomething { foo: string, diff --git a/tests/cases/conformance/es6/destructuring/destructuringParameterDeclaration7ES5iterable.ts b/tests/cases/conformance/es6/destructuring/destructuringParameterDeclaration7ES5iterable.ts index 530999eadd2db..ed4a13066236d 100644 --- a/tests/cases/conformance/es6/destructuring/destructuringParameterDeclaration7ES5iterable.ts +++ b/tests/cases/conformance/es6/destructuring/destructuringParameterDeclaration7ES5iterable.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @downlevelIteration: true interface ISomething { diff --git a/tests/cases/conformance/es6/destructuring/destructuringReassignsRightHandSide.ts b/tests/cases/conformance/es6/destructuring/destructuringReassignsRightHandSide.ts index 042ed5d524881..d31b3f7d0aaee 100644 --- a/tests/cases/conformance/es6/destructuring/destructuringReassignsRightHandSide.ts +++ b/tests/cases/conformance/es6/destructuring/destructuringReassignsRightHandSide.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 var foo: any = { foo: 1, bar: 2 }; var bar: any; diff --git a/tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_1.ts b/tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_1.ts index 7be8ce1dc1208..99ab11b613d6c 100644 --- a/tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_1.ts +++ b/tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_1.ts @@ -1,2 +1,2 @@ -//@target: ES5 +//@target: ES5, ES2015 var { x } = foo(); \ No newline at end of file diff --git a/tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_2.ts b/tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_2.ts index 7c4e084796ac8..a7b9c473a0ff2 100644 --- a/tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_2.ts +++ b/tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_2.ts @@ -1,2 +1,2 @@ -//@target: ES5 +//@target: ES5, ES2015 var { x } = (foo()); \ No newline at end of file diff --git a/tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_3.ts b/tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_3.ts index 30386fe9f86a8..26fd76908cd16 100644 --- a/tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_3.ts +++ b/tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_3.ts @@ -1,2 +1,2 @@ -//@target: ES5 +//@target: ES5, ES2015 var { x } = (foo()); \ No newline at end of file diff --git a/tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_4.ts b/tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_4.ts index 84f251c205b06..4f5fd625014c9 100644 --- a/tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_4.ts +++ b/tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_4.ts @@ -1,2 +1,2 @@ -//@target: ES5 +//@target: ES5, ES2015 var { x } = foo(); \ No newline at end of file diff --git a/tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_5.ts b/tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_5.ts index 927a53883d3ce..ca0074843785e 100644 --- a/tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_5.ts +++ b/tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_5.ts @@ -1,2 +1,2 @@ -//@target: ES5 +//@target: ES5, ES2015 var { x } = 0; \ No newline at end of file diff --git a/tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_6.ts b/tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_6.ts index 2097a8ec7603a..a261b97961a10 100644 --- a/tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_6.ts +++ b/tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_6.ts @@ -1,2 +1,2 @@ -//@target: ES5 +//@target: ES5, ES2015 var { x } = new Foo; \ No newline at end of file diff --git a/tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_7.ts b/tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_7.ts index d11381dc08889..cf06c5d3fcdc9 100644 --- a/tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_7.ts +++ b/tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_7.ts @@ -1,2 +1,2 @@ -//@target: ES5 +//@target: ES5, ES2015 var { x } = new Foo; \ No newline at end of file diff --git a/tests/cases/conformance/es6/destructuring/emptyAssignmentPatterns01_ES5.ts b/tests/cases/conformance/es6/destructuring/emptyAssignmentPatterns01_ES5.ts index f093413b63ffc..664bb6ac4b947 100644 --- a/tests/cases/conformance/es6/destructuring/emptyAssignmentPatterns01_ES5.ts +++ b/tests/cases/conformance/es6/destructuring/emptyAssignmentPatterns01_ES5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @declaration: true var a: any; diff --git a/tests/cases/conformance/es6/destructuring/emptyAssignmentPatterns01_ES5iterable.ts b/tests/cases/conformance/es6/destructuring/emptyAssignmentPatterns01_ES5iterable.ts index 247da5a0de079..a5a207693816b 100644 --- a/tests/cases/conformance/es6/destructuring/emptyAssignmentPatterns01_ES5iterable.ts +++ b/tests/cases/conformance/es6/destructuring/emptyAssignmentPatterns01_ES5iterable.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @declaration: true // @downlevelIteration: true diff --git a/tests/cases/conformance/es6/destructuring/emptyAssignmentPatterns02_ES5.ts b/tests/cases/conformance/es6/destructuring/emptyAssignmentPatterns02_ES5.ts index 1d291425e6750..12c01ab0d3a04 100644 --- a/tests/cases/conformance/es6/destructuring/emptyAssignmentPatterns02_ES5.ts +++ b/tests/cases/conformance/es6/destructuring/emptyAssignmentPatterns02_ES5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @declaration: true var a: any; diff --git a/tests/cases/conformance/es6/destructuring/emptyAssignmentPatterns02_ES5iterable.ts b/tests/cases/conformance/es6/destructuring/emptyAssignmentPatterns02_ES5iterable.ts index 0aa7bf24196e6..9d09f99f8be8d 100644 --- a/tests/cases/conformance/es6/destructuring/emptyAssignmentPatterns02_ES5iterable.ts +++ b/tests/cases/conformance/es6/destructuring/emptyAssignmentPatterns02_ES5iterable.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @declaration: true // @downlevelIteration: true diff --git a/tests/cases/conformance/es6/destructuring/emptyAssignmentPatterns03_ES5.ts b/tests/cases/conformance/es6/destructuring/emptyAssignmentPatterns03_ES5.ts index dbe79355cd818..ede992f47b3dc 100644 --- a/tests/cases/conformance/es6/destructuring/emptyAssignmentPatterns03_ES5.ts +++ b/tests/cases/conformance/es6/destructuring/emptyAssignmentPatterns03_ES5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @declaration: true var a: any; diff --git a/tests/cases/conformance/es6/destructuring/emptyAssignmentPatterns03_ES5iterable.ts b/tests/cases/conformance/es6/destructuring/emptyAssignmentPatterns03_ES5iterable.ts index f42adc0007fcc..8b23ddd067112 100644 --- a/tests/cases/conformance/es6/destructuring/emptyAssignmentPatterns03_ES5iterable.ts +++ b/tests/cases/conformance/es6/destructuring/emptyAssignmentPatterns03_ES5iterable.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @declaration: true // @downlevelIteration: true diff --git a/tests/cases/conformance/es6/destructuring/emptyAssignmentPatterns04_ES5.ts b/tests/cases/conformance/es6/destructuring/emptyAssignmentPatterns04_ES5.ts index ac79e87a11cd2..faf7f5c7ba262 100644 --- a/tests/cases/conformance/es6/destructuring/emptyAssignmentPatterns04_ES5.ts +++ b/tests/cases/conformance/es6/destructuring/emptyAssignmentPatterns04_ES5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @declaration: true var a: any; diff --git a/tests/cases/conformance/es6/destructuring/emptyAssignmentPatterns04_ES5iterable.ts b/tests/cases/conformance/es6/destructuring/emptyAssignmentPatterns04_ES5iterable.ts index 5b6024e1d414a..ddd17010e72ec 100644 --- a/tests/cases/conformance/es6/destructuring/emptyAssignmentPatterns04_ES5iterable.ts +++ b/tests/cases/conformance/es6/destructuring/emptyAssignmentPatterns04_ES5iterable.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @declaration: true // @downlevelIteration: true diff --git a/tests/cases/conformance/es6/destructuring/emptyVariableDeclarationBindingPatterns01_ES5.ts b/tests/cases/conformance/es6/destructuring/emptyVariableDeclarationBindingPatterns01_ES5.ts index bc7a729fd1e41..22cd826c7d502 100644 --- a/tests/cases/conformance/es6/destructuring/emptyVariableDeclarationBindingPatterns01_ES5.ts +++ b/tests/cases/conformance/es6/destructuring/emptyVariableDeclarationBindingPatterns01_ES5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 (function () { var a: any; diff --git a/tests/cases/conformance/es6/destructuring/emptyVariableDeclarationBindingPatterns01_ES5iterable.ts b/tests/cases/conformance/es6/destructuring/emptyVariableDeclarationBindingPatterns01_ES5iterable.ts index 07542e42ee669..d88b514c6c553 100644 --- a/tests/cases/conformance/es6/destructuring/emptyVariableDeclarationBindingPatterns01_ES5iterable.ts +++ b/tests/cases/conformance/es6/destructuring/emptyVariableDeclarationBindingPatterns01_ES5iterable.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @downlevelIteration: true (function () { diff --git a/tests/cases/conformance/es6/destructuring/emptyVariableDeclarationBindingPatterns02_ES5.ts b/tests/cases/conformance/es6/destructuring/emptyVariableDeclarationBindingPatterns02_ES5.ts index 34c05e1838f82..9c14ea9265d40 100644 --- a/tests/cases/conformance/es6/destructuring/emptyVariableDeclarationBindingPatterns02_ES5.ts +++ b/tests/cases/conformance/es6/destructuring/emptyVariableDeclarationBindingPatterns02_ES5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @declaration: true (function () { diff --git a/tests/cases/conformance/es6/destructuring/emptyVariableDeclarationBindingPatterns02_ES5iterable.ts b/tests/cases/conformance/es6/destructuring/emptyVariableDeclarationBindingPatterns02_ES5iterable.ts index e9a04caf04fc0..2189cc5db686f 100644 --- a/tests/cases/conformance/es6/destructuring/emptyVariableDeclarationBindingPatterns02_ES5iterable.ts +++ b/tests/cases/conformance/es6/destructuring/emptyVariableDeclarationBindingPatterns02_ES5iterable.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @declaration: true // @downlevelIteration: true diff --git a/tests/cases/conformance/es6/modules/defaultExportWithOverloads01.ts b/tests/cases/conformance/es6/modules/defaultExportWithOverloads01.ts index 7ec4531ee7582..2257e9f9c8e76 100644 --- a/tests/cases/conformance/es6/modules/defaultExportWithOverloads01.ts +++ b/tests/cases/conformance/es6/modules/defaultExportWithOverloads01.ts @@ -1,6 +1,6 @@ // @strict: false // @module: commonjs -// @target: ES5 +// @target: ES5, ES2015 export default function f(); export default function f(x: string); diff --git a/tests/cases/conformance/es6/modules/defaultExportsCannotMerge01.ts b/tests/cases/conformance/es6/modules/defaultExportsCannotMerge01.ts index 7caa9caf57412..377bd2d2a2000 100644 --- a/tests/cases/conformance/es6/modules/defaultExportsCannotMerge01.ts +++ b/tests/cases/conformance/es6/modules/defaultExportsCannotMerge01.ts @@ -1,5 +1,5 @@ // @module: commonjs -// @target: ES5 +// @target: ES5, ES2015 // @filename: m1.ts export default function Decl() { diff --git a/tests/cases/conformance/es6/modules/defaultExportsCannotMerge02.ts b/tests/cases/conformance/es6/modules/defaultExportsCannotMerge02.ts index f7312ec2e6615..5c015400b75d3 100644 --- a/tests/cases/conformance/es6/modules/defaultExportsCannotMerge02.ts +++ b/tests/cases/conformance/es6/modules/defaultExportsCannotMerge02.ts @@ -1,5 +1,5 @@ // @module: commonjs -// @target: ES5 +// @target: ES5, ES2015 // @filename: m1.ts export default class Decl { diff --git a/tests/cases/conformance/es6/modules/defaultExportsCannotMerge03.ts b/tests/cases/conformance/es6/modules/defaultExportsCannotMerge03.ts index dad8431812b03..1a95789780cc5 100644 --- a/tests/cases/conformance/es6/modules/defaultExportsCannotMerge03.ts +++ b/tests/cases/conformance/es6/modules/defaultExportsCannotMerge03.ts @@ -1,5 +1,5 @@ // @module: commonjs -// @target: ES5 +// @target: ES5, ES2015 // @filename: m1.ts export default class Decl { diff --git a/tests/cases/conformance/es6/modules/defaultExportsCannotMerge04.ts b/tests/cases/conformance/es6/modules/defaultExportsCannotMerge04.ts index 02cf6d53675c3..5578af4cd489f 100644 --- a/tests/cases/conformance/es6/modules/defaultExportsCannotMerge04.ts +++ b/tests/cases/conformance/es6/modules/defaultExportsCannotMerge04.ts @@ -1,6 +1,6 @@ // @strict: false // @module: commonjs -// @target: ES5 +// @target: ES5, ES2015 export default function Foo() { } diff --git a/tests/cases/conformance/es6/modules/exportAndImport-es5-amd.ts b/tests/cases/conformance/es6/modules/exportAndImport-es5-amd.ts index 5f14d398c6ffd..9af5374e60aca 100644 --- a/tests/cases/conformance/es6/modules/exportAndImport-es5-amd.ts +++ b/tests/cases/conformance/es6/modules/exportAndImport-es5-amd.ts @@ -1,5 +1,5 @@ //@module: amd -//@target: ES5 +//@target: ES5, ES2015 // @filename: m1.ts export default function f1() { diff --git a/tests/cases/conformance/es6/modules/exportAndImport-es5.ts b/tests/cases/conformance/es6/modules/exportAndImport-es5.ts index 801e482d944fb..71e895a925b8d 100644 --- a/tests/cases/conformance/es6/modules/exportAndImport-es5.ts +++ b/tests/cases/conformance/es6/modules/exportAndImport-es5.ts @@ -1,5 +1,5 @@ //@module: commonjs -//@target: ES5 +//@target: ES5, ES2015 // @filename: m1.ts export default function f1() { diff --git a/tests/cases/conformance/es6/modules/exportStar-amd.ts b/tests/cases/conformance/es6/modules/exportStar-amd.ts index df19fb636caa7..3e849f77a983a 100644 --- a/tests/cases/conformance/es6/modules/exportStar-amd.ts +++ b/tests/cases/conformance/es6/modules/exportStar-amd.ts @@ -1,5 +1,5 @@ // @module: amd -// @target: ES5 +// @target: ES5, ES2015 // @filename: t1.ts export var x = 1; diff --git a/tests/cases/conformance/es6/modules/exportStar.ts b/tests/cases/conformance/es6/modules/exportStar.ts index 300d05cdd4c61..ea93def0e0519 100644 --- a/tests/cases/conformance/es6/modules/exportStar.ts +++ b/tests/cases/conformance/es6/modules/exportStar.ts @@ -1,5 +1,5 @@ // @module: commonjs -// @target: ES5 +// @target: ES5, ES2015 // @filename: t1.ts export var x = 1; diff --git a/tests/cases/conformance/es6/modules/exportsAndImports1-amd.ts b/tests/cases/conformance/es6/modules/exportsAndImports1-amd.ts index 26e2890f107ea..36ada10702f13 100644 --- a/tests/cases/conformance/es6/modules/exportsAndImports1-amd.ts +++ b/tests/cases/conformance/es6/modules/exportsAndImports1-amd.ts @@ -1,6 +1,6 @@ // @strict: false // @module: amd -// @target: ES5 +// @target: ES5, ES2015 // @filename: t1.ts var v = 1; diff --git a/tests/cases/conformance/es6/modules/exportsAndImports2-amd.ts b/tests/cases/conformance/es6/modules/exportsAndImports2-amd.ts index f9c6032c1bcf8..6dcaabdcdca2b 100644 --- a/tests/cases/conformance/es6/modules/exportsAndImports2-amd.ts +++ b/tests/cases/conformance/es6/modules/exportsAndImports2-amd.ts @@ -1,5 +1,5 @@ // @module: amd -// @target: ES5 +// @target: ES5, ES2015 // @filename: t1.ts export var x = "x"; diff --git a/tests/cases/conformance/es6/modules/exportsAndImports3-amd.ts b/tests/cases/conformance/es6/modules/exportsAndImports3-amd.ts index 9bbbb88795970..3deca257cb9bc 100644 --- a/tests/cases/conformance/es6/modules/exportsAndImports3-amd.ts +++ b/tests/cases/conformance/es6/modules/exportsAndImports3-amd.ts @@ -1,6 +1,6 @@ // @strict: false // @module: amd -// @target: ES5 +// @target: ES5, ES2015 // @filename: t1.ts export var v = 1; diff --git a/tests/cases/conformance/es6/modules/exportsAndImports4-amd.ts b/tests/cases/conformance/es6/modules/exportsAndImports4-amd.ts index 1533ea2b6f8d1..f921bff19304c 100644 --- a/tests/cases/conformance/es6/modules/exportsAndImports4-amd.ts +++ b/tests/cases/conformance/es6/modules/exportsAndImports4-amd.ts @@ -1,5 +1,5 @@ // @module: amd -// @target: ES5 +// @target: ES5, ES2015 // @filename: t1.ts export default "hello"; diff --git a/tests/cases/conformance/es6/modules/exportsAndImports4.ts b/tests/cases/conformance/es6/modules/exportsAndImports4.ts index fd4be0816d678..aa21c2aacdd48 100644 --- a/tests/cases/conformance/es6/modules/exportsAndImports4.ts +++ b/tests/cases/conformance/es6/modules/exportsAndImports4.ts @@ -1,5 +1,5 @@ // @module: commonjs -// @target: ES5 +// @target: ES5, ES2015 // @filename: t1.ts export default "hello"; diff --git a/tests/cases/conformance/es6/modules/exportsAndImportsWithContextualKeywordNames01.ts b/tests/cases/conformance/es6/modules/exportsAndImportsWithContextualKeywordNames01.ts index fff5f9833ae39..7365a16d68127 100644 --- a/tests/cases/conformance/es6/modules/exportsAndImportsWithContextualKeywordNames01.ts +++ b/tests/cases/conformance/es6/modules/exportsAndImportsWithContextualKeywordNames01.ts @@ -1,5 +1,5 @@ // @module: commonjs -// @target: es5 +// @target: es5, es2015 // @filename: t1.ts let set = { diff --git a/tests/cases/conformance/es6/modules/exportsAndImportsWithContextualKeywordNames02.ts b/tests/cases/conformance/es6/modules/exportsAndImportsWithContextualKeywordNames02.ts index 1b9dadc066fb8..6fddbf2449cc6 100644 --- a/tests/cases/conformance/es6/modules/exportsAndImportsWithContextualKeywordNames02.ts +++ b/tests/cases/conformance/es6/modules/exportsAndImportsWithContextualKeywordNames02.ts @@ -1,5 +1,5 @@ // @module: commonjs -// @target: es5 +// @target: es5, es2015 // @filename: t1.ts let as = 100; diff --git a/tests/cases/conformance/es6/modules/exportsAndImportsWithUnderscores1.ts b/tests/cases/conformance/es6/modules/exportsAndImportsWithUnderscores1.ts index f90a87beb002d..82d1d94dfd34a 100644 --- a/tests/cases/conformance/es6/modules/exportsAndImportsWithUnderscores1.ts +++ b/tests/cases/conformance/es6/modules/exportsAndImportsWithUnderscores1.ts @@ -1,5 +1,5 @@ //@module: commonjs -//@target: ES5 +//@target: ES5, ES2015 // @filename: m1.ts var R: any diff --git a/tests/cases/conformance/es6/modules/exportsAndImportsWithUnderscores2.ts b/tests/cases/conformance/es6/modules/exportsAndImportsWithUnderscores2.ts index c3944407f3adf..38fba227830fa 100644 --- a/tests/cases/conformance/es6/modules/exportsAndImportsWithUnderscores2.ts +++ b/tests/cases/conformance/es6/modules/exportsAndImportsWithUnderscores2.ts @@ -1,5 +1,5 @@ //@module: commonjs -//@target: ES5 +//@target: ES5, ES2015 // @filename: m1.ts var R: any diff --git a/tests/cases/conformance/es6/modules/exportsAndImportsWithUnderscores3.ts b/tests/cases/conformance/es6/modules/exportsAndImportsWithUnderscores3.ts index f14b2d69d471b..08d6b46175f07 100644 --- a/tests/cases/conformance/es6/modules/exportsAndImportsWithUnderscores3.ts +++ b/tests/cases/conformance/es6/modules/exportsAndImportsWithUnderscores3.ts @@ -1,5 +1,5 @@ //@module: commonjs -//@target: ES5 +//@target: ES5, ES2015 // @filename: m1.ts var R: any diff --git a/tests/cases/conformance/es6/modules/exportsAndImportsWithUnderscores4.ts b/tests/cases/conformance/es6/modules/exportsAndImportsWithUnderscores4.ts index 2fd5bf2881f71..2080b07829c63 100644 --- a/tests/cases/conformance/es6/modules/exportsAndImportsWithUnderscores4.ts +++ b/tests/cases/conformance/es6/modules/exportsAndImportsWithUnderscores4.ts @@ -1,5 +1,5 @@ //@module: commonjs -//@target: ES5 +//@target: ES5, ES2015 // @filename: m1.ts declare var console: any; diff --git a/tests/cases/conformance/es6/modules/multipleDefaultExports01.ts b/tests/cases/conformance/es6/modules/multipleDefaultExports01.ts index e6a467820b469..23e53019cb954 100644 --- a/tests/cases/conformance/es6/modules/multipleDefaultExports01.ts +++ b/tests/cases/conformance/es6/modules/multipleDefaultExports01.ts @@ -1,5 +1,5 @@ // @module: commonjs -// @target: ES5 +// @target: ES5, ES2015 // @filename: m1.ts export default class foo { diff --git a/tests/cases/conformance/es6/modules/multipleDefaultExports02.ts b/tests/cases/conformance/es6/modules/multipleDefaultExports02.ts index d642b72b6f34e..eac6b47d8fb27 100644 --- a/tests/cases/conformance/es6/modules/multipleDefaultExports02.ts +++ b/tests/cases/conformance/es6/modules/multipleDefaultExports02.ts @@ -1,5 +1,5 @@ // @module: commonjs -// @target: ES5 +// @target: ES5, ES2015 // @filename: m1.ts export default function foo() { diff --git a/tests/cases/conformance/es6/modules/multipleDefaultExports03.ts b/tests/cases/conformance/es6/modules/multipleDefaultExports03.ts index f2fe7f1a6c377..c04ca6b8fba57 100644 --- a/tests/cases/conformance/es6/modules/multipleDefaultExports03.ts +++ b/tests/cases/conformance/es6/modules/multipleDefaultExports03.ts @@ -1,5 +1,5 @@ // @module: commonjs -// @target: ES5 +// @target: ES5, ES2015 export default class C { } diff --git a/tests/cases/conformance/es6/modules/multipleDefaultExports04.ts b/tests/cases/conformance/es6/modules/multipleDefaultExports04.ts index 1dec7b8bea576..7034754483cae 100644 --- a/tests/cases/conformance/es6/modules/multipleDefaultExports04.ts +++ b/tests/cases/conformance/es6/modules/multipleDefaultExports04.ts @@ -1,5 +1,5 @@ // @module: commonjs -// @target: ES5 +// @target: ES5, ES2015 export default function f() { } diff --git a/tests/cases/conformance/es6/modules/multipleDefaultExports05.ts b/tests/cases/conformance/es6/modules/multipleDefaultExports05.ts index 38a07c683ded1..bc208075b34af 100644 --- a/tests/cases/conformance/es6/modules/multipleDefaultExports05.ts +++ b/tests/cases/conformance/es6/modules/multipleDefaultExports05.ts @@ -1,5 +1,5 @@ // @module: commonjs -// @target: ES5 +// @target: ES5, ES2015 export default class AA1 {} diff --git a/tests/cases/conformance/es6/modules/reExportDefaultExport.ts b/tests/cases/conformance/es6/modules/reExportDefaultExport.ts index 730435fd4eebc..cd0600f38d47d 100644 --- a/tests/cases/conformance/es6/modules/reExportDefaultExport.ts +++ b/tests/cases/conformance/es6/modules/reExportDefaultExport.ts @@ -1,5 +1,5 @@ // @module: commonjs -// @target: ES5 +// @target: ES5, ES2015 // @filename: m1.ts export default function f() { diff --git a/tests/cases/conformance/es6/newTarget/invalidNewTarget.es5.ts b/tests/cases/conformance/es6/newTarget/invalidNewTarget.es5.ts index a2701681ff90b..eb595c2d846a4 100644 --- a/tests/cases/conformance/es6/newTarget/invalidNewTarget.es5.ts +++ b/tests/cases/conformance/es6/newTarget/invalidNewTarget.es5.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: es5 +// @target: es5, es2015 const a = new.target; const b = () => new.target; diff --git a/tests/cases/conformance/es6/newTarget/newTarget.es5.ts b/tests/cases/conformance/es6/newTarget/newTarget.es5.ts index b912f5f05962d..4e5981b6709f6 100644 --- a/tests/cases/conformance/es6/newTarget/newTarget.es5.ts +++ b/tests/cases/conformance/es6/newTarget/newTarget.es5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 class A { constructor() { const a = new.target; diff --git a/tests/cases/conformance/es6/restParameters/emitRestParametersFunction.ts b/tests/cases/conformance/es6/restParameters/emitRestParametersFunction.ts index ee170d2bcb94a..68d05026156b7 100644 --- a/tests/cases/conformance/es6/restParameters/emitRestParametersFunction.ts +++ b/tests/cases/conformance/es6/restParameters/emitRestParametersFunction.ts @@ -1,3 +1,3 @@ -// @target: es5 +// @target: es5, es2015 function bar(...rest) { } function foo(x: number, y: string, ...rest) { } \ No newline at end of file diff --git a/tests/cases/conformance/es6/restParameters/emitRestParametersFunctionExpression.ts b/tests/cases/conformance/es6/restParameters/emitRestParametersFunctionExpression.ts index a9ddf83c81665..87a54bb03e141 100644 --- a/tests/cases/conformance/es6/restParameters/emitRestParametersFunctionExpression.ts +++ b/tests/cases/conformance/es6/restParameters/emitRestParametersFunctionExpression.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 var funcExp = (...rest) => { } var funcExp1 = (X: number, ...rest) => { } var funcExp2 = function (...rest) { } diff --git a/tests/cases/conformance/es6/restParameters/emitRestParametersFunctionProperty.ts b/tests/cases/conformance/es6/restParameters/emitRestParametersFunctionProperty.ts index c8a8ed16e7bae..ca9935827ae15 100644 --- a/tests/cases/conformance/es6/restParameters/emitRestParametersFunctionProperty.ts +++ b/tests/cases/conformance/es6/restParameters/emitRestParametersFunctionProperty.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 var obj: { func1: (...rest) => void } diff --git a/tests/cases/conformance/es6/restParameters/emitRestParametersMethod.ts b/tests/cases/conformance/es6/restParameters/emitRestParametersMethod.ts index 6b9e70fd196b9..dc970bf3d69bc 100644 --- a/tests/cases/conformance/es6/restParameters/emitRestParametersMethod.ts +++ b/tests/cases/conformance/es6/restParameters/emitRestParametersMethod.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 class C { constructor(name: string, ...rest) { } diff --git a/tests/cases/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandProperties.ts b/tests/cases/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandProperties.ts index 262829467672d..50371c07e721e 100644 --- a/tests/cases/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandProperties.ts +++ b/tests/cases/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandProperties.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: es5 +// @target: es5, es2015 var a, b, c; var x1 = { diff --git a/tests/cases/conformance/es6/spread/arraySpreadImportHelpers.ts b/tests/cases/conformance/es6/spread/arraySpreadImportHelpers.ts index ebeb117ed0ba9..59e522b3dc872 100644 --- a/tests/cases/conformance/es6/spread/arraySpreadImportHelpers.ts +++ b/tests/cases/conformance/es6/spread/arraySpreadImportHelpers.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @importHelpers: true // @isolatedModules: true // @noTypesAndSymbols: true diff --git a/tests/cases/conformance/es7/exponentiationOperator/emitCompoundExponentiationAssignmentWithIndexingOnLHS1.ts b/tests/cases/conformance/es7/exponentiationOperator/emitCompoundExponentiationAssignmentWithIndexingOnLHS1.ts index 7e0a7dc37281e..9186dad0bd191 100644 --- a/tests/cases/conformance/es7/exponentiationOperator/emitCompoundExponentiationAssignmentWithIndexingOnLHS1.ts +++ b/tests/cases/conformance/es7/exponentiationOperator/emitCompoundExponentiationAssignmentWithIndexingOnLHS1.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 var array0 = [1, 2, 3] var i0 = 0; diff --git a/tests/cases/conformance/es7/exponentiationOperator/emitCompoundExponentiationAssignmentWithIndexingOnLHS2.ts b/tests/cases/conformance/es7/exponentiationOperator/emitCompoundExponentiationAssignmentWithIndexingOnLHS2.ts index 6a6fdc662c1bf..a9a4512a623d3 100644 --- a/tests/cases/conformance/es7/exponentiationOperator/emitCompoundExponentiationAssignmentWithIndexingOnLHS2.ts +++ b/tests/cases/conformance/es7/exponentiationOperator/emitCompoundExponentiationAssignmentWithIndexingOnLHS2.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 var globalCounter = 0; function foo() { globalCounter += 1; diff --git a/tests/cases/conformance/es7/exponentiationOperator/emitCompoundExponentiationAssignmentWithIndexingOnLHS3.ts b/tests/cases/conformance/es7/exponentiationOperator/emitCompoundExponentiationAssignmentWithIndexingOnLHS3.ts index afb12a97563ff..7e4e523b91ee0 100644 --- a/tests/cases/conformance/es7/exponentiationOperator/emitCompoundExponentiationAssignmentWithIndexingOnLHS3.ts +++ b/tests/cases/conformance/es7/exponentiationOperator/emitCompoundExponentiationAssignmentWithIndexingOnLHS3.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 var object = { _0: 2, diff --git a/tests/cases/conformance/es7/exponentiationOperator/emitCompoundExponentiationAssignmentWithIndexingOnLHS4.ts b/tests/cases/conformance/es7/exponentiationOperator/emitCompoundExponentiationAssignmentWithIndexingOnLHS4.ts index 3f4acd74e01e6..919c390c05fa3 100644 --- a/tests/cases/conformance/es7/exponentiationOperator/emitCompoundExponentiationAssignmentWithIndexingOnLHS4.ts +++ b/tests/cases/conformance/es7/exponentiationOperator/emitCompoundExponentiationAssignmentWithIndexingOnLHS4.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 var globalCounter = 0; function incrementIdx(max: number) { diff --git a/tests/cases/conformance/es7/exponentiationOperator/emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1.ts b/tests/cases/conformance/es7/exponentiationOperator/emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1.ts index c4ca205404b0b..06cd256ca47d8 100644 --- a/tests/cases/conformance/es7/exponentiationOperator/emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1.ts +++ b/tests/cases/conformance/es7/exponentiationOperator/emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 var globalCounter = 0; function foo() { diff --git a/tests/cases/conformance/es7/exponentiationOperator/emitCompoundExponentiationOperator1.ts b/tests/cases/conformance/es7/exponentiationOperator/emitCompoundExponentiationOperator1.ts index 53bbd8e10a70e..2b737d9f773ee 100644 --- a/tests/cases/conformance/es7/exponentiationOperator/emitCompoundExponentiationOperator1.ts +++ b/tests/cases/conformance/es7/exponentiationOperator/emitCompoundExponentiationOperator1.ts @@ -1,4 +1,4 @@ -// @target:es5 +// @target:es5, es2015 var comp: number; diff --git a/tests/cases/conformance/es7/exponentiationOperator/emitCompoundExponentiationOperator2.ts b/tests/cases/conformance/es7/exponentiationOperator/emitCompoundExponentiationOperator2.ts index 216997be8cc4d..92bc43cda4427 100644 --- a/tests/cases/conformance/es7/exponentiationOperator/emitCompoundExponentiationOperator2.ts +++ b/tests/cases/conformance/es7/exponentiationOperator/emitCompoundExponentiationOperator2.ts @@ -1,4 +1,4 @@ -// @target:es5 +// @target:es5, es2015 var comp: number; diff --git a/tests/cases/conformance/es7/exponentiationOperator/emitExponentiationOperator1.ts b/tests/cases/conformance/es7/exponentiationOperator/emitExponentiationOperator1.ts index 2e6c84b6d43b4..6519ee641af70 100644 --- a/tests/cases/conformance/es7/exponentiationOperator/emitExponentiationOperator1.ts +++ b/tests/cases/conformance/es7/exponentiationOperator/emitExponentiationOperator1.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 1 ** -2; 1 ** 2; diff --git a/tests/cases/conformance/es7/exponentiationOperator/emitExponentiationOperator2.ts b/tests/cases/conformance/es7/exponentiationOperator/emitExponentiationOperator2.ts index 146eab550d2e7..e40d8b9f0e566 100644 --- a/tests/cases/conformance/es7/exponentiationOperator/emitExponentiationOperator2.ts +++ b/tests/cases/conformance/es7/exponentiationOperator/emitExponentiationOperator2.ts @@ -1,4 +1,4 @@ -// @target:es5 +// @target:es5, es2015 var temp = 10; diff --git a/tests/cases/conformance/es7/exponentiationOperator/emitExponentiationOperator3.ts b/tests/cases/conformance/es7/exponentiationOperator/emitExponentiationOperator3.ts index 597f253d1b8fc..8521bf1bc6773 100644 --- a/tests/cases/conformance/es7/exponentiationOperator/emitExponentiationOperator3.ts +++ b/tests/cases/conformance/es7/exponentiationOperator/emitExponentiationOperator3.ts @@ -1,4 +1,4 @@ -// @target:es5 +// @target:es5, es2015 var temp = 10; diff --git a/tests/cases/conformance/es7/exponentiationOperator/emitExponentiationOperator4.ts b/tests/cases/conformance/es7/exponentiationOperator/emitExponentiationOperator4.ts index 0e16443d5473a..3e9c204da830b 100644 --- a/tests/cases/conformance/es7/exponentiationOperator/emitExponentiationOperator4.ts +++ b/tests/cases/conformance/es7/exponentiationOperator/emitExponentiationOperator4.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 var temp: any; (temp) ** 3; diff --git a/tests/cases/conformance/es7/exponentiationOperator/emitExponentiationOperatorInTempalteString4.ts b/tests/cases/conformance/es7/exponentiationOperator/emitExponentiationOperatorInTempalteString4.ts index 104033ab57942..9b40d5f4330f4 100644 --- a/tests/cases/conformance/es7/exponentiationOperator/emitExponentiationOperatorInTempalteString4.ts +++ b/tests/cases/conformance/es7/exponentiationOperator/emitExponentiationOperatorInTempalteString4.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 var t1 = 10; var t2 = 10; diff --git a/tests/cases/conformance/es7/exponentiationOperator/emitExponentiationOperatorInTemplateString1.ts b/tests/cases/conformance/es7/exponentiationOperator/emitExponentiationOperatorInTemplateString1.ts index 744e4ed2698fb..ebf88894d0bb9 100644 --- a/tests/cases/conformance/es7/exponentiationOperator/emitExponentiationOperatorInTemplateString1.ts +++ b/tests/cases/conformance/es7/exponentiationOperator/emitExponentiationOperatorInTemplateString1.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 var t1 = 10; var t2 = 10; diff --git a/tests/cases/conformance/es7/exponentiationOperator/emitExponentiationOperatorInTemplateString2.ts b/tests/cases/conformance/es7/exponentiationOperator/emitExponentiationOperatorInTemplateString2.ts index 0d5f2129861f7..3df7d8d8c4830 100644 --- a/tests/cases/conformance/es7/exponentiationOperator/emitExponentiationOperatorInTemplateString2.ts +++ b/tests/cases/conformance/es7/exponentiationOperator/emitExponentiationOperatorInTemplateString2.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 var t1 = 10; var t2 = 10; diff --git a/tests/cases/conformance/es7/exponentiationOperator/emitExponentiationOperatorInTemplateString3.ts b/tests/cases/conformance/es7/exponentiationOperator/emitExponentiationOperatorInTemplateString3.ts index 73fc2fcd3a9cd..008e131bd5e36 100644 --- a/tests/cases/conformance/es7/exponentiationOperator/emitExponentiationOperatorInTemplateString3.ts +++ b/tests/cases/conformance/es7/exponentiationOperator/emitExponentiationOperatorInTemplateString3.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 var t1 = 10; var t2 = 10; diff --git a/tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts b/tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts index d61d3c0745030..197a1844f3878 100644 --- a/tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts +++ b/tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 var t1 = 10; var t2 = 10; diff --git a/tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts b/tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts index c7ee30a95b836..ee00f12472c30 100644 --- a/tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts +++ b/tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 var t1 = 10; var t2 = 10; diff --git a/tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts b/tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts index 18ba31f89658c..b92e0712655bf 100644 --- a/tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts +++ b/tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 var t1 = 10; var t2 = 10; diff --git a/tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError1.ts b/tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError1.ts index a70948c23e239..1e2854bc00811 100644 --- a/tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError1.ts +++ b/tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError1.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // Error: early syntax error using ES7 SimpleUnaryExpression on left-hand side without () -1 ** 2; diff --git a/tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts b/tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts index 13f5ce14e7d0d..7182091f89e82 100644 --- a/tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts +++ b/tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // Error: early syntax error using ES7 SimpleUnaryExpression on left-hand side without () var temp: any; diff --git a/tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorWithTemplateStringInvalid.ts b/tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorWithTemplateStringInvalid.ts index 6e055caae04f0..072b09996bfac 100644 --- a/tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorWithTemplateStringInvalid.ts +++ b/tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorWithTemplateStringInvalid.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 var a = 1 ** `${ 3 }`; var b = 1 ** `2${ 3 }`; diff --git a/tests/cases/conformance/es7/trailingCommasInFunctionParametersAndArguments.ts b/tests/cases/conformance/es7/trailingCommasInFunctionParametersAndArguments.ts index 61885870524c1..3eab033c9e2cd 100644 --- a/tests/cases/conformance/es7/trailingCommasInFunctionParametersAndArguments.ts +++ b/tests/cases/conformance/es7/trailingCommasInFunctionParametersAndArguments.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: es5 +// @target: es5, es2015 function f1(x,) {} diff --git a/tests/cases/conformance/esDecorators/classDeclaration/classThisReference/esDecorators-classDeclaration-classThisReference.es5.ts b/tests/cases/conformance/esDecorators/classDeclaration/classThisReference/esDecorators-classDeclaration-classThisReference.es5.ts index 95a6d1ec3db14..b5c9f832ebf9b 100644 --- a/tests/cases/conformance/esDecorators/classDeclaration/classThisReference/esDecorators-classDeclaration-classThisReference.es5.ts +++ b/tests/cases/conformance/esDecorators/classDeclaration/classThisReference/esDecorators-classDeclaration-classThisReference.es5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @noEmitHelpers: true // @noTypesAndSymbols: true diff --git a/tests/cases/conformance/expressions/contextualTyping/getSetAccessorContextualTyping.ts b/tests/cases/conformance/expressions/contextualTyping/getSetAccessorContextualTyping.ts index dcea1cfe2ba35..84d5659e6f248 100644 --- a/tests/cases/conformance/expressions/contextualTyping/getSetAccessorContextualTyping.ts +++ b/tests/cases/conformance/expressions/contextualTyping/getSetAccessorContextualTyping.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // In the body of a get accessor with no return type annotation, // if a matching set accessor exists and that set accessor has a parameter type annotation, // return expressions are contextually typed by the type given in the set accessor's parameter type annotation. diff --git a/tests/cases/conformance/expressions/functionCalls/newWithSpreadES5.ts b/tests/cases/conformance/expressions/functionCalls/newWithSpreadES5.ts index a4a90e67a717c..d7e60a1fb116e 100644 --- a/tests/cases/conformance/expressions/functionCalls/newWithSpreadES5.ts +++ b/tests/cases/conformance/expressions/functionCalls/newWithSpreadES5.ts @@ -1,5 +1,5 @@ // @strict: false -//@target: ES5 +//@target: ES5, ES2015 function f(x: number, y: number, ...z: string[]) { } diff --git a/tests/cases/conformance/expressions/literals/literals.ts b/tests/cases/conformance/expressions/literals/literals.ts index c797811a64b68..6c5390f4e877a 100644 --- a/tests/cases/conformance/expressions/literals/literals.ts +++ b/tests/cases/conformance/expressions/literals/literals.ts @@ -1,4 +1,4 @@ -//@target: ES5 +//@target: ES5, ES2015 //typeof null is Null //typeof true is Boolean diff --git a/tests/cases/conformance/expressions/objectLiterals/objectLiteralErrors.ts b/tests/cases/conformance/expressions/objectLiterals/objectLiteralErrors.ts index 43543febc4c95..83aca9aaefbbe 100644 --- a/tests/cases/conformance/expressions/objectLiterals/objectLiteralErrors.ts +++ b/tests/cases/conformance/expressions/objectLiterals/objectLiteralErrors.ts @@ -1,4 +1,4 @@ -//@Target: ES5 +// @target: ES5, ES2015 // Multiple properties with the same name var e1 = { a: 0, a: 0 }; diff --git a/tests/cases/conformance/expressions/optionalChaining/optionalChainingInArrow.ts b/tests/cases/conformance/expressions/optionalChaining/optionalChainingInArrow.ts index 1c885d1fd4c5a..56cae1eef6a37 100644 --- a/tests/cases/conformance/expressions/optionalChaining/optionalChainingInArrow.ts +++ b/tests/cases/conformance/expressions/optionalChaining/optionalChainingInArrow.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @noTypesAndSymbols: true // https://github.com/microsoft/TypeScript/issues/41814 const test = (names: string[]) => diff --git a/tests/cases/conformance/expressions/optionalChaining/optionalChainingInLoop.ts b/tests/cases/conformance/expressions/optionalChaining/optionalChainingInLoop.ts index d52f2a2f29f79..e7734fc9aa16f 100644 --- a/tests/cases/conformance/expressions/optionalChaining/optionalChainingInLoop.ts +++ b/tests/cases/conformance/expressions/optionalChaining/optionalChainingInLoop.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @lib: es2015 // @noTypesAndSymbols: true // https://github.com/microsoft/TypeScript/issues/40643 diff --git a/tests/cases/conformance/expressions/superPropertyAccess/superPropertyAccessNoError.ts b/tests/cases/conformance/expressions/superPropertyAccess/superPropertyAccessNoError.ts index fa183689cd940..35ce7d3ecbc4e 100644 --- a/tests/cases/conformance/expressions/superPropertyAccess/superPropertyAccessNoError.ts +++ b/tests/cases/conformance/expressions/superPropertyAccess/superPropertyAccessNoError.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: es5 +// @target: es5, es2015 //super.publicInstanceMemberFunction in constructor of derived class //super.publicInstanceMemberFunction in instance member function of derived class //super.publicInstanceMemberFunction in instance member accessor(get and set) of derived class diff --git a/tests/cases/conformance/expressions/superPropertyAccess/superSymbolIndexedAccess5.ts b/tests/cases/conformance/expressions/superPropertyAccess/superSymbolIndexedAccess5.ts index 3c1a376eab6d3..c3e0c4521f51c 100644 --- a/tests/cases/conformance/expressions/superPropertyAccess/superSymbolIndexedAccess5.ts +++ b/tests/cases/conformance/expressions/superPropertyAccess/superSymbolIndexedAccess5.ts @@ -1,4 +1,4 @@ -//@target: ES5 +//@target: ES5, ES2015 var symbol: any; class Foo { diff --git a/tests/cases/conformance/expressions/superPropertyAccess/superSymbolIndexedAccess6.ts b/tests/cases/conformance/expressions/superPropertyAccess/superSymbolIndexedAccess6.ts index 3850821e9f3de..4f82128251639 100644 --- a/tests/cases/conformance/expressions/superPropertyAccess/superSymbolIndexedAccess6.ts +++ b/tests/cases/conformance/expressions/superPropertyAccess/superSymbolIndexedAccess6.ts @@ -1,4 +1,4 @@ -//@target: ES5 +//@target: ES5, ES2015 var symbol: any; class Foo { diff --git a/tests/cases/conformance/expressions/typeGuards/typeGuardOfFormThisMember.ts b/tests/cases/conformance/expressions/typeGuards/typeGuardOfFormThisMember.ts index 118463748c7c9..2df01bd9f4fc9 100644 --- a/tests/cases/conformance/expressions/typeGuards/typeGuardOfFormThisMember.ts +++ b/tests/cases/conformance/expressions/typeGuards/typeGuardOfFormThisMember.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @declaration: true // There's a 'File' class in the stdlib, wrap with a namespace to avoid collision namespace Test { diff --git a/tests/cases/conformance/expressions/typeGuards/typeGuardOfFormThisMemberErrors.ts b/tests/cases/conformance/expressions/typeGuards/typeGuardOfFormThisMemberErrors.ts index d629a2a1cddca..05bf18959a2df 100644 --- a/tests/cases/conformance/expressions/typeGuards/typeGuardOfFormThisMemberErrors.ts +++ b/tests/cases/conformance/expressions/typeGuards/typeGuardOfFormThisMemberErrors.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @declaration: true // There's a 'File' class in the stdlib, wrap with a namespace to avoid collision namespace Test { diff --git a/tests/cases/conformance/expressions/typeGuards/typeGuardsInClassAccessors.ts b/tests/cases/conformance/expressions/typeGuards/typeGuardsInClassAccessors.ts index 04b9a6a394e7f..a825e70b7b9d6 100644 --- a/tests/cases/conformance/expressions/typeGuards/typeGuardsInClassAccessors.ts +++ b/tests/cases/conformance/expressions/typeGuards/typeGuardsInClassAccessors.ts @@ -1,4 +1,4 @@ -//@target: es5 +//@target: es5, es2015 // Note that type guards affect types of variables and parameters only and // have no effect on members of objects such as properties. diff --git a/tests/cases/conformance/expressions/typeGuards/typeGuardsInProperties.ts b/tests/cases/conformance/expressions/typeGuards/typeGuardsInProperties.ts index bffe8d3d1b84f..8077051a24698 100644 --- a/tests/cases/conformance/expressions/typeGuards/typeGuardsInProperties.ts +++ b/tests/cases/conformance/expressions/typeGuards/typeGuardsInProperties.ts @@ -1,4 +1,4 @@ -//@target: es5 +//@target: es5, es2015 // Note that type guards affect types of variables and parameters only and // have no effect on members of objects such as properties. diff --git a/tests/cases/conformance/expressions/typeGuards/typeGuardsObjectMethods.ts b/tests/cases/conformance/expressions/typeGuards/typeGuardsObjectMethods.ts index bbf681890584a..8e289832aefd9 100644 --- a/tests/cases/conformance/expressions/typeGuards/typeGuardsObjectMethods.ts +++ b/tests/cases/conformance/expressions/typeGuards/typeGuardsObjectMethods.ts @@ -1,4 +1,4 @@ -//@target: es5 +//@target: es5, es2015 // Note that type guards affect types of variables and parameters only and // have no effect on members of objects such as properties. diff --git a/tests/cases/conformance/externalModules/es6/es6modulekindExportClassNameWithObject.ts b/tests/cases/conformance/externalModules/es6/es6modulekindExportClassNameWithObject.ts index 40de8852ff16d..b1941b3949f2f 100644 --- a/tests/cases/conformance/externalModules/es6/es6modulekindExportClassNameWithObject.ts +++ b/tests/cases/conformance/externalModules/es6/es6modulekindExportClassNameWithObject.ts @@ -1,3 +1,3 @@ -// @target: ES5 +// @target: ES5, ES2015 // @module: es2015 export class Object {} diff --git a/tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target.ts b/tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target.ts index c5ecfdab686fe..d8a22a64b8ae5 100644 --- a/tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target.ts +++ b/tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @module: es2015 // @experimentalDecorators: true diff --git a/tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target10.ts b/tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target10.ts index 21105ecbbfc67..597a68b025b1c 100644 --- a/tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target10.ts +++ b/tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target10.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @module: es2015 import i = require("mod"); // Error; diff --git a/tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target11.ts b/tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target11.ts index af4329200e69b..5b6ed2129e4eb 100644 --- a/tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target11.ts +++ b/tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target11.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @module: es2015 // @experimentalDecorators: true diff --git a/tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target12.ts b/tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target12.ts index 3bca121a57d34..bbdd40cf7dc68 100644 --- a/tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target12.ts +++ b/tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target12.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @module: es2015 export class C { diff --git a/tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target2.ts b/tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target2.ts index 01f32fd0da0d2..16771b0f343dc 100644 --- a/tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target2.ts +++ b/tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target2.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @module: es2015 export default class C { diff --git a/tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target3.ts b/tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target3.ts index af407271685bb..a62f8f300a7ed 100644 --- a/tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target3.ts +++ b/tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target3.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @module: es2015 // @experimentalDecorators: true diff --git a/tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target4.ts b/tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target4.ts index 709dd791fb4ee..d0325d5bba66e 100644 --- a/tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target4.ts +++ b/tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target4.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @module: es2015 class E { } diff --git a/tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target5.ts b/tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target5.ts index 0fb21bba4896a..7c6aa83c3ae60 100644 --- a/tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target5.ts +++ b/tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @module: es2015 // @preserveConstEnums: true diff --git a/tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target6.ts b/tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target6.ts index 3b8e36d70d701..f45abc12598d9 100644 --- a/tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target6.ts +++ b/tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target6.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: es5 +// @target: es5, es2015 // @module: es2015 export function f1(d = 0) { diff --git a/tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target7.ts b/tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target7.ts index f2441c018c229..ec0f5c2fc0231 100644 --- a/tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target7.ts +++ b/tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target7.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @module: es2015 export namespace N { diff --git a/tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target8.ts b/tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target8.ts index f3290ed056399..447bbd7d339ec 100644 --- a/tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target8.ts +++ b/tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target8.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @module: es2015 export const c = 0; diff --git a/tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target9.ts b/tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target9.ts index 6e6fff124dd16..98be8ec26f381 100644 --- a/tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target9.ts +++ b/tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target9.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @module: es2015 import d from "mod"; diff --git a/tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target.ts b/tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target.ts index 98c38ee6e3a7b..a62a903338ce6 100644 --- a/tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target.ts +++ b/tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @module: esnext // @experimentalDecorators: true diff --git a/tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target10.ts b/tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target10.ts index 2505870ed8e6d..768698aea1856 100644 --- a/tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target10.ts +++ b/tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target10.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @module: esnext import i = require("mod"); // Error; diff --git a/tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target11.ts b/tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target11.ts index 29f883acd68e0..e09582c987a53 100644 --- a/tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target11.ts +++ b/tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target11.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @module: esnext // @experimentalDecorators: true diff --git a/tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target12.ts b/tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target12.ts index 93c29f88ae543..e78e756f8e8e7 100644 --- a/tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target12.ts +++ b/tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target12.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @module: esnext export class C { diff --git a/tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target2.ts b/tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target2.ts index 3b94c938cd135..11106e6eddd31 100644 --- a/tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target2.ts +++ b/tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target2.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @module: esnext export default class C { diff --git a/tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target3.ts b/tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target3.ts index 6726db916e5f8..48df79cc1b8c3 100644 --- a/tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target3.ts +++ b/tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target3.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @module: esnext // @experimentalDecorators: true diff --git a/tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target4.ts b/tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target4.ts index 090ecc64305ec..f420e238d81c2 100644 --- a/tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target4.ts +++ b/tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target4.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @module: esnext class E { } diff --git a/tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target5.ts b/tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target5.ts index 9dd83fd45db9a..d366d0ce0c0aa 100644 --- a/tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target5.ts +++ b/tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @module: esnext // @preserveConstEnums: true diff --git a/tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target6.ts b/tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target6.ts index fe0e5e337fccc..ec8acc8b3d3b5 100644 --- a/tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target6.ts +++ b/tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target6.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: es5 +// @target: es5, es2015 // @module: esnext export function f1(d = 0) { diff --git a/tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target7.ts b/tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target7.ts index 4d22faba17377..e2f3c49dce9a8 100644 --- a/tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target7.ts +++ b/tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target7.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @module: esnext export namespace N { diff --git a/tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target8.ts b/tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target8.ts index 530f4c88c39b6..ef7e853175fe9 100644 --- a/tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target8.ts +++ b/tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target8.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @module: esnext export const c = 0; diff --git a/tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target9.ts b/tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target9.ts index d91d6399ad3a5..8426cebbef8af 100644 --- a/tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target9.ts +++ b/tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target9.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @module: esnext import d from "mod"; diff --git a/tests/cases/conformance/externalModules/esnext/exnextmodulekindExportClassNameWithObject.ts b/tests/cases/conformance/externalModules/esnext/exnextmodulekindExportClassNameWithObject.ts index 440bfe080d4c7..3bfa07ed6e636 100644 --- a/tests/cases/conformance/externalModules/esnext/exnextmodulekindExportClassNameWithObject.ts +++ b/tests/cases/conformance/externalModules/esnext/exnextmodulekindExportClassNameWithObject.ts @@ -1,3 +1,3 @@ -// @target: ES5 +// @target: ES5, ES2015 // @module: esnext export class Object {} diff --git a/tests/cases/conformance/externalModules/exportAmbientClassNameWithObject.ts b/tests/cases/conformance/externalModules/exportAmbientClassNameWithObject.ts index 3262ecdd3a58a..45ff65934be74 100644 --- a/tests/cases/conformance/externalModules/exportAmbientClassNameWithObject.ts +++ b/tests/cases/conformance/externalModules/exportAmbientClassNameWithObject.ts @@ -1,2 +1,2 @@ -// @target: ES5 +// @target: ES5, ES2015 export declare class Object {} diff --git a/tests/cases/conformance/externalModules/exportClassNameWithObjectAMD.ts b/tests/cases/conformance/externalModules/exportClassNameWithObjectAMD.ts index 529924b4a4f66..b58ccdbde73ce 100644 --- a/tests/cases/conformance/externalModules/exportClassNameWithObjectAMD.ts +++ b/tests/cases/conformance/externalModules/exportClassNameWithObjectAMD.ts @@ -1,3 +1,3 @@ -// @target: ES5 +// @target: ES5, ES2015 // @module: amd export class Object {} diff --git a/tests/cases/conformance/externalModules/exportClassNameWithObjectCommonJS.ts b/tests/cases/conformance/externalModules/exportClassNameWithObjectCommonJS.ts index 676e275dfbd44..060a7e190dee3 100644 --- a/tests/cases/conformance/externalModules/exportClassNameWithObjectCommonJS.ts +++ b/tests/cases/conformance/externalModules/exportClassNameWithObjectCommonJS.ts @@ -1,3 +1,3 @@ -// @target: ES5 +// @target: ES5, ES2015 // @module: commonjs export class Object {} diff --git a/tests/cases/conformance/externalModules/exportClassNameWithObjectSystem.ts b/tests/cases/conformance/externalModules/exportClassNameWithObjectSystem.ts index 6d23d7e1e3bd0..de52cfa1e71c5 100644 --- a/tests/cases/conformance/externalModules/exportClassNameWithObjectSystem.ts +++ b/tests/cases/conformance/externalModules/exportClassNameWithObjectSystem.ts @@ -1,3 +1,3 @@ -// @target: ES5 +// @target: ES5, ES2015 // @module: system export class Object {} diff --git a/tests/cases/conformance/externalModules/exportClassNameWithObjectUMD.ts b/tests/cases/conformance/externalModules/exportClassNameWithObjectUMD.ts index d2cb221a06920..64d9853963bac 100644 --- a/tests/cases/conformance/externalModules/exportClassNameWithObjectUMD.ts +++ b/tests/cases/conformance/externalModules/exportClassNameWithObjectUMD.ts @@ -1,3 +1,3 @@ -// @target: ES5 +// @target: ES5, ES2015 // @module: umd export class Object {} diff --git a/tests/cases/conformance/externalModules/exportDefaultClassNameWithObject.ts b/tests/cases/conformance/externalModules/exportDefaultClassNameWithObject.ts index 75a5a33ac06f2..c4b3365cfa415 100644 --- a/tests/cases/conformance/externalModules/exportDefaultClassNameWithObject.ts +++ b/tests/cases/conformance/externalModules/exportDefaultClassNameWithObject.ts @@ -1,2 +1,2 @@ -// @target: ES5 +// @target: ES5, ES2015 export default class Object {} diff --git a/tests/cases/conformance/generators/restParameterInDownlevelGenerator.ts b/tests/cases/conformance/generators/restParameterInDownlevelGenerator.ts index bb98fb0f74202..3013b9fc2a83c 100644 --- a/tests/cases/conformance/generators/restParameterInDownlevelGenerator.ts +++ b/tests/cases/conformance/generators/restParameterInDownlevelGenerator.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @lib: es2015 // @downlevelIteration: true // @noEmitHelpers: true diff --git a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsClassExtendsVisibility.ts b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsClassExtendsVisibility.ts index 300791253669f..16edb8f0e4775 100644 --- a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsClassExtendsVisibility.ts +++ b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsClassExtendsVisibility.ts @@ -1,6 +1,6 @@ // @allowJs: true // @checkJs: true -// @target: es5 +// @target: es5, es2015 // @outDir: ./out // @declaration: true // @filename: bar.js diff --git a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsClassImplementsGenericsSerialization.ts b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsClassImplementsGenericsSerialization.ts index 3aa94654c0dca..f3b244f1667f6 100644 --- a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsClassImplementsGenericsSerialization.ts +++ b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsClassImplementsGenericsSerialization.ts @@ -1,6 +1,6 @@ // @allowJs: true // @checkJs: true -// @target: es5 +// @target: es5, es2015 // @outDir: ./out // @declaration: true // @filename: interface.ts diff --git a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsClassLeadingOptional.ts b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsClassLeadingOptional.ts index e1a8c071a6475..b0b445db5cbaa 100644 --- a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsClassLeadingOptional.ts +++ b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsClassLeadingOptional.ts @@ -1,7 +1,7 @@ // @strict: false // @allowJs: true // @checkJs: true -// @target: es5 +// @target: es5, es2015 // @outDir: ./out // @declaration: true // @filename: bar.js diff --git a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsClassLikeHeuristic.ts b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsClassLikeHeuristic.ts index 176712b1f854a..72c49154cbbb3 100644 --- a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsClassLikeHeuristic.ts +++ b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsClassLikeHeuristic.ts @@ -1,6 +1,6 @@ // @allowJs: true // @checkJs: true -// @target: es5 +// @target: es5, es2015 // @outDir: ./out // @declaration: true // @filename: index.js diff --git a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsClassStatic.ts b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsClassStatic.ts index 06b2af747efd1..a22ef8032e9c9 100644 --- a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsClassStatic.ts +++ b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsClassStatic.ts @@ -1,6 +1,6 @@ // @allowJs: true // @checkJs: true -// @target: es5 +// @target: es5, es2015 // @outDir: ./out // @declaration: true // @filename: source.js diff --git a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsClassStaticMethodAugmentation.ts b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsClassStaticMethodAugmentation.ts index ff8b56c3ec2fd..61a3acd8c1a36 100644 --- a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsClassStaticMethodAugmentation.ts +++ b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsClassStaticMethodAugmentation.ts @@ -1,6 +1,6 @@ // @allowJs: true // @checkJs: true -// @target: es5 +// @target: es5, es2015 // @outDir: ./out // @declaration: true // @filename: source.js diff --git a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsClasses.ts b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsClasses.ts index c97f8f5d9001b..8eae17a22b42c 100644 --- a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsClasses.ts +++ b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsClasses.ts @@ -1,6 +1,6 @@ // @allowJs: true // @checkJs: true -// @target: es5 +// @target: es5, es2015 // @outDir: ./out // @declaration: true // @filename: index.js diff --git a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsClassesErr.ts b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsClassesErr.ts index d627fa8236bd7..bacf5175868ea 100644 --- a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsClassesErr.ts +++ b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsClassesErr.ts @@ -1,6 +1,6 @@ // @allowJs: true // @checkJs: true -// @target: es5 +// @target: es5, es2015 // @outDir: ./out // @declaration: true // @filename: index.js diff --git a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsComputedNames.ts b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsComputedNames.ts index 6a44652ac54a8..46f3df0c50637 100644 --- a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsComputedNames.ts +++ b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsComputedNames.ts @@ -1,6 +1,6 @@ // @allowJs: true // @checkJs: true -// @target: es5 +// @target: es5, es2015 // @lib: es6 // @outDir: ./out // @declaration: true diff --git a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsCrossfileMerge.ts b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsCrossfileMerge.ts index 7f1624e6d8738..82bb1e5fb7c11 100644 --- a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsCrossfileMerge.ts +++ b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsCrossfileMerge.ts @@ -1,6 +1,6 @@ // @allowJs: true // @checkJs: true -// @target: es5 +// @target: es5, es2015 // @lib: es6 // @outDir: ./out // @declaration: true diff --git a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsDefault.ts b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsDefault.ts index 35543033b7a4e..a2b532922e166 100644 --- a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsDefault.ts +++ b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsDefault.ts @@ -1,6 +1,6 @@ // @allowJs: true // @checkJs: true -// @target: es5 +// @target: es5, es2015 // @outDir: ./out // @declaration: true // @filename: index1.js diff --git a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsDefaultsErr.ts b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsDefaultsErr.ts index 13134c33cddcc..d4e095fffe07a 100644 --- a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsDefaultsErr.ts +++ b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsDefaultsErr.ts @@ -1,6 +1,6 @@ // @allowJs: true // @checkJs: true -// @target: es5 +// @target: es5, es2015 // @outDir: ./out // @declaration: true // @filename: index1.js diff --git a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsDocCommentsOnConsts.ts b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsDocCommentsOnConsts.ts index 82c288f390d76..0b7d65310b604 100644 --- a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsDocCommentsOnConsts.ts +++ b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsDocCommentsOnConsts.ts @@ -1,7 +1,7 @@ // @strict: false // @allowJs: true // @checkJs: true -// @target: es5 +// @target: es5, es2015 // @outDir: ./out // @declaration: true // @filename: index1.js diff --git a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsEnumTag.ts b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsEnumTag.ts index b172d8026df79..43802fb924589 100644 --- a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsEnumTag.ts +++ b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsEnumTag.ts @@ -1,7 +1,7 @@ // @strict: false // @allowJs: true // @checkJs: true -// @target: es5 +// @target: es5, es2015 // @outDir: ./out // @declaration: true // @filename: index.js diff --git a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsEnums.ts b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsEnums.ts index e0300a4ddc43b..9253fdcd4e2fd 100644 --- a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsEnums.ts +++ b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsEnums.ts @@ -1,6 +1,6 @@ // @allowJs: true // @checkJs: true -// @target: es5 +// @target: es5, es2015 // @outDir: ./out // @declaration: true // @filename: index.js diff --git a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignedClassExpression.ts b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignedClassExpression.ts index cdbe1c37dbf0b..7357d1878541d 100644 --- a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignedClassExpression.ts +++ b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignedClassExpression.ts @@ -1,6 +1,6 @@ // @allowJs: true // @checkJs: true -// @target: es5 +// @target: es5, es2015 // @outDir: ./out // @declaration: true // @filename: index.js diff --git a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignedClassExpressionAnonymous.ts b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignedClassExpressionAnonymous.ts index 339de116c6566..81663417f39c5 100644 --- a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignedClassExpressionAnonymous.ts +++ b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignedClassExpressionAnonymous.ts @@ -1,6 +1,6 @@ // @allowJs: true // @checkJs: true -// @target: es5 +// @target: es5, es2015 // @outDir: ./out // @declaration: true // @filename: index.js diff --git a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignedClassExpressionAnonymousWithSub.ts b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignedClassExpressionAnonymousWithSub.ts index 0caa95933d3b7..1991f227e900b 100644 --- a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignedClassExpressionAnonymousWithSub.ts +++ b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignedClassExpressionAnonymousWithSub.ts @@ -1,6 +1,6 @@ // @allowJs: true // @checkJs: true -// @target: es5 +// @target: es5, es2015 // @outDir: ./out // @declaration: true // @filename: index.js diff --git a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignedClassExpressionShadowing.ts b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignedClassExpressionShadowing.ts index 2029a93d0dec8..f430464e9ae3b 100644 --- a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignedClassExpressionShadowing.ts +++ b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignedClassExpressionShadowing.ts @@ -1,6 +1,6 @@ // @allowJs: true // @checkJs: true -// @target: es5 +// @target: es5, es2015 // @outDir: ./out // @declaration: true // @filename: index.js diff --git a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignedClassInstance1.ts b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignedClassInstance1.ts index 5f5796089dc27..0ee3fec7f9807 100644 --- a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignedClassInstance1.ts +++ b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignedClassInstance1.ts @@ -1,6 +1,6 @@ // @allowJs: true // @checkJs: true -// @target: es5 +// @target: es5, es2015 // @outDir: ./out // @declaration: true // @filename: index.js diff --git a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignedClassInstance2.ts b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignedClassInstance2.ts index aa0f37ea41a3d..4c7928e071fb4 100644 --- a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignedClassInstance2.ts +++ b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignedClassInstance2.ts @@ -1,6 +1,6 @@ // @allowJs: true // @checkJs: true -// @target: es5 +// @target: es5, es2015 // @outDir: ./out // @declaration: true // @filename: index.js diff --git a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignedClassInstance3.ts b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignedClassInstance3.ts index 309654c867397..99ed6bc006cc8 100644 --- a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignedClassInstance3.ts +++ b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignedClassInstance3.ts @@ -1,6 +1,6 @@ // @allowJs: true // @checkJs: true -// @target: es5 +// @target: es5, es2015 // @outDir: ./out // @declaration: true // @filename: index.js diff --git a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignedConstructorFunction.ts b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignedConstructorFunction.ts index 66beb67e0190b..1fa7ff01564cc 100644 --- a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignedConstructorFunction.ts +++ b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignedConstructorFunction.ts @@ -1,6 +1,6 @@ // @allowJs: true // @checkJs: true -// @target: es5 +// @target: es5, es2015 // @outDir: ./out // @declaration: true // @filename: jsDeclarationsExportAssignedConstructorFunction.js diff --git a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignedConstructorFunctionWithSub.ts b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignedConstructorFunctionWithSub.ts index ff33f0dd46658..419ccc1e43e7f 100644 --- a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignedConstructorFunctionWithSub.ts +++ b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignedConstructorFunctionWithSub.ts @@ -1,6 +1,6 @@ // @allowJs: true // @checkJs: true -// @target: es5 +// @target: es5, es2015 // @outDir: ./out // @declaration: true // @filename: jsDeclarationsExportAssignedConstructorFunctionWithSub.js diff --git a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignedVisibility.ts b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignedVisibility.ts index 23bbed1af2852..cb2981410f4b6 100644 --- a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignedVisibility.ts +++ b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignedVisibility.ts @@ -1,6 +1,6 @@ // @allowJs: true // @checkJs: true -// @target: es5 +// @target: es5, es2015 // @outDir: ./out // @declaration: true // @filename: obj.js diff --git a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignmentExpressionPlusSecondary.ts b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignmentExpressionPlusSecondary.ts index cf4bf91320aad..aa5b0292cde3a 100644 --- a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignmentExpressionPlusSecondary.ts +++ b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignmentExpressionPlusSecondary.ts @@ -1,6 +1,6 @@ // @allowJs: true // @checkJs: true -// @target: es5 +// @target: es5, es2015 // @outDir: ./out // @declaration: true // @filename: index.js diff --git a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignmentWithKeywordName.ts b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignmentWithKeywordName.ts index 0dc741ed83c5b..8714e5c21361f 100644 --- a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignmentWithKeywordName.ts +++ b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignmentWithKeywordName.ts @@ -1,6 +1,6 @@ // @allowJs: true // @checkJs: true -// @target: es5 +// @target: es5, es2015 // @outDir: ./out // @declaration: true // @filename: index.js diff --git a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportForms.ts b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportForms.ts index 5a512c9c9833f..51b70fda2ef7f 100644 --- a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportForms.ts +++ b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportForms.ts @@ -1,6 +1,6 @@ // @allowJs: true // @checkJs: true -// @target: es5 +// @target: es5, es2015 // @outDir: ./out // @declaration: true // @filename: cls.js diff --git a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportFormsErr.ts b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportFormsErr.ts index 4360f9a90f368..1bb13f0b998b6 100644 --- a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportFormsErr.ts +++ b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportFormsErr.ts @@ -1,6 +1,6 @@ // @allowJs: true // @checkJs: true -// @target: es5 +// @target: es5, es2015 // @outDir: ./out // @declaration: true // @filename: cls.js diff --git a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportSpecifierNonlocal.ts b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportSpecifierNonlocal.ts index a636d19bdec31..eeb9bd60a7163 100644 --- a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportSpecifierNonlocal.ts +++ b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportSpecifierNonlocal.ts @@ -1,6 +1,6 @@ // @allowJs: true // @checkJs: true -// @target: es5 +// @target: es5, es2015 // @outDir: ./out // @declaration: true // @filename: source.js diff --git a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportSubAssignments.ts b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportSubAssignments.ts index f5feb4605d3e8..21487242f1301 100644 --- a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportSubAssignments.ts +++ b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportSubAssignments.ts @@ -1,6 +1,6 @@ // @allowJs: true // @checkJs: true -// @target: es5 +// @target: es5, es2015 // @outDir: ./out // @declaration: true // @filename: cls.js diff --git a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsFunctionClassesCjsExportAssignment.ts b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsFunctionClassesCjsExportAssignment.ts index cb2cf9968d8a5..b88df4772d86d 100644 --- a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsFunctionClassesCjsExportAssignment.ts +++ b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsFunctionClassesCjsExportAssignment.ts @@ -1,6 +1,6 @@ // @allowJs: true // @checkJs: true -// @target: es5 +// @target: es5, es2015 // @outDir: ./out // @declaration: true // @filename: timer.js diff --git a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsFunctionJSDoc.ts b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsFunctionJSDoc.ts index 224f06d9a94be..5070847895251 100644 --- a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsFunctionJSDoc.ts +++ b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsFunctionJSDoc.ts @@ -1,7 +1,7 @@ // @strict: false // @allowJs: true // @checkJs: true -// @target: es5 +// @target: es5, es2015 // @outDir: ./out // @declaration: true // @filename: source.js diff --git a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsFunctionKeywordProp.ts b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsFunctionKeywordProp.ts index 8bb81dda6e33e..b11a68fe84edd 100644 --- a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsFunctionKeywordProp.ts +++ b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsFunctionKeywordProp.ts @@ -1,6 +1,6 @@ // @allowJs: true // @checkJs: true -// @target: es5 +// @target: es5, es2015 // @outDir: ./out // @declaration: true // @filename: source.js diff --git a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsFunctionKeywordPropExhaustive.ts b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsFunctionKeywordPropExhaustive.ts index d40beef870918..ba4ed63c3924e 100644 --- a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsFunctionKeywordPropExhaustive.ts +++ b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsFunctionKeywordPropExhaustive.ts @@ -1,6 +1,6 @@ // @allowJs: true // @checkJs: true -// @target: es5 +// @target: es5, es2015 // @outDir: ./out // @declaration: true // @filename: source.js diff --git a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsFunctionLikeClasses.ts b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsFunctionLikeClasses.ts index 0732fcfa6b302..fccd3d9ff7f94 100644 --- a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsFunctionLikeClasses.ts +++ b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsFunctionLikeClasses.ts @@ -1,6 +1,6 @@ // @allowJs: true // @checkJs: true -// @target: es5 +// @target: es5, es2015 // @outDir: ./out // @declaration: true // @filename: source.js diff --git a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsFunctionLikeClasses2.ts b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsFunctionLikeClasses2.ts index 741395cff39f3..0b9948104d605 100644 --- a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsFunctionLikeClasses2.ts +++ b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsFunctionLikeClasses2.ts @@ -1,7 +1,7 @@ // @strict: false // @allowJs: true // @checkJs: true -// @target: es5 +// @target: es5, es2015 // @outDir: ./out // @declaration: true // @filename: source.js diff --git a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsFunctionPrototypeStatic.ts b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsFunctionPrototypeStatic.ts index 0c57075af72f9..78a68c9b54632 100644 --- a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsFunctionPrototypeStatic.ts +++ b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsFunctionPrototypeStatic.ts @@ -1,6 +1,6 @@ // @allowJs: true // @checkJs: true -// @target: es5 +// @target: es5, es2015 // @outDir: ./out // @declaration: true // @filename: source.js diff --git a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsInterfaces.ts b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsInterfaces.ts index 1eb04215792f4..b8d04f1a8af0c 100644 --- a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsInterfaces.ts +++ b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsInterfaces.ts @@ -1,6 +1,6 @@ // @allowJs: true // @checkJs: true -// @target: es5 +// @target: es5, es2015 // @outDir: ./out // @declaration: true // @filename: index.js diff --git a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsJson.ts b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsJson.ts index a98c41d172827..9b2cba64deeb3 100644 --- a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsJson.ts +++ b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsJson.ts @@ -1,6 +1,6 @@ // @allowJs: true // @checkJs: true -// @target: es5 +// @target: es5, es2015 // @resolveJsonModule: true // @outDir: ./out // @declaration: true diff --git a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsMissingGenerics.ts b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsMissingGenerics.ts index e8d5d0d79b253..4f7fe361ec495 100644 --- a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsMissingGenerics.ts +++ b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsMissingGenerics.ts @@ -1,7 +1,7 @@ // @strict: false // @allowJs: true // @checkJs: true -// @target: es5 +// @target: es5, es2015 // @outDir: ./out // @declaration: true // @filename: file.js diff --git a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsMissingTypeParameters.ts b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsMissingTypeParameters.ts index 89d782095b38c..d822a44343378 100644 --- a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsMissingTypeParameters.ts +++ b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsMissingTypeParameters.ts @@ -1,7 +1,7 @@ // @strict: false // @allowJs: true // @checkJs: true -// @target: es5 +// @target: es5, es2015 // @outDir: ./out // @declaration: true // @filename: file.js diff --git a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsModuleReferenceHasEmit.ts b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsModuleReferenceHasEmit.ts index 32a15122828a8..6e306577c9f73 100644 --- a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsModuleReferenceHasEmit.ts +++ b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsModuleReferenceHasEmit.ts @@ -1,6 +1,6 @@ // @allowJs: true // @checkJs: true -// @target: es5 +// @target: es5, es2015 // @outDir: ./out // @declaration: true // @filename: index.js diff --git a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsMultipleExportFromMerge.ts b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsMultipleExportFromMerge.ts index c8e2ef3e4088d..bb4666416c2e7 100644 --- a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsMultipleExportFromMerge.ts +++ b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsMultipleExportFromMerge.ts @@ -1,6 +1,6 @@ // @allowJs: true // @checkJs: true -// @target: es5 +// @target: es5, es2015 // @outDir: ./out // @declaration: true // @filename: items.js diff --git a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsPackageJson.ts b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsPackageJson.ts index 7a6b8180f74d9..6f7fef9a55e1d 100644 --- a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsPackageJson.ts +++ b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsPackageJson.ts @@ -1,6 +1,6 @@ // @allowJs: true // @checkJs: true -// @target: es5 +// @target: es5, es2015 // @resolveJsonModule: true // @outDir: ./out // @declaration: true diff --git a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsReactComponents.ts b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsReactComponents.ts index db20fffdbc534..1294a45ca566e 100644 --- a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsReactComponents.ts +++ b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsReactComponents.ts @@ -1,6 +1,6 @@ // @allowJs: true // @checkJs: true -// @target: es5 +// @target: es5, es2015 // @jsx: react // @esModuleInterop: true // @outDir: ./out diff --git a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsReexportAliases.ts b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsReexportAliases.ts index 3160df7f12853..6bdaacfbb3bd9 100644 --- a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsReexportAliases.ts +++ b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsReexportAliases.ts @@ -1,6 +1,6 @@ // @allowJs: true // @checkJs: true -// @target: es5 +// @target: es5, es2015 // @outDir: ./out // @declaration: true // @filename: cls.js diff --git a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsReexportAliasesEsModuleInterop.ts b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsReexportAliasesEsModuleInterop.ts index 94bb9fe235a20..f863f6d1c5d4a 100644 --- a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsReexportAliasesEsModuleInterop.ts +++ b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsReexportAliasesEsModuleInterop.ts @@ -1,6 +1,6 @@ // @allowJs: true // @checkJs: true -// @target: es5 +// @target: es5, es2015 // @outDir: ./out // @declaration: true // @esModuleInterop: true diff --git a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsReexportedCjsAlias.ts b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsReexportedCjsAlias.ts index 9b58a6d531349..49eacd800e327 100644 --- a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsReexportedCjsAlias.ts +++ b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsReexportedCjsAlias.ts @@ -1,6 +1,6 @@ // @allowJs: true // @checkJs: true -// @target: es5 +// @target: es5, es2015 // @outDir: ./out // @declaration: true // @filename: lib.js diff --git a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsRestArgsWithThisTypeInJSDocFunction.ts b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsRestArgsWithThisTypeInJSDocFunction.ts index be77a661807de..f510154048dba 100644 --- a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsRestArgsWithThisTypeInJSDocFunction.ts +++ b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsRestArgsWithThisTypeInJSDocFunction.ts @@ -1,6 +1,6 @@ // @allowJs: true // @checkJs: true -// @target: es5 +// @target: es5, es2015 // @outDir: ./out // @declaration: true // @filename: bug38550.js diff --git a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsTypeReferences.ts b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsTypeReferences.ts index 5d96e640242e4..95efb62eda902 100644 --- a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsTypeReferences.ts +++ b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsTypeReferences.ts @@ -1,6 +1,6 @@ // @allowJs: true // @checkJs: true -// @target: es5 +// @target: es5, es2015 // @outDir: tests/cases/conformance/jsdoc/declarations/out // @declaration: true // @filename: node_modules/@types/node/index.d.ts diff --git a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsTypeReferences2.ts b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsTypeReferences2.ts index bd67ecd26e060..65eaed39504b4 100644 --- a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsTypeReferences2.ts +++ b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsTypeReferences2.ts @@ -1,6 +1,6 @@ // @allowJs: true // @checkJs: true -// @target: es5 +// @target: es5, es2015 // @outDir: tests/cases/conformance/jsdoc/declarations/out // @declaration: true // @filename: something.ts diff --git a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsTypeReferences3.ts b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsTypeReferences3.ts index a78ca90d3b728..e82033bc17e84 100644 --- a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsTypeReferences3.ts +++ b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsTypeReferences3.ts @@ -1,6 +1,6 @@ // @allowJs: true // @checkJs: true -// @target: es5 +// @target: es5, es2015 // @outDir: tests/cases/conformance/jsdoc/declarations/out // @declaration: true // @filename: node_modules/@types/node/index.d.ts diff --git a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsTypeReferences4.ts b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsTypeReferences4.ts index 6134603f226b5..26a60f1a4bc33 100644 --- a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsTypeReferences4.ts +++ b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsTypeReferences4.ts @@ -1,6 +1,6 @@ // @allowJs: true // @checkJs: true -// @target: es5 +// @target: es5, es2015 // @outDir: tests/cases/conformance/jsdoc/declarations/out // @declaration: true // @filename: node_modules/@types/node/index.d.ts diff --git a/tests/cases/conformance/jsx/tsxPreserveEmit1.tsx b/tests/cases/conformance/jsx/tsxPreserveEmit1.tsx index 19d80f8053eb1..b0d0c4beaec4a 100644 --- a/tests/cases/conformance/jsx/tsxPreserveEmit1.tsx +++ b/tests/cases/conformance/jsx/tsxPreserveEmit1.tsx @@ -1,6 +1,6 @@ //@module: amd //@jsx: preserve -//@target: ES5 +//@target: ES5, ES2015 //@Filename: react.d.ts declare module 'react' { diff --git a/tests/cases/conformance/jsx/tsxPreserveEmit2.tsx b/tests/cases/conformance/jsx/tsxPreserveEmit2.tsx index 978c96a201984..d48a3c45ad639 100644 --- a/tests/cases/conformance/jsx/tsxPreserveEmit2.tsx +++ b/tests/cases/conformance/jsx/tsxPreserveEmit2.tsx @@ -1,6 +1,6 @@ //@module: amd //@jsx: preserve -//@target: ES5 +//@target: ES5, ES2015 //@Filename: test.tsx diff --git a/tests/cases/conformance/node/allowJs/nodeModulesAllowJsImportHelpersCollisions3.ts b/tests/cases/conformance/node/allowJs/nodeModulesAllowJsImportHelpersCollisions3.ts index 3e802349bb1b8..bae6be0f9ead8 100644 --- a/tests/cases/conformance/node/allowJs/nodeModulesAllowJsImportHelpersCollisions3.ts +++ b/tests/cases/conformance/node/allowJs/nodeModulesAllowJsImportHelpersCollisions3.ts @@ -1,5 +1,5 @@ // @module: node16,node18,node20,nodenext -// @target: es5 +// @target: es5, es2015 // @declaration: true // @importHelpers: true // @allowJs: true diff --git a/tests/cases/conformance/node/nodeModulesImportHelpersCollisions3.ts b/tests/cases/conformance/node/nodeModulesImportHelpersCollisions3.ts index 0e132b8c920aa..c6f994f833148 100644 --- a/tests/cases/conformance/node/nodeModulesImportHelpersCollisions3.ts +++ b/tests/cases/conformance/node/nodeModulesImportHelpersCollisions3.ts @@ -1,5 +1,5 @@ // @module: node16,node18,node20,nodenext -// @target: es5 +// @target: es5, es2015 // @declaration: true // @importHelpers: true // @filename: subfolder/index.ts diff --git a/tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors1.ts b/tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors1.ts index f44ef535b13c0..2a65f9bee9c7d 100644 --- a/tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors1.ts +++ b/tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors1.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 class C { get Foo() { } } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors10.ts b/tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors10.ts index 828bbc94914a8..3bc57e8fb811c 100644 --- a/tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors10.ts +++ b/tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors10.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 var v = { public get foo() { } }; \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors2.ts b/tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors2.ts index d4a19bf73ea75..40f22fb7eabaf 100644 --- a/tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors2.ts +++ b/tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors2.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: es5 +// @target: es5, es2015 class C { set Foo(a) { } } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors3.ts b/tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors3.ts index ce4e80f9b74cd..8764951649ce5 100644 --- a/tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors3.ts +++ b/tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors3.ts @@ -1,2 +1,2 @@ -// @target: es5 +// @target: es5, es2015 var v = { get Foo() { } }; \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors4.ts b/tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors4.ts index 8b501afda3ec1..0322b9ac598dc 100644 --- a/tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors4.ts +++ b/tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors4.ts @@ -1,3 +1,3 @@ // @strict: false -// @target: es5 +// @target: es5, es2015 var v = { set Foo(a) { } }; \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors5.ts b/tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors5.ts index 3da8d3376f1e3..269c5c92c4610 100644 --- a/tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors5.ts +++ b/tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors5.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 declare class C { get foo() { return 0; } } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors6.ts b/tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors6.ts index 2a0a0773fc61e..6e75ae9100385 100644 --- a/tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors6.ts +++ b/tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors6.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: es5 +// @target: es5, es2015 declare class C { set foo(v) { } } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors7.ts b/tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors7.ts index 02eb7800c954f..d90e2a03eba84 100644 --- a/tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors7.ts +++ b/tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors7.ts @@ -1,2 +1,2 @@ -// @target: es5 +// @target: es5, es2015 var v = { get foo(v: number) { } }; \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors8.ts b/tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors8.ts index f3240641c58b4..acabb808d5862 100644 --- a/tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors8.ts +++ b/tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors8.ts @@ -1,3 +1,3 @@ // @strict: false -// @target: es5 +// @target: es5, es2015 var v = { set foo() { } } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors9.ts b/tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors9.ts index 9c88ffc54e054..eceb534e2c8e2 100644 --- a/tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors9.ts +++ b/tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors9.ts @@ -1,3 +1,3 @@ // @strict: false -// @target: es5 +// @target: es5, es2015 var v = { set foo(a, b) { } } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/Accessors/parserGetAccessorWithTypeParameters1.ts b/tests/cases/conformance/parser/ecmascript5/Accessors/parserGetAccessorWithTypeParameters1.ts index 8318b20399be9..ec077e429ad5a 100644 --- a/tests/cases/conformance/parser/ecmascript5/Accessors/parserGetAccessorWithTypeParameters1.ts +++ b/tests/cases/conformance/parser/ecmascript5/Accessors/parserGetAccessorWithTypeParameters1.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 class C { get foo() { } } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/Accessors/parserSetAccessorWithTypeAnnotation1.ts b/tests/cases/conformance/parser/ecmascript5/Accessors/parserSetAccessorWithTypeAnnotation1.ts index b4e3165652b27..efa71328bccae 100644 --- a/tests/cases/conformance/parser/ecmascript5/Accessors/parserSetAccessorWithTypeAnnotation1.ts +++ b/tests/cases/conformance/parser/ecmascript5/Accessors/parserSetAccessorWithTypeAnnotation1.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: es5 +// @target: es5, es2015 class C { set foo(v): number { } diff --git a/tests/cases/conformance/parser/ecmascript5/Accessors/parserSetAccessorWithTypeParameters1.ts b/tests/cases/conformance/parser/ecmascript5/Accessors/parserSetAccessorWithTypeParameters1.ts index 77f42555cecfc..2703dbd9c4d69 100644 --- a/tests/cases/conformance/parser/ecmascript5/Accessors/parserSetAccessorWithTypeParameters1.ts +++ b/tests/cases/conformance/parser/ecmascript5/Accessors/parserSetAccessorWithTypeParameters1.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: es5 +// @target: es5, es2015 class C { set foo(v) { } } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName1.ts b/tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName1.ts index 8316cdfbc0e3e..e4fcb19af9393 100644 --- a/tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName1.ts +++ b/tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName1.ts @@ -1,4 +1,4 @@ -//@target: ES5 +//@target: ES5, ES2015 declare class C { [e]: number } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName10.ts b/tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName10.ts index 777c44e01852a..23e63bc838542 100644 --- a/tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName10.ts +++ b/tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName10.ts @@ -1,4 +1,4 @@ -//@target: ES5 +//@target: ES5, ES2015 class C { [e] = 1 } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName11.ts b/tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName11.ts index 8d5c2dd8b0b65..eac92bd3a84d2 100644 --- a/tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName11.ts +++ b/tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName11.ts @@ -1,5 +1,5 @@ // @strict: false -//@target: ES5 +//@target: ES5, ES2015 class C { [e](); } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName2.ts b/tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName2.ts index 2f37b0f2cadec..1a1e91dfb097a 100644 --- a/tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName2.ts +++ b/tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName2.ts @@ -1,2 +1,2 @@ -//@target: ES5 +//@target: ES5, ES2015 var v = { [e]: 1 }; \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName3.ts b/tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName3.ts index 5091ee0b98cb3..b3c798a454f5e 100644 --- a/tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName3.ts +++ b/tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName3.ts @@ -1,2 +1,2 @@ -//@target: ES5 +//@target: ES5, ES2015 var v = { [e]() { } }; \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName4.ts b/tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName4.ts index 67b97a6a0bb5e..61de804ce4d8b 100644 --- a/tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName4.ts +++ b/tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName4.ts @@ -1,2 +1,2 @@ -//@target: ES5 +//@target: ES5, ES2015 var v = { get [e]() { } }; \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName5.ts b/tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName5.ts index 0507207141078..836ad4ef81ac3 100644 --- a/tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName5.ts +++ b/tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName5.ts @@ -1,4 +1,4 @@ -//@target: ES5 +//@target: ES5, ES2015 interface I { [e]: number } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName6.ts b/tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName6.ts index 622bd43e46504..ab35dec0f72e5 100644 --- a/tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName6.ts +++ b/tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName6.ts @@ -1,4 +1,4 @@ -//@target: ES5 +//@target: ES5, ES2015 enum E { [e] = 1 } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName7.ts b/tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName7.ts index 43117e32fb72b..7585b74c7ba4e 100644 --- a/tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName7.ts +++ b/tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName7.ts @@ -1,5 +1,5 @@ // @strict: false -//@target: ES5 +//@target: ES5, ES2015 class C { [e] } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName8.ts b/tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName8.ts index 48abbd6fe9523..1c7f9add7e226 100644 --- a/tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName8.ts +++ b/tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName8.ts @@ -1,2 +1,2 @@ -//@target: ES5 +//@target: ES5, ES2015 var v: { [e]: number }; \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName9.ts b/tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName9.ts index de00d6f82455a..3f3e471a4dc50 100644 --- a/tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName9.ts +++ b/tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName9.ts @@ -1,4 +1,4 @@ -//@target: ES5 +//@target: ES5, ES2015 class C { [e]: Type } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessor1.ts b/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessor1.ts index 61bc60a46db5f..87f5a7cbfd2ab 100644 --- a/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessor1.ts +++ b/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessor1.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 class C { get foo() { } set foo(a) { } diff --git a/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration1.ts b/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration1.ts index e4f157dc4971a..d3adf93343e4e 100644 --- a/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration1.ts +++ b/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration1.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 class C { get a() { } } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration10.ts b/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration10.ts index fa586f53c53b6..e5963ccb63293 100644 --- a/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration10.ts +++ b/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration10.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 class C { export get Foo() { } } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration11.ts b/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration11.ts index 8e2cfaa7bd607..73d8d8fd8740b 100644 --- a/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration11.ts +++ b/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration11.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 class C { declare get Foo() { } } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration12.ts b/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration12.ts index c05d6c15c0c78..d5a2484423ed4 100644 --- a/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration12.ts +++ b/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration12.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 class C { get Foo(a: number) { } } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration13.ts b/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration13.ts index c84e7864a81f8..4fe61b37b77d9 100644 --- a/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration13.ts +++ b/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration13.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: es5 +// @target: es5, es2015 class C { set Foo() { } } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration14.ts b/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration14.ts index 79bc5e73630f0..d692eb0c95188 100644 --- a/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration14.ts +++ b/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration14.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 class C { set Foo(a: number, b: number) { } } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration15.ts b/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration15.ts index fa5379c9a2cc0..0ba58bc311c52 100644 --- a/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration15.ts +++ b/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration15.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 class C { set Foo(public a: number) { } } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration16.ts b/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration16.ts index 2ed7d3b077e28..b2083a38bcbd6 100644 --- a/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration16.ts +++ b/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration16.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: es5 +// @target: es5, es2015 class C { set Foo(a = 1) { } } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration17.ts b/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration17.ts index 000aedd75a074..e8ff9767e2d29 100644 --- a/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration17.ts +++ b/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration17.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 class C { set Foo(a?: number) { } } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration18.ts b/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration18.ts index cb9a38201b84e..b730e86aea516 100644 --- a/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration18.ts +++ b/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration18.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: es5 +// @target: es5, es2015 class C { set Foo(...a) { } } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration2.ts b/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration2.ts index bfa10430978ed..ee5dd6cc29449 100644 --- a/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration2.ts +++ b/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration2.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 class C { get "b"() { } } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration3.ts b/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration3.ts index 98c90c4f6c939..0905290d43328 100644 --- a/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration3.ts +++ b/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration3.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 class C { get 0() { } } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration4.ts b/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration4.ts index 3de5bf8e3ee27..e74f34bc4dc27 100644 --- a/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration4.ts +++ b/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration4.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: es5 +// @target: es5, es2015 class C { set a(i) { } } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration5.ts b/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration5.ts index cc0173de8d22b..f5f0cceed708b 100644 --- a/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration5.ts +++ b/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration5.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: es5 +// @target: es5, es2015 class C { set "a"(i) { } } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration6.ts b/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration6.ts index db71579f82ee1..6671a20a84b83 100644 --- a/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration6.ts +++ b/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration6.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: es5 +// @target: es5, es2015 class C { set 0(i) { } } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration7.ts b/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration7.ts index c7fff54d528d8..e58fa0cc8f127 100644 --- a/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration7.ts +++ b/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration7.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 class C { public public get Foo() { } } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration8.ts b/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration8.ts index f1d099e1ea1c6..c7c216390dc79 100644 --- a/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration8.ts +++ b/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration8.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: es5 +// @target: es5, es2015 class C { static static get Foo() { } } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration9.ts b/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration9.ts index 2e60420c43451..e291faaddef6c 100644 --- a/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration9.ts +++ b/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration9.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 class C { static public get Foo() { } } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement1.d.ts b/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement1.d.ts index 8f9a4072f428e..db2564b602341 100644 --- a/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement1.d.ts +++ b/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement1.d.ts @@ -1,3 +1,3 @@ -//@target: ES5 +//@target: ES5, ES2015 for (var i of e) { } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement10.ts b/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement10.ts index 3a6f932e82184..fd5be647304e3 100644 --- a/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement10.ts +++ b/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement10.ts @@ -1,3 +1,3 @@ -//@target: ES5 +//@target: ES5, ES2015 for (const v of X) { } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement11.ts b/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement11.ts index 94ca9330ab0a0..629c73459844c 100644 --- a/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement11.ts +++ b/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement11.ts @@ -1,3 +1,3 @@ -//@target: ES5 +//@target: ES5, ES2015 for (const [a, b] of X) { } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement12.ts b/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement12.ts index 7d4655e4b36e4..84392a96b575f 100644 --- a/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement12.ts +++ b/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement12.ts @@ -1,3 +1,3 @@ -//@target: ES5 +//@target: ES5, ES2015 for (const {a, b} of X) { } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement13.ts b/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement13.ts index 7a11d2e073e36..a5c1bc669d14f 100644 --- a/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement13.ts +++ b/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement13.ts @@ -1,3 +1,3 @@ -//@target: ES5 +//@target: ES5, ES2015 for (let {a, b} of X) { } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement14.ts b/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement14.ts index c39939a1a0875..83f553afad725 100644 --- a/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement14.ts +++ b/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement14.ts @@ -1,3 +1,3 @@ -//@target: ES5 +//@target: ES5, ES2015 for (let [a, b] of X) { } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement15.ts b/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement15.ts index 95c5c2c53ee72..c4006c51a59ce 100644 --- a/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement15.ts +++ b/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement15.ts @@ -1,3 +1,3 @@ -//@target: ES5 +//@target: ES5, ES2015 for (var [a, b] of X) { } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement16.ts b/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement16.ts index 9a68bad827c0c..a2b7af27ca052 100644 --- a/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement16.ts +++ b/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement16.ts @@ -1,3 +1,3 @@ -//@target: ES5 +//@target: ES5, ES2015 for (var {a, b} of X) { } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement17.ts b/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement17.ts index 882ae938d6c62..222641aa21b1e 100644 --- a/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement17.ts +++ b/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement17.ts @@ -1,2 +1,2 @@ -//@target: ES5 +//@target: ES5, ES2015 for (var of; ;) { } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement18.ts b/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement18.ts index 759cc1a505eb9..d57b61c83a1c3 100644 --- a/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement18.ts +++ b/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement18.ts @@ -1,3 +1,3 @@ // @strict: false -//@target: ES5 +//@target: ES5, ES2015 for (var of of of) { } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement19.ts b/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement19.ts index 944aa894881a5..1f2477e8199c9 100644 --- a/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement19.ts +++ b/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement19.ts @@ -1,3 +1,3 @@ // @strict: false -//@target: ES5 +//@target: ES5, ES2015 for (var of in of) { } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement2.ts b/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement2.ts index 7ef976881151d..63f851c454945 100644 --- a/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement2.ts +++ b/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement2.ts @@ -1,3 +1,3 @@ -//@target: ES5 +//@target: ES5, ES2015 for (var of X) { } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement20.ts b/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement20.ts index 226342f484fb0..ae906b65acc23 100644 --- a/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement20.ts +++ b/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement20.ts @@ -1,3 +1,3 @@ // @strict: false -//@target: ES5 +//@target: ES5, ES2015 for (var of = 0 in of) { } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement21.ts b/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement21.ts index a61edfbd05093..9c351f3d675da 100644 --- a/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement21.ts +++ b/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement21.ts @@ -1,2 +1,2 @@ -//@target: ES5 +//@target: ES5, ES2015 for (var of of) { } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement3.ts b/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement3.ts index 1b183225b749b..2a2cc08b4c49c 100644 --- a/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement3.ts +++ b/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement3.ts @@ -1,3 +1,3 @@ -//@target: ES5 +//@target: ES5, ES2015 for (var a, b of X) { } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement4.ts b/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement4.ts index a99b69a2f4ab2..c50bab3b1f52a 100644 --- a/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement4.ts +++ b/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement4.ts @@ -1,3 +1,3 @@ -//@target: ES5 +//@target: ES5, ES2015 for (var a = 1 of X) { } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement5.ts b/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement5.ts index c3c434b605c5f..123f8543da239 100644 --- a/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement5.ts +++ b/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement5.ts @@ -1,3 +1,3 @@ -//@target: ES5 +//@target: ES5, ES2015 for (var a: number of X) { } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement6.ts b/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement6.ts index 4e03b361e7360..a3aa852355613 100644 --- a/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement6.ts +++ b/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement6.ts @@ -1,3 +1,3 @@ -//@target: ES5 +//@target: ES5, ES2015 for (var a = 1, b = 2 of X) { } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement7.ts b/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement7.ts index 8340bab563bd5..785372e393a9b 100644 --- a/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement7.ts +++ b/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement7.ts @@ -1,3 +1,3 @@ -//@target: ES5 +//@target: ES5, ES2015 for (var a: number = 1, b: string = "" of X) { } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement8.ts b/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement8.ts index 39ecbcfbcb3c2..2fb1dc901719f 100644 --- a/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement8.ts +++ b/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement8.ts @@ -1,3 +1,3 @@ -//@target: ES5 +//@target: ES5, ES2015 for (var v of X) { } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement9.ts b/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement9.ts index 63fe58a93f80d..0121115d033ce 100644 --- a/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement9.ts +++ b/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement9.ts @@ -1,3 +1,3 @@ -//@target: ES5 +//@target: ES5, ES2015 for (let v of X) { } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode12.ts b/tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode12.ts index d18966e8fdcf6..da03b02b81629 100644 --- a/tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode12.ts +++ b/tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode12.ts @@ -1,4 +1,4 @@ // @strict: false -// @target: ES5 +// @target: ES5, ES2015 "use strict"; var v = { set foo(eval) { } } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolIndexer1.ts b/tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolIndexer1.ts index 5c10e2d487be2..d96a637689426 100644 --- a/tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolIndexer1.ts +++ b/tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolIndexer1.ts @@ -1,4 +1,4 @@ -//@target: ES5 +//@target: ES5, ES2015 interface I { [s: symbol]: string; } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolIndexer2.ts b/tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolIndexer2.ts index e5d29c08f7d84..bed40a2ef67c8 100644 --- a/tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolIndexer2.ts +++ b/tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolIndexer2.ts @@ -1,4 +1,4 @@ -//@target: ES5 +//@target: ES5, ES2015 class C { [s: symbol]: string; } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolIndexer3.ts b/tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolIndexer3.ts index d4bd13aa1d6b4..4761c9d22cedb 100644 --- a/tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolIndexer3.ts +++ b/tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolIndexer3.ts @@ -1,4 +1,4 @@ -//@target: ES5 +//@target: ES5, ES2015 var x: { [s: symbol]: string; } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolProperty1.ts b/tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolProperty1.ts index 64ca01bba6c80..116ae5dd0221a 100644 --- a/tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolProperty1.ts +++ b/tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolProperty1.ts @@ -1,4 +1,4 @@ -//@target: ES5 +//@target: ES5, ES2015 interface I { [Symbol.iterator]: string; } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolProperty2.ts b/tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolProperty2.ts index cc606c2e6a3d5..3ef1a90c1f385 100644 --- a/tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolProperty2.ts +++ b/tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolProperty2.ts @@ -1,4 +1,4 @@ -//@target: ES5 +//@target: ES5, ES2015 interface I { [Symbol.unscopables](): string; } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolProperty3.ts b/tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolProperty3.ts index 978d4ef95f018..3ad239f2b3642 100644 --- a/tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolProperty3.ts +++ b/tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolProperty3.ts @@ -1,4 +1,4 @@ -//@target: ES5 +//@target: ES5, ES2015 declare class C { [Symbol.unscopables](): string; } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolProperty4.ts b/tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolProperty4.ts index 7f16672ebd254..94cca5dfb3dd6 100644 --- a/tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolProperty4.ts +++ b/tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolProperty4.ts @@ -1,4 +1,4 @@ -//@target: ES5 +//@target: ES5, ES2015 declare class C { [Symbol.isRegExp]: string; } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolProperty5.ts b/tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolProperty5.ts index fb7f00d769420..2ca9562ee7d0f 100644 --- a/tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolProperty5.ts +++ b/tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolProperty5.ts @@ -1,4 +1,4 @@ -//@target: ES5 +//@target: ES5, ES2015 class C { [Symbol.isRegExp]: string; } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolProperty6.ts b/tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolProperty6.ts index 3fc8e6f897977..e20eb89a4c4e9 100644 --- a/tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolProperty6.ts +++ b/tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolProperty6.ts @@ -1,4 +1,4 @@ -//@target: ES5 +//@target: ES5, ES2015 class C { [Symbol.toStringTag]: string = ""; } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolProperty7.ts b/tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolProperty7.ts index a27636388c074..d1e46dadbf4c5 100644 --- a/tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolProperty7.ts +++ b/tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolProperty7.ts @@ -1,4 +1,4 @@ -//@target: ES5 +//@target: ES5, ES2015 class C { [Symbol.toStringTag](): void { } } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolProperty8.ts b/tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolProperty8.ts index 78e5738f7da8e..36818ac9acc25 100644 --- a/tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolProperty8.ts +++ b/tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolProperty8.ts @@ -1,4 +1,4 @@ -//@target: ES5 +//@target: ES5, ES2015 var x: { [Symbol.toPrimitive](): string } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolProperty9.ts b/tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolProperty9.ts index 7838df4d8fcbf..6eaaa4f265607 100644 --- a/tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolProperty9.ts +++ b/tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolProperty9.ts @@ -1,4 +1,4 @@ -//@target: ES5 +//@target: ES5, ES2015 var x: { [Symbol.toPrimitive]: string } \ No newline at end of file diff --git a/tests/cases/conformance/salsa/exportDefaultInJsFile01.ts b/tests/cases/conformance/salsa/exportDefaultInJsFile01.ts index ee180e1ba6d0c..b701b61de6e5d 100644 --- a/tests/cases/conformance/salsa/exportDefaultInJsFile01.ts +++ b/tests/cases/conformance/salsa/exportDefaultInJsFile01.ts @@ -1,5 +1,5 @@ // @allowJS: true -// @target: es5 +// @target: es5, es2015 // @module: commonjs // @filename: myFile01.js diff --git a/tests/cases/conformance/salsa/typeFromPropertyAssignmentOutOfOrder.ts b/tests/cases/conformance/salsa/typeFromPropertyAssignmentOutOfOrder.ts index 515dca1e21e96..611bc14cabaa8 100644 --- a/tests/cases/conformance/salsa/typeFromPropertyAssignmentOutOfOrder.ts +++ b/tests/cases/conformance/salsa/typeFromPropertyAssignmentOutOfOrder.ts @@ -2,7 +2,7 @@ // @noEmit: true // @allowJs: true // @checkJs: true -// @target: es5 +// @target: es5, es2015 // @filename: index.js First.Item = class I {} Common.Object = class extends First.Item {} diff --git a/tests/cases/conformance/scanner/ecmascript5/scannerNumericLiteral1.ts b/tests/cases/conformance/scanner/ecmascript5/scannerNumericLiteral1.ts index 23206bbe1f594..847216373bb6e 100644 --- a/tests/cases/conformance/scanner/ecmascript5/scannerNumericLiteral1.ts +++ b/tests/cases/conformance/scanner/ecmascript5/scannerNumericLiteral1.ts @@ -1,2 +1,2 @@ -// @target: ES5 +// @target: ES5, ES2015 0 \ No newline at end of file diff --git a/tests/cases/conformance/scanner/ecmascript5/scannerNumericLiteral2.ts b/tests/cases/conformance/scanner/ecmascript5/scannerNumericLiteral2.ts index 60d12a43442a0..b595fee95427e 100644 --- a/tests/cases/conformance/scanner/ecmascript5/scannerNumericLiteral2.ts +++ b/tests/cases/conformance/scanner/ecmascript5/scannerNumericLiteral2.ts @@ -1,2 +1,2 @@ -// @target: ES5 +// @target: ES5, ES2015 01 \ No newline at end of file diff --git a/tests/cases/conformance/scanner/ecmascript5/scannerNumericLiteral3.ts b/tests/cases/conformance/scanner/ecmascript5/scannerNumericLiteral3.ts index fda0822c2f37b..501b9390963d9 100644 --- a/tests/cases/conformance/scanner/ecmascript5/scannerNumericLiteral3.ts +++ b/tests/cases/conformance/scanner/ecmascript5/scannerNumericLiteral3.ts @@ -1,2 +1,2 @@ -// @target: ES5 +// @target: ES5, ES2015 01.0 \ No newline at end of file diff --git a/tests/cases/conformance/scanner/ecmascript5/scannerNumericLiteral4.ts b/tests/cases/conformance/scanner/ecmascript5/scannerNumericLiteral4.ts index 092e6af671903..3e66ed8cf8a64 100644 --- a/tests/cases/conformance/scanner/ecmascript5/scannerNumericLiteral4.ts +++ b/tests/cases/conformance/scanner/ecmascript5/scannerNumericLiteral4.ts @@ -1,2 +1,2 @@ -// @target: ES5 +// @target: ES5, ES2015 1e \ No newline at end of file diff --git a/tests/cases/conformance/scanner/ecmascript5/scannerNumericLiteral5.ts b/tests/cases/conformance/scanner/ecmascript5/scannerNumericLiteral5.ts index 9a9804b4f0e66..317f276e5f528 100644 --- a/tests/cases/conformance/scanner/ecmascript5/scannerNumericLiteral5.ts +++ b/tests/cases/conformance/scanner/ecmascript5/scannerNumericLiteral5.ts @@ -1,2 +1,2 @@ -// @target: ES5 +// @target: ES5, ES2015 1e0 \ No newline at end of file diff --git a/tests/cases/conformance/scanner/ecmascript5/scannerNumericLiteral6.ts b/tests/cases/conformance/scanner/ecmascript5/scannerNumericLiteral6.ts index 7ff2871b00106..cc3d0c130daba 100644 --- a/tests/cases/conformance/scanner/ecmascript5/scannerNumericLiteral6.ts +++ b/tests/cases/conformance/scanner/ecmascript5/scannerNumericLiteral6.ts @@ -1,2 +1,2 @@ -// @target: ES5 +// @target: ES5, ES2015 1e+ \ No newline at end of file diff --git a/tests/cases/conformance/scanner/ecmascript5/scannerNumericLiteral7.ts b/tests/cases/conformance/scanner/ecmascript5/scannerNumericLiteral7.ts index 2e62350d48c14..1cc5c7bdf3329 100644 --- a/tests/cases/conformance/scanner/ecmascript5/scannerNumericLiteral7.ts +++ b/tests/cases/conformance/scanner/ecmascript5/scannerNumericLiteral7.ts @@ -1,2 +1,2 @@ -// @target: ES5 +// @target: ES5, ES2015 1e+0 \ No newline at end of file diff --git a/tests/cases/conformance/scanner/ecmascript5/scannerNumericLiteral8.ts b/tests/cases/conformance/scanner/ecmascript5/scannerNumericLiteral8.ts index 858e3eada0f7c..703508eeb4054 100644 --- a/tests/cases/conformance/scanner/ecmascript5/scannerNumericLiteral8.ts +++ b/tests/cases/conformance/scanner/ecmascript5/scannerNumericLiteral8.ts @@ -1,2 +1,2 @@ -// @target: ES5 +// @target: ES5, ES2015 -03 \ No newline at end of file diff --git a/tests/cases/conformance/scanner/ecmascript5/scannerNumericLiteral9.ts b/tests/cases/conformance/scanner/ecmascript5/scannerNumericLiteral9.ts index cf187b83edfaa..1f19738437da7 100644 --- a/tests/cases/conformance/scanner/ecmascript5/scannerNumericLiteral9.ts +++ b/tests/cases/conformance/scanner/ecmascript5/scannerNumericLiteral9.ts @@ -1,2 +1,2 @@ -// @target: ES5 +// @target: ES5, ES2015 009 \ No newline at end of file diff --git a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.11.ts b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.11.ts index d7cdd5a6b24e6..26b61ffb7a52a 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.11.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.11.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: es5 +// @target: es5, es2015 // @module: esnext // @lib: esnext // @noTypesAndSymbols: true diff --git a/tests/cases/conformance/statements/for-await-ofStatements/forAwaitPerIterationBindingDownlevel.ts b/tests/cases/conformance/statements/for-await-ofStatements/forAwaitPerIterationBindingDownlevel.ts index af08f7d7294ca..12638a6ba7df9 100644 --- a/tests/cases/conformance/statements/for-await-ofStatements/forAwaitPerIterationBindingDownlevel.ts +++ b/tests/cases/conformance/statements/for-await-ofStatements/forAwaitPerIterationBindingDownlevel.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @lib: esnext, dom // @downlevelIteration: true // @noTypesAndSymbols: true diff --git a/tests/cases/conformance/statements/for-ofStatements/ES3For-ofTypeCheck1.ts b/tests/cases/conformance/statements/for-ofStatements/ES3For-ofTypeCheck1.ts index 3b27caf3fe919..697ae5267f02a 100644 --- a/tests/cases/conformance/statements/for-ofStatements/ES3For-ofTypeCheck1.ts +++ b/tests/cases/conformance/statements/for-ofStatements/ES3For-ofTypeCheck1.ts @@ -1,2 +1,2 @@ -//@target: ES5 +//@target: ES5, ES2015 for (var v of "") { } \ No newline at end of file diff --git a/tests/cases/conformance/statements/for-ofStatements/ES3For-ofTypeCheck2.ts b/tests/cases/conformance/statements/for-ofStatements/ES3For-ofTypeCheck2.ts index 2e22731a78a25..982eb7aaf3a11 100644 --- a/tests/cases/conformance/statements/for-ofStatements/ES3For-ofTypeCheck2.ts +++ b/tests/cases/conformance/statements/for-ofStatements/ES3For-ofTypeCheck2.ts @@ -1,2 +1,2 @@ -//@target: ES5 +//@target: ES5, ES2015 for (var v of [true]) { } \ No newline at end of file diff --git a/tests/cases/conformance/statements/for-ofStatements/ES3For-ofTypeCheck4.ts b/tests/cases/conformance/statements/for-ofStatements/ES3For-ofTypeCheck4.ts index dc8388c05760a..3ac4dd54a6958 100644 --- a/tests/cases/conformance/statements/for-ofStatements/ES3For-ofTypeCheck4.ts +++ b/tests/cases/conformance/statements/for-ofStatements/ES3For-ofTypeCheck4.ts @@ -1,3 +1,3 @@ -//@target: ES5 +//@target: ES5, ES2015 var union: string | string[]; for (const v of union) { } \ No newline at end of file diff --git a/tests/cases/conformance/statements/for-ofStatements/ES3For-ofTypeCheck6.ts b/tests/cases/conformance/statements/for-ofStatements/ES3For-ofTypeCheck6.ts index 46cc82af9837d..ee98cbbfb40ab 100644 --- a/tests/cases/conformance/statements/for-ofStatements/ES3For-ofTypeCheck6.ts +++ b/tests/cases/conformance/statements/for-ofStatements/ES3For-ofTypeCheck6.ts @@ -1,3 +1,3 @@ -//@target: ES5 +//@target: ES5, ES2015 var union: string[] | number[]; for (var v of union) { } \ No newline at end of file diff --git a/tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck1.ts b/tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck1.ts index 3b27caf3fe919..697ae5267f02a 100644 --- a/tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck1.ts +++ b/tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck1.ts @@ -1,2 +1,2 @@ -//@target: ES5 +//@target: ES5, ES2015 for (var v of "") { } \ No newline at end of file diff --git a/tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck10.ts b/tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck10.ts index f5f96e5c44a29..ea63025857b98 100644 --- a/tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck10.ts +++ b/tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck10.ts @@ -1,4 +1,4 @@ -//@target: ES5 +//@target: ES5, ES2015 // In ES3/5, you cannot for...of over an arbitrary iterable. class MyStringIterator { diff --git a/tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck11.ts b/tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck11.ts index f20682c7de7b3..be1c6e4be8a1d 100644 --- a/tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck11.ts +++ b/tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck11.ts @@ -1,4 +1,4 @@ -//@target: ES5 +//@target: ES5, ES2015 declare var union: string | number[]; var v: string; for (v of union) { } \ No newline at end of file diff --git a/tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck12.ts b/tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck12.ts index 2d220dc5f261f..ec0fbdff461ac 100644 --- a/tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck12.ts +++ b/tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck12.ts @@ -1,2 +1,2 @@ -//@target: ES5 +//@target: ES5, ES2015 for (const v of 0) { } \ No newline at end of file diff --git a/tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck13.ts b/tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck13.ts index e6748b9373b9c..24bb127c00444 100644 --- a/tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck13.ts +++ b/tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck13.ts @@ -1,4 +1,4 @@ -//@target: ES5 +//@target: ES5, ES2015 //@lib: ES6 const strSet: Set = new Set() strSet.add('Hello') diff --git a/tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck14.ts b/tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck14.ts index 3f58e9d4ac93c..14ad2dab9e415 100644 --- a/tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck14.ts +++ b/tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck14.ts @@ -1,4 +1,4 @@ -//@target: ES5 +//@target: ES5, ES2015 //@lib: ES6 declare var union: string | Set for (const e of union) { } \ No newline at end of file diff --git a/tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck2.ts b/tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck2.ts index 2e22731a78a25..982eb7aaf3a11 100644 --- a/tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck2.ts +++ b/tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck2.ts @@ -1,2 +1,2 @@ -//@target: ES5 +//@target: ES5, ES2015 for (var v of [true]) { } \ No newline at end of file diff --git a/tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck3.ts b/tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck3.ts index cc7f09df670d9..9c3e349610fb8 100644 --- a/tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck3.ts +++ b/tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck3.ts @@ -1,3 +1,3 @@ -//@target: ES5 +//@target: ES5, ES2015 var tuple: [string, number] = ["", 0]; for (var v of tuple) { } \ No newline at end of file diff --git a/tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck4.ts b/tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck4.ts index dc8388c05760a..3ac4dd54a6958 100644 --- a/tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck4.ts +++ b/tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck4.ts @@ -1,3 +1,3 @@ -//@target: ES5 +//@target: ES5, ES2015 var union: string | string[]; for (const v of union) { } \ No newline at end of file diff --git a/tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck5.ts b/tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck5.ts index f0218bd57f91a..bb95b18e7d277 100644 --- a/tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck5.ts +++ b/tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck5.ts @@ -1,3 +1,3 @@ -//@target: ES5 +//@target: ES5, ES2015 var union: string | number[]; for (var v of union) { } \ No newline at end of file diff --git a/tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck6.ts b/tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck6.ts index 46cc82af9837d..ee98cbbfb40ab 100644 --- a/tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck6.ts +++ b/tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck6.ts @@ -1,3 +1,3 @@ -//@target: ES5 +//@target: ES5, ES2015 var union: string[] | number[]; for (var v of union) { } \ No newline at end of file diff --git a/tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck7.ts b/tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck7.ts index dd6e6b8fa77da..b2b6dc788e3bf 100644 --- a/tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck7.ts +++ b/tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck7.ts @@ -1,3 +1,3 @@ -//@target: ES5 +//@target: ES5, ES2015 declare var union: string | number; for (var v of union) { } \ No newline at end of file diff --git a/tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck8.ts b/tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck8.ts index 43ee909f8530e..7a049d3764375 100644 --- a/tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck8.ts +++ b/tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck8.ts @@ -1,4 +1,4 @@ -//@target: ES5 +//@target: ES5, ES2015 declare var union: string | string[]| number[]| symbol[]; var v: symbol; for (v of union) { } \ No newline at end of file diff --git a/tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck9.ts b/tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck9.ts index 4baa2f49843d5..259fd1c355656 100644 --- a/tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck9.ts +++ b/tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck9.ts @@ -1,3 +1,3 @@ -//@target: ES5 +//@target: ES5, ES2015 declare var union: string | string[] | number | symbol; for (let v of union) { } \ No newline at end of file diff --git a/tests/cases/conformance/statements/for-ofStatements/ES5for-of32.ts b/tests/cases/conformance/statements/for-ofStatements/ES5for-of32.ts index 9f646e2c851e4..93046129d93f3 100644 --- a/tests/cases/conformance/statements/for-ofStatements/ES5for-of32.ts +++ b/tests/cases/conformance/statements/for-ofStatements/ES5for-of32.ts @@ -1,4 +1,4 @@ -//@target: ES5 +//@target: ES5, ES2015 var array = [1,2,3]; var sum = 0; diff --git a/tests/cases/conformance/statements/labeledStatements/labeledStatementDeclarationListInLoopNoCrash1.ts b/tests/cases/conformance/statements/labeledStatements/labeledStatementDeclarationListInLoopNoCrash1.ts index 74265116f75b5..1bdadb1e1e025 100644 --- a/tests/cases/conformance/statements/labeledStatements/labeledStatementDeclarationListInLoopNoCrash1.ts +++ b/tests/cases/conformance/statements/labeledStatements/labeledStatementDeclarationListInLoopNoCrash1.ts @@ -1,5 +1,5 @@ // @strict: true -// @target: es5 +// @target: es5, es2015 // @noTypesAndSymbols: true for (let x of []) { diff --git a/tests/cases/conformance/statements/labeledStatements/labeledStatementDeclarationListInLoopNoCrash2.ts b/tests/cases/conformance/statements/labeledStatements/labeledStatementDeclarationListInLoopNoCrash2.ts index 048775ea29314..67dddcecbba5e 100644 --- a/tests/cases/conformance/statements/labeledStatements/labeledStatementDeclarationListInLoopNoCrash2.ts +++ b/tests/cases/conformance/statements/labeledStatements/labeledStatementDeclarationListInLoopNoCrash2.ts @@ -1,5 +1,5 @@ // @strict: true -// @target: es5 +// @target: es5, es2015 // @noTypesAndSymbols: true for (let x of []) { diff --git a/tests/cases/conformance/statements/labeledStatements/labeledStatementDeclarationListInLoopNoCrash3.ts b/tests/cases/conformance/statements/labeledStatements/labeledStatementDeclarationListInLoopNoCrash3.ts index 0fc7d951d2ce7..30e852fc0f7b9 100644 --- a/tests/cases/conformance/statements/labeledStatements/labeledStatementDeclarationListInLoopNoCrash3.ts +++ b/tests/cases/conformance/statements/labeledStatements/labeledStatementDeclarationListInLoopNoCrash3.ts @@ -1,5 +1,5 @@ // @strict: true -// @target: es5 +// @target: es5, es2015 // @noTypesAndSymbols: true // https://github.com/microsoft/TypeScript/issues/59345 diff --git a/tests/cases/conformance/statements/labeledStatements/labeledStatementDeclarationListInLoopNoCrash4.ts b/tests/cases/conformance/statements/labeledStatements/labeledStatementDeclarationListInLoopNoCrash4.ts index 53d7e6d263f6d..62ef0fe26632b 100644 --- a/tests/cases/conformance/statements/labeledStatements/labeledStatementDeclarationListInLoopNoCrash4.ts +++ b/tests/cases/conformance/statements/labeledStatements/labeledStatementDeclarationListInLoopNoCrash4.ts @@ -1,5 +1,5 @@ // @strict: true -// @target: es5 +// @target: es5, es2015 // @noTypesAndSymbols: true export class ParseThemeData { diff --git a/tests/cases/conformance/types/localTypes/localTypes1.ts b/tests/cases/conformance/types/localTypes/localTypes1.ts index bceb9ad32cf93..6458e6731944f 100644 --- a/tests/cases/conformance/types/localTypes/localTypes1.ts +++ b/tests/cases/conformance/types/localTypes/localTypes1.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 function f1() { enum E { diff --git a/tests/cases/conformance/types/members/objectTypeWithStringNamedNumericProperty.ts b/tests/cases/conformance/types/members/objectTypeWithStringNamedNumericProperty.ts index d3c99433892bd..f071b2ca109b3 100644 --- a/tests/cases/conformance/types/members/objectTypeWithStringNamedNumericProperty.ts +++ b/tests/cases/conformance/types/members/objectTypeWithStringNamedNumericProperty.ts @@ -1,4 +1,4 @@ -// @target: ES5 +// @target: ES5, ES2015 // string named numeric properties are legal and distinct when indexed by string values // indexed numerically the value is converted to a number diff --git a/tests/cases/conformance/types/namedTypes/classWithOnlyPublicMembersEquivalentToInterface.ts b/tests/cases/conformance/types/namedTypes/classWithOnlyPublicMembersEquivalentToInterface.ts index 99c2c2e7584ad..1bc7713a43b89 100644 --- a/tests/cases/conformance/types/namedTypes/classWithOnlyPublicMembersEquivalentToInterface.ts +++ b/tests/cases/conformance/types/namedTypes/classWithOnlyPublicMembersEquivalentToInterface.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // no errors expected class C { diff --git a/tests/cases/conformance/types/namedTypes/classWithOnlyPublicMembersEquivalentToInterface2.ts b/tests/cases/conformance/types/namedTypes/classWithOnlyPublicMembersEquivalentToInterface2.ts index 369451a54a29a..cac95f454eaab 100644 --- a/tests/cases/conformance/types/namedTypes/classWithOnlyPublicMembersEquivalentToInterface2.ts +++ b/tests/cases/conformance/types/namedTypes/classWithOnlyPublicMembersEquivalentToInterface2.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // no errors expected class C { diff --git a/tests/cases/conformance/types/rest/objectRestParameterES5.ts b/tests/cases/conformance/types/rest/objectRestParameterES5.ts index a7388b68bd1d1..5da356ef804ff 100644 --- a/tests/cases/conformance/types/rest/objectRestParameterES5.ts +++ b/tests/cases/conformance/types/rest/objectRestParameterES5.ts @@ -1,5 +1,5 @@ // @strict: false -// @target: es5 +// @target: es5, es2015 function cloneAgain({ a, ...clone }: { a: number, b: string }): void { } diff --git a/tests/cases/conformance/types/spread/objectSpread.ts b/tests/cases/conformance/types/spread/objectSpread.ts index 7d4ed52983e1f..0c047ff5b6084 100644 --- a/tests/cases/conformance/types/spread/objectSpread.ts +++ b/tests/cases/conformance/types/spread/objectSpread.ts @@ -1,5 +1,5 @@ // @strictNullChecks: true -// @target: es5 +// @target: es5, es2015 let o = { a: 1, b: 'no' } let o2 = { b: 'yes', c: true } let swap = { a: 'yes', b: -1 }; diff --git a/tests/cases/conformance/types/spread/objectSpreadNegative.ts b/tests/cases/conformance/types/spread/objectSpreadNegative.ts index 28936bbdeb127..24a81f57d213d 100644 --- a/tests/cases/conformance/types/spread/objectSpreadNegative.ts +++ b/tests/cases/conformance/types/spread/objectSpreadNegative.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5, es2015 // @strictNullChecks: true let o = { a: 1, b: 'no' } diff --git a/tests/cases/conformance/types/thisType/thisTypeInAccessors.ts b/tests/cases/conformance/types/thisType/thisTypeInAccessors.ts index b09037597671e..409fb2226a96a 100644 --- a/tests/cases/conformance/types/thisType/thisTypeInAccessors.ts +++ b/tests/cases/conformance/types/thisType/thisTypeInAccessors.ts @@ -1,6 +1,6 @@ // @noImplicitAny: true // @noImplicitThis: true -// @target: es5 +// @target: es5, es2015 interface Foo { n: number; x: number; diff --git a/tests/cases/conformance/types/thisType/thisTypeInAccessorsNegative.ts b/tests/cases/conformance/types/thisType/thisTypeInAccessorsNegative.ts index 67b7576a4b5fa..4df007591c47b 100644 --- a/tests/cases/conformance/types/thisType/thisTypeInAccessorsNegative.ts +++ b/tests/cases/conformance/types/thisType/thisTypeInAccessorsNegative.ts @@ -1,6 +1,6 @@ // @noImplicitAny: true // @noImplicitThis: true -// @target: es5 +// @target: es5, es2015 interface Foo { n: number; x: number; diff --git a/tests/cases/conformance/types/thisType/thisTypeInObjectLiterals2.ts b/tests/cases/conformance/types/thisType/thisTypeInObjectLiterals2.ts index 27861f81da6a6..9136c2f668d12 100644 --- a/tests/cases/conformance/types/thisType/thisTypeInObjectLiterals2.ts +++ b/tests/cases/conformance/types/thisType/thisTypeInObjectLiterals2.ts @@ -1,6 +1,6 @@ // @declaration: true // @strict: true -// @target: es5 +// @target: es5, es2015 // In methods of an object literal with no contextual type, 'this' has the type // of the object literal. From b8600f0f07f134103ff36049a223a16eca5f1366 Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Thu, 29 Jan 2026 10:32:41 -0800 Subject: [PATCH 3/6] Explicitly mark tests with target, module --- tests/baselines/reference/2dArrays.js | 25 +- tests/baselines/reference/APISample_Watch.js | 20 +- .../reference/APISample_WatchWithDefaults.js | 14 +- .../APISample_WatchWithOwnWatchHost.js | 24 +- .../baselines/reference/APISample_compile.js | 10 +- tests/baselines/reference/APISample_jsdoc.js | 41 +- tests/baselines/reference/APISample_linter.js | 16 +- .../reference/APISample_parseConfig.js | 13 +- .../reference/APISample_transform.js | 6 +- .../baselines/reference/APISample_watcher.js | 54 +- ...onAmbientClassWithSameNameAndCommonRoot.js | 7 +- tests/baselines/reference/ArrowFunction1.js | 2 +- tests/baselines/reference/ArrowFunction4.js | 2 +- .../reference/ArrowFunctionExpression1.js | 2 +- ...hModuleMemberThatUsesClassTypeParameter.js | 42 +- ...GenericClassStaticFunctionOfTheSameName.js | 9 +- ...GenericClassStaticFunctionOfTheSameName.js | 9 +- ...dStaticFunctionUsingClassPrivateStatics.js | 9 +- ...nctionAndExportedFunctionThatShareAName.js | 18 +- ...ionAndNonExportedFunctionThatShareAName.js | 18 +- ...ticVariableAndExportedVarThatShareAName.js | 18 +- ...VariableAndNonExportedVarThatShareAName.js | 18 +- ...ClassAndModuleWithSameNameAndCommonRoot.js | 16 +- .../baselines/reference/ClassDeclaration10.js | 7 +- .../baselines/reference/ClassDeclaration11.js | 9 +- .../baselines/reference/ClassDeclaration13.js | 9 +- .../baselines/reference/ClassDeclaration14.js | 7 +- .../baselines/reference/ClassDeclaration15.js | 8 +- .../baselines/reference/ClassDeclaration21.js | 9 +- .../baselines/reference/ClassDeclaration22.js | 9 +- .../baselines/reference/ClassDeclaration24.js | 7 +- .../baselines/reference/ClassDeclaration25.js | 7 +- .../baselines/reference/ClassDeclaration26.js | 9 +- .../baselines/reference/ClassDeclaration8.js | 7 +- .../baselines/reference/ClassDeclaration9.js | 7 +- ...onWithInvalidConstOnPropertyDeclaration.js | 9 +- ...nWithInvalidConstOnPropertyDeclaration2.js | 7 +- tests/baselines/reference/ES5For-of1.js | 3 +- tests/baselines/reference/ES5For-of1.js.map | 4 +- .../reference/ES5For-of1.sourcemap.txt | 126 +- tests/baselines/reference/ES5For-of10.js | 7 +- tests/baselines/reference/ES5For-of11.js | 4 +- tests/baselines/reference/ES5For-of12.js | 4 +- tests/baselines/reference/ES5For-of13.js | 3 +- tests/baselines/reference/ES5For-of13.js.map | 4 +- .../reference/ES5For-of13.sourcemap.txt | 119 +- tests/baselines/reference/ES5For-of14.js | 3 +- tests/baselines/reference/ES5For-of15.js | 8 +- tests/baselines/reference/ES5For-of16.js | 10 +- tests/baselines/reference/ES5For-of17.js | 10 +- tests/baselines/reference/ES5For-of18.js | 6 +- tests/baselines/reference/ES5For-of19.js | 8 +- tests/baselines/reference/ES5For-of2.js | 3 +- tests/baselines/reference/ES5For-of20.js | 10 +- tests/baselines/reference/ES5For-of21.js | 7 +- tests/baselines/reference/ES5For-of22.js | 5 +- tests/baselines/reference/ES5For-of23.js | 3 +- tests/baselines/reference/ES5For-of24.js | 5 +- tests/baselines/reference/ES5For-of25.js | 3 +- tests/baselines/reference/ES5For-of25.js.map | 4 +- .../reference/ES5For-of25.sourcemap.txt | 85 +- .../ES5For-of26(target=es2015).errors.txt | 10 + .../reference/ES5For-of26(target=es2015).js | 14 + .../ES5For-of26(target=es2015).js.map | 3 + .../ES5For-of26(target=es2015).sourcemap.txt | 108 + ...ols => ES5For-of26(target=es2015).symbols} | 0 ...types => ES5For-of26(target=es2015).types} | 0 ...txt => ES5For-of26(target=es5).errors.txt} | 0 ...For-of26.js => ES5For-of26(target=es5).js} | 0 ....js.map => ES5For-of26(target=es5).js.map} | 0 ... => ES5For-of26(target=es5).sourcemap.txt} | 0 .../reference/ES5For-of26(target=es5).symbols | 13 + .../reference/ES5For-of26(target=es5).types | 27 + tests/baselines/reference/ES5For-of27.js | 3 +- .../ES5For-of28(target=es2015).errors.txt | 10 + .../reference/ES5For-of28(target=es2015).js | 13 + ...ols => ES5For-of28(target=es2015).symbols} | 0 ...types => ES5For-of28(target=es2015).types} | 0 ...txt => ES5For-of28(target=es5).errors.txt} | 0 ...For-of28.js => ES5For-of28(target=es5).js} | 0 .../reference/ES5For-of28(target=es5).symbols | 13 + .../reference/ES5For-of28(target=es5).types | 27 + tests/baselines/reference/ES5For-of29.js | 3 +- tests/baselines/reference/ES5For-of3.js | 4 +- tests/baselines/reference/ES5For-of3.js.map | 4 +- .../reference/ES5For-of3.sourcemap.txt | 110 +- .../ES5For-of30(target=es2015).errors.txt | 18 + .../reference/ES5For-of30(target=es2015).js | 17 + ...ols => ES5For-of30(target=es2015).symbols} | 0 ...types => ES5For-of30(target=es2015).types} | 0 ...txt => ES5For-of30(target=es5).errors.txt} | 0 ...For-of30.js => ES5For-of30(target=es5).js} | 0 .../reference/ES5For-of30(target=es5).symbols | 21 + .../reference/ES5For-of30(target=es5).types | 45 + tests/baselines/reference/ES5For-of31.js | 4 +- tests/baselines/reference/ES5For-of33.js | 26 +- tests/baselines/reference/ES5For-of33.js.map | 4 +- .../reference/ES5For-of33.sourcemap.txt | 186 +- tests/baselines/reference/ES5For-of34.js | 26 +- tests/baselines/reference/ES5For-of34.js.map | 4 +- .../reference/ES5For-of34.sourcemap.txt | 234 +- tests/baselines/reference/ES5For-of35.js | 28 +- tests/baselines/reference/ES5For-of35.js.map | 4 +- .../reference/ES5For-of35.sourcemap.txt | 242 +- .../ES5For-of36(target=es2015).errors.txt | 10 + .../reference/ES5For-of36(target=es2015).js | 14 + .../ES5For-of36(target=es2015).js.map | 3 + .../ES5For-of36(target=es2015).sourcemap.txt | 108 + ...ols => ES5For-of36(target=es2015).symbols} | 0 ...types => ES5For-of36(target=es2015).types} | 0 ...txt => ES5For-of36(target=es5).errors.txt} | 0 ...For-of36.js => ES5For-of36(target=es5).js} | 0 ....js.map => ES5For-of36(target=es5).js.map} | 0 ... => ES5For-of36(target=es5).sourcemap.txt} | 0 .../reference/ES5For-of36(target=es5).symbols | 13 + .../reference/ES5For-of36(target=es5).types | 27 + tests/baselines/reference/ES5For-of37.js | 50 +- tests/baselines/reference/ES5For-of4.js | 4 +- tests/baselines/reference/ES5For-of5.js | 3 +- tests/baselines/reference/ES5For-of6.js | 6 +- tests/baselines/reference/ES5For-of7.js | 6 +- tests/baselines/reference/ES5For-of8.js | 3 +- tests/baselines/reference/ES5For-of8.js.map | 4 +- .../reference/ES5For-of8.sourcemap.txt | 142 +- tests/baselines/reference/ES5For-of9.js | 6 +- .../EnumAndModuleWithSameNameAndCommonRoot.js | 7 +- .../baselines/reference/ExportAssignment7.js | 7 +- .../baselines/reference/ExportAssignment8.js | 7 +- ...ichExtendsInterfaceWithInaccessibleType.js | 11 +- ...sClassHeritageListMemberTypeAnnotations.js | 38 +- ...naccessibleTypeInIndexerTypeAnnotations.js | 14 +- ...accessibleTypeInTypeParameterConstraint.js | 42 +- ...TypesInParameterAndReturnTypeAnnotation.js | 14 +- ...ccessibleTypesInParameterTypeAnnotation.js | 14 +- ...InaccessibleTypesInReturnTypeAnnotation.js | 14 +- ...WithAccessibleTypesOnItsExportedMembers.js | 20 +- ...hAccessibleTypesInMemberTypeAnnotations.js | 7 +- ...sibleTypesInNestedMemberTypeAnnotations.js | 7 +- ...cTypeWithInaccessibleTypeAsTypeArgument.js | 7 +- ...ctionAndModuleWithSameNameAndCommonRoot.js | 2 +- ...oduleWithSameNameAndDifferentCommonRoot.js | 2 +- .../reference/FunctionDeclaration8_es6.js | 3 +- .../reference/MemberAccessorDeclaration15.js | 13 +- ...ModuleAndClassWithSameNameAndCommonRoot.js | 16 +- .../ModuleAndEnumWithSameNameAndCommonRoot.js | 7 +- ...uleAndFunctionWithSameNameAndCommonRoot.js | 4 +- ...ModuleWithExportedAndNonExportedClasses.js | 28 +- .../ModuleWithExportedAndNonExportedEnums.js | 4 +- ...leWithExportedAndNonExportedImportAlias.js | 7 +- .../NonInitializedExportInInternalModule.js | 20 +- tests/baselines/reference/ParameterList6.js | 7 +- tests/baselines/reference/ParameterList7.js | 7 +- tests/baselines/reference/Protected1.js | 7 +- tests/baselines/reference/Protected3.js | 8 +- tests/baselines/reference/Protected4.js | 9 +- tests/baselines/reference/Protected5.js | 9 +- tests/baselines/reference/Protected6.js | 9 +- tests/baselines/reference/Protected7.js | 9 +- tests/baselines/reference/Protected9.js | 7 +- .../reference/TemplateExpression1.js | 2 +- ...ortedAndNonExportedClassesOfTheSameName.js | 36 +- ...tedAndNonExportedLocalVarsOfTheSameName.js | 11 +- ...rgeEachWithExportedClassesOfTheSameName.js | 32 +- ...eEachWithExportedLocalVarsOfTheSameName.js | 25 +- ...rgeEachWithExportedModulesOfTheSameName.js | 20 +- ...esWithTheSameNameAndDifferentCommonRoot.js | 15 +- ...ModulesWithTheSameNameAndSameCommonRoot.js | 11 +- .../reference/TypeGuardWithArrayUnion.js | 7 +- .../reference/abstractClassInLocalScope.js | 33 +- .../abstractClassInLocalScopeIsAbstract.js | 33 +- .../abstractClassUnionInstantiation.js | 36 +- .../abstractPropertyInConstructor.js | 108 +- .../reference/abstractPropertyInitializer.js | 7 +- .../accessInstanceMemberFromStaticMethod01.js | 11 +- .../accessOverriddenBaseClassMember1.js | 45 +- .../accessStaticMemberFromInstanceMethod01.js | 11 +- ...nferredReturnTypeErrorInReturnStatement.js | 5 +- .../accessorsAreNotContextuallyTyped.js | 19 +- tests/baselines/reference/accessorsEmit.js | 41 +- .../accessors_spec_section-4.5_error-cases.js | 39 +- .../accessors_spec_section-4.5_inference.js | 86 +- .../additionOperatorWithAnyAndEveryType.js | 11 +- ...ionOperatorWithConstrainedTypeParameter.js | 3 +- .../additionOperatorWithInvalidOperands.js | 9 +- ...OperatorWithNullValueAndInvalidOperator.js | 2 +- .../additionOperatorWithTypeParameter.js | 16 +- ...torWithUndefinedValueAndInvalidOperands.js | 2 +- tests/baselines/reference/aliasAssignments.js | 9 +- tests/baselines/reference/aliasBug.js | 18 +- .../aliasDoesNotDuplicateSignatures.js | 8 +- tests/baselines/reference/aliasErrors.js | 18 +- .../reference/aliasInaccessibleModule2.js | 9 +- ...onExpressionGenericIntersectionNoCrash1.js | 7 +- ...cFunctionWithRestBehavedSameAsUnaliased.js | 8 +- .../baselines/reference/aliasUsageInArray.js | 35 +- .../aliasUsageInFunctionExpression.js | 39 +- .../reference/aliasUsageInGenericFunction.js | 35 +- .../reference/aliasUsageInIndexerOfClass.js | 49 +- .../reference/aliasUsageInObjectLiteral.js | 35 +- .../reference/aliasUsageInOrExpression.js | 35 +- ...aliasUsageInTypeArgumentOfExtendsClause.js | 70 +- .../reference/aliasUsageInVarAssignment.js | 33 +- .../reference/aliasUsedAsNameValue.js | 4 +- .../reference/aliasesInSystemModule1.js | 6 +- .../reference/aliasesInSystemModule2.js | 6 +- .../allowImportClausesToMergeWithTypes.js | 38 +- .../allowJscheckJsTypeParameterNoCrash.js | 16 +- .../allowSyntheticDefaultImports1.js | 2 +- .../allowSyntheticDefaultImports10.js | 2 +- .../allowSyntheticDefaultImports3.js | 7 +- .../allowSyntheticDefaultImports4.js | 2 +- .../allowSyntheticDefaultImports9.js | 2 +- ...ltImportsCanPaintCrossModuleDeclaration.js | 13 +- ...ragraphAndLineSeparatorsInStringLiteral.js | 6 +- .../reference/alwaysStrictModule3.js | 2 +- tests/baselines/reference/ambient.js | 14 +- .../reference/ambientConstLiterals.js | 30 +- .../reference/ambientDeclarationsExternal.js | 2 +- .../reference/ambientDeclarationsPatterns.js | 17 +- .../ambientDeclarationsPatterns_merging1.js | 6 +- .../ambientDeclarationsPatterns_merging2.js | 6 +- .../ambientDeclarationsPatterns_merging3.js | 3 +- .../reference/ambientExportDefaultErrors.js | 10 +- ...ntExternalModuleInAnotherExternalModule.js | 9 +- ...ationWithReservedIdentifierInDottedPath.js | 5 +- ...tionWithReservedIdentifierInDottedPath2.js | 5 +- .../reference/ambientNameRestrictions.js | 3 +- ...ambientRequireFunction(module=commonjs).js | 4 +- ...ambientRequireFunction(module=preserve).js | 4 +- tests/baselines/reference/ambientShorthand.js | 6 +- .../reference/ambientShorthand_duplicate.js | 3 +- .../reference/ambientShorthand_merging.js | 3 +- .../reference/ambientShorthand_reExport.js | 65 +- .../ambiguousCallsWhereReturnTypesAgree.js | 26 +- .../reference/ambiguousGenericAssertion1.js | 2 +- .../reference/ambiguousOverloadResolution.js | 31 +- .../amdDeclarationEmitNoExtraDeclare.js | 45 +- .../reference/amdDependencyComment1.js | 2 +- .../reference/amdDependencyCommentName1.js | 2 +- .../amdImportNotAsPrimaryExpression.js | 9 +- ...undleNoDuplicateDeclarationEmitComments.js | 14 +- .../reference/amdModuleConstEnumUsage.js | 11 +- tests/baselines/reference/amdModuleName1.js | 7 +- tests/baselines/reference/amdModuleName2.js | 7 +- .../anonClassDeclarationEmitIsAnon.js | 88 +- tests/baselines/reference/anonterface.js | 11 +- ...ClassDeclarationDoesntPrintWithReadonly.js | 38 +- .../reference/anonymousClassExpression1.js | 7 +- .../reference/anonymousClassExpression2.js | 20 +- .../anyAndUnknownHaveFalsyComponents.js | 19 +- .../reference/anyAsGenericFunctionCall.js | 7 +- .../anyAssignabilityInInheritance.js | 21 +- .../reference/anyAssignableToEveryType.js | 7 +- .../reference/anyAssignableToEveryType2.js | 21 +- .../reference/anyIdenticalToItself.js | 21 +- .../anyInferenceAnonymousFunctions.js | 6 +- .../reference/apparentTypeSubtyping.js | 47 +- .../reference/apparentTypeSupertype.js | 31 +- tests/baselines/reference/argsInScope.js | 11 +- .../argumentExpressionContextualTyping.js | 19 +- .../reference/argumentsAsPropertyName.js | 7 +- .../reference/argumentsAsPropertyName2.js | 12 +- .../argumentsPropertyNameInJsMode1.js | 6 +- ...dInitializerOrStaticInitializationBlock.js | 134 +- .../argumentsUsedInObjectLiteralProperty.js | 11 +- .../baselines/reference/arithAssignTyping.js | 7 +- .../arithmeticOperatorWithTypeParameter.js | 10 +- .../arityAndOrderCompatibility01.errors.txt | 4 +- .../reference/arityAndOrderCompatibility01.js | 6 +- .../arityErrorRelatedSpanBindingPattern.js | 8 +- .../arrayAssignmentPatternWithAny.js | 2 +- .../reference/arrayAssignmentTest1.js | 46 +- .../reference/arrayAssignmentTest2.js | 46 +- .../reference/arrayAssignmentTest3.js | 14 +- .../reference/arrayAssignmentTest4.js | 9 +- .../reference/arrayAssignmentTest5.js | 15 +- .../reference/arrayAssignmentTest6.js | 11 +- .../reference/arrayBestCommonTypes.js | 93 +- tests/baselines/reference/arrayConcatMap.js | 2 +- .../reference/arrayDestructuringInSwitch1.js | 11 +- .../reference/arrayDestructuringInSwitch2.js | 4 +- tests/baselines/reference/arrayEvery.js | 4 +- tests/baselines/reference/arrayFilter.js | 2 +- tests/baselines/reference/arrayFind.js | 8 +- tests/baselines/reference/arrayFlatMap.js | 8 +- tests/baselines/reference/arrayFrom.js | 44 +- .../reference/arrayIndexWithArrayFails.js | 2 +- .../reference/arrayLiteralComments.js | 2 +- .../reference/arrayLiteralContextualType.js | 14 +- .../arrayLiteralExpressionContextualTyping.js | 15 +- .../arrayLiteralInNonVarArgParameter.js | 7 +- .../baselines/reference/arrayLiteralSpread.js | 31 +- .../arrayLiteralSpreadES5iterable.js | 47 +- .../reference/arrayLiteralTypeInference.js | 40 +- ...arrayLiteralWithMultipleBestCommonTypes.js | 8 +- tests/baselines/reference/arrayLiterals.js | 47 +- .../baselines/reference/arrayLiterals2ES5.js | 41 +- tests/baselines/reference/arrayLiterals3.js | 17 +- .../arrayLiteralsWithRecursiveGenerics.js | 38 +- .../reference/arrayOfExportedClass.js | 18 +- .../reference/arrayOfFunctionTypes3.js | 9 +- ...rayOfSubtypeIsAssignableToReadonlyArray.js | 40 +- .../arrayReferenceWithoutTypeArgs.js | 9 +- tests/baselines/reference/arrayconcat.js | 11 +- .../reference/arrowFunctionContexts.js | 101 +- .../reference/arrowFunctionErrorSpan.js | 22 +- .../reference/arrowFunctionExpressions.js | 96 +- .../reference/arrowFunctionExpressions.types | 8 +- .../arrowFunctionInConstructorArgument1.js | 10 +- .../arrowFunctionInExpressionStatement1.js | 2 +- .../arrowFunctionInExpressionStatement2.js | 2 +- .../arrowFunctionMissingCurlyWithSemicolon.js | 4 +- ...tConfuseParenthesizedObjectForArrowHead.js | 6 +- .../arrowFunctionWithObjectLiteralBody1.js | 2 +- .../arrowFunctionWithObjectLiteralBody2.js | 2 +- .../arrowFunctionWithObjectLiteralBody5.js | 8 +- .../reference/arrowFunctionsMissingTokens.js | 54 +- tests/baselines/reference/asOperator3.js | 20 +- tests/baselines/reference/asOperator4.js | 2 +- tests/baselines/reference/asOperatorASI.js | 13 +- .../reference/asOperatorContextualType.js | 2 +- tests/baselines/reference/asiAbstract.js | 23 +- tests/baselines/reference/asiInES6Classes.js | 11 +- .../asiPreventsParsingAsNamespace04.js | 2 +- .../asiPreventsParsingAsNamespace05.js | 2 +- .../reference/asiPublicPrivateProtected.js | 61 +- .../assertInWrapSomeTypeParameter.js | 11 +- .../assertionFunctionWildcardImport1.js | 143 +- .../assertionFunctionWildcardImport2.js | 41 +- ...sertionFunctionsCanNarrowByDiscriminant.js | 4 +- .../reference/assertionTypePredicates1.js | 143 +- .../reference/assertionTypePredicates2.js | 10 +- .../reference/assignAnyToEveryType.js | 7 +- .../reference/assignEveryTypeToAny.js | 11 +- .../assignLambdaToNominalSubtypeOfFunction.js | 2 +- .../reference/assignToExistingClass.js | 18 +- ...assignToObjectTypeWithPrototypeProperty.js | 7 +- .../assigningFunctionToTupleIssuesError.js | 2 +- .../reference/assignmentCompatBug2.js | 22 +- .../reference/assignmentCompatBug3.js | 15 +- .../reference/assignmentCompatBug5.js | 4 +- ...CompatInterfaceWithStringIndexSignature.js | 9 +- .../reference/assignmentCompatOnNew.js | 7 +- .../assignmentCompatWithCallSignatures.js | 12 +- .../assignmentCompatWithCallSignatures2.js | 18 +- .../assignmentCompatWithCallSignatures3.js | 49 +- .../assignmentCompatWithCallSignatures4.js | 53 +- .../assignmentCompatWithCallSignatures5.js | 49 +- .../assignmentCompatWithCallSignatures6.js | 49 +- ...ithCallSignaturesWithOptionalParameters.js | 36 +- ...patWithCallSignaturesWithRestParameters.js | 98 +- ...assignmentCompatWithConstructSignatures.js | 4 +- ...ssignmentCompatWithConstructSignatures2.js | 8 +- ...ssignmentCompatWithConstructSignatures3.js | 49 +- ...ssignmentCompatWithConstructSignatures4.js | 53 +- ...ssignmentCompatWithConstructSignatures5.js | 49 +- ...ssignmentCompatWithConstructSignatures6.js | 49 +- .../assignmentCompatWithDiscriminatedUnion.js | 20 +- .../assignmentCompatWithEnumIndexer.js | 2 +- ...ricCallSignaturesWithOptionalParameters.js | 106 +- .../assignmentCompatWithNumericIndexer.js | 38 +- .../assignmentCompatWithNumericIndexer3.js | 38 +- .../assignmentCompatWithObjectMembers.js | 28 +- .../assignmentCompatWithObjectMembers2.js | 14 +- .../assignmentCompatWithObjectMembers3.js | 14 +- .../assignmentCompatWithObjectMembers4.js | 93 +- .../assignmentCompatWithObjectMembers5.js | 7 +- ...entCompatWithObjectMembersAccessibility.js | 42 +- ...mentCompatWithObjectMembersNumericNames.js | 14 +- ...nmentCompatWithObjectMembersOptionality.js | 40 +- ...mentCompatWithObjectMembersOptionality2.js | 40 +- ...mpatWithObjectMembersStringNumericNames.js | 28 +- .../assignmentCompatWithOverloads.js | 8 +- .../assignmentCompatWithStringIndexer.js | 47 +- .../assignmentCompatWithStringIndexer3.js | 7 +- .../reference/assignmentCompatability10.js | 7 +- .../reference/assignmentCompatability39.js | 7 +- .../reference/assignmentCompatability40.js | 7 +- .../reference/assignmentCompatability41.js | 7 +- .../reference/assignmentCompatability42.js | 7 +- .../reference/assignmentCompatability44.js | 10 +- .../reference/assignmentCompatability45.js | 34 +- .../reference/assignmentCompatability8.js | 7 +- .../reference/assignmentCompatability9.js | 7 +- ...-apply-member-off-of-function-interface.js | 2 +- ...g-call-member-off-of-function-interface.js | 2 +- .../assignmentGenericLookupTypeNarrowing.js | 6 +- .../assignmentIndexedToPrimitives.js | 24 +- .../reference/assignmentLHSIsValue.js | 48 +- .../reference/assignmentNestedInLiterals.js | 3 +- .../assignmentNonObjectTypeConstraints.js | 14 +- ...ssignmentRestElementWithErrorSourceType.js | 2 +- ...nditionalBrandedStringTemplateOrMapping.js | 8 +- .../assignmentToExpandingArrayType.js | 2 +- .../reference/assignmentToFunction.js | 2 +- .../assignmentToInstantiationExpression.js | 12 +- .../assignmentToObjectAndFunction.js | 2 +- .../assignmentToParenthesizedIdentifiers.js | 13 +- .../reference/assignmentToReferenceTypes.js | 7 +- .../reference/assignmentToVoidZero2.js | 2 +- .../reference/assignmentTypeNarrowing.js | 22 +- tests/baselines/reference/assignments.js | 7 +- .../reference/asyncFunctionNoReturnType.js | 39 +- ...asyncFunctionReturnExpressionErrorSpans.js | 47 +- ...ncFunctionWithForStatementNoInitializer.js | 76 +- .../asyncImportNestedYield.errors.txt | 12 + .../reference/asyncImportNestedYield.js | 73 +- .../reference/asyncImportNestedYield.types | 3 + .../reference/augmentExportEquals1.js | 2 +- .../reference/augmentExportEquals1_1.js | 2 +- .../reference/augmentExportEquals2.js | 2 +- .../reference/augmentExportEquals2_1.js | 2 +- .../reference/augmentExportEquals3.js | 8 +- .../reference/augmentExportEquals3_1.js | 4 +- .../reference/augmentExportEquals4.js | 15 +- .../reference/augmentExportEquals4_1.js | 4 +- .../reference/augmentExportEquals5.js | 4 +- .../reference/augmentExportEquals6.js | 26 +- .../reference/augmentExportEquals6_1.js | 4 +- ...entedTypeAssignmentCompatIndexSignature.js | 2 +- ...ugmentedTypeBracketAccessIndexSignature.js | 2 +- .../reference/augmentedTypesClass.js | 18 +- .../reference/augmentedTypesClass2.js | 33 +- .../reference/augmentedTypesClass2a.js | 11 +- .../reference/augmentedTypesClass3.js | 36 +- .../reference/augmentedTypesClass4.js | 18 +- .../baselines/reference/augmentedTypesEnum.js | 11 +- .../reference/augmentedTypesEnum2.js | 11 +- .../augmentedTypesExternalModule1.js | 9 +- .../reference/augmentedTypesFunction.js | 18 +- .../reference/augmentedTypesInterface.js | 11 +- .../reference/augmentedTypesModules.js | 70 +- .../reference/augmentedTypesModules2.js | 9 +- .../reference/augmentedTypesModules3.js | 16 +- .../reference/augmentedTypesModules3b.js | 27 +- .../reference/augmentedTypesModules4.js | 9 +- .../baselines/reference/augmentedTypesVar.js | 18 +- .../autoAsiForStaticsInClassDeclaration.js | 7 +- tests/baselines/reference/autoLift2.js | 16 +- tests/baselines/reference/autolift3.js | 7 +- tests/baselines/reference/autolift4.js | 45 +- tests/baselines/reference/avoid.js | 9 +- ...rTypesWithOnlyCallOrConstructSignatures.js | 5 +- tests/baselines/reference/awaitedTypeNoLib.js | 15 +- tests/baselines/reference/badArraySyntax.js | 7 +- ...InferenceLowerPriorityThanGoodInference.js | 10 +- tests/baselines/reference/badThisBinding.js | 14 +- tests/baselines/reference/baseCheck.js | 86 +- .../baseClassImprovedMismatchErrors.js | 46 +- .../reference/baseConstraintOfDecorator.js | 64 +- .../reference/baseExpressionTypeParameters.js | 40 +- .../reference/baseIndexSignatureResolution.js | 31 +- .../reference/baseTypeAfterDerivedType.js | 14 +- .../reference/baseTypeOrderChecking.js | 47 +- .../reference/baseTypePrivateMemberClash.js | 14 +- .../baseTypeWrappingInstantiationChain.js | 67 +- tests/baselines/reference/bases.js | 34 +- tests/baselines/reference/bestChoiceType.js | 14 +- .../bestCommonTypeOfConditionalExpressions.js | 46 +- ...bestCommonTypeOfConditionalExpressions2.js | 40 +- .../reference/bestCommonTypeOfTuple2.js | 65 +- ...ryArithmeticControlFlowGraphNotTooLarge.js | 2 +- .../reference/binaryIntegerLiteralError.js | 6 +- tests/baselines/reference/bind1.js | 7 +- ...ternCannotBeOnlyInferenceSource.errors.txt | 8 +- ...ndingPatternCannotBeOnlyInferenceSource.js | 44 +- ...tternContextualTypeDoesNotCauseWidening.js | 4 +- .../reference/bindingPatternInParameter01.js | 5 +- .../bindingPatternOmittedExpressionNesting.js | 5 +- .../binopAssignmentShouldHaveType.js | 15 +- .../bitwiseNotOperatorWithAnyOtherType.js | 11 +- .../bitwiseNotOperatorWithBooleanType.js | 9 +- .../bitwiseNotOperatorWithNumberType.js | 11 +- .../bitwiseNotOperatorWithStringType.js | 11 +- .../reference/bivariantInferences.js | 2 +- ...blockScopedBindingCaptureThisInFunction.js | 14 +- .../blockScopedBindingUsedBeforeDef.js | 8 +- .../blockScopedBindingsReassignedInLoop1.js | 10 +- .../blockScopedBindingsReassignedInLoop2.js | 64 +- .../blockScopedBindingsReassignedInLoop3.js | 142 +- .../blockScopedBindingsReassignedInLoop4.js | 16 +- .../blockScopedBindingsReassignedInLoop5.js | 16 +- .../blockScopedBindingsReassignedInLoop6.js | 40 +- .../blockScopedClassDeclarationAcrossFiles.js | 9 +- .../baselines/reference/bluebirdStaticThis.js | 9 +- .../reference/booleanFilterAnyArray.js | 4 +- ...oleanLiteralsContextuallyTypedFromUnion.js | 20 +- tests/baselines/reference/bundlerCommonJS.js | 4 +- .../bundlerImportESM(module=esnext).js | 2 +- .../bundlerImportESM(module=preserve).js | 2 +- .../bundlerRelative1(module=esnext).js | 4 +- .../bundlerRelative1(module=preserve).js | 4 +- ...undlerSyntaxRestrictions(module=esnext).js | 4 +- ...dlerSyntaxRestrictions(module=preserve).js | 4 +- .../reference/cachedContextualTypes.js | 13 +- .../reference/cachedModuleResolution1.js | 6 +- .../cachedModuleResolution1.trace.json | 4 +- .../reference/cachedModuleResolution2.js | 6 +- .../cachedModuleResolution2.trace.json | 4 +- .../reference/cachedModuleResolution3.js | 6 +- .../reference/cachedModuleResolution4.js | 6 +- .../reference/cachedModuleResolution5.js | 6 +- .../cachedModuleResolution5.trace.json | 4 +- .../reference/cachedModuleResolution6.js | 6 +- .../cachedModuleResolution6.trace.json | 4 +- .../reference/cachedModuleResolution7.js | 6 +- .../cachedModuleResolution7.trace.json | 4 +- .../reference/cachedModuleResolution8.js | 6 +- .../reference/cachedModuleResolution9.js | 6 +- tests/baselines/reference/callChain.3.js | 10 +- tests/baselines/reference/callChain.js | 35 +- ...ctionWithIncorrectNumberOfTypeArguments.js | 24 +- ...allGenericFunctionWithZeroTypeArguments.js | 24 +- ...callNonGenericFunctionWithTypeArguments.js | 24 +- ...llOfConditionalTypeWithConcreteBranches.js | 13 +- tests/baselines/reference/callOnClass.js | 7 +- tests/baselines/reference/callOverload.js | 13 +- .../callOverloadViaElementAccessExpression.js | 11 +- tests/baselines/reference/callOverloads1.js | 9 +- tests/baselines/reference/callOverloads2.js | 9 +- tests/baselines/reference/callOverloads3.js | 9 +- tests/baselines/reference/callOverloads4.js | 9 +- tests/baselines/reference/callOverloads5.js | 9 +- ...allSignatureAssignabilityInInheritance2.js | 49 +- ...allSignatureAssignabilityInInheritance3.js | 49 +- ...allSignatureAssignabilityInInheritance4.js | 49 +- ...allSignatureAssignabilityInInheritance5.js | 49 +- ...allSignatureAssignabilityInInheritance6.js | 49 +- ...tureWithOptionalParameterAndInitializer.js | 35 +- ...ureWithoutReturnTypeAnnotationInference.js | 22 +- ...sWithAccessibilityModifiersOnParameters.js | 25 +- .../callSignaturesWithDuplicateParameters.js | 25 +- .../callSignaturesWithOptionalParameters.js | 15 +- .../callSignaturesWithOptionalParameters2.js | 11 +- ...callSignaturesWithParameterInitializers.js | 35 +- ...allSignaturesWithParameterInitializers2.js | 23 +- .../reference/callWithMissingVoid.js | 44 +- tests/baselines/reference/callWithSpread.js | 102 +- tests/baselines/reference/callWithSpread2.js | 45 +- tests/baselines/reference/callWithSpread3.js | 45 +- tests/baselines/reference/callWithSpread5.js | 13 +- .../reference/callbackOnConstructor.js | 13 +- .../reference/callbackTagVariadicType.js | 8 +- .../reference/callbacksDontShareTypes.js | 6 +- .../reference/callsOnComplexSignatures.js | 31 +- .../reference/canFollowGetSetKeyword.js | 65 +- .../cannotInvokeNewOnErrorExpression.js | 7 +- ...captureSuperPropertyAccessInSuperCall01.js | 35 +- .../reference/captureThisInSuperCall.js | 36 +- .../reference/capturedLetConstInLoop1.js | 243 +- .../reference/capturedLetConstInLoop10.js | 102 +- .../reference/capturedLetConstInLoop11.js | 18 +- .../reference/capturedLetConstInLoop12.js | 26 +- .../reference/capturedLetConstInLoop13.js | 34 +- .../reference/capturedLetConstInLoop2.js | 246 +- .../reference/capturedLetConstInLoop3.js | 248 +- .../reference/capturedLetConstInLoop4.js | 166 +- .../reference/capturedLetConstInLoop5.js | 384 +- .../reference/capturedLetConstInLoop6.js | 290 +- .../reference/capturedLetConstInLoop7.js | 450 +- .../reference/capturedLetConstInLoop8.js | 132 +- .../reference/capturedLetConstInLoop9.js | 131 +- ...ileSystemWithCapsImportTypeDeclarations.js | 24 +- .../reference/castExpressionParentheses.js | 2 +- tests/baselines/reference/castOfYield.js | 46 +- tests/baselines/reference/castParentheses.js | 7 +- tests/baselines/reference/castingTuple.js | 54 +- .../catchClauseWithTypeAnnotation.js | 34 +- tests/baselines/reference/chained.js | 21 +- tests/baselines/reference/chained2.js | 68 +- .../baselines/reference/chainedAssignment1.js | 21 +- .../baselines/reference/chainedAssignment3.js | 31 +- .../reference/chainedAssignmentChecking.js | 21 +- ...arameterConstrainedToOtherTypeParameter.js | 51 +- ...rameterConstrainedToOtherTypeParameter2.js | 36 +- .../baselines/reference/chainedImportAlias.js | 2 +- ...hainedSpecializationToObjectTypeLiteral.js | 4 +- .../checkForObjectTooStrict(target=es2015).js | 52 + ...ForObjectTooStrict(target=es2015).symbols} | 0 ...ckForObjectTooStrict(target=es2015).types} | 0 ...ForObjectTooStrict(target=es5).errors.txt} | 0 ...=> checkForObjectTooStrict(target=es5).js} | 0 ...heckForObjectTooStrict(target=es5).symbols | 44 + .../checkForObjectTooStrict(target=es5).types | 58 + .../checkJsObjectLiteralHasCheckedKeyof.js | 4 +- .../checkJsObjectLiteralIndexSignatures.js | 9 +- .../reference/checkJsdocSatisfiesTag15.js | 28 +- .../baselines/reference/checkJsdocTypeTag1.js | 8 +- .../baselines/reference/checkJsdocTypeTag2.js | 8 +- .../checkJsdocTypeTagOnExportAssignment1.js | 13 +- .../checkJsdocTypeTagOnExportAssignment2.js | 16 +- .../checkJsdocTypeTagOnExportAssignment3.js | 15 +- .../checkJsdocTypeTagOnExportAssignment4.js | 4 +- .../checkJsdocTypeTagOnExportAssignment5.js | 13 +- .../checkJsdocTypeTagOnExportAssignment6.js | 13 +- .../checkJsdocTypeTagOnExportAssignment7.js | 15 +- .../checkJsdocTypeTagOnExportAssignment8.js | 4 +- .../checkJsdocTypeTagOnObjectProperty1.js | 28 +- .../checkJsdocTypeTagOnObjectProperty2.js | 13 +- .../checkJsdocTypedefOnlySourceFile.js | 2 +- .../checkJsxChildrenCanBeTupleType.js | 45 +- .../checkJsxChildrenProperty1.errors.txt | 30 + .../reference/checkJsxChildrenProperty1.js | 10 +- .../reference/checkJsxChildrenProperty10.js | 19 +- .../reference/checkJsxChildrenProperty11.js | 19 +- .../reference/checkJsxChildrenProperty12.js | 43 +- .../reference/checkJsxChildrenProperty13.js | 41 +- .../reference/checkJsxChildrenProperty14.js | 40 +- .../reference/checkJsxChildrenProperty15.js | 14 +- .../reference/checkJsxChildrenProperty2.js | 20 +- .../reference/checkJsxChildrenProperty3.js | 34 +- .../reference/checkJsxChildrenProperty4.js | 36 +- .../reference/checkJsxChildrenProperty5.js | 36 +- .../reference/checkJsxChildrenProperty6.js | 38 +- .../reference/checkJsxChildrenProperty7.js | 36 +- .../reference/checkJsxChildrenProperty8.js | 38 +- .../reference/checkJsxChildrenProperty9.js | 8 +- .../checkJsxGenericTagHasCorrectInferences.js | 45 +- .../checkJsxIntersectionElementPropsType.js | 28 +- .../reference/checkJsxNotSetError.js | 15 +- .../checkJsxSubtleSkipContextSensitiveBug.js | 98 +- ...UnionSFXContextualTypeInferredCorrectly.js | 19 +- .../reference/checkMergedGlobalUMDSymbol.js | 2 +- .../checkSuperCallBeforeThisAccessing1.js | 39 +- .../checkSuperCallBeforeThisAccessing2.js | 40 +- .../checkSuperCallBeforeThisAccessing3.js | 45 +- .../checkSuperCallBeforeThisAccessing4.js | 54 +- .../checkSuperCallBeforeThisAccessing5.js | 38 +- .../checkSuperCallBeforeThisAccessing6.js | 39 +- .../checkSuperCallBeforeThisAccessing7.js | 33 +- .../checkSuperCallBeforeThisAccessing8.js | 39 +- .../checkSwitchStatementIfCaseTypeIsString.js | 16 +- ...tyOnFunctionNonexistentPropertyNoCrash1.js | 12 +- ...kingObjectWithThisInNamePositionNoCrash.js | 14 +- ...ircularConstraintYieldsAppropriateError.js | 42 +- .../circularConstructorWithReturn.js | 15 +- .../reference/circularContextualMappedType.js | 4 +- .../reference/circularContextualReturnType.js | 2 +- .../reference/circularImportAlias.js | 31 +- .../reference/circularIndexedAccessErrors.js | 16 +- .../reference/circularOptionalityRemoval.js | 8 +- .../baselines/reference/circularReference.js | 18 +- .../reference/circularReferenceInImport.js | 5 +- .../reference/circularResolvedSignature.js | 13 +- .../circularTypeAliasForUnionWithClass.js | 21 +- .../circularTypeofWithFunctionModule.js | 31 +- ...ConditionalNoInfiniteInstantiationDepth.js | 3 +- ...larlySimplifyingConditionalTypesNoCrash.js | 6 +- tests/baselines/reference/class2.js | 10 +- .../reference/classAbstractAsIdentifier.js | 9 +- ...bstractAssignabilityConstructorFunction.js | 7 +- .../classAbstractClinterfaceAssignability.js | 7 +- .../reference/classAbstractConstructor.js | 8 +- .../classAbstractConstructorAssignability.js | 40 +- .../reference/classAbstractCrashedOnce.js | 35 +- .../reference/classAbstractExtends.js | 62 +- .../reference/classAbstractFactoryFunction.js | 31 +- .../reference/classAbstractGeneric.js | 84 +- .../classAbstractImportInstantiation.js | 7 +- .../reference/classAbstractInAModule.js | 31 +- .../reference/classAbstractInheritance1.js | 101 +- .../reference/classAbstractInheritance2.js | 40 +- .../reference/classAbstractInstantiations1.js | 40 +- .../reference/classAbstractInstantiations2.js | 85 +- .../reference/classAbstractManyKeywords.js | 33 +- .../classAbstractMergedDeclaration.js | 56 +- .../classAbstractMethodInNonAbstractClass.js | 16 +- .../classAbstractMethodWithImplementation.js | 9 +- .../classAbstractMixedWithModifiers.js | 7 +- .../reference/classAbstractOverloads.js | 16 +- .../classAbstractOverrideWithAbstract.js | 73 +- .../reference/classAbstractProperties.js | 7 +- .../reference/classAbstractSingleLineDecl.js | 21 +- .../reference/classAbstractSuperCalls.js | 72 +- .../classAbstractUsingAbstractMethod1.js | 42 +- .../classAbstractUsingAbstractMethods2.js | 98 +- .../classAndInterfaceWithSameName.js | 14 +- .../reference/classAndVariableWithSameName.js | 14 +- .../classAppearsToHaveMembersOfObject.js | 7 +- .../baselines/reference/classBlockScoping.js | 36 +- .../reference/classBodyWithStatements.js | 21 +- .../reference/classCannotExtendVar.js | 7 +- .../classConstructorAccessibility.js | 42 +- .../classConstructorAccessibility2.js | 101 +- .../classConstructorAccessibility3.js | 34 +- .../classConstructorAccessibility4.js | 73 +- .../classConstructorAccessibility5.js | 43 +- .../classConstructorOverloadsAccessibility.js | 28 +- ...classConstructorParametersAccessibility.js | 49 +- ...lassConstructorParametersAccessibility2.js | 49 +- ...lassConstructorParametersAccessibility3.js | 37 +- .../classDeclarationBlockScoping1.js | 14 +- .../classDeclarationBlockScoping2.js | 16 +- ...edBeforeDefinitionInFunctionDeclaration.js | 7 +- .../reference/classDeclarationLoop.js | 14 +- ...clarationMergedInModuleWithContinuation.js | 31 +- ...rationShouldBeOutOfScopeInComputedNames.js | 23 +- .../classDeclaredBeforeClassFactory.js | 31 +- .../classDoesNotDependOnBaseTypes.js | 31 +- .../classDoesNotDependOnPrivateMember.js | 7 +- tests/baselines/reference/classExpression.js | 21 +- tests/baselines/reference/classExpression1.js | 7 +- tests/baselines/reference/classExpression2.js | 31 +- tests/baselines/reference/classExpression3.js | 48 +- tests/baselines/reference/classExpression4.js | 13 +- tests/baselines/reference/classExpression5.js | 11 +- .../reference/classExpressionAssignment.js | 7 +- .../classExpressionExtendingAbstractClass.js | 31 +- ...lassExpressionInClassStaticDeclarations.js | 31 +- .../reference/classExpressionLoop.js | 14 +- .../reference/classExpressionTest1.js | 13 +- .../reference/classExpressionTest2.js | 13 +- .../classExpressionWithDecorator1.js | 7 +- ...onWithResolutionOfNamespaceOfSameName01.js | 7 +- .../classExpressionWithStaticProperties1.js | 7 +- tests/baselines/reference/classExpressions.js | 13 +- .../reference/classExtendingBuiltinType.js | 105 +- .../reference/classExtendingClass.js | 55 +- .../reference/classExtendingClassLikeType.js | 89 +- .../reference/classExtendingNonConstructor.js | 78 +- .../baselines/reference/classExtendingNull.js | 47 +- .../reference/classExtendingOptionalChain.js | 38 +- .../reference/classExtendingPrimitive.js | 156 +- .../reference/classExtendingPrimitive2.js | 30 +- .../reference/classExtendingQualifiedName.js | 31 +- .../reference/classExtendingQualifiedName2.js | 31 +- ...sMergedWithModuleNotReferingConstructor.js | 31 +- ...tendsClauseClassNotReferringConstructor.js | 31 +- .../reference/classExtendsEveryObjectType.js | 69 +- .../reference/classExtendsEveryObjectType2.js | 33 +- .../reference/classExtendsInterface.js | 47 +- .../classExtendsInterfaceInExpression.js | 24 +- .../classExtendsInterfaceInModule.js | 42 +- ...sInterfaceThatExtendsClassWithPrivates1.js | 20 +- .../reference/classExtendsInterface_not.js | 24 +- .../baselines/reference/classExtendsItself.js | 42 +- .../reference/classExtendsItselfIndirectly.js | 69 +- .../classExtendsItselfIndirectly2.js | 73 +- .../classExtendsItselfIndirectly3.js | 144 +- .../classExtendsMultipleBaseClasses.js | 38 +- tests/baselines/reference/classExtendsNull.js | 33 +- ...classExtendsShadowedConstructorFunction.js | 31 +- .../classExtendsValidConstructorFunction.js | 24 +- .../reference/classExtensionNameOutput.js | 35 +- .../reference/classFunctionMerging.js | 4 +- .../reference/classFunctionMerging2.js | 2 +- .../classHeritageWithTrailingSeparator.js | 31 +- .../classImplementingInterfaceIndexer.js | 7 +- .../reference/classImplementsClass1.js | 14 +- .../reference/classImplementsClass2.js | 44 +- .../reference/classImplementsClass3.js | 42 +- .../reference/classImplementsClass4.js | 42 +- .../reference/classImplementsClass5.js | 42 +- .../reference/classImplementsClass6.js | 44 +- .../reference/classImplementsClass7.js | 14 +- .../classImplementsImportedInterface.js | 9 +- .../classImplementsMergedClassInterface.js | 28 +- .../reference/classImplementsPrimitive.js | 63 +- tests/baselines/reference/classIndexer.js | 7 +- tests/baselines/reference/classIndexer2.js | 7 +- tests/baselines/reference/classIndexer3.js | 31 +- tests/baselines/reference/classIndexer4.js | 7 +- tests/baselines/reference/classInheritence.js | 33 +- tests/baselines/reference/classInsideBlock.js | 7 +- .../reference/classIsSubtypeOfBaseType.js | 40 +- .../classMemberInitializerScoping.js | 16 +- .../classMemberInitializerWithLamdaScoping.js | 35 +- ...classMemberInitializerWithLamdaScoping2.js | 9 +- ...classMemberInitializerWithLamdaScoping3.js | 13 +- ...classMemberInitializerWithLamdaScoping4.js | 17 +- ...classMemberInitializerWithLamdaScoping5.js | 9 +- .../classMemberWithMissingIdentifier.js | 7 +- .../classMemberWithMissingIdentifier2.js | 7 +- ...MergedWithInterfaceMultipleBasesNoError.js | 40 +- .../reference/classMethodWithKeywordName1.js | 9 +- tests/baselines/reference/classOrder1.js | 11 +- tests/baselines/reference/classOrder2.js | 35 +- tests/baselines/reference/classOrderBug.js | 38 +- .../reference/classOverloadForFunction.js | 7 +- .../reference/classOverloadForFunction2.js | 7 +- .../reference/classPropertyAsPrivate.js | 27 +- .../reference/classPropertyAsProtected.js | 27 +- .../reference/classPropertyErrorOnNameOnly.js | 9 +- .../classPropertyIsPublicByDefault.js | 27 +- .../reference/classSideInheritance1.js | 35 +- .../reference/classSideInheritance2.js | 36 +- .../reference/classSideInheritance3.js | 45 +- .../baselines/reference/classStaticBlock19.js | 9 +- .../baselines/reference/classStaticBlock20.js | 13 +- .../baselines/reference/classStaticBlock21.js | 9 +- .../classStaticBlock24(module=amd).js | 9 +- .../classStaticBlock24(module=commonjs).js | 9 +- .../classStaticBlock24(module=es2015).js | 10 +- .../classStaticBlock24(module=es2020).js | 10 +- .../classStaticBlock24(module=es2022).js | 10 +- .../classStaticBlock24(module=esnext).js | 10 +- .../classStaticBlock24(module=system).js | 9 +- .../classStaticBlock24(module=umd).js | 9 +- .../baselines/reference/classStaticBlock27.js | 13 +- .../baselines/reference/classStaticBlock28.js | 11 +- ...lassStaticBlock6(target=es2015).errors.txt | 127 + .../classStaticBlock6(target=es2015).js | 162 + ... classStaticBlock6(target=es2015).symbols} | 0 ...=> classStaticBlock6(target=es2015).types} | 0 ... classStaticBlock6(target=es5).errors.txt} | 0 ...k6.js => classStaticBlock6(target=es5).js} | 0 .../classStaticBlock6(target=es5).symbols | 132 + .../classStaticBlock6(target=es5).types | 214 + .../baselines/reference/classStaticBlock7.js | 105 +- .../baselines/reference/classStaticBlock8.js | 18 +- ...tializersUsePropertiesBeforeDeclaration.js | 15 +- .../reference/classTypeParametersInStatics.js | 19 +- tests/baselines/reference/classUpdateTests.js | 191 +- .../reference/classVarianceCircularity.js | 9 +- .../classVarianceResolveCircularity1.js | 7 +- .../classVarianceResolveCircularity2.js | 17 +- .../classWithBaseClassButNoConstructor.js | 67 +- .../reference/classWithConstructors.js | 65 +- .../reference/classWithDuplicateIdentifier.js | 25 +- .../baselines/reference/classWithEmptyBody.js | 18 +- .../reference/classWithEmptyTypeParameter.js | 7 +- .../reference/classWithMultipleBaseClasses.js | 29 +- .../classWithNoConstructorOrBaseClass.js | 14 +- .../reference/classWithOptionalParameter.js | 18 +- ...ssWithOverloadImplementationOfWrongName.js | 9 +- ...sWithOverloadImplementationOfWrongName2.js | 9 +- .../classWithPredefinedTypesAsNames.js | 28 +- .../classWithPredefinedTypesAsNames2.js | 7 +- .../reference/classWithPrivateProperty.js | 15 +- .../reference/classWithProtectedProperty.js | 43 +- .../reference/classWithPublicProperty.js | 15 +- .../classWithSemicolonClassElement1.js | 7 +- .../classWithSemicolonClassElement2.js | 7 +- .../reference/classWithStaticMembers.js | 41 +- .../classWithTwoConstructorDefinitions.js | 18 +- .../classWithoutExplicitConstructor.js | 14 +- tests/baselines/reference/clinterfaces.js | 26 +- .../cloduleAcrossModuleDefinitions.js | 13 +- .../reference/cloduleAndTypeParameters.js | 14 +- .../reference/cloduleGenericOnSelfMember.js | 31 +- .../reference/cloduleSplitAcrossFiles.js | 7 +- .../reference/cloduleStaticMembers.js | 11 +- tests/baselines/reference/cloduleTest2.js | 8 +- .../reference/cloduleWithDuplicateMember1.js | 23 +- .../reference/cloduleWithDuplicateMember2.js | 19 +- .../cloduleWithPriorInstantiatedModule.js | 14 +- .../cloduleWithPriorUninstantiatedModule.js | 14 +- .../cloduleWithRecursiveReference.js | 7 +- .../reference/clodulesDerivedClasses.js | 31 +- .../reference/coAndContraVariantInferences.js | 6 +- .../coAndContraVariantInferences2.js | 10 +- .../coAndContraVariantInferences3.js | 30 +- .../reference/collectionPatternNoError.js | 24 +- ...nArgumentsArrowFunctions(target=es2015).js | 36 + ...entsArrowFunctions(target=es2015).symbols} | 0 ...umentsArrowFunctions(target=es2015).types} | 0 ...entsArrowFunctions(target=es5).errors.txt} | 0 ...ionArgumentsArrowFunctions(target=es5).js} | 0 ...rgumentsArrowFunctions(target=es5).symbols | 40 + ...nArgumentsArrowFunctions(target=es5).types | 74 + ...ClassConstructor(target=es2015).errors.txt | 161 + ...rgumentsClassConstructor(target=es2015).js | 144 + ...tsClassConstructor(target=es2015).symbols} | 0 ...entsClassConstructor(target=es2015).types} | 0 ...tsClassConstructor(target=es5).errors.txt} | 0 ...nArgumentsClassConstructor(target=es5).js} | 0 ...umentsClassConstructor(target=es5).symbols | 188 + ...rgumentsClassConstructor(target=es5).types | 265 + ...mentsClassMethod(target=es2015).errors.txt | 111 + ...sionArgumentsClassMethod(target=es2015).js | 81 + ...gumentsClassMethod(target=es2015).symbols} | 0 ...ArgumentsClassMethod(target=es2015).types} | 0 ...gumentsClassMethod(target=es5).errors.txt} | 0 ...lisionArgumentsClassMethod(target=es5).js} | 0 ...onArgumentsClassMethod(target=es5).symbols | 145 + ...sionArgumentsClassMethod(target=es5).types | 223 + ...llisionArgumentsFunction(target=es2015).js | 74 + ...nArgumentsFunction(target=es2015).symbols} | 0 ...sionArgumentsFunction(target=es2015).types | 206 + ...nArgumentsFunction(target=es5).errors.txt} | 0 ...collisionArgumentsFunction(target=es5).js} | 0 ...isionArgumentsFunction(target=es5).symbols | 136 + ...lisionArgumentsFunction(target=es5).types} | 0 ...mentsFunctionExpressions(target=es2015).js | 65 + ...unctionExpressions(target=es2015).symbols} | 0 ...tsFunctionExpressions(target=es2015).types | 143 + ...unctionExpressions(target=es5).errors.txt} | 0 ...gumentsFunctionExpressions(target=es5).js} | 0 ...ntsFunctionExpressions(target=es5).symbols | 96 + ...entsFunctionExpressions(target=es5).types} | 0 ...lisionCodeGenModuleWithAccessorChildren.js | 79 +- ...ionCodeGenModuleWithConstructorChildren.js | 23 +- ...sionCodeGenModuleWithEnumMemberConflict.js | 2 +- ...lisionCodeGenModuleWithFunctionChildren.js | 4 +- ...ionCodeGenModuleWithMemberClassConflict.js | 21 +- ...odeGenModuleWithMemberInterfaceConflict.js | 7 +- ...ollisionCodeGenModuleWithMethodChildren.js | 42 +- ...ollisionCodeGenModuleWithModuleChildren.js | 19 +- ...llisionCodeGenModuleWithModuleReopening.js | 28 +- ...collisionCodeGenModuleWithPrivateMember.js | 14 +- .../collisionExportsRequireAndAlias.js | 4 +- .../collisionExportsRequireAndClass.js | 84 +- .../collisionExportsRequireAndEnum.js | 16 +- ...ionExportsRequireAndInternalModuleAlias.js | 7 +- ...quireAndInternalModuleAliasInGlobalFile.js | 7 +- .../collisionExportsRequireAndModule.js | 100 +- .../collisionRestParameterArrowFunctions.js | 16 +- .../collisionRestParameterClassConstructor.js | 72 +- .../collisionRestParameterClassMethod.js | 48 +- .../collisionRestParameterFunction.js | 18 +- ...llisionRestParameterFunctionExpressions.js | 18 +- .../collisionRestParameterUnderscoreIUsage.js | 11 +- ...isionSuperAndLocalFunctionInConstructor.js | 46 +- .../collisionSuperAndLocalFunctionInMethod.js | 62 +- ...ollisionSuperAndLocalFunctionInProperty.js | 39 +- .../collisionSuperAndLocalVarInConstructor.js | 46 +- .../collisionSuperAndLocalVarInMethod.js | 50 +- .../collisionSuperAndLocalVarInProperty.js | 41 +- .../collisionSuperAndNameResolution.js | 35 +- .../reference/collisionSuperAndParameter1.js | 37 +- ...perAndPropertyNameAsConstuctorParameter.js | 68 +- ...collisionThisExpressionAndAliasInGlobal.js | 3 +- ...onThisExpressionAndAmbientClassInGlobal.js | 3 +- ...sionThisExpressionAndAmbientVarInGlobal.js | 3 +- ...collisionThisExpressionAndClassInGlobal.js | 10 +- .../collisionThisExpressionAndEnumInGlobal.js | 3 +- ...lisionThisExpressionAndFunctionInGlobal.js | 3 +- ...nThisExpressionAndLocalVarInConstructor.js | 28 +- ...sionThisExpressionAndLocalVarInFunction.js | 3 +- ...lisionThisExpressionAndLocalVarInLambda.js | 9 +- ...lisionThisExpressionAndLocalVarInMethod.js | 29 +- ...sionThisExpressionAndLocalVarInProperty.js | 28 +- ...xpressionAndLocalVarWithSuperExperssion.js | 56 +- ...ollisionThisExpressionAndModuleInGlobal.js | 10 +- ...ollisionThisExpressionAndNameResolution.js | 14 +- .../collisionThisExpressionAndParameter.js | 91 +- ...ionAndPropertyNameAsConstuctorParameter.js | 48 +- .../collisionThisExpressionAndVarInGlobal.js | 3 +- .../commaOperatorInConditionalExpression.js | 5 +- .../reference/commaOperatorLeftSideUnused.js | 16 +- ...ommaOperatorWithSecondOperandObjectType.js | 7 +- .../reference/commentBeforeStaticMethod1.js | 11 +- .../commentEmittingInPreserveJsx1.js | 2 +- .../reference/commentOnArrayElement1.js | 2 +- .../reference/commentOnArrayElement10.js | 2 +- .../reference/commentOnArrayElement11.js | 2 +- .../reference/commentOnArrayElement12.js | 2 +- .../reference/commentOnArrayElement13.js | 2 +- .../reference/commentOnArrayElement14.js | 2 +- .../reference/commentOnArrayElement15.js | 2 +- .../reference/commentOnArrayElement16.js | 2 +- .../reference/commentOnArrayElement2.js | 2 +- .../reference/commentOnArrayElement3.js | 2 +- .../reference/commentOnArrayElement4.js | 2 +- .../reference/commentOnArrayElement5.js | 2 +- .../reference/commentOnArrayElement6.js | 2 +- .../reference/commentOnArrayElement7.js | 2 +- .../reference/commentOnArrayElement8.js | 2 +- .../reference/commentOnArrayElement9.js | 2 +- .../reference/commentOnClassAccessor1.js | 19 +- .../reference/commentOnClassAccessor2.js | 27 +- .../reference/commentOnClassMethod1.js | 11 +- .../commentOnDecoratedClassDeclaration.js | 27 +- .../commentOnExportEnumDeclaration.js | 7 +- .../reference/commentOnSignature1.js | 11 +- .../commentOnSimpleArrowFunctionBody1.js | 7 +- .../reference/commentOnStaticMember1.js | 11 +- ...mmentWithUnreasonableIndentationLevel01.js | 11 +- .../commentsAfterFunctionExpression1.js | 6 +- .../commentsArgumentsOfCallExpression1.js | 8 +- .../commentsArgumentsOfCallExpression2.js | 6 +- .../commentsBeforeFunctionExpression1.js | 2 +- ...e,module=commonjs,moduledetection=auto).js | 11 +- ...,module=commonjs,moduledetection=force).js | 11 +- ...module=commonjs,moduledetection=legacy).js | 11 +- ...rve,module=system,moduledetection=auto).js | 11 +- ...ve,module=system,moduledetection=force).js | 11 +- ...e,module=system,moduledetection=legacy).js | 11 +- ...t,module=commonjs,moduledetection=auto).js | 11 +- ...,module=commonjs,moduledetection=force).js | 11 +- ...module=commonjs,moduledetection=legacy).js | 11 +- ...act,module=system,moduledetection=auto).js | 11 +- ...ct,module=system,moduledetection=force).js | 11 +- ...t,module=system,moduledetection=legacy).js | 11 +- ...x,module=commonjs,moduledetection=auto).js | 13 +- ...,module=commonjs,moduledetection=force).js | 13 +- ...module=commonjs,moduledetection=legacy).js | 11 +- ...jsx,module=system,moduledetection=auto).js | 11 +- ...sx,module=system,moduledetection=force).js | 11 +- ...x,module=system,moduledetection=legacy).js | 11 +- ...v,module=commonjs,moduledetection=auto).js | 15 +- ...,module=commonjs,moduledetection=force).js | 15 +- ...module=commonjs,moduledetection=legacy).js | 13 +- ...dev,module=system,moduledetection=auto).js | 11 +- ...ev,module=system,moduledetection=force).js | 11 +- ...v,module=system,moduledetection=legacy).js | 13 +- .../commentsOnPropertyOfObjectLiteral1.js | 8 +- .../reference/commentsOnReturnStatement1.js | 11 +- .../reference/commentsOnStaticMembers.js | 23 +- .../reference/commentsTypeParameters.js | 21 +- .../reference/commonJSAliasedExport.js | 4 +- .../commonJSImportAsPrimaryExpression.js | 11 +- .../commonJSImportClassTypeReference.js | 13 +- .../commonJSImportExportedClassExpression.js | 11 +- .../commonJSImportNestedClassTypeReference.js | 13 +- .../commonJSImportNotAsPrimaryExpression.js | 9 +- .../commonJsImportClassExpression.js | 7 +- .../reference/commonSourceDirectory.js | 8 +- .../reference/commonSourceDirectory.js.map | 4 +- .../commonSourceDirectory.sourcemap.txt | 92 +- .../reference/commonSourceDirectory_dts.js | 5 +- .../commonSourceDirectory_dts.js.map | 4 +- .../commonSourceDirectory_dts.sourcemap.txt | 51 +- .../reference/commonTypeIntersection.js | 4 +- ...mparabilityTypeParametersRelatedByUnion.js | 15 +- ...pAndIndexedAccessTerminatesWithoutError.js | 5 +- .../comparisonOperatorWithIdenticalObjects.js | 60 +- ...ithNoRelationshipObjectsOnCallSignature.js | 38 +- ...lationshipObjectsOnConstructorSignature.js | 38 +- ...thNoRelationshipObjectsOnIndexSignature.js | 38 +- ...nshipObjectsOnInstantiatedCallSignature.js | 38 +- ...jectsOnInstantiatedConstructorSignature.js | 38 +- ...atorWithNoRelationshipObjectsOnProperty.js | 28 +- ...peratorWithSubtypeObjectOnCallSignature.js | 31 +- ...WithSubtypeObjectOnConstructorSignature.js | 31 +- ...eratorWithSubtypeObjectOnIndexSignature.js | 31 +- ...ubtypeObjectOnInstantiatedCallSignature.js | 31 +- ...bjectOnInstantiatedConstructorSignature.js | 31 +- ...isonOperatorWithSubtypeObjectOnProperty.js | 61 +- .../reference/complexNarrowingWithAny.js | 80 +- ...catedGenericRecursiveBaseClassReference.js | 24 +- ...AccessKeyofReliesOnKeyofNeverUpperBound.js | 13 +- ...edIndexesOfIntersectionsAreInferencable.js | 2 +- .../compositeWithNodeModulesSourceFile.js | 2 +- .../reference/compoundAssignmentLHSIsValue.js | 65 +- ...poundExponentiationAssignmentLHSIsValue.js | 60 +- .../reference/computedEnumTypeWidening.js | 79 +- .../computedPropertiesInDestructuring1.js | 53 +- .../computedPropertiesInDestructuring2.js | 4 +- ...rtiesTransformedInOtherwiseNonTSClasses.js | 7 +- .../computedPropertyNameWithImportedKey.js | 13 +- .../reference/computedPropertyNames49_ES5.js | 57 +- .../reference/computedPropertyNames50_ES5.js | 53 +- .../reference/computedPropertyNames51_ES5.js | 9 +- .../reference/concatClassAndString.js | 7 +- tests/baselines/reference/concatTuples.js | 2 +- ...onditionalAnyCheckTypePicksBothBranches.js | 4 +- ...alDoesntLeakUninstantiatedTypeParameter.js | 4 +- .../conditionalEqualityOnLiteralObjects.js | 4 +- .../conditionalEqualityTestingNullability.js | 3 +- ...llback(moduleresolution=node16).trace.json | 2 + ...back(moduleresolution=nodenext).trace.json | 2 + ...ckNull(moduleresolution=node16).trace.json | 2 + ...Null(moduleresolution=nodenext).trace.json | 2 + ...onditionalOperatorConditionIsObjectType.js | 15 +- .../conditionalOperatorWithIdenticalBCT.js | 46 +- .../conditionalOperatorWithoutIdenticalBCT.js | 48 +- ...onditionalTypeAssignabilityWhenDeferred.js | 34 +- ...peBasedContextualTypeReturnTypeWidening.js | 8 +- ...ypeContextualTypeSimplificationsSuceeds.js | 6 +- ...UnionRegularTypeFetchingSpeedReasonable.js | 7 +- ...onalTypeRelaxingConstraintAssignability.js | 11 +- .../baselines/reference/conditionalTypes1.js | 38 +- .../baselines/reference/conditionalTypes2.js | 32 +- .../conditionalTypesSimplifyWhenTrivial.js | 14 +- ...cateOverloadsCausedByOverloadResolution.js | 4 +- .../reference/configFileExtendsAsList.js | 2 +- .../reference/conflictMarkerDiff3Trivia1.js | 7 +- .../reference/conflictMarkerDiff3Trivia2.js | 13 +- .../reference/conflictMarkerTrivia1.js | 7 +- .../reference/conflictMarkerTrivia2.js | 13 +- .../reference/conflictMarkerTrivia3.js | 2 +- .../reference/conflictMarkerTrivia4.js | 2 +- ...lictingDeclarationsImportFromNamespace1.js | 4 +- ...lictingDeclarationsImportFromNamespace2.js | 4 +- .../conflictingTypeParameterSymbolTransfer.js | 83 +- ...nstDeclarationShadowedByVarDeclaration3.js | 7 +- tests/baselines/reference/constEnum2.js | 2 +- tests/baselines/reference/constEnumErrors.js | 2 +- .../reference/constEnumMergingWithValues2.js | 7 +- .../reference/constEnumMergingWithValues5.js | 2 +- ...ceCausesNoImport(isolatedmodules=false).js | 8 +- ...nceCausesNoImport(isolatedmodules=true).js | 47 +- ...stEnumNamespaceReferenceCausesNoImport2.js | 4 +- .../reference/constEnumNoEmitReexport.js | 24 +- .../constEnumNoPreserveDeclarationReexport.js | 3 +- .../constEnumPreserveEmitReexport.js | 19 +- .../reference/constEnumToStringNoComments.js | 24 +- .../constEnumToStringWithComments.js | 24 +- tests/baselines/reference/constEnums.js | 4 +- .../reference/constInClassExpression.js | 7 +- .../baselines/reference/constIndexedAccess.js | 18 +- .../constLocalsInFunctionExpressions.js | 20 +- .../baselines/reference/constantEnumAssert.js | 26 +- .../reference/constantOverloadFunction.js | 57 +- .../constantOverloadFunctionNoSubtypeError.js | 57 +- ...nstraintCheckInGenericBaseTypeReference.js | 56 +- ...lyMappedTypeWithConditionalIsResolvable.js | 3 +- .../constraintSatisfactionWithAny.js | 21 +- .../constraintSatisfactionWithEmptyObject.js | 14 +- .../reference/constraintWithIndexedAccess.js | 3 +- ...straintsThatReferenceOtherContstraints1.js | 14 +- .../constraintsUsedInPrototypeProperty.js | 7 +- ...uctSignatureAssignabilityInInheritance2.js | 49 +- ...uctSignatureAssignabilityInInheritance3.js | 49 +- ...uctSignatureAssignabilityInInheritance4.js | 49 +- ...uctSignatureAssignabilityInInheritance5.js | 49 +- ...uctSignatureAssignabilityInInheritance6.js | 49 +- ...eWithAccessibilityModifiersOnParameters.js | 21 +- ...WithAccessibilityModifiersOnParameters2.js | 21 +- ...nstructSignaturesWithIdenticalOverloads.js | 16 +- .../constructSignaturesWithOverloads.js | 16 +- .../constructSignaturesWithOverloads2.js | 16 +- ...WithOverloadsThatDifferOnlyByReturnType.js | 16 +- .../constructableDecoratorOnClass01.js | 20 +- .../constructorArgWithGenericCallSignature.js | 8 +- tests/baselines/reference/constructorArgs.js | 35 +- .../reference/constructorArgsErrors1.js | 7 +- .../reference/constructorArgsErrors2.js | 7 +- .../reference/constructorArgsErrors3.js | 7 +- .../reference/constructorArgsErrors4.js | 7 +- .../reference/constructorArgsErrors5.js | 7 +- ...constructorDefaultValuesReferencingThis.js | 51 +- ...uctorFunctionTypeIsAssignableToBaseType.js | 40 +- ...ctorFunctionTypeIsAssignableToBaseType2.js | 42 +- .../constructorHasPrototypeProperty.js | 47 +- ...structorImplementationWithDefaultValues.js | 24 +- ...tructorImplementationWithDefaultValues2.js | 25 +- ...constructorInvocationWithTooFewTypeArgs.js | 7 +- .../reference/constructorOverloads1.js | 13 +- .../reference/constructorOverloads2.js | 36 +- .../reference/constructorOverloads3.js | 28 +- .../reference/constructorOverloads8.js | 17 +- .../constructorOverloadsWithDefaultValues.js | 14 +- ...structorOverloadsWithOptionalParameters.js | 14 +- .../constructorParameterProperties.js | 14 +- .../constructorParameterProperties2.js | 29 +- .../constructorParameterShadowsOuterScopes.js | 14 +- ...tructorParametersInVariableDeclarations.js | 18 +- ...adowExternalNamesInVariableDeclarations.js | 14 +- .../constructorReturningAPrimitive.js | 14 +- .../constructorReturnsInvalidType.js | 9 +- .../reference/constructorStaticParamName.js | 8 +- .../constructorStaticParamNameErrors.js | 8 +- ...nstructorWithAssignableReturnExpression.js | 35 +- .../reference/constructorWithCapturedSuper.js | 82 +- .../constructorWithExpressionLessReturn.js | 28 +- ...constructorWithIncompleteTypeAnnotation.js | 109 +- .../constructorsWithSpecializedSignatures.js | 16 +- .../contextSensitiveReturnTypeInference.js | 26 +- .../reference/contextualIntersectionType.js | 4 +- .../contextualPropertyOfGenericMappedType.js | 2 +- .../reference/contextualReturnTypeOfIIFE.js | 42 +- .../reference/contextualReturnTypeOfIIFE2.js | 4 +- .../reference/contextualReturnTypeOfIIFE3.js | 2 +- .../contextualSignatureInstantiation1.js | 4 +- .../contextualSignatureInstantiation2.js | 2 +- .../contextualSignatureInstantiation4.js | 10 +- ...ature_objectLiteralMethodMayReturnNever.js | 2 +- .../baselines/reference/contextualThisType.js | 2 +- .../contextualTupleTypeParameterReadonly.js | 14 +- .../contextualTypeAppliedToVarArgs.js | 11 +- .../contextualTypeArrayReturnType.js | 2 +- ...eForInitalizedVariablesFiltersUndefined.js | 16 +- .../reference/contextualTypeLogicalOr.js | 2 +- .../contextualTypeObjectSpreadExpression.js | 15 +- .../contextualTypeOfIndexedAccessParameter.js | 2 +- .../contextualTypeShouldBeLiteral.js | 12 +- .../reference/contextualTypeWithTuple.js | 18 +- ...ntextualTypeWithUnionTypeCallSignatures.js | 10 +- ...textualTypeWithUnionTypeIndexSignatures.js | 16 +- .../contextualTypeWithUnionTypeMembers.js | 48 +- ...ontextualTypeWithUnionTypeObjectLiteral.js | 6 +- tests/baselines/reference/contextualTyping.js | 22 +- .../reference/contextualTyping.js.map | 4 +- .../reference/contextualTyping.sourcemap.txt | 2003 +++-- .../baselines/reference/contextualTyping10.js | 7 +- .../baselines/reference/contextualTyping11.js | 7 +- .../baselines/reference/contextualTyping12.js | 7 +- .../baselines/reference/contextualTyping14.js | 7 +- .../baselines/reference/contextualTyping15.js | 7 +- .../baselines/reference/contextualTyping3.js | 7 +- .../baselines/reference/contextualTyping4.js | 7 +- .../baselines/reference/contextualTyping5.js | 7 +- ...ualTypingArrayDestructuringWithDefaults.js | 8 +- .../contextualTypingArrayOfLambdas.js | 42 +- ...ntextualTypingFunctionReturningFunction.js | 4 +- ...textualTypingFunctionReturningFunction2.js | 2 +- .../reference/contextualTypingOfAccessors.js | 2 +- ...contextualTypingOfConditionalExpression.js | 44 +- ...ontextualTypingOfConditionalExpression2.js | 42 +- ...lTypingOfGenericFunctionTypedArguments1.js | 4 +- ...ontextualTypingOfLambdaReturnExpression.js | 4 +- ...ualTypingOfLambdaWithMultipleSignatures.js | 2 +- ...alTypingOfLambdaWithMultipleSignatures2.js | 2 +- .../contextualTypingOfObjectLiterals2.js | 2 +- .../contextualTypingOfOptionalMembers.js | 18 +- .../contextualTypingOfTooShortOverloads.js | 6 +- ...alTypingTwoInstancesOfSameTypeParameter.js | 2 +- ...ontextualTypingWithFixedTypeParameters1.js | 4 +- ...TypingWithGenericAndNonGenericSignature.js | 4 +- .../contextualTypingWithGenericSignature.js | 2 +- .../contextuallyTypeCommaOperator01.js | 4 +- .../contextuallyTypeCommaOperator02.js | 6 +- .../contextuallyTypeCommaOperator03.js | 4 +- .../reference/contextuallyTypeLogicalAnd01.js | 6 +- .../reference/contextuallyTypeLogicalAnd02.js | 8 +- .../reference/contextuallyTypeLogicalAnd03.js | 6 +- .../contextuallyTypedBindingInitializer.js | 26 +- ...extuallyTypedBindingInitializerNegative.js | 26 +- .../contextuallyTypedBooleanLiterals.js | 10 +- .../contextuallyTypedByDiscriminableUnion.js | 8 +- ...TypedClassExpressionMethodDeclaration01.js | 33 +- ...TypedClassExpressionMethodDeclaration02.js | 33 +- ...FunctionExpressionsAndReturnAnnotations.js | 6 +- .../contextuallyTypedGenericAssignment.js | 2 +- .../reference/contextuallyTypedIife.js | 78 +- .../reference/contextuallyTypedIifeStrict.js | 78 +- .../contextuallyTypedJsxAttribute.js | 6 +- ...lyTypedObjectLiteralMethodDeclaration01.js | 8 +- ...xtuallyTypedParametersWithInitializers1.js | 168 +- ...llyTypedStringLiteralsInJsxAttributes01.js | 2 +- ...llyTypedStringLiteralsInJsxAttributes02.js | 16 +- .../reference/contextuallyTypingOrOperator.js | 8 +- .../contextuallyTypingOrOperator2.js | 4 +- .../contextuallyTypingRestParameters.js | 6 +- .../continueNotInIterationStatement4.js | 2 +- .../contravariantInferenceAndTypeGuard.js | 6 +- .../controlFlowAliasedDiscriminants.js | 55 +- .../reference/controlFlowAliasing.js | 151 +- ...ables(useunknownincatchvariables=false).js | 4 +- ...iables(useunknownincatchvariables=true).js | 4 +- .../controlFlowAnalysisOnBareThisKeyword.js | 2 +- .../reference/controlFlowArrayErrors.js | 26 +- .../baselines/reference/controlFlowArrays.js | 38 +- .../controlFlowAssignmentExpression.js | 8 +- .../controlFlowBinaryAndExpression.js | 4 +- .../controlFlowBinaryOrExpression.js | 7 +- .../reference/controlFlowBindingElement.js | 54 +- .../controlFlowBreakContinueWithLabel.js | 2 +- .../baselines/reference/controlFlowCaching.js | 2 +- ...owCommaExpressionAssertionWithinTernary.js | 2 +- .../controlFlowCommaExpressionFunctionCall.js | 6 +- .../reference/controlFlowCommaOperator.js | 4 +- .../controlFlowConditionalExpression.js | 4 +- .../reference/controlFlowDeleteOperator.js | 2 +- .../controlFlowDestructuringDeclaration.js | 38 +- .../reference/controlFlowDestructuringLoop.js | 7 +- .../controlFlowDestructuringParameters.js | 5 +- ...rolFlowDestructuringVariablesInTryCatch.js | 10 +- .../reference/controlFlowDoWhileStatement.js | 16 +- .../reference/controlFlowElementAccess.js | 4 +- .../controlFlowFinallyNoCatchAssignments.js | 4 +- .../controlFlowForCatchAndFinally.js | 112 +- ...olFlowForCompoundAssignmentToThisMember.js | 7 +- .../reference/controlFlowForInStatement.js | 8 +- .../reference/controlFlowForInStatement2.js | 6 +- .../controlFlowForIndexSignatures.js | 12 +- .../reference/controlFlowForOfStatement.js | 7 +- .../reference/controlFlowForStatement.js | 12 +- .../reference/controlFlowGenericTypes.js | 63 +- .../reference/controlFlowIfStatement.js | 10 +- .../reference/controlFlowInOperator.js | 18 +- ...olFlowInitializedDestructuringVariables.js | 2 +- .../controlFlowInstanceofExtendsFunction.js | 29 +- .../reference/controlFlowIteration.js | 4 +- .../reference/controlFlowIterationErrors.js | 22 +- .../reference/controlFlowJavascript.js | 34 +- .../reference/controlFlowLoopAnalysis.js | 12 +- ...rolFlowManyCallExpressionStatementsPerf.js | 2 +- ...lFlowManyConsecutiveConditionsNoTimeout.js | 11 +- .../reference/controlFlowNoImplicitAny.js | 38 +- .../controlFlowNullTypeAndLiteral.js | 8 +- .../reference/controlFlowNullishCoalesce.js | 4 +- .../reference/controlFlowOptionalChain.js | 16 +- .../reference/controlFlowOuterVariable.js | 4 +- .../reference/controlFlowParameter.js | 26 +- .../controlFlowPropertyDeclarations.js | 33 +- .../controlFlowPropertyInitializer.js | 9 +- .../controlFlowSelfReferentialLoop.js | 12 +- .../controlFlowSuperPropertyAccess.js | 35 +- .../reference/controlFlowTruthiness.js | 16 +- .../reference/controlFlowWhileStatement.js | 22 +- .../controlFlowWithIncompleteTypes.js | 4 +- .../controlFlowWithTemplateLiterals.js | 4 +- .../baselines/reference/convertKeywordsYes.js | 105 +- .../reference/copyrightWithNewLine1.js | 2 +- .../reference/copyrightWithoutNewLine1.js | 2 +- .../reference/correctOrderOfPromiseMethod.js | 68 +- tests/baselines/reference/correlatedUnions.js | 84 +- tests/baselines/reference/covariance1.js | 7 +- .../reference/crashInEmitTokenWithComment.js | 9 +- .../crashInGetTextOfComputedPropertyName.js | 15 +- .../reference/crashInResolveInterface.js | 2 +- .../crashInresolveReturnStatement.js | 31 +- ...urcePropertyIsRelatableToTargetProperty.js | 31 +- .../crashIntypeCheckInvocationExpression.js | 2 +- ...rashIntypeCheckObjectCreationExpression.js | 15 +- .../reference/crashOnMethodSignatures.js | 7 +- .../reference/crashRegressionTest.js | 18 +- tests/baselines/reference/createArray.js | 7 +- .../reference/ctsFileInEsnextHelpers.js | 13 +- .../declFileAliasUseBeforeDeclaration.js | 7 +- .../declFileClassWithIndexSignature.js | 7 +- ...assWithStaticMethodReturningConstructor.js | 11 +- .../reference/declFileExportImportChain.js | 9 +- .../reference/declFileExportImportChain2.js | 9 +- ...declFileForClassWithMultipleBaseClasses.js | 33 +- ...leForClassWithPrivateOverloadedFunction.js | 9 +- .../declFileForFunctionTypeAsTypeParameter.js | 31 +- .../reference/declFileForTypeParameters.js | 11 +- ...ileGenericClassWithGenericExtendedClass.js | 38 +- .../reference/declFileGenericType.js | 45 +- .../reference/declFileGenericType2.js | 38 +- .../declFileImportChainInExportAssignment.js | 9 +- ...eclFileImportModuleWithExportAssignment.js | 2 +- ...eclFileImportedTypeUseInTypeArgPosition.js | 7 +- .../reference/declFileInternalAliases.js | 7 +- ...ModuleAssignmentInObjectLiteralProperty.js | 7 +- .../reference/declFileModuleContinuation.js | 7 +- .../declFileModuleWithPropertyOfTypeModule.js | 7 +- .../declFilePrivateMethodOverloads.js | 15 +- .../reference/declFileRegressionTests.js | 2 +- ...RestParametersOfFunctionAndFunctionType.js | 9 +- .../reference/declFileTypeofClass.js | 14 +- .../reference/declFileTypeofFunction.js | 2 +- .../declFileTypeofInAnonymousType.js | 9 +- ...lictingWithClassReferredByExtendsClause.js | 33 +- ...dsClauseThatHasItsContainerNameConflict.js | 31 +- ...rnalModuleNameConflictsInExtendsClause1.js | 7 +- ...rnalModuleNameConflictsInExtendsClause2.js | 7 +- ...rnalModuleNameConflictsInExtendsClause3.js | 7 +- tests/baselines/reference/declInput-2.js | 33 +- tests/baselines/reference/declInput.js | 18 +- tests/baselines/reference/declInput3.js | 18 +- tests/baselines/reference/declInput4.js | 27 +- .../declarationEmitAliasExportStar.js | 27 +- .../declarationEmitAliasFromIndirectFile.js | 6 +- .../declarationEmitAliasInlineing.js | 23 +- .../declarationEmitAmdModuleDefault.js | 7 +- .../declarationEmitAmdModuleNameDirective.js | 2 +- ...clarationEmitAnyComputedPropertyInClass.js | 18 +- .../declarationEmitArrowFunctionNoRenaming.js | 13 +- ...ationEmitBindingPatternWithReservedWord.js | 7 +- .../declarationEmitBindingPatterns.js | 9 +- ...larationEmitBundleWithAmbientReferences.js | 2 +- .../declarationEmitClassInherritsAny.js | 35 +- ...tionEmitClassMixinLocalClassDeclaration.js | 53 +- ...arationEmitCommonJsModuleReferencedType.js | 11 +- ...EmitComputedNameCausesImportToBePainted.js | 21 +- ...clarationEmitComputedNameConstEnumAlias.js | 16 +- ...rationEmitComputedNameWithQuestionToken.js | 19 +- ...eclarationEmitComputedNamesInaccessible.js | 34 +- .../declarationEmitConstantNoWidening.js | 15 +- ...nEmitCrossFileCopiedGeneratedImportType.js | 7 +- ...nEmitCrossFileImportTypeOfAmbientModule.js | 7 +- ...onEmitDefaultExportWithStaticAssignment.js | 51 +- .../declarationEmitDestructuring1.js | 16 +- .../declarationEmitDestructuring2.js | 16 +- .../declarationEmitDestructuring3.js | 8 +- .../declarationEmitDestructuring4.js | 18 +- .../declarationEmitDestructuring4.types | 4 +- .../declarationEmitDestructuring5.js | 20 +- ...clarationEmitDestructuringArrayPattern1.js | 12 +- ...clarationEmitDestructuringArrayPattern2.js | 12 +- ...clarationEmitDestructuringArrayPattern4.js | 16 +- ...clarationEmitDestructuringArrayPattern5.js | 6 +- ...onEmitDestructuringObjectLiteralPattern.js | 20 +- ...nEmitDestructuringObjectLiteralPattern1.js | 14 +- ...nEmitDestructuringObjectLiteralPattern2.js | 6 +- ...ingOptionalBindingParametersInOverloads.js | 12 +- ...ionEmitDestructuringParameterProperties.js | 24 +- ...eclarationEmitDestructuringPrivacyError.js | 7 +- ...tructuringWithOptionalBindingParameters.js | 6 +- ...ionEmitDistributiveConditionalWithInfer.js | 6 +- .../declarationEmitEnumReadonlyProperty.js | 9 +- ...arationEmitEnumReferenceViaImportEquals.js | 32 +- ...eused(exactoptionalpropertytypes=false).js | 7 +- ...Reused(exactoptionalpropertytypes=true).js | 7 +- ...clarationEmitExpandoPropertyPrivateName.js | 14 +- ...arationEmitExpandoWithGenericConstraint.js | 11 +- ...rationEmitExportAliasVisibiilityMarking.js | 4 +- ...nedNamespaceNoTripleSlashTypesReference.js | 32 +- .../declarationEmitExpressionInExtends.js | 31 +- .../declarationEmitExpressionInExtends2.js | 31 +- .../declarationEmitExpressionInExtends3.js | 73 +- .../declarationEmitExpressionInExtends4.js | 49 +- .../declarationEmitExpressionInExtends5.js | 31 +- .../declarationEmitExpressionInExtends6.js | 35 +- .../declarationEmitExpressionInExtends7.js | 27 +- ...pressionWithNonlocalPrivateUniqueSymbol.js | 12 +- ...DefaultExportClassExtendingExpression01.js | 38 +- ...arationEmitForGlobalishSpecifierSymlink.js | 7 +- ...rationEmitForGlobalishSpecifierSymlink2.js | 7 +- ...mportingModuleAugmentationRetainsImport.js | 22 +- ...arationEmitForTypesWhichNeedImportTypes.js | 12 +- ...tionEmitGenericTypeParamerSerialization.js | 7 +- ...ionEmitGenericTypeParamerSerialization2.js | 7 +- ...eclarationEmitHasTypesRefOnNamespaceUse.js | 7 +- ...ationEmitImportInExportAssignmentModule.js | 9 +- .../declarationEmitIndexTypeArray.js | 11 +- .../declarationEmitIndexTypeNotFound.js | 3 +- .../declarationEmitInferredTypeAlias1.js | 12 +- .../declarationEmitInferredTypeAlias2.js | 13 +- .../declarationEmitInferredTypeAlias3.js | 9 +- .../declarationEmitInferredTypeAlias5.js | 12 +- .../declarationEmitInferredTypeAlias6.js | 12 +- .../declarationEmitInferredTypeAlias7.js | 12 +- .../declarationEmitInferredTypeAlias9.js | 5 +- ...nferredUndefinedPropFromFunctionInArray.js | 5 +- ...ationEmitInlinedDistributiveConditional.js | 22 +- ...faceWithNonEntityNameExpressionHeritage.js | 7 +- .../reference/declarationEmitInvalidExport.js | 5 +- ...arationErrorNotEmittedForNonEmittedFile.js | 13 +- .../declarationEmitKeywordDestructuring.js | 10 +- ...itLambdaWithMissingTypeParameterNoCrash.js | 3 +- ...clarationEmitLocalClassDeclarationMixin.js | 68 +- ...arationEmitLocalClassHasRequiredDeclare.js | 28 +- ...ationEmitMappedPrivateTypeTypeParameter.js | 6 +- ...dTypeDistributivityPreservesConstraints.js | 13 +- ...pedTypePreservesTypeParameterConstraint.js | 11 +- ...tMappedTypePropertyFromNumericStringKey.js | 5 +- ...ationEmitMappedTypeTemplateTypeofSymbol.js | 47 +- .../declarationEmitMergedAliasWithConst.js | 5 +- .../declarationEmitMixinPrivateProtected.js | 91 +- ...tionEmitMultipleComputedNamesSameDomain.js | 11 +- .../reference/declarationEmitNameConflicts.js | 36 +- .../declarationEmitNameConflicts2.js | 11 +- .../declarationEmitNameConflicts3.js | 41 +- ...espaceMergedWithInterfaceNestedFunction.js | 3 +- ...eclarationEmitNestedAnonymousMappedType.js | 5 +- .../declarationEmitNestedGenerics.js | 4 +- .../declarationEmitNoNonRequiredParens.js | 9 +- ...eclarationEmitNonExportedBindingPattern.js | 9 +- .../declarationEmitOfTypeofAliasedExport.js | 51 +- .../declarationEmitOptionalMethod.js | 6 +- ...clarationEmitOverloadedPrivateInference.js | 15 +- .../declarationEmitParameterProperty.js | 11 +- .../declarationEmitPathMappingMonorepo.js | 9 +- .../declarationEmitPathMappingMonorepo2.js | 6 +- ...eclarationEmitPreserveReferencedImports.js | 16 +- .../reference/declarationEmitPrivateAsync.js | 48 +- .../declarationEmitPrivateNameCausesError.js | 35 +- ...larationEmitPrivatePromiseLikeInterface.js | 31 +- .../declarationEmitPrivateReadonlyLiterals.js | 11 +- ...tPrivateSymbolCausesVarDeclarationEmit2.js | 58 +- ...teSymbolCausesVarDeclarationToBeEmitted.js | 13 +- ...declarationEmitPropertyNumericStringKey.js | 15 +- ...clarationEmitQualifiedAliasTypeArgument.js | 9 +- .../reference/declarationEmitReadonly.js | 7 +- ...declarationEmitReadonlyComputedProperty.js | 33 +- ...nEmitRecursiveConditionalAliasPreserved.js | 6 +- ...clarationEmitReexportedSymlinkReference.js | 2 +- ...larationEmitReexportedSymlinkReference2.js | 2 +- ...larationEmitReexportedSymlinkReference3.js | 2 +- ...RetainedAnnotationRetainsImportInOutput.js | 41 +- .../declarationEmitRetainsJsdocyComments.js | 25 +- .../declarationEmitScopeConsistency.js | 13 +- .../declarationEmitScopeConsistency3.js | 10 +- .../reference/declarationEmitShadowing.js | 16 +- ...declarationEmitShadowingInferNotRenamed.js | 6 +- .../declarationEmitSimpleComputedNames1.js | 46 +- .../declarationEmitSpreadStringlyKeyedEnum.js | 16 +- ...ationEmitStringEnumUsedInNonlocalSpread.js | 67 +- .../declarationEmitThisPredicates01.js | 35 +- .../declarationEmitThisPredicates02.js | 4 +- ...tionEmitThisPredicatesWithPrivateName01.js | 35 +- ...tionEmitThisPredicatesWithPrivateName02.js | 4 +- ...EmitToDeclarationDirWithCompositeOption.js | 3 +- ...itToDeclarationDirWithDeclarationOption.js | 3 +- ...irWithoutCompositeAndDeclarationOptions.js | 3 +- ...eclarationEmitTopLevelNodeFromCrossFile.js | 14 +- ...clarationEmitTopLevelNodeFromCrossFile2.js | 7 +- ...itTransitiveImportOfHtmlDeclarationItem.js | 16 +- ...onEmitTupleRestSignatureLeadingVariadic.js | 7 +- ...arationEmitTypeAliasWithTypeParameters1.js | 6 +- ...arationEmitTypeAliasWithTypeParameters2.js | 6 +- ...arationEmitTypeAliasWithTypeParameters5.js | 3 +- ...rationEmitTypeParameterNameInOuterScope.js | 13 +- ...nEmitTypeParameterNameReusedInOverloads.js | 46 +- ...EmitTypeParameterNameShadowedInternally.js | 8 +- .../declarationEmitTypeofDefaultExport.js | 49 +- .../declarationEmitTypeofThisInClass.js | 7 +- .../reference/declarationEmitWithComposite.js | 3 +- ...rationEmitWithInvalidPackageJsonTypings.js | 13 +- .../declarationEmitWorkWithInlineComments.js | 27 +- ...eForJsonImport(resolvejsonmodule=false).js | 9 +- ...leForJsonImport(resolvejsonmodule=true).js | 9 +- ...arationFileNoCrashOnExtraExportModifier.js | 7 +- .../declarationFileOverwriteError.js | 7 +- .../declarationFileOverwriteErrorWithOut.js | 7 +- tests/baselines/reference/declarationFiles.js | 53 +- ...nFunctionTypeNonlocalShouldNotBeAnError.js | 2 +- ...tionImportTypeAliasInferredAndEmittable.js | 17 +- .../reference/declarationMapsMultifile.js | 31 +- .../reference/declarationMapsOutFile.js | 17 +- .../reference/declarationMapsOutFile2.js | 19 +- .../reference/declarationMapsWithSourceMap.js | 19 +- .../declarationMapsWithSourceMap.js.map | 4 +- ...declarationMapsWithSourceMap.sourcemap.txt | 273 +- .../reference/declarationMerging1.js | 9 +- .../reference/declarationMerging2.js | 9 +- .../declarationNoDanglingGenerics.js | 72 +- .../declarationNotFoundPackageBundlesTypes.js | 3 +- .../reference/declarationQuotedMembers.js | 5 +- .../reference/declarationWithNoInitializer.js | 4 +- .../declarationsAndAssignments.errors.txt | 8 +- .../reference/declarationsAndAssignments.js | 130 +- ...clarationsForFileShadowingGlobalNoError.js | 36 +- ...clarationsForIndirectTypeAliasReference.js | 15 +- ...eclarationsForInferredTypeFromOtherFile.js | 25 +- ...arationsIndirectGeneratedAliasReference.js | 42 +- ...iveInternalTypesProduceUniqueTypeParams.js | 45 +- .../reference/declareDottedExtend.js | 33 +- ...ifierAsBeginningOfStatementExpression01.js | 7 +- .../reference/decoratorCallGeneric.js | 15 +- .../decoratorMetadataConditionalType.js | 30 +- .../decoratorMetadataGenericTypeVariable.js | 19 +- ...ratorMetadataGenericTypeVariableDefault.js | 19 +- ...ratorMetadataGenericTypeVariableInScope.js | 26 +- ...oratorMetadataNoLibIsolatedModulesTypes.js | 21 +- .../decoratorMetadataNoStrictNull.js | 25 +- .../decoratorMetadataTypeOnlyExport.js | 31 +- .../decoratorMetadataTypeOnlyImport.js | 21 +- .../decoratorMetadataWithTypeOnlyImport2.js | 33 +- .../reference/decoratorOnFunctionParameter.js | 7 +- .../decoratorReferenceOnOtherProperty.js | 76 +- .../reference/decoratorReferences.js | 25 +- .../decoratorUsedBeforeDeclaration.js | 154 +- .../decoratorWithUnderscoreMethod.js | 17 +- .../decrementOperatorWithAnyOtherType.js | 7 +- ...eratorWithAnyOtherTypeInvalidOperations.js | 13 +- .../decrementOperatorWithNumberType.js | 7 +- ...OperatorWithNumberTypeInvalidOperations.js | 13 +- ...ementOperatorWithUnsupportedBooleanType.js | 13 +- ...rementOperatorWithUnsupportedStringType.js | 13 +- tests/baselines/reference/deepComparisons.js | 10 +- ...ropertyCheckingWhenTargetIsIntersection.js | 4 +- tests/baselines/reference/deepKeysIndexing.js | 15 +- ...deeplyNestedAssignabilityErrorsCombined.js | 22 +- .../deeplyNestedAssignabilityIssue.js | 2 +- .../baselines/reference/deeplyNestedCheck.js | 6 +- .../reference/deeplyNestedConstraints.js | 11 +- .../defaultArgsInFunctionExpressions.js | 31 +- .../reference/defaultArgsInOverloads.js | 17 +- .../defaultDeclarationEmitDefaultImport.js | 20 +- .../defaultDeclarationEmitNamedCorrectly.js | 16 +- ...ltDeclarationEmitShadowedNamedCorrectly.js | 55 +- .../baselines/reference/defaultIndexProps1.js | 7 +- .../baselines/reference/defaultIndexProps2.js | 7 +- .../defaultIsNotVisibleInLocalScope.js | 9 +- .../reference/defaultKeywordWithoutExport1.js | 13 +- .../defaultOfAnyInStrictNullChecks.js | 2 +- ...ameterAddsUndefinedWithStrictNullChecks.js | 29 +- .../defaultParameterTrailingComments.js | 11 +- .../defaultPropsEmptyCurlyBecomesAnyForJs.js | 70 +- .../defaultValueInConstructorOverload1.js | 8 +- .../defaultValueInFunctionOverload1.js | 4 +- .../reference/definiteAssignmentAssertions.js | 52 +- ...AssignmentAssertionsWithObjectShortHand.js | 8 +- ...efiniteAssignmentOfDestructuredVariable.js | 13 +- .../deleteOperatorInvalidOperations.js | 7 +- .../deleteOperatorWithAnyOtherType.js | 13 +- .../deleteOperatorWithBooleanType.js | 9 +- .../reference/deleteOperatorWithNumberType.js | 11 +- .../reference/deleteOperatorWithStringType.js | 11 +- .../deleteReadonlyInStrictNullChecks.js | 7 +- .../reference/dependencyViaImportAlias.js | 7 +- .../reference/deprecatedCompilerOptions2.js | 2 +- ...derivedClassConstructorWithoutSuperCall.js | 75 +- ...ClassFunctionOverridesBaseClassAccessor.js | 47 +- .../derivedClassIncludesInheritedMembers.js | 68 +- ...idesIndexersWithAssignmentCompatibility.js | 47 +- .../derivedClassOverridesPrivateFunction1.js | 40 +- .../derivedClassOverridesPrivates.js | 47 +- .../derivedClassOverridesProtectedMembers4.js | 40 +- .../derivedClassOverridesPublicMembers.js | 89 +- .../derivedClassOverridesWithoutSubtype.js | 47 +- .../derivedClassParameterProperties.js | 176 +- ...dClassSuperCallsInNonConstructorMembers.js | 77 +- .../derivedClassSuperCallsWithThisArg.js | 73 +- .../reference/derivedClassTransitivity.js | 46 +- .../reference/derivedClassTransitivity2.js | 46 +- .../reference/derivedClassTransitivity3.js | 46 +- .../reference/derivedClassTransitivity4.js | 46 +- .../reference/derivedClassWithAny.js | 110 +- ...hPrivateInstanceShadowingPublicInstance.js | 55 +- ...sWithPrivateStaticShadowingPublicStatic.js | 55 +- .../derivedClassWithoutExplicitConstructor.js | 61 +- ...derivedClassWithoutExplicitConstructor2.js | 61 +- ...derivedClassWithoutExplicitConstructor3.js | 91 +- tests/baselines/reference/derivedClasses.js | 56 +- .../reference/derivedGenericClassWithAny.js | 85 +- ...sesHiddenBaseCallViaSuperPropertyAccess.js | 45 +- ...edTypeCallingBaseImplWithOptionalParams.js | 9 +- .../derivedTypeDoesNotRequireExtendsClause.js | 38 +- ...derivedUninitializedPropertyDeclaration.js | 163 +- .../reference/destructionAssignmentError.js | 10 +- ...eunknownincatchvariables=false).errors.txt | 12 +- ...false,useunknownincatchvariables=false).js | 63 +- ...seunknownincatchvariables=true).errors.txt | 24 +- ...=false,useunknownincatchvariables=true).js | 63 +- ...eunknownincatchvariables=false).errors.txt | 12 +- ...=true,useunknownincatchvariables=false).js | 63 +- ...seunknownincatchvariables=true).errors.txt | 24 +- ...t=true,useunknownincatchvariables=true).js | 63 +- .../reference/destructureComputedProperty.js | 21 +- .../destructureOfVariableSameAsShorthand.js | 71 +- .../reference/destructureOptionalParameter.js | 3 +- .../reference/destructuredDeclarationEmit.js | 37 +- ...structuredMaappedTypeIsNotImplicitlyAny.js | 4 +- ...ingArrayBindingPatternAndAssignment1ES5.js | 41 +- ...BindingPatternAndAssignment1ES5iterable.js | 57 +- ...rayBindingPatternAndAssignment2.errors.txt | 16 +- ...turingArrayBindingPatternAndAssignment2.js | 23 +- ...turingArrayBindingPatternAndAssignment3.js | 15 +- ...PatternAndAssignment5SiblingInitializer.js | 14 +- ...destructuringAssignabilityCheck.errors.txt | 16 +- .../destructuringAssignabilityCheck.js | 16 +- .../destructuringAssignmentWithDefault.js | 39 +- .../destructuringAssignmentWithDefault2.js | 31 +- ...ructuringAssignmentWithStrictNullChecks.js | 2 +- .../destructuringAssignment_private.js | 22 +- .../baselines/reference/destructuringCatch.js | 12 +- .../reference/destructuringControlFlow.js | 35 +- .../destructuringControlFlowNoCrash.js | 36 +- .../reference/destructuringFromUnionSpread.js | 13 +- .../reference/destructuringInFunctionType.js | 5 +- ...ingInitializerContextualTypeFromContext.js | 28 +- ...ngObjectBindingPatternAndAssignment1ES5.js | 22 +- ...uringObjectBindingPatternAndAssignment3.js | 12 +- ...uringObjectBindingPatternAndAssignment4.js | 14 +- ...uringObjectBindingPatternAndAssignment5.js | 6 +- ...PatternAndAssignment9SiblingInitializer.js | 14 +- .../destructuringParameterDeclaration1ES5.js | 120 +- ...cturingParameterDeclaration1ES5iterable.js | 136 +- .../destructuringParameterDeclaration2.js | 76 +- .../destructuringParameterDeclaration4.js | 63 +- .../destructuringParameterDeclaration5.js | 65 +- .../destructuringParameterDeclaration6.js | 39 +- .../destructuringParameterDeclaration6.types | 4 +- .../destructuringParameterDeclaration8.js | 3 +- .../destructuringParameterProperties1.js | 28 +- .../destructuringParameterProperties2.js | 26 +- .../destructuringParameterProperties3.js | 28 +- .../destructuringParameterProperties5.js | 10 +- ...ertyAssignmentNameIsNotAssignmentTarget.js | 6 +- .../reference/destructuringSameNames.js | 45 +- .../reference/destructuringSpread.js | 21 +- .../destructuringTempOccursAfterPrologue.js | 3 +- .../reference/destructuringTuple.errors.txt | 4 +- .../baselines/reference/destructuringTuple.js | 8 +- .../reference/destructuringTypeGuardFlow.js | 28 +- .../destructuringVariableDeclaration1ES5.js | 35 +- ...ucturingVariableDeclaration1ES5iterable.js | 51 +- .../destructuringVariableDeclaration2.js | 10 +- .../baselines/reference/destructuringVoid.js | 2 +- .../destructuringVoidStrictNullChecks.js | 2 +- .../reference/destructuringWithConstraint.js | 2 +- .../destructuringWithGenericParameter.js | 10 +- .../destructuringWithLiteralInitializers.js | 48 +- .../destructuringWithLiteralInitializers2.js | 80 +- .../destructuringWithNewExpression.js | 9 +- .../destructuringWithNumberLiteral.js | 2 +- .../detachedCommentAtStartOfConstructor1.js | 10 +- .../detachedCommentAtStartOfConstructor2.js | 10 +- .../detachedCommentAtStartOfFunctionBody1.js | 14 +- .../detachedCommentAtStartOfFunctionBody2.js | 14 +- ...detachedCommentAtStartOfLambdaFunction1.js | 25 +- ...detachedCommentAtStartOfLambdaFunction2.js | 25 +- ...rationsForExpressionsWhichCouldBeCalled.js | 7 +- .../reference/didYouMeanStringLiteral.js | 6 +- .../reference/didYouMeanSuggestionErrors.js | 36 +- .../reference/differentTypesWithSameName.js | 14 +- .../directDependenceBetweenTypeAliases.js | 14 +- .../disallowLineTerminatorBeforeArrow.js | 83 +- ...iscriminableUnionWithIntersectedMembers.js | 4 +- .../discriminantElementAccessCheck.js | 4 +- .../discriminantNarrowingCouldBeCircular.js | 19 +- .../reference/discriminantPropertyCheck.js | 19 +- .../discriminantPropertyInference.js | 8 +- .../reference/discriminantsAndPrimitives.js | 2 +- .../reference/discriminateObjectTypesOnly.js | 8 +- .../discriminatedUnionErrorMessage.js | 2 +- .../reference/discriminatedUnionInference.js | 4 +- .../reference/discriminatedUnionJsxElement.js | 2 +- .../reference/discriminatedUnionTypes2.js | 8 +- .../reference/discriminatedUnionTypes3.js | 2 +- .../discriminatedUnionWithIndexSignature.js | 7 +- .../reference/divergentAccessors1.js | 8 +- .../reference/divergentAccessorsTypes6.js | 7 +- .../reference/divergentAccessorsTypes7.js | 24 +- ...mitDetachedCommentsAtStartOfConstructor.js | 28 +- ...DetachedCommentsAtStartOfLambdaFunction.js | 16 +- .../doNotEmitPinnedCommentOnNotEmittedNode.js | 9 +- ...oNotEmitPinnedCommentOnNotEmittedNodets.js | 9 +- .../reference/doNotInferUnrelatedTypes.js | 2 +- .../reference/doWhileUnreachableCode.js | 2 +- ...oYouNeedToChangeYourTargetLibraryES2015.js | 176 +- ...NeedToChangeYourTargetLibraryES2016Plus.js | 66 +- ...NarrowUnionOfConstructorsWithInstanceof.js | 18 +- tests/baselines/reference/dottedModuleName.js | 14 +- .../baselines/reference/dottedModuleName2.js | 2 +- .../reference/dottedSymbolResolution1.js | 9 +- ...oubleMixinConditionalTypeBaseClassWorks.js | 42 +- .../reference/doubleUnderscoreLabels.js | 2 +- .../reference/doubleUnderscoreMappedTypes.js | 6 +- .../doubleUnderscoreReactNamespace.js | 2 +- .../baselines/reference/downlevelLetConst1.js | 2 +- .../reference/downlevelLetConst10.js | 2 +- .../downlevelLetConst19(target=es2015).js | 41 + ...ownlevelLetConst19(target=es2015).symbols} | 0 .../downlevelLetConst19(target=es2015).types | 60 + ...ownlevelLetConst19(target=es5).errors.txt} | 0 ....js => downlevelLetConst19(target=es5).js} | 0 .../downlevelLetConst19(target=es5).symbols | 44 + ... => downlevelLetConst19(target=es5).types} | 0 .../baselines/reference/downlevelLetConst2.js | 2 +- .../baselines/reference/downlevelLetConst3.js | 2 +- .../baselines/reference/downlevelLetConst4.js | 2 +- .../baselines/reference/downlevelLetConst5.js | 2 +- .../baselines/reference/downlevelLetConst7.js | 2 +- .../baselines/reference/downlevelLetConst8.js | 2 +- .../baselines/reference/downlevelLetConst9.js | 2 +- ...lashAvoidUnnecessaryResolutionMode.symbols | 2 +- .../reference/duplicateAnonymousInners1.js | 21 +- .../duplicateAnonymousModuleClasses.js | 44 +- .../reference/duplicateClassElements.js | 91 +- .../duplicateConstructorOverloadSignature.js | 8 +- .../duplicateConstructorOverloadSignature2.js | 8 +- .../reference/duplicateDefaultExport.js | 7 +- .../reference/duplicateErrorAssignability.js | 4 +- .../duplicateErrorClassExpression.js | 33 +- .../reference/duplicateErrorNameNotFound.js | 3 +- .../reference/duplicateExportAssignments.js | 14 +- .../duplicateIdentifierComputedName.js | 7 +- .../duplicateIdentifierDifferentModifiers.js | 14 +- .../duplicateIdentifierDifferentSpelling.js | 11 +- .../reference/duplicateIdentifierEnum.js | 14 +- .../duplicateIdentifierRelatedSpans1.js | 18 +- .../duplicateIdentifierRelatedSpans2.js | 126 +- .../duplicateIdentifierRelatedSpans5.js | 7 +- .../duplicateIdentifierRelatedSpans6.js | 3 +- .../duplicateIdentifierRelatedSpans7.js | 3 +- ...entifierRelatedSpans_moduleAugmentation.js | 8 +- ...ierShouldNotShortCircuitBaseTypeBinding.js | 7 +- ...ateIdentifiersAcrossContainerBoundaries.js | 37 +- ...uplicateIdentifiersAcrossFileBoundaries.js | 37 +- .../reference/duplicateLocalVariable1.js | 26 +- .../reference/duplicateLocalVariable2.js | 24 +- .../reference/duplicateNumericIndexers.js | 7 +- ...cateObjectLiteralProperty_computedName1.js | 71 +- ...cateObjectLiteralProperty_computedName2.js | 37 +- ...cateObjectLiteralProperty_computedName3.js | 85 +- .../duplicateOverloadInTypeAugmentation1.js | 2 +- tests/baselines/reference/duplicatePackage.js | 12 +- .../reference/duplicatePackage_globalMerge.js | 13 +- ...icatePackage_packageIdIncludesSubModule.js | 3 +- .../duplicatePackage_referenceTypes.js | 39 +- ...catePackage_relativeImportWithinPackage.js | 8 +- ...age_relativeImportWithinPackage.trace.json | 8 +- ...kage_relativeImportWithinPackage_scoped.js | 8 +- ...ativeImportWithinPackage_scoped.trace.json | 8 +- .../reference/duplicatePackage_subModule.js | 39 +- .../reference/duplicatePackage_withErrors.js | 3 +- .../duplicatePropertiesInTypeAssertions01.js | 2 +- .../duplicatePropertiesInTypeAssertions02.js | 2 +- .../reference/duplicatePropertyNames.js | 19 +- .../reference/duplicateStringIndexers.js | 7 +- .../duplicateSymbolsExportMatching.js | 11 +- .../reference/duplicateTypeParameters2.js | 18 +- .../reference/duplicateVariablesByScope.js | 11 +- .../dynamicImportInDefaultExportExpression.js | 2 +- .../reference/dynamicImportTrailingComma.js | 4 +- tests/baselines/reference/elaboratedErrors.js | 7 +- .../elaboratedErrorsOnNullableTargets01.js | 7 +- .../reference/elementAccessChain.3.js | 16 +- ...EmbeddedStatementsReplacedWithSemicolon.js | 6 +- .../elidedJSImport2(module=commonjs).js | 26 +- .../elidedJSImport2(module=es2022).js | 22 +- .../baselines/reference/elidingImportNames.js | 4 +- .../emitCapturingThisInTupleDestructuring1.js | 5 +- .../emitCapturingThisInTupleDestructuring2.js | 12 +- ...tionWithPropertyAccessInHeritageClause1.js | 31 +- .../emitClassExpressionInDeclarationFile.js | 78 +- .../emitClassExpressionInDeclarationFile2.js | 67 +- ...tClassMergedWithConstNamespaceNotElided.js | 6 +- ...tadata_isolatedModules(module=commonjs).js | 84 +- ...Metadata_isolatedModules(module=esnext).js | 81 +- .../reference/emitMemberAccessExpression.js | 18 +- .../reference/emitMethodCalledNew.js | 18 +- ...eVariableDeclarationRemoveCommentsFalse.js | 14 +- .../emitSkipsThisWithRestParameter.js | 6 +- ...BeforeEmitParameterPropertyDeclaration1.js | 35 +- ...SuperCallBeforeEmitPropertyDeclaration1.js | 35 +- ...arationAndParameterPropertyDeclaration1.js | 37 +- .../reference/emitThisInSuperMethodCall.js | 60 +- ...ObjectNarrowing(strictnullchecks=false).js | 2 +- ...sObjectNarrowing(strictnullchecks=true).js | 2 +- .../emptyArrayBindingPatternParameter01.js | 4 +- .../emptyArrayBindingPatternParameter01.types | 4 +- .../emptyArrayBindingPatternParameter02.js | 4 +- .../emptyArrayBindingPatternParameter02.types | 4 +- .../emptyArrayBindingPatternParameter03.js | 4 +- .../emptyArrayBindingPatternParameter03.types | 4 +- .../emptyArrayBindingPatternParameter04.js | 3 +- ...ructuringExpressionVisitedByTransformer.js | 4 +- .../reference/emptyDeclarationEmitIsModule.js | 13 +- .../reference/emptyGenericParamList.js | 7 +- tests/baselines/reference/emptyModuleName.js | 26 +- .../emptyObjectBindingPatternParameter01.js | 2 +- .../emptyObjectBindingPatternParameter02.js | 2 +- .../emptyObjectBindingPatternParameter03.js | 2 +- .../emptyObjectBindingPatternParameter04.js | 3 +- ...ubtypeOfIndexSignatureContainingObject1.js | 7 +- ...ubtypeOfIndexSignatureContainingObject2.js | 9 +- tests/baselines/reference/emptyThenWarning.js | 2 +- .../reference/emptyThenWithoutWarning.js | 4 +- .../reference/emptyTuplesTypeAssertion01.js | 4 +- .../reference/emptyTuplesTypeAssertion02.js | 4 +- .../reference/emptyTypeArgumentListWithNew.js | 14 +- .../baselines/reference/enumAssignability.js | 7 +- .../enumAssignabilityInInheritance.js | 21 +- .../reference/enumAssignmentCompat.js | 7 +- .../reference/enumAssignmentCompat2.js | 7 +- .../reference/enumAssignmentCompat3.js | 16 +- .../reference/enumAssignmentCompat4.js | 6 +- .../reference/enumAssignmentCompat5.js | 8 +- .../reference/enumAssignmentCompat6.js | 22 +- .../reference/enumAssignmentCompat7.js | 39 +- tests/baselines/reference/enumBasics3.js | 8 +- .../enumConstantMemberWithTemplateLiterals.js | 6 +- ...mberWithTemplateLiteralsEmitDeclaration.js | 2 +- ...enumDeclarationEmitInitializerHasImport.js | 2 +- ...umErrorOnConstantBindingWithInitializer.js | 2 +- tests/baselines/reference/enumErrors.js | 4 +- .../reference/enumFromExternalModule.js | 2 +- .../reference/enumGenericTypeClash.js | 7 +- tests/baselines/reference/enumIndexer.js | 2 +- .../enumIsNotASubtypeOfAnythingButNumber.js | 21 +- ...otedAsObjectPropertiesInDeclarationEmit.js | 9 +- .../enumLiteralAssignableToEnumInsideUnion.js | 20 +- .../reference/enumLiteralUnionNotWidened.js | 7 +- .../reference/enumMemberReduction.js | 20 +- tests/baselines/reference/enumMerging.js | 18 +- .../baselines/reference/enumMergingErrors.js | 30 +- ...InitializerFollowsNonLiteralInitializer.js | 13 +- .../reference/enumShadowedInfinityNaN.js | 12 +- .../reference/enumUsedBeforeDeclaration.js | 4 +- .../enumWithNonLiteralStringInitializer.js | 15 +- tests/baselines/reference/enums.js | 15 +- ...llishCoalescingAssignment(strict=false).js | 2 +- ...ullishCoalescingAssignment(strict=true).js | 2 +- .../baselines/reference/erasableSyntaxOnly.js | 86 +- .../reference/erasableSyntaxOnly2.js | 6 +- tests/baselines/reference/errorElaboration.js | 7 +- .../errorForConflictingExportEqualsValue.js | 2 +- .../errorForUsingPropertyOfTypeAsType01.js | 7 +- .../errorForUsingPropertyOfTypeAsType02.js | 2 +- .../errorForUsingPropertyOfTypeAsType03.js | 22 +- ...rorForwardReferenceForwadingConstructor.js | 31 +- ...elatedIndexTypesNoConstraintElaboration.js | 13 +- .../errorMessagesIntersectionTypes01.js | 2 +- .../errorMessagesIntersectionTypes02.js | 2 +- .../errorMessagesIntersectionTypes03.js | 10 +- .../errorMessagesIntersectionTypes04.js | 10 +- .../errorOnEnumReferenceInCondition.js | 8 +- ...nctionReturnType(target=es2015).errors.txt | 78 + ...FunctionReturnType(target=es2015).symbols} | 0 ...OnFunctionReturnType(target=es2015).types} | 0 ...FunctionReturnType(target=es5).errors.txt} | 0 ...orOnFunctionReturnType(target=es5).symbols | 80 + ...rrorOnFunctionReturnType(target=es5).types | 135 + ...nInitializerInObjectTypeLiteralProperty.js | 2 +- ...OnUnionVsObjectShouldDeeplyDisambiguate.js | 22 +- ...nUnionVsObjectShouldDeeplyDisambiguate2.js | 22 +- .../errorRecoveryInClassDeclaration.js | 11 +- ...coveryWithDotFollowedByNamespaceKeyword.js | 2 +- .../reference/errorSpanForUnclosedJsxTag.js | 8 +- tests/baselines/reference/errorSuperCalls.js | 148 +- ...erPropertyAccess(target=es2015).errors.txt | 212 + ...errorSuperPropertyAccess(target=es2015).js | 243 + ...uperPropertyAccess(target=es2015).symbols} | 0 ...rSuperPropertyAccess(target=es2015).types} | 0 ...uperPropertyAccess(target=es5).errors.txt} | 0 ...> errorSuperPropertyAccess(target=es5).js} | 0 ...rorSuperPropertyAccess(target=es5).symbols | 277 + ...errorSuperPropertyAccess(target=es5).types | 557 ++ tests/baselines/reference/errorSupression1.js | 9 +- .../reference/errorWithSameNameType.js | 9 +- .../errorsForCallAndAssignmentAreSimilar.js | 2 +- .../reference/errorsInGenericTypeReference.js | 88 +- .../errorsOnUnionsOfOverlappingObjects01.js | 13 +- .../errorsWithInvokablesInUnions01.js | 13 +- .../reference/es6ClassSuperCodegenBug.js | 37 +- tests/baselines/reference/es6ClassTest.js | 57 +- tests/baselines/reference/es6ClassTest2.js | 190 +- tests/baselines/reference/es6ClassTest3.js | 15 +- tests/baselines/reference/es6ClassTest5.js | 16 +- tests/baselines/reference/es6ClassTest7.js | 24 +- tests/baselines/reference/es6ClassTest8.js | 31 +- tests/baselines/reference/es6DeclOrdering.js | 15 +- .../reference/es6ExportEqualsInterop.js | 56 +- ...efaultBindingFollowedWithNamedImportDts.js | 52 +- ...tBindingFollowedWithNamespaceBindingDts.js | 9 +- ...gFollowedWithNamespaceBindingWithExport.js | 2 +- ...s6ImportEqualsExportModuleCommonJsError.js | 9 +- .../es6ImportEqualsExportModuleEs2015Error.js | 7 +- .../reference/es6ImportNameSpaceImportDts.js | 9 +- .../reference/es6ImportNamedImportDts.js | 116 +- ...rtNamedImportInIndirectExportAssignment.js | 9 +- .../es6ImportNamedImportWithExport.js | 18 +- .../es6ImportNamedImportWithTypesAndValues.js | 16 +- tests/baselines/reference/es6MemberScoping.js | 18 +- tests/baselines/reference/esModuleInterop.js | 48 +- .../esModuleInteropDefaultImports.js | 10 +- ...tMemberMustBeSyntacticallyDefaultExport.js | 11 +- .../reference/esModuleInteropImportCall.js | 2 +- ...mportDefaultWhenAllNamedAreDefaultAlias.js | 11 +- .../esModuleInteropImportNamespace.js | 37 +- .../esModuleInteropNamedDefaultImports.js | 20 +- ...uleInteropPrettyErrorRelatedInformation.js | 37 +- .../reference/esModuleInteropTslibHelpers.js | 37 +- ...teropUsesExportStarWhenDefaultPlusNames.js | 41 +- .../reference/esModuleIntersectionCrash.js | 37 +- .../baselines/reference/escapedIdentifiers.js | 32 +- .../reference/everyTypeAssignableToAny.js | 7 +- .../everyTypeWithAnnotationAndInitializer.js | 25 +- ...TypeWithAnnotationAndInvalidInitializer.js | 30 +- .../reference/everyTypeWithInitializer.js | 23 +- .../reference/evolvingArrayTypeInAssert.js | 7 +- .../exactOptionalPropertyTypesIdentical.js | 7 +- ...ertyCheckIntersectionWithIndexSignature.js | 4 +- .../excessPropertyCheckWithEmptyObject.js | 4 +- ...sPropertyCheckWithMultipleDiscriminants.js | 19 +- ...ropertyCheckWithNestedArrayIntersection.js | 2 +- .../excessPropertyCheckWithSpread.js | 15 +- .../excessPropertyCheckWithUnions.js | 39 +- ...ertyCheckingIntersectionWithConditional.js | 2 +- ...ssPropertyChecksWithNestedIntersections.js | 22 +- .../excessPropertyErrorForFunctionTypes.js | 2 +- .../reference/excessiveStackDepthFlatArray.js | 19 +- .../reference/excessivelyLargeTupleSpread.js | 39 +- .../exhaustiveSwitchCheckCircularity.js | 6 +- .../exhaustiveSwitchImplicitReturn.js | 2 +- .../reference/exhaustiveSwitchStatements1.js | 22 +- ...xhaustiveSwitchWithWideningLiteralTypes.js | 14 +- .../expandoFunctionBlockShadowing.js | 22 +- .../expandoFunctionContextualTypes.js | 2 +- ...expandoFunctionContextualTypesJSDocInTs.js | 7 +- .../expandoFunctionContextualTypesNoValue.js | 12 +- ...andoFunctionExpressionsWithDynamicNames.js | 15 +- .../expandoFunctionNestedAssigments.js | 10 +- ...expandoFunctionNestedAssigmentsDeclared.js | 5 +- .../expandoFunctionSymbolPropertyJs.js | 14 +- ...ratorMetadataUnresolvedTypeObjectInEmit.js | 23 +- ...xplicitAnyAfterSpreadNoImplicitAnyError.js | 15 +- .../baselines/reference/exportAlreadySeen.js | 9 +- .../reference/exportArrayBindingPattern.js | 2 +- .../exportAsNamespace1(module=commonjs).js | 2 +- .../exportAsNamespace1(module=es2015).js | 4 +- .../exportAsNamespace1(module=esnext).js | 4 +- .../exportAsNamespace1(module=umd).js | 2 +- .../exportAsNamespace2(module=commonjs).js | 2 +- .../exportAsNamespace2(module=es2015).js | 4 +- .../exportAsNamespace2(module=esnext).js | 4 +- .../exportAsNamespace2(module=umd).js | 2 +- .../exportAsNamespace3(module=amd).js | 2 +- .../exportAsNamespace3(module=commonjs).js | 4 +- .../exportAsNamespace3(module=es2015).js | 6 +- .../exportAsNamespace3(module=esnext).js | 6 +- .../exportAsNamespace3(module=umd).js | 4 +- .../exportAsNamespace4(module=commonjs).js | 6 +- .../exportAsNamespace4(module=es2015).js | 4 +- .../exportAsNamespace4(module=esnext).js | 4 +- .../exportAsNamespace4(module=umd).js | 6 +- .../reference/exportAsNamespace_augment.js | 37 +- .../exportAsNamespace_missingEmitHelpers.js | 2 +- .../reference/exportAssignClassAndModule.js | 7 +- .../reference/exportAssignDottedName.js | 2 +- .../exportAssignImportedIdentifier.js | 4 +- .../reference/exportAssignNonIdentifier.js | 7 +- .../baselines/reference/exportAssignTypes.js | 14 +- ...gnedNamespaceIsVisibleInDeclarationEmit.js | 7 +- .../exportAssignmentAndDeclaration.js | 7 +- .../reference/exportAssignmentClass.js | 7 +- .../exportAssignmentConstrainedGenericType.js | 10 +- .../reference/exportAssignmentEnum.js | 2 +- .../reference/exportAssignmentGenericType.js | 9 +- .../exportAssignmentImportMergeNoCrash.js | 14 +- ...tAssignmentMembersVisibleInAugmentation.js | 6 +- .../reference/exportAssignmentMergedModule.js | 4 +- .../exportAssignmentOfGenericType1.js | 31 +- .../exportAssignmentTopLevelClodule.js | 7 +- .../reference/exportAssignmentVariable.js | 2 +- .../reference/exportAssignmentWithExports.js | 14 +- tests/baselines/reference/exportBinding.js | 29 +- .../exportClassExtendingIntersection.js | 81 +- tests/baselines/reference/exportCodeGen.js | 22 +- ...xportDeclaration(isolatedmodules=false).js | 7 +- ...exportDeclaration(isolatedmodules=true).js | 7 +- ...aration_moduleSpecifier-isolatedModules.js | 6 +- .../exportDeclaration_moduleSpecifier.js | 17 +- .../reference/exportDeclaration_value.js | 10 +- .../exportDeclarationsInAmbientNamespaces.js | 2 +- .../reference/exportDeclaredModule.js | 2 +- tests/baselines/reference/exportDefault.js | 13 +- .../reference/exportDefaultAbstractClass.js | 65 +- .../exportDefaultAlias_excludesEverything.js | 3 +- .../reference/exportDefaultClassAndValue.js | 14 +- .../exportDefaultClassInNamespace.js | 14 +- .../reference/exportDefaultDuplicateCrash.js | 15 +- .../exportDefaultExpressionComments.js | 4 +- .../exportDefaultFunctionInNamespace.js | 31 +- .../reference/exportDefaultInterface.js | 6 +- ...ortDefaultInterfaceAndFunctionOverloads.js | 5 +- .../exportDefaultInterfaceAndTwoFunctions.js | 8 +- .../exportDefaultInterfaceAndValue.js | 5 +- ...faultInterfaceClassAndFunctionOverloads.js | 7 +- .../exportDefaultInterfaceClassAndValue.js | 14 +- .../reference/exportDefaultMissingName.js | 4 +- .../reference/exportDefaultNamespace.js | 5 +- .../reference/exportDefaultProperty.js | 39 +- .../reference/exportDefaultProperty2.js | 20 +- .../exportDefaultQualifiedNameNoError.js | 22 +- .../reference/exportDefaultStripsFreshness.js | 48 +- .../reference/exportDefaultTypeAndClass.js | 10 +- .../exportDefaultTypeAndFunctionOverloads.js | 5 +- .../exportDefaultTypeClassAndValue.js | 14 +- .../reference/exportEqualErrorType.js | 2 +- .../reference/exportEqualMemberMissing.js | 2 +- tests/baselines/reference/exportEqualsAmd.js | 3 +- .../reference/exportEqualsCommonJs.js | 3 +- .../reference/exportEqualsDefaultProperty.js | 2 +- .../reference/exportEqualsProperty.js | 22 +- .../reference/exportEqualsProperty2.js | 11 +- tests/baselines/reference/exportEqualsUmd.js | 3 +- tests/baselines/reference/exportImport.js | 7 +- .../baselines/reference/exportImportAlias.js | 21 +- .../reference/exportImportAndClodule.js | 7 +- .../reference/exportInterfaceClassAndValue.js | 5 +- ...ClassAndValueWithDuplicatesInImportList.js | 15 +- tests/baselines/reference/exportNamespace1.js | 35 +- .../baselines/reference/exportNamespace10.js | 19 +- .../baselines/reference/exportNamespace11.js | 53 +- .../baselines/reference/exportNamespace12.js | 45 +- tests/baselines/reference/exportNamespace2.js | 56 +- tests/baselines/reference/exportNamespace3.js | 59 +- tests/baselines/reference/exportNamespace4.js | 23 +- tests/baselines/reference/exportNamespace5.js | 71 +- tests/baselines/reference/exportNamespace6.js | 47 +- tests/baselines/reference/exportNamespace7.js | 60 +- tests/baselines/reference/exportNamespace8.js | 66 +- tests/baselines/reference/exportNamespace9.js | 48 +- .../baselines/reference/exportNamespace_js.js | 18 +- .../exportNonInitializedVariablesAMD.js | 16 +- .../exportNonInitializedVariablesCommonJS.js | 16 +- ...nIfThenStatementNoCrash1(module=esnext).js | 2 +- .../exportNonInitializedVariablesSystem.js | 14 +- .../exportNonInitializedVariablesUMD.js | 16 +- .../reference/exportNonLocalDeclarations.js | 4 +- .../reference/exportNonVisibleType.js | 14 +- .../baselines/reference/exportPrivateType.js | 16 +- tests/baselines/reference/exportSpecifiers.js | 6 +- .../reference/exportSpellingSuggestion.js | 8 +- .../reference/exportStarNotElided.js | 59 +- tests/baselines/reference/exportToString.js | 7 +- .../exportTwoInterfacesWithSameName.js | 3 +- ...portTypeMergedWithExportStarAsNamespace.js | 49 +- tests/baselines/reference/exportVisibility.js | 7 +- .../exportedBlockScopedDeclarations.js | 12 +- .../exportingContainingVisibleType.js | 17 +- .../baselines/reference/exportsAndImports1.js | 9 +- .../baselines/reference/exportsAndImports2.js | 2 +- .../baselines/reference/exportsAndImports3.js | 9 +- .../expressionTypeNodeShouldError.js | 45 +- .../expressionWithJSDocTypeArguments.js | 23 +- ...essionsForbiddenInParameterInitializers.js | 67 +- tests/baselines/reference/extBaseClass1.js | 49 +- tests/baselines/reference/extBaseClass2.js | 33 +- .../extendAndImplementTheSameBaseType.js | 35 +- .../extendAndImplementTheSameBaseType2.js | 35 +- .../extendBaseClassBeforeItsDeclared.js | 31 +- .../extendClassExpressionFromModule.js | 33 +- .../extendConstructSignatureInInterface.js | 24 +- tests/baselines/reference/extendFromAny.js | 32 +- tests/baselines/reference/extendGlobalThis.js | 4 +- .../reference/extendNonClassSymbol1.js | 33 +- .../reference/extendNonClassSymbol2.js | 24 +- .../extendPrivateConstructorClass.js | 24 +- ...xtendingClassFromAliasAndUsageInIndexer.js | 63 +- tests/baselines/reference/extendsClause.js | 50 +- .../reference/extendsClauseAlreadySeen.js | 33 +- .../reference/extendsClauseAlreadySeen2.js | 33 +- .../baselines/reference/extendsJavaScript.js | 7 +- .../reference/extendsUntypedModule.js | 33 +- ...iority(moduleresolution=node16).errors.txt | 5 +- ...ingPriority(moduleresolution=node16).types | 4 +- ...rity(moduleresolution=nodenext).errors.txt | 5 +- ...gPriority(moduleresolution=nodenext).types | 4 +- tests/baselines/reference/externModule.js | 8 +- .../reference/externalModuleAssignToVar.js | 21 +- .../externalModuleExportingGenericClass.js | 9 +- .../externalModuleImmutableBindings.js | 34 +- .../reference/externalModuleQualification.js | 17 +- ...ernceResolutionOrderInImportDeclaration.js | 2 +- .../reference/externalModuleResolution.js | 2 +- .../reference/externalModuleResolution2.js | 2 +- .../externalModuleWithoutCompilerFlag1.js | 3 +- tests/baselines/reference/fakeInfinity1.js | 5 +- tests/baselines/reference/fakeInfinity2.js | 9 +- tests/baselines/reference/fakeInfinity3.js | 11 +- ...allbackToBindingPatternForTypeInference.js | 25 +- tests/baselines/reference/fatArrowSelf.js | 29 +- .../baselines/reference/fatarrowfunctions.js | 37 +- .../reference/fatarrowfunctionsErrors.js | 30 +- ...rowfunctionsInFunctionParameterDefaults.js | 5 +- .../fatarrowfunctionsOptionalArgs.js | 303 +- .../fatarrowfunctionsOptionalArgsErrors1.js | 31 +- .../fatarrowfunctionsOptionalArgsErrors3.js | 8 +- .../fatarrowfunctionsOptionalArgsErrors4.js | 49 +- .../reference/fieldAndGetterWithSameName.js | 13 +- ...ilesEmittingIntoSameOutputWithOutOption.js | 7 +- .../fillInMissingTypeArgsOnConstructCalls.js | 7 +- .../reference/filterNamespace_import.js | 29 +- .../reference/firstMatchRegExpMatchArray.js | 6 +- .../fixCrashAliasLookupForDefauledImport.js | 6 +- .../fixingTypeParametersRepeatedly1.js | 4 +- .../fixingTypeParametersRepeatedly2.js | 4 +- .../fixingTypeParametersRepeatedly3.js | 4 +- .../flowControlTypeGuardThenSwitch.js | 6 +- tests/baselines/reference/flowInFinally1.js | 12 +- tests/baselines/reference/fluentClasses.js | 48 +- tests/baselines/reference/for-inStatements.js | 54 +- .../reference/for-inStatementsArray.js | 42 +- .../reference/for-inStatementsArrayErrors.js | 8 +- ...ntsDestructuring(target=es2015).errors.txt | 7 + ...nStatementsDestructuring(target=es2015).js | 7 + ...mentsDestructuring(target=es2015).symbols} | 0 ...atementsDestructuring(target=es2015).types | 11 + ...mentsDestructuring(target=es5).errors.txt} | 0 ...-inStatementsDestructuring(target=es5).js} | 0 ...tatementsDestructuring(target=es5).symbols | 7 + ...StatementsDestructuring(target=es5).types} | 0 .../for-inStatementsDestructuring2.js | 2 +- .../for-inStatementsDestructuring4.js | 2 +- .../reference/for-inStatementsInvalid.js | 47 +- .../reference/forInStrictNullChecksNoError.js | 2 +- .../forLoopEndingMultilineComments.js | 8 +- ...ructuringDoesNotElideFollowingStatement.js | 7 +- .../reference/forOfStringConstituents.js | 4 +- .../reference/forOfTransformsExpression.js | 5 +- tests/baselines/reference/forStatements.js | 25 +- .../forStatementsMultipleInvalidDecl.js | 47 +- .../forStatementsMultipleValidDecl.js | 2 +- tests/baselines/reference/forgottenNew.js | 7 +- .../reference/forwardRefInClassProperties.js | 19 +- ...rwardRefInTypeDeclaration(strict=false).js | 21 +- ...orwardRefInTypeDeclaration(strict=true).js | 21 +- .../reference/freshLiteralInference.js | 12 +- .../freshLiteralTypesInIntersections.js | 2 +- tests/baselines/reference/funClodule.js | 7 +- tests/baselines/reference/funcdecl.js | 17 +- .../functionAndPropertyNameConflict.js | 17 +- .../reference/functionArgShadowing.js | 25 +- ...ignabilityWithArrayLike01(strict=false).js | 2 +- ...signabilityWithArrayLike01(strict=true).js | 2 +- .../baselines/reference/functionAssignment.js | 4 +- tests/baselines/reference/functionCall10.js | 7 +- tests/baselines/reference/functionCall13.js | 7 +- tests/baselines/reference/functionCall14.js | 7 +- tests/baselines/reference/functionCall15.js | 7 +- tests/baselines/reference/functionCall16.js | 7 +- tests/baselines/reference/functionCall17.js | 7 +- tests/baselines/reference/functionCall5.js | 7 +- tests/baselines/reference/functionCall7.js | 7 +- .../functionConstraintSatisfaction.js | 24 +- .../functionConstraintSatisfaction2.js | 24 +- .../functionConstraintSatisfaction3.js | 20 +- ...ctionExpressionAndLambdaMatchesFunction.js | 9 +- .../functionExpressionContextualTyping1.js | 46 +- .../functionExpressionContextualTyping2.js | 2 +- .../functionExpressionContextualTyping3.js | 2 +- .../functionExpressionInWithBlock.js | 3 +- ...ementationErrors(target=es2015).errors.txt | 88 + ...tionImplementationErrors(target=es2015).js | 148 + ...mplementationErrors(target=es2015).symbols | 151 + ...nImplementationErrors(target=es2015).types | 275 + ...plementationErrors(target=es5).errors.txt} | 0 ...nctionImplementationErrors(target=es5).js} | 0 ...nImplementationErrors(target=es5).symbols} | 0 ...ionImplementationErrors(target=es5).types} | 0 .../reference/functionImplementations.js | 68 +- ...meterInitializer(target=es2015).errors.txt | 34 + ...keInParameterInitializer(target=es2015).js | 44 + ...arameterInitializer(target=es2015).symbols | 40 + ...nParameterInitializer(target=es2015).types | 78 + ...LikeInParameterInitializer(target=es5).js} | 0 ...nParameterInitializer(target=es5).symbols} | 0 ...eInParameterInitializer(target=es5).types} | 0 tests/baselines/reference/functionLiteral.js | 4 +- .../reference/functionLiteralForOverloads.js | 8 +- .../reference/functionLiteralForOverloads2.js | 16 +- .../reference/functionOverloadAmbiguity1.js | 4 +- .../reference/functionOverloadErrors.js | 11 +- .../reference/functionOverloads43.js | 3 +- .../reference/functionOverloads44.js | 6 +- .../reference/functionOverloads45.js | 6 +- .../baselines/reference/functionOverloads5.js | 9 +- .../baselines/reference/functionOverloads6.js | 9 +- .../baselines/reference/functionOverloads7.js | 13 +- .../reference/functionOverloadsOutOfOrder.js | 20 +- ...tionOverloadsRecursiveGenericReturnType.js | 20 +- .../functionParameterArityMismatch.js | 11 +- .../reference/functionSubtypingOfVarArgs.js | 39 +- .../reference/functionSubtypingOfVarArgs2.js | 39 +- .../functionTypeArgumentAssignmentCompat.js | 2 +- ...nWithAnyReturnTypeAndNoReturnExpression.js | 4 +- ...onWithDefaultParameterWithNoStatements1.js | 4 +- ...nWithDefaultParameterWithNoStatements10.js | 7 +- ...nWithDefaultParameterWithNoStatements11.js | 7 +- ...nWithDefaultParameterWithNoStatements12.js | 7 +- ...nWithDefaultParameterWithNoStatements13.js | 7 +- ...nWithDefaultParameterWithNoStatements14.js | 7 +- ...nWithDefaultParameterWithNoStatements15.js | 7 +- ...nWithDefaultParameterWithNoStatements16.js | 7 +- ...onWithDefaultParameterWithNoStatements2.js | 3 +- ...onWithDefaultParameterWithNoStatements3.js | 7 +- ...onWithDefaultParameterWithNoStatements4.js | 7 +- ...onWithDefaultParameterWithNoStatements5.js | 7 +- ...onWithDefaultParameterWithNoStatements6.js | 7 +- ...onWithDefaultParameterWithNoStatements7.js | 7 +- ...onWithDefaultParameterWithNoStatements8.js | 7 +- ...onWithDefaultParameterWithNoStatements9.js | 7 +- .../functionWithMultipleReturnStatements2.js | 8 +- .../reference/functionWithSameNameAsField.js | 11 +- ...tionWithUseStrictAndSimpleParameterList.js | 50 +- .../reference/functionsInClassExpressions.js | 14 +- tests/baselines/reference/fuzzy.js | 19 +- .../reference/generatedContextualTyping.js | 1152 ++- .../generativeRecursionWithTypeOf.js | 9 +- tests/baselines/reference/generic.js | 22 +- tests/baselines/reference/genericArray1.js | 2 +- .../reference/genericArrayExtenstions.js | 3 +- .../genericArrayWithoutTypeAnnotation.js | 9 +- .../genericAssignmentCompatWithInterfaces1.js | 9 +- .../genericBaseClassLiteralProperty.js | 35 +- .../genericBaseClassLiteralProperty2.js | 42 +- .../genericCallTypeArgumentInference.js | 39 +- ...allWithConstraintsTypeArgumentInference.js | 79 +- .../genericCallWithFixedArguments.js | 18 +- .../genericCallWithFunctionTypedArguments.js | 22 +- .../genericCallWithFunctionTypedArguments4.js | 14 +- .../genericCallWithFunctionTypedArguments5.js | 12 +- ...enericCallWithGenericSignatureArguments.js | 22 +- ...nericCallWithGenericSignatureArguments2.js | 28 +- ...nericCallWithGenericSignatureArguments3.js | 24 +- .../genericCallWithObjectTypeArgs.js | 21 +- .../genericCallWithObjectTypeArgs2.js | 42 +- ...ricCallWithObjectTypeArgsAndConstraints.js | 21 +- ...icCallWithObjectTypeArgsAndConstraints2.js | 37 +- ...icCallWithObjectTypeArgsAndConstraints3.js | 46 +- ...icCallWithObjectTypeArgsAndConstraints4.js | 20 +- ...icCallWithObjectTypeArgsAndConstraints5.js | 18 +- ...icCallWithObjectTypeArgsAndInitializers.js | 30 +- ...allWithOverloadedFunctionTypedArguments.js | 16 +- ...llWithOverloadedFunctionTypedArguments2.js | 8 +- ...lWithinOwnBodyCastTypeParameterIdentity.js | 28 +- .../genericCallbacksAndClassHierarchy.js | 53 +- .../reference/genericChainedCalls.js | 12 +- .../genericClassExpressionInFunction.js | 85 +- ...entingGenericInterfaceFromAnotherModule.js | 7 +- ...sInheritsConstructorFromNonGenericClass.js | 41 +- ...cClassPropertyInheritanceSpecialization.js | 44 +- .../reference/genericClassStaticMethod.js | 35 +- ...icClassWithFunctionTypedMemberArguments.js | 79 +- ...icClassWithObjectTypeArgsAndConstraints.js | 43 +- .../genericClassWithStaticFactory.js | 70 +- ...nericClassWithStaticsUsingTypeArguments.js | 19 +- tests/baselines/reference/genericClasses0.js | 7 +- tests/baselines/reference/genericClasses1.js | 7 +- tests/baselines/reference/genericClasses2.js | 7 +- tests/baselines/reference/genericClasses3.js | 31 +- tests/baselines/reference/genericClasses4.js | 15 +- .../reference/genericClassesInModule.js | 14 +- .../reference/genericClassesInModule2.js | 18 +- .../reference/genericCloduleInModule.js | 11 +- .../reference/genericCloduleInModule2.js | 13 +- .../reference/genericCloneReturnTypes.js | 11 +- .../reference/genericCloneReturnTypes2.js | 11 +- .../reference/genericCombinators2.js | 4 +- .../baselines/reference/genericConstraint1.js | 11 +- .../baselines/reference/genericConstraint2.js | 11 +- .../reference/genericConstraintDeclaration.js | 9 +- ...genericConstraintOnExtendedBuiltinTypes.js | 32 +- ...enericConstraintOnExtendedBuiltinTypes2.js | 32 +- .../reference/genericContextualTypes1.js | 36 +- .../genericContextualTypingSpecialization.js | 2 +- tests/baselines/reference/genericDefaults.js | 102 +- .../genericDerivedTypeWithSpecializedBase.js | 31 +- .../genericDerivedTypeWithSpecializedBase2.js | 31 +- .../genericFunctionHasFreshTypeArgs.js | 2 +- .../reference/genericFunctionInference2.js | 16 +- .../reference/genericFunctionParameters.js | 8 +- .../genericFunctionTypedArgumentsAreFixed.js | 2 +- .../baselines/reference/genericFunctions2.js | 2 +- ...genericFunctionsAndConditionalInference.js | 18 +- .../genericFunctionsNotContextSensitive.js | 4 +- ...genericFunctionsWithOptionalParameters3.js | 17 +- .../reference/genericFunduleInModule2.js | 2 +- tests/baselines/reference/genericGetter.js | 15 +- tests/baselines/reference/genericGetter2.js | 22 +- tests/baselines/reference/genericGetter3.js | 22 +- .../baselines/reference/genericImplements.js | 41 +- ...edAccessMethodIntersectionCanBeAccessed.js | 12 +- ...edAccessVarianceComparisonResultCorrect.js | 14 +- .../baselines/reference/genericInference1.js | 2 +- .../genericInferenceDefaultTypeParameter.js | 6 +- ...icInferenceDefaultTypeParameterJsxReact.js | 11 +- .../genericInheritedDefaultConstructors.js | 31 +- .../baselines/reference/genericInstanceOf.js | 11 +- .../genericInterfaceImplementation.js | 15 +- .../reference/genericInterfaceTypeCall.js | 4 +- .../genericInterfacesWithoutTypeArguments.js | 7 +- .../reference/genericIsNeverEmptyObject.js | 19 +- .../genericLambaArgWithoutTypeArguments.js | 2 +- .../reference/genericMappedTypeAsClause.js | 16 +- .../reference/genericMemberFunction.js | 41 +- ...ricMergedDeclarationUsingTypeParameter2.js | 8 +- .../genericObjectCreationWithoutTypeArgs.js | 7 +- .../reference/genericObjectLitReturnType.js | 9 +- .../genericObjectSpreadResultInSwitch.js | 10 +- .../reference/genericOfACloduleType1.js | 25 +- .../reference/genericOfACloduleType2.js | 25 +- .../reference/genericOverloadSignatures.js | 7 +- .../genericParameterAssignability1.js | 2 +- .../reference/genericPrototypeProperty.js | 9 +- .../reference/genericPrototypeProperty2.js | 47 +- .../reference/genericPrototypeProperty3.js | 47 +- ...ericRecursiveImplicitConstructorErrors2.js | 41 +- ...ericRecursiveImplicitConstructorErrors3.js | 52 +- tests/baselines/reference/genericReduce.js | 8 +- tests/baselines/reference/genericRestArgs.js | 8 +- tests/baselines/reference/genericRestArity.js | 4 +- .../reference/genericRestArityStrict.js | 4 +- .../reference/genericRestParameters1.js | 129 +- .../reference/genericRestParameters2.js | 57 +- .../reference/genericRestParameters3.js | 33 +- tests/baselines/reference/genericRestTypes.js | 24 +- .../reference/genericReturnTypeFromGetter1.js | 14 +- .../genericReversingTypeParameters.js | 11 +- .../genericReversingTypeParameters2.js | 11 +- .../reference/genericSpecializations1.js | 27 +- .../reference/genericSpecializations2.js | 36 +- .../reference/genericSpecializations3.js | 36 +- .../reference/genericStaticAnyTypeFunction.js | 17 +- .../genericTemplateOverloadResolution.js | 6 +- .../baselines/reference/genericTypeAliases.js | 2 +- .../reference/genericTypeAssertions1.js | 9 +- .../reference/genericTypeAssertions2.js | 37 +- .../reference/genericTypeAssertions3.js | 4 +- .../reference/genericTypeAssertions4.js | 46 +- .../reference/genericTypeAssertions6.js | 37 +- .../reference/genericTypeConstraints.js | 48 +- .../genericTypeParameterEquivalence2.js | 2 +- ...genericTypeReferenceWithoutTypeArgument.js | 56 +- ...enericTypeReferenceWithoutTypeArgument2.js | 35 +- .../genericTypeReferencesRequireTypeArgs.js | 9 +- .../genericTypeUsedWithoutTypeArguments1.js | 7 +- .../genericTypeWithCallableMembers.js | 11 +- .../genericTypeWithNonGenericBaseMisMatch.js | 9 +- .../reference/genericWithCallSignatures1.js | 11 +- .../genericWithIndexerOfTypeParameterType1.js | 11 +- .../genericWithIndexerOfTypeParameterType2.js | 49 +- ...ithNoConstraintComparableWithCurlyCurly.js | 12 +- .../genericWithOpenTypeParameters1.js | 17 +- tests/baselines/reference/generics3.js | 7 +- tests/baselines/reference/generics4.js | 7 +- tests/baselines/reference/generics4NoError.js | 7 +- .../genericsAndHigherOrderFunctions.js | 12 +- .../genericsWithDuplicateTypeParameters1.js | 11 +- .../genericsWithoutTypeParameters1.js | 25 +- ...hImpliedReturnTypeAndFunctionClassMerge.js | 17 +- .../reference/getAndSetAsMemberNames.js | 47 +- .../reference/getAndSetNotIdenticalType.js | 17 +- .../reference/getAndSetNotIdenticalType2.js | 26 +- .../reference/getAndSetNotIdenticalType3.js | 26 +- .../reference/getParameterNameAtPosition.js | 2 +- .../reference/getterMissingReturnError.js | 13 +- .../getterThatThrowsShouldNotNeedReturn.js | 19 +- .../gettersAndSettersAccessibility.js | 16 +- .../reference/gettersAndSettersErrors.js | 43 +- .../reference/gettersAndSettersTypesAgree.js | 27 +- tests/baselines/reference/giant.js | 438 +- .../globalAugmentationModuleResolution.js | 3 +- .../globalFunctionAugmentationOverload.js | 4 +- .../reference/globalIsContextualKeyword.js | 11 +- .../reference/globalThisAmbientModules.js | 2 +- .../globalThisBlockscopedProperties.js | 4 +- .../baselines/reference/globalThisCapture.js | 3 +- .../reference/globalThisDeclarationEmit.js | 12 +- .../reference/globalThisDeclarationEmit2.js | 12 +- .../reference/globalThisDeclarationEmit3.js | 12 +- .../reference/globalThisReadonlyProperties.js | 2 +- .../reference/grammarAmbiguities1.js | 18 +- tests/baselines/reference/grammarErrors.js | 10 +- .../heterogeneousArrayAndOverloads.js | 13 +- .../reference/heterogeneousArrayLiterals.js | 80 +- .../higherOrderMappedIndexLookupInference.js | 2 +- ...DeclarationOutputGetsTruncatedWithError.js | 5 +- ...icalGenericConditionalsWithInferRelated.js | 18 +- .../identicalTypesNoDifferByCheckOrder.js | 18 +- .../identifierStartAfterNumericLiteral.js | 2 +- .../reference/ifDoWhileStatements.js | 58 +- .../reference/ignoredJsxAttributes.js | 43 +- .../illegalModifiersOnClassElements.js | 7 +- .../illegalSuperCallsInConstructor.js | 42 +- .../implementClausePrecedingExtends.js | 31 +- .../implementGenericWithMismatchedTypes.js | 20 +- .../implementInterfaceAnyMemberWithVoid.js | 9 +- .../implementPublicPropertyAsPrivate.js | 7 +- ...ngAnInterfaceExtendingClassWithPrivates.js | 35 +- ...gAnInterfaceExtendingClassWithPrivates2.js | 133 +- ...AnInterfaceExtendingClassWithProtecteds.js | 86 +- tests/baselines/reference/implementsClause.js | 23 +- .../reference/implementsClauseAlreadySeen.js | 16 +- .../reference/implementsInClassExpression.js | 9 +- .../implementsIncorrectlyNoAssertion.js | 7 +- .../implicitAnyAnyReturningFunction.js | 15 +- .../reference/implicitAnyCastedValue.js | 52 +- ...AnyDeclareFunctionExprWithoutFormalType.js | 12 +- ...icitAnyDeclareFunctionWithoutFormalType.js | 17 +- .../implicitAnyDeclareMemberWithoutType2.js | 9 +- ...plicitAnyDeclareTypePropertyWithoutType.js | 8 +- ...tAnyFunctionInvocationWithAnyArguements.js | 9 +- ...mplicitAnyFunctionReturnNullOrUndefined.js | 15 +- .../reference/implicitAnyGenerics.js | 15 +- ...itAnyGetAndSetAccessorWithAnyReturnType.js | 53 +- .../baselines/reference/implicitAnyInCatch.js | 11 +- .../reference/implicitAnyWidenToAny.js | 7 +- .../reference/implicitConstParameters.js | 18 +- .../reference/implicitIndexSignatures.js | 64 +- ...impliedNodeFormatEmit1(module=commonjs).js | 6 +- .../impliedNodeFormatEmit1(module=esnext).js | 10 +- ...impliedNodeFormatEmit1(module=preserve).js | 12 +- ...impliedNodeFormatEmit2(module=commonjs).js | 6 +- .../impliedNodeFormatEmit2(module=esnext).js | 10 +- ...impliedNodeFormatEmit2(module=preserve).js | 12 +- ...impliedNodeFormatEmit3(module=commonjs).js | 6 +- .../impliedNodeFormatEmit3(module=esnext).js | 10 +- ...impliedNodeFormatEmit3(module=preserve).js | 12 +- ...impliedNodeFormatEmit4(module=commonjs).js | 6 +- .../impliedNodeFormatEmit4(module=esnext).js | 10 +- ...impliedNodeFormatEmit4(module=preserve).js | 12 +- ...sAnExternalModuleInsideAnInternalModule.js | 2 +- .../reference/importAliasFromNamespace.js | 7 +- .../reference/importAliasIdentifiers.js | 14 +- .../importAliasInModuleAugmentation.js | 7 +- .../reference/importAliasWithDottedName.js | 2 +- .../importAndVariableDeclarationConflict2.js | 11 +- .../baselines/reference/importAsBaseClass.js | 35 +- tests/baselines/reference/importAssertion4.js | 3 +- tests/baselines/reference/importAssertion5.js | 3 +- .../baselines/reference/importAttributes4.js | 3 +- .../baselines/reference/importAttributes5.js | 3 +- .../baselines/reference/importAttributes7.js | 39 +- ...portCallExpressionNoModuleKindSpecified.js | 73 +- .../reference/importClause_default.js | 17 +- .../reference/importClause_namedImports.js | 18 +- .../reference/importClause_namespaceImport.js | 34 +- tests/baselines/reference/importDecl.js | 40 +- tests/baselines/reference/importDeclTypes.js | 3 +- .../importDeclWithDeclareModifier.js | 13 +- .../importDeclarationUsedAsTypeQuery.js | 7 +- .../reference/importDefaultNamedType.js | 13 +- .../reference/importDefaultNamedType2.js | 13 +- .../reference/importDefaultNamedType3.js | 14 +- .../reference/importElisionConstEnumMerge1.js | 11 +- .../baselines/reference/importElisionEnum.js | 10 +- .../importEmptyFromModuleNotExisted.js | 3 +- tests/baselines/reference/importEquals1.js | 9 +- tests/baselines/reference/importEquals2.js | 11 +- tests/baselines/reference/importEquals3.js | 56 +- .../reference/importEqualsDeclaration.js | 18 +- .../reference/importEqualsError45874.js | 2 +- ...SJavaScript(verbatimmodulesyntax=false).js | 17 +- ...JSJavaScript(verbatimmodulesyntax=true).js | 17 +- .../reference/importImportOnlyModule.js | 9 +- .../reference/importInTypePosition.js | 7 +- .../reference/importNonExportedMember.js | 8 +- .../reference/importNonExportedMember1.js | 7 +- .../reference/importNonExportedMember2.js | 6 +- .../reference/importNonExportedMember3.js | 6 +- .../reference/importNonExportedMember4.js | 7 +- .../reference/importNonExportedMember5.js | 7 +- .../reference/importNonExportedMember6.js | 7 +- .../reference/importNonExportedMember7.js | 7 +- .../reference/importNonExternalModule.js | 2 +- .../reference/importNotElidedWhenNotFound.js | 48 +- .../reference/importPropertyFromMappedType.js | 3 +- .../reference/importShadowsGlobalName.js | 31 +- ...mportShouldNotBeElidedInDeclarationEmit.js | 7 +- .../baselines/reference/importSpecifiers1.js | 6 +- tests/baselines/reference/importStatements.js | 7 +- .../baselines/reference/importTsBeforeDTs.js | 2 +- .../baselines/reference/importTypeAmbient.js | 14 +- .../reference/importTypeAmbientMissing.js | 2 +- .../reference/importTypeAmdBundleRewrite.js | 4 +- ...importTypeGenericArrowTypeParenthesized.js | 13 +- .../reference/importTypeGenericTypes.js | 16 +- tests/baselines/reference/importTypeLocal.js | 16 +- .../reference/importTypeLocalMissing.js | 16 +- ...ithUnparenthesizedGenericFunctionParsed.js | 3 +- .../reference/importUsedAsTypeWithErrors.js | 8 +- .../reference/importUsedInExtendsList1.js | 33 +- .../importUsedInGenericImportResolves.js | 5 +- .../reference/importWithTrailingSlash.js | 34 +- .../importWithTrailingSlash.trace.json | 8 +- .../importWithTrailingSlash_noResolve.js | 3 +- ...portWithTrailingSlash_noResolve.trace.json | 2 +- .../reference/importWithTypeArguments.js | 2 +- .../import_reference-exported-alias.js | 13 +- .../import_reference-to-type-alias.js | 13 +- ...ar-referencing-an-imported-module-alias.js | 7 +- ...rtedAliasedConditionalTypeInstantiation.js | 3 +- .../importedAliasesInTypePositions.js | 16 +- ...numMemberMergedWithExportedAliasIsError.js | 10 +- .../reference/importedModuleAddToGlobal.js | 7 +- .../reference/importedModuleClassNameClash.js | 7 +- .../reference/importsImplicitlyReadonly.js | 8 +- .../reference/importsNotUsedAsValues_error.js | 31 +- .../inDoesNotOperateOnPrimitiveTypes.js | 4 +- .../reference/inKeywordAndIntersection.js | 18 +- .../reference/inOperatorWithGeneric.js | 11 +- .../inOperatorWithInvalidOperands.js | 7 +- ...atibleAssignmentOfIdenticallyNamedTypes.js | 11 +- .../baselines/reference/incompatibleTypes.js | 36 +- .../reference/incompleteObjectLiteral1.js | 2 +- .../reference/incorrectClassOverloadChain.js | 7 +- ...mberOfTypeArgumentsDuringErrorReporting.js | 2 +- .../reference/incrementOnNullAssertion.js | 8 +- .../reference/incrementOnTypeParameter.js | 11 +- .../incrementOperatorWithAnyOtherType.js | 7 +- ...eratorWithAnyOtherTypeInvalidOperations.js | 13 +- .../incrementOperatorWithNumberType.js | 7 +- ...OperatorWithNumberTypeInvalidOperations.js | 13 +- ...ementOperatorWithUnsupportedBooleanType.js | 13 +- ...rementOperatorWithUnsupportedStringType.js | 13 +- .../baselines/reference/incrementalConfig.js | 2 +- .../baselines/reference/incrementalInvalid.js | 2 +- tests/baselines/reference/incrementalOut.js | 2 +- .../reference/incrementalTsBuildInfoFile.js | 2 +- .../baselines/reference/indexClassByNumber.js | 7 +- tests/baselines/reference/indexIntoEnum.js | 2 +- .../indexSignatureMustHaveTypeAnnotation.js | 14 +- .../reference/indexSignatureTypeCheck2.js | 7 +- ...indexSignatureWithAccessibilityModifier.js | 7 +- .../indexSignatureWithInitializer.js | 7 +- .../indexSignatureWithInitializer1.js | 7 +- .../indexSignatureWithTrailingComma.js | 7 +- .../indexSignatureWithoutTypeAnnotation1.js | 7 +- tests/baselines/reference/indexTypeCheck.js | 11 +- .../indexTypeNoSubstitutionTemplateLiteral.js | 2 +- .../reference/indexWithUndefinedAndNull.js | 8 +- ...dexWithUndefinedAndNullStrictNullChecks.js | 8 +- .../reference/indexWithoutParamType2.js | 7 +- .../reference/indexedAccessCanBeHighOrder.js | 6 +- ...eyofNestedSimplifiedSubstituteUnwrapped.js | 31 +- .../reference/indexedAccessNormalization.js | 8 +- ...dAccessPrivateMemberOfGenericConstraint.js | 14 +- .../reference/indexedAccessRelation.js | 47 +- .../indexedAccessRetainsIndexSignature.js | 5 +- .../reference/indexedAccessTypeConstraints.js | 53 +- tests/baselines/reference/indexer2A.js | 14 +- tests/baselines/reference/indexerA.js | 14 +- .../baselines/reference/indexerAsOptional.js | 7 +- .../reference/indexerConstraints2.js | 79 +- .../indexerReturningTypeParameter1.js | 11 +- .../indexerSignatureWithRestParam.js | 7 +- .../reference/indexersInClassType.js | 11 +- .../reference/indexingTypesWithNever.js | 8 +- .../indirectDiscriminantAndExcessProperty.js | 9 +- .../reference/indirectSelfReference.js | 33 +- .../reference/indirectSelfReferenceGeneric.js | 33 +- .../indirectTypeParameterReferences.js | 16 +- .../indirectUniqueSymbolDeclarationEmit.js | 12 +- .../inferConditionalConstraintMappedMember.js | 3 +- .../reference/inferFromBindingPattern.js | 20 +- .../inferFromGenericFunctionReturnTypes1.js | 49 +- .../inferFromGenericFunctionReturnTypes2.js | 69 +- ...inferObjectTypeFromStringLiteralToKeyof.js | 4 +- ...inferParameterWithMethodCallInitializer.js | 31 +- .../inferRestArgumentsMappedTuple.js | 4 +- .../reference/inferSetterParamType.js | 38 +- ...nferStringLiteralUnionForBindingElement.js | 20 +- .../reference/inferTupleFromBindingPattern.js | 2 +- ...eArgumentsInSignatureWithRestParameters.js | 21 +- ...rTypeConstraintInstantiationCircularity.js | 3 +- .../inferTypeParameterConstraints.js | 39 +- .../reference/inferTypePredicates.js | 187 +- tests/baselines/reference/inferTypes1.js | 28 +- tests/baselines/reference/inferTypes2.js | 12 +- .../inferenceAndSelfReferentialConstraint.js | 10 +- .../inferenceDoesNotAddUndefinedOrNull.js | 16 +- ...mpareAgainstUninstantiatedTypeParameter.js | 29 +- .../inferenceFromParameterlessLambda.js | 2 +- ...enceOfNullableObjectTypesWithCommonBase.js | 2 +- .../reference/inferenceOptionalProperties.js | 4 +- .../inferenceOptionalPropertiesStrict.js | 4 +- .../inferenceShouldFailOnEvolvingArrays.js | 4 +- ...renceUnionOfObjectsMappedContextualType.js | 4 +- .../inferentialTypingObjectLiteralMethod1.js | 2 +- .../inferentialTypingObjectLiteralMethod2.js | 2 +- .../inferentialTypingUsingApparentType1.js | 2 +- .../inferentialTypingUsingApparentType2.js | 2 +- .../inferentialTypingUsingApparentType3.js | 27 +- ...inferentialTypingWithFunctionTypeNested.js | 2 +- ...ypingWithFunctionTypeSyntacticScenarios.js | 2 +- .../inferredIndexerOnNamespaceImport.js | 44 +- .../inferredNonidentifierTypesGetQuotes.js | 3 +- .../reference/inferredRestTypeFixedOnce.js | 4 +- .../inferredReturnTypeIncorrectReuse1.js | 7 +- .../inferrenceInfiniteLoopWithSubtyping.js | 3 +- .../reference/inferringAnyFunctionType1.js | 2 +- .../reference/inferringAnyFunctionType2.js | 2 +- .../reference/inferringAnyFunctionType3.js | 2 +- .../reference/inferringAnyFunctionType4.js | 2 +- .../reference/inferringAnyFunctionType5.js | 2 +- .../inferringClassMembersFromAssignments.js | 72 +- ...ReturnTypeFromConstructSignatureGeneric.js | 44 +- .../reference/infiniteConstraints.js | 11 +- .../reference/infinitelyExpandingOverloads.js | 31 +- .../infinitelyExpandingTypesNonGenericBase.js | 38 +- .../inheritFromGenericTypeParameter.js | 24 +- ...mePrivatePropertiesFromDifferentOrigins.js | 14 +- ...SameNamePrivatePropertiesFromSameOrigin.js | 40 +- ...meNamePropertiesWithDifferentVisibility.js | 14 +- tests/baselines/reference/inheritance.js | 85 +- tests/baselines/reference/inheritance1.js | 80 +- ...itanceGrandParentPrivateMemberCollision.js | 44 +- ...tPrivateMemberCollisionWithPublicMember.js | 44 +- ...tPublicMemberCollisionWithPrivateMember.js | 44 +- ...ritanceMemberAccessorOverridingAccessor.js | 55 +- ...ritanceMemberAccessorOverridingProperty.js | 41 +- ...inheritanceMemberFuncOverridingAccessor.js | 45 +- .../inheritanceMemberFuncOverridingMethod.js | 37 +- ...inheritanceMemberFuncOverridingProperty.js | 35 +- ...ritanceMemberPropertyOverridingAccessor.js | 43 +- ...heritanceMemberPropertyOverridingMethod.js | 33 +- ...ritanceMemberPropertyOverridingProperty.js | 31 +- .../inheritanceOfGenericConstructorMethod1.js | 31 +- .../inheritanceOfGenericConstructorMethod2.js | 47 +- ...ritanceStaticAccessorOverridingAccessor.js | 55 +- ...heritanceStaticAccessorOverridingMethod.js | 45 +- ...ritanceStaticAccessorOverridingProperty.js | 41 +- ...inheritanceStaticFuncOverridingAccessor.js | 45 +- ...eStaticFuncOverridingAccessorOfFuncType.js | 43 +- .../inheritanceStaticFuncOverridingMethod.js | 37 +- ...inheritanceStaticFuncOverridingProperty.js | 35 +- ...eStaticFuncOverridingPropertyOfFuncType.js | 35 +- ...taticFunctionOverridingInstanceProperty.js | 35 +- .../inheritanceStaticMembersCompatible.js | 31 +- .../inheritanceStaticMembersIncompatible.js | 31 +- ...ritanceStaticPropertyOverridingAccessor.js | 43 +- ...heritanceStaticPropertyOverridingMethod.js | 33 +- ...ritanceStaticPropertyOverridingProperty.js | 31 +- ...eritedConstructorPropertyContextualType.js | 28 +- .../inheritedConstructorWithRestParams.js | 36 +- .../inheritedConstructorWithRestParams2.js | 49 +- ...nheritedFunctionAssignmentCompatibility.js | 2 +- .../inheritedModuleMembersForClodule.js | 46 +- ...initializedDestructuringAssignmentTypes.js | 2 +- ...initializerReferencingConstructorLocals.js | 14 +- ...ializerReferencingConstructorParameters.js | 28 +- .../initializerWithThisPropertyAccess.js | 59 +- ...nlineConditionalHasSimilarAssignability.js | 8 +- .../reference/inlineJsxAndJsxFragPragma.js | 54 +- ...ndJsxFragPragmaOverridesCompilerOptions.js | 34 +- .../reference/inlineJsxFactoryDeclarations.js | 87 +- .../inlineJsxFactoryDeclarationsLocalTypes.js | 139 +- ...inlineJsxFactoryLocalTypeGlobalFallback.js | 19 +- ...inlineJsxFactoryOverridesCompilerOption.js | 12 +- .../inlineJsxFactoryWithFragmentIsError.js | 45 +- ...inlineMappedTypeModifierDeclarationEmit.js | 27 +- ...dAliasAssignableToConstraintSameAsAlias.js | 11 +- tests/baselines/reference/innerAliases.js | 20 +- tests/baselines/reference/innerAliases2.js | 9 +- .../reference/innerBoundLambdaEmit.js | 9 +- tests/baselines/reference/innerExtern.js | 9 +- .../innerTypeParameterShadowingOuterOne2.js | 28 +- .../instanceAndStaticDeclarations1.js | 15 +- .../instanceMemberAssignsToClassPrototype.js | 21 +- .../reference/instanceMemberInitialization.js | 14 +- .../instanceMemberWithComputedPropertyName.js | 11 +- .../reference/instanceOfAssignability.js | 77 +- .../reference/instanceOfInExternalModules.js | 7 +- ...nstancePropertiesInheritedIntoClassType.js | 75 +- .../reference/instancePropertyInClassType.js | 42 +- .../reference/instanceSubtypeCheck2.js | 31 +- ...stanceofOperator(target=es2015).errors.txt | 42 + .../instanceofOperator(target=es2015).js | 46 + ...instanceofOperator(target=es2015).symbols} | 0 ...> instanceofOperator(target=es2015).types} | 0 ...instanceofOperator(target=es5).errors.txt} | 0 ...r.js => instanceofOperator(target=es5).js} | 0 .../instanceofOperator(target=es5).symbols | 42 + .../instanceofOperator(target=es5).types | 68 + .../instanceofOperatorWithInvalidOperands.js | 9 +- .../instanceofOperatorWithLHSIsObject.js | 7 +- .../instanceofTypeAliasToGenericClass.js | 3 +- ...nstanceofWithStructurallyIdenticalTypes.js | 68 +- ...instantiateContextuallyTypedGenericThis.js | 4 +- .../reference/instantiateCrossFileMerge.js | 2 +- ...ericClassWithWrongNumberOfTypeArguments.js | 14 +- ...ntiateGenericClassWithZeroTypeArguments.js | 14 +- ...tantiateNonGenericTypeWithTypeArguments.js | 7 +- .../instantiatedBaseTypeConstraints.js | 9 +- .../baselines/reference/instantiatedModule.js | 13 +- .../instantiatedReturnTypeContravariance.js | 37 +- .../reference/instantiatedTypeAliasDisplay.js | 4 +- .../instantiationExpressionErrorNoCrash.js | 14 +- .../instantiationExpressionErrors.js | 105 +- .../reference/instantiationExpressions.js | 70 +- tests/baselines/reference/intTypeCheck.js | 9 +- .../interMixingModulesInterfaces0.js | 2 +- .../interMixingModulesInterfaces1.js | 2 +- .../interMixingModulesInterfaces2.js | 2 +- .../interMixingModulesInterfaces3.js | 2 +- .../interMixingModulesInterfaces4.js | 2 +- .../interMixingModulesInterfaces5.js | 2 +- .../reference/interfaceAssignmentCompat.js | 2 +- .../reference/interfaceClassMerging.js | 37 +- .../reference/interfaceClassMerging2.js | 37 +- .../reference/interfaceContextualType.js | 15 +- .../reference/interfaceDeclaration1.js | 7 +- .../reference/interfaceDeclaration2.js | 7 +- .../reference/interfaceDeclaration3.js | 73 +- .../reference/interfaceDeclaration4.js | 28 +- .../reference/interfaceDeclaration5.js | 7 +- .../reference/interfaceExtendingClass.js | 17 +- .../reference/interfaceExtendingClass2.js | 17 +- .../interfaceExtendingClassWithPrivates.js | 7 +- .../interfaceExtendingClassWithPrivates2.js | 21 +- .../interfaceExtendingClassWithProtecteds.js | 7 +- .../interfaceExtendingClassWithProtecteds2.js | 21 +- .../interfaceExtendingOptionalChain.js | 7 +- .../reference/interfaceExtendsClass1.js | 62 +- .../interfaceExtendsClassWithPrivate1.js | 39 +- .../interfaceExtendsClassWithPrivate2.js | 64 +- .../interfaceExtendsObjectIntersection.js | 114 +- ...nterfaceExtendsObjectIntersectionErrors.js | 60 +- .../reference/interfaceImplementation1.js | 16 +- .../reference/interfaceImplementation2.js | 7 +- .../reference/interfaceImplementation3.js | 9 +- .../reference/interfaceImplementation4.js | 9 +- .../reference/interfaceImplementation5.js | 82 +- .../reference/interfaceImplementation6.js | 28 +- .../reference/interfaceImplementation7.js | 9 +- .../reference/interfaceImplementation8.js | 79 +- .../reference/interfaceInReopenedModule.js | 7 +- .../reference/interfaceInheritance.js | 7 +- ...terfaceMergeWithNonGenericTypeArguments.js | 37 +- ...UnconstrainedNoErrorIrrespectiveOfOrder.js | 6 +- .../interfacePropertiesWithSameName3.js | 14 +- .../baselines/reference/interfaceSubtyping.js | 9 +- .../interfaceWithMultipleDeclarations.js | 7 +- .../interfaceWithPropertyOfEveryType.js | 11 +- ...faceWithPropertyThatIsPrivateInBaseType.js | 14 +- ...aceWithPropertyThatIsPrivateInBaseType2.js | 18 +- tests/baselines/reference/interfacedecl.js | 7 +- .../interfacedeclWithIndexerErrors.js | 7 +- .../baselines/reference/internalAliasClass.js | 7 +- ...alAliasClassInsideLocalModuleWithExport.js | 13 +- ...liasClassInsideLocalModuleWithoutExport.js | 13 +- ...sideLocalModuleWithoutExportAccessError.js | 13 +- ...liasClassInsideTopLevelModuleWithExport.js | 11 +- ...sClassInsideTopLevelModuleWithoutExport.js | 11 +- .../baselines/reference/internalAliasEnum.js | 2 +- ...nalAliasEnumInsideLocalModuleWithExport.js | 2 +- ...AliasEnumInsideLocalModuleWithoutExport.js | 2 +- ...sideLocalModuleWithoutExportAccessError.js | 2 +- ...AliasEnumInsideTopLevelModuleWithExport.js | 2 +- ...asEnumInsideTopLevelModuleWithoutExport.js | 2 +- .../internalAliasInitializedModule.js | 9 +- ...alizedModuleInsideLocalModuleWithExport.js | 9 +- ...zedModuleInsideLocalModuleWithoutExport.js | 9 +- ...sideLocalModuleWithoutExportAccessError.js | 9 +- ...zedModuleInsideTopLevelModuleWithExport.js | 9 +- ...ModuleInsideTopLevelModuleWithoutExport.js | 9 +- ...leMergedWithClassNotReferencingInstance.js | 7 +- ...thClassNotReferencingInstanceNoConflict.js | 7 +- ...leMergedWithClassNotReferencingInstance.js | 7 +- ...thClassNotReferencingInstanceNoConflict.js | 7 +- .../reference/intersectionAsWeakTypeSource.js | 8 +- ...tersectionMemberOfUnionNarrowsCorrectly.js | 3 +- .../reference/intersectionNarrowing.js | 2 +- ...tionOfTypeVariableHasApparentSignatures.js | 4 +- .../intersectionOfUnionOfUnitTypes.js | 36 +- .../reference/intersectionPropertyCheck.js | 17 +- .../reference/intersectionReduction.js | 24 +- .../reference/intersectionReductionStrict.js | 14 +- .../intersectionSatisfiesConstraint.js | 6 +- .../reference/intersectionThisTypes.js | 2 +- .../reference/intersectionTypeInference1.js | 9 +- .../reference/intersectionTypeMembers.js | 4 +- .../intersectionTypeNormalization.js | 4 +- .../intersectionWithIndexSignatures.js | 2 +- .../intersectionWithUnionConstraint.js | 20 +- .../intersectionsAndOptionalProperties.js | 6 +- .../reference/intersectionsOfLargeUnions.js | 15 +- .../reference/intersectionsOfLargeUnions2.js | 15 +- .../intlDateTimeFormatRangeES2021.js | 2 +- .../reference/intraExpressionInferences.js | 166 +- tests/baselines/reference/intrinsicKeyword.js | 8 +- tests/baselines/reference/intrinsicTypes.js | 2 +- tests/baselines/reference/intrinsics.js | 14 +- .../reference/invalidAssignmentsToVoid.js | 7 +- ...aryIntegerLiteralAndOctalIntegerLiteral.js | 8 +- .../reference/invalidBooleanAssignments.js | 7 +- .../invalidContinueInDownlevelAsync.js | 48 +- .../invalidDoWhileBreakStatements.js | 2 +- .../invalidDoWhileContinueStatements.js | 2 +- .../reference/invalidForBreakStatements.js | 2 +- .../reference/invalidForContinueStatements.js | 2 +- .../reference/invalidForInBreakStatements.js | 2 +- .../invalidForInContinueStatements.js | 2 +- .../invalidImportAliasIdentifiers.js | 7 +- .../reference/invalidInstantiatedModule.js | 7 +- .../invalidModuleWithStatementsOfEveryKind.js | 144 +- .../invalidModuleWithVarStatements.js | 4 +- .../invalidMultipleVariableDeclarations.js | 47 +- .../reference/invalidNestedModules.js | 25 +- .../reference/invalidNumberAssignments.js | 7 +- .../invalidOptionalChainFromNewExpression.js | 9 +- .../reference/invalidReferenceSyntax1.js | 7 +- .../reference/invalidReturnStatements.js | 33 +- .../baselines/reference/invalidStaticField.js | 18 +- .../reference/invalidStringAssignments.js | 7 +- .../invalidSyntaxNamespaceImportWithAMD.js | 7 +- ...nvalidSyntaxNamespaceImportWithCommonjs.js | 9 +- .../invalidSyntaxNamespaceImportWithSystem.js | 7 +- ...nvalidThisEmitInContextualObjectLiteral.js | 14 +- tests/baselines/reference/invalidTypeNames.js | 7 +- .../reference/invalidTypeOfTarget.js | 6 +- .../reference/invalidUndefinedAssignments.js | 7 +- .../reference/invalidUndefinedValues.js | 9 +- .../reference/invalidVoidAssignments.js | 9 +- .../baselines/reference/invalidVoidValues.js | 9 +- .../reference/invalidWhileBreakStatements.js | 2 +- .../invalidWhileContinueStatements.js | 2 +- .../invariantGenericErrorElaboration.js | 4 +- ...invocationExpressionInFunctionParameter.js | 3 +- ...okingNonGenericMethodWithTypeArguments1.js | 7 +- ...okingNonGenericMethodWithTypeArguments2.js | 7 +- .../isolatedDeclarationsAddUndefined.js | 35 +- .../isolatedDeclarationsAddUndefined2.js | 44 +- .../reference/isolatedDeclarationsAllowJs.js | 4 +- ...isolatedDeclarationsRequiresDeclaration.js | 10 +- .../isolatedModulesExportDeclarationType.js | 24 +- ...ulesExportImportUninstantiatedNamespace.js | 6 +- ...isolatedModulesGlobalNamespacesAndEnums.js | 9 +- .../isolatedModulesImportConstEnum.js | 2 +- .../isolatedModulesImportConstEnumTypeOnly.js | 10 +- .../reference/isolatedModulesReExportType.js | 9 +- ...alse,verbatimmodulesyntax=true).errors.txt | 13 +- ...true,verbatimmodulesyntax=true).errors.txt | 13 +- ...alse,verbatimmodulesyntax=true).errors.txt | 5 +- ...true,verbatimmodulesyntax=true).errors.txt | 5 +- .../isolatedModulesUnspecifiedModule.js | 4 +- .../isomorphicMappedTypeInference.js | 70 +- .../reference/javascriptCommonjsModule.js | 17 +- .../javascriptThisAssignmentInStaticBlock.js | 43 +- ...DeclarationEmitExportedClassWithExtends.js | 35 +- ...arationsExportDoubleAssignmentInClosure.js | 2 +- .../jsDeclarationsExportedClassAliases.js | 31 +- .../reference/jsDeclarationsFunctions.js | 41 +- .../reference/jsDeclarationsFunctionsCjs.js | 7 +- .../jsDeclarationsImportTypeBundled.js | 4 +- ...onsReusesExistingNodesMappingJSDocTypes.js | 19 +- ...bclassWithExplicitNoArgumentConstructor.js | 38 +- .../reference/jsDeclarationsThisTypes.js | 40 +- .../reference/jsDeclarationsTypeAliases.js | 21 +- ...arationsTypeReassignmentFromDeclaration.js | 2 +- ...rationsTypeReassignmentFromDeclaration2.js | 2 +- .../jsDeclarationsTypedefAndImportTypes.js | 18 +- ...tionsTypedefPropertyAndExportAssignment.js | 18 +- .../jsFileAlternativeUseOfOverloadTag.js | 6 +- .../jsFileCompilationAwaitModifier.js | 63 +- ...ationClassMethodContainingArrowFunction.js | 12 +- .../jsFileCompilationEmitBlockedCorrectly.js | 7 +- .../jsFileCompilationEmitDeclarations.js | 7 +- ...ileCompilationEmitTrippleSlashReference.js | 7 +- ...eclarationsWithJsFileReferenceWithNoOut.js | 7 +- ...nDeclarationsWithJsFileReferenceWithOut.js | 7 +- ...clarationsWithJsFileReferenceWithOutDir.js | 7 +- .../jsFileCompilationLetBeingRenamed.js | 2 +- .../jsFileCompilationLetDeclarationOrder.js | 4 +- .../jsFileCompilationLetDeclarationOrder2.js | 4 +- ...eclarationsWithJsFileReferenceWithNoOut.js | 7 +- ...tDeclarationsWithJsFileReferenceWithOut.js | 7 +- ...jsFileCompilationRestParamJsDocFunction.js | 6 +- .../jsFileCompilationShortHandProperty.js | 4 +- ...FileCompilationTypeArgumentSyntaxOfCall.js | 2 +- ...ationWithDeclarationEmitPathSameAsInput.js | 7 +- ...leCompilationWithEnabledCompositeOption.js | 7 +- .../jsFileCompilationWithMapFileAsJs.js | 7 +- .../jsFileCompilationWithMapFileAsJs.js.map | 4 +- ...leCompilationWithMapFileAsJs.sourcemap.txt | 54 +- ...ationWithMapFileAsJsWithInlineSourceMap.js | 9 +- ...pFileAsJsWithInlineSourceMap.sourcemap.txt | 58 +- ...ileCompilationWithMapFileAsJsWithOutDir.js | 7 +- ...ompilationWithMapFileAsJsWithOutDir.js.map | 2 +- ...ionWithMapFileAsJsWithOutDir.sourcemap.txt | 54 +- .../reference/jsFileCompilationWithOut.js | 7 +- ...OutDeclarationFileNameSameAsInputJsFile.js | 7 +- .../reference/jsFileCompilationWithoutOut.js | 7 +- .../reference/jsFileFunctionOverloads.js | 11 +- .../reference/jsFileFunctionOverloads2.js | 11 +- .../reference/jsFileMethodOverloads.js | 15 +- .../reference/jsFileMethodOverloads2.js | 15 +- ...NoImplicitAnyNoCascadingReferenceErrors.js | 32 +- .../reference/jsObjectsMarkedAsOpenEnded.js | 7 +- .../reference/jsdocDisallowedInTypescript.js | 2 +- ...jsdocFunctionClassPropertiesDeclaration.js | 5 +- .../baselines/reference/jsdocInTypeScript.js | 15 +- tests/baselines/reference/jsdocLinkTag1.js | 6 +- tests/baselines/reference/jsdocLinkTag3.js | 8 +- tests/baselines/reference/jsdocLinkTag4.js | 8 +- tests/baselines/reference/jsdocLinkTag5.js | 3 +- tests/baselines/reference/jsdocLinkTag6.js | 35 +- .../jsdocParameterParsingInvalidName.js | 11 +- .../reference/jsdocParseErrorsInTypescript.js | 4 +- .../reference/jsdocTemplateTagDefault.js | 8 +- .../jsdocTemplateTagNameResolution.js | 4 +- tests/baselines/reference/jsdocTypeCast.js | 6 +- tests/baselines/reference/jsdocTypeTagCast.js | 42 +- .../reference/jsdocTypecastNoTypeNoCrash.js | 2 +- tests/baselines/reference/json.stringify.js | 2 +- .../jsonFileImportChecksCallCorrectlyTwice.js | 11 +- .../reference/jsxAndTypeAssertion.js | 7 +- .../jsxAttributeMissingInitializer.js | 4 +- .../jsxCallElaborationCheckNoCrash1.js | 43 +- .../reference/jsxCallbackWithDestructuring.js | 32 +- .../jsxCheckJsxNoTypeArgumentsAllowed.js | 41 +- .../jsxChildrenGenericContextualTypes.js | 22 +- .../jsxChildrenIndividualErrorElaborations.js | 64 +- ...ldConfusableWithMultipleChildrenNoError.js | 67 +- ...sxComplexSignatureHasApplicabilityError.js | 55 +- .../reference/jsxComponentTypeErrors.js | 37 +- .../reference/jsxElementClassTooManyParams.js | 9 +- tests/baselines/reference/jsxElementType.js | 121 +- .../reference/jsxElementTypeLiteral.js | 43 +- .../jsxElementTypeLiteralWithGeneric.js | 41 +- ...yExpressionNotCountedAsChild(jsx=react).js | 39 +- ...ressionNotCountedAsChild(jsx=react-jsx).js | 8 +- ...sionNotCountedAsChild(jsx=react-jsxdev).js | 10 +- .../jsxExcessPropsAndAssignability.js | 58 +- .../jsxFragmentAndFactoryUsedOnFragmentUse.js | 15 +- .../jsxFragmentFactoryNoUnusedLocals.js | 16 +- .../baselines/reference/jsxHasLiteralType.js | 63 +- ...jsxImportForSideEffectsNonExtantNoError.js | 41 +- .../reference/jsxImportInAttribute.js | 4 +- .../jsxImportSourceNonPragmaComment.js | 16 +- .../baselines/reference/jsxInExtendsClause.js | 35 +- .../jsxInferenceProducesLiteralAsExpected.js | 17 +- .../jsxIntrinsicElementsCompatability.js | 37 +- .../jsxIntrinsicElementsTypeArgumentErrors.js | 61 +- .../baselines/reference/jsxIntrinsicUnions.js | 41 +- ...suesErrorWhenTagExpectsTooManyArguments.js | 45 +- ...JsxsCjsTransformChildren(jsx=react-jsx).js | 4 +- ...sCjsTransformChildren(jsx=react-jsxdev).js | 6 +- ...CjsTransformCustomImport(jsx=react-jsx).js | 4 +- ...TransformCustomImport(jsx=react-jsxdev).js | 6 +- ...nsformCustomImportPragma(jsx=react-jsx).js | 8 +- ...ormCustomImportPragma(jsx=react-jsxdev).js | 12 +- ...xJsxsCjsTransformKeyProp(jsx=react-jsx).js | 21 +- ...xsCjsTransformKeyProp(jsx=react-jsxdev).js | 23 +- ...sformKeyPropCustomImport(jsx=react-jsx).js | 21 +- ...rmKeyPropCustomImport(jsx=react-jsxdev).js | 23 +- ...eyPropCustomImportPragma(jsx=react-jsx).js | 42 +- ...ropCustomImportPragma(jsx=react-jsxdev).js | 46 +- ...rmNestedSelfClosingChild(jsx=react-jsx).js | 4 +- ...estedSelfClosingChild(jsx=react-jsxdev).js | 7 +- ...ransformSubstitutesNames(jsx=react-jsx).js | 4 +- ...sformSubstitutesNames(jsx=react-jsxdev).js | 6 +- ...SubstitutesNamesFragment(jsx=react-jsx).js | 4 +- ...stitutesNamesFragment(jsx=react-jsxdev).js | 6 +- ...sxLibraryManagedAttributesUnusedGeneric.js | 3 +- .../jsxLocalNamespaceIndexSignatureNoCrash.js | 15 +- .../jsxMultilineAttributeStringValues.js | 4 +- .../jsxMultilineAttributeValuesReact.js | 6 +- ...ibuteIgnoredWhenReactJsx(jsx=react-jsx).js | 18 +- ...teIgnoredWhenReactJsx(jsx=react-jsxdev).js | 21 +- .../reference/jsxNamespaceGlobalReexport.js | 8 +- ...mespaceGlobalReexportMissingAliasTarget.js | 8 +- .../jsxNamespaceImplicitImportJSXNamespace.js | 8 +- ...ConfigPickedOverGlobalOne(jsx=preserve).js | 6 +- ...onfigPickedOverGlobalOne(jsx=react-jsx).js | 8 +- ...XNamespaceFromPragmaPickedOverGlobalOne.js | 8 +- ...hildrenAttributeReactJsx(jsx=react-jsx).js | 14 +- ...drenAttributeReactJsx(jsx=react-jsxdev).js | 17 +- .../jsxNamespacePrefixInNameReact.js | 15 +- .../reference/jsxNamespacePrefixIntrinsics.js | 12 +- .../reference/jsxNamespaceReexports.js | 50 +- .../jsxNestedWithinTernaryParsesCorrectly.js | 4 +- tests/baselines/reference/jsxParsingError1.js | 6 +- tests/baselines/reference/jsxParsingError2.js | 10 +- tests/baselines/reference/jsxParsingError3.js | 12 +- .../jsxParsingError4(strict=false).js | 4 +- .../jsxParsingError4(strict=true).js | 4 +- ...ingErrorImmediateSpreadInAttributeValue.js | 4 +- tests/baselines/reference/jsxPartialSpread.js | 13 +- .../reference/jsxPropsAsIdentifierNames.js | 4 +- .../jsxRuntimePragma(jsx=preserve).js | 158 +- .../reference/jsxRuntimePragma(jsx=react).js | 162 +- .../jsxRuntimePragma(jsx=react-jsx).js | 162 +- .../jsxRuntimePragma(jsx=react-jsxdev).js | 168 +- .../reference/jsxSpreadFirstUnionNoErrors.js | 32 +- .../jsxSpreadOverwritesAttributeStrict.js | 18 +- tests/baselines/reference/jsxViaImport.2.js | 30 +- tests/baselines/reference/jsxViaImport.js | 30 +- tests/baselines/reference/keyofAndForIn.js | 30 +- .../reference/keyofAndIndexedAccess.js | 387 +- .../reference/keyofAndIndexedAccessErrors.js | 34 +- .../reference/keyofDoesntContainSymbols.js | 15 +- .../keyofGenericExtendingClassDoubleLayer.js | 44 +- .../keyofInferenceIntersectsResults.js | 6 +- .../keyofInferenceLowerPriorityThanReturn.js | 2 +- .../reference/keyofIsLiteralContexualType.js | 8 +- .../keyofModuleObjectHasCorrectKeys.js | 42 +- ...rationNoCrash1(module=commonjs).errors.txt | 5 +- ...larationNoCrash1(module=esnext).errors.txt | 5 +- ...xportDeclarationNoCrash1(module=esnext).js | 4 +- ...larationNoCrash1(module=system).errors.txt | 5 +- .../reference/labeledStatementWithLabel.js | 46 +- tests/baselines/reference/lambdaASIEmit.js | 7 +- tests/baselines/reference/lambdaArgCrash.js | 39 +- tests/baselines/reference/lambdaExpression.js | 4 +- tests/baselines/reference/lambdaParamTypes.js | 20 +- ...terWithTupleArgsHasCorrectAssignability.js | 11 +- tests/baselines/reference/lambdaPropSelf.js | 21 +- .../reference/largeControlFlowGraph.js | 2 +- .../reference/lastPropertyInLiteralWins.js | 8 +- .../lateBoundConstraintTypeChecksCorrectly.js | 9 +- .../lateBoundDestructuringImplicitAnyError.js | 30 +- ...lesExportsSpecifierGenerationConditions.js | 34 +- tests/baselines/reference/letAsIdentifier.js | 2 +- .../reference/letAsIdentifierInStrictMode.js | 2 +- .../baselines/reference/letInNonStrictMode.js | 4 +- .../reference/letKeepNamesOfTopLevelItems.js | 6 +- .../letShadowedByNameInNestedScope.js | 2 +- tests/baselines/reference/libMembers.js | 7 +- .../reference/libTypeScriptOverrideSimple.js | 2 +- .../libTypeScriptOverrideSimple.trace.json | 144 + .../libTypeScriptOverrideSimpleConfig.js | 2 +- ...bTypeScriptOverrideSimpleConfig.trace.json | 144 + .../libTypeScriptSubfileResolving.js | 2 +- .../libTypeScriptSubfileResolving.trace.json | 125 + .../libTypeScriptSubfileResolvingConfig.js | 2 +- ...ypeScriptSubfileResolvingConfig.trace.json | 125 + tests/baselines/reference/lift.js | 37 +- .../reference/limitDeepInstantiations.js | 4 +- tests/baselines/reference/listFailure.js | 31 +- .../literalFreshnessPropagationOnNarrowing.js | 43 +- .../literalIntersectionYieldsLiteral.js | 2 +- .../literalTypeNameAssertionNotTriggered.js | 4 +- .../reference/literalTypeWidening.js | 148 +- tests/baselines/reference/literalTypes1.js | 8 +- tests/baselines/reference/literalTypes2.js | 174 +- .../reference/literalTypesAndDestructuring.js | 18 +- .../literalTypesAndTypeAssertions.js | 14 +- .../literalTypesWidenInParameterPosition.js | 8 +- .../literalsInComputedProperties1.js | 25 +- .../reference/localAliasExportAssignment.js | 2 +- .../baselines/reference/localClassesInLoop.js | 14 +- .../reference/localImportNameVsGlobalName.js | 2 +- .../reference/localRequireFunction.js | 4 +- .../localTypeParameterInferencePriority.js | 40 +- tests/baselines/reference/localTypes2.js | 45 +- tests/baselines/reference/localTypes3.js | 45 +- tests/baselines/reference/localTypes4.js | 6 +- tests/baselines/reference/localTypes5.js | 18 +- .../reference/logicalAndOperatorStrictMode.js | 144 +- .../logicalNotOperatorWithAnyOtherType.js | 13 +- .../logicalNotOperatorWithBooleanType.js | 9 +- .../logicalNotOperatorWithNumberType.js | 11 +- .../logicalNotOperatorWithStringType.js | 11 +- ...gicalOrExpressionIsNotContextuallyTyped.js | 2 +- .../reference/looseThisTypeInFunctions.js | 35 +- tests/baselines/reference/m7Bugs.js | 31 +- .../manyCompilerErrorsInTheTwoFiles.js | 4 +- .../baselines/reference/mapOnTupleTypes01.js | 37 +- .../baselines/reference/mapOnTupleTypes02.js | 7 +- .../mappedToToIndexSignatureInference.js | 2 +- .../mappedTypeAsClauseRelationships.js | 12 +- .../reference/mappedTypeAsClauses.js | 10 +- .../reference/mappedTypeAsStringTemplate.js | 2 +- .../reference/mappedTypeConstraints.js | 4 +- .../mappedTypeContextualTypesApplied.js | 18 +- tests/baselines/reference/mappedTypeErrors.js | 53 +- .../mappedTypeGenericIndexedAccess.js | 22 +- ...nericInstantiationPreservesHomomorphism.js | 17 +- .../reference/mappedTypeIndexedAccess.js | 4 +- .../reference/mappedTypeInferenceErrors.js | 4 +- .../reference/mappedTypeMultiInference.js | 2 +- .../mappedTypeNestedGenericInstantiation.js | 4 +- .../mappedTypeNotMistakenlyHomomorphic.js | 4 +- .../mappedTypeOverlappingStringEnumKeys.js | 2 +- .../reference/mappedTypePartialConstraints.js | 33 +- ...TypePartialNonHomomorphicBaseConstraint.js | 14 +- .../reference/mappedTypeProperties.js | 24 +- .../reference/mappedTypeRecursiveInference.js | 6 +- .../reference/mappedTypeRelationships.js | 6 +- .../mappedTypeUnionConstraintInferences.js | 16 +- .../baselines/reference/mappedTypeWithAny.js | 12 +- .../mappedTypeWithCombinedTypeMappers.js | 2 +- tests/baselines/reference/mappedTypes1.js | 8 +- tests/baselines/reference/mappedTypes2.js | 16 +- tests/baselines/reference/mappedTypes3.js | 25 +- tests/baselines/reference/mappedTypes4.js | 4 +- tests/baselines/reference/mappedTypes5.js | 48 +- .../reference/mappedTypesAndObjects.js | 11 +- .../reference/mappedTypesArraysTuples.js | 24 +- .../reference/matchReturnTypeInAllBranches.js | 11 +- tests/baselines/reference/maxConstraints.js | 2 +- .../memberAccessMustUseModuleInstances.js | 11 +- ...FunctionOverloadMixingStaticAndInstance.js | 28 +- .../memberFunctionsWithPrivateOverloads.js | 30 +- .../memberFunctionsWithPublicOverloads.js | 30 +- ...mberFunctionsWithPublicPrivateOverloads.js | 38 +- tests/baselines/reference/memberScope.js | 7 +- .../reference/memberVariableDeclarations1.js | 14 +- .../mergeMultipleInterfacesReexported.js | 32 +- .../reference/mergeSymbolReexportInterface.js | 7 +- ...eSymbolReexportedTypeAliasInstantiation.js | 7 +- .../reference/mergeSymbolRexportFunction.js | 6 +- .../reference/mergeThreeInterfaces2.js | 6 +- .../reference/mergeTwoInterfaces2.js | 4 +- .../reference/mergedClassInterface.js | 14 +- .../mergedClassNamespaceRecordCast.js | 18 +- .../reference/mergedDeclarationExports.js | 15 +- .../reference/mergedDeclarations3.js | 10 +- .../reference/mergedDeclarations4.js | 2 +- .../reference/mergedDeclarations5.js | 35 +- .../reference/mergedDeclarations6.js | 37 +- .../reference/mergedDeclarations7.js | 39 +- .../mergedInheritedClassInterface.js | 53 +- ...rgedInheritedMembersSatisfyAbstractBase.js | 40 +- .../mergedInterfacesWithInheritedPrivates.js | 21 +- .../mergedInterfacesWithInheritedPrivates2.js | 47 +- .../mergedInterfacesWithInheritedPrivates3.js | 52 +- .../mergedInterfacesWithMultipleBases.js | 42 +- .../mergedInterfacesWithMultipleBases2.js | 70 +- .../mergedInterfacesWithMultipleBases3.js | 35 +- .../mergedInterfacesWithMultipleBases4.js | 35 +- .../mergedModuleDeclarationCodeGen.js | 27 +- .../mergedModuleDeclarationCodeGen4.js | 12 +- .../mergedModuleDeclarationCodeGen5.js | 9 +- .../reference/mergedWithLocalValue.js | 8 +- .../baselines/reference/metadataImportType.js | 19 +- .../reference/metadataOfStringLiteral.js | 15 +- tests/baselines/reference/metadataOfUnion.js | 77 +- ...OfUnionWithNull(strictnullchecks=false).js | 110 +- ...aOfUnionWithNull(strictnullchecks=true).js | 110 +- tests/baselines/reference/methodChainError.js | 11 +- .../methodSignatureDeclarationEmit1.js | 9 +- .../mismatchedClassConstructorVariable.js | 14 +- ...hedExplicitTypeParameterAndArgumentType.js | 14 +- .../reference/mismatchedGenericArguments1.js | 20 +- .../reference/missingAndExcessProperties.js | 34 +- .../missingCommaInTemplateStringsArray.js | 6 +- .../missingFunctionImplementation.js | 70 +- .../missingFunctionImplementation2.js | 6 +- .../missingImportAfterModuleImport.js | 8 +- .../missingMemberErrorHasShortPath.js | 11 +- .../missingPropertiesOfClassExpression.js | 32 +- .../reference/missingReturnStatement.js | 9 +- .../reference/missingReturnStatement1.js | 11 +- tests/baselines/reference/missingSelf.js | 25 +- .../reference/missingTypeArguments1.js | 77 +- .../reference/missingTypeArguments2.js | 11 +- .../mixedStaticAndInstanceClassMembers.js | 22 +- .../reference/mixinAccessModifiers.js | 181 +- .../reference/mixinClassesAnnotated.js | 90 +- .../reference/mixinClassesAnonymous.js | 105 +- .../reference/mixinClassesMembers.js | 81 +- .../mixinIntersectionIsValidbaseType.js | 54 +- .../reference/mixinPrivateAndProtected.js | 113 +- .../reference/mixingApparentTypeOverrides.js | 65 +- .../mixingStaticAndInstanceOverloads.js | 47 +- ...ifierOnClassDeclarationMemberInFunction.js | 11 +- ...difierOnClassExpressionMemberInFunction.js | 9 +- .../reference/modifierOnParameter1.js | 8 +- .../reference/modifiersInObjectLiterals.js | 2 +- ...knownSymbolWithOutES6WellknownSymbolLib.js | 2 +- ...gES5LibES6ArrayLibES6WellknownSymbolLib.js | 2 +- .../reference/moduleAliasInterface.js | 51 +- .../moduleAndInterfaceWithSameName.js | 6 +- tests/baselines/reference/moduleAsBaseType.js | 31 +- .../reference/moduleAssignmentCompat1.js | 21 +- .../reference/moduleAssignmentCompat2.js | 21 +- .../reference/moduleAssignmentCompat4.js | 18 +- ...gmentationCollidingNamesInAugmentation1.js | 2 +- .../moduleAugmentationDeclarationEmit1.js | 8 +- .../moduleAugmentationDeclarationEmit2.js | 12 +- ...ugmentationDoesInterfaceMergeOfReexport.js | 24 +- ...ntationDoesNamespaceEnumMergeOfReexport.js | 60 +- ...ugmentationDoesNamespaceMergeOfReexport.js | 24 +- ...entationEnumClassMergeOfReexportIsError.js | 32 +- .../moduleAugmentationExtendAmbientModule1.js | 6 +- .../moduleAugmentationExtendAmbientModule2.js | 12 +- .../moduleAugmentationExtendFileModule1.js | 8 +- .../moduleAugmentationExtendFileModule2.js | 12 +- .../reference/moduleAugmentationGlobal1.js | 11 +- .../reference/moduleAugmentationGlobal2.js | 11 +- .../reference/moduleAugmentationGlobal3.js | 11 +- .../moduleAugmentationImportsAndExports1.js | 20 +- .../moduleAugmentationImportsAndExports2.js | 18 +- .../moduleAugmentationImportsAndExports3.js | 18 +- .../moduleAugmentationImportsAndExports4.js | 24 +- .../moduleAugmentationImportsAndExports5.js | 24 +- .../moduleAugmentationImportsAndExports6.js | 24 +- .../moduleAugmentationInAmbientModule1.js | 2 +- .../moduleAugmentationInAmbientModule2.js | 2 +- .../moduleAugmentationInAmbientModule3.js | 2 +- .../moduleAugmentationInAmbientModule4.js | 2 +- .../moduleAugmentationInAmbientModule5.js | 4 +- .../moduleAugmentationInDependency.js | 4 +- .../moduleAugmentationInDependency2.js | 7 +- .../reference/moduleAugmentationNoNewNames.js | 6 +- .../reference/moduleAugmentationOfAlias.js | 9 +- .../reference/moduleAugmentationsImports1.js | 20 +- .../reference/moduleAugmentationsImports2.js | 20 +- .../reference/moduleAugmentationsImports3.js | 20 +- .../reference/moduleAugmentationsImports4.js | 20 +- .../reference/moduleClassArrayCodeGenTest.js | 14 +- .../baselines/reference/moduleCodeGenTest5.js | 18 +- tests/baselines/reference/moduleCrashBug1.js | 7 +- ...tionExportStarShadowingGlobalIsNameable.js | 27 +- .../reference/moduleDuplicateIdentifiers.js | 14 +- .../reference/moduleElementsInWrongContext.js | 8 +- .../moduleElementsInWrongContext2.js | 8 +- .../moduleElementsInWrongContext3.js | 8 +- .../reference/moduleExportDuplicateAlias.js | 2 +- .../reference/moduleExportDuplicateAlias2.js | 2 +- .../reference/moduleExportDuplicateAlias3.js | 4 +- tests/baselines/reference/moduleExports1.js | 7 +- .../reference/moduleExportsUnaryExpression.js | 2 +- .../moduleImportedForTypeArgumentPosition.js | 31 +- .../reference/moduleInTypePosition1.js | 9 +- ...duleLocalImportNotIncorrectlyRedirected.js | 3 +- .../moduleMemberMissingErrorIsRelative.js | 6 +- .../moduleMemberWithoutTypeAnnotation1.js | 56 +- .../moduleMemberWithoutTypeAnnotation2.js | 2 +- tests/baselines/reference/moduleMerge.js | 22 +- .../reference/moduleMergeConstructor.js | 7 +- .../baselines/reference/moduleNewExportBug.js | 9 +- ...moduleNoneErrors(target=es2015).errors.txt | 9 + .../moduleNoneErrors(target=es2015).js | 15 + ...> moduleNoneErrors(target=es2015).symbols} | 0 ... => moduleNoneErrors(target=es2015).types} | 0 ...> moduleNoneErrors(target=es5).errors.txt} | 0 ...ors.js => moduleNoneErrors(target=es5).js} | 0 .../moduleNoneErrors(target=es5).symbols | 10 + .../moduleNoneErrors(target=es5).types | 12 + .../baselines/reference/moduleNoneOutFile.js | 31 +- .../baselines/reference/modulePrologueAMD.js | 7 +- .../reference/modulePrologueCommonjs.js | 7 +- .../reference/modulePrologueSystem.js | 7 +- .../baselines/reference/modulePrologueUmd.js | 7 +- .../reference/moduleRedifinitionErrors.js | 7 +- .../reference/moduleReopenedTypeOtherBlock.js | 16 +- .../reference/moduleReopenedTypeSameBlock.js | 16 +- ...oduleResolutionAsTypeReferenceDirective.js | 3 +- ...olutionAsTypeReferenceDirective.trace.json | 2 +- ...solutionAsTypeReferenceDirectiveAmbient.js | 3 +- ...AsTypeReferenceDirectiveAmbient.trace.json | 2 +- ...esolutionAsTypeReferenceDirectiveScoped.js | 3 +- ...nAsTypeReferenceDirectiveScoped.trace.json | 12 +- ...ionPackageIdWithRelativeAndAbsolutePath.js | 3 +- ...geIdWithRelativeAndAbsolutePath.trace.json | 10 +- .../moduleResolutionWithExtensions.js | 13 +- .../moduleResolutionWithExtensions.trace.json | 6 +- ...leResolutionWithExtensions_notSupported.js | 3 +- ...tionWithExtensions_notSupported.trace.json | 6 +- ...eResolutionWithExtensions_notSupported2.js | 3 +- ...ionWithExtensions_notSupported2.trace.json | 2 +- ...eResolutionWithExtensions_notSupported3.js | 3 +- ...ionWithExtensions_notSupported3.trace.json | 2 +- ...duleResolutionWithExtensions_unexpected.js | 4 +- ...lutionWithExtensions_unexpected.trace.json | 2 +- ...uleResolutionWithExtensions_unexpected2.js | 4 +- ...utionWithExtensions_unexpected2.trace.json | 2 +- ...lutionWithExtensions_withAmbientPresent.js | 3 +- ...thExtensions_withAmbientPresent.trace.json | 2 +- .../reference/moduleResolutionWithRequire.js | 4 +- .../moduleResolutionWithRequireAndImport.js | 11 +- ...eResolutionWithRequireAndImport.trace.json | 2 +- .../moduleResolutionWithSuffixes_empty.js | 8 +- ...duleResolutionWithSuffixes_notSpecified.js | 8 +- .../moduleResolutionWithSuffixes_one.js | 13 +- .../moduleResolutionWithSuffixes_oneBlank.js | 8 +- ...oduleResolutionWithSuffixes_oneNotFound.js | 8 +- ...tionWithSuffixes_one_dirModuleWithIndex.js | 13 +- ...solutionWithSuffixes_one_externalModule.js | 3 +- ...tionWithSuffixes_one_externalModulePath.js | 3 +- ...thSuffixes_one_externalModule_withPaths.js | 3 +- ...lutionWithSuffixes_one_externalTSModule.js | 3 +- ...duleResolutionWithSuffixes_one_jsModule.js | 3 +- ...leResolutionWithSuffixes_one_jsonModule.js | 9 +- ...esolutionWithSuffixes_threeLastIsBlank1.js | 18 +- ...esolutionWithSuffixes_threeLastIsBlank2.js | 13 +- ...esolutionWithSuffixes_threeLastIsBlank3.js | 8 +- ...esolutionWithSuffixes_threeLastIsBlank4.js | 3 +- .../reference/moduleResolutionWithSymlinks.js | 25 +- .../moduleResolutionWithSymlinks.trace.json | 6 +- ...ResolutionWithSymlinks_notInNodeModules.js | 18 +- ...onWithSymlinks_notInNodeModules.trace.json | 4 +- ...ResolutionWithSymlinks_preserveSymlinks.js | 10 +- ...onWithSymlinks_preserveSymlinks.trace.json | 8 +- ...moduleResolutionWithSymlinks_withOutDir.js | 25 +- ...solutionWithSymlinks_withOutDir.trace.json | 6 +- ...uleResolution_explicitNodeModulesImport.js | 3 +- ...n_explicitNodeModulesImport_implicitAny.js | 3 +- ...Resolution_packageJson_notAtPackageRoot.js | 3 +- ...on_packageJson_notAtPackageRoot.trace.json | 2 +- ...Json_notAtPackageRoot_fakeScopedPackage.js | 3 +- ...AtPackageRoot_fakeScopedPackage.trace.json | 2 +- ...uleResolution_packageJson_scopedPackage.js | 3 +- ...ution_packageJson_scopedPackage.trace.json | 2 +- ...Resolution_packageJson_yesAtPackageRoot.js | 3 +- ...on_packageJson_yesAtPackageRoot.trace.json | 15 +- ...Json_yesAtPackageRoot_fakeScopedPackage.js | 3 +- ...AtPackageRoot_fakeScopedPackage.trace.json | 15 +- ...esAtPackageRoot_mainFieldInSubDirectory.js | 3 +- ...ageRoot_mainFieldInSubDirectory.trace.json | 2 +- .../moduleResolution_relativeImportJsFile.js | 3 +- ...tion_relativeImportJsFile_noImplicitAny.js | 3 +- tests/baselines/reference/moduleScoping.js | 4 +- tests/baselines/reference/moduleScopingBug.js | 9 +- ...haresNameWithImportDeclarationInsideIt3.js | 2 +- ...haresNameWithImportDeclarationInsideIt5.js | 2 +- .../reference/moduleVisibilityTest1.js | 28 +- .../reference/moduleVisibilityTest2.js | 28 +- .../reference/moduleVisibilityTest3.js | 14 +- .../reference/moduleVisibilityTest4.js | 12 +- .../moduleWithStatementsOfEveryKind.js | 105 +- .../module_augmentUninstantiatedModule2.js | 2 +- .../baselines/reference/multiImportExport.js | 13 +- .../multiLineContextDiagnosticWithPretty.js | 2 +- ...nePropertyAccessAndArrowFunctionIndent1.js | 7 +- .../reference/multiModuleClodule1.js | 14 +- tests/baselines/reference/multiline.js | 42 +- .../multipleClassPropertyModifiers.js | 7 +- .../multipleClassPropertyModifiersErrors.js | 7 +- .../reference/multipleDeclarations.js | 34 +- .../reference/multipleExportDefault1.js | 7 +- .../reference/multipleExportDefault2.js | 7 +- .../reference/multipleExportDefault3.js | 12 +- .../reference/multipleExportDefault4.js | 12 +- .../reference/multipleExportDefault5.js | 13 +- .../reference/multipleExportDefault6.js | 6 +- tests/baselines/reference/multipleExports.js | 2 +- .../reference/multipleInferenceContexts.js | 6 +- .../reference/multipleInheritance.js | 103 +- .../reference/multipleNumericIndexers.js | 14 +- .../reference/multipleStringIndexers.js | 14 +- tests/baselines/reference/multivar.js | 14 +- .../mutuallyRecursiveGenericBaseTypes2.js | 33 +- .../reference/mutuallyRecursiveInference.js | 46 +- .../mutuallyRecursiveInterfaceDeclaration.js | 3 +- tests/baselines/reference/nameCollision.js | 13 +- tests/baselines/reference/nameCollisions.js | 48 +- .../nameCollisionsInPropertyAssignments.js | 2 +- .../reference/nameDelimitedBySlashes.js | 2 +- .../reference/nameWithFileExtension.js | 2 +- .../reference/nameWithRelativePaths.js | 6 +- ...nctionExpressionAssignedToClassProperty.js | 7 +- .../reference/namedImportNonExistentName.js | 4 +- .../baselines/reference/namedTupleMembers.js | 19 +- .../reference/namedTupleMembersErrors.js | 3 +- .../namespaceAssignmentToRequireAlias.js | 2 +- .../namespaceDisambiguationInUnion.js | 8 +- .../reference/namespaceImportTypeQuery.js | 27 +- .../reference/namespaceImportTypeQuery2.js | 23 +- .../reference/namespaceImportTypeQuery3.js | 20 +- .../reference/namespaceImportTypeQuery4.js | 16 +- .../reference/namespaceMemberAccess.js | 49 +- ...aceMergedWithFunctionWithOverloadsUsage.js | 2 +- .../namespaceMergedWithImportAliasNoCrash.js | 9 +- tests/baselines/reference/namespaces2.js | 9 +- .../reference/namespacesDeclaration2.js | 2 +- ...namespacesWithTypeAliasOnlyExportsMerge.js | 9 +- tests/baselines/reference/narrowByEquality.js | 2 +- .../baselines/reference/narrowByInstanceof.js | 48 +- .../narrowCommaOperatorNestedWithinLHS.js | 12 +- .../reference/narrowTypeByInstanceof.js | 30 +- .../reference/narrowedConstInMethod.js | 15 +- tests/baselines/reference/narrowedImports.js | 8 +- .../narrowedImports_assumeInitialized.js | 2 +- ...wingAssignmentReadonlyRespectsAssertion.js | 7 +- .../narrowingByDiscriminantInLoop.js | 6 +- .../reference/narrowingByTypeofInSwitch.js | 40 +- .../narrowingConstrainedTypeParameter.js | 5 +- .../narrowingConstrainedTypeVariable.js | 33 +- .../reference/narrowingDestructuring.js | 20 +- .../narrowingGenericTypeFromInstanceof01.js | 14 +- .../reference/narrowingMutualSubtypes.js | 28 +- .../reference/narrowingOfDottedNames.js | 86 +- .../reference/narrowingOfQualifiedNames.js | 20 +- .../reference/narrowingOrderIndependent.js | 16 +- .../reference/narrowingRestGenericCall.js | 4 +- .../reference/narrowingTypeofUndefined2.js | 17 +- .../narrowingUnionToNeverAssigment.js | 2 +- .../reference/narrowingUnionToUnion.js | 20 +- .../reference/narrowingUnionWithBang.js | 9 +- .../narrowingWithNonNullExpression.js | 2 +- ...nearbyIdenticalGenericLambdasAssignable.js | 4 +- .../negateOperatorWithAnyOtherType.js | 13 +- .../negateOperatorWithBooleanType.js | 9 +- .../reference/negateOperatorWithNumberType.js | 11 +- .../reference/negateOperatorWithStringType.js | 11 +- .../reference/nestedBlockScopedBindings1.js | 20 +- .../reference/nestedBlockScopedBindings10.js | 4 +- .../reference/nestedBlockScopedBindings11.js | 8 +- .../reference/nestedBlockScopedBindings12.js | 8 +- .../reference/nestedBlockScopedBindings13.js | 9 +- .../reference/nestedBlockScopedBindings14.js | 11 +- .../reference/nestedBlockScopedBindings15.js | 22 +- .../reference/nestedBlockScopedBindings16.js | 26 +- .../reference/nestedBlockScopedBindings2.js | 64 +- .../reference/nestedBlockScopedBindings3.js | 62 +- .../reference/nestedBlockScopedBindings4.js | 48 +- .../reference/nestedBlockScopedBindings5.js | 70 +- .../reference/nestedBlockScopedBindings6.js | 80 +- .../reference/nestedBlockScopedBindings7.js | 9 +- .../reference/nestedBlockScopedBindings8.js | 11 +- .../reference/nestedBlockScopedBindings9.js | 8 +- .../reference/nestedClassDeclaration.js | 23 +- .../reference/nestedDestructuringOfRequire.js | 4 +- .../reference/nestedExcessPropertyChecking.js | 16 +- .../baselines/reference/nestedFreshLiteral.js | 2 +- ...ricConditionalTypeWithGenericImportType.js | 3 +- .../reference/nestedGenericSpreadInference.js | 2 +- .../reference/nestedGlobalNamespaceInClass.js | 7 +- .../reference/nestedModulePrivateAccess.js | 2 +- tests/baselines/reference/nestedModules.js | 4 +- tests/baselines/reference/nestedNamespace.js | 17 +- ...irect(moduleresolution=bundler).trace.json | 2 +- ...direct(moduleresolution=node16).trace.json | 7 +- ...rect(moduleresolution=nodenext).trace.json | 7 +- .../nestedRecursiveArraysOrObjectsError01.js | 2 +- .../reference/nestedRecursiveLambda.js | 8 +- tests/baselines/reference/nestedSelf.js | 12 +- .../reference/nestedThisContainer.js | 6 +- .../nestedTypeVariableInfersLiteral.js | 10 +- .../neverAsDiscriminantType(strict=false).js | 48 +- .../neverAsDiscriminantType(strict=true).js | 48 +- .../neverNullishThroughParentheses.js | 16 +- .../reference/neverReturningFunctions1.js | 91 +- tests/baselines/reference/neverType.js | 33 +- tests/baselines/reference/neverTypeErrors1.js | 10 +- tests/baselines/reference/neverTypeErrors2.js | 10 +- .../reference/newAbstractInstance.js | 7 +- .../reference/newAbstractInstance2.js | 19 +- tests/baselines/reference/newArrays.js | 18 +- .../reference/newOnInstanceSymbol.js | 7 +- tests/baselines/reference/newOperator.js | 22 +- .../reference/newOperatorConformance.js | 23 +- .../reference/newOperatorErrorCases.js | 23 +- tests/baselines/reference/newWithSpread.js | 86 +- .../noCheckRequiresEmitDeclarationOnly.js | 5 +- ...itionOnExportOfPrivateInMergedNamespace.js | 9 +- ...CollisionThisExpressionAndClassInGlobal.js | 9 +- ...ionThisExpressionAndLocalVarInAccessors.js | 86 +- ...nThisExpressionAndLocalVarInConstructor.js | 22 +- ...sionThisExpressionAndLocalVarInFunction.js | 2 +- ...lisionThisExpressionAndLocalVarInLambda.js | 6 +- ...lisionThisExpressionAndLocalVarInMethod.js | 23 +- ...sionThisExpressionAndLocalVarInProperty.js | 22 +- ...noCollisionThisExpressionAndVarInGlobal.js | 2 +- ...nThisExpressionInFunctionAndVarInGlobal.js | 3 +- .../reference/noConstraintInReturnType1.js | 9 +- .../reference/noCrashOnImportShadowing.js | 92 +- tests/baselines/reference/noCrashOnMixin.js | 60 +- tests/baselines/reference/noCrashOnNoLib.js | 18 +- .../noCrashOnParameterNamedRequire.js | 2 +- .../reference/noCrashOnThisTypeUsage.js | 21 +- ...imModuleSyntaxAndImportsNotUsedAsValues.js | 11 +- tests/baselines/reference/noEmitHelpers.js | 16 +- .../baselines/reference/noErrorTruncation.js | 2 +- ...DeclarationFile2(target=es2015).errors.txt | 10 + ...ationInDeclarationFile2(target=es2015).js} | 0 ...InDeclarationFile2(target=es2015).symbols} | 0 ...onInDeclarationFile2(target=es2015).types} | 0 ...InDeclarationFile2(target=es5).errors.txt} | 0 ...mentationInDeclarationFile2(target=es5).js | 14 + ...tionInDeclarationFile2(target=es5).symbols | 13 + ...tationInDeclarationFile2(target=es5).types | 18 + ...DeclarationFile3(target=es2015).errors.txt | 11 + ...ationInDeclarationFile3(target=es2015).js} | 0 ...InDeclarationFile3(target=es2015).symbols} | 0 ...onInDeclarationFile3(target=es2015).types} | 0 ...InDeclarationFile3(target=es5).errors.txt} | 0 ...mentationInDeclarationFile3(target=es5).js | 15 + ...tionInDeclarationFile3(target=es5).symbols | 13 + ...tationInDeclarationFile3(target=es5).types | 18 + .../baselines/reference/noErrorsInCallback.js | 9 +- ...ImplicitAnyDestructuringInPrivateMethod.js | 16 +- ...citAnyDestructuringParameterDeclaration.js | 23 +- ...oImplicitAnyDestructuringVarDeclaration.js | 12 +- ...ImplicitAnyDestructuringVarDeclaration2.js | 20 +- .../noImplicitAnyForMethodParameters.js | 18 +- ...tAnyInContextuallyTypesFunctionParamter.js | 2 +- ...icitAnyLoopCrash(target=es2015).errors.txt | 15 + .../noImplicitAnyLoopCrash(target=es2015).js | 16 + ...plicitAnyLoopCrash(target=es2015).symbols} | 0 ...ImplicitAnyLoopCrash(target=es2015).types} | 0 ...plicitAnyLoopCrash(target=es5).errors.txt} | 0 ... => noImplicitAnyLoopCrash(target=es5).js} | 0 ...noImplicitAnyLoopCrash(target=es5).symbols | 16 + .../noImplicitAnyLoopCrash(target=es5).types | 34 + .../noImplicitAnyNamelessParameter.js | 7 +- .../noImplicitAnyParametersInBareFunctions.js | 38 +- .../noImplicitAnyParametersInClass.js | 107 +- .../noImplicitAnyParametersInModule.js | 38 +- .../noImplicitAnyStringIndexerOnObject.js | 46 +- .../reference/noImplicitAnyWithOverloads.js | 2 +- .../noImplicitReturnInConstructors.js | 7 +- .../reference/noImplicitSymbolToString.js | 32 +- .../reference/noImplicitThisBigThis.js | 24 +- .../reference/noImplicitThisFunctions.js | 12 +- tests/baselines/reference/noInfer.js | 34 +- .../reference/noRepeatedPropertyNames.js | 15 +- ...oSubstitutionTemplateStringLiteralTypes.js | 2 +- .../reference/noTypeArgumentOnReturnType1.js | 11 +- .../reference/noUncheckedIndexAccess.js | 20 +- .../reference/noUncheckedIndexedAccess.js | 64 +- .../noUncheckedIndexedAccessDestructuring.js | 30 +- .../noUnusedLocals_destructuringAssignment.js | 23 +- .../reference/noUnusedLocals_selfReference.js | 30 +- .../reference/noUnusedLocals_writeOnly.js | 23 +- .../noUnusedLocals_writeOnlyProperty.js | 11 +- ...edLocals_writeOnlyProperty_dynamicNames.js | 15 +- .../reference/nodeColonModuleResolution.js | 37 +- .../nodeColonModuleResolution.trace.json | 2 +- .../reference/nodeColonModuleResolution2.js | 37 +- .../nodeColonModuleResolution2.trace.json | 2 +- .../nodeModuleReexportFromDottedPath.js | 8 +- ...dulesPackageImportsRootWildcard.trace.json | 136 - .../nodeNextModuleResolution1.trace.json | 2 + .../nodeNextModuleResolution2.trace.json | 2 + tests/baselines/reference/nonArrayRestArgs.js | 6 +- .../nonExportedElementsOfMergedModules.js | 8 +- ...enericClassExtendingGenericClassWithAny.js | 31 +- ...onGenericTypeReferenceWithTypeArguments.js | 16 +- .../reference/nonIdenticalTypeConstraints.js | 42 +- .../nonInferrableTypePropagation1.js | 4 +- .../nonInferrableTypePropagation2.js | 5 +- .../reference/nonInstantiatedModule.js | 9 +- .../reference/nonIterableRestElement1.js | 2 +- .../reference/nonIterableRestElement3.js | 2 +- .../nonMergedDeclarationsAndOverloads.js | 11 +- .../baselines/reference/nonMergedOverloads.js | 5 +- .../reference/nonNullFullInference.js | 12 +- .../baselines/reference/nonNullMappedType.js | 2 +- ...ameterExtendingStringAssignableToString.js | 2 +- .../reference/nonNullReferenceMatching.js | 28 +- .../reference/nonNullableReduction.js | 4 +- .../nonNullableReductionNonStrict.js | 4 +- .../baselines/reference/nonNullableTypes1.js | 17 +- ...nonObjectUnionNestedExcessPropertyCheck.js | 6 +- .../reference/nonPrimitiveAccessProperty.js | 2 +- .../reference/nonPrimitiveAndEmptyObject.js | 5 +- .../reference/nonPrimitiveAndTypeVariables.js | 8 +- .../baselines/reference/nonPrimitiveNarrow.js | 7 +- .../nonPrimitiveRhsSideOfInExpression.js | 6 +- .../nonPrimitiveUnionIntersection.js | 4 +- ...onnullAssertionPropegatesContextualType.js | 2 +- ...nonstrictTemplateWithNotOctalPrintsAsIs.js | 2 +- .../normalizedIntersectionTooComplex.js | 4 +- .../nounusedTypeParameterConstraint.js | 6 +- tests/baselines/reference/null.js | 7 +- .../reference/nullAssignableToEveryType.js | 7 +- .../nullIsSubtypeOfEverythingButUndefined.js | 29 +- .../reference/nullableFunctionError.js | 2 +- .../reference/nullishCoalescingOperator1.js | 34 +- .../reference/nullishCoalescingOperator10.js | 2 +- .../reference/nullishCoalescingOperator11.js | 2 +- .../reference/nullishCoalescingOperator2.js | 18 +- .../reference/nullishCoalescingOperator3.js | 2 +- .../reference/nullishCoalescingOperator4.js | 4 +- .../reference/nullishCoalescingOperator6.js | 4 +- .../reference/nullishCoalescingOperator7.js | 8 +- .../reference/nullishCoalescingOperator8.js | 6 +- .../reference/nullishCoalescingOperator9.js | 4 +- .../nullishCoalescingOperator_not_strict.js | 18 +- .../numberAssignableToEnumInsideUnion.js | 4 +- .../reference/numericClassMembers1.js | 21 +- .../reference/numericEnumMappedType.js | 12 +- ...icIndexerConstrainsPropertyDeclarations.js | 41 +- ...cIndexerConstrainsPropertyDeclarations2.js | 42 +- .../reference/numericIndexerConstraint.js | 7 +- .../reference/numericIndexerConstraint1.js | 9 +- .../reference/numericIndexerConstraint2.js | 9 +- .../reference/numericIndexerConstraint3.js | 38 +- .../reference/numericIndexerConstraint4.js | 31 +- .../reference/numericIndexerTyping2.js | 31 +- .../reference/numericIndexingResults.js | 7 +- .../baselines/reference/numericMethodName1.js | 7 +- .../numericNamedPropertyDuplicates.js | 7 +- .../reference/numericStringLiteralTypes.js | 10 +- .../numericStringNamedPropertyEquivalence.js | 7 +- .../objectAssignLikeNonUnionResult.js | 4 +- ...BindingPatternContextuallyTypesArgument.js | 2 +- ...bjectBindingPatternKeywordIdentifiers01.js | 2 +- ...bjectBindingPatternKeywordIdentifiers02.js | 2 +- ...bjectBindingPatternKeywordIdentifiers03.js | 2 +- ...bjectBindingPatternKeywordIdentifiers04.js | 2 +- ...bjectBindingPatternKeywordIdentifiers05.js | 2 +- ...bjectBindingPatternKeywordIdentifiers06.js | 2 +- ...dingPattern_restElementWithPropertyName.js | 2 +- ...ctCreationExpressionInFunctionParameter.js | 10 +- ...objectCreationOfElementAccessExpression.js | 113 +- tests/baselines/reference/objectFreeze.js | 16 +- .../objectFreezeLiteralsDontWiden.js | 4 +- tests/baselines/reference/objectIndexer.js | 7 +- .../objectInstantiationFromUnionSpread.js | 15 +- .../reference/objectLitArrayDeclNoNew.js | 7 +- .../objectLitIndexerContextualType.js | 8 +- .../objectLiteralArraySpecialization.js | 2 +- ...ctLiteralComputedNameNoDeclarationError.js | 12 +- .../objectLiteralDeclarationGeneration1.js | 7 +- .../objectLiteralEnumPropertyNames.js | 81 +- .../objectLiteralExcessProperties.js | 12 +- .../objectLiteralFreshnessWithSpread.js | 15 +- ...bjectLiteralFunctionArgContextualTyping.js | 6 +- ...jectLiteralFunctionArgContextualTyping2.js | 6 +- .../objectLiteralGettersAndSetters.js | 8 +- .../objectLiteralMemberWithModifiers1.js | 2 +- .../objectLiteralMemberWithQuestionMark1.js | 2 +- .../reference/objectLiteralNormalization.js | 37 +- ...ectLiteralShorthandPropertiesAssignment.js | 8 +- ...teralShorthandPropertiesAssignmentError.js | 6 +- ...iesAssignmentErrorFromMissingIdentifier.js | 6 +- ...opertiesErrorFromNoneExistingIdentifier.js | 4 +- ...ndPropertiesErrorFromNotUsingIdentifier.js | 15 +- ...teralShorthandPropertiesErrorWithModule.js | 3 +- ...eralShorthandPropertiesFunctionArgument.js | 2 +- ...ralShorthandPropertiesFunctionArgument2.js | 2 +- .../objectLiteralThisWidenedOnUse.js | 4 +- .../reference/objectLiteralWithSemicolons1.js | 2 +- .../reference/objectLiteralWithSemicolons2.js | 6 +- .../reference/objectLiteralWithSemicolons3.js | 6 +- .../reference/objectLiteralWithSemicolons4.js | 2 +- .../reference/objectLiteralWithSemicolons5.js | 2 +- .../objectLiteralsAgainstUnionsOfArrays01.js | 2 +- .../reference/objectMembersOnTypes.js | 7 +- .../baselines/reference/objectRestCatchES5.js | 4 +- .../baselines/reference/objectRestNegative.js | 16 +- .../reference/objectRestPropertyMustBeLast.js | 8 +- .../baselines/reference/objectRestReadonly.js | 4 +- .../reference/objectSpreadComputedProperty.js | 24 +- .../reference/objectSpreadIndexSignature.js | 19 +- .../reference/objectSpreadNegativeParse.js | 19 +- .../objectSpreadRepeatedComplexity.js | 13 +- .../objectSpreadRepeatedNullCheckPerf.js | 13 +- .../reference/objectSpreadStrictNull.js | 33 +- ...preadWithinMethodWithinObjectWithSpread.js | 17 +- ...objectTypeHidingMembersOfExtendedObject.js | 42 +- .../objectTypeHidingMembersOfObject.js | 11 +- ...peHidingMembersOfObjectAssignmentCompat.js | 11 +- ...eHidingMembersOfObjectAssignmentCompat2.js | 11 +- .../reference/objectTypePropertyAccess.js | 7 +- .../objectTypeWithDuplicateNumericProperty.js | 7 +- .../objectTypeWithNumericProperty.js | 7 +- .../objectTypeWithRecursiveWrappedProperty.js | 7 +- ...objectTypeWithRecursiveWrappedProperty2.js | 7 +- ...ecursiveWrappedPropertyCheckedNominally.js | 14 +- ...ypeWithStringIndexerHidingObjectIndexer.js | 7 +- ...hStringNamedPropertyOfIllegalCharacters.js | 7 +- .../reference/objectTypesIdentity.js | 21 +- .../reference/objectTypesIdentity2.js | 21 +- .../objectTypesIdentityWithCallSignatures.js | 29 +- .../objectTypesIdentityWithCallSignatures2.js | 29 +- ...yWithCallSignaturesDifferingParamCounts.js | 29 +- ...IdentityWithCallSignaturesWithOverloads.js | 29 +- ...ectTypesIdentityWithConstructSignatures.js | 24 +- ...ctTypesIdentityWithConstructSignatures2.js | 20 +- ...ConstructSignaturesDifferingParamCounts.js | 20 +- ...tTypesIdentityWithGenericCallSignatures.js | 29 +- ...TypesIdentityWithGenericCallSignatures2.js | 29 +- ...ricCallSignaturesDifferingByConstraints.js | 29 +- ...icCallSignaturesDifferingByConstraints2.js | 38 +- ...icCallSignaturesDifferingByConstraints3.js | 52 +- ...ericCallSignaturesDifferingByReturnType.js | 29 +- ...ricCallSignaturesDifferingByReturnType2.js | 29 +- ...lSignaturesDifferingTypeParameterCounts.js | 29 +- ...llSignaturesDifferingTypeParameterNames.js | 29 +- ...WithGenericCallSignaturesOptionalParams.js | 29 +- ...ithGenericCallSignaturesOptionalParams2.js | 29 +- ...ithGenericCallSignaturesOptionalParams3.js | 29 +- ...nstructSignaturesDifferingByConstraints.js | 20 +- ...structSignaturesDifferingByConstraints2.js | 29 +- ...structSignaturesDifferingByConstraints3.js | 43 +- ...onstructSignaturesDifferingByReturnType.js | 20 +- ...nstructSignaturesDifferingByReturnType2.js | 20 +- ...tSignaturesDifferingTypeParameterCounts.js | 20 +- ...ctSignaturesDifferingTypeParameterNames.js | 20 +- ...enericConstructSignaturesOptionalParams.js | 20 +- ...nericConstructSignaturesOptionalParams2.js | 20 +- ...nericConstructSignaturesOptionalParams3.js | 20 +- ...objectTypesIdentityWithNumericIndexers1.js | 54 +- ...objectTypesIdentityWithNumericIndexers2.js | 70 +- ...objectTypesIdentityWithNumericIndexers3.js | 54 +- .../objectTypesIdentityWithOptionality.js | 21 +- .../objectTypesIdentityWithPrivates.js | 54 +- .../objectTypesIdentityWithPrivates2.js | 31 +- .../objectTypesIdentityWithPrivates3.js | 47 +- .../objectTypesIdentityWithPublics.js | 21 +- .../objectTypesIdentityWithStringIndexers.js | 54 +- .../objectTypesIdentityWithStringIndexers2.js | 70 +- .../objectTypesWithOptionalProperties.js | 14 +- .../objectTypesWithOptionalProperties2.js | 21 +- .../objectTypesWithPredefinedTypesAsName.js | 35 +- .../objectTypesWithPredefinedTypesAsName2.js | 7 +- .../reference/octalIntegerLiteralError.js | 6 +- .../octalLiteralAndEscapeSequence.js | 84 +- .../reference/omitTypeHelperModifiers01.js | 6 +- .../reference/omitTypeTestErrors01.js | 8 +- tests/baselines/reference/omitTypeTests01.js | 8 +- ...leOnPromisedType(target=es2015).errors.txt | 103 + ...sAvailableOnPromisedType(target=es2015).js | 86 + ...ableOnPromisedType(target=es2015).symbols} | 0 ...ilableOnPromisedType(target=es2015).types} | 0 ...ableOnPromisedType(target=es5).errors.txt} | 0 ...onsAvailableOnPromisedType(target=es5).js} | 0 ...vailableOnPromisedType(target=es5).symbols | 99 + ...sAvailableOnPromisedType(target=es5).types | 164 + .../operatorsAndIntersectionTypes.js | 30 +- .../optionalArgsWithDefaultValues.js | 30 +- .../reference/optionalBindingParameters1.js | 3 +- .../reference/optionalBindingParameters2.js | 3 +- .../optionalBindingParametersInOverloads1.js | 6 +- .../optionalBindingParametersInOverloads2.js | 6 +- .../reference/optionalChainingInference.js | 32 +- .../optionalConstructorArgInSuper.js | 34 +- tests/baselines/reference/optionalMethods.js | 69 +- .../reference/optionalParamArgsTest.js | 74 +- .../reference/optionalParamInOverride.js | 35 +- .../optionalParamReferencingOtherParams1.js | 4 +- ...cingOtherParams2(target=es2015).errors.txt | 11 + ...mReferencingOtherParams2(target=es2015).js | 15 + ...rencingOtherParams2(target=es2015).symbols | 18 + ...ferencingOtherParams2(target=es2015).types | 31 + ...encingOtherParams2(target=es5).errors.txt} | 0 ...ramReferencingOtherParams2(target=es5).js} | 0 ...ferencingOtherParams2(target=es5).symbols} | 0 ...ReferencingOtherParams2(target=es5).types} | 0 .../optionalParamReferencingOtherParams3.js | 4 +- ...ParameterInDestructuringWithInitializer.js | 27 +- .../reference/optionalParameterProperty.js | 35 +- .../reference/optionalParameterRetainsNull.js | 4 +- .../optionalParamterAndVariableDeclaration.js | 7 +- ...optionalParamterAndVariableDeclaration2.js | 7 +- .../reference/optionalProperties01.js | 4 +- .../reference/optionalPropertiesInClasses.js | 21 +- .../reference/optionalPropertiesTest.js | 2 +- ...ropertyAssignableToStringIndexSignature.js | 6 +- .../reference/optionalSetterParam.js | 13 +- .../reference/optionalTupleElements1.js | 6 +- .../optionsCompositeWithIncrementalFalse.js | 2 +- ...dInfoFileWithoutIncrementalAndComposite.js | 2 +- .../reference/outFileIsDeprecated.js | 4 +- .../overEagerReturnTypeSpecialization.js | 8 +- tests/baselines/reference/overload1.js | 40 +- tests/baselines/reference/overload2.js | 7 +- .../reference/overloadAssignmentCompat.js | 7 +- tests/baselines/reference/overloadCallTest.js | 7 +- .../reference/overloadConsecutiveness.js | 15 +- .../overloadEquivalenceWithStatics.js | 11 +- ...dErrorMatchesImplementationElaboaration.js | 9 +- .../overloadGenericFunctionWithRestArgs.js | 20 +- .../reference/overloadModifiersMustAgree.js | 9 +- .../overloadOnConstAsTypeAnnotation.js | 2 +- .../overloadOnConstConstraintChecks1.js | 68 +- .../overloadOnConstConstraintChecks2.js | 42 +- .../overloadOnConstConstraintChecks3.js | 42 +- .../overloadOnConstConstraintChecks4.js | 55 +- ...nstInBaseWithBadImplementationInDerived.js | 9 +- .../reference/overloadOnConstInCallback1.js | 11 +- ...tInObjectLiteralImplementingAnInterface.js | 2 +- .../reference/overloadOnConstInheritance4.js | 9 +- .../overloadOnConstNoAnyImplementation.js | 6 +- .../overloadOnConstNoAnyImplementation2.js | 19 +- ...verloadOnConstNoNonSpecializedSignature.js | 9 +- .../overloadOnConstNoStringImplementation.js | 6 +- .../overloadOnConstNoStringImplementation2.js | 19 +- .../overloadOnConstantsInvalidOverload1.js | 57 +- ...verloadOnGenericClassAndNonGenericClass.js | 42 +- .../baselines/reference/overloadResolution.js | 53 +- .../overloadResolutionClassConstructors.js | 96 +- .../overloadResolutionConstructors.js | 53 +- ...overloadResolutionOnDefaultConstructor1.js | 11 +- .../overloadResolutionOverCTLambda.js | 2 +- .../overloadResolutionOverNonCTLambdas.js | 19 +- .../reference/overloadReturnTypes.js | 7 +- tests/baselines/reference/overloadTag1.js | 8 +- ...CallbacksWithDifferingOptionalityOnArgs.js | 4 +- ...ConstructorFixesInferencesAppropriately.js | 14 +- .../overloadedStaticMethodSpecialization.js | 11 +- .../reference/overloadingOnConstants1.js | 57 +- .../reference/overloadingOnConstants2.js | 38 +- ...esolutionWithConstraintCheckingDeferred.js | 14 +- .../reference/overloadsWithComputedNames.js | 58 +- .../overloadsWithProvisionalErrors.js | 6 +- .../reference/overloadsWithinClasses.js | 29 +- tests/baselines/reference/override1.js | 100 +- tests/baselines/reference/override10.js | 33 +- tests/baselines/reference/override11.js | 35 +- tests/baselines/reference/override15.js | 35 +- tests/baselines/reference/override2.js | 68 +- tests/baselines/reference/override3.js | 54 +- tests/baselines/reference/override4.js | 54 +- tests/baselines/reference/override5.js | 68 +- tests/baselines/reference/override6.js | 39 +- tests/baselines/reference/override7.js | 68 +- tests/baselines/reference/override8.js | 70 +- .../overrideBaseIntersectionMethod.js | 62 +- .../reference/overrideParameterProperty.js | 82 +- .../overrideWithoutNoImplicitOverride1.js | 52 +- .../overridingPrivateStaticMembers.js | 31 +- tests/baselines/reference/overshifts.js | 2 +- tests/baselines/reference/packageJsonMain.js | 6 +- .../reference/paramPropertiesInSignatures.js | 7 +- .../reference/parameterDecoratorsEmitCrash.js | 28 +- .../parameterDestructuringObjectLiteral.js | 6 +- ...meterInitializerBeforeDestructuringEmit.js | 15 +- ...rwardReferencing(target=es2015).errors.txt | 71 + ...lizersForwardReferencing(target=es2015).js | 79 + ...sForwardReferencing(target=es2015).symbols | 121 + ...rsForwardReferencing(target=es2015).types} | 0 ...ForwardReferencing(target=es5).errors.txt} | 0 ...ializersForwardReferencing(target=es5).js} | 0 ...ersForwardReferencing(target=es5).symbols} | 0 ...lizersForwardReferencing(target=es5).types | 208 + ...wardReferencing1(target=es2015).errors.txt | 53 + ...izersForwardReferencing1(target=es2015).js | 74 + ...ForwardReferencing1(target=es2015).symbols | 94 + ...rsForwardReferencing1(target=es2015).types | 153 + ...orwardReferencing1(target=es5).errors.txt} | 0 ...alizersForwardReferencing1(target=es5).js} | 0 ...rsForwardReferencing1(target=es5).symbols} | 0 ...zersForwardReferencing1(target=es5).types} | 0 .../reference/parameterListAsTupleType.js | 29 +- .../parameterNamesInTypeParameterList.js | 27 +- .../parameterPropertyInConstructor2.js | 7 +- .../parameterPropertyInConstructor3.js | 7 +- .../parameterPropertyInConstructor4.js | 12 +- ...meterPropertyInConstructorWithPrologues.js | 109 +- ...ameterPropertyInitializerInInitializers.js | 8 +- .../parameterPropertyOutsideConstructor.js | 9 +- ...ameterPropertyReferencingOtherParameter.js | 8 +- .../parameterReferenceInInitializer1.js | 8 +- .../parameterReferenceInInitializer2.js | 3 +- .../parameterReferencesOtherParameter1.js | 15 +- .../parameterReferencesOtherParameter2.js | 15 +- .../parametersWithNoAnnotationAreAny.js | 19 +- ...ralTypesWhenAppropriatelyContextualized.js | 9 +- ...enthesisDoesNotBlockAliasSymbolCreation.js | 11 +- .../parenthesizedArrowExpressionASI.js | 4 +- .../parenthesizedAsyncArrowFunction.js | 32 +- .../parenthesizedContexualTyping1.js | 32 +- .../parenthesizedContexualTyping2.js | 38 +- ...thesizedSatisfiesExpressionWithComments.js | 4 +- ...arseArrowFunctionWithFunctionReturnType.js | 2 +- .../parseEntityNameWithReservedWord.js | 2 +- .../reference/parseErrorInHeritageClause1.js | 24 +- .../parseErrorIncorrectReturnToken.js | 4 +- .../parseGenericArrowRatherThanLeftShift.js | 2 +- .../reference/parseInvalidNonNullableTypes.js | 8 +- .../reference/parseInvalidNullableTypes.js | 16 +- tests/baselines/reference/parseJsxExtends1.js | 5 +- tests/baselines/reference/parseJsxExtends2.js | 5 +- .../parseObjectLiteralsWithoutTypes.js | 6 +- .../reference/parseReplacementCharacter.js | 4 +- ...rseUnaryExpressionNoTypeAssertionInJsx4.js | 4 +- tests/baselines/reference/parser0_004152.js | 11 +- tests/baselines/reference/parser509546.js | 11 +- tests/baselines/reference/parser509546_1.js | 11 +- tests/baselines/reference/parser509546_2.js | 10 +- tests/baselines/reference/parser509630.js | 31 +- tests/baselines/reference/parser509667.js | 19 +- tests/baselines/reference/parser509668.js | 11 +- tests/baselines/reference/parser509669.js | 2 +- tests/baselines/reference/parser512084.js | 7 +- tests/baselines/reference/parser512097.js | 2 +- tests/baselines/reference/parser536727.js | 6 +- tests/baselines/reference/parser553699.js | 18 +- tests/baselines/reference/parser585151.js | 7 +- tests/baselines/reference/parser618973.js | 13 +- tests/baselines/reference/parser642331.js | 8 +- tests/baselines/reference/parser642331_1.js | 8 +- .../parserAccessibilityAfterStatic1.js | 7 +- .../parserAccessibilityAfterStatic10.js | 9 +- .../parserAccessibilityAfterStatic11.js | 9 +- .../parserAccessibilityAfterStatic14.js | 9 +- .../parserAccessibilityAfterStatic2.js | 7 +- .../parserAccessibilityAfterStatic3.js | 9 +- .../parserAccessibilityAfterStatic4.js | 7 +- .../parserAccessibilityAfterStatic5.js | 7 +- .../parserAccessibilityAfterStatic6.js | 7 +- .../parserAccessibilityAfterStatic7.js | 9 +- .../reference/parserArgumentList1.js | 5 +- .../parserArrowFunctionExpression1.js | 2 +- .../parserArrowFunctionExpression2.js | 2 +- .../parserArrowFunctionExpression3.js | 2 +- .../parserArrowFunctionExpression4.js | 2 +- .../parserArrowFunctionExpression5.js | 2 +- .../parserAstSpans1(target=es2015).errors.txt | 228 + .../parserAstSpans1(target=es2015).js | 368 + ...=> parserAstSpans1(target=es2015).symbols} | 0 ...s => parserAstSpans1(target=es2015).types} | 0 ...=> parserAstSpans1(target=es5).errors.txt} | 0 ...ans1.js => parserAstSpans1(target=es5).js} | 0 .../parserAstSpans1(target=es5).symbols | 642 ++ .../parserAstSpans1(target=es5).types | 1080 +++ .../parserCastVersusArrowFunction1.js | 12 +- tests/baselines/reference/parserClass1.js | 23 +- tests/baselines/reference/parserClass2.js | 11 +- .../reference/parserClassDeclaration1.js | 24 +- .../reference/parserClassDeclaration10.js | 7 +- .../reference/parserClassDeclaration11.js | 9 +- .../reference/parserClassDeclaration12.js | 8 +- .../reference/parserClassDeclaration13.js | 9 +- .../reference/parserClassDeclaration14.js | 7 +- .../reference/parserClassDeclaration15.js | 8 +- .../reference/parserClassDeclaration16.js | 9 +- .../reference/parserClassDeclaration19.js | 9 +- .../reference/parserClassDeclaration2.js | 7 +- .../reference/parserClassDeclaration20.js | 9 +- .../reference/parserClassDeclaration21.js | 9 +- .../reference/parserClassDeclaration22.js | 9 +- .../reference/parserClassDeclaration23.js | 7 +- .../reference/parserClassDeclaration24.js | 7 +- .../reference/parserClassDeclaration25.js | 7 +- .../reference/parserClassDeclaration26.js | 7 +- .../reference/parserClassDeclaration3.js | 24 +- .../reference/parserClassDeclaration4.js | 24 +- .../reference/parserClassDeclaration5.js | 24 +- .../reference/parserClassDeclaration6.js | 24 +- .../reference/parserClassDeclaration8.js | 7 +- .../reference/parserClassDeclaration9.js | 7 +- .../parserClassDeclarationIndexSignature1.js | 7 +- .../parserConstructorDeclaration1.js | 8 +- .../parserConstructorDeclaration10.js | 8 +- .../parserConstructorDeclaration11.js | 8 +- .../parserConstructorDeclaration12.js | 15 +- .../parserConstructorDeclaration2.js | 8 +- .../parserConstructorDeclaration3.js | 8 +- .../parserConstructorDeclaration4.js | 8 +- .../parserConstructorDeclaration5.js | 8 +- .../parserConstructorDeclaration6.js | 8 +- .../parserConstructorDeclaration7.js | 8 +- .../parserConstructorDeclaration8.js | 7 +- .../parserConstructorDeclaration9.js | 8 +- .../reference/parserES3Accessors1.js | 13 +- .../reference/parserES3Accessors2.js | 13 +- tests/baselines/reference/parserEnum1.js | 7 +- tests/baselines/reference/parserEnum2.js | 7 +- tests/baselines/reference/parserEnum3.js | 7 +- tests/baselines/reference/parserEnum4.js | 7 +- .../parserErrantSemicolonInClass1.js | 51 +- .../parserErrorRecoveryIfStatement1.js | 19 +- .../parserErrorRecoveryIfStatement2.js | 19 +- .../parserErrorRecoveryIfStatement3.js | 19 +- .../parserErrorRecoveryIfStatement4.js | 19 +- .../parserErrorRecoveryIfStatement5.js | 11 +- .../parserErrorRecoveryIfStatement6.js | 19 +- .../reference/parserErrorRecovery_Block3.js | 13 +- .../parserErrorRecovery_ClassElement1.js | 14 +- .../parserErrorRecovery_ClassElement2.js | 9 +- .../parserErrorRecovery_ClassElement3.js | 9 +- ...rrorRecovery_ExtendsOrImplementsClause1.js | 7 +- ...rrorRecovery_ExtendsOrImplementsClause2.js | 24 +- ...rrorRecovery_ExtendsOrImplementsClause3.js | 7 +- ...rrorRecovery_ExtendsOrImplementsClause4.js | 24 +- ...rrorRecovery_ExtendsOrImplementsClause5.js | 24 +- ...ErrorRecovery_IncompleteMemberVariable1.js | 13 +- ...ErrorRecovery_IncompleteMemberVariable2.js | 13 +- .../parserErrorRecovery_ObjectLiteral2.js | 3 +- .../parserErrorRecovery_ParameterList5.js | 2 +- .../parserErrorRecovery_ParameterList6.js | 9 +- .../parserErrorRecovery_SourceUnit1.js | 14 +- .../parserErrorRecovery_SwitchStatement2.js | 14 +- .../reference/parserExportAssignment3.js | 3 +- .../reference/parserExportAssignment4.js | 3 +- .../reference/parserExportAssignment7.js | 7 +- .../reference/parserExportAssignment8.js | 7 +- ...rForInStatement8(target=es2015).errors.txt | 17 + .../parserForInStatement8(target=es2015).js | 15 + ...serForInStatement8(target=es2015).symbols} | 0 ...parserForInStatement8(target=es2015).types | 57 + ...serForInStatement8(target=es5).errors.txt} | 0 ...s => parserForInStatement8(target=es5).js} | 0 .../parserForInStatement8(target=es5).symbols | 21 + ...> parserForInStatement8(target=es5).types} | 0 .../reference/parserForStatement9.js | 4 +- .../parserFunctionPropertyAssignment1.js | 2 +- .../parserFunctionPropertyAssignment2.js | 2 +- .../parserFunctionPropertyAssignment3.js | 2 +- .../parserFunctionPropertyAssignment4.js | 2 +- .../reference/parserGenericClass1.js | 7 +- .../reference/parserGenericClass2.js | 7 +- .../reference/parserGenericConstraint1.js | 7 +- .../reference/parserGenericConstraint2.js | 7 +- .../reference/parserGenericConstraint3.js | 7 +- .../reference/parserGenericConstraint4.js | 7 +- .../reference/parserGenericConstraint5.js | 7 +- .../reference/parserGenericConstraint6.js | 7 +- .../reference/parserGenericConstraint7.js | 7 +- .../parserGenericsInTypeContexts1.js | 24 +- .../parserGenericsInTypeContexts2.js | 24 +- .../parserIndexMemberDeclaration1.js | 7 +- .../parserIndexMemberDeclaration10.js | 7 +- .../parserIndexMemberDeclaration2.js | 7 +- .../parserIndexMemberDeclaration3.js | 7 +- .../parserIndexMemberDeclaration4.js | 7 +- .../parserIndexMemberDeclaration5.js | 7 +- .../parserIndexMemberDeclaration6.js | 7 +- .../parserIndexMemberDeclaration7.js | 7 +- .../parserIndexMemberDeclaration8.js | 7 +- .../parserIndexMemberDeclaration9.js | 7 +- .../reference/parserInterfaceDeclaration6.js | 3 +- .../reference/parserInterfaceDeclaration7.js | 3 +- ...InvalidIdentifiersInVariableStatements1.js | 7 +- .../reference/parserIsClassMemberStart.js | 7 +- .../parserMemberFunctionDeclaration1.js | 9 +- .../parserMemberFunctionDeclaration2.js | 9 +- .../parserMemberFunctionDeclaration3.js | 9 +- .../parserMemberFunctionDeclaration4.js | 9 +- .../parserMemberFunctionDeclaration5.js | 9 +- ...erMemberFunctionDeclarationAmbiguities1.js | 23 +- .../parserMemberVariableDeclaration1.js | 7 +- .../parserMemberVariableDeclaration2.js | 7 +- .../parserMemberVariableDeclaration3.js | 7 +- .../parserMemberVariableDeclaration4.js | 7 +- .../parserMemberVariableDeclaration5.js | 7 +- .../parserMissingLambdaOpenBrace1.js | 16 +- .../parserModifierOnStatementInBlock1.js | 5 +- .../parserModifierOnStatementInBlock3.js | 5 +- tests/baselines/reference/parserModule1.js | 7 +- tests/baselines/reference/parserNotRegex2.js | 4 +- .../reference/parserParameterList1.js | 9 +- .../reference/parserParameterList10.js | 14 +- .../reference/parserParameterList11.js | 8 +- .../reference/parserParameterList16.js | 9 +- .../reference/parserParameterList17.js | 8 +- .../reference/parserParameterList2.js | 11 +- .../reference/parserParameterList3.js | 9 +- .../reference/parserParameterList6.js | 7 +- .../reference/parserParameterList7.js | 7 +- .../reference/parserParameterList9.js | 14 +- ...renthesizedVariableAndFunctionInTernary.js | 4 +- ...riableAndParenthesizedFunctionInTernary.js | 6 +- ...arserPrivateIdentifierInArrayAssignment.js | 3 +- .../baselines/reference/parserRealSource1.js | 65 +- .../baselines/reference/parserRealSource10.js | 198 +- .../baselines/reference/parserRealSource11.js | 1573 ++-- .../baselines/reference/parserRealSource12.js | 48 +- .../baselines/reference/parserRealSource13.js | 4 +- .../baselines/reference/parserRealSource14.js | 265 +- .../baselines/reference/parserRealSource2.js | 28 +- .../baselines/reference/parserRealSource3.js | 2 +- .../baselines/reference/parserRealSource4.js | 126 +- .../baselines/reference/parserRealSource5.js | 27 +- .../baselines/reference/parserRealSource6.js | 49 +- .../baselines/reference/parserRealSource7.js | 9 +- .../baselines/reference/parserRealSource8.js | 22 +- .../baselines/reference/parserRealSource9.js | 35 +- ...parserRegularExpressionDivideAmbiguity6.js | 4 +- .../parserShorthandPropertyAssignment1.js | 2 +- .../parserShorthandPropertyAssignment5.js | 2 +- .../reference/parserSuperExpression1.js | 22 +- .../reference/parserSuperExpression2.js | 11 +- .../reference/parserSuperExpression3.js | 11 +- .../reference/parserSuperExpression4.js | 22 +- tests/baselines/reference/parserUnicode3.js | 7 +- .../reference/parserUnparsedTokenCrash2.js | 3 +- .../reference/parserX_ArrowFunction1.js | 2 +- .../reference/parserX_ArrowFunction4.js | 2 +- ...parser_continueNotInIterationStatement4.js | 2 +- tests/baselines/reference/parserharness.js | 573 +- tests/baselines/reference/parserindenter.js | 111 +- ...sRecoversWhenHittingUnexpectedSemicolon.js | 9 +- ...ialDiscriminatedUnionMemberHasGoodError.js | 2 +- .../partialOfLargeAPIIsAbleToBeWorkedWith.js | 14 +- .../reference/partiallyAmbientClodule.js | 7 +- ...artiallyAnnotatedFunctionInferenceError.js | 37 +- ...tatedFunctionInferenceWithTypeParameter.js | 68 +- ...llyAnnotatedFunctionWitoutTypeParameter.js | 4 +- .../partiallyDiscriminantedUnions.js | 18 +- .../reference/partiallyNamedTuples.js | 37 +- .../reference/partiallyNamedTuples2.js | 6 +- .../reference/partiallyNamedTuples3.js | 8 +- .../pathMappingBasedModuleResolution3_node.js | 6 +- .../pathMappingBasedModuleResolution4_node.js | 6 +- .../pathMappingBasedModuleResolution5_node.js | 8 +- .../pathMappingBasedModuleResolution6_node.js | 2 +- .../pathMappingBasedModuleResolution7_node.js | 10 +- ...duleResolution_rootImport_aliasWithRoot.js | 13 +- ...lution_rootImport_aliasWithRoot.trace.json | 4 +- ...Import_aliasWithRoot_differentRootTypes.js | 13 +- ...liasWithRoot_differentRootTypes.trace.json | 36 +- ...ootImport_aliasWithRoot_multipleAliases.js | 13 +- ...t_aliasWithRoot_multipleAliases.trace.json | 4 +- ...n_rootImport_aliasWithRoot_realRootFile.js | 8 +- ...port_aliasWithRoot_realRootFile.trace.json | 4 +- ...leResolution_rootImport_noAliasWithRoot.js | 13 +- ...tion_rootImport_noAliasWithRoot.trace.json | 4 +- ...rootImport_noAliasWithRoot_realRootFile.js | 8 +- ...rt_noAliasWithRoot_realRootFile.trace.json | 4 +- ...pingBasedModuleResolution_withExtension.js | 13 +- ...dModuleResolution_withExtension.trace.json | 4 +- ...lution_withExtension_MapedToNodeModules.js | 3 +- ...ithExtension_MapedToNodeModules.trace.json | 2 +- ...leResolution_withExtension_failedLookup.js | 3 +- ...tion_withExtension_failedLookup.trace.json | 2 +- tests/baselines/reference/pathsValidation1.js | 2 +- tests/baselines/reference/pathsValidation2.js | 2 +- tests/baselines/reference/pathsValidation3.js | 2 +- tests/baselines/reference/pathsValidation4.js | 4 +- .../reference/pathsValidation4.trace.json | 2 +- tests/baselines/reference/pathsValidation5.js | 4 +- .../reference/pathsValidation5.trace.json | 2 +- ...denticalInterfacesWithGenericSignatures.js | 86 +- .../reference/pickOfLargeObjectUnionWorks.js | 2 +- tests/baselines/reference/pinnedComments1.js | 7 +- tests/baselines/reference/plainJSRedeclare.js | 2 +- .../baselines/reference/plainJSRedeclare2.js | 2 +- .../baselines/reference/plainJSRedeclare3.js | 2 +- .../reference/plusOperatorWithAnyOtherType.js | 13 +- .../reference/plusOperatorWithBooleanType.js | 9 +- .../reference/plusOperatorWithNumberType.js | 11 +- .../reference/plusOperatorWithStringType.js | 11 +- .../potentiallyUnassignedVariableInCatch.js | 2 +- .../baselines/reference/predicateSemantics.js | 88 +- ...dNumberLiteralAssignToNumberLiteralType.js | 4 +- .../reference/preserveUnusedImports.js | 19 +- ...erveValueImports(isolatedmodules=false).js | 4 +- ...serveValueImports(isolatedmodules=true).js | 4 +- ...ueImports_errors(isolatedmodules=false).js | 7 +- ...lueImports_errors(isolatedmodules=true).js | 7 +- .../prespecializedGenericMembers1.js | 14 +- .../reference/prettyFileWithErrorsAndTabs.js | 6 +- .../reference/primitiveConstraints2.js | 11 +- tests/baselines/reference/primitiveMembers.js | 37 +- .../reference/primitiveTypeAsClassName.js | 7 +- .../reference/primitiveUnionDetection.js | 2 +- .../privacyCannotNameVarTypeDeclFile.js | 72 +- .../privacyCheckAnonymousFunctionParameter.js | 2 +- ...nalModuleExportAssignmentOfGenericClass.js | 7 +- ...arameterReferenceInConstructorParameter.js | 15 +- .../privacyCheckTypeOfInvisibleModuleError.js | 2 +- ...rivacyCheckTypeOfInvisibleModuleNoError.js | 2 +- tests/baselines/reference/privacyClass.js | 363 +- .../privacyClassExtendsClauseDeclFile.js | 308 +- .../privacyClassImplementsClauseDeclFile.js | 168 +- tests/baselines/reference/privacyFunc.js | 195 +- ...FunctionCannotNameParameterTypeDeclFile.js | 244 +- ...acyFunctionCannotNameReturnTypeDeclFile.js | 144 +- .../privacyFunctionParameterDeclFile.js | 702 +- .../privacyFunctionReturnTypeDeclFile.js | 1118 ++- tests/baselines/reference/privacyGloClass.js | 165 +- tests/baselines/reference/privacyGloFunc.js | 482 +- tests/baselines/reference/privacyGloImport.js | 27 +- .../reference/privacyGloImportParseErrors.js | 27 +- .../reference/privacyGloInterface.js | 25 +- tests/baselines/reference/privacyGloVar.js | 46 +- tests/baselines/reference/privacyImport.js | 54 +- .../reference/privacyImportParseErrors.js | 58 +- tests/baselines/reference/privacyInterface.js | 48 +- ...yLocalInternalReferenceImportWithExport.js | 36 +- ...calInternalReferenceImportWithoutExport.js | 36 +- ...elAmbientExternalModuleImportWithExport.js | 14 +- ...mbientExternalModuleImportWithoutExport.js | 20 +- ...pLevelInternalReferenceImportWithExport.js | 36 +- ...velInternalReferenceImportWithoutExport.js | 36 +- .../privacyTypeParameterOfFunction.js | 152 +- .../privacyTypeParameterOfFunctionDeclFile.js | 508 +- .../reference/privacyTypeParametersOfClass.js | 76 +- .../privacyTypeParametersOfClassDeclFile.js | 268 +- .../privacyTypeParametersOfInterface.js | 28 +- ...rivacyTypeParametersOfInterfaceDeclFile.js | 84 +- tests/baselines/reference/privacyVar.js | 90 +- .../baselines/reference/privacyVarDeclFile.js | 296 +- .../reference/privateAccessInSubclass1.js | 35 +- ...ivateClassPropertyAccessibleWithinClass.js | 81 +- ...ilityFromUnknown(target=es2015).errors.txt | 13 + ...AssignabilityFromUnknown(target=es2015).js | 19 + ...abilityFromUnknown(target=es2015).symbols} | 0 ...gnabilityFromUnknown(target=es2015).types} | 0 ...abilityFromUnknown(target=es5).errors.txt} | 0 ...ldAssignabilityFromUnknown(target=es5).js} | 0 ...signabilityFromUnknown(target=es5).symbols | 14 + ...AssignabilityFromUnknown(target=es5).types | 20 + tests/baselines/reference/privateIndexer.js | 21 +- tests/baselines/reference/privateIndexer2.js | 8 +- ...berAccessibility(target=es2015).errors.txt | 33 + ...tanceMemberAccessibility(target=es2015).js | 29 + ...emberAccessibility(target=es2015).symbols} | 0 ...eMemberAccessibility(target=es2015).types} | 0 ...emberAccessibility(target=es5).errors.txt} | 0 ...nstanceMemberAccessibility(target=es5).js} | 0 ...nceMemberAccessibility(target=es5).symbols | 35 + ...tanceMemberAccessibility(target=es5).types | 56 + .../reference/privateInstanceVisibility.js | 24 +- .../reference/privateInterfaceProperties.js | 14 +- ...meBadDeclaration(target=es2015).errors.txt | 41 + ...rivateNameBadDeclaration(target=es2015).js | 40 + ...NameBadDeclaration(target=es2015).symbols} | 0 ...teNameBadDeclaration(target=es2015).types} | 0 ...NameBadDeclaration(target=es5).errors.txt} | 0 ... privateNameBadDeclaration(target=es5).js} | 0 ...vateNameBadDeclaration(target=es5).symbols | 45 + ...rivateNameBadDeclaration(target=es5).types | 83 + .../reference/privateNameInObjectLiteral-1.js | 2 +- .../reference/privateNameInObjectLiteral-2.js | 4 +- ...nObjectLiteral-3(target=es2015).errors.txt | 12 + ...ateNameInObjectLiteral-3(target=es2015).js | 16 + ...eInObjectLiteral-3(target=es2015).symbols} | 0 ...ameInObjectLiteral-3(target=es2015).types} | 0 ...eInObjectLiteral-3(target=es5).errors.txt} | 0 ...ivateNameInObjectLiteral-3(target=es5).js} | 0 ...eNameInObjectLiteral-3(target=es5).symbols | 13 + ...ateNameInObjectLiteral-3(target=es5).types | 19 + ...JsBadDeclaration(target=es2015).errors.txt | 41 + ...meJsBadDeclaration(target=es2015).symbols} | 0 ...NameJsBadDeclaration(target=es2015).types} | 0 ...meJsBadDeclaration(target=es5).errors.txt} | 0 ...teNameJsBadDeclaration(target=es5).symbols | 45 + ...vateNameJsBadDeclaration(target=es5).types | 83 + tests/baselines/reference/privateNameJsx.js | 13 +- .../reference/privateNamesAndDecorators.js | 7 +- .../reference/privatePropertyInUnion.js | 7 +- .../privatePropertyUsingObjectType.js | 7 +- ...tedMembersAreNotAccessibleDestructuring.js | 58 +- .../privateStaticMemberAccessibility.js | 37 +- .../privateStaticNotAccessibleInClodule.js | 7 +- .../privateStaticNotAccessibleInClodule2.js | 31 +- .../baselines/reference/privateVisibility.js | 18 +- tests/baselines/reference/privateVisibles.js | 9 +- tests/baselines/reference/promiseChaining.js | 13 +- tests/baselines/reference/promiseChaining1.js | 13 +- tests/baselines/reference/promiseChaining2.js | 13 +- tests/baselines/reference/promiseIdentity.js | 3 +- tests/baselines/reference/promiseIdentity2.js | 3 +- .../reference/promiseIdentityWithAny.js | 3 +- .../reference/promiseIdentityWithAny2.js | 3 +- .../promiseIdentityWithConstraints.js | 3 +- .../reference/promisePermutations.js | 8 +- .../reference/promisePermutations2.js | 8 +- .../reference/promisePermutations3.js | 8 +- .../reference/promiseTypeInference.js | 2 +- .../reference/propTypeValidatorInference.js | 47 +- .../propagationOfPromiseInitialization.js | 4 +- .../reference/propertiesAndIndexers.js | 31 +- .../propertiesAndIndexersForNumericNames.js | 7 +- tests/baselines/reference/propertyAccess.js | 33 +- .../reference/propertyAccessChain.3.js | 16 +- .../propertyAccessNumericLiterals.js | 4 +- .../propertyAccessOnObjectLiteral.js | 9 +- ...rtyAccessOnTypeParameterWithConstraints.js | 13 +- ...tyAccessOnTypeParameterWithConstraints2.js | 52 +- ...tyAccessOnTypeParameterWithConstraints3.js | 52 +- ...tyAccessOnTypeParameterWithConstraints4.js | 13 +- ...tyAccessOnTypeParameterWithConstraints5.js | 48 +- ...AccessOnTypeParameterWithoutConstraints.js | 13 +- .../reference/propertyAccessWidening.js | 12 +- .../reference/propertyAccessibility1.js | 7 +- .../reference/propertyAccessibility2.js | 9 +- .../propertyAndAccessorWithSameName.js | 46 +- .../propertyAndFunctionWithSameName.js | 18 +- .../propertyAssignmentUseParentType1.js | 18 +- .../propertyIdentityWithPrivacyMismatch.js | 14 +- .../propertyNameWithoutTypeAnnotation.js | 7 +- .../reference/propertyNamedConstructor.js | 14 +- .../reference/propertyNamedPrototype.js | 7 +- .../reference/propertyNamesOfReservedWords.js | 7 +- .../propertyNamesWithStringLiteral.js | 7 +- tests/baselines/reference/propertyOrdering.js | 26 +- .../baselines/reference/propertyOrdering2.js | 11 +- .../reference/propertyOverridingPrototype.js | 33 +- .../propertyParameterWithQuestionMark.js | 7 +- .../reference/propertyWrappedInTry.js | 7 +- .../protectedAccessThroughContextualThis.js | 9 +- ...PropertyAccessibleWithinNestedSubclass1.js | 125 +- ...dClassPropertyAccessibleWithinSubclass2.js | 70 +- ...eWithinSubclass3(target=es2015).errors.txt | 19 + ...ccessibleWithinSubclass3(target=es2015).js | 29 + ...bleWithinSubclass3(target=es2015).symbols} | 0 ...sibleWithinSubclass3(target=es2015).types} | 0 ...bleWithinSubclass3(target=es5).errors.txt} | 0 ...yAccessibleWithinSubclass3(target=es5).js} | 0 ...essibleWithinSubclass3(target=es5).symbols | 37 + ...ccessibleWithinSubclass3(target=es5).types | 52 + ...berAccessibility(target=es2015).errors.txt | 86 + ...tanceMemberAccessibility(target=es2015).js | 83 + ...emberAccessibility(target=es2015).symbols} | 0 ...eMemberAccessibility(target=es2015).types} | 0 ...emberAccessibility(target=es5).errors.txt} | 0 ...nstanceMemberAccessibility(target=es5).js} | 0 ...nceMemberAccessibility(target=es5).symbols | 157 + ...tanceMemberAccessibility(target=es5).types | 282 + tests/baselines/reference/protectedMembers.js | 157 +- .../protectedMembersThisParameter.js | 132 +- ...icClassPropertyAccessibleWithinSubclass.js | 59 +- ...ccessibleWithinSubclass2(target=es2015).js | 43 + ...bleWithinSubclass2(target=es2015).symbols} | 0 ...sibleWithinSubclass2(target=es2015).types} | 0 ...bleWithinSubclass2(target=es5).errors.txt} | 0 ...yAccessibleWithinSubclass2(target=es5).js} | 0 ...essibleWithinSubclass2(target=es5).symbols | 59 + ...ccessibleWithinSubclass2(target=es5).types | 84 + .../protectedStaticNotAccessibleInClodule.js | 7 +- .../protoAsIndexInIndexExpression.js | 7 +- tests/baselines/reference/protoInIndexer.js | 7 +- ...prototypeInstantiatedWithBaseConstraint.js | 7 +- tests/baselines/reference/publicIndexer.js | 21 +- ...emberImplementedAsPrivateInDerivedClass.js | 7 +- ...solution-does-not-affect-class-heritage.js | 24 +- tests/baselines/reference/qualify.js | 10 +- ...kIntersectionCheckCorrectlyCachesErrors.js | 29 +- ...uickinfoTypeAtReturnPositionsInaccurate.js | 65 +- .../reference/quotedAccessorName1.js | 13 +- .../reference/quotedAccessorName2.js | 13 +- .../baselines/reference/quotedConstructors.js | 41 +- .../reference/quotedFunctionName1.js | 9 +- .../reference/quotedFunctionName2.js | 9 +- .../reference/quotedPropertyName1.js | 7 +- .../reference/quotedPropertyName2.js | 9 +- .../reference/quotedPropertyName3.js | 14 +- .../raiseErrorOnParameterProperty.js | 7 +- .../reExportAliasMakesInstantiated.js | 7 +- tests/baselines/reference/reExportJsFromTs.js | 40 +- .../baselines/reference/reExportUndefined2.js | 2 +- .../reference/reachabilityChecks1.js | 19 +- .../reference/reachabilityChecks11.js | 19 +- .../reference/reachabilityChecks3.js | 4 +- .../reactDefaultPropsInferenceSuccess.js | 95 +- .../reference/reactHOCSpreadprops.js | 41 +- ...ImportUnusedInNewJSXEmit(jsx=react-jsx).js | 11 +- ...ortUnusedInNewJSXEmit(jsx=react-jsxdev).js | 13 +- .../reactJsxReactResolvedNodeNext.trace.json | 136 - ...eactJsxReactResolvedNodeNextEsm.trace.json | 136 - .../reactNamespaceImportPresevation.js | 2 +- .../reference/reactNamespaceJSXEmit.js | 17 +- .../reactReadonlyHOCAssignabilityReal.js | 76 +- ...uxLikeDeferredInferenceAllowsAssignment.js | 73 +- .../reactSFCAndFunctionResolvable.js | 43 +- .../reactTagNameComponentWithPropsNoOOM.js | 56 +- .../reactTagNameComponentWithPropsNoOOM2.js | 56 +- ...eactTransitiveImportHasValidDeclaration.js | 11 +- .../reference/readonlyArraysAndTuples2.js | 23 +- ...lyAssignmentInSubclassOfClassExpression.js | 33 +- .../readonlyConstructorAssignment.js | 72 +- ...yFloat32ArrayAssignableWithFloat32Array.js | 5 +- .../readonlyInConstructorParameters.js | 21 +- ...readonlyPropertySubtypeRelationDirected.js | 36 +- tests/baselines/reference/readonlyReadonly.js | 7 +- .../reference/readonlyRestParameters.js | 43 +- .../readonlyTupleAndArrayElaboration.js | 69 +- .../baselines/reference/reassignStaticProp.js | 9 +- .../reference/recursiveArrayNotCircular.js | 6 +- .../reference/recursiveBaseCheck3.js | 33 +- .../reference/recursiveBaseCheck4.js | 24 +- .../reference/recursiveBaseCheck5.js | 7 +- .../reference/recursiveBaseCheck6.js | 24 +- .../recursiveBaseConstructorCreation1.js | 33 +- .../reference/recursiveClassBaseType.js | 51 +- ...ssInstantiationsWithDefaultConstructors.js | 31 +- .../reference/recursiveClassReferenceTest.js | 88 +- .../recursiveClassReferenceTest.js.map | 4 +- .../recursiveClassReferenceTest.sourcemap.txt | 1345 ++-- .../reference/recursiveCloduleReference.js | 7 +- .../reference/recursiveComplicatedClasses.js | 58 +- .../reference/recursiveConditionalCrash2.js | 3 +- .../reference/recursiveConditionalCrash3.js | 9 +- ...cursiveConditionalEvaluationNonInfinite.js | 4 +- .../recursiveExcessPropertyChecks.js | 2 +- ...siveExportAssignmentAndFindAliasedType1.js | 7 +- ...siveExportAssignmentAndFindAliasedType2.js | 7 +- ...siveExportAssignmentAndFindAliasedType3.js | 7 +- ...siveExportAssignmentAndFindAliasedType4.js | 9 +- ...siveExportAssignmentAndFindAliasedType5.js | 11 +- ...siveExportAssignmentAndFindAliasedType6.js | 13 +- ...siveExportAssignmentAndFindAliasedType7.js | 13 +- .../reference/recursiveFieldSetting.js | 21 +- .../reference/recursiveFunctionTypes.js | 9 +- .../reference/recursiveFunctionTypes1.js | 9 +- .../reference/recursiveGetterAccess.js | 13 +- .../reference/recursiveInferenceBug.js | 2 +- .../reference/recursiveInheritance3.js | 9 +- .../reference/recursiveInitializer.js | 2 +- .../reference/recursiveMappedTypes.js | 3 +- tests/baselines/reference/recursiveMods.js | 7 +- .../reference/recursiveReverseMappedType.js | 13 +- .../recursiveSpecializationOfSignatures.js | 15 +- .../reference/recursiveTupleTypeInference.js | 5 +- .../reference/recursiveTupleTypes1.js | 4 +- .../reference/recursiveTupleTypes2.js | 4 +- ...sWithSpreadConditionalReturnNotCircular.js | 9 +- .../recursiveTypeInGenericConstraint.js | 21 +- ...rameterConstraintReferenceLacksTypeArgs.js | 7 +- .../recursiveTypeParameterReferenceError1.js | 14 +- .../reference/recursiveTypeReferences1.js | 55 +- .../reference/recursiveTypeReferences2.js | 2 +- .../reference/recursiveTypeRelations.js | 22 +- .../recursiveTypesUsedAsFunctionParameters.js | 14 +- ...sivelySpecializedConstructorDeclaration.js | 31 +- .../reference/reexportClassDefinition.js | 35 +- .../reference/reexportDefaultIsCallable.js | 32 +- .../reference/reexportMissingDefault.js | 17 +- .../reference/reexportMissingDefault1.js | 17 +- .../reference/reexportMissingDefault2.js | 17 +- .../reference/reexportMissingDefault3.js | 17 +- .../reference/reexportMissingDefault4.js | 12 +- .../reference/reexportMissingDefault7.js | 2 +- .../reference/reexportMissingDefault8.js | 2 +- .../reexportNameAliasedAndHoisted.js | 15 +- .../reexportWrittenCorrectlyInDeclaration.js | 44 +- .../reference/reexportedMissingAlias.js | 28 +- .../reference/referenceSatisfiesExpression.js | 19 +- .../referenceTypesPreferedToPathIfPossible.js | 8 +- ...expExecAndMatchTypeUsages(strict=false).js | 5 +- ...gexpExecAndMatchTypeUsages(strict=true).js | 5 +- .../regularExpressionGroupNameSuggestions.js | 2 +- ...ssionSuggestions(target=es2015).errors.txt | 25 + ...lueExpressionSuggestions(target=es2015).js | 8 + ...ressionSuggestions(target=es2015).symbols} | 0 ...xpressionSuggestions(target=es2015).types} | 0 ...ressionSuggestions(target=es5).errors.txt} | 0 ...ValueExpressionSuggestions(target=es5).js} | 0 ...eExpressionSuggestions(target=es5).symbols | 6 + ...lueExpressionSuggestions(target=es5).types | 9 + .../relatedViaDiscriminatedTypeNoError.js | 38 +- .../reference/relationalOperatorComparable.js | 26 +- .../reference/relativePathMustResolve.js | 2 +- .../relativePathToDeclarationFile.js | 6 +- tests/baselines/reference/renamed.js | 18 +- .../requireAsFunctionInExternalModule.js | 58 +- .../reference/requireEmitSemicolon.js | 19 +- .../requireOfESWithPropertyAccess.js | 9 +- .../baselines/reference/requireOfJsonFile.js | 8 +- .../reference/requireOfJsonFileNonRelative.js | 8 +- ...NonRelativeWithoutExtensionResolvesToTs.js | 4 +- .../reference/requireOfJsonFileTypes.js | 20 +- ...OfJsonFileWithAlwaysStrictWithoutErrors.js | 8 +- .../reference/requireOfJsonFileWithAmd.js | 4 +- ...quireOfJsonFileWithComputedPropertyName.js | 13 +- .../requireOfJsonFileWithDeclaration.js | 8 +- .../requireOfJsonFileWithEmptyObject.js | 6 +- ...uireOfJsonFileWithEmptyObjectWithErrors.js | 8 +- .../reference/requireOfJsonFileWithErrors.js | 8 +- ...thModuleEmitNone(target=es2015).errors.txt | 14 + ...nFileWithModuleEmitNone(target=es2015).js} | 0 ...WithModuleEmitNone(target=es2015).symbols} | 0 ...leWithModuleEmitNone(target=es2015).types} | 0 ...WithModuleEmitNone(target=es5).errors.txt} | 0 ...fJsonFileWithModuleEmitNone(target=es5).js | 19 + ...FileWithModuleEmitNone(target=es5).symbols | 14 + ...onFileWithModuleEmitNone(target=es5).types | 24 + ...equireOfJsonFileWithModuleEmitUndefined.js | 3 +- ...solutionEmitNone(target=es2015).errors.txt | 16 + ...eNodeResolutionEmitNone(target=es2015).js} | 0 ...ResolutionEmitNone(target=es2015).symbols} | 0 ...deResolutionEmitNone(target=es2015).types} | 0 ...ResolutionEmitNone(target=es5).errors.txt} | 0 ...oduleNodeResolutionEmitNone(target=es5).js | 19 + ...NodeResolutionEmitNone(target=es5).symbols | 14 + ...leNodeResolutionEmitNone(target=es5).types | 24 + ...leWithModuleNodeResolutionEmitUndefined.js | 3 +- .../requireOfJsonFileWithNoContent.js | 8 +- .../requireOfJsonFileWithSourceMap.js | 8 +- .../requireOfJsonFileWithSourceMap.js.map | 2 +- ...quireOfJsonFileWithSourceMap.sourcemap.txt | 18 +- .../requireOfJsonFileWithTraillingComma.js | 8 +- .../requireOfJsonFileWithoutAllowJs.js | 8 +- .../requireOfJsonFileWithoutExtension.js | 8 +- ...eOfJsonFileWithoutExtensionResolvesToTs.js | 10 +- .../requireOfJsonFileWithoutOutDir.js | 8 +- ...quireOfJsonFileWithoutResolveJsonModule.js | 10 +- ...eWithoutResolveJsonModuleAndPathMapping.js | 3 +- ...ResolveJsonModuleAndPathMapping.trace.json | 2 +- .../requireOfJsonFile_PathMapping.js | 3 +- .../requireOfJsonFile_PathMapping.trace.json | 2 +- .../reference/requireTwoPropertyAccesses.js | 2 +- .../requiredInitializedParameter1.js | 21 +- .../requiredInitializedParameter2.js | 11 +- .../requiredInitializedParameter3.js | 11 +- .../requiredInitializedParameter4.js | 11 +- ...equiredMappedTypeModifierTrumpsVariance.js | 27 +- tests/baselines/reference/reservedWords2.js | 21 +- tests/baselines/reference/reservedWords3.js | 7 +- ...esolutionCandidateFromPackageJsonField1.js | 7 +- ...esolutionCandidateFromPackageJsonField2.js | 8 +- ...nterfaceNameWithSameLetDeclarationName1.js | 2 +- ...nterfaceNameWithSameLetDeclarationName2.js | 4 +- ...veModuleNameWithSameLetDeclarationName1.js | 2 +- ...lveTypeAliasWithSameLetDeclarationName1.js | 9 +- ...ostic1(moduleresolution=node16).trace.json | 2 + ...lassDeclarationWhenInBaseTypeResolution.js | 5611 +++----------- .../reference/restArgAssignmentCompat.js | 8 +- .../baselines/reference/restArgMissingName.js | 7 +- .../reference/restElementAssignable.js | 12 +- .../reference/restElementMustBeLast.js | 5 +- .../restElementWithAssignmentPattern3.js | 3 +- .../restElementWithAssignmentPattern4.js | 3 +- .../restElementWithAssignmentPattern5.js | 3 +- .../restElementWithBindingPattern.js | 2 +- .../restElementWithBindingPattern2.js | 2 +- .../reference/restElementWithInitializer1.js | 2 +- .../reference/restElementWithInitializer2.js | 3 +- ...hNullInitializer(target=es2015).errors.txt | 24 + ...ementWithNullInitializer(target=es2015).js | 25 + ...ithNullInitializer(target=es2015).symbols} | 0 ...tWithNullInitializer(target=es2015).types} | 0 ...ithNullInitializer(target=es5).errors.txt} | 0 ...ElementWithNullInitializer(target=es5).js} | 0 ...entWithNullInitializer(target=es5).symbols | 24 + ...ementWithNullInitializer(target=es5).types | 37 + tests/baselines/reference/restIntersection.js | 2 +- .../reference/restParamAsOptional.js | 14 +- .../baselines/reference/restParamModifier.js | 8 +- .../baselines/reference/restParamModifier2.js | 11 +- .../restParameterAssignmentCompatibility.js | 31 +- .../restParameterNoTypeAnnotation.js | 6 +- .../reference/restParameterNotLast.js | 2 +- .../restParameterTypeInstantiation.js | 6 +- .../restParameterWithBindingPattern1.js | 8 +- .../restParameterWithBindingPattern1.js.map | 4 +- ...ParameterWithBindingPattern1.sourcemap.txt | 104 +- .../restParameterWithBindingPattern2.js | 8 +- .../restParameterWithBindingPattern2.js.map | 4 +- ...ParameterWithBindingPattern2.sourcemap.txt | 104 +- .../restParameterWithBindingPattern3.js | 40 +- ...estParameterWithoutAnnotationIsAnyArray.js | 54 +- tests/baselines/reference/restParameters.js | 28 +- .../restParametersOfNonArrayTypes.js | 54 +- .../restParametersOfNonArrayTypes2.js | 108 +- .../restParametersWithArrayTypeAnnotations.js | 108 +- .../reference/restParamsWithNonRestParams.js | 21 +- ...thBindingPattern(target=es2015).errors.txt | 28 + ...pertyWithBindingPattern(target=es2015).js} | 0 ...WithBindingPattern(target=es2015).symbols} | 0 ...tyWithBindingPattern(target=es2015).types} | 0 ...WithBindingPattern(target=es5).errors.txt} | 0 ...tPropertyWithBindingPattern(target=es5).js | 25 + ...ertyWithBindingPattern(target=es5).symbols | 8 + ...opertyWithBindingPattern(target=es5).types | 55 + .../baselines/reference/restTupleElements1.js | 14 +- .../restTuplesFromContextualTypes.js | 281 +- .../reference/restTypeRetainsMappyness.js | 4 +- tests/baselines/reference/restUnion.js | 6 +- .../reference/returnInConstructor1.js | 96 +- .../reference/returnInfiniteIntersection.js | 4 +- tests/baselines/reference/returnStatements.js | 33 +- .../returnTypeInferenceNotTooBroad.js | 9 +- ...PredicateIsInstantiateInContextOfTarget.js | 73 +- .../reference/returnTypeTypeArguments.js | 71 +- .../reference/returnValueInSetter.js | 15 +- .../reverseMappedContravariantInference.js | 2 +- .../reverseMappedPartiallyInferableTypes.js | 25 +- ...erseMappedTypeContextualTypeNotCircular.js | 6 +- .../reverseMappedTypeDeepDeclarationEmit.js | 11 +- ...reverseMappedTypeIntersectionConstraint.js | 29 +- .../reverseMappedTypeLimitedConstraint.js | 4 +- .../reverseMappedTypeRecursiveInference.js | 2 +- tests/baselines/reference/satisfiesEmit.js | 4 +- tests/baselines/reference/scannerClass2.js | 11 +- tests/baselines/reference/scannerEnum1.js | 7 +- tests/baselines/reference/scannertest1.js | 19 +- .../reference/scopeCheckClassProperty.js | 14 +- ...peCheckExtendedClassInsidePublicMethod2.js | 35 +- ...peCheckExtendedClassInsideStaticMethod1.js | 35 +- .../scopeCheckInsidePublicMethod1.js | 11 +- .../scopeCheckInsideStaticMethod1.js | 11 +- .../reference/scopeCheckStaticInitializer.js | 30 +- .../reference/scopeResolutionIdentifiers.js | 13 +- tests/baselines/reference/scopeTests.js | 37 +- tests/baselines/reference/scopedPackages.js | 3 +- .../reference/scopedPackages.trace.json | 6 +- .../reference/scopedPackagesClassic.js | 3 +- tests/baselines/reference/seeTag1.js | 6 +- tests/baselines/reference/seeTag2.js | 14 +- tests/baselines/reference/seeTag4.js | 2 +- tests/baselines/reference/selfInCallback.js | 16 +- tests/baselines/reference/selfInLambdas.js | 27 +- tests/baselines/reference/selfRef.js | 7 +- tests/baselines/reference/selfReference.js | 2 +- .../selfReferencesInFunctionParameters.js | 22 +- .../reference/selfReferencingFile.js | 7 +- .../reference/selfReferencingFile2.js | 7 +- .../reference/selfReferencingFile3.js | 7 +- .../reference/selfReferencingSpreadInLoop.js | 16 +- .../selfReferentialDefaultNoStackOverflow.js | 11 +- .../baselines/reference/setterBeforeGetter.js | 23 +- tests/baselines/reference/setterWithReturn.js | 25 +- .../reference/shadowPrivateMembers.js | 35 +- .../reference/shadowedInternalModule.js | 9 +- .../reference/shadowingViaLocalValue.js | 4 +- .../shadowingViaLocalValueOrBindingElement.js | 10 +- .../reference/shebangBeforeReferences.js | 2 +- .../reference/shorthandPropertyUndefined.js | 2 +- ...uldNotPrintNullEscapesIntoOctalLiterals.js | 10 +- .../sigantureIsSubTypeIfTheyAreIdentical.js | 11 +- ...reInstantiationWithRecursiveConstraints.js | 20 +- .../reference/signatureLengthMismatchCall.js | 2 +- .../signatureLengthMismatchInOverload.js | 2 +- ...signaturesUseJSDocForOptionalParameters.js | 6 +- .../reference/silentNeverPropagation.js | 2 +- ...tionParameterReferencedInObjectLiteral1.js | 2 +- .../reference/simpleRecursionWithBaseCase1.js | 4 +- ...itionalWithInteriorConditionalIsRelated.js | 2 +- ...IndirectedDeepObjectLiteralElaborations.js | 4 +- .../reference/sourceMap-FileWithComments.js | 13 +- .../sourceMap-FileWithComments.js.map | 4 +- .../sourceMap-FileWithComments.sourcemap.txt | 438 +- tests/baselines/reference/sourceMapSample.js | 17 +- .../reference/sourceMapSample.js.map | 4 +- .../reference/sourceMapSample.sourcemap.txt | 447 +- ...apValidationClassWithDefaultConstructor.js | 7 +- ...lidationClassWithDefaultConstructor.js.map | 4 +- ...nClassWithDefaultConstructor.sourcemap.txt | 41 +- ...aultConstructorAndCapturedThisStatement.js | 10 +- ...ConstructorAndCapturedThisStatement.js.map | 4 +- ...ctorAndCapturedThisStatement.sourcemap.txt | 128 +- ...sWithDefaultConstructorAndExtendsClause.js | 37 +- ...hDefaultConstructorAndExtendsClause.js.map | 4 +- ...tConstructorAndExtendsClause.sourcemap.txt | 201 +- .../reference/sourceMapValidationClasses.js | 17 +- .../sourceMapValidationClasses.js.map | 4 +- .../sourceMapValidationClasses.sourcemap.txt | 464 +- ...ayBindingPattern(target=es2015).errors.txt | 187 + ...ngForArrayBindingPattern(target=es2015).js | 179 + ...rArrayBindingPattern(target=es2015).js.map | 3 + ...indingPattern(target=es2015).sourcemap.txt | 3071 ++++++++ ...rrayBindingPattern(target=es2015).symbols} | 0 ...orArrayBindingPattern(target=es2015).types | 970 +++ ...ringForArrayBindingPattern(target=es5).js} | 0 ...ForArrayBindingPattern(target=es5).js.map} | 0 ...yBindingPattern(target=es5).sourcemap.txt} | 0 ...ForArrayBindingPattern(target=es5).symbols | 367 + ...gForArrayBindingPattern(target=es5).types} | 0 ...yBindingPattern2(target=es2015).errors.txt | 191 + ...gForArrayBindingPattern2(target=es2015).js | 190 + ...ArrayBindingPattern2(target=es2015).js.map | 3 + ...ndingPattern2(target=es2015).sourcemap.txt | 3126 ++++++++ ...rayBindingPattern2(target=es2015).symbols} | 0 ...rArrayBindingPattern2(target=es2015).types | 1226 +++ ...ingForArrayBindingPattern2(target=es5).js} | 0 ...orArrayBindingPattern2(target=es5).js.map} | 0 ...BindingPattern2(target=es5).sourcemap.txt} | 0 ...orArrayBindingPattern2(target=es5).symbols | 392 + ...ForArrayBindingPattern2(target=es5).types} | 0 ...ernDefaultValues(target=es2015).errors.txt | 234 + ...dingPatternDefaultValues(target=es2015).js | 186 + ...PatternDefaultValues(target=es2015).js.map | 3 + ...DefaultValues(target=es2015).sourcemap.txt | 3102 ++++++++ ...tternDefaultValues(target=es2015).symbols} | 0 ...gPatternDefaultValues(target=es2015).types | 1036 +++ ...indingPatternDefaultValues(target=es5).js} | 0 ...ngPatternDefaultValues(target=es5).js.map} | 0 ...rnDefaultValues(target=es5).sourcemap.txt} | 0 ...ngPatternDefaultValues(target=es5).symbols | 369 + ...ingPatternDefaultValues(target=es5).types} | 0 ...rnDefaultValues2(target=es2015).errors.txt | 240 + ...ingPatternDefaultValues2(target=es2015).js | 216 + ...atternDefaultValues2(target=es2015).js.map | 3 + ...efaultValues2(target=es2015).sourcemap.txt | 3222 ++++++++ ...ternDefaultValues2(target=es2015).symbols} | 0 ...PatternDefaultValues2(target=es2015).types | 1328 ++++ ...ndingPatternDefaultValues2(target=es5).js} | 0 ...gPatternDefaultValues2(target=es5).js.map} | 0 ...nDefaultValues2(target=es5).sourcemap.txt} | 0 ...gPatternDefaultValues2(target=es5).symbols | 393 + ...ngPatternDefaultValues2(target=es5).types} | 0 ...ionDestructuringForObjectBindingPattern.js | 28 +- ...estructuringForObjectBindingPattern.js.map | 4 +- ...uringForObjectBindingPattern.sourcemap.txt | 2166 +++--- ...onDestructuringForObjectBindingPattern2.js | 61 +- ...structuringForObjectBindingPattern2.js.map | 4 +- ...ringForObjectBindingPattern2.sourcemap.txt | 4433 +++++------ ...ingForObjectBindingPatternDefaultValues.js | 28 +- ...orObjectBindingPatternDefaultValues.js.map | 4 +- ...tBindingPatternDefaultValues.sourcemap.txt | 3111 ++++---- ...ngForObjectBindingPatternDefaultValues2.js | 123 +- ...rObjectBindingPatternDefaultValues2.js.map | 4 +- ...BindingPatternDefaultValues2.sourcemap.txt | 6637 ++++++++--------- ...ayBindingPattern(target=es2015).errors.txt | 170 + ...ForOfArrayBindingPattern(target=es2015).js | 185 + ...fArrayBindingPattern(target=es2015).js.map | 3 + ...indingPattern(target=es2015).sourcemap.txt | 2313 ++++++ ...rrayBindingPattern(target=es2015).symbols} | 0 ...OfArrayBindingPattern(target=es2015).types | 642 ++ ...ngForOfArrayBindingPattern(target=es5).js} | 0 ...rOfArrayBindingPattern(target=es5).js.map} | 0 ...yBindingPattern(target=es5).sourcemap.txt} | 0 ...rOfArrayBindingPattern(target=es5).symbols | 325 + ...orOfArrayBindingPattern(target=es5).types} | 0 ...yBindingPattern2(target=es2015).errors.txt | 175 + ...orOfArrayBindingPattern2(target=es2015).js | 194 + ...ArrayBindingPattern2(target=es2015).js.map | 3 + ...ndingPattern2(target=es2015).sourcemap.txt | 2352 ++++++ ...rayBindingPattern2(target=es2015).symbols} | 0 ...fArrayBindingPattern2(target=es2015).types | 746 ++ ...gForOfArrayBindingPattern2(target=es5).js} | 0 ...OfArrayBindingPattern2(target=es5).js.map} | 0 ...BindingPattern2(target=es5).sourcemap.txt} | 0 ...OfArrayBindingPattern2(target=es5).symbols | 345 + ...rOfArrayBindingPattern2(target=es5).types} | 0 ...ernDefaultValues(target=es2015).errors.txt | 170 + ...dingPatternDefaultValues(target=es2015).js | 185 + ...PatternDefaultValues(target=es2015).js.map | 3 + ...DefaultValues(target=es2015).sourcemap.txt | 2448 ++++++ ...tternDefaultValues(target=es2015).symbols} | 0 ...gPatternDefaultValues(target=es2015).types | 744 ++ ...indingPatternDefaultValues(target=es5).js} | 0 ...ngPatternDefaultValues(target=es5).js.map} | 0 ...rnDefaultValues(target=es5).sourcemap.txt} | 0 ...ngPatternDefaultValues(target=es5).symbols | 327 + ...ingPatternDefaultValues(target=es5).types} | 0 ...rnDefaultValues2(target=es2015).errors.txt | 211 + ...ingPatternDefaultValues2(target=es2015).js | 212 + ...atternDefaultValues2(target=es2015).js.map | 3 + ...efaultValues2(target=es2015).sourcemap.txt | 2550 +++++++ ...ternDefaultValues2(target=es2015).symbols} | 0 ...PatternDefaultValues2(target=es2015).types | 920 +++ ...ndingPatternDefaultValues2(target=es5).js} | 0 ...gPatternDefaultValues2(target=es5).js.map} | 0 ...nDefaultValues2(target=es5).sourcemap.txt} | 0 ...gPatternDefaultValues2(target=es5).symbols | 347 + ...ngPatternDefaultValues2(target=es5).types} | 0 ...ctBindingPattern(target=es2015).errors.txt | 108 + ...orOfObjectBindingPattern(target=es2015).js | 120 + ...ObjectBindingPattern(target=es2015).js.map | 3 + ...indingPattern(target=es2015).sourcemap.txt | 1801 +++++ ...bjectBindingPattern(target=es2015).symbols | 231 + ...fObjectBindingPattern(target=es2015).types | 556 ++ ...gForOfObjectBindingPattern(target=es5).js} | 0 ...OfObjectBindingPattern(target=es5).js.map} | 0 ...tBindingPattern(target=es5).sourcemap.txt} | 0 ...fObjectBindingPattern(target=es5).symbols} | 0 ...rOfObjectBindingPattern(target=es5).types} | 0 ...tBindingPattern2(target=es2015).errors.txt | 188 + ...rOfObjectBindingPattern2(target=es2015).js | 202 + ...bjectBindingPattern2(target=es2015).js.map | 3 + ...ndingPattern2(target=es2015).sourcemap.txt | 3141 ++++++++ ...ectBindingPattern2(target=es2015).symbols} | 0 ...ObjectBindingPattern2(target=es2015).types | 1027 +++ ...ForOfObjectBindingPattern2(target=es5).js} | 0 ...fObjectBindingPattern2(target=es5).js.map} | 0 ...BindingPattern2(target=es5).sourcemap.txt} | 0 ...fObjectBindingPattern2(target=es5).symbols | 437 ++ ...OfObjectBindingPattern2(target=es5).types} | 0 ...ernDefaultValues(target=es2015).errors.txt | 130 + ...dingPatternDefaultValues(target=es2015).js | 142 + ...PatternDefaultValues(target=es2015).js.map | 3 + ...DefaultValues(target=es2015).sourcemap.txt | 2147 ++++++ ...atternDefaultValues(target=es2015).symbols | 283 + ...gPatternDefaultValues(target=es2015).types | 709 ++ ...indingPatternDefaultValues(target=es5).js} | 0 ...ngPatternDefaultValues(target=es5).js.map} | 0 ...rnDefaultValues(target=es5).sourcemap.txt} | 0 ...gPatternDefaultValues(target=es5).symbols} | 0 ...ingPatternDefaultValues(target=es5).types} | 0 ...rnDefaultValues2(target=es2015).errors.txt | 245 + ...ingPatternDefaultValues2(target=es2015).js | 313 + ...atternDefaultValues2(target=es2015).js.map | 3 + ...efaultValues2(target=es2015).sourcemap.txt | 4002 ++++++++++ ...ternDefaultValues2(target=es2015).symbols} | 0 ...PatternDefaultValues2(target=es2015).types | 1431 ++++ ...ndingPatternDefaultValues2(target=es5).js} | 0 ...gPatternDefaultValues2(target=es5).js.map} | 0 ...nDefaultValues2(target=es5).sourcemap.txt} | 0 ...gPatternDefaultValues2(target=es5).symbols | 566 ++ ...ngPatternDefaultValues2(target=es5).types} | 0 ...ringParameterNestedObjectBindingPattern.js | 9 +- ...ParameterNestedObjectBindingPattern.js.map | 4 +- ...erNestedObjectBindingPattern.sourcemap.txt | 443 +- ...NestedObjectBindingPatternDefaultValues.js | 9 +- ...edObjectBindingPatternDefaultValues.js.map | 4 +- ...tBindingPatternDefaultValues.sourcemap.txt | 829 +- ...tructuringParameterObjectBindingPattern.js | 9 +- ...turingParameterObjectBindingPattern.js.map | 4 +- ...arameterObjectBindingPattern.sourcemap.txt | 316 +- ...ameterObjectBindingPatternDefaultValues.js | 9 +- ...erObjectBindingPatternDefaultValues.js.map | 4 +- ...tBindingPatternDefaultValues.sourcemap.txt | 435 +- ...ayBindingPattern(target=es2015).errors.txt | 48 + ...etertArrayBindingPattern(target=es2015).js | 60 + ...tArrayBindingPattern(target=es2015).js.map | 3 + ...indingPattern(target=es2015).sourcemap.txt | 576 ++ ...rrayBindingPattern(target=es2015).symbols} | 0 ...rtArrayBindingPattern(target=es2015).types | 201 + ...ametertArrayBindingPattern(target=es5).js} | 0 ...ertArrayBindingPattern(target=es5).js.map} | 0 ...yBindingPattern(target=es5).sourcemap.txt} | 0 ...ertArrayBindingPattern(target=es5).symbols | 96 + ...tertArrayBindingPattern(target=es5).types} | 0 ...yBindingPattern2(target=es2015).errors.txt | 51 + ...tertArrayBindingPattern2(target=es2015).js | 60 + ...ArrayBindingPattern2(target=es2015).js.map | 3 + ...ndingPattern2(target=es2015).sourcemap.txt | 606 ++ ...rayBindingPattern2(target=es2015).symbols} | 0 ...tArrayBindingPattern2(target=es2015).types | 209 + ...metertArrayBindingPattern2(target=es5).js} | 0 ...rtArrayBindingPattern2(target=es5).js.map} | 0 ...BindingPattern2(target=es5).sourcemap.txt} | 0 ...rtArrayBindingPattern2(target=es5).symbols | 95 + ...ertArrayBindingPattern2(target=es5).types} | 0 ...ernDefaultValues(target=es2015).errors.txt | 48 + ...dingPatternDefaultValues(target=es2015).js | 60 + ...PatternDefaultValues(target=es2015).js.map | 3 + ...DefaultValues(target=es2015).sourcemap.txt | 716 ++ ...tternDefaultValues(target=es2015).symbols} | 0 ...gPatternDefaultValues(target=es2015).types | 259 + ...indingPatternDefaultValues(target=es5).js} | 0 ...ngPatternDefaultValues(target=es5).js.map} | 0 ...rnDefaultValues(target=es5).sourcemap.txt} | 0 ...ngPatternDefaultValues(target=es5).symbols | 96 + ...ingPatternDefaultValues(target=es5).types} | 0 ...rnDefaultValues2(target=es2015).errors.txt | 50 + ...ingPatternDefaultValues2(target=es2015).js | 51 + ...atternDefaultValues2(target=es2015).js.map | 3 + ...efaultValues2(target=es2015).sourcemap.txt | 589 ++ ...ternDefaultValues2(target=es2015).symbols} | 0 ...PatternDefaultValues2(target=es2015).types | 212 + ...ndingPatternDefaultValues2(target=es5).js} | 0 ...gPatternDefaultValues2(target=es5).js.map} | 0 ...nDefaultValues2(target=es5).sourcemap.txt} | 0 ...gPatternDefaultValues2(target=es5).symbols | 82 + ...ngPatternDefaultValues2(target=es5).types} | 0 ...alidationDestructuringVariableStatement.js | 6 +- ...ationDestructuringVariableStatement.js.map | 4 +- ...structuringVariableStatement.sourcemap.txt | 248 +- ...lidationDestructuringVariableStatement1.js | 18 +- ...tionDestructuringVariableStatement1.js.map | 4 +- ...tructuringVariableStatement1.sourcemap.txt | 878 ++- ...ayBindingPattern(target=es2015).errors.txt | 41 + ...ementArrayBindingPattern(target=es2015).js | 37 + ...tArrayBindingPattern(target=es2015).js.map | 3 + ...indingPattern(target=es2015).sourcemap.txt | 398 + ...rrayBindingPattern(target=es2015).symbols} | 0 ...tArrayBindingPattern(target=es2015).types} | 0 ...atementArrayBindingPattern(target=es5).js} | 0 ...entArrayBindingPattern(target=es5).js.map} | 0 ...yBindingPattern(target=es5).sourcemap.txt} | 0 ...entArrayBindingPattern(target=es5).symbols | 59 + ...ementArrayBindingPattern(target=es5).types | 122 + ...yBindingPattern2(target=es2015).errors.txt | 46 + ...mentArrayBindingPattern2(target=es2015).js | 36 + ...ArrayBindingPattern2(target=es2015).js.map | 3 + ...ndingPattern2(target=es2015).sourcemap.txt | 449 ++ ...rayBindingPattern2(target=es2015).symbols} | 0 ...ArrayBindingPattern2(target=es2015).types} | 0 ...tementArrayBindingPattern2(target=es5).js} | 0 ...ntArrayBindingPattern2(target=es5).js.map} | 0 ...BindingPattern2(target=es5).sourcemap.txt} | 0 ...ntArrayBindingPattern2(target=es5).symbols | 60 + ...mentArrayBindingPattern2(target=es5).types | 139 + ...yBindingPattern3(target=es2015).errors.txt | 140 + ...mentArrayBindingPattern3(target=es2015).js | 103 + ...ArrayBindingPattern3(target=es2015).js.map | 3 + ...ndingPattern3(target=es2015).sourcemap.txt | 1360 ++++ ...rayBindingPattern3(target=es2015).symbols} | 0 ...tArrayBindingPattern3(target=es2015).types | 513 ++ ...tementArrayBindingPattern3(target=es5).js} | 0 ...ntArrayBindingPattern3(target=es5).js.map} | 0 ...BindingPattern3(target=es5).sourcemap.txt} | 0 ...ntArrayBindingPattern3(target=es5).symbols | 178 + ...entArrayBindingPattern3(target=es5).types} | 0 ...ngVariableStatementArrayBindingPattern4.js | 2 +- ...riableStatementArrayBindingPattern4.js.map | 4 +- ...tatementArrayBindingPattern4.sourcemap.txt | 67 +- ...ngVariableStatementArrayBindingPattern5.js | 4 +- ...riableStatementArrayBindingPattern5.js.map | 4 +- ...tatementArrayBindingPattern5.sourcemap.txt | 152 +- ...ngVariableStatementArrayBindingPattern6.js | 2 +- ...riableStatementArrayBindingPattern6.js.map | 4 +- ...tatementArrayBindingPattern6.sourcemap.txt | 87 +- ...ngVariableStatementArrayBindingPattern7.js | 2 +- ...riableStatementArrayBindingPattern7.js.map | 4 +- ...tatementArrayBindingPattern7.sourcemap.txt | 103 +- ...ernDefaultValues(target=es2015).errors.txt | 40 + ...dingPatternDefaultValues(target=es2015).js | 36 + ...PatternDefaultValues(target=es2015).js.map | 3 + ...DefaultValues(target=es2015).sourcemap.txt | 470 ++ ...tternDefaultValues(target=es2015).symbols} | 0 ...PatternDefaultValues(target=es2015).types} | 0 ...indingPatternDefaultValues(target=es5).js} | 0 ...ngPatternDefaultValues(target=es5).js.map} | 0 ...rnDefaultValues(target=es5).sourcemap.txt} | 0 ...ngPatternDefaultValues(target=es5).symbols | 58 + ...dingPatternDefaultValues(target=es5).types | 151 + ...rnDefaultValues2(target=es2015).errors.txt | 41 + ...ingPatternDefaultValues2(target=es2015).js | 33 + ...atternDefaultValues2(target=es2015).js.map | 3 + ...efaultValues2(target=es2015).sourcemap.txt | 521 ++ ...ternDefaultValues2(target=es2015).symbols} | 0 ...atternDefaultValues2(target=es2015).types} | 0 ...ndingPatternDefaultValues2(target=es5).js} | 0 ...gPatternDefaultValues2(target=es5).js.map} | 0 ...nDefaultValues2(target=es5).sourcemap.txt} | 0 ...gPatternDefaultValues2(target=es5).symbols | 54 + ...ingPatternDefaultValues2(target=es5).types | 167 + ...rnDefaultValues3(target=es2015).errors.txt | 138 + ...ingPatternDefaultValues3(target=es2015).js | 99 + ...atternDefaultValues3(target=es2015).js.map | 3 + ...efaultValues3(target=es2015).sourcemap.txt | 1497 ++++ ...ternDefaultValues3(target=es2015).symbols} | 0 ...PatternDefaultValues3(target=es2015).types | 631 ++ ...ndingPatternDefaultValues3(target=es5).js} | 0 ...gPatternDefaultValues3(target=es5).js.map} | 0 ...nDefaultValues3(target=es5).sourcemap.txt} | 0 ...gPatternDefaultValues3(target=es5).symbols | 169 + ...ngPatternDefaultValues3(target=es5).types} | 0 ...ructuringVariableStatementDefaultValues.js | 6 +- ...uringVariableStatementDefaultValues.js.map | 4 +- ...riableStatementDefaultValues.sourcemap.txt | 343 +- ...ableStatementNestedObjectBindingPattern.js | 6 +- ...StatementNestedObjectBindingPattern.js.map | 4 +- ...ntNestedObjectBindingPattern.sourcemap.txt | 413 +- ...edObjectBindingPatternWithDefaultValues.js | 6 +- ...jectBindingPatternWithDefaultValues.js.map | 4 +- ...dingPatternWithDefaultValues.sourcemap.txt | 816 +- ...gVariableStatementObjectBindingPattern1.js | 2 +- ...iableStatementObjectBindingPattern1.js.map | 4 +- ...atementObjectBindingPattern1.sourcemap.txt | 65 +- ...gVariableStatementObjectBindingPattern2.js | 4 +- ...iableStatementObjectBindingPattern2.js.map | 4 +- ...atementObjectBindingPattern2.sourcemap.txt | 174 +- ...gVariableStatementObjectBindingPattern3.js | 2 +- ...iableStatementObjectBindingPattern3.js.map | 4 +- ...atementObjectBindingPattern3.sourcemap.txt | 85 +- ...gVariableStatementObjectBindingPattern4.js | 2 +- ...iableStatementObjectBindingPattern4.js.map | 4 +- ...atementObjectBindingPattern4.sourcemap.txt | 130 +- .../sourceMapValidationExportAssignment.js | 7 +- ...sourceMapValidationExportAssignment.js.map | 4 +- ...apValidationExportAssignment.sourcemap.txt | 63 +- ...ceMapValidationExportAssignmentCommonjs.js | 7 +- ...pValidationExportAssignmentCommonjs.js.map | 4 +- ...tionExportAssignmentCommonjs.sourcemap.txt | 63 +- .../sourceMapValidationFunctionExpressions.js | 4 +- ...rceMapValidationFunctionExpressions.js.map | 4 +- ...alidationFunctionExpressions.sourcemap.txt | 67 +- ...MapValidationFunctionPropertyAssignment.js | 2 +- ...alidationFunctionPropertyAssignment.js.map | 4 +- ...onFunctionPropertyAssignment.sourcemap.txt | 26 +- .../reference/sourceMapValidationFunctions.js | 14 +- .../sourceMapValidationFunctions.js.map | 4 +- ...sourceMapValidationFunctions.sourcemap.txt | 216 +- .../reference/sourceMapValidationImport.js | 7 +- .../sourceMapValidationImport.js.map | 4 +- .../sourceMapValidationImport.sourcemap.txt | 142 +- ...apValidationLambdaSpanningMultipleLines.js | 4 +- ...lidationLambdaSpanningMultipleLines.js.map | 4 +- ...nLambdaSpanningMultipleLines.sourcemap.txt | 62 +- .../reference/sourceMapValidationModule.js | 2 +- .../sourceMapValidationModule.js.map | 2 +- .../sourceMapValidationModule.sourcemap.txt | 2 +- ...rceMapValidationVarInDownLevelGenerator.js | 8 +- ...apValidationVarInDownLevelGenerator.js.map | 4 +- ...ationVarInDownLevelGenerator.sourcemap.txt | 81 +- .../sourceMapValidationWithComments.js | 11 +- .../sourceMapValidationWithComments.js.map | 4 +- ...rceMapValidationWithComments.sourcemap.txt | 226 +- .../sourceMapWithCaseSensitiveFileNames.js | 14 +- ...sourceMapWithCaseSensitiveFileNames.js.map | 2 +- ...apWithCaseSensitiveFileNames.sourcemap.txt | 110 +- ...eMapWithCaseSensitiveFileNamesAndOutDir.js | 14 +- ...WithCaseSensitiveFileNamesAndOutDir.js.map | 4 +- ...eSensitiveFileNamesAndOutDir.sourcemap.txt | 108 +- ...ultipleFilesWithFileEndingWithInterface.js | 7 +- ...pleFilesWithFileEndingWithInterface.js.map | 4 +- ...sWithFileEndingWithInterface.sourcemap.txt | 78 +- .../sourceMapWithNonCaseSensitiveFileNames.js | 14 +- ...rceMapWithNonCaseSensitiveFileNames.js.map | 4 +- ...ithNonCaseSensitiveFileNames.sourcemap.txt | 110 +- ...pWithNonCaseSensitiveFileNamesAndOutDir.js | 14 +- ...hNonCaseSensitiveFileNamesAndOutDir.js.map | 8 +- ...eSensitiveFileNamesAndOutDir.sourcemap.txt | 108 +- .../sourcemapValidationDuplicateNames.js | 7 +- .../sourcemapValidationDuplicateNames.js.map | 4 +- ...emapValidationDuplicateNames.sourcemap.txt | 123 +- .../baselines/reference/specedNoStackBlown.js | 4 +- .../specialIntersectionsInMappedTypes.js | 2 +- .../specializationOfExportedClass.js | 7 +- ...specializationsShouldNotAffectEachOther.js | 2 +- .../specializedInheritedConstructors1.js | 39 +- .../specializedLambdaTypeArguments.js | 7 +- .../specializedOverloadWithRestParameters.js | 35 +- ...pecializedSignatureAsCallbackParameter1.js | 4 +- ...reIsNotSubtypeOfNonSpecializedSignature.js | 27 +- ...atureIsSubtypeOfNonSpecializedSignature.js | 27 +- .../reference/spellingSuggestionGlobal1.js | 3 +- .../reference/spellingSuggestionGlobal2.js | 5 +- .../reference/spellingSuggestionGlobal3.js | 2 +- .../reference/spellingSuggestionGlobal4.js | 3 +- .../spellingSuggestionJSXAttribute.js | 61 +- tests/baselines/reference/spliceTuples.js | 33 +- .../spreadBooleanRespectsFreshness.js | 11 +- .../spreadContextualTypedBindingPattern.js | 13 +- tests/baselines/reference/spreadDuplicate.js | 27 +- .../reference/spreadDuplicateExact.js | 27 +- .../reference/spreadExcessProperty.js | 15 +- .../spreadExpressionContextualType.js | 15 +- ...adExpressionContextualTypeWithNamespace.js | 69 +- .../reference/spreadIdenticalTypesRemoved.js | 15 +- .../baselines/reference/spreadIntersection.js | 15 +- .../reference/spreadIntersectionJsx.js | 31 +- .../reference/spreadInvalidArgumentType.js | 49 +- .../baselines/reference/spreadNonPrimitive.js | 13 +- .../reference/spreadObjectOrFalsy.js | 42 +- ...tions(exactoptionalpropertytypes=false).js | 41 +- ...ations(exactoptionalpropertytypes=true).js | 41 +- ...ithIndexDoesNotAddUndefinedToLocalIndex.js | 14 +- ...ObjectLiteralAssignableToIndexSignature.js | 29 +- ...fParamsFromGeneratorMakesRequiredParams.js | 31 +- .../reference/spreadOverwritesProperty.js | 21 +- .../spreadOverwritesPropertyStrict.js | 37 +- .../reference/spreadParameterTupleType.js | 14 +- .../spreadTupleAccessedByTypeParameter.js | 9 +- .../reference/spreadTypeRemovesReadonly.js | 15 +- .../baselines/reference/spreadTypeVariable.js | 23 +- tests/baselines/reference/spreadUnion.js | 17 +- tests/baselines/reference/spreadUnion2.js | 23 +- tests/baselines/reference/spreadUnion3.js | 21 +- tests/baselines/reference/spreadUnion4.js | 13 +- .../reference/spreadUnionPropOverride.js | 29 +- .../spuriousCircularityOnTypeImport.js | 6 +- .../reference/spyComparisonChecking.js | 5 +- .../reference/stackDepthLimitCastingType.js | 39 +- .../reference/staticAndMemberFunctions.js | 11 +- .../staticAndNonStaticPropertiesSameName.js | 11 +- ...nonymousTypeNotReferencingTypeParameter.js | 122 +- .../baselines/reference/staticAsIdentifier.js | 70 +- .../reference/staticClassMemberError.js | 16 +- tests/baselines/reference/staticClassProps.js | 11 +- tests/baselines/reference/staticFactory1.js | 37 +- .../staticFieldWithInterfaceContext.js | 142 +- tests/baselines/reference/staticGetter1.js | 15 +- tests/baselines/reference/staticGetter2.js | 11 +- .../reference/staticGetterAndSetter.js | 15 +- .../reference/staticIndexSignature1.js | 11 +- .../reference/staticIndexSignature2.js | 11 +- .../reference/staticIndexSignature3.js | 65 +- .../reference/staticIndexSignature4.js | 14 +- .../reference/staticIndexSignature5.js | 7 +- .../reference/staticIndexSignature6.js | 13 +- .../reference/staticIndexSignature7.js | 18 +- ...icIndexSignatureAndNormalIndexSignature.js | 7 +- tests/baselines/reference/staticIndexers.js | 21 +- .../baselines/reference/staticInheritance.js | 37 +- .../reference/staticInstanceResolution.js | 13 +- .../reference/staticInstanceResolution2.js | 15 +- .../reference/staticInstanceResolution3.js | 13 +- .../reference/staticInstanceResolution4.js | 9 +- .../reference/staticInstanceResolution5.js | 13 +- .../staticInterfaceAssignmentCompat.js | 11 +- .../staticMemberAccessOffDerivedType1.js | 35 +- ...mberAssignsToConstructorFunctionMembers.js | 21 +- .../reference/staticMemberExportAccess.js | 13 +- .../reference/staticMemberInitialization.js | 9 +- ...AndPublicMemberOfAnotherClassAssignment.js | 18 +- .../staticMemberWithStringAndNumberNames.js | 17 +- .../staticMembersUsingClassTypeParameter.js | 27 +- .../staticMethodReferencingTypeArgument1.js | 11 +- ...dWithTypeParameterExtendsClauseDeclFile.js | 41 +- ...icMethodsReferencingClassTypeParameters.js | 9 +- .../staticMismatchBecauseOfPrototype.js | 28 +- .../reference/staticModifierAlreadySeen.js | 9 +- .../reference/staticMustPrecedePublic.js | 7 +- .../reference/staticOffOfInstance1.js | 13 +- .../reference/staticOffOfInstance2.js | 13 +- tests/baselines/reference/staticPropSuper.js | 70 +- .../staticPropertyAndFunctionWithSameName.js | 16 +- .../reference/staticPropertyNotInClassType.js | 34 +- .../reference/staticPrototypeProperty.js | 16 +- .../staticPrototypePropertyOnClass.js | 28 +- tests/baselines/reference/staticVisibility.js | 28 +- .../baselines/reference/staticVisibility2.js | 7 +- tests/baselines/reference/statics.js | 20 +- .../reference/staticsInConstructorBodies.js | 11 +- .../reference/staticsNotInScopeInClodule.js | 9 +- .../reference/strictBindCallApply1.js | 112 +- .../reference/strictBindCallApply2.js | 2 +- .../strictBooleanMemberAssignability.js | 7 +- .../reference/strictFunctionTypes1.js | 26 +- .../reference/strictFunctionTypesErrors.js | 14 +- .../strictModeEnumMemberNameReserved.js | 2 +- .../reference/strictModeInConstructor.js | 103 +- .../reference/strictModeReservedWord.js | 32 +- ...trictModeReservedWordInClassDeclaration.js | 81 +- .../strictModeReservedWordInDestructuring.js | 12 +- .../strictModeUseContextualKeyword.js | 11 +- ...ptyDestructuring(target=es2015).errors.txt | 63 + ...ctNullEmptyDestructuring(target=es2015).js | 41 + ...EmptyDestructuring(target=es2015).symbols} | 0 ...llEmptyDestructuring(target=es2015).types} | 0 ...EmptyDestructuring(target=es5).errors.txt} | 0 ...rictNullEmptyDestructuring(target=es5).js} | 0 ...NullEmptyDestructuring(target=es5).symbols | 51 + ...ctNullEmptyDestructuring(target=es5).types | 137 + .../reference/strictNullLogicalAndOr.js | 6 +- .../strictNullNotNullIndexTypeNoLib.js | 31 +- .../strictNullNotNullIndexTypeShouldWork.js | 31 +- .../reference/strictOptionalProperties1.js | 51 +- .../reference/strictSubtypeAndNarrowing.js | 24 +- .../reference/stringEnumInElementAccess01.js | 2 +- .../reference/stringIndexerAndConstructor.js | 10 +- .../reference/stringIndexerAssignments2.js | 21 +- ...ngIndexerConstrainsPropertyDeclarations.js | 41 +- ...gIndexerConstrainsPropertyDeclarations2.js | 42 +- .../reference/stringIndexingResults.js | 7 +- .../stringLiteralTypeIsSubtypeOfString.js | 53 +- ...ngLiteralTypesAndLogicalOrExpressions01.js | 10 +- ...teralTypesAndParenthesizedExpressions01.js | 8 +- .../stringLiteralTypesAndTuples01.js | 4 +- .../reference/stringLiteralTypesAsTags01.js | 10 +- .../reference/stringLiteralTypesAsTags02.js | 10 +- .../reference/stringLiteralTypesAsTags03.js | 10 +- ...LiteralTypesAsTypeParameterConstraint01.js | 12 +- ...LiteralTypesAsTypeParameterConstraint02.js | 4 +- ...gLiteralTypesInImplementationSignatures.js | 15 +- ...LiteralTypesInImplementationSignatures2.js | 13 +- .../stringLiteralTypesInUnionTypes01.js | 10 +- .../stringLiteralTypesInUnionTypes02.js | 10 +- .../stringLiteralTypesInUnionTypes03.js | 10 +- .../stringLiteralTypesInUnionTypes04.js | 20 +- ...ingLiteralTypesInVariableDeclarations01.js | 12 +- ...ringLiteralTypesOverloadAssignability01.js | 4 +- ...ringLiteralTypesOverloadAssignability02.js | 4 +- ...ringLiteralTypesOverloadAssignability03.js | 4 +- ...ringLiteralTypesOverloadAssignability04.js | 4 +- ...ringLiteralTypesOverloadAssignability05.js | 4 +- .../stringLiteralTypesOverloads01.js | 34 +- .../stringLiteralTypesOverloads02.js | 34 +- .../stringLiteralTypesOverloads03.js | 30 +- .../stringLiteralTypesOverloads04.js | 4 +- .../stringLiteralTypesTypePredicates01.js | 8 +- ...stringLiteralTypesWithTemplateStrings01.js | 9 +- ...stringLiteralTypesWithTemplateStrings02.js | 5 +- ...tringLiteralTypesWithVariousOperators01.js | 44 +- ...tringLiteralTypesWithVariousOperators02.js | 24 +- .../stringLiteralsWithEqualityChecks01.js | 2 +- .../stringLiteralsWithEqualityChecks02.js | 2 +- .../stringLiteralsWithEqualityChecks03.js | 2 +- .../stringLiteralsWithEqualityChecks04.js | 2 +- .../stringLiteralsWithSwitchStatements02.js | 2 +- .../stringLiteralsWithTypeAssertions01.js | 14 +- .../reference/stringMappingAssignability.js | 4 +- .../reference/stringNamedPropertyAccess.js | 7 +- .../stringNamedPropertyDuplicates.js | 7 +- tests/baselines/reference/stripInternal1.js | 11 +- ...edComponentsInstantiaionLimitNotReached.js | 3 +- ...ubSubClassCanAccessProtectedConstructor.js | 54 +- .../reference/subclassThisTypeAssignable01.js | 13 +- .../reference/subclassThisTypeAssignable02.js | 13 +- ...subclassWithPolymorphicThisIsAssignable.js | 13 +- ...substitutionTypeNoMergeOfAssignableType.js | 2 +- .../substitutionTypesInIndexedAccessTypes.js | 4 +- .../reference/subtypeRelationForNever.js | 2 +- tests/baselines/reference/subtypesOfAny.js | 21 +- .../reference/subtypesOfTypeParameter.js | 60 +- .../subtypesOfTypeParameterWithConstraints.js | 283 +- ...subtypesOfTypeParameterWithConstraints2.js | 29 +- ...subtypesOfTypeParameterWithConstraints4.js | 110 +- ...OfTypeParameterWithRecursiveConstraints.js | 198 +- tests/baselines/reference/subtypesOfUnion.js | 21 +- .../reference/subtypingTransitivity.js | 40 +- .../reference/subtypingWithCallSignatures.js | 8 +- .../reference/subtypingWithCallSignatures2.js | 125 +- .../reference/subtypingWithCallSignatures3.js | 101 +- .../reference/subtypingWithCallSignatures4.js | 89 +- .../reference/subtypingWithCallSignaturesA.js | 2 +- .../subtypingWithConstructSignatures2.js | 49 +- .../subtypingWithConstructSignatures3.js | 49 +- .../subtypingWithConstructSignatures4.js | 49 +- .../subtypingWithConstructSignatures5.js | 49 +- .../subtypingWithConstructSignatures6.js | 49 +- .../reference/subtypingWithNumericIndexer.js | 81 +- .../reference/subtypingWithNumericIndexer3.js | 90 +- .../reference/subtypingWithNumericIndexer4.js | 56 +- .../reference/subtypingWithNumericIndexer5.js | 49 +- .../reference/subtypingWithObjectMembers.js | 128 +- .../reference/subtypingWithObjectMembers4.js | 79 +- .../reference/subtypingWithObjectMembers5.js | 42 +- ...subtypingWithObjectMembersAccessibility.js | 79 +- ...ubtypingWithObjectMembersAccessibility2.js | 127 +- .../reference/subtypingWithStringIndexer.js | 81 +- .../reference/subtypingWithStringIndexer3.js | 90 +- .../reference/subtypingWithStringIndexer4.js | 56 +- tests/baselines/reference/super.js | 67 +- tests/baselines/reference/super1.js | 133 +- tests/baselines/reference/super2.js | 95 +- .../superAccess(target=es2015).errors.txt | 25 + .../reference/superAccess(target=es2015).js | 32 + ...ols => superAccess(target=es2015).symbols} | 0 ...types => superAccess(target=es2015).types} | 0 ...txt => superAccess(target=es5).errors.txt} | 0 ...erAccess.js => superAccess(target=es5).js} | 0 .../reference/superAccess(target=es5).symbols | 40 + .../reference/superAccess(target=es5).types | 71 + tests/baselines/reference/superAccess2.js | 66 +- .../reference/superAccessCastedCall.js | 45 +- .../reference/superAccessInFatArrow1.js | 44 +- .../reference/superCallArgsMustMatch.js | 35 +- .../reference/superCallAssignResult.js | 35 +- .../superCallBeforeThisAccessing1.js | 36 +- .../superCallBeforeThisAccessing2.js | 34 +- .../superCallBeforeThisAccessing3.js | 38 +- .../superCallBeforeThisAccessing4.js | 41 +- .../superCallBeforeThisAccessing5.js | 23 +- .../superCallBeforeThisAccessing6.js | 34 +- .../superCallBeforeThisAccessing7.js | 38 +- .../superCallBeforeThisAccessing8.js | 39 +- ...allFromClassThatDerivesFromGenericType1.js | 25 +- ...allFromClassThatDerivesFromGenericType2.js | 25 +- ...eButWithIncorrectNumberOfTypeArguments1.js | 32 +- ...sFromGenericTypeButWithNoTypeArguments1.js | 32 +- ...ivesNonGenericTypeButWithTypeArguments1.js | 32 +- .../superCallFromClassThatHasNoBaseType1.js | 16 +- ...HasNoBaseTypeButWithSameSymbolInterface.js | 9 +- .../reference/superCallFromFunction1.js | 2 +- .../superCallInConstructorWithNoBaseType.js | 19 +- .../reference/superCallInNonStaticMethod.js | 93 +- .../reference/superCallInStaticMethod.js | 90 +- .../superCallInsideClassDeclaration.js | 49 +- .../superCallInsideClassExpression.js | 49 +- .../superCallInsideObjectLiteralExpression.js | 36 +- .../reference/superCallOutsideConstructor.js | 43 +- .../superCallParameterContextualTyping1.js | 32 +- .../superCallParameterContextualTyping2.js | 32 +- .../superCallParameterContextualTyping3.js | 45 +- .../reference/superCallWithCommentEmit01.js | 32 +- .../superCallWithMissingBaseClass.js | 34 +- tests/baselines/reference/superCalls.js | 54 +- .../reference/superCallsInConstructor.js | 47 +- .../baselines/reference/superElementAccess.js | 65 +- tests/baselines/reference/superErrors.js | 73 +- .../superHasMethodsFromMergedInterface.js | 37 +- .../baselines/reference/superInCatchBlock1.js | 39 +- .../reference/superInConstructorParam1.js | 37 +- .../superInLambdas(target=es2015).errors.txt | 82 + .../superInLambdas(target=es2015).js | 132 + ... => superInLambdas(target=es2015).symbols} | 0 ...es => superInLambdas(target=es2015).types} | 0 ... => superInLambdas(target=es5).errors.txt} | 0 ...mbdas.js => superInLambdas(target=es5).js} | 0 .../superInLambdas(target=es5).symbols | 142 + .../superInLambdas(target=es5).types | 273 + tests/baselines/reference/superNewCall1.js | 34 +- .../reference/superNoModifiersCrash.js | 39 +- ...erPropertyAccess(target=es2015).errors.txt | 50 + .../superPropertyAccess(target=es2015).js | 65 + ...uperPropertyAccess(target=es2015).symbols} | 0 ... superPropertyAccess(target=es2015).types} | 0 ...uperPropertyAccess(target=es5).errors.txt} | 0 ....js => superPropertyAccess(target=es5).js} | 0 .../superPropertyAccess(target=es5).symbols | 103 + .../superPropertyAccess(target=es5).types | 188 + .../superPropertyAccess1(target=es2015).js | 55 + ...perPropertyAccess1(target=es2015).symbols} | 0 ...superPropertyAccess1(target=es2015).types} | 0 ...perPropertyAccess1(target=es5).errors.txt} | 0 ...js => superPropertyAccess1(target=es5).js} | 0 .../superPropertyAccess1(target=es5).symbols | 68 + .../superPropertyAccess1(target=es5).types | 107 + ...rPropertyAccess2(target=es2015).errors.txt | 39 + .../superPropertyAccess2(target=es2015).js | 55 + ...perPropertyAccess2(target=es2015).symbols} | 0 ...superPropertyAccess2(target=es2015).types} | 0 ...perPropertyAccess2(target=es5).errors.txt} | 0 ...js => superPropertyAccess2(target=es5).js} | 0 .../superPropertyAccess2(target=es5).symbols | 62 + .../superPropertyAccess2(target=es5).types | 107 + .../superPropertyAccessInSuperCall01.js | 35 +- ...opertyElementNoUnusedLexicalThisCapture.js | 50 +- ...perPropertyInConstructorBeforeSuperCall.js | 50 +- .../superWithGenericSpecialization.js | 32 +- .../baselines/reference/superWithGenerics.js | 25 +- .../reference/superWithTypeArgument.js | 32 +- .../reference/superWithTypeArgument2.js | 32 +- .../reference/superWithTypeArgument3.js | 38 +- ...ters-and-setters(target=es2015).errors.txt | 33 + ...eral-getters-and-setters(target=es2015).js | 59 + ...etters-and-setters(target=es2015).symbols} | 0 ...-getters-and-setters(target=es2015).types} | 0 ...etters-and-setters(target=es5).errors.txt} | 0 ...iteral-getters-and-setters(target=es5).js} | 0 ...al-getters-and-setters(target=es5).symbols | 57 + ...eral-getters-and-setters(target=es5).types | 111 + .../reference/switchAssignmentCompat.js | 7 +- ...gClausesEvenWhenNonMatchingClausesExist.js | 12 +- .../switchCasesExpressionTypeMismatch.js | 7 +- .../switchComparableCompatForBrands.js | 7 +- tests/baselines/reference/switchStatements.js | 39 +- .../symbolLinkDeclarationEmitModuleNames.js | 48 +- ...LinkDeclarationEmitModuleNamesImportRef.js | 9 +- ...olLinkDeclarationEmitModuleNamesRootDir.js | 10 +- ...iesNoDirectLinkGeneratesNonrelativeName.js | 40 +- ...ectLinkOptionalGeneratesNonrelativeName.js | 40 +- ...oDirectLinkPeerGeneratesNonrelativeName.js | 40 +- tests/baselines/reference/systemModule13.js | 10 +- tests/baselines/reference/systemModule17.js | 7 +- tests/baselines/reference/systemModule3.js | 14 +- tests/baselines/reference/systemModule6.js | 7 +- tests/baselines/reference/systemModule8.js | 10 +- ...stemModuleConstEnumsSeparateCompilation.js | 2 +- .../systemModuleDeclarationMerging.js | 7 +- .../reference/systemModuleExportDefault.js | 14 +- .../systemModuleNonTopLevelModuleMembers.js | 18 +- .../reference/systemModuleWithSuperClass.js | 31 +- .../reference/systemNamespaceAliasEmit.js | 2 +- .../reference/taggedTemplateChain.js | 8 +- ...gedTemplateStringWithSymbolExpression01.js | 8 +- ...taggedTemplateStringsHexadecimalEscapes.js | 12 +- ...sPlainCharactersThatArePartsOfEscapes01.js | 12 +- ...sPlainCharactersThatArePartsOfEscapes02.js | 2 +- ...gedTemplateStringsTypeArgumentInference.js | 60 +- ...emplateStringsWithIncompatibleTypedTags.js | 26 +- ...StringsWithManyCallAndMemberExpressions.js | 6 +- ...gedTemplateStringsWithMultilineTemplate.js | 15 +- ...dTemplateStringsWithOverloadResolution1.js | 22 +- ...dTemplateStringsWithOverloadResolution2.js | 20 +- ...dTemplateStringsWithOverloadResolution3.js | 48 +- ...aggedTemplateStringsWithTagNamedDeclare.js | 12 +- ...taggedTemplateStringsWithTagsTypedAsAny.js | 28 +- ...tionExpressionsInSubstitutionExpression.js | 12 +- .../taggedTemplateStringsWithTypedTags.js | 24 +- ...taggedTemplateStringsWithUnicodeEscapes.js | 12 +- ...gedTemplateStringsWithWhitespaceEscapes.js | 12 +- .../taggedTemplateUntypedTagCall01.js | 6 +- .../taggedTemplateWithConstructableTag01.js | 13 +- .../taggedTemplateWithConstructableTag02.js | 6 +- .../taggedTemplatesInDifferentScopes.js | 22 +- .../reference/targetTypeBaseCalls.js | 33 +- ...ininingOfConstantBindingWithInitializer.js | 8 +- .../reference/templateInsideCallback.js | 11 +- .../templateLiteralEscapeSequence.js | 124 +- .../reference/templateLiteralIntersection.js | 2 +- .../reference/templateLiteralIntersection4.js | 4 +- .../reference/templateLiteralTypes1.js | 29 +- .../reference/templateLiteralTypes2.js | 122 +- .../reference/templateLiteralTypes3.js | 62 +- .../reference/templateLiteralTypesPatterns.js | 51 +- ...lTypesPatternsPrefixSuffixAssignability.js | 8 +- .../templateLiteralsAndDecoratorMetadata.js | 21 +- .../reference/templateLiteralsInTypes.js | 2 +- .../reference/templateLiteralsSourceMap.js | 2 +- .../templateLiteralsSourceMap.js.map | 4 +- .../templateLiteralsSourceMap.sourcemap.txt | 67 +- .../templateStringBinaryOperations.js | 96 +- .../templateStringBinaryOperationsInvalid.js | 192 +- ...templateStringControlCharacterEscapes01.js | 2 +- ...templateStringControlCharacterEscapes02.js | 2 +- ...templateStringControlCharacterEscapes03.js | 2 +- ...templateStringControlCharacterEscapes04.js | 2 +- .../reference/templateStringInArray.js | 2 +- .../templateStringInArrowFunction.js | 2 +- .../templateStringInCallExpression.js | 2 +- .../reference/templateStringInConditional.js | 2 +- .../templateStringInDeleteExpression.js | 2 +- .../reference/templateStringInDivision.js | 2 +- .../templateStringInEqualityChecks.js | 8 +- .../templateStringInFunctionExpression.js | 4 +- .../reference/templateStringInInOperator.js | 2 +- .../templateStringInIndexExpression.js | 2 +- .../reference/templateStringInInstanceOf.js | 2 +- .../reference/templateStringInModuleName.js | 8 +- .../reference/templateStringInModulo.js | 2 +- .../templateStringInMultiplication.js | 2 +- .../templateStringInNewExpression.js | 2 +- .../reference/templateStringInNewOperator.js | 2 +- .../templateStringInObjectLiteral.js | 8 +- .../reference/templateStringInParentheses.js | 2 +- .../templateStringInPropertyAssignment.js | 2 +- .../templateStringInPropertyName1.js | 6 +- .../templateStringInPropertyName2.js | 6 +- .../templateStringInSwitchAndCase.js | 10 +- .../templateStringInTaggedTemplate.js | 6 +- .../templateStringInTypeAssertion.js | 2 +- .../reference/templateStringInTypeOf.js | 2 +- .../reference/templateStringInUnaryPlus.js | 2 +- .../reference/templateStringInWhile.js | 4 +- .../reference/templateStringMultiline1.js | 4 +- .../reference/templateStringMultiline2.js | 4 +- .../reference/templateStringMultiline3.js | 2 +- ...gPlainCharactersThatArePartsOfEscapes01.js | 2 +- ...gPlainCharactersThatArePartsOfEscapes02.js | 2 +- .../reference/templateStringTermination1.js | 2 +- .../reference/templateStringTermination2.js | 2 +- .../reference/templateStringTermination3.js | 2 +- .../reference/templateStringTermination4.js | 2 +- .../reference/templateStringTermination5.js | 2 +- .../reference/templateStringUnterminated1.js | 2 +- .../reference/templateStringUnterminated2.js | 2 +- .../reference/templateStringUnterminated3.js | 2 +- .../reference/templateStringUnterminated4.js | 2 +- .../reference/templateStringUnterminated5.js | 2 +- .../templateStringWhitespaceEscapes1.js | 2 +- .../templateStringWhitespaceEscapes2.js | 2 +- .../templateStringWithBackslashEscapes01.js | 8 +- ...mplateStringWithCommentsInArrowFunction.js | 18 +- .../templateStringWithEmbeddedAddition.js | 2 +- .../templateStringWithEmbeddedArray.js | 2 +- ...templateStringWithEmbeddedArrowFunction.js | 2 +- .../templateStringWithEmbeddedComments.js | 8 +- .../templateStringWithEmbeddedConditional.js | 2 +- .../templateStringWithEmbeddedDivision.js | 2 +- ...ateStringWithEmbeddedFunctionExpression.js | 2 +- .../templateStringWithEmbeddedInOperator.js | 2 +- .../templateStringWithEmbeddedInstanceOf.js | 2 +- .../templateStringWithEmbeddedModulo.js | 2 +- ...emplateStringWithEmbeddedMultiplication.js | 2 +- .../templateStringWithEmbeddedNewOperator.js | 2 +- ...templateStringWithEmbeddedObjectLiteral.js | 2 +- ...emplateStringWithEmbeddedTemplateString.js | 2 +- ...ringWithEmbeddedTypeAssertionOnAddition.js | 2 +- ...emplateStringWithEmbeddedTypeOfOperator.js | 2 +- .../templateStringWithEmbeddedUnaryPlus.js | 2 +- .../templateStringWithEmbeddedYieldKeyword.js | 42 +- .../templateStringWithEmptyLiteralPortions.js | 26 +- ...ateStringWithOpenCommentInStringPortion.js | 2 +- .../templateStringWithPropertyAccess.js | 2 +- ...tionExpressionsInSubstitutionExpression.js | 2 +- .../reference/ternaryExpressionSourceMap.js | 2 +- .../ternaryExpressionSourceMap.js.map | 4 +- .../ternaryExpressionSourceMap.sourcemap.txt | 83 +- .../baselines/reference/testContainerList.js | 7 +- tests/baselines/reference/thisBinding.js | 24 +- tests/baselines/reference/thisBinding2.js | 15 +- tests/baselines/reference/thisCapture1.js | 16 +- ...ditionalOnMethodReturnOfGenericInstance.js | 46 +- ...essionInCallExpressionWithTypeArguments.js | 12 +- .../thisExpressionInIndexExpression.js | 3 +- .../thisExpressionOfGenericObject.js | 10 +- tests/baselines/reference/thisInAccessors.js | 69 +- ...thisInArrowFunctionInStaticInitializer1.js | 19 +- .../reference/thisInConstructorParameter1.js | 9 +- .../reference/thisInConstructorParameter2.js | 35 +- .../reference/thisInGenericStaticMembers.js | 28 +- .../reference/thisInInnerFunctions.js | 21 +- .../thisInInstanceMemberInitializer.js | 14 +- .../reference/thisInInvalidContexts.js | 56 +- ...sExternalModule(target=es2015).errors.txt} | 0 ...idContextsExternalModule(target=es2015).js | 84 + ...extsExternalModule(target=es2015).symbols} | 0 ...ntextsExternalModule(target=es2015).types} | 0 ...textsExternalModule(target=es5).errors.txt | 67 + ...alidContextsExternalModule(target=es5).js} | 0 ...ContextsExternalModule(target=es5).symbols | 79 + ...idContextsExternalModule(target=es5).types | 119 + tests/baselines/reference/thisInLambda.js | 28 +- tests/baselines/reference/thisInObjectJs.js | 5 +- .../reference/thisInObjectLiterals.js | 13 +- .../reference/thisInOuterClassBody.js | 24 +- .../thisInPropertyBoundDeclarations.js | 55 +- .../reference/thisInStaticMethod1.js | 13 +- tests/baselines/reference/thisInStatics.js | 23 +- tests/baselines/reference/thisInSuperCall.js | 60 +- tests/baselines/reference/thisInSuperCall1.js | 36 +- tests/baselines/reference/thisInSuperCall2.js | 47 +- tests/baselines/reference/thisInSuperCall3.js | 36 +- .../thisInTupleTypeParameterConstraints.js | 2 +- ...sIndexOnExistingReadonlyFieldIsNotNever.js | 41 +- .../reference/thisPredicateInObjectLiteral.js | 8 +- ...eferencedInFunctionInsideArrowFunction1.js | 6 +- .../reference/thisShadowingErrorSpans.js | 11 +- .../reference/thisTypeAccessibility.js | 20 +- .../reference/thisTypeAndConstraints.js | 26 +- .../reference/thisTypeAsConstraint.js | 9 +- tests/baselines/reference/thisTypeErrors.js | 37 +- tests/baselines/reference/thisTypeErrors2.js | 23 +- .../baselines/reference/thisTypeInClasses.js | 57 +- .../reference/thisTypeInFunctions.js | 171 +- .../reference/thisTypeInFunctions2.js | 12 +- .../reference/thisTypeInFunctions3.js | 28 +- .../reference/thisTypeInFunctions4.js | 5 +- .../reference/thisTypeInObjectLiterals.js | 12 +- tests/baselines/reference/thisTypeInTuples.js | 8 +- .../reference/thisTypeInTypePredicate.js | 2 +- .../reference/thisTypeSyntacticContext.js | 2 +- .../reference/thisWhenTypeCheckFails.js | 16 +- .../this_inside-enum-should-not-be-allowed.js | 2 +- .../reference/throwInEnclosingStatements.js | 17 +- tests/baselines/reference/throwStatements.js | 25 +- ...ArgumentsInGenericFunctionTypedArgument.js | 4 +- .../reference/tooManyTypeParameters1.js | 9 +- tests/baselines/reference/topLevel.js | 15 +- .../reference/topLevelAmbientModule.js | 2 +- .../baselines/reference/topLevelFileModule.js | 4 +- .../reference/topLevelFileModuleMissing.js | 2 +- tests/baselines/reference/topLevelLambda.js | 3 +- tests/baselines/reference/topLevelLambda2.js | 3 +- tests/baselines/reference/topLevelLambda3.js | 3 +- tests/baselines/reference/topLevelLambda4.js | 3 +- .../topLevelModuleDeclarationAndFile.js | 2 +- .../reference/trackedSymbolsNoCrash.js | 17 +- ...railingCommaInHeterogenousArrayLiteral1.js | 13 +- .../trailingCommasInBindingPatterns.js | 18 +- .../reference/trailingCommasInGetter.js | 13 +- .../transitiveTypeArgumentInference1.js | 7 +- .../declarationCrossFileInferences.js | 11 +- .../transpile/declarationLinkedAliases.js | 2 +- .../declarationLocalAliasOfImportAlias.js | 2 +- .../declarationTypeParameterConstraint.js | 2 +- .../reference/transpile/declarationsSimple.js | 2 +- ...tripleSlashReferenceAbsoluteWindowsPath.js | 4 +- .../truthinessCallExpressionCoercion.js | 25 +- .../truthinessCallExpressionCoercion1.js | 29 +- .../truthinessCallExpressionCoercion2.js | 31 +- .../reference/tryCatchFinallyControlFlow.js | 46 +- .../reference/ts-expect-error-nocheck.js | 2 +- .../reference/tsNoCheckForTypescript.js | 13 +- .../tsNoCheckForTypescriptComments1.js | 13 +- .../tsNoCheckForTypescriptComments2.js | 13 +- .../tsconfigMapOptionsAreCaseInsensitive.js | 2 +- ...ributeQuickinfoTypesSameAsObjectLiteral.js | 2 +- .../reference/tsxAttributeResolution10.js | 9 +- .../reference/tsxAttributeResolution11.js | 9 +- .../reference/tsxAttributeResolution12.js | 2 +- .../reference/tsxAttributeResolution15.js | 37 +- .../reference/tsxAttributeResolution16.js | 32 +- .../reference/tsxAttributeResolution2.js | 6 +- .../reference/tsxAttributeResolution4.js | 4 +- .../reference/tsxAttributeResolution9.js | 9 +- .../tsxAttributesHasInferrableIndex.js | 8 +- .../tsxCorrectlyParseLessThanComparison1.js | 32 +- .../tsxDeepAttributeAssignabilityError.js | 82 +- .../tsxDefaultAttributesResolution1.js | 32 +- .../tsxDefaultAttributesResolution2.js | 32 +- .../tsxDefaultAttributesResolution3.js | 32 +- .../baselines/reference/tsxDefaultImports.js | 22 +- .../tsxDiscriminantPropertyInference.js | 8 +- .../baselines/reference/tsxDynamicTagName5.js | 71 +- .../baselines/reference/tsxDynamicTagName6.js | 4 +- .../baselines/reference/tsxDynamicTagName7.js | 71 +- .../baselines/reference/tsxDynamicTagName8.js | 71 +- .../baselines/reference/tsxDynamicTagName9.js | 71 +- .../reference/tsxElementResolution.js | 21 +- .../reference/tsxElementResolution19.js | 11 +- tests/baselines/reference/tsxEmit1.js | 31 +- tests/baselines/reference/tsxEmit3.js | 19 +- tests/baselines/reference/tsxEmit3.js.map | 4 +- .../reference/tsxEmit3.sourcemap.txt | 432 +- .../reference/tsxExternalModuleEmit1.js | 62 +- .../reference/tsxExternalModuleEmit2.js | 15 +- .../reference/tsxFragmentChildrenCheck.js | 80 +- .../tsxGenericArrowFunctionParsing.js | 6 +- .../reference/tsxGenericAttributesType1.js | 14 +- .../reference/tsxGenericAttributesType2.js | 6 +- .../reference/tsxGenericAttributesType3.js | 41 +- .../reference/tsxGenericAttributesType4.js | 41 +- .../reference/tsxGenericAttributesType5.js | 41 +- .../reference/tsxGenericAttributesType6.js | 41 +- .../reference/tsxGenericAttributesType7.js | 6 +- .../reference/tsxGenericAttributesType8.js | 6 +- .../reference/tsxGenericAttributesType9.js | 30 +- .../baselines/reference/tsxInArrowFunction.js | 8 +- .../tsxInferenceShouldNotYieldAnyOnUnions.js | 10 +- .../reference/tsxInvokeComponentType.js | 13 +- .../reference/tsxLibraryManagedAttributes.js | 183 +- .../reference/tsxNamespacedAttributeName1.js | 4 +- .../reference/tsxNamespacedAttributeName2.js | 4 +- .../reference/tsxNamespacedTagName1.js | 8 +- .../reference/tsxNamespacedTagName2.js | 8 +- .../reference/tsxNoTypeAnnotatedSFC.js | 39 +- .../reference/tsxNotUsingApparentTypeOfSFC.js | 58 +- ...ReactComponentWithDefaultTypeParameter1.js | 4 +- ...ReactComponentWithDefaultTypeParameter2.js | 6 +- ...ReactComponentWithDefaultTypeParameter3.js | 8 +- tests/baselines/reference/tsxReactEmit1.js | 31 +- tests/baselines/reference/tsxReactEmit2.js | 21 +- tests/baselines/reference/tsxReactEmit4.js | 13 +- tests/baselines/reference/tsxReactEmit5.js | 15 +- tests/baselines/reference/tsxReactEmit6.js | 13 +- .../reference/tsxReactEmitNesting.js | 34 +- ...ctPropsInferenceSucceedsOnIntersections.js | 20 +- .../tsxResolveExternalModuleExportsTypes.js | 2 +- tests/baselines/reference/tsxSfcReturnNull.js | 6 +- .../tsxSfcReturnNullStrictNullChecks.js | 6 +- .../tsxSfcReturnUndefinedStrictNullChecks.js | 8 +- .../tsxSpreadAttributesResolution1.js | 36 +- .../tsxSpreadAttributesResolution10.js | 42 +- .../tsxSpreadAttributesResolution11.js | 50 +- .../tsxSpreadAttributesResolution12.js | 46 +- .../tsxSpreadAttributesResolution13.js | 7 +- .../tsxSpreadAttributesResolution14.js | 5 +- .../tsxSpreadAttributesResolution15.js | 5 +- .../tsxSpreadAttributesResolution16.js | 5 +- .../tsxSpreadAttributesResolution17.js | 34 +- .../tsxSpreadAttributesResolution2.js | 42 +- .../tsxSpreadAttributesResolution3.js | 36 +- .../tsxSpreadAttributesResolution4.js | 60 +- .../tsxSpreadAttributesResolution5.js | 51 +- .../tsxSpreadAttributesResolution6.js | 34 +- .../tsxSpreadAttributesResolution7.js | 40 +- .../tsxSpreadAttributesResolution8.js | 40 +- .../tsxSpreadAttributesResolution9.js | 44 +- .../baselines/reference/tsxSpreadChildren.js | 7 +- .../tsxSpreadDoesNotReportExcessProps.js | 46 +- .../reference/tsxSpreadInvalidType.js | 12 +- .../tsxStatelessComponentDefaultProps.js | 11 +- .../tsxStatelessFunctionComponentOverload1.js | 32 +- .../tsxStatelessFunctionComponentOverload2.js | 28 +- .../tsxStatelessFunctionComponentOverload3.js | 18 +- .../tsxStatelessFunctionComponentOverload4.js | 34 +- .../tsxStatelessFunctionComponentOverload5.js | 32 +- .../tsxStatelessFunctionComponentOverload6.js | 38 +- ...ctionComponentWithDefaultTypeParameter1.js | 4 +- ...ctionComponentWithDefaultTypeParameter2.js | 2 +- .../tsxStatelessFunctionComponents1.js | 43 +- .../tsxStatelessFunctionComponents2.js | 48 +- .../tsxStatelessFunctionComponents3.js | 13 +- ...essFunctionComponentsWithTypeArguments1.js | 10 +- ...essFunctionComponentsWithTypeArguments2.js | 8 +- ...essFunctionComponentsWithTypeArguments3.js | 18 +- ...essFunctionComponentsWithTypeArguments4.js | 6 +- ...essFunctionComponentsWithTypeArguments5.js | 12 +- .../reference/tsxTypeArgumentResolution.js | 4 +- .../tsxTypeArgumentsJsxPreserveOutput.js | 2 +- tests/baselines/reference/tsxTypeErrors.js | 7 +- .../reference/tsxUnionElementType1.js | 2 +- .../reference/tsxUnionElementType2.js | 2 +- .../reference/tsxUnionElementType3.js | 75 +- .../reference/tsxUnionElementType4.js | 71 +- .../reference/tsxUnionElementType5.js | 8 +- .../reference/tsxUnionElementType6.js | 10 +- .../tsxUnionMemberChecksFilterDataProps.js | 11 +- tests/baselines/reference/tsxUnionSpread.js | 3 +- .../reference/tsxUnionTypeComponent1.js | 43 +- .../reference/tsxUnionTypeComponent2.js | 4 +- .../baselines/reference/tupleElementTypes1.js | 2 +- .../baselines/reference/tupleElementTypes2.js | 4 +- .../baselines/reference/tupleElementTypes3.js | 2 +- .../baselines/reference/tupleElementTypes4.js | 4 +- tests/baselines/reference/tupleLengthCheck.js | 14 +- tests/baselines/reference/tupleTypes.js | 4 +- .../twiceNestedKeyofIndexInference.js | 4 +- .../reference/twoAccessorsWithSameName2.js | 45 +- .../twoInterfacesDifferentRootModule2.js | 2 +- .../reference/typeAliasDeclarationEmit3.js | 2 +- .../typeAliasDeclareKeywordNewlines.js | 6 +- .../typeAliasFunctionTypeSharedSymbol.js | 24 +- tests/baselines/reference/typeAliases.js | 7 +- .../reference/typeAliasesDoNotMerge.js | 3 +- .../reference/typeAliasesForObjectTypes.js | 7 +- .../reference/typeAndNamespaceExportMerge.js | 52 +- .../reference/typeArgInferenceWithNull.js | 2 +- ...tDefaultUsesConstraintOnCircularDefault.js | 18 +- .../reference/typeArgumentInference.js | 38 +- ...ypeArgumentInferenceConstructSignatures.js | 44 +- .../reference/typeArgumentInferenceErrors.js | 6 +- .../typeArgumentInferenceOrdering.js | 7 +- ...peArgumentInferenceWithClassExpression1.js | 15 +- ...peArgumentInferenceWithClassExpression2.js | 15 +- ...peArgumentInferenceWithClassExpression3.js | 15 +- .../typeArgumentInferenceWithConstraints.js | 44 +- .../typeArgumentInferenceWithObjectLiteral.js | 18 +- ...ivelyReferencedTypeAliasToTypeLiteral01.js | 2 +- ...ivelyReferencedTypeAliasToTypeLiteral02.js | 2 +- .../typeArgumentsWithStringLiteralTypes01.js | 6 +- .../typeAssertionToGenericFunctionType.js | 4 +- tests/baselines/reference/typeAssertions.js | 38 +- .../reference/typeCheckExportsVariable.js | 2 +- ...pressionWithUndefinedCallResolutionData.js | 2 +- .../typeCheckObjectLiteralMethodBody.js | 2 +- .../reference/typeCheckReturnExpression.js | 2 +- .../reference/typeCheckTypeArgument.js | 18 +- .../typeConstraintsWithConstructSignatures.js | 11 +- .../reference/typeFromPropertyAssignment29.js | 20 +- .../reference/typeFromPropertyAssignment30.js | 2 +- .../reference/typeFromPropertyAssignment36.js | 2 +- .../typeFromPropertyAssignmentWithExport.js | 9 +- .../typeGuardConstructorClassAndNumber.js | 7 +- .../typeGuardConstructorDerivedClass.js | 75 +- ...GuardConstructorNarrowPrimitivesInUnion.js | 2 +- tests/baselines/reference/typeGuardEnums.js | 2 +- .../baselines/reference/typeGuardFunction.js | 55 +- .../reference/typeGuardFunctionErrors.js | 84 +- .../reference/typeGuardFunctionGenerics.js | 46 +- .../reference/typeGuardFunctionOfFormThis.js | 133 +- .../typeGuardFunctionOfFormThisErrors.js | 58 +- tests/baselines/reference/typeGuardInClass.js | 18 +- .../reference/typeGuardIntersectionTypes.js | 12 +- .../typeGuardNarrowByMutableUntypedField.js | 2 +- .../typeGuardNarrowByUntypedField.js | 2 +- ...ardNarrowsIndexedAccessOfKnownProperty1.js | 5 +- ...rdNarrowsIndexedAccessOfKnownProperty10.js | 8 +- ...ardNarrowsIndexedAccessOfKnownProperty2.js | 4 +- ...ardNarrowsIndexedAccessOfKnownProperty3.js | 4 +- ...ardNarrowsIndexedAccessOfKnownProperty4.js | 9 +- ...ardNarrowsIndexedAccessOfKnownProperty5.js | 12 +- ...ardNarrowsIndexedAccessOfKnownProperty6.js | 6 +- .../typeGuardNarrowsPrimitiveIntersection.js | 2 +- .../typeGuardNarrowsToLiteralType.js | 2 +- .../typeGuardNarrowsToLiteralTypeUnion.js | 2 +- tests/baselines/reference/typeGuardNesting.js | 18 +- .../reference/typeGuardOfFormExpr1AndExpr2.js | 7 +- .../reference/typeGuardOfFormExpr1OrExpr2.js | 7 +- .../reference/typeGuardOfFormInstanceOf.js | 45 +- .../reference/typeGuardOfFormIsType.js | 38 +- .../reference/typeGuardOfFormTypeOfBoolean.js | 15 +- ...eGuardOfFormTypeOfEqualEqualHasNoEffect.js | 7 +- .../typeGuardOfFormTypeOfFunction.js | 7 +- ...ypeGuardOfFormTypeOfNotEqualHasNoEffect.js | 7 +- .../reference/typeGuardOfFormTypeOfNumber.js | 15 +- .../reference/typeGuardOfFormTypeOfOther.js | 15 +- .../typeGuardOfFormTypeOfPrimitiveSubtype.js | 16 +- .../reference/typeGuardOfFormTypeOfString.js | 15 +- .../typeGuardOfFromPropNameInUnionType.js | 106 +- .../typeGuardOnContainerTypeNoHang.js | 7 +- .../typeGuardTautologicalConsistiency.js | 2 +- .../reference/typeGuardsAsAssertions.js | 33 +- tests/baselines/reference/typeGuardsDefeat.js | 2 +- .../reference/typeGuardsInClassMethods.js | 23 +- .../reference/typeGuardsInDoStatement.js | 2 +- .../reference/typeGuardsInForStatement.js | 2 +- .../reference/typeGuardsInFunction.js | 2 +- .../typeGuardsInFunctionAndModuleBlock.js | 10 +- .../baselines/reference/typeGuardsInModule.js | 2 +- .../reference/typeGuardsInWhileStatement.js | 2 +- .../reference/typeGuardsNestedAssignments.js | 23 +- .../reference/typeGuardsOnClassProperty.js | 15 +- .../reference/typeGuardsTypeParameters.js | 21 +- .../reference/typeGuardsWithInstanceOf.js | 13 +- .../reference/typeIdentityConsidersBrands.js | 28 +- .../typeInferenceCacheInvalidation.js | 16 +- .../typeInferenceConflictingCandidates.js | 2 +- .../typeInferenceFBoundedTypeParams.js | 5 +- .../reference/typeInferenceFixEarly.js | 2 +- .../reference/typeInferenceLiteralUnion.js | 18 +- .../typeInferenceReturnTypeCallback.js | 26 +- .../reference/typeInferenceTypePredicate.js | 2 +- .../reference/typeInferenceTypePredicate2.js | 4 +- .../typeInferenceWithExcessProperties.js | 2 +- .../reference/typeInferenceWithTupleType.js | 2 +- .../typeInferenceWithTypeAnnotation.js | 2 +- .../reference/typeLiteralCallback.js | 4 +- tests/baselines/reference/typeMatch1.js | 14 +- tests/baselines/reference/typeMatch2.js | 31 +- tests/baselines/reference/typeName1.js | 7 +- tests/baselines/reference/typeOfPrototype.js | 9 +- tests/baselines/reference/typeOfSuperCall.js | 34 +- .../reference/typeOfThisInAccessor.js | 58 +- .../typeOfThisInConstructorParamList.js | 9 +- .../typeOfThisInFunctionExpression.js | 7 +- .../reference/typeOfThisInInstanceMember.js | 23 +- .../reference/typeOfThisInInstanceMember2.js | 23 +- .../reference/typeOfThisInMemberFunctions.js | 41 +- .../reference/typeOfThisInStaticMembers.js | 24 +- .../reference/typeOfThisInStaticMembers2.js | 25 +- .../reference/typeOfThisInStaticMembers6.js | 37 +- .../reference/typeOfThisInStatics.js | 21 +- ...nstanceMemberNarrowedWithLoopAntecedent.js | 26 +- tests/baselines/reference/typeOnlyMerge1.js | 16 +- tests/baselines/reference/typeOnlyMerge2.js | 16 +- tests/baselines/reference/typeOnlyMerge3.js | 13 +- .../typeParamExtendsOtherTypeParam.js | 14 +- .../reference/typeParameterAsBaseClass.js | 31 +- .../reference/typeParameterAsBaseType.js | 33 +- .../reference/typeParameterAsTypeArgument.js | 7 +- ...erAsTypeParameterConstraintTransitively.js | 2 +- ...rAsTypeParameterConstraintTransitively2.js | 2 +- .../reference/typeParameterAssignability3.js | 21 +- .../typeParameterAssignmentCompat1.js | 11 +- .../reference/typeParameterConstModifiers.js | 106 +- .../typeParameterConstraintInstantiation.js | 2 +- ...ypeParameterDirectlyConstrainedToItself.js | 18 +- .../typeParameterExplicitlyExtendsAny.js | 11 +- .../reference/typeParameterExtendingUnion1.js | 42 +- .../reference/typeParameterExtendingUnion2.js | 42 +- .../typeParameterExtendsPrimitive.js | 14 +- .../typeParameterFixingWithConstraints.js | 2 +- ...eterFixingWithContextSensitiveArguments.js | 6 +- ...terFixingWithContextSensitiveArguments2.js | 2 +- ...terFixingWithContextSensitiveArguments3.js | 2 +- ...terFixingWithContextSensitiveArguments4.js | 2 +- ...terFixingWithContextSensitiveArguments5.js | 2 +- .../reference/typeParameterInConstraint1.js | 7 +- ...eParameterIndirectlyConstrainedToItself.js | 25 +- .../baselines/reference/typeParameterLeak.js | 4 +- .../typeParameterListWithTrailingComma1.js | 7 +- .../typeParameterUsedAsConstraint.js | 54 +- ...eParameterUsedAsTypeParameterConstraint.js | 4 +- ...ParameterUsedAsTypeParameterConstraint2.js | 8 +- ...ParameterUsedAsTypeParameterConstraint4.js | 19 +- .../typeParameterWithInvalidConstraintType.js | 11 +- ...eParametersAndParametersInComputedNames.js | 9 +- .../typeParametersAreIdenticalToThemselves.js | 28 +- .../typeParametersAvailableInNestedScope.js | 13 +- .../typeParametersAvailableInNestedScope3.js | 4 +- .../typeParametersInStaticAccessors.js | 19 +- .../typeParametersInStaticMethods.js | 9 +- .../typeParametersInStaticProperties.js | 7 +- ...tantiatedWithDefaultWhenCheckingDefault.js | 15 +- .../typePredicateFreshLiteralWidening.js | 22 +- .../reference/typePredicateInLoop.js | 12 +- .../reference/typePredicateInherit.js | 66 +- .../typePredicateTopLevelTypeParameter.js | 4 +- .../typePredicatesCanNarrowByDiscriminant.js | 2 +- .../typePredicatesOptionalChaining1.js | 2 +- .../typePredicatesOptionalChaining2.js | 6 +- tests/baselines/reference/typeQuery.js | 16 +- tests/baselines/reference/typeQueryOnClass.js | 77 +- .../reference/typeQueryWithReservedWords.js | 17 +- .../reference/typeReferenceDirectives10.js | 3 +- .../typeReferenceDirectives10.trace.json | 2 +- .../typeReferenceDirectives11.trace.json | 2 +- .../typeReferenceDirectives12.trace.json | 4 +- .../reference/typeReferenceDirectives13.js | 3 +- .../typeReferenceDirectives13.trace.json | 2 +- .../reference/typeReferenceDirectives4.js | 4 +- .../reference/typeReferenceDirectives5.js | 3 +- .../typeReferenceDirectives5.trace.json | 2 +- .../reference/typeReferenceDirectives6.js | 4 +- .../reference/typeReferenceDirectives7.js | 9 +- .../reference/typeReferenceDirectives8.js | 12 +- .../typeReferenceDirectives8.trace.json | 2 +- .../reference/typeReferenceDirectives9.js | 30 +- .../typeReferenceDirectives9.trace.json | 4 +- .../reference/typeReferenceRelatedFiles.js | 5 +- .../baselines/reference/typeRelationships.js | 61 +- tests/baselines/reference/typeResolution.js | 100 +- .../baselines/reference/typeResolution.js.map | 4 +- .../reference/typeResolution.sourcemap.txt | 1757 ++--- ...RootsFromMultipleNodeModulesDirectories.js | 10 +- ...mMultipleNodeModulesDirectories.trace.json | 6 +- ...peRootsFromNodeModulesInParentDirectory.js | 6 +- ...romNodeModulesInParentDirectory.trace.json | 2 +- tests/baselines/reference/typeSatisfaction.js | 16 +- .../typeSatisfaction_contextualTyping1.js | 6 +- .../typeSatisfaction_contextualTyping2.js | 8 +- .../typeSatisfaction_ensureInterfaceImpl.js | 8 +- ...eSatisfaction_optionalMemberConformance.js | 4 +- .../typeSatisfaction_propNameConstraining.js | 8 +- ...ypeSatisfaction_propertyNameFulfillment.js | 8 +- ...propertyaccessfromindexsignature=false).js | 6 +- ...opropertyaccessfromindexsignature=true).js | 6 +- ...rmance2(nouncheckedindexedaccess=false).js | 6 +- ...ormance2(nouncheckedindexedaccess=true).js | 6 +- ...eSatisfaction_propertyValueConformance3.js | 5 +- ...on_vacuousIntersectionOfContextualTypes.js | 4 +- tests/baselines/reference/typeTagNoErasure.js | 2 +- .../typeTagOnFunctionReferencesGeneric.js | 7 +- .../reference/typeUsedAsValueError.js | 19 +- .../baselines/reference/typeValueConflict1.js | 31 +- .../baselines/reference/typeValueConflict2.js | 40 +- ...ConstraintedToAliasNotAssignableToUnion.js | 3 +- .../reference/typeVariableTypeGuards.js | 48 +- .../reference/typedGenericPrototypeMember.js | 9 +- .../typedefOnSemicolonClassElement.js | 11 +- .../reference/typedefOnStatements.js | 5 +- .../reference/typeofANonExportedType.js | 41 +- .../reference/typeofAmbientExternalModules.js | 18 +- .../reference/typeofAnExportedType.js | 61 +- tests/baselines/reference/typeofClass.js | 7 +- tests/baselines/reference/typeofClass2.js | 40 +- .../reference/typeofClassWithPrivates.js | 7 +- .../reference/typeofExternalModules.js | 18 +- .../typeofImportInstantiationExpression.js | 5 +- .../reference/typeofImportTypeOnlyExport.js | 28 +- .../reference/typeofInternalModules.js | 9 +- .../reference/typeofModuleWithoutExports.js | 7 +- .../reference/typeofObjectInference.js | 27 +- .../typeofOperatorWithAnyOtherType.js | 13 +- .../typeofOperatorWithBooleanType.js | 9 +- .../reference/typeofOperatorWithNumberType.js | 11 +- .../reference/typeofOperatorWithStringType.js | 11 +- tests/baselines/reference/typeofProperty.js | 28 +- tests/baselines/reference/typeofStrictNull.js | 4 +- .../reference/typeofStripsFreshness.js | 8 +- tests/baselines/reference/typeofThis.js | 143 +- .../reference/typeofThisWithImplicitThis.js | 2 +- .../reference/typeofUsedBeforeBlockScoped.js | 13 +- ...typesOnlyExternalModuleStillHasInstance.js | 2 +- .../typesWithDuplicateTypeParameters.js | 14 +- .../reference/typesWithOptionalProperty.js | 2 +- .../reference/typesWithPrivateConstructor.js | 16 +- .../typesWithProtectedConstructor.js | 16 +- .../reference/typesWithPublicConstructor.js | 16 +- .../typesWithSpecializedCallSignatures.js | 51 +- ...typesWithSpecializedConstructSignatures.js | 47 +- tests/baselines/reference/typingsLookup4.js | 12 +- .../reference/typingsLookup4.trace.json | 8 +- .../reference/typingsSuggestionBun1.js | 2 +- .../reference/typingsSuggestionBun2.js | 2 +- .../baselines/reference/umd-augmentation-1.js | 8 +- .../baselines/reference/umd-augmentation-2.js | 6 +- .../baselines/reference/umd-augmentation-3.js | 8 +- .../baselines/reference/umd-augmentation-4.js | 6 +- tests/baselines/reference/umd1.js | 4 +- tests/baselines/reference/umd2.js | 4 +- tests/baselines/reference/umd3.js | 6 +- tests/baselines/reference/umd4.js | 6 +- tests/baselines/reference/umd5.js | 6 +- tests/baselines/reference/umd6.js | 2 +- tests/baselines/reference/umd7.js | 2 +- tests/baselines/reference/umd8.js | 2 +- .../reference/umdDependencyComment2.js | 2 +- .../reference/umdDependencyCommentName1.js | 2 +- .../reference/umdDependencyCommentName2.js | 2 +- .../baselines/reference/umdGlobalConflict.js | 5 +- .../uncalledFunctionChecksInConditional2.js | 32 +- tests/baselines/reference/undeclaredBase.js | 24 +- tests/baselines/reference/undeclaredMethod.js | 9 +- .../reference/undeclaredModuleError.js | 17 +- .../undefinedAssignableToEveryType.js | 7 +- ...edAssignableToGenericMappedIntersection.js | 4 +- .../undefinedIsSubtypeOfEverything.js | 227 +- .../reference/undefinedTypeAssignment1.js | 3 +- .../reference/undefinedTypeAssignment4.js | 7 +- .../baselines/reference/underscoreMapFirst.js | 28 +- tests/baselines/reference/underscoreTest1.js | 47 +- .../unexpectedStatementBlockTerminator.js | 14 +- .../unexportedInstanceClassVariables.js | 15 +- ...unionErrorMessageOnMatchingDiscriminant.js | 2 +- ...tyCheckNoApparentPropTypeMismatchErrors.js | 4 +- .../unionExcessPropsWithPartialMember.js | 13 +- .../baselines/reference/unionOfClassCalls.js | 26 +- .../unionOfFunctionAndSignatureIsCallable.js | 8 +- ...pertyOfProtectedAndIntersectionProperty.js | 14 +- .../reference/unionReductionMutualSubtypes.js | 4 +- .../reference/unionRelationshipCheckPasses.js | 2 +- ...nSubtypeIfEveryConstituentTypeIsSubtype.js | 21 +- .../reference/unionSubtypeReductionErrors.js | 4 +- .../reference/unionTypeCallSignatures3.js | 21 +- .../reference/unionTypeEquivalence.js | 33 +- .../reference/unionTypeFromArrayLiteral.js | 55 +- .../unionTypePropertyAccessibility.js | 28 +- .../reference/unionTypeReduction2.js | 18 +- .../unionTypeWithIndexAndMethodSignature.js | 2 +- .../unionTypeWithIndexedLiteralType.js | 2 +- .../reference/unionTypeWithLeadingOperator.js | 3 +- ...unionTypeWithRecursiveSubtypeReduction1.js | 28 +- ...unionTypeWithRecursiveSubtypeReduction2.js | 28 +- .../reference/unionTypesAssignability.js | 44 +- .../reference/unionWithIndexSignature.js | 13 +- .../reference/unionsOfTupleTypes1.js | 52 +- ...olAllowsIndexInObjectWithIndexSignature.js | 10 +- tests/baselines/reference/uniqueSymbolJs2.js | 6 +- .../uniqueSymbolPropertyDeclarationEmit.js | 25 +- .../baselines/reference/unknownControlFlow.js | 38 +- ...ownPropertiesAreAssignableToObjectUnion.js | 4 +- .../unknownSymbolInGenericReturnType.js | 11 +- tests/baselines/reference/unknownSymbols1.js | 54 +- tests/baselines/reference/unknownSymbols2.js | 6 +- tests/baselines/reference/unknownType1.js | 54 +- tests/baselines/reference/unknownType2.js | 80 +- .../reference/unknownTypeArgOnCall.js | 11 +- .../reference/unmatchedParameterPositions.js | 4 +- .../unqualifiedCallToClassStatic1.js | 15 +- ...eDeclarations(preserveconstenums=false).js | 26 +- ...leDeclarations(preserveconstenums=true).js | 30 +- .../reference/unreachableFlowAfterFinally.js | 2 +- .../reference/unreachableSwitchTypeofAny.js | 2 +- .../unreachableSwitchTypeofUnknown.js | 2 +- .../reference/unspecializedConstraints.js | 150 +- .../untypedArgumentInLambdaExpression.js | 2 +- ...untypedFunctionCallsWithTypeParameters1.js | 33 +- .../reference/untypedModuleImport.js | 6 +- .../reference/untypedModuleImport_allowJs.js | 9 +- .../untypedModuleImport_noImplicitAny.js | 3 +- ...ModuleImport_noImplicitAny_relativePath.js | 3 +- ...ntypedModuleImport_noImplicitAny_scoped.js | 3 +- ...port_noImplicitAny_typesForPackageExist.js | 3 +- .../untypedModuleImport_vsAmbient.js | 6 +- .../untypedModuleImport_withAugmentation.js | 6 +- .../untypedModuleImport_withAugmentation2.js | 3 +- .../reference/unusedClassesinModule1.js | 9 +- .../reference/unusedClassesinNamespace1.js | 7 +- .../reference/unusedClassesinNamespace2.js | 14 +- .../reference/unusedClassesinNamespace3.js | 14 +- .../reference/unusedClassesinNamespace4.js | 38 +- .../reference/unusedClassesinNamespace5.js | 21 +- .../reference/unusedDestructuring.js | 18 +- .../unusedDestructuringParameters.js | 12 +- .../unusedIdentifiersConsolidated1.js | 101 +- .../reference/unusedImportDeclaration.js | 7 +- tests/baselines/reference/unusedImports1.js | 14 +- tests/baselines/reference/unusedImports10.js | 9 +- tests/baselines/reference/unusedImports11.js | 15 +- tests/baselines/reference/unusedImports12.js | 7 +- tests/baselines/reference/unusedImports13.js | 2 +- tests/baselines/reference/unusedImports14.js | 2 +- tests/baselines/reference/unusedImports15.js | 2 +- tests/baselines/reference/unusedImports16.js | 2 +- tests/baselines/reference/unusedImports2.js | 22 +- tests/baselines/reference/unusedImports3.js | 27 +- tests/baselines/reference/unusedImports4.js | 27 +- tests/baselines/reference/unusedImports5.js | 27 +- tests/baselines/reference/unusedImports6.js | 22 +- tests/baselines/reference/unusedImports7.js | 22 +- tests/baselines/reference/unusedImports8.js | 27 +- tests/baselines/reference/unusedImports9.js | 9 +- .../unusedImports_entireImportDeclaration.js | 57 +- .../reference/unusedInterfaceinNamespace4.js | 7 +- .../reference/unusedInterfaceinNamespace5.js | 7 +- .../reference/unusedInvalidTypeArguments.js | 89 +- .../reference/unusedLocalProperty.js | 13 +- .../reference/unusedLocalsAndObjectSpread.js | 16 +- .../reference/unusedLocalsAndObjectSpread2.js | 11 +- .../reference/unusedLocalsAndParameters.js | 66 +- .../unusedLocalsAndParametersDeferred.js | 141 +- ...edLocalsAndParametersOverloadSignatures.js | 21 +- .../unusedLocalsAndParametersTypeAliases.js | 3 +- .../unusedLocalsAndParametersTypeAliases2.js | 3 +- .../reference/unusedLocalsInMethod1.js | 11 +- .../reference/unusedLocalsInMethod2.js | 11 +- .../reference/unusedLocalsInMethod3.js | 11 +- .../reference/unusedLocalsInMethod4.js | 72 +- .../unusedLocalsStartingWithUnderscore.js | 17 +- .../reference/unusedLocalsinConstructor1.js | 7 +- .../reference/unusedLocalsinConstructor2.js | 7 +- .../unusedMultipleParameter1InContructor.js | 7 +- .../unusedMultipleParameter2InContructor.js | 7 +- ...dMultipleParameters1InMethodDeclaration.js | 11 +- ...dMultipleParameters2InMethodDeclaration.js | 11 +- .../reference/unusedParameterProperty1.js | 9 +- .../reference/unusedParameterProperty2.js | 9 +- .../reference/unusedParametersInLambda1.js | 13 +- .../reference/unusedParametersInLambda2.js | 13 +- .../reference/unusedParametersThis.js | 33 +- .../unusedParametersWithUnderscore.js | 20 +- .../unusedParametersinConstructor1.js | 7 +- .../unusedParametersinConstructor2.js | 7 +- .../unusedParametersinConstructor3.js | 7 +- .../reference/unusedPrivateMethodInClass1.js | 11 +- .../reference/unusedPrivateMethodInClass2.js | 15 +- .../reference/unusedPrivateMethodInClass3.js | 19 +- .../reference/unusedPrivateMethodInClass4.js | 19 +- .../unusedPrivateVariableInClass1.js | 7 +- .../unusedPrivateVariableInClass2.js | 7 +- .../unusedPrivateVariableInClass3.js | 7 +- .../unusedPrivateVariableInClass4.js | 11 +- .../unusedPrivateVariableInClass5.js | 7 +- .../reference/unusedSemicolonInClass.js | 7 +- .../reference/unusedSetterInClass2.js | 17 +- .../unusedSingleParameterInContructor.js | 7 +- ...nusedSingleParameterInMethodDeclaration.js | 11 +- .../reference/unusedSwitchStatement.js | 8 +- .../reference/unusedTypeParameterInLambda1.js | 13 +- .../reference/unusedTypeParameterInLambda2.js | 13 +- .../reference/unusedTypeParameterInLambda3.js | 7 +- .../reference/unusedTypeParameterInMethod1.js | 11 +- .../reference/unusedTypeParameterInMethod2.js | 11 +- .../reference/unusedTypeParameterInMethod3.js | 11 +- .../reference/unusedTypeParameterInMethod4.js | 9 +- .../reference/unusedTypeParameterInMethod5.js | 7 +- .../reference/unusedTypeParameters1.js | 7 +- .../reference/unusedTypeParameters2.js | 11 +- .../reference/unusedTypeParameters3.js | 11 +- .../reference/unusedTypeParameters5.js | 7 +- .../reference/unusedTypeParameters6.js | 7 +- .../reference/unusedTypeParameters7.js | 7 +- .../reference/unusedTypeParameters8.js | 7 +- .../reference/unusedTypeParameters9.js | 14 +- ...peParametersCheckedByNoUnusedParameters.js | 11 +- ...ypeParametersNotCheckedByNoUnusedLocals.js | 11 +- .../unusedTypeParametersWithUnderscore.js | 11 +- ...VariablesWithUnderscoreInBindingElement.js | 42 +- ...nusedVariablesWithUnderscoreInForOfLoop.js | 34 +- .../reference/unusedVariablesinBlocks1.js | 4 +- .../reference/unusedVariablesinBlocks2.js | 4 +- .../reference/unusedVariablesinForLoop2.js | 2 +- .../reference/unusedVariablesinForLoop3.js | 3 +- .../reference/unusedVariablesinForLoop4.js | 3 +- .../reference/unusedVariablesinModules1.js | 4 +- .../reference/unusedVariablesinNamespaces1.js | 2 +- .../reference/unusedVariablesinNamespaces2.js | 15 +- .../reference/unusedVariablesinNamespaces3.js | 15 +- .../unwitnessedTypeParameterVariance.js | 7 +- .../useBeforeDeclaration_destructuring.js | 6 +- .../useBeforeDeclaration_superClass.js | 75 +- ...ngModuleWithExportImportInValuePosition.js | 7 +- .../validMultipleVariableDeclarations.js | 2 +- .../reference/validNullAssignments.js | 7 +- .../reference/validUndefinedAssignments.js | 7 +- .../reference/validUseOfThisInSuper.js | 33 +- .../reference/valuesMergingAcrossModules.js | 14 +- .../varArgConstructorMemberParameter.js | 30 +- .../reference/varArgParamTypeCheck.js | 16 +- .../reference/varArgWithNoParamName.js | 7 +- .../reference/varArgsOnConstructorTypes.js | 38 +- tests/baselines/reference/varAsID.js | 14 +- tests/baselines/reference/vararg.js | 31 +- tests/baselines/reference/vardecl.js | 14 +- ...arationEmitUniqueSymbolPartialStatement.js | 13 +- ...eclaratorResolvedDuringContextualTyping.js | 25 +- tests/baselines/reference/variadicTuples1.js | 177 +- tests/baselines/reference/variadicTuples2.js | 67 +- tests/baselines/reference/variance.js | 23 +- .../reference/varianceAnnotationValidation.js | 11 +- .../reference/varianceAnnotations.js | 35 +- .../reference/varianceMeasurement.js | 33 +- ...ndZeroOrderIndexSignatureRelationsAlign.js | 76 +- ...dZeroOrderIndexSignatureRelationsAlign2.js | 76 +- ...eRepeatedlyPropegatesWithUnreliableFlag.js | 6 +- .../verbatim-declarations-parameters.js | 21 +- .../verbatimModuleSyntaxNoElisionESM.js | 18 +- tests/baselines/reference/visSyntax.js | 7 +- .../reference/visibilityOfTypeParameters.js | 11 +- tests/baselines/reference/voidArrayLit.js | 6 +- .../reference/voidAsNonAmbiguousReturnType.js | 2 +- .../baselines/reference/voidIsInitialized.js | 4 +- .../reference/voidOperatorWithAnyOtherType.js | 11 +- .../reference/voidOperatorWithBooleanType.js | 9 +- .../reference/voidOperatorWithNumberType.js | 11 +- .../reference/voidOperatorWithStringType.js | 11 +- .../voidParamAssignmentCompatibility.js | 2 +- .../voidReturnIndexUnionInference.js | 5 +- .../reference/vueLikeDataAndPropsInference.js | 4 +- .../vueLikeDataAndPropsInference2.js | 4 +- tests/baselines/reference/weakType.js | 20 +- .../weakTypeAndPrimitiveNarrowing.js | 4 +- tests/baselines/reference/widenedTypes.js | 2 +- tests/baselines/reference/wideningTuples2.js | 2 +- tests/baselines/reference/wideningTuples5.js | 2 +- tests/baselines/reference/wideningTuples6.js | 2 +- tests/baselines/reference/wideningTuples7.js | 2 +- tests/baselines/reference/withImportDecl.js | 7 +- .../reference/withStatementErrors.js | 7 +- tests/baselines/reference/witness.js | 49 +- .../wrappedAndRecursiveConstraints.js | 11 +- .../wrappedAndRecursiveConstraints2.js | 8 +- .../wrappedAndRecursiveConstraints3.js | 14 +- .../wrappedAndRecursiveConstraints4.js | 14 +- tests/cases/compiler/2dArrays.ts | 1 + tests/cases/compiler/APILibCheck.ts | 1 + tests/cases/compiler/APISample_Watch.ts | 3 +- .../compiler/APISample_WatchWithDefaults.ts | 3 +- .../APISample_WatchWithOwnWatchHost.ts | 3 +- tests/cases/compiler/APISample_compile.ts | 3 +- tests/cases/compiler/APISample_jsdoc.ts | 1 + tests/cases/compiler/APISample_linter.ts | 3 +- tests/cases/compiler/APISample_parseConfig.ts | 1 + tests/cases/compiler/APISample_transform.ts | 3 +- tests/cases/compiler/APISample_watcher.ts | 3 +- .../compiler/ArrowFunctionExpression1.ts | 1 + tests/cases/compiler/ClassDeclaration10.ts | 1 + tests/cases/compiler/ClassDeclaration11.ts | 1 + tests/cases/compiler/ClassDeclaration13.ts | 1 + tests/cases/compiler/ClassDeclaration14.ts | 1 + tests/cases/compiler/ClassDeclaration15.ts | 1 + tests/cases/compiler/ClassDeclaration21.ts | 1 + tests/cases/compiler/ClassDeclaration22.ts | 1 + tests/cases/compiler/ClassDeclaration24.ts | 1 + tests/cases/compiler/ClassDeclaration25.ts | 1 + tests/cases/compiler/ClassDeclaration26.ts | 1 + tests/cases/compiler/ClassDeclaration8.ts | 1 + tests/cases/compiler/ClassDeclaration9.ts | 1 + ...onWithInvalidConstOnPropertyDeclaration.ts | 1 + ...nWithInvalidConstOnPropertyDeclaration2.ts | 1 + .../DeclarationErrorsNoEmitOnError.ts | 1 + tests/cases/compiler/ExportAssignment7.ts | 2 + tests/cases/compiler/ExportAssignment8.ts | 2 + tests/cases/compiler/FunctionDeclaration3.ts | 1 + tests/cases/compiler/FunctionDeclaration4.ts | 1 + tests/cases/compiler/FunctionDeclaration6.ts | 1 + tests/cases/compiler/FunctionDeclaration7.ts | 1 + tests/cases/compiler/InterfaceDeclaration8.ts | 1 + .../compiler/MemberAccessorDeclaration15.ts | 1 + tests/cases/compiler/ParameterList13.ts | 1 + tests/cases/compiler/ParameterList4.ts | 1 + tests/cases/compiler/ParameterList5.ts | 1 + tests/cases/compiler/ParameterList6.ts | 1 + tests/cases/compiler/ParameterList7.ts | 1 + tests/cases/compiler/ParameterList8.ts | 1 + .../SystemModuleForStatementNoInitializer.ts | 1 + tests/cases/compiler/TransportStream.ts | 3 +- .../compiler/abstractClassInLocalScope.ts | 1 + .../abstractClassInLocalScopeIsAbstract.ts | 1 + .../abstractClassUnionInstantiation.ts | 1 + .../compiler/abstractIdentifierNameStrict.ts | 1 + .../abstractInterfaceIdentifierName.ts | 1 + .../compiler/abstractPropertyInConstructor.ts | 1 + tests/cases/compiler/acceptableAlias1.ts | 1 + .../accessInstanceMemberFromStaticMethod01.ts | 1 + .../accessOverriddenBaseClassMember1.ts | 1 + .../accessStaticMemberFromInstanceMethod01.ts | 1 + .../compiler/accessorBodyInTypeContext.ts | 1 + .../compiler/accessorDeclarationEmitJs.ts | 1 + ...nferredReturnTypeErrorInReturnStatement.ts | 1 + tests/cases/compiler/accessorsEmit.ts | 1 + .../accessors_spec_section-4.5_error-cases.ts | 1 + .../accessors_spec_section-4.5_inference.ts | 1 + .../addMoreCallSignaturesToBaseSignature.ts | 1 + .../addMoreCallSignaturesToBaseSignature2.ts | 1 + .../addMoreOverloadsToBaseSignature.ts | 1 + tests/cases/compiler/aliasAssignments.ts | 1 + tests/cases/compiler/aliasBug.ts | 1 + .../aliasDoesNotDuplicateSignatures.ts | 1 + tests/cases/compiler/aliasErrors.ts | 1 + .../cases/compiler/aliasInaccessibleModule.ts | 1 + .../compiler/aliasInaccessibleModule2.ts | 1 + ...onExpressionGenericIntersectionNoCrash1.ts | 1 + ...onExpressionGenericIntersectionNoCrash2.ts | 1 + ...cFunctionWithRestBehavedSameAsUnaliased.ts | 1 + .../compiler/aliasOnMergedModuleInterface.ts | 1 + tests/cases/compiler/aliasUsageInArray.ts | 1 + .../aliasUsageInFunctionExpression.ts | 1 + .../compiler/aliasUsageInGenericFunction.ts | 1 + .../compiler/aliasUsageInIndexerOfClass.ts | 1 + .../compiler/aliasUsageInObjectLiteral.ts | 1 + .../compiler/aliasUsageInOrExpression.ts | 1 + ...aliasUsageInTypeArgumentOfExtendsClause.ts | 1 + .../compiler/aliasUsageInVarAssignment.ts | 1 + tests/cases/compiler/aliasUsedAsNameValue.ts | 1 + ...aceExportAssignmentUsedInVarInitializer.ts | 1 + .../cases/compiler/aliasesInSystemModule1.ts | 1 + .../cases/compiler/aliasesInSystemModule2.ts | 1 + .../allowImportClausesToMergeWithTypes.ts | 1 + .../compiler/allowJsClassThisTypeCrash.ts | 1 + .../compiler/allowJsCrossMonorepoPackage.ts | 1 + .../allowJscheckJsTypeParameterNoCrash.ts | 1 + .../compiler/allowSyntheticDefaultImports1.ts | 1 + .../allowSyntheticDefaultImports10.ts | 1 + .../compiler/allowSyntheticDefaultImports2.ts | 1 + .../compiler/allowSyntheticDefaultImports3.ts | 1 + .../compiler/allowSyntheticDefaultImports4.ts | 1 + .../compiler/allowSyntheticDefaultImports5.ts | 1 + .../compiler/allowSyntheticDefaultImports6.ts | 1 + .../compiler/allowSyntheticDefaultImports7.ts | 1 + .../compiler/allowSyntheticDefaultImports8.ts | 1 + .../compiler/allowSyntheticDefaultImports9.ts | 1 + ...ltImportsCanPaintCrossModuleDeclaration.ts | 1 + tests/cases/compiler/alwaysStrict.ts | 1 + .../compiler/alwaysStrictAlreadyUseStrict.ts | 1 + tests/cases/compiler/alwaysStrictModule.ts | 1 + tests/cases/compiler/alwaysStrictModule2.ts | 1 + tests/cases/compiler/alwaysStrictModule3.ts | 3 +- tests/cases/compiler/alwaysStrictModule4.ts | 3 +- .../alwaysStrictNoImplicitUseStrict.ts | 1 + .../ambientClassDeclarationWithExtends.ts | 1 + .../ambientClassDeclaredBeforeBase.ts | 1 + ...mbientClassMergesOverloadsWithInterface.ts | 3 +- .../ambientClassOverloadForFunction.ts | 1 + tests/cases/compiler/ambientConstLiterals.ts | 1 + tests/cases/compiler/ambientEnum1.ts | 1 + .../ambientEnumElementInitializer1.ts | 1 + .../ambientEnumElementInitializer2.ts | 1 + .../ambientEnumElementInitializer3.ts | 1 + .../ambientEnumElementInitializer4.ts | 1 + .../ambientEnumElementInitializer5.ts | 1 + .../ambientEnumElementInitializer6.ts | 1 + tests/cases/compiler/ambientErrors1.ts | 1 + .../compiler/ambientExportDefaultErrors.ts | 1 + ...ntExternalModuleInAnotherExternalModule.ts | 1 + .../compiler/ambientExternalModuleReopen.ts | 1 + ...rnalModuleWithInternalImportDeclaration.ts | 1 + ...leWithRelativeExternalImportDeclaration.ts | 1 + ...entExternalModuleWithRelativeModuleName.ts | 1 + ...lModuleWithoutInternalImportDeclaration.ts | 1 + tests/cases/compiler/ambientFundule.ts | 1 + tests/cases/compiler/ambientModuleExports.ts | 1 + ...ntModuleWithClassDeclarationWithExtends.ts | 1 + .../ambientModuleWithTemplateLiterals.ts | 1 + tests/cases/compiler/ambientModules.ts | 3 +- .../cases/compiler/ambientNameRestrictions.ts | 1 + .../ambientPropertyDeclarationInJs.ts | 1 + .../cases/compiler/ambientRequireFunction.ts | 1 + tests/cases/compiler/ambientStatement1.ts | 1 + tests/cases/compiler/ambientWithStatements.ts | 1 + .../ambiguousCallsWhereReturnTypesAgree.ts | 1 + .../compiler/ambiguousGenericAssertion1.ts | 1 + tests/cases/compiler/ambiguousOverload.ts | 1 + .../compiler/ambiguousOverloadResolution.ts | 1 + .../amdDeclarationEmitNoExtraDeclare.ts | 1 + tests/cases/compiler/amdDependencyComment1.ts | 1 + tests/cases/compiler/amdDependencyComment2.ts | 1 + .../compiler/amdDependencyCommentName1.ts | 1 + .../compiler/amdDependencyCommentName2.ts | 1 + .../compiler/amdDependencyCommentName3.ts | 1 + .../compiler/amdDependencyCommentName4.ts | 1 + .../compiler/amdLikeInputDeclarationEmit.ts | 1 + ...undleNoDuplicateDeclarationEmitComments.ts | 1 + .../cases/compiler/amdModuleConstEnumUsage.ts | 1 + tests/cases/compiler/amdModuleName1.ts | 1 + tests/cases/compiler/amdModuleName2.ts | 1 + .../anonClassDeclarationEmitIsAnon.ts | 1 + tests/cases/compiler/anonterface.ts | 1 + ...ClassDeclarationDoesntPrintWithReadonly.ts | 1 + .../compiler/anonymousClassExpression1.ts | 1 + .../compiler/anonymousClassExpression2.ts | 1 + tests/cases/compiler/anonymousModules.ts | 1 + .../anyAndUnknownHaveFalsyComponents.ts | 1 + .../compiler/anyAsReturnTypeForNewOnCall.ts | 1 + tests/cases/compiler/anyDeclare.ts | 1 + tests/cases/compiler/anyIdenticalToItself.ts | 1 + .../anyIndexedAccessArrayNoException.ts | 1 + .../anyInferenceAnonymousFunctions.ts | 1 + .../cases/compiler/anyIsAssignableToObject.ts | 1 + tests/cases/compiler/anyIsAssignableToVoid.ts | 1 + tests/cases/compiler/anyMappedTypesError.ts | 1 + tests/cases/compiler/anyPlusAny1.ts | 1 + tests/cases/compiler/argsInScope.ts | 1 + .../cases/compiler/argumentsAsPropertyName.ts | 1 + .../compiler/argumentsAsPropertyName2.ts | 1 + ...gumentsBindsToFunctionScopeArgumentList.ts | 1 + .../argumentsObjectCreatesRestForJs.ts | 1 + .../argumentsPropertyNameInJsMode1.ts | 1 + .../argumentsPropertyNameInJsMode2.ts | 1 + .../argumentsReferenceInConstructor1_Js.ts | 1 + .../argumentsReferenceInConstructor2_Js.ts | 1 + .../argumentsReferenceInConstructor3_Js.ts | 1 + .../argumentsReferenceInConstructor4_Js.ts | 1 + .../argumentsReferenceInConstructor5_Js.ts | 1 + .../argumentsReferenceInConstructor6_Js.ts | 1 + .../argumentsReferenceInConstructor7_Js.ts | 1 + .../argumentsReferenceInFunction1_Js.ts | 1 + .../argumentsReferenceInMethod1_Js.ts | 1 + .../argumentsReferenceInMethod2_Js.ts | 1 + .../argumentsReferenceInMethod3_Js.ts | 1 + .../argumentsReferenceInMethod4_Js.ts | 1 + .../argumentsReferenceInMethod5_Js.ts | 1 + .../argumentsReferenceInMethod6_Js.ts | 1 + .../argumentsReferenceInMethod7_Js.ts | 1 + ...dInitializerOrStaticInitializationBlock.ts | 1 + .../argumentsUsedInObjectLiteralProperty.ts | 1 + tests/cases/compiler/arithAssignTyping.ts | 1 + .../compiler/arithmeticOnInvalidTypes.ts | 1 + .../compiler/arithmeticOnInvalidTypes2.ts | 1 + .../arityErrorRelatedSpanBindingPattern.ts | 1 + tests/cases/compiler/arrayAssignmentTest1.ts | 1 + tests/cases/compiler/arrayAssignmentTest2.ts | 1 + tests/cases/compiler/arrayAssignmentTest3.ts | 1 + tests/cases/compiler/arrayAssignmentTest4.ts | 1 + tests/cases/compiler/arrayAssignmentTest5.ts | 1 + tests/cases/compiler/arrayAssignmentTest6.ts | 1 + tests/cases/compiler/arrayAugment.ts | 1 + tests/cases/compiler/arrayBestCommonTypes.ts | 3 +- .../compiler/arrayBufferIsViewNarrowsType.ts | 1 + tests/cases/compiler/arrayCast.ts | 1 + tests/cases/compiler/arrayConcat2.ts | 1 + tests/cases/compiler/arrayConcat3.ts | 1 + tests/cases/compiler/arrayConcatMap.ts | 1 + tests/cases/compiler/arrayConstructors1.ts | 1 + .../compiler/arrayDestructuringInSwitch1.ts | 1 + .../compiler/arrayDestructuringInSwitch2.ts | 1 + tests/cases/compiler/arrayEvery.ts | 1 + ...rayFakeFlatNoCrashInferenceDeclarations.ts | 1 + tests/cases/compiler/arrayFilter.ts | 1 + tests/cases/compiler/arrayFind.ts | 1 + tests/cases/compiler/arrayFlatMap.ts | 1 + .../compiler/arrayFlatNoCrashInference.ts | 1 + .../arrayFlatNoCrashInferenceDeclarations.ts | 1 + tests/cases/compiler/arrayFrom.ts | 1 + .../compiler/arrayIndexWithArrayFails.ts | 1 + tests/cases/compiler/arrayLiteral1.ts | 1 + tests/cases/compiler/arrayLiteral2.ts | 1 + ...yLiteralAndArrayConstructorEquivalence1.ts | 1 + tests/cases/compiler/arrayLiteralComments.ts | 1 + .../compiler/arrayLiteralContextualType.ts | 1 + .../arrayLiteralInNonVarArgParameter.ts | 1 + .../compiler/arrayLiteralTypeInference.ts | 3 +- tests/cases/compiler/arrayOfExportedClass.ts | 1 + ...rayOfSubtypeIsAssignableToReadonlyArray.ts | 1 + .../compiler/arrayReferenceWithoutTypeArgs.ts | 1 + tests/cases/compiler/arraySigChecking.ts | 1 + tests/cases/compiler/arraySlice.ts | 1 + ...arrayTypeInSignatureOfInterfaceAndClass.ts | 1 + tests/cases/compiler/arrayconcat.ts | 1 + .../compiler/arrowExpressionBodyJSDoc.ts | 1 + tests/cases/compiler/arrowExpressionJs.ts | 1 + .../cases/compiler/arrowFunctionErrorSpan.ts | 1 + .../arrowFunctionInConstructorArgument1.ts | 1 + .../arrowFunctionInExpressionStatement1.ts | 1 + .../arrowFunctionInExpressionStatement2.ts | 1 + .../compiler/arrowFunctionJSDocAnnotation.ts | 1 + .../arrowFunctionMissingCurlyWithSemicolon.ts | 1 + ...tConfuseParenthesizedObjectForArrowHead.ts | 1 + .../arrowFunctionWithObjectLiteralBody1.ts | 1 + .../arrowFunctionWithObjectLiteralBody2.ts | 1 + .../arrowFunctionWithObjectLiteralBody5.ts | 1 + .../compiler/arrowFunctionsMissingTokens.ts | 1 + tests/cases/compiler/asiAbstract.ts | 1 + .../compiler/asiAmbientFunctionDeclaration.ts | 3 +- tests/cases/compiler/asiArith.ts | 1 + tests/cases/compiler/asiBreak.ts | 3 +- tests/cases/compiler/asiContinue.ts | 3 +- tests/cases/compiler/asiInES6Classes.ts | 1 + .../compiler/asiPublicPrivateProtected.ts | 1 + tests/cases/compiler/asiReturn.ts | 3 +- .../compiler/assertInWrapSomeTypeParameter.ts | 1 + .../assertionFunctionWildcardImport1.ts | 1 + .../assertionFunctionWildcardImport2.ts | 1 + ...sertionFunctionsCanNarrowByDiscriminant.ts | 1 + tests/cases/compiler/assign1.ts | 1 + .../assignLambdaToNominalSubtypeOfFunction.ts | 1 + tests/cases/compiler/assignToEnum.ts | 1 + tests/cases/compiler/assignToExistingClass.ts | 1 + tests/cases/compiler/assignToFn.ts | 1 + tests/cases/compiler/assignToInvalidLHS.ts | 1 + tests/cases/compiler/assignToModule.ts | 1 + ...assignToObjectTypeWithPrototypeProperty.ts | 1 + tests/cases/compiler/assignToPrototype1.ts | 1 + .../assigningFromObjectToAnythingElse.ts | 1 + .../assigningFunctionToTupleIssuesError.ts | 1 + tests/cases/compiler/assignmentCompat1.ts | 1 + tests/cases/compiler/assignmentCompatBug2.ts | 1 + tests/cases/compiler/assignmentCompatBug3.ts | 1 + tests/cases/compiler/assignmentCompatBug5.ts | 1 + .../compiler/assignmentCompatForEnums.ts | 1 + ...signmentCompatFunctionsWithOptionalArgs.ts | 1 + ...CompatInterfaceWithStringIndexSignature.ts | 1 + tests/cases/compiler/assignmentCompatOnNew.ts | 1 + .../compiler/assignmentCompatWithOverloads.ts | 1 + .../compiler/assignmentCompatability1.ts | 1 + .../compiler/assignmentCompatability10.ts | 1 + .../compiler/assignmentCompatability11.ts | 1 + .../compiler/assignmentCompatability12.ts | 1 + .../compiler/assignmentCompatability13.ts | 1 + .../compiler/assignmentCompatability14.ts | 1 + .../compiler/assignmentCompatability15.ts | 1 + .../compiler/assignmentCompatability16.ts | 1 + .../compiler/assignmentCompatability17.ts | 1 + .../compiler/assignmentCompatability18.ts | 1 + .../compiler/assignmentCompatability19.ts | 1 + .../compiler/assignmentCompatability2.ts | 1 + .../compiler/assignmentCompatability20.ts | 1 + .../compiler/assignmentCompatability21.ts | 1 + .../compiler/assignmentCompatability22.ts | 1 + .../compiler/assignmentCompatability23.ts | 1 + .../compiler/assignmentCompatability24.ts | 1 + .../compiler/assignmentCompatability25.ts | 1 + .../compiler/assignmentCompatability26.ts | 1 + .../compiler/assignmentCompatability27.ts | 1 + .../compiler/assignmentCompatability28.ts | 1 + .../compiler/assignmentCompatability29.ts | 1 + .../compiler/assignmentCompatability3.ts | 1 + .../compiler/assignmentCompatability30.ts | 1 + .../compiler/assignmentCompatability31.ts | 1 + .../compiler/assignmentCompatability32.ts | 1 + .../compiler/assignmentCompatability33.ts | 1 + .../compiler/assignmentCompatability34.ts | 1 + .../compiler/assignmentCompatability35.ts | 1 + .../compiler/assignmentCompatability36.ts | 1 + .../compiler/assignmentCompatability37.ts | 1 + .../compiler/assignmentCompatability38.ts | 1 + .../compiler/assignmentCompatability39.ts | 1 + .../compiler/assignmentCompatability4.ts | 1 + .../compiler/assignmentCompatability40.ts | 1 + .../compiler/assignmentCompatability41.ts | 1 + .../compiler/assignmentCompatability42.ts | 1 + .../compiler/assignmentCompatability43.ts | 1 + .../compiler/assignmentCompatability44.ts | 1 + .../compiler/assignmentCompatability45.ts | 1 + .../compiler/assignmentCompatability46.ts | 1 + .../compiler/assignmentCompatability5.ts | 1 + .../compiler/assignmentCompatability6.ts | 1 + .../compiler/assignmentCompatability7.ts | 1 + .../compiler/assignmentCompatability8.ts | 1 + .../compiler/assignmentCompatability9.ts | 1 + ...-apply-member-off-of-function-interface.ts | 1 + ...g-call-member-off-of-function-interface.ts | 1 + ...mpatibilityForConstrainedTypeParameters.ts | 1 + .../compiler/assignmentIndexedToPrimitives.ts | 1 + .../compiler/assignmentNestedInLiterals.ts | 1 + .../assignmentNonObjectTypeConstraints.ts | 1 + ...ssignmentRestElementWithErrorSourceType.ts | 1 + .../compiler/assignmentStricterConstraints.ts | 1 + .../assignmentToAnyArrayRestParameters.ts | 1 + ...nditionalBrandedStringTemplateOrMapping.ts | 1 + .../assignmentToExpandingArrayType.ts | 1 + tests/cases/compiler/assignmentToFunction.ts | 1 + .../assignmentToInstantiationExpression.ts | 1 + tests/cases/compiler/assignmentToObject.ts | 1 + .../compiler/assignmentToObjectAndFunction.ts | 1 + .../assignmentToParenthesizedExpression1.ts | 1 + .../compiler/assignmentToReferenceTypes.ts | 1 + .../compiler/asyncFunctionNoReturnType.ts | 1 + ...asyncFunctionReturnExpressionErrorSpans.ts | 1 + ...ncFunctionWithForStatementNoInitializer.ts | 1 + .../cases/compiler/asyncImportNestedYield.ts | 1 + tests/cases/compiler/augmentArray.ts | 1 + tests/cases/compiler/augmentExportEquals1.ts | 1 + .../cases/compiler/augmentExportEquals1_1.ts | 1 + tests/cases/compiler/augmentExportEquals2.ts | 1 + .../cases/compiler/augmentExportEquals2_1.ts | 1 + tests/cases/compiler/augmentExportEquals3.ts | 1 + .../cases/compiler/augmentExportEquals3_1.ts | 1 + tests/cases/compiler/augmentExportEquals4.ts | 1 + .../cases/compiler/augmentExportEquals4_1.ts | 1 + tests/cases/compiler/augmentExportEquals5.ts | 1 + tests/cases/compiler/augmentExportEquals6.ts | 1 + .../cases/compiler/augmentExportEquals6_1.ts | 1 + tests/cases/compiler/augmentExportEquals7.ts | 1 + ...entedClassWithPrototypePropertyOnModule.ts | 1 + ...augmentedTypeBracketNamedPropertyAccess.ts | 1 + tests/cases/compiler/augmentedTypesClass.ts | 1 + tests/cases/compiler/augmentedTypesClass2.ts | 1 + tests/cases/compiler/augmentedTypesClass2a.ts | 1 + tests/cases/compiler/augmentedTypesClass3.ts | 1 + tests/cases/compiler/augmentedTypesClass4.ts | 1 + tests/cases/compiler/augmentedTypesEnum.ts | 1 + tests/cases/compiler/augmentedTypesEnum2.ts | 1 + tests/cases/compiler/augmentedTypesEnum3.ts | 1 + .../compiler/augmentedTypesExternalModule1.ts | 1 + .../cases/compiler/augmentedTypesFunction.ts | 1 + .../cases/compiler/augmentedTypesInterface.ts | 1 + tests/cases/compiler/augmentedTypesModules.ts | 1 + .../cases/compiler/augmentedTypesModules2.ts | 1 + .../cases/compiler/augmentedTypesModules3.ts | 1 + .../cases/compiler/augmentedTypesModules3b.ts | 1 + .../cases/compiler/augmentedTypesModules4.ts | 1 + tests/cases/compiler/augmentedTypesVar.ts | 1 + .../autoAsiForStaticsInClassDeclaration.ts | 3 +- tests/cases/compiler/autoLift2.ts | 1 + ...ignedUsingDestructuringFromNeverNoCrash.ts | 1 + tests/cases/compiler/autolift3.ts | 1 + tests/cases/compiler/autolift4.ts | 1 + tests/cases/compiler/autonumberingInEnums.ts | 1 + tests/cases/compiler/avoid.ts | 1 + ...ycleWithVoidExpressionReturnedFromArrow.ts | 1 + ...rTypesWithOnlyCallOrConstructSignatures.ts | 1 + ...romBindingElementWithLiteralInitializer.ts | 1 + tests/cases/compiler/awaitLiteralValues.ts | 1 + tests/cases/compiler/awaitedTypeJQuery.ts | 1 + tests/cases/compiler/awaitedTypeNoLib.ts | 1 + tests/cases/compiler/badArrayIndex.ts | 1 + tests/cases/compiler/badArraySyntax.ts | 1 + .../compiler/badExternalModuleReference.ts | 1 + ...InferenceLowerPriorityThanGoodInference.ts | 1 + tests/cases/compiler/badOverloadError.ts | 1 + tests/cases/compiler/badThisBinding.ts | 1 + tests/cases/compiler/bangInModuleName.ts | 1 + tests/cases/compiler/baseCheck.ts | 1 + .../baseClassImprovedMismatchErrors.ts | 1 + .../compiler/baseConstraintOfDecorator.ts | 1 + .../compiler/baseExpressionTypeParameters.ts | 1 + .../compiler/baseIndexSignatureResolution.ts | 1 + .../compiler/baseTypeAfterDerivedType.ts | 1 + tests/cases/compiler/baseTypeOrderChecking.ts | 1 + .../compiler/baseTypePrivateMemberClash.ts | 1 + .../baseTypeWrappingInstantiationChain.ts | 1 + tests/cases/compiler/bases.ts | 1 + tests/cases/compiler/bestChoiceType.ts | 1 + .../compiler/bestCommonTypeReturnStatement.ts | 1 + .../bestCommonTypeWithContextualTyping.ts | 1 + .../bestCommonTypeWithOptionalProperties.ts | 1 + .../compiler/betterErrorForAccidentalCall.ts | 1 + .../cases/compiler/betterErrorForUnionCall.ts | 1 + tests/cases/compiler/binaryArithmatic1.ts | 1 + tests/cases/compiler/binaryArithmatic2.ts | 1 + tests/cases/compiler/binaryArithmatic3.ts | 1 + tests/cases/compiler/binaryArithmatic4.ts | 1 + ...ryArithmeticControlFlowGraphNotTooLarge.ts | 1 + tests/cases/compiler/bind1.ts | 1 + tests/cases/compiler/bind2.ts | 1 + ...ndingPatternCannotBeOnlyInferenceSource.ts | 1 + ...tternContextualTypeDoesNotCauseWidening.ts | 1 + .../compiler/bindingPatternInParameter01.ts | 1 + .../bindingPatternOmittedExpressionNesting.ts | 1 + .../compiler/binopAssignmentShouldHaveType.ts | 1 + .../bitwiseCompoundAssignmentOperators.ts | 1 + ...blockScopedBindingCaptureThisInFunction.ts | 1 + .../blockScopedBindingUsedBeforeDef.ts | 1 + .../blockScopedBindingsReassignedInLoop1.ts | 1 + .../blockScopedBindingsReassignedInLoop2.ts | 1 + .../blockScopedBindingsReassignedInLoop3.ts | 1 + .../blockScopedBindingsReassignedInLoop4.ts | 1 + .../blockScopedBindingsReassignedInLoop5.ts | 1 + .../blockScopedBindingsReassignedInLoop6.ts | 1 + .../blockScopedClassDeclarationAcrossFiles.ts | 1 + tests/cases/compiler/bluebirdStaticThis.ts | 1 + tests/cases/compiler/booleanAssignment.ts | 1 + tests/cases/compiler/booleanFilterAnyArray.ts | 1 + ...leanLiteralsContextuallyTypedFromUnion.tsx | 1 + .../breakInIterationOrSwitchStatement1.ts | 1 + .../breakInIterationOrSwitchStatement2.ts | 1 + .../breakInIterationOrSwitchStatement3.ts | 1 + .../breakInIterationOrSwitchStatement4.ts | 1 + .../breakNotInIterationOrSwitchStatement1.ts | 1 + .../breakNotInIterationOrSwitchStatement2.ts | 1 + tests/cases/compiler/breakTarget1.ts | 1 + tests/cases/compiler/breakTarget2.ts | 1 + tests/cases/compiler/breakTarget3.ts | 1 + tests/cases/compiler/breakTarget4.ts | 1 + tests/cases/compiler/breakTarget5.ts | 1 + tests/cases/compiler/breakTarget6.ts | 1 + .../compiler/bundledDtsLateExportRenaming.ts | 1 + tests/cases/compiler/cacheResolutions.ts | 1 + tests/cases/compiler/cachedContextualTypes.ts | 1 + .../cases/compiler/cachedModuleResolution1.ts | 1 + .../cases/compiler/cachedModuleResolution2.ts | 1 + .../cases/compiler/cachedModuleResolution3.ts | 1 + .../cases/compiler/cachedModuleResolution4.ts | 1 + .../cases/compiler/cachedModuleResolution5.ts | 1 + .../cases/compiler/cachedModuleResolution6.ts | 1 + .../cases/compiler/cachedModuleResolution7.ts | 1 + .../cases/compiler/cachedModuleResolution8.ts | 1 + .../cases/compiler/cachedModuleResolution9.ts | 1 + .../cases/compiler/callConstructAssignment.ts | 1 + .../callExpressionWithMissingTypeArgument1.ts | 1 + ...arameterConstrainedToOuterTypeParameter.ts | 1 + ...llOfConditionalTypeWithConcreteBranches.ts | 1 + tests/cases/compiler/callOnClass.ts | 1 + tests/cases/compiler/callOnInstance.ts | 1 + .../callOverloadViaElementAccessExpression.ts | 1 + tests/cases/compiler/callOverloads1.ts | 1 + tests/cases/compiler/callOverloads2.ts | 1 + tests/cases/compiler/callOverloads3.ts | 1 + tests/cases/compiler/callOverloads4.ts | 1 + tests/cases/compiler/callOverloads5.ts | 1 + .../compiler/callSignatureFunctionOverload.ts | 1 + ...resShouldBeResolvedBeforeSpecialization.ts | 1 + .../callWithWrongNumberOfTypeArguments.ts | 1 + .../callbackArgsDifferByOptionality.ts | 1 + .../cases/compiler/callbacksDontShareTypes.ts | 1 + .../compiler/callsOnComplexSignatures.tsx | 1 + .../cannotIndexGenericWritingError.ts | 1 + .../cannotInvokeNewOnErrorExpression.ts | 1 + .../cannotInvokeNewOnIndexExpression.ts | 1 + ...captureSuperPropertyAccessInSuperCall01.ts | 1 + .../cases/compiler/captureThisInSuperCall.ts | 1 + .../cases/compiler/capturedLetConstInLoop1.ts | 1 + .../compiler/capturedLetConstInLoop10.ts | 1 + .../compiler/capturedLetConstInLoop11.ts | 1 + .../compiler/capturedLetConstInLoop12.ts | 1 + .../compiler/capturedLetConstInLoop13.ts | 1 + .../cases/compiler/capturedLetConstInLoop2.ts | 1 + .../cases/compiler/capturedLetConstInLoop3.ts | 1 + .../cases/compiler/capturedLetConstInLoop4.ts | 1 + .../cases/compiler/capturedLetConstInLoop5.ts | 1 + .../cases/compiler/capturedLetConstInLoop6.ts | 1 + .../cases/compiler/capturedLetConstInLoop7.ts | 1 + .../cases/compiler/capturedLetConstInLoop8.ts | 1 + .../cases/compiler/capturedLetConstInLoop9.ts | 1 + ...ileSystemWithCapsImportTypeDeclarations.ts | 1 + .../compiler/castExpressionParentheses.ts | 1 + ...FunctionExpressionShouldBeParenthesized.ts | 1 + tests/cases/compiler/castNewObjectBug.ts | 1 + tests/cases/compiler/castOfYield.ts | 1 + tests/cases/compiler/castParentheses.ts | 3 +- tests/cases/compiler/castTest.ts | 1 + tests/cases/compiler/catch.ts | 1 + .../compiler/catchClauseWithInitializer1.ts | 1 + tests/cases/compiler/cf.ts | 1 + tests/cases/compiler/chainedAssignment1.ts | 1 + tests/cases/compiler/chainedAssignment2.ts | 1 + tests/cases/compiler/chainedAssignment3.ts | 1 + .../compiler/chainedAssignmentChecking.ts | 1 + ...arameterConstrainedToOtherTypeParameter.ts | 1 + ...rameterConstrainedToOtherTypeParameter2.ts | 1 + tests/cases/compiler/chainedImportAlias.ts | 1 + ...hainedSpecializationToObjectTypeLiteral.ts | 1 + .../checkDestructuringShorthandAssigment.ts | 1 + .../checkDestructuringShorthandAssigment2.ts | 1 + .../cases/compiler/checkForObjectTooStrict.ts | 1 + ...exConstraintOfJavascriptClassExpression.ts | 1 + .../checkInfiniteExpansionTermination.ts | 1 + .../checkInfiniteExpansionTermination2.ts | 1 + .../cases/compiler/checkInheritedProperty.ts | 1 + tests/cases/compiler/checkInterfaceBases.ts | 1 + tests/cases/compiler/checkJsFiles.ts | 1 + tests/cases/compiler/checkJsFiles2.ts | 1 + tests/cases/compiler/checkJsFiles3.ts | 1 + tests/cases/compiler/checkJsFiles4.ts | 1 + tests/cases/compiler/checkJsFiles5.ts | 1 + tests/cases/compiler/checkJsFiles6.ts | 1 + tests/cases/compiler/checkJsFiles7.ts | 1 + .../compiler/checkJsFiles_noErrorLocation.ts | 1 + .../compiler/checkJsFiles_skipDiagnostics.ts | 1 + .../checkJsObjectLiteralHasCheckedKeyof.ts | 1 + .../checkJsObjectLiteralIndexSignatures.ts | 1 + .../checkJsTypeDefNoUnusedLocalMarked.ts | 2 + .../checkJsdocTypeTagOnExportAssignment1.ts | 1 + .../checkJsdocTypeTagOnExportAssignment2.ts | 1 + .../checkJsdocTypeTagOnExportAssignment3.ts | 1 + .../checkJsdocTypeTagOnExportAssignment4.ts | 1 + .../checkJsdocTypeTagOnExportAssignment5.ts | 1 + .../checkJsdocTypeTagOnExportAssignment6.ts | 1 + .../checkJsdocTypeTagOnExportAssignment7.ts | 1 + .../checkJsdocTypeTagOnExportAssignment8.ts | 1 + tests/cases/compiler/checkJsxNotSetError.ts | 1 + .../compiler/checkMergedGlobalUMDSymbol.ts | 1 + .../checkSuperCallBeforeThisAccessing1.ts | 3 +- .../checkSuperCallBeforeThisAccessing2.ts | 3 +- .../checkSuperCallBeforeThisAccessing3.ts | 3 +- .../checkSuperCallBeforeThisAccessing4.ts | 3 +- .../checkSuperCallBeforeThisAccessing5.ts | 3 +- .../checkSuperCallBeforeThisAccessing6.ts | 3 +- .../checkSuperCallBeforeThisAccessing7.ts | 3 +- .../checkSuperCallBeforeThisAccessing8.ts | 3 +- .../checkSuperCallBeforeThisAccessing9.ts | 3 +- .../checkSwitchStatementIfCaseTypeIsString.ts | 1 + ...heckTypePredicateForRedundantProperties.ts | 1 + .../compiler/checkerInitializationCrash.ts | 1 + ...tyOnFunctionNonexistentPropertyNoCrash1.ts | 1 + ...kingObjectWithThisInNamePositionNoCrash.ts | 1 + .../compiler/circularAccessorAnnotations.ts | 1 + .../cases/compiler/circularBaseConstraint.ts | 1 + tests/cases/compiler/circularBaseTypes.ts | 1 + .../circularConstrainedMappedTypeNoCrash.ts | 1 + ...ircularConstraintYieldsAppropriateError.ts | 1 + .../compiler/circularConstructorWithReturn.ts | 1 + .../compiler/circularContextualMappedType.ts | 1 + .../compiler/circularContextualReturnType.ts | 1 + tests/cases/compiler/circularGetAccessor.ts | 1 + ...ularInlineMappedGenericTupleTypeNoCrash.ts | 1 + .../circularInstantiationExpression.ts | 1 + .../compiler/circularMappedTypeConstraint.ts | 1 + tests/cases/compiler/circularModuleImports.ts | 1 + .../compiler/circularOptionalityRemoval.ts | 1 + .../compiler/circularReferenceInImport.ts | 1 + .../compiler/circularReferenceInReturnType.ts | 1 + .../circularReferenceInReturnType2.ts | 1 + .../compiler/circularResolvedSignature.ts | 1 + ...cularTypeArgumentsLocalAndOuterNoCrash1.ts | 1 + .../circularTypeofWithFunctionModule.ts | 1 + ...ConditionalNoInfiniteInstantiationDepth.ts | 1 + ...ularlyReferentialInterfaceAccessNoCrash.ts | 1 + ...larlySimplifyingConditionalTypesNoCrash.ts | 1 + tests/cases/compiler/class2.ts | 1 + tests/cases/compiler/classBlockScoping.ts | 1 + tests/cases/compiler/classCannotExtendVar.ts | 1 + .../compiler/classDeclarationBlockScoping1.ts | 1 + .../compiler/classDeclarationBlockScoping2.ts | 1 + ...edBeforeDefinitionInFunctionDeclaration.ts | 1 + ...clarationMergedInModuleWithContinuation.ts | 1 + ...rationShouldBeOutOfScopeInComputedNames.ts | 1 + .../classDeclaredBeforeClassFactory.ts | 1 + .../compiler/classExpressionAssignment.ts | 1 + .../classExpressionExtendingAbstractClass.ts | 1 + ...lassExpressionInClassStaticDeclarations.ts | 1 + tests/cases/compiler/classExpressionNames.ts | 1 + .../classExpressionPropertyModifiers.ts | 1 + tests/cases/compiler/classExpressionTest1.ts | 1 + tests/cases/compiler/classExpressionTest2.ts | 1 + .../compiler/classExpressionWithDecorator1.ts | 1 + ...onWithResolutionOfNamespaceOfSameName01.ts | 3 +- .../classExpressionWithStaticProperties1.ts | 1 + tests/cases/compiler/classExpressions.ts | 1 + ...ithMemberCalledTheSameAsItsOwnTypeParam.ts | 1 + .../compiler/classExtendingQualifiedName.ts | 1 + .../compiler/classExtendingQualifiedName2.ts | 1 + ...sMergedWithModuleNotReferingConstructor.ts | 1 + ...tendsClauseClassNotReferringConstructor.ts | 1 + tests/cases/compiler/classExtendsInterface.ts | 1 + .../classExtendsInterfaceInExpression.ts | 1 + .../compiler/classExtendsInterfaceInModule.ts | 1 + ...sInterfaceThatExtendsClassWithPrivates1.ts | 1 + .../compiler/classExtendsInterface_not.ts | 1 + .../classExtendsMultipleBaseClasses.ts | 1 + tests/cases/compiler/classExtendsNull.ts | 3 +- tests/cases/compiler/classExtendsNull2.ts | 1 + tests/cases/compiler/classExtendsNull3.ts | 1 + .../compiler/classExtensionNameOutput.ts | 1 + tests/cases/compiler/classFunctionMerging.ts | 1 + tests/cases/compiler/classFunctionMerging2.ts | 1 + .../classHeritageWithTrailingSeparator.ts | 1 + .../classImplementingInterfaceIndexer.ts | 1 + tests/cases/compiler/classImplementsClass1.ts | 1 + tests/cases/compiler/classImplementsClass2.ts | 1 + tests/cases/compiler/classImplementsClass3.ts | 1 + tests/cases/compiler/classImplementsClass4.ts | 1 + tests/cases/compiler/classImplementsClass5.ts | 1 + tests/cases/compiler/classImplementsClass6.ts | 1 + tests/cases/compiler/classImplementsClass7.ts | 1 + .../classImplementsImportedInterface.ts | 1 + .../classImplementsMethodWIthTupleArgs.ts | 1 + .../compiler/classImplementsPrimitive.ts | 1 + tests/cases/compiler/classIndexer.ts | 1 + tests/cases/compiler/classIndexer2.ts | 1 + tests/cases/compiler/classIndexer3.ts | 1 + tests/cases/compiler/classIndexer4.ts | 1 + tests/cases/compiler/classInheritence.ts | 1 + .../compiler/classMemberInitializerScoping.ts | 1 + .../classMemberInitializerWithLamdaScoping.ts | 1 + ...classMemberInitializerWithLamdaScoping2.ts | 1 + ...classMemberInitializerWithLamdaScoping3.ts | 1 + ...classMemberInitializerWithLamdaScoping4.ts | 1 + ...classMemberInitializerWithLamdaScoping5.ts | 1 + .../classMemberWithMissingIdentifier.ts | 1 + .../classMemberWithMissingIdentifier2.ts | 1 + ...MergedWithInterfaceMultipleBasesNoError.ts | 1 + .../compiler/classMethodWithKeywordName1.ts | 1 + tests/cases/compiler/classOrder1.ts | 1 + tests/cases/compiler/classOrder2.ts | 1 + tests/cases/compiler/classOrderBug.ts | 1 + .../compiler/classOverloadForFunction.ts | 1 + .../compiler/classOverloadForFunction2.ts | 1 + ...nitializationInferenceWithElementAccess.ts | 1 + .../compiler/classPropertyErrorOnNameOnly.ts | 1 + ...tualParameterWithinItsOwnBaseExpression.ts | 1 + tests/cases/compiler/classSideInheritance1.ts | 1 + tests/cases/compiler/classSideInheritance2.ts | 1 + tests/cases/compiler/classSideInheritance3.ts | 1 + ...tializersUsePropertiesBeforeDeclaration.ts | 1 + .../compiler/classTypeParametersInStatics.ts | 1 + tests/cases/compiler/classUpdateTests.ts | 1 + .../compiler/classVarianceCircularity.ts | 1 + .../classVarianceResolveCircularity1.ts | 1 + .../classVarianceResolveCircularity2.ts | 1 + .../compiler/classWithDuplicateIdentifier.ts | 1 + .../compiler/classWithEmptyTypeParameter.ts | 1 + .../compiler/classWithMultipleBaseClasses.ts | 1 + ...ssWithOverloadImplementationOfWrongName.ts | 1 + ...sWithOverloadImplementationOfWrongName2.ts | 1 + tests/cases/compiler/clinterfaces.ts | 1 + .../cloduleAcrossModuleDefinitions.ts | 1 + .../compiler/cloduleAndTypeParameters.ts | 1 + .../compiler/cloduleGenericOnSelfMember.ts | 1 + .../cases/compiler/cloduleSplitAcrossFiles.ts | 1 + tests/cases/compiler/cloduleStaticMembers.ts | 1 + tests/cases/compiler/cloduleTest1.ts | 1 + tests/cases/compiler/cloduleTest2.ts | 1 + .../compiler/cloduleWithDuplicateMember1.ts | 1 + .../compiler/cloduleWithDuplicateMember2.ts | 1 + .../cloduleWithPriorInstantiatedModule.ts | 3 +- .../cloduleWithPriorUninstantiatedModule.ts | 3 +- .../compiler/cloduleWithRecursiveReference.ts | 1 + .../cases/compiler/clodulesDerivedClasses.ts | 1 + .../compiler/coAndContraVariantInferences.ts | 1 + .../compiler/coAndContraVariantInferences2.ts | 1 + .../compiler/coAndContraVariantInferences3.ts | 1 + .../compiler/coAndContraVariantInferences4.ts | 1 + .../compiler/coAndContraVariantInferences5.ts | 1 + .../compiler/coAndContraVariantInferences6.ts | 1 + .../compiler/coAndContraVariantInferences7.ts | 1 + .../compiler/coAndContraVariantInferences8.ts | 1 + .../compiler/collectionPatternNoError.ts | 1 + .../collisionArgumentsArrowFunctions.ts | 1 + .../collisionArgumentsClassConstructor.ts | 1 + .../compiler/collisionArgumentsClassMethod.ts | 1 + .../compiler/collisionArgumentsFunction.ts | 1 + .../collisionArgumentsFunctionExpressions.ts | 1 + .../compiler/collisionArgumentsInType.ts | 1 + .../collisionArgumentsInterfaceMembers.ts | 1 + ...lisionCodeGenEnumWithEnumMemberConflict.ts | 1 + ...lisionCodeGenModuleWithAccessorChildren.ts | 1 + ...ionCodeGenModuleWithConstructorChildren.ts | 1 + ...sionCodeGenModuleWithEnumMemberConflict.ts | 1 + ...lisionCodeGenModuleWithFunctionChildren.ts | 1 + ...ionCodeGenModuleWithMemberClassConflict.ts | 1 + ...odeGenModuleWithMemberInterfaceConflict.ts | 1 + ...ollisionCodeGenModuleWithMemberVariable.ts | 1 + ...ollisionCodeGenModuleWithMethodChildren.ts | 1 + ...ollisionCodeGenModuleWithModuleChildren.ts | 1 + ...llisionCodeGenModuleWithModuleReopening.ts | 1 + ...collisionCodeGenModuleWithPrivateMember.ts | 1 + .../collisionExportsRequireAndAlias.ts | 1 + .../collisionExportsRequireAndAmbientClass.ts | 1 + .../collisionExportsRequireAndAmbientEnum.ts | 1 + ...llisionExportsRequireAndAmbientFunction.ts | 1 + ...tsRequireAndAmbientFunctionInGlobalFile.ts | 1 + ...collisionExportsRequireAndAmbientModule.ts | 1 + .../collisionExportsRequireAndAmbientVar.ts | 1 + .../collisionExportsRequireAndClass.ts | 1 + .../collisionExportsRequireAndEnum.ts | 1 + .../collisionExportsRequireAndFunction.ts | 1 + ...onExportsRequireAndFunctionInGlobalFile.ts | 1 + ...ionExportsRequireAndInternalModuleAlias.ts | 1 + ...quireAndInternalModuleAliasInGlobalFile.ts | 1 + .../collisionExportsRequireAndModule.ts | 1 + ...onExportsRequireAndUninstantiatedModule.ts | 1 + .../compiler/collisionExportsRequireAndVar.ts | 1 + .../collisionRestParameterArrowFunctions.ts | 1 + .../collisionRestParameterClassConstructor.ts | 1 + .../collisionRestParameterClassMethod.ts | 1 + .../collisionRestParameterFunction.ts | 1 + ...llisionRestParameterFunctionExpressions.ts | 1 + .../compiler/collisionRestParameterInType.ts | 1 + .../collisionRestParameterInterfaceMembers.ts | 1 + .../collisionRestParameterUnderscoreIUsage.ts | 1 + ...isionSuperAndLocalFunctionInConstructor.ts | 1 + .../collisionSuperAndLocalFunctionInMethod.ts | 1 + ...ollisionSuperAndLocalFunctionInProperty.ts | 1 + .../collisionSuperAndLocalVarInConstructor.ts | 1 + .../collisionSuperAndLocalVarInMethod.ts | 1 + .../collisionSuperAndLocalVarInProperty.ts | 1 + .../collisionSuperAndNameResolution.ts | 1 + .../compiler/collisionSuperAndParameter1.ts | 1 + ...perAndPropertyNameAsConstuctorParameter.ts | 1 + ...collisionThisExpressionAndAliasInGlobal.ts | 1 + ...onThisExpressionAndAmbientClassInGlobal.ts | 1 + ...sionThisExpressionAndAmbientVarInGlobal.ts | 1 + ...collisionThisExpressionAndClassInGlobal.ts | 1 + .../collisionThisExpressionAndEnumInGlobal.ts | 1 + ...lisionThisExpressionAndFunctionInGlobal.ts | 1 + ...nThisExpressionAndLocalVarInConstructor.ts | 1 + ...sionThisExpressionAndLocalVarInFunction.ts | 1 + ...lisionThisExpressionAndLocalVarInLambda.ts | 1 + ...lisionThisExpressionAndLocalVarInMethod.ts | 1 + ...sionThisExpressionAndLocalVarInProperty.ts | 1 + ...xpressionAndLocalVarWithSuperExperssion.ts | 1 + ...ollisionThisExpressionAndModuleInGlobal.ts | 1 + ...ollisionThisExpressionAndNameResolution.ts | 1 + .../collisionThisExpressionAndParameter.ts | 1 + ...ionAndPropertyNameAsConstuctorParameter.ts | 1 + .../collisionThisExpressionAndVarInGlobal.ts | 1 + tests/cases/compiler/commaOperator1.ts | 1 + .../commaOperatorInConditionalExpression.ts | 1 + .../compiler/commaOperatorLeftSideUnused.ts | 1 + .../compiler/commentBeforeStaticMethod1.ts | 1 + .../cases/compiler/commentEmitAtEndOfFile1.ts | 1 + .../commentEmitWithCommentOnLastLine.ts | 1 + .../compiler/commentInEmptyParameterList1.ts | 1 + tests/cases/compiler/commentInMethodCall.ts | 1 + ...espaceDeclarationWithIdentifierPathName.ts | 3 +- .../compiler/commentLeadingCloseBrace.ts | 3 +- .../cases/compiler/commentOnAmbientClass1.ts | 1 + tests/cases/compiler/commentOnAmbientEnum.ts | 1 + .../cases/compiler/commentOnAmbientModule.ts | 1 + .../compiler/commentOnAmbientVariable1.ts | 1 + .../compiler/commentOnAmbientVariable2.ts | 1 + .../compiler/commentOnAmbientfunction.ts | 1 + .../cases/compiler/commentOnArrayElement1.ts | 3 +- .../cases/compiler/commentOnArrayElement10.ts | 3 +- .../cases/compiler/commentOnArrayElement11.ts | 3 +- .../cases/compiler/commentOnArrayElement12.ts | 3 +- .../cases/compiler/commentOnArrayElement13.ts | 3 +- .../cases/compiler/commentOnArrayElement14.ts | 3 +- .../cases/compiler/commentOnArrayElement15.ts | 3 +- .../cases/compiler/commentOnArrayElement16.ts | 3 +- .../cases/compiler/commentOnArrayElement2.ts | 3 +- .../cases/compiler/commentOnArrayElement3.ts | 3 +- .../cases/compiler/commentOnArrayElement4.ts | 3 +- .../cases/compiler/commentOnArrayElement5.ts | 3 +- .../cases/compiler/commentOnArrayElement6.ts | 3 +- .../cases/compiler/commentOnArrayElement7.ts | 3 +- .../cases/compiler/commentOnArrayElement8.ts | 3 +- .../cases/compiler/commentOnArrayElement9.ts | 3 +- .../compiler/commentOnBinaryOperator1.ts | 1 + .../compiler/commentOnBinaryOperator2.ts | 1 + tests/cases/compiler/commentOnBlock1.ts | 1 + .../cases/compiler/commentOnClassAccessor1.ts | 1 + .../cases/compiler/commentOnClassAccessor2.ts | 1 + tests/cases/compiler/commentOnClassMethod1.ts | 1 + .../commentOnDecoratedClassDeclaration.ts | 1 + .../cases/compiler/commentOnElidedModule1.ts | 1 + .../commentOnExportEnumDeclaration.ts | 3 +- .../compiler/commentOnExpressionStatement1.ts | 1 + tests/cases/compiler/commentOnIfStatement1.ts | 1 + .../compiler/commentOnImportStatement1.ts | 1 + .../compiler/commentOnImportStatement2.ts | 1 + .../compiler/commentOnImportStatement3.ts | 1 + tests/cases/compiler/commentOnInterface1.ts | 1 + tests/cases/compiler/commentOnParameter1.ts | 3 +- tests/cases/compiler/commentOnParameter2.ts | 3 +- tests/cases/compiler/commentOnParameter3.ts | 3 +- ...mentOnParenthesizedExpressionOpenParen1.ts | 1 + tests/cases/compiler/commentOnSignature1.ts | 1 + .../commentOnSimpleArrowFunctionBody1.ts | 1 + .../cases/compiler/commentOnStaticMember1.ts | 1 + ...mmentWithUnreasonableIndentationLevel01.ts | 1 + .../compiler/commentsAfterCaseClauses1.ts | 3 +- .../compiler/commentsAfterCaseClauses2.ts | 3 +- .../compiler/commentsAfterCaseClauses3.ts | 3 +- .../commentsAfterFunctionExpression1.ts | 1 + .../commentsArgumentsOfCallExpression1.ts | 3 +- .../commentsArgumentsOfCallExpression2.ts | 3 +- tests/cases/compiler/commentsAtEndOfFile1.ts | 1 + .../commentsBeforeFunctionExpression1.ts | 1 + .../commentsBeforeVariableStatement1.ts | 1 + .../commentsOnJSXExpressionsArePreserved.tsx | 1 + .../compiler/commentsOnObjectLiteral1.ts | 1 + .../compiler/commentsOnObjectLiteral2.ts | 1 + .../commentsOnPropertyOfObjectLiteral1.ts | 3 +- .../compiler/commentsOnReturnStatement1.ts | 1 + .../cases/compiler/commentsOnStaticMembers.ts | 1 + .../compiler/commentsPropertySignature1.ts | 1 + .../cases/compiler/commentsTypeParameters.ts | 1 + .../compiler/commentsVariableStatement1.ts | 1 + .../compiler/commonJsImportClassExpression.ts | 2 + .../cases/compiler/commonJsIsolatedModules.ts | 1 + tests/cases/compiler/commonJsUnusedLocals.ts | 1 + .../cases/compiler/commonMissingSemicolons.ts | 1 + tests/cases/compiler/commonSourceDir1.ts | 1 + tests/cases/compiler/commonSourceDir2.ts | 1 + tests/cases/compiler/commonSourceDir3.ts | 1 + tests/cases/compiler/commonSourceDir4.ts | 1 + tests/cases/compiler/commonSourceDir5.ts | 1 + tests/cases/compiler/commonSourceDir6.ts | 1 + tests/cases/compiler/commonSourceDirectory.ts | 1 + .../compiler/commonSourceDirectory_dts.ts | 1 + tests/cases/compiler/commonjsAccessExports.ts | 1 + ...mparabilityTypeParametersRelatedByUnion.ts | 1 + .../comparableRelationBidirectional.ts | 1 + ...eParameterConstrainedByLiteralToLiteral.ts | 1 + ...pAndIndexedAccessTerminatesWithoutError.ts | 1 + .../compilerOptionsDeclarationAndNoEmit.ts | 1 + .../compiler/compilerOptionsOutAndNoEmit.ts | 1 + .../compilerOptionsOutDirAndNoEmit.ts | 1 + .../compilerOptionsOutFileAndNoEmit.ts | 1 + .../cases/compiler/complexNarrowingWithAny.ts | 1 + .../compiler/complexRecursiveCollections.ts | 1 + ...catedGenericRecursiveBaseClassReference.ts | 1 + ...AccessKeyofReliesOnKeyofNeverUpperBound.ts | 1 + ...edIndexesOfIntersectionsAreInferencable.ts | 1 + .../compiler/compositeContextualSignature.ts | 1 + .../compiler/compositeGenericFunction.ts | 3 +- .../compositeWithNodeModulesSourceFile.ts | 2 +- tests/cases/compiler/compoundVarDecl1.ts | 1 + .../compiler/computedEnumTypeWidening.ts | 1 + .../computedPropertiesInDestructuring1.ts | 1 + .../computedPropertiesInDestructuring2.ts | 1 + ...rtiesTransformedInOtherwiseNonTSClasses.ts | 1 + ...tedPropertyNameAndTypeParameterConflict.ts | 1 + .../computedPropertyNameWithImportedKey.ts | 1 + .../computedTypesKeyofNoIndexSignatureType.ts | 1 + tests/cases/compiler/concatClassAndString.ts | 1 + tests/cases/compiler/concatError.ts | 1 + tests/cases/compiler/concatTuples.ts | 1 + ...onditionalAnyCheckTypePicksBothBranches.ts | 1 + ...alDoesntLeakUninstantiatedTypeParameter.ts | 1 + .../conditionalEqualityOnLiteralObjects.ts | 1 + .../conditionalEqualityTestingNullability.ts | 1 + .../cases/compiler/conditionalExpression1.ts | 1 + .../compiler/conditionalExpressionNewLine1.ts | 1 + .../conditionalExpressionNewLine10.ts | 1 + .../compiler/conditionalExpressionNewLine2.ts | 1 + .../compiler/conditionalExpressionNewLine3.ts | 1 + .../compiler/conditionalExpressionNewLine4.ts | 1 + .../compiler/conditionalExpressionNewLine5.ts | 1 + .../compiler/conditionalExpressionNewLine6.ts | 1 + .../compiler/conditionalExpressionNewLine7.ts | 1 + .../compiler/conditionalExpressionNewLine8.ts | 1 + .../compiler/conditionalExpressionNewLine9.ts | 1 + .../cases/compiler/conditionalExpressions2.ts | 1 + .../cases/compiler/conditionalTypeAnyUnion.ts | 1 + ...onditionalTypeAssignabilityWhenDeferred.ts | 1 + ...peBasedContextualTypeReturnTypeWidening.ts | 1 + .../compiler/conditionalTypeClassMembers.ts | 1 + ...ypeContextualTypeSimplificationsSuceeds.ts | 1 + ...UnionRegularTypeFetchingSpeedReasonable.ts | 1 + ...nericInSignatureTypeParameterConstraint.ts | 1 + ...onalTypeRelaxingConstraintAssignability.ts | 1 + .../compiler/conditionalTypeSimplification.ts | 1 + ...conditionalTypeSubclassExtendsTypeParam.ts | 1 + ...eVarianceBigArrayConstraintsPerformance.ts | 1 + tests/cases/compiler/conditionalTypesASI.ts | 1 + .../conditionalTypesSimplifyWhenTrivial.ts | 1 + ...cateOverloadsCausedByOverloadResolution.ts | 1 + .../cases/compiler/configFileExtendsAsList.ts | 1 + .../compiler/conflictMarkerDiff3Trivia1.ts | 1 + .../compiler/conflictMarkerDiff3Trivia2.ts | 1 + tests/cases/compiler/conflictMarkerTrivia1.ts | 1 + tests/cases/compiler/conflictMarkerTrivia2.ts | 1 + .../cases/compiler/conflictMarkerTrivia3.tsx | 3 +- tests/cases/compiler/conflictMarkerTrivia4.ts | 3 +- ...lictingDeclarationsImportFromNamespace1.ts | 2 + ...lictingDeclarationsImportFromNamespace2.ts | 2 + .../compiler/conflictingMemberTypesInBases.ts | 1 + .../compiler/conflictingTypeAnnotatedVar.ts | 1 + .../conflictingTypeParameterSymbolTransfer.ts | 1 + ...consistentAliasVsNonAliasRecordBehavior.ts | 1 + ...nstDeclarationShadowedByVarDeclaration3.ts | 3 +- .../compiler/constEnumBadPropertyNames.ts | 1 + tests/cases/compiler/constEnumDeclarations.ts | 1 + tests/cases/compiler/constEnumErrors.ts | 1 + .../cases/compiler/constEnumExternalModule.ts | 1 + .../compiler/constEnumMergingWithValues1.ts | 1 + .../compiler/constEnumMergingWithValues2.ts | 1 + .../compiler/constEnumMergingWithValues3.ts | 1 + .../compiler/constEnumMergingWithValues4.ts | 1 + .../compiler/constEnumMergingWithValues5.ts | 1 + ...nstEnumNamespaceReferenceCausesNoImport.ts | 1 + ...stEnumNamespaceReferenceCausesNoImport2.ts | 2 + .../cases/compiler/constEnumNoEmitReexport.ts | 1 + .../constEnumNoPreserveDeclarationReexport.ts | 1 + .../compiler/constEnumOnlyModuleMerging.ts | 1 + .../compiler/constEnumPreserveEmitReexport.ts | 1 + .../constEnumSyntheticNodesComments.ts | 1 + .../compiler/constEnumToStringNoComments.ts | 1 + .../compiler/constEnumToStringWithComments.ts | 1 + tests/cases/compiler/constEnums.ts | 1 + .../cases/compiler/constInClassExpression.ts | 1 + tests/cases/compiler/constIndexedAccess.ts | 3 +- tests/cases/compiler/constWithNonNull.ts | 1 + tests/cases/compiler/constantEnumAssert.ts | 1 + .../compiler/constantOverloadFunction.ts | 1 + .../constantOverloadFunctionNoSubtypeError.ts | 1 + ...nstraintCheckInGenericBaseTypeReference.ts | 1 + tests/cases/compiler/constraintErrors1.ts | 1 + ...lyMappedTypeWithConditionalIsResolvable.ts | 1 + ...constraintPropagationThroughReturnTypes.ts | 1 + ...gTypeParameterFromSameTypeParameterList.ts | 1 + .../compiler/constraintWithIndexedAccess.ts | 1 + tests/cases/compiler/constraints0.ts | 1 + ...straintsThatReferenceOtherContstraints1.ts | 1 + .../constraintsUsedInPrototypeProperty.ts | 1 + .../constructorArgWithGenericCallSignature.ts | 1 + tests/cases/compiler/constructorArgs.ts | 1 + .../cases/compiler/constructorArgsErrors1.ts | 1 + .../cases/compiler/constructorArgsErrors2.ts | 1 + .../cases/compiler/constructorArgsErrors3.ts | 1 + .../cases/compiler/constructorArgsErrors4.ts | 1 + .../cases/compiler/constructorArgsErrors5.ts | 1 + tests/cases/compiler/constructorAsType.ts | 1 + ...constructorInvocationWithTooFewTypeArgs.ts | 1 + tests/cases/compiler/constructorOverloads1.ts | 1 + tests/cases/compiler/constructorOverloads2.ts | 1 + tests/cases/compiler/constructorOverloads3.ts | 1 + tests/cases/compiler/constructorOverloads4.ts | 1 + tests/cases/compiler/constructorOverloads5.ts | 1 + tests/cases/compiler/constructorOverloads6.ts | 1 + tests/cases/compiler/constructorOverloads7.ts | 1 + tests/cases/compiler/constructorOverloads8.ts | 1 + ...tructorParametersInVariableDeclarations.ts | 1 + ...adowExternalNamesInVariableDeclarations.ts | 1 + tests/cases/compiler/constructorPropertyJs.ts | 1 + .../constructorReturningAPrimitive.ts | 1 + .../compiler/constructorReturnsInvalidType.ts | 1 + .../compiler/constructorStaticParamName.ts | 1 + .../constructorStaticParamNameErrors.ts | 1 + .../constructorTypeWithTypeParameters.ts | 1 + .../compiler/constructorWithCapturedSuper.ts | 1 + ...constructorWithIncompleteTypeAnnotation.ts | 1 + .../constructorsWithSpecializedSignatures.ts | 1 + .../contextSensitiveReturnTypeInference.ts | 1 + ...ntextualComputedNonBindablePropertyType.ts | 1 + .../compiler/contextualOuterTypeParameters.ts | 1 + ...lParameterAndSelfReferentialConstraint1.ts | 1 + ...ualPropertyOfGenericFilteringMappedType.ts | 1 + .../contextualPropertyOfGenericMappedType.ts | 1 + .../compiler/contextualReturnTypeOfIIFE.ts | 1 + .../compiler/contextualReturnTypeOfIIFE2.ts | 1 + .../compiler/contextualReturnTypeOfIIFE3.ts | 1 + .../contextualSigInstantiationRestParams.ts | 1 + ...onditionalTypeInstantiationUsingDefault.ts | 1 + ...textualSignatureInArrayElementLibEs2015.ts | 1 + ...contextualSignatureInArrayElementLibEs5.ts | 1 + .../contextualSignatureInstantiation1.ts | 1 + .../contextualSignatureInstantiation2.ts | 1 + .../contextualSignatureInstantiation3.ts | 1 + .../contextualSignatureInstantiation4.ts | 1 + ...arameterConstrainedToOuterTypeParameter.ts | 1 + ...tualSignatureInstatiationContravariance.ts | 1 + ...ntextualSignatureInstatiationCovariance.ts | 1 + ...ature_objectLiteralMethodMayReturnNever.ts | 1 + .../contextualTupleTypeParameterReadonly.ts | 1 + tests/cases/compiler/contextualTypeAny.ts | 1 + .../contextualTypeAppliedToVarArgs.ts | 1 + .../compiler/contextualTypeArrayReturnType.ts | 1 + ...TypeBasedOnIntersectionWithAnyInTheMix1.ts | 1 + ...TypeBasedOnIntersectionWithAnyInTheMix2.ts | 1 + ...TypeBasedOnIntersectionWithAnyInTheMix3.ts | 1 + ...TypeBasedOnIntersectionWithAnyInTheMix4.ts | 1 + ...TypeBasedOnIntersectionWithAnyInTheMix5.ts | 1 + tests/cases/compiler/contextualTypeCaching.ts | 1 + ...eForInitalizedVariablesFiltersUndefined.ts | 1 + ...lTypeFunctionObjectPropertyIntersection.ts | 1 + .../cases/compiler/contextualTypeLogicalOr.ts | 1 + .../contextualTypeObjectSpreadExpression.ts | 1 + .../contextualTypeOfIndexedAccessParameter.ts | 1 + .../compiler/contextualTypeSelfReferencing.ts | 1 + .../compiler/contextualTypeShouldBeLiteral.ts | 1 + ...dTypeLikeConstraintInGenericMappedType1.ts | 1 + ...dTypeLikeConstraintInGenericMappedType2.ts | 1 + ...dTypeLikeConstraintInGenericMappedType3.ts | 1 + tests/cases/compiler/contextualTyping.ts | 1 + tests/cases/compiler/contextualTyping1.ts | 1 + tests/cases/compiler/contextualTyping10.ts | 1 + tests/cases/compiler/contextualTyping11.ts | 1 + tests/cases/compiler/contextualTyping12.ts | 1 + tests/cases/compiler/contextualTyping13.ts | 1 + tests/cases/compiler/contextualTyping14.ts | 1 + tests/cases/compiler/contextualTyping15.ts | 1 + tests/cases/compiler/contextualTyping16.ts | 1 + tests/cases/compiler/contextualTyping17.ts | 1 + tests/cases/compiler/contextualTyping18.ts | 1 + tests/cases/compiler/contextualTyping19.ts | 1 + tests/cases/compiler/contextualTyping2.ts | 1 + tests/cases/compiler/contextualTyping20.ts | 1 + tests/cases/compiler/contextualTyping21.ts | 1 + tests/cases/compiler/contextualTyping22.ts | 1 + tests/cases/compiler/contextualTyping23.ts | 1 + tests/cases/compiler/contextualTyping24.ts | 1 + tests/cases/compiler/contextualTyping25.ts | 1 + tests/cases/compiler/contextualTyping26.ts | 1 + tests/cases/compiler/contextualTyping27.ts | 1 + tests/cases/compiler/contextualTyping28.ts | 1 + tests/cases/compiler/contextualTyping29.ts | 1 + tests/cases/compiler/contextualTyping3.ts | 1 + tests/cases/compiler/contextualTyping30.ts | 1 + tests/cases/compiler/contextualTyping31.ts | 1 + tests/cases/compiler/contextualTyping32.ts | 1 + tests/cases/compiler/contextualTyping33.ts | 1 + tests/cases/compiler/contextualTyping34.ts | 1 + tests/cases/compiler/contextualTyping35.ts | 1 + tests/cases/compiler/contextualTyping36.ts | 1 + tests/cases/compiler/contextualTyping37.ts | 1 + tests/cases/compiler/contextualTyping38.ts | 1 + tests/cases/compiler/contextualTyping39.ts | 1 + tests/cases/compiler/contextualTyping4.ts | 1 + tests/cases/compiler/contextualTyping40.ts | 1 + tests/cases/compiler/contextualTyping41.ts | 1 + tests/cases/compiler/contextualTyping5.ts | 1 + tests/cases/compiler/contextualTyping6.ts | 1 + tests/cases/compiler/contextualTyping7.ts | 1 + tests/cases/compiler/contextualTyping8.ts | 1 + tests/cases/compiler/contextualTyping9.ts | 1 + ...ualTypingArrayDestructuringWithDefaults.ts | 1 + .../contextualTypingArrayOfLambdas.ts | 1 + ...ntextualTypingFunctionReturningFunction.ts | 1 + ...textualTypingFunctionReturningFunction2.ts | 1 + .../compiler/contextualTypingOfAccessors.ts | 1 + .../contextualTypingOfArrayLiterals1.ts | 1 + ...contextualTypingOfConditionalExpression.ts | 1 + ...ontextualTypingOfConditionalExpression2.ts | 1 + ...lTypingOfGenericFunctionTypedArguments1.ts | 1 + ...ontextualTypingOfLambdaReturnExpression.ts | 1 + ...ualTypingOfLambdaWithMultipleSignatures.ts | 1 + ...alTypingOfLambdaWithMultipleSignatures2.ts | 1 + .../contextualTypingOfObjectLiterals.ts | 1 + .../contextualTypingOfObjectLiterals2.ts | 1 + .../contextualTypingOfOptionalMembers.tsx | 1 + .../contextualTypingOfTooShortOverloads.ts | 1 + ...ReturnStatementWithReturnTypeAnnotation.ts | 1 + ...alTypingTwoInstancesOfSameTypeParameter.ts | 1 + ...ontextualTypingWithFixedTypeParameters1.ts | 1 + ...TypingWithGenericAndNonGenericSignature.ts | 3 +- .../contextualTypingWithGenericSignature.ts | 3 +- .../contextuallyTypeArgumentsKeyword.ts | 1 + ...xtuallyTypeGeneratorReturnTypeFromUnion.ts | 1 + .../contextuallyTypedBooleanLiterals.ts | 1 + .../contextuallyTypedByDiscriminableUnion.ts | 1 + .../contextuallyTypedByDiscriminableUnion2.ts | 1 + .../contextuallyTypedGenericAssignment.ts | 1 + .../compiler/contextuallyTypedJsxAttribute.ts | 1 + .../contextuallyTypedJsxAttribute2.tsx | 1 + .../compiler/contextuallyTypedJsxChildren.tsx | 1 + .../contextuallyTypedOptionalProperty.ts | 1 + ...textuallyTypedParametersOptionalInJSDoc.ts | 1 + ...xtuallyTypedParametersWithInitializers1.ts | 1 + ...xtuallyTypedParametersWithInitializers2.ts | 1 + ...xtuallyTypedParametersWithInitializers3.ts | 1 + ...xtuallyTypedParametersWithInitializers4.ts | 1 + ...xtuallyTypedParametersWithQuestionToken.ts | 1 + .../compiler/contextuallyTypingOrOperator.ts | 1 + .../compiler/contextuallyTypingOrOperator2.ts | 1 + .../compiler/contextuallyTypingOrOperator3.ts | 1 + .../contextuallyTypingRestParameters.ts | 1 + .../compiler/continueInIterationStatement1.ts | 1 + .../compiler/continueInIterationStatement2.ts | 1 + .../compiler/continueInIterationStatement3.ts | 1 + .../compiler/continueInIterationStatement4.ts | 1 + tests/cases/compiler/continueLabel.ts | 1 + .../continueNotInIterationStatement1.ts | 1 + .../continueNotInIterationStatement2.ts | 1 + .../continueNotInIterationStatement3.ts | 1 + .../continueNotInIterationStatement4.ts | 1 + .../continueStatementInternalComments.ts | 1 + tests/cases/compiler/continueTarget1.ts | 1 + tests/cases/compiler/continueTarget2.ts | 1 + tests/cases/compiler/continueTarget3.ts | 1 + tests/cases/compiler/continueTarget4.ts | 1 + tests/cases/compiler/continueTarget5.ts | 1 + tests/cases/compiler/continueTarget6.ts | 1 + .../contravariantInferenceAndTypeGuard.ts | 1 + ...riantOnlyInferenceFromAnnotatedFunction.ts | 1 + ...antOnlyInferenceFromAnnotatedFunctionJs.ts | 1 + ...InferenceWithAnnotatedOptionalParameter.ts | 1 + ...ferenceWithAnnotatedOptionalParameterJs.ts | 1 + .../contravariantTypeAliasInference.ts | 1 + .../controlFlowAliasedDiscriminants.ts | 1 + .../controlFlowAnalysisOnBareThisKeyword.ts | 1 + .../cases/compiler/controlFlowArrayErrors.ts | 1 + tests/cases/compiler/controlFlowArrays.ts | 1 + .../controlFlowBreakContinueWithLabel.ts | 1 + tests/cases/compiler/controlFlowCaching.ts | 1 + ...rolFlowCommaExpressionAssertionMultiple.ts | 1 + ...owCommaExpressionAssertionWithinTernary.ts | 1 + .../controlFlowCommaExpressionFunctionCall.ts | 1 + .../compiler/controlFlowDestructuringLoop.ts | 1 + .../controlFlowDestructuringParameters.ts | 1 + ...rolFlowDestructuringVariablesInTryCatch.ts | 1 + ...owFavorAssertedTypeThroughTypePredicate.ts | 1 + .../controlFlowFinallyNoCatchAssignments.ts | 1 + .../compiler/controlFlowForCatchAndFinally.ts | 1 + ...olFlowForCompoundAssignmentToThisMember.ts | 1 + .../compiler/controlFlowForIndexSignatures.ts | 1 + ...lowForStatementContinueIntoIncrementor1.ts | 1 + ...olFlowInitializedDestructuringVariables.ts | 1 + tests/cases/compiler/controlFlowJavascript.ts | 1 + .../cases/compiler/controlFlowLoopAnalysis.ts | 1 + ...rolFlowManyCallExpressionStatementsPerf.ts | 1 + ...lFlowManyConsecutiveConditionsNoTimeout.ts | 1 + .../compiler/controlFlowNoImplicitAny.ts | 1 + .../compiler/controlFlowNullTypeAndLiteral.ts | 1 + .../compiler/controlFlowOuterVariable.ts | 1 + .../controlFlowPropertyDeclarations.ts | 1 + .../controlFlowPropertyInitializer.ts | 1 + .../controlFlowSelfReferentialLoop.ts | 1 + ...ontrolFlowUnionContainingTypeParameter1.ts | 1 + .../controlFlowWithIncompleteTypes.ts | 1 + tests/cases/compiler/convertKeywords.ts | 1 + tests/cases/compiler/convertKeywordsYes.ts | 1 + tests/cases/compiler/copyrightWithNewLine1.ts | 1 + .../compiler/copyrightWithoutNewLine1.ts | 1 + .../compiler/correctOrderOfPromiseMethod.ts | 1 + tests/cases/compiler/correlatedUnions.ts | 1 + tests/cases/compiler/corrupted.ts | 3 +- .../compiler/couldNotSelectGenericOverload.ts | 1 + tests/cases/compiler/covariance1.ts | 1 + .../crashDeclareGlobalTypeofExport.ts | 1 + .../compiler/crashInEmitTokenWithComment.ts | 1 + .../crashInGetTextOfComputedPropertyName.ts | 1 + .../cases/compiler/crashInResolveInterface.ts | 1 + .../compiler/crashInresolveReturnStatement.ts | 1 + ...urcePropertyIsRelatableToTargetProperty.ts | 1 + .../crashIntypeCheckInvocationExpression.ts | 1 + ...rashIntypeCheckObjectCreationExpression.ts | 1 + .../cases/compiler/crashOnMethodSignatures.ts | 1 + tests/cases/compiler/crashRegressionTest.ts | 1 + tests/cases/compiler/createArray.ts | 1 + .../crossFileOverloadModifierConsistency.ts | 1 + .../cases/compiler/ctsFileInEsnextHelpers.ts | 1 + ...uriousNestedConditionalEvaluationResult.ts | 1 + tests/cases/compiler/customEventDetail.ts | 3 +- .../cyclicGenericTypeInstantiation.ts | 1 + ...cyclicGenericTypeInstantiationInference.ts | 1 + tests/cases/compiler/cyclicModuleImport.ts | 1 + .../cases/compiler/cyclicTypeInstantiation.ts | 1 + tests/cases/compiler/dataViewConstructor.ts | 1 + tests/cases/compiler/debugger.ts | 1 + tests/cases/compiler/debuggerEmit.ts | 1 + .../declFileAliasUseBeforeDeclaration.ts | 1 + .../declFileAliasUseBeforeDeclaration2.ts | 1 + ...tExternalModuleWithSingleExportedModule.ts | 1 + .../declFileClassWithIndexSignature.ts | 1 + ...assWithStaticMethodReturningConstructor.ts | 1 + .../compiler/declFileEmitDeclarationOnly.ts | 1 + .../declFileEmitDeclarationOnlyError1.ts | 1 + .../declFileEmitDeclarationOnlyError2.ts | 1 + .../cases/compiler/declFileEnumUsedAsValue.ts | 1 + tests/cases/compiler/declFileEnums.ts | 1 + ...ileExportAssignmentImportInternalModule.ts | 1 + ...lFileExportAssignmentOfGenericInterface.ts | 1 + .../compiler/declFileExportImportChain.ts | 1 + .../compiler/declFileExportImportChain2.ts | 1 + ...declFileForClassWithMultipleBaseClasses.ts | 1 + ...leForClassWithPrivateOverloadedFunction.ts | 1 + .../compiler/declFileForExportedImport.ts | 1 + .../declFileForFunctionTypeAsTypeParameter.ts | 1 + ...eclFileForInterfaceWithOptionalFunction.ts | 1 + .../declFileForInterfaceWithRestParams.ts | 1 + .../compiler/declFileForTypeParameters.ts | 1 + tests/cases/compiler/declFileForVarList.ts | 1 + ...ileGenericClassWithGenericExtendedClass.ts | 1 + tests/cases/compiler/declFileGenericType.ts | 1 + tests/cases/compiler/declFileGenericType2.ts | 1 + .../declFileImportChainInExportAssignment.ts | 1 + ...eclFileImportModuleWithExportAssignment.ts | 1 + ...eclFileImportedTypeUseInTypeArgPosition.ts | 1 + .../cases/compiler/declFileInternalAliases.ts | 1 + ...ModuleAssignmentInObjectLiteralProperty.ts | 1 + .../compiler/declFileModuleContinuation.ts | 1 + .../declFileModuleWithPropertyOfTypeModule.ts | 1 + .../declFileOptionalInterfaceMethod.ts | 1 + .../declFilePrivateMethodOverloads.ts | 1 + .../cases/compiler/declFileRegressionTests.ts | 1 + ...RestParametersOfFunctionAndFunctionType.ts | 1 + tests/cases/compiler/declFileTypeofClass.ts | 1 + tests/cases/compiler/declFileTypeofEnum.ts | 1 + .../cases/compiler/declFileTypeofFunction.ts | 1 + .../compiler/declFileTypeofInAnonymousType.ts | 1 + tests/cases/compiler/declFileTypeofModule.ts | 1 + ...lictingWithClassReferredByExtendsClause.ts | 1 + ...eclFileWithErrorsInInputDeclarationFile.ts | 1 + ...WithErrorsInInputDeclarationFileWithOut.ts | 1 + ...dsClauseThatHasItsContainerNameConflict.ts | 1 + ...rnalModuleNameConflictsInExtendsClause1.ts | 1 + ...rnalModuleNameConflictsInExtendsClause2.ts | 1 + ...rnalModuleNameConflictsInExtendsClause3.ts | 1 + tests/cases/compiler/declInput-2.ts | 1 + tests/cases/compiler/declInput.ts | 1 + tests/cases/compiler/declInput3.ts | 1 + tests/cases/compiler/declInput4.ts | 1 + ...tionNodeNotReusedWhenTypeNotEquivalent1.ts | 1 + .../declarationEmitAliasExportStar.ts | 1 + .../declarationEmitAliasFromIndirectFile.ts | 1 + .../compiler/declarationEmitAliasInlineing.ts | 1 + .../declarationEmitAmdModuleDefault.ts | 1 + .../declarationEmitAmdModuleNameDirective.ts | 1 + ...clarationEmitAnyComputedPropertyInClass.ts | 1 + ...tionEmitArrayTypesFromGenericArrayUsage.ts | 1 + .../declarationEmitArrowFunctionNoRenaming.ts | 1 + ...ationEmitBindingPatternWithReservedWord.ts | 1 + .../declarationEmitBindingPatterns.ts | 1 + ...larationEmitBundleWithAmbientReferences.ts | 1 + .../declarationEmitBundlerConditions.ts | 1 + .../declarationEmitCastReusesTypeNode1.ts | 1 + .../declarationEmitCastReusesTypeNode2.ts | 1 + .../declarationEmitCastReusesTypeNode3.ts | 1 + .../declarationEmitCastReusesTypeNode4.ts | 1 + .../declarationEmitCastReusesTypeNode5.ts | 1 + .../declarationEmitClassAccessorsJs1.ts | 1 + .../declarationEmitClassInherritsAny.ts | 1 + ...tionEmitClassMixinLocalClassDeclaration.ts | 1 + ...rationEmitClassSetAccessorParamNameInJs.ts | 1 + ...ationEmitClassSetAccessorParamNameInJs2.ts | 1 + ...ationEmitClassSetAccessorParamNameInJs3.ts | 1 + ...arationEmitCommonJsModuleReferencedType.ts | 1 + ...onSourceDirectoryDoesNotContainAllFiles.ts | 1 + ...EmitComputedNameCausesImportToBePainted.ts | 1 + ...clarationEmitComputedNameConstEnumAlias.ts | 1 + ...rationEmitComputedNameWithQuestionToken.ts | 1 + ...eclarationEmitComputedNamesInaccessible.ts | 1 + .../declarationEmitComputedPropertyName1.ts | 1 + ...eclarationEmitComputedPropertyNameEnum1.ts | 1 + ...eclarationEmitComputedPropertyNameEnum2.ts | 1 + ...eclarationEmitComputedPropertyNameEnum3.ts | 1 + ...larationEmitComputedPropertyNameSymbol1.ts | 1 + ...larationEmitComputedPropertyNameSymbol2.ts | 1 + .../declarationEmitConstantNoWidening.ts | 1 + ...nEmitCrossFileCopiedGeneratedImportType.ts | 1 + ...nEmitCrossFileImportTypeOfAmbientModule.ts | 1 + ...onEmitDefaultExportWithStaticAssignment.ts | 1 + ...arationEmitDefaultExportWithTempVarName.ts | 1 + ...efaultExportWithTempVarNameWithBundling.ts | 1 + .../compiler/declarationEmitDestructuring1.ts | 1 + .../compiler/declarationEmitDestructuring2.ts | 1 + .../compiler/declarationEmitDestructuring3.ts | 1 + .../compiler/declarationEmitDestructuring4.ts | 3 +- .../compiler/declarationEmitDestructuring5.ts | 3 +- ...clarationEmitDestructuringArrayPattern1.ts | 1 + ...clarationEmitDestructuringArrayPattern2.ts | 1 + ...clarationEmitDestructuringArrayPattern3.ts | 1 + ...clarationEmitDestructuringArrayPattern4.ts | 1 + ...clarationEmitDestructuringArrayPattern5.ts | 1 + ...onEmitDestructuringObjectLiteralPattern.ts | 1 + ...nEmitDestructuringObjectLiteralPattern1.ts | 1 + ...nEmitDestructuringObjectLiteralPattern2.ts | 1 + ...ingOptionalBindingParametersInOverloads.ts | 3 +- ...ionEmitDestructuringParameterProperties.ts | 3 +- ...eclarationEmitDestructuringPrivacyError.ts | 1 + ...tructuringWithOptionalBindingParameters.ts | 3 +- ...ionEmitDistributiveConditionalWithInfer.ts | 1 + ...tionEmitDuplicateParameterDestructuring.ts | 1 + .../declarationEmitEnumReadonlyProperty.ts | 1 + ...arationEmitEnumReferenceViaImportEquals.ts | 1 + ...ExactOptionalPropertyTypesNodeNotReused.ts | 1 + ...clarationEmitExpandoPropertyPrivateName.ts | 1 + ...arationEmitExpandoWithGenericConstraint.ts | 1 + ...rationEmitExportAliasVisibiilityMarking.ts | 2 + ...nedNamespaceNoTripleSlashTypesReference.ts | 1 + .../declarationEmitExpressionInExtends.ts | 1 + .../declarationEmitExpressionInExtends2.ts | 1 + .../declarationEmitExpressionInExtends3.ts | 1 + .../declarationEmitExpressionInExtends4.ts | 1 + .../declarationEmitExpressionInExtends5.ts | 1 + .../declarationEmitExpressionInExtends6.ts | 1 + .../declarationEmitExpressionInExtends7.ts | 1 + ...pressionWithNonlocalPrivateUniqueSymbol.ts | 1 + .../declarationEmitFBoundedTypeParams.ts | 1 + ...DefaultExportClassExtendingExpression01.ts | 1 + ...arationEmitForGlobalishSpecifierSymlink.ts | 1 + ...rationEmitForGlobalishSpecifierSymlink2.ts | 1 + ...mportingModuleAugmentationRetainsImport.ts | 1 + ...arationEmitForTypesWhichNeedImportTypes.ts | 1 + ...clarationEmitFunctionDuplicateNamespace.ts | 1 + .../declarationEmitFunctionKeywordProp.ts | 1 + ...tionEmitGenericTypeParamerSerialization.ts | 1 + ...ionEmitGenericTypeParamerSerialization2.ts | 1 + .../declarationEmitGlobalThisPreserved.ts | 1 + ...eclarationEmitHasTypesRefOnNamespaceUse.ts | 1 + ...ationEmitImportInExportAssignmentModule.ts | 1 + .../compiler/declarationEmitIndexTypeArray.ts | 1 + .../declarationEmitIndexTypeNotFound.ts | 1 + ...eclarationEmitInferredDefaultExportType.ts | 1 + ...clarationEmitInferredDefaultExportType2.ts | 1 + .../declarationEmitInferredTypeAlias1.ts | 3 +- .../declarationEmitInferredTypeAlias2.ts | 3 +- .../declarationEmitInferredTypeAlias3.ts | 3 +- .../declarationEmitInferredTypeAlias4.ts | 3 +- .../declarationEmitInferredTypeAlias5.ts | 3 +- .../declarationEmitInferredTypeAlias6.ts | 3 +- .../declarationEmitInferredTypeAlias7.ts | 3 +- .../declarationEmitInferredTypeAlias8.ts | 1 + .../declarationEmitInferredTypeAlias9.ts | 1 + ...nferredUndefinedPropFromFunctionInArray.ts | 1 + ...ationEmitInlinedDistributiveConditional.ts | 1 + ...faceWithNonEntityNameExpressionHeritage.ts | 1 + .../compiler/declarationEmitInvalidExport.ts | 1 + .../declarationEmitInvalidReference.ts | 1 + .../declarationEmitInvalidReference2.ts | 1 + .../declarationEmitInvalidReferenceAllowJs.ts | 1 + ...arationErrorNotEmittedForNonEmittedFile.ts | 1 + .../declarationEmitJsReExportDefault.ts | 1 + .../declarationEmitKeywordDestructuring.ts | 1 + ...itLambdaWithMissingTypeParameterNoCrash.ts | 1 + ...clarationEmitLocalClassDeclarationMixin.ts | 1 + ...arationEmitLocalClassHasRequiredDeclare.ts | 1 + ...ationEmitMappedPrivateTypeTypeParameter.ts | 1 + ...dTypeDistributivityPreservesConstraints.ts | 1 + ...pedTypePreservesTypeParameterConstraint.ts | 1 + ...tMappedTypePropertyFromNumericStringKey.ts | 1 + ...ationEmitMappedTypeTemplateTypeofSymbol.ts | 1 + .../declarationEmitMergedAliasWithConst.ts | 1 + .../declarationEmitMethodDeclaration.ts | 1 + .../declarationEmitMixinPrivateProtected.ts | 1 + .../declarationEmitMonorepoBaseUrl.ts | 1 + ...tionEmitMultipleComputedNamesSameDomain.ts | 1 + .../compiler/declarationEmitNameConflicts.ts | 1 + .../compiler/declarationEmitNameConflicts2.ts | 1 + .../compiler/declarationEmitNameConflicts3.ts | 1 + .../declarationEmitNameConflictsWithAlias.ts | 1 + ...espaceMergedWithInterfaceNestedFunction.ts | 1 + ...eclarationEmitNestedAnonymousMappedType.ts | 1 + .../compiler/declarationEmitNestedGenerics.ts | 1 + .../declarationEmitNoInvalidCommentReuse1.ts | 1 + .../declarationEmitNoInvalidCommentReuse2.ts | 1 + .../declarationEmitNoInvalidCommentReuse3.ts | 1 + .../declarationEmitNoNonRequiredParens.ts | 1 + ...eclarationEmitNonExportedBindingPattern.ts | 1 + .../declarationEmitObjectLiteralAccessors1.ts | 1 + ...eclarationEmitObjectLiteralAccessorsJs1.ts | 1 + .../compiler/declarationEmitOfFuncspace.ts | 1 + .../declarationEmitOfTypeofAliasedExport.ts | 1 + ...alMappedTypePropertyNoStrictNullChecks1.ts | 1 + ...alMappedTypePropertyNoStrictNullChecks2.ts | 1 + ...alMappedTypePropertyNoStrictNullChecks3.ts | 1 + ...alMappedTypePropertyNoStrictNullChecks4.ts | 1 + .../compiler/declarationEmitOptionalMethod.ts | 1 + .../declarationEmitOutFileBundlePaths.ts | 1 + ...clarationEmitOverloadedPrivateInference.ts | 1 + .../declarationEmitParameterProperty.ts | 1 + .../declarationEmitPathMappingMonorepo.ts | 1 + .../declarationEmitPathMappingMonorepo2.ts | 1 + ...eclarationEmitPreserveReferencedImports.ts | 1 + .../compiler/declarationEmitPrivateAsync.ts | 1 + .../declarationEmitPrivateNameCausesError.ts | 1 + ...larationEmitPrivatePromiseLikeInterface.ts | 1 + .../declarationEmitPrivateReadonlyLiterals.ts | 1 + ...tPrivateSymbolCausesVarDeclarationEmit2.ts | 1 + ...teSymbolCausesVarDeclarationToBeEmitted.ts | 1 + ...declarationEmitPropertyNumericStringKey.ts | 1 + ...clarationEmitQualifiedAliasTypeArgument.ts | 1 + ...declarationEmitReadonlyComputedProperty.ts | 1 + ...nEmitRecursiveConditionalAliasPreserved.ts | 1 + ...tRedundantTripleSlashModuleAugmentation.ts | 1 + ...clarationEmitReexportedSymlinkReference.ts | 1 + ...larationEmitReexportedSymlinkReference2.ts | 1 + ...larationEmitReexportedSymlinkReference3.ts | 1 + .../declarationEmitRelativeModuleError.ts | 1 + ...RetainedAnnotationRetainsImportInOutput.ts | 1 + .../declarationEmitRetainsJsdocyComments.ts | 1 + ...clarationEmitReusesLambdaParameterNodes.ts | 1 + .../declarationEmitScopeConsistency.ts | 1 + .../declarationEmitScopeConsistency3.ts | 1 + .../compiler/declarationEmitShadowing.ts | 1 + ...declarationEmitShadowingInferNotRenamed.ts | 1 + .../declarationEmitSimpleComputedNames1.ts | 1 + .../declarationEmitSpreadStringlyKeyedEnum.ts | 1 + ...ationEmitStringEnumUsedInNonlocalSpread.ts | 1 + ...EmitToDeclarationDirWithCompositeOption.ts | 1 + ...itToDeclarationDirWithDeclarationOption.ts | 1 + ...irWithoutCompositeAndDeclarationOptions.ts | 1 + ...eclarationEmitTopLevelNodeFromCrossFile.ts | 1 + ...clarationEmitTopLevelNodeFromCrossFile2.ts | 1 + ...itTransitiveImportOfHtmlDeclarationItem.ts | 1 + ...onEmitTripleSlashReferenceAmbientModule.ts | 1 + ...onEmitTupleRestSignatureLeadingVariadic.ts | 1 + ...liasTypeParameterExtendingUnknownSymbol.ts | 3 +- ...arationEmitTypeAliasWithTypeParameters1.ts | 3 +- ...arationEmitTypeAliasWithTypeParameters2.ts | 3 +- ...arationEmitTypeAliasWithTypeParameters3.ts | 3 +- ...arationEmitTypeAliasWithTypeParameters4.ts | 3 +- ...arationEmitTypeAliasWithTypeParameters5.ts | 3 +- ...arationEmitTypeAliasWithTypeParameters6.ts | 3 +- ...rationEmitTypeParameterNameInOuterScope.ts | 1 + ...nEmitTypeParameterNameReusedInOverloads.ts | 1 + ...EmitTypeParameterNameShadowedInternally.ts | 1 + .../declarationEmitTypeofDefaultExport.ts | 1 + .../declarationEmitTypeofThisInClass.ts | 1 + .../declarationEmitUsingTypeAlias1.ts | 1 + .../declarationEmitUsingTypeAlias2.ts | 1 + .../declarationEmitVarInElidedBlock.ts | 1 + .../compiler/declarationEmitWithComposite.ts | 1 + ...rationEmitWithInvalidPackageJsonTypings.ts | 1 + ...arationFileNoCrashOnExtraExportModifier.ts | 2 + .../compiler/declarationFileOverwriteError.ts | 1 + .../declarationFileOverwriteErrorWithOut.ts | 1 + ...eclarationFilesGeneratingTypeReferences.ts | 1 + .../declarationFilesWithTypeReferences1.ts | 1 + .../declarationFilesWithTypeReferences2.ts | 1 + .../declarationFilesWithTypeReferences3.ts | 1 + .../declarationFilesWithTypeReferences4.ts | 1 + ...nFunctionTypeNonlocalShouldNotBeAnError.ts | 1 + ...tionImportTypeAliasInferredAndEmittable.ts | 2 + tests/cases/compiler/declarationMaps.ts | 2 + .../compiler/declarationMapsMultifile.ts | 1 + .../cases/compiler/declarationMapsOutFile.ts | 1 + .../cases/compiler/declarationMapsOutFile2.ts | 1 + .../compiler/declarationMapsWithSourceMap.ts | 1 + .../declarationMapsWithoutDeclaration.ts | 2 + tests/cases/compiler/declarationMerging1.ts | 1 + tests/cases/compiler/declarationMerging2.ts | 1 + .../compiler/declarationNoDanglingGenerics.ts | 1 + .../compiler/declarationQuotedMembers.ts | 1 + ...ationTypecheckNoUseBeforeReferenceCheck.ts | 1 + ...clarationsForFileShadowingGlobalNoError.ts | 1 + ...clarationsForIndirectTypeAliasReference.ts | 1 + ...eclarationsForInferredTypeFromOtherFile.ts | 1 + ...arationsIndirectGeneratedAliasReference.ts | 1 + ...iveInternalTypesProduceUniqueTypeParams.ts | 1 + tests/cases/compiler/declareAlreadySeen.ts | 1 + .../declareClassInterfaceImplementation.ts | 1 + tests/cases/compiler/declareDottedExtend.ts | 1 + .../cases/compiler/declareDottedModuleName.ts | 1 + ...ExternalModuleWithExportAssignedFundule.ts | 1 + .../compiler/declareFileExportAssignment.ts | 1 + ...tAssignmentWithVarFromVariableStatement.ts | 1 + ...ifierAsBeginningOfStatementExpression01.ts | 1 + .../compiler/declareModifierOnImport1.ts | 1 + .../compiler/declareModifierOnTypeAlias.ts | 3 +- .../cases/compiler/declaredExternalModule.ts | 1 + ...laredExternalModuleWithExportAssignment.ts | 1 + tests/cases/compiler/decoratorInJsFile.ts | 1 + tests/cases/compiler/decoratorInJsFile1.ts | 1 + .../decoratorMetadataConditionalType.ts | 1 + .../decoratorMetadataGenericTypeVariable.ts | 1 + ...ratorMetadataGenericTypeVariableDefault.ts | 1 + ...ratorMetadataGenericTypeVariableInScope.ts | 1 + ...oratorMetadataNoLibIsolatedModulesTypes.ts | 1 + .../compiler/decoratorMetadataNoStrictNull.ts | 1 + .../decoratorMetadataTypeOnlyExport.ts | 1 + .../decoratorMetadataTypeOnlyImport.ts | 1 + .../decoratorReferenceOnOtherProperty.ts | 1 + tests/cases/compiler/decoratorReferences.ts | 1 + .../decoratorUsedBeforeDeclaration.ts | 3 +- .../compiler/decoratorWithUnderscoreMethod.ts | 1 + .../decrementAndIncrementOperators.ts | 1 + .../compiler/deduplicateImportsInSystem.ts | 1 + tests/cases/compiler/deepComparisons.ts | 1 + ...ropertyCheckingWhenTargetIsIntersection.ts | 1 + tests/cases/compiler/deepKeysIndexing.ts | 1 + .../deeplyDependentLargeArrayMutation2.ts | 1 + ...deeplyNestedAssignabilityErrorsCombined.ts | 1 + .../deeplyNestedAssignabilityIssue.ts | 1 + tests/cases/compiler/deeplyNestedCheck.ts | 1 + .../compiler/deeplyNestedConditionalTypes.ts | 1 + .../cases/compiler/deeplyNestedConstraints.ts | 1 + .../cases/compiler/deeplyNestedMappedTypes.ts | 1 + ...deeplyNestedTemplateLiteralIntersection.ts | 1 + .../defaultArgsInFunctionExpressions.ts | 1 + .../cases/compiler/defaultArgsInOverloads.ts | 1 + .../defaultBestCommonTypesHaveDecls.ts | 1 + .../defaultDeclarationEmitDefaultImport.ts | 1 + .../defaultDeclarationEmitNamedCorrectly.ts | 1 + ...ltDeclarationEmitShadowedNamedCorrectly.ts | 1 + tests/cases/compiler/defaultIndexProps1.ts | 1 + tests/cases/compiler/defaultIndexProps2.ts | 1 + .../defaultIsNotVisibleInLocalScope.ts | 1 + .../compiler/defaultKeywordWithoutExport1.ts | 1 + .../compiler/defaultKeywordWithoutExport2.ts | 1 + .../defaultOfAnyInStrictNullChecks.ts | 1 + ...ameterAddsUndefinedWithStrictNullChecks.ts | 1 + .../defaultParameterTrailingComments.ts | 1 + .../defaultPropsEmptyCurlyBecomesAnyForJs.ts | 1 + .../defaultValueInConstructorOverload1.ts | 1 + .../defaultValueInFunctionOverload1.ts | 1 + .../compiler/defaultValueInFunctionTypes.ts | 1 + .../compiler/deferredConditionalTypes.ts | 1 + .../compiler/deferredConditionalTypes2.ts | 1 + .../compiler/deferredLookupTypeResolution.ts | 1 + .../compiler/deferredLookupTypeResolution2.ts | 1 + ...rredTypeReferenceWithinArrayWithinTuple.ts | 1 + ...efiniteAssignmentOfDestructuredVariable.ts | 1 + .../deleteExpressionMustBeOptional.ts | 1 + ...stBeOptional_exactOptionalPropertyTypes.ts | 1 + tests/cases/compiler/deleteOperator1.ts | 1 + .../compiler/deleteOperatorInStrictMode.ts | 1 + tests/cases/compiler/deleteReadonly.ts | 1 + .../deleteReadonlyInStrictNullChecks.ts | 1 + .../compiler/dependencyViaImportAlias.ts | 1 + tests/cases/compiler/deprecatedBool.ts | 1 + .../compiler/deprecatedCompilerOptions2.ts | 1 + .../derivedClassOverridesPrivateFunction1.ts | 1 + tests/cases/compiler/derivedClasses.ts | 1 + .../compiler/derivedInterfaceCallSignature.ts | 1 + ...edTypeCallingBaseImplWithOptionalParams.ts | 1 + .../derivedTypeIncompatibleSignatures.ts | 1 + .../compiler/destructionAssignmentError.ts | 1 + .../cases/compiler/destructureCatchClause.ts | 1 + .../compiler/destructureComputedProperty.ts | 1 + .../destructureOfVariableSameAsShorthand.ts | 1 + .../compiler/destructureOptionalParameter.ts | 1 + .../destructureTupleWithVariableElement.ts | 1 + .../compiler/destructuredDeclarationEmit.ts | 1 + ...structuredMaappedTypeIsNotImplicitlyAny.ts | 1 + .../destructuringAssignmentWithDefault.ts | 1 + .../destructuringAssignmentWithDefault2.ts | 1 + ...ructuringAssignmentWithStrictNullChecks.ts | 1 + .../destructuringAssignment_private.ts | 1 + .../destructuringControlFlowNoCrash.ts | 1 + .../compiler/destructuringFromUnionSpread.ts | 1 + ...ingInitializerContextualTypeFromContext.ts | 1 + ...ertyAssignmentNameIsNotAssignmentTarget.ts | 1 + .../destructuringTempOccursAfterPrologue.ts | 1 + tests/cases/compiler/destructuringTuple.ts | 1 + .../compiler/destructuringTypeGuardFlow.ts | 1 + .../compiler/destructuringWithConstraint.ts | 1 + .../destructuringWithGenericParameter.ts | 1 + .../destructuringWithNewExpression.ts | 1 + .../destructuringWithNumberLiteral.ts | 1 + .../detachedCommentAtStartOfConstructor1.ts | 1 + .../detachedCommentAtStartOfConstructor2.ts | 1 + .../detachedCommentAtStartOfFunctionBody1.ts | 1 + .../detachedCommentAtStartOfFunctionBody2.ts | 1 + ...detachedCommentAtStartOfLambdaFunction1.ts | 1 + ...detachedCommentAtStartOfLambdaFunction2.ts | 1 + ...rationsForExpressionsWhichCouldBeCalled.ts | 1 + .../cases/compiler/didYouMeanStringLiteral.ts | 1 + .../compiler/didYouMeanSuggestionErrors.ts | 1 + .../compiler/differentTypesWithSameName.ts | 1 + ...iscriminableUnionWithIntersectedMembers.ts | 1 + .../discriminantElementAccessCheck.ts | 1 + .../discriminantNarrowingCouldBeCircular.ts | 1 + .../compiler/discriminantOrderIndependence.ts | 1 + .../compiler/discriminantPropertyCheck.ts | 1 + .../compiler/discriminantPropertyInference.ts | 1 + ...inantUsingEvaluatableTemplateExpression.ts | 1 + .../discriminantsAndNullOrUndefined.ts | 1 + .../compiler/discriminantsAndPrimitives.ts | 1 + .../discriminantsAndTypePredicates.ts | 1 + .../compiler/discriminateObjectTypesOnly.ts | 1 + .../discriminateWithDivergentAccessors1.ts | 1 + .../discriminateWithMissingProperty.ts | 1 + .../discriminateWithOptionalProperty1.ts | 1 + .../discriminateWithOptionalProperty2.ts | 1 + .../discriminateWithOptionalProperty3.ts | 1 + .../discriminateWithOptionalProperty4.ts | 1 + .../discriminatedUnionErrorMessage.ts | 1 + .../compiler/discriminatedUnionJsxElement.tsx | 1 + .../discriminatedUnionWithIndexSignature.ts | 1 + ...AgainstUndefinedWithoutStrictNullChecks.ts | 1 + .../distributiveConditionalTypeConstraints.ts | 1 + ...butiveConditionalTypeNeverIntersection1.ts | 1 + tests/cases/compiler/divergentAccessors1.ts | 1 + .../compiler/divergentAccessorsTypes6.ts | 1 + .../compiler/divergentAccessorsTypes7.ts | 1 + .../compiler/divergentAccessorsTypes8.ts | 1 + .../compiler/divideAndConquerIntersections.ts | 1 + .../compiler/doNotEmitDetachedComments.ts | 3 +- ...mitDetachedCommentsAtStartOfConstructor.ts | 3 +- ...itDetachedCommentsAtStartOfFunctionBody.ts | 3 +- ...DetachedCommentsAtStartOfLambdaFunction.ts | 3 +- .../doNotEmitPinnedCommentNotOnTopOfFile.ts | 3 +- .../doNotEmitPinnedCommentOnNotEmittedNode.ts | 3 +- ...oNotEmitPinnedCommentOnNotEmittedNodets.ts | 3 +- .../doNotEmitPinnedDetachedComments.ts | 3 +- ...doNotEmitTripleSlashCommentsInEmptyFile.ts | 3 +- ...EmitTripleSlashCommentsOnNotEmittedNode.ts | 3 +- .../compiler/doNotInferUnrelatedTypes.ts | 1 + ...tWidenAtObjectLiteralPropertyAssignment.ts | 1 + .../compiler/doNotemitTripleSlashComments.ts | 3 +- tests/cases/compiler/doWhileLoop.ts | 1 + .../cases/compiler/doWhileUnreachableCode.ts | 1 + ...oYouNeedToChangeYourTargetLibraryES2015.ts | 1 + ...NeedToChangeYourTargetLibraryES2016Plus.ts | 1 + ...NarrowUnionOfConstructorsWithInstanceof.ts | 1 + .../dontShowCompilerGeneratedMembers.ts | 1 + tests/cases/compiler/dottedModuleName.ts | 1 + tests/cases/compiler/dottedModuleName2.ts | 1 + tests/cases/compiler/dottedNamesInSystem.ts | 1 + .../cases/compiler/dottedSymbolResolution1.ts | 1 + ...oubleMixinConditionalTypeBaseClassWorks.ts | 1 + .../doubleUnderStringLiteralAssignability.ts | 1 + .../compiler/doubleUnderscoreEnumEmit.ts | 1 + .../doubleUnderscoreExportStarConflict.ts | 1 + .../cases/compiler/doubleUnderscoreLabels.ts | 1 + .../compiler/doubleUnderscoreMappedTypes.ts | 1 + .../doubleUnderscoreReactNamespace.ts | 1 + tests/cases/compiler/downlevelLetConst1.ts | 1 + tests/cases/compiler/downlevelLetConst10.ts | 1 + tests/cases/compiler/downlevelLetConst11.ts | 1 + tests/cases/compiler/downlevelLetConst19.ts | 1 + tests/cases/compiler/downlevelLetConst2.ts | 1 + tests/cases/compiler/downlevelLetConst3.ts | 1 + tests/cases/compiler/downlevelLetConst4.ts | 1 + tests/cases/compiler/downlevelLetConst5.ts | 1 + tests/cases/compiler/downlevelLetConst6.ts | 1 + tests/cases/compiler/downlevelLetConst7.ts | 1 + tests/cases/compiler/downlevelLetConst8.ts | 1 + tests/cases/compiler/downlevelLetConst9.ts | 1 + ...ipleSlashAvoidUnnecessaryResolutionMode.ts | 1 + .../compiler/duplicateAnonymousInners1.ts | 1 + .../duplicateAnonymousModuleClasses.ts | 1 + .../cases/compiler/duplicateClassElements.ts | 1 + .../compiler/duplicateConstructSignature.ts | 1 + .../compiler/duplicateConstructSignature2.ts | 1 + .../duplicateConstructorOverloadSignature.ts | 1 + .../duplicateConstructorOverloadSignature2.ts | 1 + .../cases/compiler/duplicateDefaultExport.ts | 1 + .../compiler/duplicateErrorAssignability.ts | 1 + .../compiler/duplicateErrorClassExpression.ts | 1 + .../compiler/duplicateErrorNameNotFound.ts | 1 + .../duplicateIdentifierComputedName.ts | 1 + .../duplicateIdentifierDifferentModifiers.ts | 1 + .../duplicateIdentifierDifferentSpelling.ts | 1 + .../cases/compiler/duplicateIdentifierEnum.ts | 1 + .../duplicateIdentifierInCatchBlock.ts | 1 + .../duplicateIdentifierRelatedSpans1.ts | 1 + .../duplicateIdentifierRelatedSpans2.ts | 1 + .../duplicateIdentifierRelatedSpans3.ts | 1 + .../duplicateIdentifierRelatedSpans4.ts | 1 + .../duplicateIdentifierRelatedSpans5.ts | 1 + .../duplicateIdentifierRelatedSpans6.ts | 1 + .../duplicateIdentifierRelatedSpans7.ts | 1 + ...entifierRelatedSpans_moduleAugmentation.ts | 1 + ...ierShouldNotShortCircuitBaseTypeBinding.ts | 1 + ...ateIdentifiersAcrossContainerBoundaries.ts | 1 + ...uplicateIdentifiersAcrossFileBoundaries.ts | 1 + .../compiler/duplicateInterfaceMembers1.ts | 1 + tests/cases/compiler/duplicateLabel1.ts | 1 + tests/cases/compiler/duplicateLabel2.ts | 1 + tests/cases/compiler/duplicateLabel3.ts | 1 + tests/cases/compiler/duplicateLabel4.ts | 1 + .../cases/compiler/duplicateLocalVariable1.ts | 1 + .../cases/compiler/duplicateLocalVariable2.ts | 1 + .../cases/compiler/duplicateLocalVariable3.ts | 1 + .../cases/compiler/duplicateLocalVariable4.ts | 1 + ...cateObjectLiteralProperty_computedName1.ts | 1 + ...cateObjectLiteralProperty_computedName2.ts | 1 + ...cateObjectLiteralProperty_computedName3.ts | 1 + ...ctLiteralProperty_computedNameNegative1.ts | 1 + .../duplicateOverloadInTypeAugmentation1.ts | 1 + tests/cases/compiler/duplicatePackage.ts | 1 + .../compiler/duplicatePackage_globalMerge.ts | 1 + ...icatePackage_packageIdIncludesSubModule.ts | 1 + .../duplicatePackage_referenceTypes.ts | 1 + ...catePackage_relativeImportWithinPackage.ts | 1 + ...kage_relativeImportWithinPackage_scoped.ts | 1 + .../compiler/duplicatePackage_subModule.ts | 1 + .../compiler/duplicatePackage_withErrors.ts | 1 + .../duplicatePropertiesInStrictMode.ts | 1 + .../compiler/duplicateStringNamedProperty1.ts | 1 + .../duplicateSymbolsExportMatching.ts | 1 + .../compiler/duplicateTypeParameters1.ts | 1 + .../compiler/duplicateTypeParameters2.ts | 1 + .../compiler/duplicateTypeParameters3.ts | 1 + tests/cases/compiler/duplicateVarAndImport.ts | 1 + .../cases/compiler/duplicateVarAndImport2.ts | 1 + .../compiler/duplicateVariableDeclaration1.ts | 1 + .../compiler/duplicateVariablesByScope.ts | 1 + .../compiler/duplicateVariablesWithAny.ts | 1 + .../duplicateVarsAcrossFileBoundaries.ts | 1 + .../dynamicImportInDefaultExportExpression.ts | 2 + .../compiler/dynamicImportTrailingComma.ts | 2 + .../compiler/dynamicModuleTypecheckError.ts | 1 + tests/cases/compiler/dynamicRequire.ts | 1 + tests/cases/compiler/elaboratedErrors.ts | 1 + .../elaboratedErrorsOnNullableTargets01.ts | 1 + ...leTypeStillReferencesArgumentAtTopLevel.ts | 1 + ...elementAccessExpressionInternalComments.ts | 1 + ...EmbeddedStatementsReplacedWithSemicolon.ts | 1 + tests/cases/compiler/elidedJSImport1.ts | 1 + tests/cases/compiler/elidedJSImport2.ts | 1 + tests/cases/compiler/elidingImportNames.ts | 1 + tests/cases/compiler/emitBOM.ts | 3 +- .../emitCapturingThisInTupleDestructuring1.ts | 3 +- .../emitCapturingThisInTupleDestructuring2.ts | 3 +- .../emitClassExpressionInDeclarationFile.ts | 1 + .../emitClassExpressionInDeclarationFile2.ts | 1 + ...tClassMergedWithConstNamespaceNotElided.ts | 1 + tests/cases/compiler/emitCommentsOnlyFile.ts | 1 + .../emitDecoratorMetadata_isolatedModules.ts | 1 + .../compiler/emitMemberAccessExpression.ts | 1 + tests/cases/compiler/emitMethodCalledNew.ts | 1 + ...eVariableDeclarationRemoveCommentsFalse.ts | 1 + .../compiler/emitPinnedCommentsOnTopOfFile.ts | 3 +- tests/cases/compiler/emitPostComments.ts | 1 + tests/cases/compiler/emitPreComments.ts | 1 + .../emitSkipsThisWithRestParameter.ts | 1 + ...BeforeEmitParameterPropertyDeclaration1.ts | 3 +- ...SuperCallBeforeEmitPropertyDeclaration1.ts | 3 +- ...arationAndParameterPropertyDeclaration1.ts | 3 +- .../compiler/emitThisInSuperMethodCall.ts | 1 + ...OnNotEmittedNodeIfRemoveCommentsIsFalse.ts | 3 +- .../compiler/emptyAnonymousObjectNarrowing.ts | 1 + .../compiler/emptyArgumentsListComment.ts | 1 + ...ructuringExpressionVisitedByTransformer.ts | 1 + .../compiler/emptyDeclarationEmitIsModule.ts | 1 + tests/cases/compiler/emptyEnum.ts | 1 + tests/cases/compiler/emptyExpr.ts | 1 + tests/cases/compiler/emptyFile.ts | 1 + tests/cases/compiler/emptyGenericParamList.ts | 1 + tests/cases/compiler/emptyIndexer.ts | 1 + tests/cases/compiler/emptyMemberAccess.ts | 1 + tests/cases/compiler/emptyModuleName.ts | 1 + ...ubtypeOfIndexSignatureContainingObject1.ts | 1 + ...ubtypeOfIndexSignatureContainingObject2.ts | 1 + ...nalBindingPatternInDeclarationSignature.ts | 1 + tests/cases/compiler/emptyThenWarning.ts | 1 + .../cases/compiler/emptyThenWithoutWarning.ts | 1 + tests/cases/compiler/emptyTypeArgumentList.ts | 1 + .../compiler/emptyTypeArgumentListWithNew.ts | 1 + ...AssignmentDefineProperrtyPotentialMerge.ts | 1 + tests/cases/compiler/enumAssignmentCompat.ts | 1 + tests/cases/compiler/enumAssignmentCompat2.ts | 1 + tests/cases/compiler/enumAssignmentCompat3.ts | 1 + tests/cases/compiler/enumAssignmentCompat4.ts | 1 + tests/cases/compiler/enumAssignmentCompat5.ts | 1 + tests/cases/compiler/enumAssignmentCompat6.ts | 1 + tests/cases/compiler/enumAssignmentCompat7.ts | 1 + tests/cases/compiler/enumBasics1.ts | 1 + tests/cases/compiler/enumBasics2.ts | 1 + tests/cases/compiler/enumBasics3.ts | 1 + tests/cases/compiler/enumCodeGenNewLines1.ts | 1 + .../enumConflictsWithGlobalIdentifier.ts | 1 + tests/cases/compiler/enumDecl1.ts | 1 + ...enumDeclarationEmitInitializerHasImport.ts | 2 + .../cases/compiler/enumFromExternalModule.ts | 1 + tests/cases/compiler/enumGenericTypeClash.ts | 1 + .../cases/compiler/enumIdentifierLiterals.ts | 1 + tests/cases/compiler/enumIndexer.ts | 1 + .../compiler/enumInitializersWithExponents.ts | 1 + ...otedAsObjectPropertiesInDeclarationEmit.ts | 1 + .../enumLiteralAssignableToEnumInsideUnion.ts | 1 + .../compiler/enumLiteralUnionNotWidened.ts | 1 + .../compiler/enumLiteralsSubtypeReduction.ts | 1 + tests/cases/compiler/enumMapBackIntoItself.ts | 1 + tests/cases/compiler/enumMemberReduction.ts | 1 + tests/cases/compiler/enumMemberResolution.ts | 1 + tests/cases/compiler/enumNegativeLiteral1.ts | 1 + ...InitializerFollowsNonLiteralInitializer.ts | 1 + tests/cases/compiler/enumNumbering1.ts | 1 + tests/cases/compiler/enumOperations.ts | 1 + tests/cases/compiler/enumPropertyAccess.ts | 1 + .../enumPropertyAccessBeforeInitalisation.ts | 1 + .../compiler/enumUsedBeforeDeclaration.ts | 3 +- tests/cases/compiler/enumWithBigint.ts | 1 + .../cases/compiler/enumWithComputedMember.ts | 1 + tests/cases/compiler/enumWithExport.ts | 1 + .../compiler/enumWithInfinityProperty.ts | 1 + tests/cases/compiler/enumWithNaNProperty.ts | 1 + .../enumWithNegativeInfinityProperty.ts | 1 + .../enumWithNonLiteralStringInitializer.ts | 1 + .../enumWithParenthesizedInitializer1.ts | 1 + tests/cases/compiler/enumWithPrimitiveName.ts | 1 + .../compiler/enumWithQuotedElementName1.ts | 1 + .../compiler/enumWithQuotedElementName2.ts | 1 + .../cases/compiler/enumWithUnicodeEscape1.ts | 1 + ...umWithoutInitializerAfterComputedMember.ts | 1 + .../enumsWithMultipleDeclarations1.ts | 1 + .../enumsWithMultipleDeclarations2.ts | 1 + .../enumsWithMultipleDeclarations3.ts | 1 + tests/cases/compiler/erasableSyntaxOnly.ts | 2 + tests/cases/compiler/erasableSyntaxOnly2.ts | 1 + .../compiler/erasableSyntaxOnlyDeclaration.ts | 1 + .../compiler/errorConstructorSubtypes.ts | 1 + tests/cases/compiler/errorElaboration.ts | 1 + ...tionDivesIntoApparentlyPresentPropsOnly.ts | 1 + ...ecifierWithImplicitModuleResolutionNone.ts | 1 + .../errorForConflictingExportEqualsValue.ts | 2 + .../errorForUsingPropertyOfTypeAsType01.ts | 1 + .../errorForUsingPropertyOfTypeAsType02.ts | 1 + .../errorForUsingPropertyOfTypeAsType03.ts | 1 + ...rorForwardReferenceForwadingConstructor.ts | 1 + .../compiler/errorHandlingInInstanceOf.ts | 1 + .../compiler/errorInUnnamedClassExpression.ts | 1 + ...elatedIndexTypesNoConstraintElaboration.ts | 1 + .../errorLocationForInterfaceExtension.ts | 1 + ...ssageOnIntersectionsWithDiscriminants01.ts | 1 + .../errorMessageOnObjectLiteralType.ts | 1 + .../errorMessagesIntersectionTypes01.ts | 1 + .../errorMessagesIntersectionTypes02.ts | 1 + .../errorMessagesIntersectionTypes03.ts | 1 + .../errorMessagesIntersectionTypes04.ts | 1 + .../errorOnContextuallyTypedReturnType.ts | 1 + .../errorOnEnumReferenceInCondition.ts | 1 + .../errorOnInitializerInInterfaceProperty.ts | 1 + ...nInitializerInObjectTypeLiteralProperty.ts | 1 + ...OnUnionVsObjectShouldDeeplyDisambiguate.ts | 1 + ...nUnionVsObjectShouldDeeplyDisambiguate2.ts | 1 + .../errorRecoveryInClassDeclaration.ts | 3 +- ...coveryWithDotFollowedByNamespaceKeyword.ts | 1 + .../compiler/errorSpanForUnclosedJsxTag.tsx | 1 + tests/cases/compiler/errorSupression1.ts | 1 + .../compiler/errorTypesAsTypeArguments.ts | 1 + tests/cases/compiler/errorWithSameNameType.ts | 1 + .../cases/compiler/errorWithTruncatedType.ts | 1 + .../errorsForCallAndAssignmentAreSimilar.ts | 1 + .../compiler/errorsInGenericTypeReference.ts | 1 + .../errorsOnUnionsOfOverlappingObjects01.ts | 1 + .../errorsWithInvokablesInUnions01.ts | 1 + .../cases/compiler/es6ClassSuperCodegenBug.ts | 1 + tests/cases/compiler/es6ClassTest.ts | 1 + tests/cases/compiler/es6ClassTest2.ts | 1 + tests/cases/compiler/es6ClassTest3.ts | 1 + tests/cases/compiler/es6ClassTest4.ts | 1 + tests/cases/compiler/es6ClassTest5.ts | 1 + tests/cases/compiler/es6ClassTest7.ts | 1 + tests/cases/compiler/es6ClassTest8.ts | 1 + tests/cases/compiler/es6ClassTest9.ts | 1 + tests/cases/compiler/es6DeclOrdering.ts | 1 + .../cases/compiler/es6ExportEqualsInterop.ts | 1 + ...efaultBindingFollowedWithNamedImportDts.ts | 1 + ...tBindingFollowedWithNamespaceBindingDts.ts | 1 + ...gFollowedWithNamespaceBindingWithExport.ts | 1 + ...s6ImportDefaultBindingNoDefaultProperty.ts | 1 + ...s6ImportEqualsExportModuleCommonJsError.ts | 1 + .../es6ImportEqualsExportModuleEs2015Error.ts | 1 + .../compiler/es6ImportNameSpaceImportAmd.ts | 1 + .../compiler/es6ImportNameSpaceImportDts.ts | 1 + .../es6ImportNameSpaceImportWithExport.ts | 1 + .../cases/compiler/es6ImportNamedImportAmd.ts | 1 + .../cases/compiler/es6ImportNamedImportDts.ts | 1 + ...rtNamedImportInIndirectExportAssignment.ts | 1 + .../es6ImportNamedImportMergeErrors.ts | 1 + .../es6ImportNamedImportNoExportMember.ts | 1 + .../es6ImportNamedImportWithExport.ts | 1 + .../es6ImportNamedImportWithTypesAndValues.ts | 1 + .../cases/compiler/es6ImportWithJsDocTags.ts | 1 + .../compiler/es6ImportWithoutFromClauseAmd.ts | 1 + .../es6ImportWithoutFromClauseWithExport.ts | 1 + tests/cases/compiler/es6MemberScoping.ts | 1 + tests/cases/compiler/esModuleInterop.ts | 1 + .../compiler/esModuleInteropDefaultImports.ts | 2 + ...tMemberMustBeSyntacticallyDefaultExport.ts | 1 + ...leInteropEnablesSyntheticDefaultImports.ts | 1 + .../compiler/esModuleInteropImportCall.ts | 2 + ...mportDefaultWhenAllNamedAreDefaultAlias.ts | 1 + .../esModuleInteropImportNamespace.ts | 1 + .../esModuleInteropNamedDefaultImports.ts | 1 + ...uleInteropPrettyErrorRelatedInformation.ts | 1 + .../compiler/esModuleInteropTslibHelpers.ts | 2 + ...teropUsesExportStarWhenDefaultPlusNames.ts | 1 + .../compiler/esModuleIntersectionCrash.ts | 1 + tests/cases/compiler/escapedIdentifiers.ts | 1 + .../escapedReservedCompilerNamedIdentifier.ts | 1 + tests/cases/compiler/evalAfter0.ts | 1 + .../evalOrArgumentsInDeclarationFunctions.ts | 1 + ...eventEmitterPatternWithRecordOfFunction.ts | 1 + .../compiler/evolvingArrayResolvedAssert.ts | 1 + .../compiler/evolvingArrayTypeInAssert.ts | 1 + .../exactOptionalPropertyTypesIdentical.ts | 1 + .../cases/compiler/exactSpellingSuggestion.ts | 1 + .../compiler/excessPropertiesInOverloads.ts | 1 + ...ertyCheckIntersectionWithIndexSignature.ts | 1 + ...pertyCheckIntersectionWithRecursiveType.ts | 1 + .../excessPropertyCheckWithEmptyObject.ts | 1 + ...sPropertyCheckWithMultipleDiscriminants.ts | 1 + ...ropertyCheckWithNestedArrayIntersection.ts | 1 + .../compiler/excessPropertyCheckWithSpread.ts | 1 + .../compiler/excessPropertyCheckWithUnions.ts | 1 + ...ertyCheckingIntersectionWithConditional.ts | 1 + ...ssPropertyChecksWithNestedIntersections.ts | 1 + .../excessPropertyErrorForFunctionTypes.ts | 1 + .../excessPropertyErrorsSuppressed.ts | 3 +- .../compiler/excessiveStackDepthFlatArray.ts | 1 + .../compiler/excessivelyLargeTupleSpread.ts | 1 + .../exhaustiveSwitchCheckCircularity.ts | 1 + .../exhaustiveSwitchImplicitReturn.ts | 1 + ...xhaustiveSwitchWithWideningLiteralTypes.ts | 1 + .../compiler/expandoFunctionBlockShadowing.ts | 1 + .../expandoFunctionContextualTypes.ts | 1 + ...expandoFunctionContextualTypesJSDocInTs.ts | 1 + .../expandoFunctionContextualTypesJs.ts | 1 + .../expandoFunctionContextualTypesNoValue.ts | 1 + ...andoFunctionExpressionsWithDynamicNames.ts | 1 + ...ndoFunctionExpressionsWithDynamicNames2.ts | 1 + .../expandoFunctionNestedAssigments.ts | 1 + ...expandoFunctionNestedAssigmentsDeclared.ts | 1 + .../expandoFunctionSymbolPropertyJs.ts | 1 + ...ratorMetadataUnresolvedTypeObjectInEmit.ts | 1 + ...xplicitAnyAfterSpreadNoImplicitAnyError.ts | 1 + tests/cases/compiler/exportAlreadySeen.ts | 1 + .../compiler/exportArrayBindingPattern.ts | 1 + tests/cases/compiler/exportAsNamespace.d.ts | 1 + .../compiler/exportAsNamespaceConflict.ts | 1 + .../compiler/exportAsNamespace_augment.ts | 1 + .../compiler/exportAssignClassAndModule.ts | 1 + .../compiler/exportAssignValueAndType.ts | 1 + ...gnedNamespaceIsVisibleInDeclarationEmit.ts | 1 + .../exportAssignedTypeAsTypeAnnotation.ts | 1 + tests/cases/compiler/exportAssignmentClass.ts | 1 + tests/cases/compiler/exportAssignmentEnum.ts | 1 + tests/cases/compiler/exportAssignmentError.ts | 1 + ...ortAssignmentExpressionIsExpressionNode.ts | 1 + .../compiler/exportAssignmentFunction.ts | 1 + .../exportAssignmentImportMergeNoCrash.ts | 1 + .../compiler/exportAssignmentInterface.ts | 1 + .../exportAssignmentInternalModule.ts | 1 + ...tAssignmentMembersVisibleInAugmentation.ts | 1 + ...xportAssignmentOfDeclaredExternalModule.ts | 1 + .../exportAssignmentOfGenericType1.ts | 1 + .../compiler/exportAssignmentVariable.ts | 1 + ...AssignmentWithDeclareAndExportModifiers.ts | 3 +- .../exportAssignmentWithDeclareModifier.ts | 3 +- .../exportAssignmentWithExportModifier.ts | 3 +- .../compiler/exportAssignmentWithExports.ts | 1 + ...signmentWithImportStatementPrivacyError.ts | 1 + .../exportAssignmentWithPrivacyError.ts | 1 + ...ithoutAllowSyntheticDefaultImportsError.ts | 1 + .../exportAssignmentWithoutIdentifier1.ts | 1 + .../exportClassExtendingIntersection.ts | 1 + ...ationWithModuleSpecifierNameOnNextLine1.ts | 1 + .../exportDeclarationsInAmbientNamespaces.ts | 1 + .../exportDeclarationsInAmbientNamespaces2.ts | 1 + tests/cases/compiler/exportDeclareClass1.ts | 1 + .../compiler/exportDefaultAbstractClass.ts | 1 + .../exportDefaultAlias_excludesEverything.ts | 1 + .../compiler/exportDefaultClassAndValue.ts | 1 + .../compiler/exportDefaultClassInNamespace.ts | 1 + .../compiler/exportDefaultDuplicateCrash.ts | 1 + .../exportDefaultFunctionInNamespace.ts | 1 + .../compiler/exportDefaultImportedType.ts | 1 + .../cases/compiler/exportDefaultInterface.ts | 1 + ...ortDefaultInterfaceAndFunctionOverloads.ts | 1 + .../exportDefaultInterfaceAndTwoFunctions.ts | 1 + .../exportDefaultInterfaceAndValue.ts | 1 + ...faultInterfaceClassAndFunctionOverloads.ts | 1 + .../exportDefaultInterfaceClassAndValue.ts | 1 + .../compiler/exportDefaultMissingName.ts | 1 + tests/cases/compiler/exportDefaultProperty.ts | 1 + .../cases/compiler/exportDefaultProperty2.ts | 1 + .../exportDefaultQualifiedNameNoError.ts | 1 + .../compiler/exportDefaultStripsFreshness.ts | 1 + .../compiler/exportDefaultTypeAndClass.ts | 1 + .../exportDefaultTypeAndFunctionOverloads.ts | 1 + .../exportDefaultTypeClassAndValue.ts | 1 + tests/cases/compiler/exportDefaultVariable.ts | 1 + .../cases/compiler/exportDefaultWithJSDoc1.ts | 1 + .../cases/compiler/exportDefaultWithJSDoc2.ts | 1 + tests/cases/compiler/exportEqualCallable.ts | 1 + tests/cases/compiler/exportEqualErrorType.ts | 1 + .../compiler/exportEqualMemberMissing.ts | 1 + tests/cases/compiler/exportEqualNamespaces.ts | 1 + tests/cases/compiler/exportEqualsAmd.ts | 1 + tests/cases/compiler/exportEqualsCommonJs.ts | 1 + .../compiler/exportEqualsDefaultProperty.ts | 2 + tests/cases/compiler/exportEqualsOfModule.ts | 1 + tests/cases/compiler/exportEqualsProperty.ts | 2 + tests/cases/compiler/exportEqualsProperty2.ts | 2 + tests/cases/compiler/exportEqualsUmd.ts | 1 + tests/cases/compiler/exportImport.ts | 1 + .../cases/compiler/exportImportAndClodule.ts | 1 + .../compiler/exportImportMultipleFiles.ts | 1 + .../exportImportNonInstantiatedModule.ts | 1 + .../exportImportNonInstantiatedModule2.ts | 1 + tests/cases/compiler/exportInFunction.ts | 1 + .../compiler/exportInterfaceClassAndValue.ts | 1 + ...ClassAndValueWithDuplicatesInImportList.ts | 1 + ...rtNamespaceDeclarationRetainsVisibility.ts | 2 + tests/cases/compiler/exportPrivateType.ts | 1 + .../exportRedeclarationTypeAliases.ts | 1 + tests/cases/compiler/exportSameNameFuncVar.ts | 1 + ...rtSpecifierAndExportedMemberDeclaration.ts | 1 + ...xportSpecifierAndLocalMemberDeclaration.ts | 1 + .../compiler/exportSpecifierForAGlobal.ts | 1 + ...rtSpecifierReferencingOuterDeclaration1.ts | 1 + ...rtSpecifierReferencingOuterDeclaration2.ts | 1 + ...rtSpecifierReferencingOuterDeclaration3.ts | 1 + ...rtSpecifierReferencingOuterDeclaration4.ts | 1 + tests/cases/compiler/exportStarForValues.ts | 1 + tests/cases/compiler/exportStarForValues10.ts | 1 + tests/cases/compiler/exportStarForValues2.ts | 1 + tests/cases/compiler/exportStarForValues3.ts | 1 + tests/cases/compiler/exportStarForValues4.ts | 1 + tests/cases/compiler/exportStarForValues5.ts | 1 + tests/cases/compiler/exportStarForValues6.ts | 1 + tests/cases/compiler/exportStarForValues7.ts | 1 + tests/cases/compiler/exportStarForValues8.ts | 1 + tests/cases/compiler/exportStarForValues9.ts | 1 + .../compiler/exportStarForValuesInSystem.ts | 1 + tests/cases/compiler/exportStarNotElided.ts | 1 + tests/cases/compiler/exportToString.ts | 1 + .../exportTwoInterfacesWithSameName.ts | 1 + tests/cases/compiler/exportVisibility.ts | 1 + .../exportedBlockScopedDeclarations.ts | 1 + ...InterfaceInaccessibleInCallbackInModule.ts | 1 + tests/cases/compiler/exportedVariable1.ts | 1 + .../exportingContainingVisibleType.ts | 1 + .../compiler/exportsInAmbientModules1.ts | 1 + .../compiler/exportsInAmbientModules2.ts | 1 + tests/cases/compiler/expr.ts | 1 + .../compiler/expressionTypeNodeShouldError.ts | 1 + .../expressionWithJSDocTypeArguments.ts | 1 + ...essionsForbiddenInParameterInitializers.ts | 2 + tests/cases/compiler/extBaseClass1.ts | 1 + tests/cases/compiler/extBaseClass2.ts | 1 + .../extendAndImplementTheSameBaseType.ts | 1 + .../extendAndImplementTheSameBaseType2.ts | 1 + tests/cases/compiler/extendArray.ts | 1 + .../extendBaseClassBeforeItsDeclared.ts | 1 + .../extendConstructSignatureInInterface.ts | 1 + tests/cases/compiler/extendFromAny.ts | 1 + tests/cases/compiler/extendGenericArray.ts | 1 + tests/cases/compiler/extendGenericArray2.ts | 1 + tests/cases/compiler/extendGlobalThis.ts | 1 + tests/cases/compiler/extendGlobalThis2.ts | 1 + tests/cases/compiler/extendNonClassSymbol1.ts | 1 + tests/cases/compiler/extendNonClassSymbol2.ts | 1 + .../compiler/extendPrivateConstructorClass.ts | 1 + .../compiler/extendedInterfaceGenericType.ts | 1 + ...edInterfacesWithDuplicateTypeParameters.ts | 1 + ...xtendingClassFromAliasAndUsageInIndexer.ts | 1 + .../cases/compiler/extendingSetWithCheckJs.ts | 1 + .../compiler/extendsClauseAlreadySeen.ts | 1 + .../compiler/extendsClauseAlreadySeen2.ts | 1 + tests/cases/compiler/extendsJavaScript.ts | 1 + tests/cases/compiler/extendsUntypedModule.ts | 1 + tests/cases/compiler/extension.ts | 1 + tests/cases/compiler/externFunc.ts | 1 + tests/cases/compiler/externModule.ts | 1 + tests/cases/compiler/externModuleClobber.ts | 1 + tests/cases/compiler/externSemantics.ts | 1 + tests/cases/compiler/externSyntax.ts | 1 + .../compiler/externalModuleAssignToVar.ts | 1 + .../externalModuleExportingGenericClass.ts | 1 + .../externalModuleImmutableBindings.ts | 1 + .../compiler/externalModuleQualification.ts | 1 + ...xternalModuleReferenceDoubleUnderscore1.ts | 1 + ...ceOfImportDeclarationWithExportModifier.ts | 1 + ...ernceResolutionOrderInImportDeclaration.ts | 1 + .../compiler/externalModuleResolution.ts | 1 + .../compiler/externalModuleResolution2.ts | 1 + .../externalModuleWithoutCompilerFlag1.ts | 1 + tests/cases/compiler/fakeInfinity1.ts | 1 + tests/cases/compiler/fakeInfinity2.ts | 1 + tests/cases/compiler/fakeInfinity3.ts | 1 + tests/cases/compiler/fallFromLastCase1.ts | 1 + tests/cases/compiler/fallFromLastCase2.ts | 1 + ...allbackToBindingPatternForTypeInference.ts | 1 + tests/cases/compiler/fatArrowSelf.ts | 1 + .../cases/compiler/fatArrowfunctionAsType.ts | 1 + tests/cases/compiler/fatarrowfunctions.ts | 1 + .../cases/compiler/fatarrowfunctionsErrors.ts | 1 + ...rowfunctionsInFunctionParameterDefaults.ts | 1 + .../compiler/fatarrowfunctionsInFunctions.ts | 1 + .../compiler/fatarrowfunctionsOptionalArgs.ts | 3 +- .../fatarrowfunctionsOptionalArgsErrors1.ts | 1 + .../fatarrowfunctionsOptionalArgsErrors2.ts | 1 + .../fatarrowfunctionsOptionalArgsErrors3.ts | 1 + .../fatarrowfunctionsOptionalArgsErrors4.ts | 1 + .../compiler/fieldAndGetterWithSameName.ts | 1 + .../fileReferencesWithNoExtensions.ts | 1 + tests/cases/compiler/fileWithNextLine1.ts | 3 +- tests/cases/compiler/fileWithNextLine2.ts | 3 +- tests/cases/compiler/fileWithNextLine3.ts | 3 +- .../compiler/filesEmittingIntoSameOutput.ts | 1 + ...ilesEmittingIntoSameOutputWithOutOption.ts | 1 + .../fillInMissingTypeArgsOnConstructCalls.ts | 1 + ...fillInMissingTypeArgsOnJSConstructCalls.ts | 1 + .../compiler/firstMatchRegExpMatchArray.ts | 1 + .../fixCrashAliasLookupForDefauledImport.ts | 1 + ...eParameterInSignatureWithRestParameters.ts | 1 + .../fixingTypeParametersRepeatedly1.ts | 1 + .../fixingTypeParametersRepeatedly2.ts | 1 + .../fixingTypeParametersRepeatedly3.ts | 1 + tests/cases/compiler/flowAfterFinally1.ts | 1 + .../flowControlTypeGuardThenSwitch.ts | 1 + tests/cases/compiler/flowInFinally1.ts | 1 + tests/cases/compiler/for.ts | 1 + tests/cases/compiler/forIn.ts | 1 + tests/cases/compiler/forIn2.ts | 1 + tests/cases/compiler/forInModule.ts | 1 + tests/cases/compiler/forInStatement1.ts | 1 + tests/cases/compiler/forInStatement2.ts | 1 + tests/cases/compiler/forInStatement3.ts | 1 + tests/cases/compiler/forInStatement4.ts | 1 + tests/cases/compiler/forInStatement5.ts | 1 + tests/cases/compiler/forInStatement6.ts | 1 + tests/cases/compiler/forInStatement7.ts | 1 + .../compiler/forInStrictNullChecksNoError.ts | 1 + .../forLoopEndingMultilineComments.ts | 1 + ...ructuringDoesNotElideFollowingStatement.ts | 1 + .../cases/compiler/forOfStringConstituents.ts | 1 + .../compiler/forOfTransformsExpression.ts | 1 + .../compiler/forwardRefInClassProperties.ts | 1 + tests/cases/compiler/forwardRefInEnum.ts | 1 + .../compiler/forwardRefInTypeDeclaration.ts | 1 + tests/cases/compiler/freshLiteralInference.ts | 1 + .../freshLiteralTypesInIntersections.ts | 1 + tests/cases/compiler/fromAsIdentifier1.ts | 1 + tests/cases/compiler/fromAsIdentifier2.ts | 1 + tests/cases/compiler/funClodule.ts | 1 + tests/cases/compiler/funcdecl.ts | 1 + .../compiler/functionAndImportNameConflict.ts | 1 + .../functionAndInterfaceWithSeparateErrors.ts | 3 +- .../functionAndPropertyNameConflict.ts | 1 + tests/cases/compiler/functionArgShadowing.ts | 1 + .../functionAssignabilityWithArrayLike01.ts | 1 + tests/cases/compiler/functionAssignment.ts | 1 + .../cases/compiler/functionAssignmentError.ts | 1 + tests/cases/compiler/functionCall1.ts | 1 + tests/cases/compiler/functionCall10.ts | 1 + tests/cases/compiler/functionCall11.ts | 1 + tests/cases/compiler/functionCall12.ts | 1 + tests/cases/compiler/functionCall13.ts | 1 + tests/cases/compiler/functionCall14.ts | 1 + tests/cases/compiler/functionCall15.ts | 1 + tests/cases/compiler/functionCall16.ts | 1 + tests/cases/compiler/functionCall17.ts | 1 + tests/cases/compiler/functionCall18.ts | 1 + tests/cases/compiler/functionCall2.ts | 1 + tests/cases/compiler/functionCall3.ts | 1 + tests/cases/compiler/functionCall4.ts | 1 + tests/cases/compiler/functionCall5.ts | 1 + tests/cases/compiler/functionCall6.ts | 1 + tests/cases/compiler/functionCall7.ts | 1 + tests/cases/compiler/functionCall8.ts | 1 + tests/cases/compiler/functionCall9.ts | 1 + .../functionCallOnConstrainedTypeVariable.ts | 1 + ...tionWithArgumentOfTypeFunctionTypeArray.ts | 1 + ...ionWithResolutionOfTypeNamedArguments01.ts | 3 +- ...arationWithResolutionOfTypeOfSameName01.ts | 3 +- ...ctionExpressionAndLambdaMatchesFunction.ts | 1 + .../compiler/functionExpressionInWithBlock.ts | 1 + .../cases/compiler/functionExpressionNames.ts | 1 + .../functionExpressionReturningItself.ts | 1 + .../functionExpressionShadowedByParams.ts | 1 + ...ionWithResolutionOfTypeNamedArguments01.ts | 3 +- ...ressionWithResolutionOfTypeOfSameName01.ts | 3 +- ...ressionWithResolutionOfTypeOfSameName02.ts | 3 +- .../compiler/functionInIfStatementInModule.ts | 1 + .../functionLikeInParameterInitializer.ts | 1 + .../compiler/functionMergedWithModule.ts | 1 + tests/cases/compiler/functionOnlyHasThrow.ts | 1 + .../compiler/functionOverloadAmbiguity1.ts | 1 + ...nctionOverloadImplementationOfWrongName.ts | 1 + ...ctionOverloadImplementationOfWrongName2.ts | 1 + tests/cases/compiler/functionOverloads.ts | 1 + tests/cases/compiler/functionOverloads1.ts | 1 + tests/cases/compiler/functionOverloads10.ts | 1 + tests/cases/compiler/functionOverloads11.ts | 1 + tests/cases/compiler/functionOverloads12.ts | 1 + tests/cases/compiler/functionOverloads13.ts | 1 + tests/cases/compiler/functionOverloads14.ts | 1 + tests/cases/compiler/functionOverloads15.ts | 1 + tests/cases/compiler/functionOverloads16.ts | 1 + tests/cases/compiler/functionOverloads17.ts | 1 + tests/cases/compiler/functionOverloads18.ts | 1 + tests/cases/compiler/functionOverloads19.ts | 1 + tests/cases/compiler/functionOverloads2.ts | 1 + tests/cases/compiler/functionOverloads20.ts | 1 + tests/cases/compiler/functionOverloads21.ts | 1 + tests/cases/compiler/functionOverloads22.ts | 1 + tests/cases/compiler/functionOverloads23.ts | 1 + tests/cases/compiler/functionOverloads24.ts | 1 + tests/cases/compiler/functionOverloads25.ts | 1 + tests/cases/compiler/functionOverloads26.ts | 1 + tests/cases/compiler/functionOverloads27.ts | 1 + tests/cases/compiler/functionOverloads28.ts | 1 + tests/cases/compiler/functionOverloads29.ts | 1 + tests/cases/compiler/functionOverloads3.ts | 1 + tests/cases/compiler/functionOverloads30.ts | 1 + tests/cases/compiler/functionOverloads31.ts | 1 + tests/cases/compiler/functionOverloads32.ts | 1 + tests/cases/compiler/functionOverloads33.ts | 1 + tests/cases/compiler/functionOverloads34.ts | 1 + tests/cases/compiler/functionOverloads35.ts | 1 + tests/cases/compiler/functionOverloads36.ts | 1 + tests/cases/compiler/functionOverloads37.ts | 1 + tests/cases/compiler/functionOverloads38.ts | 1 + tests/cases/compiler/functionOverloads39.ts | 1 + tests/cases/compiler/functionOverloads4.ts | 1 + tests/cases/compiler/functionOverloads40.ts | 1 + tests/cases/compiler/functionOverloads41.ts | 1 + tests/cases/compiler/functionOverloads42.ts | 1 + tests/cases/compiler/functionOverloads43.ts | 1 + tests/cases/compiler/functionOverloads44.ts | 1 + tests/cases/compiler/functionOverloads45.ts | 1 + tests/cases/compiler/functionOverloads5.ts | 1 + tests/cases/compiler/functionOverloads6.ts | 1 + tests/cases/compiler/functionOverloads7.ts | 1 + tests/cases/compiler/functionOverloads8.ts | 1 + tests/cases/compiler/functionOverloads9.ts | 1 + .../functionOverloadsOnGenericArity1.ts | 1 + .../functionOverloadsOnGenericArity2.ts | 1 + .../compiler/functionOverloadsOutOfOrder.ts | 1 + ...tionOverloadsRecursiveGenericReturnType.ts | 1 + .../functionParameterArityMismatch.ts | 1 + tests/cases/compiler/functionReturn.ts | 1 + .../cases/compiler/functionReturnTypeQuery.ts | 1 + .../cases/compiler/functionReturningItself.ts | 1 + .../functionSignatureAssignmentCompat1.ts | 1 + .../compiler/functionSubtypingOfVarArgs.ts | 1 + .../compiler/functionSubtypingOfVarArgs2.ts | 1 + .../functionToFunctionWithPropError.ts | 1 + tests/cases/compiler/functionType.ts | 1 + .../functionTypeArgumentArityErrors.ts | 1 + .../functionTypeArgumentArrayAssignment.ts | 1 + .../functionTypeArgumentAssignmentCompat.ts | 1 + .../functionTypesLackingReturnTypes.ts | 1 + .../functionVariableInReturnTypeAnnotation.ts | 1 + ...nWithAnyReturnTypeAndNoReturnExpression.ts | 1 + ...onWithDefaultParameterWithNoStatements1.ts | 1 + ...nWithDefaultParameterWithNoStatements10.ts | 1 + ...nWithDefaultParameterWithNoStatements11.ts | 1 + ...nWithDefaultParameterWithNoStatements12.ts | 1 + ...nWithDefaultParameterWithNoStatements13.ts | 1 + ...nWithDefaultParameterWithNoStatements14.ts | 1 + ...nWithDefaultParameterWithNoStatements15.ts | 1 + ...nWithDefaultParameterWithNoStatements16.ts | 1 + ...onWithDefaultParameterWithNoStatements2.ts | 1 + ...onWithDefaultParameterWithNoStatements3.ts | 1 + ...onWithDefaultParameterWithNoStatements4.ts | 1 + ...onWithDefaultParameterWithNoStatements5.ts | 1 + ...onWithDefaultParameterWithNoStatements6.ts | 1 + ...onWithDefaultParameterWithNoStatements7.ts | 1 + ...onWithDefaultParameterWithNoStatements8.ts | 1 + ...onWithDefaultParameterWithNoStatements9.ts | 1 + .../compiler/functionWithNoBestCommonType1.ts | 1 + .../compiler/functionWithNoBestCommonType2.ts | 1 + .../compiler/functionWithSameNameAsField.ts | 1 + .../compiler/functionWithThrowButNoReturn1.ts | 1 + .../compiler/functionsInClassExpressions.ts | 1 + ...ImplicitReturnTypeAssignableToUndefined.ts | 1 + .../functionsWithModifiersInBlocks1.ts | 1 + ...uleExportedClassIsUsedBeforeDeclaration.ts | 1 + ...leOfFunctionWithoutReturnTypeAnnotation.ts | 1 + .../cases/compiler/funduleSplitAcrossFiles.ts | 1 + .../compiler/funduleUsedAcrossFileBoundary.ts | 1 + tests/cases/compiler/fuzzy.ts | 1 + .../compiler/generativeRecursionWithTypeOf.ts | 1 + ...genericAndNonGenericInheritedSignature1.ts | 1 + ...genericAndNonGenericInheritedSignature2.ts | 1 + .../compiler/genericAndNonGenericOverload1.ts | 1 + .../genericArgumentCallSigAssignmentCompat.ts | 1 + tests/cases/compiler/genericArray0.ts | 1 + tests/cases/compiler/genericArray1.ts | 1 + .../cases/compiler/genericArrayAssignment1.ts | 1 + .../genericArrayAssignmentCompatErrors.ts | 1 + .../cases/compiler/genericArrayExtenstions.ts | 1 + tests/cases/compiler/genericArrayMethods1.ts | 3 +- .../genericArrayPropertyAssignment.ts | 1 + .../genericArrayWithoutTypeAnnotation.ts | 1 + ...icAssignmentCompatOfFunctionSignatures1.ts | 1 + .../genericAssignmentCompatWithInterfaces1.ts | 1 + .../genericBaseClassLiteralProperty.ts | 1 + .../genericBaseClassLiteralProperty2.ts | 1 + .../genericCallInferenceConditionalType1.ts | 1 + .../genericCallInferenceConditionalType2.ts | 1 + ...genericCallInferenceInConditionalTypes1.ts | 1 + ...idCacheReuseAfterMappedTypeApplication1.ts | 1 + ...icCallInferenceWithGenericLocalFunction.ts | 1 + ...icCallOnMemberReturningClosedOverObject.ts | 1 + .../genericCallSpecializedToTypeArg.ts | 1 + .../compiler/genericCallWithFixedArguments.ts | 1 + .../genericCallWithNonGenericArgs1.ts | 1 + .../genericCallWithObjectLiteralArguments1.ts | 1 + ...lWithinOwnBodyCastTypeParameterIdentity.ts | 1 + .../cases/compiler/genericCallWithoutArgs.ts | 1 + ...backInvokedInsideItsContainingFunction1.ts | 1 + .../genericCallbacksAndClassHierarchy.ts | 1 + .../genericCapturingFunctionNarrowing.ts | 1 + tests/cases/compiler/genericChainedCalls.ts | 1 + ...entingGenericInterfaceFromAnotherModule.ts | 1 + ...sInheritsConstructorFromNonGenericClass.ts | 1 + ...cClassPropertyInheritanceSpecialization.ts | 1 + .../compiler/genericClassStaticMethod.ts | 1 + .../compiler/genericClassWithStaticFactory.ts | 1 + ...nericClassWithStaticsUsingTypeArguments.ts | 1 + tests/cases/compiler/genericClasses0.ts | 1 + tests/cases/compiler/genericClasses1.ts | 1 + tests/cases/compiler/genericClasses2.ts | 1 + tests/cases/compiler/genericClasses3.ts | 1 + tests/cases/compiler/genericClasses4.ts | 1 + .../cases/compiler/genericClassesInModule.ts | 1 + .../cases/compiler/genericClassesInModule2.ts | 1 + .../compiler/genericClassesRedeclaration.ts | 1 + .../cases/compiler/genericCloduleInModule.ts | 1 + .../cases/compiler/genericCloduleInModule2.ts | 1 + .../cases/compiler/genericCloneReturnTypes.ts | 1 + .../compiler/genericCloneReturnTypes2.ts | 1 + tests/cases/compiler/genericCombinators2.ts | 1 + ...dToUnknownNotAssignableToConcreteObject.ts | 1 + tests/cases/compiler/genericConstraint1.ts | 1 + tests/cases/compiler/genericConstraint2.ts | 1 + tests/cases/compiler/genericConstraint3.ts | 1 + .../compiler/genericConstraintDeclaration.ts | 3 +- ...genericConstraintOnExtendedBuiltinTypes.ts | 1 + ...enericConstraintOnExtendedBuiltinTypes2.ts | 1 + .../genericConstraintSatisfaction1.ts | 1 + ...genericConstructInvocationWithNoTypeArg.ts | 1 + .../genericConstructSignatureInInterface.ts | 1 + .../compiler/genericConstructorFunction1.ts | 1 + .../genericContextualTypingSpecialization.ts | 1 + tests/cases/compiler/genericDefaults.ts | 1 + tests/cases/compiler/genericDefaultsErrors.ts | 1 + tests/cases/compiler/genericDefaultsJs.ts | 1 + .../genericDerivedTypeWithSpecializedBase.ts | 1 + .../genericDerivedTypeWithSpecializedBase2.ts | 1 + ...FunctionCallSignatureReturnTypeMismatch.ts | 1 + .../genericFunctionHasFreshTypeArgs.ts | 1 + .../compiler/genericFunctionInference2.ts | 1 + .../genericFunctionSpecializations1.ts | 1 + .../genericFunctionTypedArgumentsAreFixed.ts | 1 + tests/cases/compiler/genericFunctions0.ts | 1 + tests/cases/compiler/genericFunctions1.ts | 1 + tests/cases/compiler/genericFunctions2.ts | 1 + tests/cases/compiler/genericFunctions3.ts | 1 + ...genericFunctionsAndConditionalInference.ts | 1 + .../genericFunctionsNotContextSensitive.ts | 1 + ...genericFunctionsWithOptionalParameters1.ts | 1 + ...genericFunctionsWithOptionalParameters2.ts | 1 + ...genericFunctionsWithOptionalParameters3.ts | 1 + .../cases/compiler/genericFunduleInModule.ts | 1 + .../cases/compiler/genericFunduleInModule2.ts | 1 + tests/cases/compiler/genericGetter.ts | 1 + tests/cases/compiler/genericGetter2.ts | 1 + tests/cases/compiler/genericGetter3.ts | 1 + tests/cases/compiler/genericImplements.ts | 1 + ...genericIndexTypeHasSensibleErrorMessage.ts | 1 + ...edAccessMethodIntersectionCanBeAccessed.ts | 1 + ...edAccessVarianceComparisonResultCorrect.ts | 1 + tests/cases/compiler/genericInference1.ts | 1 + tests/cases/compiler/genericInference2.ts | 1 + .../genericInferenceDefaultTypeParameter.ts | 1 + ...cInferenceDefaultTypeParameterJsxReact.tsx | 1 + .../genericInheritedDefaultConstructors.ts | 1 + tests/cases/compiler/genericInstanceOf.ts | 1 + .../genericInterfaceFunctionTypeParameter.ts | 1 + .../genericInterfaceImplementation.ts | 1 + .../compiler/genericInterfaceTypeCall.ts | 1 + .../genericInterfacesWithoutTypeArguments.ts | 1 + .../compiler/genericIsNeverEmptyObject.ts | 1 + .../genericLambaArgWithoutTypeArguments.ts | 1 + .../compiler/genericMappedTypeAsClause.ts | 1 + tests/cases/compiler/genericMemberFunction.ts | 1 + ...ericMergedDeclarationUsingTypeParameter.ts | 1 + ...ricMergedDeclarationUsingTypeParameter2.ts | 1 + .../genericMethodOverspecialization.ts | 1 + tests/cases/compiler/genericNewInterface.ts | 1 + tests/cases/compiler/genericNumberIndex.ts | 1 + .../genericObjectCreationWithoutTypeArgs.ts | 1 + .../compiler/genericObjectLitReturnType.ts | 1 + .../genericObjectSpreadResultInSwitch.ts | 1 + .../cases/compiler/genericOfACloduleType1.ts | 1 + .../cases/compiler/genericOfACloduleType2.ts | 1 + .../compiler/genericOverloadSignatures.ts | 1 + .../genericParameterAssignability1.ts | 1 + .../compiler/genericPrototypeProperty.ts | 1 + .../compiler/genericPrototypeProperty2.ts | 1 + .../compiler/genericPrototypeProperty3.ts | 1 + ...ericRecursiveImplicitConstructorErrors1.ts | 1 + ...ericRecursiveImplicitConstructorErrors2.ts | 1 + ...ericRecursiveImplicitConstructorErrors3.ts | 1 + tests/cases/compiler/genericReduce.ts | 1 + tests/cases/compiler/genericRestArgs.ts | 1 + tests/cases/compiler/genericRestTypes.ts | 1 + .../compiler/genericReturnTypeFromGetter1.ts | 1 + .../genericReversingTypeParameters.ts | 1 + .../genericReversingTypeParameters2.ts | 1 + .../compiler/genericSignatureIdentity.ts | 1 + .../compiler/genericSignatureInheritance.ts | 1 + .../compiler/genericSignatureInheritance2.ts | 1 + .../genericSpecializationToTypeLiteral1.ts | 1 + .../cases/compiler/genericSpecializations1.ts | 1 + .../cases/compiler/genericSpecializations2.ts | 1 + .../cases/compiler/genericSpecializations3.ts | 1 + .../compiler/genericStaticAnyTypeFunction.ts | 1 + .../genericTemplateOverloadResolution.ts | 1 + .../genericTupleWithSimplifiableElements.ts | 1 + .../compiler/genericTypeArgumentInference1.ts | 1 + .../cases/compiler/genericTypeAssertions1.ts | 1 + .../cases/compiler/genericTypeAssertions2.ts | 1 + .../cases/compiler/genericTypeAssertions3.ts | 1 + .../cases/compiler/genericTypeAssertions4.ts | 1 + .../cases/compiler/genericTypeAssertions5.ts | 1 + .../cases/compiler/genericTypeAssertions6.ts | 1 + .../cases/compiler/genericTypeConstraints.ts | 1 + .../genericTypeParameterEquivalence2.ts | 1 + .../genericTypeReferencesRequireTypeArgs.ts | 1 + .../genericTypeUsedWithoutTypeArguments1.ts | 1 + .../genericTypeUsedWithoutTypeArguments3.ts | 1 + .../genericTypeWithCallableMembers.ts | 1 + .../genericTypeWithCallableMembers2.ts | 1 + .../compiler/genericTypeWithMultipleBases1.ts | 1 + .../compiler/genericTypeWithMultipleBases2.ts | 1 + .../compiler/genericTypeWithMultipleBases3.ts | 1 + .../genericTypeWithNonGenericBaseMisMatch.ts | 1 + .../genericUnboundedTypeParamAssignability.ts | 1 + ...ithCallSignatureReturningSpecialization.ts | 1 + .../compiler/genericWithCallSignatures1.ts | 1 + .../genericWithIndexerOfTypeParameterType1.ts | 1 + .../genericWithIndexerOfTypeParameterType2.ts | 1 + ...ithNoConstraintComparableWithCurlyCurly.ts | 1 + .../genericWithOpenTypeParameters1.ts | 1 + tests/cases/compiler/generics0.ts | 1 + tests/cases/compiler/generics1.ts | 1 + tests/cases/compiler/generics1NoError.ts | 1 + tests/cases/compiler/generics2.ts | 1 + tests/cases/compiler/generics2NoError.ts | 1 + tests/cases/compiler/generics3.ts | 1 + tests/cases/compiler/generics4.ts | 1 + tests/cases/compiler/generics4NoError.ts | 1 + tests/cases/compiler/generics5.ts | 1 + .../genericsAndHigherOrderFunctions.ts | 1 + .../compiler/genericsManyTypeParameters.ts | 1 + .../genericsWithDuplicateTypeParameters1.ts | 1 + .../genericsWithoutTypeParameters1.ts | 1 + ...hImpliedReturnTypeAndFunctionClassMerge.ts | 1 + .../cases/compiler/getAndSetAsMemberNames.ts | 1 + .../compiler/getAndSetNotIdenticalType.ts | 1 + .../compiler/getAndSetNotIdenticalType2.ts | 1 + .../compiler/getAndSetNotIdenticalType3.ts | 1 + .../compiler/getParameterNameAtPosition.ts | 1 + tests/cases/compiler/getsetReturnTypes.ts | 1 + .../getterErrorMessageNotDuplicated.ts | 1 + .../compiler/getterMissingReturnError.ts | 1 + .../cases/compiler/getterSetterNonAccessor.ts | 1 + .../getterThatThrowsShouldNotNeedReturn.ts | 1 + .../gettersAndSettersAccessibility.ts | 1 + .../cases/compiler/gettersAndSettersErrors.ts | 1 + .../compiler/gettersAndSettersTypesAgree.ts | 1 + tests/cases/compiler/giant.ts | 1 + tests/cases/compiler/global.ts | 1 + .../globalFunctionAugmentationOverload.ts | 1 + .../compiler/globalIsContextualKeyword.ts | 1 + tests/cases/compiler/globalThis.ts | 1 + tests/cases/compiler/globalThisCapture.ts | 1 + .../compiler/globalThisDeclarationEmit.ts | 1 + .../compiler/globalThisDeclarationEmit2.ts | 1 + .../compiler/globalThisDeclarationEmit3.ts | 1 + tests/cases/compiler/grammarAmbiguities1.ts | 1 + .../heterogeneousArrayAndOverloads.ts | 1 + tests/cases/compiler/hidingCallSignatures.ts | 1 + .../compiler/hidingConstructSignatures.ts | 1 + tests/cases/compiler/hidingIndexSignatures.ts | 1 + .../higherOrderMappedIndexLookupInference.ts | 1 + ...phicMappedTypeIntersectionAssignability.ts | 1 + .../compiler/homomorphicMappedTypeNesting.ts | 1 + ...hNonHomomorphicInstantiationSpreadable1.ts | 1 + ...DeclarationOutputGetsTruncatedWithError.ts | 1 + tests/cases/compiler/i3.ts | 1 + tests/cases/compiler/icomparable.ts | 1 + tests/cases/compiler/idInProp.ts | 1 + ...icalGenericConditionalsWithInferRelated.ts | 1 + .../identicalTypesNoDifferByCheckOrder.ts | 1 + .../identifierStartAfterNumericLiteral.ts | 1 + .../identityAndDivergentNormalizedTypes.ts | 1 + ...tyForSignaturesWithTypeParametersAndAny.ts | 1 + ...ForSignaturesWithTypeParametersSwitched.ts | 1 + .../compiler/identityRelationNeverTypes.ts | 1 + tests/cases/compiler/ifElseWithStatements1.ts | 1 + .../compiler/ifStatementInternalComments.ts | 1 + tests/cases/compiler/ignoredJsxAttributes.tsx | 1 + .../cases/compiler/illegalGenericWrapping1.ts | 1 + .../illegalModifiersOnClassElements.ts | 1 + .../illegalSuperCallsInConstructor.ts | 1 + .../cases/compiler/implementArrayInterface.ts | 1 + .../implementClausePrecedingExtends.ts | 1 + .../implementGenericWithMismatchedTypes.ts | 1 + .../implementInterfaceAnyMemberWithVoid.ts | 1 + .../implementPublicPropertyAsPrivate.ts | 1 + .../compiler/implementsClauseAlreadySeen.ts | 1 + .../compiler/implementsInClassExpression.ts | 1 + .../implementsIncorrectlyNoAssertion.ts | 1 + tests/cases/compiler/implicitAnyAmbients.ts | 1 + .../implicitAnyAnyReturningFunction.ts | 1 + .../cases/compiler/implicitAnyCastedValue.ts | 1 + ...AnyDeclareFunctionExprWithoutFormalType.ts | 1 + ...icitAnyDeclareFunctionWithoutFormalType.ts | 1 + ...citAnyDeclareFunctionWithoutFormalType2.ts | 1 + .../implicitAnyDeclareMemberWithoutType.ts | 1 + .../implicitAnyDeclareMemberWithoutType2.ts | 1 + ...plicitAnyDeclareTypePropertyWithoutType.ts | 1 + ...itAnyDeclareVariablesWithoutTypeAndInit.ts | 1 + ...tAnyFunctionInvocationWithAnyArguements.ts | 1 + ...nctionOverloadWithImplicitAnyReturnType.ts | 1 + ...mplicitAnyFunctionReturnNullOrUndefined.ts | 1 + tests/cases/compiler/implicitAnyGenerics.ts | 1 + ...itAnyGetAndSetAccessorWithAnyReturnType.ts | 1 + .../implicitAnyInAmbientDeclaration.ts | 1 + .../implicitAnyInAmbientDeclaration2.d.ts | 1 + tests/cases/compiler/implicitAnyInCatch.ts | 1 + ...licitAnyNewExprLackConstructorSignature.ts | 1 + tests/cases/compiler/implicitAnyWidenToAny.ts | 1 + .../cases/compiler/implicitConstParameters.ts | 1 + .../cases/compiler/implicitIndexSignatures.ts | 1 + .../cases/compiler/impliedNodeFormatEmit1.ts | 1 + .../cases/compiler/impliedNodeFormatEmit2.ts | 1 + .../cases/compiler/impliedNodeFormatEmit3.ts | 1 + .../cases/compiler/impliedNodeFormatEmit4.ts | 1 + .../compiler/impliedNodeFormatInterop1.ts | 1 + ...sAnExternalModuleInsideAnInternalModule.ts | 2 + .../compiler/importAliasFromNamespace.ts | 1 + .../importAliasInModuleAugmentation.ts | 1 + .../compiler/importAliasWithDottedName.ts | 1 + tests/cases/compiler/importAnImport.ts | 1 + .../importAndVariableDeclarationConflict1.ts | 1 + .../importAndVariableDeclarationConflict2.ts | 1 + .../importAndVariableDeclarationConflict3.ts | 1 + .../importAndVariableDeclarationConflict4.ts | 1 + tests/cases/compiler/importAsBaseClass.ts | 1 + .../compiler/importAssertionNonstring.ts | 1 + tests/cases/compiler/importDecl.ts | 1 + ...eclRefereingExternalModuleWithNoResolve.ts | 2 + tests/cases/compiler/importDeclTypes.ts | 1 + .../compiler/importDeclWithClassModifiers.ts | 1 + .../compiler/importDeclWithDeclareModifier.ts | 1 + ...DeclWithDeclareModifierInAmbientContext.ts | 1 + .../compiler/importDeclWithExportModifier.ts | 1 + ...clWithExportModifierAndExportAssignment.ts | 1 + ...fierAndExportAssignmentInAmbientContext.ts | 1 + ...tDeclWithExportModifierInAmbientContext.ts | 1 + .../importDeclarationInModuleDeclaration1.ts | 1 + .../importDeclarationInModuleDeclaration2.ts | 1 + ...tionNotCheckedAsValueWhenTargetNonValue.ts | 1 + .../importDeclarationUsedAsTypeQuery.ts | 1 + tests/cases/compiler/importElisionEnum.ts | 1 + .../cases/compiler/importEqualsError45874.ts | 1 + .../importHelpersCommonJSJavaScript.ts | 1 + tests/cases/compiler/importInTypePosition.ts | 1 + tests/cases/compiler/importInsideModule.ts | 1 + .../cases/compiler/importNonExportedMember.ts | 1 + .../compiler/importNonExportedMember1.ts | 1 + .../compiler/importNonExportedMember10.ts | 1 + .../compiler/importNonExportedMember11.ts | 1 + .../compiler/importNonExportedMember12.ts | 1 + .../compiler/importNonExportedMember2.ts | 1 + .../compiler/importNonExportedMember3.ts | 1 + .../compiler/importNonExportedMember4.ts | 1 + .../compiler/importNonExportedMember5.ts | 1 + .../compiler/importNonExportedMember6.ts | 1 + .../compiler/importNonExportedMember7.ts | 1 + .../compiler/importNonExportedMember8.ts | 1 + .../compiler/importNonExportedMember9.ts | 1 + .../compiler/importNotElidedWhenNotFound.ts | 1 + .../compiler/importOnAliasedIdentifiers.ts | 1 + .../compiler/importPropertyFromMappedType.ts | 1 + .../cases/compiler/importShadowsGlobalName.ts | 1 + ...mportShouldNotBeElidedInDeclarationEmit.ts | 1 + ...importTypeGenericArrowTypeParenthesized.ts | 1 + .../compiler/importTypeResolutionJSDocEOF.ts | 1 + .../importTypeTypeofClassStaticLookup.ts | 1 + ...ithUnparenthesizedGenericFunctionParsed.ts | 1 + .../compiler/importUsedAsTypeWithErrors.ts | 1 + .../compiler/importUsedInExtendsList1.ts | 1 + .../importUsedInGenericImportResolves.ts | 1 + .../cases/compiler/importWithTrailingSlash.ts | 1 + .../importWithTrailingSlash_noResolve.ts | 1 + .../import_reference-exported-alias.ts | 1 + .../import_reference-to-type-alias.ts | 1 + ...-referenecing-aliased-type-throug-array.ts | 1 + ...ar-referencing-an-imported-module-alias.ts | 1 + ...rtedAliasedConditionalTypeInstantiation.ts | 1 + .../importedAliasesInTypePositions.ts | 1 + ...numMemberMergedWithExportedAliasIsError.ts | 1 + .../compiler/importedModuleAddToGlobal.ts | 1 + .../compiler/importedModuleClassNameClash.ts | 1 + .../compiler/importsInAmbientModules1.ts | 1 + .../compiler/importsInAmbientModules2.ts | 1 + .../compiler/importsInAmbientModules3.ts | 1 + .../inDoesNotOperateOnPrimitiveTypes.ts | 1 + .../compiler/inKeywordAndIntersection.ts | 1 + tests/cases/compiler/inKeywordAndUnknown.ts | 1 + ...rdNarrowingWithNoUncheckedIndexedAccess.ts | 1 + tests/cases/compiler/inOperator.ts | 1 + .../cases/compiler/inOperatorWithFunction.ts | 1 + tests/cases/compiler/inOperatorWithGeneric.ts | 1 + ...atibleAssignmentOfIdenticallyNamedTypes.ts | 1 + tests/cases/compiler/incompatibleExports1.ts | 1 + tests/cases/compiler/incompatibleExports2.ts | 1 + .../compiler/incompatibleGenericTypes.ts | 1 + tests/cases/compiler/incompatibleTypes.ts | 1 + .../incompleteDottedExpressionAtEOF.ts | 1 + .../compiler/incompleteObjectLiteral1.ts | 1 + .../compiler/incorrectClassOverloadChain.ts | 1 + ...mberOfTypeArgumentsDuringErrorReporting.ts | 1 + .../incorrectRecursiveMappedTypeConstraint.ts | 1 + .../compiler/incrementOnNullAssertion.ts | 1 + .../compiler/incrementOnTypeParameter.ts | 1 + tests/cases/compiler/incrementalConfig.ts | 1 + tests/cases/compiler/incrementalInvalid.ts | 1 + tests/cases/compiler/incrementalOut.ts | 1 + .../compiler/incrementalTsBuildInfoFile.ts | 1 + tests/cases/compiler/indexClassByNumber.ts | 1 + .../cases/compiler/indexIntoArraySubclass.ts | 1 + tests/cases/compiler/indexIntoEnum.ts | 1 + .../compiler/indexSignatureAndMappedType.ts | 1 + .../indexSignatureMustHaveTypeAnnotation.ts | 1 + ...fTypeUnknownStillRequiresIndexSignature.ts | 1 + .../cases/compiler/indexSignatureTypeCheck.ts | 1 + .../compiler/indexSignatureTypeCheck2.ts | 1 + ...indexSignatureWithAccessibilityModifier.ts | 1 + .../compiler/indexSignatureWithInitializer.ts | 1 + .../indexSignatureWithInitializer1.ts | 1 + .../indexSignatureWithTrailingComma.ts | 1 + .../indexSignatureWithoutTypeAnnotation1..ts | 1 + .../indexSignatureWithoutTypeAnnotation1.ts | 1 + .../indexSignaturesInferentialTyping.ts | 1 + tests/cases/compiler/indexTypeCheck.ts | 1 + .../indexTypeNoSubstitutionTemplateLiteral.ts | 1 + .../compiler/indexWithUndefinedAndNull.ts | 1 + ...dexWithUndefinedAndNullStrictNullChecks.ts | 1 + tests/cases/compiler/indexWithoutParamType.ts | 1 + .../cases/compiler/indexWithoutParamType2.ts | 1 + .../indexedAccessAndNullableNarrowing.ts | 1 + .../compiler/indexedAccessCanBeHighOrder.ts | 1 + .../compiler/indexedAccessConstraints.ts | 1 + ...eyofNestedSimplifiedSubstituteUnwrapped.ts | 1 + .../compiler/indexedAccessNormalization.ts | 1 + ...dAccessPrivateMemberOfGenericConstraint.ts | 1 + tests/cases/compiler/indexedAccessRelation.ts | 1 + .../indexedAccessRetainsIndexSignature.ts | 1 + ...indexedAccessToThisTypeOnIntersection01.ts | 1 + .../compiler/indexedAccessTypeConstraints.ts | 1 + .../indexedAccessWithFreshObjectLiteral.ts | 1 + .../indexedAccessWithVariableElement.ts | 1 + tests/cases/compiler/indexer.ts | 1 + tests/cases/compiler/indexer2.ts | 1 + tests/cases/compiler/indexer2A.ts | 1 + tests/cases/compiler/indexer3.ts | 1 + tests/cases/compiler/indexerA.ts | 1 + tests/cases/compiler/indexerAsOptional.ts | 1 + tests/cases/compiler/indexerAssignability.ts | 1 + tests/cases/compiler/indexerConstraints.ts | 1 + tests/cases/compiler/indexerConstraints2.ts | 1 + .../indexerReturningTypeParameter1.ts | 1 + .../compiler/indexerSignatureWithRestParam.ts | 1 + .../cases/compiler/indexingTypesWithNever.ts | 1 + .../indirectDiscriminantAndExcessProperty.ts | 1 + tests/cases/compiler/indirectSelfReference.ts | 1 + .../compiler/indirectSelfReferenceGeneric.ts | 1 + .../indirectTypeParameterReferences.ts | 1 + .../indirectUniqueSymbolDeclarationEmit.ts | 1 + .../inexistentPropertyInsideToStringType.ts | 1 + .../inferConditionalConstraintMappedMember.ts | 1 + .../compiler/inferFromAnnotatedReturn1.ts | 1 + .../inferFromGenericFunctionReturnTypes1.ts | 1 + .../inferFromGenericFunctionReturnTypes2.ts | 1 + .../compiler/inferFromNestedSameShapeTuple.ts | 1 + ...inferObjectTypeFromStringLiteralToKeyof.ts | 1 + ...inferParameterWithMethodCallInitializer.ts | 1 + ...ertyWithContextSensitiveReturnStatement.ts | 1 + .../compiler/inferRestArgumentsMappedTuple.ts | 1 + .../cases/compiler/inferSecondaryParameter.ts | 1 + tests/cases/compiler/inferSetterParamType.ts | 1 + ...nferStringLiteralUnionForBindingElement.ts | 1 + tests/cases/compiler/inferTInParentheses.ts | 1 + .../compiler/inferTupleFromBindingPattern.ts | 1 + ...eArgumentsInSignatureWithRestParameters.ts | 1 + ...rTypeConstraintInstantiationCircularity.ts | 1 + .../compiler/inferTypeParameterConstraints.ts | 1 + tests/cases/compiler/inferTypePredicates.ts | 1 + ...WithFixedTupleExtendsAtVariadicPosition.ts | 1 + tests/cases/compiler/inferenceAndHKTs.ts | 1 + .../inferenceAndSelfReferentialConstraint.ts | 1 + .../inferenceContextualReturnTypeUnion1.ts | 1 + .../inferenceContextualReturnTypeUnion2.ts | 1 + .../inferenceContextualReturnTypeUnion3.ts | 1 + .../inferenceContextualReturnTypeUnion4.ts | 1 + .../inferenceDoesNotAddUndefinedOrNull.ts | 1 + ...mpareAgainstUninstantiatedTypeParameter.ts | 1 + .../inferenceExactOptionalProperties1.ts | 1 + .../inferenceExactOptionalProperties2.ts | 1 + .../inferenceFromGenericClassNoCrash1.ts | 1 + .../compiler/inferenceFromIncompleteSource.ts | 1 + .../inferenceFromParameterlessLambda.ts | 1 + ...enceOfNullableObjectTypesWithCommonBase.ts | 1 + .../compiler/inferenceOptionalProperties.ts | 1 + .../inferenceOptionalPropertiesStrict.ts | 1 + .../inferenceShouldFailOnEvolvingArrays.ts | 1 + ...renceUnionOfObjectsMappedContextualType.ts | 1 + .../inferentialTypingObjectLiteralMethod1.ts | 1 + .../inferentialTypingObjectLiteralMethod2.ts | 1 + .../inferentialTypingUsingApparentType1.ts | 1 + .../inferentialTypingUsingApparentType2.ts | 1 + .../inferentialTypingUsingApparentType3.ts | 1 + .../inferentialTypingWithFunctionType.ts | 1 + .../inferentialTypingWithFunctionType2.ts | 1 + ...inferentialTypingWithFunctionTypeNested.ts | 1 + ...ypingWithFunctionTypeSyntacticScenarios.ts | 1 + .../inferentialTypingWithFunctionTypeZip.ts | 1 + ...entialTypingWithObjectLiteralProperties.ts | 1 + .../inferentiallyTypingAnEmptyArray.ts | 3 +- .../inferredFunctionReturnTypeIsEmptyType.ts | 1 + .../inferredIndexerOnNamespaceImport.ts | 1 + .../inferredNonidentifierTypesGetQuotes.ts | 1 + .../compiler/inferredRestTypeFixedOnce.ts | 1 + .../inferredReturnTypeIncorrectReuse1.ts | 1 + .../inferrenceInfiniteLoopWithSubtyping.ts | 1 + .../compiler/inferringAnyFunctionType1.ts | 1 + .../compiler/inferringAnyFunctionType2.ts | 1 + .../compiler/inferringAnyFunctionType3.ts | 1 + .../compiler/inferringAnyFunctionType4.ts | 1 + .../compiler/inferringAnyFunctionType5.ts | 1 + ...ReturnTypeFromConstructSignatureGeneric.ts | 1 + tests/cases/compiler/infiniteConstraints.ts | 1 + ...dingTypeThroughInheritanceInstantiation.ts | 1 + .../compiler/infinitelyExpandingBaseTypes1.ts | 1 + .../compiler/infinitelyExpandingBaseTypes2.ts | 1 + .../compiler/infinitelyExpandingOverloads.ts | 1 + .../infinitelyExpandingTypeAssignability.ts | 1 + .../compiler/infinitelyExpandingTypes1.ts | 1 + .../compiler/infinitelyExpandingTypes2.ts | 1 + .../compiler/infinitelyExpandingTypes3.ts | 1 + .../compiler/infinitelyExpandingTypes4.ts | 1 + .../compiler/infinitelyExpandingTypes5.ts | 1 + .../infinitelyExpandingTypesNonGenericBase.ts | 1 + .../infinitelyGenerativeInheritance1.ts | 1 + .../inheritFromGenericTypeParameter.ts | 1 + ...mePrivatePropertiesFromDifferentOrigins.ts | 1 + ...SameNamePrivatePropertiesFromSameOrigin.ts | 1 + ...eNamePropertiesWithDifferentOptionality.ts | 1 + ...meNamePropertiesWithDifferentVisibility.ts | 1 + tests/cases/compiler/inheritance.ts | 1 + tests/cases/compiler/inheritance1.ts | 1 + ...itanceGrandParentPrivateMemberCollision.ts | 1 + ...tPrivateMemberCollisionWithPublicMember.ts | 1 + ...tPublicMemberCollisionWithPrivateMember.ts | 1 + ...ritanceMemberAccessorOverridingAccessor.ts | 1 + ...ritanceMemberAccessorOverridingProperty.ts | 1 + ...inheritanceMemberFuncOverridingAccessor.ts | 1 + .../inheritanceMemberFuncOverridingMethod.ts | 1 + ...inheritanceMemberFuncOverridingProperty.ts | 1 + ...ritanceMemberPropertyOverridingAccessor.ts | 1 + ...heritanceMemberPropertyOverridingMethod.ts | 1 + ...ritanceMemberPropertyOverridingProperty.ts | 1 + .../inheritanceOfGenericConstructorMethod1.ts | 1 + .../inheritanceOfGenericConstructorMethod2.ts | 1 + ...ritanceStaticAccessorOverridingAccessor.ts | 1 + ...heritanceStaticAccessorOverridingMethod.ts | 1 + ...ritanceStaticAccessorOverridingProperty.ts | 1 + ...inheritanceStaticFuncOverridingAccessor.ts | 1 + ...eStaticFuncOverridingAccessorOfFuncType.ts | 1 + .../inheritanceStaticFuncOverridingMethod.ts | 1 + ...inheritanceStaticFuncOverridingProperty.ts | 1 + ...eStaticFuncOverridingPropertyOfFuncType.ts | 1 + ...taticFunctionOverridingInstanceProperty.ts | 1 + .../inheritanceStaticMembersCompatible.ts | 1 + .../inheritanceStaticMembersIncompatible.ts | 1 + ...ritanceStaticPropertyOverridingAccessor.ts | 1 + ...heritanceStaticPropertyOverridingMethod.ts | 1 + ...ritanceStaticPropertyOverridingProperty.ts | 1 + ...eritedConstructorPropertyContextualType.ts | 1 + .../inheritedConstructorWithRestParams.ts | 1 + .../inheritedConstructorWithRestParams2.ts | 1 + ...nheritedFunctionAssignmentCompatibility.ts | 1 + .../compiler/inheritedGenericCallSignature.ts | 1 + ...ersAndIndexSignaturesFromDifferentBases.ts | 1 + ...rsAndIndexSignaturesFromDifferentBases2.ts | 1 + .../inheritedModuleMembersForClodule.ts | 1 + ...nheritedOverloadedSpecializedSignatures.ts | 1 + ...tedStringIndexersFromDifferentBaseTypes.ts | 1 + ...edStringIndexersFromDifferentBaseTypes2.ts | 1 + ...initializedDestructuringAssignmentTypes.ts | 1 + ...edParameterBeforeNonoptionalNotOptional.ts | 1 + .../initializerWithThisPropertyAccess.ts | 1 + .../compiler/initializersInAmbientEnums.ts | 1 + ...nlineConditionalHasSimilarAssignability.ts | 1 + ...inlineMappedTypeModifierDeclarationEmit.ts | 1 + ...dAliasAssignableToConstraintSameAsAlias.ts | 1 + tests/cases/compiler/innerAliases.ts | 1 + tests/cases/compiler/innerAliases2.ts | 1 + tests/cases/compiler/innerBoundLambdaEmit.ts | 1 + tests/cases/compiler/innerExtern.ts | 1 + tests/cases/compiler/innerFunc.ts | 1 + tests/cases/compiler/innerModExport1.ts | 1 + tests/cases/compiler/innerModExport2.ts | 1 + tests/cases/compiler/innerOverloads.ts | 1 + .../compiler/innerTypeArgumentInference.ts | 1 + .../innerTypeCheckOfLambdaArgument.ts | 1 + .../instanceAndStaticDeclarations1.ts | 1 + .../cases/compiler/instanceOfAssignability.ts | 1 + .../compiler/instanceOfInExternalModules.ts | 1 + tests/cases/compiler/instanceSubtypeCheck1.ts | 1 + tests/cases/compiler/instanceSubtypeCheck2.ts | 1 + .../compiler/instanceofNarrowReadonlyArray.ts | 1 + .../instanceofOnInstantiationExpression.ts | 1 + tests/cases/compiler/instanceofOperator.ts | Bin 1142 -> 1192 bytes .../instanceofTypeAliasToGenericClass.ts | 1 + .../compiler/instanceofWithPrimitiveUnion.ts | 1 + ...nstanceofWithStructurallyIdenticalTypes.ts | 1 + .../instantiateConstraintsToTypeArguments2.ts | 1 + ...instantiateContextuallyTypedGenericThis.ts | 1 + .../compiler/instantiateCrossFileMerge.ts | 1 + .../compiler/instantiateTypeParameter.ts | 1 + .../instantiatedBaseTypeConstraints.ts | 1 + .../instantiatedBaseTypeConstraints2.ts | 1 + .../instantiatedReturnTypeContravariance.ts | 1 + .../compiler/instantiatedTypeAliasDisplay.ts | 1 + .../instantiationExpressionErrorNoCrash.ts | 1 + tests/cases/compiler/intTypeCheck.ts | 1 + .../compiler/interMixingModulesInterfaces0.ts | 1 + .../compiler/interMixingModulesInterfaces1.ts | 1 + .../compiler/interMixingModulesInterfaces2.ts | 1 + .../compiler/interMixingModulesInterfaces3.ts | 1 + .../compiler/interMixingModulesInterfaces4.ts | 1 + .../compiler/interMixingModulesInterfaces5.ts | 1 + tests/cases/compiler/interface0.ts | 1 + .../compiler/interfaceAssignmentCompat.ts | 1 + tests/cases/compiler/interfaceClassMerging.ts | 1 + .../cases/compiler/interfaceClassMerging2.ts | 1 + .../cases/compiler/interfaceContextualType.ts | 1 + tests/cases/compiler/interfaceDeclaration1.ts | 1 + tests/cases/compiler/interfaceDeclaration2.ts | 1 + tests/cases/compiler/interfaceDeclaration3.ts | 1 + tests/cases/compiler/interfaceDeclaration4.ts | 1 + tests/cases/compiler/interfaceDeclaration5.ts | 1 + tests/cases/compiler/interfaceDeclaration6.ts | 3 +- .../cases/compiler/interfaceExtendsClass1.ts | 1 + .../interfaceExtendsClassWithPrivate1.ts | 1 + .../interfaceExtendsClassWithPrivate2.ts | 1 + .../compiler/interfaceImplementation1.ts | 1 + .../compiler/interfaceImplementation2.ts | 1 + .../compiler/interfaceImplementation3.ts | 1 + .../compiler/interfaceImplementation4.ts | 1 + .../compiler/interfaceImplementation5.ts | 1 + .../compiler/interfaceImplementation6.ts | 1 + .../compiler/interfaceImplementation7.ts | 3 +- .../compiler/interfaceImplementation8.ts | 3 +- .../compiler/interfaceInReopenedModule.ts | 1 + tests/cases/compiler/interfaceInheritance.ts | 1 + tests/cases/compiler/interfaceInheritance2.ts | 1 + .../interfaceMayNotBeExtendedWitACall.ts | 1 + .../compiler/interfaceMemberValidation.ts | 1 + ...terfaceMergeWithNonGenericTypeArguments.ts | 1 + ...UnconstrainedNoErrorIrrespectiveOfOrder.ts | 1 + .../compiler/interfaceNameAsIdentifier.ts | 1 + tests/cases/compiler/interfaceNaming1.ts | 1 + tests/cases/compiler/interfaceOnly.ts | 1 + .../interfacePropertiesWithSameName1.ts | 1 + .../interfacePropertiesWithSameName2.ts | 1 + .../interfacePropertiesWithSameName3.ts | 1 + tests/cases/compiler/interfaceSubtyping.ts | 1 + .../compiler/interfaceWithCommaSeparators.ts | 1 + .../compiler/interfaceWithImplements1.ts | 1 + .../interfaceWithMultipleDeclarations.ts | 1 + .../compiler/interfaceWithOptionalProperty.ts | 1 + tests/cases/compiler/interfacedecl.ts | 1 + .../interfacedeclWithIndexerErrors.ts | 1 + tests/cases/compiler/internalAliasClass.ts | 1 + ...alAliasClassInsideLocalModuleWithExport.ts | 1 + ...liasClassInsideLocalModuleWithoutExport.ts | 1 + ...sideLocalModuleWithoutExportAccessError.ts | 1 + ...liasClassInsideTopLevelModuleWithExport.ts | 1 + ...sClassInsideTopLevelModuleWithoutExport.ts | 1 + tests/cases/compiler/internalAliasEnum.ts | 1 + ...nalAliasEnumInsideLocalModuleWithExport.ts | 1 + ...AliasEnumInsideLocalModuleWithoutExport.ts | 1 + ...sideLocalModuleWithoutExportAccessError.ts | 1 + ...AliasEnumInsideTopLevelModuleWithExport.ts | 1 + ...asEnumInsideTopLevelModuleWithoutExport.ts | 1 + tests/cases/compiler/internalAliasFunction.ts | 1 + ...liasFunctionInsideLocalModuleWithExport.ts | 1 + ...sFunctionInsideLocalModuleWithoutExport.ts | 1 + ...sideLocalModuleWithoutExportAccessError.ts | 1 + ...sFunctionInsideTopLevelModuleWithExport.ts | 1 + ...nctionInsideTopLevelModuleWithoutExport.ts | 1 + .../internalAliasInitializedModule.ts | 1 + ...alizedModuleInsideLocalModuleWithExport.ts | 1 + ...zedModuleInsideLocalModuleWithoutExport.ts | 1 + ...sideLocalModuleWithoutExportAccessError.ts | 1 + ...zedModuleInsideTopLevelModuleWithExport.ts | 1 + ...ModuleInsideTopLevelModuleWithoutExport.ts | 1 + .../cases/compiler/internalAliasInterface.ts | 1 + ...iasInterfaceInsideLocalModuleWithExport.ts | 1 + ...InterfaceInsideLocalModuleWithoutExport.ts | 1 + ...sideLocalModuleWithoutExportAccessError.ts | 1 + ...InterfaceInsideTopLevelModuleWithExport.ts | 1 + ...erfaceInsideTopLevelModuleWithoutExport.ts | 1 + .../internalAliasUninitializedModule.ts | 1 + ...alizedModuleInsideLocalModuleWithExport.ts | 1 + ...zedModuleInsideLocalModuleWithoutExport.ts | 1 + ...sideLocalModuleWithoutExportAccessError.ts | 1 + ...zedModuleInsideTopLevelModuleWithExport.ts | 1 + ...ModuleInsideTopLevelModuleWithoutExport.ts | 1 + tests/cases/compiler/internalAliasVar.ts | 1 + ...rnalAliasVarInsideLocalModuleWithExport.ts | 1 + ...lAliasVarInsideLocalModuleWithoutExport.ts | 1 + ...sideLocalModuleWithoutExportAccessError.ts | 1 + ...lAliasVarInsideTopLevelModuleWithExport.ts | 1 + ...iasVarInsideTopLevelModuleWithoutExport.ts | 1 + .../internalAliasWithDottedNameEmit.ts | 1 + ...leMergedWithClassNotReferencingInstance.ts | 1 + ...thClassNotReferencingInstanceNoConflict.ts | 1 + ...nstantiatedModuleNotReferencingInstance.ts | 1 + ...leMergedWithClassNotReferencingInstance.ts | 1 + ...thClassNotReferencingInstanceNoConflict.ts | 1 + ...dModuleNotReferencingInstanceNoConflict.ts | 1 + .../intersectionApparentTypeCaching.ts | 1 + .../intersectionConstraintReduction.ts | 1 + ...xinConstructorTypeAndNonConstructorType.ts | 1 + ...tionOfTypeVariableHasApparentSignatures.ts | 1 + .../compiler/intersectionPropertyCheck.ts | 1 + ...ersectionReductionGenericStringLikeType.ts | 1 + .../intersectionSatisfiesConstraint.ts | 1 + .../compiler/intersectionTypeInference1.ts | 1 + .../compiler/intersectionTypeNormalization.ts | 1 + .../intersectionTypeWithLeadingOperator.ts | 1 + ...onWithConstructSignaturePrototypeResult.ts | 1 + .../intersectionsAndOptionalProperties.ts | 1 + .../intersectionsAndOptionalProperties2.ts | 1 + .../intersectionsAndOptionalProperties3.ts | 1 + .../intersectionsAndReadonlyProperties.ts | 1 + .../compiler/intersectionsOfLargeUnions.ts | 1 + .../compiler/intersectionsOfLargeUnions2.ts | 1 + .../compiler/intraBindingPatternReferences.ts | 1 + tests/cases/compiler/intrinsics.ts | 1 + tests/cases/compiler/invalidConstraint1.ts | 1 + .../invalidContinueInDownlevelAsync.ts | 1 + .../invalidOptionalChainFromNewExpression.ts | 1 + .../cases/compiler/invalidReferenceSyntax1.ts | 1 + tests/cases/compiler/invalidSplice.ts | 1 + tests/cases/compiler/invalidStaticField.ts | 1 + .../compiler/invalidSymbolInTypeParameter1.ts | 1 + ...nvalidThisEmitInContextualObjectLiteral.ts | 1 + .../compiler/invalidTripleSlashReference.ts | 1 + tests/cases/compiler/invalidTypeNames.ts | 1 + .../compiler/invalidUnicodeEscapeSequance.ts | 1 + .../compiler/invalidUnicodeEscapeSequance2.ts | 1 + .../compiler/invalidUnicodeEscapeSequance3.ts | 1 + .../compiler/invalidUnicodeEscapeSequance4.ts | 1 + .../compiler/invalidUseOfTypeAsNamespace.ts | 1 + .../invariantGenericErrorElaboration.ts | 1 + ...invocationExpressionInFunctionParameter.ts | 1 + ...okingNonGenericMethodWithTypeArguments1.ts | 1 + ...okingNonGenericMethodWithTypeArguments2.ts | 1 + tests/cases/compiler/ipromise2.ts | 1 + tests/cases/compiler/ipromise3.ts | 1 + tests/cases/compiler/ipromise4.ts | 1 + tests/cases/compiler/isArray.ts | 1 + tests/cases/compiler/isLiteral1.ts | 1 + .../isolatedDeclarationErrorTypes1.ts | 1 + .../isolatedDeclarationsAddUndefined.ts | 1 + .../isolatedDeclarationsAddUndefined2.ts | 1 + .../compiler/isolatedDeclarationsAllowJs.ts | 1 + ...isolatedDeclarationsRequiresDeclaration.ts | 1 + .../compiler/isolatedModulesConstEnum.ts | 1 + .../isolatedModulesExportDeclarationType.ts | 1 + ...ulesExportImportUninstantiatedNamespace.ts | 1 + ...isolatedModulesGlobalNamespacesAndEnums.ts | 1 + .../isolatedModulesImportConstEnum.ts | 1 + .../isolatedModulesImportConstEnumTypeOnly.ts | 1 + .../compiler/isolatedModulesReExportAlias.ts | 2 + .../compiler/isolatedModulesReExportType.ts | 2 + ...solatedModulesRequiresPreserveConstEnum.ts | 1 + ...isolatedModulesShadowGlobalTypeNotValue.ts | 1 + .../isolatedModulesSketchyAliasLocalMerge.ts | 1 + .../isolatedModulesSpecifiedModule.ts | 1 + .../isolatedModulesUnspecifiedModule.ts | 1 + .../isolatedModules_resolveJsonModule.ts | 2 + ...esolveJsonModule_strict_outDir_commonJs.ts | 1 + .../compiler/javascriptCommonjsModule.ts | 1 + ...ptDefinePropertyPrototypeNonConstructor.ts | 1 + .../javascriptImportDefaultBadExport.ts | 1 + .../javascriptThisAssignmentInStaticBlock.ts | 1 + tests/cases/compiler/jqueryInference.ts | 1 + .../jsCheckObjectDefineThisNoCrash.ts | 1 + .../jsDeclarationEmitDoesNotRenameImport.ts | 1 + .../jsDeclarationEmitExportAssignedArray.ts | 1 + ...ssignedFunctionWithExtraTypedefsMembers.ts | 1 + ...DeclarationEmitExportedClassWithExtends.ts | 1 + .../jsDeclarationsGlobalFileConstFunction.ts | 1 + ...eclarationsGlobalFileConstFunctionNamed.ts | 1 + .../compiler/jsDeclarationsInheritedTypes.ts | 1 + ...arationsWithDefaultAsNamespaceLikeMerge.ts | 1 + .../jsElementAccessNoContextualTypeCrash.ts | 1 + .../compiler/jsEmitIntersectionProperty.ts | 1 + tests/cases/compiler/jsEnumCrossFileExport.ts | 1 + .../compiler/jsEnumFunctionLocalNoCrash.ts | 1 + .../cases/compiler/jsEnumTagOnObjectFrozen.ts | 1 + .../compiler/jsExpandoObjectDefineProperty.ts | 1 + ...xportMemberMergedWithModuleAugmentation.ts | 1 + ...portMemberMergedWithModuleAugmentation2.ts | 1 + ...portMemberMergedWithModuleAugmentation3.ts | 1 + tests/cases/compiler/jsExtendsImplicitAny.ts | 1 + .../jsFileAlternativeUseOfOverloadTag.ts | 1 + ...assPropertyInitalizationInObjectLiteral.ts | 1 + .../cases/compiler/jsFileClassPropertyType.ts | 1 + .../compiler/jsFileClassPropertyType2.ts | 1 + .../compiler/jsFileClassPropertyType3.ts | 1 + .../jsFileClassSelfReferencedProperty.ts | 1 + .../jsFileCompilationAbstractModifier.ts | 1 + ...eCompilationAmbientVarDeclarationSyntax.ts | 1 + .../jsFileCompilationAwaitModifier.ts | 1 + ...ileCompilationBindDeepExportsAssignment.ts | 1 + ...sFileCompilationBindDuplicateIdentifier.ts | 1 + .../compiler/jsFileCompilationBindErrors.ts | 1 + ...jsFileCompilationBindReachabilityErrors.ts | 1 + ...ationClassMethodContainingArrowFunction.ts | 1 + .../jsFileCompilationConstModifier.ts | 1 + ...ileCompilationConstructorOverloadSyntax.ts | 1 + .../jsFileCompilationDecoratorSyntax.ts | 1 + ...pilationDuplicateFunctionImplementation.ts | 1 + ...FunctionImplementationFileOrderReversed.ts | 1 + .../jsFileCompilationDuplicateVariable.ts | 1 + ...mpilationDuplicateVariableErrorReported.ts | 1 + .../jsFileCompilationEmitBlockedCorrectly.ts | 1 + .../jsFileCompilationEmitDeclarations.ts | 1 + ...ileCompilationEmitTrippleSlashReference.ts | 1 + .../compiler/jsFileCompilationEnumSyntax.ts | 1 + ...eclarationsWithJsFileReferenceWithNoOut.ts | 1 + ...nDeclarationsWithJsFileReferenceWithOut.ts | 1 + ...clarationsWithJsFileReferenceWithOutDir.ts | 1 + ...jsFileCompilationExportAssignmentSyntax.ts | 1 + .../jsFileCompilationExternalPackageError.ts | 1 + ...jsFileCompilationFunctionOverloadSyntax.ts | 1 + ...eCompilationHeritageClauseSyntaxOfClass.ts | 1 + .../jsFileCompilationImportEqualsSyntax.ts | 1 + .../jsFileCompilationInterfaceSyntax.ts | 1 + .../jsFileCompilationLetBeingRenamed.ts | 1 + .../jsFileCompilationLetDeclarationOrder.ts | 1 + .../jsFileCompilationLetDeclarationOrder2.ts | 1 + .../jsFileCompilationMethodOverloadSyntax.ts | 1 + .../compiler/jsFileCompilationModuleSyntax.ts | 1 + ...eclarationsWithJsFileReferenceWithNoOut.ts | 1 + ...tDeclarationsWithJsFileReferenceWithOut.ts | 1 + .../jsFileCompilationNonNullAssertion.ts | 1 + ...lationOptionalClassElementSyntaxOfClass.ts | 1 + .../jsFileCompilationOptionalParameter.ts | 1 + ...ileCompilationPublicMethodSyntaxOfClass.ts | 1 + ...sFileCompilationPublicParameterModifier.ts | 1 + ...jsFileCompilationRestParamJsDocFunction.ts | 1 + ...leCompilationReturnTypeSyntaxOfFunction.ts | 1 + .../jsFileCompilationShortHandProperty.ts | 1 + .../compiler/jsFileCompilationSyntaxError.ts | 1 + .../jsFileCompilationTypeAliasSyntax.ts | 1 + ...FileCompilationTypeArgumentSyntaxOfCall.ts | 1 + .../jsFileCompilationTypeAssertions.ts | 1 + .../jsFileCompilationTypeOfParameter.ts | 1 + ...leCompilationTypeParameterSyntaxOfClass.ts | 1 + ...ionTypeParameterSyntaxOfClassExpression.ts | 1 + ...ompilationTypeParameterSyntaxOfFunction.ts | 1 + .../jsFileCompilationTypeSyntaxOfVar.ts | 1 + ...ationWithDeclarationEmitPathSameAsInput.ts | 1 + ...leCompilationWithEnabledCompositeOption.ts | 1 + ...ileCompilationWithJsEmitPathSameAsInput.ts | 1 + .../jsFileCompilationWithMapFileAsJs.ts | 1 + ...ationWithMapFileAsJsWithInlineSourceMap.ts | 1 + ...ileCompilationWithMapFileAsJsWithOutDir.ts | 1 + .../compiler/jsFileCompilationWithOut.ts | 1 + ...OutDeclarationFileNameSameAsInputJsFile.ts | 1 + ...ilationWithOutFileNameSameAsInputJsFile.ts | 1 + .../jsFileCompilationWithoutJsExtensions.ts | 1 + .../compiler/jsFileCompilationWithoutOut.ts | 1 + .../compiler/jsFileESModuleWithEnumTag.ts | 1 + .../cases/compiler/jsFileFunctionOverloads.ts | 1 + .../compiler/jsFileFunctionOverloads2.ts | 1 + .../jsFileFunctionParametersAsOptional.ts | 1 + .../jsFileFunctionParametersAsOptional2.ts | 1 + tests/cases/compiler/jsFileMethodOverloads.ts | 1 + .../cases/compiler/jsFileMethodOverloads2.ts | 1 + .../cases/compiler/jsFileMethodOverloads3.ts | 1 + .../cases/compiler/jsFileMethodOverloads4.ts | 1 + .../cases/compiler/jsFileMethodOverloads5.ts | 1 + ...onWithPrototypeNoErrorTruncationNoCrash.ts | 1 + .../jsNegativeElementAccessNotBound.ts | 1 + ...NoImplicitAnyNoCascadingReferenceErrors.ts | 1 + ...sPropertyAssignedAfterMethodDeclaration.ts | 1 + ...AssignedAfterMethodDeclaration_nonError.ts | 1 + .../jsSelfReferencingArgumentsFunction.ts | 1 + tests/cases/compiler/jsdocAccessEnumType.ts | 1 + .../jsdocArrayObjectPromiseImplicitAny.ts | 1 + .../jsdocArrayObjectPromiseNoImplicitAny.ts | 1 + .../cases/compiler/jsdocBracelessTypeTag1.ts | 1 + tests/cases/compiler/jsdocCallbackAndType.ts | 1 + tests/cases/compiler/jsdocCastCommentEmit.ts | 1 + .../jsdocClassMissingTypeArguments.ts | 1 + ...jsdocFunctionClassPropertiesDeclaration.ts | 1 + .../jsdocFunctionTypeFalsePositive.ts | 1 + tests/cases/compiler/jsdocIllegalTags.ts | 1 + .../compiler/jsdocImportTypeNodeNamespace.ts | 1 + .../compiler/jsdocImportTypeResolution.ts | 1 + tests/cases/compiler/jsdocInTypeScript.ts | 2 + tests/cases/compiler/jsdocParamTagInvalid.ts | 1 + .../jsdocParamTagOnPropertyInitializer.ts | 1 + .../jsdocParameterParsingInfiniteLoop.ts | 1 + .../jsdocParameterParsingInvalidName.ts | 1 + .../cases/compiler/jsdocPropertyTagInvalid.ts | 1 + .../jsdocReferenceGlobalTypeInCommonJs.ts | 1 + .../jsdocResolveNameFailureInTypedef.ts | 1 + tests/cases/compiler/jsdocRestParameter.ts | 1 + .../cases/compiler/jsdocRestParameter_es6.ts | 1 + tests/cases/compiler/jsdocTypeCast.ts | 1 + .../jsdocTypeGenericInstantiationAttempt.ts | 1 + ...jsdocTypeNongenericInstantiationAttempt.ts | 1 + .../compiler/jsdocTypecastNoTypeNoCrash.ts | 1 + ...docTypedefBeforeParenthesizedExpression.ts | 1 + .../cases/compiler/jsdocTypedefMissingType.ts | 1 + .../jsdocTypedef_propertyWithNoType.ts | 1 + .../compiler/jsdocUnexpectedCharacter.ts | 1 + tests/cases/compiler/json.stringify.ts | 1 + .../jsonFileImportChecksCallCorrectlyTwice.ts | 1 + .../jsxAttributeMissingInitializer.tsx | 1 + .../jsxAttributeWithoutExpressionReact.tsx | 1 + .../jsxCallElaborationCheckNoCrash1.tsx | 1 + .../compiler/jsxCallbackWithDestructuring.tsx | 1 + .../jsxChildrenGenericContextualTypes.tsx | 1 + ...jsxChildrenIndividualErrorElaborations.tsx | 1 + ...dConfusableWithMultipleChildrenNoError.tsx | 1 + .../compiler/jsxClassAttributeResolution.tsx | 1 + ...xComplexSignatureHasApplicabilityError.tsx | 1 + .../cases/compiler/jsxComponentTypeErrors.tsx | 1 + ...OnlyTriviaWhiteSpacesNotCountedAsChild.tsx | 1 + ...DeclarationsWithEsModuleInteropNoCrash.tsx | 1 + .../compiler/jsxElementClassTooManyParams.tsx | 1 + tests/cases/compiler/jsxElementType.tsx | 1 + .../cases/compiler/jsxElementTypeLiteral.tsx | 1 + .../jsxElementTypeLiteralWithGeneric.tsx | 1 + .../compiler/jsxElementsAsIdentifierNames.tsx | 1 + .../compiler/jsxEmitAttributeWithPreserve.tsx | 1 + .../jsxEmptyExpressionNotCountedAsChild.tsx | 1 + .../jsxEmptyExpressionNotCountedAsChild2.tsx | 1 + .../jsxExcessPropsAndAssignability.tsx | 1 + .../jsxFactoryAndJsxFragmentFactory.tsx | 1 + ...ndJsxFragmentFactoryErrorNotIdentifier.tsx | 1 + .../jsxFactoryAndJsxFragmentFactoryNull.tsx | 1 + .../jsxFactoryButNoJsxFragmentFactory.tsx | 1 + ...jsxFragmentAndFactoryUsedOnFragmentUse.tsx | 1 + .../jsxFragmentFactoryNoUnusedLocals.tsx | 1 + ...ntWithSpreadingResultOfGenericFunction.tsx | 1 + tests/cases/compiler/jsxHasLiteralType.tsx | 1 + tests/cases/compiler/jsxHash.tsx | 1 + ...sxImportForSideEffectsNonExtantNoError.tsx | 1 + tests/cases/compiler/jsxImportInAttribute.tsx | 1 + .../jsxImportSourceNonPragmaComment.tsx | 1 + tests/cases/compiler/jsxInExtendsClause.tsx | 1 + .../jsxInferenceProducesLiteralAsExpected.tsx | 2 + ...aredUsingTemplateLiteralTypeSignatures.tsx | 1 + .../jsxIntrinsicElementsCompatability.tsx | 1 + .../jsxIntrinsicElementsExtendsRecord.tsx | 1 + ...jsxIntrinsicElementsTypeArgumentErrors.tsx | 1 + tests/cases/compiler/jsxIntrinsicUnions.tsx | 1 + ...uesErrorWhenTagExpectsTooManyArguments.tsx | 1 + ...xLibraryManagedAttributesUnusedGeneric.tsx | 1 + ...jsxLocalNamespaceIndexSignatureNoCrash.tsx | 1 + .../jsxMultilineAttributeStringValues.tsx | 1 + .../jsxMultilineAttributeValuesReact.tsx | 1 + ...ntChildrenAttributeIgnoredWhenReactJsx.tsx | 1 + .../compiler/jsxNamespaceGlobalReexport.tsx | 1 + ...espaceGlobalReexportMissingAliasTarget.tsx | 1 + ...jsxNamespaceImplicitImportJSXNamespace.tsx | 1 + ...NamespaceFromConfigPickedOverGlobalOne.tsx | 1 + ...NamespaceFromPragmaPickedOverGlobalOne.tsx | 1 + ...paceNoElementChildrenAttributeReactJsx.tsx | 1 + .../compiler/jsxNamespacePrefixInName.tsx | 1 + .../jsxNamespacePrefixInNameReact.tsx | 1 + .../compiler/jsxNamespacePrefixIntrinsics.tsx | 1 + .../cases/compiler/jsxNamespaceReexports.tsx | 1 + .../jsxNestedWithinTernaryParsesCorrectly.tsx | 1 + tests/cases/compiler/jsxPartialSpread.tsx | 1 + .../cases/compiler/jsxPreserveWithJsInput.ts | 1 + .../compiler/jsxPropsAsIdentifierNames.tsx | 1 + tests/cases/compiler/jsxRuntimePragma.ts | 1 + .../compiler/jsxSpreadFirstUnionNoErrors.tsx | 1 + tests/cases/compiler/jsxViaImport.2.tsx | 1 + tests/cases/compiler/jsxViaImport.tsx | 1 + tests/cases/compiler/keepImportsInDts1.ts | 1 + tests/cases/compiler/keepImportsInDts2.ts | 1 + tests/cases/compiler/keepImportsInDts3.ts | 1 + tests/cases/compiler/keepImportsInDts4.ts | 1 + .../compiler/keyRemappingKeyofResult2.ts | 1 + .../compiler/keyofDoesntContainSymbols.ts | 1 + .../keyofGenericExtendingClassDoubleLayer.ts | 1 + .../compiler/keyofIsLiteralContexualType.ts | 1 + .../keyofModuleObjectHasCorrectKeys.ts | 1 + .../keywordExpressionInternalComments.ts | 1 + tests/cases/compiler/keywordField.ts | 1 + .../cases/compiler/keywordInJsxIdentifier.tsx | 1 + tests/cases/compiler/knockout.ts | 1 + tests/cases/compiler/lambdaASIEmit.ts | 1 + tests/cases/compiler/lambdaArgCrash.ts | 1 + tests/cases/compiler/lambdaExpression.ts | 1 + tests/cases/compiler/lambdaParamTypes.ts | 1 + ...terWithTupleArgsHasCorrectAssignability.ts | 1 + tests/cases/compiler/lambdaPropSelf.ts | 1 + tests/cases/compiler/largeControlFlowGraph.ts | 1 + tests/cases/compiler/largeTupleTypes.ts | 1 + .../compiler/lastPropertyInLiteralWins.ts | 1 + .../lateBoundConstraintTypeChecksCorrectly.ts | 1 + .../lateBoundDestructuringImplicitAnyError.ts | 1 + tests/cases/compiler/letAsIdentifier.ts | 1 + .../compiler/letAsIdentifierInStrictMode.ts | 1 + tests/cases/compiler/letInNonStrictMode.ts | 1 + .../compiler/letKeepNamesOfTopLevelItems.ts | 1 + .../letShadowedByNameInNestedScope.ts | 1 + tests/cases/compiler/libMembers.ts | 1 + tests/cases/compiler/libReplacement.ts | 1 + .../compiler/libTypeScriptOverrideSimple.ts | 1 + .../libTypeScriptOverrideSimpleConfig.ts | 1 + .../compiler/libTypeScriptSubfileResolving.ts | 1 + .../libTypeScriptSubfileResolvingConfig.ts | 1 + tests/cases/compiler/libdtsFix.ts | 1 + tests/cases/compiler/library_ArraySlice.ts | 1 + .../library_DatePrototypeProperties.ts | 1 + .../library_ObjectPrototypeProperties.ts | 1 + .../compiler/library_RegExpExecArraySlice.ts | 1 + tests/cases/compiler/library_StringSlice.ts | 1 + tests/cases/compiler/lift.ts | 1 + .../cases/compiler/limitDeepInstantiations.ts | 1 + tests/cases/compiler/listFailure.ts | 1 + .../literalFreshnessPropagationOnNarrowing.ts | 1 + .../literalIntersectionYieldsLiteral.ts | 1 + .../literalTypeNameAssertionNotTriggered.ts | 2 + ...eralWideningWithCompoundLikeAssignments.ts | 1 + tests/cases/compiler/literals-negative.ts | 3 +- tests/cases/compiler/literals1.ts | 1 + .../compiler/literalsInComputedProperties1.ts | 1 + .../compiler/localAliasExportAssignment.ts | 1 + tests/cases/compiler/localClassesInLoop.ts | 1 + .../compiler/localImportNameVsGlobalName.ts | 1 + tests/cases/compiler/localRequireFunction.ts | 1 + .../localTypeParameterInferencePriority.ts | 1 + .../localVariablesReturnedFromCatchBlocks.ts | 1 + tests/cases/compiler/logicalNotExpression1.ts | 1 + .../compiler/longObjectInstantiationChain1.ts | 1 + .../compiler/longObjectInstantiationChain2.ts | 1 + .../compiler/longObjectInstantiationChain3.ts | 1 + tests/cases/compiler/m7Bugs.ts | 1 + .../manyCompilerErrorsInTheTwoFiles.ts | 1 + tests/cases/compiler/mapOnTupleTypes01.ts | 1 + tests/cases/compiler/mapOnTupleTypes02.ts | 1 + .../compiler/mappedArrayTupleIntersections.ts | 1 + .../mappedToToIndexSignatureInference.ts | 1 + .../mappedTypeAndIndexSignatureRelation.ts | 1 + .../compiler/mappedTypeAsStringTemplate.ts | 1 + .../mappedTypeCircularReferenceInAccessor.ts | 1 + .../mappedTypeContextualTypesApplied.ts | 1 + .../mappedTypeGenericIndexedAccess.ts | 1 + ...nericInstantiationPreservesHomomorphism.ts | 1 + ...GenericInstantiationPreservesInlineForm.ts | 1 + .../mappedTypeGenericWithKnownKeys.ts | 1 + .../cases/compiler/mappedTypeIndexedAccess.ts | 1 + .../mappedTypeIndexedAccessConstraint.ts | 1 + .../mappedTypeInferenceAliasSubstitution.ts | 1 + .../mappedTypeInferenceCircularity.ts | 1 + .../mappedTypeInferenceFromApparentType.ts | 1 + .../mappedTypeInferenceToMappedType.ts | 1 + .../compiler/mappedTypeMultiInference.ts | 1 + .../mappedTypeNestedGenericInstantiation.ts | 1 + .../cases/compiler/mappedTypeNoTypeNoCrash.ts | 1 + .../mappedTypeNotMistakenlyHomomorphic.ts | 1 + ...rayWithBareAnyRestCanBeUsedAsRestParam1.ts | 1 + .../compiler/mappedTypeParameterConstraint.ts | 1 + .../compiler/mappedTypePartialConstraints.ts | 1 + ...TypePartialNonHomomorphicBaseConstraint.ts | 1 + .../compiler/mappedTypeRecursiveInference.ts | 1 + .../compiler/mappedTypeRecursiveInference2.ts | 1 + .../mappedTypeTupleConstraintAssignability.ts | 1 + ...peUnionConstrainTupleTreatedAsArrayLike.ts | 1 + .../mappedTypeUnionConstraintInferences.ts | 1 + .../mappedTypeWithCombinedTypeMappers.ts | 1 + ...pedTypeWithNameClauseAppliedToArrayType.ts | 1 + .../compiler/matchReturnTypeInAllBranches.ts | 1 + .../matchingOfObjectLiteralConstraints.ts | 1 + tests/cases/compiler/maxConstraints.ts | 1 + .../maxNodeModuleJsDepthDefaultsToZero.ts | 1 + .../compiler/maximum10SpellingSuggestions.ts | 1 + .../memberAccessMustUseModuleInstances.ts | 1 + .../compiler/memberAccessOnConstructorType.ts | 1 + tests/cases/compiler/memberOverride.ts | 1 + tests/cases/compiler/memberScope.ts | 1 + .../compiler/memberVariableDeclarations1.ts | 1 + .../mergeMultipleInterfacesReexported.ts | 1 + .../compiler/mergeSymbolReexportInterface.ts | 1 + ...eSymbolReexportedTypeAliasInstantiation.ts | 1 + .../compiler/mergeSymbolRexportFunction.ts | 1 + .../compiler/mergeWithImportedNamespace.ts | 1 + tests/cases/compiler/mergeWithImportedType.ts | 1 + .../mergedClassNamespaceRecordCast.ts | 1 + .../mergedClassWithNamespacePrototype.ts | 1 + .../compiler/mergedDeclarationExports.ts | 1 + tests/cases/compiler/mergedDeclarations1.ts | 1 + tests/cases/compiler/mergedDeclarations2.ts | 1 + tests/cases/compiler/mergedDeclarations3.ts | 1 + tests/cases/compiler/mergedDeclarations4.ts | 1 + tests/cases/compiler/mergedDeclarations5.ts | 1 + tests/cases/compiler/mergedDeclarations6.ts | 1 + tests/cases/compiler/mergedDeclarations7.ts | 1 + .../compiler/mergedEnumDeclarationCodeGen.ts | 1 + .../compiler/mergedInstantiationAssignment.ts | 1 + .../mergedInterfaceFromMultipleFiles1.ts | 1 + .../mergedModuleDeclarationCodeGen.ts | 1 + .../mergedModuleDeclarationCodeGen2.ts | 1 + .../mergedModuleDeclarationCodeGen3.ts | 1 + .../mergedModuleDeclarationCodeGen4.ts | 1 + .../mergedModuleDeclarationCodeGen5.ts | 1 + ...dModuleDeclarationWithSharedExportedVar.ts | 1 + tests/cases/compiler/metadataImportType.ts | 1 + .../cases/compiler/metadataOfStringLiteral.ts | 1 + tests/cases/compiler/metadataOfUnion.ts | 1 + .../cases/compiler/metadataOfUnionWithNull.ts | 1 + tests/cases/compiler/methodChainError.ts | 1 + tests/cases/compiler/methodInAmbientClass1.ts | 1 + .../methodSignatureDeclarationEmit1.ts | 1 + ...ignatureHandledDeclarationKindForSymbol.ts | 1 + .../mismatchedClassConstructorVariable.ts | 1 + ...hedExplicitTypeParameterAndArgumentType.ts | 1 + .../compiler/mismatchedGenericArguments1.ts | 1 + tests/cases/compiler/missingArgument1.ts | 1 + tests/cases/compiler/missingCloseBrace.ts | 1 + .../missingCloseBraceInObjectLiteral.ts | 1 + .../compiler/missingCloseBracketInArray.ts | 1 + .../compiler/missingCloseParenStatements.ts | 1 + .../missingCommaInTemplateStringsArray.ts | 1 + tests/cases/compiler/missingDiscriminants.ts | 1 + tests/cases/compiler/missingDiscriminants2.ts | 1 + .../compiler/missingDomElement_UsingDomLib.ts | 1 + tests/cases/compiler/missingDomElements.ts | 1 + .../compiler/missingFunctionImplementation.ts | 1 + .../missingFunctionImplementation2.ts | 1 + .../missingImportAfterModuleImport.ts | 1 + .../missingMemberErrorHasShortPath.ts | 1 + .../missingPropertiesOfClassExpression.ts | 1 + .../compiler/missingRequiredDeclare.d.ts | 1 + .../cases/compiler/missingReturnStatement.ts | 1 + .../cases/compiler/missingReturnStatement1.ts | 1 + tests/cases/compiler/missingSelf.ts | 1 + .../missingSemicolonInModuleSpecifier.ts | 1 + tests/cases/compiler/missingTypeArguments1.ts | 1 + tests/cases/compiler/missingTypeArguments2.ts | 1 + tests/cases/compiler/missingTypeArguments3.ts | 1 + .../compiler/misspelledJsDocTypedefTags.ts | 1 + .../compiler/misspelledNewMetaProperty.ts | 3 +- tests/cases/compiler/mixedExports.ts | 1 + .../mixedStaticAndInstanceClassMembers.ts | 1 + .../cases/compiler/mixedTypeEnumComparison.ts | 1 + .../mixinIntersectionIsValidbaseType.ts | 1 + .../compiler/mixinOverMappedTypeNoCrash.ts | 1 + .../compiler/mixinPrivateAndProtected.ts | 1 + .../compiler/mixingApparentTypeOverrides.ts | 1 + .../mixingFunctionAndAmbientModule1.ts | 1 + .../mixingStaticAndInstanceOverloads.ts | 1 + tests/cases/compiler/modFunctionCrash.ts | 1 + tests/cases/compiler/modKeyword.ts | 1 + tests/cases/compiler/modifierOnParameter1.ts | 1 + .../compiler/modifiersInObjectLiterals.ts | 1 + .../modifiersOnInterfaceIndexSignature1.ts | 1 + ...knownSymbolWithOutES6WellknownSymbolLib.ts | 3 +- ...gES5LibES6ArrayLibES6WellknownSymbolLib.ts | 1 + .../compiler/moduleAliasAsFunctionArgument.ts | 1 + tests/cases/compiler/moduleAliasInterface.ts | 1 + .../compiler/moduleAndInterfaceSharingName.ts | 1 + .../moduleAndInterfaceSharingName2.ts | 1 + .../moduleAndInterfaceSharingName3.ts | 1 + .../moduleAndInterfaceSharingName4.ts | 1 + .../moduleAndInterfaceWithSameName.ts | 1 + tests/cases/compiler/moduleAsBaseType.ts | 1 + .../cases/compiler/moduleAssignmentCompat1.ts | 1 + .../cases/compiler/moduleAssignmentCompat2.ts | 1 + .../cases/compiler/moduleAssignmentCompat3.ts | 1 + .../cases/compiler/moduleAssignmentCompat4.ts | 1 + ...gmentationCollidingNamesInAugmentation1.ts | 1 + .../moduleAugmentationDeclarationEmit1.ts | 1 + .../moduleAugmentationDeclarationEmit2.ts | 1 + .../moduleAugmentationDisallowedExtensions.ts | 1 + ...ugmentationDoesInterfaceMergeOfReexport.ts | 1 + ...ntationDoesNamespaceEnumMergeOfReexport.ts | 1 + ...ugmentationDoesNamespaceMergeOfReexport.ts | 1 + ...AugmentationDuringSyntheticDefaultCheck.ts | 2 + ...entationEnumClassMergeOfReexportIsError.ts | 1 + .../moduleAugmentationExtendAmbientModule1.ts | 1 + .../moduleAugmentationExtendAmbientModule2.ts | 1 + .../moduleAugmentationExtendFileModule1.ts | 1 + .../moduleAugmentationExtendFileModule2.ts | 1 + .../compiler/moduleAugmentationGlobal1.ts | 1 + .../compiler/moduleAugmentationGlobal2.ts | 1 + .../compiler/moduleAugmentationGlobal3.ts | 1 + .../compiler/moduleAugmentationGlobal4.ts | 1 + .../compiler/moduleAugmentationGlobal5.ts | 1 + .../compiler/moduleAugmentationGlobal6.ts | 1 + .../compiler/moduleAugmentationGlobal6_1.ts | 1 + .../compiler/moduleAugmentationGlobal7.ts | 1 + .../compiler/moduleAugmentationGlobal7_1.ts | 1 + .../moduleAugmentationImportsAndExports1.ts | 1 + .../moduleAugmentationImportsAndExports2.ts | 1 + .../moduleAugmentationImportsAndExports3.ts | 1 + .../moduleAugmentationImportsAndExports4.ts | 1 + .../moduleAugmentationImportsAndExports5.ts | 1 + .../moduleAugmentationImportsAndExports6.ts | 1 + .../moduleAugmentationInAmbientModule1.ts | 1 + .../moduleAugmentationInAmbientModule2.ts | 1 + .../moduleAugmentationInAmbientModule3.ts | 1 + .../moduleAugmentationInAmbientModule4.ts | 1 + .../moduleAugmentationInAmbientModule5.ts | 1 + .../moduleAugmentationInDependency.ts | 1 + .../moduleAugmentationInDependency2.ts | 1 + .../compiler/moduleAugmentationNoNewNames.ts | 1 + .../compiler/moduleAugmentationOfAlias.ts | 1 + ...eAugmentationWithNonExistentNamedImport.ts | 1 + .../compiler/moduleAugmentationsImports1.ts | 1 + .../compiler/moduleAugmentationsImports2.ts | 1 + .../compiler/moduleAugmentationsImports3.ts | 1 + .../compiler/moduleAugmentationsImports4.ts | 1 + .../compiler/moduleClassArrayCodeGenTest.ts | 1 + tests/cases/compiler/moduleCodeGenTest3.ts | 1 + tests/cases/compiler/moduleCodeGenTest5.ts | 1 + tests/cases/compiler/moduleCodegenTest4.ts | 1 + tests/cases/compiler/moduleCrashBug1.ts | 1 + ...tionExportStarShadowingGlobalIsNameable.ts | 1 + .../compiler/moduleDuplicateIdentifiers.ts | 1 + .../compiler/moduleElementsInWrongContext.ts | 1 + .../compiler/moduleElementsInWrongContext2.ts | 1 + .../compiler/moduleElementsInWrongContext3.ts | 1 + tests/cases/compiler/moduleExports1.ts | 1 + ...ExcessPropertyCheckFromContainedLiteral.ts | 1 + .../compiler/moduleExportsUnaryExpression.ts | 1 + tests/cases/compiler/moduleIdentifiers.ts | 3 +- tests/cases/compiler/moduleImport.ts | 3 +- .../moduleImportedForTypeArgumentPosition.ts | 1 + tests/cases/compiler/moduleInTypePosition1.ts | 1 + .../cases/compiler/moduleKeywordDeprecated.ts | 1 + .../compiler/moduleKeywordRepeatError.ts | 1 + ...duleLocalImportNotIncorrectlyRedirected.ts | 1 + .../moduleMemberMissingErrorIsRelative.ts | 1 + .../moduleMemberWithoutTypeAnnotation1.ts | 3 +- .../moduleMemberWithoutTypeAnnotation2.ts | 1 + tests/cases/compiler/moduleMerge.ts | 1 + .../cases/compiler/moduleMergeConstructor.ts | 1 + tests/cases/compiler/moduleNewExportBug.ts | 1 + tests/cases/compiler/moduleNoEmit.ts | 1 + tests/cases/compiler/moduleNoneErrors.ts | 1 + tests/cases/compiler/moduleNoneOutFile.ts | 1 + .../compiler/moduleOuterQualification.ts | 1 + tests/cases/compiler/modulePrologueAMD.ts | 1 + .../cases/compiler/modulePrologueCommonjs.ts | 1 + tests/cases/compiler/modulePrologueSystem.ts | 1 + tests/cases/compiler/modulePrologueUmd.ts | 1 + tests/cases/compiler/moduleProperty1.ts | 1 + tests/cases/compiler/moduleProperty2.ts | 1 + .../compiler/moduleRedifinitionErrors.ts | 1 + .../compiler/moduleReopenedTypeOtherBlock.ts | 1 + .../compiler/moduleReopenedTypeSameBlock.ts | 1 + ...oduleResolutionAsTypeReferenceDirective.ts | 1 + ...solutionAsTypeReferenceDirectiveAmbient.ts | 1 + ...esolutionAsTypeReferenceDirectiveScoped.ts | 1 + .../compiler/moduleResolutionNoResolve.ts | 1 + .../cases/compiler/moduleResolutionNoTsCJS.ts | 1 + .../cases/compiler/moduleResolutionNoTsESM.ts | 1 + ...ionPackageIdWithRelativeAndAbsolutePath.ts | 1 + ...leResolutionWithExtensions_notSupported.ts | 1 + ...eResolutionWithExtensions_notSupported2.ts | 1 + ...eResolutionWithExtensions_notSupported3.ts | 1 + ...duleResolutionWithExtensions_unexpected.ts | 1 + ...uleResolutionWithExtensions_unexpected2.ts | 1 + ...lutionWithExtensions_withAmbientPresent.ts | 1 + ...oduleResolutionWithExtensions_withPaths.ts | 1 + .../compiler/moduleResolutionWithRequire.ts | 1 + .../moduleResolutionWithRequireAndImport.ts | 1 + .../moduleResolutionWithSuffixes_empty.ts | 1 + ...duleResolutionWithSuffixes_notSpecified.ts | 1 + .../moduleResolutionWithSuffixes_one.ts | 1 + .../moduleResolutionWithSuffixes_oneBlank.ts | 1 + ...oduleResolutionWithSuffixes_oneNotFound.ts | 1 + ...tionWithSuffixes_one_dirModuleWithIndex.ts | 1 + ...solutionWithSuffixes_one_externalModule.ts | 1 + ...tionWithSuffixes_one_externalModulePath.ts | 1 + ...thSuffixes_one_externalModule_withPaths.ts | 1 + ...lutionWithSuffixes_one_externalTSModule.ts | 1 + ...duleResolutionWithSuffixes_one_jsModule.ts | 1 + ...leResolutionWithSuffixes_one_jsonModule.ts | 1 + ...esolutionWithSuffixes_threeLastIsBlank1.ts | 1 + ...esolutionWithSuffixes_threeLastIsBlank2.ts | 1 + ...esolutionWithSuffixes_threeLastIsBlank3.ts | 1 + ...esolutionWithSuffixes_threeLastIsBlank4.ts | 1 + .../compiler/moduleResolutionWithSymlinks.ts | 1 + ...ResolutionWithSymlinks_notInNodeModules.ts | 1 + ...ResolutionWithSymlinks_preserveSymlinks.ts | 1 + ...leResolutionWithSymlinks_referenceTypes.ts | 1 + ...moduleResolutionWithSymlinks_withOutDir.ts | 1 + ...eResolution_automaticTypeDirectiveNames.ts | 1 + .../moduleResolution_classicPrefersTs.ts | 1 + ...uleResolution_explicitNodeModulesImport.ts | 1 + ...n_explicitNodeModulesImport_implicitAny.ts | 1 + .../compiler/moduleResolution_noLeadingDot.ts | 1 + ...Resolution_packageJson_notAtPackageRoot.ts | 1 + ...Json_notAtPackageRoot_fakeScopedPackage.ts | 1 + ...uleResolution_packageJson_scopedPackage.ts | 1 + ...Resolution_packageJson_yesAtPackageRoot.ts | 1 + ...Json_yesAtPackageRoot_fakeScopedPackage.ts | 1 + ...esAtPackageRoot_mainFieldInSubDirectory.ts | 1 + .../moduleResolution_relativeImportJsFile.ts | 1 + ...tion_relativeImportJsFile_noImplicitAny.ts | 1 + ...duleSameValueDuplicateExportedBindings1.ts | 1 + ...duleSameValueDuplicateExportedBindings2.ts | 1 + tests/cases/compiler/moduleScopingBug.ts | 1 + ...SharesNameWithImportDeclarationInsideIt.ts | 3 +- ...haresNameWithImportDeclarationInsideIt2.ts | 3 +- ...haresNameWithImportDeclarationInsideIt3.ts | 3 +- ...haresNameWithImportDeclarationInsideIt4.ts | 3 +- ...haresNameWithImportDeclarationInsideIt5.ts | 3 +- ...haresNameWithImportDeclarationInsideIt6.ts | 3 +- tests/cases/compiler/moduleSymbolMerging.ts | 1 + .../compiler/moduleUnassignedVariable.ts | 1 + .../compiler/moduleVariableArrayIndexer.ts | 1 + tests/cases/compiler/moduleVariables.ts | 1 + tests/cases/compiler/moduleVisibilityTest1.ts | 1 + tests/cases/compiler/moduleVisibilityTest2.ts | 1 + tests/cases/compiler/moduleVisibilityTest3.ts | 1 + tests/cases/compiler/moduleVisibilityTest4.ts | 1 + .../compiler/moduleWithNoValuesAsType.ts | 1 + .../cases/compiler/moduleWithTryStatement1.ts | 1 + .../cases/compiler/moduleWithValuesAsType.ts | 1 + .../module_augmentExistingAmbientVariable.ts | 1 + .../module_augmentExistingVariable.ts | 1 + .../module_augmentUninstantiatedModule.ts | 1 + .../module_augmentUninstantiatedModule2.ts | 1 + tests/cases/compiler/multiCallOverloads.ts | 1 + .../compiler/multiExtendsSplitInterfaces1.ts | 1 + .../compiler/multiExtendsSplitInterfaces2.ts | 1 + tests/cases/compiler/multiImportExport.ts | 1 + .../multiLineContextDiagnosticWithPretty.ts | 1 + tests/cases/compiler/multiLineErrors.ts | 1 + ...nePropertyAccessAndArrowFunctionIndent1.ts | 1 + tests/cases/compiler/multiModuleClodule1.ts | 1 + tests/cases/compiler/multiModuleFundule1.ts | 1 + .../compiler/multiSignatureTypeInference.ts | 1 + ...BaseInterfaesWithIncompatibleProperties.ts | 1 + ...aseInterfaesWithIncompatibleProperties2.ts | 1 + .../multipleClassPropertyModifiers.ts | 1 + .../multipleClassPropertyModifiersErrors.ts | 1 + .../compiler/multipleExportAssignments.ts | 1 + ...leExportAssignmentsInAmbientDeclaration.ts | 1 + tests/cases/compiler/multipleExports.ts | 1 + .../compiler/multipleInferenceContexts.ts | 1 + tests/cases/compiler/multipleInheritance.ts | 1 + tests/cases/compiler/multivar.ts | 1 + tests/cases/compiler/mutrec.ts | 1 + .../compiler/mutuallyRecursiveCallbacks.ts | 1 + .../mutuallyRecursiveGenericBaseTypes1.ts | 1 + .../mutuallyRecursiveGenericBaseTypes2.ts | 1 + .../compiler/mutuallyRecursiveInference.ts | 1 + .../mutuallyRecursiveInterfaceDeclaration.ts | 1 + tests/cases/compiler/nameCollisions.ts | 1 + .../nameCollisionsInPropertyAssignments.ts | 1 + ...nctionExpressionAssignedToClassProperty.ts | 1 + .../compiler/namedFunctionExpressionCall.ts | 1 + .../namedFunctionExpressionCallErrors.ts | 1 + .../namedFunctionExpressionInModule.ts | 1 + .../compiler/namedImportNonExistentName.ts | 2 + .../namespaceDisambiguationInUnion.ts | 1 + ...aceMergedWithFunctionWithOverloadsUsage.ts | 2 + .../namespaceMergedWithImportAliasNoCrash.ts | 1 + ...spaceNotMergedWithFunctionDefaultExport.ts | 1 + tests/cases/compiler/namespaces1.ts | 1 + tests/cases/compiler/namespaces2.ts | 1 + .../cases/compiler/namespacesDeclaration1.ts | 1 + .../cases/compiler/namespacesDeclaration2.ts | 1 + ...namespacesWithTypeAliasOnlyExportsMerge.ts | 1 + tests/cases/compiler/nanEquality.ts | 1 + .../compiler/narrowByBooleanComparison.ts | 1 + .../narrowByClauseExpressionInSwitchTrue1.ts | 1 + .../narrowByClauseExpressionInSwitchTrue10.ts | 1 + .../narrowByClauseExpressionInSwitchTrue2.ts | 1 + .../narrowByClauseExpressionInSwitchTrue3.ts | 1 + .../narrowByClauseExpressionInSwitchTrue4.ts | 1 + .../narrowByClauseExpressionInSwitchTrue5.ts | 1 + .../narrowByClauseExpressionInSwitchTrue6.ts | 1 + .../narrowByClauseExpressionInSwitchTrue7.ts | 1 + .../narrowByClauseExpressionInSwitchTrue8.ts | 1 + .../narrowByClauseExpressionInSwitchTrue9.ts | 1 + tests/cases/compiler/narrowByEquality.ts | 1 + tests/cases/compiler/narrowByInstanceof.ts | 1 + .../narrowByParenthesizedSwitchExpression.ts | 1 + ...arrowBySwitchDiscriminantUndefinedCase1.ts | 1 + .../narrowCommaOperatorNestedWithinLHS.ts | 1 + ...ParameterBIndingElementNameInInnerScope.ts | 1 + ...alChainContainmentEvolvingArrayNoCrash1.ts | 1 + .../cases/compiler/narrowTypeByInstanceof.ts | 3 +- .../compiler/narrowUnknownByTypePredicate.ts | 1 + .../compiler/narrowUnknownByTypeofObject.ts | 1 + tests/cases/compiler/narrowedConstInMethod.ts | 1 + tests/cases/compiler/narrowedImports.ts | 2 + .../narrowedImports_assumeInitialized.ts | 2 + ...wingAssignmentReadonlyRespectsAssertion.ts | 1 + .../compiler/narrowingByDiscriminantInLoop.ts | 1 + .../compiler/narrowingByTypeofInSwitch.ts | 1 + .../narrowingConstrainedTypeParameter.ts | 1 + .../cases/compiler/narrowingDestructuring.ts | 1 + ...ngInCaseClauseAfterCaseClauseWithReturn.ts | 1 + tests/cases/compiler/narrowingIntersection.ts | 1 + .../cases/compiler/narrowingMutualSubtypes.ts | 1 + tests/cases/compiler/narrowingNoInfer1.ts | 1 + .../cases/compiler/narrowingOfDottedNames.ts | 1 + .../compiler/narrowingOfQualifiedNames.ts | 1 + .../compiler/narrowingOrderIndependent.ts | 1 + .../compiler/narrowingPlainJsNoCrash1.ts | 1 + .../compiler/narrowingRestGenericCall.ts | 1 + tests/cases/compiler/narrowingTruthyObject.ts | 1 + .../compiler/narrowingTypeofDiscriminant.ts | 1 + .../cases/compiler/narrowingTypeofFunction.ts | 1 + tests/cases/compiler/narrowingTypeofObject.ts | 1 + .../compiler/narrowingTypeofParenthesized1.ts | 1 + .../compiler/narrowingTypeofUndefined1.ts | 1 + .../compiler/narrowingTypeofUndefined2.ts | 1 + .../narrowingUnionToNeverAssigment.ts | 1 + tests/cases/compiler/narrowingUnionToUnion.ts | 1 + .../cases/compiler/narrowingUnionWithBang.ts | 1 + .../narrowingWithNonNullExpression.ts | 1 + tests/cases/compiler/nativeToBoxedTypes.ts | 1 + ...nearbyIdenticalGenericLambdasAssignable.ts | 1 + tests/cases/compiler/negativeZero.ts | 1 + .../compiler/nestedBlockScopedBindings1.ts | 1 + .../compiler/nestedBlockScopedBindings10.ts | 1 + .../compiler/nestedBlockScopedBindings11.ts | 1 + .../compiler/nestedBlockScopedBindings12.ts | 1 + .../compiler/nestedBlockScopedBindings13.ts | 1 + .../compiler/nestedBlockScopedBindings14.ts | 1 + .../compiler/nestedBlockScopedBindings15.ts | 1 + .../compiler/nestedBlockScopedBindings16.ts | 1 + .../compiler/nestedBlockScopedBindings2.ts | 1 + .../compiler/nestedBlockScopedBindings3.ts | 1 + .../compiler/nestedBlockScopedBindings4.ts | 1 + .../compiler/nestedBlockScopedBindings5.ts | 1 + .../compiler/nestedBlockScopedBindings6.ts | 1 + .../compiler/nestedBlockScopedBindings7.ts | 1 + .../compiler/nestedBlockScopedBindings8.ts | 1 + .../compiler/nestedBlockScopedBindings9.ts | 1 + .../nestedCallbackErrorNotFlattened.ts | 1 + .../compiler/nestedExcessPropertyChecking.ts | 1 + tests/cases/compiler/nestedFreshLiteral.ts | 1 + ...ricConditionalTypeWithGenericImportType.ts | 1 + .../compiler/nestedGenericSpreadInference.ts | 1 + tests/cases/compiler/nestedGenerics.ts | 1 + .../compiler/nestedGlobalNamespaceInClass.ts | 1 + ...omorphicMappedTypesWithArrayConstraint1.ts | 1 + tests/cases/compiler/nestedIfStatement.ts | 1 + tests/cases/compiler/nestedIndexer.ts | 1 + .../nestedInfinitelyExpandedRecursiveTypes.ts | 1 + tests/cases/compiler/nestedLoopTypeGuards.ts | 1 + .../compiler/nestedModulePrivateAccess.ts | 1 + .../nestedRecursiveArraysOrObjectsError01.ts | 1 + tests/cases/compiler/nestedRecursiveLambda.ts | 1 + tests/cases/compiler/nestedSelf.ts | 1 + tests/cases/compiler/nestedThisContainer.ts | 1 + .../nestedTypeVariableInfersLiteral.ts | 1 + .../compiler/nestedUnaryExpressionHang.ts | 1 + .../cases/compiler/neverAsDiscriminantType.ts | 1 + .../neverNullishThroughParentheses.ts | 1 + tests/cases/compiler/newAbstractInstance.ts | 1 + tests/cases/compiler/newAbstractInstance2.ts | 1 + tests/cases/compiler/newArrays.ts | 1 + tests/cases/compiler/newExpressionWithCast.ts | 1 + ...arameterConstrainedToOuterTypeParameter.ts | 1 + .../cases/compiler/newFunctionImplicitAny.ts | 1 + tests/cases/compiler/newLineFlagWithCRLF.ts | 1 + tests/cases/compiler/newLineFlagWithLF.ts | 1 + .../compiler/newLineInTypeofInstantiation.ts | 1 + tests/cases/compiler/newMap.ts | 1 + tests/cases/compiler/newMissingIdentifier.ts | 1 + tests/cases/compiler/newNonReferenceType.ts | 1 + tests/cases/compiler/newOnInstanceSymbol.ts | 1 + tests/cases/compiler/newOperator.ts | 3 +- .../compiler/noBundledEmitFromNodeModules.ts | 1 + tests/cases/compiler/noCatchBlock.ts | 1 + .../compiler/noCheckDoesNotReportError.ts | 1 + tests/cases/compiler/noCheckNoEmit.ts | 1 + .../noCheckRequiresEmitDeclarationOnly.ts | 1 + ...itionOnExportOfPrivateInMergedNamespace.ts | 2 + .../noCircularitySelfReferentialGetter1.ts | 1 + .../noCircularitySelfReferentialGetter2.ts | 1 + .../noCircularitySelfReferentialGetter3.ts | 1 + .../noCircularitySelfReferentialGetter4.ts | 1 + ...CollisionThisExpressionAndClassInGlobal.ts | 1 + ...ionThisExpressionAndLocalVarInAccessors.ts | 1 + ...nThisExpressionAndLocalVarInConstructor.ts | 1 + ...sionThisExpressionAndLocalVarInFunction.ts | 1 + ...lisionThisExpressionAndLocalVarInLambda.ts | 1 + ...lisionThisExpressionAndLocalVarInMethod.ts | 1 + ...sionThisExpressionAndLocalVarInProperty.ts | 1 + ...noCollisionThisExpressionAndVarInGlobal.ts | 1 + ...nThisExpressionInFunctionAndVarInGlobal.ts | 1 + .../compiler/noConstraintInReturnType1.ts | 1 + .../compiler/noCrashOnImportShadowing.ts | 1 + tests/cases/compiler/noCrashOnMixin.ts | 1 + tests/cases/compiler/noCrashOnMixin2.ts | 1 + tests/cases/compiler/noCrashOnNoLib.ts | 1 + .../noCrashOnParameterNamedRequire.ts | 1 + .../cases/compiler/noCrashOnThisTypeUsage.ts | 1 + .../noCrashUMDMergedWithGlobalValue.ts | 1 + ...imModuleSyntaxAndImportsNotUsedAsValues.ts | 2 + tests/cases/compiler/noEmitAndComposite.ts | 1 + .../noEmitAndCompositeListFilesOnly.ts | 1 + tests/cases/compiler/noEmitAndIncremental.ts | 1 + .../noEmitAndIncrementalListFilesOnly.ts | 1 + tests/cases/compiler/noEmitHelpers.ts | 1 + tests/cases/compiler/noEmitOnError.ts | 1 + tests/cases/compiler/noErrorTruncation.ts | 1 + ...ortModuleAugmentationInDeclarationFile1.ts | 3 +- ...ortModuleAugmentationInDeclarationFile2.ts | 3 +- ...ortModuleAugmentationInDeclarationFile3.ts | 3 +- tests/cases/compiler/noErrorsInCallback.ts | 1 + .../compiler/noExcessiveStackDepthError.ts | 1 + ...AndPrivateMembersWithoutTypeAnnotations.ts | 1 + ...ImplicitAnyDestructuringInPrivateMethod.ts | 1 + ...citAnyDestructuringParameterDeclaration.ts | 1 + ...oImplicitAnyDestructuringVarDeclaration.ts | 1 + ...ImplicitAnyDestructuringVarDeclaration2.ts | 1 + tests/cases/compiler/noImplicitAnyForIn.ts | 3 +- .../noImplicitAnyForMethodParameters.ts | 1 + ...noImplicitAnyForwardReferencedInterface.ts | 3 +- ...ImplicitAnyFunctionExpressionAssignment.ts | 1 + .../cases/compiler/noImplicitAnyFunctions.ts | 1 + .../compiler/noImplicitAnyInBareInterface.ts | 3 +- .../compiler/noImplicitAnyInCastExpression.ts | 3 +- ...tAnyInContextuallyTypesFunctionParamter.ts | 1 + tests/cases/compiler/noImplicitAnyIndexing.ts | 3 +- .../noImplicitAnyIndexingSuppressed.ts | 3 +- .../cases/compiler/noImplicitAnyLoopCrash.ts | 1 + tests/cases/compiler/noImplicitAnyModule.ts | 3 +- .../noImplicitAnyNamelessParameter.ts | 1 + .../noImplicitAnyParametersInAmbientClass.ts | 3 +- ...ImplicitAnyParametersInAmbientFunctions.ts | 3 +- .../noImplicitAnyParametersInAmbientModule.ts | 3 +- .../noImplicitAnyParametersInBareFunctions.ts | 3 +- .../noImplicitAnyParametersInClass.ts | 3 +- .../noImplicitAnyParametersInInterface.ts | 3 +- .../noImplicitAnyParametersInModule.ts | 3 +- ...ImplicitAnyReferencingDeclaredInterface.ts | 3 +- .../noImplicitAnyStringIndexerOnObject.ts | 1 + ...mplicitAnyUnionNormalizedObjectLiteral1.ts | 1 + .../compiler/noImplicitAnyWithOverloads.ts | 1 + .../noImplicitReturnInConstructors.ts | 1 + .../compiler/noImplicitReturnsExclusions.ts | 1 + .../noImplicitReturnsWithProtectedBlocks1.ts | 1 + .../noImplicitReturnsWithProtectedBlocks2.ts | 1 + .../noImplicitReturnsWithProtectedBlocks3.ts | 1 + ...oImplicitReturnsWithoutReturnExpression.ts | 1 + .../compiler/noImplicitSymbolToString.ts | 1 + tests/cases/compiler/noImplicitThisBigThis.ts | 1 + .../cases/compiler/noImplicitThisFunctions.ts | 1 + .../cases/compiler/noImplicitUseStrict_amd.ts | 1 + .../compiler/noImplicitUseStrict_commonjs.ts | 1 + .../compiler/noImplicitUseStrict_system.ts | 1 + .../cases/compiler/noImplicitUseStrict_umd.ts | 1 + .../compiler/noInferCommonPropertyCheck1.ts | 1 + .../noInferUnionExcessPropertyCheck1.ts | 1 + tests/cases/compiler/noMappedGetSet.ts | 1 + .../noParameterReassignmentIIFEAnnotated.ts | 1 + .../compiler/noParameterReassignmentJSIIFE.ts | 1 + .../noReachabilityErrorsOnEmptyStatement.ts | 1 + .../cases/compiler/noRepeatedPropertyNames.ts | 1 + tests/cases/compiler/noSelfOnVars.ts | 1 + tests/cases/compiler/noStrictGenericChecks.ts | 1 + ...oSubstitutionTemplateStringLiteralTypes.ts | 1 + tests/cases/compiler/noSubtypeReduction.ts | 1 + tests/cases/compiler/noSymbolForMergeCrash.ts | 1 + .../compiler/noTypeArgumentOnReturnType1.ts | 1 + .../cases/compiler/noUncheckedIndexAccess.ts | 1 + ...checkedIndexedAccessCompoundAssignments.ts | 1 + .../noUnusedLocals_destructuringAssignment.ts | 1 + ...sedLocals_potentialPredicateUnusedParam.ts | 1 + .../compiler/noUnusedLocals_selfReference.ts | 1 + ...ocals_selfReference_skipsBlockLocations.ts | 1 + ...Locals_typeParameterMergedWithParameter.ts | 1 + .../compiler/noUnusedLocals_writeOnly.ts | 1 + .../noUnusedLocals_writeOnlyProperty.ts | 1 + ...edLocals_writeOnlyProperty_dynamicNames.ts | 1 + ...UsedBeforeDefinedErrorInAmbientContext1.ts | 3 +- .../noUsedBeforeDefinedErrorInTypeContext.ts | 1 + .../compiler/nodeColonModuleResolution.ts | 1 + .../compiler/nodeColonModuleResolution2.ts | 1 + .../nodeModuleReexportFromDottedPath.ts | 1 + .../nodeNextCjsNamespaceImportDefault1.ts | 1 + .../nodeNextCjsNamespaceImportDefault2.ts | 1 + ...ImportsOfPackagesWithExtensionlessMains.ts | 1 + ...deNextImportModeImplicitIndexResolution.ts | 1 + ...eNextImportModeImplicitIndexResolution2.ts | 1 + .../compiler/nodeNextModuleResolution1.ts | 1 + .../compiler/nodeNextModuleResolution2.ts | 1 + .../nodeNextPackageImportMapRootDir.ts | 1 + .../nodeNextPackageSelfNameWithOutDir.ts | 1 + ...odeNextPackageSelfNameWithOutDirDeclDir.ts | 1 + ...ckageSelfNameWithOutDirDeclDirComposite.ts | 1 + ...ameWithOutDirDeclDirCompositeNestedDirs.ts | 1 + ...kageSelfNameWithOutDirDeclDirNestedDirs.ts | 1 + ...PackageSelfNameWithOutDirDeclDirRootDir.ts | 1 + ...odeNextPackageSelfNameWithOutDirRootDir.ts | 1 + tests/cases/compiler/nodeResolution1.ts | 1 + tests/cases/compiler/nodeResolution2.ts | 1 + tests/cases/compiler/nodeResolution3.ts | 1 + tests/cases/compiler/nodeResolution4.ts | 1 + tests/cases/compiler/nodeResolution5.ts | 1 + tests/cases/compiler/nodeResolution6.ts | 1 + tests/cases/compiler/nodeResolution7.ts | 1 + tests/cases/compiler/nodeResolution8.ts | 1 + tests/cases/compiler/nonArrayRestArgs.ts | 1 + .../nonConflictingRecursiveBaseTypeMembers.ts | 1 + .../compiler/nonContextuallyTypedLogicalOr.ts | 1 + .../nonExportedElementsOfMergedModules.ts | 1 + ...enericClassExtendingGenericClassWithAny.ts | 1 + .../compiler/nonIdenticalTypeConstraints.ts | 1 + .../compiler/nonInferrableTypePropagation1.ts | 1 + .../compiler/nonInferrableTypePropagation2.ts | 1 + .../compiler/nonInferrableTypePropagation3.ts | 1 + .../nonMergedDeclarationsAndOverloads.ts | 1 + tests/cases/compiler/nonMergedOverloads.ts | 1 + tests/cases/compiler/nonNullFullInference.ts | 1 + tests/cases/compiler/nonNullMappedType.ts | 1 + ...ameterExtendingStringAssignableToString.ts | 1 + .../compiler/nonNullReferenceMatching.ts | 1 + .../nonNullableAndObjectIntersections.ts | 1 + tests/cases/compiler/nonNullableReduction.ts | 1 + .../compiler/nonNullableReductionNonStrict.ts | 1 + tests/cases/compiler/nonNullableTypes1.ts | 1 + ...ableWithNullableGenericIndexedAccessArg.ts | 1 + ...nonObjectUnionNestedExcessPropertyCheck.ts | 1 + .../nondistributiveConditionalTypeInfer.ts | 1 + .../compiler/nonexistentPropertyOnUnion.ts | 1 + ...istentPropertyUnavailableOnPromisedType.ts | 1 + ...ngenericConditionalNotPartiallyComputed.ts | 1 + ...alInstantiationsRelatedInBothDirections.ts | 1 + ...onnullAssertionPropegatesContextualType.ts | 1 + ...nonstrictTemplateWithNotOctalPrintsAsIs.ts | 1 + .../normalizedIntersectionTooComplex.ts | 1 + .../nounusedTypeParameterConstraint.ts | 1 + tests/cases/compiler/null.ts | 1 + tests/cases/compiler/nullKeyword.ts | 1 + tests/cases/compiler/nullableFunctionError.ts | 1 + tests/cases/compiler/numberAsInLHS.ts | 1 + .../numberAssignableToEnumInsideUnion.ts | 1 + .../numberLiteralsWithLeadingZeros.ts | 1 + .../numberOnLeftSideOfInExpression.ts | 1 + tests/cases/compiler/numberToString.ts | 1 + tests/cases/compiler/numericClassMembers1.ts | 1 + tests/cases/compiler/numericEnumMappedType.ts | 1 + .../cases/compiler/numericIndexExpressions.ts | 1 + .../compiler/numericIndexerConstraint.ts | 1 + .../compiler/numericIndexerConstraint1.ts | 1 + .../compiler/numericIndexerConstraint2.ts | 1 + .../compiler/numericIndexerConstraint3.ts | 1 + .../compiler/numericIndexerConstraint4.ts | 1 + .../compiler/numericIndexerConstraint5.ts | 1 + tests/cases/compiler/numericIndexerTyping1.ts | 1 + tests/cases/compiler/numericIndexerTyping2.ts | 1 + ...ericLiteralsWithTrailingDecimalPoints01.ts | 1 + ...ericLiteralsWithTrailingDecimalPoints02.ts | 1 + tests/cases/compiler/numericMethodName1.ts | 1 + .../objectAssignLikeNonUnionResult.ts | 1 + ...BindingPatternContextuallyTypesArgument.ts | 1 + ...dingPattern_restElementWithPropertyName.ts | 1 + tests/cases/compiler/objectCreate-errors.ts | 1 + tests/cases/compiler/objectCreate.ts | 1 + tests/cases/compiler/objectCreate2.ts | 1 + ...ctCreationExpressionInFunctionParameter.ts | 1 + ...objectCreationOfElementAccessExpression.ts | 1 + tests/cases/compiler/objectFreeze.ts | 1 + .../compiler/objectFreezeLiteralsDontWiden.ts | 1 + tests/cases/compiler/objectIndexer.ts | 1 + .../objectInstantiationFromUnionSpread.ts | 1 + .../cases/compiler/objectLitArrayDeclNoNew.ts | 1 + tests/cases/compiler/objectLitGetterSetter.ts | 1 + .../objectLitIndexerContextualType.ts | 1 + .../compiler/objectLitPropertyScoping.ts | 1 + .../objectLitStructuralTypeMismatch.ts | 1 + .../compiler/objectLitTargetTypeCallSite.ts | 1 + tests/cases/compiler/objectLiteral1.ts | 1 + tests/cases/compiler/objectLiteral2.ts | 1 + .../objectLiteralArraySpecialization.ts | 1 + ...ctLiteralComputedNameNoDeclarationError.ts | 1 + .../objectLiteralDeclarationGeneration1.ts | 1 + .../objectLiteralEnumPropertyNames.ts | 1 + .../compiler/objectLiteralExcessProperties.ts | 1 + .../objectLiteralFreshnessWithSpread.ts | 1 + ...bjectLiteralFunctionArgContextualTyping.ts | 1 + ...jectLiteralFunctionArgContextualTyping2.ts | 1 + .../compiler/objectLiteralIndexerErrors.ts | 1 + .../objectLiteralIndexerNoImplicitAny.ts | 3 +- tests/cases/compiler/objectLiteralIndexers.ts | 1 + .../objectLiteralMemberWithModifiers1.ts | 1 + .../objectLiteralMemberWithModifiers2.ts | 1 + .../objectLiteralMemberWithQuestionMark1.ts | 1 + .../objectLiteralMemberWithoutBlock1.ts | 1 + .../objectLiteralParameterResolution.ts | 1 + ...ectLiteralReferencingInternalProperties.ts | 1 + .../compiler/objectLiteralThisWidenedOnUse.ts | 1 + ...ectLiteralWithGetAccessorInsideFunction.ts | 1 + .../objectLiteralWithNumericPropertyName.ts | 1 + .../compiler/objectLiteralWithSemicolons1.ts | 1 + .../compiler/objectLiteralWithSemicolons2.ts | 1 + .../compiler/objectLiteralWithSemicolons3.ts | 1 + .../compiler/objectLiteralWithSemicolons4.ts | 1 + .../compiler/objectLiteralWithSemicolons5.ts | 1 + .../objectLiteralsAgainstUnionsOfArrays01.ts | 1 + tests/cases/compiler/objectMembersOnTypes.ts | 1 + tests/cases/compiler/objectPropertyAsClass.ts | 1 + .../objectRestBindingContextualInference.ts | 1 + ...preadWithinMethodWithinObjectWithSpread.ts | 1 + .../objectTypeWithOptionalProperty1.ts | 1 + .../compiler/observableInferenceCanBeMade.ts | 1 + .../compiler/octalLiteralAndEscapeSequence.ts | 1 + .../compiler/omitTypeHelperModifiers01.ts | 1 + tests/cases/compiler/omitTypeTestErrors01.ts | 1 + tests/cases/compiler/omitTypeTests01.ts | 1 + .../operationsAvailableOnPromisedType.ts | 1 + .../compiler/operatorAddNullUndefined.ts | 1 + .../compiler/optionalAccessorsInInterface1.ts | 1 + .../compiler/optionalArgsWithDefaultValues.ts | 1 + .../compiler/optionalConstructorArgInSuper.ts | 1 + .../optionalFunctionArgAssignability.ts | 1 + tests/cases/compiler/optionalParamArgsTest.ts | 1 + .../compiler/optionalParamAssignmentCompat.ts | 1 + .../cases/compiler/optionalParamInOverride.ts | 1 + .../optionalParamReferencingOtherParams1.ts | 1 + .../optionalParamReferencingOtherParams2.ts | 1 + .../optionalParamReferencingOtherParams3.ts | 1 + .../compiler/optionalParamTypeComparison.ts | 1 + ...ParameterInDestructuringWithInitializer.ts | 1 + .../compiler/optionalParameterProperty.ts | 1 + .../compiler/optionalParameterRetainsNull.ts | 1 + .../optionalParamterAndVariableDeclaration.ts | 1 + ...optionalParamterAndVariableDeclaration2.ts | 1 + .../compiler/optionalPropertiesInClasses.ts | 1 + .../compiler/optionalPropertiesSyntax.ts | 1 + .../cases/compiler/optionalPropertiesTest.ts | 1 + tests/cases/compiler/optionalSetterParam.ts | 1 + .../optionalTupleElementsAndUndefined.ts | 1 + .../optionsCompositeWithIncrementalFalse.ts | 1 + .../compiler/optionsInlineSourceMapMapRoot.ts | 1 + .../optionsInlineSourceMapSourceRoot.ts | 1 + .../optionsInlineSourceMapSourcemap.ts | 1 + .../compiler/optionsOutAndNoModuleGen.ts | 1 + .../compiler/optionsSourcemapInlineSources.ts | 1 + .../optionsSourcemapInlineSourcesMapRoot.ts | 1 + ...optionsSourcemapInlineSourcesSourceRoot.ts | 1 + ...tionsStrictPropertyInitializationStrict.ts | 1 + ...tPropertyInitializationStrictNullChecks.ts | 1 + ...dInfoFileWithoutIncrementalAndComposite.ts | 1 + .../orderMattersForSignatureGroupIdentity.ts | 1 + tests/cases/compiler/outFileIsDeprecated.ts | 1 + .../overEagerReturnTypeSpecialization.ts | 1 + tests/cases/compiler/overload1.ts | 1 + tests/cases/compiler/overload2.ts | 1 + .../compiler/overloadAssignmentCompat.ts | 1 + ...rloadBindingAcrossDeclarationBoundaries.ts | 1 + ...loadBindingAcrossDeclarationBoundaries2.ts | 1 + tests/cases/compiler/overloadCallTest.ts | 1 + .../cases/compiler/overloadConsecutiveness.ts | 1 + tests/cases/compiler/overloadCrash.ts | 1 + .../overloadEquivalenceWithStatics.ts | 1 + ...dErrorMatchesImplementationElaboaration.ts | 1 + .../overloadGenericFunctionWithRestArgs.ts | 1 + .../compiler/overloadModifiersMustAgree.ts | 1 + .../overloadOnConstAsTypeAnnotation.ts | 1 + .../overloadOnConstConstraintChecks1.ts | 1 + .../overloadOnConstConstraintChecks2.ts | 1 + .../overloadOnConstConstraintChecks3.ts | 1 + .../overloadOnConstConstraintChecks4.ts | 1 + .../overloadOnConstDuplicateOverloads1.ts | 1 + ...nstInBaseWithBadImplementationInDerived.ts | 1 + .../compiler/overloadOnConstInCallback1.ts | 1 + ...tInObjectLiteralImplementingAnInterface.ts | 1 + .../compiler/overloadOnConstInheritance1.ts | 1 + .../compiler/overloadOnConstInheritance2.ts | 1 + .../compiler/overloadOnConstInheritance3.ts | 1 + .../compiler/overloadOnConstInheritance4.ts | 1 + .../overloadOnConstNoAnyImplementation.ts | 1 + .../overloadOnConstNoAnyImplementation2.ts | 1 + ...verloadOnConstNoNonSpecializedSignature.ts | 1 + .../overloadOnConstNoStringImplementation.ts | 1 + .../overloadOnConstNoStringImplementation2.ts | 1 + .../overloadOnConstantsInvalidOverload1.ts | 1 + .../cases/compiler/overloadOnGenericArity.ts | 1 + ...verloadOnGenericClassAndNonGenericClass.ts | 1 + ...overloadResolutionOnDefaultConstructor1.ts | 1 + .../overloadResolutionOverCTLambda.ts | 1 + .../overloadResolutionOverNonCTLambdas.ts | 1 + .../overloadResolutionOverNonCTObjectLit.ts | 1 + .../cases/compiler/overloadResolutionTest1.ts | 1 + .../compiler/overloadResolutionWithAny.ts | 1 + tests/cases/compiler/overloadRet.ts | 1 + tests/cases/compiler/overloadReturnTypes.ts | 1 + ...CallbacksWithDifferingOptionalityOnArgs.ts | 1 + ...ConstructorFixesInferencesAppropriately.ts | 1 + .../overloadedStaticMethodSpecialization.ts | 1 + .../cases/compiler/overloadingOnConstants1.ts | 1 + .../cases/compiler/overloadingOnConstants2.ts | 1 + .../overloadingOnConstantsInImplementation.ts | 1 + .../overloadingStaticFunctionsInFunctions.ts | 1 + ...esolutionWithConstraintCheckingDeferred.ts | 1 + .../compiler/overloadsAndTypeArgumentArity.ts | 1 + .../overloadsAndTypeArgumentArityErrors.ts | 1 + ...sInDifferentContainersDisagreeOnAmbient.ts | 1 + .../compiler/overloadsWithComputedNames.ts | 1 + .../compiler/overloadsWithConstraints.ts | 3 +- .../overloadsWithProvisionalErrors.ts | 1 + .../cases/compiler/overloadsWithinClasses.ts | 1 + .../overrideBaseIntersectionMethod.ts | 1 + .../overridingPrivateStaticMembers.ts | 1 + tests/cases/compiler/overshifts.ts | 1 + .../compiler/paramPropertiesInSignatures.ts | 1 + .../compiler/parameterDecoratorsEmitCrash.ts | 1 + .../parameterDestructuringObjectLiteral.ts | 1 + ...meterInitializerBeforeDestructuringEmit.ts | 1 + .../compiler/parameterListAsTupleType.ts | 1 + .../parameterNamesInTypeParameterList.ts | 1 + .../parameterPropertyInConstructor1.ts | 1 + .../parameterPropertyInConstructor2.ts | 1 + .../parameterPropertyInConstructor3.ts | 1 + .../parameterPropertyInConstructor4.ts | 1 + ...meterPropertyInConstructorWithPrologues.ts | 1 + ...ameterPropertyInitializerInInitializers.ts | 1 + .../parameterPropertyOutsideConstructor.ts | 1 + ...ameterPropertyReferencingOtherParameter.ts | 1 + .../parameterReferenceInInitializer1.ts | 1 + .../parameterReferenceInInitializer2.ts | 1 + .../parameterReferencesOtherParameter1.ts | 1 + .../parameterReferencesOtherParameter2.ts | 1 + .../compiler/parametersSyntaxErrorNoCrash1.ts | 1 + .../compiler/parametersSyntaxErrorNoCrash2.ts | 1 + .../compiler/parametersSyntaxErrorNoCrash3.ts | 1 + ...ralTypesWhenAppropriatelyContextualized.ts | 1 + .../paramterDestrcuturingDeclaration.ts | 1 + ...enthesisDoesNotBlockAliasSymbolCreation.ts | 1 + .../parenthesizedArrowExpressionASI.ts | 1 + .../parenthesizedAsyncArrowFunction.ts | 1 + ...parenthesizedExpressionInternalComments.ts | 1 + ...parenthesizedJSDocCastAtReturnStatement.ts | 1 + .../parenthesizedJSDocCastDoesNotNarrow.ts | 1 + ...thesizedSatisfiesExpressionWithComments.ts | 1 + tests/cases/compiler/parse1.ts | 1 + tests/cases/compiler/parse2.ts | 1 + ...arseArrowFunctionWithFunctionReturnType.ts | 1 + .../cases/compiler/parseAssertEntriesError.ts | 1 + .../compiler/parseCommaSeparatedNewlineNew.ts | 1 + .../parseCommaSeparatedNewlineNumber.ts | 1 + .../parseCommaSeparatedNewlineString.ts | 1 + .../parseEntityNameWithReservedWord.ts | 1 + .../compiler/parseErrorDoubleCommaInCall.ts | 1 + .../compiler/parseErrorInHeritageClause1.ts | 1 + .../parseErrorIncorrectReturnToken.ts | 1 + .../parseGenericArrowRatherThanLeftShift.ts | 1 + .../compiler/parseImportAttributesError.ts | 1 + tests/cases/compiler/parseInvalidNames.ts | 1 + .../compiler/parseInvalidNonNullableTypes.ts | 1 + .../compiler/parseInvalidNullableTypes.ts | 1 + ...arseJsxElementInUnaryExpressionNoCrash1.ts | 1 + ...arseJsxElementInUnaryExpressionNoCrash2.ts | 1 + ...arseJsxElementInUnaryExpressionNoCrash3.ts | 1 + tests/cases/compiler/parseJsxExtends1.ts | 1 + tests/cases/compiler/parseJsxExtends2.ts | 1 + .../parseObjectLiteralsWithoutTypes.ts | 1 + .../compiler/parseReplacementCharacter.ts | 1 + tests/cases/compiler/parseShortform.ts | 1 + tests/cases/compiler/parseTypes.ts | 1 + ...rseUnaryExpressionNoTypeAssertionInJsx1.ts | 1 + ...rseUnaryExpressionNoTypeAssertionInJsx2.ts | 1 + ...rseUnaryExpressionNoTypeAssertionInJsx3.ts | 1 + ...rseUnaryExpressionNoTypeAssertionInJsx4.ts | 1 + .../compiler/parseUnmatchedTypeAssertion.ts | 1 + .../parserConstructorDeclaration12.ts | 1 + .../compiler/parserIsClassMemberStart.ts | 1 + ...arserPrivateIdentifierInArrayAssignment.ts | 1 + .../compiler/parserUnparsedTokenCrash1.ts | 1 + .../compiler/parserUnparsedTokenCrash2.ts | 1 + ...sRecoversWhenHittingUnexpectedSemicolon.ts | 1 + .../parsingDeepParenthensizedExpression.ts | 1 + ...ialDiscriminatedUnionMemberHasGoodError.ts | 1 + .../partialOfLargeAPIIsAbleToBeWorkedWith.ts | 1 + .../partialTypeNarrowedToByTypeGuard.ts | 1 + .../cases/compiler/partiallyAmbientClodule.ts | 1 + .../cases/compiler/partiallyAmbientFundule.ts | 1 + .../compiler/partiallyDiscriminantedUnions.ts | 1 + .../pathMappingBasedModuleResolution1_amd.ts | 1 + .../pathMappingBasedModuleResolution1_node.ts | 1 + ...thMappingBasedModuleResolution2_classic.ts | 1 + .../pathMappingBasedModuleResolution2_node.ts | 1 + ...thMappingBasedModuleResolution3_classic.ts | 1 + .../pathMappingBasedModuleResolution3_node.ts | 1 + ...thMappingBasedModuleResolution4_classic.ts | 1 + .../pathMappingBasedModuleResolution4_node.ts | 1 + ...thMappingBasedModuleResolution5_classic.ts | 1 + .../pathMappingBasedModuleResolution5_node.ts | 1 + ...thMappingBasedModuleResolution6_classic.ts | 1 + .../pathMappingBasedModuleResolution6_node.ts | 1 + ...thMappingBasedModuleResolution7_classic.ts | 1 + .../pathMappingBasedModuleResolution7_node.ts | 1 + ...thMappingBasedModuleResolution8_classic.ts | 1 + .../pathMappingBasedModuleResolution8_node.ts | 1 + ...duleResolution_rootImport_aliasWithRoot.ts | 1 + ...Import_aliasWithRoot_differentRootTypes.ts | 1 + ...ootImport_aliasWithRoot_multipleAliases.ts | 1 + ...n_rootImport_aliasWithRoot_realRootFile.ts | 1 + ...leResolution_rootImport_noAliasWithRoot.ts | 1 + ...rootImport_noAliasWithRoot_realRootFile.ts | 1 + ...pingBasedModuleResolution_withExtension.ts | 1 + ...sedModuleResolution_withExtensionInName.ts | 1 + ...lution_withExtension_MapedToNodeModules.ts | 1 + ...leResolution_withExtension_failedLookup.ts | 1 + .../compiler/pathMappingInheritedBaseUrl.ts | 1 + .../compiler/pathMappingWithoutBaseUrl1.ts | 1 + .../compiler/pathMappingWithoutBaseUrl2.ts | 1 + tests/cases/compiler/pathsValidation1.ts | 1 + tests/cases/compiler/pathsValidation2.ts | 1 + tests/cases/compiler/pathsValidation3.ts | 1 + tests/cases/compiler/pathsValidation4.ts | 1 + tests/cases/compiler/pathsValidation5.ts | 1 + ...denticalInterfacesWithGenericSignatures.ts | 1 + .../compiler/pickOfLargeObjectUnionWorks.ts | 1 + tests/cases/compiler/pinnedComments1.ts | 1 + .../potentiallyUnassignedVariableInCatch.ts | 1 + tests/cases/compiler/predicateSemantics.ts | 1 + ...refixIncrementAsOperandOfPlusExpression.ts | 1 + ...dNumberLiteralAssignToNumberLiteralType.ts | 1 + tests/cases/compiler/preserveConstEnums.ts | 1 + tests/cases/compiler/preserveUnusedImports.ts | 1 + .../compiler/prespecializedGenericMembers1.ts | 1 + .../prettyContextNotDebugAssertion.ts | 1 + .../compiler/prettyFileWithErrorsAndTabs.ts | 1 + tests/cases/compiler/primaryExpressionMods.ts | 1 + tests/cases/compiler/primitiveConstraints1.ts | 1 + tests/cases/compiler/primitiveConstraints2.ts | 1 + tests/cases/compiler/primitiveMembers.ts | 1 + .../compiler/primitiveTypeAsClassName.ts | 1 + .../compiler/primitiveTypeAsInterfaceName.ts | 1 + .../primitiveTypeAsInterfaceNameGeneric.ts | 1 + .../compiler/primitiveTypeAsmoduleName.ts | 1 + .../cases/compiler/primitiveTypeAssignment.ts | 1 + .../cases/compiler/primitiveUnionDetection.ts | 1 + .../privacyCannotNameVarTypeDeclFile.ts | 1 + .../privacyCheckAnonymousFunctionParameter.ts | 1 + ...privacyCheckAnonymousFunctionParameter2.ts | 1 + ...lbackOfInterfaceMethodWithTypeParameter.ts | 1 + ...rtAssignmentOnExportedGenericInterface1.ts | 1 + ...rtAssignmentOnExportedGenericInterface2.ts | 1 + ...nalModuleExportAssignmentOfGenericClass.ts | 1 + ...arameterReferenceInConstructorParameter.ts | 1 + .../compiler/privacyCheckTypeOfFunction.ts | 1 + .../privacyCheckTypeOfInvisibleModuleError.ts | 1 + ...rivacyCheckTypeOfInvisibleModuleNoError.ts | 1 + tests/cases/compiler/privacyClass.ts | 1 + .../privacyClassExtendsClauseDeclFile.ts | 1 + .../privacyClassImplementsClauseDeclFile.ts | 1 + tests/cases/compiler/privacyFunc.ts | 1 + ...FunctionCannotNameParameterTypeDeclFile.ts | 1 + ...acyFunctionCannotNameReturnTypeDeclFile.ts | 1 + .../privacyFunctionParameterDeclFile.ts | 1 + .../privacyFunctionReturnTypeDeclFile.ts | 1 + tests/cases/compiler/privacyGloClass.ts | 1 + tests/cases/compiler/privacyGloFunc.ts | 1 + tests/cases/compiler/privacyGloImport.ts | 1 + .../compiler/privacyGloImportParseErrors.ts | 1 + tests/cases/compiler/privacyGloInterface.ts | 1 + tests/cases/compiler/privacyGloVar.ts | 1 + tests/cases/compiler/privacyImport.ts | 1 + .../compiler/privacyImportParseErrors.ts | 1 + tests/cases/compiler/privacyInterface.ts | 1 + .../privacyInterfaceExtendsClauseDeclFile.ts | 1 + ...yLocalInternalReferenceImportWithExport.ts | 1 + ...calInternalReferenceImportWithoutExport.ts | 1 + ...elAmbientExternalModuleImportWithExport.ts | 1 + ...mbientExternalModuleImportWithoutExport.ts | 1 + ...pLevelInternalReferenceImportWithExport.ts | 1 + ...velInternalReferenceImportWithoutExport.ts | 1 + .../privacyTypeParameterOfFunction.ts | 1 + .../privacyTypeParameterOfFunctionDeclFile.ts | 1 + .../compiler/privacyTypeParametersOfClass.ts | 1 + .../privacyTypeParametersOfClassDeclFile.ts | 1 + .../privacyTypeParametersOfInterface.ts | 1 + ...rivacyTypeParametersOfInterfaceDeclFile.ts | 1 + tests/cases/compiler/privacyVar.ts | 1 + tests/cases/compiler/privacyVarDeclFile.ts | 1 + .../compiler/privateAccessInSubclass1.ts | 1 + .../privateFieldAssignabilityFromUnknown.ts | 1 + .../compiler/privateInstanceVisibility.ts | 1 + .../compiler/privateInterfaceProperties.ts | 1 + tests/cases/compiler/privateNameJsx.tsx | 1 + .../cases/compiler/privatePropertyInUnion.ts | 1 + .../privatePropertyUsingObjectType.ts | 1 + tests/cases/compiler/privateVisibility.ts | 1 + tests/cases/compiler/privateVisibles.ts | 1 + tests/cases/compiler/promiseAllOnAny01.ts | 1 + tests/cases/compiler/promiseChaining.ts | 1 + tests/cases/compiler/promiseChaining1.ts | 1 + tests/cases/compiler/promiseChaining2.ts | 1 + tests/cases/compiler/promiseIdentity.ts | 1 + tests/cases/compiler/promiseIdentity2.ts | 1 + .../cases/compiler/promiseIdentityWithAny.ts | 1 + .../cases/compiler/promiseIdentityWithAny2.ts | 1 + .../promiseIdentityWithConstraints.ts | 1 + tests/cases/compiler/promisePermutations.ts | 1 + tests/cases/compiler/promisePermutations2.ts | 1 + tests/cases/compiler/promisePermutations3.ts | 1 + tests/cases/compiler/promiseTest.ts | Bin 528 -> 566 bytes tests/cases/compiler/promiseTypeInference.ts | 1 + tests/cases/compiler/promises.ts | 1 + .../cases/compiler/promisesWithConstraints.ts | 1 + .../compiler/propTypeValidatorInference.ts | 1 + .../compiler/propagateNonInferrableType.ts | 1 + .../propagationOfPromiseInitialization.ts | 1 + tests/cases/compiler/propertiesAndIndexers.ts | 1 + .../cases/compiler/propertiesAndIndexers2.ts | 1 + .../propertiesAndIndexersForNumericNames.ts | 1 + tests/cases/compiler/propertyAccess1.ts | 1 + tests/cases/compiler/propertyAccess2.ts | 1 + tests/cases/compiler/propertyAccess3.ts | 1 + tests/cases/compiler/propertyAccess4.ts | 1 + tests/cases/compiler/propertyAccess5.ts | 1 + tests/cases/compiler/propertyAccess6.ts | 1 + tests/cases/compiler/propertyAccess7.ts | 1 + .../propertyAccessExpressionInnerComments.ts | 1 + .../propertyAccessOfReadonlyIndexSignature.ts | 1 + .../compiler/propertyAccessOnObjectLiteral.ts | 1 + .../cases/compiler/propertyAccessibility1.ts | 1 + .../cases/compiler/propertyAccessibility2.ts | 1 + tests/cases/compiler/propertyAssignment.ts | 1 + .../propertyIdentityWithPrivacyMismatch.ts | 1 + .../propertyNamesWithStringLiteral.ts | 1 + tests/cases/compiler/propertyOrdering.ts | 1 + tests/cases/compiler/propertyOrdering2.ts | 1 + .../compiler/propertyOverridingPrototype.ts | 1 + .../propertyParameterWithQuestionMark.ts | 1 + tests/cases/compiler/propertySignatures.ts | 1 + tests/cases/compiler/propertyWrappedInTry.ts | 1 + .../protectedAccessThroughContextualThis.ts | 1 + tests/cases/compiler/protectedMembers.ts | 1 + .../compiler/protectedMembersThisParameter.ts | 1 + .../compiler/protoAsIndexInIndexExpression.ts | 1 + tests/cases/compiler/protoAssignment.ts | 1 + tests/cases/compiler/protoInIndexer.ts | 1 + ...prototypeInstantiatedWithBaseConstraint.ts | 1 + .../prototypeOnConstructorFunctions.ts | 1 + tests/cases/compiler/prototypes.ts | 1 + ...emberImplementedAsPrivateInDerivedClass.ts | 1 + .../cases/compiler/pushTypeGetTypeOfAlias.ts | 1 + tests/cases/compiler/qualifiedModuleLocals.ts | 1 + ...arations-entity-names-referencing-a-var.ts | 1 + ...solution-does-not-affect-class-heritage.ts | 1 + tests/cases/compiler/qualify.ts | 1 + ...kIntersectionCheckCorrectlyCachesErrors.ts | 1 + ...uickinfoTypeAtReturnPositionsInaccurate.ts | 1 + tests/cases/compiler/quotedAccessorName1.ts | 1 + tests/cases/compiler/quotedAccessorName2.ts | 1 + tests/cases/compiler/quotedFunctionName1.ts | 1 + tests/cases/compiler/quotedFunctionName2.ts | 1 + .../compiler/quotedModuleNameMustBeAmbient.ts | 1 + tests/cases/compiler/quotedPropertyName1.ts | 1 + tests/cases/compiler/quotedPropertyName2.ts | 1 + tests/cases/compiler/quotedPropertyName3.ts | 1 + .../compiler/raiseErrorOnParameterProperty.ts | 1 + tests/cases/compiler/ramdaToolsNoInfinite.ts | 1 + tests/cases/compiler/ramdaToolsNoInfinite2.ts | 1 + tests/cases/compiler/randomSemicolons1.ts | 1 + .../compiler/reExportGlobalDeclaration1.ts | 1 + .../compiler/reExportGlobalDeclaration2.ts | 1 + .../compiler/reExportGlobalDeclaration3.ts | 1 + .../compiler/reExportGlobalDeclaration4.ts | 1 + tests/cases/compiler/reExportUndefined1.ts | 1 + tests/cases/compiler/reExportUndefined2.ts | 1 + .../reachabilityCheckWithEmptyDefault.ts | 1 + tests/cases/compiler/reachabilityChecks1.ts | 1 + tests/cases/compiler/reachabilityChecks10.ts | 1 + tests/cases/compiler/reachabilityChecks11.ts | 1 + tests/cases/compiler/reachabilityChecks2.ts | 1 + tests/cases/compiler/reachabilityChecks3.ts | 1 + tests/cases/compiler/reachabilityChecks4.ts | 1 + tests/cases/compiler/reachabilityChecks5.ts | 1 + tests/cases/compiler/reachabilityChecks6.ts | 1 + tests/cases/compiler/reachabilityChecks8.ts | 1 + tests/cases/compiler/reachabilityChecks9.ts | 1 + .../compiler/reachabilityChecksIgnored.ts | 1 + .../reactDefaultPropsInferenceSuccess.tsx | 1 + tests/cases/compiler/reactHOCSpreadprops.tsx | 2 + .../reactImportUnusedInNewJSXEmit.tsx | 1 + .../reactJsxReactResolvedNodeNext.tsx | 1 + .../reactJsxReactResolvedNodeNextEsm.tsx | 1 + .../reactNamespaceImportPresevation.tsx | 1 + .../compiler/reactNamespaceInvalidInput.tsx | 1 + .../cases/compiler/reactNamespaceJSXEmit.tsx | 1 + .../reactNamespaceMissingDeclaration.tsx | 1 + .../reactReadonlyHOCAssignabilityReal.tsx | 1 + ...uxLikeDeferredInferenceAllowsAssignment.ts | 1 + .../reactSFCAndFunctionResolvable.tsx | 1 + .../reactTagNameComponentWithPropsNoOOM.tsx | 1 + .../reactTagNameComponentWithPropsNoOOM2.tsx | 1 + ...eactTransitiveImportHasValidDeclaration.ts | 1 + ...lyAssignmentInSubclassOfClassExpression.ts | 1 + ...yFloat32ArrayAssignableWithFloat32Array.ts | 1 + ...readonlyPropertySubtypeRelationDirected.ts | 1 + .../readonlyTupleAndArrayElaboration.ts | 1 + tests/cases/compiler/reassignStaticProp.ts | 1 + .../cases/compiler/reboundBaseClassSymbol.ts | 1 + .../reboundIdentifierOnImportAlias.ts | 1 + tests/cases/compiler/rectype.ts | 1 + tests/cases/compiler/recur1.ts | 1 + .../compiler/recursiveArrayNotCircular.ts | 1 + tests/cases/compiler/recursiveBaseCheck.ts | 1 + tests/cases/compiler/recursiveBaseCheck2.ts | 1 + tests/cases/compiler/recursiveBaseCheck3.ts | 1 + tests/cases/compiler/recursiveBaseCheck4.ts | 1 + tests/cases/compiler/recursiveBaseCheck5.ts | 1 + tests/cases/compiler/recursiveBaseCheck6.ts | 1 + .../recursiveBaseConstructorCreation1.ts | 1 + .../recursiveBaseConstructorCreation2.ts | 1 + .../recursiveBaseConstructorCreation3.ts | 1 + .../cases/compiler/recursiveClassBaseType.ts | 1 + ...ssInstantiationsWithDefaultConstructors.ts | 1 + .../compiler/recursiveClassReferenceTest.ts | 1 + .../compiler/recursiveCloduleReference.ts | 1 + .../compiler/recursiveComplicatedClasses.ts | 1 + .../compiler/recursiveConditionalCrash1.ts | 1 + .../compiler/recursiveConditionalCrash2.ts | 1 + .../compiler/recursiveConditionalCrash3.ts | 1 + .../compiler/recursiveConditionalCrash4.ts | 1 + ...cursiveConditionalEvaluationNonInfinite.ts | 1 + .../compiler/recursiveConditionalTypes2.ts | 1 + .../compiler/recursiveExcessPropertyChecks.ts | 1 + ...siveExportAssignmentAndFindAliasedType1.ts | 1 + ...siveExportAssignmentAndFindAliasedType2.ts | 1 + ...siveExportAssignmentAndFindAliasedType3.ts | 1 + ...siveExportAssignmentAndFindAliasedType4.ts | 1 + ...siveExportAssignmentAndFindAliasedType5.ts | 1 + ...siveExportAssignmentAndFindAliasedType6.ts | 1 + ...siveExportAssignmentAndFindAliasedType7.ts | 1 + tests/cases/compiler/recursiveFieldSetting.ts | 1 + .../cases/compiler/recursiveFunctionTypes.ts | 1 + .../cases/compiler/recursiveFunctionTypes1.ts | 1 + .../compiler/recursiveGenericMethodCall.ts | 1 + .../recursiveGenericSignatureInstantiation.ts | 1 + ...recursiveGenericSignatureInstantiation2.ts | 1 + .../compiler/recursiveGenericTypeHierarchy.ts | 1 + .../compiler/recursiveGenericUnionType1.ts | 1 + .../compiler/recursiveGenericUnionType2.ts | 1 + tests/cases/compiler/recursiveGetterAccess.ts | 1 + .../compiler/recursiveIdenticalAssignment.ts | 1 + .../recursiveIdenticalOverloadResolution.ts | 1 + tests/cases/compiler/recursiveInference1.ts | 1 + tests/cases/compiler/recursiveInferenceBug.ts | 1 + tests/cases/compiler/recursiveInheritance.ts | 1 + tests/cases/compiler/recursiveInheritance2.ts | 1 + tests/cases/compiler/recursiveInheritance3.ts | 1 + .../compiler/recursiveInheritanceGeneric.ts | 1 + tests/cases/compiler/recursiveMods.ts | 1 + .../compiler/recursiveNamedLambdaCall.ts | 1 + .../cases/compiler/recursiveObjectLiteral.ts | 1 + .../recursiveResolveDeclaredMembers.ts | 1 + .../compiler/recursiveResolveTypeMembers.ts | 1 + tests/cases/compiler/recursiveReturns.ts | 1 + .../compiler/recursiveReverseMappedType.ts | 1 + ...veSpecializationOfExtendedTypeWithError.ts | 1 + .../recursiveSpecializationOfSignatures.ts | 1 + .../compiler/recursiveTupleTypeInference.ts | 1 + tests/cases/compiler/recursiveTupleTypes1.ts | 1 + tests/cases/compiler/recursiveTupleTypes2.ts | 1 + ...sWithSpreadConditionalReturnNotCircular.ts | 1 + .../cases/compiler/recursiveTypeComparison.ts | 1 + .../compiler/recursiveTypeComparison2.ts | 1 + tests/cases/compiler/recursiveTypeIdentity.ts | 1 + ...rameterConstraintReferenceLacksTypeArgs.ts | 1 + .../recursiveTypeParameterReferenceError1.ts | 1 + .../recursiveTypeParameterReferenceError2.ts | 1 + .../cases/compiler/recursiveTypeRelations.ts | 1 + tests/cases/compiler/recursiveTypes1.ts | 1 + .../compiler/recursiveUnionTypeInference.ts | 1 + ...ecursivelyExpandingUnionNoStackoverflow.ts | 1 + ...sivelySpecializedConstructorDeclaration.ts | 1 + .../redeclarationOfVarWithGenericType.ts | 1 + tests/cases/compiler/redefineArray.ts | 1 + .../compiler/reducibleIndexedAccessTypes.ts | 1 + .../compiler/reexportDefaultIsCallable.ts | 1 + .../cases/compiler/reexportMissingDefault.ts | 1 + .../cases/compiler/reexportMissingDefault1.ts | 1 + .../cases/compiler/reexportMissingDefault2.ts | 1 + .../cases/compiler/reexportMissingDefault3.ts | 1 + .../cases/compiler/reexportMissingDefault4.ts | 1 + .../cases/compiler/reexportMissingDefault5.ts | 1 + .../cases/compiler/reexportMissingDefault6.ts | 1 + .../cases/compiler/reexportMissingDefault7.ts | 1 + .../cases/compiler/reexportMissingDefault8.ts | 2 + .../compiler/reexportNameAliasedAndHoisted.ts | 1 + .../reexportWrittenCorrectlyInDeclaration.ts | 1 + .../cases/compiler/reexportedMissingAlias.ts | 1 + .../compiler/referenceSatisfiesExpression.ts | 1 + .../referenceTypesPreferedToPathIfPossible.ts | 1 + .../compiler/regExpWithSlashInCharClass.ts | 1 + .../compiler/regexpExecAndMatchTypeUsages.ts | 1 + .../regularExpressionGroupNameSuggestions.ts | 1 + ...icodePropertyValueExpressionSuggestions.ts | 1 + .../relatedViaDiscriminatedTypeNoError.ts | 1 + .../relatedViaDiscriminatedTypeNoError2.ts | 1 + .../cases/compiler/relationComplexityError.ts | 1 + .../compiler/relationalOperatorComparable.ts | 1 + .../relativeNamesInClassicResolution.ts | 1 + ...mingDestructuredPropertyInFunctionType2.ts | 1 + tests/cases/compiler/reorderProperties.ts | 1 + .../requireAsFunctionInExternalModule.ts | 1 + tests/cases/compiler/requireEmitSemicolon.ts | 1 + tests/cases/compiler/requireOfAnEmptyFile1.ts | 1 + tests/cases/compiler/requireOfJsonFile.ts | 1 + .../compiler/requireOfJsonFileInJsFile.ts | 1 + .../compiler/requireOfJsonFileNonRelative.ts | 1 + ...reOfJsonFileNonRelativeWithoutExtension.ts | 1 + ...NonRelativeWithoutExtensionResolvesToTs.ts | 1 + .../cases/compiler/requireOfJsonFileTypes.ts | 1 + ...OfJsonFileWithAlwaysStrictWithoutErrors.ts | 1 + .../compiler/requireOfJsonFileWithAmd.ts | 1 + ...quireOfJsonFileWithComputedPropertyName.ts | 2 + .../requireOfJsonFileWithDeclaration.ts | 1 + .../requireOfJsonFileWithEmptyObject.ts | 1 + ...uireOfJsonFileWithEmptyObjectWithErrors.ts | 1 + .../compiler/requireOfJsonFileWithErrors.ts | 1 + .../requireOfJsonFileWithModuleEmitNone.ts | 1 + ...equireOfJsonFileWithModuleEmitUndefined.ts | 1 + ...JsonFileWithModuleNodeResolutionEmitAmd.ts | 1 + ...eWithModuleNodeResolutionEmitAmdOutFile.ts | 1 + ...nFileWithModuleNodeResolutionEmitEs2015.ts | 1 + ...nFileWithModuleNodeResolutionEmitEsNext.ts | 1 + ...sonFileWithModuleNodeResolutionEmitNone.ts | 1 + ...nFileWithModuleNodeResolutionEmitSystem.ts | 1 + ...JsonFileWithModuleNodeResolutionEmitUmd.ts | 1 + ...leWithModuleNodeResolutionEmitUndefined.ts | 1 + .../requireOfJsonFileWithNoContent.ts | 1 + .../requireOfJsonFileWithSourceMap.ts | 1 + .../requireOfJsonFileWithTraillingComma.ts | 1 + .../requireOfJsonFileWithoutAllowJs.ts | 1 + .../requireOfJsonFileWithoutExtension.ts | 1 + ...eOfJsonFileWithoutExtensionResolvesToTs.ts | 1 + .../requireOfJsonFileWithoutOutDir.ts | 1 + ...quireOfJsonFileWithoutResolveJsonModule.ts | 1 + ...eWithoutResolveJsonModuleAndPathMapping.ts | 1 + .../compiler/requireOfJsonFile_PathMapping.ts | 1 + .../compiler/requiredInitializedParameter1.ts | 1 + .../compiler/requiredInitializedParameter2.ts | 1 + .../compiler/requiredInitializedParameter3.ts | 1 + .../compiler/requiredInitializedParameter4.ts | 1 + ...equiredMappedTypeModifierTrumpsVariance.ts | 1 + .../compiler/reservedNameOnInterfaceImport.ts | 1 + .../compiler/reservedNameOnModuleImport.ts | 1 + ...reservedNameOnModuleImportWithInterface.ts | 1 + tests/cases/compiler/reservedWords.ts | 1 + tests/cases/compiler/reservedWords2.ts | 3 +- tests/cases/compiler/reservedWords3.ts | 3 +- ...esolutionCandidateFromPackageJsonField1.ts | 1 + ...esolutionCandidateFromPackageJsonField2.ts | 1 + ...nterfaceNameWithSameLetDeclarationName1.ts | 3 +- ...nterfaceNameWithSameLetDeclarationName2.ts | 3 +- ...veModuleNameWithSameLetDeclarationName1.ts | 3 +- ...veModuleNameWithSameLetDeclarationName2.ts | 3 +- .../cases/compiler/resolveNameWithNamspace.ts | 1 + ...lveTypeAliasWithSameLetDeclarationName1.ts | 3 +- ...lassDeclarationWhenInBaseTypeResolution.ts | 1 + .../cases/compiler/restArgAssignmentCompat.ts | 1 + tests/cases/compiler/restArgMissingName.ts | 1 + tests/cases/compiler/restElementAssignable.ts | 1 + tests/cases/compiler/restIntersection.ts | 1 + .../cases/compiler/restInvalidArgumentType.ts | 1 + tests/cases/compiler/restParamAsOptional.ts | 1 + tests/cases/compiler/restParamModifier.ts | 1 + tests/cases/compiler/restParamModifier2.ts | 1 + ...ParamUsingMappedTypeOverUnionConstraint.ts | 1 + .../restParameterAssignmentCompatibility.ts | 3 +- .../compiler/restParameterNoTypeAnnotation.ts | 1 + tests/cases/compiler/restParameterNotLast.ts | 1 + .../restParameterTypeInstantiation.ts | 1 + .../restParameterWithBindingPattern1.ts | 1 + .../restParameterWithBindingPattern2.ts | 1 + .../restParameterWithBindingPattern3.ts | 1 + tests/cases/compiler/restParameters.ts | 1 + .../compiler/restParamsWithNonRestParams.ts | 1 + .../compiler/restTypeRetainsMappyness.ts | 1 + tests/cases/compiler/restUnion.ts | 1 + tests/cases/compiler/restUnion2.ts | 1 + tests/cases/compiler/restUnion3.ts | 1 + tests/cases/compiler/returnInConstructor1.ts | 1 + .../compiler/returnInfiniteIntersection.ts | 1 + tests/cases/compiler/returnStatement1.ts | 1 + ...nferenceContextualTypeIgnoreAnyUnknown1.ts | 1 + .../returnTypeInferenceNotTooBroad.ts | 1 + tests/cases/compiler/returnTypeParameter.ts | 1 + .../returnTypeParameterWithModules.ts | 1 + ...redicateIsInstantiateInContextOfTarget.tsx | 1 + .../cases/compiler/returnTypeTypeArguments.ts | 1 + tests/cases/compiler/returnValueInSetter.ts | 1 + .../cases/compiler/reuseInnerModuleMember.ts | 1 + ...ationImportTypeInGlobalThisTypeArgument.ts | 1 + ...verseInferenceInContextualInstantiation.ts | 1 + .../reverseMappedContravariantInference.ts | 1 + .../reverseMappedIntersectionInference1.ts | 1 + .../reverseMappedIntersectionInference2.ts | 1 + .../reverseMappedPartiallyInferableTypes.ts | 1 + .../compiler/reverseMappedTupleContext.ts | 1 + .../reverseMappedTypeAssignableToIndex.ts | 1 + ...erseMappedTypeContextualTypeNotCircular.ts | 1 + ...textualTypesPerElementOfTupleConstraint.ts | 1 + .../reverseMappedTypeDeepDeclarationEmit.ts | 1 + .../reverseMappedTypeInferenceSameSource1.ts | 1 + .../reverseMappedTypeInferenceWidening1.ts | 1 + .../reverseMappedTypeInferenceWidening2.ts | 1 + ...reverseMappedTypeIntersectionConstraint.ts | 1 + .../reverseMappedTypeLimitedConstraint.ts | 1 + ...seMappedTypePrimitiveConstraintProperty.ts | 1 + .../reverseMappedTypeRecursiveInference.ts | 1 + .../compiler/reverseMappedUnionInference.ts | 1 + .../reversedRecusiveTypeInstantiation.ts | 1 + tests/cases/compiler/satisfiesEmit.ts | 2 + .../cases/compiler/scopeCheckClassProperty.ts | 1 + ...peCheckExtendedClassInsidePublicMethod2.ts | 1 + ...peCheckExtendedClassInsideStaticMethod1.ts | 1 + .../compiler/scopeCheckInsidePublicMethod1.ts | 1 + .../compiler/scopeCheckInsideStaticMethod1.ts | 1 + .../compiler/scopeCheckStaticInitializer.ts | 1 + tests/cases/compiler/scopeTests.ts | 1 + tests/cases/compiler/scopingInCatchBlocks.ts | 1 + tests/cases/compiler/selfInCallback.ts | 1 + tests/cases/compiler/selfInLambdas.ts | 1 + .../selfNameAndImportsEmitInclusion.ts | 1 + tests/cases/compiler/selfRef.ts | 1 + tests/cases/compiler/selfReference.ts | 1 + .../selfReferencesInFunctionParameters.ts | 1 + tests/cases/compiler/selfReferencingFile.ts | 1 + tests/cases/compiler/selfReferencingFile2.ts | 1 + tests/cases/compiler/selfReferencingFile3.ts | 1 + .../compiler/selfReferencingSpreadInLoop.ts | 1 + .../selfReferencingTypeReferenceInference.ts | 1 + .../selfReferentialDefaultNoStackOverflow.ts | 1 + .../compiler/selfReferentialFunctionType.ts | 1 + .../semicolonsInModuleDeclarations.ts | 1 + tests/cases/compiler/separate1-1.ts | 1 + tests/cases/compiler/separate1-2.ts | 1 + tests/cases/compiler/setterBeforeGetter.ts | 1 + tests/cases/compiler/setterWithReturn.ts | 1 + tests/cases/compiler/shadowPrivateMembers.ts | 1 + ...unctionScopedVariablesByBlockScopedOnes.ts | 1 + .../cases/compiler/shadowingViaLocalValue.ts | 1 + .../shadowingViaLocalValueOrBindingElement.ts | 1 + tests/cases/compiler/shebang.ts | 1 + .../cases/compiler/shebangBeforeReferences.ts | 1 + tests/cases/compiler/shebangError.ts | 1 + .../compiler/shorthandPropertyUndefined.ts | 1 + ...uldNotPrintNullEscapesIntoOctalLiterals.ts | 1 + tests/cases/compiler/sideEffectImports1.ts | 1 + tests/cases/compiler/sideEffectImports2.ts | 1 + tests/cases/compiler/sideEffectImports3.ts | 1 + tests/cases/compiler/sideEffectImports4.ts | 1 + .../sigantureIsSubTypeIfTheyAreIdentical.ts | 1 + .../signatureCombiningRestParameters1.ts | 1 + .../signatureCombiningRestParameters2.ts | 1 + .../signatureCombiningRestParameters3.ts | 1 + .../signatureCombiningRestParameters4.ts | 1 + .../signatureCombiningRestParameters5.ts | 1 + ...reInstantiationWithRecursiveConstraints.ts | 1 + .../compiler/signatureLengthMismatchCall.ts | 1 + .../signatureLengthMismatchInOverload.ts | 1 + ...ureLengthMismatchWithOptionalParameters.ts | 1 + .../signatureOverloadsWithComments.ts | 1 + ...signaturesUseJSDocForOptionalParameters.ts | 1 + .../cases/compiler/silentNeverPropagation.ts | 1 + ...tionParameterReferencedInObjectLiteral1.ts | 1 + .../compiler/simpleRecursionWithBaseCase1.ts | 1 + .../compiler/simpleRecursionWithBaseCase2.ts | 1 + .../compiler/simpleRecursionWithBaseCase3.ts | 1 + .../compiler/simpleRecursionWithBaseCase4.ts | 1 + ...itionalWithInteriorConditionalIsRelated.ts | 1 + tests/cases/compiler/singletonLabeledTuple.ts | 1 + .../slashBeforeVariableDeclaration1.ts | 1 + tests/cases/compiler/sliceResultCast.ts | 1 + ...IndirectedDeepObjectLiteralElaborations.ts | 1 + .../compiler/sourceMap-FileWithComments.ts | 1 + tests/cases/compiler/sourceMap-SkippedNode.ts | 1 + ...alModuleWithCommentPrecedingStatement01.ts | 3 +- ...FunctionWithCommentPrecedingStatement01.ts | 3 +- .../cases/compiler/sourceMapPercentEncoded.ts | 1 + tests/cases/compiler/sourceMapSample.ts | 1 + ...apValidationClassWithDefaultConstructor.ts | 1 + ...aultConstructorAndCapturedThisStatement.ts | 1 + ...sWithDefaultConstructorAndExtendsClause.ts | 1 + .../compiler/sourceMapValidationClasses.ts | 1 + .../compiler/sourceMapValidationDebugger.ts | 1 + ...tionDestructuringForArrayBindingPattern.ts | 1 + ...ionDestructuringForArrayBindingPattern2.ts | 1 + ...ringForArrayBindingPatternDefaultValues.ts | 1 + ...ingForArrayBindingPatternDefaultValues2.ts | 1 + ...ionDestructuringForObjectBindingPattern.ts | 1 + ...onDestructuringForObjectBindingPattern2.ts | 1 + ...ingForObjectBindingPatternDefaultValues.ts | 1 + ...ngForObjectBindingPatternDefaultValues2.ts | 1 + ...onDestructuringForOfArrayBindingPattern.ts | 1 + ...nDestructuringForOfArrayBindingPattern2.ts | 1 + ...ngForOfArrayBindingPatternDefaultValues.ts | 1 + ...gForOfArrayBindingPatternDefaultValues2.ts | 1 + ...nDestructuringForOfObjectBindingPattern.ts | 1 + ...DestructuringForOfObjectBindingPattern2.ts | 1 + ...gForOfObjectBindingPatternDefaultValues.ts | 1 + ...ForOfObjectBindingPatternDefaultValues2.ts | 1 + ...ringParameterNestedObjectBindingPattern.ts | 1 + ...NestedObjectBindingPatternDefaultValues.ts | 1 + ...tructuringParameterObjectBindingPattern.ts | 1 + ...ameterObjectBindingPatternDefaultValues.ts | 1 + ...tructuringParametertArrayBindingPattern.ts | 1 + ...ructuringParametertArrayBindingPattern2.ts | 1 + ...ametertArrayBindingPatternDefaultValues.ts | 1 + ...metertArrayBindingPatternDefaultValues2.ts | 1 + ...alidationDestructuringVariableStatement.ts | 1 + ...lidationDestructuringVariableStatement1.ts | 1 + ...ingVariableStatementArrayBindingPattern.ts | 1 + ...ngVariableStatementArrayBindingPattern2.ts | 1 + ...ngVariableStatementArrayBindingPattern3.ts | 1 + ...ngVariableStatementArrayBindingPattern4.ts | 3 +- ...ngVariableStatementArrayBindingPattern5.ts | 3 +- ...ngVariableStatementArrayBindingPattern6.ts | 3 +- ...ngVariableStatementArrayBindingPattern7.ts | 3 +- ...atementArrayBindingPatternDefaultValues.ts | 1 + ...tementArrayBindingPatternDefaultValues2.ts | 1 + ...tementArrayBindingPatternDefaultValues3.ts | 1 + ...ructuringVariableStatementDefaultValues.ts | 1 + ...ableStatementNestedObjectBindingPattern.ts | 1 + ...edObjectBindingPatternWithDefaultValues.ts | 1 + ...gVariableStatementObjectBindingPattern1.ts | 3 +- ...gVariableStatementObjectBindingPattern2.ts | 3 +- ...gVariableStatementObjectBindingPattern3.ts | 3 +- ...gVariableStatementObjectBindingPattern4.ts | 3 +- tests/cases/compiler/sourceMapValidationDo.ts | 1 + .../compiler/sourceMapValidationEnums.ts | 1 + .../sourceMapValidationExportAssignment.ts | 1 + ...ceMapValidationExportAssignmentCommonjs.ts | 1 + .../cases/compiler/sourceMapValidationFor.ts | 1 + .../compiler/sourceMapValidationForIn.ts | 1 + .../sourceMapValidationFunctionExpressions.ts | 1 + ...MapValidationFunctionPropertyAssignment.ts | 1 + .../compiler/sourceMapValidationFunctions.ts | 1 + .../compiler/sourceMapValidationIfElse.ts | 1 + .../compiler/sourceMapValidationImport.ts | 1 + .../compiler/sourceMapValidationLabeled.ts | 1 + ...apValidationLambdaSpanningMultipleLines.ts | 1 + .../compiler/sourceMapValidationModule.ts | 1 + .../compiler/sourceMapValidationStatements.ts | 1 + .../compiler/sourceMapValidationSwitch.ts | 1 + .../sourceMapValidationTryCatchFinally.ts | 1 + ...rceMapValidationVarInDownLevelGenerator.ts | 1 + .../compiler/sourceMapValidationVariables.ts | 1 + .../compiler/sourceMapValidationWhile.ts | 1 + .../sourceMapValidationWithComments.ts | 1 + .../sourceMapWithCaseSensitiveFileNames.ts | 1 + ...eMapWithCaseSensitiveFileNamesAndOutDir.ts | 1 + ...sourceMapWithMultipleFilesWithCopyright.ts | 1 + ...ultipleFilesWithFileEndingWithInterface.ts | 1 + .../sourceMapWithNonCaseSensitiveFileNames.ts | 1 + ...pWithNonCaseSensitiveFileNamesAndOutDir.ts | 1 + .../sourcemapValidationDuplicateNames.ts | 1 + ...eBeforeQuestionMarkInPropertyAssignment.ts | 1 + tests/cases/compiler/specedNoStackBlown.ts | 1 + .../specialIntersectionsInMappedTypes.ts | 1 + tests/cases/compiler/specializationError.ts | 1 + .../compiler/specializationOfExportedClass.ts | 1 + ...specializationsShouldNotAffectEachOther.ts | 1 + tests/cases/compiler/specializeVarArgs1.ts | 1 + .../specializedInheritedConstructors1.ts | 1 + .../specializedLambdaTypeArguments.ts | 1 + .../specializedOverloadWithRestParameters.ts | 1 + ...pecializedSignatureAsCallbackParameter1.ts | 1 + .../specializedSignatureInInterface.ts | 1 + ...SignatureOverloadReturnTypeWithIndexers.ts | 1 + .../compiler/spellingSuggestionGlobal1.ts | 1 + .../compiler/spellingSuggestionGlobal2.ts | 1 + .../compiler/spellingSuggestionGlobal3.ts | 1 + .../compiler/spellingSuggestionGlobal4.ts | 1 + .../spellingSuggestionJSXAttribute.tsx | 1 + .../spellingSuggestionLeadingUnderscores01.ts | 1 + .../compiler/spellingSuggestionModule.ts | 1 + tests/cases/compiler/spliceTuples.ts | 1 + .../spreadBooleanRespectsFreshness.ts | 1 + ...ontainingObjectExpressionContextualType.ts | 1 + .../spreadExpressionContextualType.ts | 1 + ...adExpressionContextualTypeWithNamespace.ts | 1 + .../compiler/spreadIdenticalTypesRemoved.ts | 1 + tests/cases/compiler/spreadIntersection.ts | 1 + .../cases/compiler/spreadIntersectionJsx.tsx | 1 + .../compiler/spreadInvalidArgumentType.ts | 1 + .../cases/compiler/spreadObjectNoCircular1.ts | 1 + .../compiler/spreadObjectPermutations.ts | 1 + ...ithIndexDoesNotAddUndefinedToLocalIndex.ts | 1 + ...ObjectLiteralAssignableToIndexSignature.ts | 1 + ...fParamsFromGeneratorMakesRequiredParams.ts | 1 + .../compiler/spreadParameterTupleType.ts | 1 + .../spreadTupleAccessedByTypeParameter.ts | 1 + .../compiler/spreadTypeRemovesReadonly.ts | 1 + .../cases/compiler/spreadUnionPropOverride.ts | 1 + .../spreadsAndContextualTupleTypes.ts | 1 + .../spuriousCircularityOnTypeImport.ts | 1 + tests/cases/compiler/spyComparisonChecking.ts | 1 + .../compiler/stackDepthLimitCastingType.ts | 1 + tests/cases/compiler/standaloneBreak.ts | 1 + .../compiler/staticAndMemberFunctions.ts | 1 + ...nonymousTypeNotReferencingTypeParameter.ts | 1 + tests/cases/compiler/staticAsIdentifier.ts | 1 + .../cases/compiler/staticClassMemberError.ts | 1 + tests/cases/compiler/staticClassProps.ts | 1 + .../staticFieldWithInterfaceContext.ts | 1 + tests/cases/compiler/staticGetter1.ts | 1 + tests/cases/compiler/staticGetter2.ts | 1 + tests/cases/compiler/staticGetterAndSetter.ts | 1 + ...icIndexSignatureAndNormalIndexSignature.ts | 1 + tests/cases/compiler/staticInheritance.ts | 1 + .../compiler/staticInstanceResolution.ts | 1 + .../compiler/staticInstanceResolution2.ts | 1 + .../compiler/staticInstanceResolution3.ts | 1 + .../compiler/staticInstanceResolution4.ts | 1 + .../compiler/staticInstanceResolution5.ts | 1 + .../staticInterfaceAssignmentCompat.ts | 1 + .../staticMemberAccessOffDerivedType1.ts | 1 + .../compiler/staticMemberExportAccess.ts | 1 + ...AndPublicMemberOfAnotherClassAssignment.ts | 1 + .../staticMemberWithStringAndNumberNames.ts | 1 + .../staticMethodReferencingTypeArgument1.ts | 1 + ...dWithTypeParameterExtendsClauseDeclFile.ts | 1 + ...icMethodsReferencingClassTypeParameters.ts | 1 + .../staticMismatchBecauseOfPrototype.ts | 1 + .../compiler/staticModifierAlreadySeen.ts | 1 + .../cases/compiler/staticMustPrecedePublic.ts | 1 + tests/cases/compiler/staticOffOfInstance1.ts | 1 + tests/cases/compiler/staticOffOfInstance2.ts | 1 + tests/cases/compiler/staticPropSuper.ts | 1 + .../cases/compiler/staticPrototypeProperty.ts | 1 + .../staticPrototypePropertyOnClass.ts | 1 + tests/cases/compiler/staticVisibility.ts | 1 + tests/cases/compiler/staticVisibility2.ts | 1 + tests/cases/compiler/statics.ts | 1 + tests/cases/compiler/staticsInAFunction.ts | 1 + .../compiler/staticsInConstructorBodies.ts | 1 + .../compiler/staticsNotInScopeInClodule.ts | 1 + tests/cases/compiler/stradac.ts | 3 +- .../strictBooleanMemberAssignability.ts | 1 + tests/cases/compiler/strictFunctionTypes1.ts | 1 + .../compiler/strictFunctionTypesErrors.ts | 1 + .../strictModeEnumMemberNameReserved.ts | 1 + .../cases/compiler/strictModeInConstructor.ts | 1 + .../cases/compiler/strictModeReservedWord.ts | 3 +- .../cases/compiler/strictModeReservedWord2.ts | 3 +- ...trictModeReservedWordInClassDeclaration.ts | 3 +- .../strictModeReservedWordInDestructuring.ts | 3 +- ...odeReservedWordInImportEqualDeclaration.ts | 3 +- ...rictModeReservedWordInModuleDeclaration.ts | 3 +- .../strictModeUseContextualKeyword.ts | 3 +- .../compiler/strictNullEmptyDestructuring.ts | 1 + .../cases/compiler/strictNullLogicalAndOr.ts | 1 + .../strictNullNotNullIndexTypeNoLib.ts | 1 + .../strictNullNotNullIndexTypeShouldWork.ts | 1 + .../compiler/strictOptionalProperties1.ts | 1 + .../compiler/strictOptionalProperties2.ts | 1 + .../compiler/strictOptionalProperties3.ts | 1 + .../compiler/strictOptionalProperties4.ts | 1 + .../compiler/strictSubtypeAndNarrowing.ts | 1 + .../compiler/strictTypeofUnionNarrowing.ts | 1 + .../stringHasStringValuedNumericIndexer.ts | 1 + .../compiler/stringIndexerAndConstructor.ts | 1 + .../compiler/stringIndexerAndConstructor1.ts | 1 + .../compiler/stringIndexerAssignments1.ts | 1 + .../compiler/stringIndexerAssignments2.ts | 1 + .../stringLiteralObjectLiteralDeclaration1.ts | 1 + ...iteralPropertyNameWithLineContinuation1.ts | 1 + tests/cases/compiler/stringLiteralsErrors.ts | 1 + .../compiler/stringMappingAssignability.ts | 1 + tests/cases/compiler/stringPropCodeGen.ts | 1 + tests/cases/compiler/stripInternal1.ts | 1 + .../cases/compiler/stripMembersOptionality.ts | 1 + tests/cases/compiler/structural1.ts | 1 + .../structuralTypeInDeclareFileForModule.ts | 1 + tests/cases/compiler/styleOptions.ts | 1 + ...edComponentsInstantiaionLimitNotReached.ts | 1 + ...ubSubClassCanAccessProtectedConstructor.ts | 1 + .../compiler/subclassThisTypeAssignable01.ts | 1 + .../compiler/subclassThisTypeAssignable02.ts | 1 + ...subclassWithPolymorphicThisIsAssignable.ts | 1 + ...substituteReturnTypeSatisfiesConstraint.ts | 1 + .../substitutionTypeForIndexedAccessType1.ts | 1 + .../substitutionTypeForIndexedAccessType2.ts | 1 + ...utionTypeForNonGenericIndexedAccessType.ts | 1 + ...substitutionTypeNoMergeOfAssignableType.ts | 1 + ...sCompareCorrectlyInRestrictiveInstances.ts | 1 + .../substitutionTypesInIndexedAccessTypes.ts | 1 + .../subtypeReductionUnionConstraints.ts | 1 + .../cases/compiler/subtypeRelationForNever.ts | 1 + tests/cases/compiler/subtypingTransitivity.ts | 1 + tests/cases/compiler/super.ts | 1 + tests/cases/compiler/super1.ts | 1 + tests/cases/compiler/super2.ts | 1 + tests/cases/compiler/superAccess.ts | 1 + tests/cases/compiler/superAccess2.ts | 1 + tests/cases/compiler/superAccessCastedCall.ts | 1 + .../cases/compiler/superAccessInFatArrow1.ts | 1 + .../cases/compiler/superCallArgsMustMatch.ts | 1 + tests/cases/compiler/superCallAssignResult.ts | 1 + ...allFromClassThatDerivesFromGenericType1.ts | 1 + ...allFromClassThatDerivesFromGenericType2.ts | 1 + ...eButWithIncorrectNumberOfTypeArguments1.ts | 1 + ...sFromGenericTypeButWithNoTypeArguments1.ts | 1 + ...ivesNonGenericTypeButWithTypeArguments1.ts | 1 + .../superCallFromClassThatHasNoBaseType1.ts | 1 + .../cases/compiler/superCallFromFunction1.ts | 1 + .../compiler/superCallInNonStaticMethod.ts | 1 + .../cases/compiler/superCallInStaticMethod.ts | 1 + .../superCallInsideClassDeclaration.ts | 1 + .../superCallInsideClassExpression.ts | 1 + .../superCallInsideObjectLiteralExpression.ts | 1 + .../compiler/superCallOutsideConstructor.ts | 1 + .../compiler/superCallWithCommentEmit01.ts | 1 + .../compiler/superCallWithMissingBaseClass.ts | 1 + .../cases/compiler/superCallsInConstructor.ts | 1 + tests/cases/compiler/superElementAccess.ts | 1 + tests/cases/compiler/superErrors.ts | 1 + .../superHasMethodsFromMergedInterface.ts | 1 + tests/cases/compiler/superInCatchBlock1.ts | 1 + .../compiler/superInConstructorParam1.ts | 1 + tests/cases/compiler/superInLambdas.ts | 1 + tests/cases/compiler/superNewCall1.ts | 1 + tests/cases/compiler/superNoModifiersCrash.ts | 1 + tests/cases/compiler/superPropertyAccess.ts | 1 + tests/cases/compiler/superPropertyAccess1.ts | 1 + tests/cases/compiler/superPropertyAccess2.ts | 1 + .../superPropertyAccessInSuperCall01.ts | 1 + ...opertyElementNoUnusedLexicalThisCapture.ts | 1 + .../superWithGenericSpecialization.ts | 1 + tests/cases/compiler/superWithGenerics.ts | 1 + tests/cases/compiler/superWithTypeArgument.ts | 1 + .../cases/compiler/superWithTypeArgument2.ts | 1 + .../cases/compiler/superWithTypeArgument3.ts | 1 + ...side-object-literal-getters-and-setters.ts | 1 + .../cases/compiler/switchAssignmentCompat.ts | 1 + .../compiler/switchCaseCircularRefeference.ts | 1 + .../compiler/switchCaseInternalComments.ts | 1 + ...gClausesEvenWhenNonMatchingClausesExist.ts | 1 + tests/cases/compiler/switchCases.ts | 1 + .../switchCasesExpressionTypeMismatch.ts | 1 + .../switchComparableCompatForBrands.ts | 1 + tests/cases/compiler/switchFallThroughs.ts | 1 + .../switchStatementsWithMultipleDefaults.ts | 1 + .../switchStatementsWithMultipleDefaults1.ts | 1 + .../symbolLinkDeclarationEmitModuleNames.ts | 1 + ...LinkDeclarationEmitModuleNamesImportRef.ts | 1 + ...olLinkDeclarationEmitModuleNamesRootDir.ts | 1 + ...oDirectLinkGeneratesDeepNonrelativeName.ts | 1 + ...iesNoDirectLinkGeneratesNonrelativeName.ts | 1 + ...ectLinkOptionalGeneratesNonrelativeName.ts | 1 + ...oDirectLinkPeerGeneratesNonrelativeName.ts | 1 + .../systemDefaultExportCommentValidity.ts | 1 + .../compiler/systemDefaultImportCallable.ts | 1 + .../compiler/systemJsForInNoException.ts | 1 + tests/cases/compiler/systemModule10.ts | 1 + tests/cases/compiler/systemModule11.ts | 1 + tests/cases/compiler/systemModule12.ts | 1 + tests/cases/compiler/systemModule13.ts | 1 + tests/cases/compiler/systemModule14.ts | 1 + tests/cases/compiler/systemModule15.ts | 1 + tests/cases/compiler/systemModule16.ts | 1 + tests/cases/compiler/systemModule17.ts | 1 + tests/cases/compiler/systemModule18.ts | 1 + tests/cases/compiler/systemModule2.ts | 1 + tests/cases/compiler/systemModule3.ts | 1 + tests/cases/compiler/systemModule4.ts | 1 + tests/cases/compiler/systemModule5.ts | 1 + tests/cases/compiler/systemModule6.ts | 1 + tests/cases/compiler/systemModule7.ts | 1 + tests/cases/compiler/systemModule8.ts | 1 + tests/cases/compiler/systemModule9.ts | 1 + .../systemModuleAmbientDeclarations.ts | 1 + .../cases/compiler/systemModuleConstEnums.ts | 1 + ...stemModuleConstEnumsSeparateCompilation.ts | 1 + .../systemModuleDeclarationMerging.ts | 1 + .../compiler/systemModuleExportDefault.ts | 1 + .../systemModuleNonTopLevelModuleMembers.ts | 1 + .../compiler/systemModuleTrailingComments.ts | 1 + .../compiler/systemModuleWithSuperClass.ts | 1 + .../compiler/systemNamespaceAliasEmit.ts | 1 + .../compiler/taggedPrimitiveNarrowing.ts | 1 + ...gedTemplateStringWithSymbolExpression01.ts | 1 + ...taggedTemplateStringsHexadecimalEscapes.ts | 1 + ...gedTemplateStringsWithMultilineTemplate.ts | 1 + ...taggedTemplateStringsWithUnicodeEscapes.ts | 1 + ...gedTemplateStringsWithWhitespaceEscapes.ts | 1 + .../taggedTemplatesInDifferentScopes.ts | 1 + .../compiler/tailRecursiveConditionalTypes.ts | 1 + tests/cases/compiler/targetTypeArgs.ts | 1 + tests/cases/compiler/targetTypeBaseCalls.ts | Bin 786 -> 826 bytes tests/cases/compiler/targetTypeCalls.ts | 1 + tests/cases/compiler/targetTypeCastTest.ts | 1 + .../cases/compiler/targetTypeObjectLiteral.ts | 1 + .../compiler/targetTypeObjectLiteralToAny.ts | 1 + tests/cases/compiler/targetTypeTest1.ts | 1 + tests/cases/compiler/targetTypeTest2.ts | 1 + tests/cases/compiler/targetTypeTest3.ts | 1 + tests/cases/compiler/targetTypeVoidFunc.ts | 1 + .../cases/compiler/targetTypingOnFunctions.ts | 1 + ...teExpressionAsPossiblyDiscriminantValue.ts | 1 + ...ininingOfConstantBindingWithInitializer.ts | 1 + .../templateLiteralConstantEvaluation.ts | 1 + .../compiler/templateLiteralEscapeSequence.ts | 1 + .../compiler/templateLiteralIntersection.ts | 1 + .../compiler/templateLiteralIntersection2.ts | 1 + .../compiler/templateLiteralIntersection3.ts | 1 + .../compiler/templateLiteralIntersection4.ts | 1 + .../templateLiteralsAndDecoratorMetadata.ts | 1 + .../cases/compiler/templateLiteralsInTypes.ts | 1 + .../compiler/templateLiteralsSourceMap.ts | 1 + .../compiler/ternaryExpressionSourceMap.ts | 1 + tests/cases/compiler/testContainerList.ts | 1 + tests/cases/compiler/testTypings.ts | 1 + .../thisAssignmentInNamespaceDeclaration1.ts | 1 + tests/cases/compiler/thisBinding.ts | 1 + tests/cases/compiler/thisBinding2.ts | 1 + tests/cases/compiler/thisCapture1.ts | 1 + ...ditionalOnMethodReturnOfGenericInstance.ts | 1 + ...essionInCallExpressionWithTypeArguments.ts | 1 + .../thisExpressionInIndexExpression.ts | 1 + .../compiler/thisExpressionOfGenericObject.ts | 1 + tests/cases/compiler/thisInAccessors.ts | 1 + ...thisInArrowFunctionInStaticInitializer1.ts | 1 + .../compiler/thisInConstructorParameter1.ts | 1 + .../compiler/thisInConstructorParameter2.ts | 1 + .../compiler/thisInGenericStaticMembers.ts | 3 +- tests/cases/compiler/thisInInnerFunctions.ts | 1 + tests/cases/compiler/thisInLambda.ts | 1 + tests/cases/compiler/thisInModule.ts | 1 + tests/cases/compiler/thisInModuleFunction1.ts | 1 + tests/cases/compiler/thisInObjectJs.ts | 1 + tests/cases/compiler/thisInOuterClassBody.ts | 1 + .../thisInPropertyBoundDeclarations.ts | 1 + tests/cases/compiler/thisInStaticMethod1.ts | 1 + tests/cases/compiler/thisInStatics.ts | 1 + tests/cases/compiler/thisInSuperCall.ts | 1 + tests/cases/compiler/thisInSuperCall1.ts | 1 + tests/cases/compiler/thisInSuperCall2.ts | 1 + tests/cases/compiler/thisInSuperCall3.ts | 1 + .../thisInTupleTypeParameterConstraints.ts | 1 + tests/cases/compiler/thisInTypeQuery.ts | 1 + ...sIndexOnExistingReadonlyFieldIsNotNever.ts | 1 + tests/cases/compiler/thisKeyword.ts | 1 + .../compiler/thisPredicateInObjectLiteral.ts | 1 + ...eferencedInFunctionInsideArrowFunction1.ts | 1 + .../cases/compiler/thisShadowingErrorSpans.ts | 1 + tests/cases/compiler/thisTypeAsConstraint.ts | 1 + .../cases/compiler/thisWhenTypeCheckFails.ts | 1 + .../this_inside-enum-should-not-be-allowed.ts | 1 + ...side-object-literal-getters-and-setters.ts | 1 + tests/cases/compiler/throwWithoutNewLine1.ts | 1 + tests/cases/compiler/throwWithoutNewLine2.ts | 1 + tests/cases/compiler/toStringOnPrimitives.ts | 1 + ...ArgumentsInGenericFunctionTypedArgument.ts | 1 + .../cases/compiler/tooManyTypeParameters1.ts | 1 + .../compiler/topFunctionTypeNotCallable.ts | 1 + tests/cases/compiler/topLevel.ts | 1 + tests/cases/compiler/topLevelBlockExpando.ts | 1 + tests/cases/compiler/topLevelExports.ts | 1 + tests/cases/compiler/topLevelLambda.ts | 1 + tests/cases/compiler/topLevelLambda2.ts | 1 + tests/cases/compiler/topLevelLambda3.ts | 1 + tests/cases/compiler/topLevelLambda4.ts | 1 + tests/cases/compiler/trackedSymbolsNoCrash.ts | 1 + ...railingCommaInHeterogenousArrayLiteral1.ts | 1 + .../transitiveTypeArgumentInference1.ts | 1 + .../compiler/tripleSlashInCommentNotParsed.ts | 1 + ...tripleSlashReferenceAbsoluteWindowsPath.ts | 1 + .../truthinessCallExpressionCoercion.ts | 1 + .../truthinessCallExpressionCoercion1.ts | 1 + .../truthinessCallExpressionCoercion2.ts | 1 + .../truthinessCallExpressionCoercion3.ts | 1 + .../truthinessCallExpressionCoercion4.ts | 1 + tests/cases/compiler/tryCatchFinally.ts | 1 + .../compiler/tryCatchFinallyControlFlow.ts | 1 + .../compiler/tryStatementInternalComments.ts | 1 + ...configExtendsPackageJsonExportsWildcard.ts | 1 + .../tsconfigMapOptionsAreCaseInsensitive.ts | 1 + tests/cases/compiler/tslibMissingHelper.ts | 1 + .../compiler/tslibMultipleMissingHelper.ts | 1 + .../compiler/tslibNotFoundDifferentModules.ts | 1 + tests/cases/compiler/tslibReExportHelpers.ts | 1 + ...ibuteQuickinfoTypesSameAsObjectLiteral.tsx | 1 + .../tsxAttributesHasInferrableIndex.tsx | 1 + .../tsxDeepAttributeAssignabilityError.tsx | 1 + tests/cases/compiler/tsxDefaultImports.ts | 1 + .../tsxDiscriminantPropertyInference.tsx | 1 + .../compiler/tsxFragmentChildrenCheck.ts | 1 + .../tsxInferenceShouldNotYieldAnyOnUnions.tsx | 1 + .../cases/compiler/tsxInvokeComponentType.tsx | 1 + .../cases/compiler/tsxNoTypeAnnotatedSFC.tsx | 1 + .../compiler/tsxNotUsingApparentTypeOfSFC.tsx | 1 + ...tPropsInferenceSucceedsOnIntersections.tsx | 1 + .../tsxResolveExternalModuleExportsTypes.ts | 1 + .../tsxSpreadDoesNotReportExcessProps.tsx | 1 + .../tsxStatelessComponentDefaultProps.tsx | 1 + ...ypeArgumentPartialDefinitionStillErrors.ts | 1 + .../tsxUnionMemberChecksFilterDataProps.tsx | 1 + tests/cases/compiler/tsxUnionSpread.tsx | 1 + tests/cases/compiler/tupleTypeInference.ts | 3 +- tests/cases/compiler/tupleTypeInference2.ts | 1 + tests/cases/compiler/tupleTypes.ts | 1 + .../twiceNestedKeyofIndexInference.ts | 1 + .../compiler/typeAliasDeclarationEmit3.ts | 1 + .../compiler/typeAliasDeclareKeyword01.d.ts | 1 + .../typeAliasDeclareKeywordNewlines.ts | 1 + .../typeAliasDoesntMakeModuleInstantiated.ts | 1 + tests/cases/compiler/typeAliasExport.ts | 1 + .../typeAliasFunctionTypeSharedSymbol.ts | 1 + .../compiler/typeAliasInstantiationNoLeak1.ts | 1 + ...eAnnotationBestCommonTypeInArrayLiteral.ts | 1 + tests/cases/compiler/typeArgInference.ts | 1 + tests/cases/compiler/typeArgInference2.ts | 1 + .../compiler/typeArgInference2WithError.ts | 1 + .../compiler/typeArgInferenceWithNull.ts | 1 + .../typeArgumentConstraintResolution1.ts | 1 + ...tDefaultUsesConstraintOnCircularDefault.ts | 1 + .../compiler/typeArgumentInferenceOrdering.ts | 1 + ...mentInferenceWithConstraintAsCommonRoot.ts | 1 + ...ivelyReferencedTypeAliasToTypeLiteral01.ts | 1 + ...ivelyReferencedTypeAliasToTypeLiteral02.ts | 1 + .../typeArgumentsInFunctionExpressions.ts | 1 + ...rgumentsOnFunctionsWithNoTypeParameters.ts | 1 + ...umentsShouldDisallowNonGenericOverloads.ts | 1 + .../typeAssertionToGenericFunctionType.ts | 1 + .../compiler/typeCheckExportsVariable.ts | 1 + ...pressionWithUndefinedCallResolutionData.ts | 1 + .../typeCheckObjectLiteralMethodBody.ts | 1 + .../compiler/typeCheckReturnExpression.ts | 1 + tests/cases/compiler/typeCheckTypeArgument.ts | 1 + ...CheckingInsideFunctionExpressionInArray.ts | 1 + tests/cases/compiler/typeComparisonCaching.ts | 1 + .../typeConstraintsWithConstructSignatures.ts | 1 + .../typeGuardConstructorClassAndNumber.ts | 1 + .../typeGuardConstructorDerivedClass.ts | 1 + ...GuardConstructorNarrowPrimitivesInUnion.ts | 1 + .../typeGuardNarrowByMutableUntypedField.ts | 1 + .../compiler/typeGuardNarrowByUntypedField.ts | 1 + ...ardNarrowsIndexedAccessOfKnownProperty1.ts | 1 + ...rdNarrowsIndexedAccessOfKnownProperty10.ts | 1 + ...rdNarrowsIndexedAccessOfKnownProperty11.ts | 1 + ...rdNarrowsIndexedAccessOfKnownProperty12.ts | 1 + ...ardNarrowsIndexedAccessOfKnownProperty2.ts | 1 + ...ardNarrowsIndexedAccessOfKnownProperty3.ts | 1 + ...ardNarrowsIndexedAccessOfKnownProperty4.ts | 1 + ...ardNarrowsIndexedAccessOfKnownProperty5.ts | 1 + ...ardNarrowsIndexedAccessOfKnownProperty6.ts | 1 + .../typeGuardOnContainerTypeNoHang.ts | 1 + .../compiler/typeIdentityConsidersBrands.ts | 1 + tests/cases/compiler/typeInfer1.ts | 1 + .../typeInferenceCacheInvalidation.ts | 1 + .../typeInferenceConflictingCandidates.ts | 1 + .../typeInferenceFBoundedTypeParams.ts | 1 + tests/cases/compiler/typeInferenceFixEarly.ts | 1 + .../compiler/typeInferenceLiteralUnion.ts | 1 + .../typeInferenceReturnTypeCallback.ts | 1 + .../compiler/typeInferenceTypePredicate.ts | 1 + .../compiler/typeInferenceTypePredicate2.ts | 1 + .../typeInferenceWithExcessProperties.ts | 1 + .../typeInferenceWithExcessPropertiesJsx.tsx | 2 + .../typeInferenceWithTypeAnnotation.ts | 1 + ...InterfaceDeclarationsInBlockStatements1.ts | 1 + tests/cases/compiler/typeLiteralCallback.ts | 1 + tests/cases/compiler/typeMatch1.ts | 1 + tests/cases/compiler/typeMatch2.ts | 1 + tests/cases/compiler/typeName1.ts | 1 + .../typeOfEnumAndVarRedeclarations.ts | 1 + tests/cases/compiler/typeOfOnTypeArg.ts | 1 + tests/cases/compiler/typeOfOperator1.ts | 1 + tests/cases/compiler/typeOfPrototype.ts | 1 + tests/cases/compiler/typeOfSuperCall.ts | 1 + tests/cases/compiler/typeOfThisInStatics.ts | 1 + .../typeParamExtendsOtherTypeParam.ts | 1 + .../typeParameterAndArgumentOfSameName1.ts | 1 + .../typeParameterArgumentEquivalence.ts | 1 + .../typeParameterArgumentEquivalence2.ts | 1 + .../typeParameterArgumentEquivalence3.ts | 1 + .../typeParameterArgumentEquivalence4.ts | 1 + .../typeParameterArgumentEquivalence5.ts | 1 + .../compiler/typeParameterAsBaseClass.ts | 1 + .../compiler/typeParameterAsElementType.ts | 1 + .../typeParameterAssignmentCompat1.ts | 1 + .../typeParameterAssignmentWithConstraints.ts | 1 + ...rameterCompatibilityAccrossDeclarations.ts | 1 + ...arameterConstrainedToOuterTypeParameter.ts | 1 + ...rameterConstrainedToOuterTypeParameter2.ts | 1 + .../typeParameterConstraintInstantiation.ts | 1 + .../compiler/typeParameterConstraints1.ts | 1 + tests/cases/compiler/typeParameterDiamond1.ts | 1 + tests/cases/compiler/typeParameterDiamond2.ts | 1 + tests/cases/compiler/typeParameterDiamond3.ts | 1 + tests/cases/compiler/typeParameterDiamond4.ts | 1 + ...typeParameterDoesntBlockParameterLookup.ts | 1 + .../typeParameterExplicitlyExtendsAny.ts | 1 + .../compiler/typeParameterExtendingUnion1.ts | 1 + .../compiler/typeParameterExtendingUnion2.ts | 1 + .../compiler/typeParameterExtendsPrimitive.ts | 1 + .../typeParameterFixingWithConstraints.ts | 1 + ...eterFixingWithContextSensitiveArguments.ts | 1 + ...terFixingWithContextSensitiveArguments2.ts | 1 + ...terFixingWithContextSensitiveArguments3.ts | 1 + ...terFixingWithContextSensitiveArguments4.ts | 1 + ...terFixingWithContextSensitiveArguments5.ts | 1 + .../typeParameterHasSelfAsConstraint.ts | 1 + .../compiler/typeParameterInConstraint1.ts | 1 + tests/cases/compiler/typeParameterLeak.ts | 1 + .../typeParameterListWithTrailingComma1.ts | 1 + .../compiler/typeParameterOrderReversal.ts | 1 + .../typeParameterWithInvalidConstraintType.ts | 1 + ...eParametersAndParametersInComputedNames.ts | 1 + .../typeParametersInStaticAccessors.ts | 1 + .../compiler/typeParametersInStaticMethods.ts | 1 + .../typeParametersInStaticProperties.ts | 1 + .../typeParametersShouldNotBeEqual.ts | 1 + .../typeParametersShouldNotBeEqual2.ts | 1 + .../typeParametersShouldNotBeEqual3.ts | 1 + ...tantiatedWithDefaultWhenCheckingDefault.ts | 1 + ...ePredicateAcceptingPartialOfRefinedType.ts | 1 + .../typePredicateFreshLiteralWidening.ts | 1 + tests/cases/compiler/typePredicateInLoop.ts | 1 + tests/cases/compiler/typePredicateInherit.ts | 1 + .../compiler/typePredicateStructuralMatch.ts | 1 + .../typePredicateTopLevelTypeParameter.ts | 1 + .../typePredicateWithThisParameter.ts | 1 + .../typePredicatesCanNarrowByDiscriminant.ts | 1 + tests/cases/compiler/typePredicatesInUnion.ts | 1 + .../cases/compiler/typePredicatesInUnion2.ts | 1 + .../cases/compiler/typePredicatesInUnion3.ts | 1 + .../compiler/typePredicatesInUnion_noMatch.ts | 1 + .../typePredicatesOptionalChaining1.ts | 1 + .../typePredicatesOptionalChaining2.ts | 1 + .../typePredicatesOptionalChaining3.ts | 1 + ...nceDirectiveScopedPackageCustomTypeRoot.ts | 1 + ...eferenceDirectiveWithFailedFromTypeRoot.ts | 1 + .../typeReferenceDirectiveWithTypeAsFile.ts | 1 + .../compiler/typeReferenceDirectives1.ts | 1 + .../compiler/typeReferenceDirectives10.ts | 1 + .../compiler/typeReferenceDirectives11.ts | 1 + .../compiler/typeReferenceDirectives12.ts | 1 + .../compiler/typeReferenceDirectives13.ts | 1 + .../compiler/typeReferenceDirectives2.ts | 1 + .../compiler/typeReferenceDirectives3.ts | 1 + .../compiler/typeReferenceDirectives4.ts | 1 + .../compiler/typeReferenceDirectives5.ts | 1 + .../compiler/typeReferenceDirectives6.ts | 1 + .../compiler/typeReferenceDirectives7.ts | 1 + .../compiler/typeReferenceDirectives8.ts | 1 + .../compiler/typeReferenceDirectives9.ts | 1 + tests/cases/compiler/typeResolution.ts | 1 + ...RootsFromMultipleNodeModulesDirectories.ts | 1 + ...peRootsFromNodeModulesInParentDirectory.ts | 1 + tests/cases/compiler/typeUsedAsValueError.ts | 1 + tests/cases/compiler/typeUsedAsValueError2.ts | 1 + tests/cases/compiler/typeVal.ts | 1 + tests/cases/compiler/typeValueConflict1.ts | 1 + tests/cases/compiler/typeValueConflict2.ts | 1 + .../typeVariableConstraintIntersections.ts | 1 + ...ConstraintedToAliasNotAssignableToUnion.ts | 1 + .../cases/compiler/typeVariableTypeGuards.ts | 1 + .../compiler/typecheckCommaExpression.ts | 1 + tests/cases/compiler/typecheckIfCondition.ts | 1 + tests/cases/compiler/typedArraysSubarray.ts | 1 + .../compiler/typedGenericPrototypeMember.ts | 1 + .../compiler/typeofAmbientExternalModules.ts | 1 + tests/cases/compiler/typeofClass.ts | 1 + tests/cases/compiler/typeofEnum.ts | 1 + tests/cases/compiler/typeofExternalModules.ts | 1 + .../typeofImportInstantiationExpression.ts | 1 + .../compiler/typeofInObjectLiteralType.ts | 1 + tests/cases/compiler/typeofInterface.ts | 1 + tests/cases/compiler/typeofInternalModules.ts | 1 + tests/cases/compiler/typeofObjectInference.ts | 1 + tests/cases/compiler/typeofProperty.ts | 1 + tests/cases/compiler/typeofSimple.ts | 1 + tests/cases/compiler/typeofStrictNull.ts | 1 + tests/cases/compiler/typeofStripsFreshness.ts | 1 + .../compiler/typeofThisInMethodSignature.ts | 1 + tests/cases/compiler/typeofUndefined.ts | 1 + tests/cases/compiler/typeofUnknownSymbol.ts | 1 + .../compiler/typeofUsedBeforeBlockScoped.ts | 1 + tests/cases/compiler/umdDependencyComment2.ts | 1 + .../compiler/umdDependencyCommentName1.ts | 1 + .../compiler/umdDependencyCommentName2.ts | 1 + tests/cases/compiler/umdGlobalConflict.ts | 1 + tests/cases/compiler/umdNamedAmdMode.ts | 1 + tests/cases/compiler/unaryOperators1.ts | 1 + .../compiler/unaryOperatorsInStrictMode.ts | 1 + tests/cases/compiler/unaryPlus.ts | 1 + .../uncalledFunctionChecksInConditional.ts | 1 + .../uncalledFunctionChecksInConditional2.ts | 1 + ...uncalledFunctionChecksInConditionalPerf.ts | 1 + .../cases/compiler/uncaughtCompilerError1.ts | 1 + .../cases/compiler/uncaughtCompilerError2.ts | 1 + .../cases/compiler/unclosedExportClause01.ts | 1 + .../cases/compiler/unclosedExportClause02.ts | 1 + tests/cases/compiler/undeclaredBase.ts | 1 + tests/cases/compiler/undeclaredMethod.ts | 1 + tests/cases/compiler/undeclaredModuleError.ts | 1 + tests/cases/compiler/undeclaredVarEmit.ts | 1 + .../compiler/undefinedArgumentInference.ts | 1 + .../undefinedAsDiscriminantWithUnknown.ts | 1 + ...edAssignableToGenericMappedIntersection.ts | 1 + .../compiler/undefinedInferentialTyping.ts | 1 + ...ndefinedSymbolReferencedInArrayLiteral1.ts | 1 + .../cases/compiler/undefinedTypeArgument1.ts | 1 + .../cases/compiler/undefinedTypeArgument2.ts | 1 + .../compiler/undefinedTypeAssignment1.ts | 1 + .../compiler/undefinedTypeAssignment2.ts | 1 + .../compiler/undefinedTypeAssignment3.ts | 1 + .../compiler/undefinedTypeAssignment4.ts | 1 + .../compiler/underscoreEscapedNameInEnum.ts | 1 + tests/cases/compiler/underscoreMapFirst.ts | 1 + tests/cases/compiler/underscoreTest1.ts | 1 + .../unexpectedStatementBlockTerminator.ts | 1 + .../unexportedInstanceClassVariables.ts | 1 + .../cases/compiler/unicodeIdentifierName2.ts | 3 +- tests/cases/compiler/unicodeStringLiteral.ts | 1 + .../unionCallMixedTypeParameterPresence.ts | 1 + ...unionErrorMessageOnMatchingDiscriminant.ts | 1 + ...tyCheckNoApparentPropTypeMismatchErrors.ts | 1 + .../unionExcessPropsWithPartialMember.ts | 1 + tests/cases/compiler/unionOfClassCalls.ts | 1 + tests/cases/compiler/unionOfEnumInference.ts | 1 + .../unionOfFunctionAndSignatureIsCallable.ts | 1 + .../cases/compiler/unionPropertyExistence.ts | 1 + ...pertyOfProtectedAndIntersectionProperty.ts | 1 + .../compiler/unionReductionMutualSubtypes.ts | 1 + .../compiler/unionRelationshipCheckPasses.ts | 1 + .../unionSignaturesWithThisParameter.ts | 1 + .../compiler/unionSubtypeReductionErrors.ts | 1 + .../unionTypeErrorMessageTypeRefs01.ts | 1 + .../compiler/unionTypeParameterInference.ts | 1 + .../unionTypeWithIndexAndMethodSignature.ts | 1 + .../compiler/unionTypeWithIndexAndTuple.ts | 1 + .../unionTypeWithIndexedLiteralType.ts | 1 + .../compiler/unionTypeWithLeadingOperator.ts | 1 + ...unionTypeWithRecursiveSubtypeReduction1.ts | 1 + ...unionTypeWithRecursiveSubtypeReduction2.ts | 1 + ...unionTypeWithRecursiveSubtypeReduction3.ts | 1 + .../cases/compiler/unionWithIndexSignature.ts | 1 + ...olAllowsIndexInObjectWithIndexSignature.ts | 1 + tests/cases/compiler/uniqueSymbolJs2.ts | 1 + .../uniqueSymbolPropertyDeclarationEmit.ts | 1 + ...nknownLikeUnionObjectFlagsNotPropagated.ts | 1 + ...ownPropertiesAreAssignableToObjectUnion.ts | 1 + .../unknownSymbolInGenericReturnType.ts | 1 + .../unknownSymbolOffContextualType1.ts | 1 + tests/cases/compiler/unknownSymbols1.ts | 1 + tests/cases/compiler/unknownSymbols2.ts | 1 + tests/cases/compiler/unknownTypeArgOnCall.ts | 1 + tests/cases/compiler/unknownTypeErrors.ts | 1 + .../compiler/unmatchedParameterPositions.ts | 1 + .../unmetTypeConstraintInImportCall.ts | 1 + .../unmetTypeConstraintInJSDocImportCall.ts | 1 + ...zedConstructorTypeInUnionOrIntersection.ts | 1 + ...esizedFunctionTypeInUnionOrIntersection.ts | 1 + .../compiler/unqualifiedCallToClassStatic1.ts | 1 + .../cases/compiler/unreachableDeclarations.ts | 1 + .../compiler/unreachableFlowAfterFinally.ts | 1 + .../compiler/unreachableJavascriptChecked.ts | 1 + .../unreachableJavascriptUnchecked.ts | 1 + .../compiler/unreachableSwitchTypeofAny.ts | 1 + .../unreachableSwitchTypeofUnknown.ts | 1 + ...unresolvableSelfReferencingAwaitedUnion.ts | 1 + .../compiler/unresolvedTypeAssertionSymbol.ts | 1 + .../compiler/unspecializedConstraints.ts | 1 + .../unterminatedRegexAtEndOfSource1.ts | 1 + ...unterminatedStringLiteralWithBackslash1.ts | 1 + .../untypedArgumentInLambdaExpression.ts | 1 + ...untypedFunctionCallsWithTypeParameters1.ts | 1 + .../untypedModuleImport_withAugmentation2.ts | 1 + .../cases/compiler/unusedClassesinModule1.ts | 1 + .../compiler/unusedClassesinNamespace1.ts | 1 + .../compiler/unusedClassesinNamespace2.ts | 1 + .../compiler/unusedClassesinNamespace3.ts | 1 + .../compiler/unusedClassesinNamespace4.ts | 1 + .../compiler/unusedClassesinNamespace5.ts | 1 + tests/cases/compiler/unusedDestructuring.ts | 1 + .../compiler/unusedDestructuringParameters.ts | 1 + .../compiler/unusedFunctionsinNamespaces1.ts | 1 + .../compiler/unusedFunctionsinNamespaces2.ts | 1 + .../compiler/unusedFunctionsinNamespaces3.ts | 1 + .../compiler/unusedFunctionsinNamespaces4.ts | 1 + .../compiler/unusedFunctionsinNamespaces5.ts | 1 + .../compiler/unusedFunctionsinNamespaces6.ts | 1 + .../unusedIdentifiersConsolidated1.ts | 1 + .../cases/compiler/unusedImportDeclaration.ts | 1 + tests/cases/compiler/unusedImports1.ts | 1 + tests/cases/compiler/unusedImports10.ts | 1 + tests/cases/compiler/unusedImports11.ts | 2 + tests/cases/compiler/unusedImports12.ts | 2 + tests/cases/compiler/unusedImports13.ts | 1 + tests/cases/compiler/unusedImports14.ts | 1 + tests/cases/compiler/unusedImports15.ts | 1 + tests/cases/compiler/unusedImports16.ts | 1 + tests/cases/compiler/unusedImports2.ts | 1 + tests/cases/compiler/unusedImports3.ts | 1 + tests/cases/compiler/unusedImports4.ts | 1 + tests/cases/compiler/unusedImports5.ts | 1 + tests/cases/compiler/unusedImports6.ts | 1 + tests/cases/compiler/unusedImports7.ts | 1 + tests/cases/compiler/unusedImports8.ts | 1 + tests/cases/compiler/unusedImports9.ts | 2 + .../unusedImports_entireImportDeclaration.ts | 1 + .../compiler/unusedInterfaceinNamespace1.ts | 1 + .../compiler/unusedInterfaceinNamespace2.ts | 1 + .../compiler/unusedInterfaceinNamespace3.ts | 1 + .../compiler/unusedInterfaceinNamespace4.ts | 1 + .../compiler/unusedInterfaceinNamespace5.ts | 1 + .../compiler/unusedInvalidTypeArguments.ts | 1 + tests/cases/compiler/unusedLocalProperty.ts | 1 + .../compiler/unusedLocalsAndObjectSpread.ts | 1 + .../compiler/unusedLocalsAndObjectSpread2.ts | 1 + .../compiler/unusedLocalsAndParameters.ts | 1 + .../unusedLocalsAndParametersDeferred.ts | 1 + ...edLocalsAndParametersOverloadSignatures.ts | 1 + .../unusedLocalsAndParametersTypeAliases.ts | 1 + .../unusedLocalsAndParametersTypeAliases2.ts | 1 + tests/cases/compiler/unusedLocalsInMethod1.ts | 1 + tests/cases/compiler/unusedLocalsInMethod2.ts | 1 + tests/cases/compiler/unusedLocalsInMethod3.ts | 1 + tests/cases/compiler/unusedLocalsInMethod4.ts | 1 + .../compiler/unusedLocalsInRecursiveReturn.ts | 1 + ...onDeclarationWithinFunctionDeclaration1.ts | 1 + ...onDeclarationWithinFunctionDeclaration2.ts | 1 + ...ionDeclarationWithinFunctionExpression1.ts | 1 + ...ionDeclarationWithinFunctionExpression2.ts | 1 + ...ionExpressionWithinFunctionDeclaration1.ts | 1 + ...ionExpressionWithinFunctionDeclaration2.ts | 1 + ...tionExpressionWithinFunctionExpression1.ts | 1 + ...tionExpressionWithinFunctionExpression2.ts | 1 + .../unusedLocalsStartingWithUnderscore.ts | 1 + .../compiler/unusedLocalsinConstructor1.ts | 1 + .../compiler/unusedLocalsinConstructor2.ts | 1 + .../compiler/unusedMethodsInInterface.ts | 1 + tests/cases/compiler/unusedModuleInModule.ts | 1 + .../unusedMultipleParameter1InContructor.ts | 1 + ...dMultipleParameter1InFunctionExpression.ts | 1 + .../unusedMultipleParameter2InContructor.ts | 1 + ...dMultipleParameter2InFunctionExpression.ts | 1 + ...ultipleParameters1InFunctionDeclaration.ts | 1 + ...dMultipleParameters1InMethodDeclaration.ts | 1 + ...ultipleParameters2InFunctionDeclaration.ts | 1 + ...dMultipleParameters2InMethodDeclaration.ts | 1 + .../cases/compiler/unusedNamespaceInModule.ts | 1 + .../compiler/unusedNamespaceInNamespace.ts | 1 + .../compiler/unusedParameterInCatchClause.ts | 1 + .../compiler/unusedParameterProperty1.ts | 1 + .../compiler/unusedParameterProperty2.ts | 1 + .../compiler/unusedParametersInLambda1.ts | 1 + .../compiler/unusedParametersInLambda2.ts | 1 + tests/cases/compiler/unusedParametersThis.ts | 1 + .../unusedParametersWithUnderscore.ts | 1 + .../unusedParametersinConstructor1.ts | 1 + .../unusedParametersinConstructor2.ts | 1 + .../unusedParametersinConstructor3.ts | 1 + .../compiler/unusedPrivateMethodInClass1.ts | 1 + .../compiler/unusedPrivateMethodInClass2.ts | 1 + .../compiler/unusedPrivateMethodInClass3.ts | 1 + .../compiler/unusedPrivateMethodInClass4.ts | 1 + .../compiler/unusedPrivateVariableInClass1.ts | 1 + .../compiler/unusedPrivateVariableInClass2.ts | 1 + .../compiler/unusedPrivateVariableInClass3.ts | 1 + .../compiler/unusedPrivateVariableInClass4.ts | 1 + .../compiler/unusedPrivateVariableInClass5.ts | 1 + .../cases/compiler/unusedSemicolonInClass.ts | 1 + tests/cases/compiler/unusedSetterInClass2.ts | 1 + .../unusedSingleParameterInContructor.ts | 1 + ...sedSingleParameterInFunctionDeclaration.ts | 1 + ...usedSingleParameterInFunctionExpression.ts | 1 + ...nusedSingleParameterInMethodDeclaration.ts | 1 + tests/cases/compiler/unusedSwitchStatement.ts | 1 + .../unusedTypeParameterInFunction1.ts | 1 + .../unusedTypeParameterInFunction2.ts | 1 + .../unusedTypeParameterInFunction3.ts | 1 + .../unusedTypeParameterInFunction4.ts | 1 + .../unusedTypeParameterInInterface1.ts | 1 + .../unusedTypeParameterInInterface2.ts | 1 + .../compiler/unusedTypeParameterInLambda1.ts | 1 + .../compiler/unusedTypeParameterInLambda2.ts | 1 + .../compiler/unusedTypeParameterInLambda3.ts | 1 + .../compiler/unusedTypeParameterInMethod1.ts | 1 + .../compiler/unusedTypeParameterInMethod2.ts | 1 + .../compiler/unusedTypeParameterInMethod3.ts | 1 + .../compiler/unusedTypeParameterInMethod4.ts | 1 + .../compiler/unusedTypeParameterInMethod5.ts | 1 + tests/cases/compiler/unusedTypeParameters1.ts | 1 + .../cases/compiler/unusedTypeParameters10.ts | 1 + tests/cases/compiler/unusedTypeParameters2.ts | 1 + tests/cases/compiler/unusedTypeParameters3.ts | 1 + tests/cases/compiler/unusedTypeParameters4.ts | 1 + tests/cases/compiler/unusedTypeParameters5.ts | 1 + tests/cases/compiler/unusedTypeParameters6.ts | 1 + tests/cases/compiler/unusedTypeParameters7.ts | 1 + tests/cases/compiler/unusedTypeParameters8.ts | 1 + tests/cases/compiler/unusedTypeParameters9.ts | 1 + ...peParametersCheckedByNoUnusedParameters.ts | 1 + ...ypeParametersNotCheckedByNoUnusedLocals.ts | 1 + .../unusedTypeParametersWithUnderscore.ts | 1 + .../compiler/unusedTypeParameters_infer.ts | 1 + .../unusedTypeParameters_templateTag.ts | 1 + .../unusedTypeParameters_templateTag2.ts | 1 + ...VariablesWithUnderscoreInBindingElement.ts | 1 + ...nusedVariablesWithUnderscoreInForOfLoop.ts | 1 + .../compiler/unusedVariablesinBlocks1.ts | 1 + .../compiler/unusedVariablesinBlocks2.ts | 1 + .../compiler/unusedVariablesinForLoop.ts | 1 + .../compiler/unusedVariablesinForLoop2.ts | 1 + .../compiler/unusedVariablesinForLoop3.ts | 1 + .../compiler/unusedVariablesinForLoop4.ts | 1 + .../compiler/unusedVariablesinModules1.ts | 1 + .../compiler/unusedVariablesinNamespaces1.ts | 1 + .../compiler/unusedVariablesinNamespaces2.ts | 1 + .../compiler/unusedVariablesinNamespaces3.ts | 1 + .../unwitnessedTypeParameterVariance.ts | 1 + tests/cases/compiler/useBeforeDeclaration.ts | 1 + .../useBeforeDeclaration_destructuring.ts | 1 + .../useBeforeDeclaration_superClass.ts | 1 + .../useBeforeDefinitionInDeclarationFiles.ts | 1 + .../compiler/useUnknownInCatchVariables01.ts | 1 + ...ngModuleWithExportImportInValuePosition.ts | 1 + tests/cases/compiler/validRegexp.ts | 1 + tests/cases/compiler/validUseOfThisInSuper.ts | 1 + .../cases/compiler/varAndFunctionShareName.ts | 1 + .../varArgConstructorMemberParameter.ts | 1 + tests/cases/compiler/varArgParamTypeCheck.ts | 1 + tests/cases/compiler/varArgWithNoParamName.ts | 1 + .../compiler/varArgsOnConstructorTypes.ts | 1 + tests/cases/compiler/varAsID.ts | 1 + tests/cases/compiler/varBlock.ts | 1 + .../compiler/varInFunctionInVarInitializer.ts | 1 + ...flictsWithImportInDifferentPartOfModule.ts | 1 + tests/cases/compiler/vararg.ts | 1 + tests/cases/compiler/vardecl.ts | 1 + ...arationEmitUniqueSymbolPartialStatement.ts | 1 + .../variableDeclarationInStrictMode1.ts | 1 + .../variableDeclarationInnerCommentEmit.ts | 1 + tests/cases/compiler/variableDeclarator1.ts | 1 + ...eclaratorResolvedDuringContextualTyping.ts | 1 + .../compiler/varianceAnnotationValidation.ts | 1 + .../varianceCallbacksAndIndexedAccesses.ts | 1 + .../varianceCantBeStrictWhileStructureIsnt.ts | 1 + tests/cases/compiler/varianceMeasurement.ts | 1 + ...ndZeroOrderIndexSignatureRelationsAlign.ts | 1 + ...dZeroOrderIndexSignatureRelationsAlign2.ts | 1 + tests/cases/compiler/variancePropagation.ts | 1 + tests/cases/compiler/varianceReferences.ts | 1 + ...eRepeatedlyPropegatesWithUnreliableFlag.ts | 1 + .../verbatim-declarations-parameters.ts | 1 + .../verbatimModuleSyntaxReactReference.ts | 1 + tests/cases/compiler/verifyDefaultLib_dom.ts | 1 + .../compiler/verifyDefaultLib_webworker.ts | 1 + tests/cases/compiler/visSyntax.ts | 1 + .../visibilityOfCrossModuleTypeUsage.ts | 1 + .../compiler/visibilityOfTypeParameters.ts | 1 + tests/cases/compiler/voidArrayLit.ts | 1 + .../compiler/voidAsNonAmbiguousReturnType.ts | 1 + tests/cases/compiler/voidAsOperator.ts | 1 + tests/cases/compiler/voidConstructor.ts | 1 + .../compiler/voidFunctionAssignmentCompat.ts | 1 + tests/cases/compiler/voidIsInitialized.ts | 1 + tests/cases/compiler/voidOperator1.ts | 1 + .../compiler/voidReturnIndexUnionInference.ts | 1 + tests/cases/compiler/voidReturnLambdaValue.ts | 1 + .../cases/compiler/voidUndefinedReduction.ts | 1 + .../compiler/vueLikeDataAndPropsInference.ts | 1 + .../compiler/vueLikeDataAndPropsInference2.ts | 1 + tests/cases/compiler/weakType.ts | 1 + .../compiler/weakTypeAndPrimitiveNarrowing.ts | 1 + .../compiler/whileStatementInnerComments.ts | 1 + tests/cases/compiler/widenToAny1.ts | 1 + tests/cases/compiler/widenToAny2.ts | 1 + tests/cases/compiler/widenedTypes.ts | 1 + tests/cases/compiler/widenedTypes1.ts | 1 + .../wideningWithTopLevelTypeParameter.ts | 1 + tests/cases/compiler/withExportDecl.ts | 1 + tests/cases/compiler/withImportDecl.ts | 1 + tests/cases/compiler/withStatement.ts | 1 + tests/cases/compiler/withStatementErrors.ts | 1 + .../compiler/withStatementInternalComments.ts | 1 + .../compiler/withStatementNestedScope.ts | 1 + tests/cases/compiler/wrappedIncovations1.ts | 1 + tests/cases/compiler/wrappedIncovations2.ts | 1 + .../compiler/wrappedRecursiveGenericType.ts | 1 + tests/cases/compiler/yieldStringLiteral.ts | 1 + .../noPropertyAccessFromIndexSignature1.ts | 1 + .../ambient/ambientDeclarations.ts | 1 + .../ambient/ambientDeclarationsExternal.ts | 2 + .../ambient/ambientDeclarationsPatterns.ts | 1 + .../ambientDeclarationsPatterns_merging1.ts | 1 + .../ambientDeclarationsPatterns_merging2.ts | 1 + .../ambientDeclarationsPatterns_merging3.ts | 1 + ...ntDeclarationsPatterns_tooManyAsterisks.ts | 1 + .../ambient/ambientEnumDeclaration1.ts | 3 +- .../ambient/ambientEnumDeclaration2.ts | 3 +- .../conformance/ambient/ambientErrors.ts | 1 + .../ambientExternalModuleInsideNonAmbient.ts | 1 + ...nalModuleInsideNonAmbientExternalModule.ts | 1 + .../ambient/ambientExternalModuleMerging.ts | 1 + .../ambient/ambientInsideNonAmbient.ts | 1 + .../ambientInsideNonAmbientExternalModule.ts | 1 + ...ationWithReservedIdentifierInDottedPath.ts | 1 + ...tionWithReservedIdentifierInDottedPath2.ts | 1 + .../conformance/ambient/ambientShorthand.ts | 2 + .../ambientShorthand_declarationEmit.ts | 1 + .../ambient/ambientShorthand_duplicate.ts | 1 + .../ambient/ambientShorthand_merging.ts | 1 + .../ambient/ambientShorthand_reExport.ts | 1 + .../classAbstractAsIdentifier.ts | 1 + ...bstractAssignabilityConstructorFunction.ts | 1 + .../classAbstractClinterfaceAssignability.ts | 1 + .../classAbstractConstructor.ts | 1 + .../classAbstractConstructorAssignability.ts | 1 + .../classAbstractCrashedOnce.ts | 1 + .../classAbstractDeclarations.d.ts | 1 + .../classAbstractExtends.ts | 1 + .../classAbstractFactoryFunction.ts | 1 + .../classAbstractGeneric.ts | 1 + .../classAbstractImportInstantiation.ts | 1 + .../classAbstractInAModule.ts | 1 + .../classAbstractInheritance1.ts | 1 + .../classAbstractInheritance2.ts | 1 + .../classAbstractInstantiations1.ts | 1 + .../classAbstractInstantiations2.ts | 1 + .../classAbstractManyKeywords.ts | 1 + .../classAbstractMergedDeclaration.ts | 1 + .../classAbstractMethodInNonAbstractClass.ts | 1 + .../classAbstractMethodWithImplementation.ts | 1 + .../classAbstractMixedWithModifiers.ts | 1 + .../classAbstractOverloads.ts | 1 + .../classAbstractOverrideWithAbstract.ts | 1 + .../classAbstractProperties.ts | 1 + .../classAbstractSingleLineDecl.ts | 1 + .../classAbstractSuperCalls.ts | 1 + .../classAbstractUsingAbstractMethod1.ts | 1 + .../classAbstractUsingAbstractMethods2.ts | 1 + .../classAbstractWithInterface.ts | 1 + .../classAndInterfaceMerge.d.ts | 1 + ...lassAndInterfaceMergeConflictingMembers.ts | 1 + .../classAndInterfaceWithSameName.ts | 1 + .../classAndVariableWithSameName.ts | 1 + .../classBody/classBodyWithStatements.ts | 1 + .../classBody/classWithEmptyBody.ts | 1 + .../classDeclarations/classDeclarationLoop.ts | 1 + .../classExtendingBuiltinType.ts | 1 + .../classExtendingClassLikeType.ts | 1 + .../classExtendingNonConstructor.ts | 1 + .../classDeclarations/classExtendingNull.ts | 1 + .../classAppearsToHaveMembersOfObject.ts | 1 + .../classExtendingClass.ts | 1 + .../classExtendingOptionalChain.ts | 1 + .../classExtendingPrimitive.ts | 1 + .../classExtendingPrimitive2.ts | 1 + .../classExtendsEveryObjectType.ts | 1 + .../classExtendsEveryObjectType2.ts | 1 + .../classExtendsItself.ts | 1 + .../classExtendsItselfIndirectly.ts | 1 + .../classExtendsItselfIndirectly2.ts | 1 + .../classExtendsItselfIndirectly3.ts | 1 + ...classExtendsShadowedConstructorFunction.ts | 1 + .../classExtendsValidConstructorFunction.ts | 1 + .../classIsSubtypeOfBaseType.ts | 1 + ...uctorFunctionTypeIsAssignableToBaseType.ts | 1 + ...ctorFunctionTypeIsAssignableToBaseType2.ts | 1 + .../derivedTypeDoesNotRequireExtendsClause.ts | 1 + .../classImplementsMergedClassInterface.ts | 1 + .../classDeclarations/classInsideBlock.ts | 1 + .../classWithPredefinedTypesAsNames.ts | 1 + .../classWithPredefinedTypesAsNames2.ts | 1 + .../classWithSemicolonClassElement1.ts | 1 + .../classWithSemicolonClassElement2.ts | 1 + .../declaredClassMergedwithSelf.ts | 1 + .../mergeClassInterfaceAndModule.ts | 1 + .../classDeclarations/mergedClassInterface.ts | 1 + .../mergedInheritedClassInterface.ts | 1 + ...ifierOnClassDeclarationMemberInFunction.ts | 3 +- .../conformance/classes/classExpression.ts | 1 + .../classExpressions/classExpression1.ts | 1 + .../classExpressions/classExpression2.ts | 1 + .../classExpressions/classExpression3.ts | 1 + .../classExpressions/classExpression4.ts | 1 + .../classExpressions/classExpression5.ts | 1 + .../classExpressions/classExpressionLoop.ts | 1 + .../extendClassExpressionFromModule.ts | 1 + .../genericClassExpressionInFunction.ts | 3 +- ...difierOnClassExpressionMemberInFunction.ts | 3 +- .../classStaticBlock/classStaticBlock19.ts | 1 + .../classStaticBlock/classStaticBlock20.ts | 1 + .../classStaticBlock/classStaticBlock21.ts | 1 + .../classStaticBlock/classStaticBlock24.ts | 1 + .../classStaticBlock/classStaticBlock27.ts | 1 + .../classStaticBlock/classStaticBlock28.ts | 1 + .../classStaticBlock/classStaticBlock6.ts | 1 + .../classStaticBlock/classStaticBlock7.ts | 1 + .../classStaticBlock/classStaticBlock8.ts | 1 + .../classStaticBlockUseBeforeDef3.ts | 1 + .../classWithoutExplicitConstructor.ts | 1 + .../derivedClassWithoutExplicitConstructor.ts | 1 + ...derivedClassWithoutExplicitConstructor2.ts | 1 + ...derivedClassWithoutExplicitConstructor3.ts | 1 + .../classConstructorAccessibility.ts | 1 + .../classConstructorAccessibility2.ts | 1 + .../classConstructorAccessibility3.ts | 1 + .../classConstructorAccessibility4.ts | 1 + .../classConstructorAccessibility5.ts | 1 + .../classConstructorOverloadsAccessibility.ts | 1 + ...classConstructorParametersAccessibility.ts | 1 + ...lassConstructorParametersAccessibility2.ts | 1 + ...lassConstructorParametersAccessibility3.ts | 1 + .../classWithTwoConstructorDefinitions.ts | 1 + ...constructorDefaultValuesReferencingThis.ts | 1 + ...structorImplementationWithDefaultValues.ts | 1 + ...tructorImplementationWithDefaultValues2.ts | 1 + .../constructorOverloadsWithDefaultValues.ts | 1 + ...structorOverloadsWithOptionalParameters.ts | 1 + .../constructorParameterProperties.ts | 1 + .../constructorParameterProperties2.ts | 1 + .../declarationEmitReadonly.ts | 1 + .../readonlyConstructorAssignment.ts | 1 + .../readonlyInAmbientClass.ts | 1 + .../readonlyInConstructorParameters.ts | 1 + .../constructorParameters/readonlyReadonly.ts | 1 + ...nstructorWithAssignableReturnExpression.ts | 1 + .../constructorWithExpressionLessReturn.ts | 1 + .../quotedConstructors.ts | 1 + ...derivedClassConstructorWithoutSuperCall.ts | 1 + .../derivedClassParameterProperties.ts | 1 + ...dClassSuperCallsInNonConstructorMembers.ts | 1 + .../derivedClassSuperCallsWithThisArg.ts | 1 + .../superCallInConstructorWithNoBaseType.ts | 1 + ...perPropertyInConstructorBeforeSuperCall.ts | 1 + .../indexMemberDeclarations/privateIndexer.ts | 1 + .../privateIndexer2.ts | 1 + .../indexMemberDeclarations/publicIndexer.ts | 1 + .../indexMemberDeclarations/staticIndexers.ts | 1 + .../accessibility/classPropertyAsPrivate.ts | 1 + .../accessibility/classPropertyAsProtected.ts | 1 + .../classPropertyIsPublicByDefault.ts | 1 + ...ivateClassPropertyAccessibleWithinClass.ts | 1 + .../privateInstanceMemberAccessibility.ts | 1 + ...tedMembersAreNotAccessibleDestructuring.ts | 1 + .../privateStaticMemberAccessibility.ts | 1 + .../privateStaticNotAccessibleInClodule.ts | 1 + .../privateStaticNotAccessibleInClodule2.ts | 1 + ...PropertyAccessibleWithinNestedSubclass1.ts | 1 + ...dClassPropertyAccessibleWithinSubclass2.ts | 1 + ...dClassPropertyAccessibleWithinSubclass3.ts | 1 + .../protectedInstanceMemberAccessibility.ts | 1 + ...icClassPropertyAccessibleWithinSubclass.ts | 1 + ...cClassPropertyAccessibleWithinSubclass2.ts | 1 + .../protectedStaticNotAccessibleInClodule.ts | 1 + .../members/classTypes/indexersInClassType.ts | 1 + ...nstancePropertiesInheritedIntoClassType.ts | 1 + .../classTypes/instancePropertyInClassType.ts | 1 + .../staticPropertyNotInClassType.ts | 1 + .../classWithBaseClassButNoConstructor.ts | 1 + .../classWithConstructors.ts | 1 + .../classWithNoConstructorOrBaseClass.ts | 1 + .../classWithStaticMembers.ts | 1 + .../constructorHasPrototypeProperty.ts | 1 + ...ClassFunctionOverridesBaseClassAccessor.ts | 1 + .../derivedClassIncludesInheritedMembers.ts | 1 + ...idesIndexersWithAssignmentCompatibility.ts | 1 + .../derivedClassOverridesPrivates.ts | 1 + .../derivedClassOverridesProtectedMembers4.ts | 1 + .../derivedClassOverridesPublicMembers.ts | 1 + .../derivedClassOverridesWithoutSubtype.ts | 1 + .../derivedClassTransitivity.ts | 1 + .../derivedClassTransitivity2.ts | 1 + .../derivedClassTransitivity3.ts | 1 + .../derivedClassTransitivity4.ts | 1 + .../derivedClassWithAny.ts | 1 + ...hPrivateInstanceShadowingPublicInstance.ts | 1 + ...sWithPrivateStaticShadowingPublicStatic.ts | 1 + .../derivedGenericClassWithAny.ts | 1 + .../typeOfThisInInstanceMember.ts | 1 + .../typeOfThisInInstanceMember2.ts | 1 + .../typeOfThisInStaticMembers.ts | 1 + .../typeOfThisInStaticMembers2.ts | 1 + .../typeOfThisInStaticMembers6.ts | 1 + ...nstanceMemberNarrowedWithLoopAntecedent.ts | 1 + .../privateNameAndPropertySignature.ts | 1 + .../privateNames/privateNameBadDeclaration.ts | 1 + .../members/privateNames/privateNameEnum.ts | 1 + .../privateNameImplicitDeclaration.ts | 1 + .../privateNameInObjectLiteral-1.ts | 1 + .../privateNameInObjectLiteral-2.ts | 1 + .../privateNameInObjectLiteral-3.ts | 1 + .../privateNameJsBadDeclaration.ts | 1 + .../privateNames/privateNamesAndDecorators.ts | 1 + .../classes/mixinAccessModifiers.ts | 1 + .../classes/mixinClassesAnnotated.ts | 1 + .../classes/mixinClassesAnonymous.ts | 1 + .../classes/mixinClassesMembers.ts | 1 + .../mixinWithBaseDependingOnSelfNoCrash1.ts | 1 + .../classes/nestedClassDeclaration.ts | 1 + .../abstractPropertyInitializer.ts | 1 + .../canFollowGetSetKeyword.ts | 1 + .../constructorParameterShadowsOuterScopes.ts | 1 + ...derivedUninitializedPropertyDeclaration.ts | 1 + ...initializerReferencingConstructorLocals.ts | 1 + ...ializerReferencingConstructorParameters.ts | 1 + .../instanceMemberInitialization.ts | 1 + .../instanceMemberWithComputedPropertyName.ts | 1 + .../accessorsAreNotContextuallyTyped.ts | 1 + .../typeOfThisInAccessor.ts | 1 + ...sesHiddenBaseCallViaSuperPropertyAccess.ts | 1 + .../instanceMemberAssignsToClassPrototype.ts | 1 + ...FunctionOverloadMixingStaticAndInstance.ts | 1 + .../memberFunctionsWithPrivateOverloads.ts | 1 + .../memberFunctionsWithPublicOverloads.ts | 1 + ...mberFunctionsWithPublicPrivateOverloads.ts | 1 + .../staticFactory1.ts | 1 + ...mberAssignsToConstructorFunctionMembers.ts | 1 + .../typeOfThisInMemberFunctions.ts | 1 + .../propertyAndAccessorWithSameName.ts | 1 + .../propertyAndFunctionWithSameName.ts | 1 + .../propertyNamedConstructor.ts | 1 + .../propertyNamedPrototype.ts | 1 + .../staticAndNonStaticPropertiesSameName.ts | 1 + .../staticMemberInitialization.ts | 1 + .../staticPropertyAndFunctionWithSameName.ts | 1 + ...icPropertyNameConflictsInAmbientContext.ts | 1 + .../thisInInstanceMemberInitializer.ts | 1 + .../twoAccessorsWithSameName2.ts | 1 + .../staticIndexSignature1.ts | 1 + .../staticIndexSignature2.ts | 1 + .../staticIndexSignature3.ts | 1 + .../staticIndexSignature4.ts | 1 + .../staticIndexSignature5.ts | 1 + .../staticIndexSignature6.ts | 1 + .../staticIndexSignature7.ts | 1 + .../conformance/constEnums/constEnum1.ts | 3 +- .../conformance/constEnums/constEnum2.ts | 3 +- .../conformance/constEnums/constEnum3.ts | 1 + .../conformance/constEnums/constEnum4.ts | 1 + ...onstEnumNoObjectPrototypePropertyAccess.ts | 1 + .../constEnums/constEnumPropertyAccess2.ts | 3 +- .../constEnums/constEnumPropertyAccess3.ts | 1 + .../importElisionConstEnumMerge1.ts | 1 + .../controlFlow/assertionTypePredicates1.ts | 1 + .../controlFlow/assertionTypePredicates2.ts | 1 + .../constLocalsInFunctionExpressions.ts | 1 + .../controlFlow/controlFlowAliasing.ts | 1 + .../controlFlow/controlFlowAliasing2.ts | 1 + .../controlFlowAliasingCatchVariables.ts | 1 + .../controlFlowAssignmentExpression.ts | 1 + .../controlFlowBinaryAndExpression.ts | 1 + .../controlFlowBinaryOrExpression.ts | 1 + .../controlFlow/controlFlowBindingElement.ts | 1 + .../controlFlow/controlFlowCommaOperator.ts | 1 + .../controlFlowComputedPropertyNames.ts | 1 + .../controlFlowConditionalExpression.ts | 1 + .../controlFlow/controlFlowDeleteOperator.ts | 1 + .../controlFlowDestructuringDeclaration.ts | 1 + .../controlFlowDoWhileStatement.ts | 1 + .../controlFlow/controlFlowElementAccess.ts | 1 + .../controlFlow/controlFlowElementAccess2.ts | 1 + .../controlFlowElementAccessNoCrash1.ts | 1 + .../controlFlow/controlFlowForInStatement.ts | 1 + .../controlFlow/controlFlowForInStatement2.ts | 1 + .../controlFlow/controlFlowForOfStatement.ts | 1 + .../controlFlow/controlFlowForStatement.ts | 1 + .../controlFlow/controlFlowGenericTypes.ts | 1 + .../controlFlow/controlFlowIfStatement.ts | 1 + .../controlFlow/controlFlowInOperator.ts | 1 + .../controlFlowInstanceOfGuardPrimitives.ts | 1 + .../controlFlowInstanceofExtendsFunction.ts | 1 + .../controlFlow/controlFlowIteration.ts | 1 + .../controlFlow/controlFlowIterationErrors.ts | 1 + .../controlFlowIterationErrorsAsync.ts | 1 + .../controlFlowNoIntermediateErrors.ts | 1 + .../controlFlow/controlFlowNullishCoalesce.ts | 1 + .../controlFlow/controlFlowOptionalChain.ts | 1 + .../controlFlow/controlFlowOptionalChain2.ts | 1 + .../controlFlow/controlFlowOptionalChain3.tsx | 1 + .../controlFlow/controlFlowParameter.ts | 1 + .../controlFlow/controlFlowStringIndex.ts | 1 + .../controlFlowSuperPropertyAccess.ts | 1 + .../controlFlow/controlFlowTruthiness.ts | 1 + .../controlFlow/controlFlowTypeofObject.ts | 1 + .../controlFlow/controlFlowWhileStatement.ts | 1 + .../controlFlowWithTemplateLiterals.ts | 1 + .../definiteAssignmentAssertions.ts | 1 + ...AssignmentAssertionsWithObjectShortHand.ts | 1 + ...ependentDestructuredVariablesWithExport.ts | 1 + .../exhaustiveSwitchStatements1.ts | 1 + .../controlFlow/neverReturningFunctions1.ts | 1 + .../switchWithConstrainedTypeVariable.ts | 1 + .../controlFlow/typeGuardsAsAssertions.ts | 1 + .../typeGuardsNestedAssignments.ts | 1 + .../controlFlow/typeGuardsTypeParameters.ts | 1 + .../classDoesNotDependOnPrivateMember.ts | 1 + .../declarationEmitWorkWithInlineComments.ts | 1 + .../exportDefaultExpressionComments.ts | 1 + .../declarationEmit/exportDefaultNamespace.ts | 1 + .../leaveOptionalParameterAsWritten.ts | 1 + .../declarationEmit/nullPropertyName.ts | 1 + .../declarationEmitIdentifierPredicates01.ts | 1 + ...itIdentifierPredicatesWithPrivateName01.ts | 1 + .../declarationEmitThisPredicates01.ts | 1 + .../declarationEmitThisPredicates02.ts | 1 + ...tionEmitThisPredicatesWithPrivateName01.ts | 1 + ...tionEmitThisPredicatesWithPrivateName02.ts | 1 + .../typeReferenceRelatedFiles.ts | 1 + .../typeofImportTypeOnlyExport.ts | 1 + .../class/constructableDecoratorOnClass01.ts | 1 + .../decorators/decoratorCallGeneric.ts | 1 + .../decoratorMetadataWithTypeOnlyImport2.ts | 1 + .../invalid/decoratorOnArrowFunction.ts | 1 + .../decorators/invalid/decoratorOnAwait.ts | 1 + .../decorators/invalid/decoratorOnEnum.ts | 1 + .../decorators/invalid/decoratorOnEnum2.ts | 1 + .../invalid/decoratorOnFunctionDeclaration.ts | 1 + .../invalid/decoratorOnFunctionExpression.ts | 1 + .../invalid/decoratorOnFunctionParameter.ts | 1 + .../invalid/decoratorOnImportEquals1.ts | 1 + .../invalid/decoratorOnImportEquals2.ts | 1 + .../invalid/decoratorOnInterface.ts | 1 + .../invalid/decoratorOnInternalModule.ts | 1 + .../invalid/decoratorOnTypeAlias.ts | 1 + .../decorators/invalid/decoratorOnVar.ts | 1 + .../conformance/directives/multiline.tsx | 1 + .../directives/ts-expect-error-js.ts | 1 + .../directives/ts-expect-error-nocheck-js.ts | 1 + .../directives/ts-expect-error-nocheck.ts | 1 + .../conformance/directives/ts-expect-error.ts | 1 + .../cases/conformance/directives/ts-ignore.ts | 1 + ...portCallExpressionNoModuleKindSpecified.ts | 4 +- tests/cases/conformance/enums/enumBasics.ts | 1 + .../conformance/enums/enumClassification.ts | 1 + .../enums/enumConstantMemberWithString.ts | 1 + ...ConstantMemberWithStringEmitDeclaration.ts | 1 + .../enumConstantMemberWithTemplateLiterals.ts | 1 + ...mberWithTemplateLiteralsEmitDeclaration.ts | 1 + .../conformance/enums/enumConstantMembers.ts | 1 + ...umErrorOnConstantBindingWithInitializer.ts | 1 + tests/cases/conformance/enums/enumErrors.ts | 1 + tests/cases/conformance/enums/enumMerging.ts | 1 + .../conformance/enums/enumMergingErrors.ts | 1 + .../enums/enumShadowedInfinityNaN.ts | 1 + .../conformance/es2017/es2017DateAPIs.ts | 1 + ...ragraphAndLineSeparatorsInStringLiteral.ts | 1 + .../es2019/globalThisAmbientModules.ts | 1 + .../es2019/globalThisBlockscopedProperties.ts | 1 + .../conformance/es2019/globalThisCollision.ts | 1 + .../es2019/globalThisGlobalExportAsGlobal.ts | 1 + .../es2019/globalThisPropertyAssignment.ts | 1 + .../es2019/globalThisReadonlyProperties.ts | 1 + .../es2019/globalThisTypeIndexAccess.ts | 1 + .../conformance/es2019/globalThisUnknown.ts | 1 + .../es2019/globalThisUnknownNoImplicitAny.ts | 1 + .../es2019/importMeta/importMetaNarrowing.ts | 1 + .../es2020/modules/exportAsNamespace1.ts | 1 + .../es2020/modules/exportAsNamespace2.ts | 1 + .../es2020/modules/exportAsNamespace3.ts | 1 + .../es2020/modules/exportAsNamespace4.ts | 1 + .../es2020/modules/exportAsNamespace5.ts | 1 + .../exportAsNamespace_exportAssignment.ts | 1 + .../exportAsNamespace_missingEmitHelpers.ts | 1 + .../modules/exportAsNamespace_nonExistent.ts | 1 + .../es2021/intlDateTimeFormatRangeES2021.ts | 1 + .../logicalAssignment/logicalAssignment9.ts | 1 + tests/cases/conformance/es5/es5DateAPIs.ts | 1 + .../disallowLineTerminatorBeforeArrow.ts | 1 + .../binaryIntegerLiteralError.ts | 3 +- ...aryIntegerLiteralAndOctalIntegerLiteral.ts | 3 +- .../octalIntegerLiteralError.ts | 3 +- ...tionWithPropertyAccessInHeritageClause1.ts | 1 + .../superCallBeforeThisAccessing1.ts | 3 +- .../superCallBeforeThisAccessing2.ts | 3 +- .../superCallBeforeThisAccessing3.ts | 3 +- .../superCallBeforeThisAccessing4.ts | 3 +- .../superCallBeforeThisAccessing5.ts | 3 +- .../superCallBeforeThisAccessing6.ts | 3 +- .../superCallBeforeThisAccessing7.ts | 3 +- .../superCallBeforeThisAccessing8.ts | 3 +- ...HasNoBaseTypeButWithSameSymbolInterface.ts | 1 + ...peArgumentInferenceWithClassExpression1.ts | 1 + ...peArgumentInferenceWithClassExpression2.ts | 1 + ...peArgumentInferenceWithClassExpression3.ts | 1 + .../computedPropertyNames49_ES5.ts | 1 + .../computedPropertyNames50_ES5.ts | 1 + .../computedPropertyNames51_ES5.ts | 1 + .../arrayAssignmentPatternWithAny.ts | 1 + .../declarationInAmbientContext.ts | 1 + .../declarationWithNoInitializer.ts | 1 + .../declarationsAndAssignments.ts | 1 + ...ingArrayBindingPatternAndAssignment1ES5.ts | 3 +- ...BindingPatternAndAssignment1ES5iterable.ts | 3 +- ...turingArrayBindingPatternAndAssignment2.ts | 3 +- ...turingArrayBindingPatternAndAssignment3.ts | 1 + ...PatternAndAssignment5SiblingInitializer.ts | 1 + .../destructuringAssignabilityCheck.ts | 1 + .../es6/destructuring/destructuringCatch.ts | 1 + .../destructuring/destructuringControlFlow.ts | 1 + .../destructuringInFunctionType.ts | 1 + ...ngObjectBindingPatternAndAssignment1ES5.ts | 3 +- ...uringObjectBindingPatternAndAssignment3.ts | 3 +- ...uringObjectBindingPatternAndAssignment4.ts | 1 + ...uringObjectBindingPatternAndAssignment5.ts | 1 + ...PatternAndAssignment9SiblingInitializer.ts | 1 + .../destructuringParameterDeclaration10.ts | 1 + .../destructuringParameterDeclaration1ES5.ts | 3 +- ...cturingParameterDeclaration1ES5iterable.ts | 3 +- .../destructuringParameterDeclaration2.ts | 3 +- .../destructuringParameterDeclaration4.ts | 3 +- .../destructuringParameterDeclaration5.ts | 3 +- .../destructuringParameterDeclaration6.ts | 3 +- .../destructuringParameterDeclaration8.ts | 1 + .../destructuringParameterDeclaration9.ts | 1 + .../destructuringParameterProperties1.ts | 3 +- .../destructuringParameterProperties2.ts | 3 +- .../destructuringParameterProperties3.ts | 3 +- .../destructuringParameterProperties5.ts | 3 +- .../destructuring/destructuringSameNames.ts | 1 + .../es6/destructuring/destructuringSpread.ts | 1 + .../destructuringVariableDeclaration1ES5.ts | 3 +- ...ucturingVariableDeclaration1ES5iterable.ts | 3 +- .../destructuringVariableDeclaration2.ts | 3 +- .../es6/destructuring/destructuringVoid.ts | 1 + .../destructuringVoidStrictNullChecks.ts | 1 + .../destructuringWithLiteralInitializers.ts | 1 + .../destructuringWithLiteralInitializers2.ts | 1 + .../emptyArrayBindingPatternParameter01.ts | 1 + .../emptyArrayBindingPatternParameter02.ts | 1 + .../emptyArrayBindingPatternParameter03.ts | 1 + .../emptyArrayBindingPatternParameter04.ts | 1 + .../emptyObjectBindingPatternParameter01.ts | 1 + .../emptyObjectBindingPatternParameter02.ts | 1 + .../emptyObjectBindingPatternParameter03.ts | 1 + .../emptyObjectBindingPatternParameter04.ts | 1 + .../missingAndExcessProperties.ts | 1 + .../destructuring/nonIterableRestElement1.ts | 1 + .../destructuring/nonIterableRestElement3.ts | 1 + ...bjectBindingPatternKeywordIdentifiers01.ts | 3 +- ...bjectBindingPatternKeywordIdentifiers02.ts | 3 +- ...bjectBindingPatternKeywordIdentifiers03.ts | 3 +- ...bjectBindingPatternKeywordIdentifiers04.ts | 3 +- ...bjectBindingPatternKeywordIdentifiers05.ts | 3 +- ...bjectBindingPatternKeywordIdentifiers06.ts | 3 +- .../optionalBindingParameters1.ts | 3 +- .../optionalBindingParameters2.ts | 3 +- .../optionalBindingParameters3.ts | 3 +- .../optionalBindingParameters4.ts | 1 + .../optionalBindingParametersInOverloads1.ts | 3 +- .../optionalBindingParametersInOverloads2.ts | 3 +- .../restElementWithAssignmentPattern3.ts | 1 + .../restElementWithAssignmentPattern4.ts | 1 + .../restElementWithAssignmentPattern5.ts | 1 + .../restElementWithBindingPattern.ts | 1 + .../restElementWithBindingPattern2.ts | 1 + .../restElementWithInitializer1.ts | 1 + .../restElementWithInitializer2.ts | 1 + .../restElementWithNullInitializer.ts | 1 + .../restPropertyWithBindingPattern.ts | 1 + .../FunctionDeclaration8_es6.ts | 1 + .../conformance/es6/modules/exportBinding.ts | 1 + .../es6/modules/exportSpellingSuggestion.ts | 1 + .../es6/modules/exportsAndImports1.ts | 1 + .../es6/modules/exportsAndImports2.ts | 1 + .../es6/modules/exportsAndImports3.ts | 1 + .../es6/modules/exportsAndImports5.ts | 1 + .../importEmptyFromModuleNotExisted.ts | 1 + .../restParameters/readonlyRestParameters.ts | 1 + ...ectLiteralShorthandPropertiesAssignment.ts | 3 +- ...teralShorthandPropertiesAssignmentError.ts | 3 +- ...iesAssignmentErrorFromMissingIdentifier.ts | 3 +- ...opertiesErrorFromNoneExistingIdentifier.ts | 1 + ...ndPropertiesErrorFromNotUsingIdentifier.ts | 1 + ...teralShorthandPropertiesErrorWithModule.ts | 1 + ...eralShorthandPropertiesFunctionArgument.ts | 3 +- ...ralShorthandPropertiesFunctionArgument2.ts | 3 +- ...ectLiteralShorthandPropertiesWithModule.ts | 1 + .../es6/spread/arrayLiteralSpread.ts | 1 + .../spread/arrayLiteralSpreadES5iterable.ts | 1 + .../es6/spread/arraySpreadInCall.ts | 1 + .../es6/templates/TemplateExpression1.ts | 1 + ...sPlainCharactersThatArePartsOfEscapes01.ts | 3 +- ...sPlainCharactersThatArePartsOfEscapes02.ts | 3 +- ...gedTemplateStringsTypeArgumentInference.ts | 3 +- ...emplateStringsWithIncompatibleTypedTags.ts | 3 +- ...StringsWithManyCallAndMemberExpressions.ts | 3 +- ...dTemplateStringsWithOverloadResolution1.ts | 3 +- ...dTemplateStringsWithOverloadResolution2.ts | 3 +- ...dTemplateStringsWithOverloadResolution3.ts | 3 +- ...aggedTemplateStringsWithTagNamedDeclare.ts | 3 +- ...taggedTemplateStringsWithTagsTypedAsAny.ts | 3 +- ...tionExpressionsInSubstitutionExpression.ts | 3 +- .../taggedTemplateStringsWithTypedTags.ts | 3 +- .../taggedTemplateUntypedTagCall01.ts | 1 + .../taggedTemplateWithConstructableTag01.ts | 1 + .../taggedTemplateWithConstructableTag02.ts | 1 + .../templateStringBinaryOperations.ts | 3 +- .../templateStringBinaryOperationsInvalid.ts | 3 +- ...templateStringControlCharacterEscapes01.ts | 3 +- ...templateStringControlCharacterEscapes02.ts | 3 +- ...templateStringControlCharacterEscapes03.ts | 3 +- ...templateStringControlCharacterEscapes04.ts | 3 +- .../es6/templates/templateStringInArray.ts | 3 +- .../templateStringInArrowFunction.ts | 3 +- .../templateStringInCallExpression.ts | 3 +- .../templates/templateStringInConditional.ts | 3 +- .../templateStringInDeleteExpression.ts | 3 +- .../es6/templates/templateStringInDivision.ts | 3 +- .../templateStringInEqualityChecks.ts | 3 +- .../templateStringInFunctionExpression.ts | 1 + .../templateStringInFunctionParameterType.ts | 3 +- .../templates/templateStringInInOperator.ts | 3 +- .../templateStringInIndexExpression.ts | 3 +- .../templates/templateStringInInstanceOf.ts | 3 +- .../templates/templateStringInModuleName.ts | 3 +- .../es6/templates/templateStringInModulo.ts | 3 +- .../templateStringInMultiplication.ts | 3 +- .../templateStringInNewExpression.ts | 3 +- .../templates/templateStringInNewOperator.ts | 3 +- .../templateStringInObjectLiteral.ts | 3 +- .../templates/templateStringInParentheses.ts | 3 +- .../templateStringInPropertyAssignment.ts | 3 +- .../templateStringInPropertyName1.ts | 3 +- .../templateStringInPropertyName2.ts | 3 +- .../templateStringInSwitchAndCase.ts | 3 +- .../templateStringInTaggedTemplate.ts | 3 +- .../templateStringInTypeAssertion.ts | 3 +- .../es6/templates/templateStringInTypeOf.ts | 3 +- .../templates/templateStringInUnaryPlus.ts | 3 +- .../es6/templates/templateStringInWhile.ts | 3 +- .../es6/templates/templateStringMultiline1.ts | 3 +- .../es6/templates/templateStringMultiline2.ts | 3 +- .../es6/templates/templateStringMultiline3.ts | 3 +- ...gPlainCharactersThatArePartsOfEscapes01.ts | 3 +- ...gPlainCharactersThatArePartsOfEscapes02.ts | 3 +- .../templates/templateStringTermination1.ts | 3 +- .../templates/templateStringTermination2.ts | 3 +- .../templates/templateStringTermination3.ts | 3 +- .../templates/templateStringTermination4.ts | 3 +- .../templates/templateStringTermination5.ts | 3 +- .../templates/templateStringUnterminated1.ts | 3 +- .../templates/templateStringUnterminated2.ts | 3 +- .../templates/templateStringUnterminated3.ts | 3 +- .../templates/templateStringUnterminated4.ts | 3 +- .../templates/templateStringUnterminated5.ts | 3 +- .../templateStringWhitespaceEscapes1.ts | 3 +- .../templateStringWhitespaceEscapes2.ts | 3 +- .../templateStringWithBackslashEscapes01.ts | 3 +- ...mplateStringWithCommentsInArrowFunction.ts | 3 +- .../templateStringWithEmbeddedAddition.ts | 3 +- .../templateStringWithEmbeddedArray.ts | 3 +- ...templateStringWithEmbeddedArrowFunction.ts | 3 +- .../templateStringWithEmbeddedComments.ts | 3 +- .../templateStringWithEmbeddedConditional.ts | 3 +- .../templateStringWithEmbeddedDivision.ts | 3 +- ...ateStringWithEmbeddedFunctionExpression.ts | 1 + .../templateStringWithEmbeddedInOperator.ts | 3 +- .../templateStringWithEmbeddedInstanceOf.ts | 3 +- .../templateStringWithEmbeddedModulo.ts | 3 +- ...emplateStringWithEmbeddedMultiplication.ts | 3 +- .../templateStringWithEmbeddedNewOperator.ts | 3 +- ...templateStringWithEmbeddedObjectLiteral.ts | 3 +- ...emplateStringWithEmbeddedTemplateString.ts | 3 +- ...ringWithEmbeddedTypeAssertionOnAddition.ts | 3 +- ...emplateStringWithEmbeddedTypeOfOperator.ts | 3 +- .../templateStringWithEmbeddedUnaryPlus.ts | 3 +- .../templateStringWithEmbeddedYieldKeyword.ts | 3 +- .../templateStringWithEmptyLiteralPortions.ts | 3 +- ...ateStringWithOpenCommentInStringPortion.ts | 3 +- .../templateStringWithPropertyAccess.ts | 3 +- ...tionExpressionsInSubstitutionExpression.ts | 3 +- .../yieldExpressionInControlFlow.ts | 1 + ...ponentiationAssignmentLHSCanBeAssigned1.ts | 1 + ...nentiationAssignmentLHSCannotBeAssigned.ts | 1 + ...dExponentiationAssignmentLHSIsReference.ts | 1 + ...poundExponentiationAssignmentLHSIsValue.ts | 1 + .../exponentiationOperatorWithAnyAndNumber.ts | 1 + .../exponentiationOperatorWithEnum.ts | 1 + .../exponentiationOperatorWithEnumUnion.ts | 1 + ...ponentiationOperatorWithInvalidOperands.ts | 1 + ...ithInvalidSimpleUnaryExpressionOperands.ts | 3 +- .../exponentiationOperatorWithNew.ts | 3 +- ...OperatorWithNullValueAndInvalidOperands.ts | 1 + ...onOperatorWithNullValueAndValidOperands.ts | 1 + ...eratorWithOnlyNullValueOrUndefinedValue.ts | 1 + ...exponentiationOperatorWithTypeParameter.ts | 1 + ...torWithUndefinedValueAndInvalidOperands.ts | 1 + ...ratorWithUndefinedValueAndValidOperands.ts | 1 + .../es7/trailingCommasInBindingPatterns.ts | 1 + .../conformance/es7/trailingCommasInGetter.ts | 1 + .../conformance/esnext/esnextSharedMemory.ts | 1 + .../arrayLiterals/arrayLiterals.ts | 1 + .../arrayLiterals/arrayLiterals2ES5.ts | 3 +- .../arrayLiterals/arrayLiterals3.ts | 3 +- .../expressions/asOperator/asOpEmitParens.ts | 1 + .../expressions/asOperator/asOperator1.ts | 1 + .../expressions/asOperator/asOperator2.ts | 1 + .../expressions/asOperator/asOperator3.ts | 1 + .../expressions/asOperator/asOperator4.ts | 1 + .../expressions/asOperator/asOperatorASI.ts | 1 + .../asOperator/asOperatorAmbiguity.ts | 1 + .../asOperator/asOperatorContextualType.ts | 1 + .../expressions/asOperator/asOperatorNames.ts | 1 + .../assignmentGenericLookupTypeNarrowing.ts | 1 + .../assignmentLHSIsReference.ts | 1 + .../assignmentLHSIsValue.ts | 1 + .../assignmentTypeNarrowing.ts | 1 + ...poundAdditionAssignmentLHSCanBeAssigned.ts | 1 + ...ndAdditionAssignmentLHSCannotBeAssigned.ts | 1 + ...ndAdditionAssignmentWithInvalidOperands.ts | 1 + ...undArithmeticAssignmentLHSCanBeAssigned.ts | 1 + ...ArithmeticAssignmentWithInvalidOperands.ts | 1 + .../compoundAssignmentLHSIsReference.ts | 1 + .../compoundAssignmentLHSIsValue.ts | 1 + .../additionOperatorWithAnyAndEveryType.ts | 1 + ...ionOperatorWithConstrainedTypeParameter.ts | 1 + .../additionOperatorWithInvalidOperands.ts | 1 + ...OperatorWithNullValueAndInvalidOperator.ts | 1 + ...onOperatorWithNullValueAndValidOperator.ts | 1 + .../additionOperatorWithNumberAndEnum.ts | 1 + ...eratorWithOnlyNullValueOrUndefinedValue.ts | 1 + .../additionOperatorWithStringAndEveryType.ts | 1 + .../additionOperatorWithTypeParameter.ts | 1 + ...torWithUndefinedValueAndInvalidOperands.ts | 1 + ...ratorWithUndefinedValueAndValidOperator.ts | 1 + .../arithmeticOperatorWithAnyAndNumber.ts | 1 + .../arithmeticOperatorWithEnum.ts | 1 + .../arithmeticOperatorWithEnumUnion.ts | 1 + .../arithmeticOperatorWithInvalidOperands.ts | 1 + ...OperatorWithNullValueAndInvalidOperands.ts | 1 + ...icOperatorWithNullValueAndValidOperands.ts | 1 + ...eratorWithOnlyNullValueOrUndefinedValue.ts | 1 + .../arithmeticOperatorWithTypeParameter.ts | 1 + ...torWithUndefinedValueAndInvalidOperands.ts | 1 + ...ratorWithUndefinedValueAndValidOperands.ts | 1 + .../comparisonOperatorWithIdenticalObjects.ts | 1 + ...risonOperatorWithIdenticalPrimitiveType.ts | 1 + ...risonOperatorWithIdenticalTypeParameter.ts | 1 + .../comparisonOperatorWithIntersectionType.ts | 1 + ...ithNoRelationshipObjectsOnCallSignature.ts | 1 + ...lationshipObjectsOnConstructorSignature.ts | 1 + ...thNoRelationshipObjectsOnIndexSignature.ts | 1 + ...nshipObjectsOnInstantiatedCallSignature.ts | 1 + ...jectsOnInstantiatedConstructorSignature.ts | 1 + ...NoRelationshipObjectsOnOptionalProperty.ts | 1 + ...atorWithNoRelationshipObjectsOnProperty.ts | 1 + ...OperatorWithNoRelationshipPrimitiveType.ts | 1 + ...OperatorWithNoRelationshipTypeParameter.ts | 1 + .../comparisonOperatorWithNumberOperand.ts | 1 + .../comparisonOperatorWithNumericLiteral.ts | 1 + .../comparisonOperatorWithOneOperandIsAny.ts | 1 + .../comparisonOperatorWithOneOperandIsNull.ts | 1 + ...arisonOperatorWithOneOperandIsUndefined.ts | 1 + ...parisonOperatorWithSubtypeEnumAndNumber.ts | 1 + ...peratorWithSubtypeObjectOnCallSignature.ts | 1 + ...WithSubtypeObjectOnConstructorSignature.ts | 1 + ...eratorWithSubtypeObjectOnIndexSignature.ts | 1 + ...ubtypeObjectOnInstantiatedCallSignature.ts | 1 + ...bjectOnInstantiatedConstructorSignature.ts | 1 + ...atorWithSubtypeObjectOnOptionalProperty.ts | 1 + ...isonOperatorWithSubtypeObjectOnProperty.ts | 1 + ...comparisonOperatorWithTwoOperandsAreAny.ts | 1 + .../comparisonOperatorWithTypeParameter.ts | 1 + .../inOperatorWithInvalidOperands.ts | 1 + .../inOperator/inOperatorWithValidOperands.ts | 1 + .../instanceofOperatorWithAny.ts | 1 + .../instanceofOperatorWithInvalidOperands.ts | 1 + ...anceofOperatorWithInvalidStaticToString.ts | 1 + .../instanceofOperatorWithLHSIsObject.ts | 1 + ...nstanceofOperatorWithLHSIsTypeParameter.ts | 1 + ...nceofOperatorWithRHSIsSubtypeOfFunction.ts | 1 + .../logicalAndOperatorStrictMode.ts | 1 + .../logicalAndOperatorWithEveryType.ts | 1 + .../logicalAndOperatorWithTypeParameters.ts | 1 + .../logicalOrExpressionIsContextuallyTyped.ts | 1 + ...gicalOrExpressionIsNotContextuallyTyped.ts | 1 + .../logicalOrOperatorWithEveryType.ts | 1 + .../logicalOrOperatorWithTypeParameters.ts | 1 + .../commaOperatorInvalidAssignmentType.ts | 1 + .../commaOperatorOtherInvalidOperation.ts | 1 + .../commaOperatorOtherValidOperation.ts | 1 + .../commaOperatorWithSecondOperandAnyType.ts | 1 + ...mmaOperatorWithSecondOperandBooleanType.ts | 1 + ...ommaOperatorWithSecondOperandNumberType.ts | 1 + ...ommaOperatorWithSecondOperandObjectType.ts | 1 + ...ommaOperatorWithSecondOperandStringType.ts | 1 + .../commaOperatorWithoutOperand.ts | 1 + .../commaOperatorsMultipleOperators.ts | 1 + ...nditionalOperatorConditionIsBooleanType.ts | 1 + ...onditionalOperatorConditionIsNumberType.ts | 1 + ...onditionalOperatorConditionIsObjectType.ts | 1 + .../conditionalOperatorConditoinIsAnyType.ts | 1 + ...onditionalOperatorConditoinIsStringType.ts | 1 + .../conditionalOperatorWithIdenticalBCT.ts | 1 + .../conditionalOperatorWithoutIdenticalBCT.ts | 1 + .../argumentExpressionContextualTyping.ts | 3 +- .../arrayLiteralExpressionContextualTyping.ts | 3 +- .../functionExpressionContextualTyping1.ts | 3 +- .../functionExpressionContextualTyping2.ts | 3 +- .../functionExpressionContextualTyping3.ts | 1 + .../generatedContextualTyping.ts | 1 + .../objectLiteralContextualTyping.ts | 1 + .../parenthesizedContexualTyping1.ts | 1 + .../parenthesizedContexualTyping2.ts | 1 + .../superCallParameterContextualTyping1.ts | 3 +- .../superCallParameterContextualTyping2.ts | 3 +- .../superCallParameterContextualTyping3.ts | 3 +- .../letIdentifierInElementAccess01.ts | 3 +- .../stringEnumInElementAccess01.ts | 1 + .../expressions/functionCalls/callOverload.ts | 1 + .../functionCalls/callWithMissingVoid.ts | 1 + ...lWithMissingVoidUndefinedUnknownAnyInJs.ts | 1 + .../functionCalls/callWithSpread.ts | 1 + .../functionCalls/callWithSpread2.ts | 1 + .../functionCalls/callWithSpread3.ts | 1 + .../functionCalls/callWithSpread5.ts | 1 + .../expressions/functionCalls/forgottenNew.ts | 1 + .../functionCalls/functionCalls.ts | 1 + .../functionCalls/grammarAmbiguities.ts | 1 + .../functionCalls/newWithSpread.ts | 1 + .../functionCalls/overloadResolution.ts | 1 + .../overloadResolutionClassConstructors.ts | 1 + .../overloadResolutionConstructors.ts | 1 + .../functionCalls/typeArgumentInference.ts | 1 + ...ypeArgumentInferenceConstructSignatures.ts | 1 + .../typeArgumentInferenceErrors.ts | 1 + ...eArgumentInferenceTransitiveConstraints.ts | 1 + .../typeArgumentInferenceWithConstraints.ts | 1 + .../typeArgumentInferenceWithObjectLiteral.ts | 1 + .../functions/arrowFunctionContexts.ts | 1 + .../functions/arrowFunctionExpressions.ts | 1 + ...FunctionExpressionsAndReturnAnnotations.ts | 1 + .../functions/contextuallyTypedIife.ts | 1 + .../functions/contextuallyTypedIifeStrict.ts | 1 + .../typeOfThisInFunctionExpression.ts | 1 + .../voidParamAssignmentCompatibility.ts | 1 + .../identifiers/scopeResolutionIdentifiers.ts | 1 + .../newOperator/newOperatorConformance.ts | 1 + .../newOperator/newOperatorErrorCases.ts | 1 + .../newOperatorErrorCases_noImplicitAny.ts | 1 + .../nullishCoalescingOperator1.ts | 1 + .../nullishCoalescingOperator10.ts | 1 + .../nullishCoalescingOperator11.ts | 1 + .../nullishCoalescingOperator2.ts | 1 + .../nullishCoalescingOperator3.ts | 1 + .../nullishCoalescingOperator4.ts | 1 + .../nullishCoalescingOperator5.ts | 1 + .../nullishCoalescingOperator6.ts | 1 + .../nullishCoalescingOperator7.ts | 1 + .../nullishCoalescingOperator8.ts | 1 + .../nullishCoalescingOperator9.ts | 1 + .../nullishCoalescingOperator_not_strict.ts | 1 + .../objectLiteralGettersAndSetters.ts | 1 + .../objectLiteralNormalization.ts | 1 + .../operators/incrementAndDecrement.ts | 1 + .../optionalChaining/callChain/callChain.2.ts | 1 + .../optionalChaining/callChain/callChain.3.ts | 1 + .../optionalChaining/callChain/callChain.ts | 1 + .../callChain/callChainInference.ts | 1 + .../optionalChaining/callChain/parentheses.ts | 1 + .../optionalChaining/delete/deleteChain.ts | 1 + .../elementAccessChain.2.ts | 1 + .../elementAccessChain.3.ts | 1 + .../elementAccessChain/elementAccessChain.ts | 1 + .../optionalChainingInference.ts | 1 + .../propertyAccessChain.2.ts | 1 + .../propertyAccessChain.3.ts | 1 + .../propertyAccessChain.ts | 1 + .../taggedTemplateChain.ts | 1 + .../propertyAccess/propertyAccess.ts | 1 + .../propertyAccessNumericLiterals.ts | 1 + .../propertyAccessStringIndexSignature.ts | 1 + .../propertyAccess/propertyAccessWidening.ts | 1 + .../expressions/superCalls/errorSuperCalls.ts | 1 + .../expressions/superCalls/superCalls.ts | 1 + .../errorSuperPropertyAccess.ts | 1 + .../thisKeyword/thisInInvalidContexts.ts | 1 + .../thisInInvalidContextsExternalModule.ts | 2 + .../thisKeyword/thisInObjectLiterals.ts | 1 + .../typeOfThisInConstructorParamList.ts | 1 + .../duplicatePropertiesInTypeAssertions01.ts | 1 + .../duplicatePropertiesInTypeAssertions02.ts | 1 + .../typeAssertions/typeAssertions.ts | 1 + .../typeGuards/TypeGuardWithArrayUnion.ts | 1 + .../typeGuards/TypeGuardWithEnumUnion.ts | 1 + ...lOrUndefinedTypeGuardIsOrderIndependent.ts | 1 + .../expressions/typeGuards/typeGuardEnums.ts | 1 + .../typeGuards/typeGuardFunction.ts | 1 + .../typeGuards/typeGuardFunctionErrors.ts | 1 + .../typeGuards/typeGuardFunctionGenerics.ts | 1 + .../typeGuards/typeGuardFunctionOfFormThis.ts | 1 + .../typeGuardFunctionOfFormThisErrors.ts | 1 + .../typeGuards/typeGuardInClass.ts | 1 + .../typeGuards/typeGuardIntersectionTypes.ts | 1 + .../typeGuardNarrowsPrimitiveIntersection.ts | 1 + .../typeGuardNarrowsToLiteralType.ts | 1 + .../typeGuardNarrowsToLiteralTypeUnion.ts | 1 + .../typeGuards/typeGuardNesting.ts | 1 + .../typeGuardOfFormExpr1AndExpr2.ts | 1 + .../typeGuards/typeGuardOfFormExpr1OrExpr2.ts | 1 + .../typeGuardOfFormFunctionEquality.ts | 1 + .../typeGuards/typeGuardOfFormInstanceOf.ts | 1 + .../typeGuardOfFormInstanceOfOnInterface.ts | 1 + .../typeGuards/typeGuardOfFormIsType.ts | 1 + .../typeGuardOfFormIsTypeOnInterfaces.ts | 1 + .../typeGuards/typeGuardOfFormNotExpr.ts | 1 + .../typeGuardOfFormTypeOfBoolean.ts | 1 + ...eGuardOfFormTypeOfEqualEqualHasNoEffect.ts | 1 + .../typeGuardOfFormTypeOfFunction.ts | 1 + ...typeGuardOfFormTypeOfIsOrderIndependent.ts | 1 + ...ypeGuardOfFormTypeOfNotEqualHasNoEffect.ts | 1 + .../typeGuards/typeGuardOfFormTypeOfNumber.ts | 1 + .../typeGuards/typeGuardOfFormTypeOfOther.ts | 1 + .../typeGuardOfFormTypeOfPrimitiveSubtype.ts | 1 + .../typeGuards/typeGuardOfFormTypeOfString.ts | 1 + .../typeGuardOfFromPropNameInUnionType.ts | 1 + .../typeGuards/typeGuardRedundancy.ts | 1 + .../typeGuardTautologicalConsistiency.ts | 1 + .../typeGuards/typeGuardTypeOfUndefined.ts | 1 + .../typeGuards/typeGuardsDefeat.ts | 1 + .../typeGuards/typeGuardsInClassMethods.ts | 1 + .../typeGuardsInConditionalExpression.ts | 1 + .../typeGuards/typeGuardsInDoStatement.ts | 1 + .../typeGuards/typeGuardsInExternalModule.ts | 1 + .../typeGuards/typeGuardsInForStatement.ts | 1 + .../typeGuards/typeGuardsInFunction.ts | 1 + .../typeGuardsInFunctionAndModuleBlock.ts | 1 + .../typeGuards/typeGuardsInGlobal.ts | 1 + .../typeGuards/typeGuardsInIfStatement.ts | 1 + .../typeGuards/typeGuardsInModule.ts | 1 + ...ypeGuardsInRightOperandOfAndAndOperator.ts | 1 + .../typeGuardsInRightOperandOfOrOrOperator.ts | 1 + .../typeGuards/typeGuardsInWhileStatement.ts | 1 + .../typeGuards/typeGuardsOnClassProperty.ts | 3 +- .../typeGuards/typeGuardsWithAny.ts | 1 + .../typeGuards/typeGuardsWithInstanceOf.ts | 3 +- ...rdsWithInstanceOfByConstructorSignature.ts | 1 + ...GuardsWithInstanceOfBySymbolHasInstance.ts | 1 + .../typeGuards/typePredicateASI.ts | 1 + .../typePredicateOnVariableDeclaration01.ts | 1 + .../typePredicateOnVariableDeclaration02.ts | 1 + .../typeSatisfaction/typeSatisfaction.ts | 1 + .../typeSatisfactionWithDefaultExport.ts | 1 + .../typeSatisfaction_asConstArrays.ts | 1 + .../typeSatisfaction_contextualTyping1.ts | 1 + .../typeSatisfaction_contextualTyping2.ts | 1 + .../typeSatisfaction_contextualTyping3.ts | 1 + .../typeSatisfaction_ensureInterfaceImpl.ts | 1 + .../typeSatisfaction_errorLocations1.ts | 1 + .../typeSatisfaction/typeSatisfaction_js.ts | 1 + ...eSatisfaction_optionalMemberConformance.ts | 1 + .../typeSatisfaction_propNameConstraining.ts | 1 + ...ypeSatisfaction_propertyNameFulfillment.ts | 1 + ...eSatisfaction_propertyValueConformance1.ts | 1 + ...eSatisfaction_propertyValueConformance2.ts | 1 + ...eSatisfaction_propertyValueConformance3.ts | 1 + ...on_vacuousIntersectionOfContextualTypes.ts | 1 + .../bitwiseNotOperatorInvalidOperations.ts | 1 + .../bitwiseNotOperatorWithAnyOtherType.ts | 1 + .../bitwiseNotOperatorWithBooleanType.ts | 1 + .../bitwiseNotOperatorWithEnumType.ts | 1 + .../bitwiseNotOperatorWithNumberType.ts | 1 + .../bitwiseNotOperatorWithStringType.ts | 1 + .../decrementOperatorWithAnyOtherType.ts | 1 + ...eratorWithAnyOtherTypeInvalidOperations.ts | 1 + .../decrementOperatorWithEnumType.ts | 1 + ...ntOperatorWithEnumTypeInvalidOperations.ts | 1 + .../decrementOperatorWithNumberType.ts | 1 + ...OperatorWithNumberTypeInvalidOperations.ts | 1 + ...ementOperatorWithUnsupportedBooleanType.ts | 1 + ...rementOperatorWithUnsupportedStringType.ts | 1 + .../deleteOperatorInvalidOperations.ts | 1 + .../deleteOperatorWithAnyOtherType.ts | 1 + .../deleteOperatorWithBooleanType.ts | 1 + .../deleteOperatorWithEnumType.ts | 1 + .../deleteOperatorWithNumberType.ts | 1 + .../deleteOperatorWithStringType.ts | 1 + .../incrementOperatorWithAnyOtherType.ts | 1 + ...eratorWithAnyOtherTypeInvalidOperations.ts | 1 + .../incrementOperatorWithEnumType.ts | 1 + ...ntOperatorWithEnumTypeInvalidOperations.ts | 1 + .../incrementOperatorWithNumberType.ts | 1 + ...OperatorWithNumberTypeInvalidOperations.ts | 1 + ...ementOperatorWithUnsupportedBooleanType.ts | 1 + ...rementOperatorWithUnsupportedStringType.ts | 1 + .../logicalNotOperatorInvalidOperations.ts | 1 + .../logicalNotOperatorWithAnyOtherType.ts | 1 + .../logicalNotOperatorWithBooleanType.ts | 1 + .../logicalNotOperatorWithEnumType.ts | 1 + .../logicalNotOperatorWithNumberType.ts | 1 + .../logicalNotOperatorWithStringType.ts | 1 + .../negateOperatorInvalidOperations.ts | 1 + .../negateOperatorWithAnyOtherType.ts | 1 + .../negateOperatorWithBooleanType.ts | 1 + .../negateOperatorWithEnumType.ts | 1 + .../negateOperatorWithNumberType.ts | 1 + .../negateOperatorWithStringType.ts | 1 + .../plusOperatorInvalidOperations.ts | 1 + .../plusOperatorWithAnyOtherType.ts | 1 + .../plusOperatorWithBooleanType.ts | 1 + .../plusOperator/plusOperatorWithEnumType.ts | 1 + .../plusOperatorWithNumberType.ts | 1 + .../plusOperatorWithStringType.ts | 1 + .../typeofOperatorInvalidOperations.ts | 1 + .../typeofOperatorWithAnyOtherType.ts | 1 + .../typeofOperatorWithBooleanType.ts | 1 + .../typeofOperatorWithEnumType.ts | 1 + .../typeofOperatorWithNumberType.ts | 1 + .../typeofOperatorWithStringType.ts | 1 + .../voidOperatorInvalidOperations.ts | 1 + .../voidOperatorWithAnyOtherType.ts | 1 + .../voidOperatorWithBooleanType.ts | 1 + .../voidOperator/voidOperatorWithEnumType.ts | 1 + .../voidOperatorWithNumberType.ts | 1 + .../voidOperatorWithStringType.ts | 1 + .../assignmentToParenthesizedIdentifiers.ts | 1 + .../valuesAndReferences/assignments.ts | 1 + .../amdImportAsPrimaryExpression.ts | 1 + .../amdImportNotAsPrimaryExpression.ts | 1 + ...reventsParsingAsAmbientExternalModule01.ts | 1 + ...reventsParsingAsAmbientExternalModule02.ts | 1 + .../externalModules/circularReference.ts | 2 + .../commonJSImportAsPrimaryExpression.ts | 1 + .../commonJSImportNotAsPrimaryExpression.ts | 1 + .../commonJsImportBindingElementNarrowType.ts | 1 + .../duplicateExportAssignments.ts | 2 + .../externalModules/exportAssignDottedName.ts | 2 + .../exportAssignImportedIdentifier.ts | 2 + .../exportAssignNonIdentifier.ts | 2 + .../externalModules/exportAssignTypes.ts | 2 + .../exportAssignmentAndDeclaration.ts | 1 + .../exportAssignmentCircularModules.ts | 1 + .../exportAssignmentConstrainedGenericType.ts | 1 + .../exportAssignmentGenericType.ts | 1 + .../exportAssignmentMergedInterface.ts | 1 + .../exportAssignmentMergedModule.ts | 1 + .../exportAssignmentTopLevelClodule.ts | 1 + .../exportAssignmentTopLevelEnumdule.ts | 1 + .../exportAssignmentTopLevelFundule.ts | 1 + .../exportAssignmentTopLevelIdentifier.ts | 1 + .../externalModules/exportDeclaredModule.ts | 2 + .../exportNonInitializedVariablesAMD.ts | 1 + .../exportNonInitializedVariablesCommonJS.ts | 1 + ...lizedVariablesInIfThenStatementNoCrash1.ts | 1 + .../exportNonInitializedVariablesSystem.ts | 1 + .../exportNonInitializedVariablesUMD.ts | 1 + .../exportNonLocalDeclarations.ts | 1 + .../externalModules/exportNonVisibleType.ts | 2 + ...portTypeMergedWithExportStarAsNamespace.ts | 1 + .../globalAugmentationModuleResolution.ts | 3 +- .../externalModules/importImportOnlyModule.ts | 1 + .../importNonExternalModule.ts | 1 + .../externalModules/importNonStringLiteral.ts | 1 + .../externalModules/importTsBeforeDTs.ts | 1 + .../importsImplicitlyReadonly.ts | 1 + .../initializersInDeclarations.ts | 1 + .../invalidSyntaxNamespaceImportWithAMD.ts | 3 +- ...nvalidSyntaxNamespaceImportWithCommonjs.ts | 3 +- .../invalidSyntaxNamespaceImportWithSystem.ts | 3 +- .../moduleResolutionWithExtensions.ts | 1 + .../externalModules/moduleScoping.ts | 2 + .../externalModules/multipleExportDefault1.ts | 3 +- .../externalModules/multipleExportDefault2.ts | 3 +- .../externalModules/multipleExportDefault3.ts | 3 +- .../externalModules/multipleExportDefault4.ts | 3 +- .../externalModules/multipleExportDefault5.ts | 3 +- .../externalModules/multipleExportDefault6.ts | 3 +- .../externalModules/nameDelimitedBySlashes.ts | 1 + .../externalModules/nameWithFileExtension.ts | 1 + .../externalModules/nameWithRelativePaths.ts | 1 + .../reexportClassDefinition.ts | 1 + .../relativePathMustResolve.ts | 1 + .../relativePathToDeclarationFile.ts | 2 + .../externalModules/topLevelAmbientModule.ts | 1 + .../externalModules/topLevelFileModule.ts | 1 + .../topLevelFileModuleMissing.ts | 1 + .../topLevelModuleDeclarationAndFile.ts | 1 + .../typeAndNamespaceExportMerge.ts | 1 + .../externalModules/typeOnly/ambient.ts | 1 + .../externalModules/typeOnly/chained.ts | 1 + .../externalModules/typeOnly/chained2.ts | 1 + .../externalModules/typeOnly/circular1.ts | 1 + .../externalModules/typeOnly/circular2.ts | 1 + .../externalModules/typeOnly/circular3.ts | 1 + .../externalModules/typeOnly/circular4.ts | 1 + .../typeOnly/cjsImportInES2015.ts | 1 + .../externalModules/typeOnly/enums.ts | 1 + .../typeOnly/exportDeclaration.ts | 1 + .../exportDeclaration_missingBraces.ts | 1 + ...aration_moduleSpecifier-isolatedModules.ts | 1 + .../exportDeclaration_moduleSpecifier.ts | 1 + .../typeOnly/exportDeclaration_value.ts | 1 + .../externalModules/typeOnly/exportDefault.ts | 2 + .../typeOnly/exportNamespace1.ts | 1 + .../typeOnly/exportNamespace10.ts | 1 + .../typeOnly/exportNamespace11.ts | 1 + .../typeOnly/exportNamespace12.ts | 1 + .../typeOnly/exportNamespace2.ts | 1 + .../typeOnly/exportNamespace3.ts | 1 + .../typeOnly/exportNamespace4.ts | 1 + .../typeOnly/exportNamespace5.ts | 1 + .../typeOnly/exportNamespace6.ts | 1 + .../typeOnly/exportNamespace7.ts | 1 + .../typeOnly/exportNamespace8.ts | 1 + .../typeOnly/exportNamespace9.ts | 1 + .../typeOnly/exportNamespace_js.ts | 1 + .../typeOnly/exportSpecifiers.ts | 1 + .../typeOnly/exportSpecifiers_js.ts | 1 + .../externalModules/typeOnly/extendsClause.ts | 1 + .../typeOnly/filterNamespace_import.ts | 1 + .../externalModules/typeOnly/generic.ts | 1 + .../externalModules/typeOnly/grammarErrors.ts | 1 + .../typeOnly/implementsClause.ts | 1 + .../typeOnly/importClause_default.ts | 1 + .../typeOnly/importClause_namedImports.ts | 1 + .../typeOnly/importClause_namespaceImport.ts | 1 + .../typeOnly/importDefaultNamedType.ts | 1 + .../typeOnly/importDefaultNamedType2.ts | 1 + .../typeOnly/importDefaultNamedType3.ts | 1 + .../externalModules/typeOnly/importEquals1.ts | 2 + .../externalModules/typeOnly/importEquals2.ts | 2 + .../externalModules/typeOnly/importEquals3.ts | 1 + .../typeOnly/importEqualsDeclaration.ts | 2 + .../typeOnly/importSpecifiers1.ts | 1 + .../typeOnly/importSpecifiers_js.ts | 1 + .../typeOnly/importsNotUsedAsValues_error.ts | 2 + .../typeOnly/mergedWithLocalValue.ts | 1 + .../typeOnly/namespaceImportTypeQuery.ts | 1 + .../typeOnly/namespaceImportTypeQuery2.ts | 1 + .../typeOnly/namespaceImportTypeQuery3.ts | 1 + .../typeOnly/namespaceImportTypeQuery4.ts | 1 + .../typeOnly/namespaceMemberAccess.ts | 1 + .../typeOnly/nestedNamespace.ts | 1 + .../typeOnly/preserveValueImports.ts | 1 + .../typeOnly/preserveValueImports_errors.ts | 1 + ...erveValueImports_importsNotUsedAsValues.ts | 1 + .../preserveValueImports_mixedImports.ts | 1 + .../typeOnly/preserveValueImports_module.ts | 1 + .../externalModules/typeOnly/renamed.ts | 1 + .../externalModules/typeOnly/typeQuery.ts | 1 + .../externalModules/typeOnlyMerge1.ts | 1 + .../externalModules/typeOnlyMerge2.ts | 1 + .../externalModules/typeOnlyMerge3.ts | 1 + .../externalModules/typeValueMerge1.ts | 1 + ...typesOnlyExternalModuleStillHasInstance.ts | 1 + .../externalModules/umd-augmentation-1.ts | 1 + .../externalModules/umd-augmentation-2.ts | 1 + .../externalModules/umd-augmentation-3.ts | 1 + .../externalModules/umd-augmentation-4.ts | 1 + .../conformance/externalModules/umd-errors.ts | 1 + .../cases/conformance/externalModules/umd1.ts | 1 + .../cases/conformance/externalModules/umd2.ts | 1 + .../cases/conformance/externalModules/umd3.ts | 1 + .../cases/conformance/externalModules/umd4.ts | 1 + .../cases/conformance/externalModules/umd5.ts | 1 + .../cases/conformance/externalModules/umd6.ts | 1 + .../cases/conformance/externalModules/umd7.ts | 1 + .../cases/conformance/externalModules/umd8.ts | 1 + .../cases/conformance/externalModules/umd9.ts | 1 + .../valuesMergingAcrossModules.ts | 1 + .../verbatimModuleSyntaxCompat.ts | 1 + .../verbatimModuleSyntaxCompat2.ts | 1 + .../verbatimModuleSyntaxCompat3.ts | 1 + .../verbatimModuleSyntaxCompat4.ts | 1 + .../verbatimModuleSyntaxConstEnum.ts | 1 + .../verbatimModuleSyntaxConstEnumUsage.ts | 1 + .../verbatimModuleSyntaxDeclarationFile.ts | 1 + ...erbatimModuleSyntaxInternalImportEquals.ts | 1 + .../verbatimModuleSyntaxNoElisionESM.ts | 1 + .../cases/conformance/fixSignatureCaching.ts | 1 + .../functions/functionImplementationErrors.ts | 1 + .../functions/functionImplementations.ts | 1 + .../functions/functionNameConflicts.ts | 1 + ...functionOverloadCompatibilityWithVoid01.ts | 1 + ...functionOverloadCompatibilityWithVoid02.ts | 1 + ...functionOverloadCompatibilityWithVoid03.ts | 1 + .../functions/functionOverloadErrors.ts | 1 + .../functions/functionOverloadErrorsSyntax.ts | 1 + ...tionWithUseStrictAndSimpleParameterList.ts | 1 + ...parameterInitializersForwardReferencing.ts | 1 + ...arameterInitializersForwardReferencing1.ts | 1 + .../functions/strictBindCallApply1.ts | 1 + .../functions/strictBindCallApply2.ts | 1 + .../importAssertion/importAssertion4.ts | 1 + .../importAssertion/importAssertion5.ts | 1 + .../importAttributes/importAttributes4.ts | 1 + .../importAttributes/importAttributes5.ts | 1 + .../importAttributes/importAttributes7.ts | 1 + .../importAttributes/importAttributes8.ts | 1 + .../dynamicImportDeferInvalidStandalone.ts | 1 + .../importDefer/exportDeferInvalid.ts | 1 + .../importDefer/importDefaultBindingDefer.ts | 1 + .../importDefer/importDeferComments.ts | 1 + .../importDefer/importDeferDeclaration.ts | 1 + .../importDefer/importDeferInvalidDefault.ts | 1 + .../importDefer/importDeferInvalidNamed.ts | 1 + .../importDefer/importDeferTypeConflict1.ts | 1 + .../importDefer/importDeferTypeConflict2.ts | 1 + .../importMetaPropertyInvalidInCall.ts | 1 + .../importDefer/typeofImportDefer.ts | 1 + .../conformance/inferFromBindingPattern.ts | 1 + ...icAndNonGenericInterfaceWithTheSameName.ts | 1 + ...cAndNonGenericInterfaceWithTheSameName2.ts | 1 + .../mergeThreeInterfaces.ts | 1 + .../mergeThreeInterfaces2.ts | 1 + .../declarationMerging/mergeTwoInterfaces.ts | 1 + .../declarationMerging/mergeTwoInterfaces2.ts | 1 + ...rgedInheritedMembersSatisfyAbstractBase.ts | 1 + ...dInterfacesWithConflictingPropertyNames.ts | 1 + ...InterfacesWithConflictingPropertyNames2.ts | 1 + .../mergedInterfacesWithIndexers.ts | 1 + .../mergedInterfacesWithIndexers2.ts | 1 + .../mergedInterfacesWithInheritedPrivates.ts | 1 + .../mergedInterfacesWithInheritedPrivates2.ts | 1 + .../mergedInterfacesWithInheritedPrivates3.ts | 1 + .../mergedInterfacesWithMultipleBases.ts | 1 + .../mergedInterfacesWithMultipleBases2.ts | 1 + .../mergedInterfacesWithMultipleBases3.ts | 1 + .../mergedInterfacesWithMultipleBases4.ts | 1 + ...cInterfacesDifferingByTypeParameterName.ts | 1 + ...InterfacesDifferingByTypeParameterName2.ts | 1 + ...nericInterfacesWithDifferentConstraints.ts | 1 + ...erfacesWithTheSameNameButDifferentArity.ts | 1 + .../twoInterfacesDifferentRootModule.ts | 1 + .../twoInterfacesDifferentRootModule2.ts | 1 + ...oMergedInterfacesWithDifferingOverloads.ts | 1 + ...MergedInterfacesWithDifferingOverloads2.ts | 1 + .../asiPreventsParsingAsInterface01.ts | 1 + .../asiPreventsParsingAsInterface02.ts | 1 + .../asiPreventsParsingAsInterface03.ts | 1 + .../asiPreventsParsingAsInterface04.ts | 1 + .../asiPreventsParsingAsInterface05.ts | 1 + ...rivedInterfaceDoesNotHideBaseSignatures.ts | 1 + ...vedInterfaceIncompatibleWithBaseIndexer.ts | 1 + .../interfaceExtendingOptionalChain.ts | 1 + .../interfaceExtendsObjectIntersection.ts | 1 + ...nterfaceExtendsObjectIntersectionErrors.ts | 1 + .../interfaceThatHidesBaseProperty.ts | 1 + .../interfaceThatHidesBaseProperty2.ts | 1 + ...terfaceThatIndirectlyInheritsFromItself.ts | 1 + .../interfaceThatInheritsFromItself.ts | 1 + .../interfaceWithAccessibilityModifiers.ts | 1 + .../interfaceWithCallAndConstructSignature.ts | 1 + ...ithCallSignaturesThatHidesBaseSignature.ts | 1 + ...thCallSignaturesThatHidesBaseSignature2.ts | 1 + ...nstructSignaturesThatHidesBaseSignature.ts | 1 + ...structSignaturesThatHidesBaseSignature2.ts | 1 + .../interfaceWithMultipleBaseTypes.ts | 1 + .../interfaceWithMultipleBaseTypes2.ts | 1 + ...ithOverloadedCallAndConstructSignatures.ts | 1 + .../interfaceWithPropertyOfEveryType.ts | 1 + ...faceWithPropertyThatIsPrivateInBaseType.ts | 1 + ...aceWithPropertyThatIsPrivateInBaseType2.ts | 1 + ...thSpecializedCallAndConstructSignatures.ts | 1 + ...eWithStringIndexerHidingBaseTypeIndexer.ts | 1 + ...WithStringIndexerHidingBaseTypeIndexer2.ts | 1 + ...WithStringIndexerHidingBaseTypeIndexer3.ts | 1 + .../interfacesWithPredefinedTypesAsNames.ts | 1 + ...ngAnInterfaceExtendingClassWithPrivates.ts | 1 + ...gAnInterfaceExtendingClassWithPrivates2.ts | 1 + ...AnInterfaceExtendingClassWithProtecteds.ts | 1 + .../interfaceExtendingClass.ts | 1 + .../interfaceExtendingClass2.ts | 1 + .../interfaceExtendingClassWithPrivates.ts | 1 + .../interfaceExtendingClassWithPrivates2.ts | 1 + .../interfaceExtendingClassWithProtecteds.ts | 1 + .../interfaceExtendingClassWithProtecteds2.ts | 1 + ...entFunctionWithTheSameNameAndCommonRoot.ts | 1 + ...duleAndAmbientWithSameNameAndCommonRoot.ts | 1 + ...onAmbientClassWithSameNameAndCommonRoot.ts | 1 + ...entFunctionWithTheSameNameAndCommonRoot.ts | 1 + ...hModuleMemberThatUsesClassTypeParameter.ts | 1 + ...GenericClassStaticFunctionOfTheSameName.ts | 1 + ...GenericClassStaticFunctionOfTheSameName.ts | 1 + ...dStaticFunctionUsingClassPrivateStatics.ts | 1 + ...nctionAndExportedFunctionThatShareAName.ts | 1 + ...ionAndNonExportedFunctionThatShareAName.ts | 1 + ...ticVariableAndExportedVarThatShareAName.ts | 1 + ...VariableAndNonExportedVarThatShareAName.ts | 1 + ...FunctionWithTypeIncompatibleWithIndexer.ts | 1 + ...ClassAndModuleWithSameNameAndCommonRoot.ts | 1 + .../EnumAndModuleWithSameNameAndCommonRoot.ts | 1 + ...ctionAndModuleWithSameNameAndCommonRoot.ts | 1 + ...oduleWithSameNameAndDifferentCommonRoot.ts | 1 + ...ModuleAndClassWithSameNameAndCommonRoot.ts | 1 + .../ModuleAndEnumWithSameNameAndCommonRoot.ts | 1 + ...uleAndFunctionWithSameNameAndCommonRoot.ts | 1 + ...ortedAndNonExportedClassesOfTheSameName.ts | 1 + ...edAndNonExportedInterfacesOfTheSameName.ts | 1 + ...tedAndNonExportedLocalVarsOfTheSameName.ts | 1 + ...rgeEachWithExportedClassesOfTheSameName.ts | 1 + ...EachWithExportedInterfacesOfTheSameName.ts | 1 + ...eEachWithExportedLocalVarsOfTheSameName.ts | 1 + ...rgeEachWithExportedModulesOfTheSameName.ts | 1 + ...esWithTheSameNameAndDifferentCommonRoot.ts | 1 + ...ModulesWithTheSameNameAndSameCommonRoot.ts | 1 + .../codeGeneration/exportCodeGen.ts | 1 + .../codeGeneration/importStatements.ts | 1 + .../importStatementsInterfaces.ts | 1 + .../codeGeneration/nameCollision.ts | 1 + ...ichExtendsInterfaceWithInaccessibleType.ts | 1 + ...sClassHeritageListMemberTypeAnnotations.ts | 1 + ...naccessibleTypeInIndexerTypeAnnotations.ts | 1 + ...accessibleTypeInTypeParameterConstraint.ts | 1 + ...TypesInParameterAndReturnTypeAnnotation.ts | 1 + ...ccessibleTypesInParameterTypeAnnotation.ts | 1 + ...InaccessibleTypesInReturnTypeAnnotation.ts | 1 + ...sClassHeritageListMemberTypeAnnotations.ts | 1 + ...naccessibleTypeInIndexerTypeAnnotations.ts | 1 + ...accessibleTypeInTypeParameterConstraint.ts | 1 + ...WithAccessibleTypesOnItsExportedMembers.ts | 1 + ...hAccessibleTypesInMemberTypeAnnotations.ts | 1 + ...sibleTypesInNestedMemberTypeAnnotations.ts | 1 + ...cTypeWithInaccessibleTypeAsTypeArgument.ts | 1 + ...iableWithAccessibleTypeInTypeAnnotation.ts | 1 + ...bleWithInaccessibleTypeInTypeAnnotation.ts | 1 + ...ModuleWithExportedAndNonExportedClasses.ts | 1 + .../ModuleWithExportedAndNonExportedEnums.ts | 1 + ...duleWithExportedAndNonExportedFunctions.ts | 1 + ...leWithExportedAndNonExportedImportAlias.ts | 1 + ...duleWithExportedAndNonExportedVariables.ts | 1 + .../NonInitializedExportInInternalModule.ts | 1 + .../importDeclarations/circularImportAlias.ts | 1 + .../importDeclarations/exportImportAlias.ts | 1 + .../importAliasIdentifiers.ts | 1 + .../invalidImportAliasIdentifiers.ts | 1 + .../shadowedInternalModule.ts | 1 + .../invalidModuleWithStatementsOfEveryKind.ts | 1 + .../invalidModuleWithVarStatements.ts | 1 + .../moduleWithStatementsOfEveryKind.ts | 1 + .../InvalidNonInstantiatedModule.ts | 1 + .../asiPreventsParsingAsNamespace01.ts | 1 + .../asiPreventsParsingAsNamespace02.ts | 1 + .../asiPreventsParsingAsNamespace03.ts | 1 + .../asiPreventsParsingAsNamespace04.ts | 1 + .../asiPreventsParsingAsNamespace05.ts | 1 + .../moduleDeclarations/instantiatedModule.ts | 1 + .../invalidInstantiatedModule.ts | 1 + .../invalidNestedModules.ts | 1 + .../moduleDeclarations/nestedModules.ts | 1 + .../nonInstantiatedModule.ts | 1 + .../reExportAliasMakesInstantiated.ts | 1 + .../assertionsAndNonReturningFunctions.ts | 1 + .../callOfPropertylessConstructorFunction.ts | 1 + .../conformance/jsdoc/callbackCrossModule.ts | 1 + .../jsdoc/callbackOnConstructor.ts | 1 + tests/cases/conformance/jsdoc/callbackTag1.ts | 1 + tests/cases/conformance/jsdoc/callbackTag2.ts | 1 + tests/cases/conformance/jsdoc/callbackTag3.ts | 1 + tests/cases/conformance/jsdoc/callbackTag4.ts | 1 + .../conformance/jsdoc/callbackTagNamespace.ts | 1 + .../jsdoc/callbackTagNestedParameter.ts | 1 + .../jsdoc/callbackTagVariadicType.ts | 1 + .../jsdoc/checkExportsObjectAssignProperty.ts | 2 + ...eckExportsObjectAssignPrototypeProperty.ts | 2 + .../jsdoc/checkJsdocOnEndOfFile.ts | 1 + .../jsdoc/checkJsdocOptionalParamOrder.ts | 3 +- ...ramOnVariableDeclaredFunctionExpression.ts | 1 + .../conformance/jsdoc/checkJsdocParamTag1.ts | 3 +- .../conformance/jsdoc/checkJsdocReturnTag1.ts | 1 + .../conformance/jsdoc/checkJsdocReturnTag2.ts | 1 + .../jsdoc/checkJsdocSatisfiesTag1.ts | 1 + .../jsdoc/checkJsdocSatisfiesTag10.ts | 1 + .../jsdoc/checkJsdocSatisfiesTag11.ts | 1 + .../jsdoc/checkJsdocSatisfiesTag12.ts | 1 + .../jsdoc/checkJsdocSatisfiesTag13.ts | 1 + .../jsdoc/checkJsdocSatisfiesTag14.ts | 1 + .../jsdoc/checkJsdocSatisfiesTag15.ts | 1 + .../jsdoc/checkJsdocSatisfiesTag2.ts | 1 + .../jsdoc/checkJsdocSatisfiesTag3.ts | 1 + .../jsdoc/checkJsdocSatisfiesTag4.ts | 1 + .../jsdoc/checkJsdocSatisfiesTag5.ts | 1 + .../jsdoc/checkJsdocSatisfiesTag6.ts | 1 + .../jsdoc/checkJsdocSatisfiesTag7.ts | 1 + .../jsdoc/checkJsdocSatisfiesTag8.ts | 1 + .../jsdoc/checkJsdocSatisfiesTag9.ts | 1 + .../conformance/jsdoc/checkJsdocTypeTag1.ts | 3 +- .../conformance/jsdoc/checkJsdocTypeTag2.ts | 3 +- .../conformance/jsdoc/checkJsdocTypeTag3.ts | 1 + .../conformance/jsdoc/checkJsdocTypeTag4.ts | 1 + .../conformance/jsdoc/checkJsdocTypeTag5.ts | 1 + .../conformance/jsdoc/checkJsdocTypeTag6.ts | 1 + .../conformance/jsdoc/checkJsdocTypeTag7.ts | 1 + .../conformance/jsdoc/checkJsdocTypeTag8.ts | 1 + .../checkJsdocTypeTagOnObjectProperty1.ts | 1 + .../checkJsdocTypeTagOnObjectProperty2.ts | 1 + .../jsdoc/checkJsdocTypedefInParamTag1.ts | 3 +- .../jsdoc/checkJsdocTypedefOnlySourceFile.ts | 1 + .../jsdoc/checkObjectDefineProperty.ts | 2 + .../jsdoc/checkOtherObjectAssignProperty.ts | 1 + .../jsdoc/constructorTagOnClassConstructor.ts | 1 + .../constructorTagOnNestedBinaryExpression.ts | 1 + .../constructorTagOnObjectLiteralMethod.ts | 1 + .../jsdoc/constructorTagWithThisTag.ts | 1 + .../jsDeclarationsClassStatic2.ts | 1 + .../jsDeclarationsCommonjsRelativePath.ts | 1 + .../jsDeclarationsExportDefinePropertyEmit.ts | 1 + ...arationsExportDoubleAssignmentInClosure.ts | 1 + .../jsDeclarationsExportedClassAliases.ts | 1 + ...ationsFunctionWithDefaultAssignedMember.ts | 1 + .../declarations/jsDeclarationsFunctions.ts | 1 + .../jsDeclarationsFunctionsCjs.ts | 1 + .../jsDeclarationsImportNamespacedType.ts | 1 + .../jsDeclarationsImportTypeBundled.ts | 1 + ...ationsReferenceToClassInstanceCrossFile.ts | 1 + ...onsReusesExistingNodesMappingJSDocTypes.ts | 1 + ...bclassWithExplicitNoArgumentConstructor.ts | 1 + .../declarations/jsDeclarationsThisTypes.ts | 1 + .../declarations/jsDeclarationsTypeAliases.ts | 1 + ...arationsTypeReassignmentFromDeclaration.ts | 1 + ...rationsTypeReassignmentFromDeclaration2.ts | 1 + .../jsDeclarationsTypedefAndImportTypes.ts | 1 + .../jsDeclarationsTypedefAndLatebound.ts | 1 + ...eclarationsTypedefDescriptionsPreserved.ts | 1 + ...tionsTypedefPropertyAndExportAssignment.ts | 1 + .../jsDeclarationsUniqueSymbolUsage.ts | 1 + tests/cases/conformance/jsdoc/enumTag.ts | 1 + .../jsdoc/enumTagCircularReference.ts | 1 + .../conformance/jsdoc/enumTagImported.ts | 1 + .../conformance/jsdoc/enumTagOnExports.ts | 1 + .../conformance/jsdoc/enumTagOnExports2.ts | 1 + .../jsdoc/enumTagUseBeforeDefCrash.ts | 1 + .../cases/conformance/jsdoc/errorIsolation.ts | 1 + .../jsdoc/errorOnFunctionReturnType.ts | 1 + .../jsdoc/exportedAliasedEnumTag.ts | 1 + .../jsdoc/exportedEnumTypeAndValue.ts | 1 + tests/cases/conformance/jsdoc/extendsTag1.ts | 1 + tests/cases/conformance/jsdoc/extendsTag5.ts | 1 + .../conformance/jsdoc/importDeferJsdoc.ts | 1 + tests/cases/conformance/jsdoc/importTag1.ts | 1 + tests/cases/conformance/jsdoc/importTag10.ts | 1 + tests/cases/conformance/jsdoc/importTag11.ts | 1 + tests/cases/conformance/jsdoc/importTag12.ts | 1 + tests/cases/conformance/jsdoc/importTag13.ts | 1 + tests/cases/conformance/jsdoc/importTag14.ts | 1 + tests/cases/conformance/jsdoc/importTag15.ts | 1 + tests/cases/conformance/jsdoc/importTag16.ts | 1 + tests/cases/conformance/jsdoc/importTag18.ts | 1 + tests/cases/conformance/jsdoc/importTag19.ts | 1 + tests/cases/conformance/jsdoc/importTag2.ts | 1 + tests/cases/conformance/jsdoc/importTag20.ts | 1 + tests/cases/conformance/jsdoc/importTag21.ts | 1 + tests/cases/conformance/jsdoc/importTag22.ts | 1 + tests/cases/conformance/jsdoc/importTag23.ts | 1 + tests/cases/conformance/jsdoc/importTag24.ts | 1 + tests/cases/conformance/jsdoc/importTag25.ts | 1 + tests/cases/conformance/jsdoc/importTag3.ts | 1 + tests/cases/conformance/jsdoc/importTag4.ts | 1 + tests/cases/conformance/jsdoc/importTag5.ts | 1 + tests/cases/conformance/jsdoc/importTag6.ts | 1 + tests/cases/conformance/jsdoc/importTag7.ts | 1 + tests/cases/conformance/jsdoc/importTag8.ts | 1 + tests/cases/conformance/jsdoc/importTag9.ts | 1 + tests/cases/conformance/jsdoc/inferThis.ts | 1 + ...lateTagTypeParameterOnVariableStatement.ts | 1 + .../jsdoc/jsdocAugmentsMissingType.ts | 1 + .../jsdocAugments_errorInExtendsExpression.ts | 1 + .../jsdoc/jsdocAugments_nameMismatch.ts | 1 + .../jsdoc/jsdocAugments_noExtends.ts | 1 + .../jsdoc/jsdocAugments_notAClass.ts | 1 + .../jsdoc/jsdocAugments_qualifiedName.ts | 1 + .../jsdoc/jsdocAugments_withTypeParameter.ts | 1 + .../jsdoc/jsdocBindingInUnreachableCode.ts | 1 + .../jsdoc/jsdocDisallowedInTypescript.ts | 1 + .../conformance/jsdoc/jsdocFunctionType.ts | 1 + .../jsdoc/jsdocFunction_missingReturn.ts | 1 + .../conformance/jsdoc/jsdocImplementsTag.ts | 1 + .../jsdoc/jsdocImplements_class.ts | 1 + .../jsdoc/jsdocImplements_interface.ts | 1 + .../jsdocImplements_interface_multiple.ts | 1 + .../jsdoc/jsdocImplements_missingType.ts | 1 + .../jsdocImplements_namespacedInterface.ts | 1 + .../jsdoc/jsdocImplements_properties.ts | 1 + .../jsdoc/jsdocImplements_signatures.ts | 1 + .../conformance/jsdoc/jsdocImportType.ts | 1 + .../conformance/jsdoc/jsdocImportType2.ts | 1 + .../jsdocImportTypeReferenceToClassAlias.ts | 1 + ...sdocImportTypeReferenceToCommonjsModule.ts | 1 + .../jsdocImportTypeReferenceToESModule.ts | 1 + ...jsdocImportTypeReferenceToStringLiteral.ts | 1 + .../conformance/jsdoc/jsdocIndexSignature.ts | 1 + .../cases/conformance/jsdoc/jsdocLinkTag1.ts | 1 + .../cases/conformance/jsdoc/jsdocLinkTag3.ts | 1 + .../cases/conformance/jsdoc/jsdocLinkTag4.ts | 1 + .../cases/conformance/jsdoc/jsdocLinkTag5.ts | 1 + .../cases/conformance/jsdoc/jsdocLinkTag6.ts | 1 + .../cases/conformance/jsdoc/jsdocLinkTag9.ts | 1 + tests/cases/conformance/jsdoc/jsdocLiteral.ts | 1 + .../jsdoc/jsdocNeverUndefinedNull.ts | 1 + .../jsdoc/jsdocOuterTypeParameters1.ts | 1 + .../jsdoc/jsdocOuterTypeParameters2.ts | 1 + .../jsdoc/jsdocOuterTypeParameters3.ts | 1 + .../conformance/jsdoc/jsdocOverrideTag1.ts | 1 + .../cases/conformance/jsdoc/jsdocParamTag2.ts | 1 + .../jsdoc/jsdocParamTagTypeLiteral.ts | 1 + .../jsdoc/jsdocParseBackquotedParamName.ts | 1 + .../jsdocParseDotDotDotInJSDocFunction.ts | 1 + .../jsdoc/jsdocParseErrorsInTypescript.ts | 1 + .../jsdoc/jsdocParseHigherOrderFunction.ts | 1 + .../jsdoc/jsdocParseMatchingBackticks.ts | 1 + .../jsdocParseParenthesizedJSDocParameter.ts | 1 + .../conformance/jsdoc/jsdocParseStarEquals.ts | 1 + .../jsdocPostfixEqualsAddsOptionality.ts | 1 + .../jsdoc/jsdocPrefixPostfixParsing.ts | 1 + .../conformance/jsdoc/jsdocPrivateName2.ts | 1 + .../jsdocPrototypePropertyAccessWithType.ts | 1 + .../conformance/jsdoc/jsdocReturnTag1.ts | 1 + .../conformance/jsdoc/jsdocTemplateClass.ts | 1 + .../jsdoc/jsdocTemplateConstructorFunction.ts | 1 + .../jsdocTemplateConstructorFunction2.ts | 1 + .../conformance/jsdoc/jsdocTemplateTag.ts | 1 + .../conformance/jsdoc/jsdocTemplateTag2.ts | 1 + .../conformance/jsdoc/jsdocTemplateTag3.ts | 1 + .../conformance/jsdoc/jsdocTemplateTag4.ts | 1 + .../conformance/jsdoc/jsdocTemplateTag5.ts | 1 + .../conformance/jsdoc/jsdocTemplateTag6.ts | 1 + .../conformance/jsdoc/jsdocTemplateTag7.ts | 1 + .../conformance/jsdoc/jsdocTemplateTag8.ts | 1 + .../jsdoc/jsdocTemplateTagDefault.ts | 1 + .../jsdoc/jsdocTemplateTagNameResolution.ts | 1 + .../cases/conformance/jsdoc/jsdocThisType.ts | 1 + .../conformance/jsdoc/jsdocTwoLineTypedef.ts | 1 + .../jsdoc/jsdocTypeDefAtStartOfFile.ts | 1 + .../jsdoc/jsdocTypeFromChainedAssignment.ts | 1 + .../jsdoc/jsdocTypeFromChainedAssignment2.ts | 1 + .../jsdoc/jsdocTypeFromChainedAssignment3.ts | 1 + .../jsdoc/jsdocTypeReferenceExports.ts | 1 + .../jsdoc/jsdocTypeReferenceToImport.ts | 1 + ...cTypeReferenceToImportOfClassExpression.ts | 1 + ...peReferenceToImportOfFunctionExpression.ts | 1 + .../jsdoc/jsdocTypeReferenceToMergedClass.ts | 1 + .../jsdoc/jsdocTypeReferenceToValue.ts | 1 + .../jsdoc/jsdocTypeReferenceUseBeforeDef.ts | 1 + .../conformance/jsdoc/jsdocTypeTagCast.ts | 1 + .../jsdoc/jsdocTypeTagOnParameter1.ts | 1 + .../jsdoc/jsdocTypeTagParameterType.ts | 1 + .../jsdoc/jsdocTypeTagRequiredParameters.ts | 1 + .../conformance/jsdoc/jsdocVariadicType.ts | 1 + tests/cases/conformance/jsdoc/linkTagEmit1.ts | 1 + .../moduleExportsElementAccessAssignment.ts | 1 + .../moduleExportsElementAccessAssignment2.ts | 1 + .../jsdoc/noAssertForUnparseableTypedefs.ts | 1 + .../conformance/jsdoc/noDuplicateJsdoc1.ts | 1 + tests/cases/conformance/jsdoc/overloadTag1.ts | 1 + tests/cases/conformance/jsdoc/overloadTag3.ts | 1 + .../paramTagBracketsAddOptionalUndefined.ts | 1 + .../paramTagNestedWithoutTopLevelObject.ts | 1 + .../paramTagNestedWithoutTopLevelObject2.ts | 1 + .../paramTagNestedWithoutTopLevelObject3.ts | 1 + .../paramTagNestedWithoutTopLevelObject4.ts | 1 + .../jsdoc/paramTagOnCallExpression.ts | 1 + .../jsdoc/paramTagOnFunctionUsingArguments.ts | 1 + .../jsdoc/paramTagTypeResolution.ts | 1 + .../jsdoc/paramTagTypeResolution2.ts | 1 + .../conformance/jsdoc/paramTagWrapping.ts | 1 + tests/cases/conformance/jsdoc/parseLinkTag.ts | 1 + .../cases/conformance/jsdoc/parseThrowsTag.ts | 1 + .../conformance/jsdoc/returnTagTypeGuard.ts | 1 + tests/cases/conformance/jsdoc/seeTag1.ts | 1 + tests/cases/conformance/jsdoc/seeTag2.ts | 1 + tests/cases/conformance/jsdoc/seeTag3.ts | 1 + tests/cases/conformance/jsdoc/seeTag4.ts | 1 + tests/cases/conformance/jsdoc/syntaxErrors.ts | 1 + .../jsdoc/templateInsideCallback.ts | 1 + .../thisPrototypeMethodCompoundAssignment.ts | 1 + ...thisPrototypeMethodCompoundAssignmentJs.ts | 1 + tests/cases/conformance/jsdoc/thisTag1.ts | 1 + tests/cases/conformance/jsdoc/thisTag3.ts | 1 + .../jsdoc/tsNoCheckForTypescript.ts | 1 + .../jsdoc/tsNoCheckForTypescriptComments1.ts | 1 + .../jsdoc/tsNoCheckForTypescriptComments2.ts | 1 + ...ameterExtendsUnionConstraintDistributed.ts | 1 + ...gCircularReferenceOnConstructorFunction.ts | 1 + .../conformance/jsdoc/typeTagModuleExports.ts | 1 + .../conformance/jsdoc/typeTagNoErasure.ts | 1 + .../jsdoc/typeTagOnPropertyAssignment.ts | 1 + .../jsdoc/typeTagPrototypeAssignment.ts | 1 + .../jsdoc/typeTagWithGenericSignature.ts | 1 + .../conformance/jsdoc/typedefCrossModule.ts | 1 + .../conformance/jsdoc/typedefCrossModule2.ts | 1 + .../conformance/jsdoc/typedefCrossModule3.ts | 1 + .../conformance/jsdoc/typedefCrossModule4.ts | 1 + .../conformance/jsdoc/typedefCrossModule5.ts | 1 + .../jsdoc/typedefDuplicateTypeDeclaration.ts | 1 + .../jsdoc/typedefInnerNamepaths.ts | 1 + .../jsdoc/typedefMultipleTypeParameters.ts | 1 + .../jsdoc/typedefOnSemicolonClassElement.ts | 1 + .../conformance/jsdoc/typedefOnStatements.ts | 1 + .../cases/conformance/jsdoc/typedefScope1.ts | 1 + .../jsdoc/typedefTagExtraneousProperty.ts | 1 + .../conformance/jsdoc/typedefTagNested.ts | 1 + .../jsdoc/typedefTagTypeResolution.ts | 1 + .../conformance/jsdoc/typedefTagWrapping.ts | 1 + .../jsx/checkJsxChildrenCanBeTupleType.tsx | 1 + .../jsx/checkJsxChildrenProperty1.tsx | 1 + .../jsx/checkJsxChildrenProperty10.tsx | 1 + .../jsx/checkJsxChildrenProperty11.tsx | 1 + .../jsx/checkJsxChildrenProperty12.tsx | 2 + .../jsx/checkJsxChildrenProperty13.tsx | 2 + .../jsx/checkJsxChildrenProperty14.tsx | 2 + .../jsx/checkJsxChildrenProperty15.tsx | 2 + .../jsx/checkJsxChildrenProperty16.tsx | 2 + .../jsx/checkJsxChildrenProperty2.tsx | 2 + .../jsx/checkJsxChildrenProperty3.tsx | 2 + .../jsx/checkJsxChildrenProperty4.tsx | 2 + .../jsx/checkJsxChildrenProperty5.tsx | 2 + .../jsx/checkJsxChildrenProperty6.tsx | 2 + .../jsx/checkJsxChildrenProperty7.tsx | 2 + .../jsx/checkJsxChildrenProperty8.tsx | 2 + .../jsx/checkJsxChildrenProperty9.tsx | 2 + ...checkJsxGenericTagHasCorrectInferences.tsx | 1 + .../checkJsxIntersectionElementPropsType.tsx | 1 + ...heckJsxNamespaceNamesQuestionableForms.tsx | 1 + .../checkJsxSubtleSkipContextSensitiveBug.tsx | 1 + ...nionSFXContextualTypeInferredCorrectly.tsx | 1 + .../jsx/commentEmittingInPreserveJsx1.tsx | 4 +- .../jsx/inline/inlineJsxAndJsxFragPragma.tsx | 1 + ...dJsxFragPragmaOverridesCompilerOptions.tsx | 1 + .../inline/inlineJsxFactoryDeclarations.tsx | 1 + ...inlineJsxFactoryDeclarationsLocalTypes.tsx | 1 + ...nlineJsxFactoryLocalTypeGlobalFallback.tsx | 1 + ...nlineJsxFactoryOverridesCompilerOption.tsx | 1 + .../inlineJsxFactoryWithFragmentIsError.tsx | 1 + .../conformance/jsx/jsxAndTypeAssertion.tsx | 1 + .../jsx/jsxAttributeInitializer.ts | 1 + .../jsx/jsxCheckJsxNoTypeArgumentsAllowed.tsx | 1 + .../conformance/jsx/jsxEsprimaFbTestSuite.tsx | 1 + .../jsx/jsxInvalidEsprimaTestSuite.tsx | 1 + .../conformance/jsx/jsxParsingError1.tsx | 1 + .../conformance/jsx/jsxParsingError2.tsx | 1 + .../conformance/jsx/jsxParsingError3.tsx | 1 + .../conformance/jsx/jsxParsingError4.tsx | 1 + ...ngErrorImmediateSpreadInAttributeValue.tsx | 1 + .../conformance/jsx/jsxReactTestSuite.tsx | 1 + .../jsxSpreadOverwritesAttributeStrict.tsx | 2 + .../jsx/jsxUnclosedParserRecovery.ts | 1 + .../jsx/jsxs/jsxJsxsCjsTransformChildren.tsx | 1 + .../jsxs/jsxJsxsCjsTransformCustomImport.tsx | 1 + .../jsxJsxsCjsTransformCustomImportPragma.tsx | 1 + .../jsx/jsxs/jsxJsxsCjsTransformKeyProp.tsx | 1 + ...jsxJsxsCjsTransformKeyPropCustomImport.tsx | 1 + ...sCjsTransformKeyPropCustomImportPragma.tsx | 1 + ...JsxsCjsTransformNestedSelfClosingChild.tsx | 1 + .../jsxJsxsCjsTransformSubstitutesNames.tsx | 1 + ...xsCjsTransformSubstitutesNamesFragment.tsx | 1 + .../conformance/jsx/tsxAttributeErrors.tsx | 1 + .../jsx/tsxAttributeInvalidNames.tsx | 1 + .../jsx/tsxAttributeResolution.tsx | 1 + .../jsx/tsxAttributeResolution1.tsx | 1 + .../jsx/tsxAttributeResolution10.tsx | 1 + .../jsx/tsxAttributeResolution11.tsx | 1 + .../jsx/tsxAttributeResolution12.tsx | 1 + .../jsx/tsxAttributeResolution13.tsx | 1 + .../jsx/tsxAttributeResolution14.tsx | 3 +- .../jsx/tsxAttributeResolution15.tsx | 4 +- .../jsx/tsxAttributeResolution16.tsx | 4 +- .../jsx/tsxAttributeResolution2.tsx | 1 + .../jsx/tsxAttributeResolution3.tsx | 1 + .../jsx/tsxAttributeResolution4.tsx | 1 + .../jsx/tsxAttributeResolution5.tsx | 1 + .../jsx/tsxAttributeResolution6.tsx | 1 + .../jsx/tsxAttributeResolution7.tsx | 1 + .../jsx/tsxAttributeResolution8.tsx | 1 + .../jsx/tsxAttributeResolution9.tsx | 1 + .../tsxCorrectlyParseLessThanComparison1.tsx | 3 +- .../jsx/tsxDefaultAttributesResolution1.tsx | 2 + .../jsx/tsxDefaultAttributesResolution2.tsx | 2 + .../jsx/tsxDefaultAttributesResolution3.tsx | 2 + .../conformance/jsx/tsxDynamicTagName1.tsx | 1 + .../conformance/jsx/tsxDynamicTagName2.tsx | 1 + .../conformance/jsx/tsxDynamicTagName3.tsx | 1 + .../conformance/jsx/tsxDynamicTagName4.tsx | 1 + .../conformance/jsx/tsxDynamicTagName5.tsx | 1 + .../conformance/jsx/tsxDynamicTagName6.tsx | 1 + .../conformance/jsx/tsxDynamicTagName7.tsx | 1 + .../conformance/jsx/tsxDynamicTagName8.tsx | 1 + .../conformance/jsx/tsxDynamicTagName9.tsx | 1 + .../conformance/jsx/tsxElementResolution.tsx | 1 + .../conformance/jsx/tsxElementResolution1.tsx | 1 + .../jsx/tsxElementResolution10.tsx | 1 + .../jsx/tsxElementResolution11.tsx | 1 + .../jsx/tsxElementResolution12.tsx | 1 + .../jsx/tsxElementResolution13.tsx | 1 + .../jsx/tsxElementResolution14.tsx | 1 + .../jsx/tsxElementResolution15.tsx | 1 + .../jsx/tsxElementResolution16.tsx | 1 + .../jsx/tsxElementResolution17.tsx | 1 + .../jsx/tsxElementResolution18.tsx | 1 + .../jsx/tsxElementResolution19.tsx | 1 + .../conformance/jsx/tsxElementResolution2.tsx | 1 + .../conformance/jsx/tsxElementResolution3.tsx | 1 + .../conformance/jsx/tsxElementResolution4.tsx | 1 + .../conformance/jsx/tsxElementResolution5.tsx | 1 + .../conformance/jsx/tsxElementResolution6.tsx | 1 + .../conformance/jsx/tsxElementResolution7.tsx | 1 + .../conformance/jsx/tsxElementResolution8.tsx | 1 + .../conformance/jsx/tsxElementResolution9.tsx | 1 + tests/cases/conformance/jsx/tsxEmit1.tsx | 1 + tests/cases/conformance/jsx/tsxEmit2.tsx | 1 + tests/cases/conformance/jsx/tsxEmit3.tsx | 1 + .../conformance/jsx/tsxErrorRecovery1.tsx | 1 + .../conformance/jsx/tsxErrorRecovery2.tsx | 1 + .../conformance/jsx/tsxErrorRecovery3.tsx | 1 + .../jsx/tsxExternalModuleEmit1.tsx | 1 + .../jsx/tsxExternalModuleEmit2.tsx | 1 + .../conformance/jsx/tsxFragmentErrors.tsx | 1 + .../jsx/tsxFragmentPreserveEmit.tsx | 1 + .../conformance/jsx/tsxFragmentReactEmit.tsx | 1 + .../jsx/tsxGenericArrowFunctionParsing.tsx | 1 + .../jsx/tsxGenericAttributesType1.tsx | 2 + .../jsx/tsxGenericAttributesType2.tsx | 2 + .../jsx/tsxGenericAttributesType3.tsx | 2 + .../jsx/tsxGenericAttributesType4.tsx | 2 + .../jsx/tsxGenericAttributesType5.tsx | 2 + .../jsx/tsxGenericAttributesType6.tsx | 2 + .../jsx/tsxGenericAttributesType7.tsx | 2 + .../jsx/tsxGenericAttributesType8.tsx | 2 + .../jsx/tsxGenericAttributesType9.tsx | 2 + .../conformance/jsx/tsxInArrowFunction.tsx | 1 + .../jsx/tsxIntrinsicAttributeErrors.tsx | 1 + .../jsx/tsxLibraryManagedAttributes.tsx | 1 + .../jsx/tsxNamespacedAttributeName1.tsx | 1 + .../jsx/tsxNamespacedAttributeName2.tsx | 1 + .../conformance/jsx/tsxNamespacedTagName1.tsx | 1 + .../conformance/jsx/tsxNamespacedTagName2.tsx | 1 + tests/cases/conformance/jsx/tsxNoJsx.tsx | 1 + .../jsx/tsxOpeningClosingNames.tsx | 1 + .../cases/conformance/jsx/tsxParseTests1.tsx | 1 + .../cases/conformance/jsx/tsxParseTests2.tsx | 1 + .../conformance/jsx/tsxPreserveEmit3.tsx | 1 + ...eactComponentWithDefaultTypeParameter1.tsx | 2 + ...eactComponentWithDefaultTypeParameter2.tsx | 2 + ...eactComponentWithDefaultTypeParameter3.tsx | 2 + tests/cases/conformance/jsx/tsxReactEmit1.tsx | 1 + tests/cases/conformance/jsx/tsxReactEmit2.tsx | 1 + tests/cases/conformance/jsx/tsxReactEmit3.tsx | 1 + tests/cases/conformance/jsx/tsxReactEmit4.tsx | 1 + tests/cases/conformance/jsx/tsxReactEmit5.tsx | 1 + tests/cases/conformance/jsx/tsxReactEmit6.tsx | 1 + tests/cases/conformance/jsx/tsxReactEmit7.tsx | 1 + .../conformance/jsx/tsxReactEmitEntities.tsx | 1 + .../conformance/jsx/tsxReactEmitNesting.tsx | 1 + .../jsx/tsxReactEmitWhitespace.tsx | 1 + .../jsx/tsxReactEmitWhitespace2.tsx | 1 + .../conformance/jsx/tsxSfcReturnNull.tsx | 1 + .../jsx/tsxSfcReturnNullStrictNullChecks.tsx | 1 + .../tsxSfcReturnUndefinedStrictNullChecks.tsx | 1 + .../jsx/tsxSpreadAttributesResolution1.tsx | 2 + .../jsx/tsxSpreadAttributesResolution10.tsx | 2 + .../jsx/tsxSpreadAttributesResolution11.tsx | 2 + .../jsx/tsxSpreadAttributesResolution12.tsx | 2 + .../jsx/tsxSpreadAttributesResolution13.tsx | 2 + .../jsx/tsxSpreadAttributesResolution14.tsx | 2 + .../jsx/tsxSpreadAttributesResolution15.tsx | 2 + .../jsx/tsxSpreadAttributesResolution16.tsx | 2 + .../jsx/tsxSpreadAttributesResolution17.tsx | 1 + .../jsx/tsxSpreadAttributesResolution2.tsx | 2 + .../jsx/tsxSpreadAttributesResolution3.tsx | 2 + .../jsx/tsxSpreadAttributesResolution4.tsx | 2 + .../jsx/tsxSpreadAttributesResolution5.tsx | 2 + .../jsx/tsxSpreadAttributesResolution6.tsx | 2 + .../jsx/tsxSpreadAttributesResolution7.tsx | 2 + .../jsx/tsxSpreadAttributesResolution8.tsx | 2 + .../jsx/tsxSpreadAttributesResolution9.tsx | 2 + .../conformance/jsx/tsxSpreadChildren.tsx | 1 + .../conformance/jsx/tsxSpreadInvalidType.tsx | 1 + ...tsxStatelessFunctionComponentOverload1.tsx | 1 + ...tsxStatelessFunctionComponentOverload2.tsx | 1 + ...tsxStatelessFunctionComponentOverload3.tsx | 1 + ...tsxStatelessFunctionComponentOverload4.tsx | 1 + ...tsxStatelessFunctionComponentOverload5.tsx | 1 + ...tsxStatelessFunctionComponentOverload6.tsx | 1 + ...tionComponentWithDefaultTypeParameter1.tsx | 1 + ...tionComponentWithDefaultTypeParameter2.tsx | 1 + .../jsx/tsxStatelessFunctionComponents1.tsx | 1 + .../jsx/tsxStatelessFunctionComponents2.tsx | 2 + .../jsx/tsxStatelessFunctionComponents3.tsx | 1 + ...ssFunctionComponentsWithTypeArguments1.tsx | 1 + ...ssFunctionComponentsWithTypeArguments2.tsx | 1 + ...ssFunctionComponentsWithTypeArguments3.tsx | 1 + ...ssFunctionComponentsWithTypeArguments4.tsx | 1 + ...ssFunctionComponentsWithTypeArguments5.tsx | 3 +- .../jsx/tsxTypeArgumentResolution.tsx | 2 + .../jsx/tsxTypeArgumentsJsxPreserveOutput.tsx | 2 + tests/cases/conformance/jsx/tsxTypeErrors.tsx | 1 + .../conformance/jsx/tsxUnionElementType1.tsx | 4 +- .../conformance/jsx/tsxUnionElementType2.tsx | 4 +- .../conformance/jsx/tsxUnionElementType3.tsx | 4 +- .../conformance/jsx/tsxUnionElementType4.tsx | 4 +- .../conformance/jsx/tsxUnionElementType5.tsx | 4 +- .../conformance/jsx/tsxUnionElementType6.tsx | 4 +- .../jsx/tsxUnionTypeComponent1.tsx | 2 + .../jsx/tsxUnionTypeComponent2.tsx | 2 + .../allowImportingTsExtensions.ts | 1 + .../allowImportingTypesDtsExtension.ts | 1 + .../bundler/bundlerCommonJS.ts | 1 + .../bundler/bundlerConditionsExcludesNode.ts | 1 + .../bundler/bundlerImportESM.ts | 1 + .../bundler/bundlerImportTsExtensions.ts | 1 + .../bundler/bundlerNodeModules1.ts | 1 + .../bundler/bundlerOptionsCompat.ts | 1 + .../bundler/bundlerRelative1.ts | 1 + .../bundler/bundlerSyntaxRestrictions.ts | 1 + .../conditionalExportsResolutionFallback.ts | 1 + ...onditionalExportsResolutionFallbackNull.ts | 1 + .../moduleResolution/customConditions.ts | 1 + .../declarationNotFoundPackageBundlesTypes.ts | 1 + .../extensionLoadingPriority.ts | 1 + .../moduleResolution/importFromDot.ts | 1 + .../nestedPackageJsonRedirect.ts | 1 + .../node10AlternateResult_noResolution.ts | 1 + .../node10Alternateresult_noTypes.ts | 1 + .../moduleResolution/node10IsNode_node.ts | 1 + .../moduleResolution/node10IsNode_node10.ts | 1 + .../packageJsonExportsOptionsCompat.ts | 1 + .../packageJsonImportsExportsOptionCompat.ts | 1 + .../moduleResolution/packageJsonMain.ts | 2 + .../packageJsonMain_isNonRecursive.ts | 2 + .../moduleResolution/resolutionModeCache.ts | 1 + .../resolutionModeImportType1.ts | 1 + .../resolutionModeTripleSlash1.ts | 1 + .../resolutionModeTripleSlash2.ts | 1 + .../resolutionModeTripleSlash3.ts | 1 + .../resolutionModeTripleSlash4.ts | 1 + .../resolutionModeTripleSlash5.ts | 1 + .../resolutionModeTypeOnlyImport1.ts | 1 + .../resolvesWithoutExportsDiagnostic1.ts | 1 + .../moduleResolution/scopedPackages.ts | 1 + .../moduleResolution/scopedPackagesClassic.ts | 1 + .../selfNameModuleAugmentation.ts | 1 + .../moduleResolution/untypedModuleImport.ts | 2 + .../untypedModuleImport_allowJs.ts | 1 + .../untypedModuleImport_noImplicitAny.ts | 1 + ...ModuleImport_noImplicitAny_relativePath.ts | 1 + ...ntypedModuleImport_noImplicitAny_scoped.ts | 1 + ...port_noImplicitAny_typesForPackageExist.ts | 1 + .../untypedModuleImport_vsAmbient.ts | 1 + .../untypedModuleImport_withAugmentation.ts | 1 + .../allowJs/nodeAllowJsPackageSelfName2.ts | 1 + ...lesExportsSpecifierGenerationConditions.ts | 1 + .../nodeModulesPackageImportsRootWildcard.ts | 1 + ...ReferenceModeOverrideOldResolutionError.ts | 1 + .../declarationFileForJsonImport.ts | 1 + tests/cases/conformance/override/override1.ts | 1 + .../cases/conformance/override/override10.ts | 1 + .../cases/conformance/override/override11.ts | 1 + .../cases/conformance/override/override15.ts | 1 + tests/cases/conformance/override/override2.ts | 1 + tests/cases/conformance/override/override3.ts | 1 + tests/cases/conformance/override/override4.ts | 1 + tests/cases/conformance/override/override5.ts | 1 + tests/cases/conformance/override/override6.ts | 1 + tests/cases/conformance/override/override7.ts | 1 + tests/cases/conformance/override/override8.ts | 1 + tests/cases/conformance/override/override9.ts | 1 + .../override/overrideKeywordOrder.ts | 1 + .../override/overrideParameterProperty.ts | 1 + .../overrideWithoutNoImplicitOverride1.ts | 1 + .../conformance/override/override_js1.ts | 1 + .../conformance/override/override_js2.ts | 1 + .../conformance/override/override_js3.ts | 1 + .../conformance/override/override_js4.ts | 1 + .../parser.numericSeparators.binary.ts | 1 + ...parser.numericSeparators.binaryNegative.ts | 1 + ...arser.numericSeparators.decmialNegative.ts | 1 + .../parser.numericSeparators.hex.ts | 1 + .../parser.numericSeparators.hexNegative.ts | 1 + .../parser.numericSeparators.octal.ts | 1 + .../parser.numericSeparators.octalNegative.ts | 1 + .../Accessors/parserES3Accessors1.ts | 1 + .../Accessors/parserES3Accessors2.ts | 1 + .../Accessors/parserES3Accessors3.ts | 1 + .../Accessors/parserES3Accessors4.ts | 1 + .../parserArrayLiteralExpression1.ts | 1 + .../parserArrayLiteralExpression10.ts | 1 + .../parserArrayLiteralExpression11.ts | 1 + .../parserArrayLiteralExpression12.ts | 1 + .../parserArrayLiteralExpression13.ts | 1 + .../parserArrayLiteralExpression14.ts | 1 + .../parserArrayLiteralExpression15.ts | 1 + .../parserArrayLiteralExpression2.ts | 1 + .../parserArrayLiteralExpression3.ts | 1 + .../parserArrayLiteralExpression4.ts | 1 + .../parserArrayLiteralExpression5.ts | 1 + .../parserArrayLiteralExpression6.ts | 1 + .../parserArrayLiteralExpression7.ts | 1 + .../parserArrayLiteralExpression8.ts | 1 + .../parserArrayLiteralExpression9.ts | 1 + .../parserArrowFunctionExpression1.ts | 1 + .../parserArrowFunctionExpression2.ts | 1 + .../parserArrowFunctionExpression3.ts | 1 + .../parserArrowFunctionExpression4.ts | 1 + .../parserArrowFunctionExpression5.ts | 1 + .../parserArrowFunctionExpression6.ts | 1 + .../parserAutomaticSemicolonInsertion1.ts | 1 + .../parserCatchClauseWithTypeAnnotation1.ts | 1 + .../ClassDeclarations/parserClass1.ts | 1 + .../ClassDeclarations/parserClass2.ts | 1 + .../parserClassDeclaration1.ts | 1 + .../parserClassDeclaration10.ts | 1 + .../parserClassDeclaration11.ts | 1 + .../parserClassDeclaration12.ts | 1 + .../parserClassDeclaration13.ts | 1 + .../parserClassDeclaration14.ts | 1 + .../parserClassDeclaration15.ts | 1 + .../parserClassDeclaration16.ts | 1 + .../parserClassDeclaration17.ts | 1 + .../parserClassDeclaration18.ts | 1 + .../parserClassDeclaration19.ts | 1 + .../parserClassDeclaration2.ts | 1 + .../parserClassDeclaration20.ts | 1 + .../parserClassDeclaration21.ts | 1 + .../parserClassDeclaration22.ts | 1 + .../parserClassDeclaration23.ts | 1 + .../parserClassDeclaration24.ts | 1 + .../parserClassDeclaration25.ts | 1 + .../parserClassDeclaration26.ts | 1 + .../parserClassDeclaration3.ts | 1 + .../parserClassDeclaration4.ts | 1 + .../parserClassDeclaration5.ts | 1 + .../parserClassDeclaration6.ts | 1 + .../parserClassDeclaration7.d.ts | 1 + .../parserClassDeclaration7.ts | 1 + .../parserClassDeclaration8.ts | 1 + .../parserClassDeclaration9.ts | 1 + .../parserClassDeclarationIndexSignature1.ts | 1 + .../parserConstructorDeclaration1.ts | 1 + .../parserConstructorDeclaration10.ts | 1 + .../parserConstructorDeclaration11.ts | 1 + .../parserConstructorDeclaration2.ts | 1 + .../parserConstructorDeclaration3.ts | 1 + .../parserConstructorDeclaration4.ts | 1 + .../parserConstructorDeclaration5.ts | 1 + .../parserConstructorDeclaration6.ts | 1 + .../parserConstructorDeclaration7.ts | 1 + .../parserConstructorDeclaration8.ts | 1 + .../parserConstructorDeclaration9.ts | 1 + .../EnumDeclarations/parserEnum1.ts | 1 + .../EnumDeclarations/parserEnum2.ts | 1 + .../EnumDeclarations/parserEnum3.ts | 1 + .../EnumDeclarations/parserEnum4.ts | 1 + .../EnumDeclarations/parserEnum5.ts | 1 + .../EnumDeclarations/parserEnum6.ts | 1 + .../EnumDeclarations/parserEnum7.ts | 1 + .../parserEnumDeclaration1.ts | 1 + .../parserEnumDeclaration2.d.ts | 1 + .../parserEnumDeclaration2.ts | 1 + .../parserEnumDeclaration3.d.ts | 1 + .../parserEnumDeclaration3.ts | 1 + .../parserEnumDeclaration4.ts | 1 + .../parserEnumDeclaration5.ts | 1 + .../parserEnumDeclaration6.ts | 1 + .../parserInterfaceKeywordInEnum.ts | 1 + .../parserInterfaceKeywordInEnum1.ts | 1 + .../parserAccessibilityAfterStatic1.ts | 1 + .../parserAccessibilityAfterStatic10.ts | 1 + .../parserAccessibilityAfterStatic11.ts | 1 + .../parserAccessibilityAfterStatic14.ts | 1 + .../parserAccessibilityAfterStatic2.ts | 1 + .../parserAccessibilityAfterStatic3.ts | 1 + .../parserAccessibilityAfterStatic4.ts | 1 + .../parserAccessibilityAfterStatic5.ts | 1 + .../parserAccessibilityAfterStatic6.ts | 1 + .../parserAccessibilityAfterStatic7.ts | 1 + .../parserErrorRecovery_ArgumentList1.ts | 1 + .../parserErrorRecovery_ArgumentList2.ts | 1 + .../parserErrorRecovery_ArgumentList3.ts | 1 + .../parserErrorRecovery_ArgumentList4.ts | 1 + .../parserErrorRecovery_ArgumentList6.ts | 1 + .../parserErrorRecovery_ArgumentList7.ts | 1 + ...serErrorRecoveryArrayLiteralExpression1.ts | 1 + ...serErrorRecoveryArrayLiteralExpression2.ts | 1 + ...serErrorRecoveryArrayLiteralExpression3.ts | 1 + .../ArrowFunctions/ArrowFunction1.ts | 1 + .../ArrowFunctions/ArrowFunction3.ts | 1 + .../ArrowFunctions/ArrowFunction4.ts | 1 + .../ArrowFunctions/parserX_ArrowFunction1.ts | 1 + .../ArrowFunctions/parserX_ArrowFunction3.ts | 1 + .../ArrowFunctions/parserX_ArrowFunction4.ts | 1 + .../Blocks/parserErrorRecovery_Block1.ts | 1 + .../Blocks/parserErrorRecovery_Block2.ts | 1 + .../Blocks/parserErrorRecovery_Block3.ts | 1 + .../parserErrorRecovery_ClassElement1.ts | 1 + .../parserErrorRecovery_ClassElement2.ts | 1 + .../parserErrorRecovery_ClassElement3.ts | 1 + .../parserErrorRecovery_Expression1.ts | 1 + ...rrorRecovery_ExtendsOrImplementsClause1.ts | 1 + ...rrorRecovery_ExtendsOrImplementsClause2.ts | 1 + ...rrorRecovery_ExtendsOrImplementsClause3.ts | 1 + ...rrorRecovery_ExtendsOrImplementsClause4.ts | 1 + ...rrorRecovery_ExtendsOrImplementsClause5.ts | 1 + ...rrorRecovery_ExtendsOrImplementsClause6.ts | 1 + .../parserErrorRecoveryIfStatement1.ts | 1 + .../parserErrorRecoveryIfStatement2.ts | 1 + .../parserErrorRecoveryIfStatement3.ts | 1 + .../parserErrorRecoveryIfStatement4.ts | 1 + .../parserErrorRecoveryIfStatement5.ts | 1 + .../parserErrorRecoveryIfStatement6.ts | 1 + ...ErrorRecovery_IncompleteMemberVariable1.ts | 1 + ...ErrorRecovery_IncompleteMemberVariable2.ts | 1 + .../parserErrorRecovery_LeftShift1.ts | 1 + .../parserErrorRecovery_ModuleElement1.ts | 1 + .../parserErrorRecovery_ModuleElement2.ts | 1 + .../parserErrorRecovery_ObjectLiteral1.ts | 1 + .../parserErrorRecovery_ObjectLiteral2.ts | 1 + .../parserErrorRecovery_ObjectLiteral3.ts | 1 + .../parserErrorRecovery_ObjectLiteral4.ts | 1 + .../parserErrorRecovery_ObjectLiteral5.ts | 1 + .../parserErrorRecovery_ParameterList1.ts | 1 + .../parserErrorRecovery_ParameterList2.ts | 1 + .../parserErrorRecovery_ParameterList4.ts | 1 + .../parserErrorRecovery_ParameterList5.ts | 1 + .../parserErrorRecovery_ParameterList6.ts | 1 + .../parserErrorRecovery_SourceUnit1.ts | 1 + .../parserErrorRecovery_SwitchStatement1.ts | 1 + .../parserErrorRecovery_SwitchStatement2.ts | 1 + .../TypeArgumentLists/TypeArgumentList1.ts | 1 + .../parserX_TypeArgumentList1.ts | 1 + .../parserErrorRecovery_VariableList1.ts | 1 + ...InvalidIdentifiersInVariableStatements1.ts | 1 + .../VariableLists/parserVariableStatement1.ts | 1 + .../VariableLists/parserVariableStatement2.ts | 1 + .../VariableLists/parserVariableStatement3.ts | 1 + .../VariableLists/parserVariableStatement4.ts | 1 + .../parserCommaInTypeMemberList1.ts | 1 + .../parserCommaInTypeMemberList2.ts | 1 + .../parserEmptyParenthesizedExpression1.ts | 1 + .../parserEqualsGreaterThanAfterFunction1.ts | 1 + .../parserEqualsGreaterThanAfterFunction2.ts | 1 + ...serErrantAccessibilityModifierInModule1.ts | 1 + ...erErrantEqualsGreaterThanAfterFunction1.ts | 1 + ...erErrantEqualsGreaterThanAfterFunction2.ts | 1 + .../parserErrantSemicolonInClass1.ts | 1 + .../ecmascript5/ErrorRecovery/parserFuzz1.ts | 1 + .../parserMissingLambdaOpenBrace1.ts | 1 + .../parserModifierOnPropertySignature1.ts | 1 + .../parserModifierOnPropertySignature2.ts | 1 + .../parserModifierOnStatementInBlock1.ts | 1 + .../parserModifierOnStatementInBlock2.ts | 1 + .../parserModifierOnStatementInBlock3.ts | 1 + .../parserModifierOnStatementInBlock4.ts | 1 + .../ErrorRecovery/parserPublicBreak1.ts | 1 + ...atementIsNotAMemberVariableDeclaration1.ts | 1 + .../parserUnfinishedTypeNameBeforeKeyword1.ts | 1 + .../parserUnterminatedGeneric1.ts | 1 + .../parserUnterminatedGeneric2.ts | 1 + .../parserExportAssignment1.ts | 2 + .../parserExportAssignment2.ts | 2 + .../parserExportAssignment3.ts | 1 + .../parserExportAssignment4.ts | 1 + .../parserExportAssignment5.ts | 1 + .../parserExportAssignment6.ts | 1 + .../parserExportAssignment7.ts | 2 + .../parserExportAssignment8.ts | 2 + .../parserExportAssignment9.ts | 1 + .../parseIncompleteBinaryExpression1.ts | 3 +- .../parserAssignmentExpression1.ts | 1 + .../parserConditionalExpression1.ts | 1 + ...berAccessOffOfObjectCreationExpression1.ts | 1 + ...rserMemberAccessAfterPostfixExpression1.ts | 1 + .../Expressions/parserObjectCreation2.ts | 1 + .../parserPostfixPostfixExpression1.ts | 1 + .../parserPostfixUnaryExpression1.ts | 1 + ...ypeAssertionInObjectCreationExpression1.ts | 1 + .../Expressions/parserUnaryExpression1.ts | 1 + .../Expressions/parserUnaryExpression2.ts | 1 + .../Expressions/parserUnaryExpression3.ts | 1 + .../Expressions/parserUnaryExpression4.ts | 1 + .../Expressions/parserUnaryExpression5.ts | 1 + .../Expressions/parserUnaryExpression6.ts | 1 + .../Expressions/parserUnaryExpression7.ts | 1 + .../parserFunctionDeclaration1.d.ts | 1 + .../parserFunctionDeclaration1.ts | 1 + .../parserFunctionDeclaration2.d.ts | 1 + .../parserFunctionDeclaration2.ts | 1 + .../parserFunctionDeclaration3.ts | 1 + .../parserFunctionDeclaration4.ts | 1 + .../parserFunctionDeclaration5.ts | 1 + .../parserFunctionDeclaration6.ts | 1 + .../parserFunctionDeclaration7.ts | 1 + .../parserFunctionDeclaration8.ts | 1 + .../parser/ecmascript5/Fuzz/parser0_004152.ts | 1 + .../parser/ecmascript5/Fuzz/parser768531.ts | 1 + .../ecmascript5/Generics/parserAmbiguity1.ts | 1 + .../ecmascript5/Generics/parserAmbiguity2.ts | 1 + .../ecmascript5/Generics/parserAmbiguity3.ts | 1 + .../parserAmbiguityWithBinaryOperator1.ts | 3 +- .../parserAmbiguityWithBinaryOperator2.ts | 3 +- .../parserAmbiguityWithBinaryOperator3.ts | 3 +- .../parserAmbiguityWithBinaryOperator4.ts | 3 +- .../parserCastVersusArrowFunction1.ts | 1 + .../Generics/parserConstructorAmbiguity1.ts | 1 + .../Generics/parserConstructorAmbiguity2.ts | 1 + .../Generics/parserConstructorAmbiguity3.ts | 1 + .../Generics/parserConstructorAmbiguity4.ts | 1 + .../Generics/parserGenericClass1.ts | 1 + .../Generics/parserGenericClass2.ts | 1 + .../Generics/parserGenericConstraint1.ts | 1 + .../Generics/parserGenericConstraint2.ts | 1 + .../Generics/parserGenericConstraint3.ts | 1 + .../Generics/parserGenericConstraint4.ts | 1 + .../Generics/parserGenericConstraint5.ts | 1 + .../Generics/parserGenericConstraint6.ts | 1 + .../Generics/parserGenericConstraint7.ts | 1 + .../parserGenericsInInterfaceDeclaration1.ts | 1 + .../Generics/parserGenericsInTypeContexts1.ts | 1 + .../Generics/parserGenericsInTypeContexts2.ts | 1 + .../parserGenericsInVariableDeclaration1.ts | 1 + .../parserGreaterThanTokenAmbiguity1.ts | 1 + .../parserGreaterThanTokenAmbiguity10.ts | 1 + .../parserGreaterThanTokenAmbiguity11.ts | 1 + .../parserGreaterThanTokenAmbiguity12.ts | 1 + .../parserGreaterThanTokenAmbiguity13.ts | 1 + .../parserGreaterThanTokenAmbiguity14.ts | 1 + .../parserGreaterThanTokenAmbiguity15.ts | 1 + .../parserGreaterThanTokenAmbiguity16.ts | 1 + .../parserGreaterThanTokenAmbiguity17.ts | 1 + .../parserGreaterThanTokenAmbiguity18.ts | 1 + .../parserGreaterThanTokenAmbiguity19.ts | 1 + .../parserGreaterThanTokenAmbiguity2.ts | 1 + .../parserGreaterThanTokenAmbiguity20.ts | 1 + .../parserGreaterThanTokenAmbiguity3.ts | 1 + .../parserGreaterThanTokenAmbiguity4.ts | 1 + .../parserGreaterThanTokenAmbiguity5.ts | 1 + .../parserGreaterThanTokenAmbiguity6.ts | 1 + .../parserGreaterThanTokenAmbiguity7.ts | 1 + .../parserGreaterThanTokenAmbiguity8.ts | 1 + .../parserGreaterThanTokenAmbiguity9.ts | 1 + .../Generics/parserMemberAccessExpression1.ts | 1 + .../parserMemberAccessOffOfGenericType1.ts | 1 + .../Generics/parserObjectCreation1.ts | 1 + .../parserIndexMemberDeclaration1.ts | 1 + .../parserIndexMemberDeclaration10.ts | 1 + .../parserIndexMemberDeclaration2.ts | 1 + .../parserIndexMemberDeclaration3.ts | 1 + .../parserIndexMemberDeclaration4.ts | 1 + .../parserIndexMemberDeclaration5.ts | 1 + .../parserIndexMemberDeclaration6.ts | 1 + .../parserIndexMemberDeclaration7.ts | 1 + .../parserIndexMemberDeclaration8.ts | 1 + .../parserIndexMemberDeclaration9.ts | 1 + .../IndexSignatures/parserIndexSignature1.ts | 1 + .../IndexSignatures/parserIndexSignature10.ts | 1 + .../IndexSignatures/parserIndexSignature11.ts | 1 + .../IndexSignatures/parserIndexSignature2.ts | 1 + .../IndexSignatures/parserIndexSignature3.ts | 1 + .../IndexSignatures/parserIndexSignature4.ts | 1 + .../IndexSignatures/parserIndexSignature5.ts | 1 + .../IndexSignatures/parserIndexSignature6.ts | 1 + .../IndexSignatures/parserIndexSignature7.ts | 1 + .../IndexSignatures/parserIndexSignature8.ts | 1 + .../IndexSignatures/parserIndexSignature9.ts | 1 + .../parserInterfaceDeclaration1.ts | 1 + .../parserInterfaceDeclaration2.ts | 1 + .../parserInterfaceDeclaration3.ts | 1 + .../parserInterfaceDeclaration4.ts | 1 + .../parserInterfaceDeclaration5.ts | 1 + .../parserInterfaceDeclaration6.ts | 1 + .../parserInterfaceDeclaration7.ts | 1 + .../parserInterfaceDeclaration8.ts | 1 + .../parserInterfaceDeclaration9.ts | 1 + .../parserMemberFunctionDeclaration1.ts | 1 + .../parserMemberFunctionDeclaration2.ts | 1 + .../parserMemberFunctionDeclaration3.ts | 1 + .../parserMemberFunctionDeclaration4.ts | 1 + .../parserMemberFunctionDeclaration5.ts | 1 + ...erMemberFunctionDeclarationAmbiguities1.ts | 1 + .../parserMemberVariableDeclaration1.ts | 1 + .../parserMemberVariableDeclaration2.ts | 1 + .../parserMemberVariableDeclaration3.ts | 1 + .../parserMemberVariableDeclaration4.ts | 1 + .../parserMemberVariableDeclaration5.ts | 1 + .../parserMethodSignature1.ts | 1 + .../parserMethodSignature10.ts | 1 + .../parserMethodSignature11.ts | 1 + .../parserMethodSignature12.ts | 1 + .../parserMethodSignature2.ts | 1 + .../parserMethodSignature3.ts | 1 + .../parserMethodSignature4.ts | 1 + .../parserMethodSignature5.ts | 1 + .../parserMethodSignature6.ts | 1 + .../parserMethodSignature7.ts | 1 + .../parserMethodSignature8.ts | 1 + .../parserMethodSignature9.ts | 1 + .../MissingTokens/parserMissingToken1.ts | 1 + .../MissingTokens/parserMissingToken2.ts | 1 + .../ModuleDeclarations/parserModule1.ts | 1 + .../parserModuleDeclaration1.d.ts | 1 + .../parserModuleDeclaration1.ts | 1 + .../parserModuleDeclaration10.ts | 1 + .../parserModuleDeclaration11.ts | 1 + .../parserModuleDeclaration12.ts | 1 + .../parserModuleDeclaration2.d.ts | 1 + .../parserModuleDeclaration2.ts | 1 + .../parserModuleDeclaration3.d.ts | 1 + .../parserModuleDeclaration3.ts | 1 + .../parserModuleDeclaration4.d.ts | 1 + .../parserModuleDeclaration4.ts | 1 + .../parserModuleDeclaration5.ts | 1 + .../parserModuleDeclaration6.ts | 1 + .../parserModuleDeclaration7.ts | 1 + .../parserModuleDeclaration8.ts | 1 + .../parserModuleDeclaration9.ts | 1 + .../ObjectLiterals/parserObjectLiterals1.ts | 1 + .../ObjectTypes/parserObjectType1.ts | 1 + .../ObjectTypes/parserObjectType2.ts | 1 + .../ObjectTypes/parserObjectType3.ts | 1 + .../ObjectTypes/parserObjectType4.ts | 1 + .../ObjectTypes/parserObjectType5.ts | 1 + .../ObjectTypes/parserObjectType6.ts | 1 + .../ParameterLists/parserParameterList1.ts | 1 + .../ParameterLists/parserParameterList10.ts | 1 + .../ParameterLists/parserParameterList11.ts | 1 + .../ParameterLists/parserParameterList12.ts | 1 + .../ParameterLists/parserParameterList13.ts | 1 + .../ParameterLists/parserParameterList14.ts | 1 + .../ParameterLists/parserParameterList15.ts | 1 + .../ParameterLists/parserParameterList16.ts | 1 + .../ParameterLists/parserParameterList17.ts | 1 + .../ParameterLists/parserParameterList2.ts | 1 + .../ParameterLists/parserParameterList3.ts | 1 + .../ParameterLists/parserParameterList4.ts | 1 + .../ParameterLists/parserParameterList5.ts | 1 + .../ParameterLists/parserParameterList6.ts | 1 + .../ParameterLists/parserParameterList7.ts | 1 + .../ParameterLists/parserParameterList8.ts | 1 + .../ParameterLists/parserParameterList9.ts | 1 + .../parserFunctionPropertyAssignment1.ts | 1 + .../parserFunctionPropertyAssignment2.ts | 1 + .../parserFunctionPropertyAssignment3.ts | 1 + .../parserFunctionPropertyAssignment4.ts | 1 + .../parserPropertySignature1.ts | 1 + .../parserPropertySignature10.ts | 1 + .../parserPropertySignature11.ts | 1 + .../parserPropertySignature12.ts | 1 + .../parserPropertySignature2.ts | 1 + .../parserPropertySignature3.ts | 1 + .../parserPropertySignature4.ts | 1 + .../parserPropertySignature5.ts | 1 + .../parserPropertySignature6.ts | 1 + .../parserPropertySignature7.ts | 1 + .../parserPropertySignature8.ts | 1 + .../parserPropertySignature9.ts | 1 + .../ecmascript5/Protected/Protected1.ts | 1 + .../ecmascript5/Protected/Protected2.ts | 1 + .../ecmascript5/Protected/Protected3.ts | 1 + .../ecmascript5/Protected/Protected4.ts | 1 + .../ecmascript5/Protected/Protected5.ts | 1 + .../ecmascript5/Protected/Protected6.ts | 1 + .../ecmascript5/Protected/Protected7.ts | 1 + .../ecmascript5/Protected/Protected8.ts | 1 + .../ecmascript5/Protected/Protected9.ts | 1 + .../ecmascript5/RealWorld/parserharness.ts | 3 +- .../ecmascript5/RealWorld/parserindenter.ts | 3 +- .../RegressionTests/parser509534.ts | 1 + .../RegressionTests/parser509546.ts | 1 + .../RegressionTests/parser509546_1.ts | 1 + .../RegressionTests/parser509546_2.ts | 1 + .../RegressionTests/parser509618.ts | 1 + .../RegressionTests/parser509630.ts | 1 + .../RegressionTests/parser509667.ts | 1 + .../RegressionTests/parser509668.ts | 1 + .../RegressionTests/parser509669.ts | 1 + .../RegressionTests/parser509677.ts | 1 + .../RegressionTests/parser509693.ts | 1 + .../RegressionTests/parser509698.ts | 1 + .../RegressionTests/parser512084.ts | 1 + .../RegressionTests/parser512097.ts | 1 + .../RegressionTests/parser512325.ts | 1 + .../RegressionTests/parser519458.ts | 1 + .../RegressionTests/parser521128.ts | 1 + .../RegressionTests/parser536727.ts | 1 + .../RegressionTests/parser553699.ts | 1 + .../RegressionTests/parser566700.ts | 1 + .../RegressionTests/parser579071.ts | 1 + .../RegressionTests/parser585151.ts | 1 + .../RegressionTests/parser596700.ts | 1 + .../RegressionTests/parser618973.ts | 1 + .../RegressionTests/parser630933.ts | 1 + .../RegressionTests/parser642331.ts | 1 + .../RegressionTests/parser642331_1.ts | 1 + .../RegressionTests/parser643728.ts | 1 + .../RegressionTests/parser645086_1.ts | 1 + .../RegressionTests/parser645086_2.ts | 1 + .../RegressionTests/parser645086_3.ts | 1 + .../RegressionTests/parser645086_4.ts | 1 + .../RegressionTests/parser645484.ts | 1 + .../RegressionTests/parserNotHexLiteral1.ts | 1 + .../parserTernaryAndCommaOperators1.ts | 1 + ...parseRegularExpressionMixedWithComments.ts | 1 + .../parserRegularExpression1.ts | 1 + .../parserRegularExpression2.ts | 1 + .../parserRegularExpression3.ts | 1 + .../parserRegularExpression4.ts | 1 + .../parserRegularExpression5.ts | 1 + .../parserRegularExpression6.ts | 1 + ...parserRegularExpressionDivideAmbiguity1.ts | 1 + ...parserRegularExpressionDivideAmbiguity2.ts | 1 + ...parserRegularExpressionDivideAmbiguity3.ts | 1 + ...parserRegularExpressionDivideAmbiguity4.ts | 1 + ...parserRegularExpressionDivideAmbiguity5.ts | 1 + ...parserRegularExpressionDivideAmbiguity6.ts | 1 + ...parserRegularExpressionDivideAmbiguity7.ts | 1 + .../SkippedTokens/parserSkippedTokens1.ts | 1 + .../SkippedTokens/parserSkippedTokens10.ts | 1 + .../SkippedTokens/parserSkippedTokens11.ts | 1 + .../SkippedTokens/parserSkippedTokens12.ts | 1 + .../SkippedTokens/parserSkippedTokens13.ts | 1 + .../SkippedTokens/parserSkippedTokens14.ts | 1 + .../SkippedTokens/parserSkippedTokens15.ts | 1 + .../SkippedTokens/parserSkippedTokens16.ts | 1 + .../SkippedTokens/parserSkippedTokens17.ts | 1 + .../SkippedTokens/parserSkippedTokens18.ts | 1 + .../SkippedTokens/parserSkippedTokens19.ts | 1 + .../SkippedTokens/parserSkippedTokens2.ts | 1 + .../SkippedTokens/parserSkippedTokens20.ts | 1 + .../SkippedTokens/parserSkippedTokens3.ts | 1 + .../SkippedTokens/parserSkippedTokens4.ts | 1 + .../SkippedTokens/parserSkippedTokens5.ts | 1 + .../SkippedTokens/parserSkippedTokens6.ts | 1 + .../SkippedTokens/parserSkippedTokens7.ts | 1 + .../SkippedTokens/parserSkippedTokens8.ts | 1 + .../SkippedTokens/parserSkippedTokens9.ts | 1 + ...rser_breakInIterationOrSwitchStatement1.ts | 1 + ...rser_breakInIterationOrSwitchStatement2.ts | 1 + ...rser_breakInIterationOrSwitchStatement3.ts | 1 + ...rser_breakInIterationOrSwitchStatement4.ts | 1 + ...r_breakNotInIterationOrSwitchStatement1.ts | 1 + ...r_breakNotInIterationOrSwitchStatement2.ts | 1 + .../BreakStatements/parser_breakTarget1.ts | 1 + .../BreakStatements/parser_breakTarget2.ts | 1 + .../BreakStatements/parser_breakTarget3.ts | 1 + .../BreakStatements/parser_breakTarget4.ts | 1 + .../BreakStatements/parser_breakTarget5.ts | 1 + .../BreakStatements/parser_breakTarget6.ts | 1 + .../parser_continueInIterationStatement1.ts | 1 + .../parser_continueInIterationStatement2.ts | 1 + .../parser_continueInIterationStatement3.ts | 1 + .../parser_continueInIterationStatement4.ts | 1 + .../parser_continueLabel.ts | 1 + ...parser_continueNotInIterationStatement1.ts | 1 + ...parser_continueNotInIterationStatement2.ts | 1 + ...parser_continueNotInIterationStatement3.ts | 1 + ...parser_continueNotInIterationStatement4.ts | 1 + .../parser_continueTarget1.ts | 1 + .../parser_continueTarget2.ts | 1 + .../parser_continueTarget3.ts | 1 + .../parser_continueTarget4.ts | 1 + .../parser_continueTarget5.ts | 1 + .../parser_continueTarget6.ts | 1 + .../parser_duplicateLabel1.ts | 1 + .../parser_duplicateLabel2.ts | 1 + .../parser_duplicateLabel3.ts | 1 + .../parser_duplicateLabel4.ts | 1 + .../parserReturnStatement1.ts | 1 + .../parserReturnStatement2.ts | 1 + .../parserReturnStatement3.ts | 1 + .../parserReturnStatement4.js | 1 + .../parserReturnStatement4.ts | 1 + .../Statements/parserBlockStatement1.d.ts | 1 + .../Statements/parserBreakStatement1.d.ts | 1 + .../Statements/parserContinueStatement1.d.ts | 1 + .../Statements/parserDebuggerStatement1.d.ts | 1 + .../Statements/parserDoStatement1.d.ts | 1 + .../Statements/parserDoStatement2.ts | 1 + .../Statements/parserEmptyStatement1.d.ts | 1 + .../parserExpressionStatement1.d.ts | 1 + .../Statements/parserForInStatement1.d.ts | 1 + .../Statements/parserForInStatement2.ts | 1 + .../Statements/parserForInStatement3.ts | 1 + .../Statements/parserForInStatement4.ts | 1 + .../Statements/parserForInStatement5.ts | 1 + .../Statements/parserForInStatement6.ts | 1 + .../Statements/parserForInStatement7.ts | 1 + .../Statements/parserForInStatement8.ts | 1 + .../Statements/parserForStatement1.d.ts | 1 + .../Statements/parserForStatement2.ts | 1 + .../Statements/parserForStatement3.ts | 1 + .../Statements/parserForStatement4.ts | 1 + .../Statements/parserForStatement5.ts | 1 + .../Statements/parserForStatement6.ts | 1 + .../Statements/parserForStatement7.ts | 1 + .../Statements/parserForStatement8.ts | 1 + .../Statements/parserForStatement9.ts | 1 + .../Statements/parserIfStatement1.d.ts | 1 + .../Statements/parserIfStatement2.ts | 1 + .../Statements/parserLabeledStatement1.d.ts | 1 + .../Statements/parserReturnStatement1.d.ts | 1 + .../Statements/parserSwitchStatement1.d.ts | 1 + .../Statements/parserThrowStatement1.d.ts | 1 + .../Statements/parserTryStatement1.d.ts | 1 + .../Statements/parserVariableStatement1.d.ts | 1 + .../Statements/parserVariableStatement2.d.ts | 1 + .../Statements/parserWhileStatement1.d.ts | 1 + .../Statements/parserWithStatement1.d.ts | 1 + .../Statements/parserWithStatement2.ts | 1 + .../StrictMode/octalLiteralInStrictModeES3.ts | 3 +- .../StrictMode/parserStrictMode1.ts | 1 + .../StrictMode/parserStrictMode10.ts | 1 + .../StrictMode/parserStrictMode11.ts | 1 + .../StrictMode/parserStrictMode13.ts | 1 + .../StrictMode/parserStrictMode14.ts | 1 + .../StrictMode/parserStrictMode15-negative.ts | 1 + .../StrictMode/parserStrictMode15.ts | 1 + .../StrictMode/parserStrictMode16.ts | 1 + .../StrictMode/parserStrictMode2.ts | 1 + .../StrictMode/parserStrictMode3-negative.ts | 1 + .../StrictMode/parserStrictMode3.ts | 1 + .../StrictMode/parserStrictMode4.ts | 1 + .../StrictMode/parserStrictMode5.ts | 1 + .../StrictMode/parserStrictMode6-negative.ts | 1 + .../StrictMode/parserStrictMode6.ts | 1 + .../StrictMode/parserStrictMode7.ts | 1 + .../StrictMode/parserStrictMode8.ts | 1 + .../StrictMode/parserStrictMode9.ts | 1 + .../parserSuperExpression1.ts | 1 + .../parserSuperExpression2.ts | 1 + .../parserSuperExpression3.ts | 1 + .../parserSuperExpression4.ts | 1 + .../ecmascript5/TupleTypes/TupleType1.ts | 1 + .../ecmascript5/TupleTypes/TupleType2.ts | 1 + .../ecmascript5/TupleTypes/TupleType3.ts | 1 + .../ecmascript5/TupleTypes/TupleType4.ts | 1 + .../ecmascript5/TupleTypes/TupleType5.ts | 1 + .../ecmascript5/TupleTypes/TupleType6.ts | 1 + .../ecmascript5/Types/parserTypeQuery1.ts | 1 + .../ecmascript5/Types/parserTypeQuery2.ts | 1 + .../ecmascript5/Types/parserTypeQuery3.ts | 1 + .../ecmascript5/Types/parserTypeQuery4.ts | 1 + .../ecmascript5/Types/parserTypeQuery5.ts | 1 + .../ecmascript5/Types/parserTypeQuery6.ts | 1 + .../ecmascript5/Types/parserTypeQuery7.ts | 1 + .../ecmascript5/Types/parserTypeQuery8.ts | 1 + .../ecmascript5/Types/parserTypeQuery9.ts | 1 + .../parserVariableDeclaration1.ts | 1 + .../parserVariableDeclaration10.ts | 1 + .../parserVariableDeclaration11.ts | 1 + .../parserVariableDeclaration2.ts | 1 + .../parserVariableDeclaration3.ts | 1 + .../parserVariableDeclaration4.d.ts | 1 + .../parserVariableDeclaration4.ts | 1 + .../parserVariableDeclaration5.ts | 1 + .../parserVariableDeclaration6.ts | 1 + .../parserVariableDeclaration7.ts | 1 + .../parserVariableDeclaration8.ts | 1 + .../parserVariableDeclaration9.ts | 1 + .../parser/ecmascript5/parser10.1.1-8gs.ts | 1 + .../parser/ecmascript5/parser15.4.4.14-9-2.ts | 1 + .../ecmascript5/parserAdditiveExpression1.ts | 1 + .../parser/ecmascript5/parserArgumentList1.ts | 1 + .../parser/ecmascript5/parserAstSpans1.ts | 1 + .../ecmascript5/parserDebuggerStatement1.ts | 1 + .../ecmascript5/parserDebuggerStatement2.ts | 1 + .../parser/ecmascript5/parserEmptyFile1.ts | 1 + .../ecmascript5/parserEmptyStatement1.ts | 1 + .../parserExportAsFunctionIdentifier.ts | 1 + .../ecmascript5/parserImportDeclaration1.ts | 1 + .../parser/ecmascript5/parserInExpression1.ts | 1 + .../parserKeywordsAsIdentifierName1.ts | 1 + .../parserKeywordsAsIdentifierName2.ts | 1 + ...rserNoASIOnCallAfterFunctionExpression1.ts | 1 + .../parser/ecmascript5/parserNotRegex1.ts | 1 + .../parser/ecmascript5/parserNotRegex2.ts | 1 + .../parserObjectCreationArrayLiteral1.ts | 1 + .../parserObjectCreationArrayLiteral2.ts | 1 + .../parserObjectCreationArrayLiteral3.ts | 1 + .../parserObjectCreationArrayLiteral4.ts | 1 + .../ecmascript5/parserOptionalTypeMembers1.ts | 1 + .../ecmascript5/parserOverloadOnConstants1.ts | 1 + ...renthesizedVariableAndFunctionInTernary.ts | 1 + ...riableAndParenthesizedFunctionInTernary.ts | 1 + .../parser/ecmascript5/parserRealSource1.ts | 1 + .../parser/ecmascript5/parserRealSource10.ts | 1 + .../parser/ecmascript5/parserRealSource11.ts | 1 + .../parser/ecmascript5/parserRealSource12.ts | 1 + .../parser/ecmascript5/parserRealSource13.ts | 1 + .../parser/ecmascript5/parserRealSource14.ts | 1 + .../parser/ecmascript5/parserRealSource2.ts | 1 + .../parser/ecmascript5/parserRealSource3.ts | 1 + .../parser/ecmascript5/parserRealSource4.ts | 1 + .../parser/ecmascript5/parserRealSource5.ts | 1 + .../parser/ecmascript5/parserRealSource6.ts | 1 + .../parser/ecmascript5/parserRealSource7.ts | 1 + .../parser/ecmascript5/parserRealSource8.ts | 1 + .../parser/ecmascript5/parserRealSource9.ts | 1 + .../parser/ecmascript5/parserS12.11_A3_T4.ts | 1 + .../parser/ecmascript5/parserS7.2_A1.5_T2.ts | 3 +- .../parser/ecmascript5/parserS7.3_A1.1_T2.ts | 1 + .../ecmascript5/parserS7.6.1.1_A1.10.ts | 1 + .../parser/ecmascript5/parserS7.6_A4.2_T1.ts | 3 +- .../parser/ecmascript5/parserS7.9_A5.7_T1.ts | 1 + .../parser/ecmascript5/parserSbp_7.9_A9_T3.ts | 1 + .../parserSyntaxWalker.generated.ts | 3 +- .../parser/ecmascript5/parserUnicode1.ts | 1 + .../parser/ecmascript5/parserUnicode2.ts | 3 +- .../parser/ecmascript5/parserUnicode3.ts | 3 +- .../parserUnicodeWhitespaceCharacter1.ts | 1 + .../parserUsingConstructorAsIdentifier.ts | 1 + .../ecmascript5/parserVoidExpression1.ts | 1 + .../ecmascript5/parservoidInQualifiedName0.ts | 1 + .../ecmascript5/parservoidInQualifiedName1.ts | 1 + .../ecmascript5/parservoidInQualifiedName2.ts | 1 + .../parserShorthandPropertyAssignment1.ts | 1 + .../parserShorthandPropertyAssignment2.ts | 1 + .../parserShorthandPropertyAssignment3.ts | 1 + .../parserShorthandPropertyAssignment4.ts | 1 + .../parserShorthandPropertyAssignment5.ts | 1 + .../pedantic/noUncheckedIndexedAccess.ts | 1 + .../noUncheckedIndexedAccessDestructuring.ts | 1 + .../references/library-reference-1.ts | 1 + .../references/library-reference-10.ts | 1 + .../references/library-reference-11.ts | 1 + .../references/library-reference-12.ts | 1 + .../references/library-reference-13.ts | 1 + .../references/library-reference-14.ts | 1 + .../references/library-reference-15.ts | 1 + .../references/library-reference-2.ts | 1 + .../references/library-reference-3.ts | 1 + .../references/library-reference-4.ts | 1 + .../references/library-reference-5.ts | 1 + .../references/library-reference-6.ts | 1 + .../references/library-reference-7.ts | 1 + .../references/library-reference-8.ts | 1 + .../library-reference-scoped-packages.ts | 1 + ...atedThisPropertyInitializerDoesntNarrow.ts | 1 + .../salsa/assignmentToVoidZero1.ts | 1 + .../salsa/assignmentToVoidZero2.ts | 1 + ...derUninitializedModuleExportsAssignment.ts | 1 + .../salsa/chainedPrototypeAssignment.ts | 1 + .../salsa/checkSpecialPropertyAssignments.ts | 1 + .../circularMultipleAssignmentDeclaration.ts | 1 + .../classCanExtendConstructorFunction.ts | 1 + .../salsa/commonJSAliasedExport.ts | 1 + .../salsa/commonJSImportClassTypeReference.ts | 1 + .../commonJSImportExportedClassExpression.ts | 1 + .../commonJSImportNestedClassTypeReference.ts | 1 + .../conformance/salsa/commonJSReexport.ts | 1 + .../salsa/conflictingCommonJSES2015Exports.ts | 1 + .../constructorFunctionMergeWithClass.ts | 1 + ...constructorFunctionMethodTypeParameters.ts | 1 + .../conformance/salsa/constructorFunctions.ts | 1 + .../salsa/constructorFunctions2.ts | 1 + .../salsa/constructorFunctions3.ts | 1 + .../salsa/constructorFunctionsStrict.ts | 1 + .../salsa/contextualTypedSpecialAssignment.ts | 1 + ...faultPropertyAssignedClassWithPrototype.ts | 1 + .../conformance/salsa/enumMergeWithExpando.ts | 1 + .../cases/conformance/salsa/expandoOnAlias.ts | 1 + .../salsa/exportNestedNamespaces.ts | 1 + .../salsa/exportNestedNamespaces2.ts | 1 + .../exportPropertyAssignmentNameResolution.ts | 1 + ...lMergeWithCommonJSAssignmentDeclaration.ts | 1 + .../salsa/importAliasModuleExports.ts | 1 + .../salsa/importingExportingTypes.ts | 1 + .../conformance/salsa/inferingFromAny.ts | 1 + .../inferringClassMembersFromAssignments.ts | 1 + .../inferringClassMembersFromAssignments2.ts | 1 + .../inferringClassMembersFromAssignments3.ts | 1 + .../inferringClassMembersFromAssignments4.ts | 1 + .../inferringClassMembersFromAssignments5.ts | 1 + .../inferringClassMembersFromAssignments6.ts | 1 + .../inferringClassMembersFromAssignments7.ts | 1 + .../inferringClassMembersFromAssignments8.ts | 1 + ...erringClassStaticMembersFromAssignments.ts | 1 + .../salsa/jsContainerMergeJsContainer.ts | 1 + .../salsa/jsContainerMergeTsDeclaration.ts | 1 + .../salsa/jsContainerMergeTsDeclaration2.ts | 1 + .../salsa/jsContainerMergeTsDeclaration3.ts | 1 + .../salsa/jsObjectsMarkedAsOpenEnded.ts | 1 + .../jsdocConstructorFunctionTypeReference.ts | 1 + .../cases/conformance/salsa/malformedTags.ts | 1 + .../conformance/salsa/methodsReturningThis.ts | 1 + ...pertyElementAccessAssignmentDeclaration.ts | 1 + .../conformance/salsa/moduleExportAlias.ts | 16 +- .../conformance/salsa/moduleExportAlias2.ts | 1 + .../conformance/salsa/moduleExportAlias3.ts | 1 + .../conformance/salsa/moduleExportAlias4.ts | 1 + .../conformance/salsa/moduleExportAlias5.ts | 1 + ...oduleExportAliasElementAccessExpression.ts | 1 + .../salsa/moduleExportAliasExports.ts | 1 + .../salsa/moduleExportAliasUnknown.ts | 1 + .../salsa/moduleExportAssignment.ts | 1 + .../salsa/moduleExportAssignment2.ts | 1 + .../salsa/moduleExportAssignment3.ts | 1 + .../salsa/moduleExportAssignment4.ts | 1 + .../salsa/moduleExportAssignment5.ts | 1 + .../salsa/moduleExportAssignment6.ts | 1 + .../salsa/moduleExportAssignment7.ts | 1 + .../salsa/moduleExportDuplicateAlias.ts | 1 + .../salsa/moduleExportDuplicateAlias2.ts | 1 + .../salsa/moduleExportDuplicateAlias3.ts | 1 + .../salsa/moduleExportNestedNamespaces.ts | 1 + .../moduleExportPropertyAssignmentDefault.ts | 1 + ...oduleExportWithExportPropertyAssignment.ts | 1 + ...duleExportWithExportPropertyAssignment2.ts | 1 + ...duleExportWithExportPropertyAssignment3.ts | 1 + ...duleExportWithExportPropertyAssignment4.ts | 1 + .../salsa/moduleExportsAliasLoop1.ts | 1 + .../salsa/moduleExportsAliasLoop2.ts | 1 + .../conformance/salsa/multipleDeclarations.ts | 1 + .../namespaceAssignmentToRequireAlias.ts | 1 + .../salsa/nestedDestructuringOfRequire.ts | 1 + .../salsa/nestedPrototypeAssignment.ts | 1 + .../conformance/salsa/plainJSRedeclare.ts | 1 + .../conformance/salsa/plainJSRedeclare2.ts | 1 + .../conformance/salsa/plainJSRedeclare3.ts | 1 + .../salsa/privateConstructorFunction.ts | 1 + .../salsa/privateIdentifierExpando.ts | 1 + ...propertiesOfGenericConstructorFunctions.ts | 1 + .../propertyAssignmentOnImportedSymbol.ts | 1 + ...propertyAssignmentOnParenthesizedNumber.ts | 1 + ...rtyAssignmentOnUnresolvedImportedSymbol.ts | 1 + .../salsa/propertyAssignmentUseParentType1.ts | 1 + .../salsa/propertyAssignmentUseParentType2.ts | 1 + .../salsa/propertyAssignmentUseParentType3.ts | 1 + ...otypePropertyAssignmentMergeAcrossFiles.ts | 1 + ...typePropertyAssignmentMergeAcrossFiles2.ts | 1 + ...pertyAssignmentMergeWithInterfaceMethod.ts | 1 + ...pePropertyAssignmentMergedTypeReference.ts | 1 + .../conformance/salsa/reExportJsFromTs.ts | 1 + .../salsa/requireAssertsFromTypescript.ts | 1 + .../salsa/requireOfESWithPropertyAccess.ts | 1 + .../salsa/requireTwoPropertyAccesses.ts | 1 + .../salsa/sourceFileMergeWithFunction.ts | 1 + .../conformance/salsa/spellingUncheckedJS.ts | 1 + .../salsa/thisPropertyAssignment.ts | 1 + .../salsa/thisPropertyAssignmentCircular.ts | 1 + .../salsa/thisPropertyAssignmentComputed.ts | 1 + .../salsa/thisPropertyAssignmentInherited.ts | 1 + .../salsa/thisTypeOfConstructorFunctions.ts | 1 + .../salsa/topLevelThisAssignment.ts | 1 + .../salsa/typeFromContextualThisType.ts | 1 + .../salsa/typeFromJSConstructor.ts | 1 + .../salsa/typeFromJSInitializer.ts | 1 + .../salsa/typeFromJSInitializer2.ts | 1 + .../salsa/typeFromJSInitializer3.ts | 1 + .../salsa/typeFromJSInitializer4.ts | 1 + .../salsa/typeFromParamTagForFunction.ts | 1 + .../salsa/typeFromPropertyAssignment.ts | 1 + .../salsa/typeFromPropertyAssignment14.ts | 1 + .../salsa/typeFromPropertyAssignment15.ts | 1 + .../salsa/typeFromPropertyAssignment16.ts | 1 + .../salsa/typeFromPropertyAssignment17.ts | 1 + .../salsa/typeFromPropertyAssignment18.ts | 1 + .../salsa/typeFromPropertyAssignment19.ts | 1 + .../salsa/typeFromPropertyAssignment2.ts | 1 + .../salsa/typeFromPropertyAssignment20.ts | 1 + .../salsa/typeFromPropertyAssignment21.ts | 1 + .../salsa/typeFromPropertyAssignment22.ts | 1 + .../salsa/typeFromPropertyAssignment23.ts | 1 + .../salsa/typeFromPropertyAssignment24.ts | 1 + .../salsa/typeFromPropertyAssignment25.ts | 1 + .../salsa/typeFromPropertyAssignment26.ts | 1 + .../salsa/typeFromPropertyAssignment27.ts | 1 + .../salsa/typeFromPropertyAssignment28.ts | 1 + .../salsa/typeFromPropertyAssignment29.ts | 1 + .../salsa/typeFromPropertyAssignment3.ts | 1 + .../salsa/typeFromPropertyAssignment30.ts | 1 + .../salsa/typeFromPropertyAssignment31.ts | 1 + .../salsa/typeFromPropertyAssignment32.ts | 1 + .../salsa/typeFromPropertyAssignment33.ts | 1 + .../salsa/typeFromPropertyAssignment34.ts | 1 + .../salsa/typeFromPropertyAssignment35.ts | 1 + .../salsa/typeFromPropertyAssignment36.ts | 1 + .../salsa/typeFromPropertyAssignment37.ts | 1 + .../salsa/typeFromPropertyAssignment38.ts | 1 + .../salsa/typeFromPropertyAssignment39.ts | 1 + .../salsa/typeFromPropertyAssignment4.ts | 1 + .../salsa/typeFromPropertyAssignment40.ts | 1 + .../typeFromPropertyAssignmentWithExport.ts | 1 + .../salsa/typeFromPrototypeAssignment.ts | 1 + .../salsa/typeFromPrototypeAssignment2.ts | 1 + .../salsa/typeFromPrototypeAssignment3.ts | 1 + .../salsa/typeFromPrototypeAssignment4.ts | 1 + .../conformance/salsa/typeLookupInIIFE.ts | 1 + .../typeTagOnFunctionReferencesGeneric.ts | 1 + .../salsa/unannotatedParametersAreOptional.ts | 1 + .../salsa/varRequireFromJavascript.ts | 1 + .../salsa/varRequireFromTypescript.ts | 1 + .../ecmascript3/scannerES3NumericLiteral1.ts | 1 + .../ecmascript3/scannerES3NumericLiteral2.ts | 1 + .../ecmascript3/scannerES3NumericLiteral3.ts | 1 + .../ecmascript3/scannerES3NumericLiteral4.ts | 1 + .../ecmascript3/scannerES3NumericLiteral5.ts | 1 + .../ecmascript3/scannerES3NumericLiteral6.ts | 1 + .../ecmascript3/scannerES3NumericLiteral7.ts | 1 + .../scanner/ecmascript5/scanner10.1.1-8gs.ts | 1 + .../ecmascript5/scannerAdditiveExpression1.ts | 1 + .../scanner/ecmascript5/scannerClass2.ts | 1 + .../scanner/ecmascript5/scannerEnum1.ts | 1 + .../ecmascript5/scannerImportDeclaration1.ts | 1 + .../scannerNonAsciiHorizontalWhitespace.ts | 1 + .../ecmascript5/scannerS7.2_A1.5_T2.ts | 3 +- .../ecmascript5/scannerS7.3_A1.1_T2.ts | 1 + .../scanner/ecmascript5/scannerS7.4_A2_T2.ts | 1 + .../ecmascript5/scannerS7.6_A4.2_T1.ts | 3 +- .../ecmascript5/scannerS7.8.3_A6.1_T1.ts | 1 + .../ecmascript5/scannerS7.8.4_A7.1_T4.ts | 1 + ...ringLiteralWithContainingNullCharacter1.ts | Bin 6 -> 25 bytes .../ecmascript5/scannerStringLiterals.ts | 1 + .../scannerUnexpectedNullCharacter1.ts | Bin 10 -> 29 bytes .../scannerUnicodeEscapeInKeyword1.ts | 1 + .../scanner/ecmascript5/scannertest1.ts | 1 + .../conformance/scanner/jsdocInvalidTokens.ts | 1 + .../everyTypeWithAnnotationAndInitializer.ts | 1 + ...TypeWithAnnotationAndInvalidInitializer.ts | 1 + .../everyTypeWithInitializer.ts | 1 + .../invalidMultipleVariableDeclarations.ts | 1 + .../recursiveInitializer.ts | 1 + .../validMultipleVariableDeclarations.ts | 1 + .../breakStatements/doWhileBreakStatements.ts | 1 + .../breakStatements/forBreakStatements.ts | 1 + .../breakStatements/forInBreakStatements.ts | 1 + .../invalidDoWhileBreakStatements.ts | 1 + .../invalidForBreakStatements.ts | 1 + .../invalidForInBreakStatements.ts | 1 + .../invalidSwitchBreakStatement.ts | 1 + .../invalidWhileBreakStatements.ts | 1 + .../breakStatements/switchBreakStatements.ts | 1 + .../breakStatements/whileBreakStatements.ts | 1 + .../doWhileContinueStatements.ts | 1 + .../forContinueStatements.ts | 1 + .../forInContinueStatements.ts | 1 + .../invalidDoWhileContinueStatements.ts | 1 + .../invalidForContinueStatements.ts | 1 + .../invalidForInContinueStatements.ts | 1 + .../invalidSwitchContinueStatement.ts | 1 + .../invalidWhileContinueStatements.ts | 1 + .../whileContinueStatements.ts | 1 + .../for-inStatements/for-inStatements.ts | 1 + .../for-inStatements/for-inStatementsArray.ts | 1 + .../for-inStatementsArrayErrors.ts | 1 + .../for-inStatementsDestructuring.ts | 1 + .../for-inStatementsDestructuring2.ts | 1 + .../for-inStatementsDestructuring3.ts | 1 + .../for-inStatementsDestructuring4.ts | 1 + .../for-inStatementsInvalid.ts | 1 + .../statements/for-ofStatements/ES5For-of1.ts | 1 + .../for-ofStatements/ES5For-of10.ts | 1 + .../for-ofStatements/ES5For-of11.ts | 1 + .../for-ofStatements/ES5For-of12.ts | 1 + .../for-ofStatements/ES5For-of13.ts | 1 + .../for-ofStatements/ES5For-of14.ts | 1 + .../for-ofStatements/ES5For-of15.ts | 1 + .../for-ofStatements/ES5For-of16.ts | 1 + .../for-ofStatements/ES5For-of17.ts | 1 + .../for-ofStatements/ES5For-of18.ts | 1 + .../for-ofStatements/ES5For-of19.ts | 1 + .../statements/for-ofStatements/ES5For-of2.ts | 1 + .../for-ofStatements/ES5For-of20.ts | 1 + .../for-ofStatements/ES5For-of21.ts | 1 + .../for-ofStatements/ES5For-of22.ts | 1 + .../for-ofStatements/ES5For-of23.ts | 1 + .../for-ofStatements/ES5For-of24.ts | 1 + .../for-ofStatements/ES5For-of25.ts | 1 + .../for-ofStatements/ES5For-of26.ts | 1 + .../for-ofStatements/ES5For-of27.ts | 1 + .../for-ofStatements/ES5For-of28.ts | 1 + .../for-ofStatements/ES5For-of29.ts | 1 + .../statements/for-ofStatements/ES5For-of3.ts | 1 + .../for-ofStatements/ES5For-of30.ts | 1 + .../for-ofStatements/ES5For-of31.ts | 1 + .../for-ofStatements/ES5For-of33.ts | 1 + .../for-ofStatements/ES5For-of34.ts | 1 + .../for-ofStatements/ES5For-of35.ts | 1 + .../for-ofStatements/ES5For-of36.ts | 1 + .../for-ofStatements/ES5For-of37.ts | 1 + .../statements/for-ofStatements/ES5For-of4.ts | 1 + .../statements/for-ofStatements/ES5For-of5.ts | 1 + .../statements/for-ofStatements/ES5For-of6.ts | 1 + .../statements/for-ofStatements/ES5For-of7.ts | 1 + .../statements/for-ofStatements/ES5For-of8.ts | 1 + .../statements/for-ofStatements/ES5For-of9.ts | 1 + .../statements/forStatements/forStatements.ts | 1 + .../forStatementsMultipleInvalidDecl.ts | 1 + .../forStatementsMultipleValidDecl.ts | 1 + .../ifDoWhileStatements.ts | 1 + ...beledStatementExportDeclarationNoCrash1.ts | 1 + .../labeledStatementWithLabel.ts | 1 + .../invalidReturnStatements.ts | 1 + .../returnStatements/returnStatements.ts | 1 + .../switchStatements/switchStatements.ts | 1 + .../throwStatements/invalidThrowStatement.ts | 1 + .../throwInEnclosingStatements.ts | 1 + .../throwStatements/throwStatements.ts | 1 + .../catchClauseWithTypeAnnotation.ts | 1 + .../tryStatements/invalidTryStatements.ts | 1 + .../statements/tryStatements/tryStatements.ts | 1 + .../withStatements/withStatements.ts | 1 + .../conformance/types/any/anyAsConstructor.ts | 1 + .../types/any/anyAsFunctionCall.ts | 1 + .../types/any/anyAsGenericFunctionCall.ts | 1 + .../types/any/anyPropertyAccess.ts | 1 + .../types/any/assignAnyToEveryType.ts | 1 + .../types/any/assignEveryTypeToAny.ts | 1 + .../narrowExceptionVariableInCatchClause.ts | 1 + .../types/any/narrowFromAnyWithInstanceof.ts | 1 + .../any/narrowFromAnyWithTypePredicate.ts | 1 + .../types/conditional/conditionalTypes1.ts | 1 + .../types/conditional/conditionalTypes2.ts | 1 + .../conditionalTypesExcessProperties.ts | 1 + .../types/conditional/inferTypes1.ts | 1 + .../types/conditional/inferTypes2.ts | 1 + .../inferTypesInvalidExtendsDeclaration.ts | 1 + .../conditional/inferTypesWithExtends1.ts | 1 + .../conditional/inferTypesWithExtends2.ts | 1 + ...ypesWithExtendsDependingOnTypeVariables.ts | 1 + .../conformance/types/conditional/variance.ts | 1 + .../contextuallyTypeCommaOperator01.ts | 1 + .../contextuallyTypeCommaOperator02.ts | 1 + .../contextuallyTypeCommaOperator03.ts | 1 + ...lyTypedStringLiteralsInJsxAttributes01.tsx | 3 +- ...lyTypedStringLiteralsInJsxAttributes02.tsx | 3 +- .../contextuallyTypeLogicalAnd01.ts | 1 + .../contextuallyTypeLogicalAnd02.ts | 1 + .../contextuallyTypeLogicalAnd03.ts | 1 + .../contextuallyTypedBindingInitializer.ts | 1 + ...extuallyTypedBindingInitializerNegative.ts | 1 + ...TypedClassExpressionMethodDeclaration01.ts | 1 + ...TypedClassExpressionMethodDeclaration02.ts | 1 + ...lyTypedObjectLiteralMethodDeclaration01.ts | 1 + ...artiallyAnnotatedFunctionInferenceError.ts | 1 + ...tatedFunctionInferenceWithTypeParameter.ts | 1 + ...llyAnnotatedFunctionWitoutTypeParameter.ts | 1 + .../types/import/importTypeAmbient.ts | 1 + .../types/import/importTypeAmbientMissing.ts | 1 + .../import/importTypeAmdBundleRewrite.ts | 1 + .../types/import/importTypeGenericTypes.ts | 2 + .../types/import/importTypeLocal.ts | 2 + .../types/import/importTypeLocalMissing.ts | 2 + .../types/import/importWithTypeArguments.ts | 1 + .../intersection/commonTypeIntersection.ts | 1 + .../contextualIntersectionType.ts | 1 + .../intersection/intersectionAndUnionTypes.ts | 3 +- .../intersectionAsWeakTypeSource.ts | 1 + ...tersectionMemberOfUnionNarrowsCorrectly.ts | 1 + .../intersection/intersectionNarrowing.ts | 1 + .../intersectionOfUnionNarrowing.ts | 1 + .../intersectionOfUnionOfUnitTypes.ts | 1 + .../intersection/intersectionReduction.ts | 1 + .../intersectionReductionStrict.ts | 1 + .../intersection/intersectionThisTypes.ts | 1 + .../intersectionTypeAssignment.ts | 1 + .../intersectionTypeEquivalence.ts | 3 +- .../intersection/intersectionTypeInference.ts | 1 + .../intersectionTypeInference2.ts | 1 + .../intersection/intersectionTypeMembers.ts | 3 +- .../intersectionTypeOverloading.ts | 1 + .../intersection/intersectionTypeReadonly.ts | 1 + .../intersectionWithIndexSignatures.ts | 1 + .../intersectionWithUnionConstraint.ts | 1 + .../operatorsAndIntersectionTypes.ts | 1 + .../recursiveIntersectionTypes.ts | 3 +- .../keyof/circularIndexedAccessErrors.ts | 1 + .../conformance/types/keyof/keyofAndForIn.ts | 1 + .../types/keyof/keyofAndIndexedAccess.ts | 1 + .../keyof/keyofAndIndexedAccessErrors.ts | 1 + .../types/keyof/keyofIntersection.ts | 1 + .../types/literal/booleanLiteralTypes1.ts | 1 + .../types/literal/booleanLiteralTypes2.ts | 1 + .../types/literal/enumLiteralTypes1.ts | 1 + .../types/literal/enumLiteralTypes2.ts | 1 + .../types/literal/enumLiteralTypes3.ts | 1 + .../types/literal/literalTypeWidening.ts | 1 + .../types/literal/literalTypes1.ts | 1 + .../types/literal/literalTypes2.ts | 1 + .../types/literal/literalTypes3.ts | 1 + .../literal/literalTypesAndDestructuring.ts | 1 + .../literal/literalTypesAndTypeAssertions.ts | 1 + .../literalTypesWidenInParameterPosition.ts | 1 + .../types/literal/numericLiteralTypes1.ts | 1 + .../types/literal/numericLiteralTypes2.ts | 1 + .../types/literal/numericLiteralTypes3.ts | 1 + .../literal/numericStringLiteralTypes.ts | 1 + .../types/literal/stringEnumLiteralTypes1.ts | 1 + .../types/literal/stringEnumLiteralTypes2.ts | 1 + .../types/literal/stringEnumLiteralTypes3.ts | 1 + ...teralsAssertionsInEqualityComparisons01.ts | 3 +- ...teralsAssertionsInEqualityComparisons02.ts | 3 +- .../stringLiteralsAssignedToStringMappings.ts | 1 + .../stringLiteralsWithEqualityChecks01.ts | 3 +- .../stringLiteralsWithEqualityChecks02.ts | 3 +- .../stringLiteralsWithEqualityChecks03.ts | 3 +- .../stringLiteralsWithEqualityChecks04.ts | 3 +- .../stringLiteralsWithSwitchStatements01.ts | 3 +- .../stringLiteralsWithSwitchStatements02.ts | 3 +- .../stringLiteralsWithSwitchStatements03.ts | 3 +- .../stringLiteralsWithSwitchStatements04.ts | 3 +- .../stringLiteralsWithTypeAssertions01.ts | 3 +- ...stringMappingDeferralInConditionalTypes.ts | 1 + .../stringMappingOverPatternLiterals.ts | 1 + .../types/literal/stringMappingReduction.ts | 1 + .../types/literal/templateLiteralTypes1.ts | 1 + .../types/literal/templateLiteralTypes2.ts | 1 + .../types/literal/templateLiteralTypes3.ts | 1 + .../types/literal/templateLiteralTypes8.ts | 1 + .../literal/templateLiteralTypesPatterns.ts | 1 + ...lTypesPatternsPrefixSuffixAssignability.ts | 1 + .../types/localTypes/localTypes2.ts | 1 + .../types/localTypes/localTypes3.ts | 1 + .../types/localTypes/localTypes4.ts | 1 + .../types/localTypes/localTypes5.ts | 1 + .../mapped/isomorphicMappedTypeInference.ts | 1 + .../mappedTypeAsClauseRecursiveNoCrash1.ts | 1 + .../mapped/mappedTypeAsClauseRelationships.ts | 1 + .../types/mapped/mappedTypeAsClauses.ts | 1 + .../types/mapped/mappedTypeConstraints.ts | 1 + .../types/mapped/mappedTypeErrors.ts | 1 + .../types/mapped/mappedTypeErrors2.ts | 1 + .../mappedTypeIndexSignatureModifiers.ts | 1 + .../types/mapped/mappedTypeInferenceErrors.ts | 1 + .../types/mapped/mappedTypeModifiers.ts | 1 + .../mappedTypeOverlappingStringEnumKeys.ts | 1 + .../types/mapped/mappedTypeProperties.ts | 1 + .../types/mapped/mappedTypeRelationships.ts | 1 + .../types/mapped/mappedTypeWithAny.ts | 1 + .../conformance/types/mapped/mappedTypes1.ts | 1 + .../conformance/types/mapped/mappedTypes2.ts | 1 + .../conformance/types/mapped/mappedTypes3.ts | 1 + .../conformance/types/mapped/mappedTypes4.ts | 1 + .../conformance/types/mapped/mappedTypes5.ts | 1 + .../conformance/types/mapped/mappedTypes6.ts | 1 + .../types/mapped/mappedTypesAndObjects.ts | 1 + .../types/mapped/mappedTypesArraysTuples.ts | 1 + .../types/mapped/mappedTypesGenericTuples.ts | 1 + .../types/mapped/mappedTypesGenericTuples2.ts | 1 + .../types/mapped/recursiveMappedTypes.ts | 1 + ...entedTypeAssignmentCompatIndexSignature.ts | 1 + ...ugmentedTypeBracketAccessIndexSignature.ts | 1 + .../types/members/classWithPrivateProperty.ts | 1 + .../members/classWithProtectedProperty.ts | 1 + .../types/members/classWithPublicProperty.ts | 1 + .../types/members/duplicateNumericIndexers.ts | 1 + .../types/members/duplicatePropertyNames.ts | 1 + .../types/members/duplicateStringIndexers.ts | 1 + ...objectTypeHidingMembersOfExtendedObject.ts | 1 + .../objectTypeHidingMembersOfObject.ts | 1 + ...peHidingMembersOfObjectAssignmentCompat.ts | 1 + ...eHidingMembersOfObjectAssignmentCompat2.ts | 1 + .../types/members/objectTypePropertyAccess.ts | 1 + ...ithCallSignatureAppearsToBeFunctionType.ts | 1 + ...ignatureHidingMembersOfExtendedFunction.ts | 1 + ...ithCallSignatureHidingMembersOfFunction.ts | 1 + ...HidingMembersOfFunctionAssignmentCompat.ts | 1 + ...nstructSignatureAppearsToBeFunctionType.ts | 1 + ...ignatureHidingMembersOfExtendedFunction.ts | 1 + ...nstructSignatureHidingMembersOfFunction.ts | 1 + ...HidingMembersOfFunctionAssignmentCompat.ts | 1 + .../objectTypeWithDuplicateNumericProperty.ts | 1 + .../members/objectTypeWithNumericProperty.ts | 1 + ...eWithStringAndNumberIndexSignatureToAny.ts | 1 + ...ypeWithStringIndexerHidingObjectIndexer.ts | 1 + ...hStringNamedPropertyOfIllegalCharacters.ts | 1 + .../members/typesWithOptionalProperty.ts | 1 + .../members/typesWithPrivateConstructor.ts | 1 + .../members/typesWithProtectedConstructor.ts | 1 + .../members/typesWithPublicConstructor.ts | 1 + .../typesWithSpecializedCallSignatures.ts | 1 + ...typesWithSpecializedConstructSignatures.ts | 1 + .../namedTypes/classWithOptionalParameter.ts | 1 + ...cInstantiationEquivalentToObjectLiteral.ts | 1 + .../namedTypes/interfaceWithPrivateMember.ts | 1 + .../types/namedTypes/optionalMethods.ts | 1 + .../never/neverIntersectionNotCallable.ts | 1 + .../conformance/types/never/neverType.ts | 1 + .../types/never/neverTypeErrors1.ts | 1 + .../types/never/neverTypeErrors2.ts | 1 + .../types/never/neverUnionIntersection.ts | 1 + .../assignObjectToNonPrimitive.ts | 1 + .../nonPrimitiveAccessProperty.ts | 1 + .../nonPrimitiveAndEmptyObject.ts | 1 + .../nonPrimitiveAndTypeVariables.ts | 1 + .../nonPrimitive/nonPrimitiveAsProperty.ts | 1 + .../nonPrimitive/nonPrimitiveAssignError.ts | 1 + ...nonPrimitiveConstraintOfIndexAccessType.ts | 1 + .../nonPrimitive/nonPrimitiveInFunction.ts | 1 + .../nonPrimitive/nonPrimitiveInGeneric.ts | 1 + .../nonPrimitiveIndexingWithForIn.ts | 1 + ...PrimitiveIndexingWithForInNoImplicitAny.ts | 1 + ...nPrimitiveIndexingWithForInSupressError.ts | 1 + .../types/nonPrimitive/nonPrimitiveNarrow.ts | 1 + .../nonPrimitiveRhsSideOfInExpression.ts | 1 + .../nonPrimitive/nonPrimitiveStrictNull.ts | 1 + .../nonPrimitiveUnionIntersection.ts | 1 + ...tureWithOptionalParameterAndInitializer.ts | 1 + .../callSignatureWithoutAnnotationsOrBody.ts | 1 + ...ureWithoutReturnTypeAnnotationInference.ts | 1 + ...allSignaturesThatDifferOnlyByReturnType.ts | 1 + ...llSignaturesThatDifferOnlyByReturnType2.ts | 1 + ...llSignaturesThatDifferOnlyByReturnType3.ts | 1 + ...sWithAccessibilityModifiersOnParameters.ts | 1 + .../callSignaturesWithDuplicateParameters.ts | 1 + .../callSignaturesWithOptionalParameters.ts | 1 + .../callSignaturesWithOptionalParameters2.ts | 1 + ...callSignaturesWithParameterInitializers.ts | 1 + ...allSignaturesWithParameterInitializers2.ts | 1 + ...eWithAccessibilityModifiersOnParameters.ts | 1 + ...WithAccessibilityModifiersOnParameters2.ts | 1 + .../callSignatures/identicalCallSignatures.ts | 1 + .../identicalCallSignatures2.ts | 1 + .../identicalCallSignatures3.ts | 1 + .../parametersWithNoAnnotationAreAny.ts | 1 + ...estParameterWithoutAnnotationIsAnyArray.ts | 1 + .../restParametersOfNonArrayTypes.ts | 1 + .../restParametersOfNonArrayTypes2.ts | 1 + .../restParametersWithArrayTypeAnnotations.ts | 1 + ...reIsNotSubtypeOfNonSpecializedSignature.ts | 1 + ...atureIsSubtypeOfNonSpecializedSignature.ts | 1 + .../specializedSignatureWithOptional.ts | 1 + ...gLiteralTypesInImplementationSignatures.ts | 1 + ...LiteralTypesInImplementationSignatures2.ts | 1 + .../typeParameterAsTypeArgument.ts | 1 + ...eParameterUsedAsTypeParameterConstraint.ts | 1 + ...ParameterUsedAsTypeParameterConstraint2.ts | 1 + ...ParameterUsedAsTypeParameterConstraint3.ts | 1 + ...ParameterUsedAsTypeParameterConstraint4.ts | 1 + ...nstructSignaturesWithIdenticalOverloads.ts | 1 + .../constructSignaturesWithOverloads.ts | 1 + .../constructSignaturesWithOverloads2.ts | 1 + ...WithOverloadsThatDifferOnlyByReturnType.ts | 1 + .../multipleNumericIndexers.ts | 1 + .../indexSignatures/multipleStringIndexers.ts | 1 + ...icIndexerConstrainsPropertyDeclarations.ts | 1 + ...cIndexerConstrainsPropertyDeclarations2.ts | 1 + .../indexSignatures/numericIndexingResults.ts | 1 + ...ngIndexerConstrainsPropertyDeclarations.ts | 1 + ...gIndexerConstrainsPropertyDeclarations2.ts | 1 + .../indexSignatures/stringIndexingResults.ts | 1 + .../methodSignatures/functionLiterals.ts | 1 + .../methodSignaturesWithOverloads.ts | 1 + .../methodSignaturesWithOverloads2.ts | 1 + .../objectTypesWithOptionalProperties.ts | 1 + .../objectTypesWithOptionalProperties2.ts | 1 + .../objectTypeLiteralSyntax.ts | 1 + .../objectTypeLiteralSyntax2.ts | 1 + .../numericNamedPropertyDuplicates.ts | 1 + .../numericStringNamedPropertyEquivalence.ts | 1 + .../propertyNameWithoutTypeAnnotation.ts | 1 + .../propertyNamesOfReservedWords.ts | 1 + .../stringNamedPropertyAccess.ts | 1 + .../stringNamedPropertyDuplicates.ts | 1 + .../boolean/assignFromBooleanInterface.ts | 1 + .../boolean/assignFromBooleanInterface2.ts | 1 + .../boolean/boolInsteadOfBoolean.ts | 1 + .../boolean/booleanPropertyAccess.ts | 1 + .../boolean/extendBooleanInterface.ts | 1 + .../boolean/invalidBooleanAssignments.ts | 1 + .../boolean/validBooleanAssignments.ts | 1 + .../primitives/enum/invalidEnumAssignments.ts | 1 + .../primitives/enum/validEnumAssignments.ts | 1 + .../primitives/null/directReferenceToNull.ts | 1 + .../primitives/null/validNullAssignments.ts | 1 + .../number/assignFromNumberInterface.ts | 1 + .../number/assignFromNumberInterface2.ts | 1 + .../number/extendNumberInterface.ts | 1 + .../number/invalidNumberAssignments.ts | 1 + .../primitives/number/numberPropertyAccess.ts | 1 + .../number/validNumberAssignments.ts | 1 + .../string/assignFromStringInterface.ts | 1 + .../string/assignFromStringInterface2.ts | 1 + .../string/extendStringInterface.ts | 1 + .../string/invalidStringAssignments.ts | 1 + .../primitives/string/stringPropertyAccess.ts | 1 + .../string/stringPropertyAccessWithError.ts | 1 + .../string/validStringAssignments.ts | 1 + .../stringLiteral/stringLiteralType.ts | 1 + .../undefined/directReferenceToUndefined.ts | 1 + .../undefined/invalidUndefinedAssignments.ts | 1 + .../undefined/invalidUndefinedValues.ts | 1 + .../undefined/validUndefinedAssignments.ts | 1 + .../undefined/validUndefinedValues.ts | 1 + .../void/invalidAssignmentsToVoid.ts | 1 + .../primitives/void/invalidVoidAssignments.ts | 1 + .../primitives/void/invalidVoidValues.ts | 1 + .../primitives/void/validVoidAssignments.ts | 1 + .../types/primitives/void/validVoidValues.ts | 1 + .../types/rest/genericRestArity.ts | 1 + .../types/rest/genericRestArityStrict.ts | 1 + .../types/rest/genericRestParameters1.ts | 1 + .../types/rest/genericRestParameters2.ts | 1 + .../types/rest/genericRestParameters3.ts | 1 + .../types/rest/objectRestCatchES5.ts | 1 + .../types/rest/objectRestNegative.ts | 1 + .../rest/objectRestPropertyMustBeLast.ts | 1 + .../types/rest/objectRestReadonly.ts | 1 + .../types/rest/restElementMustBeLast.ts | 1 + .../rest/restTuplesFromContextualTypes.ts | 1 + .../objectTypesWithPredefinedTypesAsName.ts | 1 + .../objectTypesWithPredefinedTypesAsName2.ts | 1 + .../typeLiterals/arrayLiteral.ts | 1 + .../typeLiterals/arrayOfFunctionTypes3.ts | 1 + .../typeLiterals/arrayTypeOfFunctionTypes.ts | 1 + .../typeLiterals/arrayTypeOfFunctionTypes2.ts | 1 + .../typeLiterals/arrayTypeOfTypeOf.ts | 1 + .../typeLiterals/functionLiteral.ts | 1 + .../functionLiteralForOverloads.ts | 1 + .../functionLiteralForOverloads2.ts | 1 + .../typeLiterals/parenthesizedTypes.ts | 1 + .../typeLiterals/unionTypeLiterals.ts | 1 + .../circularTypeofWithVarOrFunc.ts | 1 + .../typeQueries/invalidTypeOfTarget.ts | 1 + .../typeQueries/recursiveTypesWithTypeof.ts | 1 + .../typeQueries/typeQueryOnClass.ts | 1 + .../typeQueries/typeQueryWithReservedWords.ts | 1 + .../typeQueries/typeofANonExportedType.ts | 1 + .../typeQueries/typeofAnExportedType.ts | 1 + .../typeQueries/typeofClass2.ts | 1 + .../typeQueries/typeofClassWithPrivates.ts | 1 + .../typeQueries/typeofModuleWithoutExports.ts | 1 + .../specifyingTypes/typeQueries/typeofThis.ts | 1 + .../typeQueries/typeofThisWithImplicitThis.ts | 1 + .../typeQueries/typeofTypeParameter.ts | 1 + ...nericTypeReferenceWithoutTypeArgument.d.ts | 1 + ...genericTypeReferenceWithoutTypeArgument.ts | 1 + ...enericTypeReferenceWithoutTypeArgument2.ts | 1 + ...enericTypeReferenceWithoutTypeArgument3.ts | 1 + ...onGenericTypeReferenceWithTypeArguments.ts | 1 + .../spread/objectSpreadComputedProperty.ts | 1 + .../spread/objectSpreadIndexSignature.ts | 1 + .../types/spread/objectSpreadNegativeParse.ts | 1 + .../spread/objectSpreadRepeatedComplexity.ts | 1 + .../objectSpreadRepeatedNullCheckPerf.ts | 1 + .../types/spread/objectSpreadStrictNull.ts | 1 + .../spreadContextualTypedBindingPattern.ts | 1 + .../types/spread/spreadDuplicate.ts | 1 + .../types/spread/spreadDuplicateExact.ts | 1 + .../types/spread/spreadExcessProperty.ts | 1 + .../types/spread/spreadNonObject1.ts | 1 + .../types/spread/spreadNonPrimitive.ts | 1 + .../types/spread/spreadObjectOrFalsy.ts | 1 + .../types/spread/spreadOverwritesProperty.ts | 1 + .../spread/spreadOverwritesPropertyStrict.ts | 1 + .../types/spread/spreadTypeVariable.ts | 1 + .../conformance/types/spread/spreadUnion.ts | 1 + .../conformance/types/spread/spreadUnion2.ts | 1 + .../conformance/types/spread/spreadUnion3.ts | 1 + .../conformance/types/spread/spreadUnion4.ts | 1 + .../stringLiteralCheckedInIf01.ts | 3 +- .../stringLiteralCheckedInIf02.ts | 3 +- .../stringLiteralMatchedInSwitch01.ts | 3 +- .../stringLiteralTypeAssertion01.ts | 3 +- ...ngLiteralTypesAndLogicalOrExpressions01.ts | 3 +- ...teralTypesAndParenthesizedExpressions01.ts | 3 +- .../stringLiteralTypesAndTuples01.ts | 1 + .../stringLiteralTypesAsTags01.ts | 1 + .../stringLiteralTypesAsTags02.ts | 1 + .../stringLiteralTypesAsTags03.ts | 1 + ...LiteralTypesAsTypeParameterConstraint01.ts | 3 +- ...LiteralTypesAsTypeParameterConstraint02.ts | 3 +- .../stringLiteralTypesInUnionTypes01.ts | 1 + .../stringLiteralTypesInUnionTypes02.ts | 1 + .../stringLiteralTypesInUnionTypes03.ts | 1 + .../stringLiteralTypesInUnionTypes04.ts | 1 + ...ingLiteralTypesInVariableDeclarations01.ts | 1 + ...ringLiteralTypesOverloadAssignability01.ts | 3 +- ...ringLiteralTypesOverloadAssignability02.ts | 3 +- ...ringLiteralTypesOverloadAssignability03.ts | 3 +- ...ringLiteralTypesOverloadAssignability04.ts | 3 +- ...ringLiteralTypesOverloadAssignability05.ts | 3 +- .../stringLiteralTypesOverloads01.ts | 1 + .../stringLiteralTypesOverloads02.ts | 1 + .../stringLiteralTypesOverloads03.ts | 3 +- .../stringLiteralTypesOverloads04.ts | 3 +- .../stringLiteralTypesOverloads05.ts | 3 +- .../stringLiteralTypesTypePredicates01.ts | 1 + ...stringLiteralTypesWithTemplateStrings01.ts | 3 +- ...stringLiteralTypesWithTemplateStrings02.ts | 3 +- ...tringLiteralTypesWithVariousOperators01.ts | 3 +- ...tringLiteralTypesWithVariousOperators02.ts | 3 +- .../typeArgumentsWithStringLiteralTypes01.ts | 1 + .../types/thisType/contextualThisType.ts | 1 + .../contextualThisTypeInJavascript.ts | 1 + .../types/thisType/declarationFiles.ts | 1 + .../types/thisType/fluentClasses.ts | 1 + .../types/thisType/fluentInterfaces.ts | 1 + .../types/thisType/inferThisType.ts | 1 + .../thisType/looseThisTypeInFunctions.ts | 1 + .../types/thisType/thisTypeAccessibility.ts | 1 + .../types/thisType/thisTypeAndConstraints.ts | 1 + .../types/thisType/thisTypeErrors.ts | 1 + .../types/thisType/thisTypeErrors2.ts | 1 + ...BasePropertyAndDerivedContainerOfBase01.ts | 1 + .../types/thisType/thisTypeInClasses.ts | 1 + .../types/thisType/thisTypeInFunctions.ts | 1 + .../types/thisType/thisTypeInFunctions2.ts | 1 + .../types/thisType/thisTypeInFunctions3.ts | 1 + .../types/thisType/thisTypeInFunctions4.ts | 1 + .../types/thisType/thisTypeInInterfaces.ts | 1 + .../thisType/thisTypeInObjectLiterals.ts | 1 + .../types/thisType/thisTypeInTuples.ts | 1 + .../types/thisType/thisTypeInTypePredicate.ts | 1 + .../types/thisType/thisTypeOptionalCall.ts | 1 + .../thisType/thisTypeSyntacticContext.ts | 1 + .../types/thisType/typeRelationships.ts | 1 + .../thisType/unionThisTypeInFunctions.ts | 1 + .../tuple/arityAndOrderCompatibility01.ts | 1 + .../conformance/types/tuple/castingTuple.ts | 3 +- .../types/tuple/contextualTypeTupleEnd.ts | 1 + .../types/tuple/contextualTypeWithTuple.ts | 3 +- .../emptyTuples/emptyTuplesTypeAssertion01.ts | 1 + .../emptyTuples/emptyTuplesTypeAssertion02.ts | 1 + .../types/tuple/indexerWithTuple.ts | 3 +- .../types/tuple/named/namedTupleMembers.ts | 1 + .../tuple/named/namedTupleMembersErrors.ts | 1 + .../types/tuple/named/partiallyNamedTuples.ts | 1 + .../tuple/named/partiallyNamedTuples2.ts | 1 + .../tuple/named/partiallyNamedTuples3.ts | 1 + .../types/tuple/optionalTupleElements1.ts | 1 + .../types/tuple/readonlyArraysAndTuples.ts | 1 + .../types/tuple/readonlyArraysAndTuples2.ts | 1 + .../types/tuple/restTupleElements1.ts | 1 + .../types/tuple/strictTupleLength.ts | 1 + .../types/tuple/tupleElementTypes1.ts | 1 + .../types/tuple/tupleElementTypes2.ts | 1 + .../types/tuple/tupleElementTypes3.ts | 1 + .../types/tuple/tupleElementTypes4.ts | 1 + .../types/tuple/tupleLengthCheck.ts | 1 + .../types/tuple/typeInferenceWithTupleType.ts | 1 + .../types/tuple/unionsOfTupleTypes1.ts | 1 + .../types/tuple/variadicTuples1.ts | 1 + .../types/tuple/variadicTuples2.ts | 1 + .../types/tuple/variadicTuples3.ts | 1 + .../types/tuple/wideningTuples1.ts | 1 + .../types/tuple/wideningTuples2.ts | 1 + .../types/tuple/wideningTuples3.ts | 1 + .../types/tuple/wideningTuples4.ts | 1 + .../types/tuple/wideningTuples5.ts | 1 + .../types/tuple/wideningTuples6.ts | 1 + .../types/tuple/wideningTuples7.ts | 1 + .../asiPreventsParsingAsTypeAlias01.ts | 1 + .../asiPreventsParsingAsTypeAlias02.ts | 1 + .../circularTypeAliasForUnionWithClass.ts | 1 + .../circularTypeAliasForUnionWithInterface.ts | 1 + .../classDoesNotDependOnBaseTypes.ts | 1 + .../directDependenceBetweenTypeAliases.ts | 1 + .../types/typeAliases/genericTypeAliases.ts | 1 + .../interfaceDoesNotDependOnBaseTypes.ts | 1 + .../types/typeAliases/intrinsicKeyword.ts | 1 + .../types/typeAliases/intrinsicTypes.ts | 1 + .../typeAliases/reservedNamesInAliases.ts | 1 + .../types/typeAliases/typeAliases.ts | 1 + .../typeAliases/typeAliasesDoNotMerge.ts | 1 + .../typeAliases/typeAliasesForObjectTypes.ts | 1 + .../recurringTypeParamForContainerOfBase01.ts | 1 + ...ctionWithIncorrectNumberOfTypeArguments.ts | 1 + ...allGenericFunctionWithZeroTypeArguments.ts | 1 + ...callNonGenericFunctionWithTypeArguments.ts | 1 + .../constraintSatisfactionWithAny.ts | 1 + .../constraintSatisfactionWithAny2.ts | 1 + .../constraintSatisfactionWithEmptyObject.ts | 1 + .../functionConstraintSatisfaction.ts | 1 + .../functionConstraintSatisfaction2.ts | 1 + .../functionConstraintSatisfaction3.ts | 1 + ...ericClassWithWrongNumberOfTypeArguments.ts | 1 + ...ntiateGenericClassWithZeroTypeArguments.ts | 1 + ...tantiateNonGenericTypeWithTypeArguments.ts | 1 + .../instantiationExpressionErrors.ts | 1 + .../instantiationExpressions.ts | 1 + .../typeParameterAsTypeParameterConstraint.ts | 1 + ...typeParameterAsTypeParameterConstraint2.ts | 1 + ...erAsTypeParameterConstraintTransitively.ts | 1 + ...rAsTypeParameterConstraintTransitively2.ts | 1 + .../wrappedAndRecursiveConstraints.ts | 1 + .../wrappedAndRecursiveConstraints2.ts | 1 + .../wrappedAndRecursiveConstraints3.ts | 1 + .../wrappedAndRecursiveConstraints4.ts | 1 + .../typeParameters/typeParameterAsBaseType.ts | 1 + .../innerTypeParameterShadowingOuterOne.ts | 1 + .../innerTypeParameterShadowingOuterOne2.ts | 1 + ...rtyAccessOnTypeParameterWithConstraints.ts | 1 + ...tyAccessOnTypeParameterWithConstraints2.ts | 1 + ...tyAccessOnTypeParameterWithConstraints3.ts | 1 + ...tyAccessOnTypeParameterWithConstraints4.ts | 1 + ...tyAccessOnTypeParameterWithConstraints5.ts | 1 + ...AccessOnTypeParameterWithoutConstraints.ts | 1 + .../staticMembersUsingClassTypeParameter.ts | 1 + .../typeParameterConstModifiers.ts | 1 + ...rameterConstModifiersReverseMappedTypes.ts | 1 + ...ParameterConstModifiersWithIntersection.ts | 1 + ...ypeParameterDirectlyConstrainedToItself.ts | 1 + ...eParameterIndirectlyConstrainedToItself.ts | 1 + .../typeParameterUsedAsConstraint.ts | 1 + .../typeParametersAvailableInNestedScope.ts | 1 + .../typeParametersAvailableInNestedScope2.ts | 1 + .../typeParametersAvailableInNestedScope3.ts | 1 + .../typesWithDuplicateTypeParameters.ts | 1 + .../typeParameterLists/varianceAnnotations.ts | 1 + ...nnotationsWithCircularlyReferencesError.ts | 1 + .../apparentType/apparentTypeSubtyping.ts | 1 + .../apparentType/apparentTypeSupertype.ts | 1 + .../anyAssignabilityInInheritance.ts | 1 + .../anyAssignableToEveryType.ts | 1 + .../anyAssignableToEveryType2.ts | 1 + .../assignmentCompatBetweenTupleAndArray.ts | 3 +- .../assignmentCompatWithCallSignatures.ts | 1 + .../assignmentCompatWithCallSignatures2.ts | 1 + .../assignmentCompatWithCallSignatures3.ts | 1 + .../assignmentCompatWithCallSignatures4.ts | 1 + .../assignmentCompatWithCallSignatures5.ts | 1 + .../assignmentCompatWithCallSignatures6.ts | 1 + ...ithCallSignaturesWithOptionalParameters.ts | 1 + ...patWithCallSignaturesWithRestParameters.ts | 1 + ...assignmentCompatWithConstructSignatures.ts | 1 + ...ssignmentCompatWithConstructSignatures2.ts | 1 + ...ssignmentCompatWithConstructSignatures3.ts | 1 + ...ssignmentCompatWithConstructSignatures4.ts | 1 + ...ssignmentCompatWithConstructSignatures5.ts | 1 + ...ssignmentCompatWithConstructSignatures6.ts | 1 + ...nstructSignaturesWithOptionalParameters.ts | 1 + .../assignmentCompatWithDiscriminatedUnion.ts | 1 + .../assignmentCompatWithEnumIndexer.ts | 1 + ...signmentCompatWithGenericCallSignatures.ts | 1 + ...ignmentCompatWithGenericCallSignatures2.ts | 1 + ...ignmentCompatWithGenericCallSignatures3.ts | 1 + ...ignmentCompatWithGenericCallSignatures4.ts | 1 + ...ricCallSignaturesWithOptionalParameters.ts | 1 + .../assignmentCompatWithNumericIndexer.ts | 1 + .../assignmentCompatWithNumericIndexer2.ts | 1 + .../assignmentCompatWithNumericIndexer3.ts | 1 + .../assignmentCompatWithObjectMembers.ts | 1 + .../assignmentCompatWithObjectMembers2.ts | 1 + .../assignmentCompatWithObjectMembers3.ts | 1 + .../assignmentCompatWithObjectMembers4.ts | 1 + .../assignmentCompatWithObjectMembers5.ts | 1 + ...entCompatWithObjectMembersAccessibility.ts | 1 + ...mentCompatWithObjectMembersNumericNames.ts | 1 + ...nmentCompatWithObjectMembersOptionality.ts | 1 + ...mentCompatWithObjectMembersOptionality2.ts | 1 + ...mpatWithObjectMembersStringNumericNames.ts | 1 + .../assignmentCompatWithStringIndexer.ts | 1 + .../assignmentCompatWithStringIndexer2.ts | 1 + .../assignmentCompatWithStringIndexer3.ts | 1 + ...ompatWithWithGenericConstructSignatures.ts | 1 + ...callSignatureAssignabilityInInheritance.ts | 1 + ...allSignatureAssignabilityInInheritance2.ts | 1 + ...allSignatureAssignabilityInInheritance3.ts | 1 + ...allSignatureAssignabilityInInheritance4.ts | 1 + ...allSignatureAssignabilityInInheritance5.ts | 1 + ...allSignatureAssignabilityInInheritance6.ts | 1 + ...ructSignatureAssignabilityInInheritance.ts | 1 + ...uctSignatureAssignabilityInInheritance2.ts | 1 + ...uctSignatureAssignabilityInInheritance3.ts | 1 + ...uctSignatureAssignabilityInInheritance4.ts | 1 + ...uctSignatureAssignabilityInInheritance5.ts | 1 + ...uctSignatureAssignabilityInInheritance6.ts | 1 + .../enumAssignability.ts | 1 + .../enumAssignabilityInInheritance.ts | 1 + .../everyTypeAssignableToAny.ts | 1 + ...icCallWithObjectTypeArgsAndInitializers.ts | 1 + ...tionIncludingPropFromGlobalAugmentation.ts | 1 + .../nullAssignableToEveryType.ts | 1 + .../nullAssignedToUndefined.ts | 1 + .../numberAssignableToEnum.ts | 1 + ...ropertyAssignableToStringIndexSignature.ts | 1 + .../typeParameterAssignability.ts | 1 + .../typeParameterAssignability2.ts | 1 + .../typeParameterAssignability3.ts | 1 + .../undefinedAssignableToEveryType.ts | 1 + .../unionTypesAssignability.ts | 3 +- ...arrayLiteralWithMultipleBestCommonTypes.ts | 1 + .../bestCommonTypeOfConditionalExpressions.ts | 1 + ...bestCommonTypeOfConditionalExpressions2.ts | 1 + .../bestCommonType/bestCommonTypeOfTuple.ts | 3 +- .../bestCommonType/bestCommonTypeOfTuple2.ts | 3 +- .../functionWithMultipleReturnStatements.ts | 1 + .../functionWithMultipleReturnStatements2.ts | 1 + .../heterogeneousArrayLiterals.ts | 1 + .../comparable/equalityStrictNulls.ts | 1 + .../comparable/equalityWithEnumTypes.ts | 1 + .../equalityWithIntersectionTypes01.ts | 1 + .../comparable/equalityWithUnionTypes01.ts | 1 + ...qualityWithtNullishCoalescingAssignment.ts | 1 + .../comparable/independentPropertyVariance.ts | 1 + .../comparable/optionalProperties01.ts | 1 + .../comparable/optionalProperties02.ts | 1 + .../switchCaseWithIntersectionTypes01.ts | 1 + .../comparable/switchCaseWithUnionTypes01.ts | 1 + .../typeAssertionsWithIntersectionTypes01.ts | 1 + .../typeAssertionsWithUnionTypes01.ts | 1 + .../comparable/weakTypesAndLiterals01.ts | 1 + .../narrowingConstrainedTypeVariable.ts | 1 + .../narrowingGenericTypeFromInstanceof01.ts | 1 + .../arrayLiteralsWithRecursiveGenerics.ts | 1 + .../infiniteExpansionThroughInstantiation.ts | 1 + .../infiniteExpansionThroughInstantiation2.ts | 1 + .../infiniteExpansionThroughTypeInference.ts | 1 + .../nominalSubtypeCheckOfTypeParameter.ts | 1 + .../nominalSubtypeCheckOfTypeParameter2.ts | 1 + .../objectTypeWithRecursiveWrappedProperty.ts | 1 + ...objectTypeWithRecursiveWrappedProperty2.ts | 1 + ...ecursiveWrappedPropertyCheckedNominally.ts | 1 + .../recursiveTypeInGenericConstraint.ts | 1 + .../recursiveTypeReferences1.ts | 1 + .../recursiveTypeReferences2.ts | 1 + .../recursiveTypesUsedAsFunctionParameters.ts | 1 + .../enumIsNotASubtypeOfAnythingButNumber.ts | 1 + .../nullIsSubtypeOfEverythingButUndefined.ts | 1 + .../stringLiteralTypeIsSubtypeOfString.ts | 1 + .../subtypesAndSuperTypes/subtypesOfAny.ts | 1 + .../subtypesOfTypeParameter.ts | 1 + .../subtypesOfTypeParameterWithConstraints.ts | 1 + ...subtypesOfTypeParameterWithConstraints2.ts | 1 + ...subtypesOfTypeParameterWithConstraints3.ts | 1 + ...subtypesOfTypeParameterWithConstraints4.ts | 1 + ...OfTypeParameterWithRecursiveConstraints.ts | 1 + .../subtypesAndSuperTypes/subtypesOfUnion.ts | 1 + .../subtypingWithCallSignatures.ts | 1 + .../subtypingWithCallSignatures2.ts | 1 + .../subtypingWithCallSignatures3.ts | 1 + .../subtypingWithCallSignatures4.ts | 1 + .../subtypingWithCallSignaturesA.ts | 1 + ...ithCallSignaturesWithOptionalParameters.ts | 1 + ...ingWithCallSignaturesWithRestParameters.ts | 1 + ...CallSignaturesWithSpecializedSignatures.ts | 1 + .../subtypingWithConstructSignatures.ts | 1 + .../subtypingWithConstructSignatures2.ts | 1 + .../subtypingWithConstructSignatures3.ts | 1 + .../subtypingWithConstructSignatures4.ts | 1 + .../subtypingWithConstructSignatures5.ts | 1 + .../subtypingWithConstructSignatures6.ts | 1 + ...nstructSignaturesWithOptionalParameters.ts | 1 + ...ructSignaturesWithSpecializedSignatures.ts | 1 + ...ricCallSignaturesWithOptionalParameters.ts | 1 + ...nstructSignaturesWithOptionalParameters.ts | 1 + .../subtypingWithNumericIndexer.ts | 1 + .../subtypingWithNumericIndexer2.ts | 1 + .../subtypingWithNumericIndexer3.ts | 1 + .../subtypingWithNumericIndexer4.ts | 1 + .../subtypingWithNumericIndexer5.ts | 1 + .../subtypingWithObjectMembers.ts | 1 + .../subtypingWithObjectMembers2.ts | 1 + .../subtypingWithObjectMembers3.ts | 1 + .../subtypingWithObjectMembers4.ts | 1 + .../subtypingWithObjectMembers5.ts | 1 + ...subtypingWithObjectMembersAccessibility.ts | 1 + ...ubtypingWithObjectMembersAccessibility2.ts | 1 + .../subtypingWithObjectMembersOptionality.ts | 1 + .../subtypingWithObjectMembersOptionality2.ts | 1 + .../subtypingWithObjectMembersOptionality3.ts | 1 + .../subtypingWithObjectMembersOptionality4.ts | 1 + .../subtypingWithOptionalProperties.ts | 1 + .../subtypingWithStringIndexer.ts | 1 + .../subtypingWithStringIndexer2.ts | 1 + .../subtypingWithStringIndexer3.ts | 1 + .../subtypingWithStringIndexer4.ts | 1 + .../undefinedIsSubtypeOfEverything.ts | 1 + ...nSubtypeIfEveryConstituentTypeIsSubtype.ts | 1 + .../objectTypesIdentity.ts | 1 + .../objectTypesIdentity2.ts | 1 + .../objectTypesIdentityWithCallSignatures.ts | 1 + .../objectTypesIdentityWithCallSignatures2.ts | 1 + .../objectTypesIdentityWithCallSignatures3.ts | 1 + ...yWithCallSignaturesDifferingParamCounts.ts | 1 + ...WithCallSignaturesDifferingParamCounts2.ts | 1 + ...IdentityWithCallSignaturesWithOverloads.ts | 1 + ...jectTypesIdentityWithComplexConstraints.ts | 1 + ...ectTypesIdentityWithConstructSignatures.ts | 1 + ...ctTypesIdentityWithConstructSignatures2.ts | 1 + ...ConstructSignaturesDifferingParamCounts.ts | 1 + ...tTypesIdentityWithGenericCallSignatures.ts | 1 + ...TypesIdentityWithGenericCallSignatures2.ts | 1 + ...ricCallSignaturesDifferingByConstraints.ts | 1 + ...icCallSignaturesDifferingByConstraints2.ts | 1 + ...icCallSignaturesDifferingByConstraints3.ts | 1 + ...ericCallSignaturesDifferingByReturnType.ts | 1 + ...ricCallSignaturesDifferingByReturnType2.ts | 1 + ...lSignaturesDifferingTypeParameterCounts.ts | 1 + ...SignaturesDifferingTypeParameterCounts2.ts | 1 + ...llSignaturesDifferingTypeParameterNames.ts | 1 + ...WithGenericCallSignaturesOptionalParams.ts | 1 + ...ithGenericCallSignaturesOptionalParams2.ts | 1 + ...ithGenericCallSignaturesOptionalParams3.ts | 1 + ...nstructSignaturesDifferingByConstraints.ts | 1 + ...structSignaturesDifferingByConstraints2.ts | 1 + ...structSignaturesDifferingByConstraints3.ts | 1 + ...onstructSignaturesDifferingByReturnType.ts | 1 + ...nstructSignaturesDifferingByReturnType2.ts | 1 + ...tSignaturesDifferingTypeParameterCounts.ts | 1 + ...ctSignaturesDifferingTypeParameterNames.ts | 1 + ...enericConstructSignaturesOptionalParams.ts | 1 + ...nericConstructSignaturesOptionalParams2.ts | 1 + ...nericConstructSignaturesOptionalParams3.ts | 1 + ...objectTypesIdentityWithNumericIndexers1.ts | 1 + ...objectTypesIdentityWithNumericIndexers2.ts | 1 + ...objectTypesIdentityWithNumericIndexers3.ts | 1 + .../objectTypesIdentityWithOptionality.ts | 1 + .../objectTypesIdentityWithPrivates.ts | 1 + .../objectTypesIdentityWithPrivates2.ts | 1 + .../objectTypesIdentityWithPrivates3.ts | 3 +- .../objectTypesIdentityWithPublics.ts | 1 + .../objectTypesIdentityWithStringIndexers.ts | 1 + .../objectTypesIdentityWithStringIndexers2.ts | 1 + .../primtiveTypesAreIdentical.ts | 1 + .../typeParametersAreIdenticalToThemselves.ts | 1 + .../unionTypeIdentity.ts | 1 + .../typeInference/bivariantInferences.ts | 1 + .../contextualSignatureInstantiation.ts | 1 + .../discriminatedUnionInference.ts | 1 + ...OverloadedMethodWithOverloadedArguments.ts | 1 + .../genericCallTypeArgumentInference.ts | 1 + .../genericCallWithArrayLiteralArgs.ts | 1 + ...allWithConstraintsTypeArgumentInference.ts | 1 + ...llWithConstraintsTypeArgumentInference2.ts | 1 + ...nericCallWithConstructorTypedArguments5.ts | 1 + .../genericCallWithFunctionTypedArguments.ts | 1 + .../genericCallWithFunctionTypedArguments2.ts | 1 + .../genericCallWithFunctionTypedArguments3.ts | 1 + .../genericCallWithFunctionTypedArguments4.ts | 1 + .../genericCallWithFunctionTypedArguments5.ts | 1 + ...enericCallWithGenericSignatureArguments.ts | 1 + ...nericCallWithGenericSignatureArguments2.ts | 1 + ...nericCallWithGenericSignatureArguments3.ts | 1 + .../genericCallWithNonSymmetricSubtypes.ts | 1 + .../genericCallWithObjectLiteralArgs.ts | 1 + .../genericCallWithObjectTypeArgs.ts | 1 + .../genericCallWithObjectTypeArgs2.ts | 1 + ...ricCallWithObjectTypeArgsAndConstraints.ts | 1 + ...icCallWithObjectTypeArgsAndConstraints2.ts | 1 + ...icCallWithObjectTypeArgsAndConstraints3.ts | 1 + ...icCallWithObjectTypeArgsAndConstraints4.ts | 1 + ...icCallWithObjectTypeArgsAndConstraints5.ts | 1 + ...enericCallWithObjectTypeArgsAndIndexers.ts | 1 + ...CallWithObjectTypeArgsAndIndexersErrors.ts | 1 + ...CallWithObjectTypeArgsAndNumericIndexer.ts | 1 + ...cCallWithObjectTypeArgsAndStringIndexer.ts | 1 + ...WithOverloadedConstructorTypedArguments.ts | 1 + ...ithOverloadedConstructorTypedArguments2.ts | 1 + ...allWithOverloadedFunctionTypedArguments.ts | 1 + ...llWithOverloadedFunctionTypedArguments2.ts | 1 + .../typeInference/genericCallWithTupleType.ts | 3 +- ...icClassWithFunctionTypedMemberArguments.ts | 1 + ...icClassWithObjectTypeArgsAndConstraints.ts | 1 + .../typeInference/genericContextualTypes1.ts | 1 + .../typeInference/genericContextualTypes2.ts | 1 + .../typeInference/genericContextualTypes3.ts | 1 + .../genericFunctionParameters.ts | 1 + .../indexSignatureTypeInference.ts | 1 + .../intraExpressionInferences.ts | 1 + .../intraExpressionInferencesJsx.tsx | 1 + .../keyofInferenceIntersectsResults.ts | 1 + .../keyofInferenceLowerPriorityThanReturn.ts | 1 + .../typeInference/noInfer.ts | 1 + .../unionAndIntersectionInference2.ts | 1 + .../widenedTypes/arrayLiteralWidened.ts | 1 + .../widenedTypes/initializersWidened.ts | 1 + .../widenedTypes/objectLiteralWidened.ts | 1 + .../strictNullChecksNoWidening.ts | 1 + ...ntextualTypeWithUnionTypeCallSignatures.ts | 3 +- ...textualTypeWithUnionTypeIndexSignatures.ts | 3 +- .../contextualTypeWithUnionTypeMembers.ts | 3 +- ...ontextualTypeWithUnionTypeObjectLiteral.ts | 3 +- .../types/union/discriminatedUnionTypes1.ts | 1 + .../types/union/discriminatedUnionTypes2.ts | 1 + .../types/union/discriminatedUnionTypes3.ts | 1 + .../types/union/discriminatedUnionTypes4.ts | 1 + .../types/union/unionTypeCallSignatures.ts | 3 +- .../types/union/unionTypeCallSignatures2.ts | 3 +- .../types/union/unionTypeCallSignatures3.ts | 3 +- .../types/union/unionTypeCallSignatures4.ts | 3 +- .../types/union/unionTypeCallSignatures5.ts | 1 + .../types/union/unionTypeCallSignatures6.ts | 1 + .../types/union/unionTypeCallSignatures7.ts | 1 + .../union/unionTypeConstructSignatures.ts | 3 +- .../types/union/unionTypeEquivalence.ts | 3 +- .../types/union/unionTypeFromArrayLiteral.ts | 3 +- .../types/union/unionTypeIndexSignature.ts | 3 +- .../types/union/unionTypeMembers.ts | 3 +- .../union/unionTypePropertyAccessibility.ts | 1 + .../types/union/unionTypeReadonly.ts | 1 + .../types/union/unionTypeReduction.ts | 1 + .../types/union/unionTypeReduction2.ts | 1 + .../types/unknown/unknownControlFlow.ts | 1 + .../conformance/types/unknown/unknownType1.ts | 1 + .../conformance/types/unknown/unknownType2.ts | 1 + .../conformance/types/witness/witness.ts | 1 + .../conformance/typings/typingsLookup1.ts | 1 + .../conformance/typings/typingsLookup2.ts | 1 + .../conformance/typings/typingsLookup3.ts | 1 + .../conformance/typings/typingsLookup4.ts | 1 + .../conformance/typings/typingsLookupAmd.ts | 1 + .../conformance/typings/typingsSuggestion1.ts | 1 + .../conformance/typings/typingsSuggestion2.ts | 1 + .../typings/typingsSuggestionBun1.ts | 1 + .../typings/typingsSuggestionBun2.ts | 1 + .../declarationCrossFileInferences.ts | 2 + .../transpile/declarationLinkedAliases.ts | 2 + .../declarationLocalAliasOfImportAlias.ts | 2 + .../transpile/declarationRestParameters.ts | 1 + .../declarationSelfReferentialConstraint.ts | 2 + .../declarationSingleFileHasErrors.ts | 2 + .../declarationSingleFileHasErrorsReported.ts | 2 + .../declarationTypeParameterConstraint.ts | 2 + .../declarationTypeWithComputedName.ts | 2 + ...ationUnresolvedGlobalReferencesNoErrors.ts | 2 + .../declarationUnresolvedTypeReference.ts | 2 + .../declarationUnresolvedTypeReference2.ts | 2 + tests/cases/transpile/declarationsSimple.ts | 2 + 15169 files changed, 144215 insertions(+), 105357 deletions(-) create mode 100644 tests/baselines/reference/ES5For-of26(target=es2015).errors.txt create mode 100644 tests/baselines/reference/ES5For-of26(target=es2015).js create mode 100644 tests/baselines/reference/ES5For-of26(target=es2015).js.map create mode 100644 tests/baselines/reference/ES5For-of26(target=es2015).sourcemap.txt rename tests/baselines/reference/{ES5For-of26.symbols => ES5For-of26(target=es2015).symbols} (100%) rename tests/baselines/reference/{ES5For-of26.types => ES5For-of26(target=es2015).types} (100%) rename tests/baselines/reference/{ES5For-of26.errors.txt => ES5For-of26(target=es5).errors.txt} (100%) rename tests/baselines/reference/{ES5For-of26.js => ES5For-of26(target=es5).js} (100%) rename tests/baselines/reference/{ES5For-of26.js.map => ES5For-of26(target=es5).js.map} (100%) rename tests/baselines/reference/{ES5For-of26.sourcemap.txt => ES5For-of26(target=es5).sourcemap.txt} (100%) create mode 100644 tests/baselines/reference/ES5For-of26(target=es5).symbols create mode 100644 tests/baselines/reference/ES5For-of26(target=es5).types create mode 100644 tests/baselines/reference/ES5For-of28(target=es2015).errors.txt create mode 100644 tests/baselines/reference/ES5For-of28(target=es2015).js rename tests/baselines/reference/{ES5For-of28.symbols => ES5For-of28(target=es2015).symbols} (100%) rename tests/baselines/reference/{ES5For-of28.types => ES5For-of28(target=es2015).types} (100%) rename tests/baselines/reference/{ES5For-of28.errors.txt => ES5For-of28(target=es5).errors.txt} (100%) rename tests/baselines/reference/{ES5For-of28.js => ES5For-of28(target=es5).js} (100%) create mode 100644 tests/baselines/reference/ES5For-of28(target=es5).symbols create mode 100644 tests/baselines/reference/ES5For-of28(target=es5).types create mode 100644 tests/baselines/reference/ES5For-of30(target=es2015).errors.txt create mode 100644 tests/baselines/reference/ES5For-of30(target=es2015).js rename tests/baselines/reference/{ES5For-of30.symbols => ES5For-of30(target=es2015).symbols} (100%) rename tests/baselines/reference/{ES5For-of30.types => ES5For-of30(target=es2015).types} (100%) rename tests/baselines/reference/{ES5For-of30.errors.txt => ES5For-of30(target=es5).errors.txt} (100%) rename tests/baselines/reference/{ES5For-of30.js => ES5For-of30(target=es5).js} (100%) create mode 100644 tests/baselines/reference/ES5For-of30(target=es5).symbols create mode 100644 tests/baselines/reference/ES5For-of30(target=es5).types create mode 100644 tests/baselines/reference/ES5For-of36(target=es2015).errors.txt create mode 100644 tests/baselines/reference/ES5For-of36(target=es2015).js create mode 100644 tests/baselines/reference/ES5For-of36(target=es2015).js.map create mode 100644 tests/baselines/reference/ES5For-of36(target=es2015).sourcemap.txt rename tests/baselines/reference/{ES5For-of36.symbols => ES5For-of36(target=es2015).symbols} (100%) rename tests/baselines/reference/{ES5For-of36.types => ES5For-of36(target=es2015).types} (100%) rename tests/baselines/reference/{ES5For-of36.errors.txt => ES5For-of36(target=es5).errors.txt} (100%) rename tests/baselines/reference/{ES5For-of36.js => ES5For-of36(target=es5).js} (100%) rename tests/baselines/reference/{ES5For-of36.js.map => ES5For-of36(target=es5).js.map} (100%) rename tests/baselines/reference/{ES5For-of36.sourcemap.txt => ES5For-of36(target=es5).sourcemap.txt} (100%) create mode 100644 tests/baselines/reference/ES5For-of36(target=es5).symbols create mode 100644 tests/baselines/reference/ES5For-of36(target=es5).types create mode 100644 tests/baselines/reference/asyncImportNestedYield.errors.txt create mode 100644 tests/baselines/reference/checkForObjectTooStrict(target=es2015).js rename tests/baselines/reference/{checkForObjectTooStrict.symbols => checkForObjectTooStrict(target=es2015).symbols} (100%) rename tests/baselines/reference/{checkForObjectTooStrict.types => checkForObjectTooStrict(target=es2015).types} (100%) rename tests/baselines/reference/{checkForObjectTooStrict.errors.txt => checkForObjectTooStrict(target=es5).errors.txt} (100%) rename tests/baselines/reference/{checkForObjectTooStrict.js => checkForObjectTooStrict(target=es5).js} (100%) create mode 100644 tests/baselines/reference/checkForObjectTooStrict(target=es5).symbols create mode 100644 tests/baselines/reference/checkForObjectTooStrict(target=es5).types create mode 100644 tests/baselines/reference/checkJsxChildrenProperty1.errors.txt create mode 100644 tests/baselines/reference/classStaticBlock6(target=es2015).errors.txt create mode 100644 tests/baselines/reference/classStaticBlock6(target=es2015).js rename tests/baselines/reference/{classStaticBlock6.symbols => classStaticBlock6(target=es2015).symbols} (100%) rename tests/baselines/reference/{classStaticBlock6.types => classStaticBlock6(target=es2015).types} (100%) rename tests/baselines/reference/{classStaticBlock6.errors.txt => classStaticBlock6(target=es5).errors.txt} (100%) rename tests/baselines/reference/{classStaticBlock6.js => classStaticBlock6(target=es5).js} (100%) create mode 100644 tests/baselines/reference/classStaticBlock6(target=es5).symbols create mode 100644 tests/baselines/reference/classStaticBlock6(target=es5).types create mode 100644 tests/baselines/reference/collisionArgumentsArrowFunctions(target=es2015).js rename tests/baselines/reference/{collisionArgumentsArrowFunctions.symbols => collisionArgumentsArrowFunctions(target=es2015).symbols} (100%) rename tests/baselines/reference/{collisionArgumentsArrowFunctions.types => collisionArgumentsArrowFunctions(target=es2015).types} (100%) rename tests/baselines/reference/{collisionArgumentsArrowFunctions.errors.txt => collisionArgumentsArrowFunctions(target=es5).errors.txt} (100%) rename tests/baselines/reference/{collisionArgumentsArrowFunctions.js => collisionArgumentsArrowFunctions(target=es5).js} (100%) create mode 100644 tests/baselines/reference/collisionArgumentsArrowFunctions(target=es5).symbols create mode 100644 tests/baselines/reference/collisionArgumentsArrowFunctions(target=es5).types create mode 100644 tests/baselines/reference/collisionArgumentsClassConstructor(target=es2015).errors.txt create mode 100644 tests/baselines/reference/collisionArgumentsClassConstructor(target=es2015).js rename tests/baselines/reference/{collisionArgumentsClassConstructor.symbols => collisionArgumentsClassConstructor(target=es2015).symbols} (100%) rename tests/baselines/reference/{collisionArgumentsClassConstructor.types => collisionArgumentsClassConstructor(target=es2015).types} (100%) rename tests/baselines/reference/{collisionArgumentsClassConstructor.errors.txt => collisionArgumentsClassConstructor(target=es5).errors.txt} (100%) rename tests/baselines/reference/{collisionArgumentsClassConstructor.js => collisionArgumentsClassConstructor(target=es5).js} (100%) create mode 100644 tests/baselines/reference/collisionArgumentsClassConstructor(target=es5).symbols create mode 100644 tests/baselines/reference/collisionArgumentsClassConstructor(target=es5).types create mode 100644 tests/baselines/reference/collisionArgumentsClassMethod(target=es2015).errors.txt create mode 100644 tests/baselines/reference/collisionArgumentsClassMethod(target=es2015).js rename tests/baselines/reference/{collisionArgumentsClassMethod.symbols => collisionArgumentsClassMethod(target=es2015).symbols} (100%) rename tests/baselines/reference/{collisionArgumentsClassMethod.types => collisionArgumentsClassMethod(target=es2015).types} (100%) rename tests/baselines/reference/{collisionArgumentsClassMethod.errors.txt => collisionArgumentsClassMethod(target=es5).errors.txt} (100%) rename tests/baselines/reference/{collisionArgumentsClassMethod.js => collisionArgumentsClassMethod(target=es5).js} (100%) create mode 100644 tests/baselines/reference/collisionArgumentsClassMethod(target=es5).symbols create mode 100644 tests/baselines/reference/collisionArgumentsClassMethod(target=es5).types create mode 100644 tests/baselines/reference/collisionArgumentsFunction(target=es2015).js rename tests/baselines/reference/{collisionArgumentsFunction.symbols => collisionArgumentsFunction(target=es2015).symbols} (100%) create mode 100644 tests/baselines/reference/collisionArgumentsFunction(target=es2015).types rename tests/baselines/reference/{collisionArgumentsFunction.errors.txt => collisionArgumentsFunction(target=es5).errors.txt} (100%) rename tests/baselines/reference/{collisionArgumentsFunction.js => collisionArgumentsFunction(target=es5).js} (100%) create mode 100644 tests/baselines/reference/collisionArgumentsFunction(target=es5).symbols rename tests/baselines/reference/{collisionArgumentsFunction.types => collisionArgumentsFunction(target=es5).types} (100%) create mode 100644 tests/baselines/reference/collisionArgumentsFunctionExpressions(target=es2015).js rename tests/baselines/reference/{collisionArgumentsFunctionExpressions.symbols => collisionArgumentsFunctionExpressions(target=es2015).symbols} (100%) create mode 100644 tests/baselines/reference/collisionArgumentsFunctionExpressions(target=es2015).types rename tests/baselines/reference/{collisionArgumentsFunctionExpressions.errors.txt => collisionArgumentsFunctionExpressions(target=es5).errors.txt} (100%) rename tests/baselines/reference/{collisionArgumentsFunctionExpressions.js => collisionArgumentsFunctionExpressions(target=es5).js} (100%) create mode 100644 tests/baselines/reference/collisionArgumentsFunctionExpressions(target=es5).symbols rename tests/baselines/reference/{collisionArgumentsFunctionExpressions.types => collisionArgumentsFunctionExpressions(target=es5).types} (100%) create mode 100644 tests/baselines/reference/downlevelLetConst19(target=es2015).js rename tests/baselines/reference/{downlevelLetConst19.symbols => downlevelLetConst19(target=es2015).symbols} (100%) create mode 100644 tests/baselines/reference/downlevelLetConst19(target=es2015).types rename tests/baselines/reference/{downlevelLetConst19.errors.txt => downlevelLetConst19(target=es5).errors.txt} (100%) rename tests/baselines/reference/{downlevelLetConst19.js => downlevelLetConst19(target=es5).js} (100%) create mode 100644 tests/baselines/reference/downlevelLetConst19(target=es5).symbols rename tests/baselines/reference/{downlevelLetConst19.types => downlevelLetConst19(target=es5).types} (100%) create mode 100644 tests/baselines/reference/errorOnFunctionReturnType(target=es2015).errors.txt rename tests/baselines/reference/{errorOnFunctionReturnType.symbols => errorOnFunctionReturnType(target=es2015).symbols} (100%) rename tests/baselines/reference/{errorOnFunctionReturnType.types => errorOnFunctionReturnType(target=es2015).types} (100%) rename tests/baselines/reference/{errorOnFunctionReturnType.errors.txt => errorOnFunctionReturnType(target=es5).errors.txt} (100%) create mode 100644 tests/baselines/reference/errorOnFunctionReturnType(target=es5).symbols create mode 100644 tests/baselines/reference/errorOnFunctionReturnType(target=es5).types create mode 100644 tests/baselines/reference/errorSuperPropertyAccess(target=es2015).errors.txt create mode 100644 tests/baselines/reference/errorSuperPropertyAccess(target=es2015).js rename tests/baselines/reference/{errorSuperPropertyAccess.symbols => errorSuperPropertyAccess(target=es2015).symbols} (100%) rename tests/baselines/reference/{errorSuperPropertyAccess.types => errorSuperPropertyAccess(target=es2015).types} (100%) rename tests/baselines/reference/{errorSuperPropertyAccess.errors.txt => errorSuperPropertyAccess(target=es5).errors.txt} (100%) rename tests/baselines/reference/{errorSuperPropertyAccess.js => errorSuperPropertyAccess(target=es5).js} (100%) create mode 100644 tests/baselines/reference/errorSuperPropertyAccess(target=es5).symbols create mode 100644 tests/baselines/reference/errorSuperPropertyAccess(target=es5).types create mode 100644 tests/baselines/reference/for-inStatementsDestructuring(target=es2015).errors.txt create mode 100644 tests/baselines/reference/for-inStatementsDestructuring(target=es2015).js rename tests/baselines/reference/{for-inStatementsDestructuring.symbols => for-inStatementsDestructuring(target=es2015).symbols} (100%) create mode 100644 tests/baselines/reference/for-inStatementsDestructuring(target=es2015).types rename tests/baselines/reference/{for-inStatementsDestructuring.errors.txt => for-inStatementsDestructuring(target=es5).errors.txt} (100%) rename tests/baselines/reference/{for-inStatementsDestructuring.js => for-inStatementsDestructuring(target=es5).js} (100%) create mode 100644 tests/baselines/reference/for-inStatementsDestructuring(target=es5).symbols rename tests/baselines/reference/{for-inStatementsDestructuring.types => for-inStatementsDestructuring(target=es5).types} (100%) create mode 100644 tests/baselines/reference/functionImplementationErrors(target=es2015).errors.txt create mode 100644 tests/baselines/reference/functionImplementationErrors(target=es2015).js create mode 100644 tests/baselines/reference/functionImplementationErrors(target=es2015).symbols create mode 100644 tests/baselines/reference/functionImplementationErrors(target=es2015).types rename tests/baselines/reference/{functionImplementationErrors.errors.txt => functionImplementationErrors(target=es5).errors.txt} (100%) rename tests/baselines/reference/{functionImplementationErrors.js => functionImplementationErrors(target=es5).js} (100%) rename tests/baselines/reference/{functionImplementationErrors.symbols => functionImplementationErrors(target=es5).symbols} (100%) rename tests/baselines/reference/{functionImplementationErrors.types => functionImplementationErrors(target=es5).types} (100%) create mode 100644 tests/baselines/reference/functionLikeInParameterInitializer(target=es2015).errors.txt create mode 100644 tests/baselines/reference/functionLikeInParameterInitializer(target=es2015).js create mode 100644 tests/baselines/reference/functionLikeInParameterInitializer(target=es2015).symbols create mode 100644 tests/baselines/reference/functionLikeInParameterInitializer(target=es2015).types rename tests/baselines/reference/{functionLikeInParameterInitializer.js => functionLikeInParameterInitializer(target=es5).js} (100%) rename tests/baselines/reference/{functionLikeInParameterInitializer.symbols => functionLikeInParameterInitializer(target=es5).symbols} (100%) rename tests/baselines/reference/{functionLikeInParameterInitializer.types => functionLikeInParameterInitializer(target=es5).types} (100%) create mode 100644 tests/baselines/reference/instanceofOperator(target=es2015).errors.txt create mode 100644 tests/baselines/reference/instanceofOperator(target=es2015).js rename tests/baselines/reference/{instanceofOperator.symbols => instanceofOperator(target=es2015).symbols} (100%) rename tests/baselines/reference/{instanceofOperator.types => instanceofOperator(target=es2015).types} (100%) rename tests/baselines/reference/{instanceofOperator.errors.txt => instanceofOperator(target=es5).errors.txt} (100%) rename tests/baselines/reference/{instanceofOperator.js => instanceofOperator(target=es5).js} (100%) create mode 100644 tests/baselines/reference/instanceofOperator(target=es5).symbols create mode 100644 tests/baselines/reference/instanceofOperator(target=es5).types create mode 100644 tests/baselines/reference/moduleNoneErrors(target=es2015).errors.txt create mode 100644 tests/baselines/reference/moduleNoneErrors(target=es2015).js rename tests/baselines/reference/{moduleNoneErrors.symbols => moduleNoneErrors(target=es2015).symbols} (100%) rename tests/baselines/reference/{moduleNoneErrors.types => moduleNoneErrors(target=es2015).types} (100%) rename tests/baselines/reference/{moduleNoneErrors.errors.txt => moduleNoneErrors(target=es5).errors.txt} (100%) rename tests/baselines/reference/{moduleNoneErrors.js => moduleNoneErrors(target=es5).js} (100%) create mode 100644 tests/baselines/reference/moduleNoneErrors(target=es5).symbols create mode 100644 tests/baselines/reference/moduleNoneErrors(target=es5).types create mode 100644 tests/baselines/reference/noErrorUsingImportExportModuleAugmentationInDeclarationFile2(target=es2015).errors.txt rename tests/baselines/reference/{noErrorUsingImportExportModuleAugmentationInDeclarationFile2.js => noErrorUsingImportExportModuleAugmentationInDeclarationFile2(target=es2015).js} (100%) rename tests/baselines/reference/{noErrorUsingImportExportModuleAugmentationInDeclarationFile2.symbols => noErrorUsingImportExportModuleAugmentationInDeclarationFile2(target=es2015).symbols} (100%) rename tests/baselines/reference/{noErrorUsingImportExportModuleAugmentationInDeclarationFile2.types => noErrorUsingImportExportModuleAugmentationInDeclarationFile2(target=es2015).types} (100%) rename tests/baselines/reference/{noErrorUsingImportExportModuleAugmentationInDeclarationFile2.errors.txt => noErrorUsingImportExportModuleAugmentationInDeclarationFile2(target=es5).errors.txt} (100%) create mode 100644 tests/baselines/reference/noErrorUsingImportExportModuleAugmentationInDeclarationFile2(target=es5).js create mode 100644 tests/baselines/reference/noErrorUsingImportExportModuleAugmentationInDeclarationFile2(target=es5).symbols create mode 100644 tests/baselines/reference/noErrorUsingImportExportModuleAugmentationInDeclarationFile2(target=es5).types create mode 100644 tests/baselines/reference/noErrorUsingImportExportModuleAugmentationInDeclarationFile3(target=es2015).errors.txt rename tests/baselines/reference/{noErrorUsingImportExportModuleAugmentationInDeclarationFile3.js => noErrorUsingImportExportModuleAugmentationInDeclarationFile3(target=es2015).js} (100%) rename tests/baselines/reference/{noErrorUsingImportExportModuleAugmentationInDeclarationFile3.symbols => noErrorUsingImportExportModuleAugmentationInDeclarationFile3(target=es2015).symbols} (100%) rename tests/baselines/reference/{noErrorUsingImportExportModuleAugmentationInDeclarationFile3.types => noErrorUsingImportExportModuleAugmentationInDeclarationFile3(target=es2015).types} (100%) rename tests/baselines/reference/{noErrorUsingImportExportModuleAugmentationInDeclarationFile3.errors.txt => noErrorUsingImportExportModuleAugmentationInDeclarationFile3(target=es5).errors.txt} (100%) create mode 100644 tests/baselines/reference/noErrorUsingImportExportModuleAugmentationInDeclarationFile3(target=es5).js create mode 100644 tests/baselines/reference/noErrorUsingImportExportModuleAugmentationInDeclarationFile3(target=es5).symbols create mode 100644 tests/baselines/reference/noErrorUsingImportExportModuleAugmentationInDeclarationFile3(target=es5).types create mode 100644 tests/baselines/reference/noImplicitAnyLoopCrash(target=es2015).errors.txt create mode 100644 tests/baselines/reference/noImplicitAnyLoopCrash(target=es2015).js rename tests/baselines/reference/{noImplicitAnyLoopCrash.symbols => noImplicitAnyLoopCrash(target=es2015).symbols} (100%) rename tests/baselines/reference/{noImplicitAnyLoopCrash.types => noImplicitAnyLoopCrash(target=es2015).types} (100%) rename tests/baselines/reference/{noImplicitAnyLoopCrash.errors.txt => noImplicitAnyLoopCrash(target=es5).errors.txt} (100%) rename tests/baselines/reference/{noImplicitAnyLoopCrash.js => noImplicitAnyLoopCrash(target=es5).js} (100%) create mode 100644 tests/baselines/reference/noImplicitAnyLoopCrash(target=es5).symbols create mode 100644 tests/baselines/reference/noImplicitAnyLoopCrash(target=es5).types create mode 100644 tests/baselines/reference/operationsAvailableOnPromisedType(target=es2015).errors.txt create mode 100644 tests/baselines/reference/operationsAvailableOnPromisedType(target=es2015).js rename tests/baselines/reference/{operationsAvailableOnPromisedType.symbols => operationsAvailableOnPromisedType(target=es2015).symbols} (100%) rename tests/baselines/reference/{operationsAvailableOnPromisedType.types => operationsAvailableOnPromisedType(target=es2015).types} (100%) rename tests/baselines/reference/{operationsAvailableOnPromisedType.errors.txt => operationsAvailableOnPromisedType(target=es5).errors.txt} (100%) rename tests/baselines/reference/{operationsAvailableOnPromisedType.js => operationsAvailableOnPromisedType(target=es5).js} (100%) create mode 100644 tests/baselines/reference/operationsAvailableOnPromisedType(target=es5).symbols create mode 100644 tests/baselines/reference/operationsAvailableOnPromisedType(target=es5).types create mode 100644 tests/baselines/reference/optionalParamReferencingOtherParams2(target=es2015).errors.txt create mode 100644 tests/baselines/reference/optionalParamReferencingOtherParams2(target=es2015).js create mode 100644 tests/baselines/reference/optionalParamReferencingOtherParams2(target=es2015).symbols create mode 100644 tests/baselines/reference/optionalParamReferencingOtherParams2(target=es2015).types rename tests/baselines/reference/{optionalParamReferencingOtherParams2.errors.txt => optionalParamReferencingOtherParams2(target=es5).errors.txt} (100%) rename tests/baselines/reference/{optionalParamReferencingOtherParams2.js => optionalParamReferencingOtherParams2(target=es5).js} (100%) rename tests/baselines/reference/{optionalParamReferencingOtherParams2.symbols => optionalParamReferencingOtherParams2(target=es5).symbols} (100%) rename tests/baselines/reference/{optionalParamReferencingOtherParams2.types => optionalParamReferencingOtherParams2(target=es5).types} (100%) create mode 100644 tests/baselines/reference/parameterInitializersForwardReferencing(target=es2015).errors.txt create mode 100644 tests/baselines/reference/parameterInitializersForwardReferencing(target=es2015).js create mode 100644 tests/baselines/reference/parameterInitializersForwardReferencing(target=es2015).symbols rename tests/baselines/reference/{parameterInitializersForwardReferencing.types => parameterInitializersForwardReferencing(target=es2015).types} (100%) rename tests/baselines/reference/{parameterInitializersForwardReferencing.errors.txt => parameterInitializersForwardReferencing(target=es5).errors.txt} (100%) rename tests/baselines/reference/{parameterInitializersForwardReferencing.js => parameterInitializersForwardReferencing(target=es5).js} (100%) rename tests/baselines/reference/{parameterInitializersForwardReferencing.symbols => parameterInitializersForwardReferencing(target=es5).symbols} (100%) create mode 100644 tests/baselines/reference/parameterInitializersForwardReferencing(target=es5).types create mode 100644 tests/baselines/reference/parameterInitializersForwardReferencing1(target=es2015).errors.txt create mode 100644 tests/baselines/reference/parameterInitializersForwardReferencing1(target=es2015).js create mode 100644 tests/baselines/reference/parameterInitializersForwardReferencing1(target=es2015).symbols create mode 100644 tests/baselines/reference/parameterInitializersForwardReferencing1(target=es2015).types rename tests/baselines/reference/{parameterInitializersForwardReferencing1.errors.txt => parameterInitializersForwardReferencing1(target=es5).errors.txt} (100%) rename tests/baselines/reference/{parameterInitializersForwardReferencing1.js => parameterInitializersForwardReferencing1(target=es5).js} (100%) rename tests/baselines/reference/{parameterInitializersForwardReferencing1.symbols => parameterInitializersForwardReferencing1(target=es5).symbols} (100%) rename tests/baselines/reference/{parameterInitializersForwardReferencing1.types => parameterInitializersForwardReferencing1(target=es5).types} (100%) create mode 100644 tests/baselines/reference/parserAstSpans1(target=es2015).errors.txt create mode 100644 tests/baselines/reference/parserAstSpans1(target=es2015).js rename tests/baselines/reference/{parserAstSpans1.symbols => parserAstSpans1(target=es2015).symbols} (100%) rename tests/baselines/reference/{parserAstSpans1.types => parserAstSpans1(target=es2015).types} (100%) rename tests/baselines/reference/{parserAstSpans1.errors.txt => parserAstSpans1(target=es5).errors.txt} (100%) rename tests/baselines/reference/{parserAstSpans1.js => parserAstSpans1(target=es5).js} (100%) create mode 100644 tests/baselines/reference/parserAstSpans1(target=es5).symbols create mode 100644 tests/baselines/reference/parserAstSpans1(target=es5).types create mode 100644 tests/baselines/reference/parserForInStatement8(target=es2015).errors.txt create mode 100644 tests/baselines/reference/parserForInStatement8(target=es2015).js rename tests/baselines/reference/{parserForInStatement8.symbols => parserForInStatement8(target=es2015).symbols} (100%) create mode 100644 tests/baselines/reference/parserForInStatement8(target=es2015).types rename tests/baselines/reference/{parserForInStatement8.errors.txt => parserForInStatement8(target=es5).errors.txt} (100%) rename tests/baselines/reference/{parserForInStatement8.js => parserForInStatement8(target=es5).js} (100%) create mode 100644 tests/baselines/reference/parserForInStatement8(target=es5).symbols rename tests/baselines/reference/{parserForInStatement8.types => parserForInStatement8(target=es5).types} (100%) create mode 100644 tests/baselines/reference/privateFieldAssignabilityFromUnknown(target=es2015).errors.txt create mode 100644 tests/baselines/reference/privateFieldAssignabilityFromUnknown(target=es2015).js rename tests/baselines/reference/{privateFieldAssignabilityFromUnknown.symbols => privateFieldAssignabilityFromUnknown(target=es2015).symbols} (100%) rename tests/baselines/reference/{privateFieldAssignabilityFromUnknown.types => privateFieldAssignabilityFromUnknown(target=es2015).types} (100%) rename tests/baselines/reference/{privateFieldAssignabilityFromUnknown.errors.txt => privateFieldAssignabilityFromUnknown(target=es5).errors.txt} (100%) rename tests/baselines/reference/{privateFieldAssignabilityFromUnknown.js => privateFieldAssignabilityFromUnknown(target=es5).js} (100%) create mode 100644 tests/baselines/reference/privateFieldAssignabilityFromUnknown(target=es5).symbols create mode 100644 tests/baselines/reference/privateFieldAssignabilityFromUnknown(target=es5).types create mode 100644 tests/baselines/reference/privateInstanceMemberAccessibility(target=es2015).errors.txt create mode 100644 tests/baselines/reference/privateInstanceMemberAccessibility(target=es2015).js rename tests/baselines/reference/{privateInstanceMemberAccessibility.symbols => privateInstanceMemberAccessibility(target=es2015).symbols} (100%) rename tests/baselines/reference/{privateInstanceMemberAccessibility.types => privateInstanceMemberAccessibility(target=es2015).types} (100%) rename tests/baselines/reference/{privateInstanceMemberAccessibility.errors.txt => privateInstanceMemberAccessibility(target=es5).errors.txt} (100%) rename tests/baselines/reference/{privateInstanceMemberAccessibility.js => privateInstanceMemberAccessibility(target=es5).js} (100%) create mode 100644 tests/baselines/reference/privateInstanceMemberAccessibility(target=es5).symbols create mode 100644 tests/baselines/reference/privateInstanceMemberAccessibility(target=es5).types create mode 100644 tests/baselines/reference/privateNameBadDeclaration(target=es2015).errors.txt create mode 100644 tests/baselines/reference/privateNameBadDeclaration(target=es2015).js rename tests/baselines/reference/{privateNameBadDeclaration.symbols => privateNameBadDeclaration(target=es2015).symbols} (100%) rename tests/baselines/reference/{privateNameBadDeclaration.types => privateNameBadDeclaration(target=es2015).types} (100%) rename tests/baselines/reference/{privateNameBadDeclaration.errors.txt => privateNameBadDeclaration(target=es5).errors.txt} (100%) rename tests/baselines/reference/{privateNameBadDeclaration.js => privateNameBadDeclaration(target=es5).js} (100%) create mode 100644 tests/baselines/reference/privateNameBadDeclaration(target=es5).symbols create mode 100644 tests/baselines/reference/privateNameBadDeclaration(target=es5).types create mode 100644 tests/baselines/reference/privateNameInObjectLiteral-3(target=es2015).errors.txt create mode 100644 tests/baselines/reference/privateNameInObjectLiteral-3(target=es2015).js rename tests/baselines/reference/{privateNameInObjectLiteral-3.symbols => privateNameInObjectLiteral-3(target=es2015).symbols} (100%) rename tests/baselines/reference/{privateNameInObjectLiteral-3.types => privateNameInObjectLiteral-3(target=es2015).types} (100%) rename tests/baselines/reference/{privateNameInObjectLiteral-3.errors.txt => privateNameInObjectLiteral-3(target=es5).errors.txt} (100%) rename tests/baselines/reference/{privateNameInObjectLiteral-3.js => privateNameInObjectLiteral-3(target=es5).js} (100%) create mode 100644 tests/baselines/reference/privateNameInObjectLiteral-3(target=es5).symbols create mode 100644 tests/baselines/reference/privateNameInObjectLiteral-3(target=es5).types create mode 100644 tests/baselines/reference/privateNameJsBadDeclaration(target=es2015).errors.txt rename tests/baselines/reference/{privateNameJsBadDeclaration.symbols => privateNameJsBadDeclaration(target=es2015).symbols} (100%) rename tests/baselines/reference/{privateNameJsBadDeclaration.types => privateNameJsBadDeclaration(target=es2015).types} (100%) rename tests/baselines/reference/{privateNameJsBadDeclaration.errors.txt => privateNameJsBadDeclaration(target=es5).errors.txt} (100%) create mode 100644 tests/baselines/reference/privateNameJsBadDeclaration(target=es5).symbols create mode 100644 tests/baselines/reference/privateNameJsBadDeclaration(target=es5).types create mode 100644 tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass3(target=es2015).errors.txt create mode 100644 tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass3(target=es2015).js rename tests/baselines/reference/{protectedClassPropertyAccessibleWithinSubclass3.symbols => protectedClassPropertyAccessibleWithinSubclass3(target=es2015).symbols} (100%) rename tests/baselines/reference/{protectedClassPropertyAccessibleWithinSubclass3.types => protectedClassPropertyAccessibleWithinSubclass3(target=es2015).types} (100%) rename tests/baselines/reference/{protectedClassPropertyAccessibleWithinSubclass3.errors.txt => protectedClassPropertyAccessibleWithinSubclass3(target=es5).errors.txt} (100%) rename tests/baselines/reference/{protectedClassPropertyAccessibleWithinSubclass3.js => protectedClassPropertyAccessibleWithinSubclass3(target=es5).js} (100%) create mode 100644 tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass3(target=es5).symbols create mode 100644 tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass3(target=es5).types create mode 100644 tests/baselines/reference/protectedInstanceMemberAccessibility(target=es2015).errors.txt create mode 100644 tests/baselines/reference/protectedInstanceMemberAccessibility(target=es2015).js rename tests/baselines/reference/{protectedInstanceMemberAccessibility.symbols => protectedInstanceMemberAccessibility(target=es2015).symbols} (100%) rename tests/baselines/reference/{protectedInstanceMemberAccessibility.types => protectedInstanceMemberAccessibility(target=es2015).types} (100%) rename tests/baselines/reference/{protectedInstanceMemberAccessibility.errors.txt => protectedInstanceMemberAccessibility(target=es5).errors.txt} (100%) rename tests/baselines/reference/{protectedInstanceMemberAccessibility.js => protectedInstanceMemberAccessibility(target=es5).js} (100%) create mode 100644 tests/baselines/reference/protectedInstanceMemberAccessibility(target=es5).symbols create mode 100644 tests/baselines/reference/protectedInstanceMemberAccessibility(target=es5).types create mode 100644 tests/baselines/reference/protectedStaticClassPropertyAccessibleWithinSubclass2(target=es2015).js rename tests/baselines/reference/{protectedStaticClassPropertyAccessibleWithinSubclass2.symbols => protectedStaticClassPropertyAccessibleWithinSubclass2(target=es2015).symbols} (100%) rename tests/baselines/reference/{protectedStaticClassPropertyAccessibleWithinSubclass2.types => protectedStaticClassPropertyAccessibleWithinSubclass2(target=es2015).types} (100%) rename tests/baselines/reference/{protectedStaticClassPropertyAccessibleWithinSubclass2.errors.txt => protectedStaticClassPropertyAccessibleWithinSubclass2(target=es5).errors.txt} (100%) rename tests/baselines/reference/{protectedStaticClassPropertyAccessibleWithinSubclass2.js => protectedStaticClassPropertyAccessibleWithinSubclass2(target=es5).js} (100%) create mode 100644 tests/baselines/reference/protectedStaticClassPropertyAccessibleWithinSubclass2(target=es5).symbols create mode 100644 tests/baselines/reference/protectedStaticClassPropertyAccessibleWithinSubclass2(target=es5).types create mode 100644 tests/baselines/reference/regularExpressionUnicodePropertyValueExpressionSuggestions(target=es2015).errors.txt create mode 100644 tests/baselines/reference/regularExpressionUnicodePropertyValueExpressionSuggestions(target=es2015).js rename tests/baselines/reference/{regularExpressionUnicodePropertyValueExpressionSuggestions.symbols => regularExpressionUnicodePropertyValueExpressionSuggestions(target=es2015).symbols} (100%) rename tests/baselines/reference/{regularExpressionUnicodePropertyValueExpressionSuggestions.types => regularExpressionUnicodePropertyValueExpressionSuggestions(target=es2015).types} (100%) rename tests/baselines/reference/{regularExpressionUnicodePropertyValueExpressionSuggestions.errors.txt => regularExpressionUnicodePropertyValueExpressionSuggestions(target=es5).errors.txt} (100%) rename tests/baselines/reference/{regularExpressionUnicodePropertyValueExpressionSuggestions.js => regularExpressionUnicodePropertyValueExpressionSuggestions(target=es5).js} (100%) create mode 100644 tests/baselines/reference/regularExpressionUnicodePropertyValueExpressionSuggestions(target=es5).symbols create mode 100644 tests/baselines/reference/regularExpressionUnicodePropertyValueExpressionSuggestions(target=es5).types create mode 100644 tests/baselines/reference/requireOfJsonFileWithModuleEmitNone(target=es2015).errors.txt rename tests/baselines/reference/{requireOfJsonFileWithModuleEmitNone.js => requireOfJsonFileWithModuleEmitNone(target=es2015).js} (100%) rename tests/baselines/reference/{requireOfJsonFileWithModuleEmitNone.symbols => requireOfJsonFileWithModuleEmitNone(target=es2015).symbols} (100%) rename tests/baselines/reference/{requireOfJsonFileWithModuleEmitNone.types => requireOfJsonFileWithModuleEmitNone(target=es2015).types} (100%) rename tests/baselines/reference/{requireOfJsonFileWithModuleEmitNone.errors.txt => requireOfJsonFileWithModuleEmitNone(target=es5).errors.txt} (100%) create mode 100644 tests/baselines/reference/requireOfJsonFileWithModuleEmitNone(target=es5).js create mode 100644 tests/baselines/reference/requireOfJsonFileWithModuleEmitNone(target=es5).symbols create mode 100644 tests/baselines/reference/requireOfJsonFileWithModuleEmitNone(target=es5).types create mode 100644 tests/baselines/reference/requireOfJsonFileWithModuleNodeResolutionEmitNone(target=es2015).errors.txt rename tests/baselines/reference/{requireOfJsonFileWithModuleNodeResolutionEmitNone.js => requireOfJsonFileWithModuleNodeResolutionEmitNone(target=es2015).js} (100%) rename tests/baselines/reference/{requireOfJsonFileWithModuleNodeResolutionEmitNone.symbols => requireOfJsonFileWithModuleNodeResolutionEmitNone(target=es2015).symbols} (100%) rename tests/baselines/reference/{requireOfJsonFileWithModuleNodeResolutionEmitNone.types => requireOfJsonFileWithModuleNodeResolutionEmitNone(target=es2015).types} (100%) rename tests/baselines/reference/{requireOfJsonFileWithModuleNodeResolutionEmitNone.errors.txt => requireOfJsonFileWithModuleNodeResolutionEmitNone(target=es5).errors.txt} (100%) create mode 100644 tests/baselines/reference/requireOfJsonFileWithModuleNodeResolutionEmitNone(target=es5).js create mode 100644 tests/baselines/reference/requireOfJsonFileWithModuleNodeResolutionEmitNone(target=es5).symbols create mode 100644 tests/baselines/reference/requireOfJsonFileWithModuleNodeResolutionEmitNone(target=es5).types create mode 100644 tests/baselines/reference/restElementWithNullInitializer(target=es2015).errors.txt create mode 100644 tests/baselines/reference/restElementWithNullInitializer(target=es2015).js rename tests/baselines/reference/{restElementWithNullInitializer.symbols => restElementWithNullInitializer(target=es2015).symbols} (100%) rename tests/baselines/reference/{restElementWithNullInitializer.types => restElementWithNullInitializer(target=es2015).types} (100%) rename tests/baselines/reference/{restElementWithNullInitializer.errors.txt => restElementWithNullInitializer(target=es5).errors.txt} (100%) rename tests/baselines/reference/{restElementWithNullInitializer.js => restElementWithNullInitializer(target=es5).js} (100%) create mode 100644 tests/baselines/reference/restElementWithNullInitializer(target=es5).symbols create mode 100644 tests/baselines/reference/restElementWithNullInitializer(target=es5).types create mode 100644 tests/baselines/reference/restPropertyWithBindingPattern(target=es2015).errors.txt rename tests/baselines/reference/{restPropertyWithBindingPattern.js => restPropertyWithBindingPattern(target=es2015).js} (100%) rename tests/baselines/reference/{restPropertyWithBindingPattern.symbols => restPropertyWithBindingPattern(target=es2015).symbols} (100%) rename tests/baselines/reference/{restPropertyWithBindingPattern.types => restPropertyWithBindingPattern(target=es2015).types} (100%) rename tests/baselines/reference/{restPropertyWithBindingPattern.errors.txt => restPropertyWithBindingPattern(target=es5).errors.txt} (100%) create mode 100644 tests/baselines/reference/restPropertyWithBindingPattern(target=es5).js create mode 100644 tests/baselines/reference/restPropertyWithBindingPattern(target=es5).symbols create mode 100644 tests/baselines/reference/restPropertyWithBindingPattern(target=es5).types create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringForArrayBindingPattern(target=es2015).errors.txt create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringForArrayBindingPattern(target=es2015).js create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringForArrayBindingPattern(target=es2015).js.map create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringForArrayBindingPattern(target=es2015).sourcemap.txt rename tests/baselines/reference/{sourceMapValidationDestructuringForArrayBindingPattern.symbols => sourceMapValidationDestructuringForArrayBindingPattern(target=es2015).symbols} (100%) create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringForArrayBindingPattern(target=es2015).types rename tests/baselines/reference/{sourceMapValidationDestructuringForArrayBindingPattern.js => sourceMapValidationDestructuringForArrayBindingPattern(target=es5).js} (100%) rename tests/baselines/reference/{sourceMapValidationDestructuringForArrayBindingPattern.js.map => sourceMapValidationDestructuringForArrayBindingPattern(target=es5).js.map} (100%) rename tests/baselines/reference/{sourceMapValidationDestructuringForArrayBindingPattern.sourcemap.txt => sourceMapValidationDestructuringForArrayBindingPattern(target=es5).sourcemap.txt} (100%) create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringForArrayBindingPattern(target=es5).symbols rename tests/baselines/reference/{sourceMapValidationDestructuringForArrayBindingPattern.types => sourceMapValidationDestructuringForArrayBindingPattern(target=es5).types} (100%) create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringForArrayBindingPattern2(target=es2015).errors.txt create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringForArrayBindingPattern2(target=es2015).js create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringForArrayBindingPattern2(target=es2015).js.map create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringForArrayBindingPattern2(target=es2015).sourcemap.txt rename tests/baselines/reference/{sourceMapValidationDestructuringForArrayBindingPattern2.symbols => sourceMapValidationDestructuringForArrayBindingPattern2(target=es2015).symbols} (100%) create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringForArrayBindingPattern2(target=es2015).types rename tests/baselines/reference/{sourceMapValidationDestructuringForArrayBindingPattern2.js => sourceMapValidationDestructuringForArrayBindingPattern2(target=es5).js} (100%) rename tests/baselines/reference/{sourceMapValidationDestructuringForArrayBindingPattern2.js.map => sourceMapValidationDestructuringForArrayBindingPattern2(target=es5).js.map} (100%) rename tests/baselines/reference/{sourceMapValidationDestructuringForArrayBindingPattern2.sourcemap.txt => sourceMapValidationDestructuringForArrayBindingPattern2(target=es5).sourcemap.txt} (100%) create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringForArrayBindingPattern2(target=es5).symbols rename tests/baselines/reference/{sourceMapValidationDestructuringForArrayBindingPattern2.types => sourceMapValidationDestructuringForArrayBindingPattern2(target=es5).types} (100%) create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringForArrayBindingPatternDefaultValues(target=es2015).errors.txt create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringForArrayBindingPatternDefaultValues(target=es2015).js create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringForArrayBindingPatternDefaultValues(target=es2015).js.map create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringForArrayBindingPatternDefaultValues(target=es2015).sourcemap.txt rename tests/baselines/reference/{sourceMapValidationDestructuringForArrayBindingPatternDefaultValues.symbols => sourceMapValidationDestructuringForArrayBindingPatternDefaultValues(target=es2015).symbols} (100%) create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringForArrayBindingPatternDefaultValues(target=es2015).types rename tests/baselines/reference/{sourceMapValidationDestructuringForArrayBindingPatternDefaultValues.js => sourceMapValidationDestructuringForArrayBindingPatternDefaultValues(target=es5).js} (100%) rename tests/baselines/reference/{sourceMapValidationDestructuringForArrayBindingPatternDefaultValues.js.map => sourceMapValidationDestructuringForArrayBindingPatternDefaultValues(target=es5).js.map} (100%) rename tests/baselines/reference/{sourceMapValidationDestructuringForArrayBindingPatternDefaultValues.sourcemap.txt => sourceMapValidationDestructuringForArrayBindingPatternDefaultValues(target=es5).sourcemap.txt} (100%) create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringForArrayBindingPatternDefaultValues(target=es5).symbols rename tests/baselines/reference/{sourceMapValidationDestructuringForArrayBindingPatternDefaultValues.types => sourceMapValidationDestructuringForArrayBindingPatternDefaultValues(target=es5).types} (100%) create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringForArrayBindingPatternDefaultValues2(target=es2015).errors.txt create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringForArrayBindingPatternDefaultValues2(target=es2015).js create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringForArrayBindingPatternDefaultValues2(target=es2015).js.map create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringForArrayBindingPatternDefaultValues2(target=es2015).sourcemap.txt rename tests/baselines/reference/{sourceMapValidationDestructuringForArrayBindingPatternDefaultValues2.symbols => sourceMapValidationDestructuringForArrayBindingPatternDefaultValues2(target=es2015).symbols} (100%) create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringForArrayBindingPatternDefaultValues2(target=es2015).types rename tests/baselines/reference/{sourceMapValidationDestructuringForArrayBindingPatternDefaultValues2.js => sourceMapValidationDestructuringForArrayBindingPatternDefaultValues2(target=es5).js} (100%) rename tests/baselines/reference/{sourceMapValidationDestructuringForArrayBindingPatternDefaultValues2.js.map => sourceMapValidationDestructuringForArrayBindingPatternDefaultValues2(target=es5).js.map} (100%) rename tests/baselines/reference/{sourceMapValidationDestructuringForArrayBindingPatternDefaultValues2.sourcemap.txt => sourceMapValidationDestructuringForArrayBindingPatternDefaultValues2(target=es5).sourcemap.txt} (100%) create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringForArrayBindingPatternDefaultValues2(target=es5).symbols rename tests/baselines/reference/{sourceMapValidationDestructuringForArrayBindingPatternDefaultValues2.types => sourceMapValidationDestructuringForArrayBindingPatternDefaultValues2(target=es5).types} (100%) create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringForOfArrayBindingPattern(target=es2015).errors.txt create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringForOfArrayBindingPattern(target=es2015).js create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringForOfArrayBindingPattern(target=es2015).js.map create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringForOfArrayBindingPattern(target=es2015).sourcemap.txt rename tests/baselines/reference/{sourceMapValidationDestructuringForOfArrayBindingPattern.symbols => sourceMapValidationDestructuringForOfArrayBindingPattern(target=es2015).symbols} (100%) create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringForOfArrayBindingPattern(target=es2015).types rename tests/baselines/reference/{sourceMapValidationDestructuringForOfArrayBindingPattern.js => sourceMapValidationDestructuringForOfArrayBindingPattern(target=es5).js} (100%) rename tests/baselines/reference/{sourceMapValidationDestructuringForOfArrayBindingPattern.js.map => sourceMapValidationDestructuringForOfArrayBindingPattern(target=es5).js.map} (100%) rename tests/baselines/reference/{sourceMapValidationDestructuringForOfArrayBindingPattern.sourcemap.txt => sourceMapValidationDestructuringForOfArrayBindingPattern(target=es5).sourcemap.txt} (100%) create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringForOfArrayBindingPattern(target=es5).symbols rename tests/baselines/reference/{sourceMapValidationDestructuringForOfArrayBindingPattern.types => sourceMapValidationDestructuringForOfArrayBindingPattern(target=es5).types} (100%) create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringForOfArrayBindingPattern2(target=es2015).errors.txt create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringForOfArrayBindingPattern2(target=es2015).js create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringForOfArrayBindingPattern2(target=es2015).js.map create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringForOfArrayBindingPattern2(target=es2015).sourcemap.txt rename tests/baselines/reference/{sourceMapValidationDestructuringForOfArrayBindingPattern2.symbols => sourceMapValidationDestructuringForOfArrayBindingPattern2(target=es2015).symbols} (100%) create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringForOfArrayBindingPattern2(target=es2015).types rename tests/baselines/reference/{sourceMapValidationDestructuringForOfArrayBindingPattern2.js => sourceMapValidationDestructuringForOfArrayBindingPattern2(target=es5).js} (100%) rename tests/baselines/reference/{sourceMapValidationDestructuringForOfArrayBindingPattern2.js.map => sourceMapValidationDestructuringForOfArrayBindingPattern2(target=es5).js.map} (100%) rename tests/baselines/reference/{sourceMapValidationDestructuringForOfArrayBindingPattern2.sourcemap.txt => sourceMapValidationDestructuringForOfArrayBindingPattern2(target=es5).sourcemap.txt} (100%) create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringForOfArrayBindingPattern2(target=es5).symbols rename tests/baselines/reference/{sourceMapValidationDestructuringForOfArrayBindingPattern2.types => sourceMapValidationDestructuringForOfArrayBindingPattern2(target=es5).types} (100%) create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues(target=es2015).errors.txt create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues(target=es2015).js create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues(target=es2015).js.map create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues(target=es2015).sourcemap.txt rename tests/baselines/reference/{sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.symbols => sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues(target=es2015).symbols} (100%) create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues(target=es2015).types rename tests/baselines/reference/{sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.js => sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues(target=es5).js} (100%) rename tests/baselines/reference/{sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.js.map => sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues(target=es5).js.map} (100%) rename tests/baselines/reference/{sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.sourcemap.txt => sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues(target=es5).sourcemap.txt} (100%) create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues(target=es5).symbols rename tests/baselines/reference/{sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.types => sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues(target=es5).types} (100%) create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2(target=es2015).errors.txt create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2(target=es2015).js create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2(target=es2015).js.map create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2(target=es2015).sourcemap.txt rename tests/baselines/reference/{sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.symbols => sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2(target=es2015).symbols} (100%) create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2(target=es2015).types rename tests/baselines/reference/{sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.js => sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2(target=es5).js} (100%) rename tests/baselines/reference/{sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.js.map => sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2(target=es5).js.map} (100%) rename tests/baselines/reference/{sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.sourcemap.txt => sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2(target=es5).sourcemap.txt} (100%) create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2(target=es5).symbols rename tests/baselines/reference/{sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.types => sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2(target=es5).types} (100%) create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringForOfObjectBindingPattern(target=es2015).errors.txt create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringForOfObjectBindingPattern(target=es2015).js create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringForOfObjectBindingPattern(target=es2015).js.map create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringForOfObjectBindingPattern(target=es2015).sourcemap.txt create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringForOfObjectBindingPattern(target=es2015).symbols create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringForOfObjectBindingPattern(target=es2015).types rename tests/baselines/reference/{sourceMapValidationDestructuringForOfObjectBindingPattern.js => sourceMapValidationDestructuringForOfObjectBindingPattern(target=es5).js} (100%) rename tests/baselines/reference/{sourceMapValidationDestructuringForOfObjectBindingPattern.js.map => sourceMapValidationDestructuringForOfObjectBindingPattern(target=es5).js.map} (100%) rename tests/baselines/reference/{sourceMapValidationDestructuringForOfObjectBindingPattern.sourcemap.txt => sourceMapValidationDestructuringForOfObjectBindingPattern(target=es5).sourcemap.txt} (100%) rename tests/baselines/reference/{sourceMapValidationDestructuringForOfObjectBindingPattern.symbols => sourceMapValidationDestructuringForOfObjectBindingPattern(target=es5).symbols} (100%) rename tests/baselines/reference/{sourceMapValidationDestructuringForOfObjectBindingPattern.types => sourceMapValidationDestructuringForOfObjectBindingPattern(target=es5).types} (100%) create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringForOfObjectBindingPattern2(target=es2015).errors.txt create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringForOfObjectBindingPattern2(target=es2015).js create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringForOfObjectBindingPattern2(target=es2015).js.map create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringForOfObjectBindingPattern2(target=es2015).sourcemap.txt rename tests/baselines/reference/{sourceMapValidationDestructuringForOfObjectBindingPattern2.symbols => sourceMapValidationDestructuringForOfObjectBindingPattern2(target=es2015).symbols} (100%) create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringForOfObjectBindingPattern2(target=es2015).types rename tests/baselines/reference/{sourceMapValidationDestructuringForOfObjectBindingPattern2.js => sourceMapValidationDestructuringForOfObjectBindingPattern2(target=es5).js} (100%) rename tests/baselines/reference/{sourceMapValidationDestructuringForOfObjectBindingPattern2.js.map => sourceMapValidationDestructuringForOfObjectBindingPattern2(target=es5).js.map} (100%) rename tests/baselines/reference/{sourceMapValidationDestructuringForOfObjectBindingPattern2.sourcemap.txt => sourceMapValidationDestructuringForOfObjectBindingPattern2(target=es5).sourcemap.txt} (100%) create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringForOfObjectBindingPattern2(target=es5).symbols rename tests/baselines/reference/{sourceMapValidationDestructuringForOfObjectBindingPattern2.types => sourceMapValidationDestructuringForOfObjectBindingPattern2(target=es5).types} (100%) create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues(target=es2015).errors.txt create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues(target=es2015).js create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues(target=es2015).js.map create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues(target=es2015).sourcemap.txt create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues(target=es2015).symbols create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues(target=es2015).types rename tests/baselines/reference/{sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.js => sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues(target=es5).js} (100%) rename tests/baselines/reference/{sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.js.map => sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues(target=es5).js.map} (100%) rename tests/baselines/reference/{sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.sourcemap.txt => sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues(target=es5).sourcemap.txt} (100%) rename tests/baselines/reference/{sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.symbols => sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues(target=es5).symbols} (100%) rename tests/baselines/reference/{sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.types => sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues(target=es5).types} (100%) create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2(target=es2015).errors.txt create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2(target=es2015).js create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2(target=es2015).js.map create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2(target=es2015).sourcemap.txt rename tests/baselines/reference/{sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.symbols => sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2(target=es2015).symbols} (100%) create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2(target=es2015).types rename tests/baselines/reference/{sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.js => sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2(target=es5).js} (100%) rename tests/baselines/reference/{sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.js.map => sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2(target=es5).js.map} (100%) rename tests/baselines/reference/{sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.sourcemap.txt => sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2(target=es5).sourcemap.txt} (100%) create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2(target=es5).symbols rename tests/baselines/reference/{sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.types => sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2(target=es5).types} (100%) create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringParametertArrayBindingPattern(target=es2015).errors.txt create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringParametertArrayBindingPattern(target=es2015).js create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringParametertArrayBindingPattern(target=es2015).js.map create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringParametertArrayBindingPattern(target=es2015).sourcemap.txt rename tests/baselines/reference/{sourceMapValidationDestructuringParametertArrayBindingPattern.symbols => sourceMapValidationDestructuringParametertArrayBindingPattern(target=es2015).symbols} (100%) create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringParametertArrayBindingPattern(target=es2015).types rename tests/baselines/reference/{sourceMapValidationDestructuringParametertArrayBindingPattern.js => sourceMapValidationDestructuringParametertArrayBindingPattern(target=es5).js} (100%) rename tests/baselines/reference/{sourceMapValidationDestructuringParametertArrayBindingPattern.js.map => sourceMapValidationDestructuringParametertArrayBindingPattern(target=es5).js.map} (100%) rename tests/baselines/reference/{sourceMapValidationDestructuringParametertArrayBindingPattern.sourcemap.txt => sourceMapValidationDestructuringParametertArrayBindingPattern(target=es5).sourcemap.txt} (100%) create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringParametertArrayBindingPattern(target=es5).symbols rename tests/baselines/reference/{sourceMapValidationDestructuringParametertArrayBindingPattern.types => sourceMapValidationDestructuringParametertArrayBindingPattern(target=es5).types} (100%) create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringParametertArrayBindingPattern2(target=es2015).errors.txt create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringParametertArrayBindingPattern2(target=es2015).js create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringParametertArrayBindingPattern2(target=es2015).js.map create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringParametertArrayBindingPattern2(target=es2015).sourcemap.txt rename tests/baselines/reference/{sourceMapValidationDestructuringParametertArrayBindingPattern2.symbols => sourceMapValidationDestructuringParametertArrayBindingPattern2(target=es2015).symbols} (100%) create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringParametertArrayBindingPattern2(target=es2015).types rename tests/baselines/reference/{sourceMapValidationDestructuringParametertArrayBindingPattern2.js => sourceMapValidationDestructuringParametertArrayBindingPattern2(target=es5).js} (100%) rename tests/baselines/reference/{sourceMapValidationDestructuringParametertArrayBindingPattern2.js.map => sourceMapValidationDestructuringParametertArrayBindingPattern2(target=es5).js.map} (100%) rename tests/baselines/reference/{sourceMapValidationDestructuringParametertArrayBindingPattern2.sourcemap.txt => sourceMapValidationDestructuringParametertArrayBindingPattern2(target=es5).sourcemap.txt} (100%) create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringParametertArrayBindingPattern2(target=es5).symbols rename tests/baselines/reference/{sourceMapValidationDestructuringParametertArrayBindingPattern2.types => sourceMapValidationDestructuringParametertArrayBindingPattern2(target=es5).types} (100%) create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringParametertArrayBindingPatternDefaultValues(target=es2015).errors.txt create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringParametertArrayBindingPatternDefaultValues(target=es2015).js create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringParametertArrayBindingPatternDefaultValues(target=es2015).js.map create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringParametertArrayBindingPatternDefaultValues(target=es2015).sourcemap.txt rename tests/baselines/reference/{sourceMapValidationDestructuringParametertArrayBindingPatternDefaultValues.symbols => sourceMapValidationDestructuringParametertArrayBindingPatternDefaultValues(target=es2015).symbols} (100%) create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringParametertArrayBindingPatternDefaultValues(target=es2015).types rename tests/baselines/reference/{sourceMapValidationDestructuringParametertArrayBindingPatternDefaultValues.js => sourceMapValidationDestructuringParametertArrayBindingPatternDefaultValues(target=es5).js} (100%) rename tests/baselines/reference/{sourceMapValidationDestructuringParametertArrayBindingPatternDefaultValues.js.map => sourceMapValidationDestructuringParametertArrayBindingPatternDefaultValues(target=es5).js.map} (100%) rename tests/baselines/reference/{sourceMapValidationDestructuringParametertArrayBindingPatternDefaultValues.sourcemap.txt => sourceMapValidationDestructuringParametertArrayBindingPatternDefaultValues(target=es5).sourcemap.txt} (100%) create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringParametertArrayBindingPatternDefaultValues(target=es5).symbols rename tests/baselines/reference/{sourceMapValidationDestructuringParametertArrayBindingPatternDefaultValues.types => sourceMapValidationDestructuringParametertArrayBindingPatternDefaultValues(target=es5).types} (100%) create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringParametertArrayBindingPatternDefaultValues2(target=es2015).errors.txt create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringParametertArrayBindingPatternDefaultValues2(target=es2015).js create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringParametertArrayBindingPatternDefaultValues2(target=es2015).js.map create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringParametertArrayBindingPatternDefaultValues2(target=es2015).sourcemap.txt rename tests/baselines/reference/{sourceMapValidationDestructuringParametertArrayBindingPatternDefaultValues2.symbols => sourceMapValidationDestructuringParametertArrayBindingPatternDefaultValues2(target=es2015).symbols} (100%) create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringParametertArrayBindingPatternDefaultValues2(target=es2015).types rename tests/baselines/reference/{sourceMapValidationDestructuringParametertArrayBindingPatternDefaultValues2.js => sourceMapValidationDestructuringParametertArrayBindingPatternDefaultValues2(target=es5).js} (100%) rename tests/baselines/reference/{sourceMapValidationDestructuringParametertArrayBindingPatternDefaultValues2.js.map => sourceMapValidationDestructuringParametertArrayBindingPatternDefaultValues2(target=es5).js.map} (100%) rename tests/baselines/reference/{sourceMapValidationDestructuringParametertArrayBindingPatternDefaultValues2.sourcemap.txt => sourceMapValidationDestructuringParametertArrayBindingPatternDefaultValues2(target=es5).sourcemap.txt} (100%) create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringParametertArrayBindingPatternDefaultValues2(target=es5).symbols rename tests/baselines/reference/{sourceMapValidationDestructuringParametertArrayBindingPatternDefaultValues2.types => sourceMapValidationDestructuringParametertArrayBindingPatternDefaultValues2(target=es5).types} (100%) create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPattern(target=es2015).errors.txt create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPattern(target=es2015).js create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPattern(target=es2015).js.map create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPattern(target=es2015).sourcemap.txt rename tests/baselines/reference/{sourceMapValidationDestructuringVariableStatementArrayBindingPattern.symbols => sourceMapValidationDestructuringVariableStatementArrayBindingPattern(target=es2015).symbols} (100%) rename tests/baselines/reference/{sourceMapValidationDestructuringVariableStatementArrayBindingPattern.types => sourceMapValidationDestructuringVariableStatementArrayBindingPattern(target=es2015).types} (100%) rename tests/baselines/reference/{sourceMapValidationDestructuringVariableStatementArrayBindingPattern.js => sourceMapValidationDestructuringVariableStatementArrayBindingPattern(target=es5).js} (100%) rename tests/baselines/reference/{sourceMapValidationDestructuringVariableStatementArrayBindingPattern.js.map => sourceMapValidationDestructuringVariableStatementArrayBindingPattern(target=es5).js.map} (100%) rename tests/baselines/reference/{sourceMapValidationDestructuringVariableStatementArrayBindingPattern.sourcemap.txt => sourceMapValidationDestructuringVariableStatementArrayBindingPattern(target=es5).sourcemap.txt} (100%) create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPattern(target=es5).symbols create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPattern(target=es5).types create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPattern2(target=es2015).errors.txt create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPattern2(target=es2015).js create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPattern2(target=es2015).js.map create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPattern2(target=es2015).sourcemap.txt rename tests/baselines/reference/{sourceMapValidationDestructuringVariableStatementArrayBindingPattern2.symbols => sourceMapValidationDestructuringVariableStatementArrayBindingPattern2(target=es2015).symbols} (100%) rename tests/baselines/reference/{sourceMapValidationDestructuringVariableStatementArrayBindingPattern2.types => sourceMapValidationDestructuringVariableStatementArrayBindingPattern2(target=es2015).types} (100%) rename tests/baselines/reference/{sourceMapValidationDestructuringVariableStatementArrayBindingPattern2.js => sourceMapValidationDestructuringVariableStatementArrayBindingPattern2(target=es5).js} (100%) rename tests/baselines/reference/{sourceMapValidationDestructuringVariableStatementArrayBindingPattern2.js.map => sourceMapValidationDestructuringVariableStatementArrayBindingPattern2(target=es5).js.map} (100%) rename tests/baselines/reference/{sourceMapValidationDestructuringVariableStatementArrayBindingPattern2.sourcemap.txt => sourceMapValidationDestructuringVariableStatementArrayBindingPattern2(target=es5).sourcemap.txt} (100%) create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPattern2(target=es5).symbols create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPattern2(target=es5).types create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPattern3(target=es2015).errors.txt create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPattern3(target=es2015).js create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPattern3(target=es2015).js.map create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPattern3(target=es2015).sourcemap.txt rename tests/baselines/reference/{sourceMapValidationDestructuringVariableStatementArrayBindingPattern3.symbols => sourceMapValidationDestructuringVariableStatementArrayBindingPattern3(target=es2015).symbols} (100%) create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPattern3(target=es2015).types rename tests/baselines/reference/{sourceMapValidationDestructuringVariableStatementArrayBindingPattern3.js => sourceMapValidationDestructuringVariableStatementArrayBindingPattern3(target=es5).js} (100%) rename tests/baselines/reference/{sourceMapValidationDestructuringVariableStatementArrayBindingPattern3.js.map => sourceMapValidationDestructuringVariableStatementArrayBindingPattern3(target=es5).js.map} (100%) rename tests/baselines/reference/{sourceMapValidationDestructuringVariableStatementArrayBindingPattern3.sourcemap.txt => sourceMapValidationDestructuringVariableStatementArrayBindingPattern3(target=es5).sourcemap.txt} (100%) create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPattern3(target=es5).symbols rename tests/baselines/reference/{sourceMapValidationDestructuringVariableStatementArrayBindingPattern3.types => sourceMapValidationDestructuringVariableStatementArrayBindingPattern3(target=es5).types} (100%) create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues(target=es2015).errors.txt create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues(target=es2015).js create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues(target=es2015).js.map create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues(target=es2015).sourcemap.txt rename tests/baselines/reference/{sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues.symbols => sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues(target=es2015).symbols} (100%) rename tests/baselines/reference/{sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues.types => sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues(target=es2015).types} (100%) rename tests/baselines/reference/{sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues.js => sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues(target=es5).js} (100%) rename tests/baselines/reference/{sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues.js.map => sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues(target=es5).js.map} (100%) rename tests/baselines/reference/{sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues.sourcemap.txt => sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues(target=es5).sourcemap.txt} (100%) create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues(target=es5).symbols create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues(target=es5).types create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues2(target=es2015).errors.txt create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues2(target=es2015).js create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues2(target=es2015).js.map create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues2(target=es2015).sourcemap.txt rename tests/baselines/reference/{sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues2.symbols => sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues2(target=es2015).symbols} (100%) rename tests/baselines/reference/{sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues2.types => sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues2(target=es2015).types} (100%) rename tests/baselines/reference/{sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues2.js => sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues2(target=es5).js} (100%) rename tests/baselines/reference/{sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues2.js.map => sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues2(target=es5).js.map} (100%) rename tests/baselines/reference/{sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues2.sourcemap.txt => sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues2(target=es5).sourcemap.txt} (100%) create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues2(target=es5).symbols create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues2(target=es5).types create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues3(target=es2015).errors.txt create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues3(target=es2015).js create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues3(target=es2015).js.map create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues3(target=es2015).sourcemap.txt rename tests/baselines/reference/{sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues3.symbols => sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues3(target=es2015).symbols} (100%) create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues3(target=es2015).types rename tests/baselines/reference/{sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues3.js => sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues3(target=es5).js} (100%) rename tests/baselines/reference/{sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues3.js.map => sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues3(target=es5).js.map} (100%) rename tests/baselines/reference/{sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues3.sourcemap.txt => sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues3(target=es5).sourcemap.txt} (100%) create mode 100644 tests/baselines/reference/sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues3(target=es5).symbols rename tests/baselines/reference/{sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues3.types => sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues3(target=es5).types} (100%) create mode 100644 tests/baselines/reference/strictNullEmptyDestructuring(target=es2015).errors.txt create mode 100644 tests/baselines/reference/strictNullEmptyDestructuring(target=es2015).js rename tests/baselines/reference/{strictNullEmptyDestructuring.symbols => strictNullEmptyDestructuring(target=es2015).symbols} (100%) rename tests/baselines/reference/{strictNullEmptyDestructuring.types => strictNullEmptyDestructuring(target=es2015).types} (100%) rename tests/baselines/reference/{strictNullEmptyDestructuring.errors.txt => strictNullEmptyDestructuring(target=es5).errors.txt} (100%) rename tests/baselines/reference/{strictNullEmptyDestructuring.js => strictNullEmptyDestructuring(target=es5).js} (100%) create mode 100644 tests/baselines/reference/strictNullEmptyDestructuring(target=es5).symbols create mode 100644 tests/baselines/reference/strictNullEmptyDestructuring(target=es5).types create mode 100644 tests/baselines/reference/superAccess(target=es2015).errors.txt create mode 100644 tests/baselines/reference/superAccess(target=es2015).js rename tests/baselines/reference/{superAccess.symbols => superAccess(target=es2015).symbols} (100%) rename tests/baselines/reference/{superAccess.types => superAccess(target=es2015).types} (100%) rename tests/baselines/reference/{superAccess.errors.txt => superAccess(target=es5).errors.txt} (100%) rename tests/baselines/reference/{superAccess.js => superAccess(target=es5).js} (100%) create mode 100644 tests/baselines/reference/superAccess(target=es5).symbols create mode 100644 tests/baselines/reference/superAccess(target=es5).types create mode 100644 tests/baselines/reference/superInLambdas(target=es2015).errors.txt create mode 100644 tests/baselines/reference/superInLambdas(target=es2015).js rename tests/baselines/reference/{superInLambdas.symbols => superInLambdas(target=es2015).symbols} (100%) rename tests/baselines/reference/{superInLambdas.types => superInLambdas(target=es2015).types} (100%) rename tests/baselines/reference/{superInLambdas.errors.txt => superInLambdas(target=es5).errors.txt} (100%) rename tests/baselines/reference/{superInLambdas.js => superInLambdas(target=es5).js} (100%) create mode 100644 tests/baselines/reference/superInLambdas(target=es5).symbols create mode 100644 tests/baselines/reference/superInLambdas(target=es5).types create mode 100644 tests/baselines/reference/superPropertyAccess(target=es2015).errors.txt create mode 100644 tests/baselines/reference/superPropertyAccess(target=es2015).js rename tests/baselines/reference/{superPropertyAccess.symbols => superPropertyAccess(target=es2015).symbols} (100%) rename tests/baselines/reference/{superPropertyAccess.types => superPropertyAccess(target=es2015).types} (100%) rename tests/baselines/reference/{superPropertyAccess.errors.txt => superPropertyAccess(target=es5).errors.txt} (100%) rename tests/baselines/reference/{superPropertyAccess.js => superPropertyAccess(target=es5).js} (100%) create mode 100644 tests/baselines/reference/superPropertyAccess(target=es5).symbols create mode 100644 tests/baselines/reference/superPropertyAccess(target=es5).types create mode 100644 tests/baselines/reference/superPropertyAccess1(target=es2015).js rename tests/baselines/reference/{superPropertyAccess1.symbols => superPropertyAccess1(target=es2015).symbols} (100%) rename tests/baselines/reference/{superPropertyAccess1.types => superPropertyAccess1(target=es2015).types} (100%) rename tests/baselines/reference/{superPropertyAccess1.errors.txt => superPropertyAccess1(target=es5).errors.txt} (100%) rename tests/baselines/reference/{superPropertyAccess1.js => superPropertyAccess1(target=es5).js} (100%) create mode 100644 tests/baselines/reference/superPropertyAccess1(target=es5).symbols create mode 100644 tests/baselines/reference/superPropertyAccess1(target=es5).types create mode 100644 tests/baselines/reference/superPropertyAccess2(target=es2015).errors.txt create mode 100644 tests/baselines/reference/superPropertyAccess2(target=es2015).js rename tests/baselines/reference/{superPropertyAccess2.symbols => superPropertyAccess2(target=es2015).symbols} (100%) rename tests/baselines/reference/{superPropertyAccess2.types => superPropertyAccess2(target=es2015).types} (100%) rename tests/baselines/reference/{superPropertyAccess2.errors.txt => superPropertyAccess2(target=es5).errors.txt} (100%) rename tests/baselines/reference/{superPropertyAccess2.js => superPropertyAccess2(target=es5).js} (100%) create mode 100644 tests/baselines/reference/superPropertyAccess2(target=es5).symbols create mode 100644 tests/baselines/reference/superPropertyAccess2(target=es5).types create mode 100644 tests/baselines/reference/super_inside-object-literal-getters-and-setters(target=es2015).errors.txt create mode 100644 tests/baselines/reference/super_inside-object-literal-getters-and-setters(target=es2015).js rename tests/baselines/reference/{super_inside-object-literal-getters-and-setters.symbols => super_inside-object-literal-getters-and-setters(target=es2015).symbols} (100%) rename tests/baselines/reference/{super_inside-object-literal-getters-and-setters.types => super_inside-object-literal-getters-and-setters(target=es2015).types} (100%) rename tests/baselines/reference/{super_inside-object-literal-getters-and-setters.errors.txt => super_inside-object-literal-getters-and-setters(target=es5).errors.txt} (100%) rename tests/baselines/reference/{super_inside-object-literal-getters-and-setters.js => super_inside-object-literal-getters-and-setters(target=es5).js} (100%) create mode 100644 tests/baselines/reference/super_inside-object-literal-getters-and-setters(target=es5).symbols create mode 100644 tests/baselines/reference/super_inside-object-literal-getters-and-setters(target=es5).types rename tests/baselines/reference/{thisInInvalidContextsExternalModule.errors.txt => thisInInvalidContextsExternalModule(target=es2015).errors.txt} (100%) create mode 100644 tests/baselines/reference/thisInInvalidContextsExternalModule(target=es2015).js rename tests/baselines/reference/{thisInInvalidContextsExternalModule.symbols => thisInInvalidContextsExternalModule(target=es2015).symbols} (100%) rename tests/baselines/reference/{thisInInvalidContextsExternalModule.types => thisInInvalidContextsExternalModule(target=es2015).types} (100%) create mode 100644 tests/baselines/reference/thisInInvalidContextsExternalModule(target=es5).errors.txt rename tests/baselines/reference/{thisInInvalidContextsExternalModule.js => thisInInvalidContextsExternalModule(target=es5).js} (100%) create mode 100644 tests/baselines/reference/thisInInvalidContextsExternalModule(target=es5).symbols create mode 100644 tests/baselines/reference/thisInInvalidContextsExternalModule(target=es5).types diff --git a/tests/baselines/reference/2dArrays.js b/tests/baselines/reference/2dArrays.js index 3c12da4a25ef8..f05603ad21ff5 100644 --- a/tests/baselines/reference/2dArrays.js +++ b/tests/baselines/reference/2dArrays.js @@ -18,24 +18,19 @@ class Board { } //// [2dArrays.js] -var Cell = /** @class */ (function () { - function Cell() { - } - return Cell; -}()); -var Ship = /** @class */ (function () { - function Ship() { +class Cell { +} +class Ship { + constructor() { this.isSunk = false; } - return Ship; -}()); -var Board = /** @class */ (function () { - function Board() { +} +class Board { + constructor() { this.ships = []; this.cells = []; } - Board.prototype.allShipsSunk = function () { + allShipsSunk() { return this.ships.every(function (val) { return val.isSunk; }); - }; - return Board; -}()); + } +} diff --git a/tests/baselines/reference/APISample_Watch.js b/tests/baselines/reference/APISample_Watch.js index 608d0e00a1dda..fcf4215205224 100644 --- a/tests/baselines/reference/APISample_Watch.js +++ b/tests/baselines/reference/APISample_Watch.js @@ -91,14 +91,14 @@ watchMain(); * Please log a "breaking change" issue for any API breaking change affecting this issue */ Object.defineProperty(exports, "__esModule", { value: true }); -var ts = require("typescript"); -var formatHost = { - getCanonicalFileName: function (path) { return path; }, +const ts = require("typescript"); +const formatHost = { + getCanonicalFileName: path => path, getCurrentDirectory: ts.sys.getCurrentDirectory, - getNewLine: function () { return ts.sys.newLine; }, + getNewLine: () => ts.sys.newLine, }; function watchMain() { - var configPath = ts.findConfigFile(/*searchPath*/ "./", ts.sys.fileExists, "tsconfig.json"); + const configPath = ts.findConfigFile(/*searchPath*/ "./", ts.sys.fileExists, "tsconfig.json"); if (!configPath) { throw new Error("Could not find a valid 'tsconfig.json'."); } @@ -112,16 +112,16 @@ function watchMain() { // Between `createEmitAndSemanticDiagnosticsBuilderProgram` and `createSemanticDiagnosticsBuilderProgram`, the only difference is emit. // For pure type-checking scenarios, or when another tool/process handles emit, using `createSemanticDiagnosticsBuilderProgram` may be more desirable. // Note that there is another overload for `createWatchCompilerHost` that takes a set of root files. - var host = ts.createWatchCompilerHost(configPath, {}, ts.sys, ts.createSemanticDiagnosticsBuilderProgram, reportDiagnostic, reportWatchStatusChanged); + const host = ts.createWatchCompilerHost(configPath, {}, ts.sys, ts.createSemanticDiagnosticsBuilderProgram, reportDiagnostic, reportWatchStatusChanged); // You can technically override any given hook on the host, though you probably don't need to. // Note that we're assuming `origCreateProgram` and `origPostProgramCreate` doesn't use `this` at all. - var origCreateProgram = host.createProgram; - host.createProgram = function (rootNames, options, host, oldProgram) { + const origCreateProgram = host.createProgram; + host.createProgram = (rootNames, options, host, oldProgram) => { console.log("** We're about to create the program! **"); return origCreateProgram(rootNames, options, host, oldProgram); }; - var origPostProgramCreate = host.afterProgramCreate; - host.afterProgramCreate = function (program) { + const origPostProgramCreate = host.afterProgramCreate; + host.afterProgramCreate = program => { console.log("** We finished making the program! **"); origPostProgramCreate(program); }; diff --git a/tests/baselines/reference/APISample_WatchWithDefaults.js b/tests/baselines/reference/APISample_WatchWithDefaults.js index 90e4ca2aa3a1e..eda1e3f02b960 100644 --- a/tests/baselines/reference/APISample_WatchWithDefaults.js +++ b/tests/baselines/reference/APISample_WatchWithDefaults.js @@ -63,9 +63,9 @@ watchMain(); * Please log a "breaking change" issue for any API breaking change affecting this issue */ Object.defineProperty(exports, "__esModule", { value: true }); -var ts = require("typescript"); +const ts = require("typescript"); function watchMain() { - var configPath = ts.findConfigFile(/*searchPath*/ "./", ts.sys.fileExists, "tsconfig.json"); + const configPath = ts.findConfigFile(/*searchPath*/ "./", ts.sys.fileExists, "tsconfig.json"); if (!configPath) { throw new Error("Could not find a valid 'tsconfig.json'."); } @@ -79,16 +79,16 @@ function watchMain() { // Between `createEmitAndSemanticDiagnosticsBuilderProgram` and `createSemanticDiagnosticsBuilderProgram`, the only difference is emit. // For pure type-checking scenarios, or when another tool/process handles emit, using `createSemanticDiagnosticsBuilderProgram` may be more desirable. // Note that there is another overload for `createWatchCompilerHost` that takes a set of root files. - var host = ts.createWatchCompilerHost(configPath, {}, ts.sys); + const host = ts.createWatchCompilerHost(configPath, {}, ts.sys); // You can technically override any given hook on the host, though you probably don't need to. // Note that we're assuming `origCreateProgram` and `origPostProgramCreate` doesn't use `this` at all. - var origCreateProgram = host.createProgram; - host.createProgram = function (rootNames, options, host, oldProgram) { + const origCreateProgram = host.createProgram; + host.createProgram = (rootNames, options, host, oldProgram) => { console.log("** We're about to create the program! **"); return origCreateProgram(rootNames, options, host, oldProgram); }; - var origPostProgramCreate = host.afterProgramCreate; - host.afterProgramCreate = function (program) { + const origPostProgramCreate = host.afterProgramCreate; + host.afterProgramCreate = program => { console.log("** We finished making the program! **"); origPostProgramCreate(program); }; diff --git a/tests/baselines/reference/APISample_WatchWithOwnWatchHost.js b/tests/baselines/reference/APISample_WatchWithOwnWatchHost.js index 2e010f62cd8b4..915dc80a8306e 100644 --- a/tests/baselines/reference/APISample_WatchWithOwnWatchHost.js +++ b/tests/baselines/reference/APISample_WatchWithOwnWatchHost.js @@ -70,18 +70,18 @@ watchMain(); * Please log a "breaking change" issue for any API breaking change affecting this issue */ Object.defineProperty(exports, "__esModule", { value: true }); -var ts = require("typescript"); +const ts = require("typescript"); function watchMain() { // get list of files and compiler options somehow - var files = []; - var options = {}; - var host = { + const files = []; + const options = {}; + const host = { rootFiles: files, - options: options, - useCaseSensitiveFileNames: function () { return ts.sys.useCaseSensitiveFileNames; }, - getNewLine: function () { return ts.sys.newLine; }, + options, + useCaseSensitiveFileNames: () => ts.sys.useCaseSensitiveFileNames, + getNewLine: () => ts.sys.newLine, getCurrentDirectory: ts.sys.getCurrentDirectory, - getDefaultLibFileName: function (options) { return ts.getDefaultLibFilePath(options); }, + getDefaultLibFileName: options => ts.getDefaultLibFilePath(options), fileExists: ts.sys.fileExists, readFile: ts.sys.readFile, directoryExists: ts.sys.directoryExists, @@ -94,13 +94,13 @@ function watchMain() { }; // You can technically override any given hook on the host, though you probably don't need to. // Note that we're assuming `origCreateProgram` and `origPostProgramCreate` doesn't use `this` at all. - var origCreateProgram = host.createProgram; - host.createProgram = function (rootNames, options, host, oldProgram) { + const origCreateProgram = host.createProgram; + host.createProgram = (rootNames, options, host, oldProgram) => { console.log("** We're about to create the program! **"); return origCreateProgram(rootNames, options, host, oldProgram); }; - var origPostProgramCreate = host.afterProgramCreate; - host.afterProgramCreate = function (program) { + const origPostProgramCreate = host.afterProgramCreate; + host.afterProgramCreate = program => { console.log("** We finished making the program! **"); origPostProgramCreate(program); }; diff --git a/tests/baselines/reference/APISample_compile.js b/tests/baselines/reference/APISample_compile.js index 5cee7192e3ef6..fdf4166c68525 100644 --- a/tests/baselines/reference/APISample_compile.js +++ b/tests/baselines/reference/APISample_compile.js @@ -55,22 +55,22 @@ compile(process.argv.slice(2), { */ Object.defineProperty(exports, "__esModule", { value: true }); exports.compile = compile; -var ts = require("typescript"); +const ts = require("typescript"); function compile(fileNames, options) { var program = ts.createProgram(fileNames, options); var emitResult = program.emit(); var allDiagnostics = ts.getPreEmitDiagnostics(program); - allDiagnostics.forEach(function (diagnostic) { + allDiagnostics.forEach(diagnostic => { var message = ts.flattenDiagnosticMessageText(diagnostic.messageText, '\n'); if (!diagnostic.file) { console.log(message); return; } - var _a = diagnostic.file.getLineAndCharacterOfPosition(diagnostic.start), line = _a.line, character = _a.character; - console.log("".concat(diagnostic.file.fileName, " (").concat(line + 1, ",").concat(character + 1, "): ").concat(message)); + var { line, character } = diagnostic.file.getLineAndCharacterOfPosition(diagnostic.start); + console.log(`${diagnostic.file.fileName} (${line + 1},${character + 1}): ${message}`); }); var exitCode = emitResult.emitSkipped ? 1 : 0; - console.log("Process exiting with code '".concat(exitCode, "'.")); + console.log(`Process exiting with code '${exitCode}'.`); process.exit(exitCode); } compile(process.argv.slice(2), { diff --git a/tests/baselines/reference/APISample_jsdoc.js b/tests/baselines/reference/APISample_jsdoc.js index 4454df333d826..a641c8825744e 100644 --- a/tests/baselines/reference/APISample_jsdoc.js +++ b/tests/baselines/reference/APISample_jsdoc.js @@ -163,26 +163,25 @@ var __importStar = (this && this.__importStar) || (function () { }; })(); Object.defineProperty(exports, "__esModule", { value: true }); -var ts = __importStar(require("typescript")); +const ts = __importStar(require("typescript")); // excerpted from https://github.com/YousefED/typescript-json-schema // (converted from a method and modified; for example, `this: any` to compensate, among other changes) function parseCommentsIntoDefinition(symbol, definition, otherAnnotations) { - var _this = this; if (!symbol) { return; } // the comments for a symbol - var comments = symbol.getDocumentationComment(undefined); + let comments = symbol.getDocumentationComment(undefined); if (comments.length) { - definition.description = comments.map(function (comment) { return comment.kind === "lineBreak" ? comment.text : comment.text.trim().replace(/\r\n/g, "\n"); }).join(""); + definition.description = comments.map(comment => comment.kind === "lineBreak" ? comment.text : comment.text.trim().replace(/\r\n/g, "\n")).join(""); } // jsdocs are separate from comments - var jsdocs = symbol.getJsDocTags(this.checker); - jsdocs.forEach(function (doc) { + const jsdocs = symbol.getJsDocTags(this.checker); + jsdocs.forEach(doc => { // if we have @TJS-... annotations, we have to parse them - var name = doc.name, text = doc.text; - if (_this.userValidationKeywords[name]) { - definition[name] = _this.parseValue(text); + const { name, text } = doc; + if (this.userValidationKeywords[name]) { + definition[name] = this.parseValue(text); } else { // special annotations @@ -191,17 +190,16 @@ function parseCommentsIntoDefinition(symbol, definition, otherAnnotations) { }); } function getAnnotations(node) { - var _this = this; - var symbol = node.symbol; + const symbol = node.symbol; if (!symbol) { return undefined; } - var jsDocTags = symbol.getJsDocTags(this.checker); + const jsDocTags = symbol.getJsDocTags(this.checker); if (!jsDocTags || !jsDocTags.length) { return undefined; } - var annotations = jsDocTags.reduce(function (result, jsDocTag) { - var value = _this.parseJsDocTag(jsDocTag); + const annotations = jsDocTags.reduce((result, jsDocTag) => { + const value = this.parseJsDocTag(jsDocTag); if (value !== undefined) { result[jsDocTag.name] = value; } @@ -215,13 +213,12 @@ function parseSpecificTags(node) { return ts.getJSDocParameterTags(node); } if (node.kind === ts.SyntaxKind.FunctionDeclaration) { - var func = node; + const func = node; if (ts.hasJSDocParameterTags(func)) { - var flat = []; - for (var _i = 0, _a = func.parameters.map(ts.getJSDocParameterTags); _i < _a.length; _i++) { - var tags = _a[_i]; + const flat = []; + for (const tags of func.parameters.map(ts.getJSDocParameterTags)) { if (tags) - flat.push.apply(flat, tags); + flat.push(...tags); } return flat; } @@ -231,7 +228,7 @@ function getReturnTypeFromJSDoc(node) { if (node.kind === ts.SyntaxKind.FunctionDeclaration) { return ts.getJSDocReturnType(node); } - var type = ts.getJSDocType(node); + let type = ts.getJSDocType(node); if (type && type.kind === ts.SyntaxKind.FunctionType) { return type.type; } @@ -240,11 +237,11 @@ function getAllTags(node) { ts.getJSDocTags(node); } function getSomeOtherTags(node) { - var tags = []; + const tags = []; tags.push(ts.getJSDocAugmentsTag(node)); tags.push(ts.getJSDocClassTag(node)); tags.push(ts.getJSDocReturnTag(node)); - var type = ts.getJSDocTypeTag(node); + const type = ts.getJSDocTypeTag(node); if (type) { tags.push(type); } diff --git a/tests/baselines/reference/APISample_linter.js b/tests/baselines/reference/APISample_linter.js index d51e23664055d..b0ed0df036d72 100644 --- a/tests/baselines/reference/APISample_linter.js +++ b/tests/baselines/reference/APISample_linter.js @@ -114,7 +114,7 @@ var __importStar = (this && this.__importStar) || (function () { })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.delint = delint; -var ts = __importStar(require("typescript")); +const ts = __importStar(require("typescript")); function delint(sourceFile) { delintNode(sourceFile); function delintNode(node) { @@ -128,7 +128,7 @@ function delint(sourceFile) { } break; case ts.SyntaxKind.IfStatement: - var ifStatement = node; + let ifStatement = node; if (ifStatement.thenStatement.kind !== ts.SyntaxKind.Block) { report(ifStatement.thenStatement, "An if statement's contents should be wrapped in a block body."); } @@ -139,7 +139,7 @@ function delint(sourceFile) { } break; case ts.SyntaxKind.BinaryExpression: - var op = node.operatorToken.kind; + let op = node.operatorToken.kind; if (op === ts.SyntaxKind.EqualsEqualsToken || op == ts.SyntaxKind.ExclamationEqualsToken) { report(node, "Use '===' and '!=='."); } @@ -148,14 +148,14 @@ function delint(sourceFile) { ts.forEachChild(node, delintNode); } function report(node, message) { - var _a = sourceFile.getLineAndCharacterOfPosition(node.getStart()), line = _a.line, character = _a.character; - console.log("".concat(sourceFile.fileName, " (").concat(line + 1, ",").concat(character + 1, "): ").concat(message)); + let { line, character } = sourceFile.getLineAndCharacterOfPosition(node.getStart()); + console.log(`${sourceFile.fileName} (${line + 1},${character + 1}): ${message}`); } } -var fileNames = process.argv.slice(2); -fileNames.forEach(function (fileName) { +const fileNames = process.argv.slice(2); +fileNames.forEach(fileName => { // Parse a file - var sourceFile = ts.createSourceFile(fileName, readFileSync(fileName).toString(), ts.ScriptTarget.ES2015, /*setParentNodes */ true); + let sourceFile = ts.createSourceFile(fileName, readFileSync(fileName).toString(), ts.ScriptTarget.ES2015, /*setParentNodes */ true); // delint it delint(sourceFile); }); diff --git a/tests/baselines/reference/APISample_parseConfig.js b/tests/baselines/reference/APISample_parseConfig.js index ed8e2c3f2bb1c..4359a0c275792 100644 --- a/tests/baselines/reference/APISample_parseConfig.js +++ b/tests/baselines/reference/APISample_parseConfig.js @@ -53,24 +53,23 @@ export function createProgram(rootFiles: string[], compilerOptionsJson: string): */ Object.defineProperty(exports, "__esModule", { value: true }); exports.createProgram = createProgram; -var ts = require("typescript"); +const ts = require("typescript"); function printError(error) { if (!error) { return; } - console.log("".concat(error.file && error.file.fileName, ": ").concat(error.messageText)); + console.log(`${error.file && error.file.fileName}: ${error.messageText}`); } function createProgram(rootFiles, compilerOptionsJson) { - var _a = ts.parseConfigFileTextToJson("tsconfig.json", compilerOptionsJson), config = _a.config, error = _a.error; + const { config, error } = ts.parseConfigFileTextToJson("tsconfig.json", compilerOptionsJson); if (error) { printError(error); return undefined; } - var basePath = process.cwd(); - var settings = ts.convertCompilerOptionsFromJson(config.config["compilerOptions"], basePath); + const basePath = process.cwd(); + const settings = ts.convertCompilerOptionsFromJson(config.config["compilerOptions"], basePath); if (!settings.options) { - for (var _i = 0, _b = settings.errors; _i < _b.length; _i++) { - var err = _b[_i]; + for (const err of settings.errors) { printError(err); } return undefined; diff --git a/tests/baselines/reference/APISample_transform.js b/tests/baselines/reference/APISample_transform.js index 773de798d07bc..38b2ccd05a3d3 100644 --- a/tests/baselines/reference/APISample_transform.js +++ b/tests/baselines/reference/APISample_transform.js @@ -65,7 +65,7 @@ var __importStar = (this && this.__importStar) || (function () { }; })(); Object.defineProperty(exports, "__esModule", { value: true }); -var ts = __importStar(require("typescript")); -var source = "let x: string = 'string'"; -var result = ts.transpile(source, { module: ts.ModuleKind.CommonJS }); +const ts = __importStar(require("typescript")); +const source = "let x: string = 'string'"; +let result = ts.transpile(source, { module: ts.ModuleKind.CommonJS }); console.log(JSON.stringify(result)); diff --git a/tests/baselines/reference/APISample_watcher.js b/tests/baselines/reference/APISample_watcher.js index e944e0d47b077..cf3cef8653a0d 100644 --- a/tests/baselines/reference/APISample_watcher.js +++ b/tests/baselines/reference/APISample_watcher.js @@ -160,37 +160,37 @@ var __importStar = (this && this.__importStar) || (function () { }; })(); Object.defineProperty(exports, "__esModule", { value: true }); -var ts = __importStar(require("typescript")); +const ts = __importStar(require("typescript")); function watch(rootFileNames, options) { - var files = {}; + const files = {}; // initialize the list of files - rootFileNames.forEach(function (fileName) { + rootFileNames.forEach(fileName => { files[fileName] = { version: 0 }; }); // Create the language service host to allow the LS to communicate with the host - var servicesHost = { - getScriptFileNames: function () { return rootFileNames; }, - getScriptVersion: function (fileName) { return files[fileName] && files[fileName].version.toString(); }, - getScriptSnapshot: function (fileName) { + const servicesHost = { + getScriptFileNames: () => rootFileNames, + getScriptVersion: (fileName) => files[fileName] && files[fileName].version.toString(), + getScriptSnapshot: (fileName) => { if (!fs.existsSync(fileName)) { return undefined; } return ts.ScriptSnapshot.fromString(fs.readFileSync(fileName).toString()); }, - getCurrentDirectory: function () { return process.cwd(); }, - getCompilationSettings: function () { return options; }, - getDefaultLibFileName: function (options) { return ts.getDefaultLibFilePath(options); }, - fileExists: function (fileName) { return fs.existsSync(fileName); }, - readFile: function (fileName) { return fs.readFileSync(fileName); }, + getCurrentDirectory: () => process.cwd(), + getCompilationSettings: () => options, + getDefaultLibFileName: (options) => ts.getDefaultLibFilePath(options), + fileExists: fileName => fs.existsSync(fileName), + readFile: fileName => fs.readFileSync(fileName), }; // Create the language service files - var services = ts.createLanguageService(servicesHost, ts.createDocumentRegistry()); + const services = ts.createLanguageService(servicesHost, ts.createDocumentRegistry()); // Now let's watch the files - rootFileNames.forEach(function (fileName) { + rootFileNames.forEach(fileName => { // First time around, emit all files emitFile(fileName); // Add a watch on the file to handle next change - fs.watchFile(fileName, { persistent: true, interval: 250 }, function (curr, prev) { + fs.watchFile(fileName, { persistent: true, interval: 250 }, (curr, prev) => { // Check timestamp if (+curr.mtime <= +prev.mtime) { return; @@ -202,36 +202,36 @@ function watch(rootFileNames, options) { }); }); function emitFile(fileName) { - var output = services.getEmitOutput(fileName); + let output = services.getEmitOutput(fileName); if (!output.emitSkipped) { - console.log("Emitting ".concat(fileName)); + console.log(`Emitting ${fileName}`); } else { - console.log("Emitting ".concat(fileName, " failed")); + console.log(`Emitting ${fileName} failed`); logErrors(fileName); } - output.outputFiles.forEach(function (o) { + output.outputFiles.forEach(o => { fs.writeFileSync(o.name, o.text, "utf8"); }); } function logErrors(fileName) { - var allDiagnostics = services.getCompilerOptionsDiagnostics() + let allDiagnostics = services.getCompilerOptionsDiagnostics() .concat(services.getSyntacticDiagnostics(fileName)) .concat(services.getSemanticDiagnostics(fileName)); - allDiagnostics.forEach(function (diagnostic) { - var message = ts.flattenDiagnosticMessageText(diagnostic.messageText, "\n"); + allDiagnostics.forEach(diagnostic => { + let message = ts.flattenDiagnosticMessageText(diagnostic.messageText, "\n"); if (diagnostic.file) { - var _a = diagnostic.file.getLineAndCharacterOfPosition(diagnostic.start), line = _a.line, character = _a.character; - console.log(" Error ".concat(diagnostic.file.fileName, " (").concat(line + 1, ",").concat(character + 1, "): ").concat(message)); + let { line, character } = diagnostic.file.getLineAndCharacterOfPosition(diagnostic.start); + console.log(` Error ${diagnostic.file.fileName} (${line + 1},${character + 1}): ${message}`); } else { - console.log(" Error: ".concat(message)); + console.log(` Error: ${message}`); } }); } } // Initialize files constituting the program as all .ts files in the current directory -var currentDirectoryFiles = fs.readdirSync(process.cwd()). - filter(function (fileName) { return fileName.length >= 3 && fileName.substr(fileName.length - 3, 3) === ".ts"; }); +const currentDirectoryFiles = fs.readdirSync(process.cwd()). + filter(fileName => fileName.length >= 3 && fileName.substr(fileName.length - 3, 3) === ".ts"); // Start the watcher watch(currentDirectoryFiles, { module: ts.ModuleKind.CommonJS }); diff --git a/tests/baselines/reference/AmbientModuleAndNonAmbientClassWithSameNameAndCommonRoot.js b/tests/baselines/reference/AmbientModuleAndNonAmbientClassWithSameNameAndCommonRoot.js index 5ae2a13fd7014..8c2439c14b9d5 100644 --- a/tests/baselines/reference/AmbientModuleAndNonAmbientClassWithSameNameAndCommonRoot.js +++ b/tests/baselines/reference/AmbientModuleAndNonAmbientClassWithSameNameAndCommonRoot.js @@ -25,13 +25,12 @@ var p = new A.Point(0, 0); // unexpected error here, bug 840000 //// [classPoint.js] var A; (function (A) { - var Point = /** @class */ (function () { - function Point(x, y) { + class Point { + constructor(x, y) { this.x = x; this.y = y; } - return Point; - }()); + } A.Point = Point; })(A || (A = {})); //// [test.js] diff --git a/tests/baselines/reference/ArrowFunction1.js b/tests/baselines/reference/ArrowFunction1.js index a29e21b1fb9c4..f234409cb52cf 100644 --- a/tests/baselines/reference/ArrowFunction1.js +++ b/tests/baselines/reference/ArrowFunction1.js @@ -6,5 +6,5 @@ var v = (a: ) => { }; //// [ArrowFunction1.js] -var v = function (a) { +var v = (a) => { }; diff --git a/tests/baselines/reference/ArrowFunction4.js b/tests/baselines/reference/ArrowFunction4.js index a60136f19c72f..309f54c2ef75f 100644 --- a/tests/baselines/reference/ArrowFunction4.js +++ b/tests/baselines/reference/ArrowFunction4.js @@ -6,5 +6,5 @@ var v = (a, b) => { }; //// [ArrowFunction4.js] -var v = function (a, b) { +var v = (a, b) => { }; diff --git a/tests/baselines/reference/ArrowFunctionExpression1.js b/tests/baselines/reference/ArrowFunctionExpression1.js index aa18c62926bd5..016e1dcf903cf 100644 --- a/tests/baselines/reference/ArrowFunctionExpression1.js +++ b/tests/baselines/reference/ArrowFunctionExpression1.js @@ -4,4 +4,4 @@ var v = (public x: string) => { }; //// [ArrowFunctionExpression1.js] -var v = function (x) { }; +var v = (x) => { }; diff --git a/tests/baselines/reference/ClassAndModuleThatMergeWithModuleMemberThatUsesClassTypeParameter.js b/tests/baselines/reference/ClassAndModuleThatMergeWithModuleMemberThatUsesClassTypeParameter.js index c338dc64e2b55..cbf1a04111177 100644 --- a/tests/baselines/reference/ClassAndModuleThatMergeWithModuleMemberThatUsesClassTypeParameter.js +++ b/tests/baselines/reference/ClassAndModuleThatMergeWithModuleMemberThatUsesClassTypeParameter.js @@ -53,44 +53,26 @@ namespace clodule4 { //// [ClassAndModuleThatMergeWithModuleMemberThatUsesClassTypeParameter.js] // all expected to be errors -var clodule1 = /** @class */ (function () { - function clodule1() { - } - return clodule1; -}()); +class clodule1 { +} (function (clodule1) { function f(x) { } })(clodule1 || (clodule1 = {})); -var clodule2 = /** @class */ (function () { - function clodule2() { - } - return clodule2; -}()); +class clodule2 { +} (function (clodule2) { var x; - var D = /** @class */ (function () { - function D() { - } - return D; - }()); -})(clodule2 || (clodule2 = {})); -var clodule3 = /** @class */ (function () { - function clodule3() { + class D { } - return clodule3; -}()); +})(clodule2 || (clodule2 = {})); +class clodule3 { +} (function (clodule3) { clodule3.y = { id: T }; })(clodule3 || (clodule3 = {})); -var clodule4 = /** @class */ (function () { - function clodule4() { - } - return clodule4; -}()); +class clodule4 { +} (function (clodule4) { - var D = /** @class */ (function () { - function D() { - } - return D; - }()); + class D { + } })(clodule4 || (clodule4 = {})); diff --git a/tests/baselines/reference/ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndGenericClassStaticFunctionOfTheSameName.js b/tests/baselines/reference/ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndGenericClassStaticFunctionOfTheSameName.js index e16c84c4342e5..1449486288f7f 100644 --- a/tests/baselines/reference/ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndGenericClassStaticFunctionOfTheSameName.js +++ b/tests/baselines/reference/ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndGenericClassStaticFunctionOfTheSameName.js @@ -18,12 +18,9 @@ namespace clodule { //// [ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndGenericClassStaticFunctionOfTheSameName.js] -var clodule = /** @class */ (function () { - function clodule() { - } - clodule.fn = function (id) { }; - return clodule; -}()); +class clodule { + static fn(id) { } +} (function (clodule) { // error: duplicate identifier expected function fn(x, y) { diff --git a/tests/baselines/reference/ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndNonGenericClassStaticFunctionOfTheSameName.js b/tests/baselines/reference/ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndNonGenericClassStaticFunctionOfTheSameName.js index 892a7e4c1ed5c..5298599c30959 100644 --- a/tests/baselines/reference/ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndNonGenericClassStaticFunctionOfTheSameName.js +++ b/tests/baselines/reference/ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndNonGenericClassStaticFunctionOfTheSameName.js @@ -18,12 +18,9 @@ namespace clodule { //// [ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndNonGenericClassStaticFunctionOfTheSameName.js] -var clodule = /** @class */ (function () { - function clodule() { - } - clodule.fn = function (id) { }; - return clodule; -}()); +class clodule { + static fn(id) { } +} (function (clodule) { // error: duplicate identifier expected function fn(x, y) { diff --git a/tests/baselines/reference/ClassAndModuleThatMergeWithModulesExportedStaticFunctionUsingClassPrivateStatics.js b/tests/baselines/reference/ClassAndModuleThatMergeWithModulesExportedStaticFunctionUsingClassPrivateStatics.js index c624c170d13e6..7f11ed4be75de 100644 --- a/tests/baselines/reference/ClassAndModuleThatMergeWithModulesExportedStaticFunctionUsingClassPrivateStatics.js +++ b/tests/baselines/reference/ClassAndModuleThatMergeWithModulesExportedStaticFunctionUsingClassPrivateStatics.js @@ -18,12 +18,9 @@ namespace clodule { //// [ClassAndModuleThatMergeWithModulesExportedStaticFunctionUsingClassPrivateStatics.js] -var clodule = /** @class */ (function () { - function clodule() { - } - clodule.sfn = function (id) { return 42; }; - return clodule; -}()); +class clodule { + static sfn(id) { return 42; } +} (function (clodule) { // error: duplicate identifier expected function fn(x, y) { diff --git a/tests/baselines/reference/ClassAndModuleThatMergeWithStaticFunctionAndExportedFunctionThatShareAName.js b/tests/baselines/reference/ClassAndModuleThatMergeWithStaticFunctionAndExportedFunctionThatShareAName.js index 0affe190c890c..85b02b32043b2 100644 --- a/tests/baselines/reference/ClassAndModuleThatMergeWithStaticFunctionAndExportedFunctionThatShareAName.js +++ b/tests/baselines/reference/ClassAndModuleThatMergeWithStaticFunctionAndExportedFunctionThatShareAName.js @@ -25,28 +25,26 @@ namespace A { } //// [ClassAndModuleThatMergeWithStaticFunctionAndExportedFunctionThatShareAName.js] -var Point = /** @class */ (function () { - function Point(x, y) { +class Point { + constructor(x, y) { this.x = x; this.y = y; } - Point.Origin = function () { return { x: 0, y: 0 }; }; // unexpected error here bug 840246 - return Point; -}()); + static Origin() { return { x: 0, y: 0 }; } // unexpected error here bug 840246 +} (function (Point) { function Origin() { return null; } //expected duplicate identifier error Point.Origin = Origin; })(Point || (Point = {})); var A; (function (A) { - var Point = /** @class */ (function () { - function Point(x, y) { + class Point { + constructor(x, y) { this.x = x; this.y = y; } - Point.Origin = function () { return { x: 0, y: 0 }; }; // unexpected error here bug 840246 - return Point; - }()); + static Origin() { return { x: 0, y: 0 }; } // unexpected error here bug 840246 + } A.Point = Point; (function (Point) { function Origin() { return ""; } //expected duplicate identifier error diff --git a/tests/baselines/reference/ClassAndModuleThatMergeWithStaticFunctionAndNonExportedFunctionThatShareAName.js b/tests/baselines/reference/ClassAndModuleThatMergeWithStaticFunctionAndNonExportedFunctionThatShareAName.js index 32359be4c4f0f..c414c47c7a8af 100644 --- a/tests/baselines/reference/ClassAndModuleThatMergeWithStaticFunctionAndNonExportedFunctionThatShareAName.js +++ b/tests/baselines/reference/ClassAndModuleThatMergeWithStaticFunctionAndNonExportedFunctionThatShareAName.js @@ -25,27 +25,25 @@ namespace A { } //// [ClassAndModuleThatMergeWithStaticFunctionAndNonExportedFunctionThatShareAName.js] -var Point = /** @class */ (function () { - function Point(x, y) { +class Point { + constructor(x, y) { this.x = x; this.y = y; } - Point.Origin = function () { return { x: 0, y: 0 }; }; - return Point; -}()); + static Origin() { return { x: 0, y: 0 }; } +} (function (Point) { function Origin() { return ""; } // not an error, since not exported })(Point || (Point = {})); var A; (function (A) { - var Point = /** @class */ (function () { - function Point(x, y) { + class Point { + constructor(x, y) { this.x = x; this.y = y; } - Point.Origin = function () { return { x: 0, y: 0 }; }; - return Point; - }()); + static Origin() { return { x: 0, y: 0 }; } + } A.Point = Point; (function (Point) { function Origin() { return ""; } // not an error since not exported diff --git a/tests/baselines/reference/ClassAndModuleThatMergeWithStaticVariableAndExportedVarThatShareAName.js b/tests/baselines/reference/ClassAndModuleThatMergeWithStaticVariableAndExportedVarThatShareAName.js index 6c04a594c133f..84158d29be56c 100644 --- a/tests/baselines/reference/ClassAndModuleThatMergeWithStaticVariableAndExportedVarThatShareAName.js +++ b/tests/baselines/reference/ClassAndModuleThatMergeWithStaticVariableAndExportedVarThatShareAName.js @@ -25,27 +25,25 @@ namespace A { } //// [ClassAndModuleThatMergeWithStaticVariableAndExportedVarThatShareAName.js] -var Point = /** @class */ (function () { - function Point(x, y) { +class Point { + constructor(x, y) { this.x = x; this.y = y; } - Point.Origin = { x: 0, y: 0 }; - return Point; -}()); +} +Point.Origin = { x: 0, y: 0 }; (function (Point) { Point.Origin = ""; //expected duplicate identifier error })(Point || (Point = {})); var A; (function (A) { - var Point = /** @class */ (function () { - function Point(x, y) { + class Point { + constructor(x, y) { this.x = x; this.y = y; } - Point.Origin = { x: 0, y: 0 }; - return Point; - }()); + } + Point.Origin = { x: 0, y: 0 }; A.Point = Point; (function (Point) { Point.Origin = ""; //expected duplicate identifier error diff --git a/tests/baselines/reference/ClassAndModuleThatMergeWithStaticVariableAndNonExportedVarThatShareAName.js b/tests/baselines/reference/ClassAndModuleThatMergeWithStaticVariableAndNonExportedVarThatShareAName.js index 62a5c6e1dacce..112ce1d162e11 100644 --- a/tests/baselines/reference/ClassAndModuleThatMergeWithStaticVariableAndNonExportedVarThatShareAName.js +++ b/tests/baselines/reference/ClassAndModuleThatMergeWithStaticVariableAndNonExportedVarThatShareAName.js @@ -25,27 +25,25 @@ namespace A { } //// [ClassAndModuleThatMergeWithStaticVariableAndNonExportedVarThatShareAName.js] -var Point = /** @class */ (function () { - function Point(x, y) { +class Point { + constructor(x, y) { this.x = x; this.y = y; } - Point.Origin = { x: 0, y: 0 }; - return Point; -}()); +} +Point.Origin = { x: 0, y: 0 }; (function (Point) { var Origin = ""; // not an error, since not exported })(Point || (Point = {})); var A; (function (A) { - var Point = /** @class */ (function () { - function Point(x, y) { + class Point { + constructor(x, y) { this.x = x; this.y = y; } - Point.Origin = { x: 0, y: 0 }; - return Point; - }()); + } + Point.Origin = { x: 0, y: 0 }; A.Point = Point; (function (Point) { var Origin = ""; // not an error since not exported diff --git a/tests/baselines/reference/ClassAndModuleWithSameNameAndCommonRoot.js b/tests/baselines/reference/ClassAndModuleWithSameNameAndCommonRoot.js index 283e2936197d0..6acfa440e20b2 100644 --- a/tests/baselines/reference/ClassAndModuleWithSameNameAndCommonRoot.js +++ b/tests/baselines/reference/ClassAndModuleWithSameNameAndCommonRoot.js @@ -45,13 +45,12 @@ var X; (function (X) { var Y; (function (Y) { - var Point = /** @class */ (function () { - function Point(x, y) { + class Point { + constructor(x, y) { this.x = x; this.y = y; } - return Point; - }()); + } Y.Point = Point; })(Y = X.Y || (X.Y = {})); })(X || (X = {})); @@ -60,7 +59,7 @@ var X; (function (X) { var Y; (function (Y) { - var Point; + let Point; (function (Point) { Point.Origin = new Point(0, 0); })(Point = Y.Point || (Y.Point = {})); @@ -71,11 +70,8 @@ var X; var cl = new X.Y.Point(1, 1); var cl = X.Y.Point.Origin; // error not expected here same as bug 83996 ? //// [simple.js] -var A = /** @class */ (function () { - function A() { - } - return A; -}()); +class A { +} (function (A) { A.Instance = new A(); })(A || (A = {})); diff --git a/tests/baselines/reference/ClassDeclaration10.js b/tests/baselines/reference/ClassDeclaration10.js index 5f73b8d33a788..3cb041d7a5b45 100644 --- a/tests/baselines/reference/ClassDeclaration10.js +++ b/tests/baselines/reference/ClassDeclaration10.js @@ -7,8 +7,5 @@ class C { } //// [ClassDeclaration10.js] -var C = /** @class */ (function () { - function C() { - } - return C; -}()); +class C { +} diff --git a/tests/baselines/reference/ClassDeclaration11.js b/tests/baselines/reference/ClassDeclaration11.js index e89e124dec1a2..2f42f600bf88b 100644 --- a/tests/baselines/reference/ClassDeclaration11.js +++ b/tests/baselines/reference/ClassDeclaration11.js @@ -7,9 +7,6 @@ class C { } //// [ClassDeclaration11.js] -var C = /** @class */ (function () { - function C() { - } - C.prototype.foo = function () { }; - return C; -}()); +class C { + foo() { } +} diff --git a/tests/baselines/reference/ClassDeclaration13.js b/tests/baselines/reference/ClassDeclaration13.js index f7d99956c17c3..371e91c0bc865 100644 --- a/tests/baselines/reference/ClassDeclaration13.js +++ b/tests/baselines/reference/ClassDeclaration13.js @@ -7,9 +7,6 @@ class C { } //// [ClassDeclaration13.js] -var C = /** @class */ (function () { - function C() { - } - C.prototype.bar = function () { }; - return C; -}()); +class C { + bar() { } +} diff --git a/tests/baselines/reference/ClassDeclaration14.js b/tests/baselines/reference/ClassDeclaration14.js index 151db74105a9b..3b62c34cf23fa 100644 --- a/tests/baselines/reference/ClassDeclaration14.js +++ b/tests/baselines/reference/ClassDeclaration14.js @@ -7,8 +7,5 @@ class C { } //// [ClassDeclaration14.js] -var C = /** @class */ (function () { - function C() { - } - return C; -}()); +class C { +} diff --git a/tests/baselines/reference/ClassDeclaration15.js b/tests/baselines/reference/ClassDeclaration15.js index e9b350b48b45f..f94caa3511ee2 100644 --- a/tests/baselines/reference/ClassDeclaration15.js +++ b/tests/baselines/reference/ClassDeclaration15.js @@ -7,8 +7,6 @@ class C { } //// [ClassDeclaration15.js] -var C = /** @class */ (function () { - function C() { - } - return C; -}()); +class C { + constructor() { } +} diff --git a/tests/baselines/reference/ClassDeclaration21.js b/tests/baselines/reference/ClassDeclaration21.js index 8dc2048f31532..3245fbc09db44 100644 --- a/tests/baselines/reference/ClassDeclaration21.js +++ b/tests/baselines/reference/ClassDeclaration21.js @@ -7,9 +7,6 @@ class C { } //// [ClassDeclaration21.js] -var C = /** @class */ (function () { - function C() { - } - C.prototype[1] = function () { }; - return C; -}()); +class C { + 1() { } +} diff --git a/tests/baselines/reference/ClassDeclaration22.js b/tests/baselines/reference/ClassDeclaration22.js index 4a03cf47b15f2..6fffe6f1ecb59 100644 --- a/tests/baselines/reference/ClassDeclaration22.js +++ b/tests/baselines/reference/ClassDeclaration22.js @@ -7,9 +7,6 @@ class C { } //// [ClassDeclaration22.js] -var C = /** @class */ (function () { - function C() { - } - C.prototype["bar"] = function () { }; - return C; -}()); +class C { + "bar"() { } +} diff --git a/tests/baselines/reference/ClassDeclaration24.js b/tests/baselines/reference/ClassDeclaration24.js index e248c088afd3f..52b44e71162a2 100644 --- a/tests/baselines/reference/ClassDeclaration24.js +++ b/tests/baselines/reference/ClassDeclaration24.js @@ -5,8 +5,5 @@ class any { } //// [ClassDeclaration24.js] -var any = /** @class */ (function () { - function any() { - } - return any; -}()); +class any { +} diff --git a/tests/baselines/reference/ClassDeclaration25.js b/tests/baselines/reference/ClassDeclaration25.js index 67283dc647c6e..3edb98403adb8 100644 --- a/tests/baselines/reference/ClassDeclaration25.js +++ b/tests/baselines/reference/ClassDeclaration25.js @@ -12,8 +12,5 @@ class List implements IList { //// [ClassDeclaration25.js] -var List = /** @class */ (function () { - function List() { - } - return List; -}()); +class List { +} diff --git a/tests/baselines/reference/ClassDeclaration26.js b/tests/baselines/reference/ClassDeclaration26.js index ff1c2fdd8ed52..ef0394713d52a 100644 --- a/tests/baselines/reference/ClassDeclaration26.js +++ b/tests/baselines/reference/ClassDeclaration26.js @@ -8,11 +8,10 @@ class C { } //// [ClassDeclaration26.js] -var C = /** @class */ (function () { - function C() { +class C { + constructor() { this.foo = 10; } - return C; -}()); +} var constructor; -(function () { }); +() => { }; diff --git a/tests/baselines/reference/ClassDeclaration8.js b/tests/baselines/reference/ClassDeclaration8.js index 3a288f769dac4..d8856c8acee9a 100644 --- a/tests/baselines/reference/ClassDeclaration8.js +++ b/tests/baselines/reference/ClassDeclaration8.js @@ -6,8 +6,5 @@ class C { } //// [ClassDeclaration8.js] -var C = /** @class */ (function () { - function C() { - } - return C; -}()); +class C { +} diff --git a/tests/baselines/reference/ClassDeclaration9.js b/tests/baselines/reference/ClassDeclaration9.js index 0fbf5c9ad7f6c..da185fe963361 100644 --- a/tests/baselines/reference/ClassDeclaration9.js +++ b/tests/baselines/reference/ClassDeclaration9.js @@ -6,8 +6,5 @@ class C { } //// [ClassDeclaration9.js] -var C = /** @class */ (function () { - function C() { - } - return C; -}()); +class C { +} diff --git a/tests/baselines/reference/ClassDeclarationWithInvalidConstOnPropertyDeclaration.js b/tests/baselines/reference/ClassDeclarationWithInvalidConstOnPropertyDeclaration.js index c359f9000369f..77788ce8d6f92 100644 --- a/tests/baselines/reference/ClassDeclarationWithInvalidConstOnPropertyDeclaration.js +++ b/tests/baselines/reference/ClassDeclarationWithInvalidConstOnPropertyDeclaration.js @@ -6,9 +6,6 @@ class AtomicNumbers { } //// [ClassDeclarationWithInvalidConstOnPropertyDeclaration.js] -var AtomicNumbers = /** @class */ (function () { - function AtomicNumbers() { - } - AtomicNumbers.H = 1; - return AtomicNumbers; -}()); +class AtomicNumbers { +} +AtomicNumbers.H = 1; diff --git a/tests/baselines/reference/ClassDeclarationWithInvalidConstOnPropertyDeclaration2.js b/tests/baselines/reference/ClassDeclarationWithInvalidConstOnPropertyDeclaration2.js index f4c93aafa39fa..40df79ce06b4e 100644 --- a/tests/baselines/reference/ClassDeclarationWithInvalidConstOnPropertyDeclaration2.js +++ b/tests/baselines/reference/ClassDeclarationWithInvalidConstOnPropertyDeclaration2.js @@ -7,9 +7,8 @@ class C { } //// [ClassDeclarationWithInvalidConstOnPropertyDeclaration2.js] -var C = /** @class */ (function () { - function C() { +class C { + constructor() { this.x = 10; } - return C; -}()); +} diff --git a/tests/baselines/reference/ES5For-of1.js b/tests/baselines/reference/ES5For-of1.js index 41d9072a7ae68..3ee566049805d 100644 --- a/tests/baselines/reference/ES5For-of1.js +++ b/tests/baselines/reference/ES5For-of1.js @@ -6,8 +6,7 @@ for (var v of ['a', 'b', 'c']) { } //// [ES5For-of1.js] -for (var _i = 0, _a = ['a', 'b', 'c']; _i < _a.length; _i++) { - var v = _a[_i]; +for (var v of ['a', 'b', 'c']) { console.log(v); } //# sourceMappingURL=ES5For-of1.js.map \ No newline at end of file diff --git a/tests/baselines/reference/ES5For-of1.js.map b/tests/baselines/reference/ES5For-of1.js.map index 983cd686fbb88..e486811b4b7e9 100644 --- a/tests/baselines/reference/ES5For-of1.js.map +++ b/tests/baselines/reference/ES5For-of1.js.map @@ -1,3 +1,3 @@ //// [ES5For-of1.js.map] -{"version":3,"file":"ES5For-of1.js","sourceRoot":"","sources":["ES5For-of1.ts"],"names":[],"mappings":"AAAA,KAAc,UAAe,EAAf,MAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAAf,cAAe,EAAf,IAAe,EAAE,CAAC;IAA3B,IAAI,CAAC,SAAA;IACN,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACnB,CAAC"} -//// https://sokra.github.io/source-map-visualization#base64,Zm9yICh2YXIgX2kgPSAwLCBfYSA9IFsnYScsICdiJywgJ2MnXTsgX2kgPCBfYS5sZW5ndGg7IF9pKyspIHsNCiAgICB2YXIgdiA9IF9hW19pXTsNCiAgICBjb25zb2xlLmxvZyh2KTsNCn0NCi8vIyBzb3VyY2VNYXBwaW5nVVJMPUVTNUZvci1vZjEuanMubWFw,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRVM1Rm9yLW9mMS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIkVTNUZvci1vZjEudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsS0FBYyxVQUFlLEVBQWYsTUFBQyxHQUFHLEVBQUUsR0FBRyxFQUFFLEdBQUcsQ0FBQyxFQUFmLGNBQWUsRUFBZixJQUFlLEVBQUUsQ0FBQztJQUEzQixJQUFJLENBQUMsU0FBQTtJQUNOLE9BQU8sQ0FBQyxHQUFHLENBQUMsQ0FBQyxDQUFDLENBQUM7QUFDbkIsQ0FBQyJ9,Zm9yICh2YXIgdiBvZiBbJ2EnLCAnYicsICdjJ10pIHsKICAgIGNvbnNvbGUubG9nKHYpOwp9 +{"version":3,"file":"ES5For-of1.js","sourceRoot":"","sources":["ES5For-of1.ts"],"names":[],"mappings":"AAAA,KAAK,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,CAAC;IAC5B,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACnB,CAAC"} +//// https://sokra.github.io/source-map-visualization#base64,Zm9yICh2YXIgdiBvZiBbJ2EnLCAnYicsICdjJ10pIHsNCiAgICBjb25zb2xlLmxvZyh2KTsNCn0NCi8vIyBzb3VyY2VNYXBwaW5nVVJMPUVTNUZvci1vZjEuanMubWFw,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRVM1Rm9yLW9mMS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIkVTNUZvci1vZjEudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsS0FBSyxJQUFJLENBQUMsSUFBSSxDQUFDLEdBQUcsRUFBRSxHQUFHLEVBQUUsR0FBRyxDQUFDLEVBQUUsQ0FBQztJQUM1QixPQUFPLENBQUMsR0FBRyxDQUFDLENBQUMsQ0FBQyxDQUFDO0FBQ25CLENBQUMifQ==,Zm9yICh2YXIgdiBvZiBbJ2EnLCAnYicsICdjJ10pIHsKICAgIGNvbnNvbGUubG9nKHYpOwp9 diff --git a/tests/baselines/reference/ES5For-of1.sourcemap.txt b/tests/baselines/reference/ES5For-of1.sourcemap.txt index 3ac3f01bea663..176f6b2207986 100644 --- a/tests/baselines/reference/ES5For-of1.sourcemap.txt +++ b/tests/baselines/reference/ES5For-of1.sourcemap.txt @@ -8,76 +8,52 @@ sources: ES5For-of1.ts emittedFile:ES5For-of1.js sourceFile:ES5For-of1.ts ------------------------------------------------------------------- ->>>for (var _i = 0, _a = ['a', 'b', 'c']; _i < _a.length; _i++) { +>>>for (var v of ['a', 'b', 'c']) { 1 > 2 >^^^^^ -3 > ^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^ -6 > ^^^ -7 > ^^ -8 > ^^^ -9 > ^^ -10> ^^^ -11> ^ -12> ^^ -13> ^^^^^^^^^^^^^^ -14> ^^ -15> ^^^^ -16> ^^ -17> ^ +3 > ^^^^ +4 > ^ +5 > ^^^^ +6 > ^ +7 > ^^^ +8 > ^^ +9 > ^^^ +10> ^^ +11> ^^^ +12> ^ +13> ^^ +14> ^ 1 > -2 >for (var v of -3 > ['a', 'b', 'c'] -4 > -5 > [ -6 > 'a' -7 > , -8 > 'b' -9 > , -10> 'c' -11> ] -12> -13> ['a', 'b', 'c'] -14> -15> ['a', 'b', 'c'] -16> ) -17> { +2 >for ( +3 > var +4 > v +5 > of +6 > [ +7 > 'a' +8 > , +9 > 'b' +10> , +11> 'c' +12> ] +13> ) +14> { 1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 6) Source(1, 15) + SourceIndex(0) -3 >Emitted(1, 16) Source(1, 30) + SourceIndex(0) -4 >Emitted(1, 18) Source(1, 15) + SourceIndex(0) -5 >Emitted(1, 24) Source(1, 16) + SourceIndex(0) -6 >Emitted(1, 27) Source(1, 19) + SourceIndex(0) -7 >Emitted(1, 29) Source(1, 21) + SourceIndex(0) -8 >Emitted(1, 32) Source(1, 24) + SourceIndex(0) -9 >Emitted(1, 34) Source(1, 26) + SourceIndex(0) -10>Emitted(1, 37) Source(1, 29) + SourceIndex(0) -11>Emitted(1, 38) Source(1, 30) + SourceIndex(0) -12>Emitted(1, 40) Source(1, 15) + SourceIndex(0) -13>Emitted(1, 54) Source(1, 30) + SourceIndex(0) -14>Emitted(1, 56) Source(1, 15) + SourceIndex(0) -15>Emitted(1, 60) Source(1, 30) + SourceIndex(0) -16>Emitted(1, 62) Source(1, 32) + SourceIndex(0) -17>Emitted(1, 63) Source(1, 33) + SourceIndex(0) ---- ->>> var v = _a[_i]; -1 >^^^^ -2 > ^^^^ -3 > ^ -4 > ^^^^^^^^^ -5 > ^^-> -1 > -2 > var -3 > v -4 > -1 >Emitted(2, 5) Source(1, 6) + SourceIndex(0) -2 >Emitted(2, 9) Source(1, 10) + SourceIndex(0) -3 >Emitted(2, 10) Source(1, 11) + SourceIndex(0) -4 >Emitted(2, 19) Source(1, 11) + SourceIndex(0) +2 >Emitted(1, 6) Source(1, 6) + SourceIndex(0) +3 >Emitted(1, 10) Source(1, 10) + SourceIndex(0) +4 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +5 >Emitted(1, 15) Source(1, 15) + SourceIndex(0) +6 >Emitted(1, 16) Source(1, 16) + SourceIndex(0) +7 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +8 >Emitted(1, 21) Source(1, 21) + SourceIndex(0) +9 >Emitted(1, 24) Source(1, 24) + SourceIndex(0) +10>Emitted(1, 26) Source(1, 26) + SourceIndex(0) +11>Emitted(1, 29) Source(1, 29) + SourceIndex(0) +12>Emitted(1, 30) Source(1, 30) + SourceIndex(0) +13>Emitted(1, 32) Source(1, 32) + SourceIndex(0) +14>Emitted(1, 33) Source(1, 33) + SourceIndex(0) --- >>> console.log(v); -1->^^^^ +1 >^^^^ 2 > ^^^^^^^ 3 > ^ 4 > ^^^ @@ -85,7 +61,7 @@ sourceFile:ES5For-of1.ts 6 > ^ 7 > ^ 8 > ^ -1-> of ['a', 'b', 'c']) { +1 > > 2 > console 3 > . @@ -94,14 +70,14 @@ sourceFile:ES5For-of1.ts 6 > v 7 > ) 8 > ; -1->Emitted(3, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(3, 12) Source(2, 12) + SourceIndex(0) -3 >Emitted(3, 13) Source(2, 13) + SourceIndex(0) -4 >Emitted(3, 16) Source(2, 16) + SourceIndex(0) -5 >Emitted(3, 17) Source(2, 17) + SourceIndex(0) -6 >Emitted(3, 18) Source(2, 18) + SourceIndex(0) -7 >Emitted(3, 19) Source(2, 19) + SourceIndex(0) -8 >Emitted(3, 20) Source(2, 20) + SourceIndex(0) +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +3 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) +4 >Emitted(2, 16) Source(2, 16) + SourceIndex(0) +5 >Emitted(2, 17) Source(2, 17) + SourceIndex(0) +6 >Emitted(2, 18) Source(2, 18) + SourceIndex(0) +7 >Emitted(2, 19) Source(2, 19) + SourceIndex(0) +8 >Emitted(2, 20) Source(2, 20) + SourceIndex(0) --- >>>} 1 > @@ -110,7 +86,7 @@ sourceFile:ES5For-of1.ts 1 > > 2 >} -1 >Emitted(4, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(4, 2) Source(3, 2) + SourceIndex(0) +1 >Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=ES5For-of1.js.map \ No newline at end of file diff --git a/tests/baselines/reference/ES5For-of10.js b/tests/baselines/reference/ES5For-of10.js index 434d9cacaa529..09bda2be87df8 100644 --- a/tests/baselines/reference/ES5For-of10.js +++ b/tests/baselines/reference/ES5For-of10.js @@ -13,10 +13,7 @@ for (foo().x of []) { function foo() { return { x: 0 }; } -for (var _i = 0, _a = []; _i < _a.length; _i++) { - foo().x = _a[_i]; - for (var _b = 0, _c = []; _b < _c.length; _b++) { - foo().x = _c[_b]; +for (foo().x of []) { + for (foo().x of []) var p = foo().x; - } } diff --git a/tests/baselines/reference/ES5For-of11.js b/tests/baselines/reference/ES5For-of11.js index c22ea957f644c..daa93fe417015 100644 --- a/tests/baselines/reference/ES5For-of11.js +++ b/tests/baselines/reference/ES5For-of11.js @@ -6,6 +6,4 @@ for (v of []) { } //// [ES5For-of11.js] var v; -for (var _i = 0, _a = []; _i < _a.length; _i++) { - v = _a[_i]; -} +for (v of []) { } diff --git a/tests/baselines/reference/ES5For-of12.js b/tests/baselines/reference/ES5For-of12.js index 39deefe2cce98..964a55195deef 100644 --- a/tests/baselines/reference/ES5For-of12.js +++ b/tests/baselines/reference/ES5For-of12.js @@ -4,6 +4,4 @@ for ([""] of [[""]]) { } //// [ES5For-of12.js] -for (var _i = 0, _a = [[""]]; _i < _a.length; _i++) { - "" = _a[_i][0]; -} +for ([""] of [[""]]) { } diff --git a/tests/baselines/reference/ES5For-of13.js b/tests/baselines/reference/ES5For-of13.js index fe1a0f41a0c9d..8a83fbe3810c2 100644 --- a/tests/baselines/reference/ES5For-of13.js +++ b/tests/baselines/reference/ES5For-of13.js @@ -6,8 +6,7 @@ for (let v of ['a', 'b', 'c']) { } //// [ES5For-of13.js] -for (var _i = 0, _a = ['a', 'b', 'c']; _i < _a.length; _i++) { - var v = _a[_i]; +for (let v of ['a', 'b', 'c']) { var x = v; } //# sourceMappingURL=ES5For-of13.js.map \ No newline at end of file diff --git a/tests/baselines/reference/ES5For-of13.js.map b/tests/baselines/reference/ES5For-of13.js.map index 89e9b0c0e74c5..8bc98cc2ca124 100644 --- a/tests/baselines/reference/ES5For-of13.js.map +++ b/tests/baselines/reference/ES5For-of13.js.map @@ -1,3 +1,3 @@ //// [ES5For-of13.js.map] -{"version":3,"file":"ES5For-of13.js","sourceRoot":"","sources":["ES5For-of13.ts"],"names":[],"mappings":"AAAA,KAAc,UAAe,EAAf,MAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAAf,cAAe,EAAf,IAAe,EAAE,CAAC;IAA3B,IAAI,CAAC,SAAA;IACN,IAAI,CAAC,GAAG,CAAC,CAAC;AACd,CAAC"} -//// https://sokra.github.io/source-map-visualization#base64,Zm9yICh2YXIgX2kgPSAwLCBfYSA9IFsnYScsICdiJywgJ2MnXTsgX2kgPCBfYS5sZW5ndGg7IF9pKyspIHsNCiAgICB2YXIgdiA9IF9hW19pXTsNCiAgICB2YXIgeCA9IHY7DQp9DQovLyMgc291cmNlTWFwcGluZ1VSTD1FUzVGb3Itb2YxMy5qcy5tYXA=,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRVM1Rm9yLW9mMTMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJFUzVGb3Itb2YxMy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxLQUFjLFVBQWUsRUFBZixNQUFDLEdBQUcsRUFBRSxHQUFHLEVBQUUsR0FBRyxDQUFDLEVBQWYsY0FBZSxFQUFmLElBQWUsRUFBRSxDQUFDO0lBQTNCLElBQUksQ0FBQyxTQUFBO0lBQ04sSUFBSSxDQUFDLEdBQUcsQ0FBQyxDQUFDO0FBQ2QsQ0FBQyJ9,Zm9yIChsZXQgdiBvZiBbJ2EnLCAnYicsICdjJ10pIHsKICAgIHZhciB4ID0gdjsKfQ== +{"version":3,"file":"ES5For-of13.js","sourceRoot":"","sources":["ES5For-of13.ts"],"names":[],"mappings":"AAAA,KAAK,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,CAAC;IAC5B,IAAI,CAAC,GAAG,CAAC,CAAC;AACd,CAAC"} +//// https://sokra.github.io/source-map-visualization#base64,Zm9yIChsZXQgdiBvZiBbJ2EnLCAnYicsICdjJ10pIHsNCiAgICB2YXIgeCA9IHY7DQp9DQovLyMgc291cmNlTWFwcGluZ1VSTD1FUzVGb3Itb2YxMy5qcy5tYXA=,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRVM1Rm9yLW9mMTMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJFUzVGb3Itb2YxMy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxLQUFLLElBQUksQ0FBQyxJQUFJLENBQUMsR0FBRyxFQUFFLEdBQUcsRUFBRSxHQUFHLENBQUMsRUFBRSxDQUFDO0lBQzVCLElBQUksQ0FBQyxHQUFHLENBQUMsQ0FBQztBQUNkLENBQUMifQ==,Zm9yIChsZXQgdiBvZiBbJ2EnLCAnYicsICdjJ10pIHsKICAgIHZhciB4ID0gdjsKfQ== diff --git a/tests/baselines/reference/ES5For-of13.sourcemap.txt b/tests/baselines/reference/ES5For-of13.sourcemap.txt index 59c7ac07319ca..497dd4ee6d519 100644 --- a/tests/baselines/reference/ES5For-of13.sourcemap.txt +++ b/tests/baselines/reference/ES5For-of13.sourcemap.txt @@ -8,72 +8,49 @@ sources: ES5For-of13.ts emittedFile:ES5For-of13.js sourceFile:ES5For-of13.ts ------------------------------------------------------------------- ->>>for (var _i = 0, _a = ['a', 'b', 'c']; _i < _a.length; _i++) { +>>>for (let v of ['a', 'b', 'c']) { 1 > 2 >^^^^^ -3 > ^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^ -6 > ^^^ -7 > ^^ -8 > ^^^ -9 > ^^ -10> ^^^ -11> ^ -12> ^^ -13> ^^^^^^^^^^^^^^ -14> ^^ -15> ^^^^ -16> ^^ -17> ^ +3 > ^^^^ +4 > ^ +5 > ^^^^ +6 > ^ +7 > ^^^ +8 > ^^ +9 > ^^^ +10> ^^ +11> ^^^ +12> ^ +13> ^^ +14> ^ 1 > -2 >for (let v of -3 > ['a', 'b', 'c'] -4 > -5 > [ -6 > 'a' -7 > , -8 > 'b' -9 > , -10> 'c' -11> ] -12> -13> ['a', 'b', 'c'] -14> -15> ['a', 'b', 'c'] -16> ) -17> { +2 >for ( +3 > let +4 > v +5 > of +6 > [ +7 > 'a' +8 > , +9 > 'b' +10> , +11> 'c' +12> ] +13> ) +14> { 1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 6) Source(1, 15) + SourceIndex(0) -3 >Emitted(1, 16) Source(1, 30) + SourceIndex(0) -4 >Emitted(1, 18) Source(1, 15) + SourceIndex(0) -5 >Emitted(1, 24) Source(1, 16) + SourceIndex(0) -6 >Emitted(1, 27) Source(1, 19) + SourceIndex(0) -7 >Emitted(1, 29) Source(1, 21) + SourceIndex(0) -8 >Emitted(1, 32) Source(1, 24) + SourceIndex(0) -9 >Emitted(1, 34) Source(1, 26) + SourceIndex(0) -10>Emitted(1, 37) Source(1, 29) + SourceIndex(0) -11>Emitted(1, 38) Source(1, 30) + SourceIndex(0) -12>Emitted(1, 40) Source(1, 15) + SourceIndex(0) -13>Emitted(1, 54) Source(1, 30) + SourceIndex(0) -14>Emitted(1, 56) Source(1, 15) + SourceIndex(0) -15>Emitted(1, 60) Source(1, 30) + SourceIndex(0) -16>Emitted(1, 62) Source(1, 32) + SourceIndex(0) -17>Emitted(1, 63) Source(1, 33) + SourceIndex(0) ---- ->>> var v = _a[_i]; -1 >^^^^ -2 > ^^^^ -3 > ^ -4 > ^^^^^^^^^ -1 > -2 > let -3 > v -4 > -1 >Emitted(2, 5) Source(1, 6) + SourceIndex(0) -2 >Emitted(2, 9) Source(1, 10) + SourceIndex(0) -3 >Emitted(2, 10) Source(1, 11) + SourceIndex(0) -4 >Emitted(2, 19) Source(1, 11) + SourceIndex(0) +2 >Emitted(1, 6) Source(1, 6) + SourceIndex(0) +3 >Emitted(1, 10) Source(1, 10) + SourceIndex(0) +4 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +5 >Emitted(1, 15) Source(1, 15) + SourceIndex(0) +6 >Emitted(1, 16) Source(1, 16) + SourceIndex(0) +7 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +8 >Emitted(1, 21) Source(1, 21) + SourceIndex(0) +9 >Emitted(1, 24) Source(1, 24) + SourceIndex(0) +10>Emitted(1, 26) Source(1, 26) + SourceIndex(0) +11>Emitted(1, 29) Source(1, 29) + SourceIndex(0) +12>Emitted(1, 30) Source(1, 30) + SourceIndex(0) +13>Emitted(1, 32) Source(1, 32) + SourceIndex(0) +14>Emitted(1, 33) Source(1, 33) + SourceIndex(0) --- >>> var x = v; 1 >^^^^ @@ -82,19 +59,19 @@ sourceFile:ES5For-of13.ts 4 > ^^^ 5 > ^ 6 > ^ -1 > of ['a', 'b', 'c']) { +1 > > 2 > var 3 > x 4 > = 5 > v 6 > ; -1 >Emitted(3, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(3, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(3, 10) Source(2, 10) + SourceIndex(0) -4 >Emitted(3, 13) Source(2, 13) + SourceIndex(0) -5 >Emitted(3, 14) Source(2, 14) + SourceIndex(0) -6 >Emitted(3, 15) Source(2, 15) + SourceIndex(0) +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) +5 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +6 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) --- >>>} 1 > @@ -103,7 +80,7 @@ sourceFile:ES5For-of13.ts 1 > > 2 >} -1 >Emitted(4, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(4, 2) Source(3, 2) + SourceIndex(0) +1 >Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=ES5For-of13.js.map \ No newline at end of file diff --git a/tests/baselines/reference/ES5For-of14.js b/tests/baselines/reference/ES5For-of14.js index 6e3c5a2ff5642..3e84ee916125a 100644 --- a/tests/baselines/reference/ES5For-of14.js +++ b/tests/baselines/reference/ES5For-of14.js @@ -6,7 +6,6 @@ for (const v of []) { } //// [ES5For-of14.js] -for (var _i = 0, _a = []; _i < _a.length; _i++) { - var v = _a[_i]; +for (const v of []) { var x = v; } diff --git a/tests/baselines/reference/ES5For-of15.js b/tests/baselines/reference/ES5For-of15.js index c9138b2974055..58d1ffb0dab23 100644 --- a/tests/baselines/reference/ES5For-of15.js +++ b/tests/baselines/reference/ES5For-of15.js @@ -9,11 +9,9 @@ for (let v of []) { } //// [ES5For-of15.js] -for (var _i = 0, _a = []; _i < _a.length; _i++) { - var v = _a[_i]; +for (let v of []) { v; - for (var _b = 0, _c = []; _b < _c.length; _b++) { - var v_1 = _c[_b]; - var x = v_1; + for (const v of []) { + var x = v; } } diff --git a/tests/baselines/reference/ES5For-of16.js b/tests/baselines/reference/ES5For-of16.js index 72a190faae400..199e8a861ca35 100644 --- a/tests/baselines/reference/ES5For-of16.js +++ b/tests/baselines/reference/ES5For-of16.js @@ -10,12 +10,10 @@ for (let v of []) { } //// [ES5For-of16.js] -for (var _i = 0, _a = []; _i < _a.length; _i++) { - var v = _a[_i]; +for (let v of []) { v; - for (var _b = 0, _c = []; _b < _c.length; _b++) { - var v_1 = _c[_b]; - var x = v_1; - v_1++; + for (let v of []) { + var x = v; + v++; } } diff --git a/tests/baselines/reference/ES5For-of17.js b/tests/baselines/reference/ES5For-of17.js index 807c5e5f879dc..71c348468a7ff 100644 --- a/tests/baselines/reference/ES5For-of17.js +++ b/tests/baselines/reference/ES5For-of17.js @@ -10,12 +10,10 @@ for (let v of []) { } //// [ES5For-of17.js] -for (var _i = 0, _a = []; _i < _a.length; _i++) { - var v = _a[_i]; +for (let v of []) { v; - for (var _b = 0, _c = [v_1]; _b < _c.length; _b++) { - var v_1 = _c[_b]; - var x = v_1; - v_1++; + for (let v of [v]) { + var x = v; + v++; } } diff --git a/tests/baselines/reference/ES5For-of18.js b/tests/baselines/reference/ES5For-of18.js index e120417cbb582..d68fda7a14662 100644 --- a/tests/baselines/reference/ES5For-of18.js +++ b/tests/baselines/reference/ES5For-of18.js @@ -10,11 +10,9 @@ for (let v of []) { //// [ES5For-of18.js] -for (var _i = 0, _a = []; _i < _a.length; _i++) { - var v = _a[_i]; +for (let v of []) { v; } -for (var _b = 0, _c = []; _b < _c.length; _b++) { - var v = _c[_b]; +for (let v of []) { v; } diff --git a/tests/baselines/reference/ES5For-of19.js b/tests/baselines/reference/ES5For-of19.js index fa2933b5c3390..5c3a9a9e90c3f 100644 --- a/tests/baselines/reference/ES5For-of19.js +++ b/tests/baselines/reference/ES5For-of19.js @@ -12,13 +12,11 @@ for (let v of []) { //// [ES5For-of19.js] -for (var _i = 0, _a = []; _i < _a.length; _i++) { - var v = _a[_i]; +for (let v of []) { v; function foo() { - for (var _i = 0, _a = []; _i < _a.length; _i++) { - var v_1 = _a[_i]; - v_1; + for (const v of []) { + v; } } } diff --git a/tests/baselines/reference/ES5For-of2.js b/tests/baselines/reference/ES5For-of2.js index a816e9a1abd21..4df827070fd14 100644 --- a/tests/baselines/reference/ES5For-of2.js +++ b/tests/baselines/reference/ES5For-of2.js @@ -6,7 +6,6 @@ for (var v of []) { } //// [ES5For-of2.js] -for (var _i = 0, _a = []; _i < _a.length; _i++) { - var v = _a[_i]; +for (var v of []) { var x = v; } diff --git a/tests/baselines/reference/ES5For-of20.js b/tests/baselines/reference/ES5For-of20.js index 2438413e2f2bd..f8315134bee34 100644 --- a/tests/baselines/reference/ES5For-of20.js +++ b/tests/baselines/reference/ES5For-of20.js @@ -9,11 +9,9 @@ for (let v of []) { } //// [ES5For-of20.js] -for (var _i = 0, _a = []; _i < _a.length; _i++) { - var v = _a[_i]; - var v_1; - for (var _b = 0, _c = [v_2]; _b < _c.length; _b++) { - var v_2 = _c[_b]; - var v_3; +for (let v of []) { + let v; + for (let v of [v]) { + const v; } } diff --git a/tests/baselines/reference/ES5For-of21.js b/tests/baselines/reference/ES5For-of21.js index 57cc47fbfc294..53c46d7b35453 100644 --- a/tests/baselines/reference/ES5For-of21.js +++ b/tests/baselines/reference/ES5For-of21.js @@ -6,9 +6,6 @@ for (let v of []) { } //// [ES5For-of21.js] -for (var _a = 0, _b = []; _a < _b.length; _a++) { - var v = _b[_a]; - for (var _c = 0, _d = []; _c < _d.length; _c++) { - var _i = _d[_c]; - } +for (let v of []) { + for (let _i of []) { } } diff --git a/tests/baselines/reference/ES5For-of22.js b/tests/baselines/reference/ES5For-of22.js index ad6e593985551..3d522b59363b0 100644 --- a/tests/baselines/reference/ES5For-of22.js +++ b/tests/baselines/reference/ES5For-of22.js @@ -7,8 +7,7 @@ for (var x of [1, 2, 3]) { } //// [ES5For-of22.js] -for (var _i = 0, _b = [1, 2, 3]; _i < _b.length; _i++) { - var x = _b[_i]; - var _a = 0; +for (var x of [1, 2, 3]) { + let _a = 0; console.log(x); } diff --git a/tests/baselines/reference/ES5For-of23.js b/tests/baselines/reference/ES5For-of23.js index 3082de8b084e0..e6a6acdcca266 100644 --- a/tests/baselines/reference/ES5For-of23.js +++ b/tests/baselines/reference/ES5For-of23.js @@ -7,8 +7,7 @@ for (var x of [1, 2, 3]) { } //// [ES5For-of23.js] -for (var _i = 0, _b = [1, 2, 3]; _i < _b.length; _i++) { - var x = _b[_i]; +for (var x of [1, 2, 3]) { var _a = 0; console.log(x); } diff --git a/tests/baselines/reference/ES5For-of24.js b/tests/baselines/reference/ES5For-of24.js index c7f4b85d84f49..aed1c5adbdf66 100644 --- a/tests/baselines/reference/ES5For-of24.js +++ b/tests/baselines/reference/ES5For-of24.js @@ -8,7 +8,6 @@ for (var v of a) { //// [ES5For-of24.js] var a = [1, 2, 3]; -for (var _i = 0, a_1 = a; _i < a_1.length; _i++) { - var v = a_1[_i]; - var a_2 = 0; +for (var v of a) { + let a = 0; } diff --git a/tests/baselines/reference/ES5For-of25.js b/tests/baselines/reference/ES5For-of25.js index d84336430159d..481e49092b250 100644 --- a/tests/baselines/reference/ES5For-of25.js +++ b/tests/baselines/reference/ES5For-of25.js @@ -9,8 +9,7 @@ for (var v of a) { //// [ES5For-of25.js] var a = [1, 2, 3]; -for (var _i = 0, a_1 = a; _i < a_1.length; _i++) { - var v = a_1[_i]; +for (var v of a) { v; a; } diff --git a/tests/baselines/reference/ES5For-of25.js.map b/tests/baselines/reference/ES5For-of25.js.map index 288ec798920c5..4cb55270ed3c6 100644 --- a/tests/baselines/reference/ES5For-of25.js.map +++ b/tests/baselines/reference/ES5For-of25.js.map @@ -1,3 +1,3 @@ //// [ES5For-of25.js.map] -{"version":3,"file":"ES5For-of25.js","sourceRoot":"","sources":["ES5For-of25.ts"],"names":[],"mappings":"AAAA,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;AAClB,KAAc,UAAC,EAAD,OAAC,EAAD,eAAC,EAAD,IAAC,EAAE,CAAC;IAAb,IAAI,CAAC,UAAA;IACN,CAAC,CAAC;IACF,CAAC,CAAC;AACN,CAAC"} -//// https://sokra.github.io/source-map-visualization#base64,dmFyIGEgPSBbMSwgMiwgM107DQpmb3IgKHZhciBfaSA9IDAsIGFfMSA9IGE7IF9pIDwgYV8xLmxlbmd0aDsgX2krKykgew0KICAgIHZhciB2ID0gYV8xW19pXTsNCiAgICB2Ow0KICAgIGE7DQp9DQovLyMgc291cmNlTWFwcGluZ1VSTD1FUzVGb3Itb2YyNS5qcy5tYXA=,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRVM1Rm9yLW9mMjUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJFUzVGb3Itb2YyNS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxJQUFJLENBQUMsR0FBRyxDQUFDLENBQUMsRUFBRSxDQUFDLEVBQUUsQ0FBQyxDQUFDLENBQUM7QUFDbEIsS0FBYyxVQUFDLEVBQUQsT0FBQyxFQUFELGVBQUMsRUFBRCxJQUFDLEVBQUUsQ0FBQztJQUFiLElBQUksQ0FBQyxVQUFBO0lBQ04sQ0FBQyxDQUFDO0lBQ0YsQ0FBQyxDQUFDO0FBQ04sQ0FBQyJ9,dmFyIGEgPSBbMSwgMiwgM107CmZvciAodmFyIHYgb2YgYSkgewogICAgdjsKICAgIGE7Cn0= +{"version":3,"file":"ES5For-of25.js","sourceRoot":"","sources":["ES5For-of25.ts"],"names":[],"mappings":"AAAA,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;AAClB,KAAK,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;IACd,CAAC,CAAC;IACF,CAAC,CAAC;AACN,CAAC"} +//// https://sokra.github.io/source-map-visualization#base64,dmFyIGEgPSBbMSwgMiwgM107DQpmb3IgKHZhciB2IG9mIGEpIHsNCiAgICB2Ow0KICAgIGE7DQp9DQovLyMgc291cmNlTWFwcGluZ1VSTD1FUzVGb3Itb2YyNS5qcy5tYXA=,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRVM1Rm9yLW9mMjUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJFUzVGb3Itb2YyNS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxJQUFJLENBQUMsR0FBRyxDQUFDLENBQUMsRUFBRSxDQUFDLEVBQUUsQ0FBQyxDQUFDLENBQUM7QUFDbEIsS0FBSyxJQUFJLENBQUMsSUFBSSxDQUFDLEVBQUUsQ0FBQztJQUNkLENBQUMsQ0FBQztJQUNGLENBQUMsQ0FBQztBQUNOLENBQUMifQ==,dmFyIGEgPSBbMSwgMiwgM107CmZvciAodmFyIHYgb2YgYSkgewogICAgdjsKICAgIGE7Cn0= diff --git a/tests/baselines/reference/ES5For-of25.sourcemap.txt b/tests/baselines/reference/ES5For-of25.sourcemap.txt index 345e2ac16ca52..12f7a2d129fc4 100644 --- a/tests/baselines/reference/ES5For-of25.sourcemap.txt +++ b/tests/baselines/reference/ES5For-of25.sourcemap.txt @@ -21,7 +21,7 @@ sourceFile:ES5For-of25.ts 10> ^ 11> ^ 12> ^ -13> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +13> ^-> 1 > 2 >var 3 > a @@ -47,68 +47,45 @@ sourceFile:ES5For-of25.ts 11>Emitted(1, 18) Source(1, 18) + SourceIndex(0) 12>Emitted(1, 19) Source(1, 19) + SourceIndex(0) --- ->>>for (var _i = 0, a_1 = a; _i < a_1.length; _i++) { +>>>for (var v of a) { 1-> 2 >^^^^^ -3 > ^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^ -8 > ^^ -9 > ^^^^ -10> ^^ -11> ^ +3 > ^^^^ +4 > ^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ 1-> > -2 >for (var v of -3 > a -4 > -5 > a -6 > -7 > a -8 > -9 > a -10> ) -11> { +2 >for ( +3 > var +4 > v +5 > of +6 > a +7 > ) +8 > { 1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(2, 6) Source(2, 15) + SourceIndex(0) -3 >Emitted(2, 16) Source(2, 16) + SourceIndex(0) -4 >Emitted(2, 18) Source(2, 15) + SourceIndex(0) -5 >Emitted(2, 25) Source(2, 16) + SourceIndex(0) -6 >Emitted(2, 27) Source(2, 15) + SourceIndex(0) -7 >Emitted(2, 42) Source(2, 16) + SourceIndex(0) -8 >Emitted(2, 44) Source(2, 15) + SourceIndex(0) -9 >Emitted(2, 48) Source(2, 16) + SourceIndex(0) -10>Emitted(2, 50) Source(2, 18) + SourceIndex(0) -11>Emitted(2, 51) Source(2, 19) + SourceIndex(0) ---- ->>> var v = a_1[_i]; -1 >^^^^ -2 > ^^^^ -3 > ^ -4 > ^^^^^^^^^^ -1 > -2 > var -3 > v -4 > -1 >Emitted(3, 5) Source(2, 6) + SourceIndex(0) -2 >Emitted(3, 9) Source(2, 10) + SourceIndex(0) -3 >Emitted(3, 10) Source(2, 11) + SourceIndex(0) -4 >Emitted(3, 20) Source(2, 11) + SourceIndex(0) +2 >Emitted(2, 6) Source(2, 6) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +6 >Emitted(2, 16) Source(2, 16) + SourceIndex(0) +7 >Emitted(2, 18) Source(2, 18) + SourceIndex(0) +8 >Emitted(2, 19) Source(2, 19) + SourceIndex(0) --- >>> v; 1 >^^^^ 2 > ^ 3 > ^ 4 > ^-> -1 > of a) { +1 > > 2 > v 3 > ; -1 >Emitted(4, 5) Source(3, 5) + SourceIndex(0) -2 >Emitted(4, 6) Source(3, 6) + SourceIndex(0) -3 >Emitted(4, 7) Source(3, 7) + SourceIndex(0) +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 6) Source(3, 6) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) --- >>> a; 1->^^^^ @@ -118,9 +95,9 @@ sourceFile:ES5For-of25.ts > 2 > a 3 > ; -1->Emitted(5, 5) Source(4, 5) + SourceIndex(0) -2 >Emitted(5, 6) Source(4, 6) + SourceIndex(0) -3 >Emitted(5, 7) Source(4, 7) + SourceIndex(0) +1->Emitted(4, 5) Source(4, 5) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 6) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 7) + SourceIndex(0) --- >>>} 1 > @@ -129,7 +106,7 @@ sourceFile:ES5For-of25.ts 1 > > 2 >} -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) +1 >Emitted(5, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(5, 2) Source(5, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=ES5For-of25.js.map \ No newline at end of file diff --git a/tests/baselines/reference/ES5For-of26(target=es2015).errors.txt b/tests/baselines/reference/ES5For-of26(target=es2015).errors.txt new file mode 100644 index 0000000000000..6227f31ed7c5e --- /dev/null +++ b/tests/baselines/reference/ES5For-of26(target=es2015).errors.txt @@ -0,0 +1,10 @@ +ES5For-of26.ts(1,10): error TS2488: Type 'number' must have a '[Symbol.iterator]()' method that returns an iterator. + + +==== ES5For-of26.ts (1 errors) ==== + for (var [a = 0, b = 1] of [2, 3]) { + ~~~~~~~~~~~~~~ +!!! error TS2488: Type 'number' must have a '[Symbol.iterator]()' method that returns an iterator. + a; + b; + } \ No newline at end of file diff --git a/tests/baselines/reference/ES5For-of26(target=es2015).js b/tests/baselines/reference/ES5For-of26(target=es2015).js new file mode 100644 index 0000000000000..9a37217bc7329 --- /dev/null +++ b/tests/baselines/reference/ES5For-of26(target=es2015).js @@ -0,0 +1,14 @@ +//// [tests/cases/conformance/statements/for-ofStatements/ES5For-of26.ts] //// + +//// [ES5For-of26.ts] +for (var [a = 0, b = 1] of [2, 3]) { + a; + b; +} + +//// [ES5For-of26.js] +for (var [a = 0, b = 1] of [2, 3]) { + a; + b; +} +//# sourceMappingURL=ES5For-of26.js.map \ No newline at end of file diff --git a/tests/baselines/reference/ES5For-of26(target=es2015).js.map b/tests/baselines/reference/ES5For-of26(target=es2015).js.map new file mode 100644 index 0000000000000..51d0525b9d6e4 --- /dev/null +++ b/tests/baselines/reference/ES5For-of26(target=es2015).js.map @@ -0,0 +1,3 @@ +//// [ES5For-of26.js.map] +{"version":3,"file":"ES5For-of26.js","sourceRoot":"","sources":["ES5For-of26.ts"],"names":[],"mappings":"AAAA,KAAK,IAAI,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC;IAChC,CAAC,CAAC;IACF,CAAC,CAAC;AACN,CAAC"} +//// https://sokra.github.io/source-map-visualization#base64,Zm9yICh2YXIgW2EgPSAwLCBiID0gMV0gb2YgWzIsIDNdKSB7DQogICAgYTsNCiAgICBiOw0KfQ0KLy8jIHNvdXJjZU1hcHBpbmdVUkw9RVM1Rm9yLW9mMjYuanMubWFw,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRVM1Rm9yLW9mMjYuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJFUzVGb3Itb2YyNi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxLQUFLLElBQUksQ0FBQyxDQUFDLEdBQUcsQ0FBQyxFQUFFLENBQUMsR0FBRyxDQUFDLENBQUMsSUFBSSxDQUFDLENBQUMsRUFBRSxDQUFDLENBQUMsRUFBRSxDQUFDO0lBQ2hDLENBQUMsQ0FBQztJQUNGLENBQUMsQ0FBQztBQUNOLENBQUMifQ==,Zm9yICh2YXIgW2EgPSAwLCBiID0gMV0gb2YgWzIsIDNdKSB7CiAgICBhOwogICAgYjsKfQ== diff --git a/tests/baselines/reference/ES5For-of26(target=es2015).sourcemap.txt b/tests/baselines/reference/ES5For-of26(target=es2015).sourcemap.txt new file mode 100644 index 0000000000000..162846607b68b --- /dev/null +++ b/tests/baselines/reference/ES5For-of26(target=es2015).sourcemap.txt @@ -0,0 +1,108 @@ +=================================================================== +JsFile: ES5For-of26.js +mapUrl: ES5For-of26.js.map +sourceRoot: +sources: ES5For-of26.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:ES5For-of26.js +sourceFile:ES5For-of26.ts +------------------------------------------------------------------- +>>>for (var [a = 0, b = 1] of [2, 3]) { +1 > +2 >^^^^^ +3 > ^^^^ +4 > ^ +5 > ^ +6 > ^^^ +7 > ^ +8 > ^^ +9 > ^ +10> ^^^ +11> ^ +12> ^ +13> ^^^^ +14> ^ +15> ^ +16> ^^ +17> ^ +18> ^ +19> ^^ +20> ^ +1 > +2 >for ( +3 > var +4 > [ +5 > a +6 > = +7 > 0 +8 > , +9 > b +10> = +11> 1 +12> ] +13> of +14> [ +15> 2 +16> , +17> 3 +18> ] +19> ) +20> { +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 6) Source(1, 6) + SourceIndex(0) +3 >Emitted(1, 10) Source(1, 10) + SourceIndex(0) +4 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +5 >Emitted(1, 12) Source(1, 12) + SourceIndex(0) +6 >Emitted(1, 15) Source(1, 15) + SourceIndex(0) +7 >Emitted(1, 16) Source(1, 16) + SourceIndex(0) +8 >Emitted(1, 18) Source(1, 18) + SourceIndex(0) +9 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +10>Emitted(1, 22) Source(1, 22) + SourceIndex(0) +11>Emitted(1, 23) Source(1, 23) + SourceIndex(0) +12>Emitted(1, 24) Source(1, 24) + SourceIndex(0) +13>Emitted(1, 28) Source(1, 28) + SourceIndex(0) +14>Emitted(1, 29) Source(1, 29) + SourceIndex(0) +15>Emitted(1, 30) Source(1, 30) + SourceIndex(0) +16>Emitted(1, 32) Source(1, 32) + SourceIndex(0) +17>Emitted(1, 33) Source(1, 33) + SourceIndex(0) +18>Emitted(1, 34) Source(1, 34) + SourceIndex(0) +19>Emitted(1, 36) Source(1, 36) + SourceIndex(0) +20>Emitted(1, 37) Source(1, 37) + SourceIndex(0) +--- +>>> a; +1 >^^^^ +2 > ^ +3 > ^ +4 > ^-> +1 > + > +2 > a +3 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 6) Source(2, 6) + SourceIndex(0) +3 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +--- +>>> b; +1->^^^^ +2 > ^ +3 > ^ +1-> + > +2 > b +3 > ; +1->Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 6) Source(3, 6) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 2) Source(4, 2) + SourceIndex(0) +--- +>>>//# sourceMappingURL=ES5For-of26.js.map \ No newline at end of file diff --git a/tests/baselines/reference/ES5For-of26.symbols b/tests/baselines/reference/ES5For-of26(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/ES5For-of26.symbols rename to tests/baselines/reference/ES5For-of26(target=es2015).symbols diff --git a/tests/baselines/reference/ES5For-of26.types b/tests/baselines/reference/ES5For-of26(target=es2015).types similarity index 100% rename from tests/baselines/reference/ES5For-of26.types rename to tests/baselines/reference/ES5For-of26(target=es2015).types diff --git a/tests/baselines/reference/ES5For-of26.errors.txt b/tests/baselines/reference/ES5For-of26(target=es5).errors.txt similarity index 100% rename from tests/baselines/reference/ES5For-of26.errors.txt rename to tests/baselines/reference/ES5For-of26(target=es5).errors.txt diff --git a/tests/baselines/reference/ES5For-of26.js b/tests/baselines/reference/ES5For-of26(target=es5).js similarity index 100% rename from tests/baselines/reference/ES5For-of26.js rename to tests/baselines/reference/ES5For-of26(target=es5).js diff --git a/tests/baselines/reference/ES5For-of26.js.map b/tests/baselines/reference/ES5For-of26(target=es5).js.map similarity index 100% rename from tests/baselines/reference/ES5For-of26.js.map rename to tests/baselines/reference/ES5For-of26(target=es5).js.map diff --git a/tests/baselines/reference/ES5For-of26.sourcemap.txt b/tests/baselines/reference/ES5For-of26(target=es5).sourcemap.txt similarity index 100% rename from tests/baselines/reference/ES5For-of26.sourcemap.txt rename to tests/baselines/reference/ES5For-of26(target=es5).sourcemap.txt diff --git a/tests/baselines/reference/ES5For-of26(target=es5).symbols b/tests/baselines/reference/ES5For-of26(target=es5).symbols new file mode 100644 index 0000000000000..d0d28e1b6d844 --- /dev/null +++ b/tests/baselines/reference/ES5For-of26(target=es5).symbols @@ -0,0 +1,13 @@ +//// [tests/cases/conformance/statements/for-ofStatements/ES5For-of26.ts] //// + +=== ES5For-of26.ts === +for (var [a = 0, b = 1] of [2, 3]) { +>a : Symbol(a, Decl(ES5For-of26.ts, 0, 10)) +>b : Symbol(b, Decl(ES5For-of26.ts, 0, 16)) + + a; +>a : Symbol(a, Decl(ES5For-of26.ts, 0, 10)) + + b; +>b : Symbol(b, Decl(ES5For-of26.ts, 0, 16)) +} diff --git a/tests/baselines/reference/ES5For-of26(target=es5).types b/tests/baselines/reference/ES5For-of26(target=es5).types new file mode 100644 index 0000000000000..2dd2a1af7852a --- /dev/null +++ b/tests/baselines/reference/ES5For-of26(target=es5).types @@ -0,0 +1,27 @@ +//// [tests/cases/conformance/statements/for-ofStatements/ES5For-of26.ts] //// + +=== ES5For-of26.ts === +for (var [a = 0, b = 1] of [2, 3]) { +>a : any +> : ^^^ +>0 : 0 +> : ^ +>b : any +> : ^^^ +>1 : 1 +> : ^ +>[2, 3] : number[] +> : ^^^^^^^^ +>2 : 2 +> : ^ +>3 : 3 +> : ^ + + a; +>a : any +> : ^^^ + + b; +>b : any +> : ^^^ +} diff --git a/tests/baselines/reference/ES5For-of27.js b/tests/baselines/reference/ES5For-of27.js index 28110b6177be7..1ca415339df70 100644 --- a/tests/baselines/reference/ES5For-of27.js +++ b/tests/baselines/reference/ES5For-of27.js @@ -7,8 +7,7 @@ for (var {x: a = 0, y: b = 1} of [2, 3]) { } //// [ES5For-of27.js] -for (var _i = 0, _a = [2, 3]; _i < _a.length; _i++) { - var _b = _a[_i], _c = _b.x, a = _c === void 0 ? 0 : _c, _d = _b.y, b = _d === void 0 ? 1 : _d; +for (var { x: a = 0, y: b = 1 } of [2, 3]) { a; b; } diff --git a/tests/baselines/reference/ES5For-of28(target=es2015).errors.txt b/tests/baselines/reference/ES5For-of28(target=es2015).errors.txt new file mode 100644 index 0000000000000..afafb236c22ce --- /dev/null +++ b/tests/baselines/reference/ES5For-of28(target=es2015).errors.txt @@ -0,0 +1,10 @@ +ES5For-of28.ts(1,10): error TS2488: Type 'number' must have a '[Symbol.iterator]()' method that returns an iterator. + + +==== ES5For-of28.ts (1 errors) ==== + for (let [a = 0, b = 1] of [2, 3]) { + ~~~~~~~~~~~~~~ +!!! error TS2488: Type 'number' must have a '[Symbol.iterator]()' method that returns an iterator. + a; + b; + } \ No newline at end of file diff --git a/tests/baselines/reference/ES5For-of28(target=es2015).js b/tests/baselines/reference/ES5For-of28(target=es2015).js new file mode 100644 index 0000000000000..c9314fb1830b5 --- /dev/null +++ b/tests/baselines/reference/ES5For-of28(target=es2015).js @@ -0,0 +1,13 @@ +//// [tests/cases/conformance/statements/for-ofStatements/ES5For-of28.ts] //// + +//// [ES5For-of28.ts] +for (let [a = 0, b = 1] of [2, 3]) { + a; + b; +} + +//// [ES5For-of28.js] +for (let [a = 0, b = 1] of [2, 3]) { + a; + b; +} diff --git a/tests/baselines/reference/ES5For-of28.symbols b/tests/baselines/reference/ES5For-of28(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/ES5For-of28.symbols rename to tests/baselines/reference/ES5For-of28(target=es2015).symbols diff --git a/tests/baselines/reference/ES5For-of28.types b/tests/baselines/reference/ES5For-of28(target=es2015).types similarity index 100% rename from tests/baselines/reference/ES5For-of28.types rename to tests/baselines/reference/ES5For-of28(target=es2015).types diff --git a/tests/baselines/reference/ES5For-of28.errors.txt b/tests/baselines/reference/ES5For-of28(target=es5).errors.txt similarity index 100% rename from tests/baselines/reference/ES5For-of28.errors.txt rename to tests/baselines/reference/ES5For-of28(target=es5).errors.txt diff --git a/tests/baselines/reference/ES5For-of28.js b/tests/baselines/reference/ES5For-of28(target=es5).js similarity index 100% rename from tests/baselines/reference/ES5For-of28.js rename to tests/baselines/reference/ES5For-of28(target=es5).js diff --git a/tests/baselines/reference/ES5For-of28(target=es5).symbols b/tests/baselines/reference/ES5For-of28(target=es5).symbols new file mode 100644 index 0000000000000..1f2da5c469776 --- /dev/null +++ b/tests/baselines/reference/ES5For-of28(target=es5).symbols @@ -0,0 +1,13 @@ +//// [tests/cases/conformance/statements/for-ofStatements/ES5For-of28.ts] //// + +=== ES5For-of28.ts === +for (let [a = 0, b = 1] of [2, 3]) { +>a : Symbol(a, Decl(ES5For-of28.ts, 0, 10)) +>b : Symbol(b, Decl(ES5For-of28.ts, 0, 16)) + + a; +>a : Symbol(a, Decl(ES5For-of28.ts, 0, 10)) + + b; +>b : Symbol(b, Decl(ES5For-of28.ts, 0, 16)) +} diff --git a/tests/baselines/reference/ES5For-of28(target=es5).types b/tests/baselines/reference/ES5For-of28(target=es5).types new file mode 100644 index 0000000000000..68e96ac12d4b9 --- /dev/null +++ b/tests/baselines/reference/ES5For-of28(target=es5).types @@ -0,0 +1,27 @@ +//// [tests/cases/conformance/statements/for-ofStatements/ES5For-of28.ts] //// + +=== ES5For-of28.ts === +for (let [a = 0, b = 1] of [2, 3]) { +>a : any +> : ^^^ +>0 : 0 +> : ^ +>b : any +> : ^^^ +>1 : 1 +> : ^ +>[2, 3] : number[] +> : ^^^^^^^^ +>2 : 2 +> : ^ +>3 : 3 +> : ^ + + a; +>a : any +> : ^^^ + + b; +>b : any +> : ^^^ +} diff --git a/tests/baselines/reference/ES5For-of29.js b/tests/baselines/reference/ES5For-of29.js index 45c85c38d5915..ca022d966c1ac 100644 --- a/tests/baselines/reference/ES5For-of29.js +++ b/tests/baselines/reference/ES5For-of29.js @@ -7,8 +7,7 @@ for (const {x: a = 0, y: b = 1} of [2, 3]) { } //// [ES5For-of29.js] -for (var _i = 0, _a = [2, 3]; _i < _a.length; _i++) { - var _b = _a[_i], _c = _b.x, a = _c === void 0 ? 0 : _c, _d = _b.y, b = _d === void 0 ? 1 : _d; +for (const { x: a = 0, y: b = 1 } of [2, 3]) { a; b; } diff --git a/tests/baselines/reference/ES5For-of3.js b/tests/baselines/reference/ES5For-of3.js index 52cc54f782292..e44cd90361a76 100644 --- a/tests/baselines/reference/ES5For-of3.js +++ b/tests/baselines/reference/ES5For-of3.js @@ -5,8 +5,6 @@ for (var v of ['a', 'b', 'c']) var x = v; //// [ES5For-of3.js] -for (var _i = 0, _a = ['a', 'b', 'c']; _i < _a.length; _i++) { - var v = _a[_i]; +for (var v of ['a', 'b', 'c']) var x = v; -} //# sourceMappingURL=ES5For-of3.js.map \ No newline at end of file diff --git a/tests/baselines/reference/ES5For-of3.js.map b/tests/baselines/reference/ES5For-of3.js.map index 30e3849793b2f..429f6596ae844 100644 --- a/tests/baselines/reference/ES5For-of3.js.map +++ b/tests/baselines/reference/ES5For-of3.js.map @@ -1,3 +1,3 @@ //// [ES5For-of3.js.map] -{"version":3,"file":"ES5For-of3.js","sourceRoot":"","sources":["ES5For-of3.ts"],"names":[],"mappings":"AAAA,KAAc,UAAe,EAAf,MAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAAf,cAAe,EAAf,IAAe;IAAxB,IAAI,CAAC,SAAA;IACN,IAAI,CAAC,GAAG,CAAC,CAAC;CAAA"} -//// https://sokra.github.io/source-map-visualization#base64,Zm9yICh2YXIgX2kgPSAwLCBfYSA9IFsnYScsICdiJywgJ2MnXTsgX2kgPCBfYS5sZW5ndGg7IF9pKyspIHsNCiAgICB2YXIgdiA9IF9hW19pXTsNCiAgICB2YXIgeCA9IHY7DQp9DQovLyMgc291cmNlTWFwcGluZ1VSTD1FUzVGb3Itb2YzLmpzLm1hcA==,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRVM1Rm9yLW9mMy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIkVTNUZvci1vZjMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsS0FBYyxVQUFlLEVBQWYsTUFBQyxHQUFHLEVBQUUsR0FBRyxFQUFFLEdBQUcsQ0FBQyxFQUFmLGNBQWUsRUFBZixJQUFlO0lBQXhCLElBQUksQ0FBQyxTQUFBO0lBQ04sSUFBSSxDQUFDLEdBQUcsQ0FBQyxDQUFDO0NBQUEifQ==,Zm9yICh2YXIgdiBvZiBbJ2EnLCAnYicsICdjJ10pCiAgICB2YXIgeCA9IHY7 +{"version":3,"file":"ES5For-of3.js","sourceRoot":"","sources":["ES5For-of3.ts"],"names":[],"mappings":"AAAA,KAAK,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;IACzB,IAAI,CAAC,GAAG,CAAC,CAAC"} +//// https://sokra.github.io/source-map-visualization#base64,Zm9yICh2YXIgdiBvZiBbJ2EnLCAnYicsICdjJ10pDQogICAgdmFyIHggPSB2Ow0KLy8jIHNvdXJjZU1hcHBpbmdVUkw9RVM1Rm9yLW9mMy5qcy5tYXA=,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRVM1Rm9yLW9mMy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIkVTNUZvci1vZjMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsS0FBSyxJQUFJLENBQUMsSUFBSSxDQUFDLEdBQUcsRUFBRSxHQUFHLEVBQUUsR0FBRyxDQUFDO0lBQ3pCLElBQUksQ0FBQyxHQUFHLENBQUMsQ0FBQyJ9,Zm9yICh2YXIgdiBvZiBbJ2EnLCAnYicsICdjJ10pCiAgICB2YXIgeCA9IHY7 diff --git a/tests/baselines/reference/ES5For-of3.sourcemap.txt b/tests/baselines/reference/ES5For-of3.sourcemap.txt index 7eb273f86b381..997427799cd70 100644 --- a/tests/baselines/reference/ES5For-of3.sourcemap.txt +++ b/tests/baselines/reference/ES5For-of3.sourcemap.txt @@ -8,66 +8,43 @@ sources: ES5For-of3.ts emittedFile:ES5For-of3.js sourceFile:ES5For-of3.ts ------------------------------------------------------------------- ->>>for (var _i = 0, _a = ['a', 'b', 'c']; _i < _a.length; _i++) { +>>>for (var v of ['a', 'b', 'c']) 1 > 2 >^^^^^ -3 > ^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^ -6 > ^^^ -7 > ^^ -8 > ^^^ -9 > ^^ -10> ^^^ -11> ^ -12> ^^ -13> ^^^^^^^^^^^^^^ -14> ^^ -15> ^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^ +6 > ^ +7 > ^^^ +8 > ^^ +9 > ^^^ +10> ^^ +11> ^^^ +12> ^ 1 > -2 >for (var v of -3 > ['a', 'b', 'c'] -4 > -5 > [ -6 > 'a' -7 > , -8 > 'b' -9 > , -10> 'c' -11> ] -12> -13> ['a', 'b', 'c'] -14> -15> ['a', 'b', 'c'] +2 >for ( +3 > var +4 > v +5 > of +6 > [ +7 > 'a' +8 > , +9 > 'b' +10> , +11> 'c' +12> ] 1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 6) Source(1, 15) + SourceIndex(0) -3 >Emitted(1, 16) Source(1, 30) + SourceIndex(0) -4 >Emitted(1, 18) Source(1, 15) + SourceIndex(0) -5 >Emitted(1, 24) Source(1, 16) + SourceIndex(0) -6 >Emitted(1, 27) Source(1, 19) + SourceIndex(0) -7 >Emitted(1, 29) Source(1, 21) + SourceIndex(0) -8 >Emitted(1, 32) Source(1, 24) + SourceIndex(0) -9 >Emitted(1, 34) Source(1, 26) + SourceIndex(0) -10>Emitted(1, 37) Source(1, 29) + SourceIndex(0) -11>Emitted(1, 38) Source(1, 30) + SourceIndex(0) -12>Emitted(1, 40) Source(1, 15) + SourceIndex(0) -13>Emitted(1, 54) Source(1, 30) + SourceIndex(0) -14>Emitted(1, 56) Source(1, 15) + SourceIndex(0) -15>Emitted(1, 60) Source(1, 30) + SourceIndex(0) ---- ->>> var v = _a[_i]; -1 >^^^^ -2 > ^^^^ -3 > ^ -4 > ^^^^^^^^^ -1 > -2 > var -3 > v -4 > -1 >Emitted(2, 5) Source(1, 6) + SourceIndex(0) -2 >Emitted(2, 9) Source(1, 10) + SourceIndex(0) -3 >Emitted(2, 10) Source(1, 11) + SourceIndex(0) -4 >Emitted(2, 19) Source(1, 11) + SourceIndex(0) +2 >Emitted(1, 6) Source(1, 6) + SourceIndex(0) +3 >Emitted(1, 10) Source(1, 10) + SourceIndex(0) +4 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +5 >Emitted(1, 15) Source(1, 15) + SourceIndex(0) +6 >Emitted(1, 16) Source(1, 16) + SourceIndex(0) +7 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +8 >Emitted(1, 21) Source(1, 21) + SourceIndex(0) +9 >Emitted(1, 24) Source(1, 24) + SourceIndex(0) +10>Emitted(1, 26) Source(1, 26) + SourceIndex(0) +11>Emitted(1, 29) Source(1, 29) + SourceIndex(0) +12>Emitted(1, 30) Source(1, 30) + SourceIndex(0) --- >>> var x = v; 1 >^^^^ @@ -76,24 +53,19 @@ sourceFile:ES5For-of3.ts 4 > ^^^ 5 > ^ 6 > ^ -1 > of ['a', 'b', 'c']) +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1 >) > 2 > var 3 > x 4 > = 5 > v 6 > ; -1 >Emitted(3, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(3, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(3, 10) Source(2, 10) + SourceIndex(0) -4 >Emitted(3, 13) Source(2, 13) + SourceIndex(0) -5 >Emitted(3, 14) Source(2, 14) + SourceIndex(0) -6 >Emitted(3, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -1 >Emitted(4, 2) Source(2, 15) + SourceIndex(0) +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) +5 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +6 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) --- >>>//# sourceMappingURL=ES5For-of3.js.map \ No newline at end of file diff --git a/tests/baselines/reference/ES5For-of30(target=es2015).errors.txt b/tests/baselines/reference/ES5For-of30(target=es2015).errors.txt new file mode 100644 index 0000000000000..adc43fc874caf --- /dev/null +++ b/tests/baselines/reference/ES5For-of30(target=es2015).errors.txt @@ -0,0 +1,18 @@ +ES5For-of30.ts(3,6): error TS2488: Type 'string | number' must have a '[Symbol.iterator]()' method that returns an iterator. +ES5For-of30.ts(3,7): error TS2322: Type 'number' is not assignable to type 'string'. +ES5For-of30.ts(3,14): error TS2322: Type 'string' is not assignable to type 'number'. + + +==== ES5For-of30.ts (3 errors) ==== + var a: string, b: number; + var tuple: [number, string] = [2, "3"]; + for ([a = 1, b = ""] of tuple) { + ~~~~~~~~~~~~~~~ +!!! error TS2488: Type 'string | number' must have a '[Symbol.iterator]()' method that returns an iterator. + ~ +!!! error TS2322: Type 'number' is not assignable to type 'string'. + ~ +!!! error TS2322: Type 'string' is not assignable to type 'number'. + a; + b; + } \ No newline at end of file diff --git a/tests/baselines/reference/ES5For-of30(target=es2015).js b/tests/baselines/reference/ES5For-of30(target=es2015).js new file mode 100644 index 0000000000000..60cb68e48134c --- /dev/null +++ b/tests/baselines/reference/ES5For-of30(target=es2015).js @@ -0,0 +1,17 @@ +//// [tests/cases/conformance/statements/for-ofStatements/ES5For-of30.ts] //// + +//// [ES5For-of30.ts] +var a: string, b: number; +var tuple: [number, string] = [2, "3"]; +for ([a = 1, b = ""] of tuple) { + a; + b; +} + +//// [ES5For-of30.js] +var a, b; +var tuple = [2, "3"]; +for ([a = 1, b = ""] of tuple) { + a; + b; +} diff --git a/tests/baselines/reference/ES5For-of30.symbols b/tests/baselines/reference/ES5For-of30(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/ES5For-of30.symbols rename to tests/baselines/reference/ES5For-of30(target=es2015).symbols diff --git a/tests/baselines/reference/ES5For-of30.types b/tests/baselines/reference/ES5For-of30(target=es2015).types similarity index 100% rename from tests/baselines/reference/ES5For-of30.types rename to tests/baselines/reference/ES5For-of30(target=es2015).types diff --git a/tests/baselines/reference/ES5For-of30.errors.txt b/tests/baselines/reference/ES5For-of30(target=es5).errors.txt similarity index 100% rename from tests/baselines/reference/ES5For-of30.errors.txt rename to tests/baselines/reference/ES5For-of30(target=es5).errors.txt diff --git a/tests/baselines/reference/ES5For-of30.js b/tests/baselines/reference/ES5For-of30(target=es5).js similarity index 100% rename from tests/baselines/reference/ES5For-of30.js rename to tests/baselines/reference/ES5For-of30(target=es5).js diff --git a/tests/baselines/reference/ES5For-of30(target=es5).symbols b/tests/baselines/reference/ES5For-of30(target=es5).symbols new file mode 100644 index 0000000000000..d9804400b3cd6 --- /dev/null +++ b/tests/baselines/reference/ES5For-of30(target=es5).symbols @@ -0,0 +1,21 @@ +//// [tests/cases/conformance/statements/for-ofStatements/ES5For-of30.ts] //// + +=== ES5For-of30.ts === +var a: string, b: number; +>a : Symbol(a, Decl(ES5For-of30.ts, 0, 3)) +>b : Symbol(b, Decl(ES5For-of30.ts, 0, 14)) + +var tuple: [number, string] = [2, "3"]; +>tuple : Symbol(tuple, Decl(ES5For-of30.ts, 1, 3)) + +for ([a = 1, b = ""] of tuple) { +>a : Symbol(a, Decl(ES5For-of30.ts, 0, 3)) +>b : Symbol(b, Decl(ES5For-of30.ts, 0, 14)) +>tuple : Symbol(tuple, Decl(ES5For-of30.ts, 1, 3)) + + a; +>a : Symbol(a, Decl(ES5For-of30.ts, 0, 3)) + + b; +>b : Symbol(b, Decl(ES5For-of30.ts, 0, 14)) +} diff --git a/tests/baselines/reference/ES5For-of30(target=es5).types b/tests/baselines/reference/ES5For-of30(target=es5).types new file mode 100644 index 0000000000000..2cbbb805b614f --- /dev/null +++ b/tests/baselines/reference/ES5For-of30(target=es5).types @@ -0,0 +1,45 @@ +//// [tests/cases/conformance/statements/for-ofStatements/ES5For-of30.ts] //// + +=== ES5For-of30.ts === +var a: string, b: number; +>a : string +> : ^^^^^^ +>b : number +> : ^^^^^^ + +var tuple: [number, string] = [2, "3"]; +>tuple : [number, string] +> : ^^^^^^^^^^^^^^^^ +>[2, "3"] : [number, string] +> : ^^^^^^^^^^^^^^^^ +>2 : 2 +> : ^ +>"3" : "3" +> : ^^^ + +for ([a = 1, b = ""] of tuple) { +>[a = 1, b = ""] : [number, string] +> : ^^^^^^^^^^^^^^^^ +>a = 1 : 1 +> : ^ +>a : string +> : ^^^^^^ +>1 : 1 +> : ^ +>b = "" : "" +> : ^^ +>b : number +> : ^^^^^^ +>"" : "" +> : ^^ +>tuple : [number, string] +> : ^^^^^^^^^^^^^^^^ + + a; +>a : string +> : ^^^^^^ + + b; +>b : number +> : ^^^^^^ +} diff --git a/tests/baselines/reference/ES5For-of31.js b/tests/baselines/reference/ES5For-of31.js index 4a6b9536483b6..0edabe9531fea 100644 --- a/tests/baselines/reference/ES5For-of31.js +++ b/tests/baselines/reference/ES5For-of31.js @@ -9,10 +9,8 @@ for ({ a: b = 1, b: a = ""} of []) { } //// [ES5For-of31.js] -var _a, _b, _c; var a, b; -for (var _i = 0, _d = []; _i < _d.length; _i++) { - _a = _d[_i], _b = _a.a, b = _b === void 0 ? 1 : _b, _c = _a.b, a = _c === void 0 ? "" : _c; +for ({ a: b = 1, b: a = "" } of []) { a; b; } diff --git a/tests/baselines/reference/ES5For-of33.js b/tests/baselines/reference/ES5For-of33.js index 87eb158b1af2b..fcd852d9a96e8 100644 --- a/tests/baselines/reference/ES5For-of33.js +++ b/tests/baselines/reference/ES5For-of33.js @@ -6,29 +6,7 @@ for (var v of ['a', 'b', 'c']) { } //// [ES5For-of33.js] -var __values = (this && this.__values) || function(o) { - var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; - if (m) return m.call(o); - if (o && typeof o.length === "number") return { - next: function () { - if (o && i >= o.length) o = void 0; - return { value: o && o[i++], done: !o }; - } - }; - throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); -}; -var e_1, _a; -try { - for (var _b = __values(['a', 'b', 'c']), _c = _b.next(); !_c.done; _c = _b.next()) { - var v = _c.value; - console.log(v); - } -} -catch (e_1_1) { e_1 = { error: e_1_1 }; } -finally { - try { - if (_c && !_c.done && (_a = _b.return)) _a.call(_b); - } - finally { if (e_1) throw e_1.error; } +for (var v of ['a', 'b', 'c']) { + console.log(v); } //# sourceMappingURL=ES5For-of33.js.map \ No newline at end of file diff --git a/tests/baselines/reference/ES5For-of33.js.map b/tests/baselines/reference/ES5For-of33.js.map index baf12a8a190ec..1a0671a3d8b5c 100644 --- a/tests/baselines/reference/ES5For-of33.js.map +++ b/tests/baselines/reference/ES5For-of33.js.map @@ -1,3 +1,3 @@ //// [ES5For-of33.js.map] -{"version":3,"file":"ES5For-of33.js","sourceRoot":"","sources":["ES5For-of33.ts"],"names":[],"mappings":";;;;;;;;;;;;;IAAA,KAAc,IAAA,KAAA,SAAA,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAA,gBAAA,4BAAE,CAAC;QAA3B,IAAI,CAAC,WAAA;QACN,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IACnB,CAAC"} -//// https://sokra.github.io/source-map-visualization#base64,dmFyIF9fdmFsdWVzID0gKHRoaXMgJiYgdGhpcy5fX3ZhbHVlcykgfHwgZnVuY3Rpb24obykgew0KICAgIHZhciBzID0gdHlwZW9mIFN5bWJvbCA9PT0gImZ1bmN0aW9uIiAmJiBTeW1ib2wuaXRlcmF0b3IsIG0gPSBzICYmIG9bc10sIGkgPSAwOw0KICAgIGlmIChtKSByZXR1cm4gbS5jYWxsKG8pOw0KICAgIGlmIChvICYmIHR5cGVvZiBvLmxlbmd0aCA9PT0gIm51bWJlciIpIHJldHVybiB7DQogICAgICAgIG5leHQ6IGZ1bmN0aW9uICgpIHsNCiAgICAgICAgICAgIGlmIChvICYmIGkgPj0gby5sZW5ndGgpIG8gPSB2b2lkIDA7DQogICAgICAgICAgICByZXR1cm4geyB2YWx1ZTogbyAmJiBvW2krK10sIGRvbmU6ICFvIH07DQogICAgICAgIH0NCiAgICB9Ow0KICAgIHRocm93IG5ldyBUeXBlRXJyb3IocyA/ICJPYmplY3QgaXMgbm90IGl0ZXJhYmxlLiIgOiAiU3ltYm9sLml0ZXJhdG9yIGlzIG5vdCBkZWZpbmVkLiIpOw0KfTsNCnZhciBlXzEsIF9hOw0KdHJ5IHsNCiAgICBmb3IgKHZhciBfYiA9IF9fdmFsdWVzKFsnYScsICdiJywgJ2MnXSksIF9jID0gX2IubmV4dCgpOyAhX2MuZG9uZTsgX2MgPSBfYi5uZXh0KCkpIHsNCiAgICAgICAgdmFyIHYgPSBfYy52YWx1ZTsNCiAgICAgICAgY29uc29sZS5sb2codik7DQogICAgfQ0KfQ0KY2F0Y2ggKGVfMV8xKSB7IGVfMSA9IHsgZXJyb3I6IGVfMV8xIH07IH0NCmZpbmFsbHkgew0KICAgIHRyeSB7DQogICAgICAgIGlmIChfYyAmJiAhX2MuZG9uZSAmJiAoX2EgPSBfYi5yZXR1cm4pKSBfYS5jYWxsKF9iKTsNCiAgICB9DQogICAgZmluYWxseSB7IGlmIChlXzEpIHRocm93IGVfMS5lcnJvcjsgfQ0KfQ0KLy8jIHNvdXJjZU1hcHBpbmdVUkw9RVM1Rm9yLW9mMzMuanMubWFw,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRVM1Rm9yLW9mMzMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJFUzVGb3Itb2YzMy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7O0lBQUEsS0FBYyxJQUFBLEtBQUEsU0FBQSxDQUFDLEdBQUcsRUFBRSxHQUFHLEVBQUUsR0FBRyxDQUFDLENBQUEsZ0JBQUEsNEJBQUUsQ0FBQztRQUEzQixJQUFJLENBQUMsV0FBQTtRQUNOLE9BQU8sQ0FBQyxHQUFHLENBQUMsQ0FBQyxDQUFDLENBQUM7SUFDbkIsQ0FBQyJ9,Zm9yICh2YXIgdiBvZiBbJ2EnLCAnYicsICdjJ10pIHsKICAgIGNvbnNvbGUubG9nKHYpOwp9 +{"version":3,"file":"ES5For-of33.js","sourceRoot":"","sources":["ES5For-of33.ts"],"names":[],"mappings":"AAAA,KAAK,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,CAAC;IAC5B,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACnB,CAAC"} +//// https://sokra.github.io/source-map-visualization#base64,Zm9yICh2YXIgdiBvZiBbJ2EnLCAnYicsICdjJ10pIHsNCiAgICBjb25zb2xlLmxvZyh2KTsNCn0NCi8vIyBzb3VyY2VNYXBwaW5nVVJMPUVTNUZvci1vZjMzLmpzLm1hcA==,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRVM1Rm9yLW9mMzMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJFUzVGb3Itb2YzMy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxLQUFLLElBQUksQ0FBQyxJQUFJLENBQUMsR0FBRyxFQUFFLEdBQUcsRUFBRSxHQUFHLENBQUMsRUFBRSxDQUFDO0lBQzVCLE9BQU8sQ0FBQyxHQUFHLENBQUMsQ0FBQyxDQUFDLENBQUM7QUFDbkIsQ0FBQyJ9,Zm9yICh2YXIgdiBvZiBbJ2EnLCAnYicsICdjJ10pIHsKICAgIGNvbnNvbGUubG9nKHYpOwp9 diff --git a/tests/baselines/reference/ES5For-of33.sourcemap.txt b/tests/baselines/reference/ES5For-of33.sourcemap.txt index dcda7cd0c6fa0..1b33263a0705d 100644 --- a/tests/baselines/reference/ES5For-of33.sourcemap.txt +++ b/tests/baselines/reference/ES5For-of33.sourcemap.txt @@ -8,125 +8,85 @@ sources: ES5For-of33.ts emittedFile:ES5For-of33.js sourceFile:ES5For-of33.ts ------------------------------------------------------------------- ->>>var __values = (this && this.__values) || function(o) { ->>> var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; ->>> if (m) return m.call(o); ->>> if (o && typeof o.length === "number") return { ->>> next: function () { ->>> if (o && i >= o.length) o = void 0; ->>> return { value: o && o[i++], done: !o }; ->>> } ->>> }; ->>> throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); ->>>}; ->>>var e_1, _a; ->>>try { ->>> for (var _b = __values(['a', 'b', 'c']), _c = _b.next(); !_c.done; _c = _b.next()) { -1 >^^^^ -2 > ^^^^^ -3 > ^^^^ -4 > ^^^^^ -5 > ^^^^^^^^^ -6 > ^ -7 > ^^^ -8 > ^^ -9 > ^^^ -10> ^^ -11> ^^^ -12> ^ -13> ^ -14> ^^^^^^^^^^^^^^^^ -15> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -16> ^ +>>>for (var v of ['a', 'b', 'c']) { 1 > -2 > for (var v of -3 > -4 > -5 > -6 > [ -7 > 'a' -8 > , -9 > 'b' -10> , -11> 'c' -12> ] -13> -14> -15> ) -16> { -1 >Emitted(14, 5) Source(1, 1) + SourceIndex(0) -2 >Emitted(14, 10) Source(1, 15) + SourceIndex(0) -3 >Emitted(14, 14) Source(1, 15) + SourceIndex(0) -4 >Emitted(14, 19) Source(1, 15) + SourceIndex(0) -5 >Emitted(14, 28) Source(1, 15) + SourceIndex(0) -6 >Emitted(14, 29) Source(1, 16) + SourceIndex(0) -7 >Emitted(14, 32) Source(1, 19) + SourceIndex(0) -8 >Emitted(14, 34) Source(1, 21) + SourceIndex(0) -9 >Emitted(14, 37) Source(1, 24) + SourceIndex(0) -10>Emitted(14, 39) Source(1, 26) + SourceIndex(0) -11>Emitted(14, 42) Source(1, 29) + SourceIndex(0) -12>Emitted(14, 43) Source(1, 30) + SourceIndex(0) -13>Emitted(14, 44) Source(1, 30) + SourceIndex(0) -14>Emitted(14, 60) Source(1, 30) + SourceIndex(0) -15>Emitted(14, 88) Source(1, 32) + SourceIndex(0) -16>Emitted(14, 89) Source(1, 33) + SourceIndex(0) ---- ->>> var v = _c.value; -1 >^^^^^^^^ -2 > ^^^^ -3 > ^ -4 > ^^^^^^^^^^^ +2 >^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^ +6 > ^ +7 > ^^^ +8 > ^^ +9 > ^^^ +10> ^^ +11> ^^^ +12> ^ +13> ^^ +14> ^ 1 > -2 > var -3 > v -4 > -1 >Emitted(15, 9) Source(1, 6) + SourceIndex(0) -2 >Emitted(15, 13) Source(1, 10) + SourceIndex(0) -3 >Emitted(15, 14) Source(1, 11) + SourceIndex(0) -4 >Emitted(15, 25) Source(1, 11) + SourceIndex(0) +2 >for ( +3 > var +4 > v +5 > of +6 > [ +7 > 'a' +8 > , +9 > 'b' +10> , +11> 'c' +12> ] +13> ) +14> { +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 6) Source(1, 6) + SourceIndex(0) +3 >Emitted(1, 10) Source(1, 10) + SourceIndex(0) +4 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +5 >Emitted(1, 15) Source(1, 15) + SourceIndex(0) +6 >Emitted(1, 16) Source(1, 16) + SourceIndex(0) +7 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +8 >Emitted(1, 21) Source(1, 21) + SourceIndex(0) +9 >Emitted(1, 24) Source(1, 24) + SourceIndex(0) +10>Emitted(1, 26) Source(1, 26) + SourceIndex(0) +11>Emitted(1, 29) Source(1, 29) + SourceIndex(0) +12>Emitted(1, 30) Source(1, 30) + SourceIndex(0) +13>Emitted(1, 32) Source(1, 32) + SourceIndex(0) +14>Emitted(1, 33) Source(1, 33) + SourceIndex(0) --- ->>> console.log(v); -1 >^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -1 > of ['a', 'b', 'c']) { +>>> console.log(v); +1 >^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +1 > > -2 > console -3 > . -4 > log -5 > ( -6 > v -7 > ) -8 > ; -1 >Emitted(16, 9) Source(2, 5) + SourceIndex(0) -2 >Emitted(16, 16) Source(2, 12) + SourceIndex(0) -3 >Emitted(16, 17) Source(2, 13) + SourceIndex(0) -4 >Emitted(16, 20) Source(2, 16) + SourceIndex(0) -5 >Emitted(16, 21) Source(2, 17) + SourceIndex(0) -6 >Emitted(16, 22) Source(2, 18) + SourceIndex(0) -7 >Emitted(16, 23) Source(2, 19) + SourceIndex(0) -8 >Emitted(16, 24) Source(2, 20) + SourceIndex(0) +2 > console +3 > . +4 > log +5 > ( +6 > v +7 > ) +8 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +3 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) +4 >Emitted(2, 16) Source(2, 16) + SourceIndex(0) +5 >Emitted(2, 17) Source(2, 17) + SourceIndex(0) +6 >Emitted(2, 18) Source(2, 18) + SourceIndex(0) +7 >Emitted(2, 19) Source(2, 19) + SourceIndex(0) +8 >Emitted(2, 20) Source(2, 20) + SourceIndex(0) --- ->>> } -1 >^^^^ -2 > ^ +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > -2 > } -1 >Emitted(17, 5) Source(3, 1) + SourceIndex(0) -2 >Emitted(17, 6) Source(3, 2) + SourceIndex(0) +2 >} +1 >Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- ->>>} ->>>catch (e_1_1) { e_1 = { error: e_1_1 }; } ->>>finally { ->>> try { ->>> if (_c && !_c.done && (_a = _b.return)) _a.call(_b); ->>> } ->>> finally { if (e_1) throw e_1.error; } ->>>} >>>//# sourceMappingURL=ES5For-of33.js.map \ No newline at end of file diff --git a/tests/baselines/reference/ES5For-of34.js b/tests/baselines/reference/ES5For-of34.js index 37c6d066f6373..34a1923ab398f 100644 --- a/tests/baselines/reference/ES5For-of34.js +++ b/tests/baselines/reference/ES5For-of34.js @@ -9,32 +9,10 @@ for (foo().x of ['a', 'b', 'c']) { } //// [ES5For-of34.js] -var __values = (this && this.__values) || function(o) { - var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; - if (m) return m.call(o); - if (o && typeof o.length === "number") return { - next: function () { - if (o && i >= o.length) o = void 0; - return { value: o && o[i++], done: !o }; - } - }; - throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); -}; -var e_1, _a; function foo() { return { x: 0 }; } -try { - for (var _b = __values(['a', 'b', 'c']), _c = _b.next(); !_c.done; _c = _b.next()) { - foo().x = _c.value; - var p = foo().x; - } -} -catch (e_1_1) { e_1 = { error: e_1_1 }; } -finally { - try { - if (_c && !_c.done && (_a = _b.return)) _a.call(_b); - } - finally { if (e_1) throw e_1.error; } +for (foo().x of ['a', 'b', 'c']) { + var p = foo().x; } //# sourceMappingURL=ES5For-of34.js.map \ No newline at end of file diff --git a/tests/baselines/reference/ES5For-of34.js.map b/tests/baselines/reference/ES5For-of34.js.map index 7237f72341b71..96e6605e94f21 100644 --- a/tests/baselines/reference/ES5For-of34.js.map +++ b/tests/baselines/reference/ES5For-of34.js.map @@ -1,3 +1,3 @@ //// [ES5For-of34.js.map] -{"version":3,"file":"ES5For-of34.js","sourceRoot":"","sources":["ES5For-of34.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,SAAS,GAAG;IACR,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC;AACpB,CAAC;;IACD,KAAgB,IAAA,KAAA,SAAA,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAA,gBAAA,4BAAE,CAAC;QAA7B,GAAG,EAAE,CAAC,CAAC,WAAA;QACR,IAAI,CAAC,GAAG,GAAG,EAAE,CAAC,CAAC,CAAC;IACpB,CAAC"} -//// https://sokra.github.io/source-map-visualization#base64,dmFyIF9fdmFsdWVzID0gKHRoaXMgJiYgdGhpcy5fX3ZhbHVlcykgfHwgZnVuY3Rpb24obykgew0KICAgIHZhciBzID0gdHlwZW9mIFN5bWJvbCA9PT0gImZ1bmN0aW9uIiAmJiBTeW1ib2wuaXRlcmF0b3IsIG0gPSBzICYmIG9bc10sIGkgPSAwOw0KICAgIGlmIChtKSByZXR1cm4gbS5jYWxsKG8pOw0KICAgIGlmIChvICYmIHR5cGVvZiBvLmxlbmd0aCA9PT0gIm51bWJlciIpIHJldHVybiB7DQogICAgICAgIG5leHQ6IGZ1bmN0aW9uICgpIHsNCiAgICAgICAgICAgIGlmIChvICYmIGkgPj0gby5sZW5ndGgpIG8gPSB2b2lkIDA7DQogICAgICAgICAgICByZXR1cm4geyB2YWx1ZTogbyAmJiBvW2krK10sIGRvbmU6ICFvIH07DQogICAgICAgIH0NCiAgICB9Ow0KICAgIHRocm93IG5ldyBUeXBlRXJyb3IocyA/ICJPYmplY3QgaXMgbm90IGl0ZXJhYmxlLiIgOiAiU3ltYm9sLml0ZXJhdG9yIGlzIG5vdCBkZWZpbmVkLiIpOw0KfTsNCnZhciBlXzEsIF9hOw0KZnVuY3Rpb24gZm9vKCkgew0KICAgIHJldHVybiB7IHg6IDAgfTsNCn0NCnRyeSB7DQogICAgZm9yICh2YXIgX2IgPSBfX3ZhbHVlcyhbJ2EnLCAnYicsICdjJ10pLCBfYyA9IF9iLm5leHQoKTsgIV9jLmRvbmU7IF9jID0gX2IubmV4dCgpKSB7DQogICAgICAgIGZvbygpLnggPSBfYy52YWx1ZTsNCiAgICAgICAgdmFyIHAgPSBmb28oKS54Ow0KICAgIH0NCn0NCmNhdGNoIChlXzFfMSkgeyBlXzEgPSB7IGVycm9yOiBlXzFfMSB9OyB9DQpmaW5hbGx5IHsNCiAgICB0cnkgew0KICAgICAgICBpZiAoX2MgJiYgIV9jLmRvbmUgJiYgKF9hID0gX2IucmV0dXJuKSkgX2EuY2FsbChfYik7DQogICAgfQ0KICAgIGZpbmFsbHkgeyBpZiAoZV8xKSB0aHJvdyBlXzEuZXJyb3I7IH0NCn0NCi8vIyBzb3VyY2VNYXBwaW5nVVJMPUVTNUZvci1vZjM0LmpzLm1hcA==,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRVM1Rm9yLW9mMzQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJFUzVGb3Itb2YzNC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7QUFBQSxTQUFTLEdBQUc7SUFDUixPQUFPLEVBQUUsQ0FBQyxFQUFFLENBQUMsRUFBRSxDQUFDO0FBQ3BCLENBQUM7O0lBQ0QsS0FBZ0IsSUFBQSxLQUFBLFNBQUEsQ0FBQyxHQUFHLEVBQUUsR0FBRyxFQUFFLEdBQUcsQ0FBQyxDQUFBLGdCQUFBLDRCQUFFLENBQUM7UUFBN0IsR0FBRyxFQUFFLENBQUMsQ0FBQyxXQUFBO1FBQ1IsSUFBSSxDQUFDLEdBQUcsR0FBRyxFQUFFLENBQUMsQ0FBQyxDQUFDO0lBQ3BCLENBQUMifQ==,ZnVuY3Rpb24gZm9vKCkgewogICAgcmV0dXJuIHsgeDogMCB9Owp9CmZvciAoZm9vKCkueCBvZiBbJ2EnLCAnYicsICdjJ10pIHsKICAgIHZhciBwID0gZm9vKCkueDsKfQ== +{"version":3,"file":"ES5For-of34.js","sourceRoot":"","sources":["ES5For-of34.ts"],"names":[],"mappings":"AAAA,SAAS,GAAG;IACR,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC;AACpB,CAAC;AACD,KAAK,GAAG,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,CAAC;IAC9B,IAAI,CAAC,GAAG,GAAG,EAAE,CAAC,CAAC,CAAC;AACpB,CAAC"} +//// https://sokra.github.io/source-map-visualization#base64,ZnVuY3Rpb24gZm9vKCkgew0KICAgIHJldHVybiB7IHg6IDAgfTsNCn0NCmZvciAoZm9vKCkueCBvZiBbJ2EnLCAnYicsICdjJ10pIHsNCiAgICB2YXIgcCA9IGZvbygpLng7DQp9DQovLyMgc291cmNlTWFwcGluZ1VSTD1FUzVGb3Itb2YzNC5qcy5tYXA=,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRVM1Rm9yLW9mMzQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJFUzVGb3Itb2YzNC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxTQUFTLEdBQUc7SUFDUixPQUFPLEVBQUUsQ0FBQyxFQUFFLENBQUMsRUFBRSxDQUFDO0FBQ3BCLENBQUM7QUFDRCxLQUFLLEdBQUcsRUFBRSxDQUFDLENBQUMsSUFBSSxDQUFDLEdBQUcsRUFBRSxHQUFHLEVBQUUsR0FBRyxDQUFDLEVBQUUsQ0FBQztJQUM5QixJQUFJLENBQUMsR0FBRyxHQUFHLEVBQUUsQ0FBQyxDQUFDLENBQUM7QUFDcEIsQ0FBQyJ9,ZnVuY3Rpb24gZm9vKCkgewogICAgcmV0dXJuIHsgeDogMCB9Owp9CmZvciAoZm9vKCkueCBvZiBbJ2EnLCAnYicsICdjJ10pIHsKICAgIHZhciBwID0gZm9vKCkueDsKfQ== diff --git a/tests/baselines/reference/ES5For-of34.sourcemap.txt b/tests/baselines/reference/ES5For-of34.sourcemap.txt index 0579e2166a302..8e317ca4c5df9 100644 --- a/tests/baselines/reference/ES5For-of34.sourcemap.txt +++ b/tests/baselines/reference/ES5For-of34.sourcemap.txt @@ -8,18 +8,6 @@ sources: ES5For-of34.ts emittedFile:ES5For-of34.js sourceFile:ES5For-of34.ts ------------------------------------------------------------------- ->>>var __values = (this && this.__values) || function(o) { ->>> var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; ->>> if (m) return m.call(o); ->>> if (o && typeof o.length === "number") return { ->>> next: function () { ->>> if (o && i >= o.length) o = void 0; ->>> return { value: o && o[i++], done: !o }; ->>> } ->>> }; ->>> throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); ->>>}; ->>>var e_1, _a; >>>function foo() { 1 > 2 >^^^^^^^^^ @@ -28,9 +16,9 @@ sourceFile:ES5For-of34.ts 1 > 2 >function 3 > foo -1 >Emitted(13, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(13, 10) Source(1, 10) + SourceIndex(0) -3 >Emitted(13, 13) Source(1, 13) + SourceIndex(0) +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 10) Source(1, 10) + SourceIndex(0) +3 >Emitted(1, 13) Source(1, 13) + SourceIndex(0) --- >>> return { x: 0 }; 1->^^^^ @@ -50,142 +38,114 @@ sourceFile:ES5For-of34.ts 6 > 0 7 > } 8 > ; -1->Emitted(14, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(14, 12) Source(2, 12) + SourceIndex(0) -3 >Emitted(14, 14) Source(2, 14) + SourceIndex(0) -4 >Emitted(14, 15) Source(2, 15) + SourceIndex(0) -5 >Emitted(14, 17) Source(2, 17) + SourceIndex(0) -6 >Emitted(14, 18) Source(2, 18) + SourceIndex(0) -7 >Emitted(14, 20) Source(2, 20) + SourceIndex(0) -8 >Emitted(14, 21) Source(2, 21) + SourceIndex(0) +1->Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +3 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +4 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +5 >Emitted(2, 17) Source(2, 17) + SourceIndex(0) +6 >Emitted(2, 18) Source(2, 18) + SourceIndex(0) +7 >Emitted(2, 20) Source(2, 20) + SourceIndex(0) +8 >Emitted(2, 21) Source(2, 21) + SourceIndex(0) --- >>>} 1 > 2 >^ -3 > ^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} -1 >Emitted(15, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(15, 2) Source(3, 2) + SourceIndex(0) +1 >Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- ->>>try { ->>> for (var _b = __values(['a', 'b', 'c']), _c = _b.next(); !_c.done; _c = _b.next()) { -1->^^^^ -2 > ^^^^^ -3 > ^^^^ -4 > ^^^^^ -5 > ^^^^^^^^^ -6 > ^ -7 > ^^^ -8 > ^^ -9 > ^^^ -10> ^^ -11> ^^^ -12> ^ -13> ^ -14> ^^^^^^^^^^^^^^^^ -15> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -16> ^ +>>>for (foo().x of ['a', 'b', 'c']) { +1-> +2 >^^^^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^ +7 > ^^^^ +8 > ^ +9 > ^^^ +10> ^^ +11> ^^^ +12> ^^ +13> ^^^ +14> ^ +15> ^^ +16> ^ 1-> > -2 > for (foo().x of -3 > -4 > -5 > -6 > [ -7 > 'a' -8 > , -9 > 'b' -10> , -11> 'c' -12> ] -13> -14> -15> ) -16> { -1->Emitted(17, 5) Source(4, 1) + SourceIndex(0) -2 >Emitted(17, 10) Source(4, 17) + SourceIndex(0) -3 >Emitted(17, 14) Source(4, 17) + SourceIndex(0) -4 >Emitted(17, 19) Source(4, 17) + SourceIndex(0) -5 >Emitted(17, 28) Source(4, 17) + SourceIndex(0) -6 >Emitted(17, 29) Source(4, 18) + SourceIndex(0) -7 >Emitted(17, 32) Source(4, 21) + SourceIndex(0) -8 >Emitted(17, 34) Source(4, 23) + SourceIndex(0) -9 >Emitted(17, 37) Source(4, 26) + SourceIndex(0) -10>Emitted(17, 39) Source(4, 28) + SourceIndex(0) -11>Emitted(17, 42) Source(4, 31) + SourceIndex(0) -12>Emitted(17, 43) Source(4, 32) + SourceIndex(0) -13>Emitted(17, 44) Source(4, 32) + SourceIndex(0) -14>Emitted(17, 60) Source(4, 32) + SourceIndex(0) -15>Emitted(17, 88) Source(4, 34) + SourceIndex(0) -16>Emitted(17, 89) Source(4, 35) + SourceIndex(0) +2 >for ( +3 > foo +4 > () +5 > . +6 > x +7 > of +8 > [ +9 > 'a' +10> , +11> 'b' +12> , +13> 'c' +14> ] +15> ) +16> { +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 6) + SourceIndex(0) +3 >Emitted(4, 9) Source(4, 9) + SourceIndex(0) +4 >Emitted(4, 11) Source(4, 11) + SourceIndex(0) +5 >Emitted(4, 12) Source(4, 12) + SourceIndex(0) +6 >Emitted(4, 13) Source(4, 13) + SourceIndex(0) +7 >Emitted(4, 17) Source(4, 17) + SourceIndex(0) +8 >Emitted(4, 18) Source(4, 18) + SourceIndex(0) +9 >Emitted(4, 21) Source(4, 21) + SourceIndex(0) +10>Emitted(4, 23) Source(4, 23) + SourceIndex(0) +11>Emitted(4, 26) Source(4, 26) + SourceIndex(0) +12>Emitted(4, 28) Source(4, 28) + SourceIndex(0) +13>Emitted(4, 31) Source(4, 31) + SourceIndex(0) +14>Emitted(4, 32) Source(4, 32) + SourceIndex(0) +15>Emitted(4, 34) Source(4, 34) + SourceIndex(0) +16>Emitted(4, 35) Source(4, 35) + SourceIndex(0) --- ->>> foo().x = _c.value; -1 >^^^^^^^^ -2 > ^^^ -3 > ^^ -4 > ^ -5 > ^ -6 > ^^^^^^^^^^^ -1 > -2 > foo -3 > () -4 > . -5 > x -6 > -1 >Emitted(18, 9) Source(4, 6) + SourceIndex(0) -2 >Emitted(18, 12) Source(4, 9) + SourceIndex(0) -3 >Emitted(18, 14) Source(4, 11) + SourceIndex(0) -4 >Emitted(18, 15) Source(4, 12) + SourceIndex(0) -5 >Emitted(18, 16) Source(4, 13) + SourceIndex(0) -6 >Emitted(18, 27) Source(4, 13) + SourceIndex(0) ---- ->>> var p = foo().x; -1 >^^^^^^^^ -2 > ^^^^ -3 > ^ -4 > ^^^ -5 > ^^^ -6 > ^^ -7 > ^ -8 > ^ -9 > ^ -1 > of ['a', 'b', 'c']) { +>>> var p = foo().x; +1 >^^^^ +2 > ^^^^ +3 > ^ +4 > ^^^ +5 > ^^^ +6 > ^^ +7 > ^ +8 > ^ +9 > ^ +1 > > -2 > var -3 > p -4 > = -5 > foo -6 > () -7 > . -8 > x -9 > ; -1 >Emitted(19, 9) Source(5, 5) + SourceIndex(0) -2 >Emitted(19, 13) Source(5, 9) + SourceIndex(0) -3 >Emitted(19, 14) Source(5, 10) + SourceIndex(0) -4 >Emitted(19, 17) Source(5, 13) + SourceIndex(0) -5 >Emitted(19, 20) Source(5, 16) + SourceIndex(0) -6 >Emitted(19, 22) Source(5, 18) + SourceIndex(0) -7 >Emitted(19, 23) Source(5, 19) + SourceIndex(0) -8 >Emitted(19, 24) Source(5, 20) + SourceIndex(0) -9 >Emitted(19, 25) Source(5, 21) + SourceIndex(0) +2 > var +3 > p +4 > = +5 > foo +6 > () +7 > . +8 > x +9 > ; +1 >Emitted(5, 5) Source(5, 5) + SourceIndex(0) +2 >Emitted(5, 9) Source(5, 9) + SourceIndex(0) +3 >Emitted(5, 10) Source(5, 10) + SourceIndex(0) +4 >Emitted(5, 13) Source(5, 13) + SourceIndex(0) +5 >Emitted(5, 16) Source(5, 16) + SourceIndex(0) +6 >Emitted(5, 18) Source(5, 18) + SourceIndex(0) +7 >Emitted(5, 19) Source(5, 19) + SourceIndex(0) +8 >Emitted(5, 20) Source(5, 20) + SourceIndex(0) +9 >Emitted(5, 21) Source(5, 21) + SourceIndex(0) --- ->>> } -1 >^^^^ -2 > ^ +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > -2 > } -1 >Emitted(20, 5) Source(6, 1) + SourceIndex(0) -2 >Emitted(20, 6) Source(6, 2) + SourceIndex(0) +2 >} +1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) --- ->>>} ->>>catch (e_1_1) { e_1 = { error: e_1_1 }; } ->>>finally { ->>> try { ->>> if (_c && !_c.done && (_a = _b.return)) _a.call(_b); ->>> } ->>> finally { if (e_1) throw e_1.error; } ->>>} >>>//# sourceMappingURL=ES5For-of34.js.map \ No newline at end of file diff --git a/tests/baselines/reference/ES5For-of35.js b/tests/baselines/reference/ES5For-of35.js index b7feda58ce1e4..c60f3294b6d66 100644 --- a/tests/baselines/reference/ES5For-of35.js +++ b/tests/baselines/reference/ES5For-of35.js @@ -7,30 +7,8 @@ for (const {x: a = 0, y: b = 1} of [2, 3]) { } //// [ES5For-of35.js] -var __values = (this && this.__values) || function(o) { - var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; - if (m) return m.call(o); - if (o && typeof o.length === "number") return { - next: function () { - if (o && i >= o.length) o = void 0; - return { value: o && o[i++], done: !o }; - } - }; - throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); -}; -var e_1, _a; -try { - for (var _b = __values([2, 3]), _c = _b.next(); !_c.done; _c = _b.next()) { - var _d = _c.value, _e = _d.x, a = _e === void 0 ? 0 : _e, _f = _d.y, b = _f === void 0 ? 1 : _f; - a; - b; - } -} -catch (e_1_1) { e_1 = { error: e_1_1 }; } -finally { - try { - if (_c && !_c.done && (_a = _b.return)) _a.call(_b); - } - finally { if (e_1) throw e_1.error; } +for (const { x: a = 0, y: b = 1 } of [2, 3]) { + a; + b; } //# sourceMappingURL=ES5For-of35.js.map \ No newline at end of file diff --git a/tests/baselines/reference/ES5For-of35.js.map b/tests/baselines/reference/ES5For-of35.js.map index ef2198fce7606..c0106e63e4e96 100644 --- a/tests/baselines/reference/ES5For-of35.js.map +++ b/tests/baselines/reference/ES5For-of35.js.map @@ -1,3 +1,3 @@ //// [ES5For-of35.js.map] -{"version":3,"file":"ES5For-of35.js","sourceRoot":"","sources":["ES5For-of35.ts"],"names":[],"mappings":";;;;;;;;;;;;;IAAA,KAAmC,IAAA,KAAA,SAAA,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA,gBAAA,4BAAE,CAAC;QAAjC,IAAA,aAAoB,EAAnB,SAAQ,EAAL,CAAC,mBAAG,CAAC,KAAA,EAAE,SAAQ,EAAL,CAAC,mBAAG,CAAC,KAAA;QAC1B,CAAC,CAAC;QACF,CAAC,CAAC;IACN,CAAC"} -//// https://sokra.github.io/source-map-visualization#base64,dmFyIF9fdmFsdWVzID0gKHRoaXMgJiYgdGhpcy5fX3ZhbHVlcykgfHwgZnVuY3Rpb24obykgew0KICAgIHZhciBzID0gdHlwZW9mIFN5bWJvbCA9PT0gImZ1bmN0aW9uIiAmJiBTeW1ib2wuaXRlcmF0b3IsIG0gPSBzICYmIG9bc10sIGkgPSAwOw0KICAgIGlmIChtKSByZXR1cm4gbS5jYWxsKG8pOw0KICAgIGlmIChvICYmIHR5cGVvZiBvLmxlbmd0aCA9PT0gIm51bWJlciIpIHJldHVybiB7DQogICAgICAgIG5leHQ6IGZ1bmN0aW9uICgpIHsNCiAgICAgICAgICAgIGlmIChvICYmIGkgPj0gby5sZW5ndGgpIG8gPSB2b2lkIDA7DQogICAgICAgICAgICByZXR1cm4geyB2YWx1ZTogbyAmJiBvW2krK10sIGRvbmU6ICFvIH07DQogICAgICAgIH0NCiAgICB9Ow0KICAgIHRocm93IG5ldyBUeXBlRXJyb3IocyA/ICJPYmplY3QgaXMgbm90IGl0ZXJhYmxlLiIgOiAiU3ltYm9sLml0ZXJhdG9yIGlzIG5vdCBkZWZpbmVkLiIpOw0KfTsNCnZhciBlXzEsIF9hOw0KdHJ5IHsNCiAgICBmb3IgKHZhciBfYiA9IF9fdmFsdWVzKFsyLCAzXSksIF9jID0gX2IubmV4dCgpOyAhX2MuZG9uZTsgX2MgPSBfYi5uZXh0KCkpIHsNCiAgICAgICAgdmFyIF9kID0gX2MudmFsdWUsIF9lID0gX2QueCwgYSA9IF9lID09PSB2b2lkIDAgPyAwIDogX2UsIF9mID0gX2QueSwgYiA9IF9mID09PSB2b2lkIDAgPyAxIDogX2Y7DQogICAgICAgIGE7DQogICAgICAgIGI7DQogICAgfQ0KfQ0KY2F0Y2ggKGVfMV8xKSB7IGVfMSA9IHsgZXJyb3I6IGVfMV8xIH07IH0NCmZpbmFsbHkgew0KICAgIHRyeSB7DQogICAgICAgIGlmIChfYyAmJiAhX2MuZG9uZSAmJiAoX2EgPSBfYi5yZXR1cm4pKSBfYS5jYWxsKF9iKTsNCiAgICB9DQogICAgZmluYWxseSB7IGlmIChlXzEpIHRocm93IGVfMS5lcnJvcjsgfQ0KfQ0KLy8jIHNvdXJjZU1hcHBpbmdVUkw9RVM1Rm9yLW9mMzUuanMubWFw,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRVM1Rm9yLW9mMzUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJFUzVGb3Itb2YzNS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7O0lBQUEsS0FBbUMsSUFBQSxLQUFBLFNBQUEsQ0FBQyxDQUFDLEVBQUUsQ0FBQyxDQUFDLENBQUEsZ0JBQUEsNEJBQUUsQ0FBQztRQUFqQyxJQUFBLGFBQW9CLEVBQW5CLFNBQVEsRUFBTCxDQUFDLG1CQUFHLENBQUMsS0FBQSxFQUFFLFNBQVEsRUFBTCxDQUFDLG1CQUFHLENBQUMsS0FBQTtRQUMxQixDQUFDLENBQUM7UUFDRixDQUFDLENBQUM7SUFDTixDQUFDIn0=,Zm9yIChjb25zdCB7eDogYSA9IDAsIHk6IGIgPSAxfSBvZiBbMiwgM10pIHsKICAgIGE7CiAgICBiOwp9 +{"version":3,"file":"ES5For-of35.js","sourceRoot":"","sources":["ES5For-of35.ts"],"names":[],"mappings":"AAAA,KAAK,MAAM,EAAC,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC,GAAG,CAAC,EAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC;IACxC,CAAC,CAAC;IACF,CAAC,CAAC;AACN,CAAC"} +//// https://sokra.github.io/source-map-visualization#base64,Zm9yIChjb25zdCB7IHg6IGEgPSAwLCB5OiBiID0gMSB9IG9mIFsyLCAzXSkgew0KICAgIGE7DQogICAgYjsNCn0NCi8vIyBzb3VyY2VNYXBwaW5nVVJMPUVTNUZvci1vZjM1LmpzLm1hcA==,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRVM1Rm9yLW9mMzUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJFUzVGb3Itb2YzNS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxLQUFLLE1BQU0sRUFBQyxDQUFDLEVBQUUsQ0FBQyxHQUFHLENBQUMsRUFBRSxDQUFDLEVBQUUsQ0FBQyxHQUFHLENBQUMsRUFBQyxJQUFJLENBQUMsQ0FBQyxFQUFFLENBQUMsQ0FBQyxFQUFFLENBQUM7SUFDeEMsQ0FBQyxDQUFDO0lBQ0YsQ0FBQyxDQUFDO0FBQ04sQ0FBQyJ9,Zm9yIChjb25zdCB7eDogYSA9IDAsIHk6IGIgPSAxfSBvZiBbMiwgM10pIHsKICAgIGE7CiAgICBiOwp9 diff --git a/tests/baselines/reference/ES5For-of35.sourcemap.txt b/tests/baselines/reference/ES5For-of35.sourcemap.txt index addd7a80176bf..f096b11328b9a 100644 --- a/tests/baselines/reference/ES5For-of35.sourcemap.txt +++ b/tests/baselines/reference/ES5For-of35.sourcemap.txt @@ -8,157 +8,113 @@ sources: ES5For-of35.ts emittedFile:ES5For-of35.js sourceFile:ES5For-of35.ts ------------------------------------------------------------------- ->>>var __values = (this && this.__values) || function(o) { ->>> var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; ->>> if (m) return m.call(o); ->>> if (o && typeof o.length === "number") return { ->>> next: function () { ->>> if (o && i >= o.length) o = void 0; ->>> return { value: o && o[i++], done: !o }; ->>> } ->>> }; ->>> throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); ->>>}; ->>>var e_1, _a; ->>>try { ->>> for (var _b = __values([2, 3]), _c = _b.next(); !_c.done; _c = _b.next()) { -1 >^^^^ -2 > ^^^^^ -3 > ^^^^ -4 > ^^^^^ -5 > ^^^^^^^^^ -6 > ^ -7 > ^ -8 > ^^ -9 > ^ -10> ^ -11> ^ -12> ^^^^^^^^^^^^^^^^ -13> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -14> ^ -15> ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +>>>for (const { x: a = 0, y: b = 1 } of [2, 3]) { 1 > -2 > for (const {x: a = 0, y: b = 1} of -3 > -4 > -5 > -6 > [ -7 > 2 -8 > , -9 > 3 -10> ] -11> -12> -13> ) -14> { -1 >Emitted(14, 5) Source(1, 1) + SourceIndex(0) -2 >Emitted(14, 10) Source(1, 36) + SourceIndex(0) -3 >Emitted(14, 14) Source(1, 36) + SourceIndex(0) -4 >Emitted(14, 19) Source(1, 36) + SourceIndex(0) -5 >Emitted(14, 28) Source(1, 36) + SourceIndex(0) -6 >Emitted(14, 29) Source(1, 37) + SourceIndex(0) -7 >Emitted(14, 30) Source(1, 38) + SourceIndex(0) -8 >Emitted(14, 32) Source(1, 40) + SourceIndex(0) -9 >Emitted(14, 33) Source(1, 41) + SourceIndex(0) -10>Emitted(14, 34) Source(1, 42) + SourceIndex(0) -11>Emitted(14, 35) Source(1, 42) + SourceIndex(0) -12>Emitted(14, 51) Source(1, 42) + SourceIndex(0) -13>Emitted(14, 79) Source(1, 44) + SourceIndex(0) -14>Emitted(14, 80) Source(1, 45) + SourceIndex(0) ---- ->>> var _d = _c.value, _e = _d.x, a = _e === void 0 ? 0 : _e, _f = _d.y, b = _f === void 0 ? 1 : _f; -1->^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^ -6 > ^^ -7 > ^ -8 > ^^^^^^^^^^^^^^^^^^^ -9 > ^ -10> ^^^^^ -11> ^^ -12> ^^^^^^^^^ -13> ^^ -14> ^ -15> ^^^^^^^^^^^^^^^^^^^ -16> ^ -17> ^^^^^ -1-> -2 > -3 > {x: a = 0, y: b = 1} -4 > -5 > x: a = 0 -6 > -7 > a -8 > = -9 > 0 -10> -11> , -12> y: b = 1 -13> -14> b -15> = -16> 1 -17> -1->Emitted(15, 9) Source(1, 12) + SourceIndex(0) -2 >Emitted(15, 13) Source(1, 12) + SourceIndex(0) -3 >Emitted(15, 26) Source(1, 32) + SourceIndex(0) -4 >Emitted(15, 28) Source(1, 13) + SourceIndex(0) -5 >Emitted(15, 37) Source(1, 21) + SourceIndex(0) -6 >Emitted(15, 39) Source(1, 16) + SourceIndex(0) -7 >Emitted(15, 40) Source(1, 17) + SourceIndex(0) -8 >Emitted(15, 59) Source(1, 20) + SourceIndex(0) -9 >Emitted(15, 60) Source(1, 21) + SourceIndex(0) -10>Emitted(15, 65) Source(1, 21) + SourceIndex(0) -11>Emitted(15, 67) Source(1, 23) + SourceIndex(0) -12>Emitted(15, 76) Source(1, 31) + SourceIndex(0) -13>Emitted(15, 78) Source(1, 26) + SourceIndex(0) -14>Emitted(15, 79) Source(1, 27) + SourceIndex(0) -15>Emitted(15, 98) Source(1, 30) + SourceIndex(0) -16>Emitted(15, 99) Source(1, 31) + SourceIndex(0) -17>Emitted(15, 104) Source(1, 31) + SourceIndex(0) +2 >^^^^^ +3 > ^^^^^^ +4 > ^^ +5 > ^ +6 > ^^ +7 > ^ +8 > ^^^ +9 > ^ +10> ^^ +11> ^ +12> ^^ +13> ^ +14> ^^^ +15> ^ +16> ^^ +17> ^^^^ +18> ^ +19> ^ +20> ^^ +21> ^ +22> ^ +23> ^^ +24> ^ +1 > +2 >for ( +3 > const +4 > { +5 > x +6 > : +7 > a +8 > = +9 > 0 +10> , +11> y +12> : +13> b +14> = +15> 1 +16> } +17> of +18> [ +19> 2 +20> , +21> 3 +22> ] +23> ) +24> { +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 6) Source(1, 6) + SourceIndex(0) +3 >Emitted(1, 12) Source(1, 12) + SourceIndex(0) +4 >Emitted(1, 14) Source(1, 13) + SourceIndex(0) +5 >Emitted(1, 15) Source(1, 14) + SourceIndex(0) +6 >Emitted(1, 17) Source(1, 16) + SourceIndex(0) +7 >Emitted(1, 18) Source(1, 17) + SourceIndex(0) +8 >Emitted(1, 21) Source(1, 20) + SourceIndex(0) +9 >Emitted(1, 22) Source(1, 21) + SourceIndex(0) +10>Emitted(1, 24) Source(1, 23) + SourceIndex(0) +11>Emitted(1, 25) Source(1, 24) + SourceIndex(0) +12>Emitted(1, 27) Source(1, 26) + SourceIndex(0) +13>Emitted(1, 28) Source(1, 27) + SourceIndex(0) +14>Emitted(1, 31) Source(1, 30) + SourceIndex(0) +15>Emitted(1, 32) Source(1, 31) + SourceIndex(0) +16>Emitted(1, 34) Source(1, 32) + SourceIndex(0) +17>Emitted(1, 38) Source(1, 36) + SourceIndex(0) +18>Emitted(1, 39) Source(1, 37) + SourceIndex(0) +19>Emitted(1, 40) Source(1, 38) + SourceIndex(0) +20>Emitted(1, 42) Source(1, 40) + SourceIndex(0) +21>Emitted(1, 43) Source(1, 41) + SourceIndex(0) +22>Emitted(1, 44) Source(1, 42) + SourceIndex(0) +23>Emitted(1, 46) Source(1, 44) + SourceIndex(0) +24>Emitted(1, 47) Source(1, 45) + SourceIndex(0) --- ->>> a; -1 >^^^^^^^^ -2 > ^ -3 > ^ -4 > ^-> -1 >} of [2, 3]) { +>>> a; +1 >^^^^ +2 > ^ +3 > ^ +4 > ^-> +1 > > -2 > a -3 > ; -1 >Emitted(16, 9) Source(2, 5) + SourceIndex(0) -2 >Emitted(16, 10) Source(2, 6) + SourceIndex(0) -3 >Emitted(16, 11) Source(2, 7) + SourceIndex(0) +2 > a +3 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 6) Source(2, 6) + SourceIndex(0) +3 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) --- ->>> b; -1->^^^^^^^^ -2 > ^ -3 > ^ +>>> b; +1->^^^^ +2 > ^ +3 > ^ 1-> > -2 > b -3 > ; -1->Emitted(17, 9) Source(3, 5) + SourceIndex(0) -2 >Emitted(17, 10) Source(3, 6) + SourceIndex(0) -3 >Emitted(17, 11) Source(3, 7) + SourceIndex(0) +2 > b +3 > ; +1->Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 6) Source(3, 6) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) --- ->>> } -1 >^^^^ -2 > ^ +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > -2 > } -1 >Emitted(18, 5) Source(4, 1) + SourceIndex(0) -2 >Emitted(18, 6) Source(4, 2) + SourceIndex(0) +2 >} +1 >Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 2) Source(4, 2) + SourceIndex(0) --- ->>>} ->>>catch (e_1_1) { e_1 = { error: e_1_1 }; } ->>>finally { ->>> try { ->>> if (_c && !_c.done && (_a = _b.return)) _a.call(_b); ->>> } ->>> finally { if (e_1) throw e_1.error; } ->>>} >>>//# sourceMappingURL=ES5For-of35.js.map \ No newline at end of file diff --git a/tests/baselines/reference/ES5For-of36(target=es2015).errors.txt b/tests/baselines/reference/ES5For-of36(target=es2015).errors.txt new file mode 100644 index 0000000000000..c39a271f1749a --- /dev/null +++ b/tests/baselines/reference/ES5For-of36(target=es2015).errors.txt @@ -0,0 +1,10 @@ +ES5For-of36.ts(1,10): error TS2488: Type 'number' must have a '[Symbol.iterator]()' method that returns an iterator. + + +==== ES5For-of36.ts (1 errors) ==== + for (let [a = 0, b = 1] of [2, 3]) { + ~~~~~~~~~~~~~~ +!!! error TS2488: Type 'number' must have a '[Symbol.iterator]()' method that returns an iterator. + a; + b; + } \ No newline at end of file diff --git a/tests/baselines/reference/ES5For-of36(target=es2015).js b/tests/baselines/reference/ES5For-of36(target=es2015).js new file mode 100644 index 0000000000000..dd91fc95a43ce --- /dev/null +++ b/tests/baselines/reference/ES5For-of36(target=es2015).js @@ -0,0 +1,14 @@ +//// [tests/cases/conformance/statements/for-ofStatements/ES5For-of36.ts] //// + +//// [ES5For-of36.ts] +for (let [a = 0, b = 1] of [2, 3]) { + a; + b; +} + +//// [ES5For-of36.js] +for (let [a = 0, b = 1] of [2, 3]) { + a; + b; +} +//# sourceMappingURL=ES5For-of36.js.map \ No newline at end of file diff --git a/tests/baselines/reference/ES5For-of36(target=es2015).js.map b/tests/baselines/reference/ES5For-of36(target=es2015).js.map new file mode 100644 index 0000000000000..cfe267605f3e3 --- /dev/null +++ b/tests/baselines/reference/ES5For-of36(target=es2015).js.map @@ -0,0 +1,3 @@ +//// [ES5For-of36.js.map] +{"version":3,"file":"ES5For-of36.js","sourceRoot":"","sources":["ES5For-of36.ts"],"names":[],"mappings":"AAAA,KAAK,IAAI,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC;IAChC,CAAC,CAAC;IACF,CAAC,CAAC;AACN,CAAC"} +//// https://sokra.github.io/source-map-visualization#base64,Zm9yIChsZXQgW2EgPSAwLCBiID0gMV0gb2YgWzIsIDNdKSB7DQogICAgYTsNCiAgICBiOw0KfQ0KLy8jIHNvdXJjZU1hcHBpbmdVUkw9RVM1Rm9yLW9mMzYuanMubWFw,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRVM1Rm9yLW9mMzYuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJFUzVGb3Itb2YzNi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxLQUFLLElBQUksQ0FBQyxDQUFDLEdBQUcsQ0FBQyxFQUFFLENBQUMsR0FBRyxDQUFDLENBQUMsSUFBSSxDQUFDLENBQUMsRUFBRSxDQUFDLENBQUMsRUFBRSxDQUFDO0lBQ2hDLENBQUMsQ0FBQztJQUNGLENBQUMsQ0FBQztBQUNOLENBQUMifQ==,Zm9yIChsZXQgW2EgPSAwLCBiID0gMV0gb2YgWzIsIDNdKSB7CiAgICBhOwogICAgYjsKfQ== diff --git a/tests/baselines/reference/ES5For-of36(target=es2015).sourcemap.txt b/tests/baselines/reference/ES5For-of36(target=es2015).sourcemap.txt new file mode 100644 index 0000000000000..03acfa9fab6ff --- /dev/null +++ b/tests/baselines/reference/ES5For-of36(target=es2015).sourcemap.txt @@ -0,0 +1,108 @@ +=================================================================== +JsFile: ES5For-of36.js +mapUrl: ES5For-of36.js.map +sourceRoot: +sources: ES5For-of36.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:ES5For-of36.js +sourceFile:ES5For-of36.ts +------------------------------------------------------------------- +>>>for (let [a = 0, b = 1] of [2, 3]) { +1 > +2 >^^^^^ +3 > ^^^^ +4 > ^ +5 > ^ +6 > ^^^ +7 > ^ +8 > ^^ +9 > ^ +10> ^^^ +11> ^ +12> ^ +13> ^^^^ +14> ^ +15> ^ +16> ^^ +17> ^ +18> ^ +19> ^^ +20> ^ +1 > +2 >for ( +3 > let +4 > [ +5 > a +6 > = +7 > 0 +8 > , +9 > b +10> = +11> 1 +12> ] +13> of +14> [ +15> 2 +16> , +17> 3 +18> ] +19> ) +20> { +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 6) Source(1, 6) + SourceIndex(0) +3 >Emitted(1, 10) Source(1, 10) + SourceIndex(0) +4 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +5 >Emitted(1, 12) Source(1, 12) + SourceIndex(0) +6 >Emitted(1, 15) Source(1, 15) + SourceIndex(0) +7 >Emitted(1, 16) Source(1, 16) + SourceIndex(0) +8 >Emitted(1, 18) Source(1, 18) + SourceIndex(0) +9 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +10>Emitted(1, 22) Source(1, 22) + SourceIndex(0) +11>Emitted(1, 23) Source(1, 23) + SourceIndex(0) +12>Emitted(1, 24) Source(1, 24) + SourceIndex(0) +13>Emitted(1, 28) Source(1, 28) + SourceIndex(0) +14>Emitted(1, 29) Source(1, 29) + SourceIndex(0) +15>Emitted(1, 30) Source(1, 30) + SourceIndex(0) +16>Emitted(1, 32) Source(1, 32) + SourceIndex(0) +17>Emitted(1, 33) Source(1, 33) + SourceIndex(0) +18>Emitted(1, 34) Source(1, 34) + SourceIndex(0) +19>Emitted(1, 36) Source(1, 36) + SourceIndex(0) +20>Emitted(1, 37) Source(1, 37) + SourceIndex(0) +--- +>>> a; +1 >^^^^ +2 > ^ +3 > ^ +4 > ^-> +1 > + > +2 > a +3 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 6) Source(2, 6) + SourceIndex(0) +3 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +--- +>>> b; +1->^^^^ +2 > ^ +3 > ^ +1-> + > +2 > b +3 > ; +1->Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 6) Source(3, 6) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 2) Source(4, 2) + SourceIndex(0) +--- +>>>//# sourceMappingURL=ES5For-of36.js.map \ No newline at end of file diff --git a/tests/baselines/reference/ES5For-of36.symbols b/tests/baselines/reference/ES5For-of36(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/ES5For-of36.symbols rename to tests/baselines/reference/ES5For-of36(target=es2015).symbols diff --git a/tests/baselines/reference/ES5For-of36.types b/tests/baselines/reference/ES5For-of36(target=es2015).types similarity index 100% rename from tests/baselines/reference/ES5For-of36.types rename to tests/baselines/reference/ES5For-of36(target=es2015).types diff --git a/tests/baselines/reference/ES5For-of36.errors.txt b/tests/baselines/reference/ES5For-of36(target=es5).errors.txt similarity index 100% rename from tests/baselines/reference/ES5For-of36.errors.txt rename to tests/baselines/reference/ES5For-of36(target=es5).errors.txt diff --git a/tests/baselines/reference/ES5For-of36.js b/tests/baselines/reference/ES5For-of36(target=es5).js similarity index 100% rename from tests/baselines/reference/ES5For-of36.js rename to tests/baselines/reference/ES5For-of36(target=es5).js diff --git a/tests/baselines/reference/ES5For-of36.js.map b/tests/baselines/reference/ES5For-of36(target=es5).js.map similarity index 100% rename from tests/baselines/reference/ES5For-of36.js.map rename to tests/baselines/reference/ES5For-of36(target=es5).js.map diff --git a/tests/baselines/reference/ES5For-of36.sourcemap.txt b/tests/baselines/reference/ES5For-of36(target=es5).sourcemap.txt similarity index 100% rename from tests/baselines/reference/ES5For-of36.sourcemap.txt rename to tests/baselines/reference/ES5For-of36(target=es5).sourcemap.txt diff --git a/tests/baselines/reference/ES5For-of36(target=es5).symbols b/tests/baselines/reference/ES5For-of36(target=es5).symbols new file mode 100644 index 0000000000000..5385cfbb0d72d --- /dev/null +++ b/tests/baselines/reference/ES5For-of36(target=es5).symbols @@ -0,0 +1,13 @@ +//// [tests/cases/conformance/statements/for-ofStatements/ES5For-of36.ts] //// + +=== ES5For-of36.ts === +for (let [a = 0, b = 1] of [2, 3]) { +>a : Symbol(a, Decl(ES5For-of36.ts, 0, 10)) +>b : Symbol(b, Decl(ES5For-of36.ts, 0, 16)) + + a; +>a : Symbol(a, Decl(ES5For-of36.ts, 0, 10)) + + b; +>b : Symbol(b, Decl(ES5For-of36.ts, 0, 16)) +} diff --git a/tests/baselines/reference/ES5For-of36(target=es5).types b/tests/baselines/reference/ES5For-of36(target=es5).types new file mode 100644 index 0000000000000..dc0fc1320ee22 --- /dev/null +++ b/tests/baselines/reference/ES5For-of36(target=es5).types @@ -0,0 +1,27 @@ +//// [tests/cases/conformance/statements/for-ofStatements/ES5For-of36.ts] //// + +=== ES5For-of36.ts === +for (let [a = 0, b = 1] of [2, 3]) { +>a : any +> : ^^^ +>0 : 0 +> : ^ +>b : any +> : ^^^ +>1 : 1 +> : ^ +>[2, 3] : number[] +> : ^^^^^^^^ +>2 : 2 +> : ^ +>3 : 3 +> : ^ + + a; +>a : any +> : ^^^ + + b; +>b : any +> : ^^^ +} diff --git a/tests/baselines/reference/ES5For-of37.js b/tests/baselines/reference/ES5For-of37.js index 5f388c3ae482d..4bf3af2c37343 100644 --- a/tests/baselines/reference/ES5For-of37.js +++ b/tests/baselines/reference/ES5For-of37.js @@ -19,49 +19,17 @@ for (const i of [0, 1, 2, 3, 4]) { //// [ES5For-of37.js] // https://github.com/microsoft/TypeScript/issues/30083 -var __values = (this && this.__values) || function(o) { - var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; - if (m) return m.call(o); - if (o && typeof o.length === "number") return { - next: function () { - if (o && i >= o.length) o = void 0; - return { value: o && o[i++], done: !o }; - } - }; - throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); -}; -var e_1, _a, e_2, _b; -try { - for (var _c = __values([0, 1, 2, 3, 4]), _d = _c.next(); !_d.done; _d = _c.next()) { - var i = _d.value; - try { - try { - // Ensure catch binding for the following loop is reset per iteration: - for (var _e = (e_2 = void 0, __values([1, 2, 3])), _f = _e.next(); !_f.done; _f = _e.next()) { - var j = _f.value; - if (i === 2) { - throw new Error('ERR'); - } - } - } - catch (e_2_1) { e_2 = { error: e_2_1 }; } - finally { - try { - if (_f && !_f.done && (_b = _e.return)) _b.call(_e); - } - finally { if (e_2) throw e_2.error; } +for (const i of [0, 1, 2, 3, 4]) { + try { + // Ensure catch binding for the following loop is reset per iteration: + for (const j of [1, 2, 3]) { + if (i === 2) { + throw new Error('ERR'); } - console.log(i); - } - catch (err) { - console.log('E %s %s', i, err); } + console.log(i); } -} -catch (e_1_1) { e_1 = { error: e_1_1 }; } -finally { - try { - if (_d && !_d.done && (_a = _c.return)) _a.call(_c); + catch (err) { + console.log('E %s %s', i, err); } - finally { if (e_1) throw e_1.error; } } diff --git a/tests/baselines/reference/ES5For-of4.js b/tests/baselines/reference/ES5For-of4.js index f9966ad370998..497507bb4f7b0 100644 --- a/tests/baselines/reference/ES5For-of4.js +++ b/tests/baselines/reference/ES5For-of4.js @@ -6,8 +6,6 @@ for (var v of []) var y = v; //// [ES5For-of4.js] -for (var _i = 0, _a = []; _i < _a.length; _i++) { - var v = _a[_i]; +for (var v of []) var x = v; -} var y = v; diff --git a/tests/baselines/reference/ES5For-of5.js b/tests/baselines/reference/ES5For-of5.js index 42dc8a621accb..795cd99365c42 100644 --- a/tests/baselines/reference/ES5For-of5.js +++ b/tests/baselines/reference/ES5For-of5.js @@ -6,7 +6,6 @@ for (var _a of []) { } //// [ES5For-of5.js] -for (var _i = 0, _b = []; _i < _b.length; _i++) { - var _a = _b[_i]; +for (var _a of []) { var x = _a; } diff --git a/tests/baselines/reference/ES5For-of6.js b/tests/baselines/reference/ES5For-of6.js index 1023bbf09269c..e734734077bf1 100644 --- a/tests/baselines/reference/ES5For-of6.js +++ b/tests/baselines/reference/ES5For-of6.js @@ -8,10 +8,8 @@ for (var w of []) { } //// [ES5For-of6.js] -for (var _i = 0, _a = []; _i < _a.length; _i++) { - var w = _a[_i]; - for (var _b = 0, _c = []; _b < _c.length; _b++) { - var v = _c[_b]; +for (var w of []) { + for (var v of []) { var x = [w, v]; } } diff --git a/tests/baselines/reference/ES5For-of7.js b/tests/baselines/reference/ES5For-of7.js index b51417005045a..2cb31ac52e2fa 100644 --- a/tests/baselines/reference/ES5For-of7.js +++ b/tests/baselines/reference/ES5For-of7.js @@ -10,11 +10,9 @@ for (var v of []) { } //// [ES5For-of7.js] -for (var _i = 0, _a = []; _i < _a.length; _i++) { - var w = _a[_i]; +for (var w of []) { var x = w; } -for (var _b = 0, _c = []; _b < _c.length; _b++) { - var v = _c[_b]; +for (var v of []) { var x = [w, v]; } diff --git a/tests/baselines/reference/ES5For-of8.js b/tests/baselines/reference/ES5For-of8.js index 72badc560ca64..d70a3fada883f 100644 --- a/tests/baselines/reference/ES5For-of8.js +++ b/tests/baselines/reference/ES5For-of8.js @@ -12,8 +12,7 @@ for (foo().x of ['a', 'b', 'c']) { function foo() { return { x: 0 }; } -for (var _i = 0, _a = ['a', 'b', 'c']; _i < _a.length; _i++) { - foo().x = _a[_i]; +for (foo().x of ['a', 'b', 'c']) { var p = foo().x; } //# sourceMappingURL=ES5For-of8.js.map \ No newline at end of file diff --git a/tests/baselines/reference/ES5For-of8.js.map b/tests/baselines/reference/ES5For-of8.js.map index 488728ccce276..97760cd0f5f7c 100644 --- a/tests/baselines/reference/ES5For-of8.js.map +++ b/tests/baselines/reference/ES5For-of8.js.map @@ -1,3 +1,3 @@ //// [ES5For-of8.js.map] -{"version":3,"file":"ES5For-of8.js","sourceRoot":"","sources":["ES5For-of8.ts"],"names":[],"mappings":"AAAA,SAAS,GAAG;IACR,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC;AACpB,CAAC;AACD,KAAgB,UAAe,EAAf,MAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAAf,cAAe,EAAf,IAAe,EAAE,CAAC;IAA7B,GAAG,EAAE,CAAC,CAAC,SAAA;IACR,IAAI,CAAC,GAAG,GAAG,EAAE,CAAC,CAAC,CAAC;AACpB,CAAC"} -//// https://sokra.github.io/source-map-visualization#base64,ZnVuY3Rpb24gZm9vKCkgew0KICAgIHJldHVybiB7IHg6IDAgfTsNCn0NCmZvciAodmFyIF9pID0gMCwgX2EgPSBbJ2EnLCAnYicsICdjJ107IF9pIDwgX2EubGVuZ3RoOyBfaSsrKSB7DQogICAgZm9vKCkueCA9IF9hW19pXTsNCiAgICB2YXIgcCA9IGZvbygpLng7DQp9DQovLyMgc291cmNlTWFwcGluZ1VSTD1FUzVGb3Itb2Y4LmpzLm1hcA==,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRVM1Rm9yLW9mOC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIkVTNUZvci1vZjgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsU0FBUyxHQUFHO0lBQ1IsT0FBTyxFQUFFLENBQUMsRUFBRSxDQUFDLEVBQUUsQ0FBQztBQUNwQixDQUFDO0FBQ0QsS0FBZ0IsVUFBZSxFQUFmLE1BQUMsR0FBRyxFQUFFLEdBQUcsRUFBRSxHQUFHLENBQUMsRUFBZixjQUFlLEVBQWYsSUFBZSxFQUFFLENBQUM7SUFBN0IsR0FBRyxFQUFFLENBQUMsQ0FBQyxTQUFBO0lBQ1IsSUFBSSxDQUFDLEdBQUcsR0FBRyxFQUFFLENBQUMsQ0FBQyxDQUFDO0FBQ3BCLENBQUMifQ==,ZnVuY3Rpb24gZm9vKCkgewogICAgcmV0dXJuIHsgeDogMCB9Owp9CmZvciAoZm9vKCkueCBvZiBbJ2EnLCAnYicsICdjJ10pIHsKICAgIHZhciBwID0gZm9vKCkueDsKfQ== +{"version":3,"file":"ES5For-of8.js","sourceRoot":"","sources":["ES5For-of8.ts"],"names":[],"mappings":"AAAA,SAAS,GAAG;IACR,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC;AACpB,CAAC;AACD,KAAK,GAAG,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,CAAC;IAC9B,IAAI,CAAC,GAAG,GAAG,EAAE,CAAC,CAAC,CAAC;AACpB,CAAC"} +//// https://sokra.github.io/source-map-visualization#base64,ZnVuY3Rpb24gZm9vKCkgew0KICAgIHJldHVybiB7IHg6IDAgfTsNCn0NCmZvciAoZm9vKCkueCBvZiBbJ2EnLCAnYicsICdjJ10pIHsNCiAgICB2YXIgcCA9IGZvbygpLng7DQp9DQovLyMgc291cmNlTWFwcGluZ1VSTD1FUzVGb3Itb2Y4LmpzLm1hcA==,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRVM1Rm9yLW9mOC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIkVTNUZvci1vZjgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsU0FBUyxHQUFHO0lBQ1IsT0FBTyxFQUFFLENBQUMsRUFBRSxDQUFDLEVBQUUsQ0FBQztBQUNwQixDQUFDO0FBQ0QsS0FBSyxHQUFHLEVBQUUsQ0FBQyxDQUFDLElBQUksQ0FBQyxHQUFHLEVBQUUsR0FBRyxFQUFFLEdBQUcsQ0FBQyxFQUFFLENBQUM7SUFDOUIsSUFBSSxDQUFDLEdBQUcsR0FBRyxFQUFFLENBQUMsQ0FBQyxDQUFDO0FBQ3BCLENBQUMifQ==,ZnVuY3Rpb24gZm9vKCkgewogICAgcmV0dXJuIHsgeDogMCB9Owp9CmZvciAoZm9vKCkueCBvZiBbJ2EnLCAnYicsICdjJ10pIHsKICAgIHZhciBwID0gZm9vKCkueDsKfQ== diff --git a/tests/baselines/reference/ES5For-of8.sourcemap.txt b/tests/baselines/reference/ES5For-of8.sourcemap.txt index 498313f9828b4..db2c386850e74 100644 --- a/tests/baselines/reference/ES5For-of8.sourcemap.txt +++ b/tests/baselines/reference/ES5For-of8.sourcemap.txt @@ -50,90 +50,66 @@ sourceFile:ES5For-of8.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} 1 >Emitted(3, 1) Source(3, 1) + SourceIndex(0) 2 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- ->>>for (var _i = 0, _a = ['a', 'b', 'c']; _i < _a.length; _i++) { +>>>for (foo().x of ['a', 'b', 'c']) { 1-> 2 >^^^^^ -3 > ^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^ -6 > ^^^ -7 > ^^ -8 > ^^^ -9 > ^^ -10> ^^^ -11> ^ -12> ^^ -13> ^^^^^^^^^^^^^^ -14> ^^ -15> ^^^^ -16> ^^ -17> ^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^ +7 > ^^^^ +8 > ^ +9 > ^^^ +10> ^^ +11> ^^^ +12> ^^ +13> ^^^ +14> ^ +15> ^^ +16> ^ 1-> > -2 >for (foo().x of -3 > ['a', 'b', 'c'] -4 > -5 > [ -6 > 'a' -7 > , -8 > 'b' -9 > , -10> 'c' -11> ] -12> -13> ['a', 'b', 'c'] -14> -15> ['a', 'b', 'c'] -16> ) -17> { +2 >for ( +3 > foo +4 > () +5 > . +6 > x +7 > of +8 > [ +9 > 'a' +10> , +11> 'b' +12> , +13> 'c' +14> ] +15> ) +16> { 1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(4, 6) Source(4, 17) + SourceIndex(0) -3 >Emitted(4, 16) Source(4, 32) + SourceIndex(0) -4 >Emitted(4, 18) Source(4, 17) + SourceIndex(0) -5 >Emitted(4, 24) Source(4, 18) + SourceIndex(0) -6 >Emitted(4, 27) Source(4, 21) + SourceIndex(0) -7 >Emitted(4, 29) Source(4, 23) + SourceIndex(0) -8 >Emitted(4, 32) Source(4, 26) + SourceIndex(0) -9 >Emitted(4, 34) Source(4, 28) + SourceIndex(0) -10>Emitted(4, 37) Source(4, 31) + SourceIndex(0) -11>Emitted(4, 38) Source(4, 32) + SourceIndex(0) -12>Emitted(4, 40) Source(4, 17) + SourceIndex(0) -13>Emitted(4, 54) Source(4, 32) + SourceIndex(0) -14>Emitted(4, 56) Source(4, 17) + SourceIndex(0) -15>Emitted(4, 60) Source(4, 32) + SourceIndex(0) -16>Emitted(4, 62) Source(4, 34) + SourceIndex(0) -17>Emitted(4, 63) Source(4, 35) + SourceIndex(0) ---- ->>> foo().x = _a[_i]; -1 >^^^^ -2 > ^^^ -3 > ^^ -4 > ^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^-> -1 > -2 > foo -3 > () -4 > . -5 > x -6 > -1 >Emitted(5, 5) Source(4, 6) + SourceIndex(0) -2 >Emitted(5, 8) Source(4, 9) + SourceIndex(0) -3 >Emitted(5, 10) Source(4, 11) + SourceIndex(0) -4 >Emitted(5, 11) Source(4, 12) + SourceIndex(0) -5 >Emitted(5, 12) Source(4, 13) + SourceIndex(0) -6 >Emitted(5, 21) Source(4, 13) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 6) + SourceIndex(0) +3 >Emitted(4, 9) Source(4, 9) + SourceIndex(0) +4 >Emitted(4, 11) Source(4, 11) + SourceIndex(0) +5 >Emitted(4, 12) Source(4, 12) + SourceIndex(0) +6 >Emitted(4, 13) Source(4, 13) + SourceIndex(0) +7 >Emitted(4, 17) Source(4, 17) + SourceIndex(0) +8 >Emitted(4, 18) Source(4, 18) + SourceIndex(0) +9 >Emitted(4, 21) Source(4, 21) + SourceIndex(0) +10>Emitted(4, 23) Source(4, 23) + SourceIndex(0) +11>Emitted(4, 26) Source(4, 26) + SourceIndex(0) +12>Emitted(4, 28) Source(4, 28) + SourceIndex(0) +13>Emitted(4, 31) Source(4, 31) + SourceIndex(0) +14>Emitted(4, 32) Source(4, 32) + SourceIndex(0) +15>Emitted(4, 34) Source(4, 34) + SourceIndex(0) +16>Emitted(4, 35) Source(4, 35) + SourceIndex(0) --- >>> var p = foo().x; -1->^^^^ +1 >^^^^ 2 > ^^^^ 3 > ^ 4 > ^^^ @@ -142,7 +118,7 @@ sourceFile:ES5For-of8.ts 7 > ^ 8 > ^ 9 > ^ -1-> of ['a', 'b', 'c']) { +1 > > 2 > var 3 > p @@ -152,15 +128,15 @@ sourceFile:ES5For-of8.ts 7 > . 8 > x 9 > ; -1->Emitted(6, 5) Source(5, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(5, 9) + SourceIndex(0) -3 >Emitted(6, 10) Source(5, 10) + SourceIndex(0) -4 >Emitted(6, 13) Source(5, 13) + SourceIndex(0) -5 >Emitted(6, 16) Source(5, 16) + SourceIndex(0) -6 >Emitted(6, 18) Source(5, 18) + SourceIndex(0) -7 >Emitted(6, 19) Source(5, 19) + SourceIndex(0) -8 >Emitted(6, 20) Source(5, 20) + SourceIndex(0) -9 >Emitted(6, 21) Source(5, 21) + SourceIndex(0) +1 >Emitted(5, 5) Source(5, 5) + SourceIndex(0) +2 >Emitted(5, 9) Source(5, 9) + SourceIndex(0) +3 >Emitted(5, 10) Source(5, 10) + SourceIndex(0) +4 >Emitted(5, 13) Source(5, 13) + SourceIndex(0) +5 >Emitted(5, 16) Source(5, 16) + SourceIndex(0) +6 >Emitted(5, 18) Source(5, 18) + SourceIndex(0) +7 >Emitted(5, 19) Source(5, 19) + SourceIndex(0) +8 >Emitted(5, 20) Source(5, 20) + SourceIndex(0) +9 >Emitted(5, 21) Source(5, 21) + SourceIndex(0) --- >>>} 1 > @@ -169,7 +145,7 @@ sourceFile:ES5For-of8.ts 1 > > 2 >} -1 >Emitted(7, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(7, 2) Source(6, 2) + SourceIndex(0) +1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=ES5For-of8.js.map \ No newline at end of file diff --git a/tests/baselines/reference/ES5For-of9.js b/tests/baselines/reference/ES5For-of9.js index 79c18f4c7421a..d95adfed513e8 100644 --- a/tests/baselines/reference/ES5For-of9.js +++ b/tests/baselines/reference/ES5For-of9.js @@ -14,10 +14,8 @@ for (foo().x of []) { function foo() { return { x: 0 }; } -for (var _i = 0, _a = []; _i < _a.length; _i++) { - foo().x = _a[_i]; - for (var _b = 0, _c = []; _b < _c.length; _b++) { - foo().x = _c[_b]; +for (foo().x of []) { + for (foo().x of []) { var p = foo().x; } } diff --git a/tests/baselines/reference/EnumAndModuleWithSameNameAndCommonRoot.js b/tests/baselines/reference/EnumAndModuleWithSameNameAndCommonRoot.js index 60db514328ab2..b40350403e36a 100644 --- a/tests/baselines/reference/EnumAndModuleWithSameNameAndCommonRoot.js +++ b/tests/baselines/reference/EnumAndModuleWithSameNameAndCommonRoot.js @@ -25,13 +25,12 @@ var enumdule; enumdule[enumdule["Blue"] = 1] = "Blue"; })(enumdule || (enumdule = {})); (function (enumdule) { - var Point = /** @class */ (function () { - function Point(x, y) { + class Point { + constructor(x, y) { this.x = x; this.y = y; } - return Point; - }()); + } enumdule.Point = Point; })(enumdule || (enumdule = {})); var x; diff --git a/tests/baselines/reference/ExportAssignment7.js b/tests/baselines/reference/ExportAssignment7.js index b700e79cfcb3c..b905bd99d6da7 100644 --- a/tests/baselines/reference/ExportAssignment7.js +++ b/tests/baselines/reference/ExportAssignment7.js @@ -9,9 +9,6 @@ export = B; //// [ExportAssignment7.js] "use strict"; exports.C = void 0; -var C = /** @class */ (function () { - function C() { - } - return C; -}()); +class C { +} module.exports = B; diff --git a/tests/baselines/reference/ExportAssignment8.js b/tests/baselines/reference/ExportAssignment8.js index 436c5262c5481..8a5accb005a43 100644 --- a/tests/baselines/reference/ExportAssignment8.js +++ b/tests/baselines/reference/ExportAssignment8.js @@ -9,9 +9,6 @@ export class C { //// [ExportAssignment8.js] "use strict"; exports.C = void 0; -var C = /** @class */ (function () { - function C() { - } - return C; -}()); +class C { +} module.exports = B; diff --git a/tests/baselines/reference/ExportClassWhichExtendsInterfaceWithInaccessibleType.js b/tests/baselines/reference/ExportClassWhichExtendsInterfaceWithInaccessibleType.js index 5e55dc15be60a..cfb8f415a6125 100644 --- a/tests/baselines/reference/ExportClassWhichExtendsInterfaceWithInaccessibleType.js +++ b/tests/baselines/reference/ExportClassWhichExtendsInterfaceWithInaccessibleType.js @@ -24,15 +24,14 @@ namespace A { //// [ExportClassWhichExtendsInterfaceWithInaccessibleType.js] var A; (function (A) { - var Point2d = /** @class */ (function () { - function Point2d(x, y) { + class Point2d { + constructor(x, y) { this.x = x; this.y = y; } - Point2d.prototype.fromOrigin = function (p) { + fromOrigin(p) { return 1; - }; - return Point2d; - }()); + } + } A.Point2d = Point2d; })(A || (A = {})); diff --git a/tests/baselines/reference/ExportClassWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.js b/tests/baselines/reference/ExportClassWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.js index 450891120fd51..5bc5f88617903 100644 --- a/tests/baselines/reference/ExportClassWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.js +++ b/tests/baselines/reference/ExportClassWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.js @@ -23,45 +23,21 @@ namespace A { //// [ExportClassWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.js] -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); var A; (function (A) { - var Point = /** @class */ (function () { - function Point() { - } - return Point; - }()); + class Point { + } A.Point = Point; A.Origin = { x: 0, y: 0 }; - var Point3d = /** @class */ (function (_super) { - __extends(Point3d, _super); - function Point3d() { - return _super !== null && _super.apply(this, arguments) || this; - } - return Point3d; - }(Point)); + class Point3d extends Point { + } A.Point3d = Point3d; A.Origin3d = { x: 0, y: 0, z: 0 }; - var Line = /** @class */ (function () { - function Line(start, end) { + class Line { + constructor(start, end) { this.start = start; this.end = end; } - return Line; - }()); + } A.Line = Line; })(A || (A = {})); diff --git a/tests/baselines/reference/ExportClassWithInaccessibleTypeInIndexerTypeAnnotations.js b/tests/baselines/reference/ExportClassWithInaccessibleTypeInIndexerTypeAnnotations.js index 9a2fcad55accc..b8dde61f184f7 100644 --- a/tests/baselines/reference/ExportClassWithInaccessibleTypeInIndexerTypeAnnotations.js +++ b/tests/baselines/reference/ExportClassWithInaccessibleTypeInIndexerTypeAnnotations.js @@ -20,15 +20,9 @@ namespace A { //// [ExportClassWithInaccessibleTypeInIndexerTypeAnnotations.js] var A; (function (A) { - var Point = /** @class */ (function () { - function Point() { - } - return Point; - }()); - var points = /** @class */ (function () { - function points() { - } - return points; - }()); + class Point { + } + class points { + } A.points = points; })(A || (A = {})); diff --git a/tests/baselines/reference/ExportClassWithInaccessibleTypeInTypeParameterConstraint.js b/tests/baselines/reference/ExportClassWithInaccessibleTypeInTypeParameterConstraint.js index 6cbc55e50dbe3..ed4d8fcd03c5a 100644 --- a/tests/baselines/reference/ExportClassWithInaccessibleTypeInTypeParameterConstraint.js +++ b/tests/baselines/reference/ExportClassWithInaccessibleTypeInTypeParameterConstraint.js @@ -27,47 +27,23 @@ namespace A { //// [ExportClassWithInaccessibleTypeInTypeParameterConstraint.js] -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); var A; (function (A) { - var Point = /** @class */ (function () { - function Point() { - } - return Point; - }()); + class Point { + } A.Origin = { x: 0, y: 0 }; - var Point3d = /** @class */ (function (_super) { - __extends(Point3d, _super); - function Point3d() { - return _super !== null && _super.apply(this, arguments) || this; - } - return Point3d; - }(Point)); + class Point3d extends Point { + } A.Point3d = Point3d; A.Origin3d = { x: 0, y: 0, z: 0 }; - var Line = /** @class */ (function () { - function Line(start, end) { + class Line { + constructor(start, end) { this.start = start; this.end = end; } - Line.fromorigin2d = function (p) { + static fromorigin2d(p) { return null; - }; - return Line; - }()); + } + } A.Line = Line; })(A || (A = {})); diff --git a/tests/baselines/reference/ExportFunctionWithAccessibleTypesInParameterAndReturnTypeAnnotation.js b/tests/baselines/reference/ExportFunctionWithAccessibleTypesInParameterAndReturnTypeAnnotation.js index ad6d2b8e60e7b..4593cc08e5e2c 100644 --- a/tests/baselines/reference/ExportFunctionWithAccessibleTypesInParameterAndReturnTypeAnnotation.js +++ b/tests/baselines/reference/ExportFunctionWithAccessibleTypesInParameterAndReturnTypeAnnotation.js @@ -20,19 +20,15 @@ namespace A { //// [ExportFunctionWithAccessibleTypesInParameterAndReturnTypeAnnotation.js] var A; (function (A) { - var Point = /** @class */ (function () { - function Point() { - } - return Point; - }()); + class Point { + } A.Point = Point; - var Line = /** @class */ (function () { - function Line(start, end) { + class Line { + constructor(start, end) { this.start = start; this.end = end; } - return Line; - }()); + } A.Line = Line; function fromOrigin(p) { return new Line({ x: 0, y: 0 }, p); diff --git a/tests/baselines/reference/ExportFunctionWithInaccessibleTypesInParameterTypeAnnotation.js b/tests/baselines/reference/ExportFunctionWithInaccessibleTypesInParameterTypeAnnotation.js index f8fa7861814ab..0ed1326e526b2 100644 --- a/tests/baselines/reference/ExportFunctionWithInaccessibleTypesInParameterTypeAnnotation.js +++ b/tests/baselines/reference/ExportFunctionWithInaccessibleTypesInParameterTypeAnnotation.js @@ -20,18 +20,14 @@ namespace A { //// [ExportFunctionWithInaccessibleTypesInParameterTypeAnnotation.js] var A; (function (A) { - var Point = /** @class */ (function () { - function Point() { - } - return Point; - }()); - var Line = /** @class */ (function () { - function Line(start, end) { + class Point { + } + class Line { + constructor(start, end) { this.start = start; this.end = end; } - return Line; - }()); + } A.Line = Line; function fromOrigin(p) { return new Line({ x: 0, y: 0 }, p); diff --git a/tests/baselines/reference/ExportFunctionWithInaccessibleTypesInReturnTypeAnnotation.js b/tests/baselines/reference/ExportFunctionWithInaccessibleTypesInReturnTypeAnnotation.js index d6489f6061f5f..2971123fa6da6 100644 --- a/tests/baselines/reference/ExportFunctionWithInaccessibleTypesInReturnTypeAnnotation.js +++ b/tests/baselines/reference/ExportFunctionWithInaccessibleTypesInReturnTypeAnnotation.js @@ -20,19 +20,15 @@ namespace A { //// [ExportFunctionWithInaccessibleTypesInReturnTypeAnnotation.js] var A; (function (A) { - var Point = /** @class */ (function () { - function Point() { - } - return Point; - }()); + class Point { + } A.Point = Point; - var Line = /** @class */ (function () { - function Line(start, end) { + class Line { + constructor(start, end) { this.start = start; this.end = end; } - return Line; - }()); + } function fromOrigin(p) { return new Line({ x: 0, y: 0 }, p); } diff --git a/tests/baselines/reference/ExportModuleWithAccessibleTypesOnItsExportedMembers.js b/tests/baselines/reference/ExportModuleWithAccessibleTypesOnItsExportedMembers.js index 9f493380db4c9..7b5e31c8d3353 100644 --- a/tests/baselines/reference/ExportModuleWithAccessibleTypesOnItsExportedMembers.js +++ b/tests/baselines/reference/ExportModuleWithAccessibleTypesOnItsExportedMembers.js @@ -25,25 +25,23 @@ namespace A { //// [ExportModuleWithAccessibleTypesOnItsExportedMembers.js] var A; (function (A) { - var Point = /** @class */ (function () { - function Point(x, y) { + class Point { + constructor(x, y) { this.x = x; this.y = y; } - return Point; - }()); + } A.Point = Point; - var B; + let B; (function (B) { B.Origin = new Point(0, 0); - var Line = /** @class */ (function () { - function Line(start, end) { + class Line { + constructor(start, end) { } - Line.fromOrigin = function (p) { + static fromOrigin(p) { return new Line({ x: 0, y: 0 }, p); - }; - return Line; - }()); + } + } B.Line = Line; })(B = A.B || (A.B = {})); })(A || (A = {})); diff --git a/tests/baselines/reference/ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInMemberTypeAnnotations.js b/tests/baselines/reference/ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInMemberTypeAnnotations.js index 6f31bca303164..2f3630539aaa0 100644 --- a/tests/baselines/reference/ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInMemberTypeAnnotations.js +++ b/tests/baselines/reference/ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInMemberTypeAnnotations.js @@ -16,13 +16,12 @@ namespace A { //// [ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInMemberTypeAnnotations.js] var A; (function (A) { - var Point = /** @class */ (function () { - function Point(x, y) { + class Point { + constructor(x, y) { this.x = x; this.y = y; } - return Point; - }()); + } A.Origin = { x: 0, y: 0 }; A.Unity = { start: new Point(0, 0), end: new Point(1, 0) }; })(A || (A = {})); diff --git a/tests/baselines/reference/ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInNestedMemberTypeAnnotations.js b/tests/baselines/reference/ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInNestedMemberTypeAnnotations.js index 1c4f77934b6a6..e89b61ccb7e12 100644 --- a/tests/baselines/reference/ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInNestedMemberTypeAnnotations.js +++ b/tests/baselines/reference/ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInNestedMemberTypeAnnotations.js @@ -16,12 +16,11 @@ namespace A { //// [ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInNestedMemberTypeAnnotations.js] var A; (function (A) { - var Point = /** @class */ (function () { - function Point(x, y) { + class Point { + constructor(x, y) { this.x = x; this.y = y; } - return Point; - }()); + } A.UnitSquare = null; })(A || (A = {})); diff --git a/tests/baselines/reference/ExportVariableOfGenericTypeWithInaccessibleTypeAsTypeArgument.js b/tests/baselines/reference/ExportVariableOfGenericTypeWithInaccessibleTypeAsTypeArgument.js index 6a209583d3531..c7fdf2060f47e 100644 --- a/tests/baselines/reference/ExportVariableOfGenericTypeWithInaccessibleTypeAsTypeArgument.js +++ b/tests/baselines/reference/ExportVariableOfGenericTypeWithInaccessibleTypeAsTypeArgument.js @@ -13,10 +13,7 @@ namespace A { //// [ExportVariableOfGenericTypeWithInaccessibleTypeAsTypeArgument.js] var A; (function (A) { - var B = /** @class */ (function () { - function B() { - } - return B; - }()); + class B { + } A.beez2 = new Array(); })(A || (A = {})); diff --git a/tests/baselines/reference/FunctionAndModuleWithSameNameAndCommonRoot.js b/tests/baselines/reference/FunctionAndModuleWithSameNameAndCommonRoot.js index 28bb71b193794..b41f9abb29659 100644 --- a/tests/baselines/reference/FunctionAndModuleWithSameNameAndCommonRoot.js +++ b/tests/baselines/reference/FunctionAndModuleWithSameNameAndCommonRoot.js @@ -54,7 +54,7 @@ var A; //// [module.js] var A; (function (A) { - var Point; + let Point; (function (Point) { Point.Origin = { x: 0, y: 0 }; })(Point = A.Point || (A.Point = {})); diff --git a/tests/baselines/reference/FunctionAndModuleWithSameNameAndDifferentCommonRoot.js b/tests/baselines/reference/FunctionAndModuleWithSameNameAndDifferentCommonRoot.js index 15d86e1c7325e..73ca62dcd88f1 100644 --- a/tests/baselines/reference/FunctionAndModuleWithSameNameAndDifferentCommonRoot.js +++ b/tests/baselines/reference/FunctionAndModuleWithSameNameAndDifferentCommonRoot.js @@ -33,7 +33,7 @@ var A; //// [module.js] var B; (function (B) { - var Point; + let Point; (function (Point) { Point.Origin = { x: 0, y: 0 }; })(Point = B.Point || (B.Point = {})); diff --git a/tests/baselines/reference/FunctionDeclaration8_es6.js b/tests/baselines/reference/FunctionDeclaration8_es6.js index 99453bca92a8a..114f8a31dfc09 100644 --- a/tests/baselines/reference/FunctionDeclaration8_es6.js +++ b/tests/baselines/reference/FunctionDeclaration8_es6.js @@ -4,5 +4,4 @@ var v = { [yield]: foo } //// [FunctionDeclaration8_es6.js] -var _a; -var v = (_a = {}, _a[yield] = foo, _a); +var v = { [yield]: foo }; diff --git a/tests/baselines/reference/MemberAccessorDeclaration15.js b/tests/baselines/reference/MemberAccessorDeclaration15.js index 4d3b763e8e3bb..126c5f798e8a6 100644 --- a/tests/baselines/reference/MemberAccessorDeclaration15.js +++ b/tests/baselines/reference/MemberAccessorDeclaration15.js @@ -6,13 +6,6 @@ class C { } //// [MemberAccessorDeclaration15.js] -var C = /** @class */ (function () { - function C() { - } - Object.defineProperty(C.prototype, "Foo", { - set: function (a) { }, - enumerable: false, - configurable: true - }); - return C; -}()); +class C { + set Foo(a) { } +} diff --git a/tests/baselines/reference/ModuleAndClassWithSameNameAndCommonRoot.js b/tests/baselines/reference/ModuleAndClassWithSameNameAndCommonRoot.js index 170371d4cba1a..b58b60a1471a5 100644 --- a/tests/baselines/reference/ModuleAndClassWithSameNameAndCommonRoot.js +++ b/tests/baselines/reference/ModuleAndClassWithSameNameAndCommonRoot.js @@ -36,7 +36,7 @@ var X; (function (X) { var Y; (function (Y) { - var Point; + let Point; (function (Point) { Point.Origin = new Point(0, 0); })(Point = Y.Point || (Y.Point = {})); @@ -48,13 +48,12 @@ var X; var Y; (function (Y) { // duplicate identifier - var Point = /** @class */ (function () { - function Point(x, y) { + class Point { + constructor(x, y) { this.x = x; this.y = y; } - return Point; - }()); + } Y.Point = Point; })(Y = X.Y || (X.Y = {})); })(X || (X = {})); @@ -64,8 +63,5 @@ var A; A.Instance = new A(); })(A || (A = {})); // duplicate identifier -var A = /** @class */ (function () { - function A() { - } - return A; -}()); +class A { +} diff --git a/tests/baselines/reference/ModuleAndEnumWithSameNameAndCommonRoot.js b/tests/baselines/reference/ModuleAndEnumWithSameNameAndCommonRoot.js index e9f9583ff3fec..a83ab20eed641 100644 --- a/tests/baselines/reference/ModuleAndEnumWithSameNameAndCommonRoot.js +++ b/tests/baselines/reference/ModuleAndEnumWithSameNameAndCommonRoot.js @@ -21,13 +21,12 @@ var y = new enumdule.Point(0, 0); //// [ModuleAndEnumWithSameNameAndCommonRoot.js] var enumdule; (function (enumdule) { - var Point = /** @class */ (function () { - function Point(x, y) { + class Point { + constructor(x, y) { this.x = x; this.y = y; } - return Point; - }()); + } enumdule.Point = Point; })(enumdule || (enumdule = {})); (function (enumdule) { diff --git a/tests/baselines/reference/ModuleAndFunctionWithSameNameAndCommonRoot.js b/tests/baselines/reference/ModuleAndFunctionWithSameNameAndCommonRoot.js index b4441249deafd..305592b816244 100644 --- a/tests/baselines/reference/ModuleAndFunctionWithSameNameAndCommonRoot.js +++ b/tests/baselines/reference/ModuleAndFunctionWithSameNameAndCommonRoot.js @@ -32,7 +32,7 @@ namespace B { //// [module.js] var A; (function (A) { - var Point; + let Point; (function (Point) { Point.Origin = { x: 0, y: 0 }; })(Point = A.Point || (A.Point = {})); @@ -49,7 +49,7 @@ var A; //// [simple.js] var B; (function (B) { - var Point; + let Point; (function (Point) { Point.Origin = { x: 0, y: 0 }; })(Point = B.Point || (B.Point = {})); diff --git a/tests/baselines/reference/ModuleWithExportedAndNonExportedClasses.js b/tests/baselines/reference/ModuleWithExportedAndNonExportedClasses.js index d9b0c2039686c..674e4cc2c336f 100644 --- a/tests/baselines/reference/ModuleWithExportedAndNonExportedClasses.js +++ b/tests/baselines/reference/ModuleWithExportedAndNonExportedClasses.js @@ -38,28 +38,16 @@ var ag2 = new A.A2(); //// [ModuleWithExportedAndNonExportedClasses.js] var A; (function (A_1) { - var A = /** @class */ (function () { - function A() { - } - return A; - }()); + class A { + } A_1.A = A; - var AG = /** @class */ (function () { - function AG() { - } - return AG; - }()); + class AG { + } A_1.AG = AG; - var A2 = /** @class */ (function () { - function A2() { - } - return A2; - }()); - var AG2 = /** @class */ (function () { - function AG2() { - } - return AG2; - }()); + class A2 { + } + class AG2 { + } })(A || (A = {})); // no errors expected, these are all exported var a; diff --git a/tests/baselines/reference/ModuleWithExportedAndNonExportedEnums.js b/tests/baselines/reference/ModuleWithExportedAndNonExportedEnums.js index 2cdf02f5f97de..7cc7f1d0d3b29 100644 --- a/tests/baselines/reference/ModuleWithExportedAndNonExportedEnums.js +++ b/tests/baselines/reference/ModuleWithExportedAndNonExportedEnums.js @@ -16,12 +16,12 @@ var b = A.Day.Monday; //// [ModuleWithExportedAndNonExportedEnums.js] var A; (function (A) { - var Color; + let Color; (function (Color) { Color[Color["Red"] = 0] = "Red"; Color[Color["Blue"] = 1] = "Blue"; })(Color = A.Color || (A.Color = {})); - var Day; + let Day; (function (Day) { Day[Day["Monday"] = 0] = "Monday"; Day[Day["Tuesday"] = 1] = "Tuesday"; diff --git a/tests/baselines/reference/ModuleWithExportedAndNonExportedImportAlias.js b/tests/baselines/reference/ModuleWithExportedAndNonExportedImportAlias.js index c666185e82bf9..eaea0758bedd9 100644 --- a/tests/baselines/reference/ModuleWithExportedAndNonExportedImportAlias.js +++ b/tests/baselines/reference/ModuleWithExportedAndNonExportedImportAlias.js @@ -44,13 +44,12 @@ var line = Geometry.Lines.Line; //// [ModuleWithExportedAndNonExportedImportAlias.js] var B; (function (B) { - var Line = /** @class */ (function () { - function Line(start, end) { + class Line { + constructor(start, end) { this.start = start; this.end = end; } - return Line; - }()); + } B.Line = Line; })(B || (B = {})); var Geometry; diff --git a/tests/baselines/reference/NonInitializedExportInInternalModule.js b/tests/baselines/reference/NonInitializedExportInInternalModule.js index 0273474a2c11c..ecc4cb85f4043 100644 --- a/tests/baselines/reference/NonInitializedExportInInternalModule.js +++ b/tests/baselines/reference/NonInitializedExportInInternalModule.js @@ -41,17 +41,14 @@ var Inner; (function (Inner) { var ; let; - var ; - var A = /** @class */ (function () { - function A() { - } - return A; - }()); - var B; + const ; + class A { + } + let B; (function (B) { B.a = 1, B.c = 2; })(B || (B = {})); - var C; + let C; (function (C) { C.a = 1, C.c = 2; })(C || (C = {})); @@ -60,11 +57,8 @@ var Inner; Inner.b1 = 1; Inner.c1 = 'a'; Inner.d1 = 1; - var D = /** @class */ (function () { - function D() { - } - return D; - }()); + class D { + } Inner.e1 = new D; Inner.f1 = new D; Inner.g1 = new D; diff --git a/tests/baselines/reference/ParameterList6.js b/tests/baselines/reference/ParameterList6.js index 7ccd946b44433..42eebf7339892 100644 --- a/tests/baselines/reference/ParameterList6.js +++ b/tests/baselines/reference/ParameterList6.js @@ -7,8 +7,7 @@ class C { } //// [ParameterList6.js] -var C = /** @class */ (function () { - function C(C) { +class C { + constructor(C) { } - return C; -}()); +} diff --git a/tests/baselines/reference/ParameterList7.js b/tests/baselines/reference/ParameterList7.js index 57eadcb8da30f..f62bda39e684c 100644 --- a/tests/baselines/reference/ParameterList7.js +++ b/tests/baselines/reference/ParameterList7.js @@ -8,9 +8,8 @@ class C1 { } //// [ParameterList7.js] -var C1 = /** @class */ (function () { - function C1(p3) { +class C1 { + constructor(p3) { this.p3 = p3; } // OK - return C1; -}()); +} diff --git a/tests/baselines/reference/Protected1.js b/tests/baselines/reference/Protected1.js index b7a1f4eaa48bf..f342e0d3efa78 100644 --- a/tests/baselines/reference/Protected1.js +++ b/tests/baselines/reference/Protected1.js @@ -5,8 +5,5 @@ protected class C { } //// [Protected1.js] -var C = /** @class */ (function () { - function C() { - } - return C; -}()); +class C { +} diff --git a/tests/baselines/reference/Protected3.js b/tests/baselines/reference/Protected3.js index 4fe3e0a4c5c5d..06e6054bd6950 100644 --- a/tests/baselines/reference/Protected3.js +++ b/tests/baselines/reference/Protected3.js @@ -6,8 +6,6 @@ class C { } //// [Protected3.js] -var C = /** @class */ (function () { - function C() { - } - return C; -}()); +class C { + constructor() { } +} diff --git a/tests/baselines/reference/Protected4.js b/tests/baselines/reference/Protected4.js index 67232f9d1edf8..75cfa2a7c6a68 100644 --- a/tests/baselines/reference/Protected4.js +++ b/tests/baselines/reference/Protected4.js @@ -6,9 +6,6 @@ class C { } //// [Protected4.js] -var C = /** @class */ (function () { - function C() { - } - C.prototype.m = function () { }; - return C; -}()); +class C { + m() { } +} diff --git a/tests/baselines/reference/Protected5.js b/tests/baselines/reference/Protected5.js index a2ee17321590f..537f8234b6e32 100644 --- a/tests/baselines/reference/Protected5.js +++ b/tests/baselines/reference/Protected5.js @@ -6,9 +6,6 @@ class C { } //// [Protected5.js] -var C = /** @class */ (function () { - function C() { - } - C.m = function () { }; - return C; -}()); +class C { + static m() { } +} diff --git a/tests/baselines/reference/Protected6.js b/tests/baselines/reference/Protected6.js index 5a34d06deea46..384830949b4b7 100644 --- a/tests/baselines/reference/Protected6.js +++ b/tests/baselines/reference/Protected6.js @@ -6,9 +6,6 @@ class C { } //// [Protected6.js] -var C = /** @class */ (function () { - function C() { - } - C.m = function () { }; - return C; -}()); +class C { + static m() { } +} diff --git a/tests/baselines/reference/Protected7.js b/tests/baselines/reference/Protected7.js index 022c1468c7160..d965c7b9d6ca0 100644 --- a/tests/baselines/reference/Protected7.js +++ b/tests/baselines/reference/Protected7.js @@ -6,9 +6,6 @@ class C { } //// [Protected7.js] -var C = /** @class */ (function () { - function C() { - } - C.prototype.m = function () { }; - return C; -}()); +class C { + m() { } +} diff --git a/tests/baselines/reference/Protected9.js b/tests/baselines/reference/Protected9.js index d9a9d81000973..2088595fe56cb 100644 --- a/tests/baselines/reference/Protected9.js +++ b/tests/baselines/reference/Protected9.js @@ -6,9 +6,8 @@ class C { } //// [Protected9.js] -var C = /** @class */ (function () { - function C(p) { +class C { + constructor(p) { this.p = p; } - return C; -}()); +} diff --git a/tests/baselines/reference/TemplateExpression1.js b/tests/baselines/reference/TemplateExpression1.js index 5bd36658939ec..ada7989792446 100644 --- a/tests/baselines/reference/TemplateExpression1.js +++ b/tests/baselines/reference/TemplateExpression1.js @@ -4,4 +4,4 @@ var v = `foo ${ a //// [TemplateExpression1.js] -var v = "foo ".concat(a); +var v = `foo ${a; diff --git a/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.js b/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.js index 11dc78314e9f7..1ebda368cb584 100644 --- a/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.js +++ b/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.js @@ -45,22 +45,16 @@ var l: X.Y.Z.Line; //// [TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.js] var A; (function (A) { - var Point = /** @class */ (function () { - function Point() { - } - return Point; - }()); + class Point { + } A.Point = Point; })(A || (A = {})); (function (A) { - var Point = /** @class */ (function () { - function Point() { - } - Point.prototype.fromCarthesian = function (p) { + class Point { + fromCarthesian(p) { return { x: p.x, y: p.y }; - }; - return Point; - }()); + } + } })(A || (A = {})); // ensure merges as expected var p; @@ -71,25 +65,19 @@ var X; (function (Y) { var Z; (function (Z) { - var Line = /** @class */ (function () { - function Line() { - } - return Line; - }()); + class Line { + } Z.Line = Line; })(Z = Y.Z || (Y.Z = {})); })(Y = X.Y || (X.Y = {})); })(X || (X = {})); (function (X) { - var Y; + let Y; (function (Y) { - var Z; + let Z; (function (Z) { - var Line = /** @class */ (function () { - function Line() { - } - return Line; - }()); + class Line { + } })(Z = Y.Z || (Y.Z = {})); })(Y = X.Y || (X.Y = {})); })(X || (X = {})); diff --git a/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedAndNonExportedLocalVarsOfTheSameName.js b/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedAndNonExportedLocalVarsOfTheSameName.js index 54f168e3f52e0..ca5e9f124eb2a 100644 --- a/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedAndNonExportedLocalVarsOfTheSameName.js +++ b/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedAndNonExportedLocalVarsOfTheSameName.js @@ -44,7 +44,7 @@ var p = new A.Utils.Plane(o, { x: 1, y: 1 }); //// [part1.js] var A; (function (A) { - var Utils; + let Utils; (function (Utils) { function mirror(p) { return { x: p.y, y: p.x }; @@ -58,15 +58,14 @@ var A; (function (A) { // not a collision, since we don't export var Origin = "0,0"; - var Utils; + let Utils; (function (Utils) { - var Plane = /** @class */ (function () { - function Plane(tl, br) { + class Plane { + constructor(tl, br) { this.tl = tl; this.br = br; } - return Plane; - }()); + } Utils.Plane = Plane; })(Utils = A.Utils || (A.Utils = {})); })(A || (A = {})); diff --git a/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedClassesOfTheSameName.js b/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedClassesOfTheSameName.js index f5285b0f7de52..e99534b34e351 100644 --- a/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedClassesOfTheSameName.js +++ b/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedClassesOfTheSameName.js @@ -37,20 +37,14 @@ namespace X { //// [TwoInternalModulesThatMergeEachWithExportedClassesOfTheSameName.js] var A; (function (A) { - var Point = /** @class */ (function () { - function Point() { - } - return Point; - }()); + class Point { + } A.Point = Point; })(A || (A = {})); (function (A) { // expected error - var Point = /** @class */ (function () { - function Point() { - } - return Point; - }()); + class Point { + } A.Point = Point; })(A || (A = {})); var X; @@ -59,26 +53,20 @@ var X; (function (Y) { var Z; (function (Z) { - var Line = /** @class */ (function () { - function Line() { - } - return Line; - }()); + class Line { + } Z.Line = Line; })(Z = Y.Z || (Y.Z = {})); })(Y = X.Y || (X.Y = {})); })(X || (X = {})); (function (X) { - var Y; + let Y; (function (Y) { - var Z; + let Z; (function (Z) { // expected error - var Line = /** @class */ (function () { - function Line() { - } - return Line; - }()); + class Line { + } Z.Line = Line; })(Z = Y.Z || (Y.Z = {})); })(Y = X.Y || (X.Y = {})); diff --git a/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedLocalVarsOfTheSameName.js b/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedLocalVarsOfTheSameName.js index 3b491e270d92d..da6958587621e 100644 --- a/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedLocalVarsOfTheSameName.js +++ b/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedLocalVarsOfTheSameName.js @@ -30,12 +30,9 @@ export namespace A { //// [part1.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.A = void 0; -var A; +export var A; (function (A) { - var Utils; + let Utils; (function (Utils) { function mirror(p) { return { x: p.y, y: p.x }; @@ -43,24 +40,20 @@ var A; Utils.mirror = mirror; })(Utils = A.Utils || (A.Utils = {})); A.Origin = { x: 0, y: 0 }; -})(A || (exports.A = A = {})); +})(A || (A = {})); //// [part2.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.A = void 0; -var A; +export var A; (function (A) { // collision with 'Origin' var in other part of merged module A.Origin = { x: 0, y: 0 }; - var Utils; + let Utils; (function (Utils) { - var Plane = /** @class */ (function () { - function Plane(tl, br) { + class Plane { + constructor(tl, br) { this.tl = tl; this.br = br; } - return Plane; - }()); + } Utils.Plane = Plane; })(Utils = A.Utils || (A.Utils = {})); -})(A || (exports.A = A = {})); +})(A || (A = {})); diff --git a/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName.js b/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName.js index e7ee79902558f..c804721aa5ecc 100644 --- a/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName.js +++ b/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName.js @@ -44,7 +44,7 @@ var A; })(B = A.B || (A.B = {})); })(A || (A = {})); (function (A) { - var B; + let B; (function (B) { })(B || (B = {})); })(A || (A = {})); @@ -57,25 +57,19 @@ var X; (function (Y) { var Z; (function (Z) { - var Line = /** @class */ (function () { - function Line() { - } - return Line; - }()); + class Line { + } Z.Line = Line; })(Z = Y.Z || (Y.Z = {})); })(Y = X.Y || (X.Y = {})); })(X || (X = {})); (function (X) { - var Y; + let Y; (function (Y) { - var Z; + let Z; (function (Z) { - var Line = /** @class */ (function () { - function Line() { - } - return Line; - }()); + class Line { + } Z.Line = Line; })(Z || (Z = {})); })(Y = X.Y || (X.Y = {})); diff --git a/tests/baselines/reference/TwoInternalModulesWithTheSameNameAndDifferentCommonRoot.js b/tests/baselines/reference/TwoInternalModulesWithTheSameNameAndDifferentCommonRoot.js index b4e3df988acde..b5d0a4c3fa616 100644 --- a/tests/baselines/reference/TwoInternalModulesWithTheSameNameAndDifferentCommonRoot.js +++ b/tests/baselines/reference/TwoInternalModulesWithTheSameNameAndDifferentCommonRoot.js @@ -33,9 +33,9 @@ namespace otherRoot { //// [part1.js] var Root; (function (Root) { - var A; + let A; (function (A) { - var Utils; + let Utils; (function (Utils) { function mirror(p) { return { x: p.y, y: p.x }; @@ -47,19 +47,18 @@ var Root; //// [part2.js] var otherRoot; (function (otherRoot) { - var A; + let A; (function (A) { // have to be fully qualified since in different root A.Origin = { x: 0, y: 0 }; - var Utils; + let Utils; (function (Utils) { - var Plane = /** @class */ (function () { - function Plane(tl, br) { + class Plane { + constructor(tl, br) { this.tl = tl; this.br = br; } - return Plane; - }()); + } Utils.Plane = Plane; })(Utils = A.Utils || (A.Utils = {})); })(A = otherRoot.A || (otherRoot.A = {})); diff --git a/tests/baselines/reference/TwoInternalModulesWithTheSameNameAndSameCommonRoot.js b/tests/baselines/reference/TwoInternalModulesWithTheSameNameAndSameCommonRoot.js index 0b39efa124d75..364e8a2e7c766 100644 --- a/tests/baselines/reference/TwoInternalModulesWithTheSameNameAndSameCommonRoot.js +++ b/tests/baselines/reference/TwoInternalModulesWithTheSameNameAndSameCommonRoot.js @@ -42,7 +42,7 @@ var p = new A.Utils.Plane(o, { x: 1, y: 1 }); //// [part1.js] var A; (function (A) { - var Utils; + let Utils; (function (Utils) { function mirror(p) { return { x: p.y, y: p.x }; @@ -54,15 +54,14 @@ var A; var A; (function (A) { A.Origin = { x: 0, y: 0 }; - var Utils; + let Utils; (function (Utils) { - var Plane = /** @class */ (function () { - function Plane(tl, br) { + class Plane { + constructor(tl, br) { this.tl = tl; this.br = br; } - return Plane; - }()); + } Utils.Plane = Plane; })(Utils = A.Utils || (A.Utils = {})); })(A || (A = {})); diff --git a/tests/baselines/reference/TypeGuardWithArrayUnion.js b/tests/baselines/reference/TypeGuardWithArrayUnion.js index e52e11ff3fa71..fda6574e2d060 100644 --- a/tests/baselines/reference/TypeGuardWithArrayUnion.js +++ b/tests/baselines/reference/TypeGuardWithArrayUnion.js @@ -13,11 +13,8 @@ function saySize(message: Message | Message[]) { //// [TypeGuardWithArrayUnion.js] -var Message = /** @class */ (function () { - function Message() { - } - return Message; -}()); +class Message { +} function saySize(message) { if (message instanceof Array) { return message.length; // Should have type Message[] here diff --git a/tests/baselines/reference/abstractClassInLocalScope.js b/tests/baselines/reference/abstractClassInLocalScope.js index 33ac1f8a647bd..67990f045fd7c 100644 --- a/tests/baselines/reference/abstractClassInLocalScope.js +++ b/tests/baselines/reference/abstractClassInLocalScope.js @@ -10,34 +10,11 @@ //// [abstractClassInLocalScope.js] -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -(function () { - var A = /** @class */ (function () { - function A() { - } - return A; - }()); - var B = /** @class */ (function (_super) { - __extends(B, _super); - function B() { - return _super !== null && _super.apply(this, arguments) || this; - } - return B; - }(A)); +(() => { + class A { + } + class B extends A { + } new B(); return A; })(); diff --git a/tests/baselines/reference/abstractClassInLocalScopeIsAbstract.js b/tests/baselines/reference/abstractClassInLocalScopeIsAbstract.js index c26fa08b26423..1b0c13d877935 100644 --- a/tests/baselines/reference/abstractClassInLocalScopeIsAbstract.js +++ b/tests/baselines/reference/abstractClassInLocalScopeIsAbstract.js @@ -10,34 +10,11 @@ //// [abstractClassInLocalScopeIsAbstract.js] -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -(function () { - var A = /** @class */ (function () { - function A() { - } - return A; - }()); - var B = /** @class */ (function (_super) { - __extends(B, _super); - function B() { - return _super !== null && _super.apply(this, arguments) || this; - } - return B; - }(A)); +(() => { + class A { + } + class B extends A { + } new A(); new B(); })(); diff --git a/tests/baselines/reference/abstractClassUnionInstantiation.js b/tests/baselines/reference/abstractClassUnionInstantiation.js index 6f28f395ec709..daef675355adc 100644 --- a/tests/baselines/reference/abstractClassUnionInstantiation.js +++ b/tests/baselines/reference/abstractClassUnionInstantiation.js @@ -24,30 +24,18 @@ new cls3(); // should work [AbstractA, AbstractB].map(cls => new cls()); // should error //// [abstractClassUnionInstantiation.js] -var ConcreteA = /** @class */ (function () { - function ConcreteA() { - } - return ConcreteA; -}()); -var ConcreteB = /** @class */ (function () { - function ConcreteB() { - } - return ConcreteB; -}()); -var AbstractA = /** @class */ (function () { - function AbstractA() { - } - return AbstractA; -}()); -var AbstractB = /** @class */ (function () { - function AbstractB() { - } - return AbstractB; -}()); +class ConcreteA { +} +class ConcreteB { +} +class AbstractA { +} +class AbstractB { +} new cls1(); // should error new cls2(); // should error new cls3(); // should work -[ConcreteA, AbstractA, AbstractB].map(function (cls) { return new cls(); }); // should error -[AbstractA, AbstractB, ConcreteA].map(function (cls) { return new cls(); }); // should error -[ConcreteA, ConcreteB].map(function (cls) { return new cls(); }); // should work -[AbstractA, AbstractB].map(function (cls) { return new cls(); }); // should error +[ConcreteA, AbstractA, AbstractB].map(cls => new cls()); // should error +[AbstractA, AbstractB, ConcreteA].map(cls => new cls()); // should error +[ConcreteA, ConcreteB].map(cls => new cls()); // should work +[AbstractA, AbstractB].map(cls => new cls()); // should error diff --git a/tests/baselines/reference/abstractPropertyInConstructor.js b/tests/baselines/reference/abstractPropertyInConstructor.js index 5656a8c9a6120..a237aad964662 100644 --- a/tests/baselines/reference/abstractPropertyInConstructor.js +++ b/tests/baselines/reference/abstractPropertyInConstructor.js @@ -96,97 +96,69 @@ class C2 { //// [abstractPropertyInConstructor.js] -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -var AbstractClass = /** @class */ (function () { - function AbstractClass(str, other) { - var _this = this; +class AbstractClass { + constructor(str, other) { this.other = this.prop; - this.fn = function () { return _this.prop; }; + this.fn = () => this.prop; this.method(parseInt(str)); - var val = this.prop.toLowerCase(); + let val = this.prop.toLowerCase(); if (!str) { this.prop = "Hello World"; } this.cb(str); // OK, reference is inside function - var innerFunction = function () { - return _this.prop; + const innerFunction = () => { + return this.prop; }; // OK, references are to another instance other.cb(other.prop); } - AbstractClass.prototype.method2 = function () { + method2() { this.prop = this.prop + "!"; - }; - return AbstractClass; -}()); -var DerivedAbstractClass = /** @class */ (function (_super) { - __extends(DerivedAbstractClass, _super); - function DerivedAbstractClass(str, other, yetAnother) { - var _this = _super.call(this, str, other) || this; - _this.cb = function (s) { }; + } +} +class DerivedAbstractClass extends AbstractClass { + constructor(str, other, yetAnother) { + super(str, other); + this.cb = (s) => { }; // there is no implementation of 'prop' in any base class - _this.cb(_this.prop.toLowerCase()); - _this.method(1); + this.cb(this.prop.toLowerCase()); + this.method(1); // OK, references are to another instance other.cb(other.prop); yetAnother.cb(yetAnother.prop); - return _this; } - return DerivedAbstractClass; -}(AbstractClass)); -var Implementation = /** @class */ (function (_super) { - __extends(Implementation, _super); - function Implementation(str, other, yetAnother) { - var _this = _super.call(this, str, other, yetAnother) || this; - _this.prop = ""; - _this.cb = function (s) { }; - _this.cb(_this.prop); - return _this; +} +class Implementation extends DerivedAbstractClass { + constructor(str, other, yetAnother) { + super(str, other, yetAnother); + this.prop = ""; + this.cb = (s) => { }; + this.cb(this.prop); } - Implementation.prototype.method = function (n) { + method(n) { this.cb(this.prop + n); - }; - return Implementation; -}(DerivedAbstractClass)); -var User = /** @class */ (function () { - function User(a) { + } +} +class User { + constructor(a) { a.prop; a.cb("hi"); a.method(12); a.method2(); } - return User; -}()); -var C1 = /** @class */ (function () { - function C1() { - var _a; - var self = this; // ok - var _b = this, x = _b.x, y1 = _b.y; // error - (_a = this, x = _a.x, y1 = _a.y, y1 = _a["y"]); // error +} +class C1 { + constructor() { + let self = this; // ok + let { x, y: y1 } = this; // error + ({ x, y: y1, "y": y1 } = this); // error } - return C1; -}()); -var C2 = /** @class */ (function () { - function C2() { - var _a; - var self = this; // ok - var _b = this, x = _b.x, y1 = _b.y; // ok - (_a = this, x = _a.x, y1 = _a.y, y1 = _a["y"]); // ok +} +class C2 { + constructor() { + let self = this; // ok + let { x, y: y1 } = this; // ok + ({ x, y: y1, "y": y1 } = this); // ok } - return C2; -}()); +} diff --git a/tests/baselines/reference/abstractPropertyInitializer.js b/tests/baselines/reference/abstractPropertyInitializer.js index edb169729b932..20bc62f280f08 100644 --- a/tests/baselines/reference/abstractPropertyInitializer.js +++ b/tests/baselines/reference/abstractPropertyInitializer.js @@ -8,11 +8,8 @@ abstract class C { //// [abstractPropertyInitializer.js] "use strict"; -var C = /** @class */ (function () { - function C() { - } - return C; -}()); +class C { +} //// [abstractPropertyInitializer.d.ts] diff --git a/tests/baselines/reference/accessInstanceMemberFromStaticMethod01.js b/tests/baselines/reference/accessInstanceMemberFromStaticMethod01.js index 250e78259926f..e881500e64486 100644 --- a/tests/baselines/reference/accessInstanceMemberFromStaticMethod01.js +++ b/tests/baselines/reference/accessInstanceMemberFromStaticMethod01.js @@ -10,11 +10,8 @@ class C { } //// [accessInstanceMemberFromStaticMethod01.js] -var C = /** @class */ (function () { - function C() { +class C { + bar() { + let k = foo; } - C.prototype.bar = function () { - var k = foo; - }; - return C; -}()); +} diff --git a/tests/baselines/reference/accessOverriddenBaseClassMember1.js b/tests/baselines/reference/accessOverriddenBaseClassMember1.js index 1a81263e63813..df054ac23c535 100644 --- a/tests/baselines/reference/accessOverriddenBaseClassMember1.js +++ b/tests/baselines/reference/accessOverriddenBaseClassMember1.js @@ -18,40 +18,21 @@ class ColoredPoint extends Point { //// [accessOverriddenBaseClassMember1.js] -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -var Point = /** @class */ (function () { - function Point(x, y) { +class Point { + constructor(x, y) { this.x = x; this.y = y; } - Point.prototype.toString = function () { + toString() { return "x=" + this.x + " y=" + this.y; - }; - return Point; -}()); -var ColoredPoint = /** @class */ (function (_super) { - __extends(ColoredPoint, _super); - function ColoredPoint(x, y, color) { - var _this = _super.call(this, x, y) || this; - _this.color = color; - return _this; } - ColoredPoint.prototype.toString = function () { - return _super.prototype.toString.call(this) + " color=" + this.color; - }; - return ColoredPoint; -}(Point)); +} +class ColoredPoint extends Point { + constructor(x, y, color) { + super(x, y); + this.color = color; + } + toString() { + return super.toString() + " color=" + this.color; + } +} diff --git a/tests/baselines/reference/accessStaticMemberFromInstanceMethod01.js b/tests/baselines/reference/accessStaticMemberFromInstanceMethod01.js index f87f90e4f5423..de8e397a95c4b 100644 --- a/tests/baselines/reference/accessStaticMemberFromInstanceMethod01.js +++ b/tests/baselines/reference/accessStaticMemberFromInstanceMethod01.js @@ -10,11 +10,8 @@ class C { } //// [accessStaticMemberFromInstanceMethod01.js] -var C = /** @class */ (function () { - function C() { +class C { + static bar() { + let k = foo; } - C.bar = function () { - var k = foo; - }; - return C; -}()); +} diff --git a/tests/baselines/reference/accessorInferredReturnTypeErrorInReturnStatement.js b/tests/baselines/reference/accessorInferredReturnTypeErrorInReturnStatement.js index 0d1bd77500ce7..f5ecc761c5c7e 100644 --- a/tests/baselines/reference/accessorInferredReturnTypeErrorInReturnStatement.js +++ b/tests/baselines/reference/accessorInferredReturnTypeErrorInReturnStatement.js @@ -10,10 +10,7 @@ export var basePrototype = { //// [accessorInferredReturnTypeErrorInReturnStatement.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.basePrototype = void 0; -exports.basePrototype = { +export var basePrototype = { get primaryPath() { var _this = this; return _this.collection.schema.primaryPath; diff --git a/tests/baselines/reference/accessorsAreNotContextuallyTyped.js b/tests/baselines/reference/accessorsAreNotContextuallyTyped.js index 4daab7e02060c..9ec976eb0a6f4 100644 --- a/tests/baselines/reference/accessorsAreNotContextuallyTyped.js +++ b/tests/baselines/reference/accessorsAreNotContextuallyTyped.js @@ -17,19 +17,12 @@ var r = c.x(''); // string //// [accessorsAreNotContextuallyTyped.js] // accessors are not contextually typed -var C = /** @class */ (function () { - function C() { +class C { + set x(v) { } - Object.defineProperty(C.prototype, "x", { - get: function () { - return function (x) { return ""; }; - }, - set: function (v) { - }, - enumerable: false, - configurable: true - }); - return C; -}()); + get x() { + return (x) => ""; + } +} var c; var r = c.x(''); // string diff --git a/tests/baselines/reference/accessorsEmit.js b/tests/baselines/reference/accessorsEmit.js index bba2f09a44eb8..6b3a7b0443ff1 100644 --- a/tests/baselines/reference/accessorsEmit.js +++ b/tests/baselines/reference/accessorsEmit.js @@ -18,34 +18,17 @@ class Test2 { } //// [accessorsEmit.js] -var Result = /** @class */ (function () { - function Result() { - } - return Result; -}()); -var Test = /** @class */ (function () { - function Test() { +class Result { +} +class Test { + get Property() { + var x = 1; + return null; } - Object.defineProperty(Test.prototype, "Property", { - get: function () { - var x = 1; - return null; - }, - enumerable: false, - configurable: true - }); - return Test; -}()); -var Test2 = /** @class */ (function () { - function Test2() { +} +class Test2 { + get Property() { + var x = 1; + return null; } - Object.defineProperty(Test2.prototype, "Property", { - get: function () { - var x = 1; - return null; - }, - enumerable: false, - configurable: true - }); - return Test2; -}()); +} diff --git a/tests/baselines/reference/accessors_spec_section-4.5_error-cases.js b/tests/baselines/reference/accessors_spec_section-4.5_error-cases.js index 9a23d75382896..9ea30819ca58d 100644 --- a/tests/baselines/reference/accessors_spec_section-4.5_error-cases.js +++ b/tests/baselines/reference/accessors_spec_section-4.5_error-cases.js @@ -16,32 +16,13 @@ class LanguageSpec_section_4_5_error_cases { } //// [accessors_spec_section-4.5_error-cases.js] -var LanguageSpec_section_4_5_error_cases = /** @class */ (function () { - function LanguageSpec_section_4_5_error_cases() { - } - Object.defineProperty(LanguageSpec_section_4_5_error_cases.prototype, "AnnotatedSetter_SetterFirst", { - get: function () { return ""; }, - set: function (a) { }, - enumerable: false, - configurable: true - }); - Object.defineProperty(LanguageSpec_section_4_5_error_cases.prototype, "AnnotatedSetter_SetterLast", { - get: function () { return ""; }, - set: function (a) { }, - enumerable: false, - configurable: true - }); - Object.defineProperty(LanguageSpec_section_4_5_error_cases.prototype, "AnnotatedGetter_GetterFirst", { - get: function () { return ""; }, - set: function (aStr) { aStr = 0; }, - enumerable: false, - configurable: true - }); - Object.defineProperty(LanguageSpec_section_4_5_error_cases.prototype, "AnnotatedGetter_GetterLast", { - get: function () { return ""; }, - set: function (aStr) { aStr = 0; }, - enumerable: false, - configurable: true - }); - return LanguageSpec_section_4_5_error_cases; -}()); +class LanguageSpec_section_4_5_error_cases { + set AnnotatedSetter_SetterFirst(a) { } + get AnnotatedSetter_SetterFirst() { return ""; } + get AnnotatedSetter_SetterLast() { return ""; } + set AnnotatedSetter_SetterLast(a) { } + get AnnotatedGetter_GetterFirst() { return ""; } + set AnnotatedGetter_GetterFirst(aStr) { aStr = 0; } + set AnnotatedGetter_GetterLast(aStr) { aStr = 0; } + get AnnotatedGetter_GetterLast() { return ""; } +} diff --git a/tests/baselines/reference/accessors_spec_section-4.5_inference.js b/tests/baselines/reference/accessors_spec_section-4.5_inference.js index 24c228f075453..81138a81d0bc6 100644 --- a/tests/baselines/reference/accessors_spec_section-4.5_inference.js +++ b/tests/baselines/reference/accessors_spec_section-4.5_inference.js @@ -27,71 +27,21 @@ class LanguageSpec_section_4_5_inference { } //// [accessors_spec_section-4.5_inference.js] -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -var A = /** @class */ (function () { - function A() { - } - return A; -}()); -var B = /** @class */ (function (_super) { - __extends(B, _super); - function B() { - return _super !== null && _super.apply(this, arguments) || this; - } - return B; -}(A)); -var LanguageSpec_section_4_5_inference = /** @class */ (function () { - function LanguageSpec_section_4_5_inference() { - } - Object.defineProperty(LanguageSpec_section_4_5_inference.prototype, "InferredGetterFromSetterAnnotation", { - get: function () { return new B(); }, - set: function (a) { }, - enumerable: false, - configurable: true - }); - Object.defineProperty(LanguageSpec_section_4_5_inference.prototype, "InferredGetterFromSetterAnnotation_GetterFirst", { - get: function () { return new B(); }, - set: function (a) { }, - enumerable: false, - configurable: true - }); - Object.defineProperty(LanguageSpec_section_4_5_inference.prototype, "InferredFromGetter", { - get: function () { return new B(); }, - set: function (a) { }, - enumerable: false, - configurable: true - }); - Object.defineProperty(LanguageSpec_section_4_5_inference.prototype, "InferredFromGetter_SetterFirst", { - get: function () { return new B(); }, - set: function (a) { }, - enumerable: false, - configurable: true - }); - Object.defineProperty(LanguageSpec_section_4_5_inference.prototype, "InferredSetterFromGetterAnnotation", { - get: function () { return new B(); }, - set: function (a) { }, - enumerable: false, - configurable: true - }); - Object.defineProperty(LanguageSpec_section_4_5_inference.prototype, "InferredSetterFromGetterAnnotation_GetterFirst", { - get: function () { return new B(); }, - set: function (a) { }, - enumerable: false, - configurable: true - }); - return LanguageSpec_section_4_5_inference; -}()); +class A { +} +class B extends A { +} +class LanguageSpec_section_4_5_inference { + set InferredGetterFromSetterAnnotation(a) { } + get InferredGetterFromSetterAnnotation() { return new B(); } + get InferredGetterFromSetterAnnotation_GetterFirst() { return new B(); } + set InferredGetterFromSetterAnnotation_GetterFirst(a) { } + get InferredFromGetter() { return new B(); } + set InferredFromGetter(a) { } + set InferredFromGetter_SetterFirst(a) { } + get InferredFromGetter_SetterFirst() { return new B(); } + set InferredSetterFromGetterAnnotation(a) { } + get InferredSetterFromGetterAnnotation() { return new B(); } + get InferredSetterFromGetterAnnotation_GetterFirst() { return new B(); } + set InferredSetterFromGetterAnnotation_GetterFirst(a) { } +} diff --git a/tests/baselines/reference/additionOperatorWithAnyAndEveryType.js b/tests/baselines/reference/additionOperatorWithAnyAndEveryType.js index 589def5941fd3..44661c52d3bed 100644 --- a/tests/baselines/reference/additionOperatorWithAnyAndEveryType.js +++ b/tests/baselines/reference/additionOperatorWithAnyAndEveryType.js @@ -43,12 +43,9 @@ var r20 = a + ((a: string) => { return a }); //// [additionOperatorWithAnyAndEveryType.js] function foo() { } -var C = /** @class */ (function () { - function C() { - } - C.foo = function () { }; - return C; -}()); +class C { + static foo() { } +} var E; (function (E) { E[E["a"] = 0] = "a"; @@ -85,4 +82,4 @@ var r16 = a + M; var r17 = a + ''; var r18 = a + 123; var r19 = a + { a: '' }; -var r20 = a + (function (a) { return a; }); +var r20 = a + ((a) => { return a; }); diff --git a/tests/baselines/reference/additionOperatorWithConstrainedTypeParameter.js b/tests/baselines/reference/additionOperatorWithConstrainedTypeParameter.js index dbf1f3ddaa83e..6bd92fe270e43 100644 --- a/tests/baselines/reference/additionOperatorWithConstrainedTypeParameter.js +++ b/tests/baselines/reference/additionOperatorWithConstrainedTypeParameter.js @@ -21,8 +21,7 @@ function sum(n, v, k) { n += v[k]; // += should work the same way } function realSum(n, vs, k) { - for (var _i = 0, vs_1 = vs; _i < vs_1.length; _i++) { - var v = vs_1[_i]; + for (const v of vs) { n = n + v[k]; n += v[k]; } diff --git a/tests/baselines/reference/additionOperatorWithInvalidOperands.js b/tests/baselines/reference/additionOperatorWithInvalidOperands.js index d42f381dfd70c..ee53f3b495928 100644 --- a/tests/baselines/reference/additionOperatorWithInvalidOperands.js +++ b/tests/baselines/reference/additionOperatorWithInvalidOperands.js @@ -44,12 +44,9 @@ var r20 = E.a + M; //// [additionOperatorWithInvalidOperands.js] function foo() { } -var C = /** @class */ (function () { - function C() { - } - C.foo = function () { }; - return C; -}()); +class C { + static foo() { } +} var E; (function (E) { E[E["a"] = 0] = "a"; diff --git a/tests/baselines/reference/additionOperatorWithNullValueAndInvalidOperator.js b/tests/baselines/reference/additionOperatorWithNullValueAndInvalidOperator.js index 6a38d10bd00aa..61b416eee5c68 100644 --- a/tests/baselines/reference/additionOperatorWithNullValueAndInvalidOperator.js +++ b/tests/baselines/reference/additionOperatorWithNullValueAndInvalidOperator.js @@ -40,4 +40,4 @@ var r7 = null + d; var r8 = null + true; var r9 = null + { a: '' }; var r10 = null + foo(); -var r11 = null + (function () { }); +var r11 = null + (() => { }); diff --git a/tests/baselines/reference/additionOperatorWithTypeParameter.js b/tests/baselines/reference/additionOperatorWithTypeParameter.js index aaf8c9d72d9b2..51302d3e39f06 100644 --- a/tests/baselines/reference/additionOperatorWithTypeParameter.js +++ b/tests/baselines/reference/additionOperatorWithTypeParameter.js @@ -48,13 +48,13 @@ var E; E[E["b"] = 1] = "b"; })(E || (E = {})); function foo(t, u) { - var a; - var b; - var c; - var d; - var e; - var g; - var f; + let a; + let b; + let c; + let d; + let e; + let g; + let f; // type parameter as left operand var r1 = t + a; // ok, one operand is any var r2 = t + b; @@ -76,6 +76,6 @@ function foo(t, u) { var r16 = t + undefined; var r17 = t + t; var r18 = t + u; - var r19 = t + (function () { }); + var r19 = t + (() => { }); var r20 = t + []; } diff --git a/tests/baselines/reference/additionOperatorWithUndefinedValueAndInvalidOperands.js b/tests/baselines/reference/additionOperatorWithUndefinedValueAndInvalidOperands.js index c4d1cafd628d3..8dc0815fc1e71 100644 --- a/tests/baselines/reference/additionOperatorWithUndefinedValueAndInvalidOperands.js +++ b/tests/baselines/reference/additionOperatorWithUndefinedValueAndInvalidOperands.js @@ -40,4 +40,4 @@ var r7 = undefined + d; var r8 = undefined + true; var r9 = undefined + { a: '' }; var r10 = undefined + foo(); -var r11 = undefined + (function () { }); +var r11 = undefined + (() => { }); diff --git a/tests/baselines/reference/aliasAssignments.js b/tests/baselines/reference/aliasAssignments.js index c7016729c6542..c142e3ab3cfd2 100644 --- a/tests/baselines/reference/aliasAssignments.js +++ b/tests/baselines/reference/aliasAssignments.js @@ -17,16 +17,13 @@ y = moduleA; // should be error "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.someClass = void 0; -var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; -}()); +class someClass { +} exports.someClass = someClass; //// [aliasAssignments_1.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -var moduleA = require("./aliasAssignments_moduleA"); +const moduleA = require("./aliasAssignments_moduleA"); var x = moduleA; x = 1; // Should be error var y = 1; diff --git a/tests/baselines/reference/aliasBug.js b/tests/baselines/reference/aliasBug.js index 06141186575be..49ea8df48062e 100644 --- a/tests/baselines/reference/aliasBug.js +++ b/tests/baselines/reference/aliasBug.js @@ -24,21 +24,15 @@ function use() { //// [aliasBug.js] var foo; (function (foo) { - var Provide = /** @class */ (function () { - function Provide() { - } - return Provide; - }()); + class Provide { + } foo.Provide = Provide; - var bar; + let bar; (function (bar) { - var baz; + let baz; (function (baz) { - var boo = /** @class */ (function () { - function boo() { - } - return boo; - }()); + class boo { + } baz.boo = boo; })(baz = bar.baz || (bar.baz = {})); })(bar = foo.bar || (foo.bar = {})); diff --git a/tests/baselines/reference/aliasDoesNotDuplicateSignatures.js b/tests/baselines/reference/aliasDoesNotDuplicateSignatures.js index b3fc7f93ca314..f793032c22f8d 100644 --- a/tests/baselines/reference/aliasDoesNotDuplicateSignatures.js +++ b/tests/baselines/reference/aliasDoesNotDuplicateSignatures.js @@ -15,9 +15,7 @@ let x1: string = demoNS.f; let x2: string = f; //// [user.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -var demoModule_1 = require("demoModule"); +import { f } from 'demoModule'; // Assign an incorrect type here to see the type of 'f'. -var x1 = demoNS.f; -var x2 = demoModule_1.f; +let x1 = demoNS.f; +let x2 = f; diff --git a/tests/baselines/reference/aliasErrors.js b/tests/baselines/reference/aliasErrors.js index 5c30d59958a58..fb7e5c0f70c99 100644 --- a/tests/baselines/reference/aliasErrors.js +++ b/tests/baselines/reference/aliasErrors.js @@ -35,21 +35,15 @@ function use() { //// [aliasErrors.js] var foo; (function (foo) { - var Provide = /** @class */ (function () { - function Provide() { - } - return Provide; - }()); + class Provide { + } foo.Provide = Provide; - var bar; + let bar; (function (bar) { - var baz; + let baz; (function (baz) { - var boo = /** @class */ (function () { - function boo() { - } - return boo; - }()); + class boo { + } baz.boo = boo; })(baz = bar.baz || (bar.baz = {})); })(bar = foo.bar || (foo.bar = {})); diff --git a/tests/baselines/reference/aliasInaccessibleModule2.js b/tests/baselines/reference/aliasInaccessibleModule2.js index 46dd42695bb16..979b7157bb7ce 100644 --- a/tests/baselines/reference/aliasInaccessibleModule2.js +++ b/tests/baselines/reference/aliasInaccessibleModule2.js @@ -14,13 +14,10 @@ namespace M { //// [aliasInaccessibleModule2.js] var M; (function (M) { - var N; + let N; (function (N) { - var C = /** @class */ (function () { - function C() { - } - return C; - }()); + class C { + } })(N || (N = {})); var R = N; M.X = R; diff --git a/tests/baselines/reference/aliasInstantiationExpressionGenericIntersectionNoCrash1.js b/tests/baselines/reference/aliasInstantiationExpressionGenericIntersectionNoCrash1.js index 33b0409825620..3288d203a99aa 100644 --- a/tests/baselines/reference/aliasInstantiationExpressionGenericIntersectionNoCrash1.js +++ b/tests/baselines/reference/aliasInstantiationExpressionGenericIntersectionNoCrash1.js @@ -15,9 +15,6 @@ e as ErrAlias; //// [aliasInstantiationExpressionGenericIntersectionNoCrash1.js] "use strict"; -var ErrImpl = /** @class */ (function () { - function ErrImpl() { - } - return ErrImpl; -}()); +class ErrImpl { +} e; diff --git a/tests/baselines/reference/aliasOfGenericFunctionWithRestBehavedSameAsUnaliased.js b/tests/baselines/reference/aliasOfGenericFunctionWithRestBehavedSameAsUnaliased.js index 2c9b4bfc91371..b9243024a9295 100644 --- a/tests/baselines/reference/aliasOfGenericFunctionWithRestBehavedSameAsUnaliased.js +++ b/tests/baselines/reference/aliasOfGenericFunctionWithRestBehavedSameAsUnaliased.js @@ -38,7 +38,7 @@ let check3: test3 = "y"; //// [aliasOfGenericFunctionWithRestBehavedSameAsUnaliased.js] "use strict"; // the type printback for every `test` below should be "y" -var check = "y"; -var check1 = "y"; -var check2 = "y"; -var check3 = "y"; +let check = "y"; +let check1 = "y"; +let check2 = "y"; +let check3 = "y"; diff --git a/tests/baselines/reference/aliasUsageInArray.js b/tests/baselines/reference/aliasUsageInArray.js index 565d7c47f02dd..e6fc432309790 100644 --- a/tests/baselines/reference/aliasUsageInArray.js +++ b/tests/baselines/reference/aliasUsageInArray.js @@ -25,43 +25,20 @@ var xs2: typeof moduleA[] = [moduleA]; "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Model = void 0; -var Model = /** @class */ (function () { - function Model() { - } - return Model; -}()); +class Model { +} exports.Model = Model; //// [aliasUsageInArray_moduleA.js] "use strict"; -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.VisualizationModel = void 0; -var Backbone = require("./aliasUsageInArray_backbone"); -var VisualizationModel = /** @class */ (function (_super) { - __extends(VisualizationModel, _super); - function VisualizationModel() { - return _super !== null && _super.apply(this, arguments) || this; - } - return VisualizationModel; -}(Backbone.Model)); +const Backbone = require("./aliasUsageInArray_backbone"); +class VisualizationModel extends Backbone.Model { +} exports.VisualizationModel = VisualizationModel; //// [aliasUsageInArray_main.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -var moduleA = require("./aliasUsageInArray_moduleA"); +const moduleA = require("./aliasUsageInArray_moduleA"); var xs = [moduleA]; var xs2 = [moduleA]; diff --git a/tests/baselines/reference/aliasUsageInFunctionExpression.js b/tests/baselines/reference/aliasUsageInFunctionExpression.js index 037c21f0dcd77..edaee4debcb30 100644 --- a/tests/baselines/reference/aliasUsageInFunctionExpression.js +++ b/tests/baselines/reference/aliasUsageInFunctionExpression.js @@ -24,43 +24,20 @@ f = (x) => moduleA; "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Model = void 0; -var Model = /** @class */ (function () { - function Model() { - } - return Model; -}()); +class Model { +} exports.Model = Model; //// [aliasUsageInFunctionExpression_moduleA.js] "use strict"; -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.VisualizationModel = void 0; -var Backbone = require("./aliasUsageInFunctionExpression_backbone"); -var VisualizationModel = /** @class */ (function (_super) { - __extends(VisualizationModel, _super); - function VisualizationModel() { - return _super !== null && _super.apply(this, arguments) || this; - } - return VisualizationModel; -}(Backbone.Model)); +const Backbone = require("./aliasUsageInFunctionExpression_backbone"); +class VisualizationModel extends Backbone.Model { +} exports.VisualizationModel = VisualizationModel; //// [aliasUsageInFunctionExpression_main.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -var moduleA = require("./aliasUsageInFunctionExpression_moduleA"); -var f = function (x) { return x; }; -f = function (x) { return moduleA; }; +const moduleA = require("./aliasUsageInFunctionExpression_moduleA"); +var f = (x) => x; +f = (x) => moduleA; diff --git a/tests/baselines/reference/aliasUsageInGenericFunction.js b/tests/baselines/reference/aliasUsageInGenericFunction.js index 8d229a117830b..05781b2049764 100644 --- a/tests/baselines/reference/aliasUsageInGenericFunction.js +++ b/tests/baselines/reference/aliasUsageInGenericFunction.js @@ -28,44 +28,21 @@ var r2 = foo({ a: null }); "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Model = void 0; -var Model = /** @class */ (function () { - function Model() { - } - return Model; -}()); +class Model { +} exports.Model = Model; //// [aliasUsageInGenericFunction_moduleA.js] "use strict"; -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.VisualizationModel = void 0; -var Backbone = require("./aliasUsageInGenericFunction_backbone"); -var VisualizationModel = /** @class */ (function (_super) { - __extends(VisualizationModel, _super); - function VisualizationModel() { - return _super !== null && _super.apply(this, arguments) || this; - } - return VisualizationModel; -}(Backbone.Model)); +const Backbone = require("./aliasUsageInGenericFunction_backbone"); +class VisualizationModel extends Backbone.Model { +} exports.VisualizationModel = VisualizationModel; //// [aliasUsageInGenericFunction_main.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -var moduleA = require("./aliasUsageInGenericFunction_moduleA"); +const moduleA = require("./aliasUsageInGenericFunction_moduleA"); function foo(x) { return x; } diff --git a/tests/baselines/reference/aliasUsageInIndexerOfClass.js b/tests/baselines/reference/aliasUsageInIndexerOfClass.js index 7ce3cc298d041..f136ee4d72423 100644 --- a/tests/baselines/reference/aliasUsageInIndexerOfClass.js +++ b/tests/baselines/reference/aliasUsageInIndexerOfClass.js @@ -30,52 +30,25 @@ class N2 { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Model = void 0; -var Model = /** @class */ (function () { - function Model() { - } - return Model; -}()); +class Model { +} exports.Model = Model; //// [aliasUsageInIndexerOfClass_moduleA.js] "use strict"; -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.VisualizationModel = void 0; -var Backbone = require("./aliasUsageInIndexerOfClass_backbone"); -var VisualizationModel = /** @class */ (function (_super) { - __extends(VisualizationModel, _super); - function VisualizationModel() { - return _super !== null && _super.apply(this, arguments) || this; - } - return VisualizationModel; -}(Backbone.Model)); +const Backbone = require("./aliasUsageInIndexerOfClass_backbone"); +class VisualizationModel extends Backbone.Model { +} exports.VisualizationModel = VisualizationModel; //// [aliasUsageInIndexerOfClass_main.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -var moduleA = require("./aliasUsageInIndexerOfClass_moduleA"); -var N = /** @class */ (function () { - function N() { +const moduleA = require("./aliasUsageInIndexerOfClass_moduleA"); +class N { + constructor() { this.x = moduleA; } - return N; -}()); -var N2 = /** @class */ (function () { - function N2() { - } - return N2; -}()); +} +class N2 { +} diff --git a/tests/baselines/reference/aliasUsageInObjectLiteral.js b/tests/baselines/reference/aliasUsageInObjectLiteral.js index fb5c1b3e9a963..ebee1274603e9 100644 --- a/tests/baselines/reference/aliasUsageInObjectLiteral.js +++ b/tests/baselines/reference/aliasUsageInObjectLiteral.js @@ -25,44 +25,21 @@ var c: { y: { z: IHasVisualizationModel } } = { y: { z: moduleA } }; "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Model = void 0; -var Model = /** @class */ (function () { - function Model() { - } - return Model; -}()); +class Model { +} exports.Model = Model; //// [aliasUsageInObjectLiteral_moduleA.js] "use strict"; -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.VisualizationModel = void 0; -var Backbone = require("./aliasUsageInObjectLiteral_backbone"); -var VisualizationModel = /** @class */ (function (_super) { - __extends(VisualizationModel, _super); - function VisualizationModel() { - return _super !== null && _super.apply(this, arguments) || this; - } - return VisualizationModel; -}(Backbone.Model)); +const Backbone = require("./aliasUsageInObjectLiteral_backbone"); +class VisualizationModel extends Backbone.Model { +} exports.VisualizationModel = VisualizationModel; //// [aliasUsageInObjectLiteral_main.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -var moduleA = require("./aliasUsageInObjectLiteral_moduleA"); +const moduleA = require("./aliasUsageInObjectLiteral_moduleA"); var a = { x: moduleA }; var b = { x: moduleA }; var c = { y: { z: moduleA } }; diff --git a/tests/baselines/reference/aliasUsageInOrExpression.js b/tests/baselines/reference/aliasUsageInOrExpression.js index 25545e99de318..64047c7769748 100644 --- a/tests/baselines/reference/aliasUsageInOrExpression.js +++ b/tests/baselines/reference/aliasUsageInOrExpression.js @@ -28,44 +28,21 @@ var f: { x: IHasVisualizationModel } = <{ x: IHasVisualizationModel }>null ? { x "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Model = void 0; -var Model = /** @class */ (function () { - function Model() { - } - return Model; -}()); +class Model { +} exports.Model = Model; //// [aliasUsageInOrExpression_moduleA.js] "use strict"; -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.VisualizationModel = void 0; -var Backbone = require("./aliasUsageInOrExpression_backbone"); -var VisualizationModel = /** @class */ (function (_super) { - __extends(VisualizationModel, _super); - function VisualizationModel() { - return _super !== null && _super.apply(this, arguments) || this; - } - return VisualizationModel; -}(Backbone.Model)); +const Backbone = require("./aliasUsageInOrExpression_backbone"); +class VisualizationModel extends Backbone.Model { +} exports.VisualizationModel = VisualizationModel; //// [aliasUsageInOrExpression_main.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -var moduleA = require("./aliasUsageInOrExpression_moduleA"); +const moduleA = require("./aliasUsageInOrExpression_moduleA"); var d1 = i || moduleA; var d2 = i || moduleA; var d2 = moduleA || i; diff --git a/tests/baselines/reference/aliasUsageInTypeArgumentOfExtendsClause.js b/tests/baselines/reference/aliasUsageInTypeArgumentOfExtendsClause.js index dcb3d9c483fc8..2cf2f0137bbb9 100644 --- a/tests/baselines/reference/aliasUsageInTypeArgumentOfExtendsClause.js +++ b/tests/baselines/reference/aliasUsageInTypeArgumentOfExtendsClause.js @@ -28,70 +28,26 @@ class D extends C { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Model = void 0; -var Model = /** @class */ (function () { - function Model() { - } - return Model; -}()); +class Model { +} exports.Model = Model; //// [aliasUsageInTypeArgumentOfExtendsClause_moduleA.js] "use strict"; -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.VisualizationModel = void 0; -var Backbone = require("./aliasUsageInTypeArgumentOfExtendsClause_backbone"); -var VisualizationModel = /** @class */ (function (_super) { - __extends(VisualizationModel, _super); - function VisualizationModel() { - return _super !== null && _super.apply(this, arguments) || this; - } - return VisualizationModel; -}(Backbone.Model)); +const Backbone = require("./aliasUsageInTypeArgumentOfExtendsClause_backbone"); +class VisualizationModel extends Backbone.Model { +} exports.VisualizationModel = VisualizationModel; //// [aliasUsageInTypeArgumentOfExtendsClause_main.js] "use strict"; -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); Object.defineProperty(exports, "__esModule", { value: true }); -var moduleA = require("./aliasUsageInTypeArgumentOfExtendsClause_moduleA"); -var C = /** @class */ (function () { - function C() { - } - return C; -}()); -var D = /** @class */ (function (_super) { - __extends(D, _super); - function D() { - var _this = _super !== null && _super.apply(this, arguments) || this; - _this.x = moduleA; - return _this; +const moduleA = require("./aliasUsageInTypeArgumentOfExtendsClause_moduleA"); +class C { +} +class D extends C { + constructor() { + super(...arguments); + this.x = moduleA; } - return D; -}(C)); +} diff --git a/tests/baselines/reference/aliasUsageInVarAssignment.js b/tests/baselines/reference/aliasUsageInVarAssignment.js index 0e553a6e0a64b..a6ca39be48e68 100644 --- a/tests/baselines/reference/aliasUsageInVarAssignment.js +++ b/tests/baselines/reference/aliasUsageInVarAssignment.js @@ -24,39 +24,16 @@ var m: typeof moduleA = i; "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Model = void 0; -var Model = /** @class */ (function () { - function Model() { - } - return Model; -}()); +class Model { +} exports.Model = Model; //// [aliasUsageInVarAssignment_moduleA.js] "use strict"; -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.VisualizationModel = void 0; -var Backbone = require("./aliasUsageInVarAssignment_backbone"); -var VisualizationModel = /** @class */ (function (_super) { - __extends(VisualizationModel, _super); - function VisualizationModel() { - return _super !== null && _super.apply(this, arguments) || this; - } - return VisualizationModel; -}(Backbone.Model)); +const Backbone = require("./aliasUsageInVarAssignment_backbone"); +class VisualizationModel extends Backbone.Model { +} exports.VisualizationModel = VisualizationModel; //// [aliasUsageInVarAssignment_main.js] "use strict"; diff --git a/tests/baselines/reference/aliasUsedAsNameValue.js b/tests/baselines/reference/aliasUsedAsNameValue.js index 4f40c1a91a058..f8f3fdffa05f7 100644 --- a/tests/baselines/reference/aliasUsedAsNameValue.js +++ b/tests/baselines/reference/aliasUsedAsNameValue.js @@ -33,8 +33,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.a = void 0; /// /// -var mod = require("./aliasUsedAsNameValue_0"); -var b = require("./aliasUsedAsNameValue_1"); +const mod = require("./aliasUsedAsNameValue_0"); +const b = require("./aliasUsedAsNameValue_1"); var a = function () { //var x = mod.id; // TODO needed hack that mod is loaded b.b(mod); diff --git a/tests/baselines/reference/aliasesInSystemModule1.js b/tests/baselines/reference/aliasesInSystemModule1.js index d62fa78253009..2a8e3bb83f742 100644 --- a/tests/baselines/reference/aliasesInSystemModule1.js +++ b/tests/baselines/reference/aliasesInSystemModule1.js @@ -36,9 +36,9 @@ System.register(["foo"], function (exports_1, context_1) { z = new cls2(); (function (M) { M.cls = alias.Class; - var x = new alias.Class(); - var y = new M.cls(); - var z = new cls2(); + let x = new alias.Class(); + let y = new M.cls(); + let z = new cls2(); })(M || (M = {})); } }; diff --git a/tests/baselines/reference/aliasesInSystemModule2.js b/tests/baselines/reference/aliasesInSystemModule2.js index 7b72650283e83..ef462f184d38e 100644 --- a/tests/baselines/reference/aliasesInSystemModule2.js +++ b/tests/baselines/reference/aliasesInSystemModule2.js @@ -35,9 +35,9 @@ System.register(["foo"], function (exports_1, context_1) { z = new cls2(); (function (M) { M.cls = foo_1.alias.Class; - var x = new foo_1.alias.Class(); - var y = new M.cls(); - var z = new cls2(); + let x = new foo_1.alias.Class(); + let y = new M.cls(); + let z = new cls2(); })(M || (M = {})); } }; diff --git a/tests/baselines/reference/allowImportClausesToMergeWithTypes.js b/tests/baselines/reference/allowImportClausesToMergeWithTypes.js index c4f490d1435a4..e1d7d6ea5f01d 100644 --- a/tests/baselines/reference/allowImportClausesToMergeWithTypes.js +++ b/tests/baselines/reference/allowImportClausesToMergeWithTypes.js @@ -28,31 +28,17 @@ originalZZZ; const y: originalZZZ = x; //// [b.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.zzz = void 0; -exports.zzz = 123; -exports.default = exports.zzz; +export const zzz = 123; +export default zzz; //// [a.js] -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.default = void 0; -var b_1 = __importDefault(require("./b")); -exports.default = b_1.default; -var x = { x: "" }; -b_1.default; +import zzz from "./b"; +const x = { x: "" }; +zzz; +export { zzz as default }; //// [index.js] -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -var a_1 = __importDefault(require("./a")); -var x = { x: "" }; -a_1.default; -var b_1 = __importDefault(require("./b")); -b_1.default; -var y = x; +import zzz from "./a"; +const x = { x: "" }; +zzz; +import originalZZZ from "./b"; +originalZZZ; +const y = x; diff --git a/tests/baselines/reference/allowJscheckJsTypeParameterNoCrash.js b/tests/baselines/reference/allowJscheckJsTypeParameterNoCrash.js index 920b628fbf4b2..1e7acfa3e7ec7 100644 --- a/tests/baselines/reference/allowJscheckJsTypeParameterNoCrash.js +++ b/tests/baselines/reference/allowJscheckJsTypeParameterNoCrash.js @@ -20,21 +20,15 @@ export var a = vextend({ }); //// [func.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.vextend = void 0; -exports.vextend = extend; +export var vextend = extend; //// [app.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -var func_1 = require("./func"); +import { vextend } from './func'; // hover on vextend -exports.a = (0, func_1.vextend)({ +export var a = vextend({ watch: { - data1: function (val) { + data1(val) { this.data2 = 1; }, - data2: function (val) { }, + data2(val) { }, } }); diff --git a/tests/baselines/reference/allowSyntheticDefaultImports1.js b/tests/baselines/reference/allowSyntheticDefaultImports1.js index 0b266c9009022..eecb8bb251495 100644 --- a/tests/baselines/reference/allowSyntheticDefaultImports1.js +++ b/tests/baselines/reference/allowSyntheticDefaultImports1.js @@ -17,5 +17,5 @@ var __importDefault = (this && this.__importDefault) || function (mod) { }; Object.defineProperty(exports, "__esModule", { value: true }); exports.x = void 0; -var b_1 = __importDefault(require("./b")); +const b_1 = __importDefault(require("./b")); exports.x = new b_1.default.Foo(); diff --git a/tests/baselines/reference/allowSyntheticDefaultImports10.js b/tests/baselines/reference/allowSyntheticDefaultImports10.js index 13ee18518c4ec..63bfe93ce78f9 100644 --- a/tests/baselines/reference/allowSyntheticDefaultImports10.js +++ b/tests/baselines/reference/allowSyntheticDefaultImports10.js @@ -13,6 +13,6 @@ Foo.default.default.foo(); //// [a.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -var Foo = require("./b"); +const Foo = require("./b"); Foo.default.bar(); Foo.default.default.foo(); diff --git a/tests/baselines/reference/allowSyntheticDefaultImports3.js b/tests/baselines/reference/allowSyntheticDefaultImports3.js index b2525e1b33912..92257d6bd115c 100644 --- a/tests/baselines/reference/allowSyntheticDefaultImports3.js +++ b/tests/baselines/reference/allowSyntheticDefaultImports3.js @@ -18,11 +18,8 @@ System.register([], function (exports_1, context_1) { return { setters: [], execute: function () { - Foo = /** @class */ (function () { - function Foo() { - } - return Foo; - }()); + Foo = class Foo { + }; exports_1("Foo", Foo); } }; diff --git a/tests/baselines/reference/allowSyntheticDefaultImports4.js b/tests/baselines/reference/allowSyntheticDefaultImports4.js index ecd5acabd4757..a6ec766c41600 100644 --- a/tests/baselines/reference/allowSyntheticDefaultImports4.js +++ b/tests/baselines/reference/allowSyntheticDefaultImports4.js @@ -18,5 +18,5 @@ var __importDefault = (this && this.__importDefault) || function (mod) { }; Object.defineProperty(exports, "__esModule", { value: true }); exports.x = void 0; -var b_1 = __importDefault(require("./b")); +const b_1 = __importDefault(require("./b")); exports.x = new b_1.default(); diff --git a/tests/baselines/reference/allowSyntheticDefaultImports9.js b/tests/baselines/reference/allowSyntheticDefaultImports9.js index 5206974ee1db0..cc99033f91689 100644 --- a/tests/baselines/reference/allowSyntheticDefaultImports9.js +++ b/tests/baselines/reference/allowSyntheticDefaultImports9.js @@ -16,6 +16,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); -var b_1 = __importDefault(require("./b")); +const b_1 = __importDefault(require("./b")); b_1.default.bar(); b_1.default.foo(); diff --git a/tests/baselines/reference/allowSyntheticDefaultImportsCanPaintCrossModuleDeclaration.js b/tests/baselines/reference/allowSyntheticDefaultImportsCanPaintCrossModuleDeclaration.js index 783e2c08e08a6..dd13a09fd26f1 100644 --- a/tests/baselines/reference/allowSyntheticDefaultImportsCanPaintCrossModuleDeclaration.js +++ b/tests/baselines/reference/allowSyntheticDefaultImportsCanPaintCrossModuleDeclaration.js @@ -13,17 +13,12 @@ import { styled } from "./file1"; export const A = styled(); //// [color.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); +export {}; //// [file1.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); +export {}; //// [file2.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.A = void 0; -var file1_1 = require("./file1"); -exports.A = (0, file1_1.styled)(); +import { styled } from "./file1"; +export const A = styled(); //// [color.d.ts] diff --git a/tests/baselines/reference/allowUnescapedParagraphAndLineSeparatorsInStringLiteral.js b/tests/baselines/reference/allowUnescapedParagraphAndLineSeparatorsInStringLiteral.js index 9080fce8c91d5..c54c62dd3d2f0 100644 --- a/tests/baselines/reference/allowUnescapedParagraphAndLineSeparatorsInStringLiteral.js +++ b/tests/baselines/reference/allowUnescapedParagraphAndLineSeparatorsInStringLiteral.js @@ -33,14 +33,14 @@ var stringContainingUnescapedLineSeparator1 = "
STRING_CONTENT
"; var stringContainingUnescapedParagraphSeparator1 = "
STRING_CONTENT
"; var stringContainingUnescapedLineSeparator2 = '
STRING_CONTENT
'; var stringContainingUnescapedParagraphSeparator2 = '
STRING_CONTENT
'; -var stringContainingUnescapedLineSeparator3 = "\u2028STRING_CONTENT\u2028"; -var stringContainingUnescapedParagraphSeparator3 = "\u2029STRING_CONTENT\u2029"; +var stringContainingUnescapedLineSeparator3 = `
STRING_CONTENT
`; +var stringContainingUnescapedParagraphSeparator3 = `
STRING_CONTENT
`; // Array of unescaped line / paragraph separators var arr = [ "

STRING_CONTENT

", "


STRING_CONTENT


", "STRING_CONTENT
", "
STRING_CONTENT", - "", + `\
`, '
' ]; diff --git a/tests/baselines/reference/alwaysStrictModule3.js b/tests/baselines/reference/alwaysStrictModule3.js index 4665cfb4f06c9..a827144f67a36 100644 --- a/tests/baselines/reference/alwaysStrictModule3.js +++ b/tests/baselines/reference/alwaysStrictModule3.js @@ -6,4 +6,4 @@ export const a = 1; //// [alwaysStrictModule3.js] // module ES2015 -export var a = 1; +export const a = 1; diff --git a/tests/baselines/reference/ambient.js b/tests/baselines/reference/ambient.js index 5e94b128f71b8..7037c3d99a3b1 100644 --- a/tests/baselines/reference/ambient.js +++ b/tests/baselines/reference/ambient.js @@ -12,15 +12,7 @@ declare namespace ns { //// [a.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.A = void 0; -var A = /** @class */ (function () { - function A() { - } - return A; -}()); -exports.A = A; +export class A { +} //// [b.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); +export {}; diff --git a/tests/baselines/reference/ambientConstLiterals.js b/tests/baselines/reference/ambientConstLiterals.js index 8b35d43487203..ebdf5daeff362 100644 --- a/tests/baselines/reference/ambientConstLiterals.js +++ b/tests/baselines/reference/ambientConstLiterals.js @@ -34,21 +34,21 @@ var E; E[E["C"] = 2] = "C"; E[E["non identifier"] = 3] = "non identifier"; })(E || (E = {})); -var c1 = "abc"; -var c2 = 123; -var c3 = c1; -var c4 = c2; -var c5 = f(123); -var c6 = f(-123); -var c7 = true; -var c8 = E.A; -var c8b = E["non identifier"]; -var c9 = { x: "abc" }; -var c10 = [123]; -var c11 = "abc" + "def"; -var c12 = 123 + 456; -var c13 = Math.random() > 0.5 ? "abc" : "def"; -var c14 = Math.random() > 0.5 ? 123 : 456; +const c1 = "abc"; +const c2 = 123; +const c3 = c1; +const c4 = c2; +const c5 = f(123); +const c6 = f(-123); +const c7 = true; +const c8 = E.A; +const c8b = E["non identifier"]; +const c9 = { x: "abc" }; +const c10 = [123]; +const c11 = "abc" + "def"; +const c12 = 123 + 456; +const c13 = Math.random() > 0.5 ? "abc" : "def"; +const c14 = Math.random() > 0.5 ? 123 : 456; //// [ambientConstLiterals.d.ts] diff --git a/tests/baselines/reference/ambientDeclarationsExternal.js b/tests/baselines/reference/ambientDeclarationsExternal.js index 6a4569d3dfcef..872ca9f1f8041 100644 --- a/tests/baselines/reference/ambientDeclarationsExternal.js +++ b/tests/baselines/reference/ambientDeclarationsExternal.js @@ -29,6 +29,6 @@ var n: number; "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); // Ambient external module members are always exported with or without export keyword when module lacks export assignment -var imp3 = require("equ2"); +const imp3 = require("equ2"); var n = imp3.x; var n; diff --git a/tests/baselines/reference/ambientDeclarationsPatterns.js b/tests/baselines/reference/ambientDeclarationsPatterns.js index 60a00583a8ba9..102c87185334f 100644 --- a/tests/baselines/reference/ambientDeclarationsPatterns.js +++ b/tests/baselines/reference/ambientDeclarationsPatterns.js @@ -33,16 +33,11 @@ foo(fileText); //// [user.js] -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); /// -var foobarbaz_1 = require("foobarbaz"); -(0, foobarbaz_1.foo)(foobarbaz_1.baz); -var foosball_1 = require("foosball"); -(0, foobarbaz_1.foo)(foosball_1.foos); +import { foo, baz } from "foobarbaz"; +foo(baz); +import { foos } from "foosball"; +foo(foos); // Works with relative file name -var file_text_1 = __importDefault(require("./file!text")); -(0, foobarbaz_1.foo)(file_text_1.default); +import fileText from "./file!text"; +foo(fileText); diff --git a/tests/baselines/reference/ambientDeclarationsPatterns_merging1.js b/tests/baselines/reference/ambientDeclarationsPatterns_merging1.js index 7ffe5313a13c1..909ebf6fff29f 100644 --- a/tests/baselines/reference/ambientDeclarationsPatterns_merging1.js +++ b/tests/baselines/reference/ambientDeclarationsPatterns_merging1.js @@ -18,8 +18,6 @@ import { everywhere, onlyInA } from "b.foo"; // Error //// [types.js] //// [testA.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); +export {}; //// [testB.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); +export {}; diff --git a/tests/baselines/reference/ambientDeclarationsPatterns_merging2.js b/tests/baselines/reference/ambientDeclarationsPatterns_merging2.js index 97c32855f449e..7d7edc8a0fb9f 100644 --- a/tests/baselines/reference/ambientDeclarationsPatterns_merging2.js +++ b/tests/baselines/reference/ambientDeclarationsPatterns_merging2.js @@ -20,8 +20,6 @@ declare module "a.foo" { //// [types.js] //// [testA.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); +export {}; //// [testB.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); +export {}; diff --git a/tests/baselines/reference/ambientDeclarationsPatterns_merging3.js b/tests/baselines/reference/ambientDeclarationsPatterns_merging3.js index 63645257d8e7c..3a2976a31e846 100644 --- a/tests/baselines/reference/ambientDeclarationsPatterns_merging3.js +++ b/tests/baselines/reference/ambientDeclarationsPatterns_merging3.js @@ -16,6 +16,5 @@ ohno.a // oh no //// [types.js] //// [test.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); ohno.a; // oh no +export {}; diff --git a/tests/baselines/reference/ambientExportDefaultErrors.js b/tests/baselines/reference/ambientExportDefaultErrors.js index d07be60220743..89f60428e7541 100644 --- a/tests/baselines/reference/ambientExportDefaultErrors.js +++ b/tests/baselines/reference/ambientExportDefaultErrors.js @@ -29,11 +29,9 @@ import "indirect2"; import "foo2"; //// [consumer.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); /// /// -require("indirect"); -require("foo"); -require("indirect2"); -require("foo2"); +import "indirect"; +import "foo"; +import "indirect2"; +import "foo2"; diff --git a/tests/baselines/reference/ambientExternalModuleInAnotherExternalModule.js b/tests/baselines/reference/ambientExternalModuleInAnotherExternalModule.js index 900b03f321350..44a551ba0f300 100644 --- a/tests/baselines/reference/ambientExternalModuleInAnotherExternalModule.js +++ b/tests/baselines/reference/ambientExternalModuleInAnotherExternalModule.js @@ -14,12 +14,9 @@ var x = ext; //// [ambientExternalModuleInAnotherExternalModule.js] "use strict"; -var D = /** @class */ (function () { - function D() { - } - return D; -}()); +class D { +} // Cannot resolve this ext module reference -var ext = require("ext"); +const ext = require("ext"); var x = ext; module.exports = D; diff --git a/tests/baselines/reference/ambientModuleDeclarationWithReservedIdentifierInDottedPath.js b/tests/baselines/reference/ambientModuleDeclarationWithReservedIdentifierInDottedPath.js index 6be02c881261b..82610392a88e7 100644 --- a/tests/baselines/reference/ambientModuleDeclarationWithReservedIdentifierInDottedPath.js +++ b/tests/baselines/reference/ambientModuleDeclarationWithReservedIdentifierInDottedPath.js @@ -15,11 +15,8 @@ declare namespace debugger {} // still an error //// [ambientModuleDeclarationWithReservedIdentifierInDottedPath.js] -"use strict"; // https://github.com/microsoft/TypeScript/issues/7840 -Object.defineProperty(exports, "__esModule", { value: true }); -exports.tabId = void 0; -exports.tabId = chrome.debugger.tabId; +export const tabId = chrome.debugger.tabId; declare; namespace; debugger; diff --git a/tests/baselines/reference/ambientModuleDeclarationWithReservedIdentifierInDottedPath2.js b/tests/baselines/reference/ambientModuleDeclarationWithReservedIdentifierInDottedPath2.js index 1751a8d5c967e..4574fb3c0d0c9 100644 --- a/tests/baselines/reference/ambientModuleDeclarationWithReservedIdentifierInDottedPath2.js +++ b/tests/baselines/reference/ambientModuleDeclarationWithReservedIdentifierInDottedPath2.js @@ -13,10 +13,7 @@ declare namespace debugger {} // still an error //// [ambientModuleDeclarationWithReservedIdentifierInDottedPath2.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.tabId = void 0; -exports.tabId = chrome.debugger.tabId; +export const tabId = chrome.debugger.tabId; declare; namespace; debugger; diff --git a/tests/baselines/reference/ambientNameRestrictions.js b/tests/baselines/reference/ambientNameRestrictions.js index 11ad18420f2d1..dccf38ca98059 100644 --- a/tests/baselines/reference/ambientNameRestrictions.js +++ b/tests/baselines/reference/ambientNameRestrictions.js @@ -7,5 +7,4 @@ export declare namespace Foo { //// [ambientNameRestrictions.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); +export {}; diff --git a/tests/baselines/reference/ambientRequireFunction(module=commonjs).js b/tests/baselines/reference/ambientRequireFunction(module=commonjs).js index 348ee0a144389..430403e508cff 100644 --- a/tests/baselines/reference/ambientRequireFunction(module=commonjs).js +++ b/tests/baselines/reference/ambientRequireFunction(module=commonjs).js @@ -15,5 +15,5 @@ const text = fs.readFileSync("/a/b/c"); //// [app.js] /// -var fs = require("fs"); -var text = fs.readFileSync("/a/b/c"); +const fs = require("fs"); +const text = fs.readFileSync("/a/b/c"); diff --git a/tests/baselines/reference/ambientRequireFunction(module=preserve).js b/tests/baselines/reference/ambientRequireFunction(module=preserve).js index 348ee0a144389..430403e508cff 100644 --- a/tests/baselines/reference/ambientRequireFunction(module=preserve).js +++ b/tests/baselines/reference/ambientRequireFunction(module=preserve).js @@ -15,5 +15,5 @@ const text = fs.readFileSync("/a/b/c"); //// [app.js] /// -var fs = require("fs"); -var text = fs.readFileSync("/a/b/c"); +const fs = require("fs"); +const text = fs.readFileSync("/a/b/c"); diff --git a/tests/baselines/reference/ambientShorthand.js b/tests/baselines/reference/ambientShorthand.js index f2ceb3f85ab1a..e0fdb6a7dcbfb 100644 --- a/tests/baselines/reference/ambientShorthand.js +++ b/tests/baselines/reference/ambientShorthand.js @@ -50,7 +50,7 @@ var __importStar = (this && this.__importStar) || (function () { })(); Object.defineProperty(exports, "__esModule", { value: true }); /// -var jquery_1 = __importStar(require("jquery")); -var baz = __importStar(require("fs")); -var boom = require("jquery"); +const jquery_1 = __importStar(require("jquery")); +const baz = __importStar(require("fs")); +const boom = require("jquery"); (0, jquery_1.default)(jquery_1.bar, baz, boom); diff --git a/tests/baselines/reference/ambientShorthand_duplicate.js b/tests/baselines/reference/ambientShorthand_duplicate.js index 99c490003275c..43f65f7ab603b 100644 --- a/tests/baselines/reference/ambientShorthand_duplicate.js +++ b/tests/baselines/reference/ambientShorthand_duplicate.js @@ -13,5 +13,4 @@ import foo from "foo"; //// [user.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); +export {}; diff --git a/tests/baselines/reference/ambientShorthand_merging.js b/tests/baselines/reference/ambientShorthand_merging.js index b8a134c179606..f2f8043ae7af7 100644 --- a/tests/baselines/reference/ambientShorthand_merging.js +++ b/tests/baselines/reference/ambientShorthand_merging.js @@ -15,5 +15,4 @@ import foo, {bar} from "foo"; //// [user.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); +export {}; diff --git a/tests/baselines/reference/ambientShorthand_reExport.js b/tests/baselines/reference/ambientShorthand_reExport.js index fad16379ad344..84793e8449218 100644 --- a/tests/baselines/reference/ambientShorthand_reExport.js +++ b/tests/baselines/reference/ambientShorthand_reExport.js @@ -17,66 +17,11 @@ x($); //// [reExportX.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.x = void 0; -var jquery_1 = require("jquery"); -Object.defineProperty(exports, "x", { enumerable: true, get: function () { return jquery_1.x; } }); +export { x } from "jquery"; //// [reExportAll.js] -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(require("jquery"), exports); +export * from "jquery"; //// [reExportUser.js] -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || (function () { - var ownKeys = function(o) { - ownKeys = Object.getOwnPropertyNames || function (o) { - var ar = []; - for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; - return ar; - }; - return ownKeys(o); - }; - return function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); - __setModuleDefault(result, mod); - return result; - }; -})(); -Object.defineProperty(exports, "__esModule", { value: true }); -var reExportX_1 = require("./reExportX"); -var $ = __importStar(require("./reExportAll")); +import { x } from "./reExportX"; +import * as $ from "./reExportAll"; // '$' is not callable, it is an object. -(0, reExportX_1.x)($); +x($); diff --git a/tests/baselines/reference/ambiguousCallsWhereReturnTypesAgree.js b/tests/baselines/reference/ambiguousCallsWhereReturnTypesAgree.js index 9f7661c7a5579..6d3892807e237 100644 --- a/tests/baselines/reference/ambiguousCallsWhereReturnTypesAgree.js +++ b/tests/baselines/reference/ambiguousCallsWhereReturnTypesAgree.js @@ -31,24 +31,18 @@ class TestClass2 { //// [ambiguousCallsWhereReturnTypesAgree.js] -var TestClass = /** @class */ (function () { - function TestClass() { +class TestClass { + bar(x) { } - TestClass.prototype.bar = function (x) { - }; - TestClass.prototype.foo = function (x) { + foo(x) { this.bar(x); // should not error - }; - return TestClass; -}()); -var TestClass2 = /** @class */ (function () { - function TestClass2() { } - TestClass2.prototype.bar = function (x) { +} +class TestClass2 { + bar(x) { return 0; - }; - TestClass2.prototype.foo = function (x) { + } + foo(x) { return this.bar(x); // should not error - }; - return TestClass2; -}()); + } +} diff --git a/tests/baselines/reference/ambiguousGenericAssertion1.js b/tests/baselines/reference/ambiguousGenericAssertion1.js index 8cfd823941f07..7c0b0e667cc0a 100644 --- a/tests/baselines/reference/ambiguousGenericAssertion1.js +++ b/tests/baselines/reference/ambiguousGenericAssertion1.js @@ -9,7 +9,7 @@ var r3 = <(x: T) => T>f; // ambiguous, appears to the parser as a << operatio //// [ambiguousGenericAssertion1.js] function f(x) { return null; } -var r = function (x) { return x; }; +var r = (x) => x; var r2 = f; // valid var r3 = << T > (x), T; T > f; // ambiguous, appears to the parser as a << operation diff --git a/tests/baselines/reference/ambiguousOverloadResolution.js b/tests/baselines/reference/ambiguousOverloadResolution.js index da03893c9e486..c844269d597ce 100644 --- a/tests/baselines/reference/ambiguousOverloadResolution.js +++ b/tests/baselines/reference/ambiguousOverloadResolution.js @@ -11,32 +11,9 @@ var x: B; var t: number = f(x, x); // Not an error //// [ambiguousOverloadResolution.js] -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -var A = /** @class */ (function () { - function A() { - } - return A; -}()); -var B = /** @class */ (function (_super) { - __extends(B, _super); - function B() { - return _super !== null && _super.apply(this, arguments) || this; - } - return B; -}(A)); +class A { +} +class B extends A { +} var x; var t = f(x, x); // Not an error diff --git a/tests/baselines/reference/amdDeclarationEmitNoExtraDeclare.js b/tests/baselines/reference/amdDeclarationEmitNoExtraDeclare.js index ad02552328f0e..777ffff2aeb43 100644 --- a/tests/baselines/reference/amdDeclarationEmitNoExtraDeclare.js +++ b/tests/baselines/reference/amdDeclarationEmitNoExtraDeclare.js @@ -22,56 +22,27 @@ export function Configurable>(base: T): T { //// [dist.js] -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); define("Configurable", ["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Configurable = Configurable; function Configurable(base) { - return /** @class */ (function (_super) { - __extends(class_1, _super); - function class_1() { - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i] = arguments[_i]; - } - return _super.apply(this, args) || this; + return class extends base { + constructor(...args) { + super(...args); } - return class_1; - }(base)); + }; } }); define("Class", ["require", "exports", "Configurable"], function (require, exports, Configurable_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ActualClass = exports.HiddenClass = void 0; - var HiddenClass = /** @class */ (function () { - function HiddenClass() { - } - return HiddenClass; - }()); + class HiddenClass { + } exports.HiddenClass = HiddenClass; - var ActualClass = /** @class */ (function (_super) { - __extends(ActualClass, _super); - function ActualClass() { - return _super !== null && _super.apply(this, arguments) || this; - } - return ActualClass; - }((0, Configurable_1.Configurable)(HiddenClass))); + class ActualClass extends (0, Configurable_1.Configurable)(HiddenClass) { + } exports.ActualClass = ActualClass; }); diff --git a/tests/baselines/reference/amdDependencyComment1.js b/tests/baselines/reference/amdDependencyComment1.js index 86a25964b7a93..e12e84748597b 100644 --- a/tests/baselines/reference/amdDependencyComment1.js +++ b/tests/baselines/reference/amdDependencyComment1.js @@ -10,5 +10,5 @@ m1.f(); "use strict"; /// Object.defineProperty(exports, "__esModule", { value: true }); -var m1 = require("m2"); +const m1 = require("m2"); m1.f(); diff --git a/tests/baselines/reference/amdDependencyCommentName1.js b/tests/baselines/reference/amdDependencyCommentName1.js index 8acd9de790c6c..7538bd86ee39e 100644 --- a/tests/baselines/reference/amdDependencyCommentName1.js +++ b/tests/baselines/reference/amdDependencyCommentName1.js @@ -10,5 +10,5 @@ m1.f(); "use strict"; /// Object.defineProperty(exports, "__esModule", { value: true }); -var m1 = require("m2"); +const m1 = require("m2"); m1.f(); diff --git a/tests/baselines/reference/amdImportNotAsPrimaryExpression.js b/tests/baselines/reference/amdImportNotAsPrimaryExpression.js index 89128a66b616a..f3749276a5242 100644 --- a/tests/baselines/reference/amdImportNotAsPrimaryExpression.js +++ b/tests/baselines/reference/amdImportNotAsPrimaryExpression.js @@ -36,14 +36,13 @@ define(["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.E1 = exports.C1 = void 0; - var C1 = /** @class */ (function () { - function C1() { + class C1 { + constructor() { this.m1 = 42; } - C1.s1 = true; - return C1; - }()); + } exports.C1 = C1; + C1.s1 = true; var E1; (function (E1) { E1[E1["A"] = 0] = "A"; diff --git a/tests/baselines/reference/amdModuleBundleNoDuplicateDeclarationEmitComments.js b/tests/baselines/reference/amdModuleBundleNoDuplicateDeclarationEmitComments.js index 0f7d4bf3528b8..977a58f7ddee1 100644 --- a/tests/baselines/reference/amdModuleBundleNoDuplicateDeclarationEmitComments.js +++ b/tests/baselines/reference/amdModuleBundleNoDuplicateDeclarationEmitComments.js @@ -13,11 +13,8 @@ define("mynamespace::SomeModuleA", ["require", "exports"], function (require, ex Object.defineProperty(exports, "__esModule", { value: true }); exports.Foo = void 0; /// - var Foo = /** @class */ (function () { - function Foo() { - } - return Foo; - }()); + class Foo { + } exports.Foo = Foo; }); define("mynamespace::SomeModuleB", ["require", "exports"], function (require, exports) { @@ -25,11 +22,8 @@ define("mynamespace::SomeModuleB", ["require", "exports"], function (require, ex Object.defineProperty(exports, "__esModule", { value: true }); exports.Bar = void 0; /// - var Bar = /** @class */ (function () { - function Bar() { - } - return Bar; - }()); + class Bar { + } exports.Bar = Bar; }); diff --git a/tests/baselines/reference/amdModuleConstEnumUsage.js b/tests/baselines/reference/amdModuleConstEnumUsage.js index 7cec2bf640e32..a6450c87a83fc 100644 --- a/tests/baselines/reference/amdModuleConstEnumUsage.js +++ b/tests/baselines/reference/amdModuleConstEnumUsage.js @@ -30,13 +30,10 @@ define(["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.User = void 0; - var User = /** @class */ (function () { - function User() { - } - User.prototype.method = function (input) { + class User { + method(input) { if (0 /* CharCode.A */ === input) { } - }; - return User; - }()); + } + } exports.User = User; }); diff --git a/tests/baselines/reference/amdModuleName1.js b/tests/baselines/reference/amdModuleName1.js index 8d2f54823c9d7..a862504699549 100644 --- a/tests/baselines/reference/amdModuleName1.js +++ b/tests/baselines/reference/amdModuleName1.js @@ -15,11 +15,10 @@ export = Foo; define("NamedModule", ["require", "exports"], function (require, exports) { "use strict"; /// - var Foo = /** @class */ (function () { - function Foo() { + class Foo { + constructor() { this.x = 5; } - return Foo; - }()); + } return Foo; }); diff --git a/tests/baselines/reference/amdModuleName2.js b/tests/baselines/reference/amdModuleName2.js index 9bfaff9e0cb46..0f5bc7b78b43f 100644 --- a/tests/baselines/reference/amdModuleName2.js +++ b/tests/baselines/reference/amdModuleName2.js @@ -17,11 +17,10 @@ define("SecondModuleName", ["require", "exports"], function (require, exports) { "use strict"; /// /// - var Foo = /** @class */ (function () { - function Foo() { + class Foo { + constructor() { this.x = 5; } - return Foo; - }()); + } return Foo; }); diff --git a/tests/baselines/reference/anonClassDeclarationEmitIsAnon.js b/tests/baselines/reference/anonClassDeclarationEmitIsAnon.js index 2c0dc04e17776..3ea1be20a84e2 100644 --- a/tests/baselines/reference/anonClassDeclarationEmitIsAnon.js +++ b/tests/baselines/reference/anonClassDeclarationEmitIsAnon.js @@ -35,84 +35,36 @@ export class TimestampedUser extends Timestamped(User) { } //// [wrapClass.js] -"use strict"; -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -Object.defineProperty(exports, "__esModule", { value: true }); -exports.wrapClass = wrapClass; -exports.Timestamped = Timestamped; -function wrapClass(param) { - return /** @class */ (function () { - function Wrapped() { - } - Wrapped.prototype.foo = function () { +export function wrapClass(param) { + return class Wrapped { + foo() { return param; - }; - return Wrapped; - }()); + } + }; } -function Timestamped(Base) { - return /** @class */ (function (_super) { - __extends(class_1, _super); - function class_1() { - var _this = _super !== null && _super.apply(this, arguments) || this; - _this.timestamp = Date.now(); - return _this; +export function Timestamped(Base) { + return class extends Base { + constructor() { + super(...arguments); + this.timestamp = Date.now(); } - return class_1; - }(Base)); + }; } //// [index.js] -"use strict"; -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TimestampedUser = exports.User = void 0; -var wrapClass_1 = require("./wrapClass"); -exports.default = (0, wrapClass_1.wrapClass)(0); +import { wrapClass, Timestamped } from "./wrapClass"; +export default wrapClass(0); // Simple class -var User = /** @class */ (function () { - function User() { +export class User { + constructor() { this.name = ''; } - return User; -}()); -exports.User = User; +} // User that is Timestamped -var TimestampedUser = /** @class */ (function (_super) { - __extends(TimestampedUser, _super); - function TimestampedUser() { - return _super.call(this) || this; +export class TimestampedUser extends Timestamped(User) { + constructor() { + super(); } - return TimestampedUser; -}((0, wrapClass_1.Timestamped)(User))); -exports.TimestampedUser = TimestampedUser; +} //// [wrapClass.d.ts] diff --git a/tests/baselines/reference/anonterface.js b/tests/baselines/reference/anonterface.js index d3f0b19d15683..c7e0fa4431e57 100644 --- a/tests/baselines/reference/anonterface.js +++ b/tests/baselines/reference/anonterface.js @@ -19,14 +19,11 @@ c.m(function(n) { return "hello: "+n; },18); //// [anonterface.js] var M; (function (M) { - var C = /** @class */ (function () { - function C() { - } - C.prototype.m = function (fn, n2) { + class C { + m(fn, n2) { return fn(n2); - }; - return C; - }()); + } + } M.C = C; })(M || (M = {})); var c = new M.C(); diff --git a/tests/baselines/reference/anonymousClassDeclarationDoesntPrintWithReadonly.js b/tests/baselines/reference/anonymousClassDeclarationDoesntPrintWithReadonly.js index ad6dafad14c7f..873acf5212380 100644 --- a/tests/baselines/reference/anonymousClassDeclarationDoesntPrintWithReadonly.js +++ b/tests/baselines/reference/anonymousClassDeclarationDoesntPrintWithReadonly.js @@ -10,40 +10,14 @@ export function y() { } //// [anonymousClassDeclarationDoesntPrintWithReadonly.js] -"use strict"; -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -Object.defineProperty(exports, "__esModule", { value: true }); -exports.X = void 0; -exports.y = y; -var X = /** @class */ (function () { - function X(a) { +export class X { + constructor(a) { this.a = a; } - return X; -}()); -exports.X = X; -function y() { - return /** @class */ (function (_super) { - __extends(class_1, _super); - function class_1() { - return _super !== null && _super.apply(this, arguments) || this; - } - return class_1; - }(X)); +} +export function y() { + return class extends X { + }; } diff --git a/tests/baselines/reference/anonymousClassExpression1.js b/tests/baselines/reference/anonymousClassExpression1.js index 19d56aa17bfff..3e5146cc886ec 100644 --- a/tests/baselines/reference/anonymousClassExpression1.js +++ b/tests/baselines/reference/anonymousClassExpression1.js @@ -7,9 +7,6 @@ function f() { //// [anonymousClassExpression1.js] function f() { - return typeof /** @class */ (function () { - function class_1() { - } - return class_1; - }()) === "function"; + return typeof class { + } === "function"; } diff --git a/tests/baselines/reference/anonymousClassExpression2.js b/tests/baselines/reference/anonymousClassExpression2.js index 78ebb7c647468..015ed36417ebb 100644 --- a/tests/baselines/reference/anonymousClassExpression2.js +++ b/tests/baselines/reference/anonymousClassExpression2.js @@ -25,21 +25,15 @@ while (0) { // note: repros with `while (0);` too // but it's less inscrutable and more obvious to put it *inside* the loop while (0) { - var A = /** @class */ (function () { - function A() { - } - A.prototype.methodA = function () { + class A { + methodA() { this; //note: a this reference of some kind is required to trigger the bug - }; - return A; - }()); - var B = /** @class */ (function () { - function B() { } - B.prototype.methodB = function () { + } + class B { + methodB() { this.methodA; // error this.methodB; // ok - }; - return B; - }()); + } + } } diff --git a/tests/baselines/reference/anyAndUnknownHaveFalsyComponents.js b/tests/baselines/reference/anyAndUnknownHaveFalsyComponents.js index 6bc2b2b59e6c6..57b210842881a 100644 --- a/tests/baselines/reference/anyAndUnknownHaveFalsyComponents.js +++ b/tests/baselines/reference/anyAndUnknownHaveFalsyComponents.js @@ -31,26 +31,15 @@ function foo2() { //// [anyAndUnknownHaveFalsyComponents.js] -var __assign = (this && this.__assign) || function () { - __assign = Object.assign || function(t) { - for (var s, i = 1, n = arguments.length; i < n; i++) { - s = arguments[i]; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) - t[p] = s[p]; - } - return t; - }; - return __assign.apply(this, arguments); -}; -var y1 = x1 && 3; +const y1 = x1 && 3; function foo1() { - return __assign({ display: "block" }, (isTreeHeader1 && { + return Object.assign({ display: "block" }, (isTreeHeader1 && { display: "flex", })); } -var y2 = x2 && 3; +const y2 = x2 && 3; function foo2() { - return __assign({ display: "block" }, (isTreeHeader1 && { + return Object.assign({ display: "block" }, (isTreeHeader1 && { display: "flex", })); } diff --git a/tests/baselines/reference/anyAsGenericFunctionCall.js b/tests/baselines/reference/anyAsGenericFunctionCall.js index 742c22380c830..9f7f9469360f2 100644 --- a/tests/baselines/reference/anyAsGenericFunctionCall.js +++ b/tests/baselines/reference/anyAsGenericFunctionCall.js @@ -18,10 +18,7 @@ var d = x(x); var x; var a = x(); var b = x('hello'); -var C = /** @class */ (function () { - function C() { - } - return C; -}()); +class C { +} var c = x(x); var d = x(x); diff --git a/tests/baselines/reference/anyAssignabilityInInheritance.js b/tests/baselines/reference/anyAssignabilityInInheritance.js index e875dd54df978..e297c39e595c0 100644 --- a/tests/baselines/reference/anyAssignabilityInInheritance.js +++ b/tests/baselines/reference/anyAssignabilityInInheritance.js @@ -101,17 +101,11 @@ var r3 = foo3(a); // any var r3 = foo3(a); // any var r3 = foo3(a); // any var r3 = foo3(a); // any -var A = /** @class */ (function () { - function A() { - } - return A; -}()); +class A { +} var r3 = foo3(a); // any -var A2 = /** @class */ (function () { - function A2() { - } - return A2; -}()); +class A2 { +} var r3 = foo3(a); // any var r3 = foo3(a); // any var r3 = foo3(a); // any @@ -125,11 +119,8 @@ function f() { } f.bar = 1; })(f || (f = {})); var r3 = foo3(a); // any -var CC = /** @class */ (function () { - function CC() { - } - return CC; -}()); +class CC { +} (function (CC) { CC.bar = 1; })(CC || (CC = {})); diff --git a/tests/baselines/reference/anyAssignableToEveryType.js b/tests/baselines/reference/anyAssignableToEveryType.js index 82f1f33bfe1c6..89616436c6a38 100644 --- a/tests/baselines/reference/anyAssignableToEveryType.js +++ b/tests/baselines/reference/anyAssignableToEveryType.js @@ -49,11 +49,8 @@ function foo(x: T, y: U, z: V) { //// [anyAssignableToEveryType.js] var a; -var C = /** @class */ (function () { - function C() { - } - return C; -}()); +class C { +} var ac; var ai; var E; diff --git a/tests/baselines/reference/anyAssignableToEveryType2.js b/tests/baselines/reference/anyAssignableToEveryType2.js index df6b6d02678f3..b2b39eb69861a 100644 --- a/tests/baselines/reference/anyAssignableToEveryType2.js +++ b/tests/baselines/reference/anyAssignableToEveryType2.js @@ -134,16 +134,10 @@ interface I20 { //// [anyAssignableToEveryType2.js] // any is not a subtype of any other types, but is assignable, all the below should work -var A = /** @class */ (function () { - function A() { - } - return A; -}()); -var A2 = /** @class */ (function () { - function A2() { - } - return A2; -}()); +class A { +} +class A2 { +} var E; (function (E) { E[E["A"] = 0] = "A"; @@ -152,11 +146,8 @@ function f() { } (function (f) { f.bar = 1; })(f || (f = {})); -var c = /** @class */ (function () { - function c() { - } - return c; -}()); +class c { +} (function (c) { c.bar = 1; })(c || (c = {})); diff --git a/tests/baselines/reference/anyIdenticalToItself.js b/tests/baselines/reference/anyIdenticalToItself.js index f987b7a1fcdd4..7a4289adcd754 100644 --- a/tests/baselines/reference/anyIdenticalToItself.js +++ b/tests/baselines/reference/anyIdenticalToItself.js @@ -16,18 +16,11 @@ class C { //// [anyIdenticalToItself.js] function foo(x, y) { } -var C = /** @class */ (function () { - function C() { +class C { + get X() { + var y; + return y; } - Object.defineProperty(C.prototype, "X", { - get: function () { - var y; - return y; - }, - set: function (v) { - }, - enumerable: false, - configurable: true - }); - return C; -}()); + set X(v) { + } +} diff --git a/tests/baselines/reference/anyInferenceAnonymousFunctions.js b/tests/baselines/reference/anyInferenceAnonymousFunctions.js index b53bac5c9f3fb..473446d4ff15e 100644 --- a/tests/baselines/reference/anyInferenceAnonymousFunctions.js +++ b/tests/baselines/reference/anyInferenceAnonymousFunctions.js @@ -24,9 +24,9 @@ var paired; paired.reduce(function (a1, a2) { return a1.concat({}); }, []); -paired.reduce(function (b1, b2) { +paired.reduce((b1, b2) => { return b1.concat({}); }, []); -paired.reduce(function (b3, b4) { return b3.concat({}); }, []); -paired.map(function (c1) { return c1.count; }); +paired.reduce((b3, b4) => b3.concat({}), []); +paired.map((c1) => c1.count); paired.map(function (c2) { return c2.count; }); diff --git a/tests/baselines/reference/apparentTypeSubtyping.js b/tests/baselines/reference/apparentTypeSubtyping.js index aef1ab7d1badc..e94cce20f046e 100644 --- a/tests/baselines/reference/apparentTypeSubtyping.js +++ b/tests/baselines/reference/apparentTypeSubtyping.js @@ -26,44 +26,13 @@ class Derived2 extends Base2 { // error because of the prototy //// [apparentTypeSubtyping.js] // subtype checks use the apparent type of the target type // S is a subtype of a type T, and T is a supertype of S, if one of the following is true, where S' denotes the apparent type (section 3.8.1) of S: -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -var Base = /** @class */ (function () { - function Base() { - } - return Base; -}()); +class Base { +} // is String (S) a subtype of U extends String (T)? Would only be true if we used the apparent type of U (T) -var Derived = /** @class */ (function (_super) { - __extends(Derived, _super); - function Derived() { - return _super !== null && _super.apply(this, arguments) || this; - } - return Derived; -}(Base)); -var Base2 = /** @class */ (function () { - function Base2() { - } - return Base2; -}()); +class Derived extends Base { +} +class Base2 { +} // is U extends String (S) a subtype of String (T)? Apparent type of U is String so it succeeds -var Derived2 = /** @class */ (function (_super) { - __extends(Derived2, _super); - function Derived2() { - return _super !== null && _super.apply(this, arguments) || this; - } - return Derived2; -}(Base2)); +class Derived2 extends Base2 { +} diff --git a/tests/baselines/reference/apparentTypeSupertype.js b/tests/baselines/reference/apparentTypeSupertype.js index e7dcffde189b0..bf4e3f8a71966 100644 --- a/tests/baselines/reference/apparentTypeSupertype.js +++ b/tests/baselines/reference/apparentTypeSupertype.js @@ -16,31 +16,8 @@ class Derived extends Base { // error //// [apparentTypeSupertype.js] // subtype checks use the apparent type of the target type // S is a subtype of a type T, and T is a supertype of S, if one of the following is true, where S' denotes the apparent type (section 3.8.1) of S: -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -var Base = /** @class */ (function () { - function Base() { - } - return Base; -}()); +class Base { +} // is String (S) a subtype of U extends String (T)? Would only be true if we used the apparent type of U (T) -var Derived = /** @class */ (function (_super) { - __extends(Derived, _super); - function Derived() { - return _super !== null && _super.apply(this, arguments) || this; - } - return Derived; -}(Base)); +class Derived extends Base { +} diff --git a/tests/baselines/reference/argsInScope.js b/tests/baselines/reference/argsInScope.js index 6ba6be2e7c4d4..9183bef01141a 100644 --- a/tests/baselines/reference/argsInScope.js +++ b/tests/baselines/reference/argsInScope.js @@ -14,15 +14,12 @@ c.P(1,2,3); //// [argsInScope.js] -var C = /** @class */ (function () { - function C() { - } - C.prototype.P = function (ii, j, k) { +class C { + P(ii, j, k) { for (var i = 0; i < arguments.length; i++) { // WScript.Echo("param: " + arguments[i]); } - }; - return C; -}()); + } +} var c = new C(); c.P(1, 2, 3); diff --git a/tests/baselines/reference/argumentExpressionContextualTyping.js b/tests/baselines/reference/argumentExpressionContextualTyping.js index 4c73d0e458679..0ab90a276c6a1 100644 --- a/tests/baselines/reference/argumentExpressionContextualTyping.js +++ b/tests/baselines/reference/argumentExpressionContextualTyping.js @@ -21,22 +21,9 @@ baz(["string", 1, true, ...array]); // Error foo(o); // Error because x has an array type namely (string|number)[] //// [argumentExpressionContextualTyping.js] -var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { - if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { - if (ar || !(i in from)) { - if (!ar) ar = Array.prototype.slice.call(from, 0, i); - ar[i] = from[i]; - } - } - return to.concat(ar || Array.prototype.slice.call(from)); -}; // In a typed function call, argument expressions are contextually typed by their corresponding parameter types. -function foo(_a) { - var _b = _a.x, a = _b[0], b = _b[1], _c = _a.y, c = _c.c, d = _c.d, e = _c.e; -} -function bar(_a) { - var _b = _a.x, a = _b[0], _c = _b[1], b = _c === void 0 ? 10 : _c, _d = _a.y, c = _d.c, d = _d.d, _e = _d.e, e = _e === void 0 ? { f: 1 } : _e; -} +function foo({ x: [a, b], y: { c, d, e } }) { } +function bar({ x: [a, b = 10], y: { c, d, e = { f: 1 } } }) { } function baz(x) { } var o = { x: ["string", 1], y: { c: true, d: "world", e: 3 } }; var o1 = { x: ["string", 1], y: { c: true, d: "world", e: 3 } }; @@ -47,5 +34,5 @@ var tuple = ["string", 1, true]; baz(tuple); baz(["string", 1, true]); baz(array); // Error -baz(__spreadArray(["string", 1, true], array, true)); // Error +baz(["string", 1, true, ...array]); // Error foo(o); // Error because x has an array type namely (string|number)[] diff --git a/tests/baselines/reference/argumentsAsPropertyName.js b/tests/baselines/reference/argumentsAsPropertyName.js index 2b65bf195afd0..165050408ea2b 100644 --- a/tests/baselines/reference/argumentsAsPropertyName.js +++ b/tests/baselines/reference/argumentsAsPropertyName.js @@ -19,13 +19,10 @@ function myFunction(myType: MyType) { //// [argumentsAsPropertyName.js] function myFunction(myType) { - var _loop_1 = function (i) { + for (let i = 0; i < 10; i++) { use(myType.arguments[i]); // create closure so that tsc will turn loop body into function - var x = 5; + const x = 5; [1, 2, 3].forEach(function (j) { use(x); }); - }; - for (var i = 0; i < 10; i++) { - _loop_1(i); } } diff --git a/tests/baselines/reference/argumentsAsPropertyName2.js b/tests/baselines/reference/argumentsAsPropertyName2.js index 29243412d7419..46d94dbf3a2dd 100644 --- a/tests/baselines/reference/argumentsAsPropertyName2.js +++ b/tests/baselines/reference/argumentsAsPropertyName2.js @@ -17,15 +17,11 @@ function foo() { //// [argumentsAsPropertyName2.js] // target: es5 function foo() { - var _loop_1 = function (x) { - var i; + for (let x = 0; x < 1; ++x) { + let i; [].forEach(function () { i; }); ({ arguments: 0 }); - ({ arguments: arguments_1 }); - ({ arguments: arguments_1 }); - }; - var arguments_1 = arguments; - for (var x = 0; x < 1; ++x) { - _loop_1(x); + ({ arguments }); + ({ arguments: arguments }); } } diff --git a/tests/baselines/reference/argumentsPropertyNameInJsMode1.js b/tests/baselines/reference/argumentsPropertyNameInJsMode1.js index e01cb9303c2d3..d3d9b4dcf8d67 100644 --- a/tests/baselines/reference/argumentsPropertyNameInJsMode1.js +++ b/tests/baselines/reference/argumentsPropertyNameInJsMode1.js @@ -13,11 +13,11 @@ f2(1, 2, 3); //// [a.js] -var foo = { - f1: function (params) { } +const foo = { + f1: (params) => { } }; function f2(x) { - foo.f1({ x: x, arguments: [] }); + foo.f1({ x, arguments: [] }); } f2(1, 2, 3); diff --git a/tests/baselines/reference/argumentsUsedInClassFieldInitializerOrStaticInitializationBlock.js b/tests/baselines/reference/argumentsUsedInClassFieldInitializerOrStaticInitializationBlock.js index 29bf050f4f38a..23f2ad2259a4c 100644 --- a/tests/baselines/reference/argumentsUsedInClassFieldInitializerOrStaticInitializationBlock.js +++ b/tests/baselines/reference/argumentsUsedInClassFieldInitializerOrStaticInitializationBlock.js @@ -117,59 +117,53 @@ function D7() { //// [argumentsUsedInClassFieldInitializerOrStaticInitializationBlock.js] function A() { - return /** @class */ (function () { - function T() { + return class T { + constructor() { this.a = arguments; } - return T; - }()); + }; } function A1() { - return new /** @class */ (function () { - function T() { + return new class T { + constructor() { this.a = arguments; } - return T; - }()); + }; } function B() { - return /** @class */ (function () { - function T() { + return class T { + constructor() { this.a = { b: arguments }; } - return T; - }()); + }; } function B1() { - return new /** @class */ (function () { - function T() { + return new class T { + constructor() { this.a = { b: arguments }; } - return T; - }()); + }; } function C() { - return /** @class */ (function () { - function T() { + return class T { + constructor() { this.a = function () { arguments; }; } - return T; - }()); + }; } function D() { - return /** @class */ (function () { - function T() { - this.a = function () { return arguments; }; // should error + return class T { + constructor() { + this.a = () => arguments; // should error } - return T; - }()); + }; } function D1() { - return /** @class */ (function () { - function T() { - this.a = function () { + return class T { + constructor() { + this.a = () => { arguments; // should error - var b = function () { + const b = () => { return arguments; // should error }; function f() { @@ -177,41 +171,32 @@ function D1() { } }; } - return T; - }()); + }; } function D2() { - return /** @class */ (function () { - function class_1() { + return class { + constructor() { arguments; // ok } - Object.defineProperty(class_1.prototype, "foo", { - get: function () { - return arguments; // ok - }, - set: function (foo) { - arguments; // ok - }, - enumerable: false, - configurable: true - }); - class_1.prototype.bar = function () { + get foo() { + return arguments; // ok + } + set foo(foo) { + arguments; // ok + } + bar() { arguments; // ok - }; - class_1.prototype[Symbol.iterator] = function () { + } + [Symbol.iterator]() { arguments; // ok - }; - return class_1; - }()); + } + }; } function D3() { var _a; - return _a = /** @class */ (function () { - function T() { - } - return T; - }()), - (function () { + return _a = class T { + }, + (() => { arguments; // should error while (1) { arguments; // should error @@ -221,12 +206,9 @@ function D3() { } function D4() { var _a; - return _a = /** @class */ (function () { - function T() { - } - return T; - }()), - (function () { + return _a = class T { + }, + (() => { function f() { arguments; // ok } @@ -234,30 +216,22 @@ function D4() { _a; } function D5() { - return /** @class */ (function () { - function T() { - this.a = (function () { return arguments; })(); // should error + return class T { + constructor() { + this.a = (() => { return arguments; })(); // should error } - return T; - }()); + }; } function D6() { - return /** @class */ (function () { - function T() { - this.a = function (x) { - if (x === void 0) { x = arguments; } - }; // should error + return class T { + constructor() { + this.a = (x = arguments) => { }; // should error } - return T; - }()); + }; } function D7() { - return /** @class */ (function () { - function T() { + return class T { + a(x = arguments) { } - T.prototype.a = function (x) { - if (x === void 0) { x = arguments; } - }; - return T; - }()); + }; } diff --git a/tests/baselines/reference/argumentsUsedInObjectLiteralProperty.js b/tests/baselines/reference/argumentsUsedInObjectLiteralProperty.js index 8567411cce3bb..010d4d4477e7a 100644 --- a/tests/baselines/reference/argumentsUsedInObjectLiteralProperty.js +++ b/tests/baselines/reference/argumentsUsedInObjectLiteralProperty.js @@ -10,13 +10,10 @@ class A { } //// [argumentsUsedInObjectLiteralProperty.js] -var A = /** @class */ (function () { - function A() { - } - A.createSelectableViewModel = function (initialState, selectedValue) { +class A { + static createSelectableViewModel(initialState, selectedValue) { return { selectedValue: arguments.length }; - }; - return A; -}()); + } +} diff --git a/tests/baselines/reference/arithAssignTyping.js b/tests/baselines/reference/arithAssignTyping.js index 66785837bc56d..99261d44127b9 100644 --- a/tests/baselines/reference/arithAssignTyping.js +++ b/tests/baselines/reference/arithAssignTyping.js @@ -17,11 +17,8 @@ f >>>= 1; // error f ^= 1; // error //// [arithAssignTyping.js] -var f = /** @class */ (function () { - function f() { - } - return f; -}()); +class f { +} f += ''; // error f += 1; // error f -= 1; // error diff --git a/tests/baselines/reference/arithmeticOperatorWithTypeParameter.js b/tests/baselines/reference/arithmeticOperatorWithTypeParameter.js index b25225c6e579a..7fbaca72e110f 100644 --- a/tests/baselines/reference/arithmeticOperatorWithTypeParameter.js +++ b/tests/baselines/reference/arithmeticOperatorWithTypeParameter.js @@ -134,11 +134,11 @@ function foo(t: T) { //// [arithmeticOperatorWithTypeParameter.js] // type parameter type is not valid for arithmetic operand function foo(t) { - var a; - var b; - var c; - var d; - var e; + let a; + let b; + let c; + let d; + let e; var r1a1 = a * t; var r1a2 = a / t; var r1a3 = a % t; diff --git a/tests/baselines/reference/arityAndOrderCompatibility01.errors.txt b/tests/baselines/reference/arityAndOrderCompatibility01.errors.txt index 188e9e1160afc..5e19ee4881f40 100644 --- a/tests/baselines/reference/arityAndOrderCompatibility01.errors.txt +++ b/tests/baselines/reference/arityAndOrderCompatibility01.errors.txt @@ -1,5 +1,5 @@ arityAndOrderCompatibility01.ts(15,12): error TS2493: Tuple type '[string, number]' of length '2' has no element at index '2'. -arityAndOrderCompatibility01.ts(17,5): error TS2461: Type '{ 0: string; 1: number; length: 2; }' is not an array type. +arityAndOrderCompatibility01.ts(17,5): error TS2488: Type '{ 0: string; 1: number; length: 2; }' must have a '[Symbol.iterator]()' method that returns an iterator. arityAndOrderCompatibility01.ts(18,5): error TS2322: Type '[string, number]' is not assignable to type '[number, number, number]'. Source has 2 element(s) but target requires 3. arityAndOrderCompatibility01.ts(19,5): error TS2741: Property '2' is missing in type 'StrNum' but required in type '[number, number, number]'. @@ -50,7 +50,7 @@ arityAndOrderCompatibility01.ts(32,5): error TS2322: Type '{ 0: string; 1: numbe var [d, e, f] = y; var [g, h, i] = z; ~~~~~~~~~ -!!! error TS2461: Type '{ 0: string; 1: number; length: 2; }' is not an array type. +!!! error TS2488: Type '{ 0: string; 1: number; length: 2; }' must have a '[Symbol.iterator]()' method that returns an iterator. var j1: [number, number, number] = x; ~~ !!! error TS2322: Type '[string, number]' is not assignable to type '[number, number, number]'. diff --git a/tests/baselines/reference/arityAndOrderCompatibility01.js b/tests/baselines/reference/arityAndOrderCompatibility01.js index 4226f80656b02..5d83b413c9373 100644 --- a/tests/baselines/reference/arityAndOrderCompatibility01.js +++ b/tests/baselines/reference/arityAndOrderCompatibility01.js @@ -39,9 +39,9 @@ var o3: [string, number] = y; //// [arityAndOrderCompatibility01.js] -var a = x[0], b = x[1], c = x[2]; -var d = y[0], e = y[1], f = y[2]; -var g = z[0], h = z[1], i = z[2]; +var [a, b, c] = x; +var [d, e, f] = y; +var [g, h, i] = z; var j1 = x; var j2 = y; var j3 = z; diff --git a/tests/baselines/reference/arityErrorRelatedSpanBindingPattern.js b/tests/baselines/reference/arityErrorRelatedSpanBindingPattern.js index 6d4adebd8469f..61e156447ea13 100644 --- a/tests/baselines/reference/arityErrorRelatedSpanBindingPattern.js +++ b/tests/baselines/reference/arityErrorRelatedSpanBindingPattern.js @@ -11,11 +11,7 @@ bar("", 0); //// [arityErrorRelatedSpanBindingPattern.js] -function foo(a, b, _a) { - var c = _a.c; -} -function bar(a, b, _a) { - var c = _a[0]; -} +function foo(a, b, { c }) { } +function bar(a, b, [c]) { } foo("", 0); bar("", 0); diff --git a/tests/baselines/reference/arrayAssignmentPatternWithAny.js b/tests/baselines/reference/arrayAssignmentPatternWithAny.js index 5160c81de9b09..0476548d87bc6 100644 --- a/tests/baselines/reference/arrayAssignmentPatternWithAny.js +++ b/tests/baselines/reference/arrayAssignmentPatternWithAny.js @@ -8,4 +8,4 @@ var x: string; //// [arrayAssignmentPatternWithAny.js] var a; var x; -x = a[0]; +[x] = a; diff --git a/tests/baselines/reference/arrayAssignmentTest1.js b/tests/baselines/reference/arrayAssignmentTest1.js index 0d2051b310bef..6843dc672ba48 100644 --- a/tests/baselines/reference/arrayAssignmentTest1.js +++ b/tests/baselines/reference/arrayAssignmentTest1.js @@ -88,42 +88,16 @@ arr_any = c3; // should be an error - is arr_any = i1; // should be an error - is //// [arrayAssignmentTest1.js] -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -var C1 = /** @class */ (function () { - function C1() { - } - C1.prototype.IM1 = function () { return null; }; - C1.prototype.C1M1 = function () { return null; }; - return C1; -}()); -var C2 = /** @class */ (function (_super) { - __extends(C2, _super); - function C2() { - return _super !== null && _super.apply(this, arguments) || this; - } - C2.prototype.C2M1 = function () { return null; }; - return C2; -}(C1)); -var C3 = /** @class */ (function () { - function C3() { - } - C3.prototype.CM3M1 = function () { return 3; }; - return C3; -}()); +class C1 { + IM1() { return null; } + C1M1() { return null; } +} +class C2 extends C1 { + C2M1() { return null; } +} +class C3 { + CM3M1() { return 3; } +} /* This behaves unexpectedly with the following types: diff --git a/tests/baselines/reference/arrayAssignmentTest2.js b/tests/baselines/reference/arrayAssignmentTest2.js index caeeb10d16c23..432c43dd6870c 100644 --- a/tests/baselines/reference/arrayAssignmentTest2.js +++ b/tests/baselines/reference/arrayAssignmentTest2.js @@ -62,42 +62,16 @@ arr_any = i1; // should be an error - is //// [arrayAssignmentTest2.js] -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -var C1 = /** @class */ (function () { - function C1() { - } - C1.prototype.IM1 = function () { return null; }; - C1.prototype.C1M1 = function () { return null; }; - return C1; -}()); -var C2 = /** @class */ (function (_super) { - __extends(C2, _super); - function C2() { - return _super !== null && _super.apply(this, arguments) || this; - } - C2.prototype.C2M1 = function () { return null; }; - return C2; -}(C1)); -var C3 = /** @class */ (function () { - function C3() { - } - C3.prototype.CM3M1 = function () { return 3; }; - return C3; -}()); +class C1 { + IM1() { return null; } + C1M1() { return null; } +} +class C2 extends C1 { + C2M1() { return null; } +} +class C3 { + CM3M1() { return 3; } +} /* This behaves unexpectedly with the following types: diff --git a/tests/baselines/reference/arrayAssignmentTest3.js b/tests/baselines/reference/arrayAssignmentTest3.js index 1db156b9707dc..35e14b292ed9b 100644 --- a/tests/baselines/reference/arrayAssignmentTest3.js +++ b/tests/baselines/reference/arrayAssignmentTest3.js @@ -20,16 +20,12 @@ var xx = new a(null, 7, new B()); // The following gives no error // Michal saw no error if he used number instead of B, // but I do... -var B = /** @class */ (function () { - function B() { - } - return B; -}()); -var a = /** @class */ (function () { - function a(x, y, z) { +class B { +} +class a { + constructor(x, y, z) { this.x = x; this.y = y; } - return a; -}()); +} var xx = new a(null, 7, new B()); diff --git a/tests/baselines/reference/arrayAssignmentTest4.js b/tests/baselines/reference/arrayAssignmentTest4.js index 1a568ee4fef60..66c701032999d 100644 --- a/tests/baselines/reference/arrayAssignmentTest4.js +++ b/tests/baselines/reference/arrayAssignmentTest4.js @@ -27,12 +27,9 @@ arr_any = c3; // should be an error - is //// [arrayAssignmentTest4.js] -var C3 = /** @class */ (function () { - function C3() { - } - C3.prototype.CM3M1 = function () { return 3; }; - return C3; -}()); +class C3 { + CM3M1() { return 3; } +} /* This behaves unexpectedly with teh following types: diff --git a/tests/baselines/reference/arrayAssignmentTest5.js b/tests/baselines/reference/arrayAssignmentTest5.js index af4f52ed5a192..e1006e91b81b6 100644 --- a/tests/baselines/reference/arrayAssignmentTest5.js +++ b/tests/baselines/reference/arrayAssignmentTest5.js @@ -38,20 +38,17 @@ namespace Test { //// [arrayAssignmentTest5.js] var Test; (function (Test) { - var Bug = /** @class */ (function () { - function Bug() { - } - Bug.prototype.onEnter = function (line, state, offset) { + class Bug { + onEnter(line, state, offset) { var lineTokens = this.tokenize(line, state, true); var tokens = lineTokens.tokens; if (tokens.length === 0) { return this.onEnter(line, tokens, offset); // <== this should produce an error since onEnter can not be called with (string, IStateToken[], offset) } - }; - Bug.prototype.tokenize = function (line, state, includeStates) { + } + tokenize(line, state, includeStates) { return null; - }; - return Bug; - }()); + } + } Test.Bug = Bug; })(Test || (Test = {})); diff --git a/tests/baselines/reference/arrayAssignmentTest6.js b/tests/baselines/reference/arrayAssignmentTest6.js index f00581c93f8e3..7a521047fc2ce 100644 --- a/tests/baselines/reference/arrayAssignmentTest6.js +++ b/tests/baselines/reference/arrayAssignmentTest6.js @@ -25,13 +25,10 @@ namespace Test { //// [arrayAssignmentTest6.js] var Test; (function (Test) { - var Bug = /** @class */ (function () { - function Bug() { - } - Bug.prototype.tokenize = function (line, tokens, includeStates) { + class Bug { + tokenize(line, tokens, includeStates) { return null; - }; - return Bug; - }()); + } + } Test.Bug = Bug; })(Test || (Test = {})); diff --git a/tests/baselines/reference/arrayBestCommonTypes.js b/tests/baselines/reference/arrayBestCommonTypes.js index e54bf00b8779d..4bba7b000efc6 100644 --- a/tests/baselines/reference/arrayBestCommonTypes.js +++ b/tests/baselines/reference/arrayBestCommonTypes.js @@ -110,48 +110,17 @@ namespace NonEmptyTypes { //// [arrayBestCommonTypes.js] -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); var EmptyTypes; (function (EmptyTypes) { - var base = /** @class */ (function () { - function base() { - } - return base; - }()); - var base2 = /** @class */ (function () { - function base2() { - } - return base2; - }()); - var derived = /** @class */ (function (_super) { - __extends(derived, _super); - function derived() { - return _super !== null && _super.apply(this, arguments) || this; - } - return derived; - }(base)); - var f = /** @class */ (function () { - function f() { - } - f.prototype.voidIfAny = function (x, y) { - if (y === void 0) { y = false; } - return null; - }; - f.prototype.x = function () { + class base { + } + class base2 { + } + class derived extends base { + } + class f { + voidIfAny(x, y = false) { return null; } + x() { (this.voidIfAny([4, 2][0])); (this.voidIfAny([4, 2, undefined][0])); (this.voidIfAny([undefined, 2, 4][0])); @@ -180,37 +149,20 @@ var EmptyTypes; var b2 = [base2Obj, baseObj, ifaceObj]; var b3 = [baseObj, ifaceObj, base2Obj]; var b4 = [ifaceObj, baseObj, base2Obj]; - }; - return f; - }()); + } + } })(EmptyTypes || (EmptyTypes = {})); var NonEmptyTypes; (function (NonEmptyTypes) { - var base = /** @class */ (function () { - function base() { - } - return base; - }()); - var base2 = /** @class */ (function () { - function base2() { - } - return base2; - }()); - var derived = /** @class */ (function (_super) { - __extends(derived, _super); - function derived() { - return _super !== null && _super.apply(this, arguments) || this; - } - return derived; - }(base)); - var f = /** @class */ (function () { - function f() { - } - f.prototype.voidIfAny = function (x, y) { - if (y === void 0) { y = false; } - return null; - }; - f.prototype.x = function () { + class base { + } + class base2 { + } + class derived extends base { + } + class f { + voidIfAny(x, y = false) { return null; } + x() { (this.voidIfAny([4, 2][0])); (this.voidIfAny([4, 2, undefined][0])); (this.voidIfAny([undefined, 2, 4][0])); @@ -239,7 +191,6 @@ var NonEmptyTypes; var b2 = [base2Obj, baseObj, ifaceObj]; var b3 = [baseObj, ifaceObj, base2Obj]; var b4 = [ifaceObj, baseObj, base2Obj]; - }; - return f; - }()); + } + } })(NonEmptyTypes || (NonEmptyTypes = {})); diff --git a/tests/baselines/reference/arrayConcatMap.js b/tests/baselines/reference/arrayConcatMap.js index 7b4f312d07c39..fdd4f7eb618d4 100644 --- a/tests/baselines/reference/arrayConcatMap.js +++ b/tests/baselines/reference/arrayConcatMap.js @@ -6,4 +6,4 @@ var x = [].concat([{ a: 1 }], [{ a: 2 }]) //// [arrayConcatMap.js] var x = [].concat([{ a: 1 }], [{ a: 2 }]) - .map(function (b) { return b.a; }); + .map(b => b.a); diff --git a/tests/baselines/reference/arrayDestructuringInSwitch1.js b/tests/baselines/reference/arrayDestructuringInSwitch1.js index 4608b0a569c2f..4ae098b16c468 100644 --- a/tests/baselines/reference/arrayDestructuringInSwitch1.js +++ b/tests/baselines/reference/arrayDestructuringInSwitch1.js @@ -24,21 +24,18 @@ export function evaluate(expression: Expression): boolean { } //// [arrayDestructuringInSwitch1.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.evaluate = evaluate; -function evaluate(expression) { +export function evaluate(expression) { if (Array.isArray(expression)) { - var operator = expression[0], operands = expression.slice(1); + const [operator, ...operands] = expression; switch (operator) { case 'and': { - return operands.every(function (child) { return evaluate(child); }); + return operands.every((child) => evaluate(child)); } case 'not': { return !evaluate(operands[0]); } default: { - throw new Error("".concat(operator, " is not a supported operator")); + throw new Error(`${operator} is not a supported operator`); } } } diff --git a/tests/baselines/reference/arrayDestructuringInSwitch2.js b/tests/baselines/reference/arrayDestructuringInSwitch2.js index 4da13269936fa..b603aec10bff6 100644 --- a/tests/baselines/reference/arrayDestructuringInSwitch2.js +++ b/tests/baselines/reference/arrayDestructuringInSwitch2.js @@ -18,14 +18,14 @@ function foo(x: X): 1 { //// [arrayDestructuringInSwitch2.js] function foo(x) { - var kind = x.kind, a = x.a; + const { kind, a } = x; switch (kind) { case "a": return a[0]; case "b": return 1; default: - var n = a[0]; + const [n] = a; return a; } } diff --git a/tests/baselines/reference/arrayEvery.js b/tests/baselines/reference/arrayEvery.js index 04eece1b8d175..f85e0e4291bd1 100644 --- a/tests/baselines/reference/arrayEvery.js +++ b/tests/baselines/reference/arrayEvery.js @@ -11,8 +11,8 @@ if (foo.every(isString)) { //// [arrayEvery.js] -var foo = ['aaa']; -var isString = function (x) { return typeof x === 'string'; }; +const foo = ['aaa']; +const isString = (x) => typeof x === 'string'; if (foo.every(isString)) { foo[0].slice(0); } diff --git a/tests/baselines/reference/arrayFilter.js b/tests/baselines/reference/arrayFilter.js index c53f2e82e1bb0..b9aeed39312d2 100644 --- a/tests/baselines/reference/arrayFilter.js +++ b/tests/baselines/reference/arrayFilter.js @@ -15,4 +15,4 @@ var foo = [ { name: null }, { name: 'baz' } ]; -foo.filter(function (x) { return x.name; }); //should accepted all possible types not only boolean! +foo.filter(x => x.name); //should accepted all possible types not only boolean! diff --git a/tests/baselines/reference/arrayFind.js b/tests/baselines/reference/arrayFind.js index 8d460074302b5..c5f4756e96f9b 100644 --- a/tests/baselines/reference/arrayFind.js +++ b/tests/baselines/reference/arrayFind.js @@ -18,7 +18,7 @@ const readonlyFoundNumber: number | undefined = readonlyArrayOfStringsNumbersAnd function isNumber(x) { return typeof x === "number"; } -var arrayOfStringsNumbersAndBooleans = ["string", false, 0, "strung", 1, true]; -var foundNumber = arrayOfStringsNumbersAndBooleans.find(isNumber); -var readonlyArrayOfStringsNumbersAndBooleans = arrayOfStringsNumbersAndBooleans; -var readonlyFoundNumber = readonlyArrayOfStringsNumbersAndBooleans.find(isNumber); +const arrayOfStringsNumbersAndBooleans = ["string", false, 0, "strung", 1, true]; +const foundNumber = arrayOfStringsNumbersAndBooleans.find(isNumber); +const readonlyArrayOfStringsNumbersAndBooleans = arrayOfStringsNumbersAndBooleans; +const readonlyFoundNumber = readonlyArrayOfStringsNumbersAndBooleans.find(isNumber); diff --git a/tests/baselines/reference/arrayFlatMap.js b/tests/baselines/reference/arrayFlatMap.js index cf0bcd800034f..1143092f9e3ae 100644 --- a/tests/baselines/reference/arrayFlatMap.js +++ b/tests/baselines/reference/arrayFlatMap.js @@ -8,7 +8,7 @@ readonlyArray.flatMap((): ReadonlyArray => []); // ok //// [arrayFlatMap.js] -var array = []; -var readonlyArray = []; -array.flatMap(function () { return []; }); // ok -readonlyArray.flatMap(function () { return []; }); // ok +const array = []; +const readonlyArray = []; +array.flatMap(() => []); // ok +readonlyArray.flatMap(() => []); // ok diff --git a/tests/baselines/reference/arrayFrom.js b/tests/baselines/reference/arrayFrom.js index 13609e4b1692a..477082fedc961 100644 --- a/tests/baselines/reference/arrayFrom.js +++ b/tests/baselines/reference/arrayFrom.js @@ -41,34 +41,22 @@ function getEither (in1: Iterable, in2: ArrayLike) { //// [arrayFrom.js] // Tests fix for #20432, ensures Array.from accepts all valid inputs // Also tests for #19682 -var inputA = []; -var inputB = []; -var inputALike = { length: 0 }; -var inputARand = getEither(inputA, inputALike); -var inputASet = new Set(); -var result1 = Array.from(inputA); -var result2 = Array.from(inputA.values()); -var result3 = Array.from(inputA.values()); // expect error -var result4 = Array.from(inputB, function (_a) { - var b = _a.b; - return ({ a: b }); -}); -var result5 = Array.from(inputALike); -var result6 = Array.from(inputALike); // expect error -var result7 = Array.from(inputALike, function (_a) { - var a = _a.a; - return ({ b: a }); -}); -var result8 = Array.from(inputARand); -var result9 = Array.from(inputARand, function (_a) { - var a = _a.a; - return ({ b: a }); -}); -var result10 = Array.from(new Set()); -var result11 = Array.from(inputASet, function (_a) { - var a = _a.a; - return ({ b: a }); -}); +const inputA = []; +const inputB = []; +const inputALike = { length: 0 }; +const inputARand = getEither(inputA, inputALike); +const inputASet = new Set(); +const result1 = Array.from(inputA); +const result2 = Array.from(inputA.values()); +const result3 = Array.from(inputA.values()); // expect error +const result4 = Array.from(inputB, ({ b }) => ({ a: b })); +const result5 = Array.from(inputALike); +const result6 = Array.from(inputALike); // expect error +const result7 = Array.from(inputALike, ({ a }) => ({ b: a })); +const result8 = Array.from(inputARand); +const result9 = Array.from(inputARand, ({ a }) => ({ b: a })); +const result10 = Array.from(new Set()); +const result11 = Array.from(inputASet, ({ a }) => ({ b: a })); // if this is written inline, the compiler seems to infer // the ?: as always taking the false branch, narrowing to ArrayLike, // even when the type is written as : Iterable|ArrayLike diff --git a/tests/baselines/reference/arrayIndexWithArrayFails.js b/tests/baselines/reference/arrayIndexWithArrayFails.js index 312b1b790c588..3a29bc51b5753 100644 --- a/tests/baselines/reference/arrayIndexWithArrayFails.js +++ b/tests/baselines/reference/arrayIndexWithArrayFails.js @@ -6,4 +6,4 @@ declare const arr2: number[]; const j = arr2[arr1[0]]; // should error //// [arrayIndexWithArrayFails.js] -var j = arr2[arr1[0]]; // should error +const j = arr2[arr1[0]]; // should error diff --git a/tests/baselines/reference/arrayLiteralComments.js b/tests/baselines/reference/arrayLiteralComments.js index 4d2d03e07f18f..53363bac2d251 100644 --- a/tests/baselines/reference/arrayLiteralComments.js +++ b/tests/baselines/reference/arrayLiteralComments.js @@ -20,7 +20,7 @@ var testArrayWithFunc = [ var testArrayWithFunc = [ // Function comment function () { - var x = 1; + let x = 1; }, // String comment '1', diff --git a/tests/baselines/reference/arrayLiteralContextualType.js b/tests/baselines/reference/arrayLiteralContextualType.js index 63c236537589e..ed1ffb8559192 100644 --- a/tests/baselines/reference/arrayLiteralContextualType.js +++ b/tests/baselines/reference/arrayLiteralContextualType.js @@ -32,20 +32,18 @@ foo(arr); // ok because arr is Array not {}[] bar(arr); // ok because arr is Array not {}[] //// [arrayLiteralContextualType.js] -var Giraffe = /** @class */ (function () { - function Giraffe() { +class Giraffe { + constructor() { this.name = "Giraffe"; this.neckLength = "3m"; } - return Giraffe; -}()); -var Elephant = /** @class */ (function () { - function Elephant() { +} +class Elephant { + constructor() { this.name = "Elephant"; this.trunkDiameter = "20cm"; } - return Elephant; -}()); +} function foo(animals) { } function bar(animals) { } foo([ diff --git a/tests/baselines/reference/arrayLiteralExpressionContextualTyping.js b/tests/baselines/reference/arrayLiteralExpressionContextualTyping.js index acba52443a9b4..b88916841bd55 100644 --- a/tests/baselines/reference/arrayLiteralExpressionContextualTyping.js +++ b/tests/baselines/reference/arrayLiteralExpressionContextualTyping.js @@ -18,15 +18,6 @@ var spr2:[number, number, number] = [1, 2, 3, ...tup]; // Error //// [arrayLiteralExpressionContextualTyping.js] -var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { - if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { - if (ar || !(i in from)) { - if (!ar) ar = Array.prototype.slice.call(from, 0, i); - ar[i] = from[i]; - } - } - return to.concat(ar || Array.prototype.slice.call(from)); -}; // In a contextually typed array literal expression containing no spread elements, an element expression at index N is contextually typed by // the type of the property with the numeric name N in the contextual type, if any, or otherwise // the numeric index type of the contextual type, if any. @@ -37,6 +28,6 @@ var tup1 = [1, 2, 3, "string"]; var tup2 = [1, 2, 3, "string"]; // Error // In a contextually typed array literal expression containing one or more spread elements, // an element expression at index N is contextually typed by the numeric index type of the contextual type, if any. -var spr = __spreadArray([1, 2, 3], array, true); -var spr1 = __spreadArray([1, 2, 3], tup, true); -var spr2 = __spreadArray([1, 2, 3], tup, true); // Error +var spr = [1, 2, 3, ...array]; +var spr1 = [1, 2, 3, ...tup]; +var spr2 = [1, 2, 3, ...tup]; // Error diff --git a/tests/baselines/reference/arrayLiteralInNonVarArgParameter.js b/tests/baselines/reference/arrayLiteralInNonVarArgParameter.js index 83321fddac144..aa2d281e03e72 100644 --- a/tests/baselines/reference/arrayLiteralInNonVarArgParameter.js +++ b/tests/baselines/reference/arrayLiteralInNonVarArgParameter.js @@ -7,10 +7,5 @@ panic([], 'one', 'two'); //// [arrayLiteralInNonVarArgParameter.js] -function panic(val) { - var opt = []; - for (var _i = 1; _i < arguments.length; _i++) { - opt[_i - 1] = arguments[_i]; - } -} +function panic(val, ...opt) { } panic([], 'one', 'two'); diff --git a/tests/baselines/reference/arrayLiteralSpread.js b/tests/baselines/reference/arrayLiteralSpread.js index a0ea9ce127f74..5efdb6c45d19b 100644 --- a/tests/baselines/reference/arrayLiteralSpread.js +++ b/tests/baselines/reference/arrayLiteralSpread.js @@ -26,32 +26,23 @@ function f2() { //// [arrayLiteralSpread.js] -var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { - if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { - if (ar || !(i in from)) { - if (!ar) ar = Array.prototype.slice.call(from, 0, i); - ar[i] = from[i]; - } - } - return to.concat(ar || Array.prototype.slice.call(from)); -}; function f0() { var a = [1, 2, 3]; - var a1 = __spreadArray([], a, true); - var a2 = __spreadArray([1], a, true); - var a3 = __spreadArray([1, 2], a, true); - var a4 = __spreadArray(__spreadArray([], a, true), [1], false); - var a5 = __spreadArray(__spreadArray([], a, true), [1, 2], false); - var a6 = __spreadArray(__spreadArray([1, 2], a, true), [1, 2], false); - var a7 = __spreadArray(__spreadArray(__spreadArray([1], a, true), [2], false), a, true); - var a8 = __spreadArray(__spreadArray(__spreadArray([], a, true), a, true), a, true); + var a1 = [...a]; + var a2 = [1, ...a]; + var a3 = [1, 2, ...a]; + var a4 = [...a, 1]; + var a5 = [...a, 1, 2]; + var a6 = [1, 2, ...a, 1, 2]; + var a7 = [1, ...a, 2, ...a]; + var a8 = [...a, ...a, ...a]; } function f1() { var a = [1, 2, 3]; - var b = __spreadArray(__spreadArray(["hello"], a, true), [true], false); + var b = ["hello", ...a, true]; var b; } function f2() { - var a = []; - var b = [5]; + var a = [...[...[...[...[...[]]]]]]; + var b = [...[...[...[...[...[5]]]]]]; } diff --git a/tests/baselines/reference/arrayLiteralSpreadES5iterable.js b/tests/baselines/reference/arrayLiteralSpreadES5iterable.js index 3f16bdfbeebe4..bf3a64e62817b 100644 --- a/tests/baselines/reference/arrayLiteralSpreadES5iterable.js +++ b/tests/baselines/reference/arrayLiteralSpreadES5iterable.js @@ -26,48 +26,23 @@ function f2() { //// [arrayLiteralSpreadES5iterable.js] -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; -var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { - if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { - if (ar || !(i in from)) { - if (!ar) ar = Array.prototype.slice.call(from, 0, i); - ar[i] = from[i]; - } - } - return to.concat(ar || Array.prototype.slice.call(from)); -}; function f0() { var a = [1, 2, 3]; - var a1 = __spreadArray([], __read(a), false); - var a2 = __spreadArray([1], __read(a), false); - var a3 = __spreadArray([1, 2], __read(a), false); - var a4 = __spreadArray(__spreadArray([], __read(a), false), [1], false); - var a5 = __spreadArray(__spreadArray([], __read(a), false), [1, 2], false); - var a6 = __spreadArray(__spreadArray([1, 2], __read(a), false), [1, 2], false); - var a7 = __spreadArray(__spreadArray(__spreadArray([1], __read(a), false), [2], false), __read(a), false); - var a8 = __spreadArray(__spreadArray(__spreadArray([], __read(a), false), __read(a), false), __read(a), false); + var a1 = [...a]; + var a2 = [1, ...a]; + var a3 = [1, 2, ...a]; + var a4 = [...a, 1]; + var a5 = [...a, 1, 2]; + var a6 = [1, 2, ...a, 1, 2]; + var a7 = [1, ...a, 2, ...a]; + var a8 = [...a, ...a, ...a]; } function f1() { var a = [1, 2, 3]; - var b = __spreadArray(__spreadArray(["hello"], __read(a), false), [true], false); + var b = ["hello", ...a, true]; var b; } function f2() { - var a = []; - var b = [5]; + var a = [...[...[...[...[...[]]]]]]; + var b = [...[...[...[...[...[5]]]]]]; } diff --git a/tests/baselines/reference/arrayLiteralTypeInference.js b/tests/baselines/reference/arrayLiteralTypeInference.js index 9d27f4c561fa3..9e0bd09c70c32 100644 --- a/tests/baselines/reference/arrayLiteralTypeInference.js +++ b/tests/baselines/reference/arrayLiteralTypeInference.js @@ -54,40 +54,12 @@ var z3: { id: number }[] = //// [arrayLiteralTypeInference.js] -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -var Action = /** @class */ (function () { - function Action() { - } - return Action; -}()); -var ActionA = /** @class */ (function (_super) { - __extends(ActionA, _super); - function ActionA() { - return _super !== null && _super.apply(this, arguments) || this; - } - return ActionA; -}(Action)); -var ActionB = /** @class */ (function (_super) { - __extends(ActionB, _super); - function ActionB() { - return _super !== null && _super.apply(this, arguments) || this; - } - return ActionB; -}(Action)); +class Action { +} +class ActionA extends Action { +} +class ActionB extends Action { +} var x1 = [ { id: 2, trueness: false }, { id: 3, name: "three" } diff --git a/tests/baselines/reference/arrayLiteralWithMultipleBestCommonTypes.js b/tests/baselines/reference/arrayLiteralWithMultipleBestCommonTypes.js index a1ff23200df6c..9790866ccf0f9 100644 --- a/tests/baselines/reference/arrayLiteralWithMultipleBestCommonTypes.js +++ b/tests/baselines/reference/arrayLiteralWithMultipleBestCommonTypes.js @@ -25,7 +25,7 @@ var c; var as = [a, b]; // { x: number; y?: number };[] var bs = [b, a]; // { x: number; z?: number };[] var cs = [a, b, c]; // { x: number; y?: number };[] -var ds = [function (x) { return 1; }, function (x) { return 2; }]; // { (x:Object) => number }[] -var es = [function (x) { return 2; }, function (x) { return 1; }]; // { (x:string) => number }[] -var fs = [function (a) { return 1; }, function (b) { return 2; }]; // (a: { x: number; y?: number }) => number[] -var gs = [function (b) { return 2; }, function (a) { return 1; }]; // (b: { x: number; z?: number }) => number[] +var ds = [(x) => 1, (x) => 2]; // { (x:Object) => number }[] +var es = [(x) => 2, (x) => 1]; // { (x:string) => number }[] +var fs = [(a) => 1, (b) => 2]; // (a: { x: number; y?: number }) => number[] +var gs = [(b) => 2, (a) => 1]; // (b: { x: number; z?: number }) => number[] diff --git a/tests/baselines/reference/arrayLiterals.js b/tests/baselines/reference/arrayLiterals.js index 0f2dc1f7e2ebf..b7f57d1aa4e72 100644 --- a/tests/baselines/reference/arrayLiterals.js +++ b/tests/baselines/reference/arrayLiterals.js @@ -40,21 +40,6 @@ var context4: Base[] = [new Derived1(), new Derived1()]; //// [arrayLiterals.js] // Empty array literal with no contextual type has type Undefined[] -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); var arr1 = [[], [1], ['']]; var arr2 = [[null], [1], ['']]; // Array literal with elements of only EveryType E has type E[] @@ -62,11 +47,8 @@ var stringArrArr = [[''], [""]]; var stringArr = ['', ""]; var numberArr = [0, 0.0, 0x00, 1e1]; var boolArr = [false, true, false, true]; -var C = /** @class */ (function () { - function C() { - } - return C; -}()); +class C { +} var classArr = [new C(), new C()]; var classTypeArray = [C, C, C]; var classTypeArray; // Should OK, not be a parse error @@ -74,26 +56,13 @@ var classTypeArray; // Should OK, not be a parse error var context1 = [{ a: '', b: 0, c: '' }, { a: "", b: 3, c: 0 }]; var context2 = [{ a: '', b: 0, c: '' }, { a: "", b: 3, c: 0 }]; // Contextual type C with numeric index signature of type Base makes array literal of Derived have type Base[] -var Base = /** @class */ (function () { - function Base() { - } - return Base; -}()); -var Derived1 = /** @class */ (function (_super) { - __extends(Derived1, _super); - function Derived1() { - return _super !== null && _super.apply(this, arguments) || this; - } - return Derived1; -}(Base)); +class Base { +} +class Derived1 extends Base { +} ; -var Derived2 = /** @class */ (function (_super) { - __extends(Derived2, _super); - function Derived2() { - return _super !== null && _super.apply(this, arguments) || this; - } - return Derived2; -}(Base)); +class Derived2 extends Base { +} ; var context3 = [new Derived1(), new Derived2()]; // Contextual type C with numeric index signature of type Base makes array literal of Derived1 and Derived2 have type Base[] diff --git a/tests/baselines/reference/arrayLiterals2ES5.js b/tests/baselines/reference/arrayLiterals2ES5.js index 23b9662bb0506..ecd528dfd1a1f 100644 --- a/tests/baselines/reference/arrayLiterals2ES5.js +++ b/tests/baselines/reference/arrayLiterals2ES5.js @@ -64,23 +64,14 @@ var d9 = [[...temp1], ...["hello"]]; // Elisionopt SpreadElement // ElementList, Elisionopt AssignmentExpression // ElementList, Elisionopt SpreadElement -var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { - if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { - if (ar || !(i in from)) { - if (!ar) ar = Array.prototype.slice.call(from, 0, i); - ar[i] = from[i]; - } - } - return to.concat(ar || Array.prototype.slice.call(from)); -}; // SpreadElement: // ... AssignmentExpression var a0 = [, , 2, 3, 4]; var a1 = ["hello", "world"]; -var a2 = __spreadArray(__spreadArray([, , ,], a0, true), ["hello"], false); -var a3 = __spreadArray([, ,], a0, true); -var a4 = [function () { return 1; },]; -var a5 = __spreadArray(__spreadArray([], a0, true), [,], false); +var a2 = [, , , ...a0, "hello"]; +var a3 = [, , ...a0]; +var a4 = [() => 1,]; +var a5 = [...a0, ,]; // Each element expression in a non-empty array literal is processed as follows: // - If the array literal contains no spread elements, and if the array literal is contextually typed (section 4.19) // by a type T and T has a property with the numeric name N, where N is the index of the element expression in the array literal, @@ -93,8 +84,8 @@ var b1 = [[1, 2, 3], ["hello", "string"]]; // The resulting type an array literal expression is determined as follows: // - If the array literal contains no spread elements and is an array assignment pattern in a destructuring assignment (section 4.17.1), // the resulting type is a tuple type constructed from the types of the element expressions. -var _a = [1, 2], c0 = _a[0], c1 = _a[1]; // tuple type [number, number] -var _b = [1, 2, true], c2 = _b[0], c3 = _b[1]; // tuple type [number, number, boolean] +var [c0, c1] = [1, 2]; // tuple type [number, number] +var [c2, c3] = [1, 2, true]; // tuple type [number, number, boolean] // The resulting type an array literal expression is determined as follows: // - the resulting type is an array type with an element type that is the union of the types of the // non - spread element expressions and the numeric index signature types of the spread element expressions @@ -103,13 +94,13 @@ var temp1 = [1, 2, 3]; var temp2 = [[1, 2, 3], ["hello", "string"]]; var temp3 = [undefined, null, undefined]; var temp4 = []; -var d0 = __spreadArray([1, true], temp, true); // has type (string|number|boolean)[] -var d1 = __spreadArray([], temp, true); // has type string[] -var d2 = __spreadArray([], temp1, true); -var d3 = __spreadArray([], temp1, true); -var d4 = __spreadArray(__spreadArray([], temp, true), temp1, true); -var d5 = __spreadArray([], temp3, true); -var d6 = __spreadArray([], temp4, true); -var d7 = __spreadArray([], temp1, true); -var d8 = [__spreadArray([], temp1, true)]; -var d9 = __spreadArray([__spreadArray([], temp1, true)], ["hello"], false); +var d0 = [1, true, ...temp,]; // has type (string|number|boolean)[] +var d1 = [...temp]; // has type string[] +var d2 = [...temp1]; +var d3 = [...temp1]; +var d4 = [...temp, ...temp1]; +var d5 = [...temp3]; +var d6 = [...temp4]; +var d7 = [...[...temp1]]; +var d8 = [[...temp1]]; +var d9 = [[...temp1], ...["hello"]]; diff --git a/tests/baselines/reference/arrayLiterals3.js b/tests/baselines/reference/arrayLiterals3.js index 15601e737ad96..333172ea450bd 100644 --- a/tests/baselines/reference/arrayLiterals3.js +++ b/tests/baselines/reference/arrayLiterals3.js @@ -42,15 +42,6 @@ var c2: myArray = [...temp1, ...temp]; // Error cannot assign (number // - If the array literal contains no spread elements, and if the array literal is contextually typed (section 4.19) // by a type T and T has a property with the numeric name N, where N is the index of the element expression in the array literal, // the element expression is contextually typed by the type of that property. -var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { - if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { - if (ar || !(i in from)) { - if (!ar) ar = Array.prototype.slice.call(from, 0, i); - ar[i] = from[i]; - } - } - return to.concat(ar || Array.prototype.slice.call(from)); -}; // The resulting type an array literal expression is determined as follows: // - If the array literal contains no spread elements and is contextually typed by a tuple-like type, // the resulting type is a tuple type constructed from the types of the element expressions. @@ -59,13 +50,13 @@ var a1 = ["string", 1, true]; // Error // The resulting type an array literal expression is determined as follows: // - If the array literal contains no spread elements and is an array assignment pattern in a destructuring assignment (section 4.17.1), // the resulting type is a tuple type constructed from the types of the element expressions. -var _a = [1, 2, "string", true], b1 = _a[0], b2 = _a[1]; +var [b1, b2] = [1, 2, "string", true]; // The resulting type an array literal expression is determined as follows: // - the resulting type is an array type with an element type that is the union of the types of the // non - spread element expressions and the numeric index signature types of the spread element expressions var temp = ["s", "t", "r"]; var temp1 = [1, 2, 3]; var temp2 = [[1, 2, 3], ["hello", "string"]]; -var c0 = __spreadArray([], temp2, true); // Error -var c1 = __spreadArray([], temp1, true); // Error cannot assign number[] to [number, number, number] -var c2 = __spreadArray(__spreadArray([], temp1, true), temp, true); // Error cannot assign (number|string)[] to number[] +var c0 = [...temp2]; // Error +var c1 = [...temp1]; // Error cannot assign number[] to [number, number, number] +var c2 = [...temp1, ...temp]; // Error cannot assign (number|string)[] to number[] diff --git a/tests/baselines/reference/arrayLiteralsWithRecursiveGenerics.js b/tests/baselines/reference/arrayLiteralsWithRecursiveGenerics.js index b048aded77a6d..094bc0ffbd767 100644 --- a/tests/baselines/reference/arrayLiteralsWithRecursiveGenerics.js +++ b/tests/baselines/reference/arrayLiteralsWithRecursiveGenerics.js @@ -28,38 +28,12 @@ var myDerivedList: DerivedList; var as = [list, myDerivedList]; // List[] //// [arrayLiteralsWithRecursiveGenerics.js] -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -var List = /** @class */ (function () { - function List() { - } - return List; -}()); -var DerivedList = /** @class */ (function (_super) { - __extends(DerivedList, _super); - function DerivedList() { - return _super !== null && _super.apply(this, arguments) || this; - } - return DerivedList; -}(List)); -var MyList = /** @class */ (function () { - function MyList() { - } - return MyList; -}()); +class List { +} +class DerivedList extends List { +} +class MyList { +} var list; var list2; var myList; diff --git a/tests/baselines/reference/arrayOfExportedClass.js b/tests/baselines/reference/arrayOfExportedClass.js index 2a41475c1cd33..354f75ec5609f 100644 --- a/tests/baselines/reference/arrayOfExportedClass.js +++ b/tests/baselines/reference/arrayOfExportedClass.js @@ -26,20 +26,14 @@ export = Road; //// [arrayOfExportedClass_0.js] "use strict"; -var Car = /** @class */ (function () { - function Car() { - } - return Car; -}()); +class Car { +} module.exports = Car; //// [arrayOfExportedClass_1.js] "use strict"; -var Road = /** @class */ (function () { - function Road() { - } - Road.prototype.AddCars = function (cars) { +class Road { + AddCars(cars) { this.cars = cars; - }; - return Road; -}()); + } +} module.exports = Road; diff --git a/tests/baselines/reference/arrayOfFunctionTypes3.js b/tests/baselines/reference/arrayOfFunctionTypes3.js index d56193714c2e2..0c28523c9b73a 100644 --- a/tests/baselines/reference/arrayOfFunctionTypes3.js +++ b/tests/baselines/reference/arrayOfFunctionTypes3.js @@ -30,13 +30,10 @@ var r7 = r6(''); // any not string //// [arrayOfFunctionTypes3.js] // valid uses of arrays of function types -var x = [function () { return 1; }, function () { }]; +var x = [() => 1, () => { }]; var r2 = x[0](); -var C = /** @class */ (function () { - function C() { - } - return C; -}()); +class C { +} var y = [C, C]; var r3 = new y[0](); var a; diff --git a/tests/baselines/reference/arrayOfSubtypeIsAssignableToReadonlyArray.js b/tests/baselines/reference/arrayOfSubtypeIsAssignableToReadonlyArray.js index 4f326443f931c..0408bc57205c8 100644 --- a/tests/baselines/reference/arrayOfSubtypeIsAssignableToReadonlyArray.js +++ b/tests/baselines/reference/arrayOfSubtypeIsAssignableToReadonlyArray.js @@ -22,40 +22,12 @@ rrb = cra; // error: 'A' is not assignable to 'B' //// [arrayOfSubtypeIsAssignableToReadonlyArray.js] -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -var A = /** @class */ (function () { - function A() { - } - return A; -}()); -var B = /** @class */ (function (_super) { - __extends(B, _super); - function B() { - return _super !== null && _super.apply(this, arguments) || this; - } - return B; -}(A)); -var C = /** @class */ (function (_super) { - __extends(C, _super); - function C() { - return _super !== null && _super.apply(this, arguments) || this; - } - return C; -}(Array)); +class A { +} +class B extends A { +} +class C extends Array { +} rra = ara; rrb = arb; // OK, Array is assignable to ReadonlyArray rra = arb; diff --git a/tests/baselines/reference/arrayReferenceWithoutTypeArgs.js b/tests/baselines/reference/arrayReferenceWithoutTypeArgs.js index 7bb632a55f625..838f89a424139 100644 --- a/tests/baselines/reference/arrayReferenceWithoutTypeArgs.js +++ b/tests/baselines/reference/arrayReferenceWithoutTypeArgs.js @@ -6,9 +6,6 @@ class X { } //// [arrayReferenceWithoutTypeArgs.js] -var X = /** @class */ (function () { - function X() { - } - X.prototype.f = function (a) { }; - return X; -}()); +class X { + f(a) { } +} diff --git a/tests/baselines/reference/arrayconcat.js b/tests/baselines/reference/arrayconcat.js index b42610336bb66..a9bdddc8daab3 100644 --- a/tests/baselines/reference/arrayconcat.js +++ b/tests/baselines/reference/arrayconcat.js @@ -31,10 +31,8 @@ class parser { } //// [arrayconcat.js] -var parser = /** @class */ (function () { - function parser() { - } - parser.prototype.m = function () { +class parser { + m() { this.options = this.options.sort(function (a, b) { var aName = a.name.toLowerCase(); var bName = b.name.toLowerCase(); @@ -48,6 +46,5 @@ var parser = /** @class */ (function () { return 0; } }); - }; - return parser; -}()); + } +} diff --git a/tests/baselines/reference/arrowFunctionContexts.js b/tests/baselines/reference/arrowFunctionContexts.js index 60d6fbb1f3b9b..a8114b4ebcfbd 100644 --- a/tests/baselines/reference/arrowFunctionContexts.js +++ b/tests/baselines/reference/arrowFunctionContexts.js @@ -98,110 +98,81 @@ var asserted2: any; //// [arrowFunctionContexts.js] -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -var _this = this; // Arrow function used in with statement with (window) { - var p = function () { return _this; }; + var p = () => this; } // Arrow function as argument to super call -var Base = /** @class */ (function () { - function Base(n) { - } - return Base; -}()); -var Derived = /** @class */ (function (_super) { - __extends(Derived, _super); - function Derived() { - var _this = _super.call(this, function () { return _this; }) || this; - return _this; +class Base { + constructor(n) { } +} +class Derived extends Base { + constructor() { + super(() => this); } - return Derived; -}(Base)); +} // Arrow function as function argument -window.setTimeout(function () { return null; }, 100); +window.setTimeout(() => null, 100); // Arrow function as value in array literal -var obj = function (n) { return ''; }; +var obj = (n) => ''; var obj; // OK -var arr = [function (n) { return ''; }]; +var arr = [(n) => '']; var arr; // Incorrect error here (bug 829597) // Arrow function as enum value var E; (function (E) { - var _this = this; - E[E["x"] = function () { return 4; }] = "x"; - E[E["y"] = (function () { return _this; }).length] = "y"; // error, can't use this in enum + E[E["x"] = () => 4] = "x"; + E[E["y"] = (() => this).length] = "y"; // error, can't use this in enum })(E || (E = {})); // Arrow function as module variable initializer var M; (function (M) { - M.a = function (s) { return ''; }; - var b = function (s) { return s; }; + M.a = (s) => ''; + var b = (s) => s; })(M || (M = {})); // Repeat above for module members that are functions? (necessary to redo all of them?) var M2; (function (M2) { - var _this = this; // Arrow function used in with statement with (window) { - var p = function () { return _this; }; + var p = () => this; } // Arrow function as argument to super call - var Base = /** @class */ (function () { - function Base(n) { - } - return Base; - }()); - var Derived = /** @class */ (function (_super) { - __extends(Derived, _super); - function Derived() { - var _this = _super.call(this, function () { return _this; }) || this; - return _this; + class Base { + constructor(n) { } + } + class Derived extends Base { + constructor() { + super(() => this); } - return Derived; - }(Base)); + } // Arrow function as function argument - window.setTimeout(function () { return null; }, 100); + window.setTimeout(() => null, 100); // Arrow function as value in array literal - var obj = function (n) { return ''; }; + var obj = (n) => ''; var obj; // OK - var arr = [function (n) { return ''; }]; + var arr = [(n) => '']; var arr; // Incorrect error here (bug 829597) // Arrow function as enum value - var E; + let E; (function (E) { - var _this = this; - E[E["x"] = function () { return 4; }] = "x"; - E[E["y"] = (function () { return _this; }).length] = "y"; + E[E["x"] = () => 4] = "x"; + E[E["y"] = (() => this).length] = "y"; })(E || (E = {})); // Arrow function as module variable initializer - var M; + let M; (function (M) { - M.a = function (s) { return ''; }; - var b = function (s) { return s; }; + M.a = (s) => ''; + var b = (s) => s; })(M || (M = {})); })(M2 || (M2 = {})); // (ParamList) => { ... } is a generic arrow function -var generic1 = function (n) { return [n]; }; +var generic1 = (n) => [n]; var generic1; // Incorrect error, Bug 829597 -var generic2 = function (n) { return [n]; }; +var generic2 = (n) => { return [n]; }; var generic2; // ((ParamList) => { ... } ) is a type assertion to an arrow function -var asserted1 = (function (n) { return [n]; }); +var asserted1 = ((n) => [n]); var asserted1; -var asserted2 = (function (n) { return n; }); +var asserted2 = ((n) => { return n; }); var asserted2; diff --git a/tests/baselines/reference/arrowFunctionErrorSpan.js b/tests/baselines/reference/arrowFunctionErrorSpan.js index b9dd81a62ea09..9f7967b6acccf 100644 --- a/tests/baselines/reference/arrowFunctionErrorSpan.js +++ b/tests/baselines/reference/arrowFunctionErrorSpan.js @@ -59,35 +59,35 @@ f(_ => 1 + //// [arrowFunctionErrorSpan.js] function f(a) { } // oneliner -f(function () { }); +f(() => { }); // multiline, body -f(function () { +f(() => { }); // multiline 2, body -f(function () { +f(() => { }); // multiline 3, arrow on a new line -f(function () { }); +f(() => { }); // multiline 4, arguments -f(function (a, b, c, d) { }); +f((a, b, c, d) => { }); // single line with a comment f(/* - */ function () { }); + */ () => { }); // multi line with a comment f(/* - */ function () { }); + */ () => { }); // multi line with a comment 2 f(/* - */ function () { + */ () => { }); // multi line with a comment 3 f(// comment 1 // comment 2 -function () { +() => { // comment 4 } // comment 5 ); // body is not a block -f(function (_) { return 1 + - 2; }); +f(_ => 1 + + 2); diff --git a/tests/baselines/reference/arrowFunctionExpressions.js b/tests/baselines/reference/arrowFunctionExpressions.js index f4be03dd189a6..d7b5511f2746d 100644 --- a/tests/baselines/reference/arrowFunctionExpressions.js +++ b/tests/baselines/reference/arrowFunctionExpressions.js @@ -103,88 +103,65 @@ function tryCatchFn() { //// [arrowFunctionExpressions.js] // ArrowFormalParameters => AssignmentExpression is equivalent to ArrowFormalParameters => { return AssignmentExpression; } -var a = function (p) { return p.length; }; -var a = function (p) { return p.length; }; +var a = (p) => p.length; +var a = (p) => { return p.length; }; // Identifier => Block is equivalent to(Identifier) => Block -var b = function (j) { return 0; }; -var b = function (j) { return 0; }; +var b = j => { return 0; }; +var b = (j) => { return 0; }; // Identifier => AssignmentExpression is equivalent to(Identifier) => AssignmentExpression var c; -var d = function (n) { return c = n; }; -var d = function (n) { return c = n; }; +var d = n => c = n; +var d = (n) => c = n; var d; // Binding patterns in arrow functions -var p1 = function (_a) { - var a = _a[0]; -}; -var p2 = function (_a) { - var a = _a.slice(0); -}; -var p3 = function (_a) { - var a = _a[1]; -}; -var p4 = function (_a) { - var a = _a.slice(1); -}; -var p5 = function (_a) { - var _b = _a[0], a = _b === void 0 ? 1 : _b; -}; -var p6 = function (_a) { - var a = _a.a; -}; -var p7 = function (_a) { - var b = _a.a.b; -}; -var p8 = function (_a) { - var _b = _a.a, a = _b === void 0 ? 1 : _b; -}; -var p9 = function (_a) { - var _b = _a.a, _c = _b === void 0 ? { b: 1 } : _b, _d = _c.b, b = _d === void 0 ? 1 : _d; -}; -var p10 = function (_a) { - var _b = _a[0], value = _b.value, done = _b.done; -}; +var p1 = ([a]) => { }; +var p2 = ([...a]) => { }; +var p3 = ([, a]) => { }; +var p4 = ([, ...a]) => { }; +var p5 = ([a = 1]) => { }; +var p6 = ({ a }) => { }; +var p7 = ({ a: { b } }) => { }; +var p8 = ({ a = 1 }) => { }; +var p9 = ({ a: { b = 1 } = { b: 1 } }) => { }; +var p10 = ([{ value, done }]) => { }; // Arrow function used in class member initializer // Arrow function used in class member function -var MyClass = /** @class */ (function () { - function MyClass() { - var _this = this; - this.m = function (n) { return n + 1; }; - this.p = function (n) { return n && _this; }; +class MyClass { + constructor() { + this.m = (n) => n + 1; + this.p = (n) => n && this; } - MyClass.prototype.fn = function () { - var _this = this; - var m = function (n) { return n + 1; }; - var p = function (n) { return n && _this; }; - }; - return MyClass; -}()); + fn() { + var m = (n) => n + 1; + var p = (n) => n && this; + } +} // Arrow function used in arrow function -var arrrr = function () { return function (m) { return function () { return function (n) { return m + n; }; }; }; }; +var arrrr = () => (m) => () => (n) => m + n; var e = arrrr()(3)()(4); var e; // Arrow function used in arrow function used in function function someFn() { - var arr = function (n) { return function (p) { return p * n; }; }; + var arr = (n) => (p) => p * n; arr(3)(4).toExponential(); } // Arrow function used in function function someOtherFn() { - var arr = function (n) { return '' + n; }; + var arr = (n) => '' + n; arr(4).charAt(0); } // Arrow function used in nested function in function function outerFn() { function innerFn() { - var arrowFn = function () { }; + var arrowFn = () => { }; var p = arrowFn(); var p; } } // Arrow function used in nested function in arrow function -var f = function (n) { +var f = (n) => { function fn(x) { - return function () { return n + x; }; + return () => n + x; } return fn(4); }; @@ -192,9 +169,9 @@ var g = f('')(); var g; // Arrow function used in nested function in arrow function in nested function function someOuterFn() { - var arr = function (n) { + var arr = (n) => { function innerFn() { - return function () { return n.length; }; + return () => n.length; } return innerFn; }; @@ -204,14 +181,13 @@ var h = someOuterFn()('')()(); h.toExponential(); // Arrow function used in try/catch/finally in function function tryCatchFn() { - var _this = this; try { - var x = function () { return _this; }; + var x = () => this; } catch (e) { - var t = function () { return e + _this; }; + var t = () => e + this; } finally { - var m = function () { return _this + ''; }; + var m = () => this + ''; } } diff --git a/tests/baselines/reference/arrowFunctionExpressions.types b/tests/baselines/reference/arrowFunctionExpressions.types index cf5973fc84e6f..3158e45386ff0 100644 --- a/tests/baselines/reference/arrowFunctionExpressions.types +++ b/tests/baselines/reference/arrowFunctionExpressions.types @@ -91,10 +91,10 @@ var p1 = ([a]) => { }; > : ^^^ var p2 = ([...a]) => { }; ->p2 : ([...a]: any[]) => void -> : ^ ^^^^^^^^^^^^^^^^ ->([...a]) => { } : ([...a]: any[]) => void -> : ^ ^^^^^^^^^^^^^^^^ +>p2 : ([...a]: Iterable) => void +> : ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>([...a]) => { } : ([...a]: Iterable) => void +> : ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >a : any[] > : ^^^^^ diff --git a/tests/baselines/reference/arrowFunctionInConstructorArgument1.js b/tests/baselines/reference/arrowFunctionInConstructorArgument1.js index d7762cad8adba..a8b634872976b 100644 --- a/tests/baselines/reference/arrowFunctionInConstructorArgument1.js +++ b/tests/baselines/reference/arrowFunctionInConstructorArgument1.js @@ -8,9 +8,7 @@ var c = new C(() => { return asdf; } ) // should error //// [arrowFunctionInConstructorArgument1.js] -var C = /** @class */ (function () { - function C(x) { - } - return C; -}()); -var c = new C(function () { return asdf; }); // should error +class C { + constructor(x) { } +} +var c = new C(() => { return asdf; }); // should error diff --git a/tests/baselines/reference/arrowFunctionInExpressionStatement1.js b/tests/baselines/reference/arrowFunctionInExpressionStatement1.js index 8edeb9c0a3460..99750843cb59c 100644 --- a/tests/baselines/reference/arrowFunctionInExpressionStatement1.js +++ b/tests/baselines/reference/arrowFunctionInExpressionStatement1.js @@ -4,4 +4,4 @@ () => 0; //// [arrowFunctionInExpressionStatement1.js] -(function () { return 0; }); +() => 0; diff --git a/tests/baselines/reference/arrowFunctionInExpressionStatement2.js b/tests/baselines/reference/arrowFunctionInExpressionStatement2.js index 550a88228d8ba..ae6bc2fb642aa 100644 --- a/tests/baselines/reference/arrowFunctionInExpressionStatement2.js +++ b/tests/baselines/reference/arrowFunctionInExpressionStatement2.js @@ -8,5 +8,5 @@ namespace M { //// [arrowFunctionInExpressionStatement2.js] var M; (function (M) { - (function () { return 0; }); + () => 0; })(M || (M = {})); diff --git a/tests/baselines/reference/arrowFunctionMissingCurlyWithSemicolon.js b/tests/baselines/reference/arrowFunctionMissingCurlyWithSemicolon.js index ea026b5bb5bc7..02e5e1fcd80fa 100644 --- a/tests/baselines/reference/arrowFunctionMissingCurlyWithSemicolon.js +++ b/tests/baselines/reference/arrowFunctionMissingCurlyWithSemicolon.js @@ -8,6 +8,6 @@ var square = (x: number) => x * x; //// [arrowFunctionMissingCurlyWithSemicolon.js] // Should error at semicolon. -var f = function () { return ; }; +var f = () => ; var b = 1 * 2 * 3 * 4; -var square = function (x) { return x * x; }; +var square = (x) => x * x; diff --git a/tests/baselines/reference/arrowFunctionParsingDoesNotConfuseParenthesizedObjectForArrowHead.js b/tests/baselines/reference/arrowFunctionParsingDoesNotConfuseParenthesizedObjectForArrowHead.js index 5e99656ebdea6..0356b15dda05a 100644 --- a/tests/baselines/reference/arrowFunctionParsingDoesNotConfuseParenthesizedObjectForArrowHead.js +++ b/tests/baselines/reference/arrowFunctionParsingDoesNotConfuseParenthesizedObjectForArrowHead.js @@ -18,14 +18,14 @@ const test = () => ({ //// [arrowFunctionParsingDoesNotConfuseParenthesizedObjectForArrowHead.js] -var test = function () { return ({ +const test = () => ({ // "Identifier expected." error on "!" and two "Duplicate identifier '(Missing)'." errors on space. prop: !value, // remove ! to see that errors will be gone - run: function () { + run: () => { // comment next line or remove "()" to see that errors will be gone if (!a.b()) { return 'special'; } return 'default'; } -}); }; +}); diff --git a/tests/baselines/reference/arrowFunctionWithObjectLiteralBody1.js b/tests/baselines/reference/arrowFunctionWithObjectLiteralBody1.js index 07163e950d79d..3e769e193b641 100644 --- a/tests/baselines/reference/arrowFunctionWithObjectLiteralBody1.js +++ b/tests/baselines/reference/arrowFunctionWithObjectLiteralBody1.js @@ -4,4 +4,4 @@ var v = a => {} //// [arrowFunctionWithObjectLiteralBody1.js] -var v = function (a) { return ({}); }; +var v = a => ({}); diff --git a/tests/baselines/reference/arrowFunctionWithObjectLiteralBody2.js b/tests/baselines/reference/arrowFunctionWithObjectLiteralBody2.js index a7a6cae46a019..b56295a674aa6 100644 --- a/tests/baselines/reference/arrowFunctionWithObjectLiteralBody2.js +++ b/tests/baselines/reference/arrowFunctionWithObjectLiteralBody2.js @@ -4,4 +4,4 @@ var v = a => {} //// [arrowFunctionWithObjectLiteralBody2.js] -var v = function (a) { return ({}); }; +var v = a => ({}); diff --git a/tests/baselines/reference/arrowFunctionWithObjectLiteralBody5.js b/tests/baselines/reference/arrowFunctionWithObjectLiteralBody5.js index 4e83d53574428..f42a8a3de8c45 100644 --- a/tests/baselines/reference/arrowFunctionWithObjectLiteralBody5.js +++ b/tests/baselines/reference/arrowFunctionWithObjectLiteralBody5.js @@ -10,7 +10,7 @@ var c = () => ({ name: "foo", message: "bar" }); var d = () => ((({ name: "foo", message: "bar" }))); //// [arrowFunctionWithObjectLiteralBody5.js] -var a = function () { return ({ name: "foo", message: "bar" }); }; -var b = function () { return ({ name: "foo", message: "bar" }); }; -var c = function () { return ({ name: "foo", message: "bar" }); }; -var d = function () { return ({ name: "foo", message: "bar" }); }; +var a = () => ({ name: "foo", message: "bar" }); +var b = () => ({ name: "foo", message: "bar" }); +var c = () => ({ name: "foo", message: "bar" }); +var d = () => ({ name: "foo", message: "bar" }); diff --git a/tests/baselines/reference/arrowFunctionsMissingTokens.js b/tests/baselines/reference/arrowFunctionsMissingTokens.js index 7b549aaf20f3c..a7534a4bb721f 100644 --- a/tests/baselines/reference/arrowFunctionsMissingTokens.js +++ b/tests/baselines/reference/arrowFunctionsMissingTokens.js @@ -70,50 +70,50 @@ namespace okay { //// [arrowFunctionsMissingTokens.js] var missingArrowsWithCurly; (function (missingArrowsWithCurly) { - var a = function () { }; - var b = function () { }; - var c = function (x) { }; - var d = function (x, y) { }; - var e = function (x, y) { }; + var a = () => { }; + var b = () => { }; + var c = (x) => { }; + var d = (x, y) => { }; + var e = (x, y) => { }; })(missingArrowsWithCurly || (missingArrowsWithCurly = {})); var missingCurliesWithArrow; (function (missingCurliesWithArrow) { - var withStatement; + let withStatement; (function (withStatement) { - var a = function () { var k = 10; }; - var b = function () { var k = 10; }; - var c = function (x) { var k = 10; }; - var d = function (x, y) { var k = 10; }; - var e = function (x, y) { var k = 10; }; - var f = function () { var k = 10; }; + var a = () => { var k = 10; }; + var b = () => { var k = 10; }; + var c = (x) => { var k = 10; }; + var d = (x, y) => { var k = 10; }; + var e = (x, y) => { var k = 10; }; + var f = () => { var k = 10; }; })(withStatement || (withStatement = {})); - var withoutStatement; + let withoutStatement; (function (withoutStatement) { - var a = function () { return ; }; + var a = () => ; })(withoutStatement || (withoutStatement = {})); ; - var b = function () { return ; }; + var b = () => ; })(missingCurliesWithArrow || (missingCurliesWithArrow = {})); -var c = function (x) { return ; }; +var c = (x) => ; ; -var d = function (x, y) { return ; }; +var d = (x, y) => ; ; -var e = function (x, y) { return ; }; +var e = (x, y) => ; ; -var f = function () { return ; }; +var f = () => ; var ce_nEst_pas_une_arrow_function; (function (ce_nEst_pas_une_arrow_function) { var a = (); - var b = function () { return ; }; + var b = () => ; var c = (x); - var d = function (x, y) { return ; }; - var e = function (x, y) { return ; }; + var d = (x, y) => ; + var e = (x, y) => ; })(ce_nEst_pas_une_arrow_function || (ce_nEst_pas_une_arrow_function = {})); var okay; (function (okay) { - var a = function () { }; - var b = function () { }; - var c = function (x) { }; - var d = function (x, y) { }; - var e = function (x, y) { }; + var a = () => { }; + var b = () => { }; + var c = (x) => { }; + var d = (x, y) => { }; + var e = (x, y) => { }; })(okay || (okay = {})); diff --git a/tests/baselines/reference/asOperator3.js b/tests/baselines/reference/asOperator3.js index 9eac43c07e479..bc1fed43548b9 100644 --- a/tests/baselines/reference/asOperator3.js +++ b/tests/baselines/reference/asOperator3.js @@ -13,15 +13,11 @@ var g = tag `Hello ${123} World` as string; var h = tag `Hello` as string; //// [asOperator3.js] -var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) { - if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } - return cooked; -}; -var a = "".concat(123 + 456); -var b = "leading ".concat(123 + 456); -var c = "".concat(123 + 456, " trailing"); -var d = "Hello ".concat(123, " World"); -var e = "Hello"; -var f = 1 + "".concat(1, " end of string"); -var g = tag(__makeTemplateObject(["Hello ", " World"], ["Hello ", " World"]), 123); -var h = tag(__makeTemplateObject(["Hello"], ["Hello"])); +var a = `${123 + 456}`; +var b = `leading ${123 + 456}`; +var c = `${123 + 456} trailing`; +var d = `Hello ${123} World`; +var e = `Hello`; +var f = 1 + `${1} end of string`; +var g = tag `Hello ${123} World`; +var h = tag `Hello`; diff --git a/tests/baselines/reference/asOperator4.js b/tests/baselines/reference/asOperator4.js index 6d8b39830440b..9a1b08235cb5b 100644 --- a/tests/baselines/reference/asOperator4.js +++ b/tests/baselines/reference/asOperator4.js @@ -19,7 +19,7 @@ function foo() { } //// [bar.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -var foo_1 = require("./foo"); +const foo_1 = require("./foo"); // These should emit identically foo_1.foo; foo_1.foo; diff --git a/tests/baselines/reference/asOperatorASI.js b/tests/baselines/reference/asOperatorASI.js index 1de18b75954e1..0ef77ba3cf5ce 100644 --- a/tests/baselines/reference/asOperatorASI.js +++ b/tests/baselines/reference/asOperatorASI.js @@ -14,18 +14,11 @@ as(Foo); // should emit //// [asOperatorASI.js] -var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) { - if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } - return cooked; -}; -var Foo = /** @class */ (function () { - function Foo() { - } - return Foo; -}()); +class Foo { +} // Example 1 var x = 10; -as(__makeTemplateObject(["Hello world"], ["Hello world"])); // should not error +as `Hello world`; // should not error // Example 2 var y = 20; as(Foo); // should emit diff --git a/tests/baselines/reference/asOperatorContextualType.js b/tests/baselines/reference/asOperatorContextualType.js index 0d55b4dbd3fb6..e4198d64229b6 100644 --- a/tests/baselines/reference/asOperatorContextualType.js +++ b/tests/baselines/reference/asOperatorContextualType.js @@ -6,4 +6,4 @@ var x = (v => v) as (x: number) => string; //// [asOperatorContextualType.js] // should error -var x = (function (v) { return v; }); +var x = (v => v); diff --git a/tests/baselines/reference/asiAbstract.js b/tests/baselines/reference/asiAbstract.js index 55a6f8b175b44..0182fa37a9fc7 100644 --- a/tests/baselines/reference/asiAbstract.js +++ b/tests/baselines/reference/asiAbstract.js @@ -19,20 +19,11 @@ class C3 { //// [asiAbstract.js] abstract; -var NonAbstractClass = /** @class */ (function () { - function NonAbstractClass() { +class NonAbstractClass { +} +class C2 { + nonAbstractFunction() { } - return NonAbstractClass; -}()); -var C2 = /** @class */ (function () { - function C2() { - } - C2.prototype.nonAbstractFunction = function () { - }; - return C2; -}()); -var C3 = /** @class */ (function () { - function C3() { - } - return C3; -}()); +} +class C3 { +} diff --git a/tests/baselines/reference/asiInES6Classes.js b/tests/baselines/reference/asiInES6Classes.js index c0a9938449112..9bfbc5ef80c05 100644 --- a/tests/baselines/reference/asiInES6Classes.js +++ b/tests/baselines/reference/asiInES6Classes.js @@ -25,14 +25,13 @@ class Foo { //// [asiInES6Classes.js] -var Foo = /** @class */ (function () { - function Foo() { +class Foo { + constructor() { this.defaults = { done: false }; } - Foo.prototype.bar = function () { + bar() { return 3; - }; - return Foo; -}()); + } +} diff --git a/tests/baselines/reference/asiPreventsParsingAsNamespace04.js b/tests/baselines/reference/asiPreventsParsingAsNamespace04.js index 027b839404df2..588b439e536a4 100644 --- a/tests/baselines/reference/asiPreventsParsingAsNamespace04.js +++ b/tests/baselines/reference/asiPreventsParsingAsNamespace04.js @@ -5,5 +5,5 @@ let module = 10; module in {} //// [asiPreventsParsingAsNamespace04.js] -var module = 10; +let module = 10; module in {}; diff --git a/tests/baselines/reference/asiPreventsParsingAsNamespace05.js b/tests/baselines/reference/asiPreventsParsingAsNamespace05.js index 0abf89d14d1c7..a8901cdac3199 100644 --- a/tests/baselines/reference/asiPreventsParsingAsNamespace05.js +++ b/tests/baselines/reference/asiPreventsParsingAsNamespace05.js @@ -12,7 +12,7 @@ a.b.c } //// [asiPreventsParsingAsNamespace05.js] -var namespace = 10; +let namespace = 10; var a; (function (a) { var b; diff --git a/tests/baselines/reference/asiPublicPrivateProtected.js b/tests/baselines/reference/asiPublicPrivateProtected.js index 4f9ba76fc8e67..17806e03bd62b 100644 --- a/tests/baselines/reference/asiPublicPrivateProtected.js +++ b/tests/baselines/reference/asiPublicPrivateProtected.js @@ -44,52 +44,31 @@ class ClassWithThreeMembers { //// [asiPublicPrivateProtected.js] public; -var NonPublicClass = /** @class */ (function () { - function NonPublicClass() { +class NonPublicClass { + s() { } - NonPublicClass.prototype.s = function () { - }; - return NonPublicClass; -}()); -var NonPublicClass2 = /** @class */ (function () { - function NonPublicClass2() { +} +class NonPublicClass2 { + nonPublicFunction() { } - NonPublicClass2.prototype.nonPublicFunction = function () { - }; - return NonPublicClass2; -}()); +} private; -var NonPrivateClass = /** @class */ (function () { - function NonPrivateClass() { +class NonPrivateClass { + s() { } - NonPrivateClass.prototype.s = function () { - }; - return NonPrivateClass; -}()); -var NonPrivateClass2 = /** @class */ (function () { - function NonPrivateClass2() { +} +class NonPrivateClass2 { + nonPrivateFunction() { } - NonPrivateClass2.prototype.nonPrivateFunction = function () { - }; - return NonPrivateClass2; -}()); +} protected; -var NonProtectedClass = /** @class */ (function () { - function NonProtectedClass() { +class NonProtectedClass { + s() { } - NonProtectedClass.prototype.s = function () { - }; - return NonProtectedClass; -}()); -var NonProtectedClass2 = /** @class */ (function () { - function NonProtectedClass2() { +} +class NonProtectedClass2 { + nonProtectedFunction() { } - NonProtectedClass2.prototype.nonProtectedFunction = function () { - }; - return NonProtectedClass2; -}()); -var ClassWithThreeMembers = /** @class */ (function () { - function ClassWithThreeMembers() { - } - return ClassWithThreeMembers; -}()); +} +class ClassWithThreeMembers { +} diff --git a/tests/baselines/reference/assertInWrapSomeTypeParameter.js b/tests/baselines/reference/assertInWrapSomeTypeParameter.js index e2428d6a5bbe6..81bd47164b0bc 100644 --- a/tests/baselines/reference/assertInWrapSomeTypeParameter.js +++ b/tests/baselines/reference/assertInWrapSomeTypeParameter.js @@ -8,11 +8,8 @@ class C> { } //// [assertInWrapSomeTypeParameter.js] -var C = /** @class */ (function () { - function C() { - } - C.prototype.foo = function (x) { +class C { + foo(x) { return null; - }; - return C; -}()); + } +} diff --git a/tests/baselines/reference/assertionFunctionWildcardImport1.js b/tests/baselines/reference/assertionFunctionWildcardImport1.js index 7061098dba010..1bfa2ec525a85 100644 --- a/tests/baselines/reference/assertionFunctionWildcardImport1.js +++ b/tests/baselines/reference/assertionFunctionWildcardImport1.js @@ -29,142 +29,19 @@ Debug.assert(true); //// [debug.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); +export {}; //// [ts.js] -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || (function () { - var ownKeys = function(o) { - ownKeys = Object.getOwnPropertyNames || function (o) { - var ar = []; - for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; - return ar; - }; - return ownKeys(o); - }; - return function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); - __setModuleDefault(result, mod); - return result; - }; -})(); -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Debug = void 0; -var Debug = __importStar(require("../debug")); -exports.Debug = Debug; +import * as Debug from "../debug"; +export { Debug }; //// [foo.js] -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || (function () { - var ownKeys = function(o) { - ownKeys = Object.getOwnPropertyNames || function (o) { - var ar = []; - for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; - return ar; - }; - return ownKeys(o); - }; - return function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); - __setModuleDefault(result, mod); - return result; - }; -})(); -Object.defineProperty(exports, "__esModule", { value: true }); -var ts = __importStar(require("./_namespaces/ts")); -var ts_1 = require("./_namespaces/ts"); +import * as ts from "./_namespaces/ts"; +import { Debug } from "./_namespaces/ts"; ts.Debug.assert(true); -ts_1.Debug.assert(true); +Debug.assert(true); //// [ts.js] -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(require("../../core/_namespaces/ts"), exports); +export * from "../../core/_namespaces/ts"; //// [bar.js] -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || (function () { - var ownKeys = function(o) { - ownKeys = Object.getOwnPropertyNames || function (o) { - var ar = []; - for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; - return ar; - }; - return ownKeys(o); - }; - return function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); - __setModuleDefault(result, mod); - return result; - }; -})(); -Object.defineProperty(exports, "__esModule", { value: true }); -var ts = __importStar(require("./_namespaces/ts")); -var ts_1 = require("./_namespaces/ts"); +import * as ts from "./_namespaces/ts"; +import { Debug } from "./_namespaces/ts"; ts.Debug.assert(true); -ts_1.Debug.assert(true); +Debug.assert(true); diff --git a/tests/baselines/reference/assertionFunctionWildcardImport2.js b/tests/baselines/reference/assertionFunctionWildcardImport2.js index 21014a3b2ce1f..1b840b4cddec8 100644 --- a/tests/baselines/reference/assertionFunctionWildcardImport2.js +++ b/tests/baselines/reference/assertionFunctionWildcardImport2.js @@ -21,51 +21,14 @@ function test(obj: string | null): void { //// [asserts.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isNonNullable = isNonNullable; function isNonNullable(obj) { if (obj === undefined || obj === null) { throw new Error("Must not be a nullable value"); } } +export { isNonNullable }; //// [test.js] -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || (function () { - var ownKeys = function(o) { - ownKeys = Object.getOwnPropertyNames || function (o) { - var ar = []; - for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; - return ar; - }; - return ownKeys(o); - }; - return function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); - __setModuleDefault(result, mod); - return result; - }; -})(); -Object.defineProperty(exports, "__esModule", { value: true }); -var asserts = __importStar(require("./asserts")); +import * as asserts from "./asserts"; function test(obj) { asserts.isNonNullable(obj); obj.trim(); diff --git a/tests/baselines/reference/assertionFunctionsCanNarrowByDiscriminant.js b/tests/baselines/reference/assertionFunctionsCanNarrowByDiscriminant.js index 2cacd1f1534de..4979a83b3590b 100644 --- a/tests/baselines/reference/assertionFunctionsCanNarrowByDiscriminant.js +++ b/tests/baselines/reference/assertionFunctionsCanNarrowByDiscriminant.js @@ -28,9 +28,9 @@ animalOrUndef.canMeow; // since is cat, should not be an error //// [assertionFunctionsCanNarrowByDiscriminant.js] "use strict"; -var animal = { type: 'cat', canMeow: true }; +const animal = { type: 'cat', canMeow: true }; assertEqual(animal.type, 'cat'); animal.canMeow; // since is cat, should not be an error -var animalOrUndef = { type: 'cat', canMeow: true }; +const animalOrUndef = { type: 'cat', canMeow: true }; assertEqual(animalOrUndef === null || animalOrUndef === void 0 ? void 0 : animalOrUndef.type, 'cat'); animalOrUndef.canMeow; // since is cat, should not be an error diff --git a/tests/baselines/reference/assertionTypePredicates1.js b/tests/baselines/reference/assertionTypePredicates1.js index dd591b729358c..af916d889abfb 100644 --- a/tests/baselines/reference/assertionTypePredicates1.js +++ b/tests/baselines/reference/assertionTypePredicates1.js @@ -262,22 +262,7 @@ function testFunctionThisParameter2( //// [assertionTypePredicates1.js] "use strict"; -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -var assert = function (value) { }; +const assert = value => { }; function f01(x) { if (!!true) { assert(typeof x === "string"); @@ -357,32 +342,30 @@ function f10(x) { x; // Unreachable } } -var Test = /** @class */ (function () { - function Test() { - } - Test.prototype.assert = function (value) { +class Test { + assert(value) { if (value) return; throw new Error(); - }; - Test.prototype.isTest2 = function () { + } + isTest2() { return this instanceof Test2; - }; - Test.prototype.assertIsTest2 = function () { + } + assertIsTest2() { if (this instanceof Test2) return; throw new Error(); - }; - Test.prototype.assertThis = function () { + } + assertThis() { if (!this) return; throw new Error(); - }; - Test.prototype.bar = function () { + } + bar() { this.assertThis(); this; - }; - Test.prototype.foo = function (x) { + } + foo(x) { this.assert(typeof x === "string"); x.length; if (this.isTest2()) { @@ -390,40 +373,30 @@ var Test = /** @class */ (function () { } this.assertIsTest2(); this.z; - }; - Test.prototype.baz = function (x) { + } + baz(x) { this.assert(false); x; // Unreachable - }; - return Test; -}()); -var Test2 = /** @class */ (function (_super) { - __extends(Test2, _super); - function Test2() { - var _this = _super !== null && _super.apply(this, arguments) || this; - _this.z = 0; - return _this; - } - return Test2; -}(Test)); -var Derived = /** @class */ (function (_super) { - __extends(Derived, _super); - function Derived() { - return _super !== null && _super.apply(this, arguments) || this; - } - Derived.prototype.foo = function (x) { - _super.prototype.assert.call(this, typeof x === "string"); + } +} +class Test2 extends Test { + constructor() { + super(...arguments); + this.z = 0; + } +} +class Derived extends Test { + foo(x) { + super.assert(typeof x === "string"); x.length; - }; - Derived.prototype.baz = function (x) { - _super.prototype.assert.call(this, false); + } + baz(x) { + super.assert(false); x; // Unreachable - }; - return Derived; -}(Test)); + } +} function f11(items) { - for (var _i = 0, items_1 = items; _i < items_1.length; _i++) { - var item = items_1[_i]; + for (let item of items) { if (item.isTest2()) { item.z; } @@ -432,53 +405,45 @@ function f11(items) { } } function f20(x) { - var assert = function (value) { }; + const assert = (value) => { }; assert(typeof x === "string"); // Error - var a = [assert]; + const a = [assert]; a[0](typeof x === "string"); // Error - var t1 = new Test(); + const t1 = new Test(); t1.assert(typeof x === "string"); // Error - var t2 = new Test(); + const t2 = new Test(); t2.assert(typeof x === "string"); } function example1(things) { - for (var _i = 0, things_1 = things; _i < things_1.length; _i++) { - var thing = things_1[_i]; + for (let thing of things) { thing.isGood(); thing.good; } } -var TestPropertyDeclaration1 = /** @class */ (function () { - function TestPropertyDeclaration1() { - this.assert = function (value) { }; +class TestPropertyDeclaration1 { + constructor() { + this.assert = (value) => { }; } - TestPropertyDeclaration1.prototype.other = function (x) { + other(x) { this.assert(x); // error x; - }; - return TestPropertyDeclaration1; -}()); -var TestPropertyDeclaration2 = /** @class */ (function () { - function TestPropertyDeclaration2() { - this.assert = function (value) { }; - } - TestPropertyDeclaration2.prototype.other = function (x) { + } +} +class TestPropertyDeclaration2 { + constructor() { + this.assert = (value) => { }; + } + other(x) { this.assert(x); // ok x; - }; - return TestPropertyDeclaration2; -}()); -var ChildInheritedPropertyDeclaration = /** @class */ (function (_super) { - __extends(ChildInheritedPropertyDeclaration, _super); - function ChildInheritedPropertyDeclaration() { - return _super !== null && _super.apply(this, arguments) || this; - } - ChildInheritedPropertyDeclaration.prototype.other = function (x) { + } +} +class ChildInheritedPropertyDeclaration extends ParentInheritedPropertyDeclaration { + other(x) { this.assert(x); // ok x; - }; - return ChildInheritedPropertyDeclaration; -}(ParentInheritedPropertyDeclaration)); + } +} function testPropertySignature(x, y) { x.assert(y); // ok x; diff --git a/tests/baselines/reference/assertionTypePredicates2.js b/tests/baselines/reference/assertionTypePredicates2.js index ada62f93812d4..5d370c8f5d9d2 100644 --- a/tests/baselines/reference/assertionTypePredicates2.js +++ b/tests/baselines/reference/assertionTypePredicates2.js @@ -26,12 +26,9 @@ export const main = () => { //// [assertionTypePredicates2.js] -"use strict"; /** * @typedef {{ x: number }} A */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.main = void 0; /** * @typedef { A & { y: number } } B */ @@ -39,14 +36,13 @@ exports.main = void 0; * @param {A} a * @returns { asserts a is B } */ -var foo = function (a) { +const foo = (a) => { if ( /** @type { B } */(a).y !== 0) throw TypeError(); return undefined; }; -var main = function () { +export const main = () => { /** @type { A } */ - var a = { x: 1 }; + const a = { x: 1 }; foo(a); }; -exports.main = main; diff --git a/tests/baselines/reference/assignAnyToEveryType.js b/tests/baselines/reference/assignAnyToEveryType.js index 7d68f62e3d705..d40d7f369a430 100644 --- a/tests/baselines/reference/assignAnyToEveryType.js +++ b/tests/baselines/reference/assignAnyToEveryType.js @@ -65,11 +65,8 @@ var E; var g = x; var g2 = E.A; g2 = x; -var C = /** @class */ (function () { - function C() { - } - return C; -}()); +class C { +} var h = x; var i = x; var j = x; diff --git a/tests/baselines/reference/assignEveryTypeToAny.js b/tests/baselines/reference/assignEveryTypeToAny.js index 0c7e4b20f59d4..70ee1192da101 100644 --- a/tests/baselines/reference/assignEveryTypeToAny.js +++ b/tests/baselines/reference/assignEveryTypeToAny.js @@ -84,17 +84,14 @@ var f = E.A; x = f; var g; x = g; -var C = /** @class */ (function () { - function C() { - } - return C; -}()); +class C { +} var h; x = h; var i; x = i; -x = { f: function () { return 1; } }; -x = { f: function (x) { return x; } }; +x = { f() { return 1; } }; +x = { f(x) { return x; } }; function j(a) { x = a; } diff --git a/tests/baselines/reference/assignLambdaToNominalSubtypeOfFunction.js b/tests/baselines/reference/assignLambdaToNominalSubtypeOfFunction.js index 9671f8d71852b..4f55a6f15e912 100644 --- a/tests/baselines/reference/assignLambdaToNominalSubtypeOfFunction.js +++ b/tests/baselines/reference/assignLambdaToNominalSubtypeOfFunction.js @@ -13,5 +13,5 @@ fn(function (a, b) { return true; }) //// [assignLambdaToNominalSubtypeOfFunction.js] function fn(cb) { } -fn(function (a, b) { return true; }); +fn((a, b) => true); fn(function (a, b) { return true; }); diff --git a/tests/baselines/reference/assignToExistingClass.js b/tests/baselines/reference/assignToExistingClass.js index 69b61d3eff57c..47ae3419585de 100644 --- a/tests/baselines/reference/assignToExistingClass.js +++ b/tests/baselines/reference/assignToExistingClass.js @@ -20,19 +20,13 @@ namespace Test { //// [assignToExistingClass.js] var Test; (function (Test) { - var Mocked = /** @class */ (function () { - function Mocked() { - } - return Mocked; - }()); - var Tester = /** @class */ (function () { - function Tester() { - } - Tester.prototype.willThrowError = function () { + class Mocked { + } + class Tester { + willThrowError() { Mocked = Mocked || function () { return { myProp: "test" }; }; - }; - return Tester; - }()); + } + } })(Test || (Test = {})); diff --git a/tests/baselines/reference/assignToObjectTypeWithPrototypeProperty.js b/tests/baselines/reference/assignToObjectTypeWithPrototypeProperty.js index a43fc66615cfc..227df70ceb84f 100644 --- a/tests/baselines/reference/assignToObjectTypeWithPrototypeProperty.js +++ b/tests/baselines/reference/assignToObjectTypeWithPrototypeProperty.js @@ -6,10 +6,7 @@ var p: XEvent = XEvent.prototype; var x: {prototype: XEvent} = XEvent; //// [assignToObjectTypeWithPrototypeProperty.js] -var XEvent = /** @class */ (function () { - function XEvent() { - } - return XEvent; -}()); +class XEvent { +} var p = XEvent.prototype; var x = XEvent; diff --git a/tests/baselines/reference/assigningFunctionToTupleIssuesError.js b/tests/baselines/reference/assigningFunctionToTupleIssuesError.js index f5502a8feaad0..6308be96efea6 100644 --- a/tests/baselines/reference/assigningFunctionToTupleIssuesError.js +++ b/tests/baselines/reference/assigningFunctionToTupleIssuesError.js @@ -5,4 +5,4 @@ declare let a: () => void; let b: [string] = a; //// [assigningFunctionToTupleIssuesError.js] -var b = a; +let b = a; diff --git a/tests/baselines/reference/assignmentCompatBug2.js b/tests/baselines/reference/assignmentCompatBug2.js index 8eafbe2b11059..456cf290f5256 100644 --- a/tests/baselines/reference/assignmentCompatBug2.js +++ b/tests/baselines/reference/assignmentCompatBug2.js @@ -46,28 +46,28 @@ b2 = { a: 0 }; // error b2 = { b: 0, a: 0 }; var b3; b3 = { - f: function (n) { return 0; }, - g: function (s) { return 0; }, + f: (n) => { return 0; }, + g: (s) => { return 0; }, m: 0, }; // ok b3 = { - f: function (n) { return 0; }, - g: function (s) { return 0; }, + f: (n) => { return 0; }, + g: (s) => { return 0; }, }; // error b3 = { - f: function (n) { return 0; }, + f: (n) => { return 0; }, m: 0, }; // error b3 = { - f: function (n) { return 0; }, - g: function (s) { return 0; }, + f: (n) => { return 0; }, + g: (s) => { return 0; }, m: 0, n: 0, - k: function (a) { return null; }, + k: (a) => { return null; }, }; // ok b3 = { - f: function (n) { return 0; }, - g: function (s) { return 0; }, + f: (n) => { return 0; }, + g: (s) => { return 0; }, n: 0, - k: function (a) { return null; }, + k: (a) => { return null; }, }; // error diff --git a/tests/baselines/reference/assignmentCompatBug3.js b/tests/baselines/reference/assignmentCompatBug3.js index b0497db1715ff..a0564b026de76 100644 --- a/tests/baselines/reference/assignmentCompatBug3.js +++ b/tests/baselines/reference/assignmentCompatBug3.js @@ -39,18 +39,11 @@ function makePoint(x, y) { } }; } -var C = /** @class */ (function () { - function C() { +class C { + get x() { + return 0; } - Object.defineProperty(C.prototype, "x", { - get: function () { - return 0; - }, - enumerable: false, - configurable: true - }); - return C; -}()); +} function foo(test) { } var x; var y; diff --git a/tests/baselines/reference/assignmentCompatBug5.js b/tests/baselines/reference/assignmentCompatBug5.js index 3206dcdc9da5b..da21fd6b4cb50 100644 --- a/tests/baselines/reference/assignmentCompatBug5.js +++ b/tests/baselines/reference/assignmentCompatBug5.js @@ -20,5 +20,5 @@ function foo2(x) { } foo2(["s", "t"]); function foo3(x) { } ; -foo3(function (s) { }); -foo3(function (n) { return; }); +foo3((s) => { }); +foo3((n) => { return; }); diff --git a/tests/baselines/reference/assignmentCompatInterfaceWithStringIndexSignature.js b/tests/baselines/reference/assignmentCompatInterfaceWithStringIndexSignature.js index a03a4d0efb07c..1c9dde49802e8 100644 --- a/tests/baselines/reference/assignmentCompatInterfaceWithStringIndexSignature.js +++ b/tests/baselines/reference/assignmentCompatInterfaceWithStringIndexSignature.js @@ -19,11 +19,8 @@ Biz(new Foo()); //// [assignmentCompatInterfaceWithStringIndexSignature.js] -var Foo = /** @class */ (function () { - function Foo() { - } - Foo.prototype.Boz = function () { }; - return Foo; -}()); +class Foo { + Boz() { } +} function Biz(map) { } Biz(new Foo()); diff --git a/tests/baselines/reference/assignmentCompatOnNew.js b/tests/baselines/reference/assignmentCompatOnNew.js index f5607ae2eea0d..9d67c7f066007 100644 --- a/tests/baselines/reference/assignmentCompatOnNew.js +++ b/tests/baselines/reference/assignmentCompatOnNew.js @@ -9,11 +9,8 @@ bar(Foo); // Error, but should be allowed //// [assignmentCompatOnNew.js] -var Foo = /** @class */ (function () { - function Foo() { - } - return Foo; -}()); +class Foo { +} ; function bar(x) { } bar(Foo); // Error, but should be allowed diff --git a/tests/baselines/reference/assignmentCompatWithCallSignatures.js b/tests/baselines/reference/assignmentCompatWithCallSignatures.js index c22e0d3b838af..6a2112cb85e30 100644 --- a/tests/baselines/reference/assignmentCompatWithCallSignatures.js +++ b/tests/baselines/reference/assignmentCompatWithCallSignatures.js @@ -53,18 +53,18 @@ t = s; t = a2; a = s; a = a2; -t = function (x) { return 1; }; -t = function () { return 1; }; +t = (x) => 1; +t = () => 1; t = function (x) { return ''; }; -a = function (x) { return 1; }; -a = function () { return 1; }; +a = (x) => 1; +a = () => 1; a = function (x) { return ''; }; // these are errors t = s2; t = a3; -t = function (x) { return 1; }; +t = (x) => 1; t = function (x) { return ''; }; a = s2; a = a3; -a = function (x) { return 1; }; +a = (x) => 1; a = function (x) { return ''; }; diff --git a/tests/baselines/reference/assignmentCompatWithCallSignatures2.js b/tests/baselines/reference/assignmentCompatWithCallSignatures2.js index 1528b9305f2a7..c739091496769 100644 --- a/tests/baselines/reference/assignmentCompatWithCallSignatures2.js +++ b/tests/baselines/reference/assignmentCompatWithCallSignatures2.js @@ -60,24 +60,24 @@ t = s; t = a2; a = s; a = a2; -t = { f: function () { return 1; } }; -t = { f: function (x) { return 1; } }; +t = { f: () => 1 }; +t = { f: (x) => 1 }; t = { f: function f() { return 1; } }; -t = { f: function (x) { return ''; } }; -a = { f: function () { return 1; } }; -a = { f: function (x) { return 1; } }; +t = { f(x) { return ''; } }; +a = { f: () => 1 }; +a = { f: (x) => 1 }; a = { f: function (x) { return ''; } }; // errors -t = function () { return 1; }; +t = () => 1; t = function (x) { return ''; }; -a = function () { return 1; }; +a = () => 1; a = function (x) { return ''; }; // these are errors t = s2; t = a3; -t = function (x) { return 1; }; +t = (x) => 1; t = function (x) { return ''; }; a = s2; a = a3; -a = function (x) { return 1; }; +a = (x) => 1; a = function (x) { return ''; }; diff --git a/tests/baselines/reference/assignmentCompatWithCallSignatures3.js b/tests/baselines/reference/assignmentCompatWithCallSignatures3.js index cdc9bdebef257..d01798e6bdfa1 100644 --- a/tests/baselines/reference/assignmentCompatWithCallSignatures3.js +++ b/tests/baselines/reference/assignmentCompatWithCallSignatures3.js @@ -103,47 +103,14 @@ b18 = a18; // ok //// [assignmentCompatWithCallSignatures3.js] // these are all permitted with the current rules, since we do not do contextual signature instantiation -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -var Base = /** @class */ (function () { - function Base() { - } - return Base; -}()); -var Derived = /** @class */ (function (_super) { - __extends(Derived, _super); - function Derived() { - return _super !== null && _super.apply(this, arguments) || this; - } - return Derived; -}(Base)); -var Derived2 = /** @class */ (function (_super) { - __extends(Derived2, _super); - function Derived2() { - return _super !== null && _super.apply(this, arguments) || this; - } - return Derived2; -}(Derived)); -var OtherDerived = /** @class */ (function (_super) { - __extends(OtherDerived, _super); - function OtherDerived() { - return _super !== null && _super.apply(this, arguments) || this; - } - return OtherDerived; -}(Base)); +class Base { +} +class Derived extends Base { +} +class Derived2 extends Derived { +} +class OtherDerived extends Base { +} a = b; // ok b = a; // ok a2 = b2; // ok diff --git a/tests/baselines/reference/assignmentCompatWithCallSignatures4.js b/tests/baselines/reference/assignmentCompatWithCallSignatures4.js index 7be077910bbdb..6df08dde1ec83 100644 --- a/tests/baselines/reference/assignmentCompatWithCallSignatures4.js +++ b/tests/baselines/reference/assignmentCompatWithCallSignatures4.js @@ -102,50 +102,17 @@ namespace Errors { //// [assignmentCompatWithCallSignatures4.js] // These are mostly permitted with the current loose rules. All ok unless otherwise noted. -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); var Errors; (function (Errors) { - var Base = /** @class */ (function () { - function Base() { - } - return Base; - }()); - var Derived = /** @class */ (function (_super) { - __extends(Derived, _super); - function Derived() { - return _super !== null && _super.apply(this, arguments) || this; - } - return Derived; - }(Base)); - var Derived2 = /** @class */ (function (_super) { - __extends(Derived2, _super); - function Derived2() { - return _super !== null && _super.apply(this, arguments) || this; - } - return Derived2; - }(Derived)); - var OtherDerived = /** @class */ (function (_super) { - __extends(OtherDerived, _super); - function OtherDerived() { - return _super !== null && _super.apply(this, arguments) || this; - } - return OtherDerived; - }(Base)); - var WithNonGenericSignaturesInBaseType; + class Base { + } + class Derived extends Base { + } + class Derived2 extends Derived { + } + class OtherDerived extends Base { + } + let WithNonGenericSignaturesInBaseType; (function (WithNonGenericSignaturesInBaseType) { a2 = b2; b2 = a2; @@ -168,7 +135,7 @@ var Errors; a17 = b17; b17 = a17; })(WithNonGenericSignaturesInBaseType || (WithNonGenericSignaturesInBaseType = {})); - var WithGenericSignaturesInBaseType; + let WithGenericSignaturesInBaseType; (function (WithGenericSignaturesInBaseType) { a2 = b2; b2 = a2; diff --git a/tests/baselines/reference/assignmentCompatWithCallSignatures5.js b/tests/baselines/reference/assignmentCompatWithCallSignatures5.js index 458d0f9444d57..dafc3a58b0f19 100644 --- a/tests/baselines/reference/assignmentCompatWithCallSignatures5.js +++ b/tests/baselines/reference/assignmentCompatWithCallSignatures5.js @@ -69,47 +69,14 @@ b18 = a18; // ok //// [assignmentCompatWithCallSignatures5.js] // checking assignment compat for function types. No errors in this file -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -var Base = /** @class */ (function () { - function Base() { - } - return Base; -}()); -var Derived = /** @class */ (function (_super) { - __extends(Derived, _super); - function Derived() { - return _super !== null && _super.apply(this, arguments) || this; - } - return Derived; -}(Base)); -var Derived2 = /** @class */ (function (_super) { - __extends(Derived2, _super); - function Derived2() { - return _super !== null && _super.apply(this, arguments) || this; - } - return Derived2; -}(Derived)); -var OtherDerived = /** @class */ (function (_super) { - __extends(OtherDerived, _super); - function OtherDerived() { - return _super !== null && _super.apply(this, arguments) || this; - } - return OtherDerived; -}(Base)); +class Base { +} +class Derived extends Base { +} +class Derived2 extends Derived { +} +class OtherDerived extends Base { +} a = b; // ok b = a; // ok a2 = b2; // ok diff --git a/tests/baselines/reference/assignmentCompatWithCallSignatures6.js b/tests/baselines/reference/assignmentCompatWithCallSignatures6.js index 07364b412fbbd..24ccd2559f9c2 100644 --- a/tests/baselines/reference/assignmentCompatWithCallSignatures6.js +++ b/tests/baselines/reference/assignmentCompatWithCallSignatures6.js @@ -46,47 +46,14 @@ b16 = x.a16; //// [assignmentCompatWithCallSignatures6.js] // checking assignment compatibility relations for function types. All valid -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -var Base = /** @class */ (function () { - function Base() { - } - return Base; -}()); -var Derived = /** @class */ (function (_super) { - __extends(Derived, _super); - function Derived() { - return _super !== null && _super.apply(this, arguments) || this; - } - return Derived; -}(Base)); -var Derived2 = /** @class */ (function (_super) { - __extends(Derived2, _super); - function Derived2() { - return _super !== null && _super.apply(this, arguments) || this; - } - return Derived2; -}(Derived)); -var OtherDerived = /** @class */ (function (_super) { - __extends(OtherDerived, _super); - function OtherDerived() { - return _super !== null && _super.apply(this, arguments) || this; - } - return OtherDerived; -}(Base)); +class Base { +} +class Derived extends Base { +} +class Derived2 extends Derived { +} +class OtherDerived extends Base { +} x.a = b; b = x.a; x.a2 = b2; diff --git a/tests/baselines/reference/assignmentCompatWithCallSignaturesWithOptionalParameters.js b/tests/baselines/reference/assignmentCompatWithCallSignaturesWithOptionalParameters.js index 21cabbf0bea02..c0170e2789f48 100644 --- a/tests/baselines/reference/assignmentCompatWithCallSignaturesWithOptionalParameters.js +++ b/tests/baselines/reference/assignmentCompatWithCallSignaturesWithOptionalParameters.js @@ -73,48 +73,48 @@ declare var a5: (x?: number, y?: number) => number; //// [assignmentCompatWithCallSignaturesWithOptionalParameters.js] // call signatures in derived types must have the same or fewer optional parameters as the base type -a = function () { return 1; }; // ok, same number of required params -a = function (x) { return 1; }; // ok, same number of required params -a = function (x) { return 1; }; // error, too many required params +a = () => 1; // ok, same number of required params +a = (x) => 1; // ok, same number of required params +a = (x) => 1; // error, too many required params a = b.a; // ok a = b.a2; // ok a = b.a3; // error a = b.a4; // error a = b.a5; // ok a = b.a6; // error -a2 = function () { return 1; }; // ok, same number of required params -a2 = function (x) { return 1; }; // ok, same number of required params -a2 = function (x) { return 1; }; // ok, same number of params +a2 = () => 1; // ok, same number of required params +a2 = (x) => 1; // ok, same number of required params +a2 = (x) => 1; // ok, same number of params a2 = b.a; // ok a2 = b.a2; // ok a2 = b.a3; // ok, same number of params a2 = b.a4; // ok, excess params are optional in b.a3 a2 = b.a5; // ok a2 = b.a6; // error -a3 = function () { return 1; }; // ok, fewer required params -a3 = function (x) { return 1; }; // ok, fewer required params -a3 = function (x) { return 1; }; // ok, same number of required params -a3 = function (x, y) { return 1; }; // error, too many required params +a3 = () => 1; // ok, fewer required params +a3 = (x) => 1; // ok, fewer required params +a3 = (x) => 1; // ok, same number of required params +a3 = (x, y) => 1; // error, too many required params a3 = b.a; // ok a3 = b.a2; // ok a3 = b.a3; // ok a3 = b.a4; // ok a3 = b.a5; // ok a3 = b.a6; // error -a4 = function () { return 1; }; // ok, fewer required params -a4 = function (x, y) { return 1; }; // ok, fewer required params -a4 = function (x) { return 1; }; // ok, same number of required params -a4 = function (x, y) { return 1; }; // ok, same number of params +a4 = () => 1; // ok, fewer required params +a4 = (x, y) => 1; // ok, fewer required params +a4 = (x) => 1; // ok, same number of required params +a4 = (x, y) => 1; // ok, same number of params a4 = b.a; // ok a4 = b.a2; // ok a4 = b.a3; // ok a4 = b.a4; // ok a4 = b.a5; // ok a4 = b.a6; // ok, same number of params -a5 = function () { return 1; }; // ok, fewer required params -a5 = function (x, y) { return 1; }; // ok, fewer required params -a5 = function (x) { return 1; }; // ok, fewer params in lambda -a5 = function (x, y) { return 1; }; // ok, same number of params +a5 = () => 1; // ok, fewer required params +a5 = (x, y) => 1; // ok, fewer required params +a5 = (x) => 1; // ok, fewer params in lambda +a5 = (x, y) => 1; // ok, same number of params a5 = b.a; // ok a5 = b.a2; // ok a5 = b.a3; // ok, fewer params in b.a3 diff --git a/tests/baselines/reference/assignmentCompatWithCallSignaturesWithRestParameters.js b/tests/baselines/reference/assignmentCompatWithCallSignaturesWithRestParameters.js index 200540d6373e7..cfd3135696c11 100644 --- a/tests/baselines/reference/assignmentCompatWithCallSignaturesWithRestParameters.js +++ b/tests/baselines/reference/assignmentCompatWithCallSignaturesWithRestParameters.js @@ -50,76 +50,34 @@ var a4: (x?: number, y?: string, ...z: number[]) => number; //// [assignmentCompatWithCallSignaturesWithRestParameters.js] // call signatures in derived types must have the same or fewer optional parameters as the target for assignment var a; // ok, same number of required params -a = function () { return 1; }; // ok, same number of required params -a = function () { - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i] = arguments[_i]; - } - return 1; -}; // ok, same number of required params -a = function () { - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i] = arguments[_i]; - } - return 1; -}; // error, type mismatch -a = function (x) { return 1; }; // ok, same number of required params -a = function (x, y, z) { return 1; }; // ok, same number of required params -a = function (x) { return 1; }; // ok, rest param corresponds to infinite number of params -a = function (x) { return 1; }; // error, incompatible type +a = () => 1; // ok, same number of required params +a = (...args) => 1; // ok, same number of required params +a = (...args) => 1; // error, type mismatch +a = (x) => 1; // ok, same number of required params +a = (x, y, z) => 1; // ok, same number of required params +a = (x) => 1; // ok, rest param corresponds to infinite number of params +a = (x) => 1; // error, incompatible type var a2; -a2 = function () { return 1; }; // ok, fewer required params -a2 = function () { - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i] = arguments[_i]; - } - return 1; -}; // ok, fewer required params -a2 = function (x) { return 1; }; // ok, fewer required params -a2 = function (x) { return 1; }; // ok, same number of required params -a2 = function (x) { - var args = []; - for (var _i = 1; _i < arguments.length; _i++) { - args[_i - 1] = arguments[_i]; - } - return 1; -}; // ok, same number of required params -a2 = function (x) { - var args = []; - for (var _i = 1; _i < arguments.length; _i++) { - args[_i - 1] = arguments[_i]; - } - return 1; -}; // should be type mismatch error -a2 = function (x, y) { return 1; }; // ok, rest param corresponds to infinite number of params -a2 = function (x, y) { return 1; }; // ok, same number of required params +a2 = () => 1; // ok, fewer required params +a2 = (...args) => 1; // ok, fewer required params +a2 = (x) => 1; // ok, fewer required params +a2 = (x) => 1; // ok, same number of required params +a2 = (x, ...args) => 1; // ok, same number of required params +a2 = (x, ...args) => 1; // should be type mismatch error +a2 = (x, y) => 1; // ok, rest param corresponds to infinite number of params +a2 = (x, y) => 1; // ok, same number of required params var a3; -a3 = function () { return 1; }; // ok, fewer required params -a3 = function (x) { return 1; }; // ok, fewer required params -a3 = function (x) { return 1; }; // ok, same number of required params -a3 = function (x, y) { return 1; }; // ok, all present params match -a3 = function (x, y, z) { return 1; }; // error -a3 = function (x) { - var z = []; - for (var _i = 1; _i < arguments.length; _i++) { - z[_i - 1] = arguments[_i]; - } - return 1; -}; // error -a3 = function (x, y, z) { return 1; }; // error +a3 = () => 1; // ok, fewer required params +a3 = (x) => 1; // ok, fewer required params +a3 = (x) => 1; // ok, same number of required params +a3 = (x, y) => 1; // ok, all present params match +a3 = (x, y, z) => 1; // error +a3 = (x, ...z) => 1; // error +a3 = (x, y, z) => 1; // error var a4; -a4 = function () { return 1; }; // ok, fewer required params -a4 = function (x, y) { return 1; }; // error, type mismatch -a4 = function (x) { return 1; }; // ok, all present params match -a4 = function (x, y) { return 1; }; // error, second param has type mismatch -a4 = function (x, y) { return 1; }; // ok, same number of required params with matching types -a4 = function (x) { - var args = []; - for (var _i = 1; _i < arguments.length; _i++) { - args[_i - 1] = arguments[_i]; - } - return 1; -}; // error, rest params have type mismatch +a4 = () => 1; // ok, fewer required params +a4 = (x, y) => 1; // error, type mismatch +a4 = (x) => 1; // ok, all present params match +a4 = (x, y) => 1; // error, second param has type mismatch +a4 = (x, y) => 1; // ok, same number of required params with matching types +a4 = (x, ...args) => 1; // error, rest params have type mismatch diff --git a/tests/baselines/reference/assignmentCompatWithConstructSignatures.js b/tests/baselines/reference/assignmentCompatWithConstructSignatures.js index fc3f1032914b4..678f1ed9d1ca6 100644 --- a/tests/baselines/reference/assignmentCompatWithConstructSignatures.js +++ b/tests/baselines/reference/assignmentCompatWithConstructSignatures.js @@ -49,9 +49,9 @@ a = a2; // these are errors t = s2; t = a3; -t = function (x) { return 1; }; +t = (x) => 1; t = function (x) { return ''; }; a = s2; a = a3; -a = function (x) { return 1; }; +a = (x) => 1; a = function (x) { return ''; }; diff --git a/tests/baselines/reference/assignmentCompatWithConstructSignatures2.js b/tests/baselines/reference/assignmentCompatWithConstructSignatures2.js index 137507b68a57b..dc3e4f903c766 100644 --- a/tests/baselines/reference/assignmentCompatWithConstructSignatures2.js +++ b/tests/baselines/reference/assignmentCompatWithConstructSignatures2.js @@ -53,16 +53,16 @@ t = a2; a = s; a = a2; // errors -t = function () { return 1; }; +t = () => 1; t = function (x) { return ''; }; -a = function () { return 1; }; +a = () => 1; a = function (x) { return ''; }; // these are errors t = s2; t = a3; -t = function (x) { return 1; }; +t = (x) => 1; t = function (x) { return ''; }; a = s2; a = a3; -a = function (x) { return 1; }; +a = (x) => 1; a = function (x) { return ''; }; diff --git a/tests/baselines/reference/assignmentCompatWithConstructSignatures3.js b/tests/baselines/reference/assignmentCompatWithConstructSignatures3.js index 4e018ae363ac3..c9c3b4f0efaff 100644 --- a/tests/baselines/reference/assignmentCompatWithConstructSignatures3.js +++ b/tests/baselines/reference/assignmentCompatWithConstructSignatures3.js @@ -103,47 +103,14 @@ b18 = a18; // ok //// [assignmentCompatWithConstructSignatures3.js] // checking assignment compatibility relations for function types. All of these are valid. -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -var Base = /** @class */ (function () { - function Base() { - } - return Base; -}()); -var Derived = /** @class */ (function (_super) { - __extends(Derived, _super); - function Derived() { - return _super !== null && _super.apply(this, arguments) || this; - } - return Derived; -}(Base)); -var Derived2 = /** @class */ (function (_super) { - __extends(Derived2, _super); - function Derived2() { - return _super !== null && _super.apply(this, arguments) || this; - } - return Derived2; -}(Derived)); -var OtherDerived = /** @class */ (function (_super) { - __extends(OtherDerived, _super); - function OtherDerived() { - return _super !== null && _super.apply(this, arguments) || this; - } - return OtherDerived; -}(Base)); +class Base { +} +class Derived extends Base { +} +class Derived2 extends Derived { +} +class OtherDerived extends Base { +} a = b; // ok b = a; // ok a2 = b2; // ok diff --git a/tests/baselines/reference/assignmentCompatWithConstructSignatures4.js b/tests/baselines/reference/assignmentCompatWithConstructSignatures4.js index 9e3b6c58fc9e3..e17d36e46a057 100644 --- a/tests/baselines/reference/assignmentCompatWithConstructSignatures4.js +++ b/tests/baselines/reference/assignmentCompatWithConstructSignatures4.js @@ -102,50 +102,17 @@ namespace Errors { //// [assignmentCompatWithConstructSignatures4.js] // checking assignment compatibility relations for function types. -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); var Errors; (function (Errors) { - var Base = /** @class */ (function () { - function Base() { - } - return Base; - }()); - var Derived = /** @class */ (function (_super) { - __extends(Derived, _super); - function Derived() { - return _super !== null && _super.apply(this, arguments) || this; - } - return Derived; - }(Base)); - var Derived2 = /** @class */ (function (_super) { - __extends(Derived2, _super); - function Derived2() { - return _super !== null && _super.apply(this, arguments) || this; - } - return Derived2; - }(Derived)); - var OtherDerived = /** @class */ (function (_super) { - __extends(OtherDerived, _super); - function OtherDerived() { - return _super !== null && _super.apply(this, arguments) || this; - } - return OtherDerived; - }(Base)); - var WithNonGenericSignaturesInBaseType; + class Base { + } + class Derived extends Base { + } + class Derived2 extends Derived { + } + class OtherDerived extends Base { + } + let WithNonGenericSignaturesInBaseType; (function (WithNonGenericSignaturesInBaseType) { a2 = b2; // ok b2 = a2; // ok @@ -168,7 +135,7 @@ var Errors; a17 = b17; // error b17 = a17; // error })(WithNonGenericSignaturesInBaseType || (WithNonGenericSignaturesInBaseType = {})); - var WithGenericSignaturesInBaseType; + let WithGenericSignaturesInBaseType; (function (WithGenericSignaturesInBaseType) { a2 = b2; // ok b2 = a2; // ok diff --git a/tests/baselines/reference/assignmentCompatWithConstructSignatures5.js b/tests/baselines/reference/assignmentCompatWithConstructSignatures5.js index 07460f736472f..cfe57b5c866bc 100644 --- a/tests/baselines/reference/assignmentCompatWithConstructSignatures5.js +++ b/tests/baselines/reference/assignmentCompatWithConstructSignatures5.js @@ -69,47 +69,14 @@ b18 = a18; // ok //// [assignmentCompatWithConstructSignatures5.js] // checking assignment compat for function types. All valid -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -var Base = /** @class */ (function () { - function Base() { - } - return Base; -}()); -var Derived = /** @class */ (function (_super) { - __extends(Derived, _super); - function Derived() { - return _super !== null && _super.apply(this, arguments) || this; - } - return Derived; -}(Base)); -var Derived2 = /** @class */ (function (_super) { - __extends(Derived2, _super); - function Derived2() { - return _super !== null && _super.apply(this, arguments) || this; - } - return Derived2; -}(Derived)); -var OtherDerived = /** @class */ (function (_super) { - __extends(OtherDerived, _super); - function OtherDerived() { - return _super !== null && _super.apply(this, arguments) || this; - } - return OtherDerived; -}(Base)); +class Base { +} +class Derived extends Base { +} +class Derived2 extends Derived { +} +class OtherDerived extends Base { +} a = b; // ok b = a; // ok a2 = b2; // ok diff --git a/tests/baselines/reference/assignmentCompatWithConstructSignatures6.js b/tests/baselines/reference/assignmentCompatWithConstructSignatures6.js index d85d3e9b8f690..8c8ac42b8be07 100644 --- a/tests/baselines/reference/assignmentCompatWithConstructSignatures6.js +++ b/tests/baselines/reference/assignmentCompatWithConstructSignatures6.js @@ -46,47 +46,14 @@ b16 = x.a16; //// [assignmentCompatWithConstructSignatures6.js] // checking assignment compatibility relations for function types. All valid. -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -var Base = /** @class */ (function () { - function Base() { - } - return Base; -}()); -var Derived = /** @class */ (function (_super) { - __extends(Derived, _super); - function Derived() { - return _super !== null && _super.apply(this, arguments) || this; - } - return Derived; -}(Base)); -var Derived2 = /** @class */ (function (_super) { - __extends(Derived2, _super); - function Derived2() { - return _super !== null && _super.apply(this, arguments) || this; - } - return Derived2; -}(Derived)); -var OtherDerived = /** @class */ (function (_super) { - __extends(OtherDerived, _super); - function OtherDerived() { - return _super !== null && _super.apply(this, arguments) || this; - } - return OtherDerived; -}(Base)); +class Base { +} +class Derived extends Base { +} +class Derived2 extends Derived { +} +class OtherDerived extends Base { +} x.a = b; b = x.a; x.a2 = b2; diff --git a/tests/baselines/reference/assignmentCompatWithDiscriminatedUnion.js b/tests/baselines/reference/assignmentCompatWithDiscriminatedUnion.js index 5d9d2a9f8bea9..01d9214511c83 100644 --- a/tests/baselines/reference/assignmentCompatWithDiscriminatedUnion.js +++ b/tests/baselines/reference/assignmentCompatWithDiscriminatedUnion.js @@ -269,7 +269,7 @@ var Example5; // https://github.com/Microsoft/TypeScript/issues/14865 var GH14865; (function (GH14865) { - var a = { type: "A", data: "whatevs" }; + const a = { type: "A", data: "whatevs" }; a.type; // "A" | "B" b.type; // "A" | "B" b = a; // should be assignable @@ -293,8 +293,8 @@ var GH12052; return "linear"; } } - var bad = { type: getAxisType() }; - var good = { type: undefined }; + const bad = { type: getAxisType() }; + const good = { type: undefined }; good.type = getAxisType(); })(GH12052 || (GH12052 = {})); // https://github.com/Microsoft/TypeScript/issues/18421 @@ -311,14 +311,14 @@ var GH15907; (function (GH15907) { function dispatchAction(action) { } - var active = true; + const active = true; dispatchAction({ type: (active ? 'disactivate' : 'activate') }); })(GH15907 || (GH15907 = {})); // https://github.com/Microsoft/TypeScript/issues/20889 var GH20889; (function (GH20889) { function foo(obj1) { - var obj2 = { + const obj2 = { type: obj1.type }; } @@ -326,22 +326,22 @@ var GH20889; // https://github.com/microsoft/TypeScript/issues/39357 var GH39357; (function (GH39357) { - var a = b === "a" || b === "b" ? [b, 1] : ["c", ""]; + const a = b === "a" || b === "b" ? [b, 1] : ["c", ""]; })(GH39357 || (GH39357 = {})); // https://github.com/microsoft/TypeScript/issues/58603 var GH58603; (function (GH58603) { - var MyEnum; + let MyEnum; (function (MyEnum) { MyEnum[MyEnum["A"] = 1] = "A"; MyEnum[MyEnum["B"] = 2] = "B"; })(MyEnum || (MyEnum = {})); function something(a) { } function indirect(kind, id) { - something({ kind: kind, id: id }); + something({ kind, id }); } function test(obj) { - var x1 = obj; - var x2 = { kind: obj.kind, value: obj.value }; + let x1 = obj; + let x2 = { kind: obj.kind, value: obj.value }; } })(GH58603 || (GH58603 = {})); diff --git a/tests/baselines/reference/assignmentCompatWithEnumIndexer.js b/tests/baselines/reference/assignmentCompatWithEnumIndexer.js index cdd80c8bcfced..eeb071a8ef494 100644 --- a/tests/baselines/reference/assignmentCompatWithEnumIndexer.js +++ b/tests/baselines/reference/assignmentCompatWithEnumIndexer.js @@ -13,4 +13,4 @@ var E; (function (E) { E[E["A"] = 0] = "A"; })(E || (E = {})); -var foo = {}; +let foo = {}; diff --git a/tests/baselines/reference/assignmentCompatWithGenericCallSignaturesWithOptionalParameters.js b/tests/baselines/reference/assignmentCompatWithGenericCallSignaturesWithOptionalParameters.js index 722711c2c93ab..942fe3967283e 100644 --- a/tests/baselines/reference/assignmentCompatWithGenericCallSignaturesWithOptionalParameters.js +++ b/tests/baselines/reference/assignmentCompatWithGenericCallSignaturesWithOptionalParameters.js @@ -136,45 +136,37 @@ namespace GenericSignaturesValid { // call signatures in derived types must have the same or fewer optional parameters as the target for assignment var ClassTypeParam; (function (ClassTypeParam) { - var Base = /** @class */ (function () { - function Base() { - var _this = this; - this.init = function () { - _this.a = function () { return null; }; // ok, same T of required params - _this.a = function (x) { return null; }; // ok, same T of required params - _this.a = function (x) { return null; }; // error, too many required params - _this.a2 = function () { return null; }; // ok, same T of required params - _this.a2 = function (x) { return null; }; // ok, same T of required params - _this.a2 = function (x) { return null; }; // ok, same number of params - _this.a3 = function () { return null; }; // ok, fewer required params - _this.a3 = function (x) { return null; }; // ok, fewer required params - _this.a3 = function (x) { return null; }; // ok, same T of required params - _this.a3 = function (x, y) { return null; }; // error, too many required params - _this.a4 = function () { return null; }; // ok, fewer required params - _this.a4 = function (x, y) { return null; }; // ok, fewer required params - _this.a4 = function (x) { return null; }; // ok, same T of required params - _this.a4 = function (x, y) { return null; }; // ok, same number of params - _this.a5 = function () { return null; }; // ok, fewer required params - _this.a5 = function (x, y) { return null; }; // ok, fewer required params - _this.a5 = function (x) { return null; }; // ok, all present params match - _this.a5 = function (x, y) { return null; }; // ok, same number of params + class Base { + constructor() { + this.init = () => { + this.a = () => null; // ok, same T of required params + this.a = (x) => null; // ok, same T of required params + this.a = (x) => null; // error, too many required params + this.a2 = () => null; // ok, same T of required params + this.a2 = (x) => null; // ok, same T of required params + this.a2 = (x) => null; // ok, same number of params + this.a3 = () => null; // ok, fewer required params + this.a3 = (x) => null; // ok, fewer required params + this.a3 = (x) => null; // ok, same T of required params + this.a3 = (x, y) => null; // error, too many required params + this.a4 = () => null; // ok, fewer required params + this.a4 = (x, y) => null; // ok, fewer required params + this.a4 = (x) => null; // ok, same T of required params + this.a4 = (x, y) => null; // ok, same number of params + this.a5 = () => null; // ok, fewer required params + this.a5 = (x, y) => null; // ok, fewer required params + this.a5 = (x) => null; // ok, all present params match + this.a5 = (x, y) => null; // ok, same number of params }; } - return Base; - }()); + } })(ClassTypeParam || (ClassTypeParam = {})); var GenericSignaturesInvalid; (function (GenericSignaturesInvalid) { - var Base2 = /** @class */ (function () { - function Base2() { - } - return Base2; - }()); - var Target = /** @class */ (function () { - function Target() { - } - return Target; - }()); + class Base2 { + } + class Target { + } function foo() { var b; var t; @@ -208,30 +200,28 @@ var GenericSignaturesInvalid; })(GenericSignaturesInvalid || (GenericSignaturesInvalid = {})); var GenericSignaturesValid; (function (GenericSignaturesValid) { - var Base2 = /** @class */ (function () { - function Base2() { - var _this = this; - this.init = function () { - _this.a = function () { return null; }; // ok, same T of required params - _this.a = function (x) { return null; }; // ok, same T of required params - _this.a = function (x) { return null; }; // error, too many required params - _this.a2 = function () { return null; }; // ok, same T of required params - _this.a2 = function (x) { return null; }; // ok, same T of required params - _this.a2 = function (x) { return null; }; // ok, same number of params - _this.a3 = function () { return null; }; // ok, fewer required params - _this.a3 = function (x) { return null; }; // ok, fewer required params - _this.a3 = function (x) { return null; }; // ok, same T of required params - _this.a3 = function (x, y) { return null; }; // error, too many required params - _this.a4 = function () { return null; }; // ok, fewer required params - _this.a4 = function (x, y) { return null; }; // ok, fewer required params - _this.a4 = function (x) { return null; }; // ok, same T of required params - _this.a4 = function (x, y) { return null; }; // ok, same number of params - _this.a5 = function () { return null; }; // ok, fewer required params - _this.a5 = function (x, y) { return null; }; // ok, fewer required params - _this.a5 = function (x) { return null; }; // ok, all present params match - _this.a5 = function (x, y) { return null; }; // ok, same number of params + class Base2 { + constructor() { + this.init = () => { + this.a = () => null; // ok, same T of required params + this.a = (x) => null; // ok, same T of required params + this.a = (x) => null; // error, too many required params + this.a2 = () => null; // ok, same T of required params + this.a2 = (x) => null; // ok, same T of required params + this.a2 = (x) => null; // ok, same number of params + this.a3 = () => null; // ok, fewer required params + this.a3 = (x) => null; // ok, fewer required params + this.a3 = (x) => null; // ok, same T of required params + this.a3 = (x, y) => null; // error, too many required params + this.a4 = () => null; // ok, fewer required params + this.a4 = (x, y) => null; // ok, fewer required params + this.a4 = (x) => null; // ok, same T of required params + this.a4 = (x, y) => null; // ok, same number of params + this.a5 = () => null; // ok, fewer required params + this.a5 = (x, y) => null; // ok, fewer required params + this.a5 = (x) => null; // ok, all present params match + this.a5 = (x, y) => null; // ok, same number of params }; } - return Base2; - }()); + } })(GenericSignaturesValid || (GenericSignaturesValid = {})); diff --git a/tests/baselines/reference/assignmentCompatWithNumericIndexer.js b/tests/baselines/reference/assignmentCompatWithNumericIndexer.js index 20720cf290a71..f7852ecaf58ab 100644 --- a/tests/baselines/reference/assignmentCompatWithNumericIndexer.js +++ b/tests/baselines/reference/assignmentCompatWithNumericIndexer.js @@ -47,44 +47,18 @@ namespace Generics { //// [assignmentCompatWithNumericIndexer.js] // Derived type indexer must be subtype of base type indexer -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -var A = /** @class */ (function () { - function A() { - } - return A; -}()); +class A { +} a = b; b = a; // error a = b2; b2 = a; // error var Generics; (function (Generics) { - var A = /** @class */ (function () { - function A() { - } - return A; - }()); - var B = /** @class */ (function (_super) { - __extends(B, _super); - function B() { - return _super !== null && _super.apply(this, arguments) || this; - } - return B; - }(A)); + class A { + } + class B extends A { + } function foo() { var a; var b; diff --git a/tests/baselines/reference/assignmentCompatWithNumericIndexer3.js b/tests/baselines/reference/assignmentCompatWithNumericIndexer3.js index 9329efbbf3264..1b901a2e9aaea 100644 --- a/tests/baselines/reference/assignmentCompatWithNumericIndexer3.js +++ b/tests/baselines/reference/assignmentCompatWithNumericIndexer3.js @@ -44,44 +44,18 @@ namespace Generics { //// [assignmentCompatWithNumericIndexer3.js] // Derived type indexer must be subtype of base type indexer -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -var A = /** @class */ (function () { - function A() { - } - return A; -}()); +class A { +} a = b; // error b = a; // ok -var B2 = /** @class */ (function (_super) { - __extends(B2, _super); - function B2() { - return _super !== null && _super.apply(this, arguments) || this; - } - return B2; -}(A)); +class B2 extends A { +} a = b2; // ok b2 = a; // error var Generics; (function (Generics) { - var A = /** @class */ (function () { - function A() { - } - return A; - }()); + class A { + } function foo() { var a; var b; diff --git a/tests/baselines/reference/assignmentCompatWithObjectMembers.js b/tests/baselines/reference/assignmentCompatWithObjectMembers.js index 89dc75b5fe122..7b8babe05e507 100644 --- a/tests/baselines/reference/assignmentCompatWithObjectMembers.js +++ b/tests/baselines/reference/assignmentCompatWithObjectMembers.js @@ -92,16 +92,10 @@ namespace ObjectTypes { // no errors expected var SimpleTypes; (function (SimpleTypes) { - var S = /** @class */ (function () { - function S() { - } - return S; - }()); - var T = /** @class */ (function () { - function T() { - } - return T; - }()); + class S { + } + class T { + } var s; var t; var s2; @@ -132,16 +126,10 @@ var SimpleTypes; })(SimpleTypes || (SimpleTypes = {})); var ObjectTypes; (function (ObjectTypes) { - var S = /** @class */ (function () { - function S() { - } - return S; - }()); - var T = /** @class */ (function () { - function T() { - } - return T; - }()); + class S { + } + class T { + } var s; var t; var s2; diff --git a/tests/baselines/reference/assignmentCompatWithObjectMembers2.js b/tests/baselines/reference/assignmentCompatWithObjectMembers2.js index 6bda8ea8ffa18..d17a38e99c3ab 100644 --- a/tests/baselines/reference/assignmentCompatWithObjectMembers2.js +++ b/tests/baselines/reference/assignmentCompatWithObjectMembers2.js @@ -47,16 +47,10 @@ a2 = t; //// [assignmentCompatWithObjectMembers2.js] // members N and M of types S and T have the same name, same accessibility, same optionality, and N is assignable M // additional optional properties do not cause errors -var S = /** @class */ (function () { - function S() { - } - return S; -}()); -var T = /** @class */ (function () { - function T() { - } - return T; -}()); +class S { +} +class T { +} var s; var t; var s2; diff --git a/tests/baselines/reference/assignmentCompatWithObjectMembers3.js b/tests/baselines/reference/assignmentCompatWithObjectMembers3.js index bb71098c20054..33d5a14d979e7 100644 --- a/tests/baselines/reference/assignmentCompatWithObjectMembers3.js +++ b/tests/baselines/reference/assignmentCompatWithObjectMembers3.js @@ -47,16 +47,10 @@ a2 = t; //// [assignmentCompatWithObjectMembers3.js] // members N and M of types S and T have the same name, same accessibility, same optionality, and N is assignable M // additional optional properties do not cause errors -var S = /** @class */ (function () { - function S() { - } - return S; -}()); -var T = /** @class */ (function () { - function T() { - } - return T; -}()); +class S { +} +class T { +} var s; var t; var s2; diff --git a/tests/baselines/reference/assignmentCompatWithObjectMembers4.js b/tests/baselines/reference/assignmentCompatWithObjectMembers4.js index 93cd47af52552..58ecfb8be5232 100644 --- a/tests/baselines/reference/assignmentCompatWithObjectMembers4.js +++ b/tests/baselines/reference/assignmentCompatWithObjectMembers4.js @@ -95,52 +95,18 @@ namespace WithBase { //// [assignmentCompatWithObjectMembers4.js] // members N and M of types S and T have the same name, same accessibility, same optionality, and N is not assignable M -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); var OnlyDerived; (function (OnlyDerived) { - var Base = /** @class */ (function () { - function Base() { - } - return Base; - }()); - var Derived = /** @class */ (function (_super) { - __extends(Derived, _super); - function Derived() { - return _super !== null && _super.apply(this, arguments) || this; - } - return Derived; - }(Base)); - var Derived2 = /** @class */ (function (_super) { - __extends(Derived2, _super); - function Derived2() { - return _super !== null && _super.apply(this, arguments) || this; - } - return Derived2; - }(Base)); - var S = /** @class */ (function () { - function S() { - } - return S; - }()); - var T = /** @class */ (function () { - function T() { - } - return T; - }()); + class Base { + } + class Derived extends Base { + } + class Derived2 extends Base { + } + class S { + } + class T { + } var a2 = { foo: new Derived() }; var b2 = { foo: new Derived2() }; s = t; // error @@ -165,35 +131,16 @@ var OnlyDerived; })(OnlyDerived || (OnlyDerived = {})); var WithBase; (function (WithBase) { - var Base = /** @class */ (function () { - function Base() { - } - return Base; - }()); - var Derived = /** @class */ (function (_super) { - __extends(Derived, _super); - function Derived() { - return _super !== null && _super.apply(this, arguments) || this; - } - return Derived; - }(Base)); - var Derived2 = /** @class */ (function (_super) { - __extends(Derived2, _super); - function Derived2() { - return _super !== null && _super.apply(this, arguments) || this; - } - return Derived2; - }(Base)); - var S = /** @class */ (function () { - function S() { - } - return S; - }()); - var T = /** @class */ (function () { - function T() { - } - return T; - }()); + class Base { + } + class Derived extends Base { + } + class Derived2 extends Base { + } + class S { + } + class T { + } var a2 = { foo: new Base() }; var b2 = { foo: new Derived2() }; s = t; // ok diff --git a/tests/baselines/reference/assignmentCompatWithObjectMembers5.js b/tests/baselines/reference/assignmentCompatWithObjectMembers5.js index 0da7ab9d13299..13e09cccd21fe 100644 --- a/tests/baselines/reference/assignmentCompatWithObjectMembers5.js +++ b/tests/baselines/reference/assignmentCompatWithObjectMembers5.js @@ -17,10 +17,7 @@ c = i; // error i = c; // error //// [assignmentCompatWithObjectMembers5.js] -var C = /** @class */ (function () { - function C() { - } - return C; -}()); +class C { +} c = i; // error i = c; // error diff --git a/tests/baselines/reference/assignmentCompatWithObjectMembersAccessibility.js b/tests/baselines/reference/assignmentCompatWithObjectMembersAccessibility.js index 5a87f367adfa2..20daaf82e1392 100644 --- a/tests/baselines/reference/assignmentCompatWithObjectMembersAccessibility.js +++ b/tests/baselines/reference/assignmentCompatWithObjectMembersAccessibility.js @@ -116,22 +116,13 @@ namespace TargetIsPublic { var TargetIsPublic; (function (TargetIsPublic) { // targets - var Base = /** @class */ (function () { - function Base() { - } - return Base; - }()); + class Base { + } // sources - var D = /** @class */ (function () { - function D() { - } - return D; - }()); - var E = /** @class */ (function () { - function E() { - } - return E; - }()); + class D { + } + class E { + } a = b; a = i; a = d; @@ -156,22 +147,13 @@ var TargetIsPublic; })(TargetIsPublic || (TargetIsPublic = {})); (function (TargetIsPublic) { // targets - var Base = /** @class */ (function () { - function Base() { - } - return Base; - }()); + class Base { + } // sources - var D = /** @class */ (function () { - function D() { - } - return D; - }()); - var E = /** @class */ (function () { - function E() { - } - return E; - }()); + class D { + } + class E { + } a = b; // error a = i; // error a = d; diff --git a/tests/baselines/reference/assignmentCompatWithObjectMembersNumericNames.js b/tests/baselines/reference/assignmentCompatWithObjectMembersNumericNames.js index 836fbe85310de..b6a861f9f508f 100644 --- a/tests/baselines/reference/assignmentCompatWithObjectMembersNumericNames.js +++ b/tests/baselines/reference/assignmentCompatWithObjectMembersNumericNames.js @@ -47,16 +47,10 @@ a2 = t; //// [assignmentCompatWithObjectMembersNumericNames.js] // members N and M of types S and T have the same name, same accessibility, same optionality, and N is assignable M // numeric named properties work correctly, no errors expected -var S = /** @class */ (function () { - function S() { - } - return S; -}()); -var T = /** @class */ (function () { - function T() { - } - return T; -}()); +class S { +} +class T { +} var s; var t; var s2; diff --git a/tests/baselines/reference/assignmentCompatWithObjectMembersOptionality.js b/tests/baselines/reference/assignmentCompatWithObjectMembersOptionality.js index afd0d3f76c549..e20f3c05b7f38 100644 --- a/tests/baselines/reference/assignmentCompatWithObjectMembersOptionality.js +++ b/tests/baselines/reference/assignmentCompatWithObjectMembersOptionality.js @@ -92,40 +92,12 @@ namespace SourceHasOptional { //// [assignmentCompatWithObjectMembersOptionality.js] // Derived member is not optional but base member is, should be ok -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -var Base = /** @class */ (function () { - function Base() { - } - return Base; -}()); -var Derived = /** @class */ (function (_super) { - __extends(Derived, _super); - function Derived() { - return _super !== null && _super.apply(this, arguments) || this; - } - return Derived; -}(Base)); -var Derived2 = /** @class */ (function (_super) { - __extends(Derived2, _super); - function Derived2() { - return _super !== null && _super.apply(this, arguments) || this; - } - return Derived2; -}(Derived)); +class Base { +} +class Derived extends Base { +} +class Derived2 extends Derived { +} var TargetHasOptional; (function (TargetHasOptional) { var b = { opt: new Base() }; diff --git a/tests/baselines/reference/assignmentCompatWithObjectMembersOptionality2.js b/tests/baselines/reference/assignmentCompatWithObjectMembersOptionality2.js index a77437c73b151..b826539c8322a 100644 --- a/tests/baselines/reference/assignmentCompatWithObjectMembersOptionality2.js +++ b/tests/baselines/reference/assignmentCompatWithObjectMembersOptionality2.js @@ -95,40 +95,12 @@ namespace SourceHasOptional { //// [assignmentCompatWithObjectMembersOptionality2.js] // M is optional and S contains no property with the same name as M // N is optional and T contains no property with the same name as N -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -var Base = /** @class */ (function () { - function Base() { - } - return Base; -}()); -var Derived = /** @class */ (function (_super) { - __extends(Derived, _super); - function Derived() { - return _super !== null && _super.apply(this, arguments) || this; - } - return Derived; -}(Base)); -var Derived2 = /** @class */ (function (_super) { - __extends(Derived2, _super); - function Derived2() { - return _super !== null && _super.apply(this, arguments) || this; - } - return Derived2; -}(Derived)); +class Base { +} +class Derived extends Base { +} +class Derived2 extends Derived { +} var TargetHasOptional; (function (TargetHasOptional) { var b = { opt: new Base() }; diff --git a/tests/baselines/reference/assignmentCompatWithObjectMembersStringNumericNames.js b/tests/baselines/reference/assignmentCompatWithObjectMembersStringNumericNames.js index a9fea11c20cfb..97a21b2192768 100644 --- a/tests/baselines/reference/assignmentCompatWithObjectMembersStringNumericNames.js +++ b/tests/baselines/reference/assignmentCompatWithObjectMembersStringNumericNames.js @@ -92,16 +92,10 @@ namespace NumbersAndStrings { // string named numeric properties work correctly, errors below unless otherwise noted var JustStrings; (function (JustStrings) { - var S = /** @class */ (function () { - function S() { - } - return S; - }()); - var T = /** @class */ (function () { - function T() { - } - return T; - }()); + class S { + } + class T { + } var a2 = { '1.0': '' }; var b2 = { '1': '' }; s = t; @@ -126,16 +120,10 @@ var JustStrings; })(JustStrings || (JustStrings = {})); var NumbersAndStrings; (function (NumbersAndStrings) { - var S = /** @class */ (function () { - function S() { - } - return S; - }()); - var T = /** @class */ (function () { - function T() { - } - return T; - }()); + class S { + } + class T { + } var a2 = { '1.0': '' }; var b2 = { 1.: '' }; s = t; // ok diff --git a/tests/baselines/reference/assignmentCompatWithOverloads.js b/tests/baselines/reference/assignmentCompatWithOverloads.js index 7e6d7e0752ab7..ff44cbf7002c4 100644 --- a/tests/baselines/reference/assignmentCompatWithOverloads.js +++ b/tests/baselines/reference/assignmentCompatWithOverloads.js @@ -42,10 +42,8 @@ g = f1; // OK g = f2; // Error g = f3; // Error g = f4; // Error -var C = /** @class */ (function () { - function C(x) { - } - return C; -}()); +class C { + constructor(x) { } +} var d; d = C; // Error diff --git a/tests/baselines/reference/assignmentCompatWithStringIndexer.js b/tests/baselines/reference/assignmentCompatWithStringIndexer.js index ec0713fcc280a..e8ea5651fa5cf 100644 --- a/tests/baselines/reference/assignmentCompatWithStringIndexer.js +++ b/tests/baselines/reference/assignmentCompatWithStringIndexer.js @@ -58,53 +58,22 @@ namespace Generics { //// [assignmentCompatWithStringIndexer.js] // index signatures must be compatible in assignments -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -var A = /** @class */ (function () { - function A() { - } - return A; -}()); +class A { +} a = b; // ok b = a; // error a = b2; // ok b2 = a; // error var Generics; (function (Generics) { - var A = /** @class */ (function () { - function A() { - } - return A; - }()); - var B = /** @class */ (function (_super) { - __extends(B, _super); - function B() { - return _super !== null && _super.apply(this, arguments) || this; - } - return B; - }(A)); + class A { + } + class B extends A { + } a1 = b1; // ok b1 = a1; // error - var B2 = /** @class */ (function (_super) { - __extends(B2, _super); - function B2() { - return _super !== null && _super.apply(this, arguments) || this; - } - return B2; - }(A)); + class B2 extends A { + } a1 = b2; // ok b2 = a1; // error function foo() { diff --git a/tests/baselines/reference/assignmentCompatWithStringIndexer3.js b/tests/baselines/reference/assignmentCompatWithStringIndexer3.js index 0abdb96a66f69..13940ddaa412a 100644 --- a/tests/baselines/reference/assignmentCompatWithStringIndexer3.js +++ b/tests/baselines/reference/assignmentCompatWithStringIndexer3.js @@ -31,11 +31,8 @@ a = b1; // error b1 = a; // error var Generics; (function (Generics) { - var A = /** @class */ (function () { - function A() { - } - return A; - }()); + class A { + } function foo() { var a; var b; diff --git a/tests/baselines/reference/assignmentCompatability10.js b/tests/baselines/reference/assignmentCompatability10.js index dba6b098c2d44..97cf7d99ae31f 100644 --- a/tests/baselines/reference/assignmentCompatability10.js +++ b/tests/baselines/reference/assignmentCompatability10.js @@ -21,13 +21,12 @@ var __test1__; })(__test1__ || (__test1__ = {})); var __test2__; (function (__test2__) { - var classWithPublicAndOptional = /** @class */ (function () { - function classWithPublicAndOptional(one, two) { + class classWithPublicAndOptional { + constructor(one, two) { this.one = one; this.two = two; } - return classWithPublicAndOptional; - }()); + } __test2__.classWithPublicAndOptional = classWithPublicAndOptional; var x4 = new classWithPublicAndOptional(1); ; diff --git a/tests/baselines/reference/assignmentCompatability39.js b/tests/baselines/reference/assignmentCompatability39.js index cdd347ebbb9c0..ed095fc6125ed 100644 --- a/tests/baselines/reference/assignmentCompatability39.js +++ b/tests/baselines/reference/assignmentCompatability39.js @@ -21,13 +21,12 @@ var __test1__; })(__test1__ || (__test1__ = {})); var __test2__; (function (__test2__) { - var classWithTwoPublic = /** @class */ (function () { - function classWithTwoPublic(one, two) { + class classWithTwoPublic { + constructor(one, two) { this.one = one; this.two = two; } - return classWithTwoPublic; - }()); + } __test2__.classWithTwoPublic = classWithTwoPublic; var x2 = new classWithTwoPublic(1, "a"); ; diff --git a/tests/baselines/reference/assignmentCompatability40.js b/tests/baselines/reference/assignmentCompatability40.js index 8b43022760f76..ba25bcee8af47 100644 --- a/tests/baselines/reference/assignmentCompatability40.js +++ b/tests/baselines/reference/assignmentCompatability40.js @@ -21,12 +21,11 @@ var __test1__; })(__test1__ || (__test1__ = {})); var __test2__; (function (__test2__) { - var classWithPrivate = /** @class */ (function () { - function classWithPrivate(one) { + class classWithPrivate { + constructor(one) { this.one = one; } - return classWithPrivate; - }()); + } __test2__.classWithPrivate = classWithPrivate; var x5 = new classWithPrivate(1); ; diff --git a/tests/baselines/reference/assignmentCompatability41.js b/tests/baselines/reference/assignmentCompatability41.js index 70681c2953703..176f6d1a34257 100644 --- a/tests/baselines/reference/assignmentCompatability41.js +++ b/tests/baselines/reference/assignmentCompatability41.js @@ -21,13 +21,12 @@ var __test1__; })(__test1__ || (__test1__ = {})); var __test2__; (function (__test2__) { - var classWithTwoPrivate = /** @class */ (function () { - function classWithTwoPrivate(one, two) { + class classWithTwoPrivate { + constructor(one, two) { this.one = one; this.two = two; } - return classWithTwoPrivate; - }()); + } __test2__.classWithTwoPrivate = classWithTwoPrivate; var x6 = new classWithTwoPrivate(1, "a"); ; diff --git a/tests/baselines/reference/assignmentCompatability42.js b/tests/baselines/reference/assignmentCompatability42.js index 2b088f43a1dbb..3efcdb54a6d63 100644 --- a/tests/baselines/reference/assignmentCompatability42.js +++ b/tests/baselines/reference/assignmentCompatability42.js @@ -21,13 +21,12 @@ var __test1__; })(__test1__ || (__test1__ = {})); var __test2__; (function (__test2__) { - var classWithPublicPrivate = /** @class */ (function () { - function classWithPublicPrivate(one, two) { + class classWithPublicPrivate { + constructor(one, two) { this.one = one; this.two = two; } - return classWithPublicPrivate; - }()); + } __test2__.classWithPublicPrivate = classWithPublicPrivate; var x7 = new classWithPublicPrivate(1, "a"); ; diff --git a/tests/baselines/reference/assignmentCompatability44.js b/tests/baselines/reference/assignmentCompatability44.js index 5550c3ca545e4..738de24a038ba 100644 --- a/tests/baselines/reference/assignmentCompatability44.js +++ b/tests/baselines/reference/assignmentCompatability44.js @@ -9,9 +9,7 @@ const foo: { new(): Foo } = Foo; //// [assignmentCompatability44.js] -var Foo = /** @class */ (function () { - function Foo(x) { - } - return Foo; -}()); -var foo = Foo; +class Foo { + constructor(x) { } +} +const foo = Foo; diff --git a/tests/baselines/reference/assignmentCompatability45.js b/tests/baselines/reference/assignmentCompatability45.js index f712233976267..c7ae1fb63ca81 100644 --- a/tests/baselines/reference/assignmentCompatability45.js +++ b/tests/baselines/reference/assignmentCompatability45.js @@ -11,31 +11,11 @@ const b: typeof A = B; //// [assignmentCompatability45.js] -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -var A = /** @class */ (function () { - function A() { +class A { +} +class B extends A { + constructor(x) { + super(); } - return A; -}()); -var B = /** @class */ (function (_super) { - __extends(B, _super); - function B(x) { - return _super.call(this) || this; - } - return B; -}(A)); -var b = B; +} +const b = B; diff --git a/tests/baselines/reference/assignmentCompatability8.js b/tests/baselines/reference/assignmentCompatability8.js index 513d44ae3af48..e0e9fd7fb5ebf 100644 --- a/tests/baselines/reference/assignmentCompatability8.js +++ b/tests/baselines/reference/assignmentCompatability8.js @@ -21,12 +21,11 @@ var __test1__; })(__test1__ || (__test1__ = {})); var __test2__; (function (__test2__) { - var classWithPublic = /** @class */ (function () { - function classWithPublic(one) { + class classWithPublic { + constructor(one) { this.one = one; } - return classWithPublic; - }()); + } __test2__.classWithPublic = classWithPublic; var x1 = new classWithPublic(1); ; diff --git a/tests/baselines/reference/assignmentCompatability9.js b/tests/baselines/reference/assignmentCompatability9.js index 0a8c0640d109c..f6951b819e576 100644 --- a/tests/baselines/reference/assignmentCompatability9.js +++ b/tests/baselines/reference/assignmentCompatability9.js @@ -21,12 +21,11 @@ var __test1__; })(__test1__ || (__test1__ = {})); var __test2__; (function (__test2__) { - var classWithOptional = /** @class */ (function () { - function classWithOptional(one) { + class classWithOptional { + constructor(one) { this.one = one; } - return classWithOptional; - }()); + } __test2__.classWithOptional = classWithOptional; var x3 = new classWithOptional(); ; diff --git a/tests/baselines/reference/assignmentCompatability_checking-apply-member-off-of-function-interface.js b/tests/baselines/reference/assignmentCompatability_checking-apply-member-off-of-function-interface.js index c233e66b00e3c..96bae1d84ffed 100644 --- a/tests/baselines/reference/assignmentCompatability_checking-apply-member-off-of-function-interface.js +++ b/tests/baselines/reference/assignmentCompatability_checking-apply-member-off-of-function-interface.js @@ -51,4 +51,4 @@ fn(['']); fn(4); fn({}); // Should work -fn(function (a) { }); +fn(a => { }); diff --git a/tests/baselines/reference/assignmentCompatability_checking-call-member-off-of-function-interface.js b/tests/baselines/reference/assignmentCompatability_checking-call-member-off-of-function-interface.js index 2b61c2d1984c9..f4d2de50fcc33 100644 --- a/tests/baselines/reference/assignmentCompatability_checking-call-member-off-of-function-interface.js +++ b/tests/baselines/reference/assignmentCompatability_checking-call-member-off-of-function-interface.js @@ -51,4 +51,4 @@ fn(['']); fn(4); fn({}); // Should work -fn(function (a) { }); +fn(a => { }); diff --git a/tests/baselines/reference/assignmentGenericLookupTypeNarrowing.js b/tests/baselines/reference/assignmentGenericLookupTypeNarrowing.js index 52f6be2d86a20..1c86cba51bbac 100644 --- a/tests/baselines/reference/assignmentGenericLookupTypeNarrowing.js +++ b/tests/baselines/reference/assignmentGenericLookupTypeNarrowing.js @@ -16,10 +16,10 @@ function bar(key: K) { //// [assignmentGenericLookupTypeNarrowing.js] // Repro from #26130 -var mappedObject = { foo: { x: "hello" } }; +let mappedObject = { foo: { x: "hello" } }; function bar(key) { - var element = foo(mappedObject[key]); + const element = foo(mappedObject[key]); if (element == null) return; - var x = element.x; + const x = element.x; } diff --git a/tests/baselines/reference/assignmentIndexedToPrimitives.js b/tests/baselines/reference/assignmentIndexedToPrimitives.js index 8fd43de37243c..ebd79a745d750 100644 --- a/tests/baselines/reference/assignmentIndexedToPrimitives.js +++ b/tests/baselines/reference/assignmentIndexedToPrimitives.js @@ -19,15 +19,15 @@ const so3: string = { 0: "1" }; //// [assignmentIndexedToPrimitives.js] -var n1 = [0]; -var n2 = ["0"]; -var n3 = [0, "1"]; -var n4 = [0]; -var s1 = [0]; -var s2 = ["0"]; -var s3 = [0, "1"]; -var s4 = ["0", "1"]; -var no1 = { 0: 1 }; -var so1 = { 0: 1 }; -var so2 = { "0": 1 }; -var so3 = { 0: "1" }; +const n1 = [0]; +const n2 = ["0"]; +const n3 = [0, "1"]; +const n4 = [0]; +const s1 = [0]; +const s2 = ["0"]; +const s3 = [0, "1"]; +const s4 = ["0", "1"]; +const no1 = { 0: 1 }; +const so1 = { 0: 1 }; +const so2 = { "0": 1 }; +const so3 = { 0: "1" }; diff --git a/tests/baselines/reference/assignmentLHSIsValue.js b/tests/baselines/reference/assignmentLHSIsValue.js index 31df7b43ba226..cc6dd6342a1f4 100644 --- a/tests/baselines/reference/assignmentLHSIsValue.js +++ b/tests/baselines/reference/assignmentLHSIsValue.js @@ -73,32 +73,14 @@ foo() = value; (foo()) = value; //// [assignmentLHSIsValue.js] -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); // expected error for all the LHS of assignments var value; // this -var C = /** @class */ (function () { - function C() { - this = value; - } - C.prototype.foo = function () { this = value; }; - C.sfoo = function () { this = value; }; - return C; -}()); +class C { + constructor() { this = value; } + foo() { this = value; } + static sfoo() { this = value; } +} function foo() { this = value; } this = value; // identifiers: module, class, enum, function @@ -125,23 +107,17 @@ false = value; } value; // array literals -'' = value[0], '' = value[1]; +['', ''] = value; // super -var Derived = /** @class */ (function (_super) { - __extends(Derived, _super); - function Derived() { - var _this = _super.call(this) || this; - _super.prototype. = value; - return _this; - } - Derived.prototype.foo = function () { _super.prototype. = value; }; - Derived.sfoo = function () { _super. = value; }; - return Derived; -}(C)); +class Derived extends C { + constructor() { super(); super. = value; } + foo() { super. = value; } + static sfoo() { super. = value; } +} // function expression function bar() { } value; -(function () { }); +() => { }; value; // function calls foo() = value; diff --git a/tests/baselines/reference/assignmentNestedInLiterals.js b/tests/baselines/reference/assignmentNestedInLiterals.js index a2d6e9547f167..5b70082168b93 100644 --- a/tests/baselines/reference/assignmentNestedInLiterals.js +++ b/tests/baselines/reference/assignmentNestedInLiterals.js @@ -18,6 +18,5 @@ target = [x = 1, y = x]; var aegis, a, b; aegis = { x: a = 1, y: b = a }; var kowloona, c, d; -for (var _i = 0, _a = [c = 1, d = c]; _i < _a.length; _i++) { - kowloona = _a[_i]; +for (kowloona of [c = 1, d = c]) { } diff --git a/tests/baselines/reference/assignmentNonObjectTypeConstraints.js b/tests/baselines/reference/assignmentNonObjectTypeConstraints.js index 2ad82c991588d..5edb595c6d624 100644 --- a/tests/baselines/reference/assignmentNonObjectTypeConstraints.js +++ b/tests/baselines/reference/assignmentNonObjectTypeConstraints.js @@ -27,16 +27,10 @@ function foo(x) { } foo(5); foo(0 /* E.A */); -var A = /** @class */ (function () { - function A() { - } - return A; -}()); -var B = /** @class */ (function () { - function B() { - } - return B; -}()); +class A { +} +class B { +} function bar(x) { var y = x; // Ok } diff --git a/tests/baselines/reference/assignmentRestElementWithErrorSourceType.js b/tests/baselines/reference/assignmentRestElementWithErrorSourceType.js index 748b2b387aa61..7b08e17158db1 100644 --- a/tests/baselines/reference/assignmentRestElementWithErrorSourceType.js +++ b/tests/baselines/reference/assignmentRestElementWithErrorSourceType.js @@ -6,4 +6,4 @@ var tuple: [string, number]; //// [assignmentRestElementWithErrorSourceType.js] var tuple; -c = tupel.slice(0); // intentionally misspelled +[...c] = tupel; // intentionally misspelled diff --git a/tests/baselines/reference/assignmentToConditionalBrandedStringTemplateOrMapping.js b/tests/baselines/reference/assignmentToConditionalBrandedStringTemplateOrMapping.js index 4e6244df8e0e1..c8d43222ce0ed 100644 --- a/tests/baselines/reference/assignmentToConditionalBrandedStringTemplateOrMapping.js +++ b/tests/baselines/reference/assignmentToConditionalBrandedStringTemplateOrMapping.js @@ -13,9 +13,9 @@ c = d; //// [assignmentToConditionalBrandedStringTemplateOrMapping.js] -var a = null; -var b = null; +let a = null; +let b = null; a = b; -var c = null; -var d = null; +let c = null; +let d = null; c = d; diff --git a/tests/baselines/reference/assignmentToExpandingArrayType.js b/tests/baselines/reference/assignmentToExpandingArrayType.js index 7e94d82cb69c7..56ecd88ad8055 100644 --- a/tests/baselines/reference/assignmentToExpandingArrayType.js +++ b/tests/baselines/reference/assignmentToExpandingArrayType.js @@ -31,7 +31,7 @@ x[0] = { foo: 'hi' } //// [assignmentToExpandingArrayType.js] // Fixes exponential time/space in #14628 -var x = []; +let x = []; x[0] = { foo: 'hi' }; x[0] = { foo: 'hi' }; x[0] = { foo: 'hi' }; diff --git a/tests/baselines/reference/assignmentToFunction.js b/tests/baselines/reference/assignmentToFunction.js index e6d01acac961e..6858bf3d9a8d7 100644 --- a/tests/baselines/reference/assignmentToFunction.js +++ b/tests/baselines/reference/assignmentToFunction.js @@ -14,7 +14,7 @@ namespace foo { //// [assignmentToFunction.js] function fn() { } -fn = function () { return 3; }; +fn = () => 3; var foo; (function (foo) { function xyz() { diff --git a/tests/baselines/reference/assignmentToInstantiationExpression.js b/tests/baselines/reference/assignmentToInstantiationExpression.js index e9a1d61ba0ff4..b7bf050b76e74 100644 --- a/tests/baselines/reference/assignmentToInstantiationExpression.js +++ b/tests/baselines/reference/assignmentToInstantiationExpression.js @@ -15,9 +15,9 @@ getValue2 = () => 1234; //// [assignmentToInstantiationExpression.js] "use strict"; -var obj = {}; -(obj.fn) = function () { return 1234; }; -var getValue; -(getValue) = function () { return 1234; }; -var getValue2; -(getValue2) = function () { return 1234; }; +let obj = {}; +(obj.fn) = () => 1234; +let getValue; +(getValue) = () => 1234; +let getValue2; +(getValue2) = () => 1234; diff --git a/tests/baselines/reference/assignmentToObjectAndFunction.js b/tests/baselines/reference/assignmentToObjectAndFunction.js index 216e38ebd05bb..3bc4cc4bcb2f1 100644 --- a/tests/baselines/reference/assignmentToObjectAndFunction.js +++ b/tests/baselines/reference/assignmentToObjectAndFunction.js @@ -34,7 +34,7 @@ var badFundule: Function = bad; // error //// [assignmentToObjectAndFunction.js] var errObj = { toString: 0 }; // Error, incompatible toString var goodObj = { - toString: function (x) { + toString(x) { return ""; } }; // Ok, because toString is a subtype of Object's toString diff --git a/tests/baselines/reference/assignmentToParenthesizedIdentifiers.js b/tests/baselines/reference/assignmentToParenthesizedIdentifiers.js index f7ed48ef43762..f8f18ea30942a 100644 --- a/tests/baselines/reference/assignmentToParenthesizedIdentifiers.js +++ b/tests/baselines/reference/assignmentToParenthesizedIdentifiers.js @@ -92,7 +92,7 @@ M = { y: 3 }; // Error (M) = { y: 3 }; // Error var M2; (function (M2) { - var M3; + let M3; (function (M3) { })(M3 = M2.M3 || (M2.M3 = {})); M3 = { x: 3 }; // Error @@ -104,8 +104,8 @@ M2.M3 = { x: '' }; // Error (M2).M3 = { x: '' }; // Error (M2.M3) = { x: '' }; // Error function fn() { } -fn = function () { return 3; }; // Bug 823548: Should be error (fn is not a reference) -(fn) = function () { return 3; }; // Should be error +fn = () => 3; // Bug 823548: Should be error (fn is not a reference) +(fn) = () => 3; // Should be error function fn2(x, y) { x = 3; (x) = 3; // OK @@ -128,10 +128,7 @@ var E; })(E || (E = {})); E = undefined; // Error (E) = undefined; // Error -var C = /** @class */ (function () { - function C() { - } - return C; -}()); +class C { +} C = undefined; // Error (C) = undefined; // Error diff --git a/tests/baselines/reference/assignmentToReferenceTypes.js b/tests/baselines/reference/assignmentToReferenceTypes.js index b42dcf53f0b08..ac5b8e673d382 100644 --- a/tests/baselines/reference/assignmentToReferenceTypes.js +++ b/tests/baselines/reference/assignmentToReferenceTypes.js @@ -28,11 +28,8 @@ function g(x) { //// [assignmentToReferenceTypes.js] // Should all be allowed M = null; -var C = /** @class */ (function () { - function C() { - } - return C; -}()); +class C { +} C = null; var E; (function (E) { diff --git a/tests/baselines/reference/assignmentToVoidZero2.js b/tests/baselines/reference/assignmentToVoidZero2.js index 530097504ea48..3d12268850d27 100644 --- a/tests/baselines/reference/assignmentToVoidZero2.js +++ b/tests/baselines/reference/assignmentToVoidZero2.js @@ -36,7 +36,7 @@ c.p + c.q; //// [importer.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -var assignmentToVoidZero2_1 = require("./assignmentToVoidZero2"); +const assignmentToVoidZero2_1 = require("./assignmentToVoidZero2"); assignmentToVoidZero2_1.j + assignmentToVoidZero2_1.k; diff --git a/tests/baselines/reference/assignmentTypeNarrowing.js b/tests/baselines/reference/assignmentTypeNarrowing.js index 9d67dd0c50c3b..85457ff356b16 100644 --- a/tests/baselines/reference/assignmentTypeNarrowing.js +++ b/tests/baselines/reference/assignmentTypeNarrowing.js @@ -38,26 +38,24 @@ arr.push({ x: "ok" }); //// [assignmentTypeNarrowing.js] -var _a, _b, _c; -var x; +let x; x = ""; x; // string -x = [true][0]; +[x] = [true]; x; // boolean -_a = [1][0], x = _a === void 0 ? "" : _a; +[x = ""] = [1]; x; // string | number -(x = { x: true }.x); +({ x } = { x: true }); x; // boolean -(x = { y: 1 }.y); +({ y: x } = { y: 1 }); x; // number -(_b = { x: true }.x, x = _b === void 0 ? "" : _b); +({ x = "" } = { x: true }); x; // string | boolean -(_c = { y: 1 }.y, x = _c === void 0 ? /a/ : _c); +({ y: x = /a/ } = { y: 1 }); x; // number | RegExp -var a; -for (var _i = 0, a_1 = a; _i < a_1.length; _i++) { - x = a_1[_i]; +let a; +for (x of a) { x; // string } -var arr = [{ x: "ok" }]; // weak type +const arr = [{ x: "ok" }]; // weak type arr.push({ x: "ok" }); diff --git a/tests/baselines/reference/assignments.js b/tests/baselines/reference/assignments.js index 1e7ff2bcce510..dac0ea346af56 100644 --- a/tests/baselines/reference/assignments.js +++ b/tests/baselines/reference/assignments.js @@ -43,11 +43,8 @@ I = null; // Error // Assign to a parameter // Assign to an interface M = null; // Error -var C = /** @class */ (function () { - function C() { - } - return C; -}()); +class C { +} C = null; // Error var E; (function (E) { diff --git a/tests/baselines/reference/asyncFunctionNoReturnType.js b/tests/baselines/reference/asyncFunctionNoReturnType.js index ef0a529fcc5ad..7b601649bc720 100644 --- a/tests/baselines/reference/asyncFunctionNoReturnType.js +++ b/tests/baselines/reference/asyncFunctionNoReturnType.js @@ -17,38 +17,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; -var __generator = (this && this.__generator) || function (thisArg, body) { - var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype); - return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; - function verb(n) { return function (v) { return step([n, v]); }; } - function step(op) { - if (f) throw new TypeError("Generator is already executing."); - while (g && (g = 0, op[0] && (_ = 0)), _) try { - if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; - if (y = 0, t) op = [op[0] & 2, t.value]; - switch (op[0]) { - case 0: case 1: t = op; break; - case 4: _.label++; return { value: op[1], done: false }; - case 5: _.label++; y = op[1]; op = [0]; continue; - case 7: op = _.ops.pop(); _.trys.pop(); continue; - default: - if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } - if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } - if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } - if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } - if (t[2]) _.ops.pop(); - _.trys.pop(); continue; - } - op = body.call(thisArg, _); - } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } - if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; - } -}; -var _this = this; -(function () { return __awaiter(_this, void 0, void 0, function () { - return __generator(this, function (_a) { - if (window) - return [2 /*return*/]; - return [2 /*return*/]; - }); -}); }); +() => __awaiter(this, void 0, void 0, function* () { + if (window) + return; +}); diff --git a/tests/baselines/reference/asyncFunctionReturnExpressionErrorSpans.js b/tests/baselines/reference/asyncFunctionReturnExpressionErrorSpans.js index 2863404726a47..94f02b0b38843 100644 --- a/tests/baselines/reference/asyncFunctionReturnExpressionErrorSpans.js +++ b/tests/baselines/reference/asyncFunctionReturnExpressionErrorSpans.js @@ -33,45 +33,16 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; -var __generator = (this && this.__generator) || function (thisArg, body) { - var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype); - return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; - function verb(n) { return function (v) { return step([n, v]); }; } - function step(op) { - if (f) throw new TypeError("Generator is already executing."); - while (g && (g = 0, op[0] && (_ = 0)), _) try { - if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; - if (y = 0, t) op = [op[0] & 2, t.value]; - switch (op[0]) { - case 0: case 1: t = op; break; - case 4: _.label++; return { value: op[1], done: false }; - case 5: _.label++; y = op[1]; op = [0]; continue; - case 7: op = _.ops.pop(); _.trys.pop(); continue; - default: - if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } - if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } - if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } - if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } - if (t[2]) _.ops.pop(); - _.trys.pop(); continue; - } - op = body.call(thisArg, _); - } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } - if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; - } -}; function asyncFoo() { - return __awaiter(this, void 0, void 0, function () { - return __generator(this, function (_a) { - return [2 /*return*/, { - bar: { - baz: { - inner: { - thing: 1 - } - } + return __awaiter(this, void 0, void 0, function* () { + return { + bar: { + baz: { + inner: { + thing: 1 } - }]; - }); + } + } + }; }); } diff --git a/tests/baselines/reference/asyncFunctionWithForStatementNoInitializer.js b/tests/baselines/reference/asyncFunctionWithForStatementNoInitializer.js index 8ea440e35cad1..f5175c71944ce 100644 --- a/tests/baselines/reference/asyncFunctionWithForStatementNoInitializer.js +++ b/tests/baselines/reference/asyncFunctionWithForStatementNoInitializer.js @@ -36,74 +36,32 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; -var __generator = (this && this.__generator) || function (thisArg, body) { - var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype); - return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; - function verb(n) { return function (v) { return step([n, v]); }; } - function step(op) { - if (f) throw new TypeError("Generator is already executing."); - while (g && (g = 0, op[0] && (_ = 0)), _) try { - if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; - if (y = 0, t) op = [op[0] & 2, t.value]; - switch (op[0]) { - case 0: case 1: t = op; break; - case 4: _.label++; return { value: op[1], done: false }; - case 5: _.label++; y = op[1]; op = [0]; continue; - case 7: op = _.ops.pop(); _.trys.pop(); continue; - default: - if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } - if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } - if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } - if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } - if (t[2]) _.ops.pop(); - _.trys.pop(); continue; - } - op = body.call(thisArg, _); - } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } - if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; - } -}; function test1() { - return __awaiter(this, void 0, void 0, function () { - var i, limit; - return __generator(this, function (_a) { - i = 0; - limit = 10; - for (; i < limit; ++i) { - } - return [2 /*return*/]; - }); + return __awaiter(this, void 0, void 0, function* () { + let i = 0; + let limit = 10; + for (; i < limit; ++i) { + } }); } function test2() { - return __awaiter(this, void 0, void 0, function () { - var i, limit; - return __generator(this, function (_a) { - i = 0; - limit = 10; - for (i = 1; i < limit; ++i) { - } - return [2 /*return*/]; - }); + return __awaiter(this, void 0, void 0, function* () { + let i = 0; + let limit = 10; + for (i = 1; i < limit; ++i) { + } }); } function test3() { - return __awaiter(this, void 0, void 0, function () { - var i; - return __generator(this, function (_a) { - i = 0; - for (;; ++i) { - } - return [2 /*return*/]; - }); + return __awaiter(this, void 0, void 0, function* () { + let i = 0; + for (;; ++i) { + } }); } function test4() { - return __awaiter(this, void 0, void 0, function () { - return __generator(this, function (_a) { - for (;;) { - } - return [2 /*return*/]; - }); + return __awaiter(this, void 0, void 0, function* () { + for (;;) { + } }); } diff --git a/tests/baselines/reference/asyncImportNestedYield.errors.txt b/tests/baselines/reference/asyncImportNestedYield.errors.txt new file mode 100644 index 0000000000000..203cf410d56d1 --- /dev/null +++ b/tests/baselines/reference/asyncImportNestedYield.errors.txt @@ -0,0 +1,12 @@ +asyncImportNestedYield.ts(2,5): error TS1323: Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', 'node18', 'node20', or 'nodenext'. +asyncImportNestedYield.ts(2,19): error TS1323: Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', 'node18', 'node20', or 'nodenext'. + + +==== asyncImportNestedYield.ts (2 errors) ==== + async function* foo() { + import((await import(yield "foo")).default); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS1323: Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', 'node18', 'node20', or 'nodenext'. + ~~~~~~~~~~~~~~~~~~~ +!!! error TS1323: Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', 'node18', 'node20', or 'nodenext'. + } \ No newline at end of file diff --git a/tests/baselines/reference/asyncImportNestedYield.js b/tests/baselines/reference/asyncImportNestedYield.js index 81ffe76523fa8..e9e1cb5e77e1b 100644 --- a/tests/baselines/reference/asyncImportNestedYield.js +++ b/tests/baselines/reference/asyncImportNestedYield.js @@ -6,66 +6,6 @@ async function* foo() { } //// [asyncImportNestedYield.js] -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || (function () { - var ownKeys = function(o) { - ownKeys = Object.getOwnPropertyNames || function (o) { - var ar = []; - for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; - return ar; - }; - return ownKeys(o); - }; - return function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); - __setModuleDefault(result, mod); - return result; - }; -})(); -var __generator = (this && this.__generator) || function (thisArg, body) { - var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype); - return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; - function verb(n) { return function (v) { return step([n, v]); }; } - function step(op) { - if (f) throw new TypeError("Generator is already executing."); - while (g && (g = 0, op[0] && (_ = 0)), _) try { - if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; - if (y = 0, t) op = [op[0] & 2, t.value]; - switch (op[0]) { - case 0: case 1: t = op; break; - case 4: _.label++; return { value: op[1], done: false }; - case 5: _.label++; y = op[1]; op = [0]; continue; - case 7: op = _.ops.pop(); _.trys.pop(); continue; - default: - if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } - if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } - if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } - if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } - if (t[2]) _.ops.pop(); - _.trys.pop(); continue; - } - op = body.call(thisArg, _); - } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } - if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; - } -}; var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); } var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); @@ -80,16 +20,7 @@ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _ar function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } }; function foo() { - return __asyncGenerator(this, arguments, function foo_1() { - return __generator(this, function (_a) { - switch (_a.label) { - case 0: return [4 /*yield*/, __await("foo")]; - case 1: return [4 /*yield*/, _a.sent()]; - case 2: return [4 /*yield*/, __await.apply(void 0, [Promise.resolve("".concat(_a.sent())).then(function (s) { return __importStar(require(s)); })])]; - case 3: - Promise.resolve("".concat((_a.sent()).default)).then(function (s) { return __importStar(require(s)); }); - return [2 /*return*/]; - } - }); + return __asyncGenerator(this, arguments, function* foo_1() { + import((yield __await(import(yield yield __await("foo")))).default); }); } diff --git a/tests/baselines/reference/asyncImportNestedYield.types b/tests/baselines/reference/asyncImportNestedYield.types index 9a60f026f8753..b1dc1220cc9aa 100644 --- a/tests/baselines/reference/asyncImportNestedYield.types +++ b/tests/baselines/reference/asyncImportNestedYield.types @@ -9,12 +9,15 @@ async function* foo() { >import((await import(yield "foo")).default) : Promise > : ^^^^^^^^^^^^ >(await import(yield "foo")).default : any +> : ^^^ >(await import(yield "foo")) : any > : ^^^ >await import(yield "foo") : any +> : ^^^ >import(yield "foo") : Promise > : ^^^^^^^^^^^^ >yield "foo" : any +> : ^^^ >"foo" : "foo" > : ^^^^^ >default : any diff --git a/tests/baselines/reference/augmentExportEquals1.js b/tests/baselines/reference/augmentExportEquals1.js index 6bc25d7e71bc1..f5d241153b75e 100644 --- a/tests/baselines/reference/augmentExportEquals1.js +++ b/tests/baselines/reference/augmentExportEquals1.js @@ -29,4 +29,4 @@ Object.defineProperty(exports, "__esModule", { value: true }); "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); require("./file2"); -var a; // should not work +let a; // should not work diff --git a/tests/baselines/reference/augmentExportEquals1_1.js b/tests/baselines/reference/augmentExportEquals1_1.js index a640a212e8f6c..9b429a6ba19d7 100644 --- a/tests/baselines/reference/augmentExportEquals1_1.js +++ b/tests/baselines/reference/augmentExportEquals1_1.js @@ -30,5 +30,5 @@ define(["require", "exports"], function (require, exports) { define(["require", "exports", "file2"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var a; // should not work + let a; // should not work }); diff --git a/tests/baselines/reference/augmentExportEquals2.js b/tests/baselines/reference/augmentExportEquals2.js index e565f18dd087a..30c796d8365ae 100644 --- a/tests/baselines/reference/augmentExportEquals2.js +++ b/tests/baselines/reference/augmentExportEquals2.js @@ -28,4 +28,4 @@ Object.defineProperty(exports, "__esModule", { value: true }); "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); require("./file2"); -var a; // should not work +let a; // should not work diff --git a/tests/baselines/reference/augmentExportEquals2_1.js b/tests/baselines/reference/augmentExportEquals2_1.js index 10bc5541bc5c1..22ab46df5d0c0 100644 --- a/tests/baselines/reference/augmentExportEquals2_1.js +++ b/tests/baselines/reference/augmentExportEquals2_1.js @@ -29,5 +29,5 @@ define(["require", "exports"], function (require, exports) { define(["require", "exports", "file2"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var a; // should not work + let a; // should not work }); diff --git a/tests/baselines/reference/augmentExportEquals3.js b/tests/baselines/reference/augmentExportEquals3.js index 7f07f319f774f..8fb564804f8af 100644 --- a/tests/baselines/reference/augmentExportEquals3.js +++ b/tests/baselines/reference/augmentExportEquals3.js @@ -33,7 +33,7 @@ module.exports = foo; //// [file2.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -var x = require("./file1"); +const x = require("./file1"); x.b = 1; //// [file3.js] "use strict"; @@ -71,7 +71,7 @@ var __importStar = (this && this.__importStar) || (function () { }; })(); Object.defineProperty(exports, "__esModule", { value: true }); -var x = __importStar(require("./file1")); +const x = __importStar(require("./file1")); require("./file2"); -var a; -var b = x.b; +let a; +let b = x.b; diff --git a/tests/baselines/reference/augmentExportEquals3_1.js b/tests/baselines/reference/augmentExportEquals3_1.js index 02af1776b5216..2dfb3376fa452 100644 --- a/tests/baselines/reference/augmentExportEquals3_1.js +++ b/tests/baselines/reference/augmentExportEquals3_1.js @@ -71,6 +71,6 @@ define(["require", "exports", "file1", "file2"], function (require, exports, x) "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); x = __importStar(x); - var a; - var b = x.b; + let a; + let b = x.b; }); diff --git a/tests/baselines/reference/augmentExportEquals4.js b/tests/baselines/reference/augmentExportEquals4.js index fd55f8017fcb1..411afefd7aa74 100644 --- a/tests/baselines/reference/augmentExportEquals4.js +++ b/tests/baselines/reference/augmentExportEquals4.js @@ -25,11 +25,8 @@ let b = x.b; //// [file1.js] "use strict"; -var foo = /** @class */ (function () { - function foo() { - } - return foo; -}()); +class foo { +} (function (foo) { foo.v = 1; })(foo || (foo = {})); @@ -37,7 +34,7 @@ module.exports = foo; //// [file2.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -var x = require("./file1"); +const x = require("./file1"); x.b = 1; //// [file3.js] "use strict"; @@ -75,7 +72,7 @@ var __importStar = (this && this.__importStar) || (function () { }; })(); Object.defineProperty(exports, "__esModule", { value: true }); -var x = __importStar(require("./file1")); +const x = __importStar(require("./file1")); require("./file2"); -var a; -var b = x.b; +let a; +let b = x.b; diff --git a/tests/baselines/reference/augmentExportEquals4_1.js b/tests/baselines/reference/augmentExportEquals4_1.js index f17e1ae069a6e..cdb6b86a996fb 100644 --- a/tests/baselines/reference/augmentExportEquals4_1.js +++ b/tests/baselines/reference/augmentExportEquals4_1.js @@ -71,6 +71,6 @@ define(["require", "exports", "file1", "file2"], function (require, exports, x) "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); x = __importStar(x); - var a; - var b = x.b; + let a; + let b = x.b; }); diff --git a/tests/baselines/reference/augmentExportEquals5.js b/tests/baselines/reference/augmentExportEquals5.js index 70efe35ff7f67..1a1ec6a41e996 100644 --- a/tests/baselines/reference/augmentExportEquals5.js +++ b/tests/baselines/reference/augmentExportEquals5.js @@ -87,5 +87,5 @@ Object.defineProperty(exports, "__esModule", { value: true }); "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); require("./augmentation"); -var x; -var y = x.id; +let x; +const y = x.id; diff --git a/tests/baselines/reference/augmentExportEquals6.js b/tests/baselines/reference/augmentExportEquals6.js index 5dc782ed8552e..b55de356a7773 100644 --- a/tests/baselines/reference/augmentExportEquals6.js +++ b/tests/baselines/reference/augmentExportEquals6.js @@ -29,19 +29,13 @@ let c = x.B.b; //// [file1.js] "use strict"; -var foo = /** @class */ (function () { - function foo() { - } - return foo; -}()); +class foo { +} (function (foo) { - var A = /** @class */ (function () { - function A() { - } - return A; - }()); + class A { + } foo.A = A; - var B; + let B; (function (B) { })(B = foo.B || (foo.B = {})); })(foo || (foo = {})); @@ -49,7 +43,7 @@ module.exports = foo; //// [file2.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -var x = require("./file1"); +const x = require("./file1"); x.B.b = 1; //// [file3.js] "use strict"; @@ -87,8 +81,8 @@ var __importStar = (this && this.__importStar) || (function () { }; })(); Object.defineProperty(exports, "__esModule", { value: true }); -var x = __importStar(require("./file1")); +const x = __importStar(require("./file1")); require("./file2"); -var a; -var b = a.a; -var c = x.B.b; +let a; +let b = a.a; +let c = x.B.b; diff --git a/tests/baselines/reference/augmentExportEquals6_1.js b/tests/baselines/reference/augmentExportEquals6_1.js index 4a3442327afe3..8ffe7b3a33d82 100644 --- a/tests/baselines/reference/augmentExportEquals6_1.js +++ b/tests/baselines/reference/augmentExportEquals6_1.js @@ -34,6 +34,6 @@ define(["require", "exports"], function (require, exports) { define(["require", "exports", "file2"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var a; - var b = a.a; + let a; + let b = a.a; }); diff --git a/tests/baselines/reference/augmentedTypeAssignmentCompatIndexSignature.js b/tests/baselines/reference/augmentedTypeAssignmentCompatIndexSignature.js index 186a8ed20f8c5..ff2f989ff79cf 100644 --- a/tests/baselines/reference/augmentedTypeAssignmentCompatIndexSignature.js +++ b/tests/baselines/reference/augmentedTypeAssignmentCompatIndexSignature.js @@ -25,6 +25,6 @@ var v2: { //// [augmentedTypeAssignmentCompatIndexSignature.js] var o = {}; -var f = function () { }; +var f = () => { }; var v1 = o; // Should be allowed var v2 = f; // Should be allowed diff --git a/tests/baselines/reference/augmentedTypeBracketAccessIndexSignature.js b/tests/baselines/reference/augmentedTypeBracketAccessIndexSignature.js index b69be07fad64c..144065f73e53a 100644 --- a/tests/baselines/reference/augmentedTypeBracketAccessIndexSignature.js +++ b/tests/baselines/reference/augmentedTypeBracketAccessIndexSignature.js @@ -17,4 +17,4 @@ var b = (() => { })[0]; // Should be Bar //// [augmentedTypeBracketAccessIndexSignature.js] var a = {}[0]; // Should be Foo -var b = (function () { })[0]; // Should be Bar +var b = (() => { })[0]; // Should be Bar diff --git a/tests/baselines/reference/augmentedTypesClass.js b/tests/baselines/reference/augmentedTypesClass.js index 9116fe462689a..e1c7e35bf53cc 100644 --- a/tests/baselines/reference/augmentedTypesClass.js +++ b/tests/baselines/reference/augmentedTypesClass.js @@ -11,20 +11,14 @@ enum c4 { One } // error //// [augmentedTypesClass.js] //// class then var -var c1 = /** @class */ (function () { - function c1() { - } - c1.prototype.foo = function () { }; - return c1; -}()); +class c1 { + foo() { } +} var c1 = 1; // error //// class then enum -var c4 = /** @class */ (function () { - function c4() { - } - c4.prototype.foo = function () { }; - return c4; -}()); +class c4 { + foo() { } +} (function (c4) { c4[c4["One"] = 0] = "One"; })(c4 || (c4 = {})); // error diff --git a/tests/baselines/reference/augmentedTypesClass2.js b/tests/baselines/reference/augmentedTypesClass2.js index 0914b61b049f2..e90cc001fab2b 100644 --- a/tests/baselines/reference/augmentedTypesClass2.js +++ b/tests/baselines/reference/augmentedTypesClass2.js @@ -35,34 +35,25 @@ class c44 { //// [augmentedTypesClass2.js] // Checking class with other things in type space not value space // class then interface -var c11 = /** @class */ (function () { - function c11() { - } - c11.prototype.foo = function () { +class c11 { + foo() { return 1; - }; - return c11; -}()); + } +} // class then class - covered // class then enum -var c33 = /** @class */ (function () { - function c33() { - } - c33.prototype.foo = function () { +class c33 { + foo() { return 1; - }; - return c33; -}()); + } +} (function (c33) { c33[c33["One"] = 0] = "One"; })(c33 || (c33 = {})); ; // class then import -var c44 = /** @class */ (function () { - function c44() { - } - c44.prototype.foo = function () { +class c44 { + foo() { return 1; - }; - return c44; -}()); + } +} diff --git a/tests/baselines/reference/augmentedTypesClass2a.js b/tests/baselines/reference/augmentedTypesClass2a.js index 2de4ff0e052e0..79d5f848912cd 100644 --- a/tests/baselines/reference/augmentedTypesClass2a.js +++ b/tests/baselines/reference/augmentedTypesClass2a.js @@ -8,11 +8,8 @@ var c2 = () => { } //// [augmentedTypesClass2a.js] //// class then function -var c2 = /** @class */ (function () { - function c2() { - } - c2.prototype.foo = function () { }; - return c2; -}()); // error +class c2 { + foo() { } +} // error function c2() { } // error -var c2 = function () { }; +var c2 = () => { }; diff --git a/tests/baselines/reference/augmentedTypesClass3.js b/tests/baselines/reference/augmentedTypesClass3.js index 169181343a59d..262b861001567 100644 --- a/tests/baselines/reference/augmentedTypesClass3.js +++ b/tests/baselines/reference/augmentedTypesClass3.js @@ -17,35 +17,23 @@ class c5c { public foo() { } } //// [augmentedTypesClass3.js] // class then module -var c5 = /** @class */ (function () { - function c5() { - } - c5.prototype.foo = function () { }; - return c5; -}()); -var c5a = /** @class */ (function () { - function c5a() { - } - c5a.prototype.foo = function () { }; - return c5a; -}()); +class c5 { + foo() { } +} +class c5a { + foo() { } +} (function (c5a) { var y = 2; })(c5a || (c5a = {})); // should be ok -var c5b = /** @class */ (function () { - function c5b() { - } - c5b.prototype.foo = function () { }; - return c5b; -}()); +class c5b { + foo() { } +} (function (c5b) { c5b.y = 2; })(c5b || (c5b = {})); // should be ok //// class then import -var c5c = /** @class */ (function () { - function c5c() { - } - c5c.prototype.foo = function () { }; - return c5c; -}()); +class c5c { + foo() { } +} //import c5c = require(''); diff --git a/tests/baselines/reference/augmentedTypesClass4.js b/tests/baselines/reference/augmentedTypesClass4.js index bb790c245e84f..5ed89197d80e4 100644 --- a/tests/baselines/reference/augmentedTypesClass4.js +++ b/tests/baselines/reference/augmentedTypesClass4.js @@ -8,15 +8,9 @@ class c3 { public bar() { } } // error //// [augmentedTypesClass4.js] //// class then class -var c3 = /** @class */ (function () { - function c3() { - } - c3.prototype.foo = function () { }; - return c3; -}()); // error -var c3 = /** @class */ (function () { - function c3() { - } - c3.prototype.bar = function () { }; - return c3; -}()); // error +class c3 { + foo() { } +} // error +class c3 { + bar() { } +} // error diff --git a/tests/baselines/reference/augmentedTypesEnum.js b/tests/baselines/reference/augmentedTypesEnum.js index e3113ae4be800..53aca02cd2eed 100644 --- a/tests/baselines/reference/augmentedTypesEnum.js +++ b/tests/baselines/reference/augmentedTypesEnum.js @@ -54,18 +54,15 @@ var e3; (function (e3) { e3[e3["One"] = 0] = "One"; })(e3 || (e3 = {})); // error -var e3 = function () { }; // error +var e3 = () => { }; // error // enum then class var e4; (function (e4) { e4[e4["One"] = 0] = "One"; })(e4 || (e4 = {})); // error -var e4 = /** @class */ (function () { - function e4() { - } - e4.prototype.foo = function () { }; - return e4; -}()); // error +class e4 { + foo() { } +} // error // enum then enum var e5; (function (e5) { diff --git a/tests/baselines/reference/augmentedTypesEnum2.js b/tests/baselines/reference/augmentedTypesEnum2.js index bb376f71c34db..94e29b5afe1e5 100644 --- a/tests/baselines/reference/augmentedTypesEnum2.js +++ b/tests/baselines/reference/augmentedTypesEnum2.js @@ -34,13 +34,10 @@ var e2; e2[e2["One"] = 0] = "One"; })(e2 || (e2 = {})); ; // error -var e2 = /** @class */ (function () { - function e2() { - } - e2.prototype.foo = function () { +class e2 { + foo() { return 1; - }; - return e2; -}()); + } +} //enum then enum - covered //enum then import - covered diff --git a/tests/baselines/reference/augmentedTypesExternalModule1.js b/tests/baselines/reference/augmentedTypesExternalModule1.js index cb2493cdd5fa5..43bde053d3905 100644 --- a/tests/baselines/reference/augmentedTypesExternalModule1.js +++ b/tests/baselines/reference/augmentedTypesExternalModule1.js @@ -11,10 +11,7 @@ define(["require", "exports"], function (require, exports) { Object.defineProperty(exports, "__esModule", { value: true }); exports.a = void 0; exports.a = 1; - var c5 = /** @class */ (function () { - function c5() { - } - c5.prototype.foo = function () { }; - return c5; - }()); + class c5 { + foo() { } + } }); diff --git a/tests/baselines/reference/augmentedTypesFunction.js b/tests/baselines/reference/augmentedTypesFunction.js index 504a24e955813..4da5627a3e481 100644 --- a/tests/baselines/reference/augmentedTypesFunction.js +++ b/tests/baselines/reference/augmentedTypesFunction.js @@ -48,21 +48,15 @@ var y1 = 1; // error function y2() { } // error function y2() { } // error function y2a() { } // error -var y2a = function () { }; // error +var y2a = () => { }; // error // function then class function y3() { } // error -var y3 = /** @class */ (function () { - function y3() { - } - return y3; -}()); // error +class y3 { +} // error function y3a() { } // error -var y3a = /** @class */ (function () { - function y3a() { - } - y3a.prototype.foo = function () { }; - return y3a; -}()); // error +class y3a { + foo() { } +} // error // function then enum function y4() { } // error (function (y4) { diff --git a/tests/baselines/reference/augmentedTypesInterface.js b/tests/baselines/reference/augmentedTypesInterface.js index c0b7abd7b5c1e..0d3698bb3908f 100644 --- a/tests/baselines/reference/augmentedTypesInterface.js +++ b/tests/baselines/reference/augmentedTypesInterface.js @@ -37,14 +37,11 @@ interface i4 { //// [augmentedTypesInterface.js] // interface then interface -var i2 = /** @class */ (function () { - function i2() { - } - i2.prototype.bar = function () { +class i2 { + bar() { return 1; - }; - return i2; -}()); + } +} var i3; (function (i3) { i3[i3["One"] = 0] = "One"; diff --git a/tests/baselines/reference/augmentedTypesModules.js b/tests/baselines/reference/augmentedTypesModules.js index ebcd8b49b9c69..1ec3070df5228 100644 --- a/tests/baselines/reference/augmentedTypesModules.js +++ b/tests/baselines/reference/augmentedTypesModules.js @@ -114,12 +114,9 @@ var m1b = 1; // error var m1c = 1; // Should be allowed var m1d; (function (m1d) { - var I = /** @class */ (function () { - function I() { - } - I.prototype.foo = function () { }; - return I; - }()); + class I { + foo() { } + } m1d.I = I; })(m1d || (m1d = {})); var m1d = 1; // error @@ -148,44 +145,29 @@ function m2f() { } function m2g() { } ; (function (m2g) { - var C = /** @class */ (function () { - function C() { - } - C.prototype.foo = function () { }; - return C; - }()); + class C { + foo() { } + } m2g.C = C; })(m2g || (m2g = {})); -var m3 = /** @class */ (function () { - function m3() { - } - return m3; -}()); // ok since the module is not instantiated +class m3 { +} // ok since the module is not instantiated var m3a; (function (m3a) { var y = 2; })(m3a || (m3a = {})); -var m3a = /** @class */ (function () { - function m3a() { - } - m3a.prototype.foo = function () { }; - return m3a; -}()); // error, class isn't ambient or declared before the module -var m3b = /** @class */ (function () { - function m3b() { - } - m3b.prototype.foo = function () { }; - return m3b; -}()); +class m3a { + foo() { } +} // error, class isn't ambient or declared before the module +class m3b { + foo() { } +} (function (m3b) { var y = 2; })(m3b || (m3b = {})); -var m3c = /** @class */ (function () { - function m3c() { - } - m3c.prototype.foo = function () { }; - return m3c; -}()); +class m3c { + foo() { } +} (function (m3c) { m3c.y = 2; })(m3c || (m3c = {})); @@ -199,12 +181,9 @@ var m3e; })(m3e || (m3e = {})); var m3g; (function (m3g) { - var C = /** @class */ (function () { - function C() { - } - C.prototype.foo = function () { }; - return C; - }()); + class C { + foo() { } + } m3g.C = C; })(m3g || (m3g = {})); var m4; @@ -230,12 +209,9 @@ var m4c; })(m4c || (m4c = {})); var m4d; (function (m4d) { - var C = /** @class */ (function () { - function C() { - } - C.prototype.foo = function () { }; - return C; - }()); + class C { + foo() { } + } })(m4d || (m4d = {})); (function (m4d) { m4d[m4d["One"] = 0] = "One"; diff --git a/tests/baselines/reference/augmentedTypesModules2.js b/tests/baselines/reference/augmentedTypesModules2.js index 033af2984ef9e..b1ec007ab8bce 100644 --- a/tests/baselines/reference/augmentedTypesModules2.js +++ b/tests/baselines/reference/augmentedTypesModules2.js @@ -61,11 +61,8 @@ function m2f() { } function m2g() { } ; (function (m2g) { - var C = /** @class */ (function () { - function C() { - } - C.prototype.foo = function () { }; - return C; - }()); + class C { + foo() { } + } m2g.C = C; })(m2g || (m2g = {})); diff --git a/tests/baselines/reference/augmentedTypesModules3.js b/tests/baselines/reference/augmentedTypesModules3.js index 68f37176f7562..5fff2254b4848 100644 --- a/tests/baselines/reference/augmentedTypesModules3.js +++ b/tests/baselines/reference/augmentedTypesModules3.js @@ -9,18 +9,12 @@ namespace m3a { var y = 2; } class m3a { foo() { } } // error, class isn't ambient or declared before the module //// [augmentedTypesModules3.js] -var m3 = /** @class */ (function () { - function m3() { - } - return m3; -}()); // ok since the module is not instantiated +class m3 { +} // ok since the module is not instantiated var m3a; (function (m3a) { var y = 2; })(m3a || (m3a = {})); -var m3a = /** @class */ (function () { - function m3a() { - } - m3a.prototype.foo = function () { }; - return m3a; -}()); // error, class isn't ambient or declared before the module +class m3a { + foo() { } +} // error, class isn't ambient or declared before the module diff --git a/tests/baselines/reference/augmentedTypesModules3b.js b/tests/baselines/reference/augmentedTypesModules3b.js index 5ead3326ecc74..b5029a3aae155 100644 --- a/tests/baselines/reference/augmentedTypesModules3b.js +++ b/tests/baselines/reference/augmentedTypesModules3b.js @@ -21,21 +21,15 @@ namespace m3g { export class C { foo() { } } } //// [augmentedTypesModules3b.js] -var m3b = /** @class */ (function () { - function m3b() { - } - m3b.prototype.foo = function () { }; - return m3b; -}()); +class m3b { + foo() { } +} (function (m3b) { var y = 2; })(m3b || (m3b = {})); -var m3c = /** @class */ (function () { - function m3c() { - } - m3c.prototype.foo = function () { }; - return m3c; -}()); +class m3c { + foo() { } +} (function (m3c) { m3c.y = 2; })(m3c || (m3c = {})); @@ -49,11 +43,8 @@ var m3e; })(m3e || (m3e = {})); var m3g; (function (m3g) { - var C = /** @class */ (function () { - function C() { - } - C.prototype.foo = function () { }; - return C; - }()); + class C { + foo() { } + } m3g.C = C; })(m3g || (m3g = {})); diff --git a/tests/baselines/reference/augmentedTypesModules4.js b/tests/baselines/reference/augmentedTypesModules4.js index 461db76d6d809..5fb8bedfec4f1 100644 --- a/tests/baselines/reference/augmentedTypesModules4.js +++ b/tests/baselines/reference/augmentedTypesModules4.js @@ -48,12 +48,9 @@ var m4c; })(m4c || (m4c = {})); var m4d; (function (m4d) { - var C = /** @class */ (function () { - function C() { - } - C.prototype.foo = function () { }; - return C; - }()); + class C { + foo() { } + } })(m4d || (m4d = {})); (function (m4d) { m4d[m4d["One"] = 0] = "One"; diff --git a/tests/baselines/reference/augmentedTypesVar.js b/tests/baselines/reference/augmentedTypesVar.js index 1b315124bf37e..2817c4255a424 100644 --- a/tests/baselines/reference/augmentedTypesVar.js +++ b/tests/baselines/reference/augmentedTypesVar.js @@ -46,21 +46,15 @@ var x1 = 2; var x2 = 1; // error function x2() { } // error var x3 = 1; -var x3 = function () { }; // error +var x3 = () => { }; // error // var then class var x4 = 1; // error -var x4 = /** @class */ (function () { - function x4() { - } - return x4; -}()); // error +class x4 { +} // error var x4a = 1; // error -var x4a = /** @class */ (function () { - function x4a() { - } - x4a.prototype.foo = function () { }; - return x4a; -}()); // error +class x4a { + foo() { } +} // error // var then enum var x5 = 1; var x5; diff --git a/tests/baselines/reference/autoAsiForStaticsInClassDeclaration.js b/tests/baselines/reference/autoAsiForStaticsInClassDeclaration.js index 4f8c382ee555b..584e598d15964 100644 --- a/tests/baselines/reference/autoAsiForStaticsInClassDeclaration.js +++ b/tests/baselines/reference/autoAsiForStaticsInClassDeclaration.js @@ -7,8 +7,5 @@ class C { } //// [autoAsiForStaticsInClassDeclaration.js] -var C = /** @class */ (function () { - function C() { - } - return C; -}()); +class C { +} diff --git a/tests/baselines/reference/autoLift2.js b/tests/baselines/reference/autoLift2.js index 09e5f9f812775..bf8f1ef831e6a 100644 --- a/tests/baselines/reference/autoLift2.js +++ b/tests/baselines/reference/autoLift2.js @@ -34,21 +34,19 @@ a.baz(); //// [autoLift2.js] -var A = /** @class */ (function () { - function A() { +class A { + constructor() { this.foo; any; this.bar; any; } - A.prototype.baz = function () { - var _this = this; + baz() { this.foo = "foo"; this.bar = "bar"; - [1, 2].forEach(function (p) { return _this.foo; }); - [1, 2].forEach(function (p) { return _this.bar; }); - }; - return A; -}()); + [1, 2].forEach((p) => this.foo); + [1, 2].forEach((p) => this.bar); + } +} var a = new A(); a.baz(); diff --git a/tests/baselines/reference/autolift3.js b/tests/baselines/reference/autolift3.js index 67e174c4e3ebc..0170bd0938ebe 100644 --- a/tests/baselines/reference/autolift3.js +++ b/tests/baselines/reference/autolift3.js @@ -33,8 +33,8 @@ b.foo(); //// [autolift3.js] -var B = /** @class */ (function () { - function B() { +class B { + constructor() { function foo() { } foo(); var a = 0; @@ -50,7 +50,6 @@ var B = /** @class */ (function () { return inner; })(); } - return B; -}()); +} var b = new B(); b.foo(); diff --git a/tests/baselines/reference/autolift4.js b/tests/baselines/reference/autolift4.js index afa4a1b0aee32..f515ab0fa3951 100644 --- a/tests/baselines/reference/autolift4.js +++ b/tests/baselines/reference/autolift4.js @@ -26,41 +26,22 @@ class Point3D extends Point { //// [autolift4.js] -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -var Point = /** @class */ (function () { - function Point(x, y) { +class Point { + constructor(x, y) { this.x = x; this.y = y; } - Point.prototype.getDist = function () { + getDist() { return Math.sqrt(this.x * this.x + this.y * this.y); - }; - Point.origin = new Point(0, 0); - return Point; -}()); -var Point3D = /** @class */ (function (_super) { - __extends(Point3D, _super); - function Point3D(x, y, z, m) { - var _this = _super.call(this, x, y) || this; - _this.z = z; - return _this; } - Point3D.prototype.getDist = function () { +} +Point.origin = new Point(0, 0); +class Point3D extends Point { + constructor(x, y, z, m) { + super(x, y); + this.z = z; + } + getDist() { return Math.sqrt(this.x * this.x + this.y * this.y + this.z * this.m); - }; - return Point3D; -}(Point)); + } +} diff --git a/tests/baselines/reference/avoid.js b/tests/baselines/reference/avoid.js index 0d53ad58d2a0d..e6ec91c9374d3 100644 --- a/tests/baselines/reference/avoid.js +++ b/tests/baselines/reference/avoid.js @@ -29,12 +29,9 @@ var y = f(); // error void fn var why = f(); // error void fn var w; w = f(); // error void fn -var C = /** @class */ (function () { - function C() { +class C { + g() { } - C.prototype.g = function () { - }; - return C; -}()); +} var z = new C().g(); // error void fn var N = new f(); // ok with void fn diff --git a/tests/baselines/reference/avoidListingPropertiesForTypesWithOnlyCallOrConstructSignatures.js b/tests/baselines/reference/avoidListingPropertiesForTypesWithOnlyCallOrConstructSignatures.js index 75d61026b33b7..145a41a8c1257 100644 --- a/tests/baselines/reference/avoidListingPropertiesForTypesWithOnlyCallOrConstructSignatures.js +++ b/tests/baselines/reference/avoidListingPropertiesForTypesWithOnlyCallOrConstructSignatures.js @@ -11,8 +11,5 @@ export let x:Dog = getRover; // export let x: Dog = getRover; //// [avoidListingPropertiesForTypesWithOnlyCallOrConstructSignatures.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.x = void 0; -exports.x = getRover; +export let x = getRover; // export let x: Dog = getRover; diff --git a/tests/baselines/reference/awaitedTypeNoLib.js b/tests/baselines/reference/awaitedTypeNoLib.js index 6a80032cd56da..7dfda44e80b23 100644 --- a/tests/baselines/reference/awaitedTypeNoLib.js +++ b/tests/baselines/reference/awaitedTypeNoLib.js @@ -29,16 +29,13 @@ class Thenable { } //// [awaitedTypeNoLib.js] -var Thenable = /** @class */ (function () { - function Thenable() { - } - Thenable.prototype.then = function (a) { }; - Thenable.prototype.handleResolve = function (result, resolve) { +class Thenable { + then(a) { } + handleResolve(result, resolve) { if (result instanceof Thenable) { // #58547 This previously was a Debug Failure. False expression: type provided should not be a non-generic 'promise'-like. this.resolvePromise(result, resolve); } - }; - Thenable.prototype.resolvePromise = function (result, resolve) { }; - return Thenable; -}()); + } + resolvePromise(result, resolve) { } +} diff --git a/tests/baselines/reference/badArraySyntax.js b/tests/baselines/reference/badArraySyntax.js index 41fac3d3d40ef..ccc5b6cca0660 100644 --- a/tests/baselines/reference/badArraySyntax.js +++ b/tests/baselines/reference/badArraySyntax.js @@ -14,12 +14,11 @@ var a6: Z[][] = new Z [ ] [ ]; //// [badArraySyntax.js] -var Z = /** @class */ (function () { - function Z() { +class Z { + constructor() { this.x = ""; } - return Z; -}()); +} var a1 = []; var a2 = new Z[]; var a3 = new Z[](); diff --git a/tests/baselines/reference/badInferenceLowerPriorityThanGoodInference.js b/tests/baselines/reference/badInferenceLowerPriorityThanGoodInference.js index 483914e932d5b..ef3170d82af99 100644 --- a/tests/baselines/reference/badInferenceLowerPriorityThanGoodInference.js +++ b/tests/baselines/reference/badInferenceLowerPriorityThanGoodInference.js @@ -27,12 +27,12 @@ goofus((a: string) => ({ dog: function() { return a; } })); //// [badInferenceLowerPriorityThanGoodInference.js] // Repro from #13118 -var result = canYouInferThis(function () { return ({ +const result = canYouInferThis(() => ({ a: { BLAH: 33 }, - b: function (x) { } -}); }); + b: x => { } +})); result.BLAH; // Repro from #26629 function goofus(f) { } -goofus(function (a) { return ({ dog: function () { return a; } }); }); -goofus(function (a) { return ({ dog: function () { return a; } }); }); +goofus((a) => ({ dog() { return a; } })); +goofus((a) => ({ dog: function () { return a; } })); diff --git a/tests/baselines/reference/badThisBinding.js b/tests/baselines/reference/badThisBinding.js index 1f7dcb83bf6a9..f0beced472622 100644 --- a/tests/baselines/reference/badThisBinding.js +++ b/tests/baselines/reference/badThisBinding.js @@ -16,14 +16,12 @@ class Greeter { } //// [badThisBinding.js] -var Greeter = /** @class */ (function () { - function Greeter() { - var _this = this; - foo(function () { - bar(function () { - var x = _this; +class Greeter { + constructor() { + foo(() => { + bar(() => { + var x = this; }); }); } - return Greeter; -}()); +} diff --git a/tests/baselines/reference/baseCheck.js b/tests/baselines/reference/baseCheck.js index 5299d685971d5..0dd2617e636eb 100644 --- a/tests/baselines/reference/baseCheck.js +++ b/tests/baselines/reference/baseCheck.js @@ -32,70 +32,40 @@ function f() { //// [baseCheck.js] -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -var C = /** @class */ (function () { - function C(x, y) { - } - return C; -}()); -var ELoc = /** @class */ (function (_super) { - __extends(ELoc, _super); - function ELoc(x) { - return _super.call(this, 0, x) || this; +class C { + constructor(x, y) { } +} +class ELoc extends C { + constructor(x) { + super(0, x); } - return ELoc; -}(C)); -var ELocVar = /** @class */ (function (_super) { - __extends(ELocVar, _super); - function ELocVar(x) { - return _super.call(this, 0, loc) || this; +} +class ELocVar extends C { + constructor(x) { + super(0, loc); } - ELocVar.prototype.m = function () { + m() { var loc = 10; - }; - return ELocVar; -}(C)); -var D = /** @class */ (function (_super) { - __extends(D, _super); - function D(z) { - var _this = _super.call(this, _this.z) || this; - _this.z = z; - return _this; } - return D; -}(C)); // too few params -var E = /** @class */ (function (_super) { - __extends(E, _super); - function E(z) { - var _this = _super.call(this, 0, _this.z) || this; - _this.z = z; - return _this; +} +class D extends C { + constructor(z) { + super(this.z); + this.z = z; + } +} // too few params +class E extends C { + constructor(z) { + super(0, this.z); + this.z = z; } - return E; -}(C)); -var F = /** @class */ (function (_super) { - __extends(F, _super); - function F(z) { - var _this = _super.call(this, "hello", _this.z) || this; - _this.z = z; - return _this; +} +class F extends C { + constructor(z) { + super("hello", this.z); + this.z = z; } - return F; -}(C)); // first param type +} // first param type function f() { if (x < 10) { x = 11; diff --git a/tests/baselines/reference/baseClassImprovedMismatchErrors.js b/tests/baselines/reference/baseClassImprovedMismatchErrors.js index 6ce02320797a8..1515b02488de4 100644 --- a/tests/baselines/reference/baseClassImprovedMismatchErrors.js +++ b/tests/baselines/reference/baseClassImprovedMismatchErrors.js @@ -21,44 +21,18 @@ class DerivedInterface implements Base { } //// [baseClassImprovedMismatchErrors.js] -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -var Base = /** @class */ (function () { - function Base() { - } - Base.prototype.fn = function () { +class Base { + fn() { return 10; - }; - return Base; -}()); -var Derived = /** @class */ (function (_super) { - __extends(Derived, _super); - function Derived() { - return _super !== null && _super.apply(this, arguments) || this; } - Derived.prototype.fn = function () { +} +class Derived extends Base { + fn() { return 10; - }; - return Derived; -}(Base)); -var DerivedInterface = /** @class */ (function () { - function DerivedInterface() { } - DerivedInterface.prototype.fn = function () { +} +class DerivedInterface { + fn() { return 10; - }; - return DerivedInterface; -}()); + } +} diff --git a/tests/baselines/reference/baseConstraintOfDecorator.js b/tests/baselines/reference/baseConstraintOfDecorator.js index 48a2eec64ff83..499398a9f14bc 100644 --- a/tests/baselines/reference/baseConstraintOfDecorator.js +++ b/tests/baselines/reference/baseConstraintOfDecorator.js @@ -22,57 +22,21 @@ export function classExtender2 MyCl //// [baseConstraintOfDecorator.js] -"use strict"; -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -Object.defineProperty(exports, "__esModule", { value: true }); -exports.classExtender = classExtender; -exports.classExtender2 = classExtender2; -function classExtender(superClass, _instanceModifier) { - return /** @class */ (function (_super) { - __extends(decoratorFunc, _super); - function decoratorFunc() { - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i] = arguments[_i]; - } - var _this = _super.apply(this, args) || this; - _instanceModifier(_this, args); - return _this; +export function classExtender(superClass, _instanceModifier) { + return class decoratorFunc extends superClass { + constructor(...args) { + super(...args); + _instanceModifier(this, args); } - return decoratorFunc; - }(superClass)); + }; } -var MyClass = /** @class */ (function () { - function MyClass() { - } - return MyClass; -}()); -function classExtender2(superClass, _instanceModifier) { - return /** @class */ (function (_super) { - __extends(decoratorFunc, _super); - function decoratorFunc() { - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i] = arguments[_i]; - } - var _this = _super.apply(this, args) || this; - _instanceModifier(_this, args); - return _this; +class MyClass { +} +export function classExtender2(superClass, _instanceModifier) { + return class decoratorFunc extends superClass { + constructor(...args) { + super(...args); + _instanceModifier(this, args); } - return decoratorFunc; - }(superClass)); + }; } diff --git a/tests/baselines/reference/baseExpressionTypeParameters.js b/tests/baselines/reference/baseExpressionTypeParameters.js index f8959445f1c2d..8fd5a020125f0 100644 --- a/tests/baselines/reference/baseExpressionTypeParameters.js +++ b/tests/baselines/reference/baseExpressionTypeParameters.js @@ -17,41 +17,13 @@ class Spec extends Gen {} //// [baseExpressionTypeParameters.js] // Repro from #17829 -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); function base() { - var Base = /** @class */ (function () { - function Base() { - } - return Base; - }()); + class Base { + } return Base; } -var Gen = /** @class */ (function (_super) { - __extends(Gen, _super); - function Gen() { - return _super !== null && _super.apply(this, arguments) || this; - } - return Gen; -}(base())); // Error, T not in scope -var Spec = /** @class */ (function (_super) { - __extends(Spec, _super); - function Spec() { - return _super !== null && _super.apply(this, arguments) || this; - } - return Spec; -}(Gen)); +class Gen extends base() { +} // Error, T not in scope +class Spec extends Gen { +} Spec.prop; diff --git a/tests/baselines/reference/baseIndexSignatureResolution.js b/tests/baselines/reference/baseIndexSignatureResolution.js index a03ad13610d3a..998c578d75e39 100644 --- a/tests/baselines/reference/baseIndexSignatureResolution.js +++ b/tests/baselines/reference/baseIndexSignatureResolution.js @@ -27,33 +27,10 @@ var z: Derived = b.foo(); */ //// [baseIndexSignatureResolution.js] -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -var Base = /** @class */ (function () { - function Base() { - } - return Base; -}()); -var Derived = /** @class */ (function (_super) { - __extends(Derived, _super); - function Derived() { - return _super !== null && _super.apply(this, arguments) || this; - } - return Derived; -}(Base)); +class Base { +} +class Derived extends Base { +} var x = null; var y = x[0]; /* diff --git a/tests/baselines/reference/baseTypeAfterDerivedType.js b/tests/baselines/reference/baseTypeAfterDerivedType.js index 133fd2596abf5..90af33747af66 100644 --- a/tests/baselines/reference/baseTypeAfterDerivedType.js +++ b/tests/baselines/reference/baseTypeAfterDerivedType.js @@ -19,14 +19,6 @@ interface Base2 { //// [baseTypeAfterDerivedType.js] -var Derived2 = /** @class */ (function () { - function Derived2() { - } - Derived2.prototype.method = function () { - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i] = arguments[_i]; - } - }; - return Derived2; -}()); +class Derived2 { + method(...args) { } +} diff --git a/tests/baselines/reference/baseTypeOrderChecking.js b/tests/baselines/reference/baseTypeOrderChecking.js index 00abe8514d64b..b70e156b434b0 100644 --- a/tests/baselines/reference/baseTypeOrderChecking.js +++ b/tests/baselines/reference/baseTypeOrderChecking.js @@ -39,43 +39,12 @@ class Class4 extends Class3 //// [baseTypeOrderChecking.js] -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); var someVariable; -var Class1 = /** @class */ (function () { - function Class1() { - } - return Class1; -}()); -var Class2 = /** @class */ (function (_super) { - __extends(Class2, _super); - function Class2() { - return _super !== null && _super.apply(this, arguments) || this; - } - return Class2; -}(Class1)); -var Class3 = /** @class */ (function () { - function Class3() { - } - return Class3; -}()); -var Class4 = /** @class */ (function (_super) { - __extends(Class4, _super); - function Class4() { - return _super !== null && _super.apply(this, arguments) || this; - } - return Class4; -}(Class3)); +class Class1 { +} +class Class2 extends Class1 { +} +class Class3 { +} +class Class4 extends Class3 { +} diff --git a/tests/baselines/reference/baseTypePrivateMemberClash.js b/tests/baselines/reference/baseTypePrivateMemberClash.js index b2f1be7840f3b..a0b86f1ee94fd 100644 --- a/tests/baselines/reference/baseTypePrivateMemberClash.js +++ b/tests/baselines/reference/baseTypePrivateMemberClash.js @@ -11,13 +11,7 @@ class Y { interface Z extends X, Y { } //// [baseTypePrivateMemberClash.js] -var X = /** @class */ (function () { - function X() { - } - return X; -}()); -var Y = /** @class */ (function () { - function Y() { - } - return Y; -}()); +class X { +} +class Y { +} diff --git a/tests/baselines/reference/baseTypeWrappingInstantiationChain.js b/tests/baselines/reference/baseTypeWrappingInstantiationChain.js index b891dadaa8dc5..6dfb6b7bba3bb 100644 --- a/tests/baselines/reference/baseTypeWrappingInstantiationChain.js +++ b/tests/baselines/reference/baseTypeWrappingInstantiationChain.js @@ -30,55 +30,22 @@ class C extends CBase { //// [baseTypeWrappingInstantiationChain.js] -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -var CBaseBase = /** @class */ (function () { - function CBaseBase(x) { - } - return CBaseBase; -}()); -var CBase = /** @class */ (function (_super) { - __extends(CBase, _super); - function CBase() { - return _super !== null && _super.apply(this, arguments) || this; - } - return CBase; -}(CBaseBase)); -var Parameter = /** @class */ (function () { - function Parameter() { - } - Parameter.prototype.method = function (t) { }; - return Parameter; -}()); -var Wrapper = /** @class */ (function () { - function Wrapper() { - } - return Wrapper; -}()); -var C = /** @class */ (function (_super) { - __extends(C, _super); - function C() { - return _super !== null && _super.apply(this, arguments) || this; - } - C.prototype.works = function () { +class CBaseBase { + constructor(x) { } +} +class CBase extends CBaseBase { +} +class Parameter { + method(t) { } +} +class Wrapper { +} +class C extends CBase { + works() { new CBaseBase(this); - }; - C.prototype.alsoWorks = function () { + } + alsoWorks() { new CBase(this); // Should not error, parameter is of type Parameter> - }; - C.prototype.method = function (t) { }; - return C; -}(CBase)); + } + method(t) { } +} diff --git a/tests/baselines/reference/bases.js b/tests/baselines/reference/bases.js index 96f8aaca36b55..d3719591b70df 100644 --- a/tests/baselines/reference/bases.js +++ b/tests/baselines/reference/bases.js @@ -23,37 +23,17 @@ new C().y; //// [bases.js] -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -var B = /** @class */ (function () { - function B() { +class B { + constructor() { this.y; any; } - return B; -}()); -var C = /** @class */ (function (_super) { - __extends(C, _super); - function C() { - var _this = this; - _this.x; +} +class C extends B { + constructor() { + this.x; any; - return _this; } - return C; -}(B)); +} new C().x; new C().y; diff --git a/tests/baselines/reference/bestChoiceType.js b/tests/baselines/reference/bestChoiceType.js index 39ec75f58309b..1547706c7d8ed 100644 --- a/tests/baselines/reference/bestChoiceType.js +++ b/tests/baselines/reference/bestChoiceType.js @@ -22,15 +22,15 @@ function f2() { //// [bestChoiceType.js] // Repro from #10041 -(''.match(/ /) || []).map(function (s) { return s.toLowerCase(); }); +(''.match(/ /) || []).map(s => s.toLowerCase()); // Similar cases function f1() { - var x = ''.match(/ /); - var y = x || []; - var z = y.map(function (s) { return s.toLowerCase(); }); + let x = ''.match(/ /); + let y = x || []; + let z = y.map(s => s.toLowerCase()); } function f2() { - var x = ''.match(/ /); - var y = x ? x : []; - var z = y.map(function (s) { return s.toLowerCase(); }); + let x = ''.match(/ /); + let y = x ? x : []; + let z = y.map(s => s.toLowerCase()); } diff --git a/tests/baselines/reference/bestCommonTypeOfConditionalExpressions.js b/tests/baselines/reference/bestCommonTypeOfConditionalExpressions.js index d62c0769bfb25..dc8466a6e93fa 100644 --- a/tests/baselines/reference/bestCommonTypeOfConditionalExpressions.js +++ b/tests/baselines/reference/bestCommonTypeOfConditionalExpressions.js @@ -31,42 +31,14 @@ function foo5(t: T, u: U): Object { //// [bestCommonTypeOfConditionalExpressions.js] // conditional expressions return the best common type of the branches plus contextual type (using the first candidate if multiple BCTs exist) // no errors expected here -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); var a; var b; -var Base = /** @class */ (function () { - function Base() { - } - return Base; -}()); -var Derived = /** @class */ (function (_super) { - __extends(Derived, _super); - function Derived() { - return _super !== null && _super.apply(this, arguments) || this; - } - return Derived; -}(Base)); -var Derived2 = /** @class */ (function (_super) { - __extends(Derived2, _super); - function Derived2() { - return _super !== null && _super.apply(this, arguments) || this; - } - return Derived2; -}(Base)); +class Base { +} +class Derived extends Base { +} +class Derived2 extends Base { +} var base; var derived; var derived2; @@ -74,9 +46,9 @@ var r = true ? 1 : 2; var r3 = true ? 1 : {}; var r4 = true ? a : b; // typeof a var r5 = true ? b : a; // typeof b -var r6 = true ? function (x) { } : function (x) { }; // returns number => void -var r7 = true ? function (x) { } : function (x) { }; -var r8 = true ? function (x) { } : function (x) { }; // returns Object => void +var r6 = true ? (x) => { } : (x) => { }; // returns number => void +var r7 = true ? (x) => { } : (x) => { }; +var r8 = true ? (x) => { } : (x) => { }; // returns Object => void var r10 = true ? derived : derived2; // no error since we use the contextual type in BCT var r11 = true ? base : derived2; function foo5(t, u) { diff --git a/tests/baselines/reference/bestCommonTypeOfConditionalExpressions2.js b/tests/baselines/reference/bestCommonTypeOfConditionalExpressions2.js index f25d2bb5d6f2f..b3e4c8f21fd4d 100644 --- a/tests/baselines/reference/bestCommonTypeOfConditionalExpressions2.js +++ b/tests/baselines/reference/bestCommonTypeOfConditionalExpressions2.js @@ -29,40 +29,12 @@ function foo3(t: T, u: U) { //// [bestCommonTypeOfConditionalExpressions2.js] // conditional expressions return the best common type of the branches plus contextual type (using the first candidate if multiple BCTs exist) // these are errors -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -var Base = /** @class */ (function () { - function Base() { - } - return Base; -}()); -var Derived = /** @class */ (function (_super) { - __extends(Derived, _super); - function Derived() { - return _super !== null && _super.apply(this, arguments) || this; - } - return Derived; -}(Base)); -var Derived2 = /** @class */ (function (_super) { - __extends(Derived2, _super); - function Derived2() { - return _super !== null && _super.apply(this, arguments) || this; - } - return Derived2; -}(Base)); +class Base { +} +class Derived extends Base { +} +class Derived2 extends Base { +} var base; var derived; var derived2; diff --git a/tests/baselines/reference/bestCommonTypeOfTuple2.js b/tests/baselines/reference/bestCommonTypeOfTuple2.js index 2c4fa73218404..754939a8aedd9 100644 --- a/tests/baselines/reference/bestCommonTypeOfTuple2.js +++ b/tests/baselines/reference/bestCommonTypeOfTuple2.js @@ -25,58 +25,25 @@ var e51 = t5[2]; // {} //// [bestCommonTypeOfTuple2.js] -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -var C = /** @class */ (function () { - function C() { - } - return C; -}()); -var D = /** @class */ (function () { - function D() { - } - return D; -}()); -var E = /** @class */ (function () { - function E() { - } - return E; -}()); -var F = /** @class */ (function (_super) { - __extends(F, _super); - function F() { - return _super !== null && _super.apply(this, arguments) || this; - } - return F; -}(C)); -var C1 = /** @class */ (function () { - function C1() { +class C { +} +class D { +} +class E { +} +class F extends C { +} +class C1 { + constructor() { this.i = "foo"; } - return C1; -}()); -var D1 = /** @class */ (function (_super) { - __extends(D1, _super); - function D1() { - var _this = _super !== null && _super.apply(this, arguments) || this; - _this.i = "bar"; - return _this; +} +class D1 extends C1 { + constructor() { + super(...arguments); + this.i = "bar"; } - return D1; -}(C1)); +} var e11 = t1[4]; // base var e21 = t2[4]; // {} var e31 = t3[4]; // C1 diff --git a/tests/baselines/reference/binaryArithmeticControlFlowGraphNotTooLarge.js b/tests/baselines/reference/binaryArithmeticControlFlowGraphNotTooLarge.js index 4a56b0a264f1b..0b625e5da5c1b 100644 --- a/tests/baselines/reference/binaryArithmeticControlFlowGraphNotTooLarge.js +++ b/tests/baselines/reference/binaryArithmeticControlFlowGraphNotTooLarge.js @@ -1301,7 +1301,7 @@ const foo = function (this: any) { //// [binaryArithmeticControlFlowGraphNotTooLarge.js] "use strict"; // Repro from #29926 (expanded 10x for good measure) -var foo = function () { +const foo = function () { var a, b, c, d, ab, bc, cd, da, blocks = this.blocks; if (this.first) { a = blocks[0] - 1; diff --git a/tests/baselines/reference/binaryIntegerLiteralError.js b/tests/baselines/reference/binaryIntegerLiteralError.js index b46f6a1216748..dacb4a2a29b83 100644 --- a/tests/baselines/reference/binaryIntegerLiteralError.js +++ b/tests/baselines/reference/binaryIntegerLiteralError.js @@ -14,12 +14,12 @@ var obj1 = { //// [binaryIntegerLiteralError.js] // error -var bin1 = 6; +var bin1 = 0B110; 2110; -var bin1 = 6; +var bin1 = 0b110; 23410; var obj1 = { - 26: "hi", + 0b11010: "hi", 26: "Hello", "26": "world", }; diff --git a/tests/baselines/reference/bind1.js b/tests/baselines/reference/bind1.js index 0bbd6f903283b..d1bcb2ce3a16d 100644 --- a/tests/baselines/reference/bind1.js +++ b/tests/baselines/reference/bind1.js @@ -10,10 +10,7 @@ namespace M { //// [bind1.js] var M; (function (M) { - var C = /** @class */ (function () { - function C() { - } - return C; - }()); // this should be an unresolved symbol I error + class C { + } // this should be an unresolved symbol I error M.C = C; })(M || (M = {})); diff --git a/tests/baselines/reference/bindingPatternCannotBeOnlyInferenceSource.errors.txt b/tests/baselines/reference/bindingPatternCannotBeOnlyInferenceSource.errors.txt index b4237742ac51d..c5f979027174c 100644 --- a/tests/baselines/reference/bindingPatternCannotBeOnlyInferenceSource.errors.txt +++ b/tests/baselines/reference/bindingPatternCannotBeOnlyInferenceSource.errors.txt @@ -1,8 +1,8 @@ bindingPatternCannotBeOnlyInferenceSource.ts(2,7): error TS2571: Object is of type 'unknown'. bindingPatternCannotBeOnlyInferenceSource.ts(3,9): error TS2339: Property 'p1' does not exist on type 'unknown'. -bindingPatternCannotBeOnlyInferenceSource.ts(4,7): error TS2461: Type 'unknown' is not an array type. +bindingPatternCannotBeOnlyInferenceSource.ts(4,7): error TS2488: Type 'unknown' must have a '[Symbol.iterator]()' method that returns an iterator. bindingPatternCannotBeOnlyInferenceSource.ts(4,7): error TS2571: Object is of type 'unknown'. -bindingPatternCannotBeOnlyInferenceSource.ts(5,7): error TS2461: Type 'unknown' is not an array type. +bindingPatternCannotBeOnlyInferenceSource.ts(5,7): error TS2488: Type 'unknown' must have a '[Symbol.iterator]()' method that returns an iterator. ==== bindingPatternCannotBeOnlyInferenceSource.ts (5 errors) ==== @@ -15,12 +15,12 @@ bindingPatternCannotBeOnlyInferenceSource.ts(5,7): error TS2461: Type 'unknown' !!! error TS2339: Property 'p1' does not exist on type 'unknown'. const [] = f(); // error ~~ -!!! error TS2461: Type 'unknown' is not an array type. +!!! error TS2488: Type 'unknown' must have a '[Symbol.iterator]()' method that returns an iterator. ~~ !!! error TS2571: Object is of type 'unknown'. const [e1, e2] = f(); // error ~~~~~~~~ -!!! error TS2461: Type 'unknown' is not an array type. +!!! error TS2488: Type 'unknown' must have a '[Symbol.iterator]()' method that returns an iterator. // Repro from #43605 type Dispatch = { (action: T): T }; diff --git a/tests/baselines/reference/bindingPatternCannotBeOnlyInferenceSource.js b/tests/baselines/reference/bindingPatternCannotBeOnlyInferenceSource.js index a1f2c641c8fe1..ea3edd6054ee5 100644 --- a/tests/baselines/reference/bindingPatternCannotBeOnlyInferenceSource.js +++ b/tests/baselines/reference/bindingPatternCannotBeOnlyInferenceSource.js @@ -29,35 +29,17 @@ const {} = useReduxDispatch1( //// [bindingPatternCannotBeOnlyInferenceSource.js] -var _a = f(); // error (only in strictNullChecks) -var p1 = f().p1; // error -var _b = f(); // error -var _c = f(), e1 = _c[0], e2 = _c[1]; // error -var funcs1 = { - funcA: function (a) { }, - funcB: function (b, bb) { }, - funcC: function (c, cc, ccc) { }, +const {} = f(); // error (only in strictNullChecks) +const { p1 } = f(); // error +const [] = f(); // error +const [e1, e2] = f(); // error +const funcs1 = { + funcA: (a) => { }, + funcB: (b, bb) => { }, + funcC: (c, cc, ccc) => { }, }; -var _d = useReduxDispatch1(function (d, f) { return ({ - funcA: function () { - var p = []; - for (var _i = 0; _i < arguments.length; _i++) { - p[_i] = arguments[_i]; - } - return d(f.funcA.apply(f, p)); - }, // p should be inferrable - funcB: function () { - var p = []; - for (var _i = 0; _i < arguments.length; _i++) { - p[_i] = arguments[_i]; - } - return d(f.funcB.apply(f, p)); - }, - funcC: function () { - var p = []; - for (var _i = 0; _i < arguments.length; _i++) { - p[_i] = arguments[_i]; - } - return d(f.funcC.apply(f, p)); - }, -}); }); +const {} = useReduxDispatch1((d, f) => ({ + funcA: (...p) => d(f.funcA(...p)), // p should be inferrable + funcB: (...p) => d(f.funcB(...p)), + funcC: (...p) => d(f.funcC(...p)), +})); diff --git a/tests/baselines/reference/bindingPatternContextualTypeDoesNotCauseWidening.js b/tests/baselines/reference/bindingPatternContextualTypeDoesNotCauseWidening.js index 8ae5cb7067453..7c2e4739dce52 100644 --- a/tests/baselines/reference/bindingPatternContextualTypeDoesNotCauseWidening.js +++ b/tests/baselines/reference/bindingPatternContextualTypeDoesNotCauseWidening.js @@ -7,5 +7,5 @@ const { } = pick(['b'], { a: 'a', b: 'b' }); // T: "b" | "a" ??? (before fix) //// [bindingPatternContextualTypeDoesNotCauseWidening.js] -var _ = pick(['b'], { a: 'a', b: 'b' }); // T: "b" -var _a = pick(['b'], { a: 'a', b: 'b' }); // T: "b" | "a" ??? (before fix) +const _ = pick(['b'], { a: 'a', b: 'b' }); // T: "b" +const {} = pick(['b'], { a: 'a', b: 'b' }); // T: "b" | "a" ??? (before fix) diff --git a/tests/baselines/reference/bindingPatternInParameter01.js b/tests/baselines/reference/bindingPatternInParameter01.js index 5143313b5a720..87797a0a4b723 100644 --- a/tests/baselines/reference/bindingPatternInParameter01.js +++ b/tests/baselines/reference/bindingPatternInParameter01.js @@ -9,8 +9,7 @@ nestedArray.forEach(([[a, b]]) => { //// [bindingPatternInParameter01.js] -var nestedArray = [[[1, 2]], [[3, 4]]]; -nestedArray.forEach(function (_a) { - var _b = _a[0], a = _b[0], b = _b[1]; +const nestedArray = [[[1, 2]], [[3, 4]]]; +nestedArray.forEach(([[a, b]]) => { console.log(a, b); }); diff --git a/tests/baselines/reference/bindingPatternOmittedExpressionNesting.js b/tests/baselines/reference/bindingPatternOmittedExpressionNesting.js index 51e38bc699815..05d24d0a9b282 100644 --- a/tests/baselines/reference/bindingPatternOmittedExpressionNesting.js +++ b/tests/baselines/reference/bindingPatternOmittedExpressionNesting.js @@ -4,10 +4,7 @@ export let [,,[,[],,[],]] = undefined as any; //// [bindingPatternOmittedExpressionNesting.js] -"use strict"; -var _a, _b, _c, _d; -Object.defineProperty(exports, "__esModule", { value: true }); -exports._e = (_a = undefined, _b = _a[2], _c = _b[1], _d = _b[3]); +export let [, , [, [], , [],]] = undefined; //// [bindingPatternOmittedExpressionNesting.d.ts] diff --git a/tests/baselines/reference/binopAssignmentShouldHaveType.js b/tests/baselines/reference/binopAssignmentShouldHaveType.js index 73224a81cc64e..9d7b76f32b667 100644 --- a/tests/baselines/reference/binopAssignmentShouldHaveType.js +++ b/tests/baselines/reference/binopAssignmentShouldHaveType.js @@ -25,19 +25,16 @@ namespace Test { "use strict"; var Test; (function (Test) { - var Bug = /** @class */ (function () { - function Bug() { - } - Bug.prototype.getName = function () { + class Bug { + getName() { return "name"; - }; - Bug.prototype.bug = function () { + } + bug() { var name = null; if ((name = this.getName()).length > 0) { console.log(name); } - }; - return Bug; - }()); + } + } Test.Bug = Bug; })(Test || (Test = {})); diff --git a/tests/baselines/reference/bitwiseNotOperatorWithAnyOtherType.js b/tests/baselines/reference/bitwiseNotOperatorWithAnyOtherType.js index eb97d7dfa838a..0025e9e20f321 100644 --- a/tests/baselines/reference/bitwiseNotOperatorWithAnyOtherType.js +++ b/tests/baselines/reference/bitwiseNotOperatorWithAnyOtherType.js @@ -70,15 +70,12 @@ function foo() { var a; return a; } -var A = /** @class */ (function () { - function A() { - } - A.foo = function () { +class A { + static foo() { var a; return a; - }; - return A; -}()); + } +} var M; (function (M) { })(M || (M = {})); diff --git a/tests/baselines/reference/bitwiseNotOperatorWithBooleanType.js b/tests/baselines/reference/bitwiseNotOperatorWithBooleanType.js index cdf0804256f5f..01d2335dbcb49 100644 --- a/tests/baselines/reference/bitwiseNotOperatorWithBooleanType.js +++ b/tests/baselines/reference/bitwiseNotOperatorWithBooleanType.js @@ -44,12 +44,9 @@ var ResultIsNumber8 = ~~BOOLEAN; // ~ operator on boolean type var BOOLEAN; function foo() { return true; } -var A = /** @class */ (function () { - function A() { - } - A.foo = function () { return false; }; - return A; -}()); +class A { + static foo() { return false; } +} var M; (function (M) { })(M || (M = {})); diff --git a/tests/baselines/reference/bitwiseNotOperatorWithNumberType.js b/tests/baselines/reference/bitwiseNotOperatorWithNumberType.js index 9a2e3c4944ab9..75b8f45e866dc 100644 --- a/tests/baselines/reference/bitwiseNotOperatorWithNumberType.js +++ b/tests/baselines/reference/bitwiseNotOperatorWithNumberType.js @@ -51,12 +51,9 @@ var ResultIsNumber13 = ~~~(NUMBER + NUMBER); var NUMBER; var NUMBER1 = [1, 2]; function foo() { return 1; } -var A = /** @class */ (function () { - function A() { - } - A.foo = function () { return 1; }; - return A; -}()); +class A { + static foo() { return 1; } +} var M; (function (M) { })(M || (M = {})); @@ -67,7 +64,7 @@ var ResultIsNumber2 = ~NUMBER1; // number type literal var ResultIsNumber3 = ~1; var ResultIsNumber4 = ~{ x: 1, y: 2 }; -var ResultIsNumber5 = ~{ x: 1, y: function (n) { return n; } }; +var ResultIsNumber5 = ~{ x: 1, y: (n) => { return n; } }; // number type expressions var ResultIsNumber6 = ~objA.a; var ResultIsNumber7 = ~M.n; diff --git a/tests/baselines/reference/bitwiseNotOperatorWithStringType.js b/tests/baselines/reference/bitwiseNotOperatorWithStringType.js index 2beff97a1527d..dbf70c514214e 100644 --- a/tests/baselines/reference/bitwiseNotOperatorWithStringType.js +++ b/tests/baselines/reference/bitwiseNotOperatorWithStringType.js @@ -50,12 +50,9 @@ var ResultIsNumber14 = ~~~(STRING + STRING); var STRING; var STRING1 = ["", "abc"]; function foo() { return "abc"; } -var A = /** @class */ (function () { - function A() { - } - A.foo = function () { return ""; }; - return A; -}()); +class A { + static foo() { return ""; } +} var M; (function (M) { })(M || (M = {})); @@ -66,7 +63,7 @@ var ResultIsNumber2 = ~STRING1; // string type literal var ResultIsNumber3 = ~""; var ResultIsNumber4 = ~{ x: "", y: "" }; -var ResultIsNumber5 = ~{ x: "", y: function (s) { return s; } }; +var ResultIsNumber5 = ~{ x: "", y: (s) => { return s; } }; // string type expressions var ResultIsNumber6 = ~objA.a; var ResultIsNumber7 = ~M.n; diff --git a/tests/baselines/reference/bivariantInferences.js b/tests/baselines/reference/bivariantInferences.js index efc3bdb6d0613..bfee4ecc6b47e 100644 --- a/tests/baselines/reference/bivariantInferences.js +++ b/tests/baselines/reference/bivariantInferences.js @@ -16,4 +16,4 @@ let x = a.equalsShallow(b); //// [bivariantInferences.js] "use strict"; // Repro from #27337 -var x = a.equalsShallow(b); +let x = a.equalsShallow(b); diff --git a/tests/baselines/reference/blockScopedBindingCaptureThisInFunction.js b/tests/baselines/reference/blockScopedBindingCaptureThisInFunction.js index fe81e6e7e09b0..4661f68d1892b 100644 --- a/tests/baselines/reference/blockScopedBindingCaptureThisInFunction.js +++ b/tests/baselines/reference/blockScopedBindingCaptureThisInFunction.js @@ -11,13 +11,9 @@ //// [blockScopedBindingCaptureThisInFunction.js] // https://github.com/Microsoft/TypeScript/issues/11038 -(function () { return function () { - var _loop_1 = function (someKey) { - this_1.helloWorld(); - (function () { return someKey; }); - }; - var this_1 = this; - for (var someKey in {}) { - _loop_1(someKey); +() => function () { + for (let someKey in {}) { + this.helloWorld(); + () => someKey; } -}; }); +}; diff --git a/tests/baselines/reference/blockScopedBindingUsedBeforeDef.js b/tests/baselines/reference/blockScopedBindingUsedBeforeDef.js index 07650b4e9b4aa..12cffa7411c9c 100644 --- a/tests/baselines/reference/blockScopedBindingUsedBeforeDef.js +++ b/tests/baselines/reference/blockScopedBindingUsedBeforeDef.js @@ -12,12 +12,10 @@ let {[b]: b} = { }; //// [blockScopedBindingUsedBeforeDef.js] // 1: -for (var _i = 0, _a = [{}]; _i < _a.length; _i++) { - var _b = a, a = _a[_i][_b]; +for (let { [a]: a } of [{}]) continue; -} // 2: -for (var _c = {}, _d = a, a = _c[_d]; false;) +for (let { [a]: a } = {}; false;) continue; // 3: -var _e = {}, _f = b, b = _e[_f]; +let { [b]: b } = {}; diff --git a/tests/baselines/reference/blockScopedBindingsReassignedInLoop1.js b/tests/baselines/reference/blockScopedBindingsReassignedInLoop1.js index c7176a5e729b3..11519f936a5c0 100644 --- a/tests/baselines/reference/blockScopedBindingsReassignedInLoop1.js +++ b/tests/baselines/reference/blockScopedBindingsReassignedInLoop1.js @@ -12,13 +12,7 @@ declare function use(n: number): void; //// [blockScopedBindingsReassignedInLoop1.js] (function () { 'use strict'; - var _loop_1 = function (i) { - (function () { return use(++i); })(); - out_i_1 = i; - }; - var out_i_1; - for (var i = 0; i < 9; ++i) { - _loop_1(i); - i = out_i_1; + for (let i = 0; i < 9; ++i) { + (() => use(++i))(); } })(); diff --git a/tests/baselines/reference/blockScopedBindingsReassignedInLoop2.js b/tests/baselines/reference/blockScopedBindingsReassignedInLoop2.js index 06e143d98c62f..f746972a964f5 100644 --- a/tests/baselines/reference/blockScopedBindingsReassignedInLoop2.js +++ b/tests/baselines/reference/blockScopedBindingsReassignedInLoop2.js @@ -44,79 +44,39 @@ for (let x = 1, y = 2; x < y; ++x, --y) { } //// [blockScopedBindingsReassignedInLoop2.js] -var _loop_1 = function (x, y) { - var a = function () { return x++ + y++; }; +for (let x = 1, y = 2; x < y; ++x, --y) { + let a = () => x++ + y++; if (x == 1) { - return out_x_1 = x, out_y_1 = y, "break"; + break; } else { y = 5; } - out_x_1 = x; - out_y_1 = y; -}; -var out_x_1, out_y_1; -for (var x = 1, y = 2; x < y; ++x, --y) { - var state_1 = _loop_1(x, y); - x = out_x_1; - y = out_y_1; - if (state_1 === "break") - break; } -var _loop_2 = function (x, y) { - var a = function () { return x++ + y++; }; +for (let x = 1, y = 2; x < y; ++x, --y) { + let a = () => x++ + y++; if (x == 1) { - return out_x_2 = x, out_y_2 = y, "continue"; + continue; } else { y = 5; } - out_x_2 = x; - out_y_2 = y; -}; -var out_x_2, out_y_2; -for (var x = 1, y = 2; x < y; ++x, --y) { - _loop_2(x, y); - x = out_x_2; - y = out_y_2; } -var _loop_3 = function (x, y) { - var a = function () { return x++ + y++; }; +loop: for (let x = 1, y = 2; x < y; ++x, --y) { + let a = () => x++ + y++; if (x == 1) { - return out_x_3 = x, out_y_3 = y, "break-loop"; + break loop; } else { y = 5; } - out_x_3 = x; - out_y_3 = y; -}; -var out_x_3, out_y_3; -loop: for (var x = 1, y = 2; x < y; ++x, --y) { - var state_2 = _loop_3(x, y); - x = out_x_3; - y = out_y_3; - switch (state_2) { - case "break-loop": break loop; - } } -var _loop_4 = function (x, y) { - var a = function () { return x++ + y++; }; +loop: for (let x = 1, y = 2; x < y; ++x, --y) { + let a = () => x++ + y++; if (x == 1) { - return out_x_4 = x, out_y_4 = y, "continue-loop"; + continue loop; } else { y = 5; } - out_x_4 = x; - out_y_4 = y; -}; -var out_x_4, out_y_4; -loop: for (var x = 1, y = 2; x < y; ++x, --y) { - var state_3 = _loop_4(x, y); - x = out_x_4; - y = out_y_4; - switch (state_3) { - case "continue-loop": continue loop; - } } diff --git a/tests/baselines/reference/blockScopedBindingsReassignedInLoop3.js b/tests/baselines/reference/blockScopedBindingsReassignedInLoop3.js index 047f6b23382ff..ad3c931bb3af4 100644 --- a/tests/baselines/reference/blockScopedBindingsReassignedInLoop3.js +++ b/tests/baselines/reference/blockScopedBindingsReassignedInLoop3.js @@ -94,155 +94,81 @@ for (let x = 1, y = 2; x < y; ++x, --y) { //// [blockScopedBindingsReassignedInLoop3.js] -var _loop_1 = function (x, y) { - var a = function () { return x++ + y++; }; +for (let x = 1, y = 2; x < y; ++x, --y) { + let a = () => x++ + y++; if (x == 1) { - return out_x_1 = x, out_y_1 = y, "break"; + break; } else { - var _loop_5 = function (a_1) { - var f = function () { return a_1; }; - if (a_1) { - a_1 = x; - return out_a_1 = a_1, "break"; + for (let a = 1; a < 5; --a) { + let f = () => a; + if (a) { + a = x; + break; } else { y++; } - out_a_1 = a_1; - }; - var out_a_1; - for (var a_1 = 1; a_1 < 5; --a_1) { - var state_4 = _loop_5(a_1); - a_1 = out_a_1; - if (state_4 === "break") - break; } y = 5; } - out_x_1 = x; - out_y_1 = y; -}; -var out_x_1, out_y_1; -for (var x = 1, y = 2; x < y; ++x, --y) { - var state_1 = _loop_1(x, y); - x = out_x_1; - y = out_y_1; - if (state_1 === "break") - break; } -var _loop_2 = function (x, y) { - var a = function () { return x++ + y++; }; +for (let x = 1, y = 2; x < y; ++x, --y) { + let a = () => x++ + y++; if (x == 1) { - return out_x_2 = x, out_y_2 = y, "continue"; + continue; } else { - var _loop_6 = function (a_2) { - var f = function () { return a_2; }; - if (a_2) { - a_2 = x; - return out_a_2 = a_2, "continue"; + for (let a = 1; a < 5; --a) { + let f = () => a; + if (a) { + a = x; + continue; } else { y++; } - out_a_2 = a_2; - }; - var out_a_2; - for (var a_2 = 1; a_2 < 5; --a_2) { - _loop_6(a_2); - a_2 = out_a_2; } y = 5; } - out_x_2 = x; - out_y_2 = y; -}; -var out_x_2, out_y_2; -for (var x = 1, y = 2; x < y; ++x, --y) { - _loop_2(x, y); - x = out_x_2; - y = out_y_2; } -var _loop_3 = function (x, y) { - var a = function () { return x++ + y++; }; +loop2: for (let x = 1, y = 2; x < y; ++x, --y) { + let a = () => x++ + y++; if (x == 1) { - return out_x_3 = x, out_y_3 = y, "break-loop2"; + break loop2; } else { - var _loop_7 = function (a_3) { - var f = function () { return a_3; }; - if (a_3) { - a_3 = x; - return out_a_3 = a_3, "break-loop1"; + loop1: for (let a = 1; a < 5; --a) { + let f = () => a; + if (a) { + a = x; + break loop1; } else { y++; - return out_a_3 = a_3, "break-loop2"; - } - out_a_3 = a_3; - }; - var out_a_3; - loop1: for (var a_3 = 1; a_3 < 5; --a_3) { - var state_5 = _loop_7(a_3); - a_3 = out_a_3; - switch (state_5) { - case "break-loop1": break loop1; - case "break-loop2": return state_5; + break loop2; } } y = 5; } - out_x_3 = x; - out_y_3 = y; -}; -var out_x_3, out_y_3; -loop2: for (var x = 1, y = 2; x < y; ++x, --y) { - var state_2 = _loop_3(x, y); - x = out_x_3; - y = out_y_3; - switch (state_2) { - case "break-loop2": break loop2; - } } -var _loop_4 = function (x, y) { - var a = function () { return x++ + y++; }; +loop2: for (let x = 1, y = 2; x < y; ++x, --y) { + let a = () => x++ + y++; if (x == 1) { - return out_x_4 = x, out_y_4 = y, "continue-loop2"; + continue loop2; } else { - var _loop_8 = function (a_4) { - var f = function () { return a_4; }; - if (a_4) { - a_4 = x; - return out_a_4 = a_4, "continue-loop1"; + loop1: for (let a = 1; a < 5; --a) { + let f = () => a; + if (a) { + a = x; + continue loop1; } else { y++; - return out_a_4 = a_4, "continue-loop2"; - } - out_a_4 = a_4; - }; - var out_a_4; - loop1: for (var a_4 = 1; a_4 < 5; --a_4) { - var state_6 = _loop_8(a_4); - a_4 = out_a_4; - switch (state_6) { - case "continue-loop1": continue loop1; - case "continue-loop2": return state_6; + continue loop2; } } y = 5; } - out_x_4 = x; - out_y_4 = y; -}; -var out_x_4, out_y_4; -loop2: for (var x = 1, y = 2; x < y; ++x, --y) { - var state_3 = _loop_4(x, y); - x = out_x_4; - y = out_y_4; - switch (state_3) { - case "continue-loop2": continue loop2; - } } diff --git a/tests/baselines/reference/blockScopedBindingsReassignedInLoop4.js b/tests/baselines/reference/blockScopedBindingsReassignedInLoop4.js index d120cfd020c34..50ee906529c16 100644 --- a/tests/baselines/reference/blockScopedBindingsReassignedInLoop4.js +++ b/tests/baselines/reference/blockScopedBindingsReassignedInLoop4.js @@ -15,23 +15,13 @@ function f1() { //// [blockScopedBindingsReassignedInLoop4.js] function f1() { - var _loop_1 = function (x, y) { - var a = function () { return x++ + y++; }; + for (let x = 1, y = 2; x < y; ++x, --y) { + let a = () => x++ + y++; if (x == 1) { - return { value: 1 }; + return 1; } else { y = 5; } - out_x_1 = x; - out_y_1 = y; - }; - var out_x_1, out_y_1; - for (var x = 1, y = 2; x < y; ++x, --y) { - var state_1 = _loop_1(x, y); - x = out_x_1; - y = out_y_1; - if (typeof state_1 === "object") - return state_1.value; } } diff --git a/tests/baselines/reference/blockScopedBindingsReassignedInLoop5.js b/tests/baselines/reference/blockScopedBindingsReassignedInLoop5.js index 997ae3518c087..d1ac139c4f9fe 100644 --- a/tests/baselines/reference/blockScopedBindingsReassignedInLoop5.js +++ b/tests/baselines/reference/blockScopedBindingsReassignedInLoop5.js @@ -11,20 +11,10 @@ for (let x = 1, y = 2; x < y; ++x, --y) { //// [blockScopedBindingsReassignedInLoop5.js] -var _loop_1 = function (x, y) { - var a = function () { return x++ + y++; }; +for (let x = 1, y = 2; x < y; ++x, --y) { + let a = () => x++ + y++; if (x == 1) - return out_x_1 = x, out_y_1 = y, "break"; + break; else y = 5; - out_x_1 = x; - out_y_1 = y; -}; -var out_x_1, out_y_1; -for (var x = 1, y = 2; x < y; ++x, --y) { - var state_1 = _loop_1(x, y); - x = out_x_1; - y = out_y_1; - if (state_1 === "break") - break; } diff --git a/tests/baselines/reference/blockScopedBindingsReassignedInLoop6.js b/tests/baselines/reference/blockScopedBindingsReassignedInLoop6.js index fbf0fda7da598..c8df362616bef 100644 --- a/tests/baselines/reference/blockScopedBindingsReassignedInLoop6.js +++ b/tests/baselines/reference/blockScopedBindingsReassignedInLoop6.js @@ -33,48 +33,24 @@ function f2() { //// [blockScopedBindingsReassignedInLoop6.js] function f1() { - var _loop_1 = function (x, y) { - var a = function () { return x++ + y++; }; + for (let [x, y] = [1, 2]; x < y; ++x, --y) { + let a = () => x++ + y++; if (x == 1) - return out_x_1 = x, out_y_1 = y, "break"; + break; else if (y == 2) y = 5; else - return { value: void 0 }; - out_x_1 = x; - out_y_1 = y; - }; - var out_x_1, out_y_1; - for (var _a = [1, 2], x = _a[0], y = _a[1]; x < y; ++x, --y) { - var state_1 = _loop_1(x, y); - x = out_x_1; - y = out_y_1; - if (typeof state_1 === "object") - return state_1.value; - if (state_1 === "break") - break; + return; } } function f2() { - var _loop_2 = function (x, y) { - var a = function () { return x++ + y++; }; + for (let [{ a: x, b: { c: y } }] = [{ a: 1, b: { c: 2 } }]; x < y; ++x, --y) { + let a = () => x++ + y++; if (x == 1) - return out_x_2 = x, out_y_2 = y, "break"; + break; else if (y == 2) y = 5; else - return { value: void 0 }; - out_x_2 = x; - out_y_2 = y; - }; - var out_x_2, out_y_2; - for (var _a = [{ a: 1, b: { c: 2 } }][0], x = _a.a, y = _a.b.c; x < y; ++x, --y) { - var state_2 = _loop_2(x, y); - x = out_x_2; - y = out_y_2; - if (typeof state_2 === "object") - return state_2.value; - if (state_2 === "break") - break; + return; } } diff --git a/tests/baselines/reference/blockScopedClassDeclarationAcrossFiles.js b/tests/baselines/reference/blockScopedClassDeclarationAcrossFiles.js index 6559548ddff28..199d4cc08d6c5 100644 --- a/tests/baselines/reference/blockScopedClassDeclarationAcrossFiles.js +++ b/tests/baselines/reference/blockScopedClassDeclarationAcrossFiles.js @@ -7,9 +7,6 @@ class C { } //// [foo.js] -var foo; -var C = /** @class */ (function () { - function C() { - } - return C; -}()); +let foo; +class C { +} diff --git a/tests/baselines/reference/bluebirdStaticThis.js b/tests/baselines/reference/bluebirdStaticThis.js index 4424200e47596..23a9018c9b464 100644 --- a/tests/baselines/reference/bluebirdStaticThis.js +++ b/tests/baselines/reference/bluebirdStaticThis.js @@ -141,14 +141,13 @@ fooProm = Promise.try(Promise, () => { }, arr, x); //// [bluebirdStaticThis.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -fooProm = Promise.try(Promise, function () { +fooProm = Promise.try(Promise, () => { return foo; }); -fooProm = Promise.try(Promise, function () { +fooProm = Promise.try(Promise, () => { return foo; }, arr); -fooProm = Promise.try(Promise, function () { +fooProm = Promise.try(Promise, () => { return foo; }, arr, x); +export {}; diff --git a/tests/baselines/reference/booleanFilterAnyArray.js b/tests/baselines/reference/booleanFilterAnyArray.js index 40c2cc5e91c70..9da91fc0d3f02 100644 --- a/tests/baselines/reference/booleanFilterAnyArray.js +++ b/tests/baselines/reference/booleanFilterAnyArray.js @@ -34,6 +34,6 @@ var ys; var ys = realanys.filter(Boolean); var foo = [{ name: 'x' }]; var foor; -var foor = foo.filter(function (x) { return x.name; }); +var foor = foo.filter(x => x.name); var foos; -var foos = [true, true, false, null].filter(function (thing) { return thing !== null; }); +var foos = [true, true, false, null].filter((thing) => thing !== null); diff --git a/tests/baselines/reference/booleanLiteralsContextuallyTypedFromUnion.js b/tests/baselines/reference/booleanLiteralsContextuallyTypedFromUnion.js index 36f1719bd640d..257679005292c 100644 --- a/tests/baselines/reference/booleanLiteralsContextuallyTypedFromUnion.js +++ b/tests/baselines/reference/booleanLiteralsContextuallyTypedFromUnion.js @@ -30,13 +30,13 @@ let Success = () => //// [booleanLiteralsContextuallyTypedFromUnion.jsx] "use strict"; /// -var isIt = Math.random() > 0.5; -var c = isIt ? { isIt: isIt, text: 'hey' } : { isIt: isIt, value: 123 }; -var cc = isIt ? { isIt: isIt, text: 'hey' } : { isIt: isIt, value: 123 }; -var Funk = function (_props) { return

; }; -var Fail1 = function () { return ; }; -var Fail2 = function () { return ; }; -var True = true; -var Fail3 = function () { return ; }; -var attrs2 = { optionalBool: true, mandatoryFn: function () { } }; -var Success = function () { return ; }; +const isIt = Math.random() > 0.5; +const c = isIt ? { isIt, text: 'hey' } : { isIt, value: 123 }; +const cc = isIt ? { isIt: isIt, text: 'hey' } : { isIt: isIt, value: 123 }; +let Funk = (_props) =>
Hello
; +let Fail1 = () => { }} optionalBool={true}/>; +let Fail2 = () => { }} optionalBool={true}/>; +let True = true; +let Fail3 = () => { }} optionalBool={True}/>; +let attrs2 = { optionalBool: true, mandatoryFn: () => { } }; +let Success = () => ; diff --git a/tests/baselines/reference/bundlerCommonJS.js b/tests/baselines/reference/bundlerCommonJS.js index 0d8c4c13d3c90..6d419cecbcbb5 100644 --- a/tests/baselines/reference/bundlerCommonJS.js +++ b/tests/baselines/reference/bundlerCommonJS.js @@ -34,12 +34,12 @@ import { x } from "pkg"; // Error //// [requires.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -var pkg = require("pkg"); +const pkg = require("pkg"); pkg.x; //// [imports.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -var pkg_1 = require("pkg"); +const pkg_1 = require("pkg"); pkg_1.x; //// [real-imports.mjs] export {}; diff --git a/tests/baselines/reference/bundlerImportESM(module=esnext).js b/tests/baselines/reference/bundlerImportESM(module=esnext).js index 54887aeaed8f9..b594b0de06866 100644 --- a/tests/baselines/reference/bundlerImportESM(module=esnext).js +++ b/tests/baselines/reference/bundlerImportESM(module=esnext).js @@ -14,7 +14,7 @@ import { esm } from "./esm.mjs"; //// [esm.mjs] -export var esm = 0; +export const esm = 0; //// [not-actually-cjs.cjs] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/tests/baselines/reference/bundlerImportESM(module=preserve).js b/tests/baselines/reference/bundlerImportESM(module=preserve).js index ed877b14da7f0..ca4147bf3dee4 100644 --- a/tests/baselines/reference/bundlerImportESM(module=preserve).js +++ b/tests/baselines/reference/bundlerImportESM(module=preserve).js @@ -14,6 +14,6 @@ import { esm } from "./esm.mjs"; //// [esm.mjs] -export var esm = 0; +export const esm = 0; //// [not-actually-cjs.cjs] //// [still-not-cjs.js] diff --git a/tests/baselines/reference/bundlerRelative1(module=esnext).js b/tests/baselines/reference/bundlerRelative1(module=esnext).js index ffc4d34643a30..4d299af2bb186 100644 --- a/tests/baselines/reference/bundlerRelative1(module=esnext).js +++ b/tests/baselines/reference/bundlerRelative1(module=esnext).js @@ -33,8 +33,8 @@ import * as cjs from "./types/cjs"; //// [index.js] -export var x = 0; +export const x = 0; //// [index.js] -export var y = 0; +export const y = 0; //// [main.js] export {}; diff --git a/tests/baselines/reference/bundlerRelative1(module=preserve).js b/tests/baselines/reference/bundlerRelative1(module=preserve).js index 28c5ac26a7df3..f5cf9e60b23d7 100644 --- a/tests/baselines/reference/bundlerRelative1(module=preserve).js +++ b/tests/baselines/reference/bundlerRelative1(module=preserve).js @@ -33,7 +33,7 @@ import * as cjs from "./types/cjs"; //// [index.js] -export var x = 0; +export const x = 0; //// [index.js] -export var y = 0; +export const y = 0; //// [main.js] diff --git a/tests/baselines/reference/bundlerSyntaxRestrictions(module=esnext).js b/tests/baselines/reference/bundlerSyntaxRestrictions(module=esnext).js index ab856841dba85..b13365b4cffad 100644 --- a/tests/baselines/reference/bundlerSyntaxRestrictions(module=esnext).js +++ b/tests/baselines/reference/bundlerSyntaxRestrictions(module=esnext).js @@ -32,10 +32,10 @@ export const a = "a"; //// [a.js] -export var a = "a"; +export const a = "a"; //// [mainJs.js] import("./a"); -var _ = require("./a"); +const _ = require("./a"); _.a; // any export {}; //// [main.js] diff --git a/tests/baselines/reference/bundlerSyntaxRestrictions(module=preserve).js b/tests/baselines/reference/bundlerSyntaxRestrictions(module=preserve).js index 9a8cd79f58eec..00dc0a7eec443 100644 --- a/tests/baselines/reference/bundlerSyntaxRestrictions(module=preserve).js +++ b/tests/baselines/reference/bundlerSyntaxRestrictions(module=preserve).js @@ -32,10 +32,10 @@ export const a = "a"; //// [a.js] -export var a = "a"; +export const a = "a"; //// [mainJs.js] import("./a"); -var _ = require("./a"); +const _ = require("./a"); _.a; // any //// [main.js] module.exports = {}; diff --git a/tests/baselines/reference/cachedContextualTypes.js b/tests/baselines/reference/cachedContextualTypes.js index 760a82a1fad93..d70f7edcb4640 100644 --- a/tests/baselines/reference/cachedContextualTypes.js +++ b/tests/baselines/reference/cachedContextualTypes.js @@ -25,16 +25,13 @@ createInstance(MenuWorkbenchToolBar, { //// [cachedContextualTypes.js] -"use strict"; // Repro from #52198 -Object.defineProperty(exports, "__esModule", { value: true }); -var MenuWorkbenchToolBar = /** @class */ (function () { - function MenuWorkbenchToolBar(options) { - } - return MenuWorkbenchToolBar; -}()); +class MenuWorkbenchToolBar { + constructor(options) { } +} createInstance(MenuWorkbenchToolBar, { toolbarOptions: { - foo: function (bar) { return bar; } + foo(bar) { return bar; } } }); +export {}; diff --git a/tests/baselines/reference/cachedModuleResolution1.js b/tests/baselines/reference/cachedModuleResolution1.js index 14081ac41923a..1a8547c628e42 100644 --- a/tests/baselines/reference/cachedModuleResolution1.js +++ b/tests/baselines/reference/cachedModuleResolution1.js @@ -11,8 +11,6 @@ import {x} from "foo"; //// [app.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); +export {}; //// [lib.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); +export {}; diff --git a/tests/baselines/reference/cachedModuleResolution1.trace.json b/tests/baselines/reference/cachedModuleResolution1.trace.json index b12537243d472..46a74ceac93dc 100644 --- a/tests/baselines/reference/cachedModuleResolution1.trace.json +++ b/tests/baselines/reference/cachedModuleResolution1.trace.json @@ -5,7 +5,7 @@ "File '/package.json' does not exist.", "======== Resolving module 'foo' from '/a/b/c/d/e/app.ts'. ========", "Explicitly specified module resolution kind: 'Bundler'.", - "Resolving in CJS mode with conditions 'require', 'types'.", + "Resolving in CJS mode with conditions 'import', 'types'.", "File '/a/b/c/d/e/package.json' does not exist.", "File '/a/b/c/d/package.json' does not exist.", "File '/a/b/c/package.json' does not exist.", @@ -24,7 +24,7 @@ "======== Module name 'foo' was successfully resolved to '/a/b/node_modules/foo.d.ts'. ========", "======== Resolving module 'foo' from '/a/b/c/lib.ts'. ========", "Explicitly specified module resolution kind: 'Bundler'.", - "Resolving in CJS mode with conditions 'require', 'types'.", + "Resolving in CJS mode with conditions 'import', 'types'.", "File '/a/b/c/package.json' does not exist according to earlier cached lookups.", "File '/a/b/package.json' does not exist according to earlier cached lookups.", "File '/a/package.json' does not exist according to earlier cached lookups.", diff --git a/tests/baselines/reference/cachedModuleResolution2.js b/tests/baselines/reference/cachedModuleResolution2.js index d649b3c53ee37..df13017b2e145 100644 --- a/tests/baselines/reference/cachedModuleResolution2.js +++ b/tests/baselines/reference/cachedModuleResolution2.js @@ -11,8 +11,6 @@ import {x} from "foo"; //// [lib.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); +export {}; //// [app.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); +export {}; diff --git a/tests/baselines/reference/cachedModuleResolution2.trace.json b/tests/baselines/reference/cachedModuleResolution2.trace.json index 089dd964ad9dc..869ddc8a29b4e 100644 --- a/tests/baselines/reference/cachedModuleResolution2.trace.json +++ b/tests/baselines/reference/cachedModuleResolution2.trace.json @@ -5,7 +5,7 @@ "File '/package.json' does not exist.", "======== Resolving module 'foo' from '/a/b/c/lib.ts'. ========", "Explicitly specified module resolution kind: 'Bundler'.", - "Resolving in CJS mode with conditions 'require', 'types'.", + "Resolving in CJS mode with conditions 'import', 'types'.", "File '/a/b/c/package.json' does not exist.", "File '/a/b/package.json' does not exist according to earlier cached lookups.", "File '/a/package.json' does not exist according to earlier cached lookups.", @@ -20,7 +20,7 @@ "======== Module name 'foo' was successfully resolved to '/a/b/node_modules/foo.d.ts'. ========", "======== Resolving module 'foo' from '/a/b/c/d/e/app.ts'. ========", "Explicitly specified module resolution kind: 'Bundler'.", - "Resolving in CJS mode with conditions 'require', 'types'.", + "Resolving in CJS mode with conditions 'import', 'types'.", "File '/a/b/c/d/e/package.json' does not exist.", "File '/a/b/c/d/package.json' does not exist.", "File '/a/b/c/package.json' does not exist according to earlier cached lookups.", diff --git a/tests/baselines/reference/cachedModuleResolution3.js b/tests/baselines/reference/cachedModuleResolution3.js index 3fce23e3f228c..90568ad5195d4 100644 --- a/tests/baselines/reference/cachedModuleResolution3.js +++ b/tests/baselines/reference/cachedModuleResolution3.js @@ -10,8 +10,6 @@ import {x} from "foo"; import {x} from "foo"; //// [app.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); +export {}; //// [lib.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); +export {}; diff --git a/tests/baselines/reference/cachedModuleResolution4.js b/tests/baselines/reference/cachedModuleResolution4.js index 2236fdf34ce4c..68313ebeda224 100644 --- a/tests/baselines/reference/cachedModuleResolution4.js +++ b/tests/baselines/reference/cachedModuleResolution4.js @@ -11,8 +11,6 @@ import {x} from "foo"; //// [lib.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); +export {}; //// [app.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); +export {}; diff --git a/tests/baselines/reference/cachedModuleResolution5.js b/tests/baselines/reference/cachedModuleResolution5.js index dfabec484bd12..9656521e13e6d 100644 --- a/tests/baselines/reference/cachedModuleResolution5.js +++ b/tests/baselines/reference/cachedModuleResolution5.js @@ -11,8 +11,6 @@ import {x} from "foo"; //// [app.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); +export {}; //// [lib.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); +export {}; diff --git a/tests/baselines/reference/cachedModuleResolution5.trace.json b/tests/baselines/reference/cachedModuleResolution5.trace.json index 223ee2bb3939f..aa71058ef86d5 100644 --- a/tests/baselines/reference/cachedModuleResolution5.trace.json +++ b/tests/baselines/reference/cachedModuleResolution5.trace.json @@ -5,7 +5,7 @@ "File '/package.json' does not exist.", "======== Resolving module 'foo' from '/a/b/c/d/e/app.ts'. ========", "Explicitly specified module resolution kind: 'Bundler'.", - "Resolving in CJS mode with conditions 'require', 'types'.", + "Resolving in CJS mode with conditions 'import', 'types'.", "File '/a/b/c/d/e/package.json' does not exist.", "File '/a/b/c/d/package.json' does not exist.", "File '/a/b/c/package.json' does not exist.", @@ -24,7 +24,7 @@ "======== Module name 'foo' was successfully resolved to '/a/b/node_modules/foo.d.ts'. ========", "======== Resolving module 'foo' from '/a/b/lib.ts'. ========", "Explicitly specified module resolution kind: 'Bundler'.", - "Resolving in CJS mode with conditions 'require', 'types'.", + "Resolving in CJS mode with conditions 'import', 'types'.", "File '/a/b/package.json' does not exist according to earlier cached lookups.", "File '/a/package.json' does not exist according to earlier cached lookups.", "File '/package.json' does not exist according to earlier cached lookups.", diff --git a/tests/baselines/reference/cachedModuleResolution6.js b/tests/baselines/reference/cachedModuleResolution6.js index 8a19b1465bc61..047489af86238 100644 --- a/tests/baselines/reference/cachedModuleResolution6.js +++ b/tests/baselines/reference/cachedModuleResolution6.js @@ -7,8 +7,6 @@ import {x} from "foo"; import {x} from "foo"; //// [app.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); +export {}; //// [lib.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); +export {}; diff --git a/tests/baselines/reference/cachedModuleResolution6.trace.json b/tests/baselines/reference/cachedModuleResolution6.trace.json index 07f830dabe7d0..609886d8d4528 100644 --- a/tests/baselines/reference/cachedModuleResolution6.trace.json +++ b/tests/baselines/reference/cachedModuleResolution6.trace.json @@ -1,7 +1,7 @@ [ "======== Resolving module 'foo' from '/a/b/c/d/e/app.ts'. ========", "Explicitly specified module resolution kind: 'Bundler'.", - "Resolving in CJS mode with conditions 'require', 'types'.", + "Resolving in CJS mode with conditions 'import', 'types'.", "File '/a/b/c/d/e/package.json' does not exist.", "File '/a/b/c/d/package.json' does not exist.", "File '/a/b/c/package.json' does not exist.", @@ -26,7 +26,7 @@ "======== Module name 'foo' was not resolved. ========", "======== Resolving module 'foo' from '/a/b/c/lib.ts'. ========", "Explicitly specified module resolution kind: 'Bundler'.", - "Resolving in CJS mode with conditions 'require', 'types'.", + "Resolving in CJS mode with conditions 'import', 'types'.", "File '/a/b/c/package.json' does not exist according to earlier cached lookups.", "File '/a/b/package.json' does not exist according to earlier cached lookups.", "File '/a/package.json' does not exist according to earlier cached lookups.", diff --git a/tests/baselines/reference/cachedModuleResolution7.js b/tests/baselines/reference/cachedModuleResolution7.js index 8c9855b143520..f6ed19d6e2b03 100644 --- a/tests/baselines/reference/cachedModuleResolution7.js +++ b/tests/baselines/reference/cachedModuleResolution7.js @@ -8,8 +8,6 @@ import {x} from "foo"; //// [lib.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); +export {}; //// [app.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); +export {}; diff --git a/tests/baselines/reference/cachedModuleResolution7.trace.json b/tests/baselines/reference/cachedModuleResolution7.trace.json index 129b46839332d..da6a0bd836159 100644 --- a/tests/baselines/reference/cachedModuleResolution7.trace.json +++ b/tests/baselines/reference/cachedModuleResolution7.trace.json @@ -1,7 +1,7 @@ [ "======== Resolving module 'foo' from '/a/b/c/lib.ts'. ========", "Explicitly specified module resolution kind: 'Bundler'.", - "Resolving in CJS mode with conditions 'require', 'types'.", + "Resolving in CJS mode with conditions 'import', 'types'.", "File '/a/b/c/package.json' does not exist.", "File '/a/b/package.json' does not exist.", "File '/a/package.json' does not exist.", @@ -20,7 +20,7 @@ "======== Module name 'foo' was not resolved. ========", "======== Resolving module 'foo' from '/a/b/c/d/e/app.ts'. ========", "Explicitly specified module resolution kind: 'Bundler'.", - "Resolving in CJS mode with conditions 'require', 'types'.", + "Resolving in CJS mode with conditions 'import', 'types'.", "File '/a/b/c/d/e/package.json' does not exist.", "File '/a/b/c/d/package.json' does not exist.", "File '/a/b/c/package.json' does not exist according to earlier cached lookups.", diff --git a/tests/baselines/reference/cachedModuleResolution8.js b/tests/baselines/reference/cachedModuleResolution8.js index c071c1dbf94ec..8a9c03e899bd8 100644 --- a/tests/baselines/reference/cachedModuleResolution8.js +++ b/tests/baselines/reference/cachedModuleResolution8.js @@ -7,8 +7,6 @@ import {x} from "foo"; import {x} from "foo"; //// [app.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); +export {}; //// [lib.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); +export {}; diff --git a/tests/baselines/reference/cachedModuleResolution9.js b/tests/baselines/reference/cachedModuleResolution9.js index 17ef035df3a8c..06830b43964f9 100644 --- a/tests/baselines/reference/cachedModuleResolution9.js +++ b/tests/baselines/reference/cachedModuleResolution9.js @@ -9,8 +9,6 @@ import {x} from "foo"; //// [lib.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); +export {}; //// [app.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); +export {}; diff --git a/tests/baselines/reference/callChain.3.js b/tests/baselines/reference/callChain.3.js index 38f02912a2dfe..f97b833b64182 100644 --- a/tests/baselines/reference/callChain.3.js +++ b/tests/baselines/reference/callChain.3.js @@ -15,10 +15,10 @@ t1 = a!.m!({x: 12}); //// [callChain.3.js] "use strict"; var _a, _b, _c, _d, _e; -var n1 = (_a = a === null || a === void 0 ? void 0 : a.m) === null || _a === void 0 ? void 0 : _a.call(a, { x: 12 }); // should be an error (`undefined` is not assignable to `number`) -var n2 = (_b = a === null || a === void 0 ? void 0 : a.m) === null || _b === void 0 ? void 0 : _b.call(a, { x: absorb() }); // likewise -var n3 = (_c = a === null || a === void 0 ? void 0 : a.m) === null || _c === void 0 ? void 0 : _c.call(a, { x: 12 }); // should be ok -var n4 = (_d = a === null || a === void 0 ? void 0 : a.m) === null || _d === void 0 ? void 0 : _d.call(a, { x: absorb() }); // likewise +const n1 = (_a = a === null || a === void 0 ? void 0 : a.m) === null || _a === void 0 ? void 0 : _a.call(a, { x: 12 }); // should be an error (`undefined` is not assignable to `number`) +const n2 = (_b = a === null || a === void 0 ? void 0 : a.m) === null || _b === void 0 ? void 0 : _b.call(a, { x: absorb() }); // likewise +const n3 = (_c = a === null || a === void 0 ? void 0 : a.m) === null || _c === void 0 ? void 0 : _c.call(a, { x: 12 }); // should be ok +const n4 = (_d = a === null || a === void 0 ? void 0 : a.m) === null || _d === void 0 ? void 0 : _d.call(a, { x: absorb() }); // likewise // Also a test showing `!` vs `?` for good measure -var t1 = (_e = a === null || a === void 0 ? void 0 : a.m) === null || _e === void 0 ? void 0 : _e.call(a, { x: 12 }); +let t1 = (_e = a === null || a === void 0 ? void 0 : a.m) === null || _e === void 0 ? void 0 : _e.call(a, { x: 12 }); t1 = a.m({ x: 12 }); diff --git a/tests/baselines/reference/callChain.js b/tests/baselines/reference/callChain.js index 1fca98bc97818..a8a8806923709 100644 --- a/tests/baselines/reference/callChain.js +++ b/tests/baselines/reference/callChain.js @@ -45,41 +45,32 @@ o2?.b()!.toString!; //// [callChain.js] "use strict"; -var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { - if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { - if (ar || !(i in from)) { - if (!ar) ar = Array.prototype.slice.call(from, 0, i); - ar[i] = from[i]; - } - } - return to.concat(ar || Array.prototype.slice.call(from)); -}; var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o; o1 === null || o1 === void 0 ? void 0 : o1(); o1 === null || o1 === void 0 ? void 0 : o1(1); -o1 === null || o1 === void 0 ? void 0 : o1.apply(void 0, [1, 2]); -o1 === null || o1 === void 0 ? void 0 : o1.apply(void 0, __spreadArray(__spreadArray([1], [2, 3], false), [4], false)); +o1 === null || o1 === void 0 ? void 0 : o1(...[1, 2]); +o1 === null || o1 === void 0 ? void 0 : o1(1, ...[2, 3], 4); o2 === null || o2 === void 0 ? void 0 : o2.b(); o2 === null || o2 === void 0 ? void 0 : o2.b(1); -o2 === null || o2 === void 0 ? void 0 : o2.b.apply(o2, [1, 2]); -o2 === null || o2 === void 0 ? void 0 : o2.b.apply(o2, __spreadArray(__spreadArray([1], [2, 3], false), [4], false)); +o2 === null || o2 === void 0 ? void 0 : o2.b(...[1, 2]); +o2 === null || o2 === void 0 ? void 0 : o2.b(1, ...[2, 3], 4); o2 === null || o2 === void 0 ? void 0 : o2["b"](); o2 === null || o2 === void 0 ? void 0 : o2["b"](1); -o2 === null || o2 === void 0 ? void 0 : o2["b"].apply(o2, [1, 2]); -o2 === null || o2 === void 0 ? void 0 : o2["b"].apply(o2, __spreadArray(__spreadArray([1], [2, 3], false), [4], false)); +o2 === null || o2 === void 0 ? void 0 : o2["b"](...[1, 2]); +o2 === null || o2 === void 0 ? void 0 : o2["b"](1, ...[2, 3], 4); (_a = o3.b) === null || _a === void 0 ? void 0 : _a.call(o3).c; (_b = o3.b) === null || _b === void 0 ? void 0 : _b.call(o3, 1).c; -(_c = o3.b) === null || _c === void 0 ? void 0 : _c.call.apply(_c, __spreadArray([o3], [1, 2], false)).c; -(_d = o3.b) === null || _d === void 0 ? void 0 : _d.call.apply(_d, __spreadArray(__spreadArray([o3, 1], [2, 3], false), [4], false)).c; +(_c = o3.b) === null || _c === void 0 ? void 0 : _c.call(o3, ...[1, 2]).c; +(_d = o3.b) === null || _d === void 0 ? void 0 : _d.call(o3, 1, ...[2, 3], 4).c; (_e = o3.b) === null || _e === void 0 ? void 0 : _e.call(o3)["c"]; (_f = o3.b) === null || _f === void 0 ? void 0 : _f.call(o3, 1)["c"]; -(_g = o3.b) === null || _g === void 0 ? void 0 : _g.call.apply(_g, __spreadArray([o3], [1, 2], false))["c"]; -(_h = o3.b) === null || _h === void 0 ? void 0 : _h.call.apply(_h, __spreadArray(__spreadArray([o3, 1], [2, 3], false), [4], false))["c"]; +(_g = o3.b) === null || _g === void 0 ? void 0 : _g.call(o3, ...[1, 2])["c"]; +(_h = o3.b) === null || _h === void 0 ? void 0 : _h.call(o3, 1, ...[2, 3], 4)["c"]; (_j = o3["b"]) === null || _j === void 0 ? void 0 : _j.call(o3).c; (_k = o3["b"]) === null || _k === void 0 ? void 0 : _k.call(o3, 1).c; -(_l = o3["b"]) === null || _l === void 0 ? void 0 : _l.call.apply(_l, __spreadArray([o3], [1, 2], false)).c; -(_m = o3["b"]) === null || _m === void 0 ? void 0 : _m.call.apply(_m, __spreadArray(__spreadArray([o3, 1], [2, 3], false), [4], false)).c; -var v = o4 === null || o4 === void 0 ? void 0 : o4(incr); +(_l = o3["b"]) === null || _l === void 0 ? void 0 : _l.call(o3, ...[1, 2]).c; +(_m = o3["b"]) === null || _m === void 0 ? void 0 : _m.call(o3, 1, ...[2, 3], 4).c; +const v = o4 === null || o4 === void 0 ? void 0 : o4(incr); (_o = o5()) === null || _o === void 0 ? void 0 : _o(); // GH#36031 o2 === null || o2 === void 0 ? void 0 : o2.b().toString; diff --git a/tests/baselines/reference/callGenericFunctionWithIncorrectNumberOfTypeArguments.js b/tests/baselines/reference/callGenericFunctionWithIncorrectNumberOfTypeArguments.js index 956611581c8d2..293ff621cbbc2 100644 --- a/tests/baselines/reference/callGenericFunctionWithIncorrectNumberOfTypeArguments.js +++ b/tests/baselines/reference/callGenericFunctionWithIncorrectNumberOfTypeArguments.js @@ -52,31 +52,25 @@ var r7b = i2.f(1, ''); function f(x, y) { return null; } var r1 = f(1, ''); var r1b = f(1, ''); -var f2 = function (x, y) { return null; }; +var f2 = (x, y) => { return null; }; var r2 = f2(1, ''); var r2b = f2(1, ''); var r3 = f3(1, ''); var r3b = f3(1, ''); -var C = /** @class */ (function () { - function C() { - } - C.prototype.f = function (x, y) { +class C { + f(x, y) { return null; - }; - return C; -}()); + } +} var r4 = (new C()).f(1, ''); var r4b = (new C()).f(1, ''); var r5 = i.f(1, ''); var r5b = i.f(1, ''); -var C2 = /** @class */ (function () { - function C2() { - } - C2.prototype.f = function (x, y) { +class C2 { + f(x, y) { return null; - }; - return C2; -}()); + } +} var r6 = (new C2()).f(1, ''); var r6b = (new C2()).f(1, ''); var r7 = i2.f(1, ''); diff --git a/tests/baselines/reference/callGenericFunctionWithZeroTypeArguments.js b/tests/baselines/reference/callGenericFunctionWithZeroTypeArguments.js index 5bcb94f0d1860..c3551a68add46 100644 --- a/tests/baselines/reference/callGenericFunctionWithZeroTypeArguments.js +++ b/tests/baselines/reference/callGenericFunctionWithZeroTypeArguments.js @@ -42,29 +42,23 @@ var r7 = i2.f(1); // valid invocations of generic functions with no explicit type arguments provided function f(x) { return null; } var r = f(1); -var f2 = function (x) { return null; }; +var f2 = (x) => { return null; }; var r2 = f2(1); var f3; var r3 = f3(1); -var C = /** @class */ (function () { - function C() { - } - C.prototype.f = function (x) { +class C { + f(x) { return null; - }; - return C; -}()); + } +} var r4 = (new C()).f(1); var i; var r5 = i.f(1); -var C2 = /** @class */ (function () { - function C2() { - } - C2.prototype.f = function (x) { +class C2 { + f(x) { return null; - }; - return C2; -}()); + } +} var r6 = (new C2()).f(1); var i2; var r7 = i2.f(1); diff --git a/tests/baselines/reference/callNonGenericFunctionWithTypeArguments.js b/tests/baselines/reference/callNonGenericFunctionWithTypeArguments.js index 3ed8d92d72537..9940f580d956c 100644 --- a/tests/baselines/reference/callNonGenericFunctionWithTypeArguments.js +++ b/tests/baselines/reference/callNonGenericFunctionWithTypeArguments.js @@ -50,27 +50,21 @@ var r8 = a2(); // all invocations here are illegal function f(x) { return null; } var r = f(1); -var f2 = function (x) { return null; }; +var f2 = (x) => { return null; }; var r2 = f2(1); var r3 = f3(1); -var C = /** @class */ (function () { - function C() { - } - C.prototype.f = function (x) { +class C { + f(x) { return null; - }; - return C; -}()); + } +} var r4 = (new C()).f(1); var r5 = i.f(1); -var C2 = /** @class */ (function () { - function C2() { - } - C2.prototype.f = function (x) { +class C2 { + f(x) { return null; - }; - return C2; -}()); + } +} var r6 = (new C2()).f(1); var r7 = i2.f(1); var r8 = a(); diff --git a/tests/baselines/reference/callOfConditionalTypeWithConcreteBranches.js b/tests/baselines/reference/callOfConditionalTypeWithConcreteBranches.js index 22dde43604091..257c144596c5c 100644 --- a/tests/baselines/reference/callOfConditionalTypeWithConcreteBranches.js +++ b/tests/baselines/reference/callOfConditionalTypeWithConcreteBranches.js @@ -44,21 +44,20 @@ export type AddFirstParameterToFunctions = { }; //// [callOfConditionalTypeWithConcreteBranches.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); function fn(arg) { // Expected: OK // Actual: Cannot convert 10 to number & T arg(10); } // Legal invocations are not problematic -fn(function (m) { return m.toFixed(); }); -fn(function (m) { return m.toFixed(); }); +fn(m => m.toFixed()); +fn(m => m.toFixed()); function fn2(arg) { function useT(_arg) { } // Expected: OK - arg(function (arg) { return useT(arg); }); + arg(arg => useT(arg)); } // Legal invocations are not problematic -fn2(function (m) { return m(42); }); -fn2(function (m) { return m(42); }); +fn2(m => m(42)); +fn2(m => m(42)); +export {}; diff --git a/tests/baselines/reference/callOnClass.js b/tests/baselines/reference/callOnClass.js index f2695596d1dbe..f4236139f71fe 100644 --- a/tests/baselines/reference/callOnClass.js +++ b/tests/baselines/reference/callOnClass.js @@ -7,9 +7,6 @@ var c = C(); //// [callOnClass.js] -var C = /** @class */ (function () { - function C() { - } - return C; -}()); +class C { +} var c = C(); diff --git a/tests/baselines/reference/callOverload.js b/tests/baselines/reference/callOverload.js index e1e4377119ca8..5d56f5a9d966f 100644 --- a/tests/baselines/reference/callOverload.js +++ b/tests/baselines/reference/callOverload.js @@ -14,18 +14,9 @@ withRest(); withRest(...n); //// [callOverload.js] -var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { - if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { - if (ar || !(i in from)) { - if (!ar) ar = Array.prototype.slice.call(from, 0, i); - ar[i] = from[i]; - } - } - return to.concat(ar || Array.prototype.slice.call(from)); -}; fn(1); // no error fn(1, 2, 3, 4); takeTwo(1, 2, 3, 4); -withRest.apply(void 0, __spreadArray(['a'], n, false)); // no error +withRest('a', ...n); // no error withRest(); -withRest.apply(void 0, n); +withRest(...n); diff --git a/tests/baselines/reference/callOverloadViaElementAccessExpression.js b/tests/baselines/reference/callOverloadViaElementAccessExpression.js index 4d00a18a4e900..a0286e6614b78 100644 --- a/tests/baselines/reference/callOverloadViaElementAccessExpression.js +++ b/tests/baselines/reference/callOverloadViaElementAccessExpression.js @@ -14,14 +14,11 @@ var r: string = c['foo'](1); var r2: number = c['foo'](''); //// [callOverloadViaElementAccessExpression.js] -var C = /** @class */ (function () { - function C() { - } - C.prototype.foo = function (x) { +class C { + foo(x) { return null; - }; - return C; -}()); + } +} var c = new C(); var r = c['foo'](1); var r2 = c['foo'](''); diff --git a/tests/baselines/reference/callOverloads1.js b/tests/baselines/reference/callOverloads1.js index 1a24c858e1f3b..695f5d5d7ab6b 100644 --- a/tests/baselines/reference/callOverloads1.js +++ b/tests/baselines/reference/callOverloads1.js @@ -20,13 +20,12 @@ f1.bar1(); Foo(); //// [callOverloads1.js] -var Foo = /** @class */ (function () { - function Foo(x) { +class Foo { + bar1() { } + constructor(x) { // WScript.Echo("Constructor function has executed"); } - Foo.prototype.bar1 = function () { }; - return Foo; -}()); +} function F1(a) { return a; } var f1 = new Foo("hey"); f1.bar1(); diff --git a/tests/baselines/reference/callOverloads2.js b/tests/baselines/reference/callOverloads2.js index 366a42fa82197..0f51e6ccf4d35 100644 --- a/tests/baselines/reference/callOverloads2.js +++ b/tests/baselines/reference/callOverloads2.js @@ -26,13 +26,12 @@ Foo(); //// [callOverloads2.js] -var Foo = /** @class */ (function () { - function Foo(x) { +class Foo { + bar1() { } + constructor(x) { // WScript.Echo("Constructor function has executed"); } - Foo.prototype.bar1 = function () { }; - return Foo; -}()); +} function F1(s) { return s; } // error function F1(a) { return a; } // error var f1 = new Foo("hey"); diff --git a/tests/baselines/reference/callOverloads3.js b/tests/baselines/reference/callOverloads3.js index 51bb69f48fbd5..46091313c45c0 100644 --- a/tests/baselines/reference/callOverloads3.js +++ b/tests/baselines/reference/callOverloads3.js @@ -20,13 +20,12 @@ Foo("s"); //// [callOverloads3.js] -var Foo = /** @class */ (function () { - function Foo(x) { +class Foo { + bar1() { } + constructor(x) { // WScript.Echo("Constructor function has executed"); } - Foo.prototype.bar1 = function () { }; - return Foo; -}()); +} //class Foo(s: String); var f1 = new Foo("hey"); f1.bar1(); diff --git a/tests/baselines/reference/callOverloads4.js b/tests/baselines/reference/callOverloads4.js index 96d8662c1027d..92e3c99f096a7 100644 --- a/tests/baselines/reference/callOverloads4.js +++ b/tests/baselines/reference/callOverloads4.js @@ -20,13 +20,12 @@ Foo("s"); //// [callOverloads4.js] -var Foo = /** @class */ (function () { - function Foo(x) { +class Foo { + bar1() { } + constructor(x) { // WScript.Echo("Constructor function has executed"); } - Foo.prototype.bar1 = function () { }; - return Foo; -}()); +} var f1 = new Foo("hey"); f1.bar1(); Foo(); diff --git a/tests/baselines/reference/callOverloads5.js b/tests/baselines/reference/callOverloads5.js index 9fd1462f0ffaa..f424aa5461677 100644 --- a/tests/baselines/reference/callOverloads5.js +++ b/tests/baselines/reference/callOverloads5.js @@ -22,13 +22,12 @@ Foo("s"); //// [callOverloads5.js] -var Foo = /** @class */ (function () { - function Foo(x) { +class Foo { + bar1(a) { } + constructor(x) { // WScript.Echo("Constructor function has executed"); } - Foo.prototype.bar1 = function (a) { }; - return Foo; -}()); +} //class Foo(s: String); var f1 = new Foo("hey"); f1.bar1("a"); diff --git a/tests/baselines/reference/callSignatureAssignabilityInInheritance2.js b/tests/baselines/reference/callSignatureAssignabilityInInheritance2.js index dbd499c336ce0..50366ac744ec6 100644 --- a/tests/baselines/reference/callSignatureAssignabilityInInheritance2.js +++ b/tests/baselines/reference/callSignatureAssignabilityInInheritance2.js @@ -73,44 +73,11 @@ interface I extends A { //// [callSignatureAssignabilityInInheritance2.js] // checking subtype relations for function types as it relates to contextual signature instantiation -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -var Base = /** @class */ (function () { - function Base() { - } - return Base; -}()); -var Derived = /** @class */ (function (_super) { - __extends(Derived, _super); - function Derived() { - return _super !== null && _super.apply(this, arguments) || this; - } - return Derived; -}(Base)); -var Derived2 = /** @class */ (function (_super) { - __extends(Derived2, _super); - function Derived2() { - return _super !== null && _super.apply(this, arguments) || this; - } - return Derived2; -}(Derived)); -var OtherDerived = /** @class */ (function (_super) { - __extends(OtherDerived, _super); - function OtherDerived() { - return _super !== null && _super.apply(this, arguments) || this; - } - return OtherDerived; -}(Base)); +class Base { +} +class Derived extends Base { +} +class Derived2 extends Derived { +} +class OtherDerived extends Base { +} diff --git a/tests/baselines/reference/callSignatureAssignabilityInInheritance3.js b/tests/baselines/reference/callSignatureAssignabilityInInheritance3.js index c7dc8466274e6..3b13c93beac64 100644 --- a/tests/baselines/reference/callSignatureAssignabilityInInheritance3.js +++ b/tests/baselines/reference/callSignatureAssignabilityInInheritance3.js @@ -118,47 +118,14 @@ namespace Errors { //// [callSignatureAssignabilityInInheritance3.js] // checking subtype relations for function types as it relates to contextual signature instantiation // error cases -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); var Errors; (function (Errors) { - var Base = /** @class */ (function () { - function Base() { - } - return Base; - }()); - var Derived = /** @class */ (function (_super) { - __extends(Derived, _super); - function Derived() { - return _super !== null && _super.apply(this, arguments) || this; - } - return Derived; - }(Base)); - var Derived2 = /** @class */ (function (_super) { - __extends(Derived2, _super); - function Derived2() { - return _super !== null && _super.apply(this, arguments) || this; - } - return Derived2; - }(Derived)); - var OtherDerived = /** @class */ (function (_super) { - __extends(OtherDerived, _super); - function OtherDerived() { - return _super !== null && _super.apply(this, arguments) || this; - } - return OtherDerived; - }(Base)); + class Base { + } + class Derived extends Base { + } + class Derived2 extends Derived { + } + class OtherDerived extends Base { + } })(Errors || (Errors = {})); diff --git a/tests/baselines/reference/callSignatureAssignabilityInInheritance4.js b/tests/baselines/reference/callSignatureAssignabilityInInheritance4.js index b805ebb772785..3b491277243d2 100644 --- a/tests/baselines/reference/callSignatureAssignabilityInInheritance4.js +++ b/tests/baselines/reference/callSignatureAssignabilityInInheritance4.js @@ -53,44 +53,11 @@ interface I extends A { //// [callSignatureAssignabilityInInheritance4.js] // checking subtype relations for function types as it relates to contextual signature instantiation -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -var Base = /** @class */ (function () { - function Base() { - } - return Base; -}()); -var Derived = /** @class */ (function (_super) { - __extends(Derived, _super); - function Derived() { - return _super !== null && _super.apply(this, arguments) || this; - } - return Derived; -}(Base)); -var Derived2 = /** @class */ (function (_super) { - __extends(Derived2, _super); - function Derived2() { - return _super !== null && _super.apply(this, arguments) || this; - } - return Derived2; -}(Derived)); -var OtherDerived = /** @class */ (function (_super) { - __extends(OtherDerived, _super); - function OtherDerived() { - return _super !== null && _super.apply(this, arguments) || this; - } - return OtherDerived; -}(Base)); +class Base { +} +class Derived extends Base { +} +class Derived2 extends Derived { +} +class OtherDerived extends Base { +} diff --git a/tests/baselines/reference/callSignatureAssignabilityInInheritance5.js b/tests/baselines/reference/callSignatureAssignabilityInInheritance5.js index c26f4527fb190..fa7e58542ce9b 100644 --- a/tests/baselines/reference/callSignatureAssignabilityInInheritance5.js +++ b/tests/baselines/reference/callSignatureAssignabilityInInheritance5.js @@ -53,44 +53,11 @@ interface I extends B { //// [callSignatureAssignabilityInInheritance5.js] // checking subtype relations for function types as it relates to contextual signature instantiation // same as subtypingWithCallSignatures2 just with an extra level of indirection in the inheritance chain -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -var Base = /** @class */ (function () { - function Base() { - } - return Base; -}()); -var Derived = /** @class */ (function (_super) { - __extends(Derived, _super); - function Derived() { - return _super !== null && _super.apply(this, arguments) || this; - } - return Derived; -}(Base)); -var Derived2 = /** @class */ (function (_super) { - __extends(Derived2, _super); - function Derived2() { - return _super !== null && _super.apply(this, arguments) || this; - } - return Derived2; -}(Derived)); -var OtherDerived = /** @class */ (function (_super) { - __extends(OtherDerived, _super); - function OtherDerived() { - return _super !== null && _super.apply(this, arguments) || this; - } - return OtherDerived; -}(Base)); +class Base { +} +class Derived extends Base { +} +class Derived2 extends Derived { +} +class OtherDerived extends Base { +} diff --git a/tests/baselines/reference/callSignatureAssignabilityInInheritance6.js b/tests/baselines/reference/callSignatureAssignabilityInInheritance6.js index 2f57fcebd5396..46a6bd0d20b46 100644 --- a/tests/baselines/reference/callSignatureAssignabilityInInheritance6.js +++ b/tests/baselines/reference/callSignatureAssignabilityInInheritance6.js @@ -56,44 +56,11 @@ interface I9 extends A { // checking subtype relations for function types as it relates to contextual signature instantiation // same as subtypingWithCallSignatures4 but using class type parameters instead of generic signatures // all are errors -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -var Base = /** @class */ (function () { - function Base() { - } - return Base; -}()); -var Derived = /** @class */ (function (_super) { - __extends(Derived, _super); - function Derived() { - return _super !== null && _super.apply(this, arguments) || this; - } - return Derived; -}(Base)); -var Derived2 = /** @class */ (function (_super) { - __extends(Derived2, _super); - function Derived2() { - return _super !== null && _super.apply(this, arguments) || this; - } - return Derived2; -}(Derived)); -var OtherDerived = /** @class */ (function (_super) { - __extends(OtherDerived, _super); - function OtherDerived() { - return _super !== null && _super.apply(this, arguments) || this; - } - return OtherDerived; -}(Base)); +class Base { +} +class Derived extends Base { +} +class Derived2 extends Derived { +} +class OtherDerived extends Base { +} diff --git a/tests/baselines/reference/callSignatureWithOptionalParameterAndInitializer.js b/tests/baselines/reference/callSignatureWithOptionalParameterAndInitializer.js index e64df78dfad5f..e8b84d9870327 100644 --- a/tests/baselines/reference/callSignatureWithOptionalParameterAndInitializer.js +++ b/tests/baselines/reference/callSignatureWithOptionalParameterAndInitializer.js @@ -59,29 +59,18 @@ b.b(1); //// [callSignatureWithOptionalParameterAndInitializer.js] // Optional parameters cannot also have initializer expressions, these are all errors -function foo(x) { - if (x === void 0) { x = 1; } -} -var f = function foo(x) { - if (x === void 0) { x = 1; } -}; -var f2 = function (x, y) { - if (y === void 0) { y = 1; } -}; +function foo(x = 1) { } +var f = function foo(x = 1) { }; +var f2 = (x, y = 1) => { }; foo(1); foo(); f(1); f(); f2(1); f2(1, 2); -var C = /** @class */ (function () { - function C() { - } - C.prototype.foo = function (x) { - if (x === void 0) { x = 1; } - }; - return C; -}()); +class C { + foo(x = 1) { } +} c.foo(); c.foo(1); i(); @@ -93,15 +82,9 @@ a(1); a.foo(); a.foo(1); var b = { - foo: function (x) { - if (x === void 0) { x = 1; } - }, - a: function foo(x, y) { - if (y === void 0) { y = ''; } - }, - b: function (x) { - if (x === void 0) { x = ''; } - } + foo(x = 1) { }, + a: function foo(x, y = '') { }, + b: (x = '') => { } }; b.foo(); b.foo(1); diff --git a/tests/baselines/reference/callSignatureWithoutReturnTypeAnnotationInference.js b/tests/baselines/reference/callSignatureWithoutReturnTypeAnnotationInference.js index 07f6382f2a82a..9624e33d1bb22 100644 --- a/tests/baselines/reference/callSignatureWithoutReturnTypeAnnotationInference.js +++ b/tests/baselines/reference/callSignatureWithoutReturnTypeAnnotationInference.js @@ -175,11 +175,8 @@ function foo9(x) { return i; } var r9 = foo9(1); -var C = /** @class */ (function () { - function C() { - } - return C; -}()); +class C { +} function foo10(x) { var c; return c; @@ -188,11 +185,8 @@ var r10 = foo10(1); var M; (function (M) { M.x = 1; - var C = /** @class */ (function () { - function C() { - } - return C; - }()); + class C { + } M.C = C; })(M || (M = {})); function foo11() { @@ -212,11 +206,9 @@ function foo13() { return m1; } var r13 = foo13(); -var c1 = /** @class */ (function () { - function c1(x) { - } - return c1; -}()); +class c1 { + constructor(x) { } +} (function (c1) { c1.x = 1; })(c1 || (c1 = {})); diff --git a/tests/baselines/reference/callSignaturesWithAccessibilityModifiersOnParameters.js b/tests/baselines/reference/callSignaturesWithAccessibilityModifiersOnParameters.js index 19a4182705ccc..6fbb336bb8b6f 100644 --- a/tests/baselines/reference/callSignaturesWithAccessibilityModifiersOnParameters.js +++ b/tests/baselines/reference/callSignaturesWithAccessibilityModifiersOnParameters.js @@ -45,24 +45,21 @@ var b = { function foo(x, y) { } var f = function foo(x, y) { }; var f2 = function (x, y) { }; -var f3 = function (x, y) { }; -var f4 = function (x, y) { }; +var f3 = (x, y) => { }; +var f4 = (x, y) => { }; function foo2(x, y) { } var f5 = function foo(x, y) { }; var f6 = function (x, y) { }; -var f7 = function (x, y) { }; -var f8 = function (x, y) { }; -var C = /** @class */ (function () { - function C() { - } - C.prototype.foo = function (x, y) { }; - C.prototype.foo2 = function (x, y) { }; - C.prototype.foo3 = function (x, y) { }; - return C; -}()); +var f7 = (x, y) => { }; +var f8 = (x, y) => { }; +class C { + foo(x, y) { } + foo2(x, y) { } + foo3(x, y) { } +} var a; var b = { - foo: function (x, y) { }, + foo(x, y) { }, a: function foo(x, y) { }, - b: function (x, y) { } + b: (x, y) => { } }; diff --git a/tests/baselines/reference/callSignaturesWithDuplicateParameters.js b/tests/baselines/reference/callSignaturesWithDuplicateParameters.js index dcbb509d3eedc..62498a8500fe6 100644 --- a/tests/baselines/reference/callSignaturesWithDuplicateParameters.js +++ b/tests/baselines/reference/callSignaturesWithDuplicateParameters.js @@ -45,24 +45,21 @@ var b = { function foo(x, x) { } var f = function foo(x, x) { }; var f2 = function (x, x) { }; -var f3 = function (x, x) { }; -var f4 = function (x, x) { }; +var f3 = (x, x) => { }; +var f4 = (x, x) => { }; function foo2(x, x) { } var f5 = function foo(x, x) { }; var f6 = function (x, x) { }; -var f7 = function (x, x) { }; -var f8 = function (x, y) { }; -var C = /** @class */ (function () { - function C() { - } - C.prototype.foo = function (x, x) { }; - C.prototype.foo2 = function (x, x) { }; - C.prototype.foo3 = function (x, x) { }; - return C; -}()); +var f7 = (x, x) => { }; +var f8 = (x, y) => { }; +class C { + foo(x, x) { } + foo2(x, x) { } + foo3(x, x) { } +} var a; var b = { - foo: function (x, x) { }, + foo(x, x) { }, a: function foo(x, x) { }, - b: function (x, x) { } + b: (x, x) => { } }; diff --git a/tests/baselines/reference/callSignaturesWithOptionalParameters.js b/tests/baselines/reference/callSignaturesWithOptionalParameters.js index 33702b35d8e5d..1ace9470e703c 100644 --- a/tests/baselines/reference/callSignaturesWithOptionalParameters.js +++ b/tests/baselines/reference/callSignaturesWithOptionalParameters.js @@ -61,19 +61,16 @@ b.b(1); // Optional parameters should be valid in all the below casts function foo(x) { } var f = function foo(x) { }; -var f2 = function (x, y) { }; +var f2 = (x, y) => { }; foo(1); foo(); f(1); f(); f2(1); f2(1, 2); -var C = /** @class */ (function () { - function C() { - } - C.prototype.foo = function (x) { }; - return C; -}()); +class C { + foo(x) { } +} var c; c.foo(); c.foo(1); @@ -88,9 +85,9 @@ a(1); a.foo(); a.foo(1); var b = { - foo: function (x) { }, + foo(x) { }, a: function foo(x, y) { }, - b: function (x) { } + b: (x) => { } }; b.foo(); b.foo(1); diff --git a/tests/baselines/reference/callSignaturesWithOptionalParameters2.js b/tests/baselines/reference/callSignaturesWithOptionalParameters2.js index fa6b9432e0c5b..5849798188b21 100644 --- a/tests/baselines/reference/callSignaturesWithOptionalParameters2.js +++ b/tests/baselines/reference/callSignaturesWithOptionalParameters2.js @@ -69,13 +69,10 @@ foo(); function foo2(x, y) { } foo2(1); foo2(1, 2); -var C = /** @class */ (function () { - function C() { - } - C.prototype.foo = function (x) { }; - C.prototype.foo2 = function (x, y) { }; - return C; -}()); +class C { + foo(x) { } + foo2(x, y) { } +} var c; c.foo(); c.foo(1); diff --git a/tests/baselines/reference/callSignaturesWithParameterInitializers.js b/tests/baselines/reference/callSignaturesWithParameterInitializers.js index faf3182173d53..fe85cd11cd4d0 100644 --- a/tests/baselines/reference/callSignaturesWithParameterInitializers.js +++ b/tests/baselines/reference/callSignaturesWithParameterInitializers.js @@ -61,29 +61,18 @@ b.b(1); //// [callSignaturesWithParameterInitializers.js] // Optional parameters allow initializers only in implementation signatures -function foo(x) { - if (x === void 0) { x = 1; } -} -var f = function foo(x) { - if (x === void 0) { x = 1; } -}; -var f2 = function (x, y) { - if (y === void 0) { y = 1; } -}; +function foo(x = 1) { } +var f = function foo(x = 1) { }; +var f2 = (x, y = 1) => { }; foo(1); foo(); f(1); f(); f2(1); f2(1, 2); -var C = /** @class */ (function () { - function C() { - } - C.prototype.foo = function (x) { - if (x === void 0) { x = 1; } - }; - return C; -}()); +class C { + foo(x = 1) { } +} c.foo(); c.foo(1); i(); @@ -95,15 +84,9 @@ a(1); a.foo(); a.foo(1); var b = { - foo: function (x) { - if (x === void 0) { x = 1; } - }, - a: function foo(x, y) { - if (y === void 0) { y = 1; } - }, - b: function (x) { - if (x === void 0) { x = 1; } - } + foo(x = 1) { }, + a: function foo(x, y = 1) { }, + b: (x = 1) => { } }; b.foo(); b.foo(1); diff --git a/tests/baselines/reference/callSignaturesWithParameterInitializers2.js b/tests/baselines/reference/callSignaturesWithParameterInitializers2.js index 0818e4b97e0e0..278c39d54c53c 100644 --- a/tests/baselines/reference/callSignaturesWithParameterInitializers2.js +++ b/tests/baselines/reference/callSignaturesWithParameterInitializers2.js @@ -30,28 +30,17 @@ b.foo(1); //// [callSignaturesWithParameterInitializers2.js] // Optional parameters allow initializers only in implementation signatures // All the below declarations are errors -function foo(x) { - if (x === void 0) { x = 1; } -} +function foo(x = 1) { } foo(1); foo(); -var C = /** @class */ (function () { - function C() { - } - C.prototype.foo = function (x) { - if (x === void 0) { x = 1; } - }; - return C; -}()); +class C { + foo(x = 1) { } +} c.foo(); c.foo(1); var b = { - foo: function (x) { - if (x === void 0) { x = 1; } - }, // error - foo: function (x) { - if (x === void 0) { x = 1; } - }, + foo(x = 1) { }, // error + foo(x = 1) { }, // error }; b.foo(); b.foo(1); diff --git a/tests/baselines/reference/callWithMissingVoid.js b/tests/baselines/reference/callWithMissingVoid.js index 72a0bca07b59b..51a8f709709a2 100644 --- a/tests/baselines/reference/callWithMissingVoid.js +++ b/tests/baselines/reference/callWithMissingVoid.js @@ -89,14 +89,11 @@ call((x: number | void, y: number | void) => 42, 4, 2) // ok //// [callWithMissingVoid.js] "use strict"; // From #4260 -var X = /** @class */ (function () { - function X() { - } - X.prototype.f = function (t) { +class X { + f(t) { return { a: t }; - }; - return X; -}()); + } +} x.f(); // no error because f expects void xUnion.f(42); // no error because f accepts number xUnion.f(); // no error because f accepts void @@ -104,16 +101,15 @@ xAny.f(); // error, any still expects an argument xUnknown.f(); // error, unknown still expects an argument xNever.f(); // error, never still expects an argument // Promise has previously been updated to work without arguments, but to show this fixes the issue too. -var MyPromise = /** @class */ (function () { - function MyPromise(executor) { +class MyPromise { + constructor(executor) { } - return MyPromise; -}()); -new MyPromise(function (resolve) { return resolve(); }); // no error -new MyPromise(function (resolve) { return resolve(); }); // no error -new MyPromise(function (resolve) { return resolve(); }); // error, `any` arguments cannot be omitted -new MyPromise(function (resolve) { return resolve(); }); // error, `unknown` arguments cannot be omitted -new MyPromise(function (resolve) { return resolve(); }); // error, `never` arguments cannot be omitted +} +new MyPromise(resolve => resolve()); // no error +new MyPromise(resolve => resolve()); // no error +new MyPromise(resolve => resolve()); // error, `any` arguments cannot be omitted +new MyPromise(resolve => resolve()); // error, `unknown` arguments cannot be omitted +new MyPromise(resolve => resolve()); // error, `never` arguments cannot be omitted // Multiple parameters function a(x, y, z) { } @@ -132,11 +128,11 @@ c(3, void 0, void 0); // ok c(3, void 0); // ok c(3); // ok c(); // ok -call(function (x, y) { return x + y; }); // error -call(function (x, y) { return x + y; }, 4, 2); // ok -call(function (x, y) { return x; }, 4, void 0); // ok -call(function (x, y) { return x; }, 4); // ok -call(function (x, y) { return 42; }); // ok -call(function (x, y) { return 42; }); // ok -call(function (x, y) { return 42; }, 4); // ok -call(function (x, y) { return 42; }, 4, 2); // ok +call((x, y) => x + y); // error +call((x, y) => x + y, 4, 2); // ok +call((x, y) => x, 4, void 0); // ok +call((x, y) => x, 4); // ok +call((x, y) => 42); // ok +call((x, y) => 42); // ok +call((x, y) => 42, 4); // ok +call((x, y) => 42, 4, 2); // ok diff --git a/tests/baselines/reference/callWithSpread.js b/tests/baselines/reference/callWithSpread.js index 6bf603161d25c..decc82fdeeb7b 100644 --- a/tests/baselines/reference/callWithSpread.js +++ b/tests/baselines/reference/callWithSpread.js @@ -61,86 +61,46 @@ class D extends C { //// [callWithSpread.js] -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { - if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { - if (ar || !(i in from)) { - if (!ar) ar = Array.prototype.slice.call(from, 0, i); - ar[i] = from[i]; - } - } - return to.concat(ar || Array.prototype.slice.call(from)); -}; -var _a, _b, _c, _d, _e, _f, _g; -function foo(x, y) { - var z = []; - for (var _i = 2; _i < arguments.length; _i++) { - z[_i - 2] = arguments[_i]; - } +function foo(x, y, ...z) { } var a; var z; var obj; var xa; foo(1, 2, "abc"); -foo.apply(void 0, __spreadArray([1, 2], a, false)); -foo.apply(void 0, __spreadArray(__spreadArray([1, 2], a, false), ["abc"], false)); +foo(1, 2, ...a); +foo(1, 2, ...a, "abc"); obj.foo(1, 2, "abc"); -obj.foo.apply(obj, __spreadArray([1, 2], a, false)); -obj.foo.apply(obj, __spreadArray(__spreadArray([1, 2], a, false), ["abc"], false)); -obj.foo.apply(obj, __spreadArray([1, 2], a, false)).foo(1, 2, "abc"); -(_a = obj.foo.apply(obj, __spreadArray([1, 2], a, false))).foo.apply(_a, __spreadArray([1, 2], a, false)); -(_b = obj.foo.apply(obj, __spreadArray([1, 2], a, false))).foo.apply(_b, __spreadArray(__spreadArray([1, 2], a, false), ["abc"], false)); +obj.foo(1, 2, ...a); +obj.foo(1, 2, ...a, "abc"); +obj.foo(1, 2, ...a).foo(1, 2, "abc"); +obj.foo(1, 2, ...a).foo(1, 2, ...a); +obj.foo(1, 2, ...a).foo(1, 2, ...a, "abc"); (obj.foo)(1, 2, "abc"); -obj.foo.apply(obj, __spreadArray([1, 2], a, false)); -obj.foo.apply(obj, __spreadArray(__spreadArray([1, 2], a, false), ["abc"], false)); -(obj.foo.apply(obj, __spreadArray([1, 2], a, false)).foo)(1, 2, "abc"); -(_c = obj.foo.apply(obj, __spreadArray([1, 2], a, false))).foo.apply(_c, __spreadArray([1, 2], a, false)); -(_d = obj.foo.apply(obj, __spreadArray([1, 2], a, false))).foo.apply(_d, __spreadArray(__spreadArray([1, 2], a, false), ["abc"], false)); +(obj.foo)(1, 2, ...a); +(obj.foo)(1, 2, ...a, "abc"); +((obj.foo)(1, 2, ...a).foo)(1, 2, "abc"); +((obj.foo)(1, 2, ...a).foo)(1, 2, ...a); +((obj.foo)(1, 2, ...a).foo)(1, 2, ...a, "abc"); xa[1].foo(1, 2, "abc"); -(_e = xa[1]).foo.apply(_e, __spreadArray([1, 2], a, false)); -(_f = xa[1]).foo.apply(_f, __spreadArray(__spreadArray([1, 2], a, false), ["abc"], false)); -(_g = xa[1]).foo.apply(_g, [1, 2, "abc"]); -var C = /** @class */ (function () { - function C(x, y) { - var z = []; - for (var _i = 2; _i < arguments.length; _i++) { - z[_i - 2] = arguments[_i]; - } +xa[1].foo(1, 2, ...a); +xa[1].foo(1, 2, ...a, "abc"); +xa[1].foo(...[1, 2, "abc"]); +class C { + constructor(x, y, ...z) { this.foo(x, y); - this.foo.apply(this, __spreadArray([x, y], z, false)); + this.foo(x, y, ...z); + } + foo(x, y, ...z) { } - C.prototype.foo = function (x, y) { - var z = []; - for (var _i = 2; _i < arguments.length; _i++) { - z[_i - 2] = arguments[_i]; - } - }; - return C; -}()); -var D = /** @class */ (function (_super) { - __extends(D, _super); - function D() { - var _this = _super.call(this, 1, 2) || this; - return _super.apply(this, __spreadArray([1, 2], a, false)) || this; +} +class D extends C { + constructor() { + super(1, 2); + super(1, 2, ...a); + } + foo() { + super.foo(1, 2); + super.foo(1, 2, ...a); } - D.prototype.foo = function () { - _super.prototype.foo.call(this, 1, 2); - _super.prototype.foo.apply(this, __spreadArray([1, 2], a, false)); - }; - return D; -}(C)); +} diff --git a/tests/baselines/reference/callWithSpread2.js b/tests/baselines/reference/callWithSpread2.js index ca7a2346c1fed..dc74992a43c76 100644 --- a/tests/baselines/reference/callWithSpread2.js +++ b/tests/baselines/reference/callWithSpread2.js @@ -40,33 +40,24 @@ prefix2("g", ...ns); //// [callWithSpread2.js] -var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { - if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { - if (ar || !(i in from)) { - if (!ar) ar = Array.prototype.slice.call(from, 0, i); - ar[i] = from[i]; - } - } - return to.concat(ar || Array.prototype.slice.call(from)); -}; // good -all.apply(void 0, ns); -weird.apply(void 0, ns); -weird.apply(void 0, mixed); -weird.apply(void 0, tuple); -prefix.apply(void 0, __spreadArray(["a"], ns, false)); -rest.apply(void 0, __spreadArray(["d"], ns, false)); +all(...ns); +weird(...ns); +weird(...mixed); +weird(...tuple); +prefix("a", ...ns); +rest("d", ...ns); // extra arguments -normal.apply(void 0, __spreadArray(["g"], ns, false)); -thunk.apply(void 0, ns); +normal("g", ...ns); +thunk(...ns); // bad -all.apply(void 0, mixed); -all.apply(void 0, tuple); -prefix.apply(void 0, __spreadArray(["b"], mixed, false)); -prefix.apply(void 0, __spreadArray(["c"], tuple, false)); -rest.apply(void 0, __spreadArray(["e"], mixed, false)); -rest.apply(void 0, __spreadArray(["f"], tuple, false)); -prefix.apply(void 0, ns); // required parameters are required -prefix.apply(void 0, mixed); -prefix.apply(void 0, tuple); -prefix2.apply(void 0, __spreadArray(["g"], ns, false)); +all(...mixed); +all(...tuple); +prefix("b", ...mixed); +prefix("c", ...tuple); +rest("e", ...mixed); +rest("f", ...tuple); +prefix(...ns); // required parameters are required +prefix(...mixed); +prefix(...tuple); +prefix2("g", ...ns); diff --git a/tests/baselines/reference/callWithSpread3.js b/tests/baselines/reference/callWithSpread3.js index 5d725cf67926b..38eba460de814 100644 --- a/tests/baselines/reference/callWithSpread3.js +++ b/tests/baselines/reference/callWithSpread3.js @@ -39,34 +39,25 @@ fs5(...s2, "foo", ...s2); //// [callWithSpread3.js] -var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { - if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { - if (ar || !(i in from)) { - if (!ar) ar = Array.prototype.slice.call(from, 0, i); - ar[i] = from[i]; - } - } - return to.concat(ar || Array.prototype.slice.call(from)); -}; // error -fs2.apply(void 0, __spreadArray(['a'], s2, false)); // error on ...s2 -fs2.apply(void 0, __spreadArray(['a', 'b', 'c'], s2, false)); // error on 'c' and ...s2 -fs2.apply(void 0, __spreadArray(__spreadArray(['a', 'b'], s2, false), ['c'], false)); // error on ...s2 and 'c' -fs2.apply(void 0, __spreadArray(__spreadArray(['a', 'b', 'c'], s2, false), ['d'], false)); // error on 'c', ...s2 and 'd' -fs2.apply(void 0, __spreadArray(__spreadArray([], s2, false), ['a'], false)); // error on 'a' -fs2.apply(void 0, s3); // error on ...s3 -fs2_.apply(void 0, s_); // error on ...s_ -fs2_.apply(void 0, s2n_); // error on ...s2n_ -fs2_.apply(void 0, __spreadArray(__spreadArray([], s_, false), s_, false)); // error on ...s_ -fs2_.apply(void 0, __spreadArray(__spreadArray(__spreadArray([], s_, false), s_, false), s_, false)); // error on ...s_ +fs2('a', ...s2); // error on ...s2 +fs2('a', 'b', 'c', ...s2); // error on 'c' and ...s2 +fs2('a', 'b', ...s2, 'c'); // error on ...s2 and 'c' +fs2('a', 'b', 'c', ...s2, 'd'); // error on 'c', ...s2 and 'd' +fs2(...s2, 'a'); // error on 'a' +fs2(...s3); // error on ...s3 +fs2_(...s_); // error on ...s_ +fs2_(...s2n_); // error on ...s2n_ +fs2_(...s_, ...s_); // error on ...s_ +fs2_(...s_, ...s_, ...s_); // error on ...s_ // fs2n_(...s2, ...s_); // FIXME: should be a type error -fs2n_.apply(void 0, s2_); // error on ...s2_ +fs2n_(...s2_); // error on ...s2_ // ok -fs2_.apply(void 0, s2_); -fs2_.apply(void 0, __spreadArray(__spreadArray([], s2_, false), s_, false)); -fs2_.apply(void 0, __spreadArray(__spreadArray([], s2_, false), s2_, false)); -fs2_.apply(void 0, __spreadArray(__spreadArray([], s_, false), s2_, false)); -fs2n_.apply(void 0, s2n_); -fs2n_.apply(void 0, s2); +fs2_(...s2_); +fs2_(...s2_, ...s_); +fs2_(...s2_, ...s2_); +fs2_(...s_, ...s2_); +fs2n_(...s2n_); +fs2n_(...s2); // fs2n_(...s2, ...n_); // FIXME: should compile -fs5.apply(void 0, __spreadArray(__spreadArray(__spreadArray([], s2, false), ["foo"], false), s2, false)); +fs5(...s2, "foo", ...s2); diff --git a/tests/baselines/reference/callWithSpread5.js b/tests/baselines/reference/callWithSpread5.js index 5938fe6e25d3f..9b29d0b577f0f 100644 --- a/tests/baselines/reference/callWithSpread5.js +++ b/tests/baselines/reference/callWithSpread5.js @@ -11,14 +11,5 @@ fn(...nntnnnt, x) //// [callWithSpread5.js] -var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { - if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { - if (ar || !(i in from)) { - if (!ar) ar = Array.prototype.slice.call(from, 0, i); - ar[i] = from[i]; - } - } - return to.concat(ar || Array.prototype.slice.call(from)); -}; -fn.apply(void 0, __spreadArray(__spreadArray([], nnnu, false), [x], false)); -fn.apply(void 0, __spreadArray(__spreadArray([], nntnnnt, false), [x], false)); +fn(...nnnu, x); +fn(...nntnnnt, x); diff --git a/tests/baselines/reference/callbackOnConstructor.js b/tests/baselines/reference/callbackOnConstructor.js index ff7779e0476fd..4114d2a7a3b8d 100644 --- a/tests/baselines/reference/callbackOnConstructor.js +++ b/tests/baselines/reference/callbackOnConstructor.js @@ -17,23 +17,18 @@ var ooscope2 = s => s.length > 0 //// [callbackOnConstructor.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Preferences = void 0; -var Preferences = /** @class */ (function () { +export class Preferences { /** * @callback ValueGetter_2 * @param {string} name * @returns {boolean|number|string|undefined} */ - function Preferences() { + constructor() { this.assignability = "no"; } - return Preferences; -}()); -exports.Preferences = Preferences; +} /** @type {ValueGetter_2} */ -var ooscope2 = function (s) { return s.length > 0; }; +var ooscope2 = s => s.length > 0; //// [callbackOnConstructor.d.ts] diff --git a/tests/baselines/reference/callbackTagVariadicType.js b/tests/baselines/reference/callbackTagVariadicType.js index da31a9e954549..82569d07704e7 100644 --- a/tests/baselines/reference/callbackTagVariadicType.js +++ b/tests/baselines/reference/callbackTagVariadicType.js @@ -13,18 +13,14 @@ var res = x('a', 'b') //// [callbackTagVariadicType.js] -"use strict"; /** * @callback Foo * @param {...string} args * @returns {number} */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.x = void 0; /** @type {Foo} */ -var x = function () { return 1; }; -exports.x = x; -var res = (0, exports.x)('a', 'b'); +export const x = () => 1; +var res = x('a', 'b'); //// [callbackTagVariadicType.d.ts] diff --git a/tests/baselines/reference/callbacksDontShareTypes.js b/tests/baselines/reference/callbacksDontShareTypes.js index 7816d509af389..fc28cef9199d6 100644 --- a/tests/baselines/reference/callbacksDontShareTypes.js +++ b/tests/baselines/reference/callbacksDontShareTypes.js @@ -23,8 +23,8 @@ var r5b = _.map(c2, rf1); //// [callbacksDontShareTypes.js] var _; var c2; -var rf1 = function (x) { return x.toFixed(); }; -var r1a = _.map(c2, function (x) { return x.toFixed(); }); +var rf1 = (x) => { return x.toFixed(); }; +var r1a = _.map(c2, (x) => { return x.toFixed(); }); var r1b = _.map(c2, rf1); // this line should not cause the following 2 to have errors -var r5a = _.map(c2, function (x) { return x.toFixed(); }); +var r5a = _.map(c2, (x) => { return x.toFixed(); }); var r5b = _.map(c2, rf1); diff --git a/tests/baselines/reference/callsOnComplexSignatures.js b/tests/baselines/reference/callsOnComplexSignatures.js index 25feef129359c..f2cfcdf739591 100644 --- a/tests/baselines/reference/callsOnComplexSignatures.js +++ b/tests/baselines/reference/callsOnComplexSignatures.js @@ -107,30 +107,23 @@ function test5() { //// [callsOnComplexSignatures.js] -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); /// -var react_1 = __importDefault(require("react")); +import React from "react"; // Simple calls from real usecases function test1() { function test(t) { - var z = t.getValue("bar"); // Should be fine + const z = t.getValue("bar"); // Should be fine } } function test2() { - var messages = { - foo: function (options) { return "Foo"; }, - bar: function (options) { return "Bar"; }, - }; - var test1 = function (type) { - return messages[type]({ a: "A", b: 0 }); + const messages = { + foo: (options) => "Foo", + bar: (options) => "Bar", }; + const test1 = (type) => messages[type]({ a: "A", b: 0 }); } function test3(items) { - items.forEach(function (item) { return console.log(item); }); + items.forEach(item => console.log(item)); } function test4(arg1, arg2, arg3, arg4, arg5, arg6) { arg1(); @@ -155,17 +148,17 @@ function test4(arg1, arg2, arg3, arg4, arg5, arg6) { function test5() { // Pair of non-like intrinsics function render(url) { - var Tag = url ? 'a' : 'button'; - return react_1.default.createElement(Tag, null, "test"); + const Tag = url ? 'a' : 'button'; + return React.createElement(Tag, null, "test"); } // Union of all intrinsics and components of `any` function App(props) { - var Comp = props.component; - return (react_1.default.createElement(Comp, null)); + const Comp = props.component; + return (React.createElement(Comp, null)); } // custom components with non-subset props function render2() { var C = null; - var a = react_1.default.createElement(C, { p: true }); + const a = React.createElement(C, { p: true }); } } diff --git a/tests/baselines/reference/canFollowGetSetKeyword.js b/tests/baselines/reference/canFollowGetSetKeyword.js index 261125fc938b0..c43276eba0d59 100644 --- a/tests/baselines/reference/canFollowGetSetKeyword.js +++ b/tests/baselines/reference/canFollowGetSetKeyword.js @@ -19,58 +19,17 @@ const d = { }; //// [canFollowGetSetKeyword.js] -var __generator = (this && this.__generator) || function (thisArg, body) { - var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype); - return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; - function verb(n) { return function (v) { return step([n, v]); }; } - function step(op) { - if (f) throw new TypeError("Generator is already executing."); - while (g && (g = 0, op[0] && (_ = 0)), _) try { - if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; - if (y = 0, t) op = [op[0] & 2, t.value]; - switch (op[0]) { - case 0: case 1: t = op; break; - case 4: _.label++; return { value: op[1], done: false }; - case 5: _.label++; y = op[1]; op = [0]; continue; - case 7: op = _.ops.pop(); _.trys.pop(); continue; - default: - if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } - if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } - if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } - if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } - if (t[2]) _.ops.pop(); - _.trys.pop(); continue; - } - op = body.call(thisArg, _); - } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } - if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; - } +class A { + *x() { } +} +class B { + *x() { } +} +const c = { + get, + *x() { } }; -var A = /** @class */ (function () { - function A() { - } - A.prototype.x = function () { return __generator(this, function (_a) { - return [2 /*return*/]; - }); }; - return A; -}()); -var B = /** @class */ (function () { - function B() { - } - B.prototype.x = function () { return __generator(this, function (_a) { - return [2 /*return*/]; - }); }; - return B; -}()); -var c = { - get: get, - x: function () { return __generator(this, function (_a) { - return [2 /*return*/]; - }); } -}; -var d = { - set: set, - x: function () { return __generator(this, function (_a) { - return [2 /*return*/]; - }); } +const d = { + set, + *x() { } }; diff --git a/tests/baselines/reference/cannotInvokeNewOnErrorExpression.js b/tests/baselines/reference/cannotInvokeNewOnErrorExpression.js index 4b5346fbfad02..ec60ce0518769 100644 --- a/tests/baselines/reference/cannotInvokeNewOnErrorExpression.js +++ b/tests/baselines/reference/cannotInvokeNewOnErrorExpression.js @@ -10,10 +10,7 @@ var t = new M.ClassA[]; //// [cannotInvokeNewOnErrorExpression.js] var M; (function (M) { - var ClassA = /** @class */ (function () { - function ClassA() { - } - return ClassA; - }()); + class ClassA { + } })(M || (M = {})); var t = new M.ClassA[]; diff --git a/tests/baselines/reference/captureSuperPropertyAccessInSuperCall01.js b/tests/baselines/reference/captureSuperPropertyAccessInSuperCall01.js index 36ec9c63d53a0..425de1975c6f4 100644 --- a/tests/baselines/reference/captureSuperPropertyAccessInSuperCall01.js +++ b/tests/baselines/reference/captureSuperPropertyAccessInSuperCall01.js @@ -14,32 +14,13 @@ class B extends A { } //// [captureSuperPropertyAccessInSuperCall01.js] -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -var A = /** @class */ (function () { - function A(f) { +class A { + constructor(f) { } - A.prototype.blah = function () { return ""; }; - return A; -}()); -var B = /** @class */ (function (_super) { - __extends(B, _super); - function B() { - var _this = _super.call(this, function () { return _super.prototype.blah.call(_this); }) || this; - return _this; + blah() { return ""; } +} +class B extends A { + constructor() { + super(() => { return super.blah(); }); } - return B; -}(A)); +} diff --git a/tests/baselines/reference/captureThisInSuperCall.js b/tests/baselines/reference/captureThisInSuperCall.js index 7846e9e93a6e6..ff89e3f4deb78 100644 --- a/tests/baselines/reference/captureThisInSuperCall.js +++ b/tests/baselines/reference/captureThisInSuperCall.js @@ -11,32 +11,10 @@ class B extends A { } //// [captureThisInSuperCall.js] -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -var A = /** @class */ (function () { - function A(p) { - } - return A; -}()); -var B = /** @class */ (function (_super) { - __extends(B, _super); - function B() { - var _this = _super.call(this, { test: function () { return _this.someMethod(); } }) || this; - return _this; - } - B.prototype.someMethod = function () { }; - return B; -}(A)); +class A { + constructor(p) { } +} +class B extends A { + constructor() { super({ test: () => this.someMethod() }); } + someMethod() { } +} diff --git a/tests/baselines/reference/capturedLetConstInLoop1.js b/tests/baselines/reference/capturedLetConstInLoop1.js index 9927c7a787ce0..4f0fc409ef77e 100644 --- a/tests/baselines/reference/capturedLetConstInLoop1.js +++ b/tests/baselines/reference/capturedLetConstInLoop1.js @@ -141,229 +141,112 @@ for (let ix in iobj) { } //// [capturedLetConstInLoop1.js] -var _loop_1 = function (x) { - (function () { return x; }); - (function () { return x; }); -}; //==== let -for (var x in {}) { - _loop_1(x); -} -var _loop_2 = function (x) { +for (let x in {}) { (function () { return x; }); - (function () { return x; }); -}; -for (var _i = 0, _a = []; _i < _a.length; _i++) { - var x = _a[_i]; - _loop_2(x); + (() => x); } -var _loop_3 = function (x) { - (function () { return x; }); +for (let x of []) { (function () { return x; }); -}; -for (var x = 0; x < 1; ++x) { - _loop_3(x); + (() => x); } -var _loop_4 = function () { - var x; +for (let x = 0; x < 1; ++x) { (function () { return x; }); - (function () { return x; }); -}; -while (1 === 1) { - _loop_4(); + (() => x); } -var _loop_5 = function () { - var x; - (function () { return x; }); +while (1 === 1) { + let x; (function () { return x; }); -}; + (() => x); +} do { - _loop_5(); -} while (1 === 1); -var _loop_6 = function (y) { - var x = 1; + let x; (function () { return x; }); + (() => x); +} while (1 === 1); +for (let y = 0; y < 1; ++y) { + let x = 1; (function () { return x; }); -}; -for (var y = 0; y < 1; ++y) { - _loop_6(y); + (() => x); } -var _loop_7 = function (x, y) { - (function () { return x + y; }); +for (let x = 0, y = 1; x < 1; ++x) { (function () { return x + y; }); -}; -for (var x = 0, y = 1; x < 1; ++x) { - _loop_7(x, y); + (() => x + y); } -var _loop_8 = function () { - var x, y; - (function () { return x + y; }); - (function () { return x + y; }); -}; while (1 === 1) { - _loop_8(); -} -var _loop_9 = function () { - var x, y; - (function () { return x + y; }); + let x, y; (function () { return x + y; }); -}; + (() => x + y); +} do { - _loop_9(); -} while (1 === 1); -var _loop_10 = function (y) { - var x = 1; + let x, y; (function () { return x + y; }); + (() => x + y); +} while (1 === 1); +for (let y = 0; y < 1; ++y) { + let x = 1; (function () { return x + y; }); -}; -for (var y = 0; y < 1; ++y) { - _loop_10(y); + (() => x + y); } -var _loop_init_1 = function () { - var y = (use(function () { return y; }), 0); - out_y_1 = y; -}; -var out_y_1; -_loop_init_1(); -for (var y = out_y_1; y < 1; ++y) { +for (let y = (use(() => y), 0); y < 1; ++y) { } -var _loop_11 = function (y) { - if (inc_1) - ++y; - else - inc_1 = true; - if (!(use(function () { return y; }), y < 1)) - return out_y_2 = y, "break"; - out_y_2 = y; -}; -var out_y_2, inc_1 = false; -for (var y = 0;;) { - var state_1 = _loop_11(y); - y = out_y_2; - if (state_1 === "break") - break; +for (let y = 0; use(() => y), y < 1; ++y) { } -var _loop_12 = function (y) { - if (inc_2) - use(function () { return y; }), ++y; - else - inc_2 = true; - out_y_3 = y; -}; -var out_y_3, inc_2 = false; -for (var y = 0; y < 1;) { - _loop_12(y); - y = out_y_3; +for (let y = 0; y < 1; use(() => y), ++y) { } -var _loop_init_2 = function () { - var y = (use(function () { return y; }), 0); - out_y_4 = y; -}; -var _loop_13 = function (y) { - if (inc_3) - use(function () { return y; }), ++y; - else - inc_3 = true; - if (!(use(function () { return y; }), y < 1)) - return out_y_4 = y, "break"; - use(function () { return y; }); - out_y_4 = y; -}; -var out_y_4, inc_3 = false; -_loop_init_2(); -for (var y = out_y_4;;) { - var state_2 = _loop_13(y); - y = out_y_4; - if (state_2 === "break") - break; +for (let y = (use(() => y), 0); use(() => y), y < 1; use(() => y), ++y) { + use(() => y); } -var _loop_14 = function (x) { - (function () { return x; }); - (function () { return x; }); -}; //=========const -for (var x in {}) { - _loop_14(x); -} -var _loop_15 = function (x) { +for (const x in {}) { (function () { return x; }); - (function () { return x; }); -}; -for (var _b = 0, _c = []; _b < _c.length; _b++) { - var x = _c[_b]; - _loop_15(x); + (() => x); } -var _loop_16 = function (x) { - (function () { return x; }); +for (const x of []) { (function () { return x; }); -}; -for (var x = 0; x < 1;) { - _loop_16(x); + (() => x); } -var _loop_17 = function () { - var x = 1; +for (const x = 0; x < 1;) { (function () { return x; }); - (function () { return x; }); -}; -while (1 === 1) { - _loop_17(); + (() => x); } -var _loop_18 = function () { - var x = 1; - (function () { return x; }); +while (1 === 1) { + const x = 1; (function () { return x; }); -}; + (() => x); +} do { - _loop_18(); -} while (1 === 1); -var _loop_19 = function (y) { - var x = 1; + const x = 1; (function () { return x; }); + (() => x); +} while (1 === 1); +for (const y = 0; y < 1;) { + const x = 1; (function () { return x; }); -}; -for (var y = 0; y < 1;) { - _loop_19(y); + (() => x); } -var _loop_20 = function (x, y) { - (function () { return x + y; }); +for (const x = 0, y = 1; x < 1;) { (function () { return x + y; }); -}; -for (var x = 0, y = 1; x < 1;) { - _loop_20(x, y); + (() => x + y); } -var _loop_21 = function () { - var x = 1, y = 1; - (function () { return x + y; }); - (function () { return x + y; }); -}; while (1 === 1) { - _loop_21(); -} -var _loop_22 = function () { - var x = 1, y = 1; - (function () { return x + y; }); + const x = 1, y = 1; (function () { return x + y; }); -}; + (() => x + y); +} do { - _loop_22(); -} while (1 === 1); -var _loop_23 = function (y) { - var x = 1; + const x = 1, y = 1; (function () { return x + y; }); + (() => x + y); +} while (1 === 1); +for (const y = 0; y < 1;) { + const x = 1; (function () { return x + y; }); -}; -for (var y = 0; y < 1;) { - _loop_23(y); + (() => x + y); } -var _loop_24 = function (sx) { - (function () { return sobj[sx]; }); -}; -for (var sx in sobj) { - _loop_24(sx); +for (let sx in sobj) { + (() => sobj[sx]); } -var _loop_25 = function (ix) { - (function () { return iobj[ix]; }); -}; -for (var ix in iobj) { - _loop_25(ix); +for (let ix in iobj) { + (() => iobj[ix]); } diff --git a/tests/baselines/reference/capturedLetConstInLoop10.js b/tests/baselines/reference/capturedLetConstInLoop10.js index 18b3a118a440b..e5c79901db394 100644 --- a/tests/baselines/reference/capturedLetConstInLoop10.js +++ b/tests/baselines/reference/capturedLetConstInLoop10.js @@ -48,79 +48,45 @@ class B { } //// [capturedLetConstInLoop10.js] -var A = /** @class */ (function () { - function A() { - } - A.prototype.foo = function () { - var _loop_1 = function (x) { - var f = function () { return x; }; - this_1.bar(f()); - }; - var this_1 = this; - for (var _i = 0, _a = [0]; _i < _a.length; _i++) { - var x = _a[_i]; - _loop_1(x); +class A { + foo() { + for (let x of [0]) { + let f = function () { return x; }; + this.bar(f()); } - }; - A.prototype.bar = function (a) { - }; - A.prototype.baz = function () { - var _loop_2 = function (x) { - var a = function () { return x; }; - var _loop_3 = function (y) { - var b = function () { return y; }; - this_2.bar(b()); - }; - for (var _b = 0, _c = [1]; _b < _c.length; _b++) { - var y = _c[_b]; - _loop_3(y); + } + bar(a) { + } + baz() { + for (let x of [1]) { + let a = function () { return x; }; + for (let y of [1]) { + let b = function () { return y; }; + this.bar(b()); } - this_2.bar(a()); - }; - var this_2 = this; - for (var _i = 0, _a = [1]; _i < _a.length; _i++) { - var x = _a[_i]; - _loop_2(x); + this.bar(a()); } - }; - A.prototype.baz2 = function () { - var _loop_4 = function (x) { - var a = function () { return x; }; - this_3.bar(a()); - var _loop_5 = function (y) { - var b = function () { return y; }; - this_3.bar(b()); - }; - for (var _b = 0, _c = [1]; _b < _c.length; _b++) { - var y = _c[_b]; - _loop_5(y); + } + baz2() { + for (let x of [1]) { + let a = function () { return x; }; + this.bar(a()); + for (let y of [1]) { + let b = function () { return y; }; + this.bar(b()); } - }; - var this_3 = this; - for (var _i = 0, _a = [1]; _i < _a.length; _i++) { - var x = _a[_i]; - _loop_4(x); } - }; - return A; -}()); -var B = /** @class */ (function () { - function B() { } - B.prototype.foo = function () { - var _this = this; - var a = function () { - var _loop_6 = function (x) { - var f = function () { return x; }; - _this.bar(f()); - }; - for (var _i = 0, _a = [0]; _i < _a.length; _i++) { - var x = _a[_i]; - _loop_6(x); +} +class B { + foo() { + let a = () => { + for (let x of [0]) { + let f = () => x; + this.bar(f()); } }; - }; - B.prototype.bar = function (a) { - }; - return B; -}()); + } + bar(a) { + } +} diff --git a/tests/baselines/reference/capturedLetConstInLoop11.js b/tests/baselines/reference/capturedLetConstInLoop11.js index 067e4575cabd1..ec0adca7b137d 100644 --- a/tests/baselines/reference/capturedLetConstInLoop11.js +++ b/tests/baselines/reference/capturedLetConstInLoop11.js @@ -16,23 +16,15 @@ function foo() { } //// [capturedLetConstInLoop11.js] -var _loop_1 = function () { - var x = 1; - (function () { return x; }); -}; for (;;) { - _loop_1(); + let x = 1; + () => x; } function foo() { - var _loop_2 = function () { - var a = 0; + for (;;) { + const a = 0; switch (a) { - case 0: return { value: function () { return a; } }; + case 0: return () => a; } - }; - for (;;) { - var state_1 = _loop_2(); - if (typeof state_1 === "object") - return state_1.value; } } diff --git a/tests/baselines/reference/capturedLetConstInLoop12.js b/tests/baselines/reference/capturedLetConstInLoop12.js index 1fbc3fdb6cab8..92d4504710370 100644 --- a/tests/baselines/reference/capturedLetConstInLoop12.js +++ b/tests/baselines/reference/capturedLetConstInLoop12.js @@ -20,31 +20,13 @@ //// [capturedLetConstInLoop12.js] (function () { "use strict"; - var _loop_1 = function (i) { - (function () { - var _a; - return _a = [i + 1], i = _a[0], _a; - })(); - out_i_1 = i; - }; - var out_i_1; - for (var i = 0; i < 4; i++) { - _loop_1(i); - i = out_i_1; + for (let i = 0; i < 4; i++) { + (() => [i] = [i + 1])(); } })(); (function () { "use strict"; - var _loop_2 = function (i) { - (function () { - var _a; - return (_a = { a: i + 1 }, i = _a.a, _a); - })(); - out_i_2 = i; - }; - var out_i_2; - for (var i = 0; i < 4; i++) { - _loop_2(i); - i = out_i_2; + for (let i = 0; i < 4; i++) { + (() => ({ a: i } = { a: i + 1 }))(); } })(); diff --git a/tests/baselines/reference/capturedLetConstInLoop13.js b/tests/baselines/reference/capturedLetConstInLoop13.js index 791cf1448763a..ec893691dce57 100644 --- a/tests/baselines/reference/capturedLetConstInLoop13.js +++ b/tests/baselines/reference/capturedLetConstInLoop13.js @@ -25,30 +25,18 @@ class Main { new Main(); //// [capturedLetConstInLoop13.js] -var Main = /** @class */ (function () { - function Main() { +class Main { + constructor() { this.register("a", "b", "c"); } - Main.prototype.register = function () { - var _this = this; - var names = []; - for (var _i = 0; _i < arguments.length; _i++) { - names[_i] = arguments[_i]; + register(...names) { + for (let name of names) { + this.bar({ + [name + ".a"]: () => { this.foo(name); }, + }); } - var _loop_1 = function (name_1) { - var _b; - this_1.bar((_b = {}, - _b[name_1 + ".a"] = function () { _this.foo(name_1); }, - _b)); - }; - var this_1 = this; - for (var _a = 0, names_1 = names; _a < names_1.length; _a++) { - var name_1 = names_1[_a]; - _loop_1(name_1); - } - }; - Main.prototype.bar = function (a) { }; - Main.prototype.foo = function (name) { }; - return Main; -}()); + } + bar(a) { } + foo(name) { } +} new Main(); diff --git a/tests/baselines/reference/capturedLetConstInLoop2.js b/tests/baselines/reference/capturedLetConstInLoop2.js index a5c5e21a5127d..2a6e0e472385e 100644 --- a/tests/baselines/reference/capturedLetConstInLoop2.js +++ b/tests/baselines/reference/capturedLetConstInLoop2.js @@ -179,235 +179,153 @@ function foo8_c(x) { //// [capturedLetConstInLoop2.js] // ========let function foo0(x) { - var _loop_1 = function (x_1) { - var a = arguments_1.length; - (function () { return x_1 + a; }); - (function () { return x_1 + a; }); - }; - var arguments_1 = arguments; - for (var _i = 0, _a = []; _i < _a.length; _i++) { - var x_1 = _a[_i]; - _loop_1(x_1); + for (let x of []) { + let a = arguments.length; + (function () { return x + a; }); + (() => x + a); } } function foo0_1(x) { - var _loop_2 = function (x_2) { - var a = arguments_2.length; - (function () { return x_2 + a; }); - (function () { return x_2 + a; }); - }; - var arguments_2 = arguments; - for (var x_2 in []) { - _loop_2(x_2); + for (let x in []) { + let a = arguments.length; + (function () { return x + a; }); + (() => x + a); } } function foo1(x) { - var _loop_3 = function (x_3) { - var a = arguments_3.length; - (function () { return x_3 + a; }); - (function () { return x_3 + a; }); - }; - var arguments_3 = arguments; - for (var x_3 = 0; x_3 < 1; ++x_3) { - _loop_3(x_3); + for (let x = 0; x < 1; ++x) { + let a = arguments.length; + (function () { return x + a; }); + (() => x + a); } } function foo2(x) { - var _loop_4 = function () { - var a = arguments_4.length; - (function () { return x + a; }); - (function () { return x + a; }); - }; - var arguments_4 = arguments; while (1 === 1) { - _loop_4(); + let a = arguments.length; + (function () { return x + a; }); + (() => x + a); } } function foo3(x) { - var _loop_5 = function () { - var x_4; - var a = arguments_5.length; - (function () { return x_4 + a; }); - (function () { return x_4 + a; }); - }; - var arguments_5 = arguments; do { - _loop_5(); + let x; + let a = arguments.length; + (function () { return x + a; }); + (() => x + a); } while (1 === 1); } function foo4(x) { - var _loop_6 = function (y) { - var a = arguments_6.length; - var x_5 = 1; - (function () { return x_5 + a; }); - (function () { return x_5 + a; }); - }; - var arguments_6 = arguments; - for (var y = 0; y < 1; ++y) { - _loop_6(y); + for (let y = 0; y < 1; ++y) { + let a = arguments.length; + let x = 1; + (function () { return x + a; }); + (() => x + a); } } function foo5(x) { - var _loop_7 = function (x_6, y) { - var a = arguments_7.length; - (function () { return x_6 + y + a; }); - (function () { return x_6 + y + a; }); - }; - var arguments_7 = arguments; - for (var x_6 = 0, y = 1; x_6 < 1; ++x_6) { - _loop_7(x_6, y); + for (let x = 0, y = 1; x < 1; ++x) { + let a = arguments.length; + (function () { return x + y + a; }); + (() => x + y + a); } } function foo6(x) { - var _loop_8 = function () { - var x_7, y; - var a = arguments_8.length; - (function () { return x_7 + y + a; }); - (function () { return x_7 + y + a; }); - }; - var arguments_8 = arguments; while (1 === 1) { - _loop_8(); + let x, y; + let a = arguments.length; + (function () { return x + y + a; }); + (() => x + y + a); } } function foo7(x) { - var _loop_9 = function () { - var x_8, y; - var a = arguments_9.length; - (function () { return x_8 + y + a; }); - (function () { return x_8 + y + a; }); - }; - var arguments_9 = arguments; do { - _loop_9(); + let x, y; + let a = arguments.length; + (function () { return x + y + a; }); + (() => x + y + a); } while (1 === 1); } function foo8(x) { - var _loop_10 = function (y) { - var x_9 = 1; - var a = arguments_10.length; - (function () { return x_9 + y + a; }); - (function () { return x_9 + y + a; }); - }; - var arguments_10 = arguments; - for (var y = 0; y < 1; ++y) { - _loop_10(y); + for (let y = 0; y < 1; ++y) { + let x = 1; + let a = arguments.length; + (function () { return x + y + a; }); + (() => x + y + a); } } ///=======const function foo0_c(x) { - var _loop_11 = function (x_10) { - var a = arguments_11.length; - (function () { return x_10 + a; }); - (function () { return x_10 + a; }); - }; - var arguments_11 = arguments; - for (var _i = 0, _a = []; _i < _a.length; _i++) { - var x_10 = _a[_i]; - _loop_11(x_10); + for (const x of []) { + const a = arguments.length; + (function () { return x + a; }); + (() => x + a); } } function foo0_1_c(x) { - var _loop_12 = function (x_11) { - var a = arguments_12.length; - (function () { return x_11 + a; }); - (function () { return x_11 + a; }); - }; - var arguments_12 = arguments; - for (var x_11 in []) { - _loop_12(x_11); + for (const x in []) { + const a = arguments.length; + (function () { return x + a; }); + (() => x + a); } } function foo1_c(x) { - var _loop_13 = function (x_12) { - var a = arguments_13.length; - (function () { return x_12 + a; }); - (function () { return x_12 + a; }); - }; - var arguments_13 = arguments; - for (var x_12 = 0; x_12 < 1;) { - _loop_13(x_12); + for (const x = 0; x < 1;) { + const a = arguments.length; + (function () { return x + a; }); + (() => x + a); } } function foo2_c(x) { - var _loop_14 = function () { - var a = arguments_14.length; - (function () { return x + a; }); - (function () { return x + a; }); - }; - var arguments_14 = arguments; while (1 === 1) { - _loop_14(); + const a = arguments.length; + (function () { return x + a; }); + (() => x + a); } } function foo3_c(x) { - var _loop_15 = function () { - var x_13 = 1; - var a = arguments_15.length; - (function () { return x_13 + a; }); - (function () { return x_13 + a; }); - }; - var arguments_15 = arguments; do { - _loop_15(); + const x = 1; + const a = arguments.length; + (function () { return x + a; }); + (() => x + a); } while (1 === 1); } function foo4_c(x) { - var _loop_16 = function (y) { - var a = arguments_16.length; - var x_14 = 1; - (function () { return x_14 + a; }); - (function () { return x_14 + a; }); - }; - var arguments_16 = arguments; - for (var y = 0; y < 1;) { - _loop_16(y); + for (const y = 0; y < 1;) { + const a = arguments.length; + const x = 1; + (function () { return x + a; }); + (() => x + a); } } function foo5_c(x) { - var _loop_17 = function (x_15, y) { - var a = arguments_17.length; - (function () { return x_15 + y + a; }); - (function () { return x_15 + y + a; }); - }; - var arguments_17 = arguments; - for (var x_15 = 0, y = 1; x_15 < 1;) { - _loop_17(x_15, y); + for (const x = 0, y = 1; x < 1;) { + const a = arguments.length; + (function () { return x + y + a; }); + (() => x + y + a); } } function foo6_c(x) { - var _loop_18 = function () { - var x_16 = 1, y = 1; - var a = arguments_18.length; - (function () { return x_16 + y + a; }); - (function () { return x_16 + y + a; }); - }; - var arguments_18 = arguments; while (1 === 1) { - _loop_18(); + const x = 1, y = 1; + const a = arguments.length; + (function () { return x + y + a; }); + (() => x + y + a); } } function foo7_c(x) { - var _loop_19 = function () { - var x_17 = 1, y = 1; - var a = arguments_19.length; - (function () { return x_17 + y + a; }); - (function () { return x_17 + y + a; }); - }; - var arguments_19 = arguments; do { - _loop_19(); + const x = 1, y = 1; + const a = arguments.length; + (function () { return x + y + a; }); + (() => x + y + a); } while (1 === 1); } function foo8_c(x) { - var _loop_20 = function (y) { - var x_18 = 1; - var a = arguments_20.length; - (function () { return x_18 + y + a; }); - (function () { return x_18 + y + a; }); - }; - var arguments_20 = arguments; - for (var y = 0; y < 1;) { - _loop_20(y); + for (const y = 0; y < 1;) { + const x = 1; + const a = arguments.length; + (function () { return x + y + a; }); + (() => x + y + a); } } diff --git a/tests/baselines/reference/capturedLetConstInLoop3.js b/tests/baselines/reference/capturedLetConstInLoop3.js index be6a01db29d7c..6baacd54b9c21 100644 --- a/tests/baselines/reference/capturedLetConstInLoop3.js +++ b/tests/baselines/reference/capturedLetConstInLoop3.js @@ -221,255 +221,175 @@ function foo8_c(x) { //// [capturedLetConstInLoop3.js] function foo0(x) { - var _loop_1 = function (x_1) { - v = x_1; - (function () { return x_1 + v; }); - (function () { return x_1 + v; }); - }; - var v; - for (var _i = 0, _a = []; _i < _a.length; _i++) { - var x_1 = _a[_i]; - _loop_1(x_1); + for (let x of []) { + var v = x; + (function () { return x + v; }); + (() => x + v); } use(v); } function foo0_1(x) { - var _loop_2 = function (x_2) { - v = x_2; - (function () { return x_2 + v; }); - (function () { return x_2 + v; }); - }; - var v; - for (var x_2 in []) { - _loop_2(x_2); + for (let x in []) { + var v = x; + (function () { return x + v; }); + (() => x + v); } use(v); } function foo1(x) { - var _loop_3 = function (x_3) { - v = x_3; - (function () { return x_3 + v; }); - (function () { return x_3 + v; }); - }; - var v; - for (var x_3 = 0; x_3 < 1; ++x_3) { - _loop_3(x_3); + for (let x = 0; x < 1; ++x) { + var v = x; + (function () { return x + v; }); + (() => x + v); } use(v); } function foo2(x) { - var _loop_4 = function () { - var x_4 = 1; - v = x_4; - (function () { return x_4 + v; }); - (function () { return x_4 + v; }); - }; - var v; while (1 === 1) { - _loop_4(); + let x = 1; + var v = x; + (function () { return x + v; }); + (() => x + v); } use(v); } function foo3(x) { - var _loop_5 = function () { - var x_5; - (function () { return x_5 + v; }); - (function () { return x_5 + v; }); - }; - var v; do { - _loop_5(); + let x; + var v; + (function () { return x + v; }); + (() => x + v); } while (1 === 1); use(v); } function foo4(x) { - var _loop_6 = function (y) { - v = y; - var x_6 = 1; - (function () { return x_6 + v; }); - (function () { return x_6 + v; }); - }; - var v; - for (var y = 0; y < 1; ++y) { - _loop_6(y); + for (let y = 0; y < 1; ++y) { + var v = y; + let x = 1; + (function () { return x + v; }); + (() => x + v); } use(v); } function foo5(x) { - var _loop_7 = function (x_7, y) { - v = x_7; - (function () { return x_7 + y + v; }); - (function () { return x_7 + y + v; }); - }; - var v; - for (var x_7 = 0, y = 1; x_7 < 1; ++x_7) { - _loop_7(x_7, y); + for (let x = 0, y = 1; x < 1; ++x) { + var v = x; + (function () { return x + y + v; }); + (() => x + y + v); } use(v); } function foo6(x) { - var _loop_8 = function () { - var x_8, y; - v = x_8; - (function () { return x_8 + y + v; }); - (function () { return x_8 + y + v; }); - }; - var v; while (1 === 1) { - _loop_8(); + let x, y; + var v = x; + (function () { return x + y + v; }); + (() => x + y + v); } use(v); } function foo7(x) { - var _loop_9 = function () { - var x_9, y; - v = x_9; - (function () { return x_9 + y + v; }); - (function () { return x_9 + y + v; }); - }; - var v; do { - _loop_9(); + let x, y; + var v = x; + (function () { return x + y + v; }); + (() => x + y + v); } while (1 === 1); use(v); } function foo8(x) { - var _loop_10 = function (y) { - var x_10 = 1; - v = x_10; - (function () { return x_10 + y + v; }); - (function () { return x_10 + y + v; }); - }; - var v; - for (var y = 0; y < 1; ++y) { - _loop_10(y); + for (let y = 0; y < 1; ++y) { + let x = 1; + var v = x; + (function () { return x + y + v; }); + (() => x + y + v); } use(v); } //===const function foo0_c(x) { - var _loop_11 = function (x_11) { - v = x_11; - (function () { return x_11 + v; }); - (function () { return x_11 + v; }); - }; - var v; - for (var _i = 0, _a = []; _i < _a.length; _i++) { - var x_11 = _a[_i]; - _loop_11(x_11); + for (const x of []) { + var v = x; + (function () { return x + v; }); + (() => x + v); } use(v); } function foo0_1_c(x) { - var _loop_12 = function (x_12) { - v = x_12; - (function () { return x_12 + v; }); - (function () { return x_12 + v; }); - }; - var v; - for (var x_12 in []) { - _loop_12(x_12); + for (const x in []) { + var v = x; + (function () { return x + v; }); + (() => x + v); } use(v); } function foo1_c(x) { - var _loop_13 = function (x_13) { - v = x_13; - (function () { return x_13 + v; }); - (function () { return x_13 + v; }); - }; - var v; - for (var x_13 = 0; x_13 < 1;) { - _loop_13(x_13); + for (const x = 0; x < 1;) { + var v = x; + (function () { return x + v; }); + (() => x + v); } use(v); } function foo2_c(x) { - var _loop_14 = function () { - var x_14 = 1; - v = x_14; - (function () { return x_14 + v; }); - (function () { return x_14 + v; }); - }; - var v; while (1 === 1) { - _loop_14(); + const x = 1; + var v = x; + (function () { return x + v; }); + (() => x + v); } use(v); } function foo3_c(x) { - var _loop_15 = function () { - var x_15 = 1; - (function () { return x_15 + v; }); - (function () { return x_15 + v; }); - }; - var v; do { - _loop_15(); + const x = 1; + var v; + (function () { return x + v; }); + (() => x + v); } while (1 === 1); use(v); } function foo4_c(x) { - var _loop_16 = function (y) { - v = y; - var x_16 = 1; - (function () { return x_16 + v; }); - (function () { return x_16 + v; }); - }; - var v; - for (var y = 0; y < 1;) { - _loop_16(y); + for (const y = 0; y < 1;) { + var v = y; + const x = 1; + (function () { return x + v; }); + (() => x + v); } use(v); } function foo5_c(x) { - var _loop_17 = function (x_17, y) { - v = x_17; - (function () { return x_17 + y + v; }); - (function () { return x_17 + y + v; }); - }; - var v; - for (var x_17 = 0, y = 1; x_17 < 1;) { - _loop_17(x_17, y); + for (const x = 0, y = 1; x < 1;) { + var v = x; + (function () { return x + y + v; }); + (() => x + y + v); } use(v); } function foo6_c(x) { - var _loop_18 = function () { - var x_18 = 1, y = 1; - v = x_18; - (function () { return x_18 + y + v; }); - (function () { return x_18 + y + v; }); - }; - var v; while (1 === 1) { - _loop_18(); + const x = 1, y = 1; + var v = x; + (function () { return x + y + v; }); + (() => x + y + v); } use(v); } function foo7_c(x) { - var _loop_19 = function () { - var x_19 = 1, y = 1; - v = x_19; - (function () { return x_19 + y + v; }); - (function () { return x_19 + y + v; }); - }; - var v; do { - _loop_19(); + const x = 1, y = 1; + var v = x; + (function () { return x + y + v; }); + (() => x + y + v); } while (1 === 1); use(v); } function foo8_c(x) { - var _loop_20 = function (y) { - var x_20 = 1; - v = x_20; - (function () { return x_20 + y + v; }); - (function () { return x_20 + y + v; }); - }; - var v; - for (var y = 0; y < 1;) { - _loop_20(y); + for (const y = 0; y < 1;) { + const x = 1; + var v = x; + (function () { return x + y + v; }); + (() => x + y + v); } use(v); } diff --git a/tests/baselines/reference/capturedLetConstInLoop4.js b/tests/baselines/reference/capturedLetConstInLoop4.js index 3cb952e524f65..0df51c43f314e 100644 --- a/tests/baselines/reference/capturedLetConstInLoop4.js +++ b/tests/baselines/reference/capturedLetConstInLoop4.js @@ -162,179 +162,117 @@ System.register([], function (exports_1, context_1) { return { setters: [], execute: function () { - var _loop_1 = function (x) { + for (let x of []) { v0 = x; (function () { return x + v0; }); - (function () { return x; }); - }; - for (var _i = 0, _a = []; _i < _a.length; _i++) { - var x = _a[_i]; - _loop_1(x); + (() => x); } - var _loop_2 = function (x) { + for (let x in []) { v00 = x; (function () { return x + v00; }); - (function () { return x; }); - }; - for (var x in []) { - _loop_2(x); + (() => x); } - var _loop_3 = function (x) { + for (let x = 0; x < 1; ++x) { v1 = x; (function () { return x + v1; }); - (function () { return x; }); - }; - for (var x = 0; x < 1; ++x) { - _loop_3(x); + (() => x); } - var _loop_4 = function () { - var x; + while (1 === 1) { + let x; v2 = x; (function () { return x + v2; }); - (function () { return x; }); - }; - while (1 === 1) { - _loop_4(); + (() => x); } - var _loop_5 = function () { - var x; + do { + let x; v3 = x; (function () { return x + v3; }); - (function () { return x; }); - }; - do { - _loop_5(); + (() => x); } while (1 === 1); - var _loop_6 = function (y) { - var x = 1; + for (let y = 0; y < 1; ++y) { + let x = 1; v4 = x; (function () { return x + v4; }); - (function () { return x; }); - }; - for (var y = 0; y < 1; ++y) { - _loop_6(y); + (() => x); } - var _loop_7 = function (x, y) { + for (let x = 0, y = 1; x < 1; ++x) { v5 = x; (function () { return x + y + v5; }); - (function () { return x + y; }); - }; - for (var x = 0, y = 1; x < 1; ++x) { - _loop_7(x, y); + (() => x + y); } - var _loop_8 = function () { - var x, y; + while (1 === 1) { + let x, y; v6 = x; (function () { return x + y + v6; }); - (function () { return x + y; }); - }; - while (1 === 1) { - _loop_8(); + (() => x + y); } - var _loop_9 = function () { - var x, y; + do { + let x, y; v7 = x; (function () { return x + y + v7; }); - (function () { return x + y; }); - }; - do { - _loop_9(); + (() => x + y); } while (1 === 1); - var _loop_10 = function (y) { - var x = 1; + for (let y = 0; y < 1; ++y) { + let x = 1; v8 = x; (function () { return x + y + v8; }); - (function () { return x + y; }); - }; - for (var y = 0; y < 1; ++y) { - _loop_10(y); + (() => x + y); } - var _loop_11 = function (x) { + for (const x of []) { v0_c = x; (function () { return x + v0_c; }); - (function () { return x; }); - }; - for (var _b = 0, _c = []; _b < _c.length; _b++) { - var x = _c[_b]; - _loop_11(x); + (() => x); } - var _loop_12 = function (x) { + for (const x in []) { v00_c = x; (function () { return x + v00; }); - (function () { return x; }); - }; - for (var x in []) { - _loop_12(x); + (() => x); } - var _loop_13 = function (x) { + for (const x = 0; x < 1;) { v1_c = x; (function () { return x + v1_c; }); - (function () { return x; }); - }; - for (var x = 0; x < 1;) { - _loop_13(x); + (() => x); } - var _loop_14 = function () { - var x = 1; + while (1 === 1) { + const x = 1; v2_c = x; (function () { return x + v2_c; }); - (function () { return x; }); - }; - while (1 === 1) { - _loop_14(); + (() => x); } - var _loop_15 = function () { - var x = 1; + do { + const x = 1; v3_c = x; (function () { return x + v3_c; }); - (function () { return x; }); - }; - do { - _loop_15(); + (() => x); } while (1 === 1); - var _loop_16 = function (y) { - var x = 1; + for (const y = 0; y < 1;) { + const x = 1; v4_c = x; (function () { return x + v4_c; }); - (function () { return x; }); - }; - for (var y = 0; y < 1;) { - _loop_16(y); + (() => x); } - var _loop_17 = function (x, y) { + for (const x = 0, y = 1; x < 1;) { v5_c = x; (function () { return x + y + v5_c; }); - (function () { return x + y; }); - }; - for (var x = 0, y = 1; x < 1;) { - _loop_17(x, y); + (() => x + y); } - var _loop_18 = function () { - var x = 1, y = 1; + while (1 === 1) { + const x = 1, y = 1; v6_c = x; (function () { return x + y + v6_c; }); - (function () { return x + y; }); - }; - while (1 === 1) { - _loop_18(); + (() => x + y); } - var _loop_19 = function () { - var x = 1, y = 1; + do { + const x = 1, y = 1; v7_c = x; (function () { return x + y + v7_c; }); - (function () { return x + y; }); - }; - do { - _loop_19(); + (() => x + y); } while (1 === 1); - var _loop_20 = function (y) { - var x = 1; + for (const y = 0; y < 1;) { + const x = 1; v8_c = x; (function () { return x + y + v8_c; }); - (function () { return x + y; }); - }; - for (var y = 0; y < 1;) { - _loop_20(y); + (() => x + y); } } }; diff --git a/tests/baselines/reference/capturedLetConstInLoop5.js b/tests/baselines/reference/capturedLetConstInLoop5.js index 3310e159ca77d..becbf24cb8657 100644 --- a/tests/baselines/reference/capturedLetConstInLoop5.js +++ b/tests/baselines/reference/capturedLetConstInLoop5.js @@ -284,356 +284,236 @@ function foo8_c(x) { //// [capturedLetConstInLoop5.js] //====let function foo0(x) { - var _loop_1 = function (x_1) { - v = x_1; - (function () { return x_1 + v; }); - (function () { return x_1 + v; }); - if (x_1 == 1) { - return { value: void 0 }; + for (let x of []) { + var v = x; + (function () { return x + v; }); + (() => x + v); + if (x == 1) { + return; } - }; - var v; - for (var _i = 0, _a = []; _i < _a.length; _i++) { - var x_1 = _a[_i]; - var state_1 = _loop_1(x_1); - if (typeof state_1 === "object") - return state_1.value; } use(v); } function foo00(x) { - var _loop_2 = function (x_2) { - v = x_2; - (function () { return x_2 + v; }); - (function () { return x_2 + v; }); - if (x_2 == "1") { - return { value: void 0 }; + for (let x in []) { + var v = x; + (function () { return x + v; }); + (() => x + v); + if (x == "1") { + return; } - }; - var v; - for (var x_2 in []) { - var state_2 = _loop_2(x_2); - if (typeof state_2 === "object") - return state_2.value; } use(v); } function foo1(x) { - var _loop_3 = function (x_3) { - v = x_3; - (function () { return x_3 + v; }); - (function () { return x_3 + v; }); - if (x_3 == 1) { - return { value: void 0 }; + for (let x = 0; x < 1; ++x) { + var v = x; + (function () { return x + v; }); + (() => x + v); + if (x == 1) { + return; } - }; - var v; - for (var x_3 = 0; x_3 < 1; ++x_3) { - var state_3 = _loop_3(x_3); - if (typeof state_3 === "object") - return state_3.value; } use(v); } function foo2(x) { - var _loop_4 = function () { - var x_4 = 1; - v = x_4; - (function () { return x_4 + v; }); - (function () { return x_4 + v; }); - if (x_4 == 1) { - return { value: void 0 }; - } - }; - var v; while (1 === 1) { - var state_4 = _loop_4(); - if (typeof state_4 === "object") - return state_4.value; + let x = 1; + var v = x; + (function () { return x + v; }); + (() => x + v); + if (x == 1) { + return; + } } use(v); } function foo3(x) { - var _loop_5 = function () { - var x_5; - (function () { return x_5 + v; }); - (function () { return x_5 + v; }); - if (x_5 == 1) { - return { value: void 0 }; - } - }; - var v; do { - var state_5 = _loop_5(); - if (typeof state_5 === "object") - return state_5.value; + let x; + var v; + (function () { return x + v; }); + (() => x + v); + if (x == 1) { + return; + } } while (1 === 1); use(v); } function foo4(x) { - var _loop_6 = function (y) { - v = y; - var x_6 = 1; - (function () { return x_6 + v; }); - (function () { return x_6 + v; }); - if (x_6 == 1) { - return { value: void 0 }; + for (let y = 0; y < 1; ++y) { + var v = y; + let x = 1; + (function () { return x + v; }); + (() => x + v); + if (x == 1) { + return; } - }; - var v; - for (var y = 0; y < 1; ++y) { - var state_6 = _loop_6(y); - if (typeof state_6 === "object") - return state_6.value; } use(v); } function foo5(x) { - var _loop_7 = function (x_7, y) { - v = x_7; - (function () { return x_7 + y + v; }); - (function () { return x_7 + y + v; }); - if (x_7 == 1) { - return { value: void 0 }; + for (let x = 0, y = 1; x < 1; ++x) { + var v = x; + (function () { return x + y + v; }); + (() => x + y + v); + if (x == 1) { + return; } - }; - var v; - for (var x_7 = 0, y = 1; x_7 < 1; ++x_7) { - var state_7 = _loop_7(x_7, y); - if (typeof state_7 === "object") - return state_7.value; } use(v); } function foo6(x) { - var _loop_8 = function () { - var x_8, y; - v = x_8; - (function () { return x_8 + y + v; }); - (function () { return x_8 + y + v; }); - if (x_8 == 1) { - return { value: void 0 }; - } - }; - var v; while (1 === 1) { - var state_8 = _loop_8(); - if (typeof state_8 === "object") - return state_8.value; + let x, y; + var v = x; + (function () { return x + y + v; }); + (() => x + y + v); + if (x == 1) { + return; + } } ; use(v); } function foo7(x) { - var _loop_9 = function () { - var x_9, y; - v = x_9; - (function () { return x_9 + y + v; }); - (function () { return x_9 + y + v; }); - if (x_9 == 1) { - return { value: void 0 }; - } - }; - var v; do { - var state_9 = _loop_9(); - if (typeof state_9 === "object") - return state_9.value; + let x, y; + var v = x; + (function () { return x + y + v; }); + (() => x + y + v); + if (x == 1) { + return; + } } while (1 === 1); use(v); } function foo8(x) { - var _loop_10 = function (y) { - var x_10 = 1; - v = x_10; - (function () { return x_10 + y + v; }); - (function () { return x_10 + y + v; }); - if (x_10 == 1) { - return { value: void 0 }; + for (let y = 0; y < 1; ++y) { + let x = 1; + var v = x; + (function () { return x + y + v; }); + (() => x + y + v); + if (x == 1) { + return; } - }; - var v; - for (var y = 0; y < 1; ++y) { - var state_10 = _loop_10(y); - if (typeof state_10 === "object") - return state_10.value; } use(v); } //====const function foo0_c(x) { - var _loop_11 = function (x_11) { - v = x_11; - (function () { return x_11 + v; }); - (function () { return x_11 + v; }); - if (x_11 == 1) { - return { value: void 0 }; + for (const x of []) { + var v = x; + (function () { return x + v; }); + (() => x + v); + if (x == 1) { + return; } - }; - var v; - for (var _i = 0, _a = []; _i < _a.length; _i++) { - var x_11 = _a[_i]; - var state_11 = _loop_11(x_11); - if (typeof state_11 === "object") - return state_11.value; } use(v); } function foo00_c(x) { - var _loop_12 = function (x_12) { - v = x_12; - (function () { return x_12 + v; }); - (function () { return x_12 + v; }); - if (x_12 == "1") { - return { value: void 0 }; + for (const x in []) { + var v = x; + (function () { return x + v; }); + (() => x + v); + if (x == "1") { + return; } - }; - var v; - for (var x_12 in []) { - var state_12 = _loop_12(x_12); - if (typeof state_12 === "object") - return state_12.value; } use(v); } function foo1_c(x) { - var _loop_13 = function (x_13) { - v = x_13; - (function () { return x_13 + v; }); - (function () { return x_13 + v; }); - if (x_13 == 1) { - return { value: void 0 }; + for (const x = 0; x < 1;) { + var v = x; + (function () { return x + v; }); + (() => x + v); + if (x == 1) { + return; } - }; - var v; - for (var x_13 = 0; x_13 < 1;) { - var state_13 = _loop_13(x_13); - if (typeof state_13 === "object") - return state_13.value; } use(v); } function foo2_c(x) { - var _loop_14 = function () { - var x_14 = 1; - v = x_14; - (function () { return x_14 + v; }); - (function () { return x_14 + v; }); - if (x_14 == 1) { - return { value: void 0 }; - } - }; - var v; while (1 === 1) { - var state_14 = _loop_14(); - if (typeof state_14 === "object") - return state_14.value; + const x = 1; + var v = x; + (function () { return x + v; }); + (() => x + v); + if (x == 1) { + return; + } } use(v); } function foo3_c(x) { - var _loop_15 = function () { - var x_15 = 1; - (function () { return x_15 + v; }); - (function () { return x_15 + v; }); - if (x_15 == 1) { - return { value: void 0 }; - } - }; - var v; do { - var state_15 = _loop_15(); - if (typeof state_15 === "object") - return state_15.value; + const x = 1; + var v; + (function () { return x + v; }); + (() => x + v); + if (x == 1) { + return; + } } while (1 === 1); use(v); } function foo4_c(x) { - var _loop_16 = function (y) { - v = y; - var x_16 = 1; - (function () { return x_16 + v; }); - (function () { return x_16 + v; }); - if (x_16 == 1) { - return { value: void 0 }; + for (const y = 0; y < 1;) { + var v = y; + let x = 1; + (function () { return x + v; }); + (() => x + v); + if (x == 1) { + return; } - }; - var v; - for (var y = 0; y < 1;) { - var state_16 = _loop_16(y); - if (typeof state_16 === "object") - return state_16.value; } use(v); } function foo5_c(x) { - var _loop_17 = function (x_17, y) { - v = x_17; - (function () { return x_17 + y + v; }); - (function () { return x_17 + y + v; }); - if (x_17 == 1) { - return { value: void 0 }; + for (const x = 0, y = 1; x < 1;) { + var v = x; + (function () { return x + y + v; }); + (() => x + y + v); + if (x == 1) { + return; } - }; - var v; - for (var x_17 = 0, y = 1; x_17 < 1;) { - var state_17 = _loop_17(x_17, y); - if (typeof state_17 === "object") - return state_17.value; } use(v); } function foo6_c(x) { - var _loop_18 = function () { - var x_18 = 1, y = 1; - v = x_18; - (function () { return x_18 + y + v; }); - (function () { return x_18 + y + v; }); - if (x_18 == 1) { - return { value: void 0 }; - } - }; - var v; while (1 === 1) { - var state_18 = _loop_18(); - if (typeof state_18 === "object") - return state_18.value; + const x = 1, y = 1; + var v = x; + (function () { return x + y + v; }); + (() => x + y + v); + if (x == 1) { + return; + } } use(v); } function foo7_c(x) { - var _loop_19 = function () { - var x_19 = 1, y = 1; - v = x_19; - (function () { return x_19 + y + v; }); - (function () { return x_19 + y + v; }); - if (x_19 == 1) { - return { value: void 0 }; - } - }; - var v; do { - var state_19 = _loop_19(); - if (typeof state_19 === "object") - return state_19.value; + const x = 1, y = 1; + var v = x; + (function () { return x + y + v; }); + (() => x + y + v); + if (x == 1) { + return; + } } while (1 === 1); use(v); } function foo8_c(x) { - var _loop_20 = function (y) { - var x_20 = 1; - v = x_20; - (function () { return x_20 + y + v; }); - (function () { return x_20 + y + v; }); - if (x_20 == 1) { - return { value: void 0 }; + for (const y = 0; y < 1;) { + const x = 1; + var v = x; + (function () { return x + y + v; }); + (() => x + y + v); + if (x == 1) { + return; } - }; - var v; - for (var y = 0; y < 1;) { - var state_20 = _loop_20(y); - if (typeof state_20 === "object") - return state_20.value; } use(v); } diff --git a/tests/baselines/reference/capturedLetConstInLoop6.js b/tests/baselines/reference/capturedLetConstInLoop6.js index a336075d031ec..8151166ab21a3 100644 --- a/tests/baselines/reference/capturedLetConstInLoop6.js +++ b/tests/baselines/reference/capturedLetConstInLoop6.js @@ -241,319 +241,217 @@ for (const y = 0; y < 1;) { //// [capturedLetConstInLoop6.js] -var _loop_1 = function (x) { - (function () { return x; }); +// ====let +for (let x of []) { (function () { return x; }); + (() => x); if (x == 1) { - return "break"; + break; } if (x == 2) { - return "continue"; + continue; } -}; -// ====let -for (var _i = 0, _a = []; _i < _a.length; _i++) { - var x = _a[_i]; - var state_1 = _loop_1(x); - if (state_1 === "break") - break; } -var _loop_2 = function (x) { - (function () { return x; }); +for (let x in []) { (function () { return x; }); + (() => x); if (x == "1") { - return "break"; + break; } if (x == "2") { - return "continue"; + continue; } -}; -for (var x in []) { - var state_2 = _loop_2(x); - if (state_2 === "break") - break; } -var _loop_3 = function (x) { - (function () { return x; }); +for (let x = 0; x < 1; ++x) { (function () { return x; }); + (() => x); if (x == 1) { - return "break"; + break; } if (x == 2) { - return "continue"; + continue; } -}; -for (var x = 0; x < 1; ++x) { - var state_3 = _loop_3(x); - if (state_3 === "break") - break; } -var _loop_4 = function () { - var x; - (function () { return x; }); +while (1 === 1) { + let x; (function () { return x; }); + (() => x); if (x == 1) { - return "break"; + break; } if (x == 2) { - return "continue"; + continue; } -}; -while (1 === 1) { - var state_4 = _loop_4(); - if (state_4 === "break") - break; } -var _loop_5 = function () { - var x; - (function () { return x; }); +do { + let x; (function () { return x; }); + (() => x); if (x == 1) { - return "break"; + break; } if (x == 2) { - return "continue"; + continue; } -}; -do { - var state_5 = _loop_5(); - if (state_5 === "break") - break; } while (1 === 1); -var _loop_6 = function (y) { - var x = 1; - (function () { return x; }); +for (let y = 0; y < 1; ++y) { + let x = 1; (function () { return x; }); + (() => x); if (x == 1) { - return "break"; + break; } if (x == 2) { - return "continue"; + continue; } -}; -for (var y = 0; y < 1; ++y) { - var state_6 = _loop_6(y); - if (state_6 === "break") - break; } -var _loop_7 = function (x, y) { - (function () { return x + y; }); +for (let x = 0, y = 1; x < 1; ++x) { (function () { return x + y; }); + (() => x + y); if (x == 1) { - return "break"; + break; } if (x == 2) { - return "continue"; + continue; } -}; -for (var x = 0, y = 1; x < 1; ++x) { - var state_7 = _loop_7(x, y); - if (state_7 === "break") - break; } -var _loop_8 = function () { - var x, y; - (function () { return x + y; }); +while (1 === 1) { + let x, y; (function () { return x + y; }); + (() => x + y); if (x == 1) { - return "break"; + break; } if (x == 2) { - return "continue"; + continue; } -}; -while (1 === 1) { - var state_8 = _loop_8(); - if (state_8 === "break") - break; } -var _loop_9 = function () { - var x, y; - (function () { return x + y; }); +do { + let x, y; (function () { return x + y; }); + (() => x + y); if (x == 1) { - return "break"; + break; } if (x == 2) { - return "continue"; + continue; } -}; -do { - var state_9 = _loop_9(); - if (state_9 === "break") - break; } while (1 === 1); -var _loop_10 = function (y) { - var x = 1; - (function () { return x + y; }); +for (let y = 0; y < 1; ++y) { + let x = 1; (function () { return x + y; }); + (() => x + y); if (x == 1) { - return "break"; + break; } if (x == 2) { - return "continue"; + continue; } -}; -for (var y = 0; y < 1; ++y) { - var state_10 = _loop_10(y); - if (state_10 === "break") - break; } -var _loop_11 = function (x) { - (function () { return x; }); +// ====const +for (const x of []) { (function () { return x; }); + (() => x); if (x == 1) { - return "break"; + break; } if (x == 2) { - return "continue"; + continue; } -}; -// ====const -for (var _b = 0, _c = []; _b < _c.length; _b++) { - var x = _c[_b]; - var state_11 = _loop_11(x); - if (state_11 === "break") - break; } -var _loop_12 = function (x) { - (function () { return x; }); +for (const x in []) { (function () { return x; }); + (() => x); if (x == "1") { - return "break"; + break; } if (x == "2") { - return "continue"; + continue; } -}; -for (var x in []) { - var state_12 = _loop_12(x); - if (state_12 === "break") - break; } -var _loop_13 = function (x) { - (function () { return x; }); +for (const x = 0; x < 1;) { (function () { return x; }); + (() => x); if (x == 1) { - return "break"; + break; } if (x == 2) { - return "continue"; + continue; } -}; -for (var x = 0; x < 1;) { - var state_13 = _loop_13(x); - if (state_13 === "break") - break; } -var _loop_14 = function () { - var x = 1; - (function () { return x; }); +while (1 === 1) { + const x = 1; (function () { return x; }); + (() => x); if (x == 1) { - return "break"; + break; } if (x == 2) { - return "continue"; + continue; } -}; -while (1 === 1) { - var state_14 = _loop_14(); - if (state_14 === "break") - break; } -var _loop_15 = function () { - var x = 1; - (function () { return x; }); +do { + const x = 1; (function () { return x; }); + (() => x); if (x == 1) { - return "break"; + break; } if (x == 2) { - return "continue"; + continue; } -}; -do { - var state_15 = _loop_15(); - if (state_15 === "break") - break; } while (1 === 1); -var _loop_16 = function (y) { - var x = 1; - (function () { return x; }); +for (const y = 0; y < 1;) { + const x = 1; (function () { return x; }); + (() => x); if (x == 1) { - return "break"; + break; } if (x == 2) { - return "continue"; + continue; } -}; -for (var y = 0; y < 1;) { - var state_16 = _loop_16(y); - if (state_16 === "break") - break; } -var _loop_17 = function (x, y) { - (function () { return x + y; }); +for (const x = 0, y = 1; x < 1;) { (function () { return x + y; }); + (() => x + y); if (x == 1) { - return "break"; + break; } if (x == 2) { - return "continue"; + continue; } -}; -for (var x = 0, y = 1; x < 1;) { - var state_17 = _loop_17(x, y); - if (state_17 === "break") - break; } -var _loop_18 = function () { - var x = 1, y = 1; - (function () { return x + y; }); +while (1 === 1) { + const x = 1, y = 1; (function () { return x + y; }); + (() => x + y); if (x == 1) { - return "break"; + break; } if (x == 2) { - return "continue"; + continue; } -}; -while (1 === 1) { - var state_18 = _loop_18(); - if (state_18 === "break") - break; } -var _loop_19 = function () { - var x = 1, y = 1; - (function () { return x + y; }); +do { + const x = 1, y = 1; (function () { return x + y; }); + (() => x + y); if (x == 1) { - return "break"; + break; } if (x == 2) { - return "continue"; + continue; } -}; -do { - var state_19 = _loop_19(); - if (state_19 === "break") - break; } while (1 === 1); -var _loop_20 = function (y) { - var x = 1; - (function () { return x + y; }); +for (const y = 0; y < 1;) { + const x = 1; (function () { return x + y; }); + (() => x + y); if (x == 1) { - return "break"; + break; } if (x == 2) { - return "continue"; + continue; } -}; -for (var y = 0; y < 1;) { - var state_20 = _loop_20(y); - if (state_20 === "break") - break; } diff --git a/tests/baselines/reference/capturedLetConstInLoop7.js b/tests/baselines/reference/capturedLetConstInLoop7.js index 9b1d205f53e36..6229ee443abbf 100644 --- a/tests/baselines/reference/capturedLetConstInLoop7.js +++ b/tests/baselines/reference/capturedLetConstInLoop7.js @@ -378,519 +378,337 @@ for (const y = 0; y < 1;) { } //// [capturedLetConstInLoop7.js] -var _loop_1 = function (x) { - (function () { return x; }); +//===let +l0: for (let x of []) { (function () { return x; }); + (() => x); if (x == 1) { - return "break"; + break; } if (x == 1) { - return "break-l0"; + break l0; } if (x == 2) { - return "continue"; + continue; } if (x == 2) { - return "continue-l0"; - } -}; -//===let -l0: for (var _i = 0, _a = []; _i < _a.length; _i++) { - var x = _a[_i]; - var state_1 = _loop_1(x); - if (state_1 === "break") - break; - switch (state_1) { - case "break-l0": break l0; - case "continue-l0": continue l0; + continue l0; } } -var _loop_2 = function (x) { - (function () { return x; }); +l00: for (let x in []) { (function () { return x; }); + (() => x); if (x == "1") { - return "break"; + break; } if (x == "1") { - return "break-l00"; + break l00; } if (x == "2") { - return "continue"; + continue; } if (x == "2") { - return "continue-l00"; - } -}; -l00: for (var x in []) { - var state_2 = _loop_2(x); - if (state_2 === "break") - break; - switch (state_2) { - case "break-l00": break l00; - case "continue-l00": continue l00; + continue l00; } } -var _loop_3 = function (x) { - (function () { return x; }); +l1: for (let x = 0; x < 1; ++x) { (function () { return x; }); + (() => x); if (x == 1) { - return "break"; + break; } if (x == 1) { - return "break-l1"; + break l1; } if (x == 2) { - return "continue"; + continue; } if (x == 2) { - return "continue-l1"; - } -}; -l1: for (var x = 0; x < 1; ++x) { - var state_3 = _loop_3(x); - if (state_3 === "break") - break; - switch (state_3) { - case "break-l1": break l1; - case "continue-l1": continue l1; + continue l1; } } -var _loop_4 = function () { - var x; - (function () { return x; }); +l2: while (1 === 1) { + let x; (function () { return x; }); + (() => x); if (x == 1) { - return "break"; + break; } if (x == 1) { - return "break-l2"; + break l2; } if (x == 2) { - return "continue"; + continue; } if (x == 2) { - return "continue-l2"; - } -}; -l2: while (1 === 1) { - var state_4 = _loop_4(); - if (state_4 === "break") - break; - switch (state_4) { - case "break-l2": break l2; - case "continue-l2": continue l2; + continue l2; } } -var _loop_5 = function () { - var x; - (function () { return x; }); +l3: do { + let x; (function () { return x; }); + (() => x); if (x == 1) { - return "break"; + break; } if (x == 1) { - return "break-l3"; + break l3; } if (x == 2) { - return "continue"; + continue; } if (x == 2) { - return "continue-l3"; - } -}; -l3: do { - var state_5 = _loop_5(); - if (state_5 === "break") - break; - switch (state_5) { - case "break-l3": break l3; - case "continue-l3": continue l3; + continue l3; } } while (1 === 1); -var _loop_6 = function (y) { - var x = 1; - (function () { return x; }); +l4: for (let y = 0; y < 1; ++y) { + let x = 1; (function () { return x; }); + (() => x); if (x == 1) { - return "break"; + break; } if (x == 1) { - return "break-l4"; + break l4; } if (x == 2) { - return "continue"; + continue; } if (x == 2) { - return "continue-l4"; - } -}; -l4: for (var y = 0; y < 1; ++y) { - var state_6 = _loop_6(y); - if (state_6 === "break") - break; - switch (state_6) { - case "break-l4": break l4; - case "continue-l4": continue l4; + continue l4; } } -var _loop_7 = function (x, y) { - (function () { return x + y; }); +l5: for (let x = 0, y = 1; x < 1; ++x) { (function () { return x + y; }); + (() => x + y); if (x == 1) { - return "break"; + break; } if (x == 1) { - return "break-l5"; + break l5; } if (x == 2) { - return "continue"; + continue; } if (x == 2) { - return "continue-l5"; - } -}; -l5: for (var x = 0, y = 1; x < 1; ++x) { - var state_7 = _loop_7(x, y); - if (state_7 === "break") - break; - switch (state_7) { - case "break-l5": break l5; - case "continue-l5": continue l5; + continue l5; } } -var _loop_8 = function () { - var x, y; - (function () { return x + y; }); +l6: while (1 === 1) { + let x, y; (function () { return x + y; }); + (() => x + y); if (x == 1) { - return "break"; + break; } if (x == 1) { - return "break-l6"; + break l6; } if (x == 2) { - return "continue"; + continue; } if (x == 2) { - return "continue-l6"; - } -}; -l6: while (1 === 1) { - var state_8 = _loop_8(); - if (state_8 === "break") - break; - switch (state_8) { - case "break-l6": break l6; - case "continue-l6": continue l6; + continue l6; } } -var _loop_9 = function () { - var x, y; - (function () { return x + y; }); +l7: do { + let x, y; (function () { return x + y; }); + (() => x + y); if (x == 1) { - return "break"; + break; } if (x == 1) { - return "break-l7"; + break l7; } if (x == 2) { - return "continue"; + continue; } if (x == 2) { - return "continue-l7"; - } -}; -l7: do { - var state_9 = _loop_9(); - if (state_9 === "break") - break; - switch (state_9) { - case "break-l7": break l7; - case "continue-l7": continue l7; + continue l7; } } while (1 === 1); -var _loop_10 = function (y) { - var x = 1; - (function () { return x + y; }); +l8: for (let y = 0; y < 1; ++y) { + let x = 1; (function () { return x + y; }); + (() => x + y); if (x == 1) { - return "break"; + break; } if (x == 1) { - return "break-l8"; + break l8; } if (x == 2) { - return "continue"; + continue; } if (x == 2) { - return "continue-l8"; - } -}; -l8: for (var y = 0; y < 1; ++y) { - var state_10 = _loop_10(y); - if (state_10 === "break") - break; - switch (state_10) { - case "break-l8": break l8; - case "continue-l8": continue l8; + continue l8; } } -var _loop_11 = function (x) { - (function () { return x; }); +//===const +l0_c: for (const x of []) { (function () { return x; }); + (() => x); if (x == 1) { - return "break"; + break; } if (x == 1) { - return "break-l0_c"; + break l0_c; } if (x == 2) { - return "continue"; + continue; } if (x == 2) { - return "continue-l0_c"; - } -}; -//===const -l0_c: for (var _b = 0, _c = []; _b < _c.length; _b++) { - var x = _c[_b]; - var state_11 = _loop_11(x); - if (state_11 === "break") - break; - switch (state_11) { - case "break-l0_c": break l0_c; - case "continue-l0_c": continue l0_c; + continue l0_c; } } -var _loop_12 = function (x) { - (function () { return x; }); +l00_c: for (const x in []) { (function () { return x; }); + (() => x); if (x == "1") { - return "break"; + break; } if (x == "1") { - return "break-l00_c"; + break l00_c; } if (x == "2") { - return "continue"; + continue; } if (x == "2") { - return "continue-l00_c"; - } -}; -l00_c: for (var x in []) { - var state_12 = _loop_12(x); - if (state_12 === "break") - break; - switch (state_12) { - case "break-l00_c": break l00_c; - case "continue-l00_c": continue l00_c; + continue l00_c; } } -var _loop_13 = function (x) { - (function () { return x; }); +l1_c: for (const x = 0; x < 1;) { (function () { return x; }); + (() => x); if (x == 1) { - return "break"; + break; } if (x == 1) { - return "break-l1_c"; + break l1_c; } if (x == 2) { - return "continue"; + continue; } if (x == 2) { - return "continue-l1_c"; - } -}; -l1_c: for (var x = 0; x < 1;) { - var state_13 = _loop_13(x); - if (state_13 === "break") - break; - switch (state_13) { - case "break-l1_c": break l1_c; - case "continue-l1_c": continue l1_c; + continue l1_c; } } -var _loop_14 = function () { - var x = 1; - (function () { return x; }); +l2_c: while (1 === 1) { + const x = 1; (function () { return x; }); + (() => x); if (x == 1) { - return "break"; + break; } if (x == 1) { - return "break-l2_c"; + break l2_c; } if (x == 2) { - return "continue"; + continue; } if (x == 2) { - return "continue-l2_c"; - } -}; -l2_c: while (1 === 1) { - var state_14 = _loop_14(); - if (state_14 === "break") - break; - switch (state_14) { - case "break-l2_c": break l2_c; - case "continue-l2_c": continue l2_c; + continue l2_c; } } -var _loop_15 = function () { - var x = 1; - (function () { return x; }); +l3_c: do { + const x = 1; (function () { return x; }); + (() => x); if (x == 1) { - return "break"; + break; } if (x == 1) { - return "break-l3_c"; + break l3_c; } if (x == 2) { - return "continue"; + continue; } if (x == 2) { - return "continue-l3_c"; - } -}; -l3_c: do { - var state_15 = _loop_15(); - if (state_15 === "break") - break; - switch (state_15) { - case "break-l3_c": break l3_c; - case "continue-l3_c": continue l3_c; + continue l3_c; } } while (1 === 1); -var _loop_16 = function (y) { - var x = 1; - (function () { return x; }); +l4_c: for (const y = 0; y < 1;) { + const x = 1; (function () { return x; }); + (() => x); if (x == 1) { - return "break"; + break; } if (x == 1) { - return "break-l4_c"; + break l4_c; } if (x == 2) { - return "continue"; + continue; } if (x == 2) { - return "continue-l4_c"; - } -}; -l4_c: for (var y = 0; y < 1;) { - var state_16 = _loop_16(y); - if (state_16 === "break") - break; - switch (state_16) { - case "break-l4_c": break l4_c; - case "continue-l4_c": continue l4_c; + continue l4_c; } } -var _loop_17 = function (x, y) { - (function () { return x + y; }); +l5_c: for (const x = 0, y = 1; x < 1;) { (function () { return x + y; }); + (() => x + y); if (x == 1) { - return "break"; + break; } if (x == 1) { - return "break-l5_c"; + break l5_c; } if (x == 2) { - return "continue"; + continue; } if (x == 2) { - return "continue-l5_c"; - } -}; -l5_c: for (var x = 0, y = 1; x < 1;) { - var state_17 = _loop_17(x, y); - if (state_17 === "break") - break; - switch (state_17) { - case "break-l5_c": break l5_c; - case "continue-l5_c": continue l5_c; + continue l5_c; } } -var _loop_18 = function () { - var x = 1, y = 1; - (function () { return x + y; }); +l6_c: while (1 === 1) { + const x = 1, y = 1; (function () { return x + y; }); + (() => x + y); if (x == 1) { - return "break"; + break; } if (x == 1) { - return "break-l6_c"; + break l6_c; } if (x == 2) { - return "continue"; + continue; } if (x == 2) { - return "continue-l6_c"; - } -}; -l6_c: while (1 === 1) { - var state_18 = _loop_18(); - if (state_18 === "break") - break; - switch (state_18) { - case "break-l6_c": break l6_c; - case "continue-l6_c": continue l6_c; + continue l6_c; } } -var _loop_19 = function () { - var x = 1, y = 1; - (function () { return x + y; }); +l7_c: do { + const x = 1, y = 1; (function () { return x + y; }); + (() => x + y); if (x == 1) { - return "break"; + break; } if (x == 1) { - return "break-l7_c"; + break l7_c; } if (x == 2) { - return "continue"; + continue; } if (x == 2) { - return "continue-l7_c"; - } -}; -l7_c: do { - var state_19 = _loop_19(); - if (state_19 === "break") - break; - switch (state_19) { - case "break-l7_c": break l7_c; - case "continue-l7_c": continue l7_c; + continue l7_c; } } while (1 === 1); -var _loop_20 = function (y) { - var x = 1; - (function () { return x + y; }); +l8_c: for (const y = 0; y < 1;) { + const x = 1; (function () { return x + y; }); + (() => x + y); if (x == 1) { - return "break"; + break; } if (x == 1) { - return "break-l8_c"; + break l8_c; } if (x == 2) { - return "continue"; + continue; } if (x == 2) { - return "continue-l8_c"; - } -}; -l8_c: for (var y = 0; y < 1;) { - var state_20 = _loop_20(y); - if (state_20 === "break") - break; - switch (state_20) { - case "break-l8_c": break l8_c; - case "continue-l8_c": continue l8_c; + continue l8_c; } } diff --git a/tests/baselines/reference/capturedLetConstInLoop8.js b/tests/baselines/reference/capturedLetConstInLoop8.js index 147fe3447eb2a..5e7576d838256 100644 --- a/tests/baselines/reference/capturedLetConstInLoop8.js +++ b/tests/baselines/reference/capturedLetConstInLoop8.js @@ -130,169 +130,117 @@ function foo_c() { //// [capturedLetConstInLoop8.js] function foo() { - l0: for (var z = 0; z < 1; ++z) { - var _loop_1 = function (x) { - var _loop_2 = function (y) { - (function () { return x + y; }); + l0: for (let z = 0; z < 1; ++z) { + l1: for (let x = 0; x < 1; ++x) { + ll1: for (let y = 0; y < 1; ++y) { (function () { return x + y; }); + (() => x + y); if (y == 1) { - return "break"; + break; } if (y == 1) { - return "break-l1"; + break l1; } if (y == 1) { - return "break-ll1"; + break ll1; } if (y == 1) { - return "continue-l0"; + continue l0; } if (x == 2) { - return "continue"; + continue; } if (x == 2) { - return "continue-l1"; + continue l1; } if (x == 2) { - return "continue-ll1"; + continue ll1; } if (x == 2) { - return { value: "123" }; + return "123"; } if (x == 3) { - return { value: void 0 }; - } - }; - ll1: for (var y = 0; y < 1; ++y) { - var state_2 = _loop_2(y); - if (typeof state_2 === "object") - return state_2; - if (state_2 === "break") - break; - switch (state_2) { - case "break-l1": return state_2; - case "break-ll1": break ll1; - case "continue-l0": return state_2; - case "continue-l1": return state_2; - case "continue-ll1": continue ll1; + return; } } if (x == 1) { - return "break"; + break; } if (x == 1) { - return "break-l1"; + break l1; } if (x == 2) { - return "continue"; + continue; } if (x == 2) { - return "continue-l1"; + continue l1; } if (x == 2) { - return "continue-l0"; + continue l0; } if (x == 2) { - return { value: "456" }; + return "456"; } if (x == 3) { - return { value: void 0 }; - } - }; - l1: for (var x = 0; x < 1; ++x) { - var state_1 = _loop_1(x); - if (typeof state_1 === "object") - return state_1.value; - if (state_1 === "break") - break; - switch (state_1) { - case "break-l1": break l1; - case "continue-l0": continue l0; - case "continue-l1": continue l1; + return; } } } } function foo_c() { - l0: for (var z = 0; z < 1;) { - var _loop_3 = function (x) { - var _loop_4 = function (y) { - (function () { return x + y; }); + l0: for (const z = 0; z < 1;) { + l1: for (const x = 0; x < 1;) { + ll1: for (const y = 0; y < 1;) { (function () { return x + y; }); + (() => x + y); if (y == 1) { - return "break"; + break; } if (y == 1) { - return "break-l1"; + break l1; } if (y == 1) { - return "break-ll1"; + break ll1; } if (y == 1) { - return "continue-l0"; + continue l0; } if (x == 2) { - return "continue"; + continue; } if (x == 2) { - return "continue-l1"; + continue l1; } if (x == 2) { - return "continue-ll1"; + continue ll1; } if (x == 2) { - return { value: "123" }; + return "123"; } if (x == 3) { - return { value: void 0 }; - } - }; - ll1: for (var y = 0; y < 1;) { - var state_4 = _loop_4(y); - if (typeof state_4 === "object") - return state_4; - if (state_4 === "break") - break; - switch (state_4) { - case "break-l1": return state_4; - case "break-ll1": break ll1; - case "continue-l0": return state_4; - case "continue-l1": return state_4; - case "continue-ll1": continue ll1; + return; } } if (x == 1) { - return "break"; + break; } if (x == 1) { - return "break-l1"; + break l1; } if (x == 2) { - return "continue"; + continue; } if (x == 2) { - return "continue-l1"; + continue l1; } if (x == 2) { - return "continue-l0"; + continue l0; } if (x == 2) { - return { value: "456" }; + return "456"; } if (x == 3) { - return { value: void 0 }; - } - }; - l1: for (var x = 0; x < 1;) { - var state_3 = _loop_3(x); - if (typeof state_3 === "object") - return state_3.value; - if (state_3 === "break") - break; - switch (state_3) { - case "break-l1": break l1; - case "continue-l0": continue l0; - case "continue-l1": continue l1; + return; } } } diff --git a/tests/baselines/reference/capturedLetConstInLoop9.js b/tests/baselines/reference/capturedLetConstInLoop9.js index be7d4bb85e6d8..2e33b22271438 100644 --- a/tests/baselines/reference/capturedLetConstInLoop9.js +++ b/tests/baselines/reference/capturedLetConstInLoop9.js @@ -141,102 +141,67 @@ function foo3 () { } //// [capturedLetConstInLoop9.js] -var _loop_1 = function (x) { - var x_1; - (function () { return x_1; }); +for (let x = 0; x < 1; ++x) { + let x; + (function () { return x; }); { - var x_2; - (function () { return x_2; }); + let x; + (function () { return x; }); } try { } catch (e) { - var x_3; - (function () { return x_3; }); + let x; + (function () { return x; }); } - switch (x_1) { + switch (x) { case 1: - var x_4; - (function () { return x_4; }); + let x; + (function () { return x; }); break; } - var _loop_2 = function () { - var x_5; - (function () { return x_5; }); - }; while (1 == 1) { - _loop_2(); + let x; + (function () { return x; }); } - var A = /** @class */ (function () { - function A() { + class A { + m() { + return x + 1; } - A.prototype.m = function () { - return x_1 + 1; - }; - return A; - }()); -}; -for (var x = 0; x < 1; ++x) { - _loop_1(x); + } } function foo() { - var _loop_3 = function (a) { - var _b; + l0: for (let a of []) { if (a === 1) { - return "break"; + break; } if (a === 2) { - return "break-l0"; + break l0; } - for (var _c = 0, _d = []; _c < _d.length; _c++) { - var b = _d[_c]; - _b = [{ x: 1, y: 2 }][0], x = _b.x, z = _b.y; + for (let b of []) { + var [{ x, y: z }] = [{ x: 1, y: 2 }]; if (b === 1) { break; } if (b === 2) { - return "break-l0"; + break l0; } l1: if (b === 3) { break l1; } - return { value: 50 }; + return 50; } - var _loop_4 = function (b) { - var _g; - _g = [{ x1: 1, y: arguments_1.length }][0], x1 = _g.x1, z1 = _g.y; + for (let b of []) { + var [{ x1, y: z1 }] = [{ x1: 1, y: arguments.length }]; if (b === 1) { - return "break"; + break; } if (b === 2) { - return "break-l0"; - } - (function () { return b; }); - return { value: 100 }; - }; - for (var _e = 0, _f = []; _e < _f.length; _e++) { - var b = _f[_e]; - var state_2 = _loop_4(b); - if (typeof state_2 === "object") - return state_2; - if (state_2 === "break") - break; - switch (state_2) { - case "break-l0": return state_2; + break l0; } + () => b; + return 100; } - (function () { return a; }); - }; - var arguments_1 = arguments, x, z, x1, z1; - l0: for (var _i = 0, _a = []; _i < _a.length; _i++) { - var a = _a[_i]; - var state_1 = _loop_3(a); - if (typeof state_1 === "object") - return state_1.value; - if (state_1 === "break") - break; - switch (state_1) { - case "break-l0": break l0; - } + () => a; } use(x); use(z); @@ -244,8 +209,7 @@ function foo() { use(z1); } function foo2() { - for (var _i = 0, _a = []; _i < _a.length; _i++) { - var x = _a[_i]; + for (let x of []) { if (x === 1) { break; } @@ -264,8 +228,7 @@ function foo2() { case 1: break; case 2: continue; } - for (var _b = 0, _c = []; _b < _c.length; _b++) { - var y = _c[_b]; + for (let y of []) { switch (y) { case 1: break; case 2: continue; @@ -273,30 +236,20 @@ function foo2() { } } } -var C = /** @class */ (function () { - function C(N) { +class C { + constructor(N) { this.N = N; } - C.prototype.foo = function () { - var _this = this; - var _loop_5 = function (i) { - var f = function () { return _this.N * i; }; - }; - for (var i = 0; i < 100; i++) { - _loop_5(i); + foo() { + for (let i = 0; i < 100; i++) { + let f = () => this.N * i; } - }; - return C; -}()); + } +} function foo3() { - var x = arguments.length; - var _loop_6 = function (y) { - var z = arguments_2.length; + let x = arguments.length; + for (let y of []) { + let z = arguments.length; (function () { return y + z + arguments.length; }); - }; - var arguments_2 = arguments; - for (var _i = 0, _a = []; _i < _a.length; _i++) { - var y = _a[_i]; - _loop_6(y); } } diff --git a/tests/baselines/reference/caseInsensitiveFileSystemWithCapsImportTypeDeclarations.js b/tests/baselines/reference/caseInsensitiveFileSystemWithCapsImportTypeDeclarations.js index 811c418a15105..037a9fbfacd2c 100644 --- a/tests/baselines/reference/caseInsensitiveFileSystemWithCapsImportTypeDeclarations.js +++ b/tests/baselines/reference/caseInsensitiveFileSystemWithCapsImportTypeDeclarations.js @@ -24,27 +24,17 @@ export type Merge = T & U; //// [types.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); +export {}; //// [type-a.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); +export {}; //// [type-b.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); +export {}; //// [index.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Broken = void 0; -var Broken = /** @class */ (function () { - function Broken() { - } - Broken.prototype.method = function () { +export class Broken { + method() { return {}; - }; - return Broken; -}()); -exports.Broken = Broken; + } +} //// [types.d.ts] diff --git a/tests/baselines/reference/castExpressionParentheses.js b/tests/baselines/reference/castExpressionParentheses.js index 8d2f0a15ddf98..f547a2ec92424 100644 --- a/tests/baselines/reference/castExpressionParentheses.js +++ b/tests/baselines/reference/castExpressionParentheses.js @@ -87,7 +87,7 @@ a().x; (typeof A).x; (-A).x; new (A()); -(function () { })(); +(() => { })(); (function foo() { })(); (-A).x; // nested cast, should keep one pair of parenthese diff --git a/tests/baselines/reference/castOfYield.js b/tests/baselines/reference/castOfYield.js index 94de9e5dddfdd..fa808f1570a4e 100644 --- a/tests/baselines/reference/castOfYield.js +++ b/tests/baselines/reference/castOfYield.js @@ -9,45 +9,9 @@ function* f() { //// [castOfYield.js] -var __generator = (this && this.__generator) || function (thisArg, body) { - var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype); - return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; - function verb(n) { return function (v) { return step([n, v]); }; } - function step(op) { - if (f) throw new TypeError("Generator is already executing."); - while (g && (g = 0, op[0] && (_ = 0)), _) try { - if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; - if (y = 0, t) op = [op[0] & 2, t.value]; - switch (op[0]) { - case 0: case 1: t = op; break; - case 4: _.label++; return { value: op[1], done: false }; - case 5: _.label++; y = op[1]; op = [0]; continue; - case 7: op = _.ops.pop(); _.trys.pop(); continue; - default: - if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } - if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } - if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } - if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } - if (t[2]) _.ops.pop(); - _.trys.pop(); continue; - } - op = body.call(thisArg, _); - } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } - if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; - } -}; -function f() { - return __generator(this, function (_a) { - switch (_a.label) { - case 0: return [4 /*yield*/, 0]; - case 1: - (_a.sent()); - // Unlike await, yield is not allowed to appear in a simple unary expression. - ; - return [4 /*yield*/, 0]; - case 2: - _a.sent(); - return [2 /*return*/]; - } - }); +function* f() { + (yield 0); + // Unlike await, yield is not allowed to appear in a simple unary expression. + ; + yield 0; } diff --git a/tests/baselines/reference/castParentheses.js b/tests/baselines/reference/castParentheses.js index a00bfbb65f62e..f0f44ba04a252 100644 --- a/tests/baselines/reference/castParentheses.js +++ b/tests/baselines/reference/castParentheses.js @@ -14,11 +14,8 @@ var b = (new a.b); var b = (new a).b //// [castParentheses.js] -var a = /** @class */ (function () { - function a() { - } - return a; -}()); +class a { +} var b = a; var b = a.b; var b = a.b.c; diff --git a/tests/baselines/reference/castingTuple.js b/tests/baselines/reference/castingTuple.js index 247bfff81bfdd..11b1a369deac5 100644 --- a/tests/baselines/reference/castingTuple.js +++ b/tests/baselines/reference/castingTuple.js @@ -37,54 +37,22 @@ t4[2] = 10; //// [castingTuple.js] -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -var A = /** @class */ (function () { - function A() { +class A { + constructor() { this.a = 10; } - return A; -}()); -var C = /** @class */ (function () { - function C() { - } - return C; -}()); +} +class C { +} ; -var D = /** @class */ (function () { - function D() { - } - return D; -}()); +class D { +} ; -var E = /** @class */ (function (_super) { - __extends(E, _super); - function E() { - return _super !== null && _super.apply(this, arguments) || this; - } - return E; -}(A)); +class E extends A { +} ; -var F = /** @class */ (function (_super) { - __extends(F, _super); - function F() { - return _super !== null && _super.apply(this, arguments) || this; - } - return F; -}(A)); +class F extends A { +} ; var E1; (function (E1) { diff --git a/tests/baselines/reference/catchClauseWithTypeAnnotation.js b/tests/baselines/reference/catchClauseWithTypeAnnotation.js index f93af26df239e..a600f13719561 100644 --- a/tests/baselines/reference/catchClauseWithTypeAnnotation.js +++ b/tests/baselines/reference/catchClauseWithTypeAnnotation.js @@ -98,7 +98,7 @@ function fn(x) { // minor bug: shows that the `catch` argument is skipped when checking scope try { } catch (x) { - var x_1; + let x; } try { } catch (x) { @@ -109,35 +109,25 @@ function fn(x) { var x; } try { } - catch (_a) { - var x_2 = _a.x; - } // should be OK + catch ({ x }) { } // should be OK try { } - catch (_b) { - var x_3 = _b.x; - x_3.foo; + catch ({ x }) { + x.foo; } // should be OK try { } - catch (_c) { - var x_4 = _c.x; - x_4.foo; + catch ({ x }) { + x.foo; } // should be OK try { } - catch (_d) { - var x_5 = _d.x; - console.log(x_5); + catch ({ x }) { + console.log(x); } // error in the destructure try { } - catch (_e) { - var x_6 = _e.x; - console.log(x_6); + catch ({ x }) { + console.log(x); } // error in the destructure try { } - catch (_f) { - var x_7 = _f.x; - } // error in the type + catch ({ x }) { } // error in the type try { } - catch (_g) { - var x_8 = _g.x; - } // error in the type + catch ({ x }) { } // error in the type } diff --git a/tests/baselines/reference/chained.js b/tests/baselines/reference/chained.js index d9aca8740213d..ffd684b7e0b85 100644 --- a/tests/baselines/reference/chained.js +++ b/tests/baselines/reference/chained.js @@ -20,21 +20,14 @@ const d: D = {}; //// [a.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -var A = /** @class */ (function () { - function A() { - } - return A; -}()); +class A { +} +export {}; //// [b.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); +export {}; //// [c.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); +export {}; //// [d.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); new D(); -var d = {}; +const d = {}; +export {}; diff --git a/tests/baselines/reference/chained2.js b/tests/baselines/reference/chained2.js index 9398f6c6840ff..42ce26e568546 100644 --- a/tests/baselines/reference/chained2.js +++ b/tests/baselines/reference/chained2.js @@ -22,63 +22,17 @@ const b: types.B = {}; //// [a.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -var A = /** @class */ (function () { - function A() { - } - return A; -}()); +class A { +} +export {}; //// [b.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); +export {}; //// [c.js] -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || (function () { - var ownKeys = function(o) { - ownKeys = Object.getOwnPropertyNames || function (o) { - var ar = []; - for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; - return ar; - }; - return ownKeys(o); - }; - return function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); - __setModuleDefault(result, mod); - return result; - }; -})(); -Object.defineProperty(exports, "__esModule", { value: true }); -exports.default = void 0; -var types = __importStar(require("./b")); -exports.default = types; +import * as types from './b'; +export { types as default }; //// [d.js] -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -var c_1 = __importDefault(require("./c")); -new c_1.default.A(); -new c_1.default.B(); -var a = {}; -var b = {}; +import types from './c'; +new types.A(); +new types.B(); +const a = {}; +const b = {}; diff --git a/tests/baselines/reference/chainedAssignment1.js b/tests/baselines/reference/chainedAssignment1.js index 1b45fda503a94..c89e3356f8f6c 100644 --- a/tests/baselines/reference/chainedAssignment1.js +++ b/tests/baselines/reference/chainedAssignment1.js @@ -25,23 +25,18 @@ c1 = c2 = c3; // a bug made this not report the same error as below c2 = c3; // Error TS111: Cannot convert Z to Y //// [chainedAssignment1.js] -var X = /** @class */ (function () { - function X(z) { +class X { + constructor(z) { this.z = z; } - return X; -}()); -var Y = /** @class */ (function () { - function Y(z) { +} +class Y { + constructor(z) { this.z = z; } - return Y; -}()); -var Z = /** @class */ (function () { - function Z() { - } - return Z; -}()); +} +class Z { +} var c1 = new X(3); var c2 = new Y(5); var c3 = new Z(); diff --git a/tests/baselines/reference/chainedAssignment3.js b/tests/baselines/reference/chainedAssignment3.js index d08a5426f492f..43e5729f5622f 100644 --- a/tests/baselines/reference/chainedAssignment3.js +++ b/tests/baselines/reference/chainedAssignment3.js @@ -25,33 +25,10 @@ a = b = new A(); //// [chainedAssignment3.js] -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -var A = /** @class */ (function () { - function A() { - } - return A; -}()); -var B = /** @class */ (function (_super) { - __extends(B, _super); - function B() { - return _super !== null && _super.apply(this, arguments) || this; - } - return B; -}(A)); +class A { +} +class B extends A { +} var a; var b; a = b = null; diff --git a/tests/baselines/reference/chainedAssignmentChecking.js b/tests/baselines/reference/chainedAssignmentChecking.js index f5334ad6bcae8..f7dd29154fe25 100644 --- a/tests/baselines/reference/chainedAssignmentChecking.js +++ b/tests/baselines/reference/chainedAssignmentChecking.js @@ -25,23 +25,18 @@ c1 = c2 = c3; // Should be error //// [chainedAssignmentChecking.js] -var X = /** @class */ (function () { - function X(z) { +class X { + constructor(z) { this.z = z; } - return X; -}()); -var Y = /** @class */ (function () { - function Y(z) { +} +class Y { + constructor(z) { this.z = z; } - return Y; -}()); -var Z = /** @class */ (function () { - function Z() { - } - return Z; -}()); +} +class Z { +} var c1 = new X(3); var c2 = new Y(5); var c3 = new Z(); diff --git a/tests/baselines/reference/chainedCallsWithTypeParameterConstrainedToOtherTypeParameter.js b/tests/baselines/reference/chainedCallsWithTypeParameterConstrainedToOtherTypeParameter.js index 76497857f99a0..b4db0fe8242eb 100644 --- a/tests/baselines/reference/chainedCallsWithTypeParameterConstrainedToOtherTypeParameter.js +++ b/tests/baselines/reference/chainedCallsWithTypeParameterConstrainedToOtherTypeParameter.js @@ -22,48 +22,19 @@ class C extends B { (new Chain(new A)).then(a => new B).then(b => new C).then(c => new B).then(b => new A); //// [chainedCallsWithTypeParameterConstrainedToOtherTypeParameter.js] -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -var Chain = /** @class */ (function () { - function Chain(value) { +class Chain { + constructor(value) { this.value = value; } - Chain.prototype.then = function (cb) { + then(cb) { return null; - }; - return Chain; -}()); -var A = /** @class */ (function () { - function A() { } - return A; -}()); -var B = /** @class */ (function (_super) { - __extends(B, _super); - function B() { - return _super !== null && _super.apply(this, arguments) || this; - } - return B; -}(A)); -var C = /** @class */ (function (_super) { - __extends(C, _super); - function C() { - return _super !== null && _super.apply(this, arguments) || this; - } - return C; -}(B)); +} +class A { +} +class B extends A { +} +class C extends B { +} // Ok to go down the chain, but error to try to climb back up -(new Chain(new A)).then(function (a) { return new B; }).then(function (b) { return new C; }).then(function (c) { return new B; }).then(function (b) { return new A; }); +(new Chain(new A)).then(a => new B).then(b => new C).then(c => new B).then(b => new A); diff --git a/tests/baselines/reference/chainedCallsWithTypeParameterConstrainedToOtherTypeParameter2.js b/tests/baselines/reference/chainedCallsWithTypeParameterConstrainedToOtherTypeParameter2.js index ba4ad714336d8..29c0b9d7bc118 100644 --- a/tests/baselines/reference/chainedCallsWithTypeParameterConstrainedToOtherTypeParameter2.js +++ b/tests/baselines/reference/chainedCallsWithTypeParameterConstrainedToOtherTypeParameter2.js @@ -44,40 +44,38 @@ class Chain2 { } //// [chainedCallsWithTypeParameterConstrainedToOtherTypeParameter2.js] -var Chain = /** @class */ (function () { - function Chain(value) { +class Chain { + constructor(value) { this.value = value; } - Chain.prototype.then = function (cb) { + then(cb) { var t; var s; // Ok to go down the chain, but error to climb up the chain - (new Chain(t)).then(function (tt) { return s; }).then(function (ss) { return t; }); + (new Chain(t)).then(tt => s).then(ss => t); // But error to try to climb up the chain - (new Chain(s)).then(function (ss) { return t; }); + (new Chain(s)).then(ss => t); // Staying at T or S should be fine - (new Chain(t)).then(function (tt) { return t; }).then(function (tt) { return t; }).then(function (tt) { return t; }); - (new Chain(s)).then(function (ss) { return s; }).then(function (ss) { return s; }).then(function (ss) { return s; }); + (new Chain(t)).then(tt => t).then(tt => t).then(tt => t); + (new Chain(s)).then(ss => s).then(ss => s).then(ss => s); return null; - }; - return Chain; -}()); -var Chain2 = /** @class */ (function () { - function Chain2(value) { + } +} +class Chain2 { + constructor(value) { this.value = value; } - Chain2.prototype.then = function (cb) { + then(cb) { var i; var t; var s; // Ok to go down the chain, check the constraint at the end. // Should get an error that we are assigning a string to a number - (new Chain2(i)).then(function (ii) { return t; }).then(function (tt) { return s; }).value.x = ""; + (new Chain2(i)).then(ii => t).then(tt => s).value.x = ""; // Staying at T or S should keep the constraint. // Get an error when we assign a string to a number in both cases - (new Chain2(i)).then(function (ii) { return t; }).then(function (tt) { return t; }).then(function (tt) { return t; }).then(function (tt) { return t; }).value.x = ""; - (new Chain2(i)).then(function (ii) { return s; }).then(function (ss) { return s; }).then(function (ss) { return s; }).then(function (ss) { return s; }).value.x = ""; + (new Chain2(i)).then(ii => t).then(tt => t).then(tt => t).then(tt => t).value.x = ""; + (new Chain2(i)).then(ii => s).then(ss => s).then(ss => s).then(ss => s).value.x = ""; return null; - }; - return Chain2; -}()); + } +} diff --git a/tests/baselines/reference/chainedImportAlias.js b/tests/baselines/reference/chainedImportAlias.js index 2183285e8d8e3..10febd782716e 100644 --- a/tests/baselines/reference/chainedImportAlias.js +++ b/tests/baselines/reference/chainedImportAlias.js @@ -23,6 +23,6 @@ var m; //// [chainedImportAlias_file1.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -var x = require("./chainedImportAlias_file0"); +const x = require("./chainedImportAlias_file0"); var y = x; y.m.foo(); diff --git a/tests/baselines/reference/chainedSpecializationToObjectTypeLiteral.js b/tests/baselines/reference/chainedSpecializationToObjectTypeLiteral.js index dda6c2b79b367..91db4982ff52b 100644 --- a/tests/baselines/reference/chainedSpecializationToObjectTypeLiteral.js +++ b/tests/baselines/reference/chainedSpecializationToObjectTypeLiteral.js @@ -15,5 +15,5 @@ var s3 = s2.each(x => { x.key /* Type is K, should be number */ }); //// [chainedSpecializationToObjectTypeLiteral.js] var s; -var s2 = s.groupBy(function (s) { return s.length; }); -var s3 = s2.each(function (x) { x.key; /* Type is K, should be number */ }); +var s2 = s.groupBy(s => s.length); +var s3 = s2.each(x => { x.key; /* Type is K, should be number */ }); diff --git a/tests/baselines/reference/checkForObjectTooStrict(target=es2015).js b/tests/baselines/reference/checkForObjectTooStrict(target=es2015).js new file mode 100644 index 0000000000000..a06c49b4ed5f2 --- /dev/null +++ b/tests/baselines/reference/checkForObjectTooStrict(target=es2015).js @@ -0,0 +1,52 @@ +//// [tests/cases/compiler/checkForObjectTooStrict.ts] //// + +//// [checkForObjectTooStrict.ts] +namespace Foo { + + export class Object { + + } + +} + + + +class Bar extends Foo.Object { // should work + + constructor () { + + super(); + + } + +} + + +class Baz extends Object { + + constructor () { // ERROR, as expected + + super(); + + } + +} + + +//// [checkForObjectTooStrict.js] +var Foo; +(function (Foo) { + class Object { + } + Foo.Object = Object; +})(Foo || (Foo = {})); +class Bar extends Foo.Object { + constructor() { + super(); + } +} +class Baz extends Object { + constructor() { + super(); + } +} diff --git a/tests/baselines/reference/checkForObjectTooStrict.symbols b/tests/baselines/reference/checkForObjectTooStrict(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/checkForObjectTooStrict.symbols rename to tests/baselines/reference/checkForObjectTooStrict(target=es2015).symbols diff --git a/tests/baselines/reference/checkForObjectTooStrict.types b/tests/baselines/reference/checkForObjectTooStrict(target=es2015).types similarity index 100% rename from tests/baselines/reference/checkForObjectTooStrict.types rename to tests/baselines/reference/checkForObjectTooStrict(target=es2015).types diff --git a/tests/baselines/reference/checkForObjectTooStrict.errors.txt b/tests/baselines/reference/checkForObjectTooStrict(target=es5).errors.txt similarity index 100% rename from tests/baselines/reference/checkForObjectTooStrict.errors.txt rename to tests/baselines/reference/checkForObjectTooStrict(target=es5).errors.txt diff --git a/tests/baselines/reference/checkForObjectTooStrict.js b/tests/baselines/reference/checkForObjectTooStrict(target=es5).js similarity index 100% rename from tests/baselines/reference/checkForObjectTooStrict.js rename to tests/baselines/reference/checkForObjectTooStrict(target=es5).js diff --git a/tests/baselines/reference/checkForObjectTooStrict(target=es5).symbols b/tests/baselines/reference/checkForObjectTooStrict(target=es5).symbols new file mode 100644 index 0000000000000..a7b87a2d37a76 --- /dev/null +++ b/tests/baselines/reference/checkForObjectTooStrict(target=es5).symbols @@ -0,0 +1,44 @@ +//// [tests/cases/compiler/checkForObjectTooStrict.ts] //// + +=== checkForObjectTooStrict.ts === +namespace Foo { +>Foo : Symbol(Foo, Decl(checkForObjectTooStrict.ts, 0, 0)) + + export class Object { +>Object : Symbol(Object, Decl(checkForObjectTooStrict.ts, 0, 15)) + + } + +} + + + +class Bar extends Foo.Object { // should work +>Bar : Symbol(Bar, Decl(checkForObjectTooStrict.ts, 6, 1)) +>Foo.Object : Symbol(Foo.Object, Decl(checkForObjectTooStrict.ts, 0, 15)) +>Foo : Symbol(Foo, Decl(checkForObjectTooStrict.ts, 0, 0)) +>Object : Symbol(Foo.Object, Decl(checkForObjectTooStrict.ts, 0, 15)) + + constructor () { + + super(); +>super : Symbol(Foo.Object, Decl(checkForObjectTooStrict.ts, 0, 15)) + + } + +} + + +class Baz extends Object { +>Baz : Symbol(Baz, Decl(checkForObjectTooStrict.ts, 18, 1)) +>Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) + + constructor () { // ERROR, as expected + + super(); +>super : Symbol(ObjectConstructor, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) + + } + +} + diff --git a/tests/baselines/reference/checkForObjectTooStrict(target=es5).types b/tests/baselines/reference/checkForObjectTooStrict(target=es5).types new file mode 100644 index 0000000000000..e1d103697bb39 --- /dev/null +++ b/tests/baselines/reference/checkForObjectTooStrict(target=es5).types @@ -0,0 +1,58 @@ +//// [tests/cases/compiler/checkForObjectTooStrict.ts] //// + +=== checkForObjectTooStrict.ts === +namespace Foo { +>Foo : typeof Foo +> : ^^^^^^^^^^ + + export class Object { +>Object : Object +> : ^^^^^^ + + } + +} + + + +class Bar extends Foo.Object { // should work +>Bar : Bar +> : ^^^ +>Foo.Object : Foo.Object +> : ^^^^^^^^^^ +>Foo : typeof Foo +> : ^^^^^^^^^^ +>Object : typeof Foo.Object +> : ^^^^^^^^^^^^^^^^^ + + constructor () { + + super(); +>super() : void +> : ^^^^ +>super : typeof Foo.Object +> : ^^^^^^^^^^^^^^^^^ + + } + +} + + +class Baz extends Object { +>Baz : Baz +> : ^^^ +>Object : Object +> : ^^^^^^ + + constructor () { // ERROR, as expected + + super(); +>super() : void +> : ^^^^ +>super : ObjectConstructor +> : ^^^^^^^^^^^^^^^^^ + + } + +} + diff --git a/tests/baselines/reference/checkJsObjectLiteralHasCheckedKeyof.js b/tests/baselines/reference/checkJsObjectLiteralHasCheckedKeyof.js index c8513a0fdc65c..19cd46fb0d40b 100644 --- a/tests/baselines/reference/checkJsObjectLiteralHasCheckedKeyof.js +++ b/tests/baselines/reference/checkJsObjectLiteralHasCheckedKeyof.js @@ -16,12 +16,12 @@ selected = "z"; // should fail //// [file.js] // @ts-check -var obj = { +const obj = { x: 1, y: 2 }; /** * @type {keyof typeof obj} */ -var selected = "x"; +let selected = "x"; selected = "z"; // should fail diff --git a/tests/baselines/reference/checkJsObjectLiteralIndexSignatures.js b/tests/baselines/reference/checkJsObjectLiteralIndexSignatures.js index 2ed6da1651593..1cb5b280d0484 100644 --- a/tests/baselines/reference/checkJsObjectLiteralIndexSignatures.js +++ b/tests/baselines/reference/checkJsObjectLiteralIndexSignatures.js @@ -16,10 +16,9 @@ stringIndex[s].toFixed(); //// [file.js] // @ts-check -var _a, _b; -var n = Math.random(); -var s = "".concat(n); -var numericIndex = (_a = {}, _a[n] = 1, _a); +let n = Math.random(); +let s = `${n}`; +const numericIndex = { [n]: 1 }; numericIndex[n].toFixed(); -var stringIndex = (_b = {}, _b[s] = 1, _b); +const stringIndex = { [s]: 1 }; stringIndex[s].toFixed(); diff --git a/tests/baselines/reference/checkJsdocSatisfiesTag15.js b/tests/baselines/reference/checkJsdocSatisfiesTag15.js index 9bf48fb0c473b..57005fd7befbf 100644 --- a/tests/baselines/reference/checkJsdocSatisfiesTag15.js +++ b/tests/baselines/reference/checkJsdocSatisfiesTag15.js @@ -46,50 +46,40 @@ export function fn7(uuid) {} //// [a.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.fn6 = exports.fn5 = exports.fn4 = exports.fn3 = exports.fn2 = exports.v2 = exports.v1 = exports.fn1 = void 0; -exports.fn7 = fn7; /** @satisfies {(uuid: string) => void} */ -var fn1 = function (uuid) { }; -exports.fn1 = fn1; +export const fn1 = uuid => { }; /** @typedef {Parameters} Foo */ /** @type Foo */ -exports.v1 = ['abc']; +export const v1 = ['abc']; /** @type Foo */ -exports.v2 = [123]; // error +export const v2 = [123]; // error /** @satisfies {(a: string, ...args: never) => void} */ -var fn2 = function (a, b) { }; -exports.fn2 = fn2; +export const fn2 = (a, b) => { }; /** * @satisfies {(a: string, ...args: never) => void} * @param {string} a */ -var fn3 = function (a, b) { }; -exports.fn3 = fn3; +export const fn3 = (a, b) => { }; /** * @satisfies {(a: string, ...args: never) => void} * @param {string} a * @param {number} b */ -var fn4 = function (a, b) { }; -exports.fn4 = fn4; +export const fn4 = (a, b) => { }; /** * @satisfies {(a: string, ...args: number[]) => void} * @param {string} a * @param {string} b */ -var fn5 = function (a, b) { }; -exports.fn5 = fn5; +export const fn5 = (a, b) => { }; /** * @satisfies {(a: string, ...args: number[]) => void} * @param {string} a * @param {string | number} b */ -var fn6 = function (a, b) { }; -exports.fn6 = fn6; +export const fn6 = (a, b) => { }; /** @satisfies {(uuid: string) => void} */ -function fn7(uuid) { } +export function fn7(uuid) { } //// [a.d.ts] diff --git a/tests/baselines/reference/checkJsdocTypeTag1.js b/tests/baselines/reference/checkJsdocTypeTag1.js index e605dfc187b34..a154f9d89a479 100644 --- a/tests/baselines/reference/checkJsdocTypeTag1.js +++ b/tests/baselines/reference/checkJsdocTypeTag1.js @@ -56,16 +56,16 @@ anyT = "hello"; var anyT1 = 2; anyT1 = "hi"; /** @type {Function} */ -var x = function (a) { return a + 1; }; +const x = (a) => a + 1; x(1); /** @type {function} */ -var y = function (a) { return a + 1; }; +const y = (a) => a + 1; y(1); /** @type {function (number)} */ -var x1 = function (a) { return a + 1; }; +const x1 = (a) => a + 1; x1(0); /** @type {function (number): number} */ -var x2 = function (a) { return a + 1; }; +const x2 = (a) => a + 1; x2(0); /** * @type {object} diff --git a/tests/baselines/reference/checkJsdocTypeTag2.js b/tests/baselines/reference/checkJsdocTypeTag2.js index 1e7db9aa49c82..ee542d60a97e7 100644 --- a/tests/baselines/reference/checkJsdocTypeTag2.js +++ b/tests/baselines/reference/checkJsdocTypeTag2.js @@ -34,16 +34,16 @@ var S = true; /** @type {number} */ var n = "hello"; /** @type {function (number)} */ -var x1 = function (a) { return a + 1; }; +const x1 = (a) => a + 1; x1("string"); /** @type {function (number): number} */ -var x2 = function (a) { return a + 1; }; +const x2 = (a) => a + 1; /** @type {string} */ var a; a = x2(0); /** @type {function (number): number} */ -var x3 = function (a) { return a.concat("hi"); }; +const x3 = (a) => a.concat("hi"); x3(0); /** @type {function (number): string} */ -var x4 = function (a) { return a + 1; }; +const x4 = (a) => a + 1; x4(0); diff --git a/tests/baselines/reference/checkJsdocTypeTagOnExportAssignment1.js b/tests/baselines/reference/checkJsdocTypeTagOnExportAssignment1.js index 4ba0cb44b7a7e..d3d4bf1342e60 100644 --- a/tests/baselines/reference/checkJsdocTypeTagOnExportAssignment1.js +++ b/tests/baselines/reference/checkJsdocTypeTagOnExportAssignment1.js @@ -19,20 +19,13 @@ a; //// [checkJsdocTypeTagOnExportAssignment1.js] //// [a.js] -"use strict"; /** * @typedef {Object} Foo * @property {boolean} a * @property {boolean} b */ -Object.defineProperty(exports, "__esModule", { value: true }); /** @type {Foo} */ -exports.default = { c: false }; +export default { c: false }; //// [b.js] -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -var a_1 = __importDefault(require("./a")); -a_1.default; +import a from "./a"; +a; diff --git a/tests/baselines/reference/checkJsdocTypeTagOnExportAssignment2.js b/tests/baselines/reference/checkJsdocTypeTagOnExportAssignment2.js index 309fb75ad8700..8092dbe2f32ba 100644 --- a/tests/baselines/reference/checkJsdocTypeTagOnExportAssignment2.js +++ b/tests/baselines/reference/checkJsdocTypeTagOnExportAssignment2.js @@ -19,18 +19,10 @@ b; //// [checkJsdocTypeTagOnExportAssignment2.js] //// [a.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); +export {}; //// [b.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); /** @type {import("./a").Foo} */ -exports.default = { c: false }; +export default { c: false }; //// [c.js] -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -var b_1 = __importDefault(require("./b")); -b_1.default; +import b from "./b"; +b; diff --git a/tests/baselines/reference/checkJsdocTypeTagOnExportAssignment3.js b/tests/baselines/reference/checkJsdocTypeTagOnExportAssignment3.js index a73cf1deae4a4..3f59c7dc8ce1e 100644 --- a/tests/baselines/reference/checkJsdocTypeTagOnExportAssignment3.js +++ b/tests/baselines/reference/checkJsdocTypeTagOnExportAssignment3.js @@ -21,21 +21,14 @@ a; //// [checkJsdocTypeTagOnExportAssignment3.js] //// [a.js] -"use strict"; /** * @typedef {Object} Foo * @property {boolean} a * @property {boolean} b */ -Object.defineProperty(exports, "__esModule", { value: true }); -var bar = { c: 1 }; +const bar = { c: 1 }; /** @type {Foo} */ -exports.default = bar; +export default bar; //// [b.js] -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -var a_1 = __importDefault(require("./a")); -a_1.default; +import a from "./a"; +a; diff --git a/tests/baselines/reference/checkJsdocTypeTagOnExportAssignment4.js b/tests/baselines/reference/checkJsdocTypeTagOnExportAssignment4.js index 3e280248f4c98..15ea399153d94 100644 --- a/tests/baselines/reference/checkJsdocTypeTagOnExportAssignment4.js +++ b/tests/baselines/reference/checkJsdocTypeTagOnExportAssignment4.js @@ -14,10 +14,8 @@ export default ""; //// [checkJsdocTypeTagOnExportAssignment4.js] //// [a.js] -"use strict"; /** * @typedef {number} Foo */ -Object.defineProperty(exports, "__esModule", { value: true }); /** @type {Foo} */ -exports.default = ""; +export default ""; diff --git a/tests/baselines/reference/checkJsdocTypeTagOnExportAssignment5.js b/tests/baselines/reference/checkJsdocTypeTagOnExportAssignment5.js index 0934b84307c40..df2eabf82c08f 100644 --- a/tests/baselines/reference/checkJsdocTypeTagOnExportAssignment5.js +++ b/tests/baselines/reference/checkJsdocTypeTagOnExportAssignment5.js @@ -19,20 +19,13 @@ a; //// [checkJsdocTypeTagOnExportAssignment5.js] //// [a.js] -"use strict"; /** * @typedef {Object} Foo * @property {number} a * @property {number} b */ -Object.defineProperty(exports, "__esModule", { value: true }); /** @type {Foo} */ -exports.default = { a: 1, b: 1 }; +export default { a: 1, b: 1 }; //// [b.js] -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -var a_1 = __importDefault(require("./a")); -a_1.default; +import a from "./a"; +a; diff --git a/tests/baselines/reference/checkJsdocTypeTagOnExportAssignment6.js b/tests/baselines/reference/checkJsdocTypeTagOnExportAssignment6.js index 592d06b04074d..5c849c0d83775 100644 --- a/tests/baselines/reference/checkJsdocTypeTagOnExportAssignment6.js +++ b/tests/baselines/reference/checkJsdocTypeTagOnExportAssignment6.js @@ -19,20 +19,13 @@ a; //// [checkJsdocTypeTagOnExportAssignment6.js] //// [a.js] -"use strict"; /** * @typedef {Object} Foo * @property {number} a * @property {number} b */ -Object.defineProperty(exports, "__esModule", { value: true }); /** @type {Foo} */ -exports.default = { a: 1, b: 1, c: 1 }; +export default { a: 1, b: 1, c: 1 }; //// [b.js] -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -var a_1 = __importDefault(require("./a")); -a_1.default; +import a from "./a"; +a; diff --git a/tests/baselines/reference/checkJsdocTypeTagOnExportAssignment7.js b/tests/baselines/reference/checkJsdocTypeTagOnExportAssignment7.js index 217c55ad5e904..705e103fc7b2d 100644 --- a/tests/baselines/reference/checkJsdocTypeTagOnExportAssignment7.js +++ b/tests/baselines/reference/checkJsdocTypeTagOnExportAssignment7.js @@ -21,21 +21,14 @@ a; //// [checkJsdocTypeTagOnExportAssignment7.js] //// [a.js] -"use strict"; /** * @typedef {Object} Foo * @property {number} a * @property {number} b */ -Object.defineProperty(exports, "__esModule", { value: true }); -var abc = { a: 1, b: 1, c: 1 }; +const abc = { a: 1, b: 1, c: 1 }; /** @type {Foo} */ -exports.default = abc; +export default abc; //// [b.js] -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -var a_1 = __importDefault(require("./a")); -a_1.default; +import a from "./a"; +a; diff --git a/tests/baselines/reference/checkJsdocTypeTagOnExportAssignment8.js b/tests/baselines/reference/checkJsdocTypeTagOnExportAssignment8.js index b63560b276ed1..4fe1eb8208b48 100644 --- a/tests/baselines/reference/checkJsdocTypeTagOnExportAssignment8.js +++ b/tests/baselines/reference/checkJsdocTypeTagOnExportAssignment8.js @@ -18,15 +18,13 @@ export default { //// [checkJsdocTypeTagOnExportAssignment8.js] //// [a.js] -"use strict"; /** * @typedef Foo * @property {string} a * @property {'b'} b */ -Object.defineProperty(exports, "__esModule", { value: true }); /** @type {Foo} */ -exports.default = { +export default { a: 'a', b: 'b' }; diff --git a/tests/baselines/reference/checkJsdocTypeTagOnObjectProperty1.js b/tests/baselines/reference/checkJsdocTypeTagOnObjectProperty1.js index 1c5c61fcbf5f2..015c24d006fe3 100644 --- a/tests/baselines/reference/checkJsdocTypeTagOnObjectProperty1.js +++ b/tests/baselines/reference/checkJsdocTypeTagOnObjectProperty1.js @@ -27,26 +27,24 @@ obj.bar1 = "42"; obj.arrowFunc(0); //// [0.js] -var _a; // @ts-check var lol = "hello Lol"; -var obj = (_a = { - /** @type {string|undefined} */ - foo: undefined, - /** @type {string|undefined} */ - bar: "42", - /** @type {function(number): number} */ - method1: function (n1) { - return n1 + 42; - }, - /** @type {string} */ - lol: lol +const obj = { + /** @type {string|undefined} */ + foo: undefined, + /** @type {string|undefined} */ + bar: "42", + /** @type {function(number): number} */ + method1(n1) { + return n1 + 42; }, + /** @type {string} */ + lol, /** @type {number} */ - _a['b' + 'ar1'] = 42, + ['b' + 'ar1']: 42, /** @type {function(number): number} */ - _a.arrowFunc = function (num) { return num + 42; }, - _a); + arrowFunc: (num) => num + 42 +}; obj.foo = 'string'; obj.lol; obj.bar = undefined; diff --git a/tests/baselines/reference/checkJsdocTypeTagOnObjectProperty2.js b/tests/baselines/reference/checkJsdocTypeTagOnObjectProperty2.js index 62fe33e8b2675..a2333e6b998b2 100644 --- a/tests/baselines/reference/checkJsdocTypeTagOnObjectProperty2.js +++ b/tests/baselines/reference/checkJsdocTypeTagOnObjectProperty2.js @@ -27,22 +27,19 @@ var s1 = obj.method2("0"); //// [0.js] // @ts-check var lol; -var obj = { +const obj = { /** @type {string|undefined} */ bar: 42, /** @type {function(number): number} */ - method1: function (n1) { + method1(n1) { return "42"; }, /** @type {function(number): number} */ - method2: function (n1) { return "lol"; }, + method2: (n1) => "lol", /** @type {function(number): number} */ - arrowFunc: function (num) { - if (num === void 0) { num = "0"; } - return num + 42; - }, + arrowFunc: (num = "0") => num + 42, /** @type {string} */ - lol: lol + lol }; lol = "string"; /** @type {string} */ diff --git a/tests/baselines/reference/checkJsdocTypedefOnlySourceFile.js b/tests/baselines/reference/checkJsdocTypedefOnlySourceFile.js index 5289265970499..76a2b24725d0b 100644 --- a/tests/baselines/reference/checkJsdocTypedefOnlySourceFile.js +++ b/tests/baselines/reference/checkJsdocTypedefOnlySourceFile.js @@ -22,4 +22,4 @@ var exports = {}; */ exports.SomeName; /** @type {exports.SomeName} */ -var myString = 'str'; +const myString = 'str'; diff --git a/tests/baselines/reference/checkJsxChildrenCanBeTupleType.js b/tests/baselines/reference/checkJsxChildrenCanBeTupleType.js index 1294b6c45080f..382e94ed12618 100644 --- a/tests/baselines/reference/checkJsxChildrenCanBeTupleType.js +++ b/tests/baselines/reference/checkJsxChildrenCanBeTupleType.js @@ -24,39 +24,14 @@ const testErr = //// [checkJsxChildrenCanBeTupleType.js] -"use strict"; /// -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -var react_1 = __importDefault(require("react")); -var ResizablePanel = /** @class */ (function (_super) { - __extends(ResizablePanel, _super); - function ResizablePanel() { - return _super !== null && _super.apply(this, arguments) || this; - } - return ResizablePanel; -}(react_1.default.Component)); -var test = react_1.default.createElement(ResizablePanel, null, - react_1.default.createElement("div", null), - react_1.default.createElement("div", null)); -var testErr = react_1.default.createElement(ResizablePanel, null, - react_1.default.createElement("div", null), - react_1.default.createElement("div", null), - react_1.default.createElement("div", null)); +import React from 'react'; +class ResizablePanel extends React.Component { +} +const test = React.createElement(ResizablePanel, null, + React.createElement("div", null), + React.createElement("div", null)); +const testErr = React.createElement(ResizablePanel, null, + React.createElement("div", null), + React.createElement("div", null), + React.createElement("div", null)); diff --git a/tests/baselines/reference/checkJsxChildrenProperty1.errors.txt b/tests/baselines/reference/checkJsxChildrenProperty1.errors.txt new file mode 100644 index 0000000000000..3008bbfe996e0 --- /dev/null +++ b/tests/baselines/reference/checkJsxChildrenProperty1.errors.txt @@ -0,0 +1,30 @@ +file.tsx(3,1): error TS1202: Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead. + + +==== file.tsx (1 errors) ==== + /// + + import React = require('react'); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS1202: Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead. + + interface Prop { + a: number, + b: string, + children: string | JSX.Element + } + + function Comp(p: Prop) { + return
{p.b}
; + } + + // OK + let k = ; + let k1 = + + hi hi hi! + ; + let k2 = + +
hi hi hi!
+
; \ No newline at end of file diff --git a/tests/baselines/reference/checkJsxChildrenProperty1.js b/tests/baselines/reference/checkJsxChildrenProperty1.js index ff4d1a8084bc1..af4b5f66bacc2 100644 --- a/tests/baselines/reference/checkJsxChildrenProperty1.js +++ b/tests/baselines/reference/checkJsxChildrenProperty1.js @@ -27,18 +27,16 @@ let k2 =
; //// [file.jsx] -"use strict"; /// -Object.defineProperty(exports, "__esModule", { value: true }); -var React = require("react"); function Comp(p) { return
{p.b}
; } // OK -var k = ; -var k1 = +let k = ; +let k1 = hi hi hi! ; -var k2 = +let k2 =
hi hi hi!
; +export {}; diff --git a/tests/baselines/reference/checkJsxChildrenProperty10.js b/tests/baselines/reference/checkJsxChildrenProperty10.js index e6a7b590603bb..71f47b108f1b7 100644 --- a/tests/baselines/reference/checkJsxChildrenProperty10.js +++ b/tests/baselines/reference/checkJsxChildrenProperty10.js @@ -25,16 +25,13 @@ let k3 =
{1} {"That is a number"}
; let k4 = ; //// [file.jsx] -var Button = /** @class */ (function () { - function Button() { - } - Button.prototype.render = function () { +class Button { + render() { return (
My Button
); - }; - return Button; -}()); + } +} // OK -var k1 =

Hello

world

; -var k2 =

Hello

{function (user) { return

{user.name}

; }}
; -var k3 =
{1} {"That is a number"}
; -var k4 = ; +let k1 =

Hello

world

; +let k2 =

Hello

{(user) =>

{user.name}

}
; +let k3 =
{1} {"That is a number"}
; +let k4 = ; diff --git a/tests/baselines/reference/checkJsxChildrenProperty11.js b/tests/baselines/reference/checkJsxChildrenProperty11.js index 32370da04024b..d56ee32096b51 100644 --- a/tests/baselines/reference/checkJsxChildrenProperty11.js +++ b/tests/baselines/reference/checkJsxChildrenProperty11.js @@ -25,16 +25,13 @@ let k3 =
{1} {"That is a number"}
; let k4 = ; //// [file.jsx] -var Button = /** @class */ (function () { - function Button() { - } - Button.prototype.render = function () { +class Button { + render() { return (
My Button
); - }; - return Button; -}()); + } +} // OK -var k1 =

Hello

world

; -var k2 =

Hello

{function (user) { return

{user.name}

; }}
; -var k3 =
{1} {"That is a number"}
; -var k4 = ; +let k1 =

Hello

world

; +let k2 =

Hello

{(user) =>

{user.name}

}
; +let k3 =
{1} {"That is a number"}
; +let k4 = ; diff --git a/tests/baselines/reference/checkJsxChildrenProperty12.js b/tests/baselines/reference/checkJsxChildrenProperty12.js index eb3bfc8c63eef..65056447f0592 100644 --- a/tests/baselines/reference/checkJsxChildrenProperty12.js +++ b/tests/baselines/reference/checkJsxChildrenProperty12.js @@ -39,30 +39,11 @@ class InnerButton extends React.Component { //// [file.jsx] "use strict"; /// -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); Object.defineProperty(exports, "__esModule", { value: true }); -var React = require("react"); -var Button = /** @class */ (function (_super) { - __extends(Button, _super); - function Button() { - return _super !== null && _super.apply(this, arguments) || this; - } - Button.prototype.render = function () { - var condition; +const React = require("react"); +class Button extends React.Component { + render() { + let condition; if (condition) { return ; } @@ -71,16 +52,10 @@ var Button = /** @class */ (function (_super) {
Hello World
); } - }; - return Button; -}(React.Component)); -var InnerButton = /** @class */ (function (_super) { - __extends(InnerButton, _super); - function InnerButton() { - return _super !== null && _super.apply(this, arguments) || this; } - InnerButton.prototype.render = function () { +} +class InnerButton extends React.Component { + render() { return (); - }; - return InnerButton; -}(React.Component)); + } +} diff --git a/tests/baselines/reference/checkJsxChildrenProperty13.js b/tests/baselines/reference/checkJsxChildrenProperty13.js index 477461b0a55ac..4ab4e6c4ad2b4 100644 --- a/tests/baselines/reference/checkJsxChildrenProperty13.js +++ b/tests/baselines/reference/checkJsxChildrenProperty13.js @@ -34,43 +34,18 @@ class InnerButton extends React.Component { //// [file.jsx] "use strict"; /// -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); Object.defineProperty(exports, "__esModule", { value: true }); -var React = require("react"); -var Button = /** @class */ (function (_super) { - __extends(Button, _super); - function Button() { - return _super !== null && _super.apply(this, arguments) || this; - } - Button.prototype.render = function () { +const React = require("react"); +class Button extends React.Component { + render() { // Error children are specified twice return (
Hello World
); - }; - return Button; -}(React.Component)); -var InnerButton = /** @class */ (function (_super) { - __extends(InnerButton, _super); - function InnerButton() { - return _super !== null && _super.apply(this, arguments) || this; } - InnerButton.prototype.render = function () { +} +class InnerButton extends React.Component { + render() { return (); - }; - return InnerButton; -}(React.Component)); + } +} diff --git a/tests/baselines/reference/checkJsxChildrenProperty14.js b/tests/baselines/reference/checkJsxChildrenProperty14.js index d02609fbaf266..e4572a60c152c 100644 --- a/tests/baselines/reference/checkJsxChildrenProperty14.js +++ b/tests/baselines/reference/checkJsxChildrenProperty14.js @@ -49,33 +49,13 @@ let k5 = <>